@univerjs/sheets-formula-ui 0.3.0-nightly.202410101606
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -0
- package/lib/cjs/index.js +1 -0
- package/lib/es/index.js +1 -0
- package/lib/index.css +1 -0
- package/lib/locale/en-US.json +10987 -0
- package/lib/locale/ru-RU.json +10938 -0
- package/lib/locale/vi-VN.json +9511 -0
- package/lib/locale/zh-CN.json +10987 -0
- package/lib/locale/zh-TW.json +10987 -0
- package/lib/types/commands/commands/formula-clipboard.command.d.ts +2 -0
- package/lib/types/commands/operations/__tests__/create-command-test-bed.d.ts +13 -0
- package/lib/types/commands/operations/__tests__/insert-function.operation.spec.d.ts +16 -0
- package/lib/types/commands/operations/editor-formula.operation.d.ts +11 -0
- package/lib/types/commands/operations/help-function.operation.d.ts +2 -0
- package/lib/types/commands/operations/insert-function.operation.d.ts +19 -0
- package/lib/types/commands/operations/more-functions.operation.d.ts +2 -0
- package/lib/types/commands/operations/reference-absolute.operation.d.ts +2 -0
- package/lib/types/commands/operations/search-function.operation.d.ts +2 -0
- package/lib/types/common/plugin-name.d.ts +16 -0
- package/lib/types/common/prompt.d.ts +16 -0
- package/lib/types/common/selection.d.ts +4 -0
- package/lib/types/controllers/__tests__/create-command-test-bed.d.ts +7 -0
- package/lib/types/controllers/__tests__/formula-auto-fill.controller.spec.d.ts +16 -0
- package/lib/types/controllers/__tests__/formula-clipboard.controller.spec.d.ts +16 -0
- package/lib/types/controllers/__tests__/update-formula.controller.spec.d.ts +16 -0
- package/lib/types/controllers/config.schema.d.ts +15 -0
- package/lib/types/controllers/formula-alert-render.controller.d.ts +15 -0
- package/lib/types/controllers/formula-auto-fill.controller.d.ts +10 -0
- package/lib/types/controllers/formula-clipboard.controller.d.ts +25 -0
- package/lib/types/controllers/formula-editor-show.controller.d.ts +28 -0
- package/lib/types/controllers/formula-process.controller.d.ts +15 -0
- package/lib/types/controllers/formula-render.controller.d.ts +6 -0
- package/lib/types/controllers/formula-ui.controller.d.ts +19 -0
- package/lib/types/controllers/menu.d.ts +5 -0
- package/lib/types/controllers/menu.schema.d.ts +2 -0
- package/lib/types/controllers/prompt.controller.d.ts +170 -0
- package/lib/types/controllers/shortcuts/prompt.shortcut.d.ts +9 -0
- package/lib/types/controllers/utils/__tests__/offset-formula-data.spec.d.ts +16 -0
- package/lib/types/controllers/utils/__tests__/ref-range-formula.spec.d.ts +16 -0
- package/lib/types/controllers/utils/__tests__/utils.spec.d.ts +16 -0
- package/lib/types/controllers/utils/offset-formula-data.d.ts +15 -0
- package/lib/types/controllers/utils/ref-range-formula.d.ts +71 -0
- package/lib/types/controllers/utils/utils.d.ts +15 -0
- package/lib/types/index.d.ts +25 -0
- package/lib/types/locale/en-US.d.ts +9983 -0
- package/lib/types/locale/function-list/array/en-US.d.ts +17 -0
- package/lib/types/locale/function-list/array/ja-JP.d.ts +17 -0
- package/lib/types/locale/function-list/array/ru-RU.d.ts +2 -0
- package/lib/types/locale/function-list/array/vi-VN.d.ts +17 -0
- package/lib/types/locale/function-list/array/zh-CN.d.ts +17 -0
- package/lib/types/locale/function-list/array/zh-TW.d.ts +17 -0
- package/lib/types/locale/function-list/compatibility/en-US.d.ts +762 -0
- package/lib/types/locale/function-list/compatibility/ja-JP.d.ts +762 -0
- package/lib/types/locale/function-list/compatibility/ru-RU.d.ts +2 -0
- package/lib/types/locale/function-list/compatibility/vi-VN.d.ts +762 -0
- package/lib/types/locale/function-list/compatibility/zh-CN.d.ts +762 -0
- package/lib/types/locale/function-list/compatibility/zh-TW.d.ts +762 -0
- package/lib/types/locale/function-list/cube/en-US.d.ts +144 -0
- package/lib/types/locale/function-list/cube/ja-JP.d.ts +144 -0
- package/lib/types/locale/function-list/cube/ru-RU.d.ts +144 -0
- package/lib/types/locale/function-list/cube/vi-VN.d.ts +144 -0
- package/lib/types/locale/function-list/cube/zh-CN.d.ts +144 -0
- package/lib/types/locale/function-list/cube/zh-TW.d.ts +144 -0
- package/lib/types/locale/function-list/database/en-US.d.ts +234 -0
- package/lib/types/locale/function-list/database/ja-JP.d.ts +234 -0
- package/lib/types/locale/function-list/database/ru-RU.d.ts +234 -0
- package/lib/types/locale/function-list/database/vi-VN.d.ts +234 -0
- package/lib/types/locale/function-list/database/zh-CN.d.ts +234 -0
- package/lib/types/locale/function-list/database/zh-TW.d.ts +234 -0
- package/lib/types/locale/function-list/date/en-US.d.ts +458 -0
- package/lib/types/locale/function-list/date/ja-JP.d.ts +458 -0
- package/lib/types/locale/function-list/date/ru-RU.d.ts +2 -0
- package/lib/types/locale/function-list/date/vi-VN.d.ts +458 -0
- package/lib/types/locale/function-list/date/zh-CN.d.ts +458 -0
- package/lib/types/locale/function-list/date/zh-TW.d.ts +458 -0
- package/lib/types/locale/function-list/engineering/en-US.d.ts +894 -0
- package/lib/types/locale/function-list/engineering/ja-JP.d.ts +894 -0
- package/lib/types/locale/function-list/engineering/ru-RU.d.ts +2 -0
- package/lib/types/locale/function-list/engineering/vi-VN.d.ts +894 -0
- package/lib/types/locale/function-list/engineering/zh-CN.d.ts +894 -0
- package/lib/types/locale/function-list/engineering/zh-TW.d.ts +894 -0
- package/lib/types/locale/function-list/financial/en-US.d.ts +1608 -0
- package/lib/types/locale/function-list/financial/ja-JP.d.ts +1608 -0
- package/lib/types/locale/function-list/financial/ru-RU.d.ts +2 -0
- package/lib/types/locale/function-list/financial/vi-VN.d.ts +1608 -0
- package/lib/types/locale/function-list/financial/zh-CN.d.ts +1608 -0
- package/lib/types/locale/function-list/financial/zh-TW.d.ts +1608 -0
- package/lib/types/locale/function-list/information/en-US.d.ts +327 -0
- package/lib/types/locale/function-list/information/ja-JP.d.ts +327 -0
- package/lib/types/locale/function-list/information/ru-RU.d.ts +2 -0
- package/lib/types/locale/function-list/information/vi-VN.d.ts +255 -0
- package/lib/types/locale/function-list/information/zh-CN.d.ts +327 -0
- package/lib/types/locale/function-list/information/zh-TW.d.ts +327 -0
- package/lib/types/locale/function-list/logical/en-US.d.ts +390 -0
- package/lib/types/locale/function-list/logical/ja-JP.d.ts +390 -0
- package/lib/types/locale/function-list/logical/ru-RU.d.ts +2 -0
- package/lib/types/locale/function-list/logical/vi-VN.d.ts +390 -0
- package/lib/types/locale/function-list/logical/zh-CN.d.ts +390 -0
- package/lib/types/locale/function-list/logical/zh-TW.d.ts +390 -0
- package/lib/types/locale/function-list/lookup/en-US.d.ts +812 -0
- package/lib/types/locale/function-list/lookup/ja-JP.d.ts +812 -0
- package/lib/types/locale/function-list/lookup/ru-RU.d.ts +2 -0
- package/lib/types/locale/function-list/lookup/vi-VN.d.ts +722 -0
- package/lib/types/locale/function-list/lookup/zh-CN.d.ts +812 -0
- package/lib/types/locale/function-list/lookup/zh-TW.d.ts +812 -0
- package/lib/types/locale/function-list/math/en-US.d.ts +1388 -0
- package/lib/types/locale/function-list/math/ja-JP.d.ts +1388 -0
- package/lib/types/locale/function-list/math/ru-RU.d.ts +2 -0
- package/lib/types/locale/function-list/math/vi-VN.d.ts +1298 -0
- package/lib/types/locale/function-list/math/zh-CN.d.ts +1388 -0
- package/lib/types/locale/function-list/math/zh-TW.d.ts +1388 -0
- package/lib/types/locale/function-list/statistical/en-US.d.ts +2160 -0
- package/lib/types/locale/function-list/statistical/ja-JP.d.ts +2160 -0
- package/lib/types/locale/function-list/statistical/ru-RU.d.ts +2 -0
- package/lib/types/locale/function-list/statistical/vi-VN.d.ts +1188 -0
- package/lib/types/locale/function-list/statistical/zh-CN.d.ts +2160 -0
- package/lib/types/locale/function-list/statistical/zh-TW.d.ts +2160 -0
- package/lib/types/locale/function-list/text/en-US.d.ts +904 -0
- package/lib/types/locale/function-list/text/ja-JP.d.ts +905 -0
- package/lib/types/locale/function-list/text/ru-RU.d.ts +856 -0
- package/lib/types/locale/function-list/text/vi-VN.d.ts +784 -0
- package/lib/types/locale/function-list/text/zh-CN.d.ts +904 -0
- package/lib/types/locale/function-list/text/zh-TW.d.ts +904 -0
- package/lib/types/locale/function-list/univer/en-US.d.ts +17 -0
- package/lib/types/locale/function-list/univer/ja-JP.d.ts +17 -0
- package/lib/types/locale/function-list/univer/ru-RU.d.ts +17 -0
- package/lib/types/locale/function-list/univer/vi-VN.d.ts +17 -0
- package/lib/types/locale/function-list/univer/zh-CN.d.ts +17 -0
- package/lib/types/locale/function-list/univer/zh-TW.d.ts +17 -0
- package/lib/types/locale/function-list/web/en-US.d.ts +72 -0
- package/lib/types/locale/function-list/web/ja-JP.d.ts +72 -0
- package/lib/types/locale/function-list/web/ru-RU.d.ts +72 -0
- package/lib/types/locale/function-list/web/vi-VN.d.ts +2 -0
- package/lib/types/locale/function-list/web/zh-CN.d.ts +72 -0
- package/lib/types/locale/function-list/web/zh-TW.d.ts +72 -0
- package/lib/types/locale/ru-RU.d.ts +9934 -0
- package/lib/types/locale/vi-VN.d.ts +8657 -0
- package/lib/types/locale/zh-CN.d.ts +9983 -0
- package/lib/types/locale/zh-TW.d.ts +9983 -0
- package/lib/types/services/formula-common.d.ts +18 -0
- package/lib/types/services/prompt.service.d.ts +160 -0
- package/lib/types/services/render-services/ref-selections.render-service.d.ts +42 -0
- package/lib/types/services/utils.d.ts +8 -0
- package/lib/types/sheets-formula-ui.plugin.d.ts +19 -0
- package/lib/types/views/FormulaPromptContainer.d.ts +2 -0
- package/lib/types/views/more-functions/MoreFunctions.d.ts +2 -0
- package/lib/types/views/more-functions/function-help/FunctionHelp.d.ts +22 -0
- package/lib/types/views/more-functions/function-params/FunctionParams.d.ts +8 -0
- package/lib/types/views/more-functions/input-params/InputParams.d.ts +7 -0
- package/lib/types/views/more-functions/interface.d.ts +16 -0
- package/lib/types/views/more-functions/select-function/SelectFunction.d.ts +6 -0
- package/lib/types/views/prompt/help-function/HelpFunction.d.ts +2 -0
- package/lib/types/views/prompt/resize-scroll-observer.d.ts +18 -0
- package/lib/types/views/prompt/search-function/SearchFunction.d.ts +2 -0
- package/lib/umd/index.js +1 -0
- package/package.json +113 -0
package/lib/es/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x40106a=_0xa8a2;(function(_0x4dac98,_0x2ad19d){const _0x387d14=_0xa8a2,_0x4ca763=_0x4dac98();while(!![]){try{const _0xbb9498=-parseInt(_0x387d14(0x441))/0x1+-parseInt(_0x387d14(0x2c5))/0x2*(-parseInt(_0x387d14(0x206))/0x3)+-parseInt(_0x387d14(0x3be))/0x4*(parseInt(_0x387d14(0x182))/0x5)+parseInt(_0x387d14(0x1b4))/0x6+-parseInt(_0x387d14(0x2ae))/0x7*(parseInt(_0x387d14(0x38b))/0x8)+-parseInt(_0x387d14(0x1cb))/0x9+parseInt(_0x387d14(0x3c9))/0xa;if(_0xbb9498===_0x2ad19d)break;else _0x4ca763['push'](_0x4ca763['shift']());}catch(_0x136abd){_0x4ca763['push'](_0x4ca763['shift']());}}}(_0x3940,0xb9752));var __defProp=Object['defineProperty'],__defNormalProp=(_0xc2ef78,_0x463d1c,_0x573af3)=>_0x463d1c in _0xc2ef78?__defProp(_0xc2ef78,_0x463d1c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x573af3}):_0xc2ef78[_0x463d1c]=_0x573af3,__name=(_0x2883dc,_0x4feefb)=>__defProp(_0x2883dc,_0x40106a(0x2ff),{'value':_0x4feefb,'configurable':!0x0}),__publicField=(_0x18fb75,_0x5a5243,_0x2c4825)=>__defNormalProp(_0x18fb75,typeof _0x5a5243!=_0x40106a(0x1ed)?_0x5a5243+'':_0x5a5243,_0x2c4825);import{CommandType,ICommandService,createIdentifier,IContextService,IUniverInstanceService,Rectangle,DEFAULT_EMPTY_DOCUMENT_VALUE,isRealNum,CellValueType,getCellValueType,isFormulaString,isFormulaId,FOCUSING_DOC,FOCUSING_UNIVER_EDITOR,FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE,Disposable,isICellData,Inject,LocaleService,Tools,Direction,UniverInstanceType,Injector,ObjectMatrix,ThemeService,toDisposable,ColorKit,ILogService,RxDisposable,InterceptorEffectEnum,useDependency,useInjector,connectInjector,DisposableCollection,RANGE_TYPE,FORMULA_EDITOR_ACTIVATED,FOCUSING_EDITOR_INPUT_FORMULA,AbsoluteRefType,DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,DOCS_NORMAL_EDITOR_UNIT_ID_KEY,Plugin,DependentOn,IConfigService}from'@univerjs/core';import{SheetPasteCommand,PREDEFINED_HOOK_NAME,CellAlertType,HoverManagerService,CellAlertManagerService,DATA_TYPE,APPLY_TYPE,IAutoFillService,COPY_TYPE,ISheetClipboardService,IEditorBridgeService,SheetSkeletonManagerService,ISheetSelectionRenderService,SelectionShape,SELECTION_SHAPE_DEPTH,useActiveWorkbook,getCurrentRangeDisable$,PASTE_SPECIAL_MENU_ID,whenFormulaEditorActivated,BaseSelectionRenderService,getCoordByOffset,checkInHeaderRanges,getAllSelection,attachSelectionWithCoord,getSheetObject,getEditorObject,MoveSelectionCommand,JumpOver,ExpandSelectionCommand}from'@univerjs/sheets-ui';import{sequenceNodeType,serializeRange,ERROR_TYPE_SET,ErrorType,LexerTreeBuilder,FormulaDataModel,SetFormulaCalculationResultMutation,SetArrayFormulaDataMutation,FunctionType,matchRefDrawToken,matchToken,compareToken,deserializeRangeWithSheet,normalizeSheetName,serializeRangeToRefString,generateStringWithSequence,getAbsoluteRefTypeWitString,UniverFormulaEnginePlugin}from'@univerjs/engine-formula';import{Subject,throttleTime,combineLatestWith,map,switchMap,of,Observable,distinctUntilKeyChanged,distinctUntilChanged}from'rxjs';import{IEditorService,DocSelectionRenderService,ReplaceContentCommand,MoveCursorOperation}from'@univerjs/docs-ui';import{SheetsSelectionsService,getSheetCommandTarget,getCellAtRowCol,SetSelectionsOperation,SetRangeValuesMutation,SetRangeValuesUndoMutationFactory,SetWorksheetRowAutoHeightMutation,INTERCEPTOR_POINT,SheetInterceptorService,WorkbookEditablePermission,WorksheetEditPermission,WorksheetSetCellValuePermission,RangeProtectionPermissionEditPoint,SelectionMoveType,convertSelectionDataToRange,getNormalSelectionStyle,IRefSelectionsService,DISABLE_NORMAL_SELECTIONS,setEndForRange,getPrimaryForRange}from'@univerjs/sheets';import{InsertFunctionCommand,IDescriptionService,UniverSheetsFormulaPlugin}from'@univerjs/sheets-formula';import{ISidebarService,IZenZoneService,ILayoutService,MenuItemType,getMenuHiddenObservable,IClipboardInterfaceService,RibbonStartGroup,KeyCode,MetaKeys,BuiltInUIPart,ComponentManager,IMenuManagerService,IShortcutService,IUIPartsService,UNI_DISABLE_CHANGING_FOCUS_KEY,SetEditorResizeOperation,IContextMenuService}from'@univerjs/ui';import{IRenderManagerService,DeviceInputEventType,ScrollTimerType,SHEET_VIEWPORT_KEY,Vector2}from'@univerjs/engine-render';import _0x44bbf9,{forwardRef,useRef,createElement,useEffect,useState}from'react';import{Popup,Select,Input,Button}from'@univerjs/design';import{DocSkeletonManagerService,DocSelectionManagerService}from'@univerjs/docs';const SheetOnlyPasteFormulaCommand={'id':_0x40106a(0x32f),'type':CommandType[_0x40106a(0x335)],'handler':__name(async _0x58cff0=>_0x58cff0[_0x40106a(0x424)](ICommandService)[_0x40106a(0x32e)](SheetPasteCommand['id'],{'value':PREDEFINED_HOOK_NAME[_0x40106a(0x255)]}),_0x40106a(0x30c))},SelectEditorFormulaOperation={'id':_0x40106a(0x322),'type':CommandType[_0x40106a(0x17a)],'handler':__name((_0xb9be59,_0x5f5142)=>!0x0,'handler')};var __defProp$9=Object[_0x40106a(0x353)],__getOwnPropDesc$9=Object[_0x40106a(0x395)],__decorateClass$9=__name((_0x107893,_0x17d86d,_0xf31b8a,_0x1cf5fd)=>{for(var _0x267418=_0x1cf5fd>0x1?void 0x0:_0x1cf5fd?__getOwnPropDesc$9(_0x17d86d,_0xf31b8a):_0x17d86d,_0x10a5b3=_0x107893['length']-0x1,_0x2c827f;_0x10a5b3>=0x0;_0x10a5b3--)(_0x2c827f=_0x107893[_0x10a5b3])&&(_0x267418=(_0x1cf5fd?_0x2c827f(_0x17d86d,_0xf31b8a,_0x267418):_0x2c827f(_0x267418))||_0x267418);return _0x1cf5fd&&_0x267418&&__defProp$9(_0x17d86d,_0xf31b8a,_0x267418),_0x267418;},'__decorateClass$9'),__decorateParam$9=__name((_0x24bdc5,_0x3a138a)=>(_0x34934c,_0x42cefe)=>_0x3a138a(_0x34934c,_0x42cefe,_0x24bdc5),_0x40106a(0x3b0));const FORMULA_PROMPT_ACTIVATED=_0x40106a(0x2a6),IFormulaPromptService=createIdentifier('formula-ui.prompt-service');var _a;let FormulaPromptService=(_a=class{constructor(_0x152d10){const _0x2fb2a8=_0x40106a;__publicField(this,_0x2fb2a8(0x290),new Subject()),__publicField(this,_0x2fb2a8(0x3d3),new Subject()),__publicField(this,_0x2fb2a8(0x1dd),new Subject()),__publicField(this,_0x2fb2a8(0x3c8),new Subject()),__publicField(this,_0x2fb2a8(0x2a0),new Subject()),__publicField(this,_0x2fb2a8(0x3af),this[_0x2fb2a8(0x290)][_0x2fb2a8(0x171)]()),__publicField(this,_0x2fb2a8(0x2e7),this[_0x2fb2a8(0x3d3)][_0x2fb2a8(0x171)]()),__publicField(this,_0x2fb2a8(0x31a),this[_0x2fb2a8(0x1dd)]['asObservable']()),__publicField(this,_0x2fb2a8(0x17f),this[_0x2fb2a8(0x3c8)][_0x2fb2a8(0x171)]()),__publicField(this,'acceptFormulaName$',this['_acceptFormulaName$'][_0x2fb2a8(0x171)]()),__publicField(this,_0x2fb2a8(0x1dc),!0x1),__publicField(this,'_helping',!0x1),__publicField(this,'_sequenceNodes',[]),__publicField(this,_0x2fb2a8(0x29d),!0x1),__publicField(this,_0x2fb2a8(0x314),!0x1),this[_0x2fb2a8(0x316)]=_0x152d10;}[_0x40106a(0x23f)](){const _0x501a5b=_0x40106a;this[_0x501a5b(0x290)]['complete'](),this[_0x501a5b(0x3d3)][_0x501a5b(0x35f)](),this['_navigate$'][_0x501a5b(0x35f)](),this[_0x501a5b(0x3c8)][_0x501a5b(0x35f)](),this['_acceptFormulaName$'][_0x501a5b(0x35f)](),this[_0x501a5b(0x2de)]=[];}['search'](_0x5a80bf){const _0x581bed=_0x40106a;this[_0x581bed(0x316)][_0x581bed(0x42e)](FORMULA_PROMPT_ACTIVATED,_0x5a80bf['visible']),this[_0x581bed(0x1dc)]=_0x5a80bf[_0x581bed(0x25f)],this[_0x581bed(0x290)][_0x581bed(0x33a)](_0x5a80bf);}[_0x40106a(0x17c)](){const _0x18e6f1=_0x40106a;return this[_0x18e6f1(0x1dc)];}[_0x40106a(0x3d5)](_0xeeec34){const _0x295ec4=_0x40106a;this['_helping']=_0xeeec34['visible'],this[_0x295ec4(0x3d3)][_0x295ec4(0x33a)](_0xeeec34);}[_0x40106a(0x34d)](){const _0x273dee=_0x40106a;return this[_0x273dee(0x333)];}[_0x40106a(0x3ea)](_0x18f0eb){const _0x474651=_0x40106a;this[_0x474651(0x1dd)][_0x474651(0x33a)](_0x18f0eb);}[_0x40106a(0x3a2)](_0x24a4dc){const _0x207049=_0x40106a;this[_0x207049(0x3c8)]['next'](_0x24a4dc);}['acceptFormulaName'](_0x38ffac){this['_acceptFormulaName$']['next'](_0x38ffac);}[_0x40106a(0x3c1)](){return[...this['_sequenceNodes']];}[_0x40106a(0x3c7)](_0xb00ef4){const _0x4b44d4=_0x40106a;this[_0x4b44d4(0x2de)]=_0xb00ef4;}[_0x40106a(0x2aa)](){const _0x1645e2=_0x40106a;this[_0x1645e2(0x2de)]=[];}[_0x40106a(0x336)](_0xff84d6){const _0x46493a=_0x40106a;return this[_0x46493a(0x2de)][this[_0x46493a(0x30b)](_0xff84d6)];}[_0x40106a(0x258)](_0x5392e7){const _0x4127ca=_0x40106a;return this[_0x4127ca(0x2de)][_0x5392e7];}[_0x40106a(0x30b)](_0x34e4a5){const _0x2f7b8e=_0x40106a;let _0x5373bf=0x0;const _0x5ef4d7=this[_0x2f7b8e(0x2de)][0x0];for(let _0x505e41=0x0,_0x54767b=this[_0x2f7b8e(0x2de)]['length'];_0x505e41<_0x54767b;_0x505e41++){const _0x8f7e83=this[_0x2f7b8e(0x2de)][_0x505e41];if(typeof _0x8f7e83==_0x2f7b8e(0x40f))_0x5373bf++;else{const {endIndex:_0x11cdb6}=_0x8f7e83;_0x5373bf=_0x11cdb6;}if(_0x34e4a5<=_0x5373bf)return typeof _0x5ef4d7==_0x2f7b8e(0x40f)&&_0x34e4a5!==0x0?_0x505e41+0x1:_0x505e41;}return this['_sequenceNodes']['length'];}[_0x40106a(0x35b)](_0x5eef6f,_0x4738f9){const _0x6c01a8=_0x40106a,_0x19487c=this[_0x6c01a8(0x2de)][_0x5eef6f];if(typeof _0x19487c==_0x6c01a8(0x40f)||_0x19487c[_0x6c01a8(0x41b)]!==sequenceNodeType[_0x6c01a8(0x2df)])return;const _0x1c7616=_0x4738f9['length']-_0x19487c[_0x6c01a8(0x401)][_0x6c01a8(0x348)],_0x5d0297={..._0x19487c};_0x5d0297[_0x6c01a8(0x401)]=_0x4738f9,_0x5d0297[_0x6c01a8(0x3b5)]+=_0x1c7616,this[_0x6c01a8(0x2de)][_0x5eef6f]=_0x5d0297;for(let _0xda09b=_0x5eef6f+0x1,_0x123615=this[_0x6c01a8(0x2de)][_0x6c01a8(0x348)];_0xda09b<_0x123615;_0xda09b++){const _0x22c7cb=this['_sequenceNodes'][_0xda09b];if(typeof _0x22c7cb==_0x6c01a8(0x40f))continue;const _0x22504f={..._0x22c7cb};_0x22504f[_0x6c01a8(0x1fe)]+=_0x1c7616,_0x22504f['endIndex']+=_0x1c7616,this[_0x6c01a8(0x2de)][_0xda09b]=_0x22504f;}}[_0x40106a(0x306)](_0x51af9e,_0xafcc78){const _0x4a77ab=_0x40106a,_0x6d65ca=_0xafcc78[_0x4a77ab(0x348)],_0x123001=this[_0x4a77ab(0x30b)](_0x51af9e);this['_sequenceNodes'][_0x4a77ab(0x38a)](_0x123001,0x0,{'token':_0xafcc78,'startIndex':_0x51af9e,'endIndex':_0x51af9e+_0x6d65ca-0x1,'nodeType':sequenceNodeType[_0x4a77ab(0x2df)]});for(let _0x2799fa=_0x123001+0x1,_0x36bc51=this['_sequenceNodes'][_0x4a77ab(0x348)];_0x2799fa<_0x36bc51;_0x2799fa++){const _0x305e2b=this[_0x4a77ab(0x2de)][_0x2799fa];if(typeof _0x305e2b==_0x4a77ab(0x40f))continue;const _0x151750={..._0x305e2b};_0x151750[_0x4a77ab(0x1fe)]+=_0x6d65ca,_0x151750['endIndex']+=_0x6d65ca,this['_sequenceNodes'][_0x2799fa]=_0x151750;}}['insertSequenceString'](_0x5089cd,_0x4742cb){const _0x174f63=_0x40106a,_0x35b2e2=this['getCurrentSequenceNodeIndex'](_0x5089cd),_0x49cc77=_0x4742cb[_0x174f63(0x432)]('');this['_sequenceNodes']['splice'](_0x35b2e2,0x0,..._0x49cc77);const _0x5235bd=_0x49cc77[_0x174f63(0x348)];for(let _0x5d8b69=_0x35b2e2+_0x5235bd,_0x28977c=this[_0x174f63(0x2de)][_0x174f63(0x348)];_0x5d8b69<_0x28977c;_0x5d8b69++){const _0xb23d5c=this['_sequenceNodes'][_0x5d8b69];if(typeof _0xb23d5c==_0x174f63(0x40f))continue;const _0x381ea5={..._0xb23d5c};_0x381ea5['startIndex']+=_0x5235bd,_0x381ea5[_0x174f63(0x3b5)]+=_0x5235bd,this[_0x174f63(0x2de)][_0x5d8b69]=_0x381ea5;}}['enableLockedSelectionChange'](){const _0x5c6660=_0x40106a;this[_0x5c6660(0x29d)]=!0x0;}[_0x40106a(0x3ab)](){const _0x34fd17=_0x40106a;this[_0x34fd17(0x29d)]=!0x1;}[_0x40106a(0x17e)](){const _0x3414cf=_0x40106a;return this[_0x3414cf(0x29d)];}[_0x40106a(0x1f0)](){this['_isLockedOnSelectionInsertRefString']=!0x0;}['disableLockedSelectionInsert'](){this['_isLockedOnSelectionInsertRefString']=!0x1;}[_0x40106a(0x1bb)](){const _0xef5beb=_0x40106a;return this[_0xef5beb(0x314)];}},__name(_a,_0x40106a(0x209)),_a);FormulaPromptService=__decorateClass$9([__decorateParam$9(0x0,IContextService)],FormulaPromptService);const HelpFunctionOperation={'id':'formula-ui.operation.help-function','type':CommandType[_0x40106a(0x17a)],'handler':__name(async(_0x27f4ea,_0x59f22f)=>(_0x27f4ea['get'](IFormulaPromptService)['help'](_0x59f22f),!0x0),_0x40106a(0x30c))},InsertFunctionOperation={'id':_0x40106a(0x1ba),'type':CommandType['OPERATION'],'handler':__name(async(_0x4a40ea,_0x1b2008)=>{const _0x42a983=_0x40106a;var _0x36e72c,_0x45e9f6;const _0x2d87af=_0x4a40ea[_0x42a983(0x424)](SheetsSelectionsService),_0x504c95=_0x4a40ea['get'](IEditorService),_0x4f6a57=_0x2d87af[_0x42a983(0x359)]();if(!_0x4f6a57||!_0x4f6a57[_0x42a983(0x348)])return!0x1;const _0x1899ee=getSheetCommandTarget(_0x4a40ea[_0x42a983(0x424)](IUniverInstanceService));if(!_0x1899ee)return!0x1;const {worksheet:_0x3b6d26,unitId:_0x2468a3,subUnitId:_0x5b4f83}=_0x1899ee,_0x4af44d=_0x3b6d26[_0x42a983(0x404)](),{value:_0x5f412e}=_0x1b2008,_0x50c0f7=_0x4a40ea['get'](ICommandService),_0x9c7c8b=[];let _0x8ed232=null,_0x156354=0x0,_0x433be3=0x0,_0x536bf8='';if(_0x4f6a57[_0x42a983(0x348)]===0x1&&(isSingleCell(_0x4f6a57[0x0][_0x42a983(0x2ec)])||isMultiRowsColumnsRange(_0x4f6a57[0x0][_0x42a983(0x2ec)]))){const {range:_0x1dd911,primary:_0x2b33ef}=_0x4f6a57[0x0],_0x21d654=(_0x36e72c=_0x2b33ef==null?void 0x0:_0x2b33ef[_0x42a983(0x3ac)])!=null?_0x36e72c:_0x1dd911['startRow'],_0x5a50be=(_0x45e9f6=_0x2b33ef==null?void 0x0:_0x2b33ef['actualColumn'])!=null?_0x45e9f6:_0x1dd911[_0x42a983(0x28e)];_0x8ed232=_0x1dd911,_0x156354=_0x21d654,_0x433be3=_0x5a50be;const _0x3de53e=findRefRange(_0x4af44d,_0x21d654,_0x5a50be);_0x3de53e&&(_0x536bf8=serializeRange(_0x3de53e));}else _0x4f6a57[_0x42a983(0x1bd)](_0x2feeb8=>{const _0x48bb36=_0x42a983;var _0x5d0113,_0x727116;const {range:_0x488d15,primary:_0x1f0644}=_0x2feeb8,_0x53e8fe=(_0x5d0113=_0x1f0644==null?void 0x0:_0x1f0644[_0x48bb36(0x3ac)])!=null?_0x5d0113:_0x488d15[_0x48bb36(0x277)],_0x4846b4=(_0x727116=_0x1f0644==null?void 0x0:_0x1f0644[_0x48bb36(0x304)])!=null?_0x727116:_0x488d15['startColumn'],_0x13ed86=findRefRange(_0x4af44d,_0x53e8fe,_0x4846b4);if(!_0x13ed86)return _0x8ed232=_0x488d15,_0x156354=_0x53e8fe,_0x433be3=_0x4846b4,!0x0;const _0x5a3c85=serializeRange(_0x13ed86),_0x2c5c90='='+_0x5f412e+'('+_0x5a3c85+')';return _0x9c7c8b[_0x48bb36(0x443)]({'range':_0x488d15,'primary':{'row':_0x53e8fe,'column':_0x4846b4},'formula':_0x2c5c90}),!0x1;});if(_0x8ed232){const _0x3fcf0a=getCellAtRowCol(_0x156354,_0x433be3,_0x3b6d26),_0x2c35d9={'range':Rectangle[_0x42a983(0x21c)](_0x8ed232),'primary':{'startRow':_0x3fcf0a[_0x42a983(0x277)],'startColumn':_0x3fcf0a[_0x42a983(0x28e)],'endRow':_0x3fcf0a[_0x42a983(0x268)],'endColumn':_0x3fcf0a[_0x42a983(0x346)],'actualRow':_0x156354,'actualColumn':_0x433be3,'isMerged':_0x3fcf0a['isMerged'],'isMergedMainCell':_0x3fcf0a[_0x42a983(0x277)]===_0x156354&&_0x3fcf0a[_0x42a983(0x28e)]===_0x433be3}},_0x15d7bf={'unitId':_0x2468a3,'subUnitId':_0x5b4f83,'selections':[_0x2c35d9]};await _0x50c0f7[_0x42a983(0x32e)](SetSelectionsOperation['id'],_0x15d7bf),setTimeout(()=>{const _0x5f2f3f=_0x42a983;_0x504c95[_0x5f2f3f(0x19c)]('='+_0x5f412e+'('+_0x536bf8);},0x0);}return _0x9c7c8b['length']===0x0?!0x1:_0x50c0f7[_0x42a983(0x32e)](InsertFunctionCommand['id'],{'list':_0x9c7c8b});},_0x40106a(0x30c))};function findRefRange(_0x32ff04,_0x2d3a7b,_0x59d02b){const _0x559f5d=findStartRow(_0x32ff04,_0x2d3a7b,_0x59d02b);if(_0x559f5d!==_0x2d3a7b)return{'startRow':_0x559f5d,'endRow':_0x2d3a7b-0x1,'startColumn':_0x59d02b,'endColumn':_0x59d02b};const _0x536995=findStartColumn(_0x32ff04,_0x2d3a7b,_0x59d02b);return _0x536995!==_0x59d02b?{'startRow':_0x2d3a7b,'endRow':_0x2d3a7b,'startColumn':_0x536995,'endColumn':_0x59d02b-0x1}:null;}__name(findRefRange,_0x40106a(0x2eb));function findStartRow(_0x5c3f90,_0x480186,_0x1dbe26){const _0x4765b5=_0x40106a;let _0x13756a=!0x1;if(_0x480186===0x0)return _0x480186;for(let _0x3efac4=_0x480186-0x1;_0x3efac4>=0x0;_0x3efac4--){const _0x47b53c=_0x5c3f90[_0x4765b5(0x2fe)](_0x3efac4,_0x1dbe26);if(isNumberCell(_0x47b53c)&&!_0x13756a){if(_0x3efac4===0x0)return 0x0;_0x13756a=!0x0;}else{if(_0x13756a&&!isNumberCell(_0x47b53c))return _0x3efac4+0x1;if(_0x13756a&&_0x3efac4===0x0)return 0x0;}}return _0x480186;}__name(findStartRow,_0x40106a(0x3a4));function findStartColumn(_0x6cca25,_0x4d6bd8,_0x25b73c){const _0x36149d=_0x40106a;let _0x225864=!0x1;if(_0x25b73c===0x0)return _0x25b73c;for(let _0x31e230=_0x25b73c-0x1;_0x31e230>=0x0;_0x31e230--){const _0x2988b5=_0x6cca25[_0x36149d(0x2fe)](_0x4d6bd8,_0x31e230);if(isNumberCell(_0x2988b5)&&!_0x225864){if(_0x31e230===0x0)return 0x0;_0x225864=!0x0;}else{if(_0x225864&&!isNumberCell(_0x2988b5))return _0x31e230+0x1;if(_0x225864&&_0x31e230===0x0)return 0x0;}}return _0x25b73c;}__name(findStartColumn,_0x40106a(0x2ee));function isNumberCell(_0x484bfe){const _0x359df9=_0x40106a;if(_0x484bfe!=null&&_0x484bfe['p']){const _0x548700=_0x484bfe==null?void 0x0:_0x484bfe['p'][_0x359df9(0x3e2)];if(_0x548700==null)return!0x1;const _0x53f8ff=_0x548700[_0x359df9(0x215)],_0x262b37=_0x53f8ff[_0x359df9(0x240)](_0x53f8ff[_0x359df9(0x348)]-0x2,_0x53f8ff[_0x359df9(0x348)])===DEFAULT_EMPTY_DOCUMENT_VALUE?_0x53f8ff[_0x359df9(0x240)](0x0,_0x53f8ff[_0x359df9(0x348)]-0x2):_0x53f8ff;return isRealNum(_0x262b37);}return _0x484bfe&&(_0x484bfe['t']===CellValueType[_0x359df9(0x409)]||getCellValueType(_0x484bfe)===CellValueType[_0x359df9(0x409)]);}__name(isNumberCell,_0x40106a(0x2a7));function isSingleCell(_0x2b746e){const _0x53975f=_0x40106a;return _0x2b746e['startRow']===_0x2b746e['endRow']&&_0x2b746e[_0x53975f(0x28e)]===_0x2b746e[_0x53975f(0x346)];}__name(isSingleCell,_0x40106a(0x352));function isMultiRowsColumnsRange(_0x173834){const _0xe92410=_0x40106a;return _0x173834[_0xe92410(0x277)]!==_0x173834[_0xe92410(0x268)]&&_0x173834[_0xe92410(0x28e)]!==_0x173834[_0xe92410(0x346)];}__name(isMultiRowsColumnsRange,_0x40106a(0x368));const FORMULA_UI_PLUGIN_NAME=_0x40106a(0x20c),MORE_FUNCTIONS_COMPONENT=FORMULA_UI_PLUGIN_NAME+_0x40106a(0x446),MoreFunctionsOperation={'id':'formula-ui.operation.more-functions','type':CommandType[_0x40106a(0x17a)],'handler':__name(async _0x951131=>(_0x951131[_0x40106a(0x424)](ISidebarService)[_0x40106a(0x2c4)]({'header':{'title':_0x40106a(0x369)},'children':{'label':MORE_FUNCTIONS_COMPONENT}}),!0x0),_0x40106a(0x30c))},ReferenceAbsoluteOperation={'id':_0x40106a(0x250),'type':CommandType['OPERATION'],'handler':__name(async _0x46ebd=>!0x0,'handler')},SearchFunctionOperation={'id':_0x40106a(0x33d),'type':CommandType[_0x40106a(0x17a)],'handler':__name(async(_0x26fd32,_0x3fa0eb)=>(_0x26fd32[_0x40106a(0x424)](IFormulaPromptService)['search'](_0x3fa0eb),!0x0),_0x40106a(0x30c))},PLUGIN_CONFIG_KEY_BASE=_0x40106a(0x2e5),defaultPluginBaseConfig={};function whenEditorStandalone(_0x252125){const _0x5a40fe=_0x40106a;return _0x252125[_0x5a40fe(0x39c)](FOCUSING_DOC)&&_0x252125[_0x5a40fe(0x39c)](FOCUSING_UNIVER_EDITOR)&&_0x252125['getContextValue'](FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE);}__name(whenEditorStandalone,_0x40106a(0x33b));function extractFormulaError(_0x1acf50){const _0x5668c2=_0x40106a;return(isFormulaString(_0x1acf50==null?void 0x0:_0x1acf50['f'])||isFormulaId(_0x1acf50==null?void 0x0:_0x1acf50['si']))&&typeof(_0x1acf50==null?void 0x0:_0x1acf50['v'])==_0x5668c2(0x40f)&&ERROR_TYPE_SET[_0x5668c2(0x1b2)](_0x1acf50['v'])?_0x1acf50['v']:null;}__name(extractFormulaError,_0x40106a(0x289));var __defProp$8=Object[_0x40106a(0x353)],__getOwnPropDesc$8=Object[_0x40106a(0x395)],__decorateClass$8=__name((_0x22cb51,_0x3904b0,_0x509dc4,_0x2df333)=>{const _0x3d6ada=_0x40106a;for(var _0x5b9017=_0x2df333>0x1?void 0x0:_0x2df333?__getOwnPropDesc$8(_0x3904b0,_0x509dc4):_0x3904b0,_0x19c83c=_0x22cb51[_0x3d6ada(0x348)]-0x1,_0x38739e;_0x19c83c>=0x0;_0x19c83c--)(_0x38739e=_0x22cb51[_0x19c83c])&&(_0x5b9017=(_0x2df333?_0x38739e(_0x3904b0,_0x509dc4,_0x5b9017):_0x38739e(_0x5b9017))||_0x5b9017);return _0x2df333&&_0x5b9017&&__defProp$8(_0x3904b0,_0x509dc4,_0x5b9017),_0x5b9017;},_0x40106a(0x210)),__decorateParam$8=__name((_0x27c8d6,_0x4e62e1)=>(_0x49214a,_0x2dba35)=>_0x4e62e1(_0x49214a,_0x2dba35,_0x27c8d6),_0x40106a(0x3b1));const ALERT_KEY='SHEET_FORMULA_ALERT',ErrorTypeToMessageMap={[ErrorType[_0x40106a(0x2f0)]]:_0x40106a(0x29f),[ErrorType[_0x40106a(0x256)]]:_0x40106a(0x2ff),[ErrorType[_0x40106a(0x222)]]:_0x40106a(0x16f),[ErrorType['NUM']]:_0x40106a(0x2e0),[ErrorType['NA']]:'na',[ErrorType[_0x40106a(0x1d7)]]:_0x40106a(0x3e6),[ErrorType[_0x40106a(0x391)]]:_0x40106a(0x2f9),[ErrorType['SPILL']]:_0x40106a(0x1de),[ErrorType[_0x40106a(0x236)]]:_0x40106a(0x2e9),[ErrorType['ERROR']]:_0x40106a(0x2f1),[ErrorType[_0x40106a(0x179)]]:_0x40106a(0x2e8),[ErrorType[_0x40106a(0x411)]]:'null'};var _a2;let FormulaAlertRenderController=(_a2=class extends Disposable{constructor(_0x52add0,_0x4562c4,_0x3ba008,_0x16d827,_0x20cf13){const _0x579580=_0x40106a;super(),this['_context']=_0x52add0,this[_0x579580(0x2e1)]=_0x4562c4,this[_0x579580(0x18d)]=_0x3ba008,this['_localeService']=_0x16d827,this[_0x579580(0x3df)]=_0x20cf13,this[_0x579580(0x24a)]();}['_init'](){const _0x6aca7f=_0x40106a;this[_0x6aca7f(0x2f8)](),this[_0x6aca7f(0x364)]();}[_0x40106a(0x2f8)](){const _0x5922fd=_0x40106a;this[_0x5922fd(0x1c2)](this['_hoverManagerService']['currentCell$']['subscribe'](_0x52a1ec=>{const _0x62a686=_0x5922fd;var _0xe111ca;if(_0x52a1ec){const _0x4e2e75=this[_0x62a686(0x270)]['unit'][_0x62a686(0x36b)]();if(!_0x4e2e75)return;const _0x1d0e87=_0x4e2e75[_0x62a686(0x26d)](_0x52a1ec[_0x62a686(0x378)][_0x62a686(0x310)],_0x52a1ec['location'][_0x62a686(0x2b5)]);if(isICellData(_0x1d0e87)){const _0x1c3443=extractFormulaError(_0x1d0e87);if(!_0x1c3443)return;const _0x1d2e01=this[_0x62a686(0x18d)][_0x62a686(0x2fc)]['get'](ALERT_KEY),_0x5d3f24=(_0xe111ca=_0x1d2e01==null?void 0x0:_0x1d2e01['alert'])==null?void 0x0:_0xe111ca[_0x62a686(0x378)];if(_0x5d3f24&&_0x5d3f24[_0x62a686(0x310)]===_0x52a1ec[_0x62a686(0x378)][_0x62a686(0x310)]&&_0x5d3f24[_0x62a686(0x2b5)]===_0x52a1ec[_0x62a686(0x378)][_0x62a686(0x2b5)]&&_0x5d3f24[_0x62a686(0x32a)]===_0x52a1ec[_0x62a686(0x378)][_0x62a686(0x32a)]&&_0x5d3f24['unitId']===_0x52a1ec['location'][_0x62a686(0x172)])return;this[_0x62a686(0x18d)][_0x62a686(0x449)]({'type':CellAlertType['ERROR'],'title':this[_0x62a686(0x38d)]['t'](_0x62a686(0x2a8)),'message':this[_0x62a686(0x38d)]['t']('formula.error.'+ErrorTypeToMessageMap[_0x1c3443]),'location':_0x52a1ec['location'],'width':0xc8,'height':0x4a,'key':ALERT_KEY});return;}}this[_0x62a686(0x18d)][_0x62a686(0x3e5)](ALERT_KEY);}));}[_0x40106a(0x364)](){const _0x35dec3=_0x40106a;this[_0x35dec3(0x1c2)](this[_0x35dec3(0x3df)][_0x35dec3(0x420)][_0x35dec3(0x331)](_0x5e602f=>{const _0x17819b=_0x35dec3;_0x5e602f&&this['_cellAlertManagerService'][_0x17819b(0x3e5)](ALERT_KEY);}));}},__name(_a2,_0x40106a(0x1aa)),_a2);FormulaAlertRenderController=__decorateClass$8([__decorateParam$8(0x1,Inject(HoverManagerService)),__decorateParam$8(0x2,Inject(CellAlertManagerService)),__decorateParam$8(0x3,Inject(LocaleService)),__decorateParam$8(0x4,IZenZoneService)],FormulaAlertRenderController);var __defProp$7=Object['defineProperty'],__getOwnPropDesc$7=Object[_0x40106a(0x395)],__decorateClass$7=__name((_0x382fb3,_0x3d4fa5,_0x21ab48,_0x1977a8)=>{const _0x1f45aa=_0x40106a;for(var _0x58797a=_0x1977a8>0x1?void 0x0:_0x1977a8?__getOwnPropDesc$7(_0x3d4fa5,_0x21ab48):_0x3d4fa5,_0x5911f8=_0x382fb3[_0x1f45aa(0x348)]-0x1,_0x319964;_0x5911f8>=0x0;_0x5911f8--)(_0x319964=_0x382fb3[_0x5911f8])&&(_0x58797a=(_0x1977a8?_0x319964(_0x3d4fa5,_0x21ab48,_0x58797a):_0x319964(_0x58797a))||_0x58797a);return _0x1977a8&&_0x58797a&&__defProp$7(_0x3d4fa5,_0x21ab48,_0x58797a),_0x58797a;},'__decorateClass$7'),__decorateParam$7=__name((_0x116929,_0x58b08f)=>(_0x49fcb0,_0x1596d5)=>_0x58b08f(_0x49fcb0,_0x1596d5,_0x116929),_0x40106a(0x40d)),_a3;let FormulaAutoFillController=(_a3=class extends Disposable{constructor(_0x2adf9f,_0x5626d6){const _0xe7fe3a=_0x40106a;super(),this[_0xe7fe3a(0x2a5)]=_0x2adf9f,this[_0xe7fe3a(0x444)]=_0x5626d6,this[_0xe7fe3a(0x180)]();}[_0x40106a(0x180)](){const _0x26bdc5=_0x40106a,_0x19b803={'type':DATA_TYPE['FORMULA'],'priority':0x3e9,'match':__name(_0x3203da=>isFormulaString(_0x3203da==null?void 0x0:_0x3203da['f'])||isFormulaId(_0x3203da==null?void 0x0:_0x3203da['si']),'match'),'isContinue':__name((_0x282f8f,_0x17ef78)=>_0x282f8f[_0x26bdc5(0x39d)]===DATA_TYPE[_0x26bdc5(0x3e0)],_0x26bdc5(0x37e)),'applyFunctions':{[APPLY_TYPE[_0x26bdc5(0x2fb)]]:(_0xd8afe2,_0x123d43,_0x991f82,_0x1fb75b)=>{const _0x1c103a=_0x26bdc5,{data:_0x24cf1d,index:_0x2d193e}=_0xd8afe2;return this[_0x1c103a(0x2c6)](_0x24cf1d,_0x123d43,_0x991f82,_0x2d193e,_0x1fb75b);}}};this[_0x26bdc5(0x2a5)][_0x26bdc5(0x189)](_0x19b803);}['_fillCopyFormula'](_0x2960d9,_0x48cdd3,_0x59560c,_0x44d992,_0x4ea642){const _0x290dcc=_0x40106a;var _0x5044fe,_0x22de90;const _0x1951af=getDataLength(_0x4ea642),_0x18d5cb=[],_0x4f898a=new Map();for(let _0x260e89=0x1;_0x260e89<=_0x48cdd3;_0x260e89++){const _0x37dd20=(_0x260e89-0x1)%_0x2960d9[_0x290dcc(0x348)],_0x5cc922=Tools[_0x290dcc(0x42b)](_0x2960d9[_0x37dd20]);if(_0x5cc922){const _0x60b9a2=((_0x5044fe=_0x2960d9[_0x37dd20])==null?void 0x0:_0x5044fe['f'])||'',_0x516b86=((_0x22de90=_0x2960d9[_0x37dd20])==null?void 0x0:_0x22de90['si'])||'',_0x24adec=isFormulaString(_0x60b9a2);if(isFormulaId(_0x516b86))_0x5cc922['si']=_0x516b86,_0x5cc922['f']=null,_0x5cc922['v']=null,_0x5cc922['p']=null,_0x5cc922['t']=null,_0x59560c===Direction[_0x290dcc(0x326)]||_0x59560c===Direction[_0x290dcc(0x246)]?_0x18d5cb[_0x290dcc(0x443)](_0x5cc922):_0x18d5cb[_0x290dcc(0x3e8)](_0x5cc922);else{if(_0x24adec){let _0x2a5092=_0x4f898a[_0x290dcc(0x424)](_0x37dd20);if(_0x2a5092)_0x5cc922['si']=_0x2a5092,_0x5cc922['f']=null,_0x5cc922['v']=null,_0x5cc922['p']=null,_0x5cc922['t']=null;else{_0x2a5092=Tools[_0x290dcc(0x298)](0x6),_0x4f898a[_0x290dcc(0x3f4)](_0x37dd20,_0x2a5092);const {offsetX:_0x2decde,offsetY:_0x47667f}=directionToOffset(_0x1951af,_0x59560c),_0x9d2425=this['_lexerTreeBuilder'][_0x290dcc(0x17b)](_0x60b9a2,_0x2decde,_0x47667f);_0x5cc922['si']=_0x2a5092,_0x5cc922['f']=_0x9d2425,_0x5cc922['v']=null,_0x5cc922['p']=null,_0x5cc922['t']=null;}_0x59560c===Direction[_0x290dcc(0x326)]||_0x59560c===Direction[_0x290dcc(0x246)]?_0x18d5cb[_0x290dcc(0x443)](_0x5cc922):_0x18d5cb[_0x290dcc(0x3e8)](_0x5cc922);}}}}return _0x18d5cb;}},__name(_a3,_0x40106a(0x43f)),_a3);function _0xa8a2(_0x3af9ea,_0x43bf12){const _0x3940c4=_0x3940();return _0xa8a2=function(_0xa8a265,_0xe0c9fe){_0xa8a265=_0xa8a265-0x168;let _0x2f0cac=_0x3940c4[_0xa8a265];return _0x2f0cac;},_0xa8a2(_0x3af9ea,_0x43bf12);}FormulaAutoFillController=__decorateClass$7([__decorateParam$7(0x0,IAutoFillService),__decorateParam$7(0x1,Inject(LexerTreeBuilder))],FormulaAutoFillController);function directionToOffset(_0x4dfcba,_0x271402){const _0x255e04=_0x40106a;let _0x52322a=0x0,_0x2e3059=0x0;switch(_0x271402){case Direction['UP']:_0x2e3059=-_0x4dfcba;break;case Direction['RIGHT']:_0x52322a=_0x4dfcba;break;case Direction['DOWN']:_0x2e3059=_0x4dfcba;break;case Direction[_0x255e04(0x3a6)]:_0x52322a=-_0x4dfcba;break;}return{'offsetX':_0x52322a,'offsetY':_0x2e3059};}__name(directionToOffset,_0x40106a(0x194));function getDataLength(_0x15a9f3){const _0x1799cd=_0x40106a;let _0x1f9bcb=0x0;for(const _0x428e96 in _0x15a9f3)_0x15a9f3[_0x428e96][_0x1799cd(0x3a5)](_0x14dfe4=>{const _0x5ea94c=_0x1799cd;_0x1f9bcb+=_0x14dfe4[_0x5ea94c(0x2ab)][_0x5ea94c(0x348)];});return _0x1f9bcb;}__name(getDataLength,_0x40106a(0x269));var __defProp$6=Object[_0x40106a(0x353)],__getOwnPropDesc$6=Object[_0x40106a(0x395)],__decorateClass$6=__name((_0x2d2f5b,_0x23836d,_0x3c506b,_0x273f52)=>{const _0x1d7e9d=_0x40106a;for(var _0xda021f=_0x273f52>0x1?void 0x0:_0x273f52?__getOwnPropDesc$6(_0x23836d,_0x3c506b):_0x23836d,_0x3c0416=_0x2d2f5b[_0x1d7e9d(0x348)]-0x1,_0x272f52;_0x3c0416>=0x0;_0x3c0416--)(_0x272f52=_0x2d2f5b[_0x3c0416])&&(_0xda021f=(_0x273f52?_0x272f52(_0x23836d,_0x3c506b,_0xda021f):_0x272f52(_0xda021f))||_0xda021f);return _0x273f52&&_0xda021f&&__defProp$6(_0x23836d,_0x3c506b,_0xda021f),_0xda021f;},_0x40106a(0x347)),__decorateParam$6=__name((_0xe111bd,_0x287a04)=>(_0x41574d,_0x497bc2)=>_0x287a04(_0x41574d,_0x497bc2,_0xe111bd),_0x40106a(0x2d8));const DEFAULT_PASTE_FORMULA=_0x40106a(0x3b8);var _a4;let FormulaClipboardController=(_a4=class extends Disposable{constructor(_0x4bbf1e,_0x46a513,_0x30d58c,_0x24b25a,_0x147b57){const _0x29698c=_0x40106a;super(),this[_0x29698c(0x3cd)]=_0x4bbf1e,this[_0x29698c(0x444)]=_0x46a513,this['_sheetClipboardService']=_0x30d58c,this[_0x29698c(0x313)]=_0x24b25a,this['_formulaDataModel']=_0x147b57,this[_0x29698c(0x220)]();}[_0x40106a(0x220)](){const _0x1924eb=_0x40106a;this[_0x1924eb(0x1b5)]();}[_0x40106a(0x1b5)](){const _0xc81d7e=_0x40106a;this[_0xc81d7e(0x1c2)](this[_0xc81d7e(0x31d)]['addClipboardHook'](this[_0xc81d7e(0x27f)]())),this[_0xc81d7e(0x1c2)](this['_sheetClipboardService']['addClipboardHook'](this[_0xc81d7e(0x280)]()));}[_0x40106a(0x27f)](){const _0x4da4d4=_0x40106a;return{'id':PREDEFINED_HOOK_NAME[_0x4da4d4(0x255)],'priority':0xa,'specialPasteInfo':{'label':_0x4da4d4(0x2d5)},'onPasteCells':__name((_0x17cace,_0x5c79ff,_0x4bec97,_0xf1502b)=>this['_onPasteCells'](_0x17cace,_0x5c79ff,_0x4bec97,_0xf1502b,!0x0),'onPasteCells')};}['_pasteWithFormulaHook'](){const _0x560fe2=_0x40106a;return{'id':DEFAULT_PASTE_FORMULA,'priority':0xa,'onPasteCells':__name((_0x571b7f,_0x166665,_0x577098,_0x1e8ac3)=>this[_0x560fe2(0x244)](_0x571b7f,_0x166665,_0x577098,_0x1e8ac3,!0x1),_0x560fe2(0x29c))};}[_0x40106a(0x244)](_0x1ef653,_0x53ae68,_0x5e6f1a,_0x4d6ecd,_0x27e45c){const _0x6332de=_0x40106a;var _0x557d4c;if([PREDEFINED_HOOK_NAME[_0x6332de(0x284)],PREDEFINED_HOOK_NAME['SPECIAL_PASTE_COL_WIDTH']]['includes'](_0x4d6ecd[_0x6332de(0x414)]))return{'undos':[],'redos':[]};const _0x10fd87=this[_0x6332de(0x3cd)]['getCurrentUnitForType'](UniverInstanceType['UNIVER_SHEET']),_0x49a7cd=_0x53ae68[_0x6332de(0x172)]||_0x10fd87[_0x6332de(0x3d9)](),_0x3eeef5=_0x53ae68[_0x6332de(0x32a)]||((_0x557d4c=_0x10fd87[_0x6332de(0x36b)]())==null?void 0x0:_0x557d4c[_0x6332de(0x3a9)]());if(!_0x49a7cd||!_0x3eeef5)return{'undos':[],'redos':[]};const _0x2279aa=_0x53ae68['range'],_0xf2631=_0x5e6f1a,_0x591318={'copyType':_0x4d6ecd[_0x6332de(0x1a9)]||COPY_TYPE[_0x6332de(0x2fb)],'copyRange':_0x1ef653==null?void 0x0:_0x1ef653[_0x6332de(0x2ec)],'pasteType':_0x4d6ecd['pasteType']};return this[_0x6332de(0x313)][_0x6332de(0x276)](_0x278c0a=>getSetCellFormulaMutations(_0x49a7cd,_0x3eeef5,_0x2279aa,_0xf2631,_0x278c0a,_0x591318,this[_0x6332de(0x444)],this[_0x6332de(0x227)],_0x27e45c,_0x1ef653));}},__name(_a4,_0x40106a(0x403)),_a4);FormulaClipboardController=__decorateClass$6([__decorateParam$6(0x0,IUniverInstanceService),__decorateParam$6(0x1,Inject(LexerTreeBuilder)),__decorateParam$6(0x2,ISheetClipboardService),__decorateParam$6(0x3,Inject(Injector)),__decorateParam$6(0x4,Inject(FormulaDataModel))],FormulaClipboardController);function getSetCellFormulaMutations(_0x3926a4,_0x4d419e,_0x1fecf0,_0x2b0286,_0x90d817,_0x19c4b1,_0x3b93c5,_0xa6c094,_0x145bd6=!0x1,_0x5a0e59){const _0x8c220f=_0x40106a,_0x5c5776=[],_0x2b8536=[],_0x59346a=getValueMatrix(_0x3926a4,_0x4d419e,_0x1fecf0,_0x2b0286,_0x19c4b1,_0x3b93c5,_0xa6c094,_0x5a0e59),_0x5a566b={'unitId':_0x3926a4,'subUnitId':_0x4d419e,'cellValue':_0x59346a[_0x8c220f(0x18b)]()};_0x5c5776['push']({'id':SetRangeValuesMutation['id'],'params':_0x5a566b});const _0x13df41=SetRangeValuesUndoMutationFactory(_0x90d817,_0x5a566b);return _0x2b8536[_0x8c220f(0x443)]({'id':SetRangeValuesMutation['id'],'params':_0x13df41}),{'undos':_0x2b8536,'redos':_0x5c5776};}__name(getSetCellFormulaMutations,_0x40106a(0x315));function getValueMatrix(_0x119abc,_0x4bbd51,_0x257f55,_0x295f56,_0x47ca78,_0x39c4dc,_0x44abb7,_0x504ccf){const _0x56554a=_0x40106a;return _0x504ccf?_0x47ca78[_0x56554a(0x414)]===PREDEFINED_HOOK_NAME[_0x56554a(0x293)]?getSpecialPasteValueValueMatrix(_0x119abc,_0x4bbd51,_0x257f55,_0x295f56,_0x44abb7,_0x504ccf):_0x47ca78[_0x56554a(0x414)]===PREDEFINED_HOOK_NAME[_0x56554a(0x255)]?getSpecialPasteFormulaValueMatrix(_0x119abc,_0x4bbd51,_0x257f55,_0x295f56,_0x39c4dc,_0x44abb7,_0x504ccf):getDefaultPasteValueMatrix(_0x119abc,_0x4bbd51,_0x257f55,_0x295f56,_0x39c4dc,_0x44abb7,_0x504ccf):getValueMatrixOfPasteFromIsNull(_0x119abc,_0x4bbd51,_0x257f55,_0x295f56,_0x44abb7);}__name(getValueMatrix,'getValueMatrix');function getValueMatrixOfPasteFromIsNull(_0x55514c,_0x5877e0,_0x59e76c,_0x2064ce,_0x1058ae){const _0xc1d782=_0x40106a;var _0xa2805c,_0x43dab2;const _0x217594=new ObjectMatrix(),_0xf8b8e2=(_0x43dab2=(_0xa2805c=_0x1058ae[_0xc1d782(0x2e3)]())==null?void 0x0:_0xa2805c[_0x55514c])==null?void 0x0:_0x43dab2[_0x5877e0];return _0x2064ce[_0xc1d782(0x1e7)]((_0x18e8d4,_0x134884,_0x4de20a)=>{const _0x4e0357=_0xc1d782;var _0xf335ed;const _0x14795c=_0x59e76c['rows'][_0x18e8d4],_0x495720=_0x59e76c[_0x4e0357(0x2f2)][_0x134884],_0x47c90c={};isFormulaString(_0x4de20a['v'])?(_0x47c90c['v']=null,_0x47c90c['f']=''+_0x4de20a['v'],_0x47c90c['si']=null,_0x47c90c['p']=null,_0x217594['setValue'](_0x14795c,_0x495720,_0x47c90c)):(_0xf335ed=_0xf8b8e2==null?void 0x0:_0xf8b8e2[_0x14795c])!=null&&_0xf335ed[_0x495720]&&(_0x47c90c['v']=_0x4de20a['v'],_0x47c90c['f']=null,_0x47c90c['si']=null,_0x47c90c['p']=null,_0x217594[_0x4e0357(0x1c9)](_0x14795c,_0x495720,_0x47c90c));}),_0x217594;}__name(getValueMatrixOfPasteFromIsNull,_0x40106a(0x3f6));function getSpecialPasteValueValueMatrix(_0x28ef84,_0x85f1b8,_0x5f0b98,_0x559559,_0x599da0,_0x974525){const _0x8b0ed7=_0x40106a;var _0x38fe46,_0x363aaf,_0x176419,_0x172cc9;const _0xae15bb=new ObjectMatrix(),_0x3d37d0=(_0x363aaf=(_0x38fe46=_0x599da0[_0x8b0ed7(0x2a3)]())==null?void 0x0:_0x38fe46[_0x974525[_0x8b0ed7(0x172)]])==null?void 0x0:_0x363aaf[_0x974525[_0x8b0ed7(0x32a)]],_0x527fce=(_0x172cc9=(_0x176419=_0x599da0[_0x8b0ed7(0x2e3)]())==null?void 0x0:_0x176419[_0x28ef84])==null?void 0x0:_0x172cc9[_0x85f1b8];return _0x559559[_0x8b0ed7(0x1e7)]((_0x4ae376,_0x287dc3,_0x10afd5)=>{const _0x1d6379=_0x8b0ed7;var _0x4ba8b6,_0x17978d;const _0x3e5d05=_0x974525[_0x1d6379(0x2ec)][_0x1d6379(0x23d)][_0x4ae376%_0x974525['range']['rows'][_0x1d6379(0x348)]],_0x533fd2=_0x974525[_0x1d6379(0x2ec)]['cols'][_0x287dc3%_0x974525[_0x1d6379(0x2ec)][_0x1d6379(0x2f2)][_0x1d6379(0x348)]],_0x1417f9=_0x5f0b98['rows'][_0x4ae376],_0x2519be=_0x5f0b98[_0x1d6379(0x2f2)][_0x287dc3],_0x3575ba={};if(isFormulaString(_0x10afd5['f'])||isFormulaId(_0x10afd5['si']))_0x3575ba['v']=_0x10afd5['v'],_0x3575ba['f']=null,_0x3575ba['si']=null,_0x3575ba['p']=null,_0xae15bb[_0x1d6379(0x1c9)](_0x1417f9,_0x2519be,_0x3575ba);else{if((_0x4ba8b6=_0x3d37d0==null?void 0x0:_0x3d37d0[_0x3e5d05])!=null&&_0x4ba8b6[_0x533fd2]){const _0x165182=_0x3d37d0[_0x3e5d05][_0x533fd2];_0x3575ba['v']=_0x165182['v'],_0x3575ba['f']=null,_0x3575ba['si']=null,_0x3575ba['p']=null,_0xae15bb[_0x1d6379(0x1c9)](_0x1417f9,_0x2519be,_0x3575ba);}else{if((_0x17978d=_0x527fce==null?void 0x0:_0x527fce[_0x1417f9])!=null&&_0x17978d[_0x2519be]){if(_0x3575ba['v']=_0x10afd5['v'],_0x3575ba['f']=null,_0x3575ba['si']=null,_0x3575ba['p']=null,_0x10afd5['p']){const _0x5919e4=getCellRichText(_0x10afd5);_0x5919e4&&(_0x3575ba['v']=_0x5919e4);}_0xae15bb['setValue'](_0x1417f9,_0x2519be,_0x3575ba);}}}}),_0xae15bb;}__name(getSpecialPasteValueValueMatrix,_0x40106a(0x44c));function getSpecialPasteFormulaValueMatrix(_0x683aec,_0x4d7471,_0x429856,_0x224731,_0x14596d,_0xf84636,_0x77d06){const _0x4a27b5=new ObjectMatrix(),_0xe175e=new Map();return _0x224731['forValue']((_0x388e19,_0x43f688,_0x1c7c25)=>{const _0x5bfce8=_0xa8a2,_0x29fc0f=_0x429856[_0x5bfce8(0x23d)][_0x388e19],_0x106d0a=_0x429856[_0x5bfce8(0x2f2)][_0x43f688],_0x28eb87={};if(isFormulaId(_0x1c7c25['si'])){if(_0x77d06[_0x5bfce8(0x172)]!==_0x683aec||_0x77d06[_0x5bfce8(0x32a)]!==_0x4d7471){const _0x2c9bc8=_0xf84636[_0x5bfce8(0x2cb)](_0x77d06[_0x5bfce8(0x2ec)][_0x5bfce8(0x23d)][_0x388e19%_0x77d06['range'][_0x5bfce8(0x23d)][_0x5bfce8(0x348)]],_0x77d06['range'][_0x5bfce8(0x2f2)][_0x43f688%_0x77d06[_0x5bfce8(0x2ec)][_0x5bfce8(0x2f2)][_0x5bfce8(0x348)]],_0x77d06['subUnitId'],_0x77d06['unitId']),_0x5b5d08=_0x429856[_0x5bfce8(0x2f2)][_0x43f688]-_0x77d06[_0x5bfce8(0x2ec)][_0x5bfce8(0x2f2)][_0x43f688%_0x77d06[_0x5bfce8(0x2ec)]['cols'][_0x5bfce8(0x348)]],_0x41fcc6=_0x429856[_0x5bfce8(0x23d)][_0x388e19]-_0x77d06[_0x5bfce8(0x2ec)][_0x5bfce8(0x23d)][_0x388e19%_0x77d06[_0x5bfce8(0x2ec)][_0x5bfce8(0x23d)][_0x5bfce8(0x348)]],_0x1192a2=_0x14596d['moveFormulaRefOffset'](_0x2c9bc8||'',_0x5b5d08,_0x41fcc6);_0x28eb87['si']=null,_0x28eb87['f']=_0x1192a2;}else _0x28eb87['si']=_0x1c7c25['si'],_0x28eb87['f']=null;_0x28eb87['v']=null,_0x28eb87['p']=null,_0x4a27b5[_0x5bfce8(0x1c9)](_0x29fc0f,_0x106d0a,_0x28eb87);}else{if(isFormulaString(_0x1c7c25['f'])){const _0x52c372=_0x388e19%_0x77d06['range']['rows'][_0x5bfce8(0x348)]+'_'+_0x43f688%_0x77d06['range'][_0x5bfce8(0x2f2)][_0x5bfce8(0x348)];let _0xc5299f=_0xe175e['get'](_0x52c372);if(_0xc5299f)_0x28eb87['si']=_0xc5299f,_0x28eb87['f']=null;else{_0xc5299f=Tools[_0x5bfce8(0x298)](0x6),_0xe175e['set'](_0x52c372,_0xc5299f);const _0x457976=_0x429856[_0x5bfce8(0x2f2)][_0x43f688]-_0x77d06[_0x5bfce8(0x2ec)][_0x5bfce8(0x2f2)][_0x43f688%_0x77d06[_0x5bfce8(0x2ec)][_0x5bfce8(0x2f2)][_0x5bfce8(0x348)]],_0x125aa0=_0x429856['rows'][_0x388e19]-_0x77d06[_0x5bfce8(0x2ec)][_0x5bfce8(0x23d)][_0x388e19%_0x77d06['range'][_0x5bfce8(0x23d)][_0x5bfce8(0x348)]],_0x485583=_0x14596d['moveFormulaRefOffset'](_0x1c7c25['f']||'',_0x457976,_0x125aa0);_0x28eb87['si']=_0xc5299f,_0x28eb87['f']=_0x485583;}_0x28eb87['v']=null,_0x28eb87['p']=null,_0x4a27b5[_0x5bfce8(0x1c9)](_0x29fc0f,_0x106d0a,_0x28eb87);}else{if(_0x28eb87['v']=_0x1c7c25['v'],_0x28eb87['f']=null,_0x28eb87['si']=null,_0x28eb87['p']=null,_0x1c7c25['p']){const _0x151004=getCellRichText(_0x1c7c25);_0x151004&&(_0x28eb87['v']=_0x151004);}_0x4a27b5[_0x5bfce8(0x1c9)](_0x29fc0f,_0x106d0a,_0x28eb87);}}}),_0x4a27b5;}__name(getSpecialPasteFormulaValueMatrix,'getSpecialPasteFormulaValueMatrix');function getDefaultPasteValueMatrix(_0x1b19f4,_0x14877f,_0x28580a,_0x346d72,_0x3665a6,_0x26b0ff,_0x3a43bb){const _0x1276ee=_0x40106a;var _0x2dcdd3,_0x16a1bc;const _0x90bac9=new ObjectMatrix(),_0x2cb178=new Map(),_0x98394c=(_0x16a1bc=(_0x2dcdd3=_0x26b0ff['getFormulaData']())==null?void 0x0:_0x2dcdd3[_0x1b19f4])==null?void 0x0:_0x16a1bc[_0x14877f];return _0x346d72[_0x1276ee(0x1e7)]((_0x96ac7a,_0x5e9aa1,_0x1914c3)=>{const _0x4bd6ef=_0x1276ee;var _0x508de3;const _0x5193e=_0x28580a[_0x4bd6ef(0x23d)][_0x96ac7a],_0x3d52c0=_0x28580a[_0x4bd6ef(0x2f2)][_0x5e9aa1],_0x4b023e={};if(isFormulaId(_0x1914c3['si'])){if(_0x3a43bb[_0x4bd6ef(0x172)]!==_0x1b19f4||_0x3a43bb['subUnitId']!==_0x14877f){const _0x289b47=_0x26b0ff[_0x4bd6ef(0x2cb)](_0x3a43bb[_0x4bd6ef(0x2ec)][_0x4bd6ef(0x23d)][_0x96ac7a%_0x3a43bb['range']['rows'][_0x4bd6ef(0x348)]],_0x3a43bb[_0x4bd6ef(0x2ec)][_0x4bd6ef(0x2f2)][_0x5e9aa1%_0x3a43bb[_0x4bd6ef(0x2ec)][_0x4bd6ef(0x2f2)]['length']],_0x3a43bb[_0x4bd6ef(0x32a)],_0x3a43bb[_0x4bd6ef(0x172)]),_0x45fed9=_0x28580a[_0x4bd6ef(0x2f2)][_0x5e9aa1]-_0x3a43bb[_0x4bd6ef(0x2ec)][_0x4bd6ef(0x2f2)][_0x5e9aa1%_0x3a43bb[_0x4bd6ef(0x2ec)][_0x4bd6ef(0x2f2)][_0x4bd6ef(0x348)]],_0x5d4e0d=_0x28580a[_0x4bd6ef(0x23d)][_0x96ac7a]-_0x3a43bb[_0x4bd6ef(0x2ec)][_0x4bd6ef(0x23d)][_0x96ac7a%_0x3a43bb[_0x4bd6ef(0x2ec)][_0x4bd6ef(0x23d)][_0x4bd6ef(0x348)]],_0x4b7fb7=_0x3665a6[_0x4bd6ef(0x17b)](_0x289b47||'',_0x45fed9,_0x5d4e0d);_0x4b023e['si']=null,_0x4b023e['f']=_0x4b7fb7;}else _0x4b023e['si']=_0x1914c3['si'],_0x4b023e['f']=null;_0x4b023e['v']=null,_0x4b023e['p']=null,_0x90bac9[_0x4bd6ef(0x1c9)](_0x5193e,_0x3d52c0,_0x4b023e);}else{if(isFormulaString(_0x1914c3['f'])){const _0x43e82c=_0x96ac7a%_0x3a43bb[_0x4bd6ef(0x2ec)][_0x4bd6ef(0x23d)][_0x4bd6ef(0x348)]+'_'+_0x5e9aa1%_0x3a43bb['range'][_0x4bd6ef(0x2f2)][_0x4bd6ef(0x348)];let _0x114487=_0x2cb178[_0x4bd6ef(0x424)](_0x43e82c);if(_0x114487)_0x4b023e['si']=_0x114487,_0x4b023e['f']=null;else{_0x114487=Tools[_0x4bd6ef(0x298)](0x6),_0x2cb178[_0x4bd6ef(0x3f4)](_0x43e82c,_0x114487);const _0x314824=_0x28580a['cols'][_0x5e9aa1]-_0x3a43bb[_0x4bd6ef(0x2ec)][_0x4bd6ef(0x2f2)][_0x5e9aa1%_0x3a43bb[_0x4bd6ef(0x2ec)][_0x4bd6ef(0x2f2)][_0x4bd6ef(0x348)]],_0xf78044=_0x28580a[_0x4bd6ef(0x23d)][_0x96ac7a]-_0x3a43bb[_0x4bd6ef(0x2ec)][_0x4bd6ef(0x23d)][_0x96ac7a%_0x3a43bb[_0x4bd6ef(0x2ec)][_0x4bd6ef(0x23d)][_0x4bd6ef(0x348)]],_0x215bd3=_0x3665a6['moveFormulaRefOffset'](_0x1914c3['f']||'',_0x314824,_0xf78044);_0x4b023e['si']=_0x114487,_0x4b023e['f']=_0x215bd3;}_0x4b023e['v']=null,_0x4b023e['p']=null,_0x90bac9[_0x4bd6ef(0x1c9)](_0x5193e,_0x3d52c0,_0x4b023e);}else(_0x508de3=_0x98394c==null?void 0x0:_0x98394c[_0x5193e])!=null&&_0x508de3[_0x3d52c0]&&(_0x4b023e['v']=_0x1914c3['v'],_0x4b023e['f']=null,_0x4b023e['si']=null,_0x4b023e['p']=_0x1914c3['p'],_0x90bac9[_0x4bd6ef(0x1c9)](_0x5193e,_0x3d52c0,_0x4b023e));}}),_0x90bac9;}__name(getDefaultPasteValueMatrix,_0x40106a(0x40a));function getCellRichText(_0x147ae5){const _0x4e595d=_0x40106a;if(_0x147ae5!=null&&_0x147ae5['p']){const _0x5cb062=_0x147ae5==null?void 0x0:_0x147ae5['p'][_0x4e595d(0x3e2)];if(_0x5cb062==null)return;const _0x4cd86b=_0x5cb062[_0x4e595d(0x215)];return _0x4cd86b[_0x4e595d(0x240)](_0x4cd86b[_0x4e595d(0x348)]-0x2,_0x4cd86b[_0x4e595d(0x348)])===DEFAULT_EMPTY_DOCUMENT_VALUE?_0x4cd86b['substring'](0x0,_0x4cd86b[_0x4e595d(0x348)]-0x2):_0x4cd86b;}}__name(getCellRichText,_0x40106a(0x41f));var __defProp$5=Object['defineProperty'],__getOwnPropDesc$5=Object[_0x40106a(0x395)],__decorateClass$5=__name((_0x1601bf,_0x222417,_0x427d45,_0x40a99f)=>{const _0x23bda6=_0x40106a;for(var _0xfd6ccd=_0x40a99f>0x1?void 0x0:_0x40a99f?__getOwnPropDesc$5(_0x222417,_0x427d45):_0x222417,_0x52a882=_0x1601bf[_0x23bda6(0x348)]-0x1,_0x26ec67;_0x52a882>=0x0;_0x52a882--)(_0x26ec67=_0x1601bf[_0x52a882])&&(_0xfd6ccd=(_0x40a99f?_0x26ec67(_0x222417,_0x427d45,_0xfd6ccd):_0x26ec67(_0xfd6ccd))||_0xfd6ccd);return _0x40a99f&&_0xfd6ccd&&__defProp$5(_0x222417,_0x427d45,_0xfd6ccd),_0xfd6ccd;},'__decorateClass$5'),__decorateParam$5=__name((_0x617094,_0x1f0f44)=>(_0x467b4c,_0x3d40df)=>_0x1f0f44(_0x467b4c,_0x3d40df,_0x617094),_0x40106a(0x43c)),_a5;let FormulaEditorShowController=(_a5=class extends Disposable{constructor(_0x8c1843,_0x3c60f6,_0x30f743,_0xfe9d34,_0x7dc844,_0x161cca,_0x1bb7ac,_0x57379b){const _0x38d831=_0x40106a;super(),__publicField(this,'_previousShape'),__publicField(this,_0x38d831(0x1a8)),(this[_0x38d831(0x270)]=_0x8c1843,this['_editorBridgeService']=_0x3c60f6,this[_0x38d831(0x227)]=_0x30f743,this['_themeService']=_0xfe9d34,this[_0x38d831(0x181)]=_0x7dc844,this['_sheetSkeletonManagerService']=_0x161cca,this[_0x38d831(0x34e)]=_0x1bb7ac,this[_0x38d831(0x1b8)]=_0x57379b,this[_0x38d831(0x271)](),this[_0x38d831(0x1a3)](),this[_0x38d831(0x1f6)]());}[_0x40106a(0x271)](){const _0x23315f=_0x40106a;this['disposeWithMe'](this[_0x23315f(0x223)][_0x23315f(0x2ba)][_0x23315f(0x331)](_0x309c87=>{const _0x41d648=_0x23315f;var _0x33b46f,_0x271123;if(_0x309c87==null)this[_0x41d648(0x1b8)]['debug'](_0x41d648(0x2b9));else{const {skeleton:_0x2ffb91}=_0x309c87,_0x36179d=(_0x271123=(_0x33b46f=this['_skeleton'])==null?void 0x0:_0x33b46f['worksheet'])==null?void 0x0:_0x271123[_0x41d648(0x3a9)]();if(this[_0x41d648(0x421)](_0x2ffb91),_0x36179d!==_0x2ffb91[_0x41d648(0x1a6)][_0x41d648(0x3a9)]())this[_0x41d648(0x426)]();else{const {unitId:_0x24c50b,sheetId:_0x24300d}=_0x309c87;this[_0x41d648(0x267)](_0x24c50b,_0x24300d);}}}));}[_0x40106a(0x421)](_0x30e393){const _0x423e4b=_0x40106a;this[_0x423e4b(0x1a8)]=_0x30e393;}[_0x40106a(0x1a3)](){const _0x4cdf2c=_0x40106a;this['disposeWithMe'](toDisposable(this['_editorBridgeService'][_0x4cdf2c(0x393)]['intercept'](this[_0x4cdf2c(0x32b)][_0x4cdf2c(0x393)][_0x4cdf2c(0x381)]()[_0x4cdf2c(0x211)],{'handler':__name((_0x41310a,_0x44e475,_0x1c2882)=>{const _0x46dacb=_0x4cdf2c;var _0x44664d,_0x1c23f2,_0x482594,_0x184f14;const {row:_0x40c084,col:_0x4f88ee,unitId:_0x3eb6ae,subUnitId:_0x578268,worksheet:_0x58cb47}=_0x44e475,_0x1a1a0a=this[_0x46dacb(0x227)][_0x46dacb(0x34b)](),_0x327cf0=this[_0x46dacb(0x227)][_0x46dacb(0x2a3)]();if(this[_0x46dacb(0x426)](),_0x41310a==null)return _0x1c2882(_0x41310a);let _0x361f68=null;const _0x40ea6f=this[_0x46dacb(0x227)][_0x46dacb(0x2cb)](_0x40c084,_0x4f88ee,_0x578268,_0x3eb6ae);if(_0x40ea6f!==null&&(_0x361f68={'f':_0x40ea6f}),_0x41310a['v']!=null&&_0x41310a['v']!==''&&((_0x482594=(_0x1c23f2=(_0x44664d=_0x327cf0[_0x3eb6ae])==null?void 0x0:_0x44664d[_0x578268])==null?void 0x0:_0x1c23f2[_0x40c084])==null?void 0x0:_0x482594[_0x4f88ee])==null)return _0x361f68?{..._0x41310a,..._0x361f68}:_0x1c2882(_0x41310a);const _0xb2f06e=(_0x184f14=_0x1a1a0a==null?void 0x0:_0x1a1a0a[_0x3eb6ae])==null?void 0x0:_0x184f14[_0x578268];return _0xb2f06e!=null&&(_0x361f68=this[_0x46dacb(0x37a)](_0xb2f06e,_0x40c084,_0x4f88ee,_0x3eb6ae,_0x578268,_0x58cb47,_0x361f68)),_0x361f68?{..._0x41310a,..._0x361f68}:_0x1c2882(_0x41310a);},_0x4cdf2c(0x30c))})));}[_0x40106a(0x1f6)](){const _0x19acc9=_0x40106a;this['disposeWithMe'](this[_0x19acc9(0x34e)][_0x19acc9(0x245)]((_0x9768a5,_0x495cc8)=>{const _0x18ff15=_0x19acc9;(_0x9768a5['id']===SetFormulaCalculationResultMutation['id']||_0x9768a5['id']===SetArrayFormulaDataMutation['id']&&_0x495cc8&&_0x495cc8[_0x18ff15(0x3ed)])&&this[_0x18ff15(0x426)]();})),this[_0x19acc9(0x1c2)](this['_commandService'][_0x19acc9(0x24b)](_0x5f57f3=>{SetWorksheetRowAutoHeightMutation['id']===_0x5f57f3['id']&&requestIdleCallback(()=>{const _0x3692b5=_0xa8a2,_0x347d71=_0x5f57f3[_0x3692b5(0x2d0)],{unitId:_0x559746,subUnitId:_0x3f1e29,rowsAutoHeightInfo:_0x40ec29}=_0x347d71;this[_0x3692b5(0x249)](_0x559746,_0x3f1e29,_0x40ec29);});}));}['_displayArrayFormulaRangeShape'](_0x40de8a,_0x4199bd,_0x41cd43,_0x3bd0f0,_0x2a6b7c,_0x19b28c,_0x4d6c75){const _0x48f14d=_0x40106a;return new ObjectMatrix(_0x40de8a)[_0x48f14d(0x1e7)]((_0x57e404,_0x5b5cdc,_0x45f33e)=>{const _0x7f849f=_0x48f14d;if(_0x45f33e==null)return!0x0;const {startRow:_0xefd46b,startColumn:_0x37d07c,endRow:_0x5296cc,endColumn:_0x674ca2}=_0x45f33e;if(_0x57e404===_0x4199bd&&_0x5b5cdc===_0x41cd43)return this[_0x7f849f(0x242)](_0x45f33e,_0x3bd0f0),!0x1;if(_0x4199bd>=_0xefd46b&&_0x4199bd<=_0x5296cc&&_0x41cd43>=_0x37d07c&&_0x41cd43<=_0x674ca2){const _0x1f8b44=_0x19b28c[_0x7f849f(0x26d)](_0xefd46b,_0x37d07c);if((_0x1f8b44==null?void 0x0:_0x1f8b44['v'])===ErrorType['SPILL'])return;const _0x28693=this['_formulaDataModel']['getFormulaDataItem'](_0x57e404,_0x5b5cdc,_0x2a6b7c,_0x3bd0f0);return _0x28693==null||_0x28693['f']==null?!0x0:(_0x4d6c75==null&&(_0x4d6c75={'f':_0x28693['f'],'isInArrayFormulaRange':!0x0}),this[_0x7f849f(0x242)](_0x45f33e,_0x3bd0f0),!0x1);}}),_0x4d6c75;}[_0x40106a(0x242)](_0x4d1c65,_0x562003){const _0x5aab79=_0x40106a,_0x1db32e=this['_themeService']['getCurrentTheme'](),_0x5597a2=new ColorKit(_0x1db32e[_0x5aab79(0x257)])[_0x5aab79(0x228)](0x0)['toString'](),_0x4929ca={'strokeWidth':0x1,'stroke':_0x1db32e[_0x5aab79(0x31c)],'fill':_0x5597a2,'widgets':{},'hasAutoFill':!0x1,'hasRowHeader':!0x1,'hasColumnHeader':!0x1},_0x1dbd37=this[_0x5aab79(0x181)][_0x5aab79(0x341)](_0x562003);if(!_0x1dbd37)return;const {scene:_0x4735d5}=_0x1dbd37,{rangeWithCoord:_0x504fa4,primaryWithCoord:_0x4f0043}=_0x1dbd37[_0x5aab79(0x243)](ISheetSelectionRenderService)[_0x5aab79(0x330)]({'range':_0x4d1c65,'primary':null,'style':_0x4929ca}),_0x3f5e73=this[_0x5aab79(0x223)][_0x5aab79(0x3b9)]();if(!_0x4735d5||!_0x3f5e73)return;const {rowHeaderWidth:_0x2a37e5,columnHeaderHeight:_0x4686f5}=_0x3f5e73,_0x5b2ee1=new SelectionShape(_0x4735d5,SELECTION_SHAPE_DEPTH[_0x5aab79(0x1a1)],this[_0x5aab79(0x2b7)],!0x1);_0x5b2ee1[_0x5aab79(0x25d)](_0x504fa4,_0x2a37e5,_0x4686f5,_0x4929ca,_0x4f0043),_0x5b2ee1[_0x5aab79(0x170)](!0x1),this[_0x5aab79(0x389)]=_0x5b2ee1;}[_0x40106a(0x426)](){const _0x8e7b44=_0x40106a;this[_0x8e7b44(0x389)]!=null&&(this[_0x8e7b44(0x389)][_0x8e7b44(0x23f)](),this['_previousShape']=null);}[_0x40106a(0x285)](_0x1c35e7,_0x77da99){const _0x3791af=_0x40106a;if(this[_0x3791af(0x389)]){const {startRow:_0x2c9f9b,endRow:_0x2b90f4,startColumn:_0x2bf64c,endColumn:_0x365cbc}=this[_0x3791af(0x389)]['getRange'](),_0xc9b591={'startRow':_0x2c9f9b,'endRow':_0x2b90f4,'startColumn':_0x2bf64c,'endColumn':_0x365cbc};this[_0x3791af(0x426)](),this[_0x3791af(0x242)](_0xc9b591,_0x1c35e7);}}[_0x40106a(0x44f)](_0x31904a,_0x10bf30){const _0x84e3cd=_0x40106a,_0x4b3979=this[_0x84e3cd(0x223)]['getCurrentSkeleton']();if(!_0x4b3979)return!0x1;const _0x81f52a=_0x4b3979[_0x84e3cd(0x1a6)];return _0x81f52a?_0x81f52a[_0x84e3cd(0x172)]===_0x31904a&&_0x81f52a[_0x84e3cd(0x3a9)]()===_0x10bf30:!0x1;}[_0x40106a(0x267)](_0x1b725b,_0x4c5dd9){const _0x1c0e1c=_0x40106a;this[_0x1c0e1c(0x44f)](_0x1b725b,_0x4c5dd9)&&this[_0x1c0e1c(0x389)]&&this[_0x1c0e1c(0x285)](_0x1b725b);}['_refreshArrayFormulaRangeShapeByRow'](_0x89d09b,_0x3d6b8c,_0x1bc27f){const _0x3999f0=_0x40106a;if(!this[_0x3999f0(0x44f)](_0x89d09b,_0x3d6b8c)||!this['_previousShape'])return;const {startRow:_0x1e4144,endRow:_0x44052e,startColumn:_0x5b5582,endColumn:_0x5705a2}=this[_0x3999f0(0x389)][_0x3999f0(0x3fb)]();for(let _0x29bf85=0x0;_0x29bf85<_0x1bc27f[_0x3999f0(0x348)];_0x29bf85++){const {row:_0xd4e023}=_0x1bc27f[_0x29bf85];if(_0x1e4144>=_0xd4e023){const _0x5ef0d1={'startRow':_0x1e4144,'endRow':_0x44052e,'startColumn':_0x5b5582,'endColumn':_0x5705a2};this[_0x3999f0(0x285)](_0x89d09b,_0x5ef0d1);break;}}}},__name(_a5,_0x40106a(0x2e2)),_a5);FormulaEditorShowController=__decorateClass$5([__decorateParam$5(0x1,Inject(IEditorBridgeService)),__decorateParam$5(0x2,Inject(FormulaDataModel)),__decorateParam$5(0x3,Inject(ThemeService)),__decorateParam$5(0x4,IRenderManagerService),__decorateParam$5(0x5,Inject(SheetSkeletonManagerService)),__decorateParam$5(0x6,ICommandService),__decorateParam$5(0x7,ILogService)],FormulaEditorShowController);var __defProp$4=Object[_0x40106a(0x353)],__getOwnPropDesc$4=Object[_0x40106a(0x395)],__decorateClass$4=__name((_0x47f887,_0x3b2d37,_0x16ee2f,_0x59fdca)=>{const _0x167e45=_0x40106a;for(var _0x379b43=_0x59fdca>0x1?void 0x0:_0x59fdca?__getOwnPropDesc$4(_0x3b2d37,_0x16ee2f):_0x3b2d37,_0x112ca0=_0x47f887[_0x167e45(0x348)]-0x1,_0x5eb3db;_0x112ca0>=0x0;_0x112ca0--)(_0x5eb3db=_0x47f887[_0x112ca0])&&(_0x379b43=(_0x59fdca?_0x5eb3db(_0x3b2d37,_0x16ee2f,_0x379b43):_0x5eb3db(_0x379b43))||_0x379b43);return _0x59fdca&&_0x379b43&&__defProp$4(_0x3b2d37,_0x16ee2f,_0x379b43),_0x379b43;},_0x40106a(0x361)),__decorateParam$4=__name((_0xa72148,_0x2dee62)=>(_0x1f0211,_0x55ec36)=>_0x2dee62(_0x1f0211,_0x55ec36,_0xa72148),_0x40106a(0x20e));const FORMULA_ERROR_MARK={'tl':{'size':0x6,'color':'#409f11'}};var _a6;let FormulaRenderManagerController=(_a6=class extends RxDisposable{constructor(_0x58c193){const _0x175a58=_0x40106a;super(),this[_0x175a58(0x3d8)]=_0x58c193,this[_0x175a58(0x1c2)](this[_0x175a58(0x3d8)][_0x175a58(0x3c0)](INTERCEPTOR_POINT[_0x175a58(0x44d)],{'effect':InterceptorEffectEnum[_0x175a58(0x349)],'handler':__name((_0x167741,_0x24fbb2,_0x3b5e5e)=>extractFormulaError(_0x167741)?_0x3b5e5e({..._0x167741,'markers':{..._0x167741==null?void 0x0:_0x167741[_0x175a58(0x312)],...FORMULA_ERROR_MARK}}):_0x3b5e5e(_0x167741),_0x175a58(0x30c)),'priority':0xa}));}},__name(_a6,_0x40106a(0x16d)),_a6);FormulaRenderManagerController=__decorateClass$4([__decorateParam$4(0x0,Inject(SheetInterceptorService))],FormulaRenderManagerController);var jsxRuntime={'exports':{}},reactJsxRuntime_production_min={},f=_0x44bbf9,k=Symbol['for'](_0x40106a(0x188)),l=Symbol['for'](_0x40106a(0x25a)),m=Object[_0x40106a(0x410)][_0x40106a(0x23a)],n=f[_0x40106a(0x337)][_0x40106a(0x2cd)],p={'key':!0x0,'ref':!0x0,'__self':!0x0,'__source':!0x0};function q(_0x33172c,_0x526179,_0x465558){const _0x2cd4c7=_0x40106a;var _0x5597c5,_0x53f071={},_0x570d70=null,_0x33e629=null;_0x465558!==void 0x0&&(_0x570d70=''+_0x465558),_0x526179[_0x2cd4c7(0x224)]!==void 0x0&&(_0x570d70=''+_0x526179[_0x2cd4c7(0x224)]),_0x526179['ref']!==void 0x0&&(_0x33e629=_0x526179[_0x2cd4c7(0x2f9)]);for(_0x5597c5 in _0x526179)m[_0x2cd4c7(0x1d0)](_0x526179,_0x5597c5)&&!p['hasOwnProperty'](_0x5597c5)&&(_0x53f071[_0x5597c5]=_0x526179[_0x5597c5]);if(_0x33172c&&_0x33172c[_0x2cd4c7(0x26a)]){for(_0x5597c5 in(_0x526179=_0x33172c['defaultProps'],_0x526179))_0x53f071[_0x5597c5]===void 0x0&&(_0x53f071[_0x5597c5]=_0x526179[_0x5597c5]);}return{'$$typeof':k,'type':_0x33172c,'key':_0x570d70,'ref':_0x33e629,'props':_0x53f071,'_owner':n['current']};}__name(q,'q'),reactJsxRuntime_production_min[_0x40106a(0x3ca)]=l,reactJsxRuntime_production_min['jsx']=q,reactJsxRuntime_production_min['jsxs']=q,jsxRuntime['exports']=reactJsxRuntime_production_min;var jsxRuntimeExports=jsxRuntime[_0x40106a(0x274)],__assign=function(){const _0x254e83=_0x40106a;return __assign=Object['assign']||function(_0x1c7815){const _0x3fc5b0=_0xa8a2;for(var _0x762a03,_0x1e30c6=0x1,_0x1a5519=arguments['length'];_0x1e30c6<_0x1a5519;_0x1e30c6++){_0x762a03=arguments[_0x1e30c6];for(var _0x10af34 in _0x762a03)Object[_0x3fc5b0(0x410)][_0x3fc5b0(0x23a)]['call'](_0x762a03,_0x10af34)&&(_0x1c7815[_0x10af34]=_0x762a03[_0x10af34]);}return _0x1c7815;},__assign[_0x254e83(0x3b6)](this,arguments);},__rest=function(_0x107659,_0x19a831){const _0x1dacf2=_0x40106a;var _0x24d524={};for(var _0x45f583 in _0x107659)Object[_0x1dacf2(0x410)][_0x1dacf2(0x23a)][_0x1dacf2(0x1d0)](_0x107659,_0x45f583)&&_0x19a831[_0x1dacf2(0x3e3)](_0x45f583)<0x0&&(_0x24d524[_0x45f583]=_0x107659[_0x45f583]);if(_0x107659!=null&&typeof Object[_0x1dacf2(0x28a)]==_0x1dacf2(0x1ff)){for(var _0x390887=0x0,_0x45f583=Object[_0x1dacf2(0x28a)](_0x107659);_0x390887<_0x45f583[_0x1dacf2(0x348)];_0x390887++)_0x19a831[_0x1dacf2(0x3e3)](_0x45f583[_0x390887])<0x0&&Object[_0x1dacf2(0x410)][_0x1dacf2(0x358)]['call'](_0x107659,_0x45f583[_0x390887])&&(_0x24d524[_0x45f583[_0x390887]]=_0x107659[_0x45f583[_0x390887]]);}return _0x24d524;},IconBase=forwardRef(function(_0x11626b,_0x21123f){const _0x4c7ad6=_0x40106a;var _0x24dd78=_0x11626b[_0x4c7ad6(0x301)],_0x17fade=_0x11626b['id'],_0x551ef0=_0x11626b[_0x4c7ad6(0x17d)],_0x2c2df5=_0x11626b[_0x4c7ad6(0x321)],_0x38c15c=__rest(_0x11626b,[_0x4c7ad6(0x301),'id',_0x4c7ad6(0x17d),_0x4c7ad6(0x321)]),_0x215bad=_0x4c7ad6(0x340)[_0x4c7ad6(0x1c3)](_0x17fade,'\x20')['concat'](_0x551ef0||'')[_0x4c7ad6(0x282)](),_0x384cbd=useRef('_'[_0x4c7ad6(0x1c3)](generateShortUuid()));return render(_0x24dd78,''[_0x4c7ad6(0x1c3)](_0x17fade),{'defIds':_0x24dd78[_0x4c7ad6(0x371)],'idSuffix':_0x384cbd[_0x4c7ad6(0x338)]},__assign({'ref':_0x21123f,'className':_0x215bad},_0x38c15c),_0x2c2df5);});function render(_0x4e8651,_0x6e0a3d,_0x19d8c7,_0x4c57e3,_0xf6167b){const _0x3d8b07=_0x40106a;return createElement(_0x4e8651[_0x3d8b07(0x2a9)],__assign(__assign({'key':_0x6e0a3d},replaceRuntimeIdsAndExtInAttrs(_0x4e8651,_0x19d8c7,_0xf6167b)),_0x4c57e3),(replaceRuntimeIdsInDefs(_0x4e8651,_0x19d8c7)[_0x3d8b07(0x2c8)]||[])[_0x3d8b07(0x42c)](function(_0x159ba2,_0x3aaa5d){const _0x312407=_0x3d8b07;return render(_0x159ba2,''['concat'](_0x6e0a3d,'-')[_0x312407(0x1c3)](_0x4e8651['tag'],'-')[_0x312407(0x1c3)](_0x3aaa5d),_0x19d8c7,void 0x0,_0xf6167b);}));}__name(render,'render');function replaceRuntimeIdsAndExtInAttrs(_0x3e1c5b,_0x528186,_0x2a11b3){const _0x313938=_0x40106a;var _0x4de137=__assign({},_0x3e1c5b[_0x313938(0x408)]);_0x2a11b3!=null&&_0x2a11b3['colorChannel1']&&_0x4de137[_0x313938(0x1cd)]===_0x313938(0x204)&&(_0x4de137['fill']=_0x2a11b3[_0x313938(0x204)]);var _0x423626=_0x528186[_0x313938(0x371)];return!_0x423626||_0x423626[_0x313938(0x348)]===0x0||(_0x3e1c5b[_0x313938(0x2a9)]==='use'&&_0x4de137[_0x313938(0x221)]&&(_0x4de137[_0x313938(0x221)]=_0x4de137[_0x313938(0x221)]+_0x528186[_0x313938(0x373)]),Object[_0x313938(0x39e)](_0x4de137)[_0x313938(0x3a5)](function(_0x45c1d3){const _0x1d27e5=_0x313938;var _0x3ba8bc=_0x45c1d3[0x0],_0x138fb2=_0x45c1d3[0x1];typeof _0x138fb2=='string'&&(_0x4de137[_0x3ba8bc]=_0x138fb2['replace'](/url\(#(.*)\)/,_0x1d27e5(0x237)[_0x1d27e5(0x1c3)](_0x528186[_0x1d27e5(0x373)],')')));})),_0x4de137;}__name(replaceRuntimeIdsAndExtInAttrs,_0x40106a(0x1c6));function replaceRuntimeIdsInDefs(_0x5e714c,_0x555df1){const _0x3da5a5=_0x40106a;var _0x3904d8,_0x267955=_0x555df1['defIds'];return!_0x267955||_0x267955[_0x3da5a5(0x348)]===0x0?_0x5e714c:_0x5e714c[_0x3da5a5(0x2a9)]===_0x3da5a5(0x3c4)&&(!((_0x3904d8=_0x5e714c[_0x3da5a5(0x2c8)])===null||_0x3904d8===void 0x0)&&_0x3904d8[_0x3da5a5(0x348)])?__assign(__assign({},_0x5e714c),{'children':_0x5e714c['children'][_0x3da5a5(0x42c)](function(_0x379845){const _0x220f4f=_0x3da5a5;return typeof _0x379845[_0x220f4f(0x408)]['id']==_0x220f4f(0x40f)&&_0x267955&&_0x267955[_0x220f4f(0x3e3)](_0x379845[_0x220f4f(0x408)]['id'])>-0x1?__assign(__assign({},_0x379845),{'attrs':__assign(__assign({},_0x379845[_0x220f4f(0x408)]),{'id':_0x379845['attrs']['id']+_0x555df1[_0x220f4f(0x373)]})}):_0x379845;})}):_0x5e714c;}__name(replaceRuntimeIdsInDefs,_0x40106a(0x1af));function generateShortUuid(){const _0x26ab9f=_0x40106a;return Math['random']()['toString'](0x24)[_0x26ab9f(0x240)](0x2,0x8);}__name(generateShortUuid,'generateShortUuid'),IconBase[_0x40106a(0x3e1)]='UniverIcon';var element$3={'tag':_0x40106a(0x1c1),'attrs':{'fill':_0x40106a(0x366),'viewBox':_0x40106a(0x213),'width':_0x40106a(0x2b4),'height':_0x40106a(0x2b4)},'children':[{'tag':_0x40106a(0x38c),'attrs':{'fill':_0x40106a(0x2a2),'d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':_0x40106a(0x2ef),'clipRule':_0x40106a(0x2ef)}}]},CheckMarkSingle=forwardRef(function(_0x5dae53,_0x4f07d2){const _0x1e5674=_0x40106a;return createElement(IconBase,Object['assign']({},_0x5dae53,{'id':_0x1e5674(0x265),'ref':_0x4f07d2,'icon':element$3}));});CheckMarkSingle['displayName']=_0x40106a(0x388);var element$2={'tag':_0x40106a(0x1c1),'attrs':{'fill':_0x40106a(0x366),'viewBox':_0x40106a(0x213),'width':_0x40106a(0x2b4),'height':'1em'},'children':[{'tag':_0x40106a(0x38c),'attrs':{'fill':_0x40106a(0x2a2),'d':_0x40106a(0x286)}}]},CloseSingle=forwardRef(function(_0x52b89f,_0xc863f8){const _0x1f16c4=_0x40106a;return createElement(IconBase,Object[_0x1f16c4(0x37d)]({},_0x52b89f,{'id':_0x1f16c4(0x16b),'ref':_0xc863f8,'icon':element$2}));});CloseSingle[_0x40106a(0x3e1)]=_0x40106a(0x27b);var element$1={'tag':_0x40106a(0x1c1),'attrs':{'fill':_0x40106a(0x366),'viewBox':_0x40106a(0x213),'width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x40106a(0x2a2),'d':_0x40106a(0x384)}},{'tag':_0x40106a(0x38c),'attrs':{'fill':'currentColor','d':'M0.899902\x208.00002C0.899902\x204.0788\x204.07868\x200.900024\x207.9999\x200.900024C11.9211\x200.900024\x2015.0999\x204.0788\x2015.0999\x208.00002C15.0999\x2011.9212\x2011.9211\x2015.1\x207.9999\x2015.1C4.07868\x2015.1\x200.899902\x2011.9212\x200.899902\x208.00002ZM7.9999\x202.10002C4.74142\x202.10002\x202.0999\x204.74154\x202.0999\x208.00002C2.0999\x2011.2585\x204.74142\x2013.9\x207.9999\x2013.9C11.2584\x2013.9\x2013.8999\x2011.2585\x2013.8999\x208.00002C13.8999\x204.74154\x2011.2584\x202.10002\x207.9999\x202.10002Z','fillRule':_0x40106a(0x2ef),'clipRule':_0x40106a(0x2ef)}}]},DetailsSingle=forwardRef(function(_0x26b04d,_0x40c3d4){const _0x1a8a27=_0x40106a;return createElement(IconBase,Object[_0x1a8a27(0x37d)]({},_0x26b04d,{'id':_0x1a8a27(0x44b),'ref':_0x40c3d4,'icon':element$1}));});DetailsSingle[_0x40106a(0x3e1)]=_0x40106a(0x1e8);var element={'tag':_0x40106a(0x1c1),'attrs':{'fill':_0x40106a(0x366),'viewBox':_0x40106a(0x213),'width':_0x40106a(0x2b4),'height':_0x40106a(0x2b4)},'children':[{'tag':'path','attrs':{'fill':_0x40106a(0x2a2),'d':'M5.90913\x203.57564C6.14345\x203.34132\x206.52335\x203.34132\x206.75766\x203.57564L10.7577\x207.57564C10.992\x207.80995\x2010.992\x208.18985\x2010.7577\x208.42417L6.75766\x2012.4242C6.52335\x2012.6585\x206.14345\x2012.6585\x205.90913\x2012.4242C5.67482\x2012.1899\x205.67482\x2011.81\x205.90913\x2011.5756L9.48487\x207.9999L5.90913\x204.42417C5.67482\x204.18985\x205.67482\x203.80995\x205.90913\x203.57564Z','fillRule':'evenodd','clipRule':_0x40106a(0x2ef)}}]},MoreSingle=forwardRef(function(_0x4405ad,_0x198581){const _0x42830f=_0x40106a;return createElement(IconBase,Object[_0x42830f(0x37d)]({},_0x4405ad,{'id':_0x42830f(0x379),'ref':_0x198581,'icon':element}));});MoreSingle[_0x40106a(0x3e1)]=_0x40106a(0x3e9);function getFunctionTypeValues(_0xd73718,_0x41dbe4){const _0x372c7e=_0x40106a;return Object[_0x372c7e(0x22d)](_0xd73718)[_0x372c7e(0x39b)](_0x2bd658=>isNaN(Number(_0x2bd658))&&_0x2bd658!=='DefinedName')[_0x372c7e(0x42c)](_0x8117e8=>({'label':_0x41dbe4['t'](_0x372c7e(0x2d7)+_0x8117e8[_0x372c7e(0x400)]()),'value':''+_0xd73718[_0x8117e8]}));}__name(getFunctionTypeValues,'getFunctionTypeValues');function generateParam(_0xf5358){const _0x566748=_0x40106a;if(!_0xf5358[_0x566748(0x3a8)]&&!_0xf5358[_0x566748(0x2f5)])return'['+_0xf5358[_0x566748(0x2ff)]+']';if(_0xf5358['require']&&!_0xf5358['repeat'])return _0xf5358['name'];if(!_0xf5358[_0x566748(0x3a8)]&&_0xf5358[_0x566748(0x2f5)])return'['+_0xf5358[_0x566748(0x2ff)]+_0x566748(0x2d4);if(_0xf5358[_0x566748(0x3a8)]&&_0xf5358[_0x566748(0x2f5)])return _0xf5358[_0x566748(0x2ff)]+',...';}__name(generateParam,_0x40106a(0x1bc));const useResizeScrollObserver=__name((_0x58895a,_0x1762db=0x64)=>{useEffect(()=>{const _0x22959d=_0xa8a2;let _0x508d7d=null;const _0x50216b=__name(()=>{const _0x28f66f=_0xa8a2;_0x508d7d===null&&(_0x508d7d=window[_0x28f66f(0x281)](()=>{_0x58895a(),_0x508d7d=null;},_0x1762db));},'throttledCallback');return window[_0x22959d(0x344)](_0x22959d(0x275),_0x50216b),window['addEventListener']('resize',_0x50216b),()=>{const _0x1459fa=_0x22959d;_0x508d7d!==null&&clearTimeout(_0x508d7d),window[_0x1459fa(0x262)](_0x1459fa(0x275),_0x50216b),window[_0x1459fa(0x262)]('resize',_0x50216b);};},[_0x58895a,_0x1762db]);},_0x40106a(0x302)),formulaHelpFunction='univer-formula-help-function',formulaHelpFunctionTitle=_0x40106a(0x278),formulaHelpFunctionTitleIcons=_0x40106a(0x235),formulaHelpFunctionTitleIcon=_0x40106a(0x442),formulaHelpFunctionContent=_0x40106a(0x434),formulaHelpFunctionContentInner='univer-formula-help-function-content-inner',formulaHelpFunctionContentParams=_0x40106a(0x427),formulaHelpFunctionContentParamsTitle=_0x40106a(0x334),formulaHelpFunctionContentParamsDetail=_0x40106a(0x175),formulaHelpFunctionActive=_0x40106a(0x195),formulaHelpDecorator=_0x40106a(0x41e),formulaHelpParam=_0x40106a(0x3c2),formulaHelpParamPrefix=_0x40106a(0x208),formulaHelpParamItem=_0x40106a(0x355),formulaHelpParamActive='univer-formula-help-param-active',styles$5={'formulaHelpFunction':formulaHelpFunction,'formulaHelpFunctionTitle':formulaHelpFunctionTitle,'formulaHelpFunctionTitleIcons':formulaHelpFunctionTitleIcons,'formulaHelpFunctionTitleIcon':formulaHelpFunctionTitleIcon,'formulaHelpFunctionContent':formulaHelpFunctionContent,'formulaHelpFunctionContentInner':formulaHelpFunctionContentInner,'formulaHelpFunctionContentParams':formulaHelpFunctionContentParams,'formulaHelpFunctionContentParamsTitle':formulaHelpFunctionContentParamsTitle,'formulaHelpFunctionContentParamsDetail':formulaHelpFunctionContentParamsDetail,'formulaHelpFunctionActive':formulaHelpFunctionActive,'formulaHelpDecorator':formulaHelpDecorator,'formulaHelpParam':formulaHelpParam,'formulaHelpParamPrefix':formulaHelpParamPrefix,'formulaHelpParamItem':formulaHelpParamItem,'formulaHelpParamActive':formulaHelpParamActive};function HelpFunction(){const _0x27af99=_0x40106a,[_0x47ce93,_0x15b1fe]=useState(!0x1),[_0x335f66,_0x13eda1]=useState(!0x0),[_0x2bc097,_0x262d6a]=useState(!0x0),[_0x6a0169,_0x5580bf]=useState(0x0),[_0x23a652,_0x5be733]=useState([0x0,0x0]),[_0x32e393,_0x4a256e]=useState({'left':0x0,'top':0x0}),[_0x5e1a50,_0x50f9fc]=useState(null),_0x30de78=useDependency(IFormulaPromptService),_0xa4f548=useDependency(LocaleService),_0xea67bb=_0xa4f548['t'](_0x27af99(0x318)),_0x42446e=_0xa4f548['t'](_0x27af99(0x29e)),_0x28c402=useDependency(IUniverInstanceService),_0x2ffcdf=useDependency(IEditorService),_0x1e427a=useDependency(ISidebarService),_0x92827b=useInjector();useResizeScrollObserver(_0x393d79),useEffect(()=>{const _0x34f629=_0x27af99,_0x509056=_0x30de78['help$']['subscribe'](_0xe0c9cd=>{const _0x49fef8=_0xa8a2,{visible:_0xfbc030,paramIndex:_0x4a561b,functionInfo:_0x51cd95}=_0xe0c9cd;if(!_0xfbc030){_0x15b1fe(_0xfbc030);return;}const _0x4d3fa9=_0x1bccb7();if(_0x4d3fa9==null)return;const {left:_0x1ff3ef,top:_0x4283e8,height:_0xd83176}=_0x4d3fa9;_0x51cd95[_0x49fef8(0x248)]===''&&_0x51cd95[_0x49fef8(0x292)]['length']===0x0||(_0x5be733([_0x1ff3ef,_0x4283e8+_0xd83176]),_0x5580bf(_0x4a561b),_0x50f9fc(_0x51cd95),_0x4a256e({'left':_0x1ff3ef,'top':_0x4283e8}),_0x15b1fe(_0xfbc030));}),_0x22c0f4=_0x1e427a[_0x34f629(0x3e7)][_0x34f629(0x41a)](throttleTime(0x64))['subscribe'](_0x393d79);return()=>{const _0x57ad9b=_0x34f629;_0x509056==null||_0x509056['unsubscribe'](),_0x22c0f4[_0x57ad9b(0x1ac)]();};},[]);function _0x393d79(){if(!_0x2bc097)return;const _0x13f5a5=_0x1bccb7();if(_0x13f5a5==null)return;const {left:_0x5669ad,top:_0x5f3a0f,height:_0x1bcdc9}=_0x13f5a5;_0x5be733([_0x5669ad,_0x5f3a0f+_0x1bcdc9]);}__name(_0x393d79,_0x27af99(0x192));function _0x1bccb7(){const _0x20145c=_0x27af99,_0x1e8cbc=_0x28c402['getCurrentUniverDocInstance']();if(!_0x1e8cbc)return;const _0x45926e=_0x1e8cbc[_0x20145c(0x3d9)]();if(!_0x2ffcdf[_0x20145c(0x28d)](_0x45926e))return;const _0x1745ff=_0x2ffcdf[_0x20145c(0x19b)](_0x45926e);return _0x1745ff==null?void 0x0:_0x1745ff[_0x20145c(0x1ab)]();}__name(_0x1bccb7,_0x27af99(0x187));function _0x2587ec(_0x26db79){_0x5580bf(_0x26db79);}__name(_0x2587ec,_0x27af99(0x1c5));function _0x91b463(){const _0x599b16=_0x27af99;_0x262d6a(!_0x2bc097),_0x92827b[_0x599b16(0x424)](ILayoutService)[_0x599b16(0x1d2)]();}return __name(_0x91b463,_0x27af99(0x3ad)),jsxRuntimeExports[_0x27af99(0x413)](jsxRuntimeExports['Fragment'],{'children':_0x2bc097?jsxRuntimeExports['jsx'](Popup,{'visible':_0x47ce93,'offset':_0x23a652,'children':_0x5e1a50?jsxRuntimeExports[_0x27af99(0x16a)]('div',{'className':styles$5[_0x27af99(0x3a7)],'children':[jsxRuntimeExports[_0x27af99(0x16a)](_0x27af99(0x374),{'className':styles$5[_0x27af99(0x37b)],'children':[jsxRuntimeExports[_0x27af99(0x413)](Help,{'prefix':_0x5e1a50['functionName'],'value':_0x5e1a50[_0x27af99(0x292)],'active':_0x6a0169,'onClick':_0x2587ec}),jsxRuntimeExports[_0x27af99(0x16a)](_0x27af99(0x374),{'className':styles$5[_0x27af99(0x436)],'children':[jsxRuntimeExports[_0x27af99(0x413)](_0x27af99(0x374),{'className':styles$5[_0x27af99(0x27a)],'style':{'transform':_0x335f66?_0x27af99(0x20a):'rotateZ(90deg)'},'onClick':__name(()=>_0x13eda1(!_0x335f66),'onClick'),'children':jsxRuntimeExports[_0x27af99(0x413)](MoreSingle,{})}),jsxRuntimeExports[_0x27af99(0x413)]('div',{'className':styles$5['formulaHelpFunctionTitleIcon'],'onClick':_0x91b463,'children':jsxRuntimeExports[_0x27af99(0x413)](CloseSingle,{})})]})]}),jsxRuntimeExports['jsx'](_0x27af99(0x374),{'className':styles$5[_0x27af99(0x3ae)],'style':{'height':_0x335f66?'unset':0x0,'padding':_0x335f66?_0x27af99(0x3cb):0x0},'children':jsxRuntimeExports[_0x27af99(0x16a)](_0x27af99(0x374),{'className':styles$5[_0x27af99(0x263)],'children':[jsxRuntimeExports[_0x27af99(0x413)](Params,{'title':_0xa4f548['t']('formula.prompt.helpExample'),'value':_0x5e1a50[_0x27af99(0x31b)]+'('+_0x5e1a50[_0x27af99(0x292)]['map'](_0x2b69c3=>_0x2b69c3['example'])[_0x27af99(0x2d2)](',')+')'}),jsxRuntimeExports['jsx'](Params,{'title':_0xa4f548['t'](_0x27af99(0x419)),'value':_0x5e1a50[_0x27af99(0x248)]}),_0x5e1a50&&_0x5e1a50[_0x27af99(0x292)]&&_0x5e1a50[_0x27af99(0x292)][_0x27af99(0x42c)]((_0x312e3f,_0x21939f)=>jsxRuntimeExports['jsx'](Params,{'className':_0x6a0169===_0x21939f?styles$5[_0x27af99(0x1d6)]:'','title':_0x312e3f[_0x27af99(0x2ff)],'value':(_0x312e3f[_0x27af99(0x3a8)]?_0xea67bb:_0x42446e)+'\x20'+_0x312e3f[_0x27af99(0x397)]},_0x21939f))]})})]}):jsxRuntimeExports['jsx'](jsxRuntimeExports['Fragment'],{})}):_0x47ce93?jsxRuntimeExports[_0x27af99(0x413)]('div',{'className':styles$5[_0x27af99(0x1f5)],'onClick':__name(()=>_0x262d6a(!_0x2bc097),_0x27af99(0x1fc)),'style':{'left':_0x32e393[_0x27af99(0x241)]-0x18,'top':_0x32e393[_0x27af99(0x234)]},'children':jsxRuntimeExports[_0x27af99(0x413)](DetailsSingle,{})}):jsxRuntimeExports[_0x27af99(0x413)](jsxRuntimeExports['Fragment'],{})});}__name(HelpFunction,_0x40106a(0x2cc));const Params=__name(_0x426deb=>jsxRuntimeExports['jsxs'](_0x40106a(0x374),{'className':styles$5[_0x40106a(0x3ce)],'children':[jsxRuntimeExports[_0x40106a(0x413)](_0x40106a(0x374),{'className':styles$5[_0x40106a(0x375)]+'\x20'+_0x426deb[_0x40106a(0x17d)],'children':_0x426deb[_0x40106a(0x425)]}),jsxRuntimeExports[_0x40106a(0x413)](_0x40106a(0x374),{'className':styles$5['formulaHelpFunctionContentParamsDetail'],'children':_0x426deb[_0x40106a(0x16f)]})]}),_0x40106a(0x184)),Help=__name(_0x3345fc=>{const _0x40f740=_0x40106a,{prefix:_0x30a00a,value:_0x282bfe,active:_0x4181dd,onClick:_0x370cae}=_0x3345fc;return jsxRuntimeExports['jsxs'](_0x40f740(0x374),{'className':styles$5[_0x40f740(0x198)],'children':[jsxRuntimeExports[_0x40f740(0x16a)](_0x40f740(0x279),{'className':styles$5[_0x40f740(0x36d)],'children':[_0x30a00a,'(']}),_0x282bfe&&_0x282bfe[_0x40f740(0x42c)]((_0x5d30ae,_0x2e591b)=>jsxRuntimeExports[_0x40f740(0x16a)]('span',{'className':styles$5[_0x40f740(0x407)],'children':[jsxRuntimeExports[_0x40f740(0x413)](_0x40f740(0x279),{'className':_0x4181dd===_0x2e591b?styles$5[_0x40f740(0x1d6)]:styles$5[_0x40f740(0x386)],'onClick':__name(()=>_0x370cae(_0x2e591b),_0x40f740(0x1fc)),'children':generateParam(_0x5d30ae)}),_0x2e591b===_0x282bfe[_0x40f740(0x348)]-0x1?'':',']},_0x2e591b)),')']});},_0x40106a(0x3dd)),formulaSearchFunction=_0x40106a(0x232),formulaSearchFunctionItem=_0x40106a(0x32d),formulaSearchFunctionItemName='univer-formula-search-function-item-name',formulaSearchFunctionItemNameLight=_0x40106a(0x19e),formulaSearchFunctionItemDesc=_0x40106a(0x3fd),formulaSearchFunctionItemActive=_0x40106a(0x3b3),styles$4={'formulaSearchFunction':formulaSearchFunction,'formulaSearchFunctionItem':formulaSearchFunctionItem,'formulaSearchFunctionItemName':formulaSearchFunctionItemName,'formulaSearchFunctionItemNameLight':formulaSearchFunctionItemNameLight,'formulaSearchFunctionItemDesc':formulaSearchFunctionItemDesc,'formulaSearchFunctionItemActive':formulaSearchFunctionItemActive};function SearchFunction(){const _0x556229=_0x40106a,[_0x30aecf,_0x5bd298]=useState(!0x1),[_0x37290f,_0x2e4c79]=useState(0x0),[_0x941f25,_0x2a54c7]=useState([0x0,0x0]),[_0x307b08,_0x42331d]=useState([]),[_0x3a9431,_0x182562]=useState(''),_0x32776d=useRef(null),_0x48f07a=useDependency(IFormulaPromptService),_0x4655e6=useDependency(IUniverInstanceService),_0x26ead4=useDependency(IEditorService);useEffect(()=>{const _0x652ec=_0xa8a2;let _0x4fcde3=[],_0x54f0f5=0x0;const _0xebd64b=_0x48f07a['search$']['subscribe'](_0x532e83=>{const {visible:_0x33c652,searchText:_0x209abd,searchList:_0x1e1207}=_0x532e83;if(!_0x33c652){_0x5bd298(_0x33c652);return;}const _0x688ffa=_0x4dee86();if(_0x688ffa==null)return;const {left:_0x3b3012,top:_0x1af93e,height:_0x2e54b1}=_0x688ffa;_0x182562(_0x209abd),_0x42331d(_0x1e1207),_0x4fcde3=_0x1e1207,_0x2a54c7([_0x3b3012,_0x1af93e+_0x2e54b1]),_0x5bd298(_0x33c652),_0x2e4c79(0x0),_0x54f0f5=0x0;}),_0x42a383=_0x48f07a[_0x652ec(0x31a)][_0x652ec(0x331)](_0x46630e=>{const _0x4cce26=_0x652ec,{direction:_0x53855}=_0x46630e;if(_0x53855===Direction['UP']){let _0x225e0c=_0x54f0f5-0x1;_0x225e0c=_0x225e0c<0x0?_0x4fcde3['length']-0x1:_0x225e0c,_0x2e4c79(_0x225e0c),_0x54f0f5=_0x225e0c;}else{if(_0x53855===Direction[_0x4cce26(0x326)]){let _0x14856=_0x54f0f5+0x1;_0x14856=_0x14856>=_0x4fcde3[_0x4cce26(0x348)]?0x0:_0x14856,_0x2e4c79(_0x14856),_0x54f0f5=_0x14856;}}_0x35920b(_0x54f0f5);}),_0x25a7c6=_0x48f07a[_0x652ec(0x17f)]['subscribe'](_0x49b6a3=>{const _0x42200d=_0x652ec,_0x401ada=_0x4fcde3[_0x54f0f5][_0x42200d(0x2ff)];_0x48f07a[_0x42200d(0x3c3)](_0x401ada);});return()=>{const _0x36dd96=_0x652ec;_0xebd64b==null||_0xebd64b['unsubscribe'](),_0x42a383==null||_0x42a383['unsubscribe'](),_0x25a7c6==null||_0x25a7c6[_0x36dd96(0x1ac)]();};},[]);function _0x4dee86(){const _0x1bcd01=_0xa8a2,_0x4570c5=_0x4655e6[_0x1bcd01(0x36c)]()[_0x1bcd01(0x3d9)]();if(!_0x26ead4['isEditor'](_0x4570c5))return;const _0x1b6476=_0x26ead4[_0x1bcd01(0x19b)](_0x4570c5);return _0x1b6476==null?void 0x0:_0x1b6476[_0x1bcd01(0x1ab)]();}__name(_0x4dee86,_0x556229(0x187));function _0x2fb59d(_0x201b9a){_0x2e4c79(_0x201b9a);}__name(_0x2fb59d,_0x556229(0x3b2));function _0x490089(){_0x2e4c79(-0x1);}__name(_0x490089,_0x556229(0x1ca));function _0x35920b(_0xa78ea4){const _0xe589af=_0x556229;var _0x55cb17;const _0x503f47=(_0x55cb17=_0x32776d[_0xe589af(0x338)])==null?void 0x0:_0x55cb17[_0xe589af(0x191)]('.'+styles$4[_0xe589af(0x2d6)])[_0xa78ea4];if(!_0x503f47)return;const _0x16e68e=_0x503f47[_0xe589af(0x2ad)];if(!_0x16e68e)return;const _0x1db32c=_0x16e68e[_0xe589af(0x1ab)]()[_0xe589af(0x234)],_0x1123c3=_0x16e68e[_0xe589af(0x205)],_0x34d3ae=_0x503f47['getBoundingClientRect'](),_0x22acdf=_0x34d3ae[_0xe589af(0x234)],_0x1e93ae=_0x34d3ae[_0xe589af(0x1ee)];if(_0x22acdf>=0x0&&_0x22acdf>_0x1db32c&&_0x22acdf-_0x1db32c+_0x1e93ae<=_0x1123c3)return;const _0x2523c1=_0x503f47[_0xe589af(0x1da)]-(_0x1123c3-_0x1e93ae)/0x2;_0x16e68e[_0xe589af(0x230)]({'top':_0x2523c1,'behavior':_0xe589af(0x30e)});}return __name(_0x35920b,_0x556229(0x41d)),_0x307b08[_0x556229(0x348)]>0x0&&jsxRuntimeExports[_0x556229(0x413)](Popup,{'visible':_0x30aecf,'offset':_0x941f25,'children':jsxRuntimeExports[_0x556229(0x413)]('ul',{'className':styles$4['formulaSearchFunction'],'ref':_0x32776d,'children':_0x307b08[_0x556229(0x42c)]((_0x2dc669,_0x456fd5)=>jsxRuntimeExports[_0x556229(0x16a)]('li',{'className':_0x37290f===_0x456fd5?styles$4[_0x556229(0x2d6)]+'\x20'+styles$4[_0x556229(0x317)]:styles$4[_0x556229(0x2d6)],'onMouseEnter':__name(()=>_0x2fb59d(_0x456fd5),_0x556229(0x35a)),'onMouseLeave':_0x490089,'onClick':__name(()=>_0x48f07a['acceptFormulaName'](_0x2dc669[_0x556229(0x2ff)]),_0x556229(0x1fc)),'children':[jsxRuntimeExports['jsxs'](_0x556229(0x279),{'className':styles$4[_0x556229(0x34a)],'children':[jsxRuntimeExports[_0x556229(0x413)](_0x556229(0x279),{'className':styles$4['formulaSearchFunctionItemNameLight'],'children':_0x2dc669[_0x556229(0x2ff)][_0x556229(0x240)](0x0,_0x3a9431[_0x556229(0x348)])}),jsxRuntimeExports[_0x556229(0x413)](_0x556229(0x279),{'children':_0x2dc669[_0x556229(0x2ff)][_0x556229(0x3bd)](_0x3a9431[_0x556229(0x348)])})]}),jsxRuntimeExports['jsx']('span',{'className':styles$4[_0x556229(0x190)],'children':_0x2dc669[_0x556229(0x1d9)]})]},_0x456fd5))})});}__name(SearchFunction,'SearchFunction');function RenderFormulaPromptContent(){const _0x5e16f5=_0x40106a;return jsxRuntimeExports[_0x5e16f5(0x16a)](jsxRuntimeExports[_0x5e16f5(0x3ca)],{'children':[jsxRuntimeExports['jsx'](SearchFunction,{}),jsxRuntimeExports[_0x5e16f5(0x413)](HelpFunction,{})]});}__name(RenderFormulaPromptContent,_0x40106a(0x173));const formulaMoreFunctions='univer-formula-more-functions',formulaMoreFunctionsOperation='univer-formula-more-functions-operation',styles$3={'formulaMoreFunctions':formulaMoreFunctions,'formulaMoreFunctionsOperation':formulaMoreFunctionsOperation};function FunctionHelp(_0x5eed1a){const _0x46ec32=_0x40106a,{prefix:_0x20c7e9,value:_0x5f2cd1}=_0x5eed1a;return jsxRuntimeExports[_0x46ec32(0x16a)]('div',{'children':[jsxRuntimeExports[_0x46ec32(0x16a)](_0x46ec32(0x279),{'children':[_0x20c7e9,'(']}),_0x5f2cd1&&_0x5f2cd1[_0x46ec32(0x42c)]((_0x19a101,_0x410d06)=>jsxRuntimeExports[_0x46ec32(0x16a)](_0x46ec32(0x279),{'children':[jsxRuntimeExports[_0x46ec32(0x413)](_0x46ec32(0x279),{'children':generateParam(_0x19a101)}),_0x410d06===_0x5f2cd1[_0x46ec32(0x348)]-0x1?'':',']},_0x410d06)),')']});}__name(FunctionHelp,_0x40106a(0x16e));const formulaFunctionParams=_0x40106a(0x29b),formulaFunctionParamsTitle=_0x40106a(0x2b6),formulaFunctionParamsDetail='univer-formula-function-params-detail',styles$2={'formulaFunctionParams':formulaFunctionParams,'formulaFunctionParamsTitle':formulaFunctionParamsTitle,'formulaFunctionParamsDetail':formulaFunctionParamsDetail};function FunctionParams(_0x4be2c2){const _0x22e8fb=_0x40106a,{className:_0xd1283b,value:_0x1775eb,title:_0x27e0b6}=_0x4be2c2;return jsxRuntimeExports[_0x22e8fb(0x16a)](_0x22e8fb(0x374),{'className':styles$2[_0x22e8fb(0x38e)],'children':[jsxRuntimeExports['jsx']('div',{'className':styles$2[_0x22e8fb(0x3d0)]+'\x20'+_0xd1283b,'children':_0x27e0b6}),jsxRuntimeExports['jsx']('div',{'className':styles$2[_0x22e8fb(0x357)],'children':_0x1775eb})]});}__name(FunctionParams,'FunctionParams');const formulaInputParamsList='univer-formula-input-params-list',formulaInputParamsListItemName=_0x40106a(0x445),formulaInputParamsListItemSelector=_0x40106a(0x3f2),styles$1={'formulaInputParamsList':formulaInputParamsList,'formulaInputParamsListItemName':formulaInputParamsListItemName,'formulaInputParamsListItemSelector':formulaInputParamsListItemSelector};function InputParams(_0x262724){const _0x3bf3a8=_0x40106a,{functionInfo:_0x3424f7,onChange:_0x4a499f}=_0x262724;if(!_0x3424f7)return null;useState([]);const [_0xee4313,_0x2b5329]=useState(_0x3424f7[_0x3bf3a8(0x292)]),[_0x4c2109,_0x89fb83]=useState(-0x1);return jsxRuntimeExports['jsxs'](_0x3bf3a8(0x374),{'className':styles$1[_0x3bf3a8(0x36f)],'children':[jsxRuntimeExports[_0x3bf3a8(0x413)](_0x3bf3a8(0x374),{'className':styles$1[_0x3bf3a8(0x261)],'children':_0xee4313['map']((_0x4032ee,_0x2f587b)=>jsxRuntimeExports[_0x3bf3a8(0x16a)](_0x3bf3a8(0x374),{'children':[jsxRuntimeExports[_0x3bf3a8(0x413)](_0x3bf3a8(0x374),{'className':styles$1['formulaInputParamsListItemName'],'children':_0x4032ee[_0x3bf3a8(0x2ff)]}),jsxRuntimeExports['jsx'](_0x3bf3a8(0x374),{'className':styles$1[_0x3bf3a8(0x1f2)]})]},_0x2f587b))}),jsxRuntimeExports[_0x3bf3a8(0x413)](_0x3bf3a8(0x374),{'className':styles$1[_0x3bf3a8(0x185)],'children':jsxRuntimeExports[_0x3bf3a8(0x413)](FunctionParams,{'title':_0x4c2109===-0x1?jsxRuntimeExports[_0x3bf3a8(0x413)](FunctionHelp,{'prefix':_0x3424f7[_0x3bf3a8(0x31b)],'value':_0xee4313}):_0xee4313[_0x4c2109][_0x3bf3a8(0x2ff)],'value':_0x4c2109===-0x1?_0x3424f7['description']:_0xee4313[_0x4c2109][_0x3bf3a8(0x397)]})})]});}__name(InputParams,_0x40106a(0x176));const formulaSelectFunctionSelect=_0x40106a(0x40b),formulaSelectFunctionResult=_0x40106a(0x1d5),formulaSelectFunctionResultItem='univer-formula-select-function-result-item',formulaSelectFunctionResultItemNameLight=_0x40106a(0x430),formulaSelectFunctionResultItemSelected=_0x40106a(0x18c),formulaSelectFunctionResultItemActive=_0x40106a(0x325),formulaSelectFunctionContent=_0x40106a(0x25b),styles={'formulaSelectFunctionSelect':formulaSelectFunctionSelect,'formulaSelectFunctionResult':formulaSelectFunctionResult,'formulaSelectFunctionResultItem':formulaSelectFunctionResultItem,'formulaSelectFunctionResultItemNameLight':formulaSelectFunctionResultItemNameLight,'formulaSelectFunctionResultItemSelected':formulaSelectFunctionResultItemSelected,'formulaSelectFunctionResultItemActive':formulaSelectFunctionResultItemActive,'formulaSelectFunctionContent':formulaSelectFunctionContent};function SelectFunction(_0x3bfefe){const _0x481a6b=_0x40106a,{onChange:_0x35f4be}=_0x3bfefe,_0x9bf10a='-1',[_0x7ede20,_0x1ed457]=useState(''),[_0x59f009,_0x3892d0]=useState([]),[_0x50dbfc,_0x24bdb1]=useState(0x0),[_0x50f03f,_0x691644]=useState(_0x9bf10a),[_0x1bba0c,_0x2a56ab]=useState(0x0),[_0x14e36b,_0x17fdb2]=useState(null),_0x3b40b6=useDependency(IDescriptionService),_0x3cee36=useDependency(LocaleService),_0x1ef57a=getFunctionTypeValues(FunctionType,_0x3cee36);_0x1ef57a[_0x481a6b(0x3e8)]({'label':_0x3cee36['t'](_0x481a6b(0x416)),'value':_0x9bf10a});const _0x17b9c0=_0x3cee36['t']('formula.prompt.required'),_0x3c7f21=_0x3cee36['t'](_0x481a6b(0x29e));useEffect(()=>{_0x122d0a(_0x9bf10a);},[]),useEffect(()=>{_0x691836(0x0);},[_0x59f009]);const _0xc9aeb2=__name(_0x48c6da=>{const _0x21c894=_0x481a6b;if(_0x7ede20[_0x21c894(0x282)]()==='')return _0x48c6da;const _0x2377b2=new RegExp('('+_0x7ede20[_0x21c894(0x372)]()+')');return _0x48c6da[_0x21c894(0x432)](_0x2377b2)[_0x21c894(0x39b)](Boolean)[_0x21c894(0x42c)]((_0x63d65f,_0x417329)=>_0x63d65f[_0x21c894(0x3f8)](_0x2377b2)?jsxRuntimeExports['jsx'](_0x21c894(0x279),{'className':styles[_0x21c894(0x2be)],'children':_0x63d65f},_0x417329):_0x63d65f);},_0x481a6b(0x229)),_0x691836=__name(_0x1d372f=>{const _0x3c5791=_0x481a6b;if(_0x59f009[_0x3c5791(0x348)]===0x0){_0x17fdb2(null);return;}_0x2a56ab(_0x1d372f);const _0x58df46=_0x3b40b6[_0x3c5791(0x1bf)](_0x59f009[_0x1d372f]['name']);if(!_0x58df46){_0x17fdb2(null);return;}_0x17fdb2(_0x58df46),_0x35f4be(_0x58df46);},_0x481a6b(0x2e4));function _0x122d0a(_0x343c53){const _0x436ce6=_0x481a6b;_0x691644(_0x343c53);const _0x59289d=_0x3b40b6[_0x436ce6(0x30d)](+_0x343c53);_0x3892d0(_0x59289d);}__name(_0x122d0a,_0x481a6b(0x197));function _0x428557(_0x5af126){const _0x41967c=_0x481a6b;_0x1ed457(_0x5af126);const _0x5e6052=_0x3b40b6[_0x41967c(0x40e)](_0x5af126);_0x3892d0(_0x5e6052);}__name(_0x428557,'handleSearchInputChange');function _0x34aa6d(_0x50ee65){const _0x31a4fb=_0x481a6b;if(_0x50ee65[_0x31a4fb(0x3dc)](),_0x50ee65['key']===_0x31a4fb(0x300)){const _0x5b90ca=_0x50dbfc+0x1;_0x24bdb1(_0x5b90ca===_0x59f009[_0x31a4fb(0x348)]?0x0:_0x5b90ca);}else{if(_0x50ee65['key']===_0x31a4fb(0x21d)){const _0x23a81d=_0x50dbfc-0x1;_0x24bdb1(_0x23a81d===-0x1?_0x59f009['length']-0x1:_0x23a81d);}else _0x50ee65[_0x31a4fb(0x224)]===_0x31a4fb(0x422)&&_0x691836(_0x50dbfc);}}__name(_0x34aa6d,_0x481a6b(0x299));const _0x5a3490=__name(_0x56d4c8=>{_0x24bdb1(_0x56d4c8);},'handleLiMouseEnter'),_0x1328be=__name(()=>{_0x24bdb1(-0x1);},'handleLiMouseLeave');return jsxRuntimeExports['jsxs']('div',{'children':[jsxRuntimeExports[_0x481a6b(0x16a)](_0x481a6b(0x374),{'className':styles[_0x481a6b(0x30a)],'children':[jsxRuntimeExports[_0x481a6b(0x413)](Select,{'value':_0x50f03f,'options':_0x1ef57a,'onChange':_0x122d0a}),jsxRuntimeExports[_0x481a6b(0x413)](Input,{'placeholder':_0x3cee36['t'](_0x481a6b(0x3c6)),'onKeyDown':_0x34aa6d,'value':_0x7ede20,'onChange':_0x428557,'size':_0x481a6b(0x26e),'allowClear':!0x0})]}),jsxRuntimeExports['jsx']('ul',{'className':styles[_0x481a6b(0x3bc)],'onKeyDown':_0x34aa6d,'tabIndex':-0x1,'children':_0x59f009[_0x481a6b(0x42c)](({name:_0x200811},_0x230922)=>jsxRuntimeExports[_0x481a6b(0x16a)]('li',{'className':_0x50dbfc===_0x230922?styles[_0x481a6b(0x1a7)]+'\x20'+styles[_0x481a6b(0x428)]:styles[_0x481a6b(0x1a7)],'onMouseEnter':__name(()=>_0x5a3490(_0x230922),'onMouseEnter'),'onMouseLeave':_0x1328be,'onClick':__name(()=>_0x691836(_0x230922),'onClick'),'children':[_0x1bba0c===_0x230922&&jsxRuntimeExports['jsx'](CheckMarkSingle,{'className':styles['formulaSelectFunctionResultItemSelected']}),jsxRuntimeExports[_0x481a6b(0x413)](_0x481a6b(0x279),{'className':styles[_0x481a6b(0x332)],'children':_0xc9aeb2(_0x200811)})]},_0x230922))}),_0x14e36b&&jsxRuntimeExports[_0x481a6b(0x16a)](_0x481a6b(0x374),{'className':styles[_0x481a6b(0x429)],'children':[jsxRuntimeExports[_0x481a6b(0x413)](FunctionParams,{'title':_0x14e36b[_0x481a6b(0x31b)],'value':_0x14e36b[_0x481a6b(0x248)]}),jsxRuntimeExports[_0x481a6b(0x413)](FunctionParams,{'title':_0x3cee36['t'](_0x481a6b(0x1ce)),'value':jsxRuntimeExports[_0x481a6b(0x413)](FunctionHelp,{'prefix':_0x14e36b[_0x481a6b(0x31b)],'value':_0x14e36b[_0x481a6b(0x292)]})}),jsxRuntimeExports[_0x481a6b(0x413)](FunctionParams,{'title':_0x3cee36['t']('formula.prompt.helpExample'),'value':_0x14e36b[_0x481a6b(0x31b)]+'('+_0x14e36b['functionParameter'][_0x481a6b(0x42c)](_0x59099d=>_0x59099d['example'])[_0x481a6b(0x2d2)](',')+')'}),_0x14e36b[_0x481a6b(0x292)]&&_0x14e36b[_0x481a6b(0x292)]['map']((_0x3a6372,_0x38f473)=>jsxRuntimeExports[_0x481a6b(0x413)](FunctionParams,{'title':_0x3a6372['name'],'value':(_0x3a6372[_0x481a6b(0x3a8)]?_0x17b9c0:_0x3c7f21)+'\x20'+_0x3a6372['detail']},_0x38f473))]})]});}__name(SelectFunction,_0x40106a(0x3ef));function MoreFunctions(){const _0x524d16=_0x40106a,_0x1d06fb=useActiveWorkbook(),[_0xcc17a0,_0x269863]=useState(!0x0),[_0x4210c5,_0x4fbcaf]=useState(!0x1),[_0x56bd3f,_0x2e23f8]=useState(null),_0x5561c4=useDependency(LocaleService),_0x2b6d9b=useDependency(IEditorService);function _0xfaf2cc(){_0x269863(!_0xcc17a0),_0x4fbcaf(!_0x4210c5);}__name(_0xfaf2cc,'handleClickNextPrev');function _0x470261(){const _0x15a92a=_0xa8a2;_0x2b6d9b[_0x15a92a(0x19c)]('='+(_0x56bd3f==null?void 0x0:_0x56bd3f['functionName'])+'(');}return __name(_0x470261,_0x524d16(0x177)),jsxRuntimeExports[_0x524d16(0x16a)](_0x524d16(0x374),{'className':styles$3[_0x524d16(0x3f5)],'children':[_0xcc17a0&&jsxRuntimeExports['jsx'](SelectFunction,{'onChange':_0x2e23f8}),_0x4210c5&&jsxRuntimeExports[_0x524d16(0x413)](InputParams,{'functionInfo':_0x56bd3f,'onChange':__name(()=>{},_0x524d16(0x2ea))}),jsxRuntimeExports[_0x524d16(0x16a)](_0x524d16(0x374),{'className':styles$3['formulaMoreFunctionsOperation'],'children':[_0x4210c5&&jsxRuntimeExports[_0x524d16(0x413)](Button,{'type':_0x524d16(0x1ea),'size':_0x524d16(0x44e),'onClick':_0xfaf2cc,'children':_0x5561c4['t']('formula.moreFunctions.next')}),_0x4210c5&&jsxRuntimeExports['jsx'](Button,{'size':_0x524d16(0x44e),'onClick':_0xfaf2cc,'children':_0x5561c4['t']('formula.moreFunctions.prev')}),_0xcc17a0&&!!_0x1d06fb&&jsxRuntimeExports[_0x524d16(0x413)](Button,{'type':_0x524d16(0x1ea),'size':_0x524d16(0x44e),'onClick':_0x470261,'children':_0x5561c4['t'](_0x524d16(0x324))})]})]});}__name(MoreFunctions,_0x40106a(0x1e1));function InsertFunctionMenuItemFactory(_0x207210){const _0x5e92f0=_0x40106a;return{'id':InsertFunctionOperation['id'],'icon':_0x5e92f0(0x3de),'tooltip':'formula.insert.tooltip','type':MenuItemType[_0x5e92f0(0x2c9)],'selections':[{'label':_0x5e92f0(0x26c),'value':'SUM','icon':'SumSingle'},{'label':_0x5e92f0(0x3fe),'value':_0x5e92f0(0x3fe),'icon':_0x5e92f0(0x412)},{'label':_0x5e92f0(0x20d),'value':'COUNT','icon':'CntSingle'},{'label':'MAX','value':_0x5e92f0(0x29a),'icon':_0x5e92f0(0x18e)},{'label':'MIN','value':_0x5e92f0(0x24f),'icon':_0x5e92f0(0x1f9)}],'hidden$':getMenuHiddenObservable(_0x207210,UniverInstanceType[_0x5e92f0(0x1c4)]),'disabled$':getCurrentRangeDisable$(_0x207210,{'workbookTypes':[WorkbookEditablePermission],'worksheetTypes':[WorksheetEditPermission,WorksheetSetCellValuePermission],'rangeTypes':[RangeProtectionPermissionEditPoint]})};}__name(InsertFunctionMenuItemFactory,_0x40106a(0x2d3));function MoreFunctionsMenuItemFactory(_0x43164c){const _0x46bf84=_0x40106a;return{'id':MoreFunctionsOperation['id'],'title':_0x46bf84(0x291),'type':MenuItemType[_0x46bf84(0x360)]};}__name(MoreFunctionsMenuItemFactory,_0x40106a(0x22c));function menuClipboardDisabledObservable(_0x4ae74e){const _0x480a5e=_0x40106a;return _0x4ae74e[_0x480a5e(0x424)](IUniverInstanceService)[_0x480a5e(0x28c)](UniverInstanceType[_0x480a5e(0x1c4)])[_0x480a5e(0x41a)](switchMap(_0x32f754=>_0x32f754?_0x4ae74e[_0x480a5e(0x424)](IClipboardInterfaceService)?new Observable(_0x54b53b=>_0x54b53b[_0x480a5e(0x33a)](!_0x4ae74e[_0x480a5e(0x424)](IClipboardInterfaceService)[_0x480a5e(0x2cf)])):of(!0x0):of(!0x0)));}__name(menuClipboardDisabledObservable,_0x40106a(0x272));function PasteFormulaMenuItemFactory(_0x541da5){const _0x3714b7=_0x40106a;return{'id':SheetOnlyPasteFormulaCommand['id'],'type':MenuItemType[_0x3714b7(0x360)],'title':_0x3714b7(0x19f),'disabled$':menuClipboardDisabledObservable(_0x541da5)[_0x3714b7(0x41a)](combineLatestWith(getCurrentRangeDisable$(_0x541da5,{'workbookTypes':[WorkbookEditablePermission],'rangeTypes':[RangeProtectionPermissionEditPoint],'worksheetTypes':[WorksheetSetCellValuePermission,WorksheetEditPermission]})),map(([_0x1177b0,_0x36ec30])=>_0x1177b0||_0x36ec30))};}__name(PasteFormulaMenuItemFactory,_0x40106a(0x307));const menuSchema={[RibbonStartGroup['FORMULAS_INSERT']]:{[InsertFunctionOperation['id']]:{'order':0x1,'menuItemFactory':InsertFunctionMenuItemFactory,[MoreFunctionsOperation['id']]:{'order':0x1,'menuItemFactory':MoreFunctionsMenuItemFactory}}},[PASTE_SPECIAL_MENU_ID]:{[SheetOnlyPasteFormulaCommand['id']]:{'order':0x4,'menuItemFactory':PasteFormulaMenuItemFactory}}},META_KEY_CTRL_AND_SHIFT='meta_key_ctrl_And_Shift',PROMPT_SELECTION_KEYCODE_ARROW_LIST=[KeyCode[_0x40106a(0x1fb)],KeyCode[_0x40106a(0x1e9)],KeyCode[_0x40106a(0x3b7)],KeyCode[_0x40106a(0x3f1)]],PROMPT_SELECTION_KEYCODE_LIST=[...PROMPT_SELECTION_KEYCODE_ARROW_LIST,KeyCode[_0x40106a(0x3c5)],KeyCode[_0x40106a(0x3d4)],KeyCode['ESC']];function promptSelectionShortcutItem(){const _0x5c5336=[];for(const _0x37ad4f of PROMPT_SELECTION_KEYCODE_LIST)_0x5c5336['push']({'id':SelectEditorFormulaOperation['id'],'binding':_0x37ad4f,'preconditions':__name(_0x5b5abe=>whenFormulaEditorActivated(_0x5b5abe),'preconditions'),'staticParameters':{'eventType':DeviceInputEventType['Keyboard'],'keycode':_0x37ad4f}});return _0x5c5336;}__name(promptSelectionShortcutItem,'promptSelectionShortcutItem');function promptSelectionShortcutItemShift(){const _0x17018f=_0x40106a,_0x4248da=[];for(const _0x10a04e of PROMPT_SELECTION_KEYCODE_ARROW_LIST)_0x4248da['push']({'id':SelectEditorFormulaOperation['id'],'binding':_0x10a04e|MetaKeys[_0x17018f(0x311)],'preconditions':__name(_0x1bf3a4=>whenFormulaEditorActivated(_0x1bf3a4),_0x17018f(0x1e4)),'staticParameters':{'eventType':DeviceInputEventType[_0x17018f(0x233)],'keycode':_0x10a04e,'metaKey':MetaKeys[_0x17018f(0x311)]}});return _0x4248da;}__name(promptSelectionShortcutItemShift,_0x40106a(0x38f));function promptSelectionShortcutItemCtrl(){const _0x374325=_0x40106a,_0x24958e=[];for(const _0x2099a6 of PROMPT_SELECTION_KEYCODE_ARROW_LIST)_0x24958e[_0x374325(0x443)]({'id':SelectEditorFormulaOperation['id'],'binding':_0x2099a6|MetaKeys[_0x374325(0x1f3)],'preconditions':__name(_0x21c7ca=>whenFormulaEditorActivated(_0x21c7ca),_0x374325(0x1e4)),'staticParameters':{'eventType':DeviceInputEventType[_0x374325(0x233)],'keycode':_0x2099a6,'metaKey':MetaKeys[_0x374325(0x1f3)]}});return _0x24958e;}function _0x3940(){const _0x5e04b5=['_resetSequenceNodes','interceptor','loopColor6','getOwnPropertyDescriptor','registerComponent','detail','max','_checkShouldEnterSelectingMode','onStarting','filter','getContextValue','type','entries','widgets','getSheetBySheetId','_selectionMoveStart$','accept','disableHelperSelection','findStartRow','forEach','LEFT','formulaHelpFunction','require','getSheetId','_remainLastEnabled','disableLockedSelectionChange','actualRow','handleClose','formulaHelpFunctionContent','search$','__decorateParam$9','__decorateParam$8','handleLiMouseEnter','univer-formula-search-function-item-active','EQUALS','endIndex','apply','ARROW_LEFT','default-paste-formula','getCurrentSkeleton','min','_onPointerDown','formulaSelectFunctionResult','slice','3688CaQNJX','_selectionRenderService','intercept','getSequenceNodes','univer-formula-help-param','acceptFormulaName','defs','ENTER','formula.moreFunctions.searchFunctionPlaceholder','setSequenceNodes','_accept$','41794320BYxOZx','Fragment','revert-layer','getFocusEditor','_currentUniverSheet','formulaHelpFunctionContentParams','isSingleChoice','formulaFunctionParamsTitle','_pressEnter','replaceTextRanges','_help$','TAB','help','_stringColor','getFormulaRefSelectionStyle','_sheetInterceptorService','getUnitId','loopColor5','addSelections','stopPropagation','Help','FunctionSingle','_zenZoneService','FORMULA','displayName','body','indexOf','clearLastSelection','removeAlert','cycle','scrollEvent$','unshift','MoreSingle','navigate','_currentInsertRefStringIndex','ROW','remove','getActiveTextRange','SelectFunction','_addSelectionControlBySelectionData','ARROW_RIGHT','univer-formula-input-params-list-item-selector','skeleton','set','formulaMoreFunctions','getValueMatrixOfPasteFromIsNull','getSpreadsheetFocusState','match','isFormulaEditor','options','getRange','sequenceNodesBuilder','univer-formula-search-function-item-desc','AVERAGE','offsetX','toLocaleLowerCase','token','_refreshFormulaAndCellEditor','FormulaClipboardController','getCellMatrix','__defNormalProp','STRING','formulaHelpParamItem','attrs','NUMBER','getDefaultPasteValueMatrix','univer-formula-select-function-select','_userMouseListener','__decorateParam$7','getSearchListByName','string','prototype','NULL','AvgSingle','jsx','pasteType','_initialChangeEditor','formula.moreFunctions.allFunctions','register','_shortcutService','formula.prompt.helpAbstract','pipe','nodeType','_config','scrollToVisible','univer-formula-help-decorator','getCellRichText','visible$','_changeRuntime','Enter','promptSelectionShortcutItemCtrl','get','title','_removeArrayFormulaRangeShape','univer-formula-help-function-content-params','formulaSelectFunctionResultItemActive','formulaSelectFunctionContent','MOVING','deepClone','map','_hideFunctionPanel','setContextValue','insertSequenceString','univer-formula-select-function-result-item-name-light','disableLockedSelectionInsert','split','_getCurrentUnitIdAndSheetId','univer-formula-help-function-content','hasDefinedNameDescription','formulaHelpFunctionTitleIcons','_previousInsertRefStringIndex','_onSelectionControlChange','selectionMoving$','registerCommand','_getCurrentChar','__decorateParam$5','MOVE_START','_arrowMoveActionState','FormulaAutoFillController','_previousSequenceNodes','1133431sAhsWo','univer-formula-help-function-title-icon','push','_lexerTreeBuilder','univer-formula-input-params-list-item-name','_MORE_FUNCTIONS_COMPONENT','makeDirty','inputFormula$','showAlert','_isSelectingMode','details-single','getSpecialPasteValueValueMatrix','CELL_CONTENT','small','_checkCurrentSheet','render','getCurrent','loopColor9','enable','loopColor10','jsxs','close-single','fromSelection','FormulaRenderManagerController','FunctionHelp','value','setEvent','asObservable','unitId','RenderFormulaPromptContent','onRendered','univer-formula-help-function-content-params-detail','InputParams','handleConfirm','_getSheetIdByName','CONNECT','OPERATION','moveFormulaRefOffset','isSearching','className','isLockedSelectionChange','accept$','_registerAutoFill','_renderManagerService','5660oUQIpm','_changeFunctionPanelState','Params','formulaInputParamsInfo','COLON','getPosition','react.element','registerRule','_getContextState','getData','univer-formula-select-function-result-item-selected','_cellAlertManagerService','MaxSingle','_workbookSelections','formulaSearchFunctionItemDesc','querySelectorAll','updatePosition','find','directionToOffset','univer-formula-help-function-active','Dblclick','handleSelectChange','formulaHelpParam','onlyInputRange','getUniverDocInstance','getEditor','setFormula','enableLockedSelectionChange','univer-formula-search-function-item-name-light','formula.operation.pasteFormula','_getEditorOpenedForSheet','FORMULA_EDITOR_SHOW','_initUserActionSyncListener','_initInterceptorEditorStart','_closeRangePrompt','_getSheetNameById','worksheet','formulaSelectFunctionResultItem','_skeleton','copyType','FormulaAlertRenderController','getBoundingClientRect','unsubscribe','_contextMenuService','setRemainLastEnabled','replaceRuntimeIdsInDefs','startAbsoluteRefType','subscribeContextValue$','has','_resetTemp','6026772PdlbsS','_registerClipboardHook','setSelections','getColumnCount','_logService','getFunctionAndParameter','formula-ui.operation.insert-function','isLockedSelectionInsert','generateParam','some','_insertControlSelectionReplace','getFunctionInfo','reset','svg','disposeWithMe','concat','UNIVER_SHEET','handleSwitchActive','replaceRuntimeIdsAndExtInAttrs','hasRowHeader','__decorateClass$3','setValue','handleLiMouseLeave','11798775fTBuwc','loopColor12','fill','formula.moreFunctions.syntax','_refreshSelectionForReference','call','_enableRefSelectionsRenderService','focus','getLocation','__decorateClass','univer-formula-select-function-result','formulaHelpFunctionActive','CYCLE','_syncToEditor','desc','offsetTop','_updateSelecting','_searching','_navigate$','spill','currentStyle','_initSelectionsEndListener','MoreFunctions','_registerShortcuts','_pressEsc','preconditions','afterVisible$','promptSelectionShortcutItemCtrlAndShift','forValue','DetailsSingle','ARROW_UP','primary','COMMA','_previousEditorUnitId','symbol','height','textRuns','enableLockedSelectionInsert','_fitEditorSize','formulaInputParamsListItemSelector','CTRL_COMMAND','_getCurrentDataStream','formulaHelpDecorator','_commandExecutedListener','menu','_getEditorObject','MinSingle','calculate','ARROW_DOWN','onClick','_currentlyWorkingRefRenderer','startIndex','function','getRowCount','endAbsoluteRefType','UNIVER_DOC','disable','colorChannel1','offsetHeight','77439VQZSLp','onPointerDown$','univer-formula-help-param-prefix','FormulaPromptService','rotateZ(-90deg)','_formulaRefColors','SHEET_FORMULA_UI_PLUGIN','COUNT','__decorateParam$4','registerRenderModule','__decorateClass$8','BEFORE_CELL_EDIT','flat','0\x200\x2016\x2016','scrollBar','dataStream','__publicField','_selectionsChangeDisposables','isStringNumber','_disableSelectionChanging','__decorateParam','enableForceKeepVisible','clone','ArrowUp','selectionScaling$','_inputPanelState','_initialize','xlink:href','VALUE','_sheetSkeletonManagerService','key','onInputBefore$','_initAcceptFormula','_formulaDataModel','setAlpha','highlightSearchText','_editorService','_userCursorMove','MoreFunctionsMenuItemFactory','keys','_registerRenderModules','_editorModelUnitIds','scrollTo','_enterSelectingMode','univer-formula-search-function','Keyboard','top','univer-formula-help-function-title-icons','CALC','url(#$1','_insertSelections','FUNCTION','hasOwnProperty','getBody','_pressArrowKey','rows','_reset','dispose','substring','left','_createArrayFormulaRangeShape','with','_onPasteCells','onCommandExecuted','RIGHT','getDefaultRefSelectionStyle','description','_refreshArrayFormulaRangeShapeByRow','_init','beforeCommandExecuted','subscribeEvent','loopColor3','_inputFormulaListener','MIN','formula-ui.operation.change-ref-to-absolute','_initSelectionChangeListener','_updateSelections','toString','_descriptionService','SPECIAL_PASTE_FORMULA','NAME','colorWhite','getCurrentSequenceNodeByIndex','getSkeleton','react.fragment','univer-formula-select-function-content','NORMAL','update','UniverSheetsFormulaUIPlugin','visible','_generateRefString','formulaInputParamsList','removeEventListener','formulaHelpFunctionContentInner','_refreshSelectionControl','check-mark-single','moveGap','_updateArrayFormulaRangeShape','endRow','getDataLength','defaultProps','_cursorStateListener','SUM','getCell','large','clear','_context','_initSkeletonChangeListener','menuClipboardDisabledObservable','NONE','exports','scroll','invoke','startRow','univer-formula-help-function-title','span','formulaHelpFunctionTitleIcon','CloseSingle','_sheetsSelectionsService','getAllRenderersOfType','_layoutService','_pasteFormulaHook','_pasteWithFormulaHook','setTimeout','trim','_initCanvasEventListeners','SPECIAL_PASTE_FORMAT','_refreshArrayFormulaRangeShape','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','button','_pressTab','extractFormulaError','getOwnPropertySymbols','_initialCursorSync','getCurrentTypeOfUnit$','isEditor','startColumn','getSelectionControls','_search$','formula.insert.more','functionParameter','SPECIAL_PASTE_VALUE','__decorateClass$1','_getSheetObject','loopColor4','_changeSingleRef','generateRandomId','handleSelectListKeyDown','MAX','univer-formula-function-params','onPasteCells','_isLockedOnSelectionChangeRefString','formula.prompt.optional','divByZero','_acceptFormulaName$','_checkClearingLastSelection','currentColor','getArrayFormulaCellData','_changeHelpFunctionPanelState','_autoFillService','FORMULA_PROMPT_ACTIVATED','isNumberCell','formula.error.title','tag','clearSequenceNodes','data','updateControlForCurrentByRangeData','parentNode','56pDshfm','getOpenForSheetSubUnitId','_allSelectionRenderServices','selectionMoveStart$','getUniverSheetInstance','_highlightFormula','1em','col','univer-formula-function-params-title','_themeService','getCurrentUnitForType','[FormulaEditorShowController]:\x20should\x20not\x20receive\x20currentSkeleton$\x20as\x20null!','currentSkeleton$','_getFormulaAndCellEditorBody','_moveInEditor','getViewport','formulaSelectFunctionResultItemNameLight','_docSelectionManagerService','_formulaPromptService','hasAutoFill','pluginName','setSkipLastEnabled','open','4BHHidI','_fillCopyFormula','_listenInputCache','children','SELECTOR','enableSelectionChanging','getFormulaStringByCell','HelpFunction','ReactCurrentOwner','_refSelectionsService','supportClipboard','params','__decorateParam$3','join','InsertFunctionMenuItemFactory',',...]','specialPaste.formula','formulaSearchFunctionItem','formula.functionType.','__decorateParam$6','_updateRefSelectionStyle','_configService','loopColor2','_exceedCurrentRange','ESC','_sequenceNodes','REFERENCE','num','_hoverManagerService','FormulaEditorShowController','getFormulaData','setCurrentFunctionInfo','sheets-formula.base.config','_previousRangesCount','help$','connect','calc','onChange','findRefRange','range','_componentManager','findStartColumn','evenodd','DIV_BY_ZERO','error','cols','_registerCommands','_registerMenus','repeat','_updateEditorModel','_contextSwitch','_initCellAlertPopup','ref','_isFormulaEditorActivated','COPY','currentAlert','attachPrimaryWithCoord','getValue','name','ArrowDown','icon','useResizeScrollObserver','FormulaUIController','actualColumn','getCurrentTheme','insertSequenceRef','PasteFormulaMenuItemFactory','_getPrimary','_changeRangeRef','formulaSelectFunctionSelect','getCurrentSequenceNodeIndex','handler','getSearchListByType','smooth','loopColor11','row','SHIFT','markers','_injector','_isLockedOnSelectionInsertRefString','getSetCellFormulaMutations','_contextService','formulaSearchFunctionItemActive','formula.prompt.required','COLUMN','navigate$','functionName','hyacinth700','_sheetClipboardService','_quitSelectingMode','_focusIsOnlyRange','_getCurrentBodyDataStreamAndOffset','extend','formula-ui.operation.select-editor-formula','_initialFormulaTheme','formula.moreFunctions.confirm','univer-formula-select-function-result-item-active','DOWN','_insertControlSelections','isVisible','getEditCellState','subUnitId','_editorBridgeService','onReady','univer-formula-search-function-item','executeCommand','sheet.command.paste-formula','attachSelectionWithCoord','subscribe','formulaSelectFunctionResultItemName','_helping','univer-formula-help-function-content-params-title','COMMAND','getCurrentSequenceNode','__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED','current','_changeRefString','next','whenEditorStandalone','_isSelectionMovingRefSelections','formula-ui.operation.search-function','getCurrentLastSelection','ALL','univerjs-icon\x20univerjs-icon-','getRenderById','CONTENT','add','addEventListener','_registerComponents','endColumn','__decorateClass$6','length','Style','formulaSearchFunctionItemName','getArrayFormulaRange','setConfig','isHelping','_commandService','document','_buildTextRuns','offset','isSingleCell','defineProperty','_existsSequenceNode','univer-formula-help-param-item','_selectionControls','formulaFunctionParamsDetail','propertyIsEnumerable','getCurrentSelections','onMouseEnter','updateSequenceRef','getWorkbookSelections','isSheetEditor','_numberColor','complete','BUTTON','__decorateClass$4','_menuManagerService','selectionScaled$','_initZenService','_getActiveViewport','none','offsetY','isMultiRowsColumnsRange','formula.insert.tooltip','_skipLastEnabled','getActiveSheet','getCurrentUniverDocInstance','formulaHelpParamPrefix','_disposeSelectionsChangeListeners','formulaInputParams','getActiveViewportByCoord','defIds','toLocaleUpperCase','idSuffix','div','formulaHelpFunctionContentParamsTitle','acceptFormulaName$','_eventDisposables','location','more-single','_displayArrayFormulaRangeShape','formulaHelpFunctionTitle','getSelectionDataWithStyle','assign','isContinue','closeRangePrompt$','loopColor7','getInterceptPoints','changeVisible','_univerInstanceService','M8.75\x205.32495C8.75\x205.73916\x208.41421\x206.07495\x208\x206.07495\x207.58579\x206.07495\x207.25\x205.73916\x207.25\x205.32495\x207.25\x204.91074\x207.58579\x204.57495\x208\x204.57495\x208.41421\x204.57495\x208.75\x204.91074\x208.75\x205.32495zM8.5999\x207.52505C8.5999\x207.19368\x208.33127\x206.92505\x207.9999\x206.92505\x207.66853\x206.92505\x207.3999\x207.19368\x207.3999\x207.52505V11.425C7.3999\x2011.7564\x207.66853\x2012.025\x207.9999\x2012.025\x208.33127\x2012.025\x208.5999\x2011.7564\x208.5999\x2011.425V7.52505z','which','formulaHelpParamActive','zIndex','CheckMarkSingle','_previousShape','splice','987776VKOonP','path','_localeService','formulaFunctionParams','promptSelectionShortcutItemShift','selectionMoveEnd$','REF'];_0x3940=function(){return _0x5e04b5;};return _0x3940();}__name(promptSelectionShortcutItemCtrl,_0x40106a(0x423));function promptSelectionShortcutItemCtrlAndShift(){const _0x19b7d0=_0x40106a,_0x88e5c8=[];for(const _0x5be671 of PROMPT_SELECTION_KEYCODE_ARROW_LIST)_0x88e5c8[_0x19b7d0(0x443)]({'id':SelectEditorFormulaOperation['id'],'binding':_0x5be671|MetaKeys[_0x19b7d0(0x311)]|MetaKeys[_0x19b7d0(0x1f3)],'preconditions':__name(_0xd2fe47=>whenFormulaEditorActivated(_0xd2fe47),_0x19b7d0(0x1e4)),'staticParameters':{'eventType':DeviceInputEventType[_0x19b7d0(0x233)],'keycode':_0x5be671,'metaKey':META_KEY_CTRL_AND_SHIFT}});return _0x88e5c8;}__name(promptSelectionShortcutItemCtrlAndShift,_0x40106a(0x1e6));const ChangeRefToAbsoluteShortcut={'id':ReferenceAbsoluteOperation['id'],'binding':KeyCode['F4'],'preconditions':__name(_0xd3276=>whenFormulaEditorActivated(_0xd3276),_0x40106a(0x1e4))};function singleEditorPromptSelectionShortcutItem(){const _0x96b2ae=_0x40106a,_0x15c8b8=[];for(const _0x773b2c of[KeyCode[_0x96b2ae(0x3c5)],KeyCode[_0x96b2ae(0x3d4)],KeyCode[_0x96b2ae(0x1fb)],KeyCode['ARROW_UP']])_0x15c8b8[_0x96b2ae(0x443)]({'id':SelectEditorFormulaOperation['id'],'binding':_0x773b2c,'preconditions':__name(_0xce0c6c=>whenEditorStandalone(_0xce0c6c),'preconditions'),'staticParameters':{'eventType':DeviceInputEventType[_0x96b2ae(0x233)],'keycode':_0x773b2c,'isSingleEditor':!0x0}});return _0x15c8b8;}__name(singleEditorPromptSelectionShortcutItem,'singleEditorPromptSelectionShortcutItem');var __defProp$3=Object[_0x40106a(0x353)],__getOwnPropDesc$3=Object[_0x40106a(0x395)],__decorateClass$3=__name((_0x4c7b05,_0x22b263,_0x23a99c,_0xbd19e)=>{for(var _0x338741=_0xbd19e>0x1?void 0x0:_0xbd19e?__getOwnPropDesc$3(_0x22b263,_0x23a99c):_0x22b263,_0x16c29d=_0x4c7b05['length']-0x1,_0x32a09b;_0x16c29d>=0x0;_0x16c29d--)(_0x32a09b=_0x4c7b05[_0x16c29d])&&(_0x338741=(_0xbd19e?_0x32a09b(_0x22b263,_0x23a99c,_0x338741):_0x32a09b(_0x338741))||_0x338741);return _0xbd19e&&_0x338741&&__defProp$3(_0x22b263,_0x23a99c,_0x338741),_0x338741;},_0x40106a(0x1c8)),__decorateParam$3=__name((_0x179814,_0x118931)=>(_0x5a6404,_0x4dddc2)=>_0x118931(_0x5a6404,_0x4dddc2,_0x179814),_0x40106a(0x2d1)),_a7;let FormulaUIController=(_a7=class extends Disposable{constructor(_0xd30e74,_0x3212bd,_0x322d5d,_0x4cd6f7,_0x42de5f,_0xd16d0c,_0x31b416){const _0xdfb79f=_0x40106a;super(),this[_0xdfb79f(0x313)]=_0xd30e74,this['_menuManagerService']=_0x3212bd,this[_0xdfb79f(0x34e)]=_0x322d5d,this[_0xdfb79f(0x418)]=_0x4cd6f7,this['_uiPartsService']=_0x42de5f,this[_0xdfb79f(0x181)]=_0xd16d0c,this[_0xdfb79f(0x2ed)]=_0x31b416,this[_0xdfb79f(0x220)]();}[_0x40106a(0x220)](){const _0x24c11e=_0x40106a;this[_0x24c11e(0x2f3)](),this[_0x24c11e(0x2f4)](),this['_registerShortcuts'](),this[_0x24c11e(0x345)](),this['_registerRenderModules']();}['_registerMenus'](){const _0x396d3f=_0x40106a;this[_0x396d3f(0x362)]['mergeMenu'](menuSchema);}[_0x40106a(0x2f3)](){const _0x3b755c=_0x40106a;[SheetOnlyPasteFormulaCommand,InsertFunctionOperation,MoreFunctionsOperation,SearchFunctionOperation,HelpFunctionOperation,SelectEditorFormulaOperation,ReferenceAbsoluteOperation]['forEach'](_0x2241bc=>this[_0x3b755c(0x1c2)](this[_0x3b755c(0x34e)][_0x3b755c(0x43a)](_0x2241bc)));}[_0x40106a(0x1e2)](){const _0xf9f5ac=_0x40106a;[...promptSelectionShortcutItem(),...promptSelectionShortcutItemShift(),...promptSelectionShortcutItemCtrl(),...promptSelectionShortcutItemCtrlAndShift(),...singleEditorPromptSelectionShortcutItem(),ChangeRefToAbsoluteShortcut][_0xf9f5ac(0x3a5)](_0x4583a1=>{const _0x360517=_0xf9f5ac;this[_0x360517(0x1c2)](this[_0x360517(0x418)]['registerShortcut'](_0x4583a1));});}[_0x40106a(0x345)](){const _0x284726=_0x40106a;this['disposeWithMe'](this['_uiPartsService'][_0x284726(0x396)](BuiltInUIPart[_0x284726(0x342)],()=>connectInjector(RenderFormulaPromptContent,this[_0x284726(0x313)]))),this[_0x284726(0x2ed)][_0x284726(0x417)](MORE_FUNCTIONS_COMPONENT,MoreFunctions);}[_0x40106a(0x22e)](){const _0x265411=_0x40106a;this[_0x265411(0x1c2)](this[_0x265411(0x181)][_0x265411(0x20f)](UniverInstanceType[_0x265411(0x1c4)],[FormulaEditorShowController]));}},__name(_a7,_0x40106a(0x303)),_a7);FormulaUIController=__decorateClass$3([__decorateParam$3(0x0,Inject(Injector)),__decorateParam$3(0x1,IMenuManagerService),__decorateParam$3(0x2,ICommandService),__decorateParam$3(0x3,IShortcutService),__decorateParam$3(0x4,IUIPartsService),__decorateParam$3(0x5,IRenderManagerService),__decorateParam$3(0x6,Inject(ComponentManager))],FormulaUIController);function getFormulaRefSelectionStyle(_0x31ddea,_0x22f762,_0x4fa886){const _0x499cef=_0x40106a,_0x45d176=_0x31ddea[_0x499cef(0x305)](),_0x4f4fec=new ColorKit(_0x22f762)['setAlpha'](0.05)['toRgbString']();return{'id':_0x4fa886,'strokeWidth':0x1,'stroke':_0x22f762,'fill':_0x4f4fec,'widgets':{'tl':!0x0,'tc':!0x0,'tr':!0x0,'ml':!0x0,'mr':!0x0,'bl':!0x0,'bc':!0x0,'br':!0x0},'widgetSize':0x6,'widgetStrokeWidth':0x1,'widgetStroke':_0x45d176[_0x499cef(0x257)],'hasAutoFill':!0x1,'hasRowHeader':!0x1,'hasColumnHeader':!0x1};}__name(getFormulaRefSelectionStyle,_0x40106a(0x3d7));var __defProp$2=Object['defineProperty'],__getOwnPropDesc$2=Object[_0x40106a(0x395)],__decorateClass$2=__name((_0x3f128e,_0x4758ae,_0x348906,_0x2f4b38)=>{for(var _0x4fc972=_0x2f4b38>0x1?void 0x0:_0x2f4b38?__getOwnPropDesc$2(_0x4758ae,_0x348906):_0x4758ae,_0x4e33ee=_0x3f128e['length']-0x1,_0x216062;_0x4e33ee>=0x0;_0x4e33ee--)(_0x216062=_0x3f128e[_0x4e33ee])&&(_0x4fc972=(_0x2f4b38?_0x216062(_0x4758ae,_0x348906,_0x4fc972):_0x216062(_0x4fc972))||_0x4fc972);return _0x2f4b38&&_0x4fc972&&__defProp$2(_0x4758ae,_0x348906,_0x4fc972),_0x4fc972;},'__decorateClass$2'),__decorateParam$2=__name((_0x16cd13,_0x1cede5)=>(_0x1dc505,_0x1ccb63)=>_0x1cede5(_0x1dc505,_0x1ccb63,_0x16cd13),'__decorateParam$2'),_a8;let RefSelectionsRenderService=(_a8=class extends BaseSelectionRenderService{constructor(_0x50a658,_0x493c1c,_0xd089b5,_0x19f98b,_0x313f54,_0x1dd4e3){const _0x434de6=_0x40106a;super(_0x493c1c,_0xd089b5,_0x19f98b,_0x313f54),__publicField(this,'_workbookSelections'),__publicField(this,_0x434de6(0x377)),(this['_context']=_0x50a658,this[_0x434de6(0x2ce)]=_0x1dd4e3,this[_0x434de6(0x18f)]=this[_0x434de6(0x2ce)][_0x434de6(0x35c)](this['_context'][_0x434de6(0x172)]),this[_0x434de6(0x251)](),this['_initSkeletonChangeListener'](),this[_0x434de6(0x1a2)](),this['_setSelectionStyle'](getDefaultRefSelectionStyle(this[_0x434de6(0x2b7)])),this['_remainLastEnabled']=!0x0);}[_0x40106a(0x1d3)](){const _0x1e7230=_0x40106a;return this[_0x1e7230(0x1a8)][_0x1e7230(0x1d3)]();}[_0x40106a(0x1ae)](_0x2af52b){const _0x4215a2=_0x40106a;this[_0x4215a2(0x3aa)]=_0x2af52b;}[_0x40106a(0x2c3)](_0x7202f6){const _0x426b34=_0x40106a;this[_0x426b34(0x36a)]=_0x7202f6;}['clearLastSelection'](){const _0x16d917=_0x40106a,_0x4b588c=this[_0x16d917(0x356)][this[_0x16d917(0x356)][_0x16d917(0x348)]-0x1];_0x4b588c&&(_0x4b588c[_0x16d917(0x23f)](),this[_0x16d917(0x356)]['pop']());}['enableSelectionChanging'](){const _0x49d1cc=_0x40106a;return this['_disableSelectionChanging'](),this[_0x49d1cc(0x377)]=this[_0x49d1cc(0x283)](),toDisposable(()=>this[_0x49d1cc(0x219)]());}[_0x40106a(0x219)](){const _0x54d2f8=_0x40106a;var _0x33374f;(_0x33374f=this[_0x54d2f8(0x377)])==null||_0x33374f[_0x54d2f8(0x23f)](),this[_0x54d2f8(0x377)]=null;}[_0x40106a(0x283)](){const _0x26f04e=_0x40106a,_0x106e68=this[_0x26f04e(0x295)](),{spreadsheetRowHeader:_0x2e2422,spreadsheetColumnHeader:_0x5d629e,spreadsheet:_0x484a39,spreadsheetLeftTopPlaceholder:_0x4b2b8d}=_0x106e68,{scene:_0x5e8aad}=this[_0x26f04e(0x270)],_0x3520b1=new DisposableCollection();return _0x3520b1['add'](_0x484a39==null?void 0x0:_0x484a39[_0x26f04e(0x207)]['subscribeEvent']((_0x11ad9a,_0x1a921b)=>{const _0x1339e3=_0x26f04e;this[_0x1339e3(0x3bb)](_0x11ad9a,_0x484a39[_0x1339e3(0x387)]+0x1,RANGE_TYPE[_0x1339e3(0x25c)],this[_0x1339e3(0x365)](_0x11ad9a)),_0x11ad9a[_0x1339e3(0x287)]!==0x2&&_0x1a921b[_0x1339e3(0x3dc)]();})),_0x3520b1['add'](_0x2e2422==null?void 0x0:_0x2e2422[_0x26f04e(0x207)]['subscribeEvent']((_0x129c9f,_0x2a034b)=>{const _0x1e2067=_0x26f04e,_0x1425da=this[_0x1e2067(0x223)][_0x1e2067(0x451)]()['skeleton'],{row:_0x24d3de}=getCoordByOffset(_0x129c9f[_0x1e2067(0x3ff)],_0x129c9f[_0x1e2067(0x367)],_0x5e8aad,_0x1425da);checkInHeaderRanges(this[_0x1e2067(0x18f)]['getCurrentSelections'](),_0x24d3de,RANGE_TYPE[_0x1e2067(0x3ec)])||(this[_0x1e2067(0x3bb)](_0x129c9f,(_0x484a39[_0x1e2067(0x387)]||0x1)+0x1,RANGE_TYPE[_0x1e2067(0x3ec)],this['_getActiveViewport'](_0x129c9f),ScrollTimerType['Y']),_0x129c9f['button']!==0x2&&_0x2a034b['stopPropagation']());})),_0x3520b1[_0x26f04e(0x343)](_0x5d629e==null?void 0x0:_0x5d629e[_0x26f04e(0x207)][_0x26f04e(0x24c)]((_0x5898d7,_0x2e15c2)=>{const _0x2b5e1e=_0x26f04e,_0x5d8beb=this['_sheetSkeletonManagerService'][_0x2b5e1e(0x451)]()['skeleton'],{column:_0x4d8f32}=getCoordByOffset(_0x5898d7[_0x2b5e1e(0x3ff)],_0x5898d7[_0x2b5e1e(0x367)],_0x5e8aad,_0x5d8beb);checkInHeaderRanges(this[_0x2b5e1e(0x18f)]['getCurrentSelections'](),_0x4d8f32,RANGE_TYPE['COLUMN'])||(this[_0x2b5e1e(0x3bb)](_0x5898d7,(_0x484a39[_0x2b5e1e(0x387)]||0x1)+0x1,RANGE_TYPE['COLUMN'],this[_0x2b5e1e(0x365)](_0x5898d7),ScrollTimerType['X']),_0x5898d7['button']!==0x2&&_0x2e15c2[_0x2b5e1e(0x3dc)]());})),_0x3520b1['add'](_0x4b2b8d==null?void 0x0:_0x4b2b8d['onPointerDown$'][_0x26f04e(0x24c)]((_0x317cd9,_0x1d4fab)=>{const _0x54dc08=_0x26f04e;this[_0x54dc08(0x23e)]();const _0x13d35a=this[_0x54dc08(0x223)][_0x54dc08(0x451)]()[_0x54dc08(0x3f3)],_0x472de1=getAllSelection(_0x13d35a),_0x5c1b5a=this['attachSelectionWithCoord'](_0x472de1);this[_0x54dc08(0x3f0)](_0x5c1b5a),this[_0x54dc08(0x3a1)]['next'](this[_0x54dc08(0x37c)]()),_0x317cd9[_0x54dc08(0x287)]!==0x2&&_0x1d4fab[_0x54dc08(0x3dc)]();})),_0x3520b1;}['_initUserActionSyncListener'](){const _0x1e8937=_0x40106a;this['disposeWithMe'](this['selectionMoveStart$'][_0x1e8937(0x331)](_0x66fe82=>{const _0x50c83d=_0x1e8937;this['_updateSelections'](_0x66fe82,SelectionMoveType[_0x50c83d(0x43d)]);})),this['disposeWithMe'](this['selectionMoving$'][_0x1e8937(0x331)](_0x567282=>{const _0x4d7372=_0x1e8937;this[_0x4d7372(0x252)](_0x567282,SelectionMoveType[_0x4d7372(0x42a)]);})),this[_0x1e8937(0x1c2)](this['selectionMoveEnd$']['subscribe'](_0x4a9800=>{const _0x31b7ee=_0x1e8937;this[_0x31b7ee(0x252)](_0x4a9800,SelectionMoveType['MOVE_END']);}));}[_0x40106a(0x252)](_0x36c094,_0x526ae5){const _0xcfdd43=_0x40106a,_0x4e253e=this[_0xcfdd43(0x270)]['unit'][_0xcfdd43(0x36b)]()['getSheetId']();_0x36c094[_0xcfdd43(0x348)]!==0x0&&this[_0xcfdd43(0x18f)][_0xcfdd43(0x1b6)](_0x4e253e,_0x36c094['map'](_0x1035b9=>convertSelectionDataToRange(_0x1035b9)),_0x526ae5);}[_0x40106a(0x251)](){const _0x59fa00=_0x40106a;this[_0x59fa00(0x1c2)](this[_0x59fa00(0x18f)][_0x59fa00(0x390)][_0x59fa00(0x331)](_0xf8c34e=>{const _0x3eb7d2=_0x59fa00;this[_0x3eb7d2(0x23e)]();for(const _0x25a7bf of _0xf8c34e){const _0xf81811=this[_0x3eb7d2(0x330)](_0x25a7bf);this[_0x3eb7d2(0x3f0)](_0xf81811);}}));}['_initSkeletonChangeListener'](){const _0x3c1684=_0x40106a;this[_0x3c1684(0x1c2)](this[_0x3c1684(0x223)][_0x3c1684(0x2ba)][_0x3c1684(0x331)](_0x55f960=>{const _0x2b2902=_0x3c1684;if(!_0x55f960)return;const {skeleton:_0x1f3b04}=_0x55f960,{scene:_0x3b6da9}=this['_context'],_0x449db2=_0x3b6da9[_0x2b2902(0x2bd)](SHEET_VIEWPORT_KEY['VIEW_MAIN']);this['_skeleton']&&this['_skeleton'][_0x2b2902(0x1a6)][_0x2b2902(0x3a9)]()!==_0x1f3b04['worksheet'][_0x2b2902(0x3a9)]()&&this[_0x2b2902(0x23e)](),this[_0x2b2902(0x421)](_0x1f3b04,_0x3b6da9,_0x449db2);const _0x1e12cc=this['_workbookSelections'][_0x2b2902(0x359)]();this['_refreshSelectionControl'](_0x1e12cc||[]);}));}[_0x40106a(0x264)](_0xea74e2){const _0x71c8c6=_0x40106a,_0x2447ac=_0xea74e2[_0x71c8c6(0x42c)](_0x33cf34=>attachSelectionWithCoord(_0x33cf34,this['_skeleton']));this[_0x71c8c6(0x2ac)](_0x2447ac);}['_getActiveViewport'](_0x37a1c3){const _0x18e35c=_0x40106a,_0x164ba2=this[_0x18e35c(0x295)]();return _0x164ba2==null?void 0x0:_0x164ba2['scene'][_0x18e35c(0x370)](Vector2['FromArray']([_0x37a1c3[_0x18e35c(0x3ff)],_0x37a1c3[_0x18e35c(0x367)]]));}[_0x40106a(0x295)](){const _0x50a1fc=_0x40106a;return getSheetObject(this[_0x50a1fc(0x270)]['unit'],this[_0x50a1fc(0x270)]);}},__name(_a8,'RefSelectionsRenderService'),_a8);RefSelectionsRenderService=__decorateClass$2([__decorateParam$2(0x1,Inject(Injector)),__decorateParam$2(0x2,Inject(ThemeService)),__decorateParam$2(0x3,IShortcutService),__decorateParam$2(0x4,Inject(SheetSkeletonManagerService)),__decorateParam$2(0x5,IRefSelectionsService)],RefSelectionsRenderService);function getDefaultRefSelectionStyle(_0x2690fc){const _0x5374f2=_0x40106a,_0x3ad4ae=getNormalSelectionStyle(_0x2690fc);return _0x3ad4ae[_0x5374f2(0x2c1)]=!0x1,_0x3ad4ae[_0x5374f2(0x1c7)]=!0x1,_0x3ad4ae['hasColumnHeader']=!0x1,_0x3ad4ae[_0x5374f2(0x39f)]={'tl':!0x0,'tc':!0x0,'tr':!0x0,'ml':!0x0,'mr':!0x0,'bl':!0x0,'bc':!0x0,'br':!0x0},_0x3ad4ae;}__name(getDefaultRefSelectionStyle,_0x40106a(0x247));var __defProp$1=Object[_0x40106a(0x353)],__getOwnPropDesc$1=Object[_0x40106a(0x395)],__decorateClass$1=__name((_0x949fcd,_0x361756,_0x56f5f8,_0x37af5b)=>{const _0x234624=_0x40106a;for(var _0x21a9b2=_0x37af5b>0x1?void 0x0:_0x37af5b?__getOwnPropDesc$1(_0x361756,_0x56f5f8):_0x361756,_0x2c83a9=_0x949fcd[_0x234624(0x348)]-0x1,_0x529cce;_0x2c83a9>=0x0;_0x2c83a9--)(_0x529cce=_0x949fcd[_0x2c83a9])&&(_0x21a9b2=(_0x37af5b?_0x529cce(_0x361756,_0x56f5f8,_0x21a9b2):_0x529cce(_0x21a9b2))||_0x21a9b2);return _0x37af5b&&_0x21a9b2&&__defProp$1(_0x361756,_0x56f5f8,_0x21a9b2),_0x21a9b2;},_0x40106a(0x294)),__decorateParam$1=__name((_0x6e863a,_0x4c9b65)=>(_0xc45e50,_0xf3527a)=>_0x4c9b65(_0xc45e50,_0xf3527a,_0x6e863a),'__decorateParam$1');const sheetEditorUnitIds=[DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,DOCS_NORMAL_EDITOR_UNIT_ID_KEY];var _a9;let PromptController=(_a9=class extends Disposable{constructor(_0x5a1bf1,_0x2af698,_0x143d6d,_0x189cbb,_0xfbdf9b,_0x2f916a,_0x3bec75,_0x5dddb4,_0x7a56c9,_0x5119ec,_0x10d518,_0x96d54e,_0xed0da6,_0x510826,_0x3c3ee7){const _0x58e938=_0x40106a;super(),__publicField(this,_0x58e938(0x2c7),new Set()),__publicField(this,_0x58e938(0x20b),[]),__publicField(this,_0x58e938(0x440)),__publicField(this,_0x58e938(0x2e6),0x0),__publicField(this,_0x58e938(0x437)),__publicField(this,_0x58e938(0x3eb),-0x1),__publicField(this,_0x58e938(0x43e),0x0),__publicField(this,'_isSelectionMovingRefSelections',[]),__publicField(this,_0x58e938(0x3d6),''),__publicField(this,_0x58e938(0x35e),''),__publicField(this,'_insertSelections',[]),__publicField(this,_0x58e938(0x21f),0x0),__publicField(this,_0x58e938(0x22b),!0x1),__publicField(this,_0x58e938(0x1ec)),__publicField(this,_0x58e938(0x354),!0x1),__publicField(this,_0x58e938(0x1fd),null),__publicField(this,_0x58e938(0x217)),__publicField(this,_0x58e938(0x44a),!0x1),(this[_0x58e938(0x34e)]=_0x5a1bf1,this['_contextService']=_0x2af698,this[_0x58e938(0x32b)]=_0x143d6d,this[_0x58e938(0x2c0)]=_0x189cbb,this[_0x58e938(0x444)]=_0xfbdf9b,this[_0x58e938(0x181)]=_0x2f916a,this[_0x58e938(0x2b7)]=_0x3bec75,this[_0x58e938(0x27c)]=_0x5dddb4,this[_0x58e938(0x2ce)]=_0x7a56c9,this['_univerInstanceService']=_0x5119ec,this[_0x58e938(0x254)]=_0x10d518,this[_0x58e938(0x2bf)]=_0x96d54e,this[_0x58e938(0x1ad)]=_0xed0da6,this['_editorService']=_0x510826,this[_0x58e938(0x27e)]=_0x3c3ee7,this[_0x58e938(0x220)]());}get[_0x40106a(0x3bf)](){const _0x525b7f=_0x40106a;return this['_renderManagerService']['getRenderById'](this[_0x525b7f(0x383)][_0x525b7f(0x2b8)](UniverInstanceType[_0x525b7f(0x1c4)])[_0x525b7f(0x3d9)]())[_0x525b7f(0x243)](RefSelectionsRenderService);}get[_0x40106a(0x2b0)](){const _0x95d727=_0x40106a;return this[_0x95d727(0x181)][_0x95d727(0x27d)](UniverInstanceType[_0x95d727(0x1c4)])[_0x95d727(0x42c)](_0x5e03ce=>_0x5e03ce[_0x95d727(0x243)](RefSelectionsRenderService));}[_0x40106a(0x23f)](){const _0x305def=_0x40106a;this[_0x305def(0x20b)]=[],this['_resetTemp']();}[_0x40106a(0x1b3)](){const _0x28450d=_0x40106a;this[_0x28450d(0x440)]=null,this[_0x28450d(0x437)]=null,this[_0x28450d(0x33c)]=[],this[_0x28450d(0x2e6)]=0x0,this[_0x28450d(0x3eb)]=-0x1;}[_0x40106a(0x220)](){const _0x3a1fcd=_0x40106a;this['_initialCursorSync'](),this[_0x3a1fcd(0x226)](),this[_0x3a1fcd(0x323)](),this[_0x3a1fcd(0x1e0)](),this['_closeRangePromptWhenEditorInvisible'](),this['_initialEditorInputChange'](),this[_0x3a1fcd(0x1f6)](),this[_0x3a1fcd(0x26b)](),this[_0x3a1fcd(0x24e)](),this[_0x3a1fcd(0x40c)](),this[_0x3a1fcd(0x415)]();}[_0x40106a(0x323)](){const _0x11465d=_0x40106a,_0x12c2f3=this[_0x11465d(0x2b7)]['getCurrentTheme']();this[_0x11465d(0x20b)]=[_0x12c2f3['loopColor1'],_0x12c2f3[_0x11465d(0x2db)],_0x12c2f3[_0x11465d(0x24d)],_0x12c2f3[_0x11465d(0x296)],_0x12c2f3[_0x11465d(0x3da)],_0x12c2f3[_0x11465d(0x394)],_0x12c2f3[_0x11465d(0x380)],_0x12c2f3['loopColor8'],_0x12c2f3[_0x11465d(0x452)],_0x12c2f3[_0x11465d(0x169)],_0x12c2f3[_0x11465d(0x30f)],_0x12c2f3[_0x11465d(0x1cc)]],this['_numberColor']=_0x12c2f3[_0x11465d(0x31c)],this[_0x11465d(0x3d6)]=_0x12c2f3['verdancy800'];}[_0x40106a(0x28b)](){const _0x348ce5=_0x40106a;this['disposeWithMe'](this[_0x348ce5(0x2bf)]['textSelection$']['subscribe'](_0x3eb76c=>{const _0xeb184c=_0x348ce5;var _0xda2db2;if((_0x3eb76c==null?void 0x0:_0x3eb76c[_0xeb184c(0x172)])==null)return;const _0x2f54f6=this['_editorService']['getEditor'](_0x3eb76c[_0xeb184c(0x172)]);if(!_0x2f54f6||_0x2f54f6['onlyInputContent']()||_0x2f54f6[_0xeb184c(0x35d)]()&&!this[_0xeb184c(0x2fa)]()||_0x2f54f6[_0xeb184c(0x2d0)][_0xeb184c(0x214)])return;const _0x4133d3=_0x2f54f6[_0xeb184c(0x199)]();(_0xda2db2=_0x3eb76c==null?void 0x0:_0x3eb76c[_0xeb184c(0x3fa)])!=null&&_0xda2db2[_0xeb184c(0x16c)]||(this[_0xeb184c(0x31e)](),this[_0xeb184c(0x2f7)](),this[_0xeb184c(0x399)](_0x4133d3),!this[_0xeb184c(0x2c0)][_0xeb184c(0x17e)]()&&(this[_0xeb184c(0x2b3)](),!_0x4133d3&&this[_0xeb184c(0x183)]()));}));}['_initialEditorInputChange'](){const _0x2d63ce=_0x40106a,_0x28f5a0=[KeyCode[_0x2d63ce(0x1fb)],KeyCode[_0x2d63ce(0x1e9)],KeyCode[_0x2d63ce(0x3b7)],KeyCode[_0x2d63ce(0x3f1)],KeyCode['CTRL'],KeyCode[_0x2d63ce(0x311)]];this[_0x2d63ce(0x383)][_0x2d63ce(0x28c)](UniverInstanceType[_0x2d63ce(0x202)])['subscribe'](_0x2d875b=>{const _0x303f4d=_0x2d63ce;var _0x165b69;const _0x129d26=_0x2d875b==null?void 0x0:_0x2d875b[_0x303f4d(0x3d9)]();if(_0x129d26==null||this[_0x303f4d(0x2c7)][_0x303f4d(0x1b2)](_0x129d26)||this[_0x303f4d(0x22a)][_0x303f4d(0x19b)](_0x129d26)==null)return;const _0x2062e2=(_0x165b69=this[_0x303f4d(0x181)][_0x303f4d(0x341)](_0x129d26))==null?void 0x0:_0x165b69['with'](DocSelectionRenderService);_0x2062e2&&this['disposeWithMe'](_0x2062e2[_0x303f4d(0x225)]['subscribe'](_0x3f8d38=>{const _0x2cc8d5=_0x303f4d;this[_0x2cc8d5(0x440)]=null,this[_0x2cc8d5(0x437)]=null,this[_0x2cc8d5(0x3bf)][_0x2cc8d5(0x2c3)](!0x0);const _0x1175eb=_0x3f8d38==null?void 0x0:_0x3f8d38['event'];_0x1175eb&&(_0x28f5a0['includes'](_0x1175eb[_0x2cc8d5(0x385)])?this[_0x2cc8d5(0x21f)]=0x2:(this[_0x2cc8d5(0x43e)]!==0x1&&(this[_0x2cc8d5(0x43e)]=0x2),this[_0x2cc8d5(0x21f)]=0x1),_0x1175eb['which']!==KeyCode['F4']&&(this[_0x2cc8d5(0x22b)]=!0x1));})),this[_0x303f4d(0x2c7)][_0x303f4d(0x343)](_0x129d26);});}['_closeRangePromptWhenEditorInvisible'](){const _0x38b1d5=_0x40106a;this[_0x38b1d5(0x1c2)](this[_0x38b1d5(0x32b)][_0x38b1d5(0x1e5)]['pipe'](distinctUntilKeyChanged(_0x38b1d5(0x25f)))[_0x38b1d5(0x331)](_0xb1b926=>{const _0x5bd569=_0x38b1d5;_0xb1b926[_0x5bd569(0x25f)]||this[_0x5bd569(0x1a4)]();})),this[_0x38b1d5(0x1c2)](this[_0x38b1d5(0x316)][_0x38b1d5(0x1b1)](FORMULA_EDITOR_ACTIVATED)['pipe'](distinctUntilChanged())[_0x38b1d5(0x331)](_0x18dfaa=>{const _0x4377b0=_0x38b1d5;_0x18dfaa||this[_0x4377b0(0x1a4)]();}));}['_initialChangeEditor'](){const _0x5c2325=_0x40106a;this['disposeWithMe'](this[_0x5c2325(0x383)]['getCurrentTypeOfUnit$'](UniverInstanceType[_0x5c2325(0x202)])[_0x5c2325(0x331)](_0x1b1979=>{const _0x1c622b=_0x5c2325;if(_0x1b1979==null)return;const _0x4d7ade=_0x1b1979['getUnitId']();!this[_0x1c622b(0x22a)][_0x1c622b(0x28d)](_0x4d7ade)||this[_0x1c622b(0x1ec)]===_0x4d7ade||this[_0x1c622b(0x22a)][_0x1c622b(0x35d)](_0x4d7ade)||(this[_0x1c622b(0x1a4)](_0x4d7ade),this[_0x1c622b(0x1ec)]=_0x4d7ade);})),this[_0x5c2325(0x1c2)](this['_editorService'][_0x5c2325(0x37f)][_0x5c2325(0x331)](()=>{const _0x15e126=_0x5c2325;(!this[_0x15e126(0x22a)][_0x15e126(0x3f7)]()||!this['_formulaPromptService'][_0x15e126(0x1bb)]())&&this[_0x15e126(0x1a4)]();}));}[_0x40106a(0x1a4)](_0x254b3a){const _0x58bfae=_0x40106a;this[_0x58bfae(0x238)]=[],this[_0x58bfae(0x2ce)][_0x58bfae(0x26f)](),_0x254b3a&&this[_0x58bfae(0x22a)][_0x58bfae(0x35d)](_0x254b3a)&&this['_updateEditorModel']('\x0d\x0a',[]),this[_0x58bfae(0x316)][_0x58bfae(0x42e)](FOCUSING_EDITOR_INPUT_FORMULA,!0x1),this['_contextService']['setContextValue'](DISABLE_NORMAL_SELECTIONS,!0x1),this[_0x58bfae(0x316)][_0x58bfae(0x42e)](UNI_DISABLE_CHANGING_FOCUS_KEY,!0x1),this[_0x58bfae(0x31e)](),this['_resetTemp'](),this[_0x58bfae(0x42d)]();}['_initSelectionsEndListener'](){const _0x48c691=_0x40106a,_0x32a032=new DisposableCollection();this[_0x48c691(0x1c2)](this[_0x48c691(0x2ce)][_0x48c691(0x390)][_0x48c691(0x331)](_0x23680a=>{const _0x387d69=_0x48c691;if(_0x32a032[_0x387d69(0x23f)](),_0x23680a[_0x387d69(0x348)]===0x0)return;this[_0x387d69(0x2b0)][_0x387d69(0x42c)](_0x2f2b22=>_0x2f2b22[_0x387d69(0x28f)]())[_0x387d69(0x212)]()[_0x387d69(0x3a5)](_0x38f78f=>{const _0x52f8be=_0x387d69;_0x38f78f[_0x52f8be(0x3a3)](),_0x32a032[_0x52f8be(0x343)](_0x38f78f[_0x52f8be(0x439)]['subscribe'](_0x5c342b=>this['_onSelectionControlChange'](_0x5c342b,_0x38f78f))),_0x32a032[_0x52f8be(0x343)](_0x38f78f[_0x52f8be(0x21e)]['subscribe'](_0x5f4bb8=>this[_0x52f8be(0x438)](_0x5f4bb8,_0x38f78f))),_0x32a032[_0x52f8be(0x343)](_0x38f78f['selectionMoved$'][_0x52f8be(0x331)](()=>this[_0x52f8be(0x2c0)][_0x52f8be(0x3ab)]())),_0x32a032[_0x52f8be(0x343)](_0x38f78f[_0x52f8be(0x363)]['subscribe'](()=>this['_formulaPromptService']['disableLockedSelectionChange']()));});}));}[_0x40106a(0x1db)](_0xfb14e8,_0x415ef2=!0x1){const _0x5b9310=_0x40106a;if(_0xfb14e8[_0x5b9310(0x348)]!==0x0&&!(this[_0x5b9310(0x22a)]['selectionChangingState']()&&!this['_formulaPromptService']['isLockedSelectionInsert']())&&(this[_0x5b9310(0x327)](_0xfb14e8),_0x415ef2)){const _0x3720b4=_0xfb14e8[_0xfb14e8[_0x5b9310(0x348)]-0x1];this[_0x5b9310(0x1be)](_0x3720b4);}}[_0x40106a(0x1d1)](){const _0xa94c47=_0x40106a,_0x3d3a98=this[_0xa94c47(0x217)]=new DisposableCollection();this[_0xa94c47(0x2b0)][_0xa94c47(0x3a5)](_0x28f510=>{const _0x4941ad=_0xa94c47;_0x3d3a98[_0x4941ad(0x343)](_0x28f510[_0x4941ad(0x2ca)]()),_0x3d3a98['add'](_0x28f510[_0x4941ad(0x439)][_0x4941ad(0x331)](_0x27ed89=>{const _0x27aa96=_0x4941ad;this[_0x27aa96(0x1db)](_0x27ed89[_0x27aa96(0x42c)](_0x3e7bf1=>convertSelectionDataToRange(_0x3e7bf1)));})),_0x3d3a98['add'](_0x28f510[_0x4941ad(0x2b1)][_0x4941ad(0x331)](_0x289e87=>{const _0x478f79=_0x4941ad,_0x5e67bd=this[_0x478f79(0x2a1)](_0x28f510);this[_0x478f79(0x1fd)]=_0x28f510,this['_updateSelecting'](_0x289e87['map'](_0x3986c5=>convertSelectionDataToRange(_0x3986c5)),_0x5e67bd);}));});}[_0x40106a(0x2a1)](_0x4dcbcc){const _0x13b2a7=_0x40106a;return this[_0x13b2a7(0x1fd)]&&this['_currentlyWorkingRefRenderer']!==_0x4dcbcc?(this['_currentlyWorkingRefRenderer'][_0x13b2a7(0x3e4)](),!0x1):!0x0;}[_0x40106a(0x36e)](){const _0x31f7fc=_0x40106a;var _0x30eb0c;(_0x30eb0c=this[_0x31f7fc(0x217)])==null||_0x30eb0c[_0x31f7fc(0x23f)](),this['_selectionsChangeDisposables']=null;}[_0x40106a(0x327)](_0x541109){const _0x161ab1=_0x40106a,_0x1ab6d6=_0x541109[_0x541109['length']-0x1];if(this[_0x161ab1(0x392)](_0x541109[_0x161ab1(0x348)]),(_0x541109[_0x161ab1(0x348)]===this[_0x161ab1(0x2e6)]||this['_previousRangesCount']===0x0)&&this[_0x161ab1(0x440)]!=null)this[_0x161ab1(0x1be)](_0x1ab6d6);else{let _0x58bc73=this[_0x161ab1(0x2c0)][_0x161ab1(0x3c1)]();const _0x4f81a9=this['_getCurrentChar']();_0x58bc73[_0x161ab1(0x348)]===0x0&&this[_0x161ab1(0x3eb)]>0x0&&(this[_0x161ab1(0x3eb)]=-0x1),this['_previousInsertRefStringIndex']=this['_currentInsertRefStringIndex'],!matchRefDrawToken(_0x4f81a9)&&this['_focusIsOnlyRange'](_0x541109['length'])&&(this[_0x161ab1(0x2c0)][_0x161ab1(0x42f)](this[_0x161ab1(0x3eb)],matchToken[_0x161ab1(0x1eb)]),_0x58bc73=this[_0x161ab1(0x2c0)][_0x161ab1(0x3c1)](),this[_0x161ab1(0x437)]+=0x1),this[_0x161ab1(0x440)]=Tools[_0x161ab1(0x42b)](_0x58bc73),this['_formulaPromptService'][_0x161ab1(0x3c7)](_0x58bc73);const _0x417b65=this[_0x161ab1(0x260)](_0x1ab6d6);this[_0x161ab1(0x2c0)][_0x161ab1(0x306)](this[_0x161ab1(0x437)],_0x417b65),this['_selectionRenderService'][_0x161ab1(0x2c3)](!0x1);}this[_0x161ab1(0x43e)]=0x2,this['_previousRangesCount']=_0x541109[_0x161ab1(0x348)];}[_0x40106a(0x226)](){const _0xbceff2=_0x40106a;this[_0xbceff2(0x1c2)](this[_0xbceff2(0x2c0)][_0xbceff2(0x376)]['subscribe'](_0x16a187=>{const _0x217a9a=_0xbceff2,_0xb43be5=this[_0x217a9a(0x2bf)][_0x217a9a(0x3ee)]();if(_0xb43be5==null){this[_0x217a9a(0x42d)]();return;}const {startOffset:_0x26ada2}=_0xb43be5,_0x1b9fa2=this[_0x217a9a(0x2c0)][_0x217a9a(0x3c1)](),_0x568bae=this[_0x217a9a(0x2c0)][_0x217a9a(0x30b)](_0x26ada2-0x2),_0x452dba=_0x1b9fa2[_0x568bae];if(_0x452dba==null||typeof _0x452dba=='string'){this[_0x217a9a(0x42d)]();return;}const _0x5722f2=_0x16a187[_0x217a9a(0x348)]-_0x452dba[_0x217a9a(0x401)][_0x217a9a(0x348)],_0x2cb058={..._0x452dba};_0x2cb058[_0x217a9a(0x401)]=_0x16a187,_0x2cb058[_0x217a9a(0x3b5)]+=_0x5722f2,_0x1b9fa2[_0x568bae]=_0x2cb058;const _0x9b02cb=this['_descriptionService']['hasDefinedNameDescription'](_0x16a187),_0x3dd71e=this['_descriptionService']['isFormulaDefinedName'](_0x16a187),_0x527732=_0x16a187['length']+0x1,_0xe49f72=!_0x9b02cb||_0x3dd71e;_0xe49f72&&_0x1b9fa2['splice'](_0x568bae+0x1,0x0,matchToken['OPEN_BRACKET']);for(let _0x3e3298=_0x568bae+0x2,_0x41cd53=_0x1b9fa2['length'];_0x3e3298<_0x41cd53;_0x3e3298++){const _0x1831e3=_0x1b9fa2[_0x3e3298];if(typeof _0x1831e3==_0x217a9a(0x40f))continue;const _0x124617={..._0x1831e3};_0x124617[_0x217a9a(0x1fe)]+=_0x527732,_0x124617[_0x217a9a(0x3b5)]+=_0x527732,_0x1b9fa2[_0x3e3298]=_0x124617;}let _0x2dda99=_0x2cb058[_0x217a9a(0x3b5)]+0x1;_0xe49f72&&(_0x2dda99+=0x1),this[_0x217a9a(0x1d8)](_0x1b9fa2,_0x2dda99,void 0x0,!0x0,!0x1);}));}[_0x40106a(0x183)](){const _0x689150=_0x40106a,_0x50753c=this[_0x689150(0x2bf)]['getActiveTextRange']();if(_0x50753c==null){this[_0x689150(0x42d)]();return;}const {startOffset:_0x6898ce}=_0x50753c,_0x46f403=this[_0x689150(0x2c0)][_0x689150(0x336)](_0x6898ce-0x2);if(_0x46f403==null){this[_0x689150(0x42d)]();return;}if(typeof _0x46f403!='string'&&_0x46f403['nodeType']===sequenceNodeType[_0x689150(0x239)]&&!this[_0x689150(0x254)][_0x689150(0x435)](_0x46f403[_0x689150(0x401)]['trim']())){const _0x264e29=_0x46f403['token']['toUpperCase']();if(this[_0x689150(0x21f)]===0x1){const _0x2c6bb2=this[_0x689150(0x254)]['getSearchListByNameFirstLetter'](_0x264e29);if(this[_0x689150(0x42d)](),_0x2c6bb2==null||_0x2c6bb2['length']===0x0)return;this[_0x689150(0x34e)][_0x689150(0x32e)](SearchFunctionOperation['id'],{'visible':!0x0,'searchText':_0x264e29,'searchList':_0x2c6bb2});}else this[_0x689150(0x2a4)](_0x264e29,-0x1);return;}const _0x2a27c7=this['_getCurrentBodyDataStreamAndOffset'](),_0x476e64=this['_lexerTreeBuilder'][_0x689150(0x1b9)]((_0x2a27c7==null?void 0x0:_0x2a27c7[_0x689150(0x215)])||'',_0x6898ce-0x1+((_0x2a27c7==null?void 0x0:_0x2a27c7[_0x689150(0x351)])||0x0));if(!_0x476e64){this[_0x689150(0x42d)]();return;}const {functionName:_0x13fbd6,paramIndex:_0x1c78b0}=_0x476e64;this[_0x689150(0x2a4)](_0x13fbd6['toUpperCase'](),_0x1c78b0);}[_0x40106a(0x2a4)](_0x5e58b1,_0x6e4c42){const _0x1f6d77=_0x40106a,_0x3e6359=this[_0x1f6d77(0x254)][_0x1f6d77(0x1bf)](_0x5e58b1);this[_0x1f6d77(0x42d)](),_0x3e6359!=null&&this[_0x1f6d77(0x34e)]['executeCommand'](HelpFunctionOperation['id'],{'visible':!0x0,'paramIndex':_0x6e4c42,'functionInfo':_0x3e6359});}[_0x40106a(0x42d)](){const _0x1e2d04=_0x40106a;this['_commandService']['executeCommand'](SearchFunctionOperation['id'],{'visible':!0x1,'searchText':''}),this[_0x1e2d04(0x34e)][_0x1e2d04(0x32e)](HelpFunctionOperation['id'],{'visible':!0x1,'paramIndex':-0x1});}[_0x40106a(0x399)](_0x5e38e0=!0x1){const _0x12482f=_0x40106a;if(_0x5e38e0){this[_0x12482f(0x231)]();return;}const _0x42490f=this[_0x12482f(0x43b)](),_0x410d1c=this[_0x12482f(0x1f4)]();(_0x410d1c==null?void 0x0:_0x410d1c[_0x12482f(0x240)](0x0,0x1))==='='&&_0x42490f&&matchRefDrawToken(_0x42490f)?this[_0x12482f(0x231)]():this['_quitSelectingMode']();}['_getCurrentChar'](){const _0x2795f9=_0x40106a,_0x2952b6=this[_0x2795f9(0x2bf)]['getActiveTextRange']();if(_0x2952b6==null)return;const {startOffset:_0x5726a1}=_0x2952b6,_0x568da9=this[_0x2795f9(0x320)]();return _0x568da9==null||_0x5726a1==null?void 0x0:_0x568da9[_0x2795f9(0x215)][_0x5726a1-0x1+_0x568da9[_0x2795f9(0x351)]];}[_0x40106a(0x1f4)](){const _0x268948=_0x40106a,_0x3aa35f=this['_getCurrentBodyDataStreamAndOffset']();return _0x3aa35f==null?void 0x0:_0x3aa35f[_0x268948(0x215)];}['_enterSelectingMode'](){const _0x471a10=_0x40106a;this[_0x471a10(0x44a)]||(this[_0x471a10(0x32b)][_0x471a10(0x21b)](),this[_0x471a10(0x1ad)][_0x471a10(0x203)](),this[_0x471a10(0x2c0)][_0x471a10(0x1f0)](),this[_0x471a10(0x3bf)][_0x471a10(0x1ae)](!0x0),this['_enableRefSelectionsRenderService'](),this[_0x471a10(0x1fd)]=null,this[_0x471a10(0x43e)]!==0x1&&(this[_0x471a10(0x43e)]=0x2),this['_isSelectingMode']=!0x0);}[_0x40106a(0x31e)](){const _0x3609b2=_0x40106a;this[_0x3609b2(0x44a)]&&(this[_0x3609b2(0x32b)]['disableForceKeepVisible'](),this[_0x3609b2(0x1ad)][_0x3609b2(0x168)](),this[_0x3609b2(0x2c0)][_0x3609b2(0x431)](),this['_currentInsertRefStringIndex']=-0x1,this['_disposeSelectionsChangeListeners'](),this['_arrowMoveActionState']===0x2&&(this[_0x3609b2(0x43e)]=0x4),this[_0x3609b2(0x44a)]=!0x1);}['_getCurrentBodyDataStreamAndOffset'](){const _0x45fb1f=_0x40106a;var _0x16ea1a,_0x2fd02e;const _0x1f683c=this[_0x45fb1f(0x383)][_0x45fb1f(0x36c)]();if(!(_0x1f683c!=null&&_0x1f683c[_0x45fb1f(0x23b)]()))return;const _0x2ed884=_0x1f683c[_0x45fb1f(0x3d9)](),_0x4a74dd=this['_editorService'][_0x45fb1f(0x19b)](_0x2ed884),_0x21409f=(_0x2fd02e=(_0x16ea1a=_0x1f683c[_0x45fb1f(0x23b)]())==null?void 0x0:_0x16ea1a['dataStream'])!=null?_0x2fd02e:'';return!_0x4a74dd||!_0x4a74dd[_0x45fb1f(0x199)]()?{'dataStream':_0x21409f,'offset':0x0}:{'dataStream':compareToken[_0x45fb1f(0x3b4)]+_0x21409f,'offset':0x1};}[_0x40106a(0x2bb)](_0x305e3d){const _0x40fd83=_0x40106a;return _0x305e3d[_0x40fd83(0x42c)](_0x3c1261=>{const _0x34a243=_0x40fd83,_0x2138ce=this[_0x34a243(0x383)][_0x34a243(0x19a)](_0x3c1261);return _0x2138ce==null?void 0x0:_0x2138ce[_0x34a243(0x23b)]();});}[_0x40106a(0x22f)](){const _0x5628d9=_0x40106a,_0x369c59=this[_0x5628d9(0x383)]['getCurrentUniverDocInstance']()[_0x5628d9(0x3d9)]();return this[_0x5628d9(0x22a)]['isEditor'](_0x369c59)&&!this['_editorService'][_0x5628d9(0x35d)](_0x369c59)?[_0x369c59]:sheetEditorUnitIds;}[_0x40106a(0x2f7)](){const _0x3a77c5=_0x40106a,_0x1884c5=this[_0x3a77c5(0x320)]();if(_0x1884c5&&isFormulaString(_0x1884c5[_0x3a77c5(0x215)])){this['_contextService']['setContextValue'](FOCUSING_EDITOR_INPUT_FORMULA,!0x0),this[_0x3a77c5(0x316)][_0x3a77c5(0x42e)](DISABLE_NORMAL_SELECTIONS,!0x0),this['_contextService']['setContextValue'](UNI_DISABLE_CHANGING_FOCUS_KEY,!0x0);const _0x3753fe=this['_lexerTreeBuilder'][_0x3a77c5(0x3fc)](_0x1884c5['dataStream'])||[];this[_0x3a77c5(0x2c0)][_0x3a77c5(0x3c7)](_0x3753fe);const _0x591a73=this[_0x3a77c5(0x2bf)][_0x3a77c5(0x3ee)]();if(_0x591a73==null)return;const {startOffset:_0x5ce374}=_0x591a73;this['_currentInsertRefStringIndex']=_0x5ce374-0x1+_0x1884c5['offset'];return;}this[_0x3a77c5(0x316)]['setContextValue'](FOCUSING_EDITOR_INPUT_FORMULA,!0x1),this['_contextService'][_0x3a77c5(0x42e)](DISABLE_NORMAL_SELECTIONS,!0x1),this[_0x3a77c5(0x316)][_0x3a77c5(0x42e)](UNI_DISABLE_CHANGING_FOCUS_KEY,!0x1),this[_0x3a77c5(0x2c0)][_0x3a77c5(0x3ab)](),this['_formulaPromptService']['disableLockedSelectionInsert'](),this[_0x3a77c5(0x2c0)][_0x3a77c5(0x2aa)](),this[_0x3a77c5(0x42d)]();}[_0x40106a(0x18a)](){const _0x23d037=_0x40106a;return this['_contextService'][_0x23d037(0x39c)](FOCUSING_EDITOR_INPUT_FORMULA);}[_0x40106a(0x2b3)](){const _0x38f6b7=_0x40106a;if(this[_0x38f6b7(0x18a)]()===!0x1)return;const _0xb155d3=this[_0x38f6b7(0x2c0)][_0x38f6b7(0x3c1)](),_0x5cb380=this[_0x38f6b7(0x22f)](),_0x364907=this[_0x38f6b7(0x2bb)](_0x5cb380)['filter'](_0x39c44d=>!!_0x39c44d);if(this[_0x38f6b7(0x2ce)]['clear'](),_0xb155d3==null||_0xb155d3[_0x38f6b7(0x348)]===0x0)this[_0x38f6b7(0x354)]=!0x1,_0x364907['forEach'](_0x3f8869=>_0x3f8869['textRuns']=[]);else{this[_0x38f6b7(0x354)]=!0x0;const {textRuns:_0x3576e4,refSelections:_0x2cf74b}=this[_0x38f6b7(0x350)](_0xb155d3);_0x364907[_0x38f6b7(0x3a5)](_0x74aaa9=>_0x74aaa9[_0x38f6b7(0x1ef)]=_0x3576e4),this[_0x38f6b7(0x2b0)][_0x38f6b7(0x3a5)](_0x56ea3b=>this[_0x38f6b7(0x1cf)](_0x56ea3b,_0x2cf74b));}this[_0x38f6b7(0x402)](_0x5cb380);}['_buildTextRuns'](_0x1b1efc){const _0x15ddbd=_0x40106a;var _0x4f1fdc;const _0x510169=[],_0xa130c9=[],_0x4a5cb8=new Map();let _0x59972a=0x0;const _0x23e26d=((_0x4f1fdc=this['_getCurrentBodyDataStreamAndOffset']())==null?void 0x0:_0x4f1fdc[_0x15ddbd(0x351)])||0x0;for(let _0x2094e9=0x0,_0x5b5e73=_0x1b1efc[_0x15ddbd(0x348)];_0x2094e9<_0x5b5e73;_0x2094e9++){const _0x41732c=_0x1b1efc[_0x2094e9];if(typeof _0x41732c==_0x15ddbd(0x40f)||this[_0x15ddbd(0x254)]['hasDefinedNameDescription'](_0x41732c[_0x15ddbd(0x401)]['trim']()))continue;const {startIndex:_0x39b039,endIndex:_0x97d572,nodeType:_0x592441,token:_0x3bffc7}=_0x41732c;let _0x7db831='';if(_0x592441===sequenceNodeType['REFERENCE']){if(_0x4a5cb8[_0x15ddbd(0x1b2)](_0x3bffc7))_0x7db831=_0x4a5cb8[_0x15ddbd(0x424)](_0x3bffc7);else{const _0x4bc55d=_0x59972a%this[_0x15ddbd(0x20b)][_0x15ddbd(0x348)];_0x7db831=this[_0x15ddbd(0x20b)][_0x4bc55d],_0x4a5cb8[_0x15ddbd(0x3f4)](_0x3bffc7,_0x7db831),_0x59972a++;}_0xa130c9[_0x15ddbd(0x443)]({'refIndex':_0x2094e9,'themeColor':_0x7db831,'token':_0x3bffc7});}else _0x592441===sequenceNodeType[_0x15ddbd(0x409)]?_0x7db831=this[_0x15ddbd(0x35e)]:_0x592441===sequenceNodeType[_0x15ddbd(0x406)]?_0x7db831=this[_0x15ddbd(0x3d6)]:_0x592441===sequenceNodeType['ARRAY']&&(_0x7db831=this[_0x15ddbd(0x3d6)]);_0x7db831&&_0x7db831[_0x15ddbd(0x348)]>0x0&&_0x510169[_0x15ddbd(0x443)]({'st':_0x39b039+0x1-_0x23e26d,'ed':_0x97d572+0x2-_0x23e26d,'ts':{'cl':{'rgb':_0x7db831}}});}return{'textRuns':_0x510169,'refSelections':_0xa130c9};}[_0x40106a(0x2dc)](_0x33280b,_0x401d16,_0x288a94){const {endRow:_0x5c18a4,endColumn:_0x35951c}=_0x33280b;return _0x5c18a4>_0x401d16||_0x35951c>_0x288a94;}[_0x40106a(0x1cf)](_0x2ef7e8,_0x261efd){const _0x4217d6=_0x40106a,{unitId:_0x3d598f,sheetId:_0x39e47a}=this[_0x4217d6(0x32b)][_0x4217d6(0x329)](),{unitId:_0x3fd06c,sheetId:_0x308135}=this['_getCurrentUnitIdAndSheetId'](),_0x4af203=_0x39e47a===_0x308135,_0x3cba86=this['_univerInstanceService'][_0x4217d6(0x2b2)](_0x3d598f)[_0x4217d6(0x3a0)](_0x39e47a);let _0x4432d7=null;const _0x3e861f=[];for(let _0x5079be=0x0,_0x3384ff=_0x261efd[_0x4217d6(0x348)];_0x5079be<_0x3384ff;_0x5079be++){const _0x225f57=_0x261efd[_0x5079be],{themeColor:_0x1830c6,token:_0x3332ff,refIndex:_0x57f4d9}=_0x225f57,_0x1a6db8=deserializeRangeWithSheet(_0x3332ff),{unitId:_0x4a4fef,sheetName:_0x392030,range:_0xed1f4}=_0x1a6db8,_0x350647=setEndForRange(_0xed1f4,_0x3cba86[_0x4217d6(0x200)](),_0x3cba86[_0x4217d6(0x1b7)]());if(_0x4a4fef!=null&&_0x4a4fef[_0x4217d6(0x348)]>0x0&&_0x3d598f!==_0x4a4fef)continue;const _0x3f3d7c=this['_getSheetIdByName'](_0x3d598f,_0x392030['trim']());if(!_0x4af203&&_0x3f3d7c!==_0x308135||_0x4af203&&_0x392030[_0x4217d6(0x348)]!==0x0&&_0x3f3d7c!==_0x39e47a||this[_0x4217d6(0x2dc)](_0x350647,_0x3cba86[_0x4217d6(0x200)](),_0x3cba86['getColumnCount']()))continue;const _0x30cdde=this[_0x4217d6(0x308)](_0x350647,_0x1830c6,_0x57f4d9);if(_0x30cdde){_0x4432d7=_0x30cdde;continue;}const _0x14459a=getPrimaryForRange(_0x350647,_0x3cba86);!Rectangle['equals'](_0x14459a,_0x350647)&&_0x350647[_0x4217d6(0x277)]===_0x350647[_0x4217d6(0x268)]&&_0x350647[_0x4217d6(0x28e)]===_0x350647[_0x4217d6(0x346)]&&(_0x350647[_0x4217d6(0x277)]=_0x14459a['startRow'],_0x350647[_0x4217d6(0x268)]=_0x14459a[_0x4217d6(0x268)],_0x350647[_0x4217d6(0x28e)]=_0x14459a[_0x4217d6(0x28e)],_0x350647[_0x4217d6(0x346)]=_0x14459a[_0x4217d6(0x346)]),_0x3e861f[_0x4217d6(0x443)]({'range':_0x350647,'primary':_0x14459a,'style':getFormulaRefSelectionStyle(this[_0x4217d6(0x2b7)],_0x1830c6,_0x57f4d9[_0x4217d6(0x253)]())});}_0x4432d7&&_0x3e861f[_0x4217d6(0x443)](_0x4432d7),_0x3e861f[_0x4217d6(0x348)]&&this[_0x4217d6(0x2ce)][_0x4217d6(0x3db)](_0x3d598f,_0x39e47a,_0x3e861f);}[_0x40106a(0x308)](_0x20c973,_0x3d622c,_0x558524){const _0x3e70a3=_0x40106a;var _0x489080;const _0x308e99=(_0x489080=this[_0x3e70a3(0x238)][_0x3e70a3(0x193)](_0x35aee0=>{const _0x34bea6=_0x3e70a3,{startRow:_0x1c1d80,startColumn:_0x4e961f,endRow:_0x1dbb2f,endColumn:_0x1404f0}=_0x35aee0[_0x34bea6(0x2ec)];return _0x1c1d80===_0x20c973[_0x34bea6(0x277)]&&_0x4e961f===_0x20c973['startColumn']&&_0x1dbb2f===_0x20c973['endRow']&&_0x1404f0===_0x20c973[_0x34bea6(0x346)]||_0x1c1d80===_0x20c973[_0x34bea6(0x277)]&&_0x4e961f===_0x20c973[_0x34bea6(0x28e)]&&_0x20c973[_0x34bea6(0x277)]===_0x20c973[_0x34bea6(0x268)]&&_0x20c973[_0x34bea6(0x28e)]===_0x20c973[_0x34bea6(0x346)];}))==null?void 0x0:_0x489080['primary'];if(_0x308e99==null)return;const {isMerged:_0x477e18,isMergedMainCell:_0x20eb8a,startRow:_0x34b30d,endRow:_0x185987,startColumn:_0x1b3ab9,endColumn:_0x338f68}=_0x308e99;return(_0x477e18||_0x20eb8a)&&_0x34b30d===_0x20c973['startRow']&&_0x1b3ab9===_0x20c973[_0x3e70a3(0x28e)]&&_0x20c973['startRow']===_0x20c973[_0x3e70a3(0x268)]&&_0x20c973[_0x3e70a3(0x28e)]===_0x20c973[_0x3e70a3(0x346)]&&(_0x20c973[_0x3e70a3(0x268)]=_0x185987,_0x20c973[_0x3e70a3(0x346)]=_0x338f68),{'range':_0x20c973,'primary':_0x308e99,'style':getFormulaRefSelectionStyle(this[_0x3e70a3(0x2b7)],_0x3d622c,_0x558524['toString']())};}[_0x40106a(0x178)](_0x5619db,_0x1ed2ee){const _0x366b2c=_0x40106a;var _0x174cc3;const _0x598021=this[_0x366b2c(0x383)][_0x366b2c(0x2b2)](_0x5619db);return(_0x174cc3=_0x598021==null?void 0x0:_0x598021['getSheetBySheetName'](normalizeSheetName(_0x1ed2ee)))==null?void 0x0:_0x174cc3[_0x366b2c(0x3a9)]();}['_getSheetNameById'](_0x14354f,_0x28d758){const _0xb84e67=_0x40106a;var _0x3d90e3;const _0x224af1=this['_univerInstanceService'][_0xb84e67(0x2b2)](_0x14354f);return((_0x3d90e3=_0x224af1==null?void 0x0:_0x224af1['getSheetBySheetId'](_0x28d758))==null?void 0x0:_0x3d90e3['getName']())||'';}['_getCurrentUnitIdAndSheetId'](){const _0x49457c=_0x40106a;var _0x10daa7,_0x4d41bf;const _0x221fd3=this[_0x49457c(0x383)][_0x49457c(0x2b8)](UniverInstanceType[_0x49457c(0x1c4)]),_0xe81c8a=_0x221fd3['getActiveSheet'](),_0x4ca0b5=(_0x4d41bf=(_0x10daa7=this[_0x49457c(0x181)][_0x49457c(0x341)](_0x221fd3[_0x49457c(0x3d9)]()))==null?void 0x0:_0x10daa7[_0x49457c(0x243)](SheetSkeletonManagerService))==null?void 0x0:_0x4d41bf[_0x49457c(0x3b9)]();return{'unitId':_0x221fd3['getUnitId'](),'sheetId':(_0xe81c8a==null?void 0x0:_0xe81c8a[_0x49457c(0x3a9)]())||'','skeleton':_0x4ca0b5};}[_0x40106a(0x1a0)](){const _0x3681a5=_0x40106a,_0x3588ba=this[_0x3681a5(0x383)][_0x3681a5(0x36c)]()['getUnitId'](),_0x3aba30=this[_0x3681a5(0x22a)]['getEditor'](_0x3588ba);return _0x3aba30?{'openUnitId':_0x3aba30['getOpenForSheetUnitId'](),'openSheetId':_0x3aba30[_0x3681a5(0x2af)]()}:{'openUnitId':null,'openSheetId':null};}[_0x40106a(0x260)](_0x4c1403){const _0x36162d=_0x40106a;let _0x16af84='',_0x5b2256='';const {unitId:_0x16db95,sheetId:_0x53cad9}=_0x4c1403[_0x36162d(0x2ec)],{openUnitId:_0x999c37,openSheetId:_0x5ba56a}=this[_0x36162d(0x1a0)]();_0x16db95!==_0x999c37&&_0x16db95&&(_0x16af84=_0x16db95),_0x53cad9!==_0x5ba56a&&_0x16db95&&_0x53cad9&&(_0x5b2256=this[_0x36162d(0x1a5)](_0x16db95,_0x53cad9));const {range:_0x3c32ea,primary:_0x182a6e}=_0x4c1403;let {startRow:_0x1ccec5,endRow:_0x19b2ec,startColumn:_0x114225,endColumn:_0x2ef3e1}=_0x3c32ea;const {startAbsoluteRefType:_0x13cc7f,endAbsoluteRefType:_0x4e080f,rangeType:_0x2c5c7f}=_0x3c32ea;if(_0x182a6e){const {isMerged:_0x4f9709,isMergedMainCell:_0x5623f,startRow:_0x1ed695,endRow:_0x1c8670,startColumn:_0x35dd0e,endColumn:_0x195436}=_0x182a6e;(_0x4f9709||_0x5623f)&&_0x1ed695===_0x1ccec5&&_0x35dd0e===_0x114225&&_0x1c8670===_0x19b2ec&&_0x195436===_0x2ef3e1&&(_0x1ccec5=_0x1ed695,_0x114225=_0x35dd0e,_0x19b2ec=_0x1ed695,_0x2ef3e1=_0x35dd0e);}return serializeRangeToRefString({'sheetName':_0x5b2256,'unitId':_0x16af84,'range':{'startRow':_0x1ccec5,'endRow':_0x19b2ec,'startColumn':_0x114225,'endColumn':_0x2ef3e1,'rangeType':_0x2c5c7f,'startAbsoluteRefType':_0x13cc7f,'endAbsoluteRefType':_0x4e080f}});}['_syncToEditor'](_0x412fc9,_0x758c18,_0x2876c2,_0x1389ca=!0x0,_0x3eb15e=!0x0){const _0x1f29a1=_0x40106a;let _0x147b1f=generateStringWithSequence(_0x412fc9);const {textRuns:_0x8d48ab,refSelections:_0x4a5af2}=this[_0x1f29a1(0x350)](_0x412fc9);this[_0x1f29a1(0x33c)]=_0x4a5af2,this['_allSelectionRenderServices']['forEach'](_0x2f9dfa=>this[_0x1f29a1(0x2d9)](_0x2f9dfa,this[_0x1f29a1(0x33c)]));const _0x3da96c=this[_0x1f29a1(0x2bf)][_0x1f29a1(0x3ee)]();if(_0x3da96c==null)return;this['_currentInsertRefStringIndex']=_0x758c18,_0x2876c2==null&&(_0x2876c2=this[_0x1f29a1(0x383)]['getCurrentUniverDocInstance']()[_0x1f29a1(0x3d9)]()),this['_fitEditorSize']();const _0x4a223b=this[_0x1f29a1(0x22a)][_0x1f29a1(0x19b)](_0x2876c2);_0x4a223b!=null&&_0x4a223b[_0x1f29a1(0x3cf)]()?(_0x147b1f=_0x147b1f['split'](',')[0x0],this['_selectionRenderService']['setSingleSelectionEnabled'](!0x0)):this[_0x1f29a1(0x3bf)]['setSingleSelectionEnabled'](!0x1);let _0x37d562=_0x147b1f,_0x126be9=0x1;(!_0x4a223b||!_0x4a223b[_0x1f29a1(0x199)]())&&(_0x37d562=''+compareToken[_0x1f29a1(0x3b4)]+_0x147b1f,_0x126be9=0x0);const {collapsed:_0x5e4ae2,style:_0x18284e}=_0x3da96c;_0x1389ca?(this[_0x1f29a1(0x34e)][_0x1f29a1(0x32e)](ReplaceContentCommand['id'],{'unitId':_0x2876c2,'body':{'dataStream':_0x37d562,'textRuns':_0x8d48ab},'textRanges':[{'startOffset':_0x758c18+0x1-_0x126be9,'endOffset':_0x758c18+0x1-_0x126be9,'collapsed':_0x5e4ae2,'style':_0x18284e}],'segmentId':null,'options':{'fromSelection':_0x3eb15e}}),this[_0x1f29a1(0x2bf)]['replaceTextRanges']([{'startOffset':_0x758c18+0x1-_0x126be9,'endOffset':_0x758c18+0x1-_0x126be9,'style':_0x18284e}],!0x0,{'fromSelection':_0x3eb15e})):(this[_0x1f29a1(0x2f6)](_0x37d562+'\x0d\x0a',_0x8d48ab),this[_0x1f29a1(0x2bf)][_0x1f29a1(0x3d2)]([{'startOffset':_0x758c18+0x1-_0x126be9,'endOffset':_0x758c18+0x1-_0x126be9,'style':_0x18284e}],!0x0,{'fromSelection':_0x3eb15e})),this['_layoutService']['focus']();}[_0x40106a(0x1f1)](){const _0x4458e6=_0x40106a,_0x46b15b=this[_0x4458e6(0x383)][_0x4458e6(0x36c)]()['getUnitId']();this[_0x4458e6(0x22a)][_0x4458e6(0x28d)](_0x46b15b)&&!this[_0x4458e6(0x22a)][_0x4458e6(0x35d)](_0x46b15b)||this[_0x4458e6(0x34e)][_0x4458e6(0x32e)](SetEditorResizeOperation['id'],{'unitId':_0x46b15b});}[_0x40106a(0x2f6)](_0xa4ac1e,_0x25f8e4){const _0x1aea37=_0x40106a;var _0x2f64c2;const _0xf1a31d=this[_0x1aea37(0x383)][_0x1aea37(0x36c)](),_0x233428=_0xf1a31d[_0x1aea37(0x3d9)]();if(!this[_0x1aea37(0x22a)][_0x1aea37(0x28d)](_0x233428))return;const _0x2a1e11=(_0x2f64c2=this[_0x1aea37(0x181)][_0x1aea37(0x341)](_0x233428))==null?void 0x0:_0x2f64c2[_0x1aea37(0x243)](DocSkeletonManagerService)['getViewModel']();if(_0x2a1e11==null||_0xf1a31d==null)return;const _0x3cb4eb=_0xf1a31d==null?void 0x0:_0xf1a31d['getSnapshot']();if(_0x3cb4eb==null)return;const _0x439d59={'dataStream':_0xa4ac1e,'textRuns':_0x25f8e4};_0x3cb4eb['body']=_0x439d59,_0x2a1e11[_0x1aea37(0x1c0)](_0xf1a31d);}[_0x40106a(0x1be)](_0x3fad7e){const _0x4e5368=_0x40106a;this[_0x4e5368(0x440)]==null&&(this[_0x4e5368(0x440)]=this['_formulaPromptService'][_0x4e5368(0x3c1)]()),this[_0x4e5368(0x437)]==null&&(this[_0x4e5368(0x437)]=this[_0x4e5368(0x3eb)]);const _0x497789=Tools[_0x4e5368(0x42b)](this[_0x4e5368(0x440)]);if(_0x497789==null)return;const _0xbc2d=this['_generateRefString'](_0x3fad7e);this['_formulaPromptService']['setSequenceNodes'](_0x497789),this[_0x4e5368(0x2c0)][_0x4e5368(0x306)](this[_0x4e5368(0x437)],_0xbc2d),this[_0x4e5368(0x1d8)](_0x497789,this[_0x4e5368(0x437)]+_0xbc2d[_0x4e5368(0x348)]);const _0x4ddf31=this['_selectionRenderService']['getSelectionDataWithStyle']();this[_0x4e5368(0x238)]=[],_0x4ddf31[_0x4e5368(0x3a5)](_0x50c89a=>{const _0x85d77d=_0x4e5368,_0xbb8686=convertSelectionDataToRange(_0x50c89a);this['_insertSelections'][_0x85d77d(0x443)](_0xbb8686);});}[_0x40106a(0x31f)](_0x3ad9aa){const _0xf59bd2=_0x40106a,_0x1f05cb=this[_0xf59bd2(0x22a)]['getFocusEditor']();return!_0x1f05cb||!_0x1f05cb['onlyInputRange']()||this[_0xf59bd2(0x354)]||_0x3ad9aa>0x1||this[_0xf59bd2(0x440)]!=null&&this[_0xf59bd2(0x440)]['length']>0x0?!0x0:(this[_0xf59bd2(0x437)]!=null&&(this[_0xf59bd2(0x437)]+=0x1),!0x1);}[_0x40106a(0x392)](_0x3d59f8){const _0x4f5884=_0x40106a,_0x44ba6d=this['_editorService'][_0x4f5884(0x3cc)]();_0x44ba6d&&_0x44ba6d[_0x4f5884(0x199)]()&&(_0x3d59f8>0x1||this[_0x4f5884(0x354)]&&(this[_0x4f5884(0x2c0)][_0x4f5884(0x2aa)](),this[_0x4f5884(0x2e6)]=0x0,this[_0x4f5884(0x354)]=!0x1));}[_0x40106a(0x2d9)](_0x149a73,_0x413bc1){const _0x311de6=_0x40106a,_0x86263d=_0x149a73['getSelectionControls'](),[_0x1e7c95,_0x5c2471]=_0x149a73[_0x311de6(0x1d3)](),_0x350114=new Set();for(let _0x27a3e5=0x0,_0x1bd9bb=_0x413bc1[_0x311de6(0x348)];_0x27a3e5<_0x1bd9bb;_0x27a3e5++){const _0x5180b5=_0x413bc1[_0x27a3e5],{refIndex:_0x2380d9,themeColor:_0x4cc4a1,token:_0xba7a6a}=_0x5180b5,_0x1b6a36=deserializeRangeWithSheet(_0xba7a6a),{unitId:_0x2e2b37,sheetName:_0x5a0a6b,range:_0x49b556}=_0x1b6a36;if(!_0x2e2b37&&_0x2e2b37['length']>0x0&&_0x1e7c95!==_0x2e2b37)continue;const _0x433847=this['_getSheetIdByName'](_0x1e7c95,_0x5a0a6b[_0x311de6(0x282)]());if(_0x433847&&_0x433847!==_0x5c2471)continue;const _0x153d84=_0x86263d[_0x311de6(0x193)](_0x48d0f6=>{const _0x2a4f9c=_0x311de6,{startRow:_0x3ddd18,startColumn:_0x2d5b64,endRow:_0x1d7454,endColumn:_0x3082ea,rangeType:_0xc5c207}=_0x48d0f6['getRange']();return _0xc5c207===RANGE_TYPE['COLUMN']&&_0x2d5b64===_0x49b556[_0x2a4f9c(0x28e)]&&_0x3082ea===_0x49b556[_0x2a4f9c(0x346)]||_0xc5c207===RANGE_TYPE[_0x2a4f9c(0x3ec)]&&_0x3ddd18===_0x49b556['startRow']&&_0x1d7454===_0x49b556[_0x2a4f9c(0x268)]||_0x3ddd18===_0x49b556[_0x2a4f9c(0x277)]&&_0x2d5b64===_0x49b556[_0x2a4f9c(0x28e)]&&_0x1d7454===_0x49b556['endRow']&&_0x3082ea===_0x49b556['endColumn']||_0x3ddd18===_0x49b556[_0x2a4f9c(0x277)]&&_0x2d5b64===_0x49b556[_0x2a4f9c(0x28e)]&&_0x49b556[_0x2a4f9c(0x277)]===_0x49b556[_0x2a4f9c(0x268)]&&_0x49b556[_0x2a4f9c(0x28e)]===_0x49b556['endColumn'];});if(_0x153d84){const _0xcf3c7f=getFormulaRefSelectionStyle(this[_0x311de6(0x2b7)],_0x4cc4a1,_0x2380d9[_0x311de6(0x253)]());_0x153d84['updateStyle'](_0xcf3c7f),_0x350114[_0x311de6(0x343)](_0x153d84);}}}[_0x40106a(0x438)](_0x3116ae,_0xdcca){const _0x5295a6=_0x40106a;var _0x2f58c2;const {skeleton:_0x24df47}=this['_getCurrentUnitIdAndSheetId']();this[_0x5295a6(0x2c0)][_0x5295a6(0x19d)]();const _0x14c6ec=(_0x2f58c2=_0xdcca[_0x5295a6(0x1df)])==null?void 0x0:_0x2f58c2['id'];if(!_0x14c6ec||!Tools[_0x5295a6(0x218)](_0x14c6ec))return;let {startRow:_0x4acf9a,endRow:_0x2da80c,startColumn:_0x276930,endColumn:_0x5585df}=_0x3116ae;const _0x21511e=_0x24df47?_0x24df47[_0x5295a6(0x1a6)]['getCellInfoInMergeData'](_0x4acf9a,_0x276930):{'actualRow':_0x4acf9a,'actualColumn':_0x276930,'isMergedMainCell':!0x1,'isMerged':!0x1,'endRow':_0x4acf9a,'endColumn':_0x276930,'startRow':_0x4acf9a,'startColumn':_0x276930};if(_0x21511e){const {isMerged:_0x36fb60,isMergedMainCell:_0x407d97,startRow:_0x3c03a0,endRow:_0x22eb7f,startColumn:_0x3e37df,endColumn:_0xb0a6cd}=_0x21511e;(_0x36fb60||_0x407d97)&&_0x3c03a0===_0x4acf9a&&_0x3e37df===_0x276930&&_0x22eb7f===_0x2da80c&&_0xb0a6cd===_0x5585df&&(_0x4acf9a=_0x3c03a0,_0x276930=_0x3e37df,_0x2da80c=_0x3c03a0,_0x5585df=_0x3e37df);}const _0x2b815b=Number(_0x14c6ec),_0xa68019=this['_formulaPromptService'][_0x5295a6(0x258)](_0x2b815b);let _0x465b4d={'startAbsoluteRefType':AbsoluteRefType[_0x5295a6(0x273)]};if(typeof _0xa68019!=_0x5295a6(0x40f)){const _0x50917c=_0xa68019[_0x5295a6(0x401)];_0x465b4d=getAbsoluteRefTypeWitString(_0x50917c),_0x465b4d[_0x5295a6(0x201)]==null&&(_0x465b4d[_0x5295a6(0x201)]=_0x465b4d[_0x5295a6(0x1b0)]);}const _0x20881e=_0x24df47==null?void 0x0:_0x24df47[_0x5295a6(0x1a6)][_0x5295a6(0x3d9)](),_0x54616c=_0x24df47==null?void 0x0:_0x24df47[_0x5295a6(0x1a6)][_0x5295a6(0x3a9)](),_0x1ca382=this[_0x5295a6(0x260)]({'range':{'startRow':Math['min'](_0x4acf9a,_0x2da80c),'endRow':Math[_0x5295a6(0x398)](_0x4acf9a,_0x2da80c),'startColumn':Math[_0x5295a6(0x3ba)](_0x276930,_0x5585df),'endColumn':Math['max'](_0x276930,_0x5585df),..._0x465b4d,'sheetId':_0x54616c,'unitId':_0x20881e},'primary':_0x21511e,'style':null});this[_0x5295a6(0x2c0)]['updateSequenceRef'](_0x2b815b,_0x1ca382);const _0x4e057d=this[_0x5295a6(0x2c0)][_0x5295a6(0x3c1)](),_0x1350cb=_0x4e057d[_0x2b815b];typeof _0x1350cb!=_0x5295a6(0x40f)&&(this['_syncToEditor'](_0x4e057d,_0x1350cb[_0x5295a6(0x3b5)]+0x1),_0xdcca['update'](_0x3116ae,void 0x0,void 0x0,void 0x0,this[_0x5295a6(0x3bf)][_0x5295a6(0x2fd)](_0x21511e)));}[_0x40106a(0x402)](_0x1c0f75){const _0x1da381=_0x40106a;var _0x168d6f;for(const _0x342eb7 of _0x1c0f75){const _0x4e3ffc=getEditorObject(_0x342eb7,this[_0x1da381(0x181)]),_0x459aa6=_0x4e3ffc==null?void 0x0:_0x4e3ffc[_0x1da381(0x34f)];_0x459aa6!=null&&((_0x168d6f=_0x459aa6[_0x1da381(0x259)]())==null||_0x168d6f[_0x1da381(0x1fa)](),_0x459aa6[_0x1da381(0x447)]());}}[_0x40106a(0x26b)](){const _0x351fe8=_0x40106a,_0x3104fa=this[_0x351fe8(0x1f8)]();if(_0x3104fa==null)return;const {mainComponent:_0x5ae95e}=_0x3104fa;_0x5ae95e&&this[_0x351fe8(0x1c2)](_0x5ae95e[_0x351fe8(0x207)][_0x351fe8(0x24c)](()=>{const _0x579a4f=_0x351fe8;this[_0x579a4f(0x43e)]=0x1,this[_0x579a4f(0x21f)]=0x3;}));}[_0x40106a(0x3d1)](_0xcfdfa2){const _0x2b8972=_0x40106a,{keycode:_0x3877b6,isSingleEditor:isSingleEditor=!0x1}=_0xcfdfa2;if(this[_0x2b8972(0x2c0)][_0x2b8972(0x17c)]()){this['_formulaPromptService'][_0x2b8972(0x3a2)](!0x0);return;}isSingleEditor!==!0x0&&this[_0x2b8972(0x32b)][_0x2b8972(0x382)]({'visible':!0x1,'eventType':DeviceInputEventType[_0x2b8972(0x233)],'keycode':_0x3877b6,'unitId':''});}['_pressTab'](_0x2276cc){const _0x469a6c=_0x40106a,{keycode:_0x396edc,isSingleEditor:isSingleEditor=!0x1}=_0x2276cc;if(this['_formulaPromptService'][_0x469a6c(0x17c)]()){this[_0x469a6c(0x2c0)][_0x469a6c(0x3a2)](!0x0);return;}isSingleEditor!==!0x0&&this[_0x469a6c(0x32b)]['changeVisible']({'visible':!0x1,'eventType':DeviceInputEventType['Keyboard'],'keycode':_0x396edc,'unitId':''});}[_0x40106a(0x1e3)](_0x307d38){const _0x152edd=_0x40106a,{keycode:_0x402527}=_0x307d38,_0xef5cfc=this[_0x152edd(0x22a)][_0x152edd(0x3cc)]();(!_0xef5cfc||(_0xef5cfc==null?void 0x0:_0xef5cfc[_0x152edd(0x35d)]())===!0x0)&&this[_0x152edd(0x32b)]['changeVisible']({'visible':!0x1,'eventType':DeviceInputEventType['Keyboard'],'keycode':_0x402527,'unitId':''});}[_0x40106a(0x23c)](_0xced9f6){const _0x3beb6d=_0x40106a,{keycode:_0x1b90d6,metaKey:_0x236eaa}=_0xced9f6;let _0x37de66=Direction[_0x3beb6d(0x326)];_0x1b90d6===KeyCode[_0x3beb6d(0x1fb)]?_0x37de66=Direction[_0x3beb6d(0x326)]:_0x1b90d6===KeyCode['ARROW_UP']?_0x37de66=Direction['UP']:_0x1b90d6===KeyCode[_0x3beb6d(0x3b7)]?_0x37de66=Direction[_0x3beb6d(0x3a6)]:_0x1b90d6===KeyCode[_0x3beb6d(0x3f1)]&&(_0x37de66=Direction[_0x3beb6d(0x246)]),_0x236eaa===MetaKeys[_0x3beb6d(0x1f3)]?this[_0x3beb6d(0x34e)]['executeCommand'](MoveSelectionCommand['id'],{'direction':_0x37de66,'jumpOver':JumpOver['moveGap']}):_0x236eaa===MetaKeys['SHIFT']?this[_0x3beb6d(0x34e)][_0x3beb6d(0x32e)](ExpandSelectionCommand['id'],{'direction':_0x37de66}):_0x236eaa===META_KEY_CTRL_AND_SHIFT?this[_0x3beb6d(0x34e)][_0x3beb6d(0x32e)](ExpandSelectionCommand['id'],{'direction':_0x37de66,'jumpOver':JumpOver[_0x3beb6d(0x266)]}):this[_0x3beb6d(0x34e)]['executeCommand'](MoveSelectionCommand['id'],{'direction':_0x37de66});}[_0x40106a(0x1f6)](){const _0x3c27d2=_0x40106a,_0x58a7c9=[SelectEditorFormulaOperation['id']];this[_0x3c27d2(0x1c2)](this[_0x3c27d2(0x34e)][_0x3c27d2(0x245)](_0x48c1a7=>{const _0x5639df=_0x3c27d2;if(_0x48c1a7['id']===ReferenceAbsoluteOperation['id'])this[_0x5639df(0x339)]();else{if(_0x58a7c9['includes'](_0x48c1a7['id'])){const _0x4c791e=_0x48c1a7[_0x5639df(0x2d0)],{keycode:_0x2637b5,isSingleEditor:isSingleEditor=!0x1}=_0x4c791e;if(_0x2637b5===KeyCode[_0x5639df(0x3c5)]){this[_0x5639df(0x3d1)](_0x4c791e);return;}if(_0x2637b5===KeyCode[_0x5639df(0x3d4)]){this[_0x5639df(0x288)](_0x4c791e);return;}if(_0x2637b5===KeyCode[_0x5639df(0x2dd)]){this[_0x5639df(0x1e3)](_0x4c791e);return;}if(this[_0x5639df(0x2c0)][_0x5639df(0x17c)]()){if(_0x2637b5===KeyCode[_0x5639df(0x1fb)]){this[_0x5639df(0x2c0)][_0x5639df(0x3ea)]({'direction':Direction['DOWN']});return;}if(_0x2637b5===KeyCode[_0x5639df(0x1e9)]){this['_formulaPromptService'][_0x5639df(0x3ea)]({'direction':Direction['UP']});return;}}if(isSingleEditor===!0x0)return;if(this[_0x5639df(0x43e)]===0x1){this[_0x5639df(0x2bc)](_0x2637b5);return;}if(this[_0x5639df(0x43e)]===0x4){this[_0x5639df(0x32b)][_0x5639df(0x382)]({'visible':!0x1,'eventType':DeviceInputEventType[_0x5639df(0x233)],'keycode':_0x2637b5,'unitId':''});return;}if(this[_0x5639df(0x43e)]===0x2&&(this[_0x5639df(0x43e)]=0x3),this['_refSelectionsService'][_0x5639df(0x359)]()[_0x5639df(0x348)]===0x0){const _0x5a2a7b=this[_0x5639df(0x27c)][_0x5639df(0x33e)]();if(_0x5a2a7b!=null){const _0x1443e2=Tools[_0x5639df(0x42b)](_0x5a2a7b);this[_0x5639df(0x2ce)]['addSelections']([_0x1443e2]);}}this[_0x5639df(0x23c)](_0x4c791e);const _0x2a2095=this[_0x5639df(0x2ce)][_0x5639df(0x359)](),_0xdde82=_0x2a2095[_0x2a2095[_0x5639df(0x348)]-0x1];this[_0x5639df(0x1be)](_0xdde82),this[_0x5639df(0x2b3)]();}}}));}[_0x40106a(0x2bc)](_0x190046){const _0x2c7f57=_0x40106a;if(_0x190046==null)return;let _0x26e5e7=Direction[_0x2c7f57(0x3a6)];_0x190046===KeyCode['ARROW_DOWN']?_0x26e5e7=Direction[_0x2c7f57(0x326)]:_0x190046===KeyCode[_0x2c7f57(0x1e9)]?_0x26e5e7=Direction['UP']:_0x190046===KeyCode[_0x2c7f57(0x3f1)]&&(_0x26e5e7=Direction[_0x2c7f57(0x246)]),this[_0x2c7f57(0x34e)][_0x2c7f57(0x32e)](MoveCursorOperation['id'],{'direction':_0x26e5e7});}[_0x40106a(0x40c)](){const _0xa23e8e=_0x40106a,_0x4b1f4c=this['_getEditorObject']();if(_0x4b1f4c==null)return;const {mainComponent:_0x2c6fcf}=_0x4b1f4c;_0x2c6fcf&&this[_0xa23e8e(0x1c2)](_0x2c6fcf==null?void 0x0:_0x2c6fcf[_0xa23e8e(0x207)][_0xa23e8e(0x24c)](()=>{const _0x487f8c=_0xa23e8e;this[_0x487f8c(0x22b)]=!0x0;}));}['_inputFormulaListener'](){const _0x2882c0=_0x40106a;this[_0x2882c0(0x1c2)](this[_0x2882c0(0x22a)][_0x2882c0(0x448)][_0x2882c0(0x331)](_0x5eead9=>{const _0x5d009a=_0x2882c0,{formulaString:_0x424f2a,editorUnitId:_0x5a858d}=_0x5eead9;if(_0x424f2a[_0x5d009a(0x240)](0x0,0x1)!==compareToken['EQUALS'])return;const {unitId:_0x28cf6d}=this[_0x5d009a(0x433)]();this[_0x5d009a(0x32b)][_0x5d009a(0x328)]()[_0x5d009a(0x25f)]===!0x1&&this[_0x5d009a(0x32b)]['changeVisible']({'visible':!0x0,'eventType':DeviceInputEventType[_0x5d009a(0x196)],'unitId':_0x28cf6d});const _0x4c1d49=this[_0x5d009a(0x444)][_0x5d009a(0x3fc)](_0x424f2a)||[];this[_0x5d009a(0x2c0)]['setSequenceNodes'](_0x4c1d49),this[_0x5d009a(0x1d8)](_0x4c1d49,_0x424f2a[_0x5d009a(0x348)]-0x1,_0x5a858d,!0x0,!0x1);}));}[_0x40106a(0x339)](){const _0x5d97d6=_0x40106a,_0x29d054=this[_0x5d97d6(0x2bf)]['getActiveTextRange']();if(_0x29d054==null)return;const {startOffset:_0x1bc5d9}=_0x29d054,_0x14edf5=_0x1bc5d9-0x2,_0x4c0537=this[_0x5d97d6(0x2c0)][_0x5d97d6(0x30b)](_0x14edf5),_0x3fc9f2=this['_formulaPromptService'][_0x5d97d6(0x258)](_0x4c0537);if(_0x3fc9f2==null||typeof _0x3fc9f2=='string'||_0x3fc9f2['nodeType']!==sequenceNodeType['REFERENCE'])return;const _0x416136=_0x3fc9f2[_0x5d97d6(0x401)][_0x5d97d6(0x432)]('!');let _0x1cc8e6=_0x3fc9f2[_0x5d97d6(0x401)];_0x416136[_0x5d97d6(0x348)]>0x1&&(_0x1cc8e6=_0x416136[_0x416136[_0x5d97d6(0x348)]-0x1]);let _0x27280b='';for(let _0x50f9fd=0x0,_0x59671d=_0x416136['length'];_0x50f9fd<_0x59671d-0x1;_0x50f9fd++)_0x27280b+=_0x416136[_0x50f9fd];let _0x33e856=_0x1cc8e6;if(_0x1cc8e6['indexOf'](matchToken[_0x5d97d6(0x186)])>-0x1){if(!this[_0x5d97d6(0x22b)])_0x33e856=this[_0x5d97d6(0x309)](_0x1cc8e6);else{const _0x3da8e1=_0x1cc8e6[_0x5d97d6(0x432)](matchToken[_0x5d97d6(0x186)]),_0xd5428f=_0x3da8e1[0x0],_0x496060=_0x3da8e1[0x1];_0x14edf5-_0x3fc9f2['startIndex']<=_0xd5428f['length']?_0x33e856=this[_0x5d97d6(0x297)](_0xd5428f)+matchToken[_0x5d97d6(0x186)]+_0x496060:_0x33e856=_0xd5428f+matchToken['COLON']+this['_changeSingleRef'](_0x496060);}}else _0x33e856=this[_0x5d97d6(0x297)](_0x1cc8e6);_0x33e856=_0x27280b+_0x33e856;const _0x3fafd8=_0x33e856[_0x5d97d6(0x348)]-_0x3fc9f2[_0x5d97d6(0x401)][_0x5d97d6(0x348)];this[_0x5d97d6(0x2c0)]['updateSequenceRef'](_0x4c0537,_0x33e856),this[_0x5d97d6(0x1d8)](this[_0x5d97d6(0x2c0)][_0x5d97d6(0x3c1)](),_0x14edf5+_0x3fafd8+0x1);}[_0x40106a(0x309)](_0xe61c58){const _0x52210d=_0x40106a,_0x58fc5b=deserializeRangeWithSheet(_0xe61c58)[_0x52210d(0x2ec)];let _0x13c19d='';return _0x58fc5b[_0x52210d(0x1b0)]===AbsoluteRefType['NONE']||_0x58fc5b[_0x52210d(0x1b0)]==null?(_0x58fc5b[_0x52210d(0x1b0)]=AbsoluteRefType['ALL'],_0x58fc5b[_0x52210d(0x201)]=AbsoluteRefType[_0x52210d(0x33f)]):(_0x58fc5b[_0x52210d(0x1b0)]=AbsoluteRefType['NONE'],_0x58fc5b[_0x52210d(0x201)]=AbsoluteRefType['NONE']),_0x13c19d=serializeRange(_0x58fc5b),_0x13c19d;}[_0x40106a(0x297)](_0x55af2f){const _0x43bef7=_0x40106a,_0x497060=deserializeRangeWithSheet(_0x55af2f)[_0x43bef7(0x2ec)],_0x4a7ae8=_0x497060[_0x43bef7(0x1b0)];let _0x1aef97='';return _0x4a7ae8===AbsoluteRefType[_0x43bef7(0x273)]||_0x4a7ae8==null?(_0x497060[_0x43bef7(0x1b0)]=AbsoluteRefType[_0x43bef7(0x33f)],_0x497060[_0x43bef7(0x201)]=AbsoluteRefType[_0x43bef7(0x33f)]):_0x4a7ae8===AbsoluteRefType['ALL']?(_0x497060[_0x43bef7(0x1b0)]=AbsoluteRefType[_0x43bef7(0x3ec)],_0x497060[_0x43bef7(0x201)]=AbsoluteRefType[_0x43bef7(0x3ec)]):_0x4a7ae8===AbsoluteRefType[_0x43bef7(0x3ec)]?(_0x497060['startAbsoluteRefType']=AbsoluteRefType[_0x43bef7(0x319)],_0x497060[_0x43bef7(0x201)]=AbsoluteRefType[_0x43bef7(0x319)]):(_0x497060['startAbsoluteRefType']=AbsoluteRefType[_0x43bef7(0x273)],_0x497060['endAbsoluteRefType']=AbsoluteRefType[_0x43bef7(0x273)]),_0x1aef97=serializeRange(_0x497060),_0x1aef97;}[_0x40106a(0x1f8)](){const _0xd588b1=_0x40106a,_0x413e1f=this[_0xd588b1(0x383)]['getCurrentUniverDocInstance']()[_0xd588b1(0x3d9)](),_0x316aea=this[_0xd588b1(0x22a)][_0xd588b1(0x19b)](_0x413e1f);return _0x316aea==null?void 0x0:_0x316aea[_0xd588b1(0x450)];}[_0x40106a(0x2fa)](){const _0x32f5ab=_0x40106a;return this[_0x32f5ab(0x32b)][_0x32f5ab(0x328)]()[_0x32f5ab(0x25f)]===!0x0||this['_contextService'][_0x32f5ab(0x39c)](FORMULA_EDITOR_ACTIVATED);}['_isSheetOrFormulaEditor'](_0x421af3){const _0x3a7aa4=_0x40106a;return _0x421af3['isSheetEditor']()||_0x421af3[_0x3a7aa4(0x3f9)]();}},__name(_a9,'PromptController'),_a9);PromptController=__decorateClass$1([__decorateParam$1(0x0,ICommandService),__decorateParam$1(0x1,IContextService),__decorateParam$1(0x2,Inject(IEditorBridgeService)),__decorateParam$1(0x3,Inject(IFormulaPromptService)),__decorateParam$1(0x4,Inject(LexerTreeBuilder)),__decorateParam$1(0x5,IRenderManagerService),__decorateParam$1(0x6,Inject(ThemeService)),__decorateParam$1(0x7,Inject(SheetsSelectionsService)),__decorateParam$1(0x8,IRefSelectionsService),__decorateParam$1(0x9,IUniverInstanceService),__decorateParam$1(0xa,Inject(IDescriptionService)),__decorateParam$1(0xb,Inject(DocSelectionManagerService)),__decorateParam$1(0xc,IContextMenuService),__decorateParam$1(0xd,IEditorService),__decorateParam$1(0xe,ILayoutService)],PromptController);var __defProp2=Object[_0x40106a(0x353)],__getOwnPropDesc=Object[_0x40106a(0x395)],__defNormalProp2=__name((_0x16e6e3,_0xcfeab,_0x19eaa2)=>_0xcfeab in _0x16e6e3?__defProp2(_0x16e6e3,_0xcfeab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19eaa2}):_0x16e6e3[_0xcfeab]=_0x19eaa2,_0x40106a(0x405)),__decorateClass=__name((_0x3a620f,_0x3032d8,_0x4ef8b7,_0x47dacd)=>{const _0x57306b=_0x40106a;for(var _0x3832f2=_0x47dacd>0x1?void 0x0:_0x47dacd?__getOwnPropDesc(_0x3032d8,_0x4ef8b7):_0x3032d8,_0x437662=_0x3a620f[_0x57306b(0x348)]-0x1,_0x3ec7d3;_0x437662>=0x0;_0x437662--)(_0x3ec7d3=_0x3a620f[_0x437662])&&(_0x3832f2=(_0x47dacd?_0x3ec7d3(_0x3032d8,_0x4ef8b7,_0x3832f2):_0x3ec7d3(_0x3832f2))||_0x3832f2);return _0x47dacd&&_0x3832f2&&__defProp2(_0x3032d8,_0x4ef8b7,_0x3832f2),_0x3832f2;},_0x40106a(0x1d4)),__decorateParam=__name((_0x56d9c7,_0x5cab39)=>(_0x4642b9,_0x3c43e1)=>_0x5cab39(_0x4642b9,_0x3c43e1,_0x56d9c7),_0x40106a(0x21a)),__publicField2=__name((_0x3e0b38,_0x4a99e6,_0x2120e5)=>__defNormalProp2(_0x3e0b38,typeof _0x4a99e6!=_0x40106a(0x1ed)?_0x4a99e6+'':_0x4a99e6,_0x2120e5),_0x40106a(0x216)),_a10;let UniverSheetsFormulaUIPlugin=(_a10=class extends Plugin{constructor(_0x1ea012=defaultPluginBaseConfig,_0x5ba727,_0x1617df,_0x460db6){const _0x4b819a=_0x40106a;super(),this[_0x4b819a(0x41c)]=_0x1ea012,this[_0x4b819a(0x313)]=_0x5ba727,this[_0x4b819a(0x181)]=_0x1617df,this[_0x4b819a(0x2da)]=_0x460db6;const {menu:_0x15541e,..._0x4beb19}=this['_config'];_0x15541e&&this['_configService'][_0x4b819a(0x34c)](_0x4b819a(0x1f7),_0x15541e,{'merge':!0x0}),this[_0x4b819a(0x2da)][_0x4b819a(0x34c)](PLUGIN_CONFIG_KEY_BASE,_0x4beb19);}[_0x40106a(0x39a)](){const _0x3e8f44=_0x40106a,_0x533f68=this[_0x3e8f44(0x313)];[[IFormulaPromptService,{'useClass':FormulaPromptService}],[FormulaUIController],[FormulaAutoFillController],[FormulaClipboardController],[FormulaEditorShowController],[FormulaRenderManagerController],[PromptController]][_0x3e8f44(0x3a5)](_0x4950f1=>_0x533f68['add'](_0x4950f1));}[_0x40106a(0x32c)](){const _0x49b808=_0x40106a;this[_0x49b808(0x313)][_0x49b808(0x424)](FormulaUIController);}[_0x40106a(0x174)](){const _0x918215=_0x40106a;[[RefSelectionsRenderService],[FormulaAlertRenderController]][_0x918215(0x3a5)](_0xfc55a8=>{const _0x4ffdc2=_0x918215;this['disposeWithMe'](this[_0x4ffdc2(0x181)]['registerRenderModule'](UniverInstanceType[_0x4ffdc2(0x1c4)],_0xfc55a8));}),this[_0x918215(0x313)][_0x918215(0x424)](FormulaClipboardController),this[_0x918215(0x313)][_0x918215(0x424)](FormulaRenderManagerController);}['onSteady'](){const _0x2245de=_0x40106a;this[_0x2245de(0x313)][_0x2245de(0x424)](FormulaAutoFillController),this['_injector'][_0x2245de(0x424)](PromptController);}},__name(_a10,_0x40106a(0x25e)),_a10);__publicField2(UniverSheetsFormulaUIPlugin,_0x40106a(0x2c2),FORMULA_UI_PLUGIN_NAME),__publicField2(UniverSheetsFormulaUIPlugin,_0x40106a(0x39d),UniverInstanceType[_0x40106a(0x1c4)]),UniverSheetsFormulaUIPlugin=__decorateClass([DependentOn(UniverFormulaEnginePlugin,UniverSheetsFormulaPlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IRenderManagerService),__decorateParam(0x3,IConfigService)],UniverSheetsFormulaUIPlugin);export{FORMULA_PROMPT_ACTIVATED,HelpFunctionOperation,InsertFunctionOperation,MoreFunctionsOperation,ReferenceAbsoluteOperation,SearchFunctionOperation,SelectEditorFormulaOperation,SheetOnlyPasteFormulaCommand,UniverSheetsFormulaUIPlugin};
|
package/lib/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.univer-formula-help-function{user-select:none;box-sizing:border-box;width:250px;margin:0;line-height:20px;list-style:none;background-color:rgb(var(--bg-color-secondary));border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-lg);outline:none;box-shadow:var(--box-shadow-base)}.univer-formula-help-function-title{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;padding:var(--padding-base) var(--padding-lg);font-size:var(--font-size-xxs);font-weight:500;color:rgb(var(--text-color));overflow-wrap:anywhere;border-bottom:1px solid rgb(var(--border-color))}.univer-formula-help-function-title-icons{display:flex}.univer-formula-help-function-title-icon{cursor:pointer;display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin-left:var(--margin-xs);padding:0;font-size:var(--font-size-xs);color:rgb(var(--text-color-secondary));background-color:transparent;border:none;border-radius:var(--border-radius-base);outline:none;transition:background-color .2s}.univer-formula-help-function-title-icon:hover{background-color:rgb(var(--bg-color-hover))}.univer-formula-help-function-content{overflow-y:auto;box-sizing:border-box;max-height:350px;padding:0 var(--padding-lg) var(--padding-base) var(--padding-lg)}.univer-formula-help-function-content-inner{margin-top:var(--margin-sm)}.univer-formula-help-function-content-params{margin:var(--margin-xs) 0}.univer-formula-help-function-content-params-title{margin-bottom:var(--margin-xs);font-size:var(--font-size-xs);font-weight:500;color:rgb(var(--text-color))}.univer-formula-help-function-content-params-detail{font-size:var(--font-size-xxs);font-weight:400;white-space:pre-wrap;word-wrap:break-word;color:rgb(var(--text-color-secondary))}.univer-formula-help-function-active{color:rgb(var(--primary-color))}.univer-formula-help-decorator{cursor:pointer;position:fixed;z-index:10;display:flex;align-items:center;justify-content:center;padding:var(--padding-xs)}.univer-formula-help-param,.univer-formula-help-param-prefix,.univer-formula-help-param-item,.univer-formula-help-param-active{z-index:1}.univer-formula-search-function{box-sizing:border-box;width:250px;max-height:400px;margin:0;padding:var(--padding-sm);line-height:20px;list-style:none;background-color:rgb(var(--bg-color-secondary));border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-lg);outline:none;box-shadow:var(--box-shadow-base);overflow:hidden;overflow-y:auto}.univer-formula-search-function-item{cursor:pointer;box-sizing:border-box;padding:var(--padding-xs) var(--padding-sm);color:rgb(var(--text-color));border-radius:var(--border-radius-base);transition:background .2s}.univer-formula-search-function-item-name{font-size:var(--font-size-xxs)}.univer-formula-search-function-item-name-light{color:rgb(var(--error-color))}.univer-formula-search-function-item-desc{display:block;font-size:var(--font-size-xxs);color:rgb(var(--grey-500))}.univer-formula-search-function-item-active{background-color:rgb(var(--bg-color-hover))}.univer-formula-more-functions{display:flex;flex-direction:column;justify-content:space-between;height:100%;line-height:20px}.univer-formula-more-functions-operation{display:flex;justify-content:flex-end}.univer-formula-more-functions-operation>button{margin:0 0 var(--margin-lg) var(--margin-base)}.univer-formula-function-params{margin-bottom:var(--margin-xs);font-size:var(--font-size-xxs)}.univer-formula-function-params-title{font-weight:500;color:rgb(var(--text-color-secondary))}.univer-formula-function-params-detail{font-weight:400;color:rgb(var(--text-color))}.univer-formula-input-params-list{overflow-y:auto;height:364px}.univer-formula-input-params-list-item-name{font-size:var(--font-size-sm)}.univer-formula-input-params-list-item-selector{margin:var(--margin-xxs) 0 var(--margin-xs) 0}.univer-formula-select-function-select{display:flex;gap:10%;align-items:center;justify-content:space-between}.univer-formula-select-function-result{user-select:none;overflow-y:auto;box-sizing:border-box;width:100%;max-height:364px;margin:0;margin-top:var(--margin-xs);padding:var(--padding-base);list-style:none;border:1px solid rgb(var(--border-color));border-radius:var(--border-radius-base);outline:none}.univer-formula-select-function-result-item{cursor:pointer;position:relative;box-sizing:border-box;padding:var(--padding-xs) 28px;font-size:var(--font-size-xs);color:rgb(var(--text-color));border-radius:var(--border-radius-base);transition:background .2s}.univer-formula-select-function-result-item>span{display:block}.univer-formula-select-function-result-item-name-light{color:rgb(var(--error-color))}.univer-formula-select-function-result-item-selected{position:absolute;top:50%;left:6px;transform:translateY(-50%);display:inline-flex;font-size:var(--font-size-lg);color:rgb(var(--success-color))}.univer-formula-select-function-result-item-active{background-color:rgb(var(--bg-color-hover))}.univer-formula-select-function-content{overflow-y:auto;max-height:307px;margin:var(--margin-xs) 0}
|