@univer-cli/content-inspection-command 1.0.2 → 1.0.3
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/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2b4780=_0x347f;(function(_0x161642,_0x444882){const _0x40e48e=_0x347f,_0x3e7f40=_0x161642();while(!![]){try{const _0x54c126=parseInt(_0x40e48e(0x25c))/0x1*(-parseInt(_0x40e48e(0x18a))/0x2)+-parseInt(_0x40e48e(0x1fd))/0x3+parseInt(_0x40e48e(0x220))/0x4+-parseInt(_0x40e48e(0x22e))/0x5*(parseInt(_0x40e48e(0x1de))/0x6)+-parseInt(_0x40e48e(0x17e))/0x7*(-parseInt(_0x40e48e(0x1ea))/0x8)+-parseInt(_0x40e48e(0x1a1))/0x9*(parseInt(_0x40e48e(0x242))/0xa)+parseInt(_0x40e48e(0x1fa))/0xb;if(_0x54c126===_0x444882)break;else _0x3e7f40['push'](_0x3e7f40['shift']());}catch(_0x419d53){_0x3e7f40['push'](_0x3e7f40['shift']());}}}(_0xa40e,0xdcd07));import{ContentInspectionError as _0x2d6708,inspectContent as _0x3d9553}from'@univer-cli/content-inspection';import{Argument as _0x436f3c,Command as _0x53bf79,Option as _0x4d3e81}from'commander';var a=class extends Error{};function o(_0x4a1b33,_0x43b452,_0x196656){const _0x298b9a=_0x347f;if(_0x4a1b33==='workbook'||_0x4a1b33===_0x298b9a(0x1b3)||_0x4a1b33===_0x298b9a(0x24b)||_0x4a1b33===_0x298b9a(0x1bd)||_0x4a1b33==='board')return m(_0x4a1b33,_0x43b452),h(_0x4a1b33,_0x196656['worksheet']),{'kind':_0x4a1b33};if(_0x4a1b33==='worksheet')return h(_0x4a1b33,_0x196656[_0x298b9a(0x17c)]),{'kind':_0x4a1b33,'worksheets':p(_0x43b452,c)};if(_0x4a1b33==='slide')return h(_0x4a1b33,_0x196656['worksheet']),{'kind':_0x4a1b33,'slides':p(_0x43b452,l)};if(_0x4a1b33===_0x298b9a(0x201))return h(_0x4a1b33,_0x196656[_0x298b9a(0x17c)]),{'kind':_0x4a1b33,'paragraphs':p(_0x43b452,u)};if(_0x4a1b33===_0x298b9a(0x169))return h(_0x4a1b33,_0x196656[_0x298b9a(0x17c)]),{'kind':_0x4a1b33,'elements':p(_0x43b452,s)};if(_0x196656[_0x298b9a(0x17c)]===void 0x0)throw new a(_0x298b9a(0x1d6));let _0x52937e=c(_0x196656[_0x298b9a(0x17c)]);return{'kind':_0x4a1b33,'ranges':p(_0x43b452,_0x995ddf=>{const _0x27593b=_0x298b9a;if(_0x995ddf['length']===0x0)throw new a(_0x27593b(0x1b8));return{'range':_0x995ddf,'worksheet':_0x52937e};})};}function s(_0x4bba71){const _0x473465=_0x347f;let _0x2b274e=d(_0x4bba71);if(_0x2b274e[_0x473465(0x203)]==='id')return{'id':_0x2b274e[_0x473465(0x22b)]};throw new a(_0x473465(0x20b)+_0x2b274e[_0x473465(0x203)]+_0x473465(0x20c));}function c(_0x1d055d){const _0x55839d=_0x347f;let _0x3ff1fb=d(_0x1d055d);if(_0x3ff1fb[_0x55839d(0x203)]==='id')return{'id':_0x3ff1fb[_0x55839d(0x22b)]};if(_0x3ff1fb['prefix']==='name')return{'name':_0x3ff1fb[_0x55839d(0x22b)]};if(_0x3ff1fb['prefix']===_0x55839d(0x1da))return{'index':f(_0x3ff1fb[_0x55839d(0x22b)])};throw new a('Unknown\x20worksheet\x20selector\x20prefix\x20\x22'+_0x3ff1fb[_0x55839d(0x203)]+_0x55839d(0x257));}function l(_0x5bb929){const _0x450292=_0x347f;let _0x4a0fe0=d(_0x5bb929);if(_0x4a0fe0['prefix']==='id')return{'id':_0x4a0fe0[_0x450292(0x22b)]};if(_0x4a0fe0['prefix']===_0x450292(0x1da))return{'index':f(_0x4a0fe0[_0x450292(0x22b)])};throw new a('Unknown\x20slide\x20selector\x20prefix\x20\x22'+_0x4a0fe0[_0x450292(0x203)]+_0x450292(0x241));}function _0xa40e(){const _0x5c0714=['content\x20target','335032qBimwc','slide\x20[',',\x20selectable=','\x20\x20labelText:\x20','site-','children','addOption','\x20·\x20','length','\x20(clipped\x20from\x20','stringify','speakerNotes','unresolved','Invalid\x20selector\x20\x22','worksheet\x20[','\x20\x20values:\x20','join','visible','data','waypoints','media',':lifeline@',':boundary(','9vXvusY','\x20\x20text:\x20','\x20\x20mediaType:\x20','\x20\x20shapeData:\x20','[selectors...]','text','valueUsedRanges','indexOf','\x20\x20state:\x20visible=','write\x20the\x20complete\x20structured\x20result\x20as\x20JSON','configureOutput','argument','shapeData','code','--worksheet\x20is\x20only\x20valid\x20for\x20range,\x20not\x20','--trunk\x20and\x20--worktree\x20cannot\x20be\x20used\x20together','\x20\x20conditional\x20formatting:\x20','\x20\x20imageSourceType:\x20','document','\x20\x20originalType:\x20','chart','subtype','error','Range\x20cannot\x20be\x20empty','worksheets','json','description','entries','base','),\x20','size','height','choices','end','push','\x20\x20connection:\x20','crop','segmentT','\x20\x20tableId:\x20','Base\x20','release','Unit\x20to\x20inspect','action','connectionSiteId','routingMode','source','body','\x20\x20children:\x20','shapeBoundary','Unknown\x20paragraph\x20selector\x20prefix\x20\x22','sort','conflicts','replace','range\x20requires\x20--worksheet\x20<selector>','Inspect\x20structured\x20Univer\x20content','startElementId','addArgument','index','\x20\x20formulas:\x20','shapes','displayValues','6ZoAEDY','map','inspect\x20the\x20trunk',')\x20·\x20primary\x20','\x20->\x20','\x20\x20description:\x20','slice','rowCount','labels','prstGeom','writeOut','\x20—\x20','856AOLgRt','drawings','free','width','connection','fields','inspect.invalid-input','--trunk','\x20(charts\x20','orderIndex','This\x20inspection\x20target\x20requires\x20at\x20least\x20one\x20selector','\x20columns\x20omitted','\x20tables','\x20paragraphs,\x20','textPreview',',\x20…\x20','27796285jUFneJ','\x20elements','elements','1334043bRaCCH','\x09…\x20','adjustValues','views','paragraph','trunk','prefix','containerData','imageSourceType','string','clipped','test','poster','charts','Unknown\x20board\x20element\x20selector\x20prefix\x20\x22','\x22;\x20use\x20id:','acquireRuntime','byType','\x20\x20bounds:\x20','labelText','styleUsedRanges','\x20\x20laneId:\x20','\x20\x20style:\x20','style','layoutSlideCount','table','board','\x20elements\x20—\x20','dataStream','shape','\x20\x20tables:\x20','name','\x20\x20labelStyle:\x20','tableId','explicit\x20selectors\x20such\x20as\x20id:sheet-1,\x20name:Plan,\x20or\x20index:2','2558652NxYKJA','parentId',')\x20[','\x20\x20containerData:\x20','none','columnCount','kind','locked','shapeId','\x20\x20textStyle:\x20','\x20\x20transform:\x20','value','Invalid\x20index\x20\x22','labelStyle','7938630yNlMPM','trim',',\x20shapes\x20','\x20\x20views:\x20','\x20\x20labels:\x20','paragraph\x20[','\x20waypoints','range','placeholder','segmentIndex','endElementId','mergedRanges','\x20\x20poster:\x20','--worktree\x20<id>','slides','workbook','top','lifeline','textStyle','\x22;\x20use\x20id:\x20or\x20index:','12065090MOiYFY','resolvedRange','primaryFieldId','laneId','recordCount','routing','\x20fields\x20·\x20','unit','dataValidation','presentation','\x0atext\x20runs:\x20','worktree','\x20\x20data\x20validation:\x20','type','Specify\x20exactly\x20one\x20of\x20--trunk\x20or\x20--worktree\x20<id>','masterSlideCount','\x22;\x20index\x20must\x20be\x20an\x20integer','unitId','worksheet-range','connectionPosition','\x20\x20adjustValues:\x20','\x22;\x20use\x20id:,\x20name:,\x20or\x20index:','mediaType','board\x20','find','view','4xSDDqX','left','tables','board-element','\x20\x20[','title','worksheet\x20selector\x20for\x20range','total','--unit\x20<unit-id>','images','\x20\x20placeholder:\x20','workbook\x20','inspect.failed','count','isSafeInteger',',\x20locked=','diagram','bounds','selectable','paragraphs','paragraphCount','\x20\x20parentId:\x20','worksheet','inspect','107737uPYEwY','\x20\x20crop:\x20','elementCounts','\x20\x20source:\x20','--json','localeCompare','requiredOption','textContent','slide','\x20\x20merged:\x20','\x20rows\x20omitted'];_0xa40e=function(){return _0x5c0714;};return _0xa40e();}function u(_0x45e112){const _0x108230=_0x347f;let _0x2cbebf=d(_0x45e112);if(_0x2cbebf['prefix']==='id')return{'id':_0x2cbebf[_0x108230(0x22b)]};if(_0x2cbebf[_0x108230(0x203)]==='index')return{'index':f(_0x2cbebf['value'])};throw new a(_0x108230(0x1d2)+_0x2cbebf[_0x108230(0x203)]+_0x108230(0x241));}function d(_0x211fdd){const _0x230823=_0x347f;let _0x1f3001=_0x211fdd[_0x230823(0x1a8)](':');if(_0x1f3001<=0x0||_0x1f3001===_0x211fdd[_0x230823(0x192)]-0x1)throw new a(_0x230823(0x197)+_0x211fdd+'\x22;\x20selectors\x20require\x20an\x20explicit\x20prefix');return{'prefix':_0x211fdd[_0x230823(0x1e4)](0x0,_0x1f3001),'value':_0x211fdd[_0x230823(0x1e4)](_0x1f3001+0x1)};}function f(_0x2f893b){const _0x1e289f=_0x347f;if(!/^\d+$/[_0x1e289f(0x208)](_0x2f893b))throw new a(_0x1e289f(0x22c)+_0x2f893b+_0x1e289f(0x252));let _0x1fdec2=Number(_0x2f893b);if(!Number[_0x1e289f(0x174)](_0x1fdec2)||_0x1fdec2<0x1)throw new a('Invalid\x20index\x20\x22'+_0x2f893b+'\x22;\x20CLI\x20indices\x20start\x20at\x201');return _0x1fdec2-0x1;}function p(_0x423176,_0xa08795){const _0x687f50=_0x347f;if(_0x423176[_0x687f50(0x192)]===0x0)throw new a(_0x687f50(0x1f4));let _0x422d3c=_0x423176[0x0];if(_0x422d3c===void 0x0)throw new a('Missing\x20selector');return[_0xa08795(_0x422d3c),..._0x423176[_0x687f50(0x1e4)](0x1)['map'](_0xa08795)];}function _0x347f(_0x4271a2,_0x2efbea){_0x4271a2=_0x4271a2-0x167;const _0xa40e33=_0xa40e();let _0x347fe8=_0xa40e33[_0x4271a2];return _0x347fe8;}function m(_0x5ee827,_0x3c5398){if(_0x3c5398['length']>0x0)throw new a(_0x5ee827+'\x20inspection\x20does\x20not\x20accept\x20selectors');}function h(_0x4cbe2f,_0x4fa5d8){const _0x593e83=_0x347f;if(_0x4fa5d8!==void 0x0)throw new a(_0x593e83(0x1af)+_0x4cbe2f);}var g=0xc,_=0x8,v=0xc;function y(_0x46fb69){const _0x7504f2=_0x347f;switch(_0x46fb69['kind']){case _0x7504f2(0x1bd):return[_0x7504f2(0x1c8)+_0x46fb69['name']+'\x20('+_0x46fb69[_0x7504f2(0x253)]+')',_0x46fb69[_0x7504f2(0x168)]['length']+_0x7504f2(0x1f6),'',..._0x46fb69[_0x7504f2(0x168)][_0x7504f2(0x1df)](k)][_0x7504f2(0x19a)]('\x0a');case _0x7504f2(0x23d):return[_0x7504f2(0x171)+_0x46fb69[_0x7504f2(0x21c)]+'\x20('+_0x46fb69[_0x7504f2(0x253)]+')',..._0x46fb69[_0x7504f2(0x1b9)][_0x7504f2(0x1df)](A)][_0x7504f2(0x19a)]('\x0a');case _0x7504f2(0x17c):return _0x46fb69[_0x7504f2(0x1b9)][_0x7504f2(0x1df)](A)[_0x7504f2(0x19a)]('\x0a');case _0x7504f2(0x254):return _0x46fb69['ranges'][_0x7504f2(0x1df)](_0x5c7c39=>_0x5c7c39[_0x7504f2(0x17c)][_0x7504f2(0x21c)]+'!'+_0x5c7c39[_0x7504f2(0x243)]+(_0x5c7c39[_0x7504f2(0x207)]?_0x7504f2(0x193)+_0x5c7c39['requestedRange']+')':'')+'\x0a'+j(_0x5c7c39[_0x7504f2(0x1dd)]))[_0x7504f2(0x19a)]('\x0a\x0a');case _0x7504f2(0x24b):return['presentation\x20'+_0x46fb69[_0x7504f2(0x21c)]+'\x20('+_0x46fb69['unitId']+')\x20'+_0x46fb69[_0x7504f2(0x1bf)][_0x7504f2(0x1ed)]+'x'+_0x46fb69[_0x7504f2(0x1bf)][_0x7504f2(0x1c0)],'masters:\x20'+_0x46fb69[_0x7504f2(0x251)]+',\x20layouts:\x20'+_0x46fb69[_0x7504f2(0x215)],..._0x46fb69[_0x7504f2(0x23c)]['map'](_0x6bdb74=>_0x7504f2(0x16a)+(_0x6bdb74[_0x7504f2(0x1da)]+0x1)+']\x20'+_0x6bdb74['id']+'\x20'+_0x6bdb74[_0x7504f2(0x21c)]+'\x20—\x20'+_0x6bdb74[_0x7504f2(0x180)][_0x7504f2(0x16d)]+_0x7504f2(0x1fb)+(_0x6bdb74[_0x7504f2(0x1f8)]===void 0x0?'':_0x7504f2(0x1e9)+_0x6bdb74[_0x7504f2(0x1f8)]))][_0x7504f2(0x19a)]('\x0a');case _0x7504f2(0x186):return _0x46fb69[_0x7504f2(0x23c)]['map'](_0x52062b=>[_0x7504f2(0x18b)+(_0x52062b['index']+0x1)+']\x20'+_0x52062b['id']+'\x20'+_0x52062b[_0x7504f2(0x21c)],..._0x52062b[_0x7504f2(0x1fc)][_0x7504f2(0x1df)](_0x30fb3b=>M(_0x30fb3b,'\x20\x20')),..._0x52062b[_0x7504f2(0x195)]===''?[]:['\x20\x20notes:\x20'+_0x52062b['speakerNotes']]][_0x7504f2(0x19a)]('\x0a'))[_0x7504f2(0x19a)]('\x0a\x0a');case _0x7504f2(0x1b3):return['document\x20'+_0x46fb69[_0x7504f2(0x16b)]+'\x20('+_0x46fb69[_0x7504f2(0x253)]+_0x7504f2(0x222)+_0x46fb69['mode']+']',_0x46fb69[_0x7504f2(0x17a)]+_0x7504f2(0x1f7)+_0x46fb69['characterCount']+'\x20characters',..._0x46fb69[_0x7504f2(0x179)][_0x7504f2(0x1df)](_0x2a2efe=>_0x7504f2(0x16a)+(_0x2a2efe[_0x7504f2(0x1da)]+0x1)+']\x20'+_0x2a2efe['id']+_0x7504f2(0x1e9)+_0x2a2efe[_0x7504f2(0x1f8)])][_0x7504f2(0x19a)]('\x0a');case _0x7504f2(0x201):return _0x46fb69[_0x7504f2(0x179)][_0x7504f2(0x1df)](_0x33e715=>_0x7504f2(0x233)+(_0x33e715['index']+0x1)+']\x20'+_0x33e715['id']+'\x0a'+_0x33e715[_0x7504f2(0x1a6)]+(_0x33e715['textRuns'][_0x7504f2(0x192)]===0x0?'':_0x7504f2(0x24c)+_0x33e715['textRuns']['length']))['join']('\x0a\x0a');case _0x7504f2(0x217):return[_0x7504f2(0x259)+_0x46fb69[_0x7504f2(0x21c)]+'\x20('+_0x46fb69[_0x7504f2(0x253)]+')',_0x46fb69[_0x7504f2(0x180)][_0x7504f2(0x16d)]+_0x7504f2(0x218)+C(_0x46fb69[_0x7504f2(0x180)][_0x7504f2(0x20e)]),..._0x46fb69['elements'][_0x7504f2(0x1df)](_0x18b820=>b(_0x18b820,'\x20\x20'))]['join']('\x0a');case _0x7504f2(0x169):return _0x46fb69[_0x7504f2(0x1fc)][_0x7504f2(0x1df)](x)[_0x7504f2(0x19a)]('\x0a\x0a');}}function b(_0x5cce59,_0x13abbe){const _0x4ce80c=_0x347f;let _0x5ccaa4=_0x5cce59[_0x4ce80c(0x1b6)]===void 0x0?'':':'+_0x5cce59['subtype'],_0x18853a=_0x5cce59[_0x4ce80c(0x21c)]===void 0x0||_0x5cce59[_0x4ce80c(0x21c)]===''?'':'\x20'+_0x5cce59['name'],_0x25127f=_0x5cce59[_0x4ce80c(0x1d8)]===void 0x0&&_0x5cce59[_0x4ce80c(0x238)]===void 0x0?'':'\x20'+(_0x5cce59[_0x4ce80c(0x1d8)]??'?')+_0x4ce80c(0x1e2)+(_0x5cce59[_0x4ce80c(0x238)]??'?'),_0x1148ea=_0x5cce59[_0x4ce80c(0x1a6)]===void 0x0||_0x5cce59[_0x4ce80c(0x1a6)]===''?'':_0x4ce80c(0x1e9)+D(_0x5cce59[_0x4ce80c(0x1a6)]);return _0x13abbe+'['+(_0x5cce59[_0x4ce80c(0x1f3)]+0x1)+']\x20'+_0x5cce59['type']+_0x5ccaa4+'\x20'+_0x5cce59['id']+_0x18853a+_0x25127f+_0x1148ea;}function x(_0x100a72){const _0x772393=_0x347f;let _0x2f6990=[_0x100a72[_0x772393(0x24f)]+'\x20'+_0x100a72['id']+'\x20['+(_0x100a72[_0x772393(0x1f3)]+0x1)+']'+(_0x100a72[_0x772393(0x21c)]===void 0x0||_0x100a72[_0x772393(0x21c)]===''?'':'\x20'+_0x100a72[_0x772393(0x21c)]),_0x772393(0x22a)+T(_0x100a72['transform']),_0x772393(0x20f)+(_0x100a72[_0x772393(0x177)]===null?_0x772393(0x196):T(_0x100a72[_0x772393(0x177)])),_0x772393(0x1a9)+_0x100a72[_0x772393(0x19b)]+_0x772393(0x18c)+_0x100a72[_0x772393(0x178)]+_0x772393(0x175)+_0x100a72[_0x772393(0x227)]];return _0x100a72[_0x772393(0x1bb)]!==void 0x0&&_0x2f6990[_0x772393(0x1c3)](_0x772393(0x1e3)+D(_0x100a72['description'])),_0x100a72[_0x772393(0x221)]!==void 0x0&&_0x2f6990[_0x772393(0x1c3)](_0x772393(0x17b)+_0x100a72['parentId']),_0x100a72[_0x772393(0x245)]!==void 0x0&&_0x2f6990[_0x772393(0x1c3)](_0x772393(0x212)+_0x100a72[_0x772393(0x245)]),_0x100a72[_0x772393(0x24f)]==='connector'?(_0x2f6990[_0x772393(0x1c3)](_0x772393(0x1c4)+S(_0x100a72['connection']['start'])+_0x772393(0x1e2)+S(_0x100a72[_0x772393(0x1ee)][_0x772393(0x1c2)]),'\x20\x20routing:\x20'+_0x100a72[_0x772393(0x1ee)][_0x772393(0x247)]+'\x20('+_0x100a72['connection'][_0x772393(0x1cd)]+_0x772393(0x1be)+_0x100a72[_0x772393(0x1ee)][_0x772393(0x19d)][_0x772393(0x192)]+_0x772393(0x234),_0x772393(0x213)+T(_0x100a72['style']),_0x772393(0x232)+T(_0x100a72[_0x772393(0x1e6)]),_0x772393(0x18d)+w(_0x100a72[_0x772393(0x210)]),_0x772393(0x21d)+T(_0x100a72[_0x772393(0x22d)])),_0x2f6990[_0x772393(0x19a)]('\x0a')):(_0x100a72[_0x772393(0x24f)]===_0x772393(0x21a)?_0x2f6990[_0x772393(0x1c3)](_0x772393(0x1a4)+T(_0x100a72[_0x772393(0x1ad)])):_0x100a72[_0x772393(0x24f)]===_0x772393(0x1a6)?_0x2f6990[_0x772393(0x1c3)]('\x20\x20textContent:\x20'+w(_0x100a72[_0x772393(0x185)]),_0x772393(0x229)+T(_0x100a72[_0x772393(0x240)])):_0x100a72[_0x772393(0x24f)]==='image'?(_0x2f6990['push']('\x20\x20source:\x20'+E(_0x100a72[_0x772393(0x1ce)])),_0x100a72[_0x772393(0x205)]!==void 0x0&&_0x2f6990[_0x772393(0x1c3)](_0x772393(0x1b2)+_0x100a72[_0x772393(0x205)]),_0x100a72[_0x772393(0x1c5)]!==void 0x0&&_0x2f6990[_0x772393(0x1c3)](_0x772393(0x17f)+T(_0x100a72[_0x772393(0x1c5)])),_0x100a72['prstGeom']!==void 0x0&&_0x2f6990[_0x772393(0x1c3)]('\x20\x20prstGeom:\x20'+_0x100a72[_0x772393(0x1e7)]),_0x100a72[_0x772393(0x1ff)]!==void 0x0&&_0x2f6990[_0x772393(0x1c3)](_0x772393(0x256)+T(_0x100a72[_0x772393(0x1ff)]))):_0x100a72['type']===_0x772393(0x1b5)?(_0x2f6990[_0x772393(0x1c3)]('\x20\x20chartId:\x20'+_0x100a72['chartId']),_0x100a72[_0x772393(0x236)]!==void 0x0&&_0x2f6990[_0x772393(0x1c3)]('\x20\x20placeholder:\x20'+T(_0x100a72[_0x772393(0x236)])),_0x100a72['stroke']!==void 0x0&&_0x2f6990[_0x772393(0x1c3)]('\x20\x20stroke:\x20'+T(_0x100a72['stroke']))):_0x100a72['type']==='container'?_0x2f6990['push'](_0x772393(0x223)+T(_0x100a72[_0x772393(0x204)])):_0x100a72[_0x772393(0x24f)]===_0x772393(0x176)?_0x2f6990[_0x772393(0x1c3)]('\x20\x20data:\x20'+T(_0x100a72[_0x772393(0x19c)])):_0x100a72['type']===_0x772393(0x216)?(_0x2f6990[_0x772393(0x1c3)](_0x772393(0x1c7)+_0x100a72[_0x772393(0x21e)]),_0x100a72[_0x772393(0x236)]!==void 0x0&&_0x2f6990['push'](_0x772393(0x170)+T(_0x100a72[_0x772393(0x236)]))):_0x100a72['type']==='group'?_0x2f6990[_0x772393(0x1c3)](_0x772393(0x1d0)+N(_0x100a72[_0x772393(0x18f)])):_0x100a72[_0x772393(0x24f)]===_0x772393(0x19e)?(_0x2f6990[_0x772393(0x1c3)](_0x772393(0x1a3)+_0x100a72[_0x772393(0x258)],_0x772393(0x181)+E(_0x100a72['source'])),_0x100a72['poster']!==void 0x0&&_0x2f6990[_0x772393(0x1c3)](_0x772393(0x23a)+E(_0x100a72[_0x772393(0x209)]))):_0x100a72['type']===_0x772393(0x236)?(_0x2f6990['push'](_0x772393(0x170)+T(_0x100a72['placeholder'])),_0x100a72[_0x772393(0x1a6)]!==void 0x0&&_0x2f6990['push'](_0x772393(0x1a2)+D(_0x100a72['text'])),_0x100a72['style']!==void 0x0&&_0x2f6990[_0x772393(0x1c3)](_0x772393(0x213)+T(_0x100a72[_0x772393(0x214)]))):_0x2f6990[_0x772393(0x1c3)](_0x772393(0x1b4)+_0x100a72['originalType'],'\x20\x20data:\x20'+T(_0x100a72[_0x772393(0x19c)])),_0x2f6990[_0x772393(0x19a)]('\x0a'));}function S(_0x2d4be5){const _0x5b404e=_0x347f;if(_0x2d4be5[_0x5b404e(0x226)]===_0x5b404e(0x1ec))return'free('+_0x2d4be5['x']+','+_0x2d4be5['y']+')';if(_0x2d4be5['kind']===_0x5b404e(0x23f))return _0x2d4be5['shapeId']+_0x5b404e(0x19f)+_0x2d4be5['offsetY'];if(_0x2d4be5[_0x5b404e(0x226)]===_0x5b404e(0x1d1))return _0x2d4be5[_0x5b404e(0x228)]+_0x5b404e(0x1a0)+_0x2d4be5['outlineIndex']+','+_0x2d4be5[_0x5b404e(0x237)]+','+_0x2d4be5[_0x5b404e(0x1c6)]+')';let _0x20e015=[_0x5b404e(0x23e),'right','bottom',_0x5b404e(0x167)][_0x2d4be5[_0x5b404e(0x1cc)]]??_0x5b404e(0x18e)+_0x2d4be5[_0x5b404e(0x1cc)];return _0x2d4be5[_0x5b404e(0x228)]+':'+_0x20e015+(_0x2d4be5['connectionPosition']===void 0x0?'':'@'+_0x2d4be5[_0x5b404e(0x255)]);}function C(_0x556d38){const _0x5b48f0=_0x347f;let _0x289445=Object[_0x5b48f0(0x1bc)](_0x556d38)[_0x5b48f0(0x1d3)](([_0x40c2ed],[_0x4a37c7])=>_0x40c2ed[_0x5b48f0(0x183)](_0x4a37c7));return _0x289445[_0x5b48f0(0x192)]===0x0?_0x5b48f0(0x224):_0x289445['map'](([_0x3b306c,_0x21b87d])=>_0x3b306c+'\x20'+_0x21b87d)['join'](',\x20');}function w(_0x21a529){const _0x6b9123=_0x347f;if(O(_0x21a529)){let _0x42dd3b=_0x21a529[_0x6b9123(0x1cf)];if(O(_0x42dd3b)&&typeof _0x42dd3b[_0x6b9123(0x219)]==_0x6b9123(0x206))return D(_0x42dd3b[_0x6b9123(0x219)][_0x6b9123(0x1d5)](/[\r\n]+$/u,''));}return T(_0x21a529);}function T(_0x3d61f9){const _0x802b30=_0x347f;return E(JSON[_0x802b30(0x194)](_0x3d61f9));}function E(_0x46592e){const _0x5e0e2c=_0x347f;return _0x46592e[_0x5e0e2c(0x192)]<=0xc8?_0x46592e:_0x46592e[_0x5e0e2c(0x1e4)](0x0,0xc5)+'…';}function D(_0x4c4bf6){const _0xdcd461=_0x347f;return E(_0x4c4bf6[_0xdcd461(0x1d5)](/\s+/gu,'\x20')['trim']());}function O(_0x324cfe){return typeof _0x324cfe=='object'&&!!_0x324cfe&&!Array['isArray'](_0x324cfe);}function k(_0x497396){const _0x330576=_0x347f;let _0x322ff7=_0x497396[_0x330576(0x1ef)][_0x330576(0x25a)](_0x3c630a=>_0x3c630a['id']===_0x497396['primaryFieldId']);return['['+_0x497396[_0x330576(0x1da)]+']\x20'+_0x497396[_0x330576(0x21c)]+'\x20('+_0x497396['id']+_0x330576(0x1e1)+(_0x322ff7?.['name']??_0x497396[_0x330576(0x244)])+_0x330576(0x191)+_0x497396[_0x330576(0x1ef)][_0x330576(0x192)]+_0x330576(0x248)+_0x497396[_0x330576(0x246)]+'\x20records\x20·\x20'+_0x497396[_0x330576(0x200)][_0x330576(0x192)]+'\x20'+(_0x497396[_0x330576(0x200)]['length']===0x1?_0x330576(0x25b):_0x330576(0x200)),'\x20\x20fields:\x20'+N(_0x497396[_0x330576(0x1ef)][_0x330576(0x1df)](_0xc9eccb=>_0xc9eccb[_0x330576(0x21c)]+':'+_0xc9eccb[_0x330576(0x24f)])),_0x330576(0x231)+N(_0x497396[_0x330576(0x200)][_0x330576(0x1df)](_0x55c13c=>_0x55c13c[_0x330576(0x21c)]+':'+_0x55c13c[_0x330576(0x24f)]))][_0x330576(0x19a)]('\x0a');}function A(_0x247469){const _0x1f3367=_0x347f;let _0x374933=[_0x1f3367(0x198)+(_0x247469[_0x1f3367(0x1da)]+0x1)+']\x20'+_0x247469['id']+'\x20'+_0x247469['name']+'\x20('+_0x247469[_0x1f3367(0x1e5)]+'x'+_0x247469[_0x1f3367(0x225)]+')',_0x1f3367(0x199)+N(_0x247469[_0x1f3367(0x1a7)]),_0x1f3367(0x1db)+N(_0x247469['formulaUsedRanges']),'\x20\x20styles:\x20'+N(_0x247469[_0x1f3367(0x211)]),_0x1f3367(0x187)+N(_0x247469[_0x1f3367(0x239)])];return _0x247469[_0x1f3367(0x168)][_0x1f3367(0x192)]>0x0&&_0x374933[_0x1f3367(0x1c3)](_0x1f3367(0x21b)+N(_0x247469[_0x1f3367(0x168)][_0x1f3367(0x1df)](_0x5862fd=>_0x5862fd[_0x1f3367(0x21c)]+'('+_0x5862fd[_0x1f3367(0x235)]+')'))),_0x374933[_0x1f3367(0x1c3)](_0x1f3367(0x1b1)+_0x247469['conditionalFormatting']['count'],_0x1f3367(0x24e)+_0x247469[_0x1f3367(0x24a)][_0x1f3367(0x173)],'\x20\x20drawings:\x20'+_0x247469['drawings'][_0x1f3367(0x16d)]+_0x1f3367(0x1f2)+_0x247469['drawings'][_0x1f3367(0x20a)]+',\x20images\x20'+_0x247469[_0x1f3367(0x1eb)][_0x1f3367(0x16f)]+_0x1f3367(0x230)+_0x247469[_0x1f3367(0x1eb)][_0x1f3367(0x1dc)]+')'),_0x374933[_0x1f3367(0x19a)]('\x0a');}function j(_0x23e737){const _0x35d9b1=_0x347f;let _0x3e680a=_0x23e737[_0x35d9b1(0x1e4)](0x0,g)[_0x35d9b1(0x1df)](_0x3bb5a9=>{const _0x230043=_0x35d9b1;let _0x10c8fa=_0x3bb5a9[_0x230043(0x1e4)](0x0,_),_0x217fcb=_0x3bb5a9[_0x230043(0x192)]-_0x10c8fa[_0x230043(0x192)];return''+_0x10c8fa[_0x230043(0x1df)](_0x567124=>JSON[_0x230043(0x194)](_0x567124))['join']('\x09')+(_0x217fcb>0x0?_0x230043(0x1fe)+_0x217fcb+_0x230043(0x1f5):'');}),_0xbf7b0c=_0x23e737[_0x35d9b1(0x192)]-_0x3e680a['length'];return _0xbf7b0c>0x0&&_0x3e680a['push']('…\x20'+_0xbf7b0c+_0x35d9b1(0x188)),_0x3e680a[_0x35d9b1(0x19a)]('\x0a');}function M(_0x11aacd,_0x46e9fb){const _0x5427a8=_0x347f;let _0x1b31e8=_0x11aacd[_0x5427a8(0x1a6)]?.[_0x5427a8(0x1a6)]['replace'](/\s+/g,'\x20')[_0x5427a8(0x22f)]();return[''+_0x46e9fb+_0x11aacd[_0x5427a8(0x24f)]+'\x20'+_0x11aacd['id']+(_0x11aacd[_0x5427a8(0x21c)]===''?'':'\x20'+_0x11aacd[_0x5427a8(0x21c)])+(_0x1b31e8===void 0x0||_0x1b31e8===''?'':_0x5427a8(0x1e9)+_0x1b31e8),...(_0x11aacd[_0x5427a8(0x18f)]??[])[_0x5427a8(0x1df)](_0x4fd483=>M(_0x4fd483,_0x46e9fb+'\x20\x20'))][_0x5427a8(0x19a)]('\x0a');}function N(_0x2f6447){const _0x513c10=_0x347f;if(_0x2f6447[_0x513c10(0x192)]===0x0)return _0x513c10(0x224);let _0x30ae7b=_0x2f6447[_0x513c10(0x1e4)](0x0,v),_0x2f486e=_0x2f6447['length']-_0x30ae7b['length'];return''+_0x30ae7b[_0x513c10(0x19a)](',\x20')+(_0x2f486e>0x0?_0x513c10(0x1f9)+_0x2f486e+'\x20omitted':'');}var P=[_0x2b4780(0x23d),_0x2b4780(0x17c),_0x2b4780(0x235),'document',_0x2b4780(0x201),_0x2b4780(0x24b),_0x2b4780(0x186),_0x2b4780(0x1bd),_0x2b4780(0x217),_0x2b4780(0x169)];function F(_0x3d1697){const _0x378c08=_0x2b4780;return L({'acquireRuntime':async _0x560f79=>await _0x3d1697[_0x378c08(0x20d)]({'unitId':_0x560f79}),'worktree':!0x1});}function I(_0x28e449){return L({'acquireRuntime':async(_0x3a2aa5,_0x4fdb15)=>{const _0xa7a02=_0x347f;if(_0x4fdb15[_0xa7a02(0x202)]===!0x0&&_0x4fdb15[_0xa7a02(0x24d)]!==void 0x0)throw new a(_0xa7a02(0x1b0));if(_0x4fdb15[_0xa7a02(0x202)]!==!0x0&&_0x4fdb15[_0xa7a02(0x24d)]===void 0x0)throw new a(_0xa7a02(0x250));return await _0x28e449[_0xa7a02(0x20d)]({'unitId':_0x3a2aa5,..._0x4fdb15[_0xa7a02(0x24d)]===void 0x0?{}:{'worktreeID':_0x4fdb15['worktree']}});},'worktree':!0x0});}function L(_0x50d6c1){const _0x24b2f5=_0x2b4780;let _0x65ee79=new _0x53bf79(_0x24b2f5(0x17d))[_0x24b2f5(0x1bb)](_0x24b2f5(0x1d7))[_0x24b2f5(0x1d9)](new _0x436f3c('<target>',_0x24b2f5(0x189))[_0x24b2f5(0x1c1)](P))[_0x24b2f5(0x1ac)](_0x24b2f5(0x1a5),_0x24b2f5(0x21f))[_0x24b2f5(0x184)](_0x24b2f5(0x16e),_0x24b2f5(0x1ca))['option']('--worksheet\x20<selector>',_0x24b2f5(0x16c))['option'](_0x24b2f5(0x182),_0x24b2f5(0x1aa));return _0x50d6c1['worktree']&&_0x65ee79['addOption'](new _0x4d3e81(_0x24b2f5(0x1f1),_0x24b2f5(0x1e0))[_0x24b2f5(0x1d4)](_0x24b2f5(0x24d)))[_0x24b2f5(0x190)](new _0x4d3e81(_0x24b2f5(0x23b),'inspect\x20a\x20worktree')[_0x24b2f5(0x1d4)](_0x24b2f5(0x202))),_0x65ee79[_0x24b2f5(0x1cb)](async(_0x1709e6,_0x2dd35e,_0x32cc61)=>{const _0x26230c=_0x24b2f5;let _0x4589b0=_0x1709e6===_0x26230c(0x235)?_0x26230c(0x254):_0x1709e6,_0x35fb1f;try{_0x35fb1f=o(_0x4589b0,_0x2dd35e,_0x32cc61);}catch(_0x273f2a){throw _0x273f2a instanceof a&&_0x65ee79['error'](_0x273f2a['message'],{'code':_0x26230c(0x1f0),'exitCode':0x1}),_0x273f2a;}let _0x14ee31,_0x4541cf;try{_0x14ee31=await _0x50d6c1['acquireRuntime'](_0x32cc61[_0x26230c(0x249)],_0x32cc61),_0x4541cf=await _0x3d9553(_0x14ee31,_0x35fb1f);}catch(_0x405c92){throw _0x14ee31!==void 0x0&&await R(_0x14ee31),(_0x405c92 instanceof _0x2d6708||z(_0x405c92))&&_0x65ee79[_0x26230c(0x1b7)](_0x405c92['code']+':\x20'+_0x405c92['message'],{'code':_0x26230c(0x172),'exitCode':0x1}),_0x405c92 instanceof a&&_0x65ee79[_0x26230c(0x1b7)](_0x405c92['message'],{'code':_0x26230c(0x1f0),'exitCode':0x1}),_0x405c92;}await _0x14ee31['release'](),_0x65ee79[_0x26230c(0x1ab)]()[_0x26230c(0x1e8)]?.((_0x32cc61[_0x26230c(0x1ba)]===!0x0?JSON[_0x26230c(0x194)](_0x4541cf,null,0x2):y(_0x4541cf))+'\x0a');}),_0x65ee79;}async function R(_0x16d00f){const _0xca53ca=_0x2b4780;await _0x16d00f[_0xca53ca(0x1c9)]();}function z(_0x5c4fe2){const _0x383142=_0x2b4780;return _0x5c4fe2 instanceof Error&&typeof _0x5c4fe2[_0x383142(0x1ae)]==_0x383142(0x206);}export{a as InspectionCommandInputError,F as createContentInspectionCommand,I as createWorktreeContentInspectionCommand,o as parseInspectionQuery,y as renderContentInspection};
|
|
1
|
+
const _0x250d7e=_0x5a54;(function(_0x269b08,_0x2557d8){const _0x2e7a2c=_0x5a54,_0x32cd24=_0x269b08();while(!![]){try{const _0x4d4252=-parseInt(_0x2e7a2c(0x10b))/0x1*(-parseInt(_0x2e7a2c(0xaa))/0x2)+parseInt(_0x2e7a2c(0xf7))/0x3*(-parseInt(_0x2e7a2c(0x13b))/0x4)+-parseInt(_0x2e7a2c(0xdb))/0x5+parseInt(_0x2e7a2c(0xe6))/0x6+-parseInt(_0x2e7a2c(0x140))/0x7*(parseInt(_0x2e7a2c(0x9c))/0x8)+parseInt(_0x2e7a2c(0x124))/0x9+parseInt(_0x2e7a2c(0x82))/0xa*(parseInt(_0x2e7a2c(0x13e))/0xb);if(_0x4d4252===_0x2557d8)break;else _0x32cd24['push'](_0x32cd24['shift']());}catch(_0x57d98b){_0x32cd24['push'](_0x32cd24['shift']());}}}(_0xdb9a,0x8f44c));import{ContentInspectionError as _0x36cb74,inspectContent as _0x32894a}from'@univer-cli/content-inspection';import{Argument as _0x2980d4,Command as _0x3c055d,Option as _0x5ec66b}from'commander';var a=class extends Error{};function o(_0x3a3a8f,_0x5e91b3,_0x254ffe){const _0x530e23=_0x5a54;if(_0x3a3a8f===_0x530e23(0xbf)||_0x3a3a8f==='document'||_0x3a3a8f===_0x530e23(0x10d)||_0x3a3a8f===_0x530e23(0xcc)||_0x3a3a8f===_0x530e23(0x90))return m(_0x3a3a8f,_0x5e91b3),h(_0x3a3a8f,_0x254ffe[_0x530e23(0x7b)]),{'kind':_0x3a3a8f};if(_0x3a3a8f===_0x530e23(0x7b))return h(_0x3a3a8f,_0x254ffe[_0x530e23(0x7b)]),{'kind':_0x3a3a8f,'worksheets':p(_0x5e91b3,c)};if(_0x3a3a8f===_0x530e23(0x10f))return h(_0x3a3a8f,_0x254ffe[_0x530e23(0x7b)]),{'kind':_0x3a3a8f,'slides':p(_0x5e91b3,l)};if(_0x3a3a8f==='paragraph')return h(_0x3a3a8f,_0x254ffe['worksheet']),{'kind':_0x3a3a8f,'paragraphs':p(_0x5e91b3,u)};if(_0x3a3a8f===_0x530e23(0x14d))return h(_0x3a3a8f,_0x254ffe[_0x530e23(0x7b)]),{'kind':_0x3a3a8f,'elements':p(_0x5e91b3,s)};if(_0x254ffe[_0x530e23(0x7b)]===void 0x0)throw new a(_0x530e23(0x11d));let _0x4b4560=c(_0x254ffe['worksheet']);return{'kind':_0x3a3a8f,'ranges':p(_0x5e91b3,_0x4e3076=>{const _0x3d9469=_0x530e23;if(_0x4e3076[_0x3d9469(0x75)]===0x0)throw new a(_0x3d9469(0x74));return{'range':_0x4e3076,'worksheet':_0x4b4560};})};}function s(_0x40ae77){const _0x12706e=_0x5a54;let _0x386c1c=d(_0x40ae77);if(_0x386c1c[_0x12706e(0xbc)]==='id')return{'id':_0x386c1c[_0x12706e(0xcf)]};throw new a(_0x12706e(0x142)+_0x386c1c[_0x12706e(0xbc)]+_0x12706e(0x116));}function c(_0x49075b){const _0x320926=_0x5a54;let _0x120fa8=d(_0x49075b);if(_0x120fa8[_0x320926(0xbc)]==='id')return{'id':_0x120fa8[_0x320926(0xcf)]};if(_0x120fa8[_0x320926(0xbc)]===_0x320926(0x145))return{'name':_0x120fa8[_0x320926(0xcf)]};if(_0x120fa8[_0x320926(0xbc)]===_0x320926(0xb6))return{'index':f(_0x120fa8[_0x320926(0xcf)])};throw new a(_0x320926(0x129)+_0x120fa8[_0x320926(0xbc)]+_0x320926(0x102));}function l(_0x4bd3b9){const _0x58e7b6=_0x5a54;let _0x252612=d(_0x4bd3b9);if(_0x252612[_0x58e7b6(0xbc)]==='id')return{'id':_0x252612[_0x58e7b6(0xcf)]};if(_0x252612[_0x58e7b6(0xbc)]===_0x58e7b6(0xb6))return{'index':f(_0x252612[_0x58e7b6(0xcf)])};throw new a(_0x58e7b6(0x93)+_0x252612[_0x58e7b6(0xbc)]+_0x58e7b6(0x113));}function u(_0x4df84d){const _0x15f710=_0x5a54;let _0x1a6de5=d(_0x4df84d);if(_0x1a6de5[_0x15f710(0xbc)]==='id')return{'id':_0x1a6de5[_0x15f710(0xcf)]};if(_0x1a6de5['prefix']===_0x15f710(0xb6))return{'index':f(_0x1a6de5[_0x15f710(0xcf)])};throw new a('Unknown\x20paragraph\x20selector\x20prefix\x20\x22'+_0x1a6de5[_0x15f710(0xbc)]+_0x15f710(0x113));}function d(_0x3e38f8){const _0x4920d9=_0x5a54;let _0x22b628=_0x3e38f8['indexOf'](':');if(_0x22b628<=0x0||_0x22b628===_0x3e38f8[_0x4920d9(0x75)]-0x1)throw new a(_0x4920d9(0x6a)+_0x3e38f8+_0x4920d9(0x7d));return{'prefix':_0x3e38f8[_0x4920d9(0xfc)](0x0,_0x22b628),'value':_0x3e38f8[_0x4920d9(0xfc)](_0x22b628+0x1)};}function f(_0x4b4372){const _0x2524e9=_0x5a54;if(!/^\d+$/[_0x2524e9(0xad)](_0x4b4372))throw new a(_0x2524e9(0x9d)+_0x4b4372+_0x2524e9(0xb4));let _0x4836d0=Number(_0x4b4372);if(!Number[_0x2524e9(0x85)](_0x4836d0)||_0x4836d0<0x1)throw new a(_0x2524e9(0x9d)+_0x4b4372+_0x2524e9(0x92));return _0x4836d0-0x1;}function _0x5a54(_0x3a7ccf,_0x1e64c5){_0x3a7ccf=_0x3a7ccf-0x64;const _0xdb9a67=_0xdb9a();let _0x5a54bc=_0xdb9a67[_0x3a7ccf];return _0x5a54bc;}function p(_0x5be9d8,_0x504333){const _0x43d0f6=_0x5a54;if(_0x5be9d8[_0x43d0f6(0x75)]===0x0)throw new a(_0x43d0f6(0xe5));let _0x4016d1=_0x5be9d8[0x0];if(_0x4016d1===void 0x0)throw new a(_0x43d0f6(0xc8));return[_0x504333(_0x4016d1),..._0x5be9d8[_0x43d0f6(0xfc)](0x1)[_0x43d0f6(0x69)](_0x504333)];}function m(_0x58eb13,_0xe0a90){const _0x190077=_0x5a54;if(_0xe0a90[_0x190077(0x75)]>0x0)throw new a(_0x58eb13+_0x190077(0x149));}function h(_0x3ee764,_0x118752){if(_0x118752!==void 0x0)throw new a('--worksheet\x20is\x20only\x20valid\x20for\x20range,\x20not\x20'+_0x3ee764);}var g=0xc,_=0x8,v=0xc;function y(_0x2b70e7){const _0x591c40=_0x5a54;switch(_0x2b70e7[_0x591c40(0x137)]){case _0x591c40(0xcc):return['Base\x20'+_0x2b70e7[_0x591c40(0x145)]+'\x20('+_0x2b70e7['unitId']+')',_0x2b70e7[_0x591c40(0x71)][_0x591c40(0x75)]+_0x591c40(0xfb),'',..._0x2b70e7[_0x591c40(0x71)][_0x591c40(0x69)](k)]['join']('\x0a');case'workbook':return[_0x591c40(0x91)+_0x2b70e7['name']+'\x20('+_0x2b70e7[_0x591c40(0xcb)]+')',..._0x2b70e7['worksheets'][_0x591c40(0x69)](A)][_0x591c40(0x105)]('\x0a');case _0x591c40(0x7b):return _0x2b70e7[_0x591c40(0xf4)][_0x591c40(0x69)](A)[_0x591c40(0x105)]('\x0a');case _0x591c40(0x120):return _0x2b70e7[_0x591c40(0xde)][_0x591c40(0x69)](_0xdbc87e=>_0xdbc87e[_0x591c40(0x7b)]['name']+'!'+_0xdbc87e[_0x591c40(0x10c)]+(_0xdbc87e['clipped']?_0x591c40(0x14c)+_0xdbc87e['requestedRange']+')':'')+'\x0a'+j(_0xdbc87e['displayValues']))[_0x591c40(0x105)]('\x0a\x0a');case _0x591c40(0x10d):return['presentation\x20'+_0x2b70e7[_0x591c40(0x145)]+'\x20('+_0x2b70e7[_0x591c40(0xcb)]+')\x20'+_0x2b70e7[_0x591c40(0x81)][_0x591c40(0x87)]+'x'+_0x2b70e7[_0x591c40(0x81)][_0x591c40(0x13c)],_0x591c40(0x118)+_0x2b70e7[_0x591c40(0x141)]+_0x591c40(0x11e)+_0x2b70e7['layoutSlideCount'],..._0x2b70e7[_0x591c40(0x84)][_0x591c40(0x69)](_0x422737=>'\x20\x20['+(_0x422737[_0x591c40(0xb6)]+0x1)+']\x20'+_0x422737['id']+'\x20'+_0x422737[_0x591c40(0x145)]+'\x20—\x20'+_0x422737[_0x591c40(0xe9)][_0x591c40(0x8c)]+_0x591c40(0xb2)+(_0x422737[_0x591c40(0x121)]===void 0x0?'':_0x591c40(0x117)+_0x422737['textPreview']))][_0x591c40(0x105)]('\x0a');case _0x591c40(0x10f):return _0x2b70e7[_0x591c40(0x84)][_0x591c40(0x69)](_0x8373f3=>[_0x591c40(0x94)+(_0x8373f3[_0x591c40(0xb6)]+0x1)+']\x20'+_0x8373f3['id']+'\x20'+_0x8373f3[_0x591c40(0x145)],..._0x8373f3[_0x591c40(0xac)]['map'](_0x59fd1c=>M(_0x59fd1c,'\x20\x20')),..._0x8373f3[_0x591c40(0xc4)]===''?[]:[_0x591c40(0x127)+_0x8373f3['speakerNotes']]][_0x591c40(0x105)]('\x0a'))[_0x591c40(0x105)]('\x0a\x0a');case _0x591c40(0xea):return['document\x20'+_0x2b70e7[_0x591c40(0xa6)]+'\x20('+_0x2b70e7[_0x591c40(0xcb)]+_0x591c40(0x7f)+_0x2b70e7['mode']+']',_0x2b70e7['paragraphCount']+'\x20paragraphs,\x20'+_0x2b70e7[_0x591c40(0x134)]+_0x591c40(0x130),..._0x2b70e7[_0x591c40(0xd0)][_0x591c40(0x69)](_0x334bf0=>_0x591c40(0xa9)+(_0x334bf0['index']+0x1)+']\x20'+_0x334bf0['id']+_0x591c40(0x117)+_0x334bf0['textPreview'])][_0x591c40(0x105)]('\x0a');case _0x591c40(0x77):return _0x2b70e7['paragraphs']['map'](_0x12207a=>_0x591c40(0x86)+(_0x12207a[_0x591c40(0xb6)]+0x1)+']\x20'+_0x12207a['id']+'\x0a'+_0x12207a[_0x591c40(0x123)]+(_0x12207a[_0x591c40(0x146)][_0x591c40(0x75)]===0x0?'':'\x0atext\x20runs:\x20'+_0x12207a[_0x591c40(0x146)]['length']))[_0x591c40(0x105)]('\x0a\x0a');case _0x591c40(0x90):return[_0x591c40(0x14b)+_0x2b70e7['name']+'\x20('+_0x2b70e7[_0x591c40(0xcb)]+')',_0x2b70e7[_0x591c40(0xe9)][_0x591c40(0x8c)]+'\x20elements\x20—\x20'+C(_0x2b70e7[_0x591c40(0xe9)]['byType']),..._0x2b70e7['elements'][_0x591c40(0x69)](_0x4b05ea=>b(_0x4b05ea,'\x20\x20'))][_0x591c40(0x105)]('\x0a');case'board-element':return _0x2b70e7[_0x591c40(0xac)]['map'](x)[_0x591c40(0x105)]('\x0a\x0a');}}function b(_0x2d0d38,_0x43bdf8){const _0xe4fa1=_0x5a54;let _0x2b7807=_0x2d0d38[_0xe4fa1(0x110)]===void 0x0?'':':'+_0x2d0d38[_0xe4fa1(0x110)],_0x1306de=_0x2d0d38[_0xe4fa1(0x145)]===void 0x0||_0x2d0d38['name']===''?'':'\x20'+_0x2d0d38[_0xe4fa1(0x145)],_0x490c98=_0x2d0d38[_0xe4fa1(0x12d)]===void 0x0&&_0x2d0d38['endElementId']===void 0x0?'':'\x20'+(_0x2d0d38[_0xe4fa1(0x12d)]??'?')+_0xe4fa1(0x111)+(_0x2d0d38[_0xe4fa1(0x106)]??'?'),_0x1e0254=_0x2d0d38['text']===void 0x0||_0x2d0d38[_0xe4fa1(0x123)]===''?'':_0xe4fa1(0x117)+D(_0x2d0d38[_0xe4fa1(0x123)]);return _0x43bdf8+'['+(_0x2d0d38[_0xe4fa1(0x9a)]+0x1)+']\x20'+_0x2d0d38['type']+_0x2b7807+'\x20'+_0x2d0d38['id']+_0x1306de+_0x490c98+_0x1e0254;}function _0xdb9a(){const _0x4cb9cf=['range\x20requires\x20--worksheet\x20<selector>',',\x20layouts:\x20','--worksheet\x20<selector>','worksheet-range','textPreview','view','text','528462gASUSX','choices','container','\x20\x20notes:\x20','\x20\x20formulas:\x20','Unknown\x20worksheet\x20selector\x20prefix\x20\x22','\x20rows\x20omitted','prstGeom','images','startElementId','\x20\x20style:\x20','left','\x20characters','Inspect\x20structured\x20Univer\x20content','\x20\x20crop:\x20','adjustValues','characterCount','\x20(charts\x20','shapeBoundary','kind','worksheet\x20[','\x20\x20poster:\x20','fields','244yMvibV','height','localeCompare','23716IDPJKO','lifeline','301399aWYDoV','masterSlideCount','Unknown\x20board\x20element\x20selector\x20prefix\x20\x22','end','<target>','name','textRuns','containerData','acquireRuntime','\x20inspection\x20does\x20not\x20accept\x20selectors','\x20\x20source:\x20','board\x20','\x20(clipped\x20from\x20','board-element','object','requiredOption','\x20\x20placeholder:\x20','\x20\x20drawings:\x20','explicit\x20selectors\x20such\x20as\x20id:sheet-1,\x20name:Plan,\x20or\x20index:2','stringify','source','selectable','\x20·\x20','shapeData','map','Invalid\x20selector\x20\x22','[selectors...]','drawings','top','release','\x20\x20originalType:\x20','connection','tables','formulaUsedRanges','primaryFieldId','Range\x20cannot\x20be\x20empty','length','write\x20the\x20complete\x20structured\x20result\x20as\x20JSON','paragraph','\x20\x20parentId:\x20','inspect\x20a\x20worktree','valueUsedRanges','worksheet','\x20omitted','\x22;\x20selectors\x20require\x20an\x20explicit\x20prefix','\x20\x20stroke:\x20',')\x20[','routingMode','size','300Juksto','Specify\x20exactly\x20one\x20of\x20--trunk\x20or\x20--worktree\x20<id>','slides','isSafeInteger','paragraph\x20[','width','worktree','push',',\x20selectable=','none','total','body','dataStream',':boundary(','board','workbook\x20','\x22;\x20CLI\x20indices\x20start\x20at\x201','Unknown\x20slide\x20selector\x20prefix\x20\x22','slide\x20[','bottom','\x20\x20laneId:\x20','visible','\x20\x20imageSourceType:\x20','\x09…\x20','orderIndex','offsetY','8YHpiRP','Invalid\x20index\x20\x22','message','mergedRanges','isArray','segmentIndex','\x20records\x20·\x20','--json','mediaType','json','title','\x20\x20tables:\x20','shape','\x20\x20[','7234uvXMNX','content\x20target','elements','test','views','shapeId','media','\x20\x20children:\x20','\x20elements','option','\x22;\x20index\x20must\x20be\x20an\x20integer','range','index','laneId','\x20\x20labels:\x20','site-','\x20\x20styles:\x20','\x20\x20labelText:\x20','prefix','count','tableId','workbook','\x20\x20shapeData:\x20','group','\x20\x20merged:\x20','parentId','speakerNotes','\x20\x20description:\x20','addOption','free(','Missing\x20selector','bounds','connectionPosition','unitId','base','locked','dataValidation','value','paragraphs','\x20\x20connection:\x20','error','waypoints','labelStyle','worksheet\x20selector\x20for\x20range','rowCount','style','inspect.failed','stroke','unresolved','1587320zbbEly','children','recordCount','ranges','Unit\x20to\x20inspect','replace','labels','action','right','\x20\x20values:\x20','This\x20inspection\x20target\x20requires\x20at\x20least\x20one\x20selector','4560726FNbnCy','diagram','trunk','elementCounts','document','placeholder',',\x20shapes\x20','string','transform','type','code','description','free',',\x20images\x20','worksheets','\x20\x20text:\x20','imageSourceType','26034DFjWvD','segmentT','\x20\x20views:\x20','addArgument','\x20tables','slice','crop','\x20\x20fields:\x20','styleUsedRanges','\x20\x20mediaType:\x20','\x20\x20data\x20validation:\x20','\x22;\x20use\x20id:,\x20name:,\x20or\x20index:','conflicts','inspect','join','endElementId','unit','\x20\x20containerData:\x20','routing','columnCount','164mYaPwN','resolvedRange','presentation','\x20\x20labelStyle:\x20','slide','subtype','\x20->\x20','\x20\x20transform:\x20','\x22;\x20use\x20id:\x20or\x20index:','connector','\x20\x20tableId:\x20','\x22;\x20use\x20id:','\x20—\x20','masters:\x20','table','argument','--worktree\x20<id>','\x20\x20data:\x20'];_0xdb9a=function(){return _0x4cb9cf;};return _0xdb9a();}function x(_0x32596f){const _0x2a6b0e=_0x5a54;let _0xa17651=[_0x32596f[_0x2a6b0e(0xef)]+'\x20'+_0x32596f['id']+'\x20['+(_0x32596f['orderIndex']+0x1)+']'+(_0x32596f[_0x2a6b0e(0x145)]===void 0x0||_0x32596f[_0x2a6b0e(0x145)]===''?'':'\x20'+_0x32596f['name']),_0x2a6b0e(0x112)+T(_0x32596f[_0x2a6b0e(0xee)]),'\x20\x20bounds:\x20'+(_0x32596f[_0x2a6b0e(0xc9)]===null?_0x2a6b0e(0xda):T(_0x32596f['bounds'])),'\x20\x20state:\x20visible='+_0x32596f[_0x2a6b0e(0x97)]+_0x2a6b0e(0x8a)+_0x32596f[_0x2a6b0e(0x66)]+',\x20locked='+_0x32596f[_0x2a6b0e(0xcd)]];return _0x32596f['description']!==void 0x0&&_0xa17651[_0x2a6b0e(0x89)](_0x2a6b0e(0xc5)+D(_0x32596f[_0x2a6b0e(0xf1)])),_0x32596f['parentId']!==void 0x0&&_0xa17651[_0x2a6b0e(0x89)](_0x2a6b0e(0x78)+_0x32596f[_0x2a6b0e(0xc3)]),_0x32596f[_0x2a6b0e(0xb7)]!==void 0x0&&_0xa17651[_0x2a6b0e(0x89)](_0x2a6b0e(0x96)+_0x32596f[_0x2a6b0e(0xb7)]),_0x32596f[_0x2a6b0e(0xef)]===_0x2a6b0e(0x114)?(_0xa17651[_0x2a6b0e(0x89)](_0x2a6b0e(0xd1)+S(_0x32596f[_0x2a6b0e(0x70)]['start'])+_0x2a6b0e(0x111)+S(_0x32596f['connection'][_0x2a6b0e(0x143)]),'\x20\x20routing:\x20'+_0x32596f[_0x2a6b0e(0x70)][_0x2a6b0e(0x109)]+'\x20('+_0x32596f[_0x2a6b0e(0x70)][_0x2a6b0e(0x80)]+'),\x20'+_0x32596f[_0x2a6b0e(0x70)][_0x2a6b0e(0xd3)][_0x2a6b0e(0x75)]+'\x20waypoints','\x20\x20style:\x20'+T(_0x32596f[_0x2a6b0e(0xd7)]),_0x2a6b0e(0xb8)+T(_0x32596f[_0x2a6b0e(0xe1)]),_0x2a6b0e(0xbb)+w(_0x32596f['labelText']),_0x2a6b0e(0x10e)+T(_0x32596f[_0x2a6b0e(0xd4)])),_0xa17651['join']('\x0a')):(_0x32596f[_0x2a6b0e(0xef)]===_0x2a6b0e(0xa8)?_0xa17651[_0x2a6b0e(0x89)](_0x2a6b0e(0xc0)+T(_0x32596f[_0x2a6b0e(0x68)])):_0x32596f[_0x2a6b0e(0xef)]===_0x2a6b0e(0x123)?_0xa17651[_0x2a6b0e(0x89)]('\x20\x20textContent:\x20'+w(_0x32596f['textContent']),'\x20\x20textStyle:\x20'+T(_0x32596f['textStyle'])):_0x32596f[_0x2a6b0e(0xef)]==='image'?(_0xa17651['push'](_0x2a6b0e(0x14a)+E(_0x32596f['source'])),_0x32596f[_0x2a6b0e(0xf6)]!==void 0x0&&_0xa17651[_0x2a6b0e(0x89)](_0x2a6b0e(0x98)+_0x32596f['imageSourceType']),_0x32596f[_0x2a6b0e(0xfd)]!==void 0x0&&_0xa17651[_0x2a6b0e(0x89)](_0x2a6b0e(0x132)+T(_0x32596f[_0x2a6b0e(0xfd)])),_0x32596f[_0x2a6b0e(0x12b)]!==void 0x0&&_0xa17651[_0x2a6b0e(0x89)]('\x20\x20prstGeom:\x20'+_0x32596f[_0x2a6b0e(0x12b)]),_0x32596f[_0x2a6b0e(0x133)]!==void 0x0&&_0xa17651['push']('\x20\x20adjustValues:\x20'+T(_0x32596f[_0x2a6b0e(0x133)]))):_0x32596f[_0x2a6b0e(0xef)]==='chart'?(_0xa17651[_0x2a6b0e(0x89)]('\x20\x20chartId:\x20'+_0x32596f['chartId']),_0x32596f[_0x2a6b0e(0xeb)]!==void 0x0&&_0xa17651[_0x2a6b0e(0x89)](_0x2a6b0e(0x150)+T(_0x32596f[_0x2a6b0e(0xeb)])),_0x32596f[_0x2a6b0e(0xd9)]!==void 0x0&&_0xa17651[_0x2a6b0e(0x89)](_0x2a6b0e(0x7e)+T(_0x32596f[_0x2a6b0e(0xd9)]))):_0x32596f[_0x2a6b0e(0xef)]===_0x2a6b0e(0x126)?_0xa17651[_0x2a6b0e(0x89)](_0x2a6b0e(0x108)+T(_0x32596f[_0x2a6b0e(0x147)])):_0x32596f[_0x2a6b0e(0xef)]===_0x2a6b0e(0xe7)?_0xa17651[_0x2a6b0e(0x89)](_0x2a6b0e(0x11c)+T(_0x32596f['data'])):_0x32596f[_0x2a6b0e(0xef)]===_0x2a6b0e(0x119)?(_0xa17651[_0x2a6b0e(0x89)](_0x2a6b0e(0x115)+_0x32596f[_0x2a6b0e(0xbe)]),_0x32596f[_0x2a6b0e(0xeb)]!==void 0x0&&_0xa17651[_0x2a6b0e(0x89)](_0x2a6b0e(0x150)+T(_0x32596f['placeholder']))):_0x32596f[_0x2a6b0e(0xef)]===_0x2a6b0e(0xc1)?_0xa17651[_0x2a6b0e(0x89)](_0x2a6b0e(0xb1)+N(_0x32596f[_0x2a6b0e(0xdc)])):_0x32596f[_0x2a6b0e(0xef)]===_0x2a6b0e(0xb0)?(_0xa17651[_0x2a6b0e(0x89)](_0x2a6b0e(0x100)+_0x32596f[_0x2a6b0e(0xa4)],_0x2a6b0e(0x14a)+E(_0x32596f[_0x2a6b0e(0x65)])),_0x32596f['poster']!==void 0x0&&_0xa17651[_0x2a6b0e(0x89)](_0x2a6b0e(0x139)+E(_0x32596f['poster']))):_0x32596f[_0x2a6b0e(0xef)]===_0x2a6b0e(0xeb)?(_0xa17651[_0x2a6b0e(0x89)](_0x2a6b0e(0x150)+T(_0x32596f[_0x2a6b0e(0xeb)])),_0x32596f[_0x2a6b0e(0x123)]!==void 0x0&&_0xa17651[_0x2a6b0e(0x89)](_0x2a6b0e(0xf5)+D(_0x32596f[_0x2a6b0e(0x123)])),_0x32596f[_0x2a6b0e(0xd7)]!==void 0x0&&_0xa17651[_0x2a6b0e(0x89)](_0x2a6b0e(0x12e)+T(_0x32596f[_0x2a6b0e(0xd7)]))):_0xa17651['push'](_0x2a6b0e(0x6f)+_0x32596f['originalType'],_0x2a6b0e(0x11c)+T(_0x32596f['data'])),_0xa17651[_0x2a6b0e(0x105)]('\x0a'));}function S(_0x1e0947){const _0x9695e6=_0x5a54;if(_0x1e0947[_0x9695e6(0x137)]===_0x9695e6(0xf2))return _0x9695e6(0xc7)+_0x1e0947['x']+','+_0x1e0947['y']+')';if(_0x1e0947[_0x9695e6(0x137)]===_0x9695e6(0x13f))return _0x1e0947[_0x9695e6(0xaf)]+':lifeline@'+_0x1e0947[_0x9695e6(0x9b)];if(_0x1e0947[_0x9695e6(0x137)]===_0x9695e6(0x136))return _0x1e0947['shapeId']+_0x9695e6(0x8f)+_0x1e0947['outlineIndex']+','+_0x1e0947[_0x9695e6(0xa1)]+','+_0x1e0947[_0x9695e6(0xf8)]+')';let _0x96a77a=[_0x9695e6(0x6d),_0x9695e6(0xe3),_0x9695e6(0x95),_0x9695e6(0x12f)][_0x1e0947['connectionSiteId']]??_0x9695e6(0xb9)+_0x1e0947['connectionSiteId'];return _0x1e0947[_0x9695e6(0xaf)]+':'+_0x96a77a+(_0x1e0947[_0x9695e6(0xca)]===void 0x0?'':'@'+_0x1e0947[_0x9695e6(0xca)]);}function C(_0x5de2fd){const _0x2a04d5=_0x5a54;let _0x12dca3=Object['entries'](_0x5de2fd)['sort'](([_0x5a902b],[_0x4ff7a8])=>_0x5a902b[_0x2a04d5(0x13d)](_0x4ff7a8));return _0x12dca3['length']===0x0?_0x2a04d5(0x8b):_0x12dca3[_0x2a04d5(0x69)](([_0x2d0a5e,_0x57cd0b])=>_0x2d0a5e+'\x20'+_0x57cd0b)[_0x2a04d5(0x105)](',\x20');}function w(_0x68e480){const _0x10045a=_0x5a54;if(O(_0x68e480)){let _0x6665b9=_0x68e480[_0x10045a(0x8d)];if(O(_0x6665b9)&&typeof _0x6665b9['dataStream']==_0x10045a(0xed))return D(_0x6665b9[_0x10045a(0x8e)][_0x10045a(0xe0)](/[\r\n]+$/u,''));}return T(_0x68e480);}function T(_0x101fb0){return E(JSON['stringify'](_0x101fb0));}function E(_0x5a0f02){const _0x381035=_0x5a54;return _0x5a0f02[_0x381035(0x75)]<=0xc8?_0x5a0f02:_0x5a0f02[_0x381035(0xfc)](0x0,0xc5)+'…';}function D(_0x41f7bf){const _0x5c2e91=_0x5a54;return E(_0x41f7bf[_0x5c2e91(0xe0)](/\s+/gu,'\x20')['trim']());}function O(_0x5636d4){const _0x10426a=_0x5a54;return typeof _0x5636d4==_0x10426a(0x14e)&&!!_0x5636d4&&!Array[_0x10426a(0xa0)](_0x5636d4);}function k(_0x13f463){const _0x263c10=_0x5a54;let _0x3a9277=_0x13f463[_0x263c10(0x13a)]['find'](_0x2a22b7=>_0x2a22b7['id']===_0x13f463[_0x263c10(0x73)]);return['['+_0x13f463[_0x263c10(0xb6)]+']\x20'+_0x13f463[_0x263c10(0x145)]+'\x20('+_0x13f463['id']+')\x20·\x20primary\x20'+(_0x3a9277?.['name']??_0x13f463[_0x263c10(0x73)])+_0x263c10(0x67)+_0x13f463['fields'][_0x263c10(0x75)]+'\x20fields\x20·\x20'+_0x13f463[_0x263c10(0xdd)]+_0x263c10(0xa2)+_0x13f463[_0x263c10(0xae)][_0x263c10(0x75)]+'\x20'+(_0x13f463[_0x263c10(0xae)][_0x263c10(0x75)]===0x1?_0x263c10(0x122):_0x263c10(0xae)),_0x263c10(0xfe)+N(_0x13f463[_0x263c10(0x13a)]['map'](_0x539ef7=>_0x539ef7['name']+':'+_0x539ef7[_0x263c10(0xef)])),_0x263c10(0xf9)+N(_0x13f463[_0x263c10(0xae)]['map'](_0x2a7c91=>_0x2a7c91[_0x263c10(0x145)]+':'+_0x2a7c91['type']))]['join']('\x0a');}function A(_0x46a762){const _0x26775e=_0x5a54;let _0xa117c2=[_0x26775e(0x138)+(_0x46a762[_0x26775e(0xb6)]+0x1)+']\x20'+_0x46a762['id']+'\x20'+_0x46a762['name']+'\x20('+_0x46a762[_0x26775e(0xd6)]+'x'+_0x46a762[_0x26775e(0x10a)]+')',_0x26775e(0xe4)+N(_0x46a762[_0x26775e(0x7a)]),_0x26775e(0x128)+N(_0x46a762[_0x26775e(0x72)]),_0x26775e(0xba)+N(_0x46a762[_0x26775e(0xff)]),_0x26775e(0xc2)+N(_0x46a762[_0x26775e(0x9f)])];return _0x46a762['tables'][_0x26775e(0x75)]>0x0&&_0xa117c2['push'](_0x26775e(0xa7)+N(_0x46a762[_0x26775e(0x71)][_0x26775e(0x69)](_0x144166=>_0x144166[_0x26775e(0x145)]+'('+_0x144166[_0x26775e(0xb5)]+')'))),_0xa117c2[_0x26775e(0x89)]('\x20\x20conditional\x20formatting:\x20'+_0x46a762['conditionalFormatting'][_0x26775e(0xbd)],_0x26775e(0x101)+_0x46a762[_0x26775e(0xce)][_0x26775e(0xbd)],_0x26775e(0x151)+_0x46a762[_0x26775e(0x6c)][_0x26775e(0x8c)]+_0x26775e(0x135)+_0x46a762[_0x26775e(0x6c)]['charts']+_0x26775e(0xf3)+_0x46a762[_0x26775e(0x6c)][_0x26775e(0x12c)]+_0x26775e(0xec)+_0x46a762['drawings']['shapes']+')'),_0xa117c2['join']('\x0a');}function j(_0x5afd49){const _0x560fe3=_0x5a54;let _0x4641ed=_0x5afd49[_0x560fe3(0xfc)](0x0,g)[_0x560fe3(0x69)](_0xe0cf66=>{const _0x1aeb49=_0x560fe3;let _0x30f40d=_0xe0cf66[_0x1aeb49(0xfc)](0x0,_),_0x4fa0d2=_0xe0cf66[_0x1aeb49(0x75)]-_0x30f40d[_0x1aeb49(0x75)];return''+_0x30f40d[_0x1aeb49(0x69)](_0x21e732=>JSON[_0x1aeb49(0x64)](_0x21e732))[_0x1aeb49(0x105)]('\x09')+(_0x4fa0d2>0x0?_0x1aeb49(0x99)+_0x4fa0d2+'\x20columns\x20omitted':'');}),_0x2e49ec=_0x5afd49['length']-_0x4641ed['length'];return _0x2e49ec>0x0&&_0x4641ed[_0x560fe3(0x89)]('…\x20'+_0x2e49ec+_0x560fe3(0x12a)),_0x4641ed[_0x560fe3(0x105)]('\x0a');}function M(_0x5147a8,_0x5e4e9c){const _0x4e3a32=_0x5a54;let _0x5cce42=_0x5147a8['text']?.[_0x4e3a32(0x123)]['replace'](/\s+/g,'\x20')['trim']();return[''+_0x5e4e9c+_0x5147a8[_0x4e3a32(0xef)]+'\x20'+_0x5147a8['id']+(_0x5147a8[_0x4e3a32(0x145)]===''?'':'\x20'+_0x5147a8[_0x4e3a32(0x145)])+(_0x5cce42===void 0x0||_0x5cce42===''?'':_0x4e3a32(0x117)+_0x5cce42),...(_0x5147a8[_0x4e3a32(0xdc)]??[])['map'](_0x3be457=>M(_0x3be457,_0x5e4e9c+'\x20\x20'))][_0x4e3a32(0x105)]('\x0a');}function N(_0x2b4436){const _0x10f6bb=_0x5a54;if(_0x2b4436[_0x10f6bb(0x75)]===0x0)return _0x10f6bb(0x8b);let _0x5593d6=_0x2b4436[_0x10f6bb(0xfc)](0x0,v),_0x4fdf8a=_0x2b4436['length']-_0x5593d6[_0x10f6bb(0x75)];return''+_0x5593d6[_0x10f6bb(0x105)](',\x20')+(_0x4fdf8a>0x0?',\x20…\x20'+_0x4fdf8a+_0x10f6bb(0x7c):'');}var P=['workbook','worksheet',_0x250d7e(0xb5),'document',_0x250d7e(0x77),'presentation',_0x250d7e(0x10f),_0x250d7e(0xcc),'board',_0x250d7e(0x14d)];function F(_0x18ea66){return L({'acquireRuntime':async _0x30e5a3=>await _0x18ea66['acquireRuntime']({'unitId':_0x30e5a3}),'worktree':!0x1});}function I(_0x42436d){return L({'acquireRuntime':async(_0x2abe99,_0x1ebb28)=>{const _0x48e029=_0x5a54;if(_0x1ebb28[_0x48e029(0xe8)]===!0x0&&_0x1ebb28[_0x48e029(0x88)]!==void 0x0)throw new a('--trunk\x20and\x20--worktree\x20cannot\x20be\x20used\x20together');if(_0x1ebb28[_0x48e029(0xe8)]!==!0x0&&_0x1ebb28['worktree']===void 0x0)throw new a(_0x48e029(0x83));return await _0x42436d[_0x48e029(0x148)]({'unitId':_0x2abe99,..._0x1ebb28[_0x48e029(0x88)]===void 0x0?{}:{'worktreeID':_0x1ebb28['worktree']}});},'worktree':!0x0});}function L(_0x15efe9){const _0x1ffc59=_0x250d7e;let _0x2084f8=new _0x3c055d(_0x1ffc59(0x104))[_0x1ffc59(0xf1)](_0x1ffc59(0x131))[_0x1ffc59(0xfa)](new _0x2980d4(_0x1ffc59(0x144),_0x1ffc59(0xab))[_0x1ffc59(0x125)](P))[_0x1ffc59(0x11a)](_0x1ffc59(0x6b),_0x1ffc59(0x152))[_0x1ffc59(0x14f)]('--unit\x20<unit-id>',_0x1ffc59(0xdf))[_0x1ffc59(0xb3)](_0x1ffc59(0x11f),_0x1ffc59(0xd5))['option'](_0x1ffc59(0xa3),_0x1ffc59(0x76));return _0x15efe9[_0x1ffc59(0x88)]&&_0x2084f8[_0x1ffc59(0xc6)](new _0x5ec66b('--trunk','inspect\x20the\x20trunk')[_0x1ffc59(0x103)](_0x1ffc59(0x88)))['addOption'](new _0x5ec66b(_0x1ffc59(0x11b),_0x1ffc59(0x79))[_0x1ffc59(0x103)](_0x1ffc59(0xe8))),_0x2084f8[_0x1ffc59(0xe2)](async(_0x5362ee,_0x40175c,_0x15de27)=>{const _0x1f38f2=_0x1ffc59;let _0x2a9f7a=_0x5362ee==='range'?'worksheet-range':_0x5362ee,_0x165cc5;try{_0x165cc5=o(_0x2a9f7a,_0x40175c,_0x15de27);}catch(_0x414c3f){throw _0x414c3f instanceof a&&_0x2084f8['error'](_0x414c3f['message'],{'code':'inspect.invalid-input','exitCode':0x1}),_0x414c3f;}let _0x24862d,_0x1c8535;try{_0x24862d=await _0x15efe9[_0x1f38f2(0x148)](_0x15de27[_0x1f38f2(0x107)],_0x15de27),_0x1c8535=await _0x32894a(_0x24862d,_0x165cc5);}catch(_0x2041c1){throw _0x24862d!==void 0x0&&await R(_0x24862d),(_0x2041c1 instanceof _0x36cb74||z(_0x2041c1))&&_0x2084f8[_0x1f38f2(0xd2)](_0x2041c1[_0x1f38f2(0xf0)]+':\x20'+_0x2041c1['message'],{'code':_0x1f38f2(0xd8),'exitCode':0x1}),_0x2041c1 instanceof a&&_0x2084f8[_0x1f38f2(0xd2)](_0x2041c1[_0x1f38f2(0x9e)],{'code':'inspect.invalid-input','exitCode':0x1}),_0x2041c1;}await _0x24862d[_0x1f38f2(0x6e)](),_0x2084f8['configureOutput']()['writeOut']?.((_0x15de27[_0x1f38f2(0xa5)]===!0x0?JSON['stringify'](_0x1c8535,null,0x2):y(_0x1c8535))+'\x0a');}),_0x2084f8;}async function R(_0xba7aec){const _0x10d6cb=_0x250d7e;await _0xba7aec[_0x10d6cb(0x6e)]();}function z(_0x116f7c){const _0x1df84d=_0x250d7e;return _0x116f7c instanceof Error&&typeof _0x116f7c[_0x1df84d(0xf0)]==_0x1df84d(0xed);}export{a as InspectionCommandInputError,F as createContentInspectionCommand,I as createWorktreeContentInspectionCommand,o as parseInspectionQuery,y as renderContentInspection};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univer-cli/content-inspection-command",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.3",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"README.zh-CN.md"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@univer-cli/content-inspection": "1.0.
|
|
21
|
+
"@univer-cli/content-inspection": "1.0.3"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"commander": "^15.0.0"
|