facade.js 24 KB

1
  1. const _0xf94b3a=_0x40fb;(function(_0x4ca8b5,_0x3ce7d0){const _0x3e42d6=_0x40fb,_0x34ceb2=_0x4ca8b5();while(!![]){try{const _0x34278e=parseInt(_0x3e42d6(0x6b))/0x1*(-parseInt(_0x3e42d6(0xa4))/0x2)+-parseInt(_0x3e42d6(0xb4))/0x3*(parseInt(_0x3e42d6(0xad))/0x4)+-parseInt(_0x3e42d6(0x9e))/0x5*(parseInt(_0x3e42d6(0xbb))/0x6)+-parseInt(_0x3e42d6(0x66))/0x7+parseInt(_0x3e42d6(0xd2))/0x8+parseInt(_0x3e42d6(0x67))/0x9*(parseInt(_0x3e42d6(0x95))/0xa)+parseInt(_0x3e42d6(0xaa))/0xb;if(_0x34278e===_0x3ce7d0)break;else _0x34ceb2['push'](_0x34ceb2['shift']());}catch(_0x3138af){_0x34ceb2['push'](_0x34ceb2['shift']());}}}(_0x3d78,0xe9a2c));var A=Object['defineProperty'],x=(_0x16b6f5,_0x2079f3,_0x386ef5)=>_0x2079f3 in _0x16b6f5?A(_0x16b6f5,_0x2079f3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x386ef5}):_0x16b6f5[_0x2079f3]=_0x386ef5,u=(_0x207378,_0xc482bf,_0x11a1eb)=>x(_0x207378,typeof _0xc482bf!=_0xf94b3a(0x90)?_0xc482bf+'':_0xc482bf,_0x11a1eb);import{PivotTableFiledAreaEnum as _0x33ca88,generateHexNumber as _0x5ada8f,PivotSubtotalTypeEnum as _0x35585b,PivotFilterTypeEnum as _0x599e09,PivotTableValuePositionEnum as _0x241080,PivotDataFieldDataTypeEnum as _0x42a870,PivotDataFieldSortTypeEnum as _0x426a79,PivotDataFieldSortOperatorEnum as _0x522027,ST_PivotFilterOperatorEnum as _0x189517,PivotTableChangeTypeEnum as _0x3b0df7}from'@univerjs-pro/engine-pivot';function _0x40fb(_0x2b336b,_0x1f397a){const _0x3d78c8=_0x3d78();return _0x40fb=function(_0x40fbf6,_0x48dc4e){_0x40fbf6=_0x40fbf6-0x64;let _0x2a0cf5=_0x3d78c8[_0x40fbf6];return _0x2a0cf5;},_0x40fb(_0x2b336b,_0x1f397a);}import{SheetsPivotTableConfigModel as _0x37dd64,unionPivotViewRange as _0x51689e,RemovePivotTableMutation as _0x3e7b83,AddPivotFieldCommand as _0x5b4dc0,RemovePivotFieldCommand as _0x142af1,MovePivotFieldCommand as _0x27798d,UpdatePivotValuePositionCommand as _0x2c0a7c,SetPivotSubtotalTypeMutation as _0x17f396,SetPivotSortCommand as _0x171aa7,SetPivotFilterCommand as _0xac0642,RenamePivotFieldMutation as _0x2f13d0,MovePivotTableCommand as _0x4d3bb1,AddPivotTableCommand as _0x12cd22,SheetsPivotTableAdaptorModel as _0x40ec6a,PositionType as _0x1aefea,AddPivotTableWithConfigCommand as _0x4a8ed9,UpdatePivotFieldSettingCommand as _0x1914e4,SetPivotCollapseCommand as _0x583003}from'@univerjs-pro/sheets-pivot';function _0x3d78(){const _0x5a2eaf=['PivotTableFieldSortChanged','viewUpdate$','PivotDataFieldSortOperatorEnum','row','unitId','remove','_fireRenderPivotTableEvent','PivotTableFieldMoved','onCommandExecuted','_injector','filterFields','fieldsConfig','dimension','getPivotTableId','beforeCommandExecuted','executeCommand','PivotFilterTypeEnum','_fireAddPivotTableEvent','_firePivotTableFieldCollapsedEvent','BeforePivotTableMove','rangeInfo','symbol','getPivotTableByCell','PivotTableRemoved','PivotTableValuePositionEnum','getPivotTableRangeInfo','2961270JvNPQN','Before\x20move\x20pivot\x20table\x20event\x20canceled','get','PivotTableFieldAdded','Value','PivotTableRendered','getId','Before\x20add\x20pivot\x20table\x20event\x20canceled','PivotTableAdded','5474775UVhDsi','getPivotTableConfig','rowFields','PivotTableFiledAreaEnum','PivotTableMoved','getPivotTableById','357464ItEaZq','disposeWithMe','getFieldIdsByArea','setLabelSort','Filter','fieldIds','37189317iwUUFZ','PivotDataFieldSortTypeEnum','getUnit','3274896ugifQN','addPivotTable','Event','Column','fireEvent','getTargetByPivotTableId','Row','6mhrXPg','PivotDataFieldDataTypeEnum','_firePivotTableValuePositionChangedEvent','targetCellInfo','getFieldSetting','endRow','getSheetBySheetName','6aeHECE','measure','pivotTableId','setLabelManualFilter','getPivotTableIdByCell','_firePivotTableFieldSortChangedEvent','syncExecuteCommand','_fireBeforeAddPivotTableEvent','subUnitId','_firePivotTableFieldFilterChangedEvent','endColumn','hiddenFields','_firePivotTableFieldAddedEvent','PivotFilterOperatorEnum','renameField','updateFieldPosition','hasEventCallback','_firePivotTableFieldRemovedEvent','concat','_initialize','getConfig','PivotTableChangeTypeEnum','sheetName','10607632mbUHQM','PivotTableFieldFilterChanged','_firePivotTableFieldSettingChangedEvent','startColumn','4582781XFraQd','27vvXZqs','BeforePivotTableAdd','PivotTableFieldSettingChanged','getCollection','7uTiFsM','subscribe','cancel','col','range','PivotTableFieldRemoved','PivotTableFieldCollapseChanged','params','move','PivotTableValuePositionChanged','updateValuePosition','_firePivotTableRemovedEvent','PivotSubtotalTypeEnum','_fireBeforeMovePivotTableEvent','extend','startRow'];_0x3d78=function(){return _0x5a2eaf;};return _0x3d78();}import{ICommandService as _0x44ebc0,IUniverInstanceService as _0x397e5e,FEnum as _0x42823a,FEventName as _0x177e16,FUniver as _0x412bd0,LifecycleService as _0x1ce4e7,LifecycleStages as _0x2fc77b}from'@univerjs/core';import{FWorkbook as _0x14852f}from'@univerjs/sheets/facade';class I{constructor(_0x464c8d,_0x4fefd6,_0x4361d5,_0x106958){const _0x4cb822=_0xf94b3a;u(this,_0x4cb822(0x7f)),u(this,_0x4cb822(0xc3)),u(this,'pivotTableId'),u(this,'_injector'),(this[_0x4cb822(0x7f)]=_0x464c8d,this[_0x4cb822(0xc3)]=_0x4fefd6,this[_0x4cb822(0xbd)]=_0x4361d5,this[_0x4cb822(0x84)]=_0x106958);}[_0xf94b3a(0xcf)](){const _0x504142=_0xf94b3a;return this[_0x504142(0x84)][_0x504142(0x97)](_0x37dd64)[_0x504142(0x9f)](this[_0x504142(0x7f)],this['subUnitId'],this[_0x504142(0xbd)]);}[_0xf94b3a(0x88)](){const _0x286772=_0xf94b3a;return this[_0x286772(0xbd)];}[_0xf94b3a(0xb8)](_0x143004){const _0x21bebc=_0xf94b3a,_0x264ec8=this[_0x21bebc(0x84)]['get'](_0x37dd64)['getPivotTableConfig'](this[_0x21bebc(0x7f)],this[_0x21bebc(0xc3)],this[_0x21bebc(0xbd)]),_0x140d9a=_0x264ec8==null?void 0x0:_0x264ec8[_0x21bebc(0x86)];if(_0x140d9a)return _0x140d9a[_0x21bebc(0x87)][_0x143004]||_0x140d9a[_0x21bebc(0xbc)][_0x143004];}[_0xf94b3a(0xa6)](_0x3101be){const _0x4db79d=_0xf94b3a,_0x542b0e=this['_injector'][_0x4db79d(0x97)](_0x37dd64)[_0x4db79d(0x9f)](this[_0x4db79d(0x7f)],this['subUnitId'],this[_0x4db79d(0xbd)]),_0x482bde=_0x542b0e==null?void 0x0:_0x542b0e[_0x4db79d(0x86)];if(_0x482bde)switch(_0x3101be){case _0x33ca88[_0x4db79d(0xb0)]:return _0x482bde['columnFields'][_0x4db79d(0xcd)]();case _0x33ca88[_0x4db79d(0xb3)]:return _0x482bde[_0x4db79d(0xa0)]['concat']();case _0x33ca88[_0x4db79d(0x99)]:return _0x482bde['valueFields'][_0x4db79d(0xcd)]();case _0x33ca88[_0x4db79d(0xa8)]:return _0x482bde[_0x4db79d(0x85)][_0x4db79d(0xcd)]();case _0x33ca88['Hidden']:return _0x482bde[_0x4db79d(0xc6)][_0x4db79d(0xcd)]();}return[];}[_0xf94b3a(0x94)](){const _0x3da7b7=_0xf94b3a;var _0x22d9ce;const _0x4fc880=(_0x22d9ce=this[_0x3da7b7(0x84)][_0x3da7b7(0x97)](_0x37dd64)[_0x3da7b7(0x94)](this[_0x3da7b7(0x7f)],this[_0x3da7b7(0xc3)],this['pivotTableId']))==null?void 0x0:_0x22d9ce[_0x3da7b7(0x8f)];if(_0x4fc880)return _0x51689e(_0x4fc880);}async[_0xf94b3a(0x80)](){const _0x3c1571=_0xf94b3a;return await this['_injector'][_0x3c1571(0x97)](_0x44ebc0)[_0x3c1571(0xc1)](_0x3e7b83['id'],{'unitId':this[_0x3c1571(0x7f)],'subUnitId':this[_0x3c1571(0xc3)],'pivotTableId':this[_0x3c1571(0xbd)]});}async['addField'](_0x9a3e3f,_0x2abdde,_0x1ea7ad){const _0x5b3a1b=_0xf94b3a,_0x5ef685=this['_injector'],_0x5851f2=this[_0x5b3a1b(0x7f)],_0x4c48c5=this[_0x5b3a1b(0xc3)],_0x5b62cf=this['pivotTableId'],_0x2f2342=_0x5ef685[_0x5b3a1b(0x97)](_0x44ebc0),_0xe437da=_0x5ef685[_0x5b3a1b(0x97)](_0x37dd64),_0x20c9bf=_0xe437da[_0x5b3a1b(0x9f)](_0x5851f2,_0x4c48c5,_0x5b62cf),_0x6480b8=_0xe437da[_0x5b3a1b(0x6a)](_0x5851f2,_0x5b62cf);if(!_0x20c9bf||!_0x6480b8)return!0x1;let _0x343cf0=_0x9a3e3f;typeof _0x343cf0=='number'&&(_0x343cf0=_0xe437da[_0x5b3a1b(0x6a)](_0x5851f2,_0x5b62cf)[_0x5b3a1b(0xa9)][_0x9a3e3f]);const _0x162372={'unitId':_0x5851f2,'subUnitId':_0x4c48c5,'pivotTableId':_0x5b62cf,'dataFieldId':_0x343cf0,'fieldArea':_0x2abdde,'index':_0x1ea7ad};return _0x2f2342[_0x5b3a1b(0x8a)](_0x5b4dc0['id'],_0x162372);}async['removeField'](_0x1941df){const _0x534d69=_0xf94b3a,_0x173b8a=this[_0x534d69(0x84)],_0x228810=this[_0x534d69(0x7f)],_0x1da235=this['subUnitId'],_0x5f2277=this['pivotTableId'],_0x133aa7=_0x173b8a[_0x534d69(0x97)](_0x44ebc0),_0x3006ce={'unitId':_0x228810,'subUnitId':_0x1da235,'pivotTableId':_0x5f2277,'fieldIds':_0x1941df};return _0x133aa7[_0x534d69(0x8a)](_0x142af1['id'],_0x3006ce);}async[_0xf94b3a(0xca)](_0x38f272,_0x4a325e,_0x7c6803){const _0xae56bc=_0xf94b3a,_0x3b08cc=this[_0xae56bc(0x84)],_0x29f98d=this['unitId'],_0x5ecb31=this[_0xae56bc(0xc3)],_0x52a270=this['pivotTableId'],_0x3439cd=_0x3b08cc[_0xae56bc(0x97)](_0x44ebc0),_0x3dcc74={'unitId':_0x29f98d,'subUnitId':_0x5ecb31,'pivotTableId':_0x52a270,'fieldId':_0x38f272,'area':_0x4a325e,'index':_0x7c6803};return _0x3439cd[_0xae56bc(0x8a)](_0x27798d['id'],_0x3dcc74);}async[_0xf94b3a(0x75)](_0x337cd5,_0x547411){const _0x2c988d=_0xf94b3a,_0x3b3e16=this[_0x2c988d(0x84)],_0x2400dc=this[_0x2c988d(0x7f)],_0x290015=this['subUnitId'],_0x5c715c=this[_0x2c988d(0xbd)],_0x34cf04=_0x3b3e16[_0x2c988d(0x97)](_0x44ebc0),_0x55122e={'unitId':_0x2400dc,'subUnitId':_0x290015,'pivotTableId':_0x5c715c,'position':_0x337cd5,'index':_0x547411};return _0x34cf04[_0x2c988d(0x8a)](_0x2c0a7c['id'],_0x55122e);}async['setSubtotalType'](_0x18f572,_0x13a4ed){const _0x10566d=_0xf94b3a,_0xb3a43b=this[_0x10566d(0x84)],_0x2f4082=this['unitId'],_0x46a9b0=this[_0x10566d(0xc3)],_0x34a001=this['pivotTableId'],_0x17eea4=_0xb3a43b['get'](_0x44ebc0),_0x4bd4b2={'unitId':_0x2f4082,'subUnitId':_0x46a9b0,'pivotTableId':_0x34a001,'fieldId':_0x18f572,'subtotalType':_0x13a4ed};return _0x17eea4[_0x10566d(0x8a)](_0x17f396['id'],_0x4bd4b2);}async[_0xf94b3a(0xa7)](_0x3a0c2b,_0x2bec26){const _0x1f09a8=_0xf94b3a,_0x1240c5=this['_injector'],_0x2e4d9d=this[_0x1f09a8(0x7f)],_0x1b70b0=this['subUnitId'],_0x147d67=this[_0x1f09a8(0xbd)],_0x435881=_0x1240c5[_0x1f09a8(0x97)](_0x44ebc0),_0x3fed1f={'unitId':_0x2e4d9d,'subUnitId':_0x1b70b0,'tableFieldId':_0x3a0c2b,'pivotTableId':_0x147d67,'info':_0x2bec26};return _0x435881[_0x1f09a8(0x8a)](_0x171aa7['id'],_0x3fed1f);}async[_0xf94b3a(0xbe)](_0x2fd392,_0x14c119,_0x52ea71){const _0x5a58b8=_0xf94b3a,_0x27d451=this[_0x5a58b8(0x84)],_0x4d1bcd=this['unitId'],_0x2be5d1=this[_0x5a58b8(0xc3)],_0x463975=this[_0x5a58b8(0xbd)],_0x2fbb7f=_0x27d451['get'](_0x44ebc0),_0x3a845a={'unitId':_0x4d1bcd,'subUnitId':_0x2be5d1,'pivotTableId':_0x463975,'tableFieldId':_0x2fd392,'items':_0x14c119,'isAll':_0x52ea71};return _0x2fbb7f[_0x5a58b8(0x8a)](_0xac0642['id'],_0x3a845a);}async[_0xf94b3a(0xc9)](_0x1fd0a5,_0xdb980){const _0x568996=_0xf94b3a,_0x60af27=this[_0x568996(0x84)],_0x3fc88c=this['unitId'],_0x418206=this[_0x568996(0xc3)],_0x42933f=this['pivotTableId'],_0x2ae6a2=_0x60af27[_0x568996(0x97)](_0x44ebc0),_0x35f92a={'unitId':_0x3fc88c,'subUnitId':_0x418206,'pivotTableId':_0x42933f,'fieldId':_0x1fd0a5,'name':_0xdb980};return _0x2ae6a2[_0x568996(0x8a)](_0x2f13d0['id'],_0x35f92a);}async[_0xf94b3a(0x73)](_0x52bbfc,_0x414005,_0x38e2bf){const _0x1d9f80=_0xf94b3a,_0x2d7edc=this[_0x1d9f80(0x84)]['get'](_0x44ebc0),_0x1bcebe=this[_0x1d9f80(0x84)][_0x1d9f80(0x97)](_0x397e5e)[_0x1d9f80(0xac)](this['unitId']),_0x1b2d39=_0x1bcebe==null?void 0x0:_0x1bcebe[_0x1d9f80(0xba)](_0x52bbfc);if(!_0x1bcebe||!_0x1b2d39)throw new Error('[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid');return _0x2d7edc[_0x1d9f80(0x8a)](_0x4d3bb1['id'],{'pivotTableId':this[_0x1d9f80(0xbd)],'targetCellInfo':{'subUnitId':_0x1b2d39['getSheetId'](),'unitId':this[_0x1d9f80(0x7f)],'row':_0x414005,'col':_0x38e2bf},'originTargetInfo':{'subUnitId':this[_0x1d9f80(0xc3)],'unitId':this['unitId']}});}}class ee extends _0x14852f{async[_0xf94b3a(0xae)](_0x446c7d,_0x26b02b,_0x240625){const _0x3cdd74=_0xf94b3a,_0x105cb7=this[_0x3cdd74(0x84)],_0x2cd769=_0x105cb7[_0x3cdd74(0x97)](_0x44ebc0),_0x1217f1=_0x5ada8f(0x8),_0x2c19e9={'positionType':_0x26b02b,'pivotTableId':_0x1217f1,'pivotTableConfig':{'targetCellInfo':_0x240625,'sourceRangeInfo':_0x446c7d,'isEmpty':!0x0}};if(await _0x2cd769[_0x3cdd74(0x8a)](_0x12cd22['id'],_0x2c19e9))return new I(_0x240625[_0x3cdd74(0x7f)],_0x240625[_0x3cdd74(0xc3)],_0x1217f1,_0x105cb7);}[_0xf94b3a(0x91)](_0x1c18e0,_0x498851,_0x1e93f6,_0x675da){const _0x3471b2=_0xf94b3a,_0xbcb74f=this['_injector'],_0x178e13=_0xbcb74f[_0x3471b2(0x97)](_0x40ec6a)[_0x3471b2(0xbf)](_0x1c18e0,_0x498851,_0x1e93f6,_0x675da);if(_0x178e13)return new I(_0x1c18e0,_0x498851,_0x178e13,_0xbcb74f);}[_0xf94b3a(0xa3)](_0x5bc1ae){const _0x79aabd=_0xf94b3a,_0x26e9fa=this[_0x79aabd(0x84)],_0x4472ea=_0x26e9fa[_0x79aabd(0x97)](_0x37dd64)[_0x79aabd(0xb2)](this[_0x79aabd(0x9b)](),_0x5bc1ae);if(_0x4472ea)return new I(_0x4472ea[_0x79aabd(0x7f)],_0x4472ea[_0x79aabd(0xc3)],_0x5bc1ae,_0x26e9fa);}}_0x14852f['extend'](ee);class te extends _0x42823a{get[_0xf94b3a(0x77)](){return _0x35585b;}get[_0xf94b3a(0x8b)](){return _0x599e09;}get[_0xf94b3a(0xa1)](){return _0x33ca88;}get[_0xf94b3a(0x93)](){return _0x241080;}get[_0xf94b3a(0xb5)](){return _0x42a870;}get[_0xf94b3a(0xab)](){return _0x426a79;}get[_0xf94b3a(0x7d)](){return _0x522027;}get[_0xf94b3a(0xc8)](){return _0x189517;}get['PositionTypeEnum'](){return _0x1aefea;}get[_0xf94b3a(0xd0)](){return _0x3b0df7;}}_0x42823a['extend'](te);class ie extends _0x177e16{get['PivotTableAdded'](){const _0x2da60f=_0xf94b3a;return _0x2da60f(0x9d);}get[_0xf94b3a(0x68)](){const _0x4a44e8=_0xf94b3a;return _0x4a44e8(0x68);}get[_0xf94b3a(0x92)](){const _0x5ee372=_0xf94b3a;return _0x5ee372(0x92);}get[_0xf94b3a(0xa2)](){const _0x1ee028=_0xf94b3a;return _0x1ee028(0xa2);}get[_0xf94b3a(0x9a)](){return'PivotTableRendered';}get['PivotTableFieldAdded'](){const _0x23a10d=_0xf94b3a;return _0x23a10d(0x98);}get['PivotTableFieldRemoved'](){const _0x19e6c5=_0xf94b3a;return _0x19e6c5(0x70);}get[_0xf94b3a(0x82)](){const _0x3b2483=_0xf94b3a;return _0x3b2483(0x82);}get[_0xf94b3a(0x71)](){const _0x30ffdd=_0xf94b3a;return _0x30ffdd(0x71);}get[_0xf94b3a(0xd3)](){return'PivotTableFieldFilterChanged';}get['PivotTableFieldSortChanged'](){const _0x5c1f43=_0xf94b3a;return _0x5c1f43(0x7b);}get[_0xf94b3a(0x69)](){const _0x294f53=_0xf94b3a;return _0x294f53(0x69);}get[_0xf94b3a(0x74)](){return'PivotTableValuePositionChanged';}}_0x177e16[_0xf94b3a(0x79)](ie);class ne extends _0x412bd0{[_0xf94b3a(0xce)](_0xf1cda4){const _0x310b34=_0xf94b3a,_0x31e817=_0xf1cda4['get'](_0x44ebc0);this[_0x310b34(0xa5)](_0x31e817[_0x310b34(0x89)](_0x998e81=>{const _0x8f6839=_0x310b34;switch(_0x998e81['id']){case _0x4a8ed9['id']:case _0x12cd22['id']:{const _0x485833=_0x998e81[_0x8f6839(0x72)];this[_0x8f6839(0xc2)](_0x485833);break;}case _0x4d3bb1['id']:{const _0x56216a=_0x998e81[_0x8f6839(0x72)];this[_0x8f6839(0x78)](_0x56216a);break;}}})),this['disposeWithMe'](_0x31e817[_0x310b34(0x83)](_0x3451d1=>{const _0x579bac=_0x310b34;switch(_0x3451d1['id']){case _0x4a8ed9['id']:case _0x12cd22['id']:{const _0xdc4c63=_0x3451d1['params'];this[_0x579bac(0x8c)](_0xdc4c63);break;}case _0x4d3bb1['id']:{const _0x2de135=_0x3451d1['params'];this['_fireMovedPivotTableEvent'](_0x2de135);break;}case _0x3e7b83['id']:{const _0x4083c9=_0x3451d1[_0x579bac(0x72)];this[_0x579bac(0x76)](_0x4083c9);break;}case _0x5b4dc0['id']:{const _0x50551d=_0x3451d1['params'];this[_0x579bac(0xc7)](_0x50551d);break;}case _0x142af1['id']:{const _0x4a77fc=_0x3451d1[_0x579bac(0x72)];this[_0x579bac(0xcc)](_0x4a77fc);break;}case _0x27798d['id']:{const _0x49e147=_0x3451d1['params'];this['_firePivotTableFieldMovedEvent'](_0x49e147);break;}case _0x583003['id']:{const _0xc0fc23=_0x3451d1['params'];this['_firePivotTableFieldCollapsedEvent'](_0xc0fc23);break;}case _0xac0642['id']:{const _0xa056eb=_0x3451d1[_0x579bac(0x72)];this[_0x579bac(0xc4)](_0xa056eb);break;}case _0x171aa7['id']:{const _0x164510=_0x3451d1['params'];this[_0x579bac(0xc0)](_0x164510);break;}case _0x1914e4['id']:{const _0x3f0e4a=_0x3451d1[_0x579bac(0x72)];this['_firePivotTableFieldSettingChangedEvent'](_0x3f0e4a);break;}case _0x2c0a7c['id']:{const _0x33d870=_0x3451d1['params'];this[_0x579bac(0xb6)](_0x33d870);break;}}}));const _0x1631ff=_0xf1cda4['get'](_0x1ce4e7);this['disposeWithMe'](_0x1631ff['lifecycle$']['subscribe'](_0x55514a=>{const _0x2ea0bf=_0x310b34;if(_0x55514a===_0x2fc77b['Ready']){const _0x1e2b7b=_0xf1cda4['get'](_0x40ec6a);this[_0x2ea0bf(0xa5)](_0x1e2b7b[_0x2ea0bf(0x7c)][_0x2ea0bf(0x6c)](_0x379543=>{const _0x25980f=_0x2ea0bf;this[_0x25980f(0x81)](_0x379543);}));}}));}[_0xf94b3a(0xc7)](_0x5524f3){const _0x38353a=_0xf94b3a;if(this['hasEventCallback'](this['Event'][_0x38353a(0x98)])&&_0x5524f3){const {unitId:_0x16c33d,subUnitId:_0x638ccb,pivotTableId:_0x5ba0f6,dataFieldId:_0x59b2be,fieldArea:_0x10ac66,index:_0x2279f8}=_0x5524f3;this[_0x38353a(0xb1)](this['Event'][_0x38353a(0x98)],{'unitId':_0x16c33d,'subUnitId':_0x638ccb,'pivotTableId':_0x5ba0f6,'dataFieldId':_0x59b2be,'fieldArea':_0x10ac66,'index':_0x2279f8});}}['_firePivotTableFieldRemovedEvent'](_0x229eee){const _0x2fa78b=_0xf94b3a;if(this[_0x2fa78b(0xcb)](this['Event'][_0x2fa78b(0x70)])&&_0x229eee){const {unitId:_0x4f9805,subUnitId:_0x2a5f72,pivotTableId:_0x304324,fieldIds:_0xbbacfa}=_0x229eee;this[_0x2fa78b(0xb1)](this[_0x2fa78b(0xaf)][_0x2fa78b(0x70)],{'unitId':_0x4f9805,'subUnitId':_0x2a5f72,'pivotTableId':_0x304324,'fieldIds':_0xbbacfa[_0x2fa78b(0xcd)]()});}}['_firePivotTableFieldMovedEvent'](_0x9f46f5){const _0x24a69a=_0xf94b3a;if(this[_0x24a69a(0xcb)](this[_0x24a69a(0xaf)][_0x24a69a(0x82)])&&_0x9f46f5){const {unitId:_0x44ef24,subUnitId:_0x2fcde0,pivotTableId:_0x2be033,fieldId:_0x153b0f,area:_0x5a21cb,index:_0x236cd3}=_0x9f46f5;this[_0x24a69a(0xb1)](this[_0x24a69a(0xaf)]['PivotTableFieldMoved'],{'unitId':_0x44ef24,'subUnitId':_0x2fcde0,'pivotTableId':_0x2be033,'fieldId':_0x153b0f,'area':_0x5a21cb,'index':_0x236cd3});}}[_0xf94b3a(0x8d)](_0x552cd8){const _0x4fd316=_0xf94b3a;if(this[_0x4fd316(0xcb)](this['Event'][_0x4fd316(0x71)])&&_0x552cd8){const {unitId:_0x401f7c,subUnitId:_0xbcb73b,row:_0x5537c9,col:_0x20f51b,collapse:_0x1478cd}=_0x552cd8;this[_0x4fd316(0xb1)](this['Event']['PivotTableFieldCollapseChanged'],{'unitId':_0x401f7c,'subUnitId':_0xbcb73b,'row':_0x5537c9,'col':_0x20f51b,'collapse':_0x1478cd});}}[_0xf94b3a(0xc4)](_0x3999fd){const _0x2212d5=_0xf94b3a;if(this[_0x2212d5(0xcb)](this['Event'][_0x2212d5(0xd3)])&&_0x3999fd){const {unitId:_0x17bd3d,subUnitId:_0x36717a,pivotTableId:_0x1658c6,tableFieldId:_0x36f906,items:_0x256980,isAll:_0x139709}=_0x3999fd;this[_0x2212d5(0xb1)](this[_0x2212d5(0xaf)][_0x2212d5(0xd3)],{'unitId':_0x17bd3d,'subUnitId':_0x36717a,'pivotTableId':_0x1658c6,'tableFieldId':_0x36f906,'items':_0x256980[_0x2212d5(0xcd)](),'isAll':_0x139709});}}['_firePivotTableFieldSortChangedEvent'](_0x26294f){const _0x440e69=_0xf94b3a;if(this[_0x440e69(0xcb)](this[_0x440e69(0xaf)][_0x440e69(0x7b)])&&_0x26294f){const {unitId:_0x14eb29,subUnitId:_0x159091,pivotTableId:_0x3bad7f,tableFieldId:_0x216b35,info:_0x205b72}=_0x26294f;this[_0x440e69(0xb1)](this['Event'][_0x440e69(0x7b)],{'unitId':_0x14eb29,'subUnitId':_0x159091,'pivotTableId':_0x3bad7f,'tableFieldId':_0x216b35,'info':{..._0x205b72}});}}[_0xf94b3a(0x64)](_0x5b0bc6){const _0x56df25=_0xf94b3a;if(this[_0x56df25(0xcb)](this[_0x56df25(0xaf)][_0x56df25(0x69)])&&_0x5b0bc6){const {unitId:_0x54394d,subUnitId:_0x1d5a2c,tableFieldId:_0x811c3c,pivotTableId:_0x4adfc2,displayName:_0x3b192a,format:_0x860fa1,subtotalType:_0x51d07b,tableFieldInfo:_0x1ca30c,dataFieldInfo:_0x319b22}=_0x5b0bc6;this[_0x56df25(0xb1)](this['Event'][_0x56df25(0x69)],{'unitId':_0x54394d,'subUnitId':_0x1d5a2c,'tableFieldId':_0x811c3c,'pivotTableId':_0x4adfc2,'displayName':_0x3b192a,'format':_0x860fa1,'subtotalType':_0x51d07b,'tableFieldInfo':_0x1ca30c,'dataFieldInfo':_0x319b22});}}[_0xf94b3a(0xb6)](_0x2640dc){const _0x352ec6=_0xf94b3a;if(this[_0x352ec6(0xcb)](this[_0x352ec6(0xaf)]['PivotTableValuePositionChanged'])&&_0x2640dc){const {pivotTableId:_0x55c967,position:_0x467898,index:_0x4c687f}=_0x2640dc;this[_0x352ec6(0xb1)](this[_0x352ec6(0xaf)][_0x352ec6(0x74)],{'pivotTableId':_0x55c967,'position':_0x467898,'index':_0x4c687f});}}['_fireAddPivotTableEvent'](_0x10ac17){const _0x538b6f=_0xf94b3a;if(this[_0x538b6f(0xcb)](this[_0x538b6f(0xaf)][_0x538b6f(0x9d)])&&_0x10ac17){const {positionType:_0x331cd2,pivotTableId:_0xb381bd,pivotTableConfig:_0x5d3b8f}=_0x10ac17,{targetCellInfo:_0x57135a,sourceRangeInfo:_0x3b0c07}=_0x5d3b8f,{unitId:_0x322785}=_0x57135a;this['fireEvent'](this[_0x538b6f(0xaf)][_0x538b6f(0x9d)],{'unitId':_0x322785,'positionType':_0x331cd2,'pivotTableId':_0xb381bd,'sourceRangeInfo':{'startRow':_0x3b0c07[_0x538b6f(0x6f)][_0x538b6f(0x7a)],'endRow':_0x3b0c07[_0x538b6f(0x6f)][_0x538b6f(0xb9)],'startColumn':_0x3b0c07['range'][_0x538b6f(0x65)],'endColumn':_0x3b0c07['range']['endColumn'],'unitId':_0x3b0c07[_0x538b6f(0x7f)],'subUnitId':_0x3b0c07[_0x538b6f(0xc3)],'sheetName':_0x3b0c07['sheetName']},'targetCellInfo':{'row':_0x57135a[_0x538b6f(0x7e)],'column':_0x57135a['col'],'sheetName':_0x57135a[_0x538b6f(0xd1)],'unitId':_0x57135a['unitId'],'subUnitId':_0x57135a[_0x538b6f(0xc3)]}});}}[_0xf94b3a(0xc2)](_0x3049f5){const _0x260ce6=_0xf94b3a;if(this[_0x260ce6(0xcb)](this[_0x260ce6(0xaf)]['BeforePivotTableAdd'])&&_0x3049f5){const {positionType:_0x2e052e,pivotTableId:_0x2c6df6,pivotTableConfig:_0x226cb0}=_0x3049f5,{targetCellInfo:_0x1e8825,sourceRangeInfo:_0x19b92c}=_0x226cb0,{unitId:_0xbb5eb5}=_0x1e8825,_0x1aa608={'unitId':_0xbb5eb5,'positionType':_0x2e052e,'pivotTableId':_0x2c6df6,'sourceRangeInfo':{'startRow':_0x19b92c['range'][_0x260ce6(0x7a)],'endRow':_0x19b92c['range'][_0x260ce6(0xb9)],'startColumn':_0x19b92c['range'][_0x260ce6(0x65)],'endColumn':_0x19b92c[_0x260ce6(0x6f)][_0x260ce6(0xc5)],'unitId':_0x19b92c[_0x260ce6(0x7f)],'subUnitId':_0x19b92c[_0x260ce6(0xc3)],'sheetName':_0x19b92c['sheetName']},'targetCellInfo':{'row':_0x1e8825[_0x260ce6(0x7e)],'column':_0x1e8825['col'],'sheetName':_0x1e8825[_0x260ce6(0xd1)],'unitId':_0x1e8825[_0x260ce6(0x7f)],'subUnitId':_0x1e8825[_0x260ce6(0xc3)]},'cancel':!0x1};if(this['fireEvent'](this[_0x260ce6(0xaf)][_0x260ce6(0x68)],_0x1aa608),_0x1aa608[_0x260ce6(0x6d)])throw new Error(_0x260ce6(0x9c));}}[_0xf94b3a(0x76)](_0x44a640){const _0xe9eaf4=_0xf94b3a;if(this[_0xe9eaf4(0xcb)](this[_0xe9eaf4(0xaf)][_0xe9eaf4(0x92)])&&_0x44a640){const {unitId:_0x3548e4,pivotTableId:_0x21ae6c}=_0x44a640;this['fireEvent'](this[_0xe9eaf4(0xaf)]['PivotTableRemoved'],{'unitId':_0x3548e4,'pivotTableId':_0x21ae6c});}}['_fireBeforeMovePivotTableEvent'](_0x59fcc2){const _0x105a00=_0xf94b3a;if(this['hasEventCallback'](this[_0x105a00(0xaf)][_0x105a00(0x8e)])&&_0x59fcc2){const {originTargetInfo:_0x2d4642,pivotTableId:_0x1f8f51,targetCellInfo:_0x542608}=_0x59fcc2,{unitId:_0xbdb51}=_0x2d4642,_0x55e9a6=this['_injector']['get'](_0x37dd64)['getPivotTableConfig'](_0x2d4642[_0x105a00(0x7f)],_0x2d4642[_0x105a00(0xc3)],_0x1f8f51);if(!_0x55e9a6)return;const _0x5c318b={'unitId':_0xbdb51,'pivotTableId':_0x1f8f51,'originTargetInfo':{'row':_0x55e9a6[_0x105a00(0xb7)][_0x105a00(0x7e)],'column':_0x55e9a6[_0x105a00(0xb7)][_0x105a00(0x6e)],'unitId':_0x55e9a6[_0x105a00(0xb7)][_0x105a00(0x7f)],'subUnitId':_0x55e9a6[_0x105a00(0xb7)][_0x105a00(0xc3)]},'targetCellInfo':{'row':_0x542608[_0x105a00(0x7e)],'column':_0x542608[_0x105a00(0x6e)],'unitId':_0x542608['unitId'],'subUnitId':_0x542608[_0x105a00(0xc3)]},'cancel':!0x1};if(this[_0x105a00(0xb1)](this[_0x105a00(0xaf)][_0x105a00(0x8e)],_0x5c318b),_0x5c318b['cancel'])throw new Error(_0x105a00(0x96));}}['_fireMovedPivotTableEvent'](_0x5d56b5){const _0x82412e=_0xf94b3a;if(this[_0x82412e(0xcb)](this[_0x82412e(0xaf)][_0x82412e(0xa2)])&&_0x5d56b5){const {originTargetInfo:_0x2a124b,pivotTableId:_0x350b95,targetCellInfo:_0x410f27}=_0x5d56b5,{unitId:_0x6fafac}=_0x2a124b,_0x5ff587=this['_injector'][_0x82412e(0x97)](_0x37dd64)['getPivotTableConfig'](_0x2a124b[_0x82412e(0x7f)],_0x2a124b['subUnitId'],_0x350b95);if(!_0x5ff587)return;this['fireEvent'](this['Event']['PivotTableMoved'],{'unitId':_0x6fafac,'pivotTableId':_0x350b95,'originTargetInfo':{'row':_0x5ff587['targetCellInfo'][_0x82412e(0x7e)],'column':_0x5ff587[_0x82412e(0xb7)]['col'],'unitId':_0x5ff587['targetCellInfo'][_0x82412e(0x7f)],'subUnitId':_0x5ff587[_0x82412e(0xb7)][_0x82412e(0xc3)]},'targetCellInfo':{'row':_0x410f27[_0x82412e(0x7e)],'column':_0x410f27[_0x82412e(0x6e)],'unitId':_0x410f27[_0x82412e(0x7f)],'subUnitId':_0x410f27[_0x82412e(0xc3)]}});}}[_0xf94b3a(0x81)](_0xc3d1d3){const _0x31bd4f=_0xf94b3a;if(this[_0x31bd4f(0xcb)](this[_0x31bd4f(0xaf)][_0x31bd4f(0x9a)])&&_0xc3d1d3){const {unitId:_0x749b75,subUnitId:_0x8acc3f,pivotTableId:_0x4c3183,type:_0x2f28d6,rangesCache:_0x59e71d,isEmpty:_0x32511d}=_0xc3d1d3;this[_0x31bd4f(0xb1)](this[_0x31bd4f(0xaf)][_0x31bd4f(0x9a)],{'unitId':_0x749b75,'subUnitId':_0x8acc3f,'pivotTableId':_0x4c3183,'changeType':_0x2f28d6,'isEmpty':!!_0x32511d,'rangeInfo':_0x59e71d});}}}_0x412bd0[_0xf94b3a(0x79)](ne);