@univerjs-pro/sheets-pivot 1.3.1 → 1.4.0
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/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.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-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/cjs/plugin-BEqPlwOa.js +1 -0
- package/lib/cjs/plugin-Bcso0Fyb.js +1 -0
- package/lib/cjs/worker.js +1 -0
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.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-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/es/plugin-BtMniDHc.js +1 -0
- package/lib/es/plugin-qOgShIxC.js +1 -0
- package/lib/es/worker.js +1 -0
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/plugin-BtMniDHc.js +1 -0
- package/lib/plugin-qOgShIxC.js +1 -0
- package/lib/types/commands/command/date-group-util.d.ts +3 -1
- package/lib/types/commands/command/set-pivot-date-filter.command.d.ts +11 -0
- package/lib/types/commands/command/set-pivot-filter.command.d.ts +2 -0
- package/lib/types/commands/mutations/change-apply-util.d.ts +1 -1
- package/lib/types/const/const.d.ts +4 -3
- package/lib/types/const/template.d.ts +21 -21
- package/lib/types/const/type.d.ts +44 -3
- package/lib/types/facade/f-pivot-table.d.ts +28 -1
- package/lib/types/index.d.ts +8 -5
- package/lib/types/models/sheets-pivot-config-model.d.ts +1 -1
- package/lib/types/plugin.d.ts +1 -1
- package/lib/types/services/sheets-pivot-table.service.d.ts +16 -2
- package/lib/types/util.d.ts +1 -1
- package/lib/types/worker.d.ts +1 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.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-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/lib/worker.js +1 -0
- package/package.json +21 -16
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x274d(_0x4c4dcd,_0x3bc621){_0x4c4dcd=_0x4c4dcd-0x8e;const _0x383087=_0x3830();let _0x274d33=_0x383087[_0x4c4dcd];return _0x274d33;}function _0x3830(){const _0x1d776a=['Values','forRow','UniverSheetsFilter','body','_runtimeSequence','sheet.command.move-pivot-field','setDataRecordCount','UpdatePivotFieldSourceInfoMutation','getFieldDataType','reduce','_reportScopeMap','dataRanges','sheets-pivot.cellDateGroupDisplay.month','changed$','updateRangeKeyMap','isFeatureAuthorizedWithinTime','attempts','handleReportSourceRangeChange','_sheetInterceptorService','IExclusiveRangeService','ICommandService','round','isColumnLabel','RemoveSheetMutation','kind','getDateType','pivot-cache-','maxLimitItemCount','PivotView','dimension','sheet.mutation.set-pivot-position','constructor','grandTotal','getDisplayName','[\x22blank\x22]','_model','merge','dataFieldsCollection','Column\x20Labels','sheets-pivot.emptyPivot.column','_reportBindings','Subtotal','SetPivotLayout','setPivotCollapse','UpdateValuePosition','compileSlicerSelection','isolateTextForBidiContext','NAME','isValueFilterOperator','ManualFilter','setPivotNumberGroup','sheet.operation.pivot-table-view-formula-mark-dirty','triggerDirtyFeature','getDate','PivotFilterTypeEnum','PivotCacheProviderError','New','sheet.command.add-pivot-table','headerInfo','PivotTableOperationEnum','Date','dispose','DateSystem','UniverProEnginePivot','FilterAll','removeField','date-group','All','getViewData','sheets-pivot.columnName','6jLECQg','_refRangeService','PivotCacheProviderErrorCodeEnum','@univerjs/core','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','IPivotCacheProviderRegistry','getIndexesByKey','_featureCalculationManagerService','pivotFieldRemoveCoordination','InsertRowCommand','runtimeId','SHEET_PIVOT_TABLE_PLUGIN','Hour-Minute','_pivotConfigChange$','handleAsyncResponse','startCollectChangeset','date','addPivotTable','sheets-pivot.subTotalText','every','SetPivotOptionMutation','generateRandomId','hasOwnProperty','getLastRow','NumberGroupField','getId','_pendingChanges','UniverFormulaEnginePlugin','colRanges','InsertColMutation','pivotPerformCheck','IResourceManagerService','getExistingCacheId','sheets-pivot.dateGroup.second','ClearSelectionAllCommand','NumberFormat','setOptions','sheets-pivot.config','Value','getValue','SetPivotDateGroup','sheets-pivot.value','currentDateType','Grand\x20Total','SetOption','updateRenderCache','refreshSource','_pivotRenderValueMatrixCache','NumberGroupDefaults','_univerInstanceService','handleMoveRange','redos','occupiedColumns','numfmt','year','fetchThroughInterceptors','_requestResolvers','isLeaf','markDirty$','Row','token','_host','batchUpdate','cornerRanges','addPivotTableWithConfig','3292056yyXxtS','getFieldCountByArea','getCurrentSelections','BOOLEAN','_exclusiveRangeService','sheets-pivot.dateGroup.hour','setLayout','isDateGroupFieldJSON','_onRefRangeChange','DIV_BY_ZERO','UniverLicensePlugin','queryDirtyPivotTable','Filter','showDataAs','onCommandExecuted','splice','rightOffset','getTableFieldById','getDateGroupName','setFieldFormat','_pivotTableMatrixInfo','_getAutoName','_dataFieldManagerCollection','getFilterInfo','_collectionConfigModel','operator','DrillDown','getOptions','PivotDateGroupFieldDateTypeEnum','registerCommand','string','Optional','rowRanges','valueIndex','items','sourceLeaseCount','collapseInfo','rangeKeyMap','getRuntimeId','sheets-pivot.cellDateGroupDisplay.monthDate','_commandService','dataFieldIdMap','toString','UniverSheetsPivotTablePlugin','ambiguousMember','FilterNoneSortNone','before','default','_emitConfigChange','matrix','beginRuntime','updatePivotTableMatrixInfo','pivotManualFilterCoordination','_pivotTableRangeInfo','220nBlyGz','SetPivotCollapseCommand','SetPivotNumberGroupCommand','rowFields','FilteredSortNone','arrayFormulaCellData','ptn','UniverRpc','_initializations','_localeService','getAutoDisplayName','_sheetsSelectionsService','RemoveColMutation','onStarting','pushUndoRedo','getPivotTableInstance','getRowCount','isDateGroupField','SetPivotCollapseMutation','result','getGroupFieldsInfoByIds','sheet.command.set-pivot-table-options','setRetainedSources','_globalComputedStartHelpFunc','getSheetFeatureLimit','sheet.command.pivot-drill-down','sheet.command.update-pivot-table-source-range','sheets-pivot.cellDateGroupDisplay.before','clearExclusiveRangesByGroupId','sheet.command.add-pivot-table-with-config','runtimeIds','getLicenseInfo','Month','paths','_globalSubject','interceptor','sheet.command.update-date-group','selection','setRangeValueUndoMutation','iterateFieldDim','retainFilterFieldIds','day','getPivotDateGroupContext','rxjs','setDefaultSortLocale','setDateSystem','_subjectFieldsCollectionChange','iterateField','average','sheets-pivot.renderText.valueField','_markDirty$','mergeWorksheetSnapshotWithDefault','updateCollectionConfig','pivot','FilterSingle','1467230RhaSvL','fieldsConfig','getSheetBySheetName','MovePivotField','PivotDateGroupingMode','DataField','function','getTextInfo','toJSON','extractFormulaError','projection','ownerUnitId','_createRecord','cjk','dataRangeInfo','foreach','SetPivotTableConfig','RemoveSheetCommand','getSubUnitPivotRenderCache','reject','columnFields','versions','sheet.mutation.set-pivot-value-filter','_pivotRenderInfoCache','ExcelLike','stringify','runtimeState$','getTypeOfUnitAdded$','#f4f4f5','ValueFilter','SheetsPivotDataSourceModel','bind','_updateModelCache','sheet.command.add-pivot-field','@univerjs-pro/sheets-pivot','sheet.mutation.rename-pivot-field','_viewData','varp','setRange','_initCopySheetCommandInterceptor','_runtimeState$','isColMultiMeasure','acceptsRuntime','getCellRaw','registerSyncingMutations','getRangeData','CacheNotFound','getPivotCacheId','@univerjs-pro/engine-pivot','hasCommand','Min\x20of\x20','UniverProPivotCache','PivotViewCellValueTypeEnum','fields','dateGroupingMode','parseInt','_sheetsPivotRpcService','_collectionChange$','refreshOnce','assign','getSubUnitPivotMatrix','Date1900','colInfo','_viewData$','UniverProLicense','getSheetId','getUnitId','Style','FilterNoneSortAsc','getDataFieldType','sheets-pivot.cellDateGroupDisplay.hourMinute','MUTATION','getInterceptPoints','dateSystem','entries','registerRefRange','getRecordValueKey','reportKeys','sheets-pivot.renderText.subtotalWithValue','deleteDataField','text','sheet.mutation.add-group-collection','calculation-failed','handled','_textInfo','realDeleteValue','getPivotItemRenderInfoCache','sheets-pivot.numberGroupAfter','invalidSelection','sheets-pivot.grandTotal','CellValueType','SetPivotSetting','sheet.mutation.set-pivot-format','setName','valueFilter','intercept','workbook','fetchThroughAsyncInterceptors','PivotErrorTypeEnum','_initLocale','STRING','Invalid\x20Pivot\x20filter\x20item.','BehaviorSubject','createCollectionWithDataRange','refreshGroupField','isRowLabel','MoveRangeCommand','SetFilterInfo','getCollection','sheet.mutation.initialize-pivot-runtime-local','product','minDate','_sheetsPivotTableConfigModel','addCollectionByJSON','getDateSystem','getFontStyleString','sheet.mutation.set-pivot-collapse','sheet.command.set-pivot-number-group','renameField','resolvePivotValueFieldId','Subject','getDataFieldId','PivotDataFieldSortOperatorEnum','moveSources','new','removeValueFilterInfoByValueFieldId','PivotDataFieldDataTypeEnum','min','fromRange','unshift','sheets-pivot.cellDateGroupDisplay.quarter','PivotDataFieldTypeEnum','addedGroupJSON','rowLevelFieldId','createLabelField','resetArea','dirtyFieldIds','_retainedSources','configs','pageStyle','sheet.command.remove-pivot-field','sourceName','distinctUntilChanged','broadcastCollectionChange','excelLike','getFieldById','_pivotViewCache','_globalComputedEndHelpFunc','pageView','DisposableCollection','from','UpdatePivotValuePositionCommand','filterInfo','getMatrix','PIVOT_FIELD_REMOVE_COORDINATION','None','get','pivotTableConfig','sheet.command.set-pivot-manual-groups','initializeRuntime','updatePivotTableSourceRange','collectionChange$','sheet.mutation.update-pivot-table-source-range','oldMatrix','CopySheetCommand','unitId','_ensurePivotTableMatrixInfo','SetSubtotalType','object','panel','measure','PivotCacheProviderRegistry','FieldsCollection','@univerjs/rpc','Exclude','colView','sheet.mutation.add-pivot-table','isErrorValue','getSubtotal','removeSourceRangeChange','setPivotManualGroups','sheet.command.update-pivot-value-position','sequenceExecute','sheets-pivot.stdDevName','_generateUniqueVersion','viewData$','value','updateConfig','ReferenceInvalid','\x20-\x20','DataSyncPrimaryController','acquire','RemoveSheetsFilterMutation','createDataFieldFromJSON','SetPivotFieldsConfigCommand','grouping','sheets-pivot.renderText.multipleGrandTotal','SetSortInfo','createInterceptorKey','areaInfo','sheets-pivot.cellDateGroupDisplay.minute','Disposable','_viewUpdate$','removePivotField','push','fieldId','ResetPivotTable','setPivotInitCompleted','UniverSheets','sum','SheetsPivotRPCService','updateFieldPosition','removedGroupJSON','sheets-pivot.dateGroup.yearMonth','collapse','format','changesets','_initRuntimeLifecycle','Collapse','_subjectCollectionChange','unit','rowInfo','RANGE_TYPE','RemovePivotFieldCommand','_getStructureMutations','fontRenderExtension','autoDateGroup','some','UniverEngineRender','delete','setRangeValueRedoMutation','rowCount','sheets-pivot.numberGroupBefore','setRangeKeyMap','sheet.command.set-pivot-collapse','Average\x20of\x20','Tools','hasField','add','sheets-pivot.cellDateGroupDisplay.year','addPivotField','sheet.mutation.send-pivot-config-local','getPivotDirtyViewInfo','valueFields','size','targetCellInfo','includes','FORCE_STRING','_sheetsPivotDataSourceModel','asObservable','SetPivotManualGroupsCommand','_initRegisterCommand','createValueField','2558331moGYnp','col','getPivotRecordMember','setPivotExcelDateGroup','targetSubUnitName','isNaN','interceptCommand','toPrecision','getTypeOfUnitDisposed$','compileRecordFilter','originTargetInfo','_sheetsPivotCacheService','complete','PivotCellStyleTypeEnum','onQueryStart','forValue','markDirty','removeCollectionMetadata','isArray','compilePivotRecordFilter','Hour','collections','getOriginFieldId','pivotMutationGenerate','CommandType','SHEET_PIVOT_IN_MAIN_THREAD','setPivotOption','sheet.mutation.set-pivot-show-data-as','SetPivotCollapse','getIntersectRange','COLUMN','abs','info','_fieldsCollectionChange$','handles','getCurrentUnitOfType','@univerjs/sheets','month','UniverCore','_init','getAutoDisplayNameFunction','_emitCollectionChange','_ensurePivotTableRangeInfo','createAsyncInterceptorKey','SheetsPivotCacheService','getValuePosition','cellData','getDirection','syncExecuteCommand','registerCallbackWithEvent','_initClearSelectionCommandInterceptor','FilteredSortAsc','record','[SheetsPivotDataSourceModel]','getTargetByPivotTableId','getUpdateRangeDeleteIds','deleteField','addDirtyPivotTable','remapPivotReportDataFields','textInfo','Minute','equals','sheets-pivot.sumName','_resourceManagerService','sheet.command.set-pivot-excel-date-group','records','_runtimeStates','getActiveSheet','other','Var\x20of\x20','Rectangle','setPivotSetting','setRuntimeState','packageName','Column','UpdatePivotTableSourceRangeCommand','Date1904','pushComputingStatusSubject','refreshDataField','_deleteRecordIfUnused','InterceptorEffectEnum','PivotTableFiledAreaEnum','isPrefixValue','applyConfigChange','addField','_cacheConfigModel','PivotMultipleValueId','RenameField','iterateFieldByArea','excelDateToUnixMilliseconds','call','sortLocale','generateSetRangeValueMutations','_dataSyncPrimaryController','RemoveRowCommand','_updatePivotTableInstanceCache','HorizontalAlign','after','setValuePivotFilter','getSourceRange','siblingDateTypes','PivotDisplayDataType','_getRemovedFieldMutations','getFilterFieldIdByIndex','_createExclusiveRange','InterceptorManager','setSourceName','tableFieldId','AddPivotTable','getSourceName','NUM','generateMutationsByRanges','column','unsubscribe','sheets-pivot.dateGroup.minute','dataFields','has','setRowCollapseLevel','sheets-pivot.columnLabels','dataView','getRangeStartEndInfo','#eceeff','updateSource','pivotTableId','SetPivotFieldFormatMutation','sheet.mutation.pivot-update-field-position','getSheetBySheetId','pluginName','lastCol','cellValue','YearMonth','dataFieldManager','sheets-pivot.emptyPivot.values','uniqueDataFieldName','Varp\x20of\x20','PivotCacheReferenceKindEnum','sheets-pivot.dateGroup.yearQuarter','EXCEL_DATE_BEFORE_KEY','subtotal','random','_rejectRequest','Unit','generateNewSheetName','set','MovePivotTableCommand','dateRange','Second','Div0','UpdateValuePositionMutation','decorate','row','getColumnCount','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','parse','subscribe','rangeType','getFieldPositionInfoById','_initConfig','isDate','generateNullCell','UNIVER_SHEET','tag','updatePivotSource','InsertSheetCommand','getNoUsedDataFieldIds','dataFieldId','acquireForReport','toStringTag','IUndoRedoService','level','query','_sourceFieldLeases','FilterNoneSortDesc','setDirty','COMMAND','Year','_sourceLeases','setDateType','updateCollectionMetadata','_cacheById','SheetInterceptorService','collectionConfig','getPivotTableModelConfig','Sum\x20of\x20','getSnapshot','rowType','width','keys','_toJSON','_cacheBySourceKey','#e6ebfa','sheets-pivot.blank','sheets-pivot.dateGroup.quarter','setPivotTable','IFeatureCalculationManagerService','data','1.3.1','forEach','_globalComputingSrv','rangesInfo','addCollection','reverse','sheet.command.set-pivot-collapse-by-field','rowStyle','setValue','getPivotDateGroupingMode','Injector','getAdjustRangesPosition','pivotInitCompleted$','headerMap','manualGroupMembers','hiddenFields','retainSourceFields','columnInfo','clear','skip','1930840eFXXHf','_initSnapshot','getRefRangeMutationsByMoveRange','sheets-pivot.dateGroup.day','YearQuarter','SetPivotExcelDateGroupCommand','addRecord','test','updateDataFieldsCollection','ILogService','customFields','GrandTotal','otherDataKey','scientific','_initViewModelBySheetInterceptor','leafStyle','AddField','concat','isRecordErrorValue','deepClone','setPivotDateSystem','sheet.command.reset-pivot-fields-config','map','getPivotCacheHandle','#e6ebfb','valueFieldId','Plugin','adjustSheetCellData','getSubUnitPivotConfigs','setCollapse','UniverSheetsPlugin','getMatrixFromRunTimeData','existing','sheet.mutation.remove-group-collection','_lifecycleService','fieldIds','generateHexNumber','sourceRangeInfo','getCellValueType','_injector','AddPivotTableCommand','executeCommand','SetPivotNumberGroup','pivotCacheConfigs','SetPivotFilterCommand','removePivotTable','unionPivotViewRange','colCount','pivotTableConfigs','prepareConfigBatch','updateDerivedConfig','InsertRowMutation','updateView','InsertColCommand','FilteredSortDesc','view','setLabelFilterInfo','EXCEL_DATE_AFTER_KEY','getIntersectsPivotTable','values','getShowDataAs','removeDataField','name','FilterPartial','univer.sheets-pivot.copy-plan','hexCode','isPivotDateGroupTypeDisabled','disposeWithMe','_config','rangeKey','_sourceCalculation','_deleteModelCache','options','isInteger','_runtimeIds','#1d32e9','next','sheets-pivot.cellDateGroupDisplay.hour','defineProperty','ManualGroupField','getDataFieldByRangeKey','endColumn','getMatrixValue','getValueIndex','_getCalculationConfig','commit','max','excelSerialToDateTimeParts','symbol','removeValueFilterInfo','RemovePivotField','SetValuePivotFilter','daysInterval','SetLayout','UpdateFieldPosition','MultipleGrandTotal','type','acquireSource','LocaleService','blank','_ensurePivotItemRenderInfoCache','PIVOT_SHEET_COPY_CONTEXT_KEY','toPrimitive','UniverProSheetsPivot','dataFieldManagerConfig','preUndos','GlobalConfig','sheet.mutation.send-init-pivot-text-local','@univerjs/sheets-filter','DependentOn','resolvePivotValueFilterTarget','getConfig','collection','filterFields','sheets-pivot.stdDevpName','RemovePivotTableCommand','originalFieldId','PivotTableChangeTypeEnum','setShowDataAs','rgb(240,241,243)','getDirtyInfo','numberGroupDefaults','ready','_initDirectionChange','getAutoFitColumnsMutations','SetPivotValueFilterMutation','serializeRangeWithSpreadsheet','SetPivotSort','freeze','message','sheet.mutation.pivot-runtime-initialized-local','maxDate','document','setPivotFilter','getIndexesByPathStr','LifecycleService','movePivotField','pivotConfigChange$','endCollectChangeset','dataRecordCount','displayNameRecord','SetPivotSortCommand','reportUnitId','getName','clearRenderCache','initDataRanges','SHEETS_PIVOT_PLUGIN_CONFIG_KEY','_getRuntimeIds','sheet.mutation.set-pivot-layout','getSortInfo','timer','valuePosition','rowHeaderMap','_viewTranslateContextCache','SheetsSelectionsService','addFieldWithSourceId','previousFieldNames','sheets-pivot.minName','Legacy','isValue','setSubtotalType','RecordValueType','ltr','MonthDate','register','sheet.mutation.set-pivot-option','2626735QoAuud','create','stdDevp','SheetsPivotTableAdaptorModel','handleSourceRangeChange','_getDefaultFieldName','AddPivotField','ResetPivotFieldsConfigCommand','replace','updateViewData','workbook\x20is\x20not\x20found','refreshData','sheets-pivot.varName','createDataFieldId','NUMBER','acquireById','getDataFieldManager','_normalizeSource','DateGroupField','registerPluginResource','getFieldIds','RemoveRowMutation','getPivotPerformCheck','sheets-pivot.sheet','sheetName','getSheetCommandTarget','getLastCol','Include','_clearRenderCacheData','MoveRangeMutation','AddPivotTableWithConfig','count','startsWith','defaultNormalField','sheets-pivot.dateGroup.monthDate','Inject','iterator','buttonOffset','valid','sheet.command.move-pivot-table','pivotTableIds','shouldClear','Hidden','combineLatest','isBaseGroupField','RefRangeService','_refreshCycleCache','getValueFields','_findCache','update','PivotExcelDateGroupUnit','_pivotTableInstanceCache','getSheets','getFullYear','intersects','releaseReport','updateViewInfo','sheet.command.set-pivot-date-group','setPivotDateGroup','A\x20Pivot\x20item\x20cannot\x20be\x20both\x20checked\x20and\x20partial.','HourMinute','@univerjs-pro/pivot-cache','_setDateSystem','isFinite','_ensureViewDataMap','_ensurePivotMap','_isAutoDateGroupEnabled','DEFAULT_WORKSHEET_ROW_COUNT','sheets-pivot.renderText.subtotal','FilterSelectionMode','normalizeExcelDateGrouping','rangeCache','isDateValue','7PGCWPd','updateValuePosition','41361mmtPbM','Year-Quarter','getPivotTableIdByCell','preRedos','colHeaderMap','sheets-pivot.cellDateGroupDisplay.yearMonth','getDataFieldByDataFieldId','_sheetsPivotTableAdaptorModel','reservedDataFieldIds','getformat','InsertSheetUndoMutationFactory','getCellMatrix','expected','sheets-pivot.cellDateGroupDisplay.date','sheet.mutation.send-pivot-view-local','subUnitId','updatePivotTableRangeInfo','NotName','RemovePivotFieldMutation','diffValue','getDataFieldByTableId','NORMAL','targetSubUnitId','getOrCreatePivotSheetCopyPlan','retainedSource','find','getDisplayNameByKey','_initPivotTextInfo','pivotTable','RenamePivotFieldMutation','sheets-pivot.numberGroupRange','SendPivotViewLocalMutation','_initRemoveSheetCommandInterceptor','handle','pbt','ObjectMatrix','setPivotLayout','IConfigService','isArrayFormulaCell','setPivotSort','score','SheetsPivotTableService','getUniqueDataFieldName','Quarter','sheet.mutation.update-date-group','fieldDataType','isText','preserveCacheId','587764mGBZmb','_initGlobalComputed','getPivotDisplayConfig','_configService','config','sheet.mutation.add-pivot-field','sheets-pivot.cellDateGroupDisplay.second','{0}{1}','UniverInstanceType','FontCache','sheets-pivot.rowLabels','startColumn','SetPivotPositionMutation','getRangeKey','ErrorType','{0}\x20{1}','setValueFilterInfo','UniverProSlicer','getEmptyPivotRanges','getColCount','params','CustomCommandExecutionError','cache','deleteUnitId','cellToRange','context','displayName','Max\x20of\x20','SetShowDataAs','lastRow','GlobalComputingStatusService','_activeDirtyManagerService','amd','setOption','updateDirtyPivotTable','_initCommandInterceptListener','endRow','sheet.mutation.set-pivot-field-subtotal-type','rtl','onQueryEnd','setDisplayName','exports','asyncInterceptor','getTargetByPivotId','cancelCollectChangeset','dataFieldType','rgb(255,255,255)','addExclusiveRange','_sheetsPivotTableService','range','findIndex','_deletePivotTableInstanceCache','PositionType','initializing','LS_CONFIG_KEY','sourceSubUnitId','pipe','getValueFilterInfos','resetPivotTable','direction','getFormat','version','syncCollectionConfig','sheet.command.set-pivot-filter','YearMonthDate','_disposed','getReportPivotCacheId','sheets-pivot.numberGroupClosedRange','groupByDate','updateDerivedMetadata','length','fromEntries','getFieldInfo','fieldsCollectionChange$','_direction','AddPivotFieldCommand','_initDataSendListener','startRow','NotFunction','_initUnitDisposed','#FFFFFF','sheet.mutation.get-pivot-data-local','getMonth','PivotCallbackEnum','custom','_ensurePivotItemRenderValueMatrixCache','error','sheet.command.remove-pivot-table','sheets-pivot.dateGroup.yearMonthDate','BLANK_ROW_COUNT','_getResolvedMatrixValue','prototype','normalizeNumberGrouping','getUnit','toRange','IActiveDirtyManagerService','layout','RemovePivotTableMutation','SetPivotSubtotalTypeMutation','single','updateConfigCache','number','pageRanges','PivotTable','{0}','area','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','getCurrentLocale','SHEET_PIVOT_EXCLUSIVE_ID','formJSON','_runtimeUnits','isEmpty','setTextInfo','IUniverInstanceService','_initializeRuntime','sequence','Day','PivotTableValuePositionEnum','tuple','remove','Expand','sheets-pivot.cellDateGroupDisplay.dayRange','trim','indexOf','Month-Day','_cacheService','SetPivotExcelDateGroup','sortInfo','undos','prefix','ManualGroupMembers','registerDirtyService','SetWorksheetColWidthMutation','sideEffectUpdateWorkerCache','drillDown','AddPivotTableMutation','setSortInfo','candidates','slice','notExecuteFormula','SetCollapse','getRangeKeyList','dateType','_getPivotAppliedRanges','setPivotTableConfig','PIVOT_MUTATION_GENERATE','getPivotTableCellData','addDataFieldWithoutUnitInfo','PivotSubtotalTypeEnum','SetPivotSortMutation','_initPivotDataGetListener','_ensurePivotViewCache','Column\x20','sheets-pivot.cellDateGroupDisplay.after','subTotalStyle','ensureNotDisposed','runtimeLeaseCount','LOCALE_META','filter','getStyles','NO_COMMERCIAL','sheets-pivot.dateGroup.date','_queryingMap','RIGHT','Row\x20Labels','SetValueFilter','publish','colStyle','getTextSize','REF','SetRangeValuesMutation','UpdatePivotSource','batch','getFormatInfo','needSameDeleteModel','groups','sourceKey','dateGroupField','mode','RemoveColCommand','RecordFilter','getDefaultNumberGrouping','getHeaderMapItem','getPivotTableConfig','_pivotInitCompleted$','isBottomTotal','preparePivotBatch','SetFieldFormat','Set','pivotCacheId','SetPivotFilter','limit\x20pivot','direction$','pruneUnreferenced','fromJSON','disposableCollection','sourceFieldId','split'];_0x3830=function(){return _0x1d776a;};return _0x3830();}(function(_0x4279ee,_0x17e5a6){const _0xc961a6=_0x274d,_0x382f4d=_0x4279ee();while(!![]){try{const _0x441229=-parseInt(_0xc961a6(0x2f1))/0x1+parseInt(_0xc961a6(0x4ab))/0x2+parseInt(_0xc961a6(0x2c1))/0x3*(-parseInt(_0xc961a6(0x474))/0x4)+-parseInt(_0xc961a6(0x276))/0x5*(-parseInt(_0xc961a6(0x3fd))/0x6)+parseInt(_0xc961a6(0x2bf))/0x7*(parseInt(_0xc961a6(0x43e))/0x8)+parseInt(_0xc961a6(0xf8))/0x9+-parseInt(_0xc961a6(0x1d0))/0xa;if(_0x441229===_0x17e5a6)break;else _0x382f4d['push'](_0x382f4d['shift']());}catch(_0xd2b85d){_0x382f4d['push'](_0x382f4d['shift']());}}}(_0x3830,0x6576b),function(_0x916a4,_0x522531){const _0xce8005=_0x274d;typeof exports==_0xce8005(0xa3)&&typeof module<'u'?_0x522531(exports,require('@univerjs-pro/engine-pivot'),require('@univerjs/core'),require('@univerjs/engine-formula'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs-pro/license'),require('@univerjs/engine-render'),require('@univerjs-pro/pivot-cache'),require('@univerjs-pro/slicer'),require('@univerjs/sheets-filter'),require('@univerjs/rpc')):typeof define==_0xce8005(0x4b1)&&define[_0xce8005(0x311)]?define([_0xce8005(0x31a),_0xce8005(0x4db),_0xce8005(0x400),'@univerjs/engine-formula',_0xce8005(0x11c),_0xce8005(0x49f),'@univerjs-pro/license','@univerjs/engine-render',_0xce8005(0x2b3),'@univerjs-pro/slicer',_0xce8005(0x23c),_0xce8005(0xa8)],_0x522531):(_0x916a4=typeof globalThis<'u'?globalThis:_0x916a4||self,_0x522531(_0x916a4[_0xce8005(0x237)]={},_0x916a4[_0xce8005(0x3f6)],_0x916a4[_0xce8005(0x11e)],_0x916a4['UniverEngineFormula'],_0x916a4[_0xce8005(0xcb)],_0x916a4[_0xce8005(0x49f)],_0x916a4[_0xce8005(0x4eb)],_0x916a4[_0xce8005(0xdf)],_0x916a4[_0xce8005(0x4de)],_0x916a4[_0xce8005(0x302)],_0x916a4[_0xce8005(0x3b9)],_0x916a4[_0xce8005(0x47b)]));}(this,function(_0x5f38dc,_0x4078f7,_0x3f8283,_0x1ce484,_0x4b3c60,_0x282fb4,_0x5067df,_0x4c9f24,_0x3c97e0,_0x454447,_0x510b76,_0x30274b){const _0x55e150=_0x274d;Object['defineProperty'](_0x5f38dc,Symbol[_0x55e150(0x19f)],{'value':'Module'});let _0x55ade4=/[\u0590-\u08FF\uFB1D-\uFEFC]/;function _0x54751c(_0x312f02){return _0x55ade4['test'](String(_0x312f02??''));}function _0x568c7e(_0x586ac7){const _0x2e0b04=_0x55e150;let _0xcdd95f=String(_0x586ac7??'');return!_0xcdd95f||_0xcdd95f[_0x2e0b04(0x296)]('')&&_0xcdd95f['endsWith']('')?_0xcdd95f:''+_0xcdd95f+'';}function _0x4accba(_0x265467,..._0x41dc94){const _0x45745e=_0x55e150;let _0x2a6f37=String(_0x265467??'');return!_0x54751c(_0x2a6f37)&&!_0x41dc94[_0x45745e(0xde)](_0x54751c)?_0x2a6f37:_0x568c7e(_0x2a6f37);}function _0x374ed9(_0x510b38,_0x322057,_0x33cb75){const _0x11b018=_0x55e150;let _0x44c899=_0x510b38[_0x11b018(0x8f)]['getLastCol']()+0x1,_0x315b03=_0x510b38['cornerView'][_0x11b018(0x304)]()+Math[_0x11b018(0x226)](_0x510b38[_0x11b018(0xaa)][_0x11b018(0x304)](),_0x510b38[_0x11b018(0x16f)][_0x11b018(0x304)]());return{'startColumn':_0x322057,'endColumn':_0x322057+Math[_0x11b018(0x226)](_0x44c899,_0x315b03,0x1)-0x1,'direction':_0x33cb75};}function _0x4b40f9(_0x5ea1ec,_0x488786){const _0x2b36c1=_0x55e150;return _0x5ea1ec[_0x2b36c1(0x32c)]===_0x2b36c1(0x317)?_0x5ea1ec['startColumn']+_0x5ea1ec['endColumn']-_0x488786:_0x488786;}function _0x3fe295(_0x54817a,_0x5e2b31){const _0x597ef3=_0x55e150;let _0x2d37cc=_0x4b40f9(_0x54817a,_0x5e2b31[_0x597ef3(0x2fc)]),_0x498bd2=_0x4b40f9(_0x54817a,_0x5e2b31['endColumn']);return{..._0x5e2b31,'startColumn':Math[_0x597ef3(0x52a)](_0x2d37cc,_0x498bd2),'endColumn':Math[_0x597ef3(0x226)](_0x2d37cc,_0x498bd2)};}let _0x3119ce=Number[_0x55e150(0x4e2)](0x6ae46b1c),_0x1959c0=_0x55e150(0x408),_0x367fbe='#b2b2b2',_0xbbefaf=function(_0x3d7f03){const _0x4372c0=_0x55e150;return _0x3d7f03['Existing']=_0x4372c0(0x1f0),_0x3d7f03[_0x4372c0(0x3ef)]=_0x4372c0(0x527),_0x3d7f03;}({}),_0x5e6313={'sheets-pivot':{'sheet':'','blankValue':'','otherValue':'','columnName':'','subTotalText':'','grandTotalText':'','valueText':'','rowLabels':'','columnLabels':'','averageName':'','countName':'','countNumsName':'','maxName':'','minName':'','productName':'','stdDevName':'','stdDevpName':'','sumName':'','varName':'','varpName':'','value':'','blank':'','other':'','subTotal':'','grandTotal':'','renderText':{'valueField':'','subtotal':'','grandTotal':'','multipleGrandTotal':'','subtotalWithValue':''},'emptyPivot':{'filter':'','row':'','column':'','values':''},'dateGroup':{'second':'','year':'','month':'','day':'','date':'','hour':'','minute':'','hourMinute':'','quarter':'','monthDate':'','yearQuarter':'','yearMonth':'','yearMonthDate':''},'cellDateGroupDisplay':{'second':'','before':'','after':'','dayRange':'','minute':'','hour':'','hourMinute':'','date':'','month':'','monthDate':'','quarter':'','year':'','yearMonth':'','yearMonthDate':'','yearQuarter':''},'numberGroupRange':'','numberGroupClosedRange':'','numberGroupBefore':'','numberGroupAfter':''}},_0x4c0171={'b':{'s':0x1,'cl':{'rgb':_0x367fbe}},'l':{'s':0x1,'cl':{'rgb':_0x367fbe}},'r':{'s':0x1,'cl':{'rgb':_0x367fbe}},'t':{'s':0x1,'cl':{'rgb':_0x367fbe}}},_0x3cdf47={'bg':{'rgb':_0x55e150(0x247)},'ht':0x2,'vt':0x2,'tb':0x1},_0x5de7c4={'bg':{'rgb':_0x55e150(0x31f)},'ht':0x2,'vt':0x2,'tb':0x1},_0x5e94f9={'rowStyle':{'bg':{'rgb':_0x55e150(0x1e8)},'bd':_0x4c0171,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':'#1d32e9'},'bd':null,'cl':{'rgb':_0x55e150(0x341)},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':_0x4c0171,'bg':{'rgb':_0x55e150(0x1b6)},'vt':0x2},'cornerStyle':{'bd':_0x4c0171,'bg':{'rgb':_0x55e150(0x171)},'bl':0x1,'vt':0x2},'pageStyle':{'bd':_0x4c0171,'bg':{'rgb':_0x55e150(0x4c7)},'vt':0x2},'leafStyle':{'bd':_0x4c0171,'bg':{'rgb':'#f4f4f5'},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':_0x55e150(0x21b)},'cl':{'rgb':_0x55e150(0x341)},'bl':0x1,'vt':0x2},'dataStyle':{'bd':_0x4c0171,'vt':0x2}},_0x151732={[_0x4078f7[_0x55e150(0x45a)]['Minute']]:0x1,[_0x4078f7['PivotDateGroupFieldDateTypeEnum']['Hour']]:0x1,[_0x4078f7['PivotDateGroupFieldDateTypeEnum'][_0x55e150(0x2b2)]]:0x2,[_0x4078f7['PivotDateGroupFieldDateTypeEnum'][_0x55e150(0x3f3)]]:0x1,[_0x4078f7[_0x55e150(0x45a)][_0x55e150(0x494)]]:0x1,[_0x4078f7[_0x55e150(0x45a)][_0x55e150(0x273)]]:0x2,[_0x4078f7['PivotDateGroupFieldDateTypeEnum'][_0x55e150(0x2ec)]]:0x1,[_0x4078f7[_0x55e150(0x45a)][_0x55e150(0x1a7)]]:0x1,[_0x4078f7[_0x55e150(0x45a)][_0x55e150(0x17a)]]:0x2,[_0x4078f7[_0x55e150(0x45a)][_0x55e150(0x331)]]:0x3,[_0x4078f7[_0x55e150(0x45a)][_0x55e150(0x1d4)]]:0x2};function _0x4b91d8(_0x1ebb16){const _0x442e67=_0x55e150;return/^\d$/[_0x442e67(0x1d7)](_0x1ebb16)?'0'+_0x1ebb16:_0x1ebb16;}function _0x26fec7(_0x462650,_0x1da620){const _0x487670=_0x55e150;let _0x536d0f=_0x1da620[_0x487670(0x3b6)]('_'),_0x487eb0=_0x151732[_0x462650];if(!(_0x487eb0===void 0x0||_0x536d0f[_0x487670(0x337)]<_0x487eb0))switch(_0x462650){case _0x4078f7[_0x487670(0x45a)]['HourMinute']:return[_0x536d0f[0x0],_0x4b91d8(_0x536d0f[0x1])];case _0x4078f7[_0x487670(0x45a)][_0x487670(0x273)]:return[_0x4b91d8(_0x536d0f[0x0]),_0x4b91d8(_0x536d0f[0x1])];case _0x4078f7['PivotDateGroupFieldDateTypeEnum'][_0x487670(0x17a)]:return[_0x536d0f[0x0],_0x4b91d8(_0x536d0f[0x1])];case _0x4078f7['PivotDateGroupFieldDateTypeEnum'][_0x487670(0x331)]:return[_0x536d0f[0x0],_0x4b91d8(_0x536d0f[0x1]),_0x4b91d8(_0x536d0f[0x2])];case _0x4078f7['PivotDateGroupFieldDateTypeEnum'][_0x487670(0x1d4)]:return[_0x536d0f[0x0],_0x536d0f[0x1]];default:return _0x536d0f[_0x487670(0x37b)](0x0,_0x487eb0);}}function _0x2832a3(_0x1c6522,_0x19e69c,_0x49cbbb){const _0x1f35dd=_0x55e150;let _0xdb6f0b=_0x1c6522[_0x1f35dd(0x97)](_0x3f8283[_0x1f35dd(0x232)]),_0x584b44=_0x26fec7(_0x19e69c,_0x49cbbb);if(!_0x584b44)return _0x49cbbb;switch(_0x19e69c){case _0x4078f7[_0x1f35dd(0x45a)][_0x1f35dd(0x1a7)]:return _0xdb6f0b['t'](_0x1f35dd(0xea),..._0x584b44);case _0x4078f7['PivotDateGroupFieldDateTypeEnum'][_0x1f35dd(0x134)]:return _0xdb6f0b['t'](_0x1f35dd(0xc3),..._0x584b44);case _0x4078f7[_0x1f35dd(0x45a)][_0x1f35dd(0x10c)]:return _0xdb6f0b['t'](_0x1f35dd(0x21d),..._0x584b44);case _0x4078f7[_0x1f35dd(0x45a)][_0x1f35dd(0x2b2)]:return _0xdb6f0b['t'](_0x1f35dd(0x4f1),..._0x584b44);case _0x4078f7['PivotDateGroupFieldDateTypeEnum']['Date']:return _0xdb6f0b['t'](_0x1f35dd(0x2ce),..._0x584b44);case _0x4078f7['PivotDateGroupFieldDateTypeEnum'][_0x1f35dd(0x494)]:return _0xdb6f0b['t'](_0x1f35dd(0x3c3),..._0x584b44);case _0x4078f7[_0x1f35dd(0x45a)][_0x1f35dd(0x273)]:return _0xdb6f0b['t'](_0x1f35dd(0x465),..._0x584b44);case _0x4078f7[_0x1f35dd(0x45a)][_0x1f35dd(0x2ec)]:return _0xdb6f0b['t'](_0x1f35dd(0x52d),..._0x584b44);case _0x4078f7[_0x1f35dd(0x45a)][_0x1f35dd(0x17a)]:return _0xdb6f0b['t'](_0x1f35dd(0x2c6),..._0x584b44);case _0x4078f7[_0x1f35dd(0x45a)]['YearMonthDate']:return _0xdb6f0b['t']('sheets-pivot.cellDateGroupDisplay.yearMonthDate',..._0x584b44);case _0x4078f7[_0x1f35dd(0x45a)]['YearQuarter']:return _0xdb6f0b['t']('sheets-pivot.cellDateGroupDisplay.yearQuarter',..._0x584b44);}return'';}function _0x3d3a43(_0x55415e,_0x1981ba,_0x5e7b60,_0x549342){const _0x10ab38=_0x55e150;let _0x40331a=_0x55415e[_0x10ab38(0x97)](_0x3f8283[_0x10ab38(0x232)]),_0x2f1457=_0x1981ba[_0x10ab38(0x53b)];if(_0x5e7b60===_0x4078f7[_0x10ab38(0x181)])return _0x40331a['t']('sheets-pivot.cellDateGroupDisplay.before');if(_0x5e7b60===_0x4078f7[_0x10ab38(0x209)])return _0x40331a['t'](_0x10ab38(0x38a));if(_0x2f1457[_0x10ab38(0xd7)]===_0x4078f7['PivotExcelDateGroupUnit'][_0x10ab38(0x18a)])return _0x40331a['t'](_0x10ab38(0x2f7),String(_0x5e7b60));if(_0x2f1457[_0x10ab38(0xd7)]===_0x4078f7['PivotExcelDateGroupUnit'][_0x10ab38(0x365)]&&(_0x2f1457[_0x10ab38(0x22c)]??0x1)>0x1){let _0xabc5fc=(0x0,_0x3f8283['excelSerialToDateTimeParts'])(_0x5e7b60,{'dateSystem':_0x549342}),_0x53f3e1=(0x0,_0x3f8283[_0x10ab38(0x227)])(_0x5e7b60+_0x2f1457['daysInterval']-0x1,{'dateSystem':_0x549342});if(!_0xabc5fc||!_0x53f3e1)return String(_0x5e7b60);let _0x503b55=(_0x36b9e8,_0x505c12,_0x1cf305)=>_0x2832a3(_0x55415e,_0x4078f7[_0x10ab38(0x45a)][_0x10ab38(0x331)],_0x36b9e8+'_'+_0x505c12+'_'+_0x1cf305);return _0x40331a['t'](_0x10ab38(0x36a),_0x503b55(_0xabc5fc[_0x10ab38(0x433)],_0xabc5fc['month'],_0xabc5fc['day']),_0x503b55(_0x53f3e1[_0x10ab38(0x433)],_0x53f3e1['month'],_0x53f3e1[_0x10ab38(0x49d)]));}if(_0x2f1457[_0x10ab38(0xd7)]===_0x4078f7[_0x10ab38(0x2a8)][_0x10ab38(0x365)]&&_0x2f1457[_0x10ab38(0x335)]!==!0x1){let _0x51b3c2=(0x0,_0x3f8283['excelSerialToDateTimeParts'])(_0x5e7b60,{'dateSystem':_0x549342});return _0x51b3c2?_0x2832a3(_0x55415e,_0x4078f7[_0x10ab38(0x45a)]['YearMonthDate'],_0x51b3c2['year']+'_'+_0x51b3c2[_0x10ab38(0x11d)]+'_'+_0x51b3c2[_0x10ab38(0x49d)]):String(_0x5e7b60);}return _0x2832a3(_0x55415e,{[_0x4078f7['PivotExcelDateGroupUnit'][_0x10ab38(0x1a7)]]:_0x4078f7[_0x10ab38(0x45a)]['Year'],[_0x4078f7[_0x10ab38(0x2a8)][_0x10ab38(0x2ec)]]:_0x4078f7[_0x10ab38(0x45a)]['Quarter'],[_0x4078f7[_0x10ab38(0x2a8)][_0x10ab38(0x494)]]:_0x4078f7['PivotDateGroupFieldDateTypeEnum'][_0x10ab38(0x494)],[_0x4078f7['PivotExcelDateGroupUnit'][_0x10ab38(0x365)]]:_0x4078f7[_0x10ab38(0x45a)][_0x10ab38(0x3f3)],[_0x4078f7[_0x10ab38(0x2a8)]['Hour']]:_0x4078f7[_0x10ab38(0x45a)][_0x10ab38(0x10c)],[_0x4078f7[_0x10ab38(0x2a8)]['Minute']]:_0x4078f7[_0x10ab38(0x45a)]['Minute']}[_0x2f1457[_0x10ab38(0xd7)]],String(_0x5e7b60));}function _0x25684c(_0x4a8d62,_0x132379,_0x15fdf8){const _0x24d037=_0x55e150;let _0x57d560=_0x4a8d62['get'](_0x3f8283[_0x24d037(0x232)]),{start:_0x476a71,end:_0x12aac8,interval:_0x3ebccd}=_0x132379[_0x24d037(0xbe)],_0x300430=Number(_0x15fdf8),_0xedcc7d=Number((_0x300430+_0x3ebccd)[_0x24d037(0xff)](0xf)),_0x5229a3=[_0x300430,_0xedcc7d,_0x476a71,_0x12aac8][_0x24d037(0xde)](_0x4e1cb6=>_0x4e1cb6!==void 0x0&&Number[_0x24d037(0x2b5)](_0x4e1cb6)&&_0x4e1cb6!==0x0&&Math['abs'](_0x4e1cb6)<0.000001),_0x3de220=new Intl[(_0x24d037(0x420))](_0x3f8283['LOCALE_META'][_0x57d560[_0x24d037(0x35c)]()]['tag'],{'maximumSignificantDigits':0xf,'notation':_0x5229a3?_0x24d037(0x1dd):'standard'});return _0x15fdf8===_0x4078f7['NUMBER_GROUP_BEFORE_KEY']?_0x476a71!==void 0x0&&Number[_0x24d037(0x2b5)](_0x476a71)?_0x57d560['t'](_0x24d037(0xe3),_0x3de220[_0x24d037(0xd2)](_0x476a71)):_0x57d560['t'](_0x24d037(0x48f)):_0x15fdf8===_0x4078f7['NUMBER_GROUP_AFTER_KEY']?_0x12aac8!==void 0x0&&Number[_0x24d037(0x2b5)](_0x12aac8)?_0x57d560['t'](_0x24d037(0x502),_0x3de220['format'](_0x12aac8)):_0x57d560['t'](_0x24d037(0x38a)):Number['isFinite'](_0x300430)?_0x12aac8!==void 0x0&&Number[_0x24d037(0x2b5)](_0x12aac8)&&_0xedcc7d>=_0x12aac8-Math[_0x24d037(0x52a)](0x2**-0x34*0x8*Math['max'](Math[_0x24d037(0x117)](_0xedcc7d),Math[_0x24d037(0x117)](_0x12aac8)),_0x3ebccd*0.000001)?_0x57d560['t'](_0x24d037(0x334),_0x3de220['format'](_0x300430),_0x3de220[_0x24d037(0xd2)](_0x12aac8)):_0x57d560['t'](_0x24d037(0x2df),_0x3de220['format'](_0x300430),_0x3de220[_0x24d037(0xd2)](_0xedcc7d)):String(_0x15fdf8);}let _0x32d9d7=(_0x4dba1a,_0x40763b,_0x68532,_0x462efc)=>{const _0x441bc8=_0x55e150;let _0x141685,_0x55a757=_0x4dba1a[_0x441bc8(0x97)](_0x3f8283[_0x441bc8(0x362)])['getCurrentUnitOfType'](_0x3f8283[_0x441bc8(0x2f9)][_0x441bc8(0x198)]);if(!_0x55a757)return null;let _0x38d8d5=_0x55a757[_0x441bc8(0x390)](),_0x24f0bf;if(_0x68532&&(_0x24f0bf=_0x38d8d5[_0x441bc8(0x1c4)](_0x68532)),_0x40763b!=null&&_0x40763b['v']||(_0x40763b==null?void 0x0:_0x40763b['v'])===0x0){_0x141685||={};let _0x542b87=_0x1510fb(_0x40763b['v']);typeof _0x542b87=='number'?_0x141685['t']=_0x3f8283[_0x441bc8(0x505)][_0x441bc8(0x284)]:typeof _0x542b87==_0x441bc8(0x45c)&&(_0x141685['t']=_0x3f8283['CellValueType'][_0x441bc8(0x50f)]),_0x141685['v']=_0x542b87;}if((_0x40763b!=null&&_0x40763b['i']||(_0x40763b==null?void 0x0:_0x40763b['i'])===0x0)&&(_0x141685||={},_0x141685['fi']=_0x40763b['i']),_0x40763b!=null&&_0x40763b['s']&&(_0x141685||={},_0x141685[_0x441bc8(0x2e3)]=_0x40763b['s']),_0x68532&&(_0x141685||={},_0x141685['s']=_0x24f0bf),(_0x462efc==null?void 0x0:_0x462efc[_0x441bc8(0x230)])===_0x4078f7['PivotDataFieldTypeEnum'][_0x441bc8(0x3a2)]&&(_0x141685==null?void 0x0:_0x141685['v'])!==void 0x0&&_0x141685[_0x441bc8(0x2e3)]!==_0x4078f7[_0x441bc8(0x105)][_0x441bc8(0x1db)]&&_0x141685['pbt']!==_0x4078f7['PivotCellStyleTypeEnum']['Subtotal']){let _0x1929c4=String(_0x141685['v']),{dateType:_0x45883c}=_0x462efc;_0x141685['v']=_0x462efc[_0x441bc8(0x53b)]&&typeof _0x141685['v']==_0x441bc8(0x356)?_0x3d3a43(_0x4dba1a,_0x462efc,_0x141685['v'],_0x55a757['getDateSystem']()):_0x2832a3(_0x4dba1a,_0x45883c,_0x1929c4),_0x141685['t']=_0x3f8283[_0x441bc8(0x505)][_0x441bc8(0x50f)];}return(_0x462efc==null?void 0x0:_0x462efc[_0x441bc8(0x230)])===_0x4078f7['PivotDataFieldTypeEnum']['numberGroupField']&&_0x141685&&(typeof _0x141685['v']==_0x441bc8(0x356)||typeof _0x141685['v']==_0x441bc8(0x45c))&&_0x141685['pbt']!==_0x4078f7[_0x441bc8(0x105)][_0x441bc8(0x1db)]&&_0x141685['pbt']!==_0x4078f7['PivotCellStyleTypeEnum']['Subtotal']&&(_0x141685['v']=_0x25684c(_0x4dba1a,_0x462efc,_0x141685['v']),_0x141685['t']=_0x3f8283['CellValueType']['STRING']),_0x141685;},_0x26b837=(_0xa700b6,_0x2c6be9,_0x4e66c3,_0x52ba0a,_0x142180=_0x55e150(0x272),_0x5b57aa=_0x3f8283[_0x55e150(0x3f5)][_0x55e150(0x4e8)])=>{const _0x2bf83c=_0x55e150;let _0x3d0588=_0x4e66c3[_0x2bf83c(0xf0)],{cornerView:_0x33c797,rowView:_0x5483d8,colView:_0x283d0b,dataView:_0x161942,pageView:_0x3b3451,formatMap:_0x4628d8,groupInfo:_0x2148a1}=_0x2c6be9,{row:_0x213e3a,col:_0x5b52f2}=_0x3d0588,_0x15aaa2=new _0x3f8283[(_0x2bf83c(0x2e4))](),_0x332b82=_0x374ed9(_0x2c6be9,_0x5b52f2,_0x142180),_0x2f0347={},_0x1daa00={},_0x35b71d={},_0x31f897={},_0x61c056={},_0xcbf13e=_0x213e3a,_0x2482f1=_0x5b52f2;Object['keys'](_0x3b3451['data'])[_0x2bf83c(0x1bd)](_0x33d09b=>{const _0x22eed6=_0x2bf83c;Object[_0x22eed6(0x1b3)](_0x3b3451[_0x22eed6(0x1bb)][Number(_0x33d09b)])[_0x22eed6(0x1bd)](_0x349146=>{const _0x1e9c8a=_0x22eed6;let _0x5ca0ca={..._0x3b3451[_0x1e9c8a(0x1bb)][Number(_0x33d09b)][Number(_0x349146)]};_0x15aaa2[_0x1e9c8a(0x1c4)](Number(_0x33d09b)+_0xcbf13e,_0x4b40f9(_0x332b82,Number(_0x349146)+_0x2482f1),_0x32d9d7(_0xa700b6,_0x5ca0ca,_0x5e94f9[_0x1e9c8a(0x536)]));});});let _0x34a01e=Object['keys'](_0x3b3451[_0x2bf83c(0x1bb)])[_0x2bf83c(0x337)];_0xcbf13e+=_0x34a01e+ +!!_0x34a01e;let _0x55189f=_0x33c797[_0x2bf83c(0x484)](),_0x425766=_0x33c797[_0x2bf83c(0x304)]();for(let _0x838c9d=0x0;_0x838c9d<_0x55189f;_0x838c9d++)for(let _0xf51f12=0x0;_0xf51f12<_0x425766;_0xf51f12++){var _0xf6e78e;let _0x2697a={...(_0xf6e78e=_0x33c797['data'])==null||(_0xf6e78e=_0xf6e78e[_0x838c9d])==null?void 0x0:_0xf6e78e[_0xf51f12]};if(_0x2697a){var _0x54e438,_0x5d900a;(_0x54e438=_0x5483d8[_0x2bf83c(0x1c9)][_0xf51f12])!=null&&_0x54e438['isValue']&&_0xf51f12===_0x425766-0x1&&_0x838c9d===_0x55189f-0x1&&(_0x2697a['v']=''+_0x52ba0a[_0x2bf83c(0x426)]),(_0x5d900a=_0x33c797['info'][_0xf51f12])!=null&&_0x5d900a[_0x2bf83c(0x514)]&&(_0x2697a['v']=''+(_0x52ba0a[_0x2bf83c(0x2fb)]||_0x2bf83c(0x395)));}_0x15aaa2[_0x2bf83c(0x1c4)](_0x838c9d+_0xcbf13e,_0x4b40f9(_0x332b82,_0xf51f12+_0x2482f1),_0x32d9d7(_0xa700b6,_0x2697a,_0x5e94f9['cornerStyle']));}for(let _0x21f51a=0x0;_0x21f51a<_0x33c797[_0x2bf83c(0x118)][_0x2bf83c(0x337)];_0x21f51a++)_0x33c797['info'][_0x21f51a]&&(_0x35b71d[''+_0x4b40f9(_0x332b82,_0x21f51a+_0x2482f1)]=_0x33c797[_0x2bf83c(0x118)][_0x21f51a]);_0x2482f1+=_0x425766;let _0x2162a3=_0x283d0b[_0x2bf83c(0x1c9)],_0x206471=_0x283d0b['getLastRow']()>=0x0?_0x283d0b['getLastRow']()+0x1:0x0,_0x222ca4=_0x283d0b[_0x2bf83c(0x290)]()>=0x0?_0x283d0b[_0x2bf83c(0x290)]()+0x1:0x0;for(let _0x168a28=0x0;_0x168a28<_0x222ca4;_0x168a28++){for(let _0x3550d5=0x0;_0x3550d5<_0x206471;_0x3550d5++){var _0x493d2d,_0x1feca7;let _0x14b488={...(_0x493d2d=_0x283d0b[_0x2bf83c(0x1bb)])==null||(_0x493d2d=_0x493d2d[_0x3550d5])==null?void 0x0:_0x493d2d[_0x168a28]},_0x308f57=(_0x1feca7=_0x2162a3[_0x3550d5])==null?void 0x0:_0x1feca7['tableFieldId'],_0x5ccaed=_0x4628d8[_0x308f57],_0xdbd6a=_0x2148a1[_0x308f57];if(_0x14b488){let _0x1be72d=_0x283d0b['getHeaderMapItem'](_0x3550d5+0x1);_0x14b488['v']=_0x1be72d!=null&&_0x1be72d[_0x2bf83c(0x3cd)]?''+(_0x52ba0a[_0x2bf83c(0x16e)]||_0x2bf83c(0x3dd)):_0x308f61(_0x14b488,_0x3550d5===0x0&&(_0x1be72d==null?void 0x0:_0x1be72d[_0x2bf83c(0x26f)]),_0x5ccaed,_0x52ba0a,_0x52ba0a[_0x2bf83c(0x40f)],void 0x0,_0x5b57aa);}let _0x2f1ab1;_0x2f1ab1=_0x5ccaed?{..._0x5e94f9[_0x2bf83c(0x398)],'n':{'pattern':_0x5ccaed}}:{..._0x5e94f9[_0x2bf83c(0x398)]},_0x15aaa2[_0x2bf83c(0x1c4)](_0x3550d5+_0xcbf13e,_0x4b40f9(_0x332b82,_0x168a28+_0x2482f1),_0x32d9d7(_0xa700b6,_0x14b488,_0x2f1ab1,_0xdbd6a));}_0x283d0b['info'][_0x168a28]&&(_0x1daa00[''+_0x4b40f9(_0x332b82,_0x168a28+_0x2482f1)]=_0x283d0b[_0x2bf83c(0x118)][_0x168a28]),_0x283d0b[_0x2bf83c(0x1c9)][_0x168a28+0x1]&&(_0x61c056[''+(_0x168a28+_0xcbf13e+0x1)]=_0x283d0b[_0x2bf83c(0x1c9)][_0x168a28+0x1]);}_0xcbf13e+=_0x55189f;let _0x2281c2=_0x5483d8[_0x2bf83c(0x1c9)],_0xe720c0=_0x5483d8['getLastRow']()>=0x0?_0x5483d8[_0x2bf83c(0x414)]()+0x1:0x0,_0x6153b0=_0x5483d8[_0x2bf83c(0x290)]()>=0x0?_0x5483d8[_0x2bf83c(0x290)]()+0x1:0x0;for(let _0x1b9995=0x0;_0x1b9995<_0xe720c0;_0x1b9995++){for(let _0x2d847c=0x0;_0x2d847c<_0x6153b0;_0x2d847c++){var _0x524139,_0x25a2e3;let _0x5cf009={...(_0x524139=_0x5483d8[_0x2bf83c(0x1bb)])==null||(_0x524139=_0x524139[_0x1b9995])==null?void 0x0:_0x524139[_0x2d847c]},_0x2986c1=(_0x25a2e3=_0x2281c2[_0x2d847c])==null?void 0x0:_0x25a2e3[_0x2bf83c(0x163)],_0x278e2d=_0x4628d8[_0x2986c1],_0x157aec=_0x2148a1[_0x2986c1];_0x5cf009&&(_0x5cf009['v']=_0x308f61(_0x5cf009,!0x1,_0x278e2d,_0x52ba0a,void 0x0,void 0x0,_0x5b57aa));let _0x5e06a8;_0x5e06a8=_0x5483d8[_0x2bf83c(0x118)][_0x1b9995][_0x2bf83c(0x3aa)]?_0x5483d8[_0x2bf83c(0x118)][_0x1b9995]['level']===0x0?_0x5e94f9[_0x2bf83c(0x3d7)]:_0x5e94f9[_0x2bf83c(0x38b)]:_0x5483d8[_0x2bf83c(0x118)][_0x1b9995][_0x2bf83c(0x436)]||_0x5483d8[_0x2bf83c(0x118)][_0x1b9995]['level']===_0x5483d8['getColCount']()?_0x5e94f9[_0x2bf83c(0x1df)]:_0x5e94f9[_0x2bf83c(0x1c3)],_0x278e2d&&(_0x5e06a8={..._0x5e06a8,'n':{'pattern':_0x278e2d}}),_0x15aaa2[_0x2bf83c(0x1c4)](_0x1b9995+_0xcbf13e,_0x4b40f9(_0x332b82,_0x2d847c+_0x5b52f2),_0x32d9d7(_0xa700b6,_0x5cf009,_0x5e06a8,_0x157aec));}_0x5483d8[_0x2bf83c(0x118)][_0x1b9995]&&(_0x2f0347[''+(_0x1b9995+_0xcbf13e)]=_0x5483d8[_0x2bf83c(0x118)][_0x1b9995]);}_0x5483d8[_0x2bf83c(0x1c9)][_0x2bf83c(0x1bd)]((_0xc0dede,_0x508017)=>{_0xc0dede&&(_0x31f897[''+_0x4b40f9(_0x332b82,_0x508017+_0x5b52f2)]=_0xc0dede);});let _0x2f2612=_0x161942[_0x2bf83c(0x484)](),_0x3fb33b=_0x161942['getColCount']();for(let _0x52f85f=0x0;_0x52f85f<_0x2f2612;_0x52f85f++)for(let _0x5a0a6d=0x0;_0x5a0a6d<_0x3fb33b;_0x5a0a6d++){var _0x561010;let _0x91a18f={...(_0x561010=_0x161942[_0x2bf83c(0x1bb)])==null||(_0x561010=_0x561010[_0x52f85f])==null?void 0x0:_0x561010[_0x5a0a6d]},_0x293782;_0x293782=_0x5483d8[_0x2bf83c(0x118)][_0x52f85f][_0x2bf83c(0x3aa)]?_0x5483d8['info'][_0x52f85f][_0x2bf83c(0x1a1)]===0x0?_0x5e94f9[_0x2bf83c(0x3d7)]:_0x5e94f9[_0x2bf83c(0x38b)]:_0x5e94f9['dataStyle'];let _0xcbf9ae=_0x5483d8['info'][_0x52f85f][_0x2bf83c(0x45f)],_0x2f775c=_0x283d0b[_0x2bf83c(0x118)][_0x5a0a6d][_0x2bf83c(0x45f)],_0x399a2b=Math[_0x2bf83c(0x226)](_0xcbf9ae,_0x2f775c),_0x3130c7=_0x4e66c3[_0x2bf83c(0x4ac)][_0x2bf83c(0xee)][_0x2bf83c(0x1e1)](),_0x482e14='';_0x482e14=_0x399a2b<0x0?_0x3130c7[0x0]??'':_0x3130c7[_0x399a2b]??'';let _0x4a5747=_0x4628d8[_0x482e14];_0x4a5747&&(_0x293782={..._0x293782,'n':{'pattern':_0x4a5747}}),_0x15aaa2[_0x2bf83c(0x1c4)](_0x52f85f+_0xcbf13e,_0x4b40f9(_0x332b82,_0x5a0a6d+_0x2482f1),_0x32d9d7(_0xa700b6,_0x91a18f,_0x293782));}return{'valueMatrix':_0x15aaa2,'rowInfo':_0x2f0347,'colInfo':_0x1daa00,'cornerInfo':_0x35b71d,'rowHeaderMap':_0x31f897,'colHeaderMap':_0x61c056};};function _0x308f61(_0x299c53,_0x1f88a4,_0x308660,_0x19ffbb,_0x1460ab,_0x4773b3,_0x56a373=_0x3f8283['DateSystem']['Date1900']){const _0x5749a2=_0x55e150;let _0x51a637=_0x299c53['v'];_0x1f88a4&&(_0x51a637=''+_0x19ffbb[_0x5749a2(0x426)]);let _0xb8e6d6=_0x299c53['t']&&(_0x299c53['t']&_0x4078f7[_0x5749a2(0x4df)]['blank'])>0x0;_0xb8e6d6&&(_0x51a637=''+_0x19ffbb[_0x5749a2(0x1b7)]);let _0x2143b0=_0x299c53['t']&&(_0x299c53['t']&_0x4078f7[_0x5749a2(0x4df)][_0x5749a2(0x13c)])>0x0;if(_0x2143b0&&(_0x51a637=''+_0x19ffbb['sheets-pivot.other']),_0x299c53['s']===_0x4078f7[_0x5749a2(0x105)][_0x5749a2(0x3e0)]){let _0x267e54=_0x51a637,_0x106d51='';(0x0,_0x4078f7[_0x5749a2(0x14a)])(_0x51a637)&&(_0x267e54=_0x51a637[_0x5749a2(0x372)],_0x106d51=_0x51a637[_0x5749a2(0xb5)]);let _0x231eeb=_0x308660&&!_0xb8e6d6&&!_0x2143b0?_0x3f8283[_0x5749a2(0x432)][_0x5749a2(0xd2)](_0x308660,Number(_0x267e54),{'dateSystem':_0x56a373}):_0x267e54;if(_0x106d51)_0x51a637=_0x39f881(_0x19ffbb,_0x5749a2(0x4f9),_0x5749a2(0x300),_0x4accba(_0x231eeb,_0x106d51),_0x4accba(_0x106d51,_0x231eeb));else{let _0x54d5bc=_0x4773b3||_0x19ffbb['sheets-pivot.subTotal'];_0x51a637=_0x39f881(_0x19ffbb,_0x5749a2(0x2ba),_0x5749a2(0x300),_0x4accba(_0x231eeb,_0x54d5bc),_0x54d5bc);}}else{if(_0x299c53['s']===_0x4078f7[_0x5749a2(0x105)][_0x5749a2(0x1db)]){let _0x5956b9=_0x19ffbb[_0x5749a2(0x504)];_0x51a637=_0x39f881(_0x19ffbb,'sheets-pivot.renderText.grandTotal',_0x5749a2(0x300),_0x4accba(_0x51a637,_0x5956b9),_0x5956b9);}else _0x299c53['s']===_0x4078f7[_0x5749a2(0x105)][_0x5749a2(0x22f)]&&_0x1460ab&&(_0x51a637=_0x39f881(_0x19ffbb,_0x5749a2(0xbf),_0x5749a2(0x359),_0x4accba(_0x51a637,_0x1460ab),_0x1460ab));}return _0x51a637;}function _0x39f881(_0x2ef1e7,_0x6d3356,_0x24e581,..._0x5a15d6){const _0x473685=_0x55e150;let _0x3441f4=_0x2ef1e7[_0x6d3356]||_0x24e581;return _0x5a15d6[_0x473685(0x1bd)]((_0x4dbc1a,_0x11d7f2)=>{const _0x45fb2d=_0x473685;_0x3441f4=_0x3441f4[_0x45fb2d(0x27e)]('{'+_0x11d7f2+'}',_0x4dbc1a==null?'':String(_0x4dbc1a));}),_0x4350ef(_0x3441f4)[_0x473685(0x36b)]();}function _0x4350ef(_0x20dab4){let _0x5a9325='',_0x1e06f6=!0x1;for(let _0x49a644 of _0x20dab4){let _0x2a17a2=_0x49a644==='\x20';(!_0x2a17a2||!_0x1e06f6)&&(_0x5a9325+=_0x49a644),_0x1e06f6=_0x2a17a2;}return _0x5a9325;}function _0x1510fb(_0x3e43f9){const _0x480bf1=_0x55e150;if((0x0,_0x4078f7[_0x480bf1(0xac)])(_0x3e43f9)){let {errorType:_0xe764a6}=_0x3e43f9;switch(_0xe764a6){case _0x4078f7[_0x480bf1(0x50d)][_0x480bf1(0x18b)]:return _0x1ce484[_0x480bf1(0x2ff)][_0x480bf1(0x447)];case _0x4078f7[_0x480bf1(0x50d)]['NotNumber']:return _0x1ce484[_0x480bf1(0x2ff)][_0x480bf1(0x166)];case _0x4078f7[_0x480bf1(0x50d)][_0x480bf1(0x33f)]:return _0x1ce484[_0x480bf1(0x2ff)][_0x480bf1(0x3e6)];case _0x4078f7[_0x480bf1(0x50d)][_0x480bf1(0x2d2)]:return _0x1ce484[_0x480bf1(0x2ff)][_0x480bf1(0x3e6)];case _0x4078f7[_0x480bf1(0x50d)]['BadReference']:return _0x1ce484['ErrorType'][_0x480bf1(0x39a)];}}return _0x3e43f9;}function _0x18cbe4(_0x28ca6e,_0x27fdd5,_0x242ab7=!0x1,_0x5023cb=!0x1){const _0x908653=_0x55e150;let {data:_0x48e9d5}=_0x27fdd5,_0x34d8c5=_0x27fdd5['getRowCount'](),_0x552c1e=_0x27fdd5[_0x908653(0x304)]();if(_0x34d8c5<=0x0||_0x552c1e<=0x0)return[];let _0xb052c7=_0x27fdd5[_0x908653(0x290)](),_0x23ada9=_0x27fdd5[_0x908653(0x414)](),_0x1a1938=_0x5023cb?_0x23ada9>=0x0?_0x23ada9+0x1:0x0:_0x34d8c5,_0x2bb919=_0x5023cb?_0xb052c7>=0x0?_0xb052c7+0x1:0x0:_0x552c1e,{row:_0x5e32d1,col:_0x12dc83}=_0x28ca6e,_0x26ef17=_0x5e32d1,_0x3a83fb=_0x12dc83;if(_0x242ab7){let _0x96f196=[];for(let [_0x3be067,_0x3f80e4]of Object[_0x908653(0x4f5)](_0x48e9d5))for(let [_0x2e25e3,_0x33209f]of Object[_0x908653(0x4f5)](_0x3f80e4))_0x96f196[_0x908653(0xc7)]((0x0,_0x3f8283[_0x908653(0x309)])(_0x26ef17+Number(_0x3be067),_0x3a83fb+Number(_0x2e25e3)));return _0x96f196;}{let _0x4b4132=_0x5023cb?+(_0x1a1938>0x0):0x1,_0x28d388=_0x5023cb?+(_0x2bb919>0x0):0x1;return[{'startRow':_0x26ef17,'startColumn':_0x3a83fb,'endRow':_0x5e32d1+_0x1a1938-_0x4b4132,'endColumn':_0x12dc83+_0x2bb919-_0x28d388}];}}let _0x114562=_0x55e150(0x111),_0x118e18=_0x55e150(0x35d),_0x4c7d66=function(_0x53be3b){const _0x58b6a5=_0x55e150;return _0x53be3b['Filter']='filter',_0x53be3b['Panel']='panel',_0x53be3b[_0x58b6a5(0x27c)]='addPivotField',_0x53be3b[_0x58b6a5(0x294)]=_0x58b6a5(0x294),_0x53be3b[_0x58b6a5(0x164)]=_0x58b6a5(0x40e),_0x53be3b[_0x58b6a5(0x4ae)]=_0x58b6a5(0x258),_0x53be3b[_0x58b6a5(0x22a)]='removePivotField',_0x53be3b[_0x58b6a5(0x114)]=_0x58b6a5(0x3e2),_0x53be3b[_0x58b6a5(0x3af)]=_0x58b6a5(0x255),_0x53be3b[_0x58b6a5(0x24f)]=_0x58b6a5(0x2e8),_0x53be3b[_0x58b6a5(0x506)]=_0x58b6a5(0x13f),_0x53be3b[_0x58b6a5(0x39c)]=_0x58b6a5(0x19a),_0x53be3b[_0x58b6a5(0x3e3)]=_0x58b6a5(0x2c0),_0x53be3b[_0x58b6a5(0x458)]=_0x58b6a5(0x377),_0x53be3b[_0x58b6a5(0x22b)]=_0x58b6a5(0x15a),_0x53be3b[_0x58b6a5(0x4bb)]=_0x58b6a5(0x381),_0x53be3b[_0x58b6a5(0xc9)]=_0x58b6a5(0x32b),_0x53be3b[_0x58b6a5(0x429)]='setOption',_0x53be3b[_0x58b6a5(0x3e1)]=_0x58b6a5(0x2e5),_0x53be3b[_0x58b6a5(0x425)]=_0x58b6a5(0x2b0),_0x53be3b[_0x58b6a5(0x36f)]=_0x58b6a5(0xfb),_0x53be3b[_0x58b6a5(0x1fa)]=_0x58b6a5(0x3e9),_0x53be3b['SetPivotManualGroups']=_0x58b6a5(0xaf),_0x53be3b[_0x58b6a5(0x373)]=_0x58b6a5(0x1ca),_0x53be3b[_0x58b6a5(0x42d)]=_0x58b6a5(0x249),_0x53be3b;}({}),_0xfe5ea0={'sheets-pivot.blankValue':'(Blank)','sheets-pivot.columnName':_0x55e150(0x389),'sheets-pivot.subTotalText':'Total','sheets-pivot.grandTotalText':_0x55e150(0x428),'sheets-pivot.valueText':_0x55e150(0x423),'sheets-pivot.rowLabels':_0x55e150(0x395),'sheets-pivot.columnLabels':_0x55e150(0x3dd),'sheets-pivot.averageName':_0x55e150(0xe6),'sheets-pivot.countName':'Count\x20of\x20','sheets-pivot.countNumsName':'Count\x20of\x20','sheets-pivot.maxName':_0x55e150(0x30c),'sheets-pivot.minName':_0x55e150(0x4dd),'sheets-pivot.productName':'Product\x20of\x20','sheets-pivot.stdDevName':'StdDev\x20of\x20','sheets-pivot.stdDevpName':'StdDevp\x20of\x20','sheets-pivot.sumName':_0x55e150(0x1af),'sheets-pivot.varName':_0x55e150(0x13d),'sheets-pivot.varpName':_0x55e150(0x17e),'sheets-pivot.subTotal':_0x55e150(0x3e0),'sheets-pivot.grandTotal':'Grand\x20Total','sheets-pivot.value':_0x55e150(0xb5),'sheets-pivot.blank':_0x55e150(0x233),'sheets-pivot.other':'other','sheets-pivot.renderText.valueField':_0x55e150(0x2f8),'sheets-pivot.renderText.subtotal':_0x55e150(0x300),'sheets-pivot.renderText.grandTotal':_0x55e150(0x300),'sheets-pivot.renderText.multipleGrandTotal':_0x55e150(0x359),'sheets-pivot.renderText.subtotalWithValue':_0x55e150(0x300),'sheets-pivot.emptyPivot.filter':_0x55e150(0x44a),'sheets-pivot.emptyPivot.row':'Row','sheets-pivot.emptyPivot.column':_0x55e150(0x142),'sheets-pivot.emptyPivot.values':_0x55e150(0x3b7),'sheets-pivot.dateGroup.year':_0x55e150(0x1a7),'sheets-pivot.dateGroup.month':_0x55e150(0x494),'sheets-pivot.dateGroup.day':'Day','sheets-pivot.dateGroup.date':'Day','sheets-pivot.dateGroup.hour':_0x55e150(0x10c),'sheets-pivot.dateGroup.minute':_0x55e150(0x134),'sheets-pivot.dateGroup.hourMinute':_0x55e150(0x409),'sheets-pivot.dateGroup.quarter':_0x55e150(0x2ec),'sheets-pivot.dateGroup.monthDate':_0x55e150(0x36d),'sheets-pivot.dateGroup.yearQuarter':_0x55e150(0x2c2),'sheets-pivot.dateGroup.yearMonth':'Year-Month','sheets-pivot.dateGroup.yearMonthDate':'Year-Month-Day'},_0x54c05e={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},_0x3c57d5=(0x0,_0x3f8283[_0x55e150(0x123)])(_0x55e150(0x41b)),_0x48909d=(0x0,_0x3f8283[_0x55e150(0x123)])(_0x55e150(0x472)),_0x34fa5a=(0x0,_0x3f8283[_0x55e150(0xc1)])(_0x55e150(0x10f)),_0x493572=(0x0,_0x3f8283[_0x55e150(0xc1)])(_0x55e150(0x405)),_0x29926d=function(_0x5de505){const _0x54e2e5=_0x55e150;return _0x5de505['Add']=_0x54e2e5(0xe9),_0x5de505[_0x54e2e5(0x3ad)]=_0x54e2e5(0x187),_0x5de505['Delete']=_0x54e2e5(0xe0),_0x5de505;}({}),_0x4976f0={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x4f2)],'id':_0x55e150(0x518),'handler':()=>!0x0},_0x39e4d6={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x4f2)],'id':_0x55e150(0x252),'handler':()=>!0x0},_0x4153d1={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x4f2)],'id':_0x55e150(0x342),'handler':()=>!0x0},_0x154397={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x4f2)],'id':'sheet.mutation.send-pivot-data-local','handler':()=>!0x0},_0x44fb41={'type':_0x3f8283[_0x55e150(0x110)]['MUTATION'],'id':_0x55e150(0x2cf),'handler':()=>!0x0},_0x237780={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x4f2)],'id':_0x55e150(0xec),'handler':()=>!0x0},_0x215407={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x4f2)],'id':_0x55e150(0x23b),'handler':()=>!0x0};function _0x32f304(_0x38e0af){'@babel/helpers - typeof';const _0x5db568=_0x55e150;return _0x32f304=typeof Symbol==_0x5db568(0x4b1)&&typeof Symbol[_0x5db568(0x29a)]=='symbol'?function(_0x48129a){return typeof _0x48129a;}:function(_0x5c9e72){const _0x3c2739=_0x5db568;return _0x5c9e72&&typeof Symbol=='function'&&_0x5c9e72[_0x3c2739(0x3d6)]===Symbol&&_0x5c9e72!==Symbol[_0x3c2739(0x34c)]?_0x3c2739(0x228):typeof _0x5c9e72;},_0x32f304(_0x38e0af);}function _0x1f4fac(_0x5ef951,_0x32c69e){const _0x4f4e0d=_0x55e150;if(_0x32f304(_0x5ef951)!='object'||!_0x5ef951)return _0x5ef951;var _0x4df6e7=_0x5ef951[Symbol[_0x4f4e0d(0x236)]];if(_0x4df6e7!==void 0x0){var _0x326c45=_0x4df6e7[_0x4f4e0d(0x152)](_0x5ef951,_0x32c69e||_0x4f4e0d(0x46d));if(_0x32f304(_0x326c45)!=_0x4f4e0d(0xa3))return _0x326c45;throw TypeError(_0x4f4e0d(0x401));}return(_0x32c69e===_0x4f4e0d(0x45c)?String:Number)(_0x5ef951);}function _0x2f8a8b(_0x19165e){const _0x1ed707=_0x55e150;var _0x4f4af3=_0x1f4fac(_0x19165e,_0x1ed707(0x45c));return _0x32f304(_0x4f4af3)==_0x1ed707(0x228)?_0x4f4af3:_0x4f4af3+'';}function _0x418dd6(_0x1b0f68,_0x23c5dd,_0xcaa365){const _0x1c1240=_0x55e150;return(_0x23c5dd=_0x2f8a8b(_0x23c5dd))in _0x1b0f68?Object[_0x1c1240(0x21e)](_0x1b0f68,_0x23c5dd,{'value':_0xcaa365,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1b0f68[_0x23c5dd]=_0xcaa365,_0x1b0f68;}function _0x181d02(_0x19426b,_0x64658b){return function(_0x297a8d,_0x441445){_0x64658b(_0x297a8d,_0x441445,_0x19426b);};}function _0x174b33(_0x18f8ca,_0x3264c3,_0x1e4d75,_0x9deeb2){const _0x3f25b7=_0x55e150;var _0x54ef7d=arguments[_0x3f25b7(0x337)],_0x688c12=_0x54ef7d<0x3?_0x3264c3:_0x9deeb2===null?_0x9deeb2=Object['getOwnPropertyDescriptor'](_0x3264c3,_0x1e4d75):_0x9deeb2,_0x3022ec;if(typeof Reflect==_0x3f25b7(0xa3)&&typeof Reflect['decorate']==_0x3f25b7(0x4b1))_0x688c12=Reflect[_0x3f25b7(0x18d)](_0x18f8ca,_0x3264c3,_0x1e4d75,_0x9deeb2);else{for(var _0x556ecc=_0x18f8ca[_0x3f25b7(0x337)]-0x1;_0x556ecc>=0x0;_0x556ecc--)(_0x3022ec=_0x18f8ca[_0x556ecc])&&(_0x688c12=(_0x54ef7d<0x3?_0x3022ec(_0x688c12):_0x54ef7d>0x3?_0x3022ec(_0x3264c3,_0x1e4d75,_0x688c12):_0x3022ec(_0x3264c3,_0x1e4d75))||_0x688c12);}return _0x54ef7d>0x3&&_0x688c12&&Object[_0x3f25b7(0x21e)](_0x3264c3,_0x1e4d75,_0x688c12),_0x688c12;}let _0x5b492b=class extends _0x3f8283[_0x55e150(0xc4)]{constructor(_0x30c5de){const _0x170a1e=_0x55e150;super(),this[_0x170a1e(0x466)]=_0x30c5de,_0x418dd6(this,_0x170a1e(0x435),new Map());}[_0x55e150(0x40b)](_0x3020cd){const _0x4766df=_0x55e150;let {version:_0x400ce3}=_0x3020cd,_0x591a76=this['_requestResolvers'][_0x4766df(0x97)](_0x400ce3);_0x591a76&&(this[_0x4766df(0x435)][_0x4766df(0xe0)](_0x400ce3),_0x3020cd[_0x4766df(0x347)]===void 0x0?_0x591a76['resolve'](_0x3020cd):_0x591a76['reject'](Error(_0x3020cd[_0x4766df(0x347)])));}async['getPivotDisplayConfig'](_0x157cfe){const _0x57fdc1=_0x55e150;let _0x213899=this[_0x57fdc1(0xb3)](),_0x5ed3fe=new Promise((_0x194d06,_0x3c5c89)=>{const _0x11a716=_0x57fdc1;this[_0x11a716(0x435)][_0x11a716(0x187)](_0x213899,{'resolve':_0x194d06,'reject':_0x3c5c89});});try{await this['_commandService']['executeCommand'](_0x4153d1['id'],{'version':_0x213899,..._0x157cfe},{'onlyLocal':!0x0})||this[_0x57fdc1(0x184)](_0x213899,Error('[SheetsPivotRPCService]:\x20pivot\x20request\x20dispatch\x20failed'));}catch(_0x46902a){this[_0x57fdc1(0x184)](_0x213899,_0x46902a);}return _0x5ed3fe;}['dispose'](){const _0x307ca6=_0x55e150;super[_0x307ca6(0x3f4)]();let _0x4fcf5e=Error('[SheetsPivotRPCService]:\x20disposed\x20with\x20pending\x20pivot\x20requests');this[_0x307ca6(0x435)]['forEach'](({reject:_0x48f073})=>_0x48f073(_0x4fcf5e)),this[_0x307ca6(0x435)][_0x307ca6(0x1ce)]();}['_rejectRequest'](_0xd6577c,_0x2f5e6f){const _0x238e6e=_0x55e150;let _0x7cdc72=this[_0x238e6e(0x435)][_0x238e6e(0x97)](_0xd6577c);_0x7cdc72&&(this[_0x238e6e(0x435)][_0x238e6e(0xe0)](_0xd6577c),_0x7cdc72[_0x238e6e(0x4be)](_0x2f5e6f));}[_0x55e150(0xb3)](){const _0x1862a0=_0x55e150;return Math[_0x1862a0(0x183)]()[_0x1862a0(0x468)](0x24)['substring'](0x2,0x10);}};_0x5b492b=_0x174b33([_0x181d02(0x0,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x3f8283['ICommandService']))],_0x5b492b);let _0x75a69e=_0x55e150(0x422),_0x1c3f30={'autoDateGroup':!0x0,'dateSystem':_0x3f8283[_0x55e150(0x3f5)][_0x55e150(0x4e8)]},_0x2fd000=class extends _0x3f8283[_0x55e150(0xc4)]{constructor(_0x567bb1){const _0x355865=_0x55e150;super(),this['_univerInstanceService']=_0x567bb1,_0x418dd6(this,_0x355865(0x1ab),new Map()),_0x418dd6(this,'_cacheBySourceKey',new Map()),_0x418dd6(this,_0x355865(0x3df),new Map()),_0x418dd6(this,'_refreshCycleCache',new WeakMap());}[_0x55e150(0x41d)](_0x2c40c3,_0x5f12a0){const _0x11cc37=_0x55e150;var _0x5e8e04;return(_0x5e8e04=this[_0x11cc37(0x2a6)](_0x320e26(this['_normalizeSource'](_0x2c40c3)),_0x5f12a0))==null?void 0x0:_0x5e8e04[_0x11cc37(0x3ae)];}[_0x55e150(0x172)](_0x458649,_0x57e587){const _0x3d4f81=_0x55e150;let _0x236ea0=this['_cacheById'][_0x3d4f81(0x97)](_0x458649);if(!_0x236ea0)return;let _0x18d018=this['_normalizeSource'](_0x57e587),_0x338ec9=this[_0x3d4f81(0x1b5)]['get'](_0x236ea0[_0x3d4f81(0x3a1)]);_0x338ec9==null||_0x338ec9[_0x3d4f81(0xe0)](_0x236ea0),_0x338ec9!=null&&_0x338ec9[_0x3d4f81(0xef)]||this[_0x3d4f81(0x1b5)][_0x3d4f81(0xe0)](_0x236ea0['sourceKey']),_0x236ea0[_0x3d4f81(0x1f5)]=_0x18d018,_0x236ea0[_0x3d4f81(0x3a1)]=_0x320e26(_0x18d018);let _0x5041ce=this[_0x3d4f81(0x1b5)][_0x3d4f81(0x97)](_0x236ea0[_0x3d4f81(0x3a1)])??new Set();_0x5041ce[_0x3d4f81(0xe9)](_0x236ea0),this['_cacheBySourceKey'][_0x3d4f81(0x187)](_0x236ea0[_0x3d4f81(0x3a1)],_0x5041ce);}[_0x55e150(0x526)](_0x24615d){const _0x377552=_0x55e150;var _0x241271;let _0x5b34fb=(_0x241271=this['_univerInstanceService'][_0x377552(0x34e)](_0x24615d[_0x377552(0xa0)]))==null?void 0x0:_0x241271[_0x377552(0x176)](_0x24615d['to']['subUnitId']);if(!_0x5b34fb)return[];let _0x5cd5b1=[];for(let _0x4e9a7d of Array[_0x377552(0x91)](this[_0x377552(0x1ab)][_0x377552(0x20b)]())){let _0x495146=_0x47175f(_0x4e9a7d[_0x377552(0x1f5)],_0x24615d,_0x5b34fb[_0x377552(0x25f)]());if(!_0x495146)continue;_0x5cd5b1['push']({'pivotCacheId':_0x4e9a7d[_0x377552(0x3ae)],'before':_0x202f1d(_0x4e9a7d[_0x377552(0x1f5)]),'after':_0x495146});let _0x30211f=this['_cacheBySourceKey']['get'](_0x4e9a7d[_0x377552(0x3a1)]);_0x30211f==null||_0x30211f[_0x377552(0xe0)](_0x4e9a7d),_0x30211f!=null&&_0x30211f[_0x377552(0xef)]||this['_cacheBySourceKey']['delete'](_0x4e9a7d[_0x377552(0x3a1)]),_0x4e9a7d['sourceRangeInfo']=_0x495146,_0x4e9a7d[_0x377552(0x3a1)]=_0x320e26(_0x495146);let _0x488690=this['_cacheBySourceKey'][_0x377552(0x97)](_0x4e9a7d[_0x377552(0x3a1)])??new Set();_0x488690['add'](_0x4e9a7d),this[_0x377552(0x1b5)]['set'](_0x4e9a7d[_0x377552(0x3a1)],_0x488690);}return _0x5cd5b1;}[_0x55e150(0x2a6)](_0x20e29f,_0x4115ca){const _0x4f9177=_0x55e150;return Array[_0x4f9177(0x91)](this['_cacheBySourceKey'][_0x4f9177(0x97)](_0x20e29f)??[])[_0x4f9177(0x2da)](_0x413004=>_0x413004[_0x4f9177(0x17b)]===_0x4115ca);}['acquireForReport'](_0x2cec1c,_0x4d1faf,_0x58d81d,_0x2747cc,_0x467643){const _0x5ba960=_0x55e150;let _0xc69558=this['_normalizeSource'](_0x58d81d),_0x598a4c=_0x320e26(_0xc69558),_0x2b456f=_0x463b44(_0x2cec1c,_0x4d1faf),_0x18914f=this[_0x5ba960(0x3df)]['get'](_0x2b456f);if((_0x18914f==null?void 0x0:_0x18914f[_0x5ba960(0x12c)][_0x5ba960(0x3a1)])===_0x598a4c&&_0x18914f['record'][_0x5ba960(0x17b)]===_0x2747cc&&(!_0x467643||_0x18914f[_0x5ba960(0x12c)][_0x5ba960(0x3ae)]===_0x467643))return _0x18914f[_0x5ba960(0x2e2)];let _0x3dca4b;if(_0x467643){let _0x104489=this[_0x5ba960(0x1ab)][_0x5ba960(0x97)](_0x467643);if(_0x104489){if(_0x104489[_0x5ba960(0x1f5)]['unitId']!==_0xc69558[_0x5ba960(0xa0)]||_0x104489[_0x5ba960(0x3a1)]!==_0x598a4c||_0x104489[_0x5ba960(0x17b)]!==_0x2747cc)throw new _0x3c97e0[(_0x5ba960(0x3ee))](_0x3c97e0[_0x5ba960(0x3ff)][_0x5ba960(0xb7)],{'pivotCacheId':_0x467643,'sourceRangeInfo':_0x58d81d});_0x3dca4b=_0x104489;}_0x3dca4b??=this[_0x5ba960(0x4b7)](_0xc69558,_0x598a4c,_0x2747cc,_0x467643);}else _0x3dca4b=this[_0x5ba960(0x2a6)](_0x598a4c,_0x2747cc),_0x3dca4b??=this['_createRecord'](_0xc69558,_0x598a4c,_0x2747cc);let _0x111a93=this['_createHandle'](_0x3dca4b,_0x2b456f);return _0x18914f==null||_0x18914f['handle'][_0x5ba960(0x3f4)](),this[_0x5ba960(0x3df)]['set'](_0x2b456f,{'reportUnitId':_0x2cec1c,'handle':_0x111a93,'record':_0x3dca4b}),_0x111a93;}['releaseReport'](_0x52d16d,_0x2f1e5e){const _0x5029ae=_0x55e150;var _0x44bd70;(_0x44bd70=this[_0x5029ae(0x3df)][_0x5029ae(0x97)](_0x463b44(_0x52d16d,_0x2f1e5e)))==null||_0x44bd70[_0x5029ae(0x2e2)]['dispose']();}[_0x55e150(0x285)](_0x42360e,_0x1f3be2,_0x55de86=!0x1){const _0xca7953=_0x55e150;let _0x5d1415=this['_cacheById'][_0xca7953(0x97)](_0x1f3be2);if(!_0x5d1415||_0x5d1415['sourceRangeInfo']['unitId']!==_0x42360e)throw new _0x3c97e0[(_0xca7953(0x3ee))](_0x3c97e0[_0xca7953(0x3ff)][_0xca7953(0x4d9)],{'ownerUnitId':_0x42360e,'pivotCacheId':_0x1f3be2});return _0x55de86&&(_0x5d1415['retainedSource']=!0x1),this['_createHandle'](_0x5d1415,void 0x0,_0x55de86);}[_0x55e150(0x15b)](_0xbd813a,_0x4e2c86){const _0x9fb5fc=_0x55e150;let _0x16f831=this[_0x9fb5fc(0x1ab)][_0x9fb5fc(0x97)](_0x4e2c86);return(_0x16f831==null?void 0x0:_0x16f831[_0x9fb5fc(0x1f5)][_0x9fb5fc(0xa0)])===_0xbd813a?_0x202f1d(_0x16f831[_0x9fb5fc(0x1f5)]):void 0x0;}[_0x55e150(0x333)](_0x503420,_0x5abf22){const _0x328f7b=_0x55e150;var _0x5c0a54;return(_0x5c0a54=this[_0x328f7b(0x3df)][_0x328f7b(0x97)](_0x463b44(_0x503420,_0x5abf22)))==null?void 0x0:_0x5c0a54[_0x328f7b(0x12c)]['pivotCacheId'];}['getReportHandle'](_0x511eab,_0x39228f){const _0x2abb4c=_0x55e150;var _0x5ec233;return(_0x5ec233=this['_reportBindings'][_0x2abb4c(0x97)](_0x463b44(_0x511eab,_0x39228f)))==null?void 0x0:_0x5ec233['handle'];}['toJSON'](_0x4e57e6){const _0x180b87=_0x55e150;let _0x8dd896={};return this['_cacheById'][_0x180b87(0x1bd)](_0x1b0158=>{const _0xb09186=_0x180b87;_0x1b0158['sourceRangeInfo'][_0xb09186(0xa0)]!==_0x4e57e6||_0x1b0158[_0xb09186(0x4f8)][_0xb09186(0xef)]===0x0&&_0x1b0158[_0xb09186(0x461)]===0x0&&!_0x1b0158[_0xb09186(0x2d9)]||(_0x8dd896[_0x1b0158[_0xb09186(0x3ae)]]={'pivotCacheId':_0x1b0158[_0xb09186(0x3ae)],'sourceRangeInfo':_0x202f1d(_0x1b0158[_0xb09186(0x1f5)]),..._0x1b0158[_0xb09186(0x4f8)][_0xb09186(0xef)]===0x0?{'retainedSource':!0x0}:{}});}),_0x8dd896;}[_0x55e150(0x3b3)](_0x71226a,_0x1daf4f,_0x1e6ae9){const _0x7296c7=_0x55e150;Object[_0x7296c7(0x20b)](_0x1daf4f)['forEach'](_0x53a565=>{const _0x205792=_0x7296c7;let _0x34c6e0=this[_0x205792(0x287)](_0x53a565[_0x205792(0x1f5)]),_0x7655b1=_0x320e26(_0x34c6e0);if(_0x34c6e0[_0x205792(0xa0)]!==_0x71226a)throw new _0x3c97e0[(_0x205792(0x3ee))](_0x3c97e0[_0x205792(0x3ff)][_0x205792(0xb7)],{'unitId':_0x71226a,'snapshot':_0x53a565});let _0x123c40=this[_0x205792(0x1ab)][_0x205792(0x97)](_0x53a565[_0x205792(0x3ae)]);if(_0x123c40){if(_0x123c40[_0x205792(0x3a1)]!==_0x7655b1||_0x123c40[_0x205792(0x17b)]!==_0x1e6ae9)throw new _0x3c97e0['PivotCacheProviderError'](_0x3c97e0[_0x205792(0x3ff)][_0x205792(0xb7)],{'unitId':_0x71226a,'snapshot':_0x53a565});return;}let _0xa45aee=this['_createRecord'](_0x34c6e0,_0x7655b1,_0x1e6ae9,_0x53a565[_0x205792(0x3ae)]);_0xa45aee[_0x205792(0x2d9)]=_0x53a565['retainedSource']===!0x0;});}[_0x55e150(0x3b2)](_0x19a633){const _0x1558b6=_0x55e150;Array['from'](this['_cacheById'][_0x1558b6(0x20b)]())[_0x1558b6(0x1bd)](_0x3218b8=>{const _0x43f4fa=_0x1558b6;_0x3218b8[_0x43f4fa(0x1f5)][_0x43f4fa(0xa0)]===_0x19a633&&this['_deleteRecordIfUnused'](_0x3218b8);});}[_0x55e150(0x308)](_0x668070){const _0x2ee5b0=_0x55e150;Array[_0x2ee5b0(0x91)](this['_reportBindings'][_0x2ee5b0(0x4f5)]())[_0x2ee5b0(0x1bd)](([_0x6daf9,_0x5df80b])=>{const _0x169824=_0x2ee5b0;(_0x5df80b[_0x169824(0x25e)]===_0x668070||_0x5df80b[_0x169824(0x12c)]['sourceRangeInfo'][_0x169824(0xa0)]===_0x668070)&&(_0x5df80b['handle'][_0x169824(0x3f4)](),this['_reportBindings'][_0x169824(0xe0)](_0x6daf9));}),Array[_0x2ee5b0(0x91)](this[_0x2ee5b0(0x1ab)]['values']())[_0x2ee5b0(0x1bd)](_0x2b3099=>{const _0x53e3d0=_0x2ee5b0;_0x2b3099[_0x53e3d0(0x1f5)][_0x53e3d0(0xa0)]===_0x668070&&(_0x2b3099['retainedSource']=!0x1,_0x2b3099[_0x53e3d0(0x4f8)][_0x53e3d0(0x1ce)](),Array[_0x53e3d0(0x91)](_0x2b3099['handles'])['forEach'](_0x3a1eaa=>_0x3a1eaa[_0x53e3d0(0x3f4)]()),this['_deleteRecordIfUnused'](_0x2b3099));});}[_0x55e150(0x4e5)](_0x2ddaeb,_0x5f471d,_0x495e03){const _0x58300f=_0x55e150;let _0xbae92f=this[_0x58300f(0x2a4)][_0x58300f(0x97)](_0x5f471d),_0x4e9749=_0xbae92f==null?void 0x0:_0xbae92f[_0x58300f(0x97)](_0x2ddaeb);if(_0x4e9749)return _0x4e9749;let _0x29d359=this[_0x58300f(0x1ab)]['get'](_0x2ddaeb);if(!_0x29d359)throw new _0x3c97e0[(_0x58300f(0x3ee))](_0x3c97e0['PivotCacheProviderErrorCodeEnum'][_0x58300f(0x4d9)],{'pivotCacheId':_0x2ddaeb});let _0x439a33=_0x495e03(),_0x58b5d9=Object[_0x58300f(0x250)](Array[_0x58300f(0x91)](_0x439a33[_0x58300f(0x533)])),_0x4c1b25=Object[_0x58300f(0x250)]({..._0x439a33[_0x58300f(0x26c)]}),_0x200db6=_0xbae92f??new Map();_0xbae92f||this[_0x58300f(0x2a4)][_0x58300f(0x187)](_0x5f471d,_0x200db6);let _0xc74498=Array[_0x58300f(0x91)](this[_0x58300f(0x1b5)][_0x58300f(0x97)](_0x29d359[_0x58300f(0x3a1)])??[])['filter'](_0x2bfe48=>_0x2bfe48[_0x58300f(0x17b)]===_0x29d359[_0x58300f(0x17b)]);return _0xc74498[_0x58300f(0x1bd)](_0xb9f353=>{const _0x273fe9=_0x58300f;_0x200db6[_0x273fe9(0x187)](_0xb9f353[_0x273fe9(0x3ae)],Object[_0x273fe9(0x250)]({'pivotCacheId':_0xb9f353['pivotCacheId'],'dirtyFieldIds':_0x58b5d9,'previousFieldNames':_0x4c1b25}));}),_0xc74498[_0x58300f(0x1bd)](_0x4426cb=>{const _0x1b8ad7=_0x58300f;let _0x5b408f=_0x200db6[_0x1b8ad7(0x97)](_0x4426cb[_0x1b8ad7(0x3ae)]);_0x4426cb['changed$'][_0x1b8ad7(0x21c)]({'pivotCacheId':_0x5b408f[_0x1b8ad7(0x3ae)],'dirtyFieldIds':_0x5b408f['dirtyFieldIds']});}),_0x200db6[_0x58300f(0x97)](_0x2ddaeb);}[_0x55e150(0x3f4)](){const _0x143c0d=_0x55e150;Array['from'](this[_0x143c0d(0x3df)]['values']())[_0x143c0d(0x1bd)](({handle:_0x297f63})=>_0x297f63[_0x143c0d(0x3f4)]()),this[_0x143c0d(0x3df)][_0x143c0d(0x1ce)](),Array[_0x143c0d(0x91)](this[_0x143c0d(0x1ab)][_0x143c0d(0x20b)]())[_0x143c0d(0x1bd)](_0x11ecc2=>{const _0x160aad=_0x143c0d;Array[_0x160aad(0x91)](_0x11ecc2['handles'])['forEach'](_0x5af596=>_0x5af596[_0x160aad(0x3f4)]()),_0x11ecc2['changed$']['complete']();}),this[_0x143c0d(0x1ab)][_0x143c0d(0x1ce)](),this[_0x143c0d(0x1b5)][_0x143c0d(0x1ce)](),super[_0x143c0d(0x3f4)]();}[_0x55e150(0x287)](_0x3178c1){const _0x429a59=_0x55e150;let _0xe22ca9=this[_0x429a59(0x42e)][_0x429a59(0x34e)](_0x3178c1[_0x429a59(0xa0)],_0x3f8283[_0x429a59(0x2f9)][_0x429a59(0x198)]),_0x4be51b=(_0xe22ca9==null?void 0x0:_0xe22ca9[_0x429a59(0x176)](_0x3178c1[_0x429a59(0x2d0)]))??(_0x3178c1['sheetName']?_0xe22ca9==null?void 0x0:_0xe22ca9[_0x429a59(0x4ad)](_0x3178c1[_0x429a59(0x28e)]):void 0x0);if(!_0x4be51b)throw new _0x3c97e0['PivotCacheProviderError'](_0x3c97e0[_0x429a59(0x3ff)][_0x429a59(0xb7)],{'sourceRangeInfo':_0x3178c1});return{..._0x3178c1,'subUnitId':_0x4be51b[_0x429a59(0x4ec)](),'sheetName':_0x4be51b[_0x429a59(0x25f)](),'range':_0x3fd02b(_0x3178c1[_0x429a59(0x322)],_0x4be51b)};}['_createRecord'](_0x21d670,_0x12a32e,_0x51832b,_0x4c700f){const _0x964571=_0x55e150;let _0x2a9671=_0x4c700f&&!this[_0x964571(0x1ab)]['has'](_0x4c700f)?_0x4c700f:_0x964571(0x3d1)+(0x0,_0x3f8283['generateRandomId'])(0x8),_0x49aaec={'pivotCacheId':_0x2a9671,'sourceKey':_0x12a32e,'sourceRangeInfo':_0x21d670,'dataFieldManager':_0x51832b,'reportKeys':new Set(),'handles':new Set(),'runtimeLeaseCount':0x0,'sourceLeaseCount':0x0,'changed$':new _0x282fb4[(_0x964571(0x523))]()};this[_0x964571(0x1ab)][_0x964571(0x187)](_0x2a9671,_0x49aaec);let _0x42d6f6=this[_0x964571(0x1b5)][_0x964571(0x97)](_0x12a32e);return _0x42d6f6||(_0x42d6f6=new Set(),this[_0x964571(0x1b5)][_0x964571(0x187)](_0x12a32e,_0x42d6f6)),_0x42d6f6[_0x964571(0xe9)](_0x49aaec),_0x49aaec;}['_createHandle'](_0x5ef08f,_0x359ac0,_0x5e628c=!0x1){const _0x4916c0=_0x55e150;let _0x886376=!0x1;_0x5ef08f['runtimeLeaseCount']++,_0x5e628c&&_0x5ef08f[_0x4916c0(0x461)]++,_0x359ac0&&_0x5ef08f[_0x4916c0(0x4f8)][_0x4916c0(0xe9)](_0x359ac0);let _0x55f1f5={'pivotCacheId':_0x5ef08f[_0x4916c0(0x3ae)],'changed$':_0x5ef08f[_0x4916c0(0x3c4)][_0x4916c0(0xf4)](),'getDataFieldManager':()=>_0x5ef08f[_0x4916c0(0x17b)],'dispose':()=>{const _0x49652c=_0x4916c0;if(!_0x886376){if(_0x886376=!0x0,_0x5ef08f[_0x49652c(0x11a)][_0x49652c(0xe0)](_0x55f1f5),_0x5ef08f[_0x49652c(0x38d)]--,_0x5e628c&&_0x5ef08f['sourceLeaseCount']--,_0x359ac0){var _0x1a677f;_0x5ef08f['reportKeys'][_0x49652c(0xe0)](_0x359ac0),((_0x1a677f=this['_reportBindings'][_0x49652c(0x97)](_0x359ac0))==null?void 0x0:_0x1a677f['handle'])===_0x55f1f5&&this[_0x49652c(0x3df)][_0x49652c(0xe0)](_0x359ac0);}this[_0x49652c(0x147)](_0x5ef08f);}}};return _0x5ef08f[_0x4916c0(0x11a)][_0x4916c0(0xe9)](_0x55f1f5),_0x55f1f5;}[_0x55e150(0x147)](_0x56d2ff){const _0x34f3f0=_0x55e150;if(_0x56d2ff[_0x34f3f0(0x38d)]>0x0||_0x56d2ff['reportKeys'][_0x34f3f0(0xef)]>0x0||_0x56d2ff[_0x34f3f0(0x2d9)])return;this[_0x34f3f0(0x1ab)][_0x34f3f0(0x97)](_0x56d2ff[_0x34f3f0(0x3ae)])===_0x56d2ff&&this[_0x34f3f0(0x1ab)][_0x34f3f0(0xe0)](_0x56d2ff[_0x34f3f0(0x3ae)]);let _0x4a8b38=this['_cacheBySourceKey'][_0x34f3f0(0x97)](_0x56d2ff[_0x34f3f0(0x3a1)]);_0x4a8b38==null||_0x4a8b38[_0x34f3f0(0xe0)](_0x56d2ff),(_0x4a8b38==null?void 0x0:_0x4a8b38[_0x34f3f0(0xef)])===0x0&&this[_0x34f3f0(0x1b5)][_0x34f3f0(0xe0)](_0x56d2ff[_0x34f3f0(0x3a1)]),_0x56d2ff['changed$'][_0x34f3f0(0x104)]();}};_0x2fd000=_0x174b33([_0x181d02(0x0,_0x3f8283['IUniverInstanceService'])],_0x2fd000);function _0x3fd02b(_0x53a5be,_0x57dde1){const _0x204a1b=_0x55e150;return _0x53a5be['rangeType']===_0x3f8283[_0x204a1b(0xd9)][_0x204a1b(0x116)]?{'startRow':0x0,'endRow':_0x57dde1[_0x204a1b(0x484)]()-0x1,'startColumn':_0x53a5be['startColumn'],'endColumn':_0x53a5be[_0x204a1b(0x221)]}:{'startRow':_0x53a5be[_0x204a1b(0x33e)],'endRow':_0x53a5be[_0x204a1b(0x315)],'startColumn':_0x53a5be[_0x204a1b(0x2fc)],'endColumn':_0x53a5be['endColumn']};}function _0x202f1d(_0x289d04){const _0x45c432=_0x55e150;return{..._0x289d04,'range':{..._0x289d04[_0x45c432(0x322)]}};}function _0x320e26(_0x321ae0){const _0x44c8cf=_0x55e150;let {range:_0x2aaf20}=_0x321ae0;return JSON['stringify'](['worksheet-range',_0x321ae0[_0x44c8cf(0xa0)],_0x321ae0[_0x44c8cf(0x2d0)],_0x2aaf20[_0x44c8cf(0x33e)],_0x2aaf20[_0x44c8cf(0x315)],_0x2aaf20[_0x44c8cf(0x2fc)],_0x2aaf20[_0x44c8cf(0x221)]]);}function _0x463b44(_0x496fea,_0x538f73){const _0x1fdd4a=_0x55e150;return JSON[_0x1fdd4a(0x4c4)]([_0x496fea,_0x538f73]);}function _0x47175f(_0x2208a5,_0x510054,_0xba77a8){const _0x550f38=_0x55e150;if(_0x2208a5['unitId']!==_0x510054['unitId']||_0x2208a5['subUnitId']!==_0x510054[_0x550f38(0x91)][_0x550f38(0x2d0)]||!_0x3f8283[_0x550f38(0x13e)]['contains'](_0x510054['fromRange'],_0x2208a5['range']))return;let _0x3230b3=_0x510054['toRange'][_0x550f38(0x33e)]-_0x510054['fromRange'][_0x550f38(0x33e)],_0x46fc28=_0x510054[_0x550f38(0x34f)]['startColumn']-_0x510054[_0x550f38(0x52b)][_0x550f38(0x2fc)];return{..._0x2208a5,'subUnitId':_0x510054['to'][_0x550f38(0x2d0)],'sheetName':_0xba77a8,'range':{'startRow':_0x2208a5[_0x550f38(0x322)][_0x550f38(0x33e)]+_0x3230b3,'endRow':_0x2208a5['range'][_0x550f38(0x315)]+_0x3230b3,'startColumn':_0x2208a5['range']['startColumn']+_0x46fc28,'endColumn':_0x2208a5['range'][_0x550f38(0x221)]+_0x46fc28}};}let _0x3de398=class extends _0x3f8283[_0x55e150(0xc4)]{constructor(_0x3956a4,_0x17dde3,_0x3cc0e2,_0x4ad0ed,_0x52292d,_0x2466e6){const _0x482996=_0x55e150;super(),this[_0x482996(0x1f7)]=_0x3956a4,this['_commandService']=_0x17dde3,this[_0x482996(0x42e)]=_0x3cc0e2,this['_resourceManagerService']=_0x4ad0ed,this[_0x482996(0x2f4)]=_0x52292d,this[_0x482996(0x47d)]=_0x2466e6,_0x418dd6(this,_0x482996(0x3da),new Map()),_0x418dd6(this,'_collectionConfigModel',new Map()),_0x418dd6(this,_0x482996(0x14d),new Map()),_0x418dd6(this,'_retainedSources',new Map()),_0x418dd6(this,_0x482996(0x21a),new Map()),_0x418dd6(this,_0x482996(0x13a),new Map()),_0x418dd6(this,_0x482996(0x4d3),new _0x282fb4[(_0x482996(0x523))]()),_0x418dd6(this,_0x482996(0x4c5),this[_0x482996(0x4d3)][_0x482996(0xf4)]()),_0x418dd6(this,_0x482996(0x473),new Map()),_0x418dd6(this,'_pivotTableMatrixInfo',new Map()),_0x418dd6(this,'_collectionChange$',new _0x282fb4[(_0x482996(0x523))]()),_0x418dd6(this,_0x482996(0x9c),this[_0x482996(0x4e4)][_0x482996(0xf4)]()),_0x418dd6(this,_0x482996(0x417),void 0x0),_0x418dd6(this,_0x482996(0x3a9),new _0x282fb4[(_0x482996(0x523))]()),_0x418dd6(this,'pivotInitCompleted$',this['_pivotInitCompleted$'][_0x482996(0xf4)]()),_0x418dd6(this,_0x482996(0x40a),new _0x282fb4['Subject']()),_0x418dd6(this,_0x482996(0x259),this[_0x482996(0x40a)][_0x482996(0xf4)]()),_0x418dd6(this,_0x482996(0x4ff),{}),this[_0x482996(0x213)](()=>{const _0x2cf018=_0x482996;this[_0x2cf018(0x417)]=void 0x0,this['_collectionChange$'][_0x2cf018(0x104)](),this['_pivotConfigChange$'][_0x2cf018(0x104)]();}),this[_0x482996(0x50e)](),this[_0x482996(0x340)]();let _0xac9744=this['_configService'][_0x482996(0x23f)](_0x75a69e);(_0xac9744==null?void 0x0:_0xac9744[_0x482996(0x37c)])===!0x0&&(this['_initSnapshot'](),this[_0x482996(0x213)](this[_0x482996(0x466)][_0x482996(0x44c)](_0x32a812=>{const _0x2e73ec=_0x482996;_0x32a812['id']===_0x4b3c60[_0x2e73ec(0x293)]['id']&&this['_moveSources'](_0x32a812['params']);})));}[_0x55e150(0x43b)](_0x541d8c){const _0x2139c3=_0x55e150;if(this['ensureNotDisposed'](),this[_0x2139c3(0x417)])return _0x541d8c();let _0x2af341={'configs':new Map(),'collections':new Map()};this[_0x2139c3(0x417)]=_0x2af341;let _0x53f5bb;try{_0x53f5bb=_0x541d8c();}finally{this[_0x2139c3(0x417)]=void 0x0;}return _0x2af341[_0x2139c3(0x535)][_0x2139c3(0x1bd)](_0x550c4f=>this['_emitConfigChange'](_0x550c4f)),_0x2af341[_0x2139c3(0x10d)][_0x2139c3(0x1bd)]((_0x1658d6,_0x1d0b16)=>this[_0x2139c3(0x121)](_0x1d0b16,[..._0x1658d6])),_0x53f5bb;}['watchPivotTableChanges'](_0x11960f,_0x598db3,_0x430ea9){const _0x262c59=_0x55e150;return(0x0,_0x282fb4[_0x262c59(0x3db)])(this[_0x262c59(0x259)][_0x262c59(0x329)]((0x0,_0x282fb4[_0x262c59(0x38f)])(_0x4b2a9e=>_0x4b2a9e[_0x262c59(0xa0)]===_0x11960f&&_0x4b2a9e['subUnitId']===_0x598db3&&_0x4b2a9e['pivotTableId']===_0x430ea9)),this[_0x262c59(0x9c)][_0x262c59(0x329)]((0x0,_0x282fb4[_0x262c59(0x38f)])(_0x464d18=>{const _0x4e5983=_0x262c59;var _0xb9ff87;let _0x494dfd=(_0xb9ff87=this[_0x4e5983(0x3a8)](_0x11960f,_0x598db3,_0x430ea9))==null?void 0x0:_0xb9ff87['sourceRangeInfo'][_0x4e5983(0xa0)];return _0x464d18['unitId']===(_0x494dfd??_0x11960f)&&_0x464d18[_0x4e5983(0x29e)][_0x4e5983(0xf1)](_0x430ea9);})));}[_0x55e150(0x46e)](_0x11bae1){const _0xa00ff6=_0x55e150;this[_0xa00ff6(0x332)]||(this[_0xa00ff6(0x417)]?this[_0xa00ff6(0x417)][_0xa00ff6(0x535)][_0xa00ff6(0x187)](JSON[_0xa00ff6(0x4c4)]([_0x11bae1[_0xa00ff6(0xa0)],_0x11bae1[_0xa00ff6(0x2d0)],_0x11bae1[_0xa00ff6(0x173)]]),_0x11bae1):this[_0xa00ff6(0x40a)][_0xa00ff6(0x21c)](_0x11bae1));}['_emitCollectionChange'](_0x5da7ea,_0x11f488){const _0x521fd1=_0x55e150;if(this[_0x521fd1(0x332)]||!_0x11f488['length'])return;let _0xde43cc=new Set(_0x11f488);if(this[_0x521fd1(0x417)]){let _0x578130=this[_0x521fd1(0x417)][_0x521fd1(0x10d)][_0x521fd1(0x97)](_0x5da7ea)??new Set();_0xde43cc[_0x521fd1(0x1bd)](_0x2b2b5d=>_0x578130['add'](_0x2b2b5d)),this[_0x521fd1(0x417)][_0x521fd1(0x10d)][_0x521fd1(0x187)](_0x5da7ea,_0x578130);}else this[_0x521fd1(0x4e4)]['next']({'unitId':_0x5da7ea,'pivotTableIds':[..._0xde43cc]});}['_moveSources'](_0x5910bb){const _0x1471e1=_0x55e150;var _0x5bb53c;let _0x504111=(_0x5bb53c=this[_0x1471e1(0x42e)][_0x1471e1(0x34e)](_0x5910bb[_0x1471e1(0xa0)]))==null?void 0x0:_0x5bb53c[_0x1471e1(0x176)](_0x5910bb['to'][_0x1471e1(0x2d0)]);if(!_0x504111)return;let _0x175cf9=new Map(),_0x105c9d=_0x212701=>{const _0x2d3758=_0x1471e1;let _0x1edcbb=_0x47175f(_0x212701,_0x5910bb,_0x504111[_0x2d3758(0x25f)]());if(_0x1edcbb)for(let _0xf47e24=_0x212701[_0x2d3758(0x322)][_0x2d3758(0x2fc)];_0xf47e24<=_0x212701[_0x2d3758(0x322)][_0x2d3758(0x221)];_0xf47e24++){let _0x5c5f91=_0x1edcbb['range'][_0x2d3758(0x2fc)]+_0xf47e24-_0x212701[_0x2d3758(0x322)][_0x2d3758(0x2fc)],_0x17fc33=(0x0,_0x1ce484[_0x2d3758(0x24e)])(_0x212701[_0x2d3758(0xa0)],_0x212701[_0x2d3758(0x28e)],{..._0x212701[_0x2d3758(0x322)],'startColumn':_0xf47e24,'endColumn':_0xf47e24}),_0x23372c=(0x0,_0x1ce484[_0x2d3758(0x24e)])(_0x1edcbb['unitId'],_0x1edcbb[_0x2d3758(0x28e)],{..._0x1edcbb[_0x2d3758(0x322)],'startColumn':_0x5c5f91,'endColumn':_0x5c5f91});_0x175cf9[_0x2d3758(0x187)](_0x17fc33,_0x23372c);}return _0x1edcbb;};for(let _0x1912ce of Object[_0x1471e1(0x20b)](this['_cacheConfigModel']['get'](_0x5910bb['unitId'])??{}))_0x1912ce['sourceRangeInfo']=_0x105c9d(_0x1912ce[_0x1471e1(0x1f5)])??_0x1912ce[_0x1471e1(0x1f5)];let _0x426ba4=[];for(let [_0x4e8e6c,_0x11f255]of this[_0x1471e1(0x3da)])for(let [_0x3948aa,_0x3d8b54]of _0x11f255)for(let [_0x564107,_0x26775d]of _0x3d8b54){let _0x181f0f=_0x105c9d(_0x26775d['sourceRangeInfo']);_0x181f0f&&_0x426ba4[_0x1471e1(0xc7)]({'unitId':_0x4e8e6c,'subUnitId':_0x3948aa,'pivotTableId':_0x564107,'config':{..._0x26775d,'sourceRangeInfo':_0x181f0f}});}let _0x37662f=this[_0x1471e1(0x456)][_0x1471e1(0x97)](_0x5910bb[_0x1471e1(0xa0)]);if(_0x37662f){for(let _0x435d0c of Object[_0x1471e1(0x20b)](_0x37662f['collections'])){let _0x4d6bdc=_0x435d0c[_0x1471e1(0x322)];_0x4d6bdc!=null&&_0x4d6bdc[_0x1471e1(0x322)]&&(_0x435d0c[_0x1471e1(0x322)]=_0x105c9d(_0x4d6bdc)??_0x4d6bdc);}for(let _0x4a1553 of[_0x37662f[_0x1471e1(0x16b)],...Object[_0x1471e1(0x20b)](_0x37662f[_0x1471e1(0x10d)])[_0x1471e1(0x1e6)](_0x1f631d=>_0x1f631d['fields'])])for(let _0x561dfb of Object[_0x1471e1(0x20b)](_0x4a1553)){let _0x413c1e=_0x175cf9[_0x1471e1(0x97)](_0x561dfb['rangeKey']);_0x413c1e&&(_0x561dfb[_0x1471e1(0x215)]=_0x413c1e);}}let _0x19e141=this[_0x1471e1(0x201)](_0x426ba4);_0x19e141[_0x1471e1(0x225)](),this['_emitCollectionChange'](_0x5910bb[_0x1471e1(0xa0)],Object[_0x1471e1(0x1b3)]((_0x37662f==null?void 0x0:_0x37662f['collections'])??{})),_0x19e141[_0x1471e1(0x397)]();}[_0x55e150(0x340)](){const _0x391e8d=_0x55e150;this[_0x391e8d(0x213)](this[_0x391e8d(0x42e)][_0x391e8d(0x100)](_0x3f8283[_0x391e8d(0x2f9)]['UNIVER_SHEET'])[_0x391e8d(0x192)](_0x5d7e83=>{const _0x5cdf10=_0x391e8d;this[_0x5cdf10(0x308)](_0x5d7e83[_0x5cdf10(0x4ed)]());}));}[_0x55e150(0xca)](){const _0x3c77d7=_0x55e150;this[_0x3c77d7(0x3a9)][_0x3c77d7(0x21c)](!0x0);}['beginRuntime'](_0x5c6168,_0x405ce7){const _0x1d13aa=_0x55e150;this[_0x1d13aa(0x21a)][_0x1d13aa(0x187)](_0x5c6168,_0x405ce7),this[_0x1d13aa(0x140)](_0x5c6168,'initializing');}[_0x55e150(0x464)](_0x380a3){const _0x2644cc=_0x55e150;return this[_0x2644cc(0x21a)][_0x2644cc(0x97)](_0x380a3);}['getRuntimeState'](_0x46c8ae){const _0x50769b=_0x55e150;return this['_runtimeStates'][_0x50769b(0x97)](_0x46c8ae);}['setRuntimeState'](_0x3c2786,_0x4a8768){const _0x4ea8d4=_0x55e150;this[_0x4ea8d4(0x13a)][_0x4ea8d4(0x187)](_0x3c2786,_0x4a8768),this[_0x4ea8d4(0x4d3)][_0x4ea8d4(0x21c)]({'unitId':_0x3c2786,'state':_0x4a8768});}[_0x55e150(0x4d5)](_0x4feec8,_0x32fa68){const _0x7fc13b=_0x55e150;var _0x555eeb;return((_0x555eeb=this[_0x7fc13b(0x2f4)][_0x7fc13b(0x23f)]('sheets-pivot.config'))==null?void 0x0:_0x555eeb[_0x7fc13b(0x37c)])!==!0x0||_0x32fa68!==void 0x0&&_0x32fa68===this[_0x7fc13b(0x21a)][_0x7fc13b(0x97)](_0x4feec8);}['updateDerivedConfig'](_0x4ad07a,_0x2294f3,_0x51bb29,_0x9e19b1,_0x514e79){const _0x53bb61=_0x55e150;var _0x587cf3;if(((_0x587cf3=this[_0x53bb61(0x2f4)][_0x53bb61(0x23f)](_0x53bb61(0x422)))==null?void 0x0:_0x587cf3['notExecuteFormula'])!==!0x0)return this[_0x53bb61(0x355)](_0x4ad07a,_0x2294f3,_0x51bb29,_0x9e19b1),!0x0;let _0x45c1e3=this['getPivotTableConfig'](_0x4ad07a,_0x2294f3,_0x51bb29);if(!_0x9e19b1)return!_0x45c1e3;let _0x166245=this[_0x53bb61(0x517)](_0x9e19b1[_0x53bb61(0x1f5)][_0x53bb61(0xa0)],_0x51bb29);if(_0x514e79&&(!_0x166245||!_0x36c16d(_0x21cb45(_0x166245),_0x21cb45(_0x514e79)))||!_0x45c1e3||!_0x36c16d(this['_getCalculationConfig'](_0x45c1e3,_0x9e19b1),this[_0x53bb61(0x224)](_0x9e19b1,_0x45c1e3)))return!0x1;let _0x150bce=_0x3f8283[_0x53bb61(0xe7)][_0x53bb61(0x1e3)](_0x45c1e3);for(let _0x1ff7b6 of[_0x150bce[_0x53bb61(0x4ac)][_0x53bb61(0x3d4)],_0x150bce[_0x53bb61(0x4ac)][_0x53bb61(0xa5)]])for(let _0x2fdcdc of Object[_0x53bb61(0x20b)](_0x1ff7b6)){let _0x116371=_0x9e19b1[_0x53bb61(0x4ac)][_0x53bb61(0x3d4)][_0x2fdcdc['id']]??_0x9e19b1['fieldsConfig'][_0x53bb61(0xa5)][_0x2fdcdc['id']];_0x2fdcdc[_0x53bb61(0x30b)]===this[_0x53bb61(0x27b)](_0x2fdcdc)&&(_0x2fdcdc['displayName']=_0x116371[_0x53bb61(0x30b)]),_0x2fdcdc[_0x53bb61(0x538)]=_0x116371[_0x53bb61(0x538)];}return _0x150bce['isEmpty']=_0x9e19b1[_0x53bb61(0x360)],this['updateConfigCache'](_0x4ad07a,_0x2294f3,_0x51bb29,_0x150bce),!0x0;}[_0x55e150(0x27b)](_0x41e855){const _0x384820=_0x55e150;return _0x384820(0x182)in _0x41e855?_0x10f255[_0x384820(0x152)](this,_0x41e855[_0x384820(0x538)],_0x41e855[_0x384820(0x182)]):_0x41e855[_0x384820(0x538)];}[_0x55e150(0x224)](_0x115a59,_0x40139c){const _0x680b8b=_0x55e150;let {isEmpty:_0x195810,..._0x591b86}=_0x3f8283[_0x680b8b(0xe7)]['deepClone'](_0x115a59);for(let _0x25ea68 of[_0x591b86[_0x680b8b(0x4ac)][_0x680b8b(0x3d4)],_0x591b86[_0x680b8b(0x4ac)]['measure']])for(let _0x979b73 of Object[_0x680b8b(0x20b)](_0x25ea68)){let _0x23d357=_0x40139c[_0x680b8b(0x4ac)]['dimension'][_0x979b73['id']]??_0x40139c[_0x680b8b(0x4ac)][_0x680b8b(0xa5)][_0x979b73['id']];_0x23d357&&(_0x979b73[_0x680b8b(0x30b)]===_0x23d357[_0x680b8b(0x30b)]||_0x979b73['displayName']===this[_0x680b8b(0x27b)](_0x979b73)&&_0x23d357[_0x680b8b(0x30b)]===this[_0x680b8b(0x27b)](_0x23d357))&&(_0x979b73[_0x680b8b(0x30b)]=''),_0x979b73[_0x680b8b(0x538)]='';}return _0x591b86;}['updateDerivedMetadata'](_0x1a92a4,_0x70f689,_0xe72bc2){const _0x65bc1b=_0x55e150;this[_0x65bc1b(0x43b)](()=>{const _0x189338=_0x65bc1b;var _0x1c6267;if(((_0x1c6267=this['_configService']['getConfig'](_0x189338(0x422)))==null?void 0x0:_0x1c6267['notExecuteFormula'])!==!0x0){_0x70f689&&this[_0x189338(0x4a8)](_0x1a92a4,_0x70f689),_0xe72bc2&&this['updateCacheConfig'](_0x1a92a4,_0xe72bc2);return;}let _0x30e103=this[_0x189338(0x456)][_0x189338(0x97)](_0x1a92a4);if(_0x30e103&&_0x70f689){let _0x50fe5d=_0x3f8283['Tools']['deepClone'](_0x30e103),_0x19402e=[];for(let [_0x1df75f,_0x4b35fb]of Object[_0x189338(0x4f5)](_0x30e103[_0x189338(0x10d)])){let _0x296ac7=_0x70f689[_0x189338(0x10d)][_0x1df75f];if(!_0x296ac7||!_0x36c16d(_0x21cb45(_0x4b35fb),_0x21cb45(_0x296ac7)))continue;let _0x29c020=_0x50fe5d[_0x189338(0x10d)][_0x1df75f];_0x29c020[_0x189338(0x25b)]=_0x296ac7['dataRecordCount'],_0x29c020[_0x189338(0x25c)]=_0x3f8283[_0x189338(0xe7)][_0x189338(0x1e3)](_0x296ac7[_0x189338(0x25c)]);for(let [_0x20cff4,_0x1a9c3f]of Object[_0x189338(0x4f5)](_0x29c020['fields']))_0x1f8e26(_0x1a9c3f,_0x296ac7[_0x189338(0x4e0)][_0x20cff4]),_0x50fe5d[_0x189338(0x16b)][_0x20cff4]=_0x3f8283[_0x189338(0xe7)][_0x189338(0x1e3)](_0x1a9c3f);_0x29c020[_0x189338(0x1da)][_0x189338(0x1bd)]((_0x238639,_0xc40b48)=>_0x1f8e26(_0x238639,_0x296ac7[_0x189338(0x1da)][_0xc40b48])),_0x19402e[_0x189338(0xc7)](_0x1df75f);}this['_collectionConfigModel'][_0x189338(0x187)](_0x1a92a4,_0x50fe5d),this[_0x189338(0x121)](_0x1a92a4,_0x19402e);}if(this['getRuntimeState'](_0x1a92a4)===_0x189338(0x326)&&_0xe72bc2){let _0x57eda4={...this[_0x189338(0x14d)][_0x189338(0x97)](_0x1a92a4)};for(let [_0x599fb0,_0x470013]of Object[_0x189338(0x4f5)](_0xe72bc2))!_0x57eda4[_0x599fb0]&&_0x470013[_0x189338(0x2d9)]&&(_0x57eda4[_0x599fb0]=_0x3f8283['Tools']['deepClone'](_0x470013));this[_0x189338(0x14d)][_0x189338(0x187)](_0x1a92a4,_0x57eda4);}});}['_initLocale'](){const _0x41912a=_0x55e150;this[_0x41912a(0x213)]((0x0,_0x282fb4[_0x41912a(0x2a1)])([this[_0x41912a(0x47d)]['currentLocale$'],this['_localeService'][_0x41912a(0x3b1)][_0x41912a(0x329)]((0x0,_0x282fb4[_0x41912a(0x539)])())])[_0x41912a(0x192)](([,_0x45a290])=>{const _0xd33613=_0x41912a;let _0x4112df=_0x405d02(this['_injector'],_0x5e6313,'',{});this[_0xd33613(0x4ff)]=_0x4112df,this[_0xd33613(0x466)]['executeCommand'](_0x215407['id'],{'textInfo':_0x4112df,'direction':_0x45a290},{'onlyLocal':!0x0});}));}[_0x55e150(0x4b2)](){const _0xa6dfc2=_0x55e150;return this[_0xa6dfc2(0x4ff)];}[_0x55e150(0x2ae)](_0xe94203,_0x399d32,_0x3bbed2,_0x1d55e9,_0x5a94c1){const _0x51c246=_0x55e150;this[_0x51c246(0x471)](_0xe94203,_0x399d32,_0x3bbed2,_0x1d55e9),this[_0x51c246(0x2d1)](_0xe94203,_0x399d32,_0x3bbed2,_0x5a94c1);}[_0x55e150(0x3a8)](_0x8b3d6b,_0x71ee92,_0xe247bf){const _0x2421b3=_0x55e150;var _0x3e514d;let _0x4ddd7f=(_0x3e514d=this[_0x2421b3(0x3da)][_0x2421b3(0x97)](_0x8b3d6b))==null?void 0x0:_0x3e514d[_0x2421b3(0x97)](_0x71ee92);if(_0x4ddd7f)return _0x4ddd7f[_0x2421b3(0x97)](_0xe247bf);}[_0x55e150(0x12e)](_0x25b5cf,_0x4b6b5a){const _0x5b8549=_0x55e150;let _0x596ea7=this['_model'][_0x5b8549(0x97)](_0x25b5cf);if(_0x596ea7){for(let [_0x5f244,_0x1ca964]of _0x596ea7[_0x5b8549(0x4f5)]())for(let [_0x51608d,_0x1e279d]of _0x1ca964[_0x5b8549(0x4f5)]())if(_0x51608d===_0x4b6b5a)return _0x1e279d[_0x5b8549(0xf0)];}}[_0x55e150(0x31c)](_0x1fd7ca,_0x1d8863,_0x14cc2c){const _0x146e48=_0x55e150;let _0x17e11f=this[_0x146e48(0x3a8)](_0x1fd7ca,_0x1d8863,_0x14cc2c);return _0x17e11f==null?void 0x0:_0x17e11f['targetCellInfo'];}[_0x55e150(0x1ec)](_0x5555da,_0x3a0ead){const _0x3aa1ac=_0x55e150;var _0x25f32b;return(_0x25f32b=this[_0x3aa1ac(0x3da)]['get'](_0x5555da))==null?void 0x0:_0x25f32b[_0x3aa1ac(0x97)](_0x3a0ead);}[_0x55e150(0x355)](_0x234ae2,_0x55ae75,_0x31b7ab,_0x51cbe6){const _0x4bf659=_0x55e150;let _0x5f5915=this['_ensurePivotMap'](_0x234ae2,_0x55ae75);_0x51cbe6?(_0xf46f7d(_0x51cbe6),_0x5f5915[_0x4bf659(0x187)](_0x31b7ab,_0x51cbe6)):_0x5f5915['delete'](_0x31b7ab),this[_0x4bf659(0x46e)]({'unitId':_0x234ae2,'subUnitId':_0x55ae75,'pivotTableId':_0x31b7ab,'pivotTableConfig':_0x51cbe6});}[_0x55e150(0x201)](_0x13c9e2){this['ensureNotDisposed']();let _0x45ed4c=_0x13c9e2['map'](({config:_0x2ad915,..._0x1ab1bf})=>{const _0x24e4ab=_0x274d;let _0x67ca2b=_0xf46f7d(_0x3f8283[_0x24e4ab(0xe7)][_0x24e4ab(0x1e3)](_0x2ad915)),_0x3ce824=_0x67ca2b[_0x24e4ab(0x4ac)];return _0x67ca2b[_0x24e4ab(0x360)]=[_0x3ce824['rowFields'],_0x3ce824[_0x24e4ab(0x4bf)],_0x3ce824[_0x24e4ab(0xee)],_0x3ce824[_0x24e4ab(0x241)]][_0x24e4ab(0x410)](_0x3c5876=>_0x3c5876[_0x24e4ab(0x337)]===0x0),{..._0x1ab1bf,'pivotTableConfig':_0x67ca2b};}),_0x3f0f5b=!0x1,_0x18c34e=!0x1;return{'commit':()=>{const _0x4274be=_0x274d;this[_0x4274be(0x38c)](),_0x3f0f5b||(_0x3f0f5b=!0x0,_0x45ed4c[_0x4274be(0x1bd)](({unitId:_0x13267a,subUnitId:_0x1154ec,pivotTableId:_0x1b3465,pivotTableConfig:_0x2981b5})=>{const _0x52e88a=_0x4274be;this[_0x52e88a(0x2b7)](_0x13267a,_0x1154ec)[_0x52e88a(0x187)](_0x1b3465,_0x2981b5);}));},'publish':()=>{const _0x487f70=_0x274d;_0x3f0f5b&&!_0x18c34e&&!this[_0x487f70(0x332)]&&(_0x18c34e=!0x0,_0x45ed4c[_0x487f70(0x1bd)](_0x438bc6=>this[_0x487f70(0x46e)](_0x438bc6)));}};}[_0x55e150(0x14b)](_0x27a040,_0x134c62){const _0x1d7000=_0x55e150;let _0x2b88d8=this[_0x1d7000(0x3a8)](_0x27a040[_0x1d7000(0xa0)],_0x27a040[_0x1d7000(0x2d0)],_0x27a040[_0x1d7000(0x173)]);if(!_0x2b88d8)return!0x1;let _0x31ebcc=_0x3f8283['Tools'][_0x1d7000(0x1e3)](_0x2b88d8);_0x134c62(_0x31ebcc);let _0x2ad84e=this['prepareConfigBatch']([{..._0x27a040,'config':_0x31ebcc}]);return _0x2ad84e[_0x1d7000(0x225)](),_0x2ad84e['publish'](),!0x0;}[_0x55e150(0x517)](_0x14f446,_0x3ffdbb){const _0x13a253=_0x55e150;var _0x1f3883;return(_0x1f3883=this[_0x13a253(0x456)][_0x13a253(0x97)](_0x14f446))==null?void 0x0:_0x1f3883['collections'][_0x3ffdbb];}[_0x55e150(0x4a8)](_0x127e1c,_0x275e32){const _0x517289=_0x55e150;let _0x12dc3f=this[_0x517289(0x456)]['get'](_0x127e1c);this['_collectionConfigModel'][_0x517289(0x187)](_0x127e1c,_0x275e32),this[_0x517289(0x121)](_0x127e1c,[...Object[_0x517289(0x1b3)]((_0x12dc3f==null?void 0x0:_0x12dc3f[_0x517289(0x10d)])??{}),...Object['keys'](_0x275e32['collections'])]);}['updateCacheConfig'](_0x803de,_0x5b5b59){const _0x3b9752=_0x55e150;this[_0x3b9752(0x14d)]['set'](_0x803de,_0x3f8283[_0x3b9752(0xe7)]['deepClone'](_0x5b5b59));}[_0x55e150(0x48a)](_0x180863,_0xc5e646){const _0x32b6ad=_0x55e150;if(this[_0x32b6ad(0x332)])return;let _0x522880=new Set(_0xc5e646);_0x522880[_0x32b6ad(0xef)]?this[_0x32b6ad(0x534)][_0x32b6ad(0x187)](_0x180863,_0x522880):this[_0x32b6ad(0x534)]['delete'](_0x180863);let _0x2d069d=this[_0x32b6ad(0x14d)][_0x32b6ad(0x97)](_0x180863)??{};for(let [_0x541e0a,_0x2119ce]of Object[_0x32b6ad(0x4f5)](_0x2d069d))if(_0x522880[_0x32b6ad(0x16c)](_0x541e0a))_0x2119ce[_0x32b6ad(0x2d9)]=!0x0;else{var _0x423932;let _0x3dcead=_0x2119ce[_0x32b6ad(0x2d9)];delete _0x2119ce['retainedSource'];let _0x12a991=Object[_0x32b6ad(0x20b)](((_0x423932=this[_0x32b6ad(0x456)][_0x32b6ad(0x97)](_0x180863))==null?void 0x0:_0x423932[_0x32b6ad(0x10d)])??{})[_0x32b6ad(0xde)](_0x333b17=>{const _0x381af1=_0x32b6ad;var _0x19ddad;let _0x1e1b51=_0x333b17[_0x381af1(0x322)],_0x4ca5c4=(_0x19ddad=this['_univerInstanceService'][_0x381af1(0x34e)](_0x180863))==null?void 0x0:_0x19ddad[_0x381af1(0x176)](_0x1e1b51==null?void 0x0:_0x1e1b51['subUnitId']);return _0x4ca5c4&&_0x36c16d({..._0x1e1b51,'range':_0x3fd02b(_0x1e1b51[_0x381af1(0x322)],_0x4ca5c4)},_0x2119ce[_0x381af1(0x1f5)]);});_0x3dcead&&!_0x12a991&&delete _0x2d069d[_0x541e0a];}}['updateCollectionMetadata'](_0x10f82c,_0x140bd8,_0x406278,_0x277f53){const _0x298d4b=_0x55e150;var _0x4ab16d;let _0x5e2ba9=this[_0x298d4b(0x456)]['get'](_0x10f82c),_0x272881={..._0x5e2ba9==null?void 0x0:_0x5e2ba9[_0x298d4b(0x10d)],[_0x140bd8]:_0x3f8283[_0x298d4b(0xe7)]['deepClone'](_0x406278)},_0xa72efd={..._0x5e2ba9==null?void 0x0:_0x5e2ba9[_0x298d4b(0x16b)],..._0x3f8283[_0x298d4b(0xe7)][_0x298d4b(0x1e3)](_0x406278[_0x298d4b(0x4e0)])};for(let _0x4026bd of Object['keys']((_0x5e2ba9==null||(_0x4ab16d=_0x5e2ba9[_0x298d4b(0x10d)][_0x140bd8])==null?void 0x0:_0x4ab16d['fields'])??{}))Object[_0x298d4b(0x20b)](_0x272881)[_0x298d4b(0xde)](({fields:_0x4c17bc,customFields:_0x492d5b})=>Object[_0x298d4b(0x34c)][_0x298d4b(0x413)]['call'](_0x4c17bc??{},_0x4026bd)||(_0x492d5b==null?void 0x0:_0x492d5b[_0x298d4b(0xde)](({id:_0x577777})=>_0x577777===_0x4026bd)))||delete _0xa72efd[_0x4026bd];if(this[_0x298d4b(0x456)][_0x298d4b(0x187)](_0x10f82c,{'collections':_0x272881,'dataFields':_0xa72efd,'dataRanges':{..._0x5e2ba9==null?void 0x0:_0x5e2ba9[_0x298d4b(0x3c2)]}}),_0x277f53){var _0xd5174b,_0x5e9579;let _0x31b7d2=_0x277f53[_0x298d4b(0x1f5)],_0x4f3ea1=(_0xd5174b=this[_0x298d4b(0x42e)][_0x298d4b(0x34e)](_0x31b7d2['unitId']))==null?void 0x0:_0xd5174b[_0x298d4b(0x176)](_0x31b7d2[_0x298d4b(0x2d0)]),_0x5409be=_0x4f3ea1?{..._0x277f53,'sourceRangeInfo':{..._0x31b7d2,'range':_0x3fd02b(_0x31b7d2[_0x298d4b(0x322)],_0x4f3ea1)}}:_0x277f53;this[_0x298d4b(0x14d)][_0x298d4b(0x187)](_0x10f82c,{...this[_0x298d4b(0x14d)][_0x298d4b(0x97)](_0x10f82c),[_0x277f53[_0x298d4b(0x3ae)]]:{..._0x3f8283[_0x298d4b(0xe7)][_0x298d4b(0x1e3)](_0x5409be),...(_0x5e9579=this['_retainedSources'][_0x298d4b(0x97)](_0x10f82c))!=null&&_0x5e9579['has'](_0x277f53[_0x298d4b(0x3ae)])?{'retainedSource':!0x0}:{}}});}this[_0x298d4b(0x121)](_0x10f82c,[_0x140bd8]);}[_0x55e150(0x109)](_0xf70e63,_0x44b7db){const _0x3df85c=_0x55e150;let _0x3fe319=this[_0x3df85c(0x456)][_0x3df85c(0x97)](_0xf70e63);if(_0x3fe319){delete _0x3fe319[_0x3df85c(0x10d)][_0x44b7db];let _0x370250=this[_0x3df85c(0x14d)]['get'](_0xf70e63),_0x5aed99=new Set();for(let _0xa16986 of this[_0x3df85c(0x3da)][_0x3df85c(0x20b)]())for(let _0x63ecf1 of _0xa16986['values']())for(let _0x565360 of _0x63ecf1['values']())_0x565360[_0x3df85c(0x3ae)]&&_0x565360['sourceRangeInfo'][_0x3df85c(0xa0)]===_0xf70e63&&_0x5aed99[_0x3df85c(0xe9)](_0x565360[_0x3df85c(0x3ae)]);for(let [_0x334fdd,_0x5c3b67]of Object[_0x3df85c(0x4f5)](_0x370250??{}))!_0x5c3b67[_0x3df85c(0x2d9)]&&!_0x5aed99[_0x3df85c(0x16c)](_0x334fdd)&&delete _0x370250[_0x334fdd];this[_0x3df85c(0x121)](_0xf70e63,[_0x44b7db]);}}[_0x55e150(0x2b7)](_0x8308e1,_0x38bd89){const _0x13b202=_0x55e150;let _0x56838a=this[_0x13b202(0x3da)]['get'](_0x8308e1);_0x56838a||(_0x56838a=new Map(),this[_0x13b202(0x3da)][_0x13b202(0x187)](_0x8308e1,_0x56838a));let _0x56b757=_0x56838a[_0x13b202(0x97)](_0x38bd89);return _0x56b757||(_0x56b757=new Map(),_0x56838a['set'](_0x38bd89,_0x56b757)),_0x56b757;}[_0x55e150(0x122)](_0x38e50c,_0x9ec040){const _0x149002=_0x55e150;let _0x2388d3=this[_0x149002(0x473)][_0x149002(0x97)](_0x38e50c);_0x2388d3||(_0x2388d3=new Map(),this[_0x149002(0x473)][_0x149002(0x187)](_0x38e50c,_0x2388d3));let _0x1f7f7e=_0x2388d3[_0x149002(0x97)](_0x9ec040);return _0x1f7f7e||(_0x1f7f7e=new Map(),_0x2388d3[_0x149002(0x187)](_0x9ec040,_0x1f7f7e)),_0x1f7f7e;}[_0x55e150(0xa1)](_0x5e9c67,_0x4a75ac){const _0x3497dc=_0x55e150;let _0x348fe4=this['_pivotTableMatrixInfo'][_0x3497dc(0x97)](_0x5e9c67);_0x348fe4||(_0x348fe4=new Map(),this[_0x3497dc(0x452)][_0x3497dc(0x187)](_0x5e9c67,_0x348fe4));let _0x2f1919=_0x348fe4[_0x3497dc(0x97)](_0x4a75ac);return _0x2f1919||(_0x2f1919=new Map(),_0x348fe4['set'](_0x4a75ac,_0x2f1919)),_0x2f1919;}[_0x55e150(0x2d1)](_0xd691f4,_0x1ea4ff,_0x122a44,_0x47c662){const _0x21d9a3=_0x55e150;var _0x4bc8b1;let _0x260521=this['_ensurePivotTableRangeInfo'](_0xd691f4,_0x1ea4ff),_0x220a20=(_0x4bc8b1=_0x260521[_0x21d9a3(0x97)](_0x122a44))==null?void 0x0:_0x4bc8b1['oldRangeInfo'];_0x260521[_0x21d9a3(0x187)](_0x122a44,{'oldRangeInfo':_0x220a20,'rangeInfo':_0x47c662});}[_0x55e150(0x471)](_0x3f92ac,_0x4316ca,_0x22d370,_0x1f72cd){const _0x218f56=_0x55e150;var _0x544a83;let _0x67945e=this[_0x218f56(0xa1)](_0x3f92ac,_0x4316ca),_0x1a9cea=(_0x544a83=_0x67945e['get'](_0x22d370))==null?void 0x0:_0x544a83[_0x218f56(0x9e)];_0x67945e[_0x218f56(0x187)](_0x22d370,{'oldMatrix':_0x1a9cea,'matrix':_0x1f72cd});}['getPivotTableRangeInfo'](_0x51144a,_0x55e6be,_0x14f2ff){const _0x1900ff=_0x55e150;var _0x1b095f;return(_0x1b095f=this[_0x1900ff(0x473)][_0x1900ff(0x97)](_0x51144a))==null||(_0x1b095f=_0x1b095f[_0x1900ff(0x97)](_0x55e6be))==null?void 0x0:_0x1b095f[_0x1900ff(0x97)](_0x14f2ff);}['getPivotTableMatrixInfo'](_0x3cf858,_0x3ac892,_0x5f5c64){const _0x36d218=_0x55e150;var _0x21bc41;return(_0x21bc41=this[_0x36d218(0x452)]['get'](_0x3cf858))==null||(_0x21bc41=_0x21bc41['get'](_0x3ac892))==null?void 0x0:_0x21bc41[_0x36d218(0x97)](_0x5f5c64);}[_0x55e150(0x308)](_0xe0531c){const _0x2f4d53=_0x55e150;var _0x3f04db,_0x2e4f57;(_0x3f04db=this[_0x2f4d53(0x417)])==null||_0x3f04db[_0x2f4d53(0x10d)][_0x2f4d53(0xe0)](_0xe0531c),(_0x2e4f57=this[_0x2f4d53(0x417)])==null||_0x2e4f57[_0x2f4d53(0x535)][_0x2f4d53(0x1bd)]((_0x546a4d,_0x2adb9b)=>{const _0x316e85=_0x2f4d53;if(_0x546a4d[_0x316e85(0xa0)]===_0xe0531c){var _0x2c3f89;(_0x2c3f89=this[_0x316e85(0x417)])==null||_0x2c3f89[_0x316e85(0x535)][_0x316e85(0xe0)](_0x2adb9b);}}),this['_retainedSources'][_0x2f4d53(0xe0)](_0xe0531c),this[_0x2f4d53(0x21a)]['delete'](_0xe0531c),this[_0x2f4d53(0x13a)][_0x2f4d53(0xe0)](_0xe0531c),this[_0x2f4d53(0x473)][_0x2f4d53(0xe0)](_0xe0531c),this['_pivotTableMatrixInfo'][_0x2f4d53(0xe0)](_0xe0531c),this['_model'][_0x2f4d53(0xe0)](_0xe0531c),this[_0x2f4d53(0x456)][_0x2f4d53(0xe0)](_0xe0531c),this[_0x2f4d53(0x14d)][_0x2f4d53(0xe0)](_0xe0531c);}[_0x55e150(0x1b4)](_0x332817){const _0x5e15a0=_0x55e150;let _0x1ea8a7={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};this[_0x5e15a0(0x456)][_0x5e15a0(0x97)](_0x332817)&&(_0x1ea8a7[_0x5e15a0(0x238)][_0x332817]=this['_collectionConfigModel'][_0x5e15a0(0x97)](_0x332817));let _0x19e557=this[_0x5e15a0(0x14d)]['get'](_0x332817);if(_0x19e557&&(_0x1ea8a7[_0x5e15a0(0x1fb)]={[_0x332817]:_0x3f8283[_0x5e15a0(0xe7)][_0x5e15a0(0x1e3)](_0x19e557)}),this[_0x5e15a0(0x3da)][_0x5e15a0(0x97)](_0x332817)){_0x1ea8a7['pivotTableConfigs'][_0x332817]={};let _0x530f85=this['_model']['get'](_0x332817);_0x530f85!=null&&_0x530f85[_0x5e15a0(0xef)]&&[..._0x530f85[_0x5e15a0(0x1b3)]()]['forEach'](_0x1f5384=>{const _0x2672d5=_0x5e15a0;let _0x2ef470=_0x530f85['get'](_0x1f5384);_0x2ef470!=null&&_0x2ef470[_0x2672d5(0xef)]&&(_0x1ea8a7[_0x2672d5(0x200)][_0x332817][_0x1f5384]={},[..._0x2ef470[_0x2672d5(0x1b3)]()]['forEach'](_0x48c7b9=>{const _0x4b9a61=_0x2672d5;let _0x18b107=_0x2ef470[_0x4b9a61(0x97)](_0x48c7b9);_0x18b107&&(_0x1ea8a7[_0x4b9a61(0x200)][_0x332817][_0x1f5384][_0x48c7b9]=_0x18b107);}));});}return _0x1ea8a7;}['_initSnapshot'](){const _0x1262bb=_0x55e150;this[_0x1262bb(0x213)](this['_resourceManagerService']['registerPluginResource']({'toJson':_0x44bae3=>JSON[_0x1262bb(0x4c4)](this[_0x1262bb(0x1b4)](_0x44bae3)),'parseJson':_0x168fa1=>{const _0x33b634=_0x1262bb;try{return JSON[_0x33b634(0x191)](_0x168fa1);}catch{return;}},'businesses':[_0x3f8283[_0x1262bb(0x2f9)]['UNIVER_SHEET']],'pluginName':_0x1959c0,'onLoad':(_0x394fe6,_0x8bd3d5)=>{const _0x4b941a=_0x1262bb;var _0x1d4fbf;if(!(_0x8bd3d5!=null&&_0x8bd3d5[_0x4b941a(0x238)])||!_0x8bd3d5['pivotTableConfigs'])return;let _0xb39969=_0x8bd3d5[_0x4b941a(0x238)][_0x394fe6];_0xb39969&&this['_collectionConfigModel']['set'](_0x394fe6,_0x3f8283[_0x4b941a(0xe7)]['deepClone'](_0xb39969));let _0x349c1a=(_0x1d4fbf=_0x8bd3d5[_0x4b941a(0x1fb)])==null?void 0x0:_0x1d4fbf[_0x394fe6];if(_0x349c1a){this[_0x4b941a(0x14d)][_0x4b941a(0x187)](_0x394fe6,_0x3f8283[_0x4b941a(0xe7)][_0x4b941a(0x1e3)](_0x349c1a));let _0x48ad2c=this['_retainedSources']['get'](_0x394fe6);_0x48ad2c&&this[_0x4b941a(0x48a)](_0x394fe6,Array[_0x4b941a(0x91)](_0x48ad2c));}for(let [_0x2c1e76,_0xbe4bea]of Object[_0x4b941a(0x4f5)](_0x8bd3d5[_0x4b941a(0x200)][_0x394fe6]??{}))for(let [_0xc19965,_0x2b083c]of Object[_0x4b941a(0x4f5)](_0xbe4bea))this[_0x4b941a(0x2b7)](_0x394fe6,_0x2c1e76)[_0x4b941a(0x187)](_0xc19965,_0xf46f7d(_0x3f8283[_0x4b941a(0xe7)][_0x4b941a(0x1e3)](_0x2b083c)));},'onUnLoad':_0x19b7b8=>{const _0x3011d3=_0x1262bb;this[_0x3011d3(0x308)](_0x19b7b8);}}));}};_0x3de398=_0x174b33([_0x181d02(0x0,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x3f8283['Injector'])),_0x181d02(0x1,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x3f8283[_0x55e150(0x3cb)])),_0x181d02(0x2,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x3f8283['IUniverInstanceService'])),_0x181d02(0x3,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x3f8283[_0x55e150(0x41c)])),_0x181d02(0x4,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x3f8283[_0x55e150(0x2e6)])),_0x181d02(0x5,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x3f8283[_0x55e150(0x232)]))],_0x3de398);function _0x36c16d(_0x11c7fd,_0x2c9230){const _0x447b87=_0x55e150;return _0x3f8283[_0x447b87(0xe7)][_0x447b87(0x2d4)](JSON['parse'](JSON['stringify'](_0x11c7fd)),JSON[_0x447b87(0x191)](JSON[_0x447b87(0x4c4)](_0x2c9230)));}function _0x21cb45(_0x5ece03){const _0x342fdd=_0x55e150;let _0x3ff9bb=_0xc71460=>{const _0xb0e914=_0x274d;let {hexCode:_0xaeef8b,fieldDataType:_0x57d4da,name:_0x1eb38d,..._0x1409cc}=_0xc71460;return _0xc71460[_0xb0e914(0x31e)]===_0x4078f7[_0xb0e914(0x52e)]['defaultNormalField']?_0x1409cc:{..._0x1409cc,'name':_0x1eb38d};};return{'range':_0x5ece03[_0x342fdd(0x322)],'fieldIds':_0x5ece03[_0x342fdd(0x1f3)],'customFields':_0x5ece03[_0x342fdd(0x1da)][_0x342fdd(0x1e6)](_0x3ff9bb),'fields':Object['fromEntries'](Object['entries'](_0x5ece03['fields'])[_0x342fdd(0x1e6)](([_0x5376f3,_0x23c56b])=>[_0x5376f3,_0x3ff9bb(_0x23c56b)]))};}function _0x1f8e26(_0x4b59c5,_0x450eec){const _0x130bd3=_0x55e150;_0x4b59c5[_0x130bd3(0x20e)]=_0x450eec[_0x130bd3(0x20e)],_0x4b59c5['hexCode']=_0x450eec[_0x130bd3(0x211)],_0x4b59c5[_0x130bd3(0x2ee)]=_0x450eec[_0x130bd3(0x2ee)];}function _0xf46f7d(_0x556e61){const _0x454d20=_0x55e150;return _0x556e61[_0x454d20(0x20e)]===void 0x0&&(_0x556e61[_0x454d20(0x20e)]=''),_0x556e61;}function _0x5039d9(_0x309737){const _0x5b862c=_0x55e150;let _0x291d4e=_0x309737[_0x5b862c(0x499)]===void 0x0?void 0x0:(0x0,_0x454447[_0x5b862c(0x3e4)])(_0x309737['selection']),_0x4e5752=_0x309737[_0x5b862c(0x189)]===void 0x0?void 0x0:(0x0,_0x454447['compileTimelineRange'])(_0x309737['dateRange']);return _0x549388=>{const _0x208fea=_0x5b862c;let _0xc1e881=(0x0,_0x4078f7[_0x208fea(0xfa)])(_0x549388);return((_0x291d4e==null?void 0x0:_0x291d4e(_0xc1e881))??!0x0)&&((_0x4e5752==null?void 0x0:_0x4e5752(_0xc1e881))??!0x0);};}function _0x3a2c39(_0x55a88b,_0x44ae9c){const _0x4d4e1e=_0x55e150;let _0x5a70c5=(0x0,_0x454447[_0x4d4e1e(0x3e4)])(_0x44ae9c[_0x4d4e1e(0x499)]??{'mode':_0x3f8283['FilterSelectionMode'][_0x4d4e1e(0x3fa)]}),_0x3a8a31=[],_0x8d6888=[];for(let _0x51e186 of _0x55a88b['items']){let _0xdff0f9=!0x1,_0x15a88e=!0x1;for(let _0x1ef1e2 of _0x55a88b['getIndexesByKey'](_0x51e186))if(_0x5a70c5((0x0,_0x4078f7[_0x4d4e1e(0xfa)])(_0x55a88b[_0x4d4e1e(0x424)](_0x1ef1e2)))?_0xdff0f9=!0x0:_0x15a88e=!0x0,_0xdff0f9&&_0x15a88e)break;_0xdff0f9&&_0x15a88e?_0x8d6888[_0x4d4e1e(0xc7)](_0x51e186):_0xdff0f9&&_0x3a8a31[_0x4d4e1e(0xc7)](_0x51e186);}return{'checkedItems':_0x3a8a31,'partialItems':_0x8d6888};}function _0x2bf89f(_0x290981,_0x50a692,_0x566e88,_0x22bfe5,_0xaa4182){const _0x4e16fa=_0x55e150;if(_0xaa4182)return{'mode':_0x3f8283[_0x4e16fa(0x2bb)][_0x4e16fa(0x3fa)]};let _0xb8d0f8=_0x380379(_0x290981,_0x50a692),_0x3089f5=_0x380379(_0x290981,_0x566e88);if(Array['from'](_0x3089f5)[_0x4e16fa(0xde)](_0x3c97d8=>_0xb8d0f8['has'](_0x3c97d8)))throw TypeError(_0x4e16fa(0x2b1));let _0x2f846b=_0x3089f5['has'](_0x4078f7[_0x4e16fa(0x23a)][_0x4e16fa(0x1dc)]),_0x57e9db=_0xb8d0f8['has'](_0x4078f7['GlobalConfig'][_0x4e16fa(0x1dc)])?_0x3f8283['FilterSelectionMode'][_0x4e16fa(0xa9)]:_0x3f8283[_0x4e16fa(0x2bb)]['Include'];_0x2f846b&&_0x22bfe5[_0x4e16fa(0x3a3)]!==_0x3f8283['FilterSelectionMode'][_0x4e16fa(0x3fa)]&&(_0x57e9db=_0x22bfe5[_0x4e16fa(0x3a3)]);let _0x21ee4f=(0x0,_0x454447['compileSlicerSelection'])(_0x22bfe5),_0x38b6e1=new Map(),_0x1b1a74=new Set();for(let _0x4d8951 of _0x290981['items'])for(let _0x7bcae8 of _0x290981[_0x4e16fa(0x403)](_0x4d8951)){let _0xece0a3=(0x0,_0x4078f7[_0x4e16fa(0xfa)])(_0x290981[_0x4e16fa(0x424)](_0x7bcae8)),_0x159d17=(0x0,_0x3f8283[_0x4e16fa(0x4f7)])(_0xece0a3);_0x1b1a74[_0x4e16fa(0xe9)](_0x159d17);let _0x45726c=_0x3089f5['has'](_0x4d8951)?_0x21ee4f(_0xece0a3):_0xb8d0f8[_0x4e16fa(0x16c)](_0x4d8951);(_0x57e9db===_0x3f8283[_0x4e16fa(0x2bb)][_0x4e16fa(0x291)]&&_0x45726c||_0x57e9db===_0x3f8283['FilterSelectionMode']['Exclude']&&!_0x45726c)&&_0x38b6e1['set'](_0x159d17,_0xece0a3);}if(_0x3089f5[_0x4e16fa(0xef)]&&_0x22bfe5[_0x4e16fa(0x3a3)]===_0x57e9db)for(let _0x35b3b5 of _0x22bfe5[_0x4e16fa(0x20b)]){let _0x1d6f42=(0x0,_0x3f8283[_0x4e16fa(0x4f7)])(_0x35b3b5);_0x1b1a74[_0x4e16fa(0x16c)](_0x1d6f42)||_0x38b6e1[_0x4e16fa(0x187)](_0x1d6f42,_0x35b3b5);}return{'mode':_0x57e9db,'values':Array[_0x4e16fa(0x91)](_0x38b6e1[_0x4e16fa(0x20b)]())};}function _0x380379(_0x2b917e,_0x2d7292){const _0x31a675=_0x55e150;let _0x57871d=new Set(_0x2b917e[_0x31a675(0x460)]),_0x3f11f3=new Set();for(let _0x9a6641 of _0x2d7292){if(!_0x57871d['has'](_0x9a6641)||_0x3f11f3[_0x31a675(0x16c)](_0x9a6641))throw TypeError(_0x31a675(0x510));_0x3f11f3[_0x31a675(0xe9)](_0x9a6641);}return _0x3f11f3;}let _0x4cbeb4=_0x379c49=>{const _0x55ac17=_0x55e150;var _0x216113;return((_0x216113=_0x379c49[_0x55ac17(0x3ba)])==null?void 0x0:_0x216113['dataStream'][_0x55ac17(0x27e)](/\r\n$/,''))||'';};function _0xb40343(_0x5f2d54){const _0x40080d=_0x55e150;return _0x5f2d54==null?null:(0x0,_0x4078f7[_0x40080d(0x2be)])(_0x5f2d54)?_0x3f8283[_0x40080d(0x432)][_0x40080d(0xd2)](_0x5f2d54['f'],Number(_0x5f2d54['v'])):(0x0,_0x4078f7[_0x40080d(0x1e2)])(_0x5f2d54)?_0x5f2d54[_0x40080d(0x347)]:String(_0x5f2d54);}var _0x2672ca=class extends _0x4078f7['DataFieldManager']{[_0x55e150(0x101)](_0x722c6d){return _0x5039d9(_0x722c6d);}constructor(_0xc95c9c,_0x58d1f0){const _0x546fda=_0x55e150;super(),_0x418dd6(this,_0x546fda(0x463),{}),_0x418dd6(this,_0x546fda(0x3c1),{}),_0x418dd6(this,_0x546fda(0x1a3),new Map()),_0x418dd6(this,_0x546fda(0x42e),void 0x0),_0x418dd6(this,_0x546fda(0x43a),void 0x0),this[_0x546fda(0x42e)]=_0x58d1f0,this['_host']=_0xc95c9c;}[_0x55e150(0x261)](){const _0x3b2e68=_0x55e150;for(let _0x48ac7a in this[_0x3b2e68(0x16b)]){let _0x356a59=this[_0x3b2e68(0x16b)][_0x48ac7a],_0x377405=_0x356a59[_0x3b2e68(0x2fe)]();this[_0x3b2e68(0x463)][_0x377405]=_0x356a59[_0x3b2e68(0x416)]();}}['retainSourceFields'](_0x2639f8){const _0x22194a=_0x55e150;let _0x2f574c=this[_0x22194a(0x37e)](_0x2639f8)['map'](_0x3a7216=>{const _0x3c6dff=_0x22194a;var _0x2d28c4;return(_0x2d28c4=this['getDataFieldByRangeKey'](_0x3a7216))==null?void 0x0:_0x2d28c4[_0x3c6dff(0x416)]();})[_0x22194a(0x38f)](_0x24a4ed=>_0x24a4ed!==void 0x0);for(let _0x3308bc of _0x2f574c)this['_sourceFieldLeases'][_0x22194a(0x187)](_0x3308bc,(this[_0x22194a(0x1a3)]['get'](_0x3308bc)??0x0)+0x1);let _0x2ea2c2=!0x1;return{'dispose':()=>{const _0x569cdb=_0x22194a;if(!_0x2ea2c2){_0x2ea2c2=!0x0;for(let _0x4aed9f of _0x2f574c){let _0x50a37a=(this[_0x569cdb(0x1a3)][_0x569cdb(0x97)](_0x4aed9f)??0x1)-0x1;_0x50a37a>0x0?this['_sourceFieldLeases']['set'](_0x4aed9f,_0x50a37a):(this[_0x569cdb(0x1a3)]['delete'](_0x4aed9f),this[_0x569cdb(0x16b)][_0x4aed9f]&&!Object[_0x569cdb(0x20b)](this[_0x569cdb(0x10d)])['some'](_0x1dc0d9=>_0x1dc0d9[_0x569cdb(0x28a)]()[_0x569cdb(0xf1)](_0x4aed9f))&&this[_0x569cdb(0x4fa)](_0x4aed9f));}}}};}['getNoUsedDataFieldIds'](_0x29240d){const _0x385868=_0x55e150;return super[_0x385868(0x19c)](_0x29240d)[_0x385868(0x38f)](_0x12cfd=>!this[_0x385868(0x1a3)][_0x385868(0x16c)](_0x12cfd));}['getAutoDisplayNameFunction'](){const _0x25b890=_0x55e150;let _0x25fb52=this[_0x25b890(0x43a)];return _0x10f255[_0x25b890(0x4ca)](_0x25fb52);}['deleteDataField'](_0x3d0840){const _0x434080=_0x55e150;let _0x39033c=this[_0x434080(0x16b)][_0x3d0840][_0x434080(0x215)];delete this[_0x434080(0x16b)][_0x3d0840],delete this[_0x434080(0x463)][_0x39033c];}[_0x55e150(0x384)](_0x269bed){const _0x3deccc=_0x55e150;this['dataFields'][_0x269bed[_0x3deccc(0x416)]()]=_0x269bed;}['removeCollectionImp'](_0x1fad27){const _0x54c876=_0x55e150;var _0x33cef3;let _0x50311c=this[_0x54c876(0x517)](_0x1fad27),_0x3cab30=this[_0x54c876(0x43a)][_0x54c876(0x31c)](_0x1fad27),_0x1e3943=this[_0x54c876(0x3c1)][_0x1fad27]??_0x3cab30??void 0x0,_0x137499=_0x3cab30?(_0x33cef3=this[_0x54c876(0x43a)][_0x54c876(0x3a8)](_0x3cab30[_0x54c876(0xa0)],_0x3cab30[_0x54c876(0x2d0)],_0x1fad27))==null?void 0x0:_0x33cef3[_0x54c876(0x1f5)]:_0x50311c==null?void 0x0:_0x50311c['range'];this[_0x54c876(0x43a)][_0x54c876(0x53a)]({'token':_0x1fad27,'type':_0x54c876(0xe0),'dataRangeInfo':_0x137499,'unitId':_0x1e3943==null?void 0x0:_0x1e3943[_0x54c876(0xa0)],'subUnitId':_0x1e3943==null?void 0x0:_0x1e3943[_0x54c876(0x2d0)]}),_0x50311c==null||_0x50311c[_0x54c876(0x3f4)](),delete this[_0x54c876(0x10d)][_0x1fad27],delete this[_0x54c876(0x3c1)][_0x1fad27];}[_0x55e150(0x2fe)](_0x4db467,_0x35a9de){const _0xa8135b=_0x55e150;let {sheetName:_0x49b4f9,unitId:_0x3d1b6f,range:_0x429497}=_0x4db467,{startRow:_0x22dec7,endRow:_0x25d320}=_0x429497;return(0x0,_0x1ce484[_0xa8135b(0x24e)])(_0x3d1b6f,_0x49b4f9,{'startRow':_0x22dec7,'endRow':_0x25d320,'startColumn':_0x35a9de,'endColumn':_0x35a9de});}[_0x55e150(0x220)](_0x429900){const _0x303193=_0x55e150;return this['dataFields'][this[_0x303193(0x463)][_0x429900]];}[_0x55e150(0xe4)](_0x2e1942,_0x410730){const _0x28861a=_0x55e150;this[_0x28861a(0x463)][_0x2e1942]=_0x410730;}['updateRangeKeyMap'](_0x2fd3f4,_0xf8ee10){const _0xcea86b=_0x55e150;this['rangeKeyMap'][_0xf8ee10]=this[_0xcea86b(0x463)][_0x2fd3f4],delete this['rangeKeyMap'][_0x2fd3f4];}['addCollectionByJSON'](_0x922d49,_0xd5eb5f,_0x241930,_0x3a18b,_0x2eb374){const _0x1b284e=_0x55e150;let _0x63ec74=new _0x4078f7[(_0x1b284e(0xa7))](this);_0x63ec74[_0x1b284e(0x3b3)](_0xd5eb5f);let _0x3eb7db=[],_0x279ee2=0x0;for(let _0x49d634 of _0x63ec74['fieldIds']){let _0x1f0649=this[_0x1b284e(0x16b)][_0x49d634];if(!_0x1f0649||(0x0,_0x4078f7[_0x1b284e(0x2a2)])(_0x1f0649))continue;let _0x18e94d=this[_0x1b284e(0x2fe)](_0x241930,_0x241930['range'][_0x1b284e(0x2fc)]+_0x279ee2);_0x1f0649['rangeKey']=_0x18e94d,this[_0x1b284e(0xe4)](_0x18e94d,_0x49d634),_0x3eb7db[_0x1b284e(0xc7)]({'index':_0x279ee2,'dataField':_0x1f0649}),_0x279ee2++;}return this[_0x1b284e(0x1c0)](_0x922d49,_0x63ec74,_0x241930,_0x3a18b,_0x2eb374),{'collection':_0x63ec74,'updateDataFieldList':_0x3eb7db};}['getRangeStartEndInfo'](_0x2e13bb,_0x2ea282){const _0x53e6a8=_0x55e150;return _0x2e13bb[_0x53e6a8(0x193)]===_0x3f8283[_0x53e6a8(0xd9)][_0x53e6a8(0x116)]?{'startRow':0x0,'startColumn':_0x2e13bb[_0x53e6a8(0x2fc)],'endRow':_0x2ea282['getRowCount']()-0x1,'endColumn':_0x2e13bb[_0x53e6a8(0x221)]}:{'startRow':_0x2e13bb[_0x53e6a8(0x33e)],'startColumn':_0x2e13bb[_0x53e6a8(0x2fc)],'endRow':_0x2e13bb['endRow'],'endColumn':_0x2e13bb[_0x53e6a8(0x221)]};}[_0x55e150(0x512)](_0x1ecbce){const _0x28a71c=_0x55e150;let {sheetName:_0x2240ed,range:_0x599bbb}=_0x1ecbce,_0x48b733=this[_0x28a71c(0x42e)][_0x28a71c(0x11b)](_0x3f8283['UniverInstanceType'][_0x28a71c(0x198)]),_0x1eb84e=_0x48b733[_0x28a71c(0x4ad)](_0x2240ed),_0x27cbe1=_0x1eb84e['getCellMatrix'](),{startColumn:_0x1df9c1,startRow:_0x468688,endColumn:_0x209866}=this[_0x28a71c(0x170)](_0x599bbb,_0x1eb84e),_0x4b148b=_0x48b733[_0x28a71c(0x390)](),_0x266460=new _0x4078f7[(_0x28a71c(0xa7))](this);_0x266460[_0x28a71c(0x4d1)](_0x1ecbce);let _0x54918f=[],_0x546047={};for(let _0x535ee3=_0x1df9c1;_0x535ee3<=_0x209866;_0x535ee3++){let _0x4269d2=_0x27cbe1[_0x28a71c(0x424)](_0x468688,_0x535ee3),_0x12104f=this[_0x28a71c(0x2fe)](_0x1ecbce,_0x535ee3),_0x30e952=this[_0x28a71c(0x220)](_0x12104f);if(_0x30e952)_0x266460[_0x28a71c(0x14c)](_0x30e952[_0x28a71c(0x416)](),_0x30e952['getName']());else{let _0x258bc6=this[_0x28a71c(0x283)](),_0x5cfa49=_0xb40343(this['adjustSheetCellData'](_0x4269d2,_0x4b148b,_0x546047)),_0x3a9754=this[_0x28a71c(0x17d)](_0x5cfa49,_0x535ee3),_0x4b9b99=new _0x4078f7[(_0x28a71c(0x4b0))](_0x258bc6,_0x3a9754,(0x0,_0x4078f7[_0x28a71c(0x1f4)])(0x3));_0x4b9b99[_0x28a71c(0x215)]=_0x12104f,this['dataFields'][_0x258bc6]=_0x4b9b99,_0x266460['addField'](_0x258bc6,_0x3a9754),_0x54918f[_0x28a71c(0xc7)]({'index':_0x535ee3,'dataField':_0x4b9b99});}}return{'updateDataFieldList':_0x54918f,'collection':_0x266460};}[_0x55e150(0x453)](_0x36731a){const _0x39b76a=_0x55e150;return this['_host']['getTextInfo']()[_0x39b76a(0x3fc)]+'\x20'+(0x0,_0x3f8283['numberToABC'])(_0x36731a);}[_0x55e150(0x17d)](_0x2ade5e,_0x5a364e){const _0x3b772d=_0x55e150;return _0x2ade5e==null||_0x2ade5e===''?this[_0x3b772d(0x453)](_0x5a364e):String(_0x2ade5e);}[_0x55e150(0x517)](_0x244fd0){const _0x5a5032=_0x55e150;return this[_0x5a5032(0x10d)][_0x244fd0];}[_0x55e150(0x1c0)](_0xbdb139,_0x37ea2a,_0x165408,_0x399ff8,_0x1ce20d){const _0x54cf5a=_0x55e150;this[_0x54cf5a(0x10d)][_0xbdb139]=_0x37ea2a,_0x37ea2a[_0x54cf5a(0x4d1)](_0x165408);let _0x13967b=_0x1ce20d??_0x399ff8;_0x13967b&&(this['_reportScopeMap'][_0xbdb139]={'unitId':_0x13967b[_0x54cf5a(0xa0)],'subUnitId':_0x13967b['subUnitId']}),this['_host'][_0x54cf5a(0x53a)]({'token':_0xbdb139,'type':_0x54cf5a(0xe9),'dataRangeInfo':_0x165408,'targetCellInfo':_0x399ff8,'unitId':_0x13967b==null?void 0x0:_0x13967b[_0x54cf5a(0xa0)],'subUnitId':_0x13967b==null?void 0x0:_0x13967b['subUnitId']});}[_0x55e150(0x42f)](_0x167f5b,_0x532c13){const _0x210d7f=_0x55e150;if(typeof _0x167f5b==_0x210d7f(0x45c)){let _0x325902=this[_0x210d7f(0x517)](_0x167f5b);_0x325902[_0x210d7f(0x28a)]()[_0x210d7f(0x1bd)]((_0x468373,_0x3c483a)=>{const _0x5914aa=_0x210d7f;let _0x468958=_0x325902[_0x5914aa(0x53c)](_0x468373),_0x396e1c=this[_0x5914aa(0x2fe)](_0x532c13,_0x532c13['range']['startColumn']+_0x3c483a);this[_0x5914aa(0x3c5)](_0x468958[_0x5914aa(0x215)],_0x396e1c),_0x468958[_0x5914aa(0x215)]=_0x396e1c;}),_0x325902[_0x210d7f(0x4d1)](_0x532c13);return;}let _0x2f3e77=new Map();for(let {before:_0x2fe10c,after:_0x24afab}of _0x167f5b){this[_0x210d7f(0x37e)](_0x2fe10c)[_0x210d7f(0x1bd)]((_0xa91885,_0x26da1c)=>{const _0x10645c=_0x210d7f;let _0x348056=this['getDataFieldByRangeKey'](_0xa91885);_0x348056&&_0x2f3e77[_0x10645c(0x187)](_0x348056[_0x10645c(0x416)](),{'field':_0x348056,'rangeKey':this['getRangeKey'](_0x24afab,_0x24afab[_0x10645c(0x322)]['startColumn']+_0x26da1c)});});for(let _0x59e26d of Object['values'](this['collections'])){let _0x5111b7=_0x59e26d[_0x210d7f(0x322)];(_0x5111b7==null?void 0x0:_0x5111b7['unitId'])===_0x2fe10c[_0x210d7f(0xa0)]&&_0x5111b7['subUnitId']===_0x2fe10c[_0x210d7f(0x2d0)]&&_0x3f8283[_0x210d7f(0x13e)][_0x210d7f(0x135)](_0x5111b7[_0x210d7f(0x322)],_0x2fe10c[_0x210d7f(0x322)])&&_0x59e26d[_0x210d7f(0x4d1)](_0x24afab);}}for(let {field:_0x2f2128}of _0x2f3e77[_0x210d7f(0x20b)]())this['rangeKeyMap'][_0x2f2128[_0x210d7f(0x215)]]===_0x2f2128['getId']()&&delete this[_0x210d7f(0x463)][_0x2f2128[_0x210d7f(0x215)]];for(let {field:_0x5bcced,rangeKey:_0x5b7907}of _0x2f3e77[_0x210d7f(0x20b)]())_0x5bcced[_0x210d7f(0x215)]=_0x5b7907,this[_0x210d7f(0x463)][_0x5b7907]=_0x5bcced['getId']();}[_0x55e150(0xed)](){return{'runtimeCellData':{},'dirtyRanges':{}};}[_0x55e150(0x12f)](_0x27dd3,_0x27881b){const _0x19588c=_0x55e150;if(this[_0x19588c(0x517)](_0x27dd3)){let _0x110825=this[_0x19588c(0x37e)](_0x27881b),_0x4ed2bf=[];for(let _0xc41bcc of _0x110825)this[_0x19588c(0x463)][_0xc41bcc]!==void 0x0&&_0x4ed2bf[_0x19588c(0xc7)](this[_0x19588c(0x463)][_0xc41bcc]);let _0x554112=this['getNoUsedDataFieldIds'](_0x27dd3),_0x2f7294=[],_0x569791=new Set(_0x4ed2bf);for(let _0x11d4b8 of _0x554112)_0x569791[_0x19588c(0x16c)](_0x11d4b8)||_0x2f7294[_0x19588c(0xc7)](_0x11d4b8);return _0x2f7294;}}[_0x55e150(0x222)](_0x4d91e3,_0x1b79b8,_0x3a0f0d,_0x2ae1d2,_0x14be65){const _0x22e90d=_0x55e150;return this['_getResolvedMatrixValue'](_0x4d91e3,_0x1b79b8,_0x3a0f0d,_0x2ae1d2,_0x14be65)[_0x22e90d(0x126)];}[_0x55e150(0x34b)](_0x39e00b,_0x1918b8,_0x1e0a3f,_0x2c8bd6,_0x8b8650){const _0xd01bb5=_0x55e150;let _0x18cbbe=_0x39e00b[_0xd01bb5(0x424)](_0x2c8bd6,_0x8b8650);if(_0x1918b8){let _0x471f36=_0x1918b8[_0xd01bb5(0x424)](_0x2c8bd6,_0x8b8650);if(_0x471f36)return{'cellData':_0x18cbbe?{..._0x18cbbe,..._0x471f36}:_0x471f36,'isArrayFormulaCell':!0x0};}if(_0x1e0a3f){let _0x273e7a=_0x1e0a3f['getValue'](_0x2c8bd6,_0x8b8650);if(_0x273e7a)return{'cellData':_0x18cbbe?{..._0x18cbbe,..._0x273e7a}:_0x273e7a,'isArrayFormulaCell':!0x1};}return{'cellData':_0x18cbbe,'isArrayFormulaCell':!0x1};}['refreshDataField'](_0x2216f0,_0x2f0809,_0x23229a,_0x48c5d9){const _0x44a513=_0x55e150;let _0x1d1532=this['dataFields'][_0x2216f0];if(!_0x1d1532)return;let {subUnitId:_0x596a4b,range:_0x2bbb8e,unitId:_0x45a70c}=_0x2f0809,_0xac7f09=this[_0x44a513(0x42e)][_0x44a513(0x34e)](_0x45a70c);if(!_0xac7f09){console[_0x44a513(0x347)]('workbook\x20is\x20not\x20found');return;}let _0x336e05=_0xac7f09[_0x44a513(0x176)](_0x596a4b),_0x47f4b5=_0x336e05[_0x44a513(0x2cc)](),{arrayFormulaCellDataMatrix:_0x12d33d,unitDataMatrix:_0x4a3de5}=_0x48c5d9||{},{startRow:_0x364749,startColumn:_0x45e20e,endRow:_0x3eebec}=this[_0x44a513(0x170)](_0x2bbb8e,_0x336e05);_0x1d1532['reset']();let _0x35c32b=_0xac7f09[_0x44a513(0x390)](),_0x181082={},_0x558eec=this[_0x44a513(0x34b)](_0x47f4b5,_0x12d33d,_0x4a3de5,_0x364749,_0x45e20e+_0x23229a),_0x1fe166=_0xb40343(this[_0x44a513(0x1eb)](_0x558eec[_0x44a513(0x126)],_0x35c32b,_0x181082,_0x558eec[_0x44a513(0x2e7)])),_0x11dae0=this['uniqueDataFieldName'](_0x1fe166,_0x45e20e+_0x23229a);_0x1d1532['setName'](_0x11dae0);for(let _0x2b445a=_0x364749+0x1;_0x2b445a<=_0x3eebec;_0x2b445a++){let _0x3cf662=this[_0x44a513(0x34b)](_0x47f4b5,_0x12d33d,_0x4a3de5,_0x2b445a,_0x45e20e+_0x23229a);_0x1d1532[_0x44a513(0x1d6)](this[_0x44a513(0x1eb)](_0x3cf662[_0x44a513(0x126)],_0x35c32b,_0x181082,_0x3cf662['isArrayFormulaCell']),_0x2b445a-0x1-_0x364749);}}['refreshData'](_0x43cdd1,_0x4320ed,_0x239973){const _0x5f01cd=_0x55e150;let {subUnitId:_0x32b444,range:_0x10d3e2,unitId:_0x1c111f}=_0x239973,_0x1d4a21=this[_0x5f01cd(0x42e)][_0x5f01cd(0x34e)](_0x1c111f);if(!_0x1d4a21){console['error'](_0x5f01cd(0x280));return;}let _0x1d6121=_0x1d4a21['getSheetBySheetId'](_0x32b444),_0x4a93b0=_0x1d6121[_0x5f01cd(0x2cc)](),{startRow:_0x3e230b,startColumn:_0x959557,endRow:_0x5567fb}=this[_0x5f01cd(0x170)](_0x10d3e2,_0x1d6121),_0x335cb8=_0x1d4a21[_0x5f01cd(0x390)](),_0x3db05f={},_0x1cf6eb=new Set(_0x4320ed[_0x5f01cd(0x1e6)](({dataField:_0x14fbe8})=>_0x14fbe8[_0x5f01cd(0x416)]())),_0x1c6855={};for(let _0x251082 of _0x43cdd1[_0x5f01cd(0x1f3)])_0x1cf6eb[_0x5f01cd(0x16c)](_0x251082)||(_0x1c6855[_0x251082]=_0x43cdd1[_0x5f01cd(0x25c)][_0x251082]??_0x4078f7['FieldsCollection'][_0x5f01cd(0x2eb)](_0x43cdd1[_0x5f01cd(0x53c)](_0x251082)[_0x5f01cd(0x25f)](),_0x1c6855));for(let {dataField:_0x634271,index:_0x7610c0}of _0x4320ed){_0x634271['reset']();let _0x43bbf2=this['_getResolvedMatrixValue'](_0x4a93b0,void 0x0,void 0x0,_0x3e230b,_0x959557+_0x7610c0),_0x13fcdd=_0xb40343(this[_0x5f01cd(0x1eb)](_0x43bbf2[_0x5f01cd(0x126)],_0x335cb8,_0x3db05f,_0x43bbf2[_0x5f01cd(0x2e7)])),_0x58f216=this[_0x5f01cd(0x17d)](_0x13fcdd,_0x959557+_0x7610c0);_0x634271[_0x5f01cd(0x508)](_0x58f216),_0x1c6855[_0x634271[_0x5f01cd(0x416)]()]=_0x4078f7[_0x5f01cd(0xa7)][_0x5f01cd(0x2eb)](_0x58f216,_0x1c6855);}_0x43cdd1[_0x5f01cd(0x25c)]=_0x1c6855;for(let _0x18683a=_0x3e230b+0x1;_0x18683a<=_0x5567fb;_0x18683a++)for(let {index:_0x24c26a,dataField:_0x508bc7}of _0x4320ed){let _0x3b710a=_0x4a93b0[_0x5f01cd(0x424)](_0x18683a,_0x959557+_0x24c26a);_0x508bc7[_0x5f01cd(0x1d6)](this['adjustSheetCellData'](_0x3b710a,_0x335cb8,_0x3db05f),_0x18683a-0x1-_0x3e230b);}_0x43cdd1[_0x5f01cd(0x488)](_0x4320ed[_0x5f01cd(0x1e6)](({dataField:_0x11182f})=>_0x11182f[_0x5f01cd(0x416)]()))[_0x5f01cd(0x1bd)](([_0x3f3632,_0x14b959])=>{const _0x476dd1=_0x5f01cd;let _0xc238df=_0x43cdd1[_0x476dd1(0x53c)](_0x3f3632),_0x5cc65a=_0x43cdd1[_0x476dd1(0x53c)](_0x14b959);(0x0,_0x4078f7[_0x476dd1(0x2a2)])(_0xc238df)&&_0x5cc65a&&((0x0,_0x4078f7['isDateGroupField'])(_0xc238df)&&_0x2a257d(_0x1d4a21[_0x476dd1(0x51d)]()),_0xc238df['refreshGroupField'](_0x5cc65a));}),_0x43cdd1[_0x5f01cd(0x3bd)](_0x5567fb-_0x3e230b);}['getRangeKeyList'](_0x28d47f){const _0x1052d7=_0x55e150;let {range:_0x1ed31a}=_0x28d47f,{startColumn:_0x2d84a2,endColumn:_0x2f3544}=_0x1ed31a,_0x210fdc=[];for(let _0x4bbb1c=_0x2d84a2;_0x4bbb1c<=_0x2f3544;_0x4bbb1c++)_0x210fdc[_0x1052d7(0xc7)](this['getRangeKey'](_0x28d47f,_0x4bbb1c));return _0x210fdc;}[_0x55e150(0x1eb)](_0x25e1f1,_0x195adc,_0x36f853,_0x4937d5=!0x1){const _0x38f190=_0x55e150;if(_0x25e1f1){let {s:_0x5069dd,v:_0x24835a,t:_0x506f4d,p:_0x3960cc}=_0x25e1f1;if(_0x3960cc)return _0x4cbeb4(_0x3960cc);let _0xcf606a=(0x0,_0x1ce484[_0x38f190(0x4b4)])(_0x25e1f1,_0x4937d5);if(_0xcf606a)return{'error':_0xcf606a};let _0xdfacbb=_0x195adc['get'](_0x5069dd);if(_0xdfacbb&&(0x0,_0x3f8283[_0x38f190(0x1f6)])(_0x25e1f1)===_0x3f8283[_0x38f190(0x505)]['NUMBER']&&_0xdfacbb['n']){let {pattern:_0x3f8d43}=_0xdfacbb['n'];_0x36f853[_0x3f8d43]||(_0x36f853[_0x3f8d43]=_0x3f8283[_0x38f190(0x432)][_0x38f190(0x39e)](_0x3f8d43));let _0x415d1f=_0x36f853[_0x3f8d43],_0x1440bd=_0x415d1f[_0x38f190(0x196)];if(_0x415d1f[_0x38f190(0x2ef)])return String(_0x24835a);if(_0x1440bd)return{'v':_0x24835a,'f':_0x3f8d43};}if(_0x506f4d===_0x3f8283[_0x38f190(0x505)][_0x38f190(0x284)])return Number(_0x24835a);if(_0x506f4d===_0x3f8283[_0x38f190(0x505)][_0x38f190(0x50f)]||_0x506f4d===_0x3f8283[_0x38f190(0x505)][_0x38f190(0xf2)])return String(_0x24835a);if(_0x506f4d===_0x3f8283[_0x38f190(0x505)][_0x38f190(0x441)])return _0x24835a===!0x0||_0x24835a===0x1;if(_0x506f4d===void 0x0){let _0x336ca7=Number(_0x24835a);if(!Number[_0x38f190(0xfd)](_0x336ca7)&&String(_0x336ca7)===_0x24835a)return _0x336ca7;}return _0x24835a??null;}return null;}[_0x55e150(0x4d8)](_0x44ecc9){const _0x9f122c=_0x55e150;let {sheetName:_0x58de67,range:_0x3e1baf,unitId:_0x3b22b7}=_0x44ecc9,_0x5f4dc0=this[_0x9f122c(0x42e)][_0x9f122c(0x34e)](_0x3b22b7);if(!_0x5f4dc0)return console[_0x9f122c(0x347)](_0x9f122c(0x280)),{'header':[],'data':[]};let _0x5dd8bb=_0x5f4dc0['getSheetBySheetName'](_0x58de67),_0x29ec1d=_0x5dd8bb[_0x9f122c(0x2cc)](),{startRow:_0x82486b,startColumn:_0x42d336,endRow:_0x3ea9b9,endColumn:_0x5820e8}=this[_0x9f122c(0x170)](_0x3e1baf,_0x5dd8bb),_0x360598=_0x5f4dc0[_0x9f122c(0x390)](),_0x2f03c4=[],_0x4448eb=[],_0x5ac178={};for(let _0xd294e=_0x82486b;_0xd294e<=_0x3ea9b9;_0xd294e++){let _0x321323=[];for(let _0x578942=_0x42d336;_0x578942<=_0x5820e8;_0x578942++){let _0x40f191=_0x29ec1d[_0x9f122c(0x424)](_0xd294e,_0x578942);_0xd294e===_0x82486b?_0x2f03c4['push'](_0xb40343(this[_0x9f122c(0x1eb)](_0x40f191,_0x360598,_0x5ac178))):_0x321323[_0x9f122c(0xc7)](this[_0x9f122c(0x1eb)](_0x40f191,_0x360598,_0x5ac178));}_0x4448eb[_0x9f122c(0xc7)](_0x321323);}return{'header':_0x2f03c4,'data':_0x4448eb};}[_0x55e150(0x4b3)](){const _0x443ca8=_0x55e150;return super[_0x443ca8(0x4b3)]();}[_0x55e150(0x3b3)](_0x75aaf5){const _0x5a0d45=_0x55e150;super['fromJSON'](_0x75aaf5),this[_0x5a0d45(0x261)]();}[_0x55e150(0x3f4)](){const _0x681761=_0x55e150;super[_0x681761(0x3f4)](),this[_0x681761(0x1a3)][_0x681761(0x1ce)](),this[_0x681761(0x463)]={},this[_0x681761(0x3c1)]={},this[_0x681761(0x43a)]=null;}};let _0x2a7ee7=_0x5eb312=>{const _0x434b39=_0x55e150;let {targetCellInfo:_0x3a80ec,direction:_0x3ec0b4=_0x434b39(0x272)}=_0x5eb312,{matrixCache:_0x5d4210,rangesCache:_0x4957a3}=_0x8bf98({'filter':_0x434b39(0x44a),'row':_0x434b39(0x438),'column':_0x434b39(0x142),'values':_0x434b39(0x3b7)},_0x3a80ec,_0x3ec0b4),_0x1b495c=new _0x3f8283[(_0x434b39(0x2e4))]();return _0x5d4210[_0x434b39(0x107)]((_0x43ce8f,_0x516902,_0x4cabe7)=>{const _0x36240c=_0x434b39;_0x1b495c[_0x36240c(0x1c4)](_0x43ce8f,_0x516902,_0x4cabe7);}),{'matrix':_0x1b495c,'rangesCache':_0x4957a3};},_0x5ef7af=_0x213542=>{const _0x8f51f3=_0x55e150;let _0x16486e;if(_0x213542!=null&&_0x213542['v']||(_0x213542==null?void 0x0:_0x213542['v'])===0x0){_0x16486e||={};let _0x21dcdf=_0x1510fb(_0x213542['v']);typeof _0x21dcdf==_0x8f51f3(0x356)?_0x16486e['t']=_0x3f8283[_0x8f51f3(0x505)]['NUMBER']:typeof _0x21dcdf==_0x8f51f3(0x45c)&&(_0x16486e['t']=_0x3f8283[_0x8f51f3(0x505)][_0x8f51f3(0x50f)]),_0x16486e['v']=_0x21dcdf;}return _0x16486e;},_0x3256d4=(_0x293213,_0x4b3573,_0x5b10e4,_0x2dcdad,_0xa30378)=>{const _0x83e7f7=_0x55e150;let {cornerView:_0x1f5dd0,rowView:_0x470ece,colView:_0x48b1f8,dataView:_0x1283de,pageView:_0x5eb5b8,formatMap:_0x34463c}=_0x293213,{row:_0x22ec2b,col:_0xc2e89a}=_0x4b3573,_0x58b2d8=new _0x3f8283[(_0x83e7f7(0x2e4))](),_0x43a652=_0x374ed9(_0x293213,_0xc2e89a,_0x2dcdad),_0x16f657=_0x22ec2b,_0x377c7e=_0xc2e89a;Object[_0x83e7f7(0x1b3)](_0x5eb5b8[_0x83e7f7(0x1bb)])[_0x83e7f7(0x1bd)](_0x580ab7=>{const _0xf60f6a=_0x83e7f7;Object['keys'](_0x5eb5b8[_0xf60f6a(0x1bb)][Number(_0x580ab7)])[_0xf60f6a(0x1bd)](_0x2cab72=>{const _0x367e7b=_0xf60f6a;let _0x5d2591={..._0x5eb5b8[_0x367e7b(0x1bb)][Number(_0x580ab7)][Number(_0x2cab72)]};_0x58b2d8['setValue'](Number(_0x580ab7)+_0x16f657,_0x4b40f9(_0x43a652,Number(_0x2cab72)+_0x377c7e),_0x5ef7af(_0x5d2591));});});let _0xcdffee=Object[_0x83e7f7(0x1b3)](_0x5eb5b8[_0x83e7f7(0x1bb)])['length'];_0x16f657+=_0xcdffee+ +!!_0xcdffee;let _0x2376b5=_0x1f5dd0[_0x83e7f7(0x484)](),_0x3716cc=_0x1f5dd0[_0x83e7f7(0x304)]();for(let _0x1446de=0x0;_0x1446de<_0x2376b5;_0x1446de++)for(let _0x221fbe=0x0;_0x221fbe<_0x3716cc;_0x221fbe++){var _0x46f0fb;let _0xe9d3b8={...(_0x46f0fb=_0x1f5dd0[_0x83e7f7(0x1bb)])==null||(_0x46f0fb=_0x46f0fb[_0x1446de])==null?void 0x0:_0x46f0fb[_0x221fbe]};if(_0xe9d3b8){var _0x18053c,_0x40e4df;(_0x18053c=_0x470ece['headerMap'][_0x221fbe])!=null&&_0x18053c[_0x83e7f7(0x26f)]&&_0x221fbe===_0x3716cc-0x1&&_0x1446de===_0x2376b5-0x1&&(_0xe9d3b8['v']=''+_0x5b10e4[_0x83e7f7(0x426)]),_0x1446de===_0x2376b5-0x1&&(_0x40e4df=_0x1f5dd0['info'][_0x221fbe])!=null&&_0x40e4df[_0x83e7f7(0x514)]&&(_0xe9d3b8['v']=''+(_0x5b10e4[_0x83e7f7(0x2fb)]||_0x83e7f7(0x395)));}_0x58b2d8[_0x83e7f7(0x1c4)](_0x1446de+_0x16f657,_0x4b40f9(_0x43a652,_0x221fbe+_0x377c7e),_0x5ef7af(_0xe9d3b8));}_0x377c7e+=_0x3716cc;let _0x30916c=_0x48b1f8['headerMap'],_0x407216=_0x48b1f8['getLastRow']()>=0x0?_0x48b1f8[_0x83e7f7(0x414)]()+0x1:0x0,_0x404ef1=_0x48b1f8[_0x83e7f7(0x290)]()>=0x0?_0x48b1f8[_0x83e7f7(0x290)]()+0x1:0x0;for(let _0x399abd=0x0;_0x399abd<_0x407216;_0x399abd++)for(let _0x548467=0x0;_0x548467<_0x404ef1;_0x548467++){var _0x240d83,_0x53f1b9;let _0x32a7ae={...(_0x240d83=_0x48b1f8['data'])==null||(_0x240d83=_0x240d83[_0x399abd])==null?void 0x0:_0x240d83[_0x548467]},_0xf62ec4=_0x34463c[(_0x53f1b9=_0x30916c[_0x548467])==null?void 0x0:_0x53f1b9[_0x83e7f7(0x163)]];if(_0x32a7ae){let _0x5a2308=_0x48b1f8['getHeaderMapItem'](_0x548467+0x1);_0x32a7ae['v']=_0x399abd===0x0&&_0x5a2308!=null&&_0x5a2308[_0x83e7f7(0x3cd)]?''+(_0x5b10e4['sheets-pivot.columnLabels']||_0x83e7f7(0x3dd)):_0x308f61(_0x32a7ae,_0x399abd===0x0&&(_0x5a2308==null?void 0x0:_0x5a2308[_0x83e7f7(0x26f)]),_0xf62ec4,_0x5b10e4,_0x5b10e4['sheets-pivot.subTotalText'],void 0x0,_0xa30378);}_0x58b2d8[_0x83e7f7(0x1c4)](_0x399abd+_0x16f657,_0x4b40f9(_0x43a652,_0x548467+_0x377c7e),_0x5ef7af(_0x32a7ae));}_0x16f657+=_0x2376b5;let _0x45cb8d=_0x470ece[_0x83e7f7(0x1c9)],_0x1e93aa=_0x470ece['getLastRow']()>=0x0?_0x470ece[_0x83e7f7(0x414)]()+0x1:0x0,_0x25a5df=_0x470ece[_0x83e7f7(0x290)]()>=0x0?_0x470ece[_0x83e7f7(0x290)]()+0x1:0x0;for(let _0x4b685a=0x0;_0x4b685a<_0x1e93aa;_0x4b685a++)for(let _0x518d1d=0x0;_0x518d1d<_0x25a5df;_0x518d1d++){var _0x5a1c55,_0x45f619;let _0x3ac341={...(_0x5a1c55=_0x470ece[_0x83e7f7(0x1bb)])==null||(_0x5a1c55=_0x5a1c55[_0x4b685a])==null?void 0x0:_0x5a1c55[_0x518d1d]},_0x34df08=_0x34463c[(_0x45f619=_0x45cb8d[_0x518d1d])==null?void 0x0:_0x45f619['tableFieldId']];_0x3ac341&&(_0x3ac341['v']=_0x308f61(_0x3ac341,!0x1,_0x34df08,_0x5b10e4,void 0x0,_0x5b10e4[_0x83e7f7(0x40f)],_0xa30378)),_0x58b2d8[_0x83e7f7(0x1c4)](_0x4b685a+_0x16f657,_0x4b40f9(_0x43a652,_0x518d1d+_0xc2e89a),_0x5ef7af(_0x3ac341));}let _0x1d54bd=_0x1283de[_0x83e7f7(0x484)](),_0x7eeca=_0x1283de[_0x83e7f7(0x304)]();for(let _0x51590a=0x0;_0x51590a<_0x1d54bd;_0x51590a++)for(let _0xccf652=0x0;_0xccf652<_0x7eeca;_0xccf652++){var _0x473f31;let _0x4a22d4={...(_0x473f31=_0x1283de[_0x83e7f7(0x1bb)])==null||(_0x473f31=_0x473f31[_0x51590a])==null?void 0x0:_0x473f31[_0xccf652]};_0x58b2d8['setValue'](_0x51590a+_0x16f657,_0x4b40f9(_0x43a652,_0xccf652+_0x377c7e),_0x5ef7af(_0x4a22d4));}return _0x58b2d8;},_0x5d22b9=_0x2b40a7=>{const _0x18b353=_0x55e150;let {view:_0x2b9e9a,targetCellInfo:_0x1eeb03,isEmpty:_0xfd07bf,textInfo:_0x41579d,direction:_0x11afba=_0x18b353(0x272),dateSystem:_0x4989d5=_0x3f8283[_0x18b353(0x3f5)][_0x18b353(0x4e8)]}=_0x2b40a7;if(_0xfd07bf)return _0x2a7ee7(_0x2b40a7);let {pageView:_0x19fb55,cornerView:_0x399403,rowView:_0xb8df50,colView:_0x1abc63,dataView:_0x178e94}=_0x2b9e9a,_0x33b5d2=_0x374ed9(_0x2b9e9a,_0x1eeb03[_0x18b353(0xf9)],_0x11afba),_0x8144ed=_0x18cbe4(_0x1eeb03,_0x19fb55,!0x0),_0x19a00f=_0x19fb55[_0x18b353(0x30e)]>=0x0?_0x19fb55['lastRow']+0x1:0x0,_0x1bce47=_0x399403[_0x18b353(0x484)](),_0xe007e5=_0x399403['getColCount'](),_0x2a0e26=+(_0x8144ed[_0x18b353(0x337)]>0x0),_0x10261d=_0x18cbe4({'row':_0x1eeb03[_0x18b353(0x18e)]+_0x19a00f+_0x2a0e26,'col':_0x1eeb03[_0x18b353(0xf9)]},_0x399403,!0x1,!0x1),_0x1d03c3=_0x18cbe4({'row':_0x1eeb03['row']+_0x19a00f+_0x2a0e26+_0x1bce47,'col':_0x1eeb03['col']},_0xb8df50,!0x1,!0x0),_0x319df8=_0x18cbe4({'row':_0x1eeb03[_0x18b353(0x18e)]+_0x19a00f+_0x2a0e26,'col':_0x1eeb03[_0x18b353(0xf9)]+_0xe007e5},_0x1abc63,!0x1,!0x0),_0x3a7caa=_0x18cbe4({'row':_0x1eeb03[_0x18b353(0x18e)]+_0x19a00f+_0x2a0e26+_0x1bce47,'col':_0x1eeb03[_0x18b353(0xf9)]+_0xe007e5},_0x178e94,!0x1,!0x1),_0x3fd175={'rowRanges':_0x1d03c3[_0x18b353(0x1e6)](_0x281ecf=>_0x3fe295(_0x33b5d2,_0x281ecf)),'colRanges':_0x319df8[_0x18b353(0x1e6)](_0x176048=>_0x3fe295(_0x33b5d2,_0x176048)),'cornerRanges':_0x10261d[_0x18b353(0x1e6)](_0x1034c1=>_0x3fe295(_0x33b5d2,_0x1034c1)),'dataRanges':_0x3a7caa[_0x18b353(0x1e6)](_0x223078=>_0x3fe295(_0x33b5d2,_0x223078)),'pageRanges':_0x8144ed[_0x18b353(0x1e6)](_0x3bc9f1=>_0x3fe295(_0x33b5d2,_0x3bc9f1))};return{'matrix':_0x3256d4(_0x2b9e9a,_0x1eeb03,_0x41579d,_0x11afba,_0x4989d5),'rangesCache':_0x3fd175};},_0x30eff7=class extends _0x3f8283[_0x55e150(0xc4)]{constructor(_0x54a4df,_0x1a2ac1,_0x1b385c,_0x1df1b6,_0x334469,_0x2c56f4,_0x15c6f5){const _0x3701ea=_0x55e150;super(),this[_0x3701ea(0x1f7)]=_0x54a4df,this['_univerInstanceService']=_0x1a2ac1,this[_0x3701ea(0x1f2)]=_0x1b385c,this[_0x3701ea(0x466)]=_0x1df1b6,this[_0x3701ea(0x137)]=_0x334469,this['_sheetsPivotCacheService']=_0x2c56f4,this[_0x3701ea(0x216)]=_0x15c6f5,_0x418dd6(this,_0x3701ea(0x3da),new Map()),_0x418dd6(this,_0x3701ea(0x35f),new Map()),_0x418dd6(this,_0x3701ea(0x2a9),new Map()),_0x418dd6(this,_0x3701ea(0x4cf),new Map()),_0x418dd6(this,_0x3701ea(0x269),new Map()),_0x418dd6(this,_0x3701ea(0x4ff),void 0x0),_0x418dd6(this,_0x3701ea(0x33b),_0x3701ea(0x272)),_0x418dd6(this,_0x3701ea(0x4e4),new _0x282fb4[(_0x3701ea(0x523))]()),_0x418dd6(this,_0x3701ea(0x9c),this[_0x3701ea(0x4e4)][_0x3701ea(0xf4)]()),_0x418dd6(this,_0x3701ea(0x4ea),new _0x282fb4['Subject']()),_0x418dd6(this,_0x3701ea(0xb4),this[_0x3701ea(0x4ea)][_0x3701ea(0xf4)]()),_0x418dd6(this,_0x3701ea(0x119),new _0x282fb4['Subject']()),_0x418dd6(this,_0x3701ea(0x33a),this[_0x3701ea(0x119)][_0x3701ea(0xf4)]()),_0x418dd6(this,_0x3701ea(0x454),new Map()),_0x418dd6(this,_0x3701ea(0x1a8),new Set()),_0x418dd6(this,_0x3701ea(0x39f),[]),_0x418dd6(this,'_queryingMap',new Map()),this[_0x3701ea(0x1d1)]();}[_0x55e150(0x4b2)](){const _0x39b7c8=_0x55e150;return this[_0x39b7c8(0x4ff)]?this[_0x39b7c8(0x4ff)]:_0xfe5ea0;}[_0x55e150(0x464)](_0x3839ad){const _0x7a2b6d=_0x55e150;var _0x56fb07;return(_0x56fb07=this[_0x7a2b6d(0x35f)]['get'](_0x3839ad))==null?void 0x0:_0x56fb07[_0x7a2b6d(0x407)];}[_0x55e150(0x263)](){const _0x5809e7=_0x55e150;return Object[_0x5809e7(0x338)](Array[_0x5809e7(0x91)](this[_0x5809e7(0x35f)],([_0x14b289,_0x5bd741])=>[_0x14b289,_0x5bd741[_0x5809e7(0x407)]]));}[_0x55e150(0x9a)](_0x1e50b0){const _0x4c1018=_0x55e150;if(!this[_0x4c1018(0x42e)][_0x4c1018(0x34e)](_0x1e50b0[_0x4c1018(0xa0)]))return!0x1;let _0x516c50=this['_runtimeUnits']['get'](_0x1e50b0[_0x4c1018(0xa0)]);if(_0x516c50&&(_0x516c50[_0x4c1018(0x364)]>_0x1e50b0['sequence']||_0x516c50['sequence']===_0x1e50b0[_0x4c1018(0x364)]&&_0x516c50[_0x4c1018(0x407)]!==_0x1e50b0[_0x4c1018(0x407)]))return!0x1;this[_0x4c1018(0x35f)][_0x4c1018(0x187)](_0x1e50b0['unitId'],{..._0x1e50b0}),this['syncCollectionConfig'](_0x1e50b0[_0x4c1018(0xa0)]);for(let [_0x3794c9,_0x3a5199]of this[_0x4c1018(0x3da)][_0x4c1018(0x97)](_0x1e50b0[_0x4c1018(0xa0)])??[])for(let _0x28d8bc of _0x3a5199[_0x4c1018(0x1b3)]())this[_0x4c1018(0x449)]({'unitId':_0x1e50b0[_0x4c1018(0xa0)],'subUnitId':_0x3794c9,'token':_0x28d8bc,'type':_0x4c1018(0x187)});return!0x0;}[_0x55e150(0x361)](_0x283c7b,_0x498cf9){const _0x2d9594=_0x55e150;let _0x32267b=this[_0x2d9594(0x33b)]===_0x498cf9&&_0x3f8283[_0x2d9594(0xe7)][_0x2d9594(0x2d4)](this[_0x2d9594(0x4ff)],_0x283c7b);if(this['_textInfo']=_0x283c7b,_0x32267b)return;this['_direction']=_0x498cf9;let _0x3136ee=[];this[_0x2d9594(0x3da)][_0x2d9594(0x1bd)](_0x5f38b0=>{const _0x3e93ba=_0x2d9594;_0x5f38b0[_0x3e93ba(0x1bd)](_0x440379=>{const _0x508430=_0x3e93ba;_0x440379[_0x508430(0x1bd)]((_0x52befd,_0x48ff85)=>{const _0x429d12=_0x508430;let _0x29de6b=this['_viewTranslateContextCache'][_0x429d12(0x97)](_0x48ff85);_0x29de6b&&_0x3136ee['push']({..._0x29de6b,'pivotTableId':_0x48ff85,'isEmpty':_0x52befd[_0x429d12(0x360)],'targetCellInfo':_0x52befd[_0x429d12(0xf0)],'textInfo':_0x283c7b});});});}),_0x3136ee[_0x2d9594(0x1bd)](_0x4eea3e=>this[_0x2d9594(0x27f)](_0x4eea3e,!0x0)),_0x3136ee[_0x2d9594(0x1bd)](({targetCellInfo:_0x550bfd,pivotTableId:_0x49870d})=>{const _0x2002d6=_0x2d9594;this[_0x2002d6(0x4ea)][_0x2002d6(0x21c)]({'unitId':_0x550bfd[_0x2002d6(0xa0)],'subUnitId':_0x550bfd[_0x2002d6(0x2d0)],'pivotTableId':_0x49870d});});}['handleMoveRange'](_0xa6feb2){const _0x27dc90=_0x55e150;let _0x350397=this[_0x27dc90(0x103)][_0x27dc90(0x526)](_0xa6feb2);if(!_0x350397[_0x27dc90(0x337)])return;let _0x262fda=this['getDataFieldManager'](_0xa6feb2[_0x27dc90(0xa0)]);_0x262fda[_0x27dc90(0x42f)](_0x350397);let _0x1710a3=new Map(_0x350397['map'](_0x105cb0=>[_0x105cb0[_0x27dc90(0x3ae)],_0x105cb0]));for(let [_0x3c60d0,_0x38eca5]of this[_0x27dc90(0x3da)])for(let [_0x2e41ce,_0x4ac8b9]of _0x38eca5)for(let [_0x101cd0,_0x52c748]of Array[_0x27dc90(0x91)](_0x4ac8b9)){let _0x277644=_0x1710a3['get'](_0x52c748[_0x27dc90(0x3ae)]??'');if(!_0x277644)continue;let _0x286263={..._0x52c748,'sourceRangeInfo':_0x277644['after']};this[_0x27dc90(0x4cb)](_0x3c60d0,_0x2e41ce,_0x101cd0,_0x286263),this[_0x27dc90(0x53a)]({'unitId':_0x3c60d0,'token':_0x101cd0,'type':_0x27dc90(0x2a7),'oldSourceRangeInfo':_0x277644[_0x27dc90(0x46c)],'dataRangeInfo':_0x277644[_0x27dc90(0x159)],'targetCellInfo':_0x286263[_0x27dc90(0xf0)]}),this['updateConfig']({'unitId':_0x3c60d0,'subUnitId':_0x2e41ce,'oldSubUnitId':_0x2e41ce,'pivotTableId':_0x101cd0,'pivotTableConfig':_0x286263,'collectionConfig':_0x262fda['toJSON']()});}let _0x4532ff={};for(let _0xe77b19 of _0x350397)this[_0x27dc90(0x42b)](_0xa6feb2[_0x27dc90(0xa0)],_0xe77b19['pivotCacheId'],_0x4532ff);this[_0x27dc90(0x32f)](_0xa6feb2['unitId']);}[_0x55e150(0x53a)](_0x589aef){const _0x33d636=_0x55e150;this['_collectionChange$'][_0x33d636(0x21c)](_0x589aef);}[_0x55e150(0x286)](_0x42b7d8){const _0x9cf8b2=_0x55e150;let _0x2649a7=this['_dataFieldManagerCollection']['get'](_0x42b7d8);return _0x2649a7||(_0x2649a7=new _0x2672ca(this,this[_0x9cf8b2(0x42e)]),this[_0x9cf8b2(0x454)][_0x9cf8b2(0x187)](_0x42b7d8,_0x2649a7)),_0x2649a7;}[_0x55e150(0x517)](_0x45e40c,_0x58b13f){const _0x47ba84=_0x55e150;return this['getDataFieldManager'](_0x45e40c)[_0x47ba84(0x10d)][_0x58b13f];}[_0x55e150(0x12f)](_0xc56d3b,_0x21aae3,_0x4fb728){const _0x4715e9=_0x55e150;return this[_0x4715e9(0x286)](_0xc56d3b)[_0x4715e9(0x12f)](_0x21aae3,_0x4fb728);}[_0x55e150(0x2b7)](_0x28069c,_0x1c53d0){const _0x49744b=_0x55e150;let _0x24a413=this[_0x49744b(0x3da)][_0x49744b(0x97)](_0x28069c);_0x24a413||(_0x24a413=new Map(),this[_0x49744b(0x3da)][_0x49744b(0x187)](_0x28069c,_0x24a413));let _0x1b95f3=_0x24a413[_0x49744b(0x97)](_0x1c53d0);return _0x1b95f3||(_0x1b95f3=new Map(),_0x24a413['set'](_0x1c53d0,_0x1b95f3)),_0x1b95f3;}[_0x55e150(0x4cb)](_0x59cd2b,_0x89aeae,_0x144ae4,_0x25f506){const _0x59e889=_0x55e150;this['_ensurePivotMap'](_0x59cd2b,_0x89aeae)[_0x59e889(0x187)](_0x144ae4,_0x25f506);}['_deleteModelCache'](_0x15cc05,_0x2628e0,_0x2b81d9){const _0x52f87a=_0x55e150;var _0x58e3d8;if((_0x58e3d8=this[_0x52f87a(0x3da)]['get'](_0x15cc05))!=null&&(_0x58e3d8=_0x58e3d8['get'](_0x2628e0))!=null&&_0x58e3d8['get'](_0x2b81d9)){var _0x1fa0b3;(_0x1fa0b3=this[_0x52f87a(0x3da)][_0x52f87a(0x97)](_0x15cc05))==null||(_0x1fa0b3=_0x1fa0b3['get'](_0x2628e0))==null||_0x1fa0b3[_0x52f87a(0xe0)](_0x2b81d9);}}[_0x55e150(0x157)](_0x49972f,_0x2ff847){const _0x2bf059=_0x55e150;this[_0x2bf059(0x2a9)][_0x2bf059(0x187)](_0x49972f,_0x2ff847);}[_0x55e150(0x324)](_0x282a4f){const _0x45981e=_0x55e150;this[_0x45981e(0x2a9)]['delete'](_0x282a4f);}[_0x55e150(0x2b6)](_0xa94e1d,_0x3e6b4a){const _0x22deac=_0x55e150;let _0x148905=this[_0x22deac(0x4cf)][_0x22deac(0x97)](_0xa94e1d);_0x148905||(_0x148905=new Map(),this[_0x22deac(0x4cf)][_0x22deac(0x187)](_0xa94e1d,_0x148905));let _0x53060e=_0x148905[_0x22deac(0x97)](_0x3e6b4a);return _0x53060e||(_0x53060e=new Map(),_0x148905['set'](_0x3e6b4a,_0x53060e)),_0x53060e;}[_0x55e150(0xb6)](_0x588f36){const _0x3707b3=_0x55e150;var _0x45244c;let {unitId:_0x4665ee,subUnitId:_0x198089,pivotTableId:_0x3d3b17,pivotTableConfig:_0x284950,collectionConfig:_0x5d683e}=_0x588f36,_0x3d79c5={'runtimeId':(_0x45244c=this[_0x3707b3(0x35f)][_0x3707b3(0x97)](_0x4665ee))==null?void 0x0:_0x45244c[_0x3707b3(0x407)],'runtimeIds':this[_0x3707b3(0x263)](),'unitId':_0x4665ee,'subUnitId':_0x198089,'oldSubUnitId':_0x198089,'pivotTableId':_0x3d3b17,'pivotTableConfig':_0x284950,'collectionConfig':_0x5d683e,'pivotCacheConfigs':{[_0x284950[_0x3707b3(0x1f5)][_0x3707b3(0xa0)]]:this[_0x3707b3(0x103)][_0x3707b3(0x4b3)](_0x284950[_0x3707b3(0x1f5)][_0x3707b3(0xa0)])}};this[_0x3707b3(0x466)][_0x3707b3(0x1f9)](_0x237780['id'],_0x3d79c5,{'onlyLocal':!0x0});}[_0x55e150(0x204)](_0x3c2dd4,_0x3a33b2,_0x93ac2b,_0x2cfb7f,_0x14552e,_0x3219c7,_0x1fb8d8,_0x216264=!0x1){const _0x270fb1=_0x55e150;var _0x4e283e,_0x2d5866;this[_0x270fb1(0x466)][_0x270fb1(0x1f9)](_0x44fb41['id'],{'runtimeIds':this[_0x270fb1(0x263)](),'single':{'runtimeId':(_0x4e283e=this['_runtimeUnits'][_0x270fb1(0x97)](_0x3c2dd4))==null?void 0x0:_0x4e283e[_0x270fb1(0x407)],'unitId':_0x3c2dd4,'subUnitId':_0x3a33b2,'type':_0x93ac2b,'pivotTableId':_0x2cfb7f,'view':_0x14552e,'pivotConfig':_0x3219c7},'collectionConfig':{[_0x3c2dd4]:_0x1fb8d8},'pivotCacheConfigs':{[(_0x3219c7==null?void 0x0:_0x3219c7[_0x270fb1(0x1f5)][_0x270fb1(0xa0)])??_0x3c2dd4]:this[_0x270fb1(0x103)][_0x270fb1(0x4b3)]((_0x3219c7==null?void 0x0:_0x3219c7[_0x270fb1(0x1f5)][_0x270fb1(0xa0)])??_0x3c2dd4)}},{'onlyLocal':!0x0});let _0x37c5cc=!!((_0x2d5866=this['getPivotTableInstance'](_0x2cfb7f))!=null&&_0x2d5866[_0x270fb1(0x360)]()),_0x5886cc=this['getPivotTableConfig'](_0x3c2dd4,_0x3a33b2,_0x2cfb7f);_0x5886cc&&this['updateViewData']({'view':_0x14552e,'pivotTableId':_0x2cfb7f,'textInfo':this['getTextInfo'](),'isEmpty':_0x37c5cc,'targetCellInfo':_0x5886cc[_0x270fb1(0xf0)]},_0x216264);}['updateViewData'](_0x58a385,_0x4226be){const _0x39a88a=_0x55e150;var _0x2c5516,_0x30348e;let {targetCellInfo:_0x255e51,pivotTableId:_0x44bd10}=_0x58a385,{unitId:_0x21e05f,subUnitId:_0x499a94}=_0x255e51,_0x29920c=this[_0x39a88a(0x2b6)](_0x21e05f,_0x499a94),_0x4976a5=_0x29920c[_0x39a88a(0x97)](_0x44bd10),_0x32c87e,_0x128cab;_0x4976a5&&(_0x32c87e=_0x4976a5[_0x39a88a(0x2bd)],_0x128cab=_0x4976a5['matrix']);let {rangesCache:_0x371960,matrix:_0x6c761f}=_0x5d22b9({..._0x58a385,'direction':this['_direction'],'dateSystem':(_0x2c5516=(_0x30348e=this[_0x39a88a(0x42e)])[_0x39a88a(0x34e)])==null||(_0x2c5516=_0x2c5516[_0x39a88a(0x152)](_0x30348e,_0x255e51['unitId'],_0x3f8283[_0x39a88a(0x2f9)]['UNIVER_SHEET']))==null?void 0x0:_0x2c5516[_0x39a88a(0x51d)]()});_0x29920c['set'](_0x44bd10,{'rangeCache':_0x371960,'matrix':_0x6c761f,'oldMatrix':_0x128cab,'oldRangeCache':_0x32c87e}),this[_0x39a88a(0x269)]['set'](_0x44bd10,_0x58a385),_0x4226be||this[_0x39a88a(0x4ea)][_0x39a88a(0x21c)]({'unitId':_0x21e05f,'subUnitId':_0x499a94,'pivotTableId':_0x44bd10});}[_0x55e150(0x40e)](_0x164ace,_0x4f47d0,_0xa7404c,_0xb2384c,_0x58b0a7){const _0x2b902f=_0x55e150;var _0x46ab86,_0x1be08d;let _0x503c66=(_0x46ab86=this['_univerInstanceService'][_0x2b902f(0x34e)](_0x164ace))==null?void 0x0:_0x46ab86[_0x2b902f(0x1b0)]()['locale'];_0xb2384c[_0x2b902f(0x4a0)](_0x503c66===void 0x0||(_0x1be08d=_0x3f8283[_0x2b902f(0x38e)][_0x503c66])==null?void 0x0:_0x1be08d[_0x2b902f(0x199)]);let _0x3e9040=this['_sheetsPivotCacheService'][_0x2b902f(0x19e)](_0x164ace,_0xa7404c,_0x58b0a7['sourceRangeInfo'],this['getDataFieldManager'](_0x58b0a7[_0x2b902f(0x1f5)][_0x2b902f(0xa0)]),_0x58b0a7[_0x2b902f(0x3ae)]);_0x58b0a7[_0x2b902f(0x20e)]===void 0x0&&(_0x58b0a7[_0x2b902f(0x20e)]=''),_0x58b0a7[_0x2b902f(0x3ae)]=_0x3e9040[_0x2b902f(0x3ae)],this[_0x2b902f(0x4cb)](_0x164ace,_0x4f47d0,_0xa7404c,_0x58b0a7),this['_updatePivotTableInstanceCache'](_0xa7404c,_0xb2384c);}['removePivotTable'](_0x5f32b7,_0x415357,_0x207d8b){const _0x331380=_0x55e150;let _0x53eb8b=this[_0x331380(0x3a8)](_0x5f32b7,_0x415357,_0x207d8b),_0x7c006f=(_0x53eb8b==null?void 0x0:_0x53eb8b[_0x331380(0x1f5)]['unitId'])??_0x5f32b7,_0x3aaaa4=this[_0x331380(0x286)](_0x7c006f);_0x3aaaa4[_0x331380(0x19c)](_0x207d8b)[_0x331380(0x1bd)](_0x43168a=>{const _0x29ec4e=_0x331380;_0x3aaaa4[_0x29ec4e(0x4fa)](_0x43168a);}),this['removeCollections'](_0x7c006f,_0x207d8b),this[_0x331380(0x217)](_0x5f32b7,_0x415357,_0x207d8b),this[_0x331380(0x324)](_0x207d8b),this[_0x331380(0x269)][_0x331380(0xe0)](_0x207d8b),this[_0x331380(0x103)][_0x331380(0x2ad)](_0x5f32b7,_0x207d8b);}[_0x55e150(0x1b9)](_0x18fd48,_0x495cf7,_0x2cc594,_0x5dae95){const _0x2bdc3d=_0x55e150;_0x5dae95[_0x2bdc3d(0x20e)]===void 0x0&&(_0x5dae95[_0x2bdc3d(0x20e)]=''),this[_0x2bdc3d(0x4cb)](_0x18fd48,_0x495cf7,_0x2cc594,_0x5dae95);}[_0x55e150(0x9b)](_0x1a6bef,_0x51e345,_0x55cbcc,_0x114796,_0x2db636){const _0xf5e6d8=_0x55e150;let _0x3d03b9=this[_0xf5e6d8(0x3a8)](_0x1a6bef,_0x51e345,_0x55cbcc);if(!_0x3d03b9)return!0x1;try{let _0x24915f=this[_0xf5e6d8(0x103)][_0xf5e6d8(0x19e)](_0x1a6bef,_0x55cbcc,_0x114796,this['getDataFieldManager'](_0x114796[_0xf5e6d8(0xa0)]),_0x2db636);return _0x3d03b9[_0xf5e6d8(0x1f5)]={..._0x114796,'range':{..._0x114796[_0xf5e6d8(0x322)]}},_0x3d03b9[_0xf5e6d8(0x3ae)]=_0x24915f[_0xf5e6d8(0x3ae)],!0x0;}catch{return!0x1;}}['getPivotTableConfig'](_0x2dfee9,_0x415ac6,_0x518f7f){const _0x155314=_0x55e150;var _0x822a2d;let _0x45cf53=(_0x822a2d=this[_0x155314(0x3da)]['get'](_0x2dfee9))==null||(_0x822a2d=_0x822a2d[_0x155314(0x97)](_0x415ac6))==null?void 0x0:_0x822a2d[_0x155314(0x97)](_0x518f7f);if(_0x45cf53)return _0x45cf53;}[_0x55e150(0x1ae)](_0x369bc9,_0x19f08c,_0x5071b5){const _0x299b6a=_0x55e150;var _0x199c71;let _0x1513ed=(_0x199c71=this[_0x299b6a(0x3da)]['get'](_0x369bc9))==null||(_0x199c71=_0x199c71['get'](_0x19f08c))==null?void 0x0:_0x199c71['get'](_0x5071b5);if(_0x1513ed)return _0x1513ed[_0x299b6a(0x4ac)];}[_0x55e150(0x483)](_0x5a1d05){const _0x38f849=_0x55e150;return this[_0x38f849(0x2a9)][_0x38f849(0x97)](_0x5a1d05);}[_0x55e150(0x4da)](_0x5159a1,_0x437d46){const _0x51c08f=_0x55e150;return this[_0x51c08f(0x103)]['getReportPivotCacheId'](_0x5159a1,_0x437d46);}[_0x55e150(0x1e7)](_0x5dd672,_0x3a538e){const _0x1e1a1d=_0x55e150;return this[_0x1e1a1d(0x103)]['getReportHandle'](_0x5dd672,_0x3a538e);}[_0x55e150(0x3ab)](_0x1d0192){const _0x25237e=_0x55e150;this[_0x25237e(0x38c)]();let _0x42cde8=_0x1d0192['map'](_0x415f92=>{const _0x359285=_0x25237e;var _0x3b21eb;let _0x70a96f=_0x3f8283[_0x359285(0xe7)]['deepClone'](_0x415f92['config']);_0x70a96f['isEmpty']=_0x415f92[_0x359285(0x4a9)][_0x359285(0x360)]();let _0x55a24d={'targetCellInfo':_0x70a96f['targetCellInfo'],'pivotTableId':_0x415f92[_0x359285(0x173)],'view':_0x415f92[_0x359285(0x207)],'isEmpty':_0x70a96f['isEmpty'],'textInfo':this[_0x359285(0x4b2)](),'direction':this['_direction'],'dateSystem':(_0x3b21eb=this[_0x359285(0x42e)][_0x359285(0x34e)](_0x415f92['unitId']))==null?void 0x0:_0x3b21eb[_0x359285(0x51d)]()},{matrix:_0x4a17b2,rangesCache:_0x43d3ac}=_0x5d22b9(_0x55a24d),_0x3c1ad0=this[_0x359285(0x3fb)](_0x415f92['unitId'],_0x415f92[_0x359285(0x2d0)],_0x415f92['pivotTableId']);return{..._0x415f92,'config':_0x70a96f,'context':_0x55a24d,'cache':{'matrix':_0x4a17b2,'rangeCache':_0x43d3ac,'oldMatrix':_0x3c1ad0==null?void 0x0:_0x3c1ad0[_0x359285(0x46f)],'oldRangeCache':_0x3c1ad0==null?void 0x0:_0x3c1ad0[_0x359285(0x2bd)]}};}),_0x5cb01e=!0x1,_0x533674=!0x1;return{'commit':()=>{const _0x55324a=_0x25237e;if(this[_0x55324a(0x38c)](),!_0x5cb01e){_0x5cb01e=!0x0;for(let _0x1cccc3 of _0x42cde8){var _0x1c925f;let {unitId:_0x4454a0,subUnitId:_0x215ef6,pivotTableId:_0x306836}=_0x1cccc3,_0x58402f=_0x4454a0+'-'+_0x215ef6+'-'+_0x306836;clearTimeout((_0x1c925f=this[_0x55324a(0x393)]['get'](_0x58402f))==null?void 0x0:_0x1c925f[_0x55324a(0x266)]),this['_queryingMap'][_0x55324a(0xe0)](_0x58402f),this[_0x55324a(0x4cb)](_0x4454a0,_0x215ef6,_0x306836,_0x1cccc3[_0x55324a(0x2f5)]),this[_0x55324a(0x157)](_0x306836,_0x1cccc3['pivot']),this[_0x55324a(0x2b6)](_0x4454a0,_0x215ef6)[_0x55324a(0x187)](_0x306836,_0x1cccc3[_0x55324a(0x307)]),this[_0x55324a(0x269)]['set'](_0x306836,_0x1cccc3[_0x55324a(0x30a)]);}}},'publish':()=>{const _0x5159d2=_0x25237e;_0x5cb01e&&!_0x533674&&!this[_0x5159d2(0x332)]&&(_0x533674=!0x0,_0x42cde8[_0x5159d2(0x1bd)](({unitId:_0x512af1,subUnitId:_0x5e72e5,pivotTableId:_0x2e0848})=>this[_0x5159d2(0x4ea)]['next']({'unitId':_0x512af1,'subUnitId':_0x5e72e5,'pivotTableId':_0x2e0848})));}};}[_0x55e150(0x231)](_0x555484,_0x2e6200){const _0x12e1b6=_0x55e150;let _0x449454=this[_0x12e1b6(0x103)][_0x12e1b6(0x285)](_0x555484,_0x2e6200,!0x0),_0x2225e9=this[_0x12e1b6(0x103)][_0x12e1b6(0x15b)](_0x555484,_0x2e6200),_0x3f29a0=this[_0x12e1b6(0x286)](_0x555484)[_0x12e1b6(0x1cc)](_0x2225e9),_0x5e9d55='pivot-source-'+(0x0,_0x3f8283[_0x12e1b6(0x412)])(),_0x57164d=!0x1,_0x1d3fe2,_0x5d7f75={'pivotCacheId':_0x2e6200,'changed$':_0x449454['changed$'],'getDataFieldManager':()=>_0x449454[_0x12e1b6(0x286)](),'dispose':()=>{const _0x463cf1=_0x12e1b6;var _0x3dd4c3;_0x57164d||(_0x57164d=!0x0,this['_sourceLeases'][_0x463cf1(0xe0)](_0x5d7f75),(_0x3dd4c3=this[_0x463cf1(0x216)])==null||_0x3dd4c3[_0x463cf1(0x368)](_0x555484,_0x2225e9[_0x463cf1(0x2d0)],[_0x5e9d55]),_0x1d3fe2==null||_0x1d3fe2[_0x463cf1(0x169)](),_0x3f29a0[_0x463cf1(0x3f4)](),_0x449454[_0x463cf1(0x3f4)]());}},_0x4643ad=()=>{const _0x1535aa=_0x12e1b6;var _0x48ca05;return(_0x48ca05=this[_0x1535aa(0x216)])==null?void 0x0:_0x48ca05[_0x1535aa(0x274)](_0x555484,_0x2225e9[_0x1535aa(0x2d0)],_0x5e9d55,{'unitId':_0x555484,'subUnitId':_0x2225e9[_0x1535aa(0x2d0)],'dependencyRanges':[{..._0x2225e9,'sheetId':_0x2225e9[_0x1535aa(0x2d0)]}],'getDirtyData':(_0x3ef0c2,_0x40dd63)=>{const _0x3b441c=_0x1535aa;var _0x363de2,_0x32a115;return this[_0x3b441c(0x42b)](_0x555484,_0x2e6200,_0x40dd63,{'arrayFormulaCellDataMatrix':(_0x363de2=_0x40dd63[_0x3b441c(0x479)])==null||(_0x363de2=_0x363de2[_0x555484])==null?void 0x0:_0x363de2[_0x2225e9['subUnitId']],'unitDataMatrix':(_0x32a115=_0x40dd63['unitData'])==null||(_0x32a115=_0x32a115[_0x555484])==null?void 0x0:_0x32a115[_0x2225e9[_0x3b441c(0x2d0)]]}),{'runtimeCellData':{},'dirtyRanges':{}};}});};return _0x1d3fe2=_0x449454[_0x12e1b6(0x3c4)][_0x12e1b6(0x192)]({'next':()=>{const _0x1383fe=_0x12e1b6;var _0x2ea637;let _0x58f361=this[_0x1383fe(0x103)][_0x1383fe(0x15b)](_0x555484,_0x2e6200);!_0x58f361||_0x58f361['subUnitId']===_0x2225e9[_0x1383fe(0x2d0)]&&_0x3f8283[_0x1383fe(0x13e)]['equals'](_0x58f361[_0x1383fe(0x322)],_0x2225e9[_0x1383fe(0x322)])||((_0x2ea637=this[_0x1383fe(0x216)])==null||_0x2ea637[_0x1383fe(0x368)](_0x555484,_0x2225e9['subUnitId'],[_0x5e9d55]),_0x2225e9=_0x58f361,_0x4643ad());},'complete':()=>_0x5d7f75[_0x12e1b6(0x3f4)]()}),this['_sourceLeases'][_0x12e1b6(0xe9)](_0x5d7f75),_0x4643ad(),_0x5d7f75;}['refreshSource'](_0x1a2b6b,_0x5b4679,_0x473f7f={},_0x137225){const _0x2ca418=_0x55e150;let _0x513a74=this['_sheetsPivotCacheService'][_0x2ca418(0x15b)](_0x1a2b6b,_0x5b4679);if(!_0x513a74)return;let _0x3ea276=this[_0x2ca418(0x286)](_0x1a2b6b);this[_0x2ca418(0x103)][_0x2ca418(0x4e5)](_0x5b4679,_0x473f7f,()=>{const _0x37c6c6=_0x2ca418;let _0x40d648=[],_0x270adc={};return _0x3ea276[_0x37c6c6(0x37e)](_0x513a74)['forEach']((_0x2a67fb,_0x317de9)=>{const _0x337bd5=_0x37c6c6;let _0x5b6fdd=_0x3ea276[_0x337bd5(0x220)](_0x2a67fb);_0x5b6fdd&&(_0x40d648[_0x337bd5(0xc7)](_0x5b6fdd[_0x337bd5(0x416)]()),_0x270adc[_0x5b6fdd[_0x337bd5(0x416)]()]=_0x5b6fdd[_0x337bd5(0x25f)](),_0x3ea276[_0x337bd5(0x146)](_0x5b6fdd['getId'](),_0x513a74,_0x317de9,_0x137225));}),{'dirtyFieldIds':_0x40d648,'previousFieldNames':_0x270adc};});}['deleteUnitId'](_0x2da26e){const _0x266c11=_0x55e150;var _0x43ec42;for(let [_0x3e3909,_0x4b6769]of this['_queryingMap'])_0x4b6769[_0x266c11(0xa0)]===_0x2da26e&&(clearTimeout(_0x4b6769[_0x266c11(0x266)]),this[_0x266c11(0x393)][_0x266c11(0xe0)](_0x3e3909));this['_runtimeUnits'][_0x266c11(0xe0)](_0x2da26e),this[_0x266c11(0x103)][_0x266c11(0x308)](_0x2da26e),(_0x43ec42=this[_0x266c11(0x3da)][_0x266c11(0x97)](_0x2da26e))==null||_0x43ec42[_0x266c11(0x1bd)](_0x345605=>{_0x345605['forEach']((_0x298612,_0x34b4ce)=>{const _0x5ac8d8=_0x274d;this[_0x5ac8d8(0x269)]['delete'](_0x34b4ce),this[_0x5ac8d8(0x2a9)]['delete'](_0x34b4ce);});}),this[_0x266c11(0x3da)][_0x266c11(0xe0)](_0x2da26e);let _0x2fd609=this[_0x266c11(0x454)][_0x266c11(0x97)](_0x2da26e);_0x2fd609&&(_0x2fd609[_0x266c11(0x3f4)](),this['_dataFieldManagerCollection'][_0x266c11(0xe0)](_0x2da26e)),this[_0x266c11(0x4cf)]['delete'](_0x2da26e),this['needSameDeleteModel'][_0x266c11(0x1bd)](_0x32dbbb=>{const _0x29aa9b=_0x266c11;_0x32dbbb[_0x29aa9b(0x308)](_0x2da26e);});}[_0x55e150(0x51c)](_0x4ff092,_0x62b9e9,_0x25a952,_0x25e53b,_0xd109dc){const _0x41ee3b=_0x55e150;return this[_0x41ee3b(0x286)](_0x25a952[_0x41ee3b(0xa0)])[_0x41ee3b(0x51c)](_0x4ff092,_0x62b9e9,_0x25a952,_0x25e53b,_0xd109dc);}[_0x55e150(0x512)](_0x3cc1a4){const _0x187c6c=_0x55e150;return this['getDataFieldManager'](_0x3cc1a4[_0x187c6c(0xa0)])[_0x187c6c(0x512)](_0x3cc1a4);}[_0x55e150(0x281)](_0x2c214f,_0x3730cc,_0x9bb4cd){const _0x82bead=_0x55e150;this[_0x82bead(0x286)](_0x9bb4cd[_0x82bead(0xa0)])[_0x82bead(0x281)](_0x2c214f,_0x3730cc,_0x9bb4cd);}[_0x55e150(0x20d)](_0x2eba83,_0x1d34e6){const _0x2d60fd=_0x55e150;this[_0x2d60fd(0x286)](_0x2eba83)['deleteDataField'](_0x1d34e6);}['removeCollections'](_0x5c30ed,_0x104037){this['getDataFieldManager'](_0x5c30ed)['removeCollectionImp'](_0x104037);}[_0x55e150(0x32f)](_0x5784c9){const _0x2a4e6b=_0x55e150;this[_0x2a4e6b(0x466)][_0x2a4e6b(0x4dc)](_0x44fb41['id'])&&this['_commandService']['syncExecuteCommand'](_0x44fb41['id'],{'runtimeIds':this[_0x2a4e6b(0x263)](),'collectionConfig':{[_0x5784c9]:this['getDataFieldManager'](_0x5784c9)[_0x2a4e6b(0x4b3)]()},'pivotCacheConfigs':{[_0x5784c9]:this[_0x2a4e6b(0x103)][_0x2a4e6b(0x4b3)](_0x5784c9)}},{'onlyLocal':!0x0});}[_0x55e150(0x1ec)](_0x5d5fda,_0x1272f7){const _0x5c66aa=_0x55e150;var _0x48225a;return(_0x48225a=this[_0x5c66aa(0x3da)]['get'](_0x5d5fda))==null?void 0x0:_0x48225a['get'](_0x1272f7);}[_0x55e150(0x31c)](_0x86a1e5){const _0x426901=_0x55e150;for(let [_0x14f33e,_0x133af9]of this['_model'][_0x426901(0x4f5)]())for(let [_0xfe35c7,_0x4aca68]of _0x133af9['entries']())if(_0x4aca68[_0x426901(0x16c)](_0x86a1e5))return{'unitId':_0x14f33e,'subUnitId':_0xfe35c7};return null;}[_0x55e150(0x376)](_0x2742cc,_0x9ac9ff,_0x172727,_0x54b44b){const _0x5634ad=_0x55e150;let _0x34744a=this['_ensureViewDataMap'](_0x2742cc,_0x9ac9ff);_0x54b44b?_0x34744a['set'](_0x172727,_0x54b44b):_0x34744a[_0x5634ad(0xe0)](_0x172727),this[_0x5634ad(0x4ea)][_0x5634ad(0x21c)]({'unitId':_0x2742cc,'subUnitId':_0x9ac9ff,'pivotTableId':_0x172727});}[_0x55e150(0x3f4)](){const _0xc561f3=_0x55e150;this[_0xc561f3(0x35f)][_0xc561f3(0x1ce)]();for(let _0x524408 of this[_0xc561f3(0x1a8)])_0x524408[_0xc561f3(0x3f4)]();super[_0xc561f3(0x3f4)](),this['_model'][_0xc561f3(0x1ce)](),this[_0xc561f3(0x2a9)][_0xc561f3(0x1ce)](),this[_0xc561f3(0x4cf)][_0xc561f3(0x1ce)](),this['_viewTranslateContextCache'][_0xc561f3(0x1ce)](),this[_0xc561f3(0x393)][_0xc561f3(0x1bd)](({timer:_0x3cd6c6})=>clearTimeout(_0x3cd6c6)),this[_0xc561f3(0x393)][_0xc561f3(0x1ce)](),this[_0xc561f3(0x4e4)]['complete'](),this['_viewData$'][_0xc561f3(0x104)](),this[_0xc561f3(0x119)][_0xc561f3(0x104)](),this['_dataFieldManagerCollection'][_0xc561f3(0x1bd)](_0x9bb08e=>_0x9bb08e['dispose']()),this[_0xc561f3(0x454)][_0xc561f3(0x1ce)]();}[_0x55e150(0x3fb)](_0x6458db,_0x2b0b1f,_0x4716ad){const _0x362f35=_0x55e150;var _0xd78440;return((_0xd78440=this['_viewData'][_0x362f35(0x97)](_0x6458db))==null||(_0xd78440=_0xd78440[_0x362f35(0x97)](_0x2b0b1f))==null?void 0x0:_0xd78440['get'](_0x4716ad))||null;}[_0x55e150(0x131)](_0x20f6e7){const _0x5bca75=_0x55e150;this[_0x5bca75(0x313)](_0x20f6e7);}[_0x55e150(0x313)](_0xb0ca8){const _0x17009b=_0x55e150;let {token:_0x2b7b18,unitId:_0x57841c,subUnitId:_0x1a4727}=_0xb0ca8,_0x2f2673=_0x57841c+'-'+_0x1a4727+'-'+_0x2b7b18;if(this[_0x17009b(0x393)]['get'](_0x2f2673)){var _0xfb2408;clearTimeout((_0xfb2408=this['_queryingMap'][_0x17009b(0x97)](_0x2f2673))==null?void 0x0:_0xfb2408['timer']);}let _0x1e9226=setTimeout(()=>{const _0xc1dd42=_0x17009b;try{this['queryDirtyPivotTable'](_0xb0ca8);}catch(_0x428719){this[_0xc1dd42(0x1f7)][_0xc1dd42(0x97)](_0x3f8283[_0xc1dd42(0x1d9)])['error'](_0xc1dd42(0x12d),{'unitId':_0x57841c,'subUnitId':_0x1a4727,'pivotTableId':_0x2b7b18,'error':_0x428719});}finally{this['_queryingMap'][_0xc1dd42(0xe0)](_0x2f2673);}},0x1e);this[_0x17009b(0x393)]['set'](_0x2f2673,{'unitId':_0x57841c,'timer':_0x1e9226});}[_0x55e150(0x449)](_0x58a285){const _0x287bbd=_0x55e150;let {unitId:_0x5a0756,subUnitId:_0x492c32,token:_0x427af2,type:_0x31439b,pivotConfig:_0x5c43ea}=_0x58a285,_0x174cc3=this[_0x287bbd(0x483)](_0x427af2),_0x62ebdf=_0x174cc3==null?void 0x0:_0x174cc3[_0x287bbd(0x1a2)](),_0x1e2188=_0x5c43ea??this[_0x287bbd(0x3a8)](_0x5a0756,_0x492c32,_0x427af2);_0x1e2188&&(_0x1e2188[_0x287bbd(0x360)]=!!(_0x174cc3!=null&&_0x174cc3['isEmpty']())),(_0x62ebdf||_0x31439b===_0x287bbd(0xe0))&&this[_0x287bbd(0x204)](_0x5a0756,_0x492c32,_0x31439b,_0x427af2,_0x62ebdf,_0x1e2188,this[_0x287bbd(0x286)](_0x5a0756)[_0x287bbd(0x4b3)](),!0x1);}[_0x55e150(0x4b3)](_0x34e1dd){const _0xf93952=_0x55e150;let _0x4264c2={'dataFieldManagerConfig':{},'pivotTableConfigs':{},'pivotCacheConfigs':{[_0x34e1dd]:this[_0xf93952(0x103)][_0xf93952(0x4b3)](_0x34e1dd)}};if(this['getDataFieldManager'](_0x34e1dd)&&(_0x4264c2[_0xf93952(0x238)][_0x34e1dd]=this['getDataFieldManager'](_0x34e1dd)[_0xf93952(0x4b3)]()),this['_model'][_0xf93952(0x97)](_0x34e1dd)){_0x4264c2[_0xf93952(0x200)][_0x34e1dd]={};let _0xcec663=this[_0xf93952(0x3da)][_0xf93952(0x97)](_0x34e1dd);_0xcec663!=null&&_0xcec663[_0xf93952(0xef)]&&[..._0xcec663[_0xf93952(0x1b3)]()]['forEach'](_0x59d598=>{const _0xc88944=_0xf93952;let _0x5857a7=_0xcec663[_0xc88944(0x97)](_0x59d598);_0x5857a7!=null&&_0x5857a7[_0xc88944(0xef)]&&(_0x4264c2[_0xc88944(0x200)][_0x34e1dd][_0x59d598]={},[..._0x5857a7[_0xc88944(0x1b3)]()][_0xc88944(0x1bd)](_0x67116=>{const _0x58c7b6=_0xc88944;let _0x975308=_0x5857a7['get'](_0x67116);_0x975308&&(_0x4264c2[_0x58c7b6(0x200)][_0x34e1dd][_0x59d598][_0x67116]=_0x975308);}));});}return _0x4264c2;}[_0x55e150(0x3b3)](_0x5d72c8){const _0x47ad88=_0x55e150;let {dataFieldManagerConfig:_0x47dd07,pivotTableConfigs:_0x3c153a,pivotCacheConfigs:_0xbd1095}=_0x5d72c8;_0x47dd07&&Object['keys'](_0x47dd07)[_0x47ad88(0x1bd)](_0x1b8eb8=>{const _0x45e4b8=_0x47ad88;let _0x5ea3c8=this[_0x45e4b8(0x286)](_0x1b8eb8);_0x5ea3c8[_0x45e4b8(0x3b3)](_0x47dd07[_0x1b8eb8]);let _0x3a13ed=_0xbd1095==null?void 0x0:_0xbd1095[_0x1b8eb8];_0x3a13ed&&(this[_0x45e4b8(0x103)]['fromJSON'](_0x1b8eb8,_0x3a13ed,_0x5ea3c8),Object[_0x45e4b8(0x20b)](_0x3a13ed)[_0x45e4b8(0x1bd)](_0x272872=>{const _0x1257de=_0x45e4b8;_0x272872[_0x1257de(0x2d9)]&&this['refreshSource'](_0x1b8eb8,_0x272872[_0x1257de(0x3ae)]);}));});let _0x3a643a=[];if(_0x3c153a){let {ls:_0xa4937,pbk:_0x37a57a}=this[_0x47ad88(0x1f7)]['get'](_0x3f8283['IConfigService'])['getConfig'](_0x5067df[_0x47ad88(0x327)])??{},_0x5b2795=_0x340686(0x1,_0xa4937,_0x37a57a)[_0x47ad88(0x295)];Object['keys'](_0x3c153a)[_0x47ad88(0x1bd)](_0x231188=>{const _0x2aa5f4=_0x47ad88;let _0x111a7d=0x0,_0x5e5a89=_0x3c153a[_0x231188];Object['keys'](_0x5e5a89)[_0x2aa5f4(0x1bd)](_0x10edea=>{const _0x33ec3a=_0x2aa5f4;let _0x32345a=_0x5e5a89[_0x10edea];Object[_0x33ec3a(0x1b3)](_0x32345a)['forEach'](_0x34695c=>{const _0x49cbf6=_0x33ec3a;let _0x5bd0b3=_0x32345a[_0x34695c];if(_0x5bd0b3){var _0x4456e8;if(_0x111a7d>=_0x5b2795)return;_0x111a7d++;let _0x4d8bdc=this[_0x49cbf6(0x286)](_0x231188),_0x5024e2=_0x4d8bdc[_0x49cbf6(0x10d)][_0x34695c],_0x1a6eb6=_0x5024e2[_0x49cbf6(0x28a)](),_0x4d6cdd=0x0,_0x1557b9=[];for(let _0x5b7235 of _0x1a6eb6){let _0x2f4992=_0x5024e2[_0x49cbf6(0x53c)](_0x5b7235);if((0x0,_0x4078f7['isBaseGroupField'])(_0x2f4992)){let _0xd02acf=_0x2f4992['getOriginFieldId'](),_0x2deaa7=_0x5024e2[_0x49cbf6(0x53c)](_0xd02acf);_0x2deaa7&&_0x1557b9[_0x49cbf6(0xc7)]([_0x2f4992,_0x2deaa7]);}else _0x4d8bdc['refreshDataField'](_0x5b7235,_0x5bd0b3[_0x49cbf6(0x1f5)],_0x4d6cdd),_0x4d6cdd++;}_0x1557b9[_0x49cbf6(0x1bd)](([_0x23bc42,_0x521a1c])=>{const _0xc8201c=_0x49cbf6;var _0x59327f;_0x2a257d((_0x59327f=this[_0xc8201c(0x42e)][_0xc8201c(0x34e)](_0x231188,_0x3f8283['UniverInstanceType'][_0xc8201c(0x198)]))==null?void 0x0:_0x59327f['getDateSystem']()),_0x23bc42[_0xc8201c(0x513)](_0x521a1c);});let _0x579129=new _0x4078f7['PivotTable'](_0x5024e2);_0x579129[_0x49cbf6(0x3b3)](_0x5bd0b3[_0x49cbf6(0x4ac)]),_0x5bd0b3[_0x49cbf6(0x360)]=_0x579129[_0x49cbf6(0x360)](),this[_0x49cbf6(0x40e)](_0x231188,_0x10edea,_0x34695c,_0x579129,_0x5bd0b3);let _0x57e40d=_0x579129[_0x49cbf6(0x1a2)]();_0x3a643a[_0x49cbf6(0xc7)]({'unitId':_0x231188,'subUnitId':_0x10edea,'pivotTableId':_0x34695c,'runtimeId':(_0x4456e8=this[_0x49cbf6(0x35f)][_0x49cbf6(0x97)](_0x231188))==null?void 0x0:_0x4456e8[_0x49cbf6(0x407)],'view':_0x57e40d[_0x49cbf6(0x4b3)](),'pivotConfig':_0x5bd0b3,'type':_0x49cbf6(0xe9)});let _0x447675=_0x5bd0b3[_0x49cbf6(0x360)],_0x36d406={'view':_0x57e40d,'pivotTableId':_0x34695c,'textInfo':this[_0x49cbf6(0x4b2)](),'isEmpty':_0x447675,'targetCellInfo':_0x5bd0b3[_0x49cbf6(0xf0)]};this[_0x49cbf6(0x27f)](_0x36d406,!0x1);}});}),this[_0x2aa5f4(0x103)][_0x2aa5f4(0x3b2)](_0x231188);});}_0x47dd07&&Object[_0x47ad88(0x1b3)](_0x47dd07)[_0x47ad88(0x1bd)](_0x55bdd7=>{const _0x26fc44=_0x47ad88;let _0x443dff=this[_0x26fc44(0x286)](_0x55bdd7);this[_0x26fc44(0x119)][_0x26fc44(0x21c)](_0x443dff[_0x26fc44(0x10d)]);}),this[_0x47ad88(0x466)][_0x47ad88(0x1f9)](_0x44fb41['id'],{'batch':_0x3a643a,'runtimeIds':this[_0x47ad88(0x263)](),'collectionConfig':_0x47dd07,'pivotCacheConfigs':Object[_0x47ad88(0x338)](Object['keys'](_0x47dd07??{})[_0x47ad88(0x1e6)](_0x5110bc=>[_0x5110bc,this[_0x47ad88(0x103)][_0x47ad88(0x4b3)](_0x5110bc)]))},{'onlyLocal':!0x0});}[_0x55e150(0x1d1)](){const _0x408baf=_0x55e150;this['disposeWithMe'](this[_0x408baf(0x137)][_0x408baf(0x289)]({'toJson':_0x2bc925=>JSON['stringify'](this[_0x408baf(0x4b3)](_0x2bc925)),'parseJson':_0x4fab99=>{if(!_0x4fab99)return{};try{return JSON['parse'](_0x4fab99);}catch{return{};}},'businesses':[_0x3f8283[_0x408baf(0x2f9)][_0x408baf(0x198)]],'pluginName':_0x1959c0,'onLoad':(_0x423281,_0x486bd4)=>{const _0xfade6b=_0x408baf;this[_0xfade6b(0x3b3)](_0x486bd4);},'onUnLoad':_0x425c16=>{const _0x2ce1ae=_0x408baf;this[_0x2ce1ae(0x308)](_0x425c16);}}));}};_0x30eff7=_0x174b33([_0x181d02(0x0,(0x0,_0x3f8283['Inject'])(_0x3f8283[_0x55e150(0x1c6)])),_0x181d02(0x1,_0x3f8283['IUniverInstanceService']),_0x181d02(0x2,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x3f8283[_0x55e150(0x257)])),_0x181d02(0x3,_0x3f8283[_0x55e150(0x3cb)]),_0x181d02(0x4,(0x0,_0x3f8283['Inject'])(_0x3f8283[_0x55e150(0x41c)])),_0x181d02(0x5,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x2fd000)),_0x181d02(0x6,(0x0,_0x3f8283[_0x55e150(0x45d)])(_0x1ce484[_0x55e150(0x1ba)]))],_0x30eff7);let _0x356bc4={0x0:{0x0:{'v':_0x55e150(0x38f),'s':_0x3cdf47}},0x2:{0x1:{'v':'','s':_0x3cdf47},0x2:{'v':'','s':_0x3cdf47},0x3:{'v':_0x55e150(0x168),'s':_0x3cdf47},0x4:{'v':'','s':_0x3cdf47},0x5:{'v':'','s':_0x3cdf47}},0x3:{0x0:{'v':'','s':_0x3cdf47},0x1:{'v':'','s':_0x5de7c4},0x2:{'v':'','s':_0x5de7c4},0x3:{'v':'','s':_0x5de7c4},0x4:{'v':'','s':_0x5de7c4},0x5:{'v':'','s':_0x5de7c4}},0x4:{0x0:{'v':'','s':_0x3cdf47},0x1:{'v':'','s':_0x5de7c4},0x2:{'v':'','s':_0x5de7c4},0x3:{'v':'','s':_0x5de7c4},0x4:{'v':'','s':_0x5de7c4},0x5:{'v':'','s':_0x5de7c4}},0x5:{0x0:{'v':'','s':_0x3cdf47},0x1:{'v':'','s':_0x5de7c4},0x2:{'v':'','s':_0x5de7c4},0x3:{'v':'','s':_0x5de7c4},0x4:{'v':'','s':_0x5de7c4},0x5:{'v':'','s':_0x5de7c4}},0x6:{0x0:{'v':'','s':_0x3cdf47},0x1:{'v':'','s':_0x5de7c4},0x2:{'v':'','s':_0x5de7c4},0x3:{'v':'','s':_0x5de7c4},0x4:{'v':'','s':_0x5de7c4},0x5:{'v':'','s':_0x5de7c4}},0x7:{0x0:{'v':'','s':_0x3cdf47},0x1:{'v':'','s':_0x5de7c4},0x2:{'v':'','s':_0x5de7c4},0x3:{'v':'','s':_0x5de7c4},0x4:{'v':'','s':_0x5de7c4},0x5:{'v':'','s':_0x5de7c4}},0x8:{0x0:{'v':_0x55e150(0x18e),'s':_0x3cdf47},0x1:{'v':'','s':_0x5de7c4},0x2:{'v':'','s':_0x5de7c4},0x3:{'v':_0x55e150(0x20b),'s':_0x5de7c4},0x4:{'v':'','s':_0x5de7c4},0x5:{'v':'','s':_0x5de7c4}},0x9:{0x0:{'v':'','s':_0x3cdf47},0x1:{'v':'','s':_0x5de7c4},0x2:{'v':'','s':_0x5de7c4},0x3:{'v':'','s':_0x5de7c4},0x4:{'v':'','s':_0x5de7c4},0x5:{'v':'','s':_0x5de7c4}},0xa:{0x0:{'v':'','s':_0x3cdf47},0x1:{'v':'','s':_0x5de7c4},0x2:{'v':'','s':_0x5de7c4},0x3:{'v':'','s':_0x5de7c4},0x4:{'v':'','s':_0x5de7c4},0x5:{'v':'','s':_0x5de7c4}},0xb:{0x0:{'v':'','s':_0x3cdf47},0x1:{'v':'','s':_0x5de7c4},0x2:{'v':'','s':_0x5de7c4},0x3:{'v':'','s':_0x5de7c4},0x4:{'v':'','s':_0x5de7c4},0x5:{'v':'','s':_0x5de7c4}},0xc:{0x0:{'v':'','s':_0x3cdf47},0x1:{'v':'','s':_0x5de7c4},0x2:{'v':'','s':_0x5de7c4},0x3:{'v':'','s':_0x5de7c4},0x4:{'v':'','s':_0x5de7c4},0x5:{'v':'','s':_0x5de7c4}},0xd:{0x0:{'v':'','s':_0x3cdf47},0x1:{'v':'','s':_0x5de7c4},0x2:{'v':'','s':_0x5de7c4},0x3:{'v':'','s':_0x5de7c4},0x4:{'v':'','s':_0x5de7c4},0x5:{'v':'','s':_0x5de7c4}}},_0x91eeb3={'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':[]},_0x8bf98=(_0x556cc4,_0x357158,_0x1c58b7='ltr')=>{const _0x2d0160=_0x55e150;let _0x505998=new _0x3f8283[(_0x2d0160(0x2e4))](),_0x39d75a=new _0x3f8283[(_0x2d0160(0x2e4))](_0x356bc4),{row:_0xa76159,col:_0xc9260b}=_0x357158,_0x475bc9={'startColumn':_0xc9260b,'endColumn':_0xc9260b+0x6-0x1,'direction':_0x1c58b7};_0x39d75a['forValue']((_0xea6fcb,_0x9a949d,_0x26bcd1)=>{const _0x152320=_0x2d0160;let _0x5ca017='';_0x26bcd1['v']===_0x152320(0x38f)?_0x5ca017=_0x556cc4[_0x152320(0x38f)]:_0x26bcd1['v']===_0x152320(0x18e)?_0x5ca017=_0x556cc4[_0x152320(0x18e)]:_0x26bcd1['v']===_0x152320(0x168)?_0x5ca017=_0x556cc4[_0x152320(0x168)]:_0x26bcd1['v']===_0x152320(0x20b)&&(_0x5ca017=_0x556cc4[_0x152320(0x20b)]);let _0x40bbba=_0x4b40f9(_0x475bc9,_0x9a949d+_0xc9260b);_0x505998[_0x152320(0x1c4)](_0xea6fcb+_0xa76159,_0x40bbba,{..._0x26bcd1,'v':_0x5ca017});});let _0x295c3a=_0x3f8283[_0x2d0160(0xe7)][_0x2d0160(0x1e3)](_0x91eeb3);return Object[_0x2d0160(0x1b3)](_0x91eeb3)[_0x2d0160(0x1bd)](_0x3b734c=>{const _0x18ac31=_0x2d0160;_0x295c3a[_0x3b734c]=_0x91eeb3[_0x3b734c][_0x18ac31(0x1e6)](_0xb32a1e=>_0x3fe295(_0x475bc9,{..._0xb32a1e,'startRow':_0xb32a1e[_0x18ac31(0x33e)]+_0xa76159,'endRow':_0xb32a1e[_0x18ac31(0x315)]+_0xa76159,'startColumn':_0xb32a1e[_0x18ac31(0x2fc)]+_0xc9260b,'endColumn':_0xb32a1e[_0x18ac31(0x221)]+_0xc9260b}));}),{'matrixCache':_0x505998,'rangesCache':_0x295c3a};};function _0x10f255(_0x5a5cff,_0xe854b9){const _0x16a5f4=_0x55e150;let _0x686c3c='',_0x455ff0=this['getTextInfo']();switch(_0xe854b9){case _0x4078f7[_0x16a5f4(0x385)][_0x16a5f4(0x4a4)]:_0x686c3c=_0x455ff0['sheets-pivot.averageName'];break;case _0x4078f7[_0x16a5f4(0x385)][_0x16a5f4(0x295)]:_0x686c3c=_0x455ff0['sheets-pivot.countName'];break;case _0x4078f7[_0x16a5f4(0x385)]['countNums']:_0x686c3c=_0x455ff0['sheets-pivot.countNumsName'];break;case _0x4078f7[_0x16a5f4(0x385)][_0x16a5f4(0x226)]:_0x686c3c=_0x455ff0['sheets-pivot.maxName'];break;case _0x4078f7[_0x16a5f4(0x385)][_0x16a5f4(0x52a)]:_0x686c3c=_0x455ff0[_0x16a5f4(0x26d)];break;case _0x4078f7['PivotSubtotalTypeEnum'][_0x16a5f4(0x519)]:_0x686c3c=_0x455ff0['sheets-pivot.productName'];break;case _0x4078f7[_0x16a5f4(0x385)]['stdDev']:_0x686c3c=_0x455ff0[_0x16a5f4(0xb2)];break;case _0x4078f7[_0x16a5f4(0x385)][_0x16a5f4(0x278)]:_0x686c3c=_0x455ff0[_0x16a5f4(0x242)];break;case _0x4078f7[_0x16a5f4(0x385)]['sum']:_0x686c3c=_0x455ff0[_0x16a5f4(0x136)];break;case _0x4078f7['PivotSubtotalTypeEnum']['var']:_0x686c3c=_0x455ff0[_0x16a5f4(0x282)];break;case _0x4078f7[_0x16a5f4(0x385)][_0x16a5f4(0x4d0)]:_0x686c3c=_0x455ff0['sheets-pivot.varpName'];break;default:return _0x5a5cff;}return _0x39f881(_0x455ff0,_0x16a5f4(0x4a5),'{0}{1}',_0x686c3c,_0x4accba(_0x5a5cff,_0x686c3c));}function _0x5eb235(_0x144750,_0xa44776,_0x5da9fd,_0x42f95f,_0x1c1eb2){const _0x7b4959=_0x55e150;let _0x1a2c9b=_0x351e65(_0x144750,_0xa44776,_0x5da9fd,_0x1c1eb2);if(!_0x1a2c9b)return;let {area:_0x5b124e,info:_0x564956,headerInfo:_0x3084e5,data:_0x4b324b,tableFieldId:_0x1a3d06}=_0x1a2c9b,_0x5e6df5=_0x1a3d06;if(_0x5b124e===_0x7b4959(0x357)){let _0x59ec0b=_0x4b324b==null?void 0x0:_0x4b324b['fi'];_0x59ec0b!==void 0x0&&(_0x5e6df5=_0x42f95f[_0x7b4959(0x15f)](_0x59ec0b));}return{'filterId':_0x5e6df5,'info':_0x564956,'data':_0x4b324b,'headerInfo':_0x3084e5};}function _0x351e65(_0x3d7867,_0x4eab25,_0xa52f3e,_0x3371cb){const _0x10caa1=_0x55e150;let _0x4e7885=(0x0,_0x3f8283[_0x10caa1(0x309)])(_0x3d7867,_0x4eab25),{rangesInfo:_0x2d3e42,areaInfo:_0x1400fe,headerMap:_0x436a8d,projection:_0x2a9e0c}=_0x3371cb;if(!_0x2d3e42||!_0x1400fe||!_0x436a8d)return;let _0x2f592e,_0x2186ef=Object[_0x10caa1(0x1b3)](_0x2d3e42)['find'](_0x4faa5b=>(_0x2f592e=_0x2d3e42[_0x4faa5b][_0x10caa1(0x2da)](_0x34727a=>_0x3f8283[_0x10caa1(0x13e)]['contains'](_0x34727a,_0x4e7885)),!!_0x2f592e)),_0x313c99=_0x1400fe['rowInfo'][_0x3d7867],_0xdbb0ca=_0x1400fe[_0x10caa1(0x4e9)][_0x4eab25],_0x294d1a,_0x266d40;if(_0x2186ef===_0x10caa1(0x45e))_0x294d1a=_0x313c99,_0x266d40=_0x436a8d[_0x10caa1(0x268)][_0x4eab25];else{if(_0x2186ef===_0x10caa1(0x419)&&_0x2f592e){if(_0x294d1a=_0xdbb0ca,(_0xa52f3e==null?void 0x0:_0xa52f3e[_0x10caa1(0x2e3)])===_0x4078f7[_0x10caa1(0x105)][_0x10caa1(0xd5)]||(_0xa52f3e==null?void 0x0:_0xa52f3e[_0x10caa1(0x2e3)])===_0x4078f7['PivotCellStyleTypeEnum'][_0x10caa1(0x369)])_0x266d40=_0x436a8d['colHeaderMap'][_0x3d7867];else{let _0x2b2e3a=_0x2a9e0c?_0x4b40f9(_0x2a9e0c,_0x4eab25):_0x4eab25,_0x5dc994=_0x2a9e0c?Math[_0x10caa1(0x52a)](_0x4b40f9(_0x2a9e0c,_0x2f592e[_0x10caa1(0x2fc)]),_0x4b40f9(_0x2a9e0c,_0x2f592e[_0x10caa1(0x221)])):_0x2f592e[_0x10caa1(0x2fc)];_0x266d40=_0x436a8d[_0x10caa1(0x2c5)][_0x3d7867+0x1+_0x2b2e3a-_0x5dc994];}}else _0x2186ef===_0x10caa1(0x43c)&&(_0x294d1a=_0x1400fe['cornerInfo'][_0x4eab25]);}if(!_0x2186ef)return;let _0x1287df=(_0xa52f3e==null?void 0x0:_0xa52f3e['pbt'])===_0x4078f7[_0x10caa1(0x105)][_0x10caa1(0xd5)]||(_0xa52f3e==null?void 0x0:_0xa52f3e[_0x10caa1(0x2e3)])===_0x4078f7[_0x10caa1(0x105)][_0x10caa1(0x369)]?(_0x266d40==null?void 0x0:_0x266d40[_0x10caa1(0x163)])??(_0x294d1a==null?void 0x0:_0x294d1a[_0x10caa1(0x163)]):(_0x294d1a==null?void 0x0:_0x294d1a[_0x10caa1(0x163)])??(_0x266d40==null?void 0x0:_0x266d40[_0x10caa1(0x163)]);return{'area':_0x2186ef,'info':_0x294d1a,'rowInfo':_0x313c99,'columnInfo':_0xdbb0ca,'data':_0xa52f3e,'headerInfo':_0x266d40,'tableFieldId':_0x1287df};}function _0x1b7003(_0x542cd2,_0x41921e){const _0x484477=_0x55e150;var _0x2259e5,_0x5e0663,_0x382b44,_0x2538b0;if(_0x41921e[_0x484477(0x337)]===0x0)return;let _0x2e16b7=_0x1fe846=>Number[_0x484477(0x219)](_0x1fe846)&&_0x1fe846>=0x0?_0x41921e[_0x1fe846]:void 0x0,_0x20e5cb=((_0x2259e5=_0x542cd2[_0x484477(0xd8)])==null?void 0x0:_0x2259e5[_0x484477(0x45f)])??-0x1,_0x16d61d=((_0x5e0663=_0x542cd2[_0x484477(0x1cd)])==null?void 0x0:_0x5e0663[_0x484477(0x45f)])??-0x1,_0x2dfaea=Number[_0x484477(0x219)](_0x20e5cb)&&_0x20e5cb>=-0x1&&Number[_0x484477(0x219)](_0x16d61d)&&_0x16d61d>=-0x1;if(_0x542cd2['area']===_0x484477(0x3c2)){if(!_0x542cd2[_0x484477(0xd8)]||!_0x542cd2[_0x484477(0x1cd)]||!_0x2dfaea)return;let _0x16f6b3=Math[_0x484477(0x226)](_0x20e5cb,_0x16d61d);return _0x16f6b3===-0x1&&_0x41921e[_0x484477(0x337)]===0x1?_0x41921e[0x0]:_0x2e16b7(_0x16f6b3);}if(_0x542cd2[_0x484477(0x35a)]!==_0x484477(0x45e)&&_0x542cd2[_0x484477(0x35a)]!==_0x484477(0x419))return;if(_0x542cd2[_0x484477(0x163)]&&_0x41921e['includes'](_0x542cd2[_0x484477(0x163)]))return _0x542cd2[_0x484477(0x163)];if(!((_0x382b44=_0x542cd2[_0x484477(0x118)])!=null&&_0x382b44[_0x484477(0x26f)])&&!((_0x2538b0=_0x542cd2['headerInfo'])!=null&&_0x2538b0[_0x484477(0x26f)])||!_0x2dfaea)return;let _0x396bc4=Math[_0x484477(0x226)](_0x20e5cb,_0x16d61d);return _0x396bc4===-0x1&&_0x41921e['length']===0x1?_0x41921e[0x0]:_0x2e16b7(_0x396bc4);}function _0x4cc1f9(_0x1c605b,_0x26fad9){const _0x43fa2d=_0x55e150;var _0x394cee,_0x37f47a;let _0x3fa083=_0x1c605b[_0x43fa2d(0x163)],_0x25c98d,_0x2ddbea;if(_0x1c605b[_0x43fa2d(0x35a)]===_0x43fa2d(0x45e))_0x25c98d=_0x4078f7[_0x43fa2d(0x149)][_0x43fa2d(0x438)],_0x2ddbea=_0x26fad9[_0x43fa2d(0x477)];else{if(_0x1c605b[_0x43fa2d(0x35a)]===_0x43fa2d(0x419))_0x25c98d=_0x4078f7[_0x43fa2d(0x149)][_0x43fa2d(0x142)],_0x2ddbea=_0x26fad9[_0x43fa2d(0x4bf)];else{if(_0x1c605b[_0x43fa2d(0x35a)]===_0x43fa2d(0x43c)&&_0x3fa083){let _0x4c0165=_0x26fad9[_0x43fa2d(0x477)][_0x43fa2d(0xf1)](_0x3fa083);if(_0x4c0165===_0x26fad9['columnFields'][_0x43fa2d(0xf1)](_0x3fa083))return;_0x25c98d=_0x4c0165?_0x4078f7[_0x43fa2d(0x149)][_0x43fa2d(0x438)]:_0x4078f7['PivotTableFiledAreaEnum']['Column'],_0x2ddbea=_0x4c0165?_0x26fad9[_0x43fa2d(0x477)]:_0x26fad9['columnFields'];}else return;}}let _0x433b98=_0x1c605b[_0x43fa2d(0x118)];if((_0x433b98==null?void 0x0:_0x433b98[_0x43fa2d(0x1b1)])===_0x43fa2d(0x3d7)||(_0x433b98==null?void 0x0:_0x433b98[_0x43fa2d(0x1b1)])==='value'||_0x433b98!=null&&_0x433b98[_0x43fa2d(0x26f)]||(_0x394cee=_0x1c605b[_0x43fa2d(0x3f1)])!=null&&_0x394cee['isValue']||!_0x3fa083||!_0x2ddbea[_0x43fa2d(0xf1)](_0x3fa083)||!_0x26fad9[_0x43fa2d(0x3d4)][_0x3fa083])return;let _0x1aa181=_0x26fad9[_0x43fa2d(0xee)][_0x43fa2d(0x38f)](_0x5febb0=>!!_0x26fad9[_0x43fa2d(0xa5)][_0x5febb0]),_0x3e3d4e=(_0x37f47a=_0x26fad9[_0x43fa2d(0x509)])==null||(_0x37f47a=_0x37f47a['find'](_0x1491ac=>_0x1491ac['fieldId']===_0x3fa083))==null?void 0x0:_0x37f47a[_0x43fa2d(0x93)]['valueFieldId'],_0x44a3c2=_0x3e3d4e&&_0x1aa181[_0x43fa2d(0xf1)](_0x3e3d4e)?_0x3e3d4e:_0x1aa181['length']===0x1?_0x1aa181[0x0]:void 0x0;return{'axis':_0x25c98d,'targetFieldId':_0x3fa083,..._0x44a3c2?{'defaultValueFieldId':_0x44a3c2}:{}};}function _0x575b2e(_0x42f84c,_0x672ebf,_0x26361c){const _0x199c00=_0x55e150;let _0x1c666c=_0x42f84c[_0x199c00(0x3dc)],_0xe3754c=_0x1c666c[_0x199c00(0x28a)](),_0x3d56d5=new Set();_0x42f84c['iterateField'](_0x6088b5=>{const _0x4dc424=_0x199c00;_0x3d56d5['add'](_0x6088b5[_0x4dc424(0x19d)]);});let _0x5e1605=_0xe3754c[_0x199c00(0x1e6)](_0x4f50e8=>{const _0x5d8d09=_0x199c00;let _0x3eebac=_0x1c666c[_0x5d8d09(0x53c)](_0x4f50e8);return{'checked':_0x3d56d5['has'](_0x4f50e8),'dataFieldId':_0x3eebac['id'],'id':_0x3eebac['id'],'name':_0x1c666c['getDisplayName'](_0x3eebac['id']),'type':_0x3eebac[_0x5d8d09(0x3bf)](),'pivotTableId':_0x672ebf};}),_0x158d6c=[];_0x42f84c[_0x199c00(0x150)](_0x4078f7['PivotTableFiledAreaEnum'][_0x199c00(0x438)],_0x53b90a=>{const _0x4a232f=_0x199c00;_0x158d6c[_0x4a232f(0xc7)]({'dataFieldId':_0x53b90a[_0x4a232f(0x19d)],'tableFieldId':_0x53b90a['getId'](),'displayName':_0x53b90a[_0x4a232f(0x3d8)]()});});let _0x32a9f2=[];_0x42f84c['iterateFieldByArea'](_0x4078f7[_0x199c00(0x149)][_0x199c00(0x142)],_0x19ca31=>{const _0x261a55=_0x199c00;_0x32a9f2[_0x261a55(0xc7)]({'dataFieldId':_0x19ca31['dataFieldId'],'tableFieldId':_0x19ca31[_0x261a55(0x416)](),'displayName':_0x19ca31[_0x261a55(0x3d8)]()});});let _0x450214=[];if(_0x42f84c['iterateFieldByArea'](_0x4078f7[_0x199c00(0x149)][_0x199c00(0x423)],_0x5b9412=>{const _0x6449a8=_0x199c00;_0x450214[_0x6449a8(0xc7)]({'dataFieldId':_0x5b9412['dataFieldId'],'tableFieldId':_0x5b9412[_0x6449a8(0x416)](),'displayName':_0x5b9412[_0x6449a8(0x3d8)](),'format':_0x5b9412[_0x6449a8(0x32d)](),'subTotalType':_0x5b9412[_0x6449a8(0xad)](),'showDataAs':_0x5b9412[_0x6449a8(0x20c)]()});}),_0x450214[_0x199c00(0x337)]>0x1){let _0x2a7b62=_0x42f84c[_0x199c00(0x223)]();(_0x42f84c[_0x199c00(0x4d4)]()?_0x32a9f2:_0x158d6c)[_0x199c00(0x44d)](_0x2a7b62,0x0,{'dataFieldId':'','tableFieldId':_0x199c00(0x14e),'displayName':'ΣValue'});}let _0x12af05=[];return _0x42f84c[_0x199c00(0x150)](_0x4078f7[_0x199c00(0x149)][_0x199c00(0x44a)],_0x1793fb=>{const _0x3a0603=_0x199c00;_0x12af05[_0x3a0603(0xc7)]({'dataFieldId':_0x1793fb[_0x3a0603(0x19d)],'tableFieldId':_0x1793fb[_0x3a0603(0x416)](),'displayName':_0x1793fb[_0x3a0603(0x3d8)]()});}),{'sourceList':_0x5e1605,'sourceRange':_0x26361c[_0x199c00(0x1f5)],'rowFields':_0x158d6c,'columnFields':_0x32a9f2,'valueFields':_0x450214,'filterFields':_0x12af05,'positionInfo':_0x26361c[_0x199c00(0xf0)]};}function _0x405d02(_0x31f86b,_0xe31469,_0x5ef056='',_0x356389={}){const _0x359618=_0x55e150;let _0x12bcea=_0x31f86b[_0x359618(0x97)](_0x3f8283[_0x359618(0x232)]);for(let _0xb03c33 in _0xe31469)if(Object[_0x359618(0x34c)][_0x359618(0x413)][_0x359618(0x152)](_0xe31469,_0xb03c33)){let _0x5ba982=_0x5ef056?_0x5ef056+'.'+_0xb03c33:_0xb03c33;typeof _0xe31469[_0xb03c33]==_0x359618(0xa3)&&_0xe31469[_0xb03c33]!==null&&!Array['isArray'](_0xe31469[_0xb03c33])?_0x405d02(_0x31f86b,_0xe31469[_0xb03c33],_0x5ba982,_0x356389):_0x356389[_0x5ba982]=_0x12bcea['t'](_0x5ba982);}return _0x356389;}let _0x711efb=_0x47b350=>{const _0x2a14ee=_0x55e150;if(!_0x47b350)return[];let {rowRanges:_0xa67f5c,colRanges:_0x3e28aa,cornerRanges:_0x3dd4e6,dataRanges:_0x23cac1,pageRanges:_0x15ed16}=_0x47b350,_0x3677ff=[..._0x3e28aa,..._0xa67f5c,..._0x23cac1,..._0x3dd4e6][_0x2a14ee(0x38f)](_0x107656=>_0x107656[_0x2a14ee(0x33e)]>=0x0&&_0x107656['startColumn']>=0x0&&_0x107656['endRow']>=0x0&&_0x107656[_0x2a14ee(0x221)]>=0x0);if(_0x3677ff[_0x2a14ee(0x337)]===0x0)return[..._0x15ed16];let _0x496efd=_0x3677ff[0x0][_0x2a14ee(0x33e)],_0x453a41=_0x3677ff[0x0][_0x2a14ee(0x315)],_0x15721d=_0x3677ff[0x0][_0x2a14ee(0x2fc)],_0x122a2c=_0x3677ff[0x0]['endColumn'];for(let _0x26b60f=0x1;_0x26b60f<_0x3677ff['length'];_0x26b60f++)_0x496efd=Math['min'](_0x496efd,_0x3677ff[_0x26b60f]['startRow']),_0x453a41=Math['max'](_0x453a41,_0x3677ff[_0x26b60f][_0x2a14ee(0x315)]),_0x15721d=Math[_0x2a14ee(0x52a)](_0x15721d,_0x3677ff[_0x26b60f][_0x2a14ee(0x2fc)]),_0x122a2c=Math['max'](_0x122a2c,_0x3677ff[_0x26b60f][_0x2a14ee(0x221)]);return[..._0x15ed16,{'startRow':_0x496efd,'endRow':_0x453a41,'startColumn':_0x15721d,'endColumn':_0x122a2c}];};function _0x458f92(_0x167707,_0xd0bc57){const _0x37e63b=_0x55e150;let _0x346a1c=_0xd0bc57[_0x37e63b(0x305)][_0x37e63b(0x377)],{pivotTableId:_0xe0d0e7,unitId:_0x2bdd1f,subUnitId:_0x5d213e}=_0xd0bc57;if(!_0x346a1c)return;let _0x29ddf0=_0x167707['get'](_0x30eff7),_0x9594ec=_0x29ddf0['getPivotTableInstance'](_0xe0d0e7),_0x38338a=_0x29ddf0[_0x37e63b(0x3a8)](_0x2bdd1f,_0x5d213e,_0xe0d0e7);if(!_0x9594ec||!_0x38338a)return;let _0x4e3ab1=_0x9594ec[_0x37e63b(0x256)](_0x346a1c[_0x37e63b(0x367)]);if(!(_0x4e3ab1!=null&&_0x4e3ab1[_0x37e63b(0x337)]))return;let {unitId:_0x2e4efd,subUnitId:_0x451998,range:_0x4d5dc9}=_0x38338a[_0x37e63b(0x1f5)],_0x5c1244=0x0;return{'indexes':_0x4e3ab1,'range':_0x4d5dc9,'sourceUnitId':_0x2e4efd,'sourceSubUnitId':_0x451998,'formatMap':_0x9594ec[_0x37e63b(0x3dc)]['getFieldIds']()[_0x37e63b(0x3c0)]((_0x340e98,_0x267e60)=>{const _0x56cf4c=_0x37e63b;var _0x22ffb0;let _0x1d4852=(_0x22ffb0=_0x9594ec[_0x56cf4c(0x2c7)](_0x267e60))==null?void 0x0:_0x22ffb0[_0x56cf4c(0x2ca)]();return _0x1d4852&&(_0x340e98[String(_0x5c1244)]=_0x1d4852),_0x5c1244++,_0x340e98;},{})};}function _0x399785(_0x2efa91,_0x12ef76){const _0x5a3add=_0x55e150;if(!_0x2efa91||!_0x12ef76)return!0x0;let _0x3f1f67=(0x0,_0x5067df['getLicenseInfo'])(_0x2efa91,_0x12ef76)[_0x5a3add(0x251)],_0x4b346a=(0x0,_0x5067df['isFeatureAuthorizedWithinTime'])(_0x3f1f67,'sf',_0x3119ce);return!((_0x3f1f67==null?void 0x0:_0x3f1f67['rt'])===_0x5067df['ReleaseType'][_0x5a3add(0x391)]&&!_0x4b346a);}function _0x340686(_0x1d815b,_0x1d8817,_0x3d941f){const _0x377d0a=_0x55e150;let _0x440869={'count':_0x1d815b,'timeValid':!0x1};if(!_0x1d8817||!_0x3d941f)return _0x440869;let _0x4703ee=(0x0,_0x5067df[_0x377d0a(0x493)])(_0x1d8817,_0x3d941f);if(_0x4703ee!=null&&_0x4703ee[_0x377d0a(0x29c)]){let _0x2d0831=_0x4703ee[_0x377d0a(0x251)],_0x4f5f6a=(0x0,_0x5067df[_0x377d0a(0x3c6)])(_0x2d0831,'sf',_0x3119ce);return{'count':(0x0,_0x5067df[_0x377d0a(0x48c)])(_0x2d0831,_0x4f5f6a,_0x377d0a(0x47a),_0x1d815b,_0x1d815b,0x0),'timeValid':_0x4f5f6a};}return _0x440869;}function _0x51a117(_0x1c4915,_0x2cffb1,_0x15f11b,_0x372b6b){const _0x3d6215=_0x55e150;let _0xae14e1={'subUnitId':_0x15f11b,'unitId':_0x2cffb1,'cellValue':(0x0,_0x4b3c60[_0x3d6215(0x197)])(_0x372b6b)},_0x288f80=(0x0,_0x4b3c60['SetRangeValuesUndoMutationFactory'])(_0x1c4915,_0xae14e1),_0x522ff3=!0x1;return new _0x3f8283[(_0x3d6215(0x2e4))](_0x288f80[_0x3d6215(0x179)])[_0x3d6215(0x107)]((_0x282f4c,_0x3b2e4e,_0x12c252)=>{const _0x407d41=_0x3d6215;if(!_0x522ff3&&_0x12c252&&(_0x12c252[_0x407d41(0x345)]||_0x12c252['f']||_0x12c252['p']||_0x12c252['s']||_0x12c252['si']||_0x12c252['t']||_0x12c252['v']))return _0x522ff3=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x4b3c60[_0x3d6215(0x39b)]['id'],'params':_0x288f80},'setRangeValueRedoMutation':{'id':_0x4b3c60[_0x3d6215(0x39b)]['id'],'params':_0xae14e1},'shouldClear':_0x522ff3};}function _0xf6fafd(_0x5e82f1,_0x4f2577='ltr'){const _0x262f2f=_0x55e150;let {row:_0x8b52a6,col:_0x372b4d}=_0x5e82f1,_0x2cef8e=_0x372b4d+0x6-0x1;return[{'startRow':_0x8b52a6,'endRow':_0x8b52a6,'startColumn':_0x4f2577==='rtl'?_0x2cef8e:_0x372b4d,'endColumn':_0x4f2577===_0x262f2f(0x317)?_0x2cef8e:_0x372b4d},{'startRow':_0x8b52a6+0x2,'endRow':_0x8b52a6+0xe-0x1,'startColumn':_0x372b4d,'endColumn':_0x2cef8e}];}function _0x2aaa64(_0x41b0bc,_0x314796,_0x3f0e1a,_0x2fee02){const _0xc9735c=_0x55e150;if(_0x3f0e1a)return _0xf6fafd(_0x41b0bc,_0x2fee02);let {pageView:_0x1443d0,cornerView:_0x457abe,rowView:_0x54543f,colView:_0x5eee7a,dataView:_0x4a9cf6}=_0x314796,_0x12b151=_0x18cbe4(_0x41b0bc,_0x1443d0,!0x0),_0x1691af=_0x1443d0[_0xc9735c(0x30e)]>=0x0?_0x1443d0[_0xc9735c(0x30e)]+0x1:0x0,_0x552f84=_0x457abe['rowCount'],_0x150e2b=_0x457abe[_0xc9735c(0x1ff)],_0x2de62b=+(_0x12b151['length']>0x0),_0x52a9f4=_0x18cbe4({'row':_0x41b0bc['row']+_0x1691af+_0x2de62b,'col':_0x41b0bc[_0xc9735c(0xf9)]},_0x457abe,!0x1,!0x1),_0x3f8441=_0x18cbe4({'row':_0x41b0bc[_0xc9735c(0x18e)]+_0x1691af+_0x2de62b+_0x552f84,'col':_0x41b0bc['col']},_0x54543f,!0x1,!0x0),_0x4a5655=_0x18cbe4({'row':_0x41b0bc[_0xc9735c(0x18e)]+_0x1691af+_0x2de62b,'col':_0x41b0bc[_0xc9735c(0xf9)]+_0x150e2b},_0x5eee7a,!0x1,!0x0),_0x10cda5=_0x18cbe4({'row':_0x41b0bc['row']+_0x1691af+_0x2de62b+_0x552f84,'col':_0x41b0bc[_0xc9735c(0xf9)]+_0x150e2b},_0x4a9cf6,!0x1,!0x0),_0x6a134f=_0x374ed9(_0x314796,_0x41b0bc[_0xc9735c(0xf9)],_0x2fee02);return[..._0x12b151,..._0x52a9f4,..._0x3f8441,..._0x4a5655,..._0x10cda5][_0xc9735c(0x1e6)](_0x451ed1=>_0x3fe295(_0x6a134f,_0x451ed1));}function _0x1db1b5(_0x1648b8,_0xa0d770,_0x214f62){const _0x2f908d=_0x55e150;let {cornerView:_0xe154f3,rowView:_0x5c7c62,colView:_0x26808b,pageView:_0x42967b}=_0x1648b8,{row:_0x1f383e,col:_0x2f1331}=_0xa0d770;if(_0x214f62)return{'rowCount':0xe+_0x1f383e,'colCount':0x6+_0x2f1331};let _0x531f47=_0x42967b[_0x2f908d(0x30e)]>-0x1?_0x42967b[_0x2f908d(0x30e)]+0x1:0x0,_0x345082=_0x42967b[_0x2f908d(0x178)]>-0x1?_0x42967b[_0x2f908d(0x178)]:0x0,_0x54b64e=_0x1f383e+_0x531f47+ +!!_0x531f47+_0xe154f3[_0x2f908d(0xe2)]+_0x5c7c62[_0x2f908d(0xe2)],_0x5ed48c=_0x2f1331+_0x345082,_0x23e14c=_0x2f1331+_0xe154f3['colCount']+_0x26808b[_0x2f908d(0x1ff)];return{'rowCount':_0x54b64e,'colCount':Math[_0x2f908d(0x226)](_0x5ed48c,_0x23e14c)};}function _0x1ddf1b(_0x4b9ea7,_0xea1219,_0x45c269,_0x5e07f3){const _0x2a2352=_0x55e150;let {row:_0x20d3bf,col:_0x14a7c9,unitId:_0x4d7998,subUnitId:_0x3afdab}=_0x45c269,_0x469c24=_0x1db1b5(_0xea1219,{'row':_0x20d3bf,'col':_0x14a7c9},_0x5e07f3),_0x4415b7=_0x4b9ea7[_0x2a2352(0x97)](_0x3f8283['IUniverInstanceService']),_0x2d4eb0=(0x0,_0x4b3c60[_0x2a2352(0x28f)])(_0x4415b7,{'unitId':_0x4d7998,'subUnitId':_0x3afdab}),_0x46ee3e=[],_0x2b8fac=[];if(!_0x2d4eb0)return{'undos':_0x2b8fac,'redos':_0x46ee3e};let {worksheet:_0x361eda}=_0x2d4eb0,_0x66070f=_0x361eda[_0x2a2352(0x484)](),_0x174a3e=_0x361eda['getColumnCount']();return _0x66070f<_0x469c24[_0x2a2352(0xe2)]&&(_0x46ee3e[_0x2a2352(0xc7)]({'id':_0x4b3c60[_0x2a2352(0x203)]['id'],'params':{'unitId':_0x4d7998,'subUnitId':_0x3afdab,'range':{'startRow':_0x66070f,'endRow':_0x469c24[_0x2a2352(0xe2)]-0x1,'startColumn':0x0,'endColumn':_0x174a3e-0x1}}}),_0x2b8fac[_0x2a2352(0xc7)]({'id':_0x4b3c60[_0x2a2352(0x28b)]['id'],'params':{'unitId':_0x4d7998,'subUnitId':_0x3afdab,'range':{'startRow':_0x66070f,'endRow':_0x469c24['rowCount']-0x1,'startColumn':0x0,'endColumn':_0x174a3e-0x1}}})),_0x174a3e<_0x469c24[_0x2a2352(0x1ff)]&&(_0x46ee3e[_0x2a2352(0xc7)]({'id':_0x4b3c60[_0x2a2352(0x41a)]['id'],'params':{'unitId':_0x4d7998,'subUnitId':_0x3afdab,'range':{'startRow':0x0,'endRow':_0x66070f-0x1,'startColumn':_0x174a3e,'endColumn':_0x469c24[_0x2a2352(0x1ff)]-0x1}}}),_0x2b8fac[_0x2a2352(0xc7)]({'id':_0x4b3c60[_0x2a2352(0x480)]['id'],'params':{'unitId':_0x4d7998,'subUnitId':_0x3afdab,'range':{'startRow':0x0,'endRow':_0x66070f-0x1,'startColumn':_0x174a3e,'endColumn':_0x469c24['colCount']-0x1}}})),{'undos':_0x2b8fac,'redos':_0x46ee3e};}function _0x423b8d(_0x46937b){const _0x558b18=_0x55e150;let _0x4cece8=0x0;for(let _0x534cd4 of _0x46937b)_0x4c9f24[_0x558b18(0x4b8)]['hasCJK'](_0x534cd4)?_0x4cece8+=0x2:_0x4cece8+=0x1;return _0x4cece8;}let _0xdd727c=new Set([_0x4078f7[_0x55e150(0x105)][_0x55e150(0x3f7)],_0x4078f7[_0x55e150(0x105)][_0x55e150(0x20f)],_0x4078f7[_0x55e150(0x105)][_0x55e150(0x4aa)],_0x4078f7[_0x55e150(0x105)][_0x55e150(0x478)],_0x4078f7[_0x55e150(0x105)][_0x55e150(0x12b)],_0x4078f7['PivotCellStyleTypeEnum'][_0x55e150(0x206)],_0x4078f7[_0x55e150(0x105)][_0x55e150(0x46b)],_0x4078f7[_0x55e150(0x105)][_0x55e150(0x4ef)],_0x4078f7[_0x55e150(0x105)][_0x55e150(0x1a4)],_0x4078f7[_0x55e150(0x105)]['Collapse'],_0x4078f7[_0x55e150(0x105)][_0x55e150(0x369)]]);function _0x3e07eb(_0x46d69b){const _0x5b7fc1=_0x55e150;if(_0x46d69b<=0x20)return Array[_0x5b7fc1(0x91)]({'length':_0x46d69b},(_0x18332e,_0xc41049)=>_0xc41049);let _0xac501f=new Set();for(let _0x442e82=0x0;_0x442e82<0x20;_0x442e82++)_0xac501f[_0x5b7fc1(0xe9)](Math[_0x5b7fc1(0x3cc)](_0x442e82*(_0x46d69b-0x1)/0x1f));return Array[_0x5b7fc1(0x91)](_0xac501f);}function _0x43a6a4(_0x3434dc){const _0x2362be=_0x55e150;let _0x5de847=_0x1510fb(_0x3434dc);return typeof _0x5de847==_0x2362be(0x45c)||typeof _0x5de847==_0x2362be(0x356)?String(_0x5de847):void 0x0;}function _0x7602b8(_0x4550d2,_0x1ec839,_0x17f2d1,_0x3396a8,_0x3d3a24){const _0x4e057b=_0x55e150;_0x1ec839[_0x4e057b(0xe9)](_0x17f2d1);let _0x565d9a=_0x43a6a4(_0x3396a8);if(!_0x565d9a)return;let _0x22bdcf=_0x3d3a24&&_0xdd727c['has'](_0x3d3a24)?0x10:0x0,_0x5ad0bf={'text':_0x565d9a,'buttonOffset':_0x22bdcf,'score':_0x423b8d(_0x565d9a)*0x8+_0x22bdcf},_0x27303c=_0x4550d2[_0x17f2d1];_0x27303c[_0x4e057b(0x323)](_0x5ce1b9=>_0x5ce1b9[_0x4e057b(0x4fb)]===_0x565d9a&&_0x5ce1b9[_0x4e057b(0x29b)]===_0x22bdcf)>=0x0||(_0x27303c[_0x4e057b(0xc7)](_0x5ad0bf),_0x27303c['sort']((_0x516f44,_0x10a270)=>_0x10a270['score']-_0x516f44[_0x4e057b(0x2e9)]),_0x27303c[_0x4e057b(0x337)]>0x4&&(_0x27303c[_0x4e057b(0x337)]=0x4));}function _0x5eeda4(_0x332530,_0x36b0a1,_0x59280e){const _0x1d9c57=_0x55e150;let {pageView:_0x20ff91,cornerView:_0x4cb731,rowView:_0x341784}=_0x332530;Object[_0x1d9c57(0x1b3)](_0x20ff91['data'])[_0x1d9c57(0x1bd)](_0x45c720=>{const _0x510fed=_0x1d9c57;let _0x363955=Number(_0x45c720);Object[_0x510fed(0x1b3)](_0x20ff91[_0x510fed(0x1bb)][_0x363955])[_0x510fed(0x1bd)](_0x1308c8=>{const _0x2e301f=_0x510fed;let _0x544e1d=Number(_0x1308c8),_0x315116=_0x20ff91['data'][_0x363955][_0x544e1d];_0x7602b8(_0x59280e[_0x2e301f(0x37a)],_0x59280e[_0x2e301f(0x431)],_0x544e1d,_0x315116['v'],_0x315116['s']);});});for(let _0x10b75a=0x0;_0x10b75a<_0x4cb731['colCount'];_0x10b75a++){_0x59280e['occupiedColumns'][_0x1d9c57(0xe9)](_0x10b75a);for(let _0x51eb68=0x0;_0x51eb68<_0x4cb731[_0x1d9c57(0xe2)];_0x51eb68++){var _0x152593,_0xbf92aa,_0x4cb700;let _0x4e259c=(_0x152593=_0x4cb731['data'][_0x51eb68])==null?void 0x0:_0x152593[_0x10b75a];if(!_0x4e259c)continue;let _0x3f04f4=_0x4e259c['v'];(_0xbf92aa=_0x341784['headerMap'][_0x10b75a])!=null&&_0xbf92aa[_0x1d9c57(0x26f)]&&_0x10b75a===_0x4cb731[_0x1d9c57(0x1ff)]-0x1&&_0x51eb68===_0x4cb731[_0x1d9c57(0xe2)]-0x1&&(_0x3f04f4=_0x36b0a1[_0x1d9c57(0x426)]),(_0x4cb700=_0x4cb731[_0x1d9c57(0x118)][_0x10b75a])!=null&&_0x4cb700[_0x1d9c57(0x514)]&&(_0x3f04f4=_0x36b0a1['sheets-pivot.rowLabels']||_0x1d9c57(0x395)),_0x7602b8(_0x59280e[_0x1d9c57(0x37a)],_0x59280e[_0x1d9c57(0x431)],_0x10b75a,_0x3f04f4,_0x4e259c['s']);}}}function _0x174e8f(_0x13a7a1,_0x284bf4,_0x42542f,_0x5d9070){const _0x149047=_0x55e150;let {rowView:_0x8ccd7,formatMap:_0x5966ff}=_0x13a7a1,_0x4d5b5f=_0x3e07eb(_0x8ccd7['rowCount']);for(let _0xc67ca6=0x0;_0xc67ca6<_0x8ccd7[_0x149047(0x1ff)];_0xc67ca6++){var _0x45538e;_0x42542f[_0x149047(0x431)][_0x149047(0xe9)](_0xc67ca6);let _0x32a989=_0x5966ff[(_0x45538e=_0x8ccd7['headerMap'][_0xc67ca6])==null?void 0x0:_0x45538e[_0x149047(0x163)]];_0x4d5b5f[_0x149047(0x1bd)](_0x5a572a=>{const _0x4e3e1b=_0x149047;var _0xa96733;let _0x2d8413=(_0xa96733=_0x8ccd7[_0x4e3e1b(0x1bb)][_0x5a572a])==null?void 0x0:_0xa96733[_0xc67ca6];if(!_0x2d8413)return;let _0xde5d10=_0x308f61(_0x2d8413,!0x1,_0x32a989,_0x284bf4,void 0x0,void 0x0,_0x5d9070);_0x7602b8(_0x42542f[_0x4e3e1b(0x37a)],_0x42542f[_0x4e3e1b(0x431)],_0xc67ca6,_0xde5d10,_0x2d8413['s']);});}}function _0x313c0a(_0x14173f,_0xeba347,_0x55de83,_0x927ed1){const _0x3e77f1=_0x55e150;let {cornerView:_0x295622,colView:_0xfc2a39,formatMap:_0x59883a}=_0x14173f,_0x36475b=_0x3e07eb(_0xfc2a39['rowCount']);for(let _0x493a44=0x0;_0x493a44<_0xfc2a39['colCount'];_0x493a44++){let _0x1c478e=_0x295622[_0x3e77f1(0x1ff)]+_0x493a44;_0x55de83['occupiedColumns'][_0x3e77f1(0xe9)](_0x1c478e),_0x36475b[_0x3e77f1(0x1bd)](_0x6debe=>{const _0x2dac37=_0x3e77f1;var _0xb3bc26,_0x3870a0;let _0x42fdce=(_0xb3bc26=_0xfc2a39['data'][_0x6debe])==null?void 0x0:_0xb3bc26[_0x493a44];if(!_0x42fdce)return;let _0x4eaa82=_0xfc2a39[_0x2dac37(0x3a7)](_0x6debe+0x1),_0x1c0cb1=(_0x3870a0=_0xfc2a39[_0x2dac37(0x1c9)][_0x6debe])==null?void 0x0:_0x3870a0[_0x2dac37(0x163)],_0x4cf3c9=_0x59883a[_0x1c0cb1],_0x24ff65=_0x4eaa82!=null&&_0x4eaa82[_0x2dac37(0x3cd)]?_0xeba347[_0x2dac37(0x16e)]||_0x2dac37(0x3dd):_0x308f61(_0x42fdce,_0x6debe===0x0&&(_0x4eaa82==null?void 0x0:_0x4eaa82[_0x2dac37(0x26f)]),_0x4cf3c9,_0xeba347,_0xeba347[_0x2dac37(0x40f)],void 0x0,_0x927ed1);_0x7602b8(_0x55de83[_0x2dac37(0x37a)],_0x55de83['occupiedColumns'],_0x1c478e,_0x24ff65,_0x42fdce['s']);});}}function _0x1f5322(_0x2f4072,_0x4446ec,_0x2235f2,_0x271080){const _0xac2d40=_0x55e150;let {cornerView:_0x3f0de6,rowView:_0x19adf8,colView:_0x158a2a,dataView:_0x5f3c4d,formatMap:_0x294674}=_0x2f4072,_0x4e1691=_0x3e07eb(_0x5f3c4d['rowCount']);for(let _0xb41137=0x0;_0xb41137<_0x5f3c4d[_0xac2d40(0x1ff)];_0xb41137++){let _0x5d5760=_0x3f0de6[_0xac2d40(0x1ff)]+_0xb41137;_0x2235f2['occupiedColumns'][_0xac2d40(0xe9)](_0x5d5760),_0x4e1691['forEach'](_0x16489d=>{const _0x39cd39=_0xac2d40;var _0x214985,_0x3add51,_0x34a1bb;let _0x49c0d2=(_0x214985=_0x5f3c4d[_0x39cd39(0x1bb)][_0x16489d])==null?void 0x0:_0x214985[_0xb41137];if(!_0x49c0d2)return;let _0x394d43=Math['max'](((_0x3add51=_0x19adf8[_0x39cd39(0x118)][_0x16489d])==null?void 0x0:_0x3add51[_0x39cd39(0x45f)])??-0x1,((_0x34a1bb=_0x158a2a[_0x39cd39(0x118)][_0xb41137])==null?void 0x0:_0x34a1bb[_0x39cd39(0x45f)])??-0x1),_0x384b8f=_0x294674[_0x4446ec[_0x394d43<0x0?0x0:_0x394d43]],_0x4b7c56=_0x384b8f&&typeof _0x49c0d2['v']=='number'?_0x3f8283[_0x39cd39(0x432)]['format'](_0x384b8f,_0x49c0d2['v'],{'dateSystem':_0x271080}):_0x49c0d2['v'];_0x7602b8(_0x2235f2['candidates'],_0x2235f2[_0x39cd39(0x431)],_0x5d5760,_0x4b7c56,_0x49c0d2['s']);});}}function _0x1021c1(_0x260bc1,_0xf859b6,_0x24dacd,_0x544c9d){const _0x51243b=_0x55e150;let _0x168e0b={};return _0x260bc1[_0x51243b(0x431)]['size']===0x0||_0x260bc1['candidates']['forEach']((_0x4fb39d,_0x2decf8)=>{const _0xd9cb0d=_0x51243b;let _0x2163e1=_0x4b40f9(_0x24dacd,_0xf859b6+_0x2decf8);if(!_0x260bc1[_0xd9cb0d(0x431)]['has'](_0x2decf8)){_0x168e0b[_0x2163e1]=0x10;return;}let _0xc992d=0x28;_0x4fb39d[_0xd9cb0d(0x1bd)](({text:_0x698563,buttonOffset:_0x3c4ac4})=>{const _0x198366=_0xd9cb0d;_0xc992d=Math[_0x198366(0x226)](_0xc992d,Math['ceil'](_0x544c9d(_0x698563)+0xc+_0x3c4ac4));}),_0x168e0b[_0x2163e1]=Math['min'](_0xc992d,0x190);}),_0x168e0b;}function _0x3bf4a5(_0x4f810f,_0x1ce4e2,_0x325449,_0x66e432,_0x1bf154,_0x25704d=[],_0x29769e=_0x3f8283[_0x55e150(0x3f5)]['Date1900']){const _0x7422b8=_0x55e150;let _0x266320=_0x374ed9(_0x4f810f,_0x1ce4e2,_0x325449),_0x3483e6=_0x266320[_0x7422b8(0x221)]-_0x266320[_0x7422b8(0x2fc)]+0x1,_0x2d18d2={'candidates':Array[_0x7422b8(0x91)]({'length':_0x3483e6},()=>[]),'occupiedColumns':new Set()};return _0x5eeda4(_0x4f810f,_0x66e432,_0x2d18d2),_0x174e8f(_0x4f810f,_0x66e432,_0x2d18d2,_0x29769e),_0x313c0a(_0x4f810f,_0x66e432,_0x2d18d2,_0x29769e),_0x1f5322(_0x4f810f,_0x25704d,_0x2d18d2,_0x29769e),_0x1021c1(_0x2d18d2,_0x1ce4e2,_0x266320,_0x1bf154);}function _0x4a649e(_0x165a7a,_0x5579f5){const _0x2561f8=_0x55e150;let {rowFields:_0xd95cd0,columnFields:_0x5e137a,valueFields:_0x103175,filterFields:_0x453db7,dimension:_0x3ea7be,measure:_0x3c6460}=_0x5579f5;for(let _0x58bc89 of _0xd95cd0){let _0x5a6f7a=_0x3ea7be[_0x58bc89];_0x5a6f7a&&_0x165a7a[_0x2561f8(0x2c7)](_0x5a6f7a[_0x2561f8(0x19d)])&&(_0x165a7a[_0x2561f8(0x26b)](_0x5a6f7a[_0x2561f8(0x19d)],_0x4078f7[_0x2561f8(0x149)][_0x2561f8(0x438)],void 0x0,_0x58bc89),_0x5a6f7a[_0x2561f8(0x30b)]&&_0x165a7a[_0x2561f8(0x521)](_0x5a6f7a['id'],_0x5a6f7a['displayName']),_0x5a6f7a[_0x2561f8(0x370)]&&_0x165a7a[_0x2561f8(0x379)](_0x5a6f7a['id'],_0x5a6f7a[_0x2561f8(0x370)]),_0x5a6f7a[_0x2561f8(0x93)]&&_0x165a7a[_0x2561f8(0x208)](_0x5a6f7a['id'],_0x5a6f7a[_0x2561f8(0x93)]));}for(let _0x4e601f of _0x5e137a){let _0x3ca48d=_0x3ea7be[_0x4e601f];_0x3ca48d&&_0x165a7a[_0x2561f8(0x2c7)](_0x3ca48d[_0x2561f8(0x19d)])&&(_0x165a7a[_0x2561f8(0x26b)](_0x3ca48d[_0x2561f8(0x19d)],_0x4078f7[_0x2561f8(0x149)][_0x2561f8(0x142)],void 0x0,_0x4e601f),_0x3ca48d['sortInfo']&&_0x165a7a[_0x2561f8(0x379)](_0x3ca48d['id'],_0x3ca48d['sortInfo']),_0x3ca48d[_0x2561f8(0x93)]&&_0x165a7a[_0x2561f8(0x208)](_0x3ca48d['id'],_0x3ca48d[_0x2561f8(0x93)]),_0x3ca48d[_0x2561f8(0x30b)]&&_0x165a7a['renameField'](_0x3ca48d['id'],_0x3ca48d[_0x2561f8(0x30b)]));}for(let _0x3e2bd2 of _0x453db7){let _0x2d8e48=_0x3ea7be[_0x3e2bd2];_0x2d8e48&&_0x165a7a['getDataFieldByDataFieldId'](_0x2d8e48[_0x2561f8(0x19d)])&&(_0x165a7a[_0x2561f8(0x26b)](_0x2d8e48[_0x2561f8(0x19d)],_0x4078f7[_0x2561f8(0x149)][_0x2561f8(0x44a)],void 0x0,_0x3e2bd2),_0x2d8e48[_0x2561f8(0x370)]&&_0x165a7a[_0x2561f8(0x379)](_0x2d8e48['id'],_0x2d8e48[_0x2561f8(0x370)]),_0x2d8e48[_0x2561f8(0x93)]&&_0x165a7a['setLabelFilterInfo'](_0x2d8e48['id'],_0x2d8e48[_0x2561f8(0x93)]),_0x2d8e48[_0x2561f8(0x30b)]&&_0x165a7a[_0x2561f8(0x521)](_0x2d8e48['id'],_0x2d8e48[_0x2561f8(0x30b)]));}for(let _0x177069 of _0x103175){let _0x24e8b7=_0x3c6460[_0x177069];_0x24e8b7&&_0x165a7a[_0x2561f8(0x2c7)](_0x24e8b7['dataFieldId'])&&(_0x165a7a[_0x2561f8(0x26b)](_0x24e8b7[_0x2561f8(0x19d)],_0x4078f7[_0x2561f8(0x149)][_0x2561f8(0x423)],void 0x0,_0x177069),_0x24e8b7[_0x2561f8(0x182)]!==void 0x0&&_0x165a7a[_0x2561f8(0x270)](_0x177069,_0x24e8b7['subtotal']),_0x24e8b7[_0x2561f8(0xd2)]&&_0x165a7a['setFieldFormat'](_0x177069,_0x24e8b7[_0x2561f8(0xd2)]),_0x24e8b7[_0x2561f8(0x30b)]&&_0x165a7a[_0x2561f8(0x521)](_0x24e8b7['id'],_0x24e8b7[_0x2561f8(0x30b)]));}let _0x47c1c7=_0x5579f5[_0x2561f8(0x509)];for(let {fieldId:_0x2da5b7,filterInfo:_0x2308b4}of _0x47c1c7)_0x165a7a['setValueFilterInfo'](_0x2da5b7,_0x2308b4);}function _0xd39239(_0x270ee1,_0x508fd4){const _0x92e0ab=_0x55e150;let _0x1e3cb7=[];_0x508fd4===_0x4078f7['PivotTableFiledAreaEnum']['Row']&&_0x270ee1['iterateFieldByArea'](_0x4078f7[_0x92e0ab(0x149)]['Row'],_0x377752=>{const _0x215d3c=_0x92e0ab;_0x1e3cb7[_0x215d3c(0xc7)](_0x377752[_0x215d3c(0x416)]());}),_0x508fd4===_0x4078f7['PivotTableFiledAreaEnum'][_0x92e0ab(0x142)]&&_0x270ee1[_0x92e0ab(0x150)](_0x4078f7[_0x92e0ab(0x149)][_0x92e0ab(0x142)],_0x354838=>{_0x1e3cb7['push'](_0x354838['getId']());}),_0x508fd4===_0x4078f7[_0x92e0ab(0x149)][_0x92e0ab(0x44a)]&&_0x270ee1[_0x92e0ab(0x150)](_0x4078f7[_0x92e0ab(0x149)][_0x92e0ab(0x44a)],_0x2bdd02=>{const _0x3ce2c4=_0x92e0ab;_0x1e3cb7[_0x3ce2c4(0xc7)](_0x2bdd02[_0x3ce2c4(0x416)]());}),_0x508fd4===_0x4078f7[_0x92e0ab(0x149)]['Value']&&_0x270ee1[_0x92e0ab(0x150)](_0x4078f7['PivotTableFiledAreaEnum'][_0x92e0ab(0x423)],_0x52e276=>{_0x1e3cb7['push'](_0x52e276['getId']());}),_0x508fd4===void 0x0&&_0x270ee1[_0x92e0ab(0x4a3)](_0x1b5304=>{const _0x272d89=_0x92e0ab;_0x1e3cb7[_0x272d89(0xc7)](_0x1b5304[_0x272d89(0x416)]());});let _0x5b55d8=_0x1e3cb7[_0x92e0ab(0x337)];for(let _0x4aeb8c=_0x5b55d8-0x1;_0x4aeb8c>=0x0;_0x4aeb8c--)_0x270ee1['removeField'](_0x1e3cb7[_0x4aeb8c]);let _0x5822f7=_0x270ee1[_0x92e0ab(0x32a)]();for(let _0x30c398 in _0x5822f7)_0x270ee1[_0x92e0ab(0x229)](_0x30c398);}function _0x88faf5(_0x3a50ca,_0x1359b2){const _0x1f2fa9=_0x55e150;let _0x2b0046=_0x4078f7[_0x1f2fa9(0x23a)][_0x1f2fa9(0x4f4)]===_0x3f8283[_0x1f2fa9(0x3f5)][_0x1f2fa9(0x4e8)],_0xb65299=new Date((0x0,_0x4078f7['excelDateToUnixMilliseconds'])(_0x1359b2,_0x2b0046)),_0x1a477a=new Date((0x0,_0x4078f7[_0x1f2fa9(0x151)])(_0x3a50ca,_0x2b0046)),_0x2131e7=_0xb65299[_0x1f2fa9(0x2ab)]()===_0x1a477a[_0x1f2fa9(0x2ab)](),_0xea5d66=_0x2131e7&&_0xb65299[_0x1f2fa9(0x343)]()===_0x1a477a[_0x1f2fa9(0x343)](),_0x1894d0=_0xea5d66&&_0xb65299[_0x1f2fa9(0x3ec)]()===_0x1a477a[_0x1f2fa9(0x3ec)]();return _0x2131e7&&_0xea5d66&&!_0x1894d0?_0x4078f7['PivotDateGroupFieldDateTypeEnum'][_0x1f2fa9(0x331)]:_0x2131e7&&!_0xea5d66?_0x4078f7['PivotDateGroupFieldDateTypeEnum'][_0x1f2fa9(0x17a)]:_0x4078f7['PivotDateGroupFieldDateTypeEnum'][_0x1f2fa9(0x1a7)];}function _0x2a257d(_0x2137df){const _0x1083ab=_0x55e150;_0x2137df!=null&&(0x0,_0x4078f7[_0x1083ab(0x4a1)])(_0x2137df===_0x3f8283[_0x1083ab(0x3f5)][_0x1083ab(0x144)]?_0x3f8283[_0x1083ab(0x3f5)][_0x1083ab(0x144)]:_0x3f8283[_0x1083ab(0x3f5)][_0x1083ab(0x4e8)]);}function _0x6786b9(_0x102b8f,_0x213a7f){const _0x1a7f54=_0x55e150;let _0x5af227=_0x102b8f[_0x1a7f54(0x97)](_0x3f8283[_0x1a7f54(0x2e6)])[_0x1a7f54(0x23f)](_0x1a7f54(0x111))?_0x102b8f['get'](_0x3de398)[_0x1a7f54(0x4b2)]():_0x102b8f['get'](_0x30eff7)[_0x1a7f54(0x4b2)](),_0x184408='';switch(_0x213a7f){case _0x4078f7['PivotExcelDateGroupUnit']['Day']:_0x184408=_0x5af227[_0x1a7f54(0x1d3)];break;case _0x4078f7[_0x1a7f54(0x2a8)]['Second']:_0x184408=_0x5af227[_0x1a7f54(0x41e)];break;case _0x4078f7['PivotDateGroupFieldDateTypeEnum'][_0x1a7f54(0x331)]:_0x184408=_0x5af227[_0x1a7f54(0x349)];break;case _0x4078f7[_0x1a7f54(0x45a)][_0x1a7f54(0x17a)]:_0x184408=_0x5af227[_0x1a7f54(0xd0)];break;case _0x4078f7['PivotDateGroupFieldDateTypeEnum'][_0x1a7f54(0x1a7)]:_0x184408=_0x5af227['sheets-pivot.dateGroup.year'];break;case _0x4078f7['PivotDateGroupFieldDateTypeEnum'][_0x1a7f54(0x494)]:_0x184408=_0x5af227['sheets-pivot.dateGroup.month'];break;case _0x4078f7[_0x1a7f54(0x45a)]['Quarter']:_0x184408=_0x5af227[_0x1a7f54(0x1b8)];break;case _0x4078f7[_0x1a7f54(0x45a)][_0x1a7f54(0x3f3)]:_0x184408=_0x5af227[_0x1a7f54(0x392)];break;case _0x4078f7[_0x1a7f54(0x45a)][_0x1a7f54(0x2b2)]:_0x184408=_0x5af227['sheets-pivot.dateGroup.hourMinute'];break;case _0x4078f7[_0x1a7f54(0x45a)]['Hour']:_0x184408=_0x5af227[_0x1a7f54(0x443)];break;case _0x4078f7[_0x1a7f54(0x45a)][_0x1a7f54(0x134)]:_0x184408=_0x5af227[_0x1a7f54(0x16a)];break;case _0x4078f7[_0x1a7f54(0x45a)]['MonthDate']:_0x184408=_0x5af227[_0x1a7f54(0x298)];break;case _0x4078f7[_0x1a7f54(0x45a)][_0x1a7f54(0x1d4)]:_0x184408=_0x5af227[_0x1a7f54(0x180)];break;default:_0x184408='';}return _0x184408;}let _0x505163=class extends _0x3f8283[_0x55e150(0xc4)]{constructor(_0x26e546,_0x3e9336,_0x37c491,_0x3f4ba1,_0x49e70a){const _0xc77828=_0x55e150;super(),this['_localeService']=_0x26e546,this['_injector']=_0x3e9336,this[_0xc77828(0x51b)]=_0x37c491,this[_0xc77828(0x42e)]=_0x3f4ba1,this[_0xc77828(0x442)]=_0x49e70a,_0x418dd6(this,_0xc77828(0x4c2),new Map()),_0x418dd6(this,_0xc77828(0x42c),new Map()),_0x418dd6(this,_0xc77828(0x53d),new Map()),_0x418dd6(this,_0xc77828(0x4a6),new _0x282fb4[(_0xc77828(0x523))]()),_0x418dd6(this,_0xc77828(0x437),this[_0xc77828(0x4a6)]['asObservable']()),_0x418dd6(this,'_viewUpdate$',new _0x282fb4[(_0xc77828(0x523))]()),_0x418dd6(this,'viewUpdate$',this[_0xc77828(0xc5)][_0xc77828(0xf4)]()),_0x418dd6(this,_0xc77828(0x4ff),void 0x0),this[_0xc77828(0x50e)](),this[_0xc77828(0x340)](),this['_initDirectionChange']();}[_0x55e150(0x24b)](){const _0x1be421=_0x55e150;this['disposeWithMe']((0x0,_0x282fb4[_0x1be421(0x2a1)])([this[_0x1be421(0x47d)]['currentLocale$'],this[_0x1be421(0x47d)][_0x1be421(0x3b1)][_0x1be421(0x329)]((0x0,_0x282fb4[_0x1be421(0x539)])())])[_0x1be421(0x329)]((0x0,_0x282fb4[_0x1be421(0x1cf)])(0x1))[_0x1be421(0x192)](()=>{const _0x326f89=_0x1be421;this[_0x326f89(0x4ff)]=_0x405d02(this[_0x326f89(0x1f7)],_0x5e6313,'',{});let _0x360189=[];this[_0x326f89(0x4c2)]['forEach']((_0x37ee99,_0x5caf13)=>{const _0xffb0f5=_0x326f89;_0x37ee99[_0xffb0f5(0x1bd)]((_0x3a9d0b,_0x301db8)=>{const _0x409ed1=_0xffb0f5;_0x3a9d0b[_0x409ed1(0x1bd)]((_0x2b393b,_0x52ce45)=>{const _0x1a90be=_0x409ed1;var _0x5cf5c6;let _0x4e8447=(_0x5cf5c6=this['_pivotViewCache'][_0x1a90be(0x97)](_0x5caf13))==null||(_0x5cf5c6=_0x5cf5c6[_0x1a90be(0x97)](_0x301db8))==null?void 0x0:_0x5cf5c6[_0x1a90be(0x97)](_0x52ce45);_0x4e8447&&_0x360189[_0x1a90be(0xc7)]({'unitId':_0x5caf13,'subUnitId':_0x301db8,'pivotTableId':_0x52ce45,'type':_0x1a90be(0x187),'view':_0x4e8447});});});});let _0x50d2c0=new Set(),_0x1564f8=[];_0x360189[_0x326f89(0x1bd)](_0x3fdbc3=>{const _0x41ddc1=_0x326f89;this[_0x41ddc1(0x292)](_0x3fdbc3);let _0x56ec34=this['updateRenderCache'](_0x3fdbc3,!0x1);if(_0x56ec34){var _0x1aef39;_0x1564f8[_0x41ddc1(0xc7)]({'unitId':_0x3fdbc3[_0x41ddc1(0xa0)],'subUnitId':_0x3fdbc3[_0x41ddc1(0x2d0)],'pivotTableId':_0x3fdbc3['pivotTableId'],'type':_0x3fdbc3[_0x41ddc1(0x230)],'valueMatrix':_0x56ec34[_0x41ddc1(0x46f)],'rangesCache':_0x56ec34[_0x41ddc1(0x2bd)],'isEmpty':(_0x1aef39=this[_0x41ddc1(0x51b)]['getPivotTableConfig'](_0x3fdbc3['unitId'],_0x3fdbc3[_0x41ddc1(0x2d0)],_0x3fdbc3[_0x41ddc1(0x173)]))==null?void 0x0:_0x1aef39['isEmpty']});}_0x50d2c0['add'](_0x3fdbc3[_0x41ddc1(0xa0)]+'\x0a'+_0x3fdbc3[_0x41ddc1(0x2d0)]);}),_0x1564f8[_0x326f89(0x1bd)](_0xaebebd=>this[_0x326f89(0xc5)][_0x326f89(0x21c)](_0xaebebd)),_0x50d2c0[_0x326f89(0x1bd)](_0x529261=>{const _0x3eede2=_0x326f89;let [_0x429909,_0x447a7b]=_0x529261[_0x3eede2(0x3b6)]('\x0a');this['markDirty'](_0x429909,_0x447a7b);});}));}[_0x55e150(0x340)](){const _0x234406=_0x55e150;this[_0x234406(0x213)](this[_0x234406(0x42e)][_0x234406(0x100)](_0x3f8283['UniverInstanceType'][_0x234406(0x198)])['subscribe'](_0x38ac7a=>{const _0x227aed=_0x234406;this['deleteUnitId'](_0x38ac7a[_0x227aed(0x4ed)]());}));}[_0x55e150(0x50e)](){const _0x1ec564=_0x55e150;this[_0x1ec564(0x4ff)]=_0x405d02(this['_injector'],_0x5e6313,'',{});}[_0x55e150(0x42a)](_0x593802,_0x4df76c=!0x0){const _0x31f687=_0x55e150;let {view:_0x31451d,unitId:_0x1da13b,subUnitId:_0xf4e69c,pivotTableId:_0x1eb147,type:_0x37cd00}=_0x593802,_0x1ef087=this[_0x31f687(0x51b)]['getPivotTableConfig'](_0x1da13b,_0xf4e69c,_0x1eb147);if(!_0x31451d||!_0x1ef087||_0x37cd00==='delete')return;let {pageView:_0x541d0e,cornerView:_0x57c069,rowView:_0x1c63ff,colView:_0x734a76,dataView:_0x3e172a}=_0x31451d,_0x43bf97=_0x1ef087[_0x31f687(0xf0)],_0x40d6ee=_0x1ef087[_0x31f687(0x360)],_0x3c948b=this[_0x31f687(0x346)](_0x1da13b,_0xf4e69c),_0x38caed=this[_0x31f687(0x234)](_0x1da13b,_0xf4e69c,_0x1eb147),_0x22d70e=this[_0x31f687(0x47d)]['getDirection']();if(this['_ensurePivotViewCache'](_0x1da13b,_0xf4e69c)[_0x31f687(0x187)](_0x1eb147,_0x31451d),_0x40d6ee)return this['_updateRenderEmptyCache'](_0x593802,_0x3c948b,_0x43bf97,_0x38caed,_0x4df76c);{var _0x22ba51;let _0x114a4c=_0x374ed9(_0x31451d,_0x43bf97[_0x31f687(0xf9)],_0x22d70e),_0x362bf5=_0x4ca0f1=>_0x4ca0f1[_0x31f687(0x1e6)](_0x3721d2=>_0x3fe295(_0x114a4c,_0x3721d2)),_0x495db6=_0x18cbe4(_0x43bf97,_0x541d0e,!0x0),_0x2c8518=_0x541d0e['lastRow']>=0x0?_0x541d0e['lastRow']+0x1:0x0,_0x3a32d6=_0x57c069[_0x31f687(0x484)](),_0x4b7bf0=_0x57c069[_0x31f687(0x304)](),_0x241dad=+(_0x495db6[_0x31f687(0x337)]>0x0),_0x2f2eea=_0x18cbe4({'row':_0x43bf97[_0x31f687(0x18e)]+_0x2c8518+_0x241dad,'col':_0x43bf97['col']},_0x57c069,!0x1,!0x1),_0x35c82a=_0x18cbe4({'row':_0x43bf97[_0x31f687(0x18e)]+_0x2c8518+_0x241dad+_0x3a32d6,'col':_0x43bf97[_0x31f687(0xf9)]},_0x1c63ff,!0x1,!0x0),_0x2f5f85=_0x18cbe4({'row':_0x43bf97[_0x31f687(0x18e)]+_0x2c8518+_0x241dad,'col':_0x43bf97[_0x31f687(0xf9)]+_0x4b7bf0},_0x734a76,!0x1,!0x0),_0x174836=_0x18cbe4({'row':_0x43bf97[_0x31f687(0x18e)]+_0x2c8518+_0x241dad+_0x3a32d6,'col':_0x43bf97[_0x31f687(0xf9)]+_0x4b7bf0},_0x3e172a,!0x1,!0x1);_0x38caed[_0x31f687(0x1bf)]={'rowRanges':_0x362bf5(_0x35c82a),'colRanges':_0x362bf5(_0x2f5f85),'cornerRanges':_0x362bf5(_0x2f2eea),'dataRanges':_0x362bf5(_0x174836),'pageRanges':_0x362bf5(_0x495db6)},_0x38caed[_0x31f687(0x4b5)]=_0x114a4c;let _0x6c2b6a=(_0x22ba51=this['_univerInstanceService'][_0x31f687(0x34e)](_0x1da13b,_0x3f8283[_0x31f687(0x2f9)][_0x31f687(0x198)]))==null?void 0x0:_0x22ba51[_0x31f687(0x51d)](),{valueMatrix:_0x3df17d,rowInfo:_0xea9152,colInfo:_0x55d019,cornerInfo:_0xecb6a3,rowHeaderMap:_0x47862d,colHeaderMap:_0x955ef0}=_0x26b837(this[_0x31f687(0x1f7)],_0x31451d,_0x1ef087,this[_0x31f687(0x4ff)],_0x22d70e,_0x6c2b6a);return _0x38caed[_0x31f687(0xc2)]={'rowInfo':_0xea9152,'colInfo':_0x55d019,'cornerInfo':_0xecb6a3},_0x38caed[_0x31f687(0x1c9)]={'rowHeaderMap':_0x47862d,'colHeaderMap':_0x955ef0},_0x3df17d[_0x31f687(0x1bd)]((_0x493449,_0x4f8b7f)=>{const _0x1d9ccc=_0x31f687;Object[_0x1d9ccc(0x1b3)](_0x4f8b7f)[_0x1d9ccc(0x1bd)](_0x447e79=>{const _0x388484=_0x1d9ccc;let _0x2ab3f3=+_0x447e79,_0x4e4b7e=_0x3df17d[_0x388484(0x424)](_0x493449,_0x2ab3f3);_0x3c948b[_0x388484(0x1c4)](_0x493449,_0x2ab3f3,_0x4e4b7e);});}),_0x4df76c&&this['_viewUpdate$'][_0x31f687(0x21c)]({'unitId':_0x1da13b,'subUnitId':_0xf4e69c,'valueMatrix':_0x3c948b,'rangesCache':_0x38caed[_0x31f687(0x1bf)],'pivotTableId':_0x1eb147,'type':_0x593802['type']}),this[_0x31f687(0x51b)][_0x31f687(0x2ae)](_0x1da13b,_0xf4e69c,_0x1eb147,_0x3c948b,_0x38caed['rangesInfo']),this['_exclusiveRangeService']['addExclusiveRange'](_0x1da13b,_0xf4e69c,_0x118e18,this['_createExclusiveRange'](_0x38caed[_0x31f687(0x1bf)],_0x1eb147)),{'rangeCache':_0x38caed[_0x31f687(0x1bf)],'matrix':_0x3c948b};}}['_updateRenderEmptyCache'](_0x5870f4,_0x3b75d9,_0x1c190f,_0x1e700b,_0x2eb035){const _0x4947f4=_0x55e150;let {unitId:_0x460090,subUnitId:_0x5eca15,pivotTableId:_0x234005}=_0x5870f4,_0x1db2dc={'filter':this['_localeService']['t']('sheets-pivot.emptyPivot.filter'),'row':this[_0x4947f4(0x47d)]['t']('sheets-pivot.emptyPivot.row'),'column':this[_0x4947f4(0x47d)]['t'](_0x4947f4(0x3de)),'values':this[_0x4947f4(0x47d)]['t'](_0x4947f4(0x17c))},_0x1512f3=this[_0x4947f4(0x47d)][_0x4947f4(0x127)](),{matrixCache:_0x7e897b,rangesCache:_0x135a55}=_0x8bf98(_0x1db2dc,_0x1c190f,_0x1512f3);return _0x7e897b['forValue']((_0xa32fed,_0x24fba8,_0x174086)=>{const _0x4bef1c=_0x4947f4;_0x3b75d9[_0x4bef1c(0x1c4)](_0xa32fed,_0x24fba8,_0x174086);}),_0x1e700b[_0x4947f4(0x1bf)]=_0x135a55,_0x1e700b[_0x4947f4(0x4b5)]={'startColumn':_0x1c190f[_0x4947f4(0xf9)],'endColumn':_0x1c190f[_0x4947f4(0xf9)]+0x6-0x1,'direction':_0x1512f3},_0x2eb035&&this[_0x4947f4(0xc5)][_0x4947f4(0x21c)]({'unitId':_0x460090,'subUnitId':_0x5eca15,'valueMatrix':_0x3b75d9,'rangesCache':_0x135a55,'pivotTableId':_0x234005,'type':_0x5870f4[_0x4947f4(0x230)],'isEmpty':!0x0}),this[_0x4947f4(0x51b)]['updateViewInfo'](_0x460090,_0x5eca15,_0x234005,_0x3b75d9,_0x135a55),this['_exclusiveRangeService'][_0x4947f4(0x320)](_0x460090,_0x5eca15,_0x118e18,this[_0x4947f4(0x160)](_0x135a55,_0x234005)),{'rangeCache':_0x1e700b['rangesInfo'],'matrix':_0x3b75d9};}[_0x55e150(0x160)](_0x47d63f,_0x158984){let _0x587e1b=[],_0x144c44=_0x711efb(_0x47d63f);for(let _0x2a98e5 of _0x144c44)_0x587e1b['push']({'groupId':_0x158984,'range':_0x2a98e5});return _0x587e1b;}[_0x55e150(0x260)](_0x285e47){const _0x53a822=_0x55e150;this[_0x53a822(0x292)](_0x285e47);let {pivotTableId:_0x3ca2ea,unitId:_0x2125ec,subUnitId:_0x2022d2}=_0x285e47;if(!_0x3ca2ea||!_0x2125ec||!_0x2022d2)return;let _0x44e138=this['_ensurePivotItemRenderValueMatrixCache'](_0x2125ec,_0x2022d2);this['_viewUpdate$'][_0x53a822(0x21c)]({'unitId':_0x2125ec,'subUnitId':_0x2022d2,'valueMatrix':_0x44e138,'pivotTableId':_0x3ca2ea,'rangesCache':void 0x0,'type':_0x285e47[_0x53a822(0x230)]});}['_clearRenderCacheData'](_0x5c8172){const _0x1dbe84=_0x55e150;var _0x5c0a96,_0x1ac340;let {pivotTableId:_0x1c4487,unitId:_0x2a05c5,subUnitId:_0x4bc38a}=_0x5c8172;if(!_0x1c4487||!_0x2a05c5||!_0x4bc38a)return;let _0x1a1484=this[_0x1dbe84(0x346)](_0x2a05c5,_0x4bc38a),_0x450c71=(_0x5c0a96=this[_0x1dbe84(0x4c2)]['get'](_0x2a05c5))==null||(_0x5c0a96=_0x5c0a96[_0x1dbe84(0x97)](_0x4bc38a))==null?void 0x0:_0x5c0a96[_0x1dbe84(0x97)](_0x1c4487);if(_0x450c71!=null&&_0x450c71[_0x1dbe84(0x1bf)]){for(let _0x46e6d4 of Object['keys'](_0x450c71[_0x1dbe84(0x1bf)]))_0x450c71[_0x1dbe84(0x1bf)][_0x46e6d4][_0x1dbe84(0x1bd)](_0x149c5a=>{const _0x26e5bf=_0x1dbe84;for(let _0x3b8a1c=_0x149c5a[_0x26e5bf(0x33e)];_0x3b8a1c<=_0x149c5a[_0x26e5bf(0x315)];_0x3b8a1c++)for(let _0x57f28d=_0x149c5a[_0x26e5bf(0x2fc)];_0x57f28d<=_0x149c5a['endColumn'];_0x57f28d++)_0x1a1484[_0x26e5bf(0x500)](_0x3b8a1c,_0x57f28d);});}if(_0x450c71){var _0x27e8a8;(_0x27e8a8=this[_0x1dbe84(0x4c2)][_0x1dbe84(0x97)](_0x2a05c5))==null||(_0x27e8a8=_0x27e8a8['get'](_0x4bc38a))==null||_0x27e8a8[_0x1dbe84(0xe0)](_0x1c4487);}(_0x1ac340=this[_0x1dbe84(0x53d)]['get'](_0x2a05c5))==null||(_0x1ac340=_0x1ac340[_0x1dbe84(0x97)](_0x4bc38a))==null||_0x1ac340[_0x1dbe84(0xe0)](_0x1c4487),this['_exclusiveRangeService'][_0x1dbe84(0x490)](_0x2a05c5,_0x4bc38a,_0x118e18,_0x1c4487);}[_0x55e150(0x234)](_0x23c9c2,_0x422f8e,_0x168259){const _0x53f96e=_0x55e150;var _0x495f5f,_0x1090ff;if(this['_pivotRenderInfoCache'][_0x53f96e(0x16c)](_0x23c9c2)||this['_pivotRenderInfoCache']['set'](_0x23c9c2,new Map()),!((_0x495f5f=this[_0x53f96e(0x4c2)]['get'](_0x23c9c2))!=null&&_0x495f5f[_0x53f96e(0x16c)](_0x422f8e))){var _0x19a72a;(_0x19a72a=this[_0x53f96e(0x4c2)][_0x53f96e(0x97)](_0x23c9c2))==null||_0x19a72a[_0x53f96e(0x187)](_0x422f8e,new Map());}if(!((_0x1090ff=this['_pivotRenderInfoCache']['get'](_0x23c9c2))!=null&&(_0x1090ff=_0x1090ff['get'](_0x422f8e))!=null&&_0x1090ff['has'](_0x168259))){var _0x331bcf;(_0x331bcf=this['_pivotRenderInfoCache'][_0x53f96e(0x97)](_0x23c9c2))==null||(_0x331bcf=_0x331bcf['get'](_0x422f8e))==null||_0x331bcf[_0x53f96e(0x187)](_0x168259,{});}return this['_pivotRenderInfoCache'][_0x53f96e(0x97)](_0x23c9c2)[_0x53f96e(0x97)](_0x422f8e)[_0x53f96e(0x97)](_0x168259);}['_ensurePivotItemRenderValueMatrixCache'](_0x3a22a1,_0x1143a7){const _0x593565=_0x55e150;var _0x7de9df;if(this['_pivotRenderValueMatrixCache'][_0x593565(0x16c)](_0x3a22a1)||this['_pivotRenderValueMatrixCache'][_0x593565(0x187)](_0x3a22a1,new Map()),!((_0x7de9df=this[_0x593565(0x42c)]['get'](_0x3a22a1))!=null&&_0x7de9df[_0x593565(0x16c)](_0x1143a7))){var _0x4d0f16;(_0x4d0f16=this[_0x593565(0x42c)][_0x593565(0x97)](_0x3a22a1))==null||_0x4d0f16[_0x593565(0x187)](_0x1143a7,new _0x3f8283['ObjectMatrix']());}return this['_pivotRenderValueMatrixCache'][_0x593565(0x97)](_0x3a22a1)[_0x593565(0x97)](_0x1143a7);}[_0x55e150(0x388)](_0x450e1e,_0x4cdb52){const _0x382b19=_0x55e150;let _0xca9c69=this[_0x382b19(0x53d)]['get'](_0x450e1e);_0xca9c69||(_0xca9c69=new Map(),this[_0x382b19(0x53d)][_0x382b19(0x187)](_0x450e1e,_0xca9c69));let _0x26775c=_0xca9c69[_0x382b19(0x97)](_0x4cdb52);return _0x26775c||(_0x26775c=new Map(),_0xca9c69[_0x382b19(0x187)](_0x4cdb52,_0x26775c)),_0x26775c;}['getPivotTableCellData'](_0x14ab7f,_0x2ab43e,_0x34e740,_0x45f144){const _0x24f019=_0x55e150;var _0x5082a3;let _0x5dc0c4=(_0x5082a3=this[_0x24f019(0x42c)][_0x24f019(0x97)](_0x14ab7f))==null||(_0x5082a3=_0x5082a3['get'](_0x2ab43e))==null?void 0x0:_0x5082a3[_0x24f019(0x424)](_0x34e740,_0x45f144);if(_0x5dc0c4!=null)return _0x5dc0c4;}['getPivotTableIdByCell'](_0x2c480b,_0x134af9,_0x3443e9,_0x519377){const _0x4305f2=_0x55e150;var _0x5e4ea4;let _0x12a95a=(0x0,_0x3f8283['cellToRange'])(_0x3443e9,_0x519377),_0x5d3c1c=(_0x5e4ea4=this[_0x4305f2(0x4c2)][_0x4305f2(0x97)](_0x2c480b))==null?void 0x0:_0x5e4ea4[_0x4305f2(0x97)](_0x134af9);if(_0x5d3c1c)return Array[_0x4305f2(0x91)](_0x5d3c1c['keys']())[_0x4305f2(0x2da)](_0x221818=>{const _0x8469b7=_0x4305f2;let _0x1cee0d=_0x5d3c1c[_0x8469b7(0x97)](_0x221818),_0x486efe=_0x1cee0d==null?void 0x0:_0x1cee0d['rangesInfo'];return _0x486efe?Object[_0x8469b7(0x1b3)](_0x486efe)['some'](_0x349dbe=>_0x486efe[_0x349dbe]['some'](_0x2ac3d3=>_0x3f8283[_0x8469b7(0x13e)]['contains'](_0x2ac3d3,_0x12a95a))):!0x1;});}[_0x55e150(0x20a)](_0x5e6f57,_0xc47d4f,_0x1521b3){const _0x52a57c=_0x55e150;var _0x39514d;let _0x4507b2=(_0x39514d=this[_0x52a57c(0x4c2)][_0x52a57c(0x97)](_0x5e6f57))==null?void 0x0:_0x39514d['get'](_0xc47d4f),_0x4d1b5f=[];return _0x4507b2&&Array[_0x52a57c(0x91)](_0x4507b2[_0x52a57c(0x1b3)]())['forEach'](_0x53fba3=>{const _0x214c37=_0x52a57c;let _0x3fc144=_0x4507b2['get'](_0x53fba3),_0x31958a=_0x3fc144==null?void 0x0:_0x3fc144[_0x214c37(0x1bf)];if(_0x31958a)for(let _0x27b25e of Object[_0x214c37(0x20b)](_0x31958a)){let _0x29ad55=!0x1;for(let _0x50885d of _0x27b25e)if(_0x3f8283[_0x214c37(0x13e)][_0x214c37(0x2ac)](_0x50885d,_0x1521b3)){_0x4d1b5f[_0x214c37(0xc7)](_0x53fba3),_0x29ad55=!0x0;break;}if(_0x29ad55)break;}}),_0x4d1b5f;}[_0x55e150(0x4e7)](_0x5ecef6,_0x77b4b1){const _0xdc2798=_0x55e150;var _0x2fe631;return((_0x2fe631=this[_0xdc2798(0x42c)][_0xdc2798(0x97)](_0x5ecef6))==null?void 0x0:_0x2fe631['get'](_0x77b4b1))??new _0x3f8283[(_0xdc2798(0x2e4))]();}[_0x55e150(0x4bd)](_0x5a261d,_0x4f80dc){const _0x80d381=_0x55e150;var _0x273535;return(_0x273535=this['_pivotRenderInfoCache'][_0x80d381(0x97)](_0x5a261d))==null?void 0x0:_0x273535[_0x80d381(0x97)](_0x4f80dc);}[_0x55e150(0x501)](_0x50e25d,_0x186f2b,_0x7f826){const _0x1bc05d=_0x55e150;var _0x509ed6;return(_0x509ed6=this[_0x1bc05d(0x4c2)][_0x1bc05d(0x97)](_0x50e25d))==null||(_0x509ed6=_0x509ed6[_0x1bc05d(0x97)](_0x186f2b))==null?void 0x0:_0x509ed6[_0x1bc05d(0x97)](_0x7f826);}[_0x55e150(0x308)](_0xc85c58){const _0x1f7809=_0x55e150;this[_0x1f7809(0x4c2)][_0x1f7809(0xe0)](_0xc85c58),this[_0x1f7809(0x42c)][_0x1f7809(0xe0)](_0xc85c58),this['_pivotViewCache'][_0x1f7809(0xe0)](_0xc85c58);}[_0x55e150(0x108)](_0x42b759,_0x5c6bc9){const _0x341260=_0x55e150;this[_0x341260(0x4a6)][_0x341260(0x21c)]({'unitId':_0x42b759,'subUnitId':_0x5c6bc9});}};_0x505163=_0x174b33([_0x181d02(0x0,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x3f8283[_0x55e150(0x232)])),_0x181d02(0x1,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x3f8283[_0x55e150(0x1c6)])),_0x181d02(0x2,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x3de398)),_0x181d02(0x3,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x3f8283[_0x55e150(0x362)])),_0x181d02(0x4,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x4b3c60[_0x55e150(0x3ca)]))],_0x505163);let _0x341d14=new Set([_0x4078f7[_0x55e150(0x105)]['FilterAll'],_0x4078f7[_0x55e150(0x105)][_0x55e150(0x20f)],_0x4078f7[_0x55e150(0x105)][_0x55e150(0x4aa)],_0x4078f7[_0x55e150(0x105)][_0x55e150(0x478)],_0x4078f7[_0x55e150(0x105)][_0x55e150(0x12b)],_0x4078f7[_0x55e150(0x105)]['FilteredSortDesc'],_0x4078f7['PivotCellStyleTypeEnum'][_0x55e150(0x46b)],_0x4078f7[_0x55e150(0x105)][_0x55e150(0x4ef)],_0x4078f7['PivotCellStyleTypeEnum']['FilterNoneSortDesc']]),_0x462162=class extends _0x3f8283['Disposable']{constructor(_0x391154,_0x506a75,_0x7a5759){const _0x136f1f=_0x55e150;super(),this[_0x136f1f(0x3c9)]=_0x391154,this[_0x136f1f(0x2c8)]=_0x506a75,this[_0x136f1f(0x47d)]=_0x7a5759,_0x418dd6(this,_0x136f1f(0x31b),new _0x3f8283['AsyncInterceptorManager']({'PIVOT_MANUAL_FILTER_COORDINATION':_0x48909d,'PIVOT_PERFORM_CHECK':_0x3c57d5})),_0x418dd6(this,_0x136f1f(0x497),new _0x3f8283[(_0x136f1f(0x161))]({'PIVOT_FIELD_REMOVE_COORDINATION':_0x493572,'PIVOT_MUTATION_GENERATE':_0x34fa5a})),this['_init']();}['_init'](){const _0x5acfa5=_0x55e150;this[_0x5acfa5(0x1de)]();}[_0x55e150(0x28c)](_0x1313f4){const _0x46af43=_0x55e150;return this[_0x46af43(0x31b)]['fetchThroughAsyncInterceptors'](_0x3c57d5)(!0x1,_0x1313f4);}['_initViewModelBySheetInterceptor'](){const _0x44d216=_0x55e150;this['disposeWithMe'](this[_0x44d216(0x3c9)][_0x44d216(0x50a)](_0x4b3c60['INTERCEPTOR_POINT']['CELL_CONTENT'],{'id':'sheet.interceptor.range-theme-id','priority':0xc8,'effect':_0x3f8283[_0x44d216(0x148)]['Value']|_0x3f8283[_0x44d216(0x148)][_0x44d216(0x4ee)],'handler':(_0x5ecd84,_0x1319c3,_0x4e325a)=>{const _0x441533=_0x44d216;let {row:_0x491c90,col:_0x42667c,unitId:_0xd375c0,subUnitId:_0x1706bd,workbook:_0x272277}=_0x1319c3,_0x564dda=this[_0x441533(0x2c8)][_0x441533(0x383)](_0xd375c0,_0x1706bd,_0x491c90,_0x42667c);if(!_0x564dda)return _0x4e325a(_0x5ecd84);let _0x124110={..._0x5ecd84};(_0x564dda['v']||_0x564dda['v']===0x0)&&(_0x124110['v']=_0x564dda['v']),_0x564dda['t']&&(_0x124110['t']=_0x564dda['t']);let _0x4651cd=(typeof(_0x5ecd84==null?void 0x0:_0x5ecd84['s'])==_0x441533(0x45c)?_0x272277[_0x441533(0x390)]()['get'](_0x5ecd84==null?void 0x0:_0x5ecd84['s']):_0x5ecd84==null?void 0x0:_0x5ecd84['s'])||{},_0x96b3a0=_0x272277[_0x441533(0x390)]()[_0x441533(0x97)](_0x564dda['s']),_0xdc0f9f={..._0x96b3a0,..._0x4651cd};_0x96b3a0!=null&&_0x96b3a0['n']&&(_0xdc0f9f['n']=_0x96b3a0['n']);let _0x2dd304=this[_0x441533(0x47d)]['getDirection']();return _0x2dd304===_0x441533(0x317)&&_0x564dda[_0x441533(0x2e3)]&&_0x341d14[_0x441533(0x16c)](_0x564dda[_0x441533(0x2e3)])&&(_0xdc0f9f['ht']=_0x3f8283[_0x441533(0x158)][_0x441533(0x394)],_0x124110[_0x441533(0xdc)]={..._0x124110[_0x441533(0xdc)],'leftOffset':0x10}),_0x124110['s']=_0x272277[_0x441533(0x390)]()[_0x441533(0x1c4)](_0xdc0f9f),(_0x564dda[_0x441533(0x2e3)]===_0x4078f7[_0x441533(0x105)][_0x441533(0xd5)]||_0x564dda[_0x441533(0x2e3)]===_0x4078f7[_0x441533(0x105)]['Expand'])&&(_0x124110[_0x441533(0xdc)]={},_0x2dd304==='rtl'?_0x124110['fontRenderExtension'][_0x441533(0x44e)]=0x10:_0x124110[_0x441533(0xdc)]['leftOffset']=0x10),_0x4e325a(_0x124110);}}));}};_0x462162=_0x174b33([_0x181d02(0x0,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x4b3c60['SheetInterceptorService'])),_0x181d02(0x1,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x505163)),_0x181d02(0x2,(0x0,_0x3f8283['Inject'])(_0x3f8283['LocaleService']))],_0x462162);let _0x3a1f26={'id':_0x55e150(0x4fc),'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x4f2)],'handler':(_0x2173a6,_0x400e05)=>{const _0x2f1bd4=_0x55e150;if(!_0x400e05)return!0x1;let _0x2fce02=!!_0x2173a6['get'](_0x3f8283['IConfigService'])[_0x2f1bd4(0x23f)](_0x114562),{pivotTableId:_0x236bd0,fieldJSON:_0x25e480,unitId:_0x3abab6,subUnitId:_0xe74b62}=_0x400e05,_0x48db3f=(0x0,_0x4078f7[_0x2f1bd4(0xbc)])(_0x25e480);if(!(0x0,_0x4078f7[_0x2f1bd4(0x2a2)])(_0x48db3f))return!0x1;if(_0x2fce02){let _0x306fd5=_0x2173a6[_0x2f1bd4(0x97)](_0x3de398),_0x297b73=_0x306fd5[_0x2f1bd4(0x517)](_0x3abab6,_0x236bd0);if(!_0x297b73||!_0x306fd5[_0x2f1bd4(0x3a8)](_0x3abab6,_0xe74b62,_0x236bd0))return!0x1;let _0x7a957b=_0x3f8283[_0x2f1bd4(0xe7)][_0x2f1bd4(0x1e3)](_0x297b73);return _0x7a957b[_0x2f1bd4(0x1f3)][_0x2f1bd4(0xc7)](_0x25e480['id']),_0x7a957b['displayNameRecord'][_0x25e480['id']]=_0x4078f7[_0x2f1bd4(0xa7)]['getUniqueDataFieldName'](_0x25e480['name'],_0x7a957b[_0x2f1bd4(0x25c)]),_0x7a957b[_0x2f1bd4(0x4e0)][_0x25e480['id']]=_0x25e480,_0x306fd5[_0x2f1bd4(0x1aa)](_0x3abab6,_0x236bd0,_0x7a957b),!0x0;}let _0x2ae39c=_0x2173a6['get'](_0x30eff7),_0x16edee=_0x2ae39c['getDataFieldManager'](_0x3abab6),_0x9c3585=_0x16edee['getCollection'](_0x236bd0);_0x16edee['addDataFieldWithoutUnitInfo'](_0x48db3f),_0x9c3585[_0x2f1bd4(0x14c)](_0x48db3f['getId'](),_0x48db3f[_0x2f1bd4(0x25f)]());let _0x4914af=_0x9c3585[_0x2f1bd4(0x53c)](_0x48db3f[_0x2f1bd4(0x10e)]());if(_0x4914af){let _0x328953=_0x2173a6[_0x2f1bd4(0x97)](_0x3f8283[_0x2f1bd4(0x362)])[_0x2f1bd4(0x34e)](_0x3abab6,_0x3f8283['UniverInstanceType'][_0x2f1bd4(0x198)]);_0x2a257d(_0x328953==null?void 0x0:_0x328953[_0x2f1bd4(0x51d)]()),_0x48db3f[_0x2f1bd4(0x513)](_0x4914af);}let _0x15498e=_0x2ae39c['getPivotTableConfig'](_0x3abab6,_0xe74b62,_0x236bd0);return _0x2ae39c['addDirtyPivotTable']({'unitId':_0x3abab6,'subUnitId':_0xe74b62,'token':_0x236bd0,'type':_0x2f1bd4(0x187),'pivotConfig':_0x15498e}),!0x0;}},_0x3cb3b5={'id':_0x55e150(0x1f1),'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x4f2)],'handler':(_0x4e85fe,_0x590614)=>{const _0xffc454=_0x55e150;if(!_0x590614)return!0x1;if(_0x4e85fe[_0xffc454(0x97)](_0x3f8283[_0xffc454(0x2e6)])[_0xffc454(0x23f)](_0xffc454(0x111))){let _0x374887=_0x4e85fe[_0xffc454(0x97)](_0x3de398),_0x555f20=_0x374887[_0xffc454(0x517)](_0x590614['unitId'],_0x590614[_0xffc454(0x173)]);if(!_0x555f20||!_0x374887[_0xffc454(0x3a8)](_0x590614[_0xffc454(0xa0)],_0x590614[_0xffc454(0x2d0)],_0x590614['pivotTableId']))return!0x1;let _0x372729=_0x3f8283[_0xffc454(0xe7)]['deepClone'](_0x555f20);return _0x372729[_0xffc454(0x1f3)]=_0x372729['fieldIds'][_0xffc454(0x38f)](_0x26148b=>_0x26148b!==_0x590614[_0xffc454(0x19d)]),delete _0x372729[_0xffc454(0x4e0)][_0x590614[_0xffc454(0x19d)]],delete _0x372729[_0xffc454(0x25c)][_0x590614[_0xffc454(0x19d)]],_0x374887[_0xffc454(0x1aa)](_0x590614[_0xffc454(0xa0)],_0x590614[_0xffc454(0x173)],_0x372729),!0x0;}let {pivotTableId:_0x270e39,dataFieldId:_0x57f543,unitId:_0x199195,subUnitId:_0x7b8c2d}=_0x590614,_0x34c69d=_0x4e85fe[_0xffc454(0x97)](_0x30eff7),_0x2c974e=_0x34c69d['getDataFieldManager'](_0x199195);_0x2c974e[_0xffc454(0x517)](_0x270e39)[_0xffc454(0x130)](_0x57f543);let _0xc58c9f=!0x0;for(let _0x3500da in _0x2c974e['collections'])if(_0x2c974e['collections'][_0x3500da][_0xffc454(0x28a)]()[_0xffc454(0xf1)](_0x57f543)){_0xc58c9f=!0x1;break;}_0xc58c9f&&_0x2c974e[_0xffc454(0x4fa)](_0x57f543);let _0x566415=_0x34c69d[_0xffc454(0x3a8)](_0x199195,_0x7b8c2d,_0x270e39);return _0x34c69d[_0xffc454(0x131)]({'unitId':_0x199195,'subUnitId':_0x7b8c2d,'token':_0x270e39,'type':_0xffc454(0x187),'pivotConfig':_0x566415}),!0x0;}};function _0x34528a(_0x5b0737,_0x421073){const _0x468104=_0x55e150;switch(_0x421073){case _0x4078f7[_0x468104(0x149)][_0x468104(0x423)]:return _0x5b0737[_0x468104(0xee)];case _0x4078f7[_0x468104(0x149)]['Filter']:return _0x5b0737[_0x468104(0x241)];case _0x4078f7['PivotTableFiledAreaEnum'][_0x468104(0x438)]:return _0x5b0737[_0x468104(0x477)];case _0x4078f7['PivotTableFiledAreaEnum'][_0x468104(0x142)]:return _0x5b0737['columnFields'];case _0x4078f7['PivotTableFiledAreaEnum'][_0x468104(0x2a0)]:return _0x5b0737[_0x468104(0x1cb)];default:return[];}}function _0x5441aa(_0x4c3313,_0x30eaad){const _0xc545ab=_0x55e150;if(Object['prototype'][_0xc545ab(0x413)]['call'](_0x4c3313[_0xc545ab(0xa5)],_0x30eaad))return _0x4c3313[_0xc545ab(0xa5)][_0x30eaad];if(Object[_0xc545ab(0x34c)][_0xc545ab(0x413)][_0xc545ab(0x152)](_0x4c3313[_0xc545ab(0x3d4)],_0x30eaad))return _0x4c3313[_0xc545ab(0x3d4)][_0x30eaad];}function _0x28b5e5(_0x52ed7e,_0x28908e){const _0x73e2bb=_0x55e150;let {area:_0x400a27,fieldJson:_0xfed50f,index:_0x4407ba}=_0x28908e;_0x400a27===_0x4078f7['PivotTableFiledAreaEnum'][_0x73e2bb(0x423)]?_0x52ed7e[_0x73e2bb(0xa5)]={..._0x52ed7e[_0x73e2bb(0xa5)],[_0xfed50f['id']]:_0xfed50f}:_0x52ed7e[_0x73e2bb(0x3d4)]={..._0x52ed7e[_0x73e2bb(0x3d4)],[_0xfed50f['id']]:_0xfed50f},_0x34528a(_0x52ed7e,_0x400a27)[_0x73e2bb(0x44d)](_0x4407ba,0x0,_0xfed50f['id']);}function _0x48a390(_0x5f4c03,_0x42e19a){const _0x38d9ba=_0x55e150;let {area:_0x3c0f29,fieldId:_0x3b314b}=_0x42e19a,_0x34dc61=_0x34528a(_0x5f4c03,_0x3c0f29),_0x5689c8=_0x34dc61['indexOf'](_0x3b314b);_0x5689c8<0x0||(_0x3c0f29===_0x4078f7[_0x38d9ba(0x149)][_0x38d9ba(0x423)]?delete _0x5f4c03[_0x38d9ba(0xa5)][_0x3b314b]:delete _0x5f4c03[_0x38d9ba(0x3d4)][_0x3b314b],_0x34dc61[_0x38d9ba(0x44d)](_0x5689c8,0x1));}function _0x56afb3(_0x337e55,_0x4169b3){const _0xb4de43=_0x55e150;let {fieldId:_0x5679d0,name:_0x4ef9e0}=_0x4169b3,_0x5ab6ce=_0x5441aa(_0x337e55,_0x5679d0);_0x5ab6ce&&(_0x5ab6ce[_0xb4de43(0x30b)]=_0x4ef9e0);}function _0x4789ba(_0x409908,_0x2dcbad){const _0x181d52=_0x55e150;let {fieldId:_0x25e2c6,collapse:_0x6b74b2,item:_0x35b04c}=_0x2dcbad;if(_0x409908[_0x181d52(0x462)]=Object[_0x181d52(0x4e6)](Object[_0x181d52(0x277)](null),_0x409908[_0x181d52(0x462)]),_0x35b04c!==void 0x0){let _0xf98e6c=_0x409908[_0x181d52(0x462)][_0x25e2c6],_0x3da63f=Object[_0x181d52(0x4e6)](Object[_0x181d52(0x277)](null),typeof _0xf98e6c==_0x181d52(0xa3)?_0xf98e6c:void 0x0);_0x3da63f[_0x35b04c]=_0x6b74b2===!0x0,_0x409908[_0x181d52(0x462)][_0x25e2c6]=_0x3da63f;}else _0x6b74b2===void 0x0?delete _0x409908[_0x181d52(0x462)][_0x25e2c6]:_0x409908['collapseInfo'][_0x25e2c6]=typeof _0x6b74b2=='object'?Object[_0x181d52(0x4e6)](Object['create'](null),_0x6b74b2):_0x6b74b2;}function _0x569e2d(_0x5d2216,_0x41f22b){const _0x186d62=_0x55e150;let {fieldId:_0x2670fa,format:_0x1a9316}=_0x41f22b,_0x1fd346=_0x5441aa(_0x5d2216,_0x2670fa);_0x1fd346&&(_0x1fd346[_0x186d62(0xd2)]=_0x1a9316);}function _0x3ac155(_0x11c84e,_0x94858c){const _0x2484ce=_0x55e150;let {fieldId:_0x4f80b1,filterInfo:_0x5a8c64}=_0x94858c,_0x3dc2b7=_0x5441aa(_0x11c84e,_0x4f80b1);_0x3dc2b7&&(_0x3dc2b7[_0x2484ce(0x93)]=_0x5a8c64);}function _0x544ad(_0xadc8c1,_0x58e538){const _0x3f71eb=_0x55e150;let {fieldId:_0xecb0e0,filterInfo:_0x535aec,index:_0x326cad}=_0x58e538,_0x3d8b99=_0xadc8c1[_0x3f71eb(0x509)],_0x5c5cec=_0x3d8b99[_0x3f71eb(0x323)](_0x16ef50=>_0x16ef50[_0x3f71eb(0xc8)]===_0xecb0e0);if(_0x5c5cec!==-0x1&&_0x3d8b99['splice'](_0x5c5cec,0x1),_0x535aec){let _0x455321=Math[_0x3f71eb(0x52a)](Math[_0x3f71eb(0x226)](_0x326cad!==void 0x0&&_0x326cad>=0x0?_0x326cad:_0x5c5cec===-0x1?_0x3d8b99['length']:_0x5c5cec,0x0),_0x3d8b99[_0x3f71eb(0x337)]);_0x3d8b99[_0x3f71eb(0x44d)](_0x455321,0x0,{'fieldId':_0xecb0e0,'filterInfo':{..._0x535aec,'expected':Array[_0x3f71eb(0x10a)](_0x535aec[_0x3f71eb(0x2cd)])?_0x535aec['expected'][_0x3f71eb(0x1e1)]():_0x535aec['expected']}});}}function _0x40b9a4(_0x11c809,_0x45cda8){const _0x583f87=_0x55e150;let {fieldId:_0x4331d2,subtotalType:_0x109e1c}=_0x45cda8,_0x136c79=_0x5441aa(_0x11c809,_0x4331d2);_0x136c79&&(_0x136c79[_0x583f87(0x182)]=_0x109e1c);}function _0x113e4a(_0x3cae93,_0xdc98f5){const _0x31bd3a=_0x55e150;let {fieldId:_0x9e95f9,oldArea:_0x519939,area:_0xd9ff09,index:_0x236e29}=_0xdc98f5,_0xb47480=_0x34528a(_0x3cae93,_0x519939),_0xe459dc=_0xb47480['indexOf'](_0x9e95f9);if(_0xe459dc<0x0)return;let _0xa07c1d=_0x519939!==_0x4078f7[_0x31bd3a(0x149)][_0x31bd3a(0x423)]&&_0xd9ff09===_0x4078f7['PivotTableFiledAreaEnum'][_0x31bd3a(0x423)],_0x2b14c7=_0x519939===_0x4078f7[_0x31bd3a(0x149)][_0x31bd3a(0x423)]&&_0xd9ff09!==_0x4078f7['PivotTableFiledAreaEnum'][_0x31bd3a(0x423)];if(_0xa07c1d||_0x2b14c7){let _0x25635c=_0x5441aa(_0x3cae93,_0x9e95f9);_0x25635c&&(_0xa07c1d?(delete _0x3cae93[_0x31bd3a(0x3d4)][_0x9e95f9],_0x3cae93[_0x31bd3a(0xa5)]={..._0x3cae93[_0x31bd3a(0xa5)],[_0x9e95f9]:_0x25635c}):(delete _0x3cae93[_0x31bd3a(0xa5)][_0x9e95f9],_0x3cae93['dimension']={..._0x3cae93[_0x31bd3a(0x3d4)],[_0x9e95f9]:_0x25635c}));}let _0x2327c2=_0x34528a(_0x3cae93,_0xd9ff09);_0xb47480[_0x31bd3a(0x44d)](_0xe459dc,0x1),_0x2327c2[_0x31bd3a(0x44d)](_0x236e29,0x0,_0x9e95f9);}function _0x159ea2(_0x18fabf,_0x5e2a6d){const _0x13a488=_0x55e150;let {valuePosition:_0x4d6bfe,index:_0x3c2b2a}=_0x5e2a6d;_0x18fabf[_0x13a488(0x267)]=_0x4d6bfe,_0x18fabf[_0x13a488(0x45f)]=_0x3c2b2a;}function _0x4d13dc(_0x58ccef,_0x1d95e0){const _0x4efb18=_0x55e150;let {tableFieldId:_0x22d8b8,sourceName:_0x13576e,dataFieldId:_0x1e21a2}=_0x1d95e0,_0x19d9ae=_0x5441aa(_0x58ccef,_0x22d8b8);_0x19d9ae&&(_0x19d9ae[_0x4efb18(0x538)]=_0x13576e,_0x19d9ae[_0x4efb18(0x19d)]=_0x1e21a2);}function _0x20490c(_0x32517e,_0x4883e2){const _0x27dd83=_0x55e150;let {fieldId:_0x438f1a,sortInfo:_0x33fe12}=_0x4883e2,_0x4d60df=_0x5441aa(_0x32517e,_0x438f1a);_0x4d60df&&(_0x4d60df[_0x27dd83(0x370)]=_0x33fe12);}function _0x13742a(_0x589015,_0x45d1b7){const _0x3ee485=_0x55e150;let {fieldId:_0x58fe8e,showDataAs:_0x3c4036}=_0x45d1b7,_0x3e9226=Object['prototype'][_0x3ee485(0x413)][_0x3ee485(0x152)](_0x589015[_0x3ee485(0xa5)],_0x58fe8e)?_0x589015[_0x3ee485(0xa5)][_0x58fe8e]:void 0x0;_0x3e9226&&(_0x3e9226[_0x3ee485(0x44b)]={..._0x3c4036});}function _0x5e3e90(_0x47d332,_0x582064){const _0x3a8d40=_0x55e150;let {options:_0x2cdd75,replace:_0x11baec}=_0x582064;_0x47d332[_0x3a8d40(0x218)]=_0x11baec?{..._0x2cdd75}:{..._0x47d332[_0x3a8d40(0x218)],..._0x2cdd75};}function _0x38d5a5(_0x56ebc3,_0x2d47e1){const _0x51a169=_0x55e150;let {layout:_0x452279}=_0x2d47e1;_0x56ebc3[_0x51a169(0x351)]=_0x452279;}let _0x4def4f={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x4f2)],'id':_0x55e150(0x2f6),'handler'(_0x42acc1,_0x5d7b4c){const _0x2a1b74=_0x55e150;if(!_0x5d7b4c)return!0x1;if(_0x42acc1['get'](_0x3f8283[_0x2a1b74(0x2e6)])[_0x2a1b74(0x23f)](_0x2a1b74(0x111)))return _0x42acc1[_0x2a1b74(0x97)](_0x3de398)['applyConfigChange'](_0x5d7b4c,_0x5dc7da=>_0x28b5e5(_0x5dc7da[_0x2a1b74(0x4ac)],_0x5d7b4c));let _0x3edb8e=_0x42acc1[_0x2a1b74(0x97)](_0x30eff7),{pivotTableId:_0x32325e,fieldJson:_0x172ca3,area:_0x59ea37,index:_0x4a9539,unitId:_0x23fce3,subUnitId:_0x23e30a}=_0x5d7b4c,_0x181798=_0x3edb8e['getPivotTableInstance'](_0x32325e);if(!_0x181798)return!0x1;let _0xdb7471;_0xdb7471=_0x59ea37===_0x4078f7['PivotTableFiledAreaEnum'][_0x2a1b74(0x423)]?(0x0,_0x4078f7[_0x2a1b74(0xf7)])(_0x172ca3):(0x0,_0x4078f7[_0x2a1b74(0x531)])(_0x172ca3),_0x181798[_0x2a1b74(0x14c)](_0xdb7471,_0x59ea37,_0x4a9539),_0x28b5e5(_0x3edb8e[_0x2a1b74(0x1ae)](_0x23fce3,_0x23e30a,_0x32325e),_0x5d7b4c);let _0x3ff7af=_0x3edb8e[_0x2a1b74(0x3a8)](_0x23fce3,_0x23e30a,_0x32325e);return _0x3edb8e[_0x2a1b74(0x131)]({'unitId':_0x23fce3,'subUnitId':_0x23e30a,'token':_0x32325e,'type':_0x2a1b74(0x187),'pivotConfig':_0x3ff7af}),!0x0;}},_0x3bb375={'type':_0x3f8283['CommandType'][_0x55e150(0x4f2)],'id':'sheet.mutation.remove-pivot-field','handler'(_0x372ed4,_0x1a6c9b){const _0x15c057=_0x55e150;if(!_0x1a6c9b)return!0x1;if(_0x372ed4[_0x15c057(0x97)](_0x3f8283[_0x15c057(0x2e6)])[_0x15c057(0x23f)](_0x15c057(0x111)))return _0x372ed4[_0x15c057(0x97)](_0x3de398)[_0x15c057(0x14b)](_0x1a6c9b,_0x74426d=>_0x48a390(_0x74426d[_0x15c057(0x4ac)],_0x1a6c9b));let _0x151d9d=_0x372ed4[_0x15c057(0x97)](_0x30eff7),{pivotTableId:_0x1f36f0,fieldId:_0x369a06,unitId:_0x14af17,subUnitId:_0x54fee0}=_0x1a6c9b,_0x5a3d1d=_0x151d9d[_0x15c057(0x483)](_0x1f36f0);if(!_0x5a3d1d)return!0x1;_0x5a3d1d[_0x15c057(0x3f8)](_0x369a06),_0x48a390(_0x151d9d[_0x15c057(0x1ae)](_0x14af17,_0x54fee0,_0x1f36f0),_0x1a6c9b);let _0x28c777=_0x151d9d['getPivotTableConfig'](_0x14af17,_0x54fee0,_0x1f36f0);return _0x151d9d[_0x15c057(0x131)]({'unitId':_0x14af17,'subUnitId':_0x54fee0,'token':_0x1f36f0,'type':'set','pivotConfig':_0x28c777}),!0x0;}},_0x165fec={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x4f2)],'id':_0x55e150(0x4ce),'handler'(_0x2eb8d2,_0x1d9126){const _0x3d962c=_0x55e150;if(!_0x1d9126)return!0x1;if(_0x2eb8d2['get'](_0x3f8283[_0x3d962c(0x2e6)])[_0x3d962c(0x23f)](_0x3d962c(0x111)))return _0x2eb8d2[_0x3d962c(0x97)](_0x3de398)[_0x3d962c(0x14b)](_0x1d9126,_0x212ba1=>_0x56afb3(_0x212ba1[_0x3d962c(0x4ac)],_0x1d9126));let _0x3b7791=_0x2eb8d2['get'](_0x30eff7),{unitId:_0x443f71,subUnitId:_0x5184e4,pivotTableId:_0x457699,fieldId:_0x170717,name:_0x455844}=_0x1d9126,_0x384978=_0x3b7791[_0x3d962c(0x483)](_0x457699);return _0x384978?(_0x384978['renameField'](_0x170717,_0x455844),_0x56afb3(_0x3b7791[_0x3d962c(0x1ae)](_0x443f71,_0x5184e4,_0x457699),_0x1d9126),_0x3b7791[_0x3d962c(0x131)]({'unitId':_0x443f71,'subUnitId':_0x5184e4,'token':_0x457699,'type':_0x3d962c(0x187)}),!0x0):!0x1;}},_0x23fb62={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x4f2)],'id':_0x55e150(0x51f),'handler'(_0x262fe3,_0x141193){const _0x2ce273=_0x55e150;if(!_0x141193)return!0x1;if(_0x262fe3['get'](_0x3f8283[_0x2ce273(0x2e6)])[_0x2ce273(0x23f)](_0x2ce273(0x111)))return _0x262fe3[_0x2ce273(0x97)](_0x3de398)['applyConfigChange'](_0x141193,_0x535bf4=>_0x4789ba(_0x535bf4['fieldsConfig'],_0x141193));let _0x400d57=_0x262fe3[_0x2ce273(0x97)](_0x30eff7),{unitId:_0xc4ec26,subUnitId:_0x4056e5,pivotTableId:_0xc15678,fieldId:_0x2e4d30,collapse:_0x2ec60e,item:_0x4f6d2d}=_0x141193,_0x3f2db2=_0x400d57[_0x2ce273(0x483)](_0xc15678);return _0x3f2db2?(_0x3f2db2[_0x2ce273(0x1ed)](_0x2e4d30,_0x2ec60e,_0x4f6d2d),_0x4789ba(_0x400d57[_0x2ce273(0x1ae)](_0xc4ec26,_0x4056e5,_0xc15678),_0x141193),_0x400d57[_0x2ce273(0x131)]({'unitId':_0xc4ec26,'subUnitId':_0x4056e5,'token':_0xc15678,'type':_0x2ce273(0x187)}),!0x0):!0x1;}},_0x83e99a={'type':_0x3f8283[_0x55e150(0x110)]['MUTATION'],'id':_0x55e150(0x507),'handler'(_0x1d7eef,_0x1a2a61){const _0x485b74=_0x55e150;if(!_0x1a2a61)return!0x1;if(_0x1d7eef[_0x485b74(0x97)](_0x3f8283['IConfigService'])[_0x485b74(0x23f)](_0x485b74(0x111)))return _0x1d7eef[_0x485b74(0x97)](_0x3de398)[_0x485b74(0x14b)](_0x1a2a61,_0x719e63=>_0x569e2d(_0x719e63[_0x485b74(0x4ac)],_0x1a2a61));let _0x21a9e5=_0x1d7eef[_0x485b74(0x97)](_0x30eff7),{unitId:_0x433bdb,subUnitId:_0x261a04,pivotTableId:_0x3d84cc,fieldId:_0x5e04a1,format:_0x545ab7}=_0x1a2a61,_0x43d3c4=_0x21a9e5[_0x485b74(0x483)](_0x3d84cc);return _0x43d3c4?(_0x43d3c4['setFieldFormat'](_0x5e04a1,_0x545ab7),_0x569e2d(_0x21a9e5[_0x485b74(0x1ae)](_0x433bdb,_0x261a04,_0x3d84cc),_0x1a2a61),_0x21a9e5[_0x485b74(0x131)]({'unitId':_0x433bdb,'subUnitId':_0x261a04,'token':_0x3d84cc,'type':_0x485b74(0x187)}),!0x0):!0x1;}},_0x7e5e98={'type':_0x3f8283[_0x55e150(0x110)]['MUTATION'],'id':'sheet.mutation.set-pivot-filter','handler'(_0x9a288e,_0x116280){const _0x2aee8e=_0x55e150;if(!_0x116280)return!0x1;if(_0x9a288e[_0x2aee8e(0x97)](_0x3f8283['IConfigService'])[_0x2aee8e(0x23f)](_0x2aee8e(0x111)))return _0x9a288e[_0x2aee8e(0x97)](_0x3de398)[_0x2aee8e(0x14b)](_0x116280,_0x299532=>_0x3ac155(_0x299532['fieldsConfig'],_0x116280));let _0xecc565=_0x9a288e[_0x2aee8e(0x97)](_0x30eff7),{unitId:_0x33d46b,subUnitId:_0x13fe88,pivotTableId:_0x1b9c2a,fieldId:_0x1f1a8a,filterInfo:_0x5e09cc}=_0x116280,_0x2bf5f6=_0xecc565[_0x2aee8e(0x483)](_0x1b9c2a);return _0x2bf5f6?(_0x2bf5f6[_0x2aee8e(0x208)](_0x1f1a8a,_0x5e09cc),_0x3ac155(_0xecc565['getPivotTableModelConfig'](_0x33d46b,_0x13fe88,_0x1b9c2a),_0x116280),_0xecc565[_0x2aee8e(0x131)]({'unitId':_0x33d46b,'subUnitId':_0x13fe88,'token':_0x1b9c2a,'type':_0x2aee8e(0x187)}),!0x0):!0x1;}},_0x5c609b={'type':_0x3f8283[_0x55e150(0x110)]['MUTATION'],'id':_0x55e150(0x264),'handler'(_0x493149,_0x4297a1){const _0x5cedf2=_0x55e150;if(!_0x4297a1)return!0x1;if(_0x493149[_0x5cedf2(0x97)](_0x3f8283[_0x5cedf2(0x2e6)])[_0x5cedf2(0x23f)](_0x5cedf2(0x111)))return _0x493149[_0x5cedf2(0x97)](_0x3de398)[_0x5cedf2(0x14b)](_0x4297a1,_0x5b18c9=>_0x38d5a5(_0x5b18c9['fieldsConfig'],_0x4297a1));let _0x72723d=_0x493149[_0x5cedf2(0x97)](_0x30eff7),{unitId:_0x3e000f,subUnitId:_0x42c573,pivotTableId:_0x36645a,layout:_0x5d5f77}=_0x4297a1,_0x232119=_0x72723d[_0x5cedf2(0x483)](_0x36645a);return _0x232119?(_0x232119[_0x5cedf2(0x444)](_0x5d5f77),_0x38d5a5(_0x72723d['getPivotTableModelConfig'](_0x3e000f,_0x42c573,_0x36645a),_0x4297a1),_0x72723d[_0x5cedf2(0x131)]({'unitId':_0x3e000f,'subUnitId':_0x42c573,'token':_0x36645a,'type':'set'}),!0x0):!0x1;}},_0x52b628={'type':_0x3f8283['CommandType'][_0x55e150(0x4f2)],'id':_0x55e150(0x275),'handler'(_0x404ca4,_0x20ec2c){const _0x439e4a=_0x55e150;if(!_0x20ec2c)return!0x1;if(_0x404ca4[_0x439e4a(0x97)](_0x3f8283[_0x439e4a(0x2e6)])[_0x439e4a(0x23f)](_0x439e4a(0x111)))return _0x404ca4['get'](_0x3de398)[_0x439e4a(0x14b)](_0x20ec2c,_0x124952=>_0x5e3e90(_0x124952[_0x439e4a(0x4ac)],_0x20ec2c));let _0x1dc15e=_0x404ca4[_0x439e4a(0x97)](_0x30eff7),{unitId:_0x36ce47,subUnitId:_0xc467a,pivotTableId:_0x46ed9b,options:_0x339f7a,replace:_0x1a0205}=_0x20ec2c,_0x13d18e=_0x1dc15e['getPivotTableInstance'](_0x46ed9b);return _0x13d18e?(_0x13d18e[_0x439e4a(0x421)](_0x339f7a,_0x1a0205),_0x5e3e90(_0x1dc15e[_0x439e4a(0x1ae)](_0x36ce47,_0xc467a,_0x46ed9b),_0x20ec2c),_0x1dc15e[_0x439e4a(0x131)]({'unitId':_0x36ce47,'subUnitId':_0xc467a,'token':_0x46ed9b,'type':_0x439e4a(0x187)}),!0x0):!0x1;}},_0x4ceb5b={'type':_0x3f8283[_0x55e150(0x110)]['MUTATION'],'id':_0x55e150(0x113),'handler'(_0x3cb6d0,_0x10decc){const _0x35f744=_0x55e150;if(!_0x10decc)return!0x1;if(_0x3cb6d0['get'](_0x3f8283[_0x35f744(0x2e6)])[_0x35f744(0x23f)](_0x35f744(0x111))){var _0x22a0fd;let _0xfed7df=_0x3cb6d0[_0x35f744(0x97)](_0x3de398);return(_0x22a0fd=_0xfed7df[_0x35f744(0x3a8)](_0x10decc[_0x35f744(0xa0)],_0x10decc[_0x35f744(0x2d0)],_0x10decc[_0x35f744(0x173)]))!=null&&_0x22a0fd[_0x35f744(0x4ac)][_0x35f744(0xa5)][_0x10decc[_0x35f744(0xc8)]]?_0xfed7df[_0x35f744(0x14b)](_0x10decc,_0xc5fe55=>_0x13742a(_0xc5fe55[_0x35f744(0x4ac)],_0x10decc)):!0x1;}let _0x47b0ad=_0x3cb6d0[_0x35f744(0x97)](_0x30eff7),{unitId:_0x52a5a7,subUnitId:_0x1f9a67,pivotTableId:_0x107a67,fieldId:_0x8c12c1,showDataAs:_0xab346}=_0x10decc,_0x4f8aaf=_0x47b0ad['getPivotTableInstance'](_0x107a67),_0x1b1ab5=_0x47b0ad['getPivotTableModelConfig'](_0x52a5a7,_0x1f9a67,_0x107a67);return!_0x4f8aaf||!(_0x1b1ab5!=null&&_0x1b1ab5[_0x35f744(0xa5)][_0x8c12c1])?!0x1:(_0x4f8aaf[_0x35f744(0x246)](_0x8c12c1,_0xab346),_0x13742a(_0x1b1ab5,_0x10decc),_0x47b0ad[_0x35f744(0x131)]({'unitId':_0x52a5a7,'subUnitId':_0x1f9a67,'token':_0x107a67,'type':_0x35f744(0x187)}),!0x0);}},_0x3f7b06={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x4f2)],'id':'sheet.mutation.set-pivot-sort-info','handler'(_0x37e558,_0x1a4985){const _0x2f3662=_0x55e150;if(!_0x1a4985)return!0x1;if(_0x37e558[_0x2f3662(0x97)](_0x3f8283[_0x2f3662(0x2e6)])['getConfig'](_0x2f3662(0x111)))return _0x37e558[_0x2f3662(0x97)](_0x3de398)['applyConfigChange'](_0x1a4985,_0x53df3c=>_0x20490c(_0x53df3c[_0x2f3662(0x4ac)],_0x1a4985));let _0x3ba13c=_0x37e558[_0x2f3662(0x97)](_0x30eff7),{unitId:_0x2a1e17,subUnitId:_0x250f3a,pivotTableId:_0x2fad23,sortInfo:_0xa6e7f8,fieldId:_0x28d387}=_0x1a4985,_0x51d3be=_0x3ba13c[_0x2f3662(0x483)](_0x2fad23);return _0x51d3be?(_0x51d3be['setSortInfo'](_0x28d387,_0xa6e7f8),_0x20490c(_0x3ba13c[_0x2f3662(0x1ae)](_0x2a1e17,_0x250f3a,_0x2fad23),_0x1a4985),_0x3ba13c[_0x2f3662(0x131)]({'unitId':_0x2a1e17,'subUnitId':_0x250f3a,'token':_0x2fad23,'type':_0x2f3662(0x187)}),!0x0):!0x1;}},_0x471afb={'type':_0x3f8283[_0x55e150(0x110)]['MUTATION'],'id':_0x55e150(0x316),'handler'(_0x163605,_0x23bc6a){const _0x2f60ae=_0x55e150;if(!_0x23bc6a)return!0x1;if(_0x163605['get'](_0x3f8283[_0x2f60ae(0x2e6)])[_0x2f60ae(0x23f)]('SHEET_PIVOT_IN_MAIN_THREAD'))return _0x163605[_0x2f60ae(0x97)](_0x3de398)['applyConfigChange'](_0x23bc6a,_0x2086fb=>_0x40b9a4(_0x2086fb['fieldsConfig'],_0x23bc6a));let _0x1ddb7f=_0x163605[_0x2f60ae(0x97)](_0x30eff7),{unitId:_0xc43f0f,subUnitId:_0x31ac7f,pivotTableId:_0x7c4321,fieldId:_0x5b3849,subtotalType:_0x109fe8}=_0x23bc6a,_0x19b536=_0x1ddb7f[_0x2f60ae(0x483)](_0x7c4321);return _0x19b536?(_0x19b536['setSubtotalType'](_0x5b3849,_0x109fe8),_0x40b9a4(_0x1ddb7f['getPivotTableModelConfig'](_0xc43f0f,_0x31ac7f,_0x7c4321),_0x23bc6a),_0x1ddb7f[_0x2f60ae(0x131)]({'unitId':_0xc43f0f,'subUnitId':_0x31ac7f,'token':_0x7c4321,'type':_0x2f60ae(0x187)}),!0x0):!0x1;}},_0x39a049={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x4f2)],'id':_0x55e150(0x4c1),'handler'(_0x5e79b8,_0x319150){const _0x1750d7=_0x55e150;if(!_0x319150)return!0x1;if(_0x5e79b8['get'](_0x3f8283[_0x1750d7(0x2e6)])[_0x1750d7(0x23f)](_0x1750d7(0x111))){var _0x55b5a1;let _0x2f9492=_0x5e79b8[_0x1750d7(0x97)](_0x3de398),_0x4b8de8=(_0x55b5a1=_0x2f9492[_0x1750d7(0x3a8)](_0x319150[_0x1750d7(0xa0)],_0x319150[_0x1750d7(0x2d0)],_0x319150[_0x1750d7(0x173)]))==null?void 0x0:_0x55b5a1[_0x1750d7(0x4ac)],{fieldId:_0x3b5b8a,filterInfo:_0x31dbe6}=_0x319150;return!_0x4b8de8||!(_0x4b8de8[_0x1750d7(0x477)][_0x1750d7(0xf1)](_0x3b5b8a)||_0x4b8de8[_0x1750d7(0x4bf)][_0x1750d7(0xf1)](_0x3b5b8a))||_0x31dbe6!==void 0x0&&(_0x31dbe6[_0x1750d7(0x230)]!==_0x4078f7['PivotFilterTypeEnum'][_0x1750d7(0x4c8)]||!_0x4b8de8[_0x1750d7(0xa5)][_0x31dbe6['valueFieldId']]||!(0x0,_0x4078f7[_0x1750d7(0x3e7)])(_0x31dbe6[_0x1750d7(0x457)]))?!0x1:_0x2f9492[_0x1750d7(0x14b)](_0x319150,_0x569049=>_0x544ad(_0x569049[_0x1750d7(0x4ac)],_0x319150));}let _0x5f20e3=_0x5e79b8['get'](_0x30eff7),{unitId:_0x28b2d8,subUnitId:_0x14c4ff,pivotTableId:_0x5d626c,fieldId:_0xf561e6,filterInfo:_0x2e599a,index:_0x363818}=_0x319150,_0x15a8a6=_0x5f20e3['getPivotTableInstance'](_0x5d626c),_0x3a43e1=_0x5f20e3[_0x1750d7(0x1ae)](_0x28b2d8,_0x14c4ff,_0x5d626c),_0x561351=!!(_0x3a43e1&&(_0x3a43e1['rowFields'][_0x1750d7(0xf1)](_0xf561e6)||_0x3a43e1['columnFields'][_0x1750d7(0xf1)](_0xf561e6)));return!_0x15a8a6||!_0x3a43e1||!_0x561351||_0x2e599a!==void 0x0&&(_0x2e599a[_0x1750d7(0x230)]!==_0x4078f7[_0x1750d7(0x3ed)][_0x1750d7(0x4c8)]||!_0x3a43e1['measure'][_0x2e599a[_0x1750d7(0x1e9)]]||!(0x0,_0x4078f7[_0x1750d7(0x3e7)])(_0x2e599a[_0x1750d7(0x457)]))?!0x1:(_0x15a8a6[_0x1750d7(0x301)](_0xf561e6,_0x2e599a,_0x363818),_0x544ad(_0x3a43e1,_0x319150),_0x5f20e3['addDirtyPivotTable']({'unitId':_0x28b2d8,'subUnitId':_0x14c4ff,'token':_0x5d626c,'type':_0x1750d7(0x187)}),!0x0);}},_0x498917={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x4f2)],'id':_0x55e150(0x175),'handler'(_0x39aef6,_0x52e58d){const _0x1a1154=_0x55e150;if(!_0x52e58d)return!0x1;if(_0x39aef6[_0x1a1154(0x97)](_0x3f8283[_0x1a1154(0x2e6)])[_0x1a1154(0x23f)](_0x1a1154(0x111)))return _0x39aef6['get'](_0x3de398)[_0x1a1154(0x14b)](_0x52e58d,_0x1d5654=>_0x113e4a(_0x1d5654['fieldsConfig'],_0x52e58d));let _0x53b752=_0x39aef6[_0x1a1154(0x97)](_0x30eff7),{unitId:_0x140baa,subUnitId:_0x56a76e,pivotTableId:_0x4dacbf,area:_0x13d5d8,index:_0x1beda5,fieldId:_0x37b133}=_0x52e58d,_0x4845be=_0x53b752[_0x1a1154(0x483)](_0x4dacbf);return _0x4845be?(_0x4845be[_0x1a1154(0xce)](_0x37b133,_0x13d5d8,_0x1beda5),_0x113e4a(_0x53b752[_0x1a1154(0x1ae)](_0x140baa,_0x56a76e,_0x4dacbf),_0x52e58d),_0x53b752[_0x1a1154(0x131)]({'unitId':_0x140baa,'subUnitId':_0x56a76e,'token':_0x4dacbf,'type':_0x1a1154(0x187)}),!0x0):!0x1;}},_0x2feedc={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x4f2)],'id':'sheet.mutation.pivot-update-field-source-info','handler'(_0x4694f3,_0xc090b4){const _0x572a30=_0x55e150;if(!_0xc090b4)return!0x1;if(_0x4694f3['get'](_0x3f8283[_0x572a30(0x2e6)])[_0x572a30(0x23f)](_0x572a30(0x111)))return _0x4694f3[_0x572a30(0x97)](_0x3de398)[_0x572a30(0x14b)](_0xc090b4,_0x2d5782=>_0x4d13dc(_0x2d5782[_0x572a30(0x4ac)],_0xc090b4));let _0x41832a=_0x4694f3[_0x572a30(0x97)](_0x30eff7),{unitId:_0xc76b6d,subUnitId:_0x2a9438,pivotTableId:_0x45ce33,sourceName:_0x511089,dataFieldId:_0x49d857,tableFieldId:_0x2dc994}=_0xc090b4,_0x1151ef=_0x41832a[_0x572a30(0x483)](_0x45ce33);return _0x1151ef?(_0x1151ef['updateFieldSourceInfo'](_0x2dc994,_0x511089,_0x49d857),_0x4d13dc(_0x41832a[_0x572a30(0x1ae)](_0xc76b6d,_0x2a9438,_0x45ce33),_0xc090b4),_0x41832a['addDirtyPivotTable']({'unitId':_0xc76b6d,'subUnitId':_0x2a9438,'token':_0x45ce33,'type':_0x572a30(0x187)}),!0x0):!0x1;}},_0x344f9d={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x4f2)],'id':'sheet.mutation.pivot-update-value-position','handler'(_0x299d91,_0x4d261b){const _0x3eb83d=_0x55e150;if(!_0x4d261b)return!0x1;if(_0x299d91[_0x3eb83d(0x97)](_0x3f8283[_0x3eb83d(0x2e6)])[_0x3eb83d(0x23f)]('SHEET_PIVOT_IN_MAIN_THREAD'))return _0x299d91[_0x3eb83d(0x97)](_0x3de398)[_0x3eb83d(0x14b)](_0x4d261b,_0x2ba8f3=>_0x159ea2(_0x2ba8f3[_0x3eb83d(0x4ac)],_0x4d261b));let _0x59cfa6=_0x299d91[_0x3eb83d(0x97)](_0x30eff7),{unitId:_0x35d9e3,subUnitId:_0x35a6e1,pivotTableId:_0x3dc779,valuePosition:_0x57e686,index:_0x1d5548}=_0x4d261b,_0x44492e=_0x59cfa6[_0x3eb83d(0x483)](_0x3dc779);return _0x44492e?(_0x44492e[_0x3eb83d(0x2c0)](_0x57e686,_0x1d5548),_0x159ea2(_0x59cfa6[_0x3eb83d(0x1ae)](_0x35d9e3,_0x35a6e1,_0x3dc779),_0x4d261b),_0x59cfa6['addDirtyPivotTable']({'unitId':_0x35d9e3,'subUnitId':_0x35a6e1,'token':_0x3dc779,'type':_0x3eb83d(0x187)}),!0x0):!0x1;}};function _0x4e6ba0(_0x415e15,_0x5a0274){const _0x205e00=_0x55e150;if(_0x415e15['some'](({redos:_0x29c6a2,undos:_0xb0f2ff})=>_0x29c6a2[_0x205e00(0x337)]!==_0xb0f2ff[_0x205e00(0x337)]))return!0x1;let _0xfbfc24=[];for(let {redos:_0x16180f,undos:_0x1ea9d8,reverse:_0x4dc4e4}of _0x415e15)for(let _0x523a5d=0x0;_0x523a5d<_0x16180f[_0x205e00(0x337)];_0x523a5d++){let _0x4b9dc6=_0x16180f[_0x523a5d],_0x274484=!0x1;try{_0x274484=_0x5a0274['syncExecuteCommand'](_0x4b9dc6['id'],_0x4b9dc6[_0x205e00(0x305)]);}catch{_0x274484=!0x1;}if(!_0x274484){for(let _0x2a80e2=_0xfbfc24[_0x205e00(0x337)]-0x1;_0x2a80e2>=0x0;_0x2a80e2--){let _0x512870=_0xfbfc24[_0x2a80e2];_0x5a0274[_0x205e00(0x128)](_0x512870['id'],_0x512870[_0x205e00(0x305)]);}return!0x1;}_0xfbfc24[_0x205e00(0xc7)](_0x1ea9d8[_0x4dc4e4?_0x1ea9d8[_0x205e00(0x337)]-_0x523a5d-0x1:_0x523a5d]);}return!0x0;}function _0x4cc94b(_0x4c5aa4,_0x373216,_0x3533d4){const _0x468357=_0x55e150;let {pivotTableId:_0x1f2a25,unitId:_0x5e9de0,subUnitId:_0x295c98}=_0x373216,_0x48df4e=[],_0x4012f7=[];for(let _0x49509c of _0x3533d4)switch(_0x49509c[_0x468357(0x230)]){case _0x4078f7['PivotTableChangeTypeEnum'][_0x468357(0x1e0)]:{let {fieldJson:_0x2413c1,area:_0x3a540c,index:_0x353a42}=_0x49509c,_0x62e8eb={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'fieldJson':_0x2413c1,'area':_0x3a540c,'index':_0x353a42},_0x2a5642={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'fieldId':_0x2413c1['id'],'area':_0x3a540c,'index':_0x353a42};_0x48df4e['push']({'id':_0x4def4f['id'],'params':_0x62e8eb}),_0x4012f7['unshift']({'id':_0x3bb375['id'],'params':_0x2a5642});}break;case _0x4078f7[_0x468357(0x245)][_0x468357(0xa2)]:{let {fieldId:_0x425cce,newSubtotalType:_0x330dd7,oldSubtotalType:_0x114066}=_0x49509c,_0x189d6e={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'fieldId':_0x425cce,'subtotalType':_0x330dd7};_0x48df4e[_0x468357(0xc7)]({'id':_0x471afb['id'],'params':_0x189d6e});let _0x45be73={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'fieldId':_0x425cce,'subtotalType':_0x114066};_0x4012f7[_0x468357(0x52c)]({'id':_0x471afb['id'],'params':_0x45be73});}break;case _0x4078f7[_0x468357(0x245)]['RemoveField']:{let {fieldId:_0x4b399a,fieldJson:_0x182171,area:_0x18c541,index:_0x4299c6}=_0x49509c,_0x5d1829={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'fieldId':_0x4b399a,'index':_0x4299c6,'area':_0x18c541};_0x48df4e['push']({'id':_0x3bb375['id'],'params':_0x5d1829});let _0x5aa7aa={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'fieldJson':_0x182171,'area':_0x18c541,'index':_0x4299c6};_0x4012f7[_0x468357(0x52c)]({'id':_0x4def4f['id'],'params':_0x5aa7aa});}break;case _0x4078f7[_0x468357(0x245)][_0x468357(0x14f)]:{let {fieldId:_0x3a17c3,oldName:_0x3e1b5b,newName:_0xbfa9a8}=_0x49509c,_0x4f5e5a={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'fieldId':_0x3a17c3,'name':_0xbfa9a8};_0x48df4e['push']({'id':_0x165fec['id'],'params':_0x4f5e5a});let _0x4a89c1={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'fieldId':_0x3a17c3,'name':_0x3e1b5b};_0x4012f7[_0x468357(0x52c)]({'id':_0x165fec['id'],'params':_0x4a89c1});}break;case _0x4078f7['PivotTableChangeTypeEnum'][_0x468357(0x516)]:{let {fieldId:_0x51d425,oldFilterInfo:_0x64614b,newFilterInfo:_0x216936}=_0x49509c,_0x2d7d45={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'fieldId':_0x51d425,'filterInfo':_0x216936};_0x48df4e[_0x468357(0xc7)]({'id':_0x7e5e98['id'],'params':_0x2d7d45});let _0x3d53a7={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'fieldId':_0x51d425,'filterInfo':_0x64614b};_0x4012f7[_0x468357(0x52c)]({'id':_0x7e5e98['id'],'params':_0x3d53a7});}break;case _0x4078f7[_0x468357(0x245)][_0x468357(0xc0)]:{let {fieldId:_0x1245f2,oldSortInfo:_0x4af973,newSortInfo:_0x9b8993}=_0x49509c,_0x29fd55={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'fieldId':_0x1245f2,'sortInfo':_0x9b8993};_0x48df4e[_0x468357(0xc7)]({'id':_0x3f7b06['id'],'params':_0x29fd55});let _0x4cac6a={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'fieldId':_0x1245f2,'sortInfo':_0x4af973};_0x4012f7[_0x468357(0x52c)]({'id':_0x3f7b06['id'],'params':_0x4cac6a});}break;case _0x4078f7[_0x468357(0x245)][_0x468357(0x30d)]:{let {fieldId:_0x567b07,oldShowDataAs:_0x29e29f,newShowDataAs:_0xce6b93}=_0x49509c,_0x5dfc70={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'fieldId':_0x567b07,'showDataAs':{..._0xce6b93}};_0x48df4e[_0x468357(0xc7)]({'id':_0x4ceb5b['id'],'params':_0x5dfc70});let _0x11799f={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'fieldId':_0x567b07,'showDataAs':{..._0x29e29f}};_0x4012f7[_0x468357(0x52c)]({'id':_0x4ceb5b['id'],'params':_0x11799f});}break;case _0x4078f7[_0x468357(0x245)]['SetOptions']:{let {oldOptions:_0x3e2800,newOptions:_0x1eb750}=_0x49509c,_0x18f5d1={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'options':_0x1eb750,'replace':!0x0};_0x48df4e[_0x468357(0xc7)]({'id':_0x52b628['id'],'params':_0x18f5d1});let _0x31a906={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'options':_0x3e2800,'replace':!0x0};_0x4012f7[_0x468357(0x52c)]({'id':_0x52b628['id'],'params':_0x31a906});}break;case _0x4078f7[_0x468357(0x245)][_0x468357(0x22d)]:{let {oldLayout:_0x5747dc,newLayout:_0x3b2f19}=_0x49509c,_0x52e067={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'layout':_0x3b2f19};_0x48df4e[_0x468357(0xc7)]({'id':_0x5c609b['id'],'params':_0x52e067});let _0x4e1d45={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'layout':_0x5747dc};_0x4012f7[_0x468357(0x52c)]({'id':_0x5c609b['id'],'params':_0x4e1d45});}break;case _0x4078f7[_0x468357(0x245)][_0x468357(0x22e)]:{let {oldArea:_0xee3071,newArea:_0x4650f8,oldIndex:_0x5615b9,newIndex:_0x2e5416,fieldId:_0x4e3068}=_0x49509c,_0x451257={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'fieldId':_0x4e3068,'area':_0x4650f8,'index':_0x2e5416,'oldArea':_0xee3071,'oldIndex':_0x5615b9};_0x48df4e[_0x468357(0xc7)]({'id':_0x498917['id'],'params':_0x451257});let _0x2f6b74={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'fieldId':_0x4e3068,'area':_0xee3071,'index':_0x5615b9,'oldArea':_0x4650f8,'oldIndex':_0x2e5416};_0x4012f7[_0x468357(0x52c)]({'id':_0x498917['id'],'params':_0x2f6b74});}break;case _0x4078f7[_0x468357(0x245)][_0x468357(0x3e3)]:{let {oldValuePosition:_0x235a91,newValuePosition:_0x1fc33c,oldIndex:_0x2ab4d3,newIndex:_0x4c109f}=_0x49509c,_0x4a23a8={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'valuePosition':_0x1fc33c,'index':_0x4c109f};_0x48df4e['push']({'id':_0x344f9d['id'],'params':_0x4a23a8});let _0x4ebb31={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'valuePosition':_0x235a91,'index':_0x2ab4d3};_0x4012f7[_0x468357(0x52c)]({'id':_0x344f9d['id'],'params':_0x4ebb31});}break;case _0x4078f7[_0x468357(0x245)][_0x468357(0x37d)]:{let {fieldId:_0x2171a2,collapse:_0xded427,item:_0x629e7,previous:_0x5096c0}=_0x49509c,_0x215195={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'fieldId':_0x2171a2,'collapse':_0xded427,'item':_0x629e7};_0x48df4e[_0x468357(0xc7)]({'id':_0x23fb62['id'],'params':_0x215195});let _0xd24260={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'fieldId':_0x2171a2,'collapse':_0x5096c0?_0x5096c0[_0x468357(0xd1)]:!_0xded427,'item':_0x5096c0?void 0x0:_0x629e7};_0x4012f7[_0x468357(0x52c)]({'id':_0x23fb62['id'],'params':_0xd24260});}break;case _0x4078f7[_0x468357(0x245)][_0x468357(0x3ac)]:{let {newFormat:_0x3ab27d,oldFormat:_0x52fe44,fieldId:_0x2870ca}=_0x49509c,_0x399746={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'fieldId':_0x2870ca,'format':_0x3ab27d};_0x48df4e[_0x468357(0xc7)]({'id':_0x83e99a['id'],'params':_0x399746});let _0x40e6bd={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'fieldId':_0x2870ca,'format':_0x52fe44};_0x4012f7[_0x468357(0x52c)]({'id':_0x83e99a['id'],'params':_0x40e6bd});}break;case _0x4078f7[_0x468357(0x245)]['UpdateSource']:{let {tableFieldId:_0x52ca24,oldSourceName:_0x1df049,newSourceName:_0x41cf3b,oldDataFieldId:_0x324d18,newDataFieldId:_0x2b0404}=_0x49509c,_0x56e9c2={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'tableFieldId':_0x52ca24,'sourceName':_0x41cf3b,'dataFieldId':_0x2b0404};_0x48df4e[_0x468357(0xc7)]({'id':_0x2feedc['id'],'params':_0x56e9c2});let _0x5ea958={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'tableFieldId':_0x52ca24,'sourceName':_0x1df049,'dataFieldId':_0x324d18};_0x4012f7['unshift']({'id':_0x2feedc['id'],'params':_0x5ea958});}break;case _0x4078f7[_0x468357(0x245)][_0x468357(0x396)]:{let {fieldId:_0x35d881,filterInfo:_0xd4d014,oldFilterInfo:_0x3e9bbe,newIndex:_0x4884d9,oldIndex:_0x1a00a6}=_0x49509c,_0x4eb423={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'fieldId':_0x35d881,'filterInfo':_0xd4d014,'index':_0x4884d9};_0x48df4e['push']({'id':_0x39a049['id'],'params':_0x4eb423});let _0x3a481d={'unitId':_0x5e9de0,'subUnitId':_0x295c98,'pivotTableId':_0x1f2a25,'fieldId':_0x35d881,'filterInfo':_0x3e9bbe,'index':_0x1a00a6};_0x4012f7['unshift']({'id':_0x39a049['id'],'params':_0x3a481d});}}return{'redos':_0x48df4e,'undos':_0x4012f7};}function _0x26896e(_0x493df7,_0x2f5750){const _0xff77fd=_0x55e150;let _0x55fb9e=_0x493df7[_0xff77fd(0x97)](_0x462162),{cellInfo:_0x14f599,view:_0x19d039,isEmpty:_0x30886c}=_0x2f5750;return _0x55fb9e[_0xff77fd(0x497)][_0xff77fd(0x434)](_0x34fa5a)(_0x54c05e,{'cellInfo':_0x14f599,'view':_0x19d039,'isEmpty':_0x30886c})??_0x54c05e;}let _0x445a36={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x1a6)],'id':_0x55e150(0x4cc),async 'handler'(_0x2ac078,_0x48ea4b){const _0xf16d82=_0x55e150;if(!_0x48ea4b)return!0x1;let _0x5ae072=_0x2ac078['get'](_0x3f8283['ICommandService']),_0xc46019=_0x2ac078['get'](_0x5b492b),_0x1ca02e=_0x2ac078[_0xf16d82(0x97)](_0x3f8283[_0xf16d82(0x1a0)]),{pivotTableId:_0x38644,dataFieldId:_0x1872cd,fieldArea:_0x44a109,index:_0x1222a2,unitId:_0x34725c,subUnitId:_0x590493}=_0x48ea4b,_0x5f0c2a=(await _0xc46019[_0xf16d82(0x2f3)]({'unitId':_0x34725c,'subUnitId':_0x590493,'pivotTableId':_0x38644,'params':{'type':_0xf16d82(0xeb),'addPivotField':{'dataFieldId':_0x1872cd,'fieldArea':_0x44a109,'index':_0x1222a2}}}))['result'][_0xf16d82(0xeb)];if(!_0x5f0c2a)return!0x1;let {view:_0x524ff4,changesets:_0x2ec456,isEmpty:_0x4acf22,pivotTableConfig:_0x3263f2,shouldBeAddedGroupJSON:_0xe80b09}=_0x5f0c2a,_0x217716=_0x3263f2[_0xf16d82(0xf0)],_0x445d74=new _0x4078f7[(_0xf16d82(0x3d3))]();_0x445d74[_0xf16d82(0x35e)](_0x524ff4);let _0x9cd998={'cellInfo':_0x217716,'view':_0x445d74,'isEmpty':_0x4acf22};if(!await _0x2ac078['get'](_0x462162)['asyncInterceptor'][_0xf16d82(0x50c)](_0x3c57d5)(!0x0,_0x9cd998))return!0x1;let _0x59bd9e=_0x1ddf1b(_0x2ac078,_0x445d74,_0x217716,_0x4acf22),_0x462076=_0x26896e(_0x2ac078,_0x9cd998),{undos:_0x541966,redos:_0x35c999}=_0x4cc94b(_0x5ae072,{'pivotTableId':_0x38644,'unitId':_0x34725c,'subUnitId':_0x590493},_0x2ec456);return _0xe80b09&&(_0x35c999[_0xf16d82(0x52c)]({'id':_0x3a1f26['id'],'params':{'pivotTableId':_0x38644,'fieldJSON':_0xe80b09,'unitId':_0x34725c,'subUnitId':_0x590493}}),_0x541966[_0xf16d82(0xc7)]({'id':_0x3cb3b5['id'],'params':{'pivotTableId':_0x38644,'dataFieldId':_0xe80b09['id'],'unitId':_0x34725c,'subUnitId':_0x590493}})),(0x0,_0x3f8283[_0xf16d82(0xb1)])([..._0x59bd9e['redos'],..._0x462076[_0xf16d82(0x430)],..._0x35c999],_0x5ae072)['result']?(_0x1ca02e[_0xf16d82(0x482)]({'unitID':_0x34725c,'redoMutations':[..._0x59bd9e[_0xf16d82(0x430)],..._0x462076[_0xf16d82(0x430)],..._0x35c999],'undoMutations':[..._0x59bd9e['undos'],..._0x462076[_0xf16d82(0x371)],..._0x541966]}),!0x0):!0x1;}},_0x5934da=()=>typeof process<'u'&&process[_0x55e150(0x4c0)]!=null&&process[_0x55e150(0x4c0)]['node']!=null,_0x36d11c={'type':_0x3f8283['CommandType'][_0x55e150(0x4f2)],'id':_0x55e150(0xab),'handler'(_0x4a3d29,_0x1d2d79){const _0xd1631d=_0x55e150;if(!_0x1d2d79)return!0x1;let _0x18caae=_0x4a3d29[_0xd1631d(0x97)](_0x3f8283[_0xd1631d(0x2e6)]),{pivotTableId:_0x3a6c84,pivotTableConfig:_0x3838a2,collectionConfig:_0xee38fd,unitId:_0x4a1da9,subUnitId:_0x12c2dc}=_0x1d2d79,_0x31e2ef=_0x4a3d29[_0xd1631d(0x97)](_0x3f8283[_0xd1631d(0x362)])[_0xd1631d(0x34e)](_0x4a1da9);if(!(_0x31e2ef!=null&&_0x31e2ef[_0xd1631d(0x176)](_0x12c2dc))||!_0xee38fd||!_0x3838a2[_0xd1631d(0x4ac)])return!0x1;if(_0x18caae[_0xd1631d(0x23f)]('SHEET_PIVOT_IN_MAIN_THREAD')){let _0x1b1408=_0x4a3d29[_0xd1631d(0x97)](_0x3de398);return _0x1b1408[_0xd1631d(0x43b)](()=>{const _0x991c6=_0xd1631d;let _0x219a87=_0x1b1408[_0x991c6(0x201)]([{'unitId':_0x4a1da9,'subUnitId':_0x12c2dc,'pivotTableId':_0x3a6c84,'config':_0x3838a2}]);_0x219a87[_0x991c6(0x225)](),_0x1b1408['updateCollectionMetadata'](_0x3838a2['sourceRangeInfo'][_0x991c6(0xa0)],_0x3a6c84,_0xee38fd,_0x3838a2[_0x991c6(0x3ae)]?{'pivotCacheId':_0x3838a2['pivotCacheId'],'sourceRangeInfo':_0x3838a2['sourceRangeInfo']}:void 0x0),_0x219a87[_0x991c6(0x397)]();}),!0x0;}let _0xa413b9=_0x4a3d29['get'](_0x30eff7),{sourceRangeInfo:_0x74802f,fieldsConfig:_0x2882ae,targetCellInfo:_0x25a8f5}=_0x3838a2;if(!_0x5934da()){let _0x477720=0x0;_0x31e2ef[_0xd1631d(0x2aa)]()[_0xd1631d(0x1bd)](_0xaca93e=>{const _0x1a8b4e=_0xd1631d;var _0x4e946a;_0x477720+=((_0x4e946a=_0xa413b9[_0x1a8b4e(0x1ec)](_0x4a1da9,_0xaca93e[_0x1a8b4e(0x4ec)]()))==null?void 0x0:_0x4e946a[_0x1a8b4e(0xef)])??0x0;});let {ls:_0x46cd3b,pbk:_0x3b2135}=_0x18caae[_0xd1631d(0x23f)](_0x5067df[_0xd1631d(0x327)])??{};if(!_0x399785(_0x46cd3b,_0x3b2135))throw new _0x3f8283[(_0xd1631d(0x306))](_0xd1631d(0x3b0));let _0x2a92a9=_0x340686(0x1,_0x46cd3b,_0x3b2135)['count'];if(_0x477720>=_0x2a92a9)throw new _0x3f8283[(_0xd1631d(0x306))]('limit\x20pivot');}if(!_0xee38fd||!_0x2882ae)return!0x1;let {collection:_0x5e7af1,updateDataFieldList:_0x4dc6a6}=_0xa413b9[_0xd1631d(0x51c)](_0x3a6c84,_0xee38fd,_0x74802f,_0x25a8f5);_0xa413b9[_0xd1631d(0x281)](_0x5e7af1,_0x4dc6a6,_0x74802f);let _0x533802=new _0x4078f7[(_0xd1631d(0x358))](_0x5e7af1,void 0x0,_0x3a6c84);_0x533802[_0xd1631d(0x3b3)](_0x2882ae);let _0x411e2d=JSON[_0xd1631d(0x191)](JSON['stringify'](_0x3838a2));return _0xa413b9['addPivotTable'](_0x4a1da9,_0x12c2dc,_0x3a6c84,_0x533802,_0x411e2d),_0xa413b9['addDirtyPivotTable']({'unitId':_0x4a1da9,'subUnitId':_0x12c2dc,'token':_0x3a6c84,'type':'add','pivotConfig':_0x411e2d}),!0x0;}},_0x21b075={'type':_0x3f8283[_0x55e150(0x110)]['COMMAND'],'id':_0x55e150(0x491),async 'handler'(_0x4a500b,_0x186ddf){const _0x5c8294=_0x55e150;if(!_0x186ddf)return!0x1;let {sourceDataInfo:_0xb1302,pivotTableConfig:_0x76941c}=_0x186ddf;if(!_0xb1302||!_0x76941c)return!0x1;let {unitId:_0x21e454,subUnitId:_0x10ac0c,range:_0x3c6e7c}=_0xb1302,_0x5daf7d=_0x4a500b[_0x5c8294(0x97)](_0x3f8283[_0x5c8294(0x362)]),_0x3fdd32=_0x4a500b[_0x5c8294(0x97)](_0x5b492b),_0x27ba14=_0x4a500b['get'](_0x3f8283[_0x5c8294(0x232)]),_0x123267=_0x4a500b[_0x5c8294(0x97)](_0x3f8283[_0x5c8294(0x3cb)]),_0x3b2b7c=_0x5daf7d['getUnit'](_0x21e454);if(!_0x3b2b7c)return!0x1;let _0x31a19b=_0x3b2b7c[_0x5c8294(0x176)](_0x10ac0c);if(!_0x31a19b)return!0x1;let _0x501ebb=(0x0,_0x4078f7['generateHexNumber'])(0x8),_0x12c7b0=_0x3c6e7c||{'startRow':0x0,'startColumn':0x0,'endRow':_0x31a19b['getRowCount']()-0x1,'endColumn':_0x31a19b[_0x5c8294(0x18f)]()-0x1};_0x12c7b0[_0x5c8294(0x193)]=_0x3f8283[_0x5c8294(0xd9)][_0x5c8294(0x2d6)];let _0x3e7602=(await _0x3fdd32[_0x5c8294(0x2f3)]({'unitId':_0x21e454,'subUnitId':_0x10ac0c,'pivotTableId':_0x501ebb,'params':{'type':'AddPivotTableWithConfig','addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x21e454,'sheetName':_0x31a19b[_0x5c8294(0x25f)](),'subUnitId':_0x10ac0c,'range':_0x12c7b0},'pivotTableId':_0x501ebb,'pivotTableIndexConfig':_0x76941c}}}))[_0x5c8294(0x487)][_0x5c8294(0x43d)];if(!_0x3e7602)return!0x1;let {isEmpty:_0x133532,fieldsConfig:_0x1d553d,collectionConfig:_0x2f8a88,changesets:_0x2267cf,pivotCacheId:_0x42f46f}=_0x3e7602,_0x709d4a=_0x3b2b7c[_0x5c8294(0x2aa)]()['length'],_0xce097=(0x0,_0x3f8283[_0x5c8294(0x4a7)])({'rowCount':_0x31a19b[_0x5c8294(0x484)]()-0x1,'columnCount':_0x31a19b[_0x5c8294(0x18f)]()-0x1});_0xce097['id']=(0x0,_0x3f8283['generateRandomId'])(),_0xce097[_0x5c8294(0x20e)]=_0x3b2b7c['generateNewSheetName'](''+_0x27ba14['t'](_0x5c8294(0x28d)));let _0x398247={'index':_0x709d4a,'sheet':_0xce097,'unitId':_0x21e454},{redos:_0x27a04f}=_0x4cc94b(_0x123267,{'pivotTableId':_0x501ebb,'unitId':_0x21e454,'subUnitId':_0xce097['id']},_0x2267cf),_0x81c852=[{'id':_0x4b3c60[_0x5c8294(0x19b)]['id'],'params':_0x398247},{'id':_0x36d11c['id'],'params':{'unitId':_0x21e454,'subUnitId':_0xce097['id'],'pivotTableId':_0x501ebb,'pivotTableConfig':{'pivotCacheId':_0x42f46f,'isEmpty':_0x133532,'fieldsConfig':_0x1d553d,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x21e454,'subUnitId':_0xce097['id']},'sourceRangeInfo':{'subUnitId':_0x10ac0c,'unitId':_0x21e454,'range':_0x12c7b0,'sheetName':_0x31a19b[_0x5c8294(0x25f)]()}},'collectionConfig':_0x2f8a88}},..._0x27a04f];return(0x0,_0x3f8283[_0x5c8294(0xb1)])(_0x81c852,_0x123267)[_0x5c8294(0x487)];}},_0x4532a7={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x4f2)],'id':'sheet.mutation.remove-pivot-table','handler'(_0x2dcd59,_0x221323){const _0x584667=_0x55e150;if(!_0x221323)return!0x1;if(_0x2dcd59['get'](_0x3f8283[_0x584667(0x2e6)])[_0x584667(0x23f)](_0x584667(0x111))){let _0x29afde=_0x2dcd59[_0x584667(0x97)](_0x3de398),{unitId:_0x189647,subUnitId:_0x1295be,pivotTableId:_0x1fa11c}=_0x221323,_0x4ae0e3=_0x29afde['getPivotTableConfig'](_0x189647,_0x1295be,_0x1fa11c);return _0x4ae0e3?(_0x29afde[_0x584667(0x43b)](()=>{const _0x5b2645=_0x584667;_0x29afde['updateConfigCache'](_0x189647,_0x1295be,_0x1fa11c,null),_0x29afde[_0x5b2645(0x109)](_0x4ae0e3[_0x5b2645(0x1f5)][_0x5b2645(0xa0)],_0x1fa11c);}),!0x0):!0x1;}let {pivotTableId:_0x425c8e,unitId:_0x1518c1,subUnitId:_0x249c83}=_0x221323,_0x3a4243=_0x2dcd59[_0x584667(0x97)](_0x30eff7);return _0x3a4243['getPivotTableConfig'](_0x1518c1,_0x249c83,_0x425c8e)?(_0x3a4243['addDirtyPivotTable']({'unitId':_0x1518c1,'subUnitId':_0x249c83,'token':_0x425c8e,'type':'delete'}),_0x3a4243['removePivotTable'](_0x1518c1,_0x249c83,_0x425c8e),!0x0):!0x1;}},_0x2c1156={'type':_0x3f8283[_0x55e150(0x110)]['COMMAND'],'id':_0x55e150(0x3f0),async 'handler'(_0x1ec0ea,_0x1fce3b){const _0x253f08=_0x55e150;let _0x2bae5b=_0x1ec0ea[_0x253f08(0x97)](_0x3f8283[_0x253f08(0x3cb)]),_0x45a39a=_0x1ec0ea['get'](_0x3f8283['IUniverInstanceService']),_0x4e20e2=_0x1ec0ea[_0x253f08(0x97)](_0x3f8283[_0x253f08(0x232)]),_0x22acdc=_0x1ec0ea[_0x253f08(0x97)](_0x5b492b),_0x5644a9=_0x1ec0ea['get'](_0x3f8283[_0x253f08(0x1a0)]),_0x1406f1=_0x1ec0ea[_0x253f08(0x97)](_0x3de398),_0x2985a2=_0x1ec0ea[_0x253f08(0x97)](_0x3f8283[_0x253f08(0x2e6)]);if(!_0x1fce3b)return!0x1;let {pivotTableConfig:_0x24e7b2,positionType:_0x1e8eee}=_0x1fce3b,{targetCellInfo:_0x230de7,sourceRangeInfo:_0xe2c60b}=_0x24e7b2,{unitId:_0x31ddaf,subUnitId:_0x84d8c1}=_0x230de7,_0x9e7b18=_0x45a39a[_0x253f08(0x34e)](_0x31ddaf);if(!_0x9e7b18)return!0x1;let _0x34703=0x0;_0x9e7b18['getSheets']()[_0x253f08(0x1bd)](_0x21f9ec=>{const _0x5e441d=_0x253f08;var _0x5cae40;_0x34703+=((_0x5cae40=_0x1406f1[_0x5e441d(0x1ec)](_0x31ddaf,_0x21f9ec[_0x5e441d(0x4ec)]()))==null?void 0x0:_0x5cae40[_0x5e441d(0xef)])??0x0;});let {ls:_0x33b909,pbk:_0x2306c4}=_0x2985a2[_0x253f08(0x23f)](_0x5067df[_0x253f08(0x327)])??{};if(!_0x399785(_0x33b909,_0x2306c4))return!0x1;let _0xf4c4c1=_0x340686(0x1,_0x33b909,_0x2306c4)[_0x253f08(0x295)];if(_0x34703>=_0xf4c4c1)return!0x1;let _0x29a5cb=_0x1fce3b[_0x253f08(0x173)]||(0x0,_0x4078f7['generateHexNumber'])(0x8),_0x48bbd0=(await _0x22acdc[_0x253f08(0x2f3)]({'unitId':_0x31ddaf,'subUnitId':_0x84d8c1,'pivotTableId':_0x29a5cb,'params':{'type':_0x253f08(0x40e),'addPivotTable':{'sourceRangeInfo':_0xe2c60b,'pivotTableId':_0x29a5cb}}}))['result'][_0x253f08(0x40e)];if(!_0x48bbd0)return!0x1;let {view:_0xac8543,isEmpty:_0x59ab89,fieldsConfig:_0x40cc9b,collectionConfig:_0x1f3d07,pivotCacheId:_0x1ebac7}=_0x48bbd0,_0x31b67a=[],_0x48cc1f=[];if(_0x1e8eee==='new'){let _0xd514cb=_0x9e7b18['getSheets']()[_0x253f08(0x337)],_0x47dcad=(0x0,_0x3f8283[_0x253f08(0x4a7)])({});_0x47dcad['id']=_0x24e7b2[_0x253f08(0xf0)]['subUnitId'],_0x47dcad[_0x253f08(0x20e)]=_0x24e7b2[_0x253f08(0xf0)][_0x253f08(0x28e)]??_0x9e7b18['generateNewSheetName'](''+_0x4e20e2['t']('sheets-pivot.sheet'));let _0x2e9fed={'index':_0xd514cb,'sheet':_0x47dcad,'unitId':_0x31ddaf},_0x3203b3=(0x0,_0x4b3c60[_0x253f08(0x2cb)])(_0x1ec0ea,_0x2e9fed);_0x31b67a[_0x253f08(0xc7)]({'id':_0x4b3c60[_0x253f08(0x3ce)]['id'],'params':_0x3203b3}),_0x48cc1f[_0x253f08(0xc7)]({'id':_0x4b3c60['InsertSheetMutation']['id'],'params':_0x2e9fed});}else{if(!_0x9e7b18[_0x253f08(0x176)](_0x84d8c1))return!0x1;let _0xd38b1d=new _0x4078f7[(_0x253f08(0x3d3))]();_0xd38b1d['formJSON'](_0xac8543);let _0x37e516=_0x1ddf1b(_0x1ec0ea,new _0x4078f7[(_0x253f08(0x3d3))](),_0x230de7,!0x0);_0x48cc1f['push'](..._0x37e516[_0x253f08(0x430)]),_0x31b67a[_0x253f08(0xc7)](..._0x37e516[_0x253f08(0x371)]);let _0x4c2c91={'cellInfo':_0x230de7,'view':_0xd38b1d,'isEmpty':_0x59ab89};if(!await _0x1ec0ea['get'](_0x462162)[_0x253f08(0x31b)][_0x253f08(0x50c)](_0x3c57d5)(!0x0,_0x4c2c91))return!0x1;let _0x483aa3=_0x26896e(_0x1ec0ea,_0x4c2c91);_0x48cc1f[_0x253f08(0xc7)](..._0x483aa3[_0x253f08(0x430)]),_0x31b67a[_0x253f08(0xc7)](..._0x483aa3[_0x253f08(0x371)]);}return _0x48cc1f[_0x253f08(0xc7)]({'id':_0x36d11c['id'],'params':{'unitId':_0x230de7[_0x253f08(0xa0)],'subUnitId':_0x230de7[_0x253f08(0x2d0)],'pivotTableId':_0x29a5cb,'pivotTableConfig':{'pivotCacheId':_0x1ebac7,'targetCellInfo':_0x230de7,'sourceRangeInfo':_0xe2c60b,'fieldsConfig':_0x40cc9b,'isEmpty':_0x59ab89},'collectionConfig':_0x1f3d07}}),_0x31b67a['unshift']({'id':_0x4532a7['id'],'params':{'unitId':_0x31ddaf,'subUnitId':_0x84d8c1,'pivotTableId':_0x29a5cb}}),(0x0,_0x3f8283[_0x253f08(0xb1)])(_0x48cc1f,_0x2bae5b)['result']?(_0x5644a9[_0x253f08(0x482)]({'unitID':_0x31ddaf,'undoMutations':_0x31b67a,'redoMutations':_0x48cc1f}),!0x0):!0x1;}},_0x51ce0f=[_0x4078f7[_0x55e150(0x45a)]['Year'],_0x4078f7[_0x55e150(0x45a)][_0x55e150(0x1d4)],_0x4078f7['PivotDateGroupFieldDateTypeEnum'][_0x55e150(0x2ec)],_0x4078f7[_0x55e150(0x45a)][_0x55e150(0x17a)],_0x4078f7[_0x55e150(0x45a)][_0x55e150(0x494)],_0x4078f7['PivotDateGroupFieldDateTypeEnum']['MonthDate'],_0x4078f7[_0x55e150(0x45a)]['YearMonthDate'],_0x4078f7['PivotDateGroupFieldDateTypeEnum'][_0x55e150(0x3f3)],_0x4078f7['PivotDateGroupFieldDateTypeEnum'][_0x55e150(0x10c)],_0x4078f7[_0x55e150(0x45a)][_0x55e150(0x134)],_0x4078f7[_0x55e150(0x45a)][_0x55e150(0x2b2)]];function _0x2daaf2(_0x5bac93,_0x2188d9,_0x17e145){const _0x5ec88d=_0x55e150;if(!(_0x5bac93!=null&&_0x5bac93[_0x5ec88d(0x3d4)])||!(_0x2188d9!=null&&_0x2188d9['fields']))return;let _0x392cf4=_0x5bac93['dimension'][_0x17e145];if(!_0x392cf4)return;let _0x1b47fb=_0x2e8589(_0x5bac93,_0x17e145);if(!_0x1b47fb)return;let _0x1a4c97=_0x2188d9[_0x5ec88d(0x4e0)][_0x392cf4[_0x5ec88d(0x19d)]];if(!_0x1a4c97)return;let _0x59dda9=(0x0,_0x4078f7[_0x5ec88d(0x445)])(_0x1a4c97);if(!_0x59dda9&&_0x1a4c97[_0x5ec88d(0x2ee)]!==_0x4078f7[_0x5ec88d(0x529)][_0x5ec88d(0x40d)])return;let _0x7691cb=_0x59dda9?_0x1a4c97[_0x5ec88d(0x244)]:_0x1a4c97['id'],_0x34e6a3=_0x3c27f9(_0x5bac93,_0x1b47fb)[_0x5ec88d(0x3c0)]((_0x48ce05,_0x53d9a1)=>{const _0x4734f6=_0x5ec88d;if(_0x53d9a1===_0x17e145)return _0x48ce05;let _0x5ca62f=_0x5bac93[_0x4734f6(0x3d4)][_0x53d9a1],_0x4d57b7=_0x5ca62f?_0x2188d9['fields'][_0x5ca62f[_0x4734f6(0x19d)]]:void 0x0;return _0x4d57b7&&(0x0,_0x4078f7[_0x4734f6(0x445)])(_0x4d57b7)&&_0x4d57b7[_0x4734f6(0x244)]===_0x7691cb&&_0x4d57b7[_0x4734f6(0x37f)]&&_0x48ce05[_0x4734f6(0xc7)](_0x4d57b7[_0x4734f6(0x37f)]),_0x48ce05;},[]);return{'kind':_0x59dda9?'date-group':'source-date','area':_0x1b47fb,'tableFieldId':_0x17e145,'dataFieldId':_0x1a4c97['id'],'originalDataFieldId':_0x7691cb,'currentDateType':_0x59dda9?_0x1a4c97[_0x5ec88d(0x37f)]??_0x4078f7[_0x5ec88d(0x45a)]['Year']:void 0x0,'siblingDateTypes':_0x34e6a3,'insertIndex':_0x11e835(_0x5bac93,_0x2188d9,_0x1b47fb,_0x17e145,_0x7691cb)};}function _0x2ee822(_0x29645b,_0x42d8cf){const _0x10634b=_0x55e150;return!_0x51ce0f['includes'](_0x42d8cf)||_0x29645b['currentDateType']===_0x42d8cf||_0x29645b[_0x10634b(0x15c)][_0x10634b(0xf1)](_0x42d8cf);}function _0x2e8589(_0x3d4439,_0x4ffeb9){const _0x641131=_0x55e150;if(_0x3d4439[_0x641131(0x477)][_0x641131(0xf1)](_0x4ffeb9))return _0x4078f7[_0x641131(0x149)][_0x641131(0x438)];if(_0x3d4439[_0x641131(0x4bf)][_0x641131(0xf1)](_0x4ffeb9))return _0x4078f7['PivotTableFiledAreaEnum']['Column'];}function _0x3c27f9(_0xe49354,_0x2b56ec){const _0x3544f3=_0x55e150;return _0x2b56ec===_0x4078f7['PivotTableFiledAreaEnum'][_0x3544f3(0x438)]?_0xe49354[_0x3544f3(0x477)]:_0xe49354[_0x3544f3(0x4bf)];}function _0x11e835(_0x3979ed,_0x578428,_0x5e0e03,_0x31b405,_0x16734e){const _0x9d9404=_0x55e150;let _0x437b3f=_0x3c27f9(_0x3979ed,_0x5e0e03),_0x300438=_0x437b3f[_0x9d9404(0x36c)](_0x31b405);if(_0x300438===-0x1)return _0x437b3f[_0x9d9404(0x337)];let _0x2f35f8=_0x300438;for(let _0x54118c=0x0;_0x54118c<_0x300438;_0x54118c++){let _0x14f67f=_0x3979ed[_0x9d9404(0x3d4)][_0x437b3f[_0x54118c]],_0x2b5ff9=_0x14f67f?_0x578428['fields'][_0x14f67f[_0x9d9404(0x19d)]]:void 0x0;_0x2b5ff9&&(0x0,_0x4078f7['isDateGroupFieldJSON'])(_0x2b5ff9)&&_0x2b5ff9[_0x9d9404(0x244)]===_0x16734e&&(_0x2f35f8=_0x54118c+0x1);}return _0x2f35f8;}let _0x591669={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x1a6)],'id':_0x55e150(0x3bc),async 'handler'(_0x4a02f9,_0x586b5e){const _0x553564=_0x55e150;if(!_0x586b5e)return!0x1;let _0x500a9b=_0x4a02f9[_0x553564(0x97)](_0x3f8283[_0x553564(0x3cb)]),_0x378235=_0x4a02f9[_0x553564(0x97)](_0x5b492b),_0x106565=_0x4a02f9[_0x553564(0x97)](_0x3f8283[_0x553564(0x1a0)]),{pivotTableId:_0x15aa08,fieldId:_0x580c71,area:_0x2d619e,index:_0x1e81f8,unitId:_0x4ece50,subUnitId:_0x304310}=_0x586b5e,_0x56546b=(await _0x378235[_0x553564(0x2f3)]({'unitId':_0x4ece50,'subUnitId':_0x304310,'pivotTableId':_0x15aa08,'params':{'type':_0x553564(0x258),'movePivotField':{'fieldId':_0x580c71,'area':_0x2d619e,'index':_0x1e81f8}}}))[_0x553564(0x487)][_0x553564(0x258)];if(!_0x56546b)return!0x1;let {changesets:_0x31faab,view:_0x51add5,isEmpty:_0x214451,pivotTableConfig:_0x1d5333}=_0x56546b,_0x259063=_0x1d5333[_0x553564(0xf0)],_0x20a0e9=new _0x4078f7[(_0x553564(0x3d3))]();_0x20a0e9[_0x553564(0x35e)](_0x51add5);let _0x51e396={'cellInfo':_0x259063,'view':_0x20a0e9,'isEmpty':_0x214451};if(!await _0x4a02f9[_0x553564(0x97)](_0x462162)[_0x553564(0x31b)][_0x553564(0x50c)](_0x3c57d5)(!0x0,_0x51e396))return!0x1;let _0x543a55=_0x1ddf1b(_0x4a02f9,_0x20a0e9,_0x259063,_0x214451),_0x1df03b=_0x26896e(_0x4a02f9,_0x51e396),{redos:_0x4f61ae,undos:_0x196e05}=_0x4cc94b(_0x500a9b,{'pivotTableId':_0x15aa08,'unitId':_0x4ece50,'subUnitId':_0x304310},_0x31faab);return(0x0,_0x3f8283[_0x553564(0xb1)])([..._0x543a55['redos'],..._0x1df03b['redos'],..._0x4f61ae],_0x500a9b)[_0x553564(0x487)]?(_0x106565['pushUndoRedo']({'unitID':_0x4ece50,'redoMutations':[..._0x543a55[_0x553564(0x430)],..._0x1df03b['redos'],..._0x4f61ae],'undoMutations':[..._0x543a55['undos'],..._0x1df03b['undos'],..._0x196e05]}),!0x0):!0x1;}},_0x732d12={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x4f2)],'id':_0x55e150(0x3d5),'handler'(_0x4f8de5,_0x4d192a){const _0x5a0b04=_0x55e150;if(!_0x4d192a)return!0x1;if(_0x4f8de5[_0x5a0b04(0x97)](_0x3f8283[_0x5a0b04(0x2e6)])[_0x5a0b04(0x23f)](_0x5a0b04(0x111))){let _0xf95f21=_0x4f8de5[_0x5a0b04(0x97)](_0x3de398),{unitId:_0x5e7ef8,subUnitId:_0x4d0d2f,pivotTableId:_0x236b05,targetCellPosition:_0x23adc1}=_0x4d192a,_0x49b70e=_0xf95f21[_0x5a0b04(0x12e)](_0x5e7ef8,_0x236b05),_0xa3646c=_0x49b70e&&_0xf95f21[_0x5a0b04(0x3a8)](_0x49b70e[_0x5a0b04(0xa0)],_0x49b70e[_0x5a0b04(0x2d0)],_0x236b05);if(!_0x49b70e||!_0xa3646c)return!0x1;let _0x3ea60f=_0x3f8283[_0x5a0b04(0xe7)][_0x5a0b04(0x1e3)](_0xa3646c);_0x3ea60f[_0x5a0b04(0xf0)]={'unitId':_0x5e7ef8,'subUnitId':_0x4d0d2f,'row':_0x23adc1[_0x5a0b04(0x18e)],'col':_0x23adc1['col']};let _0xc97356=_0xf95f21[_0x5a0b04(0x201)]([{'unitId':_0x5e7ef8,'subUnitId':_0x4d0d2f,'pivotTableId':_0x236b05,'config':_0x3ea60f}]);return _0xf95f21[_0x5a0b04(0x43b)](()=>{const _0x5cb195=_0x5a0b04;(_0x49b70e[_0x5cb195(0xa0)]!==_0x5e7ef8||_0x49b70e[_0x5cb195(0x2d0)]!==_0x4d0d2f)&&_0xf95f21['updateConfigCache'](_0x49b70e['unitId'],_0x49b70e[_0x5cb195(0x2d0)],_0x236b05,null),_0xc97356[_0x5cb195(0x225)](),_0xc97356[_0x5cb195(0x397)]();}),!0x0;}let {pivotTableId:_0x3addf0,targetCellPosition:_0x171bee,unitId:_0x3e8ab8,subUnitId:_0x21fbb1}=_0x4d192a,_0x530b73=_0x4f8de5[_0x5a0b04(0x97)](_0x30eff7);if(!_0x530b73['getPivotTableInstance'](_0x4d192a['pivotTableId']))return!0x1;let _0x21e8db=_0x530b73['getTargetByPivotId'](_0x3addf0);if(!_0x21e8db)return!0x1;let _0x770786=_0x530b73[_0x5a0b04(0x517)](_0x21e8db['unitId'],_0x4d192a[_0x5a0b04(0x173)]);if(!_0x770786)return!0x1;let _0x2c2c03=_0x530b73[_0x5a0b04(0x3a8)](_0x21e8db[_0x5a0b04(0xa0)],_0x21e8db[_0x5a0b04(0x2d0)],_0x3addf0);if(!_0x2c2c03)return!0x1;let _0x3a869c=_0x3f8283[_0x5a0b04(0xe7)][_0x5a0b04(0x1e3)](_0x2c2c03);_0x3a869c[_0x5a0b04(0xf0)]={'unitId':_0x3e8ab8,'subUnitId':_0x21fbb1,'row':_0x171bee[_0x5a0b04(0x18e)],'col':_0x171bee[_0x5a0b04(0xf9)]};let _0x55276f=_0x770786['toJSON']();if(_0x21e8db[_0x5a0b04(0x2d0)]===_0x21fbb1&&_0x21e8db[_0x5a0b04(0xa0)]===_0x3e8ab8)_0x530b73[_0x5a0b04(0x1b9)](_0x3e8ab8,_0x21fbb1,_0x3addf0,_0x3a869c),_0x530b73['addDirtyPivotTable']({'unitId':_0x3e8ab8,'subUnitId':_0x21fbb1,'token':_0x3addf0,'type':_0x5a0b04(0x187)});else{_0x530b73[_0x5a0b04(0x131)]({'unitId':_0x21e8db['unitId'],'subUnitId':_0x21e8db[_0x5a0b04(0x2d0)],'token':_0x3addf0,'type':_0x5a0b04(0xe0)}),_0x530b73[_0x5a0b04(0x1fd)](_0x21e8db[_0x5a0b04(0xa0)],_0x21e8db[_0x5a0b04(0x2d0)],_0x3addf0);let _0x574c1f=_0x530b73[_0x5a0b04(0x51c)](_0x3addf0,_0x55276f,_0x2c2c03[_0x5a0b04(0x1f5)],_0x3a869c[_0x5a0b04(0xf0)]),_0x1f28b3=new _0x4078f7[(_0x5a0b04(0x358))](_0x574c1f[_0x5a0b04(0x240)],void 0x0,_0x3addf0);_0x1f28b3['fromJSON'](_0x3a869c[_0x5a0b04(0x4ac)]),_0x530b73['addPivotTable'](_0x3e8ab8,_0x21fbb1,_0x3addf0,_0x1f28b3,_0x3a869c),_0x530b73[_0x5a0b04(0x131)]({'unitId':_0x3e8ab8,'subUnitId':_0x21fbb1,'token':_0x3addf0,'type':'add','pivotConfig':_0x3a869c});}return!0x0;}},_0x26a4f1={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x1a6)],'id':_0x55e150(0x29d),'handler':(_0x3dd989,_0x1acc09)=>{const _0x302c84=_0x55e150;if(!_0x1acc09)return!0x1;let _0x2a6d3f=(0x0,_0x4b3c60['getSheetCommandTarget'])(_0x3dd989['get'](_0x3f8283['IUniverInstanceService']),{'unitId':_0x1acc09[_0x302c84(0xf0)]['unitId'],'subUnitId':_0x1acc09[_0x302c84(0xf0)][_0x302c84(0x2d0)]});if(!_0x2a6d3f)throw Error(_0x302c84(0x190));let _0x47d0b8=_0x3dd989[_0x302c84(0x97)](_0x3de398)[_0x302c84(0x3a8)](_0x1acc09[_0x302c84(0x102)][_0x302c84(0xa0)],_0x1acc09['originTargetInfo'][_0x302c84(0x2d0)],_0x1acc09[_0x302c84(0x173)]);if(!_0x47d0b8)return!0x1;let _0x306ac5=_0x3dd989[_0x302c84(0x97)](_0x3f8283['ICommandService']),_0x7abde1=_0x3dd989[_0x302c84(0x97)](_0x3f8283[_0x302c84(0x1a0)]),{unitId:_0x35ab1e,subUnitId:_0x202b2f,worksheet:_0x330462}=_0x2a6d3f,_0x120d4f=_0x330462[_0x302c84(0x484)](),_0x166381=_0x330462[_0x302c84(0x18f)]();if(_0x1acc09[_0x302c84(0xf0)][_0x302c84(0x18e)]>_0x120d4f||_0x1acc09['targetCellInfo'][_0x302c84(0xf9)]>_0x166381)throw Error(_0x302c84(0x35b));let _0x50965f=[{'id':_0x732d12['id'],'params':{'unitId':_0x35ab1e,'subUnitId':_0x1acc09[_0x302c84(0xf0)][_0x302c84(0x2d0)],'pivotTableId':_0x1acc09[_0x302c84(0x173)],'targetCellPosition':{'row':_0x1acc09[_0x302c84(0xf0)]['row'],'col':_0x1acc09[_0x302c84(0xf0)][_0x302c84(0xf9)]}}}],_0x10ed7e=[{'id':_0x732d12['id'],'params':{'unitId':_0x35ab1e,'subUnitId':_0x202b2f,'pivotTableId':_0x1acc09[_0x302c84(0x173)],'targetCellPosition':{'row':_0x47d0b8['targetCellInfo'][_0x302c84(0x18e)],'col':_0x47d0b8['targetCellInfo'][_0x302c84(0xf9)]}}}];return(0x0,_0x3f8283['sequenceExecute'])(_0x50965f,_0x306ac5)['result']?(_0x7abde1[_0x302c84(0x482)]({'unitID':_0x35ab1e,'undoMutations':_0x10ed7e,'redoMutations':_0x50965f}),!0x0):!0x1;}},_0x12c1a7={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x1a6)],'id':_0x55e150(0x48d),async 'handler'(_0x3758ce,_0x4e64f9){const _0x4ba2c3=_0x55e150;var _0x3bae15;if(!_0x4e64f9)return!0x1;let _0x10277c=_0x3758ce[_0x4ba2c3(0x97)](_0x3f8283[_0x4ba2c3(0x362)]),_0x5c7080=(0x0,_0x4b3c60[_0x4ba2c3(0x28f)])(_0x10277c);if(!_0x5c7080)return!0x1;let {unitId:_0x48ea7e,subUnitId:_0x12ea05,workbook:_0x5190cf}=_0x5c7080,{row:_0x267f67,col:_0x12c801}=_0x4e64f9,_0x1beb52=_0x3758ce['get'](_0x505163),_0x1481a8=_0x1beb52[_0x4ba2c3(0x2c3)](_0x48ea7e,_0x12ea05,_0x267f67,_0x12c801);if(!_0x1481a8)return!0x1;let _0x139df3=(_0x3bae15=_0x1beb52['getPivotItemRenderInfoCache'](_0x48ea7e,_0x12ea05,_0x1481a8))==null?void 0x0:_0x3bae15[_0x4ba2c3(0xc2)];if(!_0x139df3)return!0x1;let _0x397620=_0x3758ce[_0x4ba2c3(0x97)](_0x3de398)['getPivotTableConfig'](_0x48ea7e,_0x12ea05,_0x1481a8);if(!_0x397620)return!0x1;let {rowInfo:_0x1928a1,colInfo:_0x8d919e}=_0x139df3,_0x25635a=_0x1928a1[_0x267f67],_0x513c37=_0x8d919e[_0x12c801];if(!_0x25635a||!_0x513c37)return!0x1;let _0x6c92ca=_0x25635a['paths'],_0x3ab215=_0x513c37[_0x4ba2c3(0x495)],_0x5a94a8=_0x25635a['level'],_0x352590=_0x513c37[_0x4ba2c3(0x1a1)],_0x3a6f37=_0x6c92ca[_0x4ba2c3(0x1e1)](_0x3ab215),_0x4d01f1=_0x397620[_0x4ba2c3(0x4ac)][_0x4ba2c3(0x477)]['slice'](0x0,_0x5a94a8),_0x16f0fe=_0x397620[_0x4ba2c3(0x4ac)]['columnFields'][_0x4ba2c3(0x37b)](0x0,_0x352590),_0x49fa09=_0x4d01f1['concat'](_0x16f0fe),_0x697407=_0x3a6f37['map']((_0x51fe7c,_0x4494ca)=>[_0x51fe7c,_0x49fa09[_0x4494ca]]),_0x553e63=(await _0x3758ce[_0x4ba2c3(0x97)](_0x5b492b)[_0x4ba2c3(0x2f3)]({'unitId':_0x48ea7e,'subUnitId':_0x12ea05,'pivotTableId':_0x1481a8,'params':{'type':_0x4ba2c3(0x377),'drillDown':{'tuple':_0x697407}}}))['result'][_0x4ba2c3(0x377)];if(!_0x553e63)return!0x1;let {indexes:_0x58d5f7,range:_0x3ebcb5,sourceUnitId:_0x1c5112,sourceSubUnitId:_0x33d0b8,formatMap:_0x3e00ea}=_0x553e63,{startRow:_0x331131,endRow:_0x2a05d5,startColumn:_0x1ba4ba,endColumn:_0x12ed97}=_0x3ebcb5,_0x5b450d=new _0x3f8283[(_0x4ba2c3(0x2e4))](),_0x45cad9=_0x2a05d5-_0x331131,_0x258422=_0x12ed97-_0x1ba4ba,_0x151eb={},_0x51f00a=(0x0,_0x4b3c60[_0x4ba2c3(0x28f)])(_0x10277c,{'unitId':_0x1c5112,'subUnitId':_0x33d0b8});if(!_0x51f00a)return!0x1;let _0x403bda=_0x5e94f9[_0x4ba2c3(0x398)],_0x1fc9db=_0x5e94f9[_0x4ba2c3(0x38b)],_0x3f7f82=_0x5e94f9['subTotalStyle'],_0x4ad5e9=_0x5190cf[_0x4ba2c3(0x390)]()[_0x4ba2c3(0x1c4)](_0x403bda),_0x335302=_0x5190cf['getStyles']()[_0x4ba2c3(0x1c4)](_0x1fc9db),_0x535d01=_0x5190cf[_0x4ba2c3(0x390)]()['setValue'](_0x3f7f82),{worksheet:_0xb174ea}=_0x51f00a,_0x1acd2e=0x0;_0x58d5f7[_0x4ba2c3(0x1bd)](_0x471e0b=>{const _0x4913e9=_0x4ba2c3;for(let _0x53797e=0x0;_0x53797e<=_0x12ed97-_0x1ba4ba;_0x53797e++)_0x5b450d[_0x4913e9(0x1c4)](_0x1acd2e,_0x53797e,_0xb174ea[_0x4913e9(0x4d6)](_0x471e0b+_0x3ebcb5[_0x4913e9(0x33e)]+0x1,_0x53797e));_0x1acd2e++;});for(let _0x21472b=_0x1ba4ba;_0x21472b<=_0x12ed97;_0x21472b++){let _0x5ba22d=_0xb174ea[_0x4ba2c3(0x4d6)](_0x331131,_0x21472b);_0x151eb[_0x331131]||(_0x151eb[_0x331131]={}),_0x151eb[_0x331131][_0x21472b]={..._0x5ba22d,'s':_0x4ad5e9};}let _0xd7d699=0x1,_0x5d75d5={},_0x3df5ca={};_0x5b450d[_0x4ba2c3(0x3b8)]((_0x370032,_0x441c64)=>{const _0x33fff0=_0x4ba2c3;_0x441c64[_0x33fff0(0x1bd)](_0x160c6a=>{const _0x35f074=_0x33fff0;let _0x3e4dfc=_0x5b450d['getValue'](_0x370032,_0x160c6a);if(_0x151eb[_0xd7d699]||(_0x151eb[_0xd7d699]={}),_0x151eb[_0xd7d699][_0x160c6a]={..._0x3e4dfc,'s':_0xd7d699%0x2==0x0?_0x535d01:_0x335302},_0x3e00ea[_0x160c6a]&&_0x370032>=0x0){let _0x3b0963=_0xd7d699%0x2==0x0,_0x1bbaf5=_0x3b0963?_0x3df5ca[_0x160c6a]:_0x5d75d5[_0x160c6a];_0x1bbaf5||(_0x1bbaf5=_0x5190cf[_0x35f074(0x390)]()[_0x35f074(0x1c4)]({..._0x3b0963?_0x3f7f82:_0x1fc9db,'n':{'pattern':_0x3e00ea[_0x160c6a]}}),_0x3b0963?_0x3df5ca[_0x160c6a]=_0x1bbaf5:_0x5d75d5[_0x160c6a]=_0x1bbaf5),_0x151eb[_0xd7d699][_0x160c6a]['s']=_0x1bbaf5;}}),_0xd7d699++;});let _0x4bd7f2=new _0x3f8283['ObjectMatrix'](_0x151eb),_0x2b8893={};_0x4bd7f2[_0x4ba2c3(0x107)]((_0x45d46e,_0x57171c,_0x478b06)=>{_0x2b8893[_0x45d46e]||(_0x2b8893[_0x45d46e]={}),_0x2b8893[_0x45d46e][_0x57171c]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});let _0xe2513f=[],_0x1a2a08=[],_0x68ce80=_0x5190cf[_0x4ba2c3(0x2aa)]()[_0x4ba2c3(0x337)],_0x382200=(0x0,_0x3f8283[_0x4ba2c3(0x4a7)])({'rowCount':Math[_0x4ba2c3(0x226)](_0x3f8283[_0x4ba2c3(0x2b9)],_0x45cad9+0xa),'columnCount':Math[_0x4ba2c3(0x226)](_0x3f8283['DEFAULT_WORKSHEET_COLUMN_COUNT'],_0x258422+0x5)}),_0x56c474=_0x3758ce[_0x4ba2c3(0x97)](_0x3f8283[_0x4ba2c3(0x232)]);_0x382200['id']=(0x0,_0x3f8283['generateRandomId'])(),_0x382200[_0x4ba2c3(0x20e)]=_0x5190cf[_0x4ba2c3(0x186)](''+_0x56c474['t']('sheets-pivot.sheet'));let _0x4ca133={'index':_0x68ce80,'sheet':_0x382200,'unitId':_0x48ea7e},_0x3f08c1=(0x0,_0x4b3c60[_0x4ba2c3(0x2cb)])(_0x3758ce,_0x4ca133);_0x1a2a08['push']({'id':_0x4b3c60['InsertSheetMutation']['id'],'params':_0x4ca133}),_0xe2513f['push']({'id':_0x4b3c60[_0x4ba2c3(0x3ce)]['id'],'params':_0x3f08c1}),_0x1a2a08[_0x4ba2c3(0xc7)]({'id':_0x4b3c60[_0x4ba2c3(0x39b)]['id'],'params':{'unitId':_0x48ea7e,'subUnitId':_0x382200['id'],'cellValue':_0x151eb}}),_0xe2513f['unshift']({'id':_0x4b3c60[_0x4ba2c3(0x39b)]['id'],'params':{'unitId':_0x48ea7e,'subUnitId':_0x382200['id'],'cellValue':_0x2b8893}});let _0x30daa4={'startRow':0x0,'startColumn':0x0,'endRow':_0xd7d699-0x1,'endColumn':_0x12ed97};_0x1a2a08[_0x4ba2c3(0xc7)]({'id':_0x510b76['SetSheetsFilterRangeMutation']['id'],'params':{'unitId':_0x48ea7e,'subUnitId':_0x382200['id'],'range':_0x30daa4}}),_0xe2513f[_0x4ba2c3(0x52c)]({'id':_0x510b76[_0x4ba2c3(0xbb)]['id'],'params':{'unitId':_0x48ea7e,'subUnitId':_0x382200['id']}});let _0x268b53=_0x3758ce[_0x4ba2c3(0x97)](_0x3f8283[_0x4ba2c3(0x3cb)]);return(0x0,_0x3f8283[_0x4ba2c3(0xb1)])(_0x1a2a08,_0x268b53)[_0x4ba2c3(0x487)]?(_0x3758ce['get'](_0x3f8283[_0x4ba2c3(0x1a0)])[_0x4ba2c3(0x482)]({'unitID':_0x48ea7e,'undoMutations':_0xe2513f,'redoMutations':_0x1a2a08}),!0x0):!0x1;}},_0x259dda={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x1a6)],'id':_0x55e150(0x537),async 'handler'(_0x1267b7,_0x49227){const _0x141981=_0x55e150;if(!_0x49227)return!0x1;let _0x4b4a2c=_0x1267b7[_0x141981(0x97)](_0x3f8283['ICommandService']),_0x9d848a=_0x1267b7['get'](_0x5b492b),_0x8b7c0e=_0x1267b7['get'](_0x3f8283[_0x141981(0x1a0)]),{pivotTableId:_0x5c5b55,fieldIds:_0xd985bd,unitId:_0x4ccb73,subUnitId:_0x5eefa1}=_0x49227,_0x4d63ee=_0x1267b7[_0x141981(0x97)](_0x462162),_0x295079=_0x4d63ee[_0x141981(0x497)][_0x141981(0x434)](_0x493572)([],_0x49227)??[],_0x690e19=(await _0x9d848a[_0x141981(0x2f3)]({'unitId':_0x4ccb73,'subUnitId':_0x5eefa1,'pivotTableId':_0x5c5b55,'params':{'type':_0x141981(0xc6),'removePivotField':{'fieldIds':_0xd985bd,'retainFilterFieldIds':_0x295079}}}))['result']['removePivotField'];if(!_0x690e19)return!0x1;let {view:_0x2b42c9,changesets:_0x3f5316,isEmpty:_0x3ca4c5,pivotTableConfig:_0x28b2d0}=_0x690e19,_0x1b48ae=_0x28b2d0['targetCellInfo'],_0x464599=new _0x4078f7[(_0x141981(0x3d3))]();_0x464599[_0x141981(0x35e)](_0x2b42c9);let _0x5d3f5d={'cellInfo':_0x1b48ae,'view':_0x464599,'isEmpty':_0x3ca4c5};if(!await _0x4d63ee[_0x141981(0x31b)][_0x141981(0x50c)](_0x3c57d5)(!0x0,_0x5d3f5d))return!0x1;let _0x124a03=_0x1ddf1b(_0x1267b7,_0x464599,_0x1b48ae,_0x3ca4c5),_0x5e7bef=_0x26896e(_0x1267b7,_0x5d3f5d),{redos:_0x3d6f23,undos:_0x2586b5}=_0x4cc94b(_0x4b4a2c,{'pivotTableId':_0x5c5b55,'unitId':_0x4ccb73,'subUnitId':_0x5eefa1},_0x3f5316);return(0x0,_0x3f8283[_0x141981(0xb1)])([..._0x124a03['redos'],..._0x5e7bef[_0x141981(0x430)],..._0x3d6f23],_0x4b4a2c)[_0x141981(0x487)]?(_0x8b7c0e['pushUndoRedo']({'unitID':_0x4ccb73,'redoMutations':[..._0x124a03[_0x141981(0x430)],..._0x5e7bef[_0x141981(0x430)],..._0x3d6f23],'undoMutations':[..._0x124a03[_0x141981(0x371)],..._0x5e7bef['undos'],..._0x2586b5]}),!0x0):!0x1;}},_0x53ec6d={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x1a6)],'id':_0x55e150(0x348),'handler'(_0x40cfcb,_0x27d70c){const _0x62c300=_0x55e150;if(!_0x27d70c)return!0x1;let _0x462cb5=_0x40cfcb[_0x62c300(0x97)](_0x3f8283['ICommandService']),_0x724f78=_0x40cfcb['get'](_0x3f8283[_0x62c300(0x1a0)]),_0x27d755=_0x40cfcb[_0x62c300(0x97)](_0x3de398),{unitId:_0x3ce9f5,subUnitId:_0x5d86c7,pivotTableId:_0x54c7a4}=_0x27d70c,_0x11d734=_0x27d755[_0x62c300(0x3a8)](_0x3ce9f5,_0x5d86c7,_0x54c7a4),_0x975299=_0x27d755['getCollection'](_0x3ce9f5,_0x54c7a4);if(!_0x11d734||!_0x975299)return!0x1;let _0x208d53=[{'id':_0x4532a7['id'],'params':_0x27d70c}],_0x59247f=[{'id':_0x36d11c['id'],'params':{'unitId':_0x3ce9f5,'subUnitId':_0x5d86c7,'pivotTableId':_0x54c7a4,'pivotTableConfig':_0x3f8283[_0x62c300(0xe7)][_0x62c300(0x1e3)](_0x11d734),'collectionConfig':_0x3f8283[_0x62c300(0xe7)]['deepClone'](_0x975299)}}];return(0x0,_0x3f8283['sequenceExecute'])(_0x208d53,_0x462cb5)['result']?(_0x724f78[_0x62c300(0x482)]({'unitID':_0x3ce9f5,'redoMutations':_0x208d53,'undoMutations':_0x59247f}),!0x0):!0x1;}},_0x4b5410={'type':_0x3f8283[_0x55e150(0x110)]['COMMAND'],'id':_0x55e150(0x1e5),async 'handler'(_0x9a6bbf,_0x416d2c){const _0x16a9bc=_0x55e150;if(!_0x416d2c)return!0x1;let _0x3b8798=_0x9a6bbf['get'](_0x3f8283[_0x16a9bc(0x3cb)]),_0x144178=_0x9a6bbf['get'](_0x3f8283[_0x16a9bc(0x1a0)]),_0xbfb87b=_0x9a6bbf['get'](_0x5b492b),{resetArea:_0x1cf0df,pivotTableId:_0x14d2eb,unitId:_0x710b9e,subUnitId:_0x5bb16d}=_0x416d2c,_0x24d694=(await _0xbfb87b[_0x16a9bc(0x2f3)]({'unitId':_0x710b9e,'subUnitId':_0x5bb16d,'pivotTableId':_0x14d2eb,'params':{'type':_0x16a9bc(0x32b),'resetPivotTable':{'pivotTableId':_0x14d2eb,'resetArea':_0x1cf0df}}}))['result']['resetPivotTable'];if(!_0x24d694)return!0x1;let {changesets:_0x3393d2}=_0x24d694,{redos:_0x226c0e,undos:_0x2edf7a}=_0x4cc94b(_0x3b8798,{'pivotTableId':_0x14d2eb,'unitId':_0x710b9e,'subUnitId':_0x5bb16d},_0x3393d2);return(0x0,_0x3f8283['sequenceExecute'])(_0x226c0e,_0x3b8798)[_0x16a9bc(0x487)]?(_0x144178['pushUndoRedo']({'unitID':_0x710b9e,'redoMutations':_0x226c0e,'undoMutations':_0x2edf7a}),!0x0):!0x1;}},_0x59f507={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x1a6)],'id':_0x55e150(0xe5),async 'handler'(_0x3a0bfe,_0x43e87e){const _0x829c26=_0x55e150;let _0x59b644=_0x3a0bfe['get'](_0x505163),_0x4a49cf=_0x3a0bfe[_0x829c26(0x97)](_0x3f8283[_0x829c26(0x362)]),_0x20cc55=_0x3a0bfe[_0x829c26(0x97)](_0x3f8283[_0x829c26(0x232)]);if(!_0x43e87e)return!0x1;let {unitId:_0x3e81b1,subUnitId:_0x3e654e,row:_0x5f41f3,col:_0x61c783,collapse:_0x28a33d}=_0x43e87e,_0x56e541=_0x4a49cf[_0x829c26(0x34e)](_0x3e81b1);if(!_0x56e541||!_0x56e541[_0x829c26(0x176)](_0x3e654e))return!0x1;let _0x3d93c6=_0x59b644['getPivotTableIdByCell'](_0x3e81b1,_0x3e654e,_0x5f41f3,_0x61c783);if(!_0x3d93c6)return!0x1;let _0x387f51=_0x59b644[_0x829c26(0x501)](_0x3e81b1,_0x3e654e,_0x3d93c6);if(!_0x387f51)return!0x1;let _0x3dfe1b=_0x59b644[_0x829c26(0x383)](_0x3e81b1,_0x3e654e,_0x5f41f3,_0x61c783),_0x3f06e2=_0x351e65(_0x5f41f3,_0x61c783,_0x3dfe1b,_0x387f51),_0x565386=_0x3f06e2==null?void 0x0:_0x3f06e2[_0x829c26(0x163)],_0x258f4f=_0x3dfe1b==null?void 0x0:_0x3dfe1b['v'];return _0x258f4f===_0x20cc55['t'](_0x829c26(0x1b7))&&(_0x258f4f=_0x4078f7['GlobalConfig']['BLANK_PLACEHOLDER']),_0x258f4f==null||!_0x565386?!0x1:_0x133a02(_0x3a0bfe,{'unitId':_0x3e81b1,'subUnitId':_0x3e654e,'pivotTableId':_0x3d93c6,'tableFieldId':_0x565386,'collapse':_0x28a33d,'item':_0x258f4f});}};async function _0x133a02(_0x101b66,_0x48703a){const _0x5f3db8=_0x55e150;let {unitId:_0x1dc36d,subUnitId:_0x14807e,pivotTableId:_0x5d5883,..._0x3bea7e}=_0x48703a,_0x562aba=_0x101b66[_0x5f3db8(0x97)](_0x3f8283['ICommandService']),_0x2c8332=_0x101b66[_0x5f3db8(0x97)](_0x5b492b),_0x5ecdd4=_0x101b66[_0x5f3db8(0x97)](_0x3f8283[_0x5f3db8(0x1a0)]),_0x1da503=await _0x2c8332[_0x5f3db8(0x2f3)]({'unitId':_0x1dc36d,'subUnitId':_0x14807e,'pivotTableId':_0x5d5883,'params':{'type':'setPivotCollapse','setPivotCollapse':_0x3bea7e}}),_0xb245eb=_0x1da503==null?void 0x0:_0x1da503[_0x5f3db8(0x487)]['setPivotCollapse'];if(!_0xb245eb)return!0x1;let {view:_0x456813,pivotTableConfig:_0x48ba75,isEmpty:_0x463c05,changesets:_0x32c85b}=_0xb245eb,_0x2d553c=new _0x4078f7['PivotView']();_0x2d553c[_0x5f3db8(0x35e)](_0x456813);let _0x165286=_0x48ba75['targetCellInfo'],_0x33d8e9={'cellInfo':_0x165286,'view':_0x2d553c,'isEmpty':_0x463c05};if(!await _0x101b66[_0x5f3db8(0x97)](_0x462162)[_0x5f3db8(0x31b)]['fetchThroughAsyncInterceptors'](_0x3c57d5)(!0x0,_0x33d8e9))return!0x1;let _0x5b7e61=_0x1ddf1b(_0x101b66,_0x2d553c,_0x165286,_0x463c05),_0x51376d=_0x26896e(_0x101b66,_0x33d8e9),{redos:_0x40bbd5,undos:_0x4f3c14}=_0x4cc94b(_0x562aba,{'pivotTableId':_0x5d5883,'unitId':_0x1dc36d,'subUnitId':_0x14807e},_0x32c85b);return(0x0,_0x3f8283[_0x5f3db8(0xb1)])([..._0x5b7e61[_0x5f3db8(0x430)],..._0x51376d[_0x5f3db8(0x430)],..._0x40bbd5],_0x562aba)['result']?(_0x5ecdd4[_0x5f3db8(0x482)]({'unitID':_0x1dc36d,'redoMutations':[..._0x5b7e61['redos'],..._0x51376d['redos'],..._0x40bbd5],'undoMutations':[..._0x5b7e61[_0x5f3db8(0x371)],..._0x51376d['undos'],..._0x4f3c14]}),!0x0):!0x1;}let _0x2975b8={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x1a6)],'id':_0x55e150(0x1c2),'handler':(_0x32734b,_0x26e31d)=>_0x26e31d?_0x133a02(_0x32734b,_0x26e31d):!0x1},_0x3eaff2={'id':_0x55e150(0x2ed),'type':_0x3f8283[_0x55e150(0x110)]['MUTATION'],'handler':(_0x65a43d,_0x149484)=>{const _0x35d413=_0x55e150;if(!_0x149484)return!0x1;if(_0x65a43d[_0x35d413(0x97)](_0x3f8283['IConfigService'])[_0x35d413(0x23f)](_0x35d413(0x111))){var _0x3021d7;let _0x136b28=_0x65a43d[_0x35d413(0x97)](_0x3de398),_0x240b20=_0x136b28['getPivotTableConfig'](_0x149484[_0x35d413(0xa0)],_0x149484[_0x35d413(0x2d0)],_0x149484[_0x35d413(0x173)]),_0x143b71=(_0x240b20==null?void 0x0:_0x240b20[_0x35d413(0x4ac)]['dimension'][_0x149484[_0x35d413(0x163)]])??(_0x240b20==null?void 0x0:_0x240b20[_0x35d413(0x4ac)][_0x35d413(0xa5)][_0x149484['tableFieldId']]),_0x6e0e3c=_0x136b28[_0x35d413(0x517)](_0x149484['unitId'],_0x149484['pivotTableId']),_0x113856=_0x143b71&&(_0x6e0e3c==null?void 0x0:_0x6e0e3c[_0x35d413(0x4e0)][_0x143b71[_0x35d413(0x19d)]]);if(!_0x6e0e3c||!_0x113856||!(0x0,_0x4078f7[_0x35d413(0x445)])(_0x113856))return!0x1;let _0x5c0f74=_0x3f8283[_0x35d413(0xe7)][_0x35d413(0x1e3)](_0x6e0e3c),_0x5ce3bc={..._0x113856,'dateType':_0x149484[_0x35d413(0x37f)]};_0x5c0f74[_0x35d413(0x4e0)][_0x113856['id']]=_0x5ce3bc;let _0x215c94=((_0x3021d7=_0x5c0f74['fields'][_0x5ce3bc[_0x35d413(0x244)]])==null?void 0x0:_0x3021d7[_0x35d413(0x20e)])+'\x20-\x20'+_0x6786b9(_0x65a43d,_0x149484[_0x35d413(0x37f)]);return _0x5c0f74[_0x35d413(0x25c)][_0x113856['id']]=_0x4078f7[_0x35d413(0xa7)]['getUniqueDataFieldName'](_0x215c94,_0x5c0f74[_0x35d413(0x25c)]),_0x136b28[_0x35d413(0x43b)](()=>(_0x136b28['updateCollectionMetadata'](_0x149484['unitId'],_0x149484['pivotTableId'],_0x5c0f74),_0x136b28['applyConfigChange'](_0x149484,_0x4bfd51=>{const _0x19bc3e=_0x35d413;let _0x6098c4=_0x4bfd51[_0x19bc3e(0x4ac)][_0x19bc3e(0x3d4)][_0x149484[_0x19bc3e(0x163)]]??_0x4bfd51[_0x19bc3e(0x4ac)][_0x19bc3e(0xa5)][_0x149484[_0x19bc3e(0x163)]];_0x6098c4[_0x19bc3e(0x30b)]=_0x215c94;})));}let {unitId:_0x126ea1,subUnitId:_0x4c2ab5,pivotTableId:_0x2d999c,tableFieldId:_0x1a6b3a,dateType:_0x2a336b}=_0x149484,_0x296e70=_0x65a43d[_0x35d413(0x97)](_0x30eff7),_0x10a057=_0x296e70[_0x35d413(0x483)](_0x2d999c);if(!_0x10a057)return!0x1;let _0x53898e=_0x10a057[_0x35d413(0x2d5)](_0x1a6b3a);if(!_0x53898e)return!0x1;let _0x204ea6=_0x53898e[_0x35d413(0x10e)](),_0x4b4954=_0x10a057['getDataFieldByDataFieldId'](_0x204ea6),_0x4944e4=(_0x4b4954==null?void 0x0:_0x4b4954['getName']())+_0x35d413(0xb8)+_0x6786b9(_0x65a43d,_0x2a336b);_0x296e70[_0x35d413(0x517)](_0x126ea1,_0x2d999c)[_0x35d413(0x319)](_0x53898e['id'],_0x4944e4);let _0xa525f1=_0x10a057['getTableFieldById'](_0x1a6b3a);if(!_0xa525f1)return!0x1;if(_0x10a057[_0x35d413(0x521)](_0xa525f1[_0x35d413(0x416)](),_0x4944e4),_0x53898e[_0x35d413(0x1a9)](_0x2a336b),_0x4b4954){let _0xf8f694=_0x65a43d['get'](_0x3f8283['IUniverInstanceService'])[_0x35d413(0x34e)](_0x126ea1,_0x3f8283[_0x35d413(0x2f9)][_0x35d413(0x198)]);_0x2a257d(_0xf8f694==null?void 0x0:_0xf8f694[_0x35d413(0x51d)]()),_0x53898e[_0x35d413(0x513)](_0x4b4954);}_0x10a057['setDirty'](!0x0);let _0xb7a3a2=_0x296e70[_0x35d413(0x3a8)](_0x126ea1,_0x4c2ab5,_0x2d999c);return _0xb7a3a2[_0x35d413(0x4ac)]=_0x10a057[_0x35d413(0x4b3)](),_0x296e70[_0x35d413(0x131)]({'unitId':_0x126ea1,'subUnitId':_0x4c2ab5,'token':_0x2d999c,'type':'set','pivotConfig':_0xb7a3a2}),!0x0;}},_0x1b3a61={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x1a6)],'id':_0x55e150(0x2af),async 'handler'(_0x452cf9,_0x55252c){const _0xc2b9c0=_0x55e150;if(!_0x55252c)return!0x1;let {unitId:_0x460d4a,subUnitId:_0x8ebdbf,pivotTableId:_0x3a5e6e,tableFieldId:_0x4535e5,dateType:_0x588e48}=_0x55252c,_0x1e4ce2=_0x452cf9[_0xc2b9c0(0x97)](_0x3f8283[_0xc2b9c0(0x3cb)]),_0x132786=_0x452cf9[_0xc2b9c0(0x97)](_0x3de398),_0x1c38c7=_0x132786['getPivotTableConfig'](_0x460d4a,_0x8ebdbf,_0x3a5e6e);if((0x0,_0x4078f7[_0xc2b9c0(0x1c5)])(_0x1c38c7==null?void 0x0:_0x1c38c7[_0xc2b9c0(0x4ac)]['options'])!==_0x4078f7[_0xc2b9c0(0x4af)][_0xc2b9c0(0x26e)])return!0x1;let _0x3f77d5=_0x132786[_0xc2b9c0(0x517)](_0x460d4a,_0x3a5e6e),_0x517056=_0x2daaf2(_0x1c38c7==null?void 0x0:_0x1c38c7[_0xc2b9c0(0x4ac)],_0x3f77d5,_0x4535e5);if(!_0x517056||_0x2ee822(_0x517056,_0x588e48))return!0x1;let _0xacb09c=_0x452cf9[_0xc2b9c0(0x97)](_0x5b492b),_0x211fe5=_0x452cf9[_0xc2b9c0(0x97)](_0x3f8283[_0xc2b9c0(0x1a0)]),_0x42ad23=(await _0xacb09c['getPivotDisplayConfig']({'unitId':_0x460d4a,'subUnitId':_0x8ebdbf,'pivotTableId':_0x3a5e6e,'params':{'type':_0xc2b9c0(0x2b0),'setPivotDateGroup':{'tableFieldId':_0x4535e5,'dateType':_0x588e48}}}))[_0xc2b9c0(0x487)][_0xc2b9c0(0x2b0)];if(!_0x42ad23)return!0x1;let {view:_0x1bd7e5,changesets:_0x90fc5e,isEmpty:_0x2d6784,pivotTableConfig:_0x5ce5d7,shouldBeAddedGroupJSON:_0x262543}=_0x42ad23,_0x4239e6=_0x5ce5d7[_0xc2b9c0(0xf0)],_0x7b9a6d=new _0x4078f7[(_0xc2b9c0(0x3d3))]();_0x7b9a6d[_0xc2b9c0(0x35e)](_0x1bd7e5);let _0x3a4e9a={'cellInfo':_0x4239e6,'view':_0x7b9a6d,'isEmpty':_0x2d6784};if(!await _0x452cf9['get'](_0x462162)[_0xc2b9c0(0x31b)][_0xc2b9c0(0x50c)](_0x3c57d5)(!0x0,_0x3a4e9a))return!0x1;let _0x2f6a5e=_0x1ddf1b(_0x452cf9,_0x7b9a6d,_0x4239e6,_0x2d6784),_0x4a0a5b=_0x26896e(_0x452cf9,_0x3a4e9a),{undos:_0x496983,redos:_0x10f797}=_0x4cc94b(_0x1e4ce2,{'pivotTableId':_0x3a5e6e,'unitId':_0x460d4a,'subUnitId':_0x8ebdbf},_0x90fc5e);_0x262543&&(_0x10f797[_0xc2b9c0(0x52c)]({'id':_0x3a1f26['id'],'params':{'pivotTableId':_0x3a5e6e,'fieldJSON':_0x262543,'unitId':_0x460d4a,'subUnitId':_0x8ebdbf}}),_0x496983[_0xc2b9c0(0xc7)]({'id':_0x3cb3b5['id'],'params':{'pivotTableId':_0x3a5e6e,'dataFieldId':_0x262543['id'],'unitId':_0x460d4a,'subUnitId':_0x8ebdbf}})),_0x517056[_0xc2b9c0(0x3cf)]===_0xc2b9c0(0x3f9)&&_0x517056[_0xc2b9c0(0x427)]&&(_0x10f797['push']({'id':_0x3eaff2['id'],'params':_0x55252c}),_0x496983[_0xc2b9c0(0xc7)]({'id':_0x3eaff2['id'],'params':{..._0x55252c,'dateType':_0x517056[_0xc2b9c0(0x427)]}}));let _0x2f719b=[..._0x2f6a5e['redos'],..._0x4a0a5b[_0xc2b9c0(0x430)],..._0x10f797],_0x3d5839=[..._0x2f6a5e[_0xc2b9c0(0x371)],..._0x4a0a5b[_0xc2b9c0(0x371)],..._0x496983];return(0x0,_0x3f8283[_0xc2b9c0(0xb1)])(_0x2f719b,_0x1e4ce2)[_0xc2b9c0(0x487)]?(_0x211fe5[_0xc2b9c0(0x482)]({'unitID':_0x460d4a,'redoMutations':_0x2f719b,'undoMutations':_0x3d5839}),!0x0):!0x1;}};async function _0x96fea2(_0x486114,_0x281fd0,_0x112717){const _0x45d0b8=_0x55e150;var _0x20d965,_0x394501;let {unitId:_0x12f2bf,subUnitId:_0x226e18,pivotTableId:_0x3ba5ef,currentConfig:_0x598d2b,currentCollection:_0x58752e}=_0x281fd0;if(!((_0x20d965=_0x112717[_0x45d0b8(0x52f)])!=null&&_0x20d965['length'])&&!((_0x394501=_0x112717[_0x45d0b8(0xcf)])!=null&&_0x394501[_0x45d0b8(0x337)]))return!0x1;let _0x37c101=_0x486114[_0x45d0b8(0x97)](_0x3de398);if(_0x37c101[_0x45d0b8(0x3a8)](_0x12f2bf,_0x226e18,_0x3ba5ef)!==_0x598d2b||_0x37c101[_0x45d0b8(0x517)](_0x12f2bf,_0x3ba5ef)!==_0x58752e)return!0x1;let _0x6960a5=new _0x4078f7[(_0x45d0b8(0x3d3))]();_0x6960a5['formJSON'](_0x112717[_0x45d0b8(0x207)]);let _0x4d8512={'cellInfo':_0x598d2b['targetCellInfo'],'view':_0x6960a5,'isEmpty':_0x112717[_0x45d0b8(0x360)]};if(!await _0x486114[_0x45d0b8(0x97)](_0x462162)['asyncInterceptor']['fetchThroughAsyncInterceptors'](_0x3c57d5)(!0x0,_0x4d8512)||_0x37c101['getPivotTableConfig'](_0x12f2bf,_0x226e18,_0x3ba5ef)!==_0x598d2b||_0x37c101[_0x45d0b8(0x517)](_0x12f2bf,_0x3ba5ef)!==_0x58752e)return!0x1;let _0x2c069c=_0x486114[_0x45d0b8(0x97)](_0x3f8283[_0x45d0b8(0x3cb)]),_0x182a6f=_0x1ddf1b(_0x486114,_0x6960a5,_0x598d2b[_0x45d0b8(0xf0)],_0x112717[_0x45d0b8(0x360)]),_0x3e23c3=_0x26896e(_0x486114,_0x4d8512),_0x24071c=_0x4cc94b(_0x2c069c,{'unitId':_0x12f2bf,'subUnitId':_0x226e18,'pivotTableId':_0x3ba5ef},_0x112717['changesets']),_0x53f2bf=_0x112717[_0x45d0b8(0x52f)]??[],_0x4d6a0b=_0x112717[_0x45d0b8(0xcf)]??[],_0x5ef88d=_0x53f2bf[_0x45d0b8(0x1e6)](_0x1afa73=>({'id':_0x3a1f26['id'],'params':{'unitId':_0x12f2bf,'subUnitId':_0x226e18,'pivotTableId':_0x3ba5ef,'fieldJSON':_0x1afa73}})),_0x4e50a1=_0x53f2bf[_0x45d0b8(0x37b)]()[_0x45d0b8(0x1c1)]()[_0x45d0b8(0x1e6)](_0x1c5661=>({'id':_0x3cb3b5['id'],'params':{'unitId':_0x12f2bf,'subUnitId':_0x226e18,'pivotTableId':_0x3ba5ef,'dataFieldId':_0x1c5661['id']}})),_0x4e7384=_0x4d6a0b[_0x45d0b8(0x37b)]()[_0x45d0b8(0x1c1)]()[_0x45d0b8(0x1e6)](_0x4b2165=>({'id':_0x3cb3b5['id'],'params':{'unitId':_0x12f2bf,'subUnitId':_0x226e18,'pivotTableId':_0x3ba5ef,'dataFieldId':_0x4b2165['id']}})),_0x477273=_0x4d6a0b[_0x45d0b8(0x1e6)](_0x4581ef=>({'id':_0x3a1f26['id'],'params':{'unitId':_0x12f2bf,'subUnitId':_0x226e18,'pivotTableId':_0x3ba5ef,'fieldJSON':_0x4581ef}}));if(!_0x4e6ba0([{..._0x182a6f,'reverse':!0x1},{..._0x3e23c3,'reverse':!0x1},{'redos':_0x5ef88d,'undos':_0x4e50a1,'reverse':!0x0},{..._0x24071c,'reverse':!0x0},{'redos':_0x4e7384,'undos':_0x477273,'reverse':!0x0}],_0x2c069c))return!0x1;let _0x503268=[..._0x182a6f[_0x45d0b8(0x430)],..._0x3e23c3[_0x45d0b8(0x430)],..._0x5ef88d,..._0x24071c[_0x45d0b8(0x430)],..._0x4e7384],_0x58a0a7=[..._0x182a6f[_0x45d0b8(0x371)],..._0x3e23c3[_0x45d0b8(0x371)],..._0x477273,..._0x24071c['undos'],..._0x4e50a1];return _0x486114[_0x45d0b8(0x97)](_0x3f8283[_0x45d0b8(0x1a0)])['pushUndoRedo']({'unitID':_0x12f2bf,'redoMutations':_0x503268,'undoMutations':_0x58a0a7}),!0x0;}let _0x1a7896={'id':_0x55e150(0x138),'type':_0x3f8283[_0x55e150(0x110)]['COMMAND'],async 'handler'(_0x529bfd,_0x188677){const _0x3c398d=_0x55e150;if(!_0x188677)return!0x1;let {unitId:_0x5ae2c8,subUnitId:_0x2b0ece,pivotTableId:_0x4eddb9,tableFieldId:_0x58b075,grouping:_0x4a5eba}=_0x188677,_0x142d9b=_0x529bfd[_0x3c398d(0x97)](_0x3de398),_0x135215=_0x142d9b[_0x3c398d(0x3a8)](_0x5ae2c8,_0x2b0ece,_0x4eddb9),_0x586614=_0x142d9b[_0x3c398d(0x517)](_0x5ae2c8,_0x4eddb9);if(!_0x135215||!_0x586614||(0x0,_0x4078f7[_0x3c398d(0x1c5)])(_0x135215[_0x3c398d(0x4ac)][_0x3c398d(0x218)])!==_0x4078f7[_0x3c398d(0x4af)]['ExcelLike'])return!0x1;let _0x480bab=(await _0x529bfd[_0x3c398d(0x97)](_0x5b492b)[_0x3c398d(0x2f3)]({'unitId':_0x5ae2c8,'subUnitId':_0x2b0ece,'pivotTableId':_0x4eddb9,'params':{'type':_0x3c398d(0xfb),'setPivotExcelDateGroup':{'tableFieldId':_0x58b075,'grouping':_0x4a5eba}}}))[_0x3c398d(0x487)]['setPivotExcelDateGroup'];return _0x480bab?_0x96fea2(_0x529bfd,{'unitId':_0x5ae2c8,'subUnitId':_0x2b0ece,'pivotTableId':_0x4eddb9,'currentConfig':_0x135215,'currentCollection':_0x586614},_0x480bab):!0x1;}},_0x5b3575={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x1a6)],'id':'sheet.command.set-pivot-fields-config',async 'handler'(_0x31ad6b,_0x462e8c){const _0x445cff=_0x55e150;if(!_0x462e8c)return!0x1;let _0x43a273=_0x31ad6b['get'](_0x3f8283['ICommandService']),_0x49901b=_0x31ad6b[_0x445cff(0x97)](_0x3f8283[_0x445cff(0x1a0)]),_0x5e137f=_0x31ad6b[_0x445cff(0x97)](_0x5b492b),{pivotTableConfig:_0x16ff24,pivotTableId:_0x2a4c4e,unitId:_0x1c4a93,subUnitId:_0x15576e}=_0x462e8c,_0x43a474=(await _0x5e137f[_0x445cff(0x2f3)]({'unitId':_0x1c4a93,'subUnitId':_0x15576e,'pivotTableId':_0x2a4c4e,'params':{'type':'setPivotTableConfig','setPivotTableConfig':{'pivotTableId':_0x2a4c4e,'pivotTableConfig':_0x16ff24}}}))[_0x445cff(0x487)][_0x445cff(0x381)];if(!_0x43a474)return!0x1;let {changesets:_0x336630}=_0x43a474,{redos:_0x4beb03,undos:_0x270de1}=_0x4cc94b(_0x43a273,{'pivotTableId':_0x2a4c4e,'unitId':_0x1c4a93,'subUnitId':_0x15576e},_0x336630);return(0x0,_0x3f8283[_0x445cff(0xb1)])(_0x4beb03,_0x43a273)[_0x445cff(0x487)]?(_0x49901b[_0x445cff(0x482)]({'unitID':_0x1c4a93,'redoMutations':_0x4beb03,'undoMutations':_0x270de1}),!0x0):!0x1;}},_0x2b1330={'type':_0x3f8283['CommandType'][_0x55e150(0x1a6)],'id':_0x55e150(0x330),async 'handler'(_0x44bcca,_0x4a57a9){const _0x1785a0=_0x55e150;if(!_0x4a57a9)return!0x1;let _0x3ca3a4=_0x44bcca[_0x1785a0(0x97)](_0x3f8283[_0x1785a0(0x3cb)]),{pivotTableId:_0xf66c24,tableFieldId:_0x47c82b,items:_0x26a649,partialItems:_0x510aac,unitId:_0x4dcbdf,subUnitId:_0x6d9b2,isAll:_0x7b086e}=_0x4a57a9,_0x54a6e7=_0x44bcca[_0x1785a0(0x97)](_0x462162),_0x5c8b2a=await _0x54a6e7[_0x1785a0(0x31b)][_0x1785a0(0x50c)](_0x48909d)({'handled':!0x1,'result':!0x1},_0x4a57a9);if(_0x5c8b2a!=null&&_0x5c8b2a[_0x1785a0(0x4fe)])return _0x5c8b2a['result'];let _0x52bbed=_0x44bcca['get'](_0x5b492b),_0x11b403=_0x44bcca[_0x1785a0(0x97)](_0x3f8283[_0x1785a0(0x1a0)]),_0xfaca04=(await _0x52bbed[_0x1785a0(0x2f3)]({'unitId':_0x4dcbdf,'subUnitId':_0x6d9b2,'pivotTableId':_0xf66c24,'params':{'type':_0x1785a0(0x255),'setPivotFilter':{'tableFieldId':_0x47c82b,'items':_0x26a649,'partialItems':_0x510aac,'isAll':_0x7b086e}}}))[_0x1785a0(0x487)][_0x1785a0(0x255)];if(!_0xfaca04)return!0x1;let {changesets:_0x4d9ee7,pivotTableConfig:_0x3ae0e7,isEmpty:_0x32e9bb,view:_0x42c02b}=_0xfaca04,_0x589b89=_0x3ae0e7['targetCellInfo'],_0x28beb7=new _0x4078f7[(_0x1785a0(0x3d3))]();_0x28beb7['formJSON'](_0x42c02b);let _0x3a4f1d={'cellInfo':_0x589b89,'view':_0x28beb7,'isEmpty':_0x32e9bb};if(!await _0x54a6e7['asyncInterceptor'][_0x1785a0(0x50c)](_0x3c57d5)(!0x0,_0x3a4f1d))return!0x1;let _0x487110=_0x1ddf1b(_0x44bcca,_0x28beb7,_0x589b89,_0x32e9bb),_0x360138=_0x26896e(_0x44bcca,_0x3a4f1d),{undos:_0x232474,redos:_0x2e118d}=_0x4cc94b(_0x3ca3a4,{'pivotTableId':_0xf66c24,'unitId':_0x4dcbdf,'subUnitId':_0x6d9b2},_0x4d9ee7);return(0x0,_0x3f8283[_0x1785a0(0xb1)])([..._0x487110[_0x1785a0(0x430)],..._0x360138[_0x1785a0(0x430)],..._0x2e118d],_0x3ca3a4)[_0x1785a0(0x487)]?(_0x11b403['pushUndoRedo']({'unitID':_0x4dcbdf,'redoMutations':[..._0x487110['redos'],..._0x360138[_0x1785a0(0x430)],..._0x2e118d],'undoMutations':[..._0x487110[_0x1785a0(0x371)],..._0x360138['undos'],..._0x232474]}),!0x0):!0x1;}},_0x124195={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x1a6)],'id':'sheet.command.set-pivot-layout',async 'handler'(_0xe35ee9,_0x524c69){const _0x24d269=_0x55e150;if(!_0x524c69)return!0x1;let _0x2a9f0c=_0xe35ee9[_0x24d269(0x97)](_0x3f8283[_0x24d269(0x3cb)]),_0x319e33=_0xe35ee9['get'](_0x3f8283['IUndoRedoService']),_0xff6232=_0xe35ee9[_0x24d269(0x97)](_0x5b492b),{layout:_0x22aedd,pivotTableId:_0x131c65,unitId:_0x49a66b,subUnitId:_0x7062f7}=_0x524c69,_0x120513=(await _0xff6232[_0x24d269(0x2f3)]({'unitId':_0x49a66b,'subUnitId':_0x7062f7,'pivotTableId':_0x131c65,'params':{'type':_0x24d269(0x2e5),'setPivotLayout':{'pivotTableId':_0x131c65,'layout':_0x22aedd}}}))['result'][_0x24d269(0x2e5)];if(!_0x120513)return!0x1;let {changesets:_0x2dc7de}=_0x120513,{redos:_0x3fe390,undos:_0xfc7ab7}=_0x4cc94b(_0x2a9f0c,{'pivotTableId':_0x131c65,'unitId':_0x49a66b,'subUnitId':_0x7062f7},_0x2dc7de);return(0x0,_0x3f8283['sequenceExecute'])(_0x3fe390,_0x2a9f0c)[_0x24d269(0x487)]?(_0x319e33['pushUndoRedo']({'unitID':_0x49a66b,'redoMutations':_0x3fe390,'undoMutations':_0xfc7ab7}),!0x0):!0x1;}},_0x410113={'id':_0x55e150(0x99),'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x1a6)],async 'handler'(_0x19d2f8,_0x27aa30){const _0x424fdc=_0x55e150;if(!_0x27aa30)return!0x1;let {unitId:_0x5b410e,subUnitId:_0x104db0,pivotTableId:_0x2f2e3e,sourceFieldId:_0x10f69e,groups:_0x73ab04}=_0x27aa30,_0x29ebe0=_0x19d2f8['get'](_0x3de398),_0x2a66b3=_0x29ebe0[_0x424fdc(0x3a8)](_0x5b410e,_0x104db0,_0x2f2e3e),_0x17fbe8=_0x29ebe0[_0x424fdc(0x517)](_0x5b410e,_0x2f2e3e);if(!_0x2a66b3||!_0x17fbe8)return!0x1;let _0x29233b=(await _0x19d2f8[_0x424fdc(0x97)](_0x5b492b)[_0x424fdc(0x2f3)]({'unitId':_0x5b410e,'subUnitId':_0x104db0,'pivotTableId':_0x2f2e3e,'params':{'type':_0x424fdc(0xaf),'setPivotManualGroups':{'sourceFieldId':_0x10f69e,'groups':_0x73ab04}}}))[_0x424fdc(0x487)][_0x424fdc(0xaf)];return _0x29233b?_0x96fea2(_0x19d2f8,{'unitId':_0x5b410e,'subUnitId':_0x104db0,'pivotTableId':_0x2f2e3e,'currentConfig':_0x2a66b3,'currentCollection':_0x17fbe8},_0x29233b):!0x1;}},_0x28e168={'id':_0x55e150(0x520),'type':_0x3f8283['CommandType'][_0x55e150(0x1a6)],async 'handler'(_0x3a1dcb,_0x49ed04){const _0x5df1dd=_0x55e150;if(!_0x49ed04)return!0x1;let {unitId:_0x3776b1,subUnitId:_0x494454,pivotTableId:_0x3a3451,tableFieldId:_0xa4f368,grouping:_0x464d94}=_0x49ed04,_0x2a5de7=_0x3a1dcb[_0x5df1dd(0x97)](_0x3de398),_0x48cff1=_0x2a5de7['getPivotTableConfig'](_0x3776b1,_0x494454,_0x3a3451),_0x325651=_0x2a5de7[_0x5df1dd(0x517)](_0x3776b1,_0x3a3451);if(!_0x48cff1||!_0x325651)return!0x1;let _0x4e2e77=(await _0x3a1dcb[_0x5df1dd(0x97)](_0x5b492b)[_0x5df1dd(0x2f3)]({'unitId':_0x3776b1,'subUnitId':_0x494454,'pivotTableId':_0x3a3451,'params':{'type':_0x5df1dd(0x3e9),'setPivotNumberGroup':{'tableFieldId':_0xa4f368,'grouping':_0x464d94}}}))['result'][_0x5df1dd(0x3e9)];return _0x4e2e77?_0x96fea2(_0x3a1dcb,{'unitId':_0x3776b1,'subUnitId':_0x494454,'pivotTableId':_0x3a3451,'currentConfig':_0x48cff1,'currentCollection':_0x325651},_0x4e2e77):!0x1;}},_0x5a32e5={'type':_0x3f8283[_0x55e150(0x110)]['COMMAND'],'id':_0x55e150(0x489),async 'handler'(_0x23c8bc,_0x23d630){const _0x2a9398=_0x55e150;if(!_0x23d630)return!0x1;let {options:_0x5028cc,pivotTableId:_0x5b08fc,unitId:_0x7cf6da,subUnitId:_0x4e0dff}=_0x23d630;if(_0x5028cc[_0x2a9398(0x4e1)]!==void 0x0&&_0x5028cc[_0x2a9398(0x4e1)]!==_0x4078f7[_0x2a9398(0x4af)][_0x2a9398(0x26e)]&&_0x5028cc[_0x2a9398(0x4e1)]!==_0x4078f7[_0x2a9398(0x4af)][_0x2a9398(0x4c3)])return!0x1;let _0x451a36=_0x23c8bc[_0x2a9398(0x97)](_0x3de398),_0x284992=_0x451a36[_0x2a9398(0x3a8)](_0x7cf6da,_0x4e0dff,_0x5b08fc);if(!_0x284992)return!0x1;let _0x30b848=_0x451a36['getCollection'](_0x7cf6da,_0x5b08fc),_0x361155=_0x5028cc[_0x2a9398(0x4e1)]!==void 0x0&&(0x0,_0x4078f7[_0x2a9398(0x1c5)])(_0x284992[_0x2a9398(0x4ac)][_0x2a9398(0x218)])!==_0x5028cc['dateGroupingMode'];if(_0x361155&&!_0x30b848)return!0x1;let _0x30b8f1=_0x23c8bc[_0x2a9398(0x97)](_0x3f8283[_0x2a9398(0x3cb)]),_0x590f64=_0x23c8bc[_0x2a9398(0x97)](_0x3f8283[_0x2a9398(0x1a0)]),_0x104d7c=(await _0x23c8bc[_0x2a9398(0x97)](_0x5b492b)[_0x2a9398(0x2f3)]({'unitId':_0x7cf6da,'subUnitId':_0x4e0dff,'pivotTableId':_0x5b08fc,'params':{'type':_0x2a9398(0x312),'setOptions':{'pivotTableId':_0x5b08fc,'info':_0x5028cc}}}))[_0x2a9398(0x487)][_0x2a9398(0x112)];if(!_0x104d7c||_0x451a36[_0x2a9398(0x3a8)](_0x7cf6da,_0x4e0dff,_0x5b08fc)!==_0x284992||_0x361155&&_0x451a36[_0x2a9398(0x517)](_0x7cf6da,_0x5b08fc)!==_0x30b848)return!0x1;let _0x4abe53=_0x4cc94b(_0x30b8f1,{'pivotTableId':_0x5b08fc,'unitId':_0x7cf6da,'subUnitId':_0x4e0dff},_0x104d7c[_0x2a9398(0xd3)]);if(!_0x361155)return(0x0,_0x3f8283[_0x2a9398(0xb1)])(_0x4abe53[_0x2a9398(0x430)],_0x30b8f1)[_0x2a9398(0x487)]?(_0x590f64['pushUndoRedo']({'unitID':_0x7cf6da,'redoMutations':_0x4abe53[_0x2a9398(0x430)],'undoMutations':_0x4abe53[_0x2a9398(0x371)]}),!0x0):!0x1;if(!_0x104d7c[_0x2a9398(0xcf)])return!0x1;let _0x40115e=new _0x4078f7[(_0x2a9398(0x3d3))]();_0x40115e['formJSON'](_0x104d7c['view']);let _0x5db53c={'cellInfo':_0x284992[_0x2a9398(0xf0)],'view':_0x40115e,'isEmpty':_0x104d7c[_0x2a9398(0x360)]};if(!await _0x23c8bc[_0x2a9398(0x97)](_0x462162)[_0x2a9398(0x31b)][_0x2a9398(0x50c)](_0x3c57d5)(!0x0,_0x5db53c)||_0x451a36[_0x2a9398(0x3a8)](_0x7cf6da,_0x4e0dff,_0x5b08fc)!==_0x284992||_0x451a36['getCollection'](_0x7cf6da,_0x5b08fc)!==_0x30b848)return!0x1;let _0x2bdb5c=_0x1ddf1b(_0x23c8bc,_0x40115e,_0x284992[_0x2a9398(0xf0)],_0x104d7c[_0x2a9398(0x360)]),_0x13d17e=_0x26896e(_0x23c8bc,_0x5db53c),_0x2366ec=_0x104d7c[_0x2a9398(0xcf)][_0x2a9398(0x37b)]()[_0x2a9398(0x1c1)]()[_0x2a9398(0x1e6)](_0x54073b=>({'id':_0x3cb3b5['id'],'params':{'unitId':_0x7cf6da,'subUnitId':_0x4e0dff,'pivotTableId':_0x5b08fc,'dataFieldId':_0x54073b['id']}})),_0x89200e=_0x104d7c['removedGroupJSON']['map'](_0x51754d=>({'id':_0x3a1f26['id'],'params':{'unitId':_0x7cf6da,'subUnitId':_0x4e0dff,'pivotTableId':_0x5b08fc,'fieldJSON':_0x51754d}}));return _0x4e6ba0([{..._0x2bdb5c,'reverse':!0x1},{..._0x13d17e,'reverse':!0x1},{..._0x4abe53,'reverse':!0x0},{'redos':_0x2366ec,'undos':_0x89200e,'reverse':!0x0}],_0x30b8f1)?(_0x590f64[_0x2a9398(0x482)]({'unitID':_0x7cf6da,'redoMutations':[..._0x2bdb5c[_0x2a9398(0x430)],..._0x13d17e[_0x2a9398(0x430)],..._0x4abe53[_0x2a9398(0x430)],..._0x2366ec],'undoMutations':[..._0x2bdb5c[_0x2a9398(0x371)],..._0x13d17e[_0x2a9398(0x371)],..._0x89200e,..._0x4abe53[_0x2a9398(0x371)]]}),!0x0):!0x1;}},_0x6b18c9={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x1a6)],'id':'sheet.command.set-pivot-sort',async 'handler'(_0x3ebfd8,_0x530408){const _0x22369a=_0x55e150;if(!_0x530408)return!0x1;let _0x2cf7ef=_0x3ebfd8[_0x22369a(0x97)](_0x3f8283[_0x22369a(0x3cb)]),_0x5cf945=_0x3ebfd8['get'](_0x3f8283[_0x22369a(0x1a0)]),_0x512d90=_0x3ebfd8['get'](_0x5b492b),_0x35fb4f=_0x3ebfd8[_0x22369a(0x97)](_0x3f8283[_0x22369a(0x232)]),{info:_0x2904bc,tableFieldId:_0x5bd54a,pivotTableId:_0x564242,unitId:_0x4bd2d7,subUnitId:_0x4775b2}=_0x530408,_0x12e7c0=_0x2904bc===void 0x0||_0x2904bc[_0x22369a(0x230)]===_0x4078f7[_0x22369a(0x525)][_0x22369a(0x345)]?_0x2904bc:{..._0x2904bc,'sortLocale':_0x2904bc[_0x22369a(0x153)]??_0x3f8283[_0x22369a(0x38e)][_0x35fb4f[_0x22369a(0x35c)]()]['tag']},_0x1c107e=(await _0x512d90[_0x22369a(0x2f3)]({'unitId':_0x4bd2d7,'subUnitId':_0x4775b2,'pivotTableId':_0x564242,'params':{'type':_0x22369a(0x2e8),'setPivotSort':{'tableFieldId':_0x5bd54a,'info':_0x12e7c0}}}))[_0x22369a(0x487)]['setPivotSort'];if(!_0x1c107e)return!0x1;let {changesets:_0x2781e2}=_0x1c107e,{redos:_0x231fda,undos:_0x19cad1}=_0x4cc94b(_0x2cf7ef,{'pivotTableId':_0x564242,'unitId':_0x4bd2d7,'subUnitId':_0x4775b2},_0x2781e2);return(0x0,_0x3f8283['sequenceExecute'])(_0x231fda,_0x2cf7ef)['result']?(_0x5cf945['pushUndoRedo']({'unitID':_0x4bd2d7,'redoMutations':_0x231fda,'undoMutations':_0x19cad1}),!0x0):!0x1;}},_0x4d20a8={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x1a6)],'id':'sheet.command.set-pivot-value-filter',async 'handler'(_0x12b388,_0x4aa77c){const _0x4ff1dc=_0x55e150;var _0x3d8de4;if(!_0x4aa77c)return!0x1;let _0xd26783=_0x12b388[_0x4ff1dc(0x97)](_0x3f8283[_0x4ff1dc(0x3cb)]),{pivotTableId:_0x3a7dd3,fieldId:_0x5ce9cb,valueFilterInfo:_0xe2678b,unitId:_0x50160c,subUnitId:_0x3f02e6}=_0x4aa77c,_0x508862=(_0x3d8de4=_0x12b388[_0x4ff1dc(0x97)](_0x3de398)[_0x4ff1dc(0x3a8)](_0x50160c,_0x3f02e6,_0x3a7dd3))==null?void 0x0:_0x3d8de4['fieldsConfig'],_0x1e1694=!!(_0x508862&&(_0x508862[_0x4ff1dc(0x477)][_0x4ff1dc(0xf1)](_0x5ce9cb)||_0x508862[_0x4ff1dc(0x4bf)][_0x4ff1dc(0xf1)](_0x5ce9cb)));if(!_0x508862||!_0x1e1694||_0xe2678b!==void 0x0&&(_0xe2678b[_0x4ff1dc(0x230)]!==_0x4078f7[_0x4ff1dc(0x3ed)][_0x4ff1dc(0x4c8)]||!_0x508862[_0x4ff1dc(0xa5)][_0xe2678b['valueFieldId']]||!(0x0,_0x4078f7[_0x4ff1dc(0x3e7)])(_0xe2678b['operator'])))return!0x1;let _0xffe4ac=_0xe2678b&&{..._0xe2678b,'expected':Array[_0x4ff1dc(0x10a)](_0xe2678b[_0x4ff1dc(0x2cd)])?_0xe2678b[_0x4ff1dc(0x2cd)][_0x4ff1dc(0x1e1)]():_0xe2678b[_0x4ff1dc(0x2cd)]},_0x1e45d7=_0x12b388[_0x4ff1dc(0x97)](_0x5b492b),_0x5b1f03=_0x12b388[_0x4ff1dc(0x97)](_0x3f8283['IUndoRedoService']),_0x1c192a=(await _0x1e45d7[_0x4ff1dc(0x2f3)]({'unitId':_0x50160c,'subUnitId':_0x3f02e6,'pivotTableId':_0x3a7dd3,'params':{'type':_0x4ff1dc(0x15a),'setValuePivotFilter':{'tableFieldId':_0x5ce9cb,'filterInfo':_0xffe4ac}}}))['result'][_0x4ff1dc(0x15a)];if(!_0x1c192a)return!0x1;let {changesets:_0x7fb35f,pivotTableConfig:_0x1962a0,isEmpty:_0x42d9b0,view:_0x20017a}=_0x1c192a,_0x49e87c=_0x1962a0[_0x4ff1dc(0xf0)],_0x542f47=new _0x4078f7[(_0x4ff1dc(0x3d3))]();_0x542f47[_0x4ff1dc(0x35e)](_0x20017a);let _0x45c3a6={'cellInfo':_0x49e87c,'view':_0x542f47,'isEmpty':_0x42d9b0};if(!await _0x12b388[_0x4ff1dc(0x97)](_0x462162)[_0x4ff1dc(0x31b)][_0x4ff1dc(0x50c)](_0x3c57d5)(!0x0,_0x45c3a6))return!0x1;let _0x383e34=_0x1ddf1b(_0x12b388,_0x542f47,_0x49e87c,_0x42d9b0),_0x5a20c2=_0x26896e(_0x12b388,_0x45c3a6),{undos:_0x5e8001,redos:_0x5b2507}=_0x4cc94b(_0xd26783,{'pivotTableId':_0x3a7dd3,'unitId':_0x50160c,'subUnitId':_0x3f02e6},_0x7fb35f);return(0x0,_0x3f8283[_0x4ff1dc(0xb1)])([..._0x383e34[_0x4ff1dc(0x430)],..._0x5a20c2[_0x4ff1dc(0x430)],..._0x5b2507],_0xd26783)[_0x4ff1dc(0x487)]?(_0x5b1f03[_0x4ff1dc(0x482)]({'unitID':_0x50160c,'redoMutations':[..._0x383e34[_0x4ff1dc(0x430)],..._0x5a20c2[_0x4ff1dc(0x430)],..._0x5b2507],'undoMutations':[..._0x383e34[_0x4ff1dc(0x371)],..._0x5a20c2[_0x4ff1dc(0x371)],..._0x5e8001]}),!0x0):!0x1;}},_0x383d63={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x1a6)],'id':'sheet.command.set-pivot-field-setting',async 'handler'(_0x270382,_0x2f003e){const _0x7fde84=_0x55e150;if(!_0x2f003e)return!0x1;let _0x1669c=_0x270382[_0x7fde84(0x97)](_0x3f8283[_0x7fde84(0x3cb)]),_0x9662aa=_0x270382[_0x7fde84(0x97)](_0x3f8283[_0x7fde84(0x1a0)]),_0x14bb6d=_0x270382['get'](_0x5b492b),{displayName:_0x381190,subtotalType:_0x541c10,format:_0x34d7c6,showDataAs:_0x1edcc9,tableFieldId:_0x549358,pivotTableId:_0x5282e5,unitId:_0x48a2a9,subUnitId:_0x1de1f}=_0x2f003e,_0x173352=(await _0x14bb6d['getPivotDisplayConfig']({'unitId':_0x48a2a9,'subUnitId':_0x1de1f,'pivotTableId':_0x5282e5,'params':{'type':_0x7fde84(0x13f),'setPivotSetting':{'tableFieldId':_0x549358,'displayName':_0x381190,'subtotalType':_0x541c10,'format':_0x34d7c6,'showDataAs':_0x1edcc9===void 0x0?void 0x0:{..._0x1edcc9}}}}))[_0x7fde84(0x487)]['setPivotSetting'];if(!_0x173352)return!0x1;let {changesets:_0x48273a,view:_0x302c35,pivotTableConfig:_0x5b8320,isEmpty:_0x438d0e}=_0x173352,_0x4fe1bf=_0x5b8320[_0x7fde84(0xf0)],_0xbdc773=new _0x4078f7['PivotView']();_0xbdc773['formJSON'](_0x302c35);let _0x2b3dd4={'cellInfo':_0x4fe1bf,'view':_0xbdc773,'isEmpty':_0x438d0e};if(!await _0x270382['get'](_0x462162)[_0x7fde84(0x31b)][_0x7fde84(0x50c)](_0x3c57d5)(!0x0,_0x2b3dd4))return!0x1;let _0x498519=_0x1ddf1b(_0x270382,_0xbdc773,_0x4fe1bf,_0x438d0e),_0x4c209b=_0x26896e(_0x270382,_0x2b3dd4),{undos:_0x110ec0,redos:_0x3f9a86}=_0x4cc94b(_0x1669c,{'pivotTableId':_0x5282e5,'unitId':_0x48a2a9,'subUnitId':_0x1de1f},_0x48273a);return(0x0,_0x3f8283[_0x7fde84(0xb1)])([..._0x498519['redos'],..._0x4c209b[_0x7fde84(0x430)],..._0x3f9a86],_0x1669c)[_0x7fde84(0x487)]?(_0x9662aa[_0x7fde84(0x482)]({'unitID':_0x48a2a9,'redoMutations':[..._0x498519[_0x7fde84(0x430)],..._0x4c209b[_0x7fde84(0x430)],..._0x3f9a86],'undoMutations':[..._0x498519[_0x7fde84(0x371)],..._0x4c209b[_0x7fde84(0x371)],..._0x110ec0]}),!0x0):!0x1;}},_0x229511={'type':_0x3f8283['CommandType'][_0x55e150(0x4f2)],'id':_0x55e150(0x9d),'handler'(_0x5b0c7a,_0x161fec){const _0x4e1c6a=_0x55e150;if(!_0x161fec)return!0x1;if(_0x5b0c7a['get'](_0x3f8283['IConfigService'])[_0x4e1c6a(0x23f)](_0x4e1c6a(0x111))){let _0x43a16c=_0x5b0c7a[_0x4e1c6a(0x97)](_0x3de398),{unitId:_0x323698,subUnitId:_0x403d0e,pivotTableId:_0x22dc6b,dataRangeInfo:_0x4bc17e,pivotCacheId:_0x35df8a,collectionJSON:_0x384478}=_0x161fec,_0x4c68b4=_0x43a16c[_0x4e1c6a(0x3a8)](_0x323698,_0x403d0e,_0x22dc6b);return!_0x4c68b4||_0x161fec['preserveCacheId']&&_0x4c68b4[_0x4e1c6a(0x3ae)]!==_0x35df8a?!0x1:(_0x43a16c[_0x4e1c6a(0x43b)](()=>{const _0x12a55d=_0x4e1c6a;let _0x369ab4=_0x43a16c[_0x12a55d(0x201)]([{'unitId':_0x323698,'subUnitId':_0x403d0e,'pivotTableId':_0x22dc6b,'config':{..._0x4c68b4,'sourceRangeInfo':_0x4bc17e,'pivotCacheId':_0x35df8a}}]);_0x369ab4['commit'](),_0x4c68b4[_0x12a55d(0x1f5)]['unitId']!==_0x4bc17e[_0x12a55d(0xa0)]&&_0x43a16c[_0x12a55d(0x109)](_0x4c68b4['sourceRangeInfo'][_0x12a55d(0xa0)],_0x22dc6b),_0x43a16c[_0x12a55d(0x1aa)](_0x4bc17e['unitId'],_0x22dc6b,_0x384478,_0x35df8a?{'pivotCacheId':_0x35df8a,'sourceRangeInfo':_0x4bc17e}:void 0x0),_0x369ab4[_0x12a55d(0x397)]();}),!0x0);}let _0x2906dd=_0x5b0c7a[_0x4e1c6a(0x97)](_0x30eff7),{pivotTableId:_0x43f108,pivotCacheId:_0x2200bf,deleteIds:_0x381312,collectionJSON:_0x2fb284,dataRangeInfo:_0x372a9a,unitId:_0x430b86,subUnitId:_0x120e4b}=_0x161fec,_0x33a987=_0x2906dd[_0x4e1c6a(0x483)](_0x43f108),_0x433f98=_0x2906dd[_0x4e1c6a(0x3a8)](_0x430b86,_0x120e4b,_0x43f108);if(!_0x33a987||!_0x433f98)return!0x1;if(_0x161fec[_0x4e1c6a(0x2f0)]&&_0x2200bf){if(_0x433f98[_0x4e1c6a(0x3ae)]!==_0x2200bf)return!0x1;_0x5b0c7a[_0x4e1c6a(0x97)](_0x2fd000)[_0x4e1c6a(0x172)](_0x2200bf,_0x372a9a);let _0x11054d=_0x2906dd[_0x4e1c6a(0x286)](_0x372a9a[_0x4e1c6a(0xa0)]);for(let _0x159c6f of _0x2906dd[_0x4e1c6a(0x517)](_0x430b86,_0x43f108)[_0x4e1c6a(0x28a)]()){let _0x241b05=_0x11054d[_0x4e1c6a(0x16b)][_0x159c6f];_0x241b05&&_0x11054d[_0x4e1c6a(0x463)][_0x241b05[_0x4e1c6a(0x215)]]===_0x159c6f&&delete _0x11054d[_0x4e1c6a(0x463)][_0x241b05[_0x4e1c6a(0x215)]];}}let {collection:_0x12589b,updateDataFieldList:_0x3cd653}=_0x2906dd[_0x4e1c6a(0x51c)](_0x43f108,_0x2fb284,_0x372a9a,_0x433f98[_0x4e1c6a(0xf0)]);_0x2906dd[_0x4e1c6a(0x281)](_0x12589b,_0x3cd653,_0x372a9a),_0x33a987[_0x4e1c6a(0x1d8)](_0x12589b);for(let _0x94c89a of _0x381312)_0x2906dd[_0x4e1c6a(0x20d)](_0x372a9a[_0x4e1c6a(0xa0)],_0x94c89a);return _0x2906dd['updatePivotTableSourceRange'](_0x430b86,_0x120e4b,_0x43f108,_0x372a9a,_0x2200bf)?(_0x2906dd[_0x4e1c6a(0x131)]({'unitId':_0x430b86,'subUnitId':_0x120e4b,'token':_0x43f108,'type':_0x4e1c6a(0x187)}),!0x0):!0x1;}},_0x2c6074={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x1a6)],'id':_0x55e150(0x48e),async 'handler'(_0x469abe,_0x2b81f2){const _0x44d81d=_0x55e150;let _0x2aa44f=_0x469abe['get'](_0x3f8283['ICommandService']),_0x1ade47=_0x469abe[_0x44d81d(0x97)](_0x5b492b),_0x595674=_0x469abe[_0x44d81d(0x97)](_0x3f8283[_0x44d81d(0x1a0)]);if(!_0x2b81f2)return!0x1;let {token:_0x46acaa,dataRangeInfo:_0x3e3866,unitId:_0x2a6112,subUnitId:_0x36fd0c}=_0x2b81f2,_0x203b4c=[],_0x288a0c=[],_0x1a9dca=(await _0x1ade47[_0x44d81d(0x2f3)]({'unitId':_0x2a6112,'subUnitId':_0x36fd0c,'pivotTableId':_0x46acaa,'params':{'type':_0x44d81d(0x19a),'updatePivotSource':{'dataRangeInfo':_0x3e3866,'unitId':_0x2a6112,'subUnitId':_0x36fd0c}}}))['result'][_0x44d81d(0x19a)];if(!_0x1a9dca)return!0x1;let {changesets:_0xdbd76c,deleteIds:_0x138a64,createdFieldIds:_0x41b140,collectionConfig:_0x5be3b6,oldCollectionConfig:_0x7703b0,view:_0x892659,isEmpty:_0x48e976,pivotTableConfig:_0x160405,pivotCacheId:_0x4767eb}=_0x1a9dca;_0x288a0c[_0x44d81d(0xc7)]({'id':_0x229511['id'],'params':{'pivotTableId':_0x46acaa,'pivotCacheId':_0x4767eb,'deleteIds':_0x138a64,'collectionJSON':_0x5be3b6,'dataRangeInfo':_0x3e3866,'unitId':_0x2a6112,'subUnitId':_0x36fd0c}}),_0x203b4c[_0x44d81d(0x52c)]({'id':_0x229511['id'],'params':{'pivotTableId':_0x46acaa,'pivotCacheId':_0x160405['pivotCacheId'],'deleteIds':_0x41b140,'collectionJSON':_0x7703b0,'dataRangeInfo':_0x160405[_0x44d81d(0x1f5)],'unitId':_0x2a6112,'subUnitId':_0x36fd0c}});let _0x55ba11=_0x160405[_0x44d81d(0xf0)],_0x1d1dbf=new _0x4078f7[(_0x44d81d(0x3d3))]();_0x1d1dbf[_0x44d81d(0x35e)](_0x892659);let _0x3c8b98={'cellInfo':_0x55ba11,'view':_0x1d1dbf,'isEmpty':_0x48e976};if(!await _0x469abe[_0x44d81d(0x97)](_0x462162)[_0x44d81d(0x31b)][_0x44d81d(0x50c)](_0x3c57d5)(!0x0,_0x3c8b98))return!0x1;let _0x4f7310=_0x1ddf1b(_0x469abe,_0x1d1dbf,_0x55ba11,_0x48e976),_0x1edd75=_0x26896e(_0x469abe,_0x3c8b98),{redos:_0x5d3dcb,undos:_0x471fa3}=_0x4cc94b(_0x2aa44f,{'pivotTableId':_0x46acaa,'unitId':_0x2a6112,'subUnitId':_0x36fd0c},_0xdbd76c);return(0x0,_0x3f8283['sequenceExecute'])([..._0x4f7310[_0x44d81d(0x430)],..._0x1edd75[_0x44d81d(0x430)],..._0x288a0c,..._0x5d3dcb],_0x2aa44f)['result']?(_0x595674['pushUndoRedo']({'unitID':_0x2a6112,'redoMutations':[..._0x4f7310['redos'],..._0x1edd75[_0x44d81d(0x430)],..._0x288a0c,..._0x5d3dcb],'undoMutations':[..._0x4f7310[_0x44d81d(0x371)],..._0x1edd75[_0x44d81d(0x371)],..._0x203b4c,..._0x471fa3]}),!0x0):!0x1;}},_0xd556f2={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x1a6)],'id':_0x55e150(0xb0),async 'handler'(_0x2cf30a,_0x61a5c3){const _0x5ac885=_0x55e150;if(!_0x61a5c3)return!0x1;let _0x4e2ddd=_0x2cf30a[_0x5ac885(0x97)](_0x3f8283[_0x5ac885(0x3cb)]),_0xb09a3f=_0x2cf30a[_0x5ac885(0x97)](_0x5b492b),_0x6053bc=_0x2cf30a['get'](_0x3f8283['IUniverInstanceService']),_0x43be23=_0x2cf30a[_0x5ac885(0x97)](_0x3f8283[_0x5ac885(0x1a0)]),{pivotTableId:_0xf266ca,position:_0x5d8a94,index:_0x3590ba}=_0x61a5c3,_0x1b522a=(0x0,_0x4b3c60['getSheetCommandTarget'])(_0x6053bc,_0x61a5c3);if(!_0x1b522a)return!0x1;let {unitId:_0x6157da,subUnitId:_0x278e11}=_0x1b522a,_0x23657b=(await _0xb09a3f['getPivotDisplayConfig']({'unitId':_0x6157da,'subUnitId':_0x278e11,'pivotTableId':_0xf266ca,'params':{'type':'updateValuePosition','updateValuePosition':{'position':_0x5d8a94,'index':_0x3590ba}}}))[_0x5ac885(0x487)][_0x5ac885(0x2c0)];if(!_0x23657b)return!0x1;let {changesets:_0x6b2d47,view:_0x5621f5,isEmpty:_0x287b0d,pivotTableConfig:_0x2ae2e9}=_0x23657b,_0x10519e=_0x2ae2e9[_0x5ac885(0xf0)],_0x18de58=new _0x4078f7[(_0x5ac885(0x3d3))]();_0x18de58[_0x5ac885(0x35e)](_0x5621f5);let _0x4ac716=_0x2cf30a[_0x5ac885(0x97)](_0x462162),_0xb7b8cc={'cellInfo':_0x10519e,'view':_0x18de58,'isEmpty':_0x287b0d};if(!await _0x4ac716[_0x5ac885(0x31b)][_0x5ac885(0x50c)](_0x3c57d5)(!0x0,_0xb7b8cc))return!0x1;let _0x8a1376=_0x1ddf1b(_0x2cf30a,_0x18de58,_0x10519e,_0x287b0d),_0x5436fc=_0x26896e(_0x2cf30a,_0xb7b8cc),{undos:_0x19d0db,redos:_0x226487}=_0x4cc94b(_0x4e2ddd,{'pivotTableId':_0xf266ca,'unitId':_0x6157da,'subUnitId':_0x278e11},_0x6b2d47);return(0x0,_0x3f8283[_0x5ac885(0xb1)])([..._0x8a1376[_0x5ac885(0x430)],..._0x5436fc['redos'],..._0x226487],_0x4e2ddd)[_0x5ac885(0x487)]?(_0x43be23[_0x5ac885(0x482)]({'unitID':_0x6157da,'redoMutations':[..._0x8a1376['redos'],..._0x5436fc[_0x5ac885(0x430)],..._0x226487],'undoMutations':[..._0x8a1376[_0x5ac885(0x371)],..._0x5436fc['undos'],..._0x19d0db]}),!0x0):!0x1;}},_0x2df373={'type':_0x3f8283[_0x55e150(0x110)][_0x55e150(0x4f2)],'id':_0x55e150(0x3ea),'handler'(){return!0x0;}},_0xcdd85f=()=>({'runtimeCellData':{},'dirtyRanges':{}});function _0x54072b(_0x37a422){const _0x3aab5e=_0x55e150;let _0x3a6d56=_0x37a422[_0x3aab5e(0x3dc)],_0xb06860=_0x3a6d56['getFieldIds']()[_0x3aab5e(0x1e6)](_0x5843e4=>_0x3a6d56['getFieldById'](_0x5843e4))[_0x3aab5e(0x38f)](_0x4078f7[_0x3aab5e(0x485)]);if(!_0xb06860[_0x3aab5e(0x337)])return[];let _0x5266a7=new Map(_0xb06860[_0x3aab5e(0x1e6)](_0x1d5247=>[_0x1d5247['getId'](),_0x1d5247])),_0x44a5c3=_0x37a422['toJSON'](),_0x494d57=[[_0x4078f7[_0x3aab5e(0x149)]['Row'],_0x44a5c3[_0x3aab5e(0x477)]],[_0x4078f7[_0x3aab5e(0x149)][_0x3aab5e(0x142)],_0x44a5c3[_0x3aab5e(0x4bf)]],[_0x4078f7[_0x3aab5e(0x149)][_0x3aab5e(0x44a)],_0x44a5c3['filterFields']],[_0x4078f7[_0x3aab5e(0x149)][_0x3aab5e(0x2a0)],_0x44a5c3[_0x3aab5e(0x1cb)]],[_0x4078f7[_0x3aab5e(0x149)][_0x3aab5e(0x423)],_0x44a5c3[_0x3aab5e(0xee)]]];for(let [_0x4f4ea2,_0x116410]of _0x494d57){let _0x50ae37=new Set(_0x116410[_0x3aab5e(0x1e6)](_0x22452e=>{const _0x180cae=_0x3aab5e;var _0xff193,_0x17087c;return((_0xff193=_0x44a5c3[_0x180cae(0x3d4)][_0x22452e])==null?void 0x0:_0xff193['dataFieldId'])??((_0x17087c=_0x44a5c3[_0x180cae(0xa5)][_0x22452e])==null?void 0x0:_0x17087c[_0x180cae(0x19d)]);})),_0x978b66=new Map();_0x116410[_0x3aab5e(0x1bd)]((_0x58249e,_0x2c93f0)=>{const _0xc82145=_0x3aab5e;var _0x444cfc,_0x1fde1c;let _0x27e8c7=((_0x444cfc=_0x44a5c3[_0xc82145(0x3d4)][_0x58249e])==null?void 0x0:_0x444cfc[_0xc82145(0x19d)])??((_0x1fde1c=_0x44a5c3[_0xc82145(0xa5)][_0x58249e])==null?void 0x0:_0x1fde1c['dataFieldId']),_0x165f63=_0x27e8c7?_0x5266a7[_0xc82145(0x97)](_0x27e8c7):void 0x0;if(!_0x165f63)return;let _0x58152b=_0x165f63[_0xc82145(0x10e)]();!_0x50ae37[_0xc82145(0x16c)](_0x58152b)&&!_0x978b66['has'](_0x58152b)&&_0x978b66[_0xc82145(0x187)](_0x58152b,_0x2c93f0),Object[_0xc82145(0x34c)]['hasOwnProperty'][_0xc82145(0x152)](_0x44a5c3['collapseInfo'],_0x58249e)&&_0x37a422[_0xc82145(0x1ed)](_0x58249e,void 0x0),_0x37a422[_0xc82145(0x3f8)](_0x58249e);});for(let [_0x1a3bb6,_0x62c900]of _0x978b66)_0x37a422[_0x3aab5e(0x26b)](_0x1a3bb6,_0x4f4ea2,_0x62c900);}return _0xb06860[_0x3aab5e(0x1e6)](_0x4dab61=>_0x4dab61['toJSON']());}function _0x3892b3(_0x27fe01,_0x1d1258,_0x234b55,_0x47a00e,_0x170e53,_0x7b955b,_0x33e36e){const _0x503491=_0x55e150;let _0x5f3897=_0x47a00e[_0x503491(0x416)](),_0x2c865e=_0x27fe01[_0x503491(0x4b3)](),_0x3f85d3=_0x170e53===_0x4078f7[_0x503491(0x149)][_0x503491(0x438)]?_0x2c865e[_0x503491(0x477)]:_0x2c865e[_0x503491(0x4bf)],_0x1ee523=_0x3f85d3[_0x503491(0x38f)](_0x8d2536=>{const _0x97e09f=_0x503491;var _0x1d21cb;let _0x4a10d2=(_0x1d21cb=_0x2c865e[_0x97e09f(0x3d4)][_0x8d2536])==null?void 0x0:_0x1d21cb[_0x97e09f(0x19d)],_0x34eeed=_0x4a10d2?_0x1d1258['getFieldById'](_0x4a10d2):void 0x0;return _0x4a10d2===_0x5f3897||_0x34eeed&&_0x33e36e(_0x34eeed)&&_0x34eeed[_0x97e09f(0x10e)]()===_0x5f3897;});if(!_0x1ee523[_0x503491(0x337)])return;let _0x2e6379=Math['min'](..._0x1ee523[_0x503491(0x1e6)](_0x16c2d8=>_0x3f85d3[_0x503491(0x36c)](_0x16c2d8))),_0x49dd85=new Set([...Object[_0x503491(0x4f5)](_0x2c865e[_0x503491(0x3d4)]),...Object[_0x503491(0x4f5)](_0x2c865e[_0x503491(0xa5)])]['filter'](([_0x2645be])=>!_0x1ee523['includes'](_0x2645be))[_0x503491(0x1e6)](([,_0x59e8e])=>_0x59e8e['dataFieldId'])),_0x27a79f=[...new Map(_0x1ee523[_0x503491(0x1e6)](_0x16f5cd=>_0x1d1258[_0x503491(0x53c)](_0x2c865e[_0x503491(0x3d4)][_0x16f5cd]['dataFieldId']))[_0x503491(0x38f)](_0x318d27=>!!_0x318d27&&_0x33e36e(_0x318d27))[_0x503491(0x38f)](_0x37819e=>!_0x49dd85[_0x503491(0x16c)](_0x37819e[_0x503491(0x416)]()))[_0x503491(0x1e6)](_0x58c3fc=>[_0x58c3fc[_0x503491(0x416)](),_0x58c3fc[_0x503491(0x4b3)]()]))[_0x503491(0x20b)]()],_0x21e12f=[];_0x27fe01['startCollectChangeset']();let _0x431bda=!0x1;try{for(let _0x54c0ab of _0x1ee523){var _0x443959;Object[_0x503491(0x34c)][_0x503491(0x413)][_0x503491(0x152)](_0x2c865e[_0x503491(0x462)],_0x54c0ab)&&_0x27fe01[_0x503491(0x1ed)](_0x54c0ab,void 0x0);let _0x2b9bb7=_0x2c865e['dimension'][_0x54c0ab];_0x2b9bb7[_0x503491(0x19d)]===_0x5f3897&&((_0x443959=_0x2b9bb7[_0x503491(0x93)])==null?void 0x0:_0x443959['type'])===_0x4078f7[_0x503491(0x3ed)][_0x503491(0x3a5)]?_0x27fe01[_0x503491(0xce)](_0x54c0ab,_0x4078f7[_0x503491(0x149)][_0x503491(0x2a0)],0x0):_0x27fe01[_0x503491(0x3f8)](_0x54c0ab);}for(let [_0x294096,_0x172fd7]of _0x7b955b['entries']()){let _0x2dcca4=_0x172fd7[_0x503491(0x416)]();_0x234b55['addDataFieldWithoutUnitInfo'](_0x172fd7),_0x1d1258['addField'](_0x2dcca4,_0x172fd7[_0x503491(0x25f)]()),_0x21e12f[_0x503491(0xc7)](_0x2dcca4),_0x172fd7[_0x503491(0x513)](_0x47a00e),_0x27fe01[_0x503491(0x26b)](_0x2dcca4,_0x170e53,_0x2e6379+_0x294096);}_0x7b955b[_0x503491(0x337)]||_0x27fe01[_0x503491(0x26b)](_0x5f3897,_0x170e53,_0x2e6379);let _0x374a7b=_0x27fe01[_0x503491(0x360)](),_0x5c7e11=_0x27fe01[_0x503491(0x1a2)]()[_0x503491(0x4b3)](),_0x49452f=_0x27fe01['endCollectChangeset']();return _0x431bda=!0x0,{'view':_0x5c7e11,'changesets':_0x49452f,'isEmpty':_0x374a7b,'addedGroupJSON':_0x7b955b[_0x503491(0x1e6)](_0x51d46c=>_0x51d46c[_0x503491(0x4b3)]()),'removedGroupJSON':_0x27a79f};}finally{_0x431bda||_0x27fe01['cancelCollectChangeset']();for(let _0x556937 of _0x21e12f)_0x1d1258['deleteField'](_0x556937),Object['values'](_0x234b55['collections'])[_0x503491(0xde)](_0x14b88a=>_0x14b88a[_0x503491(0xe8)](_0x556937))||_0x234b55[_0x503491(0x4fa)](_0x556937);}}let _0x10a33d=(_0x4715f0,_0x7949b8,_0x503ee1,_0x4cf88f)=>{const _0x49bb7d=_0x55e150;let _0x36b302=_0x4715f0[_0x49bb7d(0x455)](_0x503ee1),_0x2e7bdc=(_0x36b302==null?void 0x0:_0x36b302['type'])===_0x4078f7[_0x49bb7d(0x3ed)]['RecordFilter']?_0x3a2c39(_0x7949b8,_0x36b302):void 0x0;return{..._0x4715f0['getDataFieldItemInfo'](_0x7949b8),'itemLabels':_0x7949b8 instanceof _0x4078f7['ManualGroupField']?Object[_0x49bb7d(0x338)](_0x7949b8[_0x49bb7d(0x460)][_0x49bb7d(0x1e6)](_0x4170c6=>[_0x4170c6,_0x7949b8[_0x49bb7d(0x2db)](_0x4170c6)])):void 0x0,..._0x2e7bdc,'tableFieldId':_0x503ee1,'pivotTableId':_0x4cf88f,'filterInfo':_0x36b302,'sortInfo':_0x4715f0[_0x49bb7d(0x265)](_0x503ee1),'format':_0x4715f0['getFieldFormat'](_0x503ee1)};},_0xe5a51b=(_0x17b6b8,_0x4e32f2,_0x4146c6)=>{const _0x382902=_0x55e150;let _0x44072e=_0x17b6b8[_0x382902(0x3dc)];_0x17b6b8[_0x382902(0x49b)](_0x36ae3f=>{const _0x343b14=_0x382902;let _0x49c440=_0x36ae3f[_0x343b14(0x416)](),_0x21a2ad=_0x36ae3f[_0x343b14(0x524)](),_0x139dc3=_0x36ae3f[_0x343b14(0x165)](),_0x7cda3a=_0x36ae3f[_0x343b14(0x3d8)]();_0x4e32f2[_0x21a2ad]&&_0x4e32f2[_0x21a2ad]===_0x7cda3a&&_0x139dc3===_0x7cda3a&&(_0x17b6b8['renameField'](_0x49c440,_0x44072e[_0x343b14(0x3d8)](_0x21a2ad)),_0x36ae3f['setSourceName'](_0x44072e[_0x343b14(0x3d8)](_0x21a2ad)));}),_0x17b6b8[_0x382902(0x150)](_0x4078f7[_0x382902(0x149)]['Value'],_0x51201f=>{const _0x9a8c2a=_0x382902;let _0x5e83cb=_0x51201f[_0x9a8c2a(0x416)](),_0x1a8454=_0x51201f['getDataFieldId'](),_0x331bfe=_0x51201f['getSourceName'](),_0x29f9c0=_0x51201f['getDisplayName'](),_0x4960db=_0x51201f[_0x9a8c2a(0xad)](),_0x21c469=_0x4146c6(_0x331bfe,_0x4960db);_0x4e32f2[_0x1a8454]&&_0x4e32f2[_0x1a8454]===_0x331bfe&&_0x21c469===_0x29f9c0&&(_0x17b6b8[_0x9a8c2a(0x521)](_0x5e83cb,_0x4146c6(_0x44072e[_0x9a8c2a(0x3d8)](_0x1a8454),_0x4960db)),_0x51201f[_0x9a8c2a(0x162)](_0x44072e[_0x9a8c2a(0x3d8)](_0x1a8454)));});},_0x1f78da=(_0x504713,_0x34fbc4,_0x4e44d7)=>{const _0x35631c=_0x55e150;_0x504713[_0x35631c(0x4a3)](_0x323699=>{const _0x4e81de=_0x35631c;let _0x2d186c=_0x323699[_0x4e81de(0x524)]();if(_0x34fbc4['hasField'](_0x2d186c))return;let _0xa420e5=_0x34fbc4['getDataFieldBySourceName'](_0x323699[_0x4e81de(0x165)]());if(!_0xa420e5){_0x504713[_0x4e81de(0x3f8)](_0x323699['getId']());return;}_0x504713['updateFieldSourceInfo'](_0x323699[_0x4e81de(0x416)](),_0xa420e5[_0x4e81de(0x25f)](),_0xa420e5[_0x4e81de(0x416)]());let {area:_0x48e1ea}=_0x504713[_0x4e81de(0x194)](_0x323699[_0x4e81de(0x416)]()),_0x253398=_0x48e1ea===_0x4078f7[_0x4e81de(0x149)]['Value']?_0x4e44d7(_0xa420e5['getName'](),_0x323699['getSubtotal']()):_0x323699[_0x4e81de(0x165)]();_0x323699['getDisplayName']()!==_0x253398&&_0x504713[_0x4e81de(0x521)](_0x323699[_0x4e81de(0x416)](),_0x253398);});},_0x79bfaf=(_0x397e61,_0x3388cc,_0xd1af00)=>{const _0x2d36e2=_0x55e150;var _0x2f8418,_0xcd052d;let {arrayFormulaCellData:_0x53a04c,unitData:_0x19f031}=_0x3388cc,{unitId:_0x97b69c,subUnitId:_0x292053}=_0xd1af00,_0x36a726=_0xd1af00[_0x2d36e2(0x322)],{startColumn:_0x5cdb51,endColumn:_0x29ef8c}=_0x36a726,_0x273d4e=_0x53a04c==null||(_0x2f8418=_0x53a04c[_0x97b69c])==null?void 0x0:_0x2f8418[_0x292053],_0x55ddd7=_0x19f031==null||(_0xcd052d=_0x19f031[_0x97b69c])==null?void 0x0:_0xcd052d[_0x292053],_0x14ae66=new Set(),_0x16d717=_0x29ef8c-_0x5cdb51+0x1,{dirtyRanges:_0x3833d4}=_0x397e61;if(_0x3833d4)for(let {range:_0x5ab014,sheetId:_0x47901c,unitId:_0x2d3990}of _0x3833d4){if(_0x47901c!==_0x292053||_0x97b69c!==_0x2d3990)continue;let _0x2077be=(0x0,_0x3f8283[_0x2d36e2(0x115)])(_0x5ab014,_0x36a726);if(_0x2077be){let {startColumn:_0x314d0d,endColumn:_0xd019a7}=_0x2077be;for(let _0x2110fa=_0x314d0d;_0x2110fa<=_0xd019a7;_0x2110fa++)_0x14ae66['add'](_0x2110fa);}}if(_0x14ae66['size']===_0x16d717||_0x14ae66[_0x2d36e2(0xef)]===_0x16d717)return Array[_0x2d36e2(0x91)](_0x14ae66);if(_0x55ddd7){let _0x3e4e68=_0x55ddd7[_0x2d36e2(0x94)](),_0x761bb6=Object[_0x2d36e2(0x1b3)](_0x3e4e68);for(let _0xaa4828 of _0x761bb6){let _0xfc1cce=_0x3e4e68[Number(_0xaa4828)];if(_0x14ae66[_0x2d36e2(0xef)]===_0x16d717)break;for(let _0x281b19 in _0xfc1cce){let _0x27117f=Number(_0x281b19);_0x27117f<_0x5cdb51||_0x27117f>_0x29ef8c||_0x14ae66[_0x2d36e2(0xe9)](_0x27117f);}}}if(_0x273d4e){let _0x191d3a=_0x273d4e[_0x2d36e2(0x94)](),_0x4a3d0d=Object[_0x2d36e2(0x1b3)](_0x191d3a);for(let _0x4f129b of _0x4a3d0d){let _0x40d395=_0x191d3a[Number(_0x4f129b)];if(_0x14ae66[_0x2d36e2(0xef)]===_0x16d717)break;for(let _0x271336 in _0x40d395){let _0x3a3937=Number(_0x271336);_0x3a3937<_0x5cdb51||_0x3a3937>_0x29ef8c||_0x14ae66[_0x2d36e2(0xe9)](_0x3a3937);}}}return Array[_0x2d36e2(0x91)](_0x14ae66);},_0x566842=_0x32809c=>{const _0x5950b1=_0x55e150;let _0x5013d7=new Set(),_0x178859=[];for(let _0x319431 of _0x32809c){let _0x492017=_0x319431[_0x5950b1(0x33e)]+','+_0x319431[_0x5950b1(0x315)]+','+_0x319431[_0x5950b1(0x2fc)]+','+_0x319431[_0x5950b1(0x221)];_0x5013d7[_0x5950b1(0x16c)](_0x492017)||(_0x5013d7['add'](_0x492017),_0x178859[_0x5950b1(0xc7)](_0x319431));}return _0x178859;},_0x157644=class extends _0x3f8283[_0x55e150(0xc4)]{constructor(_0x22eb36,_0x2440bb,_0x707f87,_0x5014e4,_0x467e8a,_0x10b2ab,_0x24affa,_0x4fb279){const _0x2fa57c=_0x55e150;super(),this[_0x2fa57c(0xf3)]=_0x22eb36,this[_0x2fa57c(0x404)]=_0x2440bb,this[_0x2fa57c(0x466)]=_0x707f87,this[_0x2fa57c(0x1be)]=_0x5014e4,this[_0x2fa57c(0x1f7)]=_0x467e8a,this[_0x2fa57c(0x42e)]=_0x10b2ab,this['_configService']=_0x24affa,this['_sheetsPivotCacheService']=_0x4fb279,_0x418dd6(this,'_globalSubject',new _0x282fb4[(_0x2fa57c(0x511))](!0x0)),_0x418dd6(this,_0x2fa57c(0x48b),_0x321b94=>{const _0x43152f=_0x2fa57c;this[_0x43152f(0x496)]['next'](!0x1);}),_0x418dd6(this,_0x2fa57c(0x8e),_0x46ede5=>{const _0x530c9e=_0x2fa57c;this[_0x530c9e(0x496)][_0x530c9e(0x21c)](!0x0);}),this[_0x2fa57c(0x11f)](),this[_0x2fa57c(0x387)](),this[_0x2fa57c(0x213)](this[_0x2fa57c(0x466)][_0x2fa57c(0x44c)](_0x45ec1f=>{const _0x155352=_0x2fa57c;if(_0x45ec1f['id']!==_0x4976f0['id'])return;let _0x720c4=_0x45ec1f['params'],_0x9f7fdc;try{if(!this[_0x155352(0xf3)][_0x155352(0x9a)](_0x720c4))return;}catch{_0x9f7fdc=_0x155352(0x4fd);}return this['_commandService'][_0x155352(0x1f9)](_0x39e4d6['id'],{..._0x720c4,'error':_0x9f7fdc},{'onlyLocal':!0x0});}));}[_0x55e150(0x2b8)](){const _0x52ebd2=_0x55e150;var _0x29774d;return((_0x29774d=this[_0x52ebd2(0x2f4)][_0x52ebd2(0x23f)](_0x52ebd2(0x422)))==null?void 0x0:_0x29774d[_0x52ebd2(0xdd)])??!0x0;}[_0x55e150(0x2b4)](_0x2c104c){const _0x567e98=_0x55e150;let _0x5ab1b5=this[_0x567e98(0x42e)][_0x567e98(0x34e)](_0x2c104c,_0x3f8283[_0x567e98(0x2f9)][_0x567e98(0x198)]);_0x2a257d(_0x5ab1b5==null?void 0x0:_0x5ab1b5[_0x567e98(0x51d)]());}[_0x55e150(0x11f)](){const _0x223bf9=_0x55e150;this[_0x223bf9(0xd6)](),this['_subjectViewChange'](),this[_0x223bf9(0x2dc)](),this[_0x223bf9(0x4a2)]();}[_0x55e150(0x2f2)](){const _0x4129d7=_0x55e150;this['_globalComputingSrv'][_0x4129d7(0x145)](this[_0x4129d7(0x496)]),_0x4078f7[_0x4129d7(0x358)]['registerCallbackWithEvent'](_0x4078f7[_0x4129d7(0x344)][_0x4129d7(0x106)],this['_globalComputedStartHelpFunc']),_0x4078f7[_0x4129d7(0x358)][_0x4129d7(0x129)](_0x4078f7[_0x4129d7(0x344)][_0x4129d7(0x318)],this[_0x4129d7(0x8e)]);}['_initPivotDataGetListener'](){const _0x181f9e=_0x55e150;this[_0x181f9e(0x213)](this[_0x181f9e(0x466)][_0x181f9e(0x44c)](_0x1a70ac=>{const _0xc4b42=_0x181f9e;_0x1a70ac['id']===_0x4b3c60[_0xc4b42(0x293)]['id']&&this[_0xc4b42(0xf3)][_0xc4b42(0x42f)](_0x1a70ac[_0xc4b42(0x305)]);})),this[_0x181f9e(0x213)](this[_0x181f9e(0x466)]['onCommandExecuted'](_0x42dd16=>{const _0x4ec665=_0x181f9e;if(_0x42dd16['id']!==_0x4153d1['id'])return;let _0x4be22d=_0x42dd16['params'],{unitId:_0x352e38,subUnitId:_0x235af1,pivotTableId:_0x215a33}=_0x4be22d,_0x76850a=_0x4be22d[_0x4ec665(0x305)][_0x4ec665(0x230)],_0x56e6c5={},_0x4d906c;switch(_0x76850a){case _0x4ec665(0x38f):{let _0x48f80d=_0x4be22d[_0x4ec665(0x305)][_0x4ec665(0x38f)];if(!_0x48f80d)return;let {row:_0x4f09c0,col:_0x2994f2,cellData:_0x1b52c1,pivotItemRenderInfoCache:_0x1c9af9,tableFieldId:_0x52c18e}=_0x48f80d,_0x15a6fa=this[_0x4ec665(0xf3)][_0x4ec665(0x483)](_0x4be22d[_0x4ec665(0x173)]);if(!_0x15a6fa||!_0x1c9af9)return;if(_0x52c18e){let _0x5d6747=_0x15a6fa['getDataFieldByTableId'](_0x52c18e);if(!_0x5d6747)return;_0x56e6c5[_0x4ec665(0x38f)]=_0x10a33d(_0x15a6fa,_0x5d6747,_0x52c18e,_0x4be22d['pivotTableId']);}else{let _0x2238c0=_0x5eb235(_0x4f09c0,_0x2994f2,_0x1b52c1,_0x15a6fa,_0x1c9af9),_0x50516f=_0x2238c0==null?void 0x0:_0x2238c0['filterId'];if(!_0x50516f)return;let _0x207d80=_0x15a6fa[_0x4ec665(0x2d5)](_0x50516f);if(!_0x207d80)return;_0x56e6c5[_0x4ec665(0x38f)]=_0x10a33d(_0x15a6fa,_0x207d80,_0x50516f,_0x4be22d[_0x4ec665(0x173)]);}}break;case'panel':{let _0x21034d=_0x4be22d['params'][_0x4ec665(0xa4)];if(!_0x21034d)return;let {pivotTableId:_0x3e9c3f}=_0x21034d,_0x595ca2=this['_sheetsPivotDataSourceModel'][_0x4ec665(0x483)](_0x3e9c3f);if(!_0x595ca2)return;_0x56e6c5[_0x4ec665(0xa4)]=_0x575b2e(_0x595ca2,_0x3e9c3f,this[_0x4ec665(0xf3)][_0x4ec665(0x3a8)](_0x352e38,_0x235af1,_0x3e9c3f));}break;case _0x4ec665(0xeb):{let _0x44e1d5=this['_sheetsPivotDataSourceModel'][_0x4ec665(0x483)](_0x215a33),_0x1cb591=this['_sheetsPivotDataSourceModel'][_0x4ec665(0x286)](_0x352e38),_0x37f83f=_0x1cb591[_0x4ec665(0x517)](_0x215a33),_0x5f5d38=null,_0x2c9ae9=this[_0x4ec665(0xf3)]['getPivotTableConfig'](_0x352e38,_0x235af1,_0x215a33),_0x101640=_0x4be22d[_0x4ec665(0x305)][_0x4ec665(0xeb)];if(!_0x44e1d5||!_0x2c9ae9||!_0x101640)return!0x1;let {dataFieldId:_0x2149fc,fieldArea:_0x7311d,index:_0xe5d20f}=_0x101640;_0x44e1d5[_0x4ec665(0x40c)]();let _0x15976d=_0x44e1d5[_0x4ec665(0x26b)](_0x2149fc,_0x7311d,_0xe5d20f);if(_0x15976d&&_0x7311d===_0x4078f7[_0x4ec665(0x149)]['Value']){let _0x45deba=_0x15976d[_0x4ec665(0x416)](),_0x410327=_0x44e1d5[_0x4ec665(0x2d5)](_0x45deba);if(_0x410327){let _0x3430c4=_0x410327==null?void 0x0:_0x410327['getFieldDataType']();_0x44e1d5['setSubtotalType'](_0x15976d['getId'](),_0x3430c4===_0x4078f7[_0x4ec665(0x529)]['number']?_0x4078f7[_0x4ec665(0x385)][_0x4ec665(0xcc)]:_0x4078f7[_0x4ec665(0x385)][_0x4ec665(0x295)]);}let _0x5c0ce2=_0x44e1d5[_0x4ec665(0x223)](),_0x4dae02=_0x44e1d5[_0x4ec665(0x125)](),_0x15e0e7=_0x44e1d5['getFieldCountByArea'](_0x4078f7['PivotTableFiledAreaEnum'][_0x4ec665(0x423)]);if(_0x5c0ce2===-0x1&&_0x15e0e7>0x1){let _0xe7b878=_0x4dae02===_0x4078f7[_0x4ec665(0x366)][_0x4ec665(0x96)]?_0x4078f7[_0x4ec665(0x366)][_0x4ec665(0x142)]:_0x4dae02,_0x2d946c=_0xe7b878===_0x4078f7[_0x4ec665(0x366)][_0x4ec665(0x438)]?_0x4078f7['PivotTableFiledAreaEnum'][_0x4ec665(0x438)]:_0x4078f7['PivotTableFiledAreaEnum'][_0x4ec665(0x142)];_0x44e1d5[_0x4ec665(0x2c0)](_0xe7b878,_0x44e1d5[_0x4ec665(0x43f)](_0x2d946c));}}else{if(_0x15976d&&(_0x7311d===_0x4078f7[_0x4ec665(0x149)][_0x4ec665(0x438)]||_0x7311d===_0x4078f7[_0x4ec665(0x149)][_0x4ec665(0x142)])){let _0x423c23=_0x15976d[_0x4ec665(0x416)](),_0x14cb36=_0x44e1d5[_0x4ec665(0x2d5)](_0x423c23);if(_0x14cb36&&(_0x14cb36==null?void 0x0:_0x14cb36[_0x4ec665(0x3bf)]())===_0x4078f7[_0x4ec665(0x529)][_0x4ec665(0x40d)]){let _0x2c94d4=_0x14cb36[_0x4ec665(0x2ca)]();if(_0x2c94d4&&_0x44e1d5[_0x4ec665(0x451)](_0x15976d[_0x4ec665(0x416)](),_0x2c94d4),this[_0x4ec665(0x2b8)]()&&(0x0,_0x4078f7[_0x4ec665(0x1c5)])(_0x44e1d5[_0x4ec665(0x459)]())===_0x4078f7['PivotDateGroupingMode']['Legacy']&&!_0x37f83f[_0x4ec665(0x28a)]()[_0x4ec665(0xde)](_0x2febf9=>{const _0x1e1fe8=_0x4ec665;let _0x5ac326=_0x37f83f[_0x1e1fe8(0x53c)](_0x2febf9);return(0x0,_0x4078f7[_0x1e1fe8(0x485)])(_0x5ac326)?_0x5ac326[_0x1e1fe8(0x339)]()[_0x1e1fe8(0x244)]===_0x2149fc:!0x1;})){let _0x223e88=_0x1cb591[_0x4ec665(0x283)]();this['_setDateSystem'](_0x352e38);let _0x2d8e3f=_0x88faf5(_0x14cb36[_0x4ec665(0x253)],_0x14cb36[_0x4ec665(0x51a)]),_0x58f4a6=_0x14cb36[_0x4ec665(0x25f)]()+_0x4ec665(0xb8)+_0x6786b9(this[_0x4ec665(0x1f7)],_0x2d8e3f),_0x3c6a28=new _0x4078f7[(_0x4ec665(0x288))](_0x223e88,_0x58f4a6,(0x0,_0x4078f7[_0x4ec665(0x1f4)])(0x3),_0x14cb36[_0x4ec665(0x416)](),_0x2d8e3f);_0x1cb591[_0x4ec665(0x384)](_0x3c6a28),_0x37f83f[_0x4ec665(0x14c)](_0x223e88,_0x58f4a6),_0x44e1d5['addFieldWithSourceId'](_0x223e88,_0x7311d,(_0xe5d20f??0x0)+0x1),_0x5f5d38=_0x3c6a28;}}}}let _0x29820b=_0x44e1d5[_0x4ec665(0x360)](),_0x1ea0df=_0x44e1d5[_0x4ec665(0x1a2)]()[_0x4ec665(0x4b3)](),_0x45cbe6;if(_0x5f5d38){_0x45cbe6=_0x5f5d38[_0x4ec665(0x4b3)]();let _0x27f965=_0x5f5d38[_0x4ec665(0x416)]();_0x37f83f[_0x4ec665(0x130)](_0x27f965);let _0x290bcb=!0x0;for(let _0x41e735 in _0x1cb591[_0x4ec665(0x10d)])if(_0x1cb591['collections'][_0x41e735]['getFieldIds']()[_0x4ec665(0xf1)](_0x27f965)){_0x290bcb=!0x1;break;}_0x290bcb&&_0x1cb591[_0x4ec665(0x4fa)](_0x27f965);}_0x56e6c5[_0x4ec665(0xeb)]={'view':_0x1ea0df,'changesets':_0x44e1d5['endCollectChangeset'](),'isEmpty':_0x29820b,'pivotTableConfig':_0x2c9ae9,'shouldBeAddedGroupJSON':_0x45cbe6};}break;case _0x4ec665(0x40e):{let _0xc79751=_0x4be22d[_0x4ec665(0x305)][_0x4ec665(0x40e)];if(!_0xc79751)return;let _0x5ac678=_0xc79751[_0x4ec665(0x1f5)],_0x376fb2=_0xc79751[_0x4ec665(0x173)],{collection:_0x47f870,updateDataFieldList:_0x4108c7}=this['_sheetsPivotDataSourceModel'][_0x4ec665(0x512)]({'unitId':_0x5ac678[_0x4ec665(0xa0)],'sheetName':_0x5ac678[_0x4ec665(0x28e)],'subUnitId':_0x5ac678['subUnitId'],'range':_0x5ac678[_0x4ec665(0x322)]});this['_sheetsPivotDataSourceModel'][_0x4ec665(0x281)](_0x47f870,_0x4108c7,_0x5ac678);let _0x48af28=new _0x4078f7['PivotTable'](_0x47f870,void 0x0,_0x376fb2);if(_0xc79751[_0x4ec665(0x4ac)]){_0x48af28[_0x4ec665(0x3b3)](_0xc79751['fieldsConfig']);let _0x4ffca8=this[_0x4ec665(0xf3)][_0x4ec665(0x286)](_0x5ac678[_0x4ec665(0xa0)])[_0x4ec665(0x120)]()||_0x4078f7['getAutoDisplayName'];_0x1f78da(_0x48af28,_0x47f870,_0x4ffca8);}let _0x532c64=_0x48af28[_0x4ec665(0x1a2)](),_0xe5b41a=_0x48af28[_0x4ec665(0x4b3)](),_0x55a90=_0x47f870[_0x4ec665(0x4b3)]();_0x56e6c5[_0x4ec665(0x40e)]={'pivotCacheId':this[_0x4ec665(0x103)][_0x4ec665(0x41d)](_0x5ac678,this['_sheetsPivotDataSourceModel']['getDataFieldManager'](_0x5ac678[_0x4ec665(0xa0)]))??'pivot-cache-'+(0x0,_0x3f8283[_0x4ec665(0x412)])(),'view':_0x532c64,'fieldsConfig':_0xe5b41a,'collectionConfig':_0x55a90,'isEmpty':_0x48af28[_0x4ec665(0x360)]()};}break;case _0x4ec665(0x2b0):{let _0x462df7=this[_0x4ec665(0xf3)][_0x4ec665(0x483)](_0x215a33),_0x3c33e4=this[_0x4ec665(0xf3)][_0x4ec665(0x286)](_0x352e38),_0x420efd=_0x3c33e4['getCollection'](_0x215a33),_0x4a75c5=this[_0x4ec665(0xf3)][_0x4ec665(0x3a8)](_0x352e38,_0x235af1,_0x215a33),_0x18e97b=_0x4be22d['params'][_0x4ec665(0x2b0)];if(!_0x462df7||!_0x4a75c5||!_0x18e97b)return!0x1;let {tableFieldId:_0x4d50d,dateType:_0xcec732}=_0x18e97b,{area:_0x4f8087,index:_0x3d308a}=_0x462df7[_0x4ec665(0x194)](_0x4d50d);if(_0x4f8087!==_0x4078f7[_0x4ec665(0x149)][_0x4ec665(0x438)]&&_0x4f8087!==_0x4078f7[_0x4ec665(0x149)][_0x4ec665(0x142)])return!0x1;let _0x244321=_0x462df7[_0x4ec665(0x2d5)](_0x4d50d);if(!_0x244321)return!0x1;let _0x2fd7c=_0x462df7['toJSON'](),_0xa071dd=_0x4f8087===_0x4078f7['PivotTableFiledAreaEnum']['Row']?_0x2fd7c[_0x4ec665(0x477)]:_0x2fd7c[_0x4ec665(0x4bf)];if((0x0,_0x4078f7[_0x4ec665(0x485)])(_0x244321)){if(_0x244321['getDateType']()===_0xcec732)return!0x1;let _0x2d0bae=_0x462df7[_0x4ec665(0x2c7)](_0x244321[_0x4ec665(0x10e)]()),_0x344c76=_0x462df7[_0x4ec665(0x44f)](_0x4d50d);if(!_0x2d0bae||!_0x344c76||_0xa071dd[_0x4ec665(0xde)](_0x5ee175=>{const _0x2fb94c=_0x4ec665;if(_0x5ee175===_0x4d50d)return!0x1;let _0x12f71d=_0x2fd7c[_0x2fb94c(0x3d4)][_0x5ee175],_0x5766d3=_0x12f71d?_0x420efd[_0x2fb94c(0x53c)](_0x12f71d[_0x2fb94c(0x19d)]):void 0x0;return _0x5766d3?(0x0,_0x4078f7[_0x2fb94c(0x485)])(_0x5766d3)&&_0x5766d3['getOriginFieldId']()===_0x244321[_0x2fb94c(0x10e)]()&&_0x5766d3[_0x2fb94c(0x3d0)]()===_0xcec732:!0x1;}))return!0x1;let _0x484949=_0x244321[_0x4ec665(0x3d0)](),_0x373ed8={..._0x420efd[_0x4ec665(0x25c)]},_0x3cd4c0=_0x2d0bae[_0x4ec665(0x25f)]()+'\x20-\x20'+_0x6786b9(this[_0x4ec665(0x1f7)],_0xcec732);_0x462df7[_0x4ec665(0x40c)](),_0x420efd['setDisplayName'](_0x244321[_0x4ec665(0x416)](),_0x3cd4c0),_0x462df7[_0x4ec665(0x521)](_0x344c76[_0x4ec665(0x416)](),_0x3cd4c0),_0x244321[_0x4ec665(0x1a9)](_0xcec732),this['_setDateSystem'](_0x352e38),_0x244321[_0x4ec665(0x513)](_0x2d0bae),_0x462df7['setDirty'](!0x0);let _0x9fb97f=_0x462df7['isEmpty'](),_0x43038e=_0x462df7['query']()['toJSON']();_0x462df7[_0x4ec665(0x25a)](),_0x244321['setDateType'](_0x484949),this[_0x4ec665(0x2b4)](_0x352e38),_0x244321['refreshGroupField'](_0x2d0bae),_0x420efd[_0x4ec665(0x25c)]=_0x373ed8,_0x56e6c5[_0x4ec665(0x2b0)]={'view':_0x43038e,'changesets':[],'isEmpty':_0x9fb97f,'pivotTableConfig':_0x4a75c5};break;}if(_0x244321['getFieldDataType']()!==_0x4078f7[_0x4ec665(0x529)][_0x4ec665(0x40d)])return!0x1;let _0x4f0828=_0xa071dd[_0x4ec665(0x36c)](_0x4d50d),_0x302fb5=_0x4f0828===-0x1?_0x3d308a:_0x4f0828;if(_0xa071dd[_0x4ec665(0xde)]((_0x5e4301,_0x40205d)=>{const _0x3a492d=_0x4ec665;let _0x343047=_0x2fd7c[_0x3a492d(0x3d4)][_0x5e4301];if(!_0x343047)return!0x1;let _0x5cfe36=_0x420efd[_0x3a492d(0x53c)](_0x343047['dataFieldId']);if((0x0,_0x4078f7[_0x3a492d(0x485)])(_0x5cfe36)&&_0x5cfe36['getOriginFieldId']()===_0x244321['getId']()){if(_0x5cfe36[_0x3a492d(0x3d0)]()===_0xcec732)return!0x0;_0x4f0828!==-0x1&&_0x40205d<_0x4f0828&&(_0x302fb5=_0x40205d+0x1);}return!0x1;}))return!0x1;_0x462df7[_0x4ec665(0x40c)]();let _0x61ce9c=_0x3c33e4[_0x4ec665(0x283)](),_0x11206a=_0x244321['getName']()+_0x4ec665(0xb8)+_0x6786b9(this[_0x4ec665(0x1f7)],_0xcec732),_0x466592=new _0x4078f7[(_0x4ec665(0x288))](_0x61ce9c,_0x11206a,(0x0,_0x4078f7[_0x4ec665(0x1f4)])(0x3),_0x244321[_0x4ec665(0x416)](),_0xcec732);this['_setDateSystem'](_0x352e38),_0x3c33e4[_0x4ec665(0x384)](_0x466592),_0x420efd[_0x4ec665(0x14c)](_0x61ce9c,_0x11206a),_0x466592[_0x4ec665(0x513)](_0x244321),_0x462df7['addFieldWithSourceId'](_0x61ce9c,_0x4f8087,_0x302fb5),_0x462df7[_0x4ec665(0x1ed)](_0x4d50d,!0x0);let _0x2d1ada=_0x462df7[_0x4ec665(0x360)](),_0x1be067=_0x462df7[_0x4ec665(0x1a2)]()[_0x4ec665(0x4b3)](),_0x30e7c0=_0x466592[_0x4ec665(0x4b3)]();_0x420efd[_0x4ec665(0x130)](_0x61ce9c);let _0x32175e=!0x0;for(let _0x235784 in _0x3c33e4[_0x4ec665(0x10d)])if(_0x3c33e4[_0x4ec665(0x10d)][_0x235784][_0x4ec665(0x28a)]()[_0x4ec665(0xf1)](_0x61ce9c)){_0x32175e=!0x1;break;}_0x32175e&&_0x3c33e4['deleteDataField'](_0x61ce9c),_0x56e6c5[_0x4ec665(0x2b0)]={'view':_0x1be067,'changesets':_0x462df7[_0x4ec665(0x25a)](),'isEmpty':_0x2d1ada,'pivotTableConfig':_0x4a75c5,'shouldBeAddedGroupJSON':_0x30e7c0};}break;case'setPivotExcelDateGroup':{let _0x371572=_0x4be22d[_0x4ec665(0x305)]['setPivotExcelDateGroup'],_0x104e58=this[_0x4ec665(0xf3)][_0x4ec665(0x483)](_0x215a33),_0x536ddc=this[_0x4ec665(0xf3)]['getPivotTableConfig'](_0x352e38,_0x235af1,_0x215a33);if(!_0x371572||!_0x104e58||!_0x536ddc||(0x0,_0x4078f7['getPivotDateGroupingMode'])(_0x104e58[_0x4ec665(0x459)]())!==_0x4078f7[_0x4ec665(0x4af)][_0x4ec665(0x4c3)])break;let {area:_0x5f1892}=_0x104e58[_0x4ec665(0x194)](_0x371572[_0x4ec665(0x163)]);if(_0x5f1892!==_0x4078f7[_0x4ec665(0x149)][_0x4ec665(0x438)]&&_0x5f1892!==_0x4078f7[_0x4ec665(0x149)]['Column'])break;let _0x220609=this[_0x4ec665(0xf3)][_0x4ec665(0x286)](_0x352e38),_0x43dcec=_0x220609['getCollection'](_0x215a33),_0x47b553=_0x104e58[_0x4ec665(0x2d5)](_0x371572['tableFieldId']),_0x40542b=_0x47b553&&(0x0,_0x4078f7[_0x4ec665(0x485)])(_0x47b553)?_0x47b553[_0x4ec665(0x10e)]():_0x47b553==null?void 0x0:_0x47b553[_0x4ec665(0x416)](),_0x410e12=_0x40542b?_0x43dcec['getFieldById'](_0x40542b):void 0x0;if(!_0x410e12||_0x410e12[_0x4ec665(0x3bf)]()!==_0x4078f7[_0x4ec665(0x529)]['date'])break;this[_0x4ec665(0x2b4)](_0x352e38);let _0x30ffa6=(0x0,_0x4078f7[_0x4ec665(0x2bc)])(_0x371572[_0x4ec665(0xbe)],_0x410e12);if(!_0x30ffa6)break;let {units:_0x4c3732,..._0x1791d6}=_0x30ffa6,_0xad3730={[_0x4078f7[_0x4ec665(0x2a8)][_0x4ec665(0x1a7)]]:_0x4078f7[_0x4ec665(0x45a)]['Year'],[_0x4078f7[_0x4ec665(0x2a8)][_0x4ec665(0x2ec)]]:_0x4078f7[_0x4ec665(0x45a)][_0x4ec665(0x2ec)],[_0x4078f7[_0x4ec665(0x2a8)][_0x4ec665(0x494)]]:_0x4078f7[_0x4ec665(0x45a)][_0x4ec665(0x494)],[_0x4078f7['PivotExcelDateGroupUnit'][_0x4ec665(0x365)]]:_0x4078f7['PivotDateGroupFieldDateTypeEnum'][_0x4ec665(0x3f3)],[_0x4078f7[_0x4ec665(0x2a8)][_0x4ec665(0x10c)]]:_0x4078f7[_0x4ec665(0x45a)]['Hour'],[_0x4078f7[_0x4ec665(0x2a8)][_0x4ec665(0x134)]]:_0x4078f7[_0x4ec665(0x45a)][_0x4ec665(0x134)],[_0x4078f7[_0x4ec665(0x2a8)][_0x4ec665(0x18a)]]:_0x4078f7[_0x4ec665(0x45a)]['Minute']},_0x1b5d5b=_0x3892b3(_0x104e58,_0x43dcec,_0x220609,_0x410e12,_0x5f1892,_0x4c3732[_0x4ec665(0x1e6)](_0x5b9b1c=>new _0x4078f7[(_0x4ec665(0x288))](_0x220609['createDataFieldId'](),_0x410e12['getName']()+'\x20-\x20'+_0x6786b9(this[_0x4ec665(0x1f7)],_0x5b9b1c),(0x0,_0x4078f7[_0x4ec665(0x1f4)])(0x3),_0x410e12[_0x4ec665(0x416)](),_0xad3730[_0x5b9b1c],{..._0x1791d6,'unit':_0x5b9b1c,..._0x5b9b1c===_0x4078f7[_0x4ec665(0x2a8)][_0x4ec665(0x365)]?{'groupByDate':_0x4c3732[_0x4ec665(0x337)]===0x1}:{}})),_0x4078f7['isDateGroupField']);_0x1b5d5b&&(_0x56e6c5[_0x4ec665(0xfb)]={..._0x1b5d5b,'pivotTableConfig':_0x536ddc});}break;case'numberGroupDefaults':{var _0x3cfa10;let _0x11fc54=_0x4be22d[_0x4ec665(0x305)][_0x4ec665(0x249)],_0x541286=this[_0x4ec665(0xf3)][_0x4ec665(0x483)](_0x215a33);if(!_0x11fc54||!_0x541286)break;let _0x4b4479=_0x541286['getDataFieldByTableId'](_0x11fc54['tableFieldId']),_0x409bf2=_0x4b4479 instanceof _0x4078f7[_0x4ec665(0x415)]?_0x4b4479[_0x4ec665(0x10e)]():_0x4b4479==null?void 0x0:_0x4b4479[_0x4ec665(0x416)](),_0x311276=_0x409bf2?(_0x3cfa10=this[_0x4ec665(0xf3)][_0x4ec665(0x517)](_0x352e38,_0x215a33))==null?void 0x0:_0x3cfa10[_0x4ec665(0x53c)](_0x409bf2):void 0x0;(_0x311276==null?void 0x0:_0x311276['getDataFieldType']())===_0x4078f7[_0x4ec665(0x52e)][_0x4ec665(0x297)]&&_0x311276[_0x4ec665(0x3bf)]()===_0x4078f7[_0x4ec665(0x529)][_0x4ec665(0x356)]&&(_0x56e6c5[_0x4ec665(0x249)]=(0x0,_0x4078f7[_0x4ec665(0x3a6)])(_0x311276));}break;case _0x4ec665(0x3e9):{let _0xa821c3=_0x4be22d[_0x4ec665(0x305)]['setPivotNumberGroup'],_0x3d9260=this[_0x4ec665(0xf3)][_0x4ec665(0x483)](_0x215a33),_0x189ae4=this[_0x4ec665(0xf3)][_0x4ec665(0x3a8)](_0x352e38,_0x235af1,_0x215a33);if(!_0xa821c3||!_0x3d9260||!_0x189ae4)break;let {area:_0x312daa}=_0x3d9260[_0x4ec665(0x194)](_0xa821c3[_0x4ec665(0x163)]);if(_0x312daa!==_0x4078f7[_0x4ec665(0x149)][_0x4ec665(0x438)]&&_0x312daa!==_0x4078f7['PivotTableFiledAreaEnum'][_0x4ec665(0x142)])break;let _0x55b319=this[_0x4ec665(0xf3)]['getDataFieldManager'](_0x352e38),_0x5c83a9=_0x55b319[_0x4ec665(0x517)](_0x215a33),_0x5aafe6=_0x3d9260[_0x4ec665(0x2d5)](_0xa821c3['tableFieldId']),_0x1f546d=_0x5aafe6 instanceof _0x4078f7[_0x4ec665(0x415)]?_0x5aafe6['getOriginFieldId']():_0x5aafe6==null?void 0x0:_0x5aafe6[_0x4ec665(0x416)](),_0x14dbb1=_0x1f546d?_0x5c83a9[_0x4ec665(0x53c)](_0x1f546d):void 0x0;if(!_0x14dbb1||_0x14dbb1[_0x4ec665(0x3bf)]()!==_0x4078f7[_0x4ec665(0x529)][_0x4ec665(0x356)])break;let _0x501ed6=(0x0,_0x4078f7[_0x4ec665(0x34d)])(_0xa821c3[_0x4ec665(0xbe)],_0x14dbb1);if(!_0x501ed6)break;let _0x3a3ae1=_0x3892b3(_0x3d9260,_0x5c83a9,_0x55b319,_0x14dbb1,_0x312daa,[new _0x4078f7[(_0x4ec665(0x415))](_0x55b319['createDataFieldId'](),_0x14dbb1[_0x4ec665(0x25f)](),(0x0,_0x4078f7[_0x4ec665(0x1f4)])(0x3),_0x14dbb1['getId'](),_0x501ed6)],_0x4d2916=>_0x4d2916 instanceof _0x4078f7[_0x4ec665(0x415)]);_0x3a3ae1&&(_0x56e6c5[_0x4ec665(0x3e9)]={..._0x3a3ae1,'pivotTableConfig':_0x189ae4});}break;case _0x4ec665(0x1ca):{var _0x1fdd3;let _0x379e58=_0x4be22d['params'][_0x4ec665(0x1ca)],_0x452bf2=this[_0x4ec665(0xf3)][_0x4ec665(0x3a8)](_0x352e38,_0x235af1,_0x215a33)&&_0x379e58&&((_0x1fdd3=this[_0x4ec665(0xf3)]['getCollection'](_0x352e38,_0x215a33))==null?void 0x0:_0x1fdd3[_0x4ec665(0x53c)](_0x379e58[_0x4ec665(0x3b5)])),_0x3abc44={'members':[],'error':_0x4ec665(0x503)};if(_0x56e6c5[_0x4ec665(0x1ca)]=_0x3abc44,!_0x452bf2||_0x452bf2[_0x4ec665(0x4f0)]()!==_0x4078f7[_0x4ec665(0x52e)][_0x4ec665(0x297)]||!_0x379e58||!Array[_0x4ec665(0x10a)](_0x379e58[_0x4ec665(0x495)])||!_0x379e58['paths']['length']||_0x379e58[_0x4ec665(0x495)][_0x4ec665(0x337)]>0x200)break;let _0x48ef59=new Map(),_0x1745c1=0x0;try{for(let {path:_0x72787d,memberKey:_0x57d62c,tupleKey:_0x4fa078}of _0x379e58['paths']){if(typeof _0x72787d!=_0x4ec665(0x45c)||_0x57d62c!==void 0x0&&typeof _0x57d62c!='string'||_0x4fa078!==void 0x0&&typeof _0x4fa078!='string')break;let _0x5684f3,_0x4b88ba,_0x5ba6ea=_0x4fa078===void 0x0?_0x452bf2[_0x4ec665(0x403)](_0x72787d):_0x452bf2['getTupleIndexesByKey'](_0x4fa078);for(let _0x17988e of _0x5ba6ea){let _0x424a03=(0x0,_0x4078f7[_0x4ec665(0xfa)])(_0x452bf2[_0x4ec665(0x139)][_0x17988e]),_0x5c3064=_0x424a03[_0x4ec665(0x230)]===_0x3f8283[_0x4ec665(0x271)]['Blank']?_0x4ec665(0x3d9):JSON['stringify']([_0x424a03[_0x4ec665(0x230)],_0x424a03[_0x4ec665(0xb5)]]);if(_0x57d62c===void 0x0||_0x5c3064===_0x57d62c){if(_0x4b88ba!==void 0x0&&_0x4b88ba!==_0x5c3064){_0x3abc44[_0x4ec665(0x347)]=_0x4ec665(0x46a);break;}_0x5684f3=_0x424a03,_0x4b88ba=_0x5c3064;}}if(!_0x5684f3||!_0x4b88ba||_0x3abc44[_0x4ec665(0x347)]===_0x4ec665(0x46a))break;_0x48ef59['set'](_0x4b88ba,_0x5684f3),_0x1745c1++;}_0x1745c1===_0x379e58['paths'][_0x4ec665(0x337)]&&(_0x3abc44['members']=Array[_0x4ec665(0x91)](_0x48ef59[_0x4ec665(0x20b)]()),delete _0x3abc44[_0x4ec665(0x347)]);}catch{}}break;case _0x4ec665(0xaf):{let _0x5456a0=_0x4be22d['params'][_0x4ec665(0xaf)],_0x584155=this[_0x4ec665(0xf3)][_0x4ec665(0x483)](_0x215a33),_0x2e3738=this[_0x4ec665(0xf3)][_0x4ec665(0x3a8)](_0x352e38,_0x235af1,_0x215a33);if(!_0x5456a0||!Array[_0x4ec665(0x10a)](_0x5456a0[_0x4ec665(0x3a0)])||!_0x584155||!_0x2e3738)break;let _0xe90cc5=this['_sheetsPivotDataSourceModel'][_0x4ec665(0x286)](_0x352e38),_0x118bef=_0xe90cc5[_0x4ec665(0x517)](_0x215a33),_0x3bc3a1=_0x118bef[_0x4ec665(0x53c)](_0x5456a0['sourceFieldId']);if(!_0x3bc3a1||_0x3bc3a1[_0x4ec665(0x4f0)]()!==_0x4078f7[_0x4ec665(0x52e)][_0x4ec665(0x297)])break;let _0xe3ee45=_0x584155[_0x4ec665(0x4b3)](),_0x10987a=_0x49765a=>{const _0x5ca512=_0x4ec665;var _0x5d5696;let _0x382539=(_0x5d5696=_0xe3ee45['dimension'][_0x49765a])==null?void 0x0:_0x5d5696['dataFieldId'],_0x5345cd=_0x382539?_0x118bef['getFieldById'](_0x382539):void 0x0;return _0x382539===_0x3bc3a1[_0x5ca512(0x416)]()||_0x5345cd instanceof _0x4078f7['ManualGroupField']&&_0x5345cd[_0x5ca512(0x10e)]()===_0x3bc3a1['getId']();},_0x930289=_0xe3ee45[_0x4ec665(0x477)]['some'](_0x10987a);if(_0x930289===_0xe3ee45[_0x4ec665(0x4bf)][_0x4ec665(0xde)](_0x10987a))break;let _0x2d7c17=_0x930289?_0x4078f7[_0x4ec665(0x149)][_0x4ec665(0x438)]:_0x4078f7[_0x4ec665(0x149)]['Column'],_0x165caa=(_0x930289?_0xe3ee45['rowFields']:_0xe3ee45[_0x4ec665(0x4bf)])[_0x4ec665(0x1e6)](_0xdbf6f6=>{const _0x303b4e=_0x4ec665;var _0x583bd2;let _0x3896a7=(_0x583bd2=_0xe3ee45[_0x303b4e(0x3d4)][_0xdbf6f6])==null?void 0x0:_0x583bd2[_0x303b4e(0x19d)],_0x2a0d4a=_0x3896a7?_0x118bef[_0x303b4e(0x53c)](_0x3896a7):void 0x0;return _0x2a0d4a instanceof _0x4078f7['ManualGroupField']&&_0x2a0d4a[_0x303b4e(0x10e)]()===_0x3bc3a1[_0x303b4e(0x416)]()?_0x2a0d4a:void 0x0;})[_0x4ec665(0x2da)](_0x4ed504=>_0x4ed504!==void 0x0);if(!_0x5456a0['groups'][_0x4ec665(0x337)]&&!_0x165caa)break;let _0x34b452=_0x5456a0[_0x4ec665(0x3a0)][_0x4ec665(0x337)]?(0x0,_0x4078f7['normalizeManualGrouping'])({'groups':_0x5456a0[_0x4ec665(0x3a0)]},_0x3bc3a1,_0x165caa==null?void 0x0:_0x165caa['getGrouping']()):void 0x0;if(_0x5456a0[_0x4ec665(0x3a0)][_0x4ec665(0x337)]&&!_0x34b452)break;let _0x1e6f92=_0x3892b3(_0x584155,_0x118bef,_0xe90cc5,_0x3bc3a1,_0x2d7c17,_0x34b452?[new _0x4078f7[(_0x4ec665(0x21f))](_0xe90cc5[_0x4ec665(0x283)](),_0x3bc3a1[_0x4ec665(0x25f)](),(0x0,_0x4078f7[_0x4ec665(0x1f4)])(0x3),_0x3bc3a1[_0x4ec665(0x416)](),_0x34b452)]:[],_0x51652f=>_0x51652f instanceof _0x4078f7[_0x4ec665(0x21f)]);_0x1e6f92&&(_0x56e6c5['setPivotManualGroups']={..._0x1e6f92,'pivotTableConfig':_0x2e3738});}break;case _0x4ec665(0x258):{let _0x9d06d7=_0x4be22d[_0x4ec665(0x305)]['movePivotField'];if(!_0x9d06d7)return;let {fieldId:_0x193215,area:_0x5ab349,index:_0x3f245f}=_0x9d06d7,_0x598cdc=this[_0x4ec665(0xf3)]['getPivotTableConfig'](_0x352e38,_0x235af1,_0x215a33);if(!_0x598cdc)return;let _0x22447b=this[_0x4ec665(0xf3)][_0x4ec665(0x483)](_0x215a33);if(!_0x22447b)return;_0x22447b['startCollectChangeset']();let {area:_0x167d74,index:_0x358e3b}=_0x22447b[_0x4ec665(0x194)](_0x193215);if(_0x22447b['updateFieldPosition'](_0x193215,_0x5ab349,_0x3f245f),_0x5ab349===_0x4078f7[_0x4ec665(0x149)][_0x4ec665(0x423)]&&_0x22447b[_0x4ec665(0x44f)](_0x193215)[_0x4ec665(0xad)]()===void 0x0){let _0x115299=_0x22447b['getTableFieldById'](_0x193215);if(_0x115299&&_0x115299[_0x4ec665(0xad)]()===void 0x0){let _0x397d91=_0x22447b[_0x4ec665(0x2d5)](_0x193215);if(_0x397d91){let _0x18a5b1=_0x397d91==null?void 0x0:_0x397d91['getFieldDataType']();_0x22447b[_0x4ec665(0x270)](_0x193215,_0x18a5b1===_0x4078f7[_0x4ec665(0x529)][_0x4ec665(0x356)]?_0x4078f7[_0x4ec665(0x385)][_0x4ec665(0xcc)]:_0x4078f7['PivotSubtotalTypeEnum'][_0x4ec665(0x295)]);}}}let _0x745651=_0x22447b[_0x4ec665(0x125)](),_0x272d3d=_0x22447b[_0x4ec665(0x223)](),_0x2a973f=_0x22447b[_0x4ec665(0x43f)](_0x4078f7[_0x4ec665(0x149)]['Value'])>0x1;if(_0x2a973f&&_0x167d74===_0x5ab349&&(_0x5ab349===_0x4078f7[_0x4ec665(0x149)][_0x4ec665(0x438)]&&_0x745651===_0x4078f7[_0x4ec665(0x366)][_0x4ec665(0x438)]||_0x5ab349===_0x4078f7[_0x4ec665(0x149)][_0x4ec665(0x142)]&&_0x745651===_0x4078f7[_0x4ec665(0x366)][_0x4ec665(0x142)])){let _0x2dc424=_0x272d3d;_0x358e3b<=_0x272d3d&&_0x2dc424--,_0x3f245f<=_0x272d3d&&_0x2dc424++,_0x22447b[_0x4ec665(0x2c0)](_0x745651,_0x2dc424);}else _0x2a973f&&(_0x167d74===_0x4078f7[_0x4ec665(0x149)][_0x4ec665(0x438)]&&_0x745651===_0x4078f7[_0x4ec665(0x366)][_0x4ec665(0x438)]||_0x167d74===_0x4078f7[_0x4ec665(0x149)][_0x4ec665(0x142)]&&_0x745651===_0x4078f7[_0x4ec665(0x366)][_0x4ec665(0x142)])&&_0x272d3d>=_0x358e3b&&_0x22447b[_0x4ec665(0x2c0)](_0x745651,_0x272d3d-0x1),_0x2a973f&&(_0x5ab349===_0x4078f7[_0x4ec665(0x149)]['Row']&&_0x745651===_0x4078f7['PivotTableValuePositionEnum'][_0x4ec665(0x438)]||_0x5ab349===_0x4078f7['PivotTableFiledAreaEnum'][_0x4ec665(0x142)]&&_0x745651===_0x4078f7[_0x4ec665(0x366)][_0x4ec665(0x142)])&&_0x272d3d>=_0x3f245f&&_0x22447b[_0x4ec665(0x2c0)](_0x745651,_0x272d3d+0x1);let _0xb48ae6=_0x22447b['query'](),_0x3f0eac=_0x22447b[_0x4ec665(0x360)](),_0xe4bd62=_0x22447b[_0x4ec665(0x25a)]();_0x56e6c5[_0x4ec665(0x258)]={'view':_0xb48ae6['toJSON'](),'changesets':_0xe4bd62,'isEmpty':_0x3f0eac,'pivotTableConfig':_0x598cdc};}break;case _0x4ec665(0xc6):{let _0x12297b=_0x4be22d[_0x4ec665(0x305)][_0x4ec665(0xc6)];if(!_0x12297b)return;let _0x42157a=_0x12297b[_0x4ec665(0x1f3)],_0x434b8b=this[_0x4ec665(0xf3)][_0x4ec665(0x3a8)](_0x352e38,_0x235af1,_0x215a33);if(!_0x434b8b)return!0x1;let _0x5286d8=this[_0x4ec665(0xf3)][_0x4ec665(0x483)](_0x215a33);if(!_0x5286d8)return!0x1;_0x5286d8[_0x4ec665(0x40c)]();for(let _0x30816 of _0x42157a){var _0x1eeb7b,_0x368ade;let {area:_0xa092f2}=_0x5286d8[_0x4ec665(0x194)](_0x30816);_0xa092f2===_0x4078f7[_0x4ec665(0x149)][_0x4ec665(0x423)]&&_0x5286d8[_0x4ec665(0x528)](_0x30816),(_0xa092f2===_0x4078f7[_0x4ec665(0x149)][_0x4ec665(0x438)]||_0xa092f2===_0x4078f7[_0x4ec665(0x149)][_0x4ec665(0x142)])&&_0x5286d8[_0x4ec665(0x229)](_0x30816);let _0x17de54=_0x5286d8[_0x4ec665(0x4b3)]()[_0x4ec665(0x3d4)][_0x30816];_0xa092f2!==_0x4078f7[_0x4ec665(0x149)]['Hidden']&&(_0x1eeb7b=_0x12297b[_0x4ec665(0x49c)])!=null&&_0x1eeb7b[_0x4ec665(0xf1)](_0x30816)&&(_0x17de54==null||(_0x368ade=_0x17de54[_0x4ec665(0x93)])==null?void 0x0:_0x368ade[_0x4ec665(0x230)])===_0x4078f7[_0x4ec665(0x3ed)][_0x4ec665(0x3a5)]?_0x5286d8[_0x4ec665(0xce)](_0x30816,_0x4078f7[_0x4ec665(0x149)][_0x4ec665(0x2a0)],0x0):_0x5286d8['removeField'](_0x30816);}let _0x52f015=_0x5286d8[_0x4ec665(0x360)](),_0x17fe94=_0x5286d8[_0x4ec665(0x1a2)]()['toJSON']();_0x56e6c5[_0x4ec665(0xc6)]={'changesets':_0x5286d8[_0x4ec665(0x25a)](),'pivotTableConfig':_0x434b8b,'isEmpty':_0x52f015,'view':_0x17fe94};}break;case'setPivotFilter':{let _0x217c01=_0x4be22d[_0x4ec665(0x305)][_0x4ec665(0x255)];if(!_0x217c01)return;let {tableFieldId:_0x512341,items:_0x37536c,partialItems:_0x3332fa,isAll:_0x1a63ef}=_0x217c01,_0x209cb8=this[_0x4ec665(0xf3)][_0x4ec665(0x483)](_0x215a33),_0x343867=this[_0x4ec665(0xf3)]['getPivotTableConfig'](_0x352e38,_0x235af1,_0x215a33);if(!_0x209cb8||!_0x343867)return;_0x209cb8['startCollectChangeset']();let _0x47f920=_0x209cb8[_0x4ec665(0x455)](_0x512341);if((_0x47f920==null?void 0x0:_0x47f920[_0x4ec665(0x230)])===_0x4078f7[_0x4ec665(0x3ed)][_0x4ec665(0x3a5)]){let _0x2c7f73=_0x209cb8[_0x4ec665(0x2d5)](_0x512341);if(!_0x2c7f73){_0x209cb8[_0x4ec665(0x25a)]();return;}_0x209cb8[_0x4ec665(0x208)](_0x512341,{..._0x47f920,'selection':_0x2bf89f(_0x2c7f73,_0x37536c,_0x3332fa??[],_0x47f920[_0x4ec665(0x499)]??{'mode':_0x3f8283[_0x4ec665(0x2bb)][_0x4ec665(0x3fa)]},!!_0x1a63ef)});}else _0x209cb8[_0x4ec665(0x208)](_0x512341,{'type':_0x4078f7[_0x4ec665(0x3ed)][_0x4ec665(0x3e8)],'list':_0x37536c,'isAll':_0x1a63ef});let _0xc9983c=_0x209cb8['isEmpty']();_0x56e6c5[_0x4ec665(0x255)]={'view':_0x209cb8[_0x4ec665(0x1a2)]()[_0x4ec665(0x4b3)](),'changesets':_0x209cb8['endCollectChangeset'](),'isEmpty':_0xc9983c,'pivotTableConfig':_0x343867};}break;case _0x4ec665(0x15a):{let _0x51a11a=_0x4be22d[_0x4ec665(0x305)]['setValuePivotFilter'];if(!_0x51a11a)break;let {tableFieldId:_0x3fc4c1,filterInfo:_0x9240a1}=_0x51a11a,_0x2e8ba1=this[_0x4ec665(0xf3)]['getPivotTableInstance'](_0x215a33),_0xadfa98=this[_0x4ec665(0xf3)]['getPivotTableConfig'](_0x352e38,_0x235af1,_0x215a33);if(!_0x2e8ba1||!_0xadfa98)break;_0x2e8ba1[_0x4ec665(0x40c)]();try{_0x2e8ba1[_0x4ec665(0x301)](_0x3fc4c1,_0x9240a1);let _0x20c813=_0x2e8ba1[_0x4ec665(0x360)](),_0x443d09=_0x2e8ba1[_0x4ec665(0x1a2)]()[_0x4ec665(0x4b3)](),_0xaba755=_0x2e8ba1[_0x4ec665(0x25a)]();_0xaba755[_0x4ec665(0x337)]>0x0&&(_0x56e6c5[_0x4ec665(0x15a)]={'view':_0x443d09,'changesets':_0xaba755,'isEmpty':_0x20c813,'pivotTableConfig':_0xadfa98});}catch(_0xf17357){_0x2e8ba1[_0x4ec665(0x31d)](),_0x4d906c=_0xf17357 instanceof Error?_0xf17357[_0x4ec665(0x251)]:String(_0xf17357);}}break;case'setPivotSort':{let _0x49b41d=_0x4be22d['params']['setPivotSort'];if(!_0x49b41d)return;let {tableFieldId:_0x4694b8,info:_0x31d3c6}=_0x49b41d,_0x32d677=this[_0x4ec665(0xf3)][_0x4ec665(0x483)](_0x215a33),_0x3e3f0b=this[_0x4ec665(0xf3)]['getPivotTableConfig'](_0x352e38,_0x235af1,_0x215a33);if(!_0x32d677||!_0x3e3f0b)return;_0x32d677['startCollectChangeset'](),_0x32d677['setSortInfo'](_0x4694b8,_0x31d3c6);let _0xbb3f5f=_0x32d677[_0x4ec665(0x360)]();_0x56e6c5['setPivotSort']={'view':_0x32d677['query']()[_0x4ec665(0x4b3)](),'changesets':_0x32d677[_0x4ec665(0x25a)](),'isEmpty':_0xbb3f5f,'pivotTableConfig':_0x3e3f0b};}break;case _0x4ec665(0x13f):{let _0x4a6e0c=_0x4be22d[_0x4ec665(0x305)]['setPivotSetting'];if(!_0x4a6e0c)break;let {tableFieldId:_0x5b7571,displayName:_0x57efed,subtotalType:_0x36ea2a,format:_0xe2688b,showDataAs:_0x532277}=_0x4a6e0c,_0x53ad22=this[_0x4ec665(0xf3)][_0x4ec665(0x483)](_0x215a33),_0x3ed8d8=this['_sheetsPivotDataSourceModel']['getPivotTableConfig'](_0x352e38,_0x235af1,_0x215a33);if(!_0x53ad22||!_0x3ed8d8||_0x532277!==void 0x0&&(!_0x53ad22[_0x4ec665(0x2a5)]()[_0x4ec665(0xf1)](_0x5b7571)||!_0x3ed8d8['fieldsConfig']['measure'][_0x5b7571]))break;_0x53ad22[_0x4ec665(0x40c)]();try{_0x57efed!==void 0x0&&_0x53ad22[_0x4ec665(0x521)](_0x5b7571,_0x57efed),_0x36ea2a!==void 0x0&&_0x53ad22[_0x4ec665(0x270)](_0x5b7571,_0x36ea2a),_0xe2688b!==void 0x0&&_0x53ad22[_0x4ec665(0x451)](_0x5b7571,_0xe2688b),_0x532277!==void 0x0&&_0x53ad22[_0x4ec665(0x246)](_0x5b7571,_0x532277);let _0x366ce5=_0x53ad22[_0x4ec665(0x360)](),_0x14770a=_0x53ad22[_0x4ec665(0x1a2)]()[_0x4ec665(0x4b3)]();_0x56e6c5[_0x4ec665(0x13f)]={'changesets':_0x53ad22['endCollectChangeset'](),'pivotTableConfig':_0x3ed8d8,'isEmpty':_0x366ce5,'view':_0x14770a};}catch(_0x27c8a6){_0x53ad22['cancelCollectChangeset'](),_0x4d906c=_0x27c8a6 instanceof Error?_0x27c8a6[_0x4ec665(0x251)]:String(_0x27c8a6);}}break;case _0x4ec665(0x19a):{let _0x5c7fa0=_0x4be22d[_0x4ec665(0x305)][_0x4ec665(0x19a)];if(!_0x5c7fa0)return;let {dataRangeInfo:_0x46e83f,unitId:_0x16f4e4,subUnitId:_0x60c39d}=_0x5c7fa0,_0x590b94=this[_0x4ec665(0xf3)][_0x4ec665(0x3a8)](_0x16f4e4,_0x60c39d,_0x215a33),_0x1f22e1=this[_0x4ec665(0xf3)][_0x4ec665(0x483)](_0x215a33);if(!this[_0x4ec665(0xf3)][_0x4ec665(0x517)](_0x16f4e4,_0x215a33)||!_0x1f22e1||!_0x590b94)return;let _0x511e33=this[_0x4ec665(0xf3)][_0x4ec665(0x12f)](_0x16f4e4,_0x215a33,_0x46e83f),_0x48f8e2=this[_0x4ec665(0xf3)][_0x4ec665(0x517)](_0x16f4e4,_0x215a33)['toJSON'](),{collection:_0x53ea70,updateDataFieldList:_0x1b33c3}=this[_0x4ec665(0xf3)]['createCollectionWithDataRange']({'unitId':_0x46e83f[_0x4ec665(0xa0)],'sheetName':_0x46e83f[_0x4ec665(0x28e)],'subUnitId':_0x46e83f[_0x4ec665(0x2d0)],'range':_0x46e83f[_0x4ec665(0x322)]});this['_sheetsPivotDataSourceModel'][_0x4ec665(0x281)](_0x53ea70,_0x1b33c3,_0x46e83f);let _0x58a463=_0x53ea70[_0x4ec665(0x4b3)]();_0x1f22e1[_0x4ec665(0x40c)]();let _0xe3efdd=this[_0x4ec665(0xf3)][_0x4ec665(0x286)](_0x16f4e4)[_0x4ec665(0x120)]()||_0x4078f7[_0x4ec665(0x47e)];_0x1f78da(_0x1f22e1,_0x53ea70,_0xe3efdd);let _0x1ef464=_0x1f22e1['isEmpty'](),_0x2cee58=_0x1f22e1['query']()[_0x4ec665(0x4b3)](),_0x5b2ce3=_0x1f22e1['endCollectChangeset']();_0x56e6c5[_0x4ec665(0x19a)]={'pivotCacheId':this[_0x4ec665(0x103)][_0x4ec665(0x41d)](_0x46e83f,this[_0x4ec665(0xf3)][_0x4ec665(0x286)](_0x46e83f[_0x4ec665(0xa0)]))??_0x4ec665(0x3d1)+(0x0,_0x3f8283[_0x4ec665(0x412)])(),'view':_0x2cee58,'changesets':_0x5b2ce3,'isEmpty':_0x1ef464,'pivotTableConfig':_0x590b94,'collectionConfig':_0x58a463,'oldCollectionConfig':_0x48f8e2,'deleteIds':_0x511e33,'createdFieldIds':_0x1b33c3['map'](({dataField:_0x5f05a9})=>_0x5f05a9['getId']())};}break;case _0x4ec665(0x2c0):{let _0x470a10=_0x4be22d[_0x4ec665(0x305)][_0x4ec665(0x2c0)];if(!_0x470a10)return;let {position:_0xef7f67,index:_0x24c61c}=_0x470a10,_0x1fa835=this['_sheetsPivotDataSourceModel'][_0x4ec665(0x3a8)](_0x352e38,_0x235af1,_0x215a33);if(!_0x1fa835)return!0x1;let _0x2a38d3=this[_0x4ec665(0xf3)][_0x4ec665(0x483)](_0x215a33);if(!_0x2a38d3)return!0x1;_0x2a38d3['startCollectChangeset'](),_0x2a38d3['updateValuePosition'](_0xef7f67,_0x24c61c);let _0x224e02=_0x2a38d3[_0x4ec665(0x360)](),_0x475fcf=_0x2a38d3['query']()[_0x4ec665(0x4b3)]();_0x56e6c5[_0x4ec665(0x2c0)]={'changesets':_0x2a38d3[_0x4ec665(0x25a)](),'pivotTableConfig':_0x1fa835,'isEmpty':_0x224e02,'view':_0x475fcf};}break;case _0x4ec665(0x3e2):{let _0x275c90=_0x4be22d[_0x4ec665(0x305)]['setPivotCollapse'];if(!_0x275c90)return;let _0x6f00c1=this[_0x4ec665(0xf3)]['getPivotTableInstance'](_0x215a33),_0x4453c2=this[_0x4ec665(0xf3)][_0x4ec665(0x3a8)](_0x352e38,_0x235af1,_0x215a33);if(!_0x6f00c1||!_0x4453c2||_0x275c90[_0x4ec665(0x530)]!==void 0x0&&_0x6f00c1[_0x4ec665(0x194)](_0x275c90[_0x4ec665(0x530)])['area']!==_0x4078f7[_0x4ec665(0x149)][_0x4ec665(0x438)])return;if(_0x6f00c1[_0x4ec665(0x40c)](),_0x275c90[_0x4ec665(0x530)]!==void 0x0)_0x6f00c1[_0x4ec665(0x16d)](_0x275c90[_0x4ec665(0x530)]);else{let {tableFieldId:_0x1be30c,collapse:_0x24eedd,item:_0x245af4}=_0x275c90;_0x6f00c1[_0x4ec665(0x1ed)](_0x1be30c,_0x24eedd,_0x245af4);}let _0x31a446=_0x6f00c1['isEmpty']();_0x56e6c5[_0x4ec665(0x3e2)]={'view':_0x6f00c1[_0x4ec665(0x1a2)]()[_0x4ec665(0x4b3)](),'isEmpty':_0x31a446,'pivotTableConfig':_0x4453c2,'changesets':_0x6f00c1['endCollectChangeset']()};}break;case _0x4ec665(0x381):{let _0x4bf41b=_0x4be22d[_0x4ec665(0x305)][_0x4ec665(0x381)];if(!_0x4bf41b)return;let {pivotTableConfig:_0x4b2ae7}=_0x4bf41b,_0x128e4d=this['_sheetsPivotDataSourceModel'][_0x4ec665(0x483)](_0x215a33),_0x2e137a=this[_0x4ec665(0xf3)][_0x4ec665(0x3a8)](_0x352e38,_0x235af1,_0x215a33);if(!_0x128e4d||!_0x2e137a)return;_0x128e4d[_0x4ec665(0x40c)](),_0x4a649e(_0x128e4d,_0x4b2ae7);let _0x1c2d67=_0x128e4d[_0x4ec665(0x360)](),_0x4bd2e1=_0x128e4d[_0x4ec665(0x1a2)]()[_0x4ec665(0x4b3)](),_0x4d1ab4=_0x128e4d[_0x4ec665(0x25a)]();_0x56e6c5[_0x4ec665(0x381)]={'view':_0x4bd2e1,'isEmpty':_0x1c2d67,'pivotTableConfig':{..._0x2e137a,'fieldsConfig':_0x128e4d[_0x4ec665(0x4b3)]()},'changesets':_0x4d1ab4};}break;case _0x4ec665(0x32b):{let _0x1b117a=_0x4be22d[_0x4ec665(0x305)][_0x4ec665(0x32b)];if(!_0x1b117a)return;let _0x2223e9=this['_sheetsPivotDataSourceModel'][_0x4ec665(0x483)](_0x215a33),_0x3ef953=this[_0x4ec665(0xf3)][_0x4ec665(0x3a8)](_0x352e38,_0x235af1,_0x215a33);if(!_0x2223e9||!_0x3ef953)return;_0x2223e9[_0x4ec665(0x40c)](),_0xd39239(_0x2223e9,_0x1b117a[_0x4ec665(0x532)]);let _0x211721=_0x2223e9[_0x4ec665(0x1a2)]()['toJSON'](),_0x35636b=_0x2223e9['endCollectChangeset']();_0x56e6c5['resetPivotTable']={'view':_0x211721,'isEmpty':!0x0,'pivotTableConfig':{..._0x3ef953,'fieldsConfig':_0x2223e9[_0x4ec665(0x4b3)]()},'changesets':_0x35636b};}break;case _0x4ec665(0x312):{let _0x3219aa=_0x4be22d[_0x4ec665(0x305)][_0x4ec665(0x421)];if(!_0x3219aa)return;let {info:_0xfefd05}=_0x3219aa,_0x2e4a5c=this[_0x4ec665(0xf3)][_0x4ec665(0x483)](_0x215a33),_0x15c868=this[_0x4ec665(0xf3)]['getPivotTableConfig'](_0x352e38,_0x235af1,_0x215a33);if(!_0x2e4a5c||!_0x15c868)return;_0x2e4a5c[_0x4ec665(0x40c)]();let _0x249c1f=_0xfefd05[_0x4ec665(0x4e1)]!==void 0x0&&(0x0,_0x4078f7[_0x4ec665(0x1c5)])(_0x2e4a5c[_0x4ec665(0x459)]())!==_0xfefd05['dateGroupingMode'];_0x2e4a5c[_0x4ec665(0x421)](_0xfefd05);let _0x479573=_0x249c1f?_0x54072b(_0x2e4a5c):void 0x0,_0x483c48=_0x2e4a5c['isEmpty']();_0x56e6c5[_0x4ec665(0x112)]={'view':_0x2e4a5c[_0x4ec665(0x1a2)]()[_0x4ec665(0x4b3)](),'isEmpty':_0x483c48,'pivotTableConfig':_0x15c868,'changesets':_0x2e4a5c[_0x4ec665(0x25a)](),'removedGroupJSON':_0x479573};}break;case'setPivotLayout':{let _0x185ca9=_0x4be22d['params'][_0x4ec665(0x2e5)];if(!_0x185ca9)return;let {layout:_0x320b1c}=_0x185ca9,_0x5a4e3e=this[_0x4ec665(0xf3)]['getPivotTableInstance'](_0x215a33),_0x1c4ee8=this['_sheetsPivotDataSourceModel'][_0x4ec665(0x3a8)](_0x352e38,_0x235af1,_0x215a33);if(!_0x5a4e3e||!_0x1c4ee8)return;_0x5a4e3e['startCollectChangeset'](),_0x5a4e3e[_0x4ec665(0x444)](_0x320b1c);let _0x2420fa=_0x5a4e3e[_0x4ec665(0x360)]();_0x56e6c5[_0x4ec665(0x2e5)]={'view':_0x5a4e3e[_0x4ec665(0x1a2)]()['toJSON'](),'isEmpty':_0x2420fa,'pivotTableConfig':_0x1c4ee8,'changesets':_0x5a4e3e[_0x4ec665(0x25a)]()};}break;case _0x4ec665(0x294):{let _0x39a656=_0x4be22d[_0x4ec665(0x305)][_0x4ec665(0x43d)];if(!_0x39a656)return;let _0x31dc92=_0x39a656['sourceRangeInfo'],_0xa02ff8=_0x39a656['pivotTableId'],{collection:_0xc0f430,updateDataFieldList:_0xfc6793}=this['_sheetsPivotDataSourceModel']['createCollectionWithDataRange']({'unitId':_0x31dc92[_0x4ec665(0xa0)],'sheetName':_0x31dc92[_0x4ec665(0x28e)],'subUnitId':_0x31dc92[_0x4ec665(0x2d0)],'range':_0x31dc92[_0x4ec665(0x322)]});this['_sheetsPivotDataSourceModel']['refreshData'](_0xc0f430,_0xfc6793,_0x31dc92);let _0xeaada4=new _0x4078f7[(_0x4ec665(0x358))](_0xc0f430,void 0x0,_0xa02ff8),_0x5d7826=_0xc0f430[_0x4ec665(0x28a)](),{rows:_0x56e572,columns:_0x5aa80e,filters:_0x310758,values:_0x2379f9}=_0x39a656['pivotTableIndexConfig'];_0xeaada4['startCollectChangeset']();for(let {field:_0x372a3a,selectedItems:_0x45948a}of _0x56e572||[]){let _0x3112c7=_0x5d7826[_0x372a3a];if(_0x3112c7){let _0x1e50b6=_0xeaada4[_0x4ec665(0x26b)](_0x3112c7,_0x4078f7[_0x4ec665(0x149)][_0x4ec665(0x438)]);_0x45948a&&_0x1e50b6&&_0xeaada4[_0x4ec665(0x208)](_0x1e50b6['getId'](),{'type':_0x4078f7['PivotFilterTypeEnum'][_0x4ec665(0x3e8)],'list':_0x45948a,'isAll':!0x1});}}for(let {field:_0x532984,selectedItems:_0x3d9012}of _0x5aa80e||[]){let _0x215d0a=_0x5d7826[_0x532984];if(_0x215d0a){let _0xa28820=_0xeaada4[_0x4ec665(0x26b)](_0x215d0a,_0x4078f7[_0x4ec665(0x149)][_0x4ec665(0x142)]);_0x3d9012&&_0xa28820&&_0xeaada4[_0x4ec665(0x208)](_0xa28820['getId'](),{'type':_0x4078f7[_0x4ec665(0x3ed)][_0x4ec665(0x3e8)],'list':_0x3d9012,'isAll':!0x1});}}for(let {field:_0x4b01aa,selectedItems:_0x50d0e1}of _0x310758||[]){let _0x472503=_0x5d7826[_0x4b01aa];if(_0x472503){let _0x24ae66=_0xeaada4[_0x4ec665(0x26b)](_0x472503,_0x4078f7[_0x4ec665(0x149)][_0x4ec665(0x44a)]);_0x50d0e1&&_0x24ae66&&_0xeaada4[_0x4ec665(0x208)](_0x24ae66[_0x4ec665(0x416)](),{'type':_0x4078f7[_0x4ec665(0x3ed)][_0x4ec665(0x3e8)],'list':_0x50d0e1,'isAll':!0x1});}}for(let {field:_0x23ad03,subTotalType:_0x575d61,formatString:_0x12aaad}of _0x2379f9||[]){let _0xfbc994=_0xc0f430['getFieldById'](_0x5d7826[_0x23ad03]);if(!_0xfbc994)continue;let _0x13b8e1=_0x5d7826[_0x23ad03];if(_0x13b8e1){let _0x4c792e=_0xeaada4[_0x4ec665(0x26b)](_0x13b8e1,_0x4078f7['PivotTableFiledAreaEnum']['Value']);if(_0x4c792e){if(_0x575d61!==void 0x0){_0xeaada4[_0x4ec665(0x270)](_0x4c792e[_0x4ec665(0x416)](),_0x575d61);let _0x1728ac=(this['_sheetsPivotDataSourceModel']['getDataFieldManager'](_0x31dc92[_0x4ec665(0xa0)])[_0x4ec665(0x120)]()||_0x4078f7[_0x4ec665(0x47e)])(_0xc0f430[_0x4ec665(0x3d8)](_0x13b8e1),_0x575d61);_0xeaada4[_0x4ec665(0x521)](_0x4c792e['getId'](),_0x1728ac);}else{if(_0xfbc994){let _0x3da707=_0xfbc994==null?void 0x0:_0xfbc994[_0x4ec665(0x3bf)]();_0xeaada4[_0x4ec665(0x270)](_0x4c792e['getId'](),_0x3da707===_0x4078f7[_0x4ec665(0x529)][_0x4ec665(0x356)]?_0x4078f7[_0x4ec665(0x385)][_0x4ec665(0xcc)]:_0x4078f7['PivotSubtotalTypeEnum'][_0x4ec665(0x295)]);}}_0x12aaad&&_0xeaada4[_0x4ec665(0x451)](_0x4c792e[_0x4ec665(0x416)](),_0x12aaad);}}}let _0x308437=_0xeaada4[_0x4ec665(0x1a2)](),_0x2010af=_0xeaada4[_0x4ec665(0x4b3)](),_0x5a3733=_0xeaada4[_0x4ec665(0x360)](),_0x58e666=_0xeaada4[_0x4ec665(0x25a)](),_0x4b17e1=_0xc0f430[_0x4ec665(0x4b3)]();_0x56e6c5[_0x4ec665(0x43d)]={'pivotCacheId':this[_0x4ec665(0x103)]['getExistingCacheId'](_0x31dc92,this[_0x4ec665(0xf3)][_0x4ec665(0x286)](_0x31dc92['unitId']))??_0x4ec665(0x3d1)+(0x0,_0x3f8283['generateRandomId'])(),'view':_0x308437,'fieldsConfig':_0x2010af,'collectionConfig':_0x4b17e1,'isEmpty':_0x5a3733,'changesets':_0x58e666};}break;case'drillDown':{let _0x51186a=_0x458f92(this[_0x4ec665(0x1f7)],_0x4be22d);if(!_0x51186a)return;let {range:_0x235e1f,sourceSubUnitId:_0x4906b,sourceUnitId:_0x48d9a7,formatMap:_0xc5afa7,indexes:_0x1c24ba}=_0x51186a;_0x56e6c5[_0x4ec665(0x377)]={'range':_0x235e1f,'sourceSubUnitId':_0x4906b,'sourceUnitId':_0x48d9a7,'formatMap':_0xc5afa7,'indexes':_0x1c24ba};}}this[_0x4ec665(0x466)][_0x4ec665(0x1f9)](_0x154397['id'],{'version':_0x4be22d[_0x4ec665(0x32e)],'result':_0x56e6c5,'error':_0x4d906c},{'onlyLocal':!0x0});}));}[_0x55e150(0x2dc)](){const _0x166d7a=_0x55e150;this[_0x166d7a(0x213)](this[_0x166d7a(0x466)]['onCommandExecuted'](_0x1b130f=>{const _0x5c8c0e=_0x166d7a;if(_0x1b130f['id']!==_0x215407['id'])return;let _0x5c3bb6=_0x1b130f['params'];return this['_sheetsPivotDataSourceModel'][_0x5c8c0e(0x361)](_0x5c3bb6[_0x5c8c0e(0x133)],_0x5c3bb6[_0x5c8c0e(0x32c)]),!0x0;}));}[_0x55e150(0xd6)](){const _0x21cf0e=_0x55e150;this['disposeWithMe'](this[_0x21cf0e(0xf3)][_0x21cf0e(0x9c)][_0x21cf0e(0x192)](_0x2d211d=>{const _0x5b0c96=_0x21cf0e;switch(_0x2d211d[_0x5b0c96(0x230)]){case _0x5b0c96(0xe9):_0x2d211d[_0x5b0c96(0x4b9)]&&_0x2d211d['targetCellInfo']?this[_0x5b0c96(0x27a)](_0x2d211d[_0x5b0c96(0x439)],_0x2d211d[_0x5b0c96(0x4b9)],_0x2d211d[_0x5b0c96(0xf0)]):_0x2d211d[_0x5b0c96(0x4b9)]&&_0x2d211d[_0x5b0c96(0xa0)]&&_0x2d211d[_0x5b0c96(0x2d0)]&&this[_0x5b0c96(0x3c8)](_0x2d211d[_0x5b0c96(0x439)],_0x2d211d[_0x5b0c96(0x4b9)],_0x2d211d[_0x5b0c96(0xa0)],_0x2d211d['subUnitId']);break;case _0x5b0c96(0xe0):{let {unitId:_0x47af7e,subUnitId:_0x24db3a,token:_0x30cffa}=_0x2d211d;_0x47af7e&&_0x24db3a&&_0x30cffa&&this[_0x5b0c96(0xae)](_0x47af7e,_0x24db3a,_0x30cffa);}break;case _0x5b0c96(0x2a7):{let {token:_0x1f9f0e,oldSourceRangeInfo:_0x54748d,dataRangeInfo:_0x243c12,targetCellInfo:_0xd4da3f}=_0x2d211d,{unitId:_0x31f99f,subUnitId:_0x52fc54}=_0x54748d||{};_0x31f99f&&_0x52fc54&&_0x1f9f0e&&this['removeSourceRangeChange'](_0x31f99f,_0x52fc54,_0x1f9f0e),_0x243c12&&_0xd4da3f&&this[_0x5b0c96(0x27a)](_0x1f9f0e,_0x243c12,_0xd4da3f);}}}));}['_subjectFieldsCollectionChange'](){const _0x2a96aa=_0x55e150;this[_0x2a96aa(0x213)](this[_0x2a96aa(0xf3)][_0x2a96aa(0x33a)][_0x2a96aa(0x192)](_0x585be7=>{const _0x4e0ff5=_0x2a96aa;Object[_0x4e0ff5(0x1b3)](_0x585be7)[_0x4e0ff5(0x1bd)](_0xd72b65=>{const _0x5e54a2=_0x4e0ff5;let _0x2dac9d=this[_0x5e54a2(0xf3)]['getTargetByPivotId'](_0xd72b65);if(_0x2dac9d){let _0x5cd550=this[_0x5e54a2(0xf3)][_0x5e54a2(0x3a8)](_0x2dac9d==null?void 0x0:_0x2dac9d[_0x5e54a2(0xa0)],_0x2dac9d==null?void 0x0:_0x2dac9d['subUnitId'],_0xd72b65);_0x5cd550&&(this['handleSourceRangeChange'](_0xd72b65,_0x5cd550[_0x5e54a2(0x1f5)],_0x5cd550[_0x5e54a2(0xf0)]),this['triggerDirtyFeature']([{'unitId':_0x2dac9d[_0x5e54a2(0xa0)],'subUnitId':_0x2dac9d['subUnitId'],'token':_0xd72b65}]));}});}));}['_subjectViewChange'](){const _0x5048e6=_0x55e150;this['disposeWithMe'](this[_0x5048e6(0xf3)][_0x5048e6(0xb4)][_0x5048e6(0x192)](_0x90d8b2=>{const _0x495e0c=_0x5048e6;let {unitId:_0x1d3067,subUnitId:_0x1daf57,pivotTableId:_0x1503a0}=_0x90d8b2;_0x1d3067&&_0x1daf57&&_0x1503a0&&this[_0x495e0c(0x3eb)]([{'unitId':_0x1d3067,'subUnitId':_0x1daf57,'token':_0x1503a0}]);}));}[_0x55e150(0x3eb)](_0x8589a){const _0x1f0d5a=_0x55e150;let _0x45058c=Object[_0x1f0d5a(0x277)](null);_0x8589a[_0x1f0d5a(0x1bd)](_0x41813b=>{const _0x569243=_0x1f0d5a;let {unitId:_0x4a3488,subUnitId:_0x347faf,token:_0xd6796}=_0x41813b;_0x45058c[_0x4a3488]=_0x45058c[_0x4a3488]??Object[_0x569243(0x277)](null),_0x45058c[_0x4a3488][_0x347faf]=_0x45058c[_0x4a3488][_0x347faf]??Object['create'](null),_0x45058c[_0x4a3488][_0x347faf][_0xd6796]=!0x0;}),this['_commandService'][_0x1f0d5a(0x1f9)](_0x2df373['id'],_0x45058c);}['removeSourceRangeChange'](_0x55d4cc,_0x95fff3,_0x4b3f3b){const _0x2647c7=_0x55e150;this[_0x2647c7(0x404)]['remove'](_0x55d4cc,_0x95fff3,[_0x4b3f3b]);}[_0x55e150(0x3c8)](_0x5784c4,_0x25f0b4,_0x3be12b,_0x329702){const _0x2f0b49=_0x55e150;this[_0x2f0b49(0x404)]['has'](_0x3be12b,_0x329702,_0x5784c4)&&this[_0x2f0b49(0xae)](_0x3be12b,_0x329702,_0x5784c4),this['_featureCalculationManagerService'][_0x2f0b49(0x274)](_0x3be12b,_0x329702,_0x5784c4,{'unitId':_0x3be12b,'subUnitId':_0x329702,'dependencyRanges':[{'sheetId':_0x25f0b4[_0x2f0b49(0x2d0)],..._0x25f0b4}],'getDirtyData':(_0xf63f08,_0x465575)=>{const _0x41f1b8=_0x2f0b49;let _0x58f9d0=_0x79bfaf(_0xf63f08,_0x465575,_0x25f0b4);if(_0x58f9d0['length']===0x0)return _0xcdd85f();let _0x51627e=this[_0x41f1b8(0xf3)][_0x41f1b8(0x517)](_0x25f0b4[_0x41f1b8(0xa0)],_0x5784c4),_0x296c35=this[_0x41f1b8(0x103)][_0x41f1b8(0x333)](_0x3be12b,_0x5784c4);if(!_0x51627e||!_0x296c35)return _0xcdd85f();let _0x36fcae=_0x51627e['getFieldIds'](),_0x308c2b=this['getMatrixFromRunTimeData'](_0x25f0b4[_0x41f1b8(0xa0)],_0x25f0b4[_0x41f1b8(0x2d0)],_0x465575),_0x33dfbc=[];for(let _0x2adcab of _0x58f9d0){let _0x5d08b1=_0x2adcab-(_0x25f0b4[_0x41f1b8(0x322)][_0x41f1b8(0x2fc)]||0x0),_0x5d7cc3=_0x36fcae[_0x5d08b1];_0x5d7cc3&&_0x33dfbc['push']({'dataFieldId':_0x5d7cc3,'offsetIndex':_0x5d08b1});}let _0xe197a=this[_0x41f1b8(0x103)][_0x41f1b8(0x4e5)](_0x296c35,_0x465575,()=>{const _0x3374a7=_0x41f1b8;let _0x1bac3a={};return _0x33dfbc[_0x3374a7(0x1bd)](({dataFieldId:_0x5202ec,offsetIndex:_0x2e62b2})=>{const _0x2cdec5=_0x3374a7;_0x1bac3a[_0x5202ec]=_0x51627e[_0x2cdec5(0x53c)](_0x5202ec)[_0x2cdec5(0x25f)](),this[_0x2cdec5(0xf3)][_0x2cdec5(0x286)](_0x25f0b4[_0x2cdec5(0xa0)])[_0x2cdec5(0x146)](_0x5202ec,_0x25f0b4,_0x2e62b2,_0x308c2b);}),{'dirtyFieldIds':_0x33dfbc['map'](({dataFieldId:_0x5285d0})=>_0x5285d0),'previousFieldNames':_0x1bac3a};});return _0x51627e['getGroupFieldsInfoByIds'](Array[_0x41f1b8(0x91)](_0xe197a['dirtyFieldIds']))[_0x41f1b8(0x1bd)](([_0x32f5ef,_0x227beb])=>{const _0x1015f6=_0x41f1b8;let _0x1b7462=_0x51627e[_0x1015f6(0x53c)](_0x32f5ef),_0x5bdfef=_0x51627e[_0x1015f6(0x53c)](_0x227beb);_0x1b7462&&_0x5bdfef&&((0x0,_0x4078f7[_0x1015f6(0x485)])(_0x1b7462)&&this[_0x1015f6(0x2b4)](_0x25f0b4[_0x1015f6(0xa0)]),_0x1b7462['refreshGroupField'](_0x5bdfef));}),_0x51627e['updateAllDisplayName'](),_0xcdd85f();}});}[_0x55e150(0x27a)](_0x2647be,_0x16d3af,_0x5eedc3){const _0x16ea19=_0x55e150;let {unitId:_0x48a714,subUnitId:_0x2748cc}=_0x16d3af;this['_featureCalculationManagerService'][_0x16ea19(0x16c)](_0x5eedc3[_0x16ea19(0xa0)],_0x5eedc3['subUnitId'],_0x2647be)&&this[_0x16ea19(0xae)](_0x48a714,_0x2748cc,_0x2647be);let _0x51be6f={'sheetId':_0x2748cc,..._0x16d3af};this[_0x16ea19(0x404)][_0x16ea19(0x274)](_0x5eedc3[_0x16ea19(0xa0)],_0x5eedc3[_0x16ea19(0x2d0)],_0x2647be,{'unitId':_0x5eedc3['unitId'],'subUnitId':_0x5eedc3[_0x16ea19(0x2d0)],'dependencyRanges':[_0x51be6f],'getDirtyData':(_0x3670fd,_0x556133)=>{const _0x1248db=_0x16ea19;let _0x251bc0=this[_0x1248db(0xf3)],_0x387a01=_0x251bc0[_0x1248db(0x31c)](_0x2647be);if(!_0x387a01)return _0xcdd85f();let {unitId:_0x4b60f1,subUnitId:_0x569aac}=_0x387a01,_0x4628a9=_0x79bfaf(_0x3670fd,_0x556133,_0x16d3af);if(_0x4628a9['length']>0x0){let _0x1bb8ce=_0x251bc0[_0x1248db(0x517)](_0x48a714,_0x2647be),_0x26e497=_0x1bb8ce[_0x1248db(0x28a)](),_0x15f82f=this[_0x1248db(0x1ef)](_0x16d3af[_0x1248db(0xa0)],_0x16d3af[_0x1248db(0x2d0)],_0x556133),_0x1a339f=_0x251bc0[_0x1248db(0x286)](_0x48a714)[_0x1248db(0x120)]()||_0x4078f7['getAutoDisplayName'],_0x5ce4a4=[];for(let _0xc0c06e of _0x4628a9){let _0x59310e=_0xc0c06e-(_0x16d3af['range']['startColumn']||0x0),_0x5029b1=_0x26e497[_0x59310e];_0x5029b1&&_0x5ce4a4['push']({'dataFieldId':_0x5029b1,'offsetIndex':_0x59310e});}let _0x242c3a=_0x251bc0[_0x1248db(0x4da)](_0x4b60f1,_0x2647be);if(!_0x242c3a)throw new _0x3c97e0[(_0x1248db(0x3ee))](_0x3c97e0[_0x1248db(0x3ff)][_0x1248db(0x4d9)],{'targetUnitId':_0x4b60f1,'token':_0x2647be});let _0x316709=this['_sheetsPivotCacheService']['refreshOnce'](_0x242c3a,_0x556133,()=>{const _0x12ce94=_0x1248db;let _0x572469={};return _0x5ce4a4['forEach'](({dataFieldId:_0x26696f,offsetIndex:_0xdfc893})=>{const _0x33dca1=_0x274d;_0x572469[_0x26696f]=_0x1bb8ce[_0x33dca1(0x53c)](_0x26696f)[_0x33dca1(0x25f)](),_0x251bc0[_0x33dca1(0x286)](_0x48a714)[_0x33dca1(0x146)](_0x26696f,_0x16d3af,_0xdfc893,_0x15f82f);}),{'dirtyFieldIds':_0x5ce4a4[_0x12ce94(0x1e6)](({dataFieldId:_0x412051})=>_0x412051),'previousFieldNames':_0x572469};});_0x1bb8ce[_0x1248db(0x488)](Array[_0x1248db(0x91)](_0x316709[_0x1248db(0x533)]))[_0x1248db(0x1bd)](_0x3231bb=>{const _0x4569f3=_0x1248db;let [_0x3d6e18,_0x2ac859]=_0x3231bb,_0x1c2fc6=_0x1bb8ce['getFieldById'](_0x3d6e18),_0x430a7d=_0x1bb8ce[_0x4569f3(0x53c)](_0x2ac859);_0x1c2fc6&&_0x430a7d&&((0x0,_0x4078f7[_0x4569f3(0x485)])(_0x1c2fc6)&&this['_setDateSystem'](_0x48a714),_0x1c2fc6['refreshGroupField'](_0x430a7d));}),_0x1bb8ce['updateAllDisplayName']();let _0x3c110e=_0x251bc0[_0x1248db(0x483)](_0x2647be);if(_0x3c110e){_0xe5a51b(_0x3c110e,_0x316709['previousFieldNames'],_0x1a339f),_0x3c110e[_0x1248db(0x1a5)](!0x0);let _0x4ac5cf=_0x3c110e['query'](),_0x12882a=_0x251bc0[_0x1248db(0x3a8)](_0x4b60f1,_0x569aac,_0x2647be),_0x1452ea=_0x251bc0[_0x1248db(0x286)](_0x48a714)['toJSON']();_0x251bc0[_0x1248db(0x204)](_0x4b60f1,_0x569aac,_0x1248db(0x187),_0x2647be,_0x4ac5cf,_0x12882a,_0x1452ea,!0x0);}}return this[_0x1248db(0x248)](_0x4b60f1,_0x569aac,_0x2647be);}});}[_0x55e150(0x1ef)](_0xb32631,_0x17e2e6,_0xd399ef){var _0x164aef,_0x2d0b25;let {arrayFormulaCellData:_0x8936b7,unitData:_0x290982}=_0xd399ef;return{'arrayFormulaCellDataMatrix':_0x8936b7==null||(_0x164aef=_0x8936b7[_0xb32631])==null?void 0x0:_0x164aef[_0x17e2e6],'unitDataMatrix':_0x290982==null||(_0x2d0b25=_0x290982[_0xb32631])==null?void 0x0:_0x2d0b25[_0x17e2e6]};}[_0x55e150(0x248)](_0xca5a3b,_0x469739,_0x1e310d){const _0x4a0952=_0x55e150;let _0x266162=this[_0x4a0952(0xf3)][_0x4a0952(0x3fb)](_0xca5a3b,_0x469739,_0x1e310d),_0x2314ca=[],_0x16df97=new _0x3f8283['ObjectMatrix']();if(_0x266162){let {rangeCache:_0x476554,matrix:_0xf257c8,oldRangeCache:_0x1e62ff,oldMatrix:_0x59b26f}=_0x266162,_0x3e88b1=_0x711efb(_0x1e62ff),_0x509ddf=_0x711efb(_0x476554);_0x2314ca[_0x4a0952(0xc7)](..._0x509ddf,..._0x3e88b1),_0x59b26f&&_0x1e62ff&&_0x3e88b1[_0x4a0952(0x1bd)](_0x2d0273=>{const _0x5b2e03=_0x4a0952;for(let _0x1aab1f=_0x2d0273[_0x5b2e03(0x33e)];_0x1aab1f<=_0x2d0273['endRow'];_0x1aab1f++)for(let _0x56c9eb=_0x2d0273['startColumn'];_0x56c9eb<=_0x2d0273[_0x5b2e03(0x221)];_0x56c9eb++)_0x16df97[_0x5b2e03(0x500)](_0x1aab1f,_0x56c9eb);}),_0xf257c8&&_0x509ddf&&_0x509ddf[_0x4a0952(0x1bd)](_0x542ace=>{const _0x5f543b=_0x4a0952;for(let _0x2f6205=_0x542ace[_0x5f543b(0x33e)];_0x2f6205<=_0x542ace['endRow'];_0x2f6205++)for(let _0x218d9d=_0x542ace[_0x5f543b(0x2fc)];_0x218d9d<=_0x542ace[_0x5f543b(0x221)];_0x218d9d++)_0x16df97[_0x5f543b(0x1c4)](_0x2f6205,_0x218d9d,_0xf257c8[_0x5f543b(0x424)](_0x2f6205,_0x218d9d));});}let _0x4c3675={};return _0x4c3675[_0xca5a3b]={[_0x469739]:_0x566842(_0x2314ca)},{'runtimeCellData':{[_0xca5a3b]:{[_0x469739]:_0x16df97}},'dirtyRanges':_0x4c3675};}[_0x55e150(0x3f4)](){}};_0x157644=_0x174b33([_0x181d02(0x0,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x30eff7)),_0x181d02(0x1,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x1ce484[_0x55e150(0x1ba)])),_0x181d02(0x2,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x3f8283[_0x55e150(0x3cb)])),_0x181d02(0x3,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x1ce484[_0x55e150(0x30f)])),_0x181d02(0x4,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x3f8283['Injector'])),_0x181d02(0x5,_0x3f8283['IUniverInstanceService']),_0x181d02(0x6,_0x3f8283[_0x55e150(0x2e6)]),_0x181d02(0x7,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x2fd000))],_0x157644);let _0xff515b={'dataField':()=>(0x0,_0x4078f7['generateHexNumber'])(0x5),'pivotTable':()=>(0x0,_0x4078f7[_0x55e150(0x1f4)])(0x8)},_0x1f8c0c=_0x55e150(0x210);function _0x25f272(_0x2664ad,_0x4490d3,_0xfc638b,_0x44d579=_0xff515b){const _0x291c08=_0x55e150;if(!_0x2664ad)return _0x5dbd6b(_0x4490d3,_0xfc638b,_0x44d579);let _0x1eba76=_0x2664ad[_0x291c08(0x97)](_0x1f8c0c);if(_0x1eba76)return _0x1eba76;let _0x3be7dc=_0x5dbd6b(_0x4490d3,_0xfc638b,_0x44d579);return _0x2664ad[_0x291c08(0x187)](_0x1f8c0c,_0x3be7dc),_0x3be7dc;}function _0x350e50(_0x53dd53,_0x277458,_0x510591,_0x58d221=_0xff515b){const _0x29bd0a=_0x55e150;_0x3046cc(_0x53dd53,_0x510591[_0x29bd0a(0x2c9)]),_0x3ba917(_0x53dd53,_0x277458,_0x510591[_0x29bd0a(0x467)],_0x510591[_0x29bd0a(0x2c9)],_0x58d221);}function _0x5dbd6b(_0x2a3d7c,_0x400dd8,_0xed519f){const _0xc14ae0=_0x55e150;let _0x5333df={'dataFieldIdMap':new Map(),'reservedDataFieldIds':new Set()};_0x2a3d7c[_0xc14ae0(0x1bd)](({collectionConfig:_0xf47025})=>{const _0x5917e0=_0xc14ae0;_0x3046cc(_0xf47025,_0x5333df[_0x5917e0(0x2c9)]);});let _0x3fe1c2=new Set(_0x2a3d7c[_0xc14ae0(0x1e6)](({pivotTableId:_0x3abc49})=>_0x3abc49)),_0x1ff8fe=new Map();return{'entries':_0x2a3d7c[_0xc14ae0(0x1e6)](_0x562bbf=>{const _0x2017a0=_0xc14ae0;let _0x398fa1=_0x3f8283[_0x2017a0(0xe7)][_0x2017a0(0x1e3)](_0x562bbf[_0x2017a0(0x98)]),_0x4f7727=_0x3f8283['Tools']['deepClone'](_0x562bbf[_0x2017a0(0x1ad)]),_0x2a04f6=_0x398fa1[_0x2017a0(0x1f5)]['unitId']===_0x400dd8[_0x2017a0(0xa0)]&&_0x398fa1['sourceRangeInfo'][_0x2017a0(0x2d0)]===_0x400dd8[_0x2017a0(0x328)];_0x398fa1[_0x2017a0(0xf0)]={..._0x398fa1[_0x2017a0(0xf0)],'unitId':_0x400dd8['unitId'],'subUnitId':_0x400dd8[_0x2017a0(0x2d7)],'sheetName':_0x400dd8[_0x2017a0(0xfc)]},_0x2a04f6&&(_0x398fa1[_0x2017a0(0x1f5)]={..._0x398fa1[_0x2017a0(0x1f5)],'subUnitId':_0x400dd8[_0x2017a0(0x2d7)],'sheetName':_0x400dd8[_0x2017a0(0xfc)]},delete _0x398fa1[_0x2017a0(0x3ae)],_0x350e50(_0x4f7727,_0x398fa1[_0x2017a0(0x4ac)],_0x5333df,_0xed519f),_0x4f7727[_0x2017a0(0x322)]=_0x398fa1['sourceRangeInfo']);let _0x47f7b9=_0xa89c4c(_0x3fe1c2,_0xed519f[_0x2017a0(0x2dd)]);return _0x1ff8fe['set'](_0x562bbf['pivotTableId'],_0x47f7b9),{'pivotTableId':_0x47f7b9,'pivotTableConfig':_0x398fa1,'collectionConfig':_0x4f7727};}),'pivotTableIdMap':_0x1ff8fe,'dataFieldContext':_0x5333df};}function _0x3046cc(_0x406162,_0x5a113c){const _0xd78ea8=_0x55e150;_0x406162[_0xd78ea8(0x1f3)][_0xd78ea8(0x1bd)](_0x3f5c1a=>_0x5a113c[_0xd78ea8(0xe9)](_0x3f5c1a)),_0x406162[_0xd78ea8(0x1da)]['forEach'](({id:_0x25baab})=>_0x5a113c['add'](_0x25baab)),Object[_0xd78ea8(0x1b3)](_0x406162[_0xd78ea8(0x4e0)])['forEach'](_0x58b8a3=>_0x5a113c[_0xd78ea8(0xe9)](_0x58b8a3)),Object[_0xd78ea8(0x1b3)](_0x406162['displayNameRecord'])[_0xd78ea8(0x1bd)](_0x372e82=>_0x5a113c[_0xd78ea8(0xe9)](_0x372e82));}function _0x3ba917(_0x2723f9,_0x210cb6,_0x2689c8,_0x315fb4,_0x298935){const _0x4f5a09=_0x55e150;let _0x4ac678=_0x635d25=>{const _0x574eb6=_0x274d;let _0x3d8c80=_0x2689c8[_0x574eb6(0x97)](_0x635d25);return _0x3d8c80||(_0x3d8c80=_0xa89c4c(_0x315fb4,_0x298935['dataField']),_0x2689c8['set'](_0x635d25,_0x3d8c80)),_0x3d8c80;};_0x2723f9['fieldIds']=_0x2723f9['fieldIds'][_0x4f5a09(0x1e6)](_0x4ac678),_0x2723f9[_0x4f5a09(0x4e0)]=_0x171e1e(_0x2723f9[_0x4f5a09(0x4e0)],_0x4ac678,_0xeb6a6=>_0x25914b(_0xeb6a6,_0x4ac678)),_0x2723f9['displayNameRecord']=_0x171e1e(_0x2723f9[_0x4f5a09(0x25c)],_0x4ac678,_0x3daa01=>_0x3daa01),_0x2723f9['customFields']=_0x2723f9[_0x4f5a09(0x1da)][_0x4f5a09(0x1e6)](_0x3f4636=>_0x25914b(_0x3f4636,_0x4ac678)),_0x210cb6[_0x4f5a09(0x3d4)]=_0x736374(_0x210cb6['dimension'],_0x4ac678),_0x210cb6[_0x4f5a09(0xa5)]=_0x736374(_0x210cb6[_0x4f5a09(0xa5)],_0x4ac678);}function _0x25914b(_0x3a43d6,_0x243ba3){const _0x3c88b7=_0x55e150;let _0x48666a=_0x243ba3(_0x3a43d6['id']);return _0x2a2b85(_0x3a43d6)?{..._0x3a43d6,'id':_0x48666a,'originalFieldId':_0x243ba3(_0x3a43d6[_0x3c88b7(0x244)])}:{..._0x3a43d6,'id':_0x48666a};}function _0x736374(_0x1b62a3,_0x5c6ef6){const _0x26ad48=_0x55e150;return Object['fromEntries'](Object[_0x26ad48(0x4f5)](_0x1b62a3)[_0x26ad48(0x1e6)](([_0x538124,_0x426411])=>[_0x538124,{..._0x426411,'dataFieldId':_0x5c6ef6(_0x426411[_0x26ad48(0x19d)])}]));}function _0x171e1e(_0xa2bea5,_0x37d75a,_0x4de7a3){const _0x589f9b=_0x55e150;return Object[_0x589f9b(0x338)](Object[_0x589f9b(0x4f5)](_0xa2bea5)[_0x589f9b(0x1e6)](([_0x111f6c,_0x2b7292])=>{let _0x43589b=_0x37d75a(_0x111f6c);return[_0x43589b,_0x4de7a3(_0x2b7292,_0x43589b)];}));}function _0xa89c4c(_0x3cc951,_0x22a0d2){const _0x2edea6=_0x55e150;let _0xee937f=_0x22a0d2();for(;_0x3cc951['has'](_0xee937f);)_0xee937f=_0x22a0d2();return _0x3cc951[_0x2edea6(0xe9)](_0xee937f),_0xee937f;}function _0x2a2b85(_0x48d6a7){return'originalFieldId'in _0x48d6a7;}var _0x2d5258=_0x55e150(0x4cd),_0x4acc43=_0x55e150(0x1bc);let _0x45e484={'id':_0x55e150(0x498),'type':_0x3f8283[_0x55e150(0x110)]['COMMAND'],'handler':(_0x4f20fe,_0x1f3f56)=>{const _0x14dd25=_0x55e150;if(!_0x1f3f56)return!0x1;let _0xdb5bf3=_0x4f20fe[_0x14dd25(0x97)](_0x3f8283['IUndoRedoService']),{unitId:_0x4b5709,subUnitId:_0x1e92f3,pivotTableId:_0x316d47,tableFieldId:_0x16e61c}=_0x1f3f56,_0x3e6e97=[],_0x4732b3=[],_0x25e737=_0x4f20fe[_0x14dd25(0x97)](_0x3de398),_0x1c3bea=_0x25e737[_0x14dd25(0x517)](_0x4b5709,_0x316d47),_0xe638b2=_0x25e737[_0x14dd25(0x3a8)](_0x4b5709,_0x1e92f3,_0x316d47);if(!(_0xe638b2!=null&&_0xe638b2[_0x14dd25(0x4ac)][_0x14dd25(0x3d4)]))return!0x1;let _0x3172a8=Object[_0x14dd25(0x20b)](_0xe638b2[_0x14dd25(0x4ac)][_0x14dd25(0x3d4)])[_0x14dd25(0x2da)](_0x39afb8=>_0x39afb8['id']===_0x16e61c);if(!_0x3172a8)return!0x1;let _0xcc725d=_0x3172a8[_0x14dd25(0x19d)];if(!(_0x1c3bea!=null&&_0x1c3bea[_0x14dd25(0x4e0)]))return!0x1;let _0x5e7ca5=Object[_0x14dd25(0x20b)](_0x1c3bea==null?void 0x0:_0x1c3bea[_0x14dd25(0x4e0)])[_0x14dd25(0x2da)](_0xfa99b8=>_0xfa99b8['id']===_0xcc725d);if(!_0x5e7ca5)return!0x1;(0x0,_0x4078f7[_0x14dd25(0x445)])(_0x5e7ca5)&&_0x3e6e97['push']({'id':_0x3eaff2['id'],'params':{..._0x1f3f56,'dateType':_0x5e7ca5[_0x14dd25(0x37f)]}}),_0x4732b3[_0x14dd25(0xc7)]({'id':_0x3eaff2['id'],'params':{..._0x1f3f56}});let _0x539083=_0x4f20fe[_0x14dd25(0x97)](_0x3f8283[_0x14dd25(0x3cb)]);return(0x0,_0x3f8283[_0x14dd25(0xb1)])(_0x4732b3,_0x539083)[_0x14dd25(0x487)]?(_0xdb5bf3[_0x14dd25(0x482)]({'unitID':_0x4b5709,'undoMutations':_0x3e6e97,'redoMutations':_0x4732b3}),!0x0):!0x1;}},_0xb1510c=class{constructor(_0x858c5c){const _0x2e227c=_0x55e150;this[_0x2e227c(0x36e)]=_0x858c5c,_0x418dd6(this,_0x2e227c(0x3cf),_0x3c97e0[_0x2e227c(0x17f)][_0x2e227c(0x185)]);}['isReference'](_0x3bf082){const _0x4196fa=_0x55e150;let _0x4fb31e=_0x3bf082;return _0x3bf082['kind']===_0x3c97e0[_0x4196fa(0x17f)][_0x4196fa(0x185)]&&typeof _0x4fb31e['ownerUnitId']=='string'&&_0x4fb31e[_0x4196fa(0x4b6)][_0x4196fa(0x337)]>0x0&&typeof _0x4fb31e[_0x4196fa(0x3ae)]==_0x4196fa(0x45c)&&_0x4fb31e['pivotCacheId']['length']>0x0;}[_0x55e150(0xba)](_0x5efab8){const _0x128e1c=_0x55e150;return this[_0x128e1c(0x36e)][_0x128e1c(0x285)](_0x5efab8[_0x128e1c(0x4b6)],_0x5efab8['pivotCacheId']);}};_0xb1510c=_0x174b33([_0x181d02(0x0,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x2fd000))],_0xb1510c);let _0x20f9c8=class extends _0x3f8283['Disposable']{constructor(_0x559206,_0x1a5b09){const _0x9d0e92=_0x55e150;super(),this['disposeWithMe'](_0x559206[_0x9d0e92(0x274)](_0x1a5b09));}};_0x20f9c8=_0x174b33([_0x181d02(0x0,(0x0,_0x3f8283['Inject'])(_0x3c97e0[_0x55e150(0x402)])),_0x181d02(0x1,(0x0,_0x3f8283['Inject'])(_0xb1510c))],_0x20f9c8);let _0x2d7aeb=class extends _0x3f8283['Disposable']{constructor(_0x3bff31,_0x5d7c06,_0x1679e9,_0xf428d){const _0x249350=_0x55e150;super(),this[_0x249350(0x42e)]=_0x3bff31,this[_0x249350(0x3c9)]=_0x5d7c06,this[_0x249350(0x47f)]=_0x1679e9,this[_0x249350(0x51b)]=_0xf428d,_0x418dd6(this,_0x249350(0x3b4),new _0x3f8283[(_0x249350(0x90))]()),this[_0x249350(0x12a)]();}[_0x55e150(0x12a)](){const _0x1343bb=_0x55e150;this['disposeWithMe'](this[_0x1343bb(0x3c9)][_0x1343bb(0xfe)]({'getMutations':_0x36d45c=>{const _0x463610=_0x1343bb;if(_0x36d45c['id']===_0x4b3c60['ClearSelectionContentCommand']['id']||_0x36d45c['id']===_0x4b3c60[_0x463610(0x41f)]['id']){let _0x27f039=[],_0x4e564e=[],_0x21df85=_0x36d45c['params'],_0x5e87e8=(_0x21df85==null?void 0x0:_0x21df85['ranges'])??this[_0x463610(0x47f)][_0x463610(0x440)]()[_0x463610(0x1e6)](_0x547a55=>_0x547a55[_0x463610(0x322)]),_0x3d2d55=(0x0,_0x4b3c60[_0x463610(0x28f)])(this[_0x463610(0x42e)],_0x21df85);if(!_0x3d2d55)return{'redos':[],'undos':[]};let {unitId:_0xa833b0,subUnitId:_0x11388a}=_0x3d2d55,_0x1aa9b6={},_0x7be1b6=this[_0x463610(0x51b)][_0x463610(0x1ec)](_0xa833b0,_0x11388a);if(_0x7be1b6!=null&&_0x7be1b6[_0x463610(0xef)])for(let [_0x3c1766,_0x28d9b5]of _0x7be1b6){let {unitId:_0x42da1d,subUnitId:_0x40e4a0,row:_0x45b265,col:_0x386b8e}=_0x28d9b5['targetCellInfo'];_0x42da1d===_0x3d2d55[_0x463610(0xa0)]&&_0x40e4a0===_0x3d2d55[_0x463610(0x2d0)]&&(_0x1aa9b6[_0x45b265+'-'+_0x386b8e]=_0x3c1766);}return _0x5e87e8&&_0x3d2d55&&_0x5e87e8['forEach'](_0x346dfb=>{const _0x3633b3=_0x463610;_0x3f8283['Range'][_0x3633b3(0x4ba)](_0x346dfb,(_0xf966f4,_0x324c0d)=>{const _0x2540b7=_0x3633b3;let _0x262231=_0xf966f4+'-'+_0x324c0d;if(_0x1aa9b6[_0x262231]){let _0x404af8=_0x1aa9b6[_0x262231];delete _0x1aa9b6[_0x262231],_0x27f039[_0x2540b7(0xc7)]({'id':_0x4532a7['id'],'params':{'unitId':_0xa833b0,'subUnitId':_0x11388a,'pivotTableId':_0x404af8}});let _0x3979e9=this[_0x2540b7(0x51b)][_0x2540b7(0x517)](_0xa833b0,_0x404af8),_0x3d0284=this['_sheetsPivotTableConfigModel'][_0x2540b7(0x3a8)](_0xa833b0,_0x11388a,_0x404af8);_0x4e564e[_0x2540b7(0xc7)]({'id':_0x36d11c['id'],'params':{'unitId':_0xa833b0,'subUnitId':_0x11388a,'pivotTableId':_0x404af8,'pivotTableConfig':_0x3d0284,'collectionConfig':_0x3979e9}});}});}),{'redos':_0x27f039,'undos':_0x4e564e};}return{'redos':[],'undos':[]};}}));}};_0x2d7aeb=_0x174b33([_0x181d02(0x0,_0x3f8283[_0x55e150(0x362)]),_0x181d02(0x1,(0x0,_0x3f8283['Inject'])(_0x4b3c60[_0x55e150(0x1ac)])),_0x181d02(0x2,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x4b3c60[_0x55e150(0x26a)])),_0x181d02(0x3,(0x0,_0x3f8283['Inject'])(_0x3de398))],_0x2d7aeb);let _0x447599=class extends _0x3f8283[_0x55e150(0xc4)]{constructor(_0x5c5e6a,_0x3c0102){const _0x23ea3e=_0x55e150;super(),this[_0x23ea3e(0x3c9)]=_0x5c5e6a,this[_0x23ea3e(0x51b)]=_0x3c0102,this[_0x23ea3e(0x4d2)]();}[_0x55e150(0x4d2)](){const _0x14728e=_0x55e150;this[_0x14728e(0x213)](this['_sheetInterceptorService'][_0x14728e(0xfe)]({'getMutations':_0x4d490d=>{const _0x5f3230=_0x14728e;if(_0x4d490d['id']!==_0x4b3c60[_0x5f3230(0x9f)]['id'])return{'redos':[],'undos':[]};let {unitId:_0x5a5c0c,subUnitId:_0x2d81b0,targetSubUnitId:_0x53e355,targetSubUnitName:_0x26b276,copyContext:_0x4a0ece}=_0x4d490d[_0x5f3230(0x305)];if(!_0x5a5c0c||!_0x2d81b0||!_0x53e355||!_0x26b276)return{'redos':[],'undos':[]};let _0x374c0f=this[_0x5f3230(0x51b)]['getSubUnitPivotConfigs'](_0x5a5c0c,_0x2d81b0);if(!(_0x374c0f!=null&&_0x374c0f[_0x5f3230(0xef)]))return{'redos':[],'undos':[]};let _0x8f6152=[];for(let [_0x324da1,_0x13d17b]of _0x374c0f){let _0x543d6d=this[_0x5f3230(0x51b)][_0x5f3230(0x517)](_0x5a5c0c,_0x324da1);_0x543d6d&&_0x8f6152['push']({'pivotTableId':_0x324da1,'pivotTableConfig':_0x13d17b,'collectionConfig':_0x543d6d});}let _0xf6b4b1=_0x25f272(_0x4a0ece,_0x8f6152,{'unitId':_0x5a5c0c,'sourceSubUnitId':_0x2d81b0,'targetSubUnitId':_0x53e355,'targetSubUnitName':_0x26b276}),_0x547e5a=[],_0x47356c=[];for(let _0x196150 of _0xf6b4b1['entries'])_0x547e5a['push']({'id':_0x36d11c['id'],'params':{'unitId':_0x5a5c0c,'subUnitId':_0x53e355,'pivotTableId':_0x196150[_0x5f3230(0x173)],'pivotTableConfig':_0x196150[_0x5f3230(0x98)],'collectionConfig':_0x196150[_0x5f3230(0x1ad)]}}),_0x47356c['push']({'id':_0x4532a7['id'],'params':{'unitId':_0x5a5c0c,'subUnitId':_0x53e355,'pivotTableId':_0x196150[_0x5f3230(0x173)]}});return{'redos':_0x547e5a,'undos':_0x47356c};}}));}};_0x447599=_0x174b33([_0x181d02(0x0,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x4b3c60[_0x55e150(0x1ac)])),_0x181d02(0x1,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x3de398))],_0x447599);let _0x433660=class extends _0x3f8283[_0x55e150(0xc4)]{constructor(_0x25807b,_0x165005,_0xcce5e8,_0x4de3d2,_0x38a227){const _0x433876=_0x55e150;super(),this[_0x433876(0x3c9)]=_0x25807b,this['_injector']=_0x165005,this[_0x433876(0x42e)]=_0xcce5e8,this[_0x433876(0x51b)]=_0x4de3d2,this[_0x433876(0x321)]=_0x38a227,this[_0x433876(0x314)]();}[_0x55e150(0x380)](_0x3cabcd,_0x4a1b3e,_0x3be634){const _0x4ce0fa=_0x55e150;return _0x2aaa64(_0x3cabcd,_0x4a1b3e,_0x3be634,this[_0x4ce0fa(0x1f7)]['get'](_0x3f8283[_0x4ce0fa(0x232)])[_0x4ce0fa(0x127)]());}[_0x55e150(0x314)](){const _0xa77cce=_0x55e150;this[_0xa77cce(0x213)](this[_0xa77cce(0x321)][_0xa77cce(0x497)][_0xa77cce(0x50a)](this[_0xa77cce(0x321)]['interceptor'][_0xa77cce(0x4f3)]()[_0xa77cce(0x382)],{'handler':(_0x2597fd,_0x1f48d3)=>{const _0x129d5a=_0xa77cce;let {cellInfo:_0x2ada1d,view:_0x5285db,isEmpty:_0x563837}=_0x1f48d3,{unitId:_0xa512d4,subUnitId:_0x982114}=_0x2ada1d,_0x20f767=this['_getPivotAppliedRanges'](_0x2ada1d,_0x5285db,_0x563837),_0x1fd8de=this['_sheetInterceptorService'][_0x129d5a(0x167)]({'unitId':_0xa512d4,'subUnitId':_0x982114,'ranges':_0x20f767}),_0x2aacaf=_0x51a117(this[_0x129d5a(0x1f7)],_0xa512d4,_0x982114,_0x20f767);if(_0x2aacaf[_0x129d5a(0x29f)]&&(_0x1fd8de[_0x129d5a(0x430)][_0x129d5a(0xc7)](_0x2aacaf[_0x129d5a(0xe1)]),_0x1fd8de[_0x129d5a(0x371)][_0x129d5a(0xc7)](_0x2aacaf[_0x129d5a(0x49a)])),!_0x563837){let _0x528cb2=this[_0x129d5a(0x24c)](_0x5285db,_0x2ada1d);_0x1fd8de[_0x129d5a(0x430)][_0x129d5a(0xc7)](..._0x528cb2['redos']),_0x1fd8de[_0x129d5a(0x371)]['push'](..._0x528cb2['undos']);}return{'redos':[..._0x1fd8de[_0x129d5a(0x2c4)]??[],..._0x1fd8de[_0x129d5a(0x430)]],'undos':[..._0x1fd8de[_0x129d5a(0x239)]??[],..._0x1fd8de[_0x129d5a(0x371)]]};}}));}['getAutoFitColumnsMutations'](_0x30328d,_0x39fd35){const _0x32fc54=_0x55e150;var _0x4e5b27;let {col:_0x4b3d39,unitId:_0x588264,subUnitId:_0x1cc58c}=_0x39fd35,_0x4a8aa7=[],_0xdd15b5=[],_0x19a31a=(0x0,_0x4b3c60['getSheetCommandTarget'])(this[_0x32fc54(0x42e)],{'unitId':_0x588264,'subUnitId':_0x1cc58c});if(!_0x39fd35||!_0x30328d||!_0x19a31a)return{'undos':_0xdd15b5,'redos':_0x4a8aa7};let _0x3a2fa2=this[_0x32fc54(0x51b)]['getTextInfo'](),_0x3100bc=Array['from'](((_0x4e5b27=this[_0x32fc54(0x51b)][_0x32fc54(0x1ec)](_0x588264,_0x1cc58c))==null?void 0x0:_0x4e5b27[_0x32fc54(0x20b)]())??[])[_0x32fc54(0x2da)](_0x517026=>_0x517026[_0x32fc54(0xf0)][_0x32fc54(0x18e)]===_0x39fd35[_0x32fc54(0x18e)]&&_0x517026['targetCellInfo']['col']===_0x39fd35[_0x32fc54(0xf9)]),{worksheet:_0x4e2da9}=_0x19a31a;if(typeof window<'u'&&window[_0x32fc54(0x254)]){var _0x203164;let _0x1c0059=(0x0,_0x4c9f24[_0x32fc54(0x51e)])({..._0x5e94f9['colStyle']}),_0x1faaf3=_0x374ed9(_0x30328d,_0x4b3d39,this[_0x32fc54(0x1f7)][_0x32fc54(0x97)](_0x3f8283[_0x32fc54(0x232)])[_0x32fc54(0x127)]()),_0x2e8cc8=_0x1faaf3['endColumn']-_0x1faaf3[_0x32fc54(0x2fc)]+0x1,_0x3c6e0b={},_0x53b714=_0x3bf4a5(_0x30328d,_0x4b3d39,_0x1faaf3['direction'],_0x3a2fa2,_0x1ff9c0=>_0x4c9f24[_0x32fc54(0x2fa)][_0x32fc54(0x399)](_0x1ff9c0,_0x1c0059)[_0x32fc54(0x1b2)],_0x3100bc==null?void 0x0:_0x3100bc['fieldsConfig'][_0x32fc54(0xee)],(_0x203164=this[_0x32fc54(0x42e)][_0x32fc54(0x34e)](_0x588264))==null?void 0x0:_0x203164[_0x32fc54(0x51d)]());Object[_0x32fc54(0x1b3)](_0x53b714)[_0x32fc54(0x1bd)](_0x41e56c=>{let _0x52d752=Number(_0x41e56c),_0x17dd64=_0x4e2da9['getColumnWidth'](_0x52d752);_0x3c6e0b[_0x52d752]=_0x17dd64;}),_0x4a8aa7[_0x32fc54(0xc7)]({'id':_0x4b3c60[_0x32fc54(0x375)]['id'],'params':{'subUnitId':_0x1cc58c,'unitId':_0x588264,'ranges':[{'startColumn':_0x4b3d39,'endColumn':_0x4b3d39+_0x2e8cc8-0x1,'startRow':0x0,'endRow':_0x4e2da9[_0x32fc54(0x484)]()-0x1}],'colWidth':_0x53b714}}),_0xdd15b5['push']({'id':_0x4b3c60[_0x32fc54(0x375)]['id'],'params':{'subUnitId':_0x1cc58c,'unitId':_0x588264,'ranges':[{'startColumn':_0x4b3d39,'endColumn':_0x4b3d39+_0x2e8cc8-0x1,'startRow':0x0,'endRow':_0x4e2da9[_0x32fc54(0x484)]()-0x1}],'colWidth':_0x3c6e0b}});}return{'undos':_0xdd15b5,'redos':_0x4a8aa7};}};_0x433660=_0x174b33([_0x181d02(0x0,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x4b3c60[_0x55e150(0x1ac)])),_0x181d02(0x1,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x3f8283[_0x55e150(0x1c6)])),_0x181d02(0x2,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x3f8283[_0x55e150(0x362)])),_0x181d02(0x3,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x3de398)),_0x181d02(0x4,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x462162))],_0x433660);let _0x230c6a=class extends _0x3f8283[_0x55e150(0xc4)]{constructor(_0x266d85,_0x16f2f1,_0x59405d,_0x23aff3,_0xb5fd0,_0x5059f8,_0x18ab7b){const _0x3210a5=_0x55e150;super(),this[_0x3210a5(0x1f7)]=_0x266d85,this[_0x3210a5(0x3fe)]=_0x16f2f1,this[_0x3210a5(0x466)]=_0x59405d,this['_univerInstanceService']=_0x23aff3,this[_0x3210a5(0x51b)]=_0xb5fd0,this[_0x3210a5(0x2c8)]=_0x5059f8,this[_0x3210a5(0x3c9)]=_0x18ab7b,_0x418dd6(this,_0x3210a5(0x3b4),new _0x3f8283[(_0x3210a5(0x90))]()),this['disposeWithMe'](this['disposableCollection']),this[_0x3210a5(0x446)](),this['disposeWithMe'](this['_sheetInterceptorService'][_0x3210a5(0xfe)]({'getMutations':_0x1434e1=>[_0x4b3c60[_0x3210a5(0x205)]['id'],_0x4b3c60[_0x3210a5(0x3a4)]['id'],_0x4b3c60['InsertRowCommand']['id'],_0x4b3c60[_0x3210a5(0x156)]['id']]['includes'](_0x1434e1['id'])?this[_0x3210a5(0xdb)](_0x1434e1[_0x3210a5(0x305)],_0x1434e1['id']===_0x4b3c60[_0x3210a5(0x205)]['id']||_0x1434e1['id']===_0x4b3c60[_0x3210a5(0x406)]['id'],_0x1434e1['id']===_0x4b3c60[_0x3210a5(0x406)]['id']||_0x1434e1['id']===_0x4b3c60[_0x3210a5(0x156)]['id']):{'redos':[],'undos':[]}}));}['_getStructureMutations'](_0x44eeb0,_0x48b4d4,_0xe26198){const _0x41d543=_0x55e150;let _0x263f3f=(0x0,_0x4b3c60['getSheetCommandTarget'])(this['_univerInstanceService'],_0x44eeb0),_0x20c798=[],_0x243879=[];if(!_0x263f3f)return{'redos':_0x20c798,'undos':_0x243879};let _0x5281e0=_0xe26198?_0x41d543(0x33e):_0x41d543(0x2fc),_0x109c7d=_0xe26198?'endRow':_0x41d543(0x221),_0x4f42a5=_0x44eeb0[_0x41d543(0x322)][_0x5281e0],_0x42ca08=_0x44eeb0[_0x41d543(0x322)][_0x109c7d],_0x272a60=_0x42ca08-_0x4f42a5+0x1,_0x53cc1a=_0xe9da2c=>_0xe9da2c<_0x4f42a5?_0xe9da2c:_0x48b4d4?_0xe9da2c+_0x272a60:Math[_0x41d543(0x226)](_0x4f42a5,_0xe9da2c-_0x272a60),_0x24d05c=new Map(),_0x2caa90=this['_injector'][_0x41d543(0x97)](_0x3f8283[_0x41d543(0x2e6)])[_0x41d543(0x23f)](_0x41d543(0x111))?void 0x0:this[_0x41d543(0x1f7)][_0x41d543(0x97)](_0x30eff7);for(let _0x56b28c of _0x263f3f[_0x41d543(0x50b)]['getSheets']()){let _0x168af6=(_0x2caa90??this[_0x41d543(0x51b)])['getSubUnitPivotConfigs'](_0x263f3f[_0x41d543(0xa0)],_0x56b28c[_0x41d543(0x4ec)]());for(let [_0x47dcb0,_0xada53c]of _0x168af6??[]){let _0x2c593c={'unitId':_0x263f3f[_0x41d543(0xa0)],'subUnitId':_0x56b28c[_0x41d543(0x4ec)](),'pivotTableId':_0x47dcb0},_0x4d0851=_0xada53c['sourceRangeInfo'],_0x2ae237=_0x4d0851[_0x41d543(0x322)];if(_0x4d0851[_0x41d543(0xa0)]===_0x263f3f[_0x41d543(0xa0)]&&_0x4d0851[_0x41d543(0x2d0)]===_0x263f3f[_0x41d543(0x2d0)]&&_0x4f42a5<=_0x2ae237[_0x109c7d]){var _0x5cce2d;let _0x1dd76c=_0x2caa90?(_0x5cce2d=_0x2caa90['getCollection'](_0x4d0851[_0x41d543(0xa0)],_0x47dcb0))==null?void 0x0:_0x5cce2d['toJSON']():this[_0x41d543(0x51b)][_0x41d543(0x517)](_0x4d0851[_0x41d543(0xa0)],_0x47dcb0);if(!_0x1dd76c)continue;let _0x2ed728=_0x3f8283[_0x41d543(0xe7)]['deepClone'](_0x1dd76c),_0x270fa2=[],_0x1d06fc={..._0x2ae237};if(_0x1d06fc[_0x5281e0]=_0x53cc1a(_0x2ae237[_0x5281e0]),_0x1d06fc[_0x109c7d]=_0x48b4d4?_0x53cc1a(_0x2ae237[_0x109c7d]):_0x2ae237[_0x109c7d]-Math[_0x41d543(0x226)](0x0,Math['min'](_0x42ca08,_0x2ae237[_0x109c7d])-_0x4f42a5+0x1),_0x1d06fc[_0x109c7d]<_0x1d06fc[_0x5281e0])continue;if(!_0xe26198&&_0x48b4d4&&_0x4f42a5>_0x2ae237['startColumn']){let _0x4a6d46=_0xada53c[_0x41d543(0x3ae)]??_0x47dcb0,_0x6689b3=_0x24d05c[_0x41d543(0x97)](_0x4a6d46);_0x6689b3||(_0x6689b3=Array['from']({'length':_0x272a60},(_0x216826,_0x69c14d)=>new _0x4078f7['DataField']((0x0,_0x3f8283[_0x41d543(0x412)])(),(0x0,_0x3f8283['numberToABC'])(_0x4f42a5+_0x69c14d),(0x0,_0x4078f7['generateHexNumber'])(0x3))[_0x41d543(0x4b3)]()),_0x24d05c['set'](_0x4a6d46,_0x6689b3)),_0x2ed728[_0x41d543(0x1f3)]['splice'](_0x4f42a5-_0x2ae237[_0x41d543(0x2fc)],0x0,..._0x6689b3[_0x41d543(0x1e6)](_0x52cc25=>_0x52cc25['id']));for(let _0x156893 of _0x6689b3)_0x2ed728[_0x41d543(0x4e0)][_0x156893['id']]=_0x156893,_0x2ed728['displayNameRecord'][_0x156893['id']]=_0x156893[_0x41d543(0x20e)];}else{if(!_0xe26198&&!_0x48b4d4){let _0x26eaea=Math[_0x41d543(0x226)](_0x4f42a5,_0x2ae237[_0x41d543(0x2fc)])-_0x2ae237[_0x41d543(0x2fc)],_0x2ab99e=_0x2ed728[_0x41d543(0x1f3)][_0x41d543(0x44d)](_0x26eaea,Math[_0x41d543(0x226)](0x0,Math[_0x41d543(0x52a)](_0x42ca08,_0x2ae237[_0x41d543(0x221)])-Math[_0x41d543(0x226)](_0x4f42a5,_0x2ae237['startColumn'])+0x1)),_0x581af6=this[_0x41d543(0x15e)](_0x2c593c,_0xada53c,new Set(_0x2ab99e));_0x20c798[_0x41d543(0xc7)](..._0x581af6[_0x41d543(0x430)]),_0x270fa2[_0x41d543(0xc7)](..._0x581af6[_0x41d543(0x371)]);for(let _0x24e6d9 of _0x2ab99e)delete _0x2ed728[_0x41d543(0x4e0)][_0x24e6d9],delete _0x2ed728[_0x41d543(0x25c)][_0x24e6d9];}}let _0x21ab3a={..._0x4d0851,'range':_0x1d06fc};_0x2ed728['range']=_0x21ab3a;let _0x52d665={..._0x2c593c,'pivotCacheId':_0xada53c[_0x41d543(0x3ae)],'preserveCacheId':!0x0,'deleteIds':[]};_0x20c798[_0x41d543(0xc7)]({'id':_0x229511['id'],'params':{..._0x52d665,'collectionJSON':_0x2ed728,'dataRangeInfo':_0x21ab3a}}),_0x243879[_0x41d543(0xc7)]({'id':_0x229511['id'],'params':{..._0x52d665,'collectionJSON':_0x3f8283[_0x41d543(0xe7)][_0x41d543(0x1e3)](_0x1dd76c),'dataRangeInfo':_0x3f8283[_0x41d543(0xe7)]['deepClone'](_0x4d0851)}}),_0x243879[_0x41d543(0xc7)](..._0x270fa2);}if(_0xada53c[_0x41d543(0xf0)][_0x41d543(0x2d0)]===_0x263f3f[_0x41d543(0x2d0)]){let {row:_0x5b9989,col:_0x2f746e}=_0xada53c[_0x41d543(0xf0)],_0x2b7bd9=_0xe26198?{'row':_0x53cc1a(_0x5b9989),'col':_0x2f746e}:{'row':_0x5b9989,'col':_0x53cc1a(_0x2f746e)};(_0x2b7bd9[_0x41d543(0x18e)]!==_0x5b9989||_0x2b7bd9[_0x41d543(0xf9)]!==_0x2f746e)&&(_0x20c798[_0x41d543(0xc7)]({'id':_0x732d12['id'],'params':{..._0x2c593c,'targetCellPosition':_0x2b7bd9}}),_0x243879[_0x41d543(0xc7)]({'id':_0x732d12['id'],'params':{..._0x2c593c,'targetCellPosition':{'row':_0x5b9989,'col':_0x2f746e}}}));}}}return{'redos':_0x20c798,'undos':_0x243879};}[_0x55e150(0x15e)](_0x499ef8,_0x329116,_0x5b733a){const _0x260e03=_0x55e150;let _0x29f0b1=[],_0x3abfc3=[];for(let _0x57f9d5 of[_0x4078f7[_0x260e03(0x149)][_0x260e03(0x438)],_0x4078f7['PivotTableFiledAreaEnum'][_0x260e03(0x142)],_0x4078f7[_0x260e03(0x149)][_0x260e03(0x423)],_0x4078f7['PivotTableFiledAreaEnum'][_0x260e03(0x44a)],_0x4078f7[_0x260e03(0x149)][_0x260e03(0x2a0)]])_0x34528a(_0x329116['fieldsConfig'],_0x57f9d5)[_0x260e03(0x1bd)]((_0x2c00d3,_0x2dd544)=>{const _0x487c10=_0x260e03;let _0x2a716e=_0x329116[_0x487c10(0x4ac)]['measure'][_0x2c00d3]??_0x329116[_0x487c10(0x4ac)][_0x487c10(0x3d4)][_0x2c00d3];_0x2a716e&&_0x5b733a[_0x487c10(0x16c)](_0x2a716e[_0x487c10(0x19d)])&&(_0x29f0b1['push']({'id':_0x3bb375['id'],'params':{..._0x499ef8,'fieldId':_0x2c00d3,'area':_0x57f9d5,'index':_0x2dd544}}),_0x3abfc3[_0x487c10(0xc7)]({'id':_0x4def4f['id'],'params':{..._0x499ef8,'fieldJson':_0x3f8283[_0x487c10(0xe7)]['deepClone'](_0x2a716e),'area':_0x57f9d5,'index':_0x2dd544}}));});return{'redos':_0x29f0b1,'undos':_0x3abfc3};}[_0x55e150(0x446)](){const _0x1e00ad=_0x55e150;let _0x9e1fc6=(_0x1918f5,_0x417630)=>{const _0x538005=_0x274d;let _0x55cb20=this['_univerInstanceService'][_0x538005(0x11b)](_0x3f8283['UniverInstanceType'][_0x538005(0x198)]);if(!_0x55cb20||!(_0x55cb20!=null&&_0x55cb20[_0x538005(0x176)](_0x417630)))return;this[_0x538005(0x3b4)][_0x538005(0x3f4)]();let _0x32f68f=_0x14b2b0=>this['_refRangeHandle'](_0x14b2b0,_0x1918f5,_0x417630),_0x145cfa=this[_0x538005(0x51b)][_0x538005(0x1ec)](_0x1918f5,_0x417630);_0x145cfa!=null&&_0x145cfa['size']&&Array[_0x538005(0x91)](_0x145cfa['values']())[_0x538005(0x1e6)](_0x250e68=>{const _0x2f98af=_0x538005;let {row:_0x2cf9a2,col:_0x22bdd7}=_0x250e68[_0x2f98af(0xf0)];return(0x0,_0x3f8283[_0x2f98af(0x309)])(_0x2cf9a2,_0x22bdd7);})['forEach'](_0x26d3e3=>{const _0x19c2ea=_0x538005;this[_0x19c2ea(0x3b4)]['add'](this[_0x19c2ea(0x3fe)][_0x19c2ea(0x4f6)](_0x26d3e3,_0x32f68f,_0x1918f5,_0x417630));});},_0xd4281a=()=>{const _0xa29bd4=_0x274d;let _0x287e5d=this[_0xa29bd4(0x42e)][_0xa29bd4(0x11b)](_0x3f8283[_0xa29bd4(0x2f9)][_0xa29bd4(0x198)]);if(_0x287e5d){let _0x5b3139=_0x287e5d[_0xa29bd4(0x13b)]();if(!_0x5b3139)return;_0x9e1fc6(_0x287e5d['getUnitId'](),_0x5b3139[_0xa29bd4(0x4ec)]());}};this[_0x1e00ad(0x213)](this['_commandService'][_0x1e00ad(0x44c)](_0x29b444=>{const _0x1c0142=_0x1e00ad;if(_0x29b444['id']===_0x4b3c60['SetWorksheetActiveOperation']['id']){let _0x346d2b=_0x29b444['params'],_0x497720=_0x346d2b['subUnitId'],_0xd98ef1=_0x346d2b[_0x1c0142(0xa0)];if(!_0x497720||!_0xd98ef1)return;_0x9e1fc6(_0xd98ef1,_0x497720);}})),this[_0x1e00ad(0x213)](this[_0x1e00ad(0x51b)][_0x1e00ad(0x1c8)][_0x1e00ad(0x192)](_0x1a447b=>{_0x1a447b&&_0xd4281a();})),this['disposeWithMe'](this[_0x1e00ad(0x51b)][_0x1e00ad(0x259)][_0x1e00ad(0x192)](_0x3c7529=>{const _0x5de8cb=_0x1e00ad;let _0x4cd006=(0x0,_0x4b3c60['getSheetCommandTarget'])(this[_0x5de8cb(0x42e)],{'unitId':_0x3c7529[_0x5de8cb(0xa0)],'subUnitId':_0x3c7529[_0x5de8cb(0x2d0)]});if(!_0x4cd006)return;let {unitId:_0x1509b1,subUnitId:_0x912380}=_0x4cd006,{unitId:_0x403362,subUnitId:_0x5593d8}=_0x3c7529;_0x1509b1===_0x403362&&_0x912380===_0x5593d8&&_0x9e1fc6(_0x1509b1,_0x912380);})),_0xd4281a();}['_refRangeHandle'](_0x4b5c4c,_0x1ba93c,_0x143fb4){const _0x4347e3=_0x55e150;switch(_0x4b5c4c['id']){case _0x4b3c60[_0x4347e3(0x515)]['id']:return this[_0x4347e3(0x1d2)](_0x4b5c4c[_0x4347e3(0x305)],_0x1ba93c,_0x143fb4);}return{'redos':[],'undos':[]};}[_0x55e150(0x1d2)](_0x3ce20c,_0x5e8d2c,_0x5423a1){const _0x32ca54=_0x55e150;let {fromRange:_0x1bc3e7,toRange:_0x5b0256}=_0x3ce20c,_0x4ea749=[],_0x5e46a2=[],_0x49936a=(0x0,_0x4b3c60[_0x32ca54(0x28f)])(this['_univerInstanceService']);if(!_0x49936a||_0x5e8d2c!==_0x49936a['unitId']||_0x5423a1!==_0x49936a[_0x32ca54(0x2d0)])return{'undos':_0x5e46a2,'redos':_0x4ea749};let _0xfcb1e=this[_0x32ca54(0x51b)][_0x32ca54(0x1ec)](_0x5e8d2c,_0x5423a1);if(_0xfcb1e!=null&&_0xfcb1e[_0x32ca54(0xef)])for(let [_0x3b42c9,_0x3756b8]of _0xfcb1e){let {unitId:_0x1694fc,subUnitId:_0x3c6620,row:_0x203fc4,col:_0xddd213}=_0x3756b8[_0x32ca54(0xf0)];if(_0x1694fc===_0x49936a[_0x32ca54(0xa0)]&&_0x3c6620===_0x49936a['subUnitId']){let _0x3c86f4=(0x0,_0x3f8283[_0x32ca54(0x309)])(_0x203fc4,_0xddd213);if(_0x3f8283['Rectangle'][_0x32ca54(0x2ac)](_0x3c86f4,_0x1bc3e7)){let _0x3f79e9=_0x203fc4-_0x1bc3e7[_0x32ca54(0x33e)],_0x4f35f3=_0xddd213-_0x1bc3e7[_0x32ca54(0x2fc)],_0x41d50a={'row':_0x5b0256[_0x32ca54(0x33e)]+_0x3f79e9,'col':_0x5b0256[_0x32ca54(0x2fc)]+_0x4f35f3};_0x4ea749[_0x32ca54(0xc7)]({'id':_0x732d12['id'],'params':{'unitId':_0x1694fc,'subUnitId':_0x3c6620,'pivotTableId':_0x3b42c9,'targetCellPosition':_0x41d50a}}),_0x5e46a2[_0x32ca54(0xc7)]({'id':_0x732d12['id'],'params':{'unitId':_0x1694fc,'subUnitId':_0x3c6620,'pivotTableId':_0x3b42c9,'targetCellPosition':{'row':_0x203fc4,'col':_0xddd213}}});let _0x5662ef=_0x41d50a[_0x32ca54(0x18e)]-_0x203fc4,_0x35e4e5=_0x41d50a[_0x32ca54(0xf9)]-_0xddd213,_0x5ceded=[],_0x3dccb4=this[_0x32ca54(0x2c8)][_0x32ca54(0x501)](_0x1694fc,_0x3c6620,_0x3b42c9),_0xb079bd=_0x3dccb4==null?void 0x0:_0x3dccb4['rangesInfo'];if(_0xb079bd){Object[_0x32ca54(0x1b3)](_0xb079bd)[_0x32ca54(0x1bd)](_0x2e47bd=>{const _0x4f3c25=_0x32ca54;_0xb079bd[_0x2e47bd][_0x4f3c25(0x1bd)](_0x2d66d3=>{const _0xd17ddc=_0x4f3c25;let _0x458074={..._0x2d66d3};_0x458074[_0xd17ddc(0x33e)]=_0x2d66d3[_0xd17ddc(0x33e)]+_0x5662ef,_0x458074['endRow']=_0x2d66d3[_0xd17ddc(0x315)]+_0x5662ef,_0x458074[_0xd17ddc(0x2fc)]=_0x2d66d3[_0xd17ddc(0x2fc)]+_0x35e4e5,_0x458074[_0xd17ddc(0x221)]=_0x2d66d3[_0xd17ddc(0x221)]+_0x35e4e5,_0x5ceded['push'](_0x458074);});});let _0x4595a1=this[_0x32ca54(0x3c9)][_0x32ca54(0x167)]({'unitId':_0x1694fc,'subUnitId':_0x3c6620,'ranges':_0x5ceded});_0x4ea749[_0x32ca54(0xc7)](..._0x4595a1[_0x32ca54(0x430)]),_0x5e46a2['push'](..._0x4595a1[_0x32ca54(0x371)]);let _0x2ebe16=_0x51a117(this[_0x32ca54(0x1f7)],_0x1694fc,_0x3c6620,_0x5ceded);_0x2ebe16['shouldClear']&&(_0x4ea749[_0x32ca54(0xc7)](_0x2ebe16['setRangeValueRedoMutation']),_0x5e46a2[_0x32ca54(0xc7)](_0x2ebe16[_0x32ca54(0x49a)]));}}}}return{'redos':_0x4ea749,'undos':_0x5e46a2};}};_0x230c6a=_0x174b33([_0x181d02(0x0,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x3f8283[_0x55e150(0x1c6)])),_0x181d02(0x1,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x4b3c60[_0x55e150(0x2a3)])),_0x181d02(0x2,_0x3f8283[_0x55e150(0x3cb)]),_0x181d02(0x3,_0x3f8283['IUniverInstanceService']),_0x181d02(0x4,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x3de398)),_0x181d02(0x5,(0x0,_0x3f8283['Inject'])(_0x505163)),_0x181d02(0x6,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x4b3c60['SheetInterceptorService']))],_0x230c6a);let _0xc7bbb0=class extends _0x3f8283[_0x55e150(0xc4)]{constructor(_0x2842b9,_0x8bc4f){const _0x360c3a=_0x55e150;super(),this['_sheetInterceptorService']=_0x2842b9,this[_0x360c3a(0x51b)]=_0x8bc4f,this[_0x360c3a(0x2e1)]();}['_initRemoveSheetCommandInterceptor'](){const _0x55f974=_0x55e150;this[_0x55f974(0x213)](this[_0x55f974(0x3c9)]['interceptCommand']({'getMutations':_0x27292c=>{const _0x5e9b6c=_0x55f974;if(_0x27292c['id']===_0x4b3c60[_0x5e9b6c(0x4bc)]['id']){let _0x17569d=[],_0x2810db=[],{unitId:_0x4d5b41,subUnitId:_0x2b321c}=_0x27292c['params'];if(!_0x4d5b41||!_0x2b321c)return{'undos':_0x2810db,'redos':_0x17569d};let _0x17c012=this[_0x5e9b6c(0x51b)]['getSubUnitPivotConfigs'](_0x4d5b41,_0x2b321c);if(_0x17c012!=null&&_0x17c012[_0x5e9b6c(0xef)])for(let [_0x395039,_0x51b51a]of _0x17c012){_0x17569d[_0x5e9b6c(0xc7)]({'id':_0x4532a7['id'],'params':{'unitId':_0x4d5b41,'subUnitId':_0x2b321c,'pivotTableId':_0x395039}});let _0x1e3d07={...this[_0x5e9b6c(0x51b)]['getCollection'](_0x4d5b41,_0x395039)};_0x2810db['push']({'id':_0x36d11c['id'],'params':{'unitId':_0x4d5b41,'subUnitId':_0x2b321c,'pivotTableId':_0x395039,'pivotTableConfig':_0x51b51a,'collectionConfig':_0x1e3d07}});}return{'redos':_0x17569d,'undos':_0x2810db};}return{'redos':[],'undos':[]};}}));}};_0xc7bbb0=_0x174b33([_0x181d02(0x0,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x4b3c60['SheetInterceptorService'])),_0x181d02(0x1,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x3de398))],_0xc7bbb0);let _0x3572b3=class extends _0x3f8283[_0x55e150(0xc4)]{constructor(_0x3b64fb,_0x4b51d7,_0x42d1b6,_0xdf262b,_0x54f483,_0x5e0aa9,_0x17e710){const _0x54d7b0=_0x55e150;var _0x34e345;super(),this[_0x54d7b0(0x466)]=_0x3b64fb,this[_0x54d7b0(0x4e3)]=_0x4b51d7,this[_0x54d7b0(0x2c8)]=_0x42d1b6,this['_sheetsPivotTableConfigModel']=_0xdf262b,this[_0x54d7b0(0x310)]=_0x54f483,this[_0x54d7b0(0x2f4)]=_0x5e0aa9,this[_0x54d7b0(0x42e)]=_0x17e710,_0x418dd6(this,_0x54d7b0(0x47c),new Map()),_0x418dd6(this,_0x54d7b0(0x3bb),0x0),this['_initDataSendListener'](),this[_0x54d7b0(0x374)](),((_0x34e345=this[_0x54d7b0(0x2f4)]['getConfig'](_0x54d7b0(0x422)))==null?void 0x0:_0x34e345[_0x54d7b0(0x37c)])===!0x0&&this['_initRuntimeLifecycle']();}[_0x55e150(0xd4)](){const _0x4df35a=_0x55e150;this[_0x4df35a(0x213)](this[_0x4df35a(0x42e)][_0x4df35a(0x4c6)](_0x3f8283[_0x4df35a(0x2f9)][_0x4df35a(0x198)])[_0x4df35a(0x192)](({unit:_0x3055b3})=>this[_0x4df35a(0x363)](_0x3055b3[_0x4df35a(0x4ed)]()))),this[_0x4df35a(0x213)](this[_0x4df35a(0x42e)][_0x4df35a(0x100)](_0x3f8283[_0x4df35a(0x2f9)][_0x4df35a(0x198)])['subscribe'](_0x519df3=>{const _0x4d1769=_0x4df35a;var _0x59953c;clearTimeout((_0x59953c=this[_0x4d1769(0x47c)][_0x4d1769(0x97)](_0x519df3[_0x4d1769(0x4ed)]()))==null?void 0x0:_0x59953c[_0x4d1769(0x266)]),this[_0x4d1769(0x47c)][_0x4d1769(0xe0)](_0x519df3[_0x4d1769(0x4ed)]());})),this['disposeWithMe'](this[_0x4df35a(0x466)]['onCommandExecuted'](_0x48c378=>{const _0x4accc1=_0x4df35a;if(_0x48c378['id']!==_0x39e4d6['id'])return;let _0x49ee6a=_0x48c378[_0x4accc1(0x305)],_0x1615f4=this[_0x4accc1(0x47c)][_0x4accc1(0x97)](_0x49ee6a['unitId']);_0x1615f4&&_0x1615f4['params']['runtimeId']===_0x49ee6a[_0x4accc1(0x407)]&&_0x1615f4['params'][_0x4accc1(0x364)]===_0x49ee6a['sequence']&&(clearTimeout(_0x1615f4[_0x4accc1(0x266)]),this[_0x4accc1(0x47c)][_0x4accc1(0xe0)](_0x49ee6a[_0x4accc1(0xa0)]),this[_0x4accc1(0x51b)][_0x4accc1(0x140)](_0x49ee6a[_0x4accc1(0xa0)],_0x49ee6a[_0x4accc1(0x347)]?'error':_0x4accc1(0x24a)));}));for(let _0x777562 of this[_0x4df35a(0x42e)]['getAllUnitsForType'](_0x3f8283[_0x4df35a(0x2f9)][_0x4df35a(0x198)]))this[_0x4df35a(0x363)](_0x777562['getUnitId']());}[_0x55e150(0x363)](_0x20e91a){const _0x59f44f=_0x55e150;var _0x425f43;clearTimeout((_0x425f43=this[_0x59f44f(0x47c)][_0x59f44f(0x97)](_0x20e91a))==null?void 0x0:_0x425f43[_0x59f44f(0x266)]);let _0x3959aa={'unitId':_0x20e91a,'runtimeId':(0x0,_0x3f8283['generateRandomId'])(),'sequence':++this['_runtimeSequence']},_0x58688e={'params':_0x3959aa,'attempts':0x0,'timer':void 0x0};this[_0x59f44f(0x47c)]['set'](_0x20e91a,_0x58688e),this[_0x59f44f(0x51b)][_0x59f44f(0x470)](_0x20e91a,_0x3959aa[_0x59f44f(0x407)]);let _0x214b75=()=>{const _0x1fb3b0=_0x59f44f;this[_0x1fb3b0(0x47c)][_0x1fb3b0(0x97)](_0x20e91a)===_0x58688e&&(_0x58688e[_0x1fb3b0(0x3c7)]===0x3?(this['_initializations']['delete'](_0x20e91a),this[_0x1fb3b0(0x51b)][_0x1fb3b0(0x140)](_0x20e91a,'error')):(_0x58688e['attempts']++,_0x58688e[_0x1fb3b0(0x266)]=setTimeout(_0x214b75,0x2710),this[_0x1fb3b0(0x466)][_0x1fb3b0(0x1f9)](_0x4976f0['id'],_0x3959aa,{'onlyLocal':!0x0})['catch'](()=>{})));};_0x58688e['timer']=setTimeout(_0x214b75,0x0);}[_0x55e150(0x3f4)](){const _0x4c8ff1=_0x55e150;for(let _0x22a57c of this[_0x4c8ff1(0x47c)][_0x4c8ff1(0x20b)]())clearTimeout(_0x22a57c['timer']);this[_0x4c8ff1(0x47c)]['clear'](),super[_0x4c8ff1(0x3f4)]();}[_0x55e150(0x33d)](){const _0x4d1eea=_0x55e150;this[_0x4d1eea(0x213)](this[_0x4d1eea(0x466)]['onCommandExecuted'](_0x37b5b7=>{const _0x4db3e4=_0x4d1eea;if(_0x37b5b7['id']!==_0x154397['id'])return;let _0x3f641a=_0x37b5b7[_0x4db3e4(0x305)];this[_0x4db3e4(0x4e3)]['handleAsyncResponse'](_0x3f641a);})),this[_0x4d1eea(0x213)](this[_0x4d1eea(0x466)][_0x4d1eea(0x44c)](_0x21c921=>{const _0x59102d=_0x4d1eea;if(_0x21c921['id']===_0x237780['id']){let _0x9add66=_0x21c921[_0x59102d(0x305)];if(_0x9add66){let {unitId:_0x124625,subUnitId:_0x62a2bb,pivotTableId:_0x274615,pivotTableConfig:_0x15127c,collectionConfig:_0x103dc9}=_0x9add66;if(!this['_sheetsPivotTableConfigModel'][_0x59102d(0x4d5)](_0x124625,_0x9add66[_0x59102d(0x407)]))return;this[_0x59102d(0x51b)][_0x59102d(0x43b)](()=>{const _0x367d1d=_0x59102d;var _0x5f24cc;this[_0x367d1d(0x51b)]['updateDerivedConfig'](_0x124625,_0x62a2bb,_0x274615,_0x15127c,_0x103dc9[_0x367d1d(0x10d)][_0x274615]),this['_sheetsPivotTableConfigModel']['acceptsRuntime'](_0x124625,(_0x5f24cc=_0x9add66[_0x367d1d(0x492)])==null?void 0x0:_0x5f24cc[_0x124625])&&this[_0x367d1d(0x51b)][_0x367d1d(0x336)](_0x124625,_0x103dc9);for(let [_0x5d5613,_0x35fd5e]of Object[_0x367d1d(0x4f5)](_0x9add66[_0x367d1d(0x1fb)]??{})){var _0x544baf;this[_0x367d1d(0x51b)][_0x367d1d(0x4d5)](_0x5d5613,(_0x544baf=_0x9add66[_0x367d1d(0x492)])==null?void 0x0:_0x544baf[_0x5d5613])&&this['_sheetsPivotTableConfigModel'][_0x367d1d(0x336)](_0x5d5613,void 0x0,_0x35fd5e);}});}}})),this['disposeWithMe'](this[_0x4d1eea(0x466)][_0x4d1eea(0x44c)](_0x5c31f4=>{const _0x38cd77=_0x4d1eea;if(_0x5c31f4['id']!==_0x44fb41['id'])return;let _0x215d8e=_0x5c31f4[_0x38cd77(0x305)];this['_sheetsPivotTableConfigModel'][_0x38cd77(0x43b)](()=>{const _0x341f2b=_0x38cd77;for(let [_0x29f92f,_0x53f7a4]of Object[_0x341f2b(0x4f5)](_0x215d8e['pivotCacheConfigs']??{})){var _0x25256d;this[_0x341f2b(0x51b)][_0x341f2b(0x4d5)](_0x29f92f,(_0x25256d=_0x215d8e[_0x341f2b(0x492)])==null?void 0x0:_0x25256d[_0x29f92f])&&this[_0x341f2b(0x51b)][_0x341f2b(0x336)](_0x29f92f,void 0x0,_0x53f7a4);}if(_0x215d8e[_0x341f2b(0x1ad)]&&Object['keys'](_0x215d8e[_0x341f2b(0x1ad)])[_0x341f2b(0x1bd)](_0x2c34ba=>{const _0x2b5963=_0x341f2b;var _0x407bb4,_0x4acff9;(_0x407bb4=_0x215d8e['collectionConfig'])!=null&&_0x407bb4[_0x2c34ba]&&this['_sheetsPivotTableConfigModel'][_0x2b5963(0x4d5)](_0x2c34ba,(_0x4acff9=_0x215d8e[_0x2b5963(0x492)])==null?void 0x0:_0x4acff9[_0x2c34ba])&&this['_sheetsPivotTableConfigModel'][_0x2b5963(0x336)](_0x2c34ba,_0x215d8e[_0x2b5963(0x1ad)][_0x2c34ba]);}),_0x215d8e[_0x341f2b(0x354)]){var _0x82a3b2;let _0x27055a=_0x215d8e[_0x341f2b(0x354)],{unitId:_0x383190,subUnitId:_0x27b9a6,view:_0x4c2201,pivotTableId:_0x22323a,type:_0xa8e5c6,pivotConfig:_0x4045f9}=_0x27055a;if(!this[_0x341f2b(0x51b)][_0x341f2b(0x4d5)](_0x383190,_0x27055a[_0x341f2b(0x407)])||!this[_0x341f2b(0x51b)]['updateDerivedConfig'](_0x383190,_0x27b9a6,_0x22323a,_0x4045f9,(_0x82a3b2=_0x215d8e[_0x341f2b(0x1ad)])==null||(_0x82a3b2=_0x82a3b2[(_0x4045f9==null?void 0x0:_0x4045f9[_0x341f2b(0x1f5)][_0x341f2b(0xa0)])??_0x383190])==null?void 0x0:_0x82a3b2[_0x341f2b(0x10d)][_0x22323a]))return;if(_0xa8e5c6===_0x341f2b(0xe0))this[_0x341f2b(0x2c8)]['clearRenderCache']({'unitId':_0x383190,'subUnitId':_0x27b9a6,'pivotTableId':_0x22323a,'type':_0xa8e5c6});else{let _0x19fbf0=new _0x4078f7[(_0x341f2b(0x3d3))]();_0x19fbf0[_0x341f2b(0x35e)](_0x4c2201),this[_0x341f2b(0x2c8)][_0x341f2b(0x260)]({'unitId':_0x383190,'subUnitId':_0x27b9a6,'pivotTableId':_0x22323a,'type':_0xa8e5c6,'view':_0x19fbf0}),this[_0x341f2b(0x2c8)][_0x341f2b(0x42a)]({'unitId':_0x383190,'subUnitId':_0x27b9a6,'view':_0x19fbf0,'pivotTableId':_0x22323a,'type':_0xa8e5c6});}this[_0x341f2b(0x2c8)]['markDirty'](_0x383190,_0x27b9a6);}else{if(_0x215d8e[_0x341f2b(0x39d)]){let _0x326813=_0x215d8e[_0x341f2b(0x39d)],_0x40e39e=new Map();_0x326813[_0x341f2b(0x1bd)](_0xae2538=>{const _0x58d51b=_0x341f2b;var _0x5bd5b8;let {unitId:_0x1120d3,subUnitId:_0x37293a,view:_0x402e2f,pivotTableId:_0x24ba3a,type:_0x21145f,pivotConfig:_0x4dfe81}=_0xae2538;if(!this[_0x58d51b(0x51b)][_0x58d51b(0x4d5)](_0x1120d3,_0xae2538['runtimeId'])||!this[_0x58d51b(0x51b)][_0x58d51b(0x202)](_0x1120d3,_0x37293a,_0x24ba3a,_0x4dfe81,(_0x5bd5b8=_0x215d8e[_0x58d51b(0x1ad)])==null||(_0x5bd5b8=_0x5bd5b8[(_0x4dfe81==null?void 0x0:_0x4dfe81[_0x58d51b(0x1f5)][_0x58d51b(0xa0)])??_0x1120d3])==null?void 0x0:_0x5bd5b8[_0x58d51b(0x10d)][_0x24ba3a]))return;let _0x4759c1=new _0x4078f7[(_0x58d51b(0x3d3))]();_0x4759c1['formJSON'](_0x402e2f),this['_sheetsPivotTableAdaptorModel'][_0x58d51b(0x260)]({'unitId':_0x1120d3,'subUnitId':_0x37293a,'pivotTableId':_0x24ba3a,'type':_0x21145f,'view':_0x4759c1}),this['_sheetsPivotTableAdaptorModel'][_0x58d51b(0x42a)]({'unitId':_0x1120d3,'subUnitId':_0x37293a,'view':_0x4759c1,'pivotTableId':_0x24ba3a,'type':_0x21145f});let _0x33020e=_0x40e39e[_0x58d51b(0x97)](_0x1120d3)??new Set();_0x33020e[_0x58d51b(0xe9)](_0x37293a),_0x40e39e['set'](_0x1120d3,_0x33020e);}),_0x40e39e[_0x341f2b(0x1bd)]((_0x2f0604,_0x13a284)=>_0x2f0604[_0x341f2b(0x1bd)](_0x537b65=>{const _0x1a8849=_0x341f2b;this['_sheetsPivotTableAdaptorModel'][_0x1a8849(0x108)](_0x13a284,_0x537b65);})),this[_0x341f2b(0x51b)][_0x341f2b(0xca)]();}}});}));}[_0x55e150(0x374)](){const _0x4ee5df=_0x55e150;this['_activeDirtyManagerService'][_0x4ee5df(0x274)](_0x2df373['id'],{'commandId':_0x2df373['id'],'getDirtyData'(_0x4e701a){return{'dirtyUnitFeatureMap':_0x4e701a['params']};}});}};_0x3572b3=_0x174b33([_0x181d02(0x0,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x3f8283['ICommandService'])),_0x181d02(0x1,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x5b492b)),_0x181d02(0x2,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x505163)),_0x181d02(0x3,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x3de398)),_0x181d02(0x4,_0x1ce484[_0x55e150(0x350)]),_0x181d02(0x5,_0x3f8283['IConfigService']),_0x181d02(0x6,_0x3f8283[_0x55e150(0x362)])],_0x3572b3);let _0x480fa0=class extends _0x3f8283[_0x55e150(0x1ea)]{constructor(_0x4e14=_0x1c3f30,_0xaeef00,_0x5f6a49,_0x10b16c,_0x1bc3ce){const _0x19edd1=_0x55e150;super(),this[_0x19edd1(0x214)]=_0x4e14,this[_0x19edd1(0x1f7)]=_0xaeef00,this[_0x19edd1(0x466)]=_0x5f6a49,this[_0x19edd1(0x2f4)]=_0x10b16c,this[_0x19edd1(0x155)]=_0x1bc3ce;let {..._0x5d49f4}=(0x0,_0x3f8283['merge'])({},_0x1c3f30,this[_0x19edd1(0x214)]);this['_configService']['setConfig'](_0x75a69e,_0x5d49f4),this[_0x19edd1(0xf6)](),this[_0x19edd1(0x195)](_0x5d49f4);}[_0x55e150(0x195)](_0x2299f2){const _0x4e1afc=_0x55e150;var _0x47ebbd;let _0x2eeae8=(_0x47ebbd=this[_0x4e1afc(0x214)])==null?void 0x0:_0x47ebbd[_0x4e1afc(0x37c)];this[_0x4e1afc(0x2f4)]['setConfig'](_0x114562,_0x2eeae8===!0x0),_0x2299f2[_0x4e1afc(0x3d2)]!==void 0x0&&(0x0,_0x4078f7['setMaxLimitItemCount'])(_0x2299f2[_0x4e1afc(0x3d2)]),_0x2299f2['dateSystem']!==void 0x0&&(0x0,_0x4078f7[_0x4e1afc(0x4a1)])(_0x2299f2[_0x4e1afc(0x4f4)]);}[_0x55e150(0x481)](){const _0x2541c1=_0x55e150;var _0xa456f2;let _0x308489=[],_0x49998e=(_0xa456f2=this['_config'])==null?void 0x0:_0xa456f2[_0x2541c1(0x37c)];_0x49998e===!0x0?_0x308489=[[_0x462162],[_0x5b492b],[_0x3572b3],[_0x505163],[_0x3de398],[_0x447599],[_0xc7bbb0],[_0x2d7aeb],[_0x230c6a],[_0x433660]]:_0x49998e===!0x1?_0x308489=[[_0x30eff7],[_0x157644]]:_0x49998e===void 0x0&&(_0x308489=[[_0x30eff7],[_0x157644],[_0x462162],[_0x5b492b],[_0x3572b3],[_0x505163],[_0x3de398],[_0x447599],[_0xc7bbb0],[_0x2d7aeb],[_0x230c6a],[_0x433660]]),_0x49998e!==!0x0&&(this[_0x2541c1(0x1f7)]['has'](_0x3c97e0[_0x2541c1(0x402)])||_0x308489[_0x2541c1(0xc7)]([_0x3c97e0[_0x2541c1(0x402)],{'useClass':_0x3c97e0[_0x2541c1(0xa6)]}]),_0x308489[_0x2541c1(0xc7)]([_0x2fd000],[_0xb1510c],[_0x20f9c8])),_0x308489['forEach'](_0x218ba0=>this[_0x2541c1(0x1f7)][_0x2541c1(0xe9)](_0x218ba0)),[_0x157644,_0x20f9c8,_0x3572b3,_0x462162,_0x2d7aeb,_0x447599,_0xc7bbb0,_0x230c6a,_0x433660][_0x2541c1(0x1bd)](_0x1fcb9d=>{const _0x4161bf=_0x2541c1;this[_0x4161bf(0x1f7)][_0x4161bf(0x16c)](_0x1fcb9d)&&this[_0x4161bf(0x1f7)][_0x4161bf(0x97)](_0x1fcb9d);});}['_initRegisterCommand'](){const _0x41ea57=_0x55e150;[_0x21b075,_0x2c1156,_0x445a36,_0x591669,_0x259dda,_0x53ec6d,_0xd556f2,_0x1b3a61,_0x1a7896,_0x410113,_0x28e168,_0x45e484,_0x59f507,_0x2975b8,_0x6b18c9,_0x2b1330,_0x383d63,_0x2c6074,_0x26a4f1,_0x12c1a7,_0x36d11c,_0x3eaff2,_0x4532a7,_0x4def4f,_0x3a1f26,_0x3cb3b5,_0x7e5e98,_0x3bb375,_0x165fec,_0x23fb62,_0x3f7b06,_0x4ceb5b,_0x5c609b,_0x52b628,_0x732d12,_0x4153d1,_0x4976f0,_0x39e4d6,_0x154397,_0x44fb41,_0x498917,_0x344f9d,_0x471afb,_0x83e99a,_0x215407,_0x229511,_0x2feedc,_0x2df373,_0x237780,_0x4d20a8,_0x39a049,_0x5b3575,_0x4b5410,_0x124195,_0x5a32e5][_0x41ea57(0x1bd)](_0x5234ab=>{const _0x51c153=_0x41ea57;var _0x2950f4;(_0x2950f4=this[_0x51c153(0x155)])==null||_0x2950f4[_0x51c153(0x4d7)](_0x5234ab),this[_0x51c153(0x466)][_0x51c153(0x45b)](_0x5234ab);});}};_0x418dd6(_0x480fa0,_0x55e150(0x177),_0x1959c0),_0x418dd6(_0x480fa0,_0x55e150(0x141),_0x2d5258),_0x418dd6(_0x480fa0,'version',_0x4acc43),_0x418dd6(_0x480fa0,_0x55e150(0x230),_0x3f8283['UniverInstanceType'][_0x55e150(0x198)]),_0x480fa0=_0x174b33([(0x0,_0x3f8283[_0x55e150(0x23d)])(_0x5067df[_0x55e150(0x448)],_0x1ce484[_0x55e150(0x418)],_0x4b3c60[_0x55e150(0x1ee)]),_0x181d02(0x1,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x3f8283[_0x55e150(0x1c6)])),_0x181d02(0x2,(0x0,_0x3f8283[_0x55e150(0x299)])(_0x3f8283[_0x55e150(0x3cb)])),_0x181d02(0x3,_0x3f8283['IConfigService']),_0x181d02(0x4,(0x0,_0x3f8283['Optional'])(_0x30274b[_0x55e150(0xb9)]))],_0x480fa0),_0x5f38dc[_0x55e150(0x33c)]=_0x445a36,_0x5f38dc['AddPivotFieldMutation']=_0x4def4f,_0x5f38dc[_0x55e150(0x1f8)]=_0x2c1156,_0x5f38dc[_0x55e150(0x378)]=_0x36d11c,_0x5f38dc['AddPivotTableWithConfigCommand']=_0x21b075,_0x5f38dc[_0x55e150(0x34a)]=0x1,_0x5f38dc['MovePivotFieldCommand']=_0x591669,_0x5f38dc[_0x55e150(0x188)]=_0x26a4f1,_0x5f38dc['PIVOT_DATE_GROUP_TYPES']=_0x51ce0f,_0x5f38dc[_0x55e150(0x95)]=_0x493572,_0x5f38dc['PIVOT_MANUAL_FILTER_COORDINATION']=_0x48909d,_0x5f38dc[_0x55e150(0x235)]=_0x1f8c0c,Object[_0x55e150(0x21e)](_0x5f38dc,'PivotCalculatorController',{'enumerable':!0x0,'get':function(){return _0x157644;}}),_0x5f38dc[_0x55e150(0x15d)]=_0x4c7d66,_0x5f38dc['PivotDrillDownCommand']=_0x12c1a7,_0x5f38dc[_0x55e150(0x3f2)]=_0x29926d,_0x5f38dc[_0x55e150(0x325)]=_0xbbefaf,_0x5f38dc[_0x55e150(0xda)]=_0x259dda,_0x5f38dc[_0x55e150(0x2d3)]=_0x3bb375,_0x5f38dc[_0x55e150(0x243)]=_0x53ec6d,_0x5f38dc[_0x55e150(0x352)]=_0x4532a7,_0x5f38dc[_0x55e150(0x2de)]=_0x165fec,_0x5f38dc[_0x55e150(0x27d)]=_0x4b5410,_0x5f38dc[_0x55e150(0x262)]=_0x75a69e,_0x5f38dc[_0x55e150(0x408)]=_0x1959c0,_0x5f38dc[_0x55e150(0x2e0)]=_0x44fb41,_0x5f38dc['SetPivotCollapseByFieldCommand']=_0x2975b8,_0x5f38dc[_0x55e150(0x475)]=_0x59f507,_0x5f38dc[_0x55e150(0x486)]=_0x23fb62,_0x5f38dc['SetPivotDateGroupCommand']=_0x1b3a61,_0x5f38dc[_0x55e150(0x1d5)]=_0x1a7896,_0x5f38dc[_0x55e150(0x174)]=_0x83e99a,_0x5f38dc[_0x55e150(0xbd)]=_0x5b3575,_0x5f38dc[_0x55e150(0x1fc)]=_0x2b1330,_0x5f38dc['SetPivotFilterMutation']=_0x7e5e98,_0x5f38dc['SetPivotLayoutCommand']=_0x124195,_0x5f38dc[_0x55e150(0xf5)]=_0x410113,_0x5f38dc[_0x55e150(0x476)]=_0x28e168,_0x5f38dc['SetPivotOptionCommand']=_0x5a32e5,_0x5f38dc[_0x55e150(0x411)]=_0x52b628,_0x5f38dc[_0x55e150(0x2fd)]=_0x732d12,_0x5f38dc[_0x55e150(0x25d)]=_0x6b18c9,_0x5f38dc[_0x55e150(0x386)]=_0x3f7b06,_0x5f38dc[_0x55e150(0x353)]=_0x471afb,_0x5f38dc['SetPivotValueFilterCommand']=_0x4d20a8,_0x5f38dc[_0x55e150(0x24d)]=_0x39a049,Object[_0x55e150(0x21e)](_0x5f38dc,_0x55e150(0x124),{'enumerable':!0x0,'get':function(){return _0x2fd000;}}),Object['defineProperty'](_0x5f38dc,_0x55e150(0x4c9),{'enumerable':!0x0,'get':function(){return _0x30eff7;}}),Object['defineProperty'](_0x5f38dc,_0x55e150(0xcd),{'enumerable':!0x0,'get':function(){return _0x5b492b;}}),Object[_0x55e150(0x21e)](_0x5f38dc,_0x55e150(0x279),{'enumerable':!0x0,'get':function(){return _0x505163;}}),Object[_0x55e150(0x21e)](_0x5f38dc,'SheetsPivotTableConfigModel',{'enumerable':!0x0,'get':function(){return _0x3de398;}}),Object['defineProperty'](_0x5f38dc,_0x55e150(0x2ea),{'enumerable':!0x0,'get':function(){return _0x462162;}}),Object[_0x55e150(0x21e)](_0x5f38dc,_0x55e150(0x469),{'enumerable':!0x0,'get':function(){return _0x480fa0;}}),_0x5f38dc['UpdateFieldPositionMutation']=_0x498917,_0x5f38dc['UpdatePivotFieldSettingCommand']=_0x383d63,_0x5f38dc[_0x55e150(0x3be)]=_0x2feedc,_0x5f38dc[_0x55e150(0x143)]=_0x2c6074,_0x5f38dc['UpdatePivotTableSourceRangeMutation']=_0x229511,_0x5f38dc[_0x55e150(0x92)]=_0xd556f2,_0x5f38dc[_0x55e150(0x18c)]=_0x344f9d,_0x5f38dc[_0x55e150(0x10b)]=_0x5039d9,_0x5f38dc[_0x55e150(0x154)]=_0x51a117,_0x5f38dc[_0x55e150(0x1c7)]=_0x18cbe4,_0x5f38dc[_0x55e150(0x450)]=_0x6786b9,_0x5f38dc[_0x55e150(0x303)]=_0xf6fafd,_0x5f38dc['getInsertRowColMutations']=_0x1ddf1b,_0x5f38dc[_0x55e150(0x2d8)]=_0x25f272,_0x5f38dc['getPivotAppliedRanges']=_0x2aaa64,_0x5f38dc[_0x55e150(0x49e)]=_0x2daaf2,_0x5f38dc['getSlicerSelectionFromPivotManualFilter']=_0x2bf89f,_0x5f38dc[_0x55e150(0x212)]=_0x2ee822,_0x5f38dc[_0x55e150(0x3e5)]=_0x4accba,_0x5f38dc['mapPivotSheetColumn']=_0x4b40f9,_0x5f38dc['mapPivotSheetRange']=_0x3fe295,_0x5f38dc[_0x55e150(0x132)]=_0x350e50,_0x5f38dc['resolvePivotSheetCell']=_0x351e65,_0x5f38dc[_0x55e150(0x522)]=_0x1b7003,_0x5f38dc[_0x55e150(0x23e)]=_0x4cc1f9,_0x5f38dc[_0x55e150(0x1e4)]=_0x2a257d,_0x5f38dc[_0x55e150(0x1fe)]=_0x711efb;}));
|
|
1
|
+
function _0x5a2c(_0x9f68d3,_0x3eddd6){_0x9f68d3=_0x9f68d3-0x1a9;const _0x1d3b63=_0x1d3b();let _0x5a2cc1=_0x1d3b63[_0x9f68d3];return _0x5a2cc1;}(function(_0x1e6af2,_0x542aaa){const _0x14ca30=_0x5a2c,_0x435cb7=_0x1e6af2();while(!![]){try{const _0x45abc5=parseInt(_0x14ca30(0x4d1))/0x1+parseInt(_0x14ca30(0x438))/0x2*(-parseInt(_0x14ca30(0x5e8))/0x3)+-parseInt(_0x14ca30(0x658))/0x4*(parseInt(_0x14ca30(0x266))/0x5)+-parseInt(_0x14ca30(0x531))/0x6+-parseInt(_0x14ca30(0x1b9))/0x7+-parseInt(_0x14ca30(0x2f1))/0x8*(parseInt(_0x14ca30(0x434))/0x9)+parseInt(_0x14ca30(0x487))/0xa;if(_0x45abc5===_0x542aaa)break;else _0x435cb7['push'](_0x435cb7['shift']());}catch(_0x303b07){_0x435cb7['push'](_0x435cb7['shift']());}}}(_0x1d3b,0x1965e),function(_0x167be7,_0x4b3421){const _0x454860=_0x5a2c;typeof exports==_0x454860(0x4be)&&typeof module<'u'?_0x4b3421(exports,require('@univerjs-pro/engine-pivot'),require('@univerjs/core'),require('@univerjs/engine-formula'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs-pro/license'),require('@univerjs/engine-render'),require('@univerjs-pro/pivot-cache'),require('@univerjs-pro/slicer'),require('@univerjs/sheets-filter'),require('@univerjs/rpc')):typeof define==_0x454860(0x3cf)&&define[_0x454860(0x2db)]?define([_0x454860(0x297),_0x454860(0x525),'@univerjs/core',_0x454860(0x619),_0x454860(0x620),_0x454860(0x503),_0x454860(0x2d7),_0x454860(0x571),'@univerjs-pro/pivot-cache',_0x454860(0x420),_0x454860(0x359),_0x454860(0x3d0)],_0x4b3421):(_0x167be7=typeof globalThis<'u'?globalThis:_0x167be7||self,_0x4b3421(_0x167be7[_0x454860(0x4b7)]={},_0x167be7['UniverProEnginePivot'],_0x167be7[_0x454860(0x63d)],_0x167be7[_0x454860(0x1ee)],_0x167be7[_0x454860(0x394)],_0x167be7[_0x454860(0x503)],_0x167be7[_0x454860(0x280)],_0x167be7[_0x454860(0x2fc)],_0x167be7['UniverProPivotCache'],_0x167be7[_0x454860(0x2e7)],_0x167be7[_0x454860(0x48e)],_0x167be7[_0x454860(0x5bd)]));}(this,function(_0x435a8f,_0xaf0b54,_0x1664f5,_0x2aea65,_0x366635,_0x551644,_0xa6ca7c,_0x59f32b,_0x51868d,_0x52175c,_0x18255f,_0x28c62c){const _0x3f2857=_0x5a2c;Object['defineProperty'](_0x435a8f,Symbol['toStringTag'],{'value':_0x3f2857(0x5cc)});let _0xb09962=/[\u0590-\u08FF\uFB1D-\uFEFC]/;function _0x27b61a(_0x22b219){return _0xb09962['test'](String(_0x22b219??''));}function _0x491f09(_0x3da88b){const _0x5845a4=_0x3f2857;let _0x34b1e2=String(_0x3da88b??'');return!_0x34b1e2||_0x34b1e2['startsWith']('')&&_0x34b1e2[_0x5845a4(0x3eb)]('')?_0x34b1e2:''+_0x34b1e2+'';}function _0x3c7b63(_0x1df562,..._0x4bbfc7){const _0x319cae=_0x3f2857;let _0x1253d0=String(_0x1df562??'');return!_0x27b61a(_0x1253d0)&&!_0x4bbfc7[_0x319cae(0x28b)](_0x27b61a)?_0x1253d0:_0x491f09(_0x1253d0);}function _0x1f675e(_0xf9ebbe,_0x404927,_0x214e05){const _0x5f2c17=_0x3f2857;let _0x4f42a0=_0xf9ebbe[_0x5f2c17(0x38d)]['getLastCol']()+0x1,_0x49fc51=_0xf9ebbe[_0x5f2c17(0x43c)][_0x5f2c17(0x1db)]()+Math[_0x5f2c17(0x27f)](_0xf9ebbe[_0x5f2c17(0x34b)][_0x5f2c17(0x1db)](),_0xf9ebbe['dataView'][_0x5f2c17(0x1db)]());return{'startColumn':_0x404927,'endColumn':_0x404927+Math['max'](_0x4f42a0,_0x49fc51,0x1)-0x1,'direction':_0x214e05};}function _0x17dc77(_0x416bdd,_0x36bb04){const _0x292476=_0x3f2857;return _0x416bdd[_0x292476(0x2fa)]==='rtl'?_0x416bdd[_0x292476(0x5ea)]+_0x416bdd['endColumn']-_0x36bb04:_0x36bb04;}function _0x18d82d(_0x5e3c23,_0x33540c){const _0x1db5b8=_0x3f2857;let _0x1af092=_0x17dc77(_0x5e3c23,_0x33540c[_0x1db5b8(0x5ea)]),_0x3c5638=_0x17dc77(_0x5e3c23,_0x33540c['endColumn']);return{..._0x33540c,'startColumn':Math[_0x1db5b8(0x259)](_0x1af092,_0x3c5638),'endColumn':Math['max'](_0x1af092,_0x3c5638)};}let _0x28f986=Number[_0x3f2857(0x28e)](0x6aeee6b6),_0x783d27='SHEET_PIVOT_TABLE_PLUGIN',_0x39141e='#b2b2b2',_0x168ad5=function(_0xeaffa3){const _0x44d2d3=_0x3f2857;return _0xeaffa3['Existing']=_0x44d2d3(0x504),_0xeaffa3[_0x44d2d3(0x42d)]=_0x44d2d3(0x60d),_0xeaffa3;}({}),_0x3f432b={'sheets-pivot':{'sheet':'','blankValue':'','otherValue':'','columnName':'','subTotalText':'','grandTotalText':'','valueText':'','rowLabels':'','columnLabels':'','averageName':'','countName':'','countNumsName':'','maxName':'','minName':'','productName':'','stdDevName':'','stdDevpName':'','sumName':'','varName':'','varpName':'','value':'','blank':'','other':'','subTotal':'','grandTotal':'','renderText':{'valueField':'','subtotal':'','grandTotal':'','multipleGrandTotal':'','subtotalWithValue':''},'emptyPivot':{'filter':'','row':'','column':'','values':''},'dateGroup':{'second':'','year':'','month':'','day':'','date':'','hour':'','minute':'','hourMinute':'','quarter':'','monthDate':'','yearQuarter':'','yearMonth':'','yearMonthDate':''},'cellDateGroupDisplay':{'second':'','before':'','after':'','dayRange':'','minute':'','hour':'','hourMinute':'','date':'','month':'','monthDate':'','quarter':'','year':'','yearMonth':'','yearMonthDate':'','yearQuarter':''},'numberGroupRange':'','numberGroupClosedRange':'','numberGroupBefore':'','numberGroupAfter':''}},_0x34b0ca={'b':{'s':0x1,'cl':{'rgb':_0x39141e}},'l':{'s':0x1,'cl':{'rgb':_0x39141e}},'r':{'s':0x1,'cl':{'rgb':_0x39141e}},'t':{'s':0x1,'cl':{'rgb':_0x39141e}}},_0x1874e1={'bg':{'rgb':_0x3f2857(0x671)},'ht':0x2,'vt':0x2,'tb':0x1},_0x305dea={'bg':{'rgb':_0x3f2857(0x45d)},'ht':0x2,'vt':0x2,'tb':0x1},_0x3cdbee={'rowStyle':{'bg':{'rgb':_0x3f2857(0x591)},'bd':_0x34b0ca,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':_0x3f2857(0x4af)},'bd':null,'cl':{'rgb':_0x3f2857(0x3a1)},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':_0x34b0ca,'bg':{'rgb':_0x3f2857(0x568)},'vt':0x2},'cornerStyle':{'bd':_0x34b0ca,'bg':{'rgb':_0x3f2857(0x1be)},'bl':0x1,'vt':0x2},'pageStyle':{'bd':_0x34b0ca,'bg':{'rgb':_0x3f2857(0x31b)},'vt':0x2},'leafStyle':{'bd':_0x34b0ca,'bg':{'rgb':_0x3f2857(0x31b)},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':_0x3f2857(0x4af)},'cl':{'rgb':'#FFFFFF'},'bl':0x1,'vt':0x2},'dataStyle':{'bd':_0x34b0ca,'vt':0x2}},_0x290e95={[_0xaf0b54['PivotDateGroupFieldDateTypeEnum'][_0x3f2857(0x5a1)]]:0x1,[_0xaf0b54[_0x3f2857(0x5d2)][_0x3f2857(0x291)]]:0x1,[_0xaf0b54[_0x3f2857(0x5d2)][_0x3f2857(0x431)]]:0x2,[_0xaf0b54[_0x3f2857(0x5d2)][_0x3f2857(0x5c9)]]:0x1,[_0xaf0b54['PivotDateGroupFieldDateTypeEnum']['Month']]:0x1,[_0xaf0b54[_0x3f2857(0x5d2)][_0x3f2857(0x4c3)]]:0x2,[_0xaf0b54['PivotDateGroupFieldDateTypeEnum']['Quarter']]:0x1,[_0xaf0b54[_0x3f2857(0x5d2)][_0x3f2857(0x324)]]:0x1,[_0xaf0b54['PivotDateGroupFieldDateTypeEnum'][_0x3f2857(0x60e)]]:0x2,[_0xaf0b54['PivotDateGroupFieldDateTypeEnum']['YearMonthDate']]:0x3,[_0xaf0b54[_0x3f2857(0x5d2)][_0x3f2857(0x5fb)]]:0x2};function _0x3fd899(_0x476970){const _0x57cddb=_0x3f2857;return/^\d$/[_0x57cddb(0x2cc)](_0x476970)?'0'+_0x476970:_0x476970;}function _0x2429f9(_0x442f8a,_0x4f08c3){const _0x585104=_0x3f2857;let _0xccea48=_0x4f08c3[_0x585104(0x405)]('_'),_0x32b64a=_0x290e95[_0x442f8a];if(!(_0x32b64a===void 0x0||_0xccea48[_0x585104(0x33b)]<_0x32b64a))switch(_0x442f8a){case _0xaf0b54[_0x585104(0x5d2)][_0x585104(0x431)]:return[_0xccea48[0x0],_0x3fd899(_0xccea48[0x1])];case _0xaf0b54[_0x585104(0x5d2)]['MonthDate']:return[_0x3fd899(_0xccea48[0x0]),_0x3fd899(_0xccea48[0x1])];case _0xaf0b54[_0x585104(0x5d2)][_0x585104(0x60e)]:return[_0xccea48[0x0],_0x3fd899(_0xccea48[0x1])];case _0xaf0b54[_0x585104(0x5d2)][_0x585104(0x31c)]:return[_0xccea48[0x0],_0x3fd899(_0xccea48[0x1]),_0x3fd899(_0xccea48[0x2])];case _0xaf0b54[_0x585104(0x5d2)]['YearQuarter']:return[_0xccea48[0x0],_0xccea48[0x1]];default:return _0xccea48['slice'](0x0,_0x32b64a);}}function _0x12c630(_0x3164ed,_0x52491c,_0x429323){const _0x59a5f6=_0x3f2857;let _0x11c0b1=_0x3164ed[_0x59a5f6(0x66e)](_0x1664f5[_0x59a5f6(0x4d7)]),_0x28a6c1=_0x2429f9(_0x52491c,_0x429323);if(!_0x28a6c1)return _0x429323;switch(_0x52491c){case _0xaf0b54[_0x59a5f6(0x5d2)][_0x59a5f6(0x324)]:return _0x11c0b1['t']('sheets-pivot.cellDateGroupDisplay.year',..._0x28a6c1);case _0xaf0b54['PivotDateGroupFieldDateTypeEnum'][_0x59a5f6(0x5a1)]:return _0x11c0b1['t'](_0x59a5f6(0x64d),..._0x28a6c1);case _0xaf0b54[_0x59a5f6(0x5d2)][_0x59a5f6(0x291)]:return _0x11c0b1['t'](_0x59a5f6(0x2ca),..._0x28a6c1);case _0xaf0b54[_0x59a5f6(0x5d2)]['HourMinute']:return _0x11c0b1['t'](_0x59a5f6(0x599),..._0x28a6c1);case _0xaf0b54['PivotDateGroupFieldDateTypeEnum'][_0x59a5f6(0x5c9)]:return _0x11c0b1['t'](_0x59a5f6(0x641),..._0x28a6c1);case _0xaf0b54[_0x59a5f6(0x5d2)][_0x59a5f6(0x24c)]:return _0x11c0b1['t'](_0x59a5f6(0x547),..._0x28a6c1);case _0xaf0b54['PivotDateGroupFieldDateTypeEnum'][_0x59a5f6(0x4c3)]:return _0x11c0b1['t'](_0x59a5f6(0x4dc),..._0x28a6c1);case _0xaf0b54[_0x59a5f6(0x5d2)][_0x59a5f6(0x23e)]:return _0x11c0b1['t'](_0x59a5f6(0x67b),..._0x28a6c1);case _0xaf0b54[_0x59a5f6(0x5d2)][_0x59a5f6(0x60e)]:return _0x11c0b1['t'](_0x59a5f6(0x428),..._0x28a6c1);case _0xaf0b54[_0x59a5f6(0x5d2)]['YearMonthDate']:return _0x11c0b1['t']('sheets-pivot.cellDateGroupDisplay.yearMonthDate',..._0x28a6c1);case _0xaf0b54[_0x59a5f6(0x5d2)][_0x59a5f6(0x5fb)]:return _0x11c0b1['t'](_0x59a5f6(0x588),..._0x28a6c1);}return'';}function _0x1f0339(_0x2aa2ea,_0x2224ff,_0x1f9bd0,_0x557fca){const _0x55d41f=_0x3f2857;let _0xe8a4a7=_0x2aa2ea[_0x55d41f(0x66e)](_0x1664f5[_0x55d41f(0x4d7)]),_0x1fc604=_0x2224ff[_0x55d41f(0x2fe)];if(_0x1f9bd0===_0xaf0b54[_0x55d41f(0x477)])return _0xe8a4a7['t'](_0x55d41f(0x3bd));if(_0x1f9bd0===_0xaf0b54[_0x55d41f(0x3ac)])return _0xe8a4a7['t'](_0x55d41f(0x609));if(_0x1fc604[_0x55d41f(0x23d)]===_0xaf0b54[_0x55d41f(0x204)][_0x55d41f(0x2e1)])return _0xe8a4a7['t'](_0x55d41f(0x334),String(_0x1f9bd0));if(_0x1fc604[_0x55d41f(0x23d)]===_0xaf0b54['PivotExcelDateGroupUnit']['Day']&&(_0x1fc604[_0x55d41f(0x30f)]??0x1)>0x1){let _0x46861a=(0x0,_0x1664f5['excelSerialToDateTimeParts'])(_0x1f9bd0,{'dateSystem':_0x557fca}),_0x35f6f9=(0x0,_0x1664f5[_0x55d41f(0x2d1)])(_0x1f9bd0+_0x1fc604[_0x55d41f(0x30f)]-0x1,{'dateSystem':_0x557fca});if(!_0x46861a||!_0x35f6f9)return String(_0x1f9bd0);let _0x3ac062=(_0x2b658a,_0x3d13a0,_0x424fbc)=>_0x12c630(_0x2aa2ea,_0xaf0b54[_0x55d41f(0x5d2)]['YearMonthDate'],_0x2b658a+'_'+_0x3d13a0+'_'+_0x424fbc);return _0xe8a4a7['t'](_0x55d41f(0x661),_0x3ac062(_0x46861a[_0x55d41f(0x541)],_0x46861a[_0x55d41f(0x29d)],_0x46861a[_0x55d41f(0x5c6)]),_0x3ac062(_0x35f6f9[_0x55d41f(0x541)],_0x35f6f9[_0x55d41f(0x29d)],_0x35f6f9[_0x55d41f(0x5c6)]));}if(_0x1fc604['unit']===_0xaf0b54[_0x55d41f(0x204)][_0x55d41f(0x63b)]&&_0x1fc604['groupByDate']!==!0x1){let _0x59644d=(0x0,_0x1664f5[_0x55d41f(0x2d1)])(_0x1f9bd0,{'dateSystem':_0x557fca});return _0x59644d?_0x12c630(_0x2aa2ea,_0xaf0b54[_0x55d41f(0x5d2)][_0x55d41f(0x31c)],_0x59644d[_0x55d41f(0x541)]+'_'+_0x59644d[_0x55d41f(0x29d)]+'_'+_0x59644d['day']):String(_0x1f9bd0);}return _0x12c630(_0x2aa2ea,{[_0xaf0b54[_0x55d41f(0x204)][_0x55d41f(0x324)]]:_0xaf0b54[_0x55d41f(0x5d2)][_0x55d41f(0x324)],[_0xaf0b54['PivotExcelDateGroupUnit'][_0x55d41f(0x23e)]]:_0xaf0b54['PivotDateGroupFieldDateTypeEnum'][_0x55d41f(0x23e)],[_0xaf0b54['PivotExcelDateGroupUnit'][_0x55d41f(0x24c)]]:_0xaf0b54[_0x55d41f(0x5d2)][_0x55d41f(0x24c)],[_0xaf0b54['PivotExcelDateGroupUnit'][_0x55d41f(0x63b)]]:_0xaf0b54[_0x55d41f(0x5d2)][_0x55d41f(0x5c9)],[_0xaf0b54[_0x55d41f(0x204)]['Hour']]:_0xaf0b54['PivotDateGroupFieldDateTypeEnum'][_0x55d41f(0x291)],[_0xaf0b54[_0x55d41f(0x204)][_0x55d41f(0x5a1)]]:_0xaf0b54['PivotDateGroupFieldDateTypeEnum'][_0x55d41f(0x5a1)]}[_0x1fc604[_0x55d41f(0x23d)]],String(_0x1f9bd0));}function _0x5d4054(_0x8c65b1,_0x472042,_0x2c3267){const _0x12cb20=_0x3f2857;let _0x6bf65a=_0x8c65b1[_0x12cb20(0x66e)](_0x1664f5[_0x12cb20(0x4d7)]),{start:_0x733195,end:_0xb4042e,interval:_0x341a3b}=_0x472042[_0x12cb20(0x4d2)],_0x20ba4d=Number(_0x2c3267),_0x4b9fe0=Number((_0x20ba4d+_0x341a3b)[_0x12cb20(0x41c)](0xf)),_0x2a9c07=[_0x20ba4d,_0x4b9fe0,_0x733195,_0xb4042e][_0x12cb20(0x28b)](_0x2c03e4=>_0x2c03e4!==void 0x0&&Number[_0x12cb20(0x635)](_0x2c03e4)&&_0x2c03e4!==0x0&&Math[_0x12cb20(0x2c8)](_0x2c03e4)<0.000001),_0x202311=new Intl['NumberFormat'](_0x1664f5['LOCALE_META'][_0x6bf65a[_0x12cb20(0x526)]()]['tag'],{'maximumSignificantDigits':0xf,'notation':_0x2a9c07?_0x12cb20(0x3cc):_0x12cb20(0x4ca)});return _0x2c3267===_0xaf0b54[_0x12cb20(0x38e)]?_0x733195!==void 0x0&&Number[_0x12cb20(0x635)](_0x733195)?_0x6bf65a['t'](_0x12cb20(0x1e4),_0x202311[_0x12cb20(0x230)](_0x733195)):_0x6bf65a['t'](_0x12cb20(0x3bd)):_0x2c3267===_0xaf0b54[_0x12cb20(0x569)]?_0xb4042e!==void 0x0&&Number[_0x12cb20(0x635)](_0xb4042e)?_0x6bf65a['t'](_0x12cb20(0x54f),_0x202311[_0x12cb20(0x230)](_0xb4042e)):_0x6bf65a['t'](_0x12cb20(0x609)):Number['isFinite'](_0x20ba4d)?_0xb4042e!==void 0x0&&Number[_0x12cb20(0x635)](_0xb4042e)&&_0x4b9fe0>=_0xb4042e-Math['min'](0x2**-0x34*0x8*Math['max'](Math['abs'](_0x4b9fe0),Math[_0x12cb20(0x2c8)](_0xb4042e)),_0x341a3b*0.000001)?_0x6bf65a['t'](_0x12cb20(0x321),_0x202311['format'](_0x20ba4d),_0x202311[_0x12cb20(0x230)](_0xb4042e)):_0x6bf65a['t'](_0x12cb20(0x223),_0x202311[_0x12cb20(0x230)](_0x20ba4d),_0x202311[_0x12cb20(0x230)](_0x4b9fe0)):String(_0x2c3267);}let _0x3d7c9e=(_0x542b0d,_0x1a9d56,_0x23a1f1,_0x288435)=>{const _0x23dc8a=_0x3f2857;let _0x4a698c,_0x4b5729=_0x542b0d[_0x23dc8a(0x66e)](_0x1664f5[_0x23dc8a(0x35a)])[_0x23dc8a(0x258)](_0x1664f5[_0x23dc8a(0x3b3)]['UNIVER_SHEET']);if(!_0x4b5729)return null;let _0x235ca5=_0x4b5729[_0x23dc8a(0x1b6)](),_0x4f349e;if(_0x23a1f1&&(_0x4f349e=_0x235ca5[_0x23dc8a(0x404)](_0x23a1f1)),_0x1a9d56!=null&&_0x1a9d56['v']||(_0x1a9d56==null?void 0x0:_0x1a9d56['v'])===0x0){_0x4a698c||={};let _0x594fc0=_0x1abdb2(_0x1a9d56['v']);typeof _0x594fc0=='number'?_0x4a698c['t']=_0x1664f5['CellValueType'][_0x23dc8a(0x287)]:typeof _0x594fc0==_0x23dc8a(0x5cb)&&(_0x4a698c['t']=_0x1664f5[_0x23dc8a(0x25a)][_0x23dc8a(0x26b)]),_0x4a698c['v']=_0x594fc0;}if((_0x1a9d56!=null&&_0x1a9d56['i']||(_0x1a9d56==null?void 0x0:_0x1a9d56['i'])===0x0)&&(_0x4a698c||={},_0x4a698c['fi']=_0x1a9d56['i']),_0x1a9d56!=null&&_0x1a9d56['s']&&(_0x4a698c||={},_0x4a698c[_0x23dc8a(0x42b)]=_0x1a9d56['s']),_0x23a1f1&&(_0x4a698c||={},_0x4a698c['s']=_0x4f349e),(_0x288435==null?void 0x0:_0x288435[_0x23dc8a(0x4ee)])===_0xaf0b54[_0x23dc8a(0x2bd)]['dateGroupField']&&(_0x4a698c==null?void 0x0:_0x4a698c['v'])!==void 0x0&&_0x4a698c[_0x23dc8a(0x42b)]!==_0xaf0b54[_0x23dc8a(0x392)]['GrandTotal']&&_0x4a698c[_0x23dc8a(0x42b)]!==_0xaf0b54['PivotCellStyleTypeEnum'][_0x23dc8a(0x4bb)]){let _0x3744d5=String(_0x4a698c['v']),{dateType:_0x48735d}=_0x288435;_0x4a698c['v']=_0x288435[_0x23dc8a(0x2fe)]&&typeof _0x4a698c['v']==_0x23dc8a(0x221)?_0x1f0339(_0x542b0d,_0x288435,_0x4a698c['v'],_0x4b5729[_0x23dc8a(0x48d)]()):_0x12c630(_0x542b0d,_0x48735d,_0x3744d5),_0x4a698c['t']=_0x1664f5['CellValueType'][_0x23dc8a(0x26b)];}return(_0x288435==null?void 0x0:_0x288435[_0x23dc8a(0x4ee)])===_0xaf0b54['PivotDataFieldTypeEnum'][_0x23dc8a(0x476)]&&_0x4a698c&&(typeof _0x4a698c['v']==_0x23dc8a(0x221)||typeof _0x4a698c['v']==_0x23dc8a(0x5cb))&&_0x4a698c[_0x23dc8a(0x42b)]!==_0xaf0b54[_0x23dc8a(0x392)]['GrandTotal']&&_0x4a698c[_0x23dc8a(0x42b)]!==_0xaf0b54[_0x23dc8a(0x392)]['Subtotal']&&(_0x4a698c['v']=_0x5d4054(_0x542b0d,_0x288435,_0x4a698c['v']),_0x4a698c['t']=_0x1664f5[_0x23dc8a(0x25a)][_0x23dc8a(0x26b)]),_0x4a698c;},_0x141f3c=(_0x3dfd7f,_0x4536c6,_0x2cd52c,_0x105d8f,_0x46f069='ltr',_0x495a0=_0x1664f5[_0x3f2857(0x63c)][_0x3f2857(0x217)])=>{const _0x48270c=_0x3f2857;let _0x757f1c=_0x2cd52c[_0x48270c(0x61d)],{cornerView:_0x184e7a,rowView:_0x5511be,colView:_0x5e66ab,dataView:_0x57dfc1,pageView:_0x5ebf67,formatMap:_0x165d9c,groupInfo:_0x5de77b}=_0x4536c6,{row:_0x334b45,col:_0x316412}=_0x757f1c,_0xaa1c3a=new _0x1664f5[(_0x48270c(0x40b))](),_0x519509=_0x1f675e(_0x4536c6,_0x316412,_0x46f069),_0x33de04={},_0x4f69cc={},_0x172081={},_0x1b5df0={},_0x3a9c5a={},_0x138cc6=_0x334b45,_0x51c9fc=_0x316412;Object['keys'](_0x5ebf67[_0x48270c(0x424)])[_0x48270c(0x211)](_0x4c9309=>{const _0x2e0f18=_0x48270c;Object[_0x2e0f18(0x58e)](_0x5ebf67[_0x2e0f18(0x424)][Number(_0x4c9309)])['forEach'](_0x266ea1=>{const _0x5d826f=_0x2e0f18;let _0x28e4e3={..._0x5ebf67[_0x5d826f(0x424)][Number(_0x4c9309)][Number(_0x266ea1)]};_0xaa1c3a[_0x5d826f(0x404)](Number(_0x4c9309)+_0x138cc6,_0x17dc77(_0x519509,Number(_0x266ea1)+_0x51c9fc),_0x3d7c9e(_0x3dfd7f,_0x28e4e3,_0x3cdbee[_0x5d826f(0x3e7)]));});});let _0x44642f=Object['keys'](_0x5ebf67['data'])[_0x48270c(0x33b)];_0x138cc6+=_0x44642f+ +!!_0x44642f;let _0x1cca36=_0x184e7a['getRowCount'](),_0x103f45=_0x184e7a['getColCount']();for(let _0x3c3325=0x0;_0x3c3325<_0x1cca36;_0x3c3325++)for(let _0xae1569=0x0;_0xae1569<_0x103f45;_0xae1569++){var _0x471dcc;let _0xa1e153={...(_0x471dcc=_0x184e7a[_0x48270c(0x424)])==null||(_0x471dcc=_0x471dcc[_0x3c3325])==null?void 0x0:_0x471dcc[_0xae1569]};if(_0xa1e153){var _0x5de58a,_0x186079;(_0x5de58a=_0x5511be['headerMap'][_0xae1569])!=null&&_0x5de58a[_0x48270c(0x20c)]&&_0xae1569===_0x103f45-0x1&&_0x3c3325===_0x1cca36-0x1&&(_0xa1e153['v']=''+_0x105d8f[_0x48270c(0x226)]),(_0x186079=_0x184e7a[_0x48270c(0x47c)][_0xae1569])!=null&&_0x186079[_0x48270c(0x676)]&&(_0xa1e153['v']=''+(_0x105d8f[_0x48270c(0x2c1)]||_0x48270c(0x47d)));}_0xaa1c3a[_0x48270c(0x404)](_0x3c3325+_0x138cc6,_0x17dc77(_0x519509,_0xae1569+_0x51c9fc),_0x3d7c9e(_0x3dfd7f,_0xa1e153,_0x3cdbee['cornerStyle']));}for(let _0x1efc28=0x0;_0x1efc28<_0x184e7a[_0x48270c(0x47c)][_0x48270c(0x33b)];_0x1efc28++)_0x184e7a[_0x48270c(0x47c)][_0x1efc28]&&(_0x172081[''+_0x17dc77(_0x519509,_0x1efc28+_0x51c9fc)]=_0x184e7a[_0x48270c(0x47c)][_0x1efc28]);_0x51c9fc+=_0x103f45;let _0x588544=_0x5e66ab[_0x48270c(0x4a9)],_0x1ae8a2=_0x5e66ab[_0x48270c(0x5ee)]()>=0x0?_0x5e66ab[_0x48270c(0x5ee)]()+0x1:0x0,_0x52aa90=_0x5e66ab[_0x48270c(0x4ce)]()>=0x0?_0x5e66ab[_0x48270c(0x4ce)]()+0x1:0x0;for(let _0x372b54=0x0;_0x372b54<_0x52aa90;_0x372b54++){for(let _0xc673b1=0x0;_0xc673b1<_0x1ae8a2;_0xc673b1++){var _0x576d4d,_0x5bd1a0;let _0x6446b7={...(_0x576d4d=_0x5e66ab[_0x48270c(0x424)])==null||(_0x576d4d=_0x576d4d[_0xc673b1])==null?void 0x0:_0x576d4d[_0x372b54]},_0x17c8ed=(_0x5bd1a0=_0x588544[_0xc673b1])==null?void 0x0:_0x5bd1a0[_0x48270c(0x35d)],_0x31f2d2=_0x165d9c[_0x17c8ed],_0x53bc34=_0x5de77b[_0x17c8ed];if(_0x6446b7){let _0x34dca3=_0x5e66ab['getHeaderMapItem'](_0xc673b1+0x1);_0x6446b7['v']=_0x34dca3!=null&&_0x34dca3['isColumnLabel']?''+(_0x105d8f[_0x48270c(0x36a)]||_0x48270c(0x3be)):_0x682171(_0x6446b7,_0xc673b1===0x0&&(_0x34dca3==null?void 0x0:_0x34dca3[_0x48270c(0x20c)]),_0x31f2d2,_0x105d8f,_0x105d8f[_0x48270c(0x43b)],void 0x0,_0x495a0);}let _0xfdfe64;_0xfdfe64=_0x31f2d2?{..._0x3cdbee['colStyle'],'n':{'pattern':_0x31f2d2}}:{..._0x3cdbee[_0x48270c(0x33f)]},_0xaa1c3a['setValue'](_0xc673b1+_0x138cc6,_0x17dc77(_0x519509,_0x372b54+_0x51c9fc),_0x3d7c9e(_0x3dfd7f,_0x6446b7,_0xfdfe64,_0x53bc34));}_0x5e66ab[_0x48270c(0x47c)][_0x372b54]&&(_0x4f69cc[''+_0x17dc77(_0x519509,_0x372b54+_0x51c9fc)]=_0x5e66ab[_0x48270c(0x47c)][_0x372b54]),_0x5e66ab[_0x48270c(0x4a9)][_0x372b54+0x1]&&(_0x3a9c5a[''+(_0x372b54+_0x138cc6+0x1)]=_0x5e66ab[_0x48270c(0x4a9)][_0x372b54+0x1]);}_0x138cc6+=_0x1cca36;let _0x4fdc88=_0x5511be[_0x48270c(0x4a9)],_0xa3895e=_0x5511be[_0x48270c(0x5ee)]()>=0x0?_0x5511be[_0x48270c(0x5ee)]()+0x1:0x0,_0x4af0c0=_0x5511be[_0x48270c(0x4ce)]()>=0x0?_0x5511be['getLastCol']()+0x1:0x0;for(let _0xe83788=0x0;_0xe83788<_0xa3895e;_0xe83788++){for(let _0x371039=0x0;_0x371039<_0x4af0c0;_0x371039++){var _0x2d2e3c,_0x56e85c;let _0x21b975={...(_0x2d2e3c=_0x5511be[_0x48270c(0x424)])==null||(_0x2d2e3c=_0x2d2e3c[_0xe83788])==null?void 0x0:_0x2d2e3c[_0x371039]},_0x40e5f5=(_0x56e85c=_0x4fdc88[_0x371039])==null?void 0x0:_0x56e85c[_0x48270c(0x35d)],_0xde1cbc=_0x165d9c[_0x40e5f5],_0x490c29=_0x5de77b[_0x40e5f5];_0x21b975&&(_0x21b975['v']=_0x682171(_0x21b975,!0x1,_0xde1cbc,_0x105d8f,void 0x0,void 0x0,_0x495a0));let _0x4cb79f;_0x4cb79f=_0x5511be[_0x48270c(0x47c)][_0xe83788][_0x48270c(0x43e)]?_0x5511be['info'][_0xe83788]['level']===0x0?_0x3cdbee['grandTotal']:_0x3cdbee['subTotalStyle']:_0x5511be[_0x48270c(0x47c)][_0xe83788][_0x48270c(0x670)]||_0x5511be[_0x48270c(0x47c)][_0xe83788][_0x48270c(0x3ef)]===_0x5511be[_0x48270c(0x1db)]()?_0x3cdbee[_0x48270c(0x4a1)]:_0x3cdbee['rowStyle'],_0xde1cbc&&(_0x4cb79f={..._0x4cb79f,'n':{'pattern':_0xde1cbc}}),_0xaa1c3a[_0x48270c(0x404)](_0xe83788+_0x138cc6,_0x17dc77(_0x519509,_0x371039+_0x316412),_0x3d7c9e(_0x3dfd7f,_0x21b975,_0x4cb79f,_0x490c29));}_0x5511be[_0x48270c(0x47c)][_0xe83788]&&(_0x33de04[''+(_0xe83788+_0x138cc6)]=_0x5511be[_0x48270c(0x47c)][_0xe83788]);}_0x5511be[_0x48270c(0x4a9)]['forEach']((_0x54e81c,_0x120d61)=>{_0x54e81c&&(_0x1b5df0[''+_0x17dc77(_0x519509,_0x120d61+_0x316412)]=_0x54e81c);});let _0x1ef1a8=_0x57dfc1['getRowCount'](),_0xef2219=_0x57dfc1[_0x48270c(0x1db)]();for(let _0x4d4a97=0x0;_0x4d4a97<_0x1ef1a8;_0x4d4a97++)for(let _0x3627f1=0x0;_0x3627f1<_0xef2219;_0x3627f1++){var _0x259198;let _0x5a6ff0={...(_0x259198=_0x57dfc1[_0x48270c(0x424)])==null||(_0x259198=_0x259198[_0x4d4a97])==null?void 0x0:_0x259198[_0x3627f1]},_0xe903a8;_0xe903a8=_0x5511be['info'][_0x4d4a97][_0x48270c(0x43e)]?_0x5511be['info'][_0x4d4a97]['level']===0x0?_0x3cdbee['grandTotal']:_0x3cdbee[_0x48270c(0x3b4)]:_0x3cdbee['dataStyle'];let _0x5eefc8=_0x5511be['info'][_0x4d4a97]['valueIndex'],_0x1dcdfc=_0x5e66ab['info'][_0x3627f1][_0x48270c(0x432)],_0x5e6aeb=Math[_0x48270c(0x27f)](_0x5eefc8,_0x1dcdfc),_0x4563d2=_0x2cd52c[_0x48270c(0x1fa)][_0x48270c(0x485)][_0x48270c(0x264)](),_0xb6ecc1='';_0xb6ecc1=_0x5e6aeb<0x0?_0x4563d2[0x0]??'':_0x4563d2[_0x5e6aeb]??'';let _0x182f83=_0x165d9c[_0xb6ecc1];_0x182f83&&(_0xe903a8={..._0xe903a8,'n':{'pattern':_0x182f83}}),_0xaa1c3a[_0x48270c(0x404)](_0x4d4a97+_0x138cc6,_0x17dc77(_0x519509,_0x3627f1+_0x51c9fc),_0x3d7c9e(_0x3dfd7f,_0x5a6ff0,_0xe903a8));}return{'valueMatrix':_0xaa1c3a,'rowInfo':_0x33de04,'colInfo':_0x4f69cc,'cornerInfo':_0x172081,'rowHeaderMap':_0x1b5df0,'colHeaderMap':_0x3a9c5a};};function _0x682171(_0x215e50,_0x30dc9b,_0x5020a5,_0x1c30dc,_0x220b04,_0xdd7806,_0x17e0ce=_0x1664f5['DateSystem'][_0x3f2857(0x217)]){const _0x3411c0=_0x3f2857;let _0xa213c8=_0x215e50['v'];_0x30dc9b&&(_0xa213c8=''+_0x1c30dc['sheets-pivot.value']);let _0x5500f1=_0x215e50['t']&&(_0x215e50['t']&_0xaf0b54['PivotViewCellValueTypeEnum'][_0x3411c0(0x22d)])>0x0;_0x5500f1&&(_0xa213c8=''+_0x1c30dc[_0x3411c0(0x611)]);let _0x3fb37d=_0x215e50['t']&&(_0x215e50['t']&_0xaf0b54[_0x3411c0(0x3ae)][_0x3411c0(0x574)])>0x0;if(_0x3fb37d&&(_0xa213c8=''+_0x1c30dc[_0x3411c0(0x4a3)]),_0x215e50['s']===_0xaf0b54[_0x3411c0(0x392)][_0x3411c0(0x4bb)]){let _0x4d9157=_0xa213c8,_0x4feed8='';(0x0,_0xaf0b54[_0x3411c0(0x2b8)])(_0xa213c8)&&(_0x4d9157=_0xa213c8[_0x3411c0(0x463)],_0x4feed8=_0xa213c8[_0x3411c0(0x3f8)]);let _0x333c19=_0x5020a5&&!_0x5500f1&&!_0x3fb37d?_0x1664f5['numfmt'][_0x3411c0(0x230)](_0x5020a5,Number(_0x4d9157),{'dateSystem':_0x17e0ce}):_0x4d9157;if(_0x4feed8)_0xa213c8=_0x23468d(_0x1c30dc,_0x3411c0(0x371),_0x3411c0(0x356),_0x3c7b63(_0x333c19,_0x4feed8),_0x3c7b63(_0x4feed8,_0x333c19));else{let _0x1d0ab6=_0xdd7806||_0x1c30dc[_0x3411c0(0x484)];_0xa213c8=_0x23468d(_0x1c30dc,_0x3411c0(0x3ce),_0x3411c0(0x356),_0x3c7b63(_0x333c19,_0x1d0ab6),_0x1d0ab6);}}else{if(_0x215e50['s']===_0xaf0b54[_0x3411c0(0x392)]['GrandTotal']){let _0x342f5a=_0x1c30dc[_0x3411c0(0x3e4)];_0xa213c8=_0x23468d(_0x1c30dc,_0x3411c0(0x58c),_0x3411c0(0x356),_0x3c7b63(_0xa213c8,_0x342f5a),_0x342f5a);}else _0x215e50['s']===_0xaf0b54['PivotCellStyleTypeEnum'][_0x3411c0(0x1b4)]&&_0x220b04&&(_0xa213c8=_0x23468d(_0x1c30dc,'sheets-pivot.renderText.multipleGrandTotal',_0x3411c0(0x309),_0x3c7b63(_0xa213c8,_0x220b04),_0x220b04));}return _0xa213c8;}function _0x23468d(_0x2ca1a7,_0x2152f2,_0x4c9d64,..._0x43ffec){const _0x30ce2b=_0x3f2857;let _0x5cde37=_0x2ca1a7[_0x2152f2]||_0x4c9d64;return _0x43ffec[_0x30ce2b(0x211)]((_0x4e3ba2,_0x57587b)=>{_0x5cde37=_0x5cde37['replace']('{'+_0x57587b+'}',_0x4e3ba2==null?'':String(_0x4e3ba2));}),_0x1b6372(_0x5cde37)[_0x30ce2b(0x5d1)]();}function _0x1b6372(_0x37e559){let _0x273c13='',_0x3e83c7=!0x1;for(let _0x14dd16 of _0x37e559){let _0x32fb5c=_0x14dd16==='\x20';_0x32fb5c&&_0x3e83c7||(_0x273c13+=_0x14dd16),_0x3e83c7=_0x32fb5c;}return _0x273c13;}function _0x1abdb2(_0x1c177f){const _0x1eac15=_0x3f2857;if((0x0,_0xaf0b54[_0x1eac15(0x26c)])(_0x1c177f)){let {errorType:_0x4cbdc0}=_0x1c177f;switch(_0x4cbdc0){case _0xaf0b54['PivotErrorTypeEnum'][_0x1eac15(0x566)]:return _0x2aea65[_0x1eac15(0x5e5)][_0x1eac15(0x5f0)];case _0xaf0b54['PivotErrorTypeEnum'][_0x1eac15(0x578)]:return _0x2aea65[_0x1eac15(0x5e5)][_0x1eac15(0x529)];case _0xaf0b54[_0x1eac15(0x3e0)][_0x1eac15(0x59d)]:return _0x2aea65[_0x1eac15(0x5e5)][_0x1eac15(0x29e)];case _0xaf0b54[_0x1eac15(0x3e0)][_0x1eac15(0x3e3)]:return _0x2aea65[_0x1eac15(0x5e5)][_0x1eac15(0x29e)];case _0xaf0b54[_0x1eac15(0x3e0)][_0x1eac15(0x5f9)]:return _0x2aea65['ErrorType'][_0x1eac15(0x406)];}}return _0x1c177f;}function _0x4213e6(_0x55bb6d,_0x19760b,_0x259b07=!0x1,_0x3aff8d=!0x1){const _0x536432=_0x3f2857;let {data:_0x7d0113}=_0x19760b,_0x13a049=_0x19760b[_0x536432(0x66b)](),_0x30abef=_0x19760b['getColCount']();if(_0x13a049<=0x0||_0x30abef<=0x0)return[];let _0x5620f7=_0x19760b[_0x536432(0x4ce)](),_0xbd4b15=_0x19760b[_0x536432(0x5ee)](),_0x4c56a2=_0x3aff8d?_0xbd4b15>=0x0?_0xbd4b15+0x1:0x0:_0x13a049,_0x29e8cb=_0x3aff8d?_0x5620f7>=0x0?_0x5620f7+0x1:0x0:_0x30abef,{row:_0x4353a8,col:_0x4aed24}=_0x55bb6d,_0x357607=_0x4353a8,_0x502468=_0x4aed24;if(_0x259b07){let _0x300633=[];for(let [_0x591147,_0x53c279]of Object[_0x536432(0x4e3)](_0x7d0113))for(let [_0x5272c7,_0x282947]of Object['entries'](_0x53c279))_0x300633[_0x536432(0x4ef)]((0x0,_0x1664f5[_0x536432(0x515)])(_0x357607+Number(_0x591147),_0x502468+Number(_0x5272c7)));return _0x300633;}{let _0x288551=_0x3aff8d?+(_0x4c56a2>0x0):0x1,_0x998d3f=_0x3aff8d?+(_0x29e8cb>0x0):0x1;return[{'startRow':_0x357607,'startColumn':_0x502468,'endRow':_0x4353a8+_0x4c56a2-_0x288551,'endColumn':_0x4aed24+_0x29e8cb-_0x998d3f}];}}let _0xfbc374=_0x3f2857(0x36b),_0x3a2976=_0x3f2857(0x5a6),_0x1ceec1=function(_0x4f7ca3){const _0x190999=_0x3f2857;return _0x4f7ca3[_0x190999(0x397)]='filter',_0x4f7ca3[_0x190999(0x2a1)]='panel',_0x4f7ca3[_0x190999(0x426)]='addPivotField',_0x4f7ca3['AddPivotTableWithConfig']=_0x190999(0x67c),_0x4f7ca3[_0x190999(0x52d)]=_0x190999(0x5ca),_0x4f7ca3['MovePivotField']=_0x190999(0x1e1),_0x4f7ca3[_0x190999(0x3d3)]=_0x190999(0x3a2),_0x4f7ca3[_0x190999(0x262)]=_0x190999(0x53c),_0x4f7ca3['SetPivotFilter']=_0x190999(0x43d),_0x4f7ca3[_0x190999(0x473)]=_0x190999(0x37a),_0x4f7ca3[_0x190999(0x409)]=_0x190999(0x652),_0x4f7ca3[_0x190999(0x42f)]=_0x190999(0x4fb),_0x4f7ca3['UpdateValuePosition']=_0x190999(0x3d1),_0x4f7ca3['DrillDown']=_0x190999(0x4ad),_0x4f7ca3['SetValuePivotFilter']=_0x190999(0x61c),_0x4f7ca3['SetPivotDateFilter']=_0x190999(0x48b),_0x4f7ca3[_0x190999(0x572)]=_0x190999(0x4ac),_0x4f7ca3[_0x190999(0x294)]=_0x190999(0x2f8),_0x4f7ca3['SetOption']=_0x190999(0x539),_0x4f7ca3['SetPivotLayout']=_0x190999(0x2c5),_0x4f7ca3[_0x190999(0x5fd)]=_0x190999(0x563),_0x4f7ca3[_0x190999(0x522)]=_0x190999(0x621),_0x4f7ca3[_0x190999(0x453)]=_0x190999(0x5e3),_0x4f7ca3[_0x190999(0x519)]='setPivotManualGroups',_0x4f7ca3[_0x190999(0x20f)]='manualGroupMembers',_0x4f7ca3[_0x190999(0x304)]='numberGroupDefaults',_0x4f7ca3;}({}),_0x37117b={'sheets-pivot.blankValue':'(Blank)','sheets-pivot.columnName':'Column\x20','sheets-pivot.subTotalText':_0x3f2857(0x4ab),'sheets-pivot.grandTotalText':_0x3f2857(0x391),'sheets-pivot.valueText':_0x3f2857(0x349),'sheets-pivot.rowLabels':'Row\x20Labels','sheets-pivot.columnLabels':_0x3f2857(0x3be),'sheets-pivot.averageName':_0x3f2857(0x4b3),'sheets-pivot.countName':_0x3f2857(0x3e6),'sheets-pivot.countNumsName':'Count\x20of\x20','sheets-pivot.maxName':_0x3f2857(0x5f5),'sheets-pivot.minName':'Min\x20of\x20','sheets-pivot.productName':_0x3f2857(0x5b4),'sheets-pivot.stdDevName':_0x3f2857(0x2e5),'sheets-pivot.stdDevpName':'StdDevp\x20of\x20','sheets-pivot.sumName':_0x3f2857(0x3df),'sheets-pivot.varName':_0x3f2857(0x215),'sheets-pivot.varpName':_0x3f2857(0x5cf),'sheets-pivot.subTotal':_0x3f2857(0x4bb),'sheets-pivot.grandTotal':_0x3f2857(0x391),'sheets-pivot.value':_0x3f2857(0x3f8),'sheets-pivot.blank':_0x3f2857(0x22d),'sheets-pivot.other':_0x3f2857(0x574),'sheets-pivot.renderText.valueField':'{0}{1}','sheets-pivot.renderText.subtotal':_0x3f2857(0x356),'sheets-pivot.renderText.grandTotal':'{0}\x20{1}','sheets-pivot.renderText.multipleGrandTotal':_0x3f2857(0x309),'sheets-pivot.renderText.subtotalWithValue':_0x3f2857(0x356),'sheets-pivot.emptyPivot.filter':'Filter','sheets-pivot.emptyPivot.row':_0x3f2857(0x3a3),'sheets-pivot.emptyPivot.column':_0x3f2857(0x32c),'sheets-pivot.emptyPivot.values':_0x3f2857(0x606),'sheets-pivot.dateGroup.year':_0x3f2857(0x324),'sheets-pivot.dateGroup.month':_0x3f2857(0x24c),'sheets-pivot.dateGroup.day':'Day','sheets-pivot.dateGroup.date':'Day','sheets-pivot.dateGroup.hour':_0x3f2857(0x291),'sheets-pivot.dateGroup.minute':_0x3f2857(0x5a1),'sheets-pivot.dateGroup.hourMinute':_0x3f2857(0x5ec),'sheets-pivot.dateGroup.quarter':_0x3f2857(0x23e),'sheets-pivot.dateGroup.monthDate':_0x3f2857(0x3fc),'sheets-pivot.dateGroup.yearQuarter':'Year-Quarter','sheets-pivot.dateGroup.yearMonth':'Year-Month','sheets-pivot.dateGroup.yearMonthDate':_0x3f2857(0x5bf)},_0x85074c={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},_0x4ac011=(0x0,_0x1664f5[_0x3f2857(0x510)])(_0x3f2857(0x375)),_0x5365cc=(0x0,_0x1664f5[_0x3f2857(0x510)])(_0x3f2857(0x5a7)),_0xddee90=(0x0,_0x1664f5[_0x3f2857(0x510)])(_0x3f2857(0x663)),_0x5c757c=(0x0,_0x1664f5['createAsyncInterceptorKey'])('pivotOptionFilterCoordination'),_0x5cb06e=(0x0,_0x1664f5[_0x3f2857(0x3d2)])(_0x3f2857(0x305)),_0x35fe67=(0x0,_0x1664f5[_0x3f2857(0x3d2)])(_0x3f2857(0x41b)),_0x46c411=function(_0x21e19d){const _0x500b9e=_0x3f2857;return _0x21e19d[_0x500b9e(0x677)]=_0x500b9e(0x373),_0x21e19d[_0x500b9e(0x3da)]=_0x500b9e(0x57d),_0x21e19d[_0x500b9e(0x268)]=_0x500b9e(0x4a7),_0x21e19d;}({}),_0x338883={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x210)],'id':_0x3f2857(0x2b6),'handler':()=>!0x0},_0x459f9c={'type':_0x1664f5['CommandType'][_0x3f2857(0x210)],'id':_0x3f2857(0x1eb),'handler':()=>!0x0},_0x43fade={'type':_0x1664f5['CommandType'][_0x3f2857(0x210)],'id':_0x3f2857(0x3b7),'handler':()=>!0x0},_0x426223={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x210)],'id':_0x3f2857(0x25e),'handler':()=>!0x0},_0x46a5d5={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x210)],'id':_0x3f2857(0x236),'handler':()=>!0x0},_0xf43dae={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x210)],'id':_0x3f2857(0x4e5),'handler':()=>!0x0},_0x39064={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x210)],'id':_0x3f2857(0x545),'handler':()=>!0x0};function _0x5b6c58(_0x341860){'@babel/helpers - typeof';const _0x156525=_0x3f2857;return _0x5b6c58=typeof Symbol==_0x156525(0x3cf)&&typeof Symbol['iterator']==_0x156525(0x31d)?function(_0xf7152c){return typeof _0xf7152c;}:function(_0x31bec3){const _0xf4c4ea=_0x156525;return _0x31bec3&&typeof Symbol=='function'&&_0x31bec3[_0xf4c4ea(0x1d8)]===Symbol&&_0x31bec3!==Symbol[_0xf4c4ea(0x212)]?_0xf4c4ea(0x31d):typeof _0x31bec3;},_0x5b6c58(_0x341860);}function _0x6bdca8(_0x58d662,_0xfd24e6){const _0x34652c=_0x3f2857;if(_0x5b6c58(_0x58d662)!=_0x34652c(0x4be)||!_0x58d662)return _0x58d662;var _0x4bb9f4=_0x58d662[Symbol[_0x34652c(0x40a)]];if(_0x4bb9f4!==void 0x0){var _0x46d8e3=_0x4bb9f4['call'](_0x58d662,_0xfd24e6||_0x34652c(0x3af));if(_0x5b6c58(_0x46d8e3)!=_0x34652c(0x4be))return _0x46d8e3;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xfd24e6===_0x34652c(0x5cb)?String:Number)(_0x58d662);}function _0x52172e(_0x76bdca){const _0x3771f5=_0x3f2857;var _0x4fb2b9=_0x6bdca8(_0x76bdca,'string');return _0x5b6c58(_0x4fb2b9)==_0x3771f5(0x31d)?_0x4fb2b9:_0x4fb2b9+'';}function _0x108027(_0x3138e5,_0x300d34,_0x169e9b){const _0x29497c=_0x3f2857;return(_0x300d34=_0x52172e(_0x300d34))in _0x3138e5?Object[_0x29497c(0x5fc)](_0x3138e5,_0x300d34,{'value':_0x169e9b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3138e5[_0x300d34]=_0x169e9b,_0x3138e5;}function _0x8e806c(_0x3f42f1,_0x5a8484){return function(_0x44ad90,_0x2d4c30){_0x5a8484(_0x44ad90,_0x2d4c30,_0x3f42f1);};}function _0x68e210(_0x429a4d,_0x28193a,_0x399971,_0x1d8831){const _0x186e11=_0x3f2857;var _0x284e3b=arguments[_0x186e11(0x33b)],_0x1c85bc=_0x284e3b<0x3?_0x28193a:_0x1d8831===null?_0x1d8831=Object[_0x186e11(0x4b4)](_0x28193a,_0x399971):_0x1d8831,_0x4bccb6;if(typeof Reflect=='object'&&typeof Reflect[_0x186e11(0x42e)]==_0x186e11(0x3cf))_0x1c85bc=Reflect['decorate'](_0x429a4d,_0x28193a,_0x399971,_0x1d8831);else{for(var _0x1fa3df=_0x429a4d[_0x186e11(0x33b)]-0x1;_0x1fa3df>=0x0;_0x1fa3df--)(_0x4bccb6=_0x429a4d[_0x1fa3df])&&(_0x1c85bc=(_0x284e3b<0x3?_0x4bccb6(_0x1c85bc):_0x284e3b>0x3?_0x4bccb6(_0x28193a,_0x399971,_0x1c85bc):_0x4bccb6(_0x28193a,_0x399971))||_0x1c85bc);}return _0x284e3b>0x3&&_0x1c85bc&&Object[_0x186e11(0x5fc)](_0x28193a,_0x399971,_0x1c85bc),_0x1c85bc;}let _0x1b5924=class extends _0x1664f5[_0x3f2857(0x660)]{constructor(_0x48a2de){const _0x49f06e=_0x3f2857;super(),this[_0x49f06e(0x37c)]=_0x48a2de,_0x108027(this,_0x49f06e(0x34f),new Map());}['handleAsyncResponse'](_0x5b7142){const _0x378798=_0x3f2857;let {version:_0x1e07a1}=_0x5b7142,_0x53e048=this['_requestResolvers'][_0x378798(0x66e)](_0x1e07a1);_0x53e048&&(this[_0x378798(0x34f)]['delete'](_0x1e07a1),_0x5b7142[_0x378798(0x5ef)]===void 0x0?_0x53e048['resolve'](_0x5b7142):_0x53e048[_0x378798(0x21e)](Error(_0x5b7142[_0x378798(0x5ef)])));}async[_0x3f2857(0x678)](_0x305a26){const _0x3807f0=_0x3f2857;let _0x5946e6=this[_0x3807f0(0x5d6)](),_0x2fe4dc=new Promise((_0x1a4180,_0x9baa31)=>{const _0x4d5f49=_0x3807f0;this[_0x4d5f49(0x34f)][_0x4d5f49(0x57d)](_0x5946e6,{'resolve':_0x1a4180,'reject':_0x9baa31});});try{await this[_0x3807f0(0x37c)][_0x3807f0(0x4f1)](_0x43fade['id'],{'version':_0x5946e6,..._0x305a26},{'onlyLocal':!0x0})||this['_rejectRequest'](_0x5946e6,Error(_0x3807f0(0x3f7)));}catch(_0x9708bd){this['_rejectRequest'](_0x5946e6,_0x9708bd);}return _0x2fe4dc;}[_0x3f2857(0x345)](){const _0x1a6e1f=_0x3f2857;super[_0x1a6e1f(0x345)]();let _0x56da09=Error('[SheetsPivotRPCService]:\x20disposed\x20with\x20pending\x20pivot\x20requests');this[_0x1a6e1f(0x34f)][_0x1a6e1f(0x211)](({reject:_0x1db434})=>_0x1db434(_0x56da09)),this[_0x1a6e1f(0x34f)][_0x1a6e1f(0x318)]();}[_0x3f2857(0x354)](_0x11545e,_0x7ceec2){const _0x7be8ac=_0x3f2857;let _0xb43a14=this[_0x7be8ac(0x34f)][_0x7be8ac(0x66e)](_0x11545e);_0xb43a14&&(this['_requestResolvers'][_0x7be8ac(0x4a7)](_0x11545e),_0xb43a14['reject'](_0x7ceec2));}[_0x3f2857(0x5d6)](){const _0x741498=_0x3f2857;return Math[_0x741498(0x5be)]()[_0x741498(0x343)](0x24)[_0x741498(0x298)](0x2,0x10);}};_0x1b5924=_0x68e210([_0x8e806c(0x0,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x1664f5[_0x3f2857(0x250)]))],_0x1b5924);let _0x3d9e90=_0x3f2857(0x234),_0x1c354e={'autoDateGroup':!0x0,'dateSystem':_0x1664f5[_0x3f2857(0x63c)][_0x3f2857(0x217)]},_0x4a218b=class extends _0x1664f5[_0x3f2857(0x660)]{constructor(_0x1efb18){const _0x5a3fa5=_0x3f2857;super(),this['_univerInstanceService']=_0x1efb18,_0x108027(this,_0x5a3fa5(0x3c3),new Map()),_0x108027(this,_0x5a3fa5(0x4d0),new Map()),_0x108027(this,_0x5a3fa5(0x326),new Map()),_0x108027(this,'_refreshCycleCache',new WeakMap());}[_0x3f2857(0x228)](_0x25b283,_0x357220){const _0x2ebf51=_0x3f2857;var _0x6a4941;return(_0x6a4941=this[_0x2ebf51(0x207)](_0x4460bb(this[_0x2ebf51(0x311)](_0x25b283)),_0x357220))==null?void 0x0:_0x6a4941['pivotCacheId'];}[_0x3f2857(0x1c3)](_0x3bb3b6,_0xf83c71){const _0x7c3e90=_0x3f2857;let _0x5a8a3c=this[_0x7c3e90(0x3c3)][_0x7c3e90(0x66e)](_0x3bb3b6);if(!_0x5a8a3c)return;let _0x4f75dc=this[_0x7c3e90(0x311)](_0xf83c71),_0x35e7dc=this[_0x7c3e90(0x4d0)][_0x7c3e90(0x66e)](_0x5a8a3c[_0x7c3e90(0x24e)]);_0x35e7dc==null||_0x35e7dc[_0x7c3e90(0x4a7)](_0x5a8a3c),_0x35e7dc!=null&&_0x35e7dc[_0x7c3e90(0x293)]||this[_0x7c3e90(0x4d0)][_0x7c3e90(0x4a7)](_0x5a8a3c['sourceKey']),_0x5a8a3c[_0x7c3e90(0x213)]=_0x4f75dc,_0x5a8a3c[_0x7c3e90(0x24e)]=_0x4460bb(_0x4f75dc);let _0x44435f=this[_0x7c3e90(0x4d0)][_0x7c3e90(0x66e)](_0x5a8a3c[_0x7c3e90(0x24e)])??new Set();_0x44435f['add'](_0x5a8a3c),this['_cacheBySourceKey'][_0x7c3e90(0x57d)](_0x5a8a3c['sourceKey'],_0x44435f);}[_0x3f2857(0x5b2)](_0x30cf61){const _0x10f745=_0x3f2857;var _0x9d83c0;let _0x2d9aa6=(_0x9d83c0=this['_univerInstanceService'][_0x10f745(0x300)](_0x30cf61[_0x10f745(0x339)]))==null?void 0x0:_0x9d83c0[_0x10f745(0x2e4)](_0x30cf61['to'][_0x10f745(0x555)]);if(!_0x2d9aa6)return[];let _0x1b98ad=[];for(let _0x17fe17 of Array[_0x10f745(0x4de)](this[_0x10f745(0x3c3)]['values']())){let _0x4ec813=_0x903c34(_0x17fe17[_0x10f745(0x213)],_0x30cf61,_0x2d9aa6[_0x10f745(0x466)]());if(!_0x4ec813)continue;_0x1b98ad[_0x10f745(0x4ef)]({'pivotCacheId':_0x17fe17[_0x10f745(0x60a)],'before':_0x48a2e5(_0x17fe17['sourceRangeInfo']),'after':_0x4ec813});let _0x21227e=this[_0x10f745(0x4d0)][_0x10f745(0x66e)](_0x17fe17[_0x10f745(0x24e)]);_0x21227e==null||_0x21227e[_0x10f745(0x4a7)](_0x17fe17),_0x21227e!=null&&_0x21227e[_0x10f745(0x293)]||this[_0x10f745(0x4d0)]['delete'](_0x17fe17[_0x10f745(0x24e)]),_0x17fe17[_0x10f745(0x213)]=_0x4ec813,_0x17fe17[_0x10f745(0x24e)]=_0x4460bb(_0x4ec813);let _0x90ed6d=this['_cacheBySourceKey'][_0x10f745(0x66e)](_0x17fe17[_0x10f745(0x24e)])??new Set();_0x90ed6d[_0x10f745(0x373)](_0x17fe17),this[_0x10f745(0x4d0)][_0x10f745(0x57d)](_0x17fe17['sourceKey'],_0x90ed6d);}return _0x1b98ad;}[_0x3f2857(0x207)](_0x91d859,_0x2f9ffb){const _0x293b58=_0x3f2857;return Array[_0x293b58(0x4de)](this[_0x293b58(0x4d0)]['get'](_0x91d859)??[])[_0x293b58(0x209)](_0x53cef4=>_0x53cef4['dataFieldManager']===_0x2f9ffb);}[_0x3f2857(0x239)](_0x1c07c9,_0x1f3874,_0x8e5b90,_0x21d078,_0x412b72){const _0x3e1903=_0x3f2857;let _0x4dc8bb=this[_0x3e1903(0x311)](_0x8e5b90),_0x4da425=_0x4460bb(_0x4dc8bb),_0x3ed1a3=_0x129628(_0x1c07c9,_0x1f3874),_0x4dcd2b=this['_reportBindings'][_0x3e1903(0x66e)](_0x3ed1a3);if((_0x4dcd2b==null?void 0x0:_0x4dcd2b[_0x3e1903(0x573)][_0x3e1903(0x24e)])===_0x4da425&&_0x4dcd2b[_0x3e1903(0x573)][_0x3e1903(0x290)]===_0x21d078&&(!_0x412b72||_0x4dcd2b[_0x3e1903(0x573)][_0x3e1903(0x60a)]===_0x412b72))return _0x4dcd2b[_0x3e1903(0x410)];let _0x279e9a;if(_0x412b72){let _0x83f40f=this['_cacheById']['get'](_0x412b72);if(_0x83f40f){if(_0x83f40f[_0x3e1903(0x213)][_0x3e1903(0x339)]!==_0x4dc8bb[_0x3e1903(0x339)]||_0x83f40f[_0x3e1903(0x24e)]!==_0x4da425||_0x83f40f['dataFieldManager']!==_0x21d078)throw new _0x51868d['PivotCacheProviderError'](_0x51868d[_0x3e1903(0x2cb)][_0x3e1903(0x34a)],{'pivotCacheId':_0x412b72,'sourceRangeInfo':_0x8e5b90});_0x279e9a=_0x83f40f;}_0x279e9a??=this[_0x3e1903(0x263)](_0x4dc8bb,_0x4da425,_0x21d078,_0x412b72);}else _0x279e9a=this['_findCache'](_0x4da425,_0x21d078),_0x279e9a??=this['_createRecord'](_0x4dc8bb,_0x4da425,_0x21d078);let _0x2a1b49=this[_0x3e1903(0x1d0)](_0x279e9a,_0x3ed1a3);return _0x4dcd2b==null||_0x4dcd2b['handle'][_0x3e1903(0x345)](),this[_0x3e1903(0x326)]['set'](_0x3ed1a3,{'reportUnitId':_0x1c07c9,'handle':_0x2a1b49,'record':_0x279e9a}),_0x2a1b49;}['releaseReport'](_0x40e4e9,_0xb70ca3){const _0x6b5561=_0x3f2857;var _0x3cfb42;(_0x3cfb42=this[_0x6b5561(0x326)]['get'](_0x129628(_0x40e4e9,_0xb70ca3)))==null||_0x3cfb42[_0x6b5561(0x410)][_0x6b5561(0x345)]();}[_0x3f2857(0x675)](_0x38e17c,_0x3b0e8d,_0x3ebc27=!0x1){const _0x29a8c1=_0x3f2857;let _0x176244=this[_0x29a8c1(0x3c3)][_0x29a8c1(0x66e)](_0x3b0e8d);if(!_0x176244||_0x176244['sourceRangeInfo']['unitId']!==_0x38e17c)throw new _0x51868d[(_0x29a8c1(0x216))](_0x51868d[_0x29a8c1(0x2cb)][_0x29a8c1(0x2a9)],{'ownerUnitId':_0x38e17c,'pivotCacheId':_0x3b0e8d});return _0x3ebc27&&(_0x176244[_0x29a8c1(0x419)]=!0x1),this[_0x29a8c1(0x1d0)](_0x176244,void 0x0,_0x3ebc27);}[_0x3f2857(0x41a)](_0x420f1f,_0x2b2c84){const _0x3c26e=_0x3f2857;let _0x6340c4=this[_0x3c26e(0x3c3)]['get'](_0x2b2c84);return(_0x6340c4==null?void 0x0:_0x6340c4[_0x3c26e(0x213)][_0x3c26e(0x339)])===_0x420f1f?_0x48a2e5(_0x6340c4[_0x3c26e(0x213)]):void 0x0;}[_0x3f2857(0x27d)](_0x21df20,_0x29543a){const _0xb3c843=_0x3f2857;var _0x14d080;return(_0x14d080=this['_reportBindings'][_0xb3c843(0x66e)](_0x129628(_0x21df20,_0x29543a)))==null?void 0x0:_0x14d080[_0xb3c843(0x573)]['pivotCacheId'];}['getReportHandle'](_0x24136c,_0x5d87a8){const _0x2a1284=_0x3f2857;var _0x3fc93d;return(_0x3fc93d=this['_reportBindings'][_0x2a1284(0x66e)](_0x129628(_0x24136c,_0x5d87a8)))==null?void 0x0:_0x3fc93d[_0x2a1284(0x410)];}[_0x3f2857(0x2f9)](_0x59ce43){const _0x334e0b=_0x3f2857;let _0x540c25={};return this['_cacheById'][_0x334e0b(0x211)](_0x125b99=>{const _0x10c92e=_0x334e0b;_0x125b99[_0x10c92e(0x213)][_0x10c92e(0x339)]!==_0x59ce43||_0x125b99['reportKeys'][_0x10c92e(0x293)]===0x0&&_0x125b99[_0x10c92e(0x35e)]===0x0&&!_0x125b99[_0x10c92e(0x419)]||(_0x540c25[_0x125b99[_0x10c92e(0x60a)]]={'pivotCacheId':_0x125b99[_0x10c92e(0x60a)],'sourceRangeInfo':_0x48a2e5(_0x125b99[_0x10c92e(0x213)]),..._0x125b99[_0x10c92e(0x29b)][_0x10c92e(0x293)]===0x0?{'retainedSource':!0x0}:{}});}),_0x540c25;}['fromJSON'](_0x5cde5f,_0x493f41,_0x444f56){const _0xae774f=_0x3f2857;Object['values'](_0x493f41)[_0xae774f(0x211)](_0x104c3f=>{const _0x54c675=_0xae774f;let _0x3d8d82=this['_normalizeSource'](_0x104c3f[_0x54c675(0x213)]),_0x57d3cc=_0x4460bb(_0x3d8d82);if(_0x3d8d82[_0x54c675(0x339)]!==_0x5cde5f)throw new _0x51868d[(_0x54c675(0x216))](_0x51868d[_0x54c675(0x2cb)][_0x54c675(0x34a)],{'unitId':_0x5cde5f,'snapshot':_0x104c3f});let _0x2c0a6d=this[_0x54c675(0x3c3)][_0x54c675(0x66e)](_0x104c3f[_0x54c675(0x60a)]);if(_0x2c0a6d){if(_0x2c0a6d[_0x54c675(0x24e)]!==_0x57d3cc||_0x2c0a6d['dataFieldManager']!==_0x444f56)throw new _0x51868d[(_0x54c675(0x216))](_0x51868d[_0x54c675(0x2cb)][_0x54c675(0x34a)],{'unitId':_0x5cde5f,'snapshot':_0x104c3f});return;}let _0x1cba6b=this[_0x54c675(0x263)](_0x3d8d82,_0x57d3cc,_0x444f56,_0x104c3f['pivotCacheId']);_0x1cba6b['retainedSource']=_0x104c3f['retainedSource']===!0x0;});}[_0x3f2857(0x2bc)](_0x52d837){const _0x2204ea=_0x3f2857;Array['from'](this[_0x2204ea(0x3c3)][_0x2204ea(0x374)]())[_0x2204ea(0x211)](_0x5205f0=>{const _0x4cd6e9=_0x2204ea;_0x5205f0['sourceRangeInfo'][_0x4cd6e9(0x339)]===_0x52d837&&this[_0x4cd6e9(0x46b)](_0x5205f0);});}['deleteUnitId'](_0x3ad746){const _0x1a012a=_0x3f2857;Array[_0x1a012a(0x4de)](this[_0x1a012a(0x326)][_0x1a012a(0x4e3)]())['forEach'](([_0x49edf1,_0x3c027f])=>{const _0x14f692=_0x1a012a;(_0x3c027f[_0x14f692(0x617)]===_0x3ad746||_0x3c027f[_0x14f692(0x573)][_0x14f692(0x213)][_0x14f692(0x339)]===_0x3ad746)&&(_0x3c027f[_0x14f692(0x410)]['dispose'](),this[_0x14f692(0x326)][_0x14f692(0x4a7)](_0x49edf1));}),Array['from'](this[_0x1a012a(0x3c3)][_0x1a012a(0x374)]())[_0x1a012a(0x211)](_0xf55be0=>{const _0x5716f8=_0x1a012a;_0xf55be0[_0x5716f8(0x213)][_0x5716f8(0x339)]===_0x3ad746&&(_0xf55be0[_0x5716f8(0x419)]=!0x1,_0xf55be0[_0x5716f8(0x29b)]['clear'](),Array['from'](_0xf55be0['handles'])[_0x5716f8(0x211)](_0x5c11bd=>_0x5c11bd[_0x5716f8(0x345)]()),this[_0x5716f8(0x46b)](_0xf55be0));});}['refreshOnce'](_0x5965cd,_0x441bc5,_0xba9854){const _0x572fb7=_0x3f2857;let _0x2221bd=this[_0x572fb7(0x1ec)][_0x572fb7(0x66e)](_0x441bc5),_0x472527=_0x2221bd==null?void 0x0:_0x2221bd['get'](_0x5965cd);if(_0x472527)return _0x472527;let _0x114f03=this[_0x572fb7(0x3c3)][_0x572fb7(0x66e)](_0x5965cd);if(!_0x114f03)throw new _0x51868d[(_0x572fb7(0x216))](_0x51868d['PivotCacheProviderErrorCodeEnum'][_0x572fb7(0x2a9)],{'pivotCacheId':_0x5965cd});let _0x26f9b1=_0xba9854(),_0x2182a5=Object[_0x572fb7(0x612)](Array['from'](_0x26f9b1[_0x572fb7(0x444)])),_0x404415=Object[_0x572fb7(0x612)]({..._0x26f9b1[_0x572fb7(0x2f4)]}),_0x1917de=_0x2221bd??new Map();_0x2221bd||this['_refreshCycleCache'][_0x572fb7(0x57d)](_0x441bc5,_0x1917de);let _0x2f7704=Array[_0x572fb7(0x4de)](this[_0x572fb7(0x4d0)][_0x572fb7(0x66e)](_0x114f03['sourceKey'])??[])[_0x572fb7(0x501)](_0x4b0a47=>_0x4b0a47[_0x572fb7(0x290)]===_0x114f03[_0x572fb7(0x290)]);return _0x2f7704[_0x572fb7(0x211)](_0xa78f23=>{const _0x29aba1=_0x572fb7;_0x1917de[_0x29aba1(0x57d)](_0xa78f23[_0x29aba1(0x60a)],Object[_0x29aba1(0x612)]({'pivotCacheId':_0xa78f23[_0x29aba1(0x60a)],'dirtyFieldIds':_0x2182a5,'previousFieldNames':_0x404415}));}),_0x2f7704[_0x572fb7(0x211)](_0x884980=>{const _0x45c504=_0x572fb7;let _0x40b872=_0x1917de[_0x45c504(0x66e)](_0x884980[_0x45c504(0x60a)]);_0x884980[_0x45c504(0x319)]['next']({'pivotCacheId':_0x40b872[_0x45c504(0x60a)],'dirtyFieldIds':_0x40b872[_0x45c504(0x444)]});}),_0x1917de[_0x572fb7(0x66e)](_0x5965cd);}['dispose'](){const _0x4a4781=_0x3f2857;Array[_0x4a4781(0x4de)](this['_reportBindings'][_0x4a4781(0x374)]())[_0x4a4781(0x211)](({handle:_0x1b88e3})=>_0x1b88e3['dispose']()),this[_0x4a4781(0x326)]['clear'](),Array[_0x4a4781(0x4de)](this[_0x4a4781(0x3c3)][_0x4a4781(0x374)]())[_0x4a4781(0x211)](_0x5943c4=>{const _0x56212f=_0x4a4781;Array[_0x56212f(0x4de)](_0x5943c4[_0x56212f(0x5f6)])[_0x56212f(0x211)](_0x39ae27=>_0x39ae27[_0x56212f(0x345)]()),_0x5943c4['changed$'][_0x56212f(0x65b)]();}),this[_0x4a4781(0x3c3)][_0x4a4781(0x318)](),this[_0x4a4781(0x4d0)][_0x4a4781(0x318)](),super[_0x4a4781(0x345)]();}['_normalizeSource'](_0x5cc566){const _0x118845=_0x3f2857;let _0x20d5f3=this[_0x118845(0x34c)]['getUnit'](_0x5cc566[_0x118845(0x339)],_0x1664f5[_0x118845(0x3b3)][_0x118845(0x418)]),_0x2a2238=(_0x20d5f3==null?void 0x0:_0x20d5f3[_0x118845(0x2e4)](_0x5cc566['subUnitId']))??(_0x5cc566[_0x118845(0x486)]?_0x20d5f3==null?void 0x0:_0x20d5f3['getSheetBySheetName'](_0x5cc566[_0x118845(0x486)]):void 0x0);if(!_0x2a2238)throw new _0x51868d[(_0x118845(0x216))](_0x51868d[_0x118845(0x2cb)][_0x118845(0x34a)],{'sourceRangeInfo':_0x5cc566});return{..._0x5cc566,'subUnitId':_0x2a2238[_0x118845(0x597)](),'sheetName':_0x2a2238['getName'](),'range':_0x4e3a37(_0x5cc566[_0x118845(0x4cf)],_0x2a2238)};}[_0x3f2857(0x263)](_0x20c621,_0x3022c7,_0x1b359e,_0x10ae55){const _0x390e14=_0x3f2857;let _0x417df8=_0x10ae55&&!this[_0x390e14(0x3c3)]['has'](_0x10ae55)?_0x10ae55:_0x390e14(0x49b)+(0x0,_0x1664f5[_0x390e14(0x2a8)])(0x8),_0x3a7e21={'pivotCacheId':_0x417df8,'sourceKey':_0x3022c7,'sourceRangeInfo':_0x20c621,'dataFieldManager':_0x1b359e,'reportKeys':new Set(),'handles':new Set(),'runtimeLeaseCount':0x0,'sourceLeaseCount':0x0,'changed$':new _0x551644[(_0x390e14(0x613))]()};this[_0x390e14(0x3c3)]['set'](_0x417df8,_0x3a7e21);let _0x13455f=this['_cacheBySourceKey'][_0x390e14(0x66e)](_0x3022c7);return _0x13455f||(_0x13455f=new Set(),this[_0x390e14(0x4d0)][_0x390e14(0x57d)](_0x3022c7,_0x13455f)),_0x13455f[_0x390e14(0x373)](_0x3a7e21),_0x3a7e21;}[_0x3f2857(0x1d0)](_0x11bf30,_0x51e68a,_0x2f1cf4=!0x1){const _0x36e4b9=_0x3f2857;let _0xc585a1=!0x1;_0x11bf30[_0x36e4b9(0x2d5)]++,_0x2f1cf4&&_0x11bf30[_0x36e4b9(0x35e)]++,_0x51e68a&&_0x11bf30[_0x36e4b9(0x29b)]['add'](_0x51e68a);let _0x2af6ad={'pivotCacheId':_0x11bf30[_0x36e4b9(0x60a)],'changed$':_0x11bf30[_0x36e4b9(0x319)]['asObservable'](),'getDataFieldManager':()=>_0x11bf30[_0x36e4b9(0x290)],'dispose':()=>{const _0x33a432=_0x36e4b9;if(!_0xc585a1){if(_0xc585a1=!0x0,_0x11bf30[_0x33a432(0x5f6)][_0x33a432(0x4a7)](_0x2af6ad),_0x11bf30[_0x33a432(0x2d5)]--,_0x2f1cf4&&_0x11bf30[_0x33a432(0x35e)]--,_0x51e68a){var _0x2352b4;_0x11bf30[_0x33a432(0x29b)][_0x33a432(0x4a7)](_0x51e68a),((_0x2352b4=this[_0x33a432(0x326)][_0x33a432(0x66e)](_0x51e68a))==null?void 0x0:_0x2352b4['handle'])===_0x2af6ad&&this[_0x33a432(0x326)][_0x33a432(0x4a7)](_0x51e68a);}this[_0x33a432(0x46b)](_0x11bf30);}}};return _0x11bf30['handles'][_0x36e4b9(0x373)](_0x2af6ad),_0x2af6ad;}[_0x3f2857(0x46b)](_0x17af7a){const _0x579ba4=_0x3f2857;if(_0x17af7a['runtimeLeaseCount']>0x0||_0x17af7a[_0x579ba4(0x29b)][_0x579ba4(0x293)]>0x0||_0x17af7a[_0x579ba4(0x419)])return;this[_0x579ba4(0x3c3)][_0x579ba4(0x66e)](_0x17af7a[_0x579ba4(0x60a)])===_0x17af7a&&this[_0x579ba4(0x3c3)][_0x579ba4(0x4a7)](_0x17af7a[_0x579ba4(0x60a)]);let _0x26699f=this[_0x579ba4(0x4d0)][_0x579ba4(0x66e)](_0x17af7a[_0x579ba4(0x24e)]);_0x26699f==null||_0x26699f['delete'](_0x17af7a),(_0x26699f==null?void 0x0:_0x26699f[_0x579ba4(0x293)])===0x0&&this[_0x579ba4(0x4d0)][_0x579ba4(0x4a7)](_0x17af7a[_0x579ba4(0x24e)]),_0x17af7a[_0x579ba4(0x319)][_0x579ba4(0x65b)]();}};_0x4a218b=_0x68e210([_0x8e806c(0x0,_0x1664f5['IUniverInstanceService'])],_0x4a218b);function _0x4e3a37(_0x1b394a,_0x274b3f){const _0x3c6b2d=_0x3f2857;return _0x1b394a[_0x3c6b2d(0x62a)]===_0x1664f5[_0x3c6b2d(0x320)][_0x3c6b2d(0x3ee)]?{'startRow':0x0,'endRow':_0x274b3f[_0x3c6b2d(0x66b)]()-0x1,'startColumn':_0x1b394a[_0x3c6b2d(0x5ea)],'endColumn':_0x1b394a[_0x3c6b2d(0x61a)]}:{'startRow':_0x1b394a['startRow'],'endRow':_0x1b394a[_0x3c6b2d(0x1ac)],'startColumn':_0x1b394a[_0x3c6b2d(0x5ea)],'endColumn':_0x1b394a[_0x3c6b2d(0x61a)]};}function _0x48a2e5(_0x2c206f){return{..._0x2c206f,'range':{..._0x2c206f['range']}};}function _0x4460bb(_0x192bb8){const _0x379222=_0x3f2857;let {range:_0x38fdd7}=_0x192bb8;return JSON[_0x379222(0x21f)](['worksheet-range',_0x192bb8[_0x379222(0x339)],_0x192bb8['subUnitId'],_0x38fdd7[_0x379222(0x5bb)],_0x38fdd7[_0x379222(0x1ac)],_0x38fdd7['startColumn'],_0x38fdd7[_0x379222(0x61a)]]);}function _0x129628(_0x4fcb2f,_0x1d234a){const _0x3237f0=_0x3f2857;return JSON[_0x3237f0(0x21f)]([_0x4fcb2f,_0x1d234a]);}function _0x903c34(_0x4937f9,_0x30bb6b,_0xc881bd){const _0x2922d1=_0x3f2857;if(_0x4937f9[_0x2922d1(0x339)]!==_0x30bb6b[_0x2922d1(0x339)]||_0x4937f9[_0x2922d1(0x555)]!==_0x30bb6b[_0x2922d1(0x4de)][_0x2922d1(0x555)]||!_0x1664f5[_0x2922d1(0x465)][_0x2922d1(0x1f3)](_0x30bb6b['fromRange'],_0x4937f9[_0x2922d1(0x4cf)]))return;let _0x1ef4f4=_0x30bb6b[_0x2922d1(0x509)][_0x2922d1(0x5bb)]-_0x30bb6b[_0x2922d1(0x5d0)][_0x2922d1(0x5bb)],_0x21dfdc=_0x30bb6b[_0x2922d1(0x509)][_0x2922d1(0x5ea)]-_0x30bb6b[_0x2922d1(0x5d0)][_0x2922d1(0x5ea)];return{..._0x4937f9,'subUnitId':_0x30bb6b['to'][_0x2922d1(0x555)],'sheetName':_0xc881bd,'range':{'startRow':_0x4937f9['range'][_0x2922d1(0x5bb)]+_0x1ef4f4,'endRow':_0x4937f9[_0x2922d1(0x4cf)][_0x2922d1(0x1ac)]+_0x1ef4f4,'startColumn':_0x4937f9[_0x2922d1(0x4cf)][_0x2922d1(0x5ea)]+_0x21dfdc,'endColumn':_0x4937f9[_0x2922d1(0x4cf)][_0x2922d1(0x61a)]+_0x21dfdc}};}let _0x12ae9f=class extends _0x1664f5[_0x3f2857(0x660)]{constructor(_0x323b76,_0xdd9ea9,_0x1c2b23,_0x47bc91,_0x3441c4,_0x59de42){const _0x32e775=_0x3f2857;super(),this[_0x32e775(0x32b)]=_0x323b76,this[_0x32e775(0x37c)]=_0xdd9ea9,this[_0x32e775(0x34c)]=_0x1c2b23,this[_0x32e775(0x2ee)]=_0x47bc91,this[_0x32e775(0x2ac)]=_0x3441c4,this[_0x32e775(0x4f2)]=_0x59de42,_0x108027(this,_0x32e775(0x4c7),new Map()),_0x108027(this,_0x32e775(0x2e9),new Map()),_0x108027(this,_0x32e775(0x53e),new Map()),_0x108027(this,'_retainedSources',new Map()),_0x108027(this,_0x32e775(0x363),new Map()),_0x108027(this,_0x32e775(0x656),new Map()),_0x108027(this,'_runtimeState$',new _0x551644[(_0x32e775(0x613))]()),_0x108027(this,_0x32e775(0x524),this[_0x32e775(0x327)][_0x32e775(0x370)]()),_0x108027(this,'_pivotTableRangeInfo',new Map()),_0x108027(this,_0x32e775(0x45c),new Map()),_0x108027(this,_0x32e775(0x26e),new _0x551644[(_0x32e775(0x613))]()),_0x108027(this,_0x32e775(0x51b),this[_0x32e775(0x26e)]['asObservable']()),_0x108027(this,_0x32e775(0x395),void 0x0),_0x108027(this,'_pivotInitCompleted$',new _0x551644[(_0x32e775(0x613))]()),_0x108027(this,'pivotInitCompleted$',this[_0x32e775(0x2e0)]['asObservable']()),_0x108027(this,_0x32e775(0x22c),new _0x551644[(_0x32e775(0x613))]()),_0x108027(this,_0x32e775(0x3f0),this[_0x32e775(0x22c)][_0x32e775(0x370)]()),_0x108027(this,_0x32e775(0x651),{}),this[_0x32e775(0x58f)](()=>{const _0x4485cb=_0x32e775;this['_pendingChanges']=void 0x0,this[_0x4485cb(0x26e)]['complete'](),this['_pivotConfigChange$']['complete']();}),this['_initLocale'](),this[_0x32e775(0x2d3)]();let _0xadf0a4=this[_0x32e775(0x2ac)][_0x32e775(0x277)](_0x3d9e90);(_0xadf0a4==null?void 0x0:_0xadf0a4['notExecuteFormula'])===!0x0&&(this[_0x32e775(0x1c5)](),this[_0x32e775(0x58f)](this[_0x32e775(0x37c)][_0x32e775(0x323)](_0x335af8=>{const _0x58e896=_0x32e775;_0x335af8['id']===_0x366635[_0x58e896(0x60f)]['id']&&this[_0x58e896(0x1e6)](_0x335af8[_0x58e896(0x623)]);})));}[_0x3f2857(0x33e)](_0xdb5e60){const _0xa5cacd=_0x3f2857;if(this[_0xa5cacd(0x50d)](),this[_0xa5cacd(0x395)])return _0xdb5e60();let _0x40f0d9={'configs':new Map(),'collections':new Map()};this[_0xa5cacd(0x395)]=_0x40f0d9;let _0xb683e0;try{_0xb683e0=_0xdb5e60();}finally{this[_0xa5cacd(0x395)]=void 0x0;}return _0x40f0d9[_0xa5cacd(0x47f)]['forEach'](_0x4ade5b=>this[_0xa5cacd(0x54d)](_0x4ade5b)),_0x40f0d9[_0xa5cacd(0x4e4)][_0xa5cacd(0x211)]((_0x3dc3f8,_0x186101)=>this[_0xa5cacd(0x4c0)](_0x186101,[..._0x3dc3f8])),_0xb683e0;}[_0x3f2857(0x3e1)](_0x5a16d3,_0x516413,_0x5a625b){const _0x3e8a35=_0x3f2857;return(0x0,_0x551644['merge'])(this['pivotConfigChange$'][_0x3e8a35(0x3ed)]((0x0,_0x551644[_0x3e8a35(0x501)])(_0xf2c6e7=>_0xf2c6e7[_0x3e8a35(0x339)]===_0x5a16d3&&_0xf2c6e7['subUnitId']===_0x516413&&_0xf2c6e7[_0x3e8a35(0x581)]===_0x5a625b)),this['collectionChange$'][_0x3e8a35(0x3ed)]((0x0,_0x551644['filter'])(_0x3f5557=>{const _0x498d4f=_0x3e8a35;var _0x4d6a79;let _0x1436d2=(_0x4d6a79=this[_0x498d4f(0x3f5)](_0x5a16d3,_0x516413,_0x5a625b))==null?void 0x0:_0x4d6a79[_0x498d4f(0x213)]['unitId'];return _0x3f5557[_0x498d4f(0x339)]===(_0x1436d2??_0x5a16d3)&&_0x3f5557[_0x498d4f(0x2ef)][_0x498d4f(0x3cd)](_0x5a625b);})));}[_0x3f2857(0x54d)](_0x5276bb){const _0x26b92e=_0x3f2857;this[_0x26b92e(0x54a)]||(this['_pendingChanges']?this[_0x26b92e(0x395)]['configs'][_0x26b92e(0x57d)](JSON[_0x26b92e(0x21f)]([_0x5276bb[_0x26b92e(0x339)],_0x5276bb[_0x26b92e(0x555)],_0x5276bb['pivotTableId']]),_0x5276bb):this[_0x26b92e(0x22c)]['next'](_0x5276bb));}[_0x3f2857(0x4c0)](_0x217126,_0x5096cc){const _0x33e9d8=_0x3f2857;if(this[_0x33e9d8(0x54a)]||!_0x5096cc[_0x33e9d8(0x33b)])return;let _0x522810=new Set(_0x5096cc);if(this[_0x33e9d8(0x395)]){let _0x1bc81e=this[_0x33e9d8(0x395)][_0x33e9d8(0x4e4)]['get'](_0x217126)??new Set();_0x522810[_0x33e9d8(0x211)](_0x4473f5=>_0x1bc81e[_0x33e9d8(0x373)](_0x4473f5)),this[_0x33e9d8(0x395)][_0x33e9d8(0x4e4)][_0x33e9d8(0x57d)](_0x217126,_0x1bc81e);}else this[_0x33e9d8(0x26e)][_0x33e9d8(0x55f)]({'unitId':_0x217126,'pivotTableIds':[..._0x522810]});}[_0x3f2857(0x1e6)](_0x280998){const _0x486295=_0x3f2857;var _0x1de472;let _0x42b3b9=(_0x1de472=this[_0x486295(0x34c)]['getUnit'](_0x280998[_0x486295(0x339)]))==null?void 0x0:_0x1de472[_0x486295(0x2e4)](_0x280998['to']['subUnitId']);if(!_0x42b3b9)return;let _0x4703a4=new Map(),_0x1ff6d3=_0x484f4d=>{const _0xeb7c2f=_0x486295;let _0x2f4bdf=_0x903c34(_0x484f4d,_0x280998,_0x42b3b9[_0xeb7c2f(0x466)]());if(_0x2f4bdf)for(let _0x1c7f1c=_0x484f4d[_0xeb7c2f(0x4cf)][_0xeb7c2f(0x5ea)];_0x1c7f1c<=_0x484f4d['range'][_0xeb7c2f(0x61a)];_0x1c7f1c++){let _0x1fd232=_0x2f4bdf['range']['startColumn']+_0x1c7f1c-_0x484f4d[_0xeb7c2f(0x4cf)][_0xeb7c2f(0x5ea)],_0x3ef3d2=(0x0,_0x2aea65[_0xeb7c2f(0x1ff)])(_0x484f4d[_0xeb7c2f(0x339)],_0x484f4d[_0xeb7c2f(0x486)],{..._0x484f4d[_0xeb7c2f(0x4cf)],'startColumn':_0x1c7f1c,'endColumn':_0x1c7f1c}),_0x49b9f1=(0x0,_0x2aea65['serializeRangeWithSpreadsheet'])(_0x2f4bdf[_0xeb7c2f(0x339)],_0x2f4bdf['sheetName'],{..._0x2f4bdf[_0xeb7c2f(0x4cf)],'startColumn':_0x1fd232,'endColumn':_0x1fd232});_0x4703a4[_0xeb7c2f(0x57d)](_0x3ef3d2,_0x49b9f1);}return _0x2f4bdf;};for(let _0x515bbd of Object[_0x486295(0x374)](this[_0x486295(0x53e)][_0x486295(0x66e)](_0x280998[_0x486295(0x339)])??{}))_0x515bbd[_0x486295(0x213)]=_0x1ff6d3(_0x515bbd['sourceRangeInfo'])??_0x515bbd['sourceRangeInfo'];let _0x5c875b=[];for(let [_0x35b83a,_0x3e490f]of this[_0x486295(0x4c7)])for(let [_0x1d581e,_0x41aa72]of _0x3e490f)for(let [_0x2fae37,_0x4a7020]of _0x41aa72){let _0x3de3df=_0x1ff6d3(_0x4a7020[_0x486295(0x213)]);_0x3de3df&&_0x5c875b[_0x486295(0x4ef)]({'unitId':_0x35b83a,'subUnitId':_0x1d581e,'pivotTableId':_0x2fae37,'config':{..._0x4a7020,'sourceRangeInfo':_0x3de3df}});}let _0x1c94e7=this[_0x486295(0x2e9)][_0x486295(0x66e)](_0x280998[_0x486295(0x339)]);if(_0x1c94e7){for(let _0x339adf of Object['values'](_0x1c94e7[_0x486295(0x4e4)])){let _0x418f5d=_0x339adf[_0x486295(0x4cf)];_0x418f5d!=null&&_0x418f5d['range']&&(_0x339adf[_0x486295(0x4cf)]=_0x1ff6d3(_0x418f5d)??_0x418f5d);}for(let _0xfd794a of[_0x1c94e7['dataFields'],...Object[_0x486295(0x374)](_0x1c94e7[_0x486295(0x4e4)])['map'](_0x4b7ba2=>_0x4b7ba2['fields'])])for(let _0x128233 of Object[_0x486295(0x374)](_0xfd794a)){let _0x31a3d0=_0x4703a4[_0x486295(0x66e)](_0x128233[_0x486295(0x237)]);_0x31a3d0&&(_0x128233[_0x486295(0x237)]=_0x31a3d0);}}let _0x5a3cbd=this['prepareConfigBatch'](_0x5c875b);_0x5a3cbd[_0x486295(0x2fd)](),this[_0x486295(0x4c0)](_0x280998[_0x486295(0x339)],Object['keys']((_0x1c94e7==null?void 0x0:_0x1c94e7['collections'])??{})),_0x5a3cbd[_0x486295(0x624)]();}[_0x3f2857(0x2d3)](){const _0x4dbdcc=_0x3f2857;this[_0x4dbdcc(0x58f)](this[_0x4dbdcc(0x34c)][_0x4dbdcc(0x514)](_0x1664f5[_0x4dbdcc(0x3b3)][_0x4dbdcc(0x418)])[_0x4dbdcc(0x362)](_0x8affbb=>{const _0x35ee13=_0x4dbdcc;this[_0x35ee13(0x2d9)](_0x8affbb[_0x35ee13(0x4bd)]());}));}[_0x3f2857(0x2da)](){const _0xef77bb=_0x3f2857;this[_0xef77bb(0x2e0)][_0xef77bb(0x55f)](!0x0);}[_0x3f2857(0x3a6)](_0x2b62e6,_0x458d93){const _0xbfb7da=_0x3f2857;this[_0xbfb7da(0x363)][_0xbfb7da(0x57d)](_0x2b62e6,_0x458d93),this[_0xbfb7da(0x22a)](_0x2b62e6,_0xbfb7da(0x206));}[_0x3f2857(0x1e5)](_0x1cc810){const _0x5c1824=_0x3f2857;return this[_0x5c1824(0x363)][_0x5c1824(0x66e)](_0x1cc810);}[_0x3f2857(0x20a)](_0x4cdc12){const _0x2a785c=_0x3f2857;return this[_0x2a785c(0x656)][_0x2a785c(0x66e)](_0x4cdc12);}[_0x3f2857(0x22a)](_0x4e92b6,_0x45cf4e){const _0x3c61fa=_0x3f2857;this[_0x3c61fa(0x656)][_0x3c61fa(0x57d)](_0x4e92b6,_0x45cf4e),this['_runtimeState$']['next']({'unitId':_0x4e92b6,'state':_0x45cf4e});}['acceptsRuntime'](_0x53eb42,_0x4aaefd){const _0x4ca11e=_0x3f2857;var _0x1d7531;return((_0x1d7531=this[_0x4ca11e(0x2ac)][_0x4ca11e(0x277)]('sheets-pivot.config'))==null?void 0x0:_0x1d7531['notExecuteFormula'])!==!0x0||_0x4aaefd!==void 0x0&&_0x4aaefd===this[_0x4ca11e(0x363)]['get'](_0x53eb42);}[_0x3f2857(0x577)](_0x59109c,_0x404083,_0x46cf81,_0x2fbc0c,_0xb50cf2){const _0x5f5c37=_0x3f2857;var _0x49c8b6;if(((_0x49c8b6=this['_configService'][_0x5f5c37(0x277)]('sheets-pivot.config'))==null?void 0x0:_0x49c8b6[_0x5f5c37(0x310)])!==!0x0)return this['updateConfigCache'](_0x59109c,_0x404083,_0x46cf81,_0x2fbc0c),!0x0;let _0x4c28d4=this[_0x5f5c37(0x3f5)](_0x59109c,_0x404083,_0x46cf81);if(!_0x2fbc0c)return!_0x4c28d4;let _0x217032=this['getCollection'](_0x2fbc0c['sourceRangeInfo']['unitId'],_0x46cf81);if(_0xb50cf2&&(!_0x217032||!_0x567b0a(_0x439b67(_0x217032),_0x439b67(_0xb50cf2)))||!_0x4c28d4||!_0x567b0a(this['_getCalculationConfig'](_0x4c28d4,_0x2fbc0c),this[_0x5f5c37(0x1b1)](_0x2fbc0c,_0x4c28d4)))return!0x1;let _0x244b0d=_0x1664f5['Tools'][_0x5f5c37(0x62b)](_0x4c28d4);for(let _0x53c31b of[_0x244b0d[_0x5f5c37(0x1fa)]['dimension'],_0x244b0d['fieldsConfig'][_0x5f5c37(0x2d4)]])for(let _0x2b0357 of Object[_0x5f5c37(0x374)](_0x53c31b)){let _0x6deaf7=_0x2fbc0c[_0x5f5c37(0x1fa)]['dimension'][_0x2b0357['id']]??_0x2fbc0c[_0x5f5c37(0x1fa)][_0x5f5c37(0x2d4)][_0x2b0357['id']];_0x2b0357[_0x5f5c37(0x36d)]===this[_0x5f5c37(0x4e9)](_0x2b0357)&&(_0x2b0357[_0x5f5c37(0x36d)]=_0x6deaf7[_0x5f5c37(0x36d)]),_0x2b0357[_0x5f5c37(0x560)]=_0x6deaf7[_0x5f5c37(0x560)];}return _0x244b0d['isEmpty']=_0x2fbc0c[_0x5f5c37(0x3fb)],this[_0x5f5c37(0x5e6)](_0x59109c,_0x404083,_0x46cf81,_0x244b0d),!0x0;}['_getDefaultFieldName'](_0x52a029){const _0x1d1cb0=_0x3f2857;return _0x1d1cb0(0x27a)in _0x52a029?_0x2cbd66[_0x1d1cb0(0x1aa)](this,_0x52a029[_0x1d1cb0(0x560)],_0x52a029[_0x1d1cb0(0x27a)]):_0x52a029[_0x1d1cb0(0x560)];}[_0x3f2857(0x1b1)](_0x649c8f,_0xabd6d7){const _0x4d74c6=_0x3f2857;let {isEmpty:_0x298a52,..._0x5f1af3}=_0x1664f5[_0x4d74c6(0x5b7)][_0x4d74c6(0x62b)](_0x649c8f);for(let _0x133b6c of[_0x5f1af3[_0x4d74c6(0x1fa)][_0x4d74c6(0x57a)],_0x5f1af3[_0x4d74c6(0x1fa)]['measure']])for(let _0xd1db12 of Object[_0x4d74c6(0x374)](_0x133b6c)){let _0x2a86a0=_0xabd6d7[_0x4d74c6(0x1fa)][_0x4d74c6(0x57a)][_0xd1db12['id']]??_0xabd6d7[_0x4d74c6(0x1fa)][_0x4d74c6(0x2d4)][_0xd1db12['id']];_0x2a86a0&&(_0xd1db12[_0x4d74c6(0x36d)]===_0x2a86a0[_0x4d74c6(0x36d)]||_0xd1db12[_0x4d74c6(0x36d)]===this[_0x4d74c6(0x4e9)](_0xd1db12)&&_0x2a86a0['displayName']===this[_0x4d74c6(0x4e9)](_0x2a86a0))&&(_0xd1db12[_0x4d74c6(0x36d)]=''),_0xd1db12[_0x4d74c6(0x560)]='';}return _0x5f1af3;}[_0x3f2857(0x58a)](_0x486926,_0xcb69ee,_0x3d880b){const _0x1393ca=_0x3f2857;this[_0x1393ca(0x33e)](()=>{const _0x5618fb=_0x1393ca;var _0x4ae75a;if(((_0x4ae75a=this[_0x5618fb(0x2ac)][_0x5618fb(0x277)]('sheets-pivot.config'))==null?void 0x0:_0x4ae75a[_0x5618fb(0x310)])!==!0x0){_0xcb69ee&&this['updateCollectionConfig'](_0x486926,_0xcb69ee),_0x3d880b&&this[_0x5618fb(0x534)](_0x486926,_0x3d880b);return;}let _0x193c9a=this['_collectionConfigModel'][_0x5618fb(0x66e)](_0x486926);if(_0x193c9a&&_0xcb69ee){let _0x24e1db=_0x1664f5[_0x5618fb(0x5b7)][_0x5618fb(0x62b)](_0x193c9a),_0x5b255e=[];for(let [_0x2ac954,_0x120571]of Object[_0x5618fb(0x4e3)](_0x193c9a[_0x5618fb(0x4e4)])){let _0x38db8d=_0xcb69ee[_0x5618fb(0x4e4)][_0x2ac954];if(!_0x38db8d||!_0x567b0a(_0x439b67(_0x120571),_0x439b67(_0x38db8d)))continue;let _0x3215c9=_0x24e1db['collections'][_0x2ac954];_0x3215c9[_0x5618fb(0x283)]=_0x38db8d[_0x5618fb(0x283)],_0x3215c9[_0x5618fb(0x413)]=_0x1664f5[_0x5618fb(0x5b7)][_0x5618fb(0x62b)](_0x38db8d[_0x5618fb(0x413)]);for(let [_0x33d244,_0x5dd051]of Object[_0x5618fb(0x4e3)](_0x3215c9[_0x5618fb(0x390)]))_0x1c8335(_0x5dd051,_0x38db8d[_0x5618fb(0x390)][_0x33d244]),_0x24e1db[_0x5618fb(0x4b8)][_0x33d244]=_0x1664f5['Tools'][_0x5618fb(0x62b)](_0x5dd051);_0x3215c9[_0x5618fb(0x51c)]['forEach']((_0x1ee2f4,_0x1dc182)=>_0x1c8335(_0x1ee2f4,_0x38db8d[_0x5618fb(0x51c)][_0x1dc182])),_0x5b255e['push'](_0x2ac954);}this[_0x5618fb(0x2e9)][_0x5618fb(0x57d)](_0x486926,_0x24e1db),this['_emitCollectionChange'](_0x486926,_0x5b255e);}if(this[_0x5618fb(0x20a)](_0x486926)==='initializing'&&_0x3d880b){let _0x5709ac={...this[_0x5618fb(0x53e)][_0x5618fb(0x66e)](_0x486926)};for(let [_0x39ad0e,_0xa25bbe]of Object[_0x5618fb(0x4e3)](_0x3d880b))!_0x5709ac[_0x39ad0e]&&_0xa25bbe['retainedSource']&&(_0x5709ac[_0x39ad0e]=_0x1664f5['Tools'][_0x5618fb(0x62b)](_0xa25bbe));this[_0x5618fb(0x53e)][_0x5618fb(0x57d)](_0x486926,_0x5709ac);}});}[_0x3f2857(0x67a)](){const _0x4c9d44=_0x3f2857;this[_0x4c9d44(0x58f)]((0x0,_0x551644[_0x4c9d44(0x457)])([this['_localeService'][_0x4c9d44(0x55c)],this[_0x4c9d44(0x4f2)]['direction$'][_0x4c9d44(0x3ed)]((0x0,_0x551644[_0x4c9d44(0x605)])())])[_0x4c9d44(0x362)](([,_0x1ce23f])=>{const _0xcca223=_0x4c9d44;let _0x3de903=_0x69256b(this[_0xcca223(0x32b)],_0x3f432b,'',{});this['_textInfo']=_0x3de903,this[_0xcca223(0x37c)][_0xcca223(0x4f1)](_0x39064['id'],{'textInfo':_0x3de903,'direction':_0x1ce23f},{'onlyLocal':!0x0});}));}['getTextInfo'](){const _0x33a797=_0x3f2857;return this[_0x33a797(0x651)];}[_0x3f2857(0x398)](_0x148ceb,_0x5c1a32,_0x42a56f,_0x45db88,_0x3e9dba){const _0x17fe42=_0x3f2857;this[_0x17fe42(0x1ba)](_0x148ceb,_0x5c1a32,_0x42a56f,_0x45db88),this[_0x17fe42(0x456)](_0x148ceb,_0x5c1a32,_0x42a56f,_0x3e9dba);}[_0x3f2857(0x3f5)](_0x1c01f2,_0x246c7e,_0x27ba75){const _0x4d4230=_0x3f2857;var _0x2e2a59;let _0x34f2cc=(_0x2e2a59=this[_0x4d4230(0x4c7)][_0x4d4230(0x66e)](_0x1c01f2))==null?void 0x0:_0x2e2a59['get'](_0x246c7e);if(_0x34f2cc)return _0x34f2cc[_0x4d4230(0x66e)](_0x27ba75);}[_0x3f2857(0x414)](_0x114e5f,_0x2e9d0e){const _0x5d0a58=_0x3f2857;let _0x4c5b8d=this['_model']['get'](_0x114e5f);if(_0x4c5b8d){for(let [_0x547e6e,_0x5b6eaa]of _0x4c5b8d[_0x5d0a58(0x4e3)]())for(let [_0xdcc783,_0x3b9186]of _0x5b6eaa[_0x5d0a58(0x4e3)]())if(_0xdcc783===_0x2e9d0e)return _0x3b9186[_0x5d0a58(0x61d)];}}[_0x3f2857(0x3a8)](_0x3c668f,_0x4ab207,_0x2f0a5c){const _0x1cc301=_0x3f2857;let _0x41a3a6=this[_0x1cc301(0x3f5)](_0x3c668f,_0x4ab207,_0x2f0a5c);return _0x41a3a6==null?void 0x0:_0x41a3a6[_0x1cc301(0x61d)];}[_0x3f2857(0x5ac)](_0x4993f6,_0x2d088f){const _0x2cd83a=_0x3f2857;var _0xaade52;return(_0xaade52=this[_0x2cd83a(0x4c7)][_0x2cd83a(0x66e)](_0x4993f6))==null?void 0x0:_0xaade52['get'](_0x2d088f);}[_0x3f2857(0x5e6)](_0x188851,_0x4f3134,_0x72e14b,_0x357b27){const _0x174323=_0x3f2857;let _0x3ad414=this['_ensurePivotMap'](_0x188851,_0x4f3134);_0x357b27?(_0x20a7e4(_0x357b27),_0x3ad414['set'](_0x72e14b,_0x357b27)):_0x3ad414[_0x174323(0x4a7)](_0x72e14b),this['_emitConfigChange']({'unitId':_0x188851,'subUnitId':_0x4f3134,'pivotTableId':_0x72e14b,'pivotTableConfig':_0x357b27});}[_0x3f2857(0x497)](_0x44e985){const _0x3b85b7=_0x3f2857;this[_0x3b85b7(0x50d)]();let _0x139cc9=_0x44e985[_0x3b85b7(0x296)](({config:_0x1862e8,..._0x54a455})=>{const _0x9a9c0d=_0x3b85b7;let _0x1c1f9f=_0x20a7e4(_0x1664f5[_0x9a9c0d(0x5b7)][_0x9a9c0d(0x62b)](_0x1862e8)),_0x4d853d=_0x1c1f9f[_0x9a9c0d(0x1fa)];return _0x1c1f9f[_0x9a9c0d(0x3fb)]=[_0x4d853d['rowFields'],_0x4d853d[_0x9a9c0d(0x4f7)],_0x4d853d[_0x9a9c0d(0x485)],_0x4d853d[_0x9a9c0d(0x49a)]][_0x9a9c0d(0x5fe)](_0x162f3f=>_0x162f3f[_0x9a9c0d(0x33b)]===0x0),{..._0x54a455,'pivotTableConfig':_0x1c1f9f};}),_0x489e9f=!0x1,_0x5822f4=!0x1;return{'commit':()=>{const _0x485636=_0x3b85b7;this[_0x485636(0x50d)](),_0x489e9f||(_0x489e9f=!0x0,_0x139cc9[_0x485636(0x211)](({unitId:_0x4ff1a1,subUnitId:_0x196357,pivotTableId:_0x5cdd67,pivotTableConfig:_0x1d0a5e})=>{this['_ensurePivotMap'](_0x4ff1a1,_0x196357)['set'](_0x5cdd67,_0x1d0a5e);}));},'publish':()=>{const _0x1d9834=_0x3b85b7;_0x489e9f&&!_0x5822f4&&!this[_0x1d9834(0x54a)]&&(_0x5822f4=!0x0,_0x139cc9[_0x1d9834(0x211)](_0x50fe3e=>this[_0x1d9834(0x54d)](_0x50fe3e)));}};}[_0x3f2857(0x4d3)](_0x24bca7,_0xca700a){const _0x2faf5d=_0x3f2857;let _0x158fbb=this[_0x2faf5d(0x3f5)](_0x24bca7[_0x2faf5d(0x339)],_0x24bca7[_0x2faf5d(0x555)],_0x24bca7[_0x2faf5d(0x581)]);if(!_0x158fbb)return!0x1;let _0x4d290e=_0x1664f5[_0x2faf5d(0x5b7)][_0x2faf5d(0x62b)](_0x158fbb);_0xca700a(_0x4d290e);let _0x47b809=this[_0x2faf5d(0x497)]([{..._0x24bca7,'config':_0x4d290e}]);return _0x47b809[_0x2faf5d(0x2fd)](),_0x47b809[_0x2faf5d(0x624)](),!0x0;}[_0x3f2857(0x655)](_0x3e104d,_0x218e2d){const _0x313eda=_0x3f2857;var _0x175e6b;return(_0x175e6b=this['_collectionConfigModel']['get'](_0x3e104d))==null?void 0x0:_0x175e6b[_0x313eda(0x4e4)][_0x218e2d];}[_0x3f2857(0x238)](_0x4ddaff,_0x4fd7ad){const _0x35e18b=_0x3f2857;let _0x339da0=this['_collectionConfigModel'][_0x35e18b(0x66e)](_0x4ddaff);this['_collectionConfigModel'][_0x35e18b(0x57d)](_0x4ddaff,_0x4fd7ad),this[_0x35e18b(0x4c0)](_0x4ddaff,[...Object[_0x35e18b(0x58e)]((_0x339da0==null?void 0x0:_0x339da0[_0x35e18b(0x4e4)])??{}),...Object[_0x35e18b(0x58e)](_0x4fd7ad['collections'])]);}[_0x3f2857(0x534)](_0x56d94a,_0x11712d){const _0x21bdc7=_0x3f2857;this['_cacheConfigModel']['set'](_0x56d94a,_0x1664f5[_0x21bdc7(0x5b7)]['deepClone'](_0x11712d));}[_0x3f2857(0x333)](_0x426b00,_0x1d16fe){const _0x11ad1a=_0x3f2857;if(this['_disposed'])return;let _0x4fa3d1=new Set(_0x1d16fe);_0x4fa3d1[_0x11ad1a(0x293)]?this['_retainedSources'][_0x11ad1a(0x57d)](_0x426b00,_0x4fa3d1):this[_0x11ad1a(0x3d4)][_0x11ad1a(0x4a7)](_0x426b00);let _0x298837=this[_0x11ad1a(0x53e)][_0x11ad1a(0x66e)](_0x426b00)??{};for(let [_0x556c4f,_0x53db79]of Object['entries'](_0x298837))if(_0x4fa3d1[_0x11ad1a(0x3b2)](_0x556c4f))_0x53db79['retainedSource']=!0x0;else{var _0x6c080b;let _0x1f5617=_0x53db79['retainedSource'];delete _0x53db79[_0x11ad1a(0x419)];let _0x2d3c4d=Object[_0x11ad1a(0x374)](((_0x6c080b=this[_0x11ad1a(0x2e9)][_0x11ad1a(0x66e)](_0x426b00))==null?void 0x0:_0x6c080b[_0x11ad1a(0x4e4)])??{})[_0x11ad1a(0x28b)](_0x2b1e12=>{const _0x1a9b6c=_0x11ad1a;var _0x1da7f7;let _0x5d42ed=_0x2b1e12['range'],_0x15c699=(_0x1da7f7=this[_0x1a9b6c(0x34c)]['getUnit'](_0x426b00))==null?void 0x0:_0x1da7f7[_0x1a9b6c(0x2e4)](_0x5d42ed==null?void 0x0:_0x5d42ed[_0x1a9b6c(0x555)]);return _0x15c699&&_0x567b0a({..._0x5d42ed,'range':_0x4e3a37(_0x5d42ed['range'],_0x15c699)},_0x53db79[_0x1a9b6c(0x213)]);});_0x1f5617&&!_0x2d3c4d&&delete _0x298837[_0x556c4f];}}[_0x3f2857(0x462)](_0x1be666,_0x1036aa,_0x1b8ebf,_0x42f882){const _0x758b6=_0x3f2857;var _0x4f495e;let _0x3802c9=this[_0x758b6(0x2e9)][_0x758b6(0x66e)](_0x1be666),_0x5c7944={..._0x3802c9==null?void 0x0:_0x3802c9[_0x758b6(0x4e4)],[_0x1036aa]:_0x1664f5[_0x758b6(0x5b7)][_0x758b6(0x62b)](_0x1b8ebf)},_0x4ec23f={..._0x3802c9==null?void 0x0:_0x3802c9[_0x758b6(0x4b8)],..._0x1664f5[_0x758b6(0x5b7)][_0x758b6(0x62b)](_0x1b8ebf[_0x758b6(0x390)])};for(let _0xb778f2 of Object[_0x758b6(0x58e)]((_0x3802c9==null||(_0x4f495e=_0x3802c9['collections'][_0x1036aa])==null?void 0x0:_0x4f495e[_0x758b6(0x390)])??{}))Object[_0x758b6(0x374)](_0x5c7944)[_0x758b6(0x28b)](({fields:_0x1a3fed,customFields:_0x9da5c7})=>Object['prototype'][_0x758b6(0x39b)][_0x758b6(0x1aa)](_0x1a3fed??{},_0xb778f2)||(_0x9da5c7==null?void 0x0:_0x9da5c7[_0x758b6(0x28b)](({id:_0x16be03})=>_0x16be03===_0xb778f2)))||delete _0x4ec23f[_0xb778f2];if(this['_collectionConfigModel']['set'](_0x1be666,{'collections':_0x5c7944,'dataFields':_0x4ec23f,'dataRanges':{..._0x3802c9==null?void 0x0:_0x3802c9[_0x758b6(0x5d9)]}}),_0x42f882){var _0x3220b1,_0x4b9cb0;let _0xf04dcf=_0x42f882['sourceRangeInfo'],_0x5049a7=(_0x3220b1=this['_univerInstanceService']['getUnit'](_0xf04dcf[_0x758b6(0x339)]))==null?void 0x0:_0x3220b1[_0x758b6(0x2e4)](_0xf04dcf['subUnitId']),_0x55aa45=_0x5049a7?{..._0x42f882,'sourceRangeInfo':{..._0xf04dcf,'range':_0x4e3a37(_0xf04dcf[_0x758b6(0x4cf)],_0x5049a7)}}:_0x42f882;this['_cacheConfigModel'][_0x758b6(0x57d)](_0x1be666,{...this[_0x758b6(0x53e)][_0x758b6(0x66e)](_0x1be666),[_0x42f882['pivotCacheId']]:{..._0x1664f5[_0x758b6(0x5b7)][_0x758b6(0x62b)](_0x55aa45),...(_0x4b9cb0=this[_0x758b6(0x3d4)][_0x758b6(0x66e)](_0x1be666))!=null&&_0x4b9cb0[_0x758b6(0x3b2)](_0x42f882[_0x758b6(0x60a)])?{'retainedSource':!0x0}:{}}});}this['_emitCollectionChange'](_0x1be666,[_0x1036aa]);}[_0x3f2857(0x39c)](_0x2e7cf7,_0x1627d6){const _0x53de81=_0x3f2857;let _0x424b7a=this[_0x53de81(0x2e9)][_0x53de81(0x66e)](_0x2e7cf7);if(_0x424b7a){delete _0x424b7a[_0x53de81(0x4e4)][_0x1627d6];let _0x5aeb45=this['_cacheConfigModel'][_0x53de81(0x66e)](_0x2e7cf7),_0x4358f=new Set();for(let _0x2882f0 of this[_0x53de81(0x4c7)][_0x53de81(0x374)]())for(let _0x475483 of _0x2882f0['values']())for(let _0x738ef9 of _0x475483[_0x53de81(0x374)]())_0x738ef9['pivotCacheId']&&_0x738ef9['sourceRangeInfo'][_0x53de81(0x339)]===_0x2e7cf7&&_0x4358f[_0x53de81(0x373)](_0x738ef9[_0x53de81(0x60a)]);for(let [_0x11f5d5,_0x2f1c1f]of Object[_0x53de81(0x4e3)](_0x5aeb45??{}))!_0x2f1c1f[_0x53de81(0x419)]&&!_0x4358f[_0x53de81(0x3b2)](_0x11f5d5)&&delete _0x5aeb45[_0x11f5d5];this[_0x53de81(0x4c0)](_0x2e7cf7,[_0x1627d6]);}}['_ensurePivotMap'](_0x200932,_0x41eeb8){const _0x2619d8=_0x3f2857;let _0x445edd=this[_0x2619d8(0x4c7)][_0x2619d8(0x66e)](_0x200932);_0x445edd||(_0x445edd=new Map(),this['_model'][_0x2619d8(0x57d)](_0x200932,_0x445edd));let _0x504335=_0x445edd[_0x2619d8(0x66e)](_0x41eeb8);return _0x504335||(_0x504335=new Map(),_0x445edd[_0x2619d8(0x57d)](_0x41eeb8,_0x504335)),_0x504335;}[_0x3f2857(0x3ba)](_0x1b96cb,_0x47a0c6){const _0x1c771e=_0x3f2857;let _0x356ca2=this['_pivotTableRangeInfo'][_0x1c771e(0x66e)](_0x1b96cb);_0x356ca2||(_0x356ca2=new Map(),this[_0x1c771e(0x448)][_0x1c771e(0x57d)](_0x1b96cb,_0x356ca2));let _0x2d3441=_0x356ca2['get'](_0x47a0c6);return _0x2d3441||(_0x2d3441=new Map(),_0x356ca2[_0x1c771e(0x57d)](_0x47a0c6,_0x2d3441)),_0x2d3441;}[_0x3f2857(0x2a6)](_0x228e13,_0x2e7b75){const _0x5496a1=_0x3f2857;let _0x409702=this[_0x5496a1(0x45c)]['get'](_0x228e13);_0x409702||(_0x409702=new Map(),this[_0x5496a1(0x45c)][_0x5496a1(0x57d)](_0x228e13,_0x409702));let _0x5cb013=_0x409702[_0x5496a1(0x66e)](_0x2e7b75);return _0x5cb013||(_0x5cb013=new Map(),_0x409702['set'](_0x2e7b75,_0x5cb013)),_0x5cb013;}['updatePivotTableRangeInfo'](_0x353c83,_0x5483e9,_0x7cd6b6,_0x3e0668){const _0x1b3c1e=_0x3f2857;var _0x3dda7a;let _0x4911d2=this[_0x1b3c1e(0x3ba)](_0x353c83,_0x5483e9),_0x111bc0=(_0x3dda7a=_0x4911d2[_0x1b3c1e(0x66e)](_0x7cd6b6))==null?void 0x0:_0x3dda7a['oldRangeInfo'];_0x4911d2['set'](_0x7cd6b6,{'oldRangeInfo':_0x111bc0,'rangeInfo':_0x3e0668});}['updatePivotTableMatrixInfo'](_0x16646d,_0x104452,_0x28809e,_0x56867e){const _0x4d49b=_0x3f2857;var _0x12d0dc;let _0x4faf45=this[_0x4d49b(0x2a6)](_0x16646d,_0x104452),_0x3a6c29=(_0x12d0dc=_0x4faf45[_0x4d49b(0x66e)](_0x28809e))==null?void 0x0:_0x12d0dc[_0x4d49b(0x66f)];_0x4faf45[_0x4d49b(0x57d)](_0x28809e,{'oldMatrix':_0x3a6c29,'matrix':_0x56867e});}[_0x3f2857(0x30e)](_0x29a5d2,_0x36e7a0,_0x4302a7){const _0x398c24=_0x3f2857;var _0x4ce16e;return(_0x4ce16e=this[_0x398c24(0x448)][_0x398c24(0x66e)](_0x29a5d2))==null||(_0x4ce16e=_0x4ce16e[_0x398c24(0x66e)](_0x36e7a0))==null?void 0x0:_0x4ce16e['get'](_0x4302a7);}[_0x3f2857(0x353)](_0x2fbcbb,_0x340c1d,_0x33c3ab){const _0x371967=_0x3f2857;var _0x23669a;return(_0x23669a=this[_0x371967(0x45c)][_0x371967(0x66e)](_0x2fbcbb))==null||(_0x23669a=_0x23669a[_0x371967(0x66e)](_0x340c1d))==null?void 0x0:_0x23669a[_0x371967(0x66e)](_0x33c3ab);}[_0x3f2857(0x2d9)](_0x12a14){const _0x4c409f=_0x3f2857;var _0x3055b1,_0x3f7a45;(_0x3055b1=this['_pendingChanges'])==null||_0x3055b1[_0x4c409f(0x4e4)][_0x4c409f(0x4a7)](_0x12a14),(_0x3f7a45=this[_0x4c409f(0x395)])==null||_0x3f7a45[_0x4c409f(0x47f)][_0x4c409f(0x211)]((_0x94577d,_0x4d0363)=>{const _0x114cb8=_0x4c409f;if(_0x94577d[_0x114cb8(0x339)]===_0x12a14){var _0x5e1ae9;(_0x5e1ae9=this[_0x114cb8(0x395)])==null||_0x5e1ae9[_0x114cb8(0x47f)][_0x114cb8(0x4a7)](_0x4d0363);}}),this[_0x4c409f(0x3d4)]['delete'](_0x12a14),this[_0x4c409f(0x363)]['delete'](_0x12a14),this[_0x4c409f(0x656)][_0x4c409f(0x4a7)](_0x12a14),this[_0x4c409f(0x448)][_0x4c409f(0x4a7)](_0x12a14),this['_pivotTableMatrixInfo'][_0x4c409f(0x4a7)](_0x12a14),this[_0x4c409f(0x4c7)][_0x4c409f(0x4a7)](_0x12a14),this[_0x4c409f(0x2e9)]['delete'](_0x12a14),this['_cacheConfigModel']['delete'](_0x12a14);}['_toJSON'](_0x3e1011){const _0x38641d=_0x3f2857;let _0x202d25={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};this[_0x38641d(0x2e9)][_0x38641d(0x66e)](_0x3e1011)&&(_0x202d25[_0x38641d(0x1a9)][_0x3e1011]=this[_0x38641d(0x2e9)][_0x38641d(0x66e)](_0x3e1011));let _0x42eac2=this[_0x38641d(0x53e)][_0x38641d(0x66e)](_0x3e1011);if(_0x42eac2&&(_0x202d25[_0x38641d(0x601)]={[_0x3e1011]:_0x1664f5[_0x38641d(0x5b7)][_0x38641d(0x62b)](_0x42eac2)}),this['_model'][_0x38641d(0x66e)](_0x3e1011)){_0x202d25[_0x38641d(0x389)][_0x3e1011]={};let _0x15969a=this[_0x38641d(0x4c7)][_0x38641d(0x66e)](_0x3e1011);_0x15969a!=null&&_0x15969a[_0x38641d(0x293)]&&[..._0x15969a[_0x38641d(0x58e)]()][_0x38641d(0x211)](_0x4a15d6=>{const _0x4bb5ab=_0x38641d;let _0xdcc87=_0x15969a[_0x4bb5ab(0x66e)](_0x4a15d6);_0xdcc87!=null&&_0xdcc87['size']&&(_0x202d25[_0x4bb5ab(0x389)][_0x3e1011][_0x4a15d6]={},[..._0xdcc87[_0x4bb5ab(0x58e)]()]['forEach'](_0x5c48ce=>{const _0x3a0e56=_0x4bb5ab;let _0x3e9a2e=_0xdcc87[_0x3a0e56(0x66e)](_0x5c48ce);_0x3e9a2e&&(_0x202d25[_0x3a0e56(0x389)][_0x3e1011][_0x4a15d6][_0x5c48ce]=_0x3e9a2e);}));});}return _0x202d25;}[_0x3f2857(0x1c5)](){const _0x2cbf5d=_0x3f2857;this['disposeWithMe'](this[_0x2cbf5d(0x2ee)][_0x2cbf5d(0x474)]({'toJson':_0x1ef4c5=>JSON['stringify'](this['_toJSON'](_0x1ef4c5)),'parseJson':_0x5660d2=>{const _0x457a85=_0x2cbf5d;try{return JSON[_0x457a85(0x3b6)](_0x5660d2);}catch{return;}},'businesses':[_0x1664f5[_0x2cbf5d(0x3b3)][_0x2cbf5d(0x418)]],'pluginName':_0x783d27,'onLoad':(_0x14382b,_0x13914b)=>{const _0x3e6f13=_0x2cbf5d;var _0x5808c5;if(!(_0x13914b!=null&&_0x13914b[_0x3e6f13(0x1a9)])||!_0x13914b[_0x3e6f13(0x389)])return;let _0x3e981f=_0x13914b[_0x3e6f13(0x1a9)][_0x14382b];_0x3e981f&&this['_collectionConfigModel']['set'](_0x14382b,_0x1664f5[_0x3e6f13(0x5b7)][_0x3e6f13(0x62b)](_0x3e981f));let _0x22fffb=(_0x5808c5=_0x13914b[_0x3e6f13(0x601)])==null?void 0x0:_0x5808c5[_0x14382b];if(_0x22fffb){this['_cacheConfigModel']['set'](_0x14382b,_0x1664f5[_0x3e6f13(0x5b7)][_0x3e6f13(0x62b)](_0x22fffb));let _0x129b55=this['_retainedSources'][_0x3e6f13(0x66e)](_0x14382b);_0x129b55&&this[_0x3e6f13(0x333)](_0x14382b,Array[_0x3e6f13(0x4de)](_0x129b55));}for(let [_0x4f9e2b,_0x32cd12]of Object[_0x3e6f13(0x4e3)](_0x13914b[_0x3e6f13(0x389)][_0x14382b]??{}))for(let [_0x39fb0b,_0x503e7d]of Object[_0x3e6f13(0x4e3)](_0x32cd12))this[_0x3e6f13(0x271)](_0x14382b,_0x4f9e2b)[_0x3e6f13(0x57d)](_0x39fb0b,_0x20a7e4(_0x1664f5[_0x3e6f13(0x5b7)][_0x3e6f13(0x62b)](_0x503e7d)));},'onUnLoad':_0x1bc048=>{const _0xf406d9=_0x2cbf5d;this[_0xf406d9(0x2d9)](_0x1bc048);}}));}};_0x12ae9f=_0x68e210([_0x8e806c(0x0,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x1664f5[_0x3f2857(0x2b4)])),_0x8e806c(0x1,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x1664f5[_0x3f2857(0x250)])),_0x8e806c(0x2,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x1664f5[_0x3f2857(0x35a)])),_0x8e806c(0x3,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x1664f5[_0x3f2857(0x1d4)])),_0x8e806c(0x4,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x1664f5['IConfigService'])),_0x8e806c(0x5,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x1664f5[_0x3f2857(0x4d7)]))],_0x12ae9f);function _0x567b0a(_0x1968a8,_0x4a98f0){const _0x4a9beb=_0x3f2857;return _0x1664f5[_0x4a9beb(0x5b7)][_0x4a9beb(0x499)](JSON[_0x4a9beb(0x3b6)](JSON[_0x4a9beb(0x21f)](_0x1968a8)),JSON[_0x4a9beb(0x3b6)](JSON[_0x4a9beb(0x21f)](_0x4a98f0)));}function _0x439b67(_0x56d734){const _0xd45eac=_0x3f2857;let _0x2a548a=_0x417040=>{const _0x2f4c7d=_0x5a2c;let {hexCode:_0xd1b9ff,fieldDataType:_0x4cdbc3,name:_0x3c9d97,..._0x9b7440}=_0x417040;return _0x417040[_0x2f4c7d(0x5cd)]===_0xaf0b54[_0x2f4c7d(0x2bd)][_0x2f4c7d(0x2aa)]?_0x9b7440:{..._0x9b7440,'name':_0x3c9d97};};return{'range':_0x56d734[_0xd45eac(0x4cf)],'fieldIds':_0x56d734[_0xd45eac(0x32d)],'customFields':_0x56d734[_0xd45eac(0x51c)][_0xd45eac(0x296)](_0x2a548a),'fields':Object['fromEntries'](Object[_0xd45eac(0x4e3)](_0x56d734['fields'])[_0xd45eac(0x296)](([_0x427853,_0x223fec])=>[_0x427853,_0x2a548a(_0x223fec)]))};}function _0x1c8335(_0x45c1ff,_0x30e768){const _0x5e6523=_0x3f2857;_0x45c1ff[_0x5e6523(0x1d6)]=_0x30e768['name'],_0x45c1ff[_0x5e6523(0x335)]=_0x30e768[_0x5e6523(0x335)],_0x45c1ff['fieldDataType']=_0x30e768['fieldDataType'];}function _0x20a7e4(_0x5e6394){return _0x5e6394['name']===void 0x0&&(_0x5e6394['name']=''),_0x5e6394;}function _0x2d1e4f(_0x18e3f8){const _0x3618f5=_0x3f2857;let _0xd1ec15=_0x18e3f8[_0x3618f5(0x3ca)]===void 0x0?void 0x0:(0x0,_0x52175c[_0x3618f5(0x618)])(_0x18e3f8[_0x3618f5(0x3ca)]),_0x18d7c5=_0x18e3f8[_0x3618f5(0x2d2)]===void 0x0?void 0x0:(0x0,_0x52175c[_0x3618f5(0x46a)])(_0x18e3f8[_0x3618f5(0x2d2)]);return _0x3cd194=>{const _0x350a4f=_0x3618f5;let _0x15899e=(0x0,_0xaf0b54[_0x350a4f(0x38f)])(_0x3cd194);return((_0xd1ec15==null?void 0x0:_0xd1ec15(_0x15899e))??!0x0)&&((_0x18d7c5==null?void 0x0:_0x18d7c5(_0x15899e))??!0x0);};}function _0x3a3060(_0x3a3fe8,_0x44de87){const _0x5e1901=_0x3f2857;let _0x250855=(0x0,_0x52175c[_0x5e1901(0x618)])(_0x44de87[_0x5e1901(0x3ca)]??{'mode':_0x1664f5[_0x5e1901(0x376)]['All']}),_0x491480=[],_0x5a5b69=[];for(let _0x5d0c3f of _0x3a3fe8['items']){let _0x149a98=!0x1,_0x1aba01=!0x1;for(let _0x320ec9 of _0x3a3fe8[_0x5e1901(0x1c4)](_0x5d0c3f))if(_0x250855((0x0,_0xaf0b54[_0x5e1901(0x38f)])(_0x3a3fe8[_0x5e1901(0x57c)](_0x320ec9)))?_0x149a98=!0x0:_0x1aba01=!0x0,_0x149a98&&_0x1aba01)break;_0x149a98&&_0x1aba01?_0x5a5b69['push'](_0x5d0c3f):_0x149a98&&_0x491480[_0x5e1901(0x4ef)](_0x5d0c3f);}return{'checkedItems':_0x491480,'partialItems':_0x5a5b69};}function _0x10dff2(_0x28fbb6,_0xdad77d,_0xeea39a,_0x51b59e,_0x2d2551){const _0x2ea2fe=_0x3f2857;if(_0x2d2551)return{'mode':_0x1664f5[_0x2ea2fe(0x376)][_0x2ea2fe(0x5e9)]};let _0x5ba2cd=_0x5b2c01(_0x28fbb6,_0xdad77d),_0x1146a9=_0x5b2c01(_0x28fbb6,_0xeea39a);if(Array[_0x2ea2fe(0x4de)](_0x1146a9)[_0x2ea2fe(0x28b)](_0x1f3feb=>_0x5ba2cd[_0x2ea2fe(0x3b2)](_0x1f3feb)))throw TypeError(_0x2ea2fe(0x500));let _0x366a8c=_0x1146a9[_0x2ea2fe(0x3b2)](_0xaf0b54[_0x2ea2fe(0x632)][_0x2ea2fe(0x55b)]),_0x4eaf60=_0x5ba2cd[_0x2ea2fe(0x3b2)](_0xaf0b54[_0x2ea2fe(0x632)][_0x2ea2fe(0x55b)])?_0x1664f5[_0x2ea2fe(0x376)]['Exclude']:_0x1664f5[_0x2ea2fe(0x376)][_0x2ea2fe(0x4bf)];_0x366a8c&&_0x51b59e['mode']!==_0x1664f5['FilterSelectionMode'][_0x2ea2fe(0x5e9)]&&(_0x4eaf60=_0x51b59e['mode']);let _0x3299aa=(0x0,_0x52175c[_0x2ea2fe(0x618)])(_0x51b59e),_0x4227e6=new Map(),_0x525b66=new Set();for(let _0xd7a48c of _0x28fbb6[_0x2ea2fe(0x401)])for(let _0x5bf753 of _0x28fbb6[_0x2ea2fe(0x1c4)](_0xd7a48c)){let _0x13ac0f=(0x0,_0xaf0b54[_0x2ea2fe(0x38f)])(_0x28fbb6[_0x2ea2fe(0x57c)](_0x5bf753)),_0x433f40=(0x0,_0x1664f5[_0x2ea2fe(0x3b1)])(_0x13ac0f);_0x525b66[_0x2ea2fe(0x373)](_0x433f40);let _0x315e87=_0x1146a9[_0x2ea2fe(0x3b2)](_0xd7a48c)?_0x3299aa(_0x13ac0f):_0x5ba2cd[_0x2ea2fe(0x3b2)](_0xd7a48c);(_0x4eaf60===_0x1664f5[_0x2ea2fe(0x376)]['Include']&&_0x315e87||_0x4eaf60===_0x1664f5['FilterSelectionMode'][_0x2ea2fe(0x2dd)]&&!_0x315e87)&&_0x4227e6['set'](_0x433f40,_0x13ac0f);}if(_0x1146a9['size']&&_0x51b59e[_0x2ea2fe(0x2e3)]===_0x4eaf60)for(let _0x358fc2 of _0x51b59e['values']){let _0x31de41=(0x0,_0x1664f5[_0x2ea2fe(0x3b1)])(_0x358fc2);_0x525b66[_0x2ea2fe(0x3b2)](_0x31de41)||_0x4227e6[_0x2ea2fe(0x57d)](_0x31de41,_0x358fc2);}return{'mode':_0x4eaf60,'values':Array[_0x2ea2fe(0x4de)](_0x4227e6[_0x2ea2fe(0x374)]())};}function _0x5b2c01(_0x38fa8d,_0x12ed91){const _0x12a7dd=_0x3f2857;let _0x359d20=new Set(_0x38fa8d[_0x12a7dd(0x401)]),_0x17bb9a=new Set();for(let _0x24f38a of _0x12ed91){if(!_0x359d20[_0x12a7dd(0x3b2)](_0x24f38a)||_0x17bb9a['has'](_0x24f38a))throw TypeError('Invalid\x20Pivot\x20filter\x20item.');_0x17bb9a[_0x12a7dd(0x373)](_0x24f38a);}return _0x17bb9a;}let _0x39f0d4=_0x56bf8a=>{const _0x39c07e=_0x3f2857;var _0x4c22a3;return((_0x4c22a3=_0x56bf8a[_0x39c07e(0x4f8)])==null?void 0x0:_0x4c22a3['dataStream']['replace'](/\r\n$/,''))||'';};function _0xe4f936(_0x2a7ec9){const _0x1d3599=_0x3f2857;return _0x2a7ec9==null?null:(0x0,_0xaf0b54[_0x1d3599(0x553)])(_0x2a7ec9)?_0x1664f5[_0x1d3599(0x51e)]['format'](_0x2a7ec9['f'],Number(_0x2a7ec9['v'])):(0x0,_0xaf0b54['isRecordErrorValue'])(_0x2a7ec9)?_0x2a7ec9['error']:String(_0x2a7ec9);}var _0x368f09=class extends _0xaf0b54['DataFieldManager']{['compileRecordFilter'](_0xced3a1){return _0x2d1e4f(_0xced3a1);}constructor(_0x3347bb,_0x4af2af){const _0x5de269=_0x3f2857;super(),_0x108027(this,'rangeKeyMap',{}),_0x108027(this,_0x5de269(0x315),{}),_0x108027(this,'_sourceFieldLeases',new Map()),_0x108027(this,_0x5de269(0x34c),void 0x0),_0x108027(this,'_host',void 0x0),this['_univerInstanceService']=_0x4af2af,this[_0x5de269(0x494)]=_0x3347bb;}[_0x3f2857(0x23c)](){const _0x57fd07=_0x3f2857;for(let _0x47a3a6 in this['dataFields']){let _0x360987=this['dataFields'][_0x47a3a6],_0x239830=_0x360987[_0x57fd07(0x5de)]();if(!_0x239830)continue;let {unitId:_0x2d9a33,sheetName:_0x120416,range:_0x33e83e}=(0x0,_0x2aea65[_0x57fd07(0x3f2)])(_0x239830);_0x360987[_0x57fd07(0x237)]=(0x0,_0x2aea65[_0x57fd07(0x1ff)])(_0x2d9a33,_0x120416,_0x33e83e),this[_0x57fd07(0x328)][_0x360987['rangeKey']]=_0x360987['getId']();}}[_0x3f2857(0x306)](_0x4b0b47){const _0x430662=_0x3f2857;let _0x414e7b=this['getRangeKeyList'](_0x4b0b47)[_0x430662(0x296)](_0x5a2043=>{const _0x57ba03=_0x430662;var _0x1b8f0d;return(_0x1b8f0d=this[_0x57ba03(0x33a)](_0x5a2043))==null?void 0x0:_0x1b8f0d['getId']();})[_0x430662(0x501)](_0x2f1d95=>_0x2f1d95!==void 0x0);for(let _0x5b5ef2 of _0x414e7b)this[_0x430662(0x45a)][_0x430662(0x57d)](_0x5b5ef2,(this[_0x430662(0x45a)][_0x430662(0x66e)](_0x5b5ef2)??0x0)+0x1);let _0xead523=!0x1;return{'dispose':()=>{const _0x1b9291=_0x430662;if(!_0xead523){_0xead523=!0x0;for(let _0x5530d8 of _0x414e7b){let _0x29472c=(this['_sourceFieldLeases']['get'](_0x5530d8)??0x1)-0x1;_0x29472c>0x0?this['_sourceFieldLeases']['set'](_0x5530d8,_0x29472c):(this[_0x1b9291(0x45a)]['delete'](_0x5530d8),this['dataFields'][_0x5530d8]&&!Object[_0x1b9291(0x374)](this[_0x1b9291(0x4e4)])[_0x1b9291(0x28b)](_0x4abce8=>_0x4abce8['getFieldIds']()[_0x1b9291(0x3cd)](_0x5530d8))&&this[_0x1b9291(0x2c2)](_0x5530d8));}}}};}[_0x3f2857(0x673)](_0x27f622){const _0x51742b=_0x3f2857;return super['getNoUsedDataFieldIds'](_0x27f622)[_0x51742b(0x501)](_0x149161=>!this[_0x51742b(0x45a)][_0x51742b(0x3b2)](_0x149161));}[_0x3f2857(0x4c1)](){const _0x1419c3=_0x3f2857;let _0x513467=this[_0x1419c3(0x494)];return _0x2cbd66[_0x1419c3(0x5c3)](_0x513467);}[_0x3f2857(0x2c2)](_0x107933){const _0x5ef871=_0x3f2857;let _0x428ce0=this['dataFields'][_0x107933][_0x5ef871(0x237)];delete this[_0x5ef871(0x4b8)][_0x107933],delete this[_0x5ef871(0x328)][_0x428ce0];}['addDataFieldWithoutUnitInfo'](_0x37afde){const _0x104885=_0x3f2857;this[_0x104885(0x4b8)][_0x37afde[_0x104885(0x56d)]()]=_0x37afde;}['removeCollectionImp'](_0x56f1fc){const _0x1bff26=_0x3f2857;var _0xfc7824;let _0x130efb=this[_0x1bff26(0x655)](_0x56f1fc),_0x523693=this['_host']['getTargetByPivotId'](_0x56f1fc),_0x38a91a=this[_0x1bff26(0x315)][_0x56f1fc]??_0x523693??void 0x0,_0x34e738=_0x523693?(_0xfc7824=this[_0x1bff26(0x494)][_0x1bff26(0x3f5)](_0x523693[_0x1bff26(0x339)],_0x523693['subUnitId'],_0x56f1fc))==null?void 0x0:_0xfc7824[_0x1bff26(0x213)]:_0x130efb==null?void 0x0:_0x130efb[_0x1bff26(0x4cf)];this[_0x1bff26(0x494)][_0x1bff26(0x1b0)]({'token':_0x56f1fc,'type':'delete','dataRangeInfo':_0x34e738,'unitId':_0x38a91a==null?void 0x0:_0x38a91a[_0x1bff26(0x339)],'subUnitId':_0x38a91a==null?void 0x0:_0x38a91a[_0x1bff26(0x555)]}),_0x130efb==null||_0x130efb[_0x1bff26(0x345)](),delete this[_0x1bff26(0x4e4)][_0x56f1fc],delete this['_reportScopeMap'][_0x56f1fc];}[_0x3f2857(0x5de)](_0x10b7b3,_0x3b90c6){const _0x4650cd=_0x3f2857;let {sheetName:_0x2d895f,unitId:_0x5c0381,range:_0x179df1}=_0x10b7b3,{startRow:_0x4f1ba7,endRow:_0x1eadc1}=_0x179df1;return(0x0,_0x2aea65[_0x4650cd(0x1ff)])(_0x5c0381,_0x2d895f,{'startRow':_0x4f1ba7,'endRow':_0x1eadc1,'startColumn':_0x3b90c6,'endColumn':_0x3b90c6});}[_0x3f2857(0x33a)](_0x18bfdd){const _0x2a140b=_0x3f2857;return this[_0x2a140b(0x4b8)][this[_0x2a140b(0x328)][_0x18bfdd]];}[_0x3f2857(0x483)](_0x26e627,_0x6496bf){const _0x425ade=_0x3f2857;this[_0x425ade(0x328)][_0x26e627]=_0x6496bf;}[_0x3f2857(0x399)](_0x25e57b,_0x4db063){const _0x38d8a8=_0x3f2857;this[_0x38d8a8(0x328)][_0x4db063]=this[_0x38d8a8(0x328)][_0x25e57b],delete this[_0x38d8a8(0x328)][_0x25e57b];}[_0x3f2857(0x5b0)](_0x390810,_0x1f18e4,_0x44dfff,_0xc0ab19,_0x157c27){const _0x5818f8=_0x3f2857;let _0x40d7b2=new _0xaf0b54['FieldsCollection'](this);_0x40d7b2[_0x5818f8(0x48c)](_0x1f18e4);let _0xa4029=[],_0x56f1cb=0x0;for(let _0x9f008f of _0x40d7b2[_0x5818f8(0x32d)]){let _0x1d9ba1=this['dataFields'][_0x9f008f];if(!_0x1d9ba1||(0x0,_0xaf0b54[_0x5818f8(0x4ba)])(_0x1d9ba1))continue;let _0xe1c8e2=this['getRangeKey'](_0x44dfff,_0x44dfff['range'][_0x5818f8(0x5ea)]+_0x56f1cb);_0x1d9ba1[_0x5818f8(0x237)]=_0xe1c8e2,this['setRangeKeyMap'](_0xe1c8e2,_0x9f008f),_0xa4029[_0x5818f8(0x4ef)]({'index':_0x56f1cb,'dataField':_0x1d9ba1}),_0x56f1cb++;}return this['addCollection'](_0x390810,_0x40d7b2,_0x44dfff,_0xc0ab19,_0x157c27),{'collection':_0x40d7b2,'updateDataFieldList':_0xa4029};}['getRangeStartEndInfo'](_0x3c7f18,_0x51b620){const _0x1f5d0e=_0x3f2857;return _0x3c7f18[_0x1f5d0e(0x62a)]===_0x1664f5['RANGE_TYPE']['COLUMN']?{'startRow':0x0,'startColumn':_0x3c7f18[_0x1f5d0e(0x5ea)],'endRow':_0x51b620[_0x1f5d0e(0x66b)]()-0x1,'endColumn':_0x3c7f18[_0x1f5d0e(0x61a)]}:{'startRow':_0x3c7f18[_0x1f5d0e(0x5bb)],'startColumn':_0x3c7f18[_0x1f5d0e(0x5ea)],'endRow':_0x3c7f18[_0x1f5d0e(0x1ac)],'endColumn':_0x3c7f18[_0x1f5d0e(0x61a)]};}[_0x3f2857(0x60c)](_0x44c52c){const _0x6675c7=_0x3f2857;let {sheetName:_0x2d66bf,range:_0x560d8e}=_0x44c52c,_0x344a7a=this[_0x6675c7(0x34c)][_0x6675c7(0x258)](_0x1664f5[_0x6675c7(0x3b3)][_0x6675c7(0x418)]),_0x941b8c=_0x344a7a[_0x6675c7(0x54b)](_0x2d66bf),_0xe1bf3=_0x941b8c[_0x6675c7(0x50a)](),{startColumn:_0x1ccf14,startRow:_0x45a315,endColumn:_0x28f75c}=this[_0x6675c7(0x317)](_0x560d8e,_0x941b8c),_0xa8992a=_0x344a7a['getStyles'](),_0x33534d=new _0xaf0b54[(_0x6675c7(0x330))](this);_0x33534d['setRange'](_0x44c52c);let _0x3e6600=[],_0x3abf97={};for(let _0x3444f7=_0x1ccf14;_0x3444f7<=_0x28f75c;_0x3444f7++){let _0x58762d=_0xe1bf3[_0x6675c7(0x57c)](_0x45a315,_0x3444f7),_0x3d6441=this['getRangeKey'](_0x44c52c,_0x3444f7),_0x1674fa=this[_0x6675c7(0x33a)](_0x3d6441);if(_0x1674fa)_0x33534d[_0x6675c7(0x592)](_0x1674fa[_0x6675c7(0x56d)](),_0x1674fa[_0x6675c7(0x466)]());else{let _0x57251d=this[_0x6675c7(0x628)](),_0x47794f=_0xe4f936(this[_0x6675c7(0x4cc)](_0x58762d,_0xa8992a,_0x3abf97)),_0x4a4e8f=this[_0x6675c7(0x60b)](_0x47794f,_0x3444f7),_0x43dee8=new _0xaf0b54[(_0x6675c7(0x5aa))](_0x57251d,_0x4a4e8f,(0x0,_0xaf0b54[_0x6675c7(0x3c9)])(0x3));_0x43dee8[_0x6675c7(0x237)]=_0x3d6441,this[_0x6675c7(0x4b8)][_0x57251d]=_0x43dee8,_0x33534d[_0x6675c7(0x592)](_0x57251d,_0x4a4e8f),_0x3e6600['push']({'index':_0x3444f7,'dataField':_0x43dee8});}}return{'updateDataFieldList':_0x3e6600,'collection':_0x33534d};}['_getAutoName'](_0x4afcc5){const _0x249337=_0x3f2857;return this[_0x249337(0x494)][_0x249337(0x3d9)]()['sheets-pivot.columnName']+'\x20'+(0x0,_0x1664f5[_0x249337(0x1d9)])(_0x4afcc5);}['uniqueDataFieldName'](_0xb2f79d,_0x4d3b17){const _0x2e2d2c=_0x3f2857;return _0xb2f79d==null||_0xb2f79d===''?this[_0x2e2d2c(0x5f8)](_0x4d3b17):String(_0xb2f79d);}['getCollection'](_0x1f3825){return this['collections'][_0x1f3825];}[_0x3f2857(0x39e)](_0xe91e18,_0x425b21,_0x44d1b8,_0x23a0c8,_0x2fdc40){const _0x3c853a=_0x3f2857;this['collections'][_0xe91e18]=_0x425b21,_0x425b21[_0x3c853a(0x608)](_0x44d1b8);let _0x508f3d=_0x2fdc40??_0x23a0c8;_0x508f3d&&(this[_0x3c853a(0x315)][_0xe91e18]={'unitId':_0x508f3d[_0x3c853a(0x339)],'subUnitId':_0x508f3d[_0x3c853a(0x555)]}),this[_0x3c853a(0x494)][_0x3c853a(0x1b0)]({'token':_0xe91e18,'type':_0x3c853a(0x373),'dataRangeInfo':_0x44d1b8,'targetCellInfo':_0x23a0c8,'unitId':_0x508f3d==null?void 0x0:_0x508f3d['unitId'],'subUnitId':_0x508f3d==null?void 0x0:_0x508f3d[_0x3c853a(0x555)]});}[_0x3f2857(0x5b9)](_0x230238,_0x36315b){const _0x323378=_0x3f2857;if(typeof _0x230238=='string'){let _0x52535e=this['getCollection'](_0x230238);_0x52535e[_0x323378(0x2c9)]()[_0x323378(0x211)]((_0x4d4f99,_0x3dcd9e)=>{const _0x4d0ae5=_0x323378;let _0x27cc84=_0x52535e['getFieldById'](_0x4d4f99),_0x1b21f1=this['getRangeKey'](_0x36315b,_0x36315b[_0x4d0ae5(0x4cf)][_0x4d0ae5(0x5ea)]+_0x3dcd9e);this[_0x4d0ae5(0x399)](_0x27cc84[_0x4d0ae5(0x237)],_0x1b21f1),_0x27cc84[_0x4d0ae5(0x237)]=_0x1b21f1;}),_0x52535e['setRange'](_0x36315b);return;}let _0x50d06a=new Map();for(let {before:_0x4369c3,after:_0x2a301a}of _0x230238){this[_0x323378(0x37f)](_0x4369c3)[_0x323378(0x211)]((_0x55b58d,_0x4ee052)=>{const _0xcb0179=_0x323378;let _0x4006f4=this[_0xcb0179(0x33a)](_0x55b58d);_0x4006f4&&_0x50d06a[_0xcb0179(0x57d)](_0x4006f4[_0xcb0179(0x56d)](),{'field':_0x4006f4,'rangeKey':this[_0xcb0179(0x5de)](_0x2a301a,_0x2a301a[_0xcb0179(0x4cf)][_0xcb0179(0x5ea)]+_0x4ee052)});});for(let _0x5f2d42 of Object[_0x323378(0x374)](this[_0x323378(0x4e4)])){let _0x55ed08=_0x5f2d42[_0x323378(0x4cf)];(_0x55ed08==null?void 0x0:_0x55ed08[_0x323378(0x339)])===_0x4369c3['unitId']&&_0x55ed08['subUnitId']===_0x4369c3[_0x323378(0x555)]&&_0x1664f5[_0x323378(0x465)][_0x323378(0x229)](_0x55ed08[_0x323378(0x4cf)],_0x4369c3[_0x323378(0x4cf)])&&_0x5f2d42['setRange'](_0x2a301a);}}for(let {field:_0x18f702}of _0x50d06a[_0x323378(0x374)]())this[_0x323378(0x328)][_0x18f702[_0x323378(0x237)]]===_0x18f702[_0x323378(0x56d)]()&&delete this[_0x323378(0x328)][_0x18f702[_0x323378(0x237)]];for(let {field:_0x5cde78,rangeKey:_0x18ef01}of _0x50d06a[_0x323378(0x374)]())_0x5cde78['rangeKey']=_0x18ef01,this['rangeKeyMap'][_0x18ef01]=_0x5cde78['getId']();}[_0x3f2857(0x5a9)](){return{'runtimeCellData':{},'dirtyRanges':{}};}[_0x3f2857(0x548)](_0x13fc0b,_0x481a09){const _0x322bb6=_0x3f2857;if(this[_0x322bb6(0x655)](_0x13fc0b)){let _0x887b78=this[_0x322bb6(0x37f)](_0x481a09),_0x11554c=[];for(let _0x486971 of _0x887b78)this[_0x322bb6(0x328)][_0x486971]!==void 0x0&&_0x11554c[_0x322bb6(0x4ef)](this['rangeKeyMap'][_0x486971]);let _0x5d1936=this[_0x322bb6(0x673)](_0x13fc0b),_0x2b5e1d=[],_0x10e6da=new Set(_0x11554c);for(let _0x31b8b6 of _0x5d1936)_0x10e6da[_0x322bb6(0x3b2)](_0x31b8b6)||_0x2b5e1d[_0x322bb6(0x4ef)](_0x31b8b6);return _0x2b5e1d;}}[_0x3f2857(0x2b1)](_0x34b007,_0x329aef,_0x38bc7c,_0x2ed2b8,_0x3946dc){const _0x47fc4d=_0x3f2857;return this[_0x47fc4d(0x21d)](_0x34b007,_0x329aef,_0x38bc7c,_0x2ed2b8,_0x3946dc)[_0x47fc4d(0x37d)];}[_0x3f2857(0x21d)](_0x2214cd,_0x1e71e8,_0x5c107c,_0x50d5d2,_0x56b4b2){const _0x4ecfad=_0x3f2857;let _0x3a190e=_0x2214cd[_0x4ecfad(0x57c)](_0x50d5d2,_0x56b4b2);if(_0x1e71e8){let _0x2b5b1e=_0x1e71e8['getValue'](_0x50d5d2,_0x56b4b2);if(_0x2b5b1e)return{'cellData':_0x3a190e?{..._0x3a190e,..._0x2b5b1e}:_0x2b5b1e,'isArrayFormulaCell':!0x0};}if(_0x5c107c){let _0x38f444=_0x5c107c[_0x4ecfad(0x57c)](_0x50d5d2,_0x56b4b2);if(_0x38f444)return{'cellData':_0x3a190e?{..._0x3a190e,..._0x38f444}:_0x38f444,'isArrayFormulaCell':!0x1};}return{'cellData':_0x3a190e,'isArrayFormulaCell':!0x1};}[_0x3f2857(0x4b9)](_0x214566,_0x5b87e8,_0x1bf1df,_0x59fd72){const _0x12105e=_0x3f2857;let _0x151043=this[_0x12105e(0x4b8)][_0x214566];if(!_0x151043)return;let {subUnitId:_0x2b3641,range:_0x46a465,unitId:_0x4a4da5}=_0x5b87e8,_0x4702d8=this['_univerInstanceService'][_0x12105e(0x300)](_0x4a4da5);if(!_0x4702d8){console[_0x12105e(0x5ef)](_0x12105e(0x668));return;}let _0x588d8c=_0x4702d8[_0x12105e(0x2e4)](_0x2b3641),_0x42fa73=_0x588d8c[_0x12105e(0x50a)](),{arrayFormulaCellDataMatrix:_0x5bf047,unitDataMatrix:_0x13e2c9}=_0x59fd72||{},{startRow:_0x110be3,startColumn:_0x2b4c58,endRow:_0x30e952}=this[_0x12105e(0x317)](_0x46a465,_0x588d8c);_0x151043[_0x12105e(0x316)]();let _0x4dc45b=_0x4702d8[_0x12105e(0x1b6)](),_0xbd9788={},_0x294896=this[_0x12105e(0x21d)](_0x42fa73,_0x5bf047,_0x13e2c9,_0x110be3,_0x2b4c58+_0x1bf1df),_0x4a1bd6=_0xe4f936(this['adjustSheetCellData'](_0x294896[_0x12105e(0x37d)],_0x4dc45b,_0xbd9788,_0x294896[_0x12105e(0x2eb)])),_0x5aeab0=this[_0x12105e(0x60b)](_0x4a1bd6,_0x2b4c58+_0x1bf1df);_0x151043[_0x12105e(0x24d)](_0x5aeab0);for(let _0x5c0055=_0x110be3+0x1;_0x5c0055<=_0x30e952;_0x5c0055++){let _0x32b744=this[_0x12105e(0x21d)](_0x42fa73,_0x5bf047,_0x13e2c9,_0x5c0055,_0x2b4c58+_0x1bf1df);_0x151043[_0x12105e(0x66c)](this['adjustSheetCellData'](_0x32b744[_0x12105e(0x37d)],_0x4dc45b,_0xbd9788,_0x32b744['isArrayFormulaCell']),_0x5c0055-0x1-_0x110be3);}}[_0x3f2857(0x29a)](_0x16a8ca,_0x87c054,_0x37a8a7){const _0xc02e40=_0x3f2857;let {subUnitId:_0x45096a,range:_0x568f60,unitId:_0x44682c}=_0x37a8a7,_0x2e889d=this[_0xc02e40(0x34c)]['getUnit'](_0x44682c);if(!_0x2e889d){console['error']('workbook\x20is\x20not\x20found');return;}let _0x212d01=_0x2e889d[_0xc02e40(0x2e4)](_0x45096a),_0x200d8b=_0x212d01['getCellMatrix'](),{startRow:_0xcfd5c0,startColumn:_0x5f3901,endRow:_0x5b283d}=this[_0xc02e40(0x317)](_0x568f60,_0x212d01),_0x44025e=_0x2e889d[_0xc02e40(0x1b6)](),_0x52b06d={},_0x7f88b8=new Set(_0x87c054['map'](({dataField:_0x2d49b8})=>_0x2d49b8[_0xc02e40(0x56d)]())),_0xfd1440={};for(let _0x100664 of _0x16a8ca[_0xc02e40(0x32d)])_0x7f88b8[_0xc02e40(0x3b2)](_0x100664)||(_0xfd1440[_0x100664]=_0x16a8ca[_0xc02e40(0x413)][_0x100664]??_0xaf0b54[_0xc02e40(0x330)][_0xc02e40(0x502)](_0x16a8ca[_0xc02e40(0x352)](_0x100664)[_0xc02e40(0x466)](),_0xfd1440));for(let {dataField:_0x46d112,index:_0xac377e}of _0x87c054){_0x46d112['reset']();let _0x197d78=this['_getResolvedMatrixValue'](_0x200d8b,void 0x0,void 0x0,_0xcfd5c0,_0x5f3901+_0xac377e),_0x349b3e=_0xe4f936(this[_0xc02e40(0x4cc)](_0x197d78[_0xc02e40(0x37d)],_0x44025e,_0x52b06d,_0x197d78[_0xc02e40(0x2eb)])),_0x8e66a1=this['uniqueDataFieldName'](_0x349b3e,_0x5f3901+_0xac377e);_0x46d112[_0xc02e40(0x24d)](_0x8e66a1),_0xfd1440[_0x46d112[_0xc02e40(0x56d)]()]=_0xaf0b54[_0xc02e40(0x330)][_0xc02e40(0x502)](_0x8e66a1,_0xfd1440);}_0x16a8ca[_0xc02e40(0x413)]=_0xfd1440;for(let _0x52a534=_0xcfd5c0+0x1;_0x52a534<=_0x5b283d;_0x52a534++)for(let {index:_0x22cea8,dataField:_0x5e99f0}of _0x87c054){let _0x436dc8=_0x200d8b[_0xc02e40(0x57c)](_0x52a534,_0x5f3901+_0x22cea8);_0x5e99f0[_0xc02e40(0x66c)](this[_0xc02e40(0x4cc)](_0x436dc8,_0x44025e,_0x52b06d),_0x52a534-0x1-_0xcfd5c0);}_0x16a8ca[_0xc02e40(0x614)](_0x87c054['map'](({dataField:_0x4f1ae7})=>_0x4f1ae7[_0xc02e40(0x56d)]()))[_0xc02e40(0x211)](([_0x2c08cc,_0x5b0d4b])=>{const _0x18f425=_0xc02e40;let _0x1ae6d0=_0x16a8ca[_0x18f425(0x352)](_0x2c08cc),_0x59e7e5=_0x16a8ca['getFieldById'](_0x5b0d4b);(0x0,_0xaf0b54[_0x18f425(0x4ba)])(_0x1ae6d0)&&_0x59e7e5&&((0x0,_0xaf0b54[_0x18f425(0x5a3)])(_0x1ae6d0)&&_0x201d1a(_0x2e889d[_0x18f425(0x48d)]()),_0x1ae6d0[_0x18f425(0x4cd)](_0x59e7e5));}),_0x16a8ca[_0xc02e40(0x24a)](_0x5b283d-_0xcfd5c0);}[_0x3f2857(0x37f)](_0x34d15c){const _0x221a9c=_0x3f2857;let {range:_0x1d593a}=_0x34d15c,{startColumn:_0x4407a2,endColumn:_0x185d5e}=_0x1d593a,_0x13b49c=[];for(let _0x1fb3e1=_0x4407a2;_0x1fb3e1<=_0x185d5e;_0x1fb3e1++)_0x13b49c[_0x221a9c(0x4ef)](this['getRangeKey'](_0x34d15c,_0x1fb3e1));return _0x13b49c;}[_0x3f2857(0x4cc)](_0x3c1c7c,_0xd17e63,_0x2a259a,_0x3cab79=!0x1){const _0x493a5b=_0x3f2857;if(_0x3c1c7c){let {s:_0x8065f2,v:_0x12a951,t:_0x4f4be1,p:_0x401248}=_0x3c1c7c;if(_0x401248)return _0x39f0d4(_0x401248);let _0x4beb03=(0x0,_0x2aea65['extractFormulaError'])(_0x3c1c7c,_0x3cab79);if(_0x4beb03)return{'error':_0x4beb03};let _0x14fcf8=_0xd17e63[_0x493a5b(0x66e)](_0x8065f2);if(_0x14fcf8&&(0x0,_0x1664f5[_0x493a5b(0x559)])(_0x3c1c7c)===_0x1664f5['CellValueType'][_0x493a5b(0x287)]&&_0x14fcf8['n']){let {pattern:_0x36ed06}=_0x14fcf8['n'];_0x2a259a[_0x36ed06]||(_0x2a259a[_0x36ed06]=_0x1664f5[_0x493a5b(0x51e)]['getFormatInfo'](_0x36ed06));let _0x45dfba=_0x2a259a[_0x36ed06],_0x4dafc0=_0x45dfba[_0x493a5b(0x450)];if(_0x45dfba['isText'])return String(_0x12a951);if(_0x4dafc0)return{'v':Number(_0x12a951),'f':_0x36ed06};}if(_0x4f4be1===_0x1664f5['CellValueType']['NUMBER'])return Number(_0x12a951);if(_0x4f4be1===_0x1664f5[_0x493a5b(0x25a)]['STRING']||_0x4f4be1===_0x1664f5[_0x493a5b(0x25a)]['FORCE_STRING'])return String(_0x12a951);if(_0x4f4be1===_0x1664f5[_0x493a5b(0x25a)][_0x493a5b(0x631)])return _0x12a951===!0x0||_0x12a951===0x1;if(_0x4f4be1===void 0x0){let _0x59295f=Number(_0x12a951);if(!Number[_0x493a5b(0x5ad)](_0x59295f)&&String(_0x59295f)===_0x12a951)return _0x59295f;}return _0x12a951??null;}return null;}['getRangeData'](_0x55fd0b){const _0x4d9e7c=_0x3f2857;let {sheetName:_0x1ffc3b,range:_0x3da48c,unitId:_0x5c0a7a}=_0x55fd0b,_0x28f92d=this[_0x4d9e7c(0x34c)]['getUnit'](_0x5c0a7a);if(!_0x28f92d)return console[_0x4d9e7c(0x5ef)]('workbook\x20is\x20not\x20found'),{'header':[],'data':[]};let _0x5a729f=_0x28f92d[_0x4d9e7c(0x54b)](_0x1ffc3b),_0x2a50f0=_0x5a729f[_0x4d9e7c(0x50a)](),{startRow:_0xcddcb8,startColumn:_0x3bce98,endRow:_0x1f2873,endColumn:_0x1ffac6}=this[_0x4d9e7c(0x317)](_0x3da48c,_0x5a729f),_0x16873f=_0x28f92d[_0x4d9e7c(0x1b6)](),_0x25fd63=[],_0x3037a2=[],_0x50e282={};for(let _0x106537=_0xcddcb8;_0x106537<=_0x1f2873;_0x106537++){let _0x3be63b=[];for(let _0x349a41=_0x3bce98;_0x349a41<=_0x1ffac6;_0x349a41++){let _0x5bee9c=_0x2a50f0[_0x4d9e7c(0x57c)](_0x106537,_0x349a41);_0x106537===_0xcddcb8?_0x25fd63[_0x4d9e7c(0x4ef)](_0xe4f936(this[_0x4d9e7c(0x4cc)](_0x5bee9c,_0x16873f,_0x50e282))):_0x3be63b[_0x4d9e7c(0x4ef)](this[_0x4d9e7c(0x4cc)](_0x5bee9c,_0x16873f,_0x50e282));}_0x3037a2[_0x4d9e7c(0x4ef)](_0x3be63b);}return{'header':_0x25fd63,'data':_0x3037a2};}[_0x3f2857(0x2f9)](){const _0x29ed12=_0x3f2857;return super[_0x29ed12(0x2f9)]();}[_0x3f2857(0x48c)](_0x5071a6){const _0x10c77b=_0x3f2857;super[_0x10c77b(0x48c)](_0x5071a6),this[_0x10c77b(0x23c)]();}[_0x3f2857(0x345)](){const _0x3a8cdb=_0x3f2857;super['dispose'](),this[_0x3a8cdb(0x45a)][_0x3a8cdb(0x318)](),this[_0x3a8cdb(0x328)]={},this['_reportScopeMap']={},this[_0x3a8cdb(0x494)]=null;}};let _0xd9fcb4=_0x565161=>{const _0x403ed7=_0x3f2857;let {targetCellInfo:_0x39ce14,direction:_0x5c084c=_0x403ed7(0x244)}=_0x565161,{matrixCache:_0x89176a,rangesCache:_0x4baba6}=_0x54df0f({'filter':_0x403ed7(0x397),'row':'Row','column':_0x403ed7(0x32c),'values':_0x403ed7(0x606)},_0x39ce14,_0x5c084c),_0x1db3f5=new _0x1664f5['ObjectMatrix']();return _0x89176a[_0x403ed7(0x429)]((_0x90ed11,_0x17755b,_0x142570)=>{_0x1db3f5['setValue'](_0x90ed11,_0x17755b,_0x142570);}),{'matrix':_0x1db3f5,'rangesCache':_0x4baba6};},_0x40d444=_0x8610cc=>{const _0x13964f=_0x3f2857;let _0x5a731f;if(_0x8610cc!=null&&_0x8610cc['v']||(_0x8610cc==null?void 0x0:_0x8610cc['v'])===0x0){_0x5a731f||={};let _0x52c3a9=_0x1abdb2(_0x8610cc['v']);typeof _0x52c3a9==_0x13964f(0x221)?_0x5a731f['t']=_0x1664f5[_0x13964f(0x25a)][_0x13964f(0x287)]:typeof _0x52c3a9==_0x13964f(0x5cb)&&(_0x5a731f['t']=_0x1664f5[_0x13964f(0x25a)]['STRING']),_0x5a731f['v']=_0x52c3a9;}return _0x5a731f;},_0x47ea29=(_0x24ac7a,_0x45ddf9,_0x3a6548,_0xccd74e,_0x4cee3a)=>{const _0x51c1e4=_0x3f2857;let {cornerView:_0x5042f1,rowView:_0x57dfce,colView:_0x2bfc66,dataView:_0x4e9ac7,pageView:_0x14d4e7,formatMap:_0x3ad3ad}=_0x24ac7a,{row:_0x507e4d,col:_0x4973c6}=_0x45ddf9,_0x133785=new _0x1664f5[(_0x51c1e4(0x40b))](),_0x5e1222=_0x1f675e(_0x24ac7a,_0x4973c6,_0xccd74e),_0x323ba4=_0x507e4d,_0x59b432=_0x4973c6;Object[_0x51c1e4(0x58e)](_0x14d4e7[_0x51c1e4(0x424)])[_0x51c1e4(0x211)](_0x38a0f2=>{const _0x3bc62e=_0x51c1e4;Object[_0x3bc62e(0x58e)](_0x14d4e7[_0x3bc62e(0x424)][Number(_0x38a0f2)])[_0x3bc62e(0x211)](_0x49f94c=>{const _0x2e148f=_0x3bc62e;let _0x3b8e22={..._0x14d4e7[_0x2e148f(0x424)][Number(_0x38a0f2)][Number(_0x49f94c)]};_0x133785[_0x2e148f(0x404)](Number(_0x38a0f2)+_0x323ba4,_0x17dc77(_0x5e1222,Number(_0x49f94c)+_0x59b432),_0x40d444(_0x3b8e22));});});let _0xb3fa75=Object[_0x51c1e4(0x58e)](_0x14d4e7['data'])['length'];_0x323ba4+=_0xb3fa75+ +!!_0xb3fa75;let _0x25310a=_0x5042f1[_0x51c1e4(0x66b)](),_0x4c9e96=_0x5042f1[_0x51c1e4(0x1db)]();for(let _0x56e768=0x0;_0x56e768<_0x25310a;_0x56e768++)for(let _0x577391=0x0;_0x577391<_0x4c9e96;_0x577391++){var _0x274fba;let _0x29d189={...(_0x274fba=_0x5042f1['data'])==null||(_0x274fba=_0x274fba[_0x56e768])==null?void 0x0:_0x274fba[_0x577391]};if(_0x29d189){var _0x81e820,_0x537b42;(_0x81e820=_0x57dfce['headerMap'][_0x577391])!=null&&_0x81e820[_0x51c1e4(0x20c)]&&_0x577391===_0x4c9e96-0x1&&_0x56e768===_0x25310a-0x1&&(_0x29d189['v']=''+_0x3a6548[_0x51c1e4(0x226)]),_0x56e768===_0x25310a-0x1&&(_0x537b42=_0x5042f1[_0x51c1e4(0x47c)][_0x577391])!=null&&_0x537b42[_0x51c1e4(0x676)]&&(_0x29d189['v']=''+(_0x3a6548[_0x51c1e4(0x2c1)]||_0x51c1e4(0x47d)));}_0x133785[_0x51c1e4(0x404)](_0x56e768+_0x323ba4,_0x17dc77(_0x5e1222,_0x577391+_0x59b432),_0x40d444(_0x29d189));}_0x59b432+=_0x4c9e96;let _0x312730=_0x2bfc66['headerMap'],_0x3292b2=_0x2bfc66[_0x51c1e4(0x5ee)]()>=0x0?_0x2bfc66[_0x51c1e4(0x5ee)]()+0x1:0x0,_0x5be1b5=_0x2bfc66[_0x51c1e4(0x4ce)]()>=0x0?_0x2bfc66[_0x51c1e4(0x4ce)]()+0x1:0x0;for(let _0x466544=0x0;_0x466544<_0x3292b2;_0x466544++)for(let _0x3356ae=0x0;_0x3356ae<_0x5be1b5;_0x3356ae++){var _0x541898,_0x18b8b8;let _0x59fbf1={...(_0x541898=_0x2bfc66[_0x51c1e4(0x424)])==null||(_0x541898=_0x541898[_0x466544])==null?void 0x0:_0x541898[_0x3356ae]},_0x5102d6=_0x3ad3ad[(_0x18b8b8=_0x312730[_0x3356ae])==null?void 0x0:_0x18b8b8[_0x51c1e4(0x35d)]];if(_0x59fbf1){let _0x3bed34=_0x2bfc66['getHeaderMapItem'](_0x3356ae+0x1);_0x59fbf1['v']=_0x466544===0x0&&_0x3bed34!=null&&_0x3bed34[_0x51c1e4(0x530)]?''+(_0x3a6548['sheets-pivot.columnLabels']||_0x51c1e4(0x3be)):_0x682171(_0x59fbf1,_0x466544===0x0&&(_0x3bed34==null?void 0x0:_0x3bed34[_0x51c1e4(0x20c)]),_0x5102d6,_0x3a6548,_0x3a6548[_0x51c1e4(0x43b)],void 0x0,_0x4cee3a);}_0x133785[_0x51c1e4(0x404)](_0x466544+_0x323ba4,_0x17dc77(_0x5e1222,_0x3356ae+_0x59b432),_0x40d444(_0x59fbf1));}_0x323ba4+=_0x25310a;let _0xf55f68=_0x57dfce[_0x51c1e4(0x4a9)],_0x2435a0=_0x57dfce[_0x51c1e4(0x5ee)]()>=0x0?_0x57dfce[_0x51c1e4(0x5ee)]()+0x1:0x0,_0xff2372=_0x57dfce['getLastCol']()>=0x0?_0x57dfce[_0x51c1e4(0x4ce)]()+0x1:0x0;for(let _0x21f092=0x0;_0x21f092<_0x2435a0;_0x21f092++)for(let _0x405272=0x0;_0x405272<_0xff2372;_0x405272++){var _0x9a4482,_0x59bec4;let _0x3dbc22={...(_0x9a4482=_0x57dfce[_0x51c1e4(0x424)])==null||(_0x9a4482=_0x9a4482[_0x21f092])==null?void 0x0:_0x9a4482[_0x405272]},_0x1d4b4a=_0x3ad3ad[(_0x59bec4=_0xf55f68[_0x405272])==null?void 0x0:_0x59bec4[_0x51c1e4(0x35d)]];_0x3dbc22&&(_0x3dbc22['v']=_0x682171(_0x3dbc22,!0x1,_0x1d4b4a,_0x3a6548,void 0x0,_0x3a6548[_0x51c1e4(0x43b)],_0x4cee3a)),_0x133785[_0x51c1e4(0x404)](_0x21f092+_0x323ba4,_0x17dc77(_0x5e1222,_0x405272+_0x4973c6),_0x40d444(_0x3dbc22));}let _0x145282=_0x4e9ac7[_0x51c1e4(0x66b)](),_0x1daa3a=_0x4e9ac7['getColCount']();for(let _0x1c8261=0x0;_0x1c8261<_0x145282;_0x1c8261++)for(let _0x160da7=0x0;_0x160da7<_0x1daa3a;_0x160da7++){var _0x52c4a;let _0x2c07b1={...(_0x52c4a=_0x4e9ac7[_0x51c1e4(0x424)])==null||(_0x52c4a=_0x52c4a[_0x1c8261])==null?void 0x0:_0x52c4a[_0x160da7]};_0x133785[_0x51c1e4(0x404)](_0x1c8261+_0x323ba4,_0x17dc77(_0x5e1222,_0x160da7+_0x59b432),_0x40d444(_0x2c07b1));}return _0x133785;},_0x4ec8fb=_0x3b9cf3=>{const _0x4ff2f5=_0x3f2857;let {view:_0x327ebc,targetCellInfo:_0x5ddbee,isEmpty:_0x33505e,textInfo:_0x470ed0,direction:_0x151252='ltr',dateSystem:_0x216b65=_0x1664f5['DateSystem']['Date1900']}=_0x3b9cf3;if(_0x33505e)return _0xd9fcb4(_0x3b9cf3);let {pageView:_0x4560d0,cornerView:_0x431dbe,rowView:_0x2955f4,colView:_0xc2b82a,dataView:_0x3c53d8}=_0x327ebc,_0xece824=_0x1f675e(_0x327ebc,_0x5ddbee['col'],_0x151252),_0x30f0d5=_0x4213e6(_0x5ddbee,_0x4560d0,!0x0),_0x36d185=_0x4560d0[_0x4ff2f5(0x64f)]>=0x0?_0x4560d0[_0x4ff2f5(0x64f)]+0x1:0x0,_0x57c4d0=_0x431dbe['getRowCount'](),_0x2d50d7=_0x431dbe[_0x4ff2f5(0x1db)](),_0x4b7df6=+(_0x30f0d5[_0x4ff2f5(0x33b)]>0x0),_0x1c4f1d=_0x4213e6({'row':_0x5ddbee[_0x4ff2f5(0x4a2)]+_0x36d185+_0x4b7df6,'col':_0x5ddbee[_0x4ff2f5(0x1ad)]},_0x431dbe,!0x1,!0x1),_0x2ca189=_0x4213e6({'row':_0x5ddbee[_0x4ff2f5(0x4a2)]+_0x36d185+_0x4b7df6+_0x57c4d0,'col':_0x5ddbee['col']},_0x2955f4,!0x1,!0x0),_0x562872=_0x4213e6({'row':_0x5ddbee[_0x4ff2f5(0x4a2)]+_0x36d185+_0x4b7df6,'col':_0x5ddbee[_0x4ff2f5(0x1ad)]+_0x2d50d7},_0xc2b82a,!0x1,!0x0),_0x498d0f=_0x4213e6({'row':_0x5ddbee[_0x4ff2f5(0x4a2)]+_0x36d185+_0x4b7df6+_0x57c4d0,'col':_0x5ddbee[_0x4ff2f5(0x1ad)]+_0x2d50d7},_0x3c53d8,!0x1,!0x1),_0x1bfde4={'rowRanges':_0x2ca189[_0x4ff2f5(0x296)](_0x58f28c=>_0x18d82d(_0xece824,_0x58f28c)),'colRanges':_0x562872[_0x4ff2f5(0x296)](_0x23e3b4=>_0x18d82d(_0xece824,_0x23e3b4)),'cornerRanges':_0x1c4f1d[_0x4ff2f5(0x296)](_0x1dee6d=>_0x18d82d(_0xece824,_0x1dee6d)),'dataRanges':_0x498d0f[_0x4ff2f5(0x296)](_0x5b6c0f=>_0x18d82d(_0xece824,_0x5b6c0f)),'pageRanges':_0x30f0d5[_0x4ff2f5(0x296)](_0x227d78=>_0x18d82d(_0xece824,_0x227d78))};return{'matrix':_0x47ea29(_0x327ebc,_0x5ddbee,_0x470ed0,_0x151252,_0x216b65),'rangesCache':_0x1bfde4};},_0x360e3c=class extends _0x1664f5[_0x3f2857(0x660)]{constructor(_0x7c6d03,_0x8557e5,_0x59f00e,_0x85550f,_0x22a709,_0x56dbcf,_0x202791){const _0x5d3063=_0x3f2857;super(),this['_injector']=_0x7c6d03,this[_0x5d3063(0x34c)]=_0x8557e5,this[_0x5d3063(0x2ad)]=_0x59f00e,this[_0x5d3063(0x37c)]=_0x85550f,this[_0x5d3063(0x2ee)]=_0x22a709,this['_sheetsPivotCacheService']=_0x56dbcf,this['_sourceCalculation']=_0x202791,_0x108027(this,_0x5d3063(0x4c7),new Map()),_0x108027(this,_0x5d3063(0x1fd),new Map()),_0x108027(this,_0x5d3063(0x62d),new Map()),_0x108027(this,_0x5d3063(0x214),new Map()),_0x108027(this,_0x5d3063(0x535),new Map()),_0x108027(this,_0x5d3063(0x651),void 0x0),_0x108027(this,'_direction','ltr'),_0x108027(this,_0x5d3063(0x26e),new _0x551644[(_0x5d3063(0x613))]()),_0x108027(this,'collectionChange$',this[_0x5d3063(0x26e)][_0x5d3063(0x370)]()),_0x108027(this,'_viewData$',new _0x551644['Subject']()),_0x108027(this,_0x5d3063(0x2bb),this[_0x5d3063(0x325)][_0x5d3063(0x370)]()),_0x108027(this,_0x5d3063(0x627),new _0x551644[(_0x5d3063(0x613))]()),_0x108027(this,_0x5d3063(0x3b8),this[_0x5d3063(0x627)][_0x5d3063(0x370)]()),_0x108027(this,_0x5d3063(0x59a),new Map()),_0x108027(this,'_sourceLeases',new Set()),_0x108027(this,_0x5d3063(0x506),[]),_0x108027(this,_0x5d3063(0x253),new Map()),this[_0x5d3063(0x1c5)]();}[_0x3f2857(0x3d9)](){return this['_textInfo']?this['_textInfo']:_0x37117b;}[_0x3f2857(0x1e5)](_0x5e2f37){const _0xf84324=_0x3f2857;var _0x2d9078;return(_0x2d9078=this[_0xf84324(0x1fd)]['get'](_0x5e2f37))==null?void 0x0:_0x2d9078[_0xf84324(0x630)];}['_getRuntimeIds'](){const _0x2d0dd3=_0x3f2857;return Object[_0x2d0dd3(0x30c)](Array[_0x2d0dd3(0x4de)](this[_0x2d0dd3(0x1fd)],([_0xb61645,_0x1478f6])=>[_0xb61645,_0x1478f6['runtimeId']]));}[_0x3f2857(0x1d1)](_0xa0aaa0){const _0x3b663c=_0x3f2857;if(!this[_0x3b663c(0x34c)][_0x3b663c(0x300)](_0xa0aaa0[_0x3b663c(0x339)]))return!0x1;let _0x8006c8=this[_0x3b663c(0x1fd)][_0x3b663c(0x66e)](_0xa0aaa0[_0x3b663c(0x339)]);if(_0x8006c8&&(_0x8006c8[_0x3b663c(0x665)]>_0xa0aaa0[_0x3b663c(0x665)]||_0x8006c8[_0x3b663c(0x665)]===_0xa0aaa0[_0x3b663c(0x665)]&&_0x8006c8[_0x3b663c(0x630)]!==_0xa0aaa0[_0x3b663c(0x630)]))return!0x1;this[_0x3b663c(0x1fd)][_0x3b663c(0x57d)](_0xa0aaa0['unitId'],{..._0xa0aaa0}),this['syncCollectionConfig'](_0xa0aaa0[_0x3b663c(0x339)]);for(let [_0x5a8fe7,_0xca39d5]of this[_0x3b663c(0x4c7)][_0x3b663c(0x66e)](_0xa0aaa0[_0x3b663c(0x339)])??[])for(let _0xfd59dd of _0xca39d5['keys']())this['queryDirtyPivotTable']({'unitId':_0xa0aaa0[_0x3b663c(0x339)],'subUnitId':_0x5a8fe7,'token':_0xfd59dd,'type':_0x3b663c(0x57d)});return!0x0;}['setTextInfo'](_0x5b1a59,_0x36be6e){const _0x21ed74=_0x3f2857;let _0x22de09=this['_direction']===_0x36be6e&&_0x1664f5['Tools'][_0x21ed74(0x499)](this['_textInfo'],_0x5b1a59);if(this['_textInfo']=_0x5b1a59,_0x22de09)return;this[_0x21ed74(0x4a5)]=_0x36be6e;let _0x43758d=[];this['_model'][_0x21ed74(0x211)](_0x310d21=>{_0x310d21['forEach'](_0x409ec1=>{_0x409ec1['forEach']((_0x9ef090,_0x2e9e72)=>{const _0x86cc2e=_0x5a2c;let _0x5cf60c=this[_0x86cc2e(0x535)][_0x86cc2e(0x66e)](_0x2e9e72);_0x5cf60c&&_0x43758d[_0x86cc2e(0x4ef)]({..._0x5cf60c,'pivotTableId':_0x2e9e72,'isEmpty':_0x9ef090[_0x86cc2e(0x3fb)],'targetCellInfo':_0x9ef090[_0x86cc2e(0x61d)],'textInfo':_0x5b1a59});});});}),_0x43758d[_0x21ed74(0x211)](_0x2f07b2=>this[_0x21ed74(0x669)](_0x2f07b2,!0x0)),_0x43758d['forEach'](({targetCellInfo:_0x19bfbd,pivotTableId:_0x2e9611})=>{const _0x340ec3=_0x21ed74;this['_viewData$']['next']({'unitId':_0x19bfbd[_0x340ec3(0x339)],'subUnitId':_0x19bfbd['subUnitId'],'pivotTableId':_0x2e9611});});}[_0x3f2857(0x5b9)](_0xdc7ab0){const _0x4f10fd=_0x3f2857;let _0x53c8f6=this[_0x4f10fd(0x44c)][_0x4f10fd(0x5b2)](_0xdc7ab0);if(!_0x53c8f6[_0x4f10fd(0x33b)])return;let _0x54036d=this[_0x4f10fd(0x5f3)](_0xdc7ab0[_0x4f10fd(0x339)]);_0x54036d['handleMoveRange'](_0x53c8f6);let _0x185d27=new Map(_0x53c8f6[_0x4f10fd(0x296)](_0x1f8624=>[_0x1f8624['pivotCacheId'],_0x1f8624]));for(let [_0x30c28f,_0x214c6e]of this[_0x4f10fd(0x4c7)])for(let [_0x179c95,_0x2c0666]of _0x214c6e)for(let [_0x1a054f,_0x31a340]of Array[_0x4f10fd(0x4de)](_0x2c0666)){let _0x64eaeb=_0x185d27['get'](_0x31a340[_0x4f10fd(0x60a)]??'');if(!_0x64eaeb)continue;let _0xfb8416={..._0x31a340,'sourceRangeInfo':_0x64eaeb['after']};this[_0x4f10fd(0x600)](_0x30c28f,_0x179c95,_0x1a054f,_0xfb8416),this[_0x4f10fd(0x1b0)]({'unitId':_0x30c28f,'token':_0x1a054f,'type':_0x4f10fd(0x2f2),'oldSourceRangeInfo':_0x64eaeb['before'],'dataRangeInfo':_0x64eaeb[_0x4f10fd(0x595)],'targetCellInfo':_0xfb8416[_0x4f10fd(0x61d)]}),this['updateConfig']({'unitId':_0x30c28f,'subUnitId':_0x179c95,'oldSubUnitId':_0x179c95,'pivotTableId':_0x1a054f,'pivotTableConfig':_0xfb8416,'collectionConfig':_0x54036d['toJSON']()});}let _0x1674f3={};for(let _0x3caad9 of _0x53c8f6)this[_0x4f10fd(0x55e)](_0xdc7ab0[_0x4f10fd(0x339)],_0x3caad9['pivotCacheId'],_0x1674f3);this[_0x4f10fd(0x479)](_0xdc7ab0[_0x4f10fd(0x339)]);}[_0x3f2857(0x1b0)](_0x433907){const _0x522b92=_0x3f2857;this[_0x522b92(0x26e)]['next'](_0x433907);}['getDataFieldManager'](_0x4c26af){const _0xea6ae0=_0x3f2857;let _0x2e0907=this[_0xea6ae0(0x59a)]['get'](_0x4c26af);return _0x2e0907||(_0x2e0907=new _0x368f09(this,this['_univerInstanceService']),this[_0xea6ae0(0x59a)][_0xea6ae0(0x57d)](_0x4c26af,_0x2e0907)),_0x2e0907;}[_0x3f2857(0x655)](_0x12e573,_0x292111){const _0x13d456=_0x3f2857;return this[_0x13d456(0x5f3)](_0x12e573)['collections'][_0x292111];}[_0x3f2857(0x548)](_0x366c6a,_0x4bb8c1,_0x54f9a2){const _0x38bc3f=_0x3f2857;return this[_0x38bc3f(0x5f3)](_0x366c6a)[_0x38bc3f(0x548)](_0x4bb8c1,_0x54f9a2);}[_0x3f2857(0x271)](_0x5d615a,_0x1b57ac){const _0x1fd95d=_0x3f2857;let _0x992ca9=this[_0x1fd95d(0x4c7)][_0x1fd95d(0x66e)](_0x5d615a);_0x992ca9||(_0x992ca9=new Map(),this[_0x1fd95d(0x4c7)]['set'](_0x5d615a,_0x992ca9));let _0x8c4244=_0x992ca9['get'](_0x1b57ac);return _0x8c4244||(_0x8c4244=new Map(),_0x992ca9[_0x1fd95d(0x57d)](_0x1b57ac,_0x8c4244)),_0x8c4244;}[_0x3f2857(0x600)](_0x351dca,_0x49b0e3,_0x97dbe0,_0x5541a0){const _0x8e8aa7=_0x3f2857;this[_0x8e8aa7(0x271)](_0x351dca,_0x49b0e3)[_0x8e8aa7(0x57d)](_0x97dbe0,_0x5541a0);}[_0x3f2857(0x33c)](_0x337f01,_0xe695e5,_0x24d22e){const _0x19a651=_0x3f2857;var _0x317c62;if((_0x317c62=this[_0x19a651(0x4c7)][_0x19a651(0x66e)](_0x337f01))!=null&&(_0x317c62=_0x317c62[_0x19a651(0x66e)](_0xe695e5))!=null&&_0x317c62[_0x19a651(0x66e)](_0x24d22e)){var _0x45c9d8;(_0x45c9d8=this[_0x19a651(0x4c7)][_0x19a651(0x66e)](_0x337f01))==null||(_0x45c9d8=_0x45c9d8['get'](_0xe695e5))==null||_0x45c9d8['delete'](_0x24d22e);}}['_updatePivotTableInstanceCache'](_0x35b6f1,_0x1a432c){const _0x2e9a93=_0x3f2857;this[_0x2e9a93(0x62d)][_0x2e9a93(0x57d)](_0x35b6f1,_0x1a432c);}[_0x3f2857(0x626)](_0x37cea6){const _0x451018=_0x3f2857;this['_pivotTableInstanceCache'][_0x451018(0x4a7)](_0x37cea6);}[_0x3f2857(0x3cb)](_0x1dc6f1,_0x4ab1e6){const _0x23c1a3=_0x3f2857;let _0x530b5b=this[_0x23c1a3(0x214)][_0x23c1a3(0x66e)](_0x1dc6f1);_0x530b5b||(_0x530b5b=new Map(),this[_0x23c1a3(0x214)][_0x23c1a3(0x57d)](_0x1dc6f1,_0x530b5b));let _0x32afd6=_0x530b5b['get'](_0x4ab1e6);return _0x32afd6||(_0x32afd6=new Map(),_0x530b5b['set'](_0x4ab1e6,_0x32afd6)),_0x32afd6;}[_0x3f2857(0x31a)](_0xab117f){const _0xbb9926=_0x3f2857;var _0x3e4aa2;let {unitId:_0x74547d,subUnitId:_0x3abd04,pivotTableId:_0x32e474,pivotTableConfig:_0x4ef434,collectionConfig:_0x24aed6}=_0xab117f,_0x13ebe6={'runtimeId':(_0x3e4aa2=this[_0xbb9926(0x1fd)]['get'](_0x74547d))==null?void 0x0:_0x3e4aa2['runtimeId'],'runtimeIds':this[_0xbb9926(0x377)](),'unitId':_0x74547d,'subUnitId':_0x3abd04,'oldSubUnitId':_0x3abd04,'pivotTableId':_0x32e474,'pivotTableConfig':_0x4ef434,'collectionConfig':_0x24aed6,'pivotCacheConfigs':{[_0x4ef434[_0xbb9926(0x213)][_0xbb9926(0x339)]]:this[_0xbb9926(0x44c)]['toJSON'](_0x4ef434['sourceRangeInfo'][_0xbb9926(0x339)])}};this[_0xbb9926(0x37c)]['executeCommand'](_0xf43dae['id'],_0x13ebe6,{'onlyLocal':!0x0});}['updateView'](_0x551b2c,_0x411c1e,_0x280239,_0x36cedf,_0x4bc8d2,_0x310082,_0x22dab6,_0x3b96ce=!0x1){const _0x66f0a8=_0x3f2857;var _0x5844a4,_0x5d8e83;this['_commandService'][_0x66f0a8(0x4f1)](_0x46a5d5['id'],{'runtimeIds':this[_0x66f0a8(0x377)](),'single':{'runtimeId':(_0x5844a4=this[_0x66f0a8(0x1fd)][_0x66f0a8(0x66e)](_0x551b2c))==null?void 0x0:_0x5844a4[_0x66f0a8(0x630)],'unitId':_0x551b2c,'subUnitId':_0x411c1e,'type':_0x280239,'pivotTableId':_0x36cedf,'view':_0x4bc8d2,'pivotConfig':_0x310082},'collectionConfig':{[_0x551b2c]:_0x22dab6},'pivotCacheConfigs':{[(_0x310082==null?void 0x0:_0x310082[_0x66f0a8(0x213)][_0x66f0a8(0x339)])??_0x551b2c]:this[_0x66f0a8(0x44c)][_0x66f0a8(0x2f9)]((_0x310082==null?void 0x0:_0x310082['sourceRangeInfo'][_0x66f0a8(0x339)])??_0x551b2c)}},{'onlyLocal':!0x0});let _0x510a09=!!((_0x5d8e83=this[_0x66f0a8(0x3c7)](_0x36cedf))!=null&&_0x5d8e83[_0x66f0a8(0x3fb)]()),_0x370e88=this[_0x66f0a8(0x3f5)](_0x551b2c,_0x411c1e,_0x36cedf);_0x370e88&&this[_0x66f0a8(0x669)]({'view':_0x4bc8d2,'pivotTableId':_0x36cedf,'textInfo':this[_0x66f0a8(0x3d9)](),'isEmpty':_0x510a09,'targetCellInfo':_0x370e88['targetCellInfo']},_0x3b96ce);}['updateViewData'](_0x2f1de0,_0x2baeae){const _0x2d3a83=_0x3f2857;var _0x1cd9a9,_0x4f1352;let {targetCellInfo:_0xcf1939,pivotTableId:_0x39925c}=_0x2f1de0,{unitId:_0x496c4f,subUnitId:_0xddf88a}=_0xcf1939,_0x50c5ad=this['_ensureViewDataMap'](_0x496c4f,_0xddf88a),_0x35d935=_0x50c5ad['get'](_0x39925c),_0x58a139,_0x113034;_0x35d935&&(_0x58a139=_0x35d935['rangeCache'],_0x113034=_0x35d935['matrix']);let {rangesCache:_0x5739cb,matrix:_0x5ba4d2}=_0x4ec8fb({..._0x2f1de0,'direction':this[_0x2d3a83(0x4a5)],'dateSystem':(_0x1cd9a9=(_0x4f1352=this[_0x2d3a83(0x34c)])[_0x2d3a83(0x300)])==null||(_0x1cd9a9=_0x1cd9a9[_0x2d3a83(0x1aa)](_0x4f1352,_0xcf1939[_0x2d3a83(0x339)],_0x1664f5[_0x2d3a83(0x3b3)][_0x2d3a83(0x418)]))==null?void 0x0:_0x1cd9a9['getDateSystem']()});_0x50c5ad[_0x2d3a83(0x57d)](_0x39925c,{'rangeCache':_0x5739cb,'matrix':_0x5ba4d2,'oldMatrix':_0x113034,'oldRangeCache':_0x58a139}),this['_viewTranslateContextCache']['set'](_0x39925c,_0x2f1de0),_0x2baeae||this[_0x2d3a83(0x325)][_0x2d3a83(0x55f)]({'unitId':_0x496c4f,'subUnitId':_0xddf88a,'pivotTableId':_0x39925c});}[_0x3f2857(0x5ca)](_0x3b0e66,_0x5af6c8,_0x13a177,_0x2b9c45,_0x6a57ce){const _0x4f223d=_0x3f2857;var _0x5c304f,_0x1f22b5;let _0x2278ef=(_0x5c304f=this[_0x4f223d(0x34c)][_0x4f223d(0x300)](_0x3b0e66))==null?void 0x0:_0x5c304f[_0x4f223d(0x567)]()[_0x4f223d(0x5dd)];_0x2b9c45[_0x4f223d(0x583)](_0x2278ef===void 0x0||(_0x1f22b5=_0x1664f5[_0x4f223d(0x643)][_0x2278ef])==null?void 0x0:_0x1f22b5[_0x4f223d(0x5ff)]);let _0x52b67a=this[_0x4f223d(0x44c)][_0x4f223d(0x239)](_0x3b0e66,_0x13a177,_0x6a57ce[_0x4f223d(0x213)],this['getDataFieldManager'](_0x6a57ce[_0x4f223d(0x213)][_0x4f223d(0x339)]),_0x6a57ce[_0x4f223d(0x60a)]);_0x6a57ce['name']===void 0x0&&(_0x6a57ce[_0x4f223d(0x1d6)]=''),_0x6a57ce[_0x4f223d(0x60a)]=_0x52b67a[_0x4f223d(0x60a)],this['_updateModelCache'](_0x3b0e66,_0x5af6c8,_0x13a177,_0x6a57ce),this[_0x4f223d(0x3bf)](_0x13a177,_0x2b9c45);}[_0x3f2857(0x275)](_0x3d2d09,_0x2b1045,_0x84b581){const _0x5213a5=_0x3f2857;let _0x26c4eb=this[_0x5213a5(0x3f5)](_0x3d2d09,_0x2b1045,_0x84b581),_0x3806b7=(_0x26c4eb==null?void 0x0:_0x26c4eb[_0x5213a5(0x213)][_0x5213a5(0x339)])??_0x3d2d09,_0x17cdce=this[_0x5213a5(0x5f3)](_0x3806b7);_0x17cdce[_0x5213a5(0x673)](_0x84b581)[_0x5213a5(0x211)](_0x58187b=>{const _0x1274ed=_0x5213a5;_0x17cdce[_0x1274ed(0x2c2)](_0x58187b);}),this[_0x5213a5(0x203)](_0x3806b7,_0x84b581),this['_deleteModelCache'](_0x3d2d09,_0x2b1045,_0x84b581),this[_0x5213a5(0x626)](_0x84b581),this[_0x5213a5(0x535)]['delete'](_0x84b581),this[_0x5213a5(0x44c)][_0x5213a5(0x5e4)](_0x3d2d09,_0x84b581);}[_0x3f2857(0x272)](_0x179203,_0x58fff6,_0x26f96d,_0x11f5ab){const _0x46ce6e=_0x3f2857;_0x11f5ab['name']===void 0x0&&(_0x11f5ab[_0x46ce6e(0x1d6)]=''),this[_0x46ce6e(0x600)](_0x179203,_0x58fff6,_0x26f96d,_0x11f5ab);}[_0x3f2857(0x4a8)](_0x74755e,_0x1d4417,_0x21cd54,_0x281d32,_0x4d7559){const _0x4a53dd=_0x3f2857;let _0x2fc7f8=this['getPivotTableConfig'](_0x74755e,_0x1d4417,_0x21cd54);if(!_0x2fc7f8)return!0x1;try{let _0x35d154=this[_0x4a53dd(0x44c)]['acquireForReport'](_0x74755e,_0x21cd54,_0x281d32,this[_0x4a53dd(0x5f3)](_0x281d32['unitId']),_0x4d7559);return _0x2fc7f8[_0x4a53dd(0x213)]={..._0x281d32,'range':{..._0x281d32[_0x4a53dd(0x4cf)]}},_0x2fc7f8[_0x4a53dd(0x60a)]=_0x35d154[_0x4a53dd(0x60a)],!0x0;}catch{return!0x1;}}['getPivotTableConfig'](_0x10a8cc,_0x1932c3,_0x187556){const _0x391eb1=_0x3f2857;var _0x31be75;let _0x554c7e=(_0x31be75=this['_model'][_0x391eb1(0x66e)](_0x10a8cc))==null||(_0x31be75=_0x31be75[_0x391eb1(0x66e)](_0x1932c3))==null?void 0x0:_0x31be75[_0x391eb1(0x66e)](_0x187556);if(_0x554c7e)return _0x554c7e;}[_0x3f2857(0x610)](_0x16e6bd,_0x29b772,_0x495cc8){const _0x2b80bc=_0x3f2857;var _0x4e3e02;let _0x49e358=(_0x4e3e02=this[_0x2b80bc(0x4c7)][_0x2b80bc(0x66e)](_0x16e6bd))==null||(_0x4e3e02=_0x4e3e02[_0x2b80bc(0x66e)](_0x29b772))==null?void 0x0:_0x4e3e02[_0x2b80bc(0x66e)](_0x495cc8);if(_0x49e358)return _0x49e358[_0x2b80bc(0x1fa)];}[_0x3f2857(0x3c7)](_0x1f9274){const _0x11c8d5=_0x3f2857;return this[_0x11c8d5(0x62d)][_0x11c8d5(0x66e)](_0x1f9274);}[_0x3f2857(0x42c)](_0x1aa3ec,_0x2e8729){const _0x5bda50=_0x3f2857;return this[_0x5bda50(0x44c)]['getReportPivotCacheId'](_0x1aa3ec,_0x2e8729);}[_0x3f2857(0x2e8)](_0x1a11c8,_0xdbee07){const _0x139fe0=_0x3f2857;return this[_0x139fe0(0x44c)]['getReportHandle'](_0x1a11c8,_0xdbee07);}[_0x3f2857(0x25f)](_0x243e04){const _0x2425f0=_0x3f2857;this[_0x2425f0(0x50d)]();let _0x2f4789=_0x243e04['map'](_0x123697=>{const _0x496138=_0x2425f0;var _0x9e97dc;let _0x53fd83=_0x1664f5['Tools']['deepClone'](_0x123697['config']);_0x53fd83[_0x496138(0x3fb)]=_0x123697['pivot'][_0x496138(0x3fb)]();let _0xe0158a={'targetCellInfo':_0x53fd83['targetCellInfo'],'pivotTableId':_0x123697['pivotTableId'],'view':_0x123697[_0x496138(0x4fa)],'isEmpty':_0x53fd83[_0x496138(0x3fb)],'textInfo':this[_0x496138(0x3d9)](),'direction':this[_0x496138(0x4a5)],'dateSystem':(_0x9e97dc=this[_0x496138(0x34c)][_0x496138(0x300)](_0x123697['unitId']))==null?void 0x0:_0x9e97dc[_0x496138(0x48d)]()},{matrix:_0xbe02ca,rangesCache:_0xb0d4c0}=_0x4ec8fb(_0xe0158a),_0xf2fe74=this[_0x496138(0x2e6)](_0x123697[_0x496138(0x339)],_0x123697['subUnitId'],_0x123697[_0x496138(0x581)]);return{..._0x123697,'config':_0x53fd83,'context':_0xe0158a,'cache':{'matrix':_0xbe02ca,'rangeCache':_0xb0d4c0,'oldMatrix':_0xf2fe74==null?void 0x0:_0xf2fe74[_0x496138(0x3dc)],'oldRangeCache':_0xf2fe74==null?void 0x0:_0xf2fe74['rangeCache']}};}),_0x114aec=!0x1,_0x3180fa=!0x1;return{'commit':()=>{const _0x7caf1=_0x2425f0;if(this[_0x7caf1(0x50d)](),!_0x114aec){_0x114aec=!0x0;for(let _0x6eaee1 of _0x2f4789){var _0x46cd06;let {unitId:_0x32e4fe,subUnitId:_0x104cbf,pivotTableId:_0x4d910b}=_0x6eaee1,_0x30b96f=_0x32e4fe+'-'+_0x104cbf+'-'+_0x4d910b;clearTimeout((_0x46cd06=this[_0x7caf1(0x253)][_0x7caf1(0x66e)](_0x30b96f))==null?void 0x0:_0x46cd06['timer']),this[_0x7caf1(0x253)]['delete'](_0x30b96f),this[_0x7caf1(0x600)](_0x32e4fe,_0x104cbf,_0x4d910b,_0x6eaee1[_0x7caf1(0x385)]),this[_0x7caf1(0x3bf)](_0x4d910b,_0x6eaee1['pivot']),this['_ensureViewDataMap'](_0x32e4fe,_0x104cbf)[_0x7caf1(0x57d)](_0x4d910b,_0x6eaee1['cache']),this[_0x7caf1(0x535)][_0x7caf1(0x57d)](_0x4d910b,_0x6eaee1[_0x7caf1(0x52c)]);}}},'publish':()=>{const _0x1aaf64=_0x2425f0;_0x114aec&&!_0x3180fa&&!this[_0x1aaf64(0x54a)]&&(_0x3180fa=!0x0,_0x2f4789['forEach'](({unitId:_0x5c3b73,subUnitId:_0x2a06a6,pivotTableId:_0x1b4416})=>this['_viewData$'][_0x1aaf64(0x55f)]({'unitId':_0x5c3b73,'subUnitId':_0x2a06a6,'pivotTableId':_0x1b4416})));}};}[_0x3f2857(0x21a)](_0x31ea00,_0x1eb6f0){const _0x12beff=_0x3f2857;let _0x2aa977=this[_0x12beff(0x44c)][_0x12beff(0x675)](_0x31ea00,_0x1eb6f0,!0x0),_0x370143=this['_sheetsPivotCacheService'][_0x12beff(0x41a)](_0x31ea00,_0x1eb6f0),_0x4c6c55=this[_0x12beff(0x5f3)](_0x31ea00)[_0x12beff(0x306)](_0x370143),_0x234a1b=_0x12beff(0x616)+(0x0,_0x1664f5[_0x12beff(0x2a8)])(),_0x31be52=!0x1,_0x96a9e1,_0x46af83={'pivotCacheId':_0x1eb6f0,'changed$':_0x2aa977[_0x12beff(0x319)],'getDataFieldManager':()=>_0x2aa977[_0x12beff(0x5f3)](),'dispose':()=>{const _0x19ce92=_0x12beff;var _0x500879;_0x31be52||(_0x31be52=!0x0,this[_0x19ce92(0x4f9)][_0x19ce92(0x4a7)](_0x46af83),(_0x500879=this[_0x19ce92(0x41e)])==null||_0x500879[_0x19ce92(0x513)](_0x31ea00,_0x370143[_0x19ce92(0x555)],[_0x234a1b]),_0x96a9e1==null||_0x96a9e1[_0x19ce92(0x449)](),_0x4c6c55[_0x19ce92(0x345)](),_0x2aa977[_0x19ce92(0x345)]());}},_0x43fd48=()=>{const _0x37fae3=_0x12beff;var _0x97ce06;return(_0x97ce06=this[_0x37fae3(0x41e)])==null?void 0x0:_0x97ce06[_0x37fae3(0x350)](_0x31ea00,_0x370143[_0x37fae3(0x555)],_0x234a1b,{'unitId':_0x31ea00,'subUnitId':_0x370143['subUnitId'],'dependencyRanges':[{..._0x370143,'sheetId':_0x370143[_0x37fae3(0x555)]}],'getDirtyData':(_0x1f6ed3,_0x27af6f)=>{const _0x2f042b=_0x37fae3;var _0x58fb94,_0x47fa37;return this['refreshSource'](_0x31ea00,_0x1eb6f0,_0x27af6f,{'arrayFormulaCellDataMatrix':(_0x58fb94=_0x27af6f[_0x2f042b(0x53f)])==null||(_0x58fb94=_0x58fb94[_0x31ea00])==null?void 0x0:_0x58fb94[_0x370143[_0x2f042b(0x555)]],'unitDataMatrix':(_0x47fa37=_0x27af6f[_0x2f042b(0x46d)])==null||(_0x47fa37=_0x47fa37[_0x31ea00])==null?void 0x0:_0x47fa37[_0x370143[_0x2f042b(0x555)]]}),{'runtimeCellData':{},'dirtyRanges':{}};}});};return _0x96a9e1=_0x2aa977[_0x12beff(0x319)][_0x12beff(0x362)]({'next':()=>{const _0x2df3ea=_0x12beff;var _0xfed9bf;let _0x1e2520=this[_0x2df3ea(0x44c)][_0x2df3ea(0x41a)](_0x31ea00,_0x1eb6f0);!_0x1e2520||_0x1e2520[_0x2df3ea(0x555)]===_0x370143[_0x2df3ea(0x555)]&&_0x1664f5[_0x2df3ea(0x465)][_0x2df3ea(0x229)](_0x1e2520[_0x2df3ea(0x4cf)],_0x370143[_0x2df3ea(0x4cf)])||((_0xfed9bf=this['_sourceCalculation'])==null||_0xfed9bf['remove'](_0x31ea00,_0x370143['subUnitId'],[_0x234a1b]),_0x370143=_0x1e2520,_0x43fd48());},'complete':()=>_0x46af83[_0x12beff(0x345)]()}),this['_sourceLeases'][_0x12beff(0x373)](_0x46af83),_0x43fd48(),_0x46af83;}[_0x3f2857(0x55e)](_0x177978,_0x53b479,_0x495cb8={},_0x37d448){const _0x42e86c=_0x3f2857;let _0x5ba729=this[_0x42e86c(0x44c)][_0x42e86c(0x41a)](_0x177978,_0x53b479);if(!_0x5ba729)return;let _0x3a7a3d=this[_0x42e86c(0x5f3)](_0x177978);this[_0x42e86c(0x44c)]['refreshOnce'](_0x53b479,_0x495cb8,()=>{const _0x41f3c0=_0x42e86c;let _0x1004bd=[],_0x26ddb7={};return _0x3a7a3d['getRangeKeyList'](_0x5ba729)[_0x41f3c0(0x211)]((_0x2bf3d9,_0x9285ce)=>{const _0x43e3f9=_0x41f3c0;let _0x2d9354=_0x3a7a3d['getDataFieldByRangeKey'](_0x2bf3d9);_0x2d9354&&(_0x1004bd[_0x43e3f9(0x4ef)](_0x2d9354[_0x43e3f9(0x56d)]()),_0x26ddb7[_0x2d9354[_0x43e3f9(0x56d)]()]=_0x2d9354[_0x43e3f9(0x466)](),_0x3a7a3d['refreshDataField'](_0x2d9354[_0x43e3f9(0x56d)](),_0x5ba729,_0x9285ce,_0x37d448));}),{'dirtyFieldIds':_0x1004bd,'previousFieldNames':_0x26ddb7};});}[_0x3f2857(0x2d9)](_0x5506c8){const _0x59cef1=_0x3f2857;var _0x57179c;for(let [_0x5747cd,_0x1c2686]of this[_0x59cef1(0x253)])_0x1c2686[_0x59cef1(0x339)]===_0x5506c8&&(clearTimeout(_0x1c2686[_0x59cef1(0x533)]),this['_queryingMap'][_0x59cef1(0x4a7)](_0x5747cd));this['_runtimeUnits']['delete'](_0x5506c8),this[_0x59cef1(0x44c)]['deleteUnitId'](_0x5506c8),(_0x57179c=this[_0x59cef1(0x4c7)][_0x59cef1(0x66e)](_0x5506c8))==null||_0x57179c[_0x59cef1(0x211)](_0x10e306=>{const _0x252189=_0x59cef1;_0x10e306[_0x252189(0x211)]((_0x7694c3,_0x1f5553)=>{const _0x26fba1=_0x252189;this[_0x26fba1(0x535)][_0x26fba1(0x4a7)](_0x1f5553),this['_pivotTableInstanceCache'][_0x26fba1(0x4a7)](_0x1f5553);});}),this[_0x59cef1(0x4c7)]['delete'](_0x5506c8);let _0x227ac0=this[_0x59cef1(0x59a)][_0x59cef1(0x66e)](_0x5506c8);_0x227ac0&&(_0x227ac0[_0x59cef1(0x345)](),this[_0x59cef1(0x59a)][_0x59cef1(0x4a7)](_0x5506c8)),this[_0x59cef1(0x214)]['delete'](_0x5506c8),this[_0x59cef1(0x506)][_0x59cef1(0x211)](_0x5133eb=>{_0x5133eb['deleteUnitId'](_0x5506c8);});}[_0x3f2857(0x5b0)](_0xee11ea,_0x1f7c1c,_0x301101,_0x272713,_0x2ce2de){const _0x47fed1=_0x3f2857;return this[_0x47fed1(0x5f3)](_0x301101['unitId'])[_0x47fed1(0x5b0)](_0xee11ea,_0x1f7c1c,_0x301101,_0x272713,_0x2ce2de);}[_0x3f2857(0x60c)](_0x380b5f){return this['getDataFieldManager'](_0x380b5f['unitId'])['createCollectionWithDataRange'](_0x380b5f);}[_0x3f2857(0x29a)](_0x3d729a,_0x3a4e12,_0x481aa1){const _0x33893d=_0x3f2857;this[_0x33893d(0x5f3)](_0x481aa1['unitId'])[_0x33893d(0x29a)](_0x3d729a,_0x3a4e12,_0x481aa1);}[_0x3f2857(0x1cc)](_0x49823c,_0x128615){const _0x3f616e=_0x3f2857;this[_0x3f616e(0x5f3)](_0x49823c)[_0x3f616e(0x2c2)](_0x128615);}[_0x3f2857(0x203)](_0x54de21,_0x3f7d8d){const _0x58a96e=_0x3f2857;this['getDataFieldManager'](_0x54de21)[_0x58a96e(0x245)](_0x3f7d8d);}['syncCollectionConfig'](_0x2cb269){const _0x22b8b6=_0x3f2857;this[_0x22b8b6(0x37c)][_0x22b8b6(0x5e1)](_0x46a5d5['id'])&&this[_0x22b8b6(0x37c)][_0x22b8b6(0x4d5)](_0x46a5d5['id'],{'runtimeIds':this[_0x22b8b6(0x377)](),'collectionConfig':{[_0x2cb269]:this[_0x22b8b6(0x5f3)](_0x2cb269)['toJSON']()},'pivotCacheConfigs':{[_0x2cb269]:this[_0x22b8b6(0x44c)][_0x22b8b6(0x2f9)](_0x2cb269)}},{'onlyLocal':!0x0});}[_0x3f2857(0x5ac)](_0x8a4366,_0x1130bc){const _0x472c68=_0x3f2857;var _0x3cf328;return(_0x3cf328=this[_0x472c68(0x4c7)]['get'](_0x8a4366))==null?void 0x0:_0x3cf328['get'](_0x1130bc);}[_0x3f2857(0x3a8)](_0x2cbf5a){const _0x17ff0e=_0x3f2857;for(let [_0x59dc05,_0x2bd989]of this[_0x17ff0e(0x4c7)]['entries']())for(let [_0x5c4833,_0x32135a]of _0x2bd989[_0x17ff0e(0x4e3)]())if(_0x32135a['has'](_0x2cbf5a))return{'unitId':_0x59dc05,'subUnitId':_0x5c4833};return null;}[_0x3f2857(0x379)](_0xc78452,_0x3ad953,_0x408b38,_0x5116bf){const _0x3d03d1=_0x3f2857;let _0x4bc23b=this[_0x3d03d1(0x3cb)](_0xc78452,_0x3ad953);_0x5116bf?_0x4bc23b['set'](_0x408b38,_0x5116bf):_0x4bc23b[_0x3d03d1(0x4a7)](_0x408b38),this['_viewData$'][_0x3d03d1(0x55f)]({'unitId':_0xc78452,'subUnitId':_0x3ad953,'pivotTableId':_0x408b38});}[_0x3f2857(0x345)](){const _0x4b55e5=_0x3f2857;this['_runtimeUnits'][_0x4b55e5(0x318)]();for(let _0x161031 of this[_0x4b55e5(0x4f9)])_0x161031[_0x4b55e5(0x345)]();super['dispose'](),this[_0x4b55e5(0x4c7)]['clear'](),this[_0x4b55e5(0x62d)][_0x4b55e5(0x318)](),this[_0x4b55e5(0x214)][_0x4b55e5(0x318)](),this['_viewTranslateContextCache']['clear'](),this[_0x4b55e5(0x253)][_0x4b55e5(0x211)](({timer:_0x1487d1})=>clearTimeout(_0x1487d1)),this[_0x4b55e5(0x253)][_0x4b55e5(0x318)](),this[_0x4b55e5(0x26e)][_0x4b55e5(0x65b)](),this[_0x4b55e5(0x325)][_0x4b55e5(0x65b)](),this[_0x4b55e5(0x627)][_0x4b55e5(0x65b)](),this[_0x4b55e5(0x59a)]['forEach'](_0xcdf72f=>_0xcdf72f[_0x4b55e5(0x345)]()),this['_dataFieldManagerCollection'][_0x4b55e5(0x318)]();}[_0x3f2857(0x2e6)](_0x47e9d8,_0x2a88ad,_0x2f9783){const _0x5c4c57=_0x3f2857;var _0xf6e5a2;return((_0xf6e5a2=this['_viewData'][_0x5c4c57(0x66e)](_0x47e9d8))==null||(_0xf6e5a2=_0xf6e5a2['get'](_0x2a88ad))==null?void 0x0:_0xf6e5a2['get'](_0x2f9783))||null;}[_0x3f2857(0x205)](_0x13fc76){const _0x3a1715=_0x3f2857;this[_0x3a1715(0x5c4)](_0x13fc76);}[_0x3f2857(0x5c4)](_0x34f7d6){const _0x32a05f=_0x3f2857;let {token:_0x104b9f,unitId:_0x46561a,subUnitId:_0x482eef}=_0x34f7d6,_0x2f3604=_0x46561a+'-'+_0x482eef+'-'+_0x104b9f;if(this[_0x32a05f(0x253)][_0x32a05f(0x66e)](_0x2f3604)){var _0x13ae2a;clearTimeout((_0x13ae2a=this['_queryingMap'][_0x32a05f(0x66e)](_0x2f3604))==null?void 0x0:_0x13ae2a[_0x32a05f(0x533)]);}let _0x15939a=setTimeout(()=>{const _0x594b0d=_0x32a05f;try{this[_0x594b0d(0x3ad)](_0x34f7d6);}catch(_0xfefa56){this['_injector']['get'](_0x1664f5[_0x594b0d(0x3ec)])['error']('[SheetsPivotDataSourceModel]',{'unitId':_0x46561a,'subUnitId':_0x482eef,'pivotTableId':_0x104b9f,'error':_0xfefa56});}finally{this[_0x594b0d(0x253)][_0x594b0d(0x4a7)](_0x2f3604);}},0x1e);this[_0x32a05f(0x253)][_0x32a05f(0x57d)](_0x2f3604,{'unitId':_0x46561a,'timer':_0x15939a});}[_0x3f2857(0x3ad)](_0x530b8a){const _0x457cfb=_0x3f2857;let {unitId:_0x2bdf1a,subUnitId:_0xd8ca52,token:_0x3aac04,type:_0x3ee3d3,pivotConfig:_0x3edf12}=_0x530b8a,_0x54fb42=this[_0x457cfb(0x3c7)](_0x3aac04),_0x43c95a=_0x54fb42==null?void 0x0:_0x54fb42[_0x457cfb(0x2a7)](),_0x193a33=_0x3edf12??this[_0x457cfb(0x3f5)](_0x2bdf1a,_0xd8ca52,_0x3aac04);_0x193a33&&(_0x193a33[_0x457cfb(0x3fb)]=!!(_0x54fb42!=null&&_0x54fb42[_0x457cfb(0x3fb)]())),(_0x43c95a||_0x3ee3d3==='delete')&&this[_0x457cfb(0x2e2)](_0x2bdf1a,_0xd8ca52,_0x3ee3d3,_0x3aac04,_0x43c95a,_0x193a33,this[_0x457cfb(0x5f3)](_0x2bdf1a)[_0x457cfb(0x2f9)](),!0x1);}[_0x3f2857(0x2f9)](_0x2822e8){const _0x408718=_0x3f2857;let _0x4f5672={'dataFieldManagerConfig':{},'pivotTableConfigs':{},'pivotCacheConfigs':{[_0x2822e8]:this[_0x408718(0x44c)][_0x408718(0x2f9)](_0x2822e8)}};if(this[_0x408718(0x5f3)](_0x2822e8)&&(_0x4f5672[_0x408718(0x1a9)][_0x2822e8]=this[_0x408718(0x5f3)](_0x2822e8)[_0x408718(0x2f9)]()),this[_0x408718(0x4c7)][_0x408718(0x66e)](_0x2822e8)){_0x4f5672['pivotTableConfigs'][_0x2822e8]={};let _0x407bd8=this[_0x408718(0x4c7)]['get'](_0x2822e8);_0x407bd8!=null&&_0x407bd8[_0x408718(0x293)]&&[..._0x407bd8[_0x408718(0x58e)]()][_0x408718(0x211)](_0x139150=>{const _0x217cd1=_0x408718;let _0x1f0aa0=_0x407bd8[_0x217cd1(0x66e)](_0x139150);_0x1f0aa0!=null&&_0x1f0aa0[_0x217cd1(0x293)]&&(_0x4f5672[_0x217cd1(0x389)][_0x2822e8][_0x139150]={},[..._0x1f0aa0[_0x217cd1(0x58e)]()][_0x217cd1(0x211)](_0x28bff9=>{const _0x1baca1=_0x217cd1;let _0x2e370d=_0x1f0aa0['get'](_0x28bff9);_0x2e370d&&(_0x4f5672[_0x1baca1(0x389)][_0x2822e8][_0x139150][_0x28bff9]=_0x2e370d);}));});}return _0x4f5672;}[_0x3f2857(0x48c)](_0x3d73af){const _0x4d2652=_0x3f2857;let {dataFieldManagerConfig:_0x4d713c,pivotTableConfigs:_0x27546c,pivotCacheConfigs:_0x55b44a}=_0x3d73af;_0x4d713c&&Object['keys'](_0x4d713c)['forEach'](_0x5e9da9=>{const _0x46df80=_0x5a2c;let _0x2543f0=this[_0x46df80(0x5f3)](_0x5e9da9);_0x2543f0[_0x46df80(0x48c)](_0x4d713c[_0x5e9da9]);let _0x9a55b9=_0x55b44a==null?void 0x0:_0x55b44a[_0x5e9da9];_0x9a55b9&&(this['_sheetsPivotCacheService']['fromJSON'](_0x5e9da9,_0x9a55b9,_0x2543f0),Object[_0x46df80(0x374)](_0x9a55b9)[_0x46df80(0x211)](_0x4a38e8=>{const _0x387375=_0x46df80;_0x4a38e8[_0x387375(0x419)]&&this[_0x387375(0x55e)](_0x5e9da9,_0x4a38e8['pivotCacheId']);}));});let _0x3995f6=[];if(_0x27546c){let {ls:_0x287478,pbk:_0x2d79e1}=this[_0x4d2652(0x32b)]['get'](_0x1664f5[_0x4d2652(0x261)])[_0x4d2652(0x277)](_0xa6ca7c[_0x4d2652(0x1c8)])??{},_0x4f38ef=_0x4ac877(0x1,_0x287478,_0x2d79e1)[_0x4d2652(0x421)];Object[_0x4d2652(0x58e)](_0x27546c)[_0x4d2652(0x211)](_0x22f4aa=>{const _0x561889=_0x4d2652;let _0x2996ef=0x0,_0x2052d2=_0x27546c[_0x22f4aa];Object[_0x561889(0x58e)](_0x2052d2)['forEach'](_0x190612=>{const _0x55fa27=_0x561889;let _0x5d9b4a=_0x2052d2[_0x190612];Object[_0x55fa27(0x58e)](_0x5d9b4a)[_0x55fa27(0x211)](_0x31f01f=>{const _0x49e0eb=_0x55fa27;let _0x121fd0=_0x5d9b4a[_0x31f01f];if(_0x121fd0){var _0x3fac76;if(_0x2996ef>=_0x4f38ef)return;_0x2996ef++;let _0x295019=this['getDataFieldManager'](_0x22f4aa),_0x5deabe=_0x295019['collections'][_0x31f01f],_0x47c0e7=_0x5deabe['getFieldIds'](),_0x477131=0x0,_0x45227b=[];for(let _0x77318f of _0x47c0e7){let _0x15d1e2=_0x5deabe[_0x49e0eb(0x352)](_0x77318f);if((0x0,_0xaf0b54['isBaseGroupField'])(_0x15d1e2)){let _0x482474=_0x15d1e2['getOriginFieldId'](),_0x1cfc85=_0x5deabe[_0x49e0eb(0x352)](_0x482474);_0x1cfc85&&_0x45227b[_0x49e0eb(0x4ef)]([_0x15d1e2,_0x1cfc85]);}else _0x295019[_0x49e0eb(0x4b9)](_0x77318f,_0x121fd0['sourceRangeInfo'],_0x477131),_0x477131++;}_0x45227b[_0x49e0eb(0x211)](([_0x5f4cdf,_0x24df1b])=>{const _0x119cfb=_0x49e0eb;var _0x2ef506;_0x201d1a((_0x2ef506=this[_0x119cfb(0x34c)]['getUnit'](_0x22f4aa,_0x1664f5[_0x119cfb(0x3b3)][_0x119cfb(0x418)]))==null?void 0x0:_0x2ef506[_0x119cfb(0x48d)]()),_0x5f4cdf[_0x119cfb(0x4cd)](_0x24df1b);});let _0x800f0e=new _0xaf0b54[(_0x49e0eb(0x642))](_0x5deabe);_0x800f0e[_0x49e0eb(0x48c)](_0x121fd0['fieldsConfig']),_0x121fd0[_0x49e0eb(0x3fb)]=_0x800f0e[_0x49e0eb(0x3fb)](),this[_0x49e0eb(0x5ca)](_0x22f4aa,_0x190612,_0x31f01f,_0x800f0e,_0x121fd0);let _0x25ac04=_0x800f0e[_0x49e0eb(0x2a7)]();_0x3995f6[_0x49e0eb(0x4ef)]({'unitId':_0x22f4aa,'subUnitId':_0x190612,'pivotTableId':_0x31f01f,'runtimeId':(_0x3fac76=this['_runtimeUnits'][_0x49e0eb(0x66e)](_0x22f4aa))==null?void 0x0:_0x3fac76[_0x49e0eb(0x630)],'view':_0x25ac04[_0x49e0eb(0x2f9)](),'pivotConfig':_0x121fd0,'type':_0x49e0eb(0x373)});let _0x106521=_0x121fd0[_0x49e0eb(0x3fb)],_0x1ebef7={'view':_0x25ac04,'pivotTableId':_0x31f01f,'textInfo':this['getTextInfo'](),'isEmpty':_0x106521,'targetCellInfo':_0x121fd0[_0x49e0eb(0x61d)]};this[_0x49e0eb(0x669)](_0x1ebef7,!0x1);}});}),this[_0x561889(0x44c)]['pruneUnreferenced'](_0x22f4aa);});}_0x4d713c&&Object['keys'](_0x4d713c)[_0x4d2652(0x211)](_0x96e757=>{const _0x2a0caf=_0x4d2652;let _0x1f5ec2=this[_0x2a0caf(0x5f3)](_0x96e757);this[_0x2a0caf(0x627)][_0x2a0caf(0x55f)](_0x1f5ec2['collections']);}),this['_commandService']['executeCommand'](_0x46a5d5['id'],{'batch':_0x3995f6,'runtimeIds':this[_0x4d2652(0x377)](),'collectionConfig':_0x4d713c,'pivotCacheConfigs':Object[_0x4d2652(0x30c)](Object[_0x4d2652(0x58e)](_0x4d713c??{})[_0x4d2652(0x296)](_0xfbab86=>[_0xfbab86,this[_0x4d2652(0x44c)][_0x4d2652(0x2f9)](_0xfbab86)]))},{'onlyLocal':!0x0});}['_initSnapshot'](){const _0x32c477=_0x3f2857;this[_0x32c477(0x58f)](this[_0x32c477(0x2ee)]['registerPluginResource']({'toJson':_0x25ca18=>JSON['stringify'](this['toJSON'](_0x25ca18)),'parseJson':_0x14f7dd=>{const _0x56b8a4=_0x32c477;if(!_0x14f7dd)return{};try{return JSON[_0x56b8a4(0x3b6)](_0x14f7dd);}catch{return{};}},'businesses':[_0x1664f5[_0x32c477(0x3b3)]['UNIVER_SHEET']],'pluginName':_0x783d27,'onLoad':(_0x187b2c,_0x7d33c0)=>{const _0x1ae0e1=_0x32c477;this[_0x1ae0e1(0x48c)](_0x7d33c0);},'onUnLoad':_0x38419c=>{const _0x489268=_0x32c477;this[_0x489268(0x2d9)](_0x38419c);}}));}};_0x360e3c=_0x68e210([_0x8e806c(0x0,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x1664f5[_0x3f2857(0x2b4)])),_0x8e806c(0x1,_0x1664f5['IUniverInstanceService']),_0x8e806c(0x2,(0x0,_0x1664f5['Inject'])(_0x1664f5[_0x3f2857(0x4ec)])),_0x8e806c(0x3,_0x1664f5[_0x3f2857(0x250)]),_0x8e806c(0x4,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x1664f5['IResourceManagerService'])),_0x8e806c(0x5,(0x0,_0x1664f5['Inject'])(_0x4a218b)),_0x8e806c(0x6,(0x0,_0x1664f5[_0x3f2857(0x3f9)])(_0x2aea65[_0x3f2857(0x3c1)]))],_0x360e3c);let _0x32a9d0={0x0:{0x0:{'v':_0x3f2857(0x501),'s':_0x1874e1}},0x2:{0x1:{'v':'','s':_0x1874e1},0x2:{'v':'','s':_0x1874e1},0x3:{'v':_0x3f2857(0x25c),'s':_0x1874e1},0x4:{'v':'','s':_0x1874e1},0x5:{'v':'','s':_0x1874e1}},0x3:{0x0:{'v':'','s':_0x1874e1},0x1:{'v':'','s':_0x305dea},0x2:{'v':'','s':_0x305dea},0x3:{'v':'','s':_0x305dea},0x4:{'v':'','s':_0x305dea},0x5:{'v':'','s':_0x305dea}},0x4:{0x0:{'v':'','s':_0x1874e1},0x1:{'v':'','s':_0x305dea},0x2:{'v':'','s':_0x305dea},0x3:{'v':'','s':_0x305dea},0x4:{'v':'','s':_0x305dea},0x5:{'v':'','s':_0x305dea}},0x5:{0x0:{'v':'','s':_0x1874e1},0x1:{'v':'','s':_0x305dea},0x2:{'v':'','s':_0x305dea},0x3:{'v':'','s':_0x305dea},0x4:{'v':'','s':_0x305dea},0x5:{'v':'','s':_0x305dea}},0x6:{0x0:{'v':'','s':_0x1874e1},0x1:{'v':'','s':_0x305dea},0x2:{'v':'','s':_0x305dea},0x3:{'v':'','s':_0x305dea},0x4:{'v':'','s':_0x305dea},0x5:{'v':'','s':_0x305dea}},0x7:{0x0:{'v':'','s':_0x1874e1},0x1:{'v':'','s':_0x305dea},0x2:{'v':'','s':_0x305dea},0x3:{'v':'','s':_0x305dea},0x4:{'v':'','s':_0x305dea},0x5:{'v':'','s':_0x305dea}},0x8:{0x0:{'v':_0x3f2857(0x4a2),'s':_0x1874e1},0x1:{'v':'','s':_0x305dea},0x2:{'v':'','s':_0x305dea},0x3:{'v':_0x3f2857(0x374),'s':_0x305dea},0x4:{'v':'','s':_0x305dea},0x5:{'v':'','s':_0x305dea}},0x9:{0x0:{'v':'','s':_0x1874e1},0x1:{'v':'','s':_0x305dea},0x2:{'v':'','s':_0x305dea},0x3:{'v':'','s':_0x305dea},0x4:{'v':'','s':_0x305dea},0x5:{'v':'','s':_0x305dea}},0xa:{0x0:{'v':'','s':_0x1874e1},0x1:{'v':'','s':_0x305dea},0x2:{'v':'','s':_0x305dea},0x3:{'v':'','s':_0x305dea},0x4:{'v':'','s':_0x305dea},0x5:{'v':'','s':_0x305dea}},0xb:{0x0:{'v':'','s':_0x1874e1},0x1:{'v':'','s':_0x305dea},0x2:{'v':'','s':_0x305dea},0x3:{'v':'','s':_0x305dea},0x4:{'v':'','s':_0x305dea},0x5:{'v':'','s':_0x305dea}},0xc:{0x0:{'v':'','s':_0x1874e1},0x1:{'v':'','s':_0x305dea},0x2:{'v':'','s':_0x305dea},0x3:{'v':'','s':_0x305dea},0x4:{'v':'','s':_0x305dea},0x5:{'v':'','s':_0x305dea}},0xd:{0x0:{'v':'','s':_0x1874e1},0x1:{'v':'','s':_0x305dea},0x2:{'v':'','s':_0x305dea},0x3:{'v':'','s':_0x305dea},0x4:{'v':'','s':_0x305dea},0x5:{'v':'','s':_0x305dea}}},_0x5a13fa={'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':[]},_0x54df0f=(_0x4484d3,_0x1d541f,_0x3d3b94=_0x3f2857(0x244))=>{const _0x4e6483=_0x3f2857;let _0x3ab8e1=new _0x1664f5[(_0x4e6483(0x40b))](),_0x13673f=new _0x1664f5[(_0x4e6483(0x40b))](_0x32a9d0),{row:_0x4f2860,col:_0x16c818}=_0x1d541f,_0x155d2c={'startColumn':_0x16c818,'endColumn':_0x16c818+0x6-0x1,'direction':_0x3d3b94};_0x13673f[_0x4e6483(0x429)]((_0xb14773,_0x1f503a,_0x467e83)=>{const _0x40805d=_0x4e6483;let _0x244f1f='';_0x467e83['v']==='filter'?_0x244f1f=_0x4484d3[_0x40805d(0x501)]:_0x467e83['v']==='row'?_0x244f1f=_0x4484d3[_0x40805d(0x4a2)]:_0x467e83['v']==='column'?_0x244f1f=_0x4484d3[_0x40805d(0x25c)]:_0x467e83['v']===_0x40805d(0x374)&&(_0x244f1f=_0x4484d3[_0x40805d(0x374)]);let _0x4bdce8=_0x17dc77(_0x155d2c,_0x1f503a+_0x16c818);_0x3ab8e1[_0x40805d(0x404)](_0xb14773+_0x4f2860,_0x4bdce8,{..._0x467e83,'v':_0x244f1f});});let _0x2a29c3=_0x1664f5['Tools'][_0x4e6483(0x62b)](_0x5a13fa);return Object[_0x4e6483(0x58e)](_0x5a13fa)[_0x4e6483(0x211)](_0x288586=>{const _0x16ae99=_0x4e6483;_0x2a29c3[_0x288586]=_0x5a13fa[_0x288586][_0x16ae99(0x296)](_0x1f4e79=>_0x18d82d(_0x155d2c,{..._0x1f4e79,'startRow':_0x1f4e79['startRow']+_0x4f2860,'endRow':_0x1f4e79[_0x16ae99(0x1ac)]+_0x4f2860,'startColumn':_0x1f4e79['startColumn']+_0x16c818,'endColumn':_0x1f4e79[_0x16ae99(0x61a)]+_0x16c818}));}),{'matrixCache':_0x3ab8e1,'rangesCache':_0x2a29c3};};function _0x2cbd66(_0x26bb5f,_0x35f722){const _0x2abbb6=_0x3f2857;let _0x4d884f='',_0x4c187b=this[_0x2abbb6(0x3d9)]();switch(_0x35f722){case _0xaf0b54['PivotSubtotalTypeEnum'][_0x2abbb6(0x1f0)]:_0x4d884f=_0x4c187b[_0x2abbb6(0x1fb)];break;case _0xaf0b54['PivotSubtotalTypeEnum'][_0x2abbb6(0x421)]:_0x4d884f=_0x4c187b['sheets-pivot.countName'];break;case _0xaf0b54['PivotSubtotalTypeEnum'][_0x2abbb6(0x28f)]:_0x4d884f=_0x4c187b[_0x2abbb6(0x348)];break;case _0xaf0b54[_0x2abbb6(0x3aa)]['max']:_0x4d884f=_0x4c187b['sheets-pivot.maxName'];break;case _0xaf0b54[_0x2abbb6(0x3aa)][_0x2abbb6(0x259)]:_0x4d884f=_0x4c187b['sheets-pivot.minName'];break;case _0xaf0b54[_0x2abbb6(0x3aa)][_0x2abbb6(0x34d)]:_0x4d884f=_0x4c187b[_0x2abbb6(0x27c)];break;case _0xaf0b54[_0x2abbb6(0x3aa)][_0x2abbb6(0x46c)]:_0x4d884f=_0x4c187b[_0x2abbb6(0x552)];break;case _0xaf0b54[_0x2abbb6(0x3aa)][_0x2abbb6(0x242)]:_0x4d884f=_0x4c187b['sheets-pivot.stdDevpName'];break;case _0xaf0b54[_0x2abbb6(0x3aa)][_0x2abbb6(0x38c)]:_0x4d884f=_0x4c187b[_0x2abbb6(0x633)];break;case _0xaf0b54['PivotSubtotalTypeEnum'][_0x2abbb6(0x1ce)]:_0x4d884f=_0x4c187b[_0x2abbb6(0x659)];break;case _0xaf0b54[_0x2abbb6(0x3aa)][_0x2abbb6(0x361)]:_0x4d884f=_0x4c187b[_0x2abbb6(0x490)];break;default:return _0x26bb5f;}return _0x23468d(_0x4c187b,_0x2abbb6(0x42a),_0x2abbb6(0x540),_0x4d884f,_0x3c7b63(_0x26bb5f,_0x4d884f));}function _0x536a9d(_0x405671,_0x199454,_0x41810c,_0x22afa0,_0x4574b3){const _0x57c945=_0x3f2857;let _0x31e54e=_0x3c9bed(_0x405671,_0x199454,_0x41810c,_0x4574b3);if(!_0x31e54e)return;let {area:_0x1f9133,info:_0x1a6867,headerInfo:_0x58dbcb,data:_0x19b7eb,tableFieldId:_0x59dd38}=_0x31e54e,_0x581262=_0x59dd38;if(_0x1f9133===_0x57c945(0x1ea)){let _0x57f1c5=_0x19b7eb==null?void 0x0:_0x19b7eb['fi'];_0x57f1c5!==void 0x0&&(_0x581262=_0x22afa0[_0x57c945(0x3e2)](_0x57f1c5));}return{'filterId':_0x581262,'info':_0x1a6867,'data':_0x19b7eb,'headerInfo':_0x58dbcb};}function _0x3c9bed(_0x188a3e,_0xfcd882,_0x3b3cd6,_0x307427){const _0x377efd=_0x3f2857;let _0x5070ac=(0x0,_0x1664f5[_0x377efd(0x515)])(_0x188a3e,_0xfcd882),{rangesInfo:_0x4870c8,areaInfo:_0x979651,headerMap:_0x1166d3,projection:_0x706047}=_0x307427;if(!_0x4870c8||!_0x979651||!_0x1166d3)return;let _0x14b3a6,_0x550cd0=Object[_0x377efd(0x58e)](_0x4870c8)[_0x377efd(0x209)](_0x39e861=>(_0x14b3a6=_0x4870c8[_0x39e861][_0x377efd(0x209)](_0x26d42f=>_0x1664f5['Rectangle'][_0x377efd(0x1f3)](_0x26d42f,_0x5070ac)),!!_0x14b3a6)),_0x5325ea=_0x979651[_0x377efd(0x458)][_0x188a3e],_0x2e9cdb=_0x979651[_0x377efd(0x4f5)][_0xfcd882],_0x18c3c4,_0x29b967;if(_0x550cd0===_0x377efd(0x247))_0x18c3c4=_0x5325ea,_0x29b967=_0x1166d3[_0x377efd(0x332)][_0xfcd882];else{if(_0x550cd0===_0x377efd(0x5c5)&&_0x14b3a6){if(_0x18c3c4=_0x2e9cdb,(_0x3b3cd6==null?void 0x0:_0x3b3cd6['pbt'])===_0xaf0b54['PivotCellStyleTypeEnum']['Collapse']||(_0x3b3cd6==null?void 0x0:_0x3b3cd6['pbt'])===_0xaf0b54[_0x377efd(0x392)]['Expand'])_0x29b967=_0x1166d3[_0x377efd(0x44b)][_0x188a3e];else{let _0x16d7cb=_0x706047?_0x17dc77(_0x706047,_0xfcd882):_0xfcd882,_0x421a9b=_0x706047?Math[_0x377efd(0x259)](_0x17dc77(_0x706047,_0x14b3a6['startColumn']),_0x17dc77(_0x706047,_0x14b3a6[_0x377efd(0x61a)])):_0x14b3a6[_0x377efd(0x5ea)];_0x29b967=_0x1166d3['colHeaderMap'][_0x188a3e+0x1+_0x16d7cb-_0x421a9b];}}else _0x550cd0===_0x377efd(0x481)&&(_0x18c3c4=_0x979651[_0x377efd(0x53a)][_0xfcd882]);}if(!_0x550cd0)return;let _0x372612=(_0x3b3cd6==null?void 0x0:_0x3b3cd6['pbt'])===_0xaf0b54[_0x377efd(0x392)][_0x377efd(0x265)]||(_0x3b3cd6==null?void 0x0:_0x3b3cd6[_0x377efd(0x42b)])===_0xaf0b54[_0x377efd(0x392)][_0x377efd(0x22f)]?(_0x29b967==null?void 0x0:_0x29b967[_0x377efd(0x35d)])??(_0x18c3c4==null?void 0x0:_0x18c3c4[_0x377efd(0x35d)]):(_0x18c3c4==null?void 0x0:_0x18c3c4[_0x377efd(0x35d)])??(_0x29b967==null?void 0x0:_0x29b967[_0x377efd(0x35d)]);return{'area':_0x550cd0,'info':_0x18c3c4,'rowInfo':_0x5325ea,'columnInfo':_0x2e9cdb,'data':_0x3b3cd6,'headerInfo':_0x29b967,'tableFieldId':_0x372612};}function _0x1d0da9(_0x14e039,_0x5f4695){const _0x3435c7=_0x3f2857;var _0x2fd81a,_0x5f135d,_0x2507a0,_0x26f16c;if(_0x5f4695['length']===0x0)return;let _0x324327=_0x344513=>Number[_0x3435c7(0x657)](_0x344513)&&_0x344513>=0x0?_0x5f4695[_0x344513]:void 0x0,_0x368cf2=((_0x2fd81a=_0x14e039[_0x3435c7(0x458)])==null?void 0x0:_0x2fd81a[_0x3435c7(0x432)])??-0x1,_0x514c6e=((_0x5f135d=_0x14e039[_0x3435c7(0x2b3)])==null?void 0x0:_0x5f135d[_0x3435c7(0x432)])??-0x1,_0x27a2d1=Number[_0x3435c7(0x657)](_0x368cf2)&&_0x368cf2>=-0x1&&Number['isInteger'](_0x514c6e)&&_0x514c6e>=-0x1;if(_0x14e039[_0x3435c7(0x590)]==='dataRanges'){if(!_0x14e039[_0x3435c7(0x458)]||!_0x14e039['columnInfo']||!_0x27a2d1)return;let _0x29338e=Math[_0x3435c7(0x27f)](_0x368cf2,_0x514c6e);return _0x29338e===-0x1&&_0x5f4695[_0x3435c7(0x33b)]===0x1?_0x5f4695[0x0]:_0x324327(_0x29338e);}if(_0x14e039['area']!==_0x3435c7(0x247)&&_0x14e039['area']!==_0x3435c7(0x5c5))return;if(_0x14e039['tableFieldId']&&_0x5f4695['includes'](_0x14e039[_0x3435c7(0x35d)]))return _0x14e039[_0x3435c7(0x35d)];if(!((_0x2507a0=_0x14e039[_0x3435c7(0x47c)])!=null&&_0x2507a0['isValue'])&&!((_0x26f16c=_0x14e039[_0x3435c7(0x460)])!=null&&_0x26f16c['isValue'])||!_0x27a2d1)return;let _0x50b463=Math['max'](_0x368cf2,_0x514c6e);return _0x50b463===-0x1&&_0x5f4695[_0x3435c7(0x33b)]===0x1?_0x5f4695[0x0]:_0x324327(_0x50b463);}function _0x52731e(_0x380f0a,_0x23d07e){const _0x58bb76=_0x3f2857;var _0x4e8970,_0x421101;let _0x406d2c=_0x380f0a['tableFieldId'],_0x5646b6,_0x58d964;if(_0x380f0a[_0x58bb76(0x590)]===_0x58bb76(0x247))_0x5646b6=_0xaf0b54['PivotTableFiledAreaEnum'][_0x58bb76(0x3a3)],_0x58d964=_0x23d07e[_0x58bb76(0x1e9)];else{if(_0x380f0a[_0x58bb76(0x590)]===_0x58bb76(0x5c5))_0x5646b6=_0xaf0b54[_0x58bb76(0x59c)][_0x58bb76(0x32c)],_0x58d964=_0x23d07e['columnFields'];else{if(_0x380f0a[_0x58bb76(0x590)]===_0x58bb76(0x481)&&_0x406d2c){let _0x5e34ae=_0x23d07e[_0x58bb76(0x1e9)]['includes'](_0x406d2c);if(_0x5e34ae===_0x23d07e['columnFields']['includes'](_0x406d2c))return;_0x5646b6=_0x5e34ae?_0xaf0b54[_0x58bb76(0x59c)][_0x58bb76(0x3a3)]:_0xaf0b54[_0x58bb76(0x59c)][_0x58bb76(0x32c)],_0x58d964=_0x5e34ae?_0x23d07e[_0x58bb76(0x1e9)]:_0x23d07e[_0x58bb76(0x4f7)];}else return;}}let _0x1c6ebf=_0x380f0a[_0x58bb76(0x47c)];if((_0x1c6ebf==null?void 0x0:_0x1c6ebf[_0x58bb76(0x274)])==='grandTotal'||(_0x1c6ebf==null?void 0x0:_0x1c6ebf[_0x58bb76(0x274)])===_0x58bb76(0x3f8)||_0x1c6ebf!=null&&_0x1c6ebf[_0x58bb76(0x20c)]||(_0x4e8970=_0x380f0a[_0x58bb76(0x460)])!=null&&_0x4e8970[_0x58bb76(0x20c)]||!_0x406d2c||!_0x58d964[_0x58bb76(0x3cd)](_0x406d2c)||!_0x23d07e['dimension'][_0x406d2c])return;let _0x1cce75=_0x23d07e[_0x58bb76(0x485)][_0x58bb76(0x501)](_0x35389c=>!!_0x23d07e[_0x58bb76(0x2d4)][_0x35389c]),_0x17c576=(_0x421101=_0x23d07e[_0x58bb76(0x1bc)])==null||(_0x421101=_0x421101[_0x58bb76(0x209)](_0x2f52b8=>_0x2f52b8[_0x58bb76(0x4d4)]===_0x406d2c))==null?void 0x0:_0x421101[_0x58bb76(0x269)][_0x58bb76(0x260)],_0x3856b5=_0x17c576&&_0x1cce75['includes'](_0x17c576)?_0x17c576:_0x1cce75[_0x58bb76(0x33b)]===0x1?_0x1cce75[0x0]:void 0x0;return{'axis':_0x5646b6,'targetFieldId':_0x406d2c,..._0x3856b5?{'defaultValueFieldId':_0x3856b5}:{}};}function _0x57d2e1(_0x389c6b,_0x2b0c22,_0x16cf39){const _0x46c973=_0x3f2857;let _0xa3a057=_0x389c6b[_0x46c973(0x55a)],_0x1c3cfa=_0xa3a057[_0x46c973(0x2c9)](),_0xecd0a9=new Set();_0x389c6b[_0x46c973(0x1b8)](_0x562871=>{const _0x4e5844=_0x46c973;_0xecd0a9[_0x4e5844(0x373)](_0x562871[_0x4e5844(0x365)]);});let _0x7eeb1a=_0x1c3cfa[_0x46c973(0x296)](_0x13507b=>{const _0x2d69fb=_0x46c973;let _0x293941=_0xa3a057[_0x2d69fb(0x352)](_0x13507b);return{'checked':_0xecd0a9['has'](_0x13507b),'dataFieldId':_0x293941['id'],'id':_0x293941['id'],'name':_0xa3a057[_0x2d69fb(0x3f1)](_0x293941['id']),'type':_0x293941['getFieldDataType'](),'pivotTableId':_0x2b0c22};}),_0xb1d986=[];_0x389c6b[_0x46c973(0x4c6)](_0xaf0b54[_0x46c973(0x59c)]['Row'],_0x10aa5e=>{const _0x1fa619=_0x46c973;_0xb1d986[_0x1fa619(0x4ef)]({'dataFieldId':_0x10aa5e[_0x1fa619(0x365)],'tableFieldId':_0x10aa5e['getId'](),'displayName':_0x10aa5e[_0x1fa619(0x3f1)]()});});let _0x4ea2df=[];_0x389c6b[_0x46c973(0x4c6)](_0xaf0b54[_0x46c973(0x59c)]['Column'],_0x3542d4=>{const _0x53b699=_0x46c973;_0x4ea2df[_0x53b699(0x4ef)]({'dataFieldId':_0x3542d4[_0x53b699(0x365)],'tableFieldId':_0x3542d4['getId'](),'displayName':_0x3542d4['getDisplayName']()});});let _0x1cfa7a=[];if(_0x389c6b[_0x46c973(0x4c6)](_0xaf0b54[_0x46c973(0x59c)][_0x46c973(0x349)],_0x3c6834=>{const _0x35c69a=_0x46c973;_0x1cfa7a[_0x35c69a(0x4ef)]({'dataFieldId':_0x3c6834[_0x35c69a(0x365)],'tableFieldId':_0x3c6834['getId'](),'displayName':_0x3c6834[_0x35c69a(0x3f1)](),'format':_0x3c6834[_0x35c69a(0x252)](),'subTotalType':_0x3c6834[_0x35c69a(0x469)](),'showDataAs':_0x3c6834[_0x35c69a(0x65a)]()});}),_0x1cfa7a[_0x46c973(0x33b)]>0x1){let _0x1c6f9c=_0x389c6b[_0x46c973(0x475)]();(_0x389c6b[_0x46c973(0x1cb)]()?_0x4ea2df:_0xb1d986)[_0x46c973(0x593)](_0x1c6f9c,0x0,{'dataFieldId':'','tableFieldId':_0x46c973(0x1bb),'displayName':_0x46c973(0x329)});}let _0x374ba5=[];return _0x389c6b[_0x46c973(0x4c6)](_0xaf0b54[_0x46c973(0x59c)][_0x46c973(0x397)],_0x5047c2=>{const _0x2d1f1e=_0x46c973;_0x374ba5[_0x2d1f1e(0x4ef)]({'dataFieldId':_0x5047c2[_0x2d1f1e(0x365)],'tableFieldId':_0x5047c2[_0x2d1f1e(0x56d)](),'displayName':_0x5047c2[_0x2d1f1e(0x3f1)]()});}),{'sourceList':_0x7eeb1a,'sourceRange':_0x16cf39[_0x46c973(0x213)],'rowFields':_0xb1d986,'columnFields':_0x4ea2df,'valueFields':_0x1cfa7a,'filterFields':_0x374ba5,'positionInfo':_0x16cf39[_0x46c973(0x61d)]};}function _0x69256b(_0x19e394,_0x3c6d01,_0x237367='',_0x1ce358={}){const _0x4223d8=_0x3f2857;let _0x33a616=_0x19e394[_0x4223d8(0x66e)](_0x1664f5['LocaleService']);for(let _0x34becf in _0x3c6d01)if(Object[_0x4223d8(0x212)]['hasOwnProperty'][_0x4223d8(0x1aa)](_0x3c6d01,_0x34becf)){let _0x15d57c=_0x237367?_0x237367+'.'+_0x34becf:_0x34becf;typeof _0x3c6d01[_0x34becf]==_0x4223d8(0x4be)&&_0x3c6d01[_0x34becf]!==null&&!Array[_0x4223d8(0x3a7)](_0x3c6d01[_0x34becf])?_0x69256b(_0x19e394,_0x3c6d01[_0x34becf],_0x15d57c,_0x1ce358):_0x1ce358[_0x15d57c]=_0x33a616['t'](_0x15d57c);}return _0x1ce358;}let _0x3907d4=_0x1111bd=>{const _0x4e4f02=_0x3f2857;if(!_0x1111bd)return[];let {rowRanges:_0x45eb53,colRanges:_0xef42fc,cornerRanges:_0x17535f,dataRanges:_0x542176,pageRanges:_0x1df3d6}=_0x1111bd,_0x2a1c27=[..._0xef42fc,..._0x45eb53,..._0x542176,..._0x17535f][_0x4e4f02(0x501)](_0x4c0629=>_0x4c0629[_0x4e4f02(0x5bb)]>=0x0&&_0x4c0629[_0x4e4f02(0x5ea)]>=0x0&&_0x4c0629[_0x4e4f02(0x1ac)]>=0x0&&_0x4c0629[_0x4e4f02(0x61a)]>=0x0);if(_0x2a1c27['length']===0x0)return[..._0x1df3d6];let _0x32f823=_0x2a1c27[0x0][_0x4e4f02(0x5bb)],_0x18e466=_0x2a1c27[0x0][_0x4e4f02(0x1ac)],_0x865992=_0x2a1c27[0x0]['startColumn'],_0x34301b=_0x2a1c27[0x0]['endColumn'];for(let _0x383369=0x1;_0x383369<_0x2a1c27[_0x4e4f02(0x33b)];_0x383369++)_0x32f823=Math[_0x4e4f02(0x259)](_0x32f823,_0x2a1c27[_0x383369][_0x4e4f02(0x5bb)]),_0x18e466=Math[_0x4e4f02(0x27f)](_0x18e466,_0x2a1c27[_0x383369]['endRow']),_0x865992=Math['min'](_0x865992,_0x2a1c27[_0x383369][_0x4e4f02(0x5ea)]),_0x34301b=Math[_0x4e4f02(0x27f)](_0x34301b,_0x2a1c27[_0x383369][_0x4e4f02(0x61a)]);return[..._0x1df3d6,{'startRow':_0x32f823,'endRow':_0x18e466,'startColumn':_0x865992,'endColumn':_0x34301b}];};function _0x121a92(_0x5890bb,_0x4844b2){const _0x22894f=_0x3f2857;let _0x3ad6f6=_0x4844b2['params'][_0x22894f(0x4ad)],{pivotTableId:_0x30c0b9,unitId:_0x30777b,subUnitId:_0x3fdf2e}=_0x4844b2;if(!_0x3ad6f6)return;let _0x583a05=_0x5890bb['get'](_0x360e3c),_0xa13d84=_0x583a05[_0x22894f(0x3c7)](_0x30c0b9),_0x58473e=_0x583a05['getPivotTableConfig'](_0x30777b,_0x3fdf2e,_0x30c0b9);if(!_0xa13d84||!_0x58473e)return;let _0x171b9d=_0xa13d84['getIndexesByPathStr'](_0x3ad6f6[_0x22894f(0x2b0)]);if(!(_0x171b9d!=null&&_0x171b9d[_0x22894f(0x33b)]))return;let {unitId:_0x40e924,subUnitId:_0x3ed3f1,range:_0x2e2446}=_0x58473e[_0x22894f(0x213)],_0x386647=0x0;return{'indexes':_0x171b9d,'range':_0x2e2446,'sourceUnitId':_0x40e924,'sourceSubUnitId':_0x3ed3f1,'formatMap':_0xa13d84[_0x22894f(0x55a)][_0x22894f(0x2c9)]()[_0x22894f(0x367)]((_0x4c84a0,_0x1ad47b)=>{const _0x16f142=_0x22894f;var _0x5f0d2a;let _0x5dd905=(_0x5f0d2a=_0xa13d84[_0x16f142(0x5ab)](_0x1ad47b))==null?void 0x0:_0x5f0d2a[_0x16f142(0x1d7)]();return _0x5dd905&&(_0x4c84a0[String(_0x386647)]=_0x5dd905),_0x386647++,_0x4c84a0;},{})};}function _0x1a37e4(_0x433c44,_0x434cbb){const _0x28b4cf=_0x3f2857;if(!_0x433c44||!_0x434cbb)return!0x0;let _0x5ecb63=(0x0,_0xa6ca7c[_0x28b4cf(0x3fa)])(_0x433c44,_0x434cbb)[_0x28b4cf(0x1ca)],_0x3012b5=(0x0,_0xa6ca7c[_0x28b4cf(0x1e3)])(_0x5ecb63,'sf',_0x28f986);return!((_0x5ecb63==null?void 0x0:_0x5ecb63['rt'])===_0xa6ca7c[_0x28b4cf(0x2ea)][_0x28b4cf(0x1d5)]&&!_0x3012b5);}function _0x4ac877(_0x34f6fb,_0x5b2430,_0x50c867){const _0x2ebbde=_0x3f2857;let _0x3e0d41={'count':_0x34f6fb,'timeValid':!0x1};if(!_0x5b2430||!_0x50c867)return _0x3e0d41;let _0x4961f2=(0x0,_0xa6ca7c[_0x2ebbde(0x3fa)])(_0x5b2430,_0x50c867);if(_0x4961f2!=null&&_0x4961f2[_0x2ebbde(0x25b)]){let _0x2c9e01=_0x4961f2[_0x2ebbde(0x1ca)],_0x509faa=(0x0,_0xa6ca7c[_0x2ebbde(0x1e3)])(_0x2c9e01,'sf',_0x28f986);return{'count':(0x0,_0xa6ca7c[_0x2ebbde(0x3a5)])(_0x2c9e01,_0x509faa,_0x2ebbde(0x2ab),_0x34f6fb,_0x34f6fb,0x0),'timeValid':_0x509faa};}return _0x3e0d41;}function _0x4f8f6c(_0x8351af,_0x5c533a,_0x1cfa23,_0x31cd7a){const _0x1aa582=_0x3f2857;let _0x14084d={'subUnitId':_0x1cfa23,'unitId':_0x5c533a,'cellValue':(0x0,_0x366635['generateNullCell'])(_0x31cd7a)},_0x3415b5=(0x0,_0x366635[_0x1aa582(0x3de)])(_0x8351af,_0x14084d),_0xddabb5=!0x1;return new _0x1664f5[(_0x1aa582(0x40b))](_0x3415b5[_0x1aa582(0x5b5)])[_0x1aa582(0x429)]((_0x28ce09,_0x1c6cfd,_0x2d517d)=>{const _0x336fbc=_0x1aa582;if(!_0xddabb5&&_0x2d517d&&(_0x2d517d[_0x336fbc(0x347)]||_0x2d517d['f']||_0x2d517d['p']||_0x2d517d['s']||_0x2d517d['si']||_0x2d517d['t']||_0x2d517d['v']))return _0xddabb5=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x366635['SetRangeValuesMutation']['id'],'params':_0x3415b5},'setRangeValueRedoMutation':{'id':_0x366635[_0x1aa582(0x662)]['id'],'params':_0x14084d},'shouldClear':_0xddabb5};}function _0x3ed4f7(_0x174a75,_0x381174='ltr'){const _0x44d1a9=_0x3f2857;let {row:_0x1a270f,col:_0x201e4e}=_0x174a75,_0x5dcda6=_0x201e4e+0x6-0x1;return[{'startRow':_0x1a270f,'endRow':_0x1a270f,'startColumn':_0x381174===_0x44d1a9(0x39a)?_0x5dcda6:_0x201e4e,'endColumn':_0x381174===_0x44d1a9(0x39a)?_0x5dcda6:_0x201e4e},{'startRow':_0x1a270f+0x2,'endRow':_0x1a270f+0xe-0x1,'startColumn':_0x201e4e,'endColumn':_0x5dcda6}];}function _0x25dca1(_0x2c2853,_0x20b874,_0x2de8af,_0xa8b9d9){const _0x469a3b=_0x3f2857;if(_0x2de8af)return _0x3ed4f7(_0x2c2853,_0xa8b9d9);let {pageView:_0x23a368,cornerView:_0x46a82f,rowView:_0x1f46be,colView:_0x4a796b,dataView:_0x20e8ad}=_0x20b874,_0x1a87d7=_0x4213e6(_0x2c2853,_0x23a368,!0x0),_0x2a8f7f=_0x23a368[_0x469a3b(0x64f)]>=0x0?_0x23a368[_0x469a3b(0x64f)]+0x1:0x0,_0x58acc4=_0x46a82f[_0x469a3b(0x251)],_0x3cb8b=_0x46a82f[_0x469a3b(0x25d)],_0x2b4758=+(_0x1a87d7[_0x469a3b(0x33b)]>0x0),_0x165c1d=_0x4213e6({'row':_0x2c2853['row']+_0x2a8f7f+_0x2b4758,'col':_0x2c2853[_0x469a3b(0x1ad)]},_0x46a82f,!0x1,!0x1),_0x490f28=_0x4213e6({'row':_0x2c2853[_0x469a3b(0x4a2)]+_0x2a8f7f+_0x2b4758+_0x58acc4,'col':_0x2c2853['col']},_0x1f46be,!0x1,!0x0),_0x55a5d2=_0x4213e6({'row':_0x2c2853['row']+_0x2a8f7f+_0x2b4758,'col':_0x2c2853[_0x469a3b(0x1ad)]+_0x3cb8b},_0x4a796b,!0x1,!0x0),_0x39df7c=_0x4213e6({'row':_0x2c2853[_0x469a3b(0x4a2)]+_0x2a8f7f+_0x2b4758+_0x58acc4,'col':_0x2c2853['col']+_0x3cb8b},_0x20e8ad,!0x1,!0x0),_0x309805=_0x1f675e(_0x20b874,_0x2c2853[_0x469a3b(0x1ad)],_0xa8b9d9);return[..._0x1a87d7,..._0x165c1d,..._0x490f28,..._0x55a5d2,..._0x39df7c][_0x469a3b(0x296)](_0x5661e1=>_0x18d82d(_0x309805,_0x5661e1));}function _0x2fa40c(_0x126ac2,_0x413fe9,_0x2cd13f){const _0x314c45=_0x3f2857;let {cornerView:_0x11a1f8,rowView:_0x3b780d,colView:_0x1b6561,pageView:_0x5b9768}=_0x126ac2,{row:_0x4f80b9,col:_0x45a3db}=_0x413fe9;if(_0x2cd13f)return{'rowCount':0xe+_0x4f80b9,'colCount':0x6+_0x45a3db};let _0x32a5f9=_0x5b9768[_0x314c45(0x64f)]>-0x1?_0x5b9768[_0x314c45(0x64f)]+0x1:0x0,_0x5060d5=_0x5b9768['lastCol']>-0x1?_0x5b9768[_0x314c45(0x5d3)]:0x0,_0x14183c=_0x4f80b9+_0x32a5f9+ +!!_0x32a5f9+_0x11a1f8[_0x314c45(0x251)]+_0x3b780d[_0x314c45(0x251)],_0x31f1aa=_0x45a3db+_0x5060d5,_0x4b66df=_0x45a3db+_0x11a1f8[_0x314c45(0x25d)]+_0x1b6561[_0x314c45(0x25d)];return{'rowCount':_0x14183c,'colCount':Math[_0x314c45(0x27f)](_0x31f1aa,_0x4b66df)};}function _0x426b89(_0x3a5399,_0x304f6e,_0x1a7bc8,_0xb8c67b){const _0x25d7b4=_0x3f2857;let {row:_0x507295,col:_0x3fe0b,unitId:_0x54f360,subUnitId:_0x42fe06}=_0x1a7bc8,_0x1ee644=_0x2fa40c(_0x304f6e,{'row':_0x507295,'col':_0x3fe0b},_0xb8c67b),_0x175207=_0x3a5399[_0x25d7b4(0x66e)](_0x1664f5[_0x25d7b4(0x35a)]),_0x38fa28=(0x0,_0x366635[_0x25d7b4(0x4cb)])(_0x175207,{'unitId':_0x54f360,'subUnitId':_0x42fe06}),_0x347b6e=[],_0x28b657=[];if(!_0x38fa28)return{'undos':_0x28b657,'redos':_0x347b6e};let {worksheet:_0x5e53df}=_0x38fa28,_0x7680ee=_0x5e53df[_0x25d7b4(0x66b)](),_0x296f7f=_0x5e53df[_0x25d7b4(0x1af)]();return _0x7680ee<_0x1ee644['rowCount']&&(_0x347b6e[_0x25d7b4(0x4ef)]({'id':_0x366635[_0x25d7b4(0x468)]['id'],'params':{'unitId':_0x54f360,'subUnitId':_0x42fe06,'range':{'startRow':_0x7680ee,'endRow':_0x1ee644[_0x25d7b4(0x251)]-0x1,'startColumn':0x0,'endColumn':_0x296f7f-0x1}}}),_0x28b657[_0x25d7b4(0x4ef)]({'id':_0x366635['RemoveRowMutation']['id'],'params':{'unitId':_0x54f360,'subUnitId':_0x42fe06,'range':{'startRow':_0x7680ee,'endRow':_0x1ee644[_0x25d7b4(0x251)]-0x1,'startColumn':0x0,'endColumn':_0x296f7f-0x1}}})),_0x296f7f<_0x1ee644['colCount']&&(_0x347b6e[_0x25d7b4(0x4ef)]({'id':_0x366635[_0x25d7b4(0x4c4)]['id'],'params':{'unitId':_0x54f360,'subUnitId':_0x42fe06,'range':{'startRow':0x0,'endRow':_0x7680ee-0x1,'startColumn':_0x296f7f,'endColumn':_0x1ee644['colCount']-0x1}}}),_0x28b657[_0x25d7b4(0x4ef)]({'id':_0x366635['RemoveColMutation']['id'],'params':{'unitId':_0x54f360,'subUnitId':_0x42fe06,'range':{'startRow':0x0,'endRow':_0x7680ee-0x1,'startColumn':_0x296f7f,'endColumn':_0x1ee644[_0x25d7b4(0x25d)]-0x1}}})),{'undos':_0x28b657,'redos':_0x347b6e};}function _0x399d56(_0xf29c24){const _0x25e711=_0x3f2857;let _0x10cdc5=0x0;for(let _0x53dce6 of _0xf29c24)_0x59f32b['cjk'][_0x25e711(0x580)](_0x53dce6)?_0x10cdc5+=0x2:_0x10cdc5+=0x1;return _0x10cdc5;}let _0x3b39fd=new Set([_0xaf0b54[_0x3f2857(0x392)]['FilterAll'],_0xaf0b54[_0x3f2857(0x392)][_0x3f2857(0x556)],_0xaf0b54['PivotCellStyleTypeEnum'][_0x3f2857(0x33d)],_0xaf0b54[_0x3f2857(0x392)][_0x3f2857(0x5d4)],_0xaf0b54[_0x3f2857(0x392)]['FilteredSortAsc'],_0xaf0b54[_0x3f2857(0x392)][_0x3f2857(0x4d6)],_0xaf0b54[_0x3f2857(0x392)][_0x3f2857(0x384)],_0xaf0b54[_0x3f2857(0x392)]['FilterNoneSortAsc'],_0xaf0b54['PivotCellStyleTypeEnum']['FilterNoneSortDesc'],_0xaf0b54[_0x3f2857(0x392)][_0x3f2857(0x265)],_0xaf0b54[_0x3f2857(0x392)][_0x3f2857(0x22f)]]);function _0x153023(_0x456552){const _0x332d93=_0x3f2857;if(_0x456552<=0x20)return Array[_0x332d93(0x4de)]({'length':_0x456552},(_0x589279,_0xddb9e7)=>_0xddb9e7);let _0x1a4898=new Set();for(let _0x4a97d3=0x0;_0x4a97d3<0x20;_0x4a97d3++)_0x1a4898[_0x332d93(0x373)](Math[_0x332d93(0x1fc)](_0x4a97d3*(_0x456552-0x1)/0x1f));return Array[_0x332d93(0x4de)](_0x1a4898);}function _0x5af254(_0x417919){const _0x520fc8=_0x3f2857;let _0x37735f=_0x1abdb2(_0x417919);return typeof _0x37735f=='string'||typeof _0x37735f==_0x520fc8(0x221)?String(_0x37735f):void 0x0;}function _0x14e5fb(_0x3c63fc,_0x519d10,_0xb454c,_0x6bfbaa,_0x23ec23){const _0xbe5197=_0x3f2857;_0x519d10[_0xbe5197(0x373)](_0xb454c);let _0x208514=_0x5af254(_0x6bfbaa);if(!_0x208514)return;let _0xbba356=_0x23ec23&&_0x3b39fd[_0xbe5197(0x3b2)](_0x23ec23)?0x10:0x0,_0x22b39b={'text':_0x208514,'buttonOffset':_0xbba356,'score':_0x399d56(_0x208514)*0x8+_0xbba356},_0x5d5515=_0x3c63fc[_0xb454c];_0x5d5515['findIndex'](_0xb233e4=>_0xb233e4[_0xbe5197(0x1ef)]===_0x208514&&_0xb233e4[_0xbe5197(0x1fe)]===_0xbba356)>=0x0||(_0x5d5515['push'](_0x22b39b),_0x5d5515[_0xbe5197(0x554)]((_0x3bed18,_0x2f9390)=>_0x2f9390[_0xbe5197(0x558)]-_0x3bed18[_0xbe5197(0x558)]),_0x5d5515[_0xbe5197(0x33b)]>0x4&&(_0x5d5515[_0xbe5197(0x33b)]=0x4));}function _0x5d7c51(_0x508bec,_0x112755,_0x5309cd){const _0x588bb3=_0x3f2857;let {pageView:_0x5bd5d5,cornerView:_0x4479e0,rowView:_0x40803b}=_0x508bec;Object[_0x588bb3(0x58e)](_0x5bd5d5[_0x588bb3(0x424)])[_0x588bb3(0x211)](_0x501a33=>{const _0x3e769a=_0x588bb3;let _0x232ba7=Number(_0x501a33);Object[_0x3e769a(0x58e)](_0x5bd5d5[_0x3e769a(0x424)][_0x232ba7])[_0x3e769a(0x211)](_0x53875a=>{const _0x38fcd7=_0x3e769a;let _0x262ce4=Number(_0x53875a),_0x2c970f=_0x5bd5d5[_0x38fcd7(0x424)][_0x232ba7][_0x262ce4];_0x14e5fb(_0x5309cd[_0x38fcd7(0x417)],_0x5309cd[_0x38fcd7(0x637)],_0x262ce4,_0x2c970f['v'],_0x2c970f['s']);});});for(let _0x50e833=0x0;_0x50e833<_0x4479e0[_0x588bb3(0x25d)];_0x50e833++){_0x5309cd[_0x588bb3(0x637)]['add'](_0x50e833);for(let _0x54cc01=0x0;_0x54cc01<_0x4479e0['rowCount'];_0x54cc01++){var _0x48cc3b,_0x652494,_0xbc57b6;let _0x45d2e5=(_0x48cc3b=_0x4479e0['data'][_0x54cc01])==null?void 0x0:_0x48cc3b[_0x50e833];if(!_0x45d2e5)continue;let _0x412e21=_0x45d2e5['v'];(_0x652494=_0x40803b['headerMap'][_0x50e833])!=null&&_0x652494[_0x588bb3(0x20c)]&&_0x50e833===_0x4479e0[_0x588bb3(0x25d)]-0x1&&_0x54cc01===_0x4479e0[_0x588bb3(0x251)]-0x1&&(_0x412e21=_0x112755['sheets-pivot.value']),(_0xbc57b6=_0x4479e0[_0x588bb3(0x47c)][_0x50e833])!=null&&_0xbc57b6[_0x588bb3(0x676)]&&(_0x412e21=_0x112755[_0x588bb3(0x2c1)]||_0x588bb3(0x47d)),_0x14e5fb(_0x5309cd[_0x588bb3(0x417)],_0x5309cd['occupiedColumns'],_0x50e833,_0x412e21,_0x45d2e5['s']);}}}function _0x2aa427(_0xbb34,_0x1a0795,_0x486b2e,_0x3dc031){const _0x3f316d=_0x3f2857;let {rowView:_0x5c46fc,formatMap:_0x536784}=_0xbb34,_0x5dfc4f=_0x153023(_0x5c46fc['rowCount']);for(let _0x536cf9=0x0;_0x536cf9<_0x5c46fc[_0x3f316d(0x25d)];_0x536cf9++){var _0x4c1413;_0x486b2e[_0x3f316d(0x637)][_0x3f316d(0x373)](_0x536cf9);let _0x2334cd=_0x536784[(_0x4c1413=_0x5c46fc[_0x3f316d(0x4a9)][_0x536cf9])==null?void 0x0:_0x4c1413['tableFieldId']];_0x5dfc4f['forEach'](_0x9273ff=>{const _0x23d92f=_0x3f316d;var _0x37c9e2;let _0x7a513f=(_0x37c9e2=_0x5c46fc[_0x23d92f(0x424)][_0x9273ff])==null?void 0x0:_0x37c9e2[_0x536cf9];if(!_0x7a513f)return;let _0x1b4437=_0x682171(_0x7a513f,!0x1,_0x2334cd,_0x1a0795,void 0x0,void 0x0,_0x3dc031);_0x14e5fb(_0x486b2e[_0x23d92f(0x417)],_0x486b2e[_0x23d92f(0x637)],_0x536cf9,_0x1b4437,_0x7a513f['s']);});}}function _0x290bca(_0x3fa4e4,_0x14f045,_0x2a9153,_0x2de565){const _0x3cd490=_0x3f2857;let {cornerView:_0x4430ea,colView:_0x472295,formatMap:_0x2e68b5}=_0x3fa4e4,_0x6ab059=_0x153023(_0x472295['rowCount']);for(let _0x509c8f=0x0;_0x509c8f<_0x472295[_0x3cd490(0x25d)];_0x509c8f++){let _0x3a949f=_0x4430ea[_0x3cd490(0x25d)]+_0x509c8f;_0x2a9153[_0x3cd490(0x637)][_0x3cd490(0x373)](_0x3a949f),_0x6ab059[_0x3cd490(0x211)](_0x132d9c=>{const _0x5bae6b=_0x3cd490;var _0x7902f6,_0x5052a2;let _0x16002f=(_0x7902f6=_0x472295['data'][_0x132d9c])==null?void 0x0:_0x7902f6[_0x509c8f];if(!_0x16002f)return;let _0x4bae01=_0x472295['getHeaderMapItem'](_0x132d9c+0x1),_0x5d3ac2=(_0x5052a2=_0x472295[_0x5bae6b(0x4a9)][_0x132d9c])==null?void 0x0:_0x5052a2[_0x5bae6b(0x35d)],_0xe005a5=_0x2e68b5[_0x5d3ac2],_0x29d14d=_0x4bae01!=null&&_0x4bae01['isColumnLabel']?_0x14f045[_0x5bae6b(0x36a)]||'Column\x20Labels':_0x682171(_0x16002f,_0x132d9c===0x0&&(_0x4bae01==null?void 0x0:_0x4bae01['isValue']),_0xe005a5,_0x14f045,_0x14f045[_0x5bae6b(0x43b)],void 0x0,_0x2de565);_0x14e5fb(_0x2a9153[_0x5bae6b(0x417)],_0x2a9153[_0x5bae6b(0x637)],_0x3a949f,_0x29d14d,_0x16002f['s']);});}}function _0x165f87(_0xb3829b,_0x3ee1b9,_0x35aae9,_0x5e012d){const _0x1a5a88=_0x3f2857;let {cornerView:_0xb10957,rowView:_0x33e79f,colView:_0x43e6cb,dataView:_0x2755a1,formatMap:_0xfdc4f4}=_0xb3829b,_0x2bd41e=_0x153023(_0x2755a1[_0x1a5a88(0x251)]);for(let _0x56e830=0x0;_0x56e830<_0x2755a1['colCount'];_0x56e830++){let _0x1ed4da=_0xb10957[_0x1a5a88(0x25d)]+_0x56e830;_0x35aae9['occupiedColumns'][_0x1a5a88(0x373)](_0x1ed4da),_0x2bd41e[_0x1a5a88(0x211)](_0x59b0da=>{const _0x38677d=_0x1a5a88;var _0x1e2437,_0x441dcb,_0x3795b1;let _0x23bb8d=(_0x1e2437=_0x2755a1['data'][_0x59b0da])==null?void 0x0:_0x1e2437[_0x56e830];if(!_0x23bb8d)return;let _0x58d9e0=Math['max'](((_0x441dcb=_0x33e79f[_0x38677d(0x47c)][_0x59b0da])==null?void 0x0:_0x441dcb[_0x38677d(0x432)])??-0x1,((_0x3795b1=_0x43e6cb[_0x38677d(0x47c)][_0x56e830])==null?void 0x0:_0x3795b1[_0x38677d(0x432)])??-0x1),_0x48237c=_0xfdc4f4[_0x3ee1b9[_0x58d9e0<0x0?0x0:_0x58d9e0]],_0x60f50d=_0x48237c&&typeof _0x23bb8d['v']==_0x38677d(0x221)?_0x1664f5[_0x38677d(0x51e)][_0x38677d(0x230)](_0x48237c,_0x23bb8d['v'],{'dateSystem':_0x5e012d}):_0x23bb8d['v'];_0x14e5fb(_0x35aae9['candidates'],_0x35aae9[_0x38677d(0x637)],_0x1ed4da,_0x60f50d,_0x23bb8d['s']);});}}function _0x98b2a6(_0x4bbb8c,_0x25b371,_0x293407,_0x1aa2a8){const _0xaafef7=_0x3f2857;let _0x4941e3={};return _0x4bbb8c[_0xaafef7(0x637)][_0xaafef7(0x293)]===0x0||_0x4bbb8c[_0xaafef7(0x417)][_0xaafef7(0x211)]((_0x35d929,_0xf2064d)=>{const _0x3468a1=_0xaafef7;let _0x7a01f8=_0x17dc77(_0x293407,_0x25b371+_0xf2064d);if(!_0x4bbb8c[_0x3468a1(0x637)][_0x3468a1(0x3b2)](_0xf2064d)){_0x4941e3[_0x7a01f8]=0x10;return;}let _0x22829c=0x28;_0x35d929[_0x3468a1(0x211)](({text:_0xc8b3b5,buttonOffset:_0x2d9a56})=>{const _0x261a0c=_0x3468a1;_0x22829c=Math['max'](_0x22829c,Math[_0x261a0c(0x35b)](_0x1aa2a8(_0xc8b3b5)+0xc+_0x2d9a56));}),_0x4941e3[_0x7a01f8]=Math['min'](_0x22829c,0x190);}),_0x4941e3;}function _0x496433(_0x4d8836,_0x436a87,_0x2141b6,_0x598417,_0x538b6d,_0x363d47=[],_0x52a765=_0x1664f5[_0x3f2857(0x63c)][_0x3f2857(0x217)]){const _0xc4600b=_0x3f2857;let _0x16bf07=_0x1f675e(_0x4d8836,_0x436a87,_0x2141b6),_0x3cac77=_0x16bf07['endColumn']-_0x16bf07[_0xc4600b(0x5ea)]+0x1,_0x3d3cc2={'candidates':Array['from']({'length':_0x3cac77},()=>[]),'occupiedColumns':new Set()};return _0x5d7c51(_0x4d8836,_0x598417,_0x3d3cc2),_0x2aa427(_0x4d8836,_0x598417,_0x3d3cc2,_0x52a765),_0x290bca(_0x4d8836,_0x598417,_0x3d3cc2,_0x52a765),_0x165f87(_0x4d8836,_0x363d47,_0x3d3cc2,_0x52a765),_0x98b2a6(_0x3d3cc2,_0x436a87,_0x16bf07,_0x538b6d);}function _0x186847(_0x2a1674,_0x176088){const _0x23d44c=_0x3f2857;let {rowFields:_0xa078f4,columnFields:_0x10c03c,valueFields:_0xe695d2,filterFields:_0x2b051b,dimension:_0x482994,measure:_0x276771}=_0x176088;for(let _0x941174 of _0xa078f4){let _0x1089fa=_0x482994[_0x941174];_0x1089fa&&_0x2a1674['getDataFieldByDataFieldId'](_0x1089fa[_0x23d44c(0x365)])&&(_0x2a1674['addFieldWithSourceId'](_0x1089fa[_0x23d44c(0x365)],_0xaf0b54['PivotTableFiledAreaEnum'][_0x23d44c(0x3a3)],void 0x0,_0x941174),_0x1089fa['displayName']&&_0x2a1674['renameField'](_0x1089fa['id'],_0x1089fa[_0x23d44c(0x36d)]),_0x1089fa[_0x23d44c(0x388)]&&_0x2a1674[_0x23d44c(0x5f7)](_0x1089fa['id'],_0x1089fa['sortInfo']),_0x1089fa[_0x23d44c(0x269)]&&_0x2a1674['setLabelFilterInfo'](_0x1089fa['id'],_0x1089fa['filterInfo']));}for(let _0x278548 of _0x10c03c){let _0x375946=_0x482994[_0x278548];_0x375946&&_0x2a1674[_0x23d44c(0x5ab)](_0x375946[_0x23d44c(0x365)])&&(_0x2a1674[_0x23d44c(0x26a)](_0x375946[_0x23d44c(0x365)],_0xaf0b54['PivotTableFiledAreaEnum']['Column'],void 0x0,_0x278548),_0x375946[_0x23d44c(0x388)]&&_0x2a1674[_0x23d44c(0x5f7)](_0x375946['id'],_0x375946['sortInfo']),_0x375946[_0x23d44c(0x269)]&&_0x2a1674[_0x23d44c(0x5dc)](_0x375946['id'],_0x375946[_0x23d44c(0x269)]),_0x375946[_0x23d44c(0x36d)]&&_0x2a1674[_0x23d44c(0x380)](_0x375946['id'],_0x375946[_0x23d44c(0x36d)]));}for(let _0x5164d4 of _0x2b051b){let _0xeca21b=_0x482994[_0x5164d4];_0xeca21b&&_0x2a1674[_0x23d44c(0x5ab)](_0xeca21b[_0x23d44c(0x365)])&&(_0x2a1674[_0x23d44c(0x26a)](_0xeca21b[_0x23d44c(0x365)],_0xaf0b54['PivotTableFiledAreaEnum']['Filter'],void 0x0,_0x5164d4),_0xeca21b['sortInfo']&&_0x2a1674[_0x23d44c(0x5f7)](_0xeca21b['id'],_0xeca21b[_0x23d44c(0x388)]),_0xeca21b[_0x23d44c(0x269)]&&_0x2a1674[_0x23d44c(0x5dc)](_0xeca21b['id'],_0xeca21b['filterInfo']),_0xeca21b[_0x23d44c(0x36d)]&&_0x2a1674[_0x23d44c(0x380)](_0xeca21b['id'],_0xeca21b['displayName']));}for(let _0xc8a8fa of _0xe695d2){let _0x4cb491=_0x276771[_0xc8a8fa];_0x4cb491&&_0x2a1674[_0x23d44c(0x5ab)](_0x4cb491[_0x23d44c(0x365)])&&(_0x2a1674[_0x23d44c(0x26a)](_0x4cb491[_0x23d44c(0x365)],_0xaf0b54[_0x23d44c(0x59c)]['Value'],void 0x0,_0xc8a8fa),_0x4cb491[_0x23d44c(0x27a)]!==void 0x0&&_0x2a1674[_0x23d44c(0x208)](_0xc8a8fa,_0x4cb491[_0x23d44c(0x27a)]),_0x4cb491[_0x23d44c(0x230)]&&_0x2a1674['setFieldFormat'](_0xc8a8fa,_0x4cb491[_0x23d44c(0x230)]),_0x4cb491[_0x23d44c(0x36d)]&&_0x2a1674[_0x23d44c(0x380)](_0x4cb491['id'],_0x4cb491[_0x23d44c(0x36d)]));}let _0x424834=_0x176088[_0x23d44c(0x1bc)];for(let {fieldId:_0x457770,filterInfo:_0x2c0a98}of _0x424834)_0x2a1674[_0x23d44c(0x27b)](_0x457770,_0x2c0a98);}function _0x493a72(_0x47b328,_0x493c41){const _0x2b7e2a=_0x3f2857;let _0x4176d9=[];_0x493c41===_0xaf0b54['PivotTableFiledAreaEnum'][_0x2b7e2a(0x3a3)]&&_0x47b328[_0x2b7e2a(0x4c6)](_0xaf0b54[_0x2b7e2a(0x59c)][_0x2b7e2a(0x3a3)],_0x18082c=>{const _0xb36d92=_0x2b7e2a;_0x4176d9[_0xb36d92(0x4ef)](_0x18082c['getId']());}),_0x493c41===_0xaf0b54[_0x2b7e2a(0x59c)]['Column']&&_0x47b328[_0x2b7e2a(0x4c6)](_0xaf0b54[_0x2b7e2a(0x59c)][_0x2b7e2a(0x32c)],_0x437013=>{const _0x235f7e=_0x2b7e2a;_0x4176d9[_0x235f7e(0x4ef)](_0x437013[_0x235f7e(0x56d)]());}),_0x493c41===_0xaf0b54[_0x2b7e2a(0x59c)][_0x2b7e2a(0x397)]&&_0x47b328['iterateFieldByArea'](_0xaf0b54[_0x2b7e2a(0x59c)][_0x2b7e2a(0x397)],_0x293327=>{const _0xc03eac=_0x2b7e2a;_0x4176d9[_0xc03eac(0x4ef)](_0x293327[_0xc03eac(0x56d)]());}),_0x493c41===_0xaf0b54['PivotTableFiledAreaEnum'][_0x2b7e2a(0x349)]&&_0x47b328[_0x2b7e2a(0x4c6)](_0xaf0b54['PivotTableFiledAreaEnum'][_0x2b7e2a(0x349)],_0x4d99e4=>{const _0x421860=_0x2b7e2a;_0x4176d9[_0x421860(0x4ef)](_0x4d99e4['getId']());}),_0x493c41===void 0x0&&_0x47b328[_0x2b7e2a(0x1b8)](_0x1e50a6=>{const _0x1707fa=_0x2b7e2a;_0x4176d9[_0x1707fa(0x4ef)](_0x1e50a6[_0x1707fa(0x56d)]());});let _0x438fa5=_0x4176d9[_0x2b7e2a(0x33b)];for(let _0x17a662=_0x438fa5-0x1;_0x17a662>=0x0;_0x17a662--)_0x47b328[_0x2b7e2a(0x5b8)](_0x4176d9[_0x17a662]);let _0x453926=_0x47b328[_0x2b7e2a(0x564)]();for(let _0x78764b in _0x453926)_0x47b328[_0x2b7e2a(0x488)](_0x78764b);}function _0xb38740(_0x13d084,_0x3f070d){const _0x36110f=_0x3f2857;let _0x44e66b=_0xaf0b54[_0x36110f(0x632)]['dateSystem']===_0x1664f5[_0x36110f(0x63c)][_0x36110f(0x217)],_0x34e5f6=new Date((0x0,_0xaf0b54[_0x36110f(0x396)])(_0x3f070d,_0x44e66b)),_0x40ada6=new Date((0x0,_0xaf0b54[_0x36110f(0x396)])(_0x13d084,_0x44e66b)),_0x39c8e4=_0x34e5f6[_0x36110f(0x596)]()===_0x40ada6[_0x36110f(0x596)](),_0x35bad8=_0x39c8e4&&_0x34e5f6[_0x36110f(0x511)]()===_0x40ada6[_0x36110f(0x511)](),_0x514784=_0x35bad8&&_0x34e5f6['getDate']()===_0x40ada6[_0x36110f(0x2ff)]();return _0x39c8e4&&_0x35bad8&&!_0x514784?_0xaf0b54[_0x36110f(0x5d2)]['YearMonthDate']:_0x39c8e4&&!_0x35bad8?_0xaf0b54[_0x36110f(0x5d2)][_0x36110f(0x60e)]:_0xaf0b54[_0x36110f(0x5d2)][_0x36110f(0x324)];}function _0x201d1a(_0x463c97){const _0x481450=_0x3f2857;_0x463c97!=null&&(0x0,_0xaf0b54[_0x481450(0x2f0)])(_0x463c97===_0x1664f5[_0x481450(0x63c)]['Date1904']?_0x1664f5[_0x481450(0x63c)][_0x481450(0x451)]:_0x1664f5[_0x481450(0x63c)][_0x481450(0x217)]);}function _0x2afa6e(_0x542526,_0x3fe6fd){const _0x1cb8c3=_0x3f2857;let _0xca41e2=_0x542526[_0x1cb8c3(0x66e)](_0x1664f5[_0x1cb8c3(0x261)])[_0x1cb8c3(0x277)](_0x1cb8c3(0x36b))?_0x542526[_0x1cb8c3(0x66e)](_0x12ae9f)[_0x1cb8c3(0x3d9)]():_0x542526[_0x1cb8c3(0x66e)](_0x360e3c)[_0x1cb8c3(0x3d9)](),_0x3a024e='';switch(_0x3fe6fd){case _0xaf0b54['PivotExcelDateGroupUnit'][_0x1cb8c3(0x63b)]:_0x3a024e=_0xca41e2[_0x1cb8c3(0x5af)];break;case _0xaf0b54['PivotExcelDateGroupUnit'][_0x1cb8c3(0x2e1)]:_0x3a024e=_0xca41e2[_0x1cb8c3(0x5c1)];break;case _0xaf0b54[_0x1cb8c3(0x5d2)][_0x1cb8c3(0x31c)]:_0x3a024e=_0xca41e2[_0x1cb8c3(0x24b)];break;case _0xaf0b54[_0x1cb8c3(0x5d2)][_0x1cb8c3(0x60e)]:_0x3a024e=_0xca41e2[_0x1cb8c3(0x2b7)];break;case _0xaf0b54['PivotDateGroupFieldDateTypeEnum'][_0x1cb8c3(0x324)]:_0x3a024e=_0xca41e2[_0x1cb8c3(0x3bc)];break;case _0xaf0b54['PivotDateGroupFieldDateTypeEnum'][_0x1cb8c3(0x24c)]:_0x3a024e=_0xca41e2[_0x1cb8c3(0x415)];break;case _0xaf0b54[_0x1cb8c3(0x5d2)]['Quarter']:_0x3a024e=_0xca41e2[_0x1cb8c3(0x47a)];break;case _0xaf0b54[_0x1cb8c3(0x5d2)]['Date']:_0x3a024e=_0xca41e2[_0x1cb8c3(0x2a0)];break;case _0xaf0b54[_0x1cb8c3(0x5d2)][_0x1cb8c3(0x431)]:_0x3a024e=_0xca41e2[_0x1cb8c3(0x1ae)];break;case _0xaf0b54[_0x1cb8c3(0x5d2)][_0x1cb8c3(0x291)]:_0x3a024e=_0xca41e2[_0x1cb8c3(0x4ea)];break;case _0xaf0b54['PivotDateGroupFieldDateTypeEnum'][_0x1cb8c3(0x5a1)]:_0x3a024e=_0xca41e2[_0x1cb8c3(0x201)];break;case _0xaf0b54[_0x1cb8c3(0x5d2)][_0x1cb8c3(0x4c3)]:_0x3a024e=_0xca41e2[_0x1cb8c3(0x3c5)];break;case _0xaf0b54['PivotDateGroupFieldDateTypeEnum'][_0x1cb8c3(0x5fb)]:_0x3a024e=_0xca41e2[_0x1cb8c3(0x3d7)];break;default:_0x3a024e='';}return _0x3a024e;}let _0xee2d82=class extends _0x1664f5['Disposable']{constructor(_0x4f42fa,_0x5c9ddd,_0x26621e,_0x515d05,_0x5903f8){const _0x1a7b97=_0x3f2857;super(),this['_localeService']=_0x4f42fa,this[_0x1a7b97(0x32b)]=_0x5c9ddd,this[_0x1a7b97(0x64b)]=_0x26621e,this[_0x1a7b97(0x34c)]=_0x515d05,this['_exclusiveRangeService']=_0x5903f8,_0x108027(this,'_pivotRenderInfoCache',new Map()),_0x108027(this,_0x1a7b97(0x312),new Map()),_0x108027(this,_0x1a7b97(0x63f),new Map()),_0x108027(this,_0x1a7b97(0x369),new _0x551644[(_0x1a7b97(0x613))]()),_0x108027(this,'markDirty$',this[_0x1a7b97(0x369)]['asObservable']()),_0x108027(this,_0x1a7b97(0x299),new _0x551644['Subject']()),_0x108027(this,_0x1a7b97(0x231),this[_0x1a7b97(0x299)]['asObservable']()),_0x108027(this,'_textInfo',void 0x0),this[_0x1a7b97(0x67a)](),this[_0x1a7b97(0x2d3)](),this[_0x1a7b97(0x5bc)]();}[_0x3f2857(0x5bc)](){const _0x98d9a0=_0x3f2857;this[_0x98d9a0(0x58f)]((0x0,_0x551644[_0x98d9a0(0x457)])([this[_0x98d9a0(0x4f2)]['currentLocale$'],this[_0x98d9a0(0x4f2)]['direction$'][_0x98d9a0(0x3ed)]((0x0,_0x551644['distinctUntilChanged'])())])['pipe']((0x0,_0x551644[_0x98d9a0(0x629)])(0x1))[_0x98d9a0(0x362)](()=>{const _0x501c10=_0x98d9a0;this[_0x501c10(0x651)]=_0x69256b(this[_0x501c10(0x32b)],_0x3f432b,'',{});let _0x46025e=[];this[_0x501c10(0x48f)][_0x501c10(0x211)]((_0x56014f,_0x26ac9f)=>{_0x56014f['forEach']((_0x506cea,_0x256a2f)=>{const _0x15ba4e=_0x5a2c;_0x506cea[_0x15ba4e(0x211)]((_0x4555bb,_0x46b155)=>{const _0xa37f63=_0x15ba4e;var _0x94ad2;let _0x24d5db=(_0x94ad2=this['_pivotViewCache'][_0xa37f63(0x66e)](_0x26ac9f))==null||(_0x94ad2=_0x94ad2[_0xa37f63(0x66e)](_0x256a2f))==null?void 0x0:_0x94ad2[_0xa37f63(0x66e)](_0x46b155);_0x24d5db&&_0x46025e[_0xa37f63(0x4ef)]({'unitId':_0x26ac9f,'subUnitId':_0x256a2f,'pivotTableId':_0x46b155,'type':_0xa37f63(0x57d),'view':_0x24d5db});});});});let _0x2aebf4=new Set(),_0x88dd68=[];_0x46025e[_0x501c10(0x211)](_0x364358=>{const _0x3dd5ba=_0x501c10;this[_0x3dd5ba(0x48a)](_0x364358);let _0x30ba4b=this[_0x3dd5ba(0x422)](_0x364358,!0x1);if(_0x30ba4b){var _0x4cd3da;_0x88dd68[_0x3dd5ba(0x4ef)]({'unitId':_0x364358[_0x3dd5ba(0x339)],'subUnitId':_0x364358['subUnitId'],'pivotTableId':_0x364358[_0x3dd5ba(0x581)],'type':_0x364358['type'],'valueMatrix':_0x30ba4b[_0x3dd5ba(0x3dc)],'rangesCache':_0x30ba4b[_0x3dd5ba(0x47e)],'isEmpty':(_0x4cd3da=this[_0x3dd5ba(0x64b)]['getPivotTableConfig'](_0x364358[_0x3dd5ba(0x339)],_0x364358['subUnitId'],_0x364358['pivotTableId']))==null?void 0x0:_0x4cd3da['isEmpty']});}_0x2aebf4[_0x3dd5ba(0x373)](_0x364358[_0x3dd5ba(0x339)]+'\x0a'+_0x364358[_0x3dd5ba(0x555)]);}),_0x88dd68[_0x501c10(0x211)](_0x13e64d=>this[_0x501c10(0x299)][_0x501c10(0x55f)](_0x13e64d)),_0x2aebf4[_0x501c10(0x211)](_0x5ba1ec=>{const _0x26e2c9=_0x501c10;let [_0x35612a,_0x27e03b]=_0x5ba1ec['split']('\x0a');this[_0x26e2c9(0x4c8)](_0x35612a,_0x27e03b);});}));}['_initUnitDisposed'](){const _0x17f139=_0x3f2857;this[_0x17f139(0x58f)](this[_0x17f139(0x34c)][_0x17f139(0x514)](_0x1664f5[_0x17f139(0x3b3)][_0x17f139(0x418)])['subscribe'](_0xe4873=>{const _0x5b0bbf=_0x17f139;this[_0x5b0bbf(0x2d9)](_0xe4873[_0x5b0bbf(0x4bd)]());}));}[_0x3f2857(0x67a)](){const _0x33e15c=_0x3f2857;this[_0x33e15c(0x651)]=_0x69256b(this[_0x33e15c(0x32b)],_0x3f432b,'',{});}[_0x3f2857(0x422)](_0x288c24,_0x361c24=!0x0){const _0x59c5f4=_0x3f2857;let {view:_0x2f711a,unitId:_0x5c5e9e,subUnitId:_0xad0ea4,pivotTableId:_0x5ce8e2,type:_0x481fbb}=_0x288c24,_0x14c8b3=this['_sheetsPivotTableConfigModel'][_0x59c5f4(0x3f5)](_0x5c5e9e,_0xad0ea4,_0x5ce8e2);if(!_0x2f711a||!_0x14c8b3||_0x481fbb==='delete')return;let {pageView:_0x1b6f55,cornerView:_0x51654d,rowView:_0xab618b,colView:_0x1d33a2,dataView:_0x53eaec}=_0x2f711a,_0xf54a4=_0x14c8b3[_0x59c5f4(0x61d)],_0x1f4081=_0x14c8b3[_0x59c5f4(0x3fb)],_0x3fa425=this[_0x59c5f4(0x480)](_0x5c5e9e,_0xad0ea4),_0x43d108=this[_0x59c5f4(0x1f5)](_0x5c5e9e,_0xad0ea4,_0x5ce8e2),_0xdadd45=this['_localeService']['getDirection']();if(this['_ensurePivotViewCache'](_0x5c5e9e,_0xad0ea4)[_0x59c5f4(0x57d)](_0x5ce8e2,_0x2f711a),_0x1f4081)return this['_updateRenderEmptyCache'](_0x288c24,_0x3fa425,_0xf54a4,_0x43d108,_0x361c24);{var _0x44b993;let _0x5de226=_0x1f675e(_0x2f711a,_0xf54a4[_0x59c5f4(0x1ad)],_0xdadd45),_0x2eb140=_0x49a8a2=>_0x49a8a2['map'](_0x1ae5a6=>_0x18d82d(_0x5de226,_0x1ae5a6)),_0x7660eb=_0x4213e6(_0xf54a4,_0x1b6f55,!0x0),_0x22e6b1=_0x1b6f55[_0x59c5f4(0x64f)]>=0x0?_0x1b6f55[_0x59c5f4(0x64f)]+0x1:0x0,_0x52ab41=_0x51654d[_0x59c5f4(0x66b)](),_0x39034b=_0x51654d[_0x59c5f4(0x1db)](),_0x20e69d=+(_0x7660eb[_0x59c5f4(0x33b)]>0x0),_0xdb4782=_0x4213e6({'row':_0xf54a4['row']+_0x22e6b1+_0x20e69d,'col':_0xf54a4['col']},_0x51654d,!0x1,!0x1),_0x5d2d69=_0x4213e6({'row':_0xf54a4[_0x59c5f4(0x4a2)]+_0x22e6b1+_0x20e69d+_0x52ab41,'col':_0xf54a4[_0x59c5f4(0x1ad)]},_0xab618b,!0x1,!0x0),_0x42ec20=_0x4213e6({'row':_0xf54a4['row']+_0x22e6b1+_0x20e69d,'col':_0xf54a4['col']+_0x39034b},_0x1d33a2,!0x1,!0x0),_0x9dc97b=_0x4213e6({'row':_0xf54a4[_0x59c5f4(0x4a2)]+_0x22e6b1+_0x20e69d+_0x52ab41,'col':_0xf54a4['col']+_0x39034b},_0x53eaec,!0x1,!0x1);_0x43d108[_0x59c5f4(0x29c)]={'rowRanges':_0x2eb140(_0x5d2d69),'colRanges':_0x2eb140(_0x42ec20),'cornerRanges':_0x2eb140(_0xdb4782),'dataRanges':_0x2eb140(_0x9dc97b),'pageRanges':_0x2eb140(_0x7660eb)},_0x43d108[_0x59c5f4(0x5ba)]=_0x5de226;let _0x59b898=(_0x44b993=this['_univerInstanceService'][_0x59c5f4(0x300)](_0x5c5e9e,_0x1664f5[_0x59c5f4(0x3b3)][_0x59c5f4(0x418)]))==null?void 0x0:_0x44b993[_0x59c5f4(0x48d)](),{valueMatrix:_0x255eb9,rowInfo:_0x112f0e,colInfo:_0x286b10,cornerInfo:_0x1acc9d,rowHeaderMap:_0x59b3a8,colHeaderMap:_0x2806f8}=_0x141f3c(this[_0x59c5f4(0x32b)],_0x2f711a,_0x14c8b3,this[_0x59c5f4(0x651)],_0xdadd45,_0x59b898);return _0x43d108[_0x59c5f4(0x57b)]={'rowInfo':_0x112f0e,'colInfo':_0x286b10,'cornerInfo':_0x1acc9d},_0x43d108[_0x59c5f4(0x4a9)]={'rowHeaderMap':_0x59b3a8,'colHeaderMap':_0x2806f8},_0x255eb9[_0x59c5f4(0x211)]((_0x28cf83,_0x3cebdc)=>{Object['keys'](_0x3cebdc)['forEach'](_0x34894d=>{const _0x5d1c66=_0x5a2c;let _0x3bae40=+_0x34894d,_0x201916=_0x255eb9[_0x5d1c66(0x57c)](_0x28cf83,_0x3bae40);_0x3fa425['setValue'](_0x28cf83,_0x3bae40,_0x201916);});}),_0x361c24&&this[_0x59c5f4(0x299)]['next']({'unitId':_0x5c5e9e,'subUnitId':_0xad0ea4,'valueMatrix':_0x3fa425,'rangesCache':_0x43d108[_0x59c5f4(0x29c)],'pivotTableId':_0x5ce8e2,'type':_0x288c24['type']}),this[_0x59c5f4(0x64b)]['updateViewInfo'](_0x5c5e9e,_0xad0ea4,_0x5ce8e2,_0x3fa425,_0x43d108[_0x59c5f4(0x29c)]),this['_exclusiveRangeService'][_0x59c5f4(0x520)](_0x5c5e9e,_0xad0ea4,_0x3a2976,this[_0x59c5f4(0x408)](_0x43d108['rangesInfo'],_0x5ce8e2)),{'rangeCache':_0x43d108['rangesInfo'],'matrix':_0x3fa425};}}[_0x3f2857(0x430)](_0x11844c,_0x13db6b,_0x7df94,_0x547803,_0x448d0b){const _0x4151ac=_0x3f2857;let {unitId:_0x3f4211,subUnitId:_0x5684c0,pivotTableId:_0x272fcf}=_0x11844c,_0x15eafd={'filter':this[_0x4151ac(0x4f2)]['t'](_0x4151ac(0x278)),'row':this[_0x4151ac(0x4f2)]['t'](_0x4151ac(0x4b0)),'column':this[_0x4151ac(0x4f2)]['t']('sheets-pivot.emptyPivot.column'),'values':this[_0x4151ac(0x4f2)]['t']('sheets-pivot.emptyPivot.values')},_0x39b350=this[_0x4151ac(0x4f2)][_0x4151ac(0x2af)](),{matrixCache:_0x1fc624,rangesCache:_0x34ca81}=_0x54df0f(_0x15eafd,_0x7df94,_0x39b350);return _0x1fc624[_0x4151ac(0x429)]((_0x379c25,_0x211275,_0x148cbc)=>{const _0xaa2831=_0x4151ac;_0x13db6b[_0xaa2831(0x404)](_0x379c25,_0x211275,_0x148cbc);}),_0x547803[_0x4151ac(0x29c)]=_0x34ca81,_0x547803[_0x4151ac(0x5ba)]={'startColumn':_0x7df94[_0x4151ac(0x1ad)],'endColumn':_0x7df94[_0x4151ac(0x1ad)]+0x6-0x1,'direction':_0x39b350},_0x448d0b&&this[_0x4151ac(0x299)][_0x4151ac(0x55f)]({'unitId':_0x3f4211,'subUnitId':_0x5684c0,'valueMatrix':_0x13db6b,'rangesCache':_0x34ca81,'pivotTableId':_0x272fcf,'type':_0x11844c[_0x4151ac(0x4ee)],'isEmpty':!0x0}),this[_0x4151ac(0x64b)][_0x4151ac(0x398)](_0x3f4211,_0x5684c0,_0x272fcf,_0x13db6b,_0x34ca81),this[_0x4151ac(0x20d)][_0x4151ac(0x520)](_0x3f4211,_0x5684c0,_0x3a2976,this[_0x4151ac(0x408)](_0x34ca81,_0x272fcf)),{'rangeCache':_0x547803[_0x4151ac(0x29c)],'matrix':_0x13db6b};}['_createExclusiveRange'](_0x42139a,_0x423439){let _0x3d87a4=[],_0x292dbd=_0x3907d4(_0x42139a);for(let _0x2412c5 of _0x292dbd)_0x3d87a4['push']({'groupId':_0x423439,'range':_0x2412c5});return _0x3d87a4;}['clearRenderCache'](_0x36ca5f){const _0x337774=_0x3f2857;this[_0x337774(0x48a)](_0x36ca5f);let {pivotTableId:_0x2bb09d,unitId:_0x270852,subUnitId:_0x1a3e1a}=_0x36ca5f;if(!_0x2bb09d||!_0x270852||!_0x1a3e1a)return;let _0x2d9433=this['_ensurePivotItemRenderValueMatrixCache'](_0x270852,_0x1a3e1a);this[_0x337774(0x299)][_0x337774(0x55f)]({'unitId':_0x270852,'subUnitId':_0x1a3e1a,'valueMatrix':_0x2d9433,'pivotTableId':_0x2bb09d,'rangesCache':void 0x0,'type':_0x36ca5f[_0x337774(0x4ee)]});}['_clearRenderCacheData'](_0x173e6a){const _0x166068=_0x3f2857;var _0x5f1df6,_0x1d0851;let {pivotTableId:_0x141e17,unitId:_0x4b58ae,subUnitId:_0x583af6}=_0x173e6a;if(!_0x141e17||!_0x4b58ae||!_0x583af6)return;let _0x3a61eb=this[_0x166068(0x480)](_0x4b58ae,_0x583af6),_0x27c1e7=(_0x5f1df6=this[_0x166068(0x48f)]['get'](_0x4b58ae))==null||(_0x5f1df6=_0x5f1df6['get'](_0x583af6))==null?void 0x0:_0x5f1df6[_0x166068(0x66e)](_0x141e17);if(_0x27c1e7!=null&&_0x27c1e7['rangesInfo']){for(let _0x473707 of Object['keys'](_0x27c1e7[_0x166068(0x29c)]))_0x27c1e7[_0x166068(0x29c)][_0x473707][_0x166068(0x211)](_0x6f3b97=>{const _0x476762=_0x166068;for(let _0x171b3d=_0x6f3b97[_0x476762(0x5bb)];_0x171b3d<=_0x6f3b97[_0x476762(0x1ac)];_0x171b3d++)for(let _0xfd3819=_0x6f3b97[_0x476762(0x5ea)];_0xfd3819<=_0x6f3b97['endColumn'];_0xfd3819++)_0x3a61eb[_0x476762(0x3c8)](_0x171b3d,_0xfd3819);});}if(_0x27c1e7){var _0x51bc7d;(_0x51bc7d=this['_pivotRenderInfoCache'][_0x166068(0x66e)](_0x4b58ae))==null||(_0x51bc7d=_0x51bc7d[_0x166068(0x66e)](_0x583af6))==null||_0x51bc7d[_0x166068(0x4a7)](_0x141e17);}(_0x1d0851=this[_0x166068(0x63f)]['get'](_0x4b58ae))==null||(_0x1d0851=_0x1d0851[_0x166068(0x66e)](_0x583af6))==null||_0x1d0851[_0x166068(0x4a7)](_0x141e17),this[_0x166068(0x20d)][_0x166068(0x382)](_0x4b58ae,_0x583af6,_0x3a2976,_0x141e17);}[_0x3f2857(0x1f5)](_0x271541,_0x902bf0,_0x172974){const _0xad43f1=_0x3f2857;var _0x45dff6,_0x36ef1f;if(this[_0xad43f1(0x48f)][_0xad43f1(0x3b2)](_0x271541)||this['_pivotRenderInfoCache'][_0xad43f1(0x57d)](_0x271541,new Map()),!((_0x45dff6=this[_0xad43f1(0x48f)][_0xad43f1(0x66e)](_0x271541))!=null&&_0x45dff6['has'](_0x902bf0))){var _0x44da58;(_0x44da58=this[_0xad43f1(0x48f)][_0xad43f1(0x66e)](_0x271541))==null||_0x44da58['set'](_0x902bf0,new Map());}if(!((_0x36ef1f=this[_0xad43f1(0x48f)][_0xad43f1(0x66e)](_0x271541))!=null&&(_0x36ef1f=_0x36ef1f[_0xad43f1(0x66e)](_0x902bf0))!=null&&_0x36ef1f[_0xad43f1(0x3b2)](_0x172974))){var _0x113374;(_0x113374=this[_0xad43f1(0x48f)][_0xad43f1(0x66e)](_0x271541))==null||(_0x113374=_0x113374['get'](_0x902bf0))==null||_0x113374[_0xad43f1(0x57d)](_0x172974,{});}return this[_0xad43f1(0x48f)][_0xad43f1(0x66e)](_0x271541)[_0xad43f1(0x66e)](_0x902bf0)[_0xad43f1(0x66e)](_0x172974);}[_0x3f2857(0x480)](_0x17ea4a,_0x1c4255){const _0x5bd298=_0x3f2857;var _0x4d29d2;if(this[_0x5bd298(0x312)][_0x5bd298(0x3b2)](_0x17ea4a)||this['_pivotRenderValueMatrixCache'][_0x5bd298(0x57d)](_0x17ea4a,new Map()),!((_0x4d29d2=this[_0x5bd298(0x312)][_0x5bd298(0x66e)](_0x17ea4a))!=null&&_0x4d29d2[_0x5bd298(0x3b2)](_0x1c4255))){var _0x2cd65b;(_0x2cd65b=this['_pivotRenderValueMatrixCache'][_0x5bd298(0x66e)](_0x17ea4a))==null||_0x2cd65b[_0x5bd298(0x57d)](_0x1c4255,new _0x1664f5[(_0x5bd298(0x40b))]());}return this[_0x5bd298(0x312)]['get'](_0x17ea4a)[_0x5bd298(0x66e)](_0x1c4255);}['_ensurePivotViewCache'](_0x187293,_0x4977f9){const _0x398f1d=_0x3f2857;let _0x327a80=this['_pivotViewCache']['get'](_0x187293);_0x327a80||(_0x327a80=new Map(),this[_0x398f1d(0x63f)][_0x398f1d(0x57d)](_0x187293,_0x327a80));let _0x12c668=_0x327a80[_0x398f1d(0x66e)](_0x4977f9);return _0x12c668||(_0x12c668=new Map(),_0x327a80[_0x398f1d(0x57d)](_0x4977f9,_0x12c668)),_0x12c668;}[_0x3f2857(0x495)](_0x3eeead,_0x517aae,_0xfd9ed2,_0x3be445){const _0xb7eef1=_0x3f2857;var _0x56bfe9;let _0x27d729=(_0x56bfe9=this[_0xb7eef1(0x312)]['get'](_0x3eeead))==null||(_0x56bfe9=_0x56bfe9['get'](_0x517aae))==null?void 0x0:_0x56bfe9[_0xb7eef1(0x57c)](_0xfd9ed2,_0x3be445);if(_0x27d729!=null)return _0x27d729;}[_0x3f2857(0x536)](_0x2519a8,_0x3a75fc,_0x1b9e48,_0x287641){const _0x38116a=_0x3f2857;var _0x48a369;let _0x3f2d1e=(0x0,_0x1664f5[_0x38116a(0x515)])(_0x1b9e48,_0x287641),_0x3bde69=(_0x48a369=this[_0x38116a(0x48f)][_0x38116a(0x66e)](_0x2519a8))==null?void 0x0:_0x48a369['get'](_0x3a75fc);if(_0x3bde69)return Array['from'](_0x3bde69[_0x38116a(0x58e)]())[_0x38116a(0x209)](_0x5dcd58=>{const _0x37365f=_0x38116a;let _0x5e8d9b=_0x3bde69[_0x37365f(0x66e)](_0x5dcd58),_0x10b56d=_0x5e8d9b==null?void 0x0:_0x5e8d9b[_0x37365f(0x29c)];return _0x10b56d?Object['keys'](_0x10b56d)[_0x37365f(0x28b)](_0x33bd08=>_0x10b56d[_0x33bd08]['some'](_0x1b66f3=>_0x1664f5['Rectangle'][_0x37365f(0x1f3)](_0x1b66f3,_0x3f2d1e))):!0x1;});}['getIntersectsPivotTable'](_0x24ec67,_0x49eb17,_0x444636){const _0x1d7064=_0x3f2857;var _0x5a08ff;let _0x4ef56e=(_0x5a08ff=this[_0x1d7064(0x48f)]['get'](_0x24ec67))==null?void 0x0:_0x5a08ff[_0x1d7064(0x66e)](_0x49eb17),_0x95498e=[];return _0x4ef56e&&Array[_0x1d7064(0x4de)](_0x4ef56e['keys']())[_0x1d7064(0x211)](_0x5b27a2=>{const _0x52fc12=_0x1d7064;let _0x3caf66=_0x4ef56e[_0x52fc12(0x66e)](_0x5b27a2),_0x3b28bf=_0x3caf66==null?void 0x0:_0x3caf66[_0x52fc12(0x29c)];if(_0x3b28bf)for(let _0x3909e1 of Object[_0x52fc12(0x374)](_0x3b28bf)){let _0x29c80d=!0x1;for(let _0x59569c of _0x3909e1)if(_0x1664f5['Rectangle'][_0x52fc12(0x281)](_0x59569c,_0x444636)){_0x95498e[_0x52fc12(0x4ef)](_0x5b27a2),_0x29c80d=!0x0;break;}if(_0x29c80d)break;}}),_0x95498e;}['getSubUnitPivotMatrix'](_0x5a730d,_0x3c8695){const _0x27a980=_0x3f2857;var _0x22d0f0;return((_0x22d0f0=this[_0x27a980(0x312)][_0x27a980(0x66e)](_0x5a730d))==null?void 0x0:_0x22d0f0[_0x27a980(0x66e)](_0x3c8695))??new _0x1664f5[(_0x27a980(0x40b))]();}[_0x3f2857(0x30b)](_0x546db3,_0x4c8dbe){const _0x54c25d=_0x3f2857;var _0x1a04bf;return(_0x1a04bf=this[_0x54c25d(0x48f)][_0x54c25d(0x66e)](_0x546db3))==null?void 0x0:_0x1a04bf['get'](_0x4c8dbe);}[_0x3f2857(0x255)](_0x565a7f,_0xeb9cc3,_0x3a2328){const _0x5dd139=_0x3f2857;var _0x2f9b81;return(_0x2f9b81=this[_0x5dd139(0x48f)][_0x5dd139(0x66e)](_0x565a7f))==null||(_0x2f9b81=_0x2f9b81['get'](_0xeb9cc3))==null?void 0x0:_0x2f9b81[_0x5dd139(0x66e)](_0x3a2328);}[_0x3f2857(0x2d9)](_0x33b9a2){const _0x4ca1df=_0x3f2857;this[_0x4ca1df(0x48f)][_0x4ca1df(0x4a7)](_0x33b9a2),this[_0x4ca1df(0x312)]['delete'](_0x33b9a2),this[_0x4ca1df(0x63f)][_0x4ca1df(0x4a7)](_0x33b9a2);}[_0x3f2857(0x4c8)](_0x11fe6f,_0x10b74a){const _0xcd5423=_0x3f2857;this[_0xcd5423(0x369)][_0xcd5423(0x55f)]({'unitId':_0x11fe6f,'subUnitId':_0x10b74a});}};_0xee2d82=_0x68e210([_0x8e806c(0x0,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x1664f5[_0x3f2857(0x4d7)])),_0x8e806c(0x1,(0x0,_0x1664f5['Inject'])(_0x1664f5[_0x3f2857(0x2b4)])),_0x8e806c(0x2,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x12ae9f)),_0x8e806c(0x3,(0x0,_0x1664f5['Inject'])(_0x1664f5[_0x3f2857(0x35a)])),_0x8e806c(0x4,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x366635['IExclusiveRangeService']))],_0xee2d82);let _0x2c5f97=new Set([_0xaf0b54[_0x3f2857(0x392)][_0x3f2857(0x4a6)],_0xaf0b54['PivotCellStyleTypeEnum'][_0x3f2857(0x556)],_0xaf0b54[_0x3f2857(0x392)][_0x3f2857(0x33d)],_0xaf0b54[_0x3f2857(0x392)]['FilteredSortNone'],_0xaf0b54[_0x3f2857(0x392)]['FilteredSortAsc'],_0xaf0b54[_0x3f2857(0x392)][_0x3f2857(0x4d6)],_0xaf0b54[_0x3f2857(0x392)][_0x3f2857(0x384)],_0xaf0b54['PivotCellStyleTypeEnum'][_0x3f2857(0x49e)],_0xaf0b54[_0x3f2857(0x392)][_0x3f2857(0x582)]]),_0x4bbba8=class extends _0x1664f5[_0x3f2857(0x660)]{constructor(_0x9b16d7,_0x34d925,_0x2b3b74){const _0x1454d6=_0x3f2857;super(),this[_0x1454d6(0x538)]=_0x9b16d7,this[_0x1454d6(0x57e)]=_0x34d925,this[_0x1454d6(0x4f2)]=_0x2b3b74,_0x108027(this,_0x1454d6(0x679),new _0x1664f5[(_0x1454d6(0x39f))]({'PIVOT_DATE_FILTER_COORDINATION':_0xddee90,'PIVOT_MANUAL_FILTER_COORDINATION':_0x5365cc,'PIVOT_OPTION_FILTER_COORDINATION':_0x5c757c,'PIVOT_PERFORM_CHECK':_0x4ac011})),_0x108027(this,_0x1454d6(0x492),new _0x1664f5[(_0x1454d6(0x542))]({'PIVOT_FIELD_REMOVE_COORDINATION':_0x35fe67,'PIVOT_MUTATION_GENERATE':_0x5cb06e})),this[_0x1454d6(0x1dd)]();}[_0x3f2857(0x1dd)](){const _0x21d664=_0x3f2857;this[_0x21d664(0x650)]();}[_0x3f2857(0x61e)](_0x178b82){const _0x4f41c4=_0x3f2857;return this['asyncInterceptor'][_0x4f41c4(0x386)](_0x4ac011)(!0x1,_0x178b82);}['_initViewModelBySheetInterceptor'](){const _0x3c6f68=_0x3f2857;this[_0x3c6f68(0x58f)](this[_0x3c6f68(0x538)][_0x3c6f68(0x3d6)](_0x366635[_0x3c6f68(0x1c9)][_0x3c6f68(0x56f)],{'id':_0x3c6f68(0x4eb),'priority':0xc8,'effect':_0x1664f5[_0x3c6f68(0x2f3)][_0x3c6f68(0x349)]|_0x1664f5[_0x3c6f68(0x2f3)][_0x3c6f68(0x2d6)],'handler':(_0x5d1626,_0x23cf1f,_0x156c23)=>{const _0x51cc4a=_0x3c6f68;let {row:_0x2227cd,col:_0x5992d4,unitId:_0x2284ca,subUnitId:_0x3a147e,workbook:_0x42aa0e}=_0x23cf1f,_0x19becd=this[_0x51cc4a(0x57e)][_0x51cc4a(0x495)](_0x2284ca,_0x3a147e,_0x2227cd,_0x5992d4);if(!_0x19becd)return _0x156c23(_0x5d1626);let _0x41eac1={..._0x5d1626};(_0x19becd['v']||_0x19becd['v']===0x0)&&(_0x41eac1['v']=_0x19becd['v']),_0x19becd['t']&&(_0x41eac1['t']=_0x19becd['t']);let _0x193ce4=(typeof(_0x5d1626==null?void 0x0:_0x5d1626['s'])==_0x51cc4a(0x5cb)?_0x42aa0e[_0x51cc4a(0x1b6)]()[_0x51cc4a(0x66e)](_0x5d1626==null?void 0x0:_0x5d1626['s']):_0x5d1626==null?void 0x0:_0x5d1626['s'])||{},_0x1a9a4=_0x42aa0e['getStyles']()[_0x51cc4a(0x66e)](_0x19becd['s']),_0x352e89={..._0x1a9a4,..._0x193ce4};_0x1a9a4!=null&&_0x1a9a4['n']&&(_0x352e89['n']=_0x1a9a4['n']);let _0x1db8b3=this[_0x51cc4a(0x4f2)][_0x51cc4a(0x2af)]();return _0x1db8b3===_0x51cc4a(0x39a)&&_0x19becd[_0x51cc4a(0x42b)]&&_0x2c5f97['has'](_0x19becd[_0x51cc4a(0x42b)])&&(_0x352e89['ht']=_0x1664f5[_0x51cc4a(0x2d0)][_0x51cc4a(0x40e)],_0x41eac1[_0x51cc4a(0x43f)]={..._0x41eac1[_0x51cc4a(0x43f)],'leftOffset':0x10}),_0x41eac1['s']=_0x42aa0e[_0x51cc4a(0x1b6)]()[_0x51cc4a(0x404)](_0x352e89),(_0x19becd[_0x51cc4a(0x42b)]===_0xaf0b54[_0x51cc4a(0x392)][_0x51cc4a(0x265)]||_0x19becd[_0x51cc4a(0x42b)]===_0xaf0b54['PivotCellStyleTypeEnum'][_0x51cc4a(0x22f)])&&(_0x41eac1['fontRenderExtension']={},_0x1db8b3==='rtl'?_0x41eac1[_0x51cc4a(0x43f)][_0x51cc4a(0x640)]=0x10:_0x41eac1[_0x51cc4a(0x43f)]['leftOffset']=0x10),_0x156c23(_0x41eac1);}}));}};_0x4bbba8=_0x68e210([_0x8e806c(0x0,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x366635['SheetInterceptorService'])),_0x8e806c(0x1,(0x0,_0x1664f5['Inject'])(_0xee2d82)),_0x8e806c(0x2,(0x0,_0x1664f5['Inject'])(_0x1664f5['LocaleService']))],_0x4bbba8);let _0x427b54={'id':'sheet.mutation.add-group-collection','type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x210)],'handler':(_0x18281a,_0x3f0655)=>{const _0x40adfe=_0x3f2857;if(!_0x3f0655)return!0x1;let _0xd3bd71=!!_0x18281a[_0x40adfe(0x66e)](_0x1664f5['IConfigService'])[_0x40adfe(0x277)](_0xfbc374),{pivotTableId:_0x1d9353,fieldJSON:_0x50bbb3,unitId:_0x9b7fc4,subUnitId:_0x2865b4}=_0x3f0655,_0x340ed8=(0x0,_0xaf0b54[_0x40adfe(0x54e)])(_0x50bbb3);if(!(0x0,_0xaf0b54[_0x40adfe(0x4ba)])(_0x340ed8))return!0x1;if(_0xd3bd71){let _0x304f01=_0x18281a[_0x40adfe(0x66e)](_0x12ae9f),_0x3d7df4=_0x304f01[_0x40adfe(0x655)](_0x9b7fc4,_0x1d9353);if(!_0x3d7df4||!_0x304f01[_0x40adfe(0x3f5)](_0x9b7fc4,_0x2865b4,_0x1d9353))return!0x1;let _0x26f00e=_0x1664f5[_0x40adfe(0x5b7)][_0x40adfe(0x62b)](_0x3d7df4);return _0x26f00e[_0x40adfe(0x32d)]['push'](_0x50bbb3['id']),_0x26f00e[_0x40adfe(0x413)][_0x50bbb3['id']]=_0xaf0b54['FieldsCollection'][_0x40adfe(0x502)](_0x50bbb3[_0x40adfe(0x1d6)],_0x26f00e[_0x40adfe(0x413)]),_0x26f00e['fields'][_0x50bbb3['id']]=_0x50bbb3,_0x304f01[_0x40adfe(0x462)](_0x9b7fc4,_0x1d9353,_0x26f00e),!0x0;}let _0x1fa171=_0x18281a[_0x40adfe(0x66e)](_0x360e3c),_0x1b364f=_0x1fa171['getDataFieldManager'](_0x9b7fc4),_0x246f74=_0x1b364f[_0x40adfe(0x655)](_0x1d9353);_0x1b364f[_0x40adfe(0x44f)](_0x340ed8),_0x246f74[_0x40adfe(0x592)](_0x340ed8[_0x40adfe(0x56d)](),_0x340ed8[_0x40adfe(0x466)]());let _0x24f23f=_0x246f74[_0x40adfe(0x352)](_0x340ed8[_0x40adfe(0x59f)]());if(_0x24f23f){let _0x10ec32=_0x18281a[_0x40adfe(0x66e)](_0x1664f5[_0x40adfe(0x35a)])[_0x40adfe(0x300)](_0x9b7fc4,_0x1664f5[_0x40adfe(0x3b3)]['UNIVER_SHEET']);_0x201d1a(_0x10ec32==null?void 0x0:_0x10ec32[_0x40adfe(0x48d)]()),_0x340ed8[_0x40adfe(0x4cd)](_0x24f23f);}let _0x2d199d=_0x1fa171['getPivotTableConfig'](_0x9b7fc4,_0x2865b4,_0x1d9353);return _0x1fa171[_0x40adfe(0x205)]({'unitId':_0x9b7fc4,'subUnitId':_0x2865b4,'token':_0x1d9353,'type':_0x40adfe(0x57d),'pivotConfig':_0x2d199d}),!0x0;}},_0x3b9dcc={'id':_0x3f2857(0x289),'type':_0x1664f5[_0x3f2857(0x49f)]['MUTATION'],'handler':(_0x2cdc28,_0x1fef6c)=>{const _0x6bf297=_0x3f2857;if(!_0x1fef6c)return!0x1;if(_0x2cdc28[_0x6bf297(0x66e)](_0x1664f5[_0x6bf297(0x261)])[_0x6bf297(0x277)]('SHEET_PIVOT_IN_MAIN_THREAD')){let _0x270c48=_0x2cdc28['get'](_0x12ae9f),_0x364c64=_0x270c48[_0x6bf297(0x655)](_0x1fef6c[_0x6bf297(0x339)],_0x1fef6c[_0x6bf297(0x581)]);if(!_0x364c64||!_0x270c48[_0x6bf297(0x3f5)](_0x1fef6c[_0x6bf297(0x339)],_0x1fef6c[_0x6bf297(0x555)],_0x1fef6c[_0x6bf297(0x581)]))return!0x1;let _0x4164b6=_0x1664f5[_0x6bf297(0x5b7)][_0x6bf297(0x62b)](_0x364c64);return _0x4164b6['fieldIds']=_0x4164b6[_0x6bf297(0x32d)][_0x6bf297(0x501)](_0x106702=>_0x106702!==_0x1fef6c[_0x6bf297(0x365)]),delete _0x4164b6['fields'][_0x1fef6c['dataFieldId']],delete _0x4164b6[_0x6bf297(0x413)][_0x1fef6c[_0x6bf297(0x365)]],_0x270c48[_0x6bf297(0x462)](_0x1fef6c[_0x6bf297(0x339)],_0x1fef6c[_0x6bf297(0x581)],_0x4164b6),!0x0;}let {pivotTableId:_0x1a1358,dataFieldId:_0x4fcd95,unitId:_0x460b2f,subUnitId:_0x27eba2}=_0x1fef6c,_0x5be36d=_0x2cdc28[_0x6bf297(0x66e)](_0x360e3c),_0x38ee39=_0x5be36d[_0x6bf297(0x5f3)](_0x460b2f);_0x38ee39[_0x6bf297(0x655)](_0x1a1358)[_0x6bf297(0x551)](_0x4fcd95);let _0x388837=!0x0;for(let _0x1f8fe1 in _0x38ee39[_0x6bf297(0x4e4)])if(_0x38ee39[_0x6bf297(0x4e4)][_0x1f8fe1]['getFieldIds']()['includes'](_0x4fcd95)){_0x388837=!0x1;break;}_0x388837&&_0x38ee39['deleteDataField'](_0x4fcd95);let _0x3a3556=_0x5be36d[_0x6bf297(0x3f5)](_0x460b2f,_0x27eba2,_0x1a1358);return _0x5be36d[_0x6bf297(0x205)]({'unitId':_0x460b2f,'subUnitId':_0x27eba2,'token':_0x1a1358,'type':_0x6bf297(0x57d),'pivotConfig':_0x3a3556}),!0x0;}};function _0x37b449(_0x5ecd74,_0x51ffcf){const _0x5ee66c=_0x3f2857;switch(_0x51ffcf){case _0xaf0b54[_0x5ee66c(0x59c)][_0x5ee66c(0x349)]:return _0x5ecd74[_0x5ee66c(0x485)];case _0xaf0b54[_0x5ee66c(0x59c)][_0x5ee66c(0x397)]:return _0x5ecd74['filterFields'];case _0xaf0b54[_0x5ee66c(0x59c)]['Row']:return _0x5ecd74[_0x5ee66c(0x1e9)];case _0xaf0b54[_0x5ee66c(0x59c)][_0x5ee66c(0x32c)]:return _0x5ecd74[_0x5ee66c(0x4f7)];case _0xaf0b54['PivotTableFiledAreaEnum'][_0x5ee66c(0x346)]:return _0x5ecd74['hiddenFields'];default:return[];}}function _0xd2e967(_0x4f9303,_0x52f823){const _0x271ff6=_0x3f2857;if(Object[_0x271ff6(0x212)][_0x271ff6(0x39b)]['call'](_0x4f9303[_0x271ff6(0x2d4)],_0x52f823))return _0x4f9303[_0x271ff6(0x2d4)][_0x52f823];if(Object[_0x271ff6(0x212)]['hasOwnProperty'][_0x271ff6(0x1aa)](_0x4f9303[_0x271ff6(0x57a)],_0x52f823))return _0x4f9303[_0x271ff6(0x57a)][_0x52f823];}function _0x3e19f0(_0x441481,_0x36c9e9){const _0x1b79e9=_0x3f2857;let {area:_0x4b479b,fieldJson:_0x22234a,index:_0x4b3bed}=_0x36c9e9;_0x4b479b===_0xaf0b54['PivotTableFiledAreaEnum'][_0x1b79e9(0x349)]?_0x441481[_0x1b79e9(0x2d4)]={..._0x441481[_0x1b79e9(0x2d4)],[_0x22234a['id']]:_0x22234a}:_0x441481['dimension']={..._0x441481[_0x1b79e9(0x57a)],[_0x22234a['id']]:_0x22234a},_0x37b449(_0x441481,_0x4b479b)[_0x1b79e9(0x593)](_0x4b3bed,0x0,_0x22234a['id']);}function _0x36dc0f(_0xb4f810,_0x455830){const _0x4c8f38=_0x3f2857;let {area:_0x19cf74,fieldId:_0x4a160e}=_0x455830,_0x1b2f15=_0x37b449(_0xb4f810,_0x19cf74),_0xd8b2c5=_0x1b2f15[_0x4c8f38(0x52a)](_0x4a160e);_0xd8b2c5<0x0||(_0x19cf74===_0xaf0b54[_0x4c8f38(0x59c)][_0x4c8f38(0x349)]?delete _0xb4f810[_0x4c8f38(0x2d4)][_0x4a160e]:delete _0xb4f810[_0x4c8f38(0x57a)][_0x4a160e],_0x1b2f15['splice'](_0xd8b2c5,0x1));}function _0x1b0554(_0x53e151,_0x5bfacb){const _0x145228=_0x3f2857;let {fieldId:_0x44359a,name:_0x164323}=_0x5bfacb,_0x3f865e=_0xd2e967(_0x53e151,_0x44359a);_0x3f865e&&(_0x3f865e[_0x145228(0x36d)]=_0x164323);}function _0x4a18be(_0x3ee82e,_0x2034ef){const _0x2544ad=_0x3f2857;let {fieldId:_0x3de62e,collapse:_0x3d65d3,item:_0x154a0e}=_0x2034ef;if(_0x3ee82e['collapseInfo']=Object[_0x2544ad(0x288)](Object[_0x2544ad(0x5db)](null),_0x3ee82e[_0x2544ad(0x32f)]),_0x154a0e!==void 0x0){let _0x37b6b7=_0x3ee82e[_0x2544ad(0x32f)][_0x3de62e],_0x538e56=Object[_0x2544ad(0x288)](Object['create'](null),typeof _0x37b6b7==_0x2544ad(0x4be)?_0x37b6b7:void 0x0);_0x538e56[_0x154a0e]=_0x3d65d3===!0x0,_0x3ee82e[_0x2544ad(0x32f)][_0x3de62e]=_0x538e56;}else _0x3d65d3===void 0x0?delete _0x3ee82e['collapseInfo'][_0x3de62e]:_0x3ee82e[_0x2544ad(0x32f)][_0x3de62e]=typeof _0x3d65d3==_0x2544ad(0x4be)?Object['assign'](Object['create'](null),_0x3d65d3):_0x3d65d3;}function _0x51e832(_0x5765c4,_0x18d1f6){const _0x33c2cc=_0x3f2857;let {fieldId:_0x4d525e,format:_0x468bd0}=_0x18d1f6,_0x160d4f=_0xd2e967(_0x5765c4,_0x4d525e);_0x160d4f&&(_0x160d4f[_0x33c2cc(0x230)]=_0x468bd0);}function _0x1a1c76(_0x2c816a,_0x2cc4a2){const _0x1811fa=_0x3f2857;let {fieldId:_0x2d37e4,filterInfo:_0x4ccf99}=_0x2cc4a2,_0x2b7ca7=_0xd2e967(_0x2c816a,_0x2d37e4);_0x2b7ca7&&(_0x2b7ca7[_0x1811fa(0x269)]=_0x4ccf99,_0x2cc4a2[_0x1811fa(0x55d)]!==void 0x0&&(_0x2cc4a2['conditionFilter']===null?delete _0x2b7ca7[_0x1811fa(0x55d)]:_0x2b7ca7[_0x1811fa(0x55d)]=_0x1664f5[_0x1811fa(0x5b7)]['deepClone'](_0x2cc4a2['conditionFilter'])));}function _0x114a99(_0x1a0546,_0x5dd47d){const _0x4f0390=_0x3f2857;let {fieldId:_0xdd0d46,filterInfo:_0x3c8b48,index:_0x39c8f4}=_0x5dd47d,_0x50aa3f=_0x1a0546[_0x4f0390(0x1bc)],_0x58dec9=_0x50aa3f[_0x4f0390(0x65f)](_0x3bf1a4=>_0x3bf1a4[_0x4f0390(0x4d4)]===_0xdd0d46);if(_0x58dec9!==-0x1&&_0x50aa3f['splice'](_0x58dec9,0x1),_0x3c8b48){let _0x1f5c84=Math[_0x4f0390(0x259)](Math[_0x4f0390(0x27f)](_0x39c8f4!==void 0x0&&_0x39c8f4>=0x0?_0x39c8f4:_0x58dec9===-0x1?_0x50aa3f[_0x4f0390(0x33b)]:_0x58dec9,0x0),_0x50aa3f['length']);_0x50aa3f[_0x4f0390(0x593)](_0x1f5c84,0x0,{'fieldId':_0xdd0d46,'filterInfo':{..._0x3c8b48,'expected':Array[_0x4f0390(0x3a7)](_0x3c8b48[_0x4f0390(0x411)])?_0x3c8b48[_0x4f0390(0x411)][_0x4f0390(0x264)]():_0x3c8b48[_0x4f0390(0x411)]}});}}function _0x6156fd(_0x5611a6,_0x317e7f){const _0x2feb17=_0x3f2857;let {fieldId:_0x36f866,subtotalType:_0x2e0915}=_0x317e7f,_0x418810=_0xd2e967(_0x5611a6,_0x36f866);_0x418810&&(_0x418810[_0x2feb17(0x27a)]=_0x2e0915);}function _0x3a76e0(_0x361477,_0x3df77a){const _0x2c079a=_0x3f2857;let {fieldId:_0x53d1ae,oldArea:_0x456a95,area:_0x525f9b,index:_0x30fd7e}=_0x3df77a,_0x428ca7=_0x37b449(_0x361477,_0x456a95),_0x262a46=_0x428ca7[_0x2c079a(0x52a)](_0x53d1ae);if(_0x262a46<0x0)return;let _0x20d851=_0x456a95!==_0xaf0b54[_0x2c079a(0x59c)][_0x2c079a(0x349)]&&_0x525f9b===_0xaf0b54[_0x2c079a(0x59c)][_0x2c079a(0x349)],_0x5e361f=_0x456a95===_0xaf0b54['PivotTableFiledAreaEnum']['Value']&&_0x525f9b!==_0xaf0b54[_0x2c079a(0x59c)][_0x2c079a(0x349)];if(_0x20d851||_0x5e361f){let _0x431a79=_0xd2e967(_0x361477,_0x53d1ae);_0x431a79&&(_0x20d851?(delete _0x361477['dimension'][_0x53d1ae],_0x361477[_0x2c079a(0x2d4)]={..._0x361477[_0x2c079a(0x2d4)],[_0x53d1ae]:_0x431a79}):(delete _0x361477[_0x2c079a(0x2d4)][_0x53d1ae],_0x361477[_0x2c079a(0x57a)]={..._0x361477[_0x2c079a(0x57a)],[_0x53d1ae]:_0x431a79}));}let _0x123a7f=_0x37b449(_0x361477,_0x525f9b);_0x428ca7[_0x2c079a(0x593)](_0x262a46,0x1),_0x123a7f[_0x2c079a(0x593)](_0x30fd7e,0x0,_0x53d1ae);}function _0x5c5e65(_0x448658,_0x3ef718){const _0x51d807=_0x3f2857;let {valuePosition:_0x3e5638,index:_0x4cfcca}=_0x3ef718;_0x448658[_0x51d807(0x447)]=_0x3e5638,_0x448658[_0x51d807(0x432)]=_0x4cfcca;}function _0x5cb632(_0x2d6d51,_0x378719){const _0x4094d4=_0x3f2857;let {tableFieldId:_0x233cb7,sourceName:_0x59b2c9,dataFieldId:_0x57dc71}=_0x378719,_0x3aa68a=_0xd2e967(_0x2d6d51,_0x233cb7);_0x3aa68a&&(_0x3aa68a[_0x4094d4(0x560)]=_0x59b2c9,_0x3aa68a['dataFieldId']=_0x57dc71);}function _0x852124(_0xa13805,_0x52fdcf){let {fieldId:_0x487a97,sortInfo:_0x5606d9}=_0x52fdcf,_0x132679=_0xd2e967(_0xa13805,_0x487a97);_0x132679&&(_0x132679['sortInfo']=_0x5606d9);}function _0xbbdcee(_0x4801bd,_0xafa3bf){const _0x5e508c=_0x3f2857;let {fieldId:_0x317578,showDataAs:_0x4a0703}=_0xafa3bf,_0x57b9bb=Object['prototype']['hasOwnProperty']['call'](_0x4801bd['measure'],_0x317578)?_0x4801bd[_0x5e508c(0x2d4)][_0x317578]:void 0x0;_0x57b9bb&&(_0x57b9bb[_0x5e508c(0x521)]={..._0x4a0703});}function _0x584920(_0x702a9d,_0x41b045){const _0x4a47d0=_0x3f2857;let {options:_0x4b4b63,replace:_0x35759c}=_0x41b045;_0x702a9d[_0x4a47d0(0x351)]=_0x35759c?{..._0x4b4b63}:{..._0x702a9d[_0x4a47d0(0x351)],..._0x4b4b63};}function _0x5a82f3(_0xa5f2f8,_0x146acf){let {layout:_0x42fa91}=_0x146acf;_0xa5f2f8['layout']=_0x42fa91;}let _0x119e28={'type':_0x1664f5[_0x3f2857(0x49f)]['MUTATION'],'id':'sheet.mutation.add-pivot-field','handler'(_0x94651f,_0x233604){const _0xca820f=_0x3f2857;if(!_0x233604)return!0x1;if(_0x94651f[_0xca820f(0x66e)](_0x1664f5[_0xca820f(0x261)])[_0xca820f(0x277)](_0xca820f(0x36b)))return _0x94651f[_0xca820f(0x66e)](_0x12ae9f)[_0xca820f(0x4d3)](_0x233604,_0x47cd6a=>_0x3e19f0(_0x47cd6a[_0xca820f(0x1fa)],_0x233604));let _0x2273b3=_0x94651f[_0xca820f(0x66e)](_0x360e3c),{pivotTableId:_0x1e80ce,fieldJson:_0x2bfd6e,area:_0x4e83ba,index:_0x59596d,unitId:_0x2ab86a,subUnitId:_0x17f725}=_0x233604,_0x49b06b=_0x2273b3[_0xca820f(0x3c7)](_0x1e80ce);if(!_0x49b06b)return!0x1;let _0x174e02;_0x174e02=_0x4e83ba===_0xaf0b54['PivotTableFiledAreaEnum'][_0xca820f(0x349)]?(0x0,_0xaf0b54[_0xca820f(0x5f2)])(_0x2bfd6e):(0x0,_0xaf0b54['createLabelField'])(_0x2bfd6e),_0x49b06b[_0xca820f(0x592)](_0x174e02,_0x4e83ba,_0x59596d),_0x3e19f0(_0x2273b3[_0xca820f(0x610)](_0x2ab86a,_0x17f725,_0x1e80ce),_0x233604);let _0x7ab8ca=_0x2273b3[_0xca820f(0x3f5)](_0x2ab86a,_0x17f725,_0x1e80ce);return _0x2273b3[_0xca820f(0x205)]({'unitId':_0x2ab86a,'subUnitId':_0x17f725,'token':_0x1e80ce,'type':_0xca820f(0x57d),'pivotConfig':_0x7ab8ca}),!0x0;}},_0x2d09c2={'type':_0x1664f5[_0x3f2857(0x49f)]['MUTATION'],'id':_0x3f2857(0x5a2),'handler'(_0x126f3e,_0x49d215){const _0x554793=_0x3f2857;if(!_0x49d215)return!0x1;if(_0x126f3e[_0x554793(0x66e)](_0x1664f5['IConfigService'])[_0x554793(0x277)](_0x554793(0x36b)))return _0x126f3e[_0x554793(0x66e)](_0x12ae9f)[_0x554793(0x4d3)](_0x49d215,_0x6647bc=>_0x36dc0f(_0x6647bc['fieldsConfig'],_0x49d215));let _0x159720=_0x126f3e[_0x554793(0x66e)](_0x360e3c),{pivotTableId:_0x28cccd,fieldId:_0x11cca1,unitId:_0x51752b,subUnitId:_0x3c06fa}=_0x49d215,_0xe15f02=_0x159720[_0x554793(0x3c7)](_0x28cccd);if(!_0xe15f02)return!0x1;_0xe15f02[_0x554793(0x5b8)](_0x11cca1),_0x36dc0f(_0x159720[_0x554793(0x610)](_0x51752b,_0x3c06fa,_0x28cccd),_0x49d215);let _0x127e66=_0x159720[_0x554793(0x3f5)](_0x51752b,_0x3c06fa,_0x28cccd);return _0x159720['addDirtyPivotTable']({'unitId':_0x51752b,'subUnitId':_0x3c06fa,'token':_0x28cccd,'type':_0x554793(0x57d),'pivotConfig':_0x127e66}),!0x0;}},_0x9f1580={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x210)],'id':_0x3f2857(0x232),'handler'(_0x41fea1,_0x138c2c){const _0x578bb9=_0x3f2857;if(!_0x138c2c)return!0x1;if(_0x41fea1[_0x578bb9(0x66e)](_0x1664f5[_0x578bb9(0x261)])[_0x578bb9(0x277)](_0x578bb9(0x36b)))return _0x41fea1[_0x578bb9(0x66e)](_0x12ae9f)[_0x578bb9(0x4d3)](_0x138c2c,_0x4995d7=>_0x1b0554(_0x4995d7['fieldsConfig'],_0x138c2c));let _0x5b07cb=_0x41fea1[_0x578bb9(0x66e)](_0x360e3c),{unitId:_0x26b0ec,subUnitId:_0xa0a5dd,pivotTableId:_0x13404e,fieldId:_0x577eca,name:_0x367c52}=_0x138c2c,_0xdc364f=_0x5b07cb[_0x578bb9(0x3c7)](_0x13404e);return _0xdc364f?(_0xdc364f[_0x578bb9(0x380)](_0x577eca,_0x367c52),_0x1b0554(_0x5b07cb[_0x578bb9(0x610)](_0x26b0ec,_0xa0a5dd,_0x13404e),_0x138c2c),_0x5b07cb[_0x578bb9(0x205)]({'unitId':_0x26b0ec,'subUnitId':_0xa0a5dd,'token':_0x13404e,'type':_0x578bb9(0x57d)}),!0x0):!0x1;}},_0x450113={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x210)],'id':_0x3f2857(0x46e),'handler'(_0x52625e,_0x38297f){const _0x123dd8=_0x3f2857;if(!_0x38297f)return!0x1;if(_0x52625e[_0x123dd8(0x66e)](_0x1664f5[_0x123dd8(0x261)])[_0x123dd8(0x277)]('SHEET_PIVOT_IN_MAIN_THREAD'))return _0x52625e[_0x123dd8(0x66e)](_0x12ae9f)['applyConfigChange'](_0x38297f,_0x155308=>_0x4a18be(_0x155308['fieldsConfig'],_0x38297f));let _0x391776=_0x52625e[_0x123dd8(0x66e)](_0x360e3c),{unitId:_0x9ec9e9,subUnitId:_0x298bf6,pivotTableId:_0x17b994,fieldId:_0x360fb4,collapse:_0x5c2761,item:_0x1e10dc}=_0x38297f,_0x25a610=_0x391776['getPivotTableInstance'](_0x17b994);return _0x25a610?(_0x25a610[_0x123dd8(0x20b)](_0x360fb4,_0x5c2761,_0x1e10dc),_0x4a18be(_0x391776['getPivotTableModelConfig'](_0x9ec9e9,_0x298bf6,_0x17b994),_0x38297f),_0x391776[_0x123dd8(0x205)]({'unitId':_0x9ec9e9,'subUnitId':_0x298bf6,'token':_0x17b994,'type':_0x123dd8(0x57d)}),!0x0):!0x1;}},_0xa68ae={'type':_0x1664f5[_0x3f2857(0x49f)]['MUTATION'],'id':_0x3f2857(0x246),'handler'(_0x534b27,_0xc81307){const _0x4846d7=_0x3f2857;if(!_0xc81307)return!0x1;if(_0x534b27[_0x4846d7(0x66e)](_0x1664f5['IConfigService'])[_0x4846d7(0x277)]('SHEET_PIVOT_IN_MAIN_THREAD'))return _0x534b27['get'](_0x12ae9f)[_0x4846d7(0x4d3)](_0xc81307,_0x204536=>_0x51e832(_0x204536[_0x4846d7(0x1fa)],_0xc81307));let _0x3eeb2a=_0x534b27['get'](_0x360e3c),{unitId:_0x347ee2,subUnitId:_0x354525,pivotTableId:_0x30868e,fieldId:_0x1a7969,format:_0x18d033}=_0xc81307,_0x3df3d6=_0x3eeb2a[_0x4846d7(0x3c7)](_0x30868e);return _0x3df3d6?(_0x3df3d6[_0x4846d7(0x5f4)](_0x1a7969,_0x18d033),_0x51e832(_0x3eeb2a[_0x4846d7(0x610)](_0x347ee2,_0x354525,_0x30868e),_0xc81307),_0x3eeb2a[_0x4846d7(0x205)]({'unitId':_0x347ee2,'subUnitId':_0x354525,'token':_0x30868e,'type':_0x4846d7(0x57d)}),!0x0):!0x1;}},_0x18d103={'type':_0x1664f5['CommandType']['MUTATION'],'id':_0x3f2857(0x2df),'handler'(_0x282325,_0x471526){const _0x1f7460=_0x3f2857;var _0x39329c;if(!_0x471526)return!0x1;if(_0x282325[_0x1f7460(0x66e)](_0x1664f5[_0x1f7460(0x261)])[_0x1f7460(0x277)](_0x1f7460(0x36b)))return _0x282325[_0x1f7460(0x66e)](_0x12ae9f)[_0x1f7460(0x4d3)](_0x471526,_0x5922a2=>_0x1a1c76(_0x5922a2[_0x1f7460(0x1fa)],_0x471526));let _0x197e45=_0x282325[_0x1f7460(0x66e)](_0x360e3c),{unitId:_0x2a0a57,subUnitId:_0x449f69,pivotTableId:_0x1f8ec8,fieldId:_0x131657,filterInfo:_0x39b456}=_0x471526,_0x3dafa5=_0x197e45[_0x1f7460(0x3c7)](_0x1f8ec8);if(!_0x3dafa5)return!0x1;let _0x5b5069=_0x197e45[_0x1f7460(0x610)](_0x2a0a57,_0x449f69,_0x1f8ec8);return _0x3dafa5['setFieldFilterState'](_0x131657,_0x39b456,_0x471526[_0x1f7460(0x55d)]===void 0x0?(_0x39329c=_0x5b5069['dimension'][_0x131657])==null?void 0x0:_0x39329c[_0x1f7460(0x55d)]:_0x471526[_0x1f7460(0x55d)]??void 0x0),_0x1a1c76(_0x5b5069,_0x471526),_0x197e45[_0x1f7460(0x205)]({'unitId':_0x2a0a57,'subUnitId':_0x449f69,'token':_0x1f8ec8,'type':_0x1f7460(0x57d)}),!0x0;}},_0x3bc386={'type':_0x1664f5['CommandType'][_0x3f2857(0x210)],'id':_0x3f2857(0x1b7),'handler'(_0x4a2e13,_0x31a50a){const _0x340c9e=_0x3f2857;if(!_0x31a50a)return!0x1;if(_0x4a2e13[_0x340c9e(0x66e)](_0x1664f5[_0x340c9e(0x261)])['getConfig']('SHEET_PIVOT_IN_MAIN_THREAD'))return _0x4a2e13[_0x340c9e(0x66e)](_0x12ae9f)['applyConfigChange'](_0x31a50a,_0x235514=>_0x5a82f3(_0x235514[_0x340c9e(0x1fa)],_0x31a50a));let _0x2d0725=_0x4a2e13['get'](_0x360e3c),{unitId:_0x5766dd,subUnitId:_0x278893,pivotTableId:_0x40fb94,layout:_0x1e93bb}=_0x31a50a,_0x241c75=_0x2d0725[_0x340c9e(0x3c7)](_0x40fb94);return _0x241c75?(_0x241c75[_0x340c9e(0x4ed)](_0x1e93bb),_0x5a82f3(_0x2d0725[_0x340c9e(0x610)](_0x5766dd,_0x278893,_0x40fb94),_0x31a50a),_0x2d0725[_0x340c9e(0x205)]({'unitId':_0x5766dd,'subUnitId':_0x278893,'token':_0x40fb94,'type':_0x340c9e(0x57d)}),!0x0):!0x1;}},_0xb703e={'type':_0x1664f5[_0x3f2857(0x49f)]['MUTATION'],'id':_0x3f2857(0x355),'handler'(_0x43a893,_0x3565ad){const _0x12dfea=_0x3f2857;if(!_0x3565ad)return!0x1;if(_0x43a893['get'](_0x1664f5['IConfigService'])['getConfig'](_0x12dfea(0x36b)))return _0x43a893['get'](_0x12ae9f)[_0x12dfea(0x4d3)](_0x3565ad,_0x25242a=>_0x584920(_0x25242a['fieldsConfig'],_0x3565ad));let _0x3bd445=_0x43a893['get'](_0x360e3c),{unitId:_0x29f565,subUnitId:_0x4e2802,pivotTableId:_0x472688,options:_0x19da68,replace:_0x231e58}=_0x3565ad,_0x382650=_0x3bd445[_0x12dfea(0x3c7)](_0x472688);return _0x382650?(_0x382650[_0x12dfea(0x222)](_0x19da68,_0x231e58),_0x584920(_0x3bd445[_0x12dfea(0x610)](_0x29f565,_0x4e2802,_0x472688),_0x3565ad),_0x3bd445['addDirtyPivotTable']({'unitId':_0x29f565,'subUnitId':_0x4e2802,'token':_0x472688,'type':_0x12dfea(0x57d)}),!0x0):!0x1;}},_0x1292b4={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x210)],'id':_0x3f2857(0x3b0),'handler'(_0x571fdf,_0x4a43a1){const _0x4f876e=_0x3f2857;if(!_0x4a43a1)return!0x1;if(_0x571fdf[_0x4f876e(0x66e)](_0x1664f5[_0x4f876e(0x261)])[_0x4f876e(0x277)]('SHEET_PIVOT_IN_MAIN_THREAD')){var _0x114a55;let _0x320bda=_0x571fdf['get'](_0x12ae9f);return(_0x114a55=_0x320bda[_0x4f876e(0x3f5)](_0x4a43a1[_0x4f876e(0x339)],_0x4a43a1[_0x4f876e(0x555)],_0x4a43a1[_0x4f876e(0x581)]))!=null&&_0x114a55[_0x4f876e(0x1fa)][_0x4f876e(0x2d4)][_0x4a43a1[_0x4f876e(0x4d4)]]?_0x320bda[_0x4f876e(0x4d3)](_0x4a43a1,_0x49267b=>_0xbbdcee(_0x49267b[_0x4f876e(0x1fa)],_0x4a43a1)):!0x1;}let _0x1799a9=_0x571fdf[_0x4f876e(0x66e)](_0x360e3c),{unitId:_0x57daae,subUnitId:_0x9affdc,pivotTableId:_0x1e15b0,fieldId:_0x61844b,showDataAs:_0x9b33f8}=_0x4a43a1,_0xd3db71=_0x1799a9[_0x4f876e(0x3c7)](_0x1e15b0),_0x334b89=_0x1799a9[_0x4f876e(0x610)](_0x57daae,_0x9affdc,_0x1e15b0);return!_0xd3db71||!(_0x334b89!=null&&_0x334b89[_0x4f876e(0x2d4)][_0x61844b])?!0x1:(_0xd3db71[_0x4f876e(0x570)](_0x61844b,_0x9b33f8),_0xbbdcee(_0x334b89,_0x4a43a1),_0x1799a9[_0x4f876e(0x205)]({'unitId':_0x57daae,'subUnitId':_0x9affdc,'token':_0x1e15b0,'type':_0x4f876e(0x57d)}),!0x0);}},_0x491df6={'type':_0x1664f5[_0x3f2857(0x49f)]['MUTATION'],'id':_0x3f2857(0x5a4),'handler'(_0x1f4f6d,_0x142ddf){const _0x4f7dd5=_0x3f2857;if(!_0x142ddf)return!0x1;if(_0x1f4f6d[_0x4f7dd5(0x66e)](_0x1664f5[_0x4f7dd5(0x261)])[_0x4f7dd5(0x277)](_0x4f7dd5(0x36b)))return _0x1f4f6d[_0x4f7dd5(0x66e)](_0x12ae9f)[_0x4f7dd5(0x4d3)](_0x142ddf,_0x595183=>_0x852124(_0x595183[_0x4f7dd5(0x1fa)],_0x142ddf));let _0x127523=_0x1f4f6d[_0x4f7dd5(0x66e)](_0x360e3c),{unitId:_0x34e53f,subUnitId:_0x1fc044,pivotTableId:_0xa54d6c,sortInfo:_0x4328ae,fieldId:_0x20da06}=_0x142ddf,_0x50fd56=_0x127523[_0x4f7dd5(0x3c7)](_0xa54d6c);return _0x50fd56?(_0x50fd56[_0x4f7dd5(0x5f7)](_0x20da06,_0x4328ae),_0x852124(_0x127523[_0x4f7dd5(0x610)](_0x34e53f,_0x1fc044,_0xa54d6c),_0x142ddf),_0x127523[_0x4f7dd5(0x205)]({'unitId':_0x34e53f,'subUnitId':_0x1fc044,'token':_0xa54d6c,'type':'set'}),!0x0):!0x1;}},_0x53421b={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x210)],'id':_0x3f2857(0x257),'handler'(_0x436393,_0x5c2efe){const _0x1b4f28=_0x3f2857;if(!_0x5c2efe)return!0x1;if(_0x436393[_0x1b4f28(0x66e)](_0x1664f5[_0x1b4f28(0x261)])[_0x1b4f28(0x277)]('SHEET_PIVOT_IN_MAIN_THREAD'))return _0x436393['get'](_0x12ae9f)[_0x1b4f28(0x4d3)](_0x5c2efe,_0x21b75e=>_0x6156fd(_0x21b75e[_0x1b4f28(0x1fa)],_0x5c2efe));let _0x4f9330=_0x436393[_0x1b4f28(0x66e)](_0x360e3c),{unitId:_0x438c32,subUnitId:_0x40d5aa,pivotTableId:_0x446a0f,fieldId:_0x2f5ee1,subtotalType:_0x10f7a2}=_0x5c2efe,_0x34ed64=_0x4f9330[_0x1b4f28(0x3c7)](_0x446a0f);return _0x34ed64?(_0x34ed64[_0x1b4f28(0x208)](_0x2f5ee1,_0x10f7a2),_0x6156fd(_0x4f9330[_0x1b4f28(0x610)](_0x438c32,_0x40d5aa,_0x446a0f),_0x5c2efe),_0x4f9330[_0x1b4f28(0x205)]({'unitId':_0x438c32,'subUnitId':_0x40d5aa,'token':_0x446a0f,'type':_0x1b4f28(0x57d)}),!0x0):!0x1;}},_0x44d55a={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x210)],'id':_0x3f2857(0x482),'handler'(_0x683210,_0x5d9d43){const _0x54f197=_0x3f2857;if(!_0x5d9d43)return!0x1;if(_0x683210['get'](_0x1664f5[_0x54f197(0x261)])['getConfig'](_0x54f197(0x36b))){var _0x58bd5c;let _0x52ed90=_0x683210['get'](_0x12ae9f),_0x14726d=(_0x58bd5c=_0x52ed90[_0x54f197(0x3f5)](_0x5d9d43[_0x54f197(0x339)],_0x5d9d43[_0x54f197(0x555)],_0x5d9d43['pivotTableId']))==null?void 0x0:_0x58bd5c[_0x54f197(0x1fa)],{fieldId:_0x13d9ca,filterInfo:_0x3e4737}=_0x5d9d43;return!_0x14726d||!(_0x14726d[_0x54f197(0x1e9)][_0x54f197(0x3cd)](_0x13d9ca)||_0x14726d[_0x54f197(0x4f7)][_0x54f197(0x3cd)](_0x13d9ca))||_0x3e4737!==void 0x0&&(_0x3e4737[_0x54f197(0x4ee)]!==_0xaf0b54['PivotFilterTypeEnum'][_0x54f197(0x4fc)]||!_0x14726d[_0x54f197(0x2d4)][_0x3e4737[_0x54f197(0x260)]]||!(0x0,_0xaf0b54[_0x54f197(0x40f)])(_0x3e4737['operator']))?!0x1:_0x52ed90['applyConfigChange'](_0x5d9d43,_0x5c027b=>_0x114a99(_0x5c027b['fieldsConfig'],_0x5d9d43));}let _0x46ca1c=_0x683210['get'](_0x360e3c),{unitId:_0xe875cc,subUnitId:_0x4d866b,pivotTableId:_0x547d7a,fieldId:_0x39244f,filterInfo:_0x53bea3,index:_0x3a8e8d}=_0x5d9d43,_0x2197e1=_0x46ca1c[_0x54f197(0x3c7)](_0x547d7a),_0x56da30=_0x46ca1c['getPivotTableModelConfig'](_0xe875cc,_0x4d866b,_0x547d7a),_0x25c4de=!!(_0x56da30&&(_0x56da30[_0x54f197(0x1e9)][_0x54f197(0x3cd)](_0x39244f)||_0x56da30[_0x54f197(0x4f7)]['includes'](_0x39244f)));return!_0x2197e1||!_0x56da30||!_0x25c4de||_0x53bea3!==void 0x0&&(_0x53bea3[_0x54f197(0x4ee)]!==_0xaf0b54[_0x54f197(0x1c2)][_0x54f197(0x4fc)]||!_0x56da30['measure'][_0x53bea3['valueFieldId']]||!(0x0,_0xaf0b54[_0x54f197(0x40f)])(_0x53bea3[_0x54f197(0x3fd)]))?!0x1:(_0x2197e1[_0x54f197(0x598)](_0x39244f,_0x53bea3,_0x3a8e8d),_0x114a99(_0x56da30,_0x5d9d43),_0x46ca1c[_0x54f197(0x205)]({'unitId':_0xe875cc,'subUnitId':_0x4d866b,'token':_0x547d7a,'type':_0x54f197(0x57d)}),!0x0);}},_0x2bec20={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x210)],'id':_0x3f2857(0x65e),'handler'(_0x5d9a6b,_0x556096){const _0x1c245b=_0x3f2857;if(!_0x556096)return!0x1;if(_0x5d9a6b[_0x1c245b(0x66e)](_0x1664f5['IConfigService'])[_0x1c245b(0x277)](_0x1c245b(0x36b)))return _0x5d9a6b[_0x1c245b(0x66e)](_0x12ae9f)[_0x1c245b(0x4d3)](_0x556096,_0x1649bf=>_0x3a76e0(_0x1649bf[_0x1c245b(0x1fa)],_0x556096));let _0x205f39=_0x5d9a6b[_0x1c245b(0x66e)](_0x360e3c),{unitId:_0x16b4a5,subUnitId:_0x67e01b,pivotTableId:_0x87a074,area:_0x475fc2,index:_0x3a86ca,fieldId:_0x8b6006}=_0x556096,_0x5c097c=_0x205f39[_0x1c245b(0x3c7)](_0x87a074);return _0x5c097c?(_0x5c097c['updateFieldPosition'](_0x8b6006,_0x475fc2,_0x3a86ca),_0x3a76e0(_0x205f39[_0x1c245b(0x610)](_0x16b4a5,_0x67e01b,_0x87a074),_0x556096),_0x205f39[_0x1c245b(0x205)]({'unitId':_0x16b4a5,'subUnitId':_0x67e01b,'token':_0x87a074,'type':_0x1c245b(0x57d)}),!0x0):!0x1;}},_0x411a6a={'type':_0x1664f5['CommandType'][_0x3f2857(0x210)],'id':_0x3f2857(0x1c1),'handler'(_0xe14301,_0x466fb0){const _0x387b25=_0x3f2857;if(!_0x466fb0)return!0x1;if(_0xe14301['get'](_0x1664f5[_0x387b25(0x261)])[_0x387b25(0x277)]('SHEET_PIVOT_IN_MAIN_THREAD'))return _0xe14301[_0x387b25(0x66e)](_0x12ae9f)[_0x387b25(0x4d3)](_0x466fb0,_0x43e76d=>_0x5cb632(_0x43e76d[_0x387b25(0x1fa)],_0x466fb0));let _0x4045db=_0xe14301['get'](_0x360e3c),{unitId:_0x7ea40a,subUnitId:_0x3c72ac,pivotTableId:_0x556a03,sourceName:_0x25be60,dataFieldId:_0x275c3f,tableFieldId:_0xfb9ec5}=_0x466fb0,_0xf4796a=_0x4045db['getPivotTableInstance'](_0x556a03);return _0xf4796a?(_0xf4796a['updateFieldSourceInfo'](_0xfb9ec5,_0x25be60,_0x275c3f),_0x5cb632(_0x4045db[_0x387b25(0x610)](_0x7ea40a,_0x3c72ac,_0x556a03),_0x466fb0),_0x4045db['addDirtyPivotTable']({'unitId':_0x7ea40a,'subUnitId':_0x3c72ac,'token':_0x556a03,'type':'set'}),!0x0):!0x1;}},_0xb24c97={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x210)],'id':_0x3f2857(0x2a2),'handler'(_0xcd2701,_0x456044){const _0x4d4006=_0x3f2857;if(!_0x456044)return!0x1;if(_0xcd2701[_0x4d4006(0x66e)](_0x1664f5['IConfigService'])[_0x4d4006(0x277)](_0x4d4006(0x36b)))return _0xcd2701[_0x4d4006(0x66e)](_0x12ae9f)[_0x4d4006(0x4d3)](_0x456044,_0x216b22=>_0x5c5e65(_0x216b22[_0x4d4006(0x1fa)],_0x456044));let _0x22f938=_0xcd2701['get'](_0x360e3c),{unitId:_0x4b8081,subUnitId:_0x114c87,pivotTableId:_0xd9ba98,valuePosition:_0x2d1fa2,index:_0x248ba3}=_0x456044,_0x5f4488=_0x22f938[_0x4d4006(0x3c7)](_0xd9ba98);return _0x5f4488?(_0x5f4488[_0x4d4006(0x3d1)](_0x2d1fa2,_0x248ba3),_0x5c5e65(_0x22f938[_0x4d4006(0x610)](_0x4b8081,_0x114c87,_0xd9ba98),_0x456044),_0x22f938[_0x4d4006(0x205)]({'unitId':_0x4b8081,'subUnitId':_0x114c87,'token':_0xd9ba98,'type':_0x4d4006(0x57d)}),!0x0):!0x1;}};function _0xcb2ef3(_0x189eb,_0x1709a2){const _0x2b14de=_0x3f2857;if(_0x189eb['some'](({redos:_0x48078b,undos:_0x316098})=>_0x48078b[_0x2b14de(0x33b)]!==_0x316098['length']))return!0x1;let _0x28f5db=[];for(let {redos:_0x520250,undos:_0x180a96,reverse:_0x45da1d}of _0x189eb)for(let _0x4716ee=0x0;_0x4716ee<_0x520250[_0x2b14de(0x33b)];_0x4716ee++){let _0x2dd134=_0x520250[_0x4716ee],_0x13a336=!0x1;try{_0x13a336=_0x1709a2[_0x2b14de(0x4d5)](_0x2dd134['id'],_0x2dd134['params']);}catch{_0x13a336=!0x1;}if(!_0x13a336){for(let _0x249705=_0x28f5db[_0x2b14de(0x33b)]-0x1;_0x249705>=0x0;_0x249705--){let _0x4ad09e=_0x28f5db[_0x249705];_0x1709a2['syncExecuteCommand'](_0x4ad09e['id'],_0x4ad09e['params']);}return!0x1;}_0x28f5db['push'](_0x180a96[_0x45da1d?_0x180a96['length']-_0x4716ee-0x1:_0x4716ee]);}return!0x0;}function _0x22545e(_0x3e2b73,_0x1967a9,_0x5d2209){const _0x303f03=_0x3f2857;let {pivotTableId:_0x3ffa76,unitId:_0x4e975c,subUnitId:_0x13cff9}=_0x1967a9,_0x14f423=[],_0xfcab56=[];for(let _0x3b6f14 of _0x5d2209)switch(_0x3b6f14[_0x303f03(0x4ee)]){case _0xaf0b54[_0x303f03(0x470)][_0x303f03(0x433)]:{let {fieldJson:_0x17b2d7,area:_0x232993,index:_0x146b78}=_0x3b6f14,_0x140ef2={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'fieldJson':_0x17b2d7,'area':_0x232993,'index':_0x146b78},_0x422f19={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'fieldId':_0x17b2d7['id'],'area':_0x232993,'index':_0x146b78};_0x14f423[_0x303f03(0x4ef)]({'id':_0x119e28['id'],'params':_0x140ef2}),_0xfcab56[_0x303f03(0x32e)]({'id':_0x2d09c2['id'],'params':_0x422f19});}break;case _0xaf0b54[_0x303f03(0x470)]['SetSubtotalType']:{let {fieldId:_0x543380,newSubtotalType:_0x4b1af8,oldSubtotalType:_0x15f135}=_0x3b6f14,_0x3bb605={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'fieldId':_0x543380,'subtotalType':_0x4b1af8};_0x14f423[_0x303f03(0x4ef)]({'id':_0x53421b['id'],'params':_0x3bb605});let _0x34a0e3={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'fieldId':_0x543380,'subtotalType':_0x15f135};_0xfcab56[_0x303f03(0x32e)]({'id':_0x53421b['id'],'params':_0x34a0e3});}break;case _0xaf0b54['PivotTableChangeTypeEnum'][_0x303f03(0x505)]:{let {fieldId:_0x321df0,fieldJson:_0x2e6ca6,area:_0x20947a,index:_0x3bac75}=_0x3b6f14,_0x2d11f4={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'fieldId':_0x321df0,'index':_0x3bac75,'area':_0x20947a};_0x14f423[_0x303f03(0x4ef)]({'id':_0x2d09c2['id'],'params':_0x2d11f4});let _0x381327={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'fieldJson':_0x2e6ca6,'area':_0x20947a,'index':_0x3bac75};_0xfcab56[_0x303f03(0x32e)]({'id':_0x119e28['id'],'params':_0x381327});}break;case _0xaf0b54[_0x303f03(0x470)][_0x303f03(0x3e8)]:{let {fieldId:_0x2c94a1,oldName:_0x15667e,newName:_0x29f2ba}=_0x3b6f14,_0xb05e9a={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'fieldId':_0x2c94a1,'name':_0x29f2ba};_0x14f423[_0x303f03(0x4ef)]({'id':_0x9f1580['id'],'params':_0xb05e9a});let _0x2b4545={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'fieldId':_0x2c94a1,'name':_0x15667e};_0xfcab56[_0x303f03(0x32e)]({'id':_0x9f1580['id'],'params':_0x2b4545});}break;case _0xaf0b54[_0x303f03(0x470)][_0x303f03(0x496)]:{let {fieldId:_0xed2049,oldFilterInfo:_0x188613,newFilterInfo:_0x490bf5,oldConditionFilter:_0x5559bb,newConditionFilter:_0x4b836c}=_0x3b6f14,_0x56ce0b={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'fieldId':_0xed2049,'filterInfo':_0x490bf5,..._0x4b836c===void 0x0?{}:{'conditionFilter':_0x4b836c}};_0x14f423[_0x303f03(0x4ef)]({'id':_0x18d103['id'],'params':_0x56ce0b});let _0x15be05={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'fieldId':_0xed2049,'filterInfo':_0x188613,..._0x5559bb===void 0x0?{}:{'conditionFilter':_0x5559bb}};_0xfcab56[_0x303f03(0x32e)]({'id':_0x18d103['id'],'params':_0x15be05});}break;case _0xaf0b54[_0x303f03(0x470)][_0x303f03(0x284)]:{let {fieldId:_0x228f2b,oldSortInfo:_0x58530a,newSortInfo:_0x6681d6}=_0x3b6f14,_0x3792ea={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'fieldId':_0x228f2b,'sortInfo':_0x6681d6};_0x14f423[_0x303f03(0x4ef)]({'id':_0x491df6['id'],'params':_0x3792ea});let _0x5d7047={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'fieldId':_0x228f2b,'sortInfo':_0x58530a};_0xfcab56[_0x303f03(0x32e)]({'id':_0x491df6['id'],'params':_0x5d7047});}break;case _0xaf0b54[_0x303f03(0x470)][_0x303f03(0x64e)]:{let {fieldId:_0x418dd7,oldShowDataAs:_0x2f4644,newShowDataAs:_0x215e55}=_0x3b6f14,_0x289e6f={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'fieldId':_0x418dd7,'showDataAs':{..._0x215e55}};_0x14f423[_0x303f03(0x4ef)]({'id':_0x1292b4['id'],'params':_0x289e6f});let _0x9d82dd={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'fieldId':_0x418dd7,'showDataAs':{..._0x2f4644}};_0xfcab56[_0x303f03(0x32e)]({'id':_0x1292b4['id'],'params':_0x9d82dd});}break;case _0xaf0b54['PivotTableChangeTypeEnum'][_0x303f03(0x4db)]:{let {oldOptions:_0x57a39c,newOptions:_0x33a0e9}=_0x3b6f14,_0x1efae5={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'options':_0x33a0e9,'replace':!0x0};_0x14f423[_0x303f03(0x4ef)]({'id':_0xb703e['id'],'params':_0x1efae5});let _0x532b0e={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'options':_0x57a39c,'replace':!0x0};_0xfcab56[_0x303f03(0x32e)]({'id':_0xb703e['id'],'params':_0x532b0e});}break;case _0xaf0b54['PivotTableChangeTypeEnum'][_0x303f03(0x3fe)]:{let {oldLayout:_0x59638d,newLayout:_0x80e760}=_0x3b6f14,_0x56e0a5={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'layout':_0x80e760};_0x14f423[_0x303f03(0x4ef)]({'id':_0x3bc386['id'],'params':_0x56e0a5});let _0x1ea270={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'layout':_0x59638d};_0xfcab56[_0x303f03(0x32e)]({'id':_0x3bc386['id'],'params':_0x1ea270});}break;case _0xaf0b54[_0x303f03(0x470)][_0x303f03(0x2a5)]:{let {oldArea:_0x531276,newArea:_0x3b580c,oldIndex:_0x78eee0,newIndex:_0x23de88,fieldId:_0x213057}=_0x3b6f14,_0x343a4c={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'fieldId':_0x213057,'area':_0x3b580c,'index':_0x23de88,'oldArea':_0x531276,'oldIndex':_0x78eee0};_0x14f423['push']({'id':_0x2bec20['id'],'params':_0x343a4c});let _0x1b3c02={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'fieldId':_0x213057,'area':_0x531276,'index':_0x78eee0,'oldArea':_0x3b580c,'oldIndex':_0x23de88};_0xfcab56[_0x303f03(0x32e)]({'id':_0x2bec20['id'],'params':_0x1b3c02});}break;case _0xaf0b54['PivotTableChangeTypeEnum'][_0x303f03(0x4b2)]:{let {oldValuePosition:_0x5c92bb,newValuePosition:_0x54fb0d,oldIndex:_0x1b588c,newIndex:_0x2222ef}=_0x3b6f14,_0x43b745={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'valuePosition':_0x54fb0d,'index':_0x2222ef};_0x14f423[_0x303f03(0x4ef)]({'id':_0xb24c97['id'],'params':_0x43b745});let _0x188a9f={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'valuePosition':_0x5c92bb,'index':_0x1b588c};_0xfcab56[_0x303f03(0x32e)]({'id':_0xb24c97['id'],'params':_0x188a9f});}break;case _0xaf0b54[_0x303f03(0x470)][_0x303f03(0x58d)]:{let {fieldId:_0x21b70d,collapse:_0x2e5d3a,item:_0x338877,previous:_0x41bcf8}=_0x3b6f14,_0xc666e7={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'fieldId':_0x21b70d,'collapse':_0x2e5d3a,'item':_0x338877};_0x14f423[_0x303f03(0x4ef)]({'id':_0x450113['id'],'params':_0xc666e7});let _0x5a0bb1={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'fieldId':_0x21b70d,'collapse':_0x41bcf8?_0x41bcf8[_0x303f03(0x5b1)]:!_0x2e5d3a,'item':_0x41bcf8?void 0x0:_0x338877};_0xfcab56[_0x303f03(0x32e)]({'id':_0x450113['id'],'params':_0x5a0bb1});}break;case _0xaf0b54[_0x303f03(0x470)][_0x303f03(0x30a)]:{let {newFormat:_0x3a43ab,oldFormat:_0x1238b1,fieldId:_0x2b6514}=_0x3b6f14,_0x554c38={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'fieldId':_0x2b6514,'format':_0x3a43ab};_0x14f423[_0x303f03(0x4ef)]({'id':_0xa68ae['id'],'params':_0x554c38});let _0x28225d={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'fieldId':_0x2b6514,'format':_0x1238b1};_0xfcab56['unshift']({'id':_0xa68ae['id'],'params':_0x28225d});}break;case _0xaf0b54[_0x303f03(0x470)][_0x303f03(0x45f)]:{let {tableFieldId:_0x455df4,oldSourceName:_0x47e9b6,newSourceName:_0x1ca45d,oldDataFieldId:_0x43dccc,newDataFieldId:_0x7b2c7b}=_0x3b6f14,_0x391a78={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'tableFieldId':_0x455df4,'sourceName':_0x1ca45d,'dataFieldId':_0x7b2c7b};_0x14f423[_0x303f03(0x4ef)]({'id':_0x411a6a['id'],'params':_0x391a78});let _0x3db2da={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'tableFieldId':_0x455df4,'sourceName':_0x47e9b6,'dataFieldId':_0x43dccc};_0xfcab56[_0x303f03(0x32e)]({'id':_0x411a6a['id'],'params':_0x3db2da});}break;case _0xaf0b54[_0x303f03(0x470)][_0x303f03(0x59e)]:{let {fieldId:_0x40fa62,filterInfo:_0x254b19,oldFilterInfo:_0x31bf83,newIndex:_0x35b285,oldIndex:_0x33e106}=_0x3b6f14,_0xdb05d3={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'fieldId':_0x40fa62,'filterInfo':_0x254b19,'index':_0x35b285};_0x14f423[_0x303f03(0x4ef)]({'id':_0x44d55a['id'],'params':_0xdb05d3});let _0x1398ee={'unitId':_0x4e975c,'subUnitId':_0x13cff9,'pivotTableId':_0x3ffa76,'fieldId':_0x40fa62,'filterInfo':_0x31bf83,'index':_0x33e106};_0xfcab56[_0x303f03(0x32e)]({'id':_0x44d55a['id'],'params':_0x1398ee});}}return{'redos':_0x14f423,'undos':_0xfcab56};}function _0x413f0e(_0x29844e,_0x4fec52){const _0x5b370b=_0x3f2857;let _0x35850c=_0x29844e[_0x5b370b(0x66e)](_0x4bbba8),{cellInfo:_0x819b1e,view:_0x17850d,isEmpty:_0x3c32d2}=_0x4fec52;return _0x35850c[_0x5b370b(0x492)][_0x5b370b(0x2dc)](_0x5cb06e)(_0x85074c,{'cellInfo':_0x819b1e,'view':_0x17850d,'isEmpty':_0x3c32d2})??_0x85074c;}let _0x36ebd4={'type':_0x1664f5[_0x3f2857(0x49f)]['COMMAND'],'id':_0x3f2857(0x51f),async 'handler'(_0xaffab8,_0x4dc39f){const _0x11b1d8=_0x3f2857;if(!_0x4dc39f)return!0x1;let _0x5061bb=_0xaffab8[_0x11b1d8(0x66e)](_0x1664f5[_0x11b1d8(0x250)]),_0x5a744c=_0xaffab8['get'](_0x1b5924),_0x217333=_0xaffab8['get'](_0x1664f5[_0x11b1d8(0x435)]),{pivotTableId:_0x171f13,dataFieldId:_0x349d0a,fieldArea:_0x3ff5d1,index:_0x1878c5,unitId:_0x56366c,subUnitId:_0x4cc60d}=_0x4dc39f,_0x4df22a=(await _0x5a744c[_0x11b1d8(0x678)]({'unitId':_0x56366c,'subUnitId':_0x4cc60d,'pivotTableId':_0x171f13,'params':{'type':_0x11b1d8(0x1f9),'addPivotField':{'dataFieldId':_0x349d0a,'fieldArea':_0x3ff5d1,'index':_0x1878c5}}}))[_0x11b1d8(0x442)][_0x11b1d8(0x1f9)];if(!_0x4df22a)return!0x1;let {view:_0xb4973c,changesets:_0x5d342e,isEmpty:_0x11b839,pivotTableConfig:_0x3b7b42,shouldBeAddedGroupJSON:_0x6e4891}=_0x4df22a,_0x27433b=_0x3b7b42[_0x11b1d8(0x61d)],_0x50f634=new _0xaf0b54['PivotView']();_0x50f634[_0x11b1d8(0x45e)](_0xb4973c);let _0x48a5c8={'cellInfo':_0x27433b,'view':_0x50f634,'isEmpty':_0x11b839};if(!await _0xaffab8[_0x11b1d8(0x66e)](_0x4bbba8)['asyncInterceptor'][_0x11b1d8(0x386)](_0x4ac011)(!0x0,_0x48a5c8))return!0x1;let _0x49cad9=_0x426b89(_0xaffab8,_0x50f634,_0x27433b,_0x11b839),_0x117cf3=_0x413f0e(_0xaffab8,_0x48a5c8),{undos:_0x526605,redos:_0x29c835}=_0x22545e(_0x5061bb,{'pivotTableId':_0x171f13,'unitId':_0x56366c,'subUnitId':_0x4cc60d},_0x5d342e);return _0x6e4891&&(_0x29c835[_0x11b1d8(0x32e)]({'id':_0x427b54['id'],'params':{'pivotTableId':_0x171f13,'fieldJSON':_0x6e4891,'unitId':_0x56366c,'subUnitId':_0x4cc60d}}),_0x526605[_0x11b1d8(0x4ef)]({'id':_0x3b9dcc['id'],'params':{'pivotTableId':_0x171f13,'dataFieldId':_0x6e4891['id'],'unitId':_0x56366c,'subUnitId':_0x4cc60d}})),(0x0,_0x1664f5['sequenceExecute'])([..._0x49cad9['redos'],..._0x117cf3[_0x11b1d8(0x53d)],..._0x29c835],_0x5061bb)['result']?(_0x217333[_0x11b1d8(0x58b)]({'unitID':_0x56366c,'redoMutations':[..._0x49cad9[_0x11b1d8(0x53d)],..._0x117cf3[_0x11b1d8(0x53d)],..._0x29c835],'undoMutations':[..._0x49cad9['undos'],..._0x117cf3[_0x11b1d8(0x22e)],..._0x526605]}),!0x0):!0x1;}},_0x2a2de6=()=>typeof process<'u'&&process['versions']!=null&&process['versions'][_0x3f2857(0x63e)]!=null,_0x1f28a1={'type':_0x1664f5['CommandType'][_0x3f2857(0x210)],'id':_0x3f2857(0x667),'handler'(_0x2e2df8,_0x1ed31c){const _0x247dfe=_0x3f2857;if(!_0x1ed31c)return!0x1;let _0x2cbce3=_0x2e2df8[_0x247dfe(0x66e)](_0x1664f5['IConfigService']),{pivotTableId:_0x423420,pivotTableConfig:_0xe1ea70,collectionConfig:_0x4e18c1,unitId:_0x1da25,subUnitId:_0x2e7c36}=_0x1ed31c,_0x6351b0=_0x2e2df8[_0x247dfe(0x66e)](_0x1664f5[_0x247dfe(0x35a)])[_0x247dfe(0x300)](_0x1da25);if(!(_0x6351b0!=null&&_0x6351b0[_0x247dfe(0x2e4)](_0x2e7c36))||!_0x4e18c1||!_0xe1ea70[_0x247dfe(0x1fa)])return!0x1;if(_0x2cbce3[_0x247dfe(0x277)](_0x247dfe(0x36b))){let _0x489507=_0x2e2df8[_0x247dfe(0x66e)](_0x12ae9f);return _0x489507[_0x247dfe(0x33e)](()=>{const _0x1dcb3d=_0x247dfe;let _0x5c2999=_0x489507['prepareConfigBatch']([{'unitId':_0x1da25,'subUnitId':_0x2e7c36,'pivotTableId':_0x423420,'config':_0xe1ea70}]);_0x5c2999[_0x1dcb3d(0x2fd)](),_0x489507['updateCollectionMetadata'](_0xe1ea70[_0x1dcb3d(0x213)][_0x1dcb3d(0x339)],_0x423420,_0x4e18c1,_0xe1ea70['pivotCacheId']?{'pivotCacheId':_0xe1ea70[_0x1dcb3d(0x60a)],'sourceRangeInfo':_0xe1ea70['sourceRangeInfo']}:void 0x0),_0x5c2999[_0x1dcb3d(0x624)]();}),!0x0;}let _0xdccb51=_0x2e2df8['get'](_0x360e3c),{sourceRangeInfo:_0x2d0cc5,fieldsConfig:_0x52b598,targetCellInfo:_0x39f5e8}=_0xe1ea70;if(!_0x2a2de6()){let _0x3060e4=0x0;_0x6351b0['getSheets']()[_0x247dfe(0x211)](_0x7c4ae8=>{const _0x40c18b=_0x247dfe;var _0x1645bd;_0x3060e4+=((_0x1645bd=_0xdccb51[_0x40c18b(0x5ac)](_0x1da25,_0x7c4ae8[_0x40c18b(0x597)]()))==null?void 0x0:_0x1645bd[_0x40c18b(0x293)])??0x0;});let {ls:_0x2360f3,pbk:_0x5dd014}=_0x2cbce3[_0x247dfe(0x277)](_0xa6ca7c[_0x247dfe(0x1c8)])??{};if(!_0x1a37e4(_0x2360f3,_0x5dd014))throw new _0x1664f5[(_0x247dfe(0x3a0))]('limit\x20pivot');let _0x13c828=_0x4ac877(0x1,_0x2360f3,_0x5dd014)[_0x247dfe(0x421)];if(_0x3060e4>=_0x13c828)throw new _0x1664f5[(_0x247dfe(0x3a0))](_0x247dfe(0x5e2));}if(!_0x4e18c1||!_0x52b598)return!0x1;let {collection:_0x9f01c7,updateDataFieldList:_0x18c306}=_0xdccb51[_0x247dfe(0x5b0)](_0x423420,_0x4e18c1,_0x2d0cc5,_0x39f5e8);_0xdccb51['refreshData'](_0x9f01c7,_0x18c306,_0x2d0cc5);let _0x458024=new _0xaf0b54[(_0x247dfe(0x642))](_0x9f01c7,void 0x0,_0x423420);_0x458024[_0x247dfe(0x48c)](_0x52b598);let _0x3559ef=JSON['parse'](JSON[_0x247dfe(0x21f)](_0xe1ea70));return _0xdccb51[_0x247dfe(0x5ca)](_0x1da25,_0x2e7c36,_0x423420,_0x458024,_0x3559ef),_0xdccb51[_0x247dfe(0x205)]({'unitId':_0x1da25,'subUnitId':_0x2e7c36,'token':_0x423420,'type':_0x247dfe(0x373),'pivotConfig':_0x3559ef}),!0x0;}},_0x16d18d={'type':_0x1664f5[_0x3f2857(0x49f)]['COMMAND'],'id':_0x3f2857(0x393),async 'handler'(_0x450296,_0x3b1521){const _0xcd3121=_0x3f2857;if(!_0x3b1521)return!0x1;let {sourceDataInfo:_0x5c5664,pivotTableConfig:_0x1a0921}=_0x3b1521;if(!_0x5c5664||!_0x1a0921)return!0x1;let {unitId:_0x417384,subUnitId:_0x46b9a3,range:_0x4d2532}=_0x5c5664,_0x2fc2f0=_0x450296[_0xcd3121(0x66e)](_0x1664f5[_0xcd3121(0x35a)]),_0x525f61=_0x450296['get'](_0x1b5924),_0x248984=_0x450296['get'](_0x1664f5[_0xcd3121(0x4d7)]),_0xe4390b=_0x450296[_0xcd3121(0x66e)](_0x1664f5[_0xcd3121(0x250)]),_0x1e776a=_0x2fc2f0[_0xcd3121(0x300)](_0x417384);if(!_0x1e776a)return!0x1;let _0x1bd850=_0x1e776a[_0xcd3121(0x2e4)](_0x46b9a3);if(!_0x1bd850)return!0x1;let _0x201a4c=(0x0,_0xaf0b54[_0xcd3121(0x3c9)])(0x8),_0x1a4f22=_0x4d2532||{'startRow':0x0,'startColumn':0x0,'endRow':_0x1bd850[_0xcd3121(0x66b)]()-0x1,'endColumn':_0x1bd850[_0xcd3121(0x1af)]()-0x1};_0x1a4f22[_0xcd3121(0x62a)]=_0x1664f5[_0xcd3121(0x320)][_0xcd3121(0x37b)];let _0x22e89b=(await _0x525f61[_0xcd3121(0x678)]({'unitId':_0x417384,'subUnitId':_0x46b9a3,'pivotTableId':_0x201a4c,'params':{'type':_0xcd3121(0x67c),'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x417384,'sheetName':_0x1bd850[_0xcd3121(0x466)](),'subUnitId':_0x46b9a3,'range':_0x1a4f22},'pivotTableId':_0x201a4c,'pivotTableIndexConfig':_0x1a0921}}}))['result'][_0xcd3121(0x587)];if(!_0x22e89b)return!0x1;let {isEmpty:_0x435f88,fieldsConfig:_0x14e97c,collectionConfig:_0xa294d3,changesets:_0x1de433,pivotCacheId:_0x2f0081}=_0x22e89b,_0x14b537=_0x1e776a[_0xcd3121(0x437)]()[_0xcd3121(0x33b)],_0x507169=(0x0,_0x1664f5[_0xcd3121(0x518)])({'rowCount':_0x1bd850['getRowCount']()-0x1,'columnCount':_0x1bd850['getColumnCount']()-0x1});_0x507169['id']=(0x0,_0x1664f5[_0xcd3121(0x2a8)])(),_0x507169[_0xcd3121(0x1d6)]=_0x1e776a[_0xcd3121(0x27e)](''+_0x248984['t'](_0xcd3121(0x22b)));let _0x4007e8={'index':_0x14b537,'sheet':_0x507169,'unitId':_0x417384},{redos:_0x341f6d}=_0x22545e(_0xe4390b,{'pivotTableId':_0x201a4c,'unitId':_0x417384,'subUnitId':_0x507169['id']},_0x1de433),_0x1ad0a5=[{'id':_0x366635[_0xcd3121(0x218)]['id'],'params':_0x4007e8},{'id':_0x1f28a1['id'],'params':{'unitId':_0x417384,'subUnitId':_0x507169['id'],'pivotTableId':_0x201a4c,'pivotTableConfig':{'pivotCacheId':_0x2f0081,'isEmpty':_0x435f88,'fieldsConfig':_0x14e97c,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x417384,'subUnitId':_0x507169['id']},'sourceRangeInfo':{'subUnitId':_0x46b9a3,'unitId':_0x417384,'range':_0x1a4f22,'sheetName':_0x1bd850[_0xcd3121(0x466)]()}},'collectionConfig':_0xa294d3}},..._0x341f6d];return(0x0,_0x1664f5['sequenceExecute'])(_0x1ad0a5,_0xe4390b)['result'];}},_0x24f0e5={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x210)],'id':_0x3f2857(0x646),'handler'(_0x1f01f2,_0x45bcd0){const _0x402096=_0x3f2857;if(!_0x45bcd0)return!0x1;if(_0x1f01f2[_0x402096(0x66e)](_0x1664f5[_0x402096(0x261)])['getConfig'](_0x402096(0x36b))){let _0x3bb0fd=_0x1f01f2[_0x402096(0x66e)](_0x12ae9f),{unitId:_0x3db8a5,subUnitId:_0x3223fa,pivotTableId:_0x2b1628}=_0x45bcd0,_0x5c6d7c=_0x3bb0fd['getPivotTableConfig'](_0x3db8a5,_0x3223fa,_0x2b1628);return _0x5c6d7c?(_0x3bb0fd[_0x402096(0x33e)](()=>{const _0x285c83=_0x402096;_0x3bb0fd[_0x285c83(0x5e6)](_0x3db8a5,_0x3223fa,_0x2b1628,null),_0x3bb0fd[_0x285c83(0x39c)](_0x5c6d7c['sourceRangeInfo']['unitId'],_0x2b1628);}),!0x0):!0x1;}let {pivotTableId:_0xae110a,unitId:_0x480fe9,subUnitId:_0x5dbb26}=_0x45bcd0,_0x5c5648=_0x1f01f2['get'](_0x360e3c);return _0x5c5648[_0x402096(0x3f5)](_0x480fe9,_0x5dbb26,_0xae110a)?(_0x5c5648[_0x402096(0x205)]({'unitId':_0x480fe9,'subUnitId':_0x5dbb26,'token':_0xae110a,'type':'delete'}),_0x5c5648[_0x402096(0x275)](_0x480fe9,_0x5dbb26,_0xae110a),!0x0):!0x1;}},_0x4bd419={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x561)],'id':_0x3f2857(0x307),async 'handler'(_0x3cbeb2,_0x178bbf){const _0xa8d655=_0x3f2857;let _0x96ad9e=_0x3cbeb2[_0xa8d655(0x66e)](_0x1664f5[_0xa8d655(0x250)]),_0x407da2=_0x3cbeb2[_0xa8d655(0x66e)](_0x1664f5['IUniverInstanceService']),_0x50f3d4=_0x3cbeb2[_0xa8d655(0x66e)](_0x1664f5[_0xa8d655(0x4d7)]),_0x56a2a5=_0x3cbeb2[_0xa8d655(0x66e)](_0x1b5924),_0x1bf2c1=_0x3cbeb2['get'](_0x1664f5[_0xa8d655(0x435)]),_0x285365=_0x3cbeb2['get'](_0x12ae9f),_0x49f440=_0x3cbeb2[_0xa8d655(0x66e)](_0x1664f5[_0xa8d655(0x261)]);if(!_0x178bbf)return!0x1;let {pivotTableConfig:_0x2e8466,positionType:_0x3640e7}=_0x178bbf,{targetCellInfo:_0x251607,sourceRangeInfo:_0x4e8442}=_0x2e8466,{unitId:_0x486794,subUnitId:_0x4cb5b7}=_0x251607,_0xcd2c4f=_0x407da2[_0xa8d655(0x300)](_0x486794);if(!_0xcd2c4f)return!0x1;let _0x4246f3=0x0;_0xcd2c4f[_0xa8d655(0x437)]()[_0xa8d655(0x211)](_0x4570d3=>{const _0x1d8918=_0xa8d655;var _0x580a18;_0x4246f3+=((_0x580a18=_0x285365['getSubUnitPivotConfigs'](_0x486794,_0x4570d3['getSheetId']()))==null?void 0x0:_0x580a18[_0x1d8918(0x293)])??0x0;});let {ls:_0x2644f7,pbk:_0x19c9de}=_0x49f440[_0xa8d655(0x277)](_0xa6ca7c[_0xa8d655(0x1c8)])??{};if(!_0x1a37e4(_0x2644f7,_0x19c9de))return!0x1;let _0x48827c=_0x4ac877(0x1,_0x2644f7,_0x19c9de)[_0xa8d655(0x421)];if(_0x4246f3>=_0x48827c)return!0x1;let _0x49a6a3=_0x178bbf['pivotTableId']||(0x0,_0xaf0b54[_0xa8d655(0x3c9)])(0x8),_0x2c8e18=(await _0x56a2a5[_0xa8d655(0x678)]({'unitId':_0x486794,'subUnitId':_0x4cb5b7,'pivotTableId':_0x49a6a3,'params':{'type':_0xa8d655(0x5ca),'addPivotTable':{'sourceRangeInfo':_0x4e8442,'pivotTableId':_0x49a6a3}}}))['result'][_0xa8d655(0x5ca)];if(!_0x2c8e18)return!0x1;let {view:_0x255306,isEmpty:_0x4117a2,fieldsConfig:_0x22d1d1,collectionConfig:_0x3b31b6,pivotCacheId:_0x571a6d}=_0x2c8e18,_0x4289c4=[],_0x280c74=[];if(_0x3640e7==='new'){let _0x25108e=_0xcd2c4f['getSheets']()[_0xa8d655(0x33b)],_0x7018f0=(0x0,_0x1664f5[_0xa8d655(0x518)])({});_0x7018f0['id']=_0x2e8466[_0xa8d655(0x61d)][_0xa8d655(0x555)],_0x7018f0['name']=_0x2e8466[_0xa8d655(0x61d)][_0xa8d655(0x486)]??_0xcd2c4f[_0xa8d655(0x27e)](''+_0x50f3d4['t']('sheets-pivot.sheet'));let _0x46478d={'index':_0x25108e,'sheet':_0x7018f0,'unitId':_0x486794},_0x5d4ed5=(0x0,_0x366635[_0xa8d655(0x5c8)])(_0x3cbeb2,_0x46478d);_0x4289c4[_0xa8d655(0x4ef)]({'id':_0x366635[_0xa8d655(0x549)]['id'],'params':_0x5d4ed5}),_0x280c74[_0xa8d655(0x4ef)]({'id':_0x366635['InsertSheetMutation']['id'],'params':_0x46478d});}else{if(!_0xcd2c4f[_0xa8d655(0x2e4)](_0x4cb5b7))return!0x1;let _0x1b2f6a=new _0xaf0b54[(_0xa8d655(0x233))]();_0x1b2f6a['formJSON'](_0x255306);let _0x419914=_0x426b89(_0x3cbeb2,new _0xaf0b54[(_0xa8d655(0x233))](),_0x251607,!0x0);_0x280c74[_0xa8d655(0x4ef)](..._0x419914[_0xa8d655(0x53d)]),_0x4289c4[_0xa8d655(0x4ef)](..._0x419914[_0xa8d655(0x22e)]);let _0x926c6a={'cellInfo':_0x251607,'view':_0x1b2f6a,'isEmpty':_0x4117a2};if(!await _0x3cbeb2[_0xa8d655(0x66e)](_0x4bbba8)[_0xa8d655(0x679)][_0xa8d655(0x386)](_0x4ac011)(!0x0,_0x926c6a))return!0x1;let _0x5b906c=_0x413f0e(_0x3cbeb2,_0x926c6a);_0x280c74[_0xa8d655(0x4ef)](..._0x5b906c[_0xa8d655(0x53d)]),_0x4289c4[_0xa8d655(0x4ef)](..._0x5b906c[_0xa8d655(0x22e)]);}return _0x280c74[_0xa8d655(0x4ef)]({'id':_0x1f28a1['id'],'params':{'unitId':_0x251607[_0xa8d655(0x339)],'subUnitId':_0x251607[_0xa8d655(0x555)],'pivotTableId':_0x49a6a3,'pivotTableConfig':{'pivotCacheId':_0x571a6d,'targetCellInfo':_0x251607,'sourceRangeInfo':_0x4e8442,'fieldsConfig':_0x22d1d1,'isEmpty':_0x4117a2},'collectionConfig':_0x3b31b6}}),_0x4289c4[_0xa8d655(0x32e)]({'id':_0x24f0e5['id'],'params':{'unitId':_0x486794,'subUnitId':_0x4cb5b7,'pivotTableId':_0x49a6a3}}),(0x0,_0x1664f5[_0xa8d655(0x368)])(_0x280c74,_0x96ad9e)[_0xa8d655(0x442)]?(_0x1bf2c1['pushUndoRedo']({'unitID':_0x486794,'undoMutations':_0x4289c4,'redoMutations':_0x280c74}),!0x0):!0x1;}};function _0x1e3c04(_0x2fc82c){const _0x69d247=_0x3f2857;let _0x5858fc=_0x2fc82c['dataFieldsCollection'],_0x2c2ec0=_0x5858fc[_0x69d247(0x2c9)]()[_0x69d247(0x296)](_0x4941a1=>_0x5858fc[_0x69d247(0x352)](_0x4941a1))[_0x69d247(0x501)](_0xaf0b54[_0x69d247(0x5a3)]);if(!_0x2c2ec0[_0x69d247(0x33b)])return[];let _0x1d5994=new Map(_0x2c2ec0[_0x69d247(0x296)](_0x4c62e6=>[_0x4c62e6['getId'](),_0x4c62e6])),_0x32592f=_0x2fc82c[_0x69d247(0x2f9)](),_0xba9464=[[_0xaf0b54[_0x69d247(0x59c)][_0x69d247(0x3a3)],_0x32592f[_0x69d247(0x1e9)]],[_0xaf0b54['PivotTableFiledAreaEnum'][_0x69d247(0x32c)],_0x32592f[_0x69d247(0x4f7)]],[_0xaf0b54[_0x69d247(0x59c)][_0x69d247(0x397)],_0x32592f[_0x69d247(0x49a)]],[_0xaf0b54[_0x69d247(0x59c)][_0x69d247(0x346)],_0x32592f[_0x69d247(0x584)]],[_0xaf0b54[_0x69d247(0x59c)]['Value'],_0x32592f[_0x69d247(0x485)]]];for(let [_0x430878,_0x2c1672]of _0xba9464){let _0x414c92=new Set(_0x2c1672[_0x69d247(0x296)](_0x11ca61=>{const _0x5a89c0=_0x69d247;var _0x488957,_0x2d8568;return((_0x488957=_0x32592f[_0x5a89c0(0x57a)][_0x11ca61])==null?void 0x0:_0x488957[_0x5a89c0(0x365)])??((_0x2d8568=_0x32592f['measure'][_0x11ca61])==null?void 0x0:_0x2d8568[_0x5a89c0(0x365)]);})),_0x3dca12=new Map();_0x2c1672[_0x69d247(0x211)]((_0x583edb,_0x1d7e43)=>{const _0x246b96=_0x69d247;var _0x586621,_0x343a01;let _0x20c9b7=((_0x586621=_0x32592f[_0x246b96(0x57a)][_0x583edb])==null?void 0x0:_0x586621[_0x246b96(0x365)])??((_0x343a01=_0x32592f[_0x246b96(0x2d4)][_0x583edb])==null?void 0x0:_0x343a01[_0x246b96(0x365)]),_0x3788e0=_0x20c9b7?_0x1d5994[_0x246b96(0x66e)](_0x20c9b7):void 0x0;if(!_0x3788e0)return;let _0x3e04e8=_0x3788e0['getOriginFieldId']();!_0x414c92['has'](_0x3e04e8)&&!_0x3dca12[_0x246b96(0x3b2)](_0x3e04e8)&&_0x3dca12[_0x246b96(0x57d)](_0x3e04e8,_0x1d7e43),Object[_0x246b96(0x212)][_0x246b96(0x39b)][_0x246b96(0x1aa)](_0x32592f[_0x246b96(0x32f)],_0x583edb)&&_0x2fc82c[_0x246b96(0x20b)](_0x583edb,void 0x0),_0x2fc82c[_0x246b96(0x5b8)](_0x583edb);});for(let [_0xaed116,_0x1acf31]of _0x3dca12)_0x2fc82c[_0x69d247(0x26a)](_0xaed116,_0x430878,_0x1acf31);}return _0x2c2ec0['map'](_0x404c58=>_0x404c58['toJSON']());}let _0x5511ba=[_0xaf0b54[_0x3f2857(0x5d2)][_0x3f2857(0x324)],_0xaf0b54[_0x3f2857(0x5d2)]['YearQuarter'],_0xaf0b54[_0x3f2857(0x5d2)]['Quarter'],_0xaf0b54[_0x3f2857(0x5d2)][_0x3f2857(0x60e)],_0xaf0b54[_0x3f2857(0x5d2)]['Month'],_0xaf0b54[_0x3f2857(0x5d2)][_0x3f2857(0x4c3)],_0xaf0b54[_0x3f2857(0x5d2)][_0x3f2857(0x31c)],_0xaf0b54[_0x3f2857(0x5d2)][_0x3f2857(0x5c9)],_0xaf0b54[_0x3f2857(0x5d2)][_0x3f2857(0x291)],_0xaf0b54[_0x3f2857(0x5d2)][_0x3f2857(0x5a1)],_0xaf0b54[_0x3f2857(0x5d2)][_0x3f2857(0x431)]];function _0x24d7ae(_0x36c284,_0x4b298f,_0xf99b8f){const _0x5d0f4f=_0x3f2857;if(!(_0x36c284!=null&&_0x36c284[_0x5d0f4f(0x57a)])||!(_0x4b298f!=null&&_0x4b298f[_0x5d0f4f(0x390)]))return;let _0x2fe780=_0x36c284['dimension'][_0xf99b8f];if(!_0x2fe780)return;let _0x5efde5=_0x55b616(_0x36c284,_0xf99b8f);if(!_0x5efde5)return;let _0x5207db=_0x4b298f[_0x5d0f4f(0x390)][_0x2fe780['dataFieldId']];if(!_0x5207db)return;let _0x14ece6=(0x0,_0xaf0b54[_0x5d0f4f(0x31f)])(_0x5207db);if(!_0x14ece6&&_0x5207db[_0x5d0f4f(0x507)]!==_0xaf0b54[_0x5d0f4f(0x493)][_0x5d0f4f(0x452)])return;let _0x5915d8=_0x14ece6?_0x5207db[_0x5d0f4f(0x5ed)]:_0x5207db['id'],_0x26cdf2=_0xa07193(_0x36c284,_0x5efde5)[_0x5d0f4f(0x367)]((_0x215270,_0x3632ae)=>{const _0x179ea5=_0x5d0f4f;if(_0x3632ae===_0xf99b8f)return _0x215270;let _0x41aa54=_0x36c284[_0x179ea5(0x57a)][_0x3632ae],_0x1b631e=_0x41aa54?_0x4b298f['fields'][_0x41aa54[_0x179ea5(0x365)]]:void 0x0;return _0x1b631e&&(0x0,_0xaf0b54[_0x179ea5(0x31f)])(_0x1b631e)&&_0x1b631e[_0x179ea5(0x5ed)]===_0x5915d8&&_0x1b631e[_0x179ea5(0x52f)]&&_0x215270[_0x179ea5(0x4ef)](_0x1b631e[_0x179ea5(0x52f)]),_0x215270;},[]);return{'kind':_0x14ece6?_0x5d0f4f(0x1cd):_0x5d0f4f(0x5ce),'area':_0x5efde5,'tableFieldId':_0xf99b8f,'dataFieldId':_0x5207db['id'],'originalDataFieldId':_0x5915d8,'currentDateType':_0x14ece6?_0x5207db['dateType']??_0xaf0b54[_0x5d0f4f(0x5d2)][_0x5d0f4f(0x324)]:void 0x0,'siblingDateTypes':_0x26cdf2,'insertIndex':_0x26a5da(_0x36c284,_0x4b298f,_0x5efde5,_0xf99b8f,_0x5915d8)};}function _0x3c551e(_0x3998b6,_0x338e2c){const _0x30265f=_0x3f2857;return!_0x5511ba[_0x30265f(0x3cd)](_0x338e2c)||_0x3998b6[_0x30265f(0x24f)]===_0x338e2c||_0x3998b6[_0x30265f(0x2f7)][_0x30265f(0x3cd)](_0x338e2c);}function _0x55b616(_0x46aac5,_0x49f3ed){const _0x2135a3=_0x3f2857;if(_0x46aac5['rowFields'][_0x2135a3(0x3cd)](_0x49f3ed))return _0xaf0b54['PivotTableFiledAreaEnum']['Row'];if(_0x46aac5[_0x2135a3(0x4f7)][_0x2135a3(0x3cd)](_0x49f3ed))return _0xaf0b54[_0x2135a3(0x59c)][_0x2135a3(0x32c)];}function _0xa07193(_0xb00aed,_0x156fea){const _0x6bf5a7=_0x3f2857;return _0x156fea===_0xaf0b54[_0x6bf5a7(0x59c)][_0x6bf5a7(0x3a3)]?_0xb00aed[_0x6bf5a7(0x1e9)]:_0xb00aed[_0x6bf5a7(0x4f7)];}function _0x26a5da(_0x47e2c4,_0x4eb397,_0x23ed2d,_0x324d96,_0x369b31){const _0x5e69d4=_0x3f2857;let _0x3966f5=_0xa07193(_0x47e2c4,_0x23ed2d),_0x46a34a=_0x3966f5[_0x5e69d4(0x52a)](_0x324d96);if(_0x46a34a===-0x1)return _0x3966f5[_0x5e69d4(0x33b)];let _0x34b15a=_0x46a34a;for(let _0x55033c=0x0;_0x55033c<_0x46a34a;_0x55033c++){let _0x57d371=_0x47e2c4[_0x5e69d4(0x57a)][_0x3966f5[_0x55033c]],_0x45a2d8=_0x57d371?_0x4eb397[_0x5e69d4(0x390)][_0x57d371[_0x5e69d4(0x365)]]:void 0x0;_0x45a2d8&&(0x0,_0xaf0b54[_0x5e69d4(0x31f)])(_0x45a2d8)&&_0x45a2d8[_0x5e69d4(0x5ed)]===_0x369b31&&(_0x34b15a=_0x55033c+0x1);}return _0x34b15a;}let _0x37d22c={'type':_0x1664f5['CommandType']['COMMAND'],'id':_0x3f2857(0x45b),async 'handler'(_0x856ffa,_0x345d7a){const _0xd20c41=_0x3f2857;if(!_0x345d7a)return!0x1;let _0x54e8d8=_0x856ffa[_0xd20c41(0x66e)](_0x1664f5[_0xd20c41(0x250)]),_0x300df7=_0x856ffa['get'](_0x1b5924),_0x4ead6b=_0x856ffa[_0xd20c41(0x66e)](_0x1664f5[_0xd20c41(0x435)]),{pivotTableId:_0x5444ac,fieldId:_0x2e200a,area:_0x35f6da,index:_0x46e8bc,unitId:_0x39ba01,subUnitId:_0x5b0799}=_0x345d7a,_0x15f454=(await _0x300df7[_0xd20c41(0x678)]({'unitId':_0x39ba01,'subUnitId':_0x5b0799,'pivotTableId':_0x5444ac,'params':{'type':'movePivotField','movePivotField':{'fieldId':_0x2e200a,'area':_0x35f6da,'index':_0x46e8bc}}}))[_0xd20c41(0x442)][_0xd20c41(0x1e1)];if(!_0x15f454)return!0x1;let {changesets:_0x5e23ad,view:_0x4ba815,isEmpty:_0x3e680a,pivotTableConfig:_0x45b168}=_0x15f454,_0x7f908c=_0x45b168[_0xd20c41(0x61d)],_0x1a0e8f=new _0xaf0b54[(_0xd20c41(0x233))]();_0x1a0e8f[_0xd20c41(0x45e)](_0x4ba815);let _0x5e11fc={'cellInfo':_0x7f908c,'view':_0x1a0e8f,'isEmpty':_0x3e680a};if(!await _0x856ffa['get'](_0x4bbba8)[_0xd20c41(0x679)]['fetchThroughAsyncInterceptors'](_0x4ac011)(!0x0,_0x5e11fc))return!0x1;let _0x509846=_0x426b89(_0x856ffa,_0x1a0e8f,_0x7f908c,_0x3e680a),_0x3dada5=_0x413f0e(_0x856ffa,_0x5e11fc),{redos:_0xb50071,undos:_0x3d74f0}=_0x22545e(_0x54e8d8,{'pivotTableId':_0x5444ac,'unitId':_0x39ba01,'subUnitId':_0x5b0799},_0x5e23ad);return(0x0,_0x1664f5[_0xd20c41(0x368)])([..._0x509846[_0xd20c41(0x53d)],..._0x3dada5['redos'],..._0xb50071],_0x54e8d8)[_0xd20c41(0x442)]?(_0x4ead6b[_0xd20c41(0x58b)]({'unitID':_0x39ba01,'redoMutations':[..._0x509846[_0xd20c41(0x53d)],..._0x3dada5['redos'],..._0xb50071],'undoMutations':[..._0x509846['undos'],..._0x3dada5[_0xd20c41(0x22e)],..._0x3d74f0]}),!0x0):!0x1;}},_0x2a8fe8={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x210)],'id':_0x3f2857(0x4fe),'handler'(_0xe4ff9,_0x4cc67c){const _0x179dbf=_0x3f2857;if(!_0x4cc67c)return!0x1;if(_0xe4ff9['get'](_0x1664f5[_0x179dbf(0x261)])[_0x179dbf(0x277)]('SHEET_PIVOT_IN_MAIN_THREAD')){let _0x2e375d=_0xe4ff9[_0x179dbf(0x66e)](_0x12ae9f),{unitId:_0x18d002,subUnitId:_0x4837c1,pivotTableId:_0x408115,targetCellPosition:_0xdcb01c}=_0x4cc67c,_0x34f1d3=_0x2e375d[_0x179dbf(0x414)](_0x18d002,_0x408115),_0x45306e=_0x34f1d3&&_0x2e375d['getPivotTableConfig'](_0x34f1d3[_0x179dbf(0x339)],_0x34f1d3['subUnitId'],_0x408115);if(!_0x34f1d3||!_0x45306e)return!0x1;let _0x5bb952=_0x1664f5[_0x179dbf(0x5b7)][_0x179dbf(0x62b)](_0x45306e);_0x5bb952['targetCellInfo']={'unitId':_0x18d002,'subUnitId':_0x4837c1,'row':_0xdcb01c['row'],'col':_0xdcb01c[_0x179dbf(0x1ad)]};let _0x217036=_0x2e375d[_0x179dbf(0x497)]([{'unitId':_0x18d002,'subUnitId':_0x4837c1,'pivotTableId':_0x408115,'config':_0x5bb952}]);return _0x2e375d[_0x179dbf(0x33e)](()=>{const _0x5e3a2a=_0x179dbf;(_0x34f1d3[_0x5e3a2a(0x339)]!==_0x18d002||_0x34f1d3[_0x5e3a2a(0x555)]!==_0x4837c1)&&_0x2e375d[_0x5e3a2a(0x5e6)](_0x34f1d3[_0x5e3a2a(0x339)],_0x34f1d3[_0x5e3a2a(0x555)],_0x408115,null),_0x217036['commit'](),_0x217036[_0x5e3a2a(0x624)]();}),!0x0;}let {pivotTableId:_0x7a33a4,targetCellPosition:_0x1b6451,unitId:_0x50784e,subUnitId:_0x13c366}=_0x4cc67c,_0x5a3b1e=_0xe4ff9[_0x179dbf(0x66e)](_0x360e3c);if(!_0x5a3b1e['getPivotTableInstance'](_0x4cc67c[_0x179dbf(0x581)]))return!0x1;let _0x13597a=_0x5a3b1e[_0x179dbf(0x3a8)](_0x7a33a4);if(!_0x13597a)return!0x1;let _0xbb216f=_0x5a3b1e['getCollection'](_0x13597a['unitId'],_0x4cc67c['pivotTableId']);if(!_0xbb216f)return!0x1;let _0x3ee36f=_0x5a3b1e[_0x179dbf(0x3f5)](_0x13597a[_0x179dbf(0x339)],_0x13597a[_0x179dbf(0x555)],_0x7a33a4);if(!_0x3ee36f)return!0x1;let _0x4941df=_0x1664f5[_0x179dbf(0x5b7)][_0x179dbf(0x62b)](_0x3ee36f);_0x4941df[_0x179dbf(0x61d)]={'unitId':_0x50784e,'subUnitId':_0x13c366,'row':_0x1b6451['row'],'col':_0x1b6451[_0x179dbf(0x1ad)]};let _0x142b01=_0xbb216f[_0x179dbf(0x2f9)]();if(_0x13597a[_0x179dbf(0x555)]===_0x13c366&&_0x13597a[_0x179dbf(0x339)]===_0x50784e)_0x5a3b1e[_0x179dbf(0x272)](_0x50784e,_0x13c366,_0x7a33a4,_0x4941df),_0x5a3b1e[_0x179dbf(0x205)]({'unitId':_0x50784e,'subUnitId':_0x13c366,'token':_0x7a33a4,'type':'set'});else{_0x5a3b1e['addDirtyPivotTable']({'unitId':_0x13597a['unitId'],'subUnitId':_0x13597a['subUnitId'],'token':_0x7a33a4,'type':_0x179dbf(0x4a7)}),_0x5a3b1e[_0x179dbf(0x275)](_0x13597a['unitId'],_0x13597a[_0x179dbf(0x555)],_0x7a33a4);let _0x508f0c=_0x5a3b1e[_0x179dbf(0x5b0)](_0x7a33a4,_0x142b01,_0x3ee36f['sourceRangeInfo'],_0x4941df[_0x179dbf(0x61d)]),_0x477d04=new _0xaf0b54[(_0x179dbf(0x642))](_0x508f0c[_0x179dbf(0x23a)],void 0x0,_0x7a33a4);_0x477d04[_0x179dbf(0x48c)](_0x4941df[_0x179dbf(0x1fa)]),_0x5a3b1e[_0x179dbf(0x5ca)](_0x50784e,_0x13c366,_0x7a33a4,_0x477d04,_0x4941df),_0x5a3b1e[_0x179dbf(0x205)]({'unitId':_0x50784e,'subUnitId':_0x13c366,'token':_0x7a33a4,'type':_0x179dbf(0x373),'pivotConfig':_0x4941df});}return!0x0;}},_0x554c90={'type':_0x1664f5[_0x3f2857(0x49f)]['COMMAND'],'id':_0x3f2857(0x1b5),'handler':(_0x2cc63f,_0x30be24)=>{const _0x3cc589=_0x3f2857;if(!_0x30be24)return!0x1;let _0x1fe7ed=(0x0,_0x366635[_0x3cc589(0x4cb)])(_0x2cc63f[_0x3cc589(0x66e)](_0x1664f5[_0x3cc589(0x35a)]),{'unitId':_0x30be24[_0x3cc589(0x61d)][_0x3cc589(0x339)],'subUnitId':_0x30be24[_0x3cc589(0x61d)][_0x3cc589(0x555)]});if(!_0x1fe7ed)throw Error('[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid');let _0x4214b0=_0x2cc63f[_0x3cc589(0x66e)](_0x12ae9f)[_0x3cc589(0x3f5)](_0x30be24[_0x3cc589(0x5c2)][_0x3cc589(0x339)],_0x30be24['originTargetInfo'][_0x3cc589(0x555)],_0x30be24[_0x3cc589(0x581)]);if(!_0x4214b0)return!0x1;let _0x29bc75=_0x2cc63f[_0x3cc589(0x66e)](_0x1664f5['ICommandService']),_0x4aadc8=_0x2cc63f[_0x3cc589(0x66e)](_0x1664f5[_0x3cc589(0x435)]),{unitId:_0x12ba04,subUnitId:_0x3438e8,worksheet:_0x1add92}=_0x1fe7ed,_0x401962=_0x1add92['getRowCount'](),_0x150a56=_0x1add92[_0x3cc589(0x1af)]();if(_0x30be24[_0x3cc589(0x61d)]['row']>_0x401962||_0x30be24[_0x3cc589(0x61d)][_0x3cc589(0x1ad)]>_0x150a56)throw Error(_0x3cc589(0x461));let _0x52b22e=[{'id':_0x2a8fe8['id'],'params':{'unitId':_0x12ba04,'subUnitId':_0x30be24[_0x3cc589(0x61d)][_0x3cc589(0x555)],'pivotTableId':_0x30be24[_0x3cc589(0x581)],'targetCellPosition':{'row':_0x30be24['targetCellInfo'][_0x3cc589(0x4a2)],'col':_0x30be24['targetCellInfo'][_0x3cc589(0x1ad)]}}}],_0x41ae0e=[{'id':_0x2a8fe8['id'],'params':{'unitId':_0x12ba04,'subUnitId':_0x3438e8,'pivotTableId':_0x30be24[_0x3cc589(0x581)],'targetCellPosition':{'row':_0x4214b0[_0x3cc589(0x61d)]['row'],'col':_0x4214b0[_0x3cc589(0x61d)][_0x3cc589(0x1ad)]}}}];return(0x0,_0x1664f5[_0x3cc589(0x368)])(_0x52b22e,_0x29bc75)[_0x3cc589(0x442)]?(_0x4aadc8[_0x3cc589(0x58b)]({'unitID':_0x12ba04,'undoMutations':_0x41ae0e,'redoMutations':_0x52b22e}),!0x0):!0x1;}},_0x55c09a={'type':_0x1664f5['CommandType']['COMMAND'],'id':'sheet.command.pivot-drill-down',async 'handler'(_0x5082d8,_0x5dc97e){const _0xf6f233=_0x3f2857;var _0x4b94ad;if(!_0x5dc97e)return!0x1;let _0x46e9b7=_0x5082d8[_0xf6f233(0x66e)](_0x1664f5[_0xf6f233(0x35a)]),_0x410631=(0x0,_0x366635[_0xf6f233(0x4cb)])(_0x46e9b7);if(!_0x410631)return!0x1;let {unitId:_0x349fe9,subUnitId:_0x19a6b6,workbook:_0x27cbd5}=_0x410631,{row:_0x5bcd65,col:_0x1d7378}=_0x5dc97e,_0x4c047c=_0x5082d8[_0xf6f233(0x66e)](_0xee2d82),_0x1c2349=_0x4c047c['getPivotTableIdByCell'](_0x349fe9,_0x19a6b6,_0x5bcd65,_0x1d7378);if(!_0x1c2349)return!0x1;let _0x2c11c8=(_0x4b94ad=_0x4c047c['getPivotItemRenderInfoCache'](_0x349fe9,_0x19a6b6,_0x1c2349))==null?void 0x0:_0x4b94ad['areaInfo'];if(!_0x2c11c8)return!0x1;let _0x307c5=_0x5082d8['get'](_0x12ae9f)['getPivotTableConfig'](_0x349fe9,_0x19a6b6,_0x1c2349);if(!_0x307c5)return!0x1;let {rowInfo:_0x1cbdcc,colInfo:_0x39cec1}=_0x2c11c8,_0x5b2181=_0x1cbdcc[_0x5bcd65],_0x3d3c25=_0x39cec1[_0x1d7378];if(!_0x5b2181||!_0x3d3c25)return!0x1;let _0x25afaa=_0x5b2181[_0xf6f233(0x3f6)],_0x32e3ed=_0x3d3c25['paths'],_0x418176=_0x5b2181['level'],_0x4111bb=_0x3d3c25[_0xf6f233(0x3ef)],_0x1c41cb=_0x25afaa[_0xf6f233(0x264)](_0x32e3ed),_0x3f9a19=_0x307c5[_0xf6f233(0x1fa)][_0xf6f233(0x1e9)][_0xf6f233(0x517)](0x0,_0x418176),_0x43ce1c=_0x307c5[_0xf6f233(0x1fa)]['columnFields']['slice'](0x0,_0x4111bb),_0x5020ae=_0x3f9a19[_0xf6f233(0x264)](_0x43ce1c),_0x7e22fe=_0x1c41cb[_0xf6f233(0x296)]((_0x1f89f7,_0x4e87fb)=>[_0x1f89f7,_0x5020ae[_0x4e87fb]]),_0xa9218c=(await _0x5082d8[_0xf6f233(0x66e)](_0x1b5924)[_0xf6f233(0x678)]({'unitId':_0x349fe9,'subUnitId':_0x19a6b6,'pivotTableId':_0x1c2349,'params':{'type':_0xf6f233(0x4ad),'drillDown':{'tuple':_0x7e22fe}}}))[_0xf6f233(0x442)][_0xf6f233(0x4ad)];if(!_0xa9218c)return!0x1;let {indexes:_0x5dc848,range:_0x5422f6,sourceUnitId:_0x1c4792,sourceSubUnitId:_0xefe271,formatMap:_0x41546b}=_0xa9218c,{startRow:_0x37753f,endRow:_0x1eee1b,startColumn:_0x4e3806,endColumn:_0x3c6fbf}=_0x5422f6,_0x14f7f2=new _0x1664f5['ObjectMatrix'](),_0x5d744f=_0x1eee1b-_0x37753f,_0x54da1e=_0x3c6fbf-_0x4e3806,_0x56d07f={},_0xe28e0f=(0x0,_0x366635[_0xf6f233(0x4cb)])(_0x46e9b7,{'unitId':_0x1c4792,'subUnitId':_0xefe271});if(!_0xe28e0f)return!0x1;let _0x3637bd=_0x3cdbee['colStyle'],_0x4610c3=_0x3cdbee['subTotalStyle'],_0x1a45ca=_0x3cdbee[_0xf6f233(0x3b4)],_0x329a82=_0x27cbd5[_0xf6f233(0x1b6)]()[_0xf6f233(0x404)](_0x3637bd),_0x4047ef=_0x27cbd5['getStyles']()['setValue'](_0x4610c3),_0xd92544=_0x27cbd5[_0xf6f233(0x1b6)]()[_0xf6f233(0x404)](_0x1a45ca),{worksheet:_0xe44357}=_0xe28e0f,_0x36c6cf=0x0;_0x5dc848[_0xf6f233(0x211)](_0x22bc80=>{const _0x468dce=_0xf6f233;for(let _0xa019ec=0x0;_0xa019ec<=_0x3c6fbf-_0x4e3806;_0xa019ec++)_0x14f7f2[_0x468dce(0x404)](_0x36c6cf,_0xa019ec,_0xe44357[_0x468dce(0x1ed)](_0x22bc80+_0x5422f6[_0x468dce(0x5bb)]+0x1,_0xa019ec));_0x36c6cf++;});for(let _0x503141=_0x4e3806;_0x503141<=_0x3c6fbf;_0x503141++){let _0x15e8ef=_0xe44357[_0xf6f233(0x1ed)](_0x37753f,_0x503141);_0x56d07f[_0x37753f]||(_0x56d07f[_0x37753f]={}),_0x56d07f[_0x37753f][_0x503141]={..._0x15e8ef,'s':_0x329a82};}let _0x1ca912=0x1,_0x5237a3={},_0x3e66ff={};_0x14f7f2['forRow']((_0xa2d9e1,_0x2a8e09)=>{const _0x476e3f=_0xf6f233;_0x2a8e09[_0x476e3f(0x211)](_0x1c191a=>{const _0x48fbb0=_0x476e3f;let _0x26b339=_0x14f7f2[_0x48fbb0(0x57c)](_0xa2d9e1,_0x1c191a);if(_0x56d07f[_0x1ca912]||(_0x56d07f[_0x1ca912]={}),_0x56d07f[_0x1ca912][_0x1c191a]={..._0x26b339,'s':_0x1ca912%0x2==0x0?_0xd92544:_0x4047ef},_0x41546b[_0x1c191a]&&_0xa2d9e1>=0x0){let _0x86f501=_0x1ca912%0x2==0x0,_0xfcd832=_0x86f501?_0x3e66ff[_0x1c191a]:_0x5237a3[_0x1c191a];_0xfcd832||(_0xfcd832=_0x27cbd5[_0x48fbb0(0x1b6)]()[_0x48fbb0(0x404)]({..._0x86f501?_0x1a45ca:_0x4610c3,'n':{'pattern':_0x41546b[_0x1c191a]}}),_0x86f501?_0x3e66ff[_0x1c191a]=_0xfcd832:_0x5237a3[_0x1c191a]=_0xfcd832),_0x56d07f[_0x1ca912][_0x1c191a]['s']=_0xfcd832;}}),_0x1ca912++;});let _0x434f0c=new _0x1664f5[(_0xf6f233(0x40b))](_0x56d07f),_0x2fdc85={};_0x434f0c[_0xf6f233(0x429)]((_0x2368fe,_0x42078b,_0x52ca26)=>{_0x2fdc85[_0x2368fe]||(_0x2fdc85[_0x2368fe]={}),_0x2fdc85[_0x2368fe][_0x42078b]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});let _0x196a56=[],_0x53920b=[],_0xc203a4=_0x27cbd5[_0xf6f233(0x437)]()[_0xf6f233(0x33b)],_0x1b1cb1=(0x0,_0x1664f5[_0xf6f233(0x518)])({'rowCount':Math[_0xf6f233(0x27f)](_0x1664f5['DEFAULT_WORKSHEET_ROW_COUNT'],_0x5d744f+0xa),'columnCount':Math[_0xf6f233(0x27f)](_0x1664f5[_0xf6f233(0x20e)],_0x54da1e+0x5)}),_0x190107=_0x5082d8[_0xf6f233(0x66e)](_0x1664f5[_0xf6f233(0x4d7)]);_0x1b1cb1['id']=(0x0,_0x1664f5[_0xf6f233(0x2a8)])(),_0x1b1cb1[_0xf6f233(0x1d6)]=_0x27cbd5[_0xf6f233(0x27e)](''+_0x190107['t'](_0xf6f233(0x22b)));let _0x3ddd9c={'index':_0xc203a4,'sheet':_0x1b1cb1,'unitId':_0x349fe9},_0x3a8cae=(0x0,_0x366635['InsertSheetUndoMutationFactory'])(_0x5082d8,_0x3ddd9c);_0x53920b[_0xf6f233(0x4ef)]({'id':_0x366635['InsertSheetMutation']['id'],'params':_0x3ddd9c}),_0x196a56[_0xf6f233(0x4ef)]({'id':_0x366635[_0xf6f233(0x549)]['id'],'params':_0x3a8cae}),_0x53920b['push']({'id':_0x366635[_0xf6f233(0x662)]['id'],'params':{'unitId':_0x349fe9,'subUnitId':_0x1b1cb1['id'],'cellValue':_0x56d07f}}),_0x196a56[_0xf6f233(0x32e)]({'id':_0x366635['SetRangeValuesMutation']['id'],'params':{'unitId':_0x349fe9,'subUnitId':_0x1b1cb1['id'],'cellValue':_0x2fdc85}});let _0x375490={'startRow':0x0,'startColumn':0x0,'endRow':_0x1ca912-0x1,'endColumn':_0x3c6fbf};_0x53920b[_0xf6f233(0x4ef)]({'id':_0x18255f[_0xf6f233(0x200)]['id'],'params':{'unitId':_0x349fe9,'subUnitId':_0x1b1cb1['id'],'range':_0x375490}}),_0x196a56[_0xf6f233(0x32e)]({'id':_0x18255f[_0xf6f233(0x550)]['id'],'params':{'unitId':_0x349fe9,'subUnitId':_0x1b1cb1['id']}});let _0x12c3e3=_0x5082d8[_0xf6f233(0x66e)](_0x1664f5[_0xf6f233(0x250)]);return(0x0,_0x1664f5['sequenceExecute'])(_0x53920b,_0x12c3e3)[_0xf6f233(0x442)]?(_0x5082d8[_0xf6f233(0x66e)](_0x1664f5[_0xf6f233(0x435)])[_0xf6f233(0x58b)]({'unitID':_0x349fe9,'undoMutations':_0x196a56,'redoMutations':_0x53920b}),!0x0):!0x1;}},_0x3ecda7={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x561)],'id':_0x3f2857(0x4ff),async 'handler'(_0x2698fa,_0xea280e){const _0x5cbcbb=_0x3f2857;if(!_0xea280e)return!0x1;let _0x4e736=_0x2698fa['get'](_0x1664f5['ICommandService']),_0x562a8e=_0x2698fa[_0x5cbcbb(0x66e)](_0x1b5924),_0x9be329=_0x2698fa[_0x5cbcbb(0x66e)](_0x1664f5[_0x5cbcbb(0x435)]),{pivotTableId:_0x3c9ed1,fieldIds:_0x54d8d1,unitId:_0x2364d1,subUnitId:_0x286a94}=_0xea280e,_0x45bc6c=_0x2698fa[_0x5cbcbb(0x66e)](_0x4bbba8),_0x12f4d3=_0x45bc6c[_0x5cbcbb(0x492)]['fetchThroughInterceptors'](_0x35fe67)([],_0xea280e)??[],_0x5ccb66=(await _0x562a8e[_0x5cbcbb(0x678)]({'unitId':_0x2364d1,'subUnitId':_0x286a94,'pivotTableId':_0x3c9ed1,'params':{'type':_0x5cbcbb(0x3a2),'removePivotField':{'fieldIds':_0x54d8d1,'retainFilterFieldIds':_0x12f4d3}}}))['result'][_0x5cbcbb(0x3a2)];if(!_0x5ccb66)return!0x1;let {view:_0x4519fc,changesets:_0x24e752,isEmpty:_0x34abc7,pivotTableConfig:_0x5e96d6}=_0x5ccb66,_0x11abb7=_0x5e96d6[_0x5cbcbb(0x61d)],_0x2b8292=new _0xaf0b54[(_0x5cbcbb(0x233))]();_0x2b8292['formJSON'](_0x4519fc);let _0xdd55a9={'cellInfo':_0x11abb7,'view':_0x2b8292,'isEmpty':_0x34abc7};if(!await _0x45bc6c[_0x5cbcbb(0x679)][_0x5cbcbb(0x386)](_0x4ac011)(!0x0,_0xdd55a9))return!0x1;let _0x1aba76=_0x426b89(_0x2698fa,_0x2b8292,_0x11abb7,_0x34abc7),_0x576e83=_0x413f0e(_0x2698fa,_0xdd55a9),{redos:_0x45a54c,undos:_0x5e6eb1}=_0x22545e(_0x4e736,{'pivotTableId':_0x3c9ed1,'unitId':_0x2364d1,'subUnitId':_0x286a94},_0x24e752);return(0x0,_0x1664f5['sequenceExecute'])([..._0x1aba76[_0x5cbcbb(0x53d)],..._0x576e83[_0x5cbcbb(0x53d)],..._0x45a54c],_0x4e736)[_0x5cbcbb(0x442)]?(_0x9be329[_0x5cbcbb(0x58b)]({'unitID':_0x2364d1,'redoMutations':[..._0x1aba76[_0x5cbcbb(0x53d)],..._0x576e83[_0x5cbcbb(0x53d)],..._0x45a54c],'undoMutations':[..._0x1aba76[_0x5cbcbb(0x22e)],..._0x576e83[_0x5cbcbb(0x22e)],..._0x5e6eb1]}),!0x0):!0x1;}},_0x341ade={'type':_0x1664f5[_0x3f2857(0x49f)]['COMMAND'],'id':_0x3f2857(0x4e1),'handler'(_0xe74b88,_0x321066){const _0x4b88fe=_0x3f2857;if(!_0x321066)return!0x1;let _0x16ea31=_0xe74b88[_0x4b88fe(0x66e)](_0x1664f5[_0x4b88fe(0x250)]),_0x38b196=_0xe74b88[_0x4b88fe(0x66e)](_0x1664f5[_0x4b88fe(0x435)]),_0xce0e6a=_0xe74b88[_0x4b88fe(0x66e)](_0x12ae9f),{unitId:_0x325476,subUnitId:_0x44bd71,pivotTableId:_0x470410}=_0x321066,_0x2dff7a=_0xce0e6a[_0x4b88fe(0x3f5)](_0x325476,_0x44bd71,_0x470410),_0xee695c=_0xce0e6a[_0x4b88fe(0x655)](_0x325476,_0x470410);if(!_0x2dff7a||!_0xee695c)return!0x1;let _0x5d2939=[{'id':_0x24f0e5['id'],'params':_0x321066}],_0x346f3e=[{'id':_0x1f28a1['id'],'params':{'unitId':_0x325476,'subUnitId':_0x44bd71,'pivotTableId':_0x470410,'pivotTableConfig':_0x1664f5[_0x4b88fe(0x5b7)][_0x4b88fe(0x62b)](_0x2dff7a),'collectionConfig':_0x1664f5['Tools'][_0x4b88fe(0x62b)](_0xee695c)}}];return(0x0,_0x1664f5[_0x4b88fe(0x368)])(_0x5d2939,_0x16ea31)[_0x4b88fe(0x442)]?(_0x38b196[_0x4b88fe(0x58b)]({'unitID':_0x325476,'redoMutations':_0x5d2939,'undoMutations':_0x346f3e}),!0x0):!0x1;}},_0x20cb22={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x561)],'id':'sheet.command.reset-pivot-fields-config',async 'handler'(_0x690cae,_0x552d10){const _0x31a4a9=_0x3f2857;if(!_0x552d10)return!0x1;let _0x1274e0=_0x690cae[_0x31a4a9(0x66e)](_0x1664f5[_0x31a4a9(0x250)]),_0x178690=_0x690cae[_0x31a4a9(0x66e)](_0x1664f5['IUndoRedoService']),_0x555e8c=_0x690cae[_0x31a4a9(0x66e)](_0x1b5924),{resetArea:_0x1634ee,pivotTableId:_0x1c34c3,unitId:_0x82de33,subUnitId:_0x4ef69c}=_0x552d10,_0x1ac374=(await _0x555e8c[_0x31a4a9(0x678)]({'unitId':_0x82de33,'subUnitId':_0x4ef69c,'pivotTableId':_0x1c34c3,'params':{'type':_0x31a4a9(0x2f8),'resetPivotTable':{'pivotTableId':_0x1c34c3,'resetArea':_0x1634ee}}}))['result'][_0x31a4a9(0x2f8)];if(!_0x1ac374)return!0x1;let {changesets:_0x16ae4e}=_0x1ac374,{redos:_0x52fd89,undos:_0x26a189}=_0x22545e(_0x1274e0,{'pivotTableId':_0x1c34c3,'unitId':_0x82de33,'subUnitId':_0x4ef69c},_0x16ae4e);return(0x0,_0x1664f5[_0x31a4a9(0x368)])(_0x52fd89,_0x1274e0)['result']?(_0x178690[_0x31a4a9(0x58b)]({'unitID':_0x82de33,'redoMutations':_0x52fd89,'undoMutations':_0x26a189}),!0x0):!0x1;}},_0x45c5ff={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x561)],'id':_0x3f2857(0x1e8),async 'handler'(_0x5170c7,_0x55b2ad){const _0x354a25=_0x3f2857;let _0x4feea2=_0x5170c7[_0x354a25(0x66e)](_0xee2d82),_0x1f624e=_0x5170c7[_0x354a25(0x66e)](_0x1664f5[_0x354a25(0x35a)]),_0x1b1b14=_0x5170c7[_0x354a25(0x66e)](_0x1664f5[_0x354a25(0x4d7)]);if(!_0x55b2ad)return!0x1;let {unitId:_0x32e230,subUnitId:_0x26a12a,row:_0x2830f5,col:_0x27f4c8,collapse:_0x3e540a}=_0x55b2ad,_0x3f36d4=_0x1f624e['getUnit'](_0x32e230);if(!_0x3f36d4||!_0x3f36d4[_0x354a25(0x2e4)](_0x26a12a))return!0x1;let _0x41b4f1=_0x4feea2[_0x354a25(0x536)](_0x32e230,_0x26a12a,_0x2830f5,_0x27f4c8);if(!_0x41b4f1)return!0x1;let _0x2f44e6=_0x4feea2[_0x354a25(0x255)](_0x32e230,_0x26a12a,_0x41b4f1);if(!_0x2f44e6)return!0x1;let _0x38519e=_0x4feea2[_0x354a25(0x495)](_0x32e230,_0x26a12a,_0x2830f5,_0x27f4c8),_0x5b3053=_0x3c9bed(_0x2830f5,_0x27f4c8,_0x38519e,_0x2f44e6),_0x47b27f=_0x5b3053==null?void 0x0:_0x5b3053[_0x354a25(0x35d)],_0x52dd2e=_0x38519e==null?void 0x0:_0x38519e['v'];return _0x52dd2e===_0x1b1b14['t']('sheets-pivot.blank')&&(_0x52dd2e=_0xaf0b54[_0x354a25(0x632)][_0x354a25(0x400)]),_0x52dd2e==null||!_0x47b27f?!0x1:_0x1854df(_0x5170c7,{'unitId':_0x32e230,'subUnitId':_0x26a12a,'pivotTableId':_0x41b4f1,'tableFieldId':_0x47b27f,'collapse':_0x3e540a,'item':_0x52dd2e});}};async function _0x1854df(_0x4bc655,_0x154d4e){const _0x44a568=_0x3f2857;let {unitId:_0x249716,subUnitId:_0x8835a2,pivotTableId:_0x7e83cd,..._0xe9f1fb}=_0x154d4e,_0x14e4ce=_0x4bc655[_0x44a568(0x66e)](_0x1664f5[_0x44a568(0x250)]),_0x4a5df8=_0x4bc655[_0x44a568(0x66e)](_0x1b5924),_0x32aa1e=_0x4bc655[_0x44a568(0x66e)](_0x1664f5[_0x44a568(0x435)]),_0x4b7663=await _0x4a5df8[_0x44a568(0x678)]({'unitId':_0x249716,'subUnitId':_0x8835a2,'pivotTableId':_0x7e83cd,'params':{'type':_0x44a568(0x53c),'setPivotCollapse':_0xe9f1fb}}),_0x1079cf=_0x4b7663==null?void 0x0:_0x4b7663[_0x44a568(0x442)][_0x44a568(0x53c)];if(!_0x1079cf)return!0x1;let {view:_0x12788f,pivotTableConfig:_0x558d1c,isEmpty:_0x21d01e,changesets:_0x2ae008}=_0x1079cf,_0x382cc4=new _0xaf0b54[(_0x44a568(0x233))]();_0x382cc4['formJSON'](_0x12788f);let _0x45cbe7=_0x558d1c[_0x44a568(0x61d)],_0x476a0c={'cellInfo':_0x45cbe7,'view':_0x382cc4,'isEmpty':_0x21d01e};if(!await _0x4bc655[_0x44a568(0x66e)](_0x4bbba8)[_0x44a568(0x679)][_0x44a568(0x386)](_0x4ac011)(!0x0,_0x476a0c))return!0x1;let _0x3e4f8b=_0x426b89(_0x4bc655,_0x382cc4,_0x45cbe7,_0x21d01e),_0x55d571=_0x413f0e(_0x4bc655,_0x476a0c),{redos:_0x101d74,undos:_0x130014}=_0x22545e(_0x14e4ce,{'pivotTableId':_0x7e83cd,'unitId':_0x249716,'subUnitId':_0x8835a2},_0x2ae008);return(0x0,_0x1664f5[_0x44a568(0x368)])([..._0x3e4f8b[_0x44a568(0x53d)],..._0x55d571[_0x44a568(0x53d)],..._0x101d74],_0x14e4ce)['result']?(_0x32aa1e[_0x44a568(0x58b)]({'unitID':_0x249716,'redoMutations':[..._0x3e4f8b[_0x44a568(0x53d)],..._0x55d571[_0x44a568(0x53d)],..._0x101d74],'undoMutations':[..._0x3e4f8b[_0x44a568(0x22e)],..._0x55d571['undos'],..._0x130014]}),!0x0):!0x1;}let _0x5c06eb={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x561)],'id':_0x3f2857(0x4c9),'handler':(_0x36f863,_0x2b54f7)=>_0x2b54f7?_0x1854df(_0x36f863,_0x2b54f7):!0x1},_0x31a123={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x561)],'id':_0x3f2857(0x302),async 'handler'(_0x2b6e08,_0x4b6d20){const _0x2cb4b3=_0x3f2857;if(!_0x4b6d20)return!0x1;let {unitId:_0x454fdb,subUnitId:_0x4a2762,pivotTableId:_0x288da0,tableFieldId:_0x24fe6f,filterInfo:_0x4db90e}=_0x4b6d20,_0x3e77e1=_0x2b6e08[_0x2cb4b3(0x66e)](_0x12ae9f),_0x471059=_0x3e77e1['getPivotTableConfig'](_0x454fdb,_0x4a2762,_0x288da0);if(!(_0x471059!=null&&_0x471059['fieldsConfig']['dimension'][_0x24fe6f]))return!0x1;let _0x36fc80=_0x2b6e08['get'](_0x1664f5[_0x2cb4b3(0x250)]),_0x417ed2=!0x1,_0x21b07b=_0x36fc80[_0x2cb4b3(0x323)]((_0x4d2975,_0x3d130f)=>{const _0x4a25b1=_0x2cb4b3;let _0x22ce74=_0x4d2975[_0x4a25b1(0x623)];_0x4d2975[_0x4a25b1(0x4ee)]!==_0x1664f5[_0x4a25b1(0x49f)]['MUTATION']||_0x3d130f!=null&&_0x3d130f['onlyLocal']||(_0x22ce74==null?void 0x0:_0x22ce74[_0x4a25b1(0x339)])!==_0x454fdb&&(_0x22ce74==null?void 0x0:_0x22ce74['unitId'])!==_0x471059[_0x4a25b1(0x213)][_0x4a25b1(0x339)]||(_0x417ed2=!0x0);}),_0x1bb15b;try{var _0x1020a3;let _0xf4ecac=(_0x1020a3=_0x2b6e08[_0x2cb4b3(0x66e)](_0x1664f5[_0x2cb4b3(0x2b4)])[_0x2cb4b3(0x66e)](_0x360e3c,_0x1664f5['Quantity'][_0x2cb4b3(0x532)]))==null?void 0x0:_0x1020a3[_0x2cb4b3(0x2e8)](_0x454fdb,_0x288da0);_0x1bb15b=_0xf4ecac==null?void 0x0:_0xf4ecac['changed$'][_0x2cb4b3(0x362)]({'next':()=>{_0x417ed2=!0x0;},'complete':()=>{_0x417ed2=!0x0;}}),_0x4db90e!==void 0x0&&(0x0,_0xaf0b54[_0x2cb4b3(0x338)])(_0x4db90e);let _0x46fe4a=await _0x2b6e08[_0x2cb4b3(0x66e)](_0x4bbba8)[_0x2cb4b3(0x679)][_0x2cb4b3(0x386)](_0xddee90)({'handled':!0x1,'result':!0x1},_0x4b6d20);if(_0x46fe4a!=null&&_0x46fe4a['handled'])return _0x46fe4a[_0x2cb4b3(0x442)];let _0x13187a=_0x1664f5['Tools'][_0x2cb4b3(0x62b)](_0x471059),_0x4b8ba4=_0x4db90e&&{..._0x4db90e,'expected':Array[_0x2cb4b3(0x3a7)](_0x4db90e[_0x2cb4b3(0x411)])?_0x4db90e['expected'][_0x2cb4b3(0x264)]():_0x4db90e['expected']},_0x5e1b15=(await _0x2b6e08[_0x2cb4b3(0x66e)](_0x1b5924)['getPivotDisplayConfig']({'unitId':_0x454fdb,'subUnitId':_0x4a2762,'pivotTableId':_0x288da0,'params':{'type':_0x2cb4b3(0x48b),'setPivotDateFilter':{'tableFieldId':_0x24fe6f,'filterInfo':_0x4b8ba4}}}))[_0x2cb4b3(0x442)][_0x2cb4b3(0x48b)];if(!_0x5e1b15)return!0x1;let _0x597577=new _0xaf0b54[(_0x2cb4b3(0x233))]();_0x597577[_0x2cb4b3(0x45e)](_0x5e1b15[_0x2cb4b3(0x4fa)]);let _0x48b7db={'cellInfo':_0x5e1b15['pivotTableConfig'][_0x2cb4b3(0x61d)],'view':_0x597577,'isEmpty':_0x5e1b15['isEmpty']};if(!await _0x2b6e08[_0x2cb4b3(0x66e)](_0x4bbba8)[_0x2cb4b3(0x679)]['fetchThroughAsyncInterceptors'](_0x4ac011)(!0x0,_0x48b7db)||_0x417ed2||!_0x1664f5[_0x2cb4b3(0x5b7)]['diffValue'](_0x13187a,_0x3e77e1[_0x2cb4b3(0x3f5)](_0x454fdb,_0x4a2762,_0x288da0)))return!0x1;let _0x2019ed=_0x426b89(_0x2b6e08,_0x597577,_0x48b7db['cellInfo'],_0x48b7db[_0x2cb4b3(0x3fb)]),_0x235aaa=_0x413f0e(_0x2b6e08,_0x48b7db),_0x31eef1=_0x22545e(_0x36fc80,{'unitId':_0x454fdb,'subUnitId':_0x4a2762,'pivotTableId':_0x288da0},_0x5e1b15[_0x2cb4b3(0x282)]),_0x16b538=[..._0x2019ed[_0x2cb4b3(0x53d)],..._0x235aaa[_0x2cb4b3(0x53d)],..._0x31eef1[_0x2cb4b3(0x53d)]],_0x6a3a3a=[..._0x2019ed['undos'],..._0x235aaa[_0x2cb4b3(0x22e)],..._0x31eef1[_0x2cb4b3(0x22e)]];return _0xcb2ef3([{..._0x2019ed,'reverse':!0x1},{..._0x235aaa,'reverse':!0x1},{..._0x31eef1,'reverse':!0x0}],_0x36fc80)?(_0x2b6e08[_0x2cb4b3(0x66e)](_0x1664f5['IUndoRedoService'])[_0x2cb4b3(0x58b)]({'unitID':_0x454fdb,'redoMutations':_0x16b538,'undoMutations':_0x6a3a3a}),!0x0):!0x1;}catch{return!0x1;}finally{_0x21b07b[_0x2cb4b3(0x345)](),_0x1bb15b==null||_0x1bb15b['unsubscribe']();}}},_0x45a3a9={'id':_0x3f2857(0x2c3),'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x210)],'handler':(_0x4f2974,_0x2a4df6)=>{const _0x3725a0=_0x3f2857;if(!_0x2a4df6)return!0x1;if(_0x4f2974[_0x3725a0(0x66e)](_0x1664f5[_0x3725a0(0x261)])[_0x3725a0(0x277)](_0x3725a0(0x36b))){var _0x29d11e;let _0x27d9ca=_0x4f2974['get'](_0x12ae9f),_0x224cb3=_0x27d9ca['getPivotTableConfig'](_0x2a4df6[_0x3725a0(0x339)],_0x2a4df6[_0x3725a0(0x555)],_0x2a4df6[_0x3725a0(0x581)]),_0x532734=(_0x224cb3==null?void 0x0:_0x224cb3[_0x3725a0(0x1fa)]['dimension'][_0x2a4df6[_0x3725a0(0x35d)]])??(_0x224cb3==null?void 0x0:_0x224cb3['fieldsConfig'][_0x3725a0(0x2d4)][_0x2a4df6[_0x3725a0(0x35d)]]),_0x560137=_0x27d9ca[_0x3725a0(0x655)](_0x2a4df6[_0x3725a0(0x339)],_0x2a4df6[_0x3725a0(0x581)]),_0xa84754=_0x532734&&(_0x560137==null?void 0x0:_0x560137[_0x3725a0(0x390)][_0x532734[_0x3725a0(0x365)]]);if(!_0x560137||!_0xa84754||!(0x0,_0xaf0b54[_0x3725a0(0x31f)])(_0xa84754))return!0x1;let _0x13f886=_0x1664f5[_0x3725a0(0x5b7)]['deepClone'](_0x560137),_0x5c80f8={..._0xa84754,'dateType':_0x2a4df6[_0x3725a0(0x52f)]};_0x13f886[_0x3725a0(0x390)][_0xa84754['id']]=_0x5c80f8;let _0x1192aa=((_0x29d11e=_0x13f886[_0x3725a0(0x390)][_0x5c80f8[_0x3725a0(0x5ed)]])==null?void 0x0:_0x29d11e[_0x3725a0(0x1d6)])+_0x3725a0(0x4ae)+_0x2afa6e(_0x4f2974,_0x2a4df6['dateType']);return _0x13f886[_0x3725a0(0x413)][_0xa84754['id']]=_0xaf0b54[_0x3725a0(0x330)][_0x3725a0(0x502)](_0x1192aa,_0x13f886[_0x3725a0(0x413)]),_0x27d9ca[_0x3725a0(0x33e)](()=>(_0x27d9ca[_0x3725a0(0x462)](_0x2a4df6[_0x3725a0(0x339)],_0x2a4df6['pivotTableId'],_0x13f886),_0x27d9ca[_0x3725a0(0x4d3)](_0x2a4df6,_0xa58d66=>{const _0x1a109a=_0x3725a0;let _0x5edfbc=_0xa58d66[_0x1a109a(0x1fa)][_0x1a109a(0x57a)][_0x2a4df6['tableFieldId']]??_0xa58d66['fieldsConfig'][_0x1a109a(0x2d4)][_0x2a4df6[_0x1a109a(0x35d)]];_0x5edfbc[_0x1a109a(0x36d)]=_0x1192aa;})));}let {unitId:_0x5bdf76,subUnitId:_0x386520,pivotTableId:_0x10ad95,tableFieldId:_0x238c02,dateType:_0x1c44c5}=_0x2a4df6,_0x490166=_0x4f2974[_0x3725a0(0x66e)](_0x360e3c),_0x4988b1=_0x490166[_0x3725a0(0x3c7)](_0x10ad95);if(!_0x4988b1)return!0x1;let _0x143b26=_0x4988b1[_0x3725a0(0x672)](_0x238c02);if(!_0x143b26)return!0x1;let _0x23de53=_0x143b26[_0x3725a0(0x59f)](),_0x5f1bba=_0x4988b1[_0x3725a0(0x5ab)](_0x23de53),_0x489720=(_0x5f1bba==null?void 0x0:_0x5f1bba[_0x3725a0(0x466)]())+'\x20-\x20'+_0x2afa6e(_0x4f2974,_0x1c44c5);_0x490166[_0x3725a0(0x655)](_0x5bdf76,_0x10ad95)[_0x3725a0(0x43a)](_0x143b26['id'],_0x489720);let _0x430f11=_0x4988b1[_0x3725a0(0x220)](_0x238c02);if(!_0x430f11)return!0x1;if(_0x4988b1['renameField'](_0x430f11[_0x3725a0(0x56d)](),_0x489720),_0x143b26[_0x3725a0(0x357)](_0x1c44c5),_0x5f1bba){let _0x55bc6b=_0x4f2974[_0x3725a0(0x66e)](_0x1664f5['IUniverInstanceService'])['getUnit'](_0x5bdf76,_0x1664f5[_0x3725a0(0x3b3)][_0x3725a0(0x418)]);_0x201d1a(_0x55bc6b==null?void 0x0:_0x55bc6b[_0x3725a0(0x48d)]()),_0x143b26[_0x3725a0(0x4cd)](_0x5f1bba);}_0x4988b1['setDirty'](!0x0);let _0x11311f=_0x490166[_0x3725a0(0x3f5)](_0x5bdf76,_0x386520,_0x10ad95);return _0x11311f['fieldsConfig']=_0x4988b1[_0x3725a0(0x2f9)](),_0x490166[_0x3725a0(0x205)]({'unitId':_0x5bdf76,'subUnitId':_0x386520,'token':_0x10ad95,'type':_0x3725a0(0x57d),'pivotConfig':_0x11311f}),!0x0;}},_0x785ab8={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x561)],'id':_0x3f2857(0x53b),async 'handler'(_0x334fd1,_0x49f6d7){const _0x4dbc82=_0x3f2857;if(!_0x49f6d7)return!0x1;let {unitId:_0x30ae49,subUnitId:_0x5aac78,pivotTableId:_0x1d559c,tableFieldId:_0xa8eb67,dateType:_0x2f4b65}=_0x49f6d7,_0x47b371=_0x334fd1[_0x4dbc82(0x66e)](_0x1664f5[_0x4dbc82(0x250)]),_0x3c5fd4=_0x334fd1[_0x4dbc82(0x66e)](_0x12ae9f),_0x1d19dc=_0x3c5fd4[_0x4dbc82(0x3f5)](_0x30ae49,_0x5aac78,_0x1d559c);if((0x0,_0xaf0b54['getPivotDateGroupingMode'])(_0x1d19dc==null?void 0x0:_0x1d19dc[_0x4dbc82(0x1fa)]['options'])!==_0xaf0b54['PivotDateGroupingMode'][_0x4dbc82(0x372)])return!0x1;let _0x3bc17d=_0x3c5fd4[_0x4dbc82(0x655)](_0x30ae49,_0x1d559c),_0x3521fb=_0x24d7ae(_0x1d19dc==null?void 0x0:_0x1d19dc[_0x4dbc82(0x1fa)],_0x3bc17d,_0xa8eb67);if(!_0x3521fb||_0x3c551e(_0x3521fb,_0x2f4b65))return!0x1;let _0x497218=_0x334fd1[_0x4dbc82(0x66e)](_0x1b5924),_0x35ca90=_0x334fd1[_0x4dbc82(0x66e)](_0x1664f5[_0x4dbc82(0x435)]),_0x113cc7=(await _0x497218[_0x4dbc82(0x678)]({'unitId':_0x30ae49,'subUnitId':_0x5aac78,'pivotTableId':_0x1d559c,'params':{'type':_0x4dbc82(0x563),'setPivotDateGroup':{'tableFieldId':_0xa8eb67,'dateType':_0x2f4b65}}}))['result'][_0x4dbc82(0x563)];if(!_0x113cc7)return!0x1;let {view:_0x1dd617,changesets:_0xd6646,isEmpty:_0x183af4,pivotTableConfig:_0x196882,shouldBeAddedGroupJSON:_0x3f83a6}=_0x113cc7,_0x14275d=_0x196882[_0x4dbc82(0x61d)],_0x4657c1=new _0xaf0b54['PivotView']();_0x4657c1[_0x4dbc82(0x45e)](_0x1dd617);let _0x209453={'cellInfo':_0x14275d,'view':_0x4657c1,'isEmpty':_0x183af4};if(!await _0x334fd1[_0x4dbc82(0x66e)](_0x4bbba8)['asyncInterceptor']['fetchThroughAsyncInterceptors'](_0x4ac011)(!0x0,_0x209453))return!0x1;let _0x2a1682=_0x426b89(_0x334fd1,_0x4657c1,_0x14275d,_0x183af4),_0x25ea20=_0x413f0e(_0x334fd1,_0x209453),{undos:_0x2832f3,redos:_0x153496}=_0x22545e(_0x47b371,{'pivotTableId':_0x1d559c,'unitId':_0x30ae49,'subUnitId':_0x5aac78},_0xd6646);_0x3f83a6&&(_0x153496[_0x4dbc82(0x32e)]({'id':_0x427b54['id'],'params':{'pivotTableId':_0x1d559c,'fieldJSON':_0x3f83a6,'unitId':_0x30ae49,'subUnitId':_0x5aac78}}),_0x2832f3[_0x4dbc82(0x4ef)]({'id':_0x3b9dcc['id'],'params':{'pivotTableId':_0x1d559c,'dataFieldId':_0x3f83a6['id'],'unitId':_0x30ae49,'subUnitId':_0x5aac78}})),_0x3521fb['kind']===_0x4dbc82(0x1cd)&&_0x3521fb[_0x4dbc82(0x24f)]&&(_0x153496[_0x4dbc82(0x4ef)]({'id':_0x45a3a9['id'],'params':_0x49f6d7}),_0x2832f3['push']({'id':_0x45a3a9['id'],'params':{..._0x49f6d7,'dateType':_0x3521fb[_0x4dbc82(0x24f)]}}));let _0x56ee84=[..._0x2a1682['redos'],..._0x25ea20[_0x4dbc82(0x53d)],..._0x153496],_0x2bc423=[..._0x2a1682[_0x4dbc82(0x22e)],..._0x25ea20['undos'],..._0x2832f3];return(0x0,_0x1664f5[_0x4dbc82(0x368)])(_0x56ee84,_0x47b371)[_0x4dbc82(0x442)]?(_0x35ca90[_0x4dbc82(0x58b)]({'unitID':_0x30ae49,'redoMutations':_0x56ee84,'undoMutations':_0x2bc423}),!0x0):!0x1;}};async function _0x565a8e(_0x14671a,_0x3e5a49,_0x26018a){const _0x5ee780=_0x3f2857;var _0x103d33,_0x5a80e5;let {unitId:_0x1f5ec0,subUnitId:_0xfc29be,pivotTableId:_0x717af1,currentConfig:_0xcc2c19,currentCollection:_0x5d05ed}=_0x3e5a49;if(!((_0x103d33=_0x26018a['addedGroupJSON'])!=null&&_0x103d33['length'])&&!((_0x5a80e5=_0x26018a['removedGroupJSON'])!=null&&_0x5a80e5[_0x5ee780(0x33b)]))return!0x1;let _0x22f448=_0x14671a['get'](_0x12ae9f);if(_0x22f448[_0x5ee780(0x3f5)](_0x1f5ec0,_0xfc29be,_0x717af1)!==_0xcc2c19||_0x22f448[_0x5ee780(0x655)](_0x1f5ec0,_0x717af1)!==_0x5d05ed)return!0x1;let _0x38bf88=new _0xaf0b54['PivotView']();_0x38bf88[_0x5ee780(0x45e)](_0x26018a[_0x5ee780(0x4fa)]);let _0x1da392={'cellInfo':_0xcc2c19[_0x5ee780(0x61d)],'view':_0x38bf88,'isEmpty':_0x26018a['isEmpty']};if(!await _0x14671a['get'](_0x4bbba8)['asyncInterceptor'][_0x5ee780(0x386)](_0x4ac011)(!0x0,_0x1da392)||_0x22f448[_0x5ee780(0x3f5)](_0x1f5ec0,_0xfc29be,_0x717af1)!==_0xcc2c19||_0x22f448[_0x5ee780(0x655)](_0x1f5ec0,_0x717af1)!==_0x5d05ed)return!0x1;let _0x145483=_0x14671a[_0x5ee780(0x66e)](_0x1664f5['ICommandService']),_0x1d4353=_0x426b89(_0x14671a,_0x38bf88,_0xcc2c19[_0x5ee780(0x61d)],_0x26018a['isEmpty']),_0x3950fd=_0x413f0e(_0x14671a,_0x1da392),_0x3fff91=_0x22545e(_0x145483,{'unitId':_0x1f5ec0,'subUnitId':_0xfc29be,'pivotTableId':_0x717af1},_0x26018a[_0x5ee780(0x282)]),_0x546256=_0x26018a[_0x5ee780(0x575)]??[],_0x3bd887=_0x26018a['removedGroupJSON']??[],_0x35ae00=_0x546256[_0x5ee780(0x296)](_0x26ae4a=>({'id':_0x427b54['id'],'params':{'unitId':_0x1f5ec0,'subUnitId':_0xfc29be,'pivotTableId':_0x717af1,'fieldJSON':_0x26ae4a}})),_0x4c0bf2=_0x546256[_0x5ee780(0x517)]()['reverse']()[_0x5ee780(0x296)](_0x1eaa29=>({'id':_0x3b9dcc['id'],'params':{'unitId':_0x1f5ec0,'subUnitId':_0xfc29be,'pivotTableId':_0x717af1,'dataFieldId':_0x1eaa29['id']}})),_0x87bb8b=_0x3bd887['slice']()[_0x5ee780(0x39d)]()['map'](_0x5ba144=>({'id':_0x3b9dcc['id'],'params':{'unitId':_0x1f5ec0,'subUnitId':_0xfc29be,'pivotTableId':_0x717af1,'dataFieldId':_0x5ba144['id']}})),_0x31f22f=_0x3bd887[_0x5ee780(0x296)](_0x43b2db=>({'id':_0x427b54['id'],'params':{'unitId':_0x1f5ec0,'subUnitId':_0xfc29be,'pivotTableId':_0x717af1,'fieldJSON':_0x43b2db}}));if(!_0xcb2ef3([{..._0x1d4353,'reverse':!0x1},{..._0x3950fd,'reverse':!0x1},{'redos':_0x35ae00,'undos':_0x4c0bf2,'reverse':!0x0},{..._0x3fff91,'reverse':!0x0},{'redos':_0x87bb8b,'undos':_0x31f22f,'reverse':!0x0}],_0x145483))return!0x1;let _0x47901f=[..._0x1d4353[_0x5ee780(0x53d)],..._0x3950fd[_0x5ee780(0x53d)],..._0x35ae00,..._0x3fff91['redos'],..._0x87bb8b],_0x2c281c=[..._0x1d4353['undos'],..._0x3950fd[_0x5ee780(0x22e)],..._0x31f22f,..._0x3fff91[_0x5ee780(0x22e)],..._0x4c0bf2];return _0x14671a['get'](_0x1664f5[_0x5ee780(0x435)])[_0x5ee780(0x58b)]({'unitID':_0x1f5ec0,'redoMutations':_0x47901f,'undoMutations':_0x2c281c}),!0x0;}let _0x1f65f7={'id':'sheet.command.set-pivot-excel-date-group','type':_0x1664f5[_0x3f2857(0x49f)]['COMMAND'],async 'handler'(_0x5b5bde,_0x193c6e){const _0x5dee7d=_0x3f2857;if(!_0x193c6e)return!0x1;let {unitId:_0x412c3d,subUnitId:_0x182940,pivotTableId:_0x48de15,tableFieldId:_0x35041e,grouping:_0x565485}=_0x193c6e,_0x35ba61=_0x5b5bde[_0x5dee7d(0x66e)](_0x12ae9f),_0x364950=_0x35ba61[_0x5dee7d(0x3f5)](_0x412c3d,_0x182940,_0x48de15),_0x4aefe9=_0x35ba61[_0x5dee7d(0x655)](_0x412c3d,_0x48de15);if(!_0x364950||!_0x4aefe9||(0x0,_0xaf0b54[_0x5dee7d(0x403)])(_0x364950['fieldsConfig'][_0x5dee7d(0x351)])!==_0xaf0b54[_0x5dee7d(0x543)]['ExcelLike'])return!0x1;let _0x17762b=(await _0x5b5bde[_0x5dee7d(0x66e)](_0x1b5924)[_0x5dee7d(0x678)]({'unitId':_0x412c3d,'subUnitId':_0x182940,'pivotTableId':_0x48de15,'params':{'type':_0x5dee7d(0x621),'setPivotExcelDateGroup':{'tableFieldId':_0x35041e,'grouping':_0x565485}}}))[_0x5dee7d(0x442)][_0x5dee7d(0x621)];return _0x17762b?_0x565a8e(_0x5b5bde,{'unitId':_0x412c3d,'subUnitId':_0x182940,'pivotTableId':_0x48de15,'currentConfig':_0x364950,'currentCollection':_0x4aefe9},_0x17762b):!0x1;}},_0x2f9891={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x561)],'id':_0x3f2857(0x41d),async 'handler'(_0x34b559,_0x5f4394){const _0x169fe4=_0x3f2857;if(!_0x5f4394)return!0x1;let _0x4473de=_0x34b559['get'](_0x1664f5[_0x169fe4(0x250)]),_0x54b3fc=_0x34b559[_0x169fe4(0x66e)](_0x1664f5['IUndoRedoService']),_0x2215cb=_0x34b559[_0x169fe4(0x66e)](_0x1b5924),{pivotTableConfig:_0x4ff480,pivotTableId:_0x1564ec,unitId:_0x284136,subUnitId:_0x24a46f}=_0x5f4394,_0x1b704a=(await _0x2215cb[_0x169fe4(0x678)]({'unitId':_0x284136,'subUnitId':_0x24a46f,'pivotTableId':_0x1564ec,'params':{'type':'setPivotTableConfig','setPivotTableConfig':{'pivotTableId':_0x1564ec,'pivotTableConfig':_0x4ff480}}}))[_0x169fe4(0x442)][_0x169fe4(0x4ac)];if(!_0x1b704a)return!0x1;let {changesets:_0x3c4e18}=_0x1b704a,{redos:_0x4b69b2,undos:_0x3505bf}=_0x22545e(_0x4473de,{'pivotTableId':_0x1564ec,'unitId':_0x284136,'subUnitId':_0x24a46f},_0x3c4e18);return(0x0,_0x1664f5['sequenceExecute'])(_0x4b69b2,_0x4473de)[_0x169fe4(0x442)]?(_0x54b3fc[_0x169fe4(0x58b)]({'unitID':_0x284136,'redoMutations':_0x4b69b2,'undoMutations':_0x3505bf}),!0x0):!0x1;}},_0x164b17={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x561)],'id':'sheet.command.set-pivot-filter',async 'handler'(_0x129e94,_0x15f384){const _0x227a51=_0x3f2857;if(!_0x15f384)return!0x1;let _0x1b852b=_0x129e94[_0x227a51(0x66e)](_0x1664f5['ICommandService']),{pivotTableId:_0x5f234c,tableFieldId:_0x42041d,items:_0x21d4eb,partialItems:_0xebc1b,unitId:_0x459a60,subUnitId:_0x2e56a2,isAll:_0x910a2e,clearAllFilters:_0x361f10}=_0x15f384,_0x3ef360=_0x129e94['get'](_0x4bbba8),_0x25c993=await _0x3ef360[_0x227a51(0x679)][_0x227a51(0x386)](_0x5365cc)({'handled':!0x1,'result':!0x1},_0x15f384);if(_0x25c993!=null&&_0x25c993['handled'])return _0x25c993[_0x227a51(0x442)];let _0x1b1bd4=_0x129e94['get'](_0x1b5924),_0x218b88=_0x129e94['get'](_0x1664f5[_0x227a51(0x435)]),_0x18d725=(await _0x1b1bd4[_0x227a51(0x678)]({'unitId':_0x459a60,'subUnitId':_0x2e56a2,'pivotTableId':_0x5f234c,'params':{'type':_0x227a51(0x43d),'setPivotFilter':{'tableFieldId':_0x42041d,'items':_0x21d4eb,'partialItems':_0xebc1b,'isAll':_0x910a2e,'clearAllFilters':_0x361f10}}}))['result'][_0x227a51(0x43d)];if(!_0x18d725)return!0x1;let {changesets:_0x354127,pivotTableConfig:_0x4f8496,isEmpty:_0x48eb80,view:_0x3960ac}=_0x18d725,_0x1823b7=_0x4f8496['targetCellInfo'],_0x2ada0f=new _0xaf0b54['PivotView']();_0x2ada0f[_0x227a51(0x45e)](_0x3960ac);let _0x2fe6f5={'cellInfo':_0x1823b7,'view':_0x2ada0f,'isEmpty':_0x48eb80};if(!await _0x3ef360[_0x227a51(0x679)]['fetchThroughAsyncInterceptors'](_0x4ac011)(!0x0,_0x2fe6f5))return!0x1;let _0x407131=_0x426b89(_0x129e94,_0x2ada0f,_0x1823b7,_0x48eb80),_0x747e10=_0x413f0e(_0x129e94,_0x2fe6f5),{undos:_0x53f72f,redos:_0x245e8a}=_0x22545e(_0x1b852b,{'pivotTableId':_0x5f234c,'unitId':_0x459a60,'subUnitId':_0x2e56a2},_0x354127);return(0x0,_0x1664f5['sequenceExecute'])([..._0x407131['redos'],..._0x747e10['redos'],..._0x245e8a],_0x1b852b)[_0x227a51(0x442)]?(_0x218b88['pushUndoRedo']({'unitID':_0x459a60,'redoMutations':[..._0x407131[_0x227a51(0x53d)],..._0x747e10[_0x227a51(0x53d)],..._0x245e8a],'undoMutations':[..._0x407131[_0x227a51(0x22e)],..._0x747e10[_0x227a51(0x22e)],..._0x53f72f]}),!0x0):!0x1;}},_0xfb377f={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x561)],'id':_0x3f2857(0x5f1),async 'handler'(_0x5bb99c,_0x343830){const _0x5bc9c4=_0x3f2857;if(!_0x343830)return!0x1;let _0x5d92c6=_0x5bb99c['get'](_0x1664f5[_0x5bc9c4(0x250)]),_0x4de6d7=_0x5bb99c[_0x5bc9c4(0x66e)](_0x1664f5[_0x5bc9c4(0x435)]),_0x2a0e93=_0x5bb99c[_0x5bc9c4(0x66e)](_0x1b5924),{layout:_0x2b1165,pivotTableId:_0xbe975e,unitId:_0x8bc332,subUnitId:_0x50585c}=_0x343830,_0xeacf69=(await _0x2a0e93[_0x5bc9c4(0x678)]({'unitId':_0x8bc332,'subUnitId':_0x50585c,'pivotTableId':_0xbe975e,'params':{'type':_0x5bc9c4(0x2c5),'setPivotLayout':{'pivotTableId':_0xbe975e,'layout':_0x2b1165}}}))['result'][_0x5bc9c4(0x2c5)];if(!_0xeacf69)return!0x1;let {changesets:_0x3530bf}=_0xeacf69,{redos:_0x39cbbf,undos:_0x51a0d8}=_0x22545e(_0x5d92c6,{'pivotTableId':_0xbe975e,'unitId':_0x8bc332,'subUnitId':_0x50585c},_0x3530bf);return(0x0,_0x1664f5[_0x5bc9c4(0x368)])(_0x39cbbf,_0x5d92c6)[_0x5bc9c4(0x442)]?(_0x4de6d7[_0x5bc9c4(0x58b)]({'unitID':_0x8bc332,'redoMutations':_0x39cbbf,'undoMutations':_0x51a0d8}),!0x0):!0x1;}},_0x4522a8={'id':_0x3f2857(0x5a0),'type':_0x1664f5['CommandType']['COMMAND'],async 'handler'(_0x11cd11,_0x38b2a7){const _0x126118=_0x3f2857;if(!_0x38b2a7)return!0x1;let {unitId:_0xb23b2b,subUnitId:_0x1a1fb2,pivotTableId:_0x36be3e,sourceFieldId:_0x1c6db4,groups:_0x43a7b9}=_0x38b2a7,_0x3a7351=_0x11cd11[_0x126118(0x66e)](_0x12ae9f),_0x1b1bcd=_0x3a7351[_0x126118(0x3f5)](_0xb23b2b,_0x1a1fb2,_0x36be3e),_0x42ecd1=_0x3a7351[_0x126118(0x655)](_0xb23b2b,_0x36be3e);if(!_0x1b1bcd||!_0x42ecd1)return!0x1;let _0x56d7fe=(await _0x11cd11[_0x126118(0x66e)](_0x1b5924)[_0x126118(0x678)]({'unitId':_0xb23b2b,'subUnitId':_0x1a1fb2,'pivotTableId':_0x36be3e,'params':{'type':'setPivotManualGroups','setPivotManualGroups':{'sourceFieldId':_0x1c6db4,'groups':_0x43a7b9}}}))[_0x126118(0x442)][_0x126118(0x292)];return _0x56d7fe?_0x565a8e(_0x11cd11,{'unitId':_0xb23b2b,'subUnitId':_0x1a1fb2,'pivotTableId':_0x36be3e,'currentConfig':_0x1b1bcd,'currentCollection':_0x42ecd1},_0x56d7fe):!0x1;}},_0x22cb07={'id':'sheet.command.set-pivot-number-group','type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x561)],async 'handler'(_0x451205,_0x1309a0){const _0xe0e3f1=_0x3f2857;if(!_0x1309a0)return!0x1;let {unitId:_0x31f0ac,subUnitId:_0x5a742e,pivotTableId:_0x28dd2a,tableFieldId:_0x3d2375,grouping:_0x145866}=_0x1309a0,_0x45d0d5=_0x451205[_0xe0e3f1(0x66e)](_0x12ae9f),_0x251108=_0x45d0d5[_0xe0e3f1(0x3f5)](_0x31f0ac,_0x5a742e,_0x28dd2a),_0x4bdc49=_0x45d0d5[_0xe0e3f1(0x655)](_0x31f0ac,_0x28dd2a);if(!_0x251108||!_0x4bdc49)return!0x1;let _0x3a2097=(await _0x451205[_0xe0e3f1(0x66e)](_0x1b5924)[_0xe0e3f1(0x678)]({'unitId':_0x31f0ac,'subUnitId':_0x5a742e,'pivotTableId':_0x28dd2a,'params':{'type':_0xe0e3f1(0x5e3),'setPivotNumberGroup':{'tableFieldId':_0x3d2375,'grouping':_0x145866}}}))[_0xe0e3f1(0x442)]['setPivotNumberGroup'];return _0x3a2097?_0x565a8e(_0x451205,{'unitId':_0x31f0ac,'subUnitId':_0x5a742e,'pivotTableId':_0x28dd2a,'currentConfig':_0x251108,'currentCollection':_0x4bdc49},_0x3a2097):!0x1;}},_0xb5ad18={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x561)],'id':_0x3f2857(0x589),async 'handler'(_0x2e7ac4,_0x21b276){const _0x5c31c3=_0x3f2857;if(!_0x21b276)return!0x1;let {options:_0x56957e,pivotTableId:_0x3090fb,unitId:_0x4697e2,subUnitId:_0x330709}=_0x21b276;if(_0x56957e[_0x5c31c3(0x308)]!==void 0x0&&typeof _0x56957e[_0x5c31c3(0x308)]!='boolean'||_0x56957e[_0x5c31c3(0x36c)]!==void 0x0&&_0x56957e[_0x5c31c3(0x36c)]!==_0xaf0b54[_0x5c31c3(0x543)][_0x5c31c3(0x372)]&&_0x56957e[_0x5c31c3(0x36c)]!==_0xaf0b54['PivotDateGroupingMode'][_0x5c31c3(0x638)])return!0x1;let _0x4814ce=_0x2e7ac4['get'](_0x12ae9f),_0x5e67a0=_0x4814ce[_0x5c31c3(0x3f5)](_0x4697e2,_0x330709,_0x3090fb);if(!_0x5e67a0)return!0x1;let _0x345d73=_0x4814ce[_0x5c31c3(0x655)](_0x4697e2,_0x3090fb),_0x177ddf=_0x56957e['dateGroupingMode']!==void 0x0&&(0x0,_0xaf0b54['getPivotDateGroupingMode'])(_0x5e67a0[_0x5c31c3(0x1fa)][_0x5c31c3(0x351)])!==_0x56957e[_0x5c31c3(0x36c)];if(_0x177ddf&&!_0x345d73)return!0x1;let _0xe7bae5=_0x2e7ac4[_0x5c31c3(0x66e)](_0x1664f5['ICommandService']),_0x104e42=_0x2e7ac4[_0x5c31c3(0x66e)](_0x1664f5[_0x5c31c3(0x435)]),_0x328f84=_0x2e7ac4[_0x5c31c3(0x66e)](_0x1b5924),_0xfbe614=_0x1664f5[_0x5c31c3(0x5b7)][_0x5c31c3(0x62b)](_0x5e67a0),_0x2d13d1=!0x1,_0x4547ff=_0xe7bae5[_0x5c31c3(0x323)]((_0x5775ca,_0x5805d3)=>{const _0x211acf=_0x5c31c3;let _0x2d4683=_0x5775ca[_0x211acf(0x623)];_0x5775ca[_0x211acf(0x4ee)]!==_0x1664f5[_0x211acf(0x49f)]['MUTATION']||_0x5805d3!=null&&_0x5805d3[_0x211acf(0x459)]||(_0x2d4683==null?void 0x0:_0x2d4683[_0x211acf(0x339)])!==_0x4697e2&&(_0x2d4683==null?void 0x0:_0x2d4683[_0x211acf(0x339)])!==_0x5e67a0[_0x211acf(0x213)][_0x211acf(0x339)]||(_0x2d13d1=!0x0);}),_0x2957d2;try{var _0x51379f;let _0x3d3930=(_0x51379f=_0x2e7ac4[_0x5c31c3(0x66e)](_0x1664f5[_0x5c31c3(0x2b4)])[_0x5c31c3(0x66e)](_0x360e3c,_0x1664f5[_0x5c31c3(0x3ff)][_0x5c31c3(0x532)]))==null?void 0x0:_0x51379f['getPivotCacheHandle'](_0x4697e2,_0x3090fb);_0x2957d2=_0x3d3930==null?void 0x0:_0x3d3930['changed$'][_0x5c31c3(0x362)]({'next':()=>{_0x2d13d1=!0x0;},'complete':()=>{_0x2d13d1=!0x0;}});let _0x3a6596=(await _0x328f84[_0x5c31c3(0x678)]({'unitId':_0x4697e2,'subUnitId':_0x330709,'pivotTableId':_0x3090fb,'params':{'type':_0x5c31c3(0x539),'setOptions':{'pivotTableId':_0x3090fb,'info':{..._0x56957e}}}}))['result'][_0x5c31c3(0x341)];if(!_0x3a6596||_0x2d13d1||!_0x1664f5[_0x5c31c3(0x5b7)][_0x5c31c3(0x499)](_0xfbe614,_0x4814ce[_0x5c31c3(0x3f5)](_0x4697e2,_0x330709,_0x3090fb))||_0x177ddf&&_0x4814ce['getCollection'](_0x4697e2,_0x3090fb)!==_0x345d73)return!0x1;if(_0x3a6596[_0x5c31c3(0x282)][_0x5c31c3(0x33b)]===0x0)return!0x0;let _0x36d6ed=_0x22545e(_0xe7bae5,{'pivotTableId':_0x3090fb,'unitId':_0x4697e2,'subUnitId':_0x330709},_0x3a6596[_0x5c31c3(0x282)]),_0x5152ba=_0x3a6596[_0x5c31c3(0x282)]['some'](_0xa17563=>_0xa17563['type']===_0xaf0b54[_0x5c31c3(0x470)][_0x5c31c3(0x496)]||_0xa17563[_0x5c31c3(0x4ee)]===_0xaf0b54[_0x5c31c3(0x470)][_0x5c31c3(0x59e)]),_0x197da0=_0x5152ba&&_0x56957e[_0x5c31c3(0x308)]===!0x1?await _0x2e7ac4[_0x5c31c3(0x66e)](_0x4bbba8)[_0x5c31c3(0x679)][_0x5c31c3(0x386)](_0x5c757c)({'redos':[],'undos':[],'groups':[],'validate':()=>void 0x0},{'unitId':_0x4697e2,'subUnitId':_0x330709,'pivotTableId':_0x3090fb}):void 0x0;if(!_0x177ddf&&!_0x5152ba)return(0x0,_0x1664f5[_0x5c31c3(0x368)])(_0x36d6ed['redos'],_0xe7bae5)['result']?(_0x104e42[_0x5c31c3(0x58b)]({'unitID':_0x4697e2,'redoMutations':_0x36d6ed['redos'],'undoMutations':_0x36d6ed[_0x5c31c3(0x22e)]}),!0x0):!0x1;if(_0x177ddf&&!_0x3a6596['removedGroupJSON'])return!0x1;let _0x1bbcc5=new _0xaf0b54[(_0x5c31c3(0x233))]();_0x1bbcc5[_0x5c31c3(0x45e)](_0x3a6596['view']);let _0x2d7a53={'cellInfo':_0x5e67a0[_0x5c31c3(0x61d)],'view':_0x1bbcc5,'isEmpty':_0x3a6596['isEmpty']};if(!await _0x2e7ac4[_0x5c31c3(0x66e)](_0x4bbba8)['asyncInterceptor'][_0x5c31c3(0x386)](_0x4ac011)(!0x0,_0x2d7a53)||_0x2d13d1||!_0x1664f5[_0x5c31c3(0x5b7)]['diffValue'](_0xfbe614,_0x4814ce[_0x5c31c3(0x3f5)](_0x4697e2,_0x330709,_0x3090fb))||_0x4814ce[_0x5c31c3(0x655)](_0x4697e2,_0x3090fb)!==_0x345d73)return!0x1;let _0x1fe543=_0x426b89(_0x2e7ac4,_0x1bbcc5,_0x5e67a0['targetCellInfo'],_0x3a6596['isEmpty']),_0x1ea196=_0x413f0e(_0x2e7ac4,_0x2d7a53),_0x265d50=(_0x3a6596[_0x5c31c3(0x557)]??[])[_0x5c31c3(0x517)]()[_0x5c31c3(0x39d)]()[_0x5c31c3(0x296)](_0x197176=>({'id':_0x3b9dcc['id'],'params':{'unitId':_0x4697e2,'subUnitId':_0x330709,'pivotTableId':_0x3090fb,'dataFieldId':_0x197176['id']}})),_0x2c8e25=(_0x3a6596[_0x5c31c3(0x557)]??[])[_0x5c31c3(0x296)](_0x345823=>({'id':_0x427b54['id'],'params':{'unitId':_0x4697e2,'subUnitId':_0x330709,'pivotTableId':_0x3090fb,'fieldJSON':_0x345823}})),_0x33dee4=[...(_0x197da0==null?void 0x0:_0x197da0[_0x5c31c3(0x286)])??[],{..._0x1fe543,'reverse':!0x1},{..._0x1ea196,'reverse':!0x1},{..._0x36d6ed,'reverse':!0x0},{'redos':_0x265d50,'undos':_0x2c8e25,'reverse':!0x0}];return _0x197da0==null||_0x197da0[_0x5c31c3(0x56c)](),_0xcb2ef3(_0x33dee4,_0xe7bae5)?(_0x104e42['pushUndoRedo']({'unitID':_0x4697e2,'redoMutations':[...(_0x197da0==null?void 0x0:_0x197da0[_0x5c31c3(0x53d)])??[],..._0x1fe543[_0x5c31c3(0x53d)],..._0x1ea196[_0x5c31c3(0x53d)],..._0x36d6ed['redos'],..._0x265d50],'undoMutations':[..._0x1fe543[_0x5c31c3(0x22e)],..._0x1ea196['undos'],..._0x2c8e25,..._0x36d6ed[_0x5c31c3(0x22e)],...(_0x197da0==null?void 0x0:_0x197da0[_0x5c31c3(0x22e)])??[]]}),!0x0):!0x1;}catch{return!0x1;}finally{_0x4547ff[_0x5c31c3(0x345)](),_0x2957d2==null||_0x2957d2['unsubscribe']();}}},_0x585095={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x561)],'id':_0x3f2857(0x2b9),async 'handler'(_0x76f075,_0x3fcfb6){const _0x59453a=_0x3f2857;if(!_0x3fcfb6)return!0x1;let _0x3ba198=_0x76f075[_0x59453a(0x66e)](_0x1664f5[_0x59453a(0x250)]),_0x2efaf2=_0x76f075[_0x59453a(0x66e)](_0x1664f5[_0x59453a(0x435)]),_0x4feb16=_0x76f075[_0x59453a(0x66e)](_0x1b5924),_0x43d3b4=_0x76f075['get'](_0x1664f5[_0x59453a(0x4d7)]),{info:_0x2ab15e,tableFieldId:_0x5d9f0f,pivotTableId:_0x3081a3,unitId:_0x1b706e,subUnitId:_0x13ad4b}=_0x3fcfb6,_0x15b15e=_0x2ab15e===void 0x0||_0x2ab15e[_0x59453a(0x4ee)]===_0xaf0b54['PivotDataFieldSortOperatorEnum'][_0x59453a(0x347)]?_0x2ab15e:{..._0x2ab15e,'sortLocale':_0x2ab15e[_0x59453a(0x49d)]??_0x1664f5[_0x59453a(0x643)][_0x43d3b4[_0x59453a(0x526)]()][_0x59453a(0x5ff)]},_0x419b3f=(await _0x4feb16[_0x59453a(0x678)]({'unitId':_0x1b706e,'subUnitId':_0x13ad4b,'pivotTableId':_0x3081a3,'params':{'type':_0x59453a(0x37a),'setPivotSort':{'tableFieldId':_0x5d9f0f,'info':_0x15b15e}}}))[_0x59453a(0x442)][_0x59453a(0x37a)];if(!_0x419b3f)return!0x1;let {changesets:_0x4d37da}=_0x419b3f,{redos:_0x39c202,undos:_0x302a8a}=_0x22545e(_0x3ba198,{'pivotTableId':_0x3081a3,'unitId':_0x1b706e,'subUnitId':_0x13ad4b},_0x4d37da);return(0x0,_0x1664f5[_0x59453a(0x368)])(_0x39c202,_0x3ba198)[_0x59453a(0x442)]?(_0x2efaf2['pushUndoRedo']({'unitID':_0x1b706e,'redoMutations':_0x39c202,'undoMutations':_0x302a8a}),!0x0):!0x1;}},_0x384e36={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x561)],'id':_0x3f2857(0x436),async 'handler'(_0x3a121b,_0x20c62a){const _0x505230=_0x3f2857;var _0x5706c6;if(!_0x20c62a)return!0x1;let _0xe41f79=_0x3a121b[_0x505230(0x66e)](_0x1664f5[_0x505230(0x250)]),{pivotTableId:_0x48743f,fieldId:_0x6966d4,valueFilterInfo:_0x36970a,unitId:_0x272253,subUnitId:_0x51c09d}=_0x20c62a,_0x4a7f55=(_0x5706c6=_0x3a121b[_0x505230(0x66e)](_0x12ae9f)[_0x505230(0x3f5)](_0x272253,_0x51c09d,_0x48743f))==null?void 0x0:_0x5706c6[_0x505230(0x1fa)],_0x5b1586=!!(_0x4a7f55&&(_0x4a7f55[_0x505230(0x1e9)]['includes'](_0x6966d4)||_0x4a7f55[_0x505230(0x4f7)][_0x505230(0x3cd)](_0x6966d4)));if(!_0x4a7f55||!_0x5b1586||_0x36970a!==void 0x0&&(_0x36970a[_0x505230(0x4ee)]!==_0xaf0b54[_0x505230(0x1c2)]['ValueFilter']||!_0x4a7f55[_0x505230(0x2d4)][_0x36970a[_0x505230(0x260)]]||!(0x0,_0xaf0b54[_0x505230(0x40f)])(_0x36970a[_0x505230(0x3fd)])))return!0x1;let _0x6f627f=_0x36970a&&{..._0x36970a,'expected':Array['isArray'](_0x36970a['expected'])?_0x36970a[_0x505230(0x411)][_0x505230(0x264)]():_0x36970a[_0x505230(0x411)]},_0x1b94b2=_0x3a121b['get'](_0x1b5924),_0x40a1b5=_0x3a121b[_0x505230(0x66e)](_0x1664f5[_0x505230(0x435)]),_0x59d0e4=(await _0x1b94b2[_0x505230(0x678)]({'unitId':_0x272253,'subUnitId':_0x51c09d,'pivotTableId':_0x48743f,'params':{'type':'setValuePivotFilter','setValuePivotFilter':{'tableFieldId':_0x6966d4,'filterInfo':_0x6f627f}}}))[_0x505230(0x442)][_0x505230(0x61c)];if(!_0x59d0e4)return!0x1;let {changesets:_0x38b2bf,pivotTableConfig:_0x1e7290,isEmpty:_0x484f48,view:_0xdd6c8b}=_0x59d0e4,_0x1f914e=_0x1e7290[_0x505230(0x61d)],_0x3cdb12=new _0xaf0b54[(_0x505230(0x233))]();_0x3cdb12[_0x505230(0x45e)](_0xdd6c8b);let _0x5e8735={'cellInfo':_0x1f914e,'view':_0x3cdb12,'isEmpty':_0x484f48};if(!await _0x3a121b['get'](_0x4bbba8)['asyncInterceptor'][_0x505230(0x386)](_0x4ac011)(!0x0,_0x5e8735))return!0x1;let _0x3dae97=_0x426b89(_0x3a121b,_0x3cdb12,_0x1f914e,_0x484f48),_0x4f813c=_0x413f0e(_0x3a121b,_0x5e8735),{undos:_0x215a17,redos:_0x11fa2f}=_0x22545e(_0xe41f79,{'pivotTableId':_0x48743f,'unitId':_0x272253,'subUnitId':_0x51c09d},_0x38b2bf);return(0x0,_0x1664f5['sequenceExecute'])([..._0x3dae97[_0x505230(0x53d)],..._0x4f813c[_0x505230(0x53d)],..._0x11fa2f],_0xe41f79)[_0x505230(0x442)]?(_0x40a1b5[_0x505230(0x58b)]({'unitID':_0x272253,'redoMutations':[..._0x3dae97[_0x505230(0x53d)],..._0x4f813c['redos'],..._0x11fa2f],'undoMutations':[..._0x3dae97[_0x505230(0x22e)],..._0x4f813c[_0x505230(0x22e)],..._0x215a17]}),!0x0):!0x1;}},_0x5cb5d9={'type':_0x1664f5['CommandType']['COMMAND'],'id':_0x3f2857(0x2c4),async 'handler'(_0xbd4dbf,_0x597436){const _0x350bae=_0x3f2857;if(!_0x597436)return!0x1;let _0xf1dec7=_0xbd4dbf[_0x350bae(0x66e)](_0x1664f5[_0x350bae(0x250)]),_0x35fe77=_0xbd4dbf[_0x350bae(0x66e)](_0x1664f5[_0x350bae(0x435)]),_0x9e8563=_0xbd4dbf[_0x350bae(0x66e)](_0x1b5924),{displayName:_0x4dcaae,subtotalType:_0x5dc4a6,format:_0x1330a1,showDataAs:_0x55948d,tableFieldId:_0x5d24c6,pivotTableId:_0x198bb5,unitId:_0x144c75,subUnitId:_0x49b8cb}=_0x597436,_0x54e247=(await _0x9e8563[_0x350bae(0x678)]({'unitId':_0x144c75,'subUnitId':_0x49b8cb,'pivotTableId':_0x198bb5,'params':{'type':_0x350bae(0x652),'setPivotSetting':{'tableFieldId':_0x5d24c6,'displayName':_0x4dcaae,'subtotalType':_0x5dc4a6,'format':_0x1330a1,'showDataAs':_0x55948d===void 0x0?void 0x0:{..._0x55948d}}}}))[_0x350bae(0x442)][_0x350bae(0x652)];if(!_0x54e247)return!0x1;let {changesets:_0x26683f,view:_0x243ab2,pivotTableConfig:_0x1525eb,isEmpty:_0x11ae64}=_0x54e247,_0x492e3f=_0x1525eb['targetCellInfo'],_0x5e9708=new _0xaf0b54[(_0x350bae(0x233))]();_0x5e9708[_0x350bae(0x45e)](_0x243ab2);let _0x68c9cd={'cellInfo':_0x492e3f,'view':_0x5e9708,'isEmpty':_0x11ae64};if(!await _0xbd4dbf[_0x350bae(0x66e)](_0x4bbba8)[_0x350bae(0x679)][_0x350bae(0x386)](_0x4ac011)(!0x0,_0x68c9cd))return!0x1;let _0x37088c=_0x426b89(_0xbd4dbf,_0x5e9708,_0x492e3f,_0x11ae64),_0x5ec4e9=_0x413f0e(_0xbd4dbf,_0x68c9cd),{undos:_0x3822c2,redos:_0x21685e}=_0x22545e(_0xf1dec7,{'pivotTableId':_0x198bb5,'unitId':_0x144c75,'subUnitId':_0x49b8cb},_0x26683f);return(0x0,_0x1664f5['sequenceExecute'])([..._0x37088c['redos'],..._0x5ec4e9[_0x350bae(0x53d)],..._0x21685e],_0xf1dec7)[_0x350bae(0x442)]?(_0x35fe77[_0x350bae(0x58b)]({'unitID':_0x144c75,'redoMutations':[..._0x37088c[_0x350bae(0x53d)],..._0x5ec4e9[_0x350bae(0x53d)],..._0x21685e],'undoMutations':[..._0x37088c[_0x350bae(0x22e)],..._0x5ec4e9[_0x350bae(0x22e)],..._0x3822c2]}),!0x0):!0x1;}},_0x40ce9d={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x210)],'id':_0x3f2857(0x2a3),'handler'(_0x228026,_0x515b42){const _0x360bf1=_0x3f2857;if(!_0x515b42)return!0x1;if(_0x228026[_0x360bf1(0x66e)](_0x1664f5[_0x360bf1(0x261)])[_0x360bf1(0x277)](_0x360bf1(0x36b))){let _0x576d5a=_0x228026[_0x360bf1(0x66e)](_0x12ae9f),{unitId:_0x4c10d5,subUnitId:_0x7a67c4,pivotTableId:_0x21100a,dataRangeInfo:_0x266ac8,pivotCacheId:_0x448515,collectionJSON:_0x39cb4f}=_0x515b42,_0x2a0f22=_0x576d5a['getPivotTableConfig'](_0x4c10d5,_0x7a67c4,_0x21100a);return!_0x2a0f22||_0x515b42[_0x360bf1(0x54c)]&&_0x2a0f22[_0x360bf1(0x60a)]!==_0x448515?!0x1:(_0x576d5a[_0x360bf1(0x33e)](()=>{const _0x2c7f00=_0x360bf1;let _0x5e1a6e=_0x576d5a[_0x2c7f00(0x497)]([{'unitId':_0x4c10d5,'subUnitId':_0x7a67c4,'pivotTableId':_0x21100a,'config':{..._0x2a0f22,'sourceRangeInfo':_0x266ac8,'pivotCacheId':_0x448515}}]);_0x5e1a6e[_0x2c7f00(0x2fd)](),_0x2a0f22[_0x2c7f00(0x213)][_0x2c7f00(0x339)]!==_0x266ac8[_0x2c7f00(0x339)]&&_0x576d5a[_0x2c7f00(0x39c)](_0x2a0f22['sourceRangeInfo']['unitId'],_0x21100a),_0x576d5a['updateCollectionMetadata'](_0x266ac8[_0x2c7f00(0x339)],_0x21100a,_0x39cb4f,_0x448515?{'pivotCacheId':_0x448515,'sourceRangeInfo':_0x266ac8}:void 0x0),_0x5e1a6e[_0x2c7f00(0x624)]();}),!0x0);}let _0x1fc31c=_0x228026['get'](_0x360e3c),{pivotTableId:_0x120c75,pivotCacheId:_0x3f74fa,deleteIds:_0x50d893,collectionJSON:_0x33cada,dataRangeInfo:_0x5f121b,unitId:_0x2699c6,subUnitId:_0x50816f}=_0x515b42,_0x4258b1=_0x1fc31c[_0x360bf1(0x3c7)](_0x120c75),_0x50559a=_0x1fc31c[_0x360bf1(0x3f5)](_0x2699c6,_0x50816f,_0x120c75);if(!_0x4258b1||!_0x50559a)return!0x1;if(_0x515b42['preserveCacheId']&&_0x3f74fa){if(_0x50559a[_0x360bf1(0x60a)]!==_0x3f74fa)return!0x1;_0x228026['get'](_0x4a218b)[_0x360bf1(0x1c3)](_0x3f74fa,_0x5f121b);let _0x2ac226=_0x1fc31c[_0x360bf1(0x5f3)](_0x5f121b['unitId']);for(let _0x3134c9 of _0x1fc31c[_0x360bf1(0x655)](_0x2699c6,_0x120c75)['getFieldIds']()){let _0x42de6d=_0x2ac226[_0x360bf1(0x4b8)][_0x3134c9];_0x42de6d&&_0x2ac226[_0x360bf1(0x328)][_0x42de6d['rangeKey']]===_0x3134c9&&delete _0x2ac226[_0x360bf1(0x328)][_0x42de6d[_0x360bf1(0x237)]];}}let {collection:_0x11ce2f,updateDataFieldList:_0x28d2a8}=_0x1fc31c[_0x360bf1(0x5b0)](_0x120c75,_0x33cada,_0x5f121b,_0x50559a[_0x360bf1(0x61d)]);_0x1fc31c['refreshData'](_0x11ce2f,_0x28d2a8,_0x5f121b),_0x4258b1[_0x360bf1(0x544)](_0x11ce2f);for(let _0x3de9ed of _0x50d893)_0x1fc31c[_0x360bf1(0x1cc)](_0x5f121b['unitId'],_0x3de9ed);return _0x1fc31c[_0x360bf1(0x4a8)](_0x2699c6,_0x50816f,_0x120c75,_0x5f121b,_0x3f74fa)?(_0x1fc31c[_0x360bf1(0x205)]({'unitId':_0x2699c6,'subUnitId':_0x50816f,'token':_0x120c75,'type':_0x360bf1(0x57d)}),!0x0):!0x1;}},_0x1e858c={'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x561)],'id':_0x3f2857(0x649),async 'handler'(_0x367caa,_0x5bd0c2){const _0x4435fa=_0x3f2857;let _0x130410=_0x367caa['get'](_0x1664f5['ICommandService']),_0x23a952=_0x367caa['get'](_0x1b5924),_0x10dbb5=_0x367caa[_0x4435fa(0x66e)](_0x1664f5[_0x4435fa(0x435)]);if(!_0x5bd0c2)return!0x1;let {token:_0xe3361b,dataRangeInfo:_0x43c936,unitId:_0x1cda7f,subUnitId:_0x29d8a8}=_0x5bd0c2,_0x345491=[],_0x3f9bec=[],_0x3da44a=(await _0x23a952[_0x4435fa(0x678)]({'unitId':_0x1cda7f,'subUnitId':_0x29d8a8,'pivotTableId':_0xe3361b,'params':{'type':_0x4435fa(0x4fb),'updatePivotSource':{'dataRangeInfo':_0x43c936,'unitId':_0x1cda7f,'subUnitId':_0x29d8a8}}}))['result'][_0x4435fa(0x4fb)];if(!_0x3da44a)return!0x1;let {changesets:_0x3a0410,deleteIds:_0x3d5982,createdFieldIds:_0x3ba2a1,collectionConfig:_0x1d0fa8,oldCollectionConfig:_0x27f2cf,view:_0x2e2396,isEmpty:_0x4c1f3d,pivotTableConfig:_0x422eb2,pivotCacheId:_0x205abd}=_0x3da44a;_0x3f9bec[_0x4435fa(0x4ef)]({'id':_0x40ce9d['id'],'params':{'pivotTableId':_0xe3361b,'pivotCacheId':_0x205abd,'deleteIds':_0x3d5982,'collectionJSON':_0x1d0fa8,'dataRangeInfo':_0x43c936,'unitId':_0x1cda7f,'subUnitId':_0x29d8a8}}),_0x345491[_0x4435fa(0x32e)]({'id':_0x40ce9d['id'],'params':{'pivotTableId':_0xe3361b,'pivotCacheId':_0x422eb2[_0x4435fa(0x60a)],'deleteIds':_0x3ba2a1,'collectionJSON':_0x27f2cf,'dataRangeInfo':_0x422eb2[_0x4435fa(0x213)],'unitId':_0x1cda7f,'subUnitId':_0x29d8a8}});let _0x342643=_0x422eb2[_0x4435fa(0x61d)],_0x520f7e=new _0xaf0b54['PivotView']();_0x520f7e[_0x4435fa(0x45e)](_0x2e2396);let _0x30b8ac={'cellInfo':_0x342643,'view':_0x520f7e,'isEmpty':_0x4c1f3d};if(!await _0x367caa[_0x4435fa(0x66e)](_0x4bbba8)['asyncInterceptor'][_0x4435fa(0x386)](_0x4ac011)(!0x0,_0x30b8ac))return!0x1;let _0x243497=_0x426b89(_0x367caa,_0x520f7e,_0x342643,_0x4c1f3d),_0x5ad84e=_0x413f0e(_0x367caa,_0x30b8ac),{redos:_0x2bc437,undos:_0x29fdbb}=_0x22545e(_0x130410,{'pivotTableId':_0xe3361b,'unitId':_0x1cda7f,'subUnitId':_0x29d8a8},_0x3a0410);return(0x0,_0x1664f5[_0x4435fa(0x368)])([..._0x243497[_0x4435fa(0x53d)],..._0x5ad84e['redos'],..._0x3f9bec,..._0x2bc437],_0x130410)[_0x4435fa(0x442)]?(_0x10dbb5[_0x4435fa(0x58b)]({'unitID':_0x1cda7f,'redoMutations':[..._0x243497[_0x4435fa(0x53d)],..._0x5ad84e['redos'],..._0x3f9bec,..._0x2bc437],'undoMutations':[..._0x243497[_0x4435fa(0x22e)],..._0x5ad84e[_0x4435fa(0x22e)],..._0x345491,..._0x29fdbb]}),!0x0):!0x1;}},_0x52ac57={'type':_0x1664f5['CommandType'][_0x3f2857(0x561)],'id':'sheet.command.update-pivot-value-position',async 'handler'(_0x333643,_0x535902){const _0x4c6c4e=_0x3f2857;if(!_0x535902)return!0x1;let _0x2ebeaf=_0x333643[_0x4c6c4e(0x66e)](_0x1664f5['ICommandService']),_0x138d62=_0x333643[_0x4c6c4e(0x66e)](_0x1b5924),_0x3c1bc4=_0x333643['get'](_0x1664f5[_0x4c6c4e(0x35a)]),_0x43bd05=_0x333643['get'](_0x1664f5['IUndoRedoService']),{pivotTableId:_0x5b1fde,position:_0x30b3c8,index:_0x325792}=_0x535902,_0x4426a0=(0x0,_0x366635['getSheetCommandTarget'])(_0x3c1bc4,_0x535902);if(!_0x4426a0)return!0x1;let {unitId:_0x417ae4,subUnitId:_0x5dd935}=_0x4426a0,_0x4c3c3c=(await _0x138d62[_0x4c6c4e(0x678)]({'unitId':_0x417ae4,'subUnitId':_0x5dd935,'pivotTableId':_0x5b1fde,'params':{'type':_0x4c6c4e(0x3d1),'updateValuePosition':{'position':_0x30b3c8,'index':_0x325792}}}))[_0x4c6c4e(0x442)][_0x4c6c4e(0x3d1)];if(!_0x4c3c3c)return!0x1;let {changesets:_0x4dc523,view:_0x97fa25,isEmpty:_0x4f41e8,pivotTableConfig:_0x5ed59a}=_0x4c3c3c,_0x287ab4=_0x5ed59a[_0x4c6c4e(0x61d)],_0x2ec9e0=new _0xaf0b54[(_0x4c6c4e(0x233))]();_0x2ec9e0[_0x4c6c4e(0x45e)](_0x97fa25);let _0x260939=_0x333643['get'](_0x4bbba8),_0x97ebea={'cellInfo':_0x287ab4,'view':_0x2ec9e0,'isEmpty':_0x4f41e8};if(!await _0x260939[_0x4c6c4e(0x679)][_0x4c6c4e(0x386)](_0x4ac011)(!0x0,_0x97ebea))return!0x1;let _0x1bc750=_0x426b89(_0x333643,_0x2ec9e0,_0x287ab4,_0x4f41e8),_0x4d7087=_0x413f0e(_0x333643,_0x97ebea),{undos:_0x1c0b6f,redos:_0x3b29c3}=_0x22545e(_0x2ebeaf,{'pivotTableId':_0x5b1fde,'unitId':_0x417ae4,'subUnitId':_0x5dd935},_0x4dc523);return(0x0,_0x1664f5[_0x4c6c4e(0x368)])([..._0x1bc750['redos'],..._0x4d7087[_0x4c6c4e(0x53d)],..._0x3b29c3],_0x2ebeaf)[_0x4c6c4e(0x442)]?(_0x43bd05[_0x4c6c4e(0x58b)]({'unitID':_0x417ae4,'redoMutations':[..._0x1bc750[_0x4c6c4e(0x53d)],..._0x4d7087[_0x4c6c4e(0x53d)],..._0x3b29c3],'undoMutations':[..._0x1bc750[_0x4c6c4e(0x22e)],..._0x4d7087['undos'],..._0x1c0b6f]}),!0x0):!0x1;}},_0x3d0278={'type':_0x1664f5['CommandType'][_0x3f2857(0x210)],'id':'sheet.operation.pivot-table-view-formula-mark-dirty','handler'(){return!0x0;}},_0x1e5d00=()=>({'runtimeCellData':{},'dirtyRanges':{}});function _0x39ffcf(_0x557dc8,_0x1e8845,_0x526a1f,_0x3d6b12,_0x55fceb,_0x1aeceb,_0x391026){const _0x506126=_0x3f2857;let _0x26c645=_0x3d6b12['getId'](),_0x3d4963=_0x557dc8[_0x506126(0x2f9)](),_0x1b35ba=_0x55fceb===_0xaf0b54['PivotTableFiledAreaEnum'][_0x506126(0x3a3)]?_0x3d4963['rowFields']:_0x3d4963[_0x506126(0x4f7)],_0x4fe0cf=_0x1b35ba['filter'](_0x36737e=>{const _0x39a6ca=_0x506126;var _0x29ea82;let _0xc0ace8=(_0x29ea82=_0x3d4963['dimension'][_0x36737e])==null?void 0x0:_0x29ea82[_0x39a6ca(0x365)],_0x362ff1=_0xc0ace8?_0x1e8845['getFieldById'](_0xc0ace8):void 0x0;return _0xc0ace8===_0x26c645||_0x362ff1&&_0x391026(_0x362ff1)&&_0x362ff1['getOriginFieldId']()===_0x26c645;});if(!_0x4fe0cf[_0x506126(0x33b)])return;let _0x5e1ff0=Math[_0x506126(0x259)](..._0x4fe0cf[_0x506126(0x296)](_0x5b92d9=>_0x1b35ba['indexOf'](_0x5b92d9))),_0x5f1c62=new Set([...Object[_0x506126(0x4e3)](_0x3d4963[_0x506126(0x57a)]),...Object[_0x506126(0x4e3)](_0x3d4963['measure'])][_0x506126(0x501)](([_0xa65fda])=>!_0x4fe0cf[_0x506126(0x3cd)](_0xa65fda))[_0x506126(0x296)](([,_0x5b11d0])=>_0x5b11d0[_0x506126(0x365)])),_0x70fc77=[...new Map(_0x4fe0cf[_0x506126(0x296)](_0x1a1efc=>_0x1e8845[_0x506126(0x352)](_0x3d4963[_0x506126(0x57a)][_0x1a1efc]['dataFieldId']))[_0x506126(0x501)](_0x558299=>!!_0x558299&&_0x391026(_0x558299))[_0x506126(0x501)](_0x1056ee=>!_0x5f1c62['has'](_0x1056ee['getId']()))[_0x506126(0x296)](_0x444f12=>[_0x444f12[_0x506126(0x56d)](),_0x444f12['toJSON']()]))[_0x506126(0x374)]()],_0x41167d=[];_0x557dc8[_0x506126(0x65c)]();let _0x48bf95=!0x1;try{for(let _0x399c3f of _0x4fe0cf){var _0x425765;Object[_0x506126(0x212)]['hasOwnProperty'][_0x506126(0x1aa)](_0x3d4963['collapseInfo'],_0x399c3f)&&_0x557dc8['setCollapse'](_0x399c3f,void 0x0);let _0x4806fa=_0x3d4963[_0x506126(0x57a)][_0x399c3f];_0x4806fa[_0x506126(0x365)]===_0x26c645&&((_0x425765=_0x4806fa['filterInfo'])==null?void 0x0:_0x425765[_0x506126(0x4ee)])===_0xaf0b54['PivotFilterTypeEnum'][_0x506126(0x303)]?_0x557dc8[_0x506126(0x56b)](_0x399c3f,_0xaf0b54[_0x506126(0x59c)][_0x506126(0x346)],0x0):_0x557dc8[_0x506126(0x5b8)](_0x399c3f);}for(let [_0x40a59c,_0x3434cf]of _0x1aeceb[_0x506126(0x4e3)]()){let _0x4c80af=_0x3434cf[_0x506126(0x56d)]();_0x526a1f[_0x506126(0x44f)](_0x3434cf),_0x1e8845[_0x506126(0x592)](_0x4c80af,_0x3434cf[_0x506126(0x466)]()),_0x41167d[_0x506126(0x4ef)](_0x4c80af),_0x3434cf[_0x506126(0x4cd)](_0x3d6b12),_0x557dc8[_0x506126(0x26a)](_0x4c80af,_0x55fceb,_0x5e1ff0+_0x40a59c);}_0x1aeceb['length']||_0x557dc8[_0x506126(0x26a)](_0x26c645,_0x55fceb,_0x5e1ff0);let _0x113d9e=_0x557dc8[_0x506126(0x3fb)](),_0x4f55b8=_0x557dc8[_0x506126(0x2a7)]()['toJSON'](),_0x39c962=_0x557dc8[_0x506126(0x467)]();return _0x48bf95=!0x0,{'view':_0x4f55b8,'changesets':_0x39c962,'isEmpty':_0x113d9e,'addedGroupJSON':_0x1aeceb[_0x506126(0x296)](_0x3a6d41=>_0x3a6d41[_0x506126(0x2f9)]()),'removedGroupJSON':_0x70fc77};}finally{_0x48bf95||_0x557dc8[_0x506126(0x489)]();for(let _0xccfa39 of _0x41167d)_0x1e8845[_0x506126(0x551)](_0xccfa39),Object['values'](_0x526a1f['collections'])[_0x506126(0x28b)](_0x3fba7c=>_0x3fba7c[_0x506126(0x2f5)](_0xccfa39))||_0x526a1f[_0x506126(0x2c2)](_0xccfa39);}}let _0x307284=(_0x92557,_0x1d2123,_0x581ff4,_0x4d7f6a)=>{const _0x51a6e6=_0x3f2857;let _0x402470=_0x92557['getFilterInfo'](_0x581ff4),_0x13e35d=(_0x402470==null?void 0x0:_0x402470['type'])===_0xaf0b54['PivotFilterTypeEnum'][_0x51a6e6(0x303)]?_0x3a3060(_0x1d2123,_0x402470):void 0x0;return{..._0x92557[_0x51a6e6(0x64c)](_0x1d2123),'supportsDateFilter':_0x1d2123[_0x51a6e6(0x4c2)]()===_0xaf0b54['PivotDataFieldDataTypeEnum'][_0x51a6e6(0x452)],'itemLabels':_0x1d2123 instanceof _0xaf0b54[_0x51a6e6(0x23f)]?Object[_0x51a6e6(0x30c)](_0x1d2123['items'][_0x51a6e6(0x296)](_0x55b958=>[_0x55b958,_0x1d2123[_0x51a6e6(0x1da)](_0x55b958)])):void 0x0,..._0x13e35d,'tableFieldId':_0x581ff4,'pivotTableId':_0x4d7f6a,'filterInfo':_0x402470,'conditionFilter':_0x92557[_0x51a6e6(0x579)](_0x581ff4),'sortInfo':_0x92557[_0x51a6e6(0x59b)](_0x581ff4),'format':_0x92557[_0x51a6e6(0x5e0)](_0x581ff4)};},_0x5463a6=(_0x46364c,_0x2db564,_0x587925)=>{const _0x1ba673=_0x3f2857;let _0xb15b4=_0x46364c[_0x1ba673(0x55a)];_0x46364c[_0x1ba673(0x439)](_0x158a4b=>{const _0x421a31=_0x1ba673;let _0x3da36a=_0x158a4b[_0x421a31(0x56d)](),_0x44764e=_0x158a4b['getDataFieldId'](),_0x13736e=_0x158a4b[_0x421a31(0x23b)](),_0xb5f812=_0x158a4b[_0x421a31(0x3f1)]();_0x2db564[_0x44764e]&&_0x2db564[_0x44764e]===_0xb5f812&&_0x13736e===_0xb5f812&&(_0x46364c[_0x421a31(0x380)](_0x3da36a,_0xb15b4[_0x421a31(0x3f1)](_0x44764e)),_0x158a4b['setSourceName'](_0xb15b4[_0x421a31(0x3f1)](_0x44764e)));}),_0x46364c[_0x1ba673(0x4c6)](_0xaf0b54[_0x1ba673(0x59c)][_0x1ba673(0x349)],_0x255616=>{const _0x335f35=_0x1ba673;let _0x478453=_0x255616['getId'](),_0x3f4924=_0x255616['getDataFieldId'](),_0x4971aa=_0x255616['getSourceName'](),_0x13a3d5=_0x255616[_0x335f35(0x3f1)](),_0x391ca0=_0x255616[_0x335f35(0x469)](),_0x5b0c05=_0x587925(_0x4971aa,_0x391ca0);_0x2db564[_0x3f4924]&&_0x2db564[_0x3f4924]===_0x4971aa&&_0x5b0c05===_0x13a3d5&&(_0x46364c[_0x335f35(0x380)](_0x478453,_0x587925(_0xb15b4[_0x335f35(0x3f1)](_0x3f4924),_0x391ca0)),_0x255616[_0x335f35(0x455)](_0xb15b4[_0x335f35(0x3f1)](_0x3f4924)));});},_0x41c3db=(_0x42b1f4,_0x2d2683,_0x89d109)=>{const _0x3d14fb=_0x3f2857;_0x42b1f4[_0x3d14fb(0x1b8)](_0xd68aee=>{const _0xf40a8c=_0x3d14fb;let _0x2765a8=_0xd68aee['getDataFieldId']();if(_0x2d2683[_0xf40a8c(0x2f5)](_0x2765a8))return;let _0x5a11b7=_0x2d2683[_0xf40a8c(0x66a)](_0xd68aee[_0xf40a8c(0x23b)]());if(!_0x5a11b7){_0x42b1f4[_0xf40a8c(0x5b8)](_0xd68aee[_0xf40a8c(0x56d)]());return;}_0x42b1f4[_0xf40a8c(0x336)](_0xd68aee[_0xf40a8c(0x56d)](),_0x5a11b7[_0xf40a8c(0x466)](),_0x5a11b7[_0xf40a8c(0x56d)]());let {area:_0x467c8b}=_0x42b1f4['getFieldPositionInfoById'](_0xd68aee[_0xf40a8c(0x56d)]()),_0x52c1e9=_0x467c8b===_0xaf0b54[_0xf40a8c(0x59c)][_0xf40a8c(0x349)]?_0x89d109(_0x5a11b7[_0xf40a8c(0x466)](),_0xd68aee[_0xf40a8c(0x469)]()):_0xd68aee[_0xf40a8c(0x23b)]();_0xd68aee[_0xf40a8c(0x3f1)]()!==_0x52c1e9&&_0x42b1f4[_0xf40a8c(0x380)](_0xd68aee[_0xf40a8c(0x56d)](),_0x52c1e9);});},_0x143c6b=(_0xe5b64b,_0x1116fb,_0x556032)=>{const _0x2a9b48=_0x3f2857;var _0x343eda,_0x982157;let {arrayFormulaCellData:_0x41704b,unitData:_0x1eaf3c}=_0x1116fb,{unitId:_0x8eb667,subUnitId:_0x3c4262}=_0x556032,_0x37886f=_0x556032['range'],{startColumn:_0xad11b,endColumn:_0x2eae28}=_0x37886f,_0xc17b65=_0x41704b==null||(_0x343eda=_0x41704b[_0x8eb667])==null?void 0x0:_0x343eda[_0x3c4262],_0x441a4b=_0x1eaf3c==null||(_0x982157=_0x1eaf3c[_0x8eb667])==null?void 0x0:_0x982157[_0x3c4262],_0x37523d=new Set(),_0x2f3c4f=_0x2eae28-_0xad11b+0x1,{dirtyRanges:_0x595db3}=_0xe5b64b;if(_0x595db3)for(let {range:_0x3f098f,sheetId:_0x4aa083,unitId:_0x3d557d}of _0x595db3){if(_0x4aa083!==_0x3c4262||_0x8eb667!==_0x3d557d)continue;let _0x1674ff=(0x0,_0x1664f5['getIntersectRange'])(_0x3f098f,_0x37886f);if(_0x1674ff){let {startColumn:_0x3fbda1,endColumn:_0x24a146}=_0x1674ff;for(let _0x1d2c9e=_0x3fbda1;_0x1d2c9e<=_0x24a146;_0x1d2c9e++)_0x37523d[_0x2a9b48(0x373)](_0x1d2c9e);}}if(_0x37523d[_0x2a9b48(0x293)]===_0x2f3c4f||_0x37523d[_0x2a9b48(0x293)]===_0x2f3c4f)return Array['from'](_0x37523d);if(_0x441a4b){let _0x4b32ee=_0x441a4b[_0x2a9b48(0x44a)](),_0x174907=Object[_0x2a9b48(0x58e)](_0x4b32ee);for(let _0x2512aa of _0x174907){let _0x515b35=_0x4b32ee[Number(_0x2512aa)];if(_0x37523d['size']===_0x2f3c4f)break;for(let _0x37fd8a in _0x515b35){let _0x199676=Number(_0x37fd8a);_0x199676<_0xad11b||_0x199676>_0x2eae28||_0x37523d['add'](_0x199676);}}}if(_0xc17b65){let _0x22b77c=_0xc17b65[_0x2a9b48(0x44a)](),_0x29a82e=Object[_0x2a9b48(0x58e)](_0x22b77c);for(let _0x27e90f of _0x29a82e){let _0x36ebf9=_0x22b77c[Number(_0x27e90f)];if(_0x37523d[_0x2a9b48(0x293)]===_0x2f3c4f)break;for(let _0x3f5a17 in _0x36ebf9){let _0x5ce5fe=Number(_0x3f5a17);_0x5ce5fe<_0xad11b||_0x5ce5fe>_0x2eae28||_0x37523d['add'](_0x5ce5fe);}}}return Array[_0x2a9b48(0x4de)](_0x37523d);},_0x310a5a=_0x3597df=>{const _0xc900cd=_0x3f2857;let _0x994cb7=new Set(),_0x51635f=[];for(let _0x53cd8b of _0x3597df){let _0x1d4adc=_0x53cd8b[_0xc900cd(0x5bb)]+','+_0x53cd8b[_0xc900cd(0x1ac)]+','+_0x53cd8b[_0xc900cd(0x5ea)]+','+_0x53cd8b[_0xc900cd(0x61a)];_0x994cb7[_0xc900cd(0x3b2)](_0x1d4adc)||(_0x994cb7[_0xc900cd(0x373)](_0x1d4adc),_0x51635f['push'](_0x53cd8b));}return _0x51635f;},_0x546bcd=class extends _0x1664f5[_0x3f2857(0x660)]{constructor(_0x502813,_0x4a5a2f,_0x3e225c,_0x1653cf,_0x1bae5b,_0x35bec4,_0x278438,_0x3092ef){const _0x520071=_0x3f2857;super(),this[_0x520071(0x5eb)]=_0x502813,this[_0x520071(0x2f6)]=_0x4a5a2f,this['_commandService']=_0x3e225c,this['_globalComputingSrv']=_0x1653cf,this[_0x520071(0x32b)]=_0x1bae5b,this['_univerInstanceService']=_0x35bec4,this[_0x520071(0x2ac)]=_0x278438,this['_sheetsPivotCacheService']=_0x3092ef,_0x108027(this,_0x520071(0x5fa),new _0x551644['BehaviorSubject'](!0x0)),_0x108027(this,_0x520071(0x1bf),_0x59aca3=>{const _0x77f8c3=_0x520071;this['_globalSubject'][_0x77f8c3(0x55f)](!0x1);}),_0x108027(this,_0x520071(0x425),_0x211eb6=>{const _0x1c7b4c=_0x520071;this[_0x1c7b4c(0x5fa)][_0x1c7b4c(0x55f)](!0x0);}),this[_0x520071(0x1dd)](),this[_0x520071(0x647)](),this['disposeWithMe'](this[_0x520071(0x37c)][_0x520071(0x323)](_0x2ac1b4=>{const _0x34d234=_0x520071;if(_0x2ac1b4['id']!==_0x338883['id'])return;let _0x39b77e=_0x2ac1b4[_0x34d234(0x623)],_0x3d1dc9;try{if(!this[_0x34d234(0x5eb)][_0x34d234(0x1d1)](_0x39b77e))return;}catch{_0x3d1dc9='calculation-failed';}return this[_0x34d234(0x37c)]['executeCommand'](_0x459f9c['id'],{..._0x39b77e,'error':_0x3d1dc9},{'onlyLocal':!0x0});}));}['_isAutoDateGroupEnabled'](){const _0x187dd6=_0x3f2857;var _0x3396b0;return((_0x3396b0=this['_configService'][_0x187dd6(0x277)]('sheets-pivot.config'))==null?void 0x0:_0x3396b0['autoDateGroup'])??!0x0;}[_0x3f2857(0x52b)](_0x4e8c3b){const _0x346a4f=_0x3f2857;let _0xe76577=this[_0x346a4f(0x34c)][_0x346a4f(0x300)](_0x4e8c3b,_0x1664f5[_0x346a4f(0x3b3)][_0x346a4f(0x418)]);_0x201d1a(_0xe76577==null?void 0x0:_0xe76577[_0x346a4f(0x48d)]());}[_0x3f2857(0x1dd)](){const _0x41ddc5=_0x3f2857;this[_0x41ddc5(0x3f3)](),this[_0x41ddc5(0x3c4)](),this[_0x41ddc5(0x52e)](),this[_0x41ddc5(0x358)]();}['_initGlobalComputed'](){const _0x2b41c6=_0x3f2857;this[_0x2b41c6(0x322)][_0x2b41c6(0x464)](this[_0x2b41c6(0x5fa)]),_0xaf0b54['PivotTable'][_0x2b41c6(0x508)](_0xaf0b54[_0x2b41c6(0x1e7)][_0x2b41c6(0x51d)],this[_0x2b41c6(0x1bf)]),_0xaf0b54[_0x2b41c6(0x642)][_0x2b41c6(0x508)](_0xaf0b54[_0x2b41c6(0x1e7)]['onQueryEnd'],this[_0x2b41c6(0x425)]);}[_0x3f2857(0x647)](){const _0x511aa9=_0x3f2857;this[_0x511aa9(0x58f)](this[_0x511aa9(0x37c)]['onCommandExecuted'](_0x1f13fd=>{const _0x30bc6b=_0x511aa9;_0x1f13fd['id']===_0x366635[_0x30bc6b(0x60f)]['id']&&this[_0x30bc6b(0x5eb)][_0x30bc6b(0x5b9)](_0x1f13fd[_0x30bc6b(0x623)]);})),this[_0x511aa9(0x58f)](this[_0x511aa9(0x37c)][_0x511aa9(0x323)](_0x56f3ac=>{const _0x5393a0=_0x511aa9;if(_0x56f3ac['id']!==_0x43fade['id'])return;let _0x1cf0d8=_0x56f3ac[_0x5393a0(0x623)],{unitId:_0x51b7e2,subUnitId:_0x277ea1,pivotTableId:_0x2e3dc2}=_0x1cf0d8,_0xd767a7=_0x1cf0d8['params'][_0x5393a0(0x4ee)],_0x2cea4c={},_0x4ac9bb;switch(_0xd767a7){case _0x5393a0(0x501):{let _0xcb6909=_0x1cf0d8['params'][_0x5393a0(0x501)];if(!_0xcb6909)return;let {row:_0x5d173f,col:_0x51ad5f,cellData:_0x3b26c4,pivotItemRenderInfoCache:_0x164bad,tableFieldId:_0x388372}=_0xcb6909,_0x4f725c=this['_sheetsPivotDataSourceModel'][_0x5393a0(0x3c7)](_0x1cf0d8[_0x5393a0(0x581)]);if(!_0x4f725c||!_0x164bad)return;if(_0x388372){let _0x521a65=_0x4f725c[_0x5393a0(0x672)](_0x388372);if(!_0x521a65)return;_0x2cea4c[_0x5393a0(0x501)]=_0x307284(_0x4f725c,_0x521a65,_0x388372,_0x1cf0d8[_0x5393a0(0x581)]);}else{let _0x3635ec=_0x536a9d(_0x5d173f,_0x51ad5f,_0x3b26c4,_0x4f725c,_0x164bad),_0x56d685=_0x3635ec==null?void 0x0:_0x3635ec[_0x5393a0(0x516)];if(!_0x56d685)return;let _0x13d2ce=_0x4f725c['getDataFieldByTableId'](_0x56d685);if(!_0x13d2ce)return;_0x2cea4c[_0x5393a0(0x501)]=_0x307284(_0x4f725c,_0x13d2ce,_0x56d685,_0x1cf0d8['pivotTableId']);}}break;case _0x5393a0(0x423):{let _0x586673=_0x1cf0d8[_0x5393a0(0x623)][_0x5393a0(0x423)];if(!_0x586673)return;let {pivotTableId:_0x1a3f1f}=_0x586673,_0x432b74=this[_0x5393a0(0x5eb)][_0x5393a0(0x3c7)](_0x1a3f1f);if(!_0x432b74)return;_0x2cea4c['panel']=_0x57d2e1(_0x432b74,_0x1a3f1f,this[_0x5393a0(0x5eb)][_0x5393a0(0x3f5)](_0x51b7e2,_0x277ea1,_0x1a3f1f));}break;case'addPivotField':{let _0x23207d=this[_0x5393a0(0x5eb)][_0x5393a0(0x3c7)](_0x2e3dc2),_0x1818d2=this[_0x5393a0(0x5eb)][_0x5393a0(0x5f3)](_0x51b7e2),_0xad7f39=_0x1818d2[_0x5393a0(0x655)](_0x2e3dc2),_0x3d8828=null,_0x4fb28a=this[_0x5393a0(0x5eb)]['getPivotTableConfig'](_0x51b7e2,_0x277ea1,_0x2e3dc2),_0x578e53=_0x1cf0d8[_0x5393a0(0x623)][_0x5393a0(0x1f9)];if(!_0x23207d||!_0x4fb28a||!_0x578e53)return!0x1;let {dataFieldId:_0x532e11,fieldArea:_0x122e96,index:_0x208a3b}=_0x578e53;_0x23207d[_0x5393a0(0x65c)]();let _0xfd8fa8=_0x23207d[_0x5393a0(0x26a)](_0x532e11,_0x122e96,_0x208a3b);if(_0xfd8fa8&&_0x122e96===_0xaf0b54[_0x5393a0(0x59c)][_0x5393a0(0x349)]){let _0x480525=_0xfd8fa8[_0x5393a0(0x56d)](),_0x3f7457=_0x23207d[_0x5393a0(0x672)](_0x480525);if(_0x3f7457){let _0x50de27=_0x3f7457==null?void 0x0:_0x3f7457[_0x5393a0(0x4c2)]();_0x23207d[_0x5393a0(0x208)](_0xfd8fa8['getId'](),_0x50de27===_0xaf0b54[_0x5393a0(0x493)]['number']?_0xaf0b54[_0x5393a0(0x3aa)][_0x5393a0(0x38c)]:_0xaf0b54[_0x5393a0(0x3aa)]['count']);}let _0x465af3=_0x23207d['getValueIndex'](),_0x33753b=_0x23207d[_0x5393a0(0x224)](),_0x3ceff0=_0x23207d[_0x5393a0(0x653)](_0xaf0b54[_0x5393a0(0x59c)][_0x5393a0(0x349)]);if(_0x465af3===-0x1&&_0x3ceff0>0x1){let _0x481208=_0x33753b===_0xaf0b54[_0x5393a0(0x427)][_0x5393a0(0x1c6)]?_0xaf0b54[_0x5393a0(0x427)]['Column']:_0x33753b,_0x137070=_0x481208===_0xaf0b54['PivotTableValuePositionEnum'][_0x5393a0(0x3a3)]?_0xaf0b54[_0x5393a0(0x59c)]['Row']:_0xaf0b54['PivotTableFiledAreaEnum'][_0x5393a0(0x32c)];_0x23207d[_0x5393a0(0x3d1)](_0x481208,_0x23207d[_0x5393a0(0x653)](_0x137070));}}else{if(_0xfd8fa8&&(_0x122e96===_0xaf0b54[_0x5393a0(0x59c)][_0x5393a0(0x3a3)]||_0x122e96===_0xaf0b54['PivotTableFiledAreaEnum']['Column'])){let _0x488b4d=_0xfd8fa8[_0x5393a0(0x56d)](),_0x569ffe=_0x23207d['getDataFieldByTableId'](_0x488b4d);if(_0x569ffe&&(_0x569ffe==null?void 0x0:_0x569ffe[_0x5393a0(0x4c2)]())===_0xaf0b54[_0x5393a0(0x493)][_0x5393a0(0x452)]){let _0x2e772b=_0x569ffe['getformat']();if(_0x2e772b&&_0x23207d[_0x5393a0(0x5f4)](_0xfd8fa8[_0x5393a0(0x56d)](),_0x2e772b),this[_0x5393a0(0x1f1)]()&&(0x0,_0xaf0b54[_0x5393a0(0x403)])(_0x23207d['getOptions']())===_0xaf0b54[_0x5393a0(0x543)]['Legacy']&&!_0xad7f39[_0x5393a0(0x2c9)]()[_0x5393a0(0x28b)](_0x4e2b81=>{const _0x502f1d=_0x5393a0;let _0x4399e6=_0xad7f39[_0x502f1d(0x352)](_0x4e2b81);return(0x0,_0xaf0b54[_0x502f1d(0x5a3)])(_0x4399e6)?_0x4399e6[_0x502f1d(0x1f4)]()['originalFieldId']===_0x532e11:!0x1;})){let _0xd89de1=_0x1818d2[_0x5393a0(0x628)]();this[_0x5393a0(0x52b)](_0x51b7e2);let _0x51a64a=_0xb38740(_0x569ffe[_0x5393a0(0x5d5)],_0x569ffe[_0x5393a0(0x344)]),_0x7070bb=_0x569ffe[_0x5393a0(0x466)]()+_0x5393a0(0x4ae)+_0x2afa6e(this['_injector'],_0x51a64a),_0x32b179=new _0xaf0b54[(_0x5393a0(0x3db))](_0xd89de1,_0x7070bb,(0x0,_0xaf0b54[_0x5393a0(0x3c9)])(0x3),_0x569ffe[_0x5393a0(0x56d)](),_0x51a64a);_0x1818d2[_0x5393a0(0x44f)](_0x32b179),_0xad7f39[_0x5393a0(0x592)](_0xd89de1,_0x7070bb),_0x23207d[_0x5393a0(0x26a)](_0xd89de1,_0x122e96,(_0x208a3b??0x0)+0x1),_0x3d8828=_0x32b179;}}}}let _0x52d401=_0x23207d[_0x5393a0(0x3fb)](),_0x546f98=_0x23207d[_0x5393a0(0x2a7)]()[_0x5393a0(0x2f9)](),_0x4dc8d2;if(_0x3d8828){_0x4dc8d2=_0x3d8828[_0x5393a0(0x2f9)]();let _0xeeeae0=_0x3d8828[_0x5393a0(0x56d)]();_0xad7f39['deleteField'](_0xeeeae0);let _0x3bc497=!0x0;for(let _0x5f59f4 in _0x1818d2['collections'])if(_0x1818d2[_0x5393a0(0x4e4)][_0x5f59f4][_0x5393a0(0x2c9)]()[_0x5393a0(0x3cd)](_0xeeeae0)){_0x3bc497=!0x1;break;}_0x3bc497&&_0x1818d2[_0x5393a0(0x2c2)](_0xeeeae0);}_0x2cea4c[_0x5393a0(0x1f9)]={'view':_0x546f98,'changesets':_0x23207d['endCollectChangeset'](),'isEmpty':_0x52d401,'pivotTableConfig':_0x4fb28a,'shouldBeAddedGroupJSON':_0x4dc8d2};}break;case _0x5393a0(0x5ca):{let _0x2ddfcf=_0x1cf0d8[_0x5393a0(0x623)]['addPivotTable'];if(!_0x2ddfcf)return;let _0x181eb2=_0x2ddfcf[_0x5393a0(0x213)],_0x15dc7d=_0x2ddfcf[_0x5393a0(0x581)],{collection:_0x565abe,updateDataFieldList:_0x2e9644}=this[_0x5393a0(0x5eb)][_0x5393a0(0x60c)]({'unitId':_0x181eb2[_0x5393a0(0x339)],'sheetName':_0x181eb2[_0x5393a0(0x486)],'subUnitId':_0x181eb2[_0x5393a0(0x555)],'range':_0x181eb2[_0x5393a0(0x4cf)]});this[_0x5393a0(0x5eb)][_0x5393a0(0x29a)](_0x565abe,_0x2e9644,_0x181eb2);let _0x25662a=new _0xaf0b54['PivotTable'](_0x565abe,void 0x0,_0x15dc7d);if(_0x2ddfcf[_0x5393a0(0x1fa)]){_0x25662a[_0x5393a0(0x48c)](_0x2ddfcf[_0x5393a0(0x1fa)]);let _0xbf8dc5=this['_sheetsPivotDataSourceModel'][_0x5393a0(0x5f3)](_0x181eb2[_0x5393a0(0x339)])['getAutoDisplayNameFunction']()||_0xaf0b54[_0x5393a0(0x50c)];_0x41c3db(_0x25662a,_0x565abe,_0xbf8dc5);}let _0x253b39=_0x25662a[_0x5393a0(0x2a7)](),_0x405172=_0x25662a['toJSON'](),_0x4d83ee=_0x565abe[_0x5393a0(0x2f9)]();_0x2cea4c[_0x5393a0(0x5ca)]={'pivotCacheId':this['_sheetsPivotCacheService'][_0x5393a0(0x228)](_0x181eb2,this[_0x5393a0(0x5eb)][_0x5393a0(0x5f3)](_0x181eb2['unitId']))??_0x5393a0(0x49b)+(0x0,_0x1664f5[_0x5393a0(0x2a8)])(),'view':_0x253b39,'fieldsConfig':_0x405172,'collectionConfig':_0x4d83ee,'isEmpty':_0x25662a[_0x5393a0(0x3fb)]()};}break;case _0x5393a0(0x563):{let _0x25c13f=this['_sheetsPivotDataSourceModel'][_0x5393a0(0x3c7)](_0x2e3dc2),_0x36325a=this[_0x5393a0(0x5eb)][_0x5393a0(0x5f3)](_0x51b7e2),_0x513716=_0x36325a[_0x5393a0(0x655)](_0x2e3dc2),_0x5aea82=this[_0x5393a0(0x5eb)][_0x5393a0(0x3f5)](_0x51b7e2,_0x277ea1,_0x2e3dc2),_0x26e394=_0x1cf0d8[_0x5393a0(0x623)][_0x5393a0(0x563)];if(!_0x25c13f||!_0x5aea82||!_0x26e394)return!0x1;let {tableFieldId:_0x2e20d1,dateType:_0x225df5}=_0x26e394,{area:_0x713c1,index:_0x2bacdf}=_0x25c13f[_0x5393a0(0x4d9)](_0x2e20d1);if(_0x713c1!==_0xaf0b54[_0x5393a0(0x59c)][_0x5393a0(0x3a3)]&&_0x713c1!==_0xaf0b54[_0x5393a0(0x59c)][_0x5393a0(0x32c)])return!0x1;let _0x41164e=_0x25c13f[_0x5393a0(0x672)](_0x2e20d1);if(!_0x41164e)return!0x1;let _0x29bb4d=_0x25c13f[_0x5393a0(0x2f9)](),_0x3e0fb9=_0x713c1===_0xaf0b54['PivotTableFiledAreaEnum'][_0x5393a0(0x3a3)]?_0x29bb4d[_0x5393a0(0x1e9)]:_0x29bb4d[_0x5393a0(0x4f7)];if((0x0,_0xaf0b54[_0x5393a0(0x5a3)])(_0x41164e)){if(_0x41164e['getDateType']()===_0x225df5)return!0x1;let _0x12d891=_0x25c13f['getDataFieldByDataFieldId'](_0x41164e[_0x5393a0(0x59f)]()),_0x4a6373=_0x25c13f[_0x5393a0(0x220)](_0x2e20d1);if(!_0x12d891||!_0x4a6373||_0x3e0fb9[_0x5393a0(0x28b)](_0x41e00a=>{const _0x5e8d53=_0x5393a0;if(_0x41e00a===_0x2e20d1)return!0x1;let _0x425a3e=_0x29bb4d['dimension'][_0x41e00a],_0x3b87b1=_0x425a3e?_0x513716[_0x5e8d53(0x352)](_0x425a3e[_0x5e8d53(0x365)]):void 0x0;return _0x3b87b1?(0x0,_0xaf0b54[_0x5e8d53(0x5a3)])(_0x3b87b1)&&_0x3b87b1[_0x5e8d53(0x59f)]()===_0x41164e[_0x5e8d53(0x59f)]()&&_0x3b87b1['getDateType']()===_0x225df5:!0x1;}))return!0x1;let _0x36f532=_0x41164e[_0x5393a0(0x202)](),_0x243449={..._0x513716['displayNameRecord']},_0xbf5e89=_0x12d891['getName']()+_0x5393a0(0x4ae)+_0x2afa6e(this[_0x5393a0(0x32b)],_0x225df5);_0x25c13f[_0x5393a0(0x65c)](),_0x513716[_0x5393a0(0x43a)](_0x41164e['getId'](),_0xbf5e89),_0x25c13f[_0x5393a0(0x380)](_0x4a6373[_0x5393a0(0x56d)](),_0xbf5e89),_0x41164e[_0x5393a0(0x357)](_0x225df5),this['_setDateSystem'](_0x51b7e2),_0x41164e[_0x5393a0(0x4cd)](_0x12d891),_0x25c13f[_0x5393a0(0x21c)](!0x0);let _0x6eb22c=_0x25c13f[_0x5393a0(0x3fb)](),_0x895d4=_0x25c13f[_0x5393a0(0x2a7)]()['toJSON']();_0x25c13f[_0x5393a0(0x467)](),_0x41164e[_0x5393a0(0x357)](_0x36f532),this[_0x5393a0(0x52b)](_0x51b7e2),_0x41164e[_0x5393a0(0x4cd)](_0x12d891),_0x513716[_0x5393a0(0x413)]=_0x243449,_0x2cea4c[_0x5393a0(0x563)]={'view':_0x895d4,'changesets':[],'isEmpty':_0x6eb22c,'pivotTableConfig':_0x5aea82};break;}if(_0x41164e[_0x5393a0(0x4c2)]()!==_0xaf0b54[_0x5393a0(0x493)][_0x5393a0(0x452)])return!0x1;let _0x589457=_0x3e0fb9[_0x5393a0(0x52a)](_0x2e20d1),_0x4965f4=_0x589457===-0x1?_0x2bacdf:_0x589457;if(_0x3e0fb9[_0x5393a0(0x28b)]((_0x1830fc,_0x448806)=>{const _0x5c3265=_0x5393a0;let _0x11c861=_0x29bb4d[_0x5c3265(0x57a)][_0x1830fc];if(!_0x11c861)return!0x1;let _0x439ea4=_0x513716[_0x5c3265(0x352)](_0x11c861[_0x5c3265(0x365)]);if((0x0,_0xaf0b54[_0x5c3265(0x5a3)])(_0x439ea4)&&_0x439ea4['getOriginFieldId']()===_0x41164e[_0x5c3265(0x56d)]()){if(_0x439ea4['getDateType']()===_0x225df5)return!0x0;_0x589457!==-0x1&&_0x448806<_0x589457&&(_0x4965f4=_0x448806+0x1);}return!0x1;}))return!0x1;_0x25c13f[_0x5393a0(0x65c)]();let _0x4cf3ad=_0x36325a[_0x5393a0(0x628)](),_0x217810=_0x41164e[_0x5393a0(0x466)]()+'\x20-\x20'+_0x2afa6e(this[_0x5393a0(0x32b)],_0x225df5),_0x261a40=new _0xaf0b54[(_0x5393a0(0x3db))](_0x4cf3ad,_0x217810,(0x0,_0xaf0b54[_0x5393a0(0x3c9)])(0x3),_0x41164e['getId'](),_0x225df5);this['_setDateSystem'](_0x51b7e2),_0x36325a[_0x5393a0(0x44f)](_0x261a40),_0x513716[_0x5393a0(0x592)](_0x4cf3ad,_0x217810),_0x261a40[_0x5393a0(0x4cd)](_0x41164e),_0x25c13f[_0x5393a0(0x26a)](_0x4cf3ad,_0x713c1,_0x4965f4),_0x25c13f[_0x5393a0(0x20b)](_0x2e20d1,!0x0);let _0xce8343=_0x25c13f[_0x5393a0(0x3fb)](),_0x2f3820=_0x25c13f[_0x5393a0(0x2a7)]()[_0x5393a0(0x2f9)](),_0x12e7ee=_0x261a40[_0x5393a0(0x2f9)]();_0x513716[_0x5393a0(0x551)](_0x4cf3ad);let _0x52cace=!0x0;for(let _0x1fa11b in _0x36325a[_0x5393a0(0x4e4)])if(_0x36325a[_0x5393a0(0x4e4)][_0x1fa11b][_0x5393a0(0x2c9)]()['includes'](_0x4cf3ad)){_0x52cace=!0x1;break;}_0x52cace&&_0x36325a['deleteDataField'](_0x4cf3ad),_0x2cea4c[_0x5393a0(0x563)]={'view':_0x2f3820,'changesets':_0x25c13f[_0x5393a0(0x467)](),'isEmpty':_0xce8343,'pivotTableConfig':_0x5aea82,'shouldBeAddedGroupJSON':_0x12e7ee};}break;case _0x5393a0(0x621):{let _0x49b495=_0x1cf0d8['params'][_0x5393a0(0x621)],_0x49bb98=this[_0x5393a0(0x5eb)][_0x5393a0(0x3c7)](_0x2e3dc2),_0x1f1841=this[_0x5393a0(0x5eb)][_0x5393a0(0x3f5)](_0x51b7e2,_0x277ea1,_0x2e3dc2);if(!_0x49b495||!_0x49bb98||!_0x1f1841||(0x0,_0xaf0b54[_0x5393a0(0x403)])(_0x49bb98[_0x5393a0(0x625)]())!==_0xaf0b54['PivotDateGroupingMode']['ExcelLike'])break;let {area:_0x143907}=_0x49bb98['getFieldPositionInfoById'](_0x49b495[_0x5393a0(0x35d)]);if(_0x143907!==_0xaf0b54[_0x5393a0(0x59c)][_0x5393a0(0x3a3)]&&_0x143907!==_0xaf0b54['PivotTableFiledAreaEnum'][_0x5393a0(0x32c)])break;let _0x42d156=this[_0x5393a0(0x5eb)][_0x5393a0(0x5f3)](_0x51b7e2),_0x156d74=_0x42d156[_0x5393a0(0x655)](_0x2e3dc2),_0x361215=_0x49bb98[_0x5393a0(0x672)](_0x49b495[_0x5393a0(0x35d)]),_0x4c41b6=_0x361215&&(0x0,_0xaf0b54['isDateGroupField'])(_0x361215)?_0x361215[_0x5393a0(0x59f)]():_0x361215==null?void 0x0:_0x361215[_0x5393a0(0x56d)](),_0x3d016e=_0x4c41b6?_0x156d74[_0x5393a0(0x352)](_0x4c41b6):void 0x0;if(!_0x3d016e||_0x3d016e[_0x5393a0(0x4c2)]()!==_0xaf0b54[_0x5393a0(0x493)][_0x5393a0(0x452)])break;this[_0x5393a0(0x52b)](_0x51b7e2);let _0xa3b3da=(0x0,_0xaf0b54[_0x5393a0(0x49c)])(_0x49b495[_0x5393a0(0x4d2)],_0x3d016e);if(!_0xa3b3da)break;let {units:_0x86123c,..._0x37113e}=_0xa3b3da,_0x5b39c7={[_0xaf0b54[_0x5393a0(0x204)][_0x5393a0(0x324)]]:_0xaf0b54[_0x5393a0(0x5d2)]['Year'],[_0xaf0b54[_0x5393a0(0x204)]['Quarter']]:_0xaf0b54['PivotDateGroupFieldDateTypeEnum'][_0x5393a0(0x23e)],[_0xaf0b54[_0x5393a0(0x204)]['Month']]:_0xaf0b54[_0x5393a0(0x5d2)]['Month'],[_0xaf0b54[_0x5393a0(0x204)]['Day']]:_0xaf0b54[_0x5393a0(0x5d2)][_0x5393a0(0x5c9)],[_0xaf0b54[_0x5393a0(0x204)]['Hour']]:_0xaf0b54[_0x5393a0(0x5d2)][_0x5393a0(0x291)],[_0xaf0b54[_0x5393a0(0x204)]['Minute']]:_0xaf0b54[_0x5393a0(0x5d2)][_0x5393a0(0x5a1)],[_0xaf0b54[_0x5393a0(0x204)][_0x5393a0(0x2e1)]]:_0xaf0b54[_0x5393a0(0x5d2)][_0x5393a0(0x5a1)]},_0x3cfff8=_0x39ffcf(_0x49bb98,_0x156d74,_0x42d156,_0x3d016e,_0x143907,_0x86123c['map'](_0x16b240=>new _0xaf0b54[(_0x5393a0(0x3db))](_0x42d156[_0x5393a0(0x628)](),_0x3d016e['getName']()+_0x5393a0(0x4ae)+_0x2afa6e(this[_0x5393a0(0x32b)],_0x16b240),(0x0,_0xaf0b54[_0x5393a0(0x3c9)])(0x3),_0x3d016e['getId'](),_0x5b39c7[_0x16b240],{..._0x37113e,'unit':_0x16b240,..._0x16b240===_0xaf0b54[_0x5393a0(0x204)][_0x5393a0(0x63b)]?{'groupByDate':_0x86123c[_0x5393a0(0x33b)]===0x1}:{}})),_0xaf0b54[_0x5393a0(0x5a3)]);_0x3cfff8&&(_0x2cea4c[_0x5393a0(0x621)]={..._0x3cfff8,'pivotTableConfig':_0x1f1841});}break;case _0x5393a0(0x491):{var _0x37a910;let _0x1281b7=_0x1cf0d8[_0x5393a0(0x623)]['numberGroupDefaults'],_0x5726df=this[_0x5393a0(0x5eb)][_0x5393a0(0x3c7)](_0x2e3dc2);if(!_0x1281b7||!_0x5726df)break;let _0x41619c=_0x5726df[_0x5393a0(0x672)](_0x1281b7[_0x5393a0(0x35d)]),_0x4d693f=_0x41619c instanceof _0xaf0b54[_0x5393a0(0x3b9)]?_0x41619c['getOriginFieldId']():_0x41619c==null?void 0x0:_0x41619c[_0x5393a0(0x56d)](),_0x1e1b82=_0x4d693f?(_0x37a910=this[_0x5393a0(0x5eb)][_0x5393a0(0x655)](_0x51b7e2,_0x2e3dc2))==null?void 0x0:_0x37a910[_0x5393a0(0x352)](_0x4d693f):void 0x0;(_0x1e1b82==null?void 0x0:_0x1e1b82[_0x5393a0(0x3ab)]())===_0xaf0b54['PivotDataFieldTypeEnum'][_0x5393a0(0x2aa)]&&_0x1e1b82[_0x5393a0(0x4c2)]()===_0xaf0b54[_0x5393a0(0x493)][_0x5393a0(0x221)]&&(_0x2cea4c[_0x5393a0(0x491)]=(0x0,_0xaf0b54[_0x5393a0(0x622)])(_0x1e1b82));}break;case'setPivotNumberGroup':{let _0x4d61f7=_0x1cf0d8[_0x5393a0(0x623)][_0x5393a0(0x5e3)],_0x2b2dd6=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x2e3dc2),_0xe735ea=this[_0x5393a0(0x5eb)]['getPivotTableConfig'](_0x51b7e2,_0x277ea1,_0x2e3dc2);if(!_0x4d61f7||!_0x2b2dd6||!_0xe735ea)break;let {area:_0x3cd09d}=_0x2b2dd6['getFieldPositionInfoById'](_0x4d61f7[_0x5393a0(0x35d)]);if(_0x3cd09d!==_0xaf0b54[_0x5393a0(0x59c)][_0x5393a0(0x3a3)]&&_0x3cd09d!==_0xaf0b54[_0x5393a0(0x59c)][_0x5393a0(0x32c)])break;let _0x6955bd=this[_0x5393a0(0x5eb)]['getDataFieldManager'](_0x51b7e2),_0x43b235=_0x6955bd[_0x5393a0(0x655)](_0x2e3dc2),_0x4bfbdd=_0x2b2dd6[_0x5393a0(0x672)](_0x4d61f7[_0x5393a0(0x35d)]),_0x4cba46=_0x4bfbdd instanceof _0xaf0b54['NumberGroupField']?_0x4bfbdd['getOriginFieldId']():_0x4bfbdd==null?void 0x0:_0x4bfbdd[_0x5393a0(0x56d)](),_0xae372f=_0x4cba46?_0x43b235[_0x5393a0(0x352)](_0x4cba46):void 0x0;if(!_0xae372f||_0xae372f[_0x5393a0(0x4c2)]()!==_0xaf0b54[_0x5393a0(0x493)][_0x5393a0(0x221)])break;let _0x529df4=(0x0,_0xaf0b54[_0x5393a0(0x1ab)])(_0x4d61f7[_0x5393a0(0x4d2)],_0xae372f);if(!_0x529df4)break;let _0x49c817=_0x39ffcf(_0x2b2dd6,_0x43b235,_0x6955bd,_0xae372f,_0x3cd09d,[new _0xaf0b54[(_0x5393a0(0x3b9))](_0x6955bd[_0x5393a0(0x628)](),_0xae372f[_0x5393a0(0x466)](),(0x0,_0xaf0b54[_0x5393a0(0x3c9)])(0x3),_0xae372f[_0x5393a0(0x56d)](),_0x529df4)],_0x14e48a=>_0x14e48a instanceof _0xaf0b54['NumberGroupField']);_0x49c817&&(_0x2cea4c[_0x5393a0(0x5e3)]={..._0x49c817,'pivotTableConfig':_0xe735ea});}break;case _0x5393a0(0x37e):{var _0x3c7bdd;let _0x6d570b=_0x1cf0d8[_0x5393a0(0x623)][_0x5393a0(0x37e)],_0x22287b=this[_0x5393a0(0x5eb)]['getPivotTableConfig'](_0x51b7e2,_0x277ea1,_0x2e3dc2)&&_0x6d570b&&((_0x3c7bdd=this[_0x5393a0(0x5eb)][_0x5393a0(0x655)](_0x51b7e2,_0x2e3dc2))==null?void 0x0:_0x3c7bdd[_0x5393a0(0x352)](_0x6d570b[_0x5393a0(0x3bb)])),_0x4bd099={'members':[],'error':_0x5393a0(0x3d5)};if(_0x2cea4c[_0x5393a0(0x37e)]=_0x4bd099,!_0x22287b||_0x22287b[_0x5393a0(0x3ab)]()!==_0xaf0b54[_0x5393a0(0x2bd)][_0x5393a0(0x2aa)]||!_0x6d570b||!Array[_0x5393a0(0x3a7)](_0x6d570b[_0x5393a0(0x3f6)])||!_0x6d570b[_0x5393a0(0x3f6)]['length']||_0x6d570b[_0x5393a0(0x3f6)]['length']>0x200)break;let _0x1946fe=new Map(),_0xd833bb=0x0;try{for(let {path:_0x4575ab,memberKey:_0x3fd80d,tupleKey:_0x5ea1c6}of _0x6d570b[_0x5393a0(0x3f6)]){if(typeof _0x4575ab!=_0x5393a0(0x5cb)||_0x3fd80d!==void 0x0&&typeof _0x3fd80d!='string'||_0x5ea1c6!==void 0x0&&typeof _0x5ea1c6!=_0x5393a0(0x5cb))break;let _0x390d40,_0x1de2e0,_0x43ed21=_0x5ea1c6===void 0x0?_0x22287b[_0x5393a0(0x1c4)](_0x4575ab):_0x22287b['getTupleIndexesByKey'](_0x5ea1c6);for(let _0x5d6c1d of _0x43ed21){let _0x40809f=(0x0,_0xaf0b54[_0x5393a0(0x38f)])(_0x22287b[_0x5393a0(0x4e0)][_0x5d6c1d]),_0x596f06=_0x40809f[_0x5393a0(0x4ee)]===_0x1664f5[_0x5393a0(0x1de)][_0x5393a0(0x5a8)]?_0x5393a0(0x666):JSON[_0x5393a0(0x21f)]([_0x40809f[_0x5393a0(0x4ee)],_0x40809f[_0x5393a0(0x3f8)]]);if(_0x3fd80d===void 0x0||_0x596f06===_0x3fd80d){if(_0x1de2e0!==void 0x0&&_0x1de2e0!==_0x596f06){_0x4bd099[_0x5393a0(0x5ef)]=_0x5393a0(0x331);break;}_0x390d40=_0x40809f,_0x1de2e0=_0x596f06;}}if(!_0x390d40||!_0x1de2e0||_0x4bd099[_0x5393a0(0x5ef)]==='ambiguousMember')break;_0x1946fe[_0x5393a0(0x57d)](_0x1de2e0,_0x390d40),_0xd833bb++;}_0xd833bb===_0x6d570b[_0x5393a0(0x3f6)][_0x5393a0(0x33b)]&&(_0x4bd099[_0x5393a0(0x615)]=Array[_0x5393a0(0x4de)](_0x1946fe[_0x5393a0(0x374)]()),delete _0x4bd099[_0x5393a0(0x5ef)]);}catch{}}break;case _0x5393a0(0x292):{let _0x1898e0=_0x1cf0d8[_0x5393a0(0x623)][_0x5393a0(0x292)],_0x518ccf=this['_sheetsPivotDataSourceModel'][_0x5393a0(0x3c7)](_0x2e3dc2),_0x1523d9=this[_0x5393a0(0x5eb)][_0x5393a0(0x3f5)](_0x51b7e2,_0x277ea1,_0x2e3dc2);if(!_0x1898e0||!Array[_0x5393a0(0x3a7)](_0x1898e0[_0x5393a0(0x286)])||!_0x518ccf||!_0x1523d9)break;let _0x4b32dd=this['_sheetsPivotDataSourceModel']['getDataFieldManager'](_0x51b7e2),_0x4e75d0=_0x4b32dd[_0x5393a0(0x655)](_0x2e3dc2),_0x1d97bd=_0x4e75d0['getFieldById'](_0x1898e0[_0x5393a0(0x3bb)]);if(!_0x1d97bd||_0x1d97bd[_0x5393a0(0x3ab)]()!==_0xaf0b54['PivotDataFieldTypeEnum'][_0x5393a0(0x2aa)])break;let _0x3ab147=_0x518ccf[_0x5393a0(0x2f9)](),_0x332ff9=_0x34ec6f=>{const _0x17fb84=_0x5393a0;var _0x5be8e2;let _0x528efa=(_0x5be8e2=_0x3ab147['dimension'][_0x34ec6f])==null?void 0x0:_0x5be8e2[_0x17fb84(0x365)],_0x22ccc6=_0x528efa?_0x4e75d0[_0x17fb84(0x352)](_0x528efa):void 0x0;return _0x528efa===_0x1d97bd[_0x17fb84(0x56d)]()||_0x22ccc6 instanceof _0xaf0b54[_0x17fb84(0x23f)]&&_0x22ccc6[_0x17fb84(0x59f)]()===_0x1d97bd[_0x17fb84(0x56d)]();},_0x3ae512=_0x3ab147['rowFields'][_0x5393a0(0x28b)](_0x332ff9);if(_0x3ae512===_0x3ab147[_0x5393a0(0x4f7)][_0x5393a0(0x28b)](_0x332ff9))break;let _0x4fd19d=_0x3ae512?_0xaf0b54[_0x5393a0(0x59c)][_0x5393a0(0x3a3)]:_0xaf0b54['PivotTableFiledAreaEnum'][_0x5393a0(0x32c)],_0x533507=(_0x3ae512?_0x3ab147[_0x5393a0(0x1e9)]:_0x3ab147['columnFields'])[_0x5393a0(0x296)](_0x1f3a33=>{const _0x6a264d=_0x5393a0;var _0x4abd91;let _0x1568c9=(_0x4abd91=_0x3ab147[_0x6a264d(0x57a)][_0x1f3a33])==null?void 0x0:_0x4abd91[_0x6a264d(0x365)],_0x3f9a86=_0x1568c9?_0x4e75d0[_0x6a264d(0x352)](_0x1568c9):void 0x0;return _0x3f9a86 instanceof _0xaf0b54[_0x6a264d(0x23f)]&&_0x3f9a86[_0x6a264d(0x59f)]()===_0x1d97bd[_0x6a264d(0x56d)]()?_0x3f9a86:void 0x0;})[_0x5393a0(0x209)](_0x15f3d8=>_0x15f3d8!==void 0x0);if(!_0x1898e0[_0x5393a0(0x286)][_0x5393a0(0x33b)]&&!_0x533507)break;let _0x562876=_0x1898e0[_0x5393a0(0x286)][_0x5393a0(0x33b)]?(0x0,_0xaf0b54[_0x5393a0(0x366)])({'groups':_0x1898e0[_0x5393a0(0x286)]},_0x1d97bd,_0x533507==null?void 0x0:_0x533507['getGrouping']()):void 0x0;if(_0x1898e0[_0x5393a0(0x286)][_0x5393a0(0x33b)]&&!_0x562876)break;let _0x2f5690=_0x39ffcf(_0x518ccf,_0x4e75d0,_0x4b32dd,_0x1d97bd,_0x4fd19d,_0x562876?[new _0xaf0b54['ManualGroupField'](_0x4b32dd[_0x5393a0(0x628)](),_0x1d97bd['getName'](),(0x0,_0xaf0b54[_0x5393a0(0x3c9)])(0x3),_0x1d97bd[_0x5393a0(0x56d)](),_0x562876)]:[],_0x42b228=>_0x42b228 instanceof _0xaf0b54[_0x5393a0(0x23f)]);_0x2f5690&&(_0x2cea4c[_0x5393a0(0x292)]={..._0x2f5690,'pivotTableConfig':_0x1523d9});}break;case _0x5393a0(0x1e1):{let _0x5a4539=_0x1cf0d8[_0x5393a0(0x623)][_0x5393a0(0x1e1)];if(!_0x5a4539)return;let {fieldId:_0x24dc25,area:_0x44bebe,index:_0x4d93a7}=_0x5a4539,_0x22a049=this[_0x5393a0(0x5eb)][_0x5393a0(0x3f5)](_0x51b7e2,_0x277ea1,_0x2e3dc2);if(!_0x22a049)return;let _0x3230f7=this[_0x5393a0(0x5eb)]['getPivotTableInstance'](_0x2e3dc2);if(!_0x3230f7)return;_0x3230f7['startCollectChangeset']();let {area:_0x3d9390,index:_0x27be5d}=_0x3230f7[_0x5393a0(0x4d9)](_0x24dc25);if(_0x3230f7[_0x5393a0(0x56b)](_0x24dc25,_0x44bebe,_0x4d93a7),_0x44bebe===_0xaf0b54[_0x5393a0(0x59c)][_0x5393a0(0x349)]&&_0x3230f7[_0x5393a0(0x220)](_0x24dc25)['getSubtotal']()===void 0x0){let _0x3469a6=_0x3230f7['getTableFieldById'](_0x24dc25);if(_0x3469a6&&_0x3469a6[_0x5393a0(0x469)]()===void 0x0){let _0x594853=_0x3230f7[_0x5393a0(0x672)](_0x24dc25);if(_0x594853){let _0x173073=_0x594853==null?void 0x0:_0x594853[_0x5393a0(0x4c2)]();_0x3230f7['setSubtotalType'](_0x24dc25,_0x173073===_0xaf0b54[_0x5393a0(0x493)]['number']?_0xaf0b54[_0x5393a0(0x3aa)][_0x5393a0(0x38c)]:_0xaf0b54[_0x5393a0(0x3aa)][_0x5393a0(0x421)]);}}}let _0x1d2090=_0x3230f7['getValuePosition'](),_0x45938e=_0x3230f7[_0x5393a0(0x475)](),_0x301834=_0x3230f7[_0x5393a0(0x653)](_0xaf0b54[_0x5393a0(0x59c)][_0x5393a0(0x349)])>0x1;if(_0x301834&&_0x3d9390===_0x44bebe&&(_0x44bebe===_0xaf0b54[_0x5393a0(0x59c)][_0x5393a0(0x3a3)]&&_0x1d2090===_0xaf0b54[_0x5393a0(0x427)][_0x5393a0(0x3a3)]||_0x44bebe===_0xaf0b54[_0x5393a0(0x59c)][_0x5393a0(0x32c)]&&_0x1d2090===_0xaf0b54[_0x5393a0(0x427)][_0x5393a0(0x32c)])){let _0x1e04c4=_0x45938e;_0x27be5d<=_0x45938e&&_0x1e04c4--,_0x4d93a7<=_0x45938e&&_0x1e04c4++,_0x3230f7[_0x5393a0(0x3d1)](_0x1d2090,_0x1e04c4);}else _0x301834&&(_0x3d9390===_0xaf0b54[_0x5393a0(0x59c)][_0x5393a0(0x3a3)]&&_0x1d2090===_0xaf0b54[_0x5393a0(0x427)]['Row']||_0x3d9390===_0xaf0b54[_0x5393a0(0x59c)][_0x5393a0(0x32c)]&&_0x1d2090===_0xaf0b54[_0x5393a0(0x427)][_0x5393a0(0x32c)])&&_0x45938e>=_0x27be5d&&_0x3230f7[_0x5393a0(0x3d1)](_0x1d2090,_0x45938e-0x1),_0x301834&&(_0x44bebe===_0xaf0b54['PivotTableFiledAreaEnum'][_0x5393a0(0x3a3)]&&_0x1d2090===_0xaf0b54[_0x5393a0(0x427)][_0x5393a0(0x3a3)]||_0x44bebe===_0xaf0b54[_0x5393a0(0x59c)][_0x5393a0(0x32c)]&&_0x1d2090===_0xaf0b54[_0x5393a0(0x427)]['Column'])&&_0x45938e>=_0x4d93a7&&_0x3230f7[_0x5393a0(0x3d1)](_0x1d2090,_0x45938e+0x1);let _0x418a80=_0x3230f7['query'](),_0x3155e0=_0x3230f7['isEmpty'](),_0x55b7e9=_0x3230f7['endCollectChangeset']();_0x2cea4c[_0x5393a0(0x1e1)]={'view':_0x418a80[_0x5393a0(0x2f9)](),'changesets':_0x55b7e9,'isEmpty':_0x3155e0,'pivotTableConfig':_0x22a049};}break;case _0x5393a0(0x3a2):{let _0x30671e=_0x1cf0d8[_0x5393a0(0x623)][_0x5393a0(0x3a2)];if(!_0x30671e)return;let _0x17849a=_0x30671e[_0x5393a0(0x32d)],_0x147303=this[_0x5393a0(0x5eb)][_0x5393a0(0x3f5)](_0x51b7e2,_0x277ea1,_0x2e3dc2);if(!_0x147303)return!0x1;let _0x469ae3=this[_0x5393a0(0x5eb)][_0x5393a0(0x3c7)](_0x2e3dc2);if(!_0x469ae3)return!0x1;_0x469ae3[_0x5393a0(0x65c)]();for(let _0x570c2b of _0x17849a){var _0x3b94b3,_0x31c6b6;let {area:_0x27d324}=_0x469ae3[_0x5393a0(0x4d9)](_0x570c2b);_0x27d324===_0xaf0b54['PivotTableFiledAreaEnum'][_0x5393a0(0x349)]&&_0x469ae3['removeValueFilterInfoByValueFieldId'](_0x570c2b),(_0x27d324===_0xaf0b54[_0x5393a0(0x59c)][_0x5393a0(0x3a3)]||_0x27d324===_0xaf0b54[_0x5393a0(0x59c)][_0x5393a0(0x32c)])&&_0x469ae3[_0x5393a0(0x488)](_0x570c2b);let _0x24eb63=_0x469ae3[_0x5393a0(0x2f9)]()[_0x5393a0(0x57a)][_0x570c2b];_0x27d324!==_0xaf0b54['PivotTableFiledAreaEnum'][_0x5393a0(0x346)]&&(_0x3b94b3=_0x30671e[_0x5393a0(0x4d8)])!=null&&_0x3b94b3[_0x5393a0(0x3cd)](_0x570c2b)&&(_0x24eb63==null||(_0x31c6b6=_0x24eb63[_0x5393a0(0x269)])==null?void 0x0:_0x31c6b6['type'])===_0xaf0b54[_0x5393a0(0x1c2)][_0x5393a0(0x303)]?_0x469ae3[_0x5393a0(0x56b)](_0x570c2b,_0xaf0b54[_0x5393a0(0x59c)][_0x5393a0(0x346)],0x0):_0x469ae3['removeField'](_0x570c2b);}let _0x13dbd4=_0x469ae3[_0x5393a0(0x3fb)](),_0x273fc0=_0x469ae3['query']()[_0x5393a0(0x2f9)]();_0x2cea4c['removePivotField']={'changesets':_0x469ae3['endCollectChangeset'](),'pivotTableConfig':_0x147303,'isEmpty':_0x13dbd4,'view':_0x273fc0};}break;case _0x5393a0(0x43d):{let _0x4b7471=_0x1cf0d8[_0x5393a0(0x623)][_0x5393a0(0x43d)];if(!_0x4b7471)return;let {tableFieldId:_0x249390,items:_0x5d6e79,partialItems:_0x6c6b06,isAll:_0x2b4170,clearAllFilters:_0x40c785}=_0x4b7471,_0x17c752=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x2e3dc2),_0x52445a=this[_0x5393a0(0x5eb)][_0x5393a0(0x3f5)](_0x51b7e2,_0x277ea1,_0x2e3dc2);if(!_0x17c752||!_0x52445a)return;_0x17c752[_0x5393a0(0x65c)]();let _0x45569f=_0x17c752[_0x5393a0(0x402)](_0x249390);if(_0x40c785)_0x17c752[_0x5393a0(0x5c0)](_0x249390);else{if((_0x45569f==null?void 0x0:_0x45569f['type'])===_0xaf0b54[_0x5393a0(0x1c2)][_0x5393a0(0x303)]){let _0x1c14b5=_0x17c752['getDataFieldByTableId'](_0x249390);if(!_0x1c14b5){_0x17c752[_0x5393a0(0x467)]();return;}_0x17c752[_0x5393a0(0x5dc)](_0x249390,{..._0x45569f,'selection':_0x10dff2(_0x1c14b5,_0x5d6e79,_0x6c6b06??[],_0x45569f[_0x5393a0(0x3ca)]??{'mode':_0x1664f5['FilterSelectionMode'][_0x5393a0(0x5e9)]},!!_0x2b4170)},_0xaf0b54[_0x5393a0(0x1d2)][_0x5393a0(0x2ce)]);}else _0x17c752[_0x5393a0(0x5dc)](_0x249390,{'type':_0xaf0b54[_0x5393a0(0x1c2)][_0x5393a0(0x1f8)],'list':_0x5d6e79,'isAll':_0x2b4170});}let _0x250661=_0x17c752[_0x5393a0(0x3fb)]();_0x2cea4c[_0x5393a0(0x43d)]={'view':_0x17c752[_0x5393a0(0x2a7)]()['toJSON'](),'changesets':_0x17c752[_0x5393a0(0x467)](),'isEmpty':_0x250661,'pivotTableConfig':_0x52445a};}break;case _0x5393a0(0x61c):{let _0x5effa7=_0x1cf0d8[_0x5393a0(0x623)][_0x5393a0(0x61c)];if(!_0x5effa7)break;let {tableFieldId:_0x1f2593,filterInfo:_0x577852}=_0x5effa7,_0x312ce3=this[_0x5393a0(0x5eb)]['getPivotTableInstance'](_0x2e3dc2),_0x26e670=this[_0x5393a0(0x5eb)][_0x5393a0(0x3f5)](_0x51b7e2,_0x277ea1,_0x2e3dc2);if(!_0x312ce3||!_0x26e670)break;_0x312ce3[_0x5393a0(0x65c)]();try{_0x312ce3['setValueFilterInfo'](_0x1f2593,_0x577852);let _0xf5a98d=_0x312ce3[_0x5393a0(0x3fb)](),_0x59c046=_0x312ce3[_0x5393a0(0x2a7)]()[_0x5393a0(0x2f9)](),_0xfd022e=_0x312ce3[_0x5393a0(0x467)]();_0xfd022e['length']>0x0&&(_0x2cea4c[_0x5393a0(0x61c)]={'view':_0x59c046,'changesets':_0xfd022e,'isEmpty':_0xf5a98d,'pivotTableConfig':_0x26e670});}catch(_0x457b51){_0x312ce3['cancelCollectChangeset'](),_0x4ac9bb=_0x457b51 instanceof Error?_0x457b51[_0x5393a0(0x1ca)]:String(_0x457b51);}}break;case'setPivotDateFilter':{let _0x14c7c6=_0x1cf0d8[_0x5393a0(0x623)][_0x5393a0(0x48b)],_0x3c15ee=this[_0x5393a0(0x5eb)]['getPivotTableInstance'](_0x2e3dc2),_0x3fa65c=this[_0x5393a0(0x5eb)]['getPivotTableConfig'](_0x51b7e2,_0x277ea1,_0x2e3dc2);if(!_0x14c7c6||!_0x3c15ee||!_0x3fa65c)break;let _0x215a31=_0x3c15ee[_0x5393a0(0x2f9)]();_0x3c15ee['startCollectChangeset']();try{if(!_0x3c15ee[_0x5393a0(0x3b5)](_0x14c7c6[_0x5393a0(0x35d)],_0x14c7c6[_0x5393a0(0x269)])){_0x3c15ee[_0x5393a0(0x489)]();break;}_0x2cea4c[_0x5393a0(0x48b)]={'view':_0x3c15ee[_0x5393a0(0x2a7)]()[_0x5393a0(0x2f9)](),'isEmpty':_0x3c15ee['isEmpty'](),'changesets':_0x3c15ee[_0x5393a0(0x467)](),'pivotTableConfig':_0x3fa65c};}catch(_0x936728){_0x3c15ee[_0x5393a0(0x489)](),_0x4ac9bb=_0x936728 instanceof Error?_0x936728[_0x5393a0(0x1ca)]:String(_0x936728);}finally{_0x3c15ee[_0x5393a0(0x48c)](_0x215a31),_0x3c15ee[_0x5393a0(0x2a7)]();}}break;case _0x5393a0(0x37a):{let _0x546f10=_0x1cf0d8[_0x5393a0(0x623)][_0x5393a0(0x37a)];if(!_0x546f10)return;let {tableFieldId:_0x1438d4,info:_0x1d9277}=_0x546f10,_0x43c9ef=this[_0x5393a0(0x5eb)]['getPivotTableInstance'](_0x2e3dc2),_0x219212=this[_0x5393a0(0x5eb)][_0x5393a0(0x3f5)](_0x51b7e2,_0x277ea1,_0x2e3dc2);if(!_0x43c9ef||!_0x219212)return;_0x43c9ef[_0x5393a0(0x65c)](),_0x43c9ef[_0x5393a0(0x5f7)](_0x1438d4,_0x1d9277);let _0x5445e0=_0x43c9ef[_0x5393a0(0x3fb)]();_0x2cea4c['setPivotSort']={'view':_0x43c9ef[_0x5393a0(0x2a7)]()[_0x5393a0(0x2f9)](),'changesets':_0x43c9ef[_0x5393a0(0x467)](),'isEmpty':_0x5445e0,'pivotTableConfig':_0x219212};}break;case _0x5393a0(0x652):{let _0x331905=_0x1cf0d8['params'][_0x5393a0(0x652)];if(!_0x331905)break;let {tableFieldId:_0x146649,displayName:_0x1be14f,subtotalType:_0xc2a935,format:_0x54c8a5,showDataAs:_0x4e3751}=_0x331905,_0x3ee928=this[_0x5393a0(0x5eb)][_0x5393a0(0x3c7)](_0x2e3dc2),_0x3abcb1=this['_sheetsPivotDataSourceModel']['getPivotTableConfig'](_0x51b7e2,_0x277ea1,_0x2e3dc2);if(!_0x3ee928||!_0x3abcb1||_0x4e3751!==void 0x0&&(!_0x3ee928[_0x5393a0(0x2be)]()[_0x5393a0(0x3cd)](_0x146649)||!_0x3abcb1[_0x5393a0(0x1fa)][_0x5393a0(0x2d4)][_0x146649]))break;_0x3ee928[_0x5393a0(0x65c)]();try{_0x1be14f!==void 0x0&&_0x3ee928[_0x5393a0(0x380)](_0x146649,_0x1be14f),_0xc2a935!==void 0x0&&_0x3ee928['setSubtotalType'](_0x146649,_0xc2a935),_0x54c8a5!==void 0x0&&_0x3ee928['setFieldFormat'](_0x146649,_0x54c8a5),_0x4e3751!==void 0x0&&_0x3ee928[_0x5393a0(0x570)](_0x146649,_0x4e3751);let _0x4ea0c1=_0x3ee928[_0x5393a0(0x3fb)](),_0x238ab1=_0x3ee928['query']()[_0x5393a0(0x2f9)]();_0x2cea4c[_0x5393a0(0x652)]={'changesets':_0x3ee928[_0x5393a0(0x467)](),'pivotTableConfig':_0x3abcb1,'isEmpty':_0x4ea0c1,'view':_0x238ab1};}catch(_0x407ee9){_0x3ee928[_0x5393a0(0x489)](),_0x4ac9bb=_0x407ee9 instanceof Error?_0x407ee9[_0x5393a0(0x1ca)]:String(_0x407ee9);}}break;case _0x5393a0(0x4fb):{let _0x30cac5=_0x1cf0d8[_0x5393a0(0x623)]['updatePivotSource'];if(!_0x30cac5)return;let {dataRangeInfo:_0x3fe996,unitId:_0x22662d,subUnitId:_0x25774e}=_0x30cac5,_0x261fe9=this[_0x5393a0(0x5eb)][_0x5393a0(0x3f5)](_0x22662d,_0x25774e,_0x2e3dc2),_0x590ff6=this[_0x5393a0(0x5eb)]['getPivotTableInstance'](_0x2e3dc2);if(!this[_0x5393a0(0x5eb)][_0x5393a0(0x655)](_0x22662d,_0x2e3dc2)||!_0x590ff6||!_0x261fe9)return;let _0x1e1aa9=this['_sheetsPivotDataSourceModel'][_0x5393a0(0x548)](_0x22662d,_0x2e3dc2,_0x3fe996),_0x14f75c=this['_sheetsPivotDataSourceModel'][_0x5393a0(0x655)](_0x22662d,_0x2e3dc2)['toJSON'](),{collection:_0x5ce13c,updateDataFieldList:_0x17aa7b}=this[_0x5393a0(0x5eb)]['createCollectionWithDataRange']({'unitId':_0x3fe996[_0x5393a0(0x339)],'sheetName':_0x3fe996['sheetName'],'subUnitId':_0x3fe996[_0x5393a0(0x555)],'range':_0x3fe996[_0x5393a0(0x4cf)]});this['_sheetsPivotDataSourceModel'][_0x5393a0(0x29a)](_0x5ce13c,_0x17aa7b,_0x3fe996);let _0x2bc333=_0x5ce13c[_0x5393a0(0x2f9)]();_0x590ff6[_0x5393a0(0x65c)]();let _0x478d19=this['_sheetsPivotDataSourceModel'][_0x5393a0(0x5f3)](_0x22662d)['getAutoDisplayNameFunction']()||_0xaf0b54[_0x5393a0(0x50c)];_0x41c3db(_0x590ff6,_0x5ce13c,_0x478d19);let _0x3624c4=_0x590ff6['isEmpty'](),_0x11c337=_0x590ff6[_0x5393a0(0x2a7)]()[_0x5393a0(0x2f9)](),_0x12b6de=_0x590ff6[_0x5393a0(0x467)]();_0x2cea4c[_0x5393a0(0x4fb)]={'pivotCacheId':this[_0x5393a0(0x44c)][_0x5393a0(0x228)](_0x3fe996,this['_sheetsPivotDataSourceModel'][_0x5393a0(0x5f3)](_0x3fe996[_0x5393a0(0x339)]))??_0x5393a0(0x49b)+(0x0,_0x1664f5[_0x5393a0(0x2a8)])(),'view':_0x11c337,'changesets':_0x12b6de,'isEmpty':_0x3624c4,'pivotTableConfig':_0x261fe9,'collectionConfig':_0x2bc333,'oldCollectionConfig':_0x14f75c,'deleteIds':_0x1e1aa9,'createdFieldIds':_0x17aa7b['map'](({dataField:_0x1b5637})=>_0x1b5637[_0x5393a0(0x56d)]())};}break;case _0x5393a0(0x3d1):{let _0x3b2c17=_0x1cf0d8[_0x5393a0(0x623)][_0x5393a0(0x3d1)];if(!_0x3b2c17)return;let {position:_0x930c06,index:_0x51225b}=_0x3b2c17,_0x2a0722=this[_0x5393a0(0x5eb)][_0x5393a0(0x3f5)](_0x51b7e2,_0x277ea1,_0x2e3dc2);if(!_0x2a0722)return!0x1;let _0xbce827=this['_sheetsPivotDataSourceModel'][_0x5393a0(0x3c7)](_0x2e3dc2);if(!_0xbce827)return!0x1;_0xbce827['startCollectChangeset'](),_0xbce827[_0x5393a0(0x3d1)](_0x930c06,_0x51225b);let _0x2e5660=_0xbce827[_0x5393a0(0x3fb)](),_0x5ca9fa=_0xbce827['query']()['toJSON']();_0x2cea4c[_0x5393a0(0x3d1)]={'changesets':_0xbce827['endCollectChangeset'](),'pivotTableConfig':_0x2a0722,'isEmpty':_0x2e5660,'view':_0x5ca9fa};}break;case _0x5393a0(0x53c):{let _0x44c37a=_0x1cf0d8[_0x5393a0(0x623)]['setPivotCollapse'];if(!_0x44c37a)return;let _0x3636f7=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x2e3dc2),_0x15f7a3=this[_0x5393a0(0x5eb)][_0x5393a0(0x3f5)](_0x51b7e2,_0x277ea1,_0x2e3dc2);if(!_0x3636f7||!_0x15f7a3||_0x44c37a['rowLevelFieldId']!==void 0x0&&_0x3636f7['getFieldPositionInfoById'](_0x44c37a[_0x5393a0(0x360)])[_0x5393a0(0x590)]!==_0xaf0b54[_0x5393a0(0x59c)][_0x5393a0(0x3a3)])return;if(_0x3636f7[_0x5393a0(0x65c)](),_0x44c37a[_0x5393a0(0x360)]!==void 0x0)_0x3636f7[_0x5393a0(0x46f)](_0x44c37a['rowLevelFieldId']);else{let {tableFieldId:_0xe06a62,collapse:_0x28240c,item:_0x3ad220}=_0x44c37a;_0x3636f7[_0x5393a0(0x20b)](_0xe06a62,_0x28240c,_0x3ad220);}let _0x16cb47=_0x3636f7[_0x5393a0(0x3fb)]();_0x2cea4c[_0x5393a0(0x53c)]={'view':_0x3636f7['query']()[_0x5393a0(0x2f9)](),'isEmpty':_0x16cb47,'pivotTableConfig':_0x15f7a3,'changesets':_0x3636f7['endCollectChangeset']()};}break;case'setPivotTableConfig':{let _0x2a0979=_0x1cf0d8[_0x5393a0(0x623)][_0x5393a0(0x4ac)];if(!_0x2a0979)return;let {pivotTableConfig:_0x1617cf}=_0x2a0979,_0x21762e=this[_0x5393a0(0x5eb)][_0x5393a0(0x3c7)](_0x2e3dc2),_0x2fbde9=this['_sheetsPivotDataSourceModel'][_0x5393a0(0x3f5)](_0x51b7e2,_0x277ea1,_0x2e3dc2);if(!_0x21762e||!_0x2fbde9)return;_0x21762e[_0x5393a0(0x65c)](),_0x186847(_0x21762e,_0x1617cf);let _0x5a7148=_0x21762e[_0x5393a0(0x3fb)](),_0x2d8525=_0x21762e[_0x5393a0(0x2a7)]()[_0x5393a0(0x2f9)](),_0x26d96b=_0x21762e[_0x5393a0(0x467)]();_0x2cea4c['setPivotTableConfig']={'view':_0x2d8525,'isEmpty':_0x5a7148,'pivotTableConfig':{..._0x2fbde9,'fieldsConfig':_0x21762e[_0x5393a0(0x2f9)]()},'changesets':_0x26d96b};}break;case _0x5393a0(0x2f8):{let _0x13b02d=_0x1cf0d8['params'][_0x5393a0(0x2f8)];if(!_0x13b02d)return;let _0x1b040d=this[_0x5393a0(0x5eb)][_0x5393a0(0x3c7)](_0x2e3dc2),_0x1302c1=this[_0x5393a0(0x5eb)][_0x5393a0(0x3f5)](_0x51b7e2,_0x277ea1,_0x2e3dc2);if(!_0x1b040d||!_0x1302c1)return;_0x1b040d['startCollectChangeset'](),_0x493a72(_0x1b040d,_0x13b02d[_0x5393a0(0x4f4)]);let _0x2c0e99=_0x1b040d[_0x5393a0(0x2a7)]()[_0x5393a0(0x2f9)](),_0x57ca71=_0x1b040d['endCollectChangeset']();_0x2cea4c[_0x5393a0(0x2f8)]={'view':_0x2c0e99,'isEmpty':!0x0,'pivotTableConfig':{..._0x1302c1,'fieldsConfig':_0x1b040d[_0x5393a0(0x2f9)]()},'changesets':_0x57ca71};}break;case _0x5393a0(0x539):{let _0x294d26=_0x1cf0d8[_0x5393a0(0x623)][_0x5393a0(0x222)];if(!_0x294d26)return;let {info:_0x166047}=_0x294d26,_0x246fab=this[_0x5393a0(0x5eb)][_0x5393a0(0x3c7)](_0x2e3dc2),_0x21ce8b=this[_0x5393a0(0x5eb)][_0x5393a0(0x3f5)](_0x51b7e2,_0x277ea1,_0x2e3dc2);if(!_0x246fab||!_0x21ce8b)return;_0x246fab['startCollectChangeset']();let _0x4c4fa3=_0x166047[_0x5393a0(0x36c)]!==void 0x0&&(0x0,_0xaf0b54[_0x5393a0(0x403)])(_0x246fab[_0x5393a0(0x625)]())!==_0x166047[_0x5393a0(0x36c)];_0x246fab[_0x5393a0(0x222)](_0x166047);let _0x4bbb6c=_0x4c4fa3?_0x1e3c04(_0x246fab):void 0x0,_0x25a7a6=_0x246fab[_0x5393a0(0x3fb)]();_0x2cea4c[_0x5393a0(0x341)]={'view':_0x246fab['query']()['toJSON'](),'isEmpty':_0x25a7a6,'pivotTableConfig':_0x21ce8b,'changesets':_0x246fab[_0x5393a0(0x467)](),'removedGroupJSON':_0x4bbb6c};}break;case _0x5393a0(0x2c5):{let _0x13a182=_0x1cf0d8[_0x5393a0(0x623)]['setPivotLayout'];if(!_0x13a182)return;let {layout:_0x13e21d}=_0x13a182,_0x529323=this[_0x5393a0(0x5eb)]['getPivotTableInstance'](_0x2e3dc2),_0x523da6=this[_0x5393a0(0x5eb)][_0x5393a0(0x3f5)](_0x51b7e2,_0x277ea1,_0x2e3dc2);if(!_0x529323||!_0x523da6)return;_0x529323['startCollectChangeset'](),_0x529323[_0x5393a0(0x4ed)](_0x13e21d);let _0x4d58c7=_0x529323[_0x5393a0(0x3fb)]();_0x2cea4c['setPivotLayout']={'view':_0x529323[_0x5393a0(0x2a7)]()['toJSON'](),'isEmpty':_0x4d58c7,'pivotTableConfig':_0x523da6,'changesets':_0x529323[_0x5393a0(0x467)]()};}break;case _0x5393a0(0x67c):{let _0x340618=_0x1cf0d8[_0x5393a0(0x623)]['addPivotTableWithConfig'];if(!_0x340618)return;let _0x1a0d10=_0x340618[_0x5393a0(0x213)],_0x3a78d1=_0x340618[_0x5393a0(0x581)],{collection:_0x594cf2,updateDataFieldList:_0x4f62c3}=this[_0x5393a0(0x5eb)][_0x5393a0(0x60c)]({'unitId':_0x1a0d10[_0x5393a0(0x339)],'sheetName':_0x1a0d10[_0x5393a0(0x486)],'subUnitId':_0x1a0d10['subUnitId'],'range':_0x1a0d10[_0x5393a0(0x4cf)]});this['_sheetsPivotDataSourceModel'][_0x5393a0(0x29a)](_0x594cf2,_0x4f62c3,_0x1a0d10);let _0x346f5a=new _0xaf0b54[(_0x5393a0(0x642))](_0x594cf2,void 0x0,_0x3a78d1),_0x44335d=_0x594cf2['getFieldIds'](),{rows:_0x442544,columns:_0x148b6c,filters:_0x2b205a,values:_0x3176bb}=_0x340618[_0x5393a0(0x1bd)];_0x346f5a[_0x5393a0(0x65c)]();for(let {field:_0x417612,selectedItems:_0x51982a}of _0x442544||[]){let _0x238b8a=_0x44335d[_0x417612];if(_0x238b8a){let _0xc5e05f=_0x346f5a['addFieldWithSourceId'](_0x238b8a,_0xaf0b54[_0x5393a0(0x59c)]['Row']);_0x51982a&&_0xc5e05f&&_0x346f5a[_0x5393a0(0x5dc)](_0xc5e05f['getId'](),{'type':_0xaf0b54[_0x5393a0(0x1c2)][_0x5393a0(0x1f8)],'list':_0x51982a,'isAll':!0x1});}}for(let {field:_0x18167e,selectedItems:_0x4829d4}of _0x148b6c||[]){let _0x1d216a=_0x44335d[_0x18167e];if(_0x1d216a){let _0x4efc8d=_0x346f5a[_0x5393a0(0x26a)](_0x1d216a,_0xaf0b54['PivotTableFiledAreaEnum'][_0x5393a0(0x32c)]);_0x4829d4&&_0x4efc8d&&_0x346f5a[_0x5393a0(0x5dc)](_0x4efc8d[_0x5393a0(0x56d)](),{'type':_0xaf0b54[_0x5393a0(0x1c2)][_0x5393a0(0x1f8)],'list':_0x4829d4,'isAll':!0x1});}}for(let {field:_0xa7d720,selectedItems:_0x26999b}of _0x2b205a||[]){let _0x4c7fc3=_0x44335d[_0xa7d720];if(_0x4c7fc3){let _0x13ef64=_0x346f5a[_0x5393a0(0x26a)](_0x4c7fc3,_0xaf0b54[_0x5393a0(0x59c)][_0x5393a0(0x397)]);_0x26999b&&_0x13ef64&&_0x346f5a[_0x5393a0(0x5dc)](_0x13ef64[_0x5393a0(0x56d)](),{'type':_0xaf0b54[_0x5393a0(0x1c2)][_0x5393a0(0x1f8)],'list':_0x26999b,'isAll':!0x1});}}for(let {field:_0x2ab6bb,subTotalType:_0x28b0ad,formatString:_0x3232d8}of _0x3176bb||[]){let _0x27eea9=_0x594cf2[_0x5393a0(0x352)](_0x44335d[_0x2ab6bb]);if(!_0x27eea9)continue;let _0x1b2b0d=_0x44335d[_0x2ab6bb];if(_0x1b2b0d){let _0x418f64=_0x346f5a[_0x5393a0(0x26a)](_0x1b2b0d,_0xaf0b54['PivotTableFiledAreaEnum'][_0x5393a0(0x349)]);if(_0x418f64){if(_0x28b0ad!==void 0x0){_0x346f5a[_0x5393a0(0x208)](_0x418f64[_0x5393a0(0x56d)](),_0x28b0ad);let _0x1b6792=(this[_0x5393a0(0x5eb)][_0x5393a0(0x5f3)](_0x1a0d10[_0x5393a0(0x339)])['getAutoDisplayNameFunction']()||_0xaf0b54[_0x5393a0(0x50c)])(_0x594cf2[_0x5393a0(0x3f1)](_0x1b2b0d),_0x28b0ad);_0x346f5a[_0x5393a0(0x380)](_0x418f64[_0x5393a0(0x56d)](),_0x1b6792);}else{if(_0x27eea9){let _0xdb6062=_0x27eea9==null?void 0x0:_0x27eea9[_0x5393a0(0x4c2)]();_0x346f5a[_0x5393a0(0x208)](_0x418f64['getId'](),_0xdb6062===_0xaf0b54[_0x5393a0(0x493)][_0x5393a0(0x221)]?_0xaf0b54['PivotSubtotalTypeEnum'][_0x5393a0(0x38c)]:_0xaf0b54[_0x5393a0(0x3aa)][_0x5393a0(0x421)]);}}_0x3232d8&&_0x346f5a['setFieldFormat'](_0x418f64[_0x5393a0(0x56d)](),_0x3232d8);}}}let _0x271621=_0x346f5a['query'](),_0x3c03ac=_0x346f5a[_0x5393a0(0x2f9)](),_0x5b8b37=_0x346f5a[_0x5393a0(0x3fb)](),_0x2fc5eb=_0x346f5a['endCollectChangeset'](),_0x240b9e=_0x594cf2[_0x5393a0(0x2f9)]();_0x2cea4c[_0x5393a0(0x587)]={'pivotCacheId':this[_0x5393a0(0x44c)][_0x5393a0(0x228)](_0x1a0d10,this[_0x5393a0(0x5eb)]['getDataFieldManager'](_0x1a0d10[_0x5393a0(0x339)]))??_0x5393a0(0x49b)+(0x0,_0x1664f5[_0x5393a0(0x2a8)])(),'view':_0x271621,'fieldsConfig':_0x3c03ac,'collectionConfig':_0x240b9e,'isEmpty':_0x5b8b37,'changesets':_0x2fc5eb};}break;case _0x5393a0(0x4ad):{let _0x5a7bc2=_0x121a92(this[_0x5393a0(0x32b)],_0x1cf0d8);if(!_0x5a7bc2)return;let {range:_0x144242,sourceSubUnitId:_0x580780,sourceUnitId:_0x4f3545,formatMap:_0x1733ce,indexes:_0x3fc22a}=_0x5a7bc2;_0x2cea4c[_0x5393a0(0x4ad)]={'range':_0x144242,'sourceSubUnitId':_0x580780,'sourceUnitId':_0x4f3545,'formatMap':_0x1733ce,'indexes':_0x3fc22a};}}this[_0x5393a0(0x37c)][_0x5393a0(0x4f1)](_0x426223['id'],{'version':_0x1cf0d8[_0x5393a0(0x2c6)],'result':_0x2cea4c,'error':_0x4ac9bb},{'onlyLocal':!0x0});}));}[_0x3f2857(0x52e)](){const _0x48f5e0=_0x3f2857;this[_0x48f5e0(0x58f)](this[_0x48f5e0(0x37c)][_0x48f5e0(0x323)](_0xbef691=>{const _0x2e172b=_0x48f5e0;if(_0xbef691['id']!==_0x39064['id'])return;let _0x16edac=_0xbef691[_0x2e172b(0x623)];return this[_0x2e172b(0x5eb)][_0x2e172b(0x440)](_0x16edac[_0x2e172b(0x56e)],_0x16edac[_0x2e172b(0x2fa)]),!0x0;}));}[_0x3f2857(0x3f3)](){const _0x47a7f6=_0x3f2857;this[_0x47a7f6(0x58f)](this[_0x47a7f6(0x5eb)][_0x47a7f6(0x51b)][_0x47a7f6(0x362)](_0x414fc1=>{const _0x54613f=_0x47a7f6;switch(_0x414fc1[_0x54613f(0x4ee)]){case _0x54613f(0x373):_0x414fc1[_0x54613f(0x66d)]&&_0x414fc1[_0x54613f(0x61d)]?this[_0x54613f(0x383)](_0x414fc1['token'],_0x414fc1[_0x54613f(0x66d)],_0x414fc1['targetCellInfo']):_0x414fc1[_0x54613f(0x66d)]&&_0x414fc1[_0x54613f(0x339)]&&_0x414fc1[_0x54613f(0x555)]&&this[_0x54613f(0x248)](_0x414fc1[_0x54613f(0x634)],_0x414fc1[_0x54613f(0x66d)],_0x414fc1[_0x54613f(0x339)],_0x414fc1[_0x54613f(0x555)]);break;case _0x54613f(0x4a7):{let {unitId:_0x45bac5,subUnitId:_0x3ef251,token:_0x56d097}=_0x414fc1;_0x45bac5&&_0x3ef251&&_0x56d097&&this[_0x54613f(0x21b)](_0x45bac5,_0x3ef251,_0x56d097);}break;case'update':{let {token:_0x13596c,oldSourceRangeInfo:_0x493dbb,dataRangeInfo:_0x10ebf1,targetCellInfo:_0x46c72a}=_0x414fc1,{unitId:_0x10a759,subUnitId:_0x44f1f9}=_0x493dbb||{};_0x10a759&&_0x44f1f9&&_0x13596c&&this[_0x54613f(0x21b)](_0x10a759,_0x44f1f9,_0x13596c),_0x10ebf1&&_0x46c72a&&this[_0x54613f(0x383)](_0x13596c,_0x10ebf1,_0x46c72a);}}}));}[_0x3f2857(0x358)](){const _0x5776f2=_0x3f2857;this[_0x5776f2(0x58f)](this['_sheetsPivotDataSourceModel'][_0x5776f2(0x3b8)][_0x5776f2(0x362)](_0x4594f6=>{const _0x47e0ee=_0x5776f2;Object[_0x47e0ee(0x58e)](_0x4594f6)['forEach'](_0x43b9e7=>{const _0x166c03=_0x47e0ee;let _0x15234d=this[_0x166c03(0x5eb)][_0x166c03(0x3a8)](_0x43b9e7);if(_0x15234d){let _0x1e6010=this[_0x166c03(0x5eb)][_0x166c03(0x3f5)](_0x15234d==null?void 0x0:_0x15234d[_0x166c03(0x339)],_0x15234d==null?void 0x0:_0x15234d[_0x166c03(0x555)],_0x43b9e7);_0x1e6010&&(this[_0x166c03(0x383)](_0x43b9e7,_0x1e6010[_0x166c03(0x213)],_0x1e6010[_0x166c03(0x61d)]),this[_0x166c03(0x62e)]([{'unitId':_0x15234d[_0x166c03(0x339)],'subUnitId':_0x15234d['subUnitId'],'token':_0x43b9e7}]));}});}));}[_0x3f2857(0x3c4)](){const _0x114b64=_0x3f2857;this[_0x114b64(0x58f)](this[_0x114b64(0x5eb)]['viewData$']['subscribe'](_0x2ccbd9=>{const _0x289e8f=_0x114b64;let {unitId:_0x253b38,subUnitId:_0x47bbb,pivotTableId:_0x43a109}=_0x2ccbd9;_0x253b38&&_0x47bbb&&_0x43a109&&this[_0x289e8f(0x62e)]([{'unitId':_0x253b38,'subUnitId':_0x47bbb,'token':_0x43a109}]);}));}[_0x3f2857(0x62e)](_0x20a5dc){const _0x388d18=_0x3f2857;let _0x327d32=Object[_0x388d18(0x5db)](null);_0x20a5dc[_0x388d18(0x211)](_0x1b7e28=>{const _0x140fc4=_0x388d18;let {unitId:_0x4f0b3a,subUnitId:_0x3ee1e9,token:_0x54b34c}=_0x1b7e28;_0x327d32[_0x4f0b3a]=_0x327d32[_0x4f0b3a]??Object[_0x140fc4(0x5db)](null),_0x327d32[_0x4f0b3a][_0x3ee1e9]=_0x327d32[_0x4f0b3a][_0x3ee1e9]??Object[_0x140fc4(0x5db)](null),_0x327d32[_0x4f0b3a][_0x3ee1e9][_0x54b34c]=!0x0;}),this[_0x388d18(0x37c)]['executeCommand'](_0x3d0278['id'],_0x327d32);}[_0x3f2857(0x21b)](_0x526bdf,_0x10ab43,_0x40300a){const _0x29fc2a=_0x3f2857;this[_0x29fc2a(0x2f6)][_0x29fc2a(0x513)](_0x526bdf,_0x10ab43,[_0x40300a]);}[_0x3f2857(0x248)](_0x2bebdc,_0x58c0c5,_0x288592,_0x352f17){const _0x165f4a=_0x3f2857;this['_featureCalculationManagerService'][_0x165f4a(0x3b2)](_0x288592,_0x352f17,_0x2bebdc)&&this[_0x165f4a(0x21b)](_0x288592,_0x352f17,_0x2bebdc),this['_featureCalculationManagerService'][_0x165f4a(0x350)](_0x288592,_0x352f17,_0x2bebdc,{'unitId':_0x288592,'subUnitId':_0x352f17,'dependencyRanges':[{'sheetId':_0x58c0c5[_0x165f4a(0x555)],..._0x58c0c5}],'getDirtyData':(_0x1aa46a,_0x4a947e)=>{const _0x4c5c32=_0x165f4a;let _0x1fbc24=_0x143c6b(_0x1aa46a,_0x4a947e,_0x58c0c5);if(_0x1fbc24[_0x4c5c32(0x33b)]===0x0)return _0x1e5d00();let _0x3f9734=this['_sheetsPivotDataSourceModel'][_0x4c5c32(0x655)](_0x58c0c5['unitId'],_0x2bebdc),_0x33dfe3=this['_sheetsPivotCacheService'][_0x4c5c32(0x27d)](_0x288592,_0x2bebdc);if(!_0x3f9734||!_0x33dfe3)return _0x1e5d00();let _0x5e08e0=_0x3f9734[_0x4c5c32(0x2c9)](),_0x1931c5=this['getMatrixFromRunTimeData'](_0x58c0c5[_0x4c5c32(0x339)],_0x58c0c5[_0x4c5c32(0x555)],_0x4a947e),_0x37e02d=[];for(let _0x546fb6 of _0x1fbc24){let _0x335867=_0x546fb6-(_0x58c0c5[_0x4c5c32(0x4cf)]['startColumn']||0x0),_0x411783=_0x5e08e0[_0x335867];_0x411783&&_0x37e02d['push']({'dataFieldId':_0x411783,'offsetIndex':_0x335867});}let _0x1e486d=this[_0x4c5c32(0x44c)][_0x4c5c32(0x313)](_0x33dfe3,_0x4a947e,()=>{const _0x25f075=_0x4c5c32;let _0x478a25={};return _0x37e02d[_0x25f075(0x211)](({dataFieldId:_0x1c0f99,offsetIndex:_0x28eb88})=>{const _0x266536=_0x25f075;_0x478a25[_0x1c0f99]=_0x3f9734[_0x266536(0x352)](_0x1c0f99)[_0x266536(0x466)](),this[_0x266536(0x5eb)][_0x266536(0x5f3)](_0x58c0c5[_0x266536(0x339)])[_0x266536(0x4b9)](_0x1c0f99,_0x58c0c5,_0x28eb88,_0x1931c5);}),{'dirtyFieldIds':_0x37e02d['map'](({dataFieldId:_0x48ee8c})=>_0x48ee8c),'previousFieldNames':_0x478a25};});return _0x3f9734['getGroupFieldsInfoByIds'](Array['from'](_0x1e486d[_0x4c5c32(0x444)]))[_0x4c5c32(0x211)](([_0x3adaaa,_0x102499])=>{const _0x489fc9=_0x4c5c32;let _0x2c6d0f=_0x3f9734['getFieldById'](_0x3adaaa),_0x23ad70=_0x3f9734[_0x489fc9(0x352)](_0x102499);_0x2c6d0f&&_0x23ad70&&((0x0,_0xaf0b54[_0x489fc9(0x5a3)])(_0x2c6d0f)&&this[_0x489fc9(0x52b)](_0x58c0c5[_0x489fc9(0x339)]),_0x2c6d0f['refreshGroupField'](_0x23ad70));}),_0x3f9734[_0x4c5c32(0x4e2)](),_0x1e5d00();}});}[_0x3f2857(0x383)](_0x48aec8,_0x51376b,_0x19f275){const _0x3f38ff=_0x3f2857;let {unitId:_0x1d11e5,subUnitId:_0x15582e}=_0x51376b;this[_0x3f38ff(0x2f6)][_0x3f38ff(0x3b2)](_0x19f275['unitId'],_0x19f275[_0x3f38ff(0x555)],_0x48aec8)&&this[_0x3f38ff(0x21b)](_0x1d11e5,_0x15582e,_0x48aec8);let _0x20ce09={'sheetId':_0x15582e,..._0x51376b};this[_0x3f38ff(0x2f6)][_0x3f38ff(0x350)](_0x19f275['unitId'],_0x19f275[_0x3f38ff(0x555)],_0x48aec8,{'unitId':_0x19f275['unitId'],'subUnitId':_0x19f275[_0x3f38ff(0x555)],'dependencyRanges':[_0x20ce09],'getDirtyData':(_0x5bead7,_0x44d6fc)=>{const _0x1d5ed0=_0x3f38ff;let _0x53958b=this['_sheetsPivotDataSourceModel'],_0x26f366=_0x53958b[_0x1d5ed0(0x3a8)](_0x48aec8);if(!_0x26f366)return _0x1e5d00();let {unitId:_0x2df7f4,subUnitId:_0x4ee0ee}=_0x26f366,_0x1e887c=_0x143c6b(_0x5bead7,_0x44d6fc,_0x51376b);if(_0x1e887c[_0x1d5ed0(0x33b)]>0x0){let _0x3b0396=_0x53958b[_0x1d5ed0(0x655)](_0x1d11e5,_0x48aec8),_0x2279c2=_0x3b0396[_0x1d5ed0(0x2c9)](),_0x24fbae=this[_0x1d5ed0(0x276)](_0x51376b['unitId'],_0x51376b[_0x1d5ed0(0x555)],_0x44d6fc),_0x567fdd=_0x53958b[_0x1d5ed0(0x5f3)](_0x1d11e5)[_0x1d5ed0(0x4c1)]()||_0xaf0b54['getAutoDisplayName'],_0xf02bd4=[];for(let _0x137669 of _0x1e887c){let _0x371499=_0x137669-(_0x51376b[_0x1d5ed0(0x4cf)][_0x1d5ed0(0x5ea)]||0x0),_0x39a6f9=_0x2279c2[_0x371499];_0x39a6f9&&_0xf02bd4[_0x1d5ed0(0x4ef)]({'dataFieldId':_0x39a6f9,'offsetIndex':_0x371499});}let _0x519832=_0x53958b[_0x1d5ed0(0x42c)](_0x2df7f4,_0x48aec8);if(!_0x519832)throw new _0x51868d[(_0x1d5ed0(0x216))](_0x51868d[_0x1d5ed0(0x2cb)][_0x1d5ed0(0x2a9)],{'targetUnitId':_0x2df7f4,'token':_0x48aec8});let _0x33c479=this[_0x1d5ed0(0x44c)]['refreshOnce'](_0x519832,_0x44d6fc,()=>{const _0x27ebc3=_0x1d5ed0;let _0x12e3c6={};return _0xf02bd4['forEach'](({dataFieldId:_0x49eb07,offsetIndex:_0x32b083})=>{const _0x17c1f2=_0x5a2c;_0x12e3c6[_0x49eb07]=_0x3b0396[_0x17c1f2(0x352)](_0x49eb07)[_0x17c1f2(0x466)](),_0x53958b[_0x17c1f2(0x5f3)](_0x1d11e5)[_0x17c1f2(0x4b9)](_0x49eb07,_0x51376b,_0x32b083,_0x24fbae);}),{'dirtyFieldIds':_0xf02bd4[_0x27ebc3(0x296)](({dataFieldId:_0x515191})=>_0x515191),'previousFieldNames':_0x12e3c6};});_0x3b0396[_0x1d5ed0(0x614)](Array[_0x1d5ed0(0x4de)](_0x33c479[_0x1d5ed0(0x444)]))[_0x1d5ed0(0x211)](_0x2e1352=>{const _0x487253=_0x1d5ed0;let [_0x59608f,_0x2b4dd7]=_0x2e1352,_0xe571cd=_0x3b0396[_0x487253(0x352)](_0x59608f),_0x4d87d0=_0x3b0396['getFieldById'](_0x2b4dd7);_0xe571cd&&_0x4d87d0&&((0x0,_0xaf0b54[_0x487253(0x5a3)])(_0xe571cd)&&this['_setDateSystem'](_0x1d11e5),_0xe571cd[_0x487253(0x4cd)](_0x4d87d0));}),_0x3b0396[_0x1d5ed0(0x4e2)]();let _0xb356a0=_0x53958b[_0x1d5ed0(0x3c7)](_0x48aec8);if(_0xb356a0){_0x5463a6(_0xb356a0,_0x33c479['previousFieldNames'],_0x567fdd),_0xb356a0[_0x1d5ed0(0x21c)](!0x0);let _0x53ec23=_0xb356a0[_0x1d5ed0(0x2a7)](),_0x52fc87=_0x53958b[_0x1d5ed0(0x3f5)](_0x2df7f4,_0x4ee0ee,_0x48aec8),_0x457330=_0x53958b[_0x1d5ed0(0x5f3)](_0x1d11e5)[_0x1d5ed0(0x2f9)]();_0x53958b[_0x1d5ed0(0x2e2)](_0x2df7f4,_0x4ee0ee,_0x1d5ed0(0x57d),_0x48aec8,_0x53ec23,_0x52fc87,_0x457330,!0x0);}}return this[_0x1d5ed0(0x1cf)](_0x2df7f4,_0x4ee0ee,_0x48aec8);}});}[_0x3f2857(0x276)](_0x20ddf2,_0x6f94b3,_0x3149fe){var _0x5ea676,_0x3e5d9a;let {arrayFormulaCellData:_0x1c4e64,unitData:_0x450de0}=_0x3149fe;return{'arrayFormulaCellDataMatrix':_0x1c4e64==null||(_0x5ea676=_0x1c4e64[_0x20ddf2])==null?void 0x0:_0x5ea676[_0x6f94b3],'unitDataMatrix':_0x450de0==null||(_0x3e5d9a=_0x450de0[_0x20ddf2])==null?void 0x0:_0x3e5d9a[_0x6f94b3]};}[_0x3f2857(0x1cf)](_0x79c0d9,_0x3b40e3,_0x3b1530){const _0x113169=_0x3f2857;let _0x1d3863=this[_0x113169(0x5eb)][_0x113169(0x2e6)](_0x79c0d9,_0x3b40e3,_0x3b1530),_0x1d4d39=[],_0x43bb21=new _0x1664f5[(_0x113169(0x40b))]();if(_0x1d3863){let {rangeCache:_0x16fc50,matrix:_0x39bcda,oldRangeCache:_0x1591ab,oldMatrix:_0x2eaf99}=_0x1d3863,_0x54c079=_0x3907d4(_0x1591ab),_0x429572=_0x3907d4(_0x16fc50);_0x1d4d39[_0x113169(0x4ef)](..._0x429572,..._0x54c079),_0x2eaf99&&_0x1591ab&&_0x54c079[_0x113169(0x211)](_0x47fbe5=>{const _0xd79300=_0x113169;for(let _0xc3ffc0=_0x47fbe5[_0xd79300(0x5bb)];_0xc3ffc0<=_0x47fbe5[_0xd79300(0x1ac)];_0xc3ffc0++)for(let _0x2463bf=_0x47fbe5[_0xd79300(0x5ea)];_0x2463bf<=_0x47fbe5[_0xd79300(0x61a)];_0x2463bf++)_0x43bb21[_0xd79300(0x3c8)](_0xc3ffc0,_0x2463bf);}),_0x39bcda&&_0x429572&&_0x429572['forEach'](_0xa8f234=>{const _0x2f6170=_0x113169;for(let _0x56be76=_0xa8f234[_0x2f6170(0x5bb)];_0x56be76<=_0xa8f234[_0x2f6170(0x1ac)];_0x56be76++)for(let _0x21e37d=_0xa8f234[_0x2f6170(0x5ea)];_0x21e37d<=_0xa8f234[_0x2f6170(0x61a)];_0x21e37d++)_0x43bb21['setValue'](_0x56be76,_0x21e37d,_0x39bcda[_0x2f6170(0x57c)](_0x56be76,_0x21e37d));});}let _0x3e7f7a={};return _0x3e7f7a[_0x79c0d9]={[_0x3b40e3]:_0x310a5a(_0x1d4d39)},{'runtimeCellData':{[_0x79c0d9]:{[_0x3b40e3]:_0x43bb21}},'dirtyRanges':_0x3e7f7a};}[_0x3f2857(0x345)](){}};_0x546bcd=_0x68e210([_0x8e806c(0x0,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x360e3c)),_0x8e806c(0x1,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x2aea65[_0x3f2857(0x3c1)])),_0x8e806c(0x2,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x1664f5[_0x3f2857(0x250)])),_0x8e806c(0x3,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x2aea65[_0x3f2857(0x295)])),_0x8e806c(0x4,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x1664f5[_0x3f2857(0x2b4)])),_0x8e806c(0x5,_0x1664f5['IUniverInstanceService']),_0x8e806c(0x6,_0x1664f5[_0x3f2857(0x261)]),_0x8e806c(0x7,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x4a218b))],_0x546bcd);let _0x1ab658={'dataField':()=>(0x0,_0xaf0b54[_0x3f2857(0x3c9)])(0x5),'pivotTable':()=>(0x0,_0xaf0b54[_0x3f2857(0x3c9)])(0x8)},_0x20225a=_0x3f2857(0x4fd);function _0x4a8f6a(_0x1bcb7a,_0x454b2e,_0x20e959,_0x56dc40=_0x1ab658){const _0x839d86=_0x3f2857;if(!_0x1bcb7a)return _0x590b40(_0x454b2e,_0x20e959,_0x56dc40);let _0x597767=_0x1bcb7a[_0x839d86(0x66e)](_0x20225a);if(_0x597767)return _0x597767;let _0xe4b01e=_0x590b40(_0x454b2e,_0x20e959,_0x56dc40);return _0x1bcb7a['set'](_0x20225a,_0xe4b01e),_0xe4b01e;}function _0x42c00b(_0x2378f9,_0xae6e1d,_0x5446c3,_0x3431b2=_0x1ab658){const _0x379667=_0x3f2857;_0x1b5e21(_0x2378f9,_0x5446c3['reservedDataFieldIds']),_0x3edd3c(_0x2378f9,_0xae6e1d,_0x5446c3[_0x379667(0x5b6)],_0x5446c3[_0x379667(0x4da)],_0x3431b2);}function _0x590b40(_0x3bad2c,_0x6776e1,_0x1d82ca){const _0x15c872=_0x3f2857;let _0x11f251={'dataFieldIdMap':new Map(),'reservedDataFieldIds':new Set()};_0x3bad2c['forEach'](({collectionConfig:_0x56c947})=>{const _0x5b621f=_0x5a2c;_0x1b5e21(_0x56c947,_0x11f251[_0x5b621f(0x4da)]);});let _0x4f5f21=new Set(_0x3bad2c[_0x15c872(0x296)](({pivotTableId:_0x39944c})=>_0x39944c)),_0x2ea725=new Map();return{'entries':_0x3bad2c[_0x15c872(0x296)](_0xe985c1=>{const _0x5df652=_0x15c872;let _0x4a9837=_0x1664f5[_0x5df652(0x5b7)]['deepClone'](_0xe985c1[_0x5df652(0x4bc)]),_0x34b4ca=_0x1664f5['Tools'][_0x5df652(0x62b)](_0xe985c1[_0x5df652(0x5d8)]),_0x13f239=_0x4a9837[_0x5df652(0x213)][_0x5df652(0x339)]===_0x6776e1[_0x5df652(0x339)]&&_0x4a9837[_0x5df652(0x213)][_0x5df652(0x555)]===_0x6776e1[_0x5df652(0x227)];_0x4a9837[_0x5df652(0x61d)]={..._0x4a9837[_0x5df652(0x61d)],'unitId':_0x6776e1[_0x5df652(0x339)],'subUnitId':_0x6776e1[_0x5df652(0x1dc)],'sheetName':_0x6776e1[_0x5df652(0x1b3)]},_0x13f239&&(_0x4a9837[_0x5df652(0x213)]={..._0x4a9837[_0x5df652(0x213)],'subUnitId':_0x6776e1['targetSubUnitId'],'sheetName':_0x6776e1[_0x5df652(0x1b3)]},delete _0x4a9837[_0x5df652(0x60a)],_0x42c00b(_0x34b4ca,_0x4a9837['fieldsConfig'],_0x11f251,_0x1d82ca),_0x34b4ca[_0x5df652(0x4cf)]=_0x4a9837['sourceRangeInfo']);let _0x3ff966=_0x47c8bf(_0x4f5f21,_0x1d82ca[_0x5df652(0x28d)]);return _0x2ea725[_0x5df652(0x57d)](_0xe985c1[_0x5df652(0x581)],_0x3ff966),{'pivotTableId':_0x3ff966,'pivotTableConfig':_0x4a9837,'collectionConfig':_0x34b4ca};}),'pivotTableIdMap':_0x2ea725,'dataFieldContext':_0x11f251};}function _0x1b5e21(_0x9631fc,_0x10cc1f){const _0x5c9aac=_0x3f2857;_0x9631fc[_0x5c9aac(0x32d)]['forEach'](_0x3092a4=>_0x10cc1f[_0x5c9aac(0x373)](_0x3092a4)),_0x9631fc['customFields']['forEach'](({id:_0x138ffa})=>_0x10cc1f[_0x5c9aac(0x373)](_0x138ffa)),Object['keys'](_0x9631fc[_0x5c9aac(0x390)])['forEach'](_0x488bc4=>_0x10cc1f[_0x5c9aac(0x373)](_0x488bc4)),Object[_0x5c9aac(0x58e)](_0x9631fc[_0x5c9aac(0x413)])[_0x5c9aac(0x211)](_0x5c906c=>_0x10cc1f[_0x5c9aac(0x373)](_0x5c906c));}function _0x3edd3c(_0x51277e,_0x356a72,_0xc4723c,_0x30d831,_0x2dba32){const _0x3ef81c=_0x3f2857;let _0x5a66e8=_0x1b2c28=>{const _0x54f59e=_0x5a2c;let _0x3297d2=_0xc4723c[_0x54f59e(0x66e)](_0x1b2c28);return _0x3297d2||(_0x3297d2=_0x47c8bf(_0x30d831,_0x2dba32[_0x54f59e(0x4f3)]),_0xc4723c['set'](_0x1b2c28,_0x3297d2)),_0x3297d2;};_0x51277e['fieldIds']=_0x51277e['fieldIds'][_0x3ef81c(0x296)](_0x5a66e8),_0x51277e[_0x3ef81c(0x390)]=_0x10a5a3(_0x51277e[_0x3ef81c(0x390)],_0x5a66e8,_0x1c1385=>_0x21c8c8(_0x1c1385,_0x5a66e8)),_0x51277e['displayNameRecord']=_0x10a5a3(_0x51277e[_0x3ef81c(0x413)],_0x5a66e8,_0x123d71=>_0x123d71),_0x51277e[_0x3ef81c(0x51c)]=_0x51277e['customFields'][_0x3ef81c(0x296)](_0x1d5b98=>_0x21c8c8(_0x1d5b98,_0x5a66e8)),_0x356a72['dimension']=_0x38ec3d(_0x356a72[_0x3ef81c(0x57a)],_0x5a66e8),_0x356a72[_0x3ef81c(0x2d4)]=_0x38ec3d(_0x356a72[_0x3ef81c(0x2d4)],_0x5a66e8);}function _0x21c8c8(_0x4f5e38,_0x17aeaa){const _0x2fee9e=_0x3f2857;let _0x331dd1=_0x17aeaa(_0x4f5e38['id']);return _0x185e51(_0x4f5e38)?{..._0x4f5e38,'id':_0x331dd1,'originalFieldId':_0x17aeaa(_0x4f5e38[_0x2fee9e(0x5ed)])}:{..._0x4f5e38,'id':_0x331dd1};}function _0x38ec3d(_0x282b2c,_0x17643d){return Object['fromEntries'](Object['entries'](_0x282b2c)['map'](([_0x3bf528,_0x22f5cb])=>[_0x3bf528,{..._0x22f5cb,'dataFieldId':_0x17643d(_0x22f5cb['dataFieldId'])}]));}function _0x10a5a3(_0x15f4ba,_0x4f68be,_0x30a2a7){const _0x294780=_0x3f2857;return Object['fromEntries'](Object['entries'](_0x15f4ba)[_0x294780(0x296)](([_0x19fe0a,_0x1d5674])=>{let _0x9f5462=_0x4f68be(_0x19fe0a);return[_0x9f5462,_0x30a2a7(_0x1d5674,_0x9f5462)];}));}function _0x47c8bf(_0x45803f,_0x5717d6){let _0x2aeb9b=_0x5717d6();for(;_0x45803f['has'](_0x2aeb9b);)_0x2aeb9b=_0x5717d6();return _0x45803f['add'](_0x2aeb9b),_0x2aeb9b;}function _0x185e51(_0x221d33){const _0xbea688=_0x3f2857;return _0xbea688(0x5ed)in _0x221d33;}var _0x46ba2d=_0x3f2857(0x498),_0x49ba84='1.4.0';let _0x48a895={'id':_0x3f2857(0x4aa),'type':_0x1664f5[_0x3f2857(0x49f)][_0x3f2857(0x561)],'handler':(_0x49f699,_0x9adc51)=>{const _0x235044=_0x3f2857;if(!_0x9adc51)return!0x1;let _0xd24d67=_0x49f699[_0x235044(0x66e)](_0x1664f5[_0x235044(0x435)]),{unitId:_0x4cea4f,subUnitId:_0x5bcd3c,pivotTableId:_0x31cbec,tableFieldId:_0x1bed16}=_0x9adc51,_0x31f787=[],_0x5c3978=[],_0x3ba757=_0x49f699[_0x235044(0x66e)](_0x12ae9f),_0x3ef5e1=_0x3ba757[_0x235044(0x655)](_0x4cea4f,_0x31cbec),_0xbef3cf=_0x3ba757[_0x235044(0x3f5)](_0x4cea4f,_0x5bcd3c,_0x31cbec);if(!(_0xbef3cf!=null&&_0xbef3cf[_0x235044(0x1fa)]['dimension']))return!0x1;let _0x31d059=Object['values'](_0xbef3cf[_0x235044(0x1fa)][_0x235044(0x57a)])['find'](_0x7855c6=>_0x7855c6['id']===_0x1bed16);if(!_0x31d059)return!0x1;let _0x15e22f=_0x31d059[_0x235044(0x365)];if(!(_0x3ef5e1!=null&&_0x3ef5e1[_0x235044(0x390)]))return!0x1;let _0x5c445e=Object[_0x235044(0x374)](_0x3ef5e1==null?void 0x0:_0x3ef5e1['fields'])[_0x235044(0x209)](_0x100b14=>_0x100b14['id']===_0x15e22f);if(!_0x5c445e)return!0x1;(0x0,_0xaf0b54['isDateGroupFieldJSON'])(_0x5c445e)&&_0x31f787[_0x235044(0x4ef)]({'id':_0x45a3a9['id'],'params':{..._0x9adc51,'dateType':_0x5c445e[_0x235044(0x52f)]}}),_0x5c3978[_0x235044(0x4ef)]({'id':_0x45a3a9['id'],'params':{..._0x9adc51}});let _0x44179c=_0x49f699[_0x235044(0x66e)](_0x1664f5[_0x235044(0x250)]);return(0x0,_0x1664f5[_0x235044(0x368)])(_0x5c3978,_0x44179c)[_0x235044(0x442)]?(_0xd24d67[_0x235044(0x58b)]({'unitID':_0x4cea4f,'undoMutations':_0x31f787,'redoMutations':_0x5c3978}),!0x0):!0x1;}},_0x381031=class{constructor(_0x51e24a){const _0x5a96fa=_0x3f2857;this[_0x5a96fa(0x454)]=_0x51e24a,_0x108027(this,_0x5a96fa(0x607),_0x51868d[_0x5a96fa(0x636)][_0x5a96fa(0x472)]);}[_0x3f2857(0x4f6)](_0x52d50e){const _0x2ed45c=_0x3f2857;let _0x52496f=_0x52d50e;return _0x52d50e[_0x2ed45c(0x607)]===_0x51868d[_0x2ed45c(0x636)][_0x2ed45c(0x472)]&&typeof _0x52496f[_0x2ed45c(0x602)]==_0x2ed45c(0x5cb)&&_0x52496f[_0x2ed45c(0x602)][_0x2ed45c(0x33b)]>0x0&&typeof _0x52496f[_0x2ed45c(0x60a)]==_0x2ed45c(0x5cb)&&_0x52496f['pivotCacheId'][_0x2ed45c(0x33b)]>0x0;}[_0x3f2857(0x2de)](_0x9ad992){const _0x1cf9d6=_0x3f2857;return this[_0x1cf9d6(0x454)][_0x1cf9d6(0x675)](_0x9ad992[_0x1cf9d6(0x602)],_0x9ad992['pivotCacheId']);}};_0x381031=_0x68e210([_0x8e806c(0x0,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x4a218b))],_0x381031);let _0x390f42=class extends _0x1664f5[_0x3f2857(0x660)]{constructor(_0x4baa02,_0x53488b){const _0x560f40=_0x3f2857;super(),this[_0x560f40(0x58f)](_0x4baa02['register'](_0x53488b));}};_0x390f42=_0x68e210([_0x8e806c(0x0,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x51868d[_0x3f2857(0x5df)])),_0x8e806c(0x1,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x381031))],_0x390f42);let _0x15bab9=class extends _0x1664f5[_0x3f2857(0x660)]{constructor(_0x43423d,_0x4b65d7,_0x110b78,_0x52dfdb){const _0x3eab8e=_0x3f2857;super(),this[_0x3eab8e(0x34c)]=_0x43423d,this[_0x3eab8e(0x538)]=_0x4b65d7,this[_0x3eab8e(0x446)]=_0x110b78,this[_0x3eab8e(0x64b)]=_0x52dfdb,_0x108027(this,'disposableCollection',new _0x1664f5['DisposableCollection']()),this['_initClearSelectionCommandInterceptor']();}[_0x3f2857(0x3c0)](){const _0x117dbc=_0x3f2857;this[_0x117dbc(0x58f)](this[_0x117dbc(0x538)][_0x117dbc(0x387)]({'getMutations':_0x3c179d=>{const _0x5c491f=_0x117dbc;if(_0x3c179d['id']===_0x366635[_0x5c491f(0x28c)]['id']||_0x3c179d['id']===_0x366635[_0x5c491f(0x50e)]['id']){let _0x523ff2=[],_0x5e74dc=[],_0x4c361a=_0x3c179d[_0x5c491f(0x623)],_0x521375=(_0x4c361a==null?void 0x0:_0x4c361a[_0x5c491f(0x1b2)])??this['_sheetsSelectionsService'][_0x5c491f(0x5e7)]()[_0x5c491f(0x296)](_0x34655e=>_0x34655e['range']),_0x127eaf=(0x0,_0x366635['getSheetCommandTarget'])(this[_0x5c491f(0x34c)],_0x4c361a);if(!_0x127eaf)return{'redos':[],'undos':[]};let {unitId:_0x2ea261,subUnitId:_0x51a1d9}=_0x127eaf,_0x3d366a={},_0x57290e=this[_0x5c491f(0x64b)][_0x5c491f(0x5ac)](_0x2ea261,_0x51a1d9);if(_0x57290e!=null&&_0x57290e[_0x5c491f(0x293)])for(let [_0x3f6122,_0x1ed151]of _0x57290e){let {unitId:_0x2caacf,subUnitId:_0x5770d3,row:_0x4f745a,col:_0x4f7cbb}=_0x1ed151[_0x5c491f(0x61d)];_0x2caacf===_0x127eaf[_0x5c491f(0x339)]&&_0x5770d3===_0x127eaf[_0x5c491f(0x555)]&&(_0x3d366a[_0x4f745a+'-'+_0x4f7cbb]=_0x3f6122);}return _0x521375&&_0x127eaf&&_0x521375['forEach'](_0x4e20a6=>{_0x1664f5['Range']['foreach'](_0x4e20a6,(_0x168ca4,_0x2b5314)=>{const _0x409e6b=_0x5a2c;let _0x2c8a0d=_0x168ca4+'-'+_0x2b5314;if(_0x3d366a[_0x2c8a0d]){let _0x2ab8c4=_0x3d366a[_0x2c8a0d];delete _0x3d366a[_0x2c8a0d],_0x523ff2[_0x409e6b(0x4ef)]({'id':_0x24f0e5['id'],'params':{'unitId':_0x2ea261,'subUnitId':_0x51a1d9,'pivotTableId':_0x2ab8c4}});let _0x2b1146=this[_0x409e6b(0x64b)][_0x409e6b(0x655)](_0x2ea261,_0x2ab8c4),_0x334b58=this[_0x409e6b(0x64b)][_0x409e6b(0x3f5)](_0x2ea261,_0x51a1d9,_0x2ab8c4);_0x5e74dc['push']({'id':_0x1f28a1['id'],'params':{'unitId':_0x2ea261,'subUnitId':_0x51a1d9,'pivotTableId':_0x2ab8c4,'pivotTableConfig':_0x334b58,'collectionConfig':_0x2b1146}});}});}),{'redos':_0x523ff2,'undos':_0x5e74dc};}return{'redos':[],'undos':[]};}}));}};_0x15bab9=_0x68e210([_0x8e806c(0x0,_0x1664f5['IUniverInstanceService']),_0x8e806c(0x1,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x366635[_0x3f2857(0x2cd)])),_0x8e806c(0x2,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x366635[_0x3f2857(0x2b2)])),_0x8e806c(0x3,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x12ae9f))],_0x15bab9);let _0x3e61a9=class extends _0x1664f5[_0x3f2857(0x660)]{constructor(_0x5d650a,_0xf09e96){const _0x2b7716=_0x3f2857;super(),this['_sheetInterceptorService']=_0x5d650a,this[_0x2b7716(0x64b)]=_0xf09e96,this['_initCopySheetCommandInterceptor']();}[_0x3f2857(0x62f)](){const _0x46da20=_0x3f2857;this[_0x46da20(0x58f)](this[_0x46da20(0x538)][_0x46da20(0x387)]({'getMutations':_0x4dd67d=>{const _0x8d31f9=_0x46da20;if(_0x4dd67d['id']!==_0x366635[_0x8d31f9(0x2c7)]['id'])return{'redos':[],'undos':[]};let {unitId:_0x5f13b3,subUnitId:_0x240bb3,targetSubUnitId:_0x4e5706,targetSubUnitName:_0x394787,copyContext:_0x11940a}=_0x4dd67d['params'];if(!_0x5f13b3||!_0x240bb3||!_0x4e5706||!_0x394787)return{'redos':[],'undos':[]};let _0x57e90b=this[_0x8d31f9(0x64b)]['getSubUnitPivotConfigs'](_0x5f13b3,_0x240bb3);if(!(_0x57e90b!=null&&_0x57e90b[_0x8d31f9(0x293)]))return{'redos':[],'undos':[]};let _0x4ec1ee=[];for(let [_0x5af831,_0x4e9871]of _0x57e90b){let _0x4fb741=this[_0x8d31f9(0x64b)][_0x8d31f9(0x655)](_0x5f13b3,_0x5af831);_0x4fb741&&_0x4ec1ee['push']({'pivotTableId':_0x5af831,'pivotTableConfig':_0x4e9871,'collectionConfig':_0x4fb741});}let _0x4897be=_0x4a8f6a(_0x11940a,_0x4ec1ee,{'unitId':_0x5f13b3,'sourceSubUnitId':_0x240bb3,'targetSubUnitId':_0x4e5706,'targetSubUnitName':_0x394787}),_0x4e3705=[],_0x3e0c3f=[];for(let _0x2cd3bc of _0x4897be['entries'])_0x4e3705[_0x8d31f9(0x4ef)]({'id':_0x1f28a1['id'],'params':{'unitId':_0x5f13b3,'subUnitId':_0x4e5706,'pivotTableId':_0x2cd3bc[_0x8d31f9(0x581)],'pivotTableConfig':_0x2cd3bc['pivotTableConfig'],'collectionConfig':_0x2cd3bc[_0x8d31f9(0x5d8)]}}),_0x3e0c3f[_0x8d31f9(0x4ef)]({'id':_0x24f0e5['id'],'params':{'unitId':_0x5f13b3,'subUnitId':_0x4e5706,'pivotTableId':_0x2cd3bc[_0x8d31f9(0x581)]}});return{'redos':_0x4e3705,'undos':_0x3e0c3f};}}));}};_0x3e61a9=_0x68e210([_0x8e806c(0x0,(0x0,_0x1664f5['Inject'])(_0x366635[_0x3f2857(0x2cd)])),_0x8e806c(0x1,(0x0,_0x1664f5['Inject'])(_0x12ae9f))],_0x3e61a9);let _0x48bddc=class extends _0x1664f5['Disposable']{constructor(_0x4b89ef,_0x61c16a,_0xa6f873,_0x43be32,_0x15d741){const _0x4ce135=_0x3f2857;super(),this[_0x4ce135(0x538)]=_0x4b89ef,this[_0x4ce135(0x32b)]=_0x61c16a,this[_0x4ce135(0x34c)]=_0xa6f873,this[_0x4ce135(0x64b)]=_0x43be32,this[_0x4ce135(0x2bf)]=_0x15d741,this['_initCommandInterceptListener']();}['_getPivotAppliedRanges'](_0x40ac1d,_0x39c398,_0xcd6e24){const _0x195d7a=_0x3f2857;return _0x25dca1(_0x40ac1d,_0x39c398,_0xcd6e24,this['_injector']['get'](_0x1664f5[_0x195d7a(0x4d7)])[_0x195d7a(0x2af)]());}[_0x3f2857(0x340)](){const _0x59b219=_0x3f2857;this[_0x59b219(0x58f)](this[_0x59b219(0x2bf)]['interceptor']['intercept'](this[_0x59b219(0x2bf)]['interceptor'][_0x59b219(0x378)]()['PIVOT_MUTATION_GENERATE'],{'handler':(_0x38c64a,_0x5a5683)=>{const _0x29e5e5=_0x59b219;let {cellInfo:_0x1b0878,view:_0x46e293,isEmpty:_0x3879f5}=_0x5a5683,{unitId:_0x3fb7ce,subUnitId:_0x58bff4}=_0x1b0878,_0x2bc471=this[_0x29e5e5(0x235)](_0x1b0878,_0x46e293,_0x3879f5),_0x47050a=this[_0x29e5e5(0x538)]['generateMutationsByRanges']({'unitId':_0x3fb7ce,'subUnitId':_0x58bff4,'ranges':_0x2bc471}),_0x14dea1=_0x4f8f6c(this[_0x29e5e5(0x32b)],_0x3fb7ce,_0x58bff4,_0x2bc471);if(_0x14dea1['shouldClear']&&(_0x47050a[_0x29e5e5(0x53d)][_0x29e5e5(0x4ef)](_0x14dea1[_0x29e5e5(0x654)]),_0x47050a['undos'][_0x29e5e5(0x4ef)](_0x14dea1['setRangeValueUndoMutation'])),!_0x3879f5){let _0x21ce19=this[_0x29e5e5(0x2ec)](_0x46e293,_0x1b0878);_0x47050a['redos'][_0x29e5e5(0x4ef)](..._0x21ce19[_0x29e5e5(0x53d)]),_0x47050a[_0x29e5e5(0x22e)][_0x29e5e5(0x4ef)](..._0x21ce19[_0x29e5e5(0x22e)]);}return{'redos':[..._0x47050a['preRedos']??[],..._0x47050a['redos']],'undos':[..._0x47050a[_0x29e5e5(0x40c)]??[],..._0x47050a['undos']]};}}));}[_0x3f2857(0x2ec)](_0x1bd0e8,_0x188029){const _0xf7c0d1=_0x3f2857;var _0x4f0d95;let {col:_0x4bb5c5,unitId:_0x5d7d2f,subUnitId:_0x29d637}=_0x188029,_0x33faac=[],_0x529837=[],_0xcb6f2=(0x0,_0x366635[_0xf7c0d1(0x4cb)])(this[_0xf7c0d1(0x34c)],{'unitId':_0x5d7d2f,'subUnitId':_0x29d637});if(!_0x188029||!_0x1bd0e8||!_0xcb6f2)return{'undos':_0x529837,'redos':_0x33faac};let _0x2302c7=this[_0xf7c0d1(0x64b)][_0xf7c0d1(0x3d9)](),_0x2eca9f=Array[_0xf7c0d1(0x4de)](((_0x4f0d95=this[_0xf7c0d1(0x64b)]['getSubUnitPivotConfigs'](_0x5d7d2f,_0x29d637))==null?void 0x0:_0x4f0d95['values']())??[])['find'](_0xa6cade=>_0xa6cade['targetCellInfo'][_0xf7c0d1(0x4a2)]===_0x188029[_0xf7c0d1(0x4a2)]&&_0xa6cade[_0xf7c0d1(0x61d)]['col']===_0x188029['col']),{worksheet:_0x15a304}=_0xcb6f2;if(typeof window<'u'&&window[_0xf7c0d1(0x2d8)]){var _0x4da45a;let _0x24e059=(0x0,_0x59f32b[_0xf7c0d1(0x478)])({..._0x3cdbee[_0xf7c0d1(0x33f)]}),_0x4b8106=_0x1f675e(_0x1bd0e8,_0x4bb5c5,this[_0xf7c0d1(0x32b)][_0xf7c0d1(0x66e)](_0x1664f5[_0xf7c0d1(0x4d7)])['getDirection']()),_0x349ecf=_0x4b8106[_0xf7c0d1(0x61a)]-_0x4b8106['startColumn']+0x1,_0x173bf3={},_0xd72638=_0x496433(_0x1bd0e8,_0x4bb5c5,_0x4b8106['direction'],_0x2302c7,_0x213cf2=>_0x59f32b[_0xf7c0d1(0x301)][_0xf7c0d1(0x4a4)](_0x213cf2,_0x24e059)[_0xf7c0d1(0x443)],_0x2eca9f==null?void 0x0:_0x2eca9f[_0xf7c0d1(0x1fa)][_0xf7c0d1(0x485)],(_0x4da45a=this[_0xf7c0d1(0x34c)][_0xf7c0d1(0x300)](_0x5d7d2f))==null?void 0x0:_0x4da45a[_0xf7c0d1(0x48d)]());Object[_0xf7c0d1(0x58e)](_0xd72638)[_0xf7c0d1(0x211)](_0x52968c=>{let _0x2357cc=Number(_0x52968c),_0x28c1a5=_0x15a304['getColumnWidth'](_0x2357cc);_0x173bf3[_0x2357cc]=_0x28c1a5;}),_0x33faac[_0xf7c0d1(0x4ef)]({'id':_0x366635[_0xf7c0d1(0x342)]['id'],'params':{'subUnitId':_0x29d637,'unitId':_0x5d7d2f,'ranges':[{'startColumn':_0x4bb5c5,'endColumn':_0x4bb5c5+_0x349ecf-0x1,'startRow':0x0,'endRow':_0x15a304[_0xf7c0d1(0x66b)]()-0x1}],'colWidth':_0xd72638}}),_0x529837[_0xf7c0d1(0x4ef)]({'id':_0x366635['SetWorksheetColWidthMutation']['id'],'params':{'subUnitId':_0x29d637,'unitId':_0x5d7d2f,'ranges':[{'startColumn':_0x4bb5c5,'endColumn':_0x4bb5c5+_0x349ecf-0x1,'startRow':0x0,'endRow':_0x15a304[_0xf7c0d1(0x66b)]()-0x1}],'colWidth':_0x173bf3}});}return{'undos':_0x529837,'redos':_0x33faac};}};_0x48bddc=_0x68e210([_0x8e806c(0x0,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x366635[_0x3f2857(0x2cd)])),_0x8e806c(0x1,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x1664f5[_0x3f2857(0x2b4)])),_0x8e806c(0x2,(0x0,_0x1664f5['Inject'])(_0x1664f5[_0x3f2857(0x35a)])),_0x8e806c(0x3,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x12ae9f)),_0x8e806c(0x4,(0x0,_0x1664f5['Inject'])(_0x4bbba8))],_0x48bddc);let _0x334ca6=class extends _0x1664f5['Disposable']{constructor(_0x58b217,_0x33ce6d,_0x4641a4,_0x3f17ab,_0x5495f3,_0x3c373c,_0x50aa24){const _0x17c3cd=_0x3f2857;super(),this['_injector']=_0x58b217,this[_0x17c3cd(0x34e)]=_0x33ce6d,this[_0x17c3cd(0x37c)]=_0x4641a4,this[_0x17c3cd(0x34c)]=_0x3f17ab,this[_0x17c3cd(0x64b)]=_0x5495f3,this[_0x17c3cd(0x57e)]=_0x3c373c,this['_sheetInterceptorService']=_0x50aa24,_0x108027(this,_0x17c3cd(0x38a),new _0x1664f5[(_0x17c3cd(0x50f))]()),this[_0x17c3cd(0x58f)](this[_0x17c3cd(0x38a)]),this[_0x17c3cd(0x445)](),this['disposeWithMe'](this[_0x17c3cd(0x538)][_0x17c3cd(0x387)]({'getMutations':_0x5d575f=>[_0x366635['InsertColCommand']['id'],_0x366635[_0x17c3cd(0x537)]['id'],_0x366635[_0x17c3cd(0x2cf)]['id'],_0x366635[_0x17c3cd(0x47b)]['id']][_0x17c3cd(0x3cd)](_0x5d575f['id'])?this['_getStructureMutations'](_0x5d575f[_0x17c3cd(0x623)],_0x5d575f['id']===_0x366635[_0x17c3cd(0x3d8)]['id']||_0x5d575f['id']===_0x366635[_0x17c3cd(0x2cf)]['id'],_0x5d575f['id']===_0x366635[_0x17c3cd(0x2cf)]['id']||_0x5d575f['id']===_0x366635[_0x17c3cd(0x47b)]['id']):{'redos':[],'undos':[]}}));}['_getStructureMutations'](_0x394a52,_0x9a9c73,_0x57d4c7){const _0x2c58fb=_0x3f2857;let _0x4a9139=(0x0,_0x366635[_0x2c58fb(0x4cb)])(this[_0x2c58fb(0x34c)],_0x394a52),_0x58ca51=[],_0x211960=[];if(!_0x4a9139)return{'redos':_0x58ca51,'undos':_0x211960};let _0x23b944=_0x57d4c7?'startRow':_0x2c58fb(0x5ea),_0xc1f901=_0x57d4c7?_0x2c58fb(0x1ac):'endColumn',_0x234740=_0x394a52[_0x2c58fb(0x4cf)][_0x23b944],_0x4de8e8=_0x394a52[_0x2c58fb(0x4cf)][_0xc1f901],_0x1940a5=_0x4de8e8-_0x234740+0x1,_0x3b0052=_0xa3324e=>_0xa3324e<_0x234740?_0xa3324e:_0x9a9c73?_0xa3324e+_0x1940a5:Math['max'](_0x234740,_0xa3324e-_0x1940a5),_0x3d6043=new Map(),_0x58091e=this[_0x2c58fb(0x32b)][_0x2c58fb(0x66e)](_0x1664f5[_0x2c58fb(0x261)])['getConfig'](_0x2c58fb(0x36b))?void 0x0:this[_0x2c58fb(0x32b)][_0x2c58fb(0x66e)](_0x360e3c);for(let _0x4434d3 of _0x4a9139[_0x2c58fb(0x2ba)][_0x2c58fb(0x437)]()){let _0x2d2b75=(_0x58091e??this[_0x2c58fb(0x64b)])[_0x2c58fb(0x5ac)](_0x4a9139[_0x2c58fb(0x339)],_0x4434d3[_0x2c58fb(0x597)]());for(let [_0x198ba6,_0x192f21]of _0x2d2b75??[]){let _0x1650fc={'unitId':_0x4a9139[_0x2c58fb(0x339)],'subUnitId':_0x4434d3[_0x2c58fb(0x597)](),'pivotTableId':_0x198ba6},_0x4dea0b=_0x192f21[_0x2c58fb(0x213)],_0x491799=_0x4dea0b[_0x2c58fb(0x4cf)];if(_0x4dea0b['unitId']===_0x4a9139[_0x2c58fb(0x339)]&&_0x4dea0b['subUnitId']===_0x4a9139[_0x2c58fb(0x555)]&&_0x234740<=_0x491799[_0xc1f901]){var _0x33cf6f;let _0x37fc72=_0x58091e?(_0x33cf6f=_0x58091e[_0x2c58fb(0x655)](_0x4dea0b['unitId'],_0x198ba6))==null?void 0x0:_0x33cf6f[_0x2c58fb(0x2f9)]():this[_0x2c58fb(0x64b)][_0x2c58fb(0x655)](_0x4dea0b[_0x2c58fb(0x339)],_0x198ba6);if(!_0x37fc72)continue;let _0x13f1c9=_0x1664f5['Tools'][_0x2c58fb(0x62b)](_0x37fc72),_0x836003=[],_0x2e0fb0={..._0x491799};if(_0x2e0fb0[_0x23b944]=_0x3b0052(_0x491799[_0x23b944]),_0x2e0fb0[_0xc1f901]=_0x9a9c73?_0x3b0052(_0x491799[_0xc1f901]):_0x491799[_0xc1f901]-Math['max'](0x0,Math[_0x2c58fb(0x259)](_0x4de8e8,_0x491799[_0xc1f901])-_0x234740+0x1),_0x2e0fb0[_0xc1f901]<_0x2e0fb0[_0x23b944])continue;if(!_0x57d4c7&&_0x9a9c73&&_0x234740>_0x491799[_0x2c58fb(0x5ea)]){let _0x31abc8=_0x192f21[_0x2c58fb(0x60a)]??_0x198ba6,_0x5b25c3=_0x3d6043[_0x2c58fb(0x66e)](_0x31abc8);_0x5b25c3||(_0x5b25c3=Array['from']({'length':_0x1940a5},(_0x53be88,_0x2fef33)=>new _0xaf0b54[(_0x2c58fb(0x5aa))]((0x0,_0x1664f5[_0x2c58fb(0x2a8)])(),(0x0,_0x1664f5[_0x2c58fb(0x1d9)])(_0x234740+_0x2fef33),(0x0,_0xaf0b54['generateHexNumber'])(0x3))[_0x2c58fb(0x2f9)]()),_0x3d6043['set'](_0x31abc8,_0x5b25c3)),_0x13f1c9['fieldIds'][_0x2c58fb(0x593)](_0x234740-_0x491799[_0x2c58fb(0x5ea)],0x0,..._0x5b25c3['map'](_0x43c017=>_0x43c017['id']));for(let _0x4ee9ad of _0x5b25c3)_0x13f1c9[_0x2c58fb(0x390)][_0x4ee9ad['id']]=_0x4ee9ad,_0x13f1c9['displayNameRecord'][_0x4ee9ad['id']]=_0x4ee9ad[_0x2c58fb(0x1d6)];}else{if(!_0x57d4c7&&!_0x9a9c73){let _0xe3caa6=Math[_0x2c58fb(0x27f)](_0x234740,_0x491799[_0x2c58fb(0x5ea)])-_0x491799[_0x2c58fb(0x5ea)],_0x4e9fbc=_0x13f1c9[_0x2c58fb(0x32d)][_0x2c58fb(0x593)](_0xe3caa6,Math['max'](0x0,Math[_0x2c58fb(0x259)](_0x4de8e8,_0x491799['endColumn'])-Math[_0x2c58fb(0x27f)](_0x234740,_0x491799[_0x2c58fb(0x5ea)])+0x1)),_0x37f1f5=this[_0x2c58fb(0x270)](_0x1650fc,_0x192f21,new Set(_0x4e9fbc));_0x58ca51[_0x2c58fb(0x4ef)](..._0x37f1f5[_0x2c58fb(0x53d)]),_0x836003[_0x2c58fb(0x4ef)](..._0x37f1f5[_0x2c58fb(0x22e)]);for(let _0x5e8ed6 of _0x4e9fbc)delete _0x13f1c9[_0x2c58fb(0x390)][_0x5e8ed6],delete _0x13f1c9[_0x2c58fb(0x413)][_0x5e8ed6];}}let _0x5f0736={..._0x4dea0b,'range':_0x2e0fb0};_0x13f1c9[_0x2c58fb(0x4cf)]=_0x5f0736;let _0x5bddd1={..._0x1650fc,'pivotCacheId':_0x192f21['pivotCacheId'],'preserveCacheId':!0x0,'deleteIds':[]};_0x58ca51['push']({'id':_0x40ce9d['id'],'params':{..._0x5bddd1,'collectionJSON':_0x13f1c9,'dataRangeInfo':_0x5f0736}}),_0x211960['push']({'id':_0x40ce9d['id'],'params':{..._0x5bddd1,'collectionJSON':_0x1664f5[_0x2c58fb(0x5b7)]['deepClone'](_0x37fc72),'dataRangeInfo':_0x1664f5[_0x2c58fb(0x5b7)][_0x2c58fb(0x62b)](_0x4dea0b)}}),_0x211960[_0x2c58fb(0x4ef)](..._0x836003);}if(_0x192f21[_0x2c58fb(0x61d)][_0x2c58fb(0x555)]===_0x4a9139['subUnitId']){let {row:_0x487bab,col:_0x56df8e}=_0x192f21['targetCellInfo'],_0x44baac=_0x57d4c7?{'row':_0x3b0052(_0x487bab),'col':_0x56df8e}:{'row':_0x487bab,'col':_0x3b0052(_0x56df8e)};(_0x44baac[_0x2c58fb(0x4a2)]!==_0x487bab||_0x44baac['col']!==_0x56df8e)&&(_0x58ca51[_0x2c58fb(0x4ef)]({'id':_0x2a8fe8['id'],'params':{..._0x1650fc,'targetCellPosition':_0x44baac}}),_0x211960[_0x2c58fb(0x4ef)]({'id':_0x2a8fe8['id'],'params':{..._0x1650fc,'targetCellPosition':{'row':_0x487bab,'col':_0x56df8e}}}));}}}return{'redos':_0x58ca51,'undos':_0x211960};}['_getRemovedFieldMutations'](_0x21364b,_0x25a195,_0x4761ec){const _0x4d365e=_0x3f2857;let _0x420486=[],_0x1f1b70=[];for(let _0x2bb6ff of[_0xaf0b54[_0x4d365e(0x59c)][_0x4d365e(0x3a3)],_0xaf0b54[_0x4d365e(0x59c)][_0x4d365e(0x32c)],_0xaf0b54[_0x4d365e(0x59c)][_0x4d365e(0x349)],_0xaf0b54[_0x4d365e(0x59c)]['Filter'],_0xaf0b54[_0x4d365e(0x59c)][_0x4d365e(0x346)]])_0x37b449(_0x25a195[_0x4d365e(0x1fa)],_0x2bb6ff)[_0x4d365e(0x211)]((_0xff8061,_0x26d397)=>{const _0x4f64e2=_0x4d365e;let _0x4697f9=_0x25a195[_0x4f64e2(0x1fa)][_0x4f64e2(0x2d4)][_0xff8061]??_0x25a195[_0x4f64e2(0x1fa)]['dimension'][_0xff8061];_0x4697f9&&_0x4761ec[_0x4f64e2(0x3b2)](_0x4697f9[_0x4f64e2(0x365)])&&(_0x420486[_0x4f64e2(0x4ef)]({'id':_0x2d09c2['id'],'params':{..._0x21364b,'fieldId':_0xff8061,'area':_0x2bb6ff,'index':_0x26d397}}),_0x1f1b70[_0x4f64e2(0x4ef)]({'id':_0x119e28['id'],'params':{..._0x21364b,'fieldJson':_0x1664f5[_0x4f64e2(0x5b7)][_0x4f64e2(0x62b)](_0x4697f9),'area':_0x2bb6ff,'index':_0x26d397}}));});return{'redos':_0x420486,'undos':_0x1f1b70};}[_0x3f2857(0x445)](){const _0x2668ee=_0x3f2857;let _0x2fbf80=(_0xc92fd8,_0x4d212f)=>{const _0x1e980e=_0x5a2c;let _0x190939=this[_0x1e980e(0x34c)]['getCurrentUnitOfType'](_0x1664f5[_0x1e980e(0x3b3)][_0x1e980e(0x418)]);if(!_0x190939||!(_0x190939!=null&&_0x190939[_0x1e980e(0x2e4)](_0x4d212f)))return;this[_0x1e980e(0x38a)][_0x1e980e(0x345)]();let _0xef54a7=_0x216e4c=>this[_0x1e980e(0x1c7)](_0x216e4c,_0xc92fd8,_0x4d212f),_0x2ea2be=this[_0x1e980e(0x64b)][_0x1e980e(0x5ac)](_0xc92fd8,_0x4d212f);_0x2ea2be!=null&&_0x2ea2be['size']&&Array[_0x1e980e(0x4de)](_0x2ea2be[_0x1e980e(0x374)]())[_0x1e980e(0x296)](_0x59d6e4=>{const _0x25e1e5=_0x1e980e;let {row:_0x5e5e56,col:_0x1ba471}=_0x59d6e4[_0x25e1e5(0x61d)];return(0x0,_0x1664f5[_0x25e1e5(0x515)])(_0x5e5e56,_0x1ba471);})[_0x1e980e(0x211)](_0x29d9ef=>{const _0xa30ae8=_0x1e980e;this['disposableCollection'][_0xa30ae8(0x373)](this[_0xa30ae8(0x34e)]['registerRefRange'](_0x29d9ef,_0xef54a7,_0xc92fd8,_0x4d212f));});},_0x1171e2=()=>{const _0x50854d=_0x5a2c;let _0x2c750f=this['_univerInstanceService'][_0x50854d(0x258)](_0x1664f5['UniverInstanceType'][_0x50854d(0x418)]);if(_0x2c750f){let _0x5021fa=_0x2c750f['getActiveSheet']();if(!_0x5021fa)return;_0x2fbf80(_0x2c750f['getUnitId'](),_0x5021fa[_0x50854d(0x597)]());}};this[_0x2668ee(0x58f)](this[_0x2668ee(0x37c)]['onCommandExecuted'](_0x4b8963=>{const _0x3e0164=_0x2668ee;if(_0x4b8963['id']===_0x366635[_0x3e0164(0x2a4)]['id']){let _0x5bb3d4=_0x4b8963[_0x3e0164(0x623)],_0x5d0a5e=_0x5bb3d4['subUnitId'],_0x3ca896=_0x5bb3d4['unitId'];if(!_0x5d0a5e||!_0x3ca896)return;_0x2fbf80(_0x3ca896,_0x5d0a5e);}})),this[_0x2668ee(0x58f)](this[_0x2668ee(0x64b)][_0x2668ee(0x674)][_0x2668ee(0x362)](_0x42b320=>{_0x42b320&&_0x1171e2();})),this['disposeWithMe'](this[_0x2668ee(0x64b)]['pivotConfigChange$'][_0x2668ee(0x362)](_0x3e06b2=>{const _0x1a6d39=_0x2668ee;let _0x304349=(0x0,_0x366635[_0x1a6d39(0x4cb)])(this['_univerInstanceService'],{'unitId':_0x3e06b2[_0x1a6d39(0x339)],'subUnitId':_0x3e06b2[_0x1a6d39(0x555)]});if(!_0x304349)return;let {unitId:_0x3e7a5b,subUnitId:_0x16bc1b}=_0x304349,{unitId:_0x23272c,subUnitId:_0x375447}=_0x3e06b2;_0x3e7a5b===_0x23272c&&_0x16bc1b===_0x375447&&_0x2fbf80(_0x3e7a5b,_0x16bc1b);})),_0x1171e2();}['_refRangeHandle'](_0x1d45e0,_0x10327c,_0x3b68ba){const _0x55b2d1=_0x3f2857;switch(_0x1d45e0['id']){case _0x366635['MoveRangeCommand']['id']:return this[_0x55b2d1(0x527)](_0x1d45e0['params'],_0x10327c,_0x3b68ba);}return{'redos':[],'undos':[]};}[_0x3f2857(0x527)](_0x44d529,_0x381103,_0x3ffbe6){const _0x272401=_0x3f2857;let {fromRange:_0xd5fc1,toRange:_0x14a7b1}=_0x44d529,_0x5725eb=[],_0x2490a4=[],_0x330fd8=(0x0,_0x366635[_0x272401(0x4cb)])(this[_0x272401(0x34c)]);if(!_0x330fd8||_0x381103!==_0x330fd8[_0x272401(0x339)]||_0x3ffbe6!==_0x330fd8[_0x272401(0x555)])return{'undos':_0x2490a4,'redos':_0x5725eb};let _0x37e155=this[_0x272401(0x64b)][_0x272401(0x5ac)](_0x381103,_0x3ffbe6);if(_0x37e155!=null&&_0x37e155[_0x272401(0x293)])for(let [_0x53f706,_0x3fcc54]of _0x37e155){let {unitId:_0x388474,subUnitId:_0x591920,row:_0x38de55,col:_0x21dd3c}=_0x3fcc54[_0x272401(0x61d)];if(_0x388474===_0x330fd8[_0x272401(0x339)]&&_0x591920===_0x330fd8['subUnitId']){let _0x2840ac=(0x0,_0x1664f5[_0x272401(0x515)])(_0x38de55,_0x21dd3c);if(_0x1664f5[_0x272401(0x465)][_0x272401(0x281)](_0x2840ac,_0xd5fc1)){let _0x5a408d=_0x38de55-_0xd5fc1['startRow'],_0x431c95=_0x21dd3c-_0xd5fc1['startColumn'],_0x178412={'row':_0x14a7b1[_0x272401(0x5bb)]+_0x5a408d,'col':_0x14a7b1[_0x272401(0x5ea)]+_0x431c95};_0x5725eb[_0x272401(0x4ef)]({'id':_0x2a8fe8['id'],'params':{'unitId':_0x388474,'subUnitId':_0x591920,'pivotTableId':_0x53f706,'targetCellPosition':_0x178412}}),_0x2490a4[_0x272401(0x4ef)]({'id':_0x2a8fe8['id'],'params':{'unitId':_0x388474,'subUnitId':_0x591920,'pivotTableId':_0x53f706,'targetCellPosition':{'row':_0x38de55,'col':_0x21dd3c}}});let _0x21cb1d=_0x178412[_0x272401(0x4a2)]-_0x38de55,_0x1fa176=_0x178412['col']-_0x21dd3c,_0x1f3e1e=[],_0x4ddaef=this['_sheetsPivotTableAdaptorModel']['getPivotItemRenderInfoCache'](_0x388474,_0x591920,_0x53f706),_0x159503=_0x4ddaef==null?void 0x0:_0x4ddaef[_0x272401(0x29c)];if(_0x159503){Object[_0x272401(0x58e)](_0x159503)[_0x272401(0x211)](_0x4f759f=>{const _0x156709=_0x272401;_0x159503[_0x4f759f][_0x156709(0x211)](_0x43cce7=>{const _0x43338b=_0x156709;let _0x1b5dc9={..._0x43cce7};_0x1b5dc9['startRow']=_0x43cce7[_0x43338b(0x5bb)]+_0x21cb1d,_0x1b5dc9['endRow']=_0x43cce7[_0x43338b(0x1ac)]+_0x21cb1d,_0x1b5dc9[_0x43338b(0x5ea)]=_0x43cce7[_0x43338b(0x5ea)]+_0x1fa176,_0x1b5dc9[_0x43338b(0x61a)]=_0x43cce7[_0x43338b(0x61a)]+_0x1fa176,_0x1f3e1e['push'](_0x1b5dc9);});});let _0x4b005b=this[_0x272401(0x538)][_0x272401(0x30d)]({'unitId':_0x388474,'subUnitId':_0x591920,'ranges':_0x1f3e1e});_0x5725eb[_0x272401(0x4ef)](..._0x4b005b[_0x272401(0x53d)]),_0x2490a4[_0x272401(0x4ef)](..._0x4b005b[_0x272401(0x22e)]);let _0x6e9ca4=_0x4f8f6c(this['_injector'],_0x388474,_0x591920,_0x1f3e1e);_0x6e9ca4[_0x272401(0x416)]&&(_0x5725eb['push'](_0x6e9ca4[_0x272401(0x654)]),_0x2490a4[_0x272401(0x4ef)](_0x6e9ca4[_0x272401(0x1df)]));}}}}return{'redos':_0x5725eb,'undos':_0x2490a4};}};_0x334ca6=_0x68e210([_0x8e806c(0x0,(0x0,_0x1664f5['Inject'])(_0x1664f5[_0x3f2857(0x2b4)])),_0x8e806c(0x1,(0x0,_0x1664f5['Inject'])(_0x366635[_0x3f2857(0x3f4)])),_0x8e806c(0x2,_0x1664f5[_0x3f2857(0x250)]),_0x8e806c(0x3,_0x1664f5['IUniverInstanceService']),_0x8e806c(0x4,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x12ae9f)),_0x8e806c(0x5,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0xee2d82)),_0x8e806c(0x6,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x366635[_0x3f2857(0x2cd)]))],_0x334ca6);let _0x4f340c=class extends _0x1664f5[_0x3f2857(0x660)]{constructor(_0x4bbead,_0x4ea63e){const _0x18508f=_0x3f2857;super(),this[_0x18508f(0x538)]=_0x4bbead,this[_0x18508f(0x64b)]=_0x4ea63e,this[_0x18508f(0x1f6)]();}['_initRemoveSheetCommandInterceptor'](){const _0x3a9e7f=_0x3f2857;this[_0x3a9e7f(0x58f)](this['_sheetInterceptorService'][_0x3a9e7f(0x387)]({'getMutations':_0x168c3f=>{const _0xd619ef=_0x3a9e7f;if(_0x168c3f['id']===_0x366635[_0xd619ef(0x639)]['id']){let _0xf87aab=[],_0x4677e7=[],{unitId:_0x2b3d03,subUnitId:_0x45b63c}=_0x168c3f[_0xd619ef(0x623)];if(!_0x2b3d03||!_0x45b63c)return{'undos':_0x4677e7,'redos':_0xf87aab};let _0x592bf8=this[_0xd619ef(0x64b)][_0xd619ef(0x5ac)](_0x2b3d03,_0x45b63c);if(_0x592bf8!=null&&_0x592bf8[_0xd619ef(0x293)])for(let [_0x5e23b1,_0x3d196c]of _0x592bf8){_0xf87aab['push']({'id':_0x24f0e5['id'],'params':{'unitId':_0x2b3d03,'subUnitId':_0x45b63c,'pivotTableId':_0x5e23b1}});let _0x147d12={...this[_0xd619ef(0x64b)]['getCollection'](_0x2b3d03,_0x5e23b1)};_0x4677e7[_0xd619ef(0x4ef)]({'id':_0x1f28a1['id'],'params':{'unitId':_0x2b3d03,'subUnitId':_0x45b63c,'pivotTableId':_0x5e23b1,'pivotTableConfig':_0x3d196c,'collectionConfig':_0x147d12}});}return{'redos':_0xf87aab,'undos':_0x4677e7};}return{'redos':[],'undos':[]};}}));}};_0x4f340c=_0x68e210([_0x8e806c(0x0,(0x0,_0x1664f5['Inject'])(_0x366635[_0x3f2857(0x2cd)])),_0x8e806c(0x1,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x12ae9f))],_0x4f340c);let _0x2fc90a=class extends _0x1664f5[_0x3f2857(0x660)]{constructor(_0x53f6e5,_0x39bbe5,_0x22390c,_0x22bbcc,_0x4b9344,_0x258d06,_0x1d0b68){const _0x5a3a76=_0x3f2857;var _0x438274;super(),this[_0x5a3a76(0x37c)]=_0x53f6e5,this[_0x5a3a76(0x4e7)]=_0x39bbe5,this[_0x5a3a76(0x57e)]=_0x22390c,this['_sheetsPivotTableConfigModel']=_0x22bbcc,this[_0x5a3a76(0x645)]=_0x4b9344,this[_0x5a3a76(0x2ac)]=_0x258d06,this[_0x5a3a76(0x34c)]=_0x1d0b68,_0x108027(this,_0x5a3a76(0x51a),new Map()),_0x108027(this,_0x5a3a76(0x65d),0x0),this['_initDataSendListener'](),this[_0x5a3a76(0x644)](),((_0x438274=this['_configService'][_0x5a3a76(0x277)](_0x5a3a76(0x234)))==null?void 0x0:_0x438274[_0x5a3a76(0x310)])===!0x0&&this[_0x5a3a76(0x4e6)]();}[_0x3f2857(0x4e6)](){const _0x3476b4=_0x3f2857;this[_0x3476b4(0x58f)](this[_0x3476b4(0x34c)][_0x3476b4(0x4e8)](_0x1664f5[_0x3476b4(0x3b3)][_0x3476b4(0x418)])[_0x3476b4(0x362)](({unit:_0xdaf01c})=>this['_initializeRuntime'](_0xdaf01c[_0x3476b4(0x4bd)]()))),this[_0x3476b4(0x58f)](this[_0x3476b4(0x34c)][_0x3476b4(0x514)](_0x1664f5['UniverInstanceType']['UNIVER_SHEET'])['subscribe'](_0x1f45d0=>{const _0x5464e6=_0x3476b4;var _0x5da099;clearTimeout((_0x5da099=this['_initializations'][_0x5464e6(0x66e)](_0x1f45d0[_0x5464e6(0x4bd)]()))==null?void 0x0:_0x5da099[_0x5464e6(0x533)]),this[_0x5464e6(0x51a)][_0x5464e6(0x4a7)](_0x1f45d0['getUnitId']());})),this[_0x3476b4(0x58f)](this[_0x3476b4(0x37c)][_0x3476b4(0x323)](_0x27f3ce=>{const _0x3ac0f0=_0x3476b4;if(_0x27f3ce['id']!==_0x459f9c['id'])return;let _0x540870=_0x27f3ce[_0x3ac0f0(0x623)],_0x55236a=this[_0x3ac0f0(0x51a)]['get'](_0x540870[_0x3ac0f0(0x339)]);_0x55236a&&_0x55236a['params'][_0x3ac0f0(0x630)]===_0x540870[_0x3ac0f0(0x630)]&&_0x55236a[_0x3ac0f0(0x623)][_0x3ac0f0(0x665)]===_0x540870[_0x3ac0f0(0x665)]&&(clearTimeout(_0x55236a['timer']),this[_0x3ac0f0(0x51a)]['delete'](_0x540870['unitId']),this['_sheetsPivotTableConfigModel'][_0x3ac0f0(0x22a)](_0x540870[_0x3ac0f0(0x339)],_0x540870[_0x3ac0f0(0x5ef)]?_0x3ac0f0(0x5ef):'ready'));}));for(let _0x3dc923 of this[_0x3476b4(0x34c)][_0x3476b4(0x441)](_0x1664f5[_0x3476b4(0x3b3)]['UNIVER_SHEET']))this[_0x3476b4(0x1f2)](_0x3dc923['getUnitId']());}[_0x3f2857(0x1f2)](_0xdee832){const _0xd5f87=_0x3f2857;var _0x5951e7;clearTimeout((_0x5951e7=this[_0xd5f87(0x51a)][_0xd5f87(0x66e)](_0xdee832))==null?void 0x0:_0x5951e7[_0xd5f87(0x533)]);let _0x1e0b3d={'unitId':_0xdee832,'runtimeId':(0x0,_0x1664f5[_0xd5f87(0x2a8)])(),'sequence':++this[_0xd5f87(0x65d)]},_0x1059a9={'params':_0x1e0b3d,'attempts':0x0,'timer':void 0x0};this[_0xd5f87(0x51a)][_0xd5f87(0x57d)](_0xdee832,_0x1059a9),this['_sheetsPivotTableConfigModel'][_0xd5f87(0x3a6)](_0xdee832,_0x1e0b3d[_0xd5f87(0x630)]);let _0x2d7201=()=>{const _0x4fb3ab=_0xd5f87;this['_initializations'][_0x4fb3ab(0x66e)](_0xdee832)===_0x1059a9&&(_0x1059a9[_0x4fb3ab(0x3ea)]===0x3?(this[_0x4fb3ab(0x51a)]['delete'](_0xdee832),this['_sheetsPivotTableConfigModel'][_0x4fb3ab(0x22a)](_0xdee832,_0x4fb3ab(0x5ef))):(_0x1059a9['attempts']++,_0x1059a9[_0x4fb3ab(0x533)]=setTimeout(_0x2d7201,0x2710),this['_commandService'][_0x4fb3ab(0x4f1)](_0x338883['id'],_0x1e0b3d,{'onlyLocal':!0x0})['catch'](()=>{})));};_0x1059a9[_0xd5f87(0x533)]=setTimeout(_0x2d7201,0x0);}[_0x3f2857(0x345)](){const _0x177cea=_0x3f2857;for(let _0x23ffbc of this[_0x177cea(0x51a)][_0x177cea(0x374)]())clearTimeout(_0x23ffbc[_0x177cea(0x533)]);this['_initializations'][_0x177cea(0x318)](),super['dispose']();}['_initDataSendListener'](){const _0x2b0cef=_0x3f2857;this[_0x2b0cef(0x58f)](this[_0x2b0cef(0x37c)]['onCommandExecuted'](_0x3ecec7=>{const _0xb826b3=_0x2b0cef;if(_0x3ecec7['id']!==_0x426223['id'])return;let _0x2ce14c=_0x3ecec7['params'];this[_0xb826b3(0x4e7)][_0xb826b3(0x57f)](_0x2ce14c);})),this[_0x2b0cef(0x58f)](this[_0x2b0cef(0x37c)][_0x2b0cef(0x323)](_0x480a31=>{const _0x50d29d=_0x2b0cef;if(_0x480a31['id']===_0xf43dae['id']){let _0x835ccf=_0x480a31['params'];if(_0x835ccf){let {unitId:_0xa801ca,subUnitId:_0x33303b,pivotTableId:_0x324621,pivotTableConfig:_0x2a2e54,collectionConfig:_0x5dd35d}=_0x835ccf;if(!this[_0x50d29d(0x64b)]['acceptsRuntime'](_0xa801ca,_0x835ccf[_0x50d29d(0x630)]))return;this[_0x50d29d(0x64b)]['batchUpdate'](()=>{const _0x3a9c6d=_0x50d29d;var _0x26a614;this[_0x3a9c6d(0x64b)][_0x3a9c6d(0x577)](_0xa801ca,_0x33303b,_0x324621,_0x2a2e54,_0x5dd35d['collections'][_0x324621]),this[_0x3a9c6d(0x64b)]['acceptsRuntime'](_0xa801ca,(_0x26a614=_0x835ccf[_0x3a9c6d(0x267)])==null?void 0x0:_0x26a614[_0xa801ca])&&this[_0x3a9c6d(0x64b)][_0x3a9c6d(0x58a)](_0xa801ca,_0x5dd35d);for(let [_0x419774,_0x5dfcfa]of Object[_0x3a9c6d(0x4e3)](_0x835ccf[_0x3a9c6d(0x601)]??{})){var _0x272d6f;this['_sheetsPivotTableConfigModel'][_0x3a9c6d(0x249)](_0x419774,(_0x272d6f=_0x835ccf[_0x3a9c6d(0x267)])==null?void 0x0:_0x272d6f[_0x419774])&&this[_0x3a9c6d(0x64b)][_0x3a9c6d(0x58a)](_0x419774,void 0x0,_0x5dfcfa);}});}}})),this[_0x2b0cef(0x58f)](this[_0x2b0cef(0x37c)][_0x2b0cef(0x323)](_0x4ad77a=>{const _0x469494=_0x2b0cef;if(_0x4ad77a['id']!==_0x46a5d5['id'])return;let _0x3abdf3=_0x4ad77a[_0x469494(0x623)];this['_sheetsPivotTableConfigModel']['batchUpdate'](()=>{const _0x4185a4=_0x469494;for(let [_0x5ddc4a,_0x577c47]of Object['entries'](_0x3abdf3[_0x4185a4(0x601)]??{})){var _0x20ec11;this['_sheetsPivotTableConfigModel']['acceptsRuntime'](_0x5ddc4a,(_0x20ec11=_0x3abdf3[_0x4185a4(0x267)])==null?void 0x0:_0x20ec11[_0x5ddc4a])&&this[_0x4185a4(0x64b)]['updateDerivedMetadata'](_0x5ddc4a,void 0x0,_0x577c47);}if(_0x3abdf3['collectionConfig']&&Object['keys'](_0x3abdf3['collectionConfig'])[_0x4185a4(0x211)](_0x28eb54=>{const _0x3b37d5=_0x4185a4;var _0x4a1606,_0x50acf8;(_0x4a1606=_0x3abdf3[_0x3b37d5(0x5d8)])!=null&&_0x4a1606[_0x28eb54]&&this[_0x3b37d5(0x64b)][_0x3b37d5(0x249)](_0x28eb54,(_0x50acf8=_0x3abdf3[_0x3b37d5(0x267)])==null?void 0x0:_0x50acf8[_0x28eb54])&&this[_0x3b37d5(0x64b)][_0x3b37d5(0x58a)](_0x28eb54,_0x3abdf3[_0x3b37d5(0x5d8)][_0x28eb54]);}),_0x3abdf3['single']){var _0x44cc7a;let _0x5a78f9=_0x3abdf3[_0x4185a4(0x1d3)],{unitId:_0x33a999,subUnitId:_0x2e33fc,view:_0x3f85cb,pivotTableId:_0xcf1bce,type:_0x25bc98,pivotConfig:_0x4975a1}=_0x5a78f9;if(!this['_sheetsPivotTableConfigModel'][_0x4185a4(0x249)](_0x33a999,_0x5a78f9[_0x4185a4(0x630)])||!this[_0x4185a4(0x64b)][_0x4185a4(0x577)](_0x33a999,_0x2e33fc,_0xcf1bce,_0x4975a1,(_0x44cc7a=_0x3abdf3['collectionConfig'])==null||(_0x44cc7a=_0x44cc7a[(_0x4975a1==null?void 0x0:_0x4975a1[_0x4185a4(0x213)]['unitId'])??_0x33a999])==null?void 0x0:_0x44cc7a[_0x4185a4(0x4e4)][_0xcf1bce]))return;if(_0x25bc98===_0x4185a4(0x4a7))this[_0x4185a4(0x57e)][_0x4185a4(0x50b)]({'unitId':_0x33a999,'subUnitId':_0x2e33fc,'pivotTableId':_0xcf1bce,'type':_0x25bc98});else{let _0x426ddb=new _0xaf0b54[(_0x4185a4(0x233))]();_0x426ddb[_0x4185a4(0x45e)](_0x3f85cb),this[_0x4185a4(0x57e)][_0x4185a4(0x50b)]({'unitId':_0x33a999,'subUnitId':_0x2e33fc,'pivotTableId':_0xcf1bce,'type':_0x25bc98,'view':_0x426ddb}),this[_0x4185a4(0x57e)][_0x4185a4(0x422)]({'unitId':_0x33a999,'subUnitId':_0x2e33fc,'view':_0x426ddb,'pivotTableId':_0xcf1bce,'type':_0x25bc98});}this[_0x4185a4(0x57e)][_0x4185a4(0x4c8)](_0x33a999,_0x2e33fc);}else{if(_0x3abdf3[_0x4185a4(0x4b5)]){let _0x3665af=_0x3abdf3[_0x4185a4(0x4b5)],_0x5cbb3c=new Map();_0x3665af[_0x4185a4(0x211)](_0x5ca979=>{const _0x1ec1de=_0x4185a4;var _0x4631b5;let {unitId:_0x5c80f4,subUnitId:_0x5cde76,view:_0x304032,pivotTableId:_0x24f0fb,type:_0x546324,pivotConfig:_0x45984b}=_0x5ca979;if(!this['_sheetsPivotTableConfigModel'][_0x1ec1de(0x249)](_0x5c80f4,_0x5ca979[_0x1ec1de(0x630)])||!this['_sheetsPivotTableConfigModel'][_0x1ec1de(0x577)](_0x5c80f4,_0x5cde76,_0x24f0fb,_0x45984b,(_0x4631b5=_0x3abdf3[_0x1ec1de(0x5d8)])==null||(_0x4631b5=_0x4631b5[(_0x45984b==null?void 0x0:_0x45984b[_0x1ec1de(0x213)]['unitId'])??_0x5c80f4])==null?void 0x0:_0x4631b5[_0x1ec1de(0x4e4)][_0x24f0fb]))return;let _0x38d3ca=new _0xaf0b54[(_0x1ec1de(0x233))]();_0x38d3ca['formJSON'](_0x304032),this[_0x1ec1de(0x57e)][_0x1ec1de(0x50b)]({'unitId':_0x5c80f4,'subUnitId':_0x5cde76,'pivotTableId':_0x24f0fb,'type':_0x546324,'view':_0x38d3ca}),this[_0x1ec1de(0x57e)]['updateRenderCache']({'unitId':_0x5c80f4,'subUnitId':_0x5cde76,'view':_0x38d3ca,'pivotTableId':_0x24f0fb,'type':_0x546324});let _0x1e93ae=_0x5cbb3c[_0x1ec1de(0x66e)](_0x5c80f4)??new Set();_0x1e93ae['add'](_0x5cde76),_0x5cbb3c['set'](_0x5c80f4,_0x1e93ae);}),_0x5cbb3c[_0x4185a4(0x211)]((_0x219c53,_0x716860)=>_0x219c53[_0x4185a4(0x211)](_0x2b4d25=>{const _0x5f164c=_0x4185a4;this[_0x5f164c(0x57e)][_0x5f164c(0x4c8)](_0x716860,_0x2b4d25);})),this['_sheetsPivotTableConfigModel'][_0x4185a4(0x2da)]();}}});}));}[_0x3f2857(0x644)](){const _0x470285=_0x3f2857;this['_activeDirtyManagerService'][_0x470285(0x350)](_0x3d0278['id'],{'commandId':_0x3d0278['id'],'getDirtyData'(_0x267c0f){const _0xe4b432=_0x470285;return{'dirtyUnitFeatureMap':_0x267c0f[_0xe4b432(0x623)]};}});}};_0x2fc90a=_0x68e210([_0x8e806c(0x0,(0x0,_0x1664f5['Inject'])(_0x1664f5[_0x3f2857(0x250)])),_0x8e806c(0x1,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x1b5924)),_0x8e806c(0x2,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0xee2d82)),_0x8e806c(0x3,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x12ae9f)),_0x8e806c(0x4,_0x2aea65[_0x3f2857(0x44e)]),_0x8e806c(0x5,_0x1664f5['IConfigService']),_0x8e806c(0x6,_0x1664f5[_0x3f2857(0x35a)])],_0x2fc90a);let _0x50042c=class extends _0x1664f5[_0x3f2857(0x56a)]{constructor(_0x46e2de=_0x1c354e,_0x2f4891,_0x2ce28d,_0x3a9058,_0x5e808a){const _0x107ab9=_0x3f2857;super(),this[_0x107ab9(0x1f7)]=_0x46e2de,this['_injector']=_0x2f4891,this[_0x107ab9(0x37c)]=_0x2ce28d,this[_0x107ab9(0x2ac)]=_0x3a9058,this[_0x107ab9(0x41f)]=_0x5e808a;let {..._0x1f14ed}=(0x0,_0x1664f5[_0x107ab9(0x546)])({},_0x1c354e,this[_0x107ab9(0x1f7)]);this[_0x107ab9(0x2ac)][_0x107ab9(0x512)](_0x3d9e90,_0x1f14ed),this['_initRegisterCommand'](),this[_0x107ab9(0x28a)](_0x1f14ed);}[_0x3f2857(0x28a)](_0x53a87b){const _0x155d2f=_0x3f2857;var _0x17e02d;let _0x2591a0=(_0x17e02d=this['_config'])==null?void 0x0:_0x17e02d['notExecuteFormula'];this[_0x155d2f(0x2ac)][_0x155d2f(0x512)](_0xfbc374,_0x2591a0===!0x0),_0x53a87b['maxLimitItemCount']!==void 0x0&&(0x0,_0xaf0b54[_0x155d2f(0x64a)])(_0x53a87b['maxLimitItemCount']),_0x53a87b[_0x155d2f(0x594)]!==void 0x0&&(0x0,_0xaf0b54['setDateSystem'])(_0x53a87b[_0x155d2f(0x594)]);}[_0x3f2857(0x562)](){const _0x110164=_0x3f2857;var _0x1b61f8;let _0x2be975=[],_0x27d421=(_0x1b61f8=this[_0x110164(0x1f7)])==null?void 0x0:_0x1b61f8[_0x110164(0x310)];_0x27d421===!0x0?_0x2be975=[[_0x4bbba8],[_0x1b5924],[_0x2fc90a],[_0xee2d82],[_0x12ae9f],[_0x3e61a9],[_0x4f340c],[_0x15bab9],[_0x334ca6],[_0x48bddc]]:_0x27d421===!0x1?_0x2be975=[[_0x360e3c],[_0x546bcd]]:_0x27d421===void 0x0&&(_0x2be975=[[_0x360e3c],[_0x546bcd],[_0x4bbba8],[_0x1b5924],[_0x2fc90a],[_0xee2d82],[_0x12ae9f],[_0x3e61a9],[_0x4f340c],[_0x15bab9],[_0x334ca6],[_0x48bddc]]),_0x27d421!==!0x0&&(this['_injector']['has'](_0x51868d[_0x110164(0x5df)])||_0x2be975['push']([_0x51868d[_0x110164(0x5df)],{'useClass':_0x51868d[_0x110164(0x664)]}]),_0x2be975['push']([_0x4a218b],[_0x381031],[_0x390f42])),_0x2be975['forEach'](_0x18433d=>this[_0x110164(0x32b)][_0x110164(0x373)](_0x18433d)),[_0x546bcd,_0x390f42,_0x2fc90a,_0x4bbba8,_0x15bab9,_0x3e61a9,_0x4f340c,_0x334ca6,_0x48bddc][_0x110164(0x211)](_0x21f0b3=>{const _0x908339=_0x110164;this[_0x908339(0x32b)]['has'](_0x21f0b3)&&this[_0x908339(0x32b)][_0x908339(0x66e)](_0x21f0b3);});}[_0x3f2857(0x62c)](){[_0x16d18d,_0x4bd419,_0x36ebd4,_0x37d22c,_0x3ecda7,_0x341ade,_0x52ac57,_0x785ab8,_0x1f65f7,_0x4522a8,_0x22cb07,_0x48a895,_0x45c5ff,_0x5c06eb,_0x585095,_0x164b17,_0x5cb5d9,_0x1e858c,_0x554c90,_0x55c09a,_0x1f28a1,_0x45a3a9,_0x24f0e5,_0x119e28,_0x427b54,_0x3b9dcc,_0x18d103,_0x2d09c2,_0x9f1580,_0x450113,_0x491df6,_0x1292b4,_0x3bc386,_0xb703e,_0x2a8fe8,_0x43fade,_0x338883,_0x459f9c,_0x426223,_0x46a5d5,_0x2bec20,_0xb24c97,_0x53421b,_0xa68ae,_0x39064,_0x40ce9d,_0x411a6a,_0x3d0278,_0xf43dae,_0x384e36,_0x31a123,_0x44d55a,_0x2f9891,_0x20cb22,_0xfb377f,_0xb5ad18]['forEach'](_0x18c90e=>{const _0x4c2427=_0x5a2c;var _0x26fd1a;(_0x26fd1a=this[_0x4c2427(0x41f)])==null||_0x26fd1a[_0x4c2427(0x4dd)](_0x18c90e),this[_0x4c2427(0x37c)][_0x4c2427(0x314)](_0x18c90e);});}};_0x108027(_0x50042c,_0x3f2857(0x4f0),_0x783d27),_0x108027(_0x50042c,'packageName',_0x46ba2d),_0x108027(_0x50042c,_0x3f2857(0x2c6),_0x49ba84),_0x108027(_0x50042c,'type',_0x1664f5[_0x3f2857(0x3b3)][_0x3f2857(0x418)]),_0x50042c=_0x68e210([(0x0,_0x1664f5[_0x3f2857(0x35f)])(_0xa6ca7c[_0x3f2857(0x5c7)],_0x2aea65['UniverFormulaEnginePlugin'],_0x366635['UniverSheetsPlugin']),_0x8e806c(0x1,(0x0,_0x1664f5['Inject'])(_0x1664f5[_0x3f2857(0x2b4)])),_0x8e806c(0x2,(0x0,_0x1664f5[_0x3f2857(0x256)])(_0x1664f5[_0x3f2857(0x250)])),_0x8e806c(0x3,_0x1664f5[_0x3f2857(0x261)]),_0x8e806c(0x4,(0x0,_0x1664f5[_0x3f2857(0x3f9)])(_0x28c62c[_0x3f2857(0x471)]))],_0x50042c),_0x435a8f[_0x3f2857(0x241)]=_0x36ebd4,_0x435a8f[_0x3f2857(0x523)]=_0x119e28,_0x435a8f[_0x3f2857(0x5d7)]=_0x4bd419,_0x435a8f[_0x3f2857(0x2fb)]=_0x1f28a1,_0x435a8f[_0x3f2857(0x1e2)]=_0x16d18d,_0x435a8f[_0x3f2857(0x219)]=0x1,_0x435a8f['MovePivotFieldCommand']=_0x37d22c,_0x435a8f[_0x3f2857(0x604)]=_0x554c90,_0x435a8f[_0x3f2857(0x240)]=_0xddee90,_0x435a8f[_0x3f2857(0x29f)]=_0x5511ba,_0x435a8f['PIVOT_FIELD_REMOVE_COORDINATION']=_0x35fe67,_0x435a8f[_0x3f2857(0x26f)]=_0x5365cc,_0x435a8f['PIVOT_OPTION_FILTER_COORDINATION']=_0x5c757c,_0x435a8f[_0x3f2857(0x648)]=_0x20225a,Object[_0x3f2857(0x5fc)](_0x435a8f,'PivotCalculatorController',{'enumerable':!0x0,'get':function(){return _0x546bcd;}}),_0x435a8f[_0x3f2857(0x407)]=_0x1ceec1,_0x435a8f[_0x3f2857(0x38b)]=_0x55c09a,_0x435a8f[_0x3f2857(0x585)]=_0x46c411,_0x435a8f[_0x3f2857(0x2ae)]=_0x168ad5,_0x435a8f['RemovePivotFieldCommand']=_0x3ecda7,_0x435a8f[_0x3f2857(0x4c5)]=_0x2d09c2,_0x435a8f[_0x3f2857(0x5da)]=_0x341ade,_0x435a8f[_0x3f2857(0x35c)]=_0x24f0e5,_0x435a8f['RenamePivotFieldMutation']=_0x9f1580,_0x435a8f[_0x3f2857(0x225)]=_0x20cb22,_0x435a8f[_0x3f2857(0x2ed)]=_0x3d9e90,_0x435a8f[_0x3f2857(0x381)]=_0x783d27,_0x435a8f[_0x3f2857(0x3a4)]=_0x46a5d5,_0x435a8f['SetPivotCollapseByFieldCommand']=_0x5c06eb,_0x435a8f['SetPivotCollapseCommand']=_0x45c5ff,_0x435a8f[_0x3f2857(0x36e)]=_0x450113,_0x435a8f['SetPivotDateFilterCommand']=_0x31a123,_0x435a8f[_0x3f2857(0x1c0)]=_0x785ab8,_0x435a8f[_0x3f2857(0x576)]=_0x1f65f7,_0x435a8f[_0x3f2857(0x40d)]=_0xa68ae,_0x435a8f['SetPivotFieldsConfigCommand']=_0x2f9891,_0x435a8f[_0x3f2857(0x279)]=_0x164b17,_0x435a8f['SetPivotFilterMutation']=_0x18d103,_0x435a8f[_0x3f2857(0x61f)]=_0xfb377f,_0x435a8f['SetPivotManualGroupsCommand']=_0x4522a8,_0x435a8f['SetPivotNumberGroupCommand']=_0x22cb07,_0x435a8f[_0x3f2857(0x63a)]=_0xb5ad18,_0x435a8f[_0x3f2857(0x4b1)]=_0xb703e,_0x435a8f[_0x3f2857(0x5ae)]=_0x2a8fe8,_0x435a8f[_0x3f2857(0x31e)]=_0x585095,_0x435a8f['SetPivotSortMutation']=_0x491df6,_0x435a8f[_0x3f2857(0x5a5)]=_0x53421b,_0x435a8f['SetPivotValueFilterCommand']=_0x384e36,_0x435a8f[_0x3f2857(0x32a)]=_0x44d55a,Object[_0x3f2857(0x5fc)](_0x435a8f,_0x3f2857(0x2c0),{'enumerable':!0x0,'get':function(){return _0x4a218b;}}),Object[_0x3f2857(0x5fc)](_0x435a8f,_0x3f2857(0x3c2),{'enumerable':!0x0,'get':function(){return _0x360e3c;}}),Object[_0x3f2857(0x5fc)](_0x435a8f,_0x3f2857(0x44d),{'enumerable':!0x0,'get':function(){return _0x1b5924;}}),Object[_0x3f2857(0x5fc)](_0x435a8f,'SheetsPivotTableAdaptorModel',{'enumerable':!0x0,'get':function(){return _0xee2d82;}}),Object[_0x3f2857(0x5fc)](_0x435a8f,'SheetsPivotTableConfigModel',{'enumerable':!0x0,'get':function(){return _0x12ae9f;}}),Object[_0x3f2857(0x5fc)](_0x435a8f,_0x3f2857(0x3e5),{'enumerable':!0x0,'get':function(){return _0x4bbba8;}}),Object['defineProperty'](_0x435a8f,'UniverSheetsPivotTablePlugin',{'enumerable':!0x0,'get':function(){return _0x50042c;}}),_0x435a8f[_0x3f2857(0x2b5)]=_0x2bec20,_0x435a8f[_0x3f2857(0x36f)]=_0x5cb5d9,_0x435a8f[_0x3f2857(0x4b6)]=_0x411a6a,_0x435a8f['UpdatePivotTableSourceRangeCommand']=_0x1e858c,_0x435a8f[_0x3f2857(0x26d)]=_0x40ce9d,_0x435a8f[_0x3f2857(0x285)]=_0x52ac57,_0x435a8f[_0x3f2857(0x4a0)]=_0xb24c97,_0x435a8f[_0x3f2857(0x337)]=_0x22545e,_0x435a8f['compilePivotRecordFilter']=_0x2d1e4f,_0x435a8f['executeWithRollback']=_0xcb2ef3,_0x435a8f['generateSetRangeValueMutations']=_0x4f8f6c,_0x435a8f['getAdjustRangesPosition']=_0x4213e6,_0x435a8f[_0x3f2857(0x61b)]=_0x2afa6e,_0x435a8f[_0x3f2857(0x528)]=_0x3ed4f7,_0x435a8f[_0x3f2857(0x603)]=_0x1f0339,_0x435a8f[_0x3f2857(0x243)]=_0x426b89,_0x435a8f[_0x3f2857(0x4df)]=_0x4a8f6a,_0x435a8f['getPivotAppliedRanges']=_0x25dca1,_0x435a8f[_0x3f2857(0x3dd)]=_0x24d7ae,_0x435a8f[_0x3f2857(0x412)]=_0x3a3060,_0x435a8f['getSlicerSelectionFromPivotManualFilter']=_0x10dff2,_0x435a8f['isPivotDateGroupTypeDisabled']=_0x3c551e,_0x435a8f[_0x3f2857(0x254)]=_0x3c7b63,_0x435a8f[_0x3f2857(0x3e9)]=_0x17dc77,_0x435a8f[_0x3f2857(0x3a9)]=_0x18d82d,_0x435a8f[_0x3f2857(0x364)]=_0x42c00b,_0x435a8f[_0x3f2857(0x5b3)]=_0x1e3c04,_0x435a8f[_0x3f2857(0x586)]=_0x3c9bed,_0x435a8f[_0x3f2857(0x3c6)]=_0x1d0da9,_0x435a8f[_0x3f2857(0x565)]=_0x52731e,_0x435a8f[_0x3f2857(0x1e0)]=_0x201d1a,_0x435a8f[_0x3f2857(0x273)]=_0x3907d4;}));function _0x1d3b(){const _0x40fb8c=['getLastCol','range','_cacheBySourceKey','91120vvsHvL','grouping','applyConfigChange','fieldId','syncExecuteCommand','FilteredSortDesc','LocaleService','retainFilterFieldIds','getFieldPositionInfoById','reservedDataFieldIds','SetOptions','sheets-pivot.cellDateGroupDisplay.monthDate','registerSyncingMutations','from','getOrCreatePivotSheetCopyPlan','records','sheet.command.remove-pivot-table','updateAllDisplayName','entries','collections','sheet.mutation.send-pivot-config-local','_initRuntimeLifecycle','_sheetsPivotRpcService','getTypeOfUnitAdded$','_getDefaultFieldName','sheets-pivot.dateGroup.hour','sheet.interceptor.range-theme-id','LifecycleService','setLayout','type','push','pluginName','executeCommand','_localeService','dataField','resetArea','colInfo','isReference','columnFields','body','_sourceLeases','view','updatePivotSource','ValueFilter','univer.sheets-pivot.copy-plan','sheet.mutation.set-pivot-position','sheet.command.remove-pivot-field','A\x20Pivot\x20item\x20cannot\x20be\x20both\x20checked\x20and\x20partial.','filter','getUniqueDataFieldName','rxjs','existing','RemoveField','needSameDeleteModel','fieldDataType','registerCallbackWithEvent','toRange','getCellMatrix','clearRenderCache','getAutoDisplayName','ensureNotDisposed','ClearSelectionAllCommand','DisposableCollection','createAsyncInterceptorKey','getMonth','setConfig','remove','getTypeOfUnitDisposed$','cellToRange','filterId','slice','mergeWorksheetSnapshotWithDefault','SetPivotManualGroups','_initializations','collectionChange$','customFields','onQueryStart','numfmt','sheet.command.add-pivot-field','addExclusiveRange','showDataAs','SetPivotExcelDateGroup','AddPivotFieldMutation','runtimeState$','@univerjs-pro/engine-pivot','getCurrentLocale','getRefRangeMutationsByMoveRange','getEmptyPivotRanges','NUM','indexOf','_setDateSystem','context','AddPivotTable','_initPivotTextInfo','dateType','isColumnLabel','567264kZhGPw','OPTIONAL','timer','updateCacheConfig','_viewTranslateContextCache','getPivotTableIdByCell','RemoveColCommand','_sheetInterceptorService','setOption','cornerInfo','sheet.command.set-pivot-date-group','setPivotCollapse','redos','_cacheConfigModel','arrayFormulaCellData','{0}{1}','year','InterceptorManager','PivotDateGroupingMode','updateDataFieldsCollection','sheet.mutation.send-init-pivot-text-local','merge','sheets-pivot.cellDateGroupDisplay.month','getUpdateRangeDeleteIds','RemoveSheetMutation','_disposed','getSheetBySheetName','preserveCacheId','_emitConfigChange','createDataFieldFromJSON','sheets-pivot.numberGroupAfter','RemoveSheetsFilterMutation','deleteField','sheets-pivot.stdDevName','isDateValue','sort','subUnitId','FilterPartial','removedGroupJSON','score','getCellValueType','dataFieldsCollection','otherDataKey','currentLocale$','conditionFilter','refreshSource','next','sourceName','COMMAND','onStarting','setPivotDateGroup','getValueFilterInfos','resolvePivotValueFilterTarget','Div0','getSnapshot','#e6ebfa','NUMBER_GROUP_AFTER_KEY','Plugin','updateFieldPosition','validate','getId','textInfo','CELL_CONTENT','setShowDataAs','@univerjs/engine-render','SetPivotTableConfig','record','other','addedGroupJSON','SetPivotExcelDateGroupCommand','updateDerivedConfig','NotNumber','getConditionFilterInfo','dimension','areaInfo','getValue','set','_sheetsPivotTableAdaptorModel','handleAsyncResponse','hasCJK','pivotTableId','FilterNoneSortDesc','setDefaultSortLocale','hiddenFields','PivotTableOperationEnum','resolvePivotSheetCell','addPivotTableWithConfig','sheets-pivot.cellDateGroupDisplay.yearQuarter','sheet.command.set-pivot-table-options','updateDerivedMetadata','pushUndoRedo','sheets-pivot.renderText.grandTotal','SetCollapse','keys','disposeWithMe','area','#e6ebfb','addField','splice','dateSystem','after','getFullYear','getSheetId','setValueFilterState','sheets-pivot.cellDateGroupDisplay.hourMinute','_dataFieldManagerCollection','getSortInfo','PivotTableFiledAreaEnum','NotFunction','SetValueFilter','getOriginFieldId','sheet.command.set-pivot-manual-groups','Minute','sheet.mutation.remove-pivot-field','isDateGroupField','sheet.mutation.set-pivot-sort-info','SetPivotSubtotalTypeMutation','SHEET_PIVOT_EXCLUSIVE_ID','pivotManualFilterCoordination','Blank','getPivotDirtyViewInfo','DataField','getDataFieldByDataFieldId','getSubUnitPivotConfigs','isNaN','SetPivotPositionMutation','sheets-pivot.dateGroup.day','addCollectionByJSON','collapse','moveSources','removePivotDateGroups','Product\x20of\x20','cellValue','dataFieldIdMap','Tools','removeField','handleMoveRange','projection','startRow','_initDirectionChange','UniverRpc','random','Year-Month-Day','clearFieldFilters','sheets-pivot.dateGroup.second','originTargetInfo','bind','updateDirtyPivotTable','colRanges','day','UniverLicensePlugin','InsertSheetUndoMutationFactory','Date','addPivotTable','string','Module','dataFieldType','source-date','Varp\x20of\x20','fromRange','trim','PivotDateGroupFieldDateTypeEnum','lastCol','FilteredSortNone','maxDate','_generateUniqueVersion','AddPivotTableCommand','collectionConfig','dataRanges','RemovePivotTableCommand','create','setLabelFilterInfo','locale','getRangeKey','IPivotCacheProviderRegistry','getFieldFormat','hasCommand','limit\x20pivot','setPivotNumberGroup','releaseReport','ErrorType','updateConfigCache','getCurrentSelections','300vvHmRn','All','startColumn','_sheetsPivotDataSourceModel','Hour-Minute','originalFieldId','getLastRow','error','DIV_BY_ZERO','sheet.command.set-pivot-layout','createValueField','getDataFieldManager','setFieldFormat','Max\x20of\x20','handles','setSortInfo','_getAutoName','BadReference','_globalSubject','YearQuarter','defineProperty','SetPivotDateGroup','every','tag','_updateModelCache','pivotCacheConfigs','ownerUnitId','getExcelDateGroupStr','MovePivotTableCommand','distinctUntilChanged','Values','kind','setRange','sheets-pivot.cellDateGroupDisplay.after','pivotCacheId','uniqueDataFieldName','createCollectionWithDataRange','new','YearMonth','MoveRangeMutation','getPivotTableModelConfig','sheets-pivot.blank','freeze','Subject','getGroupFieldsInfoByIds','members','pivot-source-','reportUnitId','compileSlicerSelection','@univerjs/engine-formula','endColumn','getDateGroupName','setValuePivotFilter','targetCellInfo','getPivotPerformCheck','SetPivotLayoutCommand','@univerjs/sheets','setPivotExcelDateGroup','getDefaultNumberGrouping','params','publish','getOptions','_deletePivotTableInstanceCache','_fieldsCollectionChange$','createDataFieldId','skip','rangeType','deepClone','_initRegisterCommand','_pivotTableInstanceCache','triggerDirtyFeature','_initCopySheetCommandInterceptor','runtimeId','BOOLEAN','GlobalConfig','sheets-pivot.sumName','token','isFinite','PivotCacheReferenceKindEnum','occupiedColumns','ExcelLike','RemoveSheetCommand','SetPivotOptionCommand','Day','DateSystem','UniverCore','node','_pivotViewCache','rightOffset','sheets-pivot.cellDateGroupDisplay.date','PivotTable','LOCALE_META','registerDirtyService','_activeDirtyManagerService','sheet.mutation.remove-pivot-table','_initPivotDataGetListener','PIVOT_SHEET_COPY_CONTEXT_KEY','sheet.command.update-pivot-table-source-range','setMaxLimitItemCount','_sheetsPivotTableConfigModel','getDataFieldItemInfo','sheets-pivot.cellDateGroupDisplay.minute','SetShowDataAs','lastRow','_initViewModelBySheetInterceptor','_textInfo','setPivotSetting','getFieldCountByArea','setRangeValueRedoMutation','getCollection','_runtimeStates','isInteger','20YZCCGq','sheets-pivot.varName','getShowDataAs','complete','startCollectChangeset','_runtimeSequence','sheet.mutation.pivot-update-field-position','findIndex','Disposable','sheets-pivot.cellDateGroupDisplay.dayRange','SetRangeValuesMutation','pivotDateFilterCoordination','PivotCacheProviderRegistry','sequence','[\x22blank\x22]','sheet.mutation.add-pivot-table','workbook\x20is\x20not\x20found','updateViewData','getDataFieldBySourceName','getRowCount','addRecord','dataRangeInfo','get','oldMatrix','isLeaf','rgb(240,241,243)','getDataFieldByTableId','getNoUsedDataFieldIds','pivotInitCompleted$','acquireById','isRowLabel','Add','getPivotDisplayConfig','asyncInterceptor','_initLocale','sheets-pivot.cellDateGroupDisplay.quarter','AddPivotTableWithConfig','dataFieldManagerConfig','call','normalizeNumberGrouping','endRow','col','sheets-pivot.dateGroup.hourMinute','getColumnCount','broadcastCollectionChange','_getCalculationConfig','ranges','targetSubUnitName','MultipleGrandTotal','sheet.command.move-pivot-table','getStyles','sheet.mutation.set-pivot-layout','iterateField','1366995LifDwG','updatePivotTableMatrixInfo','PivotMultipleValueId','valueFilter','pivotTableIndexConfig','#eceeff','_globalComputedStartHelpFunc','SetPivotDateGroupCommand','sheet.mutation.pivot-update-field-source-info','PivotFilterTypeEnum','updateSource','getIndexesByKey','_initSnapshot','None','_refRangeHandle','LS_CONFIG_KEY','INTERCEPTOR_POINT','message','isColMultiMeasure','removeDataField','date-group','var','getDirtyInfo','_createHandle','initializeRuntime','PivotFilterCategory','single','IResourceManagerService','NO_COMMERCIAL','name','getformat','constructor','numberToABC','getDisplayNameByKey','getColCount','targetSubUnitId','_init','RecordValueType','setRangeValueUndoMutation','setPivotDateSystem','movePivotField','AddPivotTableWithConfigCommand','isFeatureAuthorizedWithinTime','sheets-pivot.numberGroupBefore','getRuntimeId','_moveSources','PivotCallbackEnum','sheet.command.set-pivot-collapse','rowFields','pageRanges','sheet.mutation.pivot-runtime-initialized-local','_refreshCycleCache','getCellRaw','UniverEngineFormula','text','average','_isAutoDateGroupEnabled','_initializeRuntime','contains','getFieldInfo','_ensurePivotItemRenderInfoCache','_initRemoveSheetCommandInterceptor','_config','ManualFilter','addPivotField','fieldsConfig','sheets-pivot.averageName','round','_runtimeUnits','buttonOffset','serializeRangeWithSpreadsheet','SetSheetsFilterRangeMutation','sheets-pivot.dateGroup.minute','getDateType','removeCollections','PivotExcelDateGroupUnit','addDirtyPivotTable','initializing','_findCache','setSubtotalType','find','getRuntimeState','setCollapse','isValue','_exclusiveRangeService','DEFAULT_WORKSHEET_COLUMN_COUNT','ManualGroupMembers','MUTATION','forEach','prototype','sourceRangeInfo','_viewData','Var\x20of\x20','PivotCacheProviderError','Date1900','InsertSheetCommand','BLANK_ROW_COUNT','acquireSource','removeSourceRangeChange','setDirty','_getResolvedMatrixValue','reject','stringify','getTableFieldById','number','setOptions','sheets-pivot.numberGroupRange','getValuePosition','ResetPivotFieldsConfigCommand','sheets-pivot.value','sourceSubUnitId','getExistingCacheId','equals','setRuntimeState','sheets-pivot.sheet','_pivotConfigChange$','blank','undos','Expand','format','viewUpdate$','sheet.mutation.rename-pivot-field','PivotView','sheets-pivot.config','_getPivotAppliedRanges','sheet.mutation.send-pivot-view-local','rangeKey','updateCollectionConfig','acquireForReport','collection','getSourceName','initDataRanges','unit','Quarter','ManualGroupField','PIVOT_DATE_FILTER_COORDINATION','AddPivotFieldCommand','stdDevp','getInsertRowColMutations','ltr','removeCollectionImp','sheet.mutation.set-pivot-format','rowRanges','handleReportSourceRangeChange','acceptsRuntime','setDataRecordCount','sheets-pivot.dateGroup.yearMonthDate','Month','setName','sourceKey','currentDateType','ICommandService','rowCount','getFormat','_queryingMap','isolateTextForBidiContext','getPivotItemRenderInfoCache','Inject','sheet.mutation.set-pivot-field-subtotal-type','getCurrentUnitOfType','min','CellValueType','valid','column','colCount','sheet.mutation.send-pivot-data-local','preparePivotBatch','valueFieldId','IConfigService','SetPivotCollapse','_createRecord','concat','Collapse','143925iywfwL','runtimeIds','Delete','filterInfo','addFieldWithSourceId','STRING','isErrorValue','UpdatePivotTableSourceRangeMutation','_collectionChange$','PIVOT_MANUAL_FILTER_COORDINATION','_getRemovedFieldMutations','_ensurePivotMap','setPivotTable','unionPivotViewRange','rowType','removePivotTable','getMatrixFromRunTimeData','getConfig','sheets-pivot.emptyPivot.filter','SetPivotFilterCommand','subtotal','setValueFilterInfo','sheets-pivot.productName','getReportPivotCacheId','generateNewSheetName','max','UniverProLicense','intersects','changesets','dataRecordCount','SetSortInfo','UpdatePivotValuePositionCommand','groups','NUMBER','assign','sheet.mutation.remove-group-collection','_initConfig','some','ClearSelectionContentCommand','pivotTable','parseInt','countNums','dataFieldManager','Hour','setPivotManualGroups','size','ResetPivotTable','GlobalComputingStatusService','map','exports','substring','_viewUpdate$','refreshData','reportKeys','rangesInfo','month','NAME','PIVOT_DATE_GROUP_TYPES','sheets-pivot.dateGroup.date','Panel','sheet.mutation.pivot-update-value-position','sheet.mutation.update-pivot-table-source-range','SetWorksheetActiveOperation','UpdateFieldPosition','_ensurePivotTableMatrixInfo','query','generateRandomId','CacheNotFound','defaultNormalField','ptn','_configService','_lifecycleService','PositionType','getDirection','tuple','getMatrixValue','SheetsSelectionsService','columnInfo','Injector','UpdateFieldPositionMutation','sheet.mutation.initialize-pivot-runtime-local','sheets-pivot.dateGroup.yearMonth','isPrefixValue','sheet.command.set-pivot-sort','workbook','viewData$','pruneUnreferenced','PivotDataFieldTypeEnum','getValueFields','_sheetsPivotTableService','SheetsPivotCacheService','sheets-pivot.rowLabels','deleteDataField','sheet.mutation.update-date-group','sheet.command.set-pivot-field-setting','setPivotLayout','version','CopySheetCommand','abs','getFieldIds','sheets-pivot.cellDateGroupDisplay.hour','PivotCacheProviderErrorCodeEnum','test','SheetInterceptorService','Member','InsertRowCommand','HorizontalAlign','excelSerialToDateTimeParts','dateRange','_initUnitDisposed','measure','runtimeLeaseCount','Style','@univerjs-pro/license','document','deleteUnitId','setPivotInitCompleted','amd','fetchThroughInterceptors','Exclude','acquire','sheet.mutation.set-pivot-filter','_pivotInitCompleted$','Second','updateView','mode','getSheetBySheetId','StdDev\x20of\x20','getViewData','UniverProSlicer','getPivotCacheHandle','_collectionConfigModel','ReleaseType','isArrayFormulaCell','getAutoFitColumnsMutations','SHEETS_PIVOT_PLUGIN_CONFIG_KEY','_resourceManagerService','pivotTableIds','setDateSystem','89992odxZgt','update','InterceptorEffectEnum','previousFieldNames','hasField','_featureCalculationManagerService','siblingDateTypes','resetPivotTable','toJSON','direction','AddPivotTableMutation','UniverEngineRender','commit','excelLike','getDate','getUnit','FontCache','sheet.command.set-pivot-date-filter','RecordFilter','NumberGroupDefaults','pivotMutationGenerate','retainSourceFields','sheet.command.add-pivot-table','allowMultipleFilters','{0}','SetFieldFormat','getSubUnitPivotRenderCache','fromEntries','generateMutationsByRanges','getPivotTableRangeInfo','daysInterval','notExecuteFormula','_normalizeSource','_pivotRenderValueMatrixCache','refreshOnce','registerCommand','_reportScopeMap','reset','getRangeStartEndInfo','clear','changed$','updateConfig','#f4f4f5','YearMonthDate','symbol','SetPivotSortCommand','isDateGroupFieldJSON','RANGE_TYPE','sheets-pivot.numberGroupClosedRange','_globalComputingSrv','onCommandExecuted','Year','_viewData$','_reportBindings','_runtimeState$','rangeKeyMap','ΣValue','SetPivotValueFilterMutation','_injector','Column','fieldIds','unshift','collapseInfo','FieldsCollection','ambiguousMember','rowHeaderMap','setRetainedSources','sheets-pivot.cellDateGroupDisplay.second','hexCode','updateFieldSourceInfo','applyChangeSet','compilePivotDateFilter','unitId','getDataFieldByRangeKey','length','_deleteModelCache','FilterSingle','batchUpdate','colStyle','_initCommandInterceptListener','setPivotOption','SetWorksheetColWidthMutation','toString','minDate','dispose','Hidden','custom','sheets-pivot.countNumsName','Value','ReferenceInvalid','colView','_univerInstanceService','product','_refRangeService','_requestResolvers','register','options','getFieldById','getPivotTableMatrixInfo','_rejectRequest','sheet.mutation.set-pivot-option','{0}\x20{1}','setDateType','_subjectFieldsCollectionChange','@univerjs/sheets-filter','IUniverInstanceService','ceil','RemovePivotTableMutation','tableFieldId','sourceLeaseCount','DependentOn','rowLevelFieldId','varp','subscribe','_runtimeIds','remapPivotReportDataFields','dataFieldId','normalizeManualGrouping','reduce','sequenceExecute','_markDirty$','sheets-pivot.columnLabels','SHEET_PIVOT_IN_MAIN_THREAD','dateGroupingMode','displayName','SetPivotCollapseMutation','UpdatePivotFieldSettingCommand','asObservable','sheets-pivot.renderText.subtotalWithValue','Legacy','add','values','pivotPerformCheck','FilterSelectionMode','_getRuntimeIds','getInterceptPoints','sideEffectUpdateWorkerCache','setPivotSort','NORMAL','_commandService','cellData','manualGroupMembers','getRangeKeyList','renameField','SHEET_PIVOT_TABLE_PLUGIN','clearExclusiveRangesByGroupId','handleSourceRangeChange','FilterNoneSortNone','config','fetchThroughAsyncInterceptors','interceptCommand','sortInfo','pivotTableConfigs','disposableCollection','PivotDrillDownCommand','sum','pageView','NUMBER_GROUP_BEFORE_KEY','getPivotRecordMember','fields','Grand\x20Total','PivotCellStyleTypeEnum','sheet.command.add-pivot-table-with-config','UniverSheets','_pendingChanges','excelDateToUnixMilliseconds','Filter','updateViewInfo','updateRangeKeyMap','rtl','hasOwnProperty','removeCollectionMetadata','reverse','addCollection','AsyncInterceptorManager','CustomCommandExecutionError','#FFFFFF','removePivotField','Row','SendPivotViewLocalMutation','getSheetFeatureLimit','beginRuntime','isArray','getTargetByPivotId','mapPivotSheetRange','PivotSubtotalTypeEnum','getDataFieldType','EXCEL_DATE_AFTER_KEY','queryDirtyPivotTable','PivotViewCellValueTypeEnum','default','sheet.mutation.set-pivot-show-data-as','getRecordValueKey','has','UniverInstanceType','subTotalStyle','setDateFilterInfo','parse','sheet.mutation.get-pivot-data-local','fieldsCollectionChange$','NumberGroupField','_ensurePivotTableRangeInfo','sourceFieldId','sheets-pivot.dateGroup.year','sheets-pivot.cellDateGroupDisplay.before','Column\x20Labels','_updatePivotTableInstanceCache','_initClearSelectionCommandInterceptor','IFeatureCalculationManagerService','SheetsPivotDataSourceModel','_cacheById','_subjectViewChange','sheets-pivot.dateGroup.monthDate','resolvePivotValueFieldId','getPivotTableInstance','realDeleteValue','generateHexNumber','selection','_ensureViewDataMap','scientific','includes','sheets-pivot.renderText.subtotal','function','@univerjs/rpc','updateValuePosition','createInterceptorKey','RemovePivotField','_retainedSources','invalidSelection','intercept','sheets-pivot.dateGroup.yearQuarter','InsertColCommand','getTextInfo','Set','DateGroupField','matrix','getPivotDateGroupContext','SetRangeValuesUndoMutationFactory','Sum\x20of\x20','PivotErrorTypeEnum','watchPivotTableChanges','getFilterFieldIdByIndex','NotName','sheets-pivot.grandTotal','SheetsPivotTableService','Count\x20of\x20','pageStyle','RenameField','mapPivotSheetColumn','attempts','endsWith','ILogService','pipe','COLUMN','level','pivotConfigChange$','getDisplayName','deserializeRangeWithSheet','_subjectCollectionChange','RefRangeService','getPivotTableConfig','paths','[SheetsPivotRPCService]:\x20pivot\x20request\x20dispatch\x20failed','value','Optional','getLicenseInfo','isEmpty','Month-Day','operator','SetLayout','Quantity','BLANK_PLACEHOLDER','items','getFilterInfo','getPivotDateGroupingMode','setValue','split','REF','PivotDisplayDataType','_createExclusiveRange','SetPivotSetting','toPrimitive','ObjectMatrix','preUndos','SetPivotFieldFormatMutation','RIGHT','isValueFilterOperator','handle','expected','getPivotRecordFilterItemState','displayNameRecord','getTargetByPivotTableId','sheets-pivot.dateGroup.month','shouldClear','candidates','UNIVER_SHEET','retainedSource','getSourceRange','pivotFieldRemoveCoordination','toPrecision','sheet.command.set-pivot-fields-config','_sourceCalculation','_dataSyncPrimaryController','@univerjs-pro/slicer','count','updateRenderCache','panel','data','_globalComputedEndHelpFunc','AddPivotField','PivotTableValuePositionEnum','sheets-pivot.cellDateGroupDisplay.yearMonth','forValue','sheets-pivot.renderText.valueField','pbt','getPivotCacheId','New','decorate','UpdatePivotSource','_updateRenderEmptyCache','HourMinute','valueIndex','AddField','162fndkWk','IUndoRedoService','sheet.command.set-pivot-value-filter','getSheets','946Surqzx','iterateFieldDim','setDisplayName','sheets-pivot.subTotalText','cornerView','setPivotFilter','isBottomTotal','fontRenderExtension','setTextInfo','getAllUnitsForType','result','width','dirtyFieldIds','_onRefRangeChange','_sheetsSelectionsService','valuePosition','_pivotTableRangeInfo','unsubscribe','getMatrix','colHeaderMap','_sheetsPivotCacheService','SheetsPivotRPCService','IActiveDirtyManagerService','addDataFieldWithoutUnitInfo','isDate','Date1904','date','SetPivotNumberGroup','_cacheService','setSourceName','updatePivotTableRangeInfo','combineLatest','rowInfo','onlyLocal','_sourceFieldLeases','sheet.command.move-pivot-field','_pivotTableMatrixInfo','rgb(255,255,255)','formJSON','UpdateSource','headerInfo','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','updateCollectionMetadata','prefix','pushComputingStatusSubject','Rectangle','getName','endCollectChangeset','InsertRowMutation','getSubtotal','compileTimelineRange','_deleteRecordIfUnused','stdDev','unitData','sheet.mutation.set-pivot-collapse','setRowCollapseLevel','PivotTableChangeTypeEnum','DataSyncPrimaryController','Unit','SetPivotSort','registerPluginResource','getValueIndex','numberGroupField','EXCEL_DATE_BEFORE_KEY','getFontStyleString','syncCollectionConfig','sheets-pivot.dateGroup.quarter','RemoveRowCommand','info','Row\x20Labels','rangeCache','configs','_ensurePivotItemRenderValueMatrixCache','cornerRanges','sheet.mutation.set-pivot-value-filter','setRangeKeyMap','sheets-pivot.subTotal','valueFields','sheetName','6964460wDxTgi','removeValueFilterInfo','cancelCollectChangeset','_clearRenderCacheData','setPivotDateFilter','fromJSON','getDateSystem','UniverSheetsFilter','_pivotRenderInfoCache','sheets-pivot.varpName','numberGroupDefaults','interceptor','PivotDataFieldDataTypeEnum','_host','getPivotTableCellData','SetFilterInfo','prepareConfigBatch','@univerjs-pro/sheets-pivot','diffValue','filterFields','pivot-cache-','normalizeExcelDateGrouping','sortLocale','FilterNoneSortAsc','CommandType','UpdateValuePositionMutation','leafStyle','row','sheets-pivot.other','getTextSize','_direction','FilterAll','delete','updatePivotTableSourceRange','headerMap','sheet.command.update-date-group','Total','setPivotTableConfig','drillDown','\x20-\x20','#1d32e9','sheets-pivot.emptyPivot.row','SetPivotOptionMutation','UpdateValuePosition','Average\x20of\x20','getOwnPropertyDescriptor','batch','UpdatePivotFieldSourceInfoMutation','UniverProSheetsPivot','dataFields','refreshDataField','isBaseGroupField','Subtotal','pivotTableConfig','getUnitId','object','Include','_emitCollectionChange','getAutoDisplayNameFunction','getFieldDataType','MonthDate','InsertColMutation','RemovePivotFieldMutation','iterateFieldByArea','_model','markDirty','sheet.command.set-pivot-collapse-by-field','standard','getSheetCommandTarget','adjustSheetCellData','refreshGroupField'];_0x1d3b=function(){return _0x40fb8c;};return _0x1d3b();}
|