@univerjs-pro/boards-resources 1.0.0-insiders.20260717-1e84621
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 +33 -0
- package/lib/cjs/index.js +1 -0
- package/lib/es/index.js +1 -0
- package/lib/index.js +1 -0
- package/lib/types/common/board-resource-element-validation.d.ts +14 -0
- package/lib/types/common/board-resource-metadata.d.ts +6 -0
- package/lib/types/common/board-resource-runtime.d.ts +2 -0
- package/lib/types/config/config.d.ts +14 -0
- package/lib/types/index.d.ts +11 -0
- package/lib/types/materializers/board-element-resource.materializer.d.ts +7 -0
- package/lib/types/materializers/board-fragment-resource.materializer.d.ts +4 -0
- package/lib/types/materializers/board-image-resource.materializer.d.ts +18 -0
- package/lib/types/plugin.d.ts +15 -0
- package/lib/types/services/board-resource-materializer.service.d.ts +21 -0
- package/lib/types/types/board-resource.d.ts +44 -0
- package/lib/umd/index.js +1 -0
- package/package.json +71 -0
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# @univerjs-pro/boards-resources
|
|
2
|
+
|
|
3
|
+
[](https://npmjs.com/package/@univerjs-pro/boards-resources)
|
|
4
|
+
[](https://npmjs.com/package/@univerjs-pro/boards-resources)
|
|
5
|
+
[](https://npmjs.com/package/@univerjs-pro/boards-resources)
|
|
6
|
+
|
|
7
|
+
`@univerjs-pro/boards-resources` is part of Univer Pro. It materializes static resource payloads as Board elements.
|
|
8
|
+
|
|
9
|
+
## Package Overview
|
|
10
|
+
|
|
11
|
+
| Package | UMD global | CSS | Locales | Facade entry |
|
|
12
|
+
| --- | --- | :---: | :---: | :---: |
|
|
13
|
+
| `@univerjs-pro/boards-resources` | `UniverProBoardsResources` | No | No | No |
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
pnpm add @univerjs-pro/boards-resources
|
|
19
|
+
# or
|
|
20
|
+
npm install @univerjs-pro/boards-resources
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Keep all `@univerjs/*` and `@univerjs-pro/*` packages on the same version.
|
|
24
|
+
|
|
25
|
+
## Integration Notes
|
|
26
|
+
|
|
27
|
+
- Board resource payloads contain static element templates.
|
|
28
|
+
- Materialized elements retain only their resource reference metadata.
|
|
29
|
+
|
|
30
|
+
## Resources
|
|
31
|
+
|
|
32
|
+
- [Documentation](https://docs.univer.ai/guides/pro)
|
|
33
|
+
- [NPM package](https://npmjs.com/package/@univerjs-pro/boards-resources)
|
package/lib/cjs/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x80be06=_0x3d6f;(function(_0x494ff2,_0x483d12){const _0x509473=_0x3d6f,_0x4eeb19=_0x494ff2();while(!![]){try{const _0x234e70=-parseInt(_0x509473(0x11e))/0x1*(-parseInt(_0x509473(0x8c))/0x2)+parseInt(_0x509473(0xdd))/0x3*(-parseInt(_0x509473(0x101))/0x4)+-parseInt(_0x509473(0xa5))/0x5+-parseInt(_0x509473(0xa3))/0x6+-parseInt(_0x509473(0x14f))/0x7*(parseInt(_0x509473(0xea))/0x8)+parseInt(_0x509473(0x7b))/0x9+parseInt(_0x509473(0x8b))/0xa;if(_0x234e70===_0x483d12)break;else _0x4eeb19['push'](_0x4eeb19['shift']());}catch(_0x3bde28){_0x4eeb19['push'](_0x4eeb19['shift']());}}}(_0xe1aa,0x77cb6),Object[_0x80be06(0x134)](exports,Symbol['toStringTag'],{'value':_0x80be06(0x81)}));let e=require('@univerjs-pro/boards'),t=require('@univerjs/core'),n=require('@univerjs/drawing'),r=require('@univerjs-pro/license'),i=require('@univerjs-pro/resources');function a(_0x2492ba){const _0x2a628=_0x80be06;return typeof _0x2492ba==_0x2a628(0x6f)&&!!_0x2492ba&&!Array[_0x2a628(0xfb)](_0x2492ba);}function o(_0x36d8a5,_0xf42a5){const _0x2a1e62=_0x80be06;return{'schemaVersion':0x1,'registryId':_0x36d8a5[_0x2a1e62(0xf4)],'resourceId':_0x36d8a5[_0x2a1e62(0xb8)],..._0xf42a5===void 0x0?null:{'color':_0xf42a5}};}function s(_0x48e635,_0x2cf5b9,_0x395bbd){const _0x6fc154=_0x80be06;_0x48e635[_0x6fc154(0xbf)]={...a(_0x48e635[_0x6fc154(0xbf)])?_0x48e635[_0x6fc154(0xbf)]:{},'resources':o(_0x2cf5b9,_0x395bbd)};}function c(_0xef00d0){const _0x43ee10=_0x80be06;if(!a(_0xef00d0['custom'])||!a(_0xef00d0[_0x43ee10(0xbf)][_0x43ee10(0x147)]))return null;let _0x41173e=_0xef00d0[_0x43ee10(0xbf)][_0x43ee10(0x147)];return _0x41173e[_0x43ee10(0x127)]!==0x1||typeof _0x41173e[_0x43ee10(0xf4)]!=_0x43ee10(0x100)||typeof _0x41173e[_0x43ee10(0xb8)]!=_0x43ee10(0x100)||_0x41173e[_0x43ee10(0x140)]!==void 0x0&&typeof _0x41173e[_0x43ee10(0x140)]!=_0x43ee10(0x100)?null:{'schemaVersion':0x1,'registryId':_0x41173e[_0x43ee10(0xf4)],'resourceId':_0x41173e['resourceId'],..._0x41173e[_0x43ee10(0x140)]===void 0x0?null:{'color':_0x41173e[_0x43ee10(0x140)]}};}const l=_0x80be06(0x7a),u={'fallbackWidth':0x140,'fallbackHeight':0xb4,'minEdge':0x50,'maxWidth':1075.2,'maxHeight':604.8},d={},f=new Set([e[_0x80be06(0x102)][_0x80be06(0xc7)],e[_0x80be06(0x102)][_0x80be06(0x98)],e['BoardElementType'][_0x80be06(0x8d)],e[_0x80be06(0x102)][_0x80be06(0x105)],e[_0x80be06(0x102)][_0x80be06(0x126)],e[_0x80be06(0x102)][_0x80be06(0x148)],e[_0x80be06(0x102)][_0x80be06(0xb4)],e[_0x80be06(0x102)][_0x80be06(0xe6)],e[_0x80be06(0x102)][_0x80be06(0xd8)],e[_0x80be06(0x102)][_0x80be06(0xcf)]]);function p(_0x5161c5){const _0x568f3e=_0x80be06;return typeof _0x5161c5==_0x568f3e(0x6f)&&!!_0x5161c5&&!Array['isArray'](_0x5161c5);}function m(_0x367451){const _0x1d9761=_0x80be06;return typeof _0x367451==_0x1d9761(0xe8)&&Number[_0x1d9761(0x144)](_0x367451);}function h(_0x3a3bff){return _0x3a3bff===void 0x0||m(_0x3a3bff);}function g(_0x167607){return p(_0x167607)&&m(_0x167607['x'])&&m(_0x167607['y']);}function _(_0x13391d){const _0x4d2559=_0x80be06;return p(_0x13391d)?_0x13391d[_0x4d2559(0xf7)]===_0x4d2559(0xc6)?m(_0x13391d['x'])&&m(_0x13391d['y']):typeof _0x13391d['shapeId']!=_0x4d2559(0x100)||_0x13391d[_0x4d2559(0xa9)]['trim']()[_0x4d2559(0x10a)]===0x0||_0x13391d['fallbackPoint']!==void 0x0&&!g(_0x13391d['fallbackPoint'])?!0x1:_0x13391d[_0x4d2559(0xf7)]===_0x4d2559(0xfe)?m(_0x13391d[_0x4d2559(0x12c)]):_0x13391d['kind']===_0x4d2559(0x70)?Number['isInteger'](_0x13391d[_0x4d2559(0x83)]):_0x13391d[_0x4d2559(0xf7)]===_0x4d2559(0x107)?Number['isInteger'](_0x13391d[_0x4d2559(0x90)])&&Number[_0x4d2559(0xc9)](_0x13391d['segmentIndex'])&&m(_0x13391d[_0x4d2559(0x112)])&&h(_0x13391d[_0x4d2559(0x14b)])&&(_0x13391d[_0x4d2559(0xde)]===void 0x0||p(_0x13391d['localUV'])&&m(_0x13391d[_0x4d2559(0xde)]['u'])&&m(_0x13391d['localUV']['v'])):!0x1:!0x1;}function v(_0x2cf20d){const _0x39a585=_0x80be06;return p(_0x2cf20d)&&typeof _0x2cf20d['id']==_0x39a585(0x100)&&_0x2cf20d['id'][_0x39a585(0x13f)]()[_0x39a585(0x10a)]>0x0&&(_0x2cf20d[_0x39a585(0xf7)]===_0x39a585(0x84)||_0x2cf20d[_0x39a585(0xf7)]==='auto')&&m(_0x2cf20d['x'])&&m(_0x2cf20d['y']);}function ee(_0x67a409){const _0x3d912a=_0x80be06;if(!v(_0x67a409))return!0x1;let _0x40ef55=_0x67a409[_0x3d912a(0x13a)];return _0x40ef55===void 0x0||_(_0x40ef55);}function y(_0x518f4d){const _0x5a4212=_0x80be06;return v(_0x518f4d)?Number[_0x5a4212(0xc9)](_0x518f4d[_0x5a4212(0x88)]):!0x1;}function b(_0x54bff2,_0x31aa94){const _0x3f42de=_0x80be06;return _0x54bff2===void 0x0||Array[_0x3f42de(0xfb)](_0x54bff2)&&_0x54bff2[_0x3f42de(0xc5)](_0x31aa94);}function te(_0x5c1beb){const _0x1e5ee4=_0x80be06;return!(!p(_0x5c1beb)||!_(_0x5c1beb[_0x1e5ee4(0x143)])||!_(_0x5c1beb[_0x1e5ee4(0xd0)])||!b(_0x5c1beb[_0x1e5ee4(0x9a)],v)||_0x5c1beb[_0x1e5ee4(0x10f)]!==void 0x0&&(!p(_0x5c1beb['orthogonalData'])||!b(_0x5c1beb[_0x1e5ee4(0x10f)][_0x1e5ee4(0xc8)],v))||_0x5c1beb[_0x1e5ee4(0x115)]!==void 0x0&&(!p(_0x5c1beb['curveData'])||!b(_0x5c1beb[_0x1e5ee4(0x115)][_0x1e5ee4(0xe4)],ee)||!b(_0x5c1beb[_0x1e5ee4(0x115)][_0x1e5ee4(0x146)],y)));}function ne(_0x1bf8dd){const _0xc7de15=_0x80be06;return p(_0x1bf8dd)?h(_0x1bf8dd[_0xc7de15(0x135)])&&h(_0x1bf8dd[_0xc7de15(0x9e)])&&h(_0x1bf8dd[_0xc7de15(0x13e)])&&h(_0x1bf8dd[_0xc7de15(0x9f)]):!0x1;}function re(_0x5ba612){const _0x332590=_0x80be06;return typeof _0x5ba612==_0x332590(0x100)&&f['has'](_0x5ba612);}function x(_0x5102fe){const _0x4c9f9c=_0x80be06;var _0x4ea9ab;let _0x179fda=[_0x5102fe[_0x4c9f9c(0xd7)][_0x4c9f9c(0x143)],_0x5102fe[_0x4c9f9c(0xd7)]['end']];return(_0x4ea9ab=_0x5102fe['connectorData']['curveData'])==null||(_0x4ea9ab=_0x4ea9ab['anchors'])==null||_0x4ea9ab[_0x4c9f9c(0x11f)](_0x162a20=>{const _0x1c3403=_0x4c9f9c;_0x162a20[_0x1c3403(0x13a)]&&_0x179fda['push'](_0x162a20[_0x1c3403(0x13a)]);}),_0x179fda;}function S(_0x4b7806){const _0x275a77=_0x80be06;if(!p(_0x4b7806))return{'ok':!0x1,'unsupported':!0x1,'message':'Board\x20elements\x20must\x20be\x20objects.'};if(!re(_0x4b7806[_0x275a77(0xda)]))return{'ok':!0x1,'unsupported':!0x0,'message':_0x275a77(0x131)+String(_0x4b7806[_0x275a77(0xda)])+'.',...typeof _0x4b7806['id']==_0x275a77(0x100)?{'elementId':_0x4b7806['id']}:null};if(typeof _0x4b7806['id']!=_0x275a77(0x100)||_0x4b7806['id']['trim']()[_0x275a77(0x10a)]===0x0||!ne(_0x4b7806[_0x275a77(0xa2)])||_0x4b7806['parentId']!==void 0x0&&(typeof _0x4b7806['parentId']!='string'||_0x4b7806[_0x275a77(0xcc)][_0x275a77(0x13f)]()['length']===0x0))return{'ok':!0x1,'unsupported':!0x1,'message':_0x275a77(0x12a),...typeof _0x4b7806['id']=='string'?{'elementId':_0x4b7806['id']}:null};if(_0x4b7806['type']===e[_0x275a77(0x102)][_0x275a77(0xe6)]&&(!Array[_0x275a77(0xfb)](_0x4b7806['children'])||_0x4b7806[_0x275a77(0x138)][_0x275a77(0x91)](_0x4c88cd=>typeof _0x4c88cd!=_0x275a77(0x100)||_0x4c88cd['trim']()['length']===0x0)))return{'ok':!0x1,'unsupported':!0x1,'message':_0x275a77(0xd3),'elementId':_0x4b7806['id']};if(_0x4b7806[_0x275a77(0xda)]===e[_0x275a77(0x102)]['Connector']&&!te(_0x4b7806[_0x275a77(0xd7)]))return{'ok':!0x1,'unsupported':!0x1,'message':_0x275a77(0xfd),'elementId':_0x4b7806['id']};if(_0x4b7806[_0x275a77(0xda)]===e[_0x275a77(0x102)][_0x275a77(0xcf)]){let _0x1d7f04=p(_0x4b7806[_0x275a77(0xf0)])?_0x4b7806[_0x275a77(0xf0)]['behavior']:void 0x0;if(!p(_0x1d7f04)||typeof _0x1d7f04[_0x275a77(0xcb)]!=_0x275a77(0xfa)||typeof _0x1d7f04['acceptsContainer']!='boolean'||typeof _0x1d7f04[_0x275a77(0xb1)]!=_0x275a77(0xfa))return{'ok':!0x1,'unsupported':!0x1,'message':'Board\x20container\x20child\x20behavior\x20is\x20invalid.','elementId':_0x4b7806['id']};}return{'ok':!0x0,'element':_0x4b7806};}const C=['selected',_0x80be06(0xec),_0x80be06(0xa7),'isEditing',_0x80be06(0x110)];function w(_0x7ce264){const _0x4e5b67=_0x80be06;let _0x3fc37c=_0x7ce264;C[_0x4e5b67(0x11f)](_0x361969=>delete _0x3fc37c[_0x361969]);}function T(_0x57376c){const _0x24231b=_0x80be06;if(!p(_0x57376c)||_0x57376c[_0x24231b(0xda)]!==_0x24231b(0x82))return[{'code':_0x24231b(0x71),'message':'Invalid\x20Board\x20element\x20resource\x20payload.'}];let _0x304d4b=S(_0x57376c['element']);if(!_0x304d4b['ok'])return[{'code':_0x304d4b[_0x24231b(0x13d)]?_0x24231b(0xe5):_0x24231b(0x71),'message':_0x304d4b['message'],..._0x304d4b[_0x24231b(0x92)]?{'elementId':_0x304d4b[_0x24231b(0x92)]}:null}];let _0x382a22=_0x304d4b[_0x24231b(0x11a)];return _0x382a22['parentId']?[{'code':_0x24231b(0x71),'message':'A\x20standalone\x20Board\x20element\x20cannot\x20have\x20a\x20parent.','elementId':_0x382a22['id']}]:_0x382a22[_0x24231b(0xda)]===e[_0x24231b(0x102)][_0x24231b(0xe6)]&&_0x382a22['children'][_0x24231b(0x10a)]>0x0?[{'code':_0x24231b(0x71),'message':_0x24231b(0xac),'elementId':_0x382a22['id']}]:_0x382a22['type']===e[_0x24231b(0x102)]['Connector']&&x(_0x382a22)['some'](_0x353c56=>_0x353c56['kind']!=='free')?[{'code':_0x24231b(0x71),'message':_0x24231b(0xaf),'elementId':_0x382a22['id']}]:[];}function E(_0x587430){const _0x3d4549=_0x80be06;var _0x5642df,_0x3d09dc,_0x2ca484,_0x260e2e;let _0x228b8d=(_0x5642df=_0x587430[_0x3d4549(0xa2)][_0x3d4549(0x135)])==null?0x0:_0x5642df,_0x47ffaf=(_0x3d09dc=_0x587430[_0x3d4549(0xa2)][_0x3d4549(0x9e)])==null?0x0:_0x3d09dc,_0x25b823=(_0x2ca484=_0x587430[_0x3d4549(0xa2)][_0x3d4549(0x13e)])==null?0x0:_0x2ca484,_0x25b0d1=(_0x260e2e=_0x587430[_0x3d4549(0xa2)][_0x3d4549(0x9f)])==null?0x0:_0x260e2e;return{'left':_0x25b823>=0x0?_0x228b8d:_0x228b8d+_0x25b823,'top':_0x25b0d1>=0x0?_0x47ffaf:_0x47ffaf+_0x25b0d1,'width':Math['abs'](_0x25b823),'height':Math['abs'](_0x25b0d1)};}function D(_0x14b57e,_0x1d290d,_0x4cce8c,_0x488d26){const _0x158f9c=_0x80be06;var _0x5b7e80,_0x56cf9c;let _0x4a2752=t['Tools'][_0x158f9c(0x7f)](_0x14b57e[_0x158f9c(0x11a)]),_0xee3383=E(_0x4a2752),_0x31997f={'x':_0x1d290d['point']['x']-(_0xee3383[_0x158f9c(0x135)]+_0xee3383[_0x158f9c(0x13e)]/0x2),'y':_0x1d290d['point']['y']-(_0xee3383[_0x158f9c(0x9e)]+_0xee3383['height']/0x2)};return _0x4a2752['id']=_0x488d26(_0x14b57e[_0x158f9c(0x11a)]['id']),delete _0x4a2752[_0x158f9c(0xcc)],delete _0x4a2752[_0x158f9c(0x108)],w(_0x4a2752),_0x4a2752[_0x158f9c(0xa2)]={..._0x4a2752[_0x158f9c(0xa2)],'left':((_0x5b7e80=_0x4a2752[_0x158f9c(0xa2)][_0x158f9c(0x135)])==null?0x0:_0x5b7e80)+_0x31997f['x'],'top':((_0x56cf9c=_0x4a2752[_0x158f9c(0xa2)][_0x158f9c(0x9e)])==null?0x0:_0x56cf9c)+_0x31997f['y']},_0x4a2752[_0x158f9c(0xda)]===e[_0x158f9c(0x102)][_0x158f9c(0xd8)]&&(_0x4a2752=(0x0,e[_0x158f9c(0x7d)])(_0x4a2752,_0x31997f)),s(_0x4a2752,_0x4cce8c),{'elements':[_0x4a2752]};}function O(_0x25df97,_0x641f51){const _0x3615bb=_0x80be06;return{'code':_0x3615bb(0x111),'message':_0x25df97,..._0x641f51?{'elementId':_0x641f51}:null};}function k(_0x18a050){const _0xfa07a4=_0x80be06;return{'code':_0xfa07a4(0xe5),'message':_0xfa07a4(0x131)+String(_0x18a050['type'])+'.',...typeof _0x18a050['id']=='string'?{'elementId':_0x18a050['id']}:null};}function A(_0xb9c17){const _0x13a6fe=_0x80be06;if(!p(_0xb9c17)||_0xb9c17['type']!==_0x13a6fe(0x124)||!Array[_0x13a6fe(0xfb)](_0xb9c17[_0x13a6fe(0xf6)]))return[O('Invalid\x20Board\x20fragment\x20resource\x20payload.')];let _0x1e4bf6=_0xb9c17['elements'][_0x13a6fe(0x7c)](_0x3b7078=>{const _0x17925f=_0x13a6fe;let _0xa3098f=S(_0x3b7078);return _0xa3098f['ok']?null:_0xa3098f[_0x17925f(0x13d)]?k({'id':_0xa3098f[_0x17925f(0x92)],'type':p(_0x3b7078)?_0x3b7078[_0x17925f(0xda)]:void 0x0}):O(_0xa3098f[_0x17925f(0x137)],_0xa3098f['elementId']);})[_0x13a6fe(0x89)](_0x44aef1=>_0x44aef1!==null);return _0x1e4bf6[_0x13a6fe(0x10a)]>0x0?_0x1e4bf6:ie(_0xb9c17);}function ie(_0x38c0cb){const _0x13f5c9=_0x80be06;if(!Array['isArray'](_0x38c0cb[_0x13f5c9(0xf6)])||_0x38c0cb['elements'][_0x13f5c9(0x10a)]===0x0)return[O(_0x13f5c9(0xb5))];let _0x225c22=[],_0xb09eb9=new Set();if(_0x38c0cb[_0x13f5c9(0xf6)][_0x13f5c9(0x11f)](_0x50d9aa=>{const _0x2b31b6=_0x13f5c9;if(_0xb09eb9[_0x2b31b6(0xf2)](_0x50d9aa['id'])){_0x225c22['push'](O(_0x2b31b6(0xae)+_0x50d9aa['id']+'.',_0x50d9aa['id']));return;}_0xb09eb9[_0x2b31b6(0x113)](_0x50d9aa['id']);}),_0x225c22[_0x13f5c9(0x10a)]>0x0)return _0x225c22;let _0x559aeb=new Map(_0x38c0cb[_0x13f5c9(0xf6)]['map'](_0x48e7cb=>[_0x48e7cb['id'],_0x48e7cb]));_0x38c0cb[_0x13f5c9(0xf6)][_0x13f5c9(0x11f)](_0x2a5464=>{const _0x35386d=_0x13f5c9;if(_0x2a5464[_0x35386d(0xcc)]&&!_0xb09eb9[_0x35386d(0xf2)](_0x2a5464[_0x35386d(0xcc)])&&_0x225c22[_0x35386d(0x74)](O(_0x35386d(0xa4)+_0x2a5464[_0x35386d(0xcc)]+'.',_0x2a5464['id'])),_0x2a5464['parentId']&&_0xb09eb9[_0x35386d(0xf2)](_0x2a5464[_0x35386d(0xcc)])){let _0x18fdbf=_0x559aeb[_0x35386d(0xee)](_0x2a5464[_0x35386d(0xcc)]);_0x18fdbf[_0x35386d(0xda)]===e[_0x35386d(0x102)]['Container']?_0x18fdbf[_0x35386d(0xf0)][_0x35386d(0xb0)][_0x35386d(0xcb)]?_0x2a5464['type']===e[_0x35386d(0x102)][_0x35386d(0xcf)]&&(!_0x18fdbf[_0x35386d(0xf0)]['behavior'][_0x35386d(0x79)]||!_0x18fdbf[_0x35386d(0xf0)][_0x35386d(0xb0)][_0x35386d(0xb1)])&&_0x225c22['push'](O('Board\x20fragment\x20parent\x20does\x20not\x20accept\x20nested\x20containers.',_0x2a5464['id'])):_0x225c22['push'](O('Board\x20fragment\x20parent\x20does\x20not\x20accept\x20children.',_0x2a5464['id'])):_0x225c22['push'](O(_0x35386d(0xc3),_0x2a5464['id']));}_0x2a5464['type']===e['BoardElementType'][_0x35386d(0xe6)]&&_0x2a5464['children']['forEach'](_0x4f7c11=>{const _0x18f03d=_0x35386d;_0xb09eb9[_0x18f03d(0xf2)](_0x4f7c11)||_0x225c22[_0x18f03d(0x74)](O(_0x18f03d(0xca)+_0x4f7c11+'.',_0x2a5464['id']));}),_0x2a5464['type']===e[_0x35386d(0x102)][_0x35386d(0xd8)]&&x(_0x2a5464)[_0x35386d(0x11f)](_0x423d06=>{const _0x4435e6=_0x35386d;_0x423d06['kind']!==_0x4435e6(0xc6)&&!_0xb09eb9[_0x4435e6(0xf2)](_0x423d06['shapeId'])&&_0x225c22['push'](O(_0x4435e6(0xe9)+_0x423d06['shapeId']+'.',_0x2a5464['id']));});});let _0x2b9914=new Map(_0x38c0cb['elements'][_0x13f5c9(0x7c)](_0x230448=>[_0x230448['id'],_0x230448[_0x13f5c9(0xcc)]]));return _0x38c0cb['elements'][_0x13f5c9(0x11f)](_0xa1bf7d=>{const _0x420c00=_0x13f5c9;let _0x538bf0=new Set([_0xa1bf7d['id']]),_0x2de663=_0xa1bf7d[_0x420c00(0xcc)];for(;_0x2de663;){if(_0x538bf0[_0x420c00(0xf2)](_0x2de663)){_0x225c22[_0x420c00(0x74)](O(_0x420c00(0xbd),_0xa1bf7d['id']));break;}_0x538bf0[_0x420c00(0x113)](_0x2de663),_0x2de663=_0x2b9914['get'](_0x2de663);}}),_0x225c22;}function ae(_0x3923db,_0x8088e2){const _0x2775b7=_0x80be06;var _0x549912,_0x4a476e,_0x3b20ee,_0x192f83;let _0x40e3c3=(_0x549912=_0x3923db[_0x2775b7(0x135)])==null?0x0:_0x549912,_0x36732a=(_0x4a476e=_0x3923db['top'])==null?0x0:_0x4a476e,_0x33b80f=(_0x3b20ee=_0x3923db[_0x2775b7(0x13e)])==null?0x0:_0x3b20ee,_0x434400=(_0x192f83=_0x3923db[_0x2775b7(0x9f)])==null?0x0:_0x192f83,_0x22135f=_0x40e3c3+_0x8088e2['x'],_0x2b40f9=_0x36732a+_0x8088e2['y'];return{'left':_0x33b80f>=0x0?_0x22135f:_0x22135f+_0x33b80f,'top':_0x434400>=0x0?_0x2b40f9:_0x2b40f9+_0x434400,'width':Math[_0x2775b7(0xa1)](_0x33b80f),'height':Math[_0x2775b7(0xa1)](_0x434400)};}function oe(_0x554caf,_0x3a60f5){const _0x3c6d9c=_0x80be06;let _0xf3babf=_0x554caf['parentId'],_0x52cb94=0x0,_0x417952=0x0;for(;_0xf3babf;){var _0x25be48,_0x1a5edf;let _0x1b2262=_0x3a60f5['get'](_0xf3babf);if(!_0x1b2262)break;_0x52cb94+=(_0x25be48=_0x1b2262[_0x3c6d9c(0xa2)]['left'])==null?0x0:_0x25be48,_0x417952+=(_0x1a5edf=_0x1b2262[_0x3c6d9c(0xa2)][_0x3c6d9c(0x9e)])==null?0x0:_0x1a5edf,_0xf3babf=_0x1b2262['parentId'];}return{'x':_0x52cb94,'y':_0x417952};}function se(_0x51141c){const _0x3b05e3=_0x80be06;let _0xd37b27=new Map(_0x51141c['map'](_0x1894f6=>[_0x1894f6['id'],_0x1894f6])),_0x570c09=_0x51141c[_0x3b05e3(0x7c)](_0x52a454=>ae(_0x52a454[_0x3b05e3(0xa2)],oe(_0x52a454,_0xd37b27))),_0x54868f=Math['min'](..._0x570c09[_0x3b05e3(0x7c)](_0x318b2e=>_0x318b2e[_0x3b05e3(0x135)])),_0x3e91e5=Math[_0x3b05e3(0xf5)](..._0x570c09[_0x3b05e3(0x7c)](_0x3ffe21=>_0x3ffe21[_0x3b05e3(0x9e)])),_0x1614c8=Math[_0x3b05e3(0x85)](..._0x570c09[_0x3b05e3(0x7c)](_0x6acc55=>_0x6acc55[_0x3b05e3(0x135)]+_0x6acc55[_0x3b05e3(0x13e)])),_0x22c63f=Math['max'](..._0x570c09[_0x3b05e3(0x7c)](_0x4f5bcc=>_0x4f5bcc[_0x3b05e3(0x9e)]+_0x4f5bcc[_0x3b05e3(0x9f)]));return{'left':_0x54868f,'top':_0x3e91e5,'width':_0x1614c8-_0x54868f,'height':_0x22c63f-_0x3e91e5};}function j(_0x28bd52,_0x34be4b){const _0x22df60=_0x80be06;return _0x28bd52[_0x22df60(0xf7)]===_0x22df60(0xc6)?_0x28bd52:{..._0x28bd52,'shapeId':_0x34be4b[_0x22df60(0xee)](_0x28bd52[_0x22df60(0xa9)])};}function ce(_0x693674,_0x2fab17){const _0x4da96f=_0x80be06;var _0x3291a8;return{..._0x693674,'connectorData':{..._0x693674[_0x4da96f(0xd7)],'start':j(_0x693674[_0x4da96f(0xd7)][_0x4da96f(0x143)],_0x2fab17),'end':j(_0x693674[_0x4da96f(0xd7)][_0x4da96f(0xd0)],_0x2fab17),'curveData':_0x693674[_0x4da96f(0xd7)][_0x4da96f(0x115)]?{..._0x693674[_0x4da96f(0xd7)][_0x4da96f(0x115)],'anchors':(_0x3291a8=_0x693674['connectorData'][_0x4da96f(0x115)][_0x4da96f(0xe4)])==null?void 0x0:_0x3291a8[_0x4da96f(0x7c)](_0x91aff2=>({..._0x91aff2,..._0x91aff2[_0x4da96f(0x13a)]?{'endpoint':j(_0x91aff2[_0x4da96f(0x13a)],_0x2fab17)}:null}))}:_0x693674[_0x4da96f(0xd7)]['curveData']}};}function le(_0x235a75,_0x2ae96d){const _0x3cbcec=_0x80be06;return!_0x235a75[_0x3cbcec(0xcc)]&&!_0x2ae96d[_0x3cbcec(0xf2)](_0x235a75['id']);}function M(_0x335a96,_0x452779,_0x29addb,_0xcf96d3){const _0x1f85a4=_0x80be06;let _0x228310=A(_0x335a96);if(_0x228310['length']>0x0)return{'ok':!0x1,'diagnostics':_0x228310};let _0x2563ce=new Map(_0x335a96['elements'][_0x1f85a4(0x7c)](_0x32e103=>[_0x32e103['id'],_0xcf96d3(_0x32e103['id'])])),_0x322b3a=[..._0x2563ce[_0x1f85a4(0x73)]()];if(_0x322b3a[_0x1f85a4(0x91)](_0x315d2a=>typeof _0x315d2a!='string'||_0x315d2a[_0x1f85a4(0x13f)]()[_0x1f85a4(0x10a)]===0x0)||new Set(_0x322b3a)['size']!==_0x322b3a['length'])return{'ok':!0x1,'diagnostics':[O('Generated\x20Board\x20fragment\x20element\x20IDs\x20must\x20be\x20unique\x20and\x20non-empty.')]};let _0x2143ff=se(_0x335a96['elements']),_0x17ee7f={'x':_0x452779[_0x1f85a4(0x14d)]['x']-(_0x2143ff[_0x1f85a4(0x135)]+_0x2143ff['width']/0x2),'y':_0x452779[_0x1f85a4(0x14d)]['y']-(_0x2143ff[_0x1f85a4(0x9e)]+_0x2143ff[_0x1f85a4(0x9f)]/0x2)},_0xd57b44=new Set(_0x335a96[_0x1f85a4(0xf6)][_0x1f85a4(0x77)](_0x678c2b=>_0x678c2b['type']===e['BoardElementType'][_0x1f85a4(0xe6)]?_0x678c2b[_0x1f85a4(0x138)]:[]));return{'ok':!0x0,'value':{'elements':_0x335a96[_0x1f85a4(0xf6)][_0x1f85a4(0x7c)](_0x3e83f3=>{const _0x4877ff=_0x1f85a4;let _0x5166a6=t['Tools'][_0x4877ff(0x7f)](_0x3e83f3);if(w(_0x5166a6),_0x5166a6['id']=_0x2563ce[_0x4877ff(0xee)](_0x3e83f3['id']),_0x5166a6[_0x4877ff(0xcc)]&&(_0x5166a6[_0x4877ff(0xcc)]=_0x2563ce[_0x4877ff(0xee)](_0x5166a6['parentId'])),!_0x3e83f3['parentId']){var _0x58ec9f,_0x3eca71;_0x5166a6[_0x4877ff(0xa2)]={..._0x5166a6[_0x4877ff(0xa2)],'left':((_0x58ec9f=_0x5166a6[_0x4877ff(0xa2)]['left'])==null?0x0:_0x58ec9f)+_0x17ee7f['x'],'top':((_0x3eca71=_0x5166a6[_0x4877ff(0xa2)][_0x4877ff(0x9e)])==null?0x0:_0x3eca71)+_0x17ee7f['y']};}return _0x5166a6[_0x4877ff(0xda)]===e[_0x4877ff(0x102)]['Group']&&(_0x5166a6[_0x4877ff(0x138)]=_0x5166a6[_0x4877ff(0x138)]['map'](_0x4cc835=>_0x2563ce[_0x4877ff(0xee)](_0x4cc835))),_0x5166a6['type']===e[_0x4877ff(0x102)][_0x4877ff(0xd8)]&&(_0x5166a6=ce((0x0,e[_0x4877ff(0x7d)])(_0x5166a6,_0x17ee7f),_0x2563ce)),le(_0x3e83f3,_0xd57b44)&&s(_0x5166a6,_0x29addb),_0x5166a6;})}};}const N={'code':_0x80be06(0x86),'message':_0x80be06(0xe1)};function P(_0x20c5d2){const _0x37ce98=_0x80be06;return _0x37ce98(0x128)+encodeURIComponent(_0x20c5d2);}function F(_0x1c6855){const _0x4f6768=_0x80be06;let _0x171711=/^data:([^;,]+)((?:;[^,]*)*),(.*)$/is['exec'](_0x1c6855);if(!_0x171711)throw Error(_0x4f6768(0x75));let _0x53edf8=_0x171711[0x1]['trim']();if(_0x171711[0x2]['split'](';')[_0x4f6768(0x89)](Boolean)[_0x4f6768(0x91)](_0x44a47c=>_0x44a47c['toLowerCase']()===_0x4f6768(0x11d))){let _0x2457a5=atob(_0x171711[0x3]),_0x20cd49=Uint8Array[_0x4f6768(0x14e)](_0x2457a5,_0x1af189=>_0x1af189['charCodeAt'](0x0));return new Blob([_0x20cd49],{'type':_0x53edf8});}return new Blob([decodeURIComponent(_0x171711[0x3])],{'type':_0x53edf8});}async function I(_0x5a86c4){const _0x413a99=_0x80be06;let _0x4f8d72=new Uint8Array(await _0x5a86c4['arrayBuffer']()),_0x3417d6=0x8000,_0x593797='';for(let _0x9af04d=0x0;_0x9af04d<_0x4f8d72['length'];_0x9af04d+=_0x3417d6)_0x593797+=String[_0x413a99(0x12d)](..._0x4f8d72[_0x413a99(0xff)](_0x9af04d,_0x9af04d+_0x3417d6));return _0x413a99(0xce)+(_0x5a86c4[_0x413a99(0xda)]||'application/octet-stream')+_0x413a99(0x106)+btoa(_0x593797);}function L(_0x4c64fd,_0x4764d4,_0x377410){const _0x1ef2f8=_0x80be06;let _0x7c175a=Number['isFinite'](_0x4c64fd)&&_0x4c64fd>0x0?_0x4c64fd:_0x377410[_0x1ef2f8(0xad)],_0x2a5620=Number['isFinite'](_0x4764d4)&&_0x4764d4>0x0?_0x4764d4:_0x377410[_0x1ef2f8(0x109)],_0x1c3b73=Math[_0x1ef2f8(0xf5)](_0x377410[_0x1ef2f8(0x13c)]/_0x7c175a,_0x377410['maxHeight']/_0x2a5620,Math[_0x1ef2f8(0x85)](0x1,_0x377410[_0x1ef2f8(0x13b)]/Math[_0x1ef2f8(0xf5)](_0x7c175a,_0x2a5620)));return{'width':Math[_0x1ef2f8(0x96)](_0x7c175a*_0x1c3b73),'height':Math[_0x1ef2f8(0x96)](_0x2a5620*_0x1c3b73)};}async function R(_0x2b5c18,_0x125856){const _0x4bfe12=_0x80be06;if(_0x2b5c18[_0x4bfe12(0xda)]===_0x4bfe12(0xeb))return new Blob([_0x2b5c18[_0x4bfe12(0x104)]],{'type':'image/svg+xml'});if(_0x2b5c18['type']===_0x4bfe12(0x14a))return F(_0x2b5c18['value']);let _0x53571a=await _0x125856(_0x2b5c18['value']);if(!_0x53571a['ok'])throw Error(_0x4bfe12(0xf1));return _0x53571a['blob']();}async function z(_0x286eec,_0x3efc6f,_0x132759){const _0x43661a=_0x80be06;if(_0x286eec['intrinsicSize']!==void 0x0)return{'source':_0x286eec[_0x43661a(0xdb)]['type']===_0x43661a(0xeb)?P(_0x286eec[_0x43661a(0xdb)][_0x43661a(0x104)]):_0x286eec[_0x43661a(0xdb)]['value'],'imageSourceType':t[_0x43661a(0xab)][_0x43661a(0x87)],'width':_0x286eec['intrinsicSize'][_0x43661a(0x13e)],'height':_0x286eec['intrinsicSize']['height']};if(_0x286eec[_0x43661a(0xdb)][_0x43661a(0xda)]==='url')return{'source':_0x286eec[_0x43661a(0xdb)][_0x43661a(0x104)],'imageSourceType':t[_0x43661a(0xab)]['URL'],'width':_0x132759['fallbackWidth'],'height':_0x132759[_0x43661a(0x109)]};let _0x505b07=_0x286eec[_0x43661a(0xdb)][_0x43661a(0xda)]==='svgText'?P(_0x286eec[_0x43661a(0xdb)][_0x43661a(0x104)]):_0x286eec['source']['value'],_0x57a538=await _0x3efc6f(_0x505b07);return{'source':_0x505b07,'imageSourceType':t['ImageSourceType'][_0x43661a(0x87)],'width':_0x57a538['width'],'height':_0x57a538[_0x43661a(0x9f)],'image':_0x57a538[_0x43661a(0xb9)]};}async function B(_0xdaf39d,_0x467893,_0x254cf7,_0x20c7a2){const _0x2e4e05=_0x80be06;var _0x474ae3;let _0x3e1453=(_0x474ae3=_0x254cf7[_0x2e4e05(0x8f)])==null?_0x528f99=>fetch(_0x528f99):_0x474ae3,_0x5b8b4e=await R(_0xdaf39d[_0x2e4e05(0xdb)],_0x3e1453),_0x40d8fb=await I(_0x5b8b4e),_0x517ef5=await _0x20c7a2(_0x40d8fb);if(!_0x254cf7[_0x2e4e05(0x10c)])return{'source':_0x40d8fb,'imageSourceType':t[_0x2e4e05(0xab)]['URL'],'width':_0x517ef5[_0x2e4e05(0x13e)],'height':_0x517ef5[_0x2e4e05(0x9f)],'image':_0x517ef5[_0x2e4e05(0xb9)]};let _0x1bdab3=new File([_0x5b8b4e],_0x467893[_0x2e4e05(0xb8)],{'type':_0x5b8b4e[_0x2e4e05(0xda)]||_0x2e4e05(0xc2)}),_0x25603c=await _0x254cf7['imageIoService'][_0x2e4e05(0x10d)](_0x1bdab3);if(!_0x25603c)throw Error(_0x2e4e05(0x9d));return _0x517ef5[_0x2e4e05(0xb9)]&&_0x254cf7[_0x2e4e05(0x10c)]['addImageSourceCache'](_0x25603c['source'],_0x25603c[_0x2e4e05(0x123)],_0x517ef5['image']),{'source':_0x25603c[_0x2e4e05(0xdb)],'imageSourceType':_0x25603c['imageSourceType'],'width':_0x517ef5[_0x2e4e05(0x13e)],'height':_0x517ef5['height'],'image':_0x517ef5[_0x2e4e05(0xb9)]};}async function V(_0x456807,_0x3adee8,_0x341df6,_0x487c1d={}){const _0x4a2ac3=_0x80be06;try{var _0x5b8ff4,_0x5d0524,_0x4cf47b,_0x4fa266;let _0x6c128f={...u,..._0x487c1d[_0x4a2ac3(0xc1)]},_0x58fd76=(_0x5b8ff4=_0x487c1d[_0x4a2ac3(0xb2)])==null?n[_0x4a2ac3(0xe2)]:_0x5b8ff4,_0x9343fd=((_0x5d0524=_0x456807[_0x4a2ac3(0xfc)])==null?'reference':_0x5d0524)===_0x4a2ac3(0xb7)?await B(_0x456807,_0x341df6,_0x487c1d,_0x58fd76):await z(_0x456807,_0x58fd76,_0x6c128f),_0x325940=L(_0x9343fd['width'],_0x9343fd[_0x4a2ac3(0x9f)],_0x6c128f),_0x1647b2=(0x0,e[_0x4a2ac3(0xf3)])({'id':(_0x4cf47b=(_0x4fa266=_0x487c1d['createId'])==null?void 0x0:_0x4fa266[_0x4a2ac3(0x103)](_0x487c1d))==null?(0x0,t['generateRandomId'])(0x6):_0x4cf47b,'source':_0x9343fd[_0x4a2ac3(0xdb)],'imageSourceType':_0x9343fd[_0x4a2ac3(0x123)],'left':_0x3adee8[_0x4a2ac3(0x14d)]['x']-_0x325940[_0x4a2ac3(0x13e)]/0x2,'top':_0x3adee8['point']['y']-_0x325940['height']/0x2,'width':_0x325940[_0x4a2ac3(0x13e)],'height':_0x325940[_0x4a2ac3(0x9f)]});return s(_0x1647b2,_0x341df6,_0x456807[_0x4a2ac3(0x11c)]),{'ok':!0x0,'value':{'elements':[_0x1647b2]}};}catch{return{'ok':!0x1,'diagnostics':[N]};}}var H=_0x80be06(0x95),U=_0x80be06(0xbe);function _0xe1aa(){const _0x4e125e=['url','dataUrl','boundaryRatio','setConfig','point','from','553Fvvkna','object','shapeSite','invalid-board-element','packageName','values','push','Invalid\x20data\x20URL.','generateRandomId','flatMap','IResourceRegistryService','acceptsContainer','boards-resources.config','4672332pdemaZ','map','offsetBoardConnectorGeometry','BOARD_RESOURCE_IMAGE_DEFAULT_CONFIG','deepClone','writeBoardResourceMetadata','Module','boardElement','connectionSiteId','manual','max','image-resolution-failed','URL','segmentIndex','filter','boards-resources.materializer.service','4354370lNTXYP','85246pLlbLw','Shape','disposeWithMe','fetcher','outlineIndex','some','elementId','Disposable','symbol','@univerjs-pro/boards-resources','round','Plugin','Text','Optional','waypoints','Invalid\x20image\x20resource\x20payload.','UniverResourcesPlugin','Unable\x20to\x20persist\x20managed\x20image.','top','height','IConfigService','abs','transform','881964fIdlJj','Unknown\x20parent\x20element\x20ID:\x20','2350595dbHynF','iterator','isHovered','executeCommand','shapeId','onStarting','ImageSourceType','A\x20standalone\x20Board\x20group\x20cannot\x20reference\x20child\x20elements.','fallbackWidth','Duplicate\x20Board\x20fragment\x20element\x20ID:\x20','A\x20standalone\x20Board\x20connector\x20cannot\x20bind\x20to\x20another\x20element.','behavior','allowNested','resolveImageSize','materializeBoardFragmentResource','Media','A\x20Board\x20fragment\x20must\x20contain\x20at\x20least\x20one\x20element.','pluginName','managed','resourceId','image','materializeBoardElementResource','UNIVER_BOARDS_RESOURCES_PLUGIN','_disposed','Cyclic\x20Board\x20fragment\x20parent\x20relationship.','1.0.0-insiders.20260717-1e84621','custom','Injector','imageConfig','application/octet-stream','Board\x20fragment\x20parents\x20must\x20be\x20container\x20elements.','default','every','free','Placeholder','routePoints','isInteger','Unknown\x20group\x20child\x20element\x20ID:\x20','acceptsChildren','parentId','_injector','data:','Container','end','Inject','invalid-image-payload','Board\x20group\x20children\x20must\x20be\x20non-empty\x20string\x20IDs.','validate','IUniverInstanceService','prototype','connectorData','Connector','merge','type','source','BOARDS_RESOURCES_PLUGIN_CONFIG_KEY','1582539osKKCj','localUV','register','aborted','Unable\x20to\x20resolve\x20the\x20resource\x20image.','getImageSize','ICommandService','anchors','unsupported-board-element','Group','AddBoardElementOperation','number','Unknown\x20connector\x20endpoint\x20element\x20ID:\x20','26024xTDIKm','svgText','isSelected','BoardResourceMaterializerService','get','function','containerData','Unable\x20to\x20fetch\x20managed\x20image.','has','createBoardImageElement','registryId','min','elements','kind','payload','createIdentifier','boolean','isArray','storagePolicy','Board\x20connector\x20geometry\x20is\x20invalid.','lifeline','subarray','string','4RUkIDU','BoardElementType','call','value','Image',';base64,','shapeBoundary','laneId','fallbackHeight','length','UniverLicensePlugin','imageIoService','saveImage','UNIVER_BOARD','orthogonalData','runtimeState','invalid-board-fragment','segmentT','add','getActivePageId','curveData','decorate','unitId','BOARDS_RESOURCES_PLUGIN_NAME','_isCurrentContext','element','toPrimitive','initialColor','base64','22UrEFzJ','forEach','UniverInstanceType','_commandService','_handlers','imageSourceType','boardFragment','_instanceService','Chart','schemaVersion','data:image/svg+xml;charset=utf-8,','subUnitId','Board\x20elements\x20require\x20a\x20non-empty\x20ID,\x20valid\x20parent\x20ID,\x20and\x20finite\x20transform.','AddBoardElementsOperation','offsetY','fromCharCode','materialize','IResourcePayloadHandlerRegistryService','version','Unsupported\x20Board\x20element\x20type:\x20','getOwnPropertyDescriptor','intrinsicSize','defineProperty','left','signal','message','children','_config','endpoint','minEdge','maxWidth','unsupported','width','trim','color','_imageIoService','readBoardResourceMetadata','start','isFinite','_registry','controls','resources','Table'];_0xe1aa=function(){return _0x4e125e;};return _0xe1aa();}function W(_0x5b9dc0,_0x1b699d){return function(_0xae8e37,_0x3585b1){_0x1b699d(_0xae8e37,_0x3585b1,_0x5b9dc0);};}function G(_0x2cc203,_0x30f660,_0x1d2080,_0x489d88){const _0x119ca7=_0x80be06;var _0x537375=arguments['length'],_0x1e649f=_0x537375<0x3?_0x30f660:_0x489d88===null?_0x489d88=Object[_0x119ca7(0x132)](_0x30f660,_0x1d2080):_0x489d88,_0x5e4715;if(typeof Reflect==_0x119ca7(0x6f)&&typeof Reflect[_0x119ca7(0x116)]==_0x119ca7(0xef))_0x1e649f=Reflect['decorate'](_0x2cc203,_0x30f660,_0x1d2080,_0x489d88);else{for(var _0x2be383=_0x2cc203[_0x119ca7(0x10a)]-0x1;_0x2be383>=0x0;_0x2be383--)(_0x5e4715=_0x2cc203[_0x2be383])&&(_0x1e649f=(_0x537375<0x3?_0x5e4715(_0x1e649f):_0x537375>0x3?_0x5e4715(_0x30f660,_0x1d2080,_0x1e649f):_0x5e4715(_0x30f660,_0x1d2080))||_0x1e649f);}return _0x537375>0x3&&_0x1e649f&&Object[_0x119ca7(0x134)](_0x30f660,_0x1d2080,_0x1e649f),_0x1e649f;}const K=(0x0,t[_0x80be06(0xf9)])(_0x80be06(0x8a));function ue(_0x3f9dbb){const _0x1491e9=_0x80be06;return typeof _0x3f9dbb!=_0x1491e9(0x6f)||!_0x3f9dbb||!('ok'in _0x3f9dbb)||_0x3f9dbb['ok']!==!0x0||!(_0x1491e9(0x104)in _0x3f9dbb)||typeof _0x3f9dbb[_0x1491e9(0x104)]!=_0x1491e9(0x6f)||_0x3f9dbb['value']===null||!(_0x1491e9(0xf6)in _0x3f9dbb[_0x1491e9(0x104)])||!Array[_0x1491e9(0xfb)](_0x3f9dbb[_0x1491e9(0x104)]['elements'])||_0x3f9dbb[_0x1491e9(0x104)][_0x1491e9(0xf6)]['length']===0x0?null:_0x3f9dbb[_0x1491e9(0x104)][_0x1491e9(0xf6)];}let q=class extends t[_0x80be06(0x93)]{constructor(_0xf69265,_0x1a1114,_0x22aaee,_0x43b3e0){const _0x2ac202=_0x80be06;super(),this[_0x2ac202(0x145)]=_0xf69265,this['_handlers']=_0x1a1114,this[_0x2ac202(0x121)]=_0x22aaee,this[_0x2ac202(0x125)]=_0x43b3e0;}async[_0x80be06(0x12e)](_0x24b8a3,_0xacc5a0,_0x235a6c){const _0x2d2b4d=_0x80be06;var _0x57d390,_0x1ab9ff;if(!(_0x235a6c==null||(_0x57d390=_0x235a6c[_0x2d2b4d(0x136)])==null)&&_0x57d390[_0x2d2b4d(0xe0)]||this[_0x2d2b4d(0xbc)]||!this['_isCurrentContext'](_0xacc5a0))return!0x1;let _0x143bb5=this[_0x2d2b4d(0x145)][_0x2d2b4d(0xee)](_0x24b8a3);if(!_0x143bb5)return!0x1;let _0x4892bd=this[_0x2d2b4d(0x122)][_0x2d2b4d(0xee)](_0x143bb5[_0x2d2b4d(0xf8)][_0x2d2b4d(0xda)]);if(!_0x4892bd||_0x4892bd[_0x2d2b4d(0xd4)](_0x143bb5[_0x2d2b4d(0xf8)])['length']>0x0)return!0x1;let _0x4d9b26;try{_0x4d9b26=await _0x4892bd['materialize'](_0x143bb5[_0x2d2b4d(0xf8)],_0xacc5a0,_0x24b8a3);}catch{return!0x1;}let _0x13b023=ue(_0x4d9b26);if(!_0x13b023||!(_0x235a6c==null||(_0x1ab9ff=_0x235a6c['signal'])==null)&&_0x1ab9ff['aborted']||this['_disposed']||!this[_0x2d2b4d(0x119)](_0xacc5a0)||this[_0x2d2b4d(0x145)]['get'](_0x24b8a3)!==_0x143bb5)return!0x1;try{return _0x13b023[_0x2d2b4d(0x10a)]===0x1?!!await this['_commandService'][_0x2d2b4d(0xa8)](e[_0x2d2b4d(0xe7)]['id'],{'unitId':_0xacc5a0[_0x2d2b4d(0x117)],'subUnitId':_0xacc5a0['subUnitId'],'element':_0x13b023[0x0]}):!!await this[_0x2d2b4d(0x121)]['executeCommand'](e[_0x2d2b4d(0x12b)]['id'],{'unitId':_0xacc5a0['unitId'],'subUnitId':_0xacc5a0[_0x2d2b4d(0x129)],'elements':_0x13b023});}catch{return!0x1;}}['_isCurrentContext'](_0x4bc8a0){const _0x371951=_0x80be06;let _0x553b29=this[_0x371951(0x125)]['getCurrentUnitOfType'](t[_0x371951(0x120)][_0x371951(0x10e)]);return(_0x553b29==null?void 0x0:_0x553b29['getUnitId']())===_0x4bc8a0[_0x371951(0x117)]&&_0x553b29[_0x371951(0x114)]()===_0x4bc8a0[_0x371951(0x129)];}};q=G([W(0x0,i[_0x80be06(0x78)]),W(0x1,i[_0x80be06(0x12f)]),W(0x2,t[_0x80be06(0xe3)]),W(0x3,t[_0x80be06(0xd5)])],q);function _0x3d6f(_0x711a13,_0xd7a0e7){_0x711a13=_0x711a13-0x6f;const _0xe1aa4c=_0xe1aa();let _0x3d6f46=_0xe1aa4c[_0x711a13];return _0x3d6f46;}function J(_0x3e8226){'@babel/helpers - typeof';const _0x4f1fc2=_0x80be06;return J=typeof Symbol==_0x4f1fc2(0xef)&&typeof Symbol[_0x4f1fc2(0xa6)]=='symbol'?function(_0x48631e){return typeof _0x48631e;}:function(_0x1a84a1){const _0x5a37f0=_0x4f1fc2;return _0x1a84a1&&typeof Symbol=='function'&&_0x1a84a1['constructor']===Symbol&&_0x1a84a1!==Symbol[_0x5a37f0(0xd6)]?_0x5a37f0(0x94):typeof _0x1a84a1;},J(_0x3e8226);}function de(_0x4edd7e,_0x26edb7){const _0x59db48=_0x80be06;if(J(_0x4edd7e)!=_0x59db48(0x6f)||!_0x4edd7e)return _0x4edd7e;var _0x458804=_0x4edd7e[Symbol[_0x59db48(0x11b)]];if(_0x458804!==void 0x0){var _0x53acbf=_0x458804[_0x59db48(0x103)](_0x4edd7e,_0x26edb7||_0x59db48(0xc4));if(J(_0x53acbf)!=_0x59db48(0x6f))return _0x53acbf;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x26edb7==='string'?String:Number)(_0x4edd7e);}function fe(_0x3e506b){const _0x52bce1=_0x80be06;var _0xcb8fa6=de(_0x3e506b,_0x52bce1(0x100));return J(_0xcb8fa6)==_0x52bce1(0x94)?_0xcb8fa6:_0xcb8fa6+'';}function Y(_0x4e8973,_0x30d27d,_0x38f381){return(_0x30d27d=fe(_0x30d27d))in _0x4e8973?Object['defineProperty'](_0x4e8973,_0x30d27d,{'value':_0x38f381,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4e8973[_0x30d27d]=_0x38f381,_0x4e8973;}const X=_0x80be06(0xbb);function Z(_0x4c5752){return[{'code':'invalid-image-payload','message':_0x4c5752}];}function pe(_0x3a8d7){const _0x313f18=_0x80be06;return _0x3a8d7===void 0x0||p(_0x3a8d7)&&typeof _0x3a8d7['width']=='number'&&Number[_0x313f18(0x144)](_0x3a8d7[_0x313f18(0x13e)])&&_0x3a8d7[_0x313f18(0x13e)]>0x0&&typeof _0x3a8d7[_0x313f18(0x9f)]==_0x313f18(0xe8)&&Number['isFinite'](_0x3a8d7[_0x313f18(0x9f)])&&_0x3a8d7[_0x313f18(0x9f)]>0x0;}function me(_0x386ba7){const _0x39d7ff=_0x80be06;if(!p(_0x386ba7)||_0x386ba7['type']!=='image'||!p(_0x386ba7[_0x39d7ff(0xdb)]))return Z(_0x39d7ff(0x9b));let _0x3ec85b=_0x386ba7['source'];return _0x3ec85b[_0x39d7ff(0xda)]!==_0x39d7ff(0x149)&&_0x3ec85b[_0x39d7ff(0xda)]!==_0x39d7ff(0x14a)&&_0x3ec85b['type']!==_0x39d7ff(0xeb)||typeof _0x3ec85b[_0x39d7ff(0x104)]!=_0x39d7ff(0x100)||_0x386ba7[_0x39d7ff(0xfc)]!==void 0x0&&_0x386ba7[_0x39d7ff(0xfc)]!=='reference'&&_0x386ba7[_0x39d7ff(0xfc)]!==_0x39d7ff(0xb7)||!pe(_0x386ba7[_0x39d7ff(0x133)])||_0x386ba7[_0x39d7ff(0x11c)]!==void 0x0&&typeof _0x386ba7[_0x39d7ff(0x11c)]!=_0x39d7ff(0x100)?Z('Invalid\x20image\x20resource\x20payload.'):[];}function Q(_0x49208f){const _0x22178f=_0x80be06;return _0x49208f[_0x22178f(0x7c)](({message:_0x35d74e})=>({'code':_0x22178f(0xd2),'message':_0x35d74e}));}let $=class extends t[_0x80be06(0x97)]{constructor(_0x5290ce=d,_0x512abf,_0x42b9e7,_0x36a314){const _0x529f30=_0x80be06;super(),this[_0x529f30(0x139)]=_0x5290ce,this[_0x529f30(0xcd)]=_0x512abf,this['_configService']=_0x42b9e7,this[_0x529f30(0x141)]=_0x36a314;let {..._0x15168a}=(0x0,t[_0x529f30(0xd9)])({},d,this[_0x529f30(0x139)]);this['_configService'][_0x529f30(0x14c)](l,_0x15168a);}[_0x80be06(0xaa)](){const _0x52ec7d=_0x80be06;this[_0x52ec7d(0xcd)][_0x52ec7d(0x113)]([K,{'useClass':q}]),this[_0x52ec7d(0x8e)](this[_0x52ec7d(0xcd)]['get'](K));let _0x5e3596=this[_0x52ec7d(0xcd)]['get'](i['IResourcePayloadHandlerRegistryService']),_0x156ff1={...u,...this[_0x52ec7d(0x139)][_0x52ec7d(0xb9)]},_0x51f315=()=>(0x0,t[_0x52ec7d(0x76)])(0x6);[_0x5e3596[_0x52ec7d(0xdf)]({'type':_0x52ec7d(0xb9),'validate':me,'materialize':(_0x3cf0c3,_0x1eebbf,_0x4ab259)=>V(_0x3cf0c3,_0x1eebbf,_0x4ab259,{'imageIoService':this['_imageIoService'],'imageConfig':_0x156ff1,'createId':_0x51f315})}),_0x5e3596[_0x52ec7d(0xdf)]({'type':_0x52ec7d(0x82),'validate':_0x120f79=>Q(T(_0x120f79)),'materialize':(_0x2add28,_0x1ac542,_0x54cc54)=>{let _0x135774=T(_0x2add28);return _0x135774['length']>0x0?{'ok':!0x1,'diagnostics':_0x135774}:{'ok':!0x0,'value':D(_0x2add28,_0x1ac542,_0x54cc54,()=>_0x51f315())};}}),_0x5e3596[_0x52ec7d(0xdf)]({'type':'boardFragment','validate':_0x1adf98=>Q(A(_0x1adf98)),'materialize':(_0x332597,_0x4b4ae2,_0x36804a)=>M(_0x332597,_0x4b4ae2,_0x36804a,()=>_0x51f315())})][_0x52ec7d(0x11f)](_0x1b42fb=>{const _0x217f97=_0x52ec7d;_0x1b42fb&&this[_0x217f97(0x8e)](_0x1b42fb);});}};Y($,_0x80be06(0xb6),X),Y($,_0x80be06(0x72),H),Y($,_0x80be06(0x130),U),Y($,_0x80be06(0xda),t[_0x80be06(0x120)][_0x80be06(0x10e)]),$=G([(0x0,t['DependentOn'])(r[_0x80be06(0x10b)],e['UniverBoardsPlugin'],i[_0x80be06(0x9c)]),W(0x1,(0x0,t[_0x80be06(0xd1)])(t[_0x80be06(0xc0)])),W(0x2,t[_0x80be06(0xa0)]),W(0x3,(0x0,t[_0x80be06(0x99)])(t['IImageIoService']))],$),exports[_0x80be06(0xdc)]=l,exports[_0x80be06(0x118)]=X,exports[_0x80be06(0x7e)]=u,Object[_0x80be06(0x134)](exports,_0x80be06(0xed),{'enumerable':!0x0,'get':function(){return q;}}),exports['IBoardResourceMaterializerService']=K,Object[_0x80be06(0x134)](exports,'UniverBoardsResourcesPlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports['createBoardResourceMetadata']=o,exports[_0x80be06(0xba)]=D,exports[_0x80be06(0xb3)]=M,exports['materializeBoardImageResource']=V,exports[_0x80be06(0x142)]=c,exports['validateBoardElementResourcePayload']=T,exports['validateBoardFragmentResourcePayload']=A,exports[_0x80be06(0x80)]=s;
|
package/lib/es/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x1212d5=_0x550c;(function(_0x10ba15,_0x5abdd7){const _0x1cd1ea=_0x550c,_0x4c3044=_0x10ba15();while(!![]){try{const _0x27a8d6=parseInt(_0x1cd1ea(0x114))/0x1*(-parseInt(_0x1cd1ea(0x16c))/0x2)+-parseInt(_0x1cd1ea(0xd8))/0x3*(parseInt(_0x1cd1ea(0x163))/0x4)+parseInt(_0x1cd1ea(0x15d))/0x5+-parseInt(_0x1cd1ea(0xd2))/0x6+-parseInt(_0x1cd1ea(0xdd))/0x7+-parseInt(_0x1cd1ea(0xdb))/0x8+parseInt(_0x1cd1ea(0x145))/0x9;if(_0x27a8d6===_0x5abdd7)break;else _0x4c3044['push'](_0x4c3044['shift']());}catch(_0x352400){_0x4c3044['push'](_0x4c3044['shift']());}}}(_0x2e8e,0x28a2b));import{AddBoardElementOperation as _0x5c3592,AddBoardElementsOperation as _0x4bc327,BoardElementType as _0x41a8de,UniverBoardsPlugin as _0x15e09f,createBoardImageElement as _0xb60578,offsetBoardConnectorGeometry as _0x1133ae}from'@univerjs-pro/boards';import{DependentOn as _0x1f35fc,Disposable as _0x48e618,ICommandService as _0x1dde9f,IConfigService as _0xc16e57,IImageIoService as _0x558bb2,IUniverInstanceService as _0x174a3c,ImageSourceType as _0x2e244b,Inject as _0x2555c1,Injector as _0x4aec64,Optional as _0x9d8c73,Plugin as _0x5111af,Tools as _0x5091c7,UniverInstanceType as _0x8b0e70,createIdentifier as _0x57b827,generateRandomId as _0x35d010,merge as _0x53f873}from'@univerjs/core';function _0x2e8e(){const _0x513b72=['function','left','unsupported','version','curveData','Cyclic\x20Board\x20fragment\x20parent\x20relationship.','executeCommand','206mMdLNn','shapeId','decorate','acceptsChildren','Table','_registry','Media','transform','_isCurrentContext','iterator','register','image','Unknown\x20connector\x20endpoint\x20element\x20ID:\x20','Duplicate\x20Board\x20fragment\x20element\x20ID:\x20','height','prototype','minEdge','Unable\x20to\x20persist\x20managed\x20image.','exec','arrayBuffer','color','Connector','maxHeight','boardFragment','@univerjs-pro/boards-resources','number','default','segmentIndex','Board\x20elements\x20require\x20a\x20non-empty\x20ID,\x20valid\x20parent\x20ID,\x20and\x20finite\x20transform.','URL','split','Unknown\x20parent\x20element\x20ID:\x20','Group','push','custom','saveImage','intrinsicSize','UNIVER_BOARDS_RESOURCES_PLUGIN','dataUrl','top','abs','initialColor','children','fallbackWidth','width','get','waypoints','some','Board\x20fragment\x20parents\x20must\x20be\x20container\x20elements.','11281887QBtTXA','managed','endpoint','isHovered','start','isFinite','Board\x20elements\x20must\x20be\x20objects.','parentId','resources','invalid-image-payload','behavior','Invalid\x20data\x20URL.','auto','segmentT','runtimeState','boardElement','subarray','svgText','subUnitId','_commandService','getOwnPropertyDescriptor','imageConfig','disposeWithMe','anchors','113220NbScew','boolean','unitId','getCurrentUnitOfType','reference','payload','1136LPcGxk','round','min','value','isEditing','data:image/svg+xml;charset=utf-8,','from','source','boards-resources.config','2982WJOorj','symbol','allowNested','Container','Image','elements','message','pluginName','containerData','defineProperty','unsupported-board-element','isInteger','selected','trim','Invalid\x20image\x20resource\x20payload.','blob','point','orthogonalData','Board\x20fragment\x20parent\x20does\x20not\x20accept\x20children.','Text','storagePolicy','boards-resources.materializer.service','elementId','fromCharCode','free','add','imageSourceType','deepClone','registryId','Shape','controls','charCodeAt','fallbackHeight','boundaryRatio','maxWidth','A\x20standalone\x20Board\x20group\x20cannot\x20reference\x20child\x20elements.','_handlers','1173744ocPZVD','onStarting','Unknown\x20group\x20child\x20element\x20ID:\x20','getActivePageId','Unsupported\x20Board\x20element\x20type:\x20','Invalid\x20Board\x20element\x20resource\x20payload.','2316mVCawe','base64','packageName','1138832HIfBiR','resourceId','1717604rQMGnk','schemaVersion','localUV','connectorData','max','_config','end','materialize','call','object','type','image-resolution-failed','Unable\x20to\x20resolve\x20the\x20resource\x20image.','1.0.0-insiders.20260717-1e84621','_disposed','string','imageIoService','invalid-board-element','addImageSourceCache','every','element','forEach','toPrimitive','kind','connectionSiteId','Chart','isSelected','isArray','aborted','filter','map','size','outlineIndex','has','shapeBoundary','url','invalid-board-fragment','image/svg+xml','length','createId','fetcher','acceptsContainer','_imageIoService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','routePoints','_injector','fallbackPoint','Unable\x20to\x20fetch\x20managed\x20image.'];_0x2e8e=function(){return _0x513b72;};return _0x2e8e();}import{getImageSize as _0x5f16ed}from'@univerjs/drawing';import{UniverLicensePlugin as _0x3b6559}from'@univerjs-pro/license';import{IResourcePayloadHandlerRegistryService as _0x1e53f7,IResourceRegistryService as _0x31cce8,UniverResourcesPlugin as _0x4b691a}from'@univerjs-pro/resources';function y(_0x53db0b){const _0x4e925c=_0x550c;return typeof _0x53db0b=='object'&&!!_0x53db0b&&!Array[_0x4e925c(0xf8)](_0x53db0b);}function b(_0x532434,_0x440976){const _0x21211c=_0x550c;return{'schemaVersion':0x1,'registryId':_0x532434[_0x21211c(0x188)],'resourceId':_0x532434[_0x21211c(0xdc)],..._0x440976===void 0x0?null:{'color':_0x440976}};}function x(_0x5addff,_0x2fb0bb,_0x944d3a){const _0x5331da=_0x550c;_0x5addff[_0x5331da(0x136)]={...y(_0x5addff[_0x5331da(0x136)])?_0x5addff[_0x5331da(0x136)]:{},'resources':b(_0x2fb0bb,_0x944d3a)};}function ce(_0x19e8ce){const _0x56557e=_0x550c;if(!y(_0x19e8ce[_0x56557e(0x136)])||!y(_0x19e8ce[_0x56557e(0x136)][_0x56557e(0x14d)]))return null;let _0x112a8c=_0x19e8ce['custom'][_0x56557e(0x14d)];return _0x112a8c[_0x56557e(0xde)]!==0x1||typeof _0x112a8c[_0x56557e(0x188)]!=_0x56557e(0xec)||typeof _0x112a8c['resourceId']!='string'||_0x112a8c[_0x56557e(0x128)]!==void 0x0&&typeof _0x112a8c[_0x56557e(0x128)]!='string'?null:{'schemaVersion':0x1,'registryId':_0x112a8c[_0x56557e(0x188)],'resourceId':_0x112a8c[_0x56557e(0xdc)],..._0x112a8c['color']===void 0x0?null:{'color':_0x112a8c[_0x56557e(0x128)]}};}const S=_0x1212d5(0x16b),C={'fallbackWidth':0x140,'fallbackHeight':0xb4,'minEdge':0x50,'maxWidth':1075.2,'maxHeight':604.8},w={},le=new Set([_0x41a8de['Placeholder'],_0x41a8de[_0x1212d5(0x17f)],_0x41a8de[_0x1212d5(0x189)],_0x41a8de[_0x1212d5(0x170)],_0x41a8de[_0x1212d5(0xf6)],_0x41a8de[_0x1212d5(0x118)],_0x41a8de[_0x1212d5(0x11a)],_0x41a8de[_0x1212d5(0x134)],_0x41a8de[_0x1212d5(0x129)],_0x41a8de[_0x1212d5(0x16f)]]);function T(_0x23ec6c){const _0x130188=_0x1212d5;return typeof _0x23ec6c=='object'&&!!_0x23ec6c&&!Array[_0x130188(0xf8)](_0x23ec6c);}function E(_0x364d35){return typeof _0x364d35=='number'&&Number['isFinite'](_0x364d35);}function D(_0x1e1f1b){return _0x1e1f1b===void 0x0||E(_0x1e1f1b);}function O(_0x3e7499){return T(_0x3e7499)&&E(_0x3e7499['x'])&&E(_0x3e7499['y']);}function k(_0x20ae03){const _0x388e98=_0x1212d5;return T(_0x20ae03)?_0x20ae03[_0x388e98(0xf4)]===_0x388e98(0x184)?E(_0x20ae03['x'])&&E(_0x20ae03['y']):typeof _0x20ae03['shapeId']!=_0x388e98(0xec)||_0x20ae03[_0x388e98(0x115)]['trim']()[_0x388e98(0x103)]===0x0||_0x20ae03[_0x388e98(0x10b)]!==void 0x0&&!O(_0x20ae03['fallbackPoint'])?!0x1:_0x20ae03[_0x388e98(0xf4)]==='lifeline'?E(_0x20ae03['offsetY']):_0x20ae03['kind']==='shapeSite'?Number[_0x388e98(0x177)](_0x20ae03[_0x388e98(0xf5)]):_0x20ae03['kind']===_0x388e98(0xff)?Number[_0x388e98(0x177)](_0x20ae03[_0x388e98(0xfd)])&&Number['isInteger'](_0x20ae03['segmentIndex'])&&E(_0x20ae03[_0x388e98(0x152)])&&D(_0x20ae03[_0x388e98(0xce)])&&(_0x20ae03[_0x388e98(0xdf)]===void 0x0||T(_0x20ae03[_0x388e98(0xdf)])&&E(_0x20ae03[_0x388e98(0xdf)]['u'])&&E(_0x20ae03['localUV']['v'])):!0x1:!0x1;}function A(_0x364c90){const _0x14bf58=_0x1212d5;return T(_0x364c90)&&typeof _0x364c90['id']=='string'&&_0x364c90['id'][_0x14bf58(0x179)]()[_0x14bf58(0x103)]>0x0&&(_0x364c90[_0x14bf58(0xf4)]==='manual'||_0x364c90[_0x14bf58(0xf4)]===_0x14bf58(0x151))&&E(_0x364c90['x'])&&E(_0x364c90['y']);}function ue(_0x48dee1){const _0x1153ec=_0x1212d5;if(!A(_0x48dee1))return!0x1;let _0x116027=_0x48dee1[_0x1153ec(0x147)];return _0x116027===void 0x0||k(_0x116027);}function de(_0x49b13c){const _0x570107=_0x1212d5;return A(_0x49b13c)?Number['isInteger'](_0x49b13c[_0x570107(0x12f)]):!0x1;}function j(_0x4c1f72,_0x1f988f){const _0x1c0ac6=_0x1212d5;return _0x4c1f72===void 0x0||Array[_0x1c0ac6(0xf8)](_0x4c1f72)&&_0x4c1f72[_0x1c0ac6(0xf0)](_0x1f988f);}function _0x550c(_0x5c4e53,_0x18d807){_0x5c4e53=_0x5c4e53-0xcb;const _0x2e8eb5=_0x2e8e();let _0x550c83=_0x2e8eb5[_0x5c4e53];return _0x550c83;}function fe(_0x36bec8){const _0x3898ed=_0x1212d5;return!(!T(_0x36bec8)||!k(_0x36bec8[_0x3898ed(0x149)])||!k(_0x36bec8[_0x3898ed(0xe3)])||!j(_0x36bec8[_0x3898ed(0x142)],A)||_0x36bec8[_0x3898ed(0x17d)]!==void 0x0&&(!T(_0x36bec8['orthogonalData'])||!j(_0x36bec8['orthogonalData'][_0x3898ed(0x109)],A))||_0x36bec8[_0x3898ed(0x111)]!==void 0x0&&(!T(_0x36bec8['curveData'])||!j(_0x36bec8['curveData'][_0x3898ed(0x15c)],ue)||!j(_0x36bec8[_0x3898ed(0x111)][_0x3898ed(0xcb)],de)));}function pe(_0x4eea9b){const _0x1f0408=_0x1212d5;return T(_0x4eea9b)?D(_0x4eea9b['left'])&&D(_0x4eea9b[_0x1f0408(0x13b)])&&D(_0x4eea9b[_0x1f0408(0x140)])&&D(_0x4eea9b[_0x1f0408(0x122)]):!0x1;}function me(_0x1dde18){const _0x490888=_0x1212d5;return typeof _0x1dde18==_0x490888(0xec)&&le['has'](_0x1dde18);}function M(_0x2ae582){const _0x2291f8=_0x1212d5;var _0x228905;let _0xd57c8=[_0x2ae582[_0x2291f8(0xe0)][_0x2291f8(0x149)],_0x2ae582[_0x2291f8(0xe0)][_0x2291f8(0xe3)]];return(_0x228905=_0x2ae582[_0x2291f8(0xe0)][_0x2291f8(0x111)])==null||(_0x228905=_0x228905[_0x2291f8(0x15c)])==null||_0x228905['forEach'](_0x11a06d=>{const _0x41b08d=_0x2291f8;_0x11a06d[_0x41b08d(0x147)]&&_0xd57c8[_0x41b08d(0x135)](_0x11a06d[_0x41b08d(0x147)]);}),_0xd57c8;}function N(_0x3567b9){const _0x4ef6c7=_0x1212d5;if(!T(_0x3567b9))return{'ok':!0x1,'unsupported':!0x1,'message':_0x4ef6c7(0x14b)};if(!me(_0x3567b9[_0x4ef6c7(0xe7)]))return{'ok':!0x1,'unsupported':!0x0,'message':_0x4ef6c7(0xd6)+String(_0x3567b9[_0x4ef6c7(0xe7)])+'.',...typeof _0x3567b9['id']=='string'?{'elementId':_0x3567b9['id']}:null};if(typeof _0x3567b9['id']!=_0x4ef6c7(0xec)||_0x3567b9['id'][_0x4ef6c7(0x179)]()[_0x4ef6c7(0x103)]===0x0||!pe(_0x3567b9['transform'])||_0x3567b9['parentId']!==void 0x0&&(typeof _0x3567b9[_0x4ef6c7(0x14c)]!=_0x4ef6c7(0xec)||_0x3567b9[_0x4ef6c7(0x14c)][_0x4ef6c7(0x179)]()[_0x4ef6c7(0x103)]===0x0))return{'ok':!0x1,'unsupported':!0x1,'message':_0x4ef6c7(0x130),...typeof _0x3567b9['id']==_0x4ef6c7(0xec)?{'elementId':_0x3567b9['id']}:null};if(_0x3567b9[_0x4ef6c7(0xe7)]===_0x41a8de[_0x4ef6c7(0x134)]&&(!Array['isArray'](_0x3567b9['children'])||_0x3567b9[_0x4ef6c7(0x13e)][_0x4ef6c7(0x143)](_0x1f6911=>typeof _0x1f6911!=_0x4ef6c7(0xec)||_0x1f6911[_0x4ef6c7(0x179)]()['length']===0x0)))return{'ok':!0x1,'unsupported':!0x1,'message':'Board\x20group\x20children\x20must\x20be\x20non-empty\x20string\x20IDs.','elementId':_0x3567b9['id']};if(_0x3567b9[_0x4ef6c7(0xe7)]===_0x41a8de[_0x4ef6c7(0x129)]&&!fe(_0x3567b9[_0x4ef6c7(0xe0)]))return{'ok':!0x1,'unsupported':!0x1,'message':'Board\x20connector\x20geometry\x20is\x20invalid.','elementId':_0x3567b9['id']};if(_0x3567b9[_0x4ef6c7(0xe7)]===_0x41a8de[_0x4ef6c7(0x16f)]){let _0x3dd7f6=T(_0x3567b9[_0x4ef6c7(0x174)])?_0x3567b9[_0x4ef6c7(0x174)][_0x4ef6c7(0x14f)]:void 0x0;if(!T(_0x3dd7f6)||typeof _0x3dd7f6['acceptsChildren']!=_0x4ef6c7(0x15e)||typeof _0x3dd7f6[_0x4ef6c7(0x106)]!=_0x4ef6c7(0x15e)||typeof _0x3dd7f6[_0x4ef6c7(0x16e)]!=_0x4ef6c7(0x15e))return{'ok':!0x1,'unsupported':!0x1,'message':'Board\x20container\x20child\x20behavior\x20is\x20invalid.','elementId':_0x3567b9['id']};}return{'ok':!0x0,'element':_0x3567b9};}const he=[_0x1212d5(0x178),_0x1212d5(0xf7),_0x1212d5(0x148),_0x1212d5(0x167),_0x1212d5(0x153)];function P(_0x2e9bf4){let _0x421cb1=_0x2e9bf4;he['forEach'](_0x49df57=>delete _0x421cb1[_0x49df57]);}function F(_0x3a7d87){const _0x13a5b6=_0x1212d5;if(!T(_0x3a7d87)||_0x3a7d87[_0x13a5b6(0xe7)]!==_0x13a5b6(0x154))return[{'code':'invalid-board-element','message':_0x13a5b6(0xd7)}];let _0xd7bc0d=N(_0x3a7d87[_0x13a5b6(0xf1)]);if(!_0xd7bc0d['ok'])return[{'code':_0xd7bc0d[_0x13a5b6(0x10f)]?'unsupported-board-element':_0x13a5b6(0xee),'message':_0xd7bc0d[_0x13a5b6(0x172)],..._0xd7bc0d[_0x13a5b6(0x182)]?{'elementId':_0xd7bc0d['elementId']}:null}];let _0x228e59=_0xd7bc0d[_0x13a5b6(0xf1)];return _0x228e59['parentId']?[{'code':_0x13a5b6(0xee),'message':'A\x20standalone\x20Board\x20element\x20cannot\x20have\x20a\x20parent.','elementId':_0x228e59['id']}]:_0x228e59[_0x13a5b6(0xe7)]===_0x41a8de[_0x13a5b6(0x134)]&&_0x228e59[_0x13a5b6(0x13e)]['length']>0x0?[{'code':_0x13a5b6(0xee),'message':_0x13a5b6(0xd0),'elementId':_0x228e59['id']}]:_0x228e59[_0x13a5b6(0xe7)]===_0x41a8de['Connector']&&M(_0x228e59)[_0x13a5b6(0x143)](_0x4d784a=>_0x4d784a[_0x13a5b6(0xf4)]!=='free')?[{'code':_0x13a5b6(0xee),'message':'A\x20standalone\x20Board\x20connector\x20cannot\x20bind\x20to\x20another\x20element.','elementId':_0x228e59['id']}]:[];}function ge(_0x31e23c){const _0x5840e6=_0x1212d5;var _0x133114,_0x5cd080,_0x2dba25,_0x2e9922;let _0x3a3f2d=(_0x133114=_0x31e23c[_0x5840e6(0x11b)][_0x5840e6(0x10e)])==null?0x0:_0x133114,_0x19d9a7=(_0x5cd080=_0x31e23c[_0x5840e6(0x11b)][_0x5840e6(0x13b)])==null?0x0:_0x5cd080,_0x4903d3=(_0x2dba25=_0x31e23c[_0x5840e6(0x11b)][_0x5840e6(0x140)])==null?0x0:_0x2dba25,_0x34b836=(_0x2e9922=_0x31e23c[_0x5840e6(0x11b)][_0x5840e6(0x122)])==null?0x0:_0x2e9922;return{'left':_0x4903d3>=0x0?_0x3a3f2d:_0x3a3f2d+_0x4903d3,'top':_0x34b836>=0x0?_0x19d9a7:_0x19d9a7+_0x34b836,'width':Math[_0x5840e6(0x13c)](_0x4903d3),'height':Math[_0x5840e6(0x13c)](_0x34b836)};}function I(_0x521a43,_0x2b79b6,_0x4c483b,_0x19abb7){const _0x2c59bb=_0x1212d5;var _0x1f24fb,_0x37ac6f;let _0x241c75=_0x5091c7[_0x2c59bb(0x187)](_0x521a43[_0x2c59bb(0xf1)]),_0x7f7f43=ge(_0x241c75),_0xcacd5d={'x':_0x2b79b6['point']['x']-(_0x7f7f43[_0x2c59bb(0x10e)]+_0x7f7f43[_0x2c59bb(0x140)]/0x2),'y':_0x2b79b6[_0x2c59bb(0x17c)]['y']-(_0x7f7f43[_0x2c59bb(0x13b)]+_0x7f7f43[_0x2c59bb(0x122)]/0x2)};return _0x241c75['id']=_0x19abb7(_0x521a43['element']['id']),delete _0x241c75[_0x2c59bb(0x14c)],delete _0x241c75['laneId'],P(_0x241c75),_0x241c75['transform']={..._0x241c75[_0x2c59bb(0x11b)],'left':((_0x1f24fb=_0x241c75[_0x2c59bb(0x11b)]['left'])==null?0x0:_0x1f24fb)+_0xcacd5d['x'],'top':((_0x37ac6f=_0x241c75[_0x2c59bb(0x11b)]['top'])==null?0x0:_0x37ac6f)+_0xcacd5d['y']},_0x241c75[_0x2c59bb(0xe7)]===_0x41a8de[_0x2c59bb(0x129)]&&(_0x241c75=_0x1133ae(_0x241c75,_0xcacd5d)),x(_0x241c75,_0x4c483b),{'elements':[_0x241c75]};}function L(_0x397ebb,_0x33837f){const _0x522052=_0x1212d5;return{'code':_0x522052(0x101),'message':_0x397ebb,..._0x33837f?{'elementId':_0x33837f}:null};}function _e(_0x196cd9){const _0xc4fc03=_0x1212d5;return{'code':_0xc4fc03(0x176),'message':_0xc4fc03(0xd6)+String(_0x196cd9[_0xc4fc03(0xe7)])+'.',...typeof _0x196cd9['id']=='string'?{'elementId':_0x196cd9['id']}:null};}function R(_0x949bd1){const _0x3e2a60=_0x1212d5;if(!T(_0x949bd1)||_0x949bd1[_0x3e2a60(0xe7)]!==_0x3e2a60(0x12b)||!Array['isArray'](_0x949bd1[_0x3e2a60(0x171)]))return[L('Invalid\x20Board\x20fragment\x20resource\x20payload.')];let _0x152fea=_0x949bd1['elements'][_0x3e2a60(0xfb)](_0x1769e1=>{const _0x5cdcbd=_0x3e2a60;let _0x1bcd40=N(_0x1769e1);return _0x1bcd40['ok']?null:_0x1bcd40[_0x5cdcbd(0x10f)]?_e({'id':_0x1bcd40[_0x5cdcbd(0x182)],'type':T(_0x1769e1)?_0x1769e1[_0x5cdcbd(0xe7)]:void 0x0}):L(_0x1bcd40[_0x5cdcbd(0x172)],_0x1bcd40[_0x5cdcbd(0x182)]);})[_0x3e2a60(0xfa)](_0x55387d=>_0x55387d!==null);return _0x152fea[_0x3e2a60(0x103)]>0x0?_0x152fea:ve(_0x949bd1);}function ve(_0x2f2c2c){const _0x300fea=_0x1212d5;if(!Array[_0x300fea(0xf8)](_0x2f2c2c[_0x300fea(0x171)])||_0x2f2c2c[_0x300fea(0x171)][_0x300fea(0x103)]===0x0)return[L('A\x20Board\x20fragment\x20must\x20contain\x20at\x20least\x20one\x20element.')];let _0x50bc2e=[],_0x440a73=new Set();if(_0x2f2c2c[_0x300fea(0x171)][_0x300fea(0xf2)](_0xfb9ce7=>{const _0x534206=_0x300fea;if(_0x440a73[_0x534206(0xfe)](_0xfb9ce7['id'])){_0x50bc2e[_0x534206(0x135)](L(_0x534206(0x121)+_0xfb9ce7['id']+'.',_0xfb9ce7['id']));return;}_0x440a73['add'](_0xfb9ce7['id']);}),_0x50bc2e['length']>0x0)return _0x50bc2e;let _0x326942=new Map(_0x2f2c2c[_0x300fea(0x171)][_0x300fea(0xfb)](_0x164470=>[_0x164470['id'],_0x164470]));_0x2f2c2c['elements'][_0x300fea(0xf2)](_0x50dcd4=>{const _0x6bfa32=_0x300fea;if(_0x50dcd4['parentId']&&!_0x440a73[_0x6bfa32(0xfe)](_0x50dcd4[_0x6bfa32(0x14c)])&&_0x50bc2e[_0x6bfa32(0x135)](L(_0x6bfa32(0x133)+_0x50dcd4['parentId']+'.',_0x50dcd4['id'])),_0x50dcd4[_0x6bfa32(0x14c)]&&_0x440a73[_0x6bfa32(0xfe)](_0x50dcd4[_0x6bfa32(0x14c)])){let _0x17a513=_0x326942[_0x6bfa32(0x141)](_0x50dcd4[_0x6bfa32(0x14c)]);_0x17a513[_0x6bfa32(0xe7)]===_0x41a8de[_0x6bfa32(0x16f)]?_0x17a513[_0x6bfa32(0x174)][_0x6bfa32(0x14f)][_0x6bfa32(0x117)]?_0x50dcd4[_0x6bfa32(0xe7)]===_0x41a8de[_0x6bfa32(0x16f)]&&(!_0x17a513[_0x6bfa32(0x174)][_0x6bfa32(0x14f)][_0x6bfa32(0x106)]||!_0x17a513[_0x6bfa32(0x174)]['behavior']['allowNested'])&&_0x50bc2e[_0x6bfa32(0x135)](L('Board\x20fragment\x20parent\x20does\x20not\x20accept\x20nested\x20containers.',_0x50dcd4['id'])):_0x50bc2e[_0x6bfa32(0x135)](L(_0x6bfa32(0x17e),_0x50dcd4['id'])):_0x50bc2e[_0x6bfa32(0x135)](L(_0x6bfa32(0x144),_0x50dcd4['id']));}_0x50dcd4[_0x6bfa32(0xe7)]===_0x41a8de[_0x6bfa32(0x134)]&&_0x50dcd4['children'][_0x6bfa32(0xf2)](_0x407a71=>{const _0x86ceeb=_0x6bfa32;_0x440a73[_0x86ceeb(0xfe)](_0x407a71)||_0x50bc2e['push'](L(_0x86ceeb(0xd4)+_0x407a71+'.',_0x50dcd4['id']));}),_0x50dcd4[_0x6bfa32(0xe7)]===_0x41a8de['Connector']&&M(_0x50dcd4)[_0x6bfa32(0xf2)](_0x2b8b6c=>{const _0x360dc6=_0x6bfa32;_0x2b8b6c[_0x360dc6(0xf4)]!==_0x360dc6(0x184)&&!_0x440a73[_0x360dc6(0xfe)](_0x2b8b6c[_0x360dc6(0x115)])&&_0x50bc2e['push'](L(_0x360dc6(0x120)+_0x2b8b6c[_0x360dc6(0x115)]+'.',_0x50dcd4['id']));});});let _0x231194=new Map(_0x2f2c2c[_0x300fea(0x171)]['map'](_0x16ad4f=>[_0x16ad4f['id'],_0x16ad4f[_0x300fea(0x14c)]]));return _0x2f2c2c[_0x300fea(0x171)][_0x300fea(0xf2)](_0x360c7b=>{const _0x137688=_0x300fea;let _0x1e2da2=new Set([_0x360c7b['id']]),_0x1a69c8=_0x360c7b[_0x137688(0x14c)];for(;_0x1a69c8;){if(_0x1e2da2[_0x137688(0xfe)](_0x1a69c8)){_0x50bc2e[_0x137688(0x135)](L(_0x137688(0x112),_0x360c7b['id']));break;}_0x1e2da2['add'](_0x1a69c8),_0x1a69c8=_0x231194[_0x137688(0x141)](_0x1a69c8);}}),_0x50bc2e;}function ye(_0x1d9c0d,_0x3ac09a){const _0x574285=_0x1212d5;var _0x2d1fd1,_0xc2b3b9,_0x2a57ab,_0x44363d;let _0x3a267c=(_0x2d1fd1=_0x1d9c0d[_0x574285(0x10e)])==null?0x0:_0x2d1fd1,_0x2591c7=(_0xc2b3b9=_0x1d9c0d[_0x574285(0x13b)])==null?0x0:_0xc2b3b9,_0x3ff5dd=(_0x2a57ab=_0x1d9c0d[_0x574285(0x140)])==null?0x0:_0x2a57ab,_0x63edf7=(_0x44363d=_0x1d9c0d[_0x574285(0x122)])==null?0x0:_0x44363d,_0x3d0b8d=_0x3a267c+_0x3ac09a['x'],_0x2aeb86=_0x2591c7+_0x3ac09a['y'];return{'left':_0x3ff5dd>=0x0?_0x3d0b8d:_0x3d0b8d+_0x3ff5dd,'top':_0x63edf7>=0x0?_0x2aeb86:_0x2aeb86+_0x63edf7,'width':Math[_0x574285(0x13c)](_0x3ff5dd),'height':Math['abs'](_0x63edf7)};}function be(_0x1bcf9a,_0x122756){const _0x40b7d5=_0x1212d5;let _0x69ac25=_0x1bcf9a[_0x40b7d5(0x14c)],_0x1e57e9=0x0,_0x276c41=0x0;for(;_0x69ac25;){var _0x51cacf,_0xf0a968;let _0x2350a9=_0x122756[_0x40b7d5(0x141)](_0x69ac25);if(!_0x2350a9)break;_0x1e57e9+=(_0x51cacf=_0x2350a9[_0x40b7d5(0x11b)][_0x40b7d5(0x10e)])==null?0x0:_0x51cacf,_0x276c41+=(_0xf0a968=_0x2350a9[_0x40b7d5(0x11b)][_0x40b7d5(0x13b)])==null?0x0:_0xf0a968,_0x69ac25=_0x2350a9[_0x40b7d5(0x14c)];}return{'x':_0x1e57e9,'y':_0x276c41};}function z(_0x2ec780){const _0x43fd85=_0x1212d5;let _0x5d7a28=new Map(_0x2ec780[_0x43fd85(0xfb)](_0x2676b7=>[_0x2676b7['id'],_0x2676b7])),_0x370927=_0x2ec780[_0x43fd85(0xfb)](_0x471c8c=>ye(_0x471c8c[_0x43fd85(0x11b)],be(_0x471c8c,_0x5d7a28))),_0x2712ed=Math[_0x43fd85(0x165)](..._0x370927[_0x43fd85(0xfb)](_0x2c5e08=>_0x2c5e08['left'])),_0x7c68f5=Math[_0x43fd85(0x165)](..._0x370927[_0x43fd85(0xfb)](_0x29e5bb=>_0x29e5bb[_0x43fd85(0x13b)])),_0x44e1d8=Math[_0x43fd85(0xe1)](..._0x370927[_0x43fd85(0xfb)](_0x3af921=>_0x3af921[_0x43fd85(0x10e)]+_0x3af921[_0x43fd85(0x140)])),_0x1e9216=Math[_0x43fd85(0xe1)](..._0x370927['map'](_0x1bef0a=>_0x1bef0a['top']+_0x1bef0a[_0x43fd85(0x122)]));return{'left':_0x2712ed,'top':_0x7c68f5,'width':_0x44e1d8-_0x2712ed,'height':_0x1e9216-_0x7c68f5};}function B(_0x3a20a7,_0x4248fe){const _0x12b034=_0x1212d5;return _0x3a20a7['kind']===_0x12b034(0x184)?_0x3a20a7:{..._0x3a20a7,'shapeId':_0x4248fe[_0x12b034(0x141)](_0x3a20a7[_0x12b034(0x115)])};}function xe(_0x221fba,_0x318cd4){const _0x4a8f0c=_0x1212d5;var _0xd17d22;return{..._0x221fba,'connectorData':{..._0x221fba[_0x4a8f0c(0xe0)],'start':B(_0x221fba[_0x4a8f0c(0xe0)][_0x4a8f0c(0x149)],_0x318cd4),'end':B(_0x221fba[_0x4a8f0c(0xe0)]['end'],_0x318cd4),'curveData':_0x221fba[_0x4a8f0c(0xe0)][_0x4a8f0c(0x111)]?{..._0x221fba['connectorData'][_0x4a8f0c(0x111)],'anchors':(_0xd17d22=_0x221fba[_0x4a8f0c(0xe0)][_0x4a8f0c(0x111)]['anchors'])==null?void 0x0:_0xd17d22['map'](_0x580929=>({..._0x580929,..._0x580929[_0x4a8f0c(0x147)]?{'endpoint':B(_0x580929[_0x4a8f0c(0x147)],_0x318cd4)}:null}))}:_0x221fba['connectorData'][_0x4a8f0c(0x111)]}};}function Se(_0x6e6adb,_0x261773){const _0x373ef0=_0x1212d5;return!_0x6e6adb[_0x373ef0(0x14c)]&&!_0x261773[_0x373ef0(0xfe)](_0x6e6adb['id']);}function V(_0x49819a,_0x1f454d,_0x12351a,_0x5b9d70){const _0x9ae209=_0x1212d5;let _0x3933f3=R(_0x49819a);if(_0x3933f3[_0x9ae209(0x103)]>0x0)return{'ok':!0x1,'diagnostics':_0x3933f3};let _0x4fd2df=new Map(_0x49819a[_0x9ae209(0x171)][_0x9ae209(0xfb)](_0x2d03ed=>[_0x2d03ed['id'],_0x5b9d70(_0x2d03ed['id'])])),_0x160a5e=[..._0x4fd2df['values']()];if(_0x160a5e[_0x9ae209(0x143)](_0x3ce753=>typeof _0x3ce753!=_0x9ae209(0xec)||_0x3ce753[_0x9ae209(0x179)]()[_0x9ae209(0x103)]===0x0)||new Set(_0x160a5e)[_0x9ae209(0xfc)]!==_0x160a5e['length'])return{'ok':!0x1,'diagnostics':[L('Generated\x20Board\x20fragment\x20element\x20IDs\x20must\x20be\x20unique\x20and\x20non-empty.')]};let _0x18bae0=z(_0x49819a[_0x9ae209(0x171)]),_0x3531cc={'x':_0x1f454d['point']['x']-(_0x18bae0[_0x9ae209(0x10e)]+_0x18bae0[_0x9ae209(0x140)]/0x2),'y':_0x1f454d[_0x9ae209(0x17c)]['y']-(_0x18bae0['top']+_0x18bae0['height']/0x2)},_0x35d0c3=new Set(_0x49819a['elements']['flatMap'](_0x7e0bcf=>_0x7e0bcf[_0x9ae209(0xe7)]===_0x41a8de['Group']?_0x7e0bcf[_0x9ae209(0x13e)]:[]));return{'ok':!0x0,'value':{'elements':_0x49819a['elements'][_0x9ae209(0xfb)](_0xa7d681=>{const _0x55c2ae=_0x9ae209;let _0x2ba652=_0x5091c7[_0x55c2ae(0x187)](_0xa7d681);if(P(_0x2ba652),_0x2ba652['id']=_0x4fd2df[_0x55c2ae(0x141)](_0xa7d681['id']),_0x2ba652[_0x55c2ae(0x14c)]&&(_0x2ba652[_0x55c2ae(0x14c)]=_0x4fd2df[_0x55c2ae(0x141)](_0x2ba652['parentId'])),!_0xa7d681['parentId']){var _0x2fd3f9,_0x35caca;_0x2ba652[_0x55c2ae(0x11b)]={..._0x2ba652[_0x55c2ae(0x11b)],'left':((_0x2fd3f9=_0x2ba652[_0x55c2ae(0x11b)]['left'])==null?0x0:_0x2fd3f9)+_0x3531cc['x'],'top':((_0x35caca=_0x2ba652[_0x55c2ae(0x11b)]['top'])==null?0x0:_0x35caca)+_0x3531cc['y']};}return _0x2ba652[_0x55c2ae(0xe7)]===_0x41a8de[_0x55c2ae(0x134)]&&(_0x2ba652['children']=_0x2ba652[_0x55c2ae(0x13e)][_0x55c2ae(0xfb)](_0x4332ef=>_0x4fd2df[_0x55c2ae(0x141)](_0x4332ef))),_0x2ba652[_0x55c2ae(0xe7)]===_0x41a8de[_0x55c2ae(0x129)]&&(_0x2ba652=xe(_0x1133ae(_0x2ba652,_0x3531cc),_0x4fd2df)),Se(_0xa7d681,_0x35d0c3)&&x(_0x2ba652,_0x12351a),_0x2ba652;})}};}const Ce={'code':_0x1212d5(0xe8),'message':_0x1212d5(0xe9)};function H(_0x229c0e){const _0x413687=_0x1212d5;return _0x413687(0x168)+encodeURIComponent(_0x229c0e);}function we(_0x1e2e66){const _0x2fb006=_0x1212d5;let _0x497583=/^data:([^;,]+)((?:;[^,]*)*),(.*)$/is[_0x2fb006(0x126)](_0x1e2e66);if(!_0x497583)throw Error(_0x2fb006(0x150));let _0x35cf74=_0x497583[0x1]['trim']();if(_0x497583[0x2][_0x2fb006(0x132)](';')[_0x2fb006(0xfa)](Boolean)[_0x2fb006(0x143)](_0x2ec4a4=>_0x2ec4a4['toLowerCase']()===_0x2fb006(0xd9))){let _0x4c3960=atob(_0x497583[0x3]),_0xaf3350=Uint8Array[_0x2fb006(0x169)](_0x4c3960,_0x5b5150=>_0x5b5150[_0x2fb006(0xcc)](0x0));return new Blob([_0xaf3350],{'type':_0x35cf74});}return new Blob([decodeURIComponent(_0x497583[0x3])],{'type':_0x35cf74});}async function Te(_0x2b4534){const _0x429cf5=_0x1212d5;let _0x29d2fe=new Uint8Array(await _0x2b4534[_0x429cf5(0x127)]()),_0x30a6cd=0x8000,_0x1fdcb3='';for(let _0x26e018=0x0;_0x26e018<_0x29d2fe[_0x429cf5(0x103)];_0x26e018+=_0x30a6cd)_0x1fdcb3+=String[_0x429cf5(0x183)](..._0x29d2fe[_0x429cf5(0x155)](_0x26e018,_0x26e018+_0x30a6cd));return'data:'+(_0x2b4534['type']||'application/octet-stream')+';base64,'+btoa(_0x1fdcb3);}function Ee(_0x5dfb0d,_0xaf18f0,_0x34c420){const _0x9f73d9=_0x1212d5;let _0x4864ac=Number['isFinite'](_0x5dfb0d)&&_0x5dfb0d>0x0?_0x5dfb0d:_0x34c420['fallbackWidth'],_0x5d8abe=Number[_0x9f73d9(0x14a)](_0xaf18f0)&&_0xaf18f0>0x0?_0xaf18f0:_0x34c420[_0x9f73d9(0xcd)],_0x520805=Math[_0x9f73d9(0x165)](_0x34c420[_0x9f73d9(0xcf)]/_0x4864ac,_0x34c420[_0x9f73d9(0x12a)]/_0x5d8abe,Math[_0x9f73d9(0xe1)](0x1,_0x34c420[_0x9f73d9(0x124)]/Math['min'](_0x4864ac,_0x5d8abe)));return{'width':Math[_0x9f73d9(0x164)](_0x4864ac*_0x520805),'height':Math[_0x9f73d9(0x164)](_0x5d8abe*_0x520805)};}async function De(_0x2ae03d,_0x53a576){const _0x5611c4=_0x1212d5;if(_0x2ae03d[_0x5611c4(0xe7)]===_0x5611c4(0x156))return new Blob([_0x2ae03d[_0x5611c4(0x166)]],{'type':_0x5611c4(0x102)});if(_0x2ae03d['type']===_0x5611c4(0x13a))return we(_0x2ae03d[_0x5611c4(0x166)]);let _0x5658d4=await _0x53a576(_0x2ae03d[_0x5611c4(0x166)]);if(!_0x5658d4['ok'])throw Error(_0x5611c4(0x10c));return _0x5658d4[_0x5611c4(0x17b)]();}async function Oe(_0x3ed660,_0x2dc505,_0x24a9d5){const _0x352963=_0x1212d5;if(_0x3ed660[_0x352963(0x138)]!==void 0x0)return{'source':_0x3ed660[_0x352963(0x16a)][_0x352963(0xe7)]===_0x352963(0x156)?H(_0x3ed660[_0x352963(0x16a)][_0x352963(0x166)]):_0x3ed660[_0x352963(0x16a)][_0x352963(0x166)],'imageSourceType':_0x2e244b[_0x352963(0x131)],'width':_0x3ed660['intrinsicSize']['width'],'height':_0x3ed660[_0x352963(0x138)][_0x352963(0x122)]};if(_0x3ed660[_0x352963(0x16a)][_0x352963(0xe7)]===_0x352963(0x100))return{'source':_0x3ed660[_0x352963(0x16a)][_0x352963(0x166)],'imageSourceType':_0x2e244b[_0x352963(0x131)],'width':_0x24a9d5[_0x352963(0x13f)],'height':_0x24a9d5[_0x352963(0xcd)]};let _0x1b0b8d=_0x3ed660['source']['type']===_0x352963(0x156)?H(_0x3ed660[_0x352963(0x16a)][_0x352963(0x166)]):_0x3ed660[_0x352963(0x16a)][_0x352963(0x166)],_0x10f045=await _0x2dc505(_0x1b0b8d);return{'source':_0x1b0b8d,'imageSourceType':_0x2e244b['URL'],'width':_0x10f045[_0x352963(0x140)],'height':_0x10f045[_0x352963(0x122)],'image':_0x10f045[_0x352963(0x11f)]};}async function ke(_0x33b63f,_0x54df0a,_0x1e30fe,_0x2ea8cc){const _0x363643=_0x1212d5;var _0x271b95;let _0x3b44a6=(_0x271b95=_0x1e30fe[_0x363643(0x105)])==null?_0xfed185=>fetch(_0xfed185):_0x271b95,_0x3627d0=await De(_0x33b63f['source'],_0x3b44a6),_0x2b11a6=await Te(_0x3627d0),_0x4920d9=await _0x2ea8cc(_0x2b11a6);if(!_0x1e30fe['imageIoService'])return{'source':_0x2b11a6,'imageSourceType':_0x2e244b[_0x363643(0x131)],'width':_0x4920d9['width'],'height':_0x4920d9[_0x363643(0x122)],'image':_0x4920d9[_0x363643(0x11f)]};let _0x2fd3a5=new File([_0x3627d0],_0x54df0a[_0x363643(0xdc)],{'type':_0x3627d0[_0x363643(0xe7)]||'application/octet-stream'}),_0x9f6bed=await _0x1e30fe[_0x363643(0xed)][_0x363643(0x137)](_0x2fd3a5);if(!_0x9f6bed)throw Error(_0x363643(0x125));return _0x4920d9[_0x363643(0x11f)]&&_0x1e30fe[_0x363643(0xed)][_0x363643(0xef)](_0x9f6bed['source'],_0x9f6bed[_0x363643(0x186)],_0x4920d9[_0x363643(0x11f)]),{'source':_0x9f6bed[_0x363643(0x16a)],'imageSourceType':_0x9f6bed[_0x363643(0x186)],'width':_0x4920d9[_0x363643(0x140)],'height':_0x4920d9[_0x363643(0x122)],'image':_0x4920d9[_0x363643(0x11f)]};}async function U(_0x2cdfb0,_0x1bc122,_0x14e37a,_0x478546={}){const _0x38aa82=_0x1212d5;try{var _0x1f2474,_0x1896b5,_0x418e59,_0x287ab7;let _0x3c7eec={...C,..._0x478546[_0x38aa82(0x15a)]},_0x5bbedd=(_0x1f2474=_0x478546['resolveImageSize'])==null?_0x5f16ed:_0x1f2474,_0x1ece2b=((_0x1896b5=_0x2cdfb0['storagePolicy'])==null?_0x38aa82(0x161):_0x1896b5)===_0x38aa82(0x146)?await ke(_0x2cdfb0,_0x14e37a,_0x478546,_0x5bbedd):await Oe(_0x2cdfb0,_0x5bbedd,_0x3c7eec),_0x4ce125=Ee(_0x1ece2b[_0x38aa82(0x140)],_0x1ece2b[_0x38aa82(0x122)],_0x3c7eec),_0x51746b=_0xb60578({'id':(_0x418e59=(_0x287ab7=_0x478546[_0x38aa82(0x104)])==null?void 0x0:_0x287ab7[_0x38aa82(0xe5)](_0x478546))==null?_0x35d010(0x6):_0x418e59,'source':_0x1ece2b[_0x38aa82(0x16a)],'imageSourceType':_0x1ece2b['imageSourceType'],'left':_0x1bc122[_0x38aa82(0x17c)]['x']-_0x4ce125[_0x38aa82(0x140)]/0x2,'top':_0x1bc122['point']['y']-_0x4ce125['height']/0x2,'width':_0x4ce125['width'],'height':_0x4ce125[_0x38aa82(0x122)]});return x(_0x51746b,_0x14e37a,_0x2cdfb0[_0x38aa82(0x13d)]),{'ok':!0x0,'value':{'elements':[_0x51746b]}};}catch{return{'ok':!0x1,'diagnostics':[Ce]};}}var Ae=_0x1212d5(0x12c),je=_0x1212d5(0xea);function W(_0x5dbbfa,_0x33f1ed){return function(_0x3af6be,_0x3ca2a2){_0x33f1ed(_0x3af6be,_0x3ca2a2,_0x5dbbfa);};}function G(_0x52fe49,_0x4e03e9,_0x274969,_0x5d506c){const _0x2d8530=_0x1212d5;var _0x20648d=arguments[_0x2d8530(0x103)],_0x43bce0=_0x20648d<0x3?_0x4e03e9:_0x5d506c===null?_0x5d506c=Object[_0x2d8530(0x159)](_0x4e03e9,_0x274969):_0x5d506c,_0x324941;if(typeof Reflect=='object'&&typeof Reflect[_0x2d8530(0x116)]==_0x2d8530(0x10d))_0x43bce0=Reflect[_0x2d8530(0x116)](_0x52fe49,_0x4e03e9,_0x274969,_0x5d506c);else{for(var _0x92e873=_0x52fe49['length']-0x1;_0x92e873>=0x0;_0x92e873--)(_0x324941=_0x52fe49[_0x92e873])&&(_0x43bce0=(_0x20648d<0x3?_0x324941(_0x43bce0):_0x20648d>0x3?_0x324941(_0x4e03e9,_0x274969,_0x43bce0):_0x324941(_0x4e03e9,_0x274969))||_0x43bce0);}return _0x20648d>0x3&&_0x43bce0&&Object['defineProperty'](_0x4e03e9,_0x274969,_0x43bce0),_0x43bce0;}const K=_0x57b827(_0x1212d5(0x181));function Me(_0x264a1f){const _0x39e742=_0x1212d5;return typeof _0x264a1f!='object'||!_0x264a1f||!('ok'in _0x264a1f)||_0x264a1f['ok']!==!0x0||!('value'in _0x264a1f)||typeof _0x264a1f[_0x39e742(0x166)]!=_0x39e742(0xe6)||_0x264a1f[_0x39e742(0x166)]===null||!(_0x39e742(0x171)in _0x264a1f['value'])||!Array[_0x39e742(0xf8)](_0x264a1f['value'][_0x39e742(0x171)])||_0x264a1f[_0x39e742(0x166)][_0x39e742(0x171)][_0x39e742(0x103)]===0x0?null:_0x264a1f[_0x39e742(0x166)][_0x39e742(0x171)];}let q=class extends _0x48e618{constructor(_0x48f08c,_0x43c5df,_0x11dcdd,_0x1874c9){const _0x22aba0=_0x1212d5;super(),this[_0x22aba0(0x119)]=_0x48f08c,this[_0x22aba0(0xd1)]=_0x43c5df,this[_0x22aba0(0x158)]=_0x11dcdd,this['_instanceService']=_0x1874c9;}async[_0x1212d5(0xe4)](_0x4cc6a1,_0x5dc9fc,_0x1060dd){const _0x2719b9=_0x1212d5;var _0x4ab168,_0x94f07c;if(!(_0x1060dd==null||(_0x4ab168=_0x1060dd['signal'])==null)&&_0x4ab168[_0x2719b9(0xf9)]||this[_0x2719b9(0xeb)]||!this[_0x2719b9(0x11c)](_0x5dc9fc))return!0x1;let _0x377541=this[_0x2719b9(0x119)][_0x2719b9(0x141)](_0x4cc6a1);if(!_0x377541)return!0x1;let _0x5e9895=this[_0x2719b9(0xd1)][_0x2719b9(0x141)](_0x377541['payload']['type']);if(!_0x5e9895||_0x5e9895['validate'](_0x377541['payload'])[_0x2719b9(0x103)]>0x0)return!0x1;let _0x226fde;try{_0x226fde=await _0x5e9895[_0x2719b9(0xe4)](_0x377541[_0x2719b9(0x162)],_0x5dc9fc,_0x4cc6a1);}catch{return!0x1;}let _0x2e3897=Me(_0x226fde);if(!_0x2e3897||!(_0x1060dd==null||(_0x94f07c=_0x1060dd['signal'])==null)&&_0x94f07c[_0x2719b9(0xf9)]||this[_0x2719b9(0xeb)]||!this[_0x2719b9(0x11c)](_0x5dc9fc)||this[_0x2719b9(0x119)][_0x2719b9(0x141)](_0x4cc6a1)!==_0x377541)return!0x1;try{return _0x2e3897[_0x2719b9(0x103)]===0x1?!!await this[_0x2719b9(0x158)][_0x2719b9(0x113)](_0x5c3592['id'],{'unitId':_0x5dc9fc[_0x2719b9(0x15f)],'subUnitId':_0x5dc9fc[_0x2719b9(0x157)],'element':_0x2e3897[0x0]}):!!await this[_0x2719b9(0x158)]['executeCommand'](_0x4bc327['id'],{'unitId':_0x5dc9fc[_0x2719b9(0x15f)],'subUnitId':_0x5dc9fc['subUnitId'],'elements':_0x2e3897});}catch{return!0x1;}}[_0x1212d5(0x11c)](_0x2cae0a){const _0x774b9f=_0x1212d5;let _0xb902b8=this['_instanceService'][_0x774b9f(0x160)](_0x8b0e70['UNIVER_BOARD']);return(_0xb902b8==null?void 0x0:_0xb902b8['getUnitId']())===_0x2cae0a[_0x774b9f(0x15f)]&&_0xb902b8[_0x774b9f(0xd5)]()===_0x2cae0a[_0x774b9f(0x157)];}};q=G([W(0x0,_0x31cce8),W(0x1,_0x1e53f7),W(0x2,_0x1dde9f),W(0x3,_0x174a3c)],q);function J(_0x42054a){'@babel/helpers - typeof';const _0x412533=_0x1212d5;return J=typeof Symbol==_0x412533(0x10d)&&typeof Symbol[_0x412533(0x11d)]==_0x412533(0x16d)?function(_0x4e7083){return typeof _0x4e7083;}:function(_0x3c05f4){const _0x5bb8ba=_0x412533;return _0x3c05f4&&typeof Symbol==_0x5bb8ba(0x10d)&&_0x3c05f4['constructor']===Symbol&&_0x3c05f4!==Symbol[_0x5bb8ba(0x123)]?_0x5bb8ba(0x16d):typeof _0x3c05f4;},J(_0x42054a);}function Ne(_0x4e9dbc,_0x395a37){const _0x470b01=_0x1212d5;if(J(_0x4e9dbc)!=_0x470b01(0xe6)||!_0x4e9dbc)return _0x4e9dbc;var _0x4974fe=_0x4e9dbc[Symbol[_0x470b01(0xf3)]];if(_0x4974fe!==void 0x0){var _0x469dae=_0x4974fe[_0x470b01(0xe5)](_0x4e9dbc,_0x395a37||_0x470b01(0x12e));if(J(_0x469dae)!=_0x470b01(0xe6))return _0x469dae;throw TypeError(_0x470b01(0x108));}return(_0x395a37===_0x470b01(0xec)?String:Number)(_0x4e9dbc);}function Pe(_0x1aee01){const _0xf74c93=_0x1212d5;var _0x53db5b=Ne(_0x1aee01,_0xf74c93(0xec));return J(_0x53db5b)==_0xf74c93(0x16d)?_0x53db5b:_0x53db5b+'';}function Y(_0x649c00,_0x437ad5,_0x413f41){const _0x57b45d=_0x1212d5;return(_0x437ad5=Pe(_0x437ad5))in _0x649c00?Object[_0x57b45d(0x175)](_0x649c00,_0x437ad5,{'value':_0x413f41,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x649c00[_0x437ad5]=_0x413f41,_0x649c00;}const X=_0x1212d5(0x139);function Z(_0x576b50){const _0x537213=_0x1212d5;return[{'code':_0x537213(0x14e),'message':_0x576b50}];}function Fe(_0x1b8678){const _0x3c1036=_0x1212d5;return _0x1b8678===void 0x0||T(_0x1b8678)&&typeof _0x1b8678[_0x3c1036(0x140)]==_0x3c1036(0x12d)&&Number['isFinite'](_0x1b8678[_0x3c1036(0x140)])&&_0x1b8678[_0x3c1036(0x140)]>0x0&&typeof _0x1b8678[_0x3c1036(0x122)]==_0x3c1036(0x12d)&&Number[_0x3c1036(0x14a)](_0x1b8678[_0x3c1036(0x122)])&&_0x1b8678[_0x3c1036(0x122)]>0x0;}function Ie(_0x5a98d0){const _0x41a082=_0x1212d5;if(!T(_0x5a98d0)||_0x5a98d0[_0x41a082(0xe7)]!=='image'||!T(_0x5a98d0[_0x41a082(0x16a)]))return Z(_0x41a082(0x17a));let _0x489cae=_0x5a98d0[_0x41a082(0x16a)];return _0x489cae[_0x41a082(0xe7)]!==_0x41a082(0x100)&&_0x489cae[_0x41a082(0xe7)]!==_0x41a082(0x13a)&&_0x489cae['type']!==_0x41a082(0x156)||typeof _0x489cae[_0x41a082(0x166)]!=_0x41a082(0xec)||_0x5a98d0[_0x41a082(0x180)]!==void 0x0&&_0x5a98d0[_0x41a082(0x180)]!==_0x41a082(0x161)&&_0x5a98d0[_0x41a082(0x180)]!==_0x41a082(0x146)||!Fe(_0x5a98d0[_0x41a082(0x138)])||_0x5a98d0[_0x41a082(0x13d)]!==void 0x0&&typeof _0x5a98d0[_0x41a082(0x13d)]!=_0x41a082(0xec)?Z(_0x41a082(0x17a)):[];}function Q(_0x9b36e5){const _0x9f210a=_0x1212d5;return _0x9b36e5[_0x9f210a(0xfb)](({message:_0x32a640})=>({'code':_0x9f210a(0x14e),'message':_0x32a640}));}let $=class extends _0x5111af{constructor(_0x3be14d=w,_0x4aff71,_0x2d685a,_0x4bd683){const _0x3d62f4=_0x1212d5;super(),this[_0x3d62f4(0xe2)]=_0x3be14d,this[_0x3d62f4(0x10a)]=_0x4aff71,this['_configService']=_0x2d685a,this[_0x3d62f4(0x107)]=_0x4bd683;let {..._0x4d3d09}=_0x53f873({},w,this[_0x3d62f4(0xe2)]);this['_configService']['setConfig'](S,_0x4d3d09);}[_0x1212d5(0xd3)](){const _0x4d0f86=_0x1212d5;this[_0x4d0f86(0x10a)][_0x4d0f86(0x185)]([K,{'useClass':q}]),this[_0x4d0f86(0x15b)](this[_0x4d0f86(0x10a)][_0x4d0f86(0x141)](K));let _0x5306be=this[_0x4d0f86(0x10a)][_0x4d0f86(0x141)](_0x1e53f7),_0x8a8ff1={...C,...this[_0x4d0f86(0xe2)]['image']},_0x1a4614=()=>_0x35d010(0x6);[_0x5306be[_0x4d0f86(0x11e)]({'type':_0x4d0f86(0x11f),'validate':Ie,'materialize':(_0x6acd6d,_0x5c19b5,_0x4534a4)=>U(_0x6acd6d,_0x5c19b5,_0x4534a4,{'imageIoService':this['_imageIoService'],'imageConfig':_0x8a8ff1,'createId':_0x1a4614})}),_0x5306be['register']({'type':_0x4d0f86(0x154),'validate':_0x3a7e74=>Q(F(_0x3a7e74)),'materialize':(_0x5bd2aa,_0x2cc631,_0x512694)=>{let _0x25012b=F(_0x5bd2aa);return _0x25012b['length']>0x0?{'ok':!0x1,'diagnostics':_0x25012b}:{'ok':!0x0,'value':I(_0x5bd2aa,_0x2cc631,_0x512694,()=>_0x1a4614())};}}),_0x5306be[_0x4d0f86(0x11e)]({'type':_0x4d0f86(0x12b),'validate':_0x483678=>Q(R(_0x483678)),'materialize':(_0x484da8,_0x1a9518,_0x310f7d)=>V(_0x484da8,_0x1a9518,_0x310f7d,()=>_0x1a4614())})][_0x4d0f86(0xf2)](_0x13efe9=>{const _0x23d154=_0x4d0f86;_0x13efe9&&this[_0x23d154(0x15b)](_0x13efe9);});}};Y($,_0x1212d5(0x173),X),Y($,_0x1212d5(0xda),Ae),Y($,_0x1212d5(0x110),je),Y($,_0x1212d5(0xe7),_0x8b0e70['UNIVER_BOARD']),$=G([_0x1f35fc(_0x3b6559,_0x15e09f,_0x4b691a),W(0x1,_0x2555c1(_0x4aec64)),W(0x2,_0xc16e57),W(0x3,_0x9d8c73(_0x558bb2))],$);export{S as BOARDS_RESOURCES_PLUGIN_CONFIG_KEY,X as BOARDS_RESOURCES_PLUGIN_NAME,C as BOARD_RESOURCE_IMAGE_DEFAULT_CONFIG,q as BoardResourceMaterializerService,K as IBoardResourceMaterializerService,$ as UniverBoardsResourcesPlugin,b as createBoardResourceMetadata,I as materializeBoardElementResource,V as materializeBoardFragmentResource,U as materializeBoardImageResource,ce as readBoardResourceMetadata,F as validateBoardElementResourcePayload,R as validateBoardFragmentResourcePayload,x as writeBoardResourceMetadata};
|
package/lib/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x1212d5=_0x550c;(function(_0x10ba15,_0x5abdd7){const _0x1cd1ea=_0x550c,_0x4c3044=_0x10ba15();while(!![]){try{const _0x27a8d6=parseInt(_0x1cd1ea(0x114))/0x1*(-parseInt(_0x1cd1ea(0x16c))/0x2)+-parseInt(_0x1cd1ea(0xd8))/0x3*(parseInt(_0x1cd1ea(0x163))/0x4)+parseInt(_0x1cd1ea(0x15d))/0x5+-parseInt(_0x1cd1ea(0xd2))/0x6+-parseInt(_0x1cd1ea(0xdd))/0x7+-parseInt(_0x1cd1ea(0xdb))/0x8+parseInt(_0x1cd1ea(0x145))/0x9;if(_0x27a8d6===_0x5abdd7)break;else _0x4c3044['push'](_0x4c3044['shift']());}catch(_0x352400){_0x4c3044['push'](_0x4c3044['shift']());}}}(_0x2e8e,0x28a2b));import{AddBoardElementOperation as _0x5c3592,AddBoardElementsOperation as _0x4bc327,BoardElementType as _0x41a8de,UniverBoardsPlugin as _0x15e09f,createBoardImageElement as _0xb60578,offsetBoardConnectorGeometry as _0x1133ae}from'@univerjs-pro/boards';import{DependentOn as _0x1f35fc,Disposable as _0x48e618,ICommandService as _0x1dde9f,IConfigService as _0xc16e57,IImageIoService as _0x558bb2,IUniverInstanceService as _0x174a3c,ImageSourceType as _0x2e244b,Inject as _0x2555c1,Injector as _0x4aec64,Optional as _0x9d8c73,Plugin as _0x5111af,Tools as _0x5091c7,UniverInstanceType as _0x8b0e70,createIdentifier as _0x57b827,generateRandomId as _0x35d010,merge as _0x53f873}from'@univerjs/core';function _0x2e8e(){const _0x513b72=['function','left','unsupported','version','curveData','Cyclic\x20Board\x20fragment\x20parent\x20relationship.','executeCommand','206mMdLNn','shapeId','decorate','acceptsChildren','Table','_registry','Media','transform','_isCurrentContext','iterator','register','image','Unknown\x20connector\x20endpoint\x20element\x20ID:\x20','Duplicate\x20Board\x20fragment\x20element\x20ID:\x20','height','prototype','minEdge','Unable\x20to\x20persist\x20managed\x20image.','exec','arrayBuffer','color','Connector','maxHeight','boardFragment','@univerjs-pro/boards-resources','number','default','segmentIndex','Board\x20elements\x20require\x20a\x20non-empty\x20ID,\x20valid\x20parent\x20ID,\x20and\x20finite\x20transform.','URL','split','Unknown\x20parent\x20element\x20ID:\x20','Group','push','custom','saveImage','intrinsicSize','UNIVER_BOARDS_RESOURCES_PLUGIN','dataUrl','top','abs','initialColor','children','fallbackWidth','width','get','waypoints','some','Board\x20fragment\x20parents\x20must\x20be\x20container\x20elements.','11281887QBtTXA','managed','endpoint','isHovered','start','isFinite','Board\x20elements\x20must\x20be\x20objects.','parentId','resources','invalid-image-payload','behavior','Invalid\x20data\x20URL.','auto','segmentT','runtimeState','boardElement','subarray','svgText','subUnitId','_commandService','getOwnPropertyDescriptor','imageConfig','disposeWithMe','anchors','113220NbScew','boolean','unitId','getCurrentUnitOfType','reference','payload','1136LPcGxk','round','min','value','isEditing','data:image/svg+xml;charset=utf-8,','from','source','boards-resources.config','2982WJOorj','symbol','allowNested','Container','Image','elements','message','pluginName','containerData','defineProperty','unsupported-board-element','isInteger','selected','trim','Invalid\x20image\x20resource\x20payload.','blob','point','orthogonalData','Board\x20fragment\x20parent\x20does\x20not\x20accept\x20children.','Text','storagePolicy','boards-resources.materializer.service','elementId','fromCharCode','free','add','imageSourceType','deepClone','registryId','Shape','controls','charCodeAt','fallbackHeight','boundaryRatio','maxWidth','A\x20standalone\x20Board\x20group\x20cannot\x20reference\x20child\x20elements.','_handlers','1173744ocPZVD','onStarting','Unknown\x20group\x20child\x20element\x20ID:\x20','getActivePageId','Unsupported\x20Board\x20element\x20type:\x20','Invalid\x20Board\x20element\x20resource\x20payload.','2316mVCawe','base64','packageName','1138832HIfBiR','resourceId','1717604rQMGnk','schemaVersion','localUV','connectorData','max','_config','end','materialize','call','object','type','image-resolution-failed','Unable\x20to\x20resolve\x20the\x20resource\x20image.','1.0.0-insiders.20260717-1e84621','_disposed','string','imageIoService','invalid-board-element','addImageSourceCache','every','element','forEach','toPrimitive','kind','connectionSiteId','Chart','isSelected','isArray','aborted','filter','map','size','outlineIndex','has','shapeBoundary','url','invalid-board-fragment','image/svg+xml','length','createId','fetcher','acceptsContainer','_imageIoService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','routePoints','_injector','fallbackPoint','Unable\x20to\x20fetch\x20managed\x20image.'];_0x2e8e=function(){return _0x513b72;};return _0x2e8e();}import{getImageSize as _0x5f16ed}from'@univerjs/drawing';import{UniverLicensePlugin as _0x3b6559}from'@univerjs-pro/license';import{IResourcePayloadHandlerRegistryService as _0x1e53f7,IResourceRegistryService as _0x31cce8,UniverResourcesPlugin as _0x4b691a}from'@univerjs-pro/resources';function y(_0x53db0b){const _0x4e925c=_0x550c;return typeof _0x53db0b=='object'&&!!_0x53db0b&&!Array[_0x4e925c(0xf8)](_0x53db0b);}function b(_0x532434,_0x440976){const _0x21211c=_0x550c;return{'schemaVersion':0x1,'registryId':_0x532434[_0x21211c(0x188)],'resourceId':_0x532434[_0x21211c(0xdc)],..._0x440976===void 0x0?null:{'color':_0x440976}};}function x(_0x5addff,_0x2fb0bb,_0x944d3a){const _0x5331da=_0x550c;_0x5addff[_0x5331da(0x136)]={...y(_0x5addff[_0x5331da(0x136)])?_0x5addff[_0x5331da(0x136)]:{},'resources':b(_0x2fb0bb,_0x944d3a)};}function ce(_0x19e8ce){const _0x56557e=_0x550c;if(!y(_0x19e8ce[_0x56557e(0x136)])||!y(_0x19e8ce[_0x56557e(0x136)][_0x56557e(0x14d)]))return null;let _0x112a8c=_0x19e8ce['custom'][_0x56557e(0x14d)];return _0x112a8c[_0x56557e(0xde)]!==0x1||typeof _0x112a8c[_0x56557e(0x188)]!=_0x56557e(0xec)||typeof _0x112a8c['resourceId']!='string'||_0x112a8c[_0x56557e(0x128)]!==void 0x0&&typeof _0x112a8c[_0x56557e(0x128)]!='string'?null:{'schemaVersion':0x1,'registryId':_0x112a8c[_0x56557e(0x188)],'resourceId':_0x112a8c[_0x56557e(0xdc)],..._0x112a8c['color']===void 0x0?null:{'color':_0x112a8c[_0x56557e(0x128)]}};}const S=_0x1212d5(0x16b),C={'fallbackWidth':0x140,'fallbackHeight':0xb4,'minEdge':0x50,'maxWidth':1075.2,'maxHeight':604.8},w={},le=new Set([_0x41a8de['Placeholder'],_0x41a8de[_0x1212d5(0x17f)],_0x41a8de[_0x1212d5(0x189)],_0x41a8de[_0x1212d5(0x170)],_0x41a8de[_0x1212d5(0xf6)],_0x41a8de[_0x1212d5(0x118)],_0x41a8de[_0x1212d5(0x11a)],_0x41a8de[_0x1212d5(0x134)],_0x41a8de[_0x1212d5(0x129)],_0x41a8de[_0x1212d5(0x16f)]]);function T(_0x23ec6c){const _0x130188=_0x1212d5;return typeof _0x23ec6c=='object'&&!!_0x23ec6c&&!Array[_0x130188(0xf8)](_0x23ec6c);}function E(_0x364d35){return typeof _0x364d35=='number'&&Number['isFinite'](_0x364d35);}function D(_0x1e1f1b){return _0x1e1f1b===void 0x0||E(_0x1e1f1b);}function O(_0x3e7499){return T(_0x3e7499)&&E(_0x3e7499['x'])&&E(_0x3e7499['y']);}function k(_0x20ae03){const _0x388e98=_0x1212d5;return T(_0x20ae03)?_0x20ae03[_0x388e98(0xf4)]===_0x388e98(0x184)?E(_0x20ae03['x'])&&E(_0x20ae03['y']):typeof _0x20ae03['shapeId']!=_0x388e98(0xec)||_0x20ae03[_0x388e98(0x115)]['trim']()[_0x388e98(0x103)]===0x0||_0x20ae03[_0x388e98(0x10b)]!==void 0x0&&!O(_0x20ae03['fallbackPoint'])?!0x1:_0x20ae03[_0x388e98(0xf4)]==='lifeline'?E(_0x20ae03['offsetY']):_0x20ae03['kind']==='shapeSite'?Number[_0x388e98(0x177)](_0x20ae03[_0x388e98(0xf5)]):_0x20ae03['kind']===_0x388e98(0xff)?Number[_0x388e98(0x177)](_0x20ae03[_0x388e98(0xfd)])&&Number['isInteger'](_0x20ae03['segmentIndex'])&&E(_0x20ae03[_0x388e98(0x152)])&&D(_0x20ae03[_0x388e98(0xce)])&&(_0x20ae03[_0x388e98(0xdf)]===void 0x0||T(_0x20ae03[_0x388e98(0xdf)])&&E(_0x20ae03[_0x388e98(0xdf)]['u'])&&E(_0x20ae03['localUV']['v'])):!0x1:!0x1;}function A(_0x364c90){const _0x14bf58=_0x1212d5;return T(_0x364c90)&&typeof _0x364c90['id']=='string'&&_0x364c90['id'][_0x14bf58(0x179)]()[_0x14bf58(0x103)]>0x0&&(_0x364c90[_0x14bf58(0xf4)]==='manual'||_0x364c90[_0x14bf58(0xf4)]===_0x14bf58(0x151))&&E(_0x364c90['x'])&&E(_0x364c90['y']);}function ue(_0x48dee1){const _0x1153ec=_0x1212d5;if(!A(_0x48dee1))return!0x1;let _0x116027=_0x48dee1[_0x1153ec(0x147)];return _0x116027===void 0x0||k(_0x116027);}function de(_0x49b13c){const _0x570107=_0x1212d5;return A(_0x49b13c)?Number['isInteger'](_0x49b13c[_0x570107(0x12f)]):!0x1;}function j(_0x4c1f72,_0x1f988f){const _0x1c0ac6=_0x1212d5;return _0x4c1f72===void 0x0||Array[_0x1c0ac6(0xf8)](_0x4c1f72)&&_0x4c1f72[_0x1c0ac6(0xf0)](_0x1f988f);}function _0x550c(_0x5c4e53,_0x18d807){_0x5c4e53=_0x5c4e53-0xcb;const _0x2e8eb5=_0x2e8e();let _0x550c83=_0x2e8eb5[_0x5c4e53];return _0x550c83;}function fe(_0x36bec8){const _0x3898ed=_0x1212d5;return!(!T(_0x36bec8)||!k(_0x36bec8[_0x3898ed(0x149)])||!k(_0x36bec8[_0x3898ed(0xe3)])||!j(_0x36bec8[_0x3898ed(0x142)],A)||_0x36bec8[_0x3898ed(0x17d)]!==void 0x0&&(!T(_0x36bec8['orthogonalData'])||!j(_0x36bec8['orthogonalData'][_0x3898ed(0x109)],A))||_0x36bec8[_0x3898ed(0x111)]!==void 0x0&&(!T(_0x36bec8['curveData'])||!j(_0x36bec8['curveData'][_0x3898ed(0x15c)],ue)||!j(_0x36bec8[_0x3898ed(0x111)][_0x3898ed(0xcb)],de)));}function pe(_0x4eea9b){const _0x1f0408=_0x1212d5;return T(_0x4eea9b)?D(_0x4eea9b['left'])&&D(_0x4eea9b[_0x1f0408(0x13b)])&&D(_0x4eea9b[_0x1f0408(0x140)])&&D(_0x4eea9b[_0x1f0408(0x122)]):!0x1;}function me(_0x1dde18){const _0x490888=_0x1212d5;return typeof _0x1dde18==_0x490888(0xec)&&le['has'](_0x1dde18);}function M(_0x2ae582){const _0x2291f8=_0x1212d5;var _0x228905;let _0xd57c8=[_0x2ae582[_0x2291f8(0xe0)][_0x2291f8(0x149)],_0x2ae582[_0x2291f8(0xe0)][_0x2291f8(0xe3)]];return(_0x228905=_0x2ae582[_0x2291f8(0xe0)][_0x2291f8(0x111)])==null||(_0x228905=_0x228905[_0x2291f8(0x15c)])==null||_0x228905['forEach'](_0x11a06d=>{const _0x41b08d=_0x2291f8;_0x11a06d[_0x41b08d(0x147)]&&_0xd57c8[_0x41b08d(0x135)](_0x11a06d[_0x41b08d(0x147)]);}),_0xd57c8;}function N(_0x3567b9){const _0x4ef6c7=_0x1212d5;if(!T(_0x3567b9))return{'ok':!0x1,'unsupported':!0x1,'message':_0x4ef6c7(0x14b)};if(!me(_0x3567b9[_0x4ef6c7(0xe7)]))return{'ok':!0x1,'unsupported':!0x0,'message':_0x4ef6c7(0xd6)+String(_0x3567b9[_0x4ef6c7(0xe7)])+'.',...typeof _0x3567b9['id']=='string'?{'elementId':_0x3567b9['id']}:null};if(typeof _0x3567b9['id']!=_0x4ef6c7(0xec)||_0x3567b9['id'][_0x4ef6c7(0x179)]()[_0x4ef6c7(0x103)]===0x0||!pe(_0x3567b9['transform'])||_0x3567b9['parentId']!==void 0x0&&(typeof _0x3567b9[_0x4ef6c7(0x14c)]!=_0x4ef6c7(0xec)||_0x3567b9[_0x4ef6c7(0x14c)][_0x4ef6c7(0x179)]()[_0x4ef6c7(0x103)]===0x0))return{'ok':!0x1,'unsupported':!0x1,'message':_0x4ef6c7(0x130),...typeof _0x3567b9['id']==_0x4ef6c7(0xec)?{'elementId':_0x3567b9['id']}:null};if(_0x3567b9[_0x4ef6c7(0xe7)]===_0x41a8de[_0x4ef6c7(0x134)]&&(!Array['isArray'](_0x3567b9['children'])||_0x3567b9[_0x4ef6c7(0x13e)][_0x4ef6c7(0x143)](_0x1f6911=>typeof _0x1f6911!=_0x4ef6c7(0xec)||_0x1f6911[_0x4ef6c7(0x179)]()['length']===0x0)))return{'ok':!0x1,'unsupported':!0x1,'message':'Board\x20group\x20children\x20must\x20be\x20non-empty\x20string\x20IDs.','elementId':_0x3567b9['id']};if(_0x3567b9[_0x4ef6c7(0xe7)]===_0x41a8de[_0x4ef6c7(0x129)]&&!fe(_0x3567b9[_0x4ef6c7(0xe0)]))return{'ok':!0x1,'unsupported':!0x1,'message':'Board\x20connector\x20geometry\x20is\x20invalid.','elementId':_0x3567b9['id']};if(_0x3567b9[_0x4ef6c7(0xe7)]===_0x41a8de[_0x4ef6c7(0x16f)]){let _0x3dd7f6=T(_0x3567b9[_0x4ef6c7(0x174)])?_0x3567b9[_0x4ef6c7(0x174)][_0x4ef6c7(0x14f)]:void 0x0;if(!T(_0x3dd7f6)||typeof _0x3dd7f6['acceptsChildren']!=_0x4ef6c7(0x15e)||typeof _0x3dd7f6[_0x4ef6c7(0x106)]!=_0x4ef6c7(0x15e)||typeof _0x3dd7f6[_0x4ef6c7(0x16e)]!=_0x4ef6c7(0x15e))return{'ok':!0x1,'unsupported':!0x1,'message':'Board\x20container\x20child\x20behavior\x20is\x20invalid.','elementId':_0x3567b9['id']};}return{'ok':!0x0,'element':_0x3567b9};}const he=[_0x1212d5(0x178),_0x1212d5(0xf7),_0x1212d5(0x148),_0x1212d5(0x167),_0x1212d5(0x153)];function P(_0x2e9bf4){let _0x421cb1=_0x2e9bf4;he['forEach'](_0x49df57=>delete _0x421cb1[_0x49df57]);}function F(_0x3a7d87){const _0x13a5b6=_0x1212d5;if(!T(_0x3a7d87)||_0x3a7d87[_0x13a5b6(0xe7)]!==_0x13a5b6(0x154))return[{'code':'invalid-board-element','message':_0x13a5b6(0xd7)}];let _0xd7bc0d=N(_0x3a7d87[_0x13a5b6(0xf1)]);if(!_0xd7bc0d['ok'])return[{'code':_0xd7bc0d[_0x13a5b6(0x10f)]?'unsupported-board-element':_0x13a5b6(0xee),'message':_0xd7bc0d[_0x13a5b6(0x172)],..._0xd7bc0d[_0x13a5b6(0x182)]?{'elementId':_0xd7bc0d['elementId']}:null}];let _0x228e59=_0xd7bc0d[_0x13a5b6(0xf1)];return _0x228e59['parentId']?[{'code':_0x13a5b6(0xee),'message':'A\x20standalone\x20Board\x20element\x20cannot\x20have\x20a\x20parent.','elementId':_0x228e59['id']}]:_0x228e59[_0x13a5b6(0xe7)]===_0x41a8de[_0x13a5b6(0x134)]&&_0x228e59[_0x13a5b6(0x13e)]['length']>0x0?[{'code':_0x13a5b6(0xee),'message':_0x13a5b6(0xd0),'elementId':_0x228e59['id']}]:_0x228e59[_0x13a5b6(0xe7)]===_0x41a8de['Connector']&&M(_0x228e59)[_0x13a5b6(0x143)](_0x4d784a=>_0x4d784a[_0x13a5b6(0xf4)]!=='free')?[{'code':_0x13a5b6(0xee),'message':'A\x20standalone\x20Board\x20connector\x20cannot\x20bind\x20to\x20another\x20element.','elementId':_0x228e59['id']}]:[];}function ge(_0x31e23c){const _0x5840e6=_0x1212d5;var _0x133114,_0x5cd080,_0x2dba25,_0x2e9922;let _0x3a3f2d=(_0x133114=_0x31e23c[_0x5840e6(0x11b)][_0x5840e6(0x10e)])==null?0x0:_0x133114,_0x19d9a7=(_0x5cd080=_0x31e23c[_0x5840e6(0x11b)][_0x5840e6(0x13b)])==null?0x0:_0x5cd080,_0x4903d3=(_0x2dba25=_0x31e23c[_0x5840e6(0x11b)][_0x5840e6(0x140)])==null?0x0:_0x2dba25,_0x34b836=(_0x2e9922=_0x31e23c[_0x5840e6(0x11b)][_0x5840e6(0x122)])==null?0x0:_0x2e9922;return{'left':_0x4903d3>=0x0?_0x3a3f2d:_0x3a3f2d+_0x4903d3,'top':_0x34b836>=0x0?_0x19d9a7:_0x19d9a7+_0x34b836,'width':Math[_0x5840e6(0x13c)](_0x4903d3),'height':Math[_0x5840e6(0x13c)](_0x34b836)};}function I(_0x521a43,_0x2b79b6,_0x4c483b,_0x19abb7){const _0x2c59bb=_0x1212d5;var _0x1f24fb,_0x37ac6f;let _0x241c75=_0x5091c7[_0x2c59bb(0x187)](_0x521a43[_0x2c59bb(0xf1)]),_0x7f7f43=ge(_0x241c75),_0xcacd5d={'x':_0x2b79b6['point']['x']-(_0x7f7f43[_0x2c59bb(0x10e)]+_0x7f7f43[_0x2c59bb(0x140)]/0x2),'y':_0x2b79b6[_0x2c59bb(0x17c)]['y']-(_0x7f7f43[_0x2c59bb(0x13b)]+_0x7f7f43[_0x2c59bb(0x122)]/0x2)};return _0x241c75['id']=_0x19abb7(_0x521a43['element']['id']),delete _0x241c75[_0x2c59bb(0x14c)],delete _0x241c75['laneId'],P(_0x241c75),_0x241c75['transform']={..._0x241c75[_0x2c59bb(0x11b)],'left':((_0x1f24fb=_0x241c75[_0x2c59bb(0x11b)]['left'])==null?0x0:_0x1f24fb)+_0xcacd5d['x'],'top':((_0x37ac6f=_0x241c75[_0x2c59bb(0x11b)]['top'])==null?0x0:_0x37ac6f)+_0xcacd5d['y']},_0x241c75[_0x2c59bb(0xe7)]===_0x41a8de[_0x2c59bb(0x129)]&&(_0x241c75=_0x1133ae(_0x241c75,_0xcacd5d)),x(_0x241c75,_0x4c483b),{'elements':[_0x241c75]};}function L(_0x397ebb,_0x33837f){const _0x522052=_0x1212d5;return{'code':_0x522052(0x101),'message':_0x397ebb,..._0x33837f?{'elementId':_0x33837f}:null};}function _e(_0x196cd9){const _0xc4fc03=_0x1212d5;return{'code':_0xc4fc03(0x176),'message':_0xc4fc03(0xd6)+String(_0x196cd9[_0xc4fc03(0xe7)])+'.',...typeof _0x196cd9['id']=='string'?{'elementId':_0x196cd9['id']}:null};}function R(_0x949bd1){const _0x3e2a60=_0x1212d5;if(!T(_0x949bd1)||_0x949bd1[_0x3e2a60(0xe7)]!==_0x3e2a60(0x12b)||!Array['isArray'](_0x949bd1[_0x3e2a60(0x171)]))return[L('Invalid\x20Board\x20fragment\x20resource\x20payload.')];let _0x152fea=_0x949bd1['elements'][_0x3e2a60(0xfb)](_0x1769e1=>{const _0x5cdcbd=_0x3e2a60;let _0x1bcd40=N(_0x1769e1);return _0x1bcd40['ok']?null:_0x1bcd40[_0x5cdcbd(0x10f)]?_e({'id':_0x1bcd40[_0x5cdcbd(0x182)],'type':T(_0x1769e1)?_0x1769e1[_0x5cdcbd(0xe7)]:void 0x0}):L(_0x1bcd40[_0x5cdcbd(0x172)],_0x1bcd40[_0x5cdcbd(0x182)]);})[_0x3e2a60(0xfa)](_0x55387d=>_0x55387d!==null);return _0x152fea[_0x3e2a60(0x103)]>0x0?_0x152fea:ve(_0x949bd1);}function ve(_0x2f2c2c){const _0x300fea=_0x1212d5;if(!Array[_0x300fea(0xf8)](_0x2f2c2c[_0x300fea(0x171)])||_0x2f2c2c[_0x300fea(0x171)][_0x300fea(0x103)]===0x0)return[L('A\x20Board\x20fragment\x20must\x20contain\x20at\x20least\x20one\x20element.')];let _0x50bc2e=[],_0x440a73=new Set();if(_0x2f2c2c[_0x300fea(0x171)][_0x300fea(0xf2)](_0xfb9ce7=>{const _0x534206=_0x300fea;if(_0x440a73[_0x534206(0xfe)](_0xfb9ce7['id'])){_0x50bc2e[_0x534206(0x135)](L(_0x534206(0x121)+_0xfb9ce7['id']+'.',_0xfb9ce7['id']));return;}_0x440a73['add'](_0xfb9ce7['id']);}),_0x50bc2e['length']>0x0)return _0x50bc2e;let _0x326942=new Map(_0x2f2c2c[_0x300fea(0x171)][_0x300fea(0xfb)](_0x164470=>[_0x164470['id'],_0x164470]));_0x2f2c2c['elements'][_0x300fea(0xf2)](_0x50dcd4=>{const _0x6bfa32=_0x300fea;if(_0x50dcd4['parentId']&&!_0x440a73[_0x6bfa32(0xfe)](_0x50dcd4[_0x6bfa32(0x14c)])&&_0x50bc2e[_0x6bfa32(0x135)](L(_0x6bfa32(0x133)+_0x50dcd4['parentId']+'.',_0x50dcd4['id'])),_0x50dcd4[_0x6bfa32(0x14c)]&&_0x440a73[_0x6bfa32(0xfe)](_0x50dcd4[_0x6bfa32(0x14c)])){let _0x17a513=_0x326942[_0x6bfa32(0x141)](_0x50dcd4[_0x6bfa32(0x14c)]);_0x17a513[_0x6bfa32(0xe7)]===_0x41a8de[_0x6bfa32(0x16f)]?_0x17a513[_0x6bfa32(0x174)][_0x6bfa32(0x14f)][_0x6bfa32(0x117)]?_0x50dcd4[_0x6bfa32(0xe7)]===_0x41a8de[_0x6bfa32(0x16f)]&&(!_0x17a513[_0x6bfa32(0x174)][_0x6bfa32(0x14f)][_0x6bfa32(0x106)]||!_0x17a513[_0x6bfa32(0x174)]['behavior']['allowNested'])&&_0x50bc2e[_0x6bfa32(0x135)](L('Board\x20fragment\x20parent\x20does\x20not\x20accept\x20nested\x20containers.',_0x50dcd4['id'])):_0x50bc2e[_0x6bfa32(0x135)](L(_0x6bfa32(0x17e),_0x50dcd4['id'])):_0x50bc2e[_0x6bfa32(0x135)](L(_0x6bfa32(0x144),_0x50dcd4['id']));}_0x50dcd4[_0x6bfa32(0xe7)]===_0x41a8de[_0x6bfa32(0x134)]&&_0x50dcd4['children'][_0x6bfa32(0xf2)](_0x407a71=>{const _0x86ceeb=_0x6bfa32;_0x440a73[_0x86ceeb(0xfe)](_0x407a71)||_0x50bc2e['push'](L(_0x86ceeb(0xd4)+_0x407a71+'.',_0x50dcd4['id']));}),_0x50dcd4[_0x6bfa32(0xe7)]===_0x41a8de['Connector']&&M(_0x50dcd4)[_0x6bfa32(0xf2)](_0x2b8b6c=>{const _0x360dc6=_0x6bfa32;_0x2b8b6c[_0x360dc6(0xf4)]!==_0x360dc6(0x184)&&!_0x440a73[_0x360dc6(0xfe)](_0x2b8b6c[_0x360dc6(0x115)])&&_0x50bc2e['push'](L(_0x360dc6(0x120)+_0x2b8b6c[_0x360dc6(0x115)]+'.',_0x50dcd4['id']));});});let _0x231194=new Map(_0x2f2c2c[_0x300fea(0x171)]['map'](_0x16ad4f=>[_0x16ad4f['id'],_0x16ad4f[_0x300fea(0x14c)]]));return _0x2f2c2c[_0x300fea(0x171)][_0x300fea(0xf2)](_0x360c7b=>{const _0x137688=_0x300fea;let _0x1e2da2=new Set([_0x360c7b['id']]),_0x1a69c8=_0x360c7b[_0x137688(0x14c)];for(;_0x1a69c8;){if(_0x1e2da2[_0x137688(0xfe)](_0x1a69c8)){_0x50bc2e[_0x137688(0x135)](L(_0x137688(0x112),_0x360c7b['id']));break;}_0x1e2da2['add'](_0x1a69c8),_0x1a69c8=_0x231194[_0x137688(0x141)](_0x1a69c8);}}),_0x50bc2e;}function ye(_0x1d9c0d,_0x3ac09a){const _0x574285=_0x1212d5;var _0x2d1fd1,_0xc2b3b9,_0x2a57ab,_0x44363d;let _0x3a267c=(_0x2d1fd1=_0x1d9c0d[_0x574285(0x10e)])==null?0x0:_0x2d1fd1,_0x2591c7=(_0xc2b3b9=_0x1d9c0d[_0x574285(0x13b)])==null?0x0:_0xc2b3b9,_0x3ff5dd=(_0x2a57ab=_0x1d9c0d[_0x574285(0x140)])==null?0x0:_0x2a57ab,_0x63edf7=(_0x44363d=_0x1d9c0d[_0x574285(0x122)])==null?0x0:_0x44363d,_0x3d0b8d=_0x3a267c+_0x3ac09a['x'],_0x2aeb86=_0x2591c7+_0x3ac09a['y'];return{'left':_0x3ff5dd>=0x0?_0x3d0b8d:_0x3d0b8d+_0x3ff5dd,'top':_0x63edf7>=0x0?_0x2aeb86:_0x2aeb86+_0x63edf7,'width':Math[_0x574285(0x13c)](_0x3ff5dd),'height':Math['abs'](_0x63edf7)};}function be(_0x1bcf9a,_0x122756){const _0x40b7d5=_0x1212d5;let _0x69ac25=_0x1bcf9a[_0x40b7d5(0x14c)],_0x1e57e9=0x0,_0x276c41=0x0;for(;_0x69ac25;){var _0x51cacf,_0xf0a968;let _0x2350a9=_0x122756[_0x40b7d5(0x141)](_0x69ac25);if(!_0x2350a9)break;_0x1e57e9+=(_0x51cacf=_0x2350a9[_0x40b7d5(0x11b)][_0x40b7d5(0x10e)])==null?0x0:_0x51cacf,_0x276c41+=(_0xf0a968=_0x2350a9[_0x40b7d5(0x11b)][_0x40b7d5(0x13b)])==null?0x0:_0xf0a968,_0x69ac25=_0x2350a9[_0x40b7d5(0x14c)];}return{'x':_0x1e57e9,'y':_0x276c41};}function z(_0x2ec780){const _0x43fd85=_0x1212d5;let _0x5d7a28=new Map(_0x2ec780[_0x43fd85(0xfb)](_0x2676b7=>[_0x2676b7['id'],_0x2676b7])),_0x370927=_0x2ec780[_0x43fd85(0xfb)](_0x471c8c=>ye(_0x471c8c[_0x43fd85(0x11b)],be(_0x471c8c,_0x5d7a28))),_0x2712ed=Math[_0x43fd85(0x165)](..._0x370927[_0x43fd85(0xfb)](_0x2c5e08=>_0x2c5e08['left'])),_0x7c68f5=Math[_0x43fd85(0x165)](..._0x370927[_0x43fd85(0xfb)](_0x29e5bb=>_0x29e5bb[_0x43fd85(0x13b)])),_0x44e1d8=Math[_0x43fd85(0xe1)](..._0x370927[_0x43fd85(0xfb)](_0x3af921=>_0x3af921[_0x43fd85(0x10e)]+_0x3af921[_0x43fd85(0x140)])),_0x1e9216=Math[_0x43fd85(0xe1)](..._0x370927['map'](_0x1bef0a=>_0x1bef0a['top']+_0x1bef0a[_0x43fd85(0x122)]));return{'left':_0x2712ed,'top':_0x7c68f5,'width':_0x44e1d8-_0x2712ed,'height':_0x1e9216-_0x7c68f5};}function B(_0x3a20a7,_0x4248fe){const _0x12b034=_0x1212d5;return _0x3a20a7['kind']===_0x12b034(0x184)?_0x3a20a7:{..._0x3a20a7,'shapeId':_0x4248fe[_0x12b034(0x141)](_0x3a20a7[_0x12b034(0x115)])};}function xe(_0x221fba,_0x318cd4){const _0x4a8f0c=_0x1212d5;var _0xd17d22;return{..._0x221fba,'connectorData':{..._0x221fba[_0x4a8f0c(0xe0)],'start':B(_0x221fba[_0x4a8f0c(0xe0)][_0x4a8f0c(0x149)],_0x318cd4),'end':B(_0x221fba[_0x4a8f0c(0xe0)]['end'],_0x318cd4),'curveData':_0x221fba[_0x4a8f0c(0xe0)][_0x4a8f0c(0x111)]?{..._0x221fba['connectorData'][_0x4a8f0c(0x111)],'anchors':(_0xd17d22=_0x221fba[_0x4a8f0c(0xe0)][_0x4a8f0c(0x111)]['anchors'])==null?void 0x0:_0xd17d22['map'](_0x580929=>({..._0x580929,..._0x580929[_0x4a8f0c(0x147)]?{'endpoint':B(_0x580929[_0x4a8f0c(0x147)],_0x318cd4)}:null}))}:_0x221fba['connectorData'][_0x4a8f0c(0x111)]}};}function Se(_0x6e6adb,_0x261773){const _0x373ef0=_0x1212d5;return!_0x6e6adb[_0x373ef0(0x14c)]&&!_0x261773[_0x373ef0(0xfe)](_0x6e6adb['id']);}function V(_0x49819a,_0x1f454d,_0x12351a,_0x5b9d70){const _0x9ae209=_0x1212d5;let _0x3933f3=R(_0x49819a);if(_0x3933f3[_0x9ae209(0x103)]>0x0)return{'ok':!0x1,'diagnostics':_0x3933f3};let _0x4fd2df=new Map(_0x49819a[_0x9ae209(0x171)][_0x9ae209(0xfb)](_0x2d03ed=>[_0x2d03ed['id'],_0x5b9d70(_0x2d03ed['id'])])),_0x160a5e=[..._0x4fd2df['values']()];if(_0x160a5e[_0x9ae209(0x143)](_0x3ce753=>typeof _0x3ce753!=_0x9ae209(0xec)||_0x3ce753[_0x9ae209(0x179)]()[_0x9ae209(0x103)]===0x0)||new Set(_0x160a5e)[_0x9ae209(0xfc)]!==_0x160a5e['length'])return{'ok':!0x1,'diagnostics':[L('Generated\x20Board\x20fragment\x20element\x20IDs\x20must\x20be\x20unique\x20and\x20non-empty.')]};let _0x18bae0=z(_0x49819a[_0x9ae209(0x171)]),_0x3531cc={'x':_0x1f454d['point']['x']-(_0x18bae0[_0x9ae209(0x10e)]+_0x18bae0[_0x9ae209(0x140)]/0x2),'y':_0x1f454d[_0x9ae209(0x17c)]['y']-(_0x18bae0['top']+_0x18bae0['height']/0x2)},_0x35d0c3=new Set(_0x49819a['elements']['flatMap'](_0x7e0bcf=>_0x7e0bcf[_0x9ae209(0xe7)]===_0x41a8de['Group']?_0x7e0bcf[_0x9ae209(0x13e)]:[]));return{'ok':!0x0,'value':{'elements':_0x49819a['elements'][_0x9ae209(0xfb)](_0xa7d681=>{const _0x55c2ae=_0x9ae209;let _0x2ba652=_0x5091c7[_0x55c2ae(0x187)](_0xa7d681);if(P(_0x2ba652),_0x2ba652['id']=_0x4fd2df[_0x55c2ae(0x141)](_0xa7d681['id']),_0x2ba652[_0x55c2ae(0x14c)]&&(_0x2ba652[_0x55c2ae(0x14c)]=_0x4fd2df[_0x55c2ae(0x141)](_0x2ba652['parentId'])),!_0xa7d681['parentId']){var _0x2fd3f9,_0x35caca;_0x2ba652[_0x55c2ae(0x11b)]={..._0x2ba652[_0x55c2ae(0x11b)],'left':((_0x2fd3f9=_0x2ba652[_0x55c2ae(0x11b)]['left'])==null?0x0:_0x2fd3f9)+_0x3531cc['x'],'top':((_0x35caca=_0x2ba652[_0x55c2ae(0x11b)]['top'])==null?0x0:_0x35caca)+_0x3531cc['y']};}return _0x2ba652[_0x55c2ae(0xe7)]===_0x41a8de[_0x55c2ae(0x134)]&&(_0x2ba652['children']=_0x2ba652[_0x55c2ae(0x13e)][_0x55c2ae(0xfb)](_0x4332ef=>_0x4fd2df[_0x55c2ae(0x141)](_0x4332ef))),_0x2ba652[_0x55c2ae(0xe7)]===_0x41a8de[_0x55c2ae(0x129)]&&(_0x2ba652=xe(_0x1133ae(_0x2ba652,_0x3531cc),_0x4fd2df)),Se(_0xa7d681,_0x35d0c3)&&x(_0x2ba652,_0x12351a),_0x2ba652;})}};}const Ce={'code':_0x1212d5(0xe8),'message':_0x1212d5(0xe9)};function H(_0x229c0e){const _0x413687=_0x1212d5;return _0x413687(0x168)+encodeURIComponent(_0x229c0e);}function we(_0x1e2e66){const _0x2fb006=_0x1212d5;let _0x497583=/^data:([^;,]+)((?:;[^,]*)*),(.*)$/is[_0x2fb006(0x126)](_0x1e2e66);if(!_0x497583)throw Error(_0x2fb006(0x150));let _0x35cf74=_0x497583[0x1]['trim']();if(_0x497583[0x2][_0x2fb006(0x132)](';')[_0x2fb006(0xfa)](Boolean)[_0x2fb006(0x143)](_0x2ec4a4=>_0x2ec4a4['toLowerCase']()===_0x2fb006(0xd9))){let _0x4c3960=atob(_0x497583[0x3]),_0xaf3350=Uint8Array[_0x2fb006(0x169)](_0x4c3960,_0x5b5150=>_0x5b5150[_0x2fb006(0xcc)](0x0));return new Blob([_0xaf3350],{'type':_0x35cf74});}return new Blob([decodeURIComponent(_0x497583[0x3])],{'type':_0x35cf74});}async function Te(_0x2b4534){const _0x429cf5=_0x1212d5;let _0x29d2fe=new Uint8Array(await _0x2b4534[_0x429cf5(0x127)]()),_0x30a6cd=0x8000,_0x1fdcb3='';for(let _0x26e018=0x0;_0x26e018<_0x29d2fe[_0x429cf5(0x103)];_0x26e018+=_0x30a6cd)_0x1fdcb3+=String[_0x429cf5(0x183)](..._0x29d2fe[_0x429cf5(0x155)](_0x26e018,_0x26e018+_0x30a6cd));return'data:'+(_0x2b4534['type']||'application/octet-stream')+';base64,'+btoa(_0x1fdcb3);}function Ee(_0x5dfb0d,_0xaf18f0,_0x34c420){const _0x9f73d9=_0x1212d5;let _0x4864ac=Number['isFinite'](_0x5dfb0d)&&_0x5dfb0d>0x0?_0x5dfb0d:_0x34c420['fallbackWidth'],_0x5d8abe=Number[_0x9f73d9(0x14a)](_0xaf18f0)&&_0xaf18f0>0x0?_0xaf18f0:_0x34c420[_0x9f73d9(0xcd)],_0x520805=Math[_0x9f73d9(0x165)](_0x34c420[_0x9f73d9(0xcf)]/_0x4864ac,_0x34c420[_0x9f73d9(0x12a)]/_0x5d8abe,Math[_0x9f73d9(0xe1)](0x1,_0x34c420[_0x9f73d9(0x124)]/Math['min'](_0x4864ac,_0x5d8abe)));return{'width':Math[_0x9f73d9(0x164)](_0x4864ac*_0x520805),'height':Math[_0x9f73d9(0x164)](_0x5d8abe*_0x520805)};}async function De(_0x2ae03d,_0x53a576){const _0x5611c4=_0x1212d5;if(_0x2ae03d[_0x5611c4(0xe7)]===_0x5611c4(0x156))return new Blob([_0x2ae03d[_0x5611c4(0x166)]],{'type':_0x5611c4(0x102)});if(_0x2ae03d['type']===_0x5611c4(0x13a))return we(_0x2ae03d[_0x5611c4(0x166)]);let _0x5658d4=await _0x53a576(_0x2ae03d[_0x5611c4(0x166)]);if(!_0x5658d4['ok'])throw Error(_0x5611c4(0x10c));return _0x5658d4[_0x5611c4(0x17b)]();}async function Oe(_0x3ed660,_0x2dc505,_0x24a9d5){const _0x352963=_0x1212d5;if(_0x3ed660[_0x352963(0x138)]!==void 0x0)return{'source':_0x3ed660[_0x352963(0x16a)][_0x352963(0xe7)]===_0x352963(0x156)?H(_0x3ed660[_0x352963(0x16a)][_0x352963(0x166)]):_0x3ed660[_0x352963(0x16a)][_0x352963(0x166)],'imageSourceType':_0x2e244b[_0x352963(0x131)],'width':_0x3ed660['intrinsicSize']['width'],'height':_0x3ed660[_0x352963(0x138)][_0x352963(0x122)]};if(_0x3ed660[_0x352963(0x16a)][_0x352963(0xe7)]===_0x352963(0x100))return{'source':_0x3ed660[_0x352963(0x16a)][_0x352963(0x166)],'imageSourceType':_0x2e244b[_0x352963(0x131)],'width':_0x24a9d5[_0x352963(0x13f)],'height':_0x24a9d5[_0x352963(0xcd)]};let _0x1b0b8d=_0x3ed660['source']['type']===_0x352963(0x156)?H(_0x3ed660[_0x352963(0x16a)][_0x352963(0x166)]):_0x3ed660[_0x352963(0x16a)][_0x352963(0x166)],_0x10f045=await _0x2dc505(_0x1b0b8d);return{'source':_0x1b0b8d,'imageSourceType':_0x2e244b['URL'],'width':_0x10f045[_0x352963(0x140)],'height':_0x10f045[_0x352963(0x122)],'image':_0x10f045[_0x352963(0x11f)]};}async function ke(_0x33b63f,_0x54df0a,_0x1e30fe,_0x2ea8cc){const _0x363643=_0x1212d5;var _0x271b95;let _0x3b44a6=(_0x271b95=_0x1e30fe[_0x363643(0x105)])==null?_0xfed185=>fetch(_0xfed185):_0x271b95,_0x3627d0=await De(_0x33b63f['source'],_0x3b44a6),_0x2b11a6=await Te(_0x3627d0),_0x4920d9=await _0x2ea8cc(_0x2b11a6);if(!_0x1e30fe['imageIoService'])return{'source':_0x2b11a6,'imageSourceType':_0x2e244b[_0x363643(0x131)],'width':_0x4920d9['width'],'height':_0x4920d9[_0x363643(0x122)],'image':_0x4920d9[_0x363643(0x11f)]};let _0x2fd3a5=new File([_0x3627d0],_0x54df0a[_0x363643(0xdc)],{'type':_0x3627d0[_0x363643(0xe7)]||'application/octet-stream'}),_0x9f6bed=await _0x1e30fe[_0x363643(0xed)][_0x363643(0x137)](_0x2fd3a5);if(!_0x9f6bed)throw Error(_0x363643(0x125));return _0x4920d9[_0x363643(0x11f)]&&_0x1e30fe[_0x363643(0xed)][_0x363643(0xef)](_0x9f6bed['source'],_0x9f6bed[_0x363643(0x186)],_0x4920d9[_0x363643(0x11f)]),{'source':_0x9f6bed[_0x363643(0x16a)],'imageSourceType':_0x9f6bed[_0x363643(0x186)],'width':_0x4920d9[_0x363643(0x140)],'height':_0x4920d9[_0x363643(0x122)],'image':_0x4920d9[_0x363643(0x11f)]};}async function U(_0x2cdfb0,_0x1bc122,_0x14e37a,_0x478546={}){const _0x38aa82=_0x1212d5;try{var _0x1f2474,_0x1896b5,_0x418e59,_0x287ab7;let _0x3c7eec={...C,..._0x478546[_0x38aa82(0x15a)]},_0x5bbedd=(_0x1f2474=_0x478546['resolveImageSize'])==null?_0x5f16ed:_0x1f2474,_0x1ece2b=((_0x1896b5=_0x2cdfb0['storagePolicy'])==null?_0x38aa82(0x161):_0x1896b5)===_0x38aa82(0x146)?await ke(_0x2cdfb0,_0x14e37a,_0x478546,_0x5bbedd):await Oe(_0x2cdfb0,_0x5bbedd,_0x3c7eec),_0x4ce125=Ee(_0x1ece2b[_0x38aa82(0x140)],_0x1ece2b[_0x38aa82(0x122)],_0x3c7eec),_0x51746b=_0xb60578({'id':(_0x418e59=(_0x287ab7=_0x478546[_0x38aa82(0x104)])==null?void 0x0:_0x287ab7[_0x38aa82(0xe5)](_0x478546))==null?_0x35d010(0x6):_0x418e59,'source':_0x1ece2b[_0x38aa82(0x16a)],'imageSourceType':_0x1ece2b['imageSourceType'],'left':_0x1bc122[_0x38aa82(0x17c)]['x']-_0x4ce125[_0x38aa82(0x140)]/0x2,'top':_0x1bc122['point']['y']-_0x4ce125['height']/0x2,'width':_0x4ce125['width'],'height':_0x4ce125[_0x38aa82(0x122)]});return x(_0x51746b,_0x14e37a,_0x2cdfb0[_0x38aa82(0x13d)]),{'ok':!0x0,'value':{'elements':[_0x51746b]}};}catch{return{'ok':!0x1,'diagnostics':[Ce]};}}var Ae=_0x1212d5(0x12c),je=_0x1212d5(0xea);function W(_0x5dbbfa,_0x33f1ed){return function(_0x3af6be,_0x3ca2a2){_0x33f1ed(_0x3af6be,_0x3ca2a2,_0x5dbbfa);};}function G(_0x52fe49,_0x4e03e9,_0x274969,_0x5d506c){const _0x2d8530=_0x1212d5;var _0x20648d=arguments[_0x2d8530(0x103)],_0x43bce0=_0x20648d<0x3?_0x4e03e9:_0x5d506c===null?_0x5d506c=Object[_0x2d8530(0x159)](_0x4e03e9,_0x274969):_0x5d506c,_0x324941;if(typeof Reflect=='object'&&typeof Reflect[_0x2d8530(0x116)]==_0x2d8530(0x10d))_0x43bce0=Reflect[_0x2d8530(0x116)](_0x52fe49,_0x4e03e9,_0x274969,_0x5d506c);else{for(var _0x92e873=_0x52fe49['length']-0x1;_0x92e873>=0x0;_0x92e873--)(_0x324941=_0x52fe49[_0x92e873])&&(_0x43bce0=(_0x20648d<0x3?_0x324941(_0x43bce0):_0x20648d>0x3?_0x324941(_0x4e03e9,_0x274969,_0x43bce0):_0x324941(_0x4e03e9,_0x274969))||_0x43bce0);}return _0x20648d>0x3&&_0x43bce0&&Object['defineProperty'](_0x4e03e9,_0x274969,_0x43bce0),_0x43bce0;}const K=_0x57b827(_0x1212d5(0x181));function Me(_0x264a1f){const _0x39e742=_0x1212d5;return typeof _0x264a1f!='object'||!_0x264a1f||!('ok'in _0x264a1f)||_0x264a1f['ok']!==!0x0||!('value'in _0x264a1f)||typeof _0x264a1f[_0x39e742(0x166)]!=_0x39e742(0xe6)||_0x264a1f[_0x39e742(0x166)]===null||!(_0x39e742(0x171)in _0x264a1f['value'])||!Array[_0x39e742(0xf8)](_0x264a1f['value'][_0x39e742(0x171)])||_0x264a1f[_0x39e742(0x166)][_0x39e742(0x171)][_0x39e742(0x103)]===0x0?null:_0x264a1f[_0x39e742(0x166)][_0x39e742(0x171)];}let q=class extends _0x48e618{constructor(_0x48f08c,_0x43c5df,_0x11dcdd,_0x1874c9){const _0x22aba0=_0x1212d5;super(),this[_0x22aba0(0x119)]=_0x48f08c,this[_0x22aba0(0xd1)]=_0x43c5df,this[_0x22aba0(0x158)]=_0x11dcdd,this['_instanceService']=_0x1874c9;}async[_0x1212d5(0xe4)](_0x4cc6a1,_0x5dc9fc,_0x1060dd){const _0x2719b9=_0x1212d5;var _0x4ab168,_0x94f07c;if(!(_0x1060dd==null||(_0x4ab168=_0x1060dd['signal'])==null)&&_0x4ab168[_0x2719b9(0xf9)]||this[_0x2719b9(0xeb)]||!this[_0x2719b9(0x11c)](_0x5dc9fc))return!0x1;let _0x377541=this[_0x2719b9(0x119)][_0x2719b9(0x141)](_0x4cc6a1);if(!_0x377541)return!0x1;let _0x5e9895=this[_0x2719b9(0xd1)][_0x2719b9(0x141)](_0x377541['payload']['type']);if(!_0x5e9895||_0x5e9895['validate'](_0x377541['payload'])[_0x2719b9(0x103)]>0x0)return!0x1;let _0x226fde;try{_0x226fde=await _0x5e9895[_0x2719b9(0xe4)](_0x377541[_0x2719b9(0x162)],_0x5dc9fc,_0x4cc6a1);}catch{return!0x1;}let _0x2e3897=Me(_0x226fde);if(!_0x2e3897||!(_0x1060dd==null||(_0x94f07c=_0x1060dd['signal'])==null)&&_0x94f07c[_0x2719b9(0xf9)]||this[_0x2719b9(0xeb)]||!this[_0x2719b9(0x11c)](_0x5dc9fc)||this[_0x2719b9(0x119)][_0x2719b9(0x141)](_0x4cc6a1)!==_0x377541)return!0x1;try{return _0x2e3897[_0x2719b9(0x103)]===0x1?!!await this[_0x2719b9(0x158)][_0x2719b9(0x113)](_0x5c3592['id'],{'unitId':_0x5dc9fc[_0x2719b9(0x15f)],'subUnitId':_0x5dc9fc[_0x2719b9(0x157)],'element':_0x2e3897[0x0]}):!!await this[_0x2719b9(0x158)]['executeCommand'](_0x4bc327['id'],{'unitId':_0x5dc9fc[_0x2719b9(0x15f)],'subUnitId':_0x5dc9fc['subUnitId'],'elements':_0x2e3897});}catch{return!0x1;}}[_0x1212d5(0x11c)](_0x2cae0a){const _0x774b9f=_0x1212d5;let _0xb902b8=this['_instanceService'][_0x774b9f(0x160)](_0x8b0e70['UNIVER_BOARD']);return(_0xb902b8==null?void 0x0:_0xb902b8['getUnitId']())===_0x2cae0a[_0x774b9f(0x15f)]&&_0xb902b8[_0x774b9f(0xd5)]()===_0x2cae0a[_0x774b9f(0x157)];}};q=G([W(0x0,_0x31cce8),W(0x1,_0x1e53f7),W(0x2,_0x1dde9f),W(0x3,_0x174a3c)],q);function J(_0x42054a){'@babel/helpers - typeof';const _0x412533=_0x1212d5;return J=typeof Symbol==_0x412533(0x10d)&&typeof Symbol[_0x412533(0x11d)]==_0x412533(0x16d)?function(_0x4e7083){return typeof _0x4e7083;}:function(_0x3c05f4){const _0x5bb8ba=_0x412533;return _0x3c05f4&&typeof Symbol==_0x5bb8ba(0x10d)&&_0x3c05f4['constructor']===Symbol&&_0x3c05f4!==Symbol[_0x5bb8ba(0x123)]?_0x5bb8ba(0x16d):typeof _0x3c05f4;},J(_0x42054a);}function Ne(_0x4e9dbc,_0x395a37){const _0x470b01=_0x1212d5;if(J(_0x4e9dbc)!=_0x470b01(0xe6)||!_0x4e9dbc)return _0x4e9dbc;var _0x4974fe=_0x4e9dbc[Symbol[_0x470b01(0xf3)]];if(_0x4974fe!==void 0x0){var _0x469dae=_0x4974fe[_0x470b01(0xe5)](_0x4e9dbc,_0x395a37||_0x470b01(0x12e));if(J(_0x469dae)!=_0x470b01(0xe6))return _0x469dae;throw TypeError(_0x470b01(0x108));}return(_0x395a37===_0x470b01(0xec)?String:Number)(_0x4e9dbc);}function Pe(_0x1aee01){const _0xf74c93=_0x1212d5;var _0x53db5b=Ne(_0x1aee01,_0xf74c93(0xec));return J(_0x53db5b)==_0xf74c93(0x16d)?_0x53db5b:_0x53db5b+'';}function Y(_0x649c00,_0x437ad5,_0x413f41){const _0x57b45d=_0x1212d5;return(_0x437ad5=Pe(_0x437ad5))in _0x649c00?Object[_0x57b45d(0x175)](_0x649c00,_0x437ad5,{'value':_0x413f41,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x649c00[_0x437ad5]=_0x413f41,_0x649c00;}const X=_0x1212d5(0x139);function Z(_0x576b50){const _0x537213=_0x1212d5;return[{'code':_0x537213(0x14e),'message':_0x576b50}];}function Fe(_0x1b8678){const _0x3c1036=_0x1212d5;return _0x1b8678===void 0x0||T(_0x1b8678)&&typeof _0x1b8678[_0x3c1036(0x140)]==_0x3c1036(0x12d)&&Number['isFinite'](_0x1b8678[_0x3c1036(0x140)])&&_0x1b8678[_0x3c1036(0x140)]>0x0&&typeof _0x1b8678[_0x3c1036(0x122)]==_0x3c1036(0x12d)&&Number[_0x3c1036(0x14a)](_0x1b8678[_0x3c1036(0x122)])&&_0x1b8678[_0x3c1036(0x122)]>0x0;}function Ie(_0x5a98d0){const _0x41a082=_0x1212d5;if(!T(_0x5a98d0)||_0x5a98d0[_0x41a082(0xe7)]!=='image'||!T(_0x5a98d0[_0x41a082(0x16a)]))return Z(_0x41a082(0x17a));let _0x489cae=_0x5a98d0[_0x41a082(0x16a)];return _0x489cae[_0x41a082(0xe7)]!==_0x41a082(0x100)&&_0x489cae[_0x41a082(0xe7)]!==_0x41a082(0x13a)&&_0x489cae['type']!==_0x41a082(0x156)||typeof _0x489cae[_0x41a082(0x166)]!=_0x41a082(0xec)||_0x5a98d0[_0x41a082(0x180)]!==void 0x0&&_0x5a98d0[_0x41a082(0x180)]!==_0x41a082(0x161)&&_0x5a98d0[_0x41a082(0x180)]!==_0x41a082(0x146)||!Fe(_0x5a98d0[_0x41a082(0x138)])||_0x5a98d0[_0x41a082(0x13d)]!==void 0x0&&typeof _0x5a98d0[_0x41a082(0x13d)]!=_0x41a082(0xec)?Z(_0x41a082(0x17a)):[];}function Q(_0x9b36e5){const _0x9f210a=_0x1212d5;return _0x9b36e5[_0x9f210a(0xfb)](({message:_0x32a640})=>({'code':_0x9f210a(0x14e),'message':_0x32a640}));}let $=class extends _0x5111af{constructor(_0x3be14d=w,_0x4aff71,_0x2d685a,_0x4bd683){const _0x3d62f4=_0x1212d5;super(),this[_0x3d62f4(0xe2)]=_0x3be14d,this[_0x3d62f4(0x10a)]=_0x4aff71,this['_configService']=_0x2d685a,this[_0x3d62f4(0x107)]=_0x4bd683;let {..._0x4d3d09}=_0x53f873({},w,this[_0x3d62f4(0xe2)]);this['_configService']['setConfig'](S,_0x4d3d09);}[_0x1212d5(0xd3)](){const _0x4d0f86=_0x1212d5;this[_0x4d0f86(0x10a)][_0x4d0f86(0x185)]([K,{'useClass':q}]),this[_0x4d0f86(0x15b)](this[_0x4d0f86(0x10a)][_0x4d0f86(0x141)](K));let _0x5306be=this[_0x4d0f86(0x10a)][_0x4d0f86(0x141)](_0x1e53f7),_0x8a8ff1={...C,...this[_0x4d0f86(0xe2)]['image']},_0x1a4614=()=>_0x35d010(0x6);[_0x5306be[_0x4d0f86(0x11e)]({'type':_0x4d0f86(0x11f),'validate':Ie,'materialize':(_0x6acd6d,_0x5c19b5,_0x4534a4)=>U(_0x6acd6d,_0x5c19b5,_0x4534a4,{'imageIoService':this['_imageIoService'],'imageConfig':_0x8a8ff1,'createId':_0x1a4614})}),_0x5306be['register']({'type':_0x4d0f86(0x154),'validate':_0x3a7e74=>Q(F(_0x3a7e74)),'materialize':(_0x5bd2aa,_0x2cc631,_0x512694)=>{let _0x25012b=F(_0x5bd2aa);return _0x25012b['length']>0x0?{'ok':!0x1,'diagnostics':_0x25012b}:{'ok':!0x0,'value':I(_0x5bd2aa,_0x2cc631,_0x512694,()=>_0x1a4614())};}}),_0x5306be[_0x4d0f86(0x11e)]({'type':_0x4d0f86(0x12b),'validate':_0x483678=>Q(R(_0x483678)),'materialize':(_0x484da8,_0x1a9518,_0x310f7d)=>V(_0x484da8,_0x1a9518,_0x310f7d,()=>_0x1a4614())})][_0x4d0f86(0xf2)](_0x13efe9=>{const _0x23d154=_0x4d0f86;_0x13efe9&&this[_0x23d154(0x15b)](_0x13efe9);});}};Y($,_0x1212d5(0x173),X),Y($,_0x1212d5(0xda),Ae),Y($,_0x1212d5(0x110),je),Y($,_0x1212d5(0xe7),_0x8b0e70['UNIVER_BOARD']),$=G([_0x1f35fc(_0x3b6559,_0x15e09f,_0x4b691a),W(0x1,_0x2555c1(_0x4aec64)),W(0x2,_0xc16e57),W(0x3,_0x9d8c73(_0x558bb2))],$);export{S as BOARDS_RESOURCES_PLUGIN_CONFIG_KEY,X as BOARDS_RESOURCES_PLUGIN_NAME,C as BOARD_RESOURCE_IMAGE_DEFAULT_CONFIG,q as BoardResourceMaterializerService,K as IBoardResourceMaterializerService,$ as UniverBoardsResourcesPlugin,b as createBoardResourceMetadata,I as materializeBoardElementResource,V as materializeBoardFragmentResource,U as materializeBoardImageResource,ce as readBoardResourceMetadata,F as validateBoardElementResourcePayload,R as validateBoardFragmentResourcePayload,x as writeBoardResourceMetadata};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IBoardConnectorElement, IBoardConnectorEndpoint, IBoardPageElement } from '@univerjs-pro/boards';
|
|
2
|
+
export type BoardResourceElementValidationResult = {
|
|
3
|
+
ok: true;
|
|
4
|
+
element: IBoardPageElement;
|
|
5
|
+
} | {
|
|
6
|
+
ok: false;
|
|
7
|
+
unsupported: boolean;
|
|
8
|
+
message: string;
|
|
9
|
+
elementId?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare function isBoardResourceRecord(value: unknown): value is Record<string, unknown>;
|
|
12
|
+
export declare function isSupportedBoardResourceElementType(type: unknown): type is IBoardPageElement['type'];
|
|
13
|
+
export declare function getBoardResourceConnectorEndpoints(element: IBoardConnectorElement): readonly IBoardConnectorEndpoint[];
|
|
14
|
+
export declare function validateBoardResourceElement(value: unknown): BoardResourceElementValidationResult;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { IBoardPageElement } from '@univerjs-pro/boards';
|
|
2
|
+
import type { IResourceReference } from '@univerjs-pro/resources';
|
|
3
|
+
import type { IBoardResourceMetadataV1 } from '../types/board-resource';
|
|
4
|
+
export declare function createBoardResourceMetadata(reference: IResourceReference, color?: string): IBoardResourceMetadataV1;
|
|
5
|
+
export declare function writeBoardResourceMetadata(element: IBoardPageElement, reference: IResourceReference, color?: string): void;
|
|
6
|
+
export declare function readBoardResourceMetadata(element: Pick<IBoardPageElement, 'custom'>): IBoardResourceMetadataV1 | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const BOARDS_RESOURCES_PLUGIN_CONFIG_KEY = "boards-resources.config";
|
|
2
|
+
export declare const configSymbol: unique symbol;
|
|
3
|
+
export interface IBoardResourceImageConfig {
|
|
4
|
+
fallbackWidth: number;
|
|
5
|
+
fallbackHeight: number;
|
|
6
|
+
minEdge: number;
|
|
7
|
+
maxWidth: number;
|
|
8
|
+
maxHeight: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const BOARD_RESOURCE_IMAGE_DEFAULT_CONFIG: IBoardResourceImageConfig;
|
|
11
|
+
export interface IUniverBoardsResourcesConfig {
|
|
12
|
+
image?: Partial<IBoardResourceImageConfig>;
|
|
13
|
+
}
|
|
14
|
+
export declare const defaultPluginConfig: IUniverBoardsResourcesConfig;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { createBoardResourceMetadata, readBoardResourceMetadata, writeBoardResourceMetadata, } from './common/board-resource-metadata';
|
|
2
|
+
export { BOARD_RESOURCE_IMAGE_DEFAULT_CONFIG, BOARDS_RESOURCES_PLUGIN_CONFIG_KEY } from './config/config';
|
|
3
|
+
export type { IBoardResourceImageConfig, IUniverBoardsResourcesConfig } from './config/config';
|
|
4
|
+
export { materializeBoardElementResource, validateBoardElementResourcePayload, } from './materializers/board-element-resource.materializer';
|
|
5
|
+
export { materializeBoardFragmentResource, validateBoardFragmentResourcePayload, } from './materializers/board-fragment-resource.materializer';
|
|
6
|
+
export { materializeBoardImageResource } from './materializers/board-image-resource.materializer';
|
|
7
|
+
export type { IBoardImageResourceMaterializerDependencies } from './materializers/board-image-resource.materializer';
|
|
8
|
+
export { BOARDS_RESOURCES_PLUGIN_NAME, UniverBoardsResourcesPlugin } from './plugin';
|
|
9
|
+
export { BoardResourceMaterializerService, IBoardResourceMaterializerService, } from './services/board-resource-materializer.service';
|
|
10
|
+
export type { IBoardResourceMaterializeOptions } from './services/board-resource-materializer.service';
|
|
11
|
+
export type { BoardResourceCustom, BoardResourceIdFactory, BoardResourceMaterializeDiagnosticCode, IBoardElementResourcePayload, IBoardFragmentResourceMaterializeResult, IBoardFragmentResourcePayload, IBoardResourceHandlerMaterializeResult, IBoardResourceMaterializeContext, IBoardResourceMaterializeDiagnostic, IBoardResourceMaterializeResult, IBoardResourceMetadataV1, } from './types/board-resource';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IResourceReference } from '@univerjs-pro/resources';
|
|
2
|
+
import type { BoardResourceIdFactory, IBoardElementResourcePayload, IBoardResourceMaterializeContext, IBoardResourceMaterializeDiagnostic, IBoardResourceMaterializeResult } from '../types/board-resource';
|
|
3
|
+
export declare function validateBoardElementResourcePayload(payload: unknown): readonly IBoardResourceMaterializeDiagnostic[];
|
|
4
|
+
/**
|
|
5
|
+
* Materializes a payload that has already passed `validateBoardElementResourcePayload`.
|
|
6
|
+
*/
|
|
7
|
+
export declare function materializeBoardElementResource(payload: IBoardElementResourcePayload, context: IBoardResourceMaterializeContext, reference: IResourceReference, createId: BoardResourceIdFactory): IBoardResourceMaterializeResult;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IResourceReference } from '@univerjs-pro/resources';
|
|
2
|
+
import type { BoardResourceIdFactory, IBoardFragmentResourceMaterializeResult, IBoardFragmentResourcePayload, IBoardResourceMaterializeContext, IBoardResourceMaterializeDiagnostic } from '../types/board-resource';
|
|
3
|
+
export declare function validateBoardFragmentResourcePayload(payload: unknown): readonly IBoardResourceMaterializeDiagnostic[];
|
|
4
|
+
export declare function materializeBoardFragmentResource(payload: IBoardFragmentResourcePayload, context: IBoardResourceMaterializeContext, reference: IResourceReference, createId: BoardResourceIdFactory): IBoardFragmentResourceMaterializeResult;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IResourceImagePayload, IResourceReference } from '@univerjs-pro/resources';
|
|
2
|
+
import type { IImageIoService } from '@univerjs/core';
|
|
3
|
+
import type { IBoardResourceImageConfig } from '../config/config';
|
|
4
|
+
import type { IBoardResourceHandlerMaterializeResult, IBoardResourceMaterializeContext } from '../types/board-resource';
|
|
5
|
+
interface IResolvedImageSize {
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
image?: HTMLImageElement;
|
|
9
|
+
}
|
|
10
|
+
export interface IBoardImageResourceMaterializerDependencies {
|
|
11
|
+
imageIoService?: IImageIoService;
|
|
12
|
+
fetcher?: (input: string) => Promise<Response>;
|
|
13
|
+
resolveImageSize?: (source: string) => Promise<IResolvedImageSize>;
|
|
14
|
+
createId?: () => string;
|
|
15
|
+
imageConfig?: Partial<IBoardResourceImageConfig>;
|
|
16
|
+
}
|
|
17
|
+
export declare function materializeBoardImageResource(payload: IResourceImagePayload, context: IBoardResourceMaterializeContext, reference: IResourceReference, dependencies?: IBoardImageResourceMaterializerDependencies): Promise<IBoardResourceHandlerMaterializeResult>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { IUniverBoardsResourcesConfig } from './config/config';
|
|
2
|
+
import { IConfigService, IImageIoService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
|
+
export declare const BOARDS_RESOURCES_PLUGIN_NAME = "UNIVER_BOARDS_RESOURCES_PLUGIN";
|
|
4
|
+
export declare class UniverBoardsResourcesPlugin extends Plugin {
|
|
5
|
+
private readonly _config;
|
|
6
|
+
protected readonly _injector: Injector;
|
|
7
|
+
private readonly _configService;
|
|
8
|
+
private readonly _imageIoService?;
|
|
9
|
+
static pluginName: string;
|
|
10
|
+
static packageName: string;
|
|
11
|
+
static version: string;
|
|
12
|
+
static type: UniverInstanceType;
|
|
13
|
+
constructor(_config: Partial<IUniverBoardsResourcesConfig> | undefined, _injector: Injector, _configService: IConfigService, _imageIoService?: IImageIoService | undefined);
|
|
14
|
+
onStarting(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { IResourceReference } from '@univerjs-pro/resources';
|
|
2
|
+
import type { IDisposable } from '@univerjs/core';
|
|
3
|
+
import type { IBoardResourceMaterializeContext } from '../types/board-resource';
|
|
4
|
+
import { IResourcePayloadHandlerRegistryService, IResourceRegistryService } from '@univerjs-pro/resources';
|
|
5
|
+
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
6
|
+
export interface IBoardResourceMaterializerService extends IDisposable {
|
|
7
|
+
materialize(reference: IResourceReference, context: IBoardResourceMaterializeContext, options?: IBoardResourceMaterializeOptions): Promise<boolean>;
|
|
8
|
+
}
|
|
9
|
+
export interface IBoardResourceMaterializeOptions {
|
|
10
|
+
signal?: AbortSignal;
|
|
11
|
+
}
|
|
12
|
+
export declare const IBoardResourceMaterializerService: import("@wendellhu/redi").IdentifierDecorator<IBoardResourceMaterializerService>;
|
|
13
|
+
export declare class BoardResourceMaterializerService extends Disposable implements IBoardResourceMaterializerService {
|
|
14
|
+
private readonly _registry;
|
|
15
|
+
private readonly _handlers;
|
|
16
|
+
private readonly _commandService;
|
|
17
|
+
private readonly _instanceService;
|
|
18
|
+
constructor(_registry: IResourceRegistryService, _handlers: IResourcePayloadHandlerRegistryService, _commandService: ICommandService, _instanceService: IUniverInstanceService);
|
|
19
|
+
materialize(reference: IResourceReference, context: IBoardResourceMaterializeContext, options?: IBoardResourceMaterializeOptions): Promise<boolean>;
|
|
20
|
+
private _isCurrentContext;
|
|
21
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { IBoardPageElement } from '@univerjs-pro/boards';
|
|
2
|
+
export interface IBoardElementResourcePayload {
|
|
3
|
+
type: 'boardElement';
|
|
4
|
+
element: IBoardPageElement;
|
|
5
|
+
}
|
|
6
|
+
export interface IBoardFragmentResourcePayload {
|
|
7
|
+
type: 'boardFragment';
|
|
8
|
+
elements: readonly IBoardPageElement[];
|
|
9
|
+
}
|
|
10
|
+
export interface IBoardResourceMetadataV1 {
|
|
11
|
+
schemaVersion: 1;
|
|
12
|
+
registryId: string;
|
|
13
|
+
resourceId: string;
|
|
14
|
+
color?: string;
|
|
15
|
+
}
|
|
16
|
+
export type BoardResourceCustom = {
|
|
17
|
+
resources?: IBoardResourceMetadataV1;
|
|
18
|
+
} & Record<string, unknown>;
|
|
19
|
+
export interface IBoardResourceMaterializeContext {
|
|
20
|
+
unitId: string;
|
|
21
|
+
subUnitId: string;
|
|
22
|
+
point: {
|
|
23
|
+
x: number;
|
|
24
|
+
y: number;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export interface IBoardResourceMaterializeResult {
|
|
28
|
+
elements: IBoardPageElement[];
|
|
29
|
+
}
|
|
30
|
+
export type BoardResourceMaterializeDiagnosticCode = 'invalid-board-element' | 'invalid-board-fragment' | 'unsupported-board-element' | 'image-resolution-failed';
|
|
31
|
+
export interface IBoardResourceMaterializeDiagnostic {
|
|
32
|
+
code: BoardResourceMaterializeDiagnosticCode;
|
|
33
|
+
message: string;
|
|
34
|
+
elementId?: string;
|
|
35
|
+
}
|
|
36
|
+
export type IBoardFragmentResourceMaterializeResult = {
|
|
37
|
+
ok: true;
|
|
38
|
+
value: IBoardResourceMaterializeResult;
|
|
39
|
+
} | {
|
|
40
|
+
ok: false;
|
|
41
|
+
diagnostics: readonly IBoardResourceMaterializeDiagnostic[];
|
|
42
|
+
};
|
|
43
|
+
export type IBoardResourceHandlerMaterializeResult = IBoardFragmentResourceMaterializeResult;
|
|
44
|
+
export type BoardResourceIdFactory = (sourceId: string) => string;
|
package/lib/umd/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x1066(_0x5d8bad,_0x11e881){_0x5d8bad=_0x5d8bad-0x1f2;const _0x21a52c=_0x21a5();let _0x10666b=_0x21a52c[_0x5d8bad];return _0x10666b;}function _0x21a5(){const _0x16802e=['UniverProBoards','ImageSourceType','_commandService','Inject','90TqbCjH','getActivePageId','materialize','IConfigService','unsupported-board-element','boolean','@univerjs-pro/license','boards-resources.config','Plugin','call','@univerjs/drawing','203753tyXDcy','application/octet-stream','curveData','Unknown\x20group\x20child\x20element\x20ID:\x20','materializeBoardFragmentResource','Board\x20elements\x20require\x20a\x20non-empty\x20ID,\x20valid\x20parent\x20ID,\x20and\x20finite\x20transform.','13hSeuJp','height','object','source','initialColor','children','image','@univerjs-pro/resources','Placeholder','type','defineProperty','invalid-image-payload','createIdentifier','boundaryRatio','arrayBuffer','Unsupported\x20Board\x20element\x20type:\x20','unitId','_instanceService','schemaVersion','image/svg+xml','subarray','imageSourceType','invalid-board-fragment','free','get','signal','UniverCore','elementId','Disposable','fetcher','271604IHsTmA','269002qZQbMI','1.0.0-insiders.20260717-1e84621','localUV','amd','Table','Board\x20fragment\x20parent\x20does\x20not\x20accept\x20children.','prototype','getImageSize','value','getCurrentUnitOfType','readBoardResourceMetadata','invalid-board-element','register','UniverLicensePlugin','acceptsChildren','push','parentId','resourceId','3KePDwf','@univerjs-pro/boards','UniverProResources','isFinite','isInteger','allowNested','segmentIndex','Unknown\x20parent\x20element\x20ID:\x20','Module','_handlers','outlineIndex','image-resolution-failed','Connector','auto','end','toPrimitive','min','resolveImageSize','_isCurrentContext','number','@univerjs-pro/boards-resources','max','length','20517lmgQIR','executeCommand','IImageIoService','anchors','toStringTag','from','color','_disposed','fallbackHeight','custom','Tools','disposeWithMe','boardFragment','svgText','payload','Board\x20elements\x20must\x20be\x20objects.','UniverProBoardsResources','isEditing','deepClone','start','top','boardElement','toLowerCase','Optional','20zStOKT','shapeBoundary','abs','symbol','reference','default','Container','intrinsicSize','1136543jIumuU','managed','shapeId','imageConfig','acceptsContainer','@univerjs/core','endpoint','UniverBoardsPlugin','string','_imageIoService','element','setConfig','Generated\x20Board\x20fragment\x20element\x20IDs\x20must\x20be\x20unique\x20and\x20non-empty.','laneId','Unknown\x20connector\x20endpoint\x20element\x20ID:\x20','containerData','Cyclic\x20Board\x20fragment\x20parent\x20relationship.','_registry','unsupported','pluginName','storagePolicy','point','aborted','offsetBoardConnectorGeometry','_configService','Duplicate\x20Board\x20fragment\x20element\x20ID:\x20','createBoardImageElement','BOARD_RESOURCE_IMAGE_DEFAULT_CONFIG','exec','base64','fallbackPoint','UniverBoardsResourcesPlugin','UniverDrawing','message','validateBoardFragmentResourcePayload','controls','A\x20Board\x20fragment\x20must\x20contain\x20at\x20least\x20one\x20element.','saveImage','data:image/svg+xml;charset=utf-8,','waypoints','createId','Chart','flatMap','round','selected','forEach','generateRandomId','segmentT','isArray','registryId','5506875wEWJqe','URL','maxHeight','map','transform','decorate','addImageSourceCache','behavior','Invalid\x20image\x20resource\x20payload.','manual','UniverInstanceType','imageIoService','UniverResourcesPlugin','_config','getUnitId','some','Shape','kind','2424FUmMwQ','connectionSiteId','subUnitId','add','width','UniverProLicense','Invalid\x20Board\x20element\x20resource\x20payload.','Injector','function','lifeline','Board\x20fragment\x20parent\x20does\x20not\x20accept\x20nested\x20containers.','trim','UNIVER_BOARD','A\x20standalone\x20Board\x20element\x20cannot\x20have\x20a\x20parent.','merge','validate','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Invalid\x20data\x20URL.','Group','data:','charCodeAt','offsetY','onStarting','fromCharCode','Unable\x20to\x20persist\x20managed\x20image.','IResourcePayloadHandlerRegistryService','orthogonalData','materializeBoardElementResource','IResourceRegistryService','11432508gTWqwP','has','connectorData',';base64,','shapeSite','elements','AddBoardElementsOperation','Invalid\x20Board\x20fragment\x20resource\x20payload.','DependentOn','BoardElementType','BOARDS_RESOURCES_PLUGIN_NAME','A\x20standalone\x20Board\x20connector\x20cannot\x20bind\x20to\x20another\x20element.','fallbackWidth','16oBZIoj','Media','writeBoardResourceMetadata','Board\x20container\x20child\x20behavior\x20is\x20invalid.','blob','_injector','iterator','validateBoardElementResourcePayload','dataUrl','left','Unable\x20to\x20resolve\x20the\x20resource\x20image.'];_0x21a5=function(){return _0x16802e;};return _0x21a5();}(function(_0x48067c,_0x4151e3){const _0x13fc77=_0x1066,_0x55b9ac=_0x48067c();while(!![]){try{const _0x55e8cd=-parseInt(_0x13fc77(0x2bf))/0x1+parseInt(_0x13fc77(0x276))/0x2*(-parseInt(_0x13fc77(0x288))/0x3)+-parseInt(_0x13fc77(0x275))/0x4*(-parseInt(_0x13fc77(0x2b7))/0x5)+-parseInt(_0x13fc77(0x20d))/0x6*(-parseInt(_0x13fc77(0x29f))/0x7)+parseInt(_0x13fc77(0x237))/0x8*(parseInt(_0x13fc77(0x1fb))/0x9)+parseInt(_0x13fc77(0x246))/0xa*(parseInt(_0x13fc77(0x251))/0xb)+parseInt(_0x13fc77(0x22a))/0xc*(-parseInt(_0x13fc77(0x257))/0xd);if(_0x55e8cd===_0x4151e3)break;else _0x55b9ac['push'](_0x55b9ac['shift']());}catch(_0x3fe60d){_0x55b9ac['push'](_0x55b9ac['shift']());}}}(_0x21a5,0x97f60),function(_0x5ea77f,_0x2feb98){const _0x39bf1c=_0x1066;typeof exports==_0x39bf1c(0x259)&&typeof module<'u'?_0x2feb98(exports,require('@univerjs-pro/boards'),require('@univerjs/core'),require('@univerjs/drawing'),require('@univerjs-pro/license'),require('@univerjs-pro/resources')):typeof define==_0x39bf1c(0x215)&&define[_0x39bf1c(0x279)]?define(['exports',_0x39bf1c(0x289),_0x39bf1c(0x2c4),_0x39bf1c(0x250),_0x39bf1c(0x24c),_0x39bf1c(0x25e)],_0x2feb98):(_0x5ea77f=typeof globalThis<'u'?globalThis:_0x5ea77f||self,_0x2feb98(_0x5ea77f[_0x39bf1c(0x2af)]={},_0x5ea77f[_0x39bf1c(0x242)],_0x5ea77f[_0x39bf1c(0x271)],_0x5ea77f[_0x39bf1c(0x2df)],_0x5ea77f[_0x39bf1c(0x212)],_0x5ea77f[_0x39bf1c(0x28a)]));}(this,function(_0x3303b5,_0x4d3f20,_0x10bfb0,_0x1cf096,_0x1eff47,_0x522a29){const _0x4fbf22=_0x1066;Object[_0x4fbf22(0x261)](_0x3303b5,Symbol[_0x4fbf22(0x2a3)],{'value':_0x4fbf22(0x290)});function _0x443fc4(_0x3122d9){const _0x177412=_0x4fbf22;return typeof _0x3122d9=='object'&&!!_0x3122d9&&!Array[_0x177412(0x1f9)](_0x3122d9);}function _0x2d6391(_0x3d7fc2,_0x49b099){const _0x122b90=_0x4fbf22;return{'schemaVersion':0x1,'registryId':_0x3d7fc2[_0x122b90(0x1fa)],'resourceId':_0x3d7fc2['resourceId'],..._0x49b099===void 0x0?null:{'color':_0x49b099}};}function _0xf659a3(_0x4b573b,_0x5f3e7,_0xa7c4cf){const _0x4a6045=_0x4fbf22;_0x4b573b['custom']={..._0x443fc4(_0x4b573b[_0x4a6045(0x2a8)])?_0x4b573b[_0x4a6045(0x2a8)]:{},'resources':_0x2d6391(_0x5f3e7,_0xa7c4cf)};}function _0x2fc888(_0x56b2cc){const _0x4cac6=_0x4fbf22;if(!_0x443fc4(_0x56b2cc[_0x4cac6(0x2a8)])||!_0x443fc4(_0x56b2cc['custom']['resources']))return null;let _0x49c77f=_0x56b2cc[_0x4cac6(0x2a8)]['resources'];return _0x49c77f[_0x4cac6(0x269)]!==0x1||typeof _0x49c77f[_0x4cac6(0x1fa)]!=_0x4cac6(0x2c7)||typeof _0x49c77f[_0x4cac6(0x287)]!=_0x4cac6(0x2c7)||_0x49c77f[_0x4cac6(0x2a5)]!==void 0x0&&typeof _0x49c77f[_0x4cac6(0x2a5)]!=_0x4cac6(0x2c7)?null:{'schemaVersion':0x1,'registryId':_0x49c77f['registryId'],'resourceId':_0x49c77f[_0x4cac6(0x287)],..._0x49c77f['color']===void 0x0?null:{'color':_0x49c77f['color']}};}let _0xca33ee=_0x4fbf22(0x24d),_0x3639e0={'fallbackWidth':0x140,'fallbackHeight':0xb4,'minEdge':0x50,'maxWidth':1075.2,'maxHeight':604.8},_0x3d3be1={},_0x580ccc=new Set([_0x4d3f20[_0x4fbf22(0x233)][_0x4fbf22(0x25f)],_0x4d3f20['BoardElementType']['Text'],_0x4d3f20['BoardElementType'][_0x4fbf22(0x20b)],_0x4d3f20[_0x4fbf22(0x233)]['Image'],_0x4d3f20['BoardElementType'][_0x4fbf22(0x1f2)],_0x4d3f20[_0x4fbf22(0x233)][_0x4fbf22(0x27a)],_0x4d3f20[_0x4fbf22(0x233)][_0x4fbf22(0x238)],_0x4d3f20[_0x4fbf22(0x233)][_0x4fbf22(0x21f)],_0x4d3f20[_0x4fbf22(0x233)]['Connector'],_0x4d3f20[_0x4fbf22(0x233)]['Container']]);function _0x2f79d3(_0x3d3122){const _0x585317=_0x4fbf22;return typeof _0x3d3122==_0x585317(0x259)&&!!_0x3d3122&&!Array[_0x585317(0x1f9)](_0x3d3122);}function _0x5862d8(_0x2503a8){const _0x14b524=_0x4fbf22;return typeof _0x2503a8=='number'&&Number[_0x14b524(0x28b)](_0x2503a8);}function _0x37bd21(_0x5916c5){return _0x5916c5===void 0x0||_0x5862d8(_0x5916c5);}function _0x152e7e(_0x94bd6c){return _0x2f79d3(_0x94bd6c)&&_0x5862d8(_0x94bd6c['x'])&&_0x5862d8(_0x94bd6c['y']);}function _0x19f36c(_0x2f1231){const _0x4fa019=_0x4fbf22;return _0x2f79d3(_0x2f1231)?_0x2f1231[_0x4fa019(0x20c)]===_0x4fa019(0x26e)?_0x5862d8(_0x2f1231['x'])&&_0x5862d8(_0x2f1231['y']):typeof _0x2f1231['shapeId']!=_0x4fa019(0x2c7)||_0x2f1231[_0x4fa019(0x2c1)]['trim']()[_0x4fa019(0x29e)]===0x0||_0x2f1231[_0x4fa019(0x2dd)]!==void 0x0&&!_0x152e7e(_0x2f1231[_0x4fa019(0x2dd)])?!0x1:_0x2f1231[_0x4fa019(0x20c)]===_0x4fa019(0x216)?_0x5862d8(_0x2f1231[_0x4fa019(0x222)]):_0x2f1231[_0x4fa019(0x20c)]===_0x4fa019(0x22e)?Number[_0x4fa019(0x28c)](_0x2f1231[_0x4fa019(0x20e)]):_0x2f1231['kind']===_0x4fa019(0x2b8)?Number[_0x4fa019(0x28c)](_0x2f1231[_0x4fa019(0x292)])&&Number['isInteger'](_0x2f1231[_0x4fa019(0x28e)])&&_0x5862d8(_0x2f1231[_0x4fa019(0x1f8)])&&_0x37bd21(_0x2f1231[_0x4fa019(0x264)])&&(_0x2f1231[_0x4fa019(0x278)]===void 0x0||_0x2f79d3(_0x2f1231[_0x4fa019(0x278)])&&_0x5862d8(_0x2f1231[_0x4fa019(0x278)]['u'])&&_0x5862d8(_0x2f1231[_0x4fa019(0x278)]['v'])):!0x1:!0x1;}function _0x4ae689(_0x4c2935){const _0x1929bb=_0x4fbf22;return _0x2f79d3(_0x4c2935)&&typeof _0x4c2935['id']==_0x1929bb(0x2c7)&&_0x4c2935['id'][_0x1929bb(0x218)]()['length']>0x0&&(_0x4c2935[_0x1929bb(0x20c)]===_0x1929bb(0x204)||_0x4c2935['kind']===_0x1929bb(0x295))&&_0x5862d8(_0x4c2935['x'])&&_0x5862d8(_0x4c2935['y']);}function _0xfc1504(_0x1cd4ed){const _0x25249b=_0x4fbf22;if(!_0x4ae689(_0x1cd4ed))return!0x1;let _0x4878b2=_0x1cd4ed[_0x25249b(0x2c5)];return _0x4878b2===void 0x0||_0x19f36c(_0x4878b2);}function _0x29765b(_0x3f44a2){const _0x853d31=_0x4fbf22;return _0x4ae689(_0x3f44a2)?Number['isInteger'](_0x3f44a2[_0x853d31(0x28e)]):!0x1;}function _0x14de6c(_0x174875,_0x52406c){const _0x1f89c4=_0x4fbf22;return _0x174875===void 0x0||Array[_0x1f89c4(0x1f9)](_0x174875)&&_0x174875['every'](_0x52406c);}function _0x25c2f0(_0x12f57c){const _0x4a6f5c=_0x4fbf22;return!(!_0x2f79d3(_0x12f57c)||!_0x19f36c(_0x12f57c[_0x4a6f5c(0x2b2)])||!_0x19f36c(_0x12f57c['end'])||!_0x14de6c(_0x12f57c[_0x4a6f5c(0x2e6)],_0x4ae689)||_0x12f57c[_0x4a6f5c(0x227)]!==void 0x0&&(!_0x2f79d3(_0x12f57c[_0x4a6f5c(0x227)])||!_0x14de6c(_0x12f57c[_0x4a6f5c(0x227)]['routePoints'],_0x4ae689))||_0x12f57c[_0x4a6f5c(0x253)]!==void 0x0&&(!_0x2f79d3(_0x12f57c['curveData'])||!_0x14de6c(_0x12f57c[_0x4a6f5c(0x253)][_0x4a6f5c(0x2a2)],_0xfc1504)||!_0x14de6c(_0x12f57c[_0x4a6f5c(0x253)][_0x4a6f5c(0x2e2)],_0x29765b)));}function _0x1b1871(_0x139c9c){const _0x47a362=_0x4fbf22;return _0x2f79d3(_0x139c9c)?_0x37bd21(_0x139c9c['left'])&&_0x37bd21(_0x139c9c['top'])&&_0x37bd21(_0x139c9c['width'])&&_0x37bd21(_0x139c9c[_0x47a362(0x258)]):!0x1;}function _0x10090e(_0x2ad4b7){const _0x309917=_0x4fbf22;return typeof _0x2ad4b7=='string'&&_0x580ccc[_0x309917(0x22b)](_0x2ad4b7);}function _0x58491e(_0x3e2ce1){const _0x1ea1a9=_0x4fbf22;var _0x3d55a5;let _0x1deaec=[_0x3e2ce1[_0x1ea1a9(0x22c)][_0x1ea1a9(0x2b2)],_0x3e2ce1[_0x1ea1a9(0x22c)][_0x1ea1a9(0x296)]];return(_0x3d55a5=_0x3e2ce1[_0x1ea1a9(0x22c)][_0x1ea1a9(0x253)])==null||(_0x3d55a5=_0x3d55a5[_0x1ea1a9(0x2a2)])==null||_0x3d55a5[_0x1ea1a9(0x1f6)](_0xf159a0=>{const _0xef4819=_0x1ea1a9;_0xf159a0[_0xef4819(0x2c5)]&&_0x1deaec[_0xef4819(0x285)](_0xf159a0[_0xef4819(0x2c5)]);}),_0x1deaec;}function _0x5ef9aa(_0x3e0846){const _0x2f4ebb=_0x4fbf22;if(!_0x2f79d3(_0x3e0846))return{'ok':!0x1,'unsupported':!0x1,'message':_0x2f4ebb(0x2ae)};if(!_0x10090e(_0x3e0846[_0x2f4ebb(0x260)]))return{'ok':!0x1,'unsupported':!0x0,'message':_0x2f4ebb(0x266)+String(_0x3e0846['type'])+'.',...typeof _0x3e0846['id']=='string'?{'elementId':_0x3e0846['id']}:null};if(typeof _0x3e0846['id']!='string'||_0x3e0846['id'][_0x2f4ebb(0x218)]()[_0x2f4ebb(0x29e)]===0x0||!_0x1b1871(_0x3e0846['transform'])||_0x3e0846['parentId']!==void 0x0&&(typeof _0x3e0846[_0x2f4ebb(0x286)]!=_0x2f4ebb(0x2c7)||_0x3e0846[_0x2f4ebb(0x286)][_0x2f4ebb(0x218)]()[_0x2f4ebb(0x29e)]===0x0))return{'ok':!0x1,'unsupported':!0x1,'message':_0x2f4ebb(0x256),...typeof _0x3e0846['id']==_0x2f4ebb(0x2c7)?{'elementId':_0x3e0846['id']}:null};if(_0x3e0846[_0x2f4ebb(0x260)]===_0x4d3f20[_0x2f4ebb(0x233)]['Group']&&(!Array[_0x2f4ebb(0x1f9)](_0x3e0846[_0x2f4ebb(0x25c)])||_0x3e0846[_0x2f4ebb(0x25c)][_0x2f4ebb(0x20a)](_0x10e934=>typeof _0x10e934!=_0x2f4ebb(0x2c7)||_0x10e934[_0x2f4ebb(0x218)]()[_0x2f4ebb(0x29e)]===0x0)))return{'ok':!0x1,'unsupported':!0x1,'message':'Board\x20group\x20children\x20must\x20be\x20non-empty\x20string\x20IDs.','elementId':_0x3e0846['id']};if(_0x3e0846['type']===_0x4d3f20[_0x2f4ebb(0x233)][_0x2f4ebb(0x294)]&&!_0x25c2f0(_0x3e0846[_0x2f4ebb(0x22c)]))return{'ok':!0x1,'unsupported':!0x1,'message':'Board\x20connector\x20geometry\x20is\x20invalid.','elementId':_0x3e0846['id']};if(_0x3e0846['type']===_0x4d3f20[_0x2f4ebb(0x233)]['Container']){let _0x58ab97=_0x2f79d3(_0x3e0846[_0x2f4ebb(0x2ce)])?_0x3e0846[_0x2f4ebb(0x2ce)]['behavior']:void 0x0;if(!_0x2f79d3(_0x58ab97)||typeof _0x58ab97[_0x2f4ebb(0x284)]!=_0x2f4ebb(0x24b)||typeof _0x58ab97[_0x2f4ebb(0x2c3)]!=_0x2f4ebb(0x24b)||typeof _0x58ab97[_0x2f4ebb(0x28d)]!=_0x2f4ebb(0x24b))return{'ok':!0x1,'unsupported':!0x1,'message':_0x2f4ebb(0x23a),'elementId':_0x3e0846['id']};}return{'ok':!0x0,'element':_0x3e0846};}let _0x167c48=[_0x4fbf22(0x1f5),'isSelected','isHovered',_0x4fbf22(0x2b0),'runtimeState'];function _0x3a773d(_0x1fff06){const _0x5c93c7=_0x4fbf22;let _0xf82d65=_0x1fff06;_0x167c48[_0x5c93c7(0x1f6)](_0x1829b0=>delete _0xf82d65[_0x1829b0]);}function _0xa0dc43(_0xb04d0){const _0x4c3eb9=_0x4fbf22;if(!_0x2f79d3(_0xb04d0)||_0xb04d0[_0x4c3eb9(0x260)]!==_0x4c3eb9(0x2b4))return[{'code':_0x4c3eb9(0x281),'message':_0x4c3eb9(0x213)}];let _0x368006=_0x5ef9aa(_0xb04d0[_0x4c3eb9(0x2c9)]);if(!_0x368006['ok'])return[{'code':_0x368006[_0x4c3eb9(0x2d1)]?_0x4c3eb9(0x24a):'invalid-board-element','message':_0x368006[_0x4c3eb9(0x2e0)],..._0x368006[_0x4c3eb9(0x272)]?{'elementId':_0x368006[_0x4c3eb9(0x272)]}:null}];let _0x46a753=_0x368006[_0x4c3eb9(0x2c9)];return _0x46a753['parentId']?[{'code':_0x4c3eb9(0x281),'message':_0x4c3eb9(0x21a),'elementId':_0x46a753['id']}]:_0x46a753[_0x4c3eb9(0x260)]===_0x4d3f20[_0x4c3eb9(0x233)][_0x4c3eb9(0x21f)]&&_0x46a753[_0x4c3eb9(0x25c)]['length']>0x0?[{'code':_0x4c3eb9(0x281),'message':'A\x20standalone\x20Board\x20group\x20cannot\x20reference\x20child\x20elements.','elementId':_0x46a753['id']}]:_0x46a753[_0x4c3eb9(0x260)]===_0x4d3f20[_0x4c3eb9(0x233)][_0x4c3eb9(0x294)]&&_0x58491e(_0x46a753)[_0x4c3eb9(0x20a)](_0x4e2fdc=>_0x4e2fdc['kind']!==_0x4c3eb9(0x26e))?[{'code':_0x4c3eb9(0x281),'message':_0x4c3eb9(0x235),'elementId':_0x46a753['id']}]:[];}function _0x14f767(_0x3db1be){const _0x4f93a4=_0x4fbf22;var _0x510fea,_0x403ea0,_0x5622e1,_0x4773c7;let _0x52aa49=(_0x510fea=_0x3db1be[_0x4f93a4(0x1ff)]['left'])==null?0x0:_0x510fea,_0x131b16=(_0x403ea0=_0x3db1be[_0x4f93a4(0x1ff)][_0x4f93a4(0x2b3)])==null?0x0:_0x403ea0,_0x52345d=(_0x5622e1=_0x3db1be[_0x4f93a4(0x1ff)][_0x4f93a4(0x211)])==null?0x0:_0x5622e1,_0x2227b7=(_0x4773c7=_0x3db1be['transform'][_0x4f93a4(0x258)])==null?0x0:_0x4773c7;return{'left':_0x52345d>=0x0?_0x52aa49:_0x52aa49+_0x52345d,'top':_0x2227b7>=0x0?_0x131b16:_0x131b16+_0x2227b7,'width':Math[_0x4f93a4(0x2b9)](_0x52345d),'height':Math['abs'](_0x2227b7)};}function _0x553700(_0x193d13,_0x5363b8,_0x184e4e,_0x2d1058){const _0x6adfe7=_0x4fbf22;var _0xf3ae80,_0x4297c5;let _0x1368d6=_0x10bfb0[_0x6adfe7(0x2a9)][_0x6adfe7(0x2b1)](_0x193d13['element']),_0x14c515=_0x14f767(_0x1368d6),_0x307e06={'x':_0x5363b8[_0x6adfe7(0x2d4)]['x']-(_0x14c515[_0x6adfe7(0x240)]+_0x14c515['width']/0x2),'y':_0x5363b8['point']['y']-(_0x14c515[_0x6adfe7(0x2b3)]+_0x14c515['height']/0x2)};return _0x1368d6['id']=_0x2d1058(_0x193d13[_0x6adfe7(0x2c9)]['id']),delete _0x1368d6[_0x6adfe7(0x286)],delete _0x1368d6[_0x6adfe7(0x2cc)],_0x3a773d(_0x1368d6),_0x1368d6[_0x6adfe7(0x1ff)]={..._0x1368d6['transform'],'left':((_0xf3ae80=_0x1368d6[_0x6adfe7(0x1ff)][_0x6adfe7(0x240)])==null?0x0:_0xf3ae80)+_0x307e06['x'],'top':((_0x4297c5=_0x1368d6[_0x6adfe7(0x1ff)][_0x6adfe7(0x2b3)])==null?0x0:_0x4297c5)+_0x307e06['y']},_0x1368d6['type']===_0x4d3f20[_0x6adfe7(0x233)][_0x6adfe7(0x294)]&&(_0x1368d6=(0x0,_0x4d3f20[_0x6adfe7(0x2d6)])(_0x1368d6,_0x307e06)),_0xf659a3(_0x1368d6,_0x184e4e),{'elements':[_0x1368d6]};}function _0xc9dad1(_0x15d22e,_0x4f4ead){const _0x2791fe=_0x4fbf22;return{'code':_0x2791fe(0x26d),'message':_0x15d22e,..._0x4f4ead?{'elementId':_0x4f4ead}:null};}function _0x676393(_0x515e64){const _0x4fab98=_0x4fbf22;return{'code':'unsupported-board-element','message':_0x4fab98(0x266)+String(_0x515e64[_0x4fab98(0x260)])+'.',...typeof _0x515e64['id']==_0x4fab98(0x2c7)?{'elementId':_0x515e64['id']}:null};}function _0xbd85db(_0xa42c5d){const _0x1b6cec=_0x4fbf22;if(!_0x2f79d3(_0xa42c5d)||_0xa42c5d[_0x1b6cec(0x260)]!==_0x1b6cec(0x2ab)||!Array[_0x1b6cec(0x1f9)](_0xa42c5d[_0x1b6cec(0x22f)]))return[_0xc9dad1(_0x1b6cec(0x231))];let _0x4842f6=_0xa42c5d[_0x1b6cec(0x22f)]['map'](_0x57156a=>{const _0x3ad8d4=_0x1b6cec;let _0x40e965=_0x5ef9aa(_0x57156a);return _0x40e965['ok']?null:_0x40e965['unsupported']?_0x676393({'id':_0x40e965[_0x3ad8d4(0x272)],'type':_0x2f79d3(_0x57156a)?_0x57156a[_0x3ad8d4(0x260)]:void 0x0}):_0xc9dad1(_0x40e965[_0x3ad8d4(0x2e0)],_0x40e965['elementId']);})['filter'](_0x19ccd8=>_0x19ccd8!==null);return _0x4842f6[_0x1b6cec(0x29e)]>0x0?_0x4842f6:_0x3bd008(_0xa42c5d);}function _0x3bd008(_0x567b79){const _0x28231d=_0x4fbf22;if(!Array['isArray'](_0x567b79['elements'])||_0x567b79[_0x28231d(0x22f)][_0x28231d(0x29e)]===0x0)return[_0xc9dad1(_0x28231d(0x2e3))];let _0x417d48=[],_0x3c348f=new Set();if(_0x567b79[_0x28231d(0x22f)]['forEach'](_0x4044bf=>{const _0x3f6994=_0x28231d;if(_0x3c348f['has'](_0x4044bf['id'])){_0x417d48[_0x3f6994(0x285)](_0xc9dad1(_0x3f6994(0x2d8)+_0x4044bf['id']+'.',_0x4044bf['id']));return;}_0x3c348f[_0x3f6994(0x210)](_0x4044bf['id']);}),_0x417d48['length']>0x0)return _0x417d48;let _0x559302=new Map(_0x567b79['elements'][_0x28231d(0x1fe)](_0x1be2c9=>[_0x1be2c9['id'],_0x1be2c9]));_0x567b79[_0x28231d(0x22f)][_0x28231d(0x1f6)](_0x2446da=>{const _0x18aba3=_0x28231d;if(_0x2446da['parentId']&&!_0x3c348f[_0x18aba3(0x22b)](_0x2446da[_0x18aba3(0x286)])&&_0x417d48[_0x18aba3(0x285)](_0xc9dad1(_0x18aba3(0x28f)+_0x2446da[_0x18aba3(0x286)]+'.',_0x2446da['id'])),_0x2446da[_0x18aba3(0x286)]&&_0x3c348f[_0x18aba3(0x22b)](_0x2446da[_0x18aba3(0x286)])){let _0x33ce96=_0x559302[_0x18aba3(0x26f)](_0x2446da[_0x18aba3(0x286)]);_0x33ce96['type']===_0x4d3f20['BoardElementType'][_0x18aba3(0x2bd)]?_0x33ce96[_0x18aba3(0x2ce)][_0x18aba3(0x202)][_0x18aba3(0x284)]?_0x2446da[_0x18aba3(0x260)]===_0x4d3f20[_0x18aba3(0x233)]['Container']&&(!_0x33ce96[_0x18aba3(0x2ce)][_0x18aba3(0x202)]['acceptsContainer']||!_0x33ce96['containerData'][_0x18aba3(0x202)][_0x18aba3(0x28d)])&&_0x417d48['push'](_0xc9dad1(_0x18aba3(0x217),_0x2446da['id'])):_0x417d48[_0x18aba3(0x285)](_0xc9dad1(_0x18aba3(0x27b),_0x2446da['id'])):_0x417d48[_0x18aba3(0x285)](_0xc9dad1('Board\x20fragment\x20parents\x20must\x20be\x20container\x20elements.',_0x2446da['id']));}_0x2446da['type']===_0x4d3f20[_0x18aba3(0x233)][_0x18aba3(0x21f)]&&_0x2446da['children']['forEach'](_0x55317f=>{const _0x403aa7=_0x18aba3;_0x3c348f[_0x403aa7(0x22b)](_0x55317f)||_0x417d48[_0x403aa7(0x285)](_0xc9dad1(_0x403aa7(0x254)+_0x55317f+'.',_0x2446da['id']));}),_0x2446da[_0x18aba3(0x260)]===_0x4d3f20[_0x18aba3(0x233)][_0x18aba3(0x294)]&&_0x58491e(_0x2446da)[_0x18aba3(0x1f6)](_0x5d7dd9=>{const _0x1d5c51=_0x18aba3;_0x5d7dd9[_0x1d5c51(0x20c)]!==_0x1d5c51(0x26e)&&!_0x3c348f[_0x1d5c51(0x22b)](_0x5d7dd9[_0x1d5c51(0x2c1)])&&_0x417d48['push'](_0xc9dad1(_0x1d5c51(0x2cd)+_0x5d7dd9[_0x1d5c51(0x2c1)]+'.',_0x2446da['id']));});});let _0x1614f9=new Map(_0x567b79[_0x28231d(0x22f)]['map'](_0x6e20dc=>[_0x6e20dc['id'],_0x6e20dc[_0x28231d(0x286)]]));return _0x567b79[_0x28231d(0x22f)][_0x28231d(0x1f6)](_0x55eca4=>{const _0xa2aa37=_0x28231d;let _0x13c4f2=new Set([_0x55eca4['id']]),_0x1eb825=_0x55eca4['parentId'];for(;_0x1eb825;){if(_0x13c4f2[_0xa2aa37(0x22b)](_0x1eb825)){_0x417d48[_0xa2aa37(0x285)](_0xc9dad1(_0xa2aa37(0x2cf),_0x55eca4['id']));break;}_0x13c4f2[_0xa2aa37(0x210)](_0x1eb825),_0x1eb825=_0x1614f9[_0xa2aa37(0x26f)](_0x1eb825);}}),_0x417d48;}function _0x44e1c3(_0x1162d6,_0xc0522e){const _0x43665c=_0x4fbf22;var _0x3d6c2f,_0x1ff4ce,_0x1aebb7,_0x21c24a;let _0x17ef8a=(_0x3d6c2f=_0x1162d6[_0x43665c(0x240)])==null?0x0:_0x3d6c2f,_0x33048d=(_0x1ff4ce=_0x1162d6[_0x43665c(0x2b3)])==null?0x0:_0x1ff4ce,_0x187c64=(_0x1aebb7=_0x1162d6[_0x43665c(0x211)])==null?0x0:_0x1aebb7,_0x28106b=(_0x21c24a=_0x1162d6[_0x43665c(0x258)])==null?0x0:_0x21c24a,_0x18a66c=_0x17ef8a+_0xc0522e['x'],_0x52f0fb=_0x33048d+_0xc0522e['y'];return{'left':_0x187c64>=0x0?_0x18a66c:_0x18a66c+_0x187c64,'top':_0x28106b>=0x0?_0x52f0fb:_0x52f0fb+_0x28106b,'width':Math[_0x43665c(0x2b9)](_0x187c64),'height':Math['abs'](_0x28106b)};}function _0x1ce9d1(_0x1434c8,_0x1a85a6){const _0x45c400=_0x4fbf22;let _0x3df1ce=_0x1434c8[_0x45c400(0x286)],_0x4c7b81=0x0,_0x2b207a=0x0;for(;_0x3df1ce;){var _0xf71916,_0x5b1426;let _0x58ccb1=_0x1a85a6[_0x45c400(0x26f)](_0x3df1ce);if(!_0x58ccb1)break;_0x4c7b81+=(_0xf71916=_0x58ccb1['transform'][_0x45c400(0x240)])==null?0x0:_0xf71916,_0x2b207a+=(_0x5b1426=_0x58ccb1[_0x45c400(0x1ff)][_0x45c400(0x2b3)])==null?0x0:_0x5b1426,_0x3df1ce=_0x58ccb1[_0x45c400(0x286)];}return{'x':_0x4c7b81,'y':_0x2b207a};}function _0x2359ff(_0x5ef596){const _0x46774f=_0x4fbf22;let _0x2d220d=new Map(_0x5ef596['map'](_0x56a1e6=>[_0x56a1e6['id'],_0x56a1e6])),_0x3c2f8e=_0x5ef596[_0x46774f(0x1fe)](_0x246b0f=>_0x44e1c3(_0x246b0f[_0x46774f(0x1ff)],_0x1ce9d1(_0x246b0f,_0x2d220d))),_0x13d7a7=Math[_0x46774f(0x298)](..._0x3c2f8e[_0x46774f(0x1fe)](_0x5ee1cc=>_0x5ee1cc[_0x46774f(0x240)])),_0x5b417a=Math[_0x46774f(0x298)](..._0x3c2f8e['map'](_0x422396=>_0x422396[_0x46774f(0x2b3)])),_0x566c58=Math[_0x46774f(0x29d)](..._0x3c2f8e[_0x46774f(0x1fe)](_0x57a2fa=>_0x57a2fa[_0x46774f(0x240)]+_0x57a2fa[_0x46774f(0x211)])),_0x2b24f4=Math[_0x46774f(0x29d)](..._0x3c2f8e[_0x46774f(0x1fe)](_0x4de149=>_0x4de149[_0x46774f(0x2b3)]+_0x4de149[_0x46774f(0x258)]));return{'left':_0x13d7a7,'top':_0x5b417a,'width':_0x566c58-_0x13d7a7,'height':_0x2b24f4-_0x5b417a};}function _0x28aca9(_0x4a97fa,_0x2e25b3){const _0x35bd76=_0x4fbf22;return _0x4a97fa['kind']===_0x35bd76(0x26e)?_0x4a97fa:{..._0x4a97fa,'shapeId':_0x2e25b3[_0x35bd76(0x26f)](_0x4a97fa[_0x35bd76(0x2c1)])};}function _0x306abd(_0x57fd58,_0x3d9c60){const _0x42bf89=_0x4fbf22;var _0x101030;return{..._0x57fd58,'connectorData':{..._0x57fd58[_0x42bf89(0x22c)],'start':_0x28aca9(_0x57fd58[_0x42bf89(0x22c)]['start'],_0x3d9c60),'end':_0x28aca9(_0x57fd58['connectorData']['end'],_0x3d9c60),'curveData':_0x57fd58[_0x42bf89(0x22c)][_0x42bf89(0x253)]?{..._0x57fd58[_0x42bf89(0x22c)][_0x42bf89(0x253)],'anchors':(_0x101030=_0x57fd58[_0x42bf89(0x22c)][_0x42bf89(0x253)][_0x42bf89(0x2a2)])==null?void 0x0:_0x101030[_0x42bf89(0x1fe)](_0x1bbe4f=>({..._0x1bbe4f,..._0x1bbe4f['endpoint']?{'endpoint':_0x28aca9(_0x1bbe4f[_0x42bf89(0x2c5)],_0x3d9c60)}:null}))}:_0x57fd58[_0x42bf89(0x22c)]['curveData']}};}function _0x5da27d(_0x197786,_0xb8d52){const _0x54251e=_0x4fbf22;return!_0x197786[_0x54251e(0x286)]&&!_0xb8d52[_0x54251e(0x22b)](_0x197786['id']);}function _0x1b92a1(_0x330250,_0x526ef4,_0xccfa6e,_0xeaefa5){const _0x476a25=_0x4fbf22;let _0x30954b=_0xbd85db(_0x330250);if(_0x30954b[_0x476a25(0x29e)]>0x0)return{'ok':!0x1,'diagnostics':_0x30954b};let _0x470a39=new Map(_0x330250[_0x476a25(0x22f)]['map'](_0x54be41=>[_0x54be41['id'],_0xeaefa5(_0x54be41['id'])])),_0xd5c300=[..._0x470a39['values']()];if(_0xd5c300[_0x476a25(0x20a)](_0x1d6ada=>typeof _0x1d6ada!='string'||_0x1d6ada[_0x476a25(0x218)]()['length']===0x0)||new Set(_0xd5c300)['size']!==_0xd5c300['length'])return{'ok':!0x1,'diagnostics':[_0xc9dad1(_0x476a25(0x2cb))]};let _0x431495=_0x2359ff(_0x330250[_0x476a25(0x22f)]),_0x5c0e04={'x':_0x526ef4[_0x476a25(0x2d4)]['x']-(_0x431495['left']+_0x431495[_0x476a25(0x211)]/0x2),'y':_0x526ef4[_0x476a25(0x2d4)]['y']-(_0x431495[_0x476a25(0x2b3)]+_0x431495[_0x476a25(0x258)]/0x2)},_0x19c1b2=new Set(_0x330250[_0x476a25(0x22f)][_0x476a25(0x1f3)](_0xa3ff6d=>_0xa3ff6d['type']===_0x4d3f20[_0x476a25(0x233)]['Group']?_0xa3ff6d[_0x476a25(0x25c)]:[]));return{'ok':!0x0,'value':{'elements':_0x330250[_0x476a25(0x22f)]['map'](_0x2a6937=>{const _0x46b4ac=_0x476a25;let _0x1b9543=_0x10bfb0[_0x46b4ac(0x2a9)][_0x46b4ac(0x2b1)](_0x2a6937);if(_0x3a773d(_0x1b9543),_0x1b9543['id']=_0x470a39[_0x46b4ac(0x26f)](_0x2a6937['id']),_0x1b9543['parentId']&&(_0x1b9543['parentId']=_0x470a39[_0x46b4ac(0x26f)](_0x1b9543[_0x46b4ac(0x286)])),!_0x2a6937[_0x46b4ac(0x286)]){var _0x1cf0aa,_0x9cc24;_0x1b9543[_0x46b4ac(0x1ff)]={..._0x1b9543[_0x46b4ac(0x1ff)],'left':((_0x1cf0aa=_0x1b9543['transform']['left'])==null?0x0:_0x1cf0aa)+_0x5c0e04['x'],'top':((_0x9cc24=_0x1b9543[_0x46b4ac(0x1ff)][_0x46b4ac(0x2b3)])==null?0x0:_0x9cc24)+_0x5c0e04['y']};}return _0x1b9543[_0x46b4ac(0x260)]===_0x4d3f20[_0x46b4ac(0x233)][_0x46b4ac(0x21f)]&&(_0x1b9543[_0x46b4ac(0x25c)]=_0x1b9543[_0x46b4ac(0x25c)]['map'](_0x5cf9ee=>_0x470a39[_0x46b4ac(0x26f)](_0x5cf9ee))),_0x1b9543[_0x46b4ac(0x260)]===_0x4d3f20[_0x46b4ac(0x233)][_0x46b4ac(0x294)]&&(_0x1b9543=_0x306abd((0x0,_0x4d3f20[_0x46b4ac(0x2d6)])(_0x1b9543,_0x5c0e04),_0x470a39)),_0x5da27d(_0x2a6937,_0x19c1b2)&&_0xf659a3(_0x1b9543,_0xccfa6e),_0x1b9543;})}};}let _0x42b211={'code':_0x4fbf22(0x293),'message':_0x4fbf22(0x241)};function _0x11d8cf(_0x1fae3e){const _0x5bf7bd=_0x4fbf22;return _0x5bf7bd(0x2e5)+encodeURIComponent(_0x1fae3e);}function _0x22b074(_0x2ba14b){const _0x196e36=_0x4fbf22;let _0x5d4f69=/^data:([^;,]+)((?:;[^,]*)*),(.*)$/is[_0x196e36(0x2db)](_0x2ba14b);if(!_0x5d4f69)throw Error(_0x196e36(0x21e));let _0x4d8cee=_0x5d4f69[0x1][_0x196e36(0x218)]();if(_0x5d4f69[0x2]['split'](';')['filter'](Boolean)[_0x196e36(0x20a)](_0x5d237d=>_0x5d237d[_0x196e36(0x2b5)]()===_0x196e36(0x2dc))){let _0x3cea03=atob(_0x5d4f69[0x3]),_0x1ef799=Uint8Array[_0x196e36(0x2a4)](_0x3cea03,_0xa19f26=>_0xa19f26[_0x196e36(0x221)](0x0));return new Blob([_0x1ef799],{'type':_0x4d8cee});}return new Blob([decodeURIComponent(_0x5d4f69[0x3])],{'type':_0x4d8cee});}async function _0x416101(_0x199010){const _0x1b88e1=_0x4fbf22;let _0x2f1ce2=new Uint8Array(await _0x199010[_0x1b88e1(0x265)]()),_0x3d08f5=0x8000,_0xc34cfe='';for(let _0x4f1ac1=0x0;_0x4f1ac1<_0x2f1ce2[_0x1b88e1(0x29e)];_0x4f1ac1+=_0x3d08f5)_0xc34cfe+=String[_0x1b88e1(0x224)](..._0x2f1ce2[_0x1b88e1(0x26b)](_0x4f1ac1,_0x4f1ac1+_0x3d08f5));return _0x1b88e1(0x220)+(_0x199010[_0x1b88e1(0x260)]||'application/octet-stream')+_0x1b88e1(0x22d)+btoa(_0xc34cfe);}function _0x1a730b(_0x3549c2,_0xb0d6f3,_0x18be40){const _0x2626fe=_0x4fbf22;let _0xd5c646=Number['isFinite'](_0x3549c2)&&_0x3549c2>0x0?_0x3549c2:_0x18be40['fallbackWidth'],_0x370b3a=Number[_0x2626fe(0x28b)](_0xb0d6f3)&&_0xb0d6f3>0x0?_0xb0d6f3:_0x18be40['fallbackHeight'],_0x140ed6=Math[_0x2626fe(0x298)](_0x18be40['maxWidth']/_0xd5c646,_0x18be40[_0x2626fe(0x1fd)]/_0x370b3a,Math['max'](0x1,_0x18be40['minEdge']/Math[_0x2626fe(0x298)](_0xd5c646,_0x370b3a)));return{'width':Math[_0x2626fe(0x1f4)](_0xd5c646*_0x140ed6),'height':Math[_0x2626fe(0x1f4)](_0x370b3a*_0x140ed6)};}async function _0x2a1138(_0x200702,_0x51bb3e){const _0x528d98=_0x4fbf22;if(_0x200702[_0x528d98(0x260)]===_0x528d98(0x2ac))return new Blob([_0x200702[_0x528d98(0x27e)]],{'type':_0x528d98(0x26a)});if(_0x200702[_0x528d98(0x260)]===_0x528d98(0x23f))return _0x22b074(_0x200702[_0x528d98(0x27e)]);let _0x3c7d83=await _0x51bb3e(_0x200702['value']);if(!_0x3c7d83['ok'])throw Error('Unable\x20to\x20fetch\x20managed\x20image.');return _0x3c7d83[_0x528d98(0x23b)]();}async function _0x4ca4f6(_0x2d5bb0,_0x2523f5,_0x2f2ce7){const _0x735b05=_0x4fbf22;if(_0x2d5bb0[_0x735b05(0x2be)]!==void 0x0)return{'source':_0x2d5bb0[_0x735b05(0x25a)][_0x735b05(0x260)]===_0x735b05(0x2ac)?_0x11d8cf(_0x2d5bb0[_0x735b05(0x25a)]['value']):_0x2d5bb0['source'][_0x735b05(0x27e)],'imageSourceType':_0x10bfb0[_0x735b05(0x243)][_0x735b05(0x1fc)],'width':_0x2d5bb0[_0x735b05(0x2be)][_0x735b05(0x211)],'height':_0x2d5bb0[_0x735b05(0x2be)]['height']};if(_0x2d5bb0[_0x735b05(0x25a)][_0x735b05(0x260)]==='url')return{'source':_0x2d5bb0['source'][_0x735b05(0x27e)],'imageSourceType':_0x10bfb0[_0x735b05(0x243)][_0x735b05(0x1fc)],'width':_0x2f2ce7[_0x735b05(0x236)],'height':_0x2f2ce7[_0x735b05(0x2a7)]};let _0x5837b2=_0x2d5bb0[_0x735b05(0x25a)]['type']===_0x735b05(0x2ac)?_0x11d8cf(_0x2d5bb0[_0x735b05(0x25a)][_0x735b05(0x27e)]):_0x2d5bb0[_0x735b05(0x25a)][_0x735b05(0x27e)],_0x9ea4d4=await _0x2523f5(_0x5837b2);return{'source':_0x5837b2,'imageSourceType':_0x10bfb0['ImageSourceType'][_0x735b05(0x1fc)],'width':_0x9ea4d4['width'],'height':_0x9ea4d4[_0x735b05(0x258)],'image':_0x9ea4d4[_0x735b05(0x25d)]};}async function _0x3aa257(_0x76c92c,_0x1c2682,_0x9cad1,_0x53fc66){const _0x156fb8=_0x4fbf22;var _0x167e2d;let _0x37b230=(_0x167e2d=_0x9cad1[_0x156fb8(0x274)])==null?_0x190232=>fetch(_0x190232):_0x167e2d,_0x5717f2=await _0x2a1138(_0x76c92c['source'],_0x37b230),_0x40e8dd=await _0x416101(_0x5717f2),_0x1039ad=await _0x53fc66(_0x40e8dd);if(!_0x9cad1[_0x156fb8(0x206)])return{'source':_0x40e8dd,'imageSourceType':_0x10bfb0[_0x156fb8(0x243)][_0x156fb8(0x1fc)],'width':_0x1039ad['width'],'height':_0x1039ad[_0x156fb8(0x258)],'image':_0x1039ad[_0x156fb8(0x25d)]};let _0x3dce9e=new File([_0x5717f2],_0x1c2682['resourceId'],{'type':_0x5717f2[_0x156fb8(0x260)]||_0x156fb8(0x252)}),_0xed4204=await _0x9cad1['imageIoService'][_0x156fb8(0x2e4)](_0x3dce9e);if(!_0xed4204)throw Error(_0x156fb8(0x225));return _0x1039ad[_0x156fb8(0x25d)]&&_0x9cad1[_0x156fb8(0x206)][_0x156fb8(0x201)](_0xed4204['source'],_0xed4204[_0x156fb8(0x26c)],_0x1039ad[_0x156fb8(0x25d)]),{'source':_0xed4204[_0x156fb8(0x25a)],'imageSourceType':_0xed4204[_0x156fb8(0x26c)],'width':_0x1039ad[_0x156fb8(0x211)],'height':_0x1039ad['height'],'image':_0x1039ad['image']};}async function _0xd85f15(_0x21889d,_0x2ac4ae,_0x5eebc3,_0x5325dc={}){const _0x169a3c=_0x4fbf22;try{var _0x5dc73f,_0x1c346a,_0x322488,_0x4bde63;let _0xb2d83e={..._0x3639e0,..._0x5325dc[_0x169a3c(0x2c2)]},_0x4b4f7c=(_0x5dc73f=_0x5325dc[_0x169a3c(0x299)])==null?_0x1cf096[_0x169a3c(0x27d)]:_0x5dc73f,_0x4dec85=((_0x1c346a=_0x21889d[_0x169a3c(0x2d3)])==null?_0x169a3c(0x2bb):_0x1c346a)==='managed'?await _0x3aa257(_0x21889d,_0x5eebc3,_0x5325dc,_0x4b4f7c):await _0x4ca4f6(_0x21889d,_0x4b4f7c,_0xb2d83e),_0x4b8195=_0x1a730b(_0x4dec85[_0x169a3c(0x211)],_0x4dec85[_0x169a3c(0x258)],_0xb2d83e),_0x56d508=(0x0,_0x4d3f20[_0x169a3c(0x2d9)])({'id':(_0x322488=(_0x4bde63=_0x5325dc[_0x169a3c(0x2e7)])==null?void 0x0:_0x4bde63[_0x169a3c(0x24f)](_0x5325dc))==null?(0x0,_0x10bfb0[_0x169a3c(0x1f7)])(0x6):_0x322488,'source':_0x4dec85['source'],'imageSourceType':_0x4dec85[_0x169a3c(0x26c)],'left':_0x2ac4ae[_0x169a3c(0x2d4)]['x']-_0x4b8195[_0x169a3c(0x211)]/0x2,'top':_0x2ac4ae[_0x169a3c(0x2d4)]['y']-_0x4b8195[_0x169a3c(0x258)]/0x2,'width':_0x4b8195[_0x169a3c(0x211)],'height':_0x4b8195['height']});return _0xf659a3(_0x56d508,_0x5eebc3,_0x21889d[_0x169a3c(0x25b)]),{'ok':!0x0,'value':{'elements':[_0x56d508]}};}catch{return{'ok':!0x1,'diagnostics':[_0x42b211]};}}var _0x3d43b2=_0x4fbf22(0x29c),_0xd1a10d=_0x4fbf22(0x277);function _0xde7b50(_0x2334ea,_0x524a0c){return function(_0x3a2445,_0x15a026){_0x524a0c(_0x3a2445,_0x15a026,_0x2334ea);};}function _0xff9c76(_0x37678c,_0x16d87a,_0x2a66f5,_0x306e24){const _0x51c4fe=_0x4fbf22;var _0x21d87a=arguments[_0x51c4fe(0x29e)],_0x2c9abe=_0x21d87a<0x3?_0x16d87a:_0x306e24===null?_0x306e24=Object['getOwnPropertyDescriptor'](_0x16d87a,_0x2a66f5):_0x306e24,_0x3c95ff;if(typeof Reflect==_0x51c4fe(0x259)&&typeof Reflect['decorate']==_0x51c4fe(0x215))_0x2c9abe=Reflect[_0x51c4fe(0x200)](_0x37678c,_0x16d87a,_0x2a66f5,_0x306e24);else{for(var _0x1c7033=_0x37678c[_0x51c4fe(0x29e)]-0x1;_0x1c7033>=0x0;_0x1c7033--)(_0x3c95ff=_0x37678c[_0x1c7033])&&(_0x2c9abe=(_0x21d87a<0x3?_0x3c95ff(_0x2c9abe):_0x21d87a>0x3?_0x3c95ff(_0x16d87a,_0x2a66f5,_0x2c9abe):_0x3c95ff(_0x16d87a,_0x2a66f5))||_0x2c9abe);}return _0x21d87a>0x3&&_0x2c9abe&&Object[_0x51c4fe(0x261)](_0x16d87a,_0x2a66f5,_0x2c9abe),_0x2c9abe;}let _0x455076=(0x0,_0x10bfb0[_0x4fbf22(0x263)])('boards-resources.materializer.service');function _0x4363bf(_0x59caab){const _0xed5c3c=_0x4fbf22;return typeof _0x59caab!=_0xed5c3c(0x259)||!_0x59caab||!('ok'in _0x59caab)||_0x59caab['ok']!==!0x0||!(_0xed5c3c(0x27e)in _0x59caab)||typeof _0x59caab[_0xed5c3c(0x27e)]!=_0xed5c3c(0x259)||_0x59caab[_0xed5c3c(0x27e)]===null||!('elements'in _0x59caab[_0xed5c3c(0x27e)])||!Array[_0xed5c3c(0x1f9)](_0x59caab['value']['elements'])||_0x59caab[_0xed5c3c(0x27e)][_0xed5c3c(0x22f)][_0xed5c3c(0x29e)]===0x0?null:_0x59caab[_0xed5c3c(0x27e)][_0xed5c3c(0x22f)];}let _0x5ec52a=class extends _0x10bfb0[_0x4fbf22(0x273)]{constructor(_0x1d493c,_0x3e3d00,_0x49e33b,_0x2dee6c){const _0x5f27dd=_0x4fbf22;super(),this[_0x5f27dd(0x2d0)]=_0x1d493c,this[_0x5f27dd(0x291)]=_0x3e3d00,this['_commandService']=_0x49e33b,this[_0x5f27dd(0x268)]=_0x2dee6c;}async[_0x4fbf22(0x248)](_0x54db16,_0x338df0,_0x2dcc35){const _0x28d3e8=_0x4fbf22;var _0x4b1e10,_0x53ded6;if(!(_0x2dcc35==null||(_0x4b1e10=_0x2dcc35[_0x28d3e8(0x270)])==null)&&_0x4b1e10[_0x28d3e8(0x2d5)]||this[_0x28d3e8(0x2a6)]||!this[_0x28d3e8(0x29a)](_0x338df0))return!0x1;let _0x469b24=this[_0x28d3e8(0x2d0)][_0x28d3e8(0x26f)](_0x54db16);if(!_0x469b24)return!0x1;let _0x2c0cab=this['_handlers'][_0x28d3e8(0x26f)](_0x469b24['payload'][_0x28d3e8(0x260)]);if(!_0x2c0cab||_0x2c0cab[_0x28d3e8(0x21c)](_0x469b24[_0x28d3e8(0x2ad)])[_0x28d3e8(0x29e)]>0x0)return!0x1;let _0x389fc7;try{_0x389fc7=await _0x2c0cab[_0x28d3e8(0x248)](_0x469b24['payload'],_0x338df0,_0x54db16);}catch{return!0x1;}let _0x29050c=_0x4363bf(_0x389fc7);if(!_0x29050c||!(_0x2dcc35==null||(_0x53ded6=_0x2dcc35[_0x28d3e8(0x270)])==null)&&_0x53ded6[_0x28d3e8(0x2d5)]||this['_disposed']||!this[_0x28d3e8(0x29a)](_0x338df0)||this[_0x28d3e8(0x2d0)][_0x28d3e8(0x26f)](_0x54db16)!==_0x469b24)return!0x1;try{return _0x29050c['length']===0x1?!!await this['_commandService']['executeCommand'](_0x4d3f20['AddBoardElementOperation']['id'],{'unitId':_0x338df0[_0x28d3e8(0x267)],'subUnitId':_0x338df0[_0x28d3e8(0x20f)],'element':_0x29050c[0x0]}):!!await this[_0x28d3e8(0x244)][_0x28d3e8(0x2a0)](_0x4d3f20[_0x28d3e8(0x230)]['id'],{'unitId':_0x338df0['unitId'],'subUnitId':_0x338df0[_0x28d3e8(0x20f)],'elements':_0x29050c});}catch{return!0x1;}}[_0x4fbf22(0x29a)](_0x41b4ac){const _0x56e226=_0x4fbf22;let _0x2a2dec=this[_0x56e226(0x268)][_0x56e226(0x27f)](_0x10bfb0[_0x56e226(0x205)][_0x56e226(0x219)]);return(_0x2a2dec==null?void 0x0:_0x2a2dec[_0x56e226(0x209)]())===_0x41b4ac[_0x56e226(0x267)]&&_0x2a2dec[_0x56e226(0x247)]()===_0x41b4ac[_0x56e226(0x20f)];}};_0x5ec52a=_0xff9c76([_0xde7b50(0x0,_0x522a29[_0x4fbf22(0x229)]),_0xde7b50(0x1,_0x522a29[_0x4fbf22(0x226)]),_0xde7b50(0x2,_0x10bfb0['ICommandService']),_0xde7b50(0x3,_0x10bfb0['IUniverInstanceService'])],_0x5ec52a);function _0x3dc0ad(_0x3780ad){'@babel/helpers - typeof';const _0x2b10e2=_0x4fbf22;return _0x3dc0ad=typeof Symbol==_0x2b10e2(0x215)&&typeof Symbol[_0x2b10e2(0x23d)]==_0x2b10e2(0x2ba)?function(_0x5cecfb){return typeof _0x5cecfb;}:function(_0x33159c){const _0x5eeb07=_0x2b10e2;return _0x33159c&&typeof Symbol==_0x5eeb07(0x215)&&_0x33159c['constructor']===Symbol&&_0x33159c!==Symbol[_0x5eeb07(0x27c)]?'symbol':typeof _0x33159c;},_0x3dc0ad(_0x3780ad);}function _0xf50d1e(_0x5f3b88,_0x1d8643){const _0xd0ae13=_0x4fbf22;if(_0x3dc0ad(_0x5f3b88)!=_0xd0ae13(0x259)||!_0x5f3b88)return _0x5f3b88;var _0x2b6a7c=_0x5f3b88[Symbol[_0xd0ae13(0x297)]];if(_0x2b6a7c!==void 0x0){var _0x59d40f=_0x2b6a7c['call'](_0x5f3b88,_0x1d8643||_0xd0ae13(0x2bc));if(_0x3dc0ad(_0x59d40f)!=_0xd0ae13(0x259))return _0x59d40f;throw TypeError(_0xd0ae13(0x21d));}return(_0x1d8643===_0xd0ae13(0x2c7)?String:Number)(_0x5f3b88);}function _0x35cb62(_0x5eb44a){const _0x20635d=_0x4fbf22;var _0x20f699=_0xf50d1e(_0x5eb44a,_0x20635d(0x2c7));return _0x3dc0ad(_0x20f699)==_0x20635d(0x2ba)?_0x20f699:_0x20f699+'';}function _0x29b141(_0x2ed43a,_0x14847f,_0x4f69ff){const _0x461ad8=_0x4fbf22;return(_0x14847f=_0x35cb62(_0x14847f))in _0x2ed43a?Object[_0x461ad8(0x261)](_0x2ed43a,_0x14847f,{'value':_0x4f69ff,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2ed43a[_0x14847f]=_0x4f69ff,_0x2ed43a;}let _0x4b46d8='UNIVER_BOARDS_RESOURCES_PLUGIN';function _0x5d54fd(_0x35b921){const _0xc88806=_0x4fbf22;return[{'code':_0xc88806(0x262),'message':_0x35b921}];}function _0xaca044(_0x216030){const _0xcb1539=_0x4fbf22;return _0x216030===void 0x0||_0x2f79d3(_0x216030)&&typeof _0x216030[_0xcb1539(0x211)]==_0xcb1539(0x29b)&&Number[_0xcb1539(0x28b)](_0x216030[_0xcb1539(0x211)])&&_0x216030[_0xcb1539(0x211)]>0x0&&typeof _0x216030[_0xcb1539(0x258)]=='number'&&Number['isFinite'](_0x216030[_0xcb1539(0x258)])&&_0x216030[_0xcb1539(0x258)]>0x0;}function _0x38e7fc(_0x2069ec){const _0x26b6ad=_0x4fbf22;if(!_0x2f79d3(_0x2069ec)||_0x2069ec['type']!=='image'||!_0x2f79d3(_0x2069ec[_0x26b6ad(0x25a)]))return _0x5d54fd(_0x26b6ad(0x203));let _0x146ab2=_0x2069ec['source'];return _0x146ab2[_0x26b6ad(0x260)]!=='url'&&_0x146ab2['type']!==_0x26b6ad(0x23f)&&_0x146ab2[_0x26b6ad(0x260)]!=='svgText'||typeof _0x146ab2['value']!=_0x26b6ad(0x2c7)||_0x2069ec[_0x26b6ad(0x2d3)]!==void 0x0&&_0x2069ec['storagePolicy']!==_0x26b6ad(0x2bb)&&_0x2069ec[_0x26b6ad(0x2d3)]!==_0x26b6ad(0x2c0)||!_0xaca044(_0x2069ec[_0x26b6ad(0x2be)])||_0x2069ec[_0x26b6ad(0x25b)]!==void 0x0&&typeof _0x2069ec[_0x26b6ad(0x25b)]!=_0x26b6ad(0x2c7)?_0x5d54fd(_0x26b6ad(0x203)):[];}function _0x5ec7b8(_0x411f97){const _0xb384e1=_0x4fbf22;return _0x411f97[_0xb384e1(0x1fe)](({message:_0x3ac7b3})=>({'code':_0xb384e1(0x262),'message':_0x3ac7b3}));}let _0x4a8a15=class extends _0x10bfb0[_0x4fbf22(0x24e)]{constructor(_0xb36bef=_0x3d3be1,_0x4ad634,_0x4f8b73,_0x7114bc){const _0x14088e=_0x4fbf22;super(),this[_0x14088e(0x208)]=_0xb36bef,this[_0x14088e(0x23c)]=_0x4ad634,this['_configService']=_0x4f8b73,this[_0x14088e(0x2c8)]=_0x7114bc;let {..._0x104ee3}=(0x0,_0x10bfb0[_0x14088e(0x21b)])({},_0x3d3be1,this[_0x14088e(0x208)]);this[_0x14088e(0x2d7)][_0x14088e(0x2ca)](_0xca33ee,_0x104ee3);}[_0x4fbf22(0x223)](){const _0xd23c85=_0x4fbf22;this[_0xd23c85(0x23c)][_0xd23c85(0x210)]([_0x455076,{'useClass':_0x5ec52a}]),this[_0xd23c85(0x2aa)](this[_0xd23c85(0x23c)][_0xd23c85(0x26f)](_0x455076));let _0xf13161=this[_0xd23c85(0x23c)][_0xd23c85(0x26f)](_0x522a29[_0xd23c85(0x226)]),_0x2dc801={..._0x3639e0,...this[_0xd23c85(0x208)][_0xd23c85(0x25d)]},_0x52c130=()=>(0x0,_0x10bfb0[_0xd23c85(0x1f7)])(0x6);[_0xf13161[_0xd23c85(0x282)]({'type':_0xd23c85(0x25d),'validate':_0x38e7fc,'materialize':(_0x3e1d92,_0x2f460b,_0x1b5d1c)=>_0xd85f15(_0x3e1d92,_0x2f460b,_0x1b5d1c,{'imageIoService':this['_imageIoService'],'imageConfig':_0x2dc801,'createId':_0x52c130})}),_0xf13161[_0xd23c85(0x282)]({'type':'boardElement','validate':_0x56741e=>_0x5ec7b8(_0xa0dc43(_0x56741e)),'materialize':(_0x377643,_0xa44d1,_0x5a4631)=>{const _0x211ea1=_0xd23c85;let _0x26fc6f=_0xa0dc43(_0x377643);return _0x26fc6f[_0x211ea1(0x29e)]>0x0?{'ok':!0x1,'diagnostics':_0x26fc6f}:{'ok':!0x0,'value':_0x553700(_0x377643,_0xa44d1,_0x5a4631,()=>_0x52c130())};}}),_0xf13161[_0xd23c85(0x282)]({'type':_0xd23c85(0x2ab),'validate':_0x64af62=>_0x5ec7b8(_0xbd85db(_0x64af62)),'materialize':(_0x5cb368,_0x1805f2,_0x3d348f)=>_0x1b92a1(_0x5cb368,_0x1805f2,_0x3d348f,()=>_0x52c130())})]['forEach'](_0x3786c3=>{const _0x3e76a7=_0xd23c85;_0x3786c3&&this[_0x3e76a7(0x2aa)](_0x3786c3);});}};_0x29b141(_0x4a8a15,_0x4fbf22(0x2d2),_0x4b46d8),_0x29b141(_0x4a8a15,'packageName',_0x3d43b2),_0x29b141(_0x4a8a15,'version',_0xd1a10d),_0x29b141(_0x4a8a15,_0x4fbf22(0x260),_0x10bfb0[_0x4fbf22(0x205)][_0x4fbf22(0x219)]),_0x4a8a15=_0xff9c76([(0x0,_0x10bfb0[_0x4fbf22(0x232)])(_0x1eff47[_0x4fbf22(0x283)],_0x4d3f20[_0x4fbf22(0x2c6)],_0x522a29[_0x4fbf22(0x207)]),_0xde7b50(0x1,(0x0,_0x10bfb0[_0x4fbf22(0x245)])(_0x10bfb0[_0x4fbf22(0x214)])),_0xde7b50(0x2,_0x10bfb0[_0x4fbf22(0x249)]),_0xde7b50(0x3,(0x0,_0x10bfb0[_0x4fbf22(0x2b6)])(_0x10bfb0[_0x4fbf22(0x2a1)]))],_0x4a8a15),_0x3303b5['BOARDS_RESOURCES_PLUGIN_CONFIG_KEY']=_0xca33ee,_0x3303b5[_0x4fbf22(0x234)]=_0x4b46d8,_0x3303b5[_0x4fbf22(0x2da)]=_0x3639e0,Object[_0x4fbf22(0x261)](_0x3303b5,'BoardResourceMaterializerService',{'enumerable':!0x0,'get':function(){return _0x5ec52a;}}),_0x3303b5['IBoardResourceMaterializerService']=_0x455076,Object[_0x4fbf22(0x261)](_0x3303b5,_0x4fbf22(0x2de),{'enumerable':!0x0,'get':function(){return _0x4a8a15;}}),_0x3303b5['createBoardResourceMetadata']=_0x2d6391,_0x3303b5[_0x4fbf22(0x228)]=_0x553700,_0x3303b5[_0x4fbf22(0x255)]=_0x1b92a1,_0x3303b5['materializeBoardImageResource']=_0xd85f15,_0x3303b5[_0x4fbf22(0x280)]=_0x2fc888,_0x3303b5[_0x4fbf22(0x23e)]=_0xa0dc43,_0x3303b5[_0x4fbf22(0x2e1)]=_0xbd85db,_0x3303b5[_0x4fbf22(0x239)]=_0xf659a3;}));
|
package/package.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@univerjs-pro/boards-resources",
|
|
3
|
+
"version": "1.0.0-insiders.20260717-1e84621",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Static resource materialization for Univer Pro boards.",
|
|
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
|
+
"boards",
|
|
23
|
+
"resources"
|
|
24
|
+
],
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"import": "./lib/es/index.js",
|
|
28
|
+
"require": "./lib/cjs/index.js",
|
|
29
|
+
"types": "./lib/types/index.d.ts"
|
|
30
|
+
},
|
|
31
|
+
"./*": {
|
|
32
|
+
"import": "./lib/es/*",
|
|
33
|
+
"require": "./lib/cjs/*",
|
|
34
|
+
"types": "./lib/types/index.d.ts"
|
|
35
|
+
},
|
|
36
|
+
"./lib/*": "./lib/*"
|
|
37
|
+
},
|
|
38
|
+
"main": "./lib/es/index.js",
|
|
39
|
+
"types": "./lib/types/index.d.ts",
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public"
|
|
42
|
+
},
|
|
43
|
+
"directories": {
|
|
44
|
+
"lib": "lib"
|
|
45
|
+
},
|
|
46
|
+
"files": [
|
|
47
|
+
"lib"
|
|
48
|
+
],
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@univerjs-pro/resources": "1.0.0-insiders.20260717-1e84621",
|
|
51
|
+
"@univerjs-pro/license": "1.0.0-insiders.20260717-1e84621",
|
|
52
|
+
"@univerjs-pro/boards": "1.0.0-insiders.20260717-1e84621",
|
|
53
|
+
"@univerjs/core": "1.0.0-insiders.20260717-1e84621",
|
|
54
|
+
"@univerjs/drawing": "1.0.0-insiders.20260717-1e84621"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"typescript": "^6.0.3",
|
|
58
|
+
"vitest": "^4.1.10",
|
|
59
|
+
"@univerjs-infra/shared": "1.0.0-alpha.3"
|
|
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
|
+
}
|