@univerjs-pro/engine-formula 1.0.0-beta.1 → 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x3c3cf5=_0x540c;(function(_0x147100,_0x1fb22b){var _0x4e206c=_0x540c,_0x451761=_0x147100();while(!![]){try{var _0x367957=parseInt(_0x4e206c(0x1ca))/0x1*(parseInt(_0x4e206c(0x1b8))/0x2)+parseInt(_0x4e206c(0x1cb))/0x3*(-parseInt(_0x4e206c(0x1c6))/0x4)+parseInt(_0x4e206c(0x1bf))/0x5+-parseInt(_0x4e206c(0x1c5))/0x6*(parseInt(_0x4e206c(0x1c3))/0x7)+-parseInt(_0x4e206c(0x1c0))/0x8+parseInt(_0x4e206c(0x1c9))/0x9+parseInt(_0x4e206c(0x1b9))/0xa;if(_0x367957===_0x1fb22b)break;else _0x451761['push'](_0x451761['shift']());}catch(_0x476561){_0x451761['push'](_0x451761['shift']());}}}(_0x55a8,0xdbb27));import{FFormula as _0x4dd8ba,FFormula as _0x5d114c}from'@univerjs/engine-formula/facade';import{FormulaReferenceType as _0x264696,RemoveHostExternalReferenceCommand as _0x3a6d21,UpsertHostExternalReferenceCommand as _0x3dc209,buildFormulaReference as _0x370faa}from'@univerjs-pro/engine-formula';import{FEnum as _0x277364}from'@univerjs/core/facade';import{UniverInstanceType as _0x3debef}from'@univerjs/core';function _0x540c(_0x4d0660,_0x28bba4){_0x4d0660=_0x4d0660-0x1b7;var _0x55a8c8=_0x55a8();var _0x540ccd=_0x55a8c8[_0x4d0660];return _0x540ccd;}var c=class extends _0x277364{get['FormulaReferenceType'](){return _0x264696;}};function _0x55a8(){var _0x2d1f5b=['871888yvLvvB','78PrjwDq','extend','2KnxfCE','31136120NRtpeq','unitId','SHEET_RANGE','UNIVER_BASE','syncExecuteCommand','removeExternalReference','2283400XBuatc','14247152gfFFWX','kind','_commandService','1772295rFiqvC','upsertExternalReference','30UbrowJ','270796NEXMKl','Failed\x20to\x20bind\x20external\x20formula\x20reference\x20\x22','buildReference','11382228tFpnnq'];_0x55a8=function(){return _0x2d1f5b;};return _0x55a8();}_0x277364[_0x3c3cf5(0x1b7)](c);var l=class extends _0x5d114c{[_0x3c3cf5(0x1c8)](_0x4e6c1b){var _0x293049=_0x3c3cf5;let {hostUnitId:_0x46292d,unit:_0x329892,target:_0x622622}=_0x4e6c1b;if(!_0x46292d||!_0x329892[_0x293049(0x1ba)])throw Error('Formula\x20reference\x20authoring\x20requires\x20stable\x20Host\x20and\x20Source\x20Unit\x20IDs.');if(_0x329892['unitId']!==_0x46292d&&!this['_commandService'][_0x293049(0x1bd)](_0x3dc209['id'],{'unitId':_0x46292d,'qualifier':_0x329892['formulaQualifier'],'sourceUnitId':_0x329892[_0x293049(0x1ba)],'sourceUnitType':_0x622622[_0x293049(0x1c1)]===_0x264696[_0x293049(0x1bb)]?_0x3debef['UNIVER_SHEET']:_0x3debef[_0x293049(0x1bc)]}))throw Error(_0x293049(0x1c7)+_0x329892['formulaQualifier']+'\x22.');return _0x370faa(_0x4e6c1b);}[_0x3c3cf5(0x1c4)](_0x37ac41){var _0x3becdc=_0x3c3cf5;return this[_0x3becdc(0x1c2)]['syncExecuteCommand'](_0x3dc209['id'],_0x37ac41);}[_0x3c3cf5(0x1be)](_0xdafc5d){var _0x3f4acd=_0x3c3cf5;return this['_commandService'][_0x3f4acd(0x1bd)](_0x3a6d21['id'],_0xdafc5d);}};_0x5d114c[_0x3c3cf5(0x1b7)](l);export{_0x4dd8ba as FFormula};
1
+ function _0x4dcc(_0x5db009,_0x2c0978){_0x5db009=_0x5db009-0x14e;var _0x49751b=_0x4975();var _0x4dccc1=_0x49751b[_0x5db009];return _0x4dccc1;}var _0x3a4729=_0x4dcc;(function(_0x27df75,_0xc701da){var _0x34c21d=_0x4dcc,_0x6ce6ad=_0x27df75();while(!![]){try{var _0x1a381a=parseInt(_0x34c21d(0x154))/0x1*(parseInt(_0x34c21d(0x150))/0x2)+-parseInt(_0x34c21d(0x15a))/0x3*(-parseInt(_0x34c21d(0x158))/0x4)+parseInt(_0x34c21d(0x15d))/0x5+parseInt(_0x34c21d(0x151))/0x6*(-parseInt(_0x34c21d(0x15b))/0x7)+-parseInt(_0x34c21d(0x152))/0x8+parseInt(_0x34c21d(0x15e))/0x9+parseInt(_0x34c21d(0x162))/0xa;if(_0x1a381a===_0xc701da)break;else _0x6ce6ad['push'](_0x6ce6ad['shift']());}catch(_0x37aab4){_0x6ce6ad['push'](_0x6ce6ad['shift']());}}}(_0x4975,0x9678a));import{FFormula as _0x43e062,FFormula as _0x2ca8c5}from'@univerjs/engine-formula/facade';import{FormulaReferenceType as _0x5b466f,RemoveHostExternalReferenceCommand as _0x2ed6bd,UpsertHostExternalReferenceCommand as _0x54cc87,buildFormulaReference as _0x2eb7e1}from'@univerjs-pro/engine-formula';import{FEnum as _0x1f8d78}from'@univerjs/core/facade';function _0x4975(){var _0x54e138=['SHEET_RANGE','UNIVER_SHEET','_commandService','UNIVER_BASE','2RXoETw','5716926MVlZIj','8595776tsJRSE','unitId','1216621VhZEZX','Failed\x20to\x20bind\x20external\x20formula\x20reference\x20\x22','buildReference','removeExternalReference','1748428redwgv','formulaQualifier','3RCkvEx','7zlEtFU','syncExecuteCommand','1586830ukUkrz','6014070RibGXF','FormulaReferenceType','Formula\x20reference\x20authoring\x20requires\x20stable\x20Host\x20and\x20Source\x20Unit\x20IDs.','extend','42990pFTLQw'];_0x4975=function(){return _0x54e138;};return _0x4975();}import{UniverInstanceType as _0x37936e}from'@univerjs/core';var c=class extends _0x1f8d78{get[_0x3a4729(0x15f)](){return _0x5b466f;}};_0x1f8d78[_0x3a4729(0x161)](c);var l=class extends _0x2ca8c5{[_0x3a4729(0x156)](_0xe78854){var _0x2073aa=_0x3a4729;let {hostUnitId:_0x34602a,unit:_0x59e39d,target:_0x2ccd61}=_0xe78854;if(!_0x34602a||!_0x59e39d[_0x2073aa(0x153)])throw Error(_0x2073aa(0x160));if(_0x59e39d['unitId']!==_0x34602a&&!this[_0x2073aa(0x14e)][_0x2073aa(0x15c)](_0x54cc87['id'],{'unitId':_0x34602a,'qualifier':_0x59e39d[_0x2073aa(0x159)],'sourceUnitId':_0x59e39d[_0x2073aa(0x153)],'sourceUnitType':_0x2ccd61['kind']===_0x5b466f[_0x2073aa(0x163)]?_0x37936e[_0x2073aa(0x164)]:_0x37936e[_0x2073aa(0x14f)]}))throw Error(_0x2073aa(0x155)+_0x59e39d[_0x2073aa(0x159)]+'\x22.');return _0x2eb7e1(_0xe78854);}['upsertExternalReference'](_0x2b4805){var _0x3563a3=_0x3a4729;return this[_0x3563a3(0x14e)][_0x3563a3(0x15c)](_0x54cc87['id'],_0x2b4805);}[_0x3a4729(0x157)](_0x328746){var _0x233d4b=_0x3a4729;return this[_0x233d4b(0x14e)][_0x233d4b(0x15c)](_0x2ed6bd['id'],_0x328746);}};_0x2ca8c5['extend'](l);export{_0x43e062 as FFormula};