const TASK_GROUP_SELECTION_PREFIX='task-group-';export function buildTaskGroupSelectionKey({groupId:groupId=null,taskIds:taskIds=[]}={}){if(groupId)return''+TASK_GROUP_SELECTION_PREFIX+groupId;const _0x2ec8ad=Array['isArray'](taskIds)?taskIds['map'](_0x4694f9=>String(_0x4694f9||'')['trim']())['filter'](Boolean):[];if(_0x2ec8ad['length']===0x0)return null;return''+TASK_GROUP_SELECTION_PREFIX+[..._0x2ec8ad]['sort']()['join'](',');}export function isTaskGroupSelectionKey(_0x496012){return typeof _0x496012==='string'&&_0x496012['startsWith'](TASK_GROUP_SELECTION_PREFIX);}export function getSelectedTaskGroupVariantId({groupId:groupId=null,taskIds:taskIds=[]}={}){const _0x54fc0a=Array['isArray'](taskIds)?taskIds['map'](_0x211e55=>String(_0x211e55||'')['trim']())['filter'](Boolean):[],_0x3d7669=buildTaskGroupSelectionKey({'groupId':groupId,'taskIds':_0x54fc0a});if(!_0x3d7669||_0x54fc0a['length']===0x0)return null;try{const _0x5868c9=localStorage['getItem'](_0x3d7669);return _0x5868c9&&_0x54fc0a['includes'](_0x5868c9)?_0x5868c9:null;}catch{return null;}}export function saveSelectedTaskGroupVariantId({groupId:groupId=null,taskIds:taskIds=[],taskId:taskId=null}={}){if(!taskId)return![];const _0x560769=buildTaskGroupSelectionKey({'groupId':groupId,'taskIds':taskIds});if(!_0x560769)return![];try{return localStorage['setItem'](_0x560769,taskId),!![];}catch{return![];}}