UNPKG

agent-device

Version:

Open source device layer for AI coding agents: a CLI, MCP server, and typed Node.js API to control mobile, web, TV, and desktop apps on devices and simulators, locally or in the cloud.

1 lines • 18.7 kB
import{Dr as e,Or as t,Pr as n}from"./sdk-batch.js";import{v as r}from"./sdk-contracts.js";import{d as i,t as a}from"./screenshot.js";import"./capture.js";import{a as o}from"./sdk-device.js";import{i as s}from"./recording-export-quality.js";import{c,n as l,o as u,s as d}from"./scroll-gesture.js";import{t as f}from"./gesture-plan-types.js";import{_ as p,g as ee,h as m,n as h,p as te,v as g}from"./open-script.js";const _=[`pan`,`fling`,`swipe`,`pinch`,`rotate`,`transform`,`tap`,`drag`],ne=[`points`,`holdMs`,`count`,`pauseMs`];function v(e){let t=S(e),i=D(t,`kind`,_);if(i===`tap`)return re(t);if(ae(i,t),i===`pan`)return{kind:i,origin:C(t,`origin`),delta:C(t,`delta`),pointerCount:n(t,`pointerCount`,{min:1,max:2}),durationMs:x(t)};if(i===`drag`)return b(t);if(t.pointerCount!==void 0)throw new r(`INVALID_ARGS`,`pointerCount is supported only for gesture pan`);if(i===`fling`){if(t.durationMs!==void 0)throw new r(`INVALID_ARGS`,`gesture fling does not accept durationMs; use gesture pan for timed movement`);return{kind:i,direction:D(t,`direction`,l),origin:C(t,`origin`),distance:n(t,`distance`,{min:0})}}if(i===`swipe`){if(t.durationMs!==void 0)throw new r(`INVALID_ARGS`,`gesture swipe does not accept durationMs; use gesture pan for timed movement`);return{kind:i,preset:D(t,`preset`,d)}}if(i===`pinch`)return{kind:i,scale:T(t,`scale`),origin:w(t,`origin`)};if(i===`rotate`){if(t.velocity!==void 0)throw new r(`INVALID_ARGS`,`gesture rotate does not accept velocity; rotation pacing derives from degrees`);return{kind:i,degrees:T(t,`degrees`),origin:w(t,`origin`)}}return{kind:i,origin:C(t,`origin`),delta:C(t,`delta`),scale:T(t,`scale`),degrees:T(t,`degrees`),durationMs:x(t)}}function re(e){if(e.pointerCount!==void 0)throw new r(`INVALID_ARGS`,`pointerCount is supported only for gesture pan`,{hint:`gesture tap takes one contact per point.`});if(e.durationMs!==void 0)throw new r(`INVALID_ARGS`,`gesture tap does not accept durationMs; use holdMs`);let t={kind:`tap`,points:y(e),holdMs:n(e,`holdMs`,{min:16,max:f}),count:n(e,`count`,{min:1,max:200}),pauseMs:n(e,`pauseMs`,{min:0,max:u})};return ie(t),t}function y(e){let t=e.points;if(!Array.isArray(t)||t.length<2||t.length>5)throw new r(`INVALID_ARGS`,`gesture tap requires 2 to 5 points`,{hint:`Use press for a single contact.`});return t.map((e,t)=>{if(!e||typeof e!=`object`||Array.isArray(e))throw new r(`INVALID_ARGS`,`Expected points[${t}] to be a point.`);let n=e;return{x:T(n,`x`),y:T(n,`y`)}})}function ie(e){let t=e.count??1,n=e.pauseMs??0,i=e.holdMs??50,a=t*(i+500)+Math.max(0,t-1)*n;if(!(a<=6e4))throw new r(`INVALID_ARGS`,`gesture tap series must fit within ${c}ms.`,{count:t,pauseMs:n,holdMs:i,overheadAllowanceMs:500,scheduledDurationMs:a,hint:`Reduce --count, --pause-ms or --hold-ms.`})}function ae(e,t){let n=ne.find(e=>t[e]!==void 0);if(n!==void 0)throw new r(`INVALID_ARGS`,`${n} is supported only for gesture tap`,{hint:`gesture ${e} does not read ${n}.`})}function b(e){let t=n(e,`sourceHoldMs`,{min:1,max:1e4}),i=n(e,`moveMs`,{min:16,max:1e4}),a=n(e,`destinationHoldMs`,{min:0,max:1e4});if((t??800)+(i??500)+(a??0)>1e4)throw new r(`INVALID_ARGS`,`gesture drag total duration must be at most ${f}`);return{kind:`drag`,source:E(e,`source`),destination:E(e,`destination`),sourceHoldMs:t,moveMs:i,destinationHoldMs:a}}function x(e){let t=n(e,`durationMs`);if(t!==void 0){if(t<16||t>1e4)throw new r(`INVALID_ARGS`,`Expected durationMs to be an integer between 16 and ${f}.`);return t}}function S(e){if(!e||typeof e!=`object`||Array.isArray(e))throw new r(`INVALID_ARGS`,`gesture requires structured object input`);return e}function C(e,t){let n=S(e[t]);return{x:T(n,`x`),y:T(n,`y`)}}function w(e,t){return e[t]===void 0?void 0:C(e,t)}function T(e,t){let n=e[t];if(typeof n!=`number`||!Number.isFinite(n))throw new r(`INVALID_ARGS`,`Expected ${t} to be a finite number.`);return n}function E(e,t){let n=e[t];if(typeof n!=`string`||n.trim().length===0)throw new r(`INVALID_ARGS`,`Expected ${t} to be a non-empty string.`);return n.trim()}function D(e,t,n){let i=e[t];if(typeof i!=`string`||!n.includes(i))throw new r(`INVALID_ARGS`,`Expected ${t} to be one of: ${n.join(`, `)}.`);return i}const O={pointerCount:`--pointer-count`,holdMs:`--hold-ms`,count:`--count`,pauseMs:`--pause-ms`,postGestureStabilization:`--no-post-gesture-stabilization`},k={pan:[`pointerCount`],tap:[`holdMs`,`count`,`pauseMs`],fling:[],swipe:[`postGestureStabilization`],pinch:[],rotate:[],transform:[],drag:[]};function A(e,t,n,r){if(e!==`gesture`)return;let i=t[0];if(i===void 0||!Object.hasOwn(k,i))return;let a=k[i],o=Object.keys(O).filter(e=>n[e]!==void 0&&!a.includes(e));if(o.length!==0)return`gesture ${i} does not read ${o.map(e=>O[e]).join(`, `)} (${r}).`}const j={swipe:{max:4,usage:`swipe accepts 4 arguments: x1 y1 x2 y2`,retired:{positional:`durationMs`,migrate:M}},"gesture pan":{max:5,usage:`gesture pan accepts at most 5 arguments: x y dx dy [durationMs]`},"gesture fling":{max:4,usage:`gesture fling accepts at most 4 arguments: direction x y [distance]`,retired:{positional:`durationMs`,migrate:(e,t)=>`use "${t}", or gesture pan for timed movement.`}},"gesture swipe":{max:1,usage:`gesture swipe accepts 1 argument: preset`,retired:{positional:`durationMs`,migrate:(e,t)=>`use "${t}", or gesture pan for timed movement.`}},"gesture pinch":{max:3,usage:`gesture pinch accepts at most 3 arguments: scale [x] [y]`},"gesture rotate":{max:3,usage:`gesture rotate accepts at most 3 arguments: degrees [x] [y]`,retired:{positional:`velocity`,migrate:(e,t)=>`use "${t}"; rotation pacing derives from degrees.`}},"gesture transform":{max:7,usage:`gesture transform accepts at most 7 arguments: x y dx dy scale degrees [durationMs]`},"gesture tap":{min:4,max:10,pairs:!0,usage:`gesture tap accepts 4 to 10 arguments: x1 y1 x2 y2 [x3 y3 [x4 y4 [x5 y5]]]`},"gesture drag":{max:5,usage:`gesture drag accepts at most 5 arguments: source destination [sourceHoldMs] [moveMs] [destinationHoldMs]`}};function M(e,t){let[n,r,i,a,o]=e,s=N(n,i),c=N(r,a);return s===void 0||c===void 0?`use "gesture pan x1 y1 dx dy durationMs" for the same timed drag, or "${t}" for a default-duration swipe.`:`use "gesture pan ${n} ${r} ${s} ${c} ${o}" for the same timed drag, or "${t}" for a default-duration swipe.`}function N(e,t){let n=Number(t)-Number(e);return Number.isFinite(n)?n:void 0}function P(e,t){let n=j[e];if(n.min!==void 0&&t.length<n.min||n.pairs&&t.length%2!=0)return{usage:n.usage};if(t.length<=n.max)return;let r=n.retired;if(!r||t.length!==n.max+1||!oe(t[n.max]))return{usage:n.usage};let i=`${e} ${t.slice(0,n.max).join(` `)}`;return{usage:n.usage,migration:`The trailing ${r.positional} positional was removed: ${r.migrate(t,i)}`}}function oe(e){return e===void 0||e.trim().length===0?!1:e.startsWith("${")||Number.isFinite(Number(e))}function se(e){if(!(!e||typeof e!=`object`||Array.isArray(e))&&e.durationMs!==void 0)throw new r(`INVALID_ARGS`,`swipe does not accept durationMs; use gesture pan for timed movement`)}function F(e,t){let n=t?`${e.usage} (${t})`:e.usage;return e.migration?`${n}. ${e.migration}`:`${n}.`}function I(e,t){let n=P(e,t);if(n)throw new r(`INVALID_ARGS`,F(n))}function L(e,t,n){let r=R(e,t);return r?F(r,n):void 0}function R(e,t){if(e===`swipe`)return P(`swipe`,t);if(e!==`gesture`)return;let n=`gesture ${t[0]}`;if(Object.hasOwn(j,n))return P(n,t.slice(1))}function z(e){return{origin:{x:Number(e[0]),y:Number(e[1])},delta:{x:Number(e[2]),y:Number(e[3])}}}function B(e,t={}){let{pointerCount:n}=t,r=e[0],i=e.slice(1);switch(r){case`pan`:{I(`gesture pan`,i);let{origin:e,delta:t}=z(i);return v({kind:r,origin:e,delta:t,pointerCount:n,durationMs:q(i[4])})}case`fling`:return I(`gesture fling`,i),v({kind:r,direction:i[0],origin:{x:Number(i[1]),y:Number(i[2])},distance:q(i[3])});case`swipe`:return I(`gesture swipe`,i),v({kind:r,preset:i[0]});case`pinch`:return I(`gesture pinch`,i),v({kind:r,scale:Number(i[0]),origin:J(i[1],i[2])});case`rotate`:return I(`gesture rotate`,i),v({kind:r,degrees:Number(i[0]),origin:J(i[1],i[2])});case`transform`:{I(`gesture transform`,i);let{origin:e,delta:t}=z(i);return v({kind:r,origin:e,delta:t,scale:Number(i[4]),degrees:Number(i[5]),durationMs:q(i[6])})}case`tap`:return I(`gesture tap`,i),v({kind:r,points:ce(i),holdMs:t.holdMs,count:t.count,pauseMs:t.pauseMs});case`drag`:return I(`gesture drag`,i),v({kind:r,source:i[0],destination:i[1],sourceHoldMs:q(i[2]),moveMs:q(i[3]),destinationHoldMs:q(i[4])});default:return v({kind:r})}}function V(e){if(e[0]!==`drag`)return;let t=B(e);return t.kind===`drag`?t:void 0}function H(e){switch(e.kind){case`pan`:return Y([e.kind,e.origin.x,e.origin.y,e.delta.x,e.delta.y,e.durationMs]);case`fling`:return Y([e.kind,e.direction,e.origin.x,e.origin.y,e.distance]);case`swipe`:return[e.kind,e.preset];case`pinch`:return Y([e.kind,e.scale,e.origin?.x,e.origin?.y]);case`rotate`:return e.origin?Y([e.kind,e.degrees,e.origin.x,e.origin.y]):[e.kind,String(e.degrees)];case`transform`:return Y([e.kind,e.origin.x,e.origin.y,e.delta.x,e.delta.y,e.scale,e.degrees,e.durationMs]);case`tap`:return[e.kind,...e.points.flatMap(e=>[String(e.x),String(e.y)])];case`drag`:return[e.kind,e.source,e.destination,String(e.sourceHoldMs??800),String(e.moveMs??500),String(e.destinationHoldMs??0)]}}function U(e,t={}){return I(`swipe`,e),{from:{x:Number(e[0]),y:Number(e[1])},to:{x:Number(e[2]),y:Number(e[3])},...t.count===void 0?{}:{count:t.count},...t.pauseMs===void 0?{}:{pauseMs:t.pauseMs},...t.pattern===void 0?{}:{pattern:t.pattern}}}function W(e){switch(e.kind){case`pan`:return{gesture:{intent:`pan`,origin:e.origin,delta:e.delta,pointerCount:e.pointerCount,durationMs:e.durationMs}};case`fling`:return{gesture:{intent:`fling`,direction:e.direction,origin:e.origin,distance:e.distance}};case`swipe`:return{gesture:{intent:`fling`,preset:e.preset}};case`pinch`:return{gesture:{intent:`pinch`,origin:e.origin,scale:e.scale}};case`rotate`:return{gesture:{intent:`rotate`,origin:e.origin,degrees:e.degrees}};case`transform`:return{gesture:{intent:`transform`,origin:e.origin,delta:e.delta,scale:e.scale,degrees:e.degrees,durationMs:e.durationMs}};case`tap`:return{gesture:{intent:`tap`,points:e.points,holdMs:e.holdMs}};case`drag`:throw new r(`INVALID_ARGS`,`gesture drag targets must be resolved before coordinate normalization`)}}function G(e){return e.kind===`drag`?{intent:`drag`,source:e.source,destination:e.destination,sourceHoldMs:e.sourceHoldMs,moveMs:e.moveMs,destinationHoldMs:e.destinationHoldMs}:W(e).gesture}function K(e){return{gesture:{intent:`fling`,from:e.from,to:e.to}}}function ce(e){let t=[];for(let n=0;n+1<e.length;n+=2)t.push({x:Number(e[n]),y:Number(e[n+1])});return t}function q(e){return e===void 0?void 0:Number(e)}function J(e,t){if(e===void 0!=(t===void 0))throw new r(`INVALID_ARGS`,`gesture origin requires both x and y coordinates`);return e===void 0?void 0:{x:Number(e),y:Number(t)}}function Y(e){return e.filter(e=>e!==void 0).map(String)}const X=/^[A-Z_][A-Z0-9_]*$/,le=new Set(o.filter(e=>e!==`web`)),ue=new Set([`mobile`,`tv`,`desktop`]);function de(n){let i=[],a=[],o=n.split(/\r?\n/),s=!1,c,l=(e,t,n)=>{let i=e.kind===`multiple`?`targets-v1`:`target-v1`;throw new r(`INVALID_ARGS`,`${i} annotation on line ${e.line} must be immediately followed by its action line (line ${t+1} ${n}).`)};for(let[n,u]of o.entries()){let o=u.trim();if(o.length===0){c&&l(c,n,`is blank`);continue}if(o.startsWith(`#`)){let r=e(o);if(r.kind===`v1`){c&&l(c,n,`is another target annotation`),c={kind:`multiple`,evidence:r.evidence,line:n+1};continue}let i=t(o);if(i.kind===`v1`){c&&l(c,n,`is another target annotation`),c={kind:`single`,evidence:i.evidence,line:n+1};continue}c&&l(c,n,`is a comment`);continue}if(Z(o)){if(c&&l(c,n,`is an env directive`),s)throw new r(`INVALID_ARGS`,`env directives must precede all actions (line ${n+1}).`);continue}let d=ge(u);if(!d){c&&l(c,n,`did not parse as an action`);continue}let f=L(d.command,d.positionals??[],`line ${n+1}`);if(f)throw new r(`INVALID_ARGS`,f);let p=A(d.command,d.positionals??[],d.flags??{},`line ${n+1}`);if(p)throw new r(`INVALID_ARGS`,p);c&&=(c.kind===`single`?d.targetEvidence=c.evidence:d.targetEvidences=c.evidence,void 0),i.push(d),a.push(n+1),s=!0}if(c){let e=c.kind===`multiple`?`targets-v1`:`target-v1`;throw new r(`INVALID_ARGS`,`${e} annotation on line ${c.line} must be immediately followed by its action line (end of script reached).`)}return{actions:i,actionLines:a}}function fe(e){let t=e.split(/\r?\n/),n={};for(let[e,r]of t.entries()){let t=r.trim();if(t.length===0||t.startsWith(`#`))continue;if(Z(t)){he(n,t,e+1);continue}if(!t.startsWith(`context `))break;let i=t.match(/(?:^|\s)platform=([^\s]+)/);if(i){let e=i[1];e&&le.has(e)&&Q(n,`platform`,e)}let a=t.match(/(?:^|\s)target=([^\s]+)/);if(a){let e=a[1];e&&ue.has(e)&&Q(n,`target`,e)}let o=t.match(/(?:^|\s)timeout=(\d+)/);if(o){let e=Number(o[1]);Number.isFinite(e)&&e>=1&&Q(n,`timeoutMs`,Math.floor(e))}let s=t.match(/(?:^|\s)retries=(\d+)/);if(s){let e=Number(s[1]);Number.isFinite(e)&&e>=0&&Q(n,`retries`,Math.floor(e))}}return n}function Z(e){return e===`env`||e.startsWith(`env `)||e.startsWith(`env `)}function pe(e,t){let n=e.slice(3).replace(/^[\s]+/,``),i=n.indexOf(`=`);if(i<=0)throw new r(`INVALID_ARGS`,`Invalid env directive on line ${t}: expected "env KEY=VALUE".`);let a=n.slice(0,i);if(!X.test(a))throw new r(`INVALID_ARGS`,`Invalid env key "${a}" on line ${t}: keys must be uppercase letters, digits, and underscores (e.g. APP_ID).`);if(a.startsWith(`AD_`))throw new r(`INVALID_ARGS`,`Invalid env key "${a}" on line ${t}: the AD_* namespace is reserved for built-in variables. Rename ${a} to avoid the AD_ prefix.`);return{key:a,value:me(n.slice(i+1),t)}}function me(e,t){if(e.length===0)return``;if(e.startsWith(`"`))try{let t=JSON.parse(e);if(typeof t!=`string`)throw Error(`not a string literal`);return t}catch{throw new r(`INVALID_ARGS`,`Invalid quoted env value on line ${t}.`)}return e}function he(e,t,n){let{key:i,value:a}=pe(t,n),o=e.env??{};if(Object.prototype.hasOwnProperty.call(o,i))throw new r(`INVALID_ARGS`,`Duplicate env directive "${i}" on line ${n}.`);o[i]=a,e.env=o}function Q(e,t,n){let i=e[t];if(i!==void 0){let e=i===n?`Duplicate replay test metadata "${t}" in context header.`:`Conflicting replay test metadata "${t}" in context header: ${String(i)} vs ${String(n)}.`;throw new r(`INVALID_ARGS`,e)}e[t]=n}function ge(e){let t=e.trim();if(t.length===0||t.startsWith(`#`))return null;let[n,...o]=ve(t);if(n===void 0||n===`context`)return null;let c={ts:Date.now(),command:n,positionals:[],flags:{}};if(n===`snapshot`){c.positionals=[];for(let e=0;e<o.length;e+=1){let t=o[e];if(t===`-i`){c.flags.snapshotInteractiveOnly=!0;continue}if(t!==`-c`){if(t===`--raw`){c.flags.snapshotRaw=!0;continue}if(t===`--force-full`){c.flags.snapshotForceFull=!0;continue}if((t===`-d`||t===`--depth`)&&e+1<o.length){let t=Number(o[e+1]);Number.isFinite(t)&&t>=0&&(c.flags.snapshotDepth=Math.floor(t)),e+=1;continue}if((t===`-s`||t===`--scope`)&&e+1<o.length){c.flags.snapshotScope=o[e+1],e+=1;continue}if(t===`--backend`&&e+1<o.length){e+=1;continue}}}return c}if(n===`open`){let e=h(o);return c.positionals=e.positionals,Object.assign(c.flags,e.flags),c.runtime=e.runtime,c}if(n===`runtime`){let e=ee(o);return c.positionals=e.positionals,Object.assign(c.flags,e.flags),c}if(te(n)){let e=p(n,o);Object.assign(c.flags,e.flags);let t=e.positionals[0];if(t===void 0)return c;if(t.startsWith(`@`))return c.positionals=[g(t)],e.positionals[1]&&(c.result={refLabel:e.positionals[1]}),c;let r=e.positionals[0],i=e.positionals[1];return $(r)&&$(i)&&e.positionals.length>=2?(c.positionals=[r,i],c):(c.positionals=[e.positionals.join(` `)],c)}if(n===`fill`){let e=p(n,o);if(Object.assign(c.flags,e.flags),!_e(e.positionals))return c.positionals=e.positionals,c;let[t,r,...i]=e.positionals;if($(t)&&$(r))return c.positionals=[t,r,i.join(` `)],c;let[a,s,...l]=e.positionals;if(a.startsWith(`@`)){let e=g(a);return l.length>0?(c.positionals=[e,l.join(` `)],c.result={refLabel:s},c):(c.positionals=[e,s],c)}return c.positionals=[a,[s,...l].join(` `)],c}if(n===`get`){let e=o[0],t=o[1];return e===void 0||t===void 0?(c.positionals=o,c):t.startsWith(`@`)?(c.positionals=[e,g(t)],o[2]&&(c.result={refLabel:o[2]}),c):(c.positionals=[e,o.slice(1).join(` `)],c)}if(n===`swipe`||n===`type`||n===`gesture`||n===`fold`){let e=p(n,o);return Object.assign(c.flags,e.flags),c.positionals=e.positionals,c}if(n===`record`){let e=[];for(let t=0;t<o.length;t+=1){let n=o[t];if(n===a.cliToken)throw new r(`INVALID_ARGS`,a.migration.record);if(n===`--hide-touches`){c.flags.hideTouches=!0;continue}if(n===`--fps`&&t+1<o.length){let e=Number(o[t+1]);Number.isFinite(e)&&(c.flags.fps=Math.floor(e)),t+=1;continue}if(n===`--quality`&&t+1<o.length){let e=o[t+1],n=s(e);n!==void 0&&(c.flags.quality=n),t+=1;continue}e.push(n)}return c.positionals=e,c}if(n===`screenshot`){let e=[];for(let t=0;t<o.length;t+=1){let n=o[t],r=i({args:o,index:t,flags:c.flags});if(r.handled){t=r.nextIndex;continue}e.push(n)}return c.positionals=e,c}if(n===`scroll`||n===`wait`){let e=m(n,o);return Object.assign(c.flags,e.flags),c.positionals=e.positionals.map(e=>g(e)),c}return c.positionals=n===`longpress`||n===`hover`?o.map(e=>g(e)):o,c}function _e(e){return e.length>=2}function $(e){return e?!Number.isNaN(Number(e)):!1}function ve(e){let t=[],n=0;for(;n<e.length&&(n=ye(e,n),!(n>=e.length));){let r=e[n]===`"`?be(e,n):xe(e,n)??Ee(e,n);t.push(r.value),n=r.nextCursor}return t}function ye(e,t){let n=t;for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n}function be(e,t){let n=t+1,i=!1,a=n;for(;a<e.length;a+=1){let t=e.charAt(a);if(t===`"`&&!i)break;if(i){i=!1;continue}i=t===`\\`}if(a>=e.length)throw new r(`INVALID_ARGS`,`Invalid replay script line: ${e}`);let o=e.slice(t,a+1),s;try{s=JSON.parse(o)}catch{throw new r(`INVALID_ARGS`,`Invalid quoted value ${o} in replay script line: ${e}`,{hint:`Quoted replay values are JSON strings: escape backslashes, quotes, tabs, and newlines (\\\\, \\", \\t, \\n).`})}return{value:s,nextCursor:a+1}}function xe(e,t){if(e[t]!==`'`)return null;let n=Se(e,t+1);return n===-1||!we(e,n+1)?null:{value:Te(e.slice(t+1,n)),nextCursor:n+1}}function Se(e,t){let n=t;for(;n<e.length;){let t=e.indexOf(`'`,n);if(t===-1)return-1;if(!Ce(e,t))return t;n=t+1}return-1}function Ce(e,t){let n=0;for(;t>0&&e.charAt(t-1)===`\\`;)n+=1,--t;return n%2==1}function we(e,t){return t>=e.length||/\s/.test(e.charAt(t))}function Te(e){return e.replaceAll(String.raw`\'`,`'`)}function Ee(e,t){let n=t;for(;n<e.length&&!/\s/.test(e.charAt(n));)n+=1;return{value:e.slice(t,n),nextCursor:n}}export{se as a,B as c,K as d,U as f,k as i,H as l,v as m,de as n,A as o,_ as p,fe as r,V as s,X as t,G as u};