conformtools 0.6.16 → 0.6.18

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.
Files changed (109) hide show
  1. package/README.md +1 -1
  2. package/dist/account-O3J732QJ.js +3 -0
  3. package/dist/{agent-hook-setup-JCIZG3Q3.js → agent-hook-setup-HBT2LTVR.js} +1 -1
  4. package/dist/{analysis-engine-DCHJHZ7W.js → analysis-engine-BZUEBW55.js} +1 -1
  5. package/dist/{arriraw-YIJ3BYNN.js → arriraw-PS6V532Y.js} +7 -7
  6. package/dist/bridge-25FGN67G.js +3 -0
  7. package/dist/browser/timeline_core_bg.wasm +0 -0
  8. package/dist/{chunk-XDI6CPPV.js → chunk-2DEUYEQD.js} +1 -1
  9. package/dist/chunk-2GRXBIJB.js +3 -0
  10. package/dist/{chunk-RJD44NQU.js → chunk-2V5PY4P5.js} +2 -2
  11. package/dist/{chunk-JL454FFL.js → chunk-34JO3JNC.js} +2 -2
  12. package/dist/chunk-3DYCTUSQ.js +3 -0
  13. package/dist/chunk-3PVQ5QP4.js +3 -0
  14. package/dist/chunk-567IWIX6.js +3 -0
  15. package/dist/{chunk-MGMDNGNX.js → chunk-6B3IELRW.js} +2 -2
  16. package/dist/{chunk-5W57ITT2.js → chunk-AAJRTGEP.js} +2 -2
  17. package/dist/{chunk-UAURERD3.js → chunk-ANQZKVDD.js} +1 -1
  18. package/dist/chunk-ATEWMIY5.js +3 -0
  19. package/dist/{chunk-QRZO5GOI.js → chunk-AYUKWSCR.js} +1 -1
  20. package/dist/{chunk-RGMTLNMF.js → chunk-BBCQMZQN.js} +1 -1
  21. package/dist/{chunk-XVZ7KJRI.js → chunk-DIW5X4GI.js} +1 -1
  22. package/dist/{chunk-WJ5EWXP2.js → chunk-EWW5KWAO.js} +1 -1
  23. package/dist/chunk-GTPTZRO6.js +3 -0
  24. package/dist/{chunk-LVGGCRDW.js → chunk-IDEKLW7C.js} +1 -1
  25. package/dist/{chunk-DPA26AOI.js → chunk-L2RTMZCN.js} +1 -1
  26. package/dist/chunk-LP2MR4ZH.js +516 -0
  27. package/dist/chunk-LUKA7UUJ.js +3 -0
  28. package/dist/{chunk-HOACOBAY.js → chunk-MHBNMYZP.js} +3 -3
  29. package/dist/{chunk-4RA57LTJ.js → chunk-ND2YUUUH.js} +1 -1
  30. package/dist/{chunk-VETHR2O7.js → chunk-NN444GPH.js} +1 -1
  31. package/dist/chunk-OSUIS4JU.js +3 -0
  32. package/dist/chunk-PIM3PV5N.js +3 -0
  33. package/dist/{chunk-VWFEMXYZ.js → chunk-QBQJDV2F.js} +103 -101
  34. package/dist/chunk-RXRBRR3E.js +10 -0
  35. package/dist/chunk-S5AOIOTT.js +3 -0
  36. package/dist/{chunk-FLLB6UZJ.js → chunk-T7S2UBNN.js} +1 -1
  37. package/dist/{chunk-UKXSKFL3.js → chunk-TD3ZHREE.js} +1 -1
  38. package/dist/chunk-UIX3TT72.js +7 -0
  39. package/dist/{chunk-6V4OEOOX.js → chunk-VFXMP7IF.js} +1 -1
  40. package/dist/{claude-setup-CM7G2YSG.js → claude-setup-W27DLJIO.js} +1 -1
  41. package/dist/cli.js +2 -2
  42. package/dist/{cr3-wasm-NYCB34ND.js → cr3-wasm-DIWL7CPH.js} +1 -1
  43. package/dist/{demo-engine-CBFAAPPO.js → demo-engine-JAQPM4EV.js} +1 -1
  44. package/dist/dng-wasm-PE463PG2.js +3 -0
  45. package/dist/dpx-wasm-DKE3LJ6Z.js +3 -0
  46. package/dist/{engine-6YYXTF2Q.js → engine-ZGBF3SQN.js} +2 -2
  47. package/dist/exr-wasm-HAFH3YA5.js +3 -0
  48. package/dist/framing-PGFJZIBU.js +3 -0
  49. package/dist/gfx-worker.js +1 -1
  50. package/dist/{h264-MAUVJTR4.js → h264-YX5KP63E.js} +1 -1
  51. package/dist/{h264-mxf-2O4SAUTA.js → h264-mxf-VAHIJCA7.js} +1 -1
  52. package/dist/hook.js +2 -2
  53. package/dist/{host-relink-NVLUO73P.js → host-relink-M2VWUZW5.js} +1 -1
  54. package/dist/hosted-4CNQYNX5.js +3 -0
  55. package/dist/hosts-R4BHIZJS.js +3 -0
  56. package/dist/http.js +3 -3
  57. package/dist/{inspect-YIFLNOJW.js → inspect-7XEE32P5.js} +18 -18
  58. package/dist/isobmff-RHP3N5K2.js +3 -0
  59. package/dist/{mc-video-HRZC7HGH.js → mc-video-CHBOYPI5.js} +1 -1
  60. package/dist/mcp.js +8 -8
  61. package/dist/media-4VUWQJLQ.js +3 -0
  62. package/dist/{media_core_bg-FDL7GJZP.js → media_core_bg-ZMRCKALR.js} +1 -1
  63. package/dist/mxf-R2ONKSYU.js +3 -0
  64. package/dist/{ops-XIUVNJE2.js → ops-MKDFWWPG.js} +1 -1
  65. package/dist/{probe-GIAKRPFV.js → probe-YDOFGCGD.js} +1 -1
  66. package/dist/{r3d-I6EYEYX7.js → r3d-EKISZSKU.js} +5 -5
  67. package/dist/r3d-F4OWLQE2.js +3 -0
  68. package/dist/sequence-patch-2S7IPE52.js +3 -0
  69. package/dist/{source-QGWWLMME.js → source-L2JNTYS6.js} +1 -1
  70. package/dist/{still-4UR35GZH.js → still-IDLCMQRD.js} +1 -1
  71. package/dist/{still-wasm-RTPOMH7S.js → still-wasm-54HEDTRX.js} +1 -1
  72. package/dist/{store-MWNX47IK.js → store-A5AKWOSX.js} +1 -1
  73. package/dist/tiff-wasm-O7XUGXIO.js +3 -0
  74. package/dist/timeline-ZHDJXDZJ.js +3 -0
  75. package/dist/{wav-HSCUCY4U.js → wav-OLA3QYFJ.js} +1 -1
  76. package/package.json +5 -5
  77. package/dist/account-W7Z2MYZU.js +0 -3
  78. package/dist/bridge-UPSJ7F3S.js +0 -3
  79. package/dist/chunk-DKGGJM6Z.js +0 -3
  80. package/dist/chunk-DLF5AKXT.js +0 -10
  81. package/dist/chunk-EEDLRRKU.js +0 -3
  82. package/dist/chunk-IDJIOKXA.js +0 -3
  83. package/dist/chunk-ISKNIQVO.js +0 -3
  84. package/dist/chunk-JKOB3U54.js +0 -3
  85. package/dist/chunk-JM5LHKTU.js +0 -510
  86. package/dist/chunk-OWWXUNJF.js +0 -7
  87. package/dist/chunk-PFZVET7S.js +0 -3
  88. package/dist/chunk-QH5DTYSE.js +0 -3
  89. package/dist/chunk-RVZQ3Y6N.js +0 -3
  90. package/dist/chunk-X527E5VI.js +0 -3
  91. package/dist/chunk-YUO3UWPH.js +0 -3
  92. package/dist/dng-wasm-XCPPBXPZ.js +0 -3
  93. package/dist/dpx-wasm-XACWNFPB.js +0 -3
  94. package/dist/exr-wasm-FQBUR6QT.js +0 -3
  95. package/dist/framing-QYRCUEB5.js +0 -3
  96. package/dist/hosted-2XACQY7J.js +0 -3
  97. package/dist/hosts-GEXAZFB3.js +0 -3
  98. package/dist/isobmff-MTMGQKLK.js +0 -3
  99. package/dist/media-WC4ZVKIL.js +0 -3
  100. package/dist/mxf-J5QHA3VY.js +0 -3
  101. package/dist/r3d-2PCOFR2Z.js +0 -3
  102. package/dist/sequence-patch-DFGEAJGB.js +0 -3
  103. package/dist/tiff-wasm-N2S267IA.js +0 -3
  104. package/dist/timeline-Z3KD2CJX.js +0 -3
  105. /package/dist/{chunk-D6YDLKSA.js → chunk-LMRPCWHV.js} +0 -0
  106. /package/dist/{media_core_bg-XRBVKQZH.js → media_core_bg-57CDWER6.js} +0 -0
  107. /package/dist/{prores-RIG37OIH.js → prores-CFX64NME.js} +0 -0
  108. /package/dist/{timeline_core_bg-JW42YM3G.js → timeline_core_bg-5COJCLPG.js} +0 -0
  109. /package/dist/{udf_bg-B37GKRIH.js → udf_bg-HOHEKAVF.js} +0 -0
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
+ import{a as U}from"./chunk-TK55FA56.js";import{a as J,b as T}from"./chunk-AACY2V3L.js";import{b as p,c as N,g as O}from"./chunk-2DEUYEQD.js";import{b as L}from"./chunk-TD3ZHREE.js";import{b as V,c as _}from"./chunk-ND2YUUUH.js";import{$ as f,A as P,B as x,C as F,D as A,Da as k,Ga as C,Ha as d,N as D,O as z,ha as E,k as w,m as v,n as y,p as R,qa as H,ta as I,x as S,y as M}from"./chunk-L2RTMZCN.js";import"./chunk-PSANHDZM.js";function m(e){return(t,n)=>e.read(t,n)}function $(e){let t=e.toLowerCase().trim();return t==="aprn"||t==="aprh"?"prores_raw":t==="apch"||t==="apcn"||t==="apcs"||t==="apco"||t==="ap4h"||t==="ap4x"?"prores":t==="avdn"?"dnxhd":t==="dnxh"?"dnxhr":t==="avc1"||t==="avc3"?"h264":t==="hev1"||t==="hvc1"?"h265":t==="braw"?"braw":e}var h={apco:"Proxy",apcs:"LT",apcn:"422",apch:"HQ",ap4h:"4444",ap4x:"4444 XQ"},Z={1:"bt709",2:"unknown",4:"bt470m",5:"bt470bg",6:"smpte170m",7:"smpte240m",8:"film",9:"bt2020",10:"smpte428",11:"smpte431",12:"smpte432",22:"jedec-p22"},ee={1:"bt709",2:"unknown",4:"gamma22",5:"gamma28",6:"smpte170m",7:"smpte240m",8:"linear",9:"log100",10:"log316",11:"iec61966-2-4",12:"bt1361e",13:"iec61966-2-1",14:"bt2020-10",15:"bt2020-12",16:"smpte2084",17:"smpte428",18:"arib-std-b67"},re={0:"gbr",1:"bt709",2:"unknown",4:"fcc",5:"bt470bg",6:"smpte170m",7:"smpte240m",8:"ycgco",9:"bt2020nc",10:"bt2020c",14:"ictcp"};function te(e,t){return e==="ap4h"||e==="ap4x"?t===32?"yuva444p12le":"yuv444p12le":e in h?"yuv422p10le":void 0}var B={66:"Baseline",77:"Main",88:"Extended",100:"High",110:"High 10",122:"High 4:2:2",244:"High 4:4:4"},Q={1:"Main",2:"Main 10",3:"Main Still",4:"Rext"},ne={1270:"DNxHR 444",1271:"DNxHR HQX",1272:"DNxHR HQ",1273:"DNxHR SQ",1274:"DNxHR LB"};function oe(e,t){if(h[e.codec_fourcc])return`ProRes ${h[e.codec_fourcc]}`;if(e.vc3_cid)return ne[e.vc3_cid]??`DNxHD ${e.vc3_cid}`;if(e.video_profile!=null){if(t==="h264"&&B[e.video_profile])return`H.264 ${B[e.video_profile]}`;if(t==="h265"&&Q[e.video_profile])return`HEVC ${Q[e.video_profile]}`}}function ie(e,t){let n=e.video_chroma,r=e.video_bit_depth;if(n==null&&t==="h264"&&[66,77,88].includes(e.video_profile??-1)&&([n,r]=[1,8]),n==null&&e.vc3_cid&&(n=e.vc3_cid===1270||e.vc3_cid===1256?3:2),n==null||r==null)return;let i=["gray","yuv420p","yuv422p","yuv444p"][n];return r>8?`${i}${r}le`:i}function j(e,t){let n=[];for(let r of e){if(r.kind!=="clip"||!r.source_range)continue;let i=r.source_range.start.value,o=r.source_range.duration.value,c=Math.max(0,Math.floor(i)-t),a=Math.floor(i+o-1)+t;a>=c&&n.push({first_frame:c,last_frame:a})}return n}var be={async inspect(e){await d();let t=e.parts[0],n=await f(m(t),t.fileSize,e.format),r=JSON.parse(n);if(!r)return null;let i=r.timecode&&r.timecode.fps_denominator>0?r.timecode.fps_numerator/r.timecode.fps_denominator:null,o=$(r.codec_fourcc),c=[{kind:"video",codec:o,width:r.width??void 0,height:r.height??void 0,rate:i??void 0,bit_depth:p(r.codec_fourcc)??p(o)??N(o,r.video_profile)??r.video_bit_depth??void 0,codec_specific:{fourcc:r.codec_fourcc,profile:oe(r,o),pixel_format:te(r.codec_fourcc,r.video_depth)??ie(r,o),colr:r.colr?{primaries:Z[r.colr.primaries]??r.colr.primaries,transfer:ee[r.colr.transfer]??r.colr.transfer,matrix:re[r.colr.matrix]??r.colr.matrix}:void 0}}];for(let a of r.audio_tracks??(r.audio?[r.audio]:[]))c.push({kind:"audio",codec:a.codec_fourcc,channels:a.channels??void 0,rate:a.sample_rate??void 0,bit_depth:a.bit_depth??void 0,codec_specific:{fourcc:a.codec_fourcc,channel_layout:a.channel_layout??void 0}});return{id:t.filename,kind:"external",target_url:t.filename,available_range:i&&r.duration_seconds?{start:{value:0,rate:i},duration:{value:Math.round(r.duration_seconds*i),rate:i}}:null,reel_name:null,source_timecode:r.timecode?.display??null,container:e.format==="mov"?"mov":e.format,codec:o,size_bytes:t.fileSize,source_fps:i,source_resolution_w:r.width??null,source_resolution_h:r.height??null,streams:c,decode_provenance:r.decode_provenance??null,vendor_metadata:r.timecode?{drop_frame:r.timecode.drop_frame}:{},binding_state:"unbound",raw_extraction:{mov_probe:r},metadata:{}}},async extract(e){await d();let t=e.parts[0],n=JSON.parse(await E(m(t),t.fileSize,e.format));if(n.length===0)return null;let r=JSON.parse(await f(m(t),t.fileSize,e.format)),i=r?$(r.codec_fourcc):e.format,o=r?.timecode&&r.timecode.fps_denominator>0?r.timecode.fps_numerator/r.timecode.fps_denominator:void 0;return{v:1,container:e.format==="mov"?"mov":e.format,codec:i,width:r?.width??void 0,height:r?.height??void 0,fps:o,frame_count:J(n),timecode:r?.timecode?.display??void 0,granularity:T(n),segments:n}},async sparsify(e,t){await d();let n=e.parts[0],r=j(t.items,t.handles),i=await I(m(n),n.fileSize,JSON.stringify(r),e.format),o=JSON.parse(i);return[{filename:n.filename,fileSize:o.fileSize,structuralRanges:o.structuralRanges,essenceRanges:o.essenceRanges,trimInputs:o.trimInputs}]},async trim(e,t){await d();let n=e.parts[0],r=j(t.items,0);if(r.length===0)throw new Error("isobmff trim: no usable trim ranges in items");let i=await L(r,t.handles,(o,c)=>H(m(n),n.fileSize,o,c,e.format));return i.map((o,c)=>{let a=JSON.parse(o);return i.length>1&&(a.output_clip_number=c+1,a.output_clip_count=i.length,a.output_part_number=1),a})},async decode(e,t,n){await d();let r=n.detail==="coarse",i=e.parts[0];if(e.format==="crm"){let l=await R(m(i),i.fileSize,t,r?"preview":"full");return s(l)}let o=await K(e);if(t<0||t>=o.length)throw new _(t,o.length);let c=o[t],a=await i.read(c.offset,c.size);if(e.format==="braw")return s(r?v(a,0):y(a));if(b(a)){let l=await X(e);return s(l?u.decode_prores_raw_tier(a,r?"preview":"full",l):r?P(a,0):x(a))}if(G(a))return s(r?D(a,0):z(a));if(r)return s(S(a,0));let g=await ae(a);return g||s(A(a))},async decode16(e,t){await d();let n=e.parts[0];if(e.format==="crm")throw new Error("crm: no 16-bit decoder");let r=await K(e);if(t<0||t>=r.length)throw new _(t,r.length);let i=r[t],o=await n.read(i.offset,i.size),c=b(o)?await X(e):null,a=e.format==="braw"?w(o):b(o)?c?u.decode_prores_raw_tier(o,"rgb16",c):M(o):G(o)?(()=>{throw new Error("vc3: no 16-bit decoder")})():F(o);return V(a)}};async function ae(e){if(!!0)return null;try{let t=await import("./prores-CFX64NME.js");if(!await t.proresGpuAvailable())return null;let n=await t.decodeProResRgbaGpu(e);return n?{width:n.width,height:n.height,rgba:n.rgba}:null}catch{return null}}function G(e){return e.length>=4&&e[0]===0&&e[1]===0&&e[2]===2&&e[3]===128}function b(e){return e.length>=8&&e[4]===112&&e[5]===114&&e[6]===114&&e[7]===102}function s(e){let t=new DataView(e.buffer,e.byteOffset,8);return{width:t.getUint32(0,!0),height:t.getUint32(4,!0),rgba:e.slice(8)}}var u=C,W=new WeakMap;function X(e){let t=W.get(e);if(!t){let n=e.parts[0];t=u.prores_raw_container_color&&u.decode_prores_raw_tier?U({fileSize:n.fileSize,read:n.read}).then(r=>{let i=u.prores_raw_container_color(r);return i.length?i:null}):Promise.resolve(null),W.set(e,t)}return t}var q=new WeakMap;async function K(e){let t=q.get(e);if(!t){let n=e.parts[0],r=O(await k(m(n),n.fileSize,e.format));if(!r.w||!r.h)throw new Error("could not find a video sample table");t=r.offs,q.set(e,t)}return t}export{be as isobmffFormat};
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{c as b}from"./chunk-6V4OEOOX.js";import"./chunk-RGMTLNMF.js";import{c as w,g as y}from"./chunk-4RA57LTJ.js";import{Ca as l,Ga as p,Ia as h}from"./chunk-DPA26AOI.js";import"./chunk-PSANHDZM.js";var F=72*1024*1024,S=16,m=p;function L(){return typeof m.video_open=="function"&&typeof m.video_decode=="function"}async function P(r,e){if(await h(),!L())return null;try{return JSON.parse(await m.video_open(r,e))}catch{return null}}function k(r){l?.(r)}var u=new WeakMap;function v(r){let e=u.get(r);if(!e){let t=r.parts[0];e=P((n,a)=>t.read(n,a),t.fileSize).then(n=>{if(!n)throw new Error(`mcvideo: media-core has no video decoder for ${t.filename}`);return{info:n,cache:new Map,cacheCoarse:!1,frameBytes:0,queue:Promise.resolve()}}),e.catch(()=>u.delete(r)),u.set(r,e)}return e}async function B(r){try{return(await v(r)).info.frames}catch{return 0}}function _(r){let e=new DataView(r.buffer,r.byteOffset,r.byteLength),t=new Map,n=4;for(let a=e.getUint32(0,!0);a>0&&n+12<=r.length;a--){let s=e.getUint32(n,!0),c=e.getUint32(n+4,!0),i=e.getUint32(n+8,!0),o=c*i*4;if(n+=12,n+o>r.length)break;t.set(s,{width:c,height:i,rgba:r.slice(n,n+o)}),n+=o}return t}async function C(r,e,t){let n=await v(r),{info:a}=n;if(e<0||e>=a.frames)throw new w(e,a.frames);let s=async()=>{let i=t&&a.codec==="dv";n.cacheCoarse!==i&&(n.cache.clear(),n.cacheCoarse=i);let o=n.cache.get(e);if(!o){let g=a.inter?Math.max(1,Math.min(S,n.frameBytes?Math.floor(F/n.frameBytes):4)):1,d=_(await m.video_decode(a.handle,e,Math.min(a.frames,e+g),i));n.cache=d,o=d.get(e),o&&(n.frameBytes=o.rgba.length)}if(!o)throw new Error(`mcvideo: ${a.codec} frame ${e} did not decode`);return n.cache.delete(e),o},c=n.queue.then(s,s);return n.queue=c.catch(()=>{}),c}async function f(r){let e=b(r.parts[0]?.filename??""),t=e?await y(e):null;return t&&e?[t,{...r,format:e}]:null}async function M(r){let e=await f(r);if(!e)throw new Error(`mcvideo: no container module for ${r.parts[0]?.filename} \u2014 ships whole`);return e}var I={async inspect(r){let e=await f(r);return e?e[0].inspect(e[1]):null},async extract(r){let e=await f(r);return e?e[0].extract(e[1]):null},async sparsify(r,e){let[t,n]=await M(r);return t.sparsify(n,e)},async trim(r,e){let[t,n]=await M(r);return t.trim(n,e)},async decode(r,e,{detail:t}){return C(r,e,t==="coarse")}};export{k as closeVideoLane,L as hasVideoLane,I as mcVideoFormat,P as openVideoLane,_ as unpackWindow,B as videoLaneFrames};
3
+ import{c as b}from"./chunk-VFXMP7IF.js";import"./chunk-BBCQMZQN.js";import{c as w,g as y}from"./chunk-ND2YUUUH.js";import{Ca as l,Ga as p,Ha as h}from"./chunk-L2RTMZCN.js";import"./chunk-PSANHDZM.js";var F=72*1024*1024,S=16,m=p;function L(){return typeof m.video_open=="function"&&typeof m.video_decode=="function"}async function P(r,e){if(await h(),!L())return null;try{return JSON.parse(await m.video_open(r,e))}catch{return null}}function k(r){l?.(r)}var u=new WeakMap;function v(r){let e=u.get(r);if(!e){let t=r.parts[0];e=P((n,a)=>t.read(n,a),t.fileSize).then(n=>{if(!n)throw new Error(`mcvideo: media-core has no video decoder for ${t.filename}`);return{info:n,cache:new Map,cacheCoarse:!1,frameBytes:0,queue:Promise.resolve()}}),e.catch(()=>u.delete(r)),u.set(r,e)}return e}async function B(r){try{return(await v(r)).info.frames}catch{return 0}}function _(r){let e=new DataView(r.buffer,r.byteOffset,r.byteLength),t=new Map,n=4;for(let a=e.getUint32(0,!0);a>0&&n+12<=r.length;a--){let s=e.getUint32(n,!0),c=e.getUint32(n+4,!0),i=e.getUint32(n+8,!0),o=c*i*4;if(n+=12,n+o>r.length)break;t.set(s,{width:c,height:i,rgba:r.slice(n,n+o)}),n+=o}return t}async function C(r,e,t){let n=await v(r),{info:a}=n;if(e<0||e>=a.frames)throw new w(e,a.frames);let s=async()=>{let i=t&&a.codec==="dv";n.cacheCoarse!==i&&(n.cache.clear(),n.cacheCoarse=i);let o=n.cache.get(e);if(!o){let g=a.inter?Math.max(1,Math.min(S,n.frameBytes?Math.floor(F/n.frameBytes):4)):1,d=_(await m.video_decode(a.handle,e,Math.min(a.frames,e+g),i));n.cache=d,o=d.get(e),o&&(n.frameBytes=o.rgba.length)}if(!o)throw new Error(`mcvideo: ${a.codec} frame ${e} did not decode`);return n.cache.delete(e),o},c=n.queue.then(s,s);return n.queue=c.catch(()=>{}),c}async function f(r){let e=b(r.parts[0]?.filename??""),t=e?await y(e):null;return t&&e?[t,{...r,format:e}]:null}async function M(r){let e=await f(r);if(!e)throw new Error(`mcvideo: no container module for ${r.parts[0]?.filename} \u2014 ships whole`);return e}var I={async inspect(r){let e=await f(r);return e?e[0].inspect(e[1]):null},async extract(r){let e=await f(r);return e?e[0].extract(e[1]):null},async sparsify(r,e){let[t,n]=await M(r);return t.sparsify(n,e)},async trim(r,e){let[t,n]=await M(r);return t.trim(n,e)},async decode(r,e,{detail:t}){return C(r,e,t==="coarse")}};export{k as closeVideoLane,L as hasVideoLane,I as mcVideoFormat,P as openVideoLane,_ as unpackWindow,B as videoLaneFrames};