conformtools 0.6.3 → 0.6.5

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 (94) hide show
  1. package/package.json +1 -1
  2. package/dist/arriraw-GUQEZ7CH.js +0 -525
  3. package/dist/browser/timeline_core_bg.wasm +0 -0
  4. package/dist/chunk-5K56Q5EX.js +0 -3
  5. package/dist/chunk-6FVGUJ6L.js +0 -3
  6. package/dist/chunk-6TM32YIJ.js +0 -7
  7. package/dist/chunk-7D7H6VFW.js +0 -3
  8. package/dist/chunk-AACY2V3L.js +0 -3
  9. package/dist/chunk-BK62N3ID.js +0 -3
  10. package/dist/chunk-BUEIRRNY.js +0 -3
  11. package/dist/chunk-C2ESM27Z.js +0 -3
  12. package/dist/chunk-CETBLAWM.js +0 -3
  13. package/dist/chunk-D2RXAX5C.js +0 -3
  14. package/dist/chunk-D5DEQ467.js +0 -3
  15. package/dist/chunk-DKGGJM6Z.js +0 -3
  16. package/dist/chunk-DRHOPOC7.js +0 -3
  17. package/dist/chunk-EV52G33S.js +0 -354
  18. package/dist/chunk-FMYTLXWN.js +0 -3
  19. package/dist/chunk-GIZIR52D.js +0 -3
  20. package/dist/chunk-GXEVALBL.js +0 -3
  21. package/dist/chunk-JBSH4AK3.js +0 -3
  22. package/dist/chunk-LO4K2ZF3.js +0 -3
  23. package/dist/chunk-P7OVDUA5.js +0 -3
  24. package/dist/chunk-PSANHDZM.js +0 -3
  25. package/dist/chunk-QDWB7QU7.js +0 -3
  26. package/dist/chunk-R7P7WVNI.js +0 -3
  27. package/dist/chunk-SP5RGDAM.js +0 -3
  28. package/dist/chunk-TK55FA56.js +0 -3
  29. package/dist/chunk-UCMNH6Q6.js +0 -3
  30. package/dist/chunk-WE4S4PEA.js +0 -3
  31. package/dist/chunk-Y2BEEOPB.js +0 -3
  32. package/dist/claude-setup-XSNTKEU7.js +0 -5
  33. package/dist/cli.js +0 -17
  34. package/dist/clip-state-B6JOX3JE.js +0 -3
  35. package/dist/conformtools-decode +0 -0
  36. package/dist/cr3-wasm-HTRSUBJK.js +0 -3
  37. package/dist/dng-wasm-2I7S2SN4.js +0 -3
  38. package/dist/dpx-wasm-AHH7D56L.js +0 -3
  39. package/dist/esm-SFFBP7PS.js +0 -3
  40. package/dist/exr-wasm-3TAN64WQ.js +0 -3
  41. package/dist/h264-2LU2X635.js +0 -3
  42. package/dist/h264-mxf-5HJUSZLL.js +0 -3
  43. package/dist/http.js +0 -4
  44. package/dist/i2o-transfer +0 -0
  45. package/dist/inspect-NY36WVMH.js +0 -46
  46. package/dist/isobmff-HSF7B3Y7.js +0 -3
  47. package/dist/mcp.js +0 -14
  48. package/dist/media_core-R5PPN3AY.js +0 -9
  49. package/dist/media_core_bg-5QHIWEZB.js +0 -3
  50. package/dist/media_core_bg-MEORQOCQ.js +0 -3
  51. package/dist/mxf-IQBPP3JA.js +0 -3
  52. package/dist/onnxruntime-web-stub-PKJ2NZBF.js +0 -3
  53. package/dist/ops-PFEKOSET.js +0 -3
  54. package/dist/premiere-uxp/icons/panel.png +0 -0
  55. package/dist/premiere-uxp/icons/panel@2x.png +0 -0
  56. package/dist/premiere-uxp/icons/plugin.png +0 -0
  57. package/dist/premiere-uxp/icons/plugin@2x.png +0 -0
  58. package/dist/premiere-uxp/index.html +0 -38
  59. package/dist/premiere-uxp/index.js +0 -93
  60. package/dist/premiere-uxp/lib/clipmeta.js +0 -170
  61. package/dist/premiere-uxp/lib/ctx.js +0 -62
  62. package/dist/premiere-uxp/lib/handles.js +0 -57
  63. package/dist/premiere-uxp/lib/markers.js +0 -198
  64. package/dist/premiere-uxp/lib/pairing.js +0 -58
  65. package/dist/premiere-uxp/lib/premiere.js +0 -82
  66. package/dist/premiere-uxp/lib/probe.js +0 -139
  67. package/dist/premiere-uxp/lib/protocol.js +0 -165
  68. package/dist/premiere-uxp/lib/render.js +0 -38
  69. package/dist/premiere-uxp/lib/session.js +0 -85
  70. package/dist/premiere-uxp/lib/sizing.js +0 -312
  71. package/dist/premiere-uxp/lib/time.js +0 -82
  72. package/dist/premiere-uxp/lib/timeline.js +0 -336
  73. package/dist/premiere-uxp/lib/verbs.js +0 -20
  74. package/dist/premiere-uxp/lib/write.js +0 -97
  75. package/dist/premiere-uxp/manifest.json +0 -102
  76. package/dist/prores-BR2YURFP.js +0 -526
  77. package/dist/r3d-QLV4J6YF.js +0 -3
  78. package/dist/r3d-YZH6X2D7.js +0 -1025
  79. package/dist/resolve-bridge.py +0 -979
  80. package/dist/resolve-presets/conform.tools.xml +0 -127
  81. package/dist/source-BDJAUQVR.js +0 -3
  82. package/dist/sscd-embed-DHFTEIOC.js +0 -3
  83. package/dist/sscd-sweep-OYS4XAID.js +0 -3
  84. package/dist/statusline-GMMCFMOA.js +0 -4
  85. package/dist/statusline.js +0 -3
  86. package/dist/still-LORP3E5C.js +0 -3
  87. package/dist/tiff-wasm-6XFTTCL4.js +0 -3
  88. package/dist/timeline_core-VK2ZWPCO.js +0 -3
  89. package/dist/timeline_core_bg-DFKQ7XOU.js +0 -3
  90. package/dist/udf_bg-ZIB3GK52.js +0 -3
  91. package/dist/wasm/media_core_bg.wasm +0 -0
  92. package/dist/wasm/udf_bg.wasm +0 -0
  93. package/dist/wasm-threads/media_core_bg.wasm +0 -0
  94. package/dist/wav-PMVKVYNP.js +0 -3
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{d as _}from"./chunk-BK62N3ID.js";function l(f){let m=[...f].sort((s,t)=>s.first_frame-t.first_frame),e=[];for(let s of m){let t=e[e.length-1];t&&s.first_frame<=t.last_frame+1?t.last_frame=Math.max(t.last_frame,s.last_frame):e.push({...s})}return e}async function g(f,m,e){let s=l(f),t=l(f.map(r=>({first_frame:Math.max(0,r.first_frame-m),last_frame:r.last_frame+m}))),n=[];for(let r of t)try{n.push(await e(r.first_frame,r.last_frame+1))}catch(o){let i=_(o)?.file_frames,u=s.filter(a=>a.last_frame>=r.first_frame&&a.first_frame<=r.last_frame);if(i==null||r.last_frame+1<=i||u.some(a=>a.first_frame<0||a.last_frame+1>i))throw o;n.push(await e(r.first_frame,i))}return n}export{l as a,g as b};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- var e=new URL("./wasm/media_core_bg.wasm",import.meta.url).href;export{e as a};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a as U,b as g}from"./chunk-Y2BEEOPB.js";var E=async i=>(await import("./sscd-embed-DHFTEIOC.js")).embedFrames(i),O=4;function S(i,e,m,r=288){let a=new Uint8ClampedArray(r*r*4),o=e/r,l=m/r;if(o>=1&&l>=1){for(let s=0;s<r;s++){let p=Math.floor(s*l),u=Math.max(p+1,Math.min(m,Math.ceil((s+1)*l)));for(let t=0;t<r;t++){let h=Math.floor(t*o),n=Math.max(h+1,Math.min(e,Math.ceil((t+1)*o))),b=0,d=0,y=0,c=0;for(let x=p;x<u;x++)for(let w=h,M=(x*e+h)*4;w<n;w++,M+=4)b+=i[M],d+=i[M+1],y+=i[M+2],c++;let f=(s*r+t)*4;a[f]=b/c,a[f+1]=d/c,a[f+2]=y/c,a[f+3]=255}}return a}for(let s=0;s<r;s++){let p=Math.min(m-1,Math.max(0,(s+.5)*l-.5)),u=Math.floor(p),t=Math.min(m-1,u+1),h=p-u;for(let n=0;n<r;n++){let b=Math.min(e-1,Math.max(0,(n+.5)*o-.5)),d=Math.floor(b),y=Math.min(e-1,d+1),c=b-d,f=(u*e+d)*4,x=(u*e+y)*4,w=(t*e+d)*4,M=(t*e+y)*4,C=(s*r+n)*4;for(let A=0;A<3;A++){let P=i[f+A]*(1-c)+i[x+A]*c,D=i[w+A]*(1-c)+i[M+A]*c;a[C+A]=P*(1-h)+D*h}a[C+3]=255}}return a}function F(i,e,m){let r=new Uint8ClampedArray(e*m*4);for(let a=0,o=0;a<i.length;a++,o+=4)r[o]=r[o+1]=r[o+2]=i[a],r[o+3]=255;return r}async function _(i,e,m={}){let r=Math.max(1,Math.min(O,Math.floor(m.stride??1)));if(e<=0)return[];let a=m.embed??E,o=[];for(let t=0;t<e;t+=r)o.push(t);let l=[];for(let t=0;t<o.length;t+=8){if(m.signal?.aborted)throw new DOMException("aborted","AbortError");let h=o.slice(t,t+8),n=[],b=[];for(let y of h){let c=null;try{let f=await i(y);f&&(c=S(F(f.y,f.w,f.h),f.w,f.h))}catch{}b.push(c?n.length:-1),c&&n.push(c)}let d=n.length?await a(n):[];for(let y of b)l.push(y>=0?d[y]:null);m.onProgress?.(Math.min(o.length,t+h.length),o.length)}let s=l.find(t=>t)??null;if(!s)return[];let p=l.map(t=>s=t??s),u=p.length-1;return Array.from({length:e},(t,h)=>p[Math.min(u,Math.round(h/r))])}async function v(i,e,m={}){let r=m.embed??E,a=[];for(let l=0;l<e.length;l+=8){if(m.signal?.aborted)throw new DOMException("aborted","AbortError");let s=e.slice(l,l+8),p=await Promise.all(s.map(n=>i(n).catch(()=>null))),u=[],t=[];for(let n of p)t.push(n?u.length:-1),n&&u.push(S(F(n.y,n.w,n.h),n.w,n.h));let h=u.length?await r(u):[];for(let n of t)a.push(n>=0?h[n]:null);m.onProgress?.(Math.min(e.length,l+s.length),e.length)}let o=a.find(l=>l)??null;return o?a.map(l=>o=l??o):[]}export{O as a,S as b,F as c,_ as d,v as e};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{d as Tt}from"./chunk-PSANHDZM.js";var At={};Tt(At,{ExrBench:()=>J,ExrStreamEncoder:()=>Q,ProResBench:()=>Z,ProResMovEncoder:()=>tt,ProResMovWriter:()=>et,arriraw12_clip_info:()=>Ot,arriraw_mxf_gpu_frame:()=>Ft,audio_aac_au:()=>Wt,audio_aac_config:()=>St,audio_info:()=>Rt,bench_f32_boundary:()=>Lt,bench_piz_no_huffman:()=>zt,dci_code_full_depth:()=>Dt,dci_frame_cap:()=>Ut,dci_gpu_colour_patch:()=>jt,dci_gpu_colour_tables:()=>Bt,dci_last_pass_caps:()=>Pt,dci_legal_rates:()=>Ct,dci_mq_bench:()=>qt,dci_pack_tier1:()=>Nt,dci_stage_rgba8:()=>Ht,dci_transform_only:()=>Gt,decode_arriraw12_luma:()=>Vt,decode_arriraw12_mxf:()=>Kt,decode_arriraw12_preview:()=>Xt,decode_arriraw12_rgba:()=>Yt,decode_arriraw_luma:()=>$t,decode_arriraw_mxf:()=>Jt,decode_arriraw_preview:()=>Qt,decode_arriraw_preview_gray:()=>Zt,decode_arriraw_preview_meta:()=>te,decode_arriraw_rgba:()=>ee,decode_arriraw_rgba_meta:()=>ne,decode_audio_pcm:()=>re,decode_braw_gen5log:()=>_e,decode_braw_luma:()=>oe,decode_braw_preview:()=>ie,decode_braw_rgba:()=>ae,decode_cr3_rgba:()=>ce,decode_crm:()=>de,decode_dng_preview:()=>se,decode_dng_rgba:()=>pe,decode_dpx_preview:()=>ge,decode_dpx_rgba:()=>ue,decode_exr_linear:()=>we,decode_exr_preview:()=>be,decode_exr_rgba:()=>le,decode_jpeg_rgba:()=>fe,decode_png_rgba:()=>xe,decode_prores_band_rgba:()=>ve,decode_prores_luma:()=>Ie,decode_prores_mxf:()=>ye,decode_prores_preview:()=>me,decode_prores_raw_acescct:()=>he,decode_prores_raw_luma:()=>ke,decode_prores_raw_preview:()=>Ae,decode_prores_raw_rec2020:()=>Me,decode_prores_raw_rgba:()=>Ee,decode_prores_rgb16:()=>Te,decode_prores_rgba:()=>Oe,decode_prores_thumb_dc32:()=>Fe,decode_r3d_luma:()=>We,decode_r3d_preview:()=>Se,decode_r3d_preview_clip:()=>Re,decode_r3d_rgb16:()=>Le,decode_r3d_rgba:()=>ze,decode_r3d_rgba_clip:()=>De,decode_tiff_preview:()=>Ue,decode_tiff_rgba:()=>je,decode_vc3_band_rgba:()=>Be,decode_vc3_luma:()=>Pe,decode_vc3_mxf:()=>Ce,decode_vc3_preview:()=>qe,decode_vc3_rgba:()=>Ne,decode_xocn_index_luma:()=>He,decode_xocn_luma:()=>Ge,decode_xocn_mxf:()=>Ve,decode_xocn_preview:()=>Ke,decode_xocn_preview_rec709:()=>Xe,decode_xocn_rgb16:()=>Ye,decode_xocn_rgba:()=>$e,default:()=>nt,encode_dci_j2c:()=>Je,encode_dci_j2c_rgb:()=>Qe,encode_dci_j2c_rgba8:()=>Ze,encode_dci_j2c_staged:()=>tn,encode_dci_j2c_staged_modelled:()=>en,encode_exr:()=>nn,encode_prores_4444_alpha_mov_rgba:()=>rn,encode_prores_4444_alpha_sample_q:()=>_n,encode_prores_444_sample_cbr:()=>on,encode_prores_444_sample_cbr_rgb16:()=>an,encode_prores_444_sample_cbr_rgb16_lut:()=>cn,encode_prores_mov_rgba:()=>dn,encode_prores_rgba:()=>sn,encode_prores_sample_cbr:()=>pn,encode_prores_sample_cbr_rgb16:()=>gn,encode_prores_sample_cbr_rgb16_lut:()=>un,encode_prores_sample_q:()=>wn,exr_sequence_filename:()=>bn,fit_sizing:()=>ln,initSync:()=>Lr,inspect_cr3:()=>fn,inspect_dng:()=>xn,inspect_dpx:()=>vn,inspect_exr:()=>In,inspect_isobmff:()=>yn,inspect_tiff:()=>mn,inspect_wav:()=>hn,is_arriraw12_mxf:()=>kn,is_arriraw_mxf:()=>An,is_crm:()=>Mn,is_prores_mxf:()=>En,is_vc3_mxf:()=>Tn,is_xavc_mxf:()=>On,is_xocn_mxf:()=>Fn,list_isobmff_segments:()=>Wn,list_mxf_segments:()=>Sn,list_r3d_frames:()=>Rn,list_r3d_segments:()=>Ln,list_wav_segments:()=>zn,mux_prores_4444_alpha_samples:()=>Dn,mux_prores_samples:()=>Un,mux_prores_samples_full:()=>jn,mxf_au_run:()=>Bn,mxf_frame_index:()=>Pn,mxf_gop_map:()=>Cn,mxf_h264_kind:()=>qn,plan_isobmff_trim:()=>Nn,plan_isobmff_trim_reader:()=>Hn,plan_mxf_compact_trim:()=>Gn,plan_mxf_trim:()=>Vn,plan_r3d_compact:()=>Kn,plan_wav_trim:()=>Xn,plan_wav_trim_reader:()=>Yn,prepare_isobmff:()=>$n,prepare_mxf:()=>Jn,prepare_r3d:()=>Qn,prepare_wav:()=>Zn,probe_mov:()=>tr,probe_mxf:()=>er,probe_r3d:()=>nr,prores_band_info:()=>rr,prores_reset_rate_control:()=>_r,r3d_gpu_develop_params:()=>or,r3d_is_helium:()=>ir,read_arriraw_fcs:()=>ar,read_arriraw_unit_correction:()=>cr,recover_reframe:()=>dr,resample_rgba16:()=>sr,resample_rgba8:()=>pr,reset_dci_rate_state:()=>gr,resize_luma_area:()=>ur,rgba8_to_xyz12:()=>wr,trim_r3d:()=>br,vc3_band_info:()=>lr,video_frame_index_isobmff_reader:()=>fr,xavc_au:()=>xr,xavc_frame_count:()=>vr,xocn_frame_count:()=>Ir,xocn_index_prefix_len:()=>yr,xocn_preview_prefix_len:()=>mr});var J=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,wt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_exrbench_free(e,0)}block_rows(){return t.exrbench_block_rows(this.__wbg_ptr)>>>0}f32_to_half_block(){return t.exrbench_f32_to_half_block(this.__wbg_ptr)}n_blocks(){return t.exrbench_n_blocks(this.__wbg_ptr)>>>0}constructor(e,n,o,a){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=I(a,t.__wbindgen_export4,t.__wbindgen_export5),u=p;t.exrbench_new(s,e,n,o,g,u);var c=_().getInt32(s+0,!0),i=_().getInt32(s+4,!0),d=_().getInt32(s+8,!0);if(d)throw w(i);return this.__wbg_ptr=c,wt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}piz_stage_block(e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_piz_stage_block(c,this.__wbg_ptr,e);var n=_().getFloat64(c+0,!0),o=_().getInt32(c+8,!0),a=_().getInt32(c+12,!0);if(a)throw w(o);return n}finally{t.__wbindgen_add_to_stack_pointer(16)}}staging_f32_ptr(){return t.exrbench_staging_f32_ptr(this.__wbg_ptr)>>>0}staging_f32_samples(){return t.exrbench_staging_f32_samples(this.__wbg_ptr)>>>0}staging_half_len(){return t.exrbench_staging_half_len(this.__wbg_ptr)>>>0}staging_half_ptr(){return t.exrbench_staging_half_ptr(this.__wbg_ptr)>>>0}zip_stage_block(e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_zip_stage_block(c,this.__wbg_ptr,e);var n=_().getFloat64(c+0,!0),o=_().getInt32(c+8,!0),a=_().getInt32(c+12,!0);if(a)throw w(o);return n}finally{t.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(J.prototype[Symbol.dispose]=J.prototype.free);var Q=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,bt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_exrstreamencoder_free(e,0)}block_rows(){return t.exrstreamencoder_block_rows(this.__wbg_ptr)>>>0}finish(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_finish(i,this.__wbg_ptr);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_header(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}n_blocks(){return t.exrstreamencoder_n_blocks(this.__wbg_ptr)>>>0}constructor(e,n,o,a,c,i,d,s,g,u){try{let y=t.__wbindgen_add_to_stack_pointer(-16),h=I(o,t.__wbindgen_export4,t.__wbindgen_export5),k=p,M=I(a,t.__wbindgen_export4,t.__wbindgen_export5),O=p,F=I(c,t.__wbindgen_export4,t.__wbindgen_export5),E=p,W=I(i,t.__wbindgen_export4,t.__wbindgen_export5),S=p,z=I(s,t.__wbindgen_export4,t.__wbindgen_export5),U=p;t.exrstreamencoder_new(y,e,n,h,k,M,O,F,E,W,S,d,z,U,g,u);var b=_().getInt32(y+0,!0),x=_().getInt32(y+4,!0),m=_().getInt32(y+8,!0);if(m)throw w(x);return this.__wbg_ptr=b,bt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_block(e){try{let d=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_push_block(d,this.__wbg_ptr,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}rows_remaining(){return t.exrstreamencoder_rows_remaining(this.__wbg_ptr)>>>0}staging_ptr(){return t.exrstreamencoder_staging_ptr(this.__wbg_ptr)>>>0}staging_samples(){return t.exrstreamencoder_staging_samples(this.__wbg_ptr)>>>0}};Symbol.dispose&&(Q.prototype[Symbol.dispose]=Q.prototype.free);var Z=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,lt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_proresbench_free(e,0)}constructor(e,n,o,a){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=I(o,t.__wbindgen_export4,t.__wbindgen_export5),u=p;t.proresbench_new(s,e,n,g,u,a);var c=_().getInt32(s+0,!0),i=_().getInt32(s+4,!0),d=_().getInt32(s+8,!0);if(d)throw w(i);return this.__wbg_ptr=c,lt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}stage(e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.proresbench_stage(c,this.__wbg_ptr,e);var n=_().getFloat64(c+0,!0),o=_().getInt32(c+8,!0),a=_().getInt32(c+12,!0);if(a)throw w(o);return n}finally{t.__wbindgen_add_to_stack_pointer(16)}}staging_len(){return t.proresbench_staging_len(this.__wbg_ptr)>>>0}staging_ptr(){return t.proresbench_staging_ptr(this.__wbg_ptr)>>>0}};Symbol.dispose&&(Z.prototype[Symbol.dispose]=Z.prototype.free);var tt=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_proresmovencoder_free(e,0)}add_frame_rgba(e){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(e,t.__wbindgen_export4),i=p;t.proresmovencoder_add_frame_rgba(a,this.__wbg_ptr,c,i);var n=_().getInt32(a+0,!0),o=_().getInt32(a+4,!0);if(o)throw w(n)}finally{t.__wbindgen_add_to_stack_pointer(16)}}finish(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovencoder_finish(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovencoder_frame_count(this.__wbg_ptr)>>>0}constructor(e,n,o,a){let c=t.proresmovencoder_new(e,n,o,a);return this.__wbg_ptr=c,ft.register(this,this.__wbg_ptr,this),this}set_alpha(e){t.proresmovencoder_set_alpha(this.__wbg_ptr,e)}set_bitrate_mbps(e){t.proresmovencoder_set_bitrate_mbps(this.__wbg_ptr,e)}set_qscale(e){t.proresmovencoder_set_qscale(this.__wbg_ptr,e)}};Symbol.dispose&&(tt.prototype[Symbol.dispose]=tt.prototype.free);var et=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,xt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_proresmovwriter_free(e,0)}finish(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_finish(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovwriter_frame_count(this.__wbg_ptr)>>>0}header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_header(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_mdat_box_header(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_offset(){return t.proresmovwriter_mdat_box_offset(this.__wbg_ptr)}constructor(e,n,o,a){let c=t.proresmovwriter_new(e,n,o,a);return this.__wbg_ptr=c,xt.register(this,this.__wbg_ptr,this),this}push_frame(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_frame(i,this.__wbg_ptr);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample(e){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(e,t.__wbindgen_export4),i=p;t.proresmovwriter_push_sample(a,this.__wbg_ptr,c,i);var n=_().getInt32(a+0,!0),o=_().getInt32(a+4,!0);if(o)throw w(n)}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample_len(e){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_sample_len(a,this.__wbg_ptr,e);var n=_().getInt32(a+0,!0),o=_().getInt32(a+4,!0);if(o)throw w(n)}finally{t.__wbindgen_add_to_stack_pointer(16)}}reserve_large_mdat(e){t.proresmovwriter_reserve_large_mdat(this.__wbg_ptr,e)}set_alpha(e){t.proresmovwriter_set_alpha(this.__wbg_ptr,e)}set_bitrate_mbps(e){t.proresmovwriter_set_bitrate_mbps(this.__wbg_ptr,e)}set_par(e,n){t.proresmovwriter_set_par(this.__wbg_ptr,e,n)}set_profile(e){let n=I(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p;t.proresmovwriter_set_profile(this.__wbg_ptr,n,o)}set_qscale(e){t.proresmovwriter_set_qscale(this.__wbg_ptr,e)}set_start_timecode(e,n){t.proresmovwriter_set_start_timecode(this.__wbg_ptr,e,n)}staging_len(){return t.proresmovwriter_staging_len(this.__wbg_ptr)>>>0}staging_ptr(){return t.proresmovwriter_staging_ptr(this.__wbg_ptr)>>>0}total_len(){return t.proresmovwriter_total_len(this.__wbg_ptr)}};Symbol.dispose&&(et.prototype[Symbol.dispose]=et.prototype.free);function Ot(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.arriraw12_clip_info(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Ft(r,e,n,o){var a=B(o)?0:I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p;let i=t.arriraw_mxf_gpu_frame(v(r),e,n,a,c);return w(i)}function Wt(r,e,n){let o=t.audio_aac_au(v(r),e,n);return w(o)}function St(r,e){let n=t.audio_aac_config(v(r),e);return w(n)}function Rt(r,e){let n=t.audio_info(v(r),e);return w(n)}function Lt(r){let e=gt(r,t.__wbindgen_export4),n=p;return t.bench_f32_boundary(e,n)}function zt(r,e,n,o){let a=gt(r,t.__wbindgen_export4),c=p;return t.bench_piz_no_huffman(a,c,e,n,o)}function Dt(r,e,n){let o=R(r,t.__wbindgen_export4),a=p;return t.dci_code_full_depth(o,a,e,n)}function Ut(r,e,n){return t.dci_frame_cap(r,e,n)>>>0}function jt(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=I(e,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.dci_gpu_colour_patch(d,s,g,u,b);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=pt(n,o).slice();return t.__wbindgen_export3(n,o*2,2),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Bt(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=I(r,t.__wbindgen_export4,t.__wbindgen_export5),s=p;t.dci_gpu_colour_tables(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pt(){try{let o=t.__wbindgen_add_to_stack_pointer(-16);t.dci_last_pass_caps(o);var r=_().getInt32(o+0,!0),e=_().getInt32(o+4,!0),n=_t(r,e).slice();return t.__wbindgen_export3(r,e*4,4),n}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ct(r,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.dci_legal_rates(c,r,e);var n=_().getInt32(c+0,!0),o=_().getInt32(c+4,!0),a=_t(n,o).slice();return t.__wbindgen_export3(n,o*4,4),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function qt(r){return t.dci_mq_bench(r)>>>0}function Nt(r,e,n,o,a,c,i,d,s,g,u){try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=L(r,t.__wbindgen_export4),O=p,F=l(e,t.__wbindgen_export4),E=p,W=L(n,t.__wbindgen_export4),S=p,z=L(o,t.__wbindgen_export4),U=p,C=L(a,t.__wbindgen_export4),q=p,ot=L(c,t.__wbindgen_export4),it=p,at=L(i,t.__wbindgen_export4),ct=p,Mt=L(d,t.__wbindgen_export4),Et=p;t.dci_pack_tier1(k,M,O,F,E,W,S,z,U,C,q,ot,it,at,ct,Mt,Et,s,g,u);var b=_().getInt32(k+0,!0),x=_().getInt32(k+4,!0),m=_().getInt32(k+8,!0),y=_().getInt32(k+12,!0);if(y)throw w(m);var h=f(b,x).slice();return t.__wbindgen_export3(b,x*1,1),h}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ht(r,e){let n=t.dci_stage_rgba8(r,e);return w(n)}function Gt(r,e,n){let o=R(r,t.__wbindgen_export4),a=p;return t.dci_transform_only(o,a,e,n)}function Vt(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=l(e,t.__wbindgen_export4),b=p;t.decode_arriraw12_luma(d,s,g,u,b);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Kt(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_arriraw12_mxf(v(r),e,n,a,c);return w(i)}function Xt(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p,b=l(e,t.__wbindgen_export4),x=p;t.decode_arriraw12_preview(s,g,u,b,x,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Yt(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=l(e,t.__wbindgen_export4),b=p;t.decode_arriraw12_rgba(d,s,g,u,b);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $t(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_arriraw_luma(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Jt(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_arriraw_mxf(v(r),e,n,a,c);return w(i)}function Qt(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.decode_arriraw_preview(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Zt(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.decode_arriraw_preview_gray(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function te(r,e,n,o,a,c,i,d,s){try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=l(r,t.__wbindgen_export4),O=p;var g=B(s)?0:Y(s,t.__wbindgen_export4),u=p;t.decode_arriraw_preview_meta(k,M,O,e,n,o,a,c,i,d,g,u);var b=_().getInt32(k+0,!0),x=_().getInt32(k+4,!0),m=_().getInt32(k+8,!0),y=_().getInt32(k+12,!0);if(y)throw w(m);var h=f(b,x).slice();return t.__wbindgen_export3(b,x*1,1),h}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ee(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_arriraw_rgba(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ne(r,e,n,o,a,c,i,d){try{let h=t.__wbindgen_add_to_stack_pointer(-16),k=l(r,t.__wbindgen_export4),M=p;var s=B(d)?0:Y(d,t.__wbindgen_export4),g=p;t.decode_arriraw_rgba_meta(h,k,M,e,n,o,a,c,i,s,g);var u=_().getInt32(h+0,!0),b=_().getInt32(h+4,!0),x=_().getInt32(h+8,!0),m=_().getInt32(h+12,!0);if(m)throw w(x);var y=f(u,b).slice();return t.__wbindgen_export3(u,b*1,1),y}finally{t.__wbindgen_add_to_stack_pointer(16)}}function re(r,e,n,o){let a=t.decode_audio_pcm(v(r),e,n,o);return w(a)}function _e(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),i=p;t.decode_braw_gen5log(a,c,i);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function oe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_braw_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ie(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_braw_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ae(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_braw_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ce(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_cr3_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function de(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_crm(v(r),e,n,a,c);return w(i)}function se(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_dng_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_dng_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ge(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_dpx_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ue(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_dpx_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function we(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_exr_linear(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function be(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_exr_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function le(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_exr_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_jpeg_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_png_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ve(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_prores_band_rgba(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ie(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ye(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_prores_mxf(v(r),e,n,a,c);return w(i)}function me(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_prores_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function he(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_acescct(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ke(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ae(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_prores_raw_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Me(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_rec2020(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ee(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Te(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_rgb16(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Oe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_thumb_dc32(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function We(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_r3d_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Se(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_r3d_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Re(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p,b=l(e,t.__wbindgen_export4),x=p;t.decode_r3d_preview_clip(s,g,u,b,x,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Le(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_r3d_rgb16(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ze(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_r3d_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function De(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=l(e,t.__wbindgen_export4),b=p;t.decode_r3d_rgba_clip(d,s,g,u,b);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ue(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_tiff_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function je(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_tiff_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Be(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_vc3_band_rgba(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_vc3_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ce(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_vc3_mxf(v(r),e,n,a,c);return w(i)}function qe(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_vc3_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ne(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_vc3_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function He(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),i=p;t.decode_xocn_index_luma(a,c,i);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ge(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_xocn_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ve(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_xocn_mxf(v(r),e,n,a,c);return w(i)}function Ke(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_xocn_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Xe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_xocn_preview_rec709(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ye(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),i=p;t.decode_xocn_rgb16(a,c,i);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $e(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_xocn_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Je(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=R(r,t.__wbindgen_export4),b=p;t.encode_dci_j2c(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qe(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=R(r,t.__wbindgen_export4),m=p,y=I(n,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.encode_dci_j2c_rgb(b,x,m,e,y,h,o,a,c);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ze(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,m=I(e,t.__wbindgen_export4,t.__wbindgen_export5),y=p;t.encode_dci_j2c_rgba8(u,b,x,m,y,n,o,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function tn(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=I(o,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged(u,r,e,n,b,x,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function en(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=I(o,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged_modelled(u,r,e,n,b,x,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function nn(r,e,n,o,a,c,i,d,s,g,u,b,x,m,y){try{let E=t.__wbindgen_add_to_stack_pointer(-16),W=gt(r,t.__wbindgen_export4),S=p,z=I(a,t.__wbindgen_export4,t.__wbindgen_export5),U=p,C=I(c,t.__wbindgen_export4,t.__wbindgen_export5),q=p,ot=I(i,t.__wbindgen_export4,t.__wbindgen_export5),it=p,at=I(x,t.__wbindgen_export4,t.__wbindgen_export5),ct=p;t.encode_exr(E,W,S,e,n,o,z,U,C,q,ot,it,d,s,g,u,b,at,ct,m,y);var h=_().getInt32(E+0,!0),k=_().getInt32(E+4,!0),M=_().getInt32(E+8,!0),O=_().getInt32(E+12,!0);if(O)throw w(M);var F=f(h,k).slice();return t.__wbindgen_export3(h,k*1,1),F}finally{t.__wbindgen_add_to_stack_pointer(16)}}function rn(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p;t.encode_prores_4444_alpha_mov_rgba(u,b,x,e,n,o,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _n(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_4444_alpha_sample_q(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function on(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function an(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=R(r,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr_rgb16(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function cn(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=R(r,t.__wbindgen_export4),x=p,m=R(a,t.__wbindgen_export4),y=p;t.encode_prores_444_sample_cbr_rgb16_lut(u,b,x,e,n,o,m,y);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function dn(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p;t.encode_prores_mov_rgba(u,b,x,e,n,o,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function sn(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.encode_prores_rgba(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pn(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function gn(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=R(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr_rgb16(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function un(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=R(r,t.__wbindgen_export4),x=p,m=R(a,t.__wbindgen_export4),y=p;t.encode_prores_sample_cbr_rgb16_lut(u,b,x,e,n,o,m,y);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function wn(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_q(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function bn(r,e,n,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=I(r,t.__wbindgen_export4,t.__wbindgen_export5),y=p;t.exr_sequence_filename(x,m,y,e,n,o);var i=_().getInt32(x+0,!0),d=_().getInt32(x+4,!0),s=_().getInt32(x+8,!0),g=_().getInt32(x+12,!0),u=i,b=d;if(g)throw u=0,b=0,w(s);return a=u,c=b,T(u,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function ln(r,e,n,o,a,c,i,d){let s,g;try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=l(r,t.__wbindgen_export4),O=p,F=l(o,t.__wbindgen_export4),E=p,W=I(d,t.__wbindgen_export4,t.__wbindgen_export5),S=p;t.fit_sizing(k,M,O,e,n,F,E,a,c,i,W,S);var u=_().getInt32(k+0,!0),b=_().getInt32(k+4,!0),x=_().getInt32(k+8,!0),m=_().getInt32(k+12,!0),y=u,h=b;if(m)throw y=0,h=0,w(x);return s=y,g=h,T(y,h)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function fn(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_cr3(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function xn(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_dng(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function vn(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_dpx(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function In(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_exr(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function yn(r,e,n){let o=I(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.inspect_isobmff(v(r),e,o,a);return w(c)}function mn(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_tiff(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function hn(r,e){let n=t.inspect_wav(v(r),e);return w(n)}function kn(r,e){let n=t.is_arriraw12_mxf(v(r),e);return w(n)}function An(r,e){let n=t.is_arriraw_mxf(v(r),e);return w(n)}function Mn(r,e){let n=t.is_crm(v(r),e);return w(n)}function En(r,e){let n=t.is_prores_mxf(v(r),e);return w(n)}function Tn(r,e){let n=t.is_vc3_mxf(v(r),e);return w(n)}function On(r,e){let n=t.is_xavc_mxf(v(r),e);return w(n)}function Fn(r,e){let n=t.is_xocn_mxf(v(r),e);return w(n)}function Wn(r,e,n){let o=I(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.list_isobmff_segments(v(r),e,o,a);return w(c)}function Sn(r,e){let n=t.list_mxf_segments(v(r),e);return w(n)}function Rn(r,e){let n=I(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.list_r3d_frames(v(r),n,o);return w(a)}function Ln(r,e){let n=I(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.list_r3d_segments(v(r),n,o);return w(a)}function zn(r,e){let n=t.list_wav_segments(v(r),e);return w(n)}function Dn(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),m=p,y=L(e,t.__wbindgen_export4),h=p;t.mux_prores_4444_alpha_samples(b,x,m,y,h,n,o,a,c);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Un(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),m=p,y=L(e,t.__wbindgen_export4),h=p;t.mux_prores_samples(b,x,m,y,h,n,o,a,c);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function jn(r,e,n,o,a,c,i,d,s,g,u,b){try{let M=t.__wbindgen_add_to_stack_pointer(-16),O=l(r,t.__wbindgen_export4),F=p,E=L(e,t.__wbindgen_export4),W=p,S=I(i,t.__wbindgen_export4,t.__wbindgen_export5),z=p;t.mux_prores_samples_full(M,O,F,E,W,n,o,a,c,S,z,d,s,g,u,b);var x=_().getInt32(M+0,!0),m=_().getInt32(M+4,!0),y=_().getInt32(M+8,!0),h=_().getInt32(M+12,!0);if(h)throw w(y);var k=f(x,m).slice();return t.__wbindgen_export3(x,m*1,1),k}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Bn(r,e,n,o){let a=t.mxf_au_run(v(r),e,n,o);return w(a)}function Pn(r,e){let n=t.mxf_frame_index(v(r),e);return w(n)}function Cn(r,e){let n=t.mxf_gop_map(v(r),e);return w(n)}function qn(r,e){let n=t.mxf_h264_kind(v(r),e);return w(n)}function Nn(r,e){let n,o;try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,m=I(e,t.__wbindgen_export4,t.__wbindgen_export5),y=p;t.plan_isobmff_trim(u,b,x,m,y);var a=_().getInt32(u+0,!0),c=_().getInt32(u+4,!0),i=_().getInt32(u+8,!0),d=_().getInt32(u+12,!0),s=a,g=c;if(d)throw s=0,g=0,w(i);return n=s,o=g,T(s,g)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,o,1)}}function Hn(r,e,n,o,a){let c=I(a,t.__wbindgen_export4,t.__wbindgen_export5),i=p,d=t.plan_isobmff_trim_reader(v(r),e,n,o,c,i);return w(d)}function Gn(r){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=I(r,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.plan_mxf_compact_trim(g,u,b);var o=_().getInt32(g+0,!0),a=_().getInt32(g+4,!0),c=_().getInt32(g+8,!0),i=_().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,w(c);return e=d,n=s,T(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Vn(r,e,n,o){let a=t.plan_mxf_trim(v(r),e,n,o);return w(a)}function Kn(r,e,n,o,a,c,i,d){let s,g;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=l(r,t.__wbindgen_export4),y=p,h=l(e,t.__wbindgen_export4),k=p,M=l(n,t.__wbindgen_export4),O=p,F=l(o,t.__wbindgen_export4),E=p,W=Y(a,t.__wbindgen_export4),S=p,z=Y(c,t.__wbindgen_export4),U=p,C=Y(i,t.__wbindgen_export4),q=p;t.plan_r3d_compact(x,m,y,h,k,M,O,F,E,W,S,z,U,C,q,d);var u=_().getInt32(x+0,!0),b=_().getInt32(x+4,!0);return s=u,g=b,T(u,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function Xn(r,e,n,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=l(r,t.__wbindgen_export4),y=p;t.plan_wav_trim(x,m,y,e,n,o);var i=_().getInt32(x+0,!0),d=_().getInt32(x+4,!0),s=_().getInt32(x+8,!0),g=_().getInt32(x+12,!0),u=i,b=d;if(g)throw u=0,b=0,w(s);return a=u,c=b,T(u,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function Yn(r,e,n,o,a){let c=t.plan_wav_trim_reader(v(r),e,n,o,a);return w(c)}function $n(r,e,n,o){let a=I(n,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=I(o,t.__wbindgen_export4,t.__wbindgen_export5),d=p,s=t.prepare_isobmff(v(r),e,a,c,i,d);return w(s)}function Jn(r,e,n){let o=I(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.prepare_mxf(v(r),e,o,a);return w(c)}function Qn(r,e,n){let o=I(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=I(n,t.__wbindgen_export4,t.__wbindgen_export5),i=p,d=t.prepare_r3d(v(r),o,a,c,i);return w(d)}function Zn(r,e,n,o){let a=I(n,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.prepare_wav(v(r),e,a,c,o);return w(i)}function tr(r){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.probe_mov(g,u,b);var o=_().getInt32(g+0,!0),a=_().getInt32(g+4,!0),c=_().getInt32(g+8,!0),i=_().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,w(c);return e=d,n=s,T(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function er(r,e){let n=t.probe_mxf(v(r),e);return w(n)}function nr(r,e){let n=I(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.probe_r3d(v(r),n,o);return w(a)}function rr(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.prores_band_info(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=_t(e,n).slice();return t.__wbindgen_export3(e,n*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _r(){t.prores_reset_rate_control()}function or(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),i=p;t.r3d_gpu_develop_params(a,c,i);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ir(r){let e=l(r,t.__wbindgen_export4),n=p;return t.r3d_is_helium(e,n)!==0}function ar(r){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.read_arriraw_fcs(g,u,b);var o=_().getInt32(g+0,!0),a=_().getInt32(g+4,!0),c=_().getInt32(g+8,!0),i=_().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,w(c);return e=d,n=s,T(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function cr(r,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.read_arriraw_unit_correction(c,i,d,e);var n=_().getInt32(c+0,!0),o=_().getInt32(c+4,!0),a=Mr(n,o).slice();return t.__wbindgen_export3(n,o*8,8),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function dr(r,e,n,o,a,c,i){let d,s;try{let h=t.__wbindgen_add_to_stack_pointer(-16),k=l(r,t.__wbindgen_export4),M=p,O=l(o,t.__wbindgen_export4),F=p,E=I(i,t.__wbindgen_export4,t.__wbindgen_export5),W=p;t.recover_reframe(h,k,M,e,n,O,F,a,c,E,W);var g=_().getInt32(h+0,!0),u=_().getInt32(h+4,!0),b=_().getInt32(h+8,!0),x=_().getInt32(h+12,!0),m=g,y=u;if(x)throw m=0,y=0,w(b);return d=m,s=y,T(m,y)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(d,s,1)}}function sr(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=R(r,t.__wbindgen_export4),m=p,y=I(c,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.resample_rgba16(b,x,m,e,n,o,a,y,h);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=pt(i,d).slice();return t.__wbindgen_export3(i,d*2,2),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pr(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),m=p,y=I(c,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.resample_rgba8(b,x,m,e,n,o,a,y,h);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function gr(){t.reset_dci_rate_state()}function ur(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.resize_luma_area(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function wr(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,m=I(a,t.__wbindgen_export4,t.__wbindgen_export5),y=p;t.rgba8_to_xyz12(u,b,x,e,n,o,m,y);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=pt(c,i).slice();return t.__wbindgen_export3(c,i*2,2),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function br(r,e,n,o){let a=I(e,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=I(n,t.__wbindgen_export4,t.__wbindgen_export5),d=p,s=I(o,t.__wbindgen_export4,t.__wbindgen_export5),g=p,u=t.trim_r3d(v(r),a,c,i,d,s,g);return w(u)}function lr(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.vc3_band_info(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=_t(e,n).slice();return t.__wbindgen_export3(e,n*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fr(r,e,n){let o=I(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.video_frame_index_isobmff_reader(v(r),e,o,a);return w(c)}function xr(r,e,n){let o=t.xavc_au(v(r),e,n);return w(o)}function vr(r,e){let n=t.xavc_frame_count(v(r),e);return w(n)}function Ir(r,e){let n=t.xocn_frame_count(v(r),e);return w(n)}function yr(r){let e=l(r,t.__wbindgen_export4),n=p;return t.xocn_index_prefix_len(e,n)>>>0}function mr(r){let e=l(r,t.__wbindgen_export4),n=p;return t.xocn_preview_prefix_len(e,n)>>>0}function It(){return{__proto__:null,"./media_core_bg.js":{__proto__:null,__wbg___wbindgen_is_function_acc5528be2b923f2:function(e){return typeof A(e)=="function"},__wbg___wbindgen_is_undefined_721f8decd50c87a3:function(e){return A(e)===void 0},__wbg___wbindgen_throw_ea4887a5f8f9a9db:function(e,n){throw new Error(T(e,n))},__wbg__wbg_cb_unref_33c39e13d73b25f6:function(e){A(e)._wbg_cb_unref()},__wbg_call_0e855b388e315e17:function(){return dt(function(e,n,o,a){let c=A(e).call(A(n),A(o),A(a));return v(c)},arguments)},__wbg_call_5575218572ead796:function(){return dt(function(e,n,o){let a=A(e).call(A(n),A(o));return v(a)},arguments)},__wbg_call_dd0f909cbc9405d0:function(){return dt(function(e,n,o,a,c){let i=A(e).call(A(n),A(o),A(a),A(c));return v(i)},arguments)},__wbg_length_589238bdcf171f0e:function(e){return A(e).length},__wbg_new_81880fb5002cb255:function(e){let n=new Uint8Array(A(e));return v(n)},__wbg_new_typed_00a409eb4ec4f2d9:function(e,n){try{var o={a:e,b:n},a=(i,d)=>{let s=o.a;o.a=0;try{return kr(s,o.b,i,d)}finally{o.a=s}};let c=new Promise(a);return v(c)}finally{o.a=0}},__wbg_prototypesetcall_d721637c7ca66eb8:function(e,n,o){Uint8Array.prototype.set.call(f(e,n),A(o))},__wbg_queueMicrotask_1c9b3800e321a967:function(e){let n=A(e).queueMicrotask;return v(n)},__wbg_queueMicrotask_311744e534a929a3:function(e){queueMicrotask(A(e))},__wbg_resolve_d82363d90af6928a:function(e){let n=Promise.resolve(A(e));return v(n)},__wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938:function(){let e=typeof globalThis>"u"?null:globalThis;return B(e)?0:v(e)},__wbg_static_accessor_GLOBAL_ce44e66a4935da8c:function(){let e=typeof global>"u"?null:global;return B(e)?0:v(e)},__wbg_static_accessor_SELF_44f6e0cb5e67cdad:function(){let e=typeof self>"u"?null:self;return B(e)?0:v(e)},__wbg_static_accessor_WINDOW_168f178805d978fe:function(){let e=typeof window>"u"?null:window;return B(e)?0:v(e)},__wbg_then_05edfc8a4fea5106:function(e,n,o){let a=A(e).then(A(n),A(o));return v(a)},__wbg_then_591b6b3a75ee817a:function(e,n){let o=A(e).then(A(n));return v(o)},__wbindgen_cast_0000000000000001:function(e,n){let o=Tr(e,n,hr);return v(o)},__wbindgen_cast_0000000000000002:function(e){return v(e)},__wbindgen_cast_0000000000000003:function(e,n){let o=f(e,n);return v(o)},__wbindgen_cast_0000000000000004:function(e,n){let o=T(e,n);return v(o)},__wbindgen_cast_0000000000000005:function(e,n){var o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),v(o)},__wbindgen_object_clone_ref:function(e){let n=A(e);return v(n)},__wbindgen_object_drop_ref:function(e){w(e)}}}}function hr(r,e,n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.__wasm_bindgen_func_elem_1768(c,r,e,v(n));var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);if(a)throw w(o)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function kr(r,e,n,o){t.__wasm_bindgen_func_elem_1783(r,e,v(n),v(o))}var wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_exrbench_free(r,1)),bt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_exrstreamencoder_free(r,1)),lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresbench_free(r,1)),ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresmovencoder_free(r,1)),xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresmovwriter_free(r,1));function v(r){X===D.length&&D.push(D.length+1);let e=X;return X=D[e],D[e]=r,e}var vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbindgen_export2(r.a,r.b));function Ar(r){r<1028||(D[r]=X,X=r)}function Mr(r,e){return r=r>>>0,yt().subarray(r/8,r/8+e)}function pt(r,e){return r=r>>>0,mt().subarray(r/2,r/2+e)}function _t(r,e){return r=r>>>0,ht().subarray(r/4,r/4+e)}function f(r,e){return r=r>>>0,P().subarray(r/1,r/1+e)}var j=null;function _(){return(j===null||j.buffer.detached===!0||j.buffer.detached===void 0&&j.buffer!==t.memory.buffer)&&(j=new DataView(t.memory.buffer)),j}var N=null;function Er(){return(N===null||N.byteLength===0)&&(N=new Float32Array(t.memory.buffer)),N}var H=null;function yt(){return(H===null||H.byteLength===0)&&(H=new Float64Array(t.memory.buffer)),H}function T(r,e){return Fr(r>>>0,e)}var G=null;function mt(){return(G===null||G.byteLength===0)&&(G=new Uint16Array(t.memory.buffer)),G}var V=null;function ht(){return(V===null||V.byteLength===0)&&(V=new Uint32Array(t.memory.buffer)),V}var K=null;function P(){return(K===null||K.byteLength===0)&&(K=new Uint8Array(t.memory.buffer)),K}function A(r){return D[r]}function dt(r,e){try{return r.apply(this,e)}catch(n){t.__wbindgen_export(v(n))}}var D=new Array(1024).fill(void 0);D.push(void 0,null,!0,!1);var X=D.length;function B(r){return r==null}function Tr(r,e,n){let o={a:r,b:e,cnt:1},a=(...c)=>{o.cnt++;let i=o.a;o.a=0;try{return n(i,o.b,...c)}finally{o.a=i,a._wbg_cb_unref()}};return a._wbg_cb_unref=()=>{--o.cnt===0&&(t.__wbindgen_export2(o.a,o.b),o.a=0,vt.unregister(o))},vt.register(a,o,o),a}function R(r,e){let n=e(r.length*2,2)>>>0;return mt().set(r,n/2),p=r.length,n}function L(r,e){let n=e(r.length*4,4)>>>0;return ht().set(r,n/4),p=r.length,n}function l(r,e){let n=e(r.length*1,1)>>>0;return P().set(r,n/1),p=r.length,n}function gt(r,e){let n=e(r.length*4,4)>>>0;return Er().set(r,n/4),p=r.length,n}function Y(r,e){let n=e(r.length*8,8)>>>0;return yt().set(r,n/8),p=r.length,n}function I(r,e,n){if(n===void 0){let d=$.encode(r),s=e(d.length,1)>>>0;return P().subarray(s,s+d.length).set(d),p=d.length,s}let o=r.length,a=e(o,1)>>>0,c=P(),i=0;for(;i<o;i++){let d=r.charCodeAt(i);if(d>127)break;c[a+i]=d}if(i!==o){i!==0&&(r=r.slice(i)),a=n(a,o,o=i+r.length*3,1)>>>0;let d=P().subarray(a+i,a+o),s=$.encodeInto(r,d);i+=s.written,a=n(a,o,i,1)>>>0}return p=i,a}function w(r){let e=A(r);return Ar(r),e}var rt=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});rt.decode();var Or=2146435072,st=0;function Fr(r,e){return st+=e,st>=Or&&(rt=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),rt.decode(),st=e),rt.decode(P().subarray(r,r+e))}var $=new TextEncoder;"encodeInto"in $||($.encodeInto=function(r,e){let n=$.encode(r);return e.set(n),{read:r.length,written:n.length}});var p=0,Wr,Sr,t;function kt(r,e){return Sr=r,t=r.exports,Wr=e,j=null,N=null,H=null,G=null,V=null,K=null,t}async function Rr(r,e){if(typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,e)}catch(a){if(r.ok&&n(r.type)&&r.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",a);else throw a}let o=await r.arrayBuffer();return await WebAssembly.instantiate(o,e)}else{let o=await WebAssembly.instantiate(r,e);return o instanceof WebAssembly.Instance?{instance:o,module:r}:o}function n(o){switch(o){case"basic":case"cors":case"default":return!0}return!1}}function Lr(r){if(t!==void 0)return t;r!==void 0&&(Object.getPrototypeOf(r)===Object.prototype?{module:r}=r:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let e=It();r instanceof WebAssembly.Module||(r=new WebAssembly.Module(r));let n=new WebAssembly.Instance(r,e);return kt(n,r)}async function nt(r){if(t!==void 0)return t;r!==void 0&&(Object.getPrototypeOf(r)===Object.prototype?{module_or_path:r}=r:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),r===void 0&&(r=new URL("media_core_bg.wasm",import.meta.url));let e=It();(typeof r=="string"||typeof Request=="function"&&r instanceof Request||typeof URL=="function"&&r instanceof URL)&&(r=fetch(r));let{instance:n,module:o}=await Rr(await r,e);return kt(n,o)}var Ur=import.meta.env?.MODE==="development"?["conform.tools","localhost"]:["conform.tools"];var ut=null,zr=!1;function Dr(r){return ut||(ut=(async()=>{if(r!==void 0)return nt(r);if(typeof process<"u"&&process.versions?.node){let n="node:fs/promises",{readFile:o}=await import(n),a=await o(new URL("./wasm/media_core_bg.wasm",import.meta.url));return nt({module_or_path:a})}let{default:e}=await import("./media_core_bg-MEORQOCQ.js");return nt({module_or_path:e})})().then(e=>(zr=!0,e))),ut}function qr(){return Dr()}export{Ft as a,Rt as b,Kt as c,$t as d,Jt as e,Zt as f,re as g,_e as h,oe as i,ie as j,ae as k,ce as l,de as m,pe as n,ue as o,le as p,fe as q,xe as r,Ie as s,ye as t,me as u,he as v,ke as w,Ae as x,Ee as y,Te as z,Oe as A,Fe as B,We as C,Se as D,Re as E,Le as F,De as G,je as H,Pe as I,Ce as J,qe as K,Ne as L,He as M,Ge as N,Ve as O,Ke as P,Xe as Q,ln as R,fn as S,xn as T,vn as U,In as V,yn as W,mn as X,hn as Y,kn as Z,An as _,En as $,Tn as aa,Fn as ba,Wn as ca,Sn as da,Rn as ea,Ln as fa,zn as ga,Bn as ha,Pn as ia,Cn as ja,Hn as ka,Vn as la,Yn as ma,$n as na,Jn as oa,Zn as pa,er as qa,nr as ra,or as sa,ir as ta,dr as ua,ur as va,br as wa,fr as xa,yr as ya,mr as za,At as Aa,Dr as Ba,qr as Ca};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{G as b,S as w}from"./chunk-C2ESM27Z.js";import{c as m,d as _}from"./chunk-P7OVDUA5.js";import{i as g}from"./chunk-BK62N3ID.js";var f={prproj:"prproj","resolve-drt":"drt",aaf:"aaf",avb:"avb",otio:"otio","flame-archive":"flame","resolve-fcpxml":"fcpxml","finalcut-fcpxml":"fcpxml","fcp-xml":"xmeml","premiere-xml":"xmeml","resolve-xml":"xmeml"};function P(e){return e in f}var p=null;function l(){return p||(p=E()),p}async function E(){let e=await import("./timeline_core-VK2ZWPCO.js"),r=(await import("./timeline_core_bg-DFKQ7XOU.js")).default;return await e.default({module_or_path:r}),e}async function A(e,r){let o=f[r];if(!o)throw new Error(`timelineInspect: no Rust engine for format '${r}'`);let t=await l(),i=e.name.replace(/\.[^.]+$/,""),n=(R,...M)=>t[R](...M),s;switch(o){case"prproj":s=n("inspect_prproj_json",await a(e));break;case"aaf":s=n("inspect_aaf_json",await a(e));break;case"avb":s=n("inspect_avb_json",await a(e));break;case"flame":s=n("inspect_flame_json",await a(e),i);break;case"drt":s=n("inspect_drt_json",await y(e));break;case"otio":s=n("inspect_otio_json",await e.text(),i);break;case"fcpxml":s=n("inspect_fcpxml_json",await e.text(),i);break;case"xmeml":s=n("inspect_xmeml_json",await e.text(),i);break}return F(s)}var x=12*1024*1024,d=!1;function T(e){d=e}var h=null,k=8e3;async function I(){!h||d||await Promise.race([h,new Promise(e=>setTimeout(e,k))])}function c(e,r,o){if(d||e.length<=x)return e;let t=(e.length/1048576).toFixed(0),i=o?.length??0;throw i===1?new Error(`This ${r.toUpperCase()} timeline extracts to ${t} MB, past what our conversion server can hold in one pass (the ceiling is ours, not your file \u2014 a single long timeline can exceed it on its own). Get in touch and we will convert it for you while we lift the limit.`):new Error(`This ${r.toUpperCase()} selection${i?` (${i} sequences)`:""} extracts to ${t} MB, past what our conversion server can hold in one pass. Convert a few sequences at a time \u2014 one long timeline is usually about ${(x/1048576).toFixed(0)} MB. If a single timeline still will not go through, get in touch and we will convert it for you.`)}async function j(e,r,o){let t=f[r];if(!t)throw new Error(`timelineExtract: no Rust engine for format '${r}'`);switch(await I(),t){case"otio":case"fcpxml":case"xmeml":return{fmt:t,extract:await e.text()};case"drt":{let n=(await l()).extract_drt_json(await y(e));return{fmt:t,extract:c(n,t,o)}}case"prproj":{let i=await l(),n=JSON.stringify(o??[]),s=i.extract_prproj_json(await a(e),n);return{fmt:t,extract:c(s,t,o)}}case"avb":{let i=await l(),n=JSON.stringify(o??[]),s=i.extract_avb_json(await a(e),n);return{fmt:t,extract:c(s,t,o)}}case"aaf":case"flame":{let n=(await l())[`extract_${t}_json`](await a(e));return{fmt:t,extract:c(n,t,o)}}}}async function a(e){return new Uint8Array(await e.arrayBuffer())}async function y(e){let r=w(await a(e)),o={};for(let[t,i]of Object.entries(r))t.toLowerCase().endsWith(".xml")&&(o[t]=b(i));return JSON.stringify(o)}function F(e){let r=JSON.parse(e),o=Array.isArray(r)?r:r?.timelines??r?.sequences??[],t=o.filter(n=>typeof n=="object"&&n!==null),i=o.map(n=>{if(typeof n=="string")return n;let s=n;return s?.name??s?.title??s?.id??""}).filter(n=>!!n);return{names:Array.from(new Set(i)),timelines:t}}var S=/^(.+)_(\d{3})\.R3D$/i;function u(e){let o=(e.split(/[/\\]/).pop()??e).match(S);return o?{clipBase:o[1],partNumber:parseInt(o[2],10)}:null}function C(e){return u(e)!==null}function U(e,r){let o=u(e);if(!o)return[];let t=[];for(let i of r){let n=u(i);n&&n.clipBase===o.clipBase&&t.push({name:i,n:n.partNumber})}return t.sort((i,n)=>i.n-n.n),t.map(i=>i.name)}async function L(e){if(!m(e.name))return null;try{return await g(_(e),{verb:"inspect"})}catch(r){return console.warn(`[probeMedia] ${e.name} probe failed:`,r),null}}var z={reelName:!1,fileName:!0,fileNameMode:"loose",fileExtensions:"",totalDuration:!1,resolution:!1,bitDepth:!1,fileFormat:!1,codec:!1,mediaUmid:!1};var K="X-Write-Issues";function Q(e){if(!e)return[];try{let r=JSON.parse(decodeURIComponent(e));return Array.isArray(r)?r:[]}catch{return[]}}export{u as a,C as b,U as c,z as d,P as e,A as f,T as g,j as h,K as i,Q as j,L as k};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{b as i}from"./chunk-UCMNH6Q6.js";function m(r){return{filename:r.name,fileSize:r.size,async read(e,t){let n=Math.min(e+t,r.size),a;for(let o=0;o<4;o++)try{return new Uint8Array(await r.slice(e,n).arrayBuffer())}catch(s){a=s,await new Promise(l=>setTimeout(l,25*(o+1)))}throw a}}}function f(r,e){return{filename:r,fileSize:e.fileSize,read:(t,n)=>e.read(t,n)}}function u(r){return i(r)?.flavor??null}function d(r){let e=u(r.name);if(!e)throw new Error(`sourceFromFile: unrecognized media format for '${r.name}'`);return{parts:[m(r)],format:e}}function F(r){if(r.length===0)throw new Error("sourceFromFiles: no parts");let e=u(r[0].name);if(!e)throw new Error(`sourceFromFiles: unrecognized media format for '${r[0].name}'`);return{parts:r.map(m),format:e}}function p(r,e){if(e.length===0)throw new Error("sourceFromParts: no parts");return{parts:e,format:r}}export{m as a,f as b,u as c,d,F as e,p as f};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- var h=Object.create;var f=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty;var m=(a=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(a,{get:(b,c)=>(typeof require<"u"?require:b)[c]}):a)(function(a){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')});var n=(a,b)=>()=>(a&&(b=a(a=0)),b);var o=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports),p=(a,b)=>{for(var c in b)f(a,c,{get:b[c],enumerable:!0})},e=(a,b,c,g)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of j(b))!l.call(a,d)&&d!==c&&f(a,d,{get:()=>b[d],enumerable:!(g=i(b,d))||g.enumerable});return a},q=(a,b,c)=>(e(a,b,"default"),c&&e(c,b,"default")),r=(a,b,c)=>(c=a!=null?h(k(a)):{},e(b||!a||!a.__esModule?f(c,"default",{value:a,enumerable:!0}):c,a)),s=a=>e(f({},"__esModule",{value:!0}),a);export{m as a,n as b,o as c,p as d,q as e,r as f,s as g};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- var B=(t,n)=>String.fromCharCode(t[n],t[n+1],t[n+2],t[n+3]),I=t=>t.toString(16).padStart(2,"0");function m(t,n,c,a){let o=new DataView(t.buffer,t.byteOffset,t.byteLength),e=n;for(;e+8<=c;){let s=o.getUint32(e),u=8;if(s===1?(s=Number(o.getBigUint64(e+8)),u=16):s===0&&(s=c-e),B(t,e+4)===a)return[e+u,e+s];if(s<u)break;e+=s}return null}function T(t,n,c,a){let o=[n,c];for(let e of a){if(!o)return null;o=m(t,o[0],o[1],e)}return o}function H(t,n,c){let a=m(t,n[0],n[1],"stts");if(!a)return new Int32Array(0);let o=c.getUint32(a[0]+4),e=[],s=0,u=a[0]+8;for(let r=0;r<o;r++){let f=c.getUint32(u),h=c.getInt32(u+4);for(let l=0;l<f;l++)e.push(s),s+=h;u+=8}let i=e.length,U=m(t,n[0],n[1],"ctts"),g=new Float64Array(i);for(let r=0;r<i;r++)g[r]=e[r];if(U){let r=c.getUint32(U[0]+4),f=U[0]+8,h=0;for(let l=0;l<r&&h<i;l++){let k=c.getUint32(f),w=c.getInt32(f+4);for(let C=0;C<k&&h<i;C++)g[h++]+=w;f+=8}}let b=Array.from({length:i},(r,f)=>f).sort((r,f)=>g[r]-g[f]||r-f),A=new Int32Array(i);for(let r=0;r<i;r++)A[b[r]]=r;return A}function S(t){let n=new DataView(t.buffer,t.byteOffset,t.byteLength),c=m(t,0,t.length,"moov"),[a,o]=c??[0,t.length],e=a;for(;e+8<=o;){let s=n.getUint32(e),u=8;if(s===1?(s=Number(n.getBigUint64(e+8)),u=16):s===0&&(s=o-e),B(t,e+4)==="trak"){let i=T(t,e+u,e+s,["mdia","minf","stbl"]);if(i){let U=m(t,i[0],i[1],"stsd");if(U){let g=U[0]+8,b=B(t,g+4);if(b==="avc1"||b==="avc3"||b==="hvc1"||b==="hev1"){let A=n.getUint32(g),r=g+8+78,f=b.startsWith("hv")||b.startsWith("he"),h=m(t,r,g+A,f?"hvcC":"avcC");if(!h)return null;let l=t.subarray(h[0],h[1]),k=f?"hvc1.1.6.L93.B0":`avc1.${I(l[1])}${I(l[2])}${I(l[3])}`,w=H(t,i,n),C=w.length,x=m(t,i[0],i[1],"stss"),d=[];if(x){let y=n.getUint32(x[0]+4);for(let p=0;p<y;p++)d.push(n.getUint32(x[0]+8+p*4)-1)}else for(let y=0;y<C;y++)d.push(y);return(d.length===0||d[0]!==0)&&d.unshift(0),d.sort((y,p)=>y-p),{codec:k,description:l,keyframes:d,decodeToPres:w}}}}}if(s<u)break;e+=s}return null}export{S as a};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a as c,b as m}from"./chunk-DKGGJM6Z.js";import{Aa as u,Ca as n,H as f,X as s}from"./chunk-JBSH4AK3.js";async function y(r){await n();let e=s(r);return e==="null"?null:JSON.parse(e)}async function d(r){await n();let e;try{e=f(r)}catch{return null}if(e.length<8)return null;let t=new DataView(e.buffer,e.byteOffset,e.byteLength),i=t.getUint32(0,!0),a=t.getUint32(4,!0),o=i*a*4;return e.length<8+o?null:{width:i,height:a,rgba:new Uint8ClampedArray(e.subarray(8,8+o))}}async function b(r,e=8){await n();let t=m(u,"decode_tiff_preview");if(!t)return d(r);try{return c(t(r,e))}catch{return null}}export{y as a,d as b,b as c};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- function p(e,r,l,m){let u=new DataView(e.buffer,e.byteOffset,e.byteLength),t=r;for(;t+8<=l;){let n=u.getUint32(t),s=String.fromCharCode(e[t+4],e[t+5],e[t+6],e[t+7]),f=8;if(n===1){let g=u.getUint32(t+8),k=u.getUint32(t+12);n=g*2**32+k,f=16}else n===0&&(n=l-t);if(n<f||t+n>l)break;m(s,t+f,t+n),t+=n}}var C=new Set(["moov","trak","mdia","minf","stbl"]);function T(e){let r=new DataView(e.buffer,e.byteOffset,e.byteLength),l=null,m=(t,n)=>{let s={},f=!1,g=(k,d)=>{p(e,k,d,(b,a,S)=>{if(C.has(b)){g(a,S);return}switch(b){case"hdlr":{String.fromCharCode(e[a+8],e[a+9],e[a+10],e[a+11])==="vide"&&(f=!0);break}case"stsd":{let i=a+8;s.codec=String.fromCharCode(e[i+4],e[i+5],e[i+6],e[i+7]),s.width=r.getUint16(i+32),s.height=r.getUint16(i+34);break}case"stsz":{let i=r.getUint32(a+4),c=r.getUint32(a+8),o=[];if(i===0)for(let h=0;h<c;h++)o.push(r.getUint32(a+12+h*4));else for(let h=0;h<c;h++)o.push(i);s.sampleSizes=o;break}case"stco":{let i=r.getUint32(a+4),c=[];for(let o=0;o<i;o++)c.push(r.getUint32(a+8+o*4));s.chunkOffsets=c;break}case"co64":{let i=r.getUint32(a+4),c=[];for(let o=0;o<i;o++){let h=r.getUint32(a+8+o*8),U=r.getUint32(a+12+o*8);c.push(h*2**32+U)}s.chunkOffsets=c;break}case"stsc":{let i=r.getUint32(a+4),c=[];for(let o=0;o<i;o++)c.push({firstChunk:r.getUint32(a+8+o*12),samplesPerChunk:r.getUint32(a+8+o*12+4),descIdx:r.getUint32(a+8+o*12+8)});s.sampleToChunk=c;break}}})};g(t,n),f&&s.chunkOffsets&&s.sampleSizes&&s.sampleToChunk&&(l=s)};if(((t,n)=>{p(e,t,n,(s,f,g)=>{s==="moov"&&p(e,f,g,(k,d,b)=>{k==="trak"&&m(d,b)})})})(0,e.length),!l)throw new Error("could not find a video sample table");return l}function w(e){let r=[],l=0;for(let m=0;m<e.chunkOffsets.length;m++){let u=1;for(let n=0;n<e.sampleToChunk.length;n++)m+1>=e.sampleToChunk[n].firstChunk&&(u=e.sampleToChunk[n].samplesPerChunk);let t=e.chunkOffsets[m];for(let n=0;n<u&&l<e.sampleSizes.length;n++){let s=e.sampleSizes[l];r.push({offset:t,size:s}),t+=s,l++}}return r}export{T as a,w as b};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- async function s(r){let o=0,i=r.fileSize;for(;o+8<=i;){let e=await r.read(o,Math.min(16,i-o)),n=new DataView(e.buffer,e.byteOffset,e.byteLength),t=n.getUint32(0),a=8;if(t===1?(t=Number(n.getBigUint64(8)),a=16):t===0&&(t=i-o),String.fromCharCode(e[4],e[5],e[6],e[7])==="moov")return r.read(o,t);if(t<a)break;o+=t}throw new Error("moov atom not found (not a QuickTime/ProRes .mov?)")}export{s as a};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- var r={png:"native",jpg:"native",jpeg:"native",gif:"native",webp:"native",avif:"native",bmp:"native",dpx:"wasm-decoder",tif:"wasm-decoder",tiff:"wasm-decoder",exr:"wasm-decoder",dng:"wasm-decoder",cr3:"wasm-decoder",psd:"none",tga:"none",heic:"none",heif:"none",pict:"none",pct:"none"};function l(e){let t=(e??"").toLowerCase();return Object.prototype.hasOwnProperty.call(r,t)?r[t]:null}var i=[{exts:["mov","mp4","m4v"],family:"isobmff",flavor:"mov",trimSupported:!0,inspectSupported:!0,protection:"public"},{exts:["crm"],family:"isobmff",flavor:"crm",trimSupported:!0,inspectSupported:!0,protection:"public"},{exts:["braw"],family:"isobmff",flavor:"braw",trimSupported:!0,inspectSupported:!0,protection:"public"},{exts:["mxf"],family:"mxf",flavor:"mxf",trimSupported:!0,inspectSupported:!0,protection:"proprietary"},{exts:["wav","wave","bwf"],family:"riff",flavor:"wav",trimSupported:!0,inspectSupported:!0,protection:"public"},{exts:["r3d"],family:"r3d",flavor:"r3d",trimSupported:!0,inspectSupported:!0,protection:"proprietary"},{exts:Object.keys(r),family:"still",flavor:"still",trimSupported:!1,inspectSupported:!0,protection:"public"}];function n(e){return(e.split(".").pop()??"").toLowerCase()}function p(e){let t=n(e);return t?i.find(o=>o.exts.includes(t))??null:null}function s(e){let t=p(e);return!!t&&t.trimSupported}export{l as a,p as b,s as c};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a as s,b as m}from"./chunk-DKGGJM6Z.js";import{Aa as d,Ca as n,U as c,o as u}from"./chunk-JBSH4AK3.js";async function x(r){await n();let e=c(r);return e==="null"?null:JSON.parse(e)}async function p(r){await n();let e;try{e=u(r)}catch{return null}if(e.length<8)return null;let t=new DataView(e.buffer,e.byteOffset,e.byteLength),a=t.getUint32(0,!0),i=t.getUint32(4,!0),o=a*i*4;return e.length<8+o?null:{width:a,height:i,rgba:new Uint8ClampedArray(e.subarray(8,8+o))}}async function y(r,e=8){await n();let t=m(d,"decode_dpx_preview");if(!t)return p(r);try{return s(t(r,e))}catch{return null}}export{x as a,p as b,y as c};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- var s=288,u=8;function A(r,o=288){let t=o*o,l=new Float32Array(r.length*3*t);for(let n=0;n<r.length;n++){let a=r[n],c=n*3*t;for(let e=0;e<t;e++)l[c+e]=a[e*4]/255,l[c+t+e]=a[e*4+1]/255,l[c+2*t+e]=a[e*4+2]/255}return l}function i(r,o){let t=0,l=Math.min(r.length,o.length);for(let n=0;n<l;n++)t+=r[n]*o[n];return t}function p(r){let o=0;for(let t=0;t<r.length;t++)o+=r[t]*r[t];return Math.sqrt(o)}export{s as a,u as b,A as c,i as d,p as e};
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{H as h,R as c,a as m,j as w,k as $,o as i,s as b,u as v,v as R,y as k}from"./chunk-D5DEQ467.js";import"./chunk-PSANHDZM.js";var y="conformtools-statusline";function x(e,n){let s=e.statusLine;return s&&!String(s.command??"").includes(y)?{settings:e,result:"kept"}:s?.command===n?{settings:e,result:"updated"}:{settings:{...e,statusLine:{type:"command",command:n,padding:0}},result:s?"updated":"installed"}}async function P(){let e=new URL(import.meta.url),n=m(new URL("./statusline.js",e));if(await i(n)){await R(w());let t=c(w(),`${y}.js`);return await k(n,t),`node "${t}"`}let s=m(new URL("../adapters/statusline.ts",e));return await i(s)?`deno run --allow-read --allow-env --no-check "${s}" ${y}`:null}function L(e,n){let s=e.permissions&&typeof e.permissions=="object"?e.permissions:{},t=Array.isArray(s.allow)?s.allow.filter(o=>typeof o=="string"):[];return t.includes(n)?{settings:e,added:!1}:{settings:{...e,permissions:{...s,allow:[...t,n]}},added:!0}}async function U(e={}){let n=e.server??"conformtools",s=`mcp__${n}`,t=e.settingsPath??c($(),".claude","settings.json"),o={};if(await i(t)){let a=await b(t);try{o=a.trim()?JSON.parse(a):{}}catch(r){throw new Error(`${t} is not valid JSON (${r instanceof Error?r.message:r}); fix it first, nothing was changed`)}}let p=L(o,s),d=p.settings,l="skipped",C=p.added,S=e.statusline===!1?null:await P();if(S){let a=x(d,S);d=a.settings,l=a.result}let f;(C||l==="installed"||l==="updated"&&d!==p.settings)&&(await i(t)?(f=`${t}.conformtools-backup`,await k(t,f)):await Deno.mkdir(c(t,".."),{recursive:!0}),await v(t,JSON.stringify(d,null,2)+`
4
- `));let u="skipped",g;if(e.register!==!1)try{if((await h("claude",["mcp","get",n])).code===0)u="already";else{let r=await h("claude",["mcp","add","-s","user",n,"--","npx","-y","conformtools@latest","mcp"]);u=r.code===0?"added":"failed",r.code!==0&&(g=r.stderr.trim().slice(-300))}}catch(a){u="failed",g=`claude CLI not found (${a instanceof Error?a.message:a}); add the server with: claude mcp add -s user ${n} -- npx -y conformtools@latest mcp`}return{settings:t,rule:s,added:C,backup:f,registered:u,detail:g,statusline:l}}function M(e){return[e.added?`Claude Code: allowed every conform.tools tool (${e.rule}) in ${e.settings}${e.backup?` (backup: ${e.backup})`:""}`:`Claude Code: ${e.rule} was already allowed in ${e.settings}`,{already:"MCP server: already registered",added:"MCP server: registered (claude mcp add -s user)",skipped:"MCP server: not checked",failed:`MCP server: not registered: ${e.detail??"claude mcp add failed"}`}[e.registered],{installed:"Status line: conform.tools (the running job and its progress) at the bottom of Claude Code",updated:"Status line: conform.tools, refreshed",kept:"Status line: you already have one, so it was left as it is (conformtools statusline prints ours)",skipped:"Status line: not installed"}[e.statusline],"Restart Claude Code (or /mcp) to load it. Remove the rule from permissions.allow to be asked again."].join(`
5
- `)}export{U as setupClaude,M as setupText,L as withAllowRule,x as withStatusLine};
package/dist/cli.js DELETED
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{O as W,_ as L,aa as J,b as A,ba as H,c as D,da as F,e as I,ea as G}from"./chunk-EV52G33S.js";import{b as S,e as c,f as s}from"./chunk-D5DEQ467.js";import"./chunk-DRHOPOC7.js";import"./chunk-GXEVALBL.js";import"./chunk-Y2BEEOPB.js";import"./chunk-LO4K2ZF3.js";import"./chunk-C2ESM27Z.js";import"./chunk-D2RXAX5C.js";import"./chunk-5K56Q5EX.js";import"./chunk-R7P7WVNI.js";import"./chunk-6FVGUJ6L.js";import"./chunk-QDWB7QU7.js";import"./chunk-P7OVDUA5.js";import"./chunk-UCMNH6Q6.js";import"./chunk-WE4S4PEA.js";import"./chunk-CETBLAWM.js";import"./chunk-DKGGJM6Z.js";import"./chunk-GIZIR52D.js";import"./chunk-BUEIRRNY.js";import"./chunk-TK55FA56.js";import"./chunk-FMYTLXWN.js";import"./chunk-BK62N3ID.js";import"./chunk-JBSH4AK3.js";import"./chunk-PSANHDZM.js";var i=process.stdout,M=22,j=20,R=j/2,V=(t,n)=>Math.abs(n)<=Math.min(1-.417*Math.abs(t),2.393*(1-Math.abs(t))),ot=(t,n)=>t*t+n*n<=1;function nt(t){let n=.62**-t,l=[];for(let r=0;r<j;r++){let p=[];for(let g=0;g<M;g++){let w=(g+.5)/M*2-1,u=(r+.5)/j*2-1,d=!1;if(V(w,u))for(let $=0;$<6;$++)for(let y of[!1,!0]){let m=.62**$*(y?.77:1)*n,x=.5*Math.max(0,1-m)**2;(y?ot:V)(w/m,(u-x)/m)&&(d=!y)}p.push(d)}l.push(p)}return l}var C={C:["\u25E2\u2588\u25E3","\u2588 ","\u2588 ","\u25E5\u2588\u25E4"],O:["\u25E2\u2588\u25E3","\u2588 \u2588","\u2588 \u2588","\u25E5\u2588\u25E4"],N:["\u2588\u25E3 \u2588","\u2588\u2588\u25E3\u2588","\u2588\u25E5\u2588\u2588","\u2588 \u25E5\u2588"],F:["\u2588\u2588\u2588","\u2588\u2584\u2584","\u2588 ","\u2588 "],R:["\u2588\u2588\u25E3","\u2588 \u2588","\u2588\u2588\u25E4","\u2588 \u2588"],M:["\u2588\u25E3\u25E2\u2588","\u2588\u25E5\u25E4\u2588","\u2588 \u2588","\u2588 \u2588"],T:["\u2588\u2588\u2588"," \u2588 "," \u2588 "," \u2588 "],L:["\u2588 ","\u2588 ","\u2588 ","\u2588\u2588\u2588"],S:["\u25E2\u2588\u25E3","\u25E5\u25E3 "," \u25E5\u25E3","\u25E5\u2588\u25E4"],".":[" "," "," ","\u25CF"]},Y="CONFORM.TOOLS",et=[...Y].reduce((t,n)=>t+C[n][0].length+1,-1);async function B(t){if(!i.isTTY)return!1;let n=!!S("NO_COLOR"),l=/truecolor|24bit/i.test(S("COLORTERM")??""),r=o=>e=>n?e:`\x1B[${o}m${e}\x1B[0m`,p=r(l?"38;2;255;60;0":"38;5;202"),g=r(l?"38;2;255;222;0":"38;5;220"),w=r("1"),u=r("2"),d=(i.columns??80)>=M+4+et,$=o=>[...Y].map(e=>e==="."?p(C[e][o]):w(C[e][o])).join(" "),y=(o,e)=>d&&o>=2&&o<=5?$(o-2):!d&&o===3?`${w("conform")}${p(".")}${w("tools")}`:o===7?e:"",m=(o,e,O=[])=>{let v=nt(o),_=[];for(let f=0;f<R;f++){let X=v[2*f].map((N,tt)=>{let k=v[2*f+1][tt];return N&&k?"\u2588":N?"\u2580":k?"\u2584":" "}).join(""),Z=f>=8?O[f-8]??"":"";_.push(` ${p(X)} ${Z||y(f,e)}\x1B[K`)}return _.join(`
4
- `)+`
5
- `},x=null;t.account.then(o=>{x=o});let P=o=>[o/86400,o/1440%60,o/24%60,o%24].map(e=>String(Math.floor(e)).padStart(2,"0")).join(":"),Q=!S("CI")&&S("TERM")!=="dumb";if(i.write(`
6
- `),Q){let o=()=>i.write("\x1B[?25h");process.once("SIGINT",()=>{o(),process.exit(130)}),i.write("\x1B[?25l"+m(0,g(`\u25B6 ${P(0)}`)));let e=Date.now(),O=0;for(;x===null||Date.now()-e<900;)await new Promise(v=>setTimeout(v,1e3/24)),O=Math.round((Date.now()-e)*24/1e3),i.write(`\x1B[${R}A\r`+m(O/22%1,`${g(`\u25B6 ${P(O)}`)} ${u("checking your account\u2026")}`));i.write(`\x1B[${R}A\r`),o()}let U=(x??await t.account).split(`
7
- `);return i.write(m(0,`${u("v")}${t.version} ${u("\xB7 built by post pros")}`,U.map(o=>u(o)))),i.write(`
8
- `),!0}var q=()=>B({version:I,account:Promise.race([A().catch(()=>null),new Promise(t=>setTimeout(t,1500,null))]).then(t=>t?D(t):"account: no answer (offline?)")}),rt={login:"account_login",logout:"account_logout",whoami:"account_status",status:"account_status",telemetry:"account_telemetry"};c()[0]==="mcp"&&(await import("./mcp.js"),await new Promise(()=>{}));c()[0]==="http"&&(await import("./http.js"),await new Promise(()=>{}));c()[0]==="statusline"&&((await import("./statusline-GMMCFMOA.js")).main(),s(0));if(c()[0]==="setup"){let t=c()[1];t!=="claude"&&(console.error(`conformtools setup <client>: supported: claude${t?` (not ${t} yet)`:""}`),s(2));let{setupClaude:n,setupText:l}=await import("./claude-setup-XSNTKEU7.js");try{console.log(l(await n())),s(0)}catch(r){console.error(r instanceof Error?r.message:String(r)),s(1)}}var K=c().includes("--json"),[a,T]=c().filter(t=>t!=="--json");if(!a||a==="--list"||a==="help"||a==="--help"){await q(),console.log(`conformtools <verb> '<json args>' [--json]
9
-
10
- login / whoami / logout sign in with your conform.tools Google account
11
- telemetry on|off|status optional outcome telemetry (off by default; see the README, Feedback and privacy)
12
- mcp run as an MCP server (stdio) for Claude Code, Cursor, Codex\u2026
13
- http run the local HTTP API on 127.0.0.1:7791
14
- `);let t=W()==="hosted";for(let n of F)console.log(` ${n.name.padEnd(22)} ${n.title}${t&&n.protectedStages?.length?" (on conform.tools)":""}`);t&&console.log(`
15
- (on conform.tools) = the timeline is read or written by conform.tools; the file and its media stay here`),s(0)}var h=rt[a]??a,st=G(h);st||(console.error(`unknown verb '${a}' \u2014 conformtools --list`),s(2));h==="account_login"&&console.error("opening the browser to sign in to conform.tools\u2026");var it=h==="account_telemetry"&&T&&!T.trim().startsWith("{")?JSON.stringify({action:T.trim()}):T,z;try{z=JSON.parse(it??"{}")}catch{console.error(`arguments must be JSON, e.g. conformtools ${a} '{"path":"\u2026"}'`),s(2)}var E=H(h,z),b=E.ok?await J(h,E.data):E.result;h==="account_login"&&!b.isError&&!K&&await q()||console.log(K?JSON.stringify(b.structuredContent??{ok:!b.isError,text:b.content.map(t=>t.text).join(`
16
- `)},null,1):b.content.map(t=>t.text).join(`
17
- `));await L();s(b.isError?1:0);
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import"./chunk-PSANHDZM.js";function h(r){let e=new Uint32Array(1);return e[0]=r>>>0,new Float32Array(e.buffer)[0]}function U(r,e){if(r.length<12)return null;let a=new DataView(r.buffer,r.byteOffset,r.byteLength);if(a.getUint32(0,!1)!==1095911248||a.getUint32(4,!0)!==1)return null;let u=8,y=t=>{if(t<0||u+t>r.length)return null;let o=r.subarray(u,u+t);return u+=t,o},l=()=>{if(u+4>r.length)return null;let t=a.getUint32(u,!0);return u+=4,t},i=l();if(i===null)return null;let g=y(i);if(!g)return null;let n;try{n=JSON.parse(new TextDecoder().decode(g))}catch{return null}let w=l();if(w===null)return null;let c=y(w);if(!c)return null;let A=l();if(A===null)return null;if(A===0)return!e||e.key!==n.key||n.has_state?null:{key:n.key,essence:c,state:e.state};if(A!==6)return null;let s=[];for(let t=0;t<6;t++){let o=l();if(o===null||u+o>r.length)return null;s.push(r.slice(u,u+o)),u+=o}let f=t=>new Float32Array(t.buffer,t.byteOffset,t.byteLength>>>2),m=t=>new Uint16Array(t.buffer,t.byteOffset,t.byteLength>>>1);if(!Array.isArray(n.gains_8_24)||n.gains_8_24.length!==4||!Array.isArray(n.cp_bits)||n.cp_bits.length!==4)return null;let _={width:n.w,height:n.h,gains8_24:Uint32Array.from(n.gains_8_24),prepDecompand:f(s[0]),prepRecompand:m(s[1]),rptab:f(s[2]),gridA:f(s[3]),gridB:f(s[4]),finalLut:f(s[5]),cp:Float32Array.from(n.cp_bits,h),k2:h(n.k2_bits)};return{key:n.key,essence:c,state:_}}function p(r){let e=Math.round(r*65535);return e>0?e>65535?65535:e:0}function b(r){let e=r.width*r.height,a=new Uint16Array(e*3),{r:u,g:y,b:l}=r;for(let i=0;i<e;i++)a[3*i]=p(u[i]),a[3*i+1]=p(y[i]),a[3*i+2]=p(l[i]);return a}export{b as arrirawFrameToRgb16,U as parseArrirawGpuPayload,p as quantizeLogC4};
Binary file
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a,b}from"./chunk-5K56Q5EX.js";import"./chunk-JBSH4AK3.js";import"./chunk-PSANHDZM.js";export{b as decodeCr3Wasm,a as inspectCr3Wasm};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a,b,c}from"./chunk-D2RXAX5C.js";import"./chunk-DKGGJM6Z.js";import"./chunk-JBSH4AK3.js";import"./chunk-PSANHDZM.js";export{c as decodeDngPreviewWasm,b as decodeDngWasm,a as inspectDngWasm};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a,b,c}from"./chunk-WE4S4PEA.js";import"./chunk-DKGGJM6Z.js";import"./chunk-JBSH4AK3.js";import"./chunk-PSANHDZM.js";export{c as decodeDpxPreviewWasm,b as decodeDpxWasm,a as inspectDpxWasm};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunk-C2ESM27Z.js";import"./chunk-PSANHDZM.js";export{k as AsyncCompress,A as AsyncDecompress,c as AsyncDeflate,o as AsyncGunzip,k as AsyncGzip,g as AsyncInflate,P as AsyncUnzipInflate,w as AsyncUnzlib,J as AsyncZipDeflate,s as AsyncZlib,j as Compress,D as DecodeUTF8,z as Decompress,b as Deflate,E as EncodeUTF8,a as FlateErrorCode,n as Gunzip,j as Gzip,f as Inflate,Q as Unzip,O as UnzipInflate,N as UnzipPassThrough,v as Unzlib,K as Zip,I as ZipDeflate,H as ZipPassThrough,r as Zlib,l as compress,m as compressSync,B as decompress,C as decompressSync,d as deflate,e as deflateSync,p as gunzip,q as gunzipSync,l as gzip,m as gzipSync,h as inflate,i as inflateSync,G as strFromU8,F as strToU8,R as unzip,S as unzipSync,x as unzlib,y as unzlibSync,L as zip,M as zipSync,t as zlib,u as zlibSync};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a,b,c}from"./chunk-CETBLAWM.js";import"./chunk-DKGGJM6Z.js";import"./chunk-JBSH4AK3.js";import"./chunk-PSANHDZM.js";export{c as decodeExrPreviewWasm,b as decodeExrWasm,a as inspectExrWasm};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a as M}from"./chunk-QDWB7QU7.js";import{a as v,b as S}from"./chunk-SP5RGDAM.js";import{a as F}from"./chunk-TK55FA56.js";import"./chunk-PSANHDZM.js";var V=8,H=1500,P=new WeakMap;async function C(t){let o=P.get(t);return o||(o=k(t),P.set(t,o)),o}async function k(t){if(typeof VideoDecoder>"u")throw new Error("h264: WebCodecs (VideoDecoder) not available in this context");let o=t.parts[0],e=await F({fileSize:o.fileSize,read:o.read}),a=S(v(e)),r=M(e);if(!r)throw new Error("h264: no H.264/HEVC config in container");let s=r.decodeToPres.length||a.length,f=new Int32Array(s);for(let n=0;n<r.decodeToPres.length;n++)f[r.decodeToPres[n]]=n;let u=[];for(let n=0;n<r.keyframes.length;n++){let l=r.keyframes[n],m=n+1<r.keyframes.length?r.keyframes[n+1]:a.length;u.push([l,m])}let c={offs:a,cfg:r,gops:u,presToDecode:f,count:s,dec:null,wanted:-1,got:null,gotResolve:null,fedThrough:-1,queue:Promise.resolve()};return c.dec=new VideoDecoder({output:n=>{Number(n.timestamp)===c.wanted&&!c.got?(c.got=n,c.gotResolve?.()):n.close()},error:()=>{c.fedThrough=-1}}),c.dec.configure({codec:r.codec,description:r.description,optimizeForLatency:!0,hardwareAcceleration:"prefer-hardware"}),c}function R(t,o){let e=0,a=t.length-1,r=0;for(;e<=a;){let s=e+a>>1;t[s][0]<=o?(r=s,e=s+1):a=s-1}return r}async function I(t){let o=t.codedWidth,e=t.codedHeight;try{let a=o*e*4,r=new Uint8Array(a);return await t.copyTo(r,{format:"RGBA",colorSpace:"srgb"}),{width:o,height:e,rgba:r}}catch{let r=new OffscreenCanvas(o,e).getContext("2d",{willReadFrequently:!0});if(!r)throw new Error("h264: no 2d context for frame readback");r.drawImage(t,0,0);let s=r.getImageData(0,0,o,e);return{width:o,height:e,rgba:new Uint8Array(s.data.buffer)}}}async function O(t,o){let e=await C(t);if(e.count===0)throw new Error("h264: empty clip");if(o<0||o>=e.count)throw new Error(`COVERAGE_MISS: frame ${o} outside 0..${e.count-1}`);let a,r=new Promise(f=>{a=f}),s=e.queue;e.queue=e.queue.then(()=>r),await s;try{let f=t.parts[0],u=e.presToDecode[o],c=R(e.gops,u),[n,l]=e.gops[c];for(let m=0;m<2;m++){let T=m===0&&e.fedThrough>n&&e.fedThrough<=l&&u>=e.fedThrough,w=T?e.fedThrough:n;if(!T&&e.fedThrough!==-1){try{await e.dec.flush()}catch{}e.fedThrough=-1}let h=Math.min(l,u+1+V);e.wanted=o,e.got=null;let D=new Promise(d=>{e.gotResolve=d});if(h>w){let d=1/0,y=0;for(let i=w;i<h;i++)d=Math.min(d,e.offs[i].offset),y=Math.max(y,e.offs[i].offset+e.offs[i].size);let E=await f.read(d,y-d);for(let i=w;i<h;i++){let b=e.offs[i];e.dec.decode(new EncodedVideoChunk({type:i===n?"key":"delta",timestamp:e.cfg.decodeToPres[i],data:E.subarray(b.offset-d,b.offset-d+b.size)}))}e.fedThrough=h}let A=new Promise(d=>setTimeout(d,H));if(await Promise.race([D,A]),!e.got){try{await e.dec.flush()}catch{}e.fedThrough=-1}let p=e.got;if(e.wanted=-1,e.gotResolve=null,e.got=null,!!p)try{return await I(p)}finally{p.close()}}throw new Error(`h264: frame ${o} did not decode`)}finally{a()}}async function g(){return(await import("./isobmff-HSF7B3Y7.js")).isobmffFormat}var U={async inspect(t){return(await g()).inspect(t)},async extract(t){return(await g()).extract(t)},async sparsify(t,o){return(await g()).sparsify(t,o)},async trim(t,o){return(await g()).trim(t,o)},async decode(t,o){return O(t,o)}};export{U as h264Format};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{Ca as v,ha as g,ja as b}from"./chunk-JBSH4AK3.js";import"./chunk-PSANHDZM.js";var G=8,P=1500,M=new WeakMap,S=o=>(t,e)=>o.read(t,e);function F(o){let t=new DataView(o.buffer,o.byteOffset,o.byteLength),e=t.getUint32(0,!0),n=[];for(let a=0;a<e;a++)n.push(t.getUint32(4+a*4,!0));let i=[],r=4+e*4;for(let a of n)i.push(o.subarray(r,r+a)),r+=a;return i}function V(o){for(let t=0;t+5<o.length;t++){let e=o[t]===0&&o[t+1]===0&&o[t+2]===0&&o[t+3]===1,n=o[t]===0&&o[t+1]===0&&o[t+2]===1;if(e||n){let i=t+(e?4:3);if((o[i]&31)===7){let r=a=>a.toString(16).padStart(2,"0");return`avc1.${r(o[i+1])}${r(o[i+2])}${r(o[i+3])}`}t=i-1}}return"avc1.640028"}async function A(o){if(typeof VideoDecoder>"u")throw new Error("h264-mxf: WebCodecs (VideoDecoder) not available in this context");await v();let t=o.parts[0],e=S(t),n=JSON.parse(await b(e,t.fileSize));if(!n.raps.length)throw new Error("h264-mxf: no random-access points in MXF index");let i=V(F(await g(e,t.fileSize,0,0))[0]),r={map:n,codec:i,dec:null,wanted:-1,emitted:0,got:null,gotResolve:null,fedGop:-1,fedThrough:-1,queue:Promise.resolve()};return r.dec=new VideoDecoder({output:a=>{r.emitted++===r.wanted&&!r.got?(r.got=a,r.gotResolve?.()):a.close()},error:()=>{r.fedGop=-1,r.fedThrough=-1}}),r.dec.configure({codec:i,codedWidth:n.coded_width||1920,codedHeight:n.coded_height||1088,optimizeForLatency:!0}),r}async function E(o){let t=M.get(o);return t||(t=A(o),M.set(o,t)),t}function D(o,t){let e=o.raps,n=0,i=e.length-1,r=0;for(;n<=i;){let a=n+i>>1;e[a]<=t?(r=a,n=a+1):i=a-1}return{start:e[r],end:r+1<e.length?e[r+1]:o.total_frames}}async function R(o){let t=o.visibleRect,e=t?t.width:o.codedWidth,n=t?t.height:o.codedHeight;try{let i=new Uint8Array(e*n*4);return await o.copyTo(i,{format:"RGBA",colorSpace:"srgb",rect:t??void 0}),{width:e,height:n,rgba:i}}catch{let r=new OffscreenCanvas(e,n).getContext("2d",{willReadFrequently:!0});if(!r)throw new Error("h264-mxf: no 2d context for frame readback");r.drawImage(o,t?t.x:0,t?t.y:0,e,n,0,0,e,n);let a=r.getImageData(0,0,e,n);return{width:e,height:n,rgba:new Uint8Array(a.data.buffer)}}}async function U(o,t){let e=await E(o);if(e.map.total_frames===0)throw new Error("h264-mxf: empty clip");if(t<0||t>=e.map.total_frames)throw new Error(`COVERAGE_MISS: frame ${t} outside 0..${e.map.total_frames-1}`);let n,i=new Promise(a=>{n=a}),r=e.queue;e.queue=e.queue.then(()=>i),await r;try{let a=o.parts[0],w=S(a),{start:c,end:_}=D(e.map,t);for(let u=0;u<2;u++){let f=u===0&&e.fedGop===c&&e.fedThrough>c&&t>=e.fedThrough;if(!f&&e.fedGop!==-1){try{await e.dec.flush()}catch{}e.fedGop=-1,e.fedThrough=-1}let l=f?e.fedThrough:c,h=Math.min(_,t+1+G);f||(e.emitted=0),e.wanted=t-c,e.got=null;let T=new Promise(s=>{e.gotResolve=s});if(h>l){let s=F(await g(w,a.fileSize,l,h-1));for(let d=0;d<s.length;d++){let y=l+d;e.dec.decode(new EncodedVideoChunk({type:y===c?"key":"delta",timestamp:y*1e3,data:s[d]}))}e.fedGop=c,e.fedThrough=h}let x=new Promise(s=>setTimeout(s,P));if(await Promise.race([T,x]),!e.got){try{await e.dec.flush()}catch{}e.fedGop=-1,e.fedThrough=-1}let p=e.got;if(e.wanted=-1,e.gotResolve=null,e.got=null,!!p)try{return await R(p)}finally{p.close()}}throw new Error(`h264-mxf: frame ${t} did not decode`)}finally{n()}}async function m(){return(await import("./mxf-IQBPP3JA.js")).mxfFormat}var O={async inspect(o){return(await m()).inspect(o)},async extract(o){return(await m()).extract(o)},async sparsify(o,t){return(await m()).sparsify(o,t)},async trim(o,t){return(await m()).trim(o,t)},async decode(o,t){return U(o,t)}};export{O as h264MxfFormat};
package/dist/http.js DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{b as h}from"./chunk-6TM32YIJ.js";import{N as d,O as u,W as f,X as g,Y as T,aa as O,ba as w,da as r,e as p}from"./chunk-EV52G33S.js";import{L as m,b as c}from"./chunk-D5DEQ467.js";import"./chunk-DRHOPOC7.js";import"./chunk-GXEVALBL.js";import"./chunk-Y2BEEOPB.js";import"./chunk-LO4K2ZF3.js";import"./chunk-C2ESM27Z.js";import"./chunk-D2RXAX5C.js";import"./chunk-5K56Q5EX.js";import"./chunk-R7P7WVNI.js";import"./chunk-6FVGUJ6L.js";import"./chunk-QDWB7QU7.js";import"./chunk-P7OVDUA5.js";import"./chunk-UCMNH6Q6.js";import"./chunk-WE4S4PEA.js";import"./chunk-CETBLAWM.js";import"./chunk-DKGGJM6Z.js";import"./chunk-GIZIR52D.js";import"./chunk-BUEIRRNY.js";import"./chunk-TK55FA56.js";import"./chunk-FMYTLXWN.js";import"./chunk-BK62N3ID.js";import"./chunk-JBSH4AK3.js";import"./chunk-PSANHDZM.js";var S=Number(c("CONFORM_HTTP_PORT")??7791),E=c("CONFORM_HTTP_TOKEN")??"",k=(c("CONFORM_HTTP_ORIGINS")??"https://conform.tools,https://app.conform.tools,http://localhost:5173,http://localhost:3000").split(","),R=(t,n=new Headers)=>{let e=t.headers.get("origin")??"";return k.includes(e)&&n.set("access-control-allow-origin",e),n.set("access-control-allow-headers","authorization, content-type"),n.set("access-control-allow-methods","GET, POST, DELETE, OPTIONS"),n.set("access-control-allow-private-network","true"),n.set("vary","origin"),n},s=(t,n,e=200)=>new Response(JSON.stringify(n),{status:e,headers:R(t,new Headers({"content-type":"application/json"}))});m({hostname:"127.0.0.1",port:S,onListen:t=>console.error(`conformtools HTTP API on http://127.0.0.1:${t} (${r.length} verbs)`)},async t=>{let n=new URL(t.url);if(t.method==="OPTIONS")return new Response(null,{status:204,headers:R(t)});if(E&&t.headers.get("authorization")!==`Bearer ${E}`&&n.pathname!=="/health")return s(t,{ok:!1,code:"unauthorized"},401);let e=n.pathname.split("/").filter(Boolean);try{if(n.pathname==="/health")return s(t,{ok:!0,verbs:r.length,version:p,engine:u()});if(e[0]==="verbs"&&e.length===1&&t.method==="GET")return s(t,r.map(o=>({name:o.name,title:o.title,description:o.description,long:!!o.long,input_schema:h(d.object(o.inputSchema)),protected_stages:o.protectedStages??[],engine:u()})));if(e[0]==="verbs"&&e.length===2&&t.method==="POST"){let o=r.find(l=>l.name===e[1]);if(!o)return s(t,{ok:!1,code:"not_found",message:`unknown verb ${e[1]}`},404);let b=t.headers.get("content-type")?.includes("json")?await t.json():{},a=w(o.name,b);if(!a.ok)return s(t,{...a.result.structuredContent,text:a.result.content[0].text},400);let i=await O(o.name,a.data);return s(t,{...i.structuredContent??{ok:!i.isError},text:i.content.map(l=>l.text).join(`
4
- `)},i.isError?422:200)}if(e[0]==="jobs"&&e.length===1)return s(t,await T());if(e[0]==="jobs"&&e.length===2){if(t.method==="DELETE")return s(t,{ok:g(e[1])});let o=await f(e[1]);return o?s(t,o):s(t,{ok:!1,code:"not_found"},404)}return s(t,{ok:!1,code:"not_found"},404)}catch(o){return s(t,{ok:!1,code:"internal",message:o instanceof Error?o.message:String(o)},500)}});
package/dist/i2o-transfer DELETED
Binary file