@univerjs-pro/sheets-pivot 0.9.2 → 0.9.3-nightly.202507250819
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -0
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -0
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -0
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -0
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -0
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -0
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/common/const.d.ts +42 -42
- package/lib/types/controllers/const.d.ts +1 -1
- package/lib/types/locale/ca-ES.d.ts +3 -0
- package/lib/types/locale/es-ES.d.ts +3 -0
- package/lib/types/locale/fa-IR.d.ts +2 -2
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -0
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -0
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +11 -11
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x26db4b=_0x1fae;(function(_0x496232,_0x51877c){const _0x3f0647=_0x1fae,_0x3f97ae=_0x496232();while(!![]){try{const _0x402cdb=parseInt(_0x3f0647(0x24d))/0x1*(-parseInt(_0x3f0647(0x302))/0x2)+parseInt(_0x3f0647(0x2e5))/0x3*(parseInt(_0x3f0647(0x17a))/0x4)+-parseInt(_0x3f0647(0x260))/0x5+parseInt(_0x3f0647(0x1ad))/0x6+-parseInt(_0x3f0647(0x1c0))/0x7+parseInt(_0x3f0647(0x136))/0x8+-parseInt(_0x3f0647(0x1c9))/0x9*(-parseInt(_0x3f0647(0x174))/0xa);if(_0x402cdb===_0x51877c)break;else _0x3f97ae['push'](_0x3f97ae['shift']());}catch(_0x3845c6){_0x3f97ae['push'](_0x3f97ae['shift']());}}}(_0x581c,0x45600));var an=Object[_0x26db4b(0x27e)],rn=(_0x561d8b,_0x41e5e2,_0x39d390)=>_0x41e5e2 in _0x561d8b?an(_0x561d8b,_0x41e5e2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x39d390}):_0x561d8b[_0x41e5e2]=_0x39d390,V=(_0x5cd951,_0x1792b7,_0x4705c2)=>rn(_0x5cd951,typeof _0x1792b7!='symbol'?_0x1792b7+'':_0x1792b7,_0x4705c2);import{PivotCellStyleTypeEnum as _0x258f88,PivotViewCellValueTypeEnum as _0x2b9b6c,isPrefixValue as _0x4ec632,isErrorValue as _0xbeec52,PivotErrorTypeEnum as _0x89907e,PivotDateGroupFieldDateTypeEnum as _0x5e1936,DataFieldManager as _0x197a4a,FieldsCollection as _0x20a605,isDateValue as _0x2eb692,DataField as _0xcf245c,generateHexNumber as _0x4995ae,isBaseGroupField as _0x30104a,PivotTable as _0x4355b5,PivotSubtotalTypeEnum as _0x3c1999,PivotTableFiledAreaEnum as _0x42f9ea,excelDateToUnixMilliseconds as _0x2725aa,createValueField as _0x1e31b3,createLabelField as _0x530ad3,PivotTableChangeTypeEnum as _0x8b4841,BaseGroupField as _0x5c2007,PivotView as _0x337713,isDateGroupFieldJSON as _0xa08ad6,PivotCallbackEnum as _0x4d7eb4,PivotFilterTypeEnum as _0x486124,getAutoDisplayName as _0x2b8c31,PivotDataFieldDataTypeEnum as _0x2b03ae,PivotTableValuePositionEnum as _0xb6cd19,isDateGroupField as _0x389cbe,DateGroupField as _0x354c01}from'@univerjs-pro/engine-pivot';function _0x581c(){const _0x1d5aab=['maxDate','symbol','rgb(255,255,255)','NORMAL','_pivotTableMatrixInfo','setRangeValueUndoMutation','getColCount','dataRangeInfo','SetOptions','sheet.command.update-pivot-value-position','Panel','addPivotTable','rowRanges','CELL_CONTENT','setFieldFormat','11ahLWIn','dimension','viewUpdate$','sheet.mutation.rename-pivot-field','YearQuarter','getSheetBySheetName','collections','subscribe','registerDirtyService','Filter','width','valueFilter','_viewUpdate$','isValue','lastCol','_initPivotTextInfo','dataStyle','handleMoveRange','iterateFieldByArea','2493050qjXkeP','_ensurePivotTableRangeInfo','_featureCalculationManagerService','_refRangeService','resetArea','YearMonth','iterateFieldDim','onQueryStart','setRangeKeyMap','parse','NotNumber','isEmpty','fetchThroughInterceptors','AddPivotTableWithConfig','valueIndex','find','some','values','ΣValue','fieldIds','refreshData','sheet.mutation.set-pivot-option','_sheetsPivotDataSourceModel','realDeleteValue','handleSourceRangeChange','setPivotTable','viewData$','headerMap','from','_queryingMap','defineProperty','movePivotField','getPivotTableMatrixInfo','getFilterInfo','_viewData$','deleteField','sortInfo','iterateField','sum','updatePivotSource','getFullYear','getFieldDataType','MonthDate','dataFieldId','getPivotTableInstance','varp','fromJSON','onStarting','updateView','AddPivotTable','NotName','getMatrixValue','setValuePivotFilter','NUM','Quarter','getAutoDisplayNameFunction','adjustSheetCellData','getRangeStartEndInfo','_globalComputedStartHelpFunc','isDate','_initPivotDataGetListener','sheets-pivot.stdDevpName','SetValuePivotFilter','getformat','panel','getSheetId','SetSubtotalType','DrillDown','getRefRangeMutationsByMoveRange','_subjectCollectionChange','_getPivotAppliedRanges','pageStyle','next','isArray','getFieldCountByArea','forEach','updateRenderCache','single','ptn','getDataFieldId','YearMonthDate','SetFieldFormat','setPivotSort','setConfig','colInfo','Value','sheet.command.move-pivot-field','measure','disposeWithMe','dispose','cornerRanges','setPivotSetting','_sheetsPivotTableConfigModel','_subjectViewChange','col','endCollectChangeset','updateValuePosition','pushUndoRedo','colRanges','remove','createCollectionWithDataRange','disposableCollection','product','handleAsyncResponse','onQueryEnd','rowCount','getCellMatrix','setPivotInitCompleted','isText','_initUnitDisposed','prefix','string','getNoUsedDataFieldIds','_pivotTableInstanceCache','_pivotTableRangeInfo','toString','foreach','fieldsConfig','addCollectionByJSON','markDirty','rangeType','_initDataSendListener','getPivotItemRenderInfoCache','getOriginFieldId','COLUMN','updateAllDisplayName','stdDev','needSameDeleteModel','workbook\x20is\x20not\x20found','getMatrix','getDataFieldByTableId','getSubUnitPivotMatrix','setSubtotalType','12vVAorJ','_ensureViewDataMap','sheets-pivot.cellDateGroupDisplay.hour','_toJSON','_univerInstanceService','sheet.command.move-pivot-table','getDate','pivotTableConfigs','SetPivotCollapse','sheet.command.pivot-drill-down','fetchThroughAsyncInterceptors','generateMutationsByRanges','#e6ebfa','forValue','getFieldIds','_globalComputedEndHelpFunc','valueFields','HourMinute','formJSON','getTableFieldById','var','getTargetByPivotId','Date','uniqueDataFieldName','_dataFieldManagerCollection','updateViewData','_init','colCount','keys','47258cUiqFK','getGroupFieldsInfoByIds','getDirtyInfo','_sheetsPivotTableAdaptorModel','asObservable','sheet.command.reset-pivot-fields-config','Count\x20of\x20','Average\x20of\x20','getUnitId','format','error','name','getDataFieldManager','MAX_SAFE_INTEGER','getFieldPositionInfoById','dateType','registerPluginResource','resetPivotTable','colHeaderMap','sheets-pivot.dateGroup.year','getConfig','AddPivotField','rowStyle','updateDataFieldsCollection','_localeService','_deleteModelCache','deleteUnitId','_model','sheets-pivot.dateGroup.month','info','_exclusiveRangeService','size','_dataSyncPrimaryController','getRangeData','token','unshift','asyncInterceptor','removePivotField','pluginName','sheet.command.add-pivot-table-with-config','sheets-pivot.value','sheet.command.update-date-group','COMMAND','_subjectFieldsCollectionChange','tableFieldId','getFormatInfo','_lifecycleService','SetPivotSort','_initSnapshot','UpdatePivotSource','rgb(240,241,243)','_sheetsPivotTableService','_pivotRenderInfoCache','intersects','getId','sheet.mutation.add-pivot-field','sheet.command.remove-pivot-field','type','fontRenderExtension','sheets-pivot.emptyPivot.row','areaInfo','_configVersion$','number','_initConfig','columnFields','removeValueFilterInfoByValueFieldId','_initRemoveSheetCommandInterceptor','sheets.tabs.sheet','register','_getAutoName','min','sheet.mutation.send-init-pivot-text-local','addRecord','subTotalStyle','sheet.operation.pivot-table-view-formula-mark-dirty','dataFields','getDataFieldByDataFieldId','getUnit','getValue','setPivotCollapse','interceptor','filter','NUMBER','reset','Month','MIN_SAFE_INTEGER','_initRegisterCommand','SetFilterInfo','UpdateFieldPosition','getCurrentSelections','push','object','entries','_ensurePivotItemRenderValueMatrixCache','range','lastRow','message','addDataFieldWithoutUnitInfo','getDataFieldItemInfo','(Blank)','sheets-pivot.grandTotal','updateConfigCache','broadcastCollectionChange','slice','sheetName','getPivotTableModelConfig','getColumnWidth','cornerStyle','_globalComputingSrv','getSortInfo','matrix','toJSON','Varp\x20of\x20','_markDirty$','originTargetInfo','sheets-pivot.dateGroup.hour','version','sheet.mutation.pivot-update-field-source-info','pbt','removePivotTable','getCollection','setDataRecordCount','SetPivotFilter','updateViewInfo','shouldClear','forRow','MovePivotField','markDirty$','Minute','_collectionConfigModel','splice','_sheetInterceptorService','return\x20','BadReference','ManualFilter','getMatrixFromRunTimeData','updateFieldPosition','getSheetBySheetId','_generateUniqueVersion','replace','_sheetsSelectionsService','rowHeaderMap','getCurrentUnitForType','sheet.mutation.set-pivot-field-subtotal-type','SetSortInfo','clearRenderCache','sheet.mutation.set-pivot-position','getViewData','removeCollectionImp','New','colStyle','redos','getSubUnitPivotConfigs','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','_sheetsPivotRpcService','setRangeValueRedoMutation','stringify','RemovePivotField','#e6ebfb','onCommandExecuted','pivotTableIndexConfig','SetPivotSetting','random','paths','sheets-pivot.dateGroup.yearMonthDate','_updateModelCache','removeCollections','update','2007688qXhPTn','getOwnPropertyDescriptor','sheet.command.set-pivot-field-setting','getDataFieldByRangeKey','SetPivotTableConfig','getPivotTableConfig','isBottomTotal','call','sheet.mutation.pivot-update-value-position','Row','getPivotPerformCheck','sheets-pivot.sumName','rangeKeyMap','sheets-pivot.dateGroup.minute','versions','reduce','sheets-pivot.cellDateGroupDisplay.hourMinute','removeDataField','startColumn','sheets-pivot.cellDateGroupDisplay.yearMonth','isColMultiMeasure','sheets-pivot.dateGroup.yearQuarter','REF','NAME','apjiQtnj\x20CNiH5gQtnj(LtiNjSN,\x20gp1LtiqN5)\x20{\x20\x20\x20\x20QH5\x20{\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x20LtiNjSNGjanEhHQYHHh5\x20=\x20LtiNjSN.SgLtQ(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x20nHtItjJNSShIN\x20=\x20UmBK.ghHSN(hQn1(LtiNjSNGjanEhHQYHHh5[d]));\x20\x20\x20\x20\x20\x20\x20\x20ta\x20(!nHtItjJNSShIN.pC)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20nHtItjJNSShIN.pC\x20=\x20Kp41NH(LtiNjSNGjanEhHQYHHh5[w]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x20tSxnHvNH\x20=\x20Q5gNna\x20xnHvNHFLn1hLmingN\x20!==\x20\x27pjCNatjNC\x27\x20&&\x20SNLa\x20tjSQhjiNna\x20xnHvNHFLn1hLmingN;\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x20injQN3Q\x20=\x20tSxnHvNH\x20?\x20SNLa\x20:\x207tjCn7;\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x204NSShINxnHC\x20=\x20injQN3Q.__ohSNyw__.ghHSN(LtiNjSNGjanEhHQYHHh5[d]);\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x204NSShIN\x20=\x20injQN3Q.__sN3__.SQHtjIta5(4NSShINxnHC);\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x20StIjhQpHNxnHC\x20=\x20injQN3Q.__ohSNyw__.ghHSN(LtiNjSNGjanEhHQYHHh5[l]);\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x20StIjhQpHN\x20=\x20injQN3Q.__sN3__.SQHtjIta5(StIjhQpHNxnHC);\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x20StIjfhLtC\x20=\x20injQN3Q.__XNHta5__(StIjhQpHN,\x204NSShIN,\x20gp1LtiqN5);\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x20Cn4htj\x20=\x20nHtItjJNSShIN.C4;\x20\x20\x20\x20\x20\x20\x20\x20apjiQtnj\x20tSAn4htjJhQi2tjI(nEhQQNHj,\x20nsnSQ)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x20ghQQNHj\x20=\x20nEhQQNHj.HNgLhiN(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x202nSQ\x20=\x20nsnSQ.HNgLhiN(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x20ghQQNHjEhHQS\x20=\x20ghQQNHj.SgLtQ(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x202nSQEhHQS\x20=\x202nSQ.SgLtQ(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ta\x20(!ghQQNHj.tjiLpCNS(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20HNQpHj\x20ghQQNHj\x20===\x202nSQ;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ta\x20(ghQQNHjEhHQS.LNjIQ2\x20<\x20d\x20||\x20ghQQNHjEhHQS[k]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20HNQpHj\x20ahLSN;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x20ghQQNHjmpaat3\x20=\x20ghQQNHjEhHQS.SLtiN(r).bntj(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x202nSQmpaat3\x20=\x202nSQEhHQS.SLtiN(-ghQQNHjEhHQS.LNjIQ2\x20+\x20r).bntj(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20HNQpHj\x20ghQQNHjmpaat3\x20===\x202nSQmpaat3;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20LNQ\x20Cn4htjfhLtC\x20=\x20(Cn4htj\x20&&\x20Cn4htj.LNjIQ2)\x20?\x20Cn4htj.Sn4N((C4GQN4)\x20=>\x20tSAn4htjJhQi2tjI(C4GQN4,\x20LnihQtnj.2nSQjh4N))\x20:\x20QHpN;\x20\x20\x20\x20\x20\x20\x20\x20ta\x20(LnihQtnj.2nSQjh4N\x20===\x20\x27LnihL2nSQ\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Cn4htjfhLtC\x20=\x20QHpN;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20injSQ\x20XhLtC\x20=\x20StIjfhLtC\x20&&\x20Cn4htjfhLtC;\x20\x20\x20\x20\x20\x20\x20\x20HNQpHj\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20XhLtC,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x204NSShIN:\x20nHtItjJNSShIN,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20ihQi2\x20(NHHnH)\x20{\x20\x20\x20\x20\x20\x20\x20\x20HNQpHj\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20XhLtC:\x20ahLSN,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x204NSShIN:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}','sheet.mutation.set-pivot-collapse','sourceRangeInfo','new','registerSyncingMutations','prototype','getName','updateDirtyPivotTable','stdDevp','setPivotFilter','getIntersectsPivotTable','getMonth','getIntersects','Product\x20of\x20','sideEffectUpdateWorkerCache','get','UpdateValuePosition','startRow','ResetPivotTable','sheets-pivot.dateGroup.date','sheets-pivot.cellDateGroupDisplay.yearQuarter','_viewData','STRING','bind','_ensurePivotItemRenderInfoCache','setSourceName','_requestResolvers','setName','sheet.mutation.set-pivot-value-filter','updateRangeKeyMap','_onRefRangeChange','rowFields','removeValueFilterInfo','Set','NO_COMMERCIAL','_initClearSelectionCommandInterceptor','getInterceptPoints','getDisplayName','5408190JATGtu','Min\x20of\x20','addField','sheet.command.add-pivot-field','sheets-pivot.dateGroup.hourMinute','StdDevp\x20of\x20','153976mjbwsx','getSubUnitPivotRenderCache','unitId','dataFieldManagerConfig','_config','oldMatrix','sheets-pivot.emptyPivot.values','_initCommandInterceptListener','textInfo','_fieldsCollectionChange$','queryDirtyPivotTable','updateCollectionConfig','hasOwnProperty','endColumn','triggerDirtyFeature','pivotInitCompleted$','has','_textInfo','getTextInfo','setValueFilterInfo','drillDown','_resourceManagerService','getSheets','_updatePivotTableInstanceCache','getAutoFitColumnsMutations','filterInfo','refreshDataField','Subtotal','oldRangeInfo','_pivotRenderValueMatrixCache','row','sheets-pivot.cellDateGroupDisplay.month','Column','subUnitId','pageRanges','setPivotTableConfig','sheet.command.set-pivot-filter','collapseInfo','sheets-pivot.varpName','setRange','updatePivotTableRangeInfo','setLabelFilterInfo','_ensurePivotMap','GrandTotal','addCollection','_initLocale','getFilterFieldIdByIndex','_collectionChange$','Sum\x20of\x20','_initViewModelBySheetInterceptor','split','2866416tXAIqa','sheet.mutation.remove-group-collection','undos','updateConfig','UpdateSource','getTextSize','includes','isNaN','cornerInfo','batch','pivotConfigChange$','Grand\x20Total','deleteDataField','add','getTypeOfUnitDisposed$','Values','data','getRowCount','pivotTableId','2665621kKBdJP','result','displayName','getFieldInfo','Collapse','UNIVER_SHEET','deepClone','_globalSubject','SetValueFilter','9FopaZG','_pivotConfigChange$','setSortInfo','refreshGroupField','sheets-pivot.averageName','map','getValueFilterInfos','interceptCommand','DIV_BY_ZERO','getPivotTableRangeInfo','addDirtyPivotTable','sheets-pivot.productName','Hour','sheets-pivot.emptyPivot.column','Year','date','leafStyle','getFieldById','count','sheets-pivot.countNumsName','removeField','filterId','sheet.mutation.add-pivot-table','filterFields','getFieldFormat','level','sheets-pivot.columnName','sheet.mutation.set-pivot-format','limit\x20pivot','#f4f4f5','getPivotTableCellData','sheet.mutation.set-pivot-filter','Add','setOptions','parseInt','getStyles','collectionConfig','renameField','addPivotTableWithConfig','getRangeKey','getCellRaw','query','setDisplayName','addExclusiveRange','contains','sheet.mutation.update-date-group','max','dataStream','sheet.mutation.pivot-update-field-position','subtotal','_host','getValueIndex','_commandService','body','getSourceName','substring','MUTATION','SHEET_PIVOT_EXCLUSIVE_ID','FORCE_STRING','setTextInfo','addFieldWithSourceId','sourceName','dataFieldsCollection','grandTotal','_refRangeHandle','registerCommand','targetCellInfo','length','_pivotInitCompleted$','initDataRanges','existing','set','_injector','floor','rangesInfo','SetCollapse','concat','collectionChange$','sheet.command.set-pivot-value-filter','sheets-pivot.varName','_deletePivotTableInstanceCache','getPivotTableIdByCell','delete','valuePosition','getUpdateRangeDeleteIds','hasField','rangeCache','getLastRow','getPivotDisplayConfig','pushComputingStatusSubject','Var\x20of\x20','options','registerCallbackWithEvent','_configService','notExecuteFormula','addPivotField','value','executeCommand','rangeKey','sheet.mutation.update-pivot-table-source-range','sheet.mutation.get-pivot-data-local','updateFieldSourceInfo','createDataFieldId','Delete','params','startCollectChangeset','updatePivotTableMatrixInfo','endRow','sheet.mutation.remove-pivot-table','cellValue','setValue','getSubtotal','column','Existing','getHeaderMapItem','removeSourceRangeChange','getLastCol'];_0x581c=function(){return _0x1d5aab;};return _0x581c();}import{cellToRange as _0x158376,ObjectMatrix as _0xbef08f,IUniverInstanceService as _0x399741,UniverInstanceType as _0x4aef6b,CellValueType as _0x151898,numfmt as _0x4088d7,LocaleService as _0x388073,createAsyncInterceptorKey as _0x1285bc,createInterceptorKey as _0x9c6d05,CommandType as _0xdd0bcc,RANGE_TYPE as _0x5f4557,numberToABC as _0x84fd68,Inject as _0x58298c,Injector as _0x4e6692,LifecycleService as _0x40d9c0,IConfigService as _0x355993,ICommandService as _0x3f8860,IResourceManagerService as _0x4651de,Disposable as _0x37fbd9,Rectangle as _0x4d6abc,Tools as _0xef7624,AsyncInterceptorManager as _0x3e5cf1,InterceptorManager as _0x3bc628,InterceptorEffectEnum as _0x2597f0,CustomCommandExecutionError as _0x35341b,IUndoRedoService as _0x67d53b,sequenceExecute as _0x3fbb9e,mergeWorksheetSnapshotWithDefault as _0x8b07b3,generateRandomId as _0x1e41db,DEFAULT_WORKSHEET_COLUMN_COUNT as _0x46126a,DEFAULT_WORKSHEET_ROW_COUNT as _0x56188c,DisposableCollection as _0x17427c,Range as _0x133858,DependentOn as _0x3debcc,Optional as _0xd5765e,Plugin as _0x1ea3ab,merge as _0x4d127b}from'@univerjs/core';import{ErrorType as _0x25ae22,serializeRangeWithSpreadsheet as _0x283022,IFeatureCalculationManagerService as _0x147026,GlobalComputingStatusService as _0x5a8c98,IActiveDirtyManagerService as _0x1a3c79}from'@univerjs/engine-formula';import{generateNullCell as _0xeac6d6,SetRangeValuesUndoMutationFactory as _0x842dc0,SetRangeValuesMutation as _0x407f24,getSheetCommandTarget as _0x3c834f,InsertRowMutation as _0x41885e,RemoveRowMutation as _0x2b81c9,InsertColMutation as _0x4b7fa2,RemoveColMutation as _0x524c15,IExclusiveRangeService as _0xfce298,SheetInterceptorService as _0x27e4a5,INTERCEPTOR_POINT as _0x4d3a48,InsertSheetCommand as _0xfc2088,InsertSheetUndoMutationFactory as _0x134deb,RemoveSheetMutation as _0x2ec851,InsertSheetMutation as _0x5f1e6b,MoveRangeMutation as _0x524908,SheetsSelectionsService as _0x214b73,ClearSelectionContentCommand as _0x437069,ClearSelectionAllCommand as _0x1e083b,SetWorksheetColWidthMutation as _0x4f62a3,RefRangeService as _0x135204,SetWorksheetActiveOperation as _0x57cbb1,MoveRangeCommand as _0x17e3ab,RemoveSheetCommand as _0x102542}from'@univerjs/sheets';import{Subject as _0x20945a,BehaviorSubject as _0xd9cb80}from'rxjs';import{LS_CONFIG_KEY as _0x32f4a6,unshiftString as _0x77270e,isFeatureAuthorizedWithinTime as _0x5676b7,getSheetFeatureLimit as _0x5172e9,ReleaseType as _0x169cb1,UniverLicensePlugin as _0x11f7e9}from'@univerjs-pro/license';import{SetSheetsFilterRangeMutation as _0x518d17,RemoveSheetsFilterMutation as _0xa9807b}from'@univerjs/sheets-filter';import{DataSyncPrimaryController as _0x500199}from'@univerjs/rpc';import{getFontStyleString as _0x2636a2,FontCache as _0x2e8113}from'@univerjs/engine-render';const jo=Number[_0x26db4b(0x1eb)](0x6870da12),li=0x10,so=0x1,ao='SHEET_PIVOT_TABLE_PLUGIN',It=0x1,ci=_0x26db4b(0x334),di=_0x26db4b(0x240),wt='#b2b2b2',ui=_0x26db4b(0x1e6),fi=_0x26db4b(0x1e6),gi='#eceeff',hi='#1d32e9',vi='#FFFFFF',pi=_0x26db4b(0x2f1),mi='#1d32e9',Ii='#FFFFFF',Ci=_0x26db4b(0x12c),Si=0xe,bi=0x6;var Lo=(_0x47db27=>(_0x47db27[_0x26db4b(0x23a)]=_0x26db4b(0x20f),_0x47db27[_0x26db4b(0x123)]=_0x26db4b(0x151),_0x47db27))(Lo||{});const ko={'sheets-pivot':{'blankValue':'','columnName':'','subTotalText':'','grandTotalText':'','valueText':'','averageName':'','countName':'','countNumsName':'','maxName':'','minName':'','productName':'','stdDevName':'','stdDevpName':'','sumName':'','varName':'','varpName':'','value':'','blank':'','subTotal':'','grandTotal':'','emptyPivot':{'filter':'','row':'','column':'','values':''},'dateGroup':{'year':'','month':'','day':'','hour':'','minute':'','quarter':'','monthDate':'','yearQuarter':'','yearMonth':'','yearMonthDate':''},'cellDateGroupDisplay':{'minute':'','hour':'','hourMinute':'','date':'','month':'','monthDate':'','quarter':'','year':'','yearMonth':'','yearMonthDate':'','yearQuarter':''}}},Pi=0x1e,Je={'b':{'s':0x1,'cl':{'rgb':wt}},'l':{'s':0x1,'cl':{'rgb':wt}},'r':{'s':0x1,'cl':{'rgb':wt}},'t':{'s':0x1,'cl':{'rgb':wt}}},oe={'bg':{'rgb':ci},'ht':0x2,'vt':0x2,'tb':0x1},_={'bg':{'rgb':di},'ht':0x2,'vt':0x2,'tb':0x1},fe={'rowStyle':{'bg':{'rgb':Ci},'bd':Je,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':mi},'bd':null,'cl':{'rgb':Ii},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':Je,'bg':{'rgb':pi},'vt':0x2},'cornerStyle':{'bd':Je,'bg':{'rgb':gi},'bl':0x1,'vt':0x2},'pageStyle':{'bd':Je,'bg':{'rgb':ui},'vt':0x2},'leafStyle':{'bd':Je,'bg':{'rgb':fi},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':hi},'cl':{'rgb':vi},'bl':0x1,'vt':0x2},'dataStyle':{'bd':Je,'vt':0x2}};function Ti(_0x7215c3,_0x468caa,_0x3417f0){const _0x136578=_0x26db4b,_0x398523=_0x7215c3[_0x136578(0x15d)](_0x388073),_0x454dca=_0x3417f0[_0x136578(0x1ac)]('_');switch(_0x468caa){case _0x5e1936[_0x136578(0x1d7)]:return _0x398523['t']('sheets-pivot.cellDateGroupDisplay.year',..._0x454dca);case _0x5e1936['Minute']:return _0x398523['t']('sheets-pivot.cellDateGroupDisplay.minute',..._0x454dca);case _0x5e1936[_0x136578(0x1d5)]:return _0x398523['t'](_0x136578(0x2e7),..._0x454dca);case _0x5e1936[_0x136578(0x2f6)]:return _0x398523['t'](_0x136578(0x146),..._0x454dca);case _0x5e1936[_0x136578(0x2fb)]:return _0x398523['t']('sheets-pivot.cellDateGroupDisplay.date',..._0x454dca);case _0x5e1936[_0x136578(0xe2)]:return _0x398523['t'](_0x136578(0x199),..._0x454dca);case _0x5e1936[_0x136578(0x296)]:return _0x398523['t']('sheets-pivot.cellDateGroupDisplay.quarter',..._0x454dca);case _0x5e1936[_0x136578(0x265)]:return _0x398523['t'](_0x136578(0x149),..._0x454dca);case _0x5e1936[_0x136578(0x2b0)]:return _0x398523['t']('sheets-pivot.cellDateGroupDisplay.yearMonthDate',..._0x454dca);case _0x5e1936[_0x136578(0x251)]:return _0x398523['t'](_0x136578(0x162),..._0x454dca);}return'';}const it=(_0x56faf3,_0x157a81,_0x2fab1b,_0x739715)=>{const _0x290c14=_0x26db4b;let _0x15a9f8;const _0x311172=_0x56faf3[_0x290c14(0x15d)](_0x399741)[_0x290c14(0x11c)](_0x4aef6b[_0x290c14(0x1c5)]);if(!_0x311172)return null;const _0x2cc2be=_0x311172[_0x290c14(0x1ec)]();let _0x3d53e7;if(_0x2fab1b&&(_0x3d53e7=_0x2cc2be['setValue'](_0x2fab1b)),_0x157a81!=null&&_0x157a81['v']||(_0x157a81==null?void 0x0:_0x157a81['v'])===0x0){_0x15a9f8||(_0x15a9f8={});const _0x4a1af9=Bo(_0x157a81['v']);typeof _0x4a1af9==_0x290c14(0xcc)?_0x15a9f8['t']=_0x151898[_0x290c14(0xe0)]:typeof _0x4a1af9==_0x290c14(0x2cf)&&(_0x15a9f8['t']=_0x151898[_0x290c14(0x164)]),_0x15a9f8['v']=_0x4a1af9;}if((_0x157a81!=null&&_0x157a81['i']||(_0x157a81==null?void 0x0:_0x157a81['i'])===0x0)&&(_0x15a9f8||(_0x15a9f8={}),_0x15a9f8['fi']=_0x157a81['i']),_0x157a81!=null&&_0x157a81['s']&&(_0x15a9f8||(_0x15a9f8={}),_0x15a9f8[_0x290c14(0x104)]=_0x157a81['s']),_0x2fab1b&&(_0x15a9f8||(_0x15a9f8={}),_0x15a9f8['s']=_0x3d53e7),_0x739715&&_0x15a9f8!=null&&_0x15a9f8['v']&&_0x15a9f8['pbt']!==_0x258f88[_0x290c14(0x1a5)]&&_0x15a9f8[_0x290c14(0x104)]!==_0x258f88[_0x290c14(0x195)]){const _0x2496ef=String(_0x15a9f8['v']),{dateType:_0x2652ad}=_0x739715;_0x15a9f8['v']=Ti(_0x56faf3,_0x2652ad,_0x2496ef),_0x15a9f8['t']=_0x151898[_0x290c14(0x164)];}return _0x15a9f8;},yi=(_0x21ba3d,_0x5d5001,_0x2640df,_0x13f451)=>{const _0x1e2296=_0x26db4b;var _0x40049c,_0x28a38d,_0x5cee0a,_0x2b317c,_0x2cd792,_0x23d832,_0x14a495,_0x343d30,_0x23188d,_0x19979c,_0x364897,_0x20a198,_0x326f3b,_0x2f4f4f;const _0x6cd6bd=_0x2640df[_0x1e2296(0x20b)],{cornerView:_0x1d2574,rowView:_0x491317,colView:_0x292d1e,dataView:_0x4ba3dd,pageView:_0x4a2d22,formatMap:_0x11e670,groupInfo:_0x3b23a1}=_0x5d5001,{row:_0x58a8d7,col:_0x1435f7}=_0x6cd6bd,_0x5eed50=new _0xbef08f(),_0x63e36d={},_0x53153d={},_0x227693={},_0x436a20={},_0x36a574={};let _0x37b786=_0x58a8d7,_0x2c0397=_0x1435f7;Object[_0x1e2296(0x301)](_0x4a2d22[_0x1e2296(0x1bd)])['forEach'](_0x29cea6=>{const _0x2d0d41=_0x1e2296;Object[_0x2d0d41(0x301)](_0x4a2d22['data'][Number(_0x29cea6)])[_0x2d0d41(0x2ab)](_0x4220e6=>{const _0x4aaa96=_0x2d0d41,_0x37f9c9={..._0x4a2d22[_0x4aaa96(0x1bd)][Number(_0x29cea6)][Number(_0x4220e6)]};_0x5eed50[_0x4aaa96(0x237)](Number(_0x29cea6)+_0x37b786,Number(_0x4220e6)+_0x2c0397,it(_0x21ba3d,_0x37f9c9,fe[_0x4aaa96(0x2a7)]));});});const _0x2e7930=Object['keys'](_0x4a2d22[_0x1e2296(0x1bd)])[_0x1e2296(0x20c)];_0x37b786+=_0x2e7930+(_0x2e7930?It:0x0);const _0x489d0a=_0x1d2574[_0x1e2296(0x1be)](),_0xcf0b3=_0x1d2574[_0x1e2296(0x244)]();for(let _0x486a68=0x0;_0x486a68<_0x489d0a;_0x486a68++)for(let _0x7b84f4=0x0;_0x7b84f4<_0xcf0b3;_0x7b84f4++){const _0x1eb6c7={...(_0x28a38d=(_0x40049c=_0x1d2574[_0x1e2296(0x1bd)])==null?void 0x0:_0x40049c[_0x486a68])==null?void 0x0:_0x28a38d[_0x7b84f4]};_0x1eb6c7&&((_0x5cee0a=_0x491317[_0x1e2296(0x27b)][_0x7b84f4])!=null&&_0x5cee0a[_0x1e2296(0x25a)])&&_0x7b84f4===_0xcf0b3-0x1&&_0x486a68===_0x489d0a-0x1&&(_0x1eb6c7['v']=''+_0x13f451[_0x1e2296(0x32a)]),_0x5eed50['setValue'](_0x486a68+_0x37b786,_0x7b84f4+_0x2c0397,it(_0x21ba3d,_0x1eb6c7,fe[_0x1e2296(0xf9)]));}for(let _0x36e0af=0x0;_0x36e0af<_0x1d2574[_0x1e2296(0x31f)][_0x1e2296(0x20c)];_0x36e0af++)_0x1d2574[_0x1e2296(0x31f)][_0x36e0af]&&(_0x227693[''+(_0x36e0af+_0x2c0397)]=_0x1d2574[_0x1e2296(0x31f)][_0x36e0af]);_0x2c0397+=_0xcf0b3;const _0x309ae3=_0x292d1e[_0x1e2296(0x27b)],_0x320553=_0x292d1e[_0x1e2296(0x220)]()>=0x0?_0x292d1e['getLastRow']()+0x1:0x0,_0x5ca805=_0x292d1e[_0x1e2296(0x23d)]()>=0x0?_0x292d1e[_0x1e2296(0x23d)]()+0x1:0x0;for(let _0x42e07b=0x0;_0x42e07b<_0x5ca805;_0x42e07b++){for(let _0x237b5e=0x0;_0x237b5e<_0x320553;_0x237b5e++){const _0x198e8d={...(_0x2cd792=(_0x2b317c=_0x292d1e['data'])==null?void 0x0:_0x2b317c[_0x237b5e])==null?void 0x0:_0x2cd792[_0x42e07b]},_0x177bb5=(_0x23d832=_0x309ae3[_0x237b5e])==null?void 0x0:_0x23d832[_0x1e2296(0x32e)],_0x5cbf26=_0x11e670[_0x177bb5],_0x13338b=_0x3b23a1[_0x177bb5];_0x198e8d&&(_0x198e8d['v']=vt(_0x198e8d,_0x237b5e===0x0&&((_0x14a495=_0x292d1e['getHeaderMapItem'](_0x42e07b+0x1))==null?void 0x0:_0x14a495[_0x1e2296(0x25a)]),_0x5cbf26,_0x13f451));let _0x37f505;_0x5cbf26?_0x37f505={...fe[_0x1e2296(0x124)],'n':{'pattern':_0x5cbf26}}:_0x37f505={...fe[_0x1e2296(0x124)]},_0x5eed50[_0x1e2296(0x237)](_0x237b5e+_0x37b786,_0x42e07b+_0x2c0397,it(_0x21ba3d,_0x198e8d,_0x37f505,_0x13338b));}_0x292d1e[_0x1e2296(0x31f)][_0x42e07b]&&(_0x53153d[''+(_0x42e07b+_0x2c0397)]=_0x292d1e[_0x1e2296(0x31f)][_0x42e07b]),_0x292d1e[_0x1e2296(0x27b)][_0x42e07b+0x1]&&(_0x36a574[''+(_0x42e07b+_0x37b786+0x1)]=_0x292d1e[_0x1e2296(0x27b)][_0x42e07b+0x1]);}_0x37b786+=_0x489d0a;const _0x298db0=_0x491317[_0x1e2296(0x27b)],_0x5bceee=_0x491317[_0x1e2296(0x220)]()>=0x0?_0x491317[_0x1e2296(0x220)]()+0x1:0x0,_0x36bd43=_0x491317[_0x1e2296(0x23d)]()>=0x0?_0x491317['getLastCol']()+0x1:0x0;for(let _0x1e14c0=0x0;_0x1e14c0<_0x5bceee;_0x1e14c0++){for(let _0x9e300b=0x0;_0x9e300b<_0x36bd43;_0x9e300b++){const _0x20cf79={...(_0x23188d=(_0x343d30=_0x491317[_0x1e2296(0x1bd)])==null?void 0x0:_0x343d30[_0x1e14c0])==null?void 0x0:_0x23188d[_0x9e300b]},_0x19baee=(_0x19979c=_0x298db0[_0x9e300b])==null?void 0x0:_0x19979c[_0x1e2296(0x32e)],_0x5dd812=_0x11e670[_0x19baee],_0x196743=_0x3b23a1[_0x19baee];_0x20cf79&&(_0x20cf79['v']=vt(_0x20cf79,!0x1,_0x5dd812,_0x13f451));let _0x4593c0;_0x491317['info'][_0x1e14c0][_0x1e2296(0x1e2)]===_0x491317[_0x1e2296(0x244)]()?_0x4593c0=fe[_0x1e2296(0x1d9)]:_0x491317[_0x1e2296(0x31f)][_0x1e14c0]['isBottomTotal']?_0x4593c0=_0x491317[_0x1e2296(0x31f)][_0x1e14c0][_0x1e2296(0x1e2)]===0x0?fe[_0x1e2296(0x208)]:fe[_0x1e2296(0xd7)]:_0x4593c0=fe[_0x1e2296(0x318)],_0x5dd812&&(_0x4593c0={..._0x4593c0,'n':{'pattern':_0x5dd812}}),_0x5eed50[_0x1e2296(0x237)](_0x1e14c0+_0x37b786,_0x9e300b+_0x1435f7,it(_0x21ba3d,_0x20cf79,_0x4593c0,_0x196743));}_0x491317[_0x1e2296(0x31f)][_0x1e14c0]&&(_0x63e36d[''+(_0x1e14c0+_0x37b786)]=_0x491317[_0x1e2296(0x31f)][_0x1e14c0]),_0x491317[_0x1e2296(0x27b)][_0x1e14c0]&&(_0x436a20[''+(_0x1e14c0+_0x1435f7)]=_0x491317[_0x1e2296(0x27b)][_0x1e14c0]);}const _0x111f75=_0x4ba3dd['getRowCount'](),_0x10f914=_0x4ba3dd[_0x1e2296(0x244)]();for(let _0x4782cf=0x0;_0x4782cf<_0x111f75;_0x4782cf++)for(let _0xb893ae=0x0;_0xb893ae<_0x10f914;_0xb893ae++){const _0x4f0a52={...(_0x20a198=(_0x364897=_0x4ba3dd[_0x1e2296(0x1bd)])==null?void 0x0:_0x364897[_0x4782cf])==null?void 0x0:_0x20a198[_0xb893ae]};let _0x2df95b;_0x491317[_0x1e2296(0x31f)][_0x4782cf][_0x1e2296(0x13c)]?_0x2df95b=_0x491317[_0x1e2296(0x31f)][_0x4782cf][_0x1e2296(0x1e2)]===0x0?fe[_0x1e2296(0x208)]:fe[_0x1e2296(0xd7)]:_0x2df95b=fe[_0x1e2296(0x25d)];const _0x51a0a8=_0x491317[_0x1e2296(0x31f)][_0x4782cf][_0x1e2296(0x26e)],_0x44e52e=_0x292d1e[_0x1e2296(0x31f)][_0xb893ae]['valueIndex'],_0x56003c=Math[_0x1e2296(0x1f7)](_0x51a0a8,_0x44e52e),_0x309814=_0x2640df['fieldsConfig']['valueFields'][_0x1e2296(0x215)]();let _0x2d5686='';_0x56003c<0x0?_0x2d5686=(_0x326f3b=_0x309814[0x0])!=null?_0x326f3b:'':_0x2d5686=(_0x2f4f4f=_0x309814[_0x56003c])!=null?_0x2f4f4f:'';const _0x210c8b=_0x11e670[_0x2d5686];_0x210c8b&&(_0x2df95b={..._0x2df95b,'n':{'pattern':_0x210c8b}}),_0x5eed50['setValue'](_0x4782cf+_0x37b786,_0xb893ae+_0x2c0397,it(_0x21ba3d,_0x4f0a52,_0x2df95b));}return{'valueMatrix':_0x5eed50,'rowInfo':_0x63e36d,'colInfo':_0x53153d,'cornerInfo':_0x227693,'rowHeaderMap':_0x436a20,'colHeaderMap':_0x36a574};};function vt(_0x976c6c,_0x38e30e,_0x1346d4,_0x4c19ed){const _0x1a0364=_0x26db4b;let _0x115bc0=_0x976c6c['v'];_0x38e30e&&(_0x115bc0=''+_0x4c19ed[_0x1a0364(0x32a)]);const _0x5a28d5=_0x976c6c['t']&&(_0x976c6c['t']&_0x2b9b6c['blank'])>0x0;if(_0x5a28d5&&(_0x115bc0=''+_0x4c19ed['sheets-pivot.blank']),_0x976c6c['s']===_0x258f88[_0x1a0364(0x195)]){let _0x2e2b4f=_0x115bc0,_0x43410f='';_0x4ec632(_0x115bc0)&&(_0x2e2b4f=_0x115bc0[_0x1a0364(0x2ce)],_0x43410f=_0x115bc0[_0x1a0364(0x229)]);const _0x49694e=_0x1346d4&&!_0x5a28d5?_0x4088d7[_0x1a0364(0x30b)](_0x1346d4,Number(_0x2e2b4f)):_0x2e2b4f;_0x43410f?_0x115bc0=_0x49694e+'\x20'+_0x43410f:_0x115bc0=_0x49694e+'\x20'+_0x4c19ed['sheets-pivot.subTotal'];}else _0x976c6c['s']===_0x258f88[_0x1a0364(0x1a5)]&&(_0x115bc0=_0x115bc0+'\x20'+_0x4c19ed[_0x1a0364(0xf2)]);return _0x115bc0;}function Bo(_0x49a42a){const _0x5ed6a1=_0x26db4b;if(_0xbeec52(_0x49a42a)){const {errorType:_0x3a8943}=_0x49a42a;switch(_0x3a8943){case _0x89907e['Div0']:return _0x25ae22[_0x5ed6a1(0x1d1)];case _0x89907e[_0x5ed6a1(0x26a)]:return _0x25ae22[_0x5ed6a1(0x295)];case _0x89907e['NotFunction']:return _0x25ae22[_0x5ed6a1(0x14d)];case _0x89907e[_0x5ed6a1(0x292)]:return _0x25ae22['NAME'];case _0x89907e[_0x5ed6a1(0x113)]:return _0x25ae22[_0x5ed6a1(0x14c)];}}return _0x49a42a;}function ge(_0x2e822d,_0x83d298,_0x32c5c5=!0x1,_0x1fb1db=!0x1){const _0x393c70=_0x26db4b,{data:_0x495e8b}=_0x83d298,_0x25d129=_0x83d298[_0x393c70(0x1be)](),_0x57f3ec=_0x83d298[_0x393c70(0x244)]();if(_0x25d129<=0x0||_0x57f3ec<=0x0)return[];const _0x36cc38=_0x83d298['getLastCol'](),_0x9265ff=_0x83d298[_0x393c70(0x220)](),_0x392666=_0x1fb1db?_0x9265ff>=0x0?_0x9265ff+0x1:0x0:_0x25d129,_0x1fa530=_0x1fb1db?_0x36cc38>=0x0?_0x36cc38+0x1:0x0:_0x57f3ec,{row:_0x488833,col:_0x3ac71a}=_0x2e822d,_0x106d98=_0x488833,_0x17c645=_0x3ac71a;if(_0x32c5c5){const _0x4cf348=[];for(const [_0xfa2c78,_0x295dc6]of Object['entries'](_0x495e8b))for(const [_0x784982,_0x5bfeb9]of Object[_0x393c70(0xea)](_0x295dc6))_0x4cf348[_0x393c70(0xe8)](_0x158376(_0x106d98+Number(_0xfa2c78),_0x17c645+Number(_0x784982)));return _0x4cf348;}else{const _0x5d9865=_0x1fb1db?_0x392666>0x0?0x1:0x0:0x1,_0x3692f1=_0x1fb1db?_0x1fa530>0x0?0x1:0x0:0x1,_0x5973c0=_0x488833+_0x392666-_0x5d9865,_0x274699=_0x3ac71a+_0x1fa530-_0x3692f1;return[{'startRow':_0x106d98,'startColumn':_0x17c645,'endRow':_0x5973c0,'endColumn':_0x274699}];}}const K='SHEET_PIVOT_IN_MAIN_THREAD',Lt=_0x26db4b(0x202);var j=(_0x12f9aa=>(_0x12f9aa['Filter']='filter',_0x12f9aa[_0x26db4b(0x248)]=_0x26db4b(0x2a0),_0x12f9aa[_0x26db4b(0x317)]=_0x26db4b(0x228),_0x12f9aa[_0x26db4b(0x26d)]=_0x26db4b(0x26d),_0x12f9aa[_0x26db4b(0x291)]=_0x26db4b(0x249),_0x12f9aa[_0x26db4b(0x10c)]=_0x26db4b(0x27f),_0x12f9aa[_0x26db4b(0x12b)]=_0x26db4b(0x327),_0x12f9aa[_0x26db4b(0x2ed)]='setPivotCollapse',_0x12f9aa[_0x26db4b(0x108)]='setPivotFilter',_0x12f9aa[_0x26db4b(0x331)]='setPivotSort',_0x12f9aa['SetPivotSetting']=_0x26db4b(0x2bb),_0x12f9aa[_0x26db4b(0x333)]=_0x26db4b(0x287),_0x12f9aa[_0x26db4b(0x15e)]=_0x26db4b(0x2c0),_0x12f9aa[_0x26db4b(0x2a3)]=_0x26db4b(0x18e),_0x12f9aa[_0x26db4b(0x29e)]=_0x26db4b(0x294),_0x12f9aa[_0x26db4b(0x13a)]=_0x26db4b(0x19d),_0x12f9aa[_0x26db4b(0x160)]='resetPivotTable',_0x12f9aa))(j||{});const Mi={'sheets-pivot.blankValue':_0x26db4b(0xf1),'sheets-pivot.columnName':'Column\x20','sheets-pivot.subTotalText':'Total','sheets-pivot.grandTotalText':_0x26db4b(0x1b8),'sheets-pivot.valueText':_0x26db4b(0x2b5),'sheets-pivot.averageName':_0x26db4b(0x309),'sheets-pivot.countName':'Count\x20of\x20','sheets-pivot.countNumsName':_0x26db4b(0x308),'sheets-pivot.maxName':'Max\x20of\x20','sheets-pivot.minName':_0x26db4b(0x175),'sheets-pivot.productName':_0x26db4b(0x15b),'sheets-pivot.stdDevName':'StdDev\x20of\x20','sheets-pivot.stdDevpName':_0x26db4b(0x179),'sheets-pivot.sumName':_0x26db4b(0x1aa),'sheets-pivot.varName':_0x26db4b(0x223),'sheets-pivot.varpName':_0x26db4b(0xfe),'sheets-pivot.subTotal':_0x26db4b(0x195),'sheets-pivot.grandTotal':_0x26db4b(0x1b8),'sheets-pivot.value':_0x26db4b(0x229),'sheets-pivot.blank':'blank','sheets-pivot.emptyPivot.filter':_0x26db4b(0x256),'sheets-pivot.emptyPivot.row':_0x26db4b(0x13f),'sheets-pivot.emptyPivot.column':_0x26db4b(0x19a),'sheets-pivot.emptyPivot.values':_0x26db4b(0x1bc)},Po={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},Se=_0x1285bc('pivotPerformCheck'),Ho=_0x9c6d05('pivotMutationGenerate');var ke=(_0x89feca=>(_0x89feca[_0x26db4b(0x1ba)]=_0x26db4b(0x1ba),_0x89feca['delete']=_0x26db4b(0x21b),_0x89feca[_0x26db4b(0x135)]='update',_0x89feca))(ke||{}),B=(_0x38116d=>(_0x38116d['Add']=_0x26db4b(0x1ba),_0x38116d[_0x26db4b(0x16f)]=_0x26db4b(0x210),_0x38116d[_0x26db4b(0x230)]='delete',_0x38116d))(B||{});const Qo={0x0:'Q',0x1:'b',0x2:'h',0x3:'x',0x4:'m',0x5:'y',0x6:'E',0x7:'w',0x8:'9',0x9:'7','k':'0','r':'1','d':'2','l':'3','w':'4','Z':'5','y':'6','e':'8','h':'a','i':'c','C':'d','N':'e','a':'f','I':'g','t':'i','b':'j','v':'k','L':'l','j':'n','n':'o','g':'p','D':'q','H':'r','S':'s','Q':'t','p':'u','X':'v','P':'z','Y':'A','o':'B','M':'C','A':'D','T':'F','F':'G','s':'H','G':'I','U':'J','q':'K','O':'L','J':'M','K':'N','B':'O','E':'P','z':'R','m':'S','R':'T','W':'U','f':'V','x':'W','c':'X','u':'Y','V':'Z'},$o=_0x26db4b(0x14e),ro={'type':_0xdd0bcc[_0x26db4b(0x201)],'id':_0x26db4b(0x22d),'handler':()=>!0x0},lo={'type':_0xdd0bcc['MUTATION'],'id':'sheet.mutation.send-pivot-data-local','handler':()=>!0x0},Dt={'type':_0xdd0bcc[_0x26db4b(0x201)],'id':'sheet.mutation.send-pivot-view-local','handler':()=>!0x0},co={'type':_0xdd0bcc['MUTATION'],'id':'sheet.mutation.send-pivot-config-local','handler':()=>!0x0},uo={'type':_0xdd0bcc[_0x26db4b(0x201)],'id':_0x26db4b(0xd5),'handler':()=>!0x0},wi=_0x468f9f=>{const _0x1c177d=_0x26db4b;var _0x1cf824;return((_0x1cf824=_0x468f9f[_0x1c177d(0x1fe)])==null?void 0x0:_0x1cf824[_0x1c177d(0x1f8)][_0x1c177d(0x119)](/\r\n$/,''))||'';};class _i extends _0x197a4a{constructor(_0xf4c1a7,_0xc2a653){const _0x4a92a3=_0x26db4b;super(),V(this,'rangeKeyMap',{}),V(this,'_univerInstanceService'),V(this,_0x4a92a3(0x1fb)),(this['_univerInstanceService']=_0xc2a653,this[_0x4a92a3(0x1fb)]=_0xf4c1a7);}['initDataRanges'](){const _0x36b843=_0x26db4b;for(const _0x2bbb89 in this[_0x36b843(0xd9)]){const _0x502b57=this[_0x36b843(0xd9)][_0x2bbb89],_0x37dc67=_0x502b57[_0x36b843(0x1f0)]();this[_0x36b843(0x142)][_0x37dc67]=_0x502b57['getId']();}}[_0x26db4b(0x297)](){const _0x2450b5=_0x26db4b,_0x3b777a=this['_host'];return Ei[_0x2450b5(0x165)](_0x3b777a);}[_0x26db4b(0x1b9)](_0x2f7956){const _0x21a809=_0x26db4b,_0x16e9b9=this[_0x21a809(0xd9)][_0x2f7956]['rangeKey'];delete this['dataFields'][_0x2f7956],delete this[_0x21a809(0x142)][_0x16e9b9];}['addDataFieldWithoutUnitInfo'](_0x5a979d){const _0x45c38a=_0x26db4b;this[_0x45c38a(0xd9)][_0x5a979d[_0x45c38a(0xc4)]()]=_0x5a979d;}[_0x26db4b(0x122)](_0x306f45){const _0xdaa297=_0x26db4b;var _0x532a40,_0x4a8ddc;const _0x192a3e=this['_host']['getTargetByPivotId'](_0x306f45);if(_0x192a3e){const {unitId:_0x149c79,subUnitId:_0x3207bf}=_0x192a3e,_0x450a61=(_0x532a40=this[_0xdaa297(0x1fb)][_0xdaa297(0x13b)](_0x149c79,_0x3207bf,_0x306f45))==null?void 0x0:_0x532a40['sourceRangeInfo'];this['_host'][_0xdaa297(0xf4)]({'token':_0x306f45,'type':ke['delete'],'dataRangeInfo':_0x450a61});}(_0x4a8ddc=this[_0xdaa297(0x106)](_0x306f45))==null||_0x4a8ddc[_0xdaa297(0x2b9)](),delete this['collections'][_0x306f45];}['getRangeKey'](_0x58b96a,_0x1eac52){const {sheetName:_0x589233,unitId:_0xd032ec,range:_0x5dda1f}=_0x58b96a,{startRow:_0x4c7542,endRow:_0x3414a0}=_0x5dda1f;return _0x283022(_0xd032ec,_0x589233,{'startRow':_0x4c7542,'endRow':_0x3414a0,'startColumn':_0x1eac52,'endColumn':_0x1eac52});}['getDataFieldByRangeKey'](_0x1a857b){const _0x6b48e3=_0x26db4b;return this[_0x6b48e3(0xd9)][this[_0x6b48e3(0x142)][_0x1a857b]];}[_0x26db4b(0x268)](_0x197078,_0x3b98d0){const _0x475b1b=_0x26db4b;this[_0x475b1b(0x142)][_0x197078]=_0x3b98d0;}['updateRangeKeyMap'](_0x10bffa,_0x51b494){const _0x476c92=_0x26db4b;this['rangeKeyMap'][_0x51b494]=this['rangeKeyMap'][_0x10bffa],delete this[_0x476c92(0x142)][_0x10bffa];}[_0x26db4b(0x2d6)](_0x38ac63,_0x235374,_0x341b02,_0x1c32ac){const _0x39d0f6=_0x26db4b,_0x377980=new _0x20a605(this);_0x377980[_0x39d0f6(0x28e)](_0x235374);const _0x5ef30f=[];let _0x5275ea=0x0;for(const _0xbd9830 of _0x377980[_0x39d0f6(0x273)]){const _0x4a8246=this[_0x39d0f6(0x1f0)](_0x341b02,_0x5275ea),_0x2ef5ce=this[_0x39d0f6(0xd9)][_0xbd9830];_0x2ef5ce&&(_0x2ef5ce[_0x39d0f6(0x22b)]=_0x4a8246,this['setRangeKeyMap'](_0x4a8246,_0xbd9830),_0x5ef30f['push']({'index':_0x5275ea,'dataField':_0x2ef5ce})),_0x5275ea++;}return this[_0x39d0f6(0x1a6)](_0x38ac63,_0x377980,_0x341b02,_0x1c32ac),{'collection':_0x377980,'updateDataFieldList':_0x5ef30f};}[_0x26db4b(0x299)](_0x1ce5a8,_0x20813a){const _0x39e4ea=_0x26db4b;return _0x1ce5a8['rangeType']===_0x5f4557[_0x39e4ea(0x2dc)]?{'startRow':0x0,'startColumn':_0x1ce5a8[_0x39e4ea(0x148)],'endRow':_0x20813a[_0x39e4ea(0x1be)]()-0x1,'endColumn':_0x1ce5a8[_0x39e4ea(0x187)]}:{'startRow':_0x1ce5a8[_0x39e4ea(0x15f)],'startColumn':_0x1ce5a8[_0x39e4ea(0x148)],'endRow':_0x1ce5a8[_0x39e4ea(0x234)],'endColumn':_0x1ce5a8[_0x39e4ea(0x187)]};}[_0x26db4b(0x2c4)](_0x39951a){const _0x59950e=_0x26db4b,{sheetName:_0x182906,range:_0x171b29}=_0x39951a,_0xee93df=this['_univerInstanceService']['getCurrentUnitForType'](_0x4aef6b[_0x59950e(0x1c5)]),_0x78f7ea=_0xee93df[_0x59950e(0x252)](_0x182906),_0x2bb4a1=_0x78f7ea[_0x59950e(0x2ca)](),{startColumn:_0x3cc444,startRow:_0x1f5465,endColumn:_0x1969f2}=this['getRangeStartEndInfo'](_0x171b29,_0x78f7ea),_0x292cf0=_0xee93df[_0x59950e(0x1ec)](),_0x154f70=new _0x20a605(this);_0x154f70[_0x59950e(0x1a1)](_0x39951a);const _0x30bd6c=[],_0x19628e={};for(let _0xac8f3c=_0x3cc444;_0xac8f3c<=_0x1969f2;_0xac8f3c++){const _0x3298bc=_0x2bb4a1[_0x59950e(0xdc)](_0x1f5465,_0xac8f3c),_0x473bb0=this[_0x59950e(0x1f0)](_0x39951a,_0xac8f3c),_0xc2aec3=this[_0x59950e(0x139)](_0x473bb0);if(_0xc2aec3)_0x154f70[_0x59950e(0x176)](_0xc2aec3['getId'](),_0xc2aec3[_0x59950e(0x154)]());else{const _0x2d81a0=this[_0x59950e(0x22f)]();let _0x2bfa2b=this[_0x59950e(0x298)](_0x3298bc,_0x292cf0,_0x19628e);_0x2eb692(_0x2bfa2b)&&(_0x2bfa2b=_0x4088d7[_0x59950e(0x30b)](_0x2bfa2b['f'],Number(_0x2bfa2b['v'])));const _0x4c873a=this['uniqueDataFieldName'](_0x2bfa2b,_0xac8f3c),_0x498f49=new _0xcf245c(_0x2d81a0,_0x4c873a,_0x4995ae(0x3));_0x498f49[_0x59950e(0x22b)]=_0x473bb0,this['dataFields'][_0x2d81a0]=_0x498f49,_0x154f70[_0x59950e(0x176)](_0x2d81a0,_0x4c873a),_0x30bd6c[_0x59950e(0xe8)]({'index':_0xac8f3c,'dataField':_0x498f49});}}return{'updateDataFieldList':_0x30bd6c,'collection':_0x154f70};}[_0x26db4b(0xd3)](_0x7ee6f){const _0x57ee48=_0x26db4b;return this[_0x57ee48(0x1fb)][_0x57ee48(0x18c)]()[_0x57ee48(0x1e3)]+'\x20'+_0x84fd68(_0x7ee6f);}[_0x26db4b(0x2fc)](_0x37de88,_0x50107e){const _0x134cc9=_0x26db4b;return _0x37de88==null||_0x37de88===''?this[_0x134cc9(0xd3)](_0x50107e):String(_0x37de88);}[_0x26db4b(0x106)](_0x22e821){const _0x3298f4=_0x26db4b;return this[_0x3298f4(0x253)][_0x22e821];}['addCollection'](_0x4a7e68,_0x195402,_0x5efa87,_0x4840b5){const _0x1d436b=_0x26db4b;this[_0x1d436b(0x253)][_0x4a7e68]=_0x195402,_0x195402[_0x1d436b(0x1a1)](_0x5efa87),this[_0x1d436b(0x1fb)][_0x1d436b(0xf4)]({'token':_0x4a7e68,'type':ke['add'],'dataRangeInfo':_0x5efa87,'targetCellInfo':_0x4840b5});}[_0x26db4b(0x25e)](_0x21327c,_0x6b3e3b){const _0x74c894=_0x26db4b,_0x25088d=this['getCollection'](_0x21327c),_0x16a006=_0x25088d[_0x74c894(0x2f3)]();let _0x187bb4=0x0;for(const _0x516332 of _0x16a006){const _0xa8dd90=_0x25088d[_0x74c894(0x1da)](_0x516332),_0x182de0=this[_0x74c894(0x1f0)](_0x6b3e3b,_0x187bb4);this[_0x74c894(0x16b)](_0xa8dd90[_0x74c894(0x22b)],_0x182de0),_0x187bb4++;}}['getPivotDirtyViewInfo'](){return{'runtimeCellData':{},'dirtyRanges':{}};}['getUpdateRangeDeleteIds'](_0x46c09d,_0x37155f){const _0x255f01=_0x26db4b;if(this[_0x255f01(0x106)](_0x46c09d)){const _0xa539ad=this['getRangeKeyList'](_0x37155f),_0x413470=[];for(const _0x54ab7a of _0xa539ad)this['rangeKeyMap'][_0x54ab7a]!==void 0x0&&_0x413470[_0x255f01(0xe8)](this[_0x255f01(0x142)][_0x54ab7a]);const _0x46d0f0=this[_0x255f01(0x2d0)](_0x46c09d),_0x4e6d95=[],_0x47b314=new Set(_0x413470);for(const _0x4c44b8 of _0x46d0f0)_0x47b314[_0x255f01(0x18a)](_0x4c44b8)||_0x4e6d95['push'](_0x4c44b8);return _0x4e6d95;}}['getMatrixValue'](_0x23b64a,_0x1a4f16,_0x42ca67,_0x1836d8,_0x2ec15e){const _0x3dc616=_0x26db4b;return _0x1a4f16&&_0x1a4f16[_0x3dc616(0xdc)](_0x1836d8,_0x2ec15e)?_0x1a4f16[_0x3dc616(0xdc)](_0x1836d8,_0x2ec15e):_0x42ca67&&_0x42ca67[_0x3dc616(0xdc)](_0x1836d8,_0x2ec15e)?_0x42ca67[_0x3dc616(0xdc)](_0x1836d8,_0x2ec15e):_0x23b64a[_0x3dc616(0xdc)](_0x1836d8,_0x2ec15e);}[_0x26db4b(0x194)](_0x55afa1,_0x1ffae3,_0x37b82e,_0x492c7e){const _0x5d46fb=_0x26db4b,_0x11da0a=this[_0x5d46fb(0xd9)][_0x55afa1];if(!_0x11da0a)return;const {subUnitId:_0x375f93,range:_0x543aa0,unitId:_0xc84a04}=_0x1ffae3,_0xead037=this[_0x5d46fb(0x2e9)][_0x5d46fb(0xdb)](_0xc84a04);if(!_0xead037){console[_0x5d46fb(0x30c)](_0x5d46fb(0x2e0));return;}const _0x137141=_0xead037[_0x5d46fb(0x117)](_0x375f93),_0x30f5e3=_0x137141[_0x5d46fb(0x2ca)](),{arrayFormulaCellDataMatrix:_0x2ecea9,unitDataMatrix:_0x359cc6}=_0x492c7e||{},{startRow:_0x555b5a,startColumn:_0x436b57,endRow:_0x26947d}=this[_0x5d46fb(0x299)](_0x543aa0,_0x137141);_0x11da0a[_0x5d46fb(0xe1)]();const _0x4ad681=_0xead037[_0x5d46fb(0x1ec)](),_0x58b26e={},_0x3e5c0c=this['getMatrixValue'](_0x30f5e3,_0x2ecea9,_0x359cc6,_0x555b5a,_0x436b57+_0x37b82e);let _0x422066=this['adjustSheetCellData'](_0x3e5c0c,_0x4ad681,_0x58b26e);_0x2eb692(_0x422066)&&(_0x422066=_0x4088d7['format'](_0x422066['f'],Number(_0x422066['v'])));const _0x107562=this[_0x5d46fb(0x2fc)](_0x422066,_0x436b57+_0x37b82e);_0x11da0a[_0x5d46fb(0x169)](_0x107562);for(let _0x8493be=_0x555b5a+0x1;_0x8493be<=_0x26947d;_0x8493be++){const _0x22dc2c=this[_0x5d46fb(0x293)](_0x30f5e3,_0x2ecea9,_0x359cc6,_0x8493be,_0x436b57+_0x37b82e);_0x11da0a[_0x5d46fb(0xd6)](this[_0x5d46fb(0x298)](_0x22dc2c,_0x4ad681,_0x58b26e),_0x8493be-0x1-_0x555b5a);}}[_0x26db4b(0x274)](_0x2c85f7,_0x481430,_0x8d12cf){const _0x280c5e=_0x26db4b,{subUnitId:_0x404225,range:_0x4c91cb,unitId:_0x4bc1c4}=_0x8d12cf,_0x3360cf=this['_univerInstanceService']['getUnit'](_0x4bc1c4);if(!_0x3360cf){console[_0x280c5e(0x30c)](_0x280c5e(0x2e0));return;}const _0x1a3030=_0x3360cf[_0x280c5e(0x117)](_0x404225),_0xb67b22=_0x1a3030['getCellMatrix'](),{startRow:_0x4da138,startColumn:_0x58a27e,endRow:_0x3f2fa6}=this[_0x280c5e(0x299)](_0x4c91cb,_0x1a3030),_0x5eb54d=_0x3360cf['getStyles'](),_0x13156d={};for(const {dataField:_0x58d3eb,index:_0x2f6a72}of _0x481430){_0x58d3eb['reset']();const _0x415fbb=this[_0x280c5e(0x293)](_0xb67b22,void 0x0,void 0x0,_0x4da138,_0x58a27e+_0x2f6a72);let _0x143c35=this[_0x280c5e(0x298)](_0x415fbb,_0x5eb54d,_0x13156d);_0x2eb692(_0x143c35)&&(_0x143c35=_0x4088d7['format'](_0x143c35['f'],Number(_0x143c35['v'])));const _0x4d31a3=this[_0x280c5e(0x2fc)](_0x143c35,_0x58a27e+_0x2f6a72);_0x58d3eb['setName'](_0x4d31a3);}_0x2c85f7[_0x280c5e(0x2dd)]();for(let _0x4c3f3e=_0x4da138+0x1;_0x4c3f3e<=_0x3f2fa6;_0x4c3f3e++)for(const {index:_0xfd3f3b,dataField:_0x470b24}of _0x481430){const _0x346640=_0xb67b22[_0x280c5e(0xdc)](_0x4c3f3e,_0x58a27e+_0xfd3f3b);_0x470b24[_0x280c5e(0xd6)](this['adjustSheetCellData'](_0x346640,_0x5eb54d,_0x13156d),_0x4c3f3e-0x1-_0x4da138);}_0x2c85f7[_0x280c5e(0x107)](_0x3f2fa6-_0x4da138);}['getRangeKeyList'](_0x42826d){const _0x35c4c4=_0x26db4b,{range:_0x1412a0}=_0x42826d,{startColumn:_0x12522c,endColumn:_0x3d0bd5}=_0x1412a0,_0x63f4e4=[];for(let _0x9a1139=_0x12522c;_0x9a1139<=_0x3d0bd5;_0x9a1139++)_0x63f4e4['push'](this[_0x35c4c4(0x1f0)](_0x42826d,_0x9a1139));return _0x63f4e4;}[_0x26db4b(0x298)](_0x4ffcc9,_0x16ca90,_0x516698){const _0x47824e=_0x26db4b;if(_0x4ffcc9){const {s:_0x38211e,v:_0x3171aa,t:_0x531e02,p:_0x4af3a3}=_0x4ffcc9;if(_0x4af3a3)return wi(_0x4af3a3);const _0x4dbec0=_0x16ca90[_0x47824e(0x15d)](_0x38211e);if(_0x4dbec0&&_0x531e02===_0x151898[_0x47824e(0xe0)]&&_0x4dbec0['n']){const {pattern:_0x485715}=_0x4dbec0['n'];_0x516698[_0x485715]||(_0x516698[_0x485715]=_0x4088d7[_0x47824e(0x32f)](_0x485715));const _0x40abee=_0x516698[_0x485715],_0x3776b5=_0x40abee[_0x47824e(0x29b)];if(_0x40abee[_0x47824e(0x2cc)])return String(_0x3171aa);if(_0x3776b5)return{'v':_0x3171aa,'f':_0x485715};}if(_0x531e02===_0x151898[_0x47824e(0xe0)])return Number(_0x3171aa);if(_0x531e02===_0x151898[_0x47824e(0x164)]||_0x531e02===_0x151898[_0x47824e(0x203)])return String(_0x3171aa);if(_0x531e02===void 0x0){const _0x2eeacf=Number(_0x3171aa);if(!Number[_0x47824e(0x1b4)](_0x2eeacf)&&String(_0x2eeacf)===_0x3171aa)return _0x2eeacf;}return _0x3171aa!=null?_0x3171aa:null;}else return null;}[_0x26db4b(0x323)](_0x39a450){const _0x32ce9f=_0x26db4b,{sheetName:_0x5e8702,range:_0x17f035,unitId:_0x3b9edb}=_0x39a450,_0x14ff23=this['_univerInstanceService'][_0x32ce9f(0xdb)](_0x3b9edb);if(!_0x14ff23)return console['error'](_0x32ce9f(0x2e0)),{'header':[],'data':[]};const _0x299e12=_0x14ff23['getSheetBySheetName'](_0x5e8702),_0x391a37=_0x299e12['getCellMatrix'](),{startRow:_0xb9d23e,startColumn:_0x2d5b04,endRow:_0x393d79,endColumn:_0x2bc247}=this[_0x32ce9f(0x299)](_0x17f035,_0x299e12),_0x536ac6=_0x14ff23[_0x32ce9f(0x1ec)](),_0x4a52af=[],_0x308d59=[],_0x4eb580={};for(let _0x537f1b=_0xb9d23e;_0x537f1b<=_0x393d79;_0x537f1b++){const _0x41a204=[];for(let _0x3b4bba=_0x2d5b04;_0x3b4bba<=_0x2bc247;_0x3b4bba++){const _0x3eb4d1=_0x391a37[_0x32ce9f(0xdc)](_0x537f1b,_0x3b4bba);_0x537f1b===_0xb9d23e?_0x4a52af['push'](_0x3eb4d1==null?null:String(_0x3eb4d1['v'])):_0x41a204[_0x32ce9f(0xe8)](this[_0x32ce9f(0x298)](_0x3eb4d1,_0x536ac6,_0x4eb580));}_0x308d59[_0x32ce9f(0xe8)](_0x41a204);}return{'header':_0x4a52af,'data':_0x308d59};}[_0x26db4b(0xfd)](){return super['toJSON']();}['fromJSON'](_0x167032){const _0x58c4cc=_0x26db4b;super[_0x58c4cc(0x28e)](_0x167032),this[_0x58c4cc(0x20e)]();}['dispose'](){const _0x3c0882=_0x26db4b;super[_0x3c0882(0x2b9)](),this['rangeKeyMap']={},this[_0x3c0882(0x1fb)]=null;}}const Fi=_0x6794d3=>{const _0x10de08=_0x26db4b,{targetCellInfo:_0x40c4da}=_0x6794d3,{matrixCache:_0x5097d5,rangesCache:_0xd0335c}=Jo({'filter':_0x10de08(0x256),'row':_0x10de08(0x13f),'column':'Column','values':_0x10de08(0x1bc)},_0x40c4da),_0x125d70=new _0xbef08f();return _0x5097d5['forValue']((_0x5c5953,_0x5ea22e,_0x9818d2)=>{_0x125d70['setValue'](_0x5c5953,_0x5ea22e,_0x9818d2);}),{'matrix':_0x125d70,'rangesCache':_0xd0335c};},st=_0x52b300=>{const _0x14e3a7=_0x26db4b;let _0x4a25b9;if(_0x52b300!=null&&_0x52b300['v']||(_0x52b300==null?void 0x0:_0x52b300['v'])===0x0){_0x4a25b9||(_0x4a25b9={});const _0x32ee46=Bo(_0x52b300['v']);typeof _0x32ee46==_0x14e3a7(0xcc)?_0x4a25b9['t']=_0x151898[_0x14e3a7(0xe0)]:typeof _0x32ee46==_0x14e3a7(0x2cf)&&(_0x4a25b9['t']=_0x151898[_0x14e3a7(0x164)]),_0x4a25b9['v']=_0x32ee46;}return _0x4a25b9;},Ri=(_0x4343df,_0xf860a9,_0x33ba0c)=>{const _0x530174=_0x26db4b;var _0x12253b,_0x310da2,_0x39d9d1,_0x512620,_0x1f52d5,_0x469676,_0x399c93,_0x540e09,_0x3d202d,_0x4a117b,_0xb597a7,_0x5e0c74;const {cornerView:_0x1308c3,rowView:_0x2eb581,colView:_0x5d3d4c,dataView:_0x5355e1,pageView:_0xa37ce0,formatMap:_0x89f22b}=_0x4343df,{row:_0x3eab38,col:_0x5e9367}=_0xf860a9,_0x195a00=new _0xbef08f();let _0x433892=_0x3eab38,_0x12a727=_0x5e9367;Object['keys'](_0xa37ce0['data'])[_0x530174(0x2ab)](_0x125ac7=>{const _0x3ee239=_0x530174;Object[_0x3ee239(0x301)](_0xa37ce0[_0x3ee239(0x1bd)][Number(_0x125ac7)])[_0x3ee239(0x2ab)](_0x2c3b0f=>{const _0x53faf9=_0x3ee239,_0x26b3f0={..._0xa37ce0[_0x53faf9(0x1bd)][Number(_0x125ac7)][Number(_0x2c3b0f)]};_0x195a00[_0x53faf9(0x237)](Number(_0x125ac7)+_0x433892,Number(_0x2c3b0f)+_0x12a727,st(_0x26b3f0));});});const _0x59a898=Object[_0x530174(0x301)](_0xa37ce0['data'])[_0x530174(0x20c)];_0x433892+=_0x59a898+(_0x59a898?It:0x0);const _0xc1ad50=_0x1308c3[_0x530174(0x1be)](),_0x1e88bb=_0x1308c3['getColCount']();for(let _0x37fc49=0x0;_0x37fc49<_0xc1ad50;_0x37fc49++)for(let _0x52f28b=0x0;_0x52f28b<_0x1e88bb;_0x52f28b++){const _0x1d8f10={...(_0x310da2=(_0x12253b=_0x1308c3[_0x530174(0x1bd)])==null?void 0x0:_0x12253b[_0x37fc49])==null?void 0x0:_0x310da2[_0x52f28b]};_0x1d8f10&&((_0x39d9d1=_0x2eb581[_0x530174(0x27b)][_0x52f28b])!=null&&_0x39d9d1[_0x530174(0x25a)])&&_0x52f28b===_0x1e88bb-0x1&&_0x37fc49===_0xc1ad50-0x1&&(_0x1d8f10['v']=''+_0x33ba0c[_0x530174(0x32a)]),_0x195a00[_0x530174(0x237)](_0x37fc49+_0x433892,_0x52f28b+_0x12a727,st(_0x1d8f10));}_0x12a727+=_0x1e88bb;const _0x427919=_0x5d3d4c[_0x530174(0x27b)],_0x5f4979=_0x5d3d4c[_0x530174(0x220)]()>=0x0?_0x5d3d4c['getLastRow']()+0x1:0x0,_0x350166=_0x5d3d4c[_0x530174(0x23d)]()>=0x0?_0x5d3d4c[_0x530174(0x23d)]()+0x1:0x0;for(let _0x464daf=0x0;_0x464daf<_0x350166;_0x464daf++)for(let _0x421b0e=0x0;_0x421b0e<_0x5f4979;_0x421b0e++){const _0x22564e={...(_0x1f52d5=(_0x512620=_0x5d3d4c[_0x530174(0x1bd)])==null?void 0x0:_0x512620[_0x464daf])==null?void 0x0:_0x1f52d5[_0x421b0e]},_0x4ca1b3=(_0x469676=_0x427919[_0x464daf])==null?void 0x0:_0x469676[_0x530174(0x32e)],_0x5c2023=_0x89f22b[_0x4ca1b3];_0x22564e&&(_0x22564e['v']=vt(_0x22564e,_0x464daf===0x0&&((_0x399c93=_0x5d3d4c[_0x530174(0x23b)](_0x421b0e+0x1))==null?void 0x0:_0x399c93['isValue']),_0x5c2023,_0x33ba0c)),_0x195a00[_0x530174(0x237)](_0x464daf+_0x433892,_0x421b0e+_0x12a727,st(_0x22564e));}_0x433892+=_0xc1ad50;const _0x2932f7=_0x2eb581['headerMap'],_0x2d6b5a=_0x2eb581[_0x530174(0x220)]()>=0x0?_0x2eb581[_0x530174(0x220)]()+0x1:0x0,_0x5ef9bd=_0x2eb581['getLastCol']()>=0x0?_0x2eb581[_0x530174(0x23d)]()+0x1:0x0;for(let _0xf1b812=0x0;_0xf1b812<_0x2d6b5a;_0xf1b812++)for(let _0x18ec3d=0x0;_0x18ec3d<_0x5ef9bd;_0x18ec3d++){const _0x223374={...(_0x3d202d=(_0x540e09=_0x2eb581[_0x530174(0x1bd)])==null?void 0x0:_0x540e09[_0xf1b812])==null?void 0x0:_0x3d202d[_0x18ec3d]},_0x37cb5b=(_0x4a117b=_0x2932f7[_0x18ec3d])==null?void 0x0:_0x4a117b[_0x530174(0x32e)],_0x277634=_0x89f22b[_0x37cb5b];_0x223374&&(_0x223374['v']=vt(_0x223374,!0x1,_0x277634,_0x33ba0c)),_0x195a00['setValue'](_0xf1b812+_0x433892,_0x18ec3d+_0x5e9367,st(_0x223374));}const _0x1be5db=_0x5355e1[_0x530174(0x1be)](),_0x15c062=_0x5355e1[_0x530174(0x244)]();for(let _0x3f7c7a=0x0;_0x3f7c7a<_0x1be5db;_0x3f7c7a++)for(let _0x23b993=0x0;_0x23b993<_0x15c062;_0x23b993++){const _0x3bf9cc={...(_0x5e0c74=(_0xb597a7=_0x5355e1[_0x530174(0x1bd)])==null?void 0x0:_0xb597a7[_0x3f7c7a])==null?void 0x0:_0x5e0c74[_0x23b993]};_0x195a00['setValue'](_0x3f7c7a+_0x433892,_0x23b993+_0x12a727,st(_0x3bf9cc));}return _0x195a00;},Di=_0x3269ef=>{const _0x57b5ce=_0x26db4b,{view:_0x7887dc,targetCellInfo:_0x502eba,isEmpty:_0x5148b0,textInfo:_0x391312}=_0x3269ef;if(_0x5148b0)return Fi(_0x3269ef);const {pageView:_0x15b2b7,cornerView:_0x1a72e4,rowView:_0x38d9cc,colView:_0x737857,dataView:_0x547b6b}=_0x7887dc,_0x3173af=ge(_0x502eba,_0x15b2b7,!0x0),_0x3cceec=_0x15b2b7[_0x57b5ce(0xed)]>=0x0?_0x15b2b7[_0x57b5ce(0xed)]+0x1:0x0,_0x585942=_0x1a72e4[_0x57b5ce(0x1be)](),_0x4c2141=_0x1a72e4[_0x57b5ce(0x244)](),_0x40248a=_0x3173af[_0x57b5ce(0x20c)]>0x0?It:0x0,_0x5ca1cb=ge({'row':_0x502eba['row']+_0x3cceec+_0x40248a,'col':_0x502eba[_0x57b5ce(0x2be)]},_0x1a72e4,!0x1,!0x1),_0x3ade7c=ge({'row':_0x502eba['row']+_0x3cceec+_0x40248a+_0x585942,'col':_0x502eba[_0x57b5ce(0x2be)]},_0x38d9cc,!0x1,!0x0),_0x3218da=ge({'row':_0x502eba['row']+_0x3cceec+_0x40248a,'col':_0x502eba[_0x57b5ce(0x2be)]+_0x4c2141},_0x737857,!0x1,!0x0),_0xcf42e4=ge({'row':_0x502eba['row']+_0x3cceec+_0x40248a+_0x585942,'col':_0x502eba['col']+_0x4c2141},_0x547b6b,!0x1,!0x1),_0x162043={'rowRanges':_0x3ade7c,'colRanges':_0x3218da,'cornerRanges':_0x5ca1cb,'dataRanges':_0xcf42e4,'pageRanges':_0x3173af};return{'matrix':Ri(_0x7887dc,_0x502eba,_0x391312),'rangesCache':_0x162043};};var Ni=Object[_0x26db4b(0x137)],Ui=(_0x2c7e7b,_0x8bf425,_0x4b69aa,_0x2b7339)=>{const _0x799a28=_0x26db4b;for(var _0x142813=_0x2b7339>0x1?void 0x0:_0x2b7339?Ni(_0x8bf425,_0x4b69aa):_0x8bf425,_0x1d826f=_0x2c7e7b[_0x799a28(0x20c)]-0x1,_0x31950f;_0x1d826f>=0x0;_0x1d826f--)(_0x31950f=_0x2c7e7b[_0x1d826f])&&(_0x142813=_0x31950f(_0x142813)||_0x142813);return _0x142813;},Ge=(_0x2832ce,_0x4692cd)=>(_0x3d57d0,_0x38b20b)=>_0x4692cd(_0x3d57d0,_0x38b20b,_0x2832ce);let H=class extends _0x37fbd9{constructor(_0x220022,_0x29c50b,_0x1de5bd,_0x7b156c,_0x2acd39,_0x1ebd08){const _0x1f00cb=_0x26db4b;super(),V(this,'_model',new Map()),V(this,'_pivotTableInstanceCache',new Map()),V(this,'_viewData',new Map()),V(this,_0x1f00cb(0x18b)),V(this,'_collectionChange$',new _0x20945a()),V(this,'collectionChange$',this[_0x1f00cb(0x1a9)][_0x1f00cb(0x306)]()),V(this,_0x1f00cb(0x282),new _0x20945a()),V(this,_0x1f00cb(0x27a),this[_0x1f00cb(0x282)][_0x1f00cb(0x306)]()),V(this,'_fieldsCollectionChange$',new _0x20945a()),V(this,'fieldsCollectionChange$',this[_0x1f00cb(0x183)][_0x1f00cb(0x306)]()),V(this,_0x1f00cb(0x2fd),new Map()),V(this,_0x1f00cb(0x2df),[]),V(this,_0x1f00cb(0x27d),new Map()),(this[_0x1f00cb(0x211)]=_0x220022,this[_0x1f00cb(0x2e9)]=_0x29c50b,this[_0x1f00cb(0x330)]=_0x1de5bd,this[_0x1f00cb(0x226)]=_0x7b156c,this[_0x1f00cb(0x1fd)]=_0x2acd39,this[_0x1f00cb(0x18f)]=_0x1ebd08,this[_0x1f00cb(0x332)]());}[_0x26db4b(0x18c)](){const _0x4d1045=_0x26db4b;return this[_0x4d1045(0x18b)]?this['_textInfo']:Mi;}[_0x26db4b(0x204)](_0x3ad9f2){const _0x5ab1ef=_0x26db4b;this[_0x5ab1ef(0x18b)]=_0x3ad9f2;}['handleMoveRange'](_0x4d91d7){const _0x570c96=_0x26db4b;var _0x5b6f09;const {from:_0x199cef,to:_0x1c8144,unitId:_0x465699,fromRange:_0x3aeff3,toRange:_0xb2f8ad}=_0x4d91d7;if(_0x199cef&&_0x1c8144){const _0x338308=this[_0x570c96(0x30e)](_0x465699),_0x336a9b=this['_model'][_0x570c96(0x15d)](_0x465699),_0x57887e=(_0x5b6f09=this[_0x570c96(0x2e9)][_0x570c96(0xdb)](_0x465699))==null?void 0x0:_0x5b6f09['getSheetBySheetId'](_0x1c8144['subUnitId']);if(!_0x336a9b||!_0x57887e)return;const _0x1dd2a6=_0x57887e==null?void 0x0:_0x57887e[_0x570c96(0x154)]();for(const [_0x486439,_0x2b4b30]of _0x336a9b[_0x570c96(0xea)]())for(const [_0x35c03d,_0x50362e]of _0x2b4b30['entries']()){const {sourceRangeInfo:_0x588c42}=_0x50362e;if(_0x588c42[_0x570c96(0x17c)]===_0x465699&&_0x588c42[_0x570c96(0x19b)]===_0x199cef['subUnitId']&&_0x4d6abc['contains'](_0x3aeff3,_0x588c42[_0x570c96(0xec)])){const _0x372402={'row':_0x588c42['range'][_0x570c96(0x15f)]-_0x3aeff3['startRow'],'col':_0x588c42[_0x570c96(0xec)][_0x570c96(0x148)]-_0x3aeff3[_0x570c96(0x148)]},_0x16d2ba={'unitId':_0x465699,'subUnitId':_0x1c8144[_0x570c96(0x19b)],'sheetName':_0x1dd2a6,'range':{'startRow':_0xb2f8ad[_0x570c96(0x15f)]+_0x372402['row'],'endRow':_0xb2f8ad[_0x570c96(0x15f)]+_0x372402['row']+_0x588c42['range'][_0x570c96(0x234)]-_0x588c42[_0x570c96(0xec)][_0x570c96(0x15f)],'startColumn':_0xb2f8ad[_0x570c96(0x148)]+_0x372402['col'],'endColumn':_0xb2f8ad[_0x570c96(0x148)]+_0x372402[_0x570c96(0x2be)]+_0x588c42[_0x570c96(0xec)][_0x570c96(0x187)]-_0x588c42[_0x570c96(0xec)][_0x570c96(0x148)]}};_0x338308[_0x570c96(0x25e)](_0x35c03d,_0x16d2ba);const _0xc011bd={..._0x50362e,'sourceRangeInfo':_0x16d2ba};this['_updateModelCache'](_0x465699,_0x1c8144[_0x570c96(0x19b)],_0x35c03d,_0xc011bd),this[_0x570c96(0xf4)]({'unitId':_0x465699,'token':_0x35c03d,'type':ke[_0x570c96(0x135)],'oldSourceRangeInfo':_0x588c42,'dataRangeInfo':_0x16d2ba,'targetCellInfo':_0x50362e['targetCellInfo']}),this[_0x570c96(0x1b0)]({'unitId':_0x465699,'subUnitId':_0x1c8144['subUnitId'],'oldSubUnitId':_0x486439,'pivotTableId':_0x35c03d,'pivotTableConfig':_0xc011bd,'collectionConfig':_0x338308[_0x570c96(0xfd)]()});}}}}[_0x26db4b(0xf4)](_0x5035c9){const _0x2df021=_0x26db4b;this[_0x2df021(0x1a9)][_0x2df021(0x2a8)](_0x5035c9);}['getDataFieldManager'](_0x2f2b3e){const _0x11ff30=_0x26db4b;let _0x1c42a2=this[_0x11ff30(0x2fd)][_0x11ff30(0x15d)](_0x2f2b3e);return _0x1c42a2||(_0x1c42a2=new _i(this,this['_univerInstanceService']),this['_dataFieldManagerCollection'][_0x11ff30(0x210)](_0x2f2b3e,_0x1c42a2)),_0x1c42a2;}[_0x26db4b(0x106)](_0x22156c,_0x30a1c5){const _0x274d23=_0x26db4b;return this[_0x274d23(0x30e)](_0x22156c)['collections'][_0x30a1c5];}['getUpdateRangeDeleteIds'](_0x5de187,_0x9a7226,_0x337f9b){const _0x416f1a=_0x26db4b;return this[_0x416f1a(0x30e)](_0x5de187)['getUpdateRangeDeleteIds'](_0x9a7226,_0x337f9b);}['_ensurePivotMap'](_0x331c8c,_0x163b91){const _0x611b18=_0x26db4b;let _0x3c5e21=this[_0x611b18(0x31d)][_0x611b18(0x15d)](_0x331c8c);_0x3c5e21||(_0x3c5e21=new Map(),this[_0x611b18(0x31d)][_0x611b18(0x210)](_0x331c8c,_0x3c5e21));let _0x4454ba=_0x3c5e21[_0x611b18(0x15d)](_0x163b91);return _0x4454ba||(_0x4454ba=new Map(),_0x3c5e21[_0x611b18(0x210)](_0x163b91,_0x4454ba)),_0x4454ba;}[_0x26db4b(0x133)](_0x5c7885,_0x474fea,_0x41ff00,_0x40980f){const _0x50f076=_0x26db4b;this[_0x50f076(0x1a4)](_0x5c7885,_0x474fea)[_0x50f076(0x210)](_0x41ff00,_0x40980f);}[_0x26db4b(0x31b)](_0x30f772,_0x3cef50,_0x3e5da1){const _0x2d0b2e=_0x26db4b;var _0x2fd963,_0x10370b,_0x1391b0,_0xc3ec43;((_0x10370b=(_0x2fd963=this[_0x2d0b2e(0x31d)][_0x2d0b2e(0x15d)](_0x30f772))==null?void 0x0:_0x2fd963[_0x2d0b2e(0x15d)](_0x3cef50))==null?void 0x0:_0x10370b[_0x2d0b2e(0x15d)](_0x3e5da1))&&((_0xc3ec43=(_0x1391b0=this[_0x2d0b2e(0x31d)][_0x2d0b2e(0x15d)](_0x30f772))==null?void 0x0:_0x1391b0['get'](_0x3cef50))==null||_0xc3ec43[_0x2d0b2e(0x21b)](_0x3e5da1));}[_0x26db4b(0x191)](_0x12e511,_0x99d853){const _0x35285a=_0x26db4b;this[_0x35285a(0x2d1)][_0x35285a(0x210)](_0x12e511,_0x99d853);}[_0x26db4b(0x219)](_0xa17b3a){const _0x2b21aa=_0x26db4b;this[_0x2b21aa(0x2d1)][_0x2b21aa(0x21b)](_0xa17b3a);}['_ensureViewDataMap'](_0x2b8aa4,_0x4fb6e2){const _0x2d323f=_0x26db4b;let _0x42c5b9=this['_viewData'][_0x2d323f(0x15d)](_0x2b8aa4);_0x42c5b9||(_0x42c5b9=new Map(),this['_viewData'][_0x2d323f(0x210)](_0x2b8aa4,_0x42c5b9));let _0x1d8d6b=_0x42c5b9[_0x2d323f(0x15d)](_0x4fb6e2);return _0x1d8d6b||(_0x1d8d6b=new Map(),_0x42c5b9[_0x2d323f(0x210)](_0x4fb6e2,_0x1d8d6b)),_0x1d8d6b;}['updateConfig'](_0x3c33d8){const _0xc43523=_0x26db4b,{unitId:_0x551e0e,subUnitId:_0x2f470c,pivotTableId:_0x428014,pivotTableConfig:_0x392b07,collectionConfig:_0x11bd67}=_0x3c33d8,_0x6ce56a={'unitId':_0x551e0e,'subUnitId':_0x2f470c,'oldSubUnitId':_0x2f470c,'pivotTableId':_0x428014,'pivotTableConfig':_0x392b07,'collectionConfig':_0x11bd67};this[_0xc43523(0x1fd)][_0xc43523(0x22a)](co['id'],_0x6ce56a,{'onlyLocal':!0x0});}['updateView'](_0x283c59,_0x2bba88,_0x21a745,_0x3412a3,_0x1c8d9a,_0x5d8abf,_0x1ee8e0,_0x4bb10b=!0x1){const _0x379958=_0x26db4b;var _0x24fda7;this['_commandService'][_0x379958(0x22a)](Dt['id'],{'single':{'unitId':_0x283c59,'subUnitId':_0x2bba88,'type':_0x21a745,'pivotTableId':_0x3412a3,'view':_0x1c8d9a,'pivotConfig':_0x5d8abf},'collectionConfig':{[_0x283c59]:_0x1ee8e0}},{'onlyLocal':!0x0});const _0x27e978=!!((_0x24fda7=this[_0x379958(0x28c)](_0x3412a3))!=null&&_0x24fda7['isEmpty']()),_0x3875c1=this[_0x379958(0x13b)](_0x283c59,_0x2bba88,_0x3412a3);_0x3875c1&&this[_0x379958(0x2fe)]({'view':_0x1c8d9a,'pivotTableId':_0x3412a3,'textInfo':this['getTextInfo'](),'isEmpty':_0x27e978,'targetCellInfo':_0x3875c1[_0x379958(0x20b)]},_0x4bb10b);}[_0x26db4b(0x2fe)](_0x1dc1b3,_0x244c36){const _0x3d69fc=_0x26db4b,{targetCellInfo:_0x304f56,pivotTableId:_0xa661c1}=_0x1dc1b3,{unitId:_0x564688,subUnitId:_0x342474}=_0x304f56,_0x77d0a6=this[_0x3d69fc(0x2e6)](_0x564688,_0x342474),_0x1c4353=_0x77d0a6[_0x3d69fc(0x15d)](_0xa661c1);let _0x498951,_0x4fe26f;_0x1c4353&&(_0x498951=_0x1c4353[_0x3d69fc(0x21f)],_0x4fe26f=_0x1c4353[_0x3d69fc(0xfc)]);const {rangesCache:_0x258bfc,matrix:_0x26839f}=Di(_0x1dc1b3);_0x77d0a6[_0x3d69fc(0x210)](_0xa661c1,{'rangeCache':_0x258bfc,'matrix':_0x26839f,'oldMatrix':_0x4fe26f,'oldRangeCache':_0x498951}),_0x244c36||this[_0x3d69fc(0x282)][_0x3d69fc(0x2a8)]({'unitId':_0x564688,'subUnitId':_0x342474,'pivotTableId':_0xa661c1});}[_0x26db4b(0x249)](_0x2ad3de,_0x536250,_0x24ad88,_0x2f647e,_0x568f58){const _0x360e4b=_0x26db4b;this[_0x360e4b(0x133)](_0x2ad3de,_0x536250,_0x24ad88,_0x568f58),this[_0x360e4b(0x191)](_0x24ad88,_0x2f647e);}[_0x26db4b(0x105)](_0x2c4775,_0xdbe34f,_0x2faa95){const _0x33ace4=_0x26db4b,_0x25e513=this[_0x33ace4(0x30e)](_0x2c4775);_0x25e513[_0x33ace4(0x2d0)](_0x2faa95)[_0x33ace4(0x2ab)](_0x5b2ea9=>{const _0x31fb0c=_0x33ace4;_0x25e513[_0x31fb0c(0x1b9)](_0x5b2ea9);}),this[_0x33ace4(0x134)](_0x2c4775,_0x2faa95),this[_0x33ace4(0x31b)](_0x2c4775,_0xdbe34f,_0x2faa95),this[_0x33ace4(0x219)](_0x2faa95);}['setPivotTable'](_0x8691ff,_0x1abc8a,_0x4340d7,_0x758e2a){this['_updateModelCache'](_0x8691ff,_0x1abc8a,_0x4340d7,_0x758e2a);}[_0x26db4b(0x13b)](_0x437a17,_0x2af8d0,_0x5f5099){const _0x1bfa20=_0x26db4b;var _0x5f39a5,_0x4b3290;const _0x5496c2=(_0x4b3290=(_0x5f39a5=this[_0x1bfa20(0x31d)][_0x1bfa20(0x15d)](_0x437a17))==null?void 0x0:_0x5f39a5[_0x1bfa20(0x15d)](_0x2af8d0))==null?void 0x0:_0x4b3290['get'](_0x5f5099);if(_0x5496c2)return _0x5496c2;}[_0x26db4b(0xf7)](_0x225113,_0x213d26,_0x5415e4){const _0xff5a73=_0x26db4b;var _0x5df243,_0x711af5;const _0x173cea=(_0x711af5=(_0x5df243=this[_0xff5a73(0x31d)][_0xff5a73(0x15d)](_0x225113))==null?void 0x0:_0x5df243['get'](_0x213d26))==null?void 0x0:_0x711af5[_0xff5a73(0x15d)](_0x5415e4);if(_0x173cea)return _0x173cea[_0xff5a73(0x2d5)];}[_0x26db4b(0x28c)](_0x5b9f16){const _0x4058cc=_0x26db4b;return this[_0x4058cc(0x2d1)][_0x4058cc(0x15d)](_0x5b9f16);}['deleteUnitId'](_0x551ea2){const _0x121e59=_0x26db4b;this[_0x121e59(0x31d)]['delete'](_0x551ea2);const _0x6d600=this['_dataFieldManagerCollection'][_0x121e59(0x15d)](_0x551ea2);_0x6d600&&(_0x6d600['dispose'](),this[_0x121e59(0x2fd)][_0x121e59(0x21b)](_0x551ea2)),this[_0x121e59(0x163)][_0x121e59(0x21b)](_0x551ea2),this[_0x121e59(0x2df)][_0x121e59(0x2ab)](_0x1c591f=>{const _0x44d8ad=_0x121e59;_0x1c591f[_0x44d8ad(0x31c)](_0x551ea2);});}[_0x26db4b(0x2d6)](_0x16381a,_0x308c02,_0x592abe,_0x370ae0){const _0x2de561=_0x26db4b;return this[_0x2de561(0x30e)](_0x592abe[_0x2de561(0x17c)])['addCollectionByJSON'](_0x16381a,_0x308c02,_0x592abe,_0x370ae0);}[_0x26db4b(0x2c4)](_0x2c3c67){const _0x48c244=_0x26db4b;return this[_0x48c244(0x30e)](_0x2c3c67[_0x48c244(0x17c)])[_0x48c244(0x2c4)](_0x2c3c67);}[_0x26db4b(0x274)](_0x539739,_0xdb6e24,_0x22ad27){const _0x159743=_0x26db4b;this[_0x159743(0x30e)](_0x22ad27['unitId'])[_0x159743(0x274)](_0x539739,_0xdb6e24,_0x22ad27);}[_0x26db4b(0x147)](_0xf170bc,_0x10e66c){const _0x3b3204=_0x26db4b;this[_0x3b3204(0x30e)](_0xf170bc)[_0x3b3204(0x1b9)](_0x10e66c);}[_0x26db4b(0x134)](_0x5df025,_0x7c9f3e){const _0x3f8e8c=_0x26db4b;this[_0x3f8e8c(0x30e)](_0x5df025)[_0x3f8e8c(0x122)](_0x7c9f3e);}[_0x26db4b(0x126)](_0x2a168c,_0x42bf1b){const _0xbc7806=_0x26db4b;var _0x441dea;return(_0x441dea=this[_0xbc7806(0x31d)][_0xbc7806(0x15d)](_0x2a168c))==null?void 0x0:_0x441dea['get'](_0x42bf1b);}['getTargetByPivotId'](_0x3ad2d5){const _0x2598dd=_0x26db4b;for(const [_0x540b38,_0x1e7523]of this[_0x2598dd(0x31d)][_0x2598dd(0xea)]())for(const [_0x5e55f4,_0x2b8831]of _0x1e7523[_0x2598dd(0xea)]())if(_0x2b8831['has'](_0x3ad2d5))return{'unitId':_0x540b38,'subUnitId':_0x5e55f4};return null;}[_0x26db4b(0x15c)](_0x55409a,_0x1d065e,_0x4b525e,_0x59e938){const _0x4d6988=this['_ensureViewDataMap'](_0x55409a,_0x1d065e);_0x59e938?_0x4d6988['set'](_0x4b525e,_0x59e938):_0x4d6988['delete'](_0x4b525e),this['_viewData$']['next']({'unitId':_0x55409a,'subUnitId':_0x1d065e,'pivotTableId':_0x4b525e});}[_0x26db4b(0x2b9)](){const _0x5c4eb8=_0x26db4b;super[_0x5c4eb8(0x2b9)]();}[_0x26db4b(0x121)](_0x37921d,_0xaa1564,_0x2cead1){const _0x2fec85=_0x26db4b;var _0x162fbc,_0x167433;const _0x545c4b=(_0x167433=(_0x162fbc=this['_viewData'][_0x2fec85(0x15d)](_0x37921d))==null?void 0x0:_0x162fbc['get'](_0xaa1564))==null?void 0x0:_0x167433['get'](_0x2cead1);return _0x545c4b||null;}[_0x26db4b(0x1d3)](_0x35e526){const _0x461305=_0x26db4b;this[_0x461305(0x155)](_0x35e526);}[_0x26db4b(0x155)](_0x55fe49){const _0x138447=_0x26db4b,{token:_0x574bc5,unitId:_0x4e3671,subUnitId:_0x48f14a}=_0x55fe49,_0xc88f88=_0x4e3671+'-'+_0x48f14a+'-'+_0x574bc5;this[_0x138447(0x27d)][_0x138447(0x15d)](_0xc88f88)&&clearTimeout(this[_0x138447(0x27d)][_0x138447(0x15d)](_0xc88f88));const _0x68432=setTimeout(()=>{const _0x316b7e=_0x138447;this[_0x316b7e(0x184)](_0x55fe49),this['_queryingMap'][_0x316b7e(0x21b)](_0xc88f88);},Pi);this[_0x138447(0x27d)][_0x138447(0x210)](_0xc88f88,_0x68432);}['queryDirtyPivotTable'](_0x441727){const _0x28e3d2=_0x26db4b,{unitId:_0x5e20a5,subUnitId:_0x15a599,token:_0x3ea5b4,type:_0x8a1b02,pivotConfig:_0x18619e}=_0x441727,_0x509121=this[_0x28e3d2(0x28c)](_0x3ea5b4),_0xb2375c=_0x509121==null?void 0x0:_0x509121['query'](),_0x1a95ce=_0x18619e!=null?_0x18619e:this[_0x28e3d2(0x13b)](_0x5e20a5,_0x15a599,_0x3ea5b4);_0x1a95ce&&(_0x1a95ce[_0x28e3d2(0x26b)]=!!(_0x509121!=null&&_0x509121[_0x28e3d2(0x26b)]())),(_0xb2375c||_0x8a1b02===B[_0x28e3d2(0x230)])&&this[_0x28e3d2(0x290)](_0x5e20a5,_0x15a599,_0x8a1b02,_0x3ea5b4,_0xb2375c,_0x1a95ce,this['getDataFieldManager'](_0x5e20a5)[_0x28e3d2(0xfd)]());}[_0x26db4b(0xfd)](_0x1ccfba){const _0x59ab3b=_0x26db4b,_0x1787f5={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this['getDataFieldManager'](_0x1ccfba)&&(_0x1787f5[_0x59ab3b(0x17d)][_0x1ccfba]=this[_0x59ab3b(0x30e)](_0x1ccfba)['toJSON']()),this[_0x59ab3b(0x31d)][_0x59ab3b(0x15d)](_0x1ccfba)){_0x1787f5[_0x59ab3b(0x2ec)][_0x1ccfba]={};const _0x167742=this['_model'][_0x59ab3b(0x15d)](_0x1ccfba);_0x167742!=null&&_0x167742[_0x59ab3b(0x321)]&&[..._0x167742[_0x59ab3b(0x301)]()][_0x59ab3b(0x2ab)](_0x1c2505=>{const _0x27aa19=_0x59ab3b,_0x54d43d=_0x167742[_0x27aa19(0x15d)](_0x1c2505);_0x54d43d!=null&&_0x54d43d['size']&&(_0x1787f5[_0x27aa19(0x2ec)][_0x1ccfba][_0x1c2505]={},[..._0x54d43d[_0x27aa19(0x301)]()][_0x27aa19(0x2ab)](_0xb50f12=>{const _0x49720f=_0x27aa19,_0x4597d4=_0x54d43d[_0x49720f(0x15d)](_0xb50f12);_0x4597d4&&(_0x1787f5[_0x49720f(0x2ec)][_0x1ccfba][_0x1c2505][_0xb50f12]=_0x4597d4);}));});}return _0x1787f5;}[_0x26db4b(0x28e)](_0x11b525){const _0x2d88f1=_0x26db4b;var _0x55bfff;const {dataFieldManagerConfig:_0x3e2f09,pivotTableConfigs:_0x2dd96c}=_0x11b525;_0x3e2f09&&Object[_0x2d88f1(0x301)](_0x3e2f09)[_0x2d88f1(0x2ab)](_0x1edda0=>{const _0x5bf52b=_0x2d88f1;this[_0x5bf52b(0x30e)](_0x1edda0)[_0x5bf52b(0x28e)](_0x3e2f09[_0x1edda0]);});const _0x54dd8c=[];if(_0x2dd96c){const _0x59c2e4=(_0x55bfff=this[_0x2d88f1(0x211)]['get'](_0x355993)[_0x2d88f1(0x316)](_0x32f4a6))!=null?_0x55bfff:{},{ls:_0x2f662b,pbk:_0x54f48b}=_0x59c2e4,_0x55e78d=go(so,_0x2f662b,_0x54f48b)[_0x2d88f1(0x1db)];Object[_0x2d88f1(0x301)](_0x2dd96c)[_0x2d88f1(0x2ab)](_0x3bec6b=>{const _0x57f52c=_0x2d88f1;let _0x1499ee=0x0;const _0x56bad1=_0x2dd96c[_0x3bec6b];Object[_0x57f52c(0x301)](_0x56bad1)['forEach'](_0x15ed75=>{const _0x45226f=_0x57f52c,_0x292843=_0x56bad1[_0x15ed75];Object[_0x45226f(0x301)](_0x292843)[_0x45226f(0x2ab)](_0x558079=>{const _0x5e68b4=_0x45226f,_0xc3003f=_0x292843[_0x558079];if(_0xc3003f){if(_0x1499ee>=_0x55e78d)return;_0x1499ee++;const _0x58e396=this[_0x5e68b4(0x30e)](_0x3bec6b),_0x4e6aa0=_0x58e396[_0x5e68b4(0x253)][_0x558079],_0x1838c4=_0x4e6aa0['getFieldIds']();let _0x3ce83e=0x0;const _0x3d494f=[];for(const _0x57da99 of _0x1838c4){const _0x39f750=_0x4e6aa0[_0x5e68b4(0x1da)](_0x57da99);if(_0x30104a(_0x39f750)){const _0x3458f3=_0x39f750['getOriginFieldId'](),_0x43ec9e=_0x4e6aa0[_0x5e68b4(0x1da)](_0x3458f3);_0x43ec9e&&_0x3d494f['push']([_0x39f750,_0x43ec9e]);continue;}_0x58e396['refreshDataField'](_0x57da99,_0xc3003f['sourceRangeInfo'],_0x3ce83e),_0x3ce83e++;}_0x3d494f['forEach'](([_0x422e6d,_0x1f99ee])=>{const _0x100167=_0x5e68b4;_0x422e6d[_0x100167(0x1cc)](_0x1f99ee);});const _0x2e6862=new _0x4355b5(_0x4e6aa0);_0x2e6862[_0x5e68b4(0x28e)](_0xc3003f[_0x5e68b4(0x2d5)]),this[_0x5e68b4(0x249)](_0x3bec6b,_0x15ed75,_0x558079,_0x2e6862,_0xc3003f);const _0x4f80d0=_0x2e6862[_0x5e68b4(0x1f2)]();_0x54dd8c[_0x5e68b4(0xe8)]({'unitId':_0x3bec6b,'subUnitId':_0x15ed75,'pivotTableId':_0x558079,'view':_0x4f80d0[_0x5e68b4(0xfd)](),'pivotConfig':_0xc3003f,'type':B[_0x5e68b4(0x1e9)]});const _0x55d526=!!_0x2e6862[_0x5e68b4(0x26b)](),_0x2307fb={'view':_0x4f80d0,'pivotTableId':_0x558079,'textInfo':this[_0x5e68b4(0x18c)](),'isEmpty':_0x55d526,'targetCellInfo':_0xc3003f[_0x5e68b4(0x20b)]};this[_0x5e68b4(0x2fe)](_0x2307fb,!0x1);}});});});}_0x3e2f09&&Object['keys'](_0x3e2f09)['forEach'](_0x3f4373=>{const _0x2bbee1=_0x2d88f1,_0x450ac8=this[_0x2bbee1(0x30e)](_0x3f4373);this[_0x2bbee1(0x183)][_0x2bbee1(0x2a8)](_0x450ac8[_0x2bbee1(0x253)]);}),this[_0x2d88f1(0x1fd)][_0x2d88f1(0x22a)](Dt['id'],{'batch':_0x54dd8c,'collectionConfig':_0x3e2f09},{'onlyLocal':!0x0});}[_0x26db4b(0x332)](){const _0x5b69a9=_0x26db4b;this['disposeWithMe'](this[_0x5b69a9(0x18f)]['registerPluginResource']({'toJson':_0x34e6e2=>JSON['stringify'](this[_0x5b69a9(0xfd)](_0x34e6e2)),'parseJson':_0x5c921a=>{const _0x33e8eb=_0x5b69a9;if(!_0x5c921a)return{};try{return JSON[_0x33e8eb(0x269)](_0x5c921a);}catch{return{};}},'businesses':[_0x4aef6b[_0x5b69a9(0x1c5)]],'pluginName':ao,'onLoad':(_0x4b30d9,_0x3384a5)=>{const _0x5ec71c=_0x5b69a9;this[_0x5ec71c(0x28e)](_0x3384a5);},'onUnLoad':_0xa6a455=>{this['deleteUnitId'](_0xa6a455);}}));}};H=Ui([Ge(0x0,_0x58298c(_0x4e6692)),Ge(0x1,_0x399741),Ge(0x2,_0x58298c(_0x40d9c0)),Ge(0x3,_0x355993),Ge(0x4,_0x3f8860),Ge(0x5,_0x58298c(_0x4651de))],H);const Vi={0x0:{0x0:{'v':_0x26db4b(0xdf),'s':oe}},0x2:{0x1:{'v':'','s':oe},0x2:{'v':'','s':oe},0x3:{'v':_0x26db4b(0x239),'s':oe},0x4:{'v':'','s':oe},0x5:{'v':'','s':oe}},0x3:{0x0:{'v':'','s':oe},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0x4:{0x0:{'v':'','s':oe},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0x5:{0x0:{'v':'','s':oe},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0x6:{0x0:{'v':'','s':oe},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0x7:{0x0:{'v':'','s':oe},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0x8:{0x0:{'v':'row','s':oe},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':_0x26db4b(0x271),'s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0x9:{0x0:{'v':'','s':oe},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0xa:{0x0:{'v':'','s':oe},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0xb:{0x0:{'v':'','s':oe},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0xc:{0x0:{'v':'','s':oe},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0xd:{0x0:{'v':'','s':oe},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}}},kt={'rowRanges':[{'startRow':0x3,'endRow':0xd,'startColumn':0x0,'endColumn':0x0}],'colRanges':[{'startRow':0x2,'endRow':0x2,'startColumn':0x1,'endColumn':0x5}],'dataRanges':[{'startRow':0x3,'endRow':0xd,'startColumn':0x1,'endColumn':0x5}],'pageRanges':[{'startRow':0x0,'endRow':0x0,'startColumn':0x0,'endColumn':0x0}],'cornerRanges':[]},Jo=(_0x454630,_0x1a0cbc)=>{const _0xb0e5f2=_0x26db4b,_0x79e62e=new _0xbef08f(),_0x1be478=new _0xbef08f(Vi),{row:_0x3c46df,col:_0x13ca06}=_0x1a0cbc;_0x1be478['forValue']((_0x23bd65,_0x31ea4c,_0xcabb04)=>{const _0x5ecfcb=_0x1fae;let _0x379009='';_0xcabb04['v']===_0x5ecfcb(0xdf)?_0x379009=_0x454630['filter']:_0xcabb04['v']===_0x5ecfcb(0x198)?_0x379009=_0x454630[_0x5ecfcb(0x198)]:_0xcabb04['v']==='column'?_0x379009=_0x454630[_0x5ecfcb(0x239)]:_0xcabb04['v']==='values'&&(_0x379009=_0x454630[_0x5ecfcb(0x271)]),_0x79e62e[_0x5ecfcb(0x237)](_0x23bd65+_0x3c46df,_0x31ea4c+_0x13ca06,{..._0xcabb04,'v':_0x379009});});const _0x1c9735=_0xef7624[_0xb0e5f2(0x1c6)](kt);return Object['keys'](kt)[_0xb0e5f2(0x2ab)](_0x18b3a5=>{const _0xaa04f6=_0xb0e5f2;_0x1c9735[_0x18b3a5]=kt[_0x18b3a5][_0xaa04f6(0x1ce)](_0x199ab1=>({..._0x199ab1,'startRow':_0x199ab1[_0xaa04f6(0x15f)]+_0x3c46df,'endRow':_0x199ab1[_0xaa04f6(0x234)]+_0x3c46df,'startColumn':_0x199ab1[_0xaa04f6(0x148)]+_0x13ca06,'endColumn':_0x199ab1[_0xaa04f6(0x187)]+_0x13ca06}));}),{'matrixCache':_0x79e62e,'rangesCache':_0x1c9735};};function Ei(_0x796aee,_0xdd9d0d){const _0x255dd0=_0x26db4b;let _0x26e4a3='';const _0x1ce38d=this[_0x255dd0(0x18c)]();switch(_0xdd9d0d){case _0x3c1999['average']:_0x26e4a3=_0x1ce38d[_0x255dd0(0x1cd)]+_0x796aee;break;case _0x3c1999['count']:_0x26e4a3=_0x1ce38d['sheets-pivot.countName']+_0x796aee;break;case _0x3c1999['countNums']:_0x26e4a3=_0x1ce38d[_0x255dd0(0x1dc)]+_0x796aee;break;case _0x3c1999['max']:_0x26e4a3=_0x1ce38d['sheets-pivot.maxName']+_0x796aee;break;case _0x3c1999[_0x255dd0(0xd4)]:_0x26e4a3=_0x1ce38d['sheets-pivot.minName']+_0x796aee;break;case _0x3c1999[_0x255dd0(0x2c6)]:_0x26e4a3=_0x1ce38d[_0x255dd0(0x1d4)]+_0x796aee;break;case _0x3c1999[_0x255dd0(0x2de)]:_0x26e4a3=_0x1ce38d['sheets-pivot.stdDevName']+_0x796aee;break;case _0x3c1999[_0x255dd0(0x156)]:_0x26e4a3=_0x1ce38d[_0x255dd0(0x29d)]+_0x796aee;break;case _0x3c1999['sum']:_0x26e4a3=_0x1ce38d[_0x255dd0(0x141)]+_0x796aee;break;case _0x3c1999[_0x255dd0(0x2f9)]:_0x26e4a3=_0x1ce38d[_0x255dd0(0x218)]+_0x796aee;break;case _0x3c1999[_0x255dd0(0x28d)]:_0x26e4a3=_0x1ce38d[_0x255dd0(0x1a0)]+_0x796aee;break;default:_0x26e4a3=_0x796aee;break;}return _0x26e4a3;}function xi(_0x426f5d,_0x8f5ec0,_0x57c2c4,_0x4d253a,_0x477456){const _0x8b6e93=_0x26db4b;var _0x3face8,_0x456062,_0x50b0b0,_0x40e26b,_0xfe70e7;const _0x450013=_0x158376(_0x426f5d,_0x8f5ec0),{rangesInfo:_0x1a6f20,areaInfo:_0x90cd07,headerMap:_0x33e39d}=_0x477456;if(!_0x1a6f20||!_0x90cd07||!_0x33e39d)return;const _0xb2a6e0=Object[_0x8b6e93(0x301)](_0x1a6f20)[_0x8b6e93(0x26f)](_0x3dae3c=>_0x1a6f20[_0x3dae3c][_0x8b6e93(0x270)](_0x1daa57=>_0x4d6abc[_0x8b6e93(0x1f5)](_0x1daa57,_0x450013))),_0x3d27e0=_0x90cd07;let _0x47b75c,_0x8c38a8,_0x2ee53a;if(_0xb2a6e0==='rowRanges')_0x47b75c=(_0x3face8=_0x3d27e0==null?void 0x0:_0x3d27e0['rowInfo'])==null?void 0x0:_0x3face8[_0x426f5d],_0x8c38a8=(_0x456062=_0x33e39d==null?void 0x0:_0x33e39d[_0x8b6e93(0x11b)])==null?void 0x0:_0x456062[_0x8f5ec0],_0x2ee53a=_0x8c38a8==null?void 0x0:_0x8c38a8[_0x8b6e93(0x32e)];else{if(_0xb2a6e0===_0x8b6e93(0x2c2))_0x47b75c=(_0x50b0b0=_0x3d27e0==null?void 0x0:_0x3d27e0[_0x8b6e93(0x2b4)])==null?void 0x0:_0x50b0b0[_0x8f5ec0],_0x8c38a8=(_0x40e26b=_0x33e39d[_0x8b6e93(0x314)])==null?void 0x0:_0x40e26b[_0x426f5d+0x1+_0x8f5ec0-_0x1a6f20[_0x8b6e93(0x2c2)][0x0][_0x8b6e93(0x148)]],_0x2ee53a=_0x8c38a8==null?void 0x0:_0x8c38a8[_0x8b6e93(0x32e)];else{if(_0xb2a6e0===_0x8b6e93(0x2ba))_0x47b75c=(_0xfe70e7=_0x3d27e0==null?void 0x0:_0x3d27e0[_0x8b6e93(0x1b5)])==null?void 0x0:_0xfe70e7[_0x8f5ec0],_0x2ee53a=_0x47b75c==null?void 0x0:_0x47b75c[_0x8b6e93(0x32e)];else{if(_0xb2a6e0===_0x8b6e93(0x19c)){const _0x4022b2=_0x57c2c4==null?void 0x0:_0x57c2c4['fi'];_0x4022b2!==void 0x0&&(_0x2ee53a=_0x4d253a[_0x8b6e93(0x1a8)](_0x4022b2));}}}}return{'filterId':_0x2ee53a,'info':_0x47b75c,'data':_0x57c2c4,'headerInfo':_0x8c38a8};}function Oi(_0x17941a,_0x5883b2,_0x23e817){const _0x3decee=_0x26db4b,_0x17eb20=_0x17941a[_0x3decee(0x207)],_0xa86897=_0x17eb20[_0x3decee(0x2f3)](),_0x14bc65=new Set();_0x17941a[_0x3decee(0x285)](_0x5d3b8f=>{_0x14bc65['add'](_0x5d3b8f['dataFieldId']);});const _0x112a33=_0xa86897[_0x3decee(0x1ce)](_0x4473d2=>{const _0x3d3016=_0x3decee,_0x73b587=_0x17eb20[_0x3d3016(0x1da)](_0x4473d2);return{'checked':_0x14bc65[_0x3d3016(0x18a)](_0x4473d2),'dataFieldId':_0x73b587['id'],'id':_0x73b587['id'],'name':_0x17eb20[_0x3d3016(0x173)](_0x73b587['id']),'type':_0x73b587['getFieldDataType'](),'pivotTableId':_0x5883b2};}),_0x316099=[];_0x17941a[_0x3decee(0x25f)](_0x42f9ea[_0x3decee(0x13f)],_0x32ed53=>{const _0x4e1aa7=_0x3decee;_0x316099['push']({'dataFieldId':_0x32ed53[_0x4e1aa7(0x28b)],'tableFieldId':_0x32ed53['getId'](),'displayName':_0x32ed53[_0x4e1aa7(0x173)]()});});const _0x1ae055=[];_0x17941a['iterateFieldByArea'](_0x42f9ea['Column'],_0x2067cf=>{const _0x1a237f=_0x3decee;_0x1ae055[_0x1a237f(0xe8)]({'dataFieldId':_0x2067cf['dataFieldId'],'tableFieldId':_0x2067cf[_0x1a237f(0xc4)](),'displayName':_0x2067cf[_0x1a237f(0x173)]()});});const _0x1aba58=[];if(_0x17941a[_0x3decee(0x25f)](_0x42f9ea[_0x3decee(0x2b5)],_0x3d5890=>{const _0x5576a9=_0x3decee;_0x1aba58[_0x5576a9(0xe8)]({'dataFieldId':_0x3d5890[_0x5576a9(0x28b)],'tableFieldId':_0x3d5890['getId'](),'displayName':_0x3d5890[_0x5576a9(0x173)](),'format':_0x3d5890['getFormat'](),'subTotalType':_0x3d5890['getSubtotal']()});}),_0x1aba58['length']>0x1){const _0x5a6bc2=_0x17941a[_0x3decee(0x1fc)]();(_0x17941a[_0x3decee(0x14a)]()?_0x1ae055:_0x316099)[_0x3decee(0x110)](_0x5a6bc2,0x0,{'dataFieldId':'','tableFieldId':'PivotMultipleValueId','displayName':_0x3decee(0x272)});}const _0x51735e=[];_0x17941a[_0x3decee(0x25f)](_0x42f9ea[_0x3decee(0x256)],_0x24511a=>{const _0x15efe5=_0x3decee;_0x51735e[_0x15efe5(0xe8)]({'dataFieldId':_0x24511a['dataFieldId'],'tableFieldId':_0x24511a['getId'](),'displayName':_0x24511a[_0x15efe5(0x173)]()});});const _0x886fa4=_0x23e817[_0x3decee(0x150)];return{'sourceList':_0x112a33,'sourceRange':_0x886fa4,'rowFields':_0x316099,'columnFields':_0x1ae055,'valueFields':_0x1aba58,'filterFields':_0x51735e,'positionInfo':_0x23e817['targetCellInfo']};}function fo(_0x348ba0,_0x33276c,_0x512218='',_0x520f72={}){const _0x9fd784=_0x26db4b,_0x4ff20c=_0x348ba0[_0x9fd784(0x15d)](_0x388073);for(const _0x178c86 in _0x33276c)if(Object[_0x9fd784(0x153)][_0x9fd784(0x186)][_0x9fd784(0x13d)](_0x33276c,_0x178c86)){const _0x5390a8=_0x512218?_0x512218+'.'+_0x178c86:_0x178c86;typeof _0x33276c[_0x178c86]==_0x9fd784(0xe9)&&_0x33276c[_0x178c86]!==null&&!Array[_0x9fd784(0x2a9)](_0x33276c[_0x178c86])?fo(_0x348ba0,_0x33276c[_0x178c86],_0x5390a8,_0x520f72):_0x520f72[_0x5390a8]=_0x4ff20c['t'](_0x5390a8);}return _0x520f72;}const Bt=_0x29f427=>{const _0x587e80=_0x26db4b;if(!_0x29f427)return[];const {rowRanges:_0x53f9fc,colRanges:_0x4c91ab,cornerRanges:_0x1d9ee4,dataRanges:_0x1dc0c0,pageRanges:_0x4ffc78}=_0x29f427,_0x26d71a=[..._0x4c91ab,..._0x53f9fc,..._0x1dc0c0,..._0x1d9ee4]['filter'](_0x3f6112=>_0x3f6112['startRow']>=0x0&&_0x3f6112[_0x587e80(0x148)]>=0x0&&_0x3f6112[_0x587e80(0x234)]>=0x0&&_0x3f6112[_0x587e80(0x187)]>=0x0);let _0x3691c9=Number['MAX_SAFE_INTEGER'],_0x2e4264=Number[_0x587e80(0xe3)],_0x225648=Number[_0x587e80(0x30f)],_0x2df61d=Number[_0x587e80(0xe3)];for(let _0x168f61=0x0;_0x168f61<_0x26d71a[_0x587e80(0x20c)];_0x168f61++)_0x3691c9=Math[_0x587e80(0xd4)](_0x3691c9,_0x26d71a[_0x168f61][_0x587e80(0x15f)]),_0x2e4264=Math['max'](_0x2e4264,_0x26d71a[_0x168f61][_0x587e80(0x234)]),_0x225648=Math[_0x587e80(0xd4)](_0x225648,_0x26d71a[_0x168f61]['startColumn']),_0x2df61d=Math['max'](_0x2df61d,_0x26d71a[_0x168f61][_0x587e80(0x187)]);return[..._0x4ffc78,{'startRow':_0x3691c9,'endRow':_0x2e4264,'startColumn':_0x225648,'endColumn':_0x2df61d}];};function Ai(_0xffcb04,_0x216f7e){const _0x15e96f=_0x26db4b,_0x578023=_0x216f7e[_0x15e96f(0x231)][_0x15e96f(0x18e)],{pivotTableId:_0x50f696,unitId:_0x2d7f86,subUnitId:_0x58a29c}=_0x216f7e;if(!_0x578023)return;const _0x3c41b6=_0xffcb04['get'](H),_0xfeda12=_0x3c41b6[_0x15e96f(0x28c)](_0x50f696),_0x5c505c=_0x3c41b6[_0x15e96f(0x13b)](_0x2d7f86,_0x58a29c,_0x50f696);if(!_0xfeda12||!_0x5c505c)return;const _0x425ada=_0xfeda12['getIndexesByPathStr'](_0x578023['tuple']);if(!(_0x425ada!=null&&_0x425ada[_0x15e96f(0x20c)]))return;const _0x2023b9=_0x5c505c[_0x15e96f(0x150)],{unitId:_0x5d2a69,subUnitId:_0x2cd038,range:_0xd79873}=_0x2023b9;let _0x550efc=0x0;const _0xcf6e38=_0xfeda12[_0x15e96f(0x207)]['getFieldIds']()[_0x15e96f(0x145)]((_0x164dcf,_0x4e2588)=>{const _0x3f74de=_0x15e96f;var _0x35e466;const _0x21a87f=(_0x35e466=_0xfeda12['getDataFieldByDataFieldId'](_0x4e2588))==null?void 0x0:_0x35e466[_0x3f74de(0x29f)]();return _0x21a87f&&(_0x164dcf[String(_0x550efc)]=_0x21a87f),_0x550efc++,_0x164dcf;},{});return{'indexes':_0x425ada,'range':_0xd79873,'sourceUnitId':_0x5d2a69,'sourceSubUnitId':_0x2cd038,'formatMap':_0xcf6e38};}function Go(_0x1fe660,_0x4ec887){const _0x3af771=_0x26db4b;if(!_0x1fe660||!_0x4ec887)return!0x0;const _0x3388df=_0x77270e($o,Qo),_0x2c4cb6=new Function(_0x3af771(0x112)+_0x3388df)()(_0x1fe660,_0x4ec887)[_0x3af771(0xee)],_0x396037=_0x5676b7(_0x2c4cb6,'sf',jo);return!((_0x2c4cb6==null?void 0x0:_0x2c4cb6['rt'])===_0x169cb1[_0x3af771(0x170)]&&!_0x396037);}function go(_0x34dc99,_0x188072,_0x157220){const _0x4534a1=_0x26db4b,_0x20c625={'count':_0x34dc99,'timeValid':!0x1};if(!_0x188072||!_0x157220)return _0x20c625;const _0x5128ae=_0x77270e($o,Qo),_0x5c6814=new Function(_0x4534a1(0x112)+_0x5128ae)()(_0x188072,_0x157220);if(_0x5c6814!=null&&_0x5c6814['valid']){const _0x17010d=_0x5c6814['message'],_0x13079a=_0x5676b7(_0x17010d,'sf',jo);return{'count':_0x5172e9(_0x17010d,_0x13079a,_0x4534a1(0x2ae),_0x34dc99,_0x34dc99,0x0),'timeValid':_0x13079a};}return _0x20c625;}function Wo(_0x3211a8,_0xa1b96b,_0x62469c,_0xfecb75){const _0x449d14=_0x26db4b,_0x16613f={'subUnitId':_0x62469c,'unitId':_0xa1b96b,'cellValue':_0xeac6d6(_0xfecb75)},_0x1e10c5=_0x842dc0(_0x3211a8,_0x16613f);let _0x211ef4=!0x1;return new _0xbef08f(_0x1e10c5[_0x449d14(0x236)])['forValue']((_0x5a8331,_0x5db697,_0x466111)=>{if(!_0x211ef4&&_0x466111&&(_0x466111['custom']||_0x466111['f']||_0x466111['p']||_0x466111['s']||_0x466111['si']||_0x466111['t']||_0x466111['v']))return _0x211ef4=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x407f24['id'],'params':_0x1e10c5},'setRangeValueRedoMutation':{'id':_0x407f24['id'],'params':_0x16613f},'shouldClear':_0x211ef4};}function ji(_0x574e61){const {row:_0x718cd3,col:_0x3f9cc5}=_0x574e61,_0xf3a3c6={'startRow':_0x718cd3,'endRow':_0x718cd3,'startColumn':_0x3f9cc5,'endColumn':_0x3f9cc5},_0x375ba5={'startRow':_0x718cd3+0x2,'endRow':_0x718cd3+0xe,'startColumn':_0x3f9cc5,'endColumn':_0x3f9cc5+0x6};return[_0xf3a3c6,_0x375ba5];}function Li(_0x206763,_0x31076b,_0x307035){const _0x4d3a86=_0x26db4b,{cornerView:_0x5d5ac6,rowView:_0x176bf1,colView:_0x135e45,pageView:_0xdcf440}=_0x206763,{row:_0x1a9cf6,col:_0x2b8499}=_0x31076b;if(_0x307035)return{'rowCount':Si+_0x1a9cf6,'colCount':bi+_0x2b8499};const _0x2ddd8b=_0xdcf440[_0x4d3a86(0xed)]>-0x1?_0xdcf440[_0x4d3a86(0xed)]+0x1:0x0,_0x2dabd2=_0xdcf440[_0x4d3a86(0x25b)]>-0x1?_0xdcf440[_0x4d3a86(0x25b)]:0x0,_0x348285=_0x1a9cf6+_0x2ddd8b+(_0x2ddd8b?0x1:0x0)+_0x5d5ac6[_0x4d3a86(0x2c9)]+_0x176bf1[_0x4d3a86(0x2c9)],_0x339312=_0x2b8499+_0x2dabd2,_0x3080df=_0x2b8499+_0x5d5ac6[_0x4d3a86(0x300)]+_0x135e45[_0x4d3a86(0x300)],_0x575426=Math[_0x4d3a86(0x1f7)](_0x339312,_0x3080df);return{'rowCount':_0x348285,'colCount':_0x575426};}function we(_0x1eba4d,_0x29f4e4,_0x4bf7cd,_0x3494a6){const _0x57c970=_0x26db4b,{row:_0x90af08,col:_0x4dfdc7,unitId:_0x4099b1,subUnitId:_0x1fb8fe}=_0x4bf7cd,_0x3ce16a=Li(_0x29f4e4,{'row':_0x90af08,'col':_0x4dfdc7},_0x3494a6),_0x557980=_0x1eba4d[_0x57c970(0x15d)](_0x399741),_0x71b130=_0x3c834f(_0x557980,{'unitId':_0x4099b1,'subUnitId':_0x1fb8fe}),_0x14c6e9=[],_0x58b44d=[];if(!_0x71b130)return{'undos':_0x58b44d,'redos':_0x14c6e9};const {worksheet:_0x43d879}=_0x71b130,_0x2e73db=_0x43d879[_0x57c970(0x1be)](),_0x463309=_0x43d879['getColumnCount']();return _0x2e73db<_0x3ce16a[_0x57c970(0x2c9)]&&(_0x14c6e9[_0x57c970(0xe8)]({'id':_0x41885e['id'],'params':{'unitId':_0x4099b1,'subUnitId':_0x1fb8fe,'range':{'startRow':_0x2e73db,'endRow':_0x3ce16a[_0x57c970(0x2c9)]-0x1,'startColumn':0x0,'endColumn':_0x463309-0x1}}}),_0x58b44d['push']({'id':_0x2b81c9['id'],'params':{'unitId':_0x4099b1,'subUnitId':_0x1fb8fe,'range':{'startRow':_0x2e73db,'endRow':_0x3ce16a['rowCount']-0x1,'startColumn':0x0,'endColumn':_0x463309-0x1}}})),_0x463309<_0x3ce16a[_0x57c970(0x300)]&&(_0x14c6e9[_0x57c970(0xe8)]({'id':_0x4b7fa2['id'],'params':{'unitId':_0x4099b1,'subUnitId':_0x1fb8fe,'range':{'startRow':0x0,'endRow':_0x2e73db-0x1,'startColumn':_0x463309,'endColumn':_0x3ce16a[_0x57c970(0x300)]-0x1}}}),_0x58b44d[_0x57c970(0xe8)]({'id':_0x524c15['id'],'params':{'unitId':_0x4099b1,'subUnitId':_0x1fb8fe,'range':{'startRow':0x0,'endRow':_0x2e73db-0x1,'startColumn':_0x463309,'endColumn':_0x3ce16a[_0x57c970(0x300)]-0x1}}})),{'undos':_0x58b44d,'redos':_0x14c6e9};}function ki(_0x5cc6d3){let _0x41e802=0x0;for(let _0x39f731=0x0;_0x39f731<_0x5cc6d3['length'];_0x39f731++){const _0x4e0693=_0x5cc6d3['charCodeAt'](_0x39f731);_0x4e0693>=0x4e00&&_0x4e0693<=0x9fff||_0x4e0693>=0x3000&&_0x4e0693<=0x303f||_0x4e0693>=0xff00&&_0x4e0693<=0xffef?_0x41e802+=0x2:_0x41e802+=0x1;}return _0x41e802;}function To(_0x556ce3,_0x4981d4,_0x54dbad,_0x29c5dc){const _0x33d0c7=_0x26db4b;var _0x504cb5,_0x171746,_0x1d501b,_0x22ce6d;const {rowCount:_0x44ff36,colCount:_0x2dcdaf,headerMap:_0x56801d}=_0x556ce3,_0x475889=0x64,_0x27cc3f=Math[_0x33d0c7(0xd4)](_0x44ff36,_0x475889),_0x595445=Math[_0x33d0c7(0xd4)](_0x2dcdaf,_0x475889);let _0x55f2b3='',_0x358bb4=0x0;for(let _0x4d2104=0x0;_0x4d2104<_0x27cc3f;_0x4d2104++)for(let _0x19ded9=0x0;_0x19ded9<_0x595445;_0x19ded9++){const _0x21edea={...(_0x171746=(_0x504cb5=_0x556ce3[_0x33d0c7(0x1bd)])==null?void 0x0:_0x504cb5[_0x4d2104])==null?void 0x0:_0x171746[_0x19ded9]},_0x5d9bd0=(_0x1d501b=_0x56801d[_0x4d2104])==null?void 0x0:_0x1d501b['tableFieldId'],_0x52a31f=_0x29c5dc[_0x5d9bd0];let _0x33f38a=_0x556ce3[_0x33d0c7(0xdc)](_0x4d2104,_0x19ded9);if(_0x21edea){const _0x28305d=_0x54dbad?_0x19ded9===0x0&&((_0x22ce6d=_0x556ce3[_0x33d0c7(0x23b)](_0x19ded9+0x1))==null?void 0x0:_0x22ce6d[_0x33d0c7(0x25a)]):!0x1;_0x33f38a=vt(_0x21edea,_0x28305d,_0x52a31f,_0x4981d4);}if(_0x33f38a!==void 0x0){const _0x466c71=ki(String(_0x33f38a));_0x358bb4<_0x466c71&&(_0x55f2b3=String(_0x33f38a),_0x358bb4=_0x466c71);}}return _0x55f2b3;}function Bi(_0x136ced){const _0x301a6a=_0x26db4b,{rowCount:_0x4478bd,colCount:_0x499d8b}=_0x136ced;let _0x24cbfc='',_0x2daca7=0x0;for(let _0x15c07d=_0x4478bd-0x1;_0x15c07d>0x0&&_0x15c07d>_0x4478bd-0x3;_0x15c07d--)for(let _0x4939da=0x0;_0x4939da<_0x499d8b;_0x4939da++){const _0x261a2e=_0x136ced['getValue'](_0x15c07d,_0x4939da);if(_0x261a2e!==void 0x0){const _0x134bce=String(_0x261a2e)[_0x301a6a(0x20c)];_0x2daca7<_0x134bce&&(_0x24cbfc=String(_0x261a2e),_0x2daca7=_0x134bce);}}return _0x24cbfc;}function Hi(_0x6ae87b){const _0x2cc318=_0x26db4b,{rowCount:_0x5d886e,colCount:_0x46e1ab}=_0x6ae87b;let _0x1b6baf='',_0x28c3a1=0x0;for(let _0x8e3a2a=0x0;_0x8e3a2a<_0x5d886e;_0x8e3a2a++)for(let _0x21c07f=0x0;_0x21c07f<_0x46e1ab;_0x21c07f++){const _0x1fc59e=_0x6ae87b[_0x2cc318(0xdc)](_0x8e3a2a,_0x21c07f);if(_0x1fc59e!==void 0x0){const _0x323495=String(_0x1fc59e)['length'];_0x28c3a1<_0x323495&&(_0x1b6baf=String(_0x1fc59e),_0x28c3a1=_0x323495);}}return _0x1b6baf;}function Qi(_0x50b9d9,_0xde4f45){const _0x14a43e=_0x26db4b,{rowFields:_0x377e84,columnFields:_0x3b1f6e,valueFields:_0x2bd05a,filterFields:_0x1ee154,dimension:_0x1055cc,measure:_0x4f1215}=_0xde4f45;for(const _0x2804aa of _0x377e84){const _0x2349dd=_0x1055cc[_0x2804aa];_0x2349dd&&_0x50b9d9[_0x14a43e(0xda)](_0x2349dd['dataFieldId'])&&(_0x50b9d9[_0x14a43e(0x205)](_0x2349dd[_0x14a43e(0x28b)],_0x42f9ea['Row'],void 0x0,_0x2804aa),_0x2349dd[_0x14a43e(0x1c2)]&&_0x50b9d9['renameField'](_0x2349dd['id'],_0x2349dd[_0x14a43e(0x1c2)]),_0x2349dd[_0x14a43e(0x284)]&&_0x50b9d9['setSortInfo'](_0x2349dd['id'],_0x2349dd[_0x14a43e(0x284)]),_0x2349dd[_0x14a43e(0x193)]&&_0x50b9d9[_0x14a43e(0x1a3)](_0x2349dd['id'],_0x2349dd[_0x14a43e(0x193)]));}for(const _0x4db649 of _0x3b1f6e){const _0x241a41=_0x1055cc[_0x4db649];_0x241a41&&_0x50b9d9[_0x14a43e(0xda)](_0x241a41[_0x14a43e(0x28b)])&&(_0x50b9d9['addFieldWithSourceId'](_0x241a41[_0x14a43e(0x28b)],_0x42f9ea['Column'],void 0x0,_0x4db649),_0x241a41[_0x14a43e(0x284)]&&_0x50b9d9[_0x14a43e(0x1cb)](_0x241a41['id'],_0x241a41[_0x14a43e(0x284)]),_0x241a41[_0x14a43e(0x193)]&&_0x50b9d9[_0x14a43e(0x1a3)](_0x241a41['id'],_0x241a41['filterInfo']),_0x241a41[_0x14a43e(0x1c2)]&&_0x50b9d9['renameField'](_0x241a41['id'],_0x241a41[_0x14a43e(0x1c2)]));}for(const _0x5d1035 of _0x1ee154){const _0x2f1dbe=_0x1055cc[_0x5d1035];_0x2f1dbe&&_0x50b9d9[_0x14a43e(0xda)](_0x2f1dbe[_0x14a43e(0x28b)])&&(_0x50b9d9[_0x14a43e(0x205)](_0x2f1dbe[_0x14a43e(0x28b)],_0x42f9ea['Filter'],void 0x0,_0x5d1035),_0x2f1dbe[_0x14a43e(0x284)]&&_0x50b9d9[_0x14a43e(0x1cb)](_0x2f1dbe['id'],_0x2f1dbe[_0x14a43e(0x284)]),_0x2f1dbe[_0x14a43e(0x193)]&&_0x50b9d9[_0x14a43e(0x1a3)](_0x2f1dbe['id'],_0x2f1dbe[_0x14a43e(0x193)]),_0x2f1dbe[_0x14a43e(0x1c2)]&&_0x50b9d9[_0x14a43e(0x1ee)](_0x2f1dbe['id'],_0x2f1dbe[_0x14a43e(0x1c2)]));}for(const _0x6cf47d of _0x2bd05a){const _0xf628f1=_0x4f1215[_0x6cf47d];_0xf628f1&&_0x50b9d9[_0x14a43e(0xda)](_0xf628f1[_0x14a43e(0x28b)])&&(_0x50b9d9[_0x14a43e(0x205)](_0xf628f1[_0x14a43e(0x28b)],_0x42f9ea[_0x14a43e(0x2b5)],void 0x0,_0x6cf47d),_0xf628f1[_0x14a43e(0x1fa)]!==void 0x0&&_0x50b9d9[_0x14a43e(0x2e4)](_0x6cf47d,_0xf628f1[_0x14a43e(0x1fa)]),_0xf628f1[_0x14a43e(0x30b)]&&_0x50b9d9[_0x14a43e(0x24c)](_0x6cf47d,_0xf628f1[_0x14a43e(0x30b)]),_0xf628f1[_0x14a43e(0x1c2)]&&_0x50b9d9[_0x14a43e(0x1ee)](_0xf628f1['id'],_0xf628f1['displayName']));}const _0x5c25d6=_0xde4f45['valueFilter'];for(const {fieldId:_0x11316a,filterInfo:_0x2742ba}of _0x5c25d6)_0x50b9d9[_0x14a43e(0x18d)](_0x11316a,_0x2742ba);}function $i(_0x39a58b,_0x10f18e){const _0x4a8ef6=_0x26db4b,_0x1c02c9=[];_0x10f18e===_0x42f9ea[_0x4a8ef6(0x13f)]&&_0x39a58b[_0x4a8ef6(0x25f)](_0x42f9ea[_0x4a8ef6(0x13f)],_0x5a61c3=>{const _0xa541bf=_0x4a8ef6;_0x1c02c9[_0xa541bf(0xe8)](_0x5a61c3['getId']());}),_0x10f18e===_0x42f9ea[_0x4a8ef6(0x19a)]&&_0x39a58b[_0x4a8ef6(0x25f)](_0x42f9ea[_0x4a8ef6(0x19a)],_0x5b3fd=>{const _0x32a8a5=_0x4a8ef6;_0x1c02c9[_0x32a8a5(0xe8)](_0x5b3fd[_0x32a8a5(0xc4)]());}),_0x10f18e===_0x42f9ea[_0x4a8ef6(0x256)]&&_0x39a58b[_0x4a8ef6(0x25f)](_0x42f9ea[_0x4a8ef6(0x256)],_0x5a96bf=>{const _0x4128e0=_0x4a8ef6;_0x1c02c9[_0x4128e0(0xe8)](_0x5a96bf['getId']());}),_0x10f18e===_0x42f9ea['Value']&&_0x39a58b['iterateFieldByArea'](_0x42f9ea[_0x4a8ef6(0x2b5)],_0x202980=>{const _0x480d57=_0x4a8ef6;_0x1c02c9[_0x480d57(0xe8)](_0x202980[_0x480d57(0xc4)]());}),_0x10f18e===void 0x0&&_0x39a58b['iterateField'](_0x49bfed=>{const _0x1dfc2f=_0x4a8ef6;_0x1c02c9[_0x1dfc2f(0xe8)](_0x49bfed['getId']());});const _0x4a3208=_0x1c02c9['length'];for(let _0xaf06b7=_0x4a3208-0x1;_0xaf06b7>=0x0;_0xaf06b7--)_0x39a58b[_0x4a8ef6(0x1dd)](_0x1c02c9[_0xaf06b7]);const _0x3bdfa8=_0x39a58b[_0x4a8ef6(0x1cf)]();for(const _0x4d23eb in _0x3bdfa8)_0x39a58b[_0x4a8ef6(0x16e)](_0x4d23eb);}function Ji(_0x3511fa,_0x21c3a1){const _0x561df2=_0x26db4b,_0xfd67ec=new Date(_0x2725aa(_0x21c3a1)),_0x178432=new Date(_0x2725aa(_0x3511fa)),_0x175ec7=_0xfd67ec[_0x561df2(0x288)](),_0xbe6a48=_0x178432[_0x561df2(0x288)](),_0x5100c7=_0xfd67ec[_0x561df2(0x159)](),_0x4c286d=_0x178432[_0x561df2(0x159)](),_0x40bedf=_0xfd67ec[_0x561df2(0x2eb)](),_0x1d2f4c=_0x178432[_0x561df2(0x2eb)](),_0x3e5c42=_0x175ec7===_0xbe6a48,_0x54b28d=_0x3e5c42&&_0x5100c7===_0x4c286d;return _0x3e5c42&&_0x54b28d&&!(_0x54b28d&&_0x40bedf===_0x1d2f4c)?_0x5e1936['YearMonthDate']:_0x3e5c42&&!_0x54b28d?_0x5e1936[_0x561df2(0x265)]:_0x5e1936['Year'];}function Ko(_0x2aa307,_0x45e7d3){const _0x8d9435=_0x26db4b,_0x455549=_0x2aa307[_0x8d9435(0x15d)](H)[_0x8d9435(0x18c)]();let _0x1bca60='';switch(_0x45e7d3){case _0x5e1936[_0x8d9435(0x2b0)]:_0x1bca60=_0x455549[_0x8d9435(0x132)];break;case _0x5e1936[_0x8d9435(0x265)]:_0x1bca60=_0x455549['sheets-pivot.dateGroup.yearMonth'];break;case _0x5e1936[_0x8d9435(0x1d7)]:_0x1bca60=_0x455549[_0x8d9435(0x315)];break;case _0x5e1936[_0x8d9435(0xe2)]:_0x1bca60=_0x455549[_0x8d9435(0x31e)];break;case _0x5e1936[_0x8d9435(0x296)]:_0x1bca60=_0x455549['sheets-pivot.dateGroup.quarter'];break;case _0x5e1936[_0x8d9435(0x2fb)]:_0x1bca60=_0x455549[_0x8d9435(0x161)];break;case _0x5e1936['HourMinute']:_0x1bca60=_0x455549[_0x8d9435(0x178)];break;case _0x5e1936[_0x8d9435(0x1d5)]:_0x1bca60=_0x455549[_0x8d9435(0x101)];break;case _0x5e1936[_0x8d9435(0x10e)]:_0x1bca60=_0x455549[_0x8d9435(0x143)];break;case _0x5e1936[_0x8d9435(0x28a)]:_0x1bca60=_0x455549['sheets-pivot.dateGroup.monthDate'];break;case _0x5e1936[_0x8d9435(0x251)]:_0x1bca60=_0x455549[_0x8d9435(0x14b)];break;default:_0x1bca60='';break;}return _0x1bca60;}const qo='sheets-pivot.config',yo={};var Gi=Object[_0x26db4b(0x137)],Wi=(_0x3a41de,_0x3e77a3,_0x172bd0,_0xd2087d)=>{const _0x5e4563=_0x26db4b;for(var _0x1b4156=_0xd2087d>0x1?void 0x0:_0xd2087d?Gi(_0x3e77a3,_0x172bd0):_0x3e77a3,_0x2ee2f0=_0x3a41de[_0x5e4563(0x20c)]-0x1,_0x1e8e13;_0x2ee2f0>=0x0;_0x2ee2f0--)(_0x1e8e13=_0x3a41de[_0x2ee2f0])&&(_0x1b4156=_0x1e8e13(_0x1b4156)||_0x1b4156);return _0x1b4156;},at=(_0x14f86,_0x2c24e9)=>(_0x33a5dd,_0x69f34)=>_0x2c24e9(_0x33a5dd,_0x69f34,_0x14f86);let ve=class extends _0x37fbd9{constructor(_0x1af336,_0x5edeb3,_0x2d84e7,_0x10f23c,_0x2f9cd7){const _0x28bb4f=_0x26db4b;super(),V(this,_0x28bb4f(0x31d),new Map()),V(this,_0x28bb4f(0x10f),new Map()),V(this,'_pivotTableRangeInfo',new Map()),V(this,_0x28bb4f(0x242),new Map()),V(this,_0x28bb4f(0xcb),new _0x20945a()),V(this,_0x28bb4f(0x20d),new _0x20945a()),V(this,_0x28bb4f(0x189),this[_0x28bb4f(0x20d)]['asObservable']()),V(this,'_pivotConfigChange$',new _0x20945a()),V(this,_0x28bb4f(0x1b7),this[_0x28bb4f(0x1ca)][_0x28bb4f(0x306)]()),V(this,_0x28bb4f(0x18b),{}),V(this,'configVersion$',this[_0x28bb4f(0xcb)][_0x28bb4f(0x306)]()),(this[_0x28bb4f(0x211)]=_0x1af336,this[_0x28bb4f(0x1fd)]=_0x5edeb3,this[_0x28bb4f(0x2e9)]=_0x2d84e7,this['_resourceManagerService']=_0x10f23c,this[_0x28bb4f(0x226)]=_0x2f9cd7,this[_0x28bb4f(0x1a7)](),this[_0x28bb4f(0x2cd)]());const _0x4675ba=this[_0x28bb4f(0x226)][_0x28bb4f(0x316)](qo);(_0x4675ba==null?void 0x0:_0x4675ba['notExecuteFormula'])===!0x0&&this[_0x28bb4f(0x332)]();}[_0x26db4b(0x2cd)](){const _0xc9a5f0=_0x26db4b;this['disposeWithMe'](this['_univerInstanceService'][_0xc9a5f0(0x1bb)](_0x4aef6b[_0xc9a5f0(0x1c5)])['subscribe'](_0x225b8d=>{const _0x111eac=_0xc9a5f0;this[_0x111eac(0x31c)](_0x225b8d[_0x111eac(0x30a)]());}));}[_0x26db4b(0x2cb)](){const _0x3b6f29=_0x26db4b;this[_0x3b6f29(0x20d)][_0x3b6f29(0x2a8)](!0x0);}[_0x26db4b(0x1a7)](){const _0x3666f1=_0x26db4b,_0x530c02=fo(this[_0x3666f1(0x211)],ko,'',{});this[_0x3666f1(0x18b)]=_0x530c02,this[_0x3666f1(0x1fd)][_0x3666f1(0x22a)](uo['id'],{'textInfo':_0x530c02},{'onlyLocal':!0x0});}['getTextInfo'](){const _0x4b5c1a=_0x26db4b;return this[_0x4b5c1a(0x18b)];}[_0x26db4b(0x109)](_0x3953c3,_0x46fbb5,_0x469e97,_0x48eab5,_0x1d3822){const _0x2fc6cc=_0x26db4b;this[_0x2fc6cc(0x233)](_0x3953c3,_0x46fbb5,_0x469e97,_0x48eab5),this[_0x2fc6cc(0x1a2)](_0x3953c3,_0x46fbb5,_0x469e97,_0x1d3822);}['getPivotTableConfig'](_0x6d09eb,_0x5c7b97,_0x5f0264){const _0x345e2d=_0x26db4b;var _0x5ce061;const _0x55579b=(_0x5ce061=this['_model']['get'](_0x6d09eb))==null?void 0x0:_0x5ce061[_0x345e2d(0x15d)](_0x5c7b97);if(_0x55579b)return _0x55579b[_0x345e2d(0x15d)](_0x5f0264);}['getTargetByPivotTableId'](_0x353d9c,_0x50822f){const _0x1191ee=_0x26db4b,_0x6dcd37=this[_0x1191ee(0x31d)][_0x1191ee(0x15d)](_0x353d9c);if(_0x6dcd37){for(const [_0x1ed768,_0x35f13e]of _0x6dcd37[_0x1191ee(0xea)]())for(const [_0x3717f5,_0xc55a1a]of _0x35f13e[_0x1191ee(0xea)]())if(_0x3717f5===_0x50822f)return _0xc55a1a['targetCellInfo'];}}[_0x26db4b(0x2fa)](_0x49df40,_0x27c042,_0x48e885){const _0x4afd24=_0x26db4b,_0x1c16c0=this['getPivotTableConfig'](_0x49df40,_0x27c042,_0x48e885);return _0x1c16c0==null?void 0x0:_0x1c16c0[_0x4afd24(0x20b)];}[_0x26db4b(0x126)](_0x5e6189,_0x3c0897){const _0x488a06=_0x26db4b;var _0x53ff68;return(_0x53ff68=this[_0x488a06(0x31d)][_0x488a06(0x15d)](_0x5e6189))==null?void 0x0:_0x53ff68[_0x488a06(0x15d)](_0x3c0897);}[_0x26db4b(0xf3)](_0x49b1bd,_0x1fa48a,_0x1992d9,_0x4a8672){const _0x3777f7=_0x26db4b,_0x2c236f=this[_0x3777f7(0x1a4)](_0x49b1bd,_0x1fa48a);_0x4a8672?_0x2c236f['set'](_0x1992d9,_0x4a8672):_0x2c236f[_0x3777f7(0x21b)](_0x1992d9),this[_0x3777f7(0x1ca)][_0x3777f7(0x2a8)]({'unitId':_0x49b1bd,'subUnitId':_0x1fa48a,'pivotTableId':_0x1992d9,'pivotTableConfig':_0x4a8672});}['getCollection'](_0x5644ad,_0xd2ce75){const _0x68817b=_0x26db4b;var _0x121f30;return(_0x121f30=this[_0x68817b(0x10f)][_0x68817b(0x15d)](_0x5644ad))==null?void 0x0:_0x121f30[_0x68817b(0x253)][_0xd2ce75];}[_0x26db4b(0x185)](_0x3e223c,_0x2410d5){const _0x5a33bb=_0x26db4b;this[_0x5a33bb(0x10f)][_0x5a33bb(0x210)](_0x3e223c,_0x2410d5),this[_0x5a33bb(0xcb)][_0x5a33bb(0x2a8)](Math[_0x5a33bb(0x130)]());}[_0x26db4b(0x1a4)](_0x38c3a5,_0x35988b){const _0x439e10=_0x26db4b;let _0x491863=this[_0x439e10(0x31d)][_0x439e10(0x15d)](_0x38c3a5);_0x491863||(_0x491863=new Map(),this[_0x439e10(0x31d)][_0x439e10(0x210)](_0x38c3a5,_0x491863));let _0x1cfa48=_0x491863[_0x439e10(0x15d)](_0x35988b);return _0x1cfa48||(_0x1cfa48=new Map(),_0x491863[_0x439e10(0x210)](_0x35988b,_0x1cfa48)),_0x1cfa48;}['_ensurePivotTableRangeInfo'](_0x2810be,_0x1d570f){const _0x2441fe=_0x26db4b;let _0x12dae6=this[_0x2441fe(0x2d2)][_0x2441fe(0x15d)](_0x2810be);_0x12dae6||(_0x12dae6=new Map(),this[_0x2441fe(0x2d2)][_0x2441fe(0x210)](_0x2810be,_0x12dae6));let _0x37b053=_0x12dae6[_0x2441fe(0x15d)](_0x1d570f);return _0x37b053||(_0x37b053=new Map(),_0x12dae6[_0x2441fe(0x210)](_0x1d570f,_0x37b053)),_0x37b053;}['_ensurePivotTableMatrixInfo'](_0x1f7877,_0x5b53ff){const _0x484658=_0x26db4b;let _0x5b600f=this[_0x484658(0x242)][_0x484658(0x15d)](_0x1f7877);_0x5b600f||(_0x5b600f=new Map(),this['_pivotTableMatrixInfo']['set'](_0x1f7877,_0x5b600f));let _0xcb2412=_0x5b600f[_0x484658(0x15d)](_0x5b53ff);return _0xcb2412||(_0xcb2412=new Map(),_0x5b600f[_0x484658(0x210)](_0x5b53ff,_0xcb2412)),_0xcb2412;}['updatePivotTableRangeInfo'](_0x4dae18,_0xdeab3b,_0x403f78,_0x1ba72f){const _0x54f349=_0x26db4b;var _0x5b82f9;const _0xcabe67=this[_0x54f349(0x261)](_0x4dae18,_0xdeab3b),_0x37e9df=(_0x5b82f9=_0xcabe67[_0x54f349(0x15d)](_0x403f78))==null?void 0x0:_0x5b82f9[_0x54f349(0x196)];_0xcabe67[_0x54f349(0x210)](_0x403f78,{'oldRangeInfo':_0x37e9df,'rangeInfo':_0x1ba72f});}[_0x26db4b(0x233)](_0xda4a54,_0x437508,_0x4c1960,_0x9927c0){const _0x563571=_0x26db4b;var _0x51fd5b;const _0x290c9e=this['_ensurePivotTableMatrixInfo'](_0xda4a54,_0x437508),_0x3e259c=(_0x51fd5b=_0x290c9e[_0x563571(0x15d)](_0x4c1960))==null?void 0x0:_0x51fd5b[_0x563571(0x17f)];_0x290c9e[_0x563571(0x210)](_0x4c1960,{'oldMatrix':_0x3e259c,'matrix':_0x9927c0});}[_0x26db4b(0x1d2)](_0x2a06db,_0x45a373,_0x3a2463){const _0xfc1d6=_0x26db4b;var _0x208ac5,_0x16fb46;return(_0x16fb46=(_0x208ac5=this[_0xfc1d6(0x2d2)][_0xfc1d6(0x15d)](_0x2a06db))==null?void 0x0:_0x208ac5[_0xfc1d6(0x15d)](_0x45a373))==null?void 0x0:_0x16fb46[_0xfc1d6(0x15d)](_0x3a2463);}[_0x26db4b(0x280)](_0x35e4bc,_0x4f43e9,_0x1e2e26){const _0x5b458c=_0x26db4b;var _0x3d4972,_0x4de14c;return(_0x4de14c=(_0x3d4972=this[_0x5b458c(0x242)][_0x5b458c(0x15d)](_0x35e4bc))==null?void 0x0:_0x3d4972[_0x5b458c(0x15d)](_0x4f43e9))==null?void 0x0:_0x4de14c[_0x5b458c(0x15d)](_0x1e2e26);}[_0x26db4b(0x31c)](_0x51a5c0){const _0x3d5c23=_0x26db4b;this[_0x3d5c23(0x31d)]['delete'](_0x51a5c0),this[_0x3d5c23(0x10f)][_0x3d5c23(0x21b)](_0x51a5c0);}[_0x26db4b(0x2e8)](_0x1b2c78){const _0x2f19f0=_0x26db4b,_0x533f0d={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x2f19f0(0x10f)]['get'](_0x1b2c78)&&(_0x533f0d[_0x2f19f0(0x17d)][_0x1b2c78]=this['_collectionConfigModel'][_0x2f19f0(0x15d)](_0x1b2c78)),this[_0x2f19f0(0x31d)][_0x2f19f0(0x15d)](_0x1b2c78)){_0x533f0d[_0x2f19f0(0x2ec)][_0x1b2c78]={};const _0xf53731=this[_0x2f19f0(0x31d)][_0x2f19f0(0x15d)](_0x1b2c78);_0xf53731!=null&&_0xf53731['size']&&[..._0xf53731['keys']()][_0x2f19f0(0x2ab)](_0x41f726=>{const _0x135f61=_0x2f19f0,_0x481e6b=_0xf53731['get'](_0x41f726);_0x481e6b!=null&&_0x481e6b[_0x135f61(0x321)]&&(_0x533f0d[_0x135f61(0x2ec)][_0x1b2c78][_0x41f726]={},[..._0x481e6b[_0x135f61(0x301)]()][_0x135f61(0x2ab)](_0x596a9f=>{const _0x4166bb=_0x135f61,_0x231dc5=_0x481e6b[_0x4166bb(0x15d)](_0x596a9f);_0x231dc5&&(_0x533f0d[_0x4166bb(0x2ec)][_0x1b2c78][_0x41f726][_0x596a9f]=_0x231dc5);}));});}return _0x533f0d;}[_0x26db4b(0x332)](){const _0x41e769=_0x26db4b;this['disposeWithMe'](this['_resourceManagerService'][_0x41e769(0x312)]({'toJson':_0x92d99a=>JSON['stringify'](this[_0x41e769(0x2e8)](_0x92d99a)),'parseJson':_0x200f56=>({}),'businesses':[_0x4aef6b[_0x41e769(0x1c5)]],'pluginName':ao,'onLoad':(_0xe2e597,_0x10bdfb)=>{},'onUnLoad':_0x9fb50e=>{const _0x386618=_0x41e769;this[_0x386618(0x31c)](_0x9fb50e);}}));}};ve=Wi([at(0x0,_0x58298c(_0x4e6692)),at(0x1,_0x58298c(_0x3f8860)),at(0x2,_0x58298c(_0x399741)),at(0x3,_0x58298c(_0x4651de)),at(0x4,_0x58298c(_0x355993))],ve);var Ki=Object[_0x26db4b(0x137)],qi=(_0x189e27,_0x28ac68,_0x5269ff,_0x5ae8be)=>{const _0x2a282c=_0x26db4b;for(var _0x26cc37=_0x5ae8be>0x1?void 0x0:_0x5ae8be?Ki(_0x28ac68,_0x5269ff):_0x28ac68,_0x1dd748=_0x189e27[_0x2a282c(0x20c)]-0x1,_0x2fed8c;_0x1dd748>=0x0;_0x1dd748--)(_0x2fed8c=_0x189e27[_0x1dd748])&&(_0x26cc37=_0x2fed8c(_0x26cc37)||_0x26cc37);return _0x26cc37;},rt=(_0x34ee4c,_0x342b92)=>(_0x2178dc,_0x47ea39)=>_0x342b92(_0x2178dc,_0x47ea39,_0x34ee4c);let Ne=class extends _0x37fbd9{constructor(_0x27c95b,_0x30c05f,_0x175273,_0x2ced0a,_0x167c02){const _0x48fb6f=_0x26db4b;super(),V(this,_0x48fb6f(0xc2),new Map()),V(this,'_pivotRenderValueMatrixCache',new Map()),V(this,_0x48fb6f(0xff),new _0x20945a()),V(this,_0x48fb6f(0x10d),this['_markDirty$'][_0x48fb6f(0x306)]()),V(this,_0x48fb6f(0x259),new _0x20945a()),V(this,_0x48fb6f(0x24f),this[_0x48fb6f(0x259)]['asObservable']()),V(this,_0x48fb6f(0x18b)),(this['_localeService']=_0x27c95b,this[_0x48fb6f(0x211)]=_0x30c05f,this['_sheetsPivotTableConfigModel']=_0x175273,this['_univerInstanceService']=_0x2ced0a,this[_0x48fb6f(0x320)]=_0x167c02,this[_0x48fb6f(0x1a7)](),this[_0x48fb6f(0x2cd)]());}[_0x26db4b(0x2cd)](){const _0x693907=_0x26db4b;this['disposeWithMe'](this[_0x693907(0x2e9)][_0x693907(0x1bb)](_0x4aef6b[_0x693907(0x1c5)])['subscribe'](_0xc7b866=>{const _0x34d5fe=_0x693907;this['deleteUnitId'](_0xc7b866[_0x34d5fe(0x30a)]());}));}[_0x26db4b(0x1a7)](){const _0x56d4b4=_0x26db4b;this[_0x56d4b4(0x18b)]=fo(this['_injector'],ko,'',{});}[_0x26db4b(0x2ac)](_0x29a551){const _0x2b4af5=_0x26db4b,{view:_0x5422c2,unitId:_0x42ef17,subUnitId:_0x2ce44c,pivotTableId:_0x54f3c3,type:_0x285a78}=_0x29a551,_0x4a8253=this[_0x2b4af5(0x2bc)][_0x2b4af5(0x13b)](_0x42ef17,_0x2ce44c,_0x54f3c3);if(!_0x5422c2||!_0x4a8253||_0x285a78===B[_0x2b4af5(0x230)])return;const {pageView:_0x3c73eb,cornerView:_0x234a73,rowView:_0x2fa593,colView:_0x1ae497,dataView:_0x51a0fe}=_0x5422c2,_0xd962c7=_0x4a8253[_0x2b4af5(0x20b)],_0x387027=_0x4a8253[_0x2b4af5(0x26b)],_0x514b6b=this[_0x2b4af5(0xeb)](_0x42ef17,_0x2ce44c),_0x402b14=this[_0x2b4af5(0x166)](_0x42ef17,_0x2ce44c,_0x54f3c3);if(_0x387027)return this['_updateRenderEmptyCache'](_0x29a551,_0x514b6b,_0xd962c7,_0x402b14);{const _0x471aa7=ge(_0xd962c7,_0x3c73eb,!0x0),_0x4d4b49=_0x3c73eb[_0x2b4af5(0xed)]>=0x0?_0x3c73eb['lastRow']+0x1:0x0,_0x250336=_0x234a73[_0x2b4af5(0x1be)](),_0x58a719=_0x234a73[_0x2b4af5(0x244)](),_0x3998d6=_0x471aa7[_0x2b4af5(0x20c)]>0x0?It:0x0,_0x148a9f=ge({'row':_0xd962c7[_0x2b4af5(0x198)]+_0x4d4b49+_0x3998d6,'col':_0xd962c7[_0x2b4af5(0x2be)]},_0x234a73,!0x1,!0x1),_0x40c569=ge({'row':_0xd962c7[_0x2b4af5(0x198)]+_0x4d4b49+_0x3998d6+_0x250336,'col':_0xd962c7[_0x2b4af5(0x2be)]},_0x2fa593,!0x1,!0x0),_0x5bb063=ge({'row':_0xd962c7[_0x2b4af5(0x198)]+_0x4d4b49+_0x3998d6,'col':_0xd962c7['col']+_0x58a719},_0x1ae497,!0x1,!0x0),_0x38bdd5=ge({'row':_0xd962c7[_0x2b4af5(0x198)]+_0x4d4b49+_0x3998d6+_0x250336,'col':_0xd962c7['col']+_0x58a719},_0x51a0fe,!0x1,!0x1);_0x402b14['rangesInfo']={'rowRanges':_0x40c569,'colRanges':_0x5bb063,'cornerRanges':_0x148a9f,'dataRanges':_0x38bdd5,'pageRanges':_0x471aa7};const _0x2a14e4=yi(this[_0x2b4af5(0x211)],_0x5422c2,_0x4a8253,this[_0x2b4af5(0x18b)]),{valueMatrix:_0x429808,rowInfo:_0x46b812,colInfo:_0x441993,cornerInfo:_0x1241e3,rowHeaderMap:_0xcf40c4,colHeaderMap:_0x4b5ed1}=_0x2a14e4;return _0x402b14[_0x2b4af5(0xca)]={'rowInfo':_0x46b812,'colInfo':_0x441993,'cornerInfo':_0x1241e3},_0x402b14[_0x2b4af5(0x27b)]={'rowHeaderMap':_0xcf40c4,'colHeaderMap':_0x4b5ed1},_0x429808['forEach']((_0x4ba5b5,_0xd0d11)=>{const _0x45b08a=_0x2b4af5;Object[_0x45b08a(0x301)](_0xd0d11)[_0x45b08a(0x2ab)](_0x12a0e1=>{const _0x41e373=+_0x12a0e1,_0x39c0d0=_0x429808['getValue'](_0x4ba5b5,_0x41e373);_0x514b6b['setValue'](_0x4ba5b5,_0x41e373,_0x39c0d0);});}),this[_0x2b4af5(0x259)]['next']({'unitId':_0x42ef17,'subUnitId':_0x2ce44c,'valueMatrix':_0x514b6b,'rangesCache':_0x402b14['rangesInfo'],'pivotTableId':_0x54f3c3,'type':_0x29a551[_0x2b4af5(0xc7)]}),this[_0x2b4af5(0x2bc)][_0x2b4af5(0x109)](_0x42ef17,_0x2ce44c,_0x54f3c3,_0x514b6b,_0x402b14['rangesInfo']),this[_0x2b4af5(0x320)][_0x2b4af5(0x1f4)](_0x42ef17,_0x2ce44c,Lt,this['_createExclusiveRange'](_0x402b14[_0x2b4af5(0x213)],_0x54f3c3)),{'rangeCache':_0x402b14['rangesInfo'],'matrix':_0x514b6b};}}['_updateRenderEmptyCache'](_0x522325,_0x4f697d,_0x4a00a2,_0x36c749){const _0x12c72f=_0x26db4b,_0x5521b5=this[_0x12c72f(0x31a)]['t'],{unitId:_0x409fb0,subUnitId:_0x4d9044,pivotTableId:_0x8d43cb}=_0x522325,_0xdc6c6b={'filter':_0x5521b5('sheets-pivot.emptyPivot.filter'),'row':_0x5521b5(_0x12c72f(0xc9)),'column':_0x5521b5(_0x12c72f(0x1d6)),'values':_0x5521b5(_0x12c72f(0x180))},{matrixCache:_0x6d9af3,rangesCache:_0x1f09c4}=Jo(_0xdc6c6b,_0x4a00a2);return _0x6d9af3[_0x12c72f(0x2f2)]((_0x596e75,_0x5a52e3,_0x24c7f9)=>{const _0x3789d0=_0x12c72f;_0x4f697d[_0x3789d0(0x237)](_0x596e75,_0x5a52e3,_0x24c7f9);}),_0x36c749[_0x12c72f(0x213)]=_0x1f09c4,this['_viewUpdate$'][_0x12c72f(0x2a8)]({'unitId':_0x409fb0,'subUnitId':_0x4d9044,'valueMatrix':_0x4f697d,'rangesCache':_0x1f09c4,'pivotTableId':_0x8d43cb,'type':_0x522325[_0x12c72f(0xc7)],'isEmpty':!0x0}),this[_0x12c72f(0x2bc)]['updateViewInfo'](_0x409fb0,_0x4d9044,_0x8d43cb,_0x4f697d,_0x1f09c4),this[_0x12c72f(0x320)][_0x12c72f(0x1f4)](_0x409fb0,_0x4d9044,Lt,this['_createExclusiveRange'](_0x1f09c4,_0x8d43cb)),{'rangeCache':_0x36c749['rangesInfo'],'matrix':_0x4f697d};}['_createExclusiveRange'](_0x51b0be,_0x25c06f){const _0x18dca7=_0x26db4b,_0x5867da=[],_0x1e162f=Bt(_0x51b0be);for(const _0x55ea73 of _0x1e162f)_0x5867da[_0x18dca7(0xe8)]({'groupId':_0x25c06f,'range':_0x55ea73});return _0x5867da;}[_0x26db4b(0x11f)](_0x57357d){const _0x105831=_0x26db4b;var _0x15ef66,_0x1cae38,_0x4d89cc,_0x3beb49;const {pivotTableId:_0x5edbad,unitId:_0xd4421f,subUnitId:_0x5a5a0a}=_0x57357d;if(!_0x5edbad||!_0xd4421f||!_0x5a5a0a)return;const _0x5209c4=this[_0x105831(0xeb)](_0xd4421f,_0x5a5a0a),_0x62b7bd=(_0x1cae38=(_0x15ef66=this[_0x105831(0xc2)][_0x105831(0x15d)](_0xd4421f))==null?void 0x0:_0x15ef66[_0x105831(0x15d)](_0x5a5a0a))==null?void 0x0:_0x1cae38[_0x105831(0x15d)](_0x5edbad);if(_0x62b7bd!=null&&_0x62b7bd[_0x105831(0x213)]){for(const _0x205269 of Object[_0x105831(0x301)](_0x62b7bd[_0x105831(0x213)]))_0x62b7bd[_0x105831(0x213)][_0x205269][_0x105831(0x2ab)](_0x53097a=>{const _0x312161=_0x105831;for(let _0x18d360=_0x53097a[_0x312161(0x15f)];_0x18d360<=_0x53097a[_0x312161(0x234)];_0x18d360++)for(let _0x4e760b=_0x53097a[_0x312161(0x148)];_0x4e760b<=_0x53097a[_0x312161(0x187)];_0x4e760b++)_0x5209c4[_0x312161(0x277)](_0x18d360,_0x4e760b);});}_0x62b7bd&&((_0x3beb49=(_0x4d89cc=this[_0x105831(0xc2)]['get'](_0xd4421f))==null?void 0x0:_0x4d89cc['get'](_0x5a5a0a))==null||_0x3beb49[_0x105831(0x21b)](_0x5edbad)),this['_viewUpdate$']['next']({'unitId':_0xd4421f,'subUnitId':_0x5a5a0a,'valueMatrix':_0x5209c4,'pivotTableId':_0x5edbad,'rangesCache':void 0x0,'type':_0x57357d[_0x105831(0xc7)]}),this[_0x105831(0x320)]['clearExclusiveRangesByGroupId'](_0xd4421f,_0x5a5a0a,Lt,_0x5edbad);}[_0x26db4b(0x166)](_0x140739,_0x4c6e6c,_0x28a5b1){const _0x11227d=_0x26db4b;var _0x5360d1,_0x4c91dd,_0x3d0563,_0x3f969b,_0x564b33,_0x16a240;return this['_pivotRenderInfoCache'][_0x11227d(0x18a)](_0x140739)||this['_pivotRenderInfoCache'][_0x11227d(0x210)](_0x140739,new Map()),(_0x5360d1=this[_0x11227d(0xc2)][_0x11227d(0x15d)](_0x140739))!=null&&_0x5360d1[_0x11227d(0x18a)](_0x4c6e6c)||(_0x4c91dd=this[_0x11227d(0xc2)]['get'](_0x140739))==null||_0x4c91dd[_0x11227d(0x210)](_0x4c6e6c,new Map()),(_0x3f969b=(_0x3d0563=this['_pivotRenderInfoCache'][_0x11227d(0x15d)](_0x140739))==null?void 0x0:_0x3d0563[_0x11227d(0x15d)](_0x4c6e6c))!=null&&_0x3f969b[_0x11227d(0x18a)](_0x28a5b1)||(_0x16a240=(_0x564b33=this[_0x11227d(0xc2)]['get'](_0x140739))==null?void 0x0:_0x564b33[_0x11227d(0x15d)](_0x4c6e6c))==null||_0x16a240[_0x11227d(0x210)](_0x28a5b1,{}),this[_0x11227d(0xc2)][_0x11227d(0x15d)](_0x140739)['get'](_0x4c6e6c)[_0x11227d(0x15d)](_0x28a5b1);}['_ensurePivotItemRenderValueMatrixCache'](_0x101117,_0x4b04f9){const _0x2a22e6=_0x26db4b;var _0x14b639,_0x160eba;return this['_pivotRenderValueMatrixCache'][_0x2a22e6(0x18a)](_0x101117)||this[_0x2a22e6(0x197)]['set'](_0x101117,new Map()),(_0x14b639=this[_0x2a22e6(0x197)][_0x2a22e6(0x15d)](_0x101117))!=null&&_0x14b639[_0x2a22e6(0x18a)](_0x4b04f9)||(_0x160eba=this[_0x2a22e6(0x197)][_0x2a22e6(0x15d)](_0x101117))==null||_0x160eba[_0x2a22e6(0x210)](_0x4b04f9,new _0xbef08f()),this[_0x2a22e6(0x197)][_0x2a22e6(0x15d)](_0x101117)[_0x2a22e6(0x15d)](_0x4b04f9);}[_0x26db4b(0x1e7)](_0x2a74e6,_0x2d5373,_0xef29cc,_0x38a6a2){const _0x582f39=_0x26db4b;var _0x2c63e4,_0x36e82a;const _0x346a9f=(_0x36e82a=(_0x2c63e4=this['_pivotRenderValueMatrixCache']['get'](_0x2a74e6))==null?void 0x0:_0x2c63e4[_0x582f39(0x15d)](_0x2d5373))==null?void 0x0:_0x36e82a[_0x582f39(0xdc)](_0xef29cc,_0x38a6a2);if(_0x346a9f!=null)return _0x346a9f;}[_0x26db4b(0x21a)](_0x1628d6,_0x383aea,_0xc8c25a,_0x5bb248){const _0x4121ad=_0x26db4b;var _0x51748f;const _0x22edd7=_0x158376(_0xc8c25a,_0x5bb248),_0x1493ef=(_0x51748f=this['_pivotRenderInfoCache']['get'](_0x1628d6))==null?void 0x0:_0x51748f[_0x4121ad(0x15d)](_0x383aea);return _0x1493ef?Array[_0x4121ad(0x27c)](_0x1493ef[_0x4121ad(0x301)]())[_0x4121ad(0x26f)](_0x54a2f6=>{const _0x21726a=_0x4121ad,_0xa9af0f=_0x1493ef[_0x21726a(0x15d)](_0x54a2f6),_0x179f38=_0xa9af0f==null?void 0x0:_0xa9af0f['rangesInfo'];return _0x179f38?Object[_0x21726a(0x301)](_0x179f38)[_0x21726a(0x270)](_0x53b1f8=>_0x179f38[_0x53b1f8][_0x21726a(0x270)](_0x2c4057=>_0x4d6abc[_0x21726a(0x1f5)](_0x2c4057,_0x22edd7))):!0x1;}):void 0x0;}[_0x26db4b(0x158)](_0x1a6b3b,_0x4229c7,_0x41e0b4){const _0x157ed9=_0x26db4b;var _0x4dae45;const _0x420801=(_0x4dae45=this[_0x157ed9(0xc2)][_0x157ed9(0x15d)](_0x1a6b3b))==null?void 0x0:_0x4dae45['get'](_0x4229c7),_0x13b640=[];return _0x420801&&Array[_0x157ed9(0x27c)](_0x420801['keys']())[_0x157ed9(0x2ab)](_0x3644af=>{const _0x413741=_0x157ed9,_0x50ba30=_0x420801[_0x413741(0x15d)](_0x3644af),_0x1f65ef=_0x50ba30==null?void 0x0:_0x50ba30[_0x413741(0x213)];if(_0x1f65ef)for(const _0x25155b of Object[_0x413741(0x271)](_0x1f65ef)){let _0x50c44b=!0x1;for(const _0x44a6d7 of _0x25155b)if(_0x4d6abc[_0x413741(0xc3)](_0x44a6d7,_0x41e0b4)){_0x13b640[_0x413741(0xe8)](_0x3644af),_0x50c44b=!0x0;break;}if(_0x50c44b)break;}}),_0x13b640;}[_0x26db4b(0x2e3)](_0x49d6f7,_0x5c4de0){const _0x326865=_0x26db4b;var _0x350269,_0x4df35e;return(_0x4df35e=(_0x350269=this[_0x326865(0x197)]['get'](_0x49d6f7))==null?void 0x0:_0x350269[_0x326865(0x15d)](_0x5c4de0))!=null?_0x4df35e:new _0xbef08f();}[_0x26db4b(0x17b)](_0x3b5e54,_0xe6c284){const _0x36a735=_0x26db4b;var _0x25f011;return(_0x25f011=this['_pivotRenderInfoCache'][_0x36a735(0x15d)](_0x3b5e54))==null?void 0x0:_0x25f011[_0x36a735(0x15d)](_0xe6c284);}[_0x26db4b(0x2da)](_0x4e9bb2,_0x1369ab,_0x13dbb6){const _0x4f9151=_0x26db4b;var _0x2e4069,_0xbb5b20;return(_0xbb5b20=(_0x2e4069=this[_0x4f9151(0xc2)][_0x4f9151(0x15d)](_0x4e9bb2))==null?void 0x0:_0x2e4069['get'](_0x1369ab))==null?void 0x0:_0xbb5b20[_0x4f9151(0x15d)](_0x13dbb6);}['deleteUnitId'](_0x4258eb){const _0x246280=_0x26db4b;this[_0x246280(0xc2)][_0x246280(0x21b)](_0x4258eb),this[_0x246280(0x197)][_0x246280(0x21b)](_0x4258eb);}['markDirty'](_0x320ee0,_0x28f3c7){const _0x3928ea=_0x26db4b;this[_0x3928ea(0xff)][_0x3928ea(0x2a8)]({'unitId':_0x320ee0,'subUnitId':_0x28f3c7});}};Ne=qi([rt(0x0,_0x58298c(_0x388073)),rt(0x1,_0x58298c(_0x4e6692)),rt(0x2,_0x58298c(ve)),rt(0x3,_0x58298c(_0x399741)),rt(0x4,_0x58298c(_0xfce298))],Ne);var Yi=Object['getOwnPropertyDescriptor'],zi=(_0x4d4be4,_0x3c2cda,_0x561e3d,_0x33c8a2)=>{for(var _0x3c56db=_0x33c8a2>0x1?void 0x0:_0x33c8a2?Yi(_0x3c2cda,_0x561e3d):_0x3c2cda,_0x50cb6b=_0x4d4be4['length']-0x1,_0xb7756;_0x50cb6b>=0x0;_0x50cb6b--)(_0xb7756=_0x4d4be4[_0x50cb6b])&&(_0x3c56db=_0xb7756(_0x3c56db)||_0x3c56db);return _0x3c56db;},Mo=(_0x366aec,_0x23e690)=>(_0x31c037,_0x3a68ce)=>_0x23e690(_0x31c037,_0x3a68ce,_0x366aec);let ie=class extends _0x37fbd9{constructor(_0x5a1958,_0x5bf6a8){const _0x1bfdbd=_0x26db4b;super(),V(this,_0x1bfdbd(0x326),new _0x3e5cf1({'PIVOT_PERFORM_CHECK':Se})),V(this,_0x1bfdbd(0xde),new _0x3bc628({'PIVOT_MUTATION_GENERATE':Ho})),(this[_0x1bfdbd(0x111)]=_0x5a1958,this[_0x1bfdbd(0x305)]=_0x5bf6a8,this[_0x1bfdbd(0x2ff)]());}[_0x26db4b(0x2ff)](){this['_initViewModelBySheetInterceptor']();}[_0x26db4b(0x140)](_0x173344){const _0x234a92=_0x26db4b;return this[_0x234a92(0x326)][_0x234a92(0x2ef)](Se)(!0x1,_0x173344);}[_0x26db4b(0x1ab)](){const _0x493da4=_0x26db4b;this[_0x493da4(0x2b8)](this[_0x493da4(0x111)]['intercept'](_0x4d3a48[_0x493da4(0x24b)],{'priority':0xc8,'effect':_0x2597f0[_0x493da4(0x2b5)]|_0x2597f0['Style'],'handler':(_0x3fd159,_0x430d02,_0xbe06b7)=>{const _0x170d51=_0x493da4,{row:_0x593537,col:_0x272497,unitId:_0x5bd01c,subUnitId:_0x2e003b,workbook:_0x3d3467}=_0x430d02,_0x1419c1=this[_0x170d51(0x305)][_0x170d51(0x1e7)](_0x5bd01c,_0x2e003b,_0x593537,_0x272497);if(!_0x1419c1)return _0xbe06b7(_0x3fd159);const _0x5151e8={..._0x3fd159};(_0x1419c1['v']||_0x1419c1['v']===0x0)&&(_0x5151e8['v']=_0x1419c1['v']),_0x1419c1['t']&&(_0x5151e8['t']=_0x1419c1['t']);const _0x2af892=(typeof(_0x3fd159==null?void 0x0:_0x3fd159['s'])==_0x170d51(0x2cf)?_0x3d3467[_0x170d51(0x1ec)]()[_0x170d51(0x15d)](_0x3fd159==null?void 0x0:_0x3fd159['s']):_0x3fd159==null?void 0x0:_0x3fd159['s'])||{},_0x5ea899=_0x3d3467[_0x170d51(0x1ec)]()[_0x170d51(0x15d)](_0x1419c1['s']),_0x36e4e2={..._0x5ea899,..._0x2af892};_0x5ea899!=null&&_0x5ea899['n']&&(_0x36e4e2['n']=_0x5ea899['n']);const _0x23ed18=_0x3d3467[_0x170d51(0x1ec)]()[_0x170d51(0x237)](_0x36e4e2);return _0x5151e8['s']=_0x23ed18,(_0x1419c1[_0x170d51(0x104)]===_0x258f88[_0x170d51(0x1c4)]||_0x1419c1[_0x170d51(0x104)]===_0x258f88['Expand'])&&(_0x5151e8[_0x170d51(0xc8)]={},_0x5151e8[_0x170d51(0xc8)]['leftOffset']=li),_0xbe06b7(_0x5151e8);}}));}};ie=zi([Mo(0x0,_0x58298c(_0x27e4a5)),Mo(0x1,_0x58298c(Ne))],ie);function _0x1fae(_0x3bc80a,_0x1ec955){const _0x581cbe=_0x581c();return _0x1fae=function(_0x1fae42,_0x3887ee){_0x1fae42=_0x1fae42-0xc2;let _0x418ecc=_0x581cbe[_0x1fae42];return _0x418ecc;},_0x1fae(_0x3bc80a,_0x1ec955);}function Nt(_0x2a1d82,_0x4cb9b2){const _0x1ae990=_0x26db4b;switch(_0x4cb9b2){case _0x42f9ea[_0x1ae990(0x2b5)]:return _0x2a1d82[_0x1ae990(0x2f5)];case _0x42f9ea[_0x1ae990(0x256)]:return _0x2a1d82[_0x1ae990(0x1e0)];case _0x42f9ea['Row']:return _0x2a1d82[_0x1ae990(0x16d)];case _0x42f9ea['Column']:return _0x2a1d82[_0x1ae990(0xce)];default:return[];}}function Qe(_0x24952d,_0x1f0277){const _0x2c23f1=_0x26db4b;return _0x24952d[_0x2c23f1(0x2b7)][_0x1f0277]||_0x24952d['dimension'][_0x1f0277];}function Xi(_0x1da9e3,_0x3cc211){const _0x2c8edb=_0x26db4b,{area:_0x51edf8,fieldJson:_0x53e095,index:_0x12cf48}=_0x3cc211;_0x51edf8===_0x42f9ea['Value']?_0x1da9e3[_0x2c8edb(0x2b7)][_0x53e095['id']]=_0x53e095:_0x1da9e3[_0x2c8edb(0x24e)][_0x53e095['id']]=_0x53e095,Nt(_0x1da9e3,_0x51edf8)[_0x2c8edb(0x110)](_0x12cf48,0x0,_0x53e095['id']);}function Zi(_0x33b0a1,_0x15c653){const _0x1f4055=_0x26db4b,{area:_0x4eb11a,fieldId:_0x3c0878,index:_0x707f7c}=_0x15c653;_0x4eb11a===_0x42f9ea['Value']?delete _0x33b0a1[_0x1f4055(0x2b7)][_0x3c0878]:delete _0x33b0a1[_0x1f4055(0x24e)][_0x3c0878],Nt(_0x33b0a1,_0x4eb11a)['splice'](_0x707f7c,0x1);}function es(_0x48f706,_0x3911b6){const {fieldId:_0x406eef,name:_0x2968d2}=_0x3911b6,_0x41d05c=Qe(_0x48f706,_0x406eef);_0x41d05c&&(_0x41d05c['displayName']=_0x2968d2);}function ts(_0x19aa86,_0x14ed97){const _0x469936=_0x26db4b,{fieldId:_0x63c7d8,collapse:_0x4207de,item:_0x31fbc7}=_0x14ed97;_0x31fbc7!==void 0x0?(_0x19aa86['collapseInfo'][_0x63c7d8]=_0x19aa86[_0x469936(0x19f)][_0x63c7d8]||{},_0x19aa86[_0x469936(0x19f)][_0x63c7d8][_0x31fbc7]=_0x4207de):_0x19aa86[_0x469936(0x19f)][_0x63c7d8]=_0x4207de;}function os(_0x3fae87,_0x1e0413){const _0x42155b=_0x26db4b,{fieldId:_0x566557,format:_0x39e6ac}=_0x1e0413,_0x2728be=Qe(_0x3fae87,_0x566557);_0x2728be&&(_0x2728be[_0x42155b(0x30b)]=_0x39e6ac);}function ns(_0x2c8047,_0x892854){const _0x1c19a7=_0x26db4b,{fieldId:_0x13aa94,filterInfo:_0x207f00}=_0x892854,_0x43951f=Qe(_0x2c8047,_0x13aa94);_0x43951f&&(_0x43951f[_0x1c19a7(0x193)]=_0x207f00);}function is(_0x397634,_0x2b22bc){const _0x5b9b86=_0x26db4b,{fieldId:_0x50db93,filterInfo:_0x743e74}=_0x2b22bc,_0x37d34f=_0x397634[_0x5b9b86(0x258)]['filter'](_0x12b74e=>_0x12b74e['fieldId']!==_0x50db93);_0x743e74&&_0x37d34f['push']({'fieldId':_0x50db93,'filterInfo':_0x743e74}),_0x397634['valueFilter']=_0x37d34f;}function ss(_0x457c35,_0x279c1a){const _0x48424a=_0x26db4b,{fieldId:_0x4575cc,subtotalType:_0x347922}=_0x279c1a,_0x4e42ba=Qe(_0x457c35,_0x4575cc);_0x4e42ba&&(_0x4e42ba[_0x48424a(0x1fa)]=_0x347922);}function as(_0x5f1841,_0x1c127d){const _0x117feb=_0x26db4b,{fieldId:_0x30656f,oldArea:_0x2dcd41,area:_0x208c63,oldIndex:_0x17ecf4,index:_0x467f9a}=_0x1c127d,_0x18d3b1=_0x2dcd41!==_0x42f9ea[_0x117feb(0x2b5)]&&_0x208c63===_0x42f9ea['Value'],_0x63b3c2=_0x2dcd41===_0x42f9ea['Value']&&_0x208c63!==_0x42f9ea['Value'];if(_0x18d3b1||_0x63b3c2){const _0x42ce9a=Qe(_0x5f1841,_0x30656f);_0x42ce9a&&(_0x18d3b1?(delete _0x5f1841[_0x117feb(0x24e)][_0x30656f],_0x5f1841[_0x117feb(0x2b7)][_0x30656f]=_0x42ce9a):(delete _0x5f1841[_0x117feb(0x2b7)][_0x30656f],_0x5f1841[_0x117feb(0x24e)][_0x30656f]=_0x42ce9a));}const _0x590d59=Nt(_0x5f1841,_0x2dcd41),_0x85c53e=Nt(_0x5f1841,_0x208c63);_0x590d59[_0x117feb(0x110)](_0x17ecf4,0x1),_0x85c53e[_0x117feb(0x110)](_0x467f9a,0x0,_0x30656f);}function rs(_0x38b158,_0x2f43ef){const _0x103e9a=_0x26db4b,{valuePosition:_0x1d54e5,index:_0x33bf4}=_0x2f43ef;_0x38b158[_0x103e9a(0x21c)]=_0x1d54e5,_0x38b158[_0x103e9a(0x26e)]=_0x33bf4;}function ls(_0x15ce95,_0x427e33){const _0x1e78f9=_0x26db4b,{tableFieldId:_0x534474,sourceName:_0x1428ea,dataFieldId:_0x29f984}=_0x427e33,_0x3d7b64=Qe(_0x15ce95,_0x534474);_0x3d7b64&&(_0x3d7b64[_0x1e78f9(0x206)]=_0x1428ea,_0x3d7b64['dataFieldId']=_0x29f984);}function cs(_0x5f154f,_0x42d8d3){const {fieldId:_0x27bf52,sortInfo:_0x30c63a}=_0x42d8d3,_0x1567ff=Qe(_0x5f154f,_0x27bf52);_0x1567ff&&(_0x1567ff['sortInfo']=_0x30c63a);}function ds(_0x1eceb5,_0x4be372){const _0x4de4cc=_0x26db4b,{options:_0x56959d}=_0x4be372;_0x1eceb5['options']={..._0x1eceb5[_0x4de4cc(0x224)],..._0x56959d};}const Ht={'type':_0xdd0bcc[_0x26db4b(0x201)],'id':_0x26db4b(0xc5),'handler'(_0x2a7c84,_0x12ad53){const _0x44799f=_0x26db4b;if(!_0x12ad53)return!0x1;if(!!_0x2a7c84[_0x44799f(0x15d)](_0x355993)[_0x44799f(0x316)](K))return!0x0;const _0x4a49bc=_0x2a7c84[_0x44799f(0x15d)](H),{pivotTableId:_0x25128b,fieldJson:_0xaa02b1,area:_0x59b421,index:_0x297cf3,unitId:_0x1b2edb,subUnitId:_0x2be30e}=_0x12ad53,_0x9bb643=_0x4a49bc[_0x44799f(0x28c)](_0x25128b);if(!_0x9bb643)return!0x1;let _0x1b65c5;_0x59b421===_0x42f9ea['Value']?_0x1b65c5=_0x1e31b3(_0xaa02b1):_0x1b65c5=_0x530ad3(_0xaa02b1),_0x9bb643[_0x44799f(0x176)](_0x1b65c5,_0x59b421,_0x297cf3);const _0x452ada=_0x4a49bc[_0x44799f(0xf7)](_0x1b2edb,_0x2be30e,_0x25128b);Xi(_0x452ada,_0x12ad53);const _0x365356=_0x4a49bc[_0x44799f(0x13b)](_0x1b2edb,_0x2be30e,_0x25128b);return _0x4a49bc[_0x44799f(0x1d3)]({'unitId':_0x1b2edb,'subUnitId':_0x2be30e,'token':_0x25128b,'type':B[_0x44799f(0x16f)],'pivotConfig':_0x365356}),!0x0;}},Qt={'type':_0xdd0bcc[_0x26db4b(0x201)],'id':'sheet.mutation.remove-pivot-field','handler'(_0x17f79e,_0x306b31){const _0xa03cf4=_0x26db4b;if(!_0x306b31)return!0x1;if(!!_0x17f79e['get'](_0x355993)[_0xa03cf4(0x316)](K))return!0x0;const _0xba3fae=_0x17f79e[_0xa03cf4(0x15d)](H),{pivotTableId:_0x4d54d5,fieldId:_0x5300d3,unitId:_0x4a568e,subUnitId:_0x53dc54}=_0x306b31,_0x308cb4=_0xba3fae[_0xa03cf4(0x28c)](_0x4d54d5);if(!_0x308cb4)return!0x1;_0x308cb4[_0xa03cf4(0x1dd)](_0x5300d3);const _0x1f0652=_0xba3fae['getPivotTableModelConfig'](_0x4a568e,_0x53dc54,_0x4d54d5);Zi(_0x1f0652,_0x306b31);const _0x1ea368=_0xba3fae['getPivotTableConfig'](_0x4a568e,_0x53dc54,_0x4d54d5);return _0xba3fae[_0xa03cf4(0x1d3)]({'unitId':_0x4a568e,'subUnitId':_0x53dc54,'token':_0x4d54d5,'type':B[_0xa03cf4(0x16f)],'pivotConfig':_0x1ea368}),!0x0;}},$t={'type':_0xdd0bcc[_0x26db4b(0x201)],'id':_0x26db4b(0x250),'handler'(_0x186234,_0x3a2e62){const _0x28e893=_0x26db4b;if(!_0x3a2e62)return!0x1;if(!!_0x186234['get'](_0x355993)[_0x28e893(0x316)](K))return!0x0;const _0x469424=_0x186234[_0x28e893(0x15d)](H),{unitId:_0x3cfe15,subUnitId:_0x40496d,pivotTableId:_0x4ec970,fieldId:_0x41ccb3,name:_0xa66d30}=_0x3a2e62,_0x880790=_0x469424[_0x28e893(0x28c)](_0x4ec970);if(!_0x880790)return!0x1;_0x880790[_0x28e893(0x1ee)](_0x41ccb3,_0xa66d30);const _0x1d477e=_0x469424[_0x28e893(0xf7)](_0x3cfe15,_0x40496d,_0x4ec970);return es(_0x1d477e,_0x3a2e62),_0x469424[_0x28e893(0x1d3)]({'unitId':_0x3cfe15,'subUnitId':_0x40496d,'token':_0x4ec970,'type':B[_0x28e893(0x16f)]}),!0x0;}},Jt={'type':_0xdd0bcc['MUTATION'],'id':_0x26db4b(0x14f),'handler'(_0x25a2a3,_0x5ec5b9){const _0x32d3ea=_0x26db4b;if(!_0x5ec5b9)return!0x1;if(!!_0x25a2a3[_0x32d3ea(0x15d)](_0x355993)[_0x32d3ea(0x316)](K))return!0x0;const _0x6efc84=_0x25a2a3['get'](H),{unitId:_0x4dc667,subUnitId:_0x5d4bdd,pivotTableId:_0x100bc1,fieldId:_0x375c74,collapse:_0x1d3b56,item:_0x4f4ded}=_0x5ec5b9,_0x1be8bb=_0x6efc84[_0x32d3ea(0x28c)](_0x100bc1);if(!_0x1be8bb)return!0x1;_0x1be8bb['setCollapse'](_0x375c74,_0x1d3b56,_0x4f4ded);const _0x436b8e=_0x6efc84[_0x32d3ea(0xf7)](_0x4dc667,_0x5d4bdd,_0x100bc1);return ts(_0x436b8e,_0x5ec5b9),_0x6efc84[_0x32d3ea(0x1d3)]({'unitId':_0x4dc667,'subUnitId':_0x5d4bdd,'token':_0x100bc1,'type':B[_0x32d3ea(0x16f)]}),!0x0;}},Gt={'type':_0xdd0bcc[_0x26db4b(0x201)],'id':_0x26db4b(0x1e4),'handler'(_0x54ab36,_0x1f8736){const _0x1342fb=_0x26db4b;if(!_0x1f8736)return!0x1;if(!!_0x54ab36[_0x1342fb(0x15d)](_0x355993)['getConfig'](K))return!0x0;const _0x208aec=_0x54ab36['get'](H),{unitId:_0x326008,subUnitId:_0x2476bd,pivotTableId:_0xcf9585,fieldId:_0x1b3452,format:_0x1610dc}=_0x1f8736,_0x430fd8=_0x208aec['getPivotTableInstance'](_0xcf9585);if(!_0x430fd8)return!0x1;_0x430fd8[_0x1342fb(0x24c)](_0x1b3452,_0x1610dc);const _0x89cc4c=_0x208aec[_0x1342fb(0xf7)](_0x326008,_0x2476bd,_0xcf9585);return os(_0x89cc4c,_0x1f8736),_0x208aec['addDirtyPivotTable']({'unitId':_0x326008,'subUnitId':_0x2476bd,'token':_0xcf9585,'type':B[_0x1342fb(0x16f)]}),!0x0;}},Wt={'type':_0xdd0bcc[_0x26db4b(0x201)],'id':_0x26db4b(0x1e8),'handler'(_0xc40104,_0x58e37c){const _0x551ddd=_0x26db4b;if(!_0x58e37c)return!0x1;if(!!_0xc40104[_0x551ddd(0x15d)](_0x355993)[_0x551ddd(0x316)](K))return!0x0;const _0xb4efec=_0xc40104[_0x551ddd(0x15d)](H),{unitId:_0x5f1266,subUnitId:_0x86ebee,pivotTableId:_0x344f73,fieldId:_0x3286ec,filterInfo:_0x336dd6}=_0x58e37c,_0x2c4498=_0xb4efec[_0x551ddd(0x28c)](_0x344f73);if(!_0x2c4498)return!0x1;_0x2c4498['setLabelFilterInfo'](_0x3286ec,_0x336dd6);const _0x55d995=_0xb4efec[_0x551ddd(0xf7)](_0x5f1266,_0x86ebee,_0x344f73);return ns(_0x55d995,_0x58e37c),_0xb4efec[_0x551ddd(0x1d3)]({'unitId':_0x5f1266,'subUnitId':_0x86ebee,'token':_0x344f73,'type':B[_0x551ddd(0x16f)]}),!0x0;}},Kt={'type':_0xdd0bcc['MUTATION'],'id':_0x26db4b(0x275),'handler'(_0x41e1c3,_0x44dc44){const _0x3a0b50=_0x26db4b;if(!_0x44dc44)return!0x1;if(!!_0x41e1c3[_0x3a0b50(0x15d)](_0x355993)['getConfig'](K))return!0x0;const _0x3479ae=_0x41e1c3['get'](H),{unitId:_0x37c58e,subUnitId:_0x1dd833,pivotTableId:_0x30e9ba,options:_0x3219e6}=_0x44dc44,_0x49030e=_0x3479ae[_0x3a0b50(0x28c)](_0x30e9ba);if(!_0x49030e)return!0x1;_0x49030e[_0x3a0b50(0x1ea)](_0x3219e6);const _0x733636=_0x3479ae[_0x3a0b50(0xf7)](_0x37c58e,_0x1dd833,_0x30e9ba);return ds(_0x733636,_0x44dc44),_0x3479ae[_0x3a0b50(0x1d3)]({'unitId':_0x37c58e,'subUnitId':_0x1dd833,'token':_0x30e9ba,'type':B[_0x3a0b50(0x16f)]}),!0x0;}},qt={'type':_0xdd0bcc['MUTATION'],'id':'sheet.mutation.set-pivot-sort-info','handler'(_0x1a2abb,_0x1dbec9){const _0x771c91=_0x26db4b;if(!_0x1dbec9)return!0x1;if(!!_0x1a2abb[_0x771c91(0x15d)](_0x355993)['getConfig'](K))return!0x0;const _0x9f6414=_0x1a2abb[_0x771c91(0x15d)](H),{unitId:_0x3802f1,subUnitId:_0x2067da,pivotTableId:_0x127f5b,sortInfo:_0x195851,fieldId:_0x1d3e4a}=_0x1dbec9,_0x28b028=_0x9f6414['getPivotTableInstance'](_0x127f5b);if(!_0x28b028)return!0x1;_0x28b028['setSortInfo'](_0x1d3e4a,_0x195851);const _0xe68fc1=_0x9f6414[_0x771c91(0xf7)](_0x3802f1,_0x2067da,_0x127f5b);return cs(_0xe68fc1,_0x1dbec9),_0x9f6414['addDirtyPivotTable']({'unitId':_0x3802f1,'subUnitId':_0x2067da,'token':_0x127f5b,'type':B['Set']}),!0x0;}},Yt={'type':_0xdd0bcc[_0x26db4b(0x201)],'id':_0x26db4b(0x11d),'handler'(_0x7b129e,_0x3795c7){const _0x27ff30=_0x26db4b;if(!_0x3795c7)return!0x1;if(!!_0x7b129e[_0x27ff30(0x15d)](_0x355993)[_0x27ff30(0x316)](K))return!0x0;const _0x21d529=_0x7b129e[_0x27ff30(0x15d)](H),{unitId:_0x48745b,subUnitId:_0x24f5d8,pivotTableId:_0x461ee2,fieldId:_0x14dd9f,subtotalType:_0x2c0add}=_0x3795c7,_0x904c75=_0x21d529['getPivotTableInstance'](_0x461ee2);if(!_0x904c75)return!0x1;_0x904c75[_0x27ff30(0x2e4)](_0x14dd9f,_0x2c0add);const _0x4aaddc=_0x21d529['getPivotTableModelConfig'](_0x48745b,_0x24f5d8,_0x461ee2);return ss(_0x4aaddc,_0x3795c7),_0x21d529['addDirtyPivotTable']({'unitId':_0x48745b,'subUnitId':_0x24f5d8,'token':_0x461ee2,'type':B[_0x27ff30(0x16f)]}),!0x0;}},zt={'type':_0xdd0bcc[_0x26db4b(0x201)],'id':_0x26db4b(0x16a),'handler'(_0x1ff9c8,_0x37d33b){const _0x85f76a=_0x26db4b;if(!_0x37d33b)return!0x1;if(!!_0x1ff9c8[_0x85f76a(0x15d)](_0x355993)[_0x85f76a(0x316)](K))return!0x0;const _0x4ab744=_0x1ff9c8[_0x85f76a(0x15d)](H),{unitId:_0x4f5cd5,subUnitId:_0x30ea2b,pivotTableId:_0x4d9858,fieldId:_0x3c9d41,filterInfo:_0x96e825}=_0x37d33b,_0x25aba7=_0x4ab744['getPivotTableInstance'](_0x4d9858);if(!_0x25aba7)return!0x1;_0x25aba7[_0x85f76a(0x18d)](_0x3c9d41,_0x96e825);const _0x5d860c=_0x4ab744['getPivotTableModelConfig'](_0x4f5cd5,_0x30ea2b,_0x4d9858);return is(_0x5d860c,_0x37d33b),_0x4ab744[_0x85f76a(0x1d3)]({'unitId':_0x4f5cd5,'subUnitId':_0x30ea2b,'token':_0x4d9858,'type':B[_0x85f76a(0x16f)]}),!0x0;}},Xt={'type':_0xdd0bcc[_0x26db4b(0x201)],'id':_0x26db4b(0x1f9),'handler'(_0x3c6c72,_0x5e7b0e){const _0x4efb98=_0x26db4b;if(!_0x5e7b0e)return!0x1;if(!!_0x3c6c72['get'](_0x355993)[_0x4efb98(0x316)](K))return!0x0;const _0x45eb79=_0x3c6c72['get'](H),{unitId:_0xdc92ec,subUnitId:_0x2aa08b,pivotTableId:_0x2ca12e,area:_0x558714,index:_0x4f6e04,fieldId:_0x22c80b}=_0x5e7b0e,_0x5e3f85=_0x45eb79['getPivotTableInstance'](_0x2ca12e);if(!_0x5e3f85)return!0x1;_0x5e3f85['updateFieldPosition'](_0x22c80b,_0x558714,_0x4f6e04);const _0x194eee=_0x45eb79[_0x4efb98(0xf7)](_0xdc92ec,_0x2aa08b,_0x2ca12e);return as(_0x194eee,_0x5e7b0e),_0x45eb79['addDirtyPivotTable']({'unitId':_0xdc92ec,'subUnitId':_0x2aa08b,'token':_0x2ca12e,'type':B[_0x4efb98(0x16f)]}),!0x0;}},Zt={'type':_0xdd0bcc[_0x26db4b(0x201)],'id':_0x26db4b(0x103),'handler'(_0xf428a2,_0x5f502a){const _0x339974=_0x26db4b;if(!_0x5f502a)return!0x1;if(!!_0xf428a2[_0x339974(0x15d)](_0x355993)[_0x339974(0x316)](K))return!0x0;const _0x26d878=_0xf428a2['get'](H),{unitId:_0x4d91b6,subUnitId:_0x335906,pivotTableId:_0x31de5a,sourceName:_0x4ffda2,dataFieldId:_0x2584b1,tableFieldId:_0x2fb8b7}=_0x5f502a,_0x3d222e=_0x26d878[_0x339974(0x28c)](_0x31de5a);if(!_0x3d222e)return!0x1;_0x3d222e[_0x339974(0x22e)](_0x2fb8b7,_0x4ffda2,_0x2584b1);const _0x3d8692=_0x26d878[_0x339974(0xf7)](_0x4d91b6,_0x335906,_0x31de5a);return ls(_0x3d8692,_0x5f502a),_0x26d878[_0x339974(0x1d3)]({'unitId':_0x4d91b6,'subUnitId':_0x335906,'token':_0x31de5a,'type':B[_0x339974(0x16f)]}),!0x0;}},eo={'type':_0xdd0bcc[_0x26db4b(0x201)],'id':_0x26db4b(0x13e),'handler'(_0xbf4daa,_0x36f31d){const _0x446a3a=_0x26db4b;if(!_0x36f31d)return!0x1;if(!!_0xbf4daa[_0x446a3a(0x15d)](_0x355993)[_0x446a3a(0x316)](K))return!0x0;const _0x46002c=_0xbf4daa['get'](H),{unitId:_0x229133,subUnitId:_0x33a1e4,pivotTableId:_0x2c4c83,valuePosition:_0x569d70,index:_0x1b7f6e}=_0x36f31d,_0x1b9f21=_0x46002c[_0x446a3a(0x28c)](_0x2c4c83);if(!_0x1b9f21)return!0x1;_0x1b9f21[_0x446a3a(0x2c0)](_0x569d70,_0x1b7f6e);const _0x4a02ed=_0x46002c[_0x446a3a(0xf7)](_0x229133,_0x33a1e4,_0x2c4c83);return rs(_0x4a02ed,_0x36f31d),_0x46002c[_0x446a3a(0x1d3)]({'unitId':_0x229133,'subUnitId':_0x33a1e4,'token':_0x2c4c83,'type':B[_0x446a3a(0x16f)]}),!0x0;}};function me(_0x1606c4,_0x3e0b5a,_0x41dcad){const _0x3ae2f7=_0x26db4b,{pivotTableId:_0x527c64,unitId:_0x1e0b77,subUnitId:_0x7d9757}=_0x3e0b5a,_0x334ad2=[],_0x3deeb7=[];for(const _0x21544f of _0x41dcad)switch(_0x21544f[_0x3ae2f7(0xc7)]){case _0x8b4841['AddField']:{const {fieldJson:_0x4a8dc5,area:_0x27f614,index:_0x4df285}=_0x21544f,_0x2d8434={'unitId':_0x1e0b77,'subUnitId':_0x7d9757,'pivotTableId':_0x527c64,'fieldJson':_0x4a8dc5,'area':_0x27f614,'index':_0x4df285},_0x3a026e={'unitId':_0x1e0b77,'subUnitId':_0x7d9757,'pivotTableId':_0x527c64,'fieldId':_0x4a8dc5['id'],'area':_0x27f614,'index':_0x4df285};_0x334ad2[_0x3ae2f7(0xe8)]({'id':Ht['id'],'params':_0x2d8434}),_0x3deeb7[_0x3ae2f7(0x325)]({'id':Qt['id'],'params':_0x3a026e});}break;case _0x8b4841[_0x3ae2f7(0x2a2)]:{const {fieldId:_0x109178,newSubtotalType:_0x4ceb05,oldSubtotalType:_0x5b95c2}=_0x21544f,_0x2a4a2b={'unitId':_0x1e0b77,'subUnitId':_0x7d9757,'pivotTableId':_0x527c64,'fieldId':_0x109178,'subtotalType':_0x4ceb05};_0x334ad2[_0x3ae2f7(0xe8)]({'id':Yt['id'],'params':_0x2a4a2b});const _0x41094d={'unitId':_0x1e0b77,'subUnitId':_0x7d9757,'pivotTableId':_0x527c64,'fieldId':_0x109178,'subtotalType':_0x5b95c2};_0x3deeb7[_0x3ae2f7(0x325)]({'id':Yt['id'],'params':_0x41094d});}break;case _0x8b4841['RemoveField']:{const {fieldId:_0x1061d2,fieldJson:_0x4d0a39,area:_0x34dca1,index:_0x472c82}=_0x21544f,_0x44f727={'unitId':_0x1e0b77,'subUnitId':_0x7d9757,'pivotTableId':_0x527c64,'fieldId':_0x1061d2,'index':_0x472c82,'area':_0x34dca1};_0x334ad2[_0x3ae2f7(0xe8)]({'id':Qt['id'],'params':_0x44f727});const _0x386cef={'unitId':_0x1e0b77,'subUnitId':_0x7d9757,'pivotTableId':_0x527c64,'fieldJson':_0x4d0a39,'area':_0x34dca1,'index':_0x472c82};_0x3deeb7['unshift']({'id':Ht['id'],'params':_0x386cef});}break;case _0x8b4841['RenameField']:{const {fieldId:_0x423d13,oldName:_0x376d8e,newName:_0x32751f}=_0x21544f,_0x570ef8={'unitId':_0x1e0b77,'subUnitId':_0x7d9757,'pivotTableId':_0x527c64,'fieldId':_0x423d13,'name':_0x32751f};_0x334ad2[_0x3ae2f7(0xe8)]({'id':$t['id'],'params':_0x570ef8});const _0x9367f0={'unitId':_0x1e0b77,'subUnitId':_0x7d9757,'pivotTableId':_0x527c64,'fieldId':_0x423d13,'name':_0x376d8e};_0x3deeb7[_0x3ae2f7(0x325)]({'id':$t['id'],'params':_0x9367f0});}break;case _0x8b4841[_0x3ae2f7(0xe5)]:{const {fieldId:_0x7ce09b,oldFilterInfo:_0xb765a8,newFilterInfo:_0x1933fb}=_0x21544f,_0x375a36={'unitId':_0x1e0b77,'subUnitId':_0x7d9757,'pivotTableId':_0x527c64,'fieldId':_0x7ce09b,'filterInfo':_0x1933fb};_0x334ad2[_0x3ae2f7(0xe8)]({'id':Wt['id'],'params':_0x375a36});const _0x99fe62={'unitId':_0x1e0b77,'subUnitId':_0x7d9757,'pivotTableId':_0x527c64,'fieldId':_0x7ce09b,'filterInfo':_0xb765a8};_0x3deeb7[_0x3ae2f7(0x325)]({'id':Wt['id'],'params':_0x99fe62});}break;case _0x8b4841[_0x3ae2f7(0x11e)]:{const {fieldId:_0x40f06a,oldSortInfo:_0x4b9eee,newSortInfo:_0x18b259}=_0x21544f,_0x12101c={'unitId':_0x1e0b77,'subUnitId':_0x7d9757,'pivotTableId':_0x527c64,'fieldId':_0x40f06a,'sortInfo':_0x18b259};_0x334ad2['push']({'id':qt['id'],'params':_0x12101c});const _0x26f290={'unitId':_0x1e0b77,'subUnitId':_0x7d9757,'pivotTableId':_0x527c64,'fieldId':_0x40f06a,'sortInfo':_0x4b9eee};_0x3deeb7[_0x3ae2f7(0x325)]({'id':qt['id'],'params':_0x26f290});}break;case _0x8b4841[_0x3ae2f7(0x246)]:{const {oldOptions:_0x55990c,newOptions:_0x5cf7d8}=_0x21544f,_0x10ca87={'unitId':_0x1e0b77,'subUnitId':_0x7d9757,'pivotTableId':_0x527c64,'options':_0x5cf7d8};_0x334ad2[_0x3ae2f7(0xe8)]({'id':Kt['id'],'params':_0x10ca87});const _0x41c5e9={'unitId':_0x1e0b77,'subUnitId':_0x7d9757,'pivotTableId':_0x527c64,'options':_0x55990c};_0x3deeb7[_0x3ae2f7(0x325)]({'id':Kt['id'],'params':_0x41c5e9});}break;case _0x8b4841[_0x3ae2f7(0xe6)]:{const {oldArea:_0x16e83e,newArea:_0x8c6217,oldIndex:_0x2330ca,newIndex:_0x21c4ed,fieldId:_0x31c6be}=_0x21544f,_0x4671c8={'unitId':_0x1e0b77,'subUnitId':_0x7d9757,'pivotTableId':_0x527c64,'fieldId':_0x31c6be,'area':_0x8c6217,'index':_0x21c4ed,'oldArea':_0x16e83e,'oldIndex':_0x2330ca};_0x334ad2[_0x3ae2f7(0xe8)]({'id':Xt['id'],'params':_0x4671c8});const _0x54a59c={'unitId':_0x1e0b77,'subUnitId':_0x7d9757,'pivotTableId':_0x527c64,'fieldId':_0x31c6be,'area':_0x16e83e,'index':_0x2330ca,'oldArea':_0x8c6217,'oldIndex':_0x21c4ed};_0x3deeb7['unshift']({'id':Xt['id'],'params':_0x54a59c});}break;case _0x8b4841[_0x3ae2f7(0x15e)]:{const {oldValuePosition:_0x4b0823,newValuePosition:_0x2667eb,oldIndex:_0x568d89,newIndex:_0x266df6}=_0x21544f,_0x107980={'unitId':_0x1e0b77,'subUnitId':_0x7d9757,'pivotTableId':_0x527c64,'valuePosition':_0x2667eb,'index':_0x266df6};_0x334ad2[_0x3ae2f7(0xe8)]({'id':eo['id'],'params':_0x107980});const _0x4b0c35={'unitId':_0x1e0b77,'subUnitId':_0x7d9757,'pivotTableId':_0x527c64,'valuePosition':_0x4b0823,'index':_0x568d89};_0x3deeb7[_0x3ae2f7(0x325)]({'id':eo['id'],'params':_0x4b0c35});}break;case _0x8b4841[_0x3ae2f7(0x214)]:{const {fieldId:_0xbf4e9a,collapse:_0x535e45,item:_0x12e15e}=_0x21544f,_0x3a0b2c={'unitId':_0x1e0b77,'subUnitId':_0x7d9757,'pivotTableId':_0x527c64,'fieldId':_0xbf4e9a,'collapse':_0x535e45,'item':_0x12e15e};_0x334ad2[_0x3ae2f7(0xe8)]({'id':Jt['id'],'params':_0x3a0b2c});const _0x55703d={'unitId':_0x1e0b77,'subUnitId':_0x7d9757,'pivotTableId':_0x527c64,'fieldId':_0xbf4e9a,'collapse':!_0x535e45,'item':_0x12e15e};_0x3deeb7[_0x3ae2f7(0x325)]({'id':Jt['id'],'params':_0x55703d});}break;case _0x8b4841[_0x3ae2f7(0x2b1)]:{const {newFormat:_0x3e7916,oldFormat:_0x51a831,fieldId:_0xbb2e15}=_0x21544f,_0x2a276f={'unitId':_0x1e0b77,'subUnitId':_0x7d9757,'pivotTableId':_0x527c64,'fieldId':_0xbb2e15,'format':_0x3e7916};_0x334ad2[_0x3ae2f7(0xe8)]({'id':Gt['id'],'params':_0x2a276f});const _0x3943ec={'unitId':_0x1e0b77,'subUnitId':_0x7d9757,'pivotTableId':_0x527c64,'fieldId':_0xbb2e15,'format':_0x51a831};_0x3deeb7['unshift']({'id':Gt['id'],'params':_0x3943ec});}break;case _0x8b4841[_0x3ae2f7(0x1b1)]:{const {tableFieldId:_0x2c4c9a,oldSourceName:_0x4e1f31,newSourceName:_0x134e6f,oldDataFieldId:_0x26a910,newDataFieldId:_0x14b94d}=_0x21544f,_0x5c712a={'unitId':_0x1e0b77,'subUnitId':_0x7d9757,'pivotTableId':_0x527c64,'tableFieldId':_0x2c4c9a,'sourceName':_0x134e6f,'dataFieldId':_0x14b94d};_0x334ad2[_0x3ae2f7(0xe8)]({'id':Zt['id'],'params':_0x5c712a});const _0x59706b={'unitId':_0x1e0b77,'subUnitId':_0x7d9757,'pivotTableId':_0x527c64,'tableFieldId':_0x2c4c9a,'sourceName':_0x4e1f31,'dataFieldId':_0x26a910};_0x3deeb7[_0x3ae2f7(0x325)]({'id':Zt['id'],'params':_0x59706b});}break;case _0x8b4841[_0x3ae2f7(0x1c8)]:{const {fieldId:_0x2380ce,filterInfo:_0x52b70a,oldFilterInfo:_0x56391d}=_0x21544f,_0x35e057={'unitId':_0x1e0b77,'subUnitId':_0x7d9757,'pivotTableId':_0x527c64,'fieldId':_0x2380ce,'filterInfo':_0x52b70a};_0x334ad2[_0x3ae2f7(0xe8)]({'id':zt['id'],'params':_0x35e057});const _0x448e0a={'unitId':_0x1e0b77,'subUnitId':_0x7d9757,'pivotTableId':_0x527c64,'fieldId':_0x2380ce,'filterInfo':_0x56391d};_0x3deeb7[_0x3ae2f7(0x325)]({'id':zt['id'],'params':_0x448e0a});}}return{'redos':_0x334ad2,'undos':_0x3deeb7};}function _e(_0x4ffa59,_0x5c8252){const _0x4d7ba5=_0x26db4b;var _0x18d123;const _0x256ace=_0x4ffa59[_0x4d7ba5(0x15d)](ie),{cellInfo:_0x19a53e,view:_0x4a5bcb,isEmpty:_0x46b1c0}=_0x5c8252;return(_0x18d123=_0x256ace[_0x4d7ba5(0xde)][_0x4d7ba5(0x26c)](Ho)(Po,{'cellInfo':_0x19a53e,'view':_0x4a5bcb,'isEmpty':_0x46b1c0}))!=null?_0x18d123:Po;}const us=()=>typeof process<'u'&&process[_0x26db4b(0x144)]!=null&&process['versions']['node']!=null,Ct={'type':_0xdd0bcc[_0x26db4b(0x201)],'id':_0x26db4b(0x1df),'handler'(_0x405fb0,_0x26c2ab){const _0x5411fc=_0x26db4b;var _0x931727;if(!_0x26c2ab)return!0x1;const _0x1c7f7e=_0x405fb0[_0x5411fc(0x15d)](_0x355993);if(!!_0x1c7f7e['getConfig'](K))return!0x0;const _0x577ccb=_0x405fb0['get'](_0x399741),_0x3c0c62=_0x405fb0[_0x5411fc(0x15d)](H),{pivotTableId:_0x4de59a,pivotTableConfig:_0x41c82e,collectionConfig:_0x5e617b,unitId:_0x37581d,subUnitId:_0x567cab}=_0x26c2ab,{sourceRangeInfo:_0x2cb9bf,fieldsConfig:_0x47355f,targetCellInfo:_0x346aaa}=_0x41c82e,_0x5daacb=_0x577ccb['getUnit'](_0x37581d);if(!_0x5daacb||!_0x5daacb['getSheetBySheetId'](_0x567cab))return!0x1;if(!us()){let _0x47d0b8=0x0;_0x5daacb[_0x5411fc(0x190)]()['forEach'](_0x3d734d=>{const _0x2e1b76=_0x5411fc;var _0x314789,_0x56e855;_0x47d0b8+=(_0x56e855=(_0x314789=_0x3c0c62[_0x2e1b76(0x126)](_0x37581d,_0x3d734d['getSheetId']()))==null?void 0x0:_0x314789['size'])!=null?_0x56e855:0x0;});const _0x5765dc=(_0x931727=_0x1c7f7e[_0x5411fc(0x316)](_0x32f4a6))!=null?_0x931727:{},{ls:_0x3e55c1,pbk:_0x2f202b}=_0x5765dc;if(!Go(_0x3e55c1,_0x2f202b))throw new _0x35341b(_0x5411fc(0x1e5));const _0x500fba=go(so,_0x3e55c1,_0x2f202b)[_0x5411fc(0x1db)];if(_0x47d0b8>=_0x500fba)throw new _0x35341b(_0x5411fc(0x1e5));}if(!_0x5e617b||!_0x47355f)return!0x1;const {collection:_0x55085f,updateDataFieldList:_0x178584}=_0x3c0c62[_0x5411fc(0x2d6)](_0x4de59a,_0x5e617b,_0x2cb9bf,_0x346aaa);_0x3c0c62[_0x5411fc(0x274)](_0x55085f,_0x178584,_0x2cb9bf);const _0x14552f=new _0x4355b5(_0x55085f,void 0x0,_0x4de59a);_0x14552f[_0x5411fc(0x28e)](_0x47355f);const _0x1ac2fc=JSON['parse'](JSON['stringify'](_0x41c82e));return _0x3c0c62[_0x5411fc(0x249)](_0x37581d,_0x567cab,_0x4de59a,_0x14552f,_0x1ac2fc),_0x3c0c62['addDirtyPivotTable']({'unitId':_0x37581d,'subUnitId':_0x567cab,'token':_0x4de59a,'type':B[_0x5411fc(0x1e9)],'pivotConfig':_0x1ac2fc}),!0x0;}},xt={'type':_0xdd0bcc[_0x26db4b(0x201)],'id':_0x26db4b(0x235),'handler'(_0x42d8fe,_0x15b2be){const _0x2683d3=_0x26db4b;if(!_0x15b2be)return!0x1;if(!!_0x42d8fe[_0x2683d3(0x15d)](_0x355993)[_0x2683d3(0x316)](K))return!0x0;const {pivotTableId:_0x17926f,unitId:_0x3b1d2d,subUnitId:_0x5010c2}=_0x15b2be,_0x3d2263=_0x42d8fe[_0x2683d3(0x15d)](H);return _0x3d2263[_0x2683d3(0x13b)](_0x3b1d2d,_0x5010c2,_0x17926f)?(_0x3d2263[_0x2683d3(0x1d3)]({'unitId':_0x3b1d2d,'subUnitId':_0x5010c2,'token':_0x17926f,'type':B[_0x2683d3(0x230)]}),_0x3d2263[_0x2683d3(0x105)](_0x3b1d2d,_0x5010c2,_0x17926f),!0x0):!0x1;}},pt={'type':_0xdd0bcc['MUTATION'],'id':_0x26db4b(0x120),'handler'(_0x691f94,_0x12826e){const _0x45d4d9=_0x26db4b;if(!_0x12826e)return!0x1;if(!!_0x691f94[_0x45d4d9(0x15d)](_0x355993)[_0x45d4d9(0x316)](K))return!0x0;const {pivotTableId:_0x105e47,targetCellPosition:_0x2709a5,unitId:_0x3aa5a2,subUnitId:_0x53e86e}=_0x12826e,_0x5ab4fe=_0x691f94['get'](H);if(!_0x5ab4fe[_0x45d4d9(0x28c)](_0x12826e[_0x45d4d9(0x1bf)]))return!0x1;const _0x20bbd8=_0x5ab4fe[_0x45d4d9(0x2fa)](_0x105e47);if(!_0x20bbd8)return!0x1;const _0xb7c639=_0x5ab4fe[_0x45d4d9(0x106)](_0x20bbd8[_0x45d4d9(0x17c)],_0x12826e[_0x45d4d9(0x1bf)]);if(!_0xb7c639)return!0x1;const _0x29f67b=_0x5ab4fe[_0x45d4d9(0x13b)](_0x20bbd8[_0x45d4d9(0x17c)],_0x20bbd8[_0x45d4d9(0x19b)],_0x105e47);if(!_0x29f67b)return!0x1;const _0x46b5eb=_0xef7624['deepClone'](_0x29f67b);_0x46b5eb[_0x45d4d9(0x20b)]={'unitId':_0x3aa5a2,'subUnitId':_0x53e86e,'row':_0x2709a5[_0x45d4d9(0x198)],'col':_0x2709a5[_0x45d4d9(0x2be)]};const _0x503a4f=_0xb7c639[_0x45d4d9(0xfd)]();if(_0x20bbd8[_0x45d4d9(0x19b)]===_0x53e86e&&_0x20bbd8['unitId']===_0x3aa5a2)_0x5ab4fe[_0x45d4d9(0x279)](_0x3aa5a2,_0x53e86e,_0x105e47,_0x46b5eb),_0x5ab4fe[_0x45d4d9(0x1d3)]({'unitId':_0x3aa5a2,'subUnitId':_0x53e86e,'token':_0x105e47,'type':B['Set']});else{_0x5ab4fe[_0x45d4d9(0x1d3)]({'unitId':_0x20bbd8[_0x45d4d9(0x17c)],'subUnitId':_0x20bbd8[_0x45d4d9(0x19b)],'token':_0x105e47,'type':B[_0x45d4d9(0x230)]}),_0x5ab4fe['removePivotTable'](_0x20bbd8[_0x45d4d9(0x17c)],_0x20bbd8[_0x45d4d9(0x19b)],_0x105e47);const _0x42d9c1=_0x5ab4fe[_0x45d4d9(0x2d6)](_0x105e47,_0x503a4f,_0x29f67b['sourceRangeInfo'],_0x46b5eb['targetCellInfo']),_0x4c415b=new _0x4355b5(_0x42d9c1['collection'],void 0x0,_0x105e47);_0x4c415b[_0x45d4d9(0x28e)](_0x46b5eb[_0x45d4d9(0x2d5)]),_0x5ab4fe[_0x45d4d9(0x249)](_0x3aa5a2,_0x53e86e,_0x105e47,_0x4c415b,_0x46b5eb),_0x5ab4fe[_0x45d4d9(0x1d3)]({'unitId':_0x3aa5a2,'subUnitId':_0x53e86e,'token':_0x105e47,'type':B[_0x45d4d9(0x1e9)],'pivotConfig':_0x46b5eb});}return!0x0;}},to={'type':_0xdd0bcc[_0x26db4b(0x201)],'id':_0x26db4b(0x22c),'handler'(_0x964e11,_0x183da0){const _0x4e50d3=_0x26db4b;if(!_0x183da0)return!0x1;if(!!_0x964e11[_0x4e50d3(0x15d)](_0x355993)['getConfig'](K))return!0x0;const _0x2b0d05=_0x964e11['get'](H),{pivotTableId:_0x1f98db,deleteIds:_0x195929,collectionJSON:_0x3a3fe3,dataRangeInfo:_0x426e36,unitId:_0x3dd1f5,subUnitId:_0x1945d3}=_0x183da0,_0x30ad43=_0x2b0d05[_0x4e50d3(0x28c)](_0x1f98db),_0x5b3058=_0x2b0d05['getPivotTableConfig'](_0x3dd1f5,_0x1945d3,_0x1f98db);if(!_0x30ad43||!_0x5b3058)return!0x1;const {collection:_0x4d15f1,updateDataFieldList:_0x43f4d2}=_0x2b0d05[_0x4e50d3(0x2d6)](_0x1f98db,_0x3a3fe3,_0x426e36,_0x5b3058['targetCellInfo']);_0x2b0d05[_0x4e50d3(0x274)](_0x4d15f1,_0x43f4d2,_0x426e36),_0x30ad43[_0x4e50d3(0x319)](_0x4d15f1);for(const _0x2f9db2 of _0x195929)_0x2b0d05[_0x4e50d3(0x147)](_0x426e36['unitId'],_0x2f9db2);const _0xaf145d=_0x2b0d05[_0x4e50d3(0x13b)](_0x3dd1f5,_0x1945d3,_0x1f98db);return _0xaf145d[_0x4e50d3(0x150)]=JSON[_0x4e50d3(0x269)](JSON[_0x4e50d3(0x12a)](_0x426e36)),_0x2b0d05[_0x4e50d3(0x1d3)]({'unitId':_0x3dd1f5,'subUnitId':_0x1945d3,'token':_0x1f98db,'type':B[_0x4e50d3(0x16f)]}),!0x0;}},Ut={'type':_0xdd0bcc['MUTATION'],'id':_0x26db4b(0xd8),'handler'(){return!0x0;}};var fs=Object[_0x26db4b(0x137)],gs=(_0xe92d8c,_0x42889e,_0xe3ac4a,_0x4da918)=>{for(var _0x5143cb=_0x4da918>0x1?void 0x0:_0x4da918?fs(_0x42889e,_0xe3ac4a):_0x42889e,_0x91fc0c=_0xe92d8c['length']-0x1,_0x2fe20d;_0x91fc0c>=0x0;_0x91fc0c--)(_0x2fe20d=_0xe92d8c[_0x91fc0c])&&(_0x5143cb=_0x2fe20d(_0x5143cb)||_0x5143cb);return _0x5143cb;},wo=(_0x54acf2,_0x178c7c)=>(_0x40fe18,_0x6af75e)=>_0x178c7c(_0x40fe18,_0x6af75e,_0x54acf2);let Z=class extends _0x37fbd9{constructor(_0x2c437c,_0xaf9edb){const _0x32e303=_0x26db4b;super(),V(this,_0x32e303(0x168),new Map()),(this[_0x32e303(0x211)]=_0x2c437c,this['_commandService']=_0xaf9edb);}[_0x26db4b(0x2c7)](_0x1caea3){const _0x18d1ec=_0x26db4b,{version:_0xcd926a}=_0x1caea3,_0xa611=this[_0x18d1ec(0x168)]['get'](_0xcd926a);_0xa611&&(_0xa611(_0x1caea3),this[_0x18d1ec(0x168)][_0x18d1ec(0x21b)](_0xcd926a));}[_0x26db4b(0x221)](_0x142a70){return new Promise((_0x5a7638,_0x1b2813)=>{const _0x622a7f=_0x1fae,_0x32eb34=this[_0x622a7f(0x118)]();this[_0x622a7f(0x168)][_0x622a7f(0x210)](_0x32eb34,_0x5a7638),this[_0x622a7f(0x1fd)]['executeCommand'](ro['id'],{'version':_0x32eb34,..._0x142a70},{'onlyLocal':!0x0});});}[_0x26db4b(0x118)](){const _0x3b6b19=_0x26db4b;return Math[_0x3b6b19(0x130)]()[_0x3b6b19(0x2d3)](0x24)[_0x3b6b19(0x200)](0x2,0x10);}};Z=gs([wo(0x0,_0x58298c(_0x4e6692)),wo(0x1,_0x58298c(_0x3f8860))],Z);const Yo={'id':'sheet.mutation.add-group-collection','type':_0xdd0bcc[_0x26db4b(0x201)],'handler':(_0x14d829,_0x4e6c1d)=>{const _0x539c81=_0x26db4b;if(!_0x4e6c1d)return!0x1;if(!!_0x14d829[_0x539c81(0x15d)](_0x355993)[_0x539c81(0x316)](K))return!0x0;const {pivotTableId:_0x5eaeab,fieldJSON:_0x3a93b1,unitId:_0x673ff5,subUnitId:_0x560422}=_0x4e6c1d,_0x35fd0a=_0x5c2007[_0x539c81(0x28e)](_0x3a93b1);if(!_0x35fd0a)return!0x1;const _0x549562=_0x14d829['get'](H),_0xc14bbc=_0x549562[_0x539c81(0x30e)](_0x673ff5),_0xcd2296=_0xc14bbc[_0x539c81(0x106)](_0x5eaeab);_0xc14bbc[_0x539c81(0xef)](_0x35fd0a),_0xcd2296[_0x539c81(0x176)](_0x35fd0a[_0x539c81(0xc4)](),_0x35fd0a[_0x539c81(0x154)]());const _0x435b13=_0xcd2296[_0x539c81(0x1da)](_0x35fd0a['getOriginFieldId']());_0x435b13&&_0x35fd0a[_0x539c81(0x1cc)](_0x435b13);const _0x4647af=_0x549562[_0x539c81(0x13b)](_0x673ff5,_0x560422,_0x5eaeab);return _0x549562[_0x539c81(0x1d3)]({'unitId':_0x673ff5,'subUnitId':_0x560422,'token':_0x5eaeab,'type':B['Set'],'pivotConfig':_0x4647af}),!0x0;}},zo={'id':_0x26db4b(0x1ae),'type':_0xdd0bcc[_0x26db4b(0x201)],'handler':(_0x258fa1,_0x7661a8)=>{const _0x23ef65=_0x26db4b;if(!_0x7661a8)return!0x1;if(!!_0x258fa1[_0x23ef65(0x15d)](_0x355993)['getConfig'](K))return!0x0;const {pivotTableId:_0x4749ad,dataFieldId:_0x4ce99a,unitId:_0x18585d,subUnitId:_0x1b2abe}=_0x7661a8,_0x529bef=_0x258fa1['get'](H),_0x5484c0=_0x529bef[_0x23ef65(0x30e)](_0x18585d);_0x5484c0[_0x23ef65(0x106)](_0x4749ad)[_0x23ef65(0x283)](_0x4ce99a);let _0x5a8cd=!0x0;for(const _0x4f21dd in _0x5484c0[_0x23ef65(0x253)])if(_0x5484c0[_0x23ef65(0x253)][_0x4f21dd]['getFieldIds']()[_0x23ef65(0x1b3)](_0x4ce99a)){_0x5a8cd=!0x1;break;}_0x5a8cd&&_0x5484c0['deleteDataField'](_0x4ce99a);const _0x13dcae=_0x529bef[_0x23ef65(0x13b)](_0x18585d,_0x1b2abe,_0x4749ad);return _0x529bef['addDirtyPivotTable']({'unitId':_0x18585d,'subUnitId':_0x1b2abe,'token':_0x4749ad,'type':B[_0x23ef65(0x16f)],'pivotConfig':_0x13dcae}),!0x0;}},hs={'type':_0xdd0bcc[_0x26db4b(0x32c)],'id':_0x26db4b(0x177),async 'handler'(_0x1b4c72,_0x5642ae){const _0x2a3f02=_0x26db4b;if(!_0x5642ae)return!0x1;const _0xc91141=_0x1b4c72[_0x2a3f02(0x15d)](_0x3f8860),_0x460596=_0x1b4c72[_0x2a3f02(0x15d)](Z),_0x72ea4e=_0x1b4c72['get'](_0x67d53b),{pivotTableId:_0x6c7a69,dataFieldId:_0x45b72a,fieldArea:_0x2065e7,index:_0x235d29,unitId:_0x53de30,subUnitId:_0x2033d4}=_0x5642ae,_0x3267af=(await _0x460596['getPivotDisplayConfig']({'unitId':_0x53de30,'subUnitId':_0x2033d4,'pivotTableId':_0x6c7a69,'params':{'type':j['AddPivotField'],'addPivotField':{'dataFieldId':_0x45b72a,'fieldArea':_0x2065e7,'index':_0x235d29}}}))['result']['addPivotField'];if(!_0x3267af)return!0x1;const {view:_0x124564,changesets:_0x14faee,isEmpty:_0x12c028,pivotTableConfig:_0x5a8893,shouldBeAddedGroupJSON:_0x45a499}=_0x3267af,_0x57ca3c=_0x5a8893[_0x2a3f02(0x20b)],_0x320336=new _0x337713();_0x320336['formJSON'](_0x124564);const _0x258ac1={'cellInfo':_0x57ca3c,'view':_0x320336,'isEmpty':_0x12c028};if(!await _0x1b4c72[_0x2a3f02(0x15d)](ie)[_0x2a3f02(0x326)][_0x2a3f02(0x2ef)](Se)(!0x0,_0x258ac1))return!0x1;const _0x705d21=we(_0x1b4c72,_0x320336,_0x57ca3c,_0x12c028),_0x3e40bd=_e(_0x1b4c72,_0x258ac1),{undos:_0x5aab6a,redos:_0x45b5eb}=me(_0xc91141,{'pivotTableId':_0x6c7a69,'unitId':_0x53de30,'subUnitId':_0x2033d4},_0x14faee);return _0x45a499&&(_0x45b5eb[_0x2a3f02(0x325)]({'id':Yo['id'],'params':{'pivotTableId':_0x6c7a69,'fieldJSON':_0x45a499,'unitId':_0x53de30,'subUnitId':_0x2033d4}}),_0x5aab6a['push']({'id':zo['id'],'params':{'pivotTableId':_0x6c7a69,'dataFieldId':_0x45a499['id'],'unitId':_0x53de30,'subUnitId':_0x2033d4}})),_0x3fbb9e([..._0x705d21[_0x2a3f02(0x125)],..._0x3e40bd[_0x2a3f02(0x125)],..._0x45b5eb],_0xc91141),_0x72ea4e['pushUndoRedo']({'unitID':_0x53de30,'redoMutations':[..._0x705d21[_0x2a3f02(0x125)],..._0x3e40bd[_0x2a3f02(0x125)],..._0x45b5eb],'undoMutations':[..._0x705d21[_0x2a3f02(0x1af)],..._0x3e40bd[_0x2a3f02(0x1af)],..._0x5aab6a]}),!0x0;}},vs={'type':_0xdd0bcc['COMMAND'],'id':_0x26db4b(0x329),async 'handler'(_0x3b3597,_0x486087){const _0x25360f=_0x26db4b;if(!_0x486087)return!0x1;const {sourceDataInfo:_0x2c7d33,pivotTableConfig:_0x340c5d}=_0x486087;if(!_0x2c7d33||!_0x340c5d)return!0x1;const {unitId:_0x1b993e,subUnitId:_0x29f3c8,range:_0x1cbf00}=_0x2c7d33,_0x4bda40=_0x3b3597['get'](_0x399741),_0x2ac27b=_0x3b3597['get'](Z),_0x347aac=_0x3b3597[_0x25360f(0x15d)](_0x388073),_0x262850=_0x3b3597['get'](_0x3f8860),_0x4691b5=_0x4bda40['getUnit'](_0x1b993e);if(!_0x4691b5)return!0x1;const _0x4f13a6=_0x4691b5[_0x25360f(0x117)](_0x29f3c8);if(!_0x4f13a6)return!0x1;const _0x2870a9=_0x4995ae(0x8),_0x4d04bb=_0x1cbf00||{'startRow':0x0,'startColumn':0x0,'endRow':_0x4f13a6['getRowCount']()-0x1,'endColumn':_0x4f13a6['getColumnCount']()-0x1};_0x4d04bb[_0x25360f(0x2d8)]=_0x5f4557[_0x25360f(0x241)];const _0x29f968=(await _0x2ac27b[_0x25360f(0x221)]({'unitId':_0x1b993e,'subUnitId':_0x29f3c8,'pivotTableId':_0x2870a9,'params':{'type':j[_0x25360f(0x26d)],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x1b993e,'sheetName':_0x4f13a6[_0x25360f(0x154)](),'subUnitId':_0x29f3c8,'range':_0x4d04bb},'pivotTableId':_0x2870a9,'pivotTableIndexConfig':_0x340c5d}}}))[_0x25360f(0x1c1)][_0x25360f(0x1ef)];if(!_0x29f968)return!0x1;const {isEmpty:_0x3ea677,fieldsConfig:_0x5e9b43,collectionConfig:_0x3ab6fa,changesets:_0x12bd84}=_0x29f968,_0x3de7f8=_0x4691b5[_0x25360f(0x190)]()[_0x25360f(0x20c)],_0x4b6585=_0x8b07b3({'rowCount':_0x4f13a6[_0x25360f(0x1be)]()-0x1,'columnCount':_0x4f13a6['getColumnCount']()-0x1});_0x4b6585['id']=_0x1e41db(),_0x4b6585[_0x25360f(0x30d)]=_0x4691b5['generateNewSheetName'](''+_0x347aac['t'](_0x25360f(0xd1)));const _0x3c24d1={'index':_0x3de7f8,'sheet':_0x4b6585,'unitId':_0x1b993e},{redos:_0x4d5005}=me(_0x262850,{'pivotTableId':_0x2870a9,'unitId':_0x1b993e,'subUnitId':_0x4b6585['id']},_0x12bd84),_0x432733=[{'id':_0xfc2088['id'],'params':_0x3c24d1},{'id':Ct['id'],'params':{'unitId':_0x1b993e,'subUnitId':_0x4b6585['id'],'pivotTableId':_0x2870a9,'pivotTableConfig':{'isEmpty':_0x3ea677,'fieldsConfig':_0x5e9b43,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x1b993e,'subUnitId':_0x4b6585['id']},'sourceRangeInfo':{'subUnitId':_0x29f3c8,'unitId':_0x1b993e,'range':_0x4d04bb,'sheetName':_0x4f13a6[_0x25360f(0x154)]()}},'collectionConfig':_0x3ab6fa}},..._0x4d5005];return _0x3fbb9e(_0x432733,_0x262850),!0x0;}},ps={'type':_0xdd0bcc[_0x26db4b(0x32c)],'id':'sheet.command.add-pivot-table',async 'handler'(_0x187593,_0x11ffe3){const _0x26cc77=_0x26db4b;var _0x8d5390,_0x86af41;const _0x46b05c=_0x187593[_0x26cc77(0x15d)](_0x3f8860),_0x19d579=_0x187593['get'](_0x399741),_0x77e015=_0x187593[_0x26cc77(0x15d)](_0x388073),_0x115070=_0x187593[_0x26cc77(0x15d)](Z),_0x55c975=_0x187593[_0x26cc77(0x15d)](_0x67d53b),_0x3ff3ae=_0x187593['get'](ve),_0x10ffe3=_0x187593['get'](_0x355993);if(!_0x11ffe3)return!0x1;const {pivotTableConfig:_0x23e724,positionType:_0x11d757}=_0x11ffe3,{targetCellInfo:_0x50066a,sourceRangeInfo:_0x22a426}=_0x23e724,{unitId:_0x84a39b,subUnitId:_0x205a80}=_0x50066a,_0x3c8550=_0x19d579[_0x26cc77(0xdb)](_0x84a39b);if(!_0x3c8550)return!0x1;let _0x290ea7=0x0;_0x3c8550[_0x26cc77(0x190)]()[_0x26cc77(0x2ab)](_0xd911a2=>{const _0x5af9cf=_0x26cc77;var _0x5b16ae,_0x4fe306;_0x290ea7+=(_0x4fe306=(_0x5b16ae=_0x3ff3ae[_0x5af9cf(0x126)](_0x84a39b,_0xd911a2[_0x5af9cf(0x2a1)]()))==null?void 0x0:_0x5b16ae[_0x5af9cf(0x321)])!=null?_0x4fe306:0x0;});const _0x36c238=(_0x8d5390=_0x10ffe3['getConfig'](_0x32f4a6))!=null?_0x8d5390:{},{ls:_0x4aca7b,pbk:_0x2ced3b}=_0x36c238;if(!Go(_0x4aca7b,_0x2ced3b))return!0x1;const _0x3f75ea=go(so,_0x4aca7b,_0x2ced3b)[_0x26cc77(0x1db)];if(_0x290ea7>=_0x3f75ea)return!0x1;const _0x546ea4=_0x11ffe3[_0x26cc77(0x1bf)]||_0x4995ae(0x8),_0x5783db=(await _0x115070[_0x26cc77(0x221)]({'unitId':_0x84a39b,'subUnitId':_0x205a80,'pivotTableId':_0x546ea4,'params':{'type':j[_0x26cc77(0x291)],'addPivotTable':{'sourceRangeInfo':_0x22a426,'pivotTableId':_0x546ea4}}}))[_0x26cc77(0x1c1)][_0x26cc77(0x249)];if(!_0x5783db)return!0x1;const {view:_0x3ec272,isEmpty:_0x4ae097,fieldsConfig:_0x1efc83,collectionConfig:_0x3b2e55}=_0x5783db,_0x184860=[],_0x3d0302=[];if(_0x11d757===Lo[_0x26cc77(0x123)]){const _0x44aefd=_0x3c8550[_0x26cc77(0x190)]()['length'],_0x589b6f=_0x8b07b3({});_0x589b6f['id']=_0x23e724['targetCellInfo'][_0x26cc77(0x19b)],_0x589b6f[_0x26cc77(0x30d)]=(_0x86af41=_0x23e724[_0x26cc77(0x20b)]['sheetName'])!=null?_0x86af41:_0x3c8550['generateNewSheetName'](''+_0x77e015['t']('sheets.tabs.sheet'));const _0x3f9e4b={'index':_0x44aefd,'sheet':_0x589b6f,'unitId':_0x84a39b},_0x447529=_0x134deb(_0x187593,_0x3f9e4b);_0x184860[_0x26cc77(0xe8)]({'id':_0x2ec851['id'],'params':_0x447529}),_0x3d0302[_0x26cc77(0xe8)]({'id':_0x5f1e6b['id'],'params':_0x3f9e4b});}else{if(!_0x3c8550[_0x26cc77(0x117)](_0x205a80))return!0x1;const _0x396ebb=we(_0x187593,new _0x337713(),_0x50066a,!0x0);_0x3d0302['push'](..._0x396ebb[_0x26cc77(0x125)]),_0x184860[_0x26cc77(0xe8)](..._0x396ebb['undos']);const _0x334f35={'cellInfo':_0x50066a,'view':_0x3ec272,'isEmpty':_0x4ae097};if(!await _0x187593[_0x26cc77(0x15d)](ie)['asyncInterceptor'][_0x26cc77(0x2ef)](Se)(!0x0,_0x334f35))return!0x1;const _0x1b1863=_e(_0x187593,_0x334f35);_0x3d0302['push'](..._0x1b1863[_0x26cc77(0x125)]),_0x184860[_0x26cc77(0xe8)](..._0x1b1863[_0x26cc77(0x1af)]);}return _0x3d0302[_0x26cc77(0xe8)]({'id':Ct['id'],'params':{'unitId':_0x50066a[_0x26cc77(0x17c)],'subUnitId':_0x50066a[_0x26cc77(0x19b)],'pivotTableId':_0x546ea4,'pivotTableConfig':{'targetCellInfo':_0x50066a,'sourceRangeInfo':_0x22a426,'fieldsConfig':_0x1efc83},'collectionConfig':_0x3b2e55}}),_0x184860[_0x26cc77(0x325)]({'id':xt['id'],'params':{'unitId':_0x84a39b,'subUnitId':_0x205a80,'pivotTableId':_0x546ea4}}),_0x3fbb9e(_0x3d0302,_0x46b05c)&&_0x55c975['pushUndoRedo']({'unitID':_0x84a39b,'undoMutations':_0x184860,'redoMutations':_0x3d0302}),!0x0;}},ms={'type':_0xdd0bcc[_0x26db4b(0x32c)],'id':_0x26db4b(0x2b6),async 'handler'(_0x3d0ef3,_0x4e2bb0){const _0xbeb2bd=_0x26db4b;if(!_0x4e2bb0)return!0x1;const _0x11146=_0x3d0ef3['get'](_0x3f8860),_0x4c3519=_0x3d0ef3[_0xbeb2bd(0x15d)](Z),_0x20af66=_0x3d0ef3['get'](_0x67d53b),{pivotTableId:_0x2fe055,fieldId:_0x4b435d,area:_0xaaaa37,index:_0x46cfdc,unitId:_0x5ad2cd,subUnitId:_0x186aaa}=_0x4e2bb0,_0x558740=(await _0x4c3519[_0xbeb2bd(0x221)]({'unitId':_0x5ad2cd,'subUnitId':_0x186aaa,'pivotTableId':_0x2fe055,'params':{'type':j[_0xbeb2bd(0x10c)],'movePivotField':{'fieldId':_0x4b435d,'area':_0xaaaa37,'index':_0x46cfdc}}}))[_0xbeb2bd(0x1c1)]['movePivotField'];if(!_0x558740)return!0x1;const {changesets:_0x31d770,view:_0x52017f,isEmpty:_0x34c71d,pivotTableConfig:_0x2d0449}=_0x558740,_0x5071c7=_0x2d0449[_0xbeb2bd(0x20b)],_0x538253=new _0x337713();_0x538253[_0xbeb2bd(0x2f7)](_0x52017f);const _0x29e767={'cellInfo':_0x5071c7,'view':_0x538253,'isEmpty':_0x34c71d};if(!await _0x3d0ef3[_0xbeb2bd(0x15d)](ie)[_0xbeb2bd(0x326)][_0xbeb2bd(0x2ef)](Se)(!0x0,_0x29e767))return!0x1;const _0x18133e=we(_0x3d0ef3,_0x538253,_0x5071c7,_0x34c71d),_0x1150d3=_e(_0x3d0ef3,_0x29e767),{redos:_0x52eacb,undos:_0x465a56}=me(_0x11146,{'pivotTableId':_0x2fe055,'unitId':_0x5ad2cd,'subUnitId':_0x186aaa},_0x31d770);return _0x3fbb9e([..._0x18133e[_0xbeb2bd(0x125)],..._0x1150d3[_0xbeb2bd(0x125)],..._0x52eacb],_0x11146),_0x20af66['pushUndoRedo']({'unitID':_0x5ad2cd,'redoMutations':[..._0x18133e[_0xbeb2bd(0x125)],..._0x1150d3[_0xbeb2bd(0x125)],..._0x52eacb],'undoMutations':[..._0x18133e[_0xbeb2bd(0x1af)],..._0x1150d3['undos'],..._0x465a56]}),!0x0;}},Is={'type':_0xdd0bcc[_0x26db4b(0x32c)],'id':_0x26db4b(0x2ee),async 'handler'(_0x22b3e1,_0x527217){const _0x228528=_0x26db4b;var _0x2e6f96;if(!_0x527217)return!0x1;const _0x564647=_0x22b3e1[_0x228528(0x15d)](_0x399741),_0x266407=_0x3c834f(_0x564647);if(!_0x266407)return!0x1;const {unitId:_0x576622,subUnitId:_0x742602,workbook:_0x402045}=_0x266407,{row:_0x57fff5,col:_0x3dae41}=_0x527217,_0x3b4690=_0x22b3e1[_0x228528(0x15d)](Ne),_0xd0520=_0x3b4690[_0x228528(0x21a)](_0x576622,_0x742602,_0x57fff5,_0x3dae41);if(!_0xd0520)return!0x1;const _0x75af74=(_0x2e6f96=_0x3b4690[_0x228528(0x2da)](_0x576622,_0x742602,_0xd0520))==null?void 0x0:_0x2e6f96[_0x228528(0xca)];if(!_0x75af74)return!0x1;const _0x285376=_0x22b3e1['get'](ve)[_0x228528(0x13b)](_0x576622,_0x742602,_0xd0520);if(!_0x285376)return!0x1;const {rowInfo:_0x1dd0d4,colInfo:_0x885651}=_0x75af74,_0x121a91=_0x1dd0d4[_0x57fff5]['paths'],_0x7d87ba=_0x885651[_0x3dae41][_0x228528(0x131)],_0x1055f8=_0x1dd0d4[_0x57fff5][_0x228528(0x1e2)],_0x47fc22=_0x885651[_0x3dae41][_0x228528(0x1e2)],_0x2ce764=_0x121a91[_0x228528(0x215)](_0x7d87ba),_0x86ea80=_0x285376['fieldsConfig']['rowFields'][_0x228528(0xf5)](0x0,_0x1055f8),_0x507146=_0x285376['fieldsConfig']['columnFields'][_0x228528(0xf5)](0x0,_0x47fc22),_0x41b1f7=_0x86ea80['concat'](_0x507146),_0x391309=_0x2ce764[_0x228528(0x1ce)]((_0x70861b,_0xa5b0db)=>[_0x70861b,_0x41b1f7[_0xa5b0db]]),_0x44441e=(await _0x22b3e1[_0x228528(0x15d)](Z)['getPivotDisplayConfig']({'unitId':_0x576622,'subUnitId':_0x742602,'pivotTableId':_0xd0520,'params':{'type':j[_0x228528(0x2a3)],'drillDown':{'tuple':_0x391309}}}))[_0x228528(0x1c1)][_0x228528(0x18e)];if(!_0x44441e)return!0x1;const {indexes:_0x465ebf,range:_0x1b8f0a,sourceUnitId:_0x391206,sourceSubUnitId:_0x1f0123,formatMap:_0x249230}=_0x44441e,{startRow:_0x23e1f5,endRow:_0x3309e0,startColumn:_0x4b74c6,endColumn:_0x26a085}=_0x1b8f0a,_0x10500f=new _0xbef08f(),_0x55279c=_0x3309e0-_0x23e1f5,_0x279066=_0x26a085-_0x4b74c6,_0x1c0945={},_0x3dfc5a=_0x3c834f(_0x564647,{'unitId':_0x391206,'subUnitId':_0x1f0123});if(!_0x3dfc5a)return!0x1;const _0x3c7c24=fe[_0x228528(0x124)],_0x2b366c=fe[_0x228528(0xd7)],_0x470c35=fe[_0x228528(0xd7)],_0x3da882=_0x402045[_0x228528(0x1ec)]()[_0x228528(0x237)](_0x3c7c24),_0x1fbd57=_0x402045[_0x228528(0x1ec)]()[_0x228528(0x237)](_0x2b366c),_0x3db34c=_0x402045[_0x228528(0x1ec)]()[_0x228528(0x237)](_0x470c35),{worksheet:_0x40b976}=_0x3dfc5a;let _0x1e3000=0x0;const _0x4487ed=0x1;_0x465ebf[_0x228528(0x2ab)](_0x4e5c3c=>{const _0x533c00=_0x228528;for(let _0x215597=0x0;_0x215597<=_0x26a085-_0x4b74c6;_0x215597++)_0x10500f[_0x533c00(0x237)](_0x1e3000,_0x215597,_0x40b976[_0x533c00(0x1f1)](_0x4e5c3c+_0x1b8f0a[_0x533c00(0x15f)]+_0x4487ed,_0x215597));_0x1e3000++;});for(let _0x2b1e36=_0x4b74c6;_0x2b1e36<=_0x26a085;_0x2b1e36++){const _0x31e315=_0x40b976[_0x228528(0x1f1)](_0x23e1f5,_0x2b1e36);_0x1c0945[_0x23e1f5]||(_0x1c0945[_0x23e1f5]={}),_0x1c0945[_0x23e1f5][_0x2b1e36]={..._0x31e315,'s':_0x3da882};}let _0x1351dd=0x1;const _0x52fb54={},_0x24785c={};_0x10500f[_0x228528(0x10b)]((_0x5c261f,_0x128f33)=>{const _0x3fcde0=_0x228528;_0x128f33[_0x3fcde0(0x2ab)](_0x48e913=>{const _0x55fcb0=_0x3fcde0,_0x29372a=_0x10500f[_0x55fcb0(0xdc)](_0x5c261f,_0x48e913);if(_0x1c0945[_0x1351dd]||(_0x1c0945[_0x1351dd]={}),_0x1c0945[_0x1351dd][_0x48e913]={..._0x29372a,'s':_0x1351dd%0x2===0x0?_0x3db34c:_0x1fbd57},_0x249230[_0x48e913]&&_0x5c261f>=0x0){const _0x10de0b=_0x1351dd%0x2===0x0;let _0x3d793c=_0x10de0b?_0x24785c[_0x48e913]:_0x52fb54[_0x48e913];_0x3d793c||(_0x3d793c=_0x402045[_0x55fcb0(0x1ec)]()[_0x55fcb0(0x237)]({..._0x10de0b?_0x470c35:_0x2b366c,'n':{'pattern':_0x249230[_0x48e913]}}),_0x10de0b?_0x24785c[_0x48e913]=_0x3d793c:_0x52fb54[_0x48e913]=_0x3d793c),_0x1c0945[_0x1351dd][_0x48e913]['s']=_0x3d793c;}}),_0x1351dd++;});const _0xe908c5=new _0xbef08f(_0x1c0945),_0x23285d={};_0xe908c5[_0x228528(0x2f2)]((_0x28e64b,_0x14706b,_0x58f575)=>{_0x23285d[_0x28e64b]||(_0x23285d[_0x28e64b]={}),_0x23285d[_0x28e64b][_0x14706b]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x281066=[],_0x457ccb=[],_0x37c115=_0x402045[_0x228528(0x190)]()[_0x228528(0x20c)],_0x49377f=_0x8b07b3({'rowCount':Math[_0x228528(0x1f7)](_0x56188c,_0x55279c+0xa),'columnCount':Math[_0x228528(0x1f7)](_0x46126a,_0x279066+0x5)}),_0x367c54=_0x22b3e1[_0x228528(0x15d)](_0x388073);_0x49377f['id']=_0x1e41db(),_0x49377f[_0x228528(0x30d)]=_0x402045['generateNewSheetName'](''+_0x367c54['t'](_0x228528(0xd1)));const _0x336a34={'index':_0x37c115,'sheet':_0x49377f,'unitId':_0x576622},_0x2f63f4=_0x134deb(_0x22b3e1,_0x336a34);_0x457ccb[_0x228528(0xe8)]({'id':_0x5f1e6b['id'],'params':_0x336a34}),_0x281066['push']({'id':_0x2ec851['id'],'params':_0x2f63f4}),_0x457ccb[_0x228528(0xe8)]({'id':_0x407f24['id'],'params':{'unitId':_0x576622,'subUnitId':_0x49377f['id'],'cellValue':_0x1c0945}}),_0x281066[_0x228528(0x325)]({'id':_0x407f24['id'],'params':{'unitId':_0x576622,'subUnitId':_0x49377f['id'],'cellValue':_0x23285d}});const _0x368634={'startRow':0x0,'startColumn':0x0,'endRow':_0x1351dd-0x1,'endColumn':_0x26a085};_0x457ccb[_0x228528(0xe8)]({'id':_0x518d17['id'],'params':{'unitId':_0x576622,'subUnitId':_0x49377f['id'],'range':_0x368634}}),_0x281066['unshift']({'id':_0xa9807b['id'],'params':{'unitId':_0x576622,'subUnitId':_0x49377f['id']}});const _0x2c0088=_0x22b3e1[_0x228528(0x15d)](_0x3f8860);return _0x3fbb9e(_0x457ccb,_0x2c0088)&&_0x22b3e1[_0x228528(0x15d)](_0x67d53b)[_0x228528(0x2c1)]({'unitID':_0x576622,'undoMutations':_0x281066,'redoMutations':_0x457ccb}),!0x0;}},Cs={'type':_0xdd0bcc[_0x26db4b(0x32c)],'id':_0x26db4b(0xc6),async 'handler'(_0x5f5232,_0x3a99cf){const _0x2c7e1c=_0x26db4b;if(!_0x3a99cf)return!0x1;const _0x5107b3=_0x5f5232[_0x2c7e1c(0x15d)](_0x3f8860),_0x4c4992=_0x5f5232[_0x2c7e1c(0x15d)](Z),_0x3dfc48=_0x5f5232['get'](_0x67d53b),{pivotTableId:_0x49a6c3,fieldIds:_0x2aefe9,unitId:_0x53bfba,subUnitId:_0x3d2855}=_0x3a99cf,_0x5086e5=(await _0x4c4992[_0x2c7e1c(0x221)]({'unitId':_0x53bfba,'subUnitId':_0x3d2855,'pivotTableId':_0x49a6c3,'params':{'type':j[_0x2c7e1c(0x12b)],'removePivotField':{'fieldIds':_0x2aefe9}}}))[_0x2c7e1c(0x1c1)][_0x2c7e1c(0x327)];if(!_0x5086e5)return!0x1;const {view:_0x6fa44,changesets:_0x382bdc,isEmpty:_0x4eec29,pivotTableConfig:_0x3db95b}=_0x5086e5,_0x57d64d=_0x3db95b[_0x2c7e1c(0x20b)],_0x179121=new _0x337713();_0x179121[_0x2c7e1c(0x2f7)](_0x6fa44);const _0x302ebd={'cellInfo':_0x57d64d,'view':_0x179121,'isEmpty':_0x4eec29};if(!await _0x5f5232['get'](ie)[_0x2c7e1c(0x326)]['fetchThroughAsyncInterceptors'](Se)(!0x0,_0x302ebd))return!0x1;const _0x3d60dc=we(_0x5f5232,_0x179121,_0x57d64d,_0x4eec29),_0x50745e=_e(_0x5f5232,_0x302ebd),{redos:_0x58b6d9,undos:_0x432a4a}=me(_0x5107b3,{'pivotTableId':_0x49a6c3,'unitId':_0x53bfba,'subUnitId':_0x3d2855},_0x382bdc);return _0x3fbb9e([..._0x3d60dc[_0x2c7e1c(0x125)],..._0x50745e['redos'],..._0x58b6d9],_0x5107b3),_0x3dfc48[_0x2c7e1c(0x2c1)]({'unitID':_0x53bfba,'redoMutations':[..._0x3d60dc[_0x2c7e1c(0x125)],..._0x50745e[_0x2c7e1c(0x125)],..._0x58b6d9],'undoMutations':[..._0x3d60dc[_0x2c7e1c(0x1af)],..._0x50745e[_0x2c7e1c(0x1af)],..._0x432a4a]}),!0x0;}},Ss={'type':_0xdd0bcc[_0x26db4b(0x32c)],'id':'sheet.command.set-pivot-collapse',async 'handler'(_0x43428d,_0x2b662c){const _0x5ebb3d=_0x26db4b;var _0x21544c;const _0x2f80ea=_0x43428d[_0x5ebb3d(0x15d)](_0x3f8860),_0x57956b=_0x43428d[_0x5ebb3d(0x15d)](Z),_0x2364ae=_0x43428d[_0x5ebb3d(0x15d)](Ne),_0x30406e=_0x43428d[_0x5ebb3d(0x15d)](_0x399741),_0x5006f9=_0x43428d['get'](_0x67d53b);if(!_0x2b662c)return!0x1;const {unitId:_0x357bdf,subUnitId:_0x449771,row:_0x2e0975,col:_0x36ff6c,collapse:_0x429076}=_0x2b662c,_0x4009ff=_0x30406e[_0x5ebb3d(0xdb)](_0x357bdf);if(!_0x4009ff||!_0x4009ff[_0x5ebb3d(0x117)](_0x449771))return!0x1;const _0x2ed493=_0x2364ae[_0x5ebb3d(0x21a)](_0x357bdf,_0x449771,_0x2e0975,_0x36ff6c);if(!_0x2ed493)return!0x1;const _0x18187a=_0x2364ae[_0x5ebb3d(0x2da)](_0x357bdf,_0x449771,_0x2ed493);if(!_0x18187a)return!0x1;const _0x39b7c0=_0x158376(_0x2e0975,_0x36ff6c),{rangesInfo:_0x48f175,areaInfo:_0x23a7b5,headerMap:_0x1085a8}=_0x18187a;if(!_0x48f175||!_0x23a7b5||!_0x1085a8)return!0x1;const _0x2bd301=Object[_0x5ebb3d(0x301)](_0x48f175)['find'](_0x25e458=>_0x48f175[_0x25e458][_0x5ebb3d(0x270)](_0x3cff0d=>_0x4d6abc[_0x5ebb3d(0x1f5)](_0x3cff0d,_0x39b7c0)));let _0x88ae65;_0x2bd301===_0x5ebb3d(0x24a)?_0x88ae65=_0x1085a8[_0x5ebb3d(0x11b)][_0x36ff6c]:_0x2bd301==='colRanges'&&(_0x88ae65=_0x1085a8[_0x5ebb3d(0x314)][_0x2e0975]);const _0x586b81=_0x88ae65==null?void 0x0:_0x88ae65['tableFieldId'],_0x3f12e8=(_0x21544c=_0x2364ae['getPivotTableCellData'](_0x357bdf,_0x449771,_0x2e0975,_0x36ff6c))==null?void 0x0:_0x21544c['v'];if(_0x3f12e8==null||!_0x2ed493||!_0x586b81)return!0x1;const _0x4bd9f5=await _0x57956b['getPivotDisplayConfig']({'unitId':_0x357bdf,'subUnitId':_0x449771,'pivotTableId':_0x2ed493,'params':{'type':j[_0x5ebb3d(0x2ed)],'setPivotCollapse':{'tableFieldId':_0x586b81,'collapse':_0x429076,'item':_0x3f12e8}}}),_0x4b174b=_0x4bd9f5==null?void 0x0:_0x4bd9f5[_0x5ebb3d(0x1c1)]['setPivotCollapse'];if(!_0x4b174b)return!0x1;const {view:_0x3454d3,pivotTableConfig:_0x924f77,isEmpty:_0x26c9c8,changesets:_0xe75857}=_0x4b174b,_0x321f2d=new _0x337713();_0x321f2d[_0x5ebb3d(0x2f7)](_0x3454d3);const _0x39d742=_0x924f77[_0x5ebb3d(0x20b)],_0x45e0cf={'cellInfo':_0x39d742,'view':_0x321f2d,'isEmpty':_0x26c9c8};if(!await _0x43428d[_0x5ebb3d(0x15d)](ie)[_0x5ebb3d(0x326)][_0x5ebb3d(0x2ef)](Se)(!0x0,_0x45e0cf))return!0x1;const _0x3c5e7f=we(_0x43428d,_0x321f2d,_0x39d742,_0x26c9c8),_0x1d0a99=_e(_0x43428d,_0x45e0cf),{redos:_0x484ea0,undos:_0x4af503}=me(_0x2f80ea,{'pivotTableId':_0x2ed493,'unitId':_0x357bdf,'subUnitId':_0x449771},_0xe75857);return _0x3fbb9e([..._0x3c5e7f[_0x5ebb3d(0x125)],..._0x1d0a99[_0x5ebb3d(0x125)],..._0x484ea0],_0x2f80ea),_0x5006f9[_0x5ebb3d(0x2c1)]({'unitID':_0x357bdf,'redoMutations':[..._0x3c5e7f[_0x5ebb3d(0x125)],..._0x1d0a99[_0x5ebb3d(0x125)],..._0x484ea0],'undoMutations':[..._0x3c5e7f[_0x5ebb3d(0x1af)],..._0x1d0a99[_0x5ebb3d(0x1af)],..._0x4af503]}),!0x0;}},bs={'type':_0xdd0bcc[_0x26db4b(0x32c)],'id':_0x26db4b(0x19e),async 'handler'(_0x49833f,_0x4abe16){const _0x3d0099=_0x26db4b;if(!_0x4abe16)return!0x1;const _0x1590fe=_0x49833f['get'](_0x3f8860),{pivotTableId:_0x3640bf,tableFieldId:_0x3a3f2b,items:_0x2c64a7,unitId:_0x20bd35,subUnitId:_0x3dfb53,isAll:_0x1b0901}=_0x4abe16,_0x4a2057=_0x49833f[_0x3d0099(0x15d)](Z),_0x6e61f=_0x49833f[_0x3d0099(0x15d)](_0x67d53b),_0x159a16=(await _0x4a2057['getPivotDisplayConfig']({'unitId':_0x20bd35,'subUnitId':_0x3dfb53,'pivotTableId':_0x3640bf,'params':{'type':j[_0x3d0099(0x108)],'setPivotFilter':{'tableFieldId':_0x3a3f2b,'items':_0x2c64a7,'isAll':_0x1b0901}}}))[_0x3d0099(0x1c1)][_0x3d0099(0x157)];if(!_0x159a16)return!0x1;const {changesets:_0x3450d3,pivotTableConfig:_0x306068,isEmpty:_0x356b1d,view:_0x117e2a}=_0x159a16,_0x215737=_0x306068[_0x3d0099(0x20b)],_0x10c07e=new _0x337713();_0x10c07e[_0x3d0099(0x2f7)](_0x117e2a);const _0x559ef3={'cellInfo':_0x215737,'view':_0x10c07e,'isEmpty':_0x356b1d};if(!await _0x49833f[_0x3d0099(0x15d)](ie)['asyncInterceptor'][_0x3d0099(0x2ef)](Se)(!0x0,_0x559ef3))return!0x1;const _0x573172=we(_0x49833f,_0x10c07e,_0x215737,_0x356b1d),_0x7f0fb8=_e(_0x49833f,_0x559ef3),{undos:_0x34ed87,redos:_0x1fb065}=me(_0x1590fe,{'pivotTableId':_0x3640bf,'unitId':_0x20bd35,'subUnitId':_0x3dfb53},_0x3450d3);return _0x3fbb9e([..._0x573172[_0x3d0099(0x125)],..._0x7f0fb8[_0x3d0099(0x125)],..._0x1fb065],_0x1590fe),_0x6e61f[_0x3d0099(0x2c1)]({'unitID':_0x20bd35,'redoMutations':[..._0x573172[_0x3d0099(0x125)],..._0x7f0fb8[_0x3d0099(0x125)],..._0x1fb065],'undoMutations':[..._0x573172[_0x3d0099(0x1af)],..._0x7f0fb8[_0x3d0099(0x1af)],..._0x34ed87]}),!0x0;}},Ps={'type':_0xdd0bcc[_0x26db4b(0x32c)],'id':'sheet.command.set-pivot-sort',async 'handler'(_0x34d5ff,_0x39b8cf){const _0x38e867=_0x26db4b;if(!_0x39b8cf)return!0x1;const _0x22dada=_0x34d5ff[_0x38e867(0x15d)](_0x3f8860),_0x615def=_0x34d5ff[_0x38e867(0x15d)](_0x67d53b),_0x2d8c26=_0x34d5ff[_0x38e867(0x15d)](Z),{info:_0x87181,tableFieldId:_0x1f408a,pivotTableId:_0x22b62a,unitId:_0x5cb0cb,subUnitId:_0x2ab891}=_0x39b8cf,_0x560142=(await _0x2d8c26['getPivotDisplayConfig']({'unitId':_0x5cb0cb,'subUnitId':_0x2ab891,'pivotTableId':_0x22b62a,'params':{'type':j[_0x38e867(0x331)],'setPivotSort':{'tableFieldId':_0x1f408a,'info':_0x87181}}}))[_0x38e867(0x1c1)][_0x38e867(0x2b2)];if(!_0x560142)return!0x1;const {changesets:_0x15f8c7}=_0x560142,{redos:_0x44d84d,undos:_0xfc63e2}=me(_0x22dada,{'pivotTableId':_0x22b62a,'unitId':_0x5cb0cb,'subUnitId':_0x2ab891},_0x15f8c7);return _0x3fbb9e(_0x44d84d,_0x22dada),_0x615def[_0x38e867(0x2c1)]({'unitID':_0x5cb0cb,'redoMutations':_0x44d84d,'undoMutations':_0xfc63e2}),!0x0;}},Ts={'type':_0xdd0bcc['COMMAND'],'id':_0x26db4b(0x138),async 'handler'(_0x29fe2e,_0x4fa09d){const _0x160af6=_0x26db4b;if(!_0x4fa09d)return!0x1;const _0x5168e6=_0x29fe2e['get'](_0x3f8860),_0x461093=_0x29fe2e['get'](_0x67d53b),_0x1b4bb4=_0x29fe2e[_0x160af6(0x15d)](Z),{displayName:_0x128a04,subtotalType:_0x114d4f,format:_0x5f4c1e,tableFieldId:_0x428fc5,pivotTableId:_0x3c42eb,unitId:_0x356019,subUnitId:_0x77f410}=_0x4fa09d,_0x19e571=(await _0x1b4bb4[_0x160af6(0x221)]({'unitId':_0x356019,'subUnitId':_0x77f410,'pivotTableId':_0x3c42eb,'params':{'type':j[_0x160af6(0x12f)],'setPivotSetting':{'tableFieldId':_0x428fc5,'displayName':_0x128a04,'subtotalType':_0x114d4f,'format':_0x5f4c1e}}}))[_0x160af6(0x1c1)]['setPivotSetting'];if(!_0x19e571)return!0x1;const {changesets:_0x27d18c,view:_0x37823c,pivotTableConfig:_0x14904d,isEmpty:_0x202215}=_0x19e571,_0x562091=_0x14904d[_0x160af6(0x20b)],_0x582589=new _0x337713();_0x582589[_0x160af6(0x2f7)](_0x37823c);const _0x2efcd0={'cellInfo':_0x562091,'view':_0x582589,'isEmpty':_0x202215};if(!await _0x29fe2e['get'](ie)[_0x160af6(0x326)][_0x160af6(0x2ef)](Se)(!0x0,_0x2efcd0))return!0x1;const _0x91175=we(_0x29fe2e,_0x582589,_0x562091,_0x202215),_0x62344b=_e(_0x29fe2e,_0x2efcd0),{undos:_0x127b65,redos:_0x2118d2}=me(_0x5168e6,{'pivotTableId':_0x3c42eb,'unitId':_0x356019,'subUnitId':_0x77f410},_0x27d18c);return _0x3fbb9e([..._0x91175[_0x160af6(0x125)],..._0x62344b[_0x160af6(0x125)],..._0x2118d2],_0x5168e6),_0x461093[_0x160af6(0x2c1)]({'unitID':_0x356019,'redoMutations':[..._0x91175[_0x160af6(0x125)],..._0x62344b['redos'],..._0x2118d2],'undoMutations':[..._0x91175[_0x160af6(0x1af)],..._0x62344b['undos'],..._0x127b65]}),!0x0;}},ys={'type':_0xdd0bcc[_0x26db4b(0x32c)],'id':'sheet.command.update-pivot-table-source-range',async 'handler'(_0x1e8bf5,_0x5f202f){const _0xc4aa37=_0x26db4b,_0x5bf0cd=_0x1e8bf5['get'](_0x3f8860),_0xa8ade3=_0x1e8bf5[_0xc4aa37(0x15d)](Z),_0x34d5a5=_0x1e8bf5[_0xc4aa37(0x15d)](_0x67d53b);if(!_0x5f202f)return!0x1;const {token:_0x2cfbae,dataRangeInfo:_0x58db0a,unitId:_0xbef546,subUnitId:_0x1470c9}=_0x5f202f,_0x3e60f0=[],_0x5cb9da=[],_0x35eea3=(await _0xa8ade3[_0xc4aa37(0x221)]({'unitId':_0xbef546,'subUnitId':_0x1470c9,'pivotTableId':_0x2cfbae,'params':{'type':j[_0xc4aa37(0x333)],'updatePivotSource':{'dataRangeInfo':_0x58db0a,'unitId':_0xbef546,'subUnitId':_0x1470c9}}}))[_0xc4aa37(0x1c1)][_0xc4aa37(0x287)];if(!_0x35eea3)return!0x1;const {changesets:_0x2ee7a7,deleteIds:_0x300df4,collectionConfig:_0x242522,oldCollectionConfig:_0x43133e,view:_0x522bd6,isEmpty:_0x7f22e2,pivotTableConfig:_0x131d70}=_0x35eea3;_0x5cb9da[_0xc4aa37(0xe8)]({'id':to['id'],'params':{'pivotTableId':_0x2cfbae,'deleteIds':_0x300df4,'collectionJSON':_0x242522,'dataRangeInfo':_0x58db0a,'unitId':_0xbef546,'subUnitId':_0x1470c9}}),_0x3e60f0[_0xc4aa37(0x325)]({'id':to['id'],'params':{'pivotTableId':_0x2cfbae,'deleteIds':[],'collectionJSON':_0x43133e,'dataRangeInfo':_0x131d70[_0xc4aa37(0x150)],'unitId':_0xbef546,'subUnitId':_0x1470c9}});const _0x828617=_0x131d70[_0xc4aa37(0x20b)],_0x451f46=new _0x337713();_0x451f46['formJSON'](_0x522bd6);const _0x42dcf1={'cellInfo':_0x828617,'view':_0x451f46,'isEmpty':_0x7f22e2};if(!await _0x1e8bf5[_0xc4aa37(0x15d)](ie)[_0xc4aa37(0x326)]['fetchThroughAsyncInterceptors'](Se)(!0x0,_0x42dcf1))return!0x1;const _0x3ab9f3=we(_0x1e8bf5,_0x451f46,_0x828617,_0x7f22e2),_0x115ad5=_e(_0x1e8bf5,_0x42dcf1),{undos:_0x370b7a,redos:_0xa67aaf}=me(_0x5bf0cd,{'pivotTableId':_0x2cfbae,'unitId':_0xbef546,'subUnitId':_0x1470c9},_0x2ee7a7);return _0x3fbb9e([..._0x3ab9f3[_0xc4aa37(0x125)],..._0x115ad5['redos'],..._0x5cb9da,..._0x370b7a],_0x5bf0cd),_0x34d5a5[_0xc4aa37(0x2c1)]({'unitID':_0xbef546,'redoMutations':[..._0x3ab9f3[_0xc4aa37(0x125)],..._0x115ad5['redos'],..._0x5cb9da,..._0x370b7a],'undoMutations':[..._0x3ab9f3[_0xc4aa37(0x1af)],..._0x115ad5['undos'],..._0x3e60f0,..._0xa67aaf]}),!0x0;}},Ms={'type':_0xdd0bcc['COMMAND'],'id':_0x26db4b(0x247),async 'handler'(_0x34f837,_0x41749c){const _0x2a518d=_0x26db4b;if(!_0x41749c)return!0x1;const _0x22ad73=_0x34f837[_0x2a518d(0x15d)](_0x3f8860),_0x467fc2=_0x34f837['get'](Z),_0x452543=_0x34f837[_0x2a518d(0x15d)](_0x399741),_0x48f7c6=_0x34f837['get'](_0x67d53b),{pivotTableId:_0x338938,position:_0x47a7d,index:_0x36190f}=_0x41749c,_0x3f26bf=_0x3c834f(_0x452543);if(!_0x3f26bf)return!0x1;const {unitId:_0x372ca0,subUnitId:_0xee98a0}=_0x3f26bf,_0x297104=(await _0x467fc2[_0x2a518d(0x221)]({'unitId':_0x372ca0,'subUnitId':_0xee98a0,'pivotTableId':_0x338938,'params':{'type':j[_0x2a518d(0x15e)],'updateValuePosition':{'position':_0x47a7d,'index':_0x36190f}}}))[_0x2a518d(0x1c1)][_0x2a518d(0x2c0)];if(!_0x297104)return!0x1;const {changesets:_0x74bd6,view:_0x7a67b8,isEmpty:_0x4ae38f,pivotTableConfig:_0x344300}=_0x297104,_0x55137d=_0x344300[_0x2a518d(0x20b)],_0x59be45=new _0x337713();_0x59be45[_0x2a518d(0x2f7)](_0x7a67b8);const _0x3a69bf=_0x34f837[_0x2a518d(0x15d)](ie),_0x100a3a={'cellInfo':_0x55137d,'view':_0x59be45,'isEmpty':_0x4ae38f};if(!await _0x3a69bf[_0x2a518d(0x326)][_0x2a518d(0x2ef)](Se)(!0x0,_0x100a3a))return!0x1;const _0x582d46=we(_0x34f837,_0x59be45,_0x55137d,_0x4ae38f),_0x3e40ec=_e(_0x34f837,_0x100a3a),{undos:_0x223f15,redos:_0x27395f}=me(_0x22ad73,{'pivotTableId':_0x338938,'unitId':_0x372ca0,'subUnitId':_0xee98a0},_0x74bd6);return _0x3fbb9e([..._0x582d46[_0x2a518d(0x125)],..._0x3e40ec[_0x2a518d(0x125)],..._0x27395f],_0x22ad73),_0x48f7c6[_0x2a518d(0x2c1)]({'unitID':_0x372ca0,'redoMutations':[..._0x582d46[_0x2a518d(0x125)],..._0x3e40ec[_0x2a518d(0x125)],..._0x27395f],'undoMutations':[..._0x582d46[_0x2a518d(0x1af)],..._0x3e40ec['undos'],..._0x223f15]}),!0x0;}},ws={'type':_0xdd0bcc[_0x26db4b(0x32c)],'id':_0x26db4b(0x2ea),'handler':(_0x4546f7,_0x3d4b6c)=>{const _0x5735cc=_0x26db4b,_0x4149a1=_0x4546f7['get'](_0x3f8860),_0x4ad3a8=_0x4546f7[_0x5735cc(0x15d)](_0x67d53b),_0x1262fe=_0x4546f7[_0x5735cc(0x15d)](ve),_0x221479=_0x4546f7['get'](_0x399741);if(!_0x3d4b6c)return!0x1;const _0x6a8bfd=_0x3c834f(_0x221479);if(!_0x6a8bfd)return!0x1;const {unitId:_0x9136a0,subUnitId:_0x1d912f,workbook:_0x55d51b}=_0x6a8bfd,_0x41031f=_0x1262fe[_0x5735cc(0x13b)](_0x3d4b6c[_0x5735cc(0x100)]['unitId'],_0x3d4b6c[_0x5735cc(0x100)]['subUnitId'],_0x3d4b6c[_0x5735cc(0x1bf)]);if(!_0x41031f)return!0x1;const _0x12c0cb=_0x55d51b[_0x5735cc(0x117)](_0x3d4b6c[_0x5735cc(0x20b)]['subUnitId']);if(!_0x12c0cb)throw new Error(_0x5735cc(0x127));const _0x37bbb5=_0x12c0cb[_0x5735cc(0x1be)](),_0x48b92b=_0x12c0cb['getColumnCount']();if(_0x3d4b6c[_0x5735cc(0x20b)][_0x5735cc(0x198)]>_0x37bbb5||_0x3d4b6c[_0x5735cc(0x20b)][_0x5735cc(0x2be)]>_0x48b92b)throw new Error('[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range');const _0x26d614=[{'id':pt['id'],'params':{'unitId':_0x9136a0,'subUnitId':_0x3d4b6c[_0x5735cc(0x20b)][_0x5735cc(0x19b)],'pivotTableId':_0x3d4b6c['pivotTableId'],'targetCellPosition':{'row':_0x3d4b6c[_0x5735cc(0x20b)]['row'],'col':_0x3d4b6c[_0x5735cc(0x20b)][_0x5735cc(0x2be)]}}}],_0x472c0d=[{'id':pt['id'],'params':{'unitId':_0x9136a0,'subUnitId':_0x1d912f,'pivotTableId':_0x3d4b6c[_0x5735cc(0x1bf)],'targetCellPosition':{'row':_0x41031f[_0x5735cc(0x20b)][_0x5735cc(0x198)],'col':_0x41031f[_0x5735cc(0x20b)]['col']}}}];return _0x3fbb9e(_0x26d614,_0x4149a1)&&_0x4ad3a8[_0x5735cc(0x2c1)]({'unitID':_0x9136a0,'undoMutations':_0x472c0d,'redoMutations':_0x26d614}),!0x0;}},_s={'type':_0xdd0bcc['COMMAND'],'id':_0x26db4b(0x217),async 'handler'(_0x2ff83f,_0x5d2b95){const _0x1fd85a=_0x26db4b;if(!_0x5d2b95)return!0x1;const _0x320412=_0x2ff83f[_0x1fd85a(0x15d)](_0x3f8860),{pivotTableId:_0x44c738,fieldId:_0x1ce3e8,valueFilterInfo:_0x5814d9,unitId:_0x232848,subUnitId:_0x4e6885}=_0x5d2b95,_0x22fc27=_0x2ff83f[_0x1fd85a(0x15d)](Z),_0x52cfc4=_0x2ff83f[_0x1fd85a(0x15d)](_0x67d53b),_0x42125b=(await _0x22fc27[_0x1fd85a(0x221)]({'unitId':_0x232848,'subUnitId':_0x4e6885,'pivotTableId':_0x44c738,'params':{'type':j['SetValuePivotFilter'],'setValuePivotFilter':{'tableFieldId':_0x1ce3e8,'filterInfo':_0x5814d9}}}))[_0x1fd85a(0x1c1)][_0x1fd85a(0x294)];if(!_0x42125b)return!0x1;const {changesets:_0x3a9160,pivotTableConfig:_0x54f390,isEmpty:_0x42a3a7,view:_0x268aa1}=_0x42125b,_0x8d123c=_0x54f390[_0x1fd85a(0x20b)],_0x585660=new _0x337713();_0x585660[_0x1fd85a(0x2f7)](_0x268aa1);const _0x21d1cd={'cellInfo':_0x8d123c,'view':_0x585660,'isEmpty':_0x42a3a7};if(!await _0x2ff83f[_0x1fd85a(0x15d)](ie)[_0x1fd85a(0x326)][_0x1fd85a(0x2ef)](Se)(!0x0,_0x21d1cd))return!0x1;const _0x5bd307=we(_0x2ff83f,_0x585660,_0x8d123c,_0x42a3a7),_0x186afe=_e(_0x2ff83f,_0x21d1cd),{undos:_0x289529,redos:_0x500620}=me(_0x320412,{'pivotTableId':_0x44c738,'unitId':_0x232848,'subUnitId':_0x4e6885},_0x3a9160);return _0x3fbb9e([..._0x5bd307[_0x1fd85a(0x125)],..._0x186afe[_0x1fd85a(0x125)],..._0x500620],_0x320412),_0x52cfc4[_0x1fd85a(0x2c1)]({'unitID':_0x232848,'redoMutations':[..._0x5bd307['redos'],..._0x186afe[_0x1fd85a(0x125)],..._0x500620],'undoMutations':[..._0x5bd307[_0x1fd85a(0x1af)],..._0x186afe[_0x1fd85a(0x1af)],..._0x289529]}),!0x0;}},Fs={'type':_0xdd0bcc[_0x26db4b(0x32c)],'id':'sheet.command.set-pivot-fields-config',async 'handler'(_0x5d3cee,_0x3f8d34){const _0xcacc02=_0x26db4b;if(!_0x3f8d34)return!0x1;const _0x4825b0=_0x5d3cee['get'](_0x3f8860),_0x1b52ba=_0x5d3cee[_0xcacc02(0x15d)](_0x67d53b),_0x2e1f34=_0x5d3cee[_0xcacc02(0x15d)](Z),{pivotTableConfig:_0x101737,pivotTableId:_0x24421f,unitId:_0x30c2f9,subUnitId:_0x5806a5}=_0x3f8d34,_0x35a959=(await _0x2e1f34[_0xcacc02(0x221)]({'unitId':_0x30c2f9,'subUnitId':_0x5806a5,'pivotTableId':_0x24421f,'params':{'type':j[_0xcacc02(0x13a)],'setPivotTableConfig':{'pivotTableId':_0x24421f,'pivotTableConfig':_0x101737}}}))[_0xcacc02(0x1c1)][_0xcacc02(0x19d)];if(!_0x35a959)return!0x1;const {changesets:_0x5de6c4}=_0x35a959,{redos:_0x3d1ce0,undos:_0x1fef86}=me(_0x4825b0,{'pivotTableId':_0x24421f,'unitId':_0x30c2f9,'subUnitId':_0x5806a5},_0x5de6c4);return _0x3fbb9e(_0x3d1ce0,_0x4825b0),_0x1b52ba['pushUndoRedo']({'unitID':_0x30c2f9,'redoMutations':_0x3d1ce0,'undoMutations':_0x1fef86}),!0x0;}},Rs={'type':_0xdd0bcc[_0x26db4b(0x32c)],'id':_0x26db4b(0x307),async 'handler'(_0x29c1f9,_0x14f81b){const _0x4a991c=_0x26db4b;if(!_0x14f81b)return!0x1;const _0x420c08=_0x29c1f9[_0x4a991c(0x15d)](_0x3f8860),_0x54e8f0=_0x29c1f9[_0x4a991c(0x15d)](_0x67d53b),_0xd64e8b=_0x29c1f9[_0x4a991c(0x15d)](Z),{resetArea:_0x4d590e,pivotTableId:_0x45159b,unitId:_0x319bfb,subUnitId:_0x376cb4}=_0x14f81b,_0x32afc6=(await _0xd64e8b[_0x4a991c(0x221)]({'unitId':_0x319bfb,'subUnitId':_0x376cb4,'pivotTableId':_0x45159b,'params':{'type':j[_0x4a991c(0x160)],'resetPivotTable':{'pivotTableId':_0x45159b,'resetArea':_0x4d590e}}}))[_0x4a991c(0x1c1)][_0x4a991c(0x313)];if(!_0x32afc6)return!0x1;const {changesets:_0x11066b}=_0x32afc6,{redos:_0x3b7a46,undos:_0x182c79}=me(_0x420c08,{'pivotTableId':_0x45159b,'unitId':_0x319bfb,'subUnitId':_0x376cb4},_0x11066b);return _0x3fbb9e(_0x3b7a46,_0x420c08),_0x54e8f0['pushUndoRedo']({'unitID':_0x319bfb,'redoMutations':_0x3b7a46,'undoMutations':_0x182c79}),!0x0;}},oo={'id':_0x26db4b(0x1f6),'type':_0xdd0bcc[_0x26db4b(0x201)],'handler':(_0x76e804,_0x11f4e6)=>{const _0x984268=_0x26db4b;if(!_0x11f4e6)return!0x1;if(!!_0x76e804[_0x984268(0x15d)](_0x355993)[_0x984268(0x316)](K))return!0x0;const {unitId:_0x3e8ee4,subUnitId:_0x421e2a,pivotTableId:_0x3c0cff,tableFieldId:_0x32e260,dateType:_0x5d64ff}=_0x11f4e6,_0x72c3cf=_0x76e804[_0x984268(0x15d)](H),_0x1a22ca=_0x72c3cf[_0x984268(0x28c)](_0x3c0cff);if(!_0x1a22ca)return!0x1;const _0x23c759=_0x1a22ca[_0x984268(0x2e2)](_0x32e260);if(!_0x23c759)return!0x1;const _0x1bf325=_0x23c759[_0x984268(0x2db)](),_0x2e7e65=_0x1a22ca['getDataFieldByDataFieldId'](_0x1bf325),_0xcb755a=(_0x2e7e65==null?void 0x0:_0x2e7e65[_0x984268(0x154)]())+'\x20'+Ko(_0x76e804,_0x5d64ff);_0x72c3cf[_0x984268(0x106)](_0x3e8ee4,_0x3c0cff)[_0x984268(0x1f3)](_0x23c759['id'],_0xcb755a);const _0x2a9b76=_0x1a22ca['getTableFieldById'](_0x32e260);if(!_0x2a9b76)return!0x1;_0x1a22ca[_0x984268(0x1ee)](_0x2a9b76[_0x984268(0xc4)](),_0xcb755a),_0x23c759['setDateType'](_0x5d64ff);const _0x4f8c4e=_0x72c3cf['getPivotTableConfig'](_0x3e8ee4,_0x421e2a,_0x3c0cff);return _0x72c3cf[_0x984268(0x1d3)]({'unitId':_0x3e8ee4,'subUnitId':_0x421e2a,'token':_0x3c0cff,'type':B[_0x984268(0x16f)],'pivotConfig':_0x4f8c4e}),!0x0;}},Ds={'id':_0x26db4b(0x32b),'type':_0xdd0bcc[_0x26db4b(0x32c)],'handler':(_0x387e27,_0x57440d)=>{const _0x474aca=_0x26db4b;if(!_0x57440d)return!0x1;const _0x4b893f=_0x387e27[_0x474aca(0x15d)](_0x67d53b),{unitId:_0x4d9857,subUnitId:_0x3f143c,pivotTableId:_0x1bd044,tableFieldId:_0xf68997}=_0x57440d,_0x21e923=[],_0x582254=[],_0x4d0e99=_0x387e27[_0x474aca(0x15d)](ve),_0x1e1818=_0x4d0e99['getCollection'](_0x4d9857,_0x1bd044),_0x19ad28=_0x4d0e99[_0x474aca(0x13b)](_0x4d9857,_0x3f143c,_0x1bd044);if(!(_0x19ad28!=null&&_0x19ad28[_0x474aca(0x2d5)][_0x474aca(0x24e)]))return!0x1;const _0x15a341=Object[_0x474aca(0x271)](_0x19ad28[_0x474aca(0x2d5)]['dimension'])[_0x474aca(0x26f)](_0x22b1f1=>_0x22b1f1['id']===_0xf68997);if(!_0x15a341)return!0x1;const _0x4ba442=_0x15a341[_0x474aca(0x28b)];if(!(_0x1e1818!=null&&_0x1e1818['fields']))return!0x1;const _0x90d751=Object['values'](_0x1e1818==null?void 0x0:_0x1e1818['fields'])[_0x474aca(0x26f)](_0x3c86cd=>_0x3c86cd['id']===_0x4ba442);if(!_0x90d751)return!0x1;_0xa08ad6(_0x90d751)&&_0x21e923[_0x474aca(0xe8)]({'id':oo['id'],'params':{..._0x57440d,'dateType':_0x90d751[_0x474aca(0x311)]}}),_0x582254[_0x474aca(0xe8)]({'id':oo['id'],'params':{..._0x57440d}});const _0x3f23a8=_0x387e27[_0x474aca(0x15d)](_0x3f8860);return _0x3fbb9e(_0x582254,_0x3f23a8)&&_0x4b893f[_0x474aca(0x2c1)]({'unitID':_0x4d9857,'undoMutations':_0x21e923,'redoMutations':_0x582254}),!0x0;}};var Ns=Object[_0x26db4b(0x137)],Us=(_0x27e1ae,_0xfc591b,_0x52b8c9,_0x2aa09e)=>{const _0xb15dac=_0x26db4b;for(var _0x6c87b7=_0x2aa09e>0x1?void 0x0:_0x2aa09e?Ns(_0xfc591b,_0x52b8c9):_0xfc591b,_0x158c1a=_0x27e1ae[_0xb15dac(0x20c)]-0x1,_0x2bf57d;_0x158c1a>=0x0;_0x158c1a--)(_0x2bf57d=_0x27e1ae[_0x158c1a])&&(_0x6c87b7=_0x2bf57d(_0x6c87b7)||_0x6c87b7);return _0x6c87b7;},We=(_0x2321b2,_0x2efa1f)=>(_0x200896,_0x2c8ac1)=>_0x2efa1f(_0x200896,_0x2c8ac1,_0x2321b2);const Vs=()=>({'runtimeCellData':{},'dirtyRanges':{}}),Es=(_0xd1164e,_0x476c73,_0x2e8b2e)=>{const _0x4cfd88=_0x26db4b,_0xfe5e33=_0xd1164e[_0x4cfd88(0x207)];_0xd1164e[_0x4cfd88(0x266)](_0x57f5f5=>{const _0x118c33=_0x4cfd88,_0x49fc7e=_0x57f5f5[_0x118c33(0xc4)](),_0x2c946a=_0x57f5f5[_0x118c33(0x2af)](),_0x25b0a=_0x57f5f5[_0x118c33(0x1ff)](),_0x5ad305=_0x57f5f5['getDisplayName']();_0x476c73[_0x2c946a]&&_0x476c73[_0x2c946a]===_0x5ad305&&_0x25b0a===_0x5ad305&&(_0xd1164e[_0x118c33(0x1ee)](_0x49fc7e,_0xfe5e33[_0x118c33(0x173)](_0x2c946a)),_0x57f5f5[_0x118c33(0x167)](_0xfe5e33[_0x118c33(0x173)](_0x2c946a)));}),_0xd1164e[_0x4cfd88(0x25f)](_0x42f9ea[_0x4cfd88(0x2b5)],_0x7c501f=>{const _0x13c040=_0x4cfd88,_0x240287=_0x7c501f['getId'](),_0x22fd92=_0x7c501f[_0x13c040(0x2af)](),_0x34fc0c=_0x7c501f[_0x13c040(0x1ff)](),_0x3cd0d5=_0x7c501f[_0x13c040(0x173)](),_0x314d32=_0x7c501f[_0x13c040(0x238)](),_0x45fb5b=_0x2e8b2e(_0x34fc0c,_0x314d32);_0x476c73[_0x22fd92]&&_0x476c73[_0x22fd92]===_0x34fc0c&&_0x45fb5b===_0x3cd0d5&&(_0xd1164e[_0x13c040(0x1ee)](_0x240287,_0x2e8b2e(_0xfe5e33['getDisplayName'](_0x22fd92),_0x314d32)),_0x7c501f[_0x13c040(0x167)](_0xfe5e33[_0x13c040(0x173)](_0x22fd92)));});},xs=(_0x176dab,_0x581f1e,_0x566669)=>{const _0x530f6f=_0x26db4b;var _0x2b2dc0,_0x21fbb3;const {arrayFormulaCellData:_0x1ce265,unitData:_0x196287}=_0x581f1e,{unitId:_0x9c5b5a,subUnitId:_0x27dc53}=_0x566669,_0x17222e=_0x566669[_0x530f6f(0xec)],{startColumn:_0x529736,endColumn:_0x47c7f5}=_0x17222e,_0x3160a6=(_0x2b2dc0=_0x1ce265==null?void 0x0:_0x1ce265[_0x9c5b5a])==null?void 0x0:_0x2b2dc0[_0x27dc53],_0x4739ab=(_0x21fbb3=_0x196287==null?void 0x0:_0x196287[_0x9c5b5a])==null?void 0x0:_0x21fbb3[_0x27dc53],_0xc1094b=new Set(),_0x4a15cb=_0x47c7f5-_0x529736+0x1,{dirtyRanges:_0x58ad2d}=_0x176dab;if(_0x58ad2d)for(const {range:_0x22c385,sheetId:_0x1ee896,unitId:_0x3fe611}of _0x58ad2d){if(_0x1ee896!==_0x27dc53||_0x9c5b5a!==_0x3fe611)continue;const _0x4c4c6b=_0x4d6abc[_0x530f6f(0x15a)](_0x22c385,_0x17222e);if(_0x4c4c6b){const {startColumn:_0x1beaea,endColumn:_0x4de1c4}=_0x4c4c6b;for(let _0xace09f=_0x1beaea;_0xace09f<=_0x4de1c4;_0xace09f++)_0xc1094b['add'](_0xace09f);}}if(_0xc1094b['size']===_0x4a15cb||_0xc1094b[_0x530f6f(0x321)]===_0x4a15cb)return Array['from'](_0xc1094b);if(_0x4739ab){const _0xac52da=_0x4739ab['getMatrix'](),_0x281ac2=Object[_0x530f6f(0x301)](_0xac52da);for(const _0x279609 of _0x281ac2){const _0x4f3b44=Number(_0x279609),_0x94bd2e=_0xac52da[_0x4f3b44];if(_0xc1094b['size']===_0x4a15cb)break;for(const _0x28c9d2 in _0x94bd2e){const _0x5f573f=Number(_0x28c9d2);_0x5f573f<_0x529736||_0x5f573f>_0x47c7f5||_0xc1094b['add'](_0x5f573f);}}}if(_0x3160a6){const _0x1f581d=_0x3160a6[_0x530f6f(0x2e1)](),_0x202b88=Object[_0x530f6f(0x301)](_0x1f581d);for(const _0x3314cb of _0x202b88){const _0x427625=Number(_0x3314cb),_0x240988=_0x1f581d[_0x427625];if(_0xc1094b[_0x530f6f(0x321)]===_0x4a15cb)break;for(const _0x55f8c7 in _0x240988){const _0x36eb57=Number(_0x55f8c7);_0x36eb57<_0x529736||_0x36eb57>_0x47c7f5||_0xc1094b['add'](_0x36eb57);}}}return Array[_0x530f6f(0x27c)](_0xc1094b);},Os=_0x5d137f=>{const _0x24acce=_0x26db4b,_0x35e808=new Set(),_0x42a0b3=[];for(const _0x152d42 of _0x5d137f){const _0x336fe8=_0x152d42[_0x24acce(0x15f)]+','+_0x152d42[_0x24acce(0x234)]+','+_0x152d42[_0x24acce(0x148)]+','+_0x152d42[_0x24acce(0x187)];_0x35e808[_0x24acce(0x18a)](_0x336fe8)||(_0x35e808[_0x24acce(0x1ba)](_0x336fe8),_0x42a0b3[_0x24acce(0xe8)](_0x152d42));}return _0x42a0b3;};let ct=class extends _0x37fbd9{constructor(_0x1e2c55,_0x27ebe0,_0x7da3a1,_0x4f53a6,_0x30ca89,_0x27fb09){const _0x3fa0fc=_0x26db4b;super(),V(this,_0x3fa0fc(0x1c7),new _0xd9cb80(!0x0)),V(this,_0x3fa0fc(0x29a),_0x4cad72=>{const _0x4bb311=_0x3fa0fc;this[_0x4bb311(0x1c7)][_0x4bb311(0x2a8)](!0x1);}),V(this,_0x3fa0fc(0x2f4),_0x135618=>{const _0x2d4632=_0x3fa0fc;this[_0x2d4632(0x1c7)][_0x2d4632(0x2a8)](!0x0);}),(this[_0x3fa0fc(0x276)]=_0x1e2c55,this[_0x3fa0fc(0x226)]=_0x27ebe0,this[_0x3fa0fc(0x262)]=_0x7da3a1,this[_0x3fa0fc(0x1fd)]=_0x4f53a6,this[_0x3fa0fc(0xfa)]=_0x30ca89,this['_injector']=_0x27fb09,this[_0x3fa0fc(0x2ff)](),this['_initPivotDataGetListener']());}[_0x26db4b(0x2ff)](){const _0x158330=_0x26db4b;this['_subjectCollectionChange'](),this[_0x158330(0x2bd)](),this[_0x158330(0x25c)](),this[_0x158330(0x32d)]();}['_initGlobalComputed'](){const _0xecb385=_0x26db4b;this[_0xecb385(0xfa)][_0xecb385(0x222)](this['_globalSubject']),_0x4355b5[_0xecb385(0x225)](_0x4d7eb4[_0xecb385(0x267)],this[_0xecb385(0x29a)]),_0x4355b5[_0xecb385(0x225)](_0x4d7eb4[_0xecb385(0x2c8)],this['_globalComputedEndHelpFunc']);}[_0x26db4b(0x29c)](){const _0x20cafa=_0x26db4b;this[_0x20cafa(0x2b8)](this[_0x20cafa(0x1fd)][_0x20cafa(0x12d)](_0x265b29=>{const _0x10c3cc=_0x20cafa;_0x265b29['id']===_0x524908['id']&&this[_0x10c3cc(0x276)]['handleMoveRange'](_0x265b29[_0x10c3cc(0x231)]);})),this[_0x20cafa(0x2b8)](this['_commandService'][_0x20cafa(0x12d)](_0x17b438=>{const _0x151b65=_0x20cafa;if(_0x17b438['id']!==ro['id'])return;const _0x360055=_0x17b438[_0x151b65(0x231)],{unitId:_0x78b9fc,subUnitId:_0x14e360,pivotTableId:_0x1bf00e}=_0x360055,_0x1662c2=_0x360055[_0x151b65(0x231)][_0x151b65(0xc7)],_0x323588={};switch(_0x1662c2){case j[_0x151b65(0x256)]:{const _0x14ddfc=_0x360055[_0x151b65(0x231)][_0x151b65(0xdf)];if(!_0x14ddfc)return;const {row:_0x352012,col:_0x110c33,cellData:_0x190678,pivotItemRenderInfoCache:_0x2e3425,tableFieldId:_0x439f41}=_0x14ddfc,_0x3541a4=this[_0x151b65(0x276)][_0x151b65(0x28c)](_0x360055[_0x151b65(0x1bf)]);if(!_0x3541a4||!_0x2e3425)return;if(_0x439f41){const _0x36c450=_0x3541a4[_0x151b65(0x2e2)](_0x439f41);if(!_0x36c450)return;_0x323588[_0x151b65(0xdf)]={..._0x3541a4[_0x151b65(0xf0)](_0x36c450),'tableFieldId':_0x439f41,'pivotTableId':_0x360055[_0x151b65(0x1bf)],'filterInfo':_0x3541a4[_0x151b65(0x281)](_0x439f41),'sortInfo':_0x3541a4[_0x151b65(0xfb)](_0x439f41),'format':_0x3541a4['getFieldFormat'](_0x439f41)};}else{const _0x5785ef=xi(_0x352012,_0x110c33,_0x190678,_0x3541a4,_0x2e3425),_0xad6cf=_0x5785ef==null?void 0x0:_0x5785ef[_0x151b65(0x1de)];if(!_0xad6cf)return;const _0x221996=_0x3541a4[_0x151b65(0x2e2)](_0xad6cf);if(!_0x221996)return;_0x323588[_0x151b65(0xdf)]={..._0x3541a4[_0x151b65(0xf0)](_0x221996),'tableFieldId':_0xad6cf,'pivotTableId':_0x360055[_0x151b65(0x1bf)],'filterInfo':_0x3541a4[_0x151b65(0x281)](_0xad6cf),'sortInfo':_0x3541a4[_0x151b65(0xfb)](_0xad6cf),'format':_0x3541a4[_0x151b65(0x1e1)](_0xad6cf)};}}break;case j[_0x151b65(0x248)]:{const _0x182308=_0x360055[_0x151b65(0x231)][_0x151b65(0x2a0)];if(!_0x182308)return;const {pivotTableId:_0x53b779}=_0x182308,_0x5cb55c=this[_0x151b65(0x276)][_0x151b65(0x28c)](_0x53b779);if(!_0x5cb55c)return;const _0x49d21c=this[_0x151b65(0x276)][_0x151b65(0x13b)](_0x78b9fc,_0x14e360,_0x53b779),_0x4834ab=Oi(_0x5cb55c,_0x53b779,_0x49d21c);_0x323588[_0x151b65(0x2a0)]=_0x4834ab;}break;case j[_0x151b65(0x317)]:{const _0x16d1f3=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x1bf00e),_0x31a8b9=this[_0x151b65(0x276)][_0x151b65(0x30e)](_0x78b9fc),_0x503984=_0x31a8b9[_0x151b65(0x106)](_0x1bf00e);let _0x47b1fa=null;const _0x893313=this[_0x151b65(0x276)][_0x151b65(0x13b)](_0x78b9fc,_0x14e360,_0x1bf00e),_0x100e41=_0x360055[_0x151b65(0x231)][_0x151b65(0x228)];if(!_0x16d1f3||!_0x893313||!_0x100e41)return!0x1;const {dataFieldId:_0x416ef7,fieldArea:_0x1765fa,index:_0xf46b94}=_0x100e41;_0x16d1f3[_0x151b65(0x232)]();const _0xc03c62=_0x16d1f3['addFieldWithSourceId'](_0x416ef7,_0x1765fa,_0xf46b94);if(_0xc03c62&&_0x1765fa===_0x42f9ea['Value']){const _0x56e4b9=_0xc03c62[_0x151b65(0xc4)](),_0x3355ad=_0x16d1f3[_0x151b65(0x2e2)](_0x56e4b9);if(_0x3355ad){const _0x12e2a4=_0x3355ad==null?void 0x0:_0x3355ad[_0x151b65(0x289)]();_0x16d1f3[_0x151b65(0x2e4)](_0xc03c62[_0x151b65(0xc4)](),_0x12e2a4===_0x2b03ae[_0x151b65(0xcc)]?_0x3c1999[_0x151b65(0x286)]:_0x3c1999[_0x151b65(0x1db)]);}const _0x5a1130=_0x16d1f3[_0x151b65(0x1fc)](),_0x448e0d=_0x16d1f3['getValuePosition'](),_0x10fcb1=_0x16d1f3[_0x151b65(0x2aa)](_0x42f9ea[_0x151b65(0x2b5)]);if(_0x5a1130===-0x1&&_0x10fcb1>0x1){const _0x36595b=_0x448e0d===_0xb6cd19['None']?_0xb6cd19[_0x151b65(0x19a)]:_0x448e0d,_0x47ab91=_0x36595b===_0xb6cd19['Row']?_0x42f9ea['Row']:_0x42f9ea[_0x151b65(0x19a)];_0x16d1f3[_0x151b65(0x2c0)](_0x36595b,_0x16d1f3[_0x151b65(0x2aa)](_0x47ab91));}}else{if(_0xc03c62&&(_0x1765fa===_0x42f9ea[_0x151b65(0x13f)]||_0x1765fa===_0x42f9ea[_0x151b65(0x19a)])){const _0x41a84f=_0xc03c62[_0x151b65(0xc4)](),_0x1adfe0=_0x16d1f3[_0x151b65(0x2e2)](_0x41a84f);if(_0x1adfe0&&(_0x1adfe0==null?void 0x0:_0x1adfe0[_0x151b65(0x289)]())===_0x2b03ae[_0x151b65(0x1d8)]){const _0x2438cf=_0x1adfe0[_0x151b65(0x29f)]();if(_0x2438cf&&_0x16d1f3[_0x151b65(0x24c)](_0xc03c62[_0x151b65(0xc4)](),_0x2438cf),!_0x503984[_0x151b65(0x2f3)]()['some'](_0x231e3d=>{const _0x38a8e8=_0x151b65,_0x4ec638=_0x503984[_0x38a8e8(0x1da)](_0x231e3d);return _0x389cbe(_0x4ec638)?_0x4ec638[_0x38a8e8(0x1c3)]()['originalFieldId']===_0x416ef7:!0x1;})){const _0xeecdc3=_0x31a8b9[_0x151b65(0x22f)](),_0x53628c=Ji(_0x1adfe0[_0x151b65(0x23e)],_0x1adfe0['minDate']),_0x41f69d=_0x1adfe0['getName']()+'\x20-\x20'+Ko(this[_0x151b65(0x211)],_0x53628c),_0x33e35f=new _0x354c01(_0xeecdc3,_0x41f69d,_0x4995ae(0x3),_0x1adfe0[_0x151b65(0xc4)](),_0x53628c);_0x31a8b9[_0x151b65(0xef)](_0x33e35f),_0x503984[_0x151b65(0x176)](_0xeecdc3,_0x41f69d),_0x16d1f3[_0x151b65(0x205)](_0xeecdc3,_0x1765fa,(_0xf46b94!=null?_0xf46b94:0x0)+0x1),_0x47b1fa=_0x33e35f;}}}}const _0x444266=_0x16d1f3[_0x151b65(0x26b)](),_0x5693c9=_0x16d1f3['query']()[_0x151b65(0xfd)]();let _0x540df9;if(_0x47b1fa){_0x540df9=_0x47b1fa['toJSON']();const _0x9fc79b=_0x47b1fa['getId']();_0x503984[_0x151b65(0x283)](_0x9fc79b);let _0x106a1e=!0x0;for(const _0x2127ea in _0x31a8b9[_0x151b65(0x253)])if(_0x31a8b9[_0x151b65(0x253)][_0x2127ea][_0x151b65(0x2f3)]()['includes'](_0x9fc79b)){_0x106a1e=!0x1;break;}_0x106a1e&&_0x31a8b9[_0x151b65(0x1b9)](_0x9fc79b);}const _0x1b3de7=_0x16d1f3['endCollectChangeset']();_0x323588[_0x151b65(0x228)]={'view':_0x5693c9,'changesets':_0x1b3de7,'isEmpty':_0x444266,'pivotTableConfig':_0x893313,'shouldBeAddedGroupJSON':_0x540df9};}break;case j[_0x151b65(0x291)]:{const _0x3dce33=_0x360055['params']['addPivotTable'];if(!_0x3dce33)return;const _0x3b1cd0=_0x3dce33[_0x151b65(0x150)],_0x106f48=_0x3dce33[_0x151b65(0x1bf)],{collection:_0x792e4c}=this[_0x151b65(0x276)][_0x151b65(0x2c4)]({'unitId':_0x3b1cd0[_0x151b65(0x17c)],'sheetName':_0x3b1cd0['sheetName'],'subUnitId':_0x3b1cd0[_0x151b65(0x19b)],'range':_0x3b1cd0[_0x151b65(0xec)]}),_0x2314f2=new _0x4355b5(_0x792e4c,void 0x0,_0x106f48),_0x561304=_0x2314f2[_0x151b65(0x1f2)](),_0x313fcc=_0x2314f2[_0x151b65(0xfd)](),_0x1ef73b=_0x792e4c[_0x151b65(0xfd)]();_0x323588[_0x151b65(0x249)]={'view':_0x561304,'fieldsConfig':_0x313fcc,'collectionConfig':_0x1ef73b,'isEmpty':_0x2314f2[_0x151b65(0x26b)]()};}break;case j[_0x151b65(0x10c)]:{const _0x56de91=_0x360055['params'][_0x151b65(0x27f)];if(!_0x56de91)return;const {fieldId:_0x11e110,area:_0x4fc43b,index:_0x3e3438}=_0x56de91,_0x2af890=this[_0x151b65(0x276)][_0x151b65(0x13b)](_0x78b9fc,_0x14e360,_0x1bf00e);if(!_0x2af890)return;const _0x491a16=this[_0x151b65(0x276)][_0x151b65(0x28c)](_0x1bf00e);if(!_0x491a16)return;_0x491a16[_0x151b65(0x232)]();const {area:_0x4fb426,index:_0x3924e1}=_0x491a16[_0x151b65(0x310)](_0x11e110);if(_0x491a16[_0x151b65(0x116)](_0x11e110,_0x4fc43b,_0x3e3438),_0x4fc43b===_0x42f9ea[_0x151b65(0x2b5)]&&_0x491a16[_0x151b65(0x2f8)](_0x11e110)[_0x151b65(0x238)]()===void 0x0){const _0x8bfeea=_0x491a16['getTableFieldById'](_0x11e110);if(_0x8bfeea&&_0x8bfeea[_0x151b65(0x238)]()===void 0x0){const _0x2f4f0e=_0x491a16['getDataFieldByTableId'](_0x11e110);if(_0x2f4f0e){const _0x5804ec=_0x2f4f0e==null?void 0x0:_0x2f4f0e['getFieldDataType']();_0x491a16[_0x151b65(0x2e4)](_0x11e110,_0x5804ec===_0x2b03ae[_0x151b65(0xcc)]?_0x3c1999['sum']:_0x3c1999[_0x151b65(0x1db)]);}}}const _0x1c9f9b=_0x491a16['getValuePosition'](),_0x1775a2=_0x491a16[_0x151b65(0x1fc)](),_0x1109e0=_0x491a16[_0x151b65(0x2aa)](_0x42f9ea[_0x151b65(0x2b5)])>0x1;if(_0x1109e0&&_0x4fb426===_0x4fc43b&&(_0x4fc43b===_0x42f9ea[_0x151b65(0x13f)]&&_0x1c9f9b===_0xb6cd19[_0x151b65(0x13f)]||_0x4fc43b===_0x42f9ea[_0x151b65(0x19a)]&&_0x1c9f9b===_0xb6cd19[_0x151b65(0x19a)])){let _0x2ce3fc=_0x1775a2;_0x3924e1<=_0x1775a2&&_0x2ce3fc--,_0x3e3438<=_0x1775a2&&_0x2ce3fc++,_0x491a16[_0x151b65(0x2c0)](_0x1c9f9b,_0x2ce3fc);}else _0x1109e0&&(_0x4fb426===_0x42f9ea[_0x151b65(0x13f)]&&_0x1c9f9b===_0xb6cd19['Row']||_0x4fb426===_0x42f9ea[_0x151b65(0x19a)]&&_0x1c9f9b===_0xb6cd19[_0x151b65(0x19a)])&&_0x1775a2>=_0x3924e1&&_0x491a16[_0x151b65(0x2c0)](_0x1c9f9b,_0x1775a2-0x1),_0x1109e0&&(_0x4fc43b===_0x42f9ea[_0x151b65(0x13f)]&&_0x1c9f9b===_0xb6cd19['Row']||_0x4fc43b===_0x42f9ea[_0x151b65(0x19a)]&&_0x1c9f9b===_0xb6cd19[_0x151b65(0x19a)])&&_0x1775a2>=_0x3e3438&&_0x491a16[_0x151b65(0x2c0)](_0x1c9f9b,_0x1775a2+0x1);const _0x3c9d8c=_0x491a16[_0x151b65(0x1f2)](),_0x437c37=_0x491a16[_0x151b65(0x26b)](),_0x408422=_0x491a16[_0x151b65(0x2bf)]();_0x323588[_0x151b65(0x27f)]={'view':_0x3c9d8c[_0x151b65(0xfd)](),'changesets':_0x408422,'isEmpty':_0x437c37,'pivotTableConfig':_0x2af890};}break;case j[_0x151b65(0x12b)]:{const _0x2c8038=_0x360055[_0x151b65(0x231)][_0x151b65(0x327)];if(!_0x2c8038)return;const _0x45fc04=_0x2c8038[_0x151b65(0x273)],_0x475e41=this[_0x151b65(0x276)][_0x151b65(0x13b)](_0x78b9fc,_0x14e360,_0x1bf00e);if(!_0x475e41)return!0x1;const _0x1d4e48=this[_0x151b65(0x276)][_0x151b65(0x28c)](_0x1bf00e);if(!_0x1d4e48)return!0x1;_0x1d4e48[_0x151b65(0x232)]();for(const _0x77d563 of _0x45fc04){const {area:_0x2a6baa}=_0x1d4e48[_0x151b65(0x310)](_0x77d563);_0x2a6baa===_0x42f9ea[_0x151b65(0x2b5)]&&_0x1d4e48[_0x151b65(0xcf)](_0x77d563),(_0x2a6baa===_0x42f9ea[_0x151b65(0x13f)]||_0x2a6baa===_0x42f9ea[_0x151b65(0x19a)])&&_0x1d4e48[_0x151b65(0x16e)](_0x77d563),_0x1d4e48[_0x151b65(0x1dd)](_0x77d563);}const _0x3d9069=_0x1d4e48['isEmpty'](),_0x5f5c02=_0x1d4e48['query']()[_0x151b65(0xfd)](),_0x1c67c9=_0x1d4e48['endCollectChangeset']();_0x323588[_0x151b65(0x327)]={'changesets':_0x1c67c9,'pivotTableConfig':_0x475e41,'isEmpty':_0x3d9069,'view':_0x5f5c02};}break;case j[_0x151b65(0x108)]:{const _0x7825a6=_0x360055['params'][_0x151b65(0x157)];if(!_0x7825a6)return;const {tableFieldId:_0x4fe261,items:_0x5ac9ad,isAll:_0x4b8117}=_0x7825a6,_0x1f18cb=this[_0x151b65(0x276)][_0x151b65(0x28c)](_0x1bf00e),_0x4637ad=this['_sheetsPivotDataSourceModel'][_0x151b65(0x13b)](_0x78b9fc,_0x14e360,_0x1bf00e);if(!_0x1f18cb||!_0x4637ad)return;_0x1f18cb[_0x151b65(0x232)](),_0x1f18cb['setLabelFilterInfo'](_0x4fe261,{'type':_0x486124['ManualFilter'],'list':_0x5ac9ad,'isAll':_0x4b8117});const _0x5d1413=_0x1f18cb[_0x151b65(0x26b)](),_0x2d6ed1=_0x1f18cb[_0x151b65(0x1f2)]()['toJSON'](),_0x1e6501=_0x1f18cb[_0x151b65(0x2bf)]();_0x323588[_0x151b65(0x157)]={'view':_0x2d6ed1,'changesets':_0x1e6501,'isEmpty':_0x5d1413,'pivotTableConfig':_0x4637ad};}break;case j[_0x151b65(0x29e)]:{const _0x1e1dd3=_0x360055[_0x151b65(0x231)]['setValuePivotFilter'];if(!_0x1e1dd3)return;const {tableFieldId:_0x1aaf9b,filterInfo:_0x4fc555}=_0x1e1dd3,_0x14b8db=this['_sheetsPivotDataSourceModel'][_0x151b65(0x28c)](_0x1bf00e),_0x63edec=this[_0x151b65(0x276)][_0x151b65(0x13b)](_0x78b9fc,_0x14e360,_0x1bf00e);if(!_0x14b8db||!_0x63edec)return;_0x14b8db[_0x151b65(0x232)](),_0x14b8db[_0x151b65(0x18d)](_0x1aaf9b,_0x4fc555);const _0x2c0bc8=_0x14b8db[_0x151b65(0x26b)](),_0x2ddc24=_0x14b8db[_0x151b65(0x1f2)]()[_0x151b65(0xfd)](),_0x4aff8f=_0x14b8db[_0x151b65(0x2bf)]();_0x323588[_0x151b65(0x294)]={'view':_0x2ddc24,'changesets':_0x4aff8f,'isEmpty':_0x2c0bc8,'pivotTableConfig':_0x63edec};}break;case j[_0x151b65(0x331)]:{const _0x129ba0=_0x360055['params'][_0x151b65(0x2b2)];if(!_0x129ba0)return;const {tableFieldId:_0x59ddc6,info:_0x297f6c}=_0x129ba0,_0x195328=this['_sheetsPivotDataSourceModel'][_0x151b65(0x28c)](_0x1bf00e),_0x4ef92d=this['_sheetsPivotDataSourceModel'][_0x151b65(0x13b)](_0x78b9fc,_0x14e360,_0x1bf00e);if(!_0x195328||!_0x4ef92d)return;_0x195328[_0x151b65(0x232)](),_0x195328[_0x151b65(0x1cb)](_0x59ddc6,_0x297f6c);const _0x459124=_0x195328[_0x151b65(0x26b)](),_0x45364e=_0x195328[_0x151b65(0x1f2)]()['toJSON'](),_0x3eb485=_0x195328[_0x151b65(0x2bf)]();_0x323588[_0x151b65(0x2b2)]={'view':_0x45364e,'changesets':_0x3eb485,'isEmpty':_0x459124,'pivotTableConfig':_0x4ef92d};}break;case j[_0x151b65(0x12f)]:{const _0x4088f3=_0x360055[_0x151b65(0x231)][_0x151b65(0x2bb)];if(!_0x4088f3)return;const {tableFieldId:_0x2b64c5,displayName:_0x19c76c,subtotalType:_0x5a7f34,format:_0x1b2e33}=_0x4088f3,_0x6ae7a6=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x1bf00e),_0x244ce0=this['_sheetsPivotDataSourceModel'][_0x151b65(0x13b)](_0x78b9fc,_0x14e360,_0x1bf00e);if(!_0x6ae7a6||!_0x244ce0)return;_0x6ae7a6['startCollectChangeset'](),_0x19c76c!==void 0x0&&_0x6ae7a6['renameField'](_0x2b64c5,_0x19c76c),_0x5a7f34!==void 0x0&&_0x6ae7a6[_0x151b65(0x2e4)](_0x2b64c5,_0x5a7f34),_0x1b2e33!==void 0x0&&_0x6ae7a6[_0x151b65(0x24c)](_0x2b64c5,_0x1b2e33);const _0x219430=_0x6ae7a6[_0x151b65(0x26b)](),_0x3bf3e5=_0x6ae7a6[_0x151b65(0x1f2)]()['toJSON'](),_0x5d0443=_0x6ae7a6[_0x151b65(0x2bf)]();_0x323588['setPivotSetting']={'changesets':_0x5d0443,'pivotTableConfig':_0x244ce0,'isEmpty':_0x219430,'view':_0x3bf3e5};}break;case j[_0x151b65(0x333)]:{const _0xf370ac=_0x360055[_0x151b65(0x231)]['updatePivotSource'];if(!_0xf370ac)return;const {dataRangeInfo:_0x350311,unitId:_0x1f585a,subUnitId:_0x25eb01}=_0xf370ac,_0x38a8a0=this[_0x151b65(0x276)]['getPivotTableConfig'](_0x1f585a,_0x25eb01,_0x1bf00e),_0x2949d8=this[_0x151b65(0x276)][_0x151b65(0x28c)](_0x1bf00e);if(!this[_0x151b65(0x276)][_0x151b65(0x106)](_0x1f585a,_0x1bf00e)||!_0x2949d8||!_0x38a8a0)return;const _0x369426=this[_0x151b65(0x276)][_0x151b65(0x21d)](_0x1f585a,_0x1bf00e,_0x350311),_0x2f0262=this['_sheetsPivotDataSourceModel'][_0x151b65(0x106)](_0x1f585a,_0x1bf00e)[_0x151b65(0xfd)](),{collection:_0x51e842}=this[_0x151b65(0x276)]['createCollectionWithDataRange']({'unitId':_0x350311[_0x151b65(0x17c)],'sheetName':_0x350311[_0x151b65(0xf6)],'subUnitId':_0x350311[_0x151b65(0x19b)],'range':_0x350311['range']}),_0x17291e=_0x51e842[_0x151b65(0xfd)]();_0x2949d8[_0x151b65(0x232)]();const _0x491290=this[_0x151b65(0x276)]['getDataFieldManager'](_0x1f585a)[_0x151b65(0x297)]()||_0x2b8c31;_0x2949d8[_0x151b65(0x285)](_0x109346=>{const _0x45cff5=_0x151b65,_0x244091=_0x109346[_0x45cff5(0x2af)]();if(!_0x51e842[_0x45cff5(0x21e)](_0x244091)){const _0x595c0c=_0x51e842['getDataFieldBySourceName'](_0x109346[_0x45cff5(0x1ff)]());if(_0x595c0c){_0x2949d8[_0x45cff5(0x22e)](_0x109346[_0x45cff5(0xc4)](),_0x595c0c[_0x45cff5(0x154)](),_0x595c0c['getId']());const {area:_0x3bb672}=_0x2949d8[_0x45cff5(0x310)](_0x109346['getId']());let _0x2f19e5=_0x109346['getSourceName']();const _0x7a020a=_0x109346[_0x45cff5(0x173)]();if(_0x3bb672===_0x42f9ea[_0x45cff5(0x2b5)]){const _0xd1ef2c=_0x109346[_0x45cff5(0x238)]();_0x2f19e5=_0x491290(_0x595c0c[_0x45cff5(0x154)](),_0xd1ef2c);}_0x7a020a!==_0x2f19e5&&_0x2949d8['renameField'](_0x109346[_0x45cff5(0xc4)](),_0x2f19e5);}else _0x2949d8[_0x45cff5(0x1dd)](_0x109346[_0x45cff5(0xc4)]());}});const _0x21bd50=_0x2949d8['isEmpty'](),_0x63500=_0x2949d8[_0x151b65(0x1f2)]()[_0x151b65(0xfd)](),_0x22d959=_0x2949d8['endCollectChangeset']();_0x323588[_0x151b65(0x287)]={'view':_0x63500,'changesets':_0x22d959,'isEmpty':_0x21bd50,'pivotTableConfig':_0x38a8a0,'collectionConfig':_0x17291e,'oldCollectionConfig':_0x2f0262,'deleteIds':_0x369426};}break;case j[_0x151b65(0x15e)]:{const _0x4b2bb4=_0x360055[_0x151b65(0x231)][_0x151b65(0x2c0)];if(!_0x4b2bb4)return;const {position:_0x1741ba,index:_0x45f1e1}=_0x4b2bb4,_0x5cb692=this[_0x151b65(0x276)]['getPivotTableConfig'](_0x78b9fc,_0x14e360,_0x1bf00e);if(!_0x5cb692)return!0x1;const _0x5803e5=this[_0x151b65(0x276)]['getPivotTableInstance'](_0x1bf00e);if(!_0x5803e5)return!0x1;_0x5803e5[_0x151b65(0x232)](),_0x5803e5['updateValuePosition'](_0x1741ba,_0x45f1e1);const _0x4a0ac2=_0x5803e5[_0x151b65(0x26b)](),_0x37cb6d=_0x5803e5[_0x151b65(0x1f2)]()[_0x151b65(0xfd)](),_0x582cb4=_0x5803e5['endCollectChangeset']();_0x323588[_0x151b65(0x2c0)]={'changesets':_0x582cb4,'pivotTableConfig':_0x5cb692,'isEmpty':_0x4a0ac2,'view':_0x37cb6d};}break;case j[_0x151b65(0x2ed)]:{const _0x17726d=_0x360055['params']['setPivotCollapse'];if(!_0x17726d)return;const {tableFieldId:_0x2ac22c,collapse:_0x5624c3,item:_0x3f5223}=_0x17726d,_0x3a788c=this[_0x151b65(0x276)]['getPivotTableInstance'](_0x1bf00e),_0x2d54a4=this['_sheetsPivotDataSourceModel'][_0x151b65(0x13b)](_0x78b9fc,_0x14e360,_0x1bf00e);if(!_0x3a788c||!_0x2d54a4)return;_0x3a788c[_0x151b65(0x232)](),_0x3a788c['setCollapse'](_0x2ac22c,_0x5624c3,_0x3f5223);const _0x5a50dd=_0x3a788c[_0x151b65(0x26b)](),_0x1424b5=_0x3a788c[_0x151b65(0x1f2)]()['toJSON'](),_0x790a5f=_0x3a788c[_0x151b65(0x2bf)]();_0x323588[_0x151b65(0xdd)]={'view':_0x1424b5,'isEmpty':_0x5a50dd,'pivotTableConfig':_0x2d54a4,'changesets':_0x790a5f};}break;case j['SetPivotTableConfig']:{const _0x43dd12=_0x360055[_0x151b65(0x231)][_0x151b65(0x19d)];if(!_0x43dd12)return;const {pivotTableConfig:_0x2d5494}=_0x43dd12,_0x4143cf=this[_0x151b65(0x276)][_0x151b65(0x28c)](_0x1bf00e),_0x1856c6=this[_0x151b65(0x276)]['getPivotTableConfig'](_0x78b9fc,_0x14e360,_0x1bf00e);if(!_0x4143cf||!_0x1856c6)return;_0x4143cf[_0x151b65(0x232)](),Qi(_0x4143cf,_0x2d5494);const _0x10adf7=_0x4143cf[_0x151b65(0x26b)](),_0x854abd=_0x4143cf[_0x151b65(0x1f2)]()[_0x151b65(0xfd)](),_0x48078f=_0x4143cf[_0x151b65(0x2bf)]();_0x323588[_0x151b65(0x19d)]={'view':_0x854abd,'isEmpty':_0x10adf7,'pivotTableConfig':{..._0x1856c6,'fieldsConfig':_0x4143cf['toJSON']()},'changesets':_0x48078f};}break;case j[_0x151b65(0x160)]:{const _0x24a87b=_0x360055[_0x151b65(0x231)][_0x151b65(0x313)];if(!_0x24a87b)return;const _0x5b4f04=this[_0x151b65(0x276)]['getPivotTableInstance'](_0x1bf00e),_0x3f6cc7=this['_sheetsPivotDataSourceModel'][_0x151b65(0x13b)](_0x78b9fc,_0x14e360,_0x1bf00e);if(!_0x5b4f04||!_0x3f6cc7)return;_0x5b4f04[_0x151b65(0x232)](),$i(_0x5b4f04,_0x24a87b[_0x151b65(0x264)]);const _0x7fe691=_0x5b4f04[_0x151b65(0x1f2)]()[_0x151b65(0xfd)](),_0x2ae33e=_0x5b4f04['endCollectChangeset']();_0x323588[_0x151b65(0x313)]={'view':_0x7fe691,'isEmpty':!0x0,'pivotTableConfig':{..._0x3f6cc7,'fieldsConfig':_0x5b4f04['toJSON']()},'changesets':_0x2ae33e};}break;case j[_0x151b65(0x26d)]:{const _0x25cee5=_0x360055[_0x151b65(0x231)][_0x151b65(0x1ef)];if(!_0x25cee5)return;const _0x1879fb=_0x25cee5[_0x151b65(0x150)],_0x3fafa0=_0x25cee5[_0x151b65(0x1bf)],{collection:_0x2a7116}=this['_sheetsPivotDataSourceModel']['createCollectionWithDataRange']({'unitId':_0x1879fb[_0x151b65(0x17c)],'sheetName':_0x1879fb['sheetName'],'subUnitId':_0x1879fb[_0x151b65(0x19b)],'range':_0x1879fb[_0x151b65(0xec)]}),_0x57ebef=new _0x4355b5(_0x2a7116,void 0x0,_0x3fafa0),_0x2b482a=_0x2a7116[_0x151b65(0x2f3)](),{rows:_0x2b4d8b,columns:_0x529844,filters:_0x4917cf,values:_0x50330e}=_0x25cee5[_0x151b65(0x12e)];_0x57ebef[_0x151b65(0x232)]();for(const {field:_0x29abe1,selectedItems:_0x782ca}of _0x2b4d8b||[]){const _0x25c436=_0x2b482a[_0x29abe1];if(_0x25c436){const _0xc03f58=_0x57ebef['addFieldWithSourceId'](_0x25c436,_0x42f9ea[_0x151b65(0x13f)]);_0x782ca&&_0xc03f58&&_0x57ebef[_0x151b65(0x1a3)](_0xc03f58[_0x151b65(0xc4)](),{'type':_0x486124[_0x151b65(0x114)],'list':_0x782ca,'isAll':!0x1});}}for(const {field:_0x1c52f3,selectedItems:_0x5d6231}of _0x529844||[]){const _0x40ef67=_0x2b482a[_0x1c52f3];if(_0x40ef67){const _0x49ae1c=_0x57ebef[_0x151b65(0x205)](_0x40ef67,_0x42f9ea[_0x151b65(0x19a)]);_0x5d6231&&_0x49ae1c&&_0x57ebef[_0x151b65(0x1a3)](_0x49ae1c['getId'](),{'type':_0x486124[_0x151b65(0x114)],'list':_0x5d6231,'isAll':!0x1});}}for(const {field:_0x3a403c,selectedItems:_0x1a5fcb}of _0x4917cf||[]){const _0x2503df=_0x2b482a[_0x3a403c];if(_0x2503df){const _0x5d6f13=_0x57ebef['addFieldWithSourceId'](_0x2503df,_0x42f9ea[_0x151b65(0x256)]);_0x1a5fcb&&_0x5d6f13&&_0x57ebef['setLabelFilterInfo'](_0x5d6f13[_0x151b65(0xc4)](),{'type':_0x486124['ManualFilter'],'list':_0x1a5fcb,'isAll':!0x1});}}for(const {field:_0xc088c3,subTotalType:_0x5c5b33,formatString:_0x566afa}of _0x50330e||[]){const _0x1259df=_0x2a7116['getFieldById'](_0x2b482a[_0xc088c3]);if(!_0x1259df)continue;const _0x12f120=_0x2b482a[_0xc088c3];if(_0x12f120){const _0x2e48a4=_0x57ebef[_0x151b65(0x205)](_0x12f120,_0x42f9ea[_0x151b65(0x2b5)]);if(_0x2e48a4){if(_0x5c5b33!==void 0x0){_0x57ebef[_0x151b65(0x2e4)](_0x2e48a4[_0x151b65(0xc4)](),_0x5c5b33);const _0x50f90b=this['_sheetsPivotDataSourceModel'][_0x151b65(0x30e)](_0x1879fb[_0x151b65(0x17c)])[_0x151b65(0x297)]()||_0x2b8c31,_0x105a4d=_0x2a7116[_0x151b65(0x173)](_0x12f120),_0x11710f=_0x50f90b(_0x105a4d,_0x5c5b33);_0x57ebef[_0x151b65(0x1ee)](_0x2e48a4[_0x151b65(0xc4)](),_0x11710f);}else{if(_0x1259df){const _0x9b4a46=_0x1259df==null?void 0x0:_0x1259df[_0x151b65(0x289)]();_0x57ebef[_0x151b65(0x2e4)](_0x2e48a4[_0x151b65(0xc4)](),_0x9b4a46===_0x2b03ae[_0x151b65(0xcc)]?_0x3c1999[_0x151b65(0x286)]:_0x3c1999[_0x151b65(0x1db)]);}}_0x566afa&&_0x57ebef[_0x151b65(0x24c)](_0x2e48a4[_0x151b65(0xc4)](),_0x566afa);}}}const _0x4169b1=_0x57ebef[_0x151b65(0x1f2)](),_0x38dac1=_0x57ebef['toJSON'](),_0x550854=_0x57ebef['isEmpty'](),_0x5d7be9=_0x57ebef[_0x151b65(0x2bf)](),_0x8b77cb=_0x2a7116[_0x151b65(0xfd)]();_0x323588[_0x151b65(0x1ef)]={'view':_0x4169b1,'fieldsConfig':_0x38dac1,'collectionConfig':_0x8b77cb,'isEmpty':_0x550854,'changesets':_0x5d7be9};}break;case j[_0x151b65(0x2a3)]:{const _0x4c6b73=Ai(this['_injector'],_0x360055);if(!_0x4c6b73)return;const {range:_0x272b6a,sourceSubUnitId:_0x4bc1e8,sourceUnitId:_0x25a161,formatMap:_0x62d852,indexes:_0x1cba2d}=_0x4c6b73;_0x323588[_0x151b65(0x18e)]={'range':_0x272b6a,'sourceSubUnitId':_0x4bc1e8,'sourceUnitId':_0x25a161,'formatMap':_0x62d852,'indexes':_0x1cba2d};}break;}this[_0x151b65(0x1fd)]['executeCommand'](lo['id'],{'version':_0x360055[_0x151b65(0x102)],'result':_0x323588},{'onlyLocal':!0x0});}));}[_0x26db4b(0x25c)](){const _0x5c8a37=_0x26db4b;this[_0x5c8a37(0x2b8)](this[_0x5c8a37(0x1fd)][_0x5c8a37(0x12d)](_0x45d37d=>{const _0x375229=_0x5c8a37;if(_0x45d37d['id']!==uo['id'])return;const _0x29f31e=_0x45d37d[_0x375229(0x231)];return this[_0x375229(0x276)]['setTextInfo'](_0x29f31e[_0x375229(0x182)]),!0x0;}));}[_0x26db4b(0x2a5)](){const _0x3d1a6b=_0x26db4b;this[_0x3d1a6b(0x276)][_0x3d1a6b(0x216)][_0x3d1a6b(0x254)](_0x385978=>{const _0x48a1ee=_0x3d1a6b;switch(_0x385978['type']){case ke[_0x48a1ee(0x1ba)]:_0x385978[_0x48a1ee(0x245)]&&_0x385978[_0x48a1ee(0x20b)]&&this[_0x48a1ee(0x278)](_0x385978[_0x48a1ee(0x324)],_0x385978['dataRangeInfo'],_0x385978['targetCellInfo']);break;case ke[_0x48a1ee(0x21b)]:{const {unitId:_0x3411ec,subUnitId:_0x2e3d91,token:_0x20d31d}=_0x385978;_0x3411ec&&_0x2e3d91&&_0x20d31d&&this[_0x48a1ee(0x23c)](_0x3411ec,_0x2e3d91,_0x20d31d);}break;case ke[_0x48a1ee(0x135)]:{const {token:_0x64a4cf,oldSourceRangeInfo:_0x322045,dataRangeInfo:_0x2ff2b8,targetCellInfo:_0x599886}=_0x385978,{unitId:_0x26852f,subUnitId:_0x3b94ef}=_0x322045||{};_0x26852f&&_0x3b94ef&&_0x64a4cf&&this[_0x48a1ee(0x23c)](_0x26852f,_0x3b94ef,_0x64a4cf),_0x2ff2b8&&_0x599886&&this['handleSourceRangeChange'](_0x64a4cf,_0x2ff2b8,_0x599886);}break;}});}[_0x26db4b(0x32d)](){const _0x3fc7ff=_0x26db4b;this[_0x3fc7ff(0x276)]['fieldsCollectionChange$'][_0x3fc7ff(0x254)](_0x249598=>{const _0x41fc94=_0x3fc7ff;Object[_0x41fc94(0x301)](_0x249598)['forEach'](_0x2b8cb2=>{const _0x13a5f9=_0x41fc94,_0x5e58ba=this['_sheetsPivotDataSourceModel'][_0x13a5f9(0x2fa)](_0x2b8cb2);if(_0x5e58ba){const _0x343836=this[_0x13a5f9(0x276)]['getPivotTableConfig'](_0x5e58ba==null?void 0x0:_0x5e58ba[_0x13a5f9(0x17c)],_0x5e58ba==null?void 0x0:_0x5e58ba[_0x13a5f9(0x19b)],_0x2b8cb2);_0x343836&&(this[_0x13a5f9(0x278)](_0x2b8cb2,_0x343836[_0x13a5f9(0x150)],_0x343836[_0x13a5f9(0x20b)]),this['triggerDirtyFeature']([{'unitId':_0x5e58ba['unitId'],'subUnitId':_0x5e58ba[_0x13a5f9(0x19b)],'token':_0x2b8cb2}]));}});});}['_subjectViewChange'](){const _0x265703=_0x26db4b;this['_sheetsPivotDataSourceModel'][_0x265703(0x27a)]['subscribe'](_0x3c45b1=>{const _0x4e7c48=_0x265703,{unitId:_0x48649f,subUnitId:_0x3e3bb9,pivotTableId:_0x1e4913}=_0x3c45b1;_0x48649f&&_0x3e3bb9&&_0x1e4913&&this[_0x4e7c48(0x188)]([{'unitId':_0x48649f,'subUnitId':_0x3e3bb9,'token':_0x1e4913}]);});}[_0x26db4b(0x188)](_0x2c44f2){const _0x519ca0=_0x26db4b,_0x37a24d={};_0x2c44f2[_0x519ca0(0x2ab)](_0x11c63d=>{var _0x4a4910,_0x51da55;const {unitId:_0x33be8a,subUnitId:_0x47ae17,token:_0x53ad51}=_0x11c63d;_0x37a24d[_0x33be8a]=(_0x4a4910=_0x37a24d[_0x33be8a])!=null?_0x4a4910:{},_0x37a24d[_0x33be8a][_0x47ae17]=(_0x51da55=_0x37a24d[_0x33be8a][_0x47ae17])!=null?_0x51da55:{},_0x37a24d[_0x33be8a][_0x47ae17][_0x53ad51]=!0x0;}),this[_0x519ca0(0x1fd)]['executeCommand'](Ut['id'],_0x37a24d);}[_0x26db4b(0x23c)](_0x195b3c,_0x1891d8,_0x5606b0){const _0x5379a9=_0x26db4b;this[_0x5379a9(0x262)][_0x5379a9(0x2c3)](_0x195b3c,_0x1891d8,[_0x5606b0]);}['handleSourceRangeChange'](_0x624c47,_0x149b98,_0x324d0a){const _0x5aeb63=_0x26db4b,{unitId:_0x12cb7b,subUnitId:_0x316fac}=_0x149b98;this[_0x5aeb63(0x262)][_0x5aeb63(0x18a)](_0x324d0a[_0x5aeb63(0x17c)],_0x324d0a[_0x5aeb63(0x19b)],_0x624c47)&&this['removeSourceRangeChange'](_0x12cb7b,_0x316fac,_0x624c47);const _0xf63792={'sheetId':_0x316fac,..._0x149b98};this[_0x5aeb63(0x262)][_0x5aeb63(0xd2)](_0x324d0a[_0x5aeb63(0x17c)],_0x324d0a[_0x5aeb63(0x19b)],_0x624c47,{'unitId':_0x324d0a[_0x5aeb63(0x17c)],'subUnitId':_0x324d0a['subUnitId'],'dependencyRanges':[_0xf63792],'getDirtyData':(_0x1c2bf2,_0x3e3f6c)=>{const _0x1f7c05=_0x5aeb63,_0x1a8f51=this[_0x1f7c05(0x276)],_0x1a3c4e=_0x1a8f51['getTargetByPivotId'](_0x624c47);if(!_0x1a3c4e)return Vs();const {unitId:_0xe8f908,subUnitId:_0x5b52bc}=_0x1a3c4e,_0xc89b2=xs(_0x1c2bf2,_0x3e3f6c,_0x149b98);if(_0xc89b2['length']>0x0){const _0x46add0=_0x1a8f51['getCollection'](_0x12cb7b,_0x624c47),_0x137d1d=_0x46add0[_0x1f7c05(0x2f3)](),_0x67806e=this[_0x1f7c05(0x115)](_0x149b98[_0x1f7c05(0x17c)],_0x149b98[_0x1f7c05(0x19b)],_0x3e3f6c),_0x61e412={},_0x480d74=this['_sheetsPivotDataSourceModel'][_0x1f7c05(0x30e)](_0xe8f908)[_0x1f7c05(0x297)]()||_0x2b8c31,_0x3eddb2=[];for(const _0x4fff1e of _0xc89b2){const _0x4a0fa5=_0x4fff1e-(_0x149b98[_0x1f7c05(0xec)]['startColumn']||0x0),_0x3034c8=_0x137d1d[_0x4a0fa5];_0x3eddb2[_0x1f7c05(0xe8)](_0x3034c8),_0x61e412[_0x3034c8]=_0x46add0[_0x1f7c05(0x1da)](_0x3034c8)[_0x1f7c05(0x154)](),_0x1a8f51[_0x1f7c05(0x30e)](_0x12cb7b)[_0x1f7c05(0x194)](_0x3034c8,_0x149b98,_0x4a0fa5,_0x67806e);}_0x46add0[_0x1f7c05(0x303)](_0x3eddb2)[_0x1f7c05(0x2ab)](_0x4b25ab=>{const _0x3b296e=_0x1f7c05,[_0x9ae9bf,_0x526fa7]=_0x4b25ab,_0xbb2024=_0x46add0[_0x3b296e(0x1da)](_0x9ae9bf),_0xc82298=_0x46add0[_0x3b296e(0x1da)](_0x526fa7);_0xbb2024&&_0xc82298&&_0xbb2024[_0x3b296e(0x1cc)](_0xc82298);}),_0x46add0[_0x1f7c05(0x2dd)]();const _0x306063=_0x1a8f51[_0x1f7c05(0x28c)](_0x624c47);if(_0x306063){Es(_0x306063,_0x61e412,_0x480d74),_0x306063['setDirty'](!0x0);const _0x5c3d27=_0x306063[_0x1f7c05(0x1f2)](),_0x4c8394=_0x1a8f51[_0x1f7c05(0x13b)](_0xe8f908,_0x5b52bc,_0x624c47),_0x1e0258=_0x1a8f51[_0x1f7c05(0x30e)](_0x12cb7b)[_0x1f7c05(0xfd)]();_0x1a8f51[_0x1f7c05(0x290)](_0xe8f908,_0x5b52bc,B[_0x1f7c05(0x16f)],_0x624c47,_0x5c3d27,_0x4c8394,_0x1e0258,!0x0);}}return this['getDirtyInfo'](_0xe8f908,_0x5b52bc,_0x624c47);}});}['getMatrixFromRunTimeData'](_0x588f4d,_0x50e9b0,_0x278b48){var _0x2b47d5,_0x2e9e46;const {arrayFormulaCellData:_0x296e03,unitData:_0x5cdfdd}=_0x278b48,_0xebd34a=(_0x2b47d5=_0x296e03==null?void 0x0:_0x296e03[_0x588f4d])==null?void 0x0:_0x2b47d5[_0x50e9b0],_0x375b5b=(_0x2e9e46=_0x5cdfdd==null?void 0x0:_0x5cdfdd[_0x588f4d])==null?void 0x0:_0x2e9e46[_0x50e9b0];return{'arrayFormulaCellDataMatrix':_0xebd34a,'unitDataMatrix':_0x375b5b};}[_0x26db4b(0x304)](_0x29c952,_0x42a9ab,_0xfea8cc){const _0x6cebd2=_0x26db4b,_0x1db52d=this['_sheetsPivotDataSourceModel'][_0x6cebd2(0x121)](_0x29c952,_0x42a9ab,_0xfea8cc),_0x43262a=[],_0xf9b001=new _0xbef08f();if(_0x1db52d){const {rangeCache:_0x50e515,matrix:_0x42ff43,oldRangeCache:_0x3411ee,oldMatrix:_0x17b880}=_0x1db52d,_0x45fa66=Bt(_0x3411ee),_0x4b28c4=Bt(_0x50e515);_0x43262a[_0x6cebd2(0xe8)](..._0x4b28c4,..._0x45fa66),_0x17b880&&_0x3411ee&&_0x45fa66[_0x6cebd2(0x2ab)](_0x4a09ba=>{const _0x24577d=_0x6cebd2;for(let _0x332ca4=_0x4a09ba[_0x24577d(0x15f)];_0x332ca4<=_0x4a09ba['endRow'];_0x332ca4++)for(let _0x12da0b=_0x4a09ba['startColumn'];_0x12da0b<=_0x4a09ba[_0x24577d(0x187)];_0x12da0b++)_0xf9b001[_0x24577d(0x277)](_0x332ca4,_0x12da0b);}),_0x42ff43&&_0x4b28c4&&_0x4b28c4['forEach'](_0x54917f=>{const _0x50e836=_0x6cebd2;for(let _0x1d8e96=_0x54917f['startRow'];_0x1d8e96<=_0x54917f[_0x50e836(0x234)];_0x1d8e96++)for(let _0xedee91=_0x54917f['startColumn'];_0xedee91<=_0x54917f[_0x50e836(0x187)];_0xedee91++)_0xf9b001[_0x50e836(0x237)](_0x1d8e96,_0xedee91,_0x42ff43[_0x50e836(0xdc)](_0x1d8e96,_0xedee91));});}const _0x407694={};return _0x407694[_0x29c952]={[_0x42a9ab]:Os(_0x43262a)},{'runtimeCellData':{[_0x29c952]:{[_0x42a9ab]:_0xf9b001}},'dirtyRanges':_0x407694};}['dispose'](){}};ct=Us([We(0x0,_0x58298c(H)),We(0x1,_0x355993),We(0x2,_0x58298c(_0x147026)),We(0x3,_0x58298c(_0x3f8860)),We(0x4,_0x58298c(_0x5a8c98)),We(0x5,_0x58298c(_0x4e6692))],ct);var As=Object['getOwnPropertyDescriptor'],js=(_0x5716c8,_0x5a4143,_0x438acb,_0x37ae6e)=>{for(var _0x1dd171=_0x37ae6e>0x1?void 0x0:_0x37ae6e?As(_0x5a4143,_0x438acb):_0x5a4143,_0x2e6aff=_0x5716c8['length']-0x1,_0x96dcd6;_0x2e6aff>=0x0;_0x2e6aff--)(_0x96dcd6=_0x5716c8[_0x2e6aff])&&(_0x1dd171=_0x96dcd6(_0x1dd171)||_0x1dd171);return _0x1dd171;},_t=(_0x2b0108,_0xb2908f)=>(_0x2a4340,_0xc28131)=>_0xb2908f(_0x2a4340,_0xc28131,_0x2b0108);let dt=class extends _0x37fbd9{constructor(_0x4d07a4,_0x57b7c9,_0x5dc17c,_0x33ff6c){const _0x448189=_0x26db4b;super(),V(this,_0x448189(0x2c5),new _0x17427c()),(this[_0x448189(0x2e9)]=_0x4d07a4,this[_0x448189(0x111)]=_0x57b7c9,this[_0x448189(0x11a)]=_0x5dc17c,this[_0x448189(0x2bc)]=_0x33ff6c,this['_initClearSelectionCommandInterceptor']());}[_0x26db4b(0x171)](){const _0x385ab9=_0x26db4b;this['disposeWithMe'](this[_0x385ab9(0x111)]['interceptCommand']({'getMutations':_0xf7e83f=>{const _0x23297d=_0x385ab9;if(_0xf7e83f['id']===_0x437069['id']||_0xf7e83f['id']===_0x1e083b['id']){const _0x1d6588=[],_0x2b6059=[],_0x515912=this[_0x23297d(0x11a)][_0x23297d(0xe7)]()['map'](_0x2f78b6=>_0x2f78b6[_0x23297d(0xec)]),_0x38622e=_0x3c834f(this[_0x23297d(0x2e9)]);if(!_0x38622e)return{'redos':[],'undos':[]};const {unitId:_0x277dd1,subUnitId:_0x4777d8}=_0x38622e,_0x2261be={},_0x3fea91=this[_0x23297d(0x2bc)]['getSubUnitPivotConfigs'](_0x277dd1,_0x4777d8);if(_0x3fea91!=null&&_0x3fea91['size'])for(const [_0x47b3d7,_0x38137a]of _0x3fea91){const {unitId:_0x58643e,subUnitId:_0x556a96,row:_0x5932e2,col:_0x222402}=_0x38137a[_0x23297d(0x20b)];_0x58643e===_0x38622e[_0x23297d(0x17c)]&&_0x556a96===_0x38622e[_0x23297d(0x19b)]&&(_0x2261be[_0x5932e2+'-'+_0x222402]=_0x47b3d7);}return _0x515912&&_0x38622e&&_0x515912[_0x23297d(0x2ab)](_0x231a6f=>{const _0x4b0f97=_0x23297d;_0x133858[_0x4b0f97(0x2d4)](_0x231a6f,(_0x5162a3,_0x93c13)=>{const _0x113d78=_0x4b0f97,_0x43ea6a=_0x5162a3+'-'+_0x93c13;if(_0x2261be[_0x43ea6a]){const _0x79217a=_0x2261be[_0x43ea6a];_0x1d6588[_0x113d78(0xe8)]({'id':xt['id'],'params':{'unitId':_0x277dd1,'subUnitId':_0x4777d8,'pivotTableId':_0x79217a}});const _0x4510e2=this['_sheetsPivotTableConfigModel'][_0x113d78(0x106)](_0x277dd1,_0x79217a),_0x44f018=this[_0x113d78(0x2bc)]['getPivotTableConfig'](_0x277dd1,_0x4777d8,_0x79217a);_0x2b6059[_0x113d78(0xe8)]({'id':Ct['id'],'params':{'unitId':_0x277dd1,'subUnitId':_0x4777d8,'pivotTableId':_0x79217a,'pivotTableConfig':_0x44f018,'collectionConfig':_0x4510e2}});}});}),{'redos':_0x1d6588,'undos':_0x2b6059};}return{'redos':[],'undos':[]};}}));}};dt=js([_t(0x0,_0x399741),_t(0x1,_0x58298c(_0x27e4a5)),_t(0x2,_0x58298c(_0x214b73)),_t(0x3,_0x58298c(ve))],dt);var Ls=Object['getOwnPropertyDescriptor'],ks=(_0x1154f8,_0x1068ba,_0x2befa4,_0x505163)=>{const _0x55f0e6=_0x26db4b;for(var _0x4b521e=_0x505163>0x1?void 0x0:_0x505163?Ls(_0x1068ba,_0x2befa4):_0x1068ba,_0x30d649=_0x1154f8[_0x55f0e6(0x20c)]-0x1,_0x557b14;_0x30d649>=0x0;_0x30d649--)(_0x557b14=_0x1154f8[_0x30d649])&&(_0x4b521e=_0x557b14(_0x4b521e)||_0x4b521e);return _0x4b521e;},Ke=(_0x58a9c4,_0x48b572)=>(_0x1d8f73,_0x2fb6a1)=>_0x48b572(_0x1d8f73,_0x2fb6a1,_0x58a9c4);let ut=class extends _0x37fbd9{constructor(_0x10521e,_0x34e84a,_0x50053d,_0x3852e6,_0x3358e6,_0x5406da){const _0x401fc4=_0x26db4b;super(),this[_0x401fc4(0x31a)]=_0x10521e,this[_0x401fc4(0x111)]=_0x34e84a,this['_injector']=_0x50053d,this['_univerInstanceService']=_0x3852e6,this['_sheetsPivotTableConfigModel']=_0x3358e6,this[_0x401fc4(0x335)]=_0x5406da,this[_0x401fc4(0x181)]();}['_getPivotAppliedRanges'](_0x140db3,_0x253cde,_0xd38d23){const _0x48ba99=_0x26db4b,{pageView:_0x386049,cornerView:_0x1b47fb,rowView:_0x2c6429,colView:_0x1e944a,dataView:_0x2c1caa}=_0x253cde,_0x5b8afb=_0x140db3;let _0x18ebd4;if(_0xd38d23)_0x18ebd4=[...ji(_0x5b8afb)];else{const _0x322ab1=ge(_0x5b8afb,_0x386049,!0x0),_0x5190d9=_0x386049['lastRow']>=0x0?_0x386049[_0x48ba99(0xed)]+0x1:0x0,_0x56e0a4=_0x1b47fb[_0x48ba99(0x2c9)],_0x327eeb=_0x1b47fb[_0x48ba99(0x300)],_0x16dd65=_0x322ab1['length']>0x0?It:0x0,_0xe8874e=ge({'row':_0x5b8afb['row']+_0x5190d9+_0x16dd65,'col':_0x5b8afb['col']},_0x1b47fb,!0x1,!0x1),_0x32ff43=ge({'row':_0x5b8afb[_0x48ba99(0x198)]+_0x5190d9+_0x16dd65+_0x56e0a4,'col':_0x5b8afb[_0x48ba99(0x2be)]},_0x2c6429,!0x1,!0x0),_0x2e0c80=ge({'row':_0x5b8afb['row']+_0x5190d9+_0x16dd65,'col':_0x5b8afb[_0x48ba99(0x2be)]+_0x327eeb},_0x1e944a,!0x1,!0x0),_0x540699=ge({'row':_0x5b8afb['row']+_0x5190d9+_0x16dd65+_0x56e0a4,'col':_0x5b8afb[_0x48ba99(0x2be)]+_0x327eeb},_0x2c1caa,!0x1,!0x0);_0x18ebd4=[..._0x322ab1,..._0xe8874e,..._0x32ff43,..._0x2e0c80,..._0x540699];}return _0x18ebd4;}[_0x26db4b(0x181)](){const _0x5b9619=_0x26db4b;this[_0x5b9619(0x2b8)](this[_0x5b9619(0x335)][_0x5b9619(0xde)]['intercept'](this[_0x5b9619(0x335)][_0x5b9619(0xde)][_0x5b9619(0x172)]()['PIVOT_MUTATION_GENERATE'],{'handler':(_0x18f8d5,_0xa84214)=>{const _0x31f5dc=_0x5b9619,{cellInfo:_0x4f244b,view:_0x46d5b9,isEmpty:_0x1c32d0}=_0xa84214,_0x307f0f=_0x4f244b,{unitId:_0x37dbe6,subUnitId:_0x516978}=_0x307f0f,_0x2c8f23=this[_0x31f5dc(0x2a6)](_0x4f244b,_0x46d5b9,_0x1c32d0),_0x38be36=this[_0x31f5dc(0x111)]['generateMutationsByRanges']({'unitId':_0x37dbe6,'subUnitId':_0x516978,'ranges':_0x2c8f23}),_0x3dc222=Wo(this[_0x31f5dc(0x211)],_0x37dbe6,_0x516978,_0x2c8f23);_0x3dc222[_0x31f5dc(0x10a)]&&(_0x38be36['redos'][_0x31f5dc(0xe8)](_0x3dc222['setRangeValueRedoMutation']),_0x38be36[_0x31f5dc(0x1af)][_0x31f5dc(0xe8)](_0x3dc222['setRangeValueUndoMutation']));const _0x15499=this['getAutoFitColumnsMutations'](_0x46d5b9,_0x4f244b);return _0x38be36[_0x31f5dc(0x125)][_0x31f5dc(0xe8)](..._0x15499[_0x31f5dc(0x125)]),_0x38be36[_0x31f5dc(0x1af)][_0x31f5dc(0xe8)](..._0x15499['undos']),{'redos':_0x38be36[_0x31f5dc(0x125)],'undos':_0x38be36[_0x31f5dc(0x1af)]};}}));}[_0x26db4b(0x192)](_0x1e6a0a,_0x6a8b3){const _0x10108b=_0x26db4b,{col:_0x2d33f5,unitId:_0x55539c,subUnitId:_0x182646}=_0x6a8b3,_0x1d4b1a=[],_0x43f167=[],_0x3a1faa=_0x3c834f(this[_0x10108b(0x2e9)],{'unitId':_0x55539c,'subUnitId':_0x182646});if(!_0x6a8b3||!_0x1e6a0a||!_0x3a1faa)return{'undos':_0x43f167,'redos':_0x1d4b1a};const _0x3b5f63=this[_0x10108b(0x2bc)][_0x10108b(0x18c)](),{colView:_0xbbbb7e,dataView:_0x582b8d,cornerView:_0x3a4118,rowView:_0x4a57af,formatMap:_0x2ebcfe}=_0x1e6a0a,_0x293aec=To(_0xbbbb7e,_0x3b5f63,!0x0,_0x2ebcfe),_0x28d736=To(_0x4a57af,_0x3b5f63,!0x1,_0x2ebcfe),_0x2662a4=Bi(_0x582b8d),_0x30673b=Hi(_0x3a4118),{worksheet:_0x501f56}=_0x3a1faa;if(typeof window<'u'&&window['document']){const _0x34ca12=_0x2636a2({...fe['colStyle']}),_0x1fc008=_0x2e8113[_0x10108b(0x1b2)](_0x293aec,_0x34ca12)[_0x10108b(0x257)]+0x10,_0x3f4365=_0x2e8113[_0x10108b(0x1b2)](_0x2662a4,_0x34ca12)[_0x10108b(0x257)],_0x2d966b=Math['floor'](Math['max'](_0x1fc008,_0x3f4365))+0x10,_0xc43ad5=Math[_0x10108b(0x212)](_0x2e8113[_0x10108b(0x1b2)](_0x28d736,_0x34ca12)[_0x10108b(0x257)]),_0x430958=Math[_0x10108b(0x212)](_0x2e8113['getTextSize'](_0x30673b,_0x34ca12)[_0x10108b(0x257)]),_0x2f79ff=Math[_0x10108b(0x1f7)](_0xc43ad5,_0x430958,0x28)+0xc,_0x17647b=_0xbbbb7e[_0x10108b(0x300)]+_0x3a4118[_0x10108b(0x300)],_0x2d9b17={},_0x306d71={};for(let _0x70940a=_0x2d33f5;_0x70940a<_0x2d33f5+_0x17647b;_0x70940a++){const _0x5136d5=_0x501f56[_0x10108b(0xf8)](_0x70940a);_0x2d9b17[_0x70940a]=_0x5136d5,_0x70940a-_0x2d33f5<_0x3a4118[_0x10108b(0x300)]?_0x306d71[_0x70940a-_0x2d33f5]=_0x2f79ff:_0x306d71[_0x70940a-_0x2d33f5]=_0x2d966b;}_0x1d4b1a[_0x10108b(0xe8)]({'id':_0x4f62a3['id'],'params':{'subUnitId':_0x182646,'unitId':_0x55539c,'ranges':[{'startColumn':_0x2d33f5,'endColumn':_0x2d33f5+_0x17647b-0x1,'startRow':0x0,'endRow':_0x501f56['getRowCount']()-0x1}],'colWidth':_0x306d71}}),_0x43f167['push']({'id':_0x4f62a3['id'],'params':{'subUnitId':_0x182646,'unitId':_0x55539c,'ranges':[{'startColumn':_0x2d33f5,'endColumn':_0x2d33f5+_0x17647b-0x1,'startRow':0x0,'endRow':_0x501f56['getRowCount']()-0x1}],'colWidth':_0x2d9b17}});}return{'undos':_0x43f167,'redos':_0x1d4b1a};}};ut=ks([Ke(0x0,_0x58298c(_0x388073)),Ke(0x1,_0x58298c(_0x27e4a5)),Ke(0x2,_0x58298c(_0x4e6692)),Ke(0x3,_0x58298c(_0x399741)),Ke(0x4,_0x58298c(ve)),Ke(0x5,_0x58298c(ie))],ut);var Bs=Object[_0x26db4b(0x137)],Hs=(_0x3d2b22,_0x26de68,_0x189491,_0x5b5d0f)=>{const _0x188226=_0x26db4b;for(var _0x34d67f=_0x5b5d0f>0x1?void 0x0:_0x5b5d0f?Bs(_0x26de68,_0x189491):_0x26de68,_0x272938=_0x3d2b22[_0x188226(0x20c)]-0x1,_0x47635c;_0x272938>=0x0;_0x272938--)(_0x47635c=_0x3d2b22[_0x272938])&&(_0x34d67f=_0x47635c(_0x34d67f)||_0x34d67f);return _0x34d67f;},je=(_0x167fd2,_0x12502b)=>(_0x3ec7c3,_0x52791c)=>_0x12502b(_0x3ec7c3,_0x52791c,_0x167fd2);let ft=class extends _0x37fbd9{constructor(_0x49325b,_0x466685,_0xef1c7d,_0x422813,_0xf1921c,_0x5e8a68,_0x5230d5){const _0x15bf38=_0x26db4b;super(),V(this,_0x15bf38(0x2c5),new _0x17427c()),(this[_0x15bf38(0x211)]=_0x49325b,this[_0x15bf38(0x263)]=_0x466685,this[_0x15bf38(0x1fd)]=_0xef1c7d,this[_0x15bf38(0x2e9)]=_0x422813,this[_0x15bf38(0x2bc)]=_0xf1921c,this[_0x15bf38(0x305)]=_0x5e8a68,this[_0x15bf38(0x111)]=_0x5230d5,this[_0x15bf38(0x16c)]());}[_0x26db4b(0x16c)](){const _0x5846c9=_0x26db4b,_0x41497c=(_0x239f5f,_0x1f800d)=>{const _0x511331=_0x1fae,_0x4a2e2f=this[_0x511331(0x2e9)][_0x511331(0x11c)](_0x4aef6b[_0x511331(0x1c5)]);if(!_0x4a2e2f||!(_0x4a2e2f==null?void 0x0:_0x4a2e2f[_0x511331(0x117)](_0x1f800d)))return;this[_0x511331(0x2c5)]['dispose']();const _0x17c556=_0x2604b8=>this['_refRangeHandle'](_0x2604b8,_0x239f5f,_0x1f800d),_0x430471=this[_0x511331(0x2bc)][_0x511331(0x126)](_0x239f5f,_0x1f800d);if(!(_0x430471!=null&&_0x430471['size']))return;Array[_0x511331(0x27c)](_0x430471['values']())[_0x511331(0x1ce)](_0x47e34b=>{const {row:_0x2f7ff4,col:_0x173432}=_0x47e34b['targetCellInfo'];return _0x158376(_0x2f7ff4,_0x173432);})[_0x511331(0x2ab)](_0x4a8511=>{const _0x382fb5=_0x511331;this[_0x382fb5(0x2c5)][_0x382fb5(0x1ba)](this['_refRangeService']['registerRefRange'](_0x4a8511,_0x17c556,_0x239f5f,_0x1f800d));});},_0x131200=()=>{const _0xd862b0=_0x1fae,_0x3f94b6=this[_0xd862b0(0x2e9)]['getCurrentUnitForType'](_0x4aef6b[_0xd862b0(0x1c5)]);if(_0x3f94b6){const _0x155070=_0x3f94b6['getActiveSheet']();if(!_0x155070)return;_0x41497c(_0x3f94b6['getUnitId'](),_0x155070[_0xd862b0(0x2a1)]());}};this[_0x5846c9(0x2b8)](this['_commandService'][_0x5846c9(0x12d)](_0x21e8dd=>{const _0x1ddefd=_0x5846c9;if(_0x21e8dd['id']===_0x57cbb1['id']){const _0x297c20=_0x21e8dd['params'],_0x18f58c=_0x297c20[_0x1ddefd(0x19b)],_0x2c1a60=_0x297c20['unitId'];if(!_0x18f58c||!_0x2c1a60)return;_0x41497c(_0x2c1a60,_0x18f58c);}})),this[_0x5846c9(0x2b8)](this[_0x5846c9(0x2bc)][_0x5846c9(0x189)]['subscribe'](_0x3f655b=>{_0x3f655b&&_0x131200();})),this[_0x5846c9(0x2b8)](this[_0x5846c9(0x2bc)][_0x5846c9(0x1b7)][_0x5846c9(0x254)](_0x454aff=>{const _0x2bc720=_0x5846c9,_0x9f9d56=_0x3c834f(this[_0x2bc720(0x2e9)]);if(!_0x9f9d56)return;const {unitId:_0xfd5cc6,subUnitId:_0xb9b40}=_0x9f9d56,{unitId:_0x432fee,subUnitId:_0x315c60}=_0x454aff;_0xfd5cc6!==_0x432fee||_0xb9b40!==_0x315c60||_0x41497c(_0xfd5cc6,_0xb9b40);})),_0x131200();}[_0x26db4b(0x209)](_0x4139fd,_0x49ebf4,_0x547d86){const _0x5ef3da=_0x26db4b;switch(_0x4139fd['id']){case _0x17e3ab['id']:return this[_0x5ef3da(0x2a4)](_0x4139fd[_0x5ef3da(0x231)],_0x49ebf4,_0x547d86);}return{'redos':[],'undos':[]};}[_0x26db4b(0x2a4)](_0x5c2dea,_0x4de8ff,_0x2596a4){const _0x11d37d=_0x26db4b,{fromRange:_0x30a4c6,toRange:_0x5ef168}=_0x5c2dea,_0xdefd75=[],_0x1cb615=[],_0x55bcb6=_0x3c834f(this[_0x11d37d(0x2e9)]);if(!_0x55bcb6)return{'undos':_0x1cb615,'redos':_0xdefd75};if(_0x4de8ff!==_0x55bcb6['unitId']||_0x2596a4!==_0x55bcb6[_0x11d37d(0x19b)])return{'undos':_0x1cb615,'redos':_0xdefd75};const _0x5c9f76=this[_0x11d37d(0x2bc)]['getSubUnitPivotConfigs'](_0x4de8ff,_0x2596a4);if(_0x5c9f76!=null&&_0x5c9f76['size'])for(const [_0x142f11,_0x532956]of _0x5c9f76){const {unitId:_0xd49152,subUnitId:_0x545101,row:_0x166f96,col:_0x2b3015}=_0x532956[_0x11d37d(0x20b)];if(_0xd49152===_0x55bcb6[_0x11d37d(0x17c)]&&_0x545101===_0x55bcb6[_0x11d37d(0x19b)]){const _0x872d2c=_0x158376(_0x166f96,_0x2b3015);if(_0x4d6abc['intersects'](_0x872d2c,_0x30a4c6)){const _0x3752c4=_0x166f96-_0x30a4c6[_0x11d37d(0x15f)],_0x36cdd3=_0x2b3015-_0x30a4c6[_0x11d37d(0x148)],_0x116284={'row':_0x5ef168[_0x11d37d(0x15f)]+_0x3752c4,'col':_0x5ef168[_0x11d37d(0x148)]+_0x36cdd3};_0xdefd75[_0x11d37d(0xe8)]({'id':pt['id'],'params':{'unitId':_0xd49152,'subUnitId':_0x545101,'pivotTableId':_0x142f11,'targetCellPosition':_0x116284}}),_0x1cb615[_0x11d37d(0xe8)]({'id':pt['id'],'params':{'unitId':_0xd49152,'subUnitId':_0x545101,'pivotTableId':_0x142f11,'targetCellPosition':{'row':_0x166f96,'col':_0x2b3015}}});const _0x16a550=_0x116284[_0x11d37d(0x198)]-_0x166f96,_0x3e1bcc=_0x116284[_0x11d37d(0x2be)]-_0x2b3015,_0x2f9a15=[],_0x3dea56=this[_0x11d37d(0x305)][_0x11d37d(0x2da)](_0xd49152,_0x545101,_0x142f11),_0x254b1e=_0x3dea56==null?void 0x0:_0x3dea56[_0x11d37d(0x213)];if(_0x254b1e){Object['keys'](_0x254b1e)[_0x11d37d(0x2ab)](_0x5804ba=>{const _0x294b54=_0x11d37d;_0x254b1e[_0x5804ba][_0x294b54(0x2ab)](_0x5770b8=>{const _0x554b6d=_0x294b54,_0x3e01f7={..._0x5770b8};_0x3e01f7[_0x554b6d(0x15f)]=_0x5770b8[_0x554b6d(0x15f)]+_0x16a550,_0x3e01f7[_0x554b6d(0x234)]=_0x5770b8['endRow']+_0x16a550,_0x3e01f7[_0x554b6d(0x148)]=_0x5770b8[_0x554b6d(0x148)]+_0x3e1bcc,_0x3e01f7['endColumn']=_0x5770b8[_0x554b6d(0x187)]+_0x3e1bcc,_0x2f9a15[_0x554b6d(0xe8)](_0x3e01f7);});});const _0x2f4a03=this[_0x11d37d(0x111)][_0x11d37d(0x2f0)]({'unitId':_0xd49152,'subUnitId':_0x545101,'ranges':_0x2f9a15});_0xdefd75['push'](..._0x2f4a03[_0x11d37d(0x125)]),_0x1cb615['push'](..._0x2f4a03['undos']);const _0x35fd35=Wo(this[_0x11d37d(0x211)],_0xd49152,_0x545101,_0x2f9a15);_0x35fd35[_0x11d37d(0x10a)]&&(_0xdefd75['push'](_0x35fd35[_0x11d37d(0x129)]),_0x1cb615[_0x11d37d(0xe8)](_0x35fd35[_0x11d37d(0x243)]));}}}}return{'redos':_0xdefd75,'undos':_0x1cb615};}};ft=Hs([je(0x0,_0x58298c(_0x4e6692)),je(0x1,_0x58298c(_0x135204)),je(0x2,_0x3f8860),je(0x3,_0x399741),je(0x4,_0x58298c(ve)),je(0x5,_0x58298c(Ne)),je(0x6,_0x58298c(_0x27e4a5))],ft);var Qs=Object[_0x26db4b(0x137)],$s=(_0x574b88,_0x4e9a27,_0x597896,_0x2d2235)=>{const _0x19bfb3=_0x26db4b;for(var _0xc4b496=_0x2d2235>0x1?void 0x0:_0x2d2235?Qs(_0x4e9a27,_0x597896):_0x4e9a27,_0x34b04b=_0x574b88[_0x19bfb3(0x20c)]-0x1,_0x290fac;_0x34b04b>=0x0;_0x34b04b--)(_0x290fac=_0x574b88[_0x34b04b])&&(_0xc4b496=_0x290fac(_0xc4b496)||_0xc4b496);return _0xc4b496;},_o=(_0x3daf64,_0xa7ac97)=>(_0x4903a9,_0x56bef2)=>_0xa7ac97(_0x4903a9,_0x56bef2,_0x3daf64);let gt=class extends _0x37fbd9{constructor(_0x5435c4,_0x2e3d2b){const _0x63fb37=_0x26db4b;super(),this[_0x63fb37(0x111)]=_0x5435c4,this[_0x63fb37(0x2bc)]=_0x2e3d2b,this[_0x63fb37(0xd0)]();}['_initRemoveSheetCommandInterceptor'](){const _0x20fc56=_0x26db4b;this[_0x20fc56(0x2b8)](this[_0x20fc56(0x111)][_0x20fc56(0x1d0)]({'getMutations':_0x56d9ea=>{const _0xcc74f3=_0x20fc56;if(_0x56d9ea['id']===_0x102542['id']){const _0x23b131=[],_0x263284=[],_0x1e9cc9=_0x56d9ea[_0xcc74f3(0x231)],{unitId:_0x5e1f04,subUnitId:_0xea20ce}=_0x1e9cc9;if(!_0x5e1f04||!_0xea20ce)return{'undos':_0x263284,'redos':_0x23b131};const _0x15dd87=this[_0xcc74f3(0x2bc)][_0xcc74f3(0x126)](_0x5e1f04,_0xea20ce);if(_0x15dd87!=null&&_0x15dd87[_0xcc74f3(0x321)])for(const [_0x4f4b17,_0x380b2d]of _0x15dd87){_0x23b131[_0xcc74f3(0xe8)]({'id':xt['id'],'params':{'unitId':_0x5e1f04,'subUnitId':_0xea20ce,'pivotTableId':_0x4f4b17}});const _0x444387={...this[_0xcc74f3(0x2bc)][_0xcc74f3(0x106)](_0x5e1f04,_0x4f4b17)};_0x263284[_0xcc74f3(0xe8)]({'id':Ct['id'],'params':{'unitId':_0x5e1f04,'subUnitId':_0xea20ce,'pivotTableId':_0x4f4b17,'pivotTableConfig':_0x380b2d,'collectionConfig':_0x444387}});}return{'redos':_0x23b131,'undos':_0x263284};}return{'redos':[],'undos':[]};}}));}};gt=$s([_o(0x0,_0x58298c(_0x27e4a5)),_o(0x1,_0x58298c(ve))],gt);var Js=Object['getOwnPropertyDescriptor'],Gs=(_0x474d85,_0x45e0ee,_0x36f3c5,_0x1c6238)=>{for(var _0x3e5cc8=_0x1c6238>0x1?void 0x0:_0x1c6238?Js(_0x45e0ee,_0x36f3c5):_0x45e0ee,_0x12ab00=_0x474d85['length']-0x1,_0x50de67;_0x12ab00>=0x0;_0x12ab00--)(_0x50de67=_0x474d85[_0x12ab00])&&(_0x3e5cc8=_0x50de67(_0x3e5cc8)||_0x3e5cc8);return _0x3e5cc8;},qe=(_0x52b11c,_0x312586)=>(_0x5564a8,_0x1142f7)=>_0x312586(_0x5564a8,_0x1142f7,_0x52b11c);let ht=class extends _0x37fbd9{constructor(_0x4fe959,_0x827f2c,_0x102e15,_0x2b10b8,_0x37dd10,_0x3d5cb4){const _0x3ef0a0=_0x26db4b;super(),this[_0x3ef0a0(0x1fd)]=_0x4fe959,this[_0x3ef0a0(0x128)]=_0x827f2c,this[_0x3ef0a0(0x305)]=_0x102e15,this[_0x3ef0a0(0x2bc)]=_0x2b10b8,this['_univerInstanceService']=_0x37dd10,this['_activeDirtyManagerService']=_0x3d5cb4,this[_0x3ef0a0(0x2d9)](),this[_0x3ef0a0(0x255)]();}[_0x26db4b(0x2d9)](){const _0x2821e9=_0x26db4b;this['disposeWithMe'](this[_0x2821e9(0x1fd)]['onCommandExecuted'](_0x23e127=>{const _0x123751=_0x2821e9;if(_0x23e127['id']!==lo['id'])return;const _0x525fe6=_0x23e127[_0x123751(0x231)];this[_0x123751(0x128)][_0x123751(0x2c7)](_0x525fe6);})),this[_0x2821e9(0x2b8)](this[_0x2821e9(0x1fd)][_0x2821e9(0x12d)](_0x429870=>{const _0x11abad=_0x2821e9;if(_0x429870['id']===co['id']){const _0x22191e=_0x429870['params'];if(_0x22191e){const {unitId:_0x1394fc,subUnitId:_0x3d619a,oldSubUnitId:_0x5df148,pivotTableId:_0x2335d7,pivotTableConfig:_0x296922,collectionConfig:_0x3f6425}=_0x22191e;this[_0x11abad(0x2bc)][_0x11abad(0xf3)](_0x1394fc,_0x5df148,_0x22191e[_0x11abad(0x1bf)],null),this['_sheetsPivotTableConfigModel'][_0x11abad(0xf3)](_0x1394fc,_0x3d619a,_0x2335d7,_0x296922),this[_0x11abad(0x2bc)][_0x11abad(0x185)](_0x1394fc,_0x3f6425);}}})),this[_0x2821e9(0x2b8)](this[_0x2821e9(0x1fd)]['onCommandExecuted'](_0x160631=>{const _0x4d0f46=_0x2821e9;if(_0x160631['id']!==Dt['id'])return;const _0x54dba7=_0x3c834f(this[_0x4d0f46(0x2e9)]);if(!_0x54dba7)return;const {unitId:_0x5968da,subUnitId:_0x1a5f4a}=_0x54dba7,_0x33c452=_0x160631['params'];if(_0x33c452[_0x4d0f46(0x1ed)]&&Object[_0x4d0f46(0x301)](_0x33c452[_0x4d0f46(0x1ed)])[_0x4d0f46(0x2ab)](_0x18acb7=>{const _0x3c1d82=_0x4d0f46;var _0x51f856;(_0x51f856=_0x33c452[_0x3c1d82(0x1ed)])!=null&&_0x51f856[_0x18acb7]&&this[_0x3c1d82(0x2bc)][_0x3c1d82(0x185)](_0x18acb7,_0x33c452[_0x3c1d82(0x1ed)][_0x18acb7]);}),_0x33c452[_0x4d0f46(0x2ad)]){const _0x135af4=_0x33c452[_0x4d0f46(0x2ad)],{unitId:_0x35f02e,subUnitId:_0x1f1101,view:_0x180258,pivotTableId:_0x4667ad,type:_0x1c190e,pivotConfig:_0x5eb39f}=_0x135af4;if(_0x1c190e===B[_0x4d0f46(0x230)])this[_0x4d0f46(0x305)][_0x4d0f46(0x11f)]({'unitId':_0x35f02e,'subUnitId':_0x1f1101,'pivotTableId':_0x4667ad,'type':_0x1c190e}),this[_0x4d0f46(0x2bc)][_0x4d0f46(0xf3)](_0x35f02e,_0x1f1101,_0x4667ad,null);else{const _0x235872=new _0x337713();_0x235872['formJSON'](_0x180258),this[_0x4d0f46(0x2bc)][_0x4d0f46(0xf3)](_0x35f02e,_0x1f1101,_0x4667ad,_0x5eb39f),this[_0x4d0f46(0x305)][_0x4d0f46(0x11f)]({'unitId':_0x35f02e,'subUnitId':_0x1f1101,'pivotTableId':_0x4667ad,'type':_0x1c190e,'view':_0x235872}),this[_0x4d0f46(0x305)][_0x4d0f46(0x2ac)]({'unitId':_0x35f02e,'subUnitId':_0x1f1101,'view':_0x235872,'pivotTableId':_0x4667ad,'type':_0x1c190e});}}else _0x33c452[_0x4d0f46(0x1b6)]&&(_0x33c452[_0x4d0f46(0x1b6)]['forEach'](_0x5af7e6=>{const _0x3b8b6e=_0x4d0f46,{unitId:_0x4b3607,subUnitId:_0x3feecf,view:_0x2ce598,pivotTableId:_0x1d972e,type:_0x47513d,pivotConfig:_0x3a66b8}=_0x5af7e6,_0xf9ee5a=new _0x337713();_0xf9ee5a['formJSON'](_0x2ce598),this[_0x3b8b6e(0x2bc)][_0x3b8b6e(0xf3)](_0x4b3607,_0x3feecf,_0x1d972e,_0x3a66b8),this[_0x3b8b6e(0x305)][_0x3b8b6e(0x2ac)]({'unitId':_0x4b3607,'subUnitId':_0x3feecf,'view':_0xf9ee5a,'pivotTableId':_0x1d972e,'type':_0x47513d});}),this[_0x4d0f46(0x2bc)][_0x4d0f46(0x2cb)]());this[_0x4d0f46(0x305)][_0x4d0f46(0x2d7)](_0x5968da,_0x1a5f4a);}));}[_0x26db4b(0x255)](){const _0x19951b=_0x26db4b;this['_activeDirtyManagerService'][_0x19951b(0xd2)](Ut['id'],{'commandId':Ut['id'],'getDirtyData'(_0x43fbd1){return{'dirtyUnitFeatureMap':_0x43fbd1['params']};}});}};ht=Gs([qe(0x0,_0x58298c(_0x3f8860)),qe(0x1,_0x58298c(Z)),qe(0x2,_0x58298c(Ne)),qe(0x3,_0x58298c(ve)),qe(0x4,_0x58298c(_0x399741)),qe(0x5,_0x1a3c79)],ht);var Ws=Object[_0x26db4b(0x27e)],Ks=Object[_0x26db4b(0x137)],qs=(_0x28bab8,_0x4b8f72,_0x43055d)=>_0x4b8f72 in _0x28bab8?Ws(_0x28bab8,_0x4b8f72,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43055d}):_0x28bab8[_0x4b8f72]=_0x43055d,Ys=(_0x104d4d,_0x1bd75f,_0x2144d3,_0x3547f6)=>{const _0xdfa19d=_0x26db4b;for(var _0x45307d=_0x3547f6>0x1?void 0x0:_0x3547f6?Ks(_0x1bd75f,_0x2144d3):_0x1bd75f,_0x4cb0db=_0x104d4d[_0xdfa19d(0x20c)]-0x1,_0xa13e9c;_0x4cb0db>=0x0;_0x4cb0db--)(_0xa13e9c=_0x104d4d[_0x4cb0db])&&(_0x45307d=_0xa13e9c(_0x45307d)||_0x45307d);return _0x45307d;},Ft=(_0x160dde,_0x1a545f)=>(_0x1167d5,_0x31a3c2)=>_0x1a545f(_0x1167d5,_0x31a3c2,_0x160dde),Xo=(_0xb79d22,_0x226626,_0x5ed79f)=>qs(_0xb79d22,typeof _0x226626!=_0x26db4b(0x23f)?_0x226626+'':_0x226626,_0x5ed79f);let Vt=class extends _0x1ea3ab{constructor(_0x809194=yo,_0x50ee9d,_0x4bcc49,_0x21d1a1,_0x1f4d86){const _0xb8555d=_0x26db4b;super(),this[_0xb8555d(0x17e)]=_0x809194,this['_injector']=_0x50ee9d,this['_commandService']=_0x4bcc49,this[_0xb8555d(0x226)]=_0x21d1a1,this[_0xb8555d(0x322)]=_0x1f4d86;const {..._0x5cdb83}=_0x4d127b({},yo,this[_0xb8555d(0x17e)]);this[_0xb8555d(0x226)]['setConfig'](qo,_0x5cdb83),this[_0xb8555d(0xe4)](),this[_0xb8555d(0xcd)]();}[_0x26db4b(0xcd)](){const _0x2d1a62=_0x26db4b;var _0x5b7c2e;const _0x56f5d9=(_0x5b7c2e=this[_0x2d1a62(0x17e)])==null?void 0x0:_0x5b7c2e[_0x2d1a62(0x227)];this[_0x2d1a62(0x226)][_0x2d1a62(0x2b3)](K,_0x56f5d9===!0x0);}[_0x26db4b(0x28f)](){const _0x3f1e38=_0x26db4b;var _0x5eed9b;let _0x1c64f7=[];const _0x5887c0=(_0x5eed9b=this[_0x3f1e38(0x17e)])==null?void 0x0:_0x5eed9b[_0x3f1e38(0x227)];_0x5887c0===!0x0?_0x1c64f7=[[ie],[Z],[ht],[Ne],[ve],[gt],[dt],[ft],[ut]]:_0x5887c0===!0x1?_0x1c64f7=[[H],[ct]]:_0x5887c0===void 0x0&&(_0x1c64f7=[[H],[ct],[ie],[Z],[ht],[Ne],[ve],[gt],[dt],[ft],[ut]]),_0x1c64f7[_0x3f1e38(0x2ab)](_0x2267dc=>this[_0x3f1e38(0x211)][_0x3f1e38(0x1ba)](_0x2267dc)),[ct,ht,ie,dt,gt,ft,ut][_0x3f1e38(0x2ab)](_0x2dd52f=>{const _0x3960eb=_0x3f1e38;this['_injector'][_0x3960eb(0x18a)](_0x2dd52f)&&this[_0x3960eb(0x211)][_0x3960eb(0x15d)](_0x2dd52f);});}[_0x26db4b(0xe4)](){[vs,ps,hs,ms,Cs,Ms,Ds,Ss,Ps,bs,Ts,ys,ws,Is,Ct,oo,xt,Ht,Yo,zo,Wt,Qt,$t,Jt,qt,Kt,pt,ro,lo,Dt,Xt,eo,Yt,Gt,uo,to,Zt,Ut,co,_s,zt,Fs,Rs]['forEach'](_0x5c6e31=>{const _0x5c8567=_0x1fae;var _0x2dd06a;(_0x2dd06a=this[_0x5c8567(0x322)])==null||_0x2dd06a[_0x5c8567(0x152)](_0x5c6e31),this[_0x5c8567(0x1fd)][_0x5c8567(0x20a)](_0x5c6e31);});}};Xo(Vt,_0x26db4b(0x328),ao),Xo(Vt,_0x26db4b(0xc7),_0x4aef6b['UNIVER_SHEET']),Vt=Ys([_0x3debcc(_0x11f7e9),Ft(0x1,_0x58298c(_0x4e6692)),Ft(0x2,_0x58298c(_0x3f8860)),Ft(0x3,_0x355993),Ft(0x4,_0xd5765e(_0x500199))],Vt);export{hs as AddPivotFieldCommand,Ht as AddPivotFieldMutation,ps as AddPivotTableCommand,Ct as AddPivotTableMutation,vs as AddPivotTableWithConfigCommand,It as BLANK_ROW_COUNT,so as DEFAULT_PIVOT_NUMBER,ms as MovePivotFieldCommand,ws as MovePivotTableCommand,j as PivotDisplayDataType,Is as PivotDrillDownCommand,B as PivotTableOperationEnum,Ut as PivotTableViewDirtyMarkOperation,Lo as PositionType,Cs as RemovePivotFieldCommand,Qt as RemovePivotFieldMutation,xt as RemovePivotTableMutation,$t as RenamePivotFieldMutation,Rs as ResetPivotFieldsConfigCommand,qo as SHEETS_PIVOT_PLUGIN_CONFIG_KEY,ao as SHEET_PIVOT_TABLE_PLUGIN,Ss as SetPivotCollapseCommand,Jt as SetPivotCollapseMutation,Gt as SetPivotFieldFormatMutation,Fs as SetPivotFieldsConfigCommand,bs as SetPivotFilterCommand,Wt as SetPivotFilterMutation,Kt as SetPivotOptionMutation,pt as SetPivotPositionMutation,Ps as SetPivotSortCommand,qt as SetPivotSortMutation,Yt as SetPivotSubtotalTypeMutation,_s as SetPivotValueFilterCommand,zt as SetPivotValueFilterMutation,H as SheetsPivotDataSourceModel,Z as SheetsPivotRPCService,Ne as SheetsPivotTableAdaptorModel,ve as SheetsPivotTableConfigModel,ie as SheetsPivotTableService,Vt as UniverSheetsPivotTablePlugin,Ds as UpdateDateGroupCommand,Xt as UpdateFieldPositionMutation,Ts as UpdatePivotFieldSettingCommand,Zt as UpdatePivotFieldSourceInfoMutation,ys as UpdatePivotTableSourceRangeCommand,to as UpdatePivotTableSourceRangeMutation,Ms as UpdatePivotValuePositionCommand,eo as UpdateValuePositionMutation,me as applyChangeSet,Go as canUsePivot,fe as defaultThemeStyle,Wo as generateSetRangeValueMutations,ge as getAdjustRangesPosition,ji as getEmptyPivotRanges,Nt as getFieldListByArea,we as getInsertRowColMutations,xi as getPivotCellInfo,go as getPivotInfoByLicense,Oi as getPivotTableInfo,vt as transFromCellValue,Bt as unionPivotViewRange};
|
|
1
|
+
const _0x1a4bb1=_0x58d2;(function(_0x32577e,_0x129cc7){const _0x842148=_0x58d2,_0x26ff50=_0x32577e();while(!![]){try{const _0x40b49e=parseInt(_0x842148(0x273))/0x1*(parseInt(_0x842148(0x2fa))/0x2)+-parseInt(_0x842148(0x1fa))/0x3*(-parseInt(_0x842148(0x24f))/0x4)+parseInt(_0x842148(0x1cc))/0x5+-parseInt(_0x842148(0x33b))/0x6*(-parseInt(_0x842148(0x279))/0x7)+parseInt(_0x842148(0x2ba))/0x8+parseInt(_0x842148(0x377))/0x9*(parseInt(_0x842148(0x255))/0xa)+-parseInt(_0x842148(0x30f))/0xb*(parseInt(_0x842148(0x2af))/0xc);if(_0x40b49e===_0x129cc7)break;else _0x26ff50['push'](_0x26ff50['shift']());}catch(_0x56627f){_0x26ff50['push'](_0x26ff50['shift']());}}}(_0x4fac,0xd4f51));var an=Object['defineProperty'],rn=(_0x226c72,_0x9ba047,_0x5f0a68)=>_0x9ba047 in _0x226c72?an(_0x226c72,_0x9ba047,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5f0a68}):_0x226c72[_0x9ba047]=_0x5f0a68,V=(_0x15947b,_0x2fc1c2,_0x41c226)=>rn(_0x15947b,typeof _0x2fc1c2!=_0x1a4bb1(0x35f)?_0x2fc1c2+'':_0x2fc1c2,_0x41c226);import{PivotCellStyleTypeEnum as _0xfeaa95,PivotViewCellValueTypeEnum as _0x209ae8,isPrefixValue as _0x378eb6,isErrorValue as _0x57596f,PivotErrorTypeEnum as _0x60f70f,PivotDateGroupFieldDateTypeEnum as _0x167867,DataFieldManager as _0x1a1803,FieldsCollection as _0xfc14f0,isDateValue as _0x51f8a3,DataField as _0x38d140,generateHexNumber as _0x2cc304,isBaseGroupField as _0x1bb721,PivotTable as _0x162344,PivotSubtotalTypeEnum as _0x4729bf,PivotTableFiledAreaEnum as _0xf3a50c,excelDateToUnixMilliseconds as _0x22fdc5,createValueField as _0x362725,createLabelField as _0x547d29,PivotTableChangeTypeEnum as _0x3caa75,BaseGroupField as _0x267aec,PivotView as _0x1a88a1,isDateGroupFieldJSON as _0x35394c,PivotCallbackEnum as _0x49b29f,PivotFilterTypeEnum as _0x38c691,getAutoDisplayName as _0x2cc45f,PivotDataFieldDataTypeEnum as _0x273cf8,PivotTableValuePositionEnum as _0x22b0c2,isDateGroupField as _0x2a178b,DateGroupField as _0x2bf29a}from'@univerjs-pro/engine-pivot';import{cellToRange as _0x1bfeee,ObjectMatrix as _0x18ce59,IUniverInstanceService as _0x41ab3d,UniverInstanceType as _0x47d004,CellValueType as _0x335ccc,numfmt as _0x48470d,LocaleService as _0x58b50b,createAsyncInterceptorKey as _0x359b2b,createInterceptorKey as _0x35513d,CommandType as _0x5158ca,RANGE_TYPE as _0x3c7dce,numberToABC as _0x1a93f2,Inject as _0x772e00,Injector as _0x4ed77d,LifecycleService as _0x99ea5b,IConfigService as _0x1893a6,ICommandService as _0x554f1b,IResourceManagerService as _0x28a11b,Disposable as _0x36ff7f,Rectangle as _0x41833c,Tools as _0x5a29c7,AsyncInterceptorManager as _0x494024,InterceptorManager as _0x421eb3,InterceptorEffectEnum as _0x2c3ce5,CustomCommandExecutionError as _0x2435cd,IUndoRedoService as _0x943f03,sequenceExecute as _0x17d82c,mergeWorksheetSnapshotWithDefault as _0xa3dcb2,generateRandomId as _0x469552,DEFAULT_WORKSHEET_COLUMN_COUNT as _0x26e9e0,DEFAULT_WORKSHEET_ROW_COUNT as _0x327ba6,DisposableCollection as _0x379c4f,Range as _0x59e98e,DependentOn as _0x50d0a5,Optional as _0xaa6feb,Plugin as _0x504729,merge as _0x12abcd}from'@univerjs/core';import{ErrorType as _0x66eff1,serializeRangeWithSpreadsheet as _0x1ec178,IFeatureCalculationManagerService as _0x3e04e3,GlobalComputingStatusService as _0x4d465d,IActiveDirtyManagerService as _0x34cdf1}from'@univerjs/engine-formula';import{generateNullCell as _0x2d9341,SetRangeValuesUndoMutationFactory as _0x17808b,SetRangeValuesMutation as _0x324b45,getSheetCommandTarget as _0x114ebc,InsertRowMutation as _0x320284,RemoveRowMutation as _0x3c06dc,InsertColMutation as _0x551179,RemoveColMutation as _0x4a6d3c,IExclusiveRangeService as _0x1f541a,SheetInterceptorService as _0x3956fc,INTERCEPTOR_POINT as _0x44882f,InsertSheetCommand as _0x298eba,InsertSheetUndoMutationFactory as _0x47b071,RemoveSheetMutation as _0x56952e,InsertSheetMutation as _0xcc733c,MoveRangeMutation as _0x41afed,SheetsSelectionsService as _0x3fe1d9,ClearSelectionContentCommand as _0x264eb7,ClearSelectionAllCommand as _0xfa21a9,SetWorksheetColWidthMutation as _0x4891f1,RefRangeService as _0x3d4d6b,SetWorksheetActiveOperation as _0x598f26,MoveRangeCommand as _0x591b39,RemoveSheetCommand as _0x24f8c7}from'@univerjs/sheets';import{Subject as _0x55f0e1,BehaviorSubject as _0x261ee4}from'rxjs';function _0x58d2(_0x542278,_0x145e16){const _0x4fac80=_0x4fac();return _0x58d2=function(_0x58d274,_0x4a7113){_0x58d274=_0x58d274-0x1c5;let _0x3553af=_0x4fac80[_0x58d274];return _0x3553af;},_0x58d2(_0x542278,_0x145e16);}import{LS_CONFIG_KEY as _0x2bc50f,unshiftString as _0x39ba9a,isFeatureAuthorizedWithinTime as _0x52bf03,getSheetFeatureLimit as _0x1641fe,ReleaseType as _0x451bf1,UniverLicensePlugin as _0x1ce9db}from'@univerjs-pro/license';import{SetSheetsFilterRangeMutation as _0x2ac767,RemoveSheetsFilterMutation as _0x3f41c9}from'@univerjs/sheets-filter';import{DataSyncPrimaryController as _0x49de43}from'@univerjs/rpc';import{getFontStyleString as _0x1fa31e,FontCache as _0x9b4dce}from'@univerjs/engine-render';const Ao=Number[_0x1a4bb1(0x291)](0x68833ed2),li=0x10,so=0x1,ao='SHEET_PIVOT_TABLE_PLUGIN',It=0x1,di='rgb(240,241,243)',ci='rgb(255,255,255)',Rt=_0x1a4bb1(0x3aa),ui=_0x1a4bb1(0x382),fi=_0x1a4bb1(0x382),gi=_0x1a4bb1(0x1e2),hi=_0x1a4bb1(0x338),vi=_0x1a4bb1(0x385),pi=_0x1a4bb1(0x328),mi=_0x1a4bb1(0x338),Ii=_0x1a4bb1(0x385),Ci='#e6ebfb',bi=0xe,Si=0x6;var Wo=(_0x21ec7b=>(_0x21ec7b[_0x1a4bb1(0x411)]='existing',_0x21ec7b['New']=_0x1a4bb1(0x2f3),_0x21ec7b))(Wo||{});const Lo={'sheets-pivot':{'blankValue':'','columnName':'','subTotalText':'','grandTotalText':'','valueText':'','averageName':'','countName':'','countNumsName':'','maxName':'','minName':'','productName':'','stdDevName':'','stdDevpName':'','sumName':'','varName':'','varpName':'','value':'','blank':'','subTotal':'','grandTotal':'','emptyPivot':{'filter':'','row':'','column':'','values':''},'dateGroup':{'year':'','month':'','day':'','hour':'','minute':'','quarter':'','monthDate':'','yearQuarter':'','yearMonth':'','yearMonthDate':''},'cellDateGroupDisplay':{'minute':'','hour':'','hourMinute':'','date':'','month':'','monthDate':'','quarter':'','year':'','yearMonth':'','yearMonthDate':'','yearQuarter':''}}},Pi=0x1e,je={'b':{'s':0x1,'cl':{'rgb':Rt}},'l':{'s':0x1,'cl':{'rgb':Rt}},'r':{'s':0x1,'cl':{'rgb':Rt}},'t':{'s':0x1,'cl':{'rgb':Rt}}},oe={'bg':{'rgb':di},'ht':0x2,'vt':0x2,'tb':0x1},w={'bg':{'rgb':ci},'ht':0x2,'vt':0x2,'tb':0x1},fe={'rowStyle':{'bg':{'rgb':Ci},'bd':je,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':mi},'bd':null,'cl':{'rgb':Ii},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':je,'bg':{'rgb':pi},'vt':0x2},'cornerStyle':{'bd':je,'bg':{'rgb':gi},'bl':0x1,'vt':0x2},'pageStyle':{'bd':je,'bg':{'rgb':ui},'vt':0x2},'leafStyle':{'bd':je,'bg':{'rgb':fi},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':hi},'cl':{'rgb':vi},'bl':0x1,'vt':0x2},'dataStyle':{'bd':je,'vt':0x2}};function yi(_0x302bd8,_0x50badd,_0x4999c3){const _0x5d98f3=_0x1a4bb1,_0x4ddebc=_0x302bd8['get'](_0x58b50b),_0x5af79c=_0x4999c3['split']('_');switch(_0x50badd){case _0x167867[_0x5d98f3(0x35e)]:return _0x4ddebc['t']('sheets-pivot.cellDateGroupDisplay.year',..._0x5af79c);case _0x167867[_0x5d98f3(0x1e3)]:return _0x4ddebc['t'](_0x5d98f3(0x36a),..._0x5af79c);case _0x167867[_0x5d98f3(0x407)]:return _0x4ddebc['t'](_0x5d98f3(0x29a),..._0x5af79c);case _0x167867[_0x5d98f3(0x281)]:return _0x4ddebc['t'](_0x5d98f3(0x3b6),..._0x5af79c);case _0x167867['Date']:return _0x4ddebc['t'](_0x5d98f3(0x311),..._0x5af79c);case _0x167867[_0x5d98f3(0x224)]:return _0x4ddebc['t'](_0x5d98f3(0x3f6),..._0x5af79c);case _0x167867[_0x5d98f3(0x429)]:return _0x4ddebc['t'](_0x5d98f3(0x2f8),..._0x5af79c);case _0x167867['YearMonth']:return _0x4ddebc['t'](_0x5d98f3(0x3c5),..._0x5af79c);case _0x167867[_0x5d98f3(0x378)]:return _0x4ddebc['t'](_0x5d98f3(0x21b),..._0x5af79c);case _0x167867[_0x5d98f3(0x443)]:return _0x4ddebc['t']('sheets-pivot.cellDateGroupDisplay.yearQuarter',..._0x5af79c);}return'';}const it=(_0x2f9375,_0xf0125c,_0x3ee312,_0x8044f2)=>{const _0x54a12d=_0x1a4bb1;let _0x5cb382;const _0x34d9a0=_0x2f9375[_0x54a12d(0x39e)](_0x41ab3d)[_0x54a12d(0x33a)](_0x47d004[_0x54a12d(0x3de)]);if(!_0x34d9a0)return null;const _0x4918d0=_0x34d9a0[_0x54a12d(0x42d)]();let _0x2f62d4;if(_0x3ee312&&(_0x2f62d4=_0x4918d0[_0x54a12d(0x22a)](_0x3ee312)),_0xf0125c!=null&&_0xf0125c['v']||(_0xf0125c==null?void 0x0:_0xf0125c['v'])===0x0){_0x5cb382||(_0x5cb382={});const _0x4983a1=Bo(_0xf0125c['v']);typeof _0x4983a1==_0x54a12d(0x284)?_0x5cb382['t']=_0x335ccc[_0x54a12d(0x30a)]:typeof _0x4983a1==_0x54a12d(0x406)&&(_0x5cb382['t']=_0x335ccc['STRING']),_0x5cb382['v']=_0x4983a1;}if((_0xf0125c!=null&&_0xf0125c['i']||(_0xf0125c==null?void 0x0:_0xf0125c['i'])===0x0)&&(_0x5cb382||(_0x5cb382={}),_0x5cb382['fi']=_0xf0125c['i']),_0xf0125c!=null&&_0xf0125c['s']&&(_0x5cb382||(_0x5cb382={}),_0x5cb382[_0x54a12d(0x1c7)]=_0xf0125c['s']),_0x3ee312&&(_0x5cb382||(_0x5cb382={}),_0x5cb382['s']=_0x2f62d4),_0x8044f2&&_0x5cb382!=null&&_0x5cb382['v']&&_0x5cb382[_0x54a12d(0x1c7)]!==_0xfeaa95[_0x54a12d(0x2e1)]&&_0x5cb382[_0x54a12d(0x1c7)]!==_0xfeaa95[_0x54a12d(0x23c)]){const _0x5f8b52=String(_0x5cb382['v']),{dateType:_0x5eeacf}=_0x8044f2;_0x5cb382['v']=yi(_0x2f9375,_0x5eeacf,_0x5f8b52),_0x5cb382['t']=_0x335ccc[_0x54a12d(0x3ad)];}return _0x5cb382;},Ti=(_0x464f99,_0x19d103,_0x1257a7,_0x517571)=>{const _0xde608a=_0x1a4bb1;var _0x458800,_0x3c80aa,_0x5a04a8,_0x4ce75b,_0x3a5dc9,_0x1cab64,_0x4dddac,_0x38e54e,_0x37c8fb,_0x1f97a7,_0x5a5c29,_0x522bc5,_0x2f41f2,_0x152ff3;const _0x3b1f2f=_0x1257a7[_0xde608a(0x202)],{cornerView:_0x48dd83,rowView:_0x217e7b,colView:_0x5b1c56,dataView:_0x4b3e68,pageView:_0xe8fd4,formatMap:_0x26f799,groupInfo:_0x24978d}=_0x19d103,{row:_0x13fcb3,col:_0x3d5a60}=_0x3b1f2f,_0x5b8f70=new _0x18ce59(),_0x22bd33={},_0x26545f={},_0x1b2b8e={},_0x55308c={},_0x1a1808={};let _0x27376f=_0x13fcb3,_0x19994e=_0x3d5a60;Object['keys'](_0xe8fd4['data'])['forEach'](_0x4fba92=>{const _0x52d5d3=_0xde608a;Object[_0x52d5d3(0x37f)](_0xe8fd4[_0x52d5d3(0x2ea)][Number(_0x4fba92)])[_0x52d5d3(0x34b)](_0x14076c=>{const _0x560c9b=_0x52d5d3,_0xafb358={..._0xe8fd4['data'][Number(_0x4fba92)][Number(_0x14076c)]};_0x5b8f70[_0x560c9b(0x22a)](Number(_0x4fba92)+_0x27376f,Number(_0x14076c)+_0x19994e,it(_0x464f99,_0xafb358,fe[_0x560c9b(0x322)]));});});const _0x337254=Object[_0xde608a(0x37f)](_0xe8fd4[_0xde608a(0x2ea)])['length'];_0x27376f+=_0x337254+(_0x337254?It:0x0);const _0x44c58b=_0x48dd83[_0xde608a(0x342)](),_0x4823be=_0x48dd83[_0xde608a(0x25e)]();for(let _0x4b0835=0x0;_0x4b0835<_0x44c58b;_0x4b0835++)for(let _0x1a0370=0x0;_0x1a0370<_0x4823be;_0x1a0370++){const _0x131d90={...(_0x3c80aa=(_0x458800=_0x48dd83['data'])==null?void 0x0:_0x458800[_0x4b0835])==null?void 0x0:_0x3c80aa[_0x1a0370]};_0x131d90&&((_0x5a04a8=_0x217e7b['headerMap'][_0x1a0370])!=null&&_0x5a04a8[_0xde608a(0x27e)])&&_0x1a0370===_0x4823be-0x1&&_0x4b0835===_0x44c58b-0x1&&(_0x131d90['v']=''+_0x517571['sheets-pivot.value']),_0x5b8f70[_0xde608a(0x22a)](_0x4b0835+_0x27376f,_0x1a0370+_0x19994e,it(_0x464f99,_0x131d90,fe[_0xde608a(0x1f1)]));}for(let _0x3d9e19=0x0;_0x3d9e19<_0x48dd83['info'][_0xde608a(0x2ac)];_0x3d9e19++)_0x48dd83[_0xde608a(0x2e8)][_0x3d9e19]&&(_0x1b2b8e[''+(_0x3d9e19+_0x19994e)]=_0x48dd83[_0xde608a(0x2e8)][_0x3d9e19]);_0x19994e+=_0x4823be;const _0x3c3a06=_0x5b1c56[_0xde608a(0x246)],_0x41aa7d=_0x5b1c56[_0xde608a(0x231)]()>=0x0?_0x5b1c56[_0xde608a(0x231)]()+0x1:0x0,_0x3313cf=_0x5b1c56[_0xde608a(0x430)]()>=0x0?_0x5b1c56[_0xde608a(0x430)]()+0x1:0x0;for(let _0xfc6b2a=0x0;_0xfc6b2a<_0x3313cf;_0xfc6b2a++){for(let _0x56bd75=0x0;_0x56bd75<_0x41aa7d;_0x56bd75++){const _0x3c0650={...(_0x3a5dc9=(_0x4ce75b=_0x5b1c56[_0xde608a(0x2ea)])==null?void 0x0:_0x4ce75b[_0x56bd75])==null?void 0x0:_0x3a5dc9[_0xfc6b2a]},_0x4230ad=(_0x1cab64=_0x3c3a06[_0x56bd75])==null?void 0x0:_0x1cab64[_0xde608a(0x380)],_0x1794a6=_0x26f799[_0x4230ad],_0x5b8dba=_0x24978d[_0x4230ad];_0x3c0650&&(_0x3c0650['v']=vt(_0x3c0650,_0x56bd75===0x0&&((_0x4dddac=_0x5b1c56[_0xde608a(0x421)](_0xfc6b2a+0x1))==null?void 0x0:_0x4dddac['isValue']),_0x1794a6,_0x517571));let _0xcb3092;_0x1794a6?_0xcb3092={...fe[_0xde608a(0x27b)],'n':{'pattern':_0x1794a6}}:_0xcb3092={...fe[_0xde608a(0x27b)]},_0x5b8f70['setValue'](_0x56bd75+_0x27376f,_0xfc6b2a+_0x19994e,it(_0x464f99,_0x3c0650,_0xcb3092,_0x5b8dba));}_0x5b1c56['info'][_0xfc6b2a]&&(_0x26545f[''+(_0xfc6b2a+_0x19994e)]=_0x5b1c56[_0xde608a(0x2e8)][_0xfc6b2a]),_0x5b1c56[_0xde608a(0x246)][_0xfc6b2a+0x1]&&(_0x1a1808[''+(_0xfc6b2a+_0x27376f+0x1)]=_0x5b1c56[_0xde608a(0x246)][_0xfc6b2a+0x1]);}_0x27376f+=_0x44c58b;const _0x432d4c=_0x217e7b[_0xde608a(0x246)],_0x1f4628=_0x217e7b['getLastRow']()>=0x0?_0x217e7b[_0xde608a(0x231)]()+0x1:0x0,_0x196e35=_0x217e7b[_0xde608a(0x430)]()>=0x0?_0x217e7b[_0xde608a(0x430)]()+0x1:0x0;for(let _0xe1d945=0x0;_0xe1d945<_0x1f4628;_0xe1d945++){for(let _0x2cb31e=0x0;_0x2cb31e<_0x196e35;_0x2cb31e++){const _0x2ce5c7={...(_0x37c8fb=(_0x38e54e=_0x217e7b[_0xde608a(0x2ea)])==null?void 0x0:_0x38e54e[_0xe1d945])==null?void 0x0:_0x37c8fb[_0x2cb31e]},_0x41f1bc=(_0x1f97a7=_0x432d4c[_0x2cb31e])==null?void 0x0:_0x1f97a7['tableFieldId'],_0x12217d=_0x26f799[_0x41f1bc],_0x50208b=_0x24978d[_0x41f1bc];_0x2ce5c7&&(_0x2ce5c7['v']=vt(_0x2ce5c7,!0x1,_0x12217d,_0x517571));let _0x183685;_0x217e7b[_0xde608a(0x2e8)][_0xe1d945][_0xde608a(0x20d)]===_0x217e7b['getColCount']()?_0x183685=fe[_0xde608a(0x2a3)]:_0x217e7b[_0xde608a(0x2e8)][_0xe1d945][_0xde608a(0x245)]?_0x183685=_0x217e7b['info'][_0xe1d945][_0xde608a(0x20d)]===0x0?fe[_0xde608a(0x2b8)]:fe[_0xde608a(0x3be)]:_0x183685=fe[_0xde608a(0x304)],_0x12217d&&(_0x183685={..._0x183685,'n':{'pattern':_0x12217d}}),_0x5b8f70[_0xde608a(0x22a)](_0xe1d945+_0x27376f,_0x2cb31e+_0x3d5a60,it(_0x464f99,_0x2ce5c7,_0x183685,_0x50208b));}_0x217e7b[_0xde608a(0x2e8)][_0xe1d945]&&(_0x22bd33[''+(_0xe1d945+_0x27376f)]=_0x217e7b[_0xde608a(0x2e8)][_0xe1d945]),_0x217e7b['headerMap'][_0xe1d945]&&(_0x55308c[''+(_0xe1d945+_0x3d5a60)]=_0x217e7b[_0xde608a(0x246)][_0xe1d945]);}const _0x1a9aa1=_0x4b3e68[_0xde608a(0x342)](),_0x97d4b1=_0x4b3e68[_0xde608a(0x25e)]();for(let _0x23b4f3=0x0;_0x23b4f3<_0x1a9aa1;_0x23b4f3++)for(let _0x157d30=0x0;_0x157d30<_0x97d4b1;_0x157d30++){const _0x3bda4e={...(_0x522bc5=(_0x5a5c29=_0x4b3e68[_0xde608a(0x2ea)])==null?void 0x0:_0x5a5c29[_0x23b4f3])==null?void 0x0:_0x522bc5[_0x157d30]};let _0x5ec17b;_0x217e7b[_0xde608a(0x2e8)][_0x23b4f3]['isBottomTotal']?_0x5ec17b=_0x217e7b[_0xde608a(0x2e8)][_0x23b4f3][_0xde608a(0x20d)]===0x0?fe[_0xde608a(0x2b8)]:fe[_0xde608a(0x3be)]:_0x5ec17b=fe[_0xde608a(0x1c8)];const _0x553bc5=_0x217e7b['info'][_0x23b4f3][_0xde608a(0x3c7)],_0x485265=_0x5b1c56[_0xde608a(0x2e8)][_0x157d30]['valueIndex'],_0x2063f7=Math['max'](_0x553bc5,_0x485265),_0xc3dd86=_0x1257a7[_0xde608a(0x2a8)]['valueFields']['concat']();let _0x50d09a='';_0x2063f7<0x0?_0x50d09a=(_0x2f41f2=_0xc3dd86[0x0])!=null?_0x2f41f2:'':_0x50d09a=(_0x152ff3=_0xc3dd86[_0x2063f7])!=null?_0x152ff3:'';const _0x4f635a=_0x26f799[_0x50d09a];_0x4f635a&&(_0x5ec17b={..._0x5ec17b,'n':{'pattern':_0x4f635a}}),_0x5b8f70[_0xde608a(0x22a)](_0x23b4f3+_0x27376f,_0x157d30+_0x19994e,it(_0x464f99,_0x3bda4e,_0x5ec17b));}return{'valueMatrix':_0x5b8f70,'rowInfo':_0x22bd33,'colInfo':_0x26545f,'cornerInfo':_0x1b2b8e,'rowHeaderMap':_0x55308c,'colHeaderMap':_0x1a1808};};function vt(_0x7515e6,_0x198a24,_0x202ca9,_0x392b93){const _0x380cda=_0x1a4bb1;let _0xd8fc07=_0x7515e6['v'];_0x198a24&&(_0xd8fc07=''+_0x392b93[_0x380cda(0x3f0)]);const _0x2c5341=_0x7515e6['t']&&(_0x7515e6['t']&_0x209ae8[_0x380cda(0x3ac)])>0x0;if(_0x2c5341&&(_0xd8fc07=''+_0x392b93[_0x380cda(0x3f8)]),_0x7515e6['s']===_0xfeaa95[_0x380cda(0x23c)]){let _0x3b8f42=_0xd8fc07,_0x2f0815='';_0x378eb6(_0xd8fc07)&&(_0x3b8f42=_0xd8fc07[_0x380cda(0x351)],_0x2f0815=_0xd8fc07[_0x380cda(0x1da)]);const _0x55e0b7=_0x202ca9&&!_0x2c5341?_0x48470d[_0x380cda(0x2b9)](_0x202ca9,Number(_0x3b8f42)):_0x3b8f42;_0x2f0815?_0xd8fc07=_0x55e0b7+'\x20'+_0x2f0815:_0xd8fc07=_0x55e0b7+'\x20'+_0x392b93[_0x380cda(0x243)];}else _0x7515e6['s']===_0xfeaa95[_0x380cda(0x2e1)]&&(_0xd8fc07=_0xd8fc07+'\x20'+_0x392b93[_0x380cda(0x37c)]);return _0xd8fc07;}function Bo(_0x4e0ff0){const _0x2ac596=_0x1a4bb1;if(_0x57596f(_0x4e0ff0)){const {errorType:_0x32dd77}=_0x4e0ff0;switch(_0x32dd77){case _0x60f70f['Div0']:return _0x66eff1['DIV_BY_ZERO'];case _0x60f70f[_0x2ac596(0x3d9)]:return _0x66eff1[_0x2ac596(0x256)];case _0x60f70f['NotFunction']:return _0x66eff1[_0x2ac596(0x26d)];case _0x60f70f[_0x2ac596(0x3e3)]:return _0x66eff1[_0x2ac596(0x26d)];case _0x60f70f['BadReference']:return _0x66eff1[_0x2ac596(0x2d1)];}}return _0x4e0ff0;}function ge(_0x3955a5,_0x4a2fc9,_0x2316fc=!0x1,_0xbf1841=!0x1){const _0x79df13=_0x1a4bb1,{data:_0x5d2ba6}=_0x4a2fc9,_0x1db2fb=_0x4a2fc9[_0x79df13(0x342)](),_0x450025=_0x4a2fc9[_0x79df13(0x25e)]();if(_0x1db2fb<=0x0||_0x450025<=0x0)return[];const _0x2023e4=_0x4a2fc9['getLastCol'](),_0x250295=_0x4a2fc9[_0x79df13(0x231)](),_0x43d388=_0xbf1841?_0x250295>=0x0?_0x250295+0x1:0x0:_0x1db2fb,_0x48daf5=_0xbf1841?_0x2023e4>=0x0?_0x2023e4+0x1:0x0:_0x450025,{row:_0xeb0d7b,col:_0x261b0a}=_0x3955a5,_0x3d75c5=_0xeb0d7b,_0x12af50=_0x261b0a;if(_0x2316fc){const _0x4a38d9=[];for(const [_0x1cf606,_0x59a3e4]of Object[_0x79df13(0x1e1)](_0x5d2ba6))for(const [_0x5dfba9,_0x360e10]of Object[_0x79df13(0x1e1)](_0x59a3e4))_0x4a38d9[_0x79df13(0x3ea)](_0x1bfeee(_0x3d75c5+Number(_0x1cf606),_0x12af50+Number(_0x5dfba9)));return _0x4a38d9;}else{const _0x534714=_0xbf1841?_0x43d388>0x0?0x1:0x0:0x1,_0x3c0b1a=_0xbf1841?_0x48daf5>0x0?0x1:0x0:0x1,_0x2d8d4a=_0xeb0d7b+_0x43d388-_0x534714,_0x184ed4=_0x261b0a+_0x48daf5-_0x3c0b1a;return[{'startRow':_0x3d75c5,'startColumn':_0x12af50,'endRow':_0x2d8d4a,'endColumn':_0x184ed4}];}}const q=_0x1a4bb1(0x324),Wt='SHEET_PIVOT_EXCLUSIVE_ID';var A=(_0x34bce1=>(_0x34bce1[_0x1a4bb1(0x39a)]='filter',_0x34bce1[_0x1a4bb1(0x2db)]=_0x1a4bb1(0x424),_0x34bce1[_0x1a4bb1(0x277)]=_0x1a4bb1(0x1ef),_0x34bce1[_0x1a4bb1(0x405)]='AddPivotTableWithConfig',_0x34bce1[_0x1a4bb1(0x2ad)]=_0x1a4bb1(0x346),_0x34bce1[_0x1a4bb1(0x24e)]=_0x1a4bb1(0x426),_0x34bce1['RemovePivotField']=_0x1a4bb1(0x36e),_0x34bce1[_0x1a4bb1(0x1e8)]=_0x1a4bb1(0x413),_0x34bce1['SetPivotFilter']=_0x1a4bb1(0x230),_0x34bce1[_0x1a4bb1(0x39c)]=_0x1a4bb1(0x257),_0x34bce1['SetPivotSetting']=_0x1a4bb1(0x392),_0x34bce1[_0x1a4bb1(0x427)]='updatePivotSource',_0x34bce1[_0x1a4bb1(0x203)]=_0x1a4bb1(0x2c3),_0x34bce1[_0x1a4bb1(0x20c)]=_0x1a4bb1(0x365),_0x34bce1[_0x1a4bb1(0x21e)]=_0x1a4bb1(0x2fd),_0x34bce1[_0x1a4bb1(0x3a4)]='setPivotTableConfig',_0x34bce1[_0x1a4bb1(0x236)]=_0x1a4bb1(0x2d0),_0x34bce1))(A||{});const Mi={'sheets-pivot.blankValue':_0x1a4bb1(0x2d7),'sheets-pivot.columnName':'Column\x20','sheets-pivot.subTotalText':_0x1a4bb1(0x2d5),'sheets-pivot.grandTotalText':_0x1a4bb1(0x3a3),'sheets-pivot.valueText':_0x1a4bb1(0x1d9),'sheets-pivot.averageName':'Average\x20of\x20','sheets-pivot.countName':_0x1a4bb1(0x42a),'sheets-pivot.countNumsName':'Count\x20of\x20','sheets-pivot.maxName':_0x1a4bb1(0x3d5),'sheets-pivot.minName':_0x1a4bb1(0x2ab),'sheets-pivot.productName':'Product\x20of\x20','sheets-pivot.stdDevName':_0x1a4bb1(0x410),'sheets-pivot.stdDevpName':_0x1a4bb1(0x229),'sheets-pivot.sumName':_0x1a4bb1(0x276),'sheets-pivot.varName':_0x1a4bb1(0x2c8),'sheets-pivot.varpName':_0x1a4bb1(0x2cb),'sheets-pivot.subTotal':'Subtotal','sheets-pivot.grandTotal':_0x1a4bb1(0x3a3),'sheets-pivot.value':_0x1a4bb1(0x1da),'sheets-pivot.blank':_0x1a4bb1(0x3ac),'sheets-pivot.emptyPivot.filter':_0x1a4bb1(0x39a),'sheets-pivot.emptyPivot.row':_0x1a4bb1(0x3f4),'sheets-pivot.emptyPivot.column':'Column','sheets-pivot.emptyPivot.values':'Values'},Po={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},be=_0x359b2b(_0x1a4bb1(0x20b)),Go=_0x35513d('pivotMutationGenerate');var Le=(_0x3d4f8b=>(_0x3d4f8b[_0x1a4bb1(0x3ef)]=_0x1a4bb1(0x3ef),_0x3d4f8b[_0x1a4bb1(0x3e5)]=_0x1a4bb1(0x3e5),_0x3d4f8b['update']=_0x1a4bb1(0x36c),_0x3d4f8b))(Le||{}),B=(_0x3dfc94=>(_0x3dfc94['Add']=_0x1a4bb1(0x3ef),_0x3dfc94[_0x1a4bb1(0x3d4)]=_0x1a4bb1(0x1fc),_0x3dfc94[_0x1a4bb1(0x3b7)]=_0x1a4bb1(0x3e5),_0x3dfc94))(B||{});const $o={0x0:'w',0x1:'Y',0x2:'I',0x3:'a',0x4:'s',0x5:'8',0x6:'k',0x7:'M',0x8:'x',0x9:'l','K':'0','L':'1','b':'2','U':'3','w':'4','X':'5','a':'6','V':'7','p':'9','Q':'b','y':'c','n':'d','W':'e','F':'f','G':'g','q':'h','k':'i','D':'j','m':'m','d':'n','z':'o','H':'p','A':'q','h':'r','R':'t','Y':'u','u':'v','j':'y','c':'z','T':'A','M':'B','l':'C','B':'D','S':'E','C':'F','g':'G','P':'H','J':'J','E':'K','o':'L','O':'N','t':'O','x':'P','v':'Q','i':'R','e':'S','r':'T','I':'U','Z':'V','f':'W','N':'X','s':'Z'},zo='FYdyRkzd\x20nWyhjHRkzd(9kyWd4W,\x20HYQ9kyEWj)\x20{\x20\x20\x20\x20Rhj\x20{\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x209kyWd4W2dFzx3hRThh3j\x20=\x209kyWd4W.4H9kR(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x20zhkGkd7W443GW\x20=\x20JetO.H3h4W(3RzQ(9kyWd4W2dFzx3hRThh3j[b]));\x20\x20\x20\x20\x20\x20\x20\x20kF\x20(!zhkGkd7W443GW.Yn)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20zhkGkd7W443GW.Yn\x20=\x20OYmQWh(9kyWd4W2dFzx3hRThh3j[w]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x20k4fzh6Wh\x20=\x20RjHWzF\x20fzh6Whg9zQ39eyzHW\x20!==\x20\x27YdnWFkdWn\x27\x20&&\x204W9F\x20kd4R3dyWzF\x20fzh6Whg9zQ39eyzHW;\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x20yzdRW8R\x20=\x20k4fzh6Wh\x20?\x204W9F\x20:\x200kdnz0;\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x20mW443GWfzhn\x20=\x20yzdRW8R.__M34Waw__.H3h4W(9kyWd4W2dFzx3hRThh3j[b]);\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x20mW443GW\x20=\x20yzdRW8R.__PW8__.4RhkdGkFj(mW443GWfzhn);\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x204kGd3RYhWfzhn\x20=\x20yzdRW8R.__M34Waw__.H3h4W(9kyWd4W2dFzx3hRThh3j[U]);\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x204kGd3RYhW\x20=\x20yzdRW8R.__PW8__.4RhkdGkFj(4kGd3RYhWfzhn);\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x204kGdZ39kn\x20=\x20yzdRW8R.__uWhkFj__(4kGd3RYhW,\x20mW443GW,\x20HYQ9kyEWj);\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x20nzm3kd\x20=\x20zhkGkd7W443GW.nm;\x20\x20\x20\x20\x20\x20\x20\x20FYdyRkzd\x20k4Bzm3kd73RyqkdG(zx3RRWhd,\x20zPz4R)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x20H3RRWhd\x20=\x20zx3RRWhd.hWH93yW(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x20qz4R\x20=\x20zPz4R.hWH93yW(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x20H3RRWhdx3hR4\x20=\x20H3RRWhd.4H9kR(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x20qz4Rx3hR4\x20=\x20qz4R.4H9kR(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20kF\x20(!H3RRWhd.kdy9YnW4(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hWRYhd\x20H3RRWhd\x20===\x20qz4R;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20kF\x20(H3RRWhdx3hR4.9WdGRq\x20<\x20b\x20||\x20H3RRWhdx3hR4[K]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hWRYhd\x20F394W;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x20H3RRWhdeYFFk8\x20=\x20H3RRWhdx3hR4.49kyW(L).Dzkd(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x20qz4ReYFFk8\x20=\x20qz4Rx3hR4.49kyW(-H3RRWhdx3hR4.9WdGRq\x20+\x20L).Dzkd(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hWRYhd\x20H3RRWhdeYFFk8\x20===\x20qz4ReYFFk8;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x209WR\x20nzm3kdZ39kn\x20=\x20(nzm3kd\x20&&\x20nzm3kd.9WdGRq)\x20?\x20nzm3kd.4zmW((nm2RWm)\x20=>\x20k4Bzm3kd73RyqkdG(nm2RWm,\x209zy3Rkzd.qz4Rd3mW))\x20:\x20RhYW;\x20\x20\x20\x20\x20\x20\x20\x20kF\x20(9zy3Rkzd.qz4Rd3mW\x20===\x20\x279zy39qz4R\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20nzm3kdZ39kn\x20=\x20RhYW;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20yzd4R\x20u39kn\x20=\x204kGdZ39kn\x20&&\x20nzm3kdZ39kn;\x20\x20\x20\x20\x20\x20\x20\x20hWRYhd\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20u39kn,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mW443GW:\x20zhkGkd7W443GW,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20y3Ryq\x20(Whhzh)\x20{\x20\x20\x20\x20\x20\x20\x20\x20hWRYhd\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20u39kn:\x20F394W,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mW443GW:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}',ro={'type':_0x5158ca[_0x1a4bb1(0x28e)],'id':'sheet.mutation.get-pivot-data-local','handler':()=>!0x0},lo={'type':_0x5158ca[_0x1a4bb1(0x28e)],'id':_0x1a4bb1(0x3ec),'handler':()=>!0x0},Dt={'type':_0x5158ca[_0x1a4bb1(0x28e)],'id':_0x1a4bb1(0x3b9),'handler':()=>!0x0},co={'type':_0x5158ca[_0x1a4bb1(0x28e)],'id':_0x1a4bb1(0x28d),'handler':()=>!0x0},uo={'type':_0x5158ca['MUTATION'],'id':_0x1a4bb1(0x400),'handler':()=>!0x0},Ri=_0x175ec9=>{const _0x13bbc2=_0x1a4bb1;var _0x3f70c4;return((_0x3f70c4=_0x175ec9[_0x13bbc2(0x25a)])==null?void 0x0:_0x3f70c4['dataStream'][_0x13bbc2(0x36f)](/\r\n$/,''))||'';};class wi extends _0x1a1803{constructor(_0x4caa61,_0x3cee01){const _0x538d4e=_0x1a4bb1;super(),V(this,'rangeKeyMap',{}),V(this,'_univerInstanceService'),V(this,_0x538d4e(0x3fe)),(this[_0x538d4e(0x41d)]=_0x3cee01,this[_0x538d4e(0x3fe)]=_0x4caa61);}[_0x1a4bb1(0x32f)](){const _0x440e76=_0x1a4bb1;for(const _0x5df272 in this[_0x440e76(0x234)]){const _0xfc1518=this[_0x440e76(0x234)][_0x5df272],_0x25b51d=_0xfc1518['getRangeKey']();this[_0x440e76(0x227)][_0x25b51d]=_0xfc1518['getId']();}}[_0x1a4bb1(0x295)](){const _0x51640d=_0x1a4bb1,_0x319510=this[_0x51640d(0x3fe)];return xi[_0x51640d(0x2cc)](_0x319510);}['deleteDataField'](_0x28209a){const _0x12e3ac=_0x1a4bb1,_0x1902b2=this[_0x12e3ac(0x234)][_0x28209a]['rangeKey'];delete this['dataFields'][_0x28209a],delete this[_0x12e3ac(0x227)][_0x1902b2];}['addDataFieldWithoutUnitInfo'](_0x237aee){const _0x2c4a97=_0x1a4bb1;this['dataFields'][_0x237aee[_0x2c4a97(0x272)]()]=_0x237aee;}[_0x1a4bb1(0x260)](_0x59b295){const _0x4b7bcd=_0x1a4bb1;var _0x3cdac6,_0xef3033;const _0x88161e=this[_0x4b7bcd(0x3fe)][_0x4b7bcd(0x320)](_0x59b295);if(_0x88161e){const {unitId:_0x4d4fed,subUnitId:_0x52c1ab}=_0x88161e,_0x4f4274=(_0x3cdac6=this[_0x4b7bcd(0x3fe)]['getPivotTableConfig'](_0x4d4fed,_0x52c1ab,_0x59b295))==null?void 0x0:_0x3cdac6[_0x4b7bcd(0x2d2)];this[_0x4b7bcd(0x3fe)][_0x4b7bcd(0x2d4)]({'token':_0x59b295,'type':Le[_0x4b7bcd(0x3e5)],'dataRangeInfo':_0x4f4274});}(_0xef3033=this['getCollection'](_0x59b295))==null||_0xef3033[_0x4b7bcd(0x32a)](),delete this[_0x4b7bcd(0x1d8)][_0x59b295];}['getRangeKey'](_0x1142bd,_0x422b96){const {sheetName:_0x437496,unitId:_0x4e3972,range:_0x568e0f}=_0x1142bd,{startRow:_0x157856,endRow:_0x4c655b}=_0x568e0f;return _0x1ec178(_0x4e3972,_0x437496,{'startRow':_0x157856,'endRow':_0x4c655b,'startColumn':_0x422b96,'endColumn':_0x422b96});}['getDataFieldByRangeKey'](_0x1fd61a){const _0x155ea6=_0x1a4bb1;return this['dataFields'][this[_0x155ea6(0x227)][_0x1fd61a]];}[_0x1a4bb1(0x41a)](_0x4cd3cc,_0xe07063){const _0x51a025=_0x1a4bb1;this[_0x51a025(0x227)][_0x4cd3cc]=_0xe07063;}['updateRangeKeyMap'](_0x1554f4,_0x5b24ea){const _0x2e4ba5=_0x1a4bb1;this[_0x2e4ba5(0x227)][_0x5b24ea]=this[_0x2e4ba5(0x227)][_0x1554f4],delete this[_0x2e4ba5(0x227)][_0x1554f4];}[_0x1a4bb1(0x21a)](_0x11c6c7,_0x1c1717,_0x21034d,_0xf4d6f0){const _0x11b3e6=_0x1a4bb1,_0x3a05ba=new _0xfc14f0(this);_0x3a05ba[_0x11b3e6(0x2d8)](_0x1c1717);const _0x4c1f5c=[];let _0x2d2944=0x0;for(const _0x312cc8 of _0x3a05ba[_0x11b3e6(0x40e)]){const _0x1f6924=this[_0x11b3e6(0x299)](_0x21034d,_0x2d2944),_0x18f3c0=this[_0x11b3e6(0x234)][_0x312cc8];_0x18f3c0&&(_0x18f3c0['rangeKey']=_0x1f6924,this[_0x11b3e6(0x41a)](_0x1f6924,_0x312cc8),_0x4c1f5c[_0x11b3e6(0x3ea)]({'index':_0x2d2944,'dataField':_0x18f3c0})),_0x2d2944++;}return this[_0x11b3e6(0x423)](_0x11c6c7,_0x3a05ba,_0x21034d,_0xf4d6f0),{'collection':_0x3a05ba,'updateDataFieldList':_0x4c1f5c};}[_0x1a4bb1(0x43d)](_0x4889ea,_0x1fde4a){const _0x377786=_0x1a4bb1;return _0x4889ea[_0x377786(0x3e0)]===_0x3c7dce['COLUMN']?{'startRow':0x0,'startColumn':_0x4889ea['startColumn'],'endRow':_0x1fde4a[_0x377786(0x342)]()-0x1,'endColumn':_0x4889ea['endColumn']}:{'startRow':_0x4889ea[_0x377786(0x296)],'startColumn':_0x4889ea[_0x377786(0x3df)],'endRow':_0x4889ea[_0x377786(0x417)],'endColumn':_0x4889ea[_0x377786(0x1fe)]};}['createCollectionWithDataRange'](_0x2a85e5){const _0x45f2f7=_0x1a4bb1,{sheetName:_0x555ec9,range:_0x5542bd}=_0x2a85e5,_0x300bd7=this['_univerInstanceService'][_0x45f2f7(0x33a)](_0x47d004[_0x45f2f7(0x3de)]),_0xc97506=_0x300bd7['getSheetBySheetName'](_0x555ec9),_0x3b96b2=_0xc97506[_0x45f2f7(0x3bc)](),{startColumn:_0x4dbb7a,startRow:_0x2cf986,endColumn:_0x3fd781}=this['getRangeStartEndInfo'](_0x5542bd,_0xc97506),_0x2e36cc=_0x300bd7[_0x45f2f7(0x42d)](),_0x53512d=new _0xfc14f0(this);_0x53512d['setRange'](_0x2a85e5);const _0x4503b9=[],_0x94854c={};for(let _0x42f48a=_0x4dbb7a;_0x42f48a<=_0x3fd781;_0x42f48a++){const _0xdcc16=_0x3b96b2['getValue'](_0x2cf986,_0x42f48a),_0x23a068=this[_0x45f2f7(0x299)](_0x2a85e5,_0x42f48a),_0x54cfe5=this[_0x45f2f7(0x3f5)](_0x23a068);if(_0x54cfe5)_0x53512d['addField'](_0x54cfe5[_0x45f2f7(0x272)](),_0x54cfe5['getName']());else{const _0x58f99c=this[_0x45f2f7(0x240)]();let _0x283074=this[_0x45f2f7(0x31e)](_0xdcc16,_0x2e36cc,_0x94854c);_0x51f8a3(_0x283074)&&(_0x283074=_0x48470d[_0x45f2f7(0x2b9)](_0x283074['f'],Number(_0x283074['v'])));const _0x19861f=this['uniqueDataFieldName'](_0x283074,_0x42f48a),_0x224059=new _0x38d140(_0x58f99c,_0x19861f,_0x2cc304(0x3));_0x224059[_0x45f2f7(0x440)]=_0x23a068,this[_0x45f2f7(0x234)][_0x58f99c]=_0x224059,_0x53512d[_0x45f2f7(0x34f)](_0x58f99c,_0x19861f),_0x4503b9[_0x45f2f7(0x3ea)]({'index':_0x42f48a,'dataField':_0x224059});}}return{'updateDataFieldList':_0x4503b9,'collection':_0x53512d};}[_0x1a4bb1(0x2ae)](_0x356a90){const _0x411d84=_0x1a4bb1;return this['_host'][_0x411d84(0x436)]()[_0x411d84(0x42b)]+'\x20'+_0x1a93f2(_0x356a90);}[_0x1a4bb1(0x446)](_0x135139,_0x3683fa){const _0x2d3fdb=_0x1a4bb1;return _0x135139==null||_0x135139===''?this[_0x2d3fdb(0x2ae)](_0x3683fa):String(_0x135139);}['getCollection'](_0x1a3fe0){const _0x430c76=_0x1a4bb1;return this[_0x430c76(0x1d8)][_0x1a3fe0];}[_0x1a4bb1(0x423)](_0x5b3998,_0x54ab92,_0x3075e6,_0x4f2f5a){const _0x17d9d7=_0x1a4bb1;this[_0x17d9d7(0x1d8)][_0x5b3998]=_0x54ab92,_0x54ab92[_0x17d9d7(0x41f)](_0x3075e6),this[_0x17d9d7(0x3fe)][_0x17d9d7(0x2d4)]({'token':_0x5b3998,'type':Le[_0x17d9d7(0x3ef)],'dataRangeInfo':_0x3075e6,'targetCellInfo':_0x4f2f5a});}[_0x1a4bb1(0x233)](_0x5e6568,_0x22bd1a){const _0x471405=_0x1a4bb1,_0x43502f=this[_0x471405(0x2f4)](_0x5e6568),_0x68396f=_0x43502f[_0x471405(0x2f9)]();let _0x1dd4c1=0x0;for(const _0x461031 of _0x68396f){const _0x4429e8=_0x43502f[_0x471405(0x1d3)](_0x461031),_0x57a0ba=this[_0x471405(0x299)](_0x22bd1a,_0x1dd4c1);this[_0x471405(0x1f4)](_0x4429e8[_0x471405(0x440)],_0x57a0ba),_0x1dd4c1++;}}[_0x1a4bb1(0x2a4)](){return{'runtimeCellData':{},'dirtyRanges':{}};}[_0x1a4bb1(0x297)](_0x4c3ead,_0x2c4941){const _0x2f6d2f=_0x1a4bb1;if(this[_0x2f6d2f(0x2f4)](_0x4c3ead)){const _0x16f3d2=this[_0x2f6d2f(0x2cf)](_0x2c4941),_0xc0c96f=[];for(const _0x5c24b2 of _0x16f3d2)this[_0x2f6d2f(0x227)][_0x5c24b2]!==void 0x0&&_0xc0c96f[_0x2f6d2f(0x3ea)](this['rangeKeyMap'][_0x5c24b2]);const _0x29fd0b=this['getNoUsedDataFieldIds'](_0x4c3ead),_0x388d74=[],_0x3ebf95=new Set(_0xc0c96f);for(const _0x25fd60 of _0x29fd0b)_0x3ebf95['has'](_0x25fd60)||_0x388d74[_0x2f6d2f(0x3ea)](_0x25fd60);return _0x388d74;}}[_0x1a4bb1(0x27c)](_0x13f1c8,_0x5ba83f,_0x2dd2c7,_0x2f1549,_0x6fb776){const _0x273fdc=_0x1a4bb1;return _0x5ba83f&&_0x5ba83f[_0x273fdc(0x2fc)](_0x2f1549,_0x6fb776)?_0x5ba83f[_0x273fdc(0x2fc)](_0x2f1549,_0x6fb776):_0x2dd2c7&&_0x2dd2c7['getValue'](_0x2f1549,_0x6fb776)?_0x2dd2c7[_0x273fdc(0x2fc)](_0x2f1549,_0x6fb776):_0x13f1c8[_0x273fdc(0x2fc)](_0x2f1549,_0x6fb776);}[_0x1a4bb1(0x212)](_0x166229,_0x25adbb,_0x5b249b,_0x1201ab){const _0x435e1b=_0x1a4bb1,_0x3daed0=this[_0x435e1b(0x234)][_0x166229];if(!_0x3daed0)return;const {subUnitId:_0xff7857,range:_0xf829ac,unitId:_0x205c32}=_0x25adbb,_0x213b2b=this[_0x435e1b(0x41d)]['getUnit'](_0x205c32);if(!_0x213b2b){console[_0x435e1b(0x3f1)](_0x435e1b(0x1ed));return;}const _0x20606f=_0x213b2b[_0x435e1b(0x397)](_0xff7857),_0x2f04ed=_0x20606f[_0x435e1b(0x3bc)](),{arrayFormulaCellDataMatrix:_0x1275e6,unitDataMatrix:_0x5467e5}=_0x1201ab||{},{startRow:_0x3d24b5,startColumn:_0x4e72da,endRow:_0x2e5c90}=this[_0x435e1b(0x43d)](_0xf829ac,_0x20606f);_0x3daed0['reset']();const _0x300f91=_0x213b2b[_0x435e1b(0x42d)](),_0x2c7cca={},_0x331205=this[_0x435e1b(0x27c)](_0x2f04ed,_0x1275e6,_0x5467e5,_0x3d24b5,_0x4e72da+_0x5b249b);let _0x1f5f6b=this[_0x435e1b(0x31e)](_0x331205,_0x300f91,_0x2c7cca);_0x51f8a3(_0x1f5f6b)&&(_0x1f5f6b=_0x48470d[_0x435e1b(0x2b9)](_0x1f5f6b['f'],Number(_0x1f5f6b['v'])));const _0x3fb458=this[_0x435e1b(0x446)](_0x1f5f6b,_0x4e72da+_0x5b249b);_0x3daed0[_0x435e1b(0x3c2)](_0x3fb458);for(let _0x3e3610=_0x3d24b5+0x1;_0x3e3610<=_0x2e5c90;_0x3e3610++){const _0x5370b6=this['getMatrixValue'](_0x2f04ed,_0x1275e6,_0x5467e5,_0x3e3610,_0x4e72da+_0x5b249b);_0x3daed0[_0x435e1b(0x334)](this[_0x435e1b(0x31e)](_0x5370b6,_0x300f91,_0x2c7cca),_0x3e3610-0x1-_0x3d24b5);}}[_0x1a4bb1(0x374)](_0x2b2bbd,_0x1a1823,_0x272d95){const _0x3e7c8b=_0x1a4bb1,{subUnitId:_0x3afedd,range:_0x20363f,unitId:_0xe858ab}=_0x272d95,_0x46163e=this[_0x3e7c8b(0x41d)][_0x3e7c8b(0x228)](_0xe858ab);if(!_0x46163e){console['error'](_0x3e7c8b(0x1ed));return;}const _0x25f929=_0x46163e[_0x3e7c8b(0x397)](_0x3afedd),_0x2762f6=_0x25f929[_0x3e7c8b(0x3bc)](),{startRow:_0x21f2de,startColumn:_0x22905b,endRow:_0x5df645}=this['getRangeStartEndInfo'](_0x20363f,_0x25f929),_0x230c74=_0x46163e['getStyles'](),_0x4e63d1={};for(const {dataField:_0x17786d,index:_0x23b776}of _0x1a1823){_0x17786d[_0x3e7c8b(0x267)]();const _0x4a5d2=this['getMatrixValue'](_0x2762f6,void 0x0,void 0x0,_0x21f2de,_0x22905b+_0x23b776);let _0x4d2854=this[_0x3e7c8b(0x31e)](_0x4a5d2,_0x230c74,_0x4e63d1);_0x51f8a3(_0x4d2854)&&(_0x4d2854=_0x48470d[_0x3e7c8b(0x2b9)](_0x4d2854['f'],Number(_0x4d2854['v'])));const _0x198d15=this[_0x3e7c8b(0x446)](_0x4d2854,_0x22905b+_0x23b776);_0x17786d[_0x3e7c8b(0x3c2)](_0x198d15);}_0x2b2bbd[_0x3e7c8b(0x275)]();for(let _0x2bc0b8=_0x21f2de+0x1;_0x2bc0b8<=_0x5df645;_0x2bc0b8++)for(const {index:_0x21c49b,dataField:_0x1dde9b}of _0x1a1823){const _0x4051f5=_0x2762f6[_0x3e7c8b(0x2fc)](_0x2bc0b8,_0x22905b+_0x21c49b);_0x1dde9b[_0x3e7c8b(0x334)](this[_0x3e7c8b(0x31e)](_0x4051f5,_0x230c74,_0x4e63d1),_0x2bc0b8-0x1-_0x21f2de);}_0x2b2bbd[_0x3e7c8b(0x3e4)](_0x5df645-_0x21f2de);}['getRangeKeyList'](_0x3e2273){const _0x4f8042=_0x1a4bb1,{range:_0x2288f2}=_0x3e2273,{startColumn:_0x29b373,endColumn:_0x247ef9}=_0x2288f2,_0x4c606d=[];for(let _0x46a7cc=_0x29b373;_0x46a7cc<=_0x247ef9;_0x46a7cc++)_0x4c606d['push'](this[_0x4f8042(0x299)](_0x3e2273,_0x46a7cc));return _0x4c606d;}[_0x1a4bb1(0x31e)](_0x4e569f,_0xcd2a02,_0x1a8599){const _0x151dfb=_0x1a4bb1;if(_0x4e569f){const {s:_0x2cf734,v:_0x24ca3e,t:_0x13a997,p:_0x3e8571}=_0x4e569f;if(_0x3e8571)return Ri(_0x3e8571);const _0x7603aa=_0xcd2a02['get'](_0x2cf734);if(_0x7603aa&&_0x13a997===_0x335ccc[_0x151dfb(0x30a)]&&_0x7603aa['n']){const {pattern:_0x206ddf}=_0x7603aa['n'];_0x1a8599[_0x206ddf]||(_0x1a8599[_0x206ddf]=_0x48470d[_0x151dfb(0x1f5)](_0x206ddf));const _0x53124a=_0x1a8599[_0x206ddf],_0x1e8cfa=_0x53124a[_0x151dfb(0x211)];if(_0x53124a['isText'])return String(_0x24ca3e);if(_0x1e8cfa)return{'v':_0x24ca3e,'f':_0x206ddf};}if(_0x13a997===_0x335ccc[_0x151dfb(0x30a)])return Number(_0x24ca3e);if(_0x13a997===_0x335ccc[_0x151dfb(0x3ad)]||_0x13a997===_0x335ccc[_0x151dfb(0x37e)])return String(_0x24ca3e);if(_0x13a997===void 0x0){const _0x10d938=Number(_0x24ca3e);if(!Number['isNaN'](_0x10d938)&&String(_0x10d938)===_0x24ca3e)return _0x10d938;}return _0x24ca3e!=null?_0x24ca3e:null;}else return null;}[_0x1a4bb1(0x327)](_0x2aeb69){const _0x1c1968=_0x1a4bb1,{sheetName:_0x1ed214,range:_0x4c7a0d,unitId:_0x9ea766}=_0x2aeb69,_0x3f50e0=this[_0x1c1968(0x41d)]['getUnit'](_0x9ea766);if(!_0x3f50e0)return console['error'](_0x1c1968(0x1ed)),{'header':[],'data':[]};const _0x547c5f=_0x3f50e0[_0x1c1968(0x33d)](_0x1ed214),_0x5e6e74=_0x547c5f['getCellMatrix'](),{startRow:_0x34a805,startColumn:_0xea9491,endRow:_0x167a68,endColumn:_0x514d78}=this[_0x1c1968(0x43d)](_0x4c7a0d,_0x547c5f),_0x274b4d=_0x3f50e0[_0x1c1968(0x42d)](),_0x16a87f=[],_0x38396a=[],_0x12e561={};for(let _0x418932=_0x34a805;_0x418932<=_0x167a68;_0x418932++){const _0x58f1e7=[];for(let _0x3cee2d=_0xea9491;_0x3cee2d<=_0x514d78;_0x3cee2d++){const _0x438fc6=_0x5e6e74[_0x1c1968(0x2fc)](_0x418932,_0x3cee2d);_0x418932===_0x34a805?_0x16a87f[_0x1c1968(0x3ea)](_0x438fc6==null?null:String(_0x438fc6['v'])):_0x58f1e7[_0x1c1968(0x3ea)](this[_0x1c1968(0x31e)](_0x438fc6,_0x274b4d,_0x12e561));}_0x38396a[_0x1c1968(0x3ea)](_0x58f1e7);}return{'header':_0x16a87f,'data':_0x38396a};}[_0x1a4bb1(0x3b3)](){const _0x1774b0=_0x1a4bb1;return super[_0x1774b0(0x3b3)]();}[_0x1a4bb1(0x2d8)](_0x4e49c2){const _0x20044f=_0x1a4bb1;super[_0x20044f(0x2d8)](_0x4e49c2),this[_0x20044f(0x32f)]();}[_0x1a4bb1(0x32a)](){const _0x5a5794=_0x1a4bb1;super[_0x5a5794(0x32a)](),this[_0x5a5794(0x227)]={},this[_0x5a5794(0x3fe)]=null;}}const _i=_0x5f31da=>{const _0xd363ca=_0x1a4bb1,{targetCellInfo:_0xd8eb36}=_0x5f31da,{matrixCache:_0x2a875d,rangesCache:_0x4fb45b}=jo({'filter':_0xd363ca(0x39a),'row':_0xd363ca(0x3f4),'column':_0xd363ca(0x418),'values':'Values'},_0xd8eb36),_0x3ad04d=new _0x18ce59();return _0x2a875d[_0xd363ca(0x2c1)]((_0x58379f,_0x3ae04f,_0x4b3fc2)=>{const _0x3f3577=_0xd363ca;_0x3ad04d[_0x3f3577(0x22a)](_0x58379f,_0x3ae04f,_0x4b3fc2);}),{'matrix':_0x3ad04d,'rangesCache':_0x4fb45b};},st=_0x7b9b27=>{const _0x321d5e=_0x1a4bb1;let _0x25b1a4;if(_0x7b9b27!=null&&_0x7b9b27['v']||(_0x7b9b27==null?void 0x0:_0x7b9b27['v'])===0x0){_0x25b1a4||(_0x25b1a4={});const _0x4506d0=Bo(_0x7b9b27['v']);typeof _0x4506d0=='number'?_0x25b1a4['t']=_0x335ccc['NUMBER']:typeof _0x4506d0==_0x321d5e(0x406)&&(_0x25b1a4['t']=_0x335ccc[_0x321d5e(0x3ad)]),_0x25b1a4['v']=_0x4506d0;}return _0x25b1a4;},Fi=(_0x33e9f3,_0x3abdb3,_0x4f28ea)=>{const _0x4207ce=_0x1a4bb1;var _0xbbffc9,_0x2b4d04,_0x5ca049,_0x1654bc,_0x445402,_0x31c164,_0x5cc391,_0x2e9694,_0x2173f1,_0x3aeb79,_0x2dcb92,_0x4c918c;const {cornerView:_0x172020,rowView:_0x4a59bb,colView:_0xf50bc,dataView:_0x448402,pageView:_0x1af4eb,formatMap:_0x544ea2}=_0x33e9f3,{row:_0x1ca36c,col:_0x125412}=_0x3abdb3,_0x4791b8=new _0x18ce59();let _0x254265=_0x1ca36c,_0x1fcae0=_0x125412;Object[_0x4207ce(0x37f)](_0x1af4eb[_0x4207ce(0x2ea)])['forEach'](_0x23e8f7=>{const _0x32093f=_0x4207ce;Object[_0x32093f(0x37f)](_0x1af4eb[_0x32093f(0x2ea)][Number(_0x23e8f7)])[_0x32093f(0x34b)](_0x36b9c7=>{const _0x5cdced={..._0x1af4eb['data'][Number(_0x23e8f7)][Number(_0x36b9c7)]};_0x4791b8['setValue'](Number(_0x23e8f7)+_0x254265,Number(_0x36b9c7)+_0x1fcae0,st(_0x5cdced));});});const _0x29e3f1=Object[_0x4207ce(0x37f)](_0x1af4eb['data'])['length'];_0x254265+=_0x29e3f1+(_0x29e3f1?It:0x0);const _0x1b6d9b=_0x172020['getRowCount'](),_0x1fb5f3=_0x172020[_0x4207ce(0x25e)]();for(let _0x49bca9=0x0;_0x49bca9<_0x1b6d9b;_0x49bca9++)for(let _0x5a8863=0x0;_0x5a8863<_0x1fb5f3;_0x5a8863++){const _0x481fbb={...(_0x2b4d04=(_0xbbffc9=_0x172020[_0x4207ce(0x2ea)])==null?void 0x0:_0xbbffc9[_0x49bca9])==null?void 0x0:_0x2b4d04[_0x5a8863]};_0x481fbb&&((_0x5ca049=_0x4a59bb[_0x4207ce(0x246)][_0x5a8863])!=null&&_0x5ca049[_0x4207ce(0x27e)])&&_0x5a8863===_0x1fb5f3-0x1&&_0x49bca9===_0x1b6d9b-0x1&&(_0x481fbb['v']=''+_0x4f28ea[_0x4207ce(0x3f0)]),_0x4791b8[_0x4207ce(0x22a)](_0x49bca9+_0x254265,_0x5a8863+_0x1fcae0,st(_0x481fbb));}_0x1fcae0+=_0x1fb5f3;const _0x53f144=_0xf50bc['headerMap'],_0x4cb197=_0xf50bc['getLastRow']()>=0x0?_0xf50bc['getLastRow']()+0x1:0x0,_0x21d202=_0xf50bc['getLastCol']()>=0x0?_0xf50bc['getLastCol']()+0x1:0x0;for(let _0x42f322=0x0;_0x42f322<_0x21d202;_0x42f322++)for(let _0x364b04=0x0;_0x364b04<_0x4cb197;_0x364b04++){const _0x3deef2={...(_0x445402=(_0x1654bc=_0xf50bc[_0x4207ce(0x2ea)])==null?void 0x0:_0x1654bc[_0x42f322])==null?void 0x0:_0x445402[_0x364b04]},_0x229ba9=(_0x31c164=_0x53f144[_0x42f322])==null?void 0x0:_0x31c164[_0x4207ce(0x380)],_0x1c9163=_0x544ea2[_0x229ba9];_0x3deef2&&(_0x3deef2['v']=vt(_0x3deef2,_0x42f322===0x0&&((_0x5cc391=_0xf50bc[_0x4207ce(0x421)](_0x364b04+0x1))==null?void 0x0:_0x5cc391['isValue']),_0x1c9163,_0x4f28ea)),_0x4791b8[_0x4207ce(0x22a)](_0x42f322+_0x254265,_0x364b04+_0x1fcae0,st(_0x3deef2));}_0x254265+=_0x1b6d9b;const _0x22ebf1=_0x4a59bb['headerMap'],_0x3a13c3=_0x4a59bb[_0x4207ce(0x231)]()>=0x0?_0x4a59bb['getLastRow']()+0x1:0x0,_0x408171=_0x4a59bb[_0x4207ce(0x430)]()>=0x0?_0x4a59bb['getLastCol']()+0x1:0x0;for(let _0x4a358a=0x0;_0x4a358a<_0x3a13c3;_0x4a358a++)for(let _0x84762a=0x0;_0x84762a<_0x408171;_0x84762a++){const _0x970324={...(_0x2173f1=(_0x2e9694=_0x4a59bb['data'])==null?void 0x0:_0x2e9694[_0x4a358a])==null?void 0x0:_0x2173f1[_0x84762a]},_0x1979b1=(_0x3aeb79=_0x22ebf1[_0x84762a])==null?void 0x0:_0x3aeb79[_0x4207ce(0x380)],_0x537f6b=_0x544ea2[_0x1979b1];_0x970324&&(_0x970324['v']=vt(_0x970324,!0x1,_0x537f6b,_0x4f28ea)),_0x4791b8[_0x4207ce(0x22a)](_0x4a358a+_0x254265,_0x84762a+_0x125412,st(_0x970324));}const _0x5bd5e1=_0x448402[_0x4207ce(0x342)](),_0x2fd7f2=_0x448402[_0x4207ce(0x25e)]();for(let _0x52a9dd=0x0;_0x52a9dd<_0x5bd5e1;_0x52a9dd++)for(let _0x7d1909=0x0;_0x7d1909<_0x2fd7f2;_0x7d1909++){const _0x9e527c={...(_0x4c918c=(_0x2dcb92=_0x448402['data'])==null?void 0x0:_0x2dcb92[_0x52a9dd])==null?void 0x0:_0x4c918c[_0x7d1909]};_0x4791b8[_0x4207ce(0x22a)](_0x52a9dd+_0x254265,_0x7d1909+_0x1fcae0,st(_0x9e527c));}return _0x4791b8;},Di=_0x1800b1=>{const _0x2a704f=_0x1a4bb1,{view:_0x167322,targetCellInfo:_0x49523b,isEmpty:_0x6661de,textInfo:_0x528447}=_0x1800b1;if(_0x6661de)return _i(_0x1800b1);const {pageView:_0x1b91c8,cornerView:_0x5d8ae5,rowView:_0x22d6e8,colView:_0x35f7ce,dataView:_0x4268fc}=_0x167322,_0x3b10a7=ge(_0x49523b,_0x1b91c8,!0x0),_0x2394a0=_0x1b91c8[_0x2a704f(0x1e4)]>=0x0?_0x1b91c8[_0x2a704f(0x1e4)]+0x1:0x0,_0xbf0959=_0x5d8ae5[_0x2a704f(0x342)](),_0x1f3527=_0x5d8ae5['getColCount'](),_0x14bb10=_0x3b10a7['length']>0x0?It:0x0,_0x35215b=ge({'row':_0x49523b['row']+_0x2394a0+_0x14bb10,'col':_0x49523b['col']},_0x5d8ae5,!0x1,!0x1),_0x1323e4=ge({'row':_0x49523b[_0x2a704f(0x3dc)]+_0x2394a0+_0x14bb10+_0xbf0959,'col':_0x49523b[_0x2a704f(0x24a)]},_0x22d6e8,!0x1,!0x0),_0x3a77ff=ge({'row':_0x49523b[_0x2a704f(0x3dc)]+_0x2394a0+_0x14bb10,'col':_0x49523b['col']+_0x1f3527},_0x35f7ce,!0x1,!0x0),_0x5553cd=ge({'row':_0x49523b[_0x2a704f(0x3dc)]+_0x2394a0+_0x14bb10+_0xbf0959,'col':_0x49523b[_0x2a704f(0x24a)]+_0x1f3527},_0x4268fc,!0x1,!0x1),_0x788f9f={'rowRanges':_0x1323e4,'colRanges':_0x3a77ff,'cornerRanges':_0x35215b,'dataRanges':_0x5553cd,'pageRanges':_0x3b10a7};return{'matrix':Fi(_0x167322,_0x49523b,_0x528447),'rangesCache':_0x788f9f};};var Ni=Object['getOwnPropertyDescriptor'],Ui=(_0x11c9ea,_0x4d4beb,_0x49908f,_0x580940)=>{const _0xab2cc3=_0x1a4bb1;for(var _0x41f20a=_0x580940>0x1?void 0x0:_0x580940?Ni(_0x4d4beb,_0x49908f):_0x4d4beb,_0x4d484f=_0x11c9ea[_0xab2cc3(0x2ac)]-0x1,_0x18f16a;_0x4d484f>=0x0;_0x4d484f--)(_0x18f16a=_0x11c9ea[_0x4d484f])&&(_0x41f20a=_0x18f16a(_0x41f20a)||_0x41f20a);return _0x41f20a;},Je=(_0x25083d,_0x17de3d)=>(_0x527a6a,_0x47215e)=>_0x17de3d(_0x527a6a,_0x47215e,_0x25083d);let G=class extends _0x36ff7f{constructor(_0x310413,_0x2dd68c,_0x803050,_0x26b0e2,_0x3a2de1,_0x42a8be){const _0x4f9de0=_0x1a4bb1;super(),V(this,'_model',new Map()),V(this,_0x4f9de0(0x355),new Map()),V(this,_0x4f9de0(0x2e7),new Map()),V(this,_0x4f9de0(0x42e)),V(this,_0x4f9de0(0x2d9),new _0x55f0e1()),V(this,'collectionChange$',this['_collectionChange$'][_0x4f9de0(0x3b0)]()),V(this,_0x4f9de0(0x26b),new _0x55f0e1()),V(this,'viewData$',this[_0x4f9de0(0x26b)]['asObservable']()),V(this,'_fieldsCollectionChange$',new _0x55f0e1()),V(this,_0x4f9de0(0x340),this[_0x4f9de0(0x335)][_0x4f9de0(0x3b0)]()),V(this,_0x4f9de0(0x314),new Map()),V(this,_0x4f9de0(0x3c9),[]),V(this,'_queryingMap',new Map()),(this[_0x4f9de0(0x2a1)]=_0x310413,this[_0x4f9de0(0x41d)]=_0x2dd68c,this[_0x4f9de0(0x2b5)]=_0x803050,this['_configService']=_0x26b0e2,this[_0x4f9de0(0x2ff)]=_0x3a2de1,this[_0x4f9de0(0x2ec)]=_0x42a8be,this[_0x4f9de0(0x3da)]());}[_0x1a4bb1(0x436)](){const _0x5004eb=_0x1a4bb1;return this[_0x5004eb(0x42e)]?this[_0x5004eb(0x42e)]:Mi;}[_0x1a4bb1(0x40c)](_0xbad1c3){const _0x316eee=_0x1a4bb1;this[_0x316eee(0x42e)]=_0xbad1c3;}[_0x1a4bb1(0x233)](_0x2c6260){const _0x12c542=_0x1a4bb1;var _0x551b09;const {from:_0x1515a5,to:_0x1fe9ae,unitId:_0x31c3f3,fromRange:_0x898acf,toRange:_0x3cb197}=_0x2c6260;if(_0x1515a5&&_0x1fe9ae){const _0x22dff4=this['getDataFieldManager'](_0x31c3f3),_0x1d39de=this[_0x12c542(0x253)][_0x12c542(0x39e)](_0x31c3f3),_0x430967=(_0x551b09=this['_univerInstanceService'][_0x12c542(0x228)](_0x31c3f3))==null?void 0x0:_0x551b09[_0x12c542(0x397)](_0x1fe9ae[_0x12c542(0x386)]);if(!_0x1d39de||!_0x430967)return;const _0x13eaae=_0x430967==null?void 0x0:_0x430967['getName']();for(const [_0x1269e3,_0x3dd520]of _0x1d39de['entries']())for(const [_0x5cd248,_0x13d7bc]of _0x3dd520[_0x12c542(0x1e1)]()){const {sourceRangeInfo:_0x4607db}=_0x13d7bc;if(_0x4607db[_0x12c542(0x3c4)]===_0x31c3f3&&_0x4607db['subUnitId']===_0x1515a5[_0x12c542(0x386)]&&_0x41833c[_0x12c542(0x2bf)](_0x898acf,_0x4607db[_0x12c542(0x286)])){const _0x507157={'row':_0x4607db['range'][_0x12c542(0x296)]-_0x898acf[_0x12c542(0x296)],'col':_0x4607db[_0x12c542(0x286)][_0x12c542(0x3df)]-_0x898acf[_0x12c542(0x3df)]},_0x2f68a2={'unitId':_0x31c3f3,'subUnitId':_0x1fe9ae[_0x12c542(0x386)],'sheetName':_0x13eaae,'range':{'startRow':_0x3cb197[_0x12c542(0x296)]+_0x507157[_0x12c542(0x3dc)],'endRow':_0x3cb197['startRow']+_0x507157[_0x12c542(0x3dc)]+_0x4607db[_0x12c542(0x286)]['endRow']-_0x4607db[_0x12c542(0x286)]['startRow'],'startColumn':_0x3cb197[_0x12c542(0x3df)]+_0x507157[_0x12c542(0x24a)],'endColumn':_0x3cb197['startColumn']+_0x507157['col']+_0x4607db['range'][_0x12c542(0x1fe)]-_0x4607db['range'][_0x12c542(0x3df)]}};_0x22dff4[_0x12c542(0x233)](_0x5cd248,_0x2f68a2);const _0x2dbcea={..._0x13d7bc,'sourceRangeInfo':_0x2f68a2};this['_updateModelCache'](_0x31c3f3,_0x1fe9ae[_0x12c542(0x386)],_0x5cd248,_0x2dbcea),this[_0x12c542(0x2d4)]({'unitId':_0x31c3f3,'token':_0x5cd248,'type':Le[_0x12c542(0x36c)],'oldSourceRangeInfo':_0x4607db,'dataRangeInfo':_0x2f68a2,'targetCellInfo':_0x13d7bc[_0x12c542(0x202)]}),this[_0x12c542(0x3af)]({'unitId':_0x31c3f3,'subUnitId':_0x1fe9ae[_0x12c542(0x386)],'oldSubUnitId':_0x1269e3,'pivotTableId':_0x5cd248,'pivotTableConfig':_0x2dbcea,'collectionConfig':_0x22dff4[_0x12c542(0x3b3)]()});}}}}[_0x1a4bb1(0x2d4)](_0x129d6a){const _0x38a302=_0x1a4bb1;this[_0x38a302(0x2d9)]['next'](_0x129d6a);}['getDataFieldManager'](_0x43bcca){const _0xf1c5cb=_0x1a4bb1;let _0x4ef146=this[_0xf1c5cb(0x314)]['get'](_0x43bcca);return _0x4ef146||(_0x4ef146=new wi(this,this[_0xf1c5cb(0x41d)]),this[_0xf1c5cb(0x314)][_0xf1c5cb(0x1fc)](_0x43bcca,_0x4ef146)),_0x4ef146;}[_0x1a4bb1(0x2f4)](_0x532747,_0x49b1a3){const _0xda5f2f=_0x1a4bb1;return this[_0xda5f2f(0x265)](_0x532747)[_0xda5f2f(0x1d8)][_0x49b1a3];}[_0x1a4bb1(0x297)](_0x5867a6,_0x4ecf60,_0x41396c){const _0x1ab024=_0x1a4bb1;return this['getDataFieldManager'](_0x5867a6)[_0x1ab024(0x297)](_0x4ecf60,_0x41396c);}['_ensurePivotMap'](_0x5d84e8,_0x4ff956){const _0x150885=_0x1a4bb1;let _0x285e0b=this[_0x150885(0x253)][_0x150885(0x39e)](_0x5d84e8);_0x285e0b||(_0x285e0b=new Map(),this['_model'][_0x150885(0x1fc)](_0x5d84e8,_0x285e0b));let _0x2f475e=_0x285e0b[_0x150885(0x39e)](_0x4ff956);return _0x2f475e||(_0x2f475e=new Map(),_0x285e0b['set'](_0x4ff956,_0x2f475e)),_0x2f475e;}[_0x1a4bb1(0x22b)](_0x182b93,_0x382d46,_0x568280,_0x40e530){const _0x5b1408=_0x1a4bb1;this[_0x5b1408(0x439)](_0x182b93,_0x382d46)[_0x5b1408(0x1fc)](_0x568280,_0x40e530);}[_0x1a4bb1(0x1f3)](_0x33d08a,_0x26d026,_0x6c78aa){const _0x1afa98=_0x1a4bb1;var _0x5d7336,_0xacfcdc,_0x3a9311,_0x4dd3af;((_0xacfcdc=(_0x5d7336=this['_model']['get'](_0x33d08a))==null?void 0x0:_0x5d7336[_0x1afa98(0x39e)](_0x26d026))==null?void 0x0:_0xacfcdc['get'](_0x6c78aa))&&((_0x4dd3af=(_0x3a9311=this['_model']['get'](_0x33d08a))==null?void 0x0:_0x3a9311[_0x1afa98(0x39e)](_0x26d026))==null||_0x4dd3af[_0x1afa98(0x3e5)](_0x6c78aa));}[_0x1a4bb1(0x2f0)](_0x3e2dfe,_0xc4dddd){const _0x8d0143=_0x1a4bb1;this[_0x8d0143(0x355)][_0x8d0143(0x1fc)](_0x3e2dfe,_0xc4dddd);}['_deletePivotTableInstanceCache'](_0x3eb4d1){const _0x4f220b=_0x1a4bb1;this[_0x4f220b(0x355)][_0x4f220b(0x3e5)](_0x3eb4d1);}[_0x1a4bb1(0x1e6)](_0x5d7185,_0x2e88f9){const _0x1d9103=_0x1a4bb1;let _0x2a2194=this[_0x1d9103(0x2e7)]['get'](_0x5d7185);_0x2a2194||(_0x2a2194=new Map(),this[_0x1d9103(0x2e7)][_0x1d9103(0x1fc)](_0x5d7185,_0x2a2194));let _0x1421cf=_0x2a2194[_0x1d9103(0x39e)](_0x2e88f9);return _0x1421cf||(_0x1421cf=new Map(),_0x2a2194[_0x1d9103(0x1fc)](_0x2e88f9,_0x1421cf)),_0x1421cf;}[_0x1a4bb1(0x3af)](_0x1672f7){const _0xc2a87b=_0x1a4bb1,{unitId:_0xd39aba,subUnitId:_0x40541a,pivotTableId:_0x36a3fc,pivotTableConfig:_0x509077,collectionConfig:_0x31d485}=_0x1672f7,_0x1c2349={'unitId':_0xd39aba,'subUnitId':_0x40541a,'oldSubUnitId':_0x40541a,'pivotTableId':_0x36a3fc,'pivotTableConfig':_0x509077,'collectionConfig':_0x31d485};this[_0xc2a87b(0x2ff)][_0xc2a87b(0x3fc)](co['id'],_0x1c2349,{'onlyLocal':!0x0});}[_0x1a4bb1(0x305)](_0x3c9706,_0x370126,_0x2bee7f,_0x77ec60,_0x2e786c,_0x5d2826,_0x50b8f8,_0x39dd61=!0x1){const _0x45ef8d=_0x1a4bb1;var _0x11e371;this[_0x45ef8d(0x2ff)][_0x45ef8d(0x3fc)](Dt['id'],{'single':{'unitId':_0x3c9706,'subUnitId':_0x370126,'type':_0x2bee7f,'pivotTableId':_0x77ec60,'view':_0x2e786c,'pivotConfig':_0x5d2826},'collectionConfig':{[_0x3c9706]:_0x50b8f8}},{'onlyLocal':!0x0});const _0x2feb92=!!((_0x11e371=this[_0x45ef8d(0x2e6)](_0x77ec60))!=null&&_0x11e371['isEmpty']()),_0x579d1e=this[_0x45ef8d(0x1df)](_0x3c9706,_0x370126,_0x77ec60);_0x579d1e&&this[_0x45ef8d(0x22d)]({'view':_0x2e786c,'pivotTableId':_0x77ec60,'textInfo':this[_0x45ef8d(0x436)](),'isEmpty':_0x2feb92,'targetCellInfo':_0x579d1e[_0x45ef8d(0x202)]},_0x39dd61);}[_0x1a4bb1(0x22d)](_0x37341b,_0x55ddc3){const _0x51d900=_0x1a4bb1,{targetCellInfo:_0x379a3e,pivotTableId:_0x2c88d7}=_0x37341b,{unitId:_0x4729b3,subUnitId:_0xf0dcb7}=_0x379a3e,_0x4674e5=this[_0x51d900(0x1e6)](_0x4729b3,_0xf0dcb7),_0x2a4b82=_0x4674e5[_0x51d900(0x39e)](_0x2c88d7);let _0x3aec79,_0x2147e1;_0x2a4b82&&(_0x3aec79=_0x2a4b82[_0x51d900(0x2b1)],_0x2147e1=_0x2a4b82[_0x51d900(0x308)]);const {rangesCache:_0x26d117,matrix:_0x34d1ef}=Di(_0x37341b);_0x4674e5[_0x51d900(0x1fc)](_0x2c88d7,{'rangeCache':_0x26d117,'matrix':_0x34d1ef,'oldMatrix':_0x2147e1,'oldRangeCache':_0x3aec79}),_0x55ddc3||this[_0x51d900(0x26b)][_0x51d900(0x2b3)]({'unitId':_0x4729b3,'subUnitId':_0xf0dcb7,'pivotTableId':_0x2c88d7});}['addPivotTable'](_0xd222b0,_0x233980,_0x582f8e,_0x15663f,_0x10cabe){const _0x1b895f=_0x1a4bb1;this[_0x1b895f(0x22b)](_0xd222b0,_0x233980,_0x582f8e,_0x10cabe),this[_0x1b895f(0x2f0)](_0x582f8e,_0x15663f);}[_0x1a4bb1(0x3b2)](_0x3e1349,_0x1723bf,_0x4cac51){const _0xf8dc03=_0x1a4bb1,_0x21d56d=this[_0xf8dc03(0x265)](_0x3e1349);_0x21d56d[_0xf8dc03(0x1d6)](_0x4cac51)['forEach'](_0x38df01=>{_0x21d56d['deleteDataField'](_0x38df01);}),this[_0xf8dc03(0x3b5)](_0x3e1349,_0x4cac51),this['_deleteModelCache'](_0x3e1349,_0x1723bf,_0x4cac51),this['_deletePivotTableInstanceCache'](_0x4cac51);}['setPivotTable'](_0x4b0dc2,_0x6fcc3a,_0x233d2c,_0x66e59a){this['_updateModelCache'](_0x4b0dc2,_0x6fcc3a,_0x233d2c,_0x66e59a);}[_0x1a4bb1(0x1df)](_0x5a21cf,_0x5cf2ec,_0x54f7b2){const _0x405da8=_0x1a4bb1;var _0x308c85,_0x21d343;const _0x4b0fec=(_0x21d343=(_0x308c85=this[_0x405da8(0x253)][_0x405da8(0x39e)](_0x5a21cf))==null?void 0x0:_0x308c85[_0x405da8(0x39e)](_0x5cf2ec))==null?void 0x0:_0x21d343[_0x405da8(0x39e)](_0x54f7b2);if(_0x4b0fec)return _0x4b0fec;}[_0x1a4bb1(0x434)](_0x3f675b,_0x9f9664,_0x19c513){const _0x327b52=_0x1a4bb1;var _0x4b52ab,_0x1ae207;const _0x2ddf8c=(_0x1ae207=(_0x4b52ab=this[_0x327b52(0x253)][_0x327b52(0x39e)](_0x3f675b))==null?void 0x0:_0x4b52ab['get'](_0x9f9664))==null?void 0x0:_0x1ae207[_0x327b52(0x39e)](_0x19c513);if(_0x2ddf8c)return _0x2ddf8c[_0x327b52(0x2a8)];}[_0x1a4bb1(0x2e6)](_0x46b85a){const _0x3aadf8=_0x1a4bb1;return this[_0x3aadf8(0x355)][_0x3aadf8(0x39e)](_0x46b85a);}[_0x1a4bb1(0x325)](_0x2f5e64){const _0x50b490=_0x1a4bb1;this[_0x50b490(0x253)][_0x50b490(0x3e5)](_0x2f5e64);const _0x2f5372=this['_dataFieldManagerCollection']['get'](_0x2f5e64);_0x2f5372&&(_0x2f5372[_0x50b490(0x32a)](),this[_0x50b490(0x314)][_0x50b490(0x3e5)](_0x2f5e64)),this[_0x50b490(0x2e7)]['delete'](_0x2f5e64),this[_0x50b490(0x3c9)]['forEach'](_0x91b44a=>{const _0x2e7ac8=_0x50b490;_0x91b44a[_0x2e7ac8(0x325)](_0x2f5e64);});}[_0x1a4bb1(0x21a)](_0x50348f,_0x3e95f0,_0x40d5af,_0x5ce8a5){const _0xdd7fe2=_0x1a4bb1;return this[_0xdd7fe2(0x265)](_0x40d5af['unitId'])[_0xdd7fe2(0x21a)](_0x50348f,_0x3e95f0,_0x40d5af,_0x5ce8a5);}['createCollectionWithDataRange'](_0x50b9f9){const _0x1e57fc=_0x1a4bb1;return this[_0x1e57fc(0x265)](_0x50b9f9['unitId'])[_0x1e57fc(0x3ae)](_0x50b9f9);}['refreshData'](_0x2320f6,_0x28e52c,_0xab161e){const _0x336a7b=_0x1a4bb1;this['getDataFieldManager'](_0xab161e[_0x336a7b(0x3c4)])['refreshData'](_0x2320f6,_0x28e52c,_0xab161e);}[_0x1a4bb1(0x3b1)](_0x5d8965,_0x21b296){const _0x16c4bf=_0x1a4bb1;this[_0x16c4bf(0x265)](_0x5d8965)[_0x16c4bf(0x2c5)](_0x21b296);}[_0x1a4bb1(0x3b5)](_0x7e171b,_0x3fb23a){const _0x2ba0a7=_0x1a4bb1;this[_0x2ba0a7(0x265)](_0x7e171b)[_0x2ba0a7(0x260)](_0x3fb23a);}[_0x1a4bb1(0x2f1)](_0x2780e8,_0x35c0ac){const _0x10e1c4=_0x1a4bb1;var _0x28d7cf;return(_0x28d7cf=this['_model'][_0x10e1c4(0x39e)](_0x2780e8))==null?void 0x0:_0x28d7cf['get'](_0x35c0ac);}[_0x1a4bb1(0x320)](_0x52baaf){const _0x1ccc16=_0x1a4bb1;for(const [_0x337c92,_0x123450]of this[_0x1ccc16(0x253)][_0x1ccc16(0x1e1)]())for(const [_0x2153d5,_0x4b4066]of _0x123450[_0x1ccc16(0x1e1)]())if(_0x4b4066[_0x1ccc16(0x2bb)](_0x52baaf))return{'unitId':_0x337c92,'subUnitId':_0x2153d5};return null;}['sideEffectUpdateWorkerCache'](_0x2f427a,_0x107764,_0x4720e5,_0x38e472){const _0x74e5dd=_0x1a4bb1,_0x45c1f9=this[_0x74e5dd(0x1e6)](_0x2f427a,_0x107764);_0x38e472?_0x45c1f9[_0x74e5dd(0x1fc)](_0x4720e5,_0x38e472):_0x45c1f9[_0x74e5dd(0x3e5)](_0x4720e5),this['_viewData$'][_0x74e5dd(0x2b3)]({'unitId':_0x2f427a,'subUnitId':_0x107764,'pivotTableId':_0x4720e5});}[_0x1a4bb1(0x32a)](){const _0x3ad892=_0x1a4bb1;super[_0x3ad892(0x32a)]();}['getViewData'](_0x92e2fd,_0x4f1fe8,_0x5c6a4c){const _0x364f98=_0x1a4bb1;var _0x98a1e3,_0x414b32;const _0x331de0=(_0x414b32=(_0x98a1e3=this[_0x364f98(0x2e7)][_0x364f98(0x39e)](_0x92e2fd))==null?void 0x0:_0x98a1e3[_0x364f98(0x39e)](_0x4f1fe8))==null?void 0x0:_0x414b32[_0x364f98(0x39e)](_0x5c6a4c);return _0x331de0||null;}[_0x1a4bb1(0x31b)](_0x5ba054){const _0x229e1e=_0x1a4bb1;this[_0x229e1e(0x214)](_0x5ba054);}[_0x1a4bb1(0x214)](_0x39cb8d){const _0xa9e57a=_0x1a4bb1,{token:_0x5ac812,unitId:_0x5f0f48,subUnitId:_0x3769e9}=_0x39cb8d,_0x4968ed=_0x5f0f48+'-'+_0x3769e9+'-'+_0x5ac812;this['_queryingMap']['get'](_0x4968ed)&&clearTimeout(this[_0xa9e57a(0x35b)]['get'](_0x4968ed));const _0x1bb88f=setTimeout(()=>{const _0x2b91c1=_0xa9e57a;this[_0x2b91c1(0x218)](_0x39cb8d),this[_0x2b91c1(0x35b)][_0x2b91c1(0x3e5)](_0x4968ed);},Pi);this[_0xa9e57a(0x35b)][_0xa9e57a(0x1fc)](_0x4968ed,_0x1bb88f);}[_0x1a4bb1(0x218)](_0x23fb04){const _0x3e0641=_0x1a4bb1,{unitId:_0x1be512,subUnitId:_0x5be455,token:_0x191b91,type:_0x2de1b0,pivotConfig:_0xa492e1}=_0x23fb04,_0x2e6688=this[_0x3e0641(0x2e6)](_0x191b91),_0x1c9b86=_0x2e6688==null?void 0x0:_0x2e6688['query'](),_0x563704=_0xa492e1!=null?_0xa492e1:this['getPivotTableConfig'](_0x1be512,_0x5be455,_0x191b91);_0x563704&&(_0x563704[_0x3e0641(0x3d2)]=!!(_0x2e6688!=null&&_0x2e6688[_0x3e0641(0x3d2)]())),(_0x1c9b86||_0x2de1b0===B['Delete'])&&this[_0x3e0641(0x305)](_0x1be512,_0x5be455,_0x2de1b0,_0x191b91,_0x1c9b86,_0x563704,this[_0x3e0641(0x265)](_0x1be512)['toJSON']());}[_0x1a4bb1(0x3b3)](_0x3984c6){const _0x31d208=_0x1a4bb1,_0x57368c={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x31d208(0x265)](_0x3984c6)&&(_0x57368c[_0x31d208(0x1ff)][_0x3984c6]=this[_0x31d208(0x265)](_0x3984c6)[_0x31d208(0x3b3)]()),this[_0x31d208(0x253)][_0x31d208(0x39e)](_0x3984c6)){_0x57368c[_0x31d208(0x384)][_0x3984c6]={};const _0xbd0d39=this[_0x31d208(0x253)][_0x31d208(0x39e)](_0x3984c6);_0xbd0d39!=null&&_0xbd0d39[_0x31d208(0x3ce)]&&[..._0xbd0d39[_0x31d208(0x37f)]()][_0x31d208(0x34b)](_0x3373de=>{const _0x175c92=_0x31d208,_0x2494eb=_0xbd0d39[_0x175c92(0x39e)](_0x3373de);_0x2494eb!=null&&_0x2494eb[_0x175c92(0x3ce)]&&(_0x57368c[_0x175c92(0x384)][_0x3984c6][_0x3373de]={},[..._0x2494eb['keys']()]['forEach'](_0x40810b=>{const _0x264072=_0x175c92,_0x1ae1b1=_0x2494eb[_0x264072(0x39e)](_0x40810b);_0x1ae1b1&&(_0x57368c['pivotTableConfigs'][_0x3984c6][_0x3373de][_0x40810b]=_0x1ae1b1);}));});}return _0x57368c;}[_0x1a4bb1(0x2d8)](_0x3f4745){const _0x399ae9=_0x1a4bb1;var _0x2e2d45;const {dataFieldManagerConfig:_0x1adb62,pivotTableConfigs:_0x329fce}=_0x3f4745;_0x1adb62&&Object[_0x399ae9(0x37f)](_0x1adb62)[_0x399ae9(0x34b)](_0x43a707=>{const _0x3640cb=_0x399ae9;this[_0x3640cb(0x265)](_0x43a707)[_0x3640cb(0x2d8)](_0x1adb62[_0x43a707]);});const _0x4ff8b6=[];if(_0x329fce){const _0x4f5d39=(_0x2e2d45=this[_0x399ae9(0x2a1)]['get'](_0x1893a6)[_0x399ae9(0x309)](_0x2bc50f))!=null?_0x2e2d45:{},{ls:_0x2adccf,pbk:_0x2fb955}=_0x4f5d39,_0x508b98=go(so,_0x2adccf,_0x2fb955)[_0x399ae9(0x283)];Object[_0x399ae9(0x37f)](_0x329fce)[_0x399ae9(0x34b)](_0x185079=>{let _0x175a18=0x0;const _0x1474bd=_0x329fce[_0x185079];Object['keys'](_0x1474bd)['forEach'](_0x569396=>{const _0x21ff40=_0x58d2,_0x3ab2c5=_0x1474bd[_0x569396];Object[_0x21ff40(0x37f)](_0x3ab2c5)['forEach'](_0x10aa66=>{const _0x29a816=_0x21ff40,_0x4dcc06=_0x3ab2c5[_0x10aa66];if(_0x4dcc06){if(_0x175a18>=_0x508b98)return;_0x175a18++;const _0x3fc397=this[_0x29a816(0x265)](_0x185079),_0x2d5d85=_0x3fc397[_0x29a816(0x1d8)][_0x10aa66],_0x43b37f=_0x2d5d85[_0x29a816(0x2f9)]();let _0x40550c=0x0;const _0x2cf03f=[];for(const _0x21c603 of _0x43b37f){const _0x13f461=_0x2d5d85[_0x29a816(0x1d3)](_0x21c603);if(_0x1bb721(_0x13f461)){const _0x2031ef=_0x13f461[_0x29a816(0x2b2)](),_0x15408a=_0x2d5d85[_0x29a816(0x1d3)](_0x2031ef);_0x15408a&&_0x2cf03f[_0x29a816(0x3ea)]([_0x13f461,_0x15408a]);continue;}_0x3fc397[_0x29a816(0x212)](_0x21c603,_0x4dcc06['sourceRangeInfo'],_0x40550c),_0x40550c++;}_0x2cf03f[_0x29a816(0x34b)](([_0x8b8a32,_0x38f086])=>{_0x8b8a32['refreshGroupField'](_0x38f086);});const _0x4d111e=new _0x162344(_0x2d5d85);_0x4d111e['fromJSON'](_0x4dcc06[_0x29a816(0x2a8)]),this[_0x29a816(0x346)](_0x185079,_0x569396,_0x10aa66,_0x4d111e,_0x4dcc06);const _0x500169=_0x4d111e[_0x29a816(0x2ee)]();_0x4ff8b6[_0x29a816(0x3ea)]({'unitId':_0x185079,'subUnitId':_0x569396,'pivotTableId':_0x10aa66,'view':_0x500169['toJSON'](),'pivotConfig':_0x4dcc06,'type':B['Add']});const _0x367093=!!_0x4d111e[_0x29a816(0x3d2)](),_0x15f303={'view':_0x500169,'pivotTableId':_0x10aa66,'textInfo':this[_0x29a816(0x436)](),'isEmpty':_0x367093,'targetCellInfo':_0x4dcc06[_0x29a816(0x202)]};this[_0x29a816(0x22d)](_0x15f303,!0x1);}});});});}_0x1adb62&&Object['keys'](_0x1adb62)[_0x399ae9(0x34b)](_0x3eee31=>{const _0x17497f=_0x399ae9,_0x38481f=this['getDataFieldManager'](_0x3eee31);this[_0x17497f(0x335)][_0x17497f(0x2b3)](_0x38481f['collections']);}),this[_0x399ae9(0x2ff)][_0x399ae9(0x3fc)](Dt['id'],{'batch':_0x4ff8b6,'collectionConfig':_0x1adb62},{'onlyLocal':!0x0});}[_0x1a4bb1(0x3da)](){const _0x3ff441=_0x1a4bb1;this[_0x3ff441(0x323)](this[_0x3ff441(0x2ec)][_0x3ff441(0x344)]({'toJson':_0x2c32cb=>JSON[_0x3ff441(0x40b)](this['toJSON'](_0x2c32cb)),'parseJson':_0x3a7c67=>{const _0x1263c0=_0x3ff441;if(!_0x3a7c67)return{};try{return JSON[_0x1263c0(0x3d7)](_0x3a7c67);}catch{return{};}},'businesses':[_0x47d004[_0x3ff441(0x3de)]],'pluginName':ao,'onLoad':(_0x5e9e0c,_0xff994a)=>{const _0x59ce69=_0x3ff441;this[_0x59ce69(0x2d8)](_0xff994a);},'onUnLoad':_0x9c9c09=>{this['deleteUnitId'](_0x9c9c09);}}));}};G=Ui([Je(0x0,_0x772e00(_0x4ed77d)),Je(0x1,_0x41ab3d),Je(0x2,_0x772e00(_0x99ea5b)),Je(0x3,_0x1893a6),Je(0x4,_0x554f1b),Je(0x5,_0x772e00(_0x28a11b))],G);const Vi={0x0:{0x0:{'v':_0x1a4bb1(0x2c0),'s':oe}},0x2:{0x1:{'v':'','s':oe},0x2:{'v':'','s':oe},0x3:{'v':'column','s':oe},0x4:{'v':'','s':oe},0x5:{'v':'','s':oe}},0x3:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0x4:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0x5:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0x6:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0x7:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0x8:{0x0:{'v':_0x1a4bb1(0x3dc),'s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':_0x1a4bb1(0x2e0),'s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0x9:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0xa:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0xb:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0xc:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0xd:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}}},Lt={'rowRanges':[{'startRow':0x3,'endRow':0xd,'startColumn':0x0,'endColumn':0x0}],'colRanges':[{'startRow':0x2,'endRow':0x2,'startColumn':0x1,'endColumn':0x5}],'dataRanges':[{'startRow':0x3,'endRow':0xd,'startColumn':0x1,'endColumn':0x5}],'pageRanges':[{'startRow':0x0,'endRow':0x0,'startColumn':0x0,'endColumn':0x0}],'cornerRanges':[]},jo=(_0x187d62,_0x56865f)=>{const _0x406a55=_0x1a4bb1,_0x47f846=new _0x18ce59(),_0xa01cf3=new _0x18ce59(Vi),{row:_0x33ab05,col:_0x24dddc}=_0x56865f;_0xa01cf3[_0x406a55(0x2c1)]((_0x4eac6a,_0x105878,_0x43b372)=>{const _0x306e0c=_0x406a55;let _0x234860='';_0x43b372['v']===_0x306e0c(0x2c0)?_0x234860=_0x187d62[_0x306e0c(0x2c0)]:_0x43b372['v']==='row'?_0x234860=_0x187d62['row']:_0x43b372['v']===_0x306e0c(0x1e5)?_0x234860=_0x187d62[_0x306e0c(0x1e5)]:_0x43b372['v']===_0x306e0c(0x2e0)&&(_0x234860=_0x187d62[_0x306e0c(0x2e0)]),_0x47f846['setValue'](_0x4eac6a+_0x33ab05,_0x105878+_0x24dddc,{..._0x43b372,'v':_0x234860});});const _0x1b48ca=_0x5a29c7[_0x406a55(0x29b)](Lt);return Object[_0x406a55(0x37f)](Lt)[_0x406a55(0x34b)](_0x4839cc=>{const _0x1f1064=_0x406a55;_0x1b48ca[_0x4839cc]=Lt[_0x4839cc][_0x1f1064(0x28c)](_0x4ef473=>({..._0x4ef473,'startRow':_0x4ef473[_0x1f1064(0x296)]+_0x33ab05,'endRow':_0x4ef473[_0x1f1064(0x417)]+_0x33ab05,'startColumn':_0x4ef473['startColumn']+_0x24dddc,'endColumn':_0x4ef473[_0x1f1064(0x1fe)]+_0x24dddc}));}),{'matrixCache':_0x47f846,'rangesCache':_0x1b48ca};};function xi(_0x531c74,_0x7b9662){const _0x2b80ca=_0x1a4bb1;let _0x534026='';const _0x4c1310=this['getTextInfo']();switch(_0x7b9662){case _0x4729bf[_0x2b80ca(0x3ba)]:_0x534026=_0x4c1310[_0x2b80ca(0x249)]+_0x531c74;break;case _0x4729bf['count']:_0x534026=_0x4c1310['sheets-pivot.countName']+_0x531c74;break;case _0x4729bf[_0x2b80ca(0x447)]:_0x534026=_0x4c1310['sheets-pivot.countNumsName']+_0x531c74;break;case _0x4729bf[_0x2b80ca(0x43c)]:_0x534026=_0x4c1310[_0x2b80ca(0x22f)]+_0x531c74;break;case _0x4729bf['min']:_0x534026=_0x4c1310[_0x2b80ca(0x3ff)]+_0x531c74;break;case _0x4729bf[_0x2b80ca(0x32e)]:_0x534026=_0x4c1310[_0x2b80ca(0x362)]+_0x531c74;break;case _0x4729bf['stdDev']:_0x534026=_0x4c1310[_0x2b80ca(0x1ce)]+_0x531c74;break;case _0x4729bf[_0x2b80ca(0x268)]:_0x534026=_0x4c1310[_0x2b80ca(0x41c)]+_0x531c74;break;case _0x4729bf[_0x2b80ca(0x396)]:_0x534026=_0x4c1310[_0x2b80ca(0x1eb)]+_0x531c74;break;case _0x4729bf['var']:_0x534026=_0x4c1310[_0x2b80ca(0x2c2)]+_0x531c74;break;case _0x4729bf['varp']:_0x534026=_0x4c1310[_0x2b80ca(0x1f8)]+_0x531c74;break;default:_0x534026=_0x531c74;break;}return _0x534026;}function Ei(_0x3a4433,_0x19a0c0,_0x5f8da6,_0x30b6a5,_0x27381b){const _0x587e03=_0x1a4bb1;var _0x482ff3,_0x37916f,_0x557006,_0x6ea5a9,_0x592f99;const _0x19e7a9=_0x1bfeee(_0x3a4433,_0x19a0c0),{rangesInfo:_0x29e3d2,areaInfo:_0xac84bd,headerMap:_0xfefc31}=_0x27381b;if(!_0x29e3d2||!_0xac84bd||!_0xfefc31)return;const _0x15affc=Object[_0x587e03(0x37f)](_0x29e3d2)[_0x587e03(0x3e1)](_0x2a559e=>_0x29e3d2[_0x2a559e][_0x587e03(0x2f6)](_0xc9a039=>_0x41833c[_0x587e03(0x2bf)](_0xc9a039,_0x19e7a9))),_0x39e7f8=_0xac84bd;let _0x95b474,_0x48615e,_0x2464c7;if(_0x15affc===_0x587e03(0x441))_0x95b474=(_0x482ff3=_0x39e7f8==null?void 0x0:_0x39e7f8[_0x587e03(0x2eb)])==null?void 0x0:_0x482ff3[_0x3a4433],_0x48615e=(_0x37916f=_0xfefc31==null?void 0x0:_0xfefc31[_0x587e03(0x38f)])==null?void 0x0:_0x37916f[_0x19a0c0],_0x2464c7=_0x48615e==null?void 0x0:_0x48615e[_0x587e03(0x380)];else{if(_0x15affc===_0x587e03(0x30d))_0x95b474=(_0x557006=_0x39e7f8==null?void 0x0:_0x39e7f8[_0x587e03(0x2a7)])==null?void 0x0:_0x557006[_0x19a0c0],_0x48615e=(_0x6ea5a9=_0xfefc31['colHeaderMap'])==null?void 0x0:_0x6ea5a9[_0x3a4433+0x1+_0x19a0c0-_0x29e3d2[_0x587e03(0x30d)][0x0][_0x587e03(0x3df)]],_0x2464c7=_0x48615e==null?void 0x0:_0x48615e[_0x587e03(0x380)];else{if(_0x15affc===_0x587e03(0x20a))_0x95b474=(_0x592f99=_0x39e7f8==null?void 0x0:_0x39e7f8[_0x587e03(0x1cd)])==null?void 0x0:_0x592f99[_0x19a0c0],_0x2464c7=_0x95b474==null?void 0x0:_0x95b474[_0x587e03(0x380)];else{if(_0x15affc===_0x587e03(0x316)){const _0x2d6002=_0x5f8da6==null?void 0x0:_0x5f8da6['fi'];_0x2d6002!==void 0x0&&(_0x2464c7=_0x30b6a5[_0x587e03(0x34a)](_0x2d6002));}}}}return{'filterId':_0x2464c7,'info':_0x95b474,'data':_0x5f8da6,'headerInfo':_0x48615e};}function Oi(_0x2b1025,_0x4a0734,_0x2e6c56){const _0x4fee4e=_0x1a4bb1,_0x5b8d51=_0x2b1025[_0x4fee4e(0x32c)],_0xcacb8d=_0x5b8d51[_0x4fee4e(0x2f9)](),_0x2f8217=new Set();_0x2b1025[_0x4fee4e(0x2e9)](_0x4db2ce=>{const _0x3606fb=_0x4fee4e;_0x2f8217['add'](_0x4db2ce[_0x3606fb(0x331)]);});const _0x35565a=_0xcacb8d[_0x4fee4e(0x28c)](_0xd314ae=>{const _0x2068d5=_0x4fee4e,_0x4834fb=_0x5b8d51[_0x2068d5(0x1d3)](_0xd314ae);return{'checked':_0x2f8217[_0x2068d5(0x2bb)](_0xd314ae),'dataFieldId':_0x4834fb['id'],'id':_0x4834fb['id'],'name':_0x5b8d51['getDisplayName'](_0x4834fb['id']),'type':_0x4834fb[_0x2068d5(0x390)](),'pivotTableId':_0x4a0734};}),_0x57449a=[];_0x2b1025['iterateFieldByArea'](_0xf3a50c[_0x4fee4e(0x3f4)],_0x401052=>{const _0x566bc6=_0x4fee4e;_0x57449a['push']({'dataFieldId':_0x401052[_0x566bc6(0x331)],'tableFieldId':_0x401052[_0x566bc6(0x272)](),'displayName':_0x401052[_0x566bc6(0x34e)]()});});const _0x8cbca5=[];_0x2b1025['iterateFieldByArea'](_0xf3a50c['Column'],_0x2ca723=>{const _0x55e1ee=_0x4fee4e;_0x8cbca5[_0x55e1ee(0x3ea)]({'dataFieldId':_0x2ca723[_0x55e1ee(0x331)],'tableFieldId':_0x2ca723['getId'](),'displayName':_0x2ca723[_0x55e1ee(0x34e)]()});});const _0x5a1914=[];if(_0x2b1025[_0x4fee4e(0x41b)](_0xf3a50c[_0x4fee4e(0x1d9)],_0x469a4f=>{const _0x4bdb20=_0x4fee4e;_0x5a1914[_0x4bdb20(0x3ea)]({'dataFieldId':_0x469a4f[_0x4bdb20(0x331)],'tableFieldId':_0x469a4f['getId'](),'displayName':_0x469a4f[_0x4bdb20(0x34e)](),'format':_0x469a4f[_0x4bdb20(0x412)](),'subTotalType':_0x469a4f[_0x4bdb20(0x26e)]()});}),_0x5a1914['length']>0x1){const _0x321803=_0x2b1025['getValueIndex']();(_0x2b1025[_0x4fee4e(0x34d)]()?_0x8cbca5:_0x57449a)[_0x4fee4e(0x2c7)](_0x321803,0x0,{'dataFieldId':'','tableFieldId':_0x4fee4e(0x3fa),'displayName':'ΣValue'});}const _0x47dcee=[];_0x2b1025['iterateFieldByArea'](_0xf3a50c[_0x4fee4e(0x39a)],_0x4edd48=>{const _0x1c326c=_0x4fee4e;_0x47dcee[_0x1c326c(0x3ea)]({'dataFieldId':_0x4edd48[_0x1c326c(0x331)],'tableFieldId':_0x4edd48[_0x1c326c(0x272)](),'displayName':_0x4edd48['getDisplayName']()});});const _0x3f6f1f=_0x2e6c56[_0x4fee4e(0x2d2)];return{'sourceList':_0x35565a,'sourceRange':_0x3f6f1f,'rowFields':_0x57449a,'columnFields':_0x8cbca5,'valueFields':_0x5a1914,'filterFields':_0x47dcee,'positionInfo':_0x2e6c56[_0x4fee4e(0x202)]};}function fo(_0x8654f3,_0x36379d,_0x477f5d='',_0x3f5446={}){const _0x3a9861=_0x1a4bb1,_0x331823=_0x8654f3[_0x3a9861(0x39e)](_0x58b50b);for(const _0x48c3e5 in _0x36379d)if(Object[_0x3a9861(0x373)][_0x3a9861(0x288)][_0x3a9861(0x28b)](_0x36379d,_0x48c3e5)){const _0x3d9be1=_0x477f5d?_0x477f5d+'.'+_0x48c3e5:_0x48c3e5;typeof _0x36379d[_0x48c3e5]=='object'&&_0x36379d[_0x48c3e5]!==null&&!Array[_0x3a9861(0x1d1)](_0x36379d[_0x48c3e5])?fo(_0x8654f3,_0x36379d[_0x48c3e5],_0x3d9be1,_0x3f5446):_0x3f5446[_0x3d9be1]=_0x331823['t'](_0x3d9be1);}return _0x3f5446;}const Bt=_0x1ceaca=>{const _0x23a191=_0x1a4bb1;if(!_0x1ceaca)return[];const {rowRanges:_0x9abafe,colRanges:_0x5225b2,cornerRanges:_0x279ba6,dataRanges:_0x2f0689,pageRanges:_0x137af7}=_0x1ceaca,_0x368358=[..._0x5225b2,..._0x9abafe,..._0x2f0689,..._0x279ba6][_0x23a191(0x2c0)](_0x31bb40=>_0x31bb40[_0x23a191(0x296)]>=0x0&&_0x31bb40[_0x23a191(0x3df)]>=0x0&&_0x31bb40[_0x23a191(0x417)]>=0x0&&_0x31bb40['endColumn']>=0x0);let _0x17dd00=Number['MAX_SAFE_INTEGER'],_0x10193d=Number[_0x23a191(0x207)],_0x4d768f=Number[_0x23a191(0x370)],_0xfac14a=Number['MIN_SAFE_INTEGER'];for(let _0xe32df6=0x0;_0xe32df6<_0x368358[_0x23a191(0x2ac)];_0xe32df6++)_0x17dd00=Math[_0x23a191(0x39f)](_0x17dd00,_0x368358[_0xe32df6][_0x23a191(0x296)]),_0x10193d=Math[_0x23a191(0x43c)](_0x10193d,_0x368358[_0xe32df6][_0x23a191(0x417)]),_0x4d768f=Math[_0x23a191(0x39f)](_0x4d768f,_0x368358[_0xe32df6]['startColumn']),_0xfac14a=Math[_0x23a191(0x43c)](_0xfac14a,_0x368358[_0xe32df6][_0x23a191(0x1fe)]);return[..._0x137af7,{'startRow':_0x17dd00,'endRow':_0x10193d,'startColumn':_0x4d768f,'endColumn':_0xfac14a}];};function ki(_0x5ac2fb,_0x136264){const _0x203dc5=_0x1a4bb1,_0x41b875=_0x136264[_0x203dc5(0x282)][_0x203dc5(0x365)],{pivotTableId:_0x181976,unitId:_0x4e9d4a,subUnitId:_0x6b968f}=_0x136264;if(!_0x41b875)return;const _0x2698db=_0x5ac2fb[_0x203dc5(0x39e)](G),_0x20da78=_0x2698db[_0x203dc5(0x2e6)](_0x181976),_0xeb2892=_0x2698db[_0x203dc5(0x1df)](_0x4e9d4a,_0x6b968f,_0x181976);if(!_0x20da78||!_0xeb2892)return;const _0x78de90=_0x20da78[_0x203dc5(0x420)](_0x41b875[_0x203dc5(0x3b8)]);if(!(_0x78de90!=null&&_0x78de90[_0x203dc5(0x2ac)]))return;const _0xa2d948=_0xeb2892[_0x203dc5(0x2d2)],{unitId:_0x3b0966,subUnitId:_0x4b2b06,range:_0x19e779}=_0xa2d948;let _0x40d8b7=0x0;const _0x11135f=_0x20da78[_0x203dc5(0x32c)][_0x203dc5(0x2f9)]()[_0x203dc5(0x23a)]((_0x3c44e6,_0x44fd6b)=>{const _0x1c0216=_0x203dc5;var _0x5e830c;const _0x48eca4=(_0x5e830c=_0x20da78[_0x1c0216(0x244)](_0x44fd6b))==null?void 0x0:_0x5e830c[_0x1c0216(0x1e9)]();return _0x48eca4&&(_0x3c44e6[String(_0x40d8b7)]=_0x48eca4),_0x40d8b7++,_0x3c44e6;},{});return{'indexes':_0x78de90,'range':_0x19e779,'sourceUnitId':_0x3b0966,'sourceSubUnitId':_0x4b2b06,'formatMap':_0x11135f};}function Jo(_0x1f284b,_0x530ddd){const _0x3ca22f=_0x1a4bb1;if(!_0x1f284b||!_0x530ddd)return!0x0;const _0x5eeb94=_0x39ba9a(zo,$o),_0x5d7d24=new Function(_0x3ca22f(0x21c)+_0x5eeb94)()(_0x1f284b,_0x530ddd)[_0x3ca22f(0x223)],_0x45d656=_0x52bf03(_0x5d7d24,'sf',Ao);return!((_0x5d7d24==null?void 0x0:_0x5d7d24['rt'])===_0x451bf1[_0x3ca22f(0x3ed)]&&!_0x45d656);}function go(_0x4d9a0e,_0x53ae1b,_0x170d53){const _0x356009=_0x1a4bb1,_0x26360c={'count':_0x4d9a0e,'timeValid':!0x1};if(!_0x53ae1b||!_0x170d53)return _0x26360c;const _0x5e784c=_0x39ba9a(zo,$o),_0x5e0212=new Function(_0x356009(0x21c)+_0x5e784c)()(_0x53ae1b,_0x170d53);if(_0x5e0212!=null&&_0x5e0212[_0x356009(0x315)]){const _0x6d5df3=_0x5e0212[_0x356009(0x223)],_0x4d74b9=_0x52bf03(_0x6d5df3,'sf',Ao);return{'count':_0x1641fe(_0x6d5df3,_0x4d74b9,_0x356009(0x336),_0x4d9a0e,_0x4d9a0e,0x0),'timeValid':_0x4d74b9};}return _0x26360c;}function Ho(_0x1af236,_0x5d031d,_0x5f2673,_0x588236){const _0x4712a4=_0x1a4bb1,_0xe09121={'subUnitId':_0x5f2673,'unitId':_0x5d031d,'cellValue':_0x2d9341(_0x588236)},_0x281a76=_0x17808b(_0x1af236,_0xe09121);let _0x12d00f=!0x1;return new _0x18ce59(_0x281a76['cellValue'])[_0x4712a4(0x2c1)]((_0x10928d,_0x470fc8,_0x336720)=>{const _0x30ad5e=_0x4712a4;if(!_0x12d00f&&_0x336720&&(_0x336720[_0x30ad5e(0x30c)]||_0x336720['f']||_0x336720['p']||_0x336720['s']||_0x336720['si']||_0x336720['t']||_0x336720['v']))return _0x12d00f=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x324b45['id'],'params':_0x281a76},'setRangeValueRedoMutation':{'id':_0x324b45['id'],'params':_0xe09121},'shouldClear':_0x12d00f};}function Ai(_0x548283){const {row:_0x27908f,col:_0x2f09ec}=_0x548283,_0x453ee5={'startRow':_0x27908f,'endRow':_0x27908f,'startColumn':_0x2f09ec,'endColumn':_0x2f09ec},_0x47b8cc={'startRow':_0x27908f+0x2,'endRow':_0x27908f+0xe,'startColumn':_0x2f09ec,'endColumn':_0x2f09ec+0x6};return[_0x453ee5,_0x47b8cc];}function Wi(_0x44c500,_0x2c0128,_0x515c82){const _0x473ce1=_0x1a4bb1,{cornerView:_0x54d825,rowView:_0x30420e,colView:_0x5778bd,pageView:_0x1b6edf}=_0x44c500,{row:_0x5b60a9,col:_0x2b3f7b}=_0x2c0128;if(_0x515c82)return{'rowCount':bi+_0x5b60a9,'colCount':Si+_0x2b3f7b};const _0x14eb16=_0x1b6edf[_0x473ce1(0x1e4)]>-0x1?_0x1b6edf[_0x473ce1(0x1e4)]+0x1:0x0,_0x162abc=_0x1b6edf['lastCol']>-0x1?_0x1b6edf[_0x473ce1(0x264)]:0x0,_0x3fab18=_0x5b60a9+_0x14eb16+(_0x14eb16?0x1:0x0)+_0x54d825[_0x473ce1(0x333)]+_0x30420e[_0x473ce1(0x333)],_0x756df4=_0x2b3f7b+_0x162abc,_0x4907fe=_0x2b3f7b+_0x54d825[_0x473ce1(0x2a0)]+_0x5778bd[_0x473ce1(0x2a0)],_0x1ba3ad=Math['max'](_0x756df4,_0x4907fe);return{'rowCount':_0x3fab18,'colCount':_0x1ba3ad};}function Re(_0xd91764,_0xe661b9,_0x364330,_0x26f874){const _0x1efd66=_0x1a4bb1,{row:_0x10c068,col:_0x138d66,unitId:_0x58e6bd,subUnitId:_0x272cf6}=_0x364330,_0x54715f=Wi(_0xe661b9,{'row':_0x10c068,'col':_0x138d66},_0x26f874),_0x4d5517=_0xd91764[_0x1efd66(0x39e)](_0x41ab3d),_0x1b6a4d=_0x114ebc(_0x4d5517,{'unitId':_0x58e6bd,'subUnitId':_0x272cf6}),_0x4b6d87=[],_0x4ea9da=[];if(!_0x1b6a4d)return{'undos':_0x4ea9da,'redos':_0x4b6d87};const {worksheet:_0x23ff1f}=_0x1b6a4d,_0x12526f=_0x23ff1f[_0x1efd66(0x342)](),_0x382cb8=_0x23ff1f[_0x1efd66(0x3d3)]();return _0x12526f<_0x54715f[_0x1efd66(0x333)]&&(_0x4b6d87[_0x1efd66(0x3ea)]({'id':_0x320284['id'],'params':{'unitId':_0x58e6bd,'subUnitId':_0x272cf6,'range':{'startRow':_0x12526f,'endRow':_0x54715f[_0x1efd66(0x333)]-0x1,'startColumn':0x0,'endColumn':_0x382cb8-0x1}}}),_0x4ea9da[_0x1efd66(0x3ea)]({'id':_0x3c06dc['id'],'params':{'unitId':_0x58e6bd,'subUnitId':_0x272cf6,'range':{'startRow':_0x12526f,'endRow':_0x54715f[_0x1efd66(0x333)]-0x1,'startColumn':0x0,'endColumn':_0x382cb8-0x1}}})),_0x382cb8<_0x54715f[_0x1efd66(0x2a0)]&&(_0x4b6d87[_0x1efd66(0x3ea)]({'id':_0x551179['id'],'params':{'unitId':_0x58e6bd,'subUnitId':_0x272cf6,'range':{'startRow':0x0,'endRow':_0x12526f-0x1,'startColumn':_0x382cb8,'endColumn':_0x54715f[_0x1efd66(0x2a0)]-0x1}}}),_0x4ea9da[_0x1efd66(0x3ea)]({'id':_0x4a6d3c['id'],'params':{'unitId':_0x58e6bd,'subUnitId':_0x272cf6,'range':{'startRow':0x0,'endRow':_0x12526f-0x1,'startColumn':_0x382cb8,'endColumn':_0x54715f[_0x1efd66(0x2a0)]-0x1}}})),{'undos':_0x4ea9da,'redos':_0x4b6d87};}function Li(_0x354a73){const _0x422f32=_0x1a4bb1;let _0x41720a=0x0;for(let _0x25658d=0x0;_0x25658d<_0x354a73['length'];_0x25658d++){const _0x164c42=_0x354a73[_0x422f32(0x3a0)](_0x25658d);_0x164c42>=0x4e00&&_0x164c42<=0x9fff||_0x164c42>=0x3000&&_0x164c42<=0x303f||_0x164c42>=0xff00&&_0x164c42<=0xffef?_0x41720a+=0x2:_0x41720a+=0x1;}return _0x41720a;}function yo(_0x30d57c,_0x4b80ab,_0x598570,_0x1047af){const _0x47f9a5=_0x1a4bb1;var _0x1a184e,_0x31a69e,_0x36fe26,_0x3476d8;const {rowCount:_0x35a41b,colCount:_0x1a6a88,headerMap:_0x2d3360}=_0x30d57c,_0x190d08=0x64,_0x54ea0e=Math['min'](_0x35a41b,_0x190d08),_0x46dd33=Math['min'](_0x1a6a88,_0x190d08);let _0x1c2e1a='',_0x1b2fab=0x0;for(let _0x3cec24=0x0;_0x3cec24<_0x54ea0e;_0x3cec24++)for(let _0x55246e=0x0;_0x55246e<_0x46dd33;_0x55246e++){const _0x5207f6={...(_0x31a69e=(_0x1a184e=_0x30d57c[_0x47f9a5(0x2ea)])==null?void 0x0:_0x1a184e[_0x3cec24])==null?void 0x0:_0x31a69e[_0x55246e]},_0xfbfccb=(_0x36fe26=_0x2d3360[_0x3cec24])==null?void 0x0:_0x36fe26[_0x47f9a5(0x380)],_0x3b589d=_0x1047af[_0xfbfccb];let _0x456c19=_0x30d57c[_0x47f9a5(0x2fc)](_0x3cec24,_0x55246e);if(_0x5207f6){const _0x25e029=_0x598570?_0x55246e===0x0&&((_0x3476d8=_0x30d57c[_0x47f9a5(0x421)](_0x55246e+0x1))==null?void 0x0:_0x3476d8['isValue']):!0x1;_0x456c19=vt(_0x5207f6,_0x25e029,_0x3b589d,_0x4b80ab);}if(_0x456c19!==void 0x0){const _0x1a1478=Li(String(_0x456c19));_0x1b2fab<_0x1a1478&&(_0x1c2e1a=String(_0x456c19),_0x1b2fab=_0x1a1478);}}return _0x1c2e1a;}function Bi(_0x10cf13){const _0x47584a=_0x1a4bb1,{rowCount:_0x235a39,colCount:_0x44ac16}=_0x10cf13;let _0x58ac8a='',_0x4f1868=0x0;for(let _0x4112fd=_0x235a39-0x1;_0x4112fd>0x0&&_0x4112fd>_0x235a39-0x3;_0x4112fd--)for(let _0xe90d78=0x0;_0xe90d78<_0x44ac16;_0xe90d78++){const _0x1496c2=_0x10cf13[_0x47584a(0x2fc)](_0x4112fd,_0xe90d78);if(_0x1496c2!==void 0x0){const _0x4fe301=String(_0x1496c2)[_0x47584a(0x2ac)];_0x4f1868<_0x4fe301&&(_0x58ac8a=String(_0x1496c2),_0x4f1868=_0x4fe301);}}return _0x58ac8a;}function Gi(_0x5727a4){const _0x4e8d43=_0x1a4bb1,{rowCount:_0x5caaa9,colCount:_0x1b6d95}=_0x5727a4;let _0x499fdb='',_0x31e5d3=0x0;for(let _0x5cb1e9=0x0;_0x5cb1e9<_0x5caaa9;_0x5cb1e9++)for(let _0x410ef2=0x0;_0x410ef2<_0x1b6d95;_0x410ef2++){const _0x1eb523=_0x5727a4[_0x4e8d43(0x2fc)](_0x5cb1e9,_0x410ef2);if(_0x1eb523!==void 0x0){const _0xf5e60b=String(_0x1eb523)[_0x4e8d43(0x2ac)];_0x31e5d3<_0xf5e60b&&(_0x499fdb=String(_0x1eb523),_0x31e5d3=_0xf5e60b);}}return _0x499fdb;}function $i(_0x4ce63c,_0x1bc5b6){const _0x26d8a0=_0x1a4bb1,{rowFields:_0x44de0f,columnFields:_0x29a375,valueFields:_0x98c219,filterFields:_0x39e42e,dimension:_0x1e4640,measure:_0x3600c2}=_0x1bc5b6;for(const _0x1c4b52 of _0x44de0f){const _0x36c15b=_0x1e4640[_0x1c4b52];_0x36c15b&&_0x4ce63c[_0x26d8a0(0x244)](_0x36c15b[_0x26d8a0(0x331)])&&(_0x4ce63c[_0x26d8a0(0x32b)](_0x36c15b[_0x26d8a0(0x331)],_0xf3a50c[_0x26d8a0(0x3f4)],void 0x0,_0x1c4b52),_0x36c15b[_0x26d8a0(0x1d4)]&&_0x4ce63c[_0x26d8a0(0x30e)](_0x36c15b['id'],_0x36c15b[_0x26d8a0(0x1d4)]),_0x36c15b['sortInfo']&&_0x4ce63c[_0x26d8a0(0x298)](_0x36c15b['id'],_0x36c15b[_0x26d8a0(0x352)]),_0x36c15b['filterInfo']&&_0x4ce63c[_0x26d8a0(0x3c1)](_0x36c15b['id'],_0x36c15b[_0x26d8a0(0x269)]));}for(const _0x50c913 of _0x29a375){const _0x2a44aa=_0x1e4640[_0x50c913];_0x2a44aa&&_0x4ce63c[_0x26d8a0(0x244)](_0x2a44aa[_0x26d8a0(0x331)])&&(_0x4ce63c[_0x26d8a0(0x32b)](_0x2a44aa[_0x26d8a0(0x331)],_0xf3a50c[_0x26d8a0(0x418)],void 0x0,_0x50c913),_0x2a44aa[_0x26d8a0(0x352)]&&_0x4ce63c[_0x26d8a0(0x298)](_0x2a44aa['id'],_0x2a44aa[_0x26d8a0(0x352)]),_0x2a44aa[_0x26d8a0(0x269)]&&_0x4ce63c[_0x26d8a0(0x3c1)](_0x2a44aa['id'],_0x2a44aa[_0x26d8a0(0x269)]),_0x2a44aa[_0x26d8a0(0x1d4)]&&_0x4ce63c['renameField'](_0x2a44aa['id'],_0x2a44aa['displayName']));}for(const _0x58137d of _0x39e42e){const _0x438849=_0x1e4640[_0x58137d];_0x438849&&_0x4ce63c[_0x26d8a0(0x244)](_0x438849[_0x26d8a0(0x331)])&&(_0x4ce63c[_0x26d8a0(0x32b)](_0x438849['dataFieldId'],_0xf3a50c[_0x26d8a0(0x39a)],void 0x0,_0x58137d),_0x438849[_0x26d8a0(0x352)]&&_0x4ce63c[_0x26d8a0(0x298)](_0x438849['id'],_0x438849[_0x26d8a0(0x352)]),_0x438849[_0x26d8a0(0x269)]&&_0x4ce63c['setLabelFilterInfo'](_0x438849['id'],_0x438849[_0x26d8a0(0x269)]),_0x438849['displayName']&&_0x4ce63c[_0x26d8a0(0x30e)](_0x438849['id'],_0x438849[_0x26d8a0(0x1d4)]));}for(const _0x706567 of _0x98c219){const _0xf22a3=_0x3600c2[_0x706567];_0xf22a3&&_0x4ce63c['getDataFieldByDataFieldId'](_0xf22a3[_0x26d8a0(0x331)])&&(_0x4ce63c[_0x26d8a0(0x32b)](_0xf22a3[_0x26d8a0(0x331)],_0xf3a50c['Value'],void 0x0,_0x706567),_0xf22a3[_0x26d8a0(0x376)]!==void 0x0&&_0x4ce63c['setSubtotalType'](_0x706567,_0xf22a3[_0x26d8a0(0x376)]),_0xf22a3[_0x26d8a0(0x2b9)]&&_0x4ce63c['setFieldFormat'](_0x706567,_0xf22a3['format']),_0xf22a3[_0x26d8a0(0x1d4)]&&_0x4ce63c[_0x26d8a0(0x30e)](_0xf22a3['id'],_0xf22a3[_0x26d8a0(0x1d4)]));}const _0x54f75b=_0x1bc5b6[_0x26d8a0(0x226)];for(const {fieldId:_0x5b3140,filterInfo:_0x4afb82}of _0x54f75b)_0x4ce63c['setValueFilterInfo'](_0x5b3140,_0x4afb82);}function zi(_0xf80bed,_0x270eb0){const _0x4de377=_0x1a4bb1,_0x285023=[];_0x270eb0===_0xf3a50c[_0x4de377(0x3f4)]&&_0xf80bed[_0x4de377(0x41b)](_0xf3a50c[_0x4de377(0x3f4)],_0x2a01d2=>{const _0x48e2fb=_0x4de377;_0x285023[_0x48e2fb(0x3ea)](_0x2a01d2[_0x48e2fb(0x272)]());}),_0x270eb0===_0xf3a50c[_0x4de377(0x418)]&&_0xf80bed[_0x4de377(0x41b)](_0xf3a50c[_0x4de377(0x418)],_0x55e381=>{const _0x1fde12=_0x4de377;_0x285023[_0x1fde12(0x3ea)](_0x55e381[_0x1fde12(0x272)]());}),_0x270eb0===_0xf3a50c[_0x4de377(0x39a)]&&_0xf80bed['iterateFieldByArea'](_0xf3a50c[_0x4de377(0x39a)],_0x1b5601=>{const _0x1d6141=_0x4de377;_0x285023[_0x1d6141(0x3ea)](_0x1b5601['getId']());}),_0x270eb0===_0xf3a50c[_0x4de377(0x1d9)]&&_0xf80bed[_0x4de377(0x41b)](_0xf3a50c[_0x4de377(0x1d9)],_0x45d0af=>{const _0x700ec3=_0x4de377;_0x285023[_0x700ec3(0x3ea)](_0x45d0af['getId']());}),_0x270eb0===void 0x0&&_0xf80bed['iterateField'](_0x3479a4=>{const _0x31986a=_0x4de377;_0x285023[_0x31986a(0x3ea)](_0x3479a4[_0x31986a(0x272)]());});const _0x3a61f9=_0x285023[_0x4de377(0x2ac)];for(let _0x567028=_0x3a61f9-0x1;_0x567028>=0x0;_0x567028--)_0xf80bed[_0x4de377(0x38d)](_0x285023[_0x567028]);const _0x490899=_0xf80bed[_0x4de377(0x449)]();for(const _0x21bbfc in _0x490899)_0xf80bed[_0x4de377(0x270)](_0x21bbfc);}function ji(_0x3d9ce9,_0x4f041d){const _0x37254d=_0x1a4bb1,_0x3e7f97=new Date(_0x22fdc5(_0x4f041d)),_0x1ee1dd=new Date(_0x22fdc5(_0x3d9ce9)),_0x3249be=_0x3e7f97['getFullYear'](),_0x2c2db0=_0x1ee1dd[_0x37254d(0x293)](),_0x4fd4cb=_0x3e7f97[_0x37254d(0x263)](),_0x49aefa=_0x1ee1dd[_0x37254d(0x263)](),_0x5e89f7=_0x3e7f97[_0x37254d(0x33f)](),_0x5e9edb=_0x1ee1dd[_0x37254d(0x33f)](),_0xaefeff=_0x3249be===_0x2c2db0,_0x4516cf=_0xaefeff&&_0x4fd4cb===_0x49aefa;return _0xaefeff&&_0x4516cf&&!(_0x4516cf&&_0x5e89f7===_0x5e9edb)?_0x167867[_0x37254d(0x378)]:_0xaefeff&&!_0x4516cf?_0x167867[_0x37254d(0x3cc)]:_0x167867['Year'];}function qo(_0x48abc1,_0x44f6d6){const _0x3868b7=_0x1a4bb1,_0x4447c2=_0x48abc1[_0x3868b7(0x39e)](G)[_0x3868b7(0x436)]();let _0x586c05='';switch(_0x44f6d6){case _0x167867[_0x3868b7(0x378)]:_0x586c05=_0x4447c2['sheets-pivot.dateGroup.yearMonthDate'];break;case _0x167867[_0x3868b7(0x3cc)]:_0x586c05=_0x4447c2[_0x3868b7(0x29c)];break;case _0x167867['Year']:_0x586c05=_0x4447c2[_0x3868b7(0x1ee)];break;case _0x167867['Month']:_0x586c05=_0x4447c2[_0x3868b7(0x419)];break;case _0x167867['Quarter']:_0x586c05=_0x4447c2[_0x3868b7(0x31f)];break;case _0x167867[_0x3868b7(0x21f)]:_0x586c05=_0x4447c2[_0x3868b7(0x274)];break;case _0x167867['HourMinute']:_0x586c05=_0x4447c2[_0x3868b7(0x252)];break;case _0x167867[_0x3868b7(0x407)]:_0x586c05=_0x4447c2[_0x3868b7(0x326)];break;case _0x167867[_0x3868b7(0x1e3)]:_0x586c05=_0x4447c2[_0x3868b7(0x1f6)];break;case _0x167867['MonthDate']:_0x586c05=_0x4447c2[_0x3868b7(0x271)];break;case _0x167867['YearQuarter']:_0x586c05=_0x4447c2[_0x3868b7(0x213)];break;default:_0x586c05='';break;}return _0x586c05;}const Ko=_0x1a4bb1(0x242),To={};var Ji=Object[_0x1a4bb1(0x1c6)],Hi=(_0x561ad8,_0xf0bcd6,_0x417bc3,_0x2a794c)=>{const _0x5dd4df=_0x1a4bb1;for(var _0x29a5f1=_0x2a794c>0x1?void 0x0:_0x2a794c?Ji(_0xf0bcd6,_0x417bc3):_0xf0bcd6,_0x184271=_0x561ad8[_0x5dd4df(0x2ac)]-0x1,_0xe33ded;_0x184271>=0x0;_0x184271--)(_0xe33ded=_0x561ad8[_0x184271])&&(_0x29a5f1=_0xe33ded(_0x29a5f1)||_0x29a5f1);return _0x29a5f1;},at=(_0x5d083a,_0x33a95b)=>(_0x1b02b5,_0x3490d8)=>_0x33a95b(_0x1b02b5,_0x3490d8,_0x5d083a);let ve=class extends _0x36ff7f{constructor(_0x59181c,_0x2b3560,_0x57e44f,_0x30c825,_0xa25a84){const _0x21f30e=_0x1a4bb1;super(),V(this,'_model',new Map()),V(this,_0x21f30e(0x238),new Map()),V(this,_0x21f30e(0x27a),new Map()),V(this,'_pivotTableMatrixInfo',new Map()),V(this,'_configVersion$',new _0x55f0e1()),V(this,_0x21f30e(0x292),new _0x55f0e1()),V(this,_0x21f30e(0x345),this['_pivotInitCompleted$'][_0x21f30e(0x3b0)]()),V(this,_0x21f30e(0x20e),new _0x55f0e1()),V(this,_0x21f30e(0x2d6),this[_0x21f30e(0x20e)]['asObservable']()),V(this,_0x21f30e(0x42e),{}),V(this,'configVersion$',this['_configVersion$'][_0x21f30e(0x3b0)]()),(this[_0x21f30e(0x2a1)]=_0x59181c,this[_0x21f30e(0x2ff)]=_0x2b3560,this[_0x21f30e(0x41d)]=_0x57e44f,this[_0x21f30e(0x2ec)]=_0x30c825,this[_0x21f30e(0x1de)]=_0xa25a84,this[_0x21f30e(0x37a)](),this['_initUnitDisposed']());const _0xc6cd2=this[_0x21f30e(0x1de)]['getConfig'](Ko);(_0xc6cd2==null?void 0x0:_0xc6cd2[_0x21f30e(0x3b4)])===!0x0&&this[_0x21f30e(0x3da)]();}['_initUnitDisposed'](){const _0x462698=_0x1a4bb1;this['disposeWithMe'](this[_0x462698(0x41d)][_0x462698(0x409)](_0x47d004[_0x462698(0x3de)])[_0x462698(0x369)](_0x42f24c=>{const _0x4fb16b=_0x462698;this[_0x4fb16b(0x325)](_0x42f24c[_0x4fb16b(0x319)]());}));}[_0x1a4bb1(0x403)](){const _0x3b38cb=_0x1a4bb1;this[_0x3b38cb(0x292)][_0x3b38cb(0x2b3)](!0x0);}[_0x1a4bb1(0x37a)](){const _0x1b7d28=_0x1a4bb1,_0xa35bc3=fo(this[_0x1b7d28(0x2a1)],Lo,'',{});this[_0x1b7d28(0x42e)]=_0xa35bc3,this[_0x1b7d28(0x2ff)][_0x1b7d28(0x3fc)](uo['id'],{'textInfo':_0xa35bc3},{'onlyLocal':!0x0});}['getTextInfo'](){const _0x305a99=_0x1a4bb1;return this[_0x305a99(0x42e)];}['updateViewInfo'](_0x5c6159,_0x54f6cc,_0x4a5efc,_0x20345c,_0x4f76b0){const _0x78d4ab=_0x1a4bb1;this[_0x78d4ab(0x1c5)](_0x5c6159,_0x54f6cc,_0x4a5efc,_0x20345c),this['updatePivotTableRangeInfo'](_0x5c6159,_0x54f6cc,_0x4a5efc,_0x4f76b0);}[_0x1a4bb1(0x1df)](_0x592bfd,_0x503955,_0x5ebfb6){const _0x4c7e92=_0x1a4bb1;var _0x1eb68b;const _0x9913a1=(_0x1eb68b=this[_0x4c7e92(0x253)]['get'](_0x592bfd))==null?void 0x0:_0x1eb68b[_0x4c7e92(0x39e)](_0x503955);if(_0x9913a1)return _0x9913a1[_0x4c7e92(0x39e)](_0x5ebfb6);}[_0x1a4bb1(0x34c)](_0x96511,_0x1422d4){const _0xcfd3e=_0x1a4bb1,_0x291eca=this[_0xcfd3e(0x253)][_0xcfd3e(0x39e)](_0x96511);if(_0x291eca){for(const [_0x2d7604,_0x42c6b5]of _0x291eca[_0xcfd3e(0x1e1)]())for(const [_0x220639,_0x3b3c92]of _0x42c6b5[_0xcfd3e(0x1e1)]())if(_0x220639===_0x1422d4)return _0x3b3c92[_0xcfd3e(0x202)];}}[_0x1a4bb1(0x320)](_0x5ab9a7,_0x4b2873,_0x20abbf){const _0x598819=_0x1a4bb1,_0x35a42a=this['getPivotTableConfig'](_0x5ab9a7,_0x4b2873,_0x20abbf);return _0x35a42a==null?void 0x0:_0x35a42a[_0x598819(0x202)];}[_0x1a4bb1(0x2f1)](_0x272feb,_0x5ba15c){const _0x58d802=_0x1a4bb1;var _0x1addb4;return(_0x1addb4=this[_0x58d802(0x253)][_0x58d802(0x39e)](_0x272feb))==null?void 0x0:_0x1addb4['get'](_0x5ba15c);}[_0x1a4bb1(0x3a6)](_0x365a83,_0x2975fe,_0xcea72a,_0x1d910c){const _0xcece7c=_0x1a4bb1,_0x1337e1=this['_ensurePivotMap'](_0x365a83,_0x2975fe);_0x1d910c?_0x1337e1[_0xcece7c(0x1fc)](_0xcea72a,_0x1d910c):_0x1337e1['delete'](_0xcea72a),this['_pivotConfigChange$'][_0xcece7c(0x2b3)]({'unitId':_0x365a83,'subUnitId':_0x2975fe,'pivotTableId':_0xcea72a,'pivotTableConfig':_0x1d910c});}['getCollection'](_0x1d73f1,_0x2196f8){const _0x2a7311=_0x1a4bb1;var _0x4dd78d;return(_0x4dd78d=this[_0x2a7311(0x238)]['get'](_0x1d73f1))==null?void 0x0:_0x4dd78d[_0x2a7311(0x1d8)][_0x2196f8];}['updateCollectionConfig'](_0x5ca037,_0x519b09){const _0x3e1d07=_0x1a4bb1;this[_0x3e1d07(0x238)][_0x3e1d07(0x1fc)](_0x5ca037,_0x519b09),this[_0x3e1d07(0x250)][_0x3e1d07(0x2b3)](Math[_0x3e1d07(0x42f)]());}[_0x1a4bb1(0x439)](_0x308bc3,_0x59aa43){const _0xa67e46=_0x1a4bb1;let _0x2b3a71=this[_0xa67e46(0x253)][_0xa67e46(0x39e)](_0x308bc3);_0x2b3a71||(_0x2b3a71=new Map(),this[_0xa67e46(0x253)][_0xa67e46(0x1fc)](_0x308bc3,_0x2b3a71));let _0x281cb6=_0x2b3a71[_0xa67e46(0x39e)](_0x59aa43);return _0x281cb6||(_0x281cb6=new Map(),_0x2b3a71[_0xa67e46(0x1fc)](_0x59aa43,_0x281cb6)),_0x281cb6;}['_ensurePivotTableRangeInfo'](_0x2e25b0,_0xa53e){const _0xb4ef77=_0x1a4bb1;let _0x778a08=this[_0xb4ef77(0x27a)][_0xb4ef77(0x39e)](_0x2e25b0);_0x778a08||(_0x778a08=new Map(),this[_0xb4ef77(0x27a)][_0xb4ef77(0x1fc)](_0x2e25b0,_0x778a08));let _0x6d4213=_0x778a08[_0xb4ef77(0x39e)](_0xa53e);return _0x6d4213||(_0x6d4213=new Map(),_0x778a08[_0xb4ef77(0x1fc)](_0xa53e,_0x6d4213)),_0x6d4213;}[_0x1a4bb1(0x1c9)](_0x49ae9e,_0x634934){const _0x43e99b=_0x1a4bb1;let _0x2e4a33=this['_pivotTableMatrixInfo'][_0x43e99b(0x39e)](_0x49ae9e);_0x2e4a33||(_0x2e4a33=new Map(),this[_0x43e99b(0x383)][_0x43e99b(0x1fc)](_0x49ae9e,_0x2e4a33));let _0xd2d79b=_0x2e4a33['get'](_0x634934);return _0xd2d79b||(_0xd2d79b=new Map(),_0x2e4a33['set'](_0x634934,_0xd2d79b)),_0xd2d79b;}[_0x1a4bb1(0x23d)](_0x15e8c9,_0xd0a7d6,_0x1eda9b,_0x58eb7b){const _0x110179=_0x1a4bb1;var _0x473142;const _0xb544a4=this[_0x110179(0x387)](_0x15e8c9,_0xd0a7d6),_0x59c920=(_0x473142=_0xb544a4[_0x110179(0x39e)](_0x1eda9b))==null?void 0x0:_0x473142[_0x110179(0x437)];_0xb544a4[_0x110179(0x1fc)](_0x1eda9b,{'oldRangeInfo':_0x59c920,'rangeInfo':_0x58eb7b});}[_0x1a4bb1(0x1c5)](_0x2c10de,_0x3d8436,_0x21c812,_0x9222f2){const _0x49c815=_0x1a4bb1;var _0x57c24f;const _0x40c2b4=this['_ensurePivotTableMatrixInfo'](_0x2c10de,_0x3d8436),_0x636e18=(_0x57c24f=_0x40c2b4[_0x49c815(0x39e)](_0x21c812))==null?void 0x0:_0x57c24f[_0x49c815(0x1d5)];_0x40c2b4[_0x49c815(0x1fc)](_0x21c812,{'oldMatrix':_0x636e18,'matrix':_0x9222f2});}[_0x1a4bb1(0x24c)](_0x6d48fc,_0x46c22b,_0x24a347){const _0x40a591=_0x1a4bb1;var _0x4c7364,_0x43e731;return(_0x43e731=(_0x4c7364=this[_0x40a591(0x27a)][_0x40a591(0x39e)](_0x6d48fc))==null?void 0x0:_0x4c7364[_0x40a591(0x39e)](_0x46c22b))==null?void 0x0:_0x43e731[_0x40a591(0x39e)](_0x24a347);}[_0x1a4bb1(0x2f7)](_0x10a21b,_0x5e1fb3,_0x5593bb){const _0x39bc56=_0x1a4bb1;var _0x25ddca,_0x274bc3;return(_0x274bc3=(_0x25ddca=this[_0x39bc56(0x383)][_0x39bc56(0x39e)](_0x10a21b))==null?void 0x0:_0x25ddca[_0x39bc56(0x39e)](_0x5e1fb3))==null?void 0x0:_0x274bc3['get'](_0x5593bb);}[_0x1a4bb1(0x325)](_0x5c7dca){const _0x9a8dd2=_0x1a4bb1;this['_model'][_0x9a8dd2(0x3e5)](_0x5c7dca),this[_0x9a8dd2(0x238)][_0x9a8dd2(0x3e5)](_0x5c7dca);}[_0x1a4bb1(0x3c0)](_0xcf5320){const _0x57ae29=_0x1a4bb1,_0x159af3={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x57ae29(0x238)][_0x57ae29(0x39e)](_0xcf5320)&&(_0x159af3['dataFieldManagerConfig'][_0xcf5320]=this[_0x57ae29(0x238)][_0x57ae29(0x39e)](_0xcf5320)),this[_0x57ae29(0x253)][_0x57ae29(0x39e)](_0xcf5320)){_0x159af3[_0x57ae29(0x384)][_0xcf5320]={};const _0x4861df=this[_0x57ae29(0x253)][_0x57ae29(0x39e)](_0xcf5320);_0x4861df!=null&&_0x4861df['size']&&[..._0x4861df['keys']()][_0x57ae29(0x34b)](_0x31a537=>{const _0x447e4d=_0x57ae29,_0x5f3937=_0x4861df[_0x447e4d(0x39e)](_0x31a537);_0x5f3937!=null&&_0x5f3937[_0x447e4d(0x3ce)]&&(_0x159af3[_0x447e4d(0x384)][_0xcf5320][_0x31a537]={},[..._0x5f3937['keys']()][_0x447e4d(0x34b)](_0x1609ce=>{const _0x582926=_0x5f3937['get'](_0x1609ce);_0x582926&&(_0x159af3['pivotTableConfigs'][_0xcf5320][_0x31a537][_0x1609ce]=_0x582926);}));});}return _0x159af3;}[_0x1a4bb1(0x3da)](){const _0x1f2561=_0x1a4bb1;this['disposeWithMe'](this[_0x1f2561(0x2ec)][_0x1f2561(0x344)]({'toJson':_0x3a4dab=>JSON['stringify'](this[_0x1f2561(0x3c0)](_0x3a4dab)),'parseJson':_0x454b6e=>({}),'businesses':[_0x47d004[_0x1f2561(0x3de)]],'pluginName':ao,'onLoad':(_0x18fdad,_0x579b38)=>{},'onUnLoad':_0xcc0710=>{const _0x1774b2=_0x1f2561;this[_0x1774b2(0x325)](_0xcc0710);}}));}};ve=Hi([at(0x0,_0x772e00(_0x4ed77d)),at(0x1,_0x772e00(_0x554f1b)),at(0x2,_0x772e00(_0x41ab3d)),at(0x3,_0x772e00(_0x28a11b)),at(0x4,_0x772e00(_0x1893a6))],ve);var qi=Object['getOwnPropertyDescriptor'],Ki=(_0x3b588b,_0x293984,_0x4e207e,_0x46906c)=>{const _0x394529=_0x1a4bb1;for(var _0x5a513a=_0x46906c>0x1?void 0x0:_0x46906c?qi(_0x293984,_0x4e207e):_0x293984,_0xb4c900=_0x3b588b[_0x394529(0x2ac)]-0x1,_0x1aec8a;_0xb4c900>=0x0;_0xb4c900--)(_0x1aec8a=_0x3b588b[_0xb4c900])&&(_0x5a513a=_0x1aec8a(_0x5a513a)||_0x5a513a);return _0x5a513a;},rt=(_0x23ff81,_0x2bff1b)=>(_0x4a3563,_0x3970e0)=>_0x2bff1b(_0x4a3563,_0x3970e0,_0x23ff81);let Ne=class extends _0x36ff7f{constructor(_0x3a26a3,_0x111146,_0x594a28,_0x592bb1,_0x1c7061){const _0x3a9db7=_0x1a4bb1;super(),V(this,'_pivotRenderInfoCache',new Map()),V(this,_0x3a9db7(0x3e9),new Map()),V(this,_0x3a9db7(0x3d1),new _0x55f0e1()),V(this,_0x3a9db7(0x302),this['_markDirty$']['asObservable']()),V(this,'_viewUpdate$',new _0x55f0e1()),V(this,_0x3a9db7(0x404),this[_0x3a9db7(0x389)][_0x3a9db7(0x3b0)]()),V(this,_0x3a9db7(0x42e)),(this[_0x3a9db7(0x25b)]=_0x3a26a3,this[_0x3a9db7(0x2a1)]=_0x111146,this['_sheetsPivotTableConfigModel']=_0x594a28,this[_0x3a9db7(0x41d)]=_0x592bb1,this[_0x3a9db7(0x2e2)]=_0x1c7061,this[_0x3a9db7(0x37a)](),this[_0x3a9db7(0x1e7)]());}[_0x1a4bb1(0x1e7)](){const _0x35f495=_0x1a4bb1;this['disposeWithMe'](this[_0x35f495(0x41d)][_0x35f495(0x409)](_0x47d004[_0x35f495(0x3de)])[_0x35f495(0x369)](_0x87ae93=>{const _0x2a33c6=_0x35f495;this[_0x2a33c6(0x325)](_0x87ae93[_0x2a33c6(0x319)]());}));}[_0x1a4bb1(0x37a)](){const _0x5f487e=_0x1a4bb1;this[_0x5f487e(0x42e)]=fo(this[_0x5f487e(0x2a1)],Lo,'',{});}[_0x1a4bb1(0x2c6)](_0x561bba){const _0xfb1c65=_0x1a4bb1,{view:_0x400d74,unitId:_0x2652db,subUnitId:_0x462633,pivotTableId:_0x2ad483,type:_0x47cf91}=_0x561bba,_0x3f5f1c=this[_0xfb1c65(0x294)][_0xfb1c65(0x1df)](_0x2652db,_0x462633,_0x2ad483);if(!_0x400d74||!_0x3f5f1c||_0x47cf91===B[_0xfb1c65(0x3b7)])return;const {pageView:_0x196c9e,cornerView:_0x1832f6,rowView:_0x91a01a,colView:_0x5c99fa,dataView:_0x5d15ce}=_0x400d74,_0x56c806=_0x3f5f1c[_0xfb1c65(0x202)],_0x1c16a4=_0x3f5f1c[_0xfb1c65(0x3d2)],_0x403dbd=this[_0xfb1c65(0x200)](_0x2652db,_0x462633),_0x89be0=this[_0xfb1c65(0x310)](_0x2652db,_0x462633,_0x2ad483);if(_0x1c16a4)return this[_0xfb1c65(0x416)](_0x561bba,_0x403dbd,_0x56c806,_0x89be0);{const _0x50fd15=ge(_0x56c806,_0x196c9e,!0x0),_0x51faf0=_0x196c9e['lastRow']>=0x0?_0x196c9e[_0xfb1c65(0x1e4)]+0x1:0x0,_0xff5dcc=_0x1832f6[_0xfb1c65(0x342)](),_0x502e09=_0x1832f6[_0xfb1c65(0x25e)](),_0x17333f=_0x50fd15[_0xfb1c65(0x2ac)]>0x0?It:0x0,_0x344e95=ge({'row':_0x56c806[_0xfb1c65(0x3dc)]+_0x51faf0+_0x17333f,'col':_0x56c806[_0xfb1c65(0x24a)]},_0x1832f6,!0x1,!0x1),_0x1225dd=ge({'row':_0x56c806['row']+_0x51faf0+_0x17333f+_0xff5dcc,'col':_0x56c806[_0xfb1c65(0x24a)]},_0x91a01a,!0x1,!0x0),_0x403055=ge({'row':_0x56c806['row']+_0x51faf0+_0x17333f,'col':_0x56c806[_0xfb1c65(0x24a)]+_0x502e09},_0x5c99fa,!0x1,!0x0),_0x2d35d4=ge({'row':_0x56c806['row']+_0x51faf0+_0x17333f+_0xff5dcc,'col':_0x56c806[_0xfb1c65(0x24a)]+_0x502e09},_0x5d15ce,!0x1,!0x1);_0x89be0[_0xfb1c65(0x222)]={'rowRanges':_0x1225dd,'colRanges':_0x403055,'cornerRanges':_0x344e95,'dataRanges':_0x2d35d4,'pageRanges':_0x50fd15};const _0x3ff783=Ti(this[_0xfb1c65(0x2a1)],_0x400d74,_0x3f5f1c,this[_0xfb1c65(0x42e)]),{valueMatrix:_0x5da014,rowInfo:_0xe32f70,colInfo:_0x593fe7,cornerInfo:_0x2a261e,rowHeaderMap:_0x6f4ae5,colHeaderMap:_0x122253}=_0x3ff783;return _0x89be0[_0xfb1c65(0x247)]={'rowInfo':_0xe32f70,'colInfo':_0x593fe7,'cornerInfo':_0x2a261e},_0x89be0[_0xfb1c65(0x246)]={'rowHeaderMap':_0x6f4ae5,'colHeaderMap':_0x122253},_0x5da014[_0xfb1c65(0x34b)]((_0x5bca56,_0x43d045)=>{const _0x1e6d5c=_0xfb1c65;Object[_0x1e6d5c(0x37f)](_0x43d045)[_0x1e6d5c(0x34b)](_0x5202d4=>{const _0x4f008b=_0x1e6d5c,_0x3ce8c1=+_0x5202d4,_0x5d69fb=_0x5da014[_0x4f008b(0x2fc)](_0x5bca56,_0x3ce8c1);_0x403dbd['setValue'](_0x5bca56,_0x3ce8c1,_0x5d69fb);});}),this[_0xfb1c65(0x389)][_0xfb1c65(0x2b3)]({'unitId':_0x2652db,'subUnitId':_0x462633,'valueMatrix':_0x403dbd,'rangesCache':_0x89be0[_0xfb1c65(0x222)],'pivotTableId':_0x2ad483,'type':_0x561bba[_0xfb1c65(0x1e0)]}),this['_sheetsPivotTableConfigModel'][_0xfb1c65(0x27d)](_0x2652db,_0x462633,_0x2ad483,_0x403dbd,_0x89be0[_0xfb1c65(0x222)]),this['_exclusiveRangeService'][_0xfb1c65(0x3f3)](_0x2652db,_0x462633,Wt,this['_createExclusiveRange'](_0x89be0[_0xfb1c65(0x222)],_0x2ad483)),{'rangeCache':_0x89be0[_0xfb1c65(0x222)],'matrix':_0x403dbd};}}['_updateRenderEmptyCache'](_0x552eab,_0x5961a1,_0x3b2d96,_0x1ebce4){const _0xa14746=_0x1a4bb1,_0x537698=this[_0xa14746(0x25b)]['t'],{unitId:_0x542bd5,subUnitId:_0x167b4d,pivotTableId:_0x39554a}=_0x552eab,_0x428048={'filter':_0x537698(_0xa14746(0x23f)),'row':_0x537698('sheets-pivot.emptyPivot.row'),'column':_0x537698('sheets-pivot.emptyPivot.column'),'values':_0x537698('sheets-pivot.emptyPivot.values')},{matrixCache:_0x419bdd,rangesCache:_0x11c263}=jo(_0x428048,_0x3b2d96);return _0x419bdd[_0xa14746(0x2c1)]((_0x2772ee,_0x11e40a,_0x3a2ce2)=>{const _0x1a6a18=_0xa14746;_0x5961a1[_0x1a6a18(0x22a)](_0x2772ee,_0x11e40a,_0x3a2ce2);}),_0x1ebce4[_0xa14746(0x222)]=_0x11c263,this[_0xa14746(0x389)][_0xa14746(0x2b3)]({'unitId':_0x542bd5,'subUnitId':_0x167b4d,'valueMatrix':_0x5961a1,'rangesCache':_0x11c263,'pivotTableId':_0x39554a,'type':_0x552eab['type'],'isEmpty':!0x0}),this[_0xa14746(0x294)][_0xa14746(0x27d)](_0x542bd5,_0x167b4d,_0x39554a,_0x5961a1,_0x11c263),this[_0xa14746(0x2e2)][_0xa14746(0x3f3)](_0x542bd5,_0x167b4d,Wt,this['_createExclusiveRange'](_0x11c263,_0x39554a)),{'rangeCache':_0x1ebce4[_0xa14746(0x222)],'matrix':_0x5961a1};}[_0x1a4bb1(0x38c)](_0xc33a2d,_0x1481c8){const _0x51f5bb=_0x1a4bb1,_0x40d18d=[],_0x31d1d2=Bt(_0xc33a2d);for(const _0x31d569 of _0x31d1d2)_0x40d18d[_0x51f5bb(0x3ea)]({'groupId':_0x1481c8,'range':_0x31d569});return _0x40d18d;}[_0x1a4bb1(0x2b4)](_0x4f43de){const _0xb51da=_0x1a4bb1;var _0x455768,_0x2a852c,_0x261eef,_0x43f31c;const {pivotTableId:_0x1e7fb6,unitId:_0x2462f4,subUnitId:_0x1ce896}=_0x4f43de;if(!_0x1e7fb6||!_0x2462f4||!_0x1ce896)return;const _0x2f8238=this[_0xb51da(0x200)](_0x2462f4,_0x1ce896),_0x25bf49=(_0x2a852c=(_0x455768=this[_0xb51da(0x2c9)]['get'](_0x2462f4))==null?void 0x0:_0x455768[_0xb51da(0x39e)](_0x1ce896))==null?void 0x0:_0x2a852c[_0xb51da(0x39e)](_0x1e7fb6);if(_0x25bf49!=null&&_0x25bf49[_0xb51da(0x222)]){for(const _0x5d873f of Object['keys'](_0x25bf49[_0xb51da(0x222)]))_0x25bf49[_0xb51da(0x222)][_0x5d873f][_0xb51da(0x34b)](_0x11e232=>{const _0xa24c11=_0xb51da;for(let _0x2c5a7e=_0x11e232[_0xa24c11(0x296)];_0x2c5a7e<=_0x11e232[_0xa24c11(0x417)];_0x2c5a7e++)for(let _0x24f818=_0x11e232['startColumn'];_0x24f818<=_0x11e232[_0xa24c11(0x1fe)];_0x24f818++)_0x2f8238[_0xa24c11(0x43f)](_0x2c5a7e,_0x24f818);});}_0x25bf49&&((_0x43f31c=(_0x261eef=this['_pivotRenderInfoCache'][_0xb51da(0x39e)](_0x2462f4))==null?void 0x0:_0x261eef[_0xb51da(0x39e)](_0x1ce896))==null||_0x43f31c[_0xb51da(0x3e5)](_0x1e7fb6)),this[_0xb51da(0x389)][_0xb51da(0x2b3)]({'unitId':_0x2462f4,'subUnitId':_0x1ce896,'valueMatrix':_0x2f8238,'pivotTableId':_0x1e7fb6,'rangesCache':void 0x0,'type':_0x4f43de['type']}),this[_0xb51da(0x2e2)][_0xb51da(0x2a6)](_0x2462f4,_0x1ce896,Wt,_0x1e7fb6);}['_ensurePivotItemRenderInfoCache'](_0x2b35bd,_0x28f991,_0x5018ef){const _0x34c160=_0x1a4bb1;var _0x4ef8d8,_0x7f3e96,_0x4eb17e,_0x483e05,_0x13b5a7,_0x26b998;return this[_0x34c160(0x2c9)][_0x34c160(0x2bb)](_0x2b35bd)||this[_0x34c160(0x2c9)]['set'](_0x2b35bd,new Map()),(_0x4ef8d8=this['_pivotRenderInfoCache'][_0x34c160(0x39e)](_0x2b35bd))!=null&&_0x4ef8d8[_0x34c160(0x2bb)](_0x28f991)||(_0x7f3e96=this[_0x34c160(0x2c9)][_0x34c160(0x39e)](_0x2b35bd))==null||_0x7f3e96['set'](_0x28f991,new Map()),(_0x483e05=(_0x4eb17e=this[_0x34c160(0x2c9)][_0x34c160(0x39e)](_0x2b35bd))==null?void 0x0:_0x4eb17e[_0x34c160(0x39e)](_0x28f991))!=null&&_0x483e05[_0x34c160(0x2bb)](_0x5018ef)||(_0x26b998=(_0x13b5a7=this[_0x34c160(0x2c9)][_0x34c160(0x39e)](_0x2b35bd))==null?void 0x0:_0x13b5a7['get'](_0x28f991))==null||_0x26b998[_0x34c160(0x1fc)](_0x5018ef,{}),this[_0x34c160(0x2c9)][_0x34c160(0x39e)](_0x2b35bd)[_0x34c160(0x39e)](_0x28f991)[_0x34c160(0x39e)](_0x5018ef);}[_0x1a4bb1(0x200)](_0x536d9e,_0x2f316a){const _0x32cd34=_0x1a4bb1;var _0x4557ca,_0x579d72;return this['_pivotRenderValueMatrixCache'][_0x32cd34(0x2bb)](_0x536d9e)||this[_0x32cd34(0x3e9)][_0x32cd34(0x1fc)](_0x536d9e,new Map()),(_0x4557ca=this['_pivotRenderValueMatrixCache'][_0x32cd34(0x39e)](_0x536d9e))!=null&&_0x4557ca[_0x32cd34(0x2bb)](_0x2f316a)||(_0x579d72=this['_pivotRenderValueMatrixCache']['get'](_0x536d9e))==null||_0x579d72[_0x32cd34(0x1fc)](_0x2f316a,new _0x18ce59()),this[_0x32cd34(0x3e9)]['get'](_0x536d9e)['get'](_0x2f316a);}[_0x1a4bb1(0x435)](_0x5a987c,_0x4d6344,_0x41e7b5,_0x19b152){const _0x451fd2=_0x1a4bb1;var _0x3f585f,_0x38df83;const _0x28576e=(_0x38df83=(_0x3f585f=this[_0x451fd2(0x3e9)]['get'](_0x5a987c))==null?void 0x0:_0x3f585f['get'](_0x4d6344))==null?void 0x0:_0x38df83[_0x451fd2(0x2fc)](_0x41e7b5,_0x19b152);if(_0x28576e!=null)return _0x28576e;}['getPivotTableIdByCell'](_0x5460c1,_0x4f2ca2,_0x3d8958,_0x5edad8){const _0x525ffb=_0x1a4bb1;var _0x165fbe;const _0x3b124c=_0x1bfeee(_0x3d8958,_0x5edad8),_0x1a7132=(_0x165fbe=this[_0x525ffb(0x2c9)][_0x525ffb(0x39e)](_0x5460c1))==null?void 0x0:_0x165fbe[_0x525ffb(0x39e)](_0x4f2ca2);return _0x1a7132?Array['from'](_0x1a7132['keys']())[_0x525ffb(0x3e1)](_0x3f6623=>{const _0x13873b=_0x525ffb,_0x50e72b=_0x1a7132[_0x13873b(0x39e)](_0x3f6623),_0x5942e9=_0x50e72b==null?void 0x0:_0x50e72b[_0x13873b(0x222)];return _0x5942e9?Object[_0x13873b(0x37f)](_0x5942e9)['some'](_0x4ceb7c=>_0x5942e9[_0x4ceb7c][_0x13873b(0x2f6)](_0x5755a1=>_0x41833c['contains'](_0x5755a1,_0x3b124c))):!0x1;}):void 0x0;}['getIntersectsPivotTable'](_0x469a3b,_0x26058c,_0xb3b430){const _0x4ce892=_0x1a4bb1;var _0x28144c;const _0x22f638=(_0x28144c=this['_pivotRenderInfoCache']['get'](_0x469a3b))==null?void 0x0:_0x28144c['get'](_0x26058c),_0xad86b8=[];return _0x22f638&&Array['from'](_0x22f638['keys']())[_0x4ce892(0x34b)](_0x121c3d=>{const _0x578d15=_0x4ce892,_0x487237=_0x22f638[_0x578d15(0x39e)](_0x121c3d),_0x29c110=_0x487237==null?void 0x0:_0x487237[_0x578d15(0x222)];if(_0x29c110)for(const _0x1366e4 of Object[_0x578d15(0x2e0)](_0x29c110)){let _0x270ac5=!0x1;for(const _0x1eadbd of _0x1366e4)if(_0x41833c['intersects'](_0x1eadbd,_0xb3b430)){_0xad86b8[_0x578d15(0x3ea)](_0x121c3d),_0x270ac5=!0x0;break;}if(_0x270ac5)break;}}),_0xad86b8;}[_0x1a4bb1(0x358)](_0x23a15c,_0x4c92cb){const _0xb7accd=_0x1a4bb1;var _0x1b51c5,_0x29798b;return(_0x29798b=(_0x1b51c5=this[_0xb7accd(0x3e9)]['get'](_0x23a15c))==null?void 0x0:_0x1b51c5[_0xb7accd(0x39e)](_0x4c92cb))!=null?_0x29798b:new _0x18ce59();}[_0x1a4bb1(0x33c)](_0x242ddf,_0x540b50){const _0x1897e9=_0x1a4bb1;var _0x45037f;return(_0x45037f=this['_pivotRenderInfoCache'][_0x1897e9(0x39e)](_0x242ddf))==null?void 0x0:_0x45037f[_0x1897e9(0x39e)](_0x540b50);}[_0x1a4bb1(0x258)](_0x1a98c1,_0x3466dd,_0x1f448b){const _0x453cf1=_0x1a4bb1;var _0x330915,_0x409ec6;return(_0x409ec6=(_0x330915=this[_0x453cf1(0x2c9)]['get'](_0x1a98c1))==null?void 0x0:_0x330915[_0x453cf1(0x39e)](_0x3466dd))==null?void 0x0:_0x409ec6['get'](_0x1f448b);}[_0x1a4bb1(0x325)](_0x82ff01){const _0xbc1385=_0x1a4bb1;this['_pivotRenderInfoCache'][_0xbc1385(0x3e5)](_0x82ff01),this[_0xbc1385(0x3e9)]['delete'](_0x82ff01);}[_0x1a4bb1(0x3a1)](_0x17bd98,_0xc90c34){const _0x583a62=_0x1a4bb1;this[_0x583a62(0x3d1)][_0x583a62(0x2b3)]({'unitId':_0x17bd98,'subUnitId':_0xc90c34});}};Ne=Ki([rt(0x0,_0x772e00(_0x58b50b)),rt(0x1,_0x772e00(_0x4ed77d)),rt(0x2,_0x772e00(ve)),rt(0x3,_0x772e00(_0x41ab3d)),rt(0x4,_0x772e00(_0x1f541a))],Ne);var Yi=Object[_0x1a4bb1(0x1c6)],Qi=(_0x38ca2b,_0x35a194,_0x4c05d7,_0x2dea72)=>{const _0x16a05d=_0x1a4bb1;for(var _0x20580f=_0x2dea72>0x1?void 0x0:_0x2dea72?Yi(_0x35a194,_0x4c05d7):_0x35a194,_0x5a8144=_0x38ca2b[_0x16a05d(0x2ac)]-0x1,_0x3d4cdc;_0x5a8144>=0x0;_0x5a8144--)(_0x3d4cdc=_0x38ca2b[_0x5a8144])&&(_0x20580f=_0x3d4cdc(_0x20580f)||_0x20580f);return _0x20580f;},Mo=(_0x5f0764,_0x2b63d5)=>(_0xb63ca9,_0x2cb48)=>_0x2b63d5(_0xb63ca9,_0x2cb48,_0x5f0764);let ie=class extends _0x36ff7f{constructor(_0x21ed6c,_0x169222){const _0x19b1e2=_0x1a4bb1;super(),V(this,_0x19b1e2(0x280),new _0x494024({'PIVOT_PERFORM_CHECK':be})),V(this,'interceptor',new _0x421eb3({'PIVOT_MUTATION_GENERATE':Go})),(this[_0x19b1e2(0x3f7)]=_0x21ed6c,this[_0x19b1e2(0x23e)]=_0x169222,this[_0x19b1e2(0x428)]());}[_0x1a4bb1(0x428)](){this['_initViewModelBySheetInterceptor']();}[_0x1a4bb1(0x237)](_0x100c2c){const _0x17b73a=_0x1a4bb1;return this[_0x17b73a(0x280)][_0x17b73a(0x1dc)](be)(!0x1,_0x100c2c);}['_initViewModelBySheetInterceptor'](){const _0x38d7dd=_0x1a4bb1;this[_0x38d7dd(0x323)](this['_sheetInterceptorService']['intercept'](_0x44882f[_0x38d7dd(0x318)],{'priority':0xc8,'effect':_0x2c3ce5[_0x38d7dd(0x1d9)]|_0x2c3ce5['Style'],'handler':(_0xe960ad,_0x14cf11,_0x1d3329)=>{const _0xe6ff05=_0x38d7dd,{row:_0x295744,col:_0xe92aa2,unitId:_0x27ff52,subUnitId:_0x273777,workbook:_0x489f75}=_0x14cf11,_0x3a7e73=this['_sheetsPivotTableAdaptorModel'][_0xe6ff05(0x435)](_0x27ff52,_0x273777,_0x295744,_0xe92aa2);if(!_0x3a7e73)return _0x1d3329(_0xe960ad);const _0x43c57a={..._0xe960ad};(_0x3a7e73['v']||_0x3a7e73['v']===0x0)&&(_0x43c57a['v']=_0x3a7e73['v']),_0x3a7e73['t']&&(_0x43c57a['t']=_0x3a7e73['t']);const _0x18f23c=(typeof(_0xe960ad==null?void 0x0:_0xe960ad['s'])=='string'?_0x489f75[_0xe6ff05(0x42d)]()['get'](_0xe960ad==null?void 0x0:_0xe960ad['s']):_0xe960ad==null?void 0x0:_0xe960ad['s'])||{},_0x46df21=_0x489f75[_0xe6ff05(0x42d)]()[_0xe6ff05(0x39e)](_0x3a7e73['s']),_0xb31f68={..._0x46df21,..._0x18f23c};_0x46df21!=null&&_0x46df21['n']&&(_0xb31f68['n']=_0x46df21['n']);const _0x2dfbaa=_0x489f75['getStyles']()[_0xe6ff05(0x22a)](_0xb31f68);return _0x43c57a['s']=_0x2dfbaa,(_0x3a7e73[_0xe6ff05(0x1c7)]===_0xfeaa95[_0xe6ff05(0x2b7)]||_0x3a7e73[_0xe6ff05(0x1c7)]===_0xfeaa95['Expand'])&&(_0x43c57a[_0xe6ff05(0x444)]={},_0x43c57a['fontRenderExtension'][_0xe6ff05(0x2bd)]=li),_0x1d3329(_0x43c57a);}}));}};ie=Qi([Mo(0x0,_0x772e00(_0x3956fc)),Mo(0x1,_0x772e00(Ne))],ie);function Nt(_0x20f4fa,_0x2f851c){const _0x3b4869=_0x1a4bb1;switch(_0x2f851c){case _0xf3a50c[_0x3b4869(0x1d9)]:return _0x20f4fa[_0x3b4869(0x262)];case _0xf3a50c['Filter']:return _0x20f4fa[_0x3b4869(0x43b)];case _0xf3a50c['Row']:return _0x20f4fa['rowFields'];case _0xf3a50c[_0x3b4869(0x418)]:return _0x20f4fa[_0x3b4869(0x448)];default:return[];}}function $e(_0x7cdb2b,_0x25fe7c){const _0x273ebc=_0x1a4bb1;return _0x7cdb2b[_0x273ebc(0x2ed)][_0x25fe7c]||_0x7cdb2b[_0x273ebc(0x25c)][_0x25fe7c];}function Zi(_0x4a206c,_0x4ff9d5){const _0x3176d3=_0x1a4bb1,{area:_0x33f26f,fieldJson:_0x4fb826,index:_0x211b62}=_0x4ff9d5;_0x33f26f===_0xf3a50c[_0x3176d3(0x1d9)]?_0x4a206c[_0x3176d3(0x2ed)][_0x4fb826['id']]=_0x4fb826:_0x4a206c['dimension'][_0x4fb826['id']]=_0x4fb826,Nt(_0x4a206c,_0x33f26f)['splice'](_0x211b62,0x0,_0x4fb826['id']);}function Xi(_0x2062ed,_0x1da5cd){const _0x251df6=_0x1a4bb1,{area:_0xf5fde6,fieldId:_0x4fec,index:_0x1b480b}=_0x1da5cd;_0xf5fde6===_0xf3a50c[_0x251df6(0x1d9)]?delete _0x2062ed[_0x251df6(0x2ed)][_0x4fec]:delete _0x2062ed[_0x251df6(0x25c)][_0x4fec],Nt(_0x2062ed,_0xf5fde6)[_0x251df6(0x2c7)](_0x1b480b,0x1);}function es(_0x14302c,_0x4bb859){const _0x1c5979=_0x1a4bb1,{fieldId:_0x4c7cd6,name:_0x3183ec}=_0x4bb859,_0x53ab0b=$e(_0x14302c,_0x4c7cd6);_0x53ab0b&&(_0x53ab0b[_0x1c5979(0x1d4)]=_0x3183ec);}function ts(_0x3aa253,_0x2d36a9){const _0x298087=_0x1a4bb1,{fieldId:_0x31e3f1,collapse:_0x26f582,item:_0x2c962a}=_0x2d36a9;_0x2c962a!==void 0x0?(_0x3aa253[_0x298087(0x368)][_0x31e3f1]=_0x3aa253['collapseInfo'][_0x31e3f1]||{},_0x3aa253[_0x298087(0x368)][_0x31e3f1][_0x2c962a]=_0x26f582):_0x3aa253[_0x298087(0x368)][_0x31e3f1]=_0x26f582;}function os(_0x4fc764,_0xa06a4a){const _0x56efa9=_0x1a4bb1,{fieldId:_0x4743e5,format:_0xb2f01}=_0xa06a4a,_0x13f718=$e(_0x4fc764,_0x4743e5);_0x13f718&&(_0x13f718[_0x56efa9(0x2b9)]=_0xb2f01);}function ns(_0x3c4595,_0x143833){const _0x3f2537=_0x1a4bb1,{fieldId:_0x55f7be,filterInfo:_0xbbe3b0}=_0x143833,_0x1b4e4b=$e(_0x3c4595,_0x55f7be);_0x1b4e4b&&(_0x1b4e4b[_0x3f2537(0x269)]=_0xbbe3b0);}function is(_0x2bf4c8,_0x11bc03){const _0x2b7e52=_0x1a4bb1,{fieldId:_0x35dbf5,filterInfo:_0xad812b}=_0x11bc03,_0x5c64f5=_0x2bf4c8[_0x2b7e52(0x226)][_0x2b7e52(0x2c0)](_0x424c0c=>_0x424c0c[_0x2b7e52(0x2f5)]!==_0x35dbf5);_0xad812b&&_0x5c64f5[_0x2b7e52(0x3ea)]({'fieldId':_0x35dbf5,'filterInfo':_0xad812b}),_0x2bf4c8['valueFilter']=_0x5c64f5;}function ss(_0x173b45,_0x264cad){const _0xc92b40=_0x1a4bb1,{fieldId:_0x5df3c7,subtotalType:_0x1cd4dd}=_0x264cad,_0x59e7a9=$e(_0x173b45,_0x5df3c7);_0x59e7a9&&(_0x59e7a9[_0xc92b40(0x376)]=_0x1cd4dd);}function as(_0x1b01e6,_0x47bcd8){const _0x33c35d=_0x1a4bb1,{fieldId:_0x205548,oldArea:_0x483e2e,area:_0x1d8344,oldIndex:_0x3a7bcb,index:_0x2e13cd}=_0x47bcd8,_0x29667e=_0x483e2e!==_0xf3a50c[_0x33c35d(0x1d9)]&&_0x1d8344===_0xf3a50c[_0x33c35d(0x1d9)],_0x36b4b5=_0x483e2e===_0xf3a50c[_0x33c35d(0x1d9)]&&_0x1d8344!==_0xf3a50c[_0x33c35d(0x1d9)];if(_0x29667e||_0x36b4b5){const _0x40f66d=$e(_0x1b01e6,_0x205548);_0x40f66d&&(_0x29667e?(delete _0x1b01e6['dimension'][_0x205548],_0x1b01e6[_0x33c35d(0x2ed)][_0x205548]=_0x40f66d):(delete _0x1b01e6[_0x33c35d(0x2ed)][_0x205548],_0x1b01e6[_0x33c35d(0x25c)][_0x205548]=_0x40f66d));}const _0x3ece25=Nt(_0x1b01e6,_0x483e2e),_0x2d8e7a=Nt(_0x1b01e6,_0x1d8344);_0x3ece25[_0x33c35d(0x2c7)](_0x3a7bcb,0x1),_0x2d8e7a[_0x33c35d(0x2c7)](_0x2e13cd,0x0,_0x205548);}function _0x4fac(){const _0xf3143c=['Delete','tuple','sheet.mutation.send-pivot-view-local','average','getViewData','getCellMatrix','addPivotTableWithConfig','subTotalStyle','sheet.mutation.remove-pivot-table','_toJSON','setLabelFilterInfo','setName','setOptions','unitId','sheets-pivot.cellDateGroupDisplay.yearMonth','collectionConfig','valueIndex','sheet.mutation.set-pivot-value-filter','needSameDeleteModel','onQueryStart','filterId','YearMonth','resetArea','size','getFieldInfo','fetchThroughInterceptors','_markDirty$','isEmpty','getColumnCount','Set','Max\x20of\x20','forRow','parse','pushUndoRedo','NotNumber','_initSnapshot','sheet.command.add-pivot-table-with-config','row','_generateUniqueVersion','UNIVER_SHEET','startColumn','rangeType','find','sheet.command.set-pivot-filter','NotName','setDataRecordCount','delete','sheet.mutation.rename-pivot-field','sheet.command.set-pivot-field-setting','registerCallbackWithEvent','_pivotRenderValueMatrixCache','push','registerRefRange','sheet.mutation.send-pivot-data-local','NO_COMMERCIAL','getMatrixFromRunTimeData','add','sheets-pivot.value','error','setPivotTableConfig','addExclusiveRange','Row','getDataFieldByRangeKey','sheets-pivot.cellDateGroupDisplay.month','_sheetInterceptorService','sheets-pivot.blank','floor','PivotMultipleValueId','getFilterInfo','executeCommand','startCollectChangeset','_host','sheets-pivot.minName','sheet.mutation.send-init-pivot-text-local','single','setDateType','setPivotInitCompleted','viewUpdate$','AddPivotTableWithConfig','string','Hour','sheet.command.set-pivot-collapse','getTypeOfUnitDisposed$','generateMutationsByRanges','stringify','setTextInfo','intercept','fieldIds','_refRangeService','StdDev\x20of\x20','Existing','getFormat','setPivotCollapse','iterateFieldDim','sheet.command.move-pivot-table','_updateRenderEmptyCache','endRow','Column','sheets-pivot.dateGroup.month','setRangeKeyMap','iterateFieldByArea','sheets-pivot.stdDevpName','_univerInstanceService','version','setRange','getIndexesByPathStr','getHeaderMapItem','dateType','addCollection','panel','RemovePivotField','movePivotField','UpdatePivotSource','_init','Quarter','Count\x20of\x20','sheets-pivot.columnName','_sheetsPivotDataSourceModel','getStyles','_textInfo','random','getLastCol','sheet.command.add-pivot-field','setDirty','_dataSyncPrimaryController','getPivotTableModelConfig','getPivotTableCellData','getTextInfo','oldRangeInfo','disposableCollection','_ensurePivotMap','getPivotDisplayConfig','filterFields','max','getRangeStartEndInfo','paths','realDeleteValue','rangeKey','rowRanges','sheet.command.update-date-group','YearQuarter','fontRenderExtension','slice','uniqueDataFieldName','countNums','columnFields','getValueFilterInfos','sheet.command.move-pivot-field','getRefRangeMutationsByMoveRange','updatePivotTableMatrixInfo','getOwnPropertyDescriptor','pbt','dataStyle','_ensurePivotTableMatrixInfo','originTargetInfo','getFieldFormat','449150GSQhSU','cornerInfo','sheets-pivot.stdDevName','New','_refRangeHandle','isArray','setConfig','getFieldById','displayName','oldMatrix','getNoUsedDataFieldIds','options','collections','Value','value','deleteField','fetchThroughAsyncInterceptors','hasField','_configService','getPivotTableConfig','type','entries','#eceeff','Minute','lastRow','column','_ensureViewDataMap','_initUnitDisposed','SetPivotCollapse','getformat','getMatrix','sheets-pivot.sumName','getSheetId','workbook\x20is\x20not\x20found','sheets-pivot.dateGroup.year','addPivotField','sheet.mutation.pivot-update-field-position','cornerStyle','getTableFieldById','_deleteModelCache','updateRangeKeyMap','getFormatInfo','sheets-pivot.dateGroup.minute','interceptor','sheets-pivot.varpName','SetSortInfo','74778CpYzuy','defineProperty','set','getTextSize','endColumn','dataFieldManagerConfig','_ensurePivotItemRenderValueMatrixCache','addDataFieldWithoutUnitInfo','targetCellInfo','UpdateValuePosition','setFieldFormat','SetPivotFilter','sheet.command.reset-pivot-fields-config','MIN_SAFE_INTEGER','onStarting','triggerDirtyFeature','cornerRanges','pivotPerformCheck','DrillDown','level','_pivotConfigChange$','PIVOT_MUTATION_GENERATE','dataRangeInfo','isDate','refreshDataField','sheets-pivot.dateGroup.yearQuarter','updateDirtyPivotTable','registerCommand','_sheetsPivotTableService','from','queryDirtyPivotTable','shouldClear','addCollectionByJSON','sheets-pivot.cellDateGroupDisplay.yearMonthDate','return\x20','_featureCalculationManagerService','SetValuePivotFilter','Date','foreach','_subjectCollectionChange','rangesInfo','message','Month','getAutoFitColumnsMutations','valueFilter','rangeKeyMap','getUnit','StdDevp\x20of\x20','setValue','_updateModelCache','setRangeValueRedoMutation','updateViewData','collection','sheets-pivot.maxName','setPivotFilter','getLastRow','date','handleMoveRange','dataFields','setSourceName','ResetPivotTable','getPivotPerformCheck','_collectionConfigModel','endCollectChangeset','reduce','Add','Subtotal','updatePivotTableRangeInfo','_sheetsPivotTableAdaptorModel','sheets-pivot.emptyPivot.filter','createDataFieldId','SetOptions','sheets-pivot.config','sheets-pivot.subTotal','getDataFieldByDataFieldId','isBottomTotal','headerMap','areaInfo','valuePosition','sheets-pivot.averageName','col','getCellRaw','getPivotTableRangeInfo','UpdateSource','MovePivotField','68vIjdCt','_configVersion$','NORMAL','sheets-pivot.dateGroup.hourMinute','_model','getDirtyInfo','50lhfwkY','NUM','setPivotSort','getPivotItemRenderInfoCache','None','body','_localeService','dimension','unshift','getColCount','document','removeCollectionImp','getDataFieldId','valueFields','getMonth','lastCol','getDataFieldManager','textInfo','reset','stdDevp','filterInfo','getInterceptPoints','_viewData$','AddField','NAME','getSubtotal','versions','removeValueFilterInfo','sheets-pivot.dateGroup.monthDate','getId','4SmrmQP','sheets-pivot.dateGroup.date','updateAllDisplayName','Sum\x20of\x20','AddPivotField','getDataFieldBySourceName','5524365CoQsJA','_pivotTableRangeInfo','colStyle','getMatrixValue','updateViewInfo','isValue','handleAsyncResponse','asyncInterceptor','HourMinute','params','count','number','updateCollectionConfig','range','sheets.tabs.sheet','hasOwnProperty','getFieldPositionInfoById','_subjectFieldsCollectionChange','call','map','sheet.mutation.send-pivot-config-local','MUTATION','result','width','parseInt','_pivotInitCompleted$','getFullYear','_sheetsPivotTableConfigModel','getAutoDisplayNameFunction','startRow','getUpdateRangeDeleteIds','setSortInfo','getRangeKey','sheets-pivot.cellDateGroupDisplay.hour','deepClone','sheets-pivot.dateGroup.yearMonth','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','sheet.operation.pivot-table-view-formula-mark-dirty','SetCollapse','colCount','_injector','getGroupFieldsInfoByIds','leafStyle','getPivotDirtyViewInfo','sheet.mutation.update-pivot-table-source-range','clearExclusiveRangesByGroupId','colInfo','fieldsConfig','getSourceName','sheet.mutation.add-group-collection','Min\x20of\x20','length','AddPivotTable','_getAutoName','96468BUFcOu','getDataFieldByTableId','rangeCache','getOriginFieldId','next','clearRenderCache','_lifecycleService','setCollapse','Collapse','grandTotal','format','2498144zEeQen','has','setRangeValueUndoMutation','leftOffset','_initPivotDataGetListener','contains','filter','forValue','sheets-pivot.varName','updateValuePosition','_initDataSendListener','deleteDataField','updateRenderCache','splice','Var\x20of\x20','_pivotRenderInfoCache','getSheets','Varp\x20of\x20','bind','sheet.mutation.set-pivot-collapse','\x20-\x20','getRangeKeyList','resetPivotTable','REF','sourceRangeInfo','_sheetsSelectionsService','broadcastCollectionChange','Total','pivotConfigChange$','(Blank)','fromJSON','_collectionChange$','pushComputingStatusSubject','Panel','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','_subjectViewChange','getValueIndex','setDisplayName','values','GrandTotal','_exclusiveRangeService','sheet.mutation.set-pivot-sort-info','SetValueFilter','minDate','getPivotTableInstance','_viewData','info','iterateField','data','rowInfo','_resourceManagerService','measure','query','sheet.command.update-pivot-value-position','_updatePivotTableInstanceCache','getSubUnitPivotConfigs','sheet.mutation.set-pivot-filter','new','getCollection','fieldId','some','getPivotTableMatrixInfo','sheets-pivot.cellDateGroupDisplay.quarter','getFieldIds','146420wHmFZd','_config','getValue','setValuePivotFilter','_getPivotAppliedRanges','_commandService','getDataFieldItemInfo','sheet.command.set-pivot-sort','markDirty$','registerDirtyService','rowStyle','updateView','setSubtotalType','refreshGroupField','matrix','getConfig','NUMBER','sheet.command.set-pivot-value-filter','custom','colRanges','renameField','3663seNwNq','_ensurePivotItemRenderInfoCache','sheets-pivot.cellDateGroupDisplay.date','ManualFilter','_globalComputedStartHelpFunc','_dataFieldManagerCollection','valid','pageRanges','_globalComputingSrv','CELL_CONTENT','getUnitId','getActiveSheet','addDirtyPivotTable','substring','sheetName','adjustSheetCellData','sheets-pivot.dateGroup.quarter','getTargetByPivotId','getFieldCountByArea','pageStyle','disposeWithMe','SHEET_PIVOT_IN_MAIN_THREAD','deleteUnitId','sheets-pivot.dateGroup.hour','getRangeData','#e6ebfa','_initPivotTextInfo','dispose','addFieldWithSourceId','dataFieldsCollection','register','product','initDataRanges','_activeDirtyManagerService','dataFieldId','name','rowCount','addRecord','_fieldsCollectionChange$','ptn','token','#1d32e9','_initClearSelectionCommandInterceptor','getCurrentUnitForType','6axJKPM','getSubUnitPivotRenderCache','getSheetBySheetName','batch','getDate','fieldsCollectionChange$','sheet.command.set-pivot-fields-config','getRowCount','getPivotTableIdByCell','registerPluginResource','pivotInitCompleted$','addPivotTable','updateFieldPosition','sheet.mutation.add-pivot-field','registerSyncingMutations','getFilterFieldIdByIndex','forEach','getTargetByPivotTableId','isColMultiMeasure','getDisplayName','addField','_globalComputedEndHelpFunc','prefix','sortInfo','updateDataFieldsCollection','onCommandExecuted','_pivotTableInstanceCache','redos','_requestResolvers','getSubUnitPivotMatrix','RenameField','collectionChange$','_queryingMap','interceptCommand','getIntersects','Year','symbol','updatePivotSource','getValuePosition','sheets-pivot.productName','COMMAND','sheet.mutation.set-pivot-field-subtotal-type','drillDown','concat','fields','collapseInfo','subscribe','sheets-pivot.cellDateGroupDisplay.minute','_initCommandInterceptListener','update','sheet.mutation.pivot-update-field-source-info','removePivotField','replace','MAX_SAFE_INTEGER','generateNewSheetName','_initConfig','prototype','refreshData','UpdateFieldPosition','subtotal','2954493XCEZaE','YearMonthDate','SetPivotSetting','_initLocale','node','sheets-pivot.grandTotal','_globalSubject','FORCE_STRING','keys','tableFieldId','_initRemoveSheetCommandInterceptor','#f4f4f5','_pivotTableMatrixInfo','pivotTableConfigs','#FFFFFF','subUnitId','_ensurePivotTableRangeInfo','handleSourceRangeChange','_viewUpdate$','limit\x20pivot','pivotTableId','_createExclusiveRange','removeField','formJSON','rowHeaderMap','getFieldDataType','setValueFilterInfo','setPivotSetting','_onRefRangeChange','_sheetsPivotRpcService','sourceName','sum','getSheetBySheetId','getName','originalFieldId','Filter','pluginName','SetPivotSort','undos','get','min','charCodeAt','markDirty','toString','Grand\x20Total','SetPivotTableConfig','removeSourceRangeChange','updateConfigCache','removeValueFilterInfoByValueFieldId','sheet.mutation.set-pivot-format','getSortInfo','#b2b2b2','intersects','blank','STRING','createCollectionWithDataRange','updateConfig','asObservable','removeDataField','removePivotTable','toJSON','notExecuteFormula','removeCollections','sheets-pivot.cellDateGroupDisplay.hourMinute'];_0x4fac=function(){return _0xf3143c;};return _0x4fac();}function rs(_0x5cab53,_0x26317d){const _0x271a65=_0x1a4bb1,{valuePosition:_0x4aa0a3,index:_0x42ad99}=_0x26317d;_0x5cab53[_0x271a65(0x248)]=_0x4aa0a3,_0x5cab53['valueIndex']=_0x42ad99;}function ls(_0x27893f,_0x307346){const _0x9fd57b=_0x1a4bb1,{tableFieldId:_0x18bb2c,sourceName:_0x24dfd5,dataFieldId:_0x51c149}=_0x307346,_0x5cf551=$e(_0x27893f,_0x18bb2c);_0x5cf551&&(_0x5cf551[_0x9fd57b(0x395)]=_0x24dfd5,_0x5cf551['dataFieldId']=_0x51c149);}function ds(_0x40ceaf,_0x4044b9){const _0x2e9df0=_0x1a4bb1,{fieldId:_0x7a3d22,sortInfo:_0x3468de}=_0x4044b9,_0x3f2047=$e(_0x40ceaf,_0x7a3d22);_0x3f2047&&(_0x3f2047[_0x2e9df0(0x352)]=_0x3468de);}function cs(_0x2e2af0,_0x4a70d6){const _0x40b684=_0x1a4bb1,{options:_0x307fec}=_0x4a70d6;_0x2e2af0[_0x40b684(0x1d7)]={..._0x2e2af0[_0x40b684(0x1d7)],..._0x307fec};}const Gt={'type':_0x5158ca['MUTATION'],'id':_0x1a4bb1(0x348),'handler'(_0x301b89,_0x2785d4){const _0x12e329=_0x1a4bb1;if(!_0x2785d4)return!0x1;if(!!_0x301b89[_0x12e329(0x39e)](_0x1893a6)['getConfig'](q))return!0x0;const _0x53f31f=_0x301b89[_0x12e329(0x39e)](G),{pivotTableId:_0x182da1,fieldJson:_0x49cc3f,area:_0x30f040,index:_0x1f4d3e,unitId:_0x577a3b,subUnitId:_0x99aaea}=_0x2785d4,_0x5d5d9e=_0x53f31f[_0x12e329(0x2e6)](_0x182da1);if(!_0x5d5d9e)return!0x1;let _0x3d592d;_0x30f040===_0xf3a50c['Value']?_0x3d592d=_0x362725(_0x49cc3f):_0x3d592d=_0x547d29(_0x49cc3f),_0x5d5d9e[_0x12e329(0x34f)](_0x3d592d,_0x30f040,_0x1f4d3e);const _0x96344c=_0x53f31f['getPivotTableModelConfig'](_0x577a3b,_0x99aaea,_0x182da1);Zi(_0x96344c,_0x2785d4);const _0x3168a5=_0x53f31f['getPivotTableConfig'](_0x577a3b,_0x99aaea,_0x182da1);return _0x53f31f['addDirtyPivotTable']({'unitId':_0x577a3b,'subUnitId':_0x99aaea,'token':_0x182da1,'type':B[_0x12e329(0x3d4)],'pivotConfig':_0x3168a5}),!0x0;}},$t={'type':_0x5158ca['MUTATION'],'id':'sheet.mutation.remove-pivot-field','handler'(_0x350b82,_0x4f9779){const _0x362daf=_0x1a4bb1;if(!_0x4f9779)return!0x1;if(!!_0x350b82['get'](_0x1893a6)['getConfig'](q))return!0x0;const _0x560e08=_0x350b82[_0x362daf(0x39e)](G),{pivotTableId:_0x29483f,fieldId:_0x53663d,unitId:_0xb98dff,subUnitId:_0x5f5b97}=_0x4f9779,_0x8d1e6=_0x560e08[_0x362daf(0x2e6)](_0x29483f);if(!_0x8d1e6)return!0x1;_0x8d1e6['removeField'](_0x53663d);const _0x1c2c4b=_0x560e08[_0x362daf(0x434)](_0xb98dff,_0x5f5b97,_0x29483f);Xi(_0x1c2c4b,_0x4f9779);const _0x25369d=_0x560e08[_0x362daf(0x1df)](_0xb98dff,_0x5f5b97,_0x29483f);return _0x560e08['addDirtyPivotTable']({'unitId':_0xb98dff,'subUnitId':_0x5f5b97,'token':_0x29483f,'type':B[_0x362daf(0x3d4)],'pivotConfig':_0x25369d}),!0x0;}},zt={'type':_0x5158ca['MUTATION'],'id':_0x1a4bb1(0x3e6),'handler'(_0x1f00e5,_0x57d5f1){const _0xebca0=_0x1a4bb1;if(!_0x57d5f1)return!0x1;if(!!_0x1f00e5[_0xebca0(0x39e)](_0x1893a6)[_0xebca0(0x309)](q))return!0x0;const _0x1fd7fe=_0x1f00e5['get'](G),{unitId:_0x590a97,subUnitId:_0xf372be,pivotTableId:_0x774d01,fieldId:_0x11bb55,name:_0xa6ff2c}=_0x57d5f1,_0x15545b=_0x1fd7fe[_0xebca0(0x2e6)](_0x774d01);if(!_0x15545b)return!0x1;_0x15545b['renameField'](_0x11bb55,_0xa6ff2c);const _0x32874d=_0x1fd7fe[_0xebca0(0x434)](_0x590a97,_0xf372be,_0x774d01);return es(_0x32874d,_0x57d5f1),_0x1fd7fe['addDirtyPivotTable']({'unitId':_0x590a97,'subUnitId':_0xf372be,'token':_0x774d01,'type':B[_0xebca0(0x3d4)]}),!0x0;}},jt={'type':_0x5158ca[_0x1a4bb1(0x28e)],'id':_0x1a4bb1(0x2cd),'handler'(_0x340368,_0x123bbd){const _0x40c9aa=_0x1a4bb1;if(!_0x123bbd)return!0x1;if(!!_0x340368['get'](_0x1893a6)[_0x40c9aa(0x309)](q))return!0x0;const _0x5f5588=_0x340368[_0x40c9aa(0x39e)](G),{unitId:_0x4cc67a,subUnitId:_0x7da065,pivotTableId:_0x266d91,fieldId:_0x2a995b,collapse:_0x140fba,item:_0x16315b}=_0x123bbd,_0x2d8048=_0x5f5588[_0x40c9aa(0x2e6)](_0x266d91);if(!_0x2d8048)return!0x1;_0x2d8048[_0x40c9aa(0x2b6)](_0x2a995b,_0x140fba,_0x16315b);const _0xe7bfea=_0x5f5588[_0x40c9aa(0x434)](_0x4cc67a,_0x7da065,_0x266d91);return ts(_0xe7bfea,_0x123bbd),_0x5f5588[_0x40c9aa(0x31b)]({'unitId':_0x4cc67a,'subUnitId':_0x7da065,'token':_0x266d91,'type':B['Set']}),!0x0;}},Jt={'type':_0x5158ca[_0x1a4bb1(0x28e)],'id':_0x1a4bb1(0x3a8),'handler'(_0x1efa1b,_0x4b9c7a){const _0x320586=_0x1a4bb1;if(!_0x4b9c7a)return!0x1;if(!!_0x1efa1b['get'](_0x1893a6)[_0x320586(0x309)](q))return!0x0;const _0x42a4e5=_0x1efa1b[_0x320586(0x39e)](G),{unitId:_0x483067,subUnitId:_0x436442,pivotTableId:_0x28f589,fieldId:_0x1b4ef8,format:_0x136f98}=_0x4b9c7a,_0x2ad029=_0x42a4e5[_0x320586(0x2e6)](_0x28f589);if(!_0x2ad029)return!0x1;_0x2ad029[_0x320586(0x204)](_0x1b4ef8,_0x136f98);const _0x318b7b=_0x42a4e5[_0x320586(0x434)](_0x483067,_0x436442,_0x28f589);return os(_0x318b7b,_0x4b9c7a),_0x42a4e5[_0x320586(0x31b)]({'unitId':_0x483067,'subUnitId':_0x436442,'token':_0x28f589,'type':B['Set']}),!0x0;}},Ht={'type':_0x5158ca[_0x1a4bb1(0x28e)],'id':_0x1a4bb1(0x2f2),'handler'(_0x508b8d,_0x560e9e){const _0x12d0cf=_0x1a4bb1;if(!_0x560e9e)return!0x1;if(!!_0x508b8d['get'](_0x1893a6)['getConfig'](q))return!0x0;const _0x3e6f18=_0x508b8d[_0x12d0cf(0x39e)](G),{unitId:_0x1076eb,subUnitId:_0x197764,pivotTableId:_0x4f1c7e,fieldId:_0x33c0a1,filterInfo:_0x557620}=_0x560e9e,_0x5f01d6=_0x3e6f18['getPivotTableInstance'](_0x4f1c7e);if(!_0x5f01d6)return!0x1;_0x5f01d6[_0x12d0cf(0x3c1)](_0x33c0a1,_0x557620);const _0xb9097c=_0x3e6f18[_0x12d0cf(0x434)](_0x1076eb,_0x197764,_0x4f1c7e);return ns(_0xb9097c,_0x560e9e),_0x3e6f18[_0x12d0cf(0x31b)]({'unitId':_0x1076eb,'subUnitId':_0x197764,'token':_0x4f1c7e,'type':B['Set']}),!0x0;}},qt={'type':_0x5158ca[_0x1a4bb1(0x28e)],'id':'sheet.mutation.set-pivot-option','handler'(_0x575d17,_0x76eb67){const _0x234ec1=_0x1a4bb1;if(!_0x76eb67)return!0x1;if(!!_0x575d17[_0x234ec1(0x39e)](_0x1893a6)['getConfig'](q))return!0x0;const _0x54d7cb=_0x575d17['get'](G),{unitId:_0x22a31c,subUnitId:_0x5d93c2,pivotTableId:_0x294b64,options:_0xf2853b}=_0x76eb67,_0x1bef63=_0x54d7cb[_0x234ec1(0x2e6)](_0x294b64);if(!_0x1bef63)return!0x1;_0x1bef63[_0x234ec1(0x3c3)](_0xf2853b);const _0x192fd6=_0x54d7cb[_0x234ec1(0x434)](_0x22a31c,_0x5d93c2,_0x294b64);return cs(_0x192fd6,_0x76eb67),_0x54d7cb['addDirtyPivotTable']({'unitId':_0x22a31c,'subUnitId':_0x5d93c2,'token':_0x294b64,'type':B[_0x234ec1(0x3d4)]}),!0x0;}},Kt={'type':_0x5158ca['MUTATION'],'id':_0x1a4bb1(0x2e3),'handler'(_0x1d0f56,_0x584798){const _0x524f0e=_0x1a4bb1;if(!_0x584798)return!0x1;if(!!_0x1d0f56[_0x524f0e(0x39e)](_0x1893a6)[_0x524f0e(0x309)](q))return!0x0;const _0x10cec6=_0x1d0f56[_0x524f0e(0x39e)](G),{unitId:_0x1a89cc,subUnitId:_0x5b80ca,pivotTableId:_0x195484,sortInfo:_0x2f6596,fieldId:_0x3f0c10}=_0x584798,_0x12f390=_0x10cec6[_0x524f0e(0x2e6)](_0x195484);if(!_0x12f390)return!0x1;_0x12f390[_0x524f0e(0x298)](_0x3f0c10,_0x2f6596);const _0x521743=_0x10cec6[_0x524f0e(0x434)](_0x1a89cc,_0x5b80ca,_0x195484);return ds(_0x521743,_0x584798),_0x10cec6['addDirtyPivotTable']({'unitId':_0x1a89cc,'subUnitId':_0x5b80ca,'token':_0x195484,'type':B[_0x524f0e(0x3d4)]}),!0x0;}},Yt={'type':_0x5158ca[_0x1a4bb1(0x28e)],'id':_0x1a4bb1(0x364),'handler'(_0x3eb9c6,_0x3aca9c){const _0x5d312e=_0x1a4bb1;if(!_0x3aca9c)return!0x1;if(!!_0x3eb9c6[_0x5d312e(0x39e)](_0x1893a6)[_0x5d312e(0x309)](q))return!0x0;const _0x31710f=_0x3eb9c6[_0x5d312e(0x39e)](G),{unitId:_0x428d01,subUnitId:_0x18f5da,pivotTableId:_0x4b713a,fieldId:_0x3d5505,subtotalType:_0x5c1e6a}=_0x3aca9c,_0x21bb7a=_0x31710f['getPivotTableInstance'](_0x4b713a);if(!_0x21bb7a)return!0x1;_0x21bb7a[_0x5d312e(0x306)](_0x3d5505,_0x5c1e6a);const _0x205fe9=_0x31710f[_0x5d312e(0x434)](_0x428d01,_0x18f5da,_0x4b713a);return ss(_0x205fe9,_0x3aca9c),_0x31710f[_0x5d312e(0x31b)]({'unitId':_0x428d01,'subUnitId':_0x18f5da,'token':_0x4b713a,'type':B[_0x5d312e(0x3d4)]}),!0x0;}},Qt={'type':_0x5158ca['MUTATION'],'id':_0x1a4bb1(0x3c8),'handler'(_0x4c45e6,_0x5dd1f8){const _0x5a1f6d=_0x1a4bb1;if(!_0x5dd1f8)return!0x1;if(!!_0x4c45e6[_0x5a1f6d(0x39e)](_0x1893a6)['getConfig'](q))return!0x0;const _0x1f5fb9=_0x4c45e6['get'](G),{unitId:_0xf94ece,subUnitId:_0x17e016,pivotTableId:_0x565d3f,fieldId:_0x38ff5a,filterInfo:_0x2d519c}=_0x5dd1f8,_0x1463ae=_0x1f5fb9[_0x5a1f6d(0x2e6)](_0x565d3f);if(!_0x1463ae)return!0x1;_0x1463ae['setValueFilterInfo'](_0x38ff5a,_0x2d519c);const _0x29ce55=_0x1f5fb9[_0x5a1f6d(0x434)](_0xf94ece,_0x17e016,_0x565d3f);return is(_0x29ce55,_0x5dd1f8),_0x1f5fb9['addDirtyPivotTable']({'unitId':_0xf94ece,'subUnitId':_0x17e016,'token':_0x565d3f,'type':B[_0x5a1f6d(0x3d4)]}),!0x0;}},Zt={'type':_0x5158ca[_0x1a4bb1(0x28e)],'id':_0x1a4bb1(0x1f0),'handler'(_0x20f267,_0x3fcf8c){const _0x204644=_0x1a4bb1;if(!_0x3fcf8c)return!0x1;if(!!_0x20f267[_0x204644(0x39e)](_0x1893a6)[_0x204644(0x309)](q))return!0x0;const _0x133af7=_0x20f267[_0x204644(0x39e)](G),{unitId:_0x3f36a2,subUnitId:_0x122c31,pivotTableId:_0x327515,area:_0x11f561,index:_0x3d4b9b,fieldId:_0x27eaed}=_0x3fcf8c,_0x5acf15=_0x133af7[_0x204644(0x2e6)](_0x327515);if(!_0x5acf15)return!0x1;_0x5acf15[_0x204644(0x347)](_0x27eaed,_0x11f561,_0x3d4b9b);const _0x3fa8d8=_0x133af7['getPivotTableModelConfig'](_0x3f36a2,_0x122c31,_0x327515);return as(_0x3fa8d8,_0x3fcf8c),_0x133af7[_0x204644(0x31b)]({'unitId':_0x3f36a2,'subUnitId':_0x122c31,'token':_0x327515,'type':B[_0x204644(0x3d4)]}),!0x0;}},Xt={'type':_0x5158ca[_0x1a4bb1(0x28e)],'id':_0x1a4bb1(0x36d),'handler'(_0xbc8db9,_0x47bbb2){const _0x50ab34=_0x1a4bb1;if(!_0x47bbb2)return!0x1;if(!!_0xbc8db9[_0x50ab34(0x39e)](_0x1893a6)[_0x50ab34(0x309)](q))return!0x0;const _0x9454e8=_0xbc8db9[_0x50ab34(0x39e)](G),{unitId:_0x2aa1a7,subUnitId:_0x29291e,pivotTableId:_0x165f45,sourceName:_0x2904cb,dataFieldId:_0x4ae647,tableFieldId:_0x5622ed}=_0x47bbb2,_0x169bb0=_0x9454e8[_0x50ab34(0x2e6)](_0x165f45);if(!_0x169bb0)return!0x1;_0x169bb0['updateFieldSourceInfo'](_0x5622ed,_0x2904cb,_0x4ae647);const _0x2b2fc7=_0x9454e8[_0x50ab34(0x434)](_0x2aa1a7,_0x29291e,_0x165f45);return ls(_0x2b2fc7,_0x47bbb2),_0x9454e8[_0x50ab34(0x31b)]({'unitId':_0x2aa1a7,'subUnitId':_0x29291e,'token':_0x165f45,'type':B['Set']}),!0x0;}},eo={'type':_0x5158ca['MUTATION'],'id':'sheet.mutation.pivot-update-value-position','handler'(_0x2fa19e,_0x4de595){const _0x481083=_0x1a4bb1;if(!_0x4de595)return!0x1;if(!!_0x2fa19e[_0x481083(0x39e)](_0x1893a6)[_0x481083(0x309)](q))return!0x0;const _0x47d60e=_0x2fa19e['get'](G),{unitId:_0x9920a1,subUnitId:_0x1b9cb1,pivotTableId:_0x627b6e,valuePosition:_0x3b1286,index:_0x1fdeac}=_0x4de595,_0x1a02f3=_0x47d60e[_0x481083(0x2e6)](_0x627b6e);if(!_0x1a02f3)return!0x1;_0x1a02f3['updateValuePosition'](_0x3b1286,_0x1fdeac);const _0x188c67=_0x47d60e[_0x481083(0x434)](_0x9920a1,_0x1b9cb1,_0x627b6e);return rs(_0x188c67,_0x4de595),_0x47d60e[_0x481083(0x31b)]({'unitId':_0x9920a1,'subUnitId':_0x1b9cb1,'token':_0x627b6e,'type':B[_0x481083(0x3d4)]}),!0x0;}};function me(_0x2b363e,_0x89543,_0x5f489c){const _0x4da2e9=_0x1a4bb1,{pivotTableId:_0x3aa3c8,unitId:_0x1fbf82,subUnitId:_0x5a62a8}=_0x89543,_0x1eaba7=[],_0x40187b=[];for(const _0x39c41e of _0x5f489c)switch(_0x39c41e[_0x4da2e9(0x1e0)]){case _0x3caa75[_0x4da2e9(0x26c)]:{const {fieldJson:_0x5d63e7,area:_0x312950,index:_0x46e578}=_0x39c41e,_0x1c58e1={'unitId':_0x1fbf82,'subUnitId':_0x5a62a8,'pivotTableId':_0x3aa3c8,'fieldJson':_0x5d63e7,'area':_0x312950,'index':_0x46e578},_0x291108={'unitId':_0x1fbf82,'subUnitId':_0x5a62a8,'pivotTableId':_0x3aa3c8,'fieldId':_0x5d63e7['id'],'area':_0x312950,'index':_0x46e578};_0x1eaba7[_0x4da2e9(0x3ea)]({'id':Gt['id'],'params':_0x1c58e1}),_0x40187b[_0x4da2e9(0x25d)]({'id':$t['id'],'params':_0x291108});}break;case _0x3caa75['SetSubtotalType']:{const {fieldId:_0x2af3b2,newSubtotalType:_0x4e0f57,oldSubtotalType:_0x5a1e0f}=_0x39c41e,_0x37658a={'unitId':_0x1fbf82,'subUnitId':_0x5a62a8,'pivotTableId':_0x3aa3c8,'fieldId':_0x2af3b2,'subtotalType':_0x4e0f57};_0x1eaba7[_0x4da2e9(0x3ea)]({'id':Yt['id'],'params':_0x37658a});const _0x10822a={'unitId':_0x1fbf82,'subUnitId':_0x5a62a8,'pivotTableId':_0x3aa3c8,'fieldId':_0x2af3b2,'subtotalType':_0x5a1e0f};_0x40187b['unshift']({'id':Yt['id'],'params':_0x10822a});}break;case _0x3caa75['RemoveField']:{const {fieldId:_0x384345,fieldJson:_0x48c4bc,area:_0x1928d7,index:_0x5a1aeb}=_0x39c41e,_0x554b21={'unitId':_0x1fbf82,'subUnitId':_0x5a62a8,'pivotTableId':_0x3aa3c8,'fieldId':_0x384345,'index':_0x5a1aeb,'area':_0x1928d7};_0x1eaba7[_0x4da2e9(0x3ea)]({'id':$t['id'],'params':_0x554b21});const _0x6eb1d2={'unitId':_0x1fbf82,'subUnitId':_0x5a62a8,'pivotTableId':_0x3aa3c8,'fieldJson':_0x48c4bc,'area':_0x1928d7,'index':_0x5a1aeb};_0x40187b[_0x4da2e9(0x25d)]({'id':Gt['id'],'params':_0x6eb1d2});}break;case _0x3caa75[_0x4da2e9(0x359)]:{const {fieldId:_0x1a3074,oldName:_0x147f39,newName:_0x78e691}=_0x39c41e,_0x8bf4cc={'unitId':_0x1fbf82,'subUnitId':_0x5a62a8,'pivotTableId':_0x3aa3c8,'fieldId':_0x1a3074,'name':_0x78e691};_0x1eaba7['push']({'id':zt['id'],'params':_0x8bf4cc});const _0x54d7a7={'unitId':_0x1fbf82,'subUnitId':_0x5a62a8,'pivotTableId':_0x3aa3c8,'fieldId':_0x1a3074,'name':_0x147f39};_0x40187b[_0x4da2e9(0x25d)]({'id':zt['id'],'params':_0x54d7a7});}break;case _0x3caa75['SetFilterInfo']:{const {fieldId:_0x374a4f,oldFilterInfo:_0x41c892,newFilterInfo:_0x59dbc6}=_0x39c41e,_0x5d7048={'unitId':_0x1fbf82,'subUnitId':_0x5a62a8,'pivotTableId':_0x3aa3c8,'fieldId':_0x374a4f,'filterInfo':_0x59dbc6};_0x1eaba7[_0x4da2e9(0x3ea)]({'id':Ht['id'],'params':_0x5d7048});const _0x110e0a={'unitId':_0x1fbf82,'subUnitId':_0x5a62a8,'pivotTableId':_0x3aa3c8,'fieldId':_0x374a4f,'filterInfo':_0x41c892};_0x40187b['unshift']({'id':Ht['id'],'params':_0x110e0a});}break;case _0x3caa75[_0x4da2e9(0x1f9)]:{const {fieldId:_0x527fd5,oldSortInfo:_0x24e188,newSortInfo:_0x1b7324}=_0x39c41e,_0x170d43={'unitId':_0x1fbf82,'subUnitId':_0x5a62a8,'pivotTableId':_0x3aa3c8,'fieldId':_0x527fd5,'sortInfo':_0x1b7324};_0x1eaba7[_0x4da2e9(0x3ea)]({'id':Kt['id'],'params':_0x170d43});const _0x4a1702={'unitId':_0x1fbf82,'subUnitId':_0x5a62a8,'pivotTableId':_0x3aa3c8,'fieldId':_0x527fd5,'sortInfo':_0x24e188};_0x40187b[_0x4da2e9(0x25d)]({'id':Kt['id'],'params':_0x4a1702});}break;case _0x3caa75[_0x4da2e9(0x241)]:{const {oldOptions:_0x3ee568,newOptions:_0x1a5a76}=_0x39c41e,_0x227940={'unitId':_0x1fbf82,'subUnitId':_0x5a62a8,'pivotTableId':_0x3aa3c8,'options':_0x1a5a76};_0x1eaba7[_0x4da2e9(0x3ea)]({'id':qt['id'],'params':_0x227940});const _0x3a2b61={'unitId':_0x1fbf82,'subUnitId':_0x5a62a8,'pivotTableId':_0x3aa3c8,'options':_0x3ee568};_0x40187b[_0x4da2e9(0x25d)]({'id':qt['id'],'params':_0x3a2b61});}break;case _0x3caa75[_0x4da2e9(0x375)]:{const {oldArea:_0xc8fc4f,newArea:_0x1023c5,oldIndex:_0x2df5bd,newIndex:_0x45c6fc,fieldId:_0x384b6a}=_0x39c41e,_0x4a6676={'unitId':_0x1fbf82,'subUnitId':_0x5a62a8,'pivotTableId':_0x3aa3c8,'fieldId':_0x384b6a,'area':_0x1023c5,'index':_0x45c6fc,'oldArea':_0xc8fc4f,'oldIndex':_0x2df5bd};_0x1eaba7[_0x4da2e9(0x3ea)]({'id':Zt['id'],'params':_0x4a6676});const _0x49de81={'unitId':_0x1fbf82,'subUnitId':_0x5a62a8,'pivotTableId':_0x3aa3c8,'fieldId':_0x384b6a,'area':_0xc8fc4f,'index':_0x2df5bd,'oldArea':_0x1023c5,'oldIndex':_0x45c6fc};_0x40187b[_0x4da2e9(0x25d)]({'id':Zt['id'],'params':_0x49de81});}break;case _0x3caa75[_0x4da2e9(0x203)]:{const {oldValuePosition:_0x4a16f2,newValuePosition:_0x5b3ba4,oldIndex:_0x3a6f80,newIndex:_0x26e99f}=_0x39c41e,_0x8cb86d={'unitId':_0x1fbf82,'subUnitId':_0x5a62a8,'pivotTableId':_0x3aa3c8,'valuePosition':_0x5b3ba4,'index':_0x26e99f};_0x1eaba7['push']({'id':eo['id'],'params':_0x8cb86d});const _0xff5efe={'unitId':_0x1fbf82,'subUnitId':_0x5a62a8,'pivotTableId':_0x3aa3c8,'valuePosition':_0x4a16f2,'index':_0x3a6f80};_0x40187b[_0x4da2e9(0x25d)]({'id':eo['id'],'params':_0xff5efe});}break;case _0x3caa75[_0x4da2e9(0x29f)]:{const {fieldId:_0x387ba7,collapse:_0x326bc2,item:_0x1fdee2}=_0x39c41e,_0xb7e548={'unitId':_0x1fbf82,'subUnitId':_0x5a62a8,'pivotTableId':_0x3aa3c8,'fieldId':_0x387ba7,'collapse':_0x326bc2,'item':_0x1fdee2};_0x1eaba7['push']({'id':jt['id'],'params':_0xb7e548});const _0x449d4e={'unitId':_0x1fbf82,'subUnitId':_0x5a62a8,'pivotTableId':_0x3aa3c8,'fieldId':_0x387ba7,'collapse':!_0x326bc2,'item':_0x1fdee2};_0x40187b['unshift']({'id':jt['id'],'params':_0x449d4e});}break;case _0x3caa75['SetFieldFormat']:{const {newFormat:_0x24498b,oldFormat:_0x4bba31,fieldId:_0x4fb749}=_0x39c41e,_0x403500={'unitId':_0x1fbf82,'subUnitId':_0x5a62a8,'pivotTableId':_0x3aa3c8,'fieldId':_0x4fb749,'format':_0x24498b};_0x1eaba7[_0x4da2e9(0x3ea)]({'id':Jt['id'],'params':_0x403500});const _0x171f6b={'unitId':_0x1fbf82,'subUnitId':_0x5a62a8,'pivotTableId':_0x3aa3c8,'fieldId':_0x4fb749,'format':_0x4bba31};_0x40187b[_0x4da2e9(0x25d)]({'id':Jt['id'],'params':_0x171f6b});}break;case _0x3caa75[_0x4da2e9(0x24d)]:{const {tableFieldId:_0x49b2c3,oldSourceName:_0x4a6bb4,newSourceName:_0x2ffbcf,oldDataFieldId:_0xd4201,newDataFieldId:_0x373290}=_0x39c41e,_0x16417b={'unitId':_0x1fbf82,'subUnitId':_0x5a62a8,'pivotTableId':_0x3aa3c8,'tableFieldId':_0x49b2c3,'sourceName':_0x2ffbcf,'dataFieldId':_0x373290};_0x1eaba7['push']({'id':Xt['id'],'params':_0x16417b});const _0x154f21={'unitId':_0x1fbf82,'subUnitId':_0x5a62a8,'pivotTableId':_0x3aa3c8,'tableFieldId':_0x49b2c3,'sourceName':_0x4a6bb4,'dataFieldId':_0xd4201};_0x40187b[_0x4da2e9(0x25d)]({'id':Xt['id'],'params':_0x154f21});}break;case _0x3caa75[_0x4da2e9(0x2e4)]:{const {fieldId:_0x5c1172,filterInfo:_0xd27db,oldFilterInfo:_0x5af3af}=_0x39c41e,_0x3a5eb1={'unitId':_0x1fbf82,'subUnitId':_0x5a62a8,'pivotTableId':_0x3aa3c8,'fieldId':_0x5c1172,'filterInfo':_0xd27db};_0x1eaba7[_0x4da2e9(0x3ea)]({'id':Qt['id'],'params':_0x3a5eb1});const _0x18a431={'unitId':_0x1fbf82,'subUnitId':_0x5a62a8,'pivotTableId':_0x3aa3c8,'fieldId':_0x5c1172,'filterInfo':_0x5af3af};_0x40187b['unshift']({'id':Qt['id'],'params':_0x18a431});}}return{'redos':_0x1eaba7,'undos':_0x40187b};}function we(_0x43618d,_0x46ae41){const _0xe6f1b4=_0x1a4bb1;var _0x5c5cad;const _0x4dabb7=_0x43618d[_0xe6f1b4(0x39e)](ie),{cellInfo:_0x16d94d,view:_0x1e3963,isEmpty:_0x4e8713}=_0x46ae41;return(_0x5c5cad=_0x4dabb7[_0xe6f1b4(0x1f7)][_0xe6f1b4(0x3d0)](Go)(Po,{'cellInfo':_0x16d94d,'view':_0x1e3963,'isEmpty':_0x4e8713}))!=null?_0x5c5cad:Po;}const us=()=>typeof process<'u'&&process[_0x1a4bb1(0x26f)]!=null&&process[_0x1a4bb1(0x26f)][_0x1a4bb1(0x37b)]!=null,Ct={'type':_0x5158ca[_0x1a4bb1(0x28e)],'id':'sheet.mutation.add-pivot-table','handler'(_0x4c82b9,_0x59f87e){const _0x1dcb35=_0x1a4bb1;var _0x247ffe;if(!_0x59f87e)return!0x1;const _0x4761f7=_0x4c82b9[_0x1dcb35(0x39e)](_0x1893a6);if(!!_0x4761f7[_0x1dcb35(0x309)](q))return!0x0;const _0x226a1b=_0x4c82b9[_0x1dcb35(0x39e)](_0x41ab3d),_0x4b48e3=_0x4c82b9[_0x1dcb35(0x39e)](G),{pivotTableId:_0x5590c6,pivotTableConfig:_0xde0c53,collectionConfig:_0x506726,unitId:_0x202e5b,subUnitId:_0x53611a}=_0x59f87e,{sourceRangeInfo:_0x514d4a,fieldsConfig:_0x3d7653,targetCellInfo:_0x1c7d20}=_0xde0c53,_0xca7d05=_0x226a1b[_0x1dcb35(0x228)](_0x202e5b);if(!_0xca7d05||!_0xca7d05[_0x1dcb35(0x397)](_0x53611a))return!0x1;if(!us()){let _0x4fe497=0x0;_0xca7d05[_0x1dcb35(0x2ca)]()[_0x1dcb35(0x34b)](_0x164bab=>{const _0x5705da=_0x1dcb35;var _0x1ac249,_0x36daff;_0x4fe497+=(_0x36daff=(_0x1ac249=_0x4b48e3[_0x5705da(0x2f1)](_0x202e5b,_0x164bab[_0x5705da(0x1ec)]()))==null?void 0x0:_0x1ac249['size'])!=null?_0x36daff:0x0;});const _0x4b626b=(_0x247ffe=_0x4761f7[_0x1dcb35(0x309)](_0x2bc50f))!=null?_0x247ffe:{},{ls:_0xb72ff0,pbk:_0x10ff02}=_0x4b626b;if(!Jo(_0xb72ff0,_0x10ff02))throw new _0x2435cd(_0x1dcb35(0x38a));const _0x1fff75=go(so,_0xb72ff0,_0x10ff02)[_0x1dcb35(0x283)];if(_0x4fe497>=_0x1fff75)throw new _0x2435cd(_0x1dcb35(0x38a));}if(!_0x506726||!_0x3d7653)return!0x1;const {collection:_0x591966,updateDataFieldList:_0x48dbdd}=_0x4b48e3['addCollectionByJSON'](_0x5590c6,_0x506726,_0x514d4a,_0x1c7d20);_0x4b48e3[_0x1dcb35(0x374)](_0x591966,_0x48dbdd,_0x514d4a);const _0x598038=new _0x162344(_0x591966,void 0x0,_0x5590c6);_0x598038[_0x1dcb35(0x2d8)](_0x3d7653);const _0x1fb687=JSON[_0x1dcb35(0x3d7)](JSON[_0x1dcb35(0x40b)](_0xde0c53));return _0x4b48e3['addPivotTable'](_0x202e5b,_0x53611a,_0x5590c6,_0x598038,_0x1fb687),_0x4b48e3[_0x1dcb35(0x31b)]({'unitId':_0x202e5b,'subUnitId':_0x53611a,'token':_0x5590c6,'type':B['Add'],'pivotConfig':_0x1fb687}),!0x0;}},Et={'type':_0x5158ca[_0x1a4bb1(0x28e)],'id':_0x1a4bb1(0x3bf),'handler'(_0xc51a83,_0x245dc9){const _0x38062a=_0x1a4bb1;if(!_0x245dc9)return!0x1;if(!!_0xc51a83['get'](_0x1893a6)[_0x38062a(0x309)](q))return!0x0;const {pivotTableId:_0x2b4c5d,unitId:_0x3b7914,subUnitId:_0x498c32}=_0x245dc9,_0x4a715e=_0xc51a83[_0x38062a(0x39e)](G);return _0x4a715e[_0x38062a(0x1df)](_0x3b7914,_0x498c32,_0x2b4c5d)?(_0x4a715e[_0x38062a(0x31b)]({'unitId':_0x3b7914,'subUnitId':_0x498c32,'token':_0x2b4c5d,'type':B[_0x38062a(0x3b7)]}),_0x4a715e['removePivotTable'](_0x3b7914,_0x498c32,_0x2b4c5d),!0x0):!0x1;}},pt={'type':_0x5158ca[_0x1a4bb1(0x28e)],'id':'sheet.mutation.set-pivot-position','handler'(_0x114ceb,_0x266893){const _0x41d9b1=_0x1a4bb1;if(!_0x266893)return!0x1;if(!!_0x114ceb[_0x41d9b1(0x39e)](_0x1893a6)[_0x41d9b1(0x309)](q))return!0x0;const {pivotTableId:_0x1c66a6,targetCellPosition:_0x44ac32,unitId:_0x3811fe,subUnitId:_0x300c07}=_0x266893,_0xf8fed5=_0x114ceb[_0x41d9b1(0x39e)](G);if(!_0xf8fed5[_0x41d9b1(0x2e6)](_0x266893['pivotTableId']))return!0x1;const _0x50ed2f=_0xf8fed5['getTargetByPivotId'](_0x1c66a6);if(!_0x50ed2f)return!0x1;const _0x38f682=_0xf8fed5[_0x41d9b1(0x2f4)](_0x50ed2f[_0x41d9b1(0x3c4)],_0x266893[_0x41d9b1(0x38b)]);if(!_0x38f682)return!0x1;const _0x418935=_0xf8fed5[_0x41d9b1(0x1df)](_0x50ed2f['unitId'],_0x50ed2f['subUnitId'],_0x1c66a6);if(!_0x418935)return!0x1;const _0x16a213=_0x5a29c7[_0x41d9b1(0x29b)](_0x418935);_0x16a213[_0x41d9b1(0x202)]={'unitId':_0x3811fe,'subUnitId':_0x300c07,'row':_0x44ac32[_0x41d9b1(0x3dc)],'col':_0x44ac32[_0x41d9b1(0x24a)]};const _0x4b4e73=_0x38f682[_0x41d9b1(0x3b3)]();if(_0x50ed2f[_0x41d9b1(0x386)]===_0x300c07&&_0x50ed2f[_0x41d9b1(0x3c4)]===_0x3811fe)_0xf8fed5['setPivotTable'](_0x3811fe,_0x300c07,_0x1c66a6,_0x16a213),_0xf8fed5[_0x41d9b1(0x31b)]({'unitId':_0x3811fe,'subUnitId':_0x300c07,'token':_0x1c66a6,'type':B[_0x41d9b1(0x3d4)]});else{_0xf8fed5['addDirtyPivotTable']({'unitId':_0x50ed2f['unitId'],'subUnitId':_0x50ed2f['subUnitId'],'token':_0x1c66a6,'type':B['Delete']}),_0xf8fed5[_0x41d9b1(0x3b2)](_0x50ed2f['unitId'],_0x50ed2f[_0x41d9b1(0x386)],_0x1c66a6);const _0x571a92=_0xf8fed5[_0x41d9b1(0x21a)](_0x1c66a6,_0x4b4e73,_0x418935[_0x41d9b1(0x2d2)],_0x16a213[_0x41d9b1(0x202)]),_0x260f4a=new _0x162344(_0x571a92[_0x41d9b1(0x22e)],void 0x0,_0x1c66a6);_0x260f4a[_0x41d9b1(0x2d8)](_0x16a213[_0x41d9b1(0x2a8)]),_0xf8fed5[_0x41d9b1(0x346)](_0x3811fe,_0x300c07,_0x1c66a6,_0x260f4a,_0x16a213),_0xf8fed5[_0x41d9b1(0x31b)]({'unitId':_0x3811fe,'subUnitId':_0x300c07,'token':_0x1c66a6,'type':B[_0x41d9b1(0x23b)],'pivotConfig':_0x16a213});}return!0x0;}},to={'type':_0x5158ca[_0x1a4bb1(0x28e)],'id':_0x1a4bb1(0x2a5),'handler'(_0x42d525,_0x424ccd){const _0x1221a7=_0x1a4bb1;if(!_0x424ccd)return!0x1;if(!!_0x42d525['get'](_0x1893a6)['getConfig'](q))return!0x0;const _0x351243=_0x42d525[_0x1221a7(0x39e)](G),{pivotTableId:_0x3cf802,deleteIds:_0x2412bd,collectionJSON:_0x292ed8,dataRangeInfo:_0x1290a8,unitId:_0x399913,subUnitId:_0x1228c8}=_0x424ccd,_0x4fecea=_0x351243[_0x1221a7(0x2e6)](_0x3cf802),_0x292e78=_0x351243[_0x1221a7(0x1df)](_0x399913,_0x1228c8,_0x3cf802);if(!_0x4fecea||!_0x292e78)return!0x1;const {collection:_0x3cb771,updateDataFieldList:_0x5831c8}=_0x351243[_0x1221a7(0x21a)](_0x3cf802,_0x292ed8,_0x1290a8,_0x292e78[_0x1221a7(0x202)]);_0x351243[_0x1221a7(0x374)](_0x3cb771,_0x5831c8,_0x1290a8),_0x4fecea[_0x1221a7(0x353)](_0x3cb771);for(const _0x2367df of _0x2412bd)_0x351243[_0x1221a7(0x3b1)](_0x1290a8[_0x1221a7(0x3c4)],_0x2367df);const _0x59847d=_0x351243[_0x1221a7(0x1df)](_0x399913,_0x1228c8,_0x3cf802);return _0x59847d[_0x1221a7(0x2d2)]=JSON['parse'](JSON[_0x1221a7(0x40b)](_0x1290a8)),_0x351243['addDirtyPivotTable']({'unitId':_0x399913,'subUnitId':_0x1228c8,'token':_0x3cf802,'type':B['Set']}),!0x0;}},Ut={'type':_0x5158ca[_0x1a4bb1(0x28e)],'id':_0x1a4bb1(0x29e),'handler'(){return!0x0;}};var fs=Object[_0x1a4bb1(0x1c6)],gs=(_0x490e15,_0x3e4cb2,_0x2b8223,_0x2ae3a7)=>{for(var _0x33e34d=_0x2ae3a7>0x1?void 0x0:_0x2ae3a7?fs(_0x3e4cb2,_0x2b8223):_0x3e4cb2,_0xe42f5b=_0x490e15['length']-0x1,_0x5511f7;_0xe42f5b>=0x0;_0xe42f5b--)(_0x5511f7=_0x490e15[_0xe42f5b])&&(_0x33e34d=_0x5511f7(_0x33e34d)||_0x33e34d);return _0x33e34d;},Ro=(_0x3632a5,_0x19fce2)=>(_0x2ad724,_0x1cdd0a)=>_0x19fce2(_0x2ad724,_0x1cdd0a,_0x3632a5);let X=class extends _0x36ff7f{constructor(_0x31d5e6,_0x33f511){super(),V(this,'_requestResolvers',new Map()),(this['_injector']=_0x31d5e6,this['_commandService']=_0x33f511);}['handleAsyncResponse'](_0x4f02a5){const _0x39a5b0=_0x1a4bb1,{version:_0x570d6d}=_0x4f02a5,_0x7b0bfd=this[_0x39a5b0(0x357)][_0x39a5b0(0x39e)](_0x570d6d);_0x7b0bfd&&(_0x7b0bfd(_0x4f02a5),this['_requestResolvers'][_0x39a5b0(0x3e5)](_0x570d6d));}[_0x1a4bb1(0x43a)](_0x80ee90){return new Promise((_0x14cabd,_0x5fe7c1)=>{const _0x1424eb=_0x58d2,_0x23866d=this[_0x1424eb(0x3dd)]();this[_0x1424eb(0x357)][_0x1424eb(0x1fc)](_0x23866d,_0x14cabd),this[_0x1424eb(0x2ff)]['executeCommand'](ro['id'],{'version':_0x23866d,..._0x80ee90},{'onlyLocal':!0x0});});}[_0x1a4bb1(0x3dd)](){const _0x4eda52=_0x1a4bb1;return Math[_0x4eda52(0x42f)]()[_0x4eda52(0x3a2)](0x24)[_0x4eda52(0x31c)](0x2,0x10);}};X=gs([Ro(0x0,_0x772e00(_0x4ed77d)),Ro(0x1,_0x772e00(_0x554f1b))],X);const Yo={'id':_0x1a4bb1(0x2aa),'type':_0x5158ca[_0x1a4bb1(0x28e)],'handler':(_0x3dfb27,_0x692421)=>{const _0x13d075=_0x1a4bb1;if(!_0x692421)return!0x1;if(!!_0x3dfb27['get'](_0x1893a6)[_0x13d075(0x309)](q))return!0x0;const {pivotTableId:_0x259e74,fieldJSON:_0x4e378f,unitId:_0x288df3,subUnitId:_0x437342}=_0x692421,_0x30b68c=_0x267aec[_0x13d075(0x2d8)](_0x4e378f);if(!_0x30b68c)return!0x1;const _0x5105ff=_0x3dfb27[_0x13d075(0x39e)](G),_0x2659be=_0x5105ff['getDataFieldManager'](_0x288df3),_0x2cafc0=_0x2659be[_0x13d075(0x2f4)](_0x259e74);_0x2659be[_0x13d075(0x201)](_0x30b68c),_0x2cafc0[_0x13d075(0x34f)](_0x30b68c[_0x13d075(0x272)](),_0x30b68c['getName']());const _0x43e9d5=_0x2cafc0[_0x13d075(0x1d3)](_0x30b68c[_0x13d075(0x2b2)]());_0x43e9d5&&_0x30b68c[_0x13d075(0x307)](_0x43e9d5);const _0x25a6cd=_0x5105ff['getPivotTableConfig'](_0x288df3,_0x437342,_0x259e74);return _0x5105ff[_0x13d075(0x31b)]({'unitId':_0x288df3,'subUnitId':_0x437342,'token':_0x259e74,'type':B[_0x13d075(0x3d4)],'pivotConfig':_0x25a6cd}),!0x0;}},Qo={'id':'sheet.mutation.remove-group-collection','type':_0x5158ca[_0x1a4bb1(0x28e)],'handler':(_0x10177e,_0x5672df)=>{const _0x23a40d=_0x1a4bb1;if(!_0x5672df)return!0x1;if(!!_0x10177e[_0x23a40d(0x39e)](_0x1893a6)['getConfig'](q))return!0x0;const {pivotTableId:_0x1fa58f,dataFieldId:_0xcee566,unitId:_0x741731,subUnitId:_0x5a47e5}=_0x5672df,_0x591477=_0x10177e['get'](G),_0x132de0=_0x591477[_0x23a40d(0x265)](_0x741731);_0x132de0[_0x23a40d(0x2f4)](_0x1fa58f)[_0x23a40d(0x1db)](_0xcee566);let _0x1643b9=!0x0;for(const _0x275b53 in _0x132de0[_0x23a40d(0x1d8)])if(_0x132de0[_0x23a40d(0x1d8)][_0x275b53][_0x23a40d(0x2f9)]()['includes'](_0xcee566)){_0x1643b9=!0x1;break;}_0x1643b9&&_0x132de0['deleteDataField'](_0xcee566);const _0x60d288=_0x591477[_0x23a40d(0x1df)](_0x741731,_0x5a47e5,_0x1fa58f);return _0x591477[_0x23a40d(0x31b)]({'unitId':_0x741731,'subUnitId':_0x5a47e5,'token':_0x1fa58f,'type':B[_0x23a40d(0x3d4)],'pivotConfig':_0x60d288}),!0x0;}},hs={'type':_0x5158ca['COMMAND'],'id':_0x1a4bb1(0x431),async 'handler'(_0x1af744,_0x59f877){const _0x20cce1=_0x1a4bb1;if(!_0x59f877)return!0x1;const _0x14031e=_0x1af744['get'](_0x554f1b),_0x14e1ba=_0x1af744[_0x20cce1(0x39e)](X),_0x4e685f=_0x1af744['get'](_0x943f03),{pivotTableId:_0x1e56c4,dataFieldId:_0x257e8a,fieldArea:_0x1179a4,index:_0x2ab792,unitId:_0x5b8990,subUnitId:_0x3c3fbf}=_0x59f877,_0xcf4c11=(await _0x14e1ba[_0x20cce1(0x43a)]({'unitId':_0x5b8990,'subUnitId':_0x3c3fbf,'pivotTableId':_0x1e56c4,'params':{'type':A['AddPivotField'],'addPivotField':{'dataFieldId':_0x257e8a,'fieldArea':_0x1179a4,'index':_0x2ab792}}}))[_0x20cce1(0x28f)]['addPivotField'];if(!_0xcf4c11)return!0x1;const {view:_0x35850c,changesets:_0x472d7c,isEmpty:_0x675883,pivotTableConfig:_0x48de09,shouldBeAddedGroupJSON:_0x896f0e}=_0xcf4c11,_0x6f76e7=_0x48de09['targetCellInfo'],_0x4e987f=new _0x1a88a1();_0x4e987f[_0x20cce1(0x38e)](_0x35850c);const _0x4b77d4={'cellInfo':_0x6f76e7,'view':_0x4e987f,'isEmpty':_0x675883};if(!await _0x1af744[_0x20cce1(0x39e)](ie)['asyncInterceptor'][_0x20cce1(0x1dc)](be)(!0x0,_0x4b77d4))return!0x1;const _0x477b5f=Re(_0x1af744,_0x4e987f,_0x6f76e7,_0x675883),_0x12e54c=we(_0x1af744,_0x4b77d4),{undos:_0x816a00,redos:_0x2e9bdc}=me(_0x14031e,{'pivotTableId':_0x1e56c4,'unitId':_0x5b8990,'subUnitId':_0x3c3fbf},_0x472d7c);return _0x896f0e&&(_0x2e9bdc[_0x20cce1(0x25d)]({'id':Yo['id'],'params':{'pivotTableId':_0x1e56c4,'fieldJSON':_0x896f0e,'unitId':_0x5b8990,'subUnitId':_0x3c3fbf}}),_0x816a00[_0x20cce1(0x3ea)]({'id':Qo['id'],'params':{'pivotTableId':_0x1e56c4,'dataFieldId':_0x896f0e['id'],'unitId':_0x5b8990,'subUnitId':_0x3c3fbf}})),_0x17d82c([..._0x477b5f[_0x20cce1(0x356)],..._0x12e54c['redos'],..._0x2e9bdc],_0x14031e),_0x4e685f[_0x20cce1(0x3d8)]({'unitID':_0x5b8990,'redoMutations':[..._0x477b5f[_0x20cce1(0x356)],..._0x12e54c[_0x20cce1(0x356)],..._0x2e9bdc],'undoMutations':[..._0x477b5f[_0x20cce1(0x39d)],..._0x12e54c[_0x20cce1(0x39d)],..._0x816a00]}),!0x0;}},vs={'type':_0x5158ca[_0x1a4bb1(0x363)],'id':_0x1a4bb1(0x3db),async 'handler'(_0x2c2e39,_0x23bdc8){const _0xfcdc=_0x1a4bb1;if(!_0x23bdc8)return!0x1;const {sourceDataInfo:_0x288645,pivotTableConfig:_0x51f5e0}=_0x23bdc8;if(!_0x288645||!_0x51f5e0)return!0x1;const {unitId:_0x199cd6,subUnitId:_0x543945,range:_0x2ebcab}=_0x288645,_0x4d1317=_0x2c2e39[_0xfcdc(0x39e)](_0x41ab3d),_0x3d76b2=_0x2c2e39[_0xfcdc(0x39e)](X),_0x48f693=_0x2c2e39[_0xfcdc(0x39e)](_0x58b50b),_0x585b75=_0x2c2e39['get'](_0x554f1b),_0x1c1dfc=_0x4d1317['getUnit'](_0x199cd6);if(!_0x1c1dfc)return!0x1;const _0x2476ac=_0x1c1dfc[_0xfcdc(0x397)](_0x543945);if(!_0x2476ac)return!0x1;const _0x521faf=_0x2cc304(0x8),_0x276933=_0x2ebcab||{'startRow':0x0,'startColumn':0x0,'endRow':_0x2476ac[_0xfcdc(0x342)]()-0x1,'endColumn':_0x2476ac[_0xfcdc(0x3d3)]()-0x1};_0x276933[_0xfcdc(0x3e0)]=_0x3c7dce[_0xfcdc(0x251)];const _0x5b013d=(await _0x3d76b2[_0xfcdc(0x43a)]({'unitId':_0x199cd6,'subUnitId':_0x543945,'pivotTableId':_0x521faf,'params':{'type':A['AddPivotTableWithConfig'],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x199cd6,'sheetName':_0x2476ac[_0xfcdc(0x398)](),'subUnitId':_0x543945,'range':_0x276933},'pivotTableId':_0x521faf,'pivotTableIndexConfig':_0x51f5e0}}}))[_0xfcdc(0x28f)][_0xfcdc(0x3bd)];if(!_0x5b013d)return!0x1;const {isEmpty:_0xc0a18e,fieldsConfig:_0x123b73,collectionConfig:_0x1db8b3,changesets:_0x4f5404}=_0x5b013d,_0x3d5b54=_0x1c1dfc[_0xfcdc(0x2ca)]()[_0xfcdc(0x2ac)],_0x5006d2=_0xa3dcb2({'rowCount':_0x2476ac['getRowCount']()-0x1,'columnCount':_0x2476ac[_0xfcdc(0x3d3)]()-0x1});_0x5006d2['id']=_0x469552(),_0x5006d2['name']=_0x1c1dfc['generateNewSheetName'](''+_0x48f693['t'](_0xfcdc(0x287)));const _0x2d1c87={'index':_0x3d5b54,'sheet':_0x5006d2,'unitId':_0x199cd6},{redos:_0xdfbf0}=me(_0x585b75,{'pivotTableId':_0x521faf,'unitId':_0x199cd6,'subUnitId':_0x5006d2['id']},_0x4f5404),_0x512ded=[{'id':_0x298eba['id'],'params':_0x2d1c87},{'id':Ct['id'],'params':{'unitId':_0x199cd6,'subUnitId':_0x5006d2['id'],'pivotTableId':_0x521faf,'pivotTableConfig':{'isEmpty':_0xc0a18e,'fieldsConfig':_0x123b73,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x199cd6,'subUnitId':_0x5006d2['id']},'sourceRangeInfo':{'subUnitId':_0x543945,'unitId':_0x199cd6,'range':_0x276933,'sheetName':_0x2476ac[_0xfcdc(0x398)]()}},'collectionConfig':_0x1db8b3}},..._0xdfbf0];return _0x17d82c(_0x512ded,_0x585b75),!0x0;}},ps={'type':_0x5158ca[_0x1a4bb1(0x363)],'id':'sheet.command.add-pivot-table',async 'handler'(_0x2e4bf6,_0x596b75){const _0x233d4f=_0x1a4bb1;var _0x3aeb11,_0x44a3f2;const _0x2cd19e=_0x2e4bf6[_0x233d4f(0x39e)](_0x554f1b),_0x29bbb8=_0x2e4bf6[_0x233d4f(0x39e)](_0x41ab3d),_0x3d0382=_0x2e4bf6['get'](_0x58b50b),_0x255ae0=_0x2e4bf6[_0x233d4f(0x39e)](X),_0x2b8033=_0x2e4bf6['get'](_0x943f03),_0x478cbb=_0x2e4bf6[_0x233d4f(0x39e)](ve),_0x2fe6e3=_0x2e4bf6['get'](_0x1893a6);if(!_0x596b75)return!0x1;const {pivotTableConfig:_0x9cee69,positionType:_0x5c04a0}=_0x596b75,{targetCellInfo:_0xe90754,sourceRangeInfo:_0x4ff997}=_0x9cee69,{unitId:_0x466ca3,subUnitId:_0x108940}=_0xe90754,_0x1ebba3=_0x29bbb8['getUnit'](_0x466ca3);if(!_0x1ebba3)return!0x1;let _0x9a7d71=0x0;_0x1ebba3[_0x233d4f(0x2ca)]()['forEach'](_0x1383ec=>{const _0x26583f=_0x233d4f;var _0x42a502,_0x350575;_0x9a7d71+=(_0x350575=(_0x42a502=_0x478cbb[_0x26583f(0x2f1)](_0x466ca3,_0x1383ec[_0x26583f(0x1ec)]()))==null?void 0x0:_0x42a502[_0x26583f(0x3ce)])!=null?_0x350575:0x0;});const _0x173a47=(_0x3aeb11=_0x2fe6e3[_0x233d4f(0x309)](_0x2bc50f))!=null?_0x3aeb11:{},{ls:_0x485449,pbk:_0x49335a}=_0x173a47;if(!Jo(_0x485449,_0x49335a))return!0x1;const _0x4f675f=go(so,_0x485449,_0x49335a)['count'];if(_0x9a7d71>=_0x4f675f)return!0x1;const _0x1dd282=_0x596b75['pivotTableId']||_0x2cc304(0x8),_0x3dc617=(await _0x255ae0[_0x233d4f(0x43a)]({'unitId':_0x466ca3,'subUnitId':_0x108940,'pivotTableId':_0x1dd282,'params':{'type':A[_0x233d4f(0x2ad)],'addPivotTable':{'sourceRangeInfo':_0x4ff997,'pivotTableId':_0x1dd282}}}))[_0x233d4f(0x28f)][_0x233d4f(0x346)];if(!_0x3dc617)return!0x1;const {view:_0x3d1ab4,isEmpty:_0x5d7d51,fieldsConfig:_0x38f0a7,collectionConfig:_0x1f3ccc}=_0x3dc617,_0x5b9a6b=[],_0x5169aa=[];if(_0x5c04a0===Wo[_0x233d4f(0x1cf)]){const _0x13e173=_0x1ebba3[_0x233d4f(0x2ca)]()[_0x233d4f(0x2ac)],_0x5a3c69=_0xa3dcb2({});_0x5a3c69['id']=_0x9cee69['targetCellInfo'][_0x233d4f(0x386)],_0x5a3c69[_0x233d4f(0x332)]=(_0x44a3f2=_0x9cee69[_0x233d4f(0x202)]['sheetName'])!=null?_0x44a3f2:_0x1ebba3[_0x233d4f(0x371)](''+_0x3d0382['t'](_0x233d4f(0x287)));const _0x123f0c={'index':_0x13e173,'sheet':_0x5a3c69,'unitId':_0x466ca3},_0x4f37f6=_0x47b071(_0x2e4bf6,_0x123f0c);_0x5b9a6b[_0x233d4f(0x3ea)]({'id':_0x56952e['id'],'params':_0x4f37f6}),_0x5169aa[_0x233d4f(0x3ea)]({'id':_0xcc733c['id'],'params':_0x123f0c});}else{if(!_0x1ebba3[_0x233d4f(0x397)](_0x108940))return!0x1;const _0x1fc0cf=Re(_0x2e4bf6,new _0x1a88a1(),_0xe90754,!0x0);_0x5169aa['push'](..._0x1fc0cf['redos']),_0x5b9a6b['push'](..._0x1fc0cf[_0x233d4f(0x39d)]);const _0x5e88f0={'cellInfo':_0xe90754,'view':_0x3d1ab4,'isEmpty':_0x5d7d51};if(!await _0x2e4bf6[_0x233d4f(0x39e)](ie)[_0x233d4f(0x280)]['fetchThroughAsyncInterceptors'](be)(!0x0,_0x5e88f0))return!0x1;const _0x1aaabf=we(_0x2e4bf6,_0x5e88f0);_0x5169aa['push'](..._0x1aaabf['redos']),_0x5b9a6b['push'](..._0x1aaabf['undos']);}return _0x5169aa[_0x233d4f(0x3ea)]({'id':Ct['id'],'params':{'unitId':_0xe90754[_0x233d4f(0x3c4)],'subUnitId':_0xe90754[_0x233d4f(0x386)],'pivotTableId':_0x1dd282,'pivotTableConfig':{'targetCellInfo':_0xe90754,'sourceRangeInfo':_0x4ff997,'fieldsConfig':_0x38f0a7},'collectionConfig':_0x1f3ccc}}),_0x5b9a6b['unshift']({'id':Et['id'],'params':{'unitId':_0x466ca3,'subUnitId':_0x108940,'pivotTableId':_0x1dd282}}),_0x17d82c(_0x5169aa,_0x2cd19e)&&_0x2b8033[_0x233d4f(0x3d8)]({'unitID':_0x466ca3,'undoMutations':_0x5b9a6b,'redoMutations':_0x5169aa}),!0x0;}},ms={'type':_0x5158ca[_0x1a4bb1(0x363)],'id':_0x1a4bb1(0x44a),async 'handler'(_0x55d17b,_0x1b6118){const _0x249a16=_0x1a4bb1;if(!_0x1b6118)return!0x1;const _0x53253d=_0x55d17b['get'](_0x554f1b),_0x25250e=_0x55d17b[_0x249a16(0x39e)](X),_0x1f629=_0x55d17b[_0x249a16(0x39e)](_0x943f03),{pivotTableId:_0xd03dc6,fieldId:_0x500aec,area:_0x2e27f5,index:_0x3deb51,unitId:_0x297e6e,subUnitId:_0x210563}=_0x1b6118,_0x22ce8c=(await _0x25250e[_0x249a16(0x43a)]({'unitId':_0x297e6e,'subUnitId':_0x210563,'pivotTableId':_0xd03dc6,'params':{'type':A[_0x249a16(0x24e)],'movePivotField':{'fieldId':_0x500aec,'area':_0x2e27f5,'index':_0x3deb51}}}))[_0x249a16(0x28f)][_0x249a16(0x426)];if(!_0x22ce8c)return!0x1;const {changesets:_0x3c8e89,view:_0x4985df,isEmpty:_0x41b164,pivotTableConfig:_0x336db1}=_0x22ce8c,_0x4e8fe6=_0x336db1[_0x249a16(0x202)],_0x148c0e=new _0x1a88a1();_0x148c0e[_0x249a16(0x38e)](_0x4985df);const _0x40ce62={'cellInfo':_0x4e8fe6,'view':_0x148c0e,'isEmpty':_0x41b164};if(!await _0x55d17b[_0x249a16(0x39e)](ie)[_0x249a16(0x280)]['fetchThroughAsyncInterceptors'](be)(!0x0,_0x40ce62))return!0x1;const _0x36a5db=Re(_0x55d17b,_0x148c0e,_0x4e8fe6,_0x41b164),_0x3a358f=we(_0x55d17b,_0x40ce62),{redos:_0x4bae64,undos:_0x584b7b}=me(_0x53253d,{'pivotTableId':_0xd03dc6,'unitId':_0x297e6e,'subUnitId':_0x210563},_0x3c8e89);return _0x17d82c([..._0x36a5db[_0x249a16(0x356)],..._0x3a358f[_0x249a16(0x356)],..._0x4bae64],_0x53253d),_0x1f629['pushUndoRedo']({'unitID':_0x297e6e,'redoMutations':[..._0x36a5db['redos'],..._0x3a358f[_0x249a16(0x356)],..._0x4bae64],'undoMutations':[..._0x36a5db[_0x249a16(0x39d)],..._0x3a358f['undos'],..._0x584b7b]}),!0x0;}},Is={'type':_0x5158ca[_0x1a4bb1(0x363)],'id':'sheet.command.pivot-drill-down',async 'handler'(_0x37b8ad,_0x56fb1e){const _0x464d6e=_0x1a4bb1;var _0x19da06;if(!_0x56fb1e)return!0x1;const _0x46f54c=_0x37b8ad[_0x464d6e(0x39e)](_0x41ab3d),_0x510958=_0x114ebc(_0x46f54c);if(!_0x510958)return!0x1;const {unitId:_0xee1bf9,subUnitId:_0x142cd8,workbook:_0x3f63a9}=_0x510958,{row:_0x25ed35,col:_0x257d43}=_0x56fb1e,_0x4525fe=_0x37b8ad['get'](Ne),_0xfd6bb2=_0x4525fe[_0x464d6e(0x343)](_0xee1bf9,_0x142cd8,_0x25ed35,_0x257d43);if(!_0xfd6bb2)return!0x1;const _0x5397f7=(_0x19da06=_0x4525fe['getPivotItemRenderInfoCache'](_0xee1bf9,_0x142cd8,_0xfd6bb2))==null?void 0x0:_0x19da06[_0x464d6e(0x247)];if(!_0x5397f7)return!0x1;const _0x170ee3=_0x37b8ad[_0x464d6e(0x39e)](ve)[_0x464d6e(0x1df)](_0xee1bf9,_0x142cd8,_0xfd6bb2);if(!_0x170ee3)return!0x1;const {rowInfo:_0x49ef52,colInfo:_0x2f181e}=_0x5397f7,_0x20197e=_0x49ef52[_0x25ed35][_0x464d6e(0x43e)],_0x2614a9=_0x2f181e[_0x257d43][_0x464d6e(0x43e)],_0x597b83=_0x49ef52[_0x25ed35][_0x464d6e(0x20d)],_0x301f3d=_0x2f181e[_0x257d43][_0x464d6e(0x20d)],_0x2aa6c3=_0x20197e[_0x464d6e(0x366)](_0x2614a9),_0x2172cf=_0x170ee3[_0x464d6e(0x2a8)]['rowFields'][_0x464d6e(0x445)](0x0,_0x597b83),_0x41da7a=_0x170ee3[_0x464d6e(0x2a8)][_0x464d6e(0x448)][_0x464d6e(0x445)](0x0,_0x301f3d),_0x507c48=_0x2172cf['concat'](_0x41da7a),_0x441873=_0x2aa6c3[_0x464d6e(0x28c)]((_0x5e4692,_0x36f13c)=>[_0x5e4692,_0x507c48[_0x36f13c]]),_0x5f0306=(await _0x37b8ad[_0x464d6e(0x39e)](X)[_0x464d6e(0x43a)]({'unitId':_0xee1bf9,'subUnitId':_0x142cd8,'pivotTableId':_0xfd6bb2,'params':{'type':A[_0x464d6e(0x20c)],'drillDown':{'tuple':_0x441873}}}))[_0x464d6e(0x28f)][_0x464d6e(0x365)];if(!_0x5f0306)return!0x1;const {indexes:_0x5ae64d,range:_0x318799,sourceUnitId:_0x17e2c5,sourceSubUnitId:_0x5a806d,formatMap:_0x3b88c8}=_0x5f0306,{startRow:_0xc5f7e3,endRow:_0x2ae08a,startColumn:_0x7b522a,endColumn:_0x581cbf}=_0x318799,_0x52dc9d=new _0x18ce59(),_0x42a08b=_0x2ae08a-_0xc5f7e3,_0x2ad4ef=_0x581cbf-_0x7b522a,_0x3599bc={},_0x4c7b8e=_0x114ebc(_0x46f54c,{'unitId':_0x17e2c5,'subUnitId':_0x5a806d});if(!_0x4c7b8e)return!0x1;const _0x16ea44=fe[_0x464d6e(0x27b)],_0x1a31f5=fe[_0x464d6e(0x3be)],_0x380595=fe[_0x464d6e(0x3be)],_0x3d8477=_0x3f63a9[_0x464d6e(0x42d)]()[_0x464d6e(0x22a)](_0x16ea44),_0x2c8cd4=_0x3f63a9[_0x464d6e(0x42d)]()[_0x464d6e(0x22a)](_0x1a31f5),_0x20c52f=_0x3f63a9[_0x464d6e(0x42d)]()[_0x464d6e(0x22a)](_0x380595),{worksheet:_0x543e8f}=_0x4c7b8e;let _0x11655a=0x0;const _0x2111ef=0x1;_0x5ae64d[_0x464d6e(0x34b)](_0x118302=>{const _0x404fe6=_0x464d6e;for(let _0x4b72c7=0x0;_0x4b72c7<=_0x581cbf-_0x7b522a;_0x4b72c7++)_0x52dc9d[_0x404fe6(0x22a)](_0x11655a,_0x4b72c7,_0x543e8f[_0x404fe6(0x24b)](_0x118302+_0x318799[_0x404fe6(0x296)]+_0x2111ef,_0x4b72c7));_0x11655a++;});for(let _0x2e121a=_0x7b522a;_0x2e121a<=_0x581cbf;_0x2e121a++){const _0x2b2b53=_0x543e8f[_0x464d6e(0x24b)](_0xc5f7e3,_0x2e121a);_0x3599bc[_0xc5f7e3]||(_0x3599bc[_0xc5f7e3]={}),_0x3599bc[_0xc5f7e3][_0x2e121a]={..._0x2b2b53,'s':_0x3d8477};}let _0x57ddad=0x1;const _0x42e95c={},_0x2856f1={};_0x52dc9d[_0x464d6e(0x3d6)]((_0x104989,_0x162957)=>{const _0x3ee655=_0x464d6e;_0x162957[_0x3ee655(0x34b)](_0x5baad6=>{const _0x4a12ef=_0x3ee655,_0xf8e700=_0x52dc9d['getValue'](_0x104989,_0x5baad6);if(_0x3599bc[_0x57ddad]||(_0x3599bc[_0x57ddad]={}),_0x3599bc[_0x57ddad][_0x5baad6]={..._0xf8e700,'s':_0x57ddad%0x2===0x0?_0x20c52f:_0x2c8cd4},_0x3b88c8[_0x5baad6]&&_0x104989>=0x0){const _0x4230e4=_0x57ddad%0x2===0x0;let _0xc80a38=_0x4230e4?_0x2856f1[_0x5baad6]:_0x42e95c[_0x5baad6];_0xc80a38||(_0xc80a38=_0x3f63a9[_0x4a12ef(0x42d)]()[_0x4a12ef(0x22a)]({..._0x4230e4?_0x380595:_0x1a31f5,'n':{'pattern':_0x3b88c8[_0x5baad6]}}),_0x4230e4?_0x2856f1[_0x5baad6]=_0xc80a38:_0x42e95c[_0x5baad6]=_0xc80a38),_0x3599bc[_0x57ddad][_0x5baad6]['s']=_0xc80a38;}}),_0x57ddad++;});const _0x396e47=new _0x18ce59(_0x3599bc),_0x56d375={};_0x396e47[_0x464d6e(0x2c1)]((_0x208a80,_0x546de9,_0x278e33)=>{_0x56d375[_0x208a80]||(_0x56d375[_0x208a80]={}),_0x56d375[_0x208a80][_0x546de9]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x29d90b=[],_0x2e27e9=[],_0x5dd71b=_0x3f63a9[_0x464d6e(0x2ca)]()[_0x464d6e(0x2ac)],_0x335471=_0xa3dcb2({'rowCount':Math[_0x464d6e(0x43c)](_0x327ba6,_0x42a08b+0xa),'columnCount':Math[_0x464d6e(0x43c)](_0x26e9e0,_0x2ad4ef+0x5)}),_0x32ff3c=_0x37b8ad['get'](_0x58b50b);_0x335471['id']=_0x469552(),_0x335471[_0x464d6e(0x332)]=_0x3f63a9[_0x464d6e(0x371)](''+_0x32ff3c['t'](_0x464d6e(0x287)));const _0x114176={'index':_0x5dd71b,'sheet':_0x335471,'unitId':_0xee1bf9},_0x500aa4=_0x47b071(_0x37b8ad,_0x114176);_0x2e27e9[_0x464d6e(0x3ea)]({'id':_0xcc733c['id'],'params':_0x114176}),_0x29d90b[_0x464d6e(0x3ea)]({'id':_0x56952e['id'],'params':_0x500aa4}),_0x2e27e9[_0x464d6e(0x3ea)]({'id':_0x324b45['id'],'params':{'unitId':_0xee1bf9,'subUnitId':_0x335471['id'],'cellValue':_0x3599bc}}),_0x29d90b[_0x464d6e(0x25d)]({'id':_0x324b45['id'],'params':{'unitId':_0xee1bf9,'subUnitId':_0x335471['id'],'cellValue':_0x56d375}});const _0x28802b={'startRow':0x0,'startColumn':0x0,'endRow':_0x57ddad-0x1,'endColumn':_0x581cbf};_0x2e27e9[_0x464d6e(0x3ea)]({'id':_0x2ac767['id'],'params':{'unitId':_0xee1bf9,'subUnitId':_0x335471['id'],'range':_0x28802b}}),_0x29d90b[_0x464d6e(0x25d)]({'id':_0x3f41c9['id'],'params':{'unitId':_0xee1bf9,'subUnitId':_0x335471['id']}});const _0x31a0a7=_0x37b8ad['get'](_0x554f1b);return _0x17d82c(_0x2e27e9,_0x31a0a7)&&_0x37b8ad[_0x464d6e(0x39e)](_0x943f03)['pushUndoRedo']({'unitID':_0xee1bf9,'undoMutations':_0x29d90b,'redoMutations':_0x2e27e9}),!0x0;}},Cs={'type':_0x5158ca[_0x1a4bb1(0x363)],'id':'sheet.command.remove-pivot-field',async 'handler'(_0x200a15,_0x56fe03){const _0x4dcc58=_0x1a4bb1;if(!_0x56fe03)return!0x1;const _0x580831=_0x200a15['get'](_0x554f1b),_0x239ac7=_0x200a15[_0x4dcc58(0x39e)](X),_0x44d1ec=_0x200a15['get'](_0x943f03),{pivotTableId:_0x23e2aa,fieldIds:_0x2272c2,unitId:_0x3a0c08,subUnitId:_0x5486ad}=_0x56fe03,_0x4017a1=(await _0x239ac7[_0x4dcc58(0x43a)]({'unitId':_0x3a0c08,'subUnitId':_0x5486ad,'pivotTableId':_0x23e2aa,'params':{'type':A[_0x4dcc58(0x425)],'removePivotField':{'fieldIds':_0x2272c2}}}))[_0x4dcc58(0x28f)]['removePivotField'];if(!_0x4017a1)return!0x1;const {view:_0x19cf45,changesets:_0x43c5be,isEmpty:_0xb6afe4,pivotTableConfig:_0x1868f3}=_0x4017a1,_0xe0d7a5=_0x1868f3[_0x4dcc58(0x202)],_0x1b5e49=new _0x1a88a1();_0x1b5e49['formJSON'](_0x19cf45);const _0x5f0327={'cellInfo':_0xe0d7a5,'view':_0x1b5e49,'isEmpty':_0xb6afe4};if(!await _0x200a15[_0x4dcc58(0x39e)](ie)[_0x4dcc58(0x280)]['fetchThroughAsyncInterceptors'](be)(!0x0,_0x5f0327))return!0x1;const _0x536fa7=Re(_0x200a15,_0x1b5e49,_0xe0d7a5,_0xb6afe4),_0x347d77=we(_0x200a15,_0x5f0327),{redos:_0x6e7a70,undos:_0x3d204b}=me(_0x580831,{'pivotTableId':_0x23e2aa,'unitId':_0x3a0c08,'subUnitId':_0x5486ad},_0x43c5be);return _0x17d82c([..._0x536fa7[_0x4dcc58(0x356)],..._0x347d77[_0x4dcc58(0x356)],..._0x6e7a70],_0x580831),_0x44d1ec[_0x4dcc58(0x3d8)]({'unitID':_0x3a0c08,'redoMutations':[..._0x536fa7['redos'],..._0x347d77[_0x4dcc58(0x356)],..._0x6e7a70],'undoMutations':[..._0x536fa7['undos'],..._0x347d77[_0x4dcc58(0x39d)],..._0x3d204b]}),!0x0;}},bs={'type':_0x5158ca[_0x1a4bb1(0x363)],'id':_0x1a4bb1(0x408),async 'handler'(_0x21ada0,_0x164737){const _0x2075a4=_0x1a4bb1;var _0x1af942;const _0x449c75=_0x21ada0['get'](_0x554f1b),_0x5a7429=_0x21ada0['get'](X),_0x55cbd7=_0x21ada0[_0x2075a4(0x39e)](Ne),_0x303b7a=_0x21ada0['get'](_0x41ab3d),_0x42c49b=_0x21ada0['get'](_0x943f03);if(!_0x164737)return!0x1;const {unitId:_0x45d33c,subUnitId:_0xa39308,row:_0x2f07ad,col:_0x3c3d17,collapse:_0x43b0d7}=_0x164737,_0x316b93=_0x303b7a[_0x2075a4(0x228)](_0x45d33c);if(!_0x316b93||!_0x316b93['getSheetBySheetId'](_0xa39308))return!0x1;const _0x410ed0=_0x55cbd7[_0x2075a4(0x343)](_0x45d33c,_0xa39308,_0x2f07ad,_0x3c3d17);if(!_0x410ed0)return!0x1;const _0x3571ee=_0x55cbd7[_0x2075a4(0x258)](_0x45d33c,_0xa39308,_0x410ed0);if(!_0x3571ee)return!0x1;const _0x1a3f95=_0x1bfeee(_0x2f07ad,_0x3c3d17),{rangesInfo:_0x5d0219,areaInfo:_0xbf1b43,headerMap:_0x452c6e}=_0x3571ee;if(!_0x5d0219||!_0xbf1b43||!_0x452c6e)return!0x1;const _0x27f381=Object[_0x2075a4(0x37f)](_0x5d0219)[_0x2075a4(0x3e1)](_0x45f2ac=>_0x5d0219[_0x45f2ac][_0x2075a4(0x2f6)](_0x22b5c2=>_0x41833c['contains'](_0x22b5c2,_0x1a3f95)));let _0xb33722;_0x27f381===_0x2075a4(0x441)?_0xb33722=_0x452c6e[_0x2075a4(0x38f)][_0x3c3d17]:_0x27f381===_0x2075a4(0x30d)&&(_0xb33722=_0x452c6e['colHeaderMap'][_0x2f07ad]);const _0x1ae6b4=_0xb33722==null?void 0x0:_0xb33722[_0x2075a4(0x380)],_0x226d89=(_0x1af942=_0x55cbd7['getPivotTableCellData'](_0x45d33c,_0xa39308,_0x2f07ad,_0x3c3d17))==null?void 0x0:_0x1af942['v'];if(_0x226d89==null||!_0x410ed0||!_0x1ae6b4)return!0x1;const _0xcc445c=await _0x5a7429[_0x2075a4(0x43a)]({'unitId':_0x45d33c,'subUnitId':_0xa39308,'pivotTableId':_0x410ed0,'params':{'type':A['SetPivotCollapse'],'setPivotCollapse':{'tableFieldId':_0x1ae6b4,'collapse':_0x43b0d7,'item':_0x226d89}}}),_0x186880=_0xcc445c==null?void 0x0:_0xcc445c[_0x2075a4(0x28f)][_0x2075a4(0x413)];if(!_0x186880)return!0x1;const {view:_0xd4a6b5,pivotTableConfig:_0x1ada40,isEmpty:_0x19e656,changesets:_0x3a2e3c}=_0x186880,_0x2a10a4=new _0x1a88a1();_0x2a10a4[_0x2075a4(0x38e)](_0xd4a6b5);const _0x4a4ad3=_0x1ada40[_0x2075a4(0x202)],_0x4c48a8={'cellInfo':_0x4a4ad3,'view':_0x2a10a4,'isEmpty':_0x19e656};if(!await _0x21ada0[_0x2075a4(0x39e)](ie)[_0x2075a4(0x280)][_0x2075a4(0x1dc)](be)(!0x0,_0x4c48a8))return!0x1;const _0x425a0c=Re(_0x21ada0,_0x2a10a4,_0x4a4ad3,_0x19e656),_0x3df52a=we(_0x21ada0,_0x4c48a8),{redos:_0x43b10f,undos:_0x40f2bb}=me(_0x449c75,{'pivotTableId':_0x410ed0,'unitId':_0x45d33c,'subUnitId':_0xa39308},_0x3a2e3c);return _0x17d82c([..._0x425a0c[_0x2075a4(0x356)],..._0x3df52a[_0x2075a4(0x356)],..._0x43b10f],_0x449c75),_0x42c49b['pushUndoRedo']({'unitID':_0x45d33c,'redoMutations':[..._0x425a0c[_0x2075a4(0x356)],..._0x3df52a['redos'],..._0x43b10f],'undoMutations':[..._0x425a0c[_0x2075a4(0x39d)],..._0x3df52a['undos'],..._0x40f2bb]}),!0x0;}},Ss={'type':_0x5158ca[_0x1a4bb1(0x363)],'id':_0x1a4bb1(0x3e2),async 'handler'(_0x3d69dd,_0xf74bb9){const _0x49f802=_0x1a4bb1;if(!_0xf74bb9)return!0x1;const _0x2f8907=_0x3d69dd[_0x49f802(0x39e)](_0x554f1b),{pivotTableId:_0x55b537,tableFieldId:_0x5c5bb4,items:_0x51c3bb,unitId:_0x3df564,subUnitId:_0x4cc889,isAll:_0x173973}=_0xf74bb9,_0x2d7d07=_0x3d69dd[_0x49f802(0x39e)](X),_0x48fcfb=_0x3d69dd[_0x49f802(0x39e)](_0x943f03),_0x4d2809=(await _0x2d7d07[_0x49f802(0x43a)]({'unitId':_0x3df564,'subUnitId':_0x4cc889,'pivotTableId':_0x55b537,'params':{'type':A['SetPivotFilter'],'setPivotFilter':{'tableFieldId':_0x5c5bb4,'items':_0x51c3bb,'isAll':_0x173973}}}))[_0x49f802(0x28f)][_0x49f802(0x230)];if(!_0x4d2809)return!0x1;const {changesets:_0x38ceaa,pivotTableConfig:_0x3c0720,isEmpty:_0x1a635f,view:_0x346a67}=_0x4d2809,_0x1ecf49=_0x3c0720['targetCellInfo'],_0x322d5c=new _0x1a88a1();_0x322d5c['formJSON'](_0x346a67);const _0x3d1f64={'cellInfo':_0x1ecf49,'view':_0x322d5c,'isEmpty':_0x1a635f};if(!await _0x3d69dd[_0x49f802(0x39e)](ie)['asyncInterceptor']['fetchThroughAsyncInterceptors'](be)(!0x0,_0x3d1f64))return!0x1;const _0x263d6f=Re(_0x3d69dd,_0x322d5c,_0x1ecf49,_0x1a635f),_0x4ad0ed=we(_0x3d69dd,_0x3d1f64),{undos:_0x3865b3,redos:_0x3654fc}=me(_0x2f8907,{'pivotTableId':_0x55b537,'unitId':_0x3df564,'subUnitId':_0x4cc889},_0x38ceaa);return _0x17d82c([..._0x263d6f[_0x49f802(0x356)],..._0x4ad0ed['redos'],..._0x3654fc],_0x2f8907),_0x48fcfb[_0x49f802(0x3d8)]({'unitID':_0x3df564,'redoMutations':[..._0x263d6f[_0x49f802(0x356)],..._0x4ad0ed['redos'],..._0x3654fc],'undoMutations':[..._0x263d6f[_0x49f802(0x39d)],..._0x4ad0ed[_0x49f802(0x39d)],..._0x3865b3]}),!0x0;}},Ps={'type':_0x5158ca[_0x1a4bb1(0x363)],'id':_0x1a4bb1(0x301),async 'handler'(_0x40f393,_0x24eb5d){const _0x3cac4c=_0x1a4bb1;if(!_0x24eb5d)return!0x1;const _0x14201b=_0x40f393[_0x3cac4c(0x39e)](_0x554f1b),_0x49159c=_0x40f393['get'](_0x943f03),_0x53c3e6=_0x40f393[_0x3cac4c(0x39e)](X),{info:_0x5e99b0,tableFieldId:_0xca955,pivotTableId:_0x30fe14,unitId:_0x2e0566,subUnitId:_0x311381}=_0x24eb5d,_0x578cdd=(await _0x53c3e6[_0x3cac4c(0x43a)]({'unitId':_0x2e0566,'subUnitId':_0x311381,'pivotTableId':_0x30fe14,'params':{'type':A['SetPivotSort'],'setPivotSort':{'tableFieldId':_0xca955,'info':_0x5e99b0}}}))[_0x3cac4c(0x28f)][_0x3cac4c(0x257)];if(!_0x578cdd)return!0x1;const {changesets:_0x2a0986}=_0x578cdd,{redos:_0x489ad3,undos:_0x55a71f}=me(_0x14201b,{'pivotTableId':_0x30fe14,'unitId':_0x2e0566,'subUnitId':_0x311381},_0x2a0986);return _0x17d82c(_0x489ad3,_0x14201b),_0x49159c[_0x3cac4c(0x3d8)]({'unitID':_0x2e0566,'redoMutations':_0x489ad3,'undoMutations':_0x55a71f}),!0x0;}},ys={'type':_0x5158ca[_0x1a4bb1(0x363)],'id':_0x1a4bb1(0x3e7),async 'handler'(_0x432acf,_0x22d7d8){const _0x324923=_0x1a4bb1;if(!_0x22d7d8)return!0x1;const _0x23f6ba=_0x432acf[_0x324923(0x39e)](_0x554f1b),_0x4a61fc=_0x432acf[_0x324923(0x39e)](_0x943f03),_0xf0edaf=_0x432acf['get'](X),{displayName:_0x598291,subtotalType:_0x433c95,format:_0xb62258,tableFieldId:_0x29a0bc,pivotTableId:_0x577ce4,unitId:_0x3675a1,subUnitId:_0x2f3327}=_0x22d7d8,_0x1b82b6=(await _0xf0edaf[_0x324923(0x43a)]({'unitId':_0x3675a1,'subUnitId':_0x2f3327,'pivotTableId':_0x577ce4,'params':{'type':A[_0x324923(0x379)],'setPivotSetting':{'tableFieldId':_0x29a0bc,'displayName':_0x598291,'subtotalType':_0x433c95,'format':_0xb62258}}}))[_0x324923(0x28f)][_0x324923(0x392)];if(!_0x1b82b6)return!0x1;const {changesets:_0x5e91a6,view:_0x20e951,pivotTableConfig:_0x4580db,isEmpty:_0x27975d}=_0x1b82b6,_0x12fae2=_0x4580db[_0x324923(0x202)],_0x57eb3a=new _0x1a88a1();_0x57eb3a[_0x324923(0x38e)](_0x20e951);const _0x2e1a49={'cellInfo':_0x12fae2,'view':_0x57eb3a,'isEmpty':_0x27975d};if(!await _0x432acf[_0x324923(0x39e)](ie)[_0x324923(0x280)][_0x324923(0x1dc)](be)(!0x0,_0x2e1a49))return!0x1;const _0x2b8bde=Re(_0x432acf,_0x57eb3a,_0x12fae2,_0x27975d),_0x19c8fa=we(_0x432acf,_0x2e1a49),{undos:_0x5a415b,redos:_0x5a0288}=me(_0x23f6ba,{'pivotTableId':_0x577ce4,'unitId':_0x3675a1,'subUnitId':_0x2f3327},_0x5e91a6);return _0x17d82c([..._0x2b8bde[_0x324923(0x356)],..._0x19c8fa[_0x324923(0x356)],..._0x5a0288],_0x23f6ba),_0x4a61fc[_0x324923(0x3d8)]({'unitID':_0x3675a1,'redoMutations':[..._0x2b8bde['redos'],..._0x19c8fa['redos'],..._0x5a0288],'undoMutations':[..._0x2b8bde['undos'],..._0x19c8fa[_0x324923(0x39d)],..._0x5a415b]}),!0x0;}},Ts={'type':_0x5158ca[_0x1a4bb1(0x363)],'id':'sheet.command.update-pivot-table-source-range',async 'handler'(_0x8ca0aa,_0x36f963){const _0x4cb920=_0x1a4bb1,_0x43c112=_0x8ca0aa[_0x4cb920(0x39e)](_0x554f1b),_0x24f5f5=_0x8ca0aa[_0x4cb920(0x39e)](X),_0x1daaa1=_0x8ca0aa[_0x4cb920(0x39e)](_0x943f03);if(!_0x36f963)return!0x1;const {token:_0x278b49,dataRangeInfo:_0x10130b,unitId:_0x217dbc,subUnitId:_0x520640}=_0x36f963,_0xcf66db=[],_0x4beb3b=[],_0x12a8a1=(await _0x24f5f5['getPivotDisplayConfig']({'unitId':_0x217dbc,'subUnitId':_0x520640,'pivotTableId':_0x278b49,'params':{'type':A[_0x4cb920(0x427)],'updatePivotSource':{'dataRangeInfo':_0x10130b,'unitId':_0x217dbc,'subUnitId':_0x520640}}}))[_0x4cb920(0x28f)][_0x4cb920(0x360)];if(!_0x12a8a1)return!0x1;const {changesets:_0x116bf2,deleteIds:_0xe21ea0,collectionConfig:_0x153963,oldCollectionConfig:_0xcbb10d,view:_0x47d6d8,isEmpty:_0x57b539,pivotTableConfig:_0x10a7d5}=_0x12a8a1;_0x4beb3b[_0x4cb920(0x3ea)]({'id':to['id'],'params':{'pivotTableId':_0x278b49,'deleteIds':_0xe21ea0,'collectionJSON':_0x153963,'dataRangeInfo':_0x10130b,'unitId':_0x217dbc,'subUnitId':_0x520640}}),_0xcf66db[_0x4cb920(0x25d)]({'id':to['id'],'params':{'pivotTableId':_0x278b49,'deleteIds':[],'collectionJSON':_0xcbb10d,'dataRangeInfo':_0x10a7d5[_0x4cb920(0x2d2)],'unitId':_0x217dbc,'subUnitId':_0x520640}});const _0x14e6e9=_0x10a7d5['targetCellInfo'],_0x49c0ca=new _0x1a88a1();_0x49c0ca[_0x4cb920(0x38e)](_0x47d6d8);const _0xb75428={'cellInfo':_0x14e6e9,'view':_0x49c0ca,'isEmpty':_0x57b539};if(!await _0x8ca0aa[_0x4cb920(0x39e)](ie)[_0x4cb920(0x280)][_0x4cb920(0x1dc)](be)(!0x0,_0xb75428))return!0x1;const _0x37d216=Re(_0x8ca0aa,_0x49c0ca,_0x14e6e9,_0x57b539),_0x302fe0=we(_0x8ca0aa,_0xb75428),{undos:_0x4f13e6,redos:_0xa93c7b}=me(_0x43c112,{'pivotTableId':_0x278b49,'unitId':_0x217dbc,'subUnitId':_0x520640},_0x116bf2);return _0x17d82c([..._0x37d216[_0x4cb920(0x356)],..._0x302fe0[_0x4cb920(0x356)],..._0x4beb3b,..._0x4f13e6],_0x43c112),_0x1daaa1[_0x4cb920(0x3d8)]({'unitID':_0x217dbc,'redoMutations':[..._0x37d216[_0x4cb920(0x356)],..._0x302fe0[_0x4cb920(0x356)],..._0x4beb3b,..._0x4f13e6],'undoMutations':[..._0x37d216[_0x4cb920(0x39d)],..._0x302fe0[_0x4cb920(0x39d)],..._0xcf66db,..._0xa93c7b]}),!0x0;}},Ms={'type':_0x5158ca[_0x1a4bb1(0x363)],'id':_0x1a4bb1(0x2ef),async 'handler'(_0x102dfd,_0x1d9ff9){const _0x55dd2b=_0x1a4bb1;if(!_0x1d9ff9)return!0x1;const _0x31cb1d=_0x102dfd[_0x55dd2b(0x39e)](_0x554f1b),_0x4c39f1=_0x102dfd[_0x55dd2b(0x39e)](X),_0x2100ea=_0x102dfd[_0x55dd2b(0x39e)](_0x41ab3d),_0x46e522=_0x102dfd[_0x55dd2b(0x39e)](_0x943f03),{pivotTableId:_0x5722e7,position:_0x1bdebc,index:_0x53efd1}=_0x1d9ff9,_0x598bfa=_0x114ebc(_0x2100ea);if(!_0x598bfa)return!0x1;const {unitId:_0x4ac767,subUnitId:_0x47e391}=_0x598bfa,_0x822340=(await _0x4c39f1[_0x55dd2b(0x43a)]({'unitId':_0x4ac767,'subUnitId':_0x47e391,'pivotTableId':_0x5722e7,'params':{'type':A[_0x55dd2b(0x203)],'updateValuePosition':{'position':_0x1bdebc,'index':_0x53efd1}}}))[_0x55dd2b(0x28f)][_0x55dd2b(0x2c3)];if(!_0x822340)return!0x1;const {changesets:_0x3b0ec5,view:_0x42fd54,isEmpty:_0x6d93bf,pivotTableConfig:_0x245618}=_0x822340,_0x375694=_0x245618[_0x55dd2b(0x202)],_0x260765=new _0x1a88a1();_0x260765['formJSON'](_0x42fd54);const _0x3fa263=_0x102dfd[_0x55dd2b(0x39e)](ie),_0x518f2f={'cellInfo':_0x375694,'view':_0x260765,'isEmpty':_0x6d93bf};if(!await _0x3fa263['asyncInterceptor'][_0x55dd2b(0x1dc)](be)(!0x0,_0x518f2f))return!0x1;const _0x63692d=Re(_0x102dfd,_0x260765,_0x375694,_0x6d93bf),_0x1742d6=we(_0x102dfd,_0x518f2f),{undos:_0x321736,redos:_0xc15f64}=me(_0x31cb1d,{'pivotTableId':_0x5722e7,'unitId':_0x4ac767,'subUnitId':_0x47e391},_0x3b0ec5);return _0x17d82c([..._0x63692d[_0x55dd2b(0x356)],..._0x1742d6[_0x55dd2b(0x356)],..._0xc15f64],_0x31cb1d),_0x46e522[_0x55dd2b(0x3d8)]({'unitID':_0x4ac767,'redoMutations':[..._0x63692d[_0x55dd2b(0x356)],..._0x1742d6[_0x55dd2b(0x356)],..._0xc15f64],'undoMutations':[..._0x63692d['undos'],..._0x1742d6[_0x55dd2b(0x39d)],..._0x321736]}),!0x0;}},Rs={'type':_0x5158ca[_0x1a4bb1(0x363)],'id':_0x1a4bb1(0x415),'handler':(_0x28d0ad,_0xfb72a0)=>{const _0x1ee533=_0x1a4bb1,_0x432508=_0x28d0ad[_0x1ee533(0x39e)](_0x554f1b),_0x263372=_0x28d0ad[_0x1ee533(0x39e)](_0x943f03),_0x327375=_0x28d0ad['get'](ve),_0x6d940d=_0x28d0ad[_0x1ee533(0x39e)](_0x41ab3d);if(!_0xfb72a0)return!0x1;const _0x10f05c=_0x114ebc(_0x6d940d);if(!_0x10f05c)return!0x1;const {unitId:_0x165bc6,subUnitId:_0x30d79b,workbook:_0x2370ea}=_0x10f05c,_0xffcc1a=_0x327375[_0x1ee533(0x1df)](_0xfb72a0['originTargetInfo'][_0x1ee533(0x3c4)],_0xfb72a0[_0x1ee533(0x1ca)][_0x1ee533(0x386)],_0xfb72a0['pivotTableId']);if(!_0xffcc1a)return!0x1;const _0x3307ab=_0x2370ea[_0x1ee533(0x397)](_0xfb72a0[_0x1ee533(0x202)][_0x1ee533(0x386)]);if(!_0x3307ab)throw new Error(_0x1ee533(0x29d));const _0x3bb018=_0x3307ab[_0x1ee533(0x342)](),_0x25572d=_0x3307ab[_0x1ee533(0x3d3)]();if(_0xfb72a0[_0x1ee533(0x202)][_0x1ee533(0x3dc)]>_0x3bb018||_0xfb72a0[_0x1ee533(0x202)][_0x1ee533(0x24a)]>_0x25572d)throw new Error(_0x1ee533(0x2dc));const _0x4f5f19=[{'id':pt['id'],'params':{'unitId':_0x165bc6,'subUnitId':_0xfb72a0['targetCellInfo'][_0x1ee533(0x386)],'pivotTableId':_0xfb72a0[_0x1ee533(0x38b)],'targetCellPosition':{'row':_0xfb72a0[_0x1ee533(0x202)][_0x1ee533(0x3dc)],'col':_0xfb72a0[_0x1ee533(0x202)][_0x1ee533(0x24a)]}}}],_0x177cdf=[{'id':pt['id'],'params':{'unitId':_0x165bc6,'subUnitId':_0x30d79b,'pivotTableId':_0xfb72a0[_0x1ee533(0x38b)],'targetCellPosition':{'row':_0xffcc1a[_0x1ee533(0x202)]['row'],'col':_0xffcc1a[_0x1ee533(0x202)][_0x1ee533(0x24a)]}}}];return _0x17d82c(_0x4f5f19,_0x432508)&&_0x263372[_0x1ee533(0x3d8)]({'unitID':_0x165bc6,'undoMutations':_0x177cdf,'redoMutations':_0x4f5f19}),!0x0;}},ws={'type':_0x5158ca[_0x1a4bb1(0x363)],'id':_0x1a4bb1(0x30b),async 'handler'(_0x75b5c0,_0x56c496){const _0x5b7ce1=_0x1a4bb1;if(!_0x56c496)return!0x1;const _0x4f6b01=_0x75b5c0[_0x5b7ce1(0x39e)](_0x554f1b),{pivotTableId:_0x34e3f3,fieldId:_0x24aacf,valueFilterInfo:_0x21b283,unitId:_0x159c71,subUnitId:_0x32b59f}=_0x56c496,_0x28db28=_0x75b5c0[_0x5b7ce1(0x39e)](X),_0xc7c3af=_0x75b5c0[_0x5b7ce1(0x39e)](_0x943f03),_0x323b3f=(await _0x28db28[_0x5b7ce1(0x43a)]({'unitId':_0x159c71,'subUnitId':_0x32b59f,'pivotTableId':_0x34e3f3,'params':{'type':A[_0x5b7ce1(0x21e)],'setValuePivotFilter':{'tableFieldId':_0x24aacf,'filterInfo':_0x21b283}}}))['result'][_0x5b7ce1(0x2fd)];if(!_0x323b3f)return!0x1;const {changesets:_0x3bbbeb,pivotTableConfig:_0x46cafa,isEmpty:_0x932a96,view:_0x318356}=_0x323b3f,_0x5555b7=_0x46cafa[_0x5b7ce1(0x202)],_0x5d1f36=new _0x1a88a1();_0x5d1f36[_0x5b7ce1(0x38e)](_0x318356);const _0x2aed6e={'cellInfo':_0x5555b7,'view':_0x5d1f36,'isEmpty':_0x932a96};if(!await _0x75b5c0[_0x5b7ce1(0x39e)](ie)['asyncInterceptor']['fetchThroughAsyncInterceptors'](be)(!0x0,_0x2aed6e))return!0x1;const _0x35ac92=Re(_0x75b5c0,_0x5d1f36,_0x5555b7,_0x932a96),_0x524bb2=we(_0x75b5c0,_0x2aed6e),{undos:_0x10c66c,redos:_0x4eea55}=me(_0x4f6b01,{'pivotTableId':_0x34e3f3,'unitId':_0x159c71,'subUnitId':_0x32b59f},_0x3bbbeb);return _0x17d82c([..._0x35ac92[_0x5b7ce1(0x356)],..._0x524bb2[_0x5b7ce1(0x356)],..._0x4eea55],_0x4f6b01),_0xc7c3af['pushUndoRedo']({'unitID':_0x159c71,'redoMutations':[..._0x35ac92['redos'],..._0x524bb2[_0x5b7ce1(0x356)],..._0x4eea55],'undoMutations':[..._0x35ac92[_0x5b7ce1(0x39d)],..._0x524bb2[_0x5b7ce1(0x39d)],..._0x10c66c]}),!0x0;}},_s={'type':_0x5158ca[_0x1a4bb1(0x363)],'id':_0x1a4bb1(0x341),async 'handler'(_0x3c5952,_0x1b8091){const _0x28d42c=_0x1a4bb1;if(!_0x1b8091)return!0x1;const _0x57ed3e=_0x3c5952[_0x28d42c(0x39e)](_0x554f1b),_0x406bb4=_0x3c5952['get'](_0x943f03),_0x195e84=_0x3c5952['get'](X),{pivotTableConfig:_0x319cb4,pivotTableId:_0x17e6c7,unitId:_0x24a2a4,subUnitId:_0x150b7a}=_0x1b8091,_0x5ac751=(await _0x195e84[_0x28d42c(0x43a)]({'unitId':_0x24a2a4,'subUnitId':_0x150b7a,'pivotTableId':_0x17e6c7,'params':{'type':A['SetPivotTableConfig'],'setPivotTableConfig':{'pivotTableId':_0x17e6c7,'pivotTableConfig':_0x319cb4}}}))[_0x28d42c(0x28f)]['setPivotTableConfig'];if(!_0x5ac751)return!0x1;const {changesets:_0x2bab24}=_0x5ac751,{redos:_0x3ae811,undos:_0x5cbd78}=me(_0x57ed3e,{'pivotTableId':_0x17e6c7,'unitId':_0x24a2a4,'subUnitId':_0x150b7a},_0x2bab24);return _0x17d82c(_0x3ae811,_0x57ed3e),_0x406bb4[_0x28d42c(0x3d8)]({'unitID':_0x24a2a4,'redoMutations':_0x3ae811,'undoMutations':_0x5cbd78}),!0x0;}},Fs={'type':_0x5158ca[_0x1a4bb1(0x363)],'id':_0x1a4bb1(0x206),async 'handler'(_0x255f65,_0x343018){const _0x55927e=_0x1a4bb1;if(!_0x343018)return!0x1;const _0x5d54cc=_0x255f65[_0x55927e(0x39e)](_0x554f1b),_0x148ddc=_0x255f65[_0x55927e(0x39e)](_0x943f03),_0x371a9a=_0x255f65['get'](X),{resetArea:_0x9b5b9e,pivotTableId:_0x4449b6,unitId:_0x3c7d7e,subUnitId:_0x1c431b}=_0x343018,_0x116aea=(await _0x371a9a['getPivotDisplayConfig']({'unitId':_0x3c7d7e,'subUnitId':_0x1c431b,'pivotTableId':_0x4449b6,'params':{'type':A[_0x55927e(0x236)],'resetPivotTable':{'pivotTableId':_0x4449b6,'resetArea':_0x9b5b9e}}}))[_0x55927e(0x28f)][_0x55927e(0x2d0)];if(!_0x116aea)return!0x1;const {changesets:_0x55978a}=_0x116aea,{redos:_0x4fde20,undos:_0x3b8bb4}=me(_0x5d54cc,{'pivotTableId':_0x4449b6,'unitId':_0x3c7d7e,'subUnitId':_0x1c431b},_0x55978a);return _0x17d82c(_0x4fde20,_0x5d54cc),_0x148ddc[_0x55927e(0x3d8)]({'unitID':_0x3c7d7e,'redoMutations':_0x4fde20,'undoMutations':_0x3b8bb4}),!0x0;}},oo={'id':'sheet.mutation.update-date-group','type':_0x5158ca['MUTATION'],'handler':(_0x361a69,_0xb13377)=>{const _0x1dee05=_0x1a4bb1;if(!_0xb13377)return!0x1;if(!!_0x361a69['get'](_0x1893a6)[_0x1dee05(0x309)](q))return!0x0;const {unitId:_0x3cddd4,subUnitId:_0x5f873c,pivotTableId:_0x4e28a6,tableFieldId:_0x93578e,dateType:_0x3ac897}=_0xb13377,_0x196a90=_0x361a69['get'](G),_0x1edc88=_0x196a90[_0x1dee05(0x2e6)](_0x4e28a6);if(!_0x1edc88)return!0x1;const _0x15d08f=_0x1edc88[_0x1dee05(0x2b0)](_0x93578e);if(!_0x15d08f)return!0x1;const _0x230c2a=_0x15d08f['getOriginFieldId'](),_0x243513=_0x1edc88[_0x1dee05(0x244)](_0x230c2a),_0x539d84=(_0x243513==null?void 0x0:_0x243513[_0x1dee05(0x398)]())+'\x20'+qo(_0x361a69,_0x3ac897);_0x196a90[_0x1dee05(0x2f4)](_0x3cddd4,_0x4e28a6)[_0x1dee05(0x2df)](_0x15d08f['id'],_0x539d84);const _0x2b9e98=_0x1edc88[_0x1dee05(0x1f2)](_0x93578e);if(!_0x2b9e98)return!0x1;_0x1edc88[_0x1dee05(0x30e)](_0x2b9e98[_0x1dee05(0x272)](),_0x539d84),_0x15d08f[_0x1dee05(0x402)](_0x3ac897);const _0x293122=_0x196a90[_0x1dee05(0x1df)](_0x3cddd4,_0x5f873c,_0x4e28a6);return _0x196a90[_0x1dee05(0x31b)]({'unitId':_0x3cddd4,'subUnitId':_0x5f873c,'token':_0x4e28a6,'type':B[_0x1dee05(0x3d4)],'pivotConfig':_0x293122}),!0x0;}},Ds={'id':_0x1a4bb1(0x442),'type':_0x5158ca[_0x1a4bb1(0x363)],'handler':(_0x2799ec,_0x10eb91)=>{const _0x491d3e=_0x1a4bb1;if(!_0x10eb91)return!0x1;const _0x5554a1=_0x2799ec['get'](_0x943f03),{unitId:_0x4b8d82,subUnitId:_0x39a1c5,pivotTableId:_0x2baf33,tableFieldId:_0x3bfe87}=_0x10eb91,_0x406279=[],_0x1aa5b7=[],_0x33e941=_0x2799ec[_0x491d3e(0x39e)](ve),_0x1526fb=_0x33e941['getCollection'](_0x4b8d82,_0x2baf33),_0x182bff=_0x33e941[_0x491d3e(0x1df)](_0x4b8d82,_0x39a1c5,_0x2baf33);if(!(_0x182bff!=null&&_0x182bff[_0x491d3e(0x2a8)][_0x491d3e(0x25c)]))return!0x1;const _0x8abd4d=Object[_0x491d3e(0x2e0)](_0x182bff[_0x491d3e(0x2a8)][_0x491d3e(0x25c)])[_0x491d3e(0x3e1)](_0x595eee=>_0x595eee['id']===_0x3bfe87);if(!_0x8abd4d)return!0x1;const _0x119f2e=_0x8abd4d['dataFieldId'];if(!(_0x1526fb!=null&&_0x1526fb[_0x491d3e(0x367)]))return!0x1;const _0x9b7497=Object['values'](_0x1526fb==null?void 0x0:_0x1526fb['fields'])[_0x491d3e(0x3e1)](_0xe12cf0=>_0xe12cf0['id']===_0x119f2e);if(!_0x9b7497)return!0x1;_0x35394c(_0x9b7497)&&_0x406279[_0x491d3e(0x3ea)]({'id':oo['id'],'params':{..._0x10eb91,'dateType':_0x9b7497[_0x491d3e(0x422)]}}),_0x1aa5b7['push']({'id':oo['id'],'params':{..._0x10eb91}});const _0x3161f0=_0x2799ec[_0x491d3e(0x39e)](_0x554f1b);return _0x17d82c(_0x1aa5b7,_0x3161f0)&&_0x5554a1[_0x491d3e(0x3d8)]({'unitID':_0x4b8d82,'undoMutations':_0x406279,'redoMutations':_0x1aa5b7}),!0x0;}};var Ns=Object[_0x1a4bb1(0x1c6)],Us=(_0x33f836,_0x10282d,_0x27f212,_0x326c31)=>{const _0x454dbb=_0x1a4bb1;for(var _0x4b0405=_0x326c31>0x1?void 0x0:_0x326c31?Ns(_0x10282d,_0x27f212):_0x10282d,_0x387f0c=_0x33f836[_0x454dbb(0x2ac)]-0x1,_0xc6aa88;_0x387f0c>=0x0;_0x387f0c--)(_0xc6aa88=_0x33f836[_0x387f0c])&&(_0x4b0405=_0xc6aa88(_0x4b0405)||_0x4b0405);return _0x4b0405;},He=(_0x3f891a,_0x16a1cf)=>(_0x4175f3,_0x336025)=>_0x16a1cf(_0x4175f3,_0x336025,_0x3f891a);const Vs=()=>({'runtimeCellData':{},'dirtyRanges':{}}),xs=(_0x5210c7,_0x804f93,_0x2317c8)=>{const _0x4fe2c6=_0x1a4bb1,_0x80c304=_0x5210c7[_0x4fe2c6(0x32c)];_0x5210c7[_0x4fe2c6(0x414)](_0x41046d=>{const _0x273bbd=_0x4fe2c6,_0xc8c4dd=_0x41046d[_0x273bbd(0x272)](),_0x59c187=_0x41046d[_0x273bbd(0x261)](),_0x1bafef=_0x41046d[_0x273bbd(0x2a9)](),_0x33a600=_0x41046d[_0x273bbd(0x34e)]();_0x804f93[_0x59c187]&&_0x804f93[_0x59c187]===_0x33a600&&_0x1bafef===_0x33a600&&(_0x5210c7['renameField'](_0xc8c4dd,_0x80c304[_0x273bbd(0x34e)](_0x59c187)),_0x41046d[_0x273bbd(0x235)](_0x80c304[_0x273bbd(0x34e)](_0x59c187)));}),_0x5210c7[_0x4fe2c6(0x41b)](_0xf3a50c[_0x4fe2c6(0x1d9)],_0x48469d=>{const _0x2d412a=_0x4fe2c6,_0x34a6d5=_0x48469d[_0x2d412a(0x272)](),_0x55e670=_0x48469d['getDataFieldId'](),_0x3ccef5=_0x48469d[_0x2d412a(0x2a9)](),_0x32ace4=_0x48469d[_0x2d412a(0x34e)](),_0x227a0f=_0x48469d[_0x2d412a(0x26e)](),_0x70517a=_0x2317c8(_0x3ccef5,_0x227a0f);_0x804f93[_0x55e670]&&_0x804f93[_0x55e670]===_0x3ccef5&&_0x70517a===_0x32ace4&&(_0x5210c7[_0x2d412a(0x30e)](_0x34a6d5,_0x2317c8(_0x80c304[_0x2d412a(0x34e)](_0x55e670),_0x227a0f)),_0x48469d[_0x2d412a(0x235)](_0x80c304['getDisplayName'](_0x55e670)));});},Es=(_0x15a72c,_0x2a79fe,_0x10f0e2)=>{const _0x556f0c=_0x1a4bb1;var _0x57d015,_0x171422;const {arrayFormulaCellData:_0x3645da,unitData:_0x4cb154}=_0x2a79fe,{unitId:_0x5157a3,subUnitId:_0x189a3f}=_0x10f0e2,_0x3705c1=_0x10f0e2[_0x556f0c(0x286)],{startColumn:_0x41b9e4,endColumn:_0x30574f}=_0x3705c1,_0x42a592=(_0x57d015=_0x3645da==null?void 0x0:_0x3645da[_0x5157a3])==null?void 0x0:_0x57d015[_0x189a3f],_0x3c2e9f=(_0x171422=_0x4cb154==null?void 0x0:_0x4cb154[_0x5157a3])==null?void 0x0:_0x171422[_0x189a3f],_0x5c23b9=new Set(),_0x49fd74=_0x30574f-_0x41b9e4+0x1,{dirtyRanges:_0x205f08}=_0x15a72c;if(_0x205f08)for(const {range:_0x671390,sheetId:_0x2a7f66,unitId:_0x54fa03}of _0x205f08){if(_0x2a7f66!==_0x189a3f||_0x5157a3!==_0x54fa03)continue;const _0x3903e8=_0x41833c[_0x556f0c(0x35d)](_0x671390,_0x3705c1);if(_0x3903e8){const {startColumn:_0x132025,endColumn:_0x36106c}=_0x3903e8;for(let _0x55e016=_0x132025;_0x55e016<=_0x36106c;_0x55e016++)_0x5c23b9[_0x556f0c(0x3ef)](_0x55e016);}}if(_0x5c23b9['size']===_0x49fd74||_0x5c23b9[_0x556f0c(0x3ce)]===_0x49fd74)return Array[_0x556f0c(0x217)](_0x5c23b9);if(_0x3c2e9f){const _0x46d7a4=_0x3c2e9f[_0x556f0c(0x1ea)](),_0x2d71dc=Object[_0x556f0c(0x37f)](_0x46d7a4);for(const _0x3ed452 of _0x2d71dc){const _0x545837=Number(_0x3ed452),_0x30f023=_0x46d7a4[_0x545837];if(_0x5c23b9[_0x556f0c(0x3ce)]===_0x49fd74)break;for(const _0x5f03ad in _0x30f023){const _0x2304e0=Number(_0x5f03ad);_0x2304e0<_0x41b9e4||_0x2304e0>_0x30574f||_0x5c23b9[_0x556f0c(0x3ef)](_0x2304e0);}}}if(_0x42a592){const _0x1988e5=_0x42a592[_0x556f0c(0x1ea)](),_0x410e13=Object[_0x556f0c(0x37f)](_0x1988e5);for(const _0x321b05 of _0x410e13){const _0x5dd0fd=Number(_0x321b05),_0x12f233=_0x1988e5[_0x5dd0fd];if(_0x5c23b9[_0x556f0c(0x3ce)]===_0x49fd74)break;for(const _0x144873 in _0x12f233){const _0x38e210=Number(_0x144873);_0x38e210<_0x41b9e4||_0x38e210>_0x30574f||_0x5c23b9[_0x556f0c(0x3ef)](_0x38e210);}}}return Array[_0x556f0c(0x217)](_0x5c23b9);},Os=_0xbb199f=>{const _0x401595=_0x1a4bb1,_0x1d2cde=new Set(),_0x206c25=[];for(const _0x2ba1b5 of _0xbb199f){const _0x25a590=_0x2ba1b5[_0x401595(0x296)]+','+_0x2ba1b5[_0x401595(0x417)]+','+_0x2ba1b5[_0x401595(0x3df)]+','+_0x2ba1b5['endColumn'];_0x1d2cde['has'](_0x25a590)||(_0x1d2cde[_0x401595(0x3ef)](_0x25a590),_0x206c25['push'](_0x2ba1b5));}return _0x206c25;};let dt=class extends _0x36ff7f{constructor(_0x52b84f,_0x19dbf5,_0x27b60f,_0x3011b0,_0x50d9c7,_0x327c96){const _0x54eb4a=_0x1a4bb1;super(),V(this,_0x54eb4a(0x37d),new _0x261ee4(!0x0)),V(this,_0x54eb4a(0x313),_0x403047=>{const _0x2af7a1=_0x54eb4a;this[_0x2af7a1(0x37d)]['next'](!0x1);}),V(this,_0x54eb4a(0x350),_0x1ea811=>{this['_globalSubject']['next'](!0x0);}),(this[_0x54eb4a(0x42c)]=_0x52b84f,this[_0x54eb4a(0x1de)]=_0x19dbf5,this[_0x54eb4a(0x21d)]=_0x27b60f,this[_0x54eb4a(0x2ff)]=_0x3011b0,this[_0x54eb4a(0x317)]=_0x50d9c7,this[_0x54eb4a(0x2a1)]=_0x327c96,this['_init'](),this[_0x54eb4a(0x2be)]());}[_0x1a4bb1(0x428)](){const _0x1395e1=_0x1a4bb1;this[_0x1395e1(0x221)](),this[_0x1395e1(0x2dd)](),this[_0x1395e1(0x329)](),this[_0x1395e1(0x28a)]();}['_initGlobalComputed'](){const _0x34977c=_0x1a4bb1;this['_globalComputingSrv'][_0x34977c(0x2da)](this[_0x34977c(0x37d)]),_0x162344[_0x34977c(0x3e8)](_0x49b29f[_0x34977c(0x3ca)],this['_globalComputedStartHelpFunc']),_0x162344[_0x34977c(0x3e8)](_0x49b29f['onQueryEnd'],this[_0x34977c(0x350)]);}[_0x1a4bb1(0x2be)](){const _0x49e2b7=_0x1a4bb1;this[_0x49e2b7(0x323)](this[_0x49e2b7(0x2ff)][_0x49e2b7(0x354)](_0x389302=>{const _0x435193=_0x49e2b7;_0x389302['id']===_0x41afed['id']&&this['_sheetsPivotDataSourceModel'][_0x435193(0x233)](_0x389302[_0x435193(0x282)]);})),this[_0x49e2b7(0x323)](this[_0x49e2b7(0x2ff)][_0x49e2b7(0x354)](_0x1ef31e=>{const _0x485c46=_0x49e2b7;if(_0x1ef31e['id']!==ro['id'])return;const _0x5ca222=_0x1ef31e[_0x485c46(0x282)],{unitId:_0xa23a02,subUnitId:_0x4f1e09,pivotTableId:_0x4b5bf3}=_0x5ca222,_0x432db7=_0x5ca222[_0x485c46(0x282)][_0x485c46(0x1e0)],_0x4d4481={};switch(_0x432db7){case A[_0x485c46(0x39a)]:{const _0x4d72bd=_0x5ca222[_0x485c46(0x282)][_0x485c46(0x2c0)];if(!_0x4d72bd)return;const {row:_0x5bdef1,col:_0x57969c,cellData:_0x599881,pivotItemRenderInfoCache:_0x21214e,tableFieldId:_0x4e1a25}=_0x4d72bd,_0x7dab49=this[_0x485c46(0x42c)][_0x485c46(0x2e6)](_0x5ca222[_0x485c46(0x38b)]);if(!_0x7dab49||!_0x21214e)return;if(_0x4e1a25){const _0x2858df=_0x7dab49[_0x485c46(0x2b0)](_0x4e1a25);if(!_0x2858df)return;_0x4d4481[_0x485c46(0x2c0)]={..._0x7dab49[_0x485c46(0x300)](_0x2858df),'tableFieldId':_0x4e1a25,'pivotTableId':_0x5ca222[_0x485c46(0x38b)],'filterInfo':_0x7dab49[_0x485c46(0x3fb)](_0x4e1a25),'sortInfo':_0x7dab49[_0x485c46(0x3a9)](_0x4e1a25),'format':_0x7dab49['getFieldFormat'](_0x4e1a25)};}else{const _0xe953e4=Ei(_0x5bdef1,_0x57969c,_0x599881,_0x7dab49,_0x21214e),_0x2ad8b0=_0xe953e4==null?void 0x0:_0xe953e4[_0x485c46(0x3cb)];if(!_0x2ad8b0)return;const _0x493534=_0x7dab49[_0x485c46(0x2b0)](_0x2ad8b0);if(!_0x493534)return;_0x4d4481[_0x485c46(0x2c0)]={..._0x7dab49[_0x485c46(0x300)](_0x493534),'tableFieldId':_0x2ad8b0,'pivotTableId':_0x5ca222[_0x485c46(0x38b)],'filterInfo':_0x7dab49[_0x485c46(0x3fb)](_0x2ad8b0),'sortInfo':_0x7dab49[_0x485c46(0x3a9)](_0x2ad8b0),'format':_0x7dab49[_0x485c46(0x1cb)](_0x2ad8b0)};}}break;case A[_0x485c46(0x2db)]:{const _0x5038e0=_0x5ca222[_0x485c46(0x282)]['panel'];if(!_0x5038e0)return;const {pivotTableId:_0x215b5d}=_0x5038e0,_0x26af07=this[_0x485c46(0x42c)]['getPivotTableInstance'](_0x215b5d);if(!_0x26af07)return;const _0x3ddfc0=this[_0x485c46(0x42c)][_0x485c46(0x1df)](_0xa23a02,_0x4f1e09,_0x215b5d),_0x48b28e=Oi(_0x26af07,_0x215b5d,_0x3ddfc0);_0x4d4481[_0x485c46(0x424)]=_0x48b28e;}break;case A[_0x485c46(0x277)]:{const _0x2f3de0=this[_0x485c46(0x42c)]['getPivotTableInstance'](_0x4b5bf3),_0x29285a=this[_0x485c46(0x42c)][_0x485c46(0x265)](_0xa23a02),_0x1cf3c6=_0x29285a[_0x485c46(0x2f4)](_0x4b5bf3);let _0x24ea85=null;const _0x4936e6=this[_0x485c46(0x42c)][_0x485c46(0x1df)](_0xa23a02,_0x4f1e09,_0x4b5bf3),_0x166c02=_0x5ca222[_0x485c46(0x282)]['addPivotField'];if(!_0x2f3de0||!_0x4936e6||!_0x166c02)return!0x1;const {dataFieldId:_0x3e24ca,fieldArea:_0x4d79f4,index:_0x12edc4}=_0x166c02;_0x2f3de0[_0x485c46(0x3fd)]();const _0x41d84a=_0x2f3de0[_0x485c46(0x32b)](_0x3e24ca,_0x4d79f4,_0x12edc4);if(_0x41d84a&&_0x4d79f4===_0xf3a50c[_0x485c46(0x1d9)]){const _0x56dfc7=_0x41d84a[_0x485c46(0x272)](),_0x673668=_0x2f3de0[_0x485c46(0x2b0)](_0x56dfc7);if(_0x673668){const _0x3f6edd=_0x673668==null?void 0x0:_0x673668[_0x485c46(0x390)]();_0x2f3de0[_0x485c46(0x306)](_0x41d84a[_0x485c46(0x272)](),_0x3f6edd===_0x273cf8[_0x485c46(0x284)]?_0x4729bf['sum']:_0x4729bf['count']);}const _0x1593e8=_0x2f3de0['getValueIndex'](),_0x135976=_0x2f3de0['getValuePosition'](),_0xad6a92=_0x2f3de0[_0x485c46(0x321)](_0xf3a50c[_0x485c46(0x1d9)]);if(_0x1593e8===-0x1&&_0xad6a92>0x1){const _0x804bd5=_0x135976===_0x22b0c2[_0x485c46(0x259)]?_0x22b0c2['Column']:_0x135976,_0x2f3eba=_0x804bd5===_0x22b0c2[_0x485c46(0x3f4)]?_0xf3a50c['Row']:_0xf3a50c[_0x485c46(0x418)];_0x2f3de0[_0x485c46(0x2c3)](_0x804bd5,_0x2f3de0[_0x485c46(0x321)](_0x2f3eba));}}else{if(_0x41d84a&&(_0x4d79f4===_0xf3a50c['Row']||_0x4d79f4===_0xf3a50c[_0x485c46(0x418)])){const _0x5019c0=_0x41d84a[_0x485c46(0x272)](),_0x4dd254=_0x2f3de0[_0x485c46(0x2b0)](_0x5019c0);if(_0x4dd254&&(_0x4dd254==null?void 0x0:_0x4dd254[_0x485c46(0x390)]())===_0x273cf8[_0x485c46(0x232)]){const _0x3588c3=_0x4dd254[_0x485c46(0x1e9)]();if(_0x3588c3&&_0x2f3de0[_0x485c46(0x204)](_0x41d84a[_0x485c46(0x272)](),_0x3588c3),!_0x1cf3c6[_0x485c46(0x2f9)]()[_0x485c46(0x2f6)](_0x1c8767=>{const _0x1f7213=_0x485c46,_0x130440=_0x1cf3c6['getFieldById'](_0x1c8767);return _0x2a178b(_0x130440)?_0x130440[_0x1f7213(0x3cf)]()[_0x1f7213(0x399)]===_0x3e24ca:!0x1;})){const _0x5f22a1=_0x29285a[_0x485c46(0x240)](),_0x3611e2=ji(_0x4dd254['maxDate'],_0x4dd254[_0x485c46(0x2e5)]),_0x3d869e=_0x4dd254[_0x485c46(0x398)]()+_0x485c46(0x2ce)+qo(this[_0x485c46(0x2a1)],_0x3611e2),_0x5e8392=new _0x2bf29a(_0x5f22a1,_0x3d869e,_0x2cc304(0x3),_0x4dd254[_0x485c46(0x272)](),_0x3611e2);_0x29285a[_0x485c46(0x201)](_0x5e8392),_0x1cf3c6['addField'](_0x5f22a1,_0x3d869e),_0x2f3de0[_0x485c46(0x32b)](_0x5f22a1,_0x4d79f4,(_0x12edc4!=null?_0x12edc4:0x0)+0x1),_0x24ea85=_0x5e8392;}}}}const _0x3a11de=_0x2f3de0['isEmpty'](),_0x503f54=_0x2f3de0[_0x485c46(0x2ee)]()[_0x485c46(0x3b3)]();let _0xcbeb04;if(_0x24ea85){_0xcbeb04=_0x24ea85[_0x485c46(0x3b3)]();const _0x1ec083=_0x24ea85['getId']();_0x1cf3c6[_0x485c46(0x1db)](_0x1ec083);let _0x2da8d4=!0x0;for(const _0x1d6ca4 in _0x29285a[_0x485c46(0x1d8)])if(_0x29285a[_0x485c46(0x1d8)][_0x1d6ca4]['getFieldIds']()['includes'](_0x1ec083)){_0x2da8d4=!0x1;break;}_0x2da8d4&&_0x29285a['deleteDataField'](_0x1ec083);}const _0x2b57c0=_0x2f3de0[_0x485c46(0x239)]();_0x4d4481['addPivotField']={'view':_0x503f54,'changesets':_0x2b57c0,'isEmpty':_0x3a11de,'pivotTableConfig':_0x4936e6,'shouldBeAddedGroupJSON':_0xcbeb04};}break;case A[_0x485c46(0x2ad)]:{const _0x58db31=_0x5ca222[_0x485c46(0x282)][_0x485c46(0x346)];if(!_0x58db31)return;const _0x390856=_0x58db31[_0x485c46(0x2d2)],_0x2fed88=_0x58db31[_0x485c46(0x38b)],{collection:_0x1558f0}=this[_0x485c46(0x42c)][_0x485c46(0x3ae)]({'unitId':_0x390856[_0x485c46(0x3c4)],'sheetName':_0x390856[_0x485c46(0x31d)],'subUnitId':_0x390856[_0x485c46(0x386)],'range':_0x390856[_0x485c46(0x286)]}),_0x32d958=new _0x162344(_0x1558f0,void 0x0,_0x2fed88),_0x1bc668=_0x32d958[_0x485c46(0x2ee)](),_0x5bb683=_0x32d958[_0x485c46(0x3b3)](),_0x205769=_0x1558f0[_0x485c46(0x3b3)]();_0x4d4481[_0x485c46(0x346)]={'view':_0x1bc668,'fieldsConfig':_0x5bb683,'collectionConfig':_0x205769,'isEmpty':_0x32d958['isEmpty']()};}break;case A[_0x485c46(0x24e)]:{const _0x4e53a6=_0x5ca222[_0x485c46(0x282)][_0x485c46(0x426)];if(!_0x4e53a6)return;const {fieldId:_0x32a9c0,area:_0x4ba6b4,index:_0x6c95f8}=_0x4e53a6,_0x2c43db=this[_0x485c46(0x42c)][_0x485c46(0x1df)](_0xa23a02,_0x4f1e09,_0x4b5bf3);if(!_0x2c43db)return;const _0x2e64fd=this['_sheetsPivotDataSourceModel'][_0x485c46(0x2e6)](_0x4b5bf3);if(!_0x2e64fd)return;_0x2e64fd[_0x485c46(0x3fd)]();const {area:_0x824940,index:_0x4611ce}=_0x2e64fd[_0x485c46(0x289)](_0x32a9c0);if(_0x2e64fd['updateFieldPosition'](_0x32a9c0,_0x4ba6b4,_0x6c95f8),_0x4ba6b4===_0xf3a50c[_0x485c46(0x1d9)]&&_0x2e64fd[_0x485c46(0x1f2)](_0x32a9c0)[_0x485c46(0x26e)]()===void 0x0){const _0x5186c8=_0x2e64fd[_0x485c46(0x1f2)](_0x32a9c0);if(_0x5186c8&&_0x5186c8[_0x485c46(0x26e)]()===void 0x0){const _0x2ce4c6=_0x2e64fd[_0x485c46(0x2b0)](_0x32a9c0);if(_0x2ce4c6){const _0x18dbd4=_0x2ce4c6==null?void 0x0:_0x2ce4c6[_0x485c46(0x390)]();_0x2e64fd[_0x485c46(0x306)](_0x32a9c0,_0x18dbd4===_0x273cf8[_0x485c46(0x284)]?_0x4729bf[_0x485c46(0x396)]:_0x4729bf['count']);}}}const _0x54766d=_0x2e64fd[_0x485c46(0x361)](),_0x52103f=_0x2e64fd[_0x485c46(0x2de)](),_0xe2ee67=_0x2e64fd['getFieldCountByArea'](_0xf3a50c[_0x485c46(0x1d9)])>0x1;if(_0xe2ee67&&_0x824940===_0x4ba6b4&&(_0x4ba6b4===_0xf3a50c[_0x485c46(0x3f4)]&&_0x54766d===_0x22b0c2['Row']||_0x4ba6b4===_0xf3a50c[_0x485c46(0x418)]&&_0x54766d===_0x22b0c2[_0x485c46(0x418)])){let _0x222e56=_0x52103f;_0x4611ce<=_0x52103f&&_0x222e56--,_0x6c95f8<=_0x52103f&&_0x222e56++,_0x2e64fd[_0x485c46(0x2c3)](_0x54766d,_0x222e56);}else _0xe2ee67&&(_0x824940===_0xf3a50c['Row']&&_0x54766d===_0x22b0c2[_0x485c46(0x3f4)]||_0x824940===_0xf3a50c['Column']&&_0x54766d===_0x22b0c2['Column'])&&_0x52103f>=_0x4611ce&&_0x2e64fd[_0x485c46(0x2c3)](_0x54766d,_0x52103f-0x1),_0xe2ee67&&(_0x4ba6b4===_0xf3a50c['Row']&&_0x54766d===_0x22b0c2[_0x485c46(0x3f4)]||_0x4ba6b4===_0xf3a50c[_0x485c46(0x418)]&&_0x54766d===_0x22b0c2[_0x485c46(0x418)])&&_0x52103f>=_0x6c95f8&&_0x2e64fd[_0x485c46(0x2c3)](_0x54766d,_0x52103f+0x1);const _0x3bf275=_0x2e64fd['query'](),_0x3fb3b2=_0x2e64fd[_0x485c46(0x3d2)](),_0x25ac1b=_0x2e64fd[_0x485c46(0x239)]();_0x4d4481[_0x485c46(0x426)]={'view':_0x3bf275[_0x485c46(0x3b3)](),'changesets':_0x25ac1b,'isEmpty':_0x3fb3b2,'pivotTableConfig':_0x2c43db};}break;case A[_0x485c46(0x425)]:{const _0x2c2b76=_0x5ca222['params'][_0x485c46(0x36e)];if(!_0x2c2b76)return;const _0x513174=_0x2c2b76['fieldIds'],_0x377a57=this[_0x485c46(0x42c)]['getPivotTableConfig'](_0xa23a02,_0x4f1e09,_0x4b5bf3);if(!_0x377a57)return!0x1;const _0x587090=this[_0x485c46(0x42c)][_0x485c46(0x2e6)](_0x4b5bf3);if(!_0x587090)return!0x1;_0x587090['startCollectChangeset']();for(const _0x595056 of _0x513174){const {area:_0x4ca5aa}=_0x587090[_0x485c46(0x289)](_0x595056);_0x4ca5aa===_0xf3a50c[_0x485c46(0x1d9)]&&_0x587090[_0x485c46(0x3a7)](_0x595056),(_0x4ca5aa===_0xf3a50c[_0x485c46(0x3f4)]||_0x4ca5aa===_0xf3a50c['Column'])&&_0x587090[_0x485c46(0x270)](_0x595056),_0x587090[_0x485c46(0x38d)](_0x595056);}const _0x29b448=_0x587090[_0x485c46(0x3d2)](),_0x5401ac=_0x587090[_0x485c46(0x2ee)]()[_0x485c46(0x3b3)](),_0x518b2d=_0x587090[_0x485c46(0x239)]();_0x4d4481[_0x485c46(0x36e)]={'changesets':_0x518b2d,'pivotTableConfig':_0x377a57,'isEmpty':_0x29b448,'view':_0x5401ac};}break;case A[_0x485c46(0x205)]:{const _0xe4c3b6=_0x5ca222[_0x485c46(0x282)][_0x485c46(0x230)];if(!_0xe4c3b6)return;const {tableFieldId:_0x3e14ee,items:_0x21f756,isAll:_0x5cdaba}=_0xe4c3b6,_0x31f620=this['_sheetsPivotDataSourceModel'][_0x485c46(0x2e6)](_0x4b5bf3),_0x484c99=this[_0x485c46(0x42c)]['getPivotTableConfig'](_0xa23a02,_0x4f1e09,_0x4b5bf3);if(!_0x31f620||!_0x484c99)return;_0x31f620[_0x485c46(0x3fd)](),_0x31f620[_0x485c46(0x3c1)](_0x3e14ee,{'type':_0x38c691[_0x485c46(0x312)],'list':_0x21f756,'isAll':_0x5cdaba});const _0x85ee2e=_0x31f620[_0x485c46(0x3d2)](),_0x5a9ebb=_0x31f620['query']()['toJSON'](),_0x1d0a62=_0x31f620[_0x485c46(0x239)]();_0x4d4481[_0x485c46(0x230)]={'view':_0x5a9ebb,'changesets':_0x1d0a62,'isEmpty':_0x85ee2e,'pivotTableConfig':_0x484c99};}break;case A[_0x485c46(0x21e)]:{const _0x2edd3a=_0x5ca222['params'][_0x485c46(0x2fd)];if(!_0x2edd3a)return;const {tableFieldId:_0x4257e3,filterInfo:_0x504c61}=_0x2edd3a,_0x27e62e=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x4b5bf3),_0x4be284=this[_0x485c46(0x42c)][_0x485c46(0x1df)](_0xa23a02,_0x4f1e09,_0x4b5bf3);if(!_0x27e62e||!_0x4be284)return;_0x27e62e[_0x485c46(0x3fd)](),_0x27e62e[_0x485c46(0x391)](_0x4257e3,_0x504c61);const _0x361973=_0x27e62e[_0x485c46(0x3d2)](),_0x139a79=_0x27e62e[_0x485c46(0x2ee)]()[_0x485c46(0x3b3)](),_0x3ce38d=_0x27e62e[_0x485c46(0x239)]();_0x4d4481['setValuePivotFilter']={'view':_0x139a79,'changesets':_0x3ce38d,'isEmpty':_0x361973,'pivotTableConfig':_0x4be284};}break;case A[_0x485c46(0x39c)]:{const _0x32e8b7=_0x5ca222[_0x485c46(0x282)][_0x485c46(0x257)];if(!_0x32e8b7)return;const {tableFieldId:_0x405f86,info:_0xd7356b}=_0x32e8b7,_0x5847d4=this['_sheetsPivotDataSourceModel'][_0x485c46(0x2e6)](_0x4b5bf3),_0x523243=this[_0x485c46(0x42c)][_0x485c46(0x1df)](_0xa23a02,_0x4f1e09,_0x4b5bf3);if(!_0x5847d4||!_0x523243)return;_0x5847d4['startCollectChangeset'](),_0x5847d4[_0x485c46(0x298)](_0x405f86,_0xd7356b);const _0x27a157=_0x5847d4[_0x485c46(0x3d2)](),_0x2b7d43=_0x5847d4[_0x485c46(0x2ee)]()[_0x485c46(0x3b3)](),_0x3aedd0=_0x5847d4[_0x485c46(0x239)]();_0x4d4481['setPivotSort']={'view':_0x2b7d43,'changesets':_0x3aedd0,'isEmpty':_0x27a157,'pivotTableConfig':_0x523243};}break;case A[_0x485c46(0x379)]:{const _0x11ae93=_0x5ca222['params']['setPivotSetting'];if(!_0x11ae93)return;const {tableFieldId:_0x2cc428,displayName:_0x26ea97,subtotalType:_0x38b2c1,format:_0x43b0d9}=_0x11ae93,_0x79f773=this[_0x485c46(0x42c)][_0x485c46(0x2e6)](_0x4b5bf3),_0x1739fd=this[_0x485c46(0x42c)][_0x485c46(0x1df)](_0xa23a02,_0x4f1e09,_0x4b5bf3);if(!_0x79f773||!_0x1739fd)return;_0x79f773[_0x485c46(0x3fd)](),_0x26ea97!==void 0x0&&_0x79f773[_0x485c46(0x30e)](_0x2cc428,_0x26ea97),_0x38b2c1!==void 0x0&&_0x79f773['setSubtotalType'](_0x2cc428,_0x38b2c1),_0x43b0d9!==void 0x0&&_0x79f773[_0x485c46(0x204)](_0x2cc428,_0x43b0d9);const _0x58a2ac=_0x79f773['isEmpty'](),_0x15413b=_0x79f773[_0x485c46(0x2ee)]()['toJSON'](),_0x3cdee9=_0x79f773[_0x485c46(0x239)]();_0x4d4481['setPivotSetting']={'changesets':_0x3cdee9,'pivotTableConfig':_0x1739fd,'isEmpty':_0x58a2ac,'view':_0x15413b};}break;case A[_0x485c46(0x427)]:{const _0x1f0c2c=_0x5ca222[_0x485c46(0x282)]['updatePivotSource'];if(!_0x1f0c2c)return;const {dataRangeInfo:_0x33dd0f,unitId:_0x31274f,subUnitId:_0x5b246e}=_0x1f0c2c,_0x588bd0=this[_0x485c46(0x42c)][_0x485c46(0x1df)](_0x31274f,_0x5b246e,_0x4b5bf3),_0x56d1c8=this['_sheetsPivotDataSourceModel'][_0x485c46(0x2e6)](_0x4b5bf3);if(!this[_0x485c46(0x42c)][_0x485c46(0x2f4)](_0x31274f,_0x4b5bf3)||!_0x56d1c8||!_0x588bd0)return;const _0x2955a3=this['_sheetsPivotDataSourceModel'][_0x485c46(0x297)](_0x31274f,_0x4b5bf3,_0x33dd0f),_0x438725=this['_sheetsPivotDataSourceModel'][_0x485c46(0x2f4)](_0x31274f,_0x4b5bf3)[_0x485c46(0x3b3)](),{collection:_0x3d50dc}=this[_0x485c46(0x42c)][_0x485c46(0x3ae)]({'unitId':_0x33dd0f[_0x485c46(0x3c4)],'sheetName':_0x33dd0f[_0x485c46(0x31d)],'subUnitId':_0x33dd0f[_0x485c46(0x386)],'range':_0x33dd0f['range']}),_0x30af40=_0x3d50dc['toJSON']();_0x56d1c8['startCollectChangeset']();const _0x4eef6b=this[_0x485c46(0x42c)]['getDataFieldManager'](_0x31274f)['getAutoDisplayNameFunction']()||_0x2cc45f;_0x56d1c8[_0x485c46(0x2e9)](_0xf0ba75=>{const _0x2155c6=_0x485c46,_0x4ec13c=_0xf0ba75[_0x2155c6(0x261)]();if(!_0x3d50dc[_0x2155c6(0x1dd)](_0x4ec13c)){const _0x53cb6f=_0x3d50dc[_0x2155c6(0x278)](_0xf0ba75['getSourceName']());if(_0x53cb6f){_0x56d1c8['updateFieldSourceInfo'](_0xf0ba75[_0x2155c6(0x272)](),_0x53cb6f['getName'](),_0x53cb6f[_0x2155c6(0x272)]());const {area:_0x93f15f}=_0x56d1c8['getFieldPositionInfoById'](_0xf0ba75[_0x2155c6(0x272)]());let _0x590e28=_0xf0ba75[_0x2155c6(0x2a9)]();const _0x1281f8=_0xf0ba75[_0x2155c6(0x34e)]();if(_0x93f15f===_0xf3a50c[_0x2155c6(0x1d9)]){const _0x3e1788=_0xf0ba75['getSubtotal']();_0x590e28=_0x4eef6b(_0x53cb6f[_0x2155c6(0x398)](),_0x3e1788);}_0x1281f8!==_0x590e28&&_0x56d1c8[_0x2155c6(0x30e)](_0xf0ba75[_0x2155c6(0x272)](),_0x590e28);}else _0x56d1c8[_0x2155c6(0x38d)](_0xf0ba75[_0x2155c6(0x272)]());}});const _0xf14e78=_0x56d1c8[_0x485c46(0x3d2)](),_0xd05a4e=_0x56d1c8[_0x485c46(0x2ee)]()[_0x485c46(0x3b3)](),_0xcbfd75=_0x56d1c8['endCollectChangeset']();_0x4d4481[_0x485c46(0x360)]={'view':_0xd05a4e,'changesets':_0xcbfd75,'isEmpty':_0xf14e78,'pivotTableConfig':_0x588bd0,'collectionConfig':_0x30af40,'oldCollectionConfig':_0x438725,'deleteIds':_0x2955a3};}break;case A['UpdateValuePosition']:{const _0x18c567=_0x5ca222[_0x485c46(0x282)][_0x485c46(0x2c3)];if(!_0x18c567)return;const {position:_0x167c40,index:_0x57b516}=_0x18c567,_0x276d6=this[_0x485c46(0x42c)][_0x485c46(0x1df)](_0xa23a02,_0x4f1e09,_0x4b5bf3);if(!_0x276d6)return!0x1;const _0x1f7ede=this['_sheetsPivotDataSourceModel'][_0x485c46(0x2e6)](_0x4b5bf3);if(!_0x1f7ede)return!0x1;_0x1f7ede['startCollectChangeset'](),_0x1f7ede[_0x485c46(0x2c3)](_0x167c40,_0x57b516);const _0x3654f7=_0x1f7ede[_0x485c46(0x3d2)](),_0x55fe0f=_0x1f7ede[_0x485c46(0x2ee)]()[_0x485c46(0x3b3)](),_0x653a50=_0x1f7ede[_0x485c46(0x239)]();_0x4d4481[_0x485c46(0x2c3)]={'changesets':_0x653a50,'pivotTableConfig':_0x276d6,'isEmpty':_0x3654f7,'view':_0x55fe0f};}break;case A[_0x485c46(0x1e8)]:{const _0x4da0f9=_0x5ca222[_0x485c46(0x282)][_0x485c46(0x413)];if(!_0x4da0f9)return;const {tableFieldId:_0x1535b9,collapse:_0x3e13f2,item:_0x20bff8}=_0x4da0f9,_0x43d2d5=this[_0x485c46(0x42c)][_0x485c46(0x2e6)](_0x4b5bf3),_0xb1dded=this['_sheetsPivotDataSourceModel']['getPivotTableConfig'](_0xa23a02,_0x4f1e09,_0x4b5bf3);if(!_0x43d2d5||!_0xb1dded)return;_0x43d2d5[_0x485c46(0x3fd)](),_0x43d2d5[_0x485c46(0x2b6)](_0x1535b9,_0x3e13f2,_0x20bff8);const _0x4445b4=_0x43d2d5[_0x485c46(0x3d2)](),_0x13cadf=_0x43d2d5[_0x485c46(0x2ee)]()[_0x485c46(0x3b3)](),_0x350da2=_0x43d2d5[_0x485c46(0x239)]();_0x4d4481[_0x485c46(0x413)]={'view':_0x13cadf,'isEmpty':_0x4445b4,'pivotTableConfig':_0xb1dded,'changesets':_0x350da2};}break;case A[_0x485c46(0x3a4)]:{const _0x2d1fa7=_0x5ca222[_0x485c46(0x282)][_0x485c46(0x3f2)];if(!_0x2d1fa7)return;const {pivotTableConfig:_0x3c0787}=_0x2d1fa7,_0x53386c=this[_0x485c46(0x42c)][_0x485c46(0x2e6)](_0x4b5bf3),_0x2cc639=this[_0x485c46(0x42c)][_0x485c46(0x1df)](_0xa23a02,_0x4f1e09,_0x4b5bf3);if(!_0x53386c||!_0x2cc639)return;_0x53386c[_0x485c46(0x3fd)](),$i(_0x53386c,_0x3c0787);const _0x2908b6=_0x53386c[_0x485c46(0x3d2)](),_0x2827f5=_0x53386c['query']()[_0x485c46(0x3b3)](),_0x389054=_0x53386c[_0x485c46(0x239)]();_0x4d4481['setPivotTableConfig']={'view':_0x2827f5,'isEmpty':_0x2908b6,'pivotTableConfig':{..._0x2cc639,'fieldsConfig':_0x53386c[_0x485c46(0x3b3)]()},'changesets':_0x389054};}break;case A['ResetPivotTable']:{const _0x509fc6=_0x5ca222['params'][_0x485c46(0x2d0)];if(!_0x509fc6)return;const _0x419a70=this['_sheetsPivotDataSourceModel'][_0x485c46(0x2e6)](_0x4b5bf3),_0x4d2093=this[_0x485c46(0x42c)][_0x485c46(0x1df)](_0xa23a02,_0x4f1e09,_0x4b5bf3);if(!_0x419a70||!_0x4d2093)return;_0x419a70['startCollectChangeset'](),zi(_0x419a70,_0x509fc6[_0x485c46(0x3cd)]);const _0xad3b88=_0x419a70[_0x485c46(0x2ee)]()[_0x485c46(0x3b3)](),_0xe4ae41=_0x419a70['endCollectChangeset']();_0x4d4481[_0x485c46(0x2d0)]={'view':_0xad3b88,'isEmpty':!0x0,'pivotTableConfig':{..._0x4d2093,'fieldsConfig':_0x419a70[_0x485c46(0x3b3)]()},'changesets':_0xe4ae41};}break;case A['AddPivotTableWithConfig']:{const _0x541011=_0x5ca222[_0x485c46(0x282)][_0x485c46(0x3bd)];if(!_0x541011)return;const _0x187bc4=_0x541011[_0x485c46(0x2d2)],_0x5d4efd=_0x541011[_0x485c46(0x38b)],{collection:_0x458006}=this[_0x485c46(0x42c)]['createCollectionWithDataRange']({'unitId':_0x187bc4['unitId'],'sheetName':_0x187bc4[_0x485c46(0x31d)],'subUnitId':_0x187bc4[_0x485c46(0x386)],'range':_0x187bc4[_0x485c46(0x286)]}),_0x5b8288=new _0x162344(_0x458006,void 0x0,_0x5d4efd),_0x3adfa5=_0x458006[_0x485c46(0x2f9)](),{rows:_0xbe0a2d,columns:_0x310537,filters:_0x375c7d,values:_0x1483e9}=_0x541011['pivotTableIndexConfig'];_0x5b8288['startCollectChangeset']();for(const {field:_0x287f5f,selectedItems:_0x58121f}of _0xbe0a2d||[]){const _0x11bc2f=_0x3adfa5[_0x287f5f];if(_0x11bc2f){const _0x46cc58=_0x5b8288['addFieldWithSourceId'](_0x11bc2f,_0xf3a50c[_0x485c46(0x3f4)]);_0x58121f&&_0x46cc58&&_0x5b8288[_0x485c46(0x3c1)](_0x46cc58[_0x485c46(0x272)](),{'type':_0x38c691['ManualFilter'],'list':_0x58121f,'isAll':!0x1});}}for(const {field:_0x43acc2,selectedItems:_0x2c494e}of _0x310537||[]){const _0xd93433=_0x3adfa5[_0x43acc2];if(_0xd93433){const _0x4ac63f=_0x5b8288[_0x485c46(0x32b)](_0xd93433,_0xf3a50c[_0x485c46(0x418)]);_0x2c494e&&_0x4ac63f&&_0x5b8288[_0x485c46(0x3c1)](_0x4ac63f[_0x485c46(0x272)](),{'type':_0x38c691[_0x485c46(0x312)],'list':_0x2c494e,'isAll':!0x1});}}for(const {field:_0x577528,selectedItems:_0x1ab528}of _0x375c7d||[]){const _0x38aa90=_0x3adfa5[_0x577528];if(_0x38aa90){const _0x472917=_0x5b8288[_0x485c46(0x32b)](_0x38aa90,_0xf3a50c[_0x485c46(0x39a)]);_0x1ab528&&_0x472917&&_0x5b8288[_0x485c46(0x3c1)](_0x472917[_0x485c46(0x272)](),{'type':_0x38c691[_0x485c46(0x312)],'list':_0x1ab528,'isAll':!0x1});}}for(const {field:_0x44d5bb,subTotalType:_0x291935,formatString:_0x4c7f24}of _0x1483e9||[]){const _0x5cddc4=_0x458006[_0x485c46(0x1d3)](_0x3adfa5[_0x44d5bb]);if(!_0x5cddc4)continue;const _0xa2b50e=_0x3adfa5[_0x44d5bb];if(_0xa2b50e){const _0x4775f8=_0x5b8288['addFieldWithSourceId'](_0xa2b50e,_0xf3a50c[_0x485c46(0x1d9)]);if(_0x4775f8){if(_0x291935!==void 0x0){_0x5b8288[_0x485c46(0x306)](_0x4775f8[_0x485c46(0x272)](),_0x291935);const _0x1f8b64=this[_0x485c46(0x42c)][_0x485c46(0x265)](_0x187bc4[_0x485c46(0x3c4)])[_0x485c46(0x295)]()||_0x2cc45f,_0x21e43e=_0x458006[_0x485c46(0x34e)](_0xa2b50e),_0x45e8c3=_0x1f8b64(_0x21e43e,_0x291935);_0x5b8288[_0x485c46(0x30e)](_0x4775f8[_0x485c46(0x272)](),_0x45e8c3);}else{if(_0x5cddc4){const _0x554f53=_0x5cddc4==null?void 0x0:_0x5cddc4['getFieldDataType']();_0x5b8288[_0x485c46(0x306)](_0x4775f8[_0x485c46(0x272)](),_0x554f53===_0x273cf8[_0x485c46(0x284)]?_0x4729bf[_0x485c46(0x396)]:_0x4729bf[_0x485c46(0x283)]);}}_0x4c7f24&&_0x5b8288[_0x485c46(0x204)](_0x4775f8[_0x485c46(0x272)](),_0x4c7f24);}}}const _0x5cf38b=_0x5b8288['query'](),_0x5d1a05=_0x5b8288[_0x485c46(0x3b3)](),_0x56349f=_0x5b8288[_0x485c46(0x3d2)](),_0xd96cb2=_0x5b8288[_0x485c46(0x239)](),_0x1af5c4=_0x458006[_0x485c46(0x3b3)]();_0x4d4481[_0x485c46(0x3bd)]={'view':_0x5cf38b,'fieldsConfig':_0x5d1a05,'collectionConfig':_0x1af5c4,'isEmpty':_0x56349f,'changesets':_0xd96cb2};}break;case A[_0x485c46(0x20c)]:{const _0xf7958c=ki(this[_0x485c46(0x2a1)],_0x5ca222);if(!_0xf7958c)return;const {range:_0x1c5764,sourceSubUnitId:_0x59190e,sourceUnitId:_0x314ea8,formatMap:_0x572b71,indexes:_0x5d88ee}=_0xf7958c;_0x4d4481[_0x485c46(0x365)]={'range':_0x1c5764,'sourceSubUnitId':_0x59190e,'sourceUnitId':_0x314ea8,'formatMap':_0x572b71,'indexes':_0x5d88ee};}break;}this['_commandService']['executeCommand'](lo['id'],{'version':_0x5ca222[_0x485c46(0x41e)],'result':_0x4d4481},{'onlyLocal':!0x0});}));}[_0x1a4bb1(0x329)](){const _0x56eae9=_0x1a4bb1;this[_0x56eae9(0x323)](this[_0x56eae9(0x2ff)]['onCommandExecuted'](_0x3dbc95=>{const _0x3fb0d8=_0x56eae9;if(_0x3dbc95['id']!==uo['id'])return;const _0x23ea7e=_0x3dbc95['params'];return this[_0x3fb0d8(0x42c)][_0x3fb0d8(0x40c)](_0x23ea7e[_0x3fb0d8(0x266)]),!0x0;}));}[_0x1a4bb1(0x221)](){const _0x1fcd1a=_0x1a4bb1;this[_0x1fcd1a(0x42c)][_0x1fcd1a(0x35a)]['subscribe'](_0x2a121e=>{const _0x15865f=_0x1fcd1a;switch(_0x2a121e[_0x15865f(0x1e0)]){case Le[_0x15865f(0x3ef)]:_0x2a121e['dataRangeInfo']&&_0x2a121e[_0x15865f(0x202)]&&this[_0x15865f(0x388)](_0x2a121e[_0x15865f(0x337)],_0x2a121e[_0x15865f(0x210)],_0x2a121e[_0x15865f(0x202)]);break;case Le[_0x15865f(0x3e5)]:{const {unitId:_0x2e0871,subUnitId:_0x50943b,token:_0x24593a}=_0x2a121e;_0x2e0871&&_0x50943b&&_0x24593a&&this[_0x15865f(0x3a5)](_0x2e0871,_0x50943b,_0x24593a);}break;case Le['update']:{const {token:_0x296b8f,oldSourceRangeInfo:_0x3d48b3,dataRangeInfo:_0x555275,targetCellInfo:_0x41dc84}=_0x2a121e,{unitId:_0xa5b853,subUnitId:_0x25120d}=_0x3d48b3||{};_0xa5b853&&_0x25120d&&_0x296b8f&&this['removeSourceRangeChange'](_0xa5b853,_0x25120d,_0x296b8f),_0x555275&&_0x41dc84&&this[_0x15865f(0x388)](_0x296b8f,_0x555275,_0x41dc84);}break;}});}['_subjectFieldsCollectionChange'](){const _0x4d1573=_0x1a4bb1;this[_0x4d1573(0x42c)][_0x4d1573(0x340)]['subscribe'](_0x315690=>{const _0xf3bf35=_0x4d1573;Object[_0xf3bf35(0x37f)](_0x315690)[_0xf3bf35(0x34b)](_0x352fd0=>{const _0x3be9ef=_0xf3bf35,_0x2d8ab1=this[_0x3be9ef(0x42c)]['getTargetByPivotId'](_0x352fd0);if(_0x2d8ab1){const _0x5d0984=this['_sheetsPivotDataSourceModel'][_0x3be9ef(0x1df)](_0x2d8ab1==null?void 0x0:_0x2d8ab1[_0x3be9ef(0x3c4)],_0x2d8ab1==null?void 0x0:_0x2d8ab1['subUnitId'],_0x352fd0);_0x5d0984&&(this['handleSourceRangeChange'](_0x352fd0,_0x5d0984[_0x3be9ef(0x2d2)],_0x5d0984[_0x3be9ef(0x202)]),this['triggerDirtyFeature']([{'unitId':_0x2d8ab1['unitId'],'subUnitId':_0x2d8ab1[_0x3be9ef(0x386)],'token':_0x352fd0}]));}});});}[_0x1a4bb1(0x2dd)](){const _0x2d91b7=_0x1a4bb1;this[_0x2d91b7(0x42c)]['viewData$']['subscribe'](_0x51a146=>{const _0x14f3af=_0x2d91b7,{unitId:_0x3ea355,subUnitId:_0x1627ec,pivotTableId:_0x4af1c8}=_0x51a146;_0x3ea355&&_0x1627ec&&_0x4af1c8&&this[_0x14f3af(0x209)]([{'unitId':_0x3ea355,'subUnitId':_0x1627ec,'token':_0x4af1c8}]);});}[_0x1a4bb1(0x209)](_0xa7d5f6){const _0xcc5650=_0x1a4bb1,_0x1cea1b={};_0xa7d5f6[_0xcc5650(0x34b)](_0x2008b0=>{var _0x51a275,_0xc54356;const {unitId:_0x22bb2e,subUnitId:_0x38764f,token:_0x2fd607}=_0x2008b0;_0x1cea1b[_0x22bb2e]=(_0x51a275=_0x1cea1b[_0x22bb2e])!=null?_0x51a275:{},_0x1cea1b[_0x22bb2e][_0x38764f]=(_0xc54356=_0x1cea1b[_0x22bb2e][_0x38764f])!=null?_0xc54356:{},_0x1cea1b[_0x22bb2e][_0x38764f][_0x2fd607]=!0x0;}),this[_0xcc5650(0x2ff)]['executeCommand'](Ut['id'],_0x1cea1b);}[_0x1a4bb1(0x3a5)](_0x1e0191,_0x16043f,_0x1195b4){this['_featureCalculationManagerService']['remove'](_0x1e0191,_0x16043f,[_0x1195b4]);}[_0x1a4bb1(0x388)](_0x58df52,_0x13280f,_0x149105){const _0x19b8b1=_0x1a4bb1,{unitId:_0x4d4764,subUnitId:_0x11e892}=_0x13280f;this['_featureCalculationManagerService'][_0x19b8b1(0x2bb)](_0x149105[_0x19b8b1(0x3c4)],_0x149105[_0x19b8b1(0x386)],_0x58df52)&&this['removeSourceRangeChange'](_0x4d4764,_0x11e892,_0x58df52);const _0x257df4={'sheetId':_0x11e892,..._0x13280f};this[_0x19b8b1(0x21d)]['register'](_0x149105[_0x19b8b1(0x3c4)],_0x149105['subUnitId'],_0x58df52,{'unitId':_0x149105['unitId'],'subUnitId':_0x149105['subUnitId'],'dependencyRanges':[_0x257df4],'getDirtyData':(_0x161bb0,_0x114366)=>{const _0x3813c6=_0x19b8b1,_0x40128d=this[_0x3813c6(0x42c)],_0x30f0ff=_0x40128d[_0x3813c6(0x320)](_0x58df52);if(!_0x30f0ff)return Vs();const {unitId:_0x307a16,subUnitId:_0x5bfad6}=_0x30f0ff,_0xeb3008=Es(_0x161bb0,_0x114366,_0x13280f);if(_0xeb3008[_0x3813c6(0x2ac)]>0x0){const _0x4f1e6e=_0x40128d[_0x3813c6(0x2f4)](_0x4d4764,_0x58df52),_0x332742=_0x4f1e6e[_0x3813c6(0x2f9)](),_0x124721=this['getMatrixFromRunTimeData'](_0x13280f['unitId'],_0x13280f['subUnitId'],_0x114366),_0x25a659={},_0x2009cf=this[_0x3813c6(0x42c)][_0x3813c6(0x265)](_0x307a16)[_0x3813c6(0x295)]()||_0x2cc45f,_0x21d8a7=[];for(const _0x49e2f6 of _0xeb3008){const _0x120843=_0x49e2f6-(_0x13280f[_0x3813c6(0x286)][_0x3813c6(0x3df)]||0x0),_0x3f4a70=_0x332742[_0x120843];_0x21d8a7[_0x3813c6(0x3ea)](_0x3f4a70),_0x25a659[_0x3f4a70]=_0x4f1e6e[_0x3813c6(0x1d3)](_0x3f4a70)[_0x3813c6(0x398)](),_0x40128d[_0x3813c6(0x265)](_0x4d4764)[_0x3813c6(0x212)](_0x3f4a70,_0x13280f,_0x120843,_0x124721);}_0x4f1e6e[_0x3813c6(0x2a2)](_0x21d8a7)[_0x3813c6(0x34b)](_0x16f8d6=>{const _0x42ac13=_0x3813c6,[_0x5e2757,_0x33e2e7]=_0x16f8d6,_0x25480c=_0x4f1e6e[_0x42ac13(0x1d3)](_0x5e2757),_0x1b8755=_0x4f1e6e[_0x42ac13(0x1d3)](_0x33e2e7);_0x25480c&&_0x1b8755&&_0x25480c['refreshGroupField'](_0x1b8755);}),_0x4f1e6e['updateAllDisplayName']();const _0x3c979e=_0x40128d[_0x3813c6(0x2e6)](_0x58df52);if(_0x3c979e){xs(_0x3c979e,_0x25a659,_0x2009cf),_0x3c979e[_0x3813c6(0x432)](!0x0);const _0x5306bf=_0x3c979e[_0x3813c6(0x2ee)](),_0x435e3a=_0x40128d[_0x3813c6(0x1df)](_0x307a16,_0x5bfad6,_0x58df52),_0x2c4a10=_0x40128d[_0x3813c6(0x265)](_0x4d4764)[_0x3813c6(0x3b3)]();_0x40128d[_0x3813c6(0x305)](_0x307a16,_0x5bfad6,B[_0x3813c6(0x3d4)],_0x58df52,_0x5306bf,_0x435e3a,_0x2c4a10,!0x0);}}return this[_0x3813c6(0x254)](_0x307a16,_0x5bfad6,_0x58df52);}});}[_0x1a4bb1(0x3ee)](_0x41eb5a,_0x4151fb,_0x2408e0){var _0x2fa301,_0x83e22f;const {arrayFormulaCellData:_0xdefeae,unitData:_0x59bbf1}=_0x2408e0,_0x406d2e=(_0x2fa301=_0xdefeae==null?void 0x0:_0xdefeae[_0x41eb5a])==null?void 0x0:_0x2fa301[_0x4151fb],_0x5e83e5=(_0x83e22f=_0x59bbf1==null?void 0x0:_0x59bbf1[_0x41eb5a])==null?void 0x0:_0x83e22f[_0x4151fb];return{'arrayFormulaCellDataMatrix':_0x406d2e,'unitDataMatrix':_0x5e83e5};}['getDirtyInfo'](_0x5b2707,_0x3cd1ce,_0x395eb6){const _0x41f9a5=_0x1a4bb1,_0x10a950=this[_0x41f9a5(0x42c)][_0x41f9a5(0x3bb)](_0x5b2707,_0x3cd1ce,_0x395eb6),_0x3dd06f=[],_0x157b20=new _0x18ce59();if(_0x10a950){const {rangeCache:_0x31787f,matrix:_0x5c0c53,oldRangeCache:_0x4aec64,oldMatrix:_0x3cc04f}=_0x10a950,_0x13baf5=Bt(_0x4aec64),_0xbed7e8=Bt(_0x31787f);_0x3dd06f['push'](..._0xbed7e8,..._0x13baf5),_0x3cc04f&&_0x4aec64&&_0x13baf5[_0x41f9a5(0x34b)](_0x1f3293=>{const _0x679994=_0x41f9a5;for(let _0x5eb520=_0x1f3293['startRow'];_0x5eb520<=_0x1f3293['endRow'];_0x5eb520++)for(let _0x3f0267=_0x1f3293[_0x679994(0x3df)];_0x3f0267<=_0x1f3293['endColumn'];_0x3f0267++)_0x157b20['realDeleteValue'](_0x5eb520,_0x3f0267);}),_0x5c0c53&&_0xbed7e8&&_0xbed7e8['forEach'](_0x26ea3a=>{const _0x40939e=_0x41f9a5;for(let _0x23acc2=_0x26ea3a[_0x40939e(0x296)];_0x23acc2<=_0x26ea3a[_0x40939e(0x417)];_0x23acc2++)for(let _0x3bec2f=_0x26ea3a[_0x40939e(0x3df)];_0x3bec2f<=_0x26ea3a[_0x40939e(0x1fe)];_0x3bec2f++)_0x157b20[_0x40939e(0x22a)](_0x23acc2,_0x3bec2f,_0x5c0c53[_0x40939e(0x2fc)](_0x23acc2,_0x3bec2f));});}const _0x2192e5={};return _0x2192e5[_0x5b2707]={[_0x3cd1ce]:Os(_0x3dd06f)},{'runtimeCellData':{[_0x5b2707]:{[_0x3cd1ce]:_0x157b20}},'dirtyRanges':_0x2192e5};}[_0x1a4bb1(0x32a)](){}};dt=Us([He(0x0,_0x772e00(G)),He(0x1,_0x1893a6),He(0x2,_0x772e00(_0x3e04e3)),He(0x3,_0x772e00(_0x554f1b)),He(0x4,_0x772e00(_0x4d465d)),He(0x5,_0x772e00(_0x4ed77d))],dt);var ks=Object[_0x1a4bb1(0x1c6)],As=(_0x35521d,_0x14c2d9,_0x4d4e74,_0x15f396)=>{const _0x59a109=_0x1a4bb1;for(var _0x342da8=_0x15f396>0x1?void 0x0:_0x15f396?ks(_0x14c2d9,_0x4d4e74):_0x14c2d9,_0x9d2be7=_0x35521d[_0x59a109(0x2ac)]-0x1,_0xc9f9ce;_0x9d2be7>=0x0;_0x9d2be7--)(_0xc9f9ce=_0x35521d[_0x9d2be7])&&(_0x342da8=_0xc9f9ce(_0x342da8)||_0x342da8);return _0x342da8;},wt=(_0x1f54a6,_0x9dde0e)=>(_0x208a8e,_0x561564)=>_0x9dde0e(_0x208a8e,_0x561564,_0x1f54a6);let ct=class extends _0x36ff7f{constructor(_0x284800,_0x54bfd4,_0x13fc99,_0x4ea0ff){const _0x495c7e=_0x1a4bb1;super(),V(this,_0x495c7e(0x438),new _0x379c4f()),(this['_univerInstanceService']=_0x284800,this[_0x495c7e(0x3f7)]=_0x54bfd4,this[_0x495c7e(0x2d3)]=_0x13fc99,this['_sheetsPivotTableConfigModel']=_0x4ea0ff,this[_0x495c7e(0x339)]());}[_0x1a4bb1(0x339)](){const _0xfdfc00=_0x1a4bb1;this[_0xfdfc00(0x323)](this[_0xfdfc00(0x3f7)][_0xfdfc00(0x35c)]({'getMutations':_0x3130b0=>{const _0x1ac592=_0xfdfc00;if(_0x3130b0['id']===_0x264eb7['id']||_0x3130b0['id']===_0xfa21a9['id']){const _0x15dfb1=[],_0x15ffe9=[],_0x42e23c=this['_sheetsSelectionsService']['getCurrentSelections']()['map'](_0x205680=>_0x205680[_0x1ac592(0x286)]),_0x4539b8=_0x114ebc(this['_univerInstanceService']);if(!_0x4539b8)return{'redos':[],'undos':[]};const {unitId:_0x3cb570,subUnitId:_0x3ea840}=_0x4539b8,_0x3adf2b={},_0x28eff9=this[_0x1ac592(0x294)][_0x1ac592(0x2f1)](_0x3cb570,_0x3ea840);if(_0x28eff9!=null&&_0x28eff9[_0x1ac592(0x3ce)])for(const [_0x2f01d5,_0x19789b]of _0x28eff9){const {unitId:_0x44e9db,subUnitId:_0x1e8b79,row:_0x3c7daa,col:_0x13e82e}=_0x19789b[_0x1ac592(0x202)];_0x44e9db===_0x4539b8[_0x1ac592(0x3c4)]&&_0x1e8b79===_0x4539b8[_0x1ac592(0x386)]&&(_0x3adf2b[_0x3c7daa+'-'+_0x13e82e]=_0x2f01d5);}return _0x42e23c&&_0x4539b8&&_0x42e23c[_0x1ac592(0x34b)](_0x4e7bb0=>{const _0x18849f=_0x1ac592;_0x59e98e[_0x18849f(0x220)](_0x4e7bb0,(_0x48e298,_0x2d4697)=>{const _0x36301c=_0x18849f,_0x4eece3=_0x48e298+'-'+_0x2d4697;if(_0x3adf2b[_0x4eece3]){const _0x28d01b=_0x3adf2b[_0x4eece3];_0x15dfb1[_0x36301c(0x3ea)]({'id':Et['id'],'params':{'unitId':_0x3cb570,'subUnitId':_0x3ea840,'pivotTableId':_0x28d01b}});const _0x375a20=this['_sheetsPivotTableConfigModel'][_0x36301c(0x2f4)](_0x3cb570,_0x28d01b),_0x2a7e04=this[_0x36301c(0x294)]['getPivotTableConfig'](_0x3cb570,_0x3ea840,_0x28d01b);_0x15ffe9[_0x36301c(0x3ea)]({'id':Ct['id'],'params':{'unitId':_0x3cb570,'subUnitId':_0x3ea840,'pivotTableId':_0x28d01b,'pivotTableConfig':_0x2a7e04,'collectionConfig':_0x375a20}});}});}),{'redos':_0x15dfb1,'undos':_0x15ffe9};}return{'redos':[],'undos':[]};}}));}};ct=As([wt(0x0,_0x41ab3d),wt(0x1,_0x772e00(_0x3956fc)),wt(0x2,_0x772e00(_0x3fe1d9)),wt(0x3,_0x772e00(ve))],ct);var Ws=Object[_0x1a4bb1(0x1c6)],Ls=(_0x18496e,_0x5f264b,_0x5c9b59,_0x291900)=>{for(var _0x2d64c2=_0x291900>0x1?void 0x0:_0x291900?Ws(_0x5f264b,_0x5c9b59):_0x5f264b,_0x40dc84=_0x18496e['length']-0x1,_0x258638;_0x40dc84>=0x0;_0x40dc84--)(_0x258638=_0x18496e[_0x40dc84])&&(_0x2d64c2=_0x258638(_0x2d64c2)||_0x2d64c2);return _0x2d64c2;},qe=(_0x21d6ac,_0x5c41f8)=>(_0x2e6520,_0x337e02)=>_0x5c41f8(_0x2e6520,_0x337e02,_0x21d6ac);let ut=class extends _0x36ff7f{constructor(_0x24f7bd,_0x367e8d,_0x351abe,_0x10c81e,_0x30448c,_0xbbfc6d){const _0x1f1871=_0x1a4bb1;super(),this[_0x1f1871(0x25b)]=_0x24f7bd,this[_0x1f1871(0x3f7)]=_0x367e8d,this[_0x1f1871(0x2a1)]=_0x351abe,this[_0x1f1871(0x41d)]=_0x10c81e,this[_0x1f1871(0x294)]=_0x30448c,this[_0x1f1871(0x216)]=_0xbbfc6d,this[_0x1f1871(0x36b)]();}['_getPivotAppliedRanges'](_0x3d65ad,_0x41c260,_0x499068){const _0x36e66e=_0x1a4bb1,{pageView:_0x4cad91,cornerView:_0x5488f6,rowView:_0x20bba0,colView:_0x272a1f,dataView:_0x4afa69}=_0x41c260,_0x1da304=_0x3d65ad;let _0x452720;if(_0x499068)_0x452720=[...Ai(_0x1da304)];else{const _0x4a2e3b=ge(_0x1da304,_0x4cad91,!0x0),_0x686a3b=_0x4cad91[_0x36e66e(0x1e4)]>=0x0?_0x4cad91[_0x36e66e(0x1e4)]+0x1:0x0,_0x7e0f29=_0x5488f6['rowCount'],_0x1a06ca=_0x5488f6[_0x36e66e(0x2a0)],_0x38e6ea=_0x4a2e3b['length']>0x0?It:0x0,_0x2a5146=ge({'row':_0x1da304[_0x36e66e(0x3dc)]+_0x686a3b+_0x38e6ea,'col':_0x1da304['col']},_0x5488f6,!0x1,!0x1),_0x1c6ad9=ge({'row':_0x1da304[_0x36e66e(0x3dc)]+_0x686a3b+_0x38e6ea+_0x7e0f29,'col':_0x1da304['col']},_0x20bba0,!0x1,!0x0),_0x509f52=ge({'row':_0x1da304[_0x36e66e(0x3dc)]+_0x686a3b+_0x38e6ea,'col':_0x1da304['col']+_0x1a06ca},_0x272a1f,!0x1,!0x0),_0x340f68=ge({'row':_0x1da304[_0x36e66e(0x3dc)]+_0x686a3b+_0x38e6ea+_0x7e0f29,'col':_0x1da304[_0x36e66e(0x24a)]+_0x1a06ca},_0x4afa69,!0x1,!0x0);_0x452720=[..._0x4a2e3b,..._0x2a5146,..._0x1c6ad9,..._0x509f52,..._0x340f68];}return _0x452720;}[_0x1a4bb1(0x36b)](){const _0x96c66=_0x1a4bb1;this[_0x96c66(0x323)](this[_0x96c66(0x216)][_0x96c66(0x1f7)][_0x96c66(0x40d)](this['_sheetsPivotTableService'][_0x96c66(0x1f7)][_0x96c66(0x26a)]()[_0x96c66(0x20f)],{'handler':(_0x2d4bd1,_0x169022)=>{const _0x34966c=_0x96c66,{cellInfo:_0x1f0603,view:_0x30b6b7,isEmpty:_0x53c97a}=_0x169022,_0x39ee3a=_0x1f0603,{unitId:_0x187fb3,subUnitId:_0xe8c7af}=_0x39ee3a,_0x1e2369=this[_0x34966c(0x2fe)](_0x1f0603,_0x30b6b7,_0x53c97a),_0x35bbfc=this['_sheetInterceptorService'][_0x34966c(0x40a)]({'unitId':_0x187fb3,'subUnitId':_0xe8c7af,'ranges':_0x1e2369}),_0x47e738=Ho(this[_0x34966c(0x2a1)],_0x187fb3,_0xe8c7af,_0x1e2369);_0x47e738[_0x34966c(0x219)]&&(_0x35bbfc[_0x34966c(0x356)][_0x34966c(0x3ea)](_0x47e738[_0x34966c(0x22c)]),_0x35bbfc['undos'][_0x34966c(0x3ea)](_0x47e738[_0x34966c(0x2bc)]));const _0x558744=this['getAutoFitColumnsMutations'](_0x30b6b7,_0x1f0603);return _0x35bbfc[_0x34966c(0x356)][_0x34966c(0x3ea)](..._0x558744[_0x34966c(0x356)]),_0x35bbfc['undos']['push'](..._0x558744['undos']),{'redos':_0x35bbfc[_0x34966c(0x356)],'undos':_0x35bbfc[_0x34966c(0x39d)]};}}));}[_0x1a4bb1(0x225)](_0x40aa80,_0x230a75){const _0x5bbfa9=_0x1a4bb1,{col:_0x2c717b,unitId:_0x49857c,subUnitId:_0x30b2e6}=_0x230a75,_0x367690=[],_0x3209a1=[],_0x5a1713=_0x114ebc(this[_0x5bbfa9(0x41d)],{'unitId':_0x49857c,'subUnitId':_0x30b2e6});if(!_0x230a75||!_0x40aa80||!_0x5a1713)return{'undos':_0x3209a1,'redos':_0x367690};const _0x3d97fc=this['_sheetsPivotTableConfigModel'][_0x5bbfa9(0x436)](),{colView:_0x14378e,dataView:_0x331d19,cornerView:_0x446c14,rowView:_0x982486,formatMap:_0x344ba1}=_0x40aa80,_0x502b70=yo(_0x14378e,_0x3d97fc,!0x0,_0x344ba1),_0x3f92c0=yo(_0x982486,_0x3d97fc,!0x1,_0x344ba1),_0x109f23=Bi(_0x331d19),_0x74faf0=Gi(_0x446c14),{worksheet:_0x548065}=_0x5a1713;if(typeof window<'u'&&window[_0x5bbfa9(0x25f)]){const _0xf431c3=_0x1fa31e({...fe[_0x5bbfa9(0x27b)]}),_0x192208=_0x9b4dce[_0x5bbfa9(0x1fd)](_0x502b70,_0xf431c3)['width']+0x10,_0x398c53=_0x9b4dce[_0x5bbfa9(0x1fd)](_0x109f23,_0xf431c3)['width'],_0x46d83b=Math['floor'](Math[_0x5bbfa9(0x43c)](_0x192208,_0x398c53))+0x10,_0x2556d4=Math['floor'](_0x9b4dce[_0x5bbfa9(0x1fd)](_0x3f92c0,_0xf431c3)[_0x5bbfa9(0x290)]),_0x8dc791=Math[_0x5bbfa9(0x3f9)](_0x9b4dce[_0x5bbfa9(0x1fd)](_0x74faf0,_0xf431c3)[_0x5bbfa9(0x290)]),_0x252e82=Math[_0x5bbfa9(0x43c)](_0x2556d4,_0x8dc791,0x28)+0xc,_0x525fc7=_0x14378e[_0x5bbfa9(0x2a0)]+_0x446c14['colCount'],_0x547329={},_0x681943={};for(let _0x432dc9=_0x2c717b;_0x432dc9<_0x2c717b+_0x525fc7;_0x432dc9++){const _0x54a720=_0x548065['getColumnWidth'](_0x432dc9);_0x547329[_0x432dc9]=_0x54a720,_0x432dc9-_0x2c717b<_0x446c14['colCount']?_0x681943[_0x432dc9-_0x2c717b]=_0x252e82:_0x681943[_0x432dc9-_0x2c717b]=_0x46d83b;}_0x367690[_0x5bbfa9(0x3ea)]({'id':_0x4891f1['id'],'params':{'subUnitId':_0x30b2e6,'unitId':_0x49857c,'ranges':[{'startColumn':_0x2c717b,'endColumn':_0x2c717b+_0x525fc7-0x1,'startRow':0x0,'endRow':_0x548065[_0x5bbfa9(0x342)]()-0x1}],'colWidth':_0x681943}}),_0x3209a1[_0x5bbfa9(0x3ea)]({'id':_0x4891f1['id'],'params':{'subUnitId':_0x30b2e6,'unitId':_0x49857c,'ranges':[{'startColumn':_0x2c717b,'endColumn':_0x2c717b+_0x525fc7-0x1,'startRow':0x0,'endRow':_0x548065['getRowCount']()-0x1}],'colWidth':_0x547329}});}return{'undos':_0x3209a1,'redos':_0x367690};}};ut=Ls([qe(0x0,_0x772e00(_0x58b50b)),qe(0x1,_0x772e00(_0x3956fc)),qe(0x2,_0x772e00(_0x4ed77d)),qe(0x3,_0x772e00(_0x41ab3d)),qe(0x4,_0x772e00(ve)),qe(0x5,_0x772e00(ie))],ut);var Bs=Object[_0x1a4bb1(0x1c6)],Gs=(_0x1a1bd1,_0x5f62f2,_0x2fadb6,_0x2881fb)=>{for(var _0x29299a=_0x2881fb>0x1?void 0x0:_0x2881fb?Bs(_0x5f62f2,_0x2fadb6):_0x5f62f2,_0x3d30fe=_0x1a1bd1['length']-0x1,_0x3a9265;_0x3d30fe>=0x0;_0x3d30fe--)(_0x3a9265=_0x1a1bd1[_0x3d30fe])&&(_0x29299a=_0x3a9265(_0x29299a)||_0x29299a);return _0x29299a;},Ae=(_0x21f9e3,_0x2a42c5)=>(_0xe6cc16,_0x675d08)=>_0x2a42c5(_0xe6cc16,_0x675d08,_0x21f9e3);let ft=class extends _0x36ff7f{constructor(_0x3bd7a5,_0x2c2106,_0x52a053,_0x38827a,_0xf5a4a3,_0x19a41e,_0x5f36cb){const _0x4abe70=_0x1a4bb1;super(),V(this,'disposableCollection',new _0x379c4f()),(this[_0x4abe70(0x2a1)]=_0x3bd7a5,this[_0x4abe70(0x40f)]=_0x2c2106,this[_0x4abe70(0x2ff)]=_0x52a053,this[_0x4abe70(0x41d)]=_0x38827a,this[_0x4abe70(0x294)]=_0xf5a4a3,this[_0x4abe70(0x23e)]=_0x19a41e,this[_0x4abe70(0x3f7)]=_0x5f36cb,this[_0x4abe70(0x393)]());}['_onRefRangeChange'](){const _0x309f06=_0x1a4bb1,_0x4f4fe1=(_0x1bf351,_0x3565d8)=>{const _0x152b94=_0x58d2,_0x55ee33=this[_0x152b94(0x41d)]['getCurrentUnitForType'](_0x47d004[_0x152b94(0x3de)]);if(!_0x55ee33||!(_0x55ee33==null?void 0x0:_0x55ee33[_0x152b94(0x397)](_0x3565d8)))return;this[_0x152b94(0x438)][_0x152b94(0x32a)]();const _0x139e80=_0x255e73=>this[_0x152b94(0x1d0)](_0x255e73,_0x1bf351,_0x3565d8),_0x347ff6=this[_0x152b94(0x294)][_0x152b94(0x2f1)](_0x1bf351,_0x3565d8);if(!(_0x347ff6!=null&&_0x347ff6['size']))return;Array[_0x152b94(0x217)](_0x347ff6[_0x152b94(0x2e0)]())[_0x152b94(0x28c)](_0xda8b33=>{const _0x32730c=_0x152b94,{row:_0x2633f6,col:_0x17b7f2}=_0xda8b33[_0x32730c(0x202)];return _0x1bfeee(_0x2633f6,_0x17b7f2);})[_0x152b94(0x34b)](_0x4bf3d3=>{const _0x1194c4=_0x152b94;this[_0x1194c4(0x438)]['add'](this[_0x1194c4(0x40f)][_0x1194c4(0x3eb)](_0x4bf3d3,_0x139e80,_0x1bf351,_0x3565d8));});},_0xd0e1f6=()=>{const _0x331f6a=_0x58d2,_0x52a8ef=this[_0x331f6a(0x41d)][_0x331f6a(0x33a)](_0x47d004[_0x331f6a(0x3de)]);if(_0x52a8ef){const _0x574d9c=_0x52a8ef[_0x331f6a(0x31a)]();if(!_0x574d9c)return;_0x4f4fe1(_0x52a8ef[_0x331f6a(0x319)](),_0x574d9c['getSheetId']());}};this[_0x309f06(0x323)](this[_0x309f06(0x2ff)][_0x309f06(0x354)](_0x3cc2e1=>{const _0x262371=_0x309f06;if(_0x3cc2e1['id']===_0x598f26['id']){const _0x4bbf76=_0x3cc2e1['params'],_0x388339=_0x4bbf76[_0x262371(0x386)],_0x16fff5=_0x4bbf76[_0x262371(0x3c4)];if(!_0x388339||!_0x16fff5)return;_0x4f4fe1(_0x16fff5,_0x388339);}})),this[_0x309f06(0x323)](this[_0x309f06(0x294)][_0x309f06(0x345)]['subscribe'](_0x46d14c=>{_0x46d14c&&_0xd0e1f6();})),this[_0x309f06(0x323)](this[_0x309f06(0x294)][_0x309f06(0x2d6)][_0x309f06(0x369)](_0x2c3fe7=>{const _0x2c3a9c=_0x309f06,_0x262e26=_0x114ebc(this[_0x2c3a9c(0x41d)]);if(!_0x262e26)return;const {unitId:_0x1c7bfb,subUnitId:_0x579425}=_0x262e26,{unitId:_0x964b4b,subUnitId:_0x3dc079}=_0x2c3fe7;_0x1c7bfb!==_0x964b4b||_0x579425!==_0x3dc079||_0x4f4fe1(_0x1c7bfb,_0x579425);})),_0xd0e1f6();}[_0x1a4bb1(0x1d0)](_0x2dea86,_0x5272ba,_0x18631c){const _0x1d2902=_0x1a4bb1;switch(_0x2dea86['id']){case _0x591b39['id']:return this[_0x1d2902(0x44b)](_0x2dea86['params'],_0x5272ba,_0x18631c);}return{'redos':[],'undos':[]};}[_0x1a4bb1(0x44b)](_0x2657a9,_0x57ec96,_0x2e0e5a){const _0x4beb00=_0x1a4bb1,{fromRange:_0x4517bc,toRange:_0x523c9d}=_0x2657a9,_0x2e3195=[],_0x288722=[],_0x4812c1=_0x114ebc(this[_0x4beb00(0x41d)]);if(!_0x4812c1)return{'undos':_0x288722,'redos':_0x2e3195};if(_0x57ec96!==_0x4812c1[_0x4beb00(0x3c4)]||_0x2e0e5a!==_0x4812c1[_0x4beb00(0x386)])return{'undos':_0x288722,'redos':_0x2e3195};const _0x2044a1=this[_0x4beb00(0x294)][_0x4beb00(0x2f1)](_0x57ec96,_0x2e0e5a);if(_0x2044a1!=null&&_0x2044a1[_0x4beb00(0x3ce)])for(const [_0x1ba373,_0x4bc3b7]of _0x2044a1){const {unitId:_0x2f3c34,subUnitId:_0x23c6a7,row:_0xa6f828,col:_0x3d3efc}=_0x4bc3b7[_0x4beb00(0x202)];if(_0x2f3c34===_0x4812c1[_0x4beb00(0x3c4)]&&_0x23c6a7===_0x4812c1[_0x4beb00(0x386)]){const _0x1d9590=_0x1bfeee(_0xa6f828,_0x3d3efc);if(_0x41833c[_0x4beb00(0x3ab)](_0x1d9590,_0x4517bc)){const _0x5f4513=_0xa6f828-_0x4517bc[_0x4beb00(0x296)],_0xd7a749=_0x3d3efc-_0x4517bc[_0x4beb00(0x3df)],_0x3aa4f4={'row':_0x523c9d[_0x4beb00(0x296)]+_0x5f4513,'col':_0x523c9d[_0x4beb00(0x3df)]+_0xd7a749};_0x2e3195[_0x4beb00(0x3ea)]({'id':pt['id'],'params':{'unitId':_0x2f3c34,'subUnitId':_0x23c6a7,'pivotTableId':_0x1ba373,'targetCellPosition':_0x3aa4f4}}),_0x288722[_0x4beb00(0x3ea)]({'id':pt['id'],'params':{'unitId':_0x2f3c34,'subUnitId':_0x23c6a7,'pivotTableId':_0x1ba373,'targetCellPosition':{'row':_0xa6f828,'col':_0x3d3efc}}});const _0x409a28=_0x3aa4f4[_0x4beb00(0x3dc)]-_0xa6f828,_0x53dbc0=_0x3aa4f4['col']-_0x3d3efc,_0x39f74c=[],_0xc177f4=this[_0x4beb00(0x23e)][_0x4beb00(0x258)](_0x2f3c34,_0x23c6a7,_0x1ba373),_0x59c987=_0xc177f4==null?void 0x0:_0xc177f4[_0x4beb00(0x222)];if(_0x59c987){Object[_0x4beb00(0x37f)](_0x59c987)['forEach'](_0x2289e6=>{const _0x14aec8=_0x4beb00;_0x59c987[_0x2289e6][_0x14aec8(0x34b)](_0x3db6ac=>{const _0x23190d=_0x14aec8,_0xfc4d8={..._0x3db6ac};_0xfc4d8[_0x23190d(0x296)]=_0x3db6ac[_0x23190d(0x296)]+_0x409a28,_0xfc4d8[_0x23190d(0x417)]=_0x3db6ac[_0x23190d(0x417)]+_0x409a28,_0xfc4d8['startColumn']=_0x3db6ac[_0x23190d(0x3df)]+_0x53dbc0,_0xfc4d8[_0x23190d(0x1fe)]=_0x3db6ac[_0x23190d(0x1fe)]+_0x53dbc0,_0x39f74c[_0x23190d(0x3ea)](_0xfc4d8);});});const _0x4eb93e=this[_0x4beb00(0x3f7)][_0x4beb00(0x40a)]({'unitId':_0x2f3c34,'subUnitId':_0x23c6a7,'ranges':_0x39f74c});_0x2e3195['push'](..._0x4eb93e['redos']),_0x288722['push'](..._0x4eb93e[_0x4beb00(0x39d)]);const _0x5eaa43=Ho(this['_injector'],_0x2f3c34,_0x23c6a7,_0x39f74c);_0x5eaa43[_0x4beb00(0x219)]&&(_0x2e3195[_0x4beb00(0x3ea)](_0x5eaa43[_0x4beb00(0x22c)]),_0x288722[_0x4beb00(0x3ea)](_0x5eaa43[_0x4beb00(0x2bc)]));}}}}return{'redos':_0x2e3195,'undos':_0x288722};}};ft=Gs([Ae(0x0,_0x772e00(_0x4ed77d)),Ae(0x1,_0x772e00(_0x3d4d6b)),Ae(0x2,_0x554f1b),Ae(0x3,_0x41ab3d),Ae(0x4,_0x772e00(ve)),Ae(0x5,_0x772e00(Ne)),Ae(0x6,_0x772e00(_0x3956fc))],ft);var $s=Object['getOwnPropertyDescriptor'],zs=(_0x19c8f9,_0x31e8d1,_0x1da822,_0xa3c426)=>{const _0x45c0fb=_0x1a4bb1;for(var _0x25adf6=_0xa3c426>0x1?void 0x0:_0xa3c426?$s(_0x31e8d1,_0x1da822):_0x31e8d1,_0x443ce7=_0x19c8f9[_0x45c0fb(0x2ac)]-0x1,_0x3666f3;_0x443ce7>=0x0;_0x443ce7--)(_0x3666f3=_0x19c8f9[_0x443ce7])&&(_0x25adf6=_0x3666f3(_0x25adf6)||_0x25adf6);return _0x25adf6;},wo=(_0x77f2e9,_0x3595c5)=>(_0x2ce6fb,_0xe5254e)=>_0x3595c5(_0x2ce6fb,_0xe5254e,_0x77f2e9);let gt=class extends _0x36ff7f{constructor(_0x547cb5,_0x4a585b){super(),this['_sheetInterceptorService']=_0x547cb5,this['_sheetsPivotTableConfigModel']=_0x4a585b,this['_initRemoveSheetCommandInterceptor']();}[_0x1a4bb1(0x381)](){const _0x2af8d6=_0x1a4bb1;this['disposeWithMe'](this[_0x2af8d6(0x3f7)]['interceptCommand']({'getMutations':_0x3375ab=>{const _0x331b5f=_0x2af8d6;if(_0x3375ab['id']===_0x24f8c7['id']){const _0xa64121=[],_0x822d6c=[],_0x44250a=_0x3375ab[_0x331b5f(0x282)],{unitId:_0x3d9b86,subUnitId:_0x4204bf}=_0x44250a;if(!_0x3d9b86||!_0x4204bf)return{'undos':_0x822d6c,'redos':_0xa64121};const _0x280416=this['_sheetsPivotTableConfigModel']['getSubUnitPivotConfigs'](_0x3d9b86,_0x4204bf);if(_0x280416!=null&&_0x280416['size'])for(const [_0x4038d5,_0x204ffe]of _0x280416){_0xa64121['push']({'id':Et['id'],'params':{'unitId':_0x3d9b86,'subUnitId':_0x4204bf,'pivotTableId':_0x4038d5}});const _0x525bb0={...this[_0x331b5f(0x294)]['getCollection'](_0x3d9b86,_0x4038d5)};_0x822d6c['push']({'id':Ct['id'],'params':{'unitId':_0x3d9b86,'subUnitId':_0x4204bf,'pivotTableId':_0x4038d5,'pivotTableConfig':_0x204ffe,'collectionConfig':_0x525bb0}});}return{'redos':_0xa64121,'undos':_0x822d6c};}return{'redos':[],'undos':[]};}}));}};gt=zs([wo(0x0,_0x772e00(_0x3956fc)),wo(0x1,_0x772e00(ve))],gt);var js=Object['getOwnPropertyDescriptor'],Js=(_0x2b7f4,_0xcb136d,_0xc1e738,_0x51b7eb)=>{for(var _0x291b25=_0x51b7eb>0x1?void 0x0:_0x51b7eb?js(_0xcb136d,_0xc1e738):_0xcb136d,_0x73ee0=_0x2b7f4['length']-0x1,_0x54e23f;_0x73ee0>=0x0;_0x73ee0--)(_0x54e23f=_0x2b7f4[_0x73ee0])&&(_0x291b25=_0x54e23f(_0x291b25)||_0x291b25);return _0x291b25;},Ke=(_0x20798b,_0x5f4f2d)=>(_0x7cb615,_0x5e3721)=>_0x5f4f2d(_0x7cb615,_0x5e3721,_0x20798b);let ht=class extends _0x36ff7f{constructor(_0x5a6060,_0x20b91a,_0x3d366b,_0x3eb945,_0x1e3489,_0x52b602){const _0x19c7a9=_0x1a4bb1;super(),this[_0x19c7a9(0x2ff)]=_0x5a6060,this['_sheetsPivotRpcService']=_0x20b91a,this['_sheetsPivotTableAdaptorModel']=_0x3d366b,this[_0x19c7a9(0x294)]=_0x3eb945,this[_0x19c7a9(0x41d)]=_0x1e3489,this[_0x19c7a9(0x330)]=_0x52b602,this[_0x19c7a9(0x2c4)](),this[_0x19c7a9(0x303)]();}[_0x1a4bb1(0x2c4)](){const _0x55ee9b=_0x1a4bb1;this[_0x55ee9b(0x323)](this[_0x55ee9b(0x2ff)][_0x55ee9b(0x354)](_0x5e6b7b=>{const _0x1e79de=_0x55ee9b;if(_0x5e6b7b['id']!==lo['id'])return;const _0x528eae=_0x5e6b7b['params'];this[_0x1e79de(0x394)][_0x1e79de(0x27f)](_0x528eae);})),this[_0x55ee9b(0x323)](this[_0x55ee9b(0x2ff)][_0x55ee9b(0x354)](_0x48cdcf=>{const _0x135507=_0x55ee9b;if(_0x48cdcf['id']===co['id']){const _0x343ba0=_0x48cdcf[_0x135507(0x282)];if(_0x343ba0){const {unitId:_0x3afc99,subUnitId:_0x3b64b8,oldSubUnitId:_0x114d8b,pivotTableId:_0x4e37a9,pivotTableConfig:_0x888324,collectionConfig:_0x2228ee}=_0x343ba0;this[_0x135507(0x294)]['updateConfigCache'](_0x3afc99,_0x114d8b,_0x343ba0[_0x135507(0x38b)],null),this[_0x135507(0x294)]['updateConfigCache'](_0x3afc99,_0x3b64b8,_0x4e37a9,_0x888324),this[_0x135507(0x294)][_0x135507(0x285)](_0x3afc99,_0x2228ee);}}})),this[_0x55ee9b(0x323)](this['_commandService'][_0x55ee9b(0x354)](_0x96fab=>{const _0x3d5f33=_0x55ee9b;if(_0x96fab['id']!==Dt['id'])return;const _0x5e8c41=_0x114ebc(this[_0x3d5f33(0x41d)]);if(!_0x5e8c41)return;const {unitId:_0x59d65d,subUnitId:_0x185adb}=_0x5e8c41,_0x14dec8=_0x96fab[_0x3d5f33(0x282)];if(_0x14dec8['collectionConfig']&&Object[_0x3d5f33(0x37f)](_0x14dec8[_0x3d5f33(0x3c6)])[_0x3d5f33(0x34b)](_0xdd03f1=>{const _0x3953fa=_0x3d5f33;var _0x5c0e39;(_0x5c0e39=_0x14dec8[_0x3953fa(0x3c6)])!=null&&_0x5c0e39[_0xdd03f1]&&this['_sheetsPivotTableConfigModel'][_0x3953fa(0x285)](_0xdd03f1,_0x14dec8[_0x3953fa(0x3c6)][_0xdd03f1]);}),_0x14dec8[_0x3d5f33(0x401)]){const _0x4b157d=_0x14dec8[_0x3d5f33(0x401)],{unitId:_0x3139cd,subUnitId:_0xc22708,view:_0x475be2,pivotTableId:_0x263afe,type:_0x1a4492,pivotConfig:_0x78e40}=_0x4b157d;if(_0x1a4492===B[_0x3d5f33(0x3b7)])this[_0x3d5f33(0x23e)][_0x3d5f33(0x2b4)]({'unitId':_0x3139cd,'subUnitId':_0xc22708,'pivotTableId':_0x263afe,'type':_0x1a4492}),this[_0x3d5f33(0x294)][_0x3d5f33(0x3a6)](_0x3139cd,_0xc22708,_0x263afe,null);else{const _0x2f3e9f=new _0x1a88a1();_0x2f3e9f[_0x3d5f33(0x38e)](_0x475be2),this['_sheetsPivotTableConfigModel'][_0x3d5f33(0x3a6)](_0x3139cd,_0xc22708,_0x263afe,_0x78e40),this[_0x3d5f33(0x23e)]['clearRenderCache']({'unitId':_0x3139cd,'subUnitId':_0xc22708,'pivotTableId':_0x263afe,'type':_0x1a4492,'view':_0x2f3e9f}),this['_sheetsPivotTableAdaptorModel']['updateRenderCache']({'unitId':_0x3139cd,'subUnitId':_0xc22708,'view':_0x2f3e9f,'pivotTableId':_0x263afe,'type':_0x1a4492});}}else _0x14dec8[_0x3d5f33(0x33e)]&&(_0x14dec8[_0x3d5f33(0x33e)][_0x3d5f33(0x34b)](_0x5eb02a=>{const _0x564e64=_0x3d5f33,{unitId:_0xddfce2,subUnitId:_0x29772e,view:_0x4f6b77,pivotTableId:_0x4751db,type:_0xac69ab,pivotConfig:_0x2a885b}=_0x5eb02a,_0x3df266=new _0x1a88a1();_0x3df266[_0x564e64(0x38e)](_0x4f6b77),this['_sheetsPivotTableConfigModel'][_0x564e64(0x3a6)](_0xddfce2,_0x29772e,_0x4751db,_0x2a885b),this[_0x564e64(0x23e)][_0x564e64(0x2c6)]({'unitId':_0xddfce2,'subUnitId':_0x29772e,'view':_0x3df266,'pivotTableId':_0x4751db,'type':_0xac69ab});}),this['_sheetsPivotTableConfigModel'][_0x3d5f33(0x403)]());this['_sheetsPivotTableAdaptorModel'][_0x3d5f33(0x3a1)](_0x59d65d,_0x185adb);}));}[_0x1a4bb1(0x303)](){const _0x270d85=_0x1a4bb1;this[_0x270d85(0x330)][_0x270d85(0x32d)](Ut['id'],{'commandId':Ut['id'],'getDirtyData'(_0x185d6d){const _0x1c2b97=_0x270d85;return{'dirtyUnitFeatureMap':_0x185d6d[_0x1c2b97(0x282)]};}});}};ht=Js([Ke(0x0,_0x772e00(_0x554f1b)),Ke(0x1,_0x772e00(X)),Ke(0x2,_0x772e00(Ne)),Ke(0x3,_0x772e00(ve)),Ke(0x4,_0x772e00(_0x41ab3d)),Ke(0x5,_0x34cdf1)],ht);var Hs=Object[_0x1a4bb1(0x1fb)],qs=Object[_0x1a4bb1(0x1c6)],Ks=(_0x4caf7d,_0x402bfd,_0x25ef2f)=>_0x402bfd in _0x4caf7d?Hs(_0x4caf7d,_0x402bfd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25ef2f}):_0x4caf7d[_0x402bfd]=_0x25ef2f,Ys=(_0x38cb29,_0xde9315,_0x8242db,_0x4c453c)=>{const _0x2042e4=_0x1a4bb1;for(var _0xe529c1=_0x4c453c>0x1?void 0x0:_0x4c453c?qs(_0xde9315,_0x8242db):_0xde9315,_0x352e2c=_0x38cb29[_0x2042e4(0x2ac)]-0x1,_0x362f6f;_0x352e2c>=0x0;_0x352e2c--)(_0x362f6f=_0x38cb29[_0x352e2c])&&(_0xe529c1=_0x362f6f(_0xe529c1)||_0xe529c1);return _0xe529c1;},_t=(_0x29213a,_0x33794e)=>(_0x624a9a,_0x5f483d)=>_0x33794e(_0x624a9a,_0x5f483d,_0x29213a),Zo=(_0x22016c,_0x513fa9,_0x21f030)=>Ks(_0x22016c,typeof _0x513fa9!=_0x1a4bb1(0x35f)?_0x513fa9+'':_0x513fa9,_0x21f030);let Vt=class extends _0x504729{constructor(_0x327629=To,_0x12df28,_0x1f23b0,_0x2d4ade,_0x5825c6){const _0x3ba30a=_0x1a4bb1;super(),this[_0x3ba30a(0x2fb)]=_0x327629,this[_0x3ba30a(0x2a1)]=_0x12df28,this[_0x3ba30a(0x2ff)]=_0x1f23b0,this[_0x3ba30a(0x1de)]=_0x2d4ade,this[_0x3ba30a(0x433)]=_0x5825c6;const {..._0x250686}=_0x12abcd({},To,this[_0x3ba30a(0x2fb)]);this[_0x3ba30a(0x1de)][_0x3ba30a(0x1d2)](Ko,_0x250686),this['_initRegisterCommand'](),this[_0x3ba30a(0x372)]();}['_initConfig'](){const _0x22a3b4=_0x1a4bb1;var _0x44d5dc;const _0x106eca=(_0x44d5dc=this[_0x22a3b4(0x2fb)])==null?void 0x0:_0x44d5dc[_0x22a3b4(0x3b4)];this['_configService'][_0x22a3b4(0x1d2)](q,_0x106eca===!0x0);}[_0x1a4bb1(0x208)](){const _0x5e41a9=_0x1a4bb1;var _0x179687;let _0x8651f5=[];const _0x518ebd=(_0x179687=this[_0x5e41a9(0x2fb)])==null?void 0x0:_0x179687[_0x5e41a9(0x3b4)];_0x518ebd===!0x0?_0x8651f5=[[ie],[X],[ht],[Ne],[ve],[gt],[ct],[ft],[ut]]:_0x518ebd===!0x1?_0x8651f5=[[G],[dt]]:_0x518ebd===void 0x0&&(_0x8651f5=[[G],[dt],[ie],[X],[ht],[Ne],[ve],[gt],[ct],[ft],[ut]]),_0x8651f5[_0x5e41a9(0x34b)](_0x537bd6=>this[_0x5e41a9(0x2a1)]['add'](_0x537bd6)),[dt,ht,ie,ct,gt,ft,ut][_0x5e41a9(0x34b)](_0x3f165d=>{const _0x11a324=_0x5e41a9;this[_0x11a324(0x2a1)][_0x11a324(0x2bb)](_0x3f165d)&&this[_0x11a324(0x2a1)][_0x11a324(0x39e)](_0x3f165d);});}['_initRegisterCommand'](){const _0x4f0e62=_0x1a4bb1;[vs,ps,hs,ms,Cs,Ms,Ds,bs,Ps,Ss,ys,Ts,Rs,Is,Ct,oo,Et,Gt,Yo,Qo,Ht,$t,zt,jt,Kt,qt,pt,ro,lo,Dt,Zt,eo,Yt,Jt,uo,to,Xt,Ut,co,ws,Qt,_s,Fs][_0x4f0e62(0x34b)](_0x2d3d18=>{const _0x2df7e5=_0x4f0e62;var _0x25d4ac;(_0x25d4ac=this[_0x2df7e5(0x433)])==null||_0x25d4ac[_0x2df7e5(0x349)](_0x2d3d18),this[_0x2df7e5(0x2ff)][_0x2df7e5(0x215)](_0x2d3d18);});}};Zo(Vt,_0x1a4bb1(0x39b),ao),Zo(Vt,_0x1a4bb1(0x1e0),_0x47d004['UNIVER_SHEET']),Vt=Ys([_0x50d0a5(_0x1ce9db),_t(0x1,_0x772e00(_0x4ed77d)),_t(0x2,_0x772e00(_0x554f1b)),_t(0x3,_0x1893a6),_t(0x4,_0xaa6feb(_0x49de43))],Vt);export{hs as AddPivotFieldCommand,Gt as AddPivotFieldMutation,ps as AddPivotTableCommand,Ct as AddPivotTableMutation,vs as AddPivotTableWithConfigCommand,It as BLANK_ROW_COUNT,so as DEFAULT_PIVOT_NUMBER,ms as MovePivotFieldCommand,Rs as MovePivotTableCommand,A as PivotDisplayDataType,Is as PivotDrillDownCommand,B as PivotTableOperationEnum,Ut as PivotTableViewDirtyMarkOperation,Wo as PositionType,Cs as RemovePivotFieldCommand,$t as RemovePivotFieldMutation,Et as RemovePivotTableMutation,zt as RenamePivotFieldMutation,Fs as ResetPivotFieldsConfigCommand,Ko as SHEETS_PIVOT_PLUGIN_CONFIG_KEY,ao as SHEET_PIVOT_TABLE_PLUGIN,bs as SetPivotCollapseCommand,jt as SetPivotCollapseMutation,Jt as SetPivotFieldFormatMutation,_s as SetPivotFieldsConfigCommand,Ss as SetPivotFilterCommand,Ht as SetPivotFilterMutation,qt as SetPivotOptionMutation,pt as SetPivotPositionMutation,Ps as SetPivotSortCommand,Kt as SetPivotSortMutation,Yt as SetPivotSubtotalTypeMutation,ws as SetPivotValueFilterCommand,Qt as SetPivotValueFilterMutation,G as SheetsPivotDataSourceModel,X as SheetsPivotRPCService,Ne as SheetsPivotTableAdaptorModel,ve as SheetsPivotTableConfigModel,ie as SheetsPivotTableService,Vt as UniverSheetsPivotTablePlugin,Ds as UpdateDateGroupCommand,Zt as UpdateFieldPositionMutation,ys as UpdatePivotFieldSettingCommand,Xt as UpdatePivotFieldSourceInfoMutation,Ts as UpdatePivotTableSourceRangeCommand,to as UpdatePivotTableSourceRangeMutation,Ms as UpdatePivotValuePositionCommand,eo as UpdateValuePositionMutation,me as applyChangeSet,Jo as canUsePivot,fe as defaultThemeStyle,Ho as generateSetRangeValueMutations,ge as getAdjustRangesPosition,Ai as getEmptyPivotRanges,Nt as getFieldListByArea,Re as getInsertRowColMutations,Ei as getPivotCellInfo,go as getPivotInfoByLicense,Oi as getPivotTableInfo,vt as transFromCellValue,Bt as unionPivotViewRange};
|