conformtools 0.6.26 → 0.6.28

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 (58) hide show
  1. package/dist/{bridge-GMBZ2C5T.js → bridge-I6VDW7YC.js} +1 -1
  2. package/dist/{chunk-V6MI7VE3.js → chunk-5JIFRR7U.js} +1 -1
  3. package/dist/{chunk-LBROV5JN.js → chunk-6QB4DV22.js} +1 -1
  4. package/dist/{chunk-DVPU4AYU.js → chunk-7CASAJU4.js} +1 -1
  5. package/dist/{chunk-3K2XVUJZ.js → chunk-7GEOQ4N6.js} +6 -6
  6. package/dist/chunk-7Z65WW4I.js +3 -0
  7. package/dist/{chunk-NQDVV2PX.js → chunk-ASFUV3PB.js} +1 -1
  8. package/dist/{chunk-ZNUIZEPF.js → chunk-BIX5ETBY.js} +1 -1
  9. package/dist/{chunk-IUW3BFGE.js → chunk-CSH2RRI6.js} +1 -1
  10. package/dist/{chunk-JFEOLU4H.js → chunk-CV7OBWOX.js} +1 -1
  11. package/dist/{chunk-XX7QQIBI.js → chunk-NRURUPLU.js} +1 -1
  12. package/dist/{chunk-KDNIWB5V.js → chunk-PGJMKUUP.js} +1 -1
  13. package/dist/{chunk-FDUFUJXI.js → chunk-QY4QDBIN.js} +3 -3
  14. package/dist/{chunk-5JDF2IUF.js → chunk-TGLH2JDW.js} +1 -1
  15. package/dist/chunk-TIZC6IEH.js +10 -0
  16. package/dist/{chunk-XIFURVIB.js → chunk-TNCXZIOX.js} +1 -1
  17. package/dist/{chunk-SW6SUAP3.js → chunk-UE76WJ3Y.js} +1 -1
  18. package/dist/{chunk-3AR7KSPH.js → chunk-UXEL636C.js} +1 -1
  19. package/dist/{chunk-L6ERTJHZ.js → chunk-WG75XXKG.js} +2 -2
  20. package/dist/{chunk-EZYCCYY7.js → chunk-WRDA44QF.js} +1 -1
  21. package/dist/{chunk-SMYDU75N.js → chunk-X76IIWBH.js} +1 -1
  22. package/dist/cli.js +1 -1
  23. package/dist/{cr3-wasm-CQ5YEFUF.js → cr3-wasm-I3MVBOT3.js} +1 -1
  24. package/dist/{dng-wasm-K6PWOV4P.js → dng-wasm-JX2PZ5CY.js} +1 -1
  25. package/dist/{dpx-wasm-RJZANW6N.js → dpx-wasm-SIM6VRGD.js} +1 -1
  26. package/dist/{exr-wasm-EZY3GZ2L.js → exr-wasm-EEY5CU2U.js} +1 -1
  27. package/dist/{framing-OPXDRT3I.js → framing-QC7Z2GRK.js} +1 -1
  28. package/dist/gfx-worker.js +1 -1
  29. package/dist/{h264-KMDAFD3Q.js → h264-TVMYQ7EB.js} +1 -1
  30. package/dist/{h264-mxf-IJYHBYKB.js → h264-mxf-PKSTGNGH.js} +1 -1
  31. package/dist/{host-relink-R2I74NWX.js → host-relink-B3M3B3VF.js} +1 -1
  32. package/dist/hosts-LVKUUVG7.js +3 -0
  33. package/dist/http.js +2 -2
  34. package/dist/{inspect-6PAE2CSO.js → inspect-RT36GEVU.js} +1 -1
  35. package/dist/isobmff-65LRNCQH.js +3 -0
  36. package/dist/{mc-video-DTMHUECT.js → mc-video-2PCAX65A.js} +1 -1
  37. package/dist/mcp.js +1 -1
  38. package/dist/{media-3XXQBZNW.js → media-NCUTSVJ4.js} +1 -1
  39. package/dist/media_core-YNYOS4L3.js +9 -0
  40. package/dist/mxf-WFJNAX7D.js +3 -0
  41. package/dist/{ops-QAML7C35.js → ops-SH3IUU2Z.js} +1 -1
  42. package/dist/{r3d-AWQQHTQC.js → r3d-AKUA77ZG.js} +1 -1
  43. package/dist/{r3d-OL6DVR3C.js → r3d-X2O5LUAB.js} +1 -1
  44. package/dist/{still-CDF26BQZ.js → still-LQOFV74F.js} +1 -1
  45. package/dist/{still-wasm-3EBYMLVL.js → still-wasm-PQJ4OARF.js} +1 -1
  46. package/dist/{tiff-wasm-JIBA5AI4.js → tiff-wasm-JH6DUOML.js} +1 -1
  47. package/dist/{timeline-FE2DA3ZK.js → timeline-33MJ3HOK.js} +1 -1
  48. package/dist/wasm/media_core_bg.wasm +0 -0
  49. package/dist/wasm-threads/media_core_bg.wasm +0 -0
  50. package/dist/wav-GTQMRIR3.js +3 -0
  51. package/package.json +5 -5
  52. package/dist/chunk-BHBBS26Z.js +0 -10
  53. package/dist/chunk-DCO5D65W.js +0 -3
  54. package/dist/hosts-3YODY7SA.js +0 -3
  55. package/dist/isobmff-4FUKPUL3.js +0 -3
  56. package/dist/media_core-KHSB6EFN.js +0 -9
  57. package/dist/mxf-LGRSWF7S.js +0 -3
  58. package/dist/wav-N6EWJR2P.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 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:()=>Lt,bench_f32_boundary:()=>Rt,bench_piz_no_huffman:()=>jt,color_cst:()=>zt,dci_code_full_depth:()=>Dt,dci_frame_cap:()=>Ut,dci_gpu_colour_patch:()=>Bt,dci_gpu_colour_tables:()=>Pt,dci_last_pass_caps:()=>Ct,dci_legal_rates:()=>qt,dci_mq_bench:()=>Nt,dci_pack_tier1:()=>Ht,dci_stage_rgba8:()=>Gt,dci_transform_only:()=>Vt,decode_arriraw12_luma:()=>Kt,decode_arriraw12_mxf:()=>Xt,decode_arriraw12_preview:()=>Yt,decode_arriraw12_rgba:()=>$t,decode_arriraw_luma:()=>Jt,decode_arriraw_mxf:()=>Qt,decode_arriraw_preview:()=>Zt,decode_arriraw_preview_gray:()=>te,decode_arriraw_preview_meta:()=>ee,decode_arriraw_rgba:()=>ne,decode_arriraw_rgba_meta:()=>re,decode_arw_preview:()=>_e,decode_arw_rgba:()=>oe,decode_audio_pcm:()=>ie,decode_audio_track_pcm:()=>ae,decode_bmp_rgba:()=>de,decode_braw_gen5log:()=>ce,decode_braw_luma:()=>se,decode_braw_preview:()=>pe,decode_braw_rgba:()=>ge,decode_cr2_preview:()=>ue,decode_cr2_rgba:()=>we,decode_cr3_rgba:()=>be,decode_crm:()=>le,decode_dng_preview:()=>fe,decode_dng_rgba:()=>ve,decode_dpx_preview:()=>xe,decode_dpx_rgba:()=>Ie,decode_dv_luma:()=>ye,decode_dv_preview:()=>me,decode_dv_rgba:()=>he,decode_exr_linear:()=>ke,decode_exr_preview:()=>Ae,decode_exr_rgba:()=>Me,decode_gif_rgba:()=>Ee,decode_heic_rgba:()=>Te,decode_j2k_luma:()=>Oe,decode_j2k_preview:()=>Fe,decode_j2k_rgba:()=>We,decode_jpeg_rgba:()=>Se,decode_mpeg2_luma:()=>Le,decode_mpeg2_preview:()=>Re,decode_mpeg2_rgba:()=>je,decode_png_rgba:()=>ze,decode_prores_band_rgba:()=>De,decode_prores_luma:()=>Ue,decode_prores_mxf:()=>Be,decode_prores_preview:()=>Pe,decode_prores_raw_acescct:()=>Ce,decode_prores_raw_luma:()=>qe,decode_prores_raw_preview:()=>Ne,decode_prores_raw_rec2020:()=>He,decode_prores_raw_rgba:()=>Ge,decode_prores_raw_tier:()=>Ve,decode_prores_rgb16:()=>Ke,decode_prores_rgba:()=>Xe,decode_prores_thumb_dc32:()=>Ye,decode_psd_rgba:()=>$e,decode_r3d_luma:()=>Je,decode_r3d_preview:()=>Qe,decode_r3d_preview_clip:()=>Ze,decode_r3d_rgb16:()=>tn,decode_r3d_rgba:()=>en,decode_r3d_rgba_clip:()=>nn,decode_tga_rgba:()=>rn,decode_tiff_preview:()=>_n,decode_tiff_rgba:()=>on,decode_vc3_band_rgba:()=>an,decode_vc3_luma:()=>dn,decode_vc3_mxf:()=>cn,decode_vc3_preview:()=>sn,decode_vc3_rgba:()=>pn,decode_webp_rgba:()=>gn,decode_xocn_index_luma:()=>un,decode_xocn_luma:()=>wn,decode_xocn_mxf:()=>bn,decode_xocn_preview:()=>ln,decode_xocn_preview_rec709:()=>fn,decode_xocn_rgb16:()=>vn,decode_xocn_rgba:()=>xn,default:()=>rt,encode_dci_j2c:()=>In,encode_dci_j2c_rgb:()=>yn,encode_dci_j2c_rgba8:()=>mn,encode_dci_j2c_staged:()=>hn,encode_dci_j2c_staged_modelled:()=>kn,encode_exr:()=>An,encode_prores_4444_alpha_mov_rgba:()=>Mn,encode_prores_4444_alpha_sample_q:()=>En,encode_prores_444_sample_cbr:()=>Tn,encode_prores_444_sample_cbr_rgb16:()=>On,encode_prores_444_sample_cbr_rgb16_lut:()=>Fn,encode_prores_mov_rgba:()=>Wn,encode_prores_rgba:()=>Sn,encode_prores_sample_cbr:()=>Ln,encode_prores_sample_cbr_rgb16:()=>Rn,encode_prores_sample_cbr_rgb16_lut:()=>jn,encode_prores_sample_q:()=>zn,exr_sequence_filename:()=>Dn,fit_sizing:()=>Un,initSync:()=>g_,inspect_arw:()=>Bn,inspect_cr2:()=>Pn,inspect_cr3:()=>Cn,inspect_dng:()=>qn,inspect_dpx:()=>Nn,inspect_exr:()=>Hn,inspect_isobmff:()=>Gn,inspect_tiff:()=>Vn,inspect_wav:()=>Kn,is_arriraw12_mxf:()=>Xn,is_arriraw_mxf:()=>Yn,is_crm:()=>$n,is_prores_mxf:()=>Jn,is_vc3_mxf:()=>Qn,is_xavc_mxf:()=>Zn,is_xocn_mxf:()=>tr,list_isobmff_segments:()=>er,list_mxf_segments:()=>nr,list_r3d_frames:()=>rr,list_r3d_segments:()=>_r,list_wav_segments:()=>or,mux_prores_4444_alpha_samples:()=>ir,mux_prores_samples:()=>ar,mux_prores_samples_full:()=>dr,mxf_au_run:()=>cr,mxf_frame_index:()=>sr,mxf_gop_map:()=>pr,mxf_h264_kind:()=>gr,plan_isobmff_trim:()=>ur,plan_isobmff_trim_reader:()=>wr,plan_mxf_compact_trim:()=>br,plan_mxf_trim:()=>lr,plan_r3d_compact:()=>fr,plan_wav_trim:()=>vr,plan_wav_trim_reader:()=>xr,prepare_isobmff:()=>Ir,prepare_mxf:()=>yr,prepare_r3d:()=>mr,prepare_wav:()=>hr,probe_mov:()=>kr,probe_mxf:()=>Ar,probe_r3d:()=>Mr,prores_band_info:()=>Er,prores_raw_container_color:()=>Tr,prores_reset_rate_control:()=>Or,r3d_gpu_develop_params:()=>Fr,r3d_index_ranges:()=>Wr,r3d_is_helium:()=>Sr,read_arriraw_fcs:()=>Lr,read_arriraw_unit_correction:()=>Rr,recover_reframe:()=>jr,resample_rgba16:()=>zr,resample_rgba8:()=>Dr,reset_dci_rate_state:()=>Ur,resize_luma_area:()=>Br,rgba8_to_xyz12:()=>Pr,shot_crop:()=>Cr,shot_ramp:()=>qr,shot_scan:()=>Nr,trim_r3d:()=>Hr,vc3_band_info:()=>Gr,video_close:()=>Vr,video_decode:()=>Kr,video_frame_index_isobmff_reader:()=>Xr,video_open:()=>Yr,xavc_au:()=>$r,xavc_frame_count:()=>Jr,xocn_frame_count:()=>Qr,xocn_index_prefix_len:()=>Zr,xocn_preview_prefix_len:()=>t_});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,i,a){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=y(a,t.__wbindgen_export4,t.__wbindgen_export5),w=p;t.exrbench_new(s,e,n,i,g,w);var d=r().getInt32(s+0,!0),_=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0);if(c)throw u(_);return this.__wbg_ptr=d,wt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}piz_stage_block(e){try{let d=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_piz_stage_block(d,this.__wbg_ptr,e);var n=r().getFloat64(d+0,!0),i=r().getInt32(d+8,!0),a=r().getInt32(d+12,!0);if(a)throw u(i);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 d=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_zip_stage_block(d,this.__wbg_ptr,e);var n=r().getFloat64(d+0,!0),i=r().getInt32(d+8,!0),a=r().getInt32(d+12,!0);if(a)throw u(i);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 _=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_finish(_,this.__wbg_ptr);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}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=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}n_blocks(){return t.exrstreamencoder_n_blocks(this.__wbg_ptr)>>>0}constructor(e,n,i,a,d,_,c,s,g,w){try{let I=t.__wbindgen_add_to_stack_pointer(-16),h=y(i,t.__wbindgen_export4,t.__wbindgen_export5),k=p,M=y(a,t.__wbindgen_export4,t.__wbindgen_export5),O=p,F=y(d,t.__wbindgen_export4,t.__wbindgen_export5),T=p,S=y(_,t.__wbindgen_export4,t.__wbindgen_export5),R=p,j=y(s,t.__wbindgen_export4,t.__wbindgen_export5),D=p;t.exrstreamencoder_new(I,e,n,h,k,M,O,F,T,S,R,c,j,D,g,w);var b=r().getInt32(I+0,!0),v=r().getInt32(I+4,!0),m=r().getInt32(I+8,!0);if(m)throw u(v);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 c=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_push_block(c,this.__wbg_ptr,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}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,i,a){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=y(i,t.__wbindgen_export4,t.__wbindgen_export5),w=p;t.proresbench_new(s,e,n,g,w,a);var d=r().getInt32(s+0,!0),_=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0);if(c)throw u(_);return this.__wbg_ptr=d,lt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}stage(e){try{let d=t.__wbindgen_add_to_stack_pointer(-16);t.proresbench_stage(d,this.__wbg_ptr,e);var n=r().getFloat64(d+0,!0),i=r().getInt32(d+8,!0),a=r().getInt32(d+12,!0);if(a)throw u(i);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),d=l(e,t.__wbindgen_export4),_=p;t.proresmovencoder_add_frame_rgba(a,this.__wbg_ptr,d,_);var n=r().getInt32(a+0,!0),i=r().getInt32(a+4,!0);if(i)throw u(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=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovencoder_frame_count(this.__wbg_ptr)>>>0}constructor(e,n,i,a){let d=t.proresmovencoder_new(e,n,i,a);return this.__wbg_ptr=d,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,vt.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=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}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=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}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=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_offset(){return t.proresmovwriter_mdat_box_offset(this.__wbg_ptr)}constructor(e,n,i,a){let d=t.proresmovwriter_new(e,n,i,a);return this.__wbg_ptr=d,vt.register(this,this.__wbg_ptr,this),this}push_frame(){try{let _=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_frame(_,this.__wbg_ptr);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample(e){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(e,t.__wbindgen_export4),_=p;t.proresmovwriter_push_sample(a,this.__wbg_ptr,d,_);var n=r().getInt32(a+0,!0),i=r().getInt32(a+4,!0);if(i)throw u(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=r().getInt32(a+0,!0),i=r().getInt32(a+4,!0);if(i)throw u(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=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p;t.proresmovwriter_set_profile(this.__wbg_ptr,n,i)}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(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.arriraw12_clip_info(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Ft(o,e,n,i){var a=B(i)?0:y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p;let _=t.arriraw_mxf_gpu_frame(x(o),e,n,a,d);return u(_)}function Wt(o,e,n){let i=t.audio_aac_au(x(o),e,n);return u(i)}function St(o,e){let n=t.audio_aac_config(x(o),e);return u(n)}function Lt(o,e){let n=t.audio_info(x(o),e);return u(n)}function Rt(o){let e=ot(o,t.__wbindgen_export4),n=p;return t.bench_f32_boundary(e,n)}function jt(o,e,n,i){let a=ot(o,t.__wbindgen_export4),d=p;return t.bench_piz_no_huffman(a,d,e,n,i)}function zt(o,e){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=y(o,t.__wbindgen_export4,t.__wbindgen_export5),s=p;var n=ot(e,t.__wbindgen_export4),i=p;t.color_cst(_,c,s,n,i,x(e));var a=r().getInt32(_+0,!0),d=r().getInt32(_+4,!0);if(d)throw u(a)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Dt(o,e,n){let i=W(o,t.__wbindgen_export4),a=p;return t.dci_code_full_depth(i,a,e,n)}function Ut(o,e,n){return t.dci_frame_cap(o,e,n)>>>0}function Bt(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p,w=y(e,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.dci_gpu_colour_patch(c,s,g,w,b);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=gt(n,i).slice();return t.__wbindgen_export3(n,i*2,2),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pt(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=y(o,t.__wbindgen_export4,t.__wbindgen_export5),s=p;t.dci_gpu_colour_tables(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ct(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.dci_last_pass_caps(i);var o=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),n=nt(o,e).slice();return t.__wbindgen_export3(o,e*4,4),n}finally{t.__wbindgen_add_to_stack_pointer(16)}}function qt(o,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16);t.dci_legal_rates(d,o,e);var n=r().getInt32(d+0,!0),i=r().getInt32(d+4,!0),a=nt(n,i).slice();return t.__wbindgen_export3(n,i*4,4),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Nt(o){return t.dci_mq_bench(o)>>>0}function Ht(o,e,n,i,a,d,_,c,s,g,w){try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=L(o,t.__wbindgen_export4),O=p,F=l(e,t.__wbindgen_export4),T=p,S=L(n,t.__wbindgen_export4),R=p,j=L(i,t.__wbindgen_export4),D=p,C=L(a,t.__wbindgen_export4),q=p,it=L(d,t.__wbindgen_export4),at=p,dt=L(_,t.__wbindgen_export4),ct=p,Mt=L(c,t.__wbindgen_export4),Et=p;t.dci_pack_tier1(k,M,O,F,T,S,R,j,D,C,q,it,at,dt,ct,Mt,Et,s,g,w);var b=r().getInt32(k+0,!0),v=r().getInt32(k+4,!0),m=r().getInt32(k+8,!0),I=r().getInt32(k+12,!0);if(I)throw u(m);var h=f(b,v).slice();return t.__wbindgen_export3(b,v*1,1),h}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Gt(o,e){let n=t.dci_stage_rgba8(o,e);return u(n)}function Vt(o,e,n){let i=W(o,t.__wbindgen_export4),a=p;return t.dci_transform_only(i,a,e,n)}function Kt(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p,w=l(e,t.__wbindgen_export4),b=p;t.decode_arriraw12_luma(c,s,g,w,b);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Xt(o,e,n,i){let a=y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.decode_arriraw12_mxf(x(o),e,n,a,d);return u(_)}function Yt(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p,b=l(e,t.__wbindgen_export4),v=p;t.decode_arriraw12_preview(s,g,w,b,v,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $t(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p,w=l(e,t.__wbindgen_export4),b=p;t.decode_arriraw12_rgba(c,s,g,w,b);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Jt(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p;t.decode_arriraw_luma(s,g,w,e,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qt(o,e,n,i){let a=y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.decode_arriraw_mxf(x(o),e,n,a,d);return u(_)}function Zt(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.decode_arriraw_preview(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function te(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.decode_arriraw_preview_gray(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ee(o,e,n,i,a,d,_,c,s){try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=l(o,t.__wbindgen_export4),O=p;var g=B(s)?0:Y(s,t.__wbindgen_export4),w=p;t.decode_arriraw_preview_meta(k,M,O,e,n,i,a,d,_,c,g,w);var b=r().getInt32(k+0,!0),v=r().getInt32(k+4,!0),m=r().getInt32(k+8,!0),I=r().getInt32(k+12,!0);if(I)throw u(m);var h=f(b,v).slice();return t.__wbindgen_export3(b,v*1,1),h}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ne(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p;t.decode_arriraw_rgba(s,g,w,e,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function re(o,e,n,i,a,d,_,c){try{let h=t.__wbindgen_add_to_stack_pointer(-16),k=l(o,t.__wbindgen_export4),M=p;var s=B(c)?0:Y(c,t.__wbindgen_export4),g=p;t.decode_arriraw_rgba_meta(h,k,M,e,n,i,a,d,_,s,g);var w=r().getInt32(h+0,!0),b=r().getInt32(h+4,!0),v=r().getInt32(h+8,!0),m=r().getInt32(h+12,!0);if(m)throw u(v);var I=f(w,b).slice();return t.__wbindgen_export3(w,b*1,1),I}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _e(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_arw_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function oe(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_arw_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ie(o,e,n,i){let a=t.decode_audio_pcm(x(o),e,n,i);return u(a)}function ae(o,e,n,i,a){let d=t.decode_audio_track_pcm(x(o),e,n,i,a);return u(d)}function de(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_bmp_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ce(o){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(o,t.__wbindgen_export4),_=p;t.decode_braw_gen5log(a,d,_);var e=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function se(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_braw_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pe(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_braw_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ge(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_braw_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ue(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_cr2_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function we(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_cr2_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function be(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_cr3_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function le(o,e,n,i){let a=y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.decode_crm(x(o),e,n,a,d);return u(_)}function fe(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_dng_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ve(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_dng_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xe(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_dpx_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ie(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_dpx_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ye(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_dv_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function me(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_dv_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function he(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_dv_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ke(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_exr_linear(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ae(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_exr_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Me(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_exr_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ee(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_gif_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Te(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_heic_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Oe(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_j2k_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fe(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_j2k_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function We(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_j2k_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Se(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_jpeg_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Le(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_mpeg2_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Re(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_mpeg2_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function je(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_mpeg2_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ze(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_png_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function De(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p;t.decode_prores_band_rgba(s,g,w,e,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ue(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Be(o,e,n,i){let a=y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.decode_prores_mxf(x(o),e,n,a,d);return u(_)}function Pe(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_prores_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ce(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_raw_acescct(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function qe(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_raw_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ne(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_prores_raw_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function He(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_raw_rec2020(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ge(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_raw_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ve(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p,b=y(e,t.__wbindgen_export4,t.__wbindgen_export5),v=p,m=l(n,t.__wbindgen_export4),I=p;t.decode_prores_raw_tier(s,g,w,b,v,m,I);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ke(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_rgb16(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Xe(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ye(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_thumb_dc32(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $e(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_psd_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Je(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_r3d_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qe(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_r3d_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ze(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p,b=l(e,t.__wbindgen_export4),v=p;t.decode_r3d_preview_clip(s,g,w,b,v,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function tn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_r3d_rgb16(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function en(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_r3d_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function nn(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p,w=l(e,t.__wbindgen_export4),b=p;t.decode_r3d_rgba_clip(c,s,g,w,b);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function rn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_tga_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _n(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_tiff_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function on(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_tiff_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function an(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p;t.decode_vc3_band_rgba(s,g,w,e,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function dn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_vc3_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function cn(o,e,n,i){let a=y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.decode_vc3_mxf(x(o),e,n,a,d);return u(_)}function sn(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_vc3_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_vc3_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function gn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_webp_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function un(o){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(o,t.__wbindgen_export4),_=p;t.decode_xocn_index_luma(a,d,_);var e=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function wn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_xocn_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function bn(o,e,n,i){let a=y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.decode_xocn_mxf(x(o),e,n,a,d);return u(_)}function ln(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_xocn_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_xocn_preview_rec709(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function vn(o){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(o,t.__wbindgen_export4),_=p;t.decode_xocn_rgb16(a,d,_);var e=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_xocn_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function In(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=W(o,t.__wbindgen_export4),b=p;t.encode_dci_j2c(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function yn(o,e,n,i,a,d){try{let b=t.__wbindgen_add_to_stack_pointer(-16),v=W(o,t.__wbindgen_export4),m=p,I=y(n,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.encode_dci_j2c_rgb(b,v,m,e,I,h,i,a,d);var _=r().getInt32(b+0,!0),c=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(_,c).slice();return t.__wbindgen_export3(_,c*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function mn(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(o,t.__wbindgen_export4),v=p,m=y(e,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.encode_dci_j2c_rgba8(w,b,v,m,I,n,i,a);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function hn(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=y(i,t.__wbindgen_export4,t.__wbindgen_export5),v=p;t.encode_dci_j2c_staged(w,o,e,n,b,v,a);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function kn(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=y(i,t.__wbindgen_export4,t.__wbindgen_export5),v=p;t.encode_dci_j2c_staged_modelled(w,o,e,n,b,v,a);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function An(o,e,n,i,a,d,_,c,s,g,w,b,v,m,I){try{let T=t.__wbindgen_add_to_stack_pointer(-16),S=ot(o,t.__wbindgen_export4),R=p,j=y(a,t.__wbindgen_export4,t.__wbindgen_export5),D=p,C=y(d,t.__wbindgen_export4,t.__wbindgen_export5),q=p,it=y(_,t.__wbindgen_export4,t.__wbindgen_export5),at=p,dt=y(v,t.__wbindgen_export4,t.__wbindgen_export5),ct=p;t.encode_exr(T,S,R,e,n,i,j,D,C,q,it,at,c,s,g,w,b,dt,ct,m,I);var h=r().getInt32(T+0,!0),k=r().getInt32(T+4,!0),M=r().getInt32(T+8,!0),O=r().getInt32(T+12,!0);if(O)throw u(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 Mn(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(o,t.__wbindgen_export4),v=p;t.encode_prores_4444_alpha_mov_rgba(w,b,v,e,n,i,a);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function En(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.encode_prores_4444_alpha_sample_q(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Tn(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function On(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=W(o,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr_rgb16(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fn(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=W(o,t.__wbindgen_export4),v=p,m=W(a,t.__wbindgen_export4),I=p;t.encode_prores_444_sample_cbr_rgb16_lut(w,b,v,e,n,i,m,I);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Wn(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(o,t.__wbindgen_export4),v=p;t.encode_prores_mov_rgba(w,b,v,e,n,i,a);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Sn(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p;t.encode_prores_rgba(s,g,w,e,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ln(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Rn(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=W(o,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr_rgb16(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function jn(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=W(o,t.__wbindgen_export4),v=p,m=W(a,t.__wbindgen_export4),I=p;t.encode_prores_sample_cbr_rgb16_lut(w,b,v,e,n,i,m,I);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function zn(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.encode_prores_sample_q(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Dn(o,e,n,i){let a,d;try{let v=t.__wbindgen_add_to_stack_pointer(-16),m=y(o,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.exr_sequence_filename(v,m,I,e,n,i);var _=r().getInt32(v+0,!0),c=r().getInt32(v+4,!0),s=r().getInt32(v+8,!0),g=r().getInt32(v+12,!0),w=_,b=c;if(g)throw w=0,b=0,u(s);return a=w,d=b,E(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,d,1)}}function Un(o,e,n,i,a,d,_,c){let s,g;try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=l(o,t.__wbindgen_export4),O=p,F=l(i,t.__wbindgen_export4),T=p,S=y(c,t.__wbindgen_export4,t.__wbindgen_export5),R=p;t.fit_sizing(k,M,O,e,n,F,T,a,d,_,S,R);var w=r().getInt32(k+0,!0),b=r().getInt32(k+4,!0),v=r().getInt32(k+8,!0),m=r().getInt32(k+12,!0),I=w,h=b;if(m)throw I=0,h=0,u(v);return s=I,g=h,E(I,h)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function Bn(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_arw(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Pn(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_cr2(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Cn(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_cr3(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function qn(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_dng(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Nn(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_dpx(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Hn(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_exr(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Gn(o,e,n){let i=y(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,d=t.inspect_isobmff(x(o),e,i,a);return u(d)}function Vn(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_tiff(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Kn(o,e){let n=t.inspect_wav(x(o),e);return u(n)}function Xn(o,e){let n=t.is_arriraw12_mxf(x(o),e);return u(n)}function Yn(o,e){let n=t.is_arriraw_mxf(x(o),e);return u(n)}function $n(o,e){let n=t.is_crm(x(o),e);return u(n)}function Jn(o,e){let n=t.is_prores_mxf(x(o),e);return u(n)}function Qn(o,e){let n=t.is_vc3_mxf(x(o),e);return u(n)}function Zn(o,e){let n=t.is_xavc_mxf(x(o),e);return u(n)}function tr(o,e){let n=t.is_xocn_mxf(x(o),e);return u(n)}function er(o,e,n){let i=y(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,d=t.list_isobmff_segments(x(o),e,i,a);return u(d)}function nr(o,e){let n=t.list_mxf_segments(x(o),e);return u(n)}function rr(o,e){let n=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,a=t.list_r3d_frames(x(o),n,i);return u(a)}function _r(o,e){let n=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,a=t.list_r3d_segments(x(o),n,i);return u(a)}function or(o,e){let n=t.list_wav_segments(x(o),e);return u(n)}function ir(o,e,n,i,a,d){try{let b=t.__wbindgen_add_to_stack_pointer(-16),v=l(o,t.__wbindgen_export4),m=p,I=L(e,t.__wbindgen_export4),h=p;t.mux_prores_4444_alpha_samples(b,v,m,I,h,n,i,a,d);var _=r().getInt32(b+0,!0),c=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(_,c).slice();return t.__wbindgen_export3(_,c*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ar(o,e,n,i,a,d){try{let b=t.__wbindgen_add_to_stack_pointer(-16),v=l(o,t.__wbindgen_export4),m=p,I=L(e,t.__wbindgen_export4),h=p;t.mux_prores_samples(b,v,m,I,h,n,i,a,d);var _=r().getInt32(b+0,!0),c=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(_,c).slice();return t.__wbindgen_export3(_,c*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function dr(o,e,n,i,a,d,_,c,s,g,w,b){try{let M=t.__wbindgen_add_to_stack_pointer(-16),O=l(o,t.__wbindgen_export4),F=p,T=L(e,t.__wbindgen_export4),S=p,R=y(_,t.__wbindgen_export4,t.__wbindgen_export5),j=p;t.mux_prores_samples_full(M,O,F,T,S,n,i,a,d,R,j,c,s,g,w,b);var v=r().getInt32(M+0,!0),m=r().getInt32(M+4,!0),I=r().getInt32(M+8,!0),h=r().getInt32(M+12,!0);if(h)throw u(I);var k=f(v,m).slice();return t.__wbindgen_export3(v,m*1,1),k}finally{t.__wbindgen_add_to_stack_pointer(16)}}function cr(o,e,n,i){let a=t.mxf_au_run(x(o),e,n,i);return u(a)}function sr(o,e){let n=t.mxf_frame_index(x(o),e);return u(n)}function pr(o,e){let n=t.mxf_gop_map(x(o),e);return u(n)}function gr(o,e){let n=t.mxf_h264_kind(x(o),e);return u(n)}function ur(o,e){let n,i;try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(o,t.__wbindgen_export4),v=p,m=y(e,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.plan_isobmff_trim(w,b,v,m,I);var a=r().getInt32(w+0,!0),d=r().getInt32(w+4,!0),_=r().getInt32(w+8,!0),c=r().getInt32(w+12,!0),s=a,g=d;if(c)throw s=0,g=0,u(_);return n=s,i=g,E(s,g)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,i,1)}}function wr(o,e,n,i,a){let d=y(a,t.__wbindgen_export4,t.__wbindgen_export5),_=p,c=t.plan_isobmff_trim_reader(x(o),e,n,i,d,_);return u(c)}function br(o){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=y(o,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.plan_mxf_compact_trim(g,w,b);var i=r().getInt32(g+0,!0),a=r().getInt32(g+4,!0),d=r().getInt32(g+8,!0),_=r().getInt32(g+12,!0),c=i,s=a;if(_)throw c=0,s=0,u(d);return e=c,n=s,E(c,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function lr(o,e,n,i){let a=t.plan_mxf_trim(x(o),e,n,i);return u(a)}function fr(o,e,n,i,a,d,_,c){let s,g;try{let v=t.__wbindgen_add_to_stack_pointer(-16),m=l(o,t.__wbindgen_export4),I=p,h=l(e,t.__wbindgen_export4),k=p,M=l(n,t.__wbindgen_export4),O=p,F=l(i,t.__wbindgen_export4),T=p,S=Y(a,t.__wbindgen_export4),R=p,j=Y(d,t.__wbindgen_export4),D=p,C=Y(_,t.__wbindgen_export4),q=p;t.plan_r3d_compact(v,m,I,h,k,M,O,F,T,S,R,j,D,C,q,c);var w=r().getInt32(v+0,!0),b=r().getInt32(v+4,!0);return s=w,g=b,E(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function vr(o,e,n,i){let a,d;try{let v=t.__wbindgen_add_to_stack_pointer(-16),m=l(o,t.__wbindgen_export4),I=p;t.plan_wav_trim(v,m,I,e,n,i);var _=r().getInt32(v+0,!0),c=r().getInt32(v+4,!0),s=r().getInt32(v+8,!0),g=r().getInt32(v+12,!0),w=_,b=c;if(g)throw w=0,b=0,u(s);return a=w,d=b,E(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,d,1)}}function xr(o,e,n,i,a){let d=t.plan_wav_trim_reader(x(o),e,n,i,a);return u(d)}function Ir(o,e,n,i){let a=y(n,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=y(i,t.__wbindgen_export4,t.__wbindgen_export5),c=p,s=t.prepare_isobmff(x(o),e,a,d,_,c);return u(s)}function yr(o,e,n){let i=y(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,d=t.prepare_mxf(x(o),e,i,a);return u(d)}function mr(o,e,n){let i=y(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,d=y(n,t.__wbindgen_export4,t.__wbindgen_export5),_=p,c=t.prepare_r3d(x(o),i,a,d,_);return u(c)}function hr(o,e,n,i){let a=y(n,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.prepare_wav(x(o),e,a,d,i);return u(_)}function kr(o){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.probe_mov(g,w,b);var i=r().getInt32(g+0,!0),a=r().getInt32(g+4,!0),d=r().getInt32(g+8,!0),_=r().getInt32(g+12,!0),c=i,s=a;if(_)throw c=0,s=0,u(d);return e=c,n=s,E(c,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Ar(o,e){let n=t.probe_mxf(x(o),e);return u(n)}function Mr(o,e){let n=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,a=t.probe_r3d(x(o),n,i);return u(a)}function Er(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.prores_band_info(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=nt(e,n).slice();return t.__wbindgen_export3(e,n*4,4),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Tr(o){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(o,t.__wbindgen_export4),_=p;t.prores_raw_container_color(a,d,_);var e=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Or(){t.prores_reset_rate_control()}function Fr(o){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(o,t.__wbindgen_export4),_=p;t.r3d_gpu_develop_params(a,d,_);var e=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Wr(o,e,n){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.r3d_index_ranges(_,c,s,e,n);var i=r().getInt32(_+0,!0),a=r().getInt32(_+4,!0),d=nt(i,a).slice();return t.__wbindgen_export3(i,a*4,4),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Sr(o){let e=l(o,t.__wbindgen_export4),n=p;return t.r3d_is_helium(e,n)!==0}function Lr(o){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.read_arriraw_fcs(g,w,b);var i=r().getInt32(g+0,!0),a=r().getInt32(g+4,!0),d=r().getInt32(g+8,!0),_=r().getInt32(g+12,!0),c=i,s=a;if(_)throw c=0,s=0,u(d);return e=c,n=s,E(c,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Rr(o,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.read_arriraw_unit_correction(d,_,c,e);var n=r().getInt32(d+0,!0),i=r().getInt32(d+4,!0),a=__(n,i).slice();return t.__wbindgen_export3(n,i*8,8),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function jr(o,e,n,i,a,d,_){let c,s;try{let h=t.__wbindgen_add_to_stack_pointer(-16),k=l(o,t.__wbindgen_export4),M=p,O=l(i,t.__wbindgen_export4),F=p,T=y(_,t.__wbindgen_export4,t.__wbindgen_export5),S=p;t.recover_reframe(h,k,M,e,n,O,F,a,d,T,S);var g=r().getInt32(h+0,!0),w=r().getInt32(h+4,!0),b=r().getInt32(h+8,!0),v=r().getInt32(h+12,!0),m=g,I=w;if(v)throw m=0,I=0,u(b);return c=m,s=I,E(m,I)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(c,s,1)}}function zr(o,e,n,i,a,d){try{let b=t.__wbindgen_add_to_stack_pointer(-16),v=W(o,t.__wbindgen_export4),m=p,I=y(d,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.resample_rgba16(b,v,m,e,n,i,a,I,h);var _=r().getInt32(b+0,!0),c=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=gt(_,c).slice();return t.__wbindgen_export3(_,c*2,2),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Dr(o,e,n,i,a,d){try{let b=t.__wbindgen_add_to_stack_pointer(-16),v=l(o,t.__wbindgen_export4),m=p,I=y(d,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.resample_rgba8(b,v,m,e,n,i,a,I,h);var _=r().getInt32(b+0,!0),c=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(_,c).slice();return t.__wbindgen_export3(_,c*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ur(){t.reset_dci_rate_state()}function Br(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.resize_luma_area(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pr(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(o,t.__wbindgen_export4),v=p,m=y(a,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.rgba8_to_xyz12(w,b,v,e,n,i,m,I);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=gt(d,_).slice();return t.__wbindgen_export3(d,_*2,2),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Cr(o,e,n,i){let a,d;try{let v=t.__wbindgen_add_to_stack_pointer(-16),m=W(o,t.__wbindgen_export4),I=p,h=l(e,t.__wbindgen_export4),k=p,M=L(n,t.__wbindgen_export4),O=p,F=y(i,t.__wbindgen_export4,t.__wbindgen_export5),T=p;t.shot_crop(v,m,I,h,k,M,O,F,T);var _=r().getInt32(v+0,!0),c=r().getInt32(v+4,!0),s=r().getInt32(v+8,!0),g=r().getInt32(v+12,!0),w=_,b=c;if(g)throw w=0,b=0,u(s);return a=w,d=b,E(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,d,1)}}function qr(o,e,n){let i,a;try{let b=t.__wbindgen_add_to_stack_pointer(-16),v=W(o,t.__wbindgen_export4),m=p,I=l(e,t.__wbindgen_export4),h=p,k=y(n,t.__wbindgen_export4,t.__wbindgen_export5),M=p;t.shot_ramp(b,v,m,I,h,k,M);var d=r().getInt32(b+0,!0),_=r().getInt32(b+4,!0),c=r().getInt32(b+8,!0),s=r().getInt32(b+12,!0),g=d,w=_;if(s)throw g=0,w=0,u(c);return i=g,a=w,E(g,w)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(i,a,1)}}function Nr(o,e,n,i){let a,d;try{let v=t.__wbindgen_add_to_stack_pointer(-16),m=W(o,t.__wbindgen_export4),I=p,h=l(e,t.__wbindgen_export4),k=p,M=L(n,t.__wbindgen_export4),O=p,F=y(i,t.__wbindgen_export4,t.__wbindgen_export5),T=p;t.shot_scan(v,m,I,h,k,M,O,F,T);var _=r().getInt32(v+0,!0),c=r().getInt32(v+4,!0),s=r().getInt32(v+8,!0),g=r().getInt32(v+12,!0),w=_,b=c;if(g)throw w=0,b=0,u(s);return a=w,d=b,E(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,d,1)}}function Hr(o,e,n,i){let a=y(e,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=y(n,t.__wbindgen_export4,t.__wbindgen_export5),c=p,s=y(i,t.__wbindgen_export4,t.__wbindgen_export5),g=p,w=t.trim_r3d(x(o),a,d,_,c,s,g);return u(w)}function Gr(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.vc3_band_info(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=nt(e,n).slice();return t.__wbindgen_export3(e,n*4,4),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Vr(o){t.video_close(o)}function Kr(o,e,n,i){let a=t.video_decode(o,e,n,i);return u(a)}function Xr(o,e,n){let i=y(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,d=t.video_frame_index_isobmff_reader(x(o),e,i,a);return u(d)}function Yr(o,e){let n=t.video_open(x(o),e);return u(n)}function $r(o,e,n){let i=t.xavc_au(x(o),e,n);return u(i)}function Jr(o,e){let n=t.xavc_frame_count(x(o),e);return u(n)}function Qr(o,e){let n=t.xocn_frame_count(x(o),e);return u(n)}function Zr(o){let e=l(o,t.__wbindgen_export4),n=p;return t.xocn_index_prefix_len(e,n)>>>0}function t_(o){let e=l(o,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_copy_to_typed_array_c5728021fabd0236:function(e,n,i){new Uint8Array(A(i).buffer,A(i).byteOffset,A(i).byteLength).set(f(e,n))},__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(E(e,n))},__wbg__wbg_cb_unref_33c39e13d73b25f6:function(e){A(e)._wbg_cb_unref()},__wbg_call_0e855b388e315e17:function(){return st(function(e,n,i,a){let d=A(e).call(A(n),A(i),A(a));return x(d)},arguments)},__wbg_call_5575218572ead796:function(){return st(function(e,n,i){let a=A(e).call(A(n),A(i));return x(a)},arguments)},__wbg_call_dd0f909cbc9405d0:function(){return st(function(e,n,i,a,d){let _=A(e).call(A(n),A(i),A(a),A(d));return x(_)},arguments)},__wbg_length_589238bdcf171f0e:function(e){return A(e).length},__wbg_new_81880fb5002cb255:function(e){let n=new Uint8Array(A(e));return x(n)},__wbg_new_typed_00a409eb4ec4f2d9:function(e,n){try{var i={a:e,b:n},a=(_,c)=>{let s=i.a;i.a=0;try{return n_(s,i.b,_,c)}finally{i.a=s}};let d=new Promise(a);return x(d)}finally{i.a=0}},__wbg_prototypesetcall_d721637c7ca66eb8:function(e,n,i){Uint8Array.prototype.set.call(f(e,n),A(i))},__wbg_queueMicrotask_1c9b3800e321a967:function(e){let n=A(e).queueMicrotask;return x(n)},__wbg_queueMicrotask_311744e534a929a3:function(e){queueMicrotask(A(e))},__wbg_resolve_d82363d90af6928a:function(e){let n=Promise.resolve(A(e));return x(n)},__wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938:function(){let e=typeof globalThis>"u"?null:globalThis;return B(e)?0:x(e)},__wbg_static_accessor_GLOBAL_ce44e66a4935da8c:function(){let e=typeof global>"u"?null:global;return B(e)?0:x(e)},__wbg_static_accessor_SELF_44f6e0cb5e67cdad:function(){let e=typeof self>"u"?null:self;return B(e)?0:x(e)},__wbg_static_accessor_WINDOW_168f178805d978fe:function(){let e=typeof window>"u"?null:window;return B(e)?0:x(e)},__wbg_then_05edfc8a4fea5106:function(e,n,i){let a=A(e).then(A(n),A(i));return x(a)},__wbg_then_591b6b3a75ee817a:function(e,n){let i=A(e).then(A(n));return x(i)},__wbindgen_cast_0000000000000001:function(e,n){let i=i_(e,n,e_);return x(i)},__wbindgen_cast_0000000000000002:function(e){return x(e)},__wbindgen_cast_0000000000000003:function(e,n){let i=f(e,n);return x(i)},__wbindgen_cast_0000000000000004:function(e,n){let i=E(e,n);return x(i)},__wbindgen_cast_0000000000000005:function(e,n){var i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),x(i)},__wbindgen_object_clone_ref:function(e){let n=A(e);return x(n)},__wbindgen_object_drop_ref:function(e){u(e)}}}}function e_(o,e,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16);t.__wasm_bindgen_func_elem_3199(d,o,e,x(n));var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);if(a)throw u(i)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function n_(o,e,n,i){t.__wasm_bindgen_func_elem_3214(o,e,x(n),x(i))}var wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(o=>t.__wbg_exrbench_free(o,1)),bt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(o=>t.__wbg_exrstreamencoder_free(o,1)),lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(o=>t.__wbg_proresbench_free(o,1)),ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(o=>t.__wbg_proresmovencoder_free(o,1)),vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(o=>t.__wbg_proresmovwriter_free(o,1));function x(o){X===z.length&&z.push(z.length+1);let e=X;return X=z[e],z[e]=o,e}var xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(o=>t.__wbindgen_export2(o.a,o.b));function r_(o){o<1028||(z[o]=X,X=o)}function __(o,e){return o=o>>>0,yt().subarray(o/8,o/8+e)}function gt(o,e){return o=o>>>0,mt().subarray(o/2,o/2+e)}function nt(o,e){return o=o>>>0,ht().subarray(o/4,o/4+e)}function f(o,e){return o=o>>>0,P().subarray(o/1,o/1+e)}var U=null;function r(){return(U===null||U.buffer.detached===!0||U.buffer.detached===void 0&&U.buffer!==t.memory.buffer)&&(U=new DataView(t.memory.buffer)),U}var N=null;function o_(){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 E(o,e){return d_(o>>>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(o){return z[o]}function st(o,e){try{return o.apply(this,e)}catch(n){t.__wbindgen_export(x(n))}}var z=new Array(1024).fill(void 0);z.push(void 0,null,!0,!1);var X=z.length;function B(o){return o==null}function i_(o,e,n){let i={a:o,b:e,cnt:1},a=(...d)=>{i.cnt++;let _=i.a;i.a=0;try{return n(_,i.b,...d)}finally{i.a=_,a._wbg_cb_unref()}};return a._wbg_cb_unref=()=>{--i.cnt===0&&(t.__wbindgen_export2(i.a,i.b),i.a=0,xt.unregister(i))},xt.register(a,i,i),a}function W(o,e){let n=e(o.length*2,2)>>>0;return mt().set(o,n/2),p=o.length,n}function L(o,e){let n=e(o.length*4,4)>>>0;return ht().set(o,n/4),p=o.length,n}function l(o,e){let n=e(o.length*1,1)>>>0;return P().set(o,n/1),p=o.length,n}function ot(o,e){let n=e(o.length*4,4)>>>0;return o_().set(o,n/4),p=o.length,n}function Y(o,e){let n=e(o.length*8,8)>>>0;return yt().set(o,n/8),p=o.length,n}function y(o,e,n){if(n===void 0){let c=$.encode(o),s=e(c.length,1)>>>0;return P().subarray(s,s+c.length).set(c),p=c.length,s}let i=o.length,a=e(i,1)>>>0,d=P(),_=0;for(;_<i;_++){let c=o.charCodeAt(_);if(c>127)break;d[a+_]=c}if(_!==i){_!==0&&(o=o.slice(_)),a=n(a,i,i=_+o.length*3,1)>>>0;let c=P().subarray(a+_,a+i),s=$.encodeInto(o,c);_+=s.written,a=n(a,i,_,1)>>>0}return p=_,a}function u(o){let e=A(o);return r_(o),e}var _t=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});_t.decode();var a_=2146435072,pt=0;function d_(o,e){return pt+=e,pt>=a_&&(_t=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),_t.decode(),pt=e),_t.decode(P().subarray(o,o+e))}var $=new TextEncoder;"encodeInto"in $||($.encodeInto=function(o,e){let n=$.encode(o);return e.set(n),{read:o.length,written:n.length}});var p=0,c_,s_,t;function kt(o,e){return s_=o,t=o.exports,c_=e,U=null,N=null,H=null,G=null,V=null,K=null,t}async function p_(o,e){if(typeof Response=="function"&&o instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(o,e)}catch(a){if(o.ok&&n(o.type)&&o.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 i=await o.arrayBuffer();return await WebAssembly.instantiate(i,e)}else{let i=await WebAssembly.instantiate(o,e);return i instanceof WebAssembly.Instance?{instance:i,module:o}:i}function n(i){switch(i){case"basic":case"cors":case"default":return!0}return!1}}function g_(o){if(t!==void 0)return t;o!==void 0&&(Object.getPrototypeOf(o)===Object.prototype?{module:o}=o:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let e=It();o instanceof WebAssembly.Module||(o=new WebAssembly.Module(o));let n=new WebAssembly.Instance(o,e);return kt(n,o)}async function rt(o){if(t!==void 0)return t;o!==void 0&&(Object.getPrototypeOf(o)===Object.prototype?{module_or_path:o}=o:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),o===void 0&&(o=new URL("media_core_bg.wasm",import.meta.url));let e=It();(typeof o=="string"||typeof Request=="function"&&o instanceof Request||typeof URL=="function"&&o instanceof URL)&&(o=fetch(o));let{instance:n,module:i}=await p_(await o,e);return kt(n,i)}var b_=import.meta.env?.MODE==="development"?["conform.tools","localhost"]:["conform.tools"];var ut=null,u_=!1;function w_(o){return ut||(ut=(async()=>{if(o!==void 0)return rt(o);if(typeof process<"u"&&process.versions?.node){let n="node:fs/promises",{readFile:i}=await import(n),a=await i(new URL("./wasm/media_core_bg.wasm",import.meta.url));return rt({module_or_path:a})}let{default:e}=await import("./media_core_bg-ZMRCKALR.js");return rt({module_or_path:e})})().then(e=>(u_=!0,e))),ut}function I_(){return w_()}export{et as a,Ft as b,Lt as c,zt as d,Xt as e,Jt as f,Qt as g,te as h,ie as i,ae as j,ce as k,se as l,pe as m,ge as n,be as o,le as p,ve as q,Ie as r,Me as s,Se as t,ze as u,Ue as v,Be as w,Pe as x,Ce as y,qe as z,Ne as A,Ge as B,Ke as C,Xe as D,Ye as E,Je as F,Qe as G,Ze as H,tn as I,nn as J,on as K,dn as L,cn as M,sn as N,pn as O,un as P,wn as Q,bn as R,ln as S,fn as T,En as U,Sn as V,zn as W,Cn as X,qn as Y,Nn as Z,Hn as _,Gn as $,Vn as aa,Kn as ba,Xn as ca,Yn as da,Jn as ea,Qn as fa,tr as ga,er as ha,nr as ia,rr as ja,_r as ka,or as la,dr as ma,cr as na,sr as oa,pr as pa,wr as qa,lr as ra,xr as sa,Ir as ta,yr as ua,hr as va,Ar as wa,Mr as xa,Fr as ya,Wr as za,Sr as Aa,Hr as Ba,Vr as Ca,Xr as Da,Zr as Ea,t_ as Fa,At as Ga,I_ as Ha};
@@ -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 a,h as b,i as c,j as d}from"./chunk-L6ERTJHZ.js";import"./chunk-SW6SUAP3.js";import"./chunk-FDUFUJXI.js";import"./chunk-IN6XVTUS.js";import"./chunk-BHBBS26Z.js";import"./chunk-3PVQ5QP4.js";import"./chunk-VFXMP7IF.js";import"./chunk-SMYDU75N.js";import"./chunk-JFEOLU4H.js";import"./chunk-XIFURVIB.js";import"./chunk-V6MI7VE3.js";import"./chunk-EZYCCYY7.js";import"./chunk-KDNIWB5V.js";import"./chunk-LBROV5JN.js";import"./chunk-OSUIS4JU.js";import"./chunk-JV7TZDKJ.js";import"./chunk-BBCQMZQN.js";import"./chunk-NQDVV2PX.js";import"./chunk-XX7QQIBI.js";import"./chunk-5JDF2IUF.js";import"./chunk-RL5XRG6O.js";import"./chunk-IDADYIY6.js";import"./chunk-N34DQ6MH.js";import"./chunk-NU3X7P4N.js";import"./chunk-DCO5D65W.js";import"./chunk-AR5BTVBM.js";import"./chunk-VZ3XYHK4.js";import"./chunk-HNEKQMQG.js";import"./chunk-E75BCWXY.js";import"./chunk-ZPIY5DOU.js";import"./chunk-C2ESM27Z.js";import"./chunk-PSANHDZM.js";export{a as AVID_SETUP,b as FLAME_SETUP,d as adapter,c as setAdapter};
@@ -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}from"./chunk-TK55FA56.js";import{a as J,b as T}from"./chunk-AACY2V3L.js";import{b as _,c as N,g as O}from"./chunk-NQDVV2PX.js";import{b as L}from"./chunk-XX7QQIBI.js";import{b as V,c as b}from"./chunk-5JDF2IUF.js";import{$ as p,A as P,B as x,C as F,D as A,Da as I,Ga as C,Ha as d,N as D,O as z,ha as E,k as w,m as v,n as y,p as R,qa as k,ta as H,x as S,y as M}from"./chunk-DCO5D65W.js";import"./chunk-PSANHDZM.js";function m(e){return(n,t)=>e.read(n,t)}function $(e){let n=e.toLowerCase().trim();return n==="aprn"||n==="aprh"?"prores_raw":n==="apch"||n==="apcn"||n==="apcs"||n==="apco"||n==="ap4h"||n==="ap4x"?"prores":n==="avdn"?"dnxhd":n==="dnxh"?"dnxhr":n==="avc1"||n==="avc3"?"h264":n==="hev1"||n==="hvc1"?"h265":n==="braw"?"braw":e}var g={apco:"Proxy",apcs:"LT",apcn:"422",apch:"HQ",ap4h:"4444",ap4x:"4444 XQ"},Z={1:"bt709",2:"unknown",4:"bt470m",5:"bt470bg",6:"smpte170m",7:"smpte240m",8:"film",9:"bt2020",10:"smpte428",11:"smpte431",12:"smpte432",22:"jedec-p22"},ee={1:"bt709",2:"unknown",4:"gamma22",5:"gamma28",6:"smpte170m",7:"smpte240m",8:"linear",9:"log100",10:"log316",11:"iec61966-2-4",12:"bt1361e",13:"iec61966-2-1",14:"bt2020-10",15:"bt2020-12",16:"smpte2084",17:"smpte428",18:"arib-std-b67"},re={0:"gbr",1:"bt709",2:"unknown",4:"fcc",5:"bt470bg",6:"smpte170m",7:"smpte240m",8:"ycgco",9:"bt2020nc",10:"bt2020c",14:"ictcp"};function ne(e,n){return e==="ap4h"||e==="ap4x"?n===32?"yuva444p12le":"yuv444p12le":e in g?"yuv422p10le":void 0}var B={66:"Baseline",77:"Main",88:"Extended",100:"High",110:"High 10",122:"High 4:2:2",244:"High 4:4:4"},Q={1:"Main",2:"Main 10",3:"Main Still",4:"Rext"},te={1270:"DNxHR 444",1271:"DNxHR HQX",1272:"DNxHR HQ",1273:"DNxHR SQ",1274:"DNxHR LB"};function oe(e,n){if(g[e.codec_fourcc])return`ProRes ${g[e.codec_fourcc]}`;if(e.vc3_cid)return te[e.vc3_cid]??`DNxHD ${e.vc3_cid}`;if(e.video_profile!=null){if(n==="h264"&&B[e.video_profile])return`H.264 ${B[e.video_profile]}`;if(n==="h265"&&Q[e.video_profile])return`HEVC ${Q[e.video_profile]}`}}function ie(e,n){let t=e.video_chroma,r=e.video_bit_depth;if(t==null&&n==="h264"&&[66,77,88].includes(e.video_profile??-1)&&([t,r]=[1,8]),t==null&&e.vc3_cid&&(t=e.vc3_cid===1270||e.vc3_cid===1256?3:2),t==null||r==null)return;let a=["gray","yuv420p","yuv422p","yuv444p"][t];return r>8?`${a}${r}le`:a}function j(e,n){let t=[];for(let r of e){if(r.kind!=="clip"||!r.source_range)continue;let a=r.source_range.start.value,i=r.source_range.duration.value,c=Math.max(0,Math.floor(a)-n),o=Math.floor(a+i-1)+n;o>=c&&t.push({first_frame:c,last_frame:o})}return t}function ae(e,n){return e&&n&&Math.abs(n/e-1)<.001?n:e??n}var he={async inspect(e){await d();let n=e.parts[0],t=await p(m(n),n.fileSize,e.format),r=JSON.parse(t);if(!r)return null;let a=r.timecode&&r.timecode.fps_denominator>0?r.timecode.fps_numerator/r.timecode.fps_denominator:null,i=r.video_fps_numerator&&r.video_fps_denominator?r.video_fps_numerator/r.video_fps_denominator:null,c=ae(a,i),o=$(r.codec_fourcc),l=[{kind:"video",codec:o,width:r.width??void 0,height:r.height??void 0,rate:c??void 0,bit_depth:_(r.codec_fourcc)??_(o)??N(o,r.video_profile)??r.video_bit_depth??void 0,codec_specific:{fourcc:r.codec_fourcc,profile:oe(r,o),pixel_format:ne(r.codec_fourcc,r.video_depth)??ie(r,o),colr:r.colr?{primaries:Z[r.colr.primaries]??r.colr.primaries,transfer:ee[r.colr.transfer]??r.colr.transfer,matrix:re[r.colr.matrix]??r.colr.matrix}:void 0}}];for(let s of r.audio_tracks??(r.audio?[r.audio]:[]))l.push({kind:"audio",codec:s.codec_fourcc,channels:s.channels??void 0,rate:s.sample_rate??void 0,bit_depth:s.bit_depth??void 0,codec_specific:{fourcc:s.codec_fourcc,channel_layout:s.channel_layout??void 0}});return{id:n.filename,kind:"external",target_url:n.filename,available_range:c&&r.duration_seconds?{start:{value:0,rate:c},duration:{value:Math.round(r.duration_seconds*c),rate:c}}:null,reel_name:null,source_timecode:r.timecode?.display??null,container:e.format==="mov"?"mov":e.format,codec:o,size_bytes:n.fileSize,source_fps:c,source_resolution_w:r.width??null,source_resolution_h:r.height??null,source_pixel_aspect:r.par?r.par[0]/r.par[1]:null,streams:l,decode_provenance:r.decode_provenance??null,vendor_metadata:r.timecode?{drop_frame:r.timecode.drop_frame}:{},binding_state:"unbound",raw_extraction:{mov_probe:r},metadata:{}}},async extract(e){await d();let n=e.parts[0],t=JSON.parse(await E(m(n),n.fileSize,e.format));if(t.length===0)return null;let r=JSON.parse(await p(m(n),n.fileSize,e.format)),a=r?$(r.codec_fourcc):e.format,i=r?.timecode&&r.timecode.fps_denominator>0?r.timecode.fps_numerator/r.timecode.fps_denominator:void 0;return{v:1,container:e.format==="mov"?"mov":e.format,codec:a,width:r?.width??void 0,height:r?.height??void 0,fps:i,frame_count:J(t),timecode:r?.timecode?.display??void 0,granularity:T(t),segments:t}},async sparsify(e,n){await d();let t=e.parts[0],r=j(n.items,n.handles),a=await H(m(t),t.fileSize,JSON.stringify(r),e.format),i=JSON.parse(a);return[{filename:t.filename,fileSize:i.fileSize,structuralRanges:i.structuralRanges,essenceRanges:i.essenceRanges,trimInputs:i.trimInputs}]},async trim(e,n){await d();let t=e.parts[0],r=j(n.items,0);if(r.length===0)throw new Error("isobmff trim: no usable trim ranges in items");let a=await L(r,n.handles,(i,c)=>k(m(t),t.fileSize,i,c,e.format));return a.map((i,c)=>{let o=JSON.parse(i);return a.length>1&&(o.output_clip_number=c+1,o.output_clip_count=a.length,o.output_part_number=1),o})},async decode(e,n,t){await d();let r=t.detail==="coarse",a=e.parts[0];if(e.format==="crm"){let s=await R(m(a),a.fileSize,n,r?"preview":"full");return u(s)}let i=await K(e);if(n<0||n>=i.length)throw new b(n,i.length);let c=i[n],o=await a.read(c.offset,c.size);if(e.format==="braw")return u(r?v(o,0):y(o));if(h(o)){let s=await X(e);return u(s?f.decode_prores_raw_tier(o,r?"preview":"full",s):r?P(o,0):x(o))}if(G(o))return u(r?D(o,0):z(o));if(r)return u(S(o,0));let l=await ce(o);return l||u(A(o))},async decode16(e,n){await d();let t=e.parts[0];if(e.format==="crm")throw new Error("crm: no 16-bit decoder");let r=await K(e);if(n<0||n>=r.length)throw new b(n,r.length);let a=r[n],i=await t.read(a.offset,a.size),c=h(i)?await X(e):null,o=e.format==="braw"?w(i):h(i)?c?f.decode_prores_raw_tier(i,"rgb16",c):M(i):G(i)?(()=>{throw new Error("vc3: no 16-bit decoder")})():F(i);return V(o)}};async function ce(e){if(!!0)return null;try{let n=await import("./prores-CFX64NME.js");if(!await n.proresGpuAvailable())return null;let t=await n.decodeProResRgbaGpu(e);return t?{width:t.width,height:t.height,rgba:t.rgba}:null}catch{return null}}function G(e){return e.length>=4&&e[0]===0&&e[1]===0&&e[2]===2&&e[3]===128}function h(e){return e.length>=8&&e[4]===112&&e[5]===114&&e[6]===114&&e[7]===102}function u(e){let n=new DataView(e.buffer,e.byteOffset,8);return{width:n.getUint32(0,!0),height:n.getUint32(4,!0),rgba:e.slice(8)}}var f=C,W=new WeakMap;function X(e){let n=W.get(e);if(!n){let t=e.parts[0];n=f.prores_raw_container_color&&f.decode_prores_raw_tier?U({fileSize:t.fileSize,read:t.read}).then(r=>{let a=f.prores_raw_container_color(r);return a.length?a:null}):Promise.resolve(null),W.set(e,n)}return n}var q=new WeakMap;async function K(e){let n=q.get(e);if(!n){let t=e.parts[0],r=O(await I(m(t),t.fileSize,e.format));if(!r.w||!r.h)throw new Error("could not find a video sample table");n=r.offs,q.set(e,n)}return n}export{he as isobmffFormat,ae as movFrameRate};
@@ -1,9 +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 wt(_,n){return new Promise(e=>{_.addEventListener("message",function o({data:a}){a?.type===n&&(_.removeEventListener("message",o),e(a))})})}wt(self,"wasm_bindgen_worker_init").then(async({init:_,receiver:n})=>{let e=await import("./media_core-KHSB6EFN.js");await e.default(_),postMessage({type:"wasm_bindgen_worker_ready"}),e.wbg_rayon_start_worker(n)});var Tt;async function bt(_,n,e){if(e.numThreads()===0)throw new Error("num_threads must be > 0.");let o={type:"wasm_bindgen_worker_init",init:{module_or_path:_,memory:n},receiver:e.receiver()};Tt=await Promise.all(Array.from({length:e.numThreads()},async()=>{let a=new Worker(new URL("./workerHelpers.js",import.meta.url),{type:"module"});return a.postMessage(o),await wt(a,"wasm_bindgen_worker_ready"),a})),e.build()}var et=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_exrbench_free(n,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(n,e,o,a){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=y(a,t.__wbindgen_export4,t.__wbindgen_export5),w=p;t.exrbench_new(s,n,e,o,g,w);var c=r().getInt32(s+0,!0),i=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0);if(d)throw u(i);return this.__wbg_ptr=c,ft.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}piz_stage_block(n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_piz_stage_block(c,this.__wbg_ptr,n);var e=r().getFloat64(c+0,!0),o=r().getInt32(c+8,!0),a=r().getInt32(c+12,!0);if(a)throw u(o);return e}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(n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_zip_stage_block(c,this.__wbg_ptr,n);var e=r().getFloat64(c+0,!0),o=r().getInt32(c+8,!0),a=r().getInt32(c+12,!0);if(a)throw u(o);return e}finally{t.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(et.prototype[Symbol.dispose]=et.prototype.free);var nt=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,vt.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_exrstreamencoder_free(n,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 n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*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 n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}n_blocks(){return t.exrstreamencoder_n_blocks(this.__wbg_ptr)>>>0}constructor(n,e,o,a,c,i,d,s,g,w){try{let I=t.__wbindgen_add_to_stack_pointer(-16),k=y(o,t.__wbindgen_export4,t.__wbindgen_export5),A=p,F=y(a,t.__wbindgen_export4,t.__wbindgen_export5),R=p,z=y(c,t.__wbindgen_export4,t.__wbindgen_export5),M=p,T=y(i,t.__wbindgen_export4,t.__wbindgen_export5),U=p,O=y(s,t.__wbindgen_export4,t.__wbindgen_export5),q=p;t.exrstreamencoder_new(I,n,e,k,A,F,R,z,M,T,U,d,O,q,g,w);var b=r().getInt32(I+0,!0),x=r().getInt32(I+4,!0),m=r().getInt32(I+8,!0);if(m)throw u(x);return this.__wbg_ptr=b,vt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_block(n){try{let d=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_push_block(d,this.__wbg_ptr,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,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&&(nt.prototype[Symbol.dispose]=nt.prototype.free);var rt=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,xt.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_proresbench_free(n,0)}constructor(n,e,o,a){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=y(o,t.__wbindgen_export4,t.__wbindgen_export5),w=p;t.proresbench_new(s,n,e,g,w,a);var c=r().getInt32(s+0,!0),i=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0);if(d)throw u(i);return this.__wbg_ptr=c,xt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}stage(n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.proresbench_stage(c,this.__wbg_ptr,n);var e=r().getFloat64(c+0,!0),o=r().getInt32(c+8,!0),a=r().getInt32(c+12,!0);if(a)throw u(o);return e}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&&(rt.prototype[Symbol.dispose]=rt.prototype.free);var _t=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,It.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_proresmovencoder_free(n,0)}add_frame_rgba(n){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(n,t.__wbindgen_export4),i=p;t.proresmovencoder_add_frame_rgba(a,this.__wbg_ptr,c,i);var e=r().getInt32(a+0,!0),o=r().getInt32(a+4,!0);if(o)throw u(e)}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 n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovencoder_frame_count(this.__wbg_ptr)>>>0}constructor(n,e,o,a){let c=t.proresmovencoder_new(n,e,o,a);return this.__wbg_ptr=c,It.register(this,this.__wbg_ptr,this),this}set_alpha(n){t.proresmovencoder_set_alpha(this.__wbg_ptr,n)}set_bitrate_mbps(n){t.proresmovencoder_set_bitrate_mbps(this.__wbg_ptr,n)}set_qscale(n){t.proresmovencoder_set_qscale(this.__wbg_ptr,n)}};Symbol.dispose&&(_t.prototype[Symbol.dispose]=_t.prototype.free);var ot=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,yt.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_proresmovwriter_free(n,0)}finish(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_finish(a,this.__wbg_ptr);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*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 n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*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 n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_offset(){return t.proresmovwriter_mdat_box_offset(this.__wbg_ptr)}constructor(n,e,o,a){let c=t.proresmovwriter_new(n,e,o,a);return this.__wbg_ptr=c,yt.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 n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample(n){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(n,t.__wbindgen_export4),i=p;t.proresmovwriter_push_sample(a,this.__wbg_ptr,c,i);var e=r().getInt32(a+0,!0),o=r().getInt32(a+4,!0);if(o)throw u(e)}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample_len(n){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_sample_len(a,this.__wbg_ptr,n);var e=r().getInt32(a+0,!0),o=r().getInt32(a+4,!0);if(o)throw u(e)}finally{t.__wbindgen_add_to_stack_pointer(16)}}reserve_large_mdat(n){t.proresmovwriter_reserve_large_mdat(this.__wbg_ptr,n)}set_alpha(n){t.proresmovwriter_set_alpha(this.__wbg_ptr,n)}set_bitrate_mbps(n){t.proresmovwriter_set_bitrate_mbps(this.__wbg_ptr,n)}set_par(n,e){t.proresmovwriter_set_par(this.__wbg_ptr,n,e)}set_profile(n){let e=y(n,t.__wbindgen_export4,t.__wbindgen_export5),o=p;t.proresmovwriter_set_profile(this.__wbg_ptr,e,o)}set_qscale(n){t.proresmovwriter_set_qscale(this.__wbg_ptr,n)}set_start_timecode(n,e){t.proresmovwriter_set_start_timecode(this.__wbg_ptr,n,e)}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&&(ot.prototype[Symbol.dispose]=ot.prototype.free);function Nt(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.arriraw12_clip_info(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Gt(_,n,e,o){var a=E(o)?0:y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p;let i=t.arriraw_mxf_gpu_frame(v(_),n,e,a,c);return u(i)}function Xt(_,n,e){let o=t.audio_aac_au(v(_),n,e);return u(o)}function Yt(_,n){let e=t.audio_aac_config(v(_),n);return u(e)}function Jt(_,n){let e=t.audio_info(v(_),n);return u(e)}function Kt(_){let n=it(_,t.__wbindgen_export4),e=p;return t.bench_f32_boundary(n,e)}function Qt(_,n,e,o){let a=it(_,t.__wbindgen_export4),c=p;return t.bench_piz_no_huffman(a,c,n,e,o)}function Zt(_,n){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=y(_,t.__wbindgen_export4,t.__wbindgen_export5),s=p;var e=it(n,t.__wbindgen_export4),o=p;t.color_cst(i,d,s,e,o,v(n));var a=r().getInt32(i+0,!0),c=r().getInt32(i+4,!0);if(c)throw u(a)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $t(_,n,e){let o=W(_,t.__wbindgen_export4),a=p;return t.dci_code_full_depth(o,a,n,e)}function te(_,n,e){return t.dci_frame_cap(_,n,e)>>>0}function ee(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p,w=y(n,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.dci_gpu_colour_patch(d,s,g,w,b);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=ut(e,o).slice();return t.__wbindgen_export3(e,o*2,2),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ne(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=y(_,t.__wbindgen_export4,t.__wbindgen_export5),s=p;t.dci_gpu_colour_tables(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function re(){try{let o=t.__wbindgen_add_to_stack_pointer(-16);t.dci_last_pass_caps(o);var _=r().getInt32(o+0,!0),n=r().getInt32(o+4,!0),e=$(_,n).slice();return t.__wbindgen_export3(_,n*4,4),e}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _e(_,n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.dci_legal_rates(c,_,n);var e=r().getInt32(c+0,!0),o=r().getInt32(c+4,!0),a=$(e,o).slice();return t.__wbindgen_export3(e,o*4,4),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function oe(_){return t.dci_mq_bench(_)>>>0}function ie(_,n,e,o,a,c,i,d,s,g,w){try{let A=t.__wbindgen_add_to_stack_pointer(-16),F=S(_,t.__wbindgen_export4),R=p,z=l(n,t.__wbindgen_export4),M=p,T=S(e,t.__wbindgen_export4),U=p,O=S(o,t.__wbindgen_export4),q=p,P=S(a,t.__wbindgen_export4),B=p,at=S(c,t.__wbindgen_export4),ct=p,dt=S(i,t.__wbindgen_export4),st=p,zt=S(d,t.__wbindgen_export4),Wt=p;t.dci_pack_tier1(A,F,R,z,M,T,U,O,q,P,B,at,ct,dt,st,zt,Wt,s,g,w);var b=r().getInt32(A+0,!0),x=r().getInt32(A+4,!0),m=r().getInt32(A+8,!0),I=r().getInt32(A+12,!0);if(I)throw u(m);var k=f(b,x).slice();return t.__wbindgen_export3(b,x*1,1),k}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ae(_,n){let e=t.dci_stage_rgba8(_,n);return u(e)}function ce(_,n,e){let o=W(_,t.__wbindgen_export4),a=p;return t.dci_transform_only(o,a,n,e)}function de(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p,w=l(n,t.__wbindgen_export4),b=p;t.decode_arriraw12_luma(d,s,g,w,b);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function se(_,n,e,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_arriraw12_mxf(v(_),n,e,a,c);return u(i)}function pe(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p,b=l(n,t.__wbindgen_export4),x=p;t.decode_arriraw12_preview(s,g,w,b,x,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(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 ge(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p,w=l(n,t.__wbindgen_export4),b=p;t.decode_arriraw12_rgba(d,s,g,w,b);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ue(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p;t.decode_arriraw_luma(s,g,w,n,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(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 we(_,n,e,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_arriraw_mxf(v(_),n,e,a,c);return u(i)}function be(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.decode_arriraw_preview(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(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 le(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.decode_arriraw_preview_gray(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(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 fe(_,n,e,o,a,c,i,d,s){try{let A=t.__wbindgen_add_to_stack_pointer(-16),F=l(_,t.__wbindgen_export4),R=p;var g=E(s)?0:J(s,t.__wbindgen_export4),w=p;t.decode_arriraw_preview_meta(A,F,R,n,e,o,a,c,i,d,g,w);var b=r().getInt32(A+0,!0),x=r().getInt32(A+4,!0),m=r().getInt32(A+8,!0),I=r().getInt32(A+12,!0);if(I)throw u(m);var k=f(b,x).slice();return t.__wbindgen_export3(b,x*1,1),k}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ve(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p;t.decode_arriraw_rgba(s,g,w,n,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(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 xe(_,n,e,o,a,c,i,d){try{let k=t.__wbindgen_add_to_stack_pointer(-16),A=l(_,t.__wbindgen_export4),F=p;var s=E(d)?0:J(d,t.__wbindgen_export4),g=p;t.decode_arriraw_rgba_meta(k,A,F,n,e,o,a,c,i,s,g);var w=r().getInt32(k+0,!0),b=r().getInt32(k+4,!0),x=r().getInt32(k+8,!0),m=r().getInt32(k+12,!0);if(m)throw u(x);var I=f(w,b).slice();return t.__wbindgen_export3(w,b*1,1),I}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ie(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_arw_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ye(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_arw_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function me(_,n,e,o){let a=t.decode_audio_pcm(v(_),n,e,o);return u(a)}function he(_,n,e,o,a){let c=t.decode_audio_track_pcm(v(_),n,e,o,a);return u(c)}function ke(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_bmp_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ae(_){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(_,t.__wbindgen_export4),i=p;t.decode_braw_gen5log(a,c,i);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fe(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_braw_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function je(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_braw_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Me(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_braw_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Re(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_cr2_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ze(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_cr2_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function We(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_cr3_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Te(_,n,e,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_crm(v(_),n,e,a,c);return u(i)}function Se(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_dng_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ue(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_dng_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Oe(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_dpx_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Le(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_dpx_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function qe(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_dv_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ee(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_dv_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function De(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_dv_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pe(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_exr_linear(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Be(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_exr_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ce(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_exr_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ve(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_gif_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function He(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_heic_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ne(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_j2k_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ge(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_j2k_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Xe(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_j2k_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ye(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_jpeg_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Je(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_mpeg2_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ke(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_mpeg2_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qe(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_mpeg2_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ze(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_png_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $e(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p;t.decode_prores_band_rgba(s,g,w,n,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(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 tn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function en(_,n,e,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_prores_mxf(v(_),n,e,a,c);return u(i)}function nn(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_prores_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function rn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_raw_acescct(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _n(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_raw_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function on(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_prores_raw_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function an(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_raw_rec2020(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function cn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_raw_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function dn(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p,b=y(n,t.__wbindgen_export4,t.__wbindgen_export5),x=p,m=l(e,t.__wbindgen_export4),I=p;t.decode_prores_raw_tier(s,g,w,b,x,m,I);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(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 sn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_rgb16(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function gn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_thumb_dc32(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function un(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_psd_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function wn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_r3d_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function bn(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_r3d_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ln(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p,b=l(n,t.__wbindgen_export4),x=p;t.decode_r3d_preview_clip(s,g,w,b,x,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(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 fn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_r3d_rgb16(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function vn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_r3d_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xn(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p,w=l(n,t.__wbindgen_export4),b=p;t.decode_r3d_rgba_clip(d,s,g,w,b);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function In(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_tga_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function yn(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_tiff_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function mn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_tiff_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function hn(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p;t.decode_vc3_band_rgba(s,g,w,n,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(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 kn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_vc3_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function An(_,n,e,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_vc3_mxf(v(_),n,e,a,c);return u(i)}function Fn(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_vc3_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function jn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_vc3_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Mn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_webp_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Rn(_){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(_,t.__wbindgen_export4),i=p;t.decode_xocn_index_luma(a,c,i);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function zn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_xocn_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Wn(_,n,e,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_xocn_mxf(v(_),n,e,a,c);return u(i)}function Tn(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_xocn_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Sn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_xocn_preview_rec709(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Un(_){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(_,t.__wbindgen_export4),i=p;t.decode_xocn_rgb16(a,c,i);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function On(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_xocn_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ln(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=W(_,t.__wbindgen_export4),b=p;t.encode_dci_j2c(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(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 qn(_,n,e,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=W(_,t.__wbindgen_export4),m=p,I=y(e,t.__wbindgen_export4,t.__wbindgen_export5),k=p;t.encode_dci_j2c_rgb(b,x,m,n,I,k,o,a,c);var i=r().getInt32(b+0,!0),d=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function En(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(_,t.__wbindgen_export4),x=p,m=y(n,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.encode_dci_j2c_rgba8(w,b,x,m,I,e,o,a);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(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(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=y(o,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged(w,_,n,e,b,x,a);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(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 Pn(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=y(o,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged_modelled(w,_,n,e,b,x,a);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(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 Bn(_,n,e,o,a,c,i,d,s,g,w,b,x,m,I){try{let M=t.__wbindgen_add_to_stack_pointer(-16),T=it(_,t.__wbindgen_export4),U=p,O=y(a,t.__wbindgen_export4,t.__wbindgen_export5),q=p,P=y(c,t.__wbindgen_export4,t.__wbindgen_export5),B=p,at=y(i,t.__wbindgen_export4,t.__wbindgen_export5),ct=p,dt=y(x,t.__wbindgen_export4,t.__wbindgen_export5),st=p;t.encode_exr(M,T,U,n,e,o,O,q,P,B,at,ct,d,s,g,w,b,dt,st,m,I);var k=r().getInt32(M+0,!0),A=r().getInt32(M+4,!0),F=r().getInt32(M+8,!0),R=r().getInt32(M+12,!0);if(R)throw u(F);var z=f(k,A).slice();return t.__wbindgen_export3(k,A*1,1),z}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Cn(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(_,t.__wbindgen_export4),x=p;t.encode_prores_4444_alpha_mov_rgba(w,b,x,n,e,o,a);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(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 Vn(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.encode_prores_4444_alpha_sample_q(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(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 Hn(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(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 Nn(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=W(_,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr_rgb16(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(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(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=W(_,t.__wbindgen_export4),x=p,m=W(a,t.__wbindgen_export4),I=p;t.encode_prores_444_sample_cbr_rgb16_lut(w,b,x,n,e,o,m,I);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(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 Xn(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(_,t.__wbindgen_export4),x=p;t.encode_prores_mov_rgba(w,b,x,n,e,o,a);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(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 Yn(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p;t.encode_prores_rgba(s,g,w,n,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(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 Jn(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(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 Kn(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=W(_,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr_rgb16(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(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 Qn(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=W(_,t.__wbindgen_export4),x=p,m=W(a,t.__wbindgen_export4),I=p;t.encode_prores_sample_cbr_rgb16_lut(w,b,x,n,e,o,m,I);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(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 Zn(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.encode_prores_sample_q(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(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 $n(_,n,e,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=y(_,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.exr_sequence_filename(x,m,I,n,e,o);var i=r().getInt32(x+0,!0),d=r().getInt32(x+4,!0),s=r().getInt32(x+8,!0),g=r().getInt32(x+12,!0),w=i,b=d;if(g)throw w=0,b=0,u(s);return a=w,c=b,j(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function tr(_,n,e,o,a,c,i,d){let s,g;try{let A=t.__wbindgen_add_to_stack_pointer(-16),F=l(_,t.__wbindgen_export4),R=p,z=l(o,t.__wbindgen_export4),M=p,T=y(d,t.__wbindgen_export4,t.__wbindgen_export5),U=p;t.fit_sizing(A,F,R,n,e,z,M,a,c,i,T,U);var w=r().getInt32(A+0,!0),b=r().getInt32(A+4,!0),x=r().getInt32(A+8,!0),m=r().getInt32(A+12,!0),I=w,k=b;if(m)throw I=0,k=0,u(x);return s=I,g=k,j(I,k)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function er(_){let n=t.initThreadPool(_);return u(n)}function nr(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_arw(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function rr(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_cr2(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function _r(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_cr3(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function or(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_dng(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function ir(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_dpx(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function ar(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_exr(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function cr(_,n,e){let o=y(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.inspect_isobmff(v(_),n,o,a);return u(c)}function dr(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_tiff(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function sr(_,n){let e=t.inspect_wav(v(_),n);return u(e)}function pr(_,n){let e=t.is_arriraw12_mxf(v(_),n);return u(e)}function gr(_,n){let e=t.is_arriraw_mxf(v(_),n);return u(e)}function ur(_,n){let e=t.is_crm(v(_),n);return u(e)}function wr(_,n){let e=t.is_prores_mxf(v(_),n);return u(e)}function br(_,n){let e=t.is_vc3_mxf(v(_),n);return u(e)}function lr(_,n){let e=t.is_xavc_mxf(v(_),n);return u(e)}function fr(_,n){let e=t.is_xocn_mxf(v(_),n);return u(e)}function vr(_,n,e){let o=y(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.list_isobmff_segments(v(_),n,o,a);return u(c)}function xr(_,n){let e=t.list_mxf_segments(v(_),n);return u(e)}function Ir(_,n){let e=y(n,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.list_r3d_frames(v(_),e,o);return u(a)}function yr(_,n){let e=y(n,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.list_r3d_segments(v(_),e,o);return u(a)}function mr(_,n){let e=t.list_wav_segments(v(_),n);return u(e)}function hr(_,n,e,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(_,t.__wbindgen_export4),m=p,I=S(n,t.__wbindgen_export4),k=p;t.mux_prores_4444_alpha_samples(b,x,m,I,k,e,o,a,c);var i=r().getInt32(b+0,!0),d=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function kr(_,n,e,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(_,t.__wbindgen_export4),m=p,I=S(n,t.__wbindgen_export4),k=p;t.mux_prores_samples(b,x,m,I,k,e,o,a,c);var i=r().getInt32(b+0,!0),d=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ar(_,n,e,o,a,c,i,d,s,g,w,b){try{let F=t.__wbindgen_add_to_stack_pointer(-16),R=l(_,t.__wbindgen_export4),z=p,M=S(n,t.__wbindgen_export4),T=p,U=y(i,t.__wbindgen_export4,t.__wbindgen_export5),O=p;t.mux_prores_samples_full(F,R,z,M,T,e,o,a,c,U,O,d,s,g,w,b);var x=r().getInt32(F+0,!0),m=r().getInt32(F+4,!0),I=r().getInt32(F+8,!0),k=r().getInt32(F+12,!0);if(k)throw u(I);var A=f(x,m).slice();return t.__wbindgen_export3(x,m*1,1),A}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fr(_,n,e,o){let a=t.mxf_au_run(v(_),n,e,o);return u(a)}function jr(_,n){let e=t.mxf_frame_index(v(_),n);return u(e)}function Mr(_,n){let e=t.mxf_gop_map(v(_),n);return u(e)}function Rr(_,n){let e=t.mxf_h264_kind(v(_),n);return u(e)}function zr(_,n){let e,o;try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(_,t.__wbindgen_export4),x=p,m=y(n,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.plan_isobmff_trim(w,b,x,m,I);var a=r().getInt32(w+0,!0),c=r().getInt32(w+4,!0),i=r().getInt32(w+8,!0),d=r().getInt32(w+12,!0),s=a,g=c;if(d)throw s=0,g=0,u(i);return e=s,o=g,j(s,g)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,o,1)}}function Wr(_,n,e,o,a){let c=y(a,t.__wbindgen_export4,t.__wbindgen_export5),i=p,d=t.plan_isobmff_trim_reader(v(_),n,e,o,c,i);return u(d)}function Tr(_){let n,e;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=y(_,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.plan_mxf_compact_trim(g,w,b);var o=r().getInt32(g+0,!0),a=r().getInt32(g+4,!0),c=r().getInt32(g+8,!0),i=r().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,u(c);return n=d,e=s,j(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Sr(_,n,e,o){let a=t.plan_mxf_trim(v(_),n,e,o);return u(a)}function Ur(_,n,e,o,a,c,i,d){let s,g;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=l(_,t.__wbindgen_export4),I=p,k=l(n,t.__wbindgen_export4),A=p,F=l(e,t.__wbindgen_export4),R=p,z=l(o,t.__wbindgen_export4),M=p,T=J(a,t.__wbindgen_export4),U=p,O=J(c,t.__wbindgen_export4),q=p,P=J(i,t.__wbindgen_export4),B=p;t.plan_r3d_compact(x,m,I,k,A,F,R,z,M,T,U,O,q,P,B,d);var w=r().getInt32(x+0,!0),b=r().getInt32(x+4,!0);return s=w,g=b,j(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function Or(_,n,e,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=l(_,t.__wbindgen_export4),I=p;t.plan_wav_trim(x,m,I,n,e,o);var i=r().getInt32(x+0,!0),d=r().getInt32(x+4,!0),s=r().getInt32(x+8,!0),g=r().getInt32(x+12,!0),w=i,b=d;if(g)throw w=0,b=0,u(s);return a=w,c=b,j(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function Lr(_,n,e,o,a){let c=t.plan_wav_trim_reader(v(_),n,e,o,a);return u(c)}function qr(_,n,e,o){let a=y(e,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=y(o,t.__wbindgen_export4,t.__wbindgen_export5),d=p,s=t.prepare_isobmff(v(_),n,a,c,i,d);return u(s)}function Er(_,n,e){let o=y(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.prepare_mxf(v(_),n,o,a);return u(c)}function Dr(_,n,e){let o=y(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,d=t.prepare_r3d(v(_),o,a,c,i);return u(d)}function Pr(_,n,e,o){let a=y(e,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.prepare_wav(v(_),n,a,c,o);return u(i)}function Br(_){let n,e;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.probe_mov(g,w,b);var o=r().getInt32(g+0,!0),a=r().getInt32(g+4,!0),c=r().getInt32(g+8,!0),i=r().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,u(c);return n=d,e=s,j(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Cr(_,n){let e=t.probe_mxf(v(_),n);return u(e)}function Vr(_,n){let e=y(n,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.probe_r3d(v(_),e,o);return u(a)}function Hr(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.prores_band_info(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=$(n,e).slice();return t.__wbindgen_export3(n,e*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Nr(_){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(_,t.__wbindgen_export4),i=p;t.prores_raw_container_color(a,c,i);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Gr(){t.prores_reset_rate_control()}function Xr(_){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(_,t.__wbindgen_export4),i=p;t.r3d_gpu_develop_params(a,c,i);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Yr(_,n,e){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.r3d_index_ranges(i,d,s,n,e);var o=r().getInt32(i+0,!0),a=r().getInt32(i+4,!0),c=$(o,a).slice();return t.__wbindgen_export3(o,a*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Jr(_){let n=l(_,t.__wbindgen_export4),e=p;return t.r3d_is_helium(n,e)!==0}function Kr(_){let n,e;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.read_arriraw_fcs(g,w,b);var o=r().getInt32(g+0,!0),a=r().getInt32(g+4,!0),c=r().getInt32(g+8,!0),i=r().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,u(c);return n=d,e=s,j(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Qr(_,n){try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.read_arriraw_unit_correction(c,i,d,n);var e=r().getInt32(c+0,!0),o=r().getInt32(c+4,!0),a=qt(e,o).slice();return t.__wbindgen_export3(e,o*8,8),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Zr(_,n,e,o,a,c,i){let d,s;try{let k=t.__wbindgen_add_to_stack_pointer(-16),A=l(_,t.__wbindgen_export4),F=p,R=l(o,t.__wbindgen_export4),z=p,M=y(i,t.__wbindgen_export4,t.__wbindgen_export5),T=p;t.recover_reframe(k,A,F,n,e,R,z,a,c,M,T);var g=r().getInt32(k+0,!0),w=r().getInt32(k+4,!0),b=r().getInt32(k+8,!0),x=r().getInt32(k+12,!0),m=g,I=w;if(x)throw m=0,I=0,u(b);return d=m,s=I,j(m,I)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(d,s,1)}}function $r(_,n,e,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=W(_,t.__wbindgen_export4),m=p,I=y(c,t.__wbindgen_export4,t.__wbindgen_export5),k=p;t.resample_rgba16(b,x,m,n,e,o,a,I,k);var i=r().getInt32(b+0,!0),d=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=ut(i,d).slice();return t.__wbindgen_export3(i,d*2,2),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function t_(_,n,e,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(_,t.__wbindgen_export4),m=p,I=y(c,t.__wbindgen_export4,t.__wbindgen_export5),k=p;t.resample_rgba8(b,x,m,n,e,o,a,I,k);var i=r().getInt32(b+0,!0),d=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function e_(){t.reset_dci_rate_state()}function n_(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.resize_luma_area(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(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 r_(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(_,t.__wbindgen_export4),x=p,m=y(a,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.rgba8_to_xyz12(w,b,x,n,e,o,m,I);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(d);var g=ut(c,i).slice();return t.__wbindgen_export3(c,i*2,2),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function __(_,n,e,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=W(_,t.__wbindgen_export4),I=p,k=l(n,t.__wbindgen_export4),A=p,F=S(e,t.__wbindgen_export4),R=p,z=y(o,t.__wbindgen_export4,t.__wbindgen_export5),M=p;t.shot_crop(x,m,I,k,A,F,R,z,M);var i=r().getInt32(x+0,!0),d=r().getInt32(x+4,!0),s=r().getInt32(x+8,!0),g=r().getInt32(x+12,!0),w=i,b=d;if(g)throw w=0,b=0,u(s);return a=w,c=b,j(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function o_(_,n,e){let o,a;try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=W(_,t.__wbindgen_export4),m=p,I=l(n,t.__wbindgen_export4),k=p,A=y(e,t.__wbindgen_export4,t.__wbindgen_export5),F=p;t.shot_ramp(b,x,m,I,k,A,F);var c=r().getInt32(b+0,!0),i=r().getInt32(b+4,!0),d=r().getInt32(b+8,!0),s=r().getInt32(b+12,!0),g=c,w=i;if(s)throw g=0,w=0,u(d);return o=g,a=w,j(g,w)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(o,a,1)}}function i_(_,n,e,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=W(_,t.__wbindgen_export4),I=p,k=l(n,t.__wbindgen_export4),A=p,F=S(e,t.__wbindgen_export4),R=p,z=y(o,t.__wbindgen_export4,t.__wbindgen_export5),M=p;t.shot_scan(x,m,I,k,A,F,R,z,M);var i=r().getInt32(x+0,!0),d=r().getInt32(x+4,!0),s=r().getInt32(x+8,!0),g=r().getInt32(x+12,!0),w=i,b=d;if(g)throw w=0,b=0,u(s);return a=w,c=b,j(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function a_(_,n,e,o){let a=y(n,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=y(e,t.__wbindgen_export4,t.__wbindgen_export5),d=p,s=y(o,t.__wbindgen_export4,t.__wbindgen_export5),g=p,w=t.trim_r3d(v(_),a,c,i,d,s,g);return u(w)}function c_(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.vc3_band_info(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=$(n,e).slice();return t.__wbindgen_export3(n,e*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function d_(_){t.video_close(_)}function s_(_,n,e,o){let a=t.video_decode(_,n,e,o);return u(a)}function p_(_,n,e){let o=y(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.video_frame_index_isobmff_reader(v(_),n,o,a);return u(c)}function g_(_,n){let e=t.video_open(v(_),n);return u(e)}var Z=class _{static __wrap(n){let e=Object.create(_.prototype);return e.__wbg_ptr=n,mt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,mt.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_wbg_rayon_poolbuilder_free(n,0)}build(){t.wbg_rayon_poolbuilder_build(this.__wbg_ptr)}numThreads(){return t.wbg_rayon_poolbuilder_numThreads(this.__wbg_ptr)>>>0}receiver(){return t.wbg_rayon_poolbuilder_receiver(this.__wbg_ptr)>>>0}};Symbol.dispose&&(Z.prototype[Symbol.dispose]=Z.prototype.free);function u_(_){t.wbg_rayon_start_worker(_)}function w_(_,n,e){let o=t.xavc_au(v(_),n,e);return u(o)}function b_(_,n){let e=t.xavc_frame_count(v(_),n);return u(e)}function l_(_,n){let e=t.xocn_frame_count(v(_),n);return u(e)}function f_(_){let n=l(_,t.__wbindgen_export4),e=p;return t.xocn_index_prefix_len(n,e)>>>0}function v_(_){let n=l(_,t.__wbindgen_export4),e=p;return t.xocn_preview_prefix_len(n,e)>>>0}function kt(_){return{__proto__:null,"./media_core_bg.js":{__proto__:null,__wbg___wbindgen_copy_to_typed_array_c5728021fabd0236:function(e,o,a){new Uint8Array(h(a).buffer,h(a).byteOffset,h(a).byteLength).set(f(e,o))},__wbg___wbindgen_is_function_acc5528be2b923f2:function(e){return typeof h(e)=="function"},__wbg___wbindgen_is_undefined_721f8decd50c87a3:function(e){return h(e)===void 0},__wbg___wbindgen_memory_9751d9a3017e7c25:function(){let e=t.memory;return v(e)},__wbg___wbindgen_module_f86f28f0f85995dd:function(){return v(Mt)},__wbg___wbindgen_rethrow_858623e73c3311dc:function(e){throw u(e)},__wbg___wbindgen_throw_ea4887a5f8f9a9db:function(e,o){throw new Error(j(e,o))},__wbg__wbg_cb_unref_33c39e13d73b25f6:function(e){h(e)._wbg_cb_unref()},__wbg_async_4ec36f08efecafdc:function(e){return h(e).async},__wbg_buffer_49b4f592d8036785:function(e){let o=h(e).buffer;return v(o)},__wbg_call_0e855b388e315e17:function(){return tt(function(e,o,a,c){let i=h(e).call(h(o),h(a),h(c));return v(i)},arguments)},__wbg_call_5575218572ead796:function(){return tt(function(e,o,a){let c=h(e).call(h(o),h(a));return v(c)},arguments)},__wbg_call_dd0f909cbc9405d0:function(){return tt(function(e,o,a,c,i){let d=h(e).call(h(o),h(a),h(c),h(i));return v(d)},arguments)},__wbg_data_23c14f7d1102d077:function(e){let o=h(e).data;return v(o)},__wbg_instanceof_Window_0d356b88a2f77c42:function(e){let o;try{o=h(e)instanceof Window}catch{o=!1}return o},__wbg_length_589238bdcf171f0e:function(e){return h(e).length},__wbg_new_476e05fb84d8e4f3:function(e){let o=new Int32Array(h(e));return v(o)},__wbg_new_81880fb5002cb255:function(e){let o=new Uint8Array(h(e));return v(o)},__wbg_new_f85beb941dc6d8aa:function(e,o){try{var a={a:e,b:o},c=(d,s)=>{let g=a.a;a.a=0;try{return lt(g,a.b,d,s)}finally{a.a=g}};let i=new Promise(c);return v(i)}finally{a.a=0}},__wbg_new_typed_00a409eb4ec4f2d9:function(e,o){try{var a={a:e,b:o},c=(d,s)=>{let g=a.a;a.a=0;try{return lt(g,a.b,d,s)}finally{a.a=g}};let i=new Promise(c);return v(i)}finally{a.a=0}},__wbg_new_worker_e68fc8188cc230b5:function(e,o){let a=new Worker(j(e,o));return v(a)},__wbg_of_8737c43050b5546e:function(e,o,a){let c=Array.of(h(e),h(o),h(a));return v(c)},__wbg_postMessage_0162be6e48cf631e:function(){return tt(function(e,o){h(e).postMessage(h(o))},arguments)},__wbg_prototypesetcall_d721637c7ca66eb8:function(e,o,a){Uint8Array.prototype.set.call(f(e,o),h(a))},__wbg_queueMicrotask_1c9b3800e321a967:function(e){let o=h(e).queueMicrotask;return v(o)},__wbg_queueMicrotask_311744e534a929a3:function(e){queueMicrotask(h(e))},__wbg_resolve_d82363d90af6928a:function(e){let o=Promise.resolve(h(e));return v(o)},__wbg_set_onmessage_d05709471e546dca:function(e,o){h(e).onmessage=h(o)},__wbg_startWorkers_8b582d57e92bd2d4:function(e,o,a){let c=bt(u(e),u(o),Z.__wrap(a));return v(c)},__wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938:function(){let e=typeof globalThis>"u"?null:globalThis;return E(e)?0:v(e)},__wbg_static_accessor_GLOBAL_ce44e66a4935da8c:function(){let e=typeof global>"u"?null:global;return E(e)?0:v(e)},__wbg_static_accessor_SELF_44f6e0cb5e67cdad:function(){let e=typeof self>"u"?null:self;return E(e)?0:v(e)},__wbg_static_accessor_WINDOW_168f178805d978fe:function(){let e=typeof window>"u"?null:window;return E(e)?0:v(e)},__wbg_then_05edfc8a4fea5106:function(e,o,a){let c=h(e).then(h(o),h(a));return v(c)},__wbg_then_591b6b3a75ee817a:function(e,o){let a=h(e).then(h(o));return v(a)},__wbg_then_c768c7c3e60c20ef:function(e,o){let a=h(e).then(h(o));return v(a)},__wbg_value_2f34afb824ffcd9a:function(e){let o=h(e).value;return v(o)},__wbg_waitAsync_134f0b4abc50f1f2:function(e,o,a){let c=Atomics.waitAsync(h(e),o>>>0,a);return v(c)},__wbg_waitAsync_485a8d512901fd53:function(){let e=Atomics.waitAsync;return v(e)},__wbindgen_cast_0000000000000001:function(e,o){let a=pt(e,o,St);return v(a)},__wbindgen_cast_0000000000000002:function(e,o){let a=pt(e,o,Ot);return v(a)},__wbindgen_cast_0000000000000003:function(e,o){let a=pt(e,o,Ut);return v(a)},__wbindgen_cast_0000000000000004:function(e){return v(e)},__wbindgen_cast_0000000000000005:function(e,o){let a=f(e,o);return v(a)},__wbindgen_cast_0000000000000006:function(e,o){let a=j(e,o);return v(a)},__wbindgen_cast_0000000000000007:function(e,o){var a=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),v(a)},__wbindgen_link_ec60efd85dcca315:function(e){let o=`onmessage = function (ev) {
4
- let [ia, index, value] = ev.data;
5
- ia = new Int32Array(ia.buffer);
6
- let result = Atomics.wait(ia, index, value);
7
- postMessage(result);
8
- };
9
- `,a=typeof URL.createObjectURL>"u"?"data:application/javascript,"+encodeURIComponent(o):URL.createObjectURL(new Blob([o],{type:"text/javascript"})),c=y(a,t.__wbindgen_export4,t.__wbindgen_export5),i=p;r().setInt32(e+4,i,!0),r().setInt32(e+0,c,!0)},__wbindgen_object_clone_ref:function(e){let o=h(e);return v(o)},__wbindgen_object_drop_ref:function(e){u(e)},memory:_||new WebAssembly.Memory({initial:85,maximum:65536,shared:!0})}}}function St(_,n,e){t.__wasm_bindgen_func_elem_891(_,n,v(e))}function Ut(_,n,e){t.__wasm_bindgen_func_elem_3581(_,n,v(e))}function Ot(_,n,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.__wasm_bindgen_func_elem_3579(c,_,n,v(e));var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);if(a)throw u(o)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function lt(_,n,e,o){t.__wasm_bindgen_func_elem_3596(_,n,v(e),v(o))}var ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbg_exrbench_free(_,1)),vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbg_exrstreamencoder_free(_,1)),xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbg_proresbench_free(_,1)),It=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbg_proresmovencoder_free(_,1)),yt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbg_proresmovwriter_free(_,1)),mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbg_wbg_rayon_poolbuilder_free(_,1));function v(_){Y===L.length&&L.push(L.length+1);let n=Y;return Y=L[n],L[n]=_,n}var ht=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbindgen_export2(_.a,_.b));function Lt(_){_<1028||(L[_]=Y,Y=_)}function qt(_,n){return _=_>>>0,At().subarray(_/8,_/8+n)}function ut(_,n){return _=_>>>0,Ft().subarray(_/2,_/2+n)}function $(_,n){return _=_>>>0,jt().subarray(_/4,_/4+n)}function f(_,n){return _=_>>>0,D().subarray(_/1,_/1+n)}var C=null;function r(){return(C===null||C.buffer!==t.memory.buffer)&&(C=new DataView(t.memory.buffer)),C}var V=null;function Et(){return(V===null||V.buffer!==t.memory.buffer)&&(V=new Float32Array(t.memory.buffer)),V}var H=null;function At(){return(H===null||H.buffer!==t.memory.buffer)&&(H=new Float64Array(t.memory.buffer)),H}function j(_,n){return Pt(_>>>0,n)}var N=null;function Ft(){return(N===null||N.buffer!==t.memory.buffer)&&(N=new Uint16Array(t.memory.buffer)),N}var G=null;function jt(){return(G===null||G.buffer!==t.memory.buffer)&&(G=new Uint32Array(t.memory.buffer)),G}var X=null;function D(){return(X===null||X.buffer!==t.memory.buffer)&&(X=new Uint8Array(t.memory.buffer)),X}function h(_){return L[_]}function tt(_,n){try{return _.apply(this,n)}catch(e){t.__wbindgen_export(v(e))}}var L=new Array(1024).fill(void 0);L.push(void 0,null,!0,!1);var Y=L.length;function E(_){return _==null}function pt(_,n,e){let o={a:_,b:n,cnt:1},a=(...c)=>{o.cnt++;let i=o.a;o.a=0;try{return e(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,ht.unregister(o))},ht.register(a,o,o),a}function W(_,n){let e=n(_.length*2,2)>>>0;return Ft().set(_,e/2),p=_.length,e}function S(_,n){let e=n(_.length*4,4)>>>0;return jt().set(_,e/4),p=_.length,e}function l(_,n){let e=n(_.length*1,1)>>>0;return D().set(_,e/1),p=_.length,e}function it(_,n){let e=n(_.length*4,4)>>>0;return Et().set(_,e/4),p=_.length,e}function J(_,n){let e=n(_.length*8,8)>>>0;return At().set(_,e/8),p=_.length,e}function y(_,n,e){if(e===void 0){let d=Q.encode(_),s=n(d.length,1)>>>0;return D().subarray(s,s+d.length).set(d),p=d.length,s}let o=_.length,a=n(o,1)>>>0,c=D(),i=0;for(;i<o;i++){let d=_.charCodeAt(i);if(d>127)break;c[a+i]=d}if(i!==o){i!==0&&(_=_.slice(i)),a=e(a,o,o=i+_.length*3,1)>>>0;let d=D().subarray(a+i,a+o),s=Q.encodeInto(_,d);i+=s.written,a=e(a,o,i,1)>>>0}return p=i,a}function u(_){let n=h(_);return Lt(_),n}var K=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):void 0;K&&K.decode();var Dt=2146435072,gt=0;function Pt(_,n){return gt+=n,gt>=Dt&&(K=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),K.decode(),gt=n),K.decode(D().slice(_,_+n))}var Q=typeof TextEncoder<"u"?new TextEncoder:void 0;Q&&(Q.encodeInto=function(_,n){let e=Q.encode(_);return n.set(e),{read:_.length,written:e.length}});var p=0,Mt,Bt,t;function Rt(_,n,e){if(Bt=_,t=_.exports,Mt=n,C=null,V=null,H=null,N=null,G=null,X=null,typeof e<"u"&&(typeof e!="number"||e===0||e%65536!==0))throw new Error("invalid stack size");return t.__wbindgen_start(e),t}async function Ct(_,n){if(typeof Response=="function"&&_ instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(_,n)}catch(a){if(_.ok&&e(_.type)&&_.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 _.arrayBuffer();return await WebAssembly.instantiate(o,n)}else{let o=await WebAssembly.instantiate(_,n);return o instanceof WebAssembly.Instance?{instance:o,module:_}:o}function e(o){switch(o){case"basic":case"cors":case"default":return!0}return!1}}function x_(_,n){if(t!==void 0)return t;let e;_!==void 0&&(Object.getPrototypeOf(_)===Object.prototype?{module:_,memory:n,thread_stack_size:e}=_:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let o=kt(n);_ instanceof WebAssembly.Module||(_=new WebAssembly.Module(_));let a=new WebAssembly.Instance(_,o);return Rt(a,_,e)}async function I_(_,n){if(t!==void 0)return t;let e;_!==void 0&&(Object.getPrototypeOf(_)===Object.prototype?{module_or_path:_,memory:n,thread_stack_size:e}=_:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),_===void 0&&(_=new URL("media_core_bg.wasm",import.meta.url));let o=kt(n);(typeof _=="string"||typeof Request=="function"&&_ instanceof Request||typeof URL=="function"&&_ instanceof URL)&&(_=fetch(_));let{instance:a,module:c}=await Ct(await _,o);return Rt(a,c,e)}export{et as ExrBench,nt as ExrStreamEncoder,rt as ProResBench,_t as ProResMovEncoder,ot as ProResMovWriter,Nt as arriraw12_clip_info,Gt as arriraw_mxf_gpu_frame,Xt as audio_aac_au,Yt as audio_aac_config,Jt as audio_info,Kt as bench_f32_boundary,Qt as bench_piz_no_huffman,Zt as color_cst,$t as dci_code_full_depth,te as dci_frame_cap,ee as dci_gpu_colour_patch,ne as dci_gpu_colour_tables,re as dci_last_pass_caps,_e as dci_legal_rates,oe as dci_mq_bench,ie as dci_pack_tier1,ae as dci_stage_rgba8,ce as dci_transform_only,de as decode_arriraw12_luma,se as decode_arriraw12_mxf,pe as decode_arriraw12_preview,ge as decode_arriraw12_rgba,ue as decode_arriraw_luma,we as decode_arriraw_mxf,be as decode_arriraw_preview,le as decode_arriraw_preview_gray,fe as decode_arriraw_preview_meta,ve as decode_arriraw_rgba,xe as decode_arriraw_rgba_meta,Ie as decode_arw_preview,ye as decode_arw_rgba,me as decode_audio_pcm,he as decode_audio_track_pcm,ke as decode_bmp_rgba,Ae as decode_braw_gen5log,Fe as decode_braw_luma,je as decode_braw_preview,Me as decode_braw_rgba,Re as decode_cr2_preview,ze as decode_cr2_rgba,We as decode_cr3_rgba,Te as decode_crm,Se as decode_dng_preview,Ue as decode_dng_rgba,Oe as decode_dpx_preview,Le as decode_dpx_rgba,qe as decode_dv_luma,Ee as decode_dv_preview,De as decode_dv_rgba,Pe as decode_exr_linear,Be as decode_exr_preview,Ce as decode_exr_rgba,Ve as decode_gif_rgba,He as decode_heic_rgba,Ne as decode_j2k_luma,Ge as decode_j2k_preview,Xe as decode_j2k_rgba,Ye as decode_jpeg_rgba,Je as decode_mpeg2_luma,Ke as decode_mpeg2_preview,Qe as decode_mpeg2_rgba,Ze as decode_png_rgba,$e as decode_prores_band_rgba,tn as decode_prores_luma,en as decode_prores_mxf,nn as decode_prores_preview,rn as decode_prores_raw_acescct,_n as decode_prores_raw_luma,on as decode_prores_raw_preview,an as decode_prores_raw_rec2020,cn as decode_prores_raw_rgba,dn as decode_prores_raw_tier,sn as decode_prores_rgb16,pn as decode_prores_rgba,gn as decode_prores_thumb_dc32,un as decode_psd_rgba,wn as decode_r3d_luma,bn as decode_r3d_preview,ln as decode_r3d_preview_clip,fn as decode_r3d_rgb16,vn as decode_r3d_rgba,xn as decode_r3d_rgba_clip,In as decode_tga_rgba,yn as decode_tiff_preview,mn as decode_tiff_rgba,hn as decode_vc3_band_rgba,kn as decode_vc3_luma,An as decode_vc3_mxf,Fn as decode_vc3_preview,jn as decode_vc3_rgba,Mn as decode_webp_rgba,Rn as decode_xocn_index_luma,zn as decode_xocn_luma,Wn as decode_xocn_mxf,Tn as decode_xocn_preview,Sn as decode_xocn_preview_rec709,Un as decode_xocn_rgb16,On as decode_xocn_rgba,I_ as default,Ln as encode_dci_j2c,qn as encode_dci_j2c_rgb,En as encode_dci_j2c_rgba8,Dn as encode_dci_j2c_staged,Pn as encode_dci_j2c_staged_modelled,Bn as encode_exr,Cn as encode_prores_4444_alpha_mov_rgba,Vn as encode_prores_4444_alpha_sample_q,Hn as encode_prores_444_sample_cbr,Nn as encode_prores_444_sample_cbr_rgb16,Gn as encode_prores_444_sample_cbr_rgb16_lut,Xn as encode_prores_mov_rgba,Yn as encode_prores_rgba,Jn as encode_prores_sample_cbr,Kn as encode_prores_sample_cbr_rgb16,Qn as encode_prores_sample_cbr_rgb16_lut,Zn as encode_prores_sample_q,$n as exr_sequence_filename,tr as fit_sizing,x_ as initSync,er as initThreadPool,nr as inspect_arw,rr as inspect_cr2,_r as inspect_cr3,or as inspect_dng,ir as inspect_dpx,ar as inspect_exr,cr as inspect_isobmff,dr as inspect_tiff,sr as inspect_wav,pr as is_arriraw12_mxf,gr as is_arriraw_mxf,ur as is_crm,wr as is_prores_mxf,br as is_vc3_mxf,lr as is_xavc_mxf,fr as is_xocn_mxf,vr as list_isobmff_segments,xr as list_mxf_segments,Ir as list_r3d_frames,yr as list_r3d_segments,mr as list_wav_segments,hr as mux_prores_4444_alpha_samples,kr as mux_prores_samples,Ar as mux_prores_samples_full,Fr as mxf_au_run,jr as mxf_frame_index,Mr as mxf_gop_map,Rr as mxf_h264_kind,zr as plan_isobmff_trim,Wr as plan_isobmff_trim_reader,Tr as plan_mxf_compact_trim,Sr as plan_mxf_trim,Ur as plan_r3d_compact,Or as plan_wav_trim,Lr as plan_wav_trim_reader,qr as prepare_isobmff,Er as prepare_mxf,Dr as prepare_r3d,Pr as prepare_wav,Br as probe_mov,Cr as probe_mxf,Vr as probe_r3d,Hr as prores_band_info,Nr as prores_raw_container_color,Gr as prores_reset_rate_control,Xr as r3d_gpu_develop_params,Yr as r3d_index_ranges,Jr as r3d_is_helium,Kr as read_arriraw_fcs,Qr as read_arriraw_unit_correction,Zr as recover_reframe,$r as resample_rgba16,t_ as resample_rgba8,e_ as reset_dci_rate_state,n_ as resize_luma_area,r_ as rgba8_to_xyz12,__ as shot_crop,o_ as shot_ramp,i_ as shot_scan,a_ as trim_r3d,c_ as vc3_band_info,d_ as video_close,s_ as video_decode,p_ as video_frame_index_isobmff_reader,g_ as video_open,Z as wbg_rayon_PoolBuilder,u_ as wbg_rayon_start_worker,w_ as xavc_au,b_ as xavc_frame_count,l_ as xocn_frame_count,f_ as xocn_index_prefix_len,v_ as xocn_preview_prefix_len};
@@ -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 N}from"./chunk-AACY2V3L.js";import{b as $}from"./chunk-XX7QQIBI.js";import{b as J}from"./chunk-5JDF2IUF.js";import{Ha as l,M,R as P,b as U,ca as D,da as T,e as k,ea as C,fa as E,g as S,ga as L,ia as O,ra as V,ua as W,w as B,wa as G}from"./chunk-DCO5D65W.js";import"./chunk-PSANHDZM.js";var z=new Uint8Array([6,14,43,52,2,5,1,1,13,1,2,1,1,17,1,0]);function oe(t){e:for(let r=t.length-z.length;r>=0;r--){for(let e=0;e<z.length;e++)if(t[r+e]!==z[e])continue e;return r}return-1}function j(t,r){if(r>=t.byteLength)return[null,0];let e=t.getUint8(r);if(e<128)return[e,1];let n=e&127;if(n===0||n>8||r+1+n>t.byteLength)return[null,1];let a=0;for(let i=0;i<n;i++)a=a*256+t.getUint8(r+1+i);return[a,1+n]}function b(t,r){let e=t.getUint32(r,!1),n=t.getUint32(r+4,!1);return e*4294967296+n}async function Z(t){let r=t.fileSize,e=[];if(r<1024)return e;let a=Math.max(0,r-65536),i=r-a,o=await t.read(a,i);e.push({offset:a,length:i});let s=oe(o);if(s<0)return e;let c=new DataView(o.buffer,o.byteOffset,o.byteLength),[f,re]=j(c,s+16);if(f===null||f<16||f>65536)return e;let v=s+16+re;if(v+f>o.length)return e;let F=[],te=new DataView(o.buffer,o.byteOffset+v,f),g=Math.floor((f-4)/12);if(g<1||g>4096)return e;for(let u=0;u<g;u++){let d=b(te,u*12+4);d>=0&&d<r&&F.push(d)}for(let u of F){let d=Math.min(256,r-u),p=await t.read(u,d);if(p.length<80)continue;let _=new DataView(p.buffer,p.byteOffset,p.byteLength),[A,R]=j(_,16);if(A===null)continue;let m=16+R,y,x;if(p.length<m+64){let ie=Math.min(m+64,r-u),h=await t.read(u,ie);if(h.length<m+64)continue;let I=new DataView(h.buffer,h.byteOffset,h.byteLength);y=b(I,m+32),x=b(I,m+40)}else y=b(_,m+32),x=b(_,m+40);let ne=u+16+R+A+y+x,ae=Math.min(ne+65536,r)-u;e.push({offset:u,length:ae})}return e}function H(t,r){let e=[];for(let n of t){if(n.kind!=="clip"||!n.source_range)continue;let a=n.source_range.start.value,i=n.source_range.duration.value,o=Math.max(0,Math.floor(a)-r),s=Math.floor(a+i-1)+r;s>=o&&e.push({first_frame:o,last_frame:s})}return e}function se(t,r){let e=[...t].sort((i,o)=>i.offset-o.offset),n=[],a=0;for(let i of e)i.offset>a&&n.push({offset:a,length:i.offset-a}),a=Math.max(a,i.offset+i.length);return a<r&&n.push({offset:a,length:r-a}),n}async function q(t,r,e){let n=H(r,0);if(n.length===0)throw new Error("planMxfTrimsFromItems: no usable trim ranges in items");await l();let a=(o,s)=>t.read(o,s),i=await $(n,e,(o,s)=>V(a,t.fileSize,o,s));return i.map((o,s)=>{let c=JSON.parse(o);return i.length>1&&(c.output_clip_number=s+1,c.output_clip_count=i.length,c.output_part_number=1),c})}async function K(t,r,e){await l();let n=H(r,e),i=await W((s,c)=>t.read(s,c),t.fileSize,JSON.stringify(n));if(i!=="null")return JSON.parse(i);console.warn(`[mxf] no parseable index \u2014 shipping the WHOLE file (${t.fileSize} bytes). The cut's ${n.length} range(s) cannot be addressed; nothing is trimmed.`);let o=(await Z(t)).map(s=>({offset:s.offset,length:s.length}));return{fileSize:t.fileSize,structuralRanges:o,essenceRanges:se(o,t.fileSize),trimInputs:n,wholeFileFallback:!0}}async function Q(t){await l();let e=await G((n,a)=>t.read(n,a),t.fileSize);return JSON.parse(e)}function w(t){return(r,e)=>t.read(r,e)}var Me={async inspect(t){let r=t.parts[0],e=await Q(r);if(!e)return null;let n=e.timecode??null,a=n&&n.fps_denominator>0?n.fps_numerator/n.fps_denominator:null,i=e.width??null,o=e.height??null,s=e.inner_codec==="mpeg2"||e.inner_codec==="dv"?e.inner_codec:null;return{id:r.filename,kind:"external",target_url:r.filename,available_range:a&&e.frame_count?{start:{value:0,rate:a},duration:{value:e.frame_count,rate:a}}:null,reel_name:e.avid?.tape_name??null,source_timecode:n?.display??null,source_fps:a,source_resolution_w:i,source_resolution_h:o,container:"mxf",codec:s,size_bytes:r.fileSize,streams:[...i||o||a?[{kind:"video",codec:s,width:i??void 0,height:o??void 0,rate:a??void 0,codec_specific:null}]:[],...e.audio?[{kind:"audio",codec:e.audio.codec_fourcc,channels:e.audio.channels??void 0,rate:e.audio.sample_rate??void 0,bit_depth:e.audio.bit_depth??void 0,codec_specific:{fourcc:e.audio.codec_fourcc}}]:[]],decode_provenance:e.decode_provenance??null,vendor_metadata:{frame_count:e.frame_count,...n?{drop_frame:n.drop_frame}:{},...e.inner_codec?{inner_codec:e.inner_codec}:{},...e.truncated?{truncated:!0}:{},...e.avid?{avid:{...e.avid,kind:i||o?"picture":"sound"}}:{}},binding_state:"unbound",raw_extraction:{mxf_probe:e},metadata:{}}},async extract(t){await l();let r=t.parts[0],e=JSON.parse(await O(w(r),r.fileSize));return e.length===0?null:{v:1,container:"mxf",codec:"mxf",frame_count:N(e),granularity:"frame",segments:e}},async sparsify(t,r){let e=t.parts[0],n=await K(e,r.items,r.handles);return[{filename:e.filename,fileSize:n.fileSize,structuralRanges:n.structuralRanges,essenceRanges:n.essenceRanges,trimInputs:n.trimInputs,wholeFileFallback:n.wholeFileFallback}]},async trim(t,r){let e=t.parts[0];return q(e,r.items,r.handles)},async decode(t,r,e){await l();let n=t.parts[0],a=w(n),i=await ee(t),o=e.detail==="coarse",s;if(i==="arriraw")s=await S(a,n.fileSize,r,o?"preview:4":"full");else if(i==="arriraw-alev3")s=await k(a,n.fileSize,r,o?"preview:4":"full");else if(i==="dnxhr")s=await M(a,n.fileSize,r,o?"preview":"full");else if(i==="xocn")s=await P(a,n.fileSize,r,o?"preview":"full");else if(i==="prores")s=await B(a,n.fileSize,r,o?"preview":"full");else throw new Error(`mxf decode: no decoder for inner codec '${i}'`);let c=new DataView(s.buffer,s.byteOffset,8);return{width:c.getUint32(0,!0),height:c.getUint32(4,!0),rgba:s.slice(8)}},async decode16(t,r){await l();let e=t.parts[0],n=w(e),a=await ee(t),i;try{if(a==="arriraw"){let o=await ue(t,r);if(o)return o;i=await S(n,e.fileSize,r,"rgb16")}else if(a==="dnxhr")i=await M(n,e.fileSize,r,"rgb16");else if(a==="xocn")i=await P(n,e.fileSize,r,"rgb16");else throw new Error(`mxf decode16: no decoder for inner codec '${a}'`)}catch(o){throw fe(o,a)}return J(i)}};function fe(t,r){let e=typeof t=="string"?t:t instanceof Error?t.message:"";return/has no 16-bit decoder|no rgb16 tier/.test(e)?new Error(`mxf ${r}: has no 16-bit decoder \u2014 ${e}`):t}var X=new WeakMap;async function ue(t,r){if(!!0)return null;try{let e=await import("./arriraw-PS6V532Y.js");if(!await e.arrirawGpuAvailable())return null;let{parseArrirawGpuPayload:n,arrirawFrameToRgb16:a}=await import("./clip-state-B6JOX3JE.js"),i=t.parts[0],o=X.get(t)??null,s=await U(w(i),i.fileSize,r,o?.key),c=n(s,o);if(!c)return null;X.set(t,{key:c.key,state:c.state});let f=await e.decodeArrirawFrameGpu(c.essence,c.state);return f?{width:f.width,height:f.height,rgb16:a(f)}:null}catch{return null}}var Y=new WeakMap;async function ee(t){let r=Y.get(t);if(r)return r;await l();let e=t.parts[0],n=w(e),a="mxf";return await T(n,e.fileSize)?a="arriraw":await D(n,e.fileSize)?a="arriraw-alev3":await E(n,e.fileSize)?a="dnxhr":await L(n,e.fileSize)?a="xocn":await C(n,e.fileSize)&&(a="prores"),Y.set(t,a),a}export{Me as mxfFormat};
@@ -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 b}from"./chunk-AACY2V3L.js";import{Ha as u,ba as _,la as f,sa as d,va as g}from"./chunk-DCO5D65W.js";import"./chunk-PSANHDZM.js";function p(s){return(r,t)=>s.read(r,t)}function S(s){let r=[];for(let t of s)t.kind!=="clip"||!t.source_range||r.push({start_frame:t.source_range.start.value,dur_frames:t.source_range.duration.value,fps:t.source_range.start.rate??1});return r}var w={async inspect(s){await u();let r=s.parts[0],t=await _(p(r),r.fileSize),e=JSON.parse(t);if(!e||!e.sample_rate)return null;let a=e.byte_rate>0?e.data_length/e.byte_rate:null,m=a?Math.round(a*e.sample_rate):0,n=[{kind:"audio",codec:"pcm",rate:e.sample_rate,channels:e.channels,bit_depth:e.bits_per_sample,codec_specific:{bits_per_sample:e.bits_per_sample}}];return{id:r.filename,kind:"external",content_kind:"audio",target_url:r.filename,available_range:a?{start:{value:0,rate:e.sample_rate},duration:{value:m,rate:e.sample_rate}}:null,reel_name:null,source_timecode:e.source_timecode??null,container:"wav",codec:"pcm",size_bytes:r.fileSize,bitrate_bps:e.byte_rate*8,streams:n,vendor_metadata:e.bext?{bext:e.bext}:{},binding_state:"unbound",raw_extraction:{wav_meta:e},metadata:{}}},async extract(s){await u();let r=s.parts[0],t=JSON.parse(await f(p(r),r.fileSize));return t.length===0?null:{v:1,container:"wav",codec:"pcm",frame_count:b(t),granularity:"second",segments:t}},async sparsify(s,r){await u();let t=s.parts[0],e=await g(p(t),t.fileSize,JSON.stringify(S(r.items)),r.handles),a=JSON.parse(e);return[{filename:t.filename,fileSize:a.fileSize,structuralRanges:a.structuralRanges,essenceRanges:a.essenceRanges,trimInputs:a.trimInputs}]},async trim(s,r){await u();let t=s.parts[0],e=[];for(let n of r.items){if(n.kind!=="clip"||!n.source_range)continue;let i=n.source_range.start.rate??1,o=Math.max(0,(n.source_range.start.value-r.handles)/i),c=(n.source_range.start.value+n.source_range.duration.value+r.handles)/i;c>o&&e.push([o,c])}if(e.length===0)throw new Error("wav trim: no usable trim ranges in items");e.sort((n,i)=>n[0]-i[0]);let a=[];for(let[n,i]of e){let o=a[a.length-1];o&&n<=o[1]?o[1]=Math.max(o[1],i):a.push([n,i])}let m=[];for(let[n,[i,o]]of a.entries()){let c=await d(p(t),t.fileSize,i,o,1),l=JSON.parse(c);a.length>1&&(l.output_clip_number=n+1,l.output_clip_count=a.length,l.output_part_number=1),m.push(l)}return m}};export{w as wavFormat};