conformtools 0.6.2 → 0.6.4

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 (53) hide show
  1. package/README.md +6 -1
  2. package/dist/browser/timeline_core_bg.wasm +0 -0
  3. package/dist/{chunk-BTXLTVNK.js → chunk-42QQI3WX.js} +1 -1
  4. package/dist/chunk-6FVGUJ6L.js +3 -0
  5. package/dist/{chunk-KP4C2MFM.js → chunk-BW2NQ54J.js} +1 -1
  6. package/dist/{chunk-PIEH7J6J.js → chunk-CL26XMDO.js} +1 -1
  7. package/dist/chunk-EO5NIBOV.js +3 -0
  8. package/dist/{chunk-BXFVYGFW.js → chunk-EPZ6NWE4.js} +1 -1
  9. package/dist/{chunk-RULUDOB7.js → chunk-HKP4P6JN.js} +1 -1
  10. package/dist/{chunk-JH3OLTR6.js → chunk-JB7PR2TQ.js} +1 -1
  11. package/dist/chunk-QTKRMXL5.js +363 -0
  12. package/dist/{chunk-FNGHTZ5F.js → chunk-QTPCU2TF.js} +1 -1
  13. package/dist/chunk-TEZP6VEQ.js +3 -0
  14. package/dist/{chunk-RUBNBRUK.js → chunk-WT6NIJCB.js} +1 -1
  15. package/dist/{claude-setup-XSNTKEU7.js → claude-setup-BM3AAUKR.js} +1 -1
  16. package/dist/cli.js +9 -9
  17. package/dist/conformtools-decode +0 -0
  18. package/dist/{cr3-wasm-YTMVBAFM.js → cr3-wasm-WKWMEK3V.js} +1 -1
  19. package/dist/{dng-wasm-WUUQB7M2.js → dng-wasm-Z5OVO4UI.js} +1 -1
  20. package/dist/{dpx-wasm-XBKO4V4W.js → dpx-wasm-QNYXAOAJ.js} +1 -1
  21. package/dist/{exr-wasm-VE2W6MFW.js → exr-wasm-BHSBJLQH.js} +1 -1
  22. package/dist/{h264-HD7BY5J5.js → h264-LIZVHN2W.js} +1 -1
  23. package/dist/{h264-mxf-6OOODSAK.js → h264-mxf-MWS7DDV7.js} +1 -1
  24. package/dist/http.js +1 -1
  25. package/dist/i2o-transfer +0 -0
  26. package/dist/{inspect-TDZCNXVW.js → inspect-DZF537QL.js} +1 -1
  27. package/dist/isobmff-HM3UPWPZ.js +3 -0
  28. package/dist/mcp.js +8 -8
  29. package/dist/{media_core_bg-YBW45HJ2.js → media_core_bg-FGAR5KA5.js} +1 -1
  30. package/dist/mxf-K465SWBN.js +3 -0
  31. package/dist/{ops-UPPAG2TI.js → ops-73NR3X6R.js} +1 -1
  32. package/dist/{r3d-KJVC7T2C.js → r3d-RR3FUM6H.js} +1 -1
  33. package/dist/{r3d-EY6FEFKM.js → r3d-VUOYU2KQ.js} +1 -1
  34. package/dist/resolve-bridge.py +73 -10
  35. package/dist/still-4G25EYN5.js +3 -0
  36. package/dist/{tiff-wasm-T2V2ICZT.js → tiff-wasm-QJPCR7JT.js} +1 -1
  37. package/dist/wasm/media_core_bg.wasm +0 -0
  38. package/dist/wasm/udf_bg.wasm +0 -0
  39. package/dist/{wav-LFS6OZHJ.js → wav-63QF6SCT.js} +1 -1
  40. package/package.json +1 -1
  41. package/dist/chunk-CX3USH6A.js +0 -318
  42. package/dist/chunk-D5DEQ467.js +0 -3
  43. package/dist/chunk-JEMLKBH2.js +0 -3
  44. package/dist/chunk-RXHNBSER.js +0 -3
  45. package/dist/isobmff-57HSD6O2.js +0 -3
  46. package/dist/mxf-FAXEK4WR.js +0 -3
  47. package/dist/still-WY7MUR7A.js +0 -3
  48. /package/dist/{arriraw-BEZILZY3.js → arriraw-3GKCR6K2.js} +0 -0
  49. /package/dist/{chunk-NP53ITN6.js → chunk-WHY3DVXS.js} +0 -0
  50. /package/dist/{media_core_bg-5UIQAP7I.js → media_core_bg-YK63OUDM.js} +0 -0
  51. /package/dist/{prores-BNALPJPS.js → prores-L4JZZWGH.js} +0 -0
  52. /package/dist/{timeline_core_bg-XYT26ZTU.js → timeline_core_bg-2TYWZ35G.js} +0 -0
  53. /package/dist/{udf_bg-R3JEZJAT.js → udf_bg-A4WEMSAX.js} +0 -0
package/README.md CHANGED
@@ -61,7 +61,12 @@ what they do:
61
61
 
62
62
  - **conform**: turnover checks, relink, write, check and report what did not carry,
63
63
  with notes per host (Resolve, Premiere, Avid, Flame, Final Cut, Baselight, Pro Tools).
64
- - **deliver**: consolidate, package (folder or ISO) and QC a delivery before it leaves.
64
+ - **deliver**: consolidate, package (folder or ISO) and QC a delivery before it leaves. A
65
+ delivery is one `.iso` wherever it goes: on disk, in your org's own bucket
66
+ (`destination=bucket`, only bytes no earlier delivery there holds are uploaded), or straight to
67
+ one recipient peer to peer (`destination=p2p`, Iroh). `add_to` grows an earlier delivery with a
68
+ re-cut's new frames only. `delivery_fetch` opens any of them the same way: list it, take the
69
+ `.iso`, cut a folder of trims from it, or mount it live (macOS).
65
70
 
66
71
  The agent loads the playbook for its task with the `conform_learn` tool. Hosts that
67
72
  support the MCP Skills Extension (`io.modelcontextprotocol/skills`) also see them as
Binary file
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a as c,b as m}from"./chunk-DKGGJM6Z.js";import{Aa as u,Ca as n,H as f,X as s}from"./chunk-PIEH7J6J.js";async function y(r){await n();let e=s(r);return e==="null"?null:JSON.parse(e)}async function d(r){await n();let e;try{e=f(r)}catch{return null}if(e.length<8)return null;let t=new DataView(e.buffer,e.byteOffset,e.byteLength),i=t.getUint32(0,!0),a=t.getUint32(4,!0),o=i*a*4;return e.length<8+o?null:{width:i,height:a,rgba:new Uint8ClampedArray(e.subarray(8,8+o))}}async function b(r,e=8){await n();let t=m(u,"decode_tiff_preview");if(!t)return d(r);try{return c(t(r,e))}catch{return null}}export{y as a,d as b,b as c};
3
+ import{a as c,b as m}from"./chunk-DKGGJM6Z.js";import{Aa as u,Ca as n,H as f,X as s}from"./chunk-CL26XMDO.js";async function y(r){await n();let e=s(r);return e==="null"?null:JSON.parse(e)}async function d(r){await n();let e;try{e=f(r)}catch{return null}if(e.length<8)return null;let t=new DataView(e.buffer,e.byteOffset,e.byteLength),i=t.getUint32(0,!0),a=t.getUint32(4,!0),o=i*a*4;return e.length<8+o?null:{width:i,height:a,rgba:new Uint8ClampedArray(e.subarray(8,8+o))}}async function b(r,e=8){await n();let t=m(u,"decode_tiff_preview");if(!t)return d(r);try{return c(t(r,e))}catch{return null}}export{y as a,d as b,b as c};
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
+ var F=new Set(["png","jpg","jpeg","tif","tiff","psd","tga","bmp","gif","webp","avif","heic","heif","exr","dpx","pict","pct"]);function B(t){let n=t.split(/[/\\]/).pop()??"",e=n.lastIndexOf(".");return e>0?n.slice(e+1).toLowerCase():""}function k(t){return!!t&&F.has(B(t))}function N(t){return t.content_kind==="still"?!0:t.content_kind!=null?!1:k(t.source_filename)||k(t.target_url)}function Y(t){return{size:t.length,async read(n,e){let r=Math.max(0,Math.min(n,t.length)),u=Math.max(r,Math.min(r+e,t.length));return t.subarray(r,u)}}}function q(t){return{size:t.fileSize,read:(n,e)=>t.read(n,e)}}var U=class{constructor(n){this.r=n;this.buf=new Uint8Array(0);this.base=0}async at(n,e){if(n<0||e<=0)return new Uint8Array(0);let r=n-this.base;return r>=0&&r+e<=this.buf.length?this.buf.subarray(r,r+e):(this.buf=await this.r.read(n,Math.max(e,65536)),this.base=n,this.buf.subarray(0,Math.min(e,this.buf.length)))}},A=(t,n)=>t[n]<<8|t[n+1],b=(t,n)=>t[n]|t[n+1]<<8,W=(t,n)=>t[n]|t[n+1]<<8|t[n+2]<<16,m=(t,n)=>(t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3])>>>0,p=(t,n)=>(t[n]|t[n+1]<<8|t[n+2]<<16|t[n+3]<<24)>>>0,P=(t,n)=>t[n]|t[n+1]<<8|t[n+2]<<16|t[n+3]<<24,x=(t,n,e)=>String.fromCharCode(...t.subarray(n,n+e));function d(t,n){if(!Number.isFinite(t)||!Number.isFinite(n))return null;let e=Math.round(t),r=Math.round(n);return e<1||r<1||e>1e6||r>1e6?null:{width:e,height:r}}var v=t=>({width:t.height,height:t.width});async function z(t){let n=await t.at(0,24);return n.length<24||n[0]!==137||x(n,1,3)!=="PNG"||x(n,12,4)!=="IHDR"?null:d(m(n,16),m(n,20))}var L=new Set([192,193,194,195,197,198,199,201,202,203,205,206,207]);function O(t){if(t.length<8)return null;let n=t[0]===73&&t[1]===73,e=t[0]===77&&t[1]===77;if(!n&&!e)return null;let r=i=>n?b(t,i):A(t,i),u=i=>n?p(t,i):m(t,i);if(r(2)!==42)return null;let a=u(4);if(a+2>t.length)return null;let c=r(a);for(let i=0;i<c;i++){let s=a+2+i*12;if(s+12>t.length)break;if(r(s)===274)return r(s+8)}return null}async function _(t,n){let e=await t.at(0,2);if(e.length<2||e[0]!==255||e[1]!==216)return null;let r=1,u=null,a=2;for(;a+4<=n;){let c=await t.at(a,4);if(c.length<4)break;if(c[0]!==255){a++;continue}let i=c[1];if(i===255){a++;continue}if(i===1||i>=208&&i<=217){a+=2;continue}if(i===218)break;let s=A(c,2);if(s<2)break;if(L.has(i)){let o=await t.at(a+4,5);o.length>=5&&(u=d(A(o,3),A(o,1)));break}if(i===225){let o=await t.at(a+4,Math.min(s-2,65536));o.length>6&&x(o,0,4)==="Exif"&&(r=O(o.subarray(6))??1)}a+=2+s}return u?r>=5&&r<=8?v(u):u:null}async function E(t){let n=await t.at(0,10);return n.length<10||x(n,0,3)!=="GIF"?null:d(b(n,6),b(n,8))}async function j(t){let n=await t.at(0,26);return n.length<22||x(n,0,2)!=="BM"?null:p(n,14)===12?d(b(n,18),b(n,20)):n.length<26?null:d(P(n,18),Math.abs(P(n,22)))}async function C(t){let n=await t.at(0,30);if(n.length<16||x(n,0,4)!=="RIFF"||x(n,8,4)!=="WEBP")return null;let e=x(n,12,4);if(e==="VP8X")return n.length<30?null:d(W(n,24)+1,W(n,27)+1);if(e==="VP8 ")return n.length<30||n[23]!==157||n[24]!==1||n[25]!==42?null:d(b(n,26)&16383,b(n,28)&16383);if(e==="VP8L"){if(n.length<25||n[20]!==47)return null;let r=p(n,21);return d((r&16383)+1,(r>>>14&16383)+1)}return null}async function S(t,n){let e=[],r=0;async function u(i,s,o){let f=i;for(;f+8<=s&&o<8;){let g=await t.at(f,16);if(g.length<8)return;let l=m(g,0),h=x(g,4,4),y=8;if(l===1){if(g.length<16)return;l=m(g,8)*2**32+m(g,12),y=16}else l===0&&(l=s-f);if(l<y||f+l>s)return;if(h==="meta")await u(f+y+4,f+l,o+1);else if(h==="iprp"||h==="ipco")await u(f+y,f+l,o+1);else if(h==="ispe"){let w=await t.at(f+y+4,8);if(w.length===8){let R=d(m(w,0),m(w,4));R&&e.push(R)}}else if(h==="irot"){let w=await t.at(f+y,1);w.length===1&&(r=w[0]&3)}f+=l}}let a=await t.at(0,12);if(a.length<12||x(a,4,4)!=="ftyp"||(await u(0,n,0),e.length===0))return null;let c=e.reduce((i,s)=>i.width*i.height>=s.width*s.height?i:s);return r===1||r===3?v(c):c}async function I(t){let n=await t.at(0,22);return n.length<22||x(n,0,4)!=="8BPS"?null:d(m(n,18),m(n,14))}var T=new Set([0,1,2,3,9,10,11]);async function X(t){let n=await t.at(0,18);if(n.length<18||n[1]>1||!T.has(n[2]))return null;let e=n[16];return[8,15,16,24,32].includes(e)?d(b(n,12),b(n,14)):null}async function M(t){let n=await t.at(0,8);if(n.length<8)return null;let e=n[0]===73&&n[1]===73,r=n[0]===77&&n[1]===77;if(!e&&!r)return null;let u=(l,h)=>e?b(l,h):A(l,h),a=(l,h)=>e?p(l,h):m(l,h);if(u(n,2)!==42)return null;let c=a(n,4),i=await t.at(c,2);if(i.length<2)return null;let s=u(i,0);if(s<1||s>4096)return null;let o=await t.at(c+2,s*12),f=0,g=0;for(let l=0;l<s;l++){let h=l*12;if(h+12>o.length)break;let y=u(o,h),R=u(o,h+2)===3?u(o,h+8):a(o,h+8);y===256?f=R:y===257&&(g=R)}return d(f,g)}async function D(t,n){let e=await t.at(0,8);if(e.length<8||e[0]!==118||e[1]!==47||e[2]!==49||e[3]!==1)return null;let r=8,u=Math.min(n,1<<20);for(;r<u;){let a=await t.at(r,512);if(a.length===0)return null;let c=a.indexOf(0);if(c<=0)return null;let i=x(a,0,c),s=a.subarray(c+1).indexOf(0);if(s<0)return null;let o=c+1+s+1;if(o+4>a.length)return null;let f=p(a,o),g=r+o+4;if(i==="dataWindow"){if(f<16)return null;let l=await t.at(g,16);return l.length<16?null:d(P(l,8)-P(l,0)+1,P(l,12)-P(l,4)+1)}r=g+f}return null}async function G(t){let n=await t.at(0,4);if(n.length<4)return null;let e=x(n,0,4),r=e==="SDPX";if(!r&&e!=="XPDS")return null;let u=await t.at(772,8);return u.length<8?null:d(r?m(u,0):p(u,0),r?m(u,4):p(u,4))}var H={png:z,jpg:_,jpeg:_,gif:E,bmp:j,webp:C,avif:S,heic:S,heif:S,psd:I,tga:X,tif:M,tiff:M,exr:D,dpx:G};async function J(t,n){let e=H[(t??"").toLowerCase()];if(!e)return null;try{return await e(new U(n),n.size)}catch{return null}}export{B as a,k as b,N as c,Y as d,q as e,J as f};
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a as s,b as m}from"./chunk-DKGGJM6Z.js";import{Aa as d,Ca as n,U as c,o as u}from"./chunk-PIEH7J6J.js";async function x(r){await n();let e=c(r);return e==="null"?null:JSON.parse(e)}async function p(r){await n();let e;try{e=u(r)}catch{return null}if(e.length<8)return null;let t=new DataView(e.buffer,e.byteOffset,e.byteLength),a=t.getUint32(0,!0),i=t.getUint32(4,!0),o=a*i*4;return e.length<8+o?null:{width:a,height:i,rgba:new Uint8ClampedArray(e.subarray(8,8+o))}}async function y(r,e=8){await n();let t=m(d,"decode_dpx_preview");if(!t)return p(r);try{return s(t(r,e))}catch{return null}}export{x as a,p as b,y as c};
3
+ import{a as s,b as m}from"./chunk-DKGGJM6Z.js";import{Aa as d,Ca as n,U as c,o as u}from"./chunk-CL26XMDO.js";async function x(r){await n();let e=c(r);return e==="null"?null:JSON.parse(e)}async function p(r){await n();let e;try{e=u(r)}catch{return null}if(e.length<8)return null;let t=new DataView(e.buffer,e.byteOffset,e.byteLength),a=t.getUint32(0,!0),i=t.getUint32(4,!0),o=a*i*4;return e.length<8+o?null:{width:a,height:i,rgba:new Uint8ClampedArray(e.subarray(8,8+o))}}async function y(r,e=8){await n();let t=m(d,"decode_dpx_preview");if(!t)return p(r);try{return s(t(r,e))}catch{return null}}export{x as a,p as b,y as c};
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{d as Tt}from"./chunk-PSANHDZM.js";var At={};Tt(At,{ExrBench:()=>J,ExrStreamEncoder:()=>Q,ProResBench:()=>Z,ProResMovEncoder:()=>tt,ProResMovWriter:()=>et,arriraw12_clip_info:()=>Ot,arriraw_mxf_gpu_frame:()=>Ft,audio_aac_au:()=>Wt,audio_aac_config:()=>St,audio_info:()=>Rt,bench_f32_boundary:()=>Lt,bench_piz_no_huffman:()=>zt,dci_code_full_depth:()=>Dt,dci_frame_cap:()=>Ut,dci_gpu_colour_patch:()=>jt,dci_gpu_colour_tables:()=>Bt,dci_last_pass_caps:()=>Pt,dci_legal_rates:()=>Ct,dci_mq_bench:()=>qt,dci_pack_tier1:()=>Nt,dci_stage_rgba8:()=>Ht,dci_transform_only:()=>Gt,decode_arriraw12_luma:()=>Vt,decode_arriraw12_mxf:()=>Kt,decode_arriraw12_preview:()=>Xt,decode_arriraw12_rgba:()=>Yt,decode_arriraw_luma:()=>$t,decode_arriraw_mxf:()=>Jt,decode_arriraw_preview:()=>Qt,decode_arriraw_preview_gray:()=>Zt,decode_arriraw_preview_meta:()=>te,decode_arriraw_rgba:()=>ee,decode_arriraw_rgba_meta:()=>ne,decode_audio_pcm:()=>re,decode_braw_gen5log:()=>_e,decode_braw_luma:()=>oe,decode_braw_preview:()=>ie,decode_braw_rgba:()=>ae,decode_cr3_rgba:()=>ce,decode_crm:()=>de,decode_dng_preview:()=>se,decode_dng_rgba:()=>pe,decode_dpx_preview:()=>ge,decode_dpx_rgba:()=>ue,decode_exr_linear:()=>we,decode_exr_preview:()=>be,decode_exr_rgba:()=>le,decode_jpeg_rgba:()=>fe,decode_png_rgba:()=>xe,decode_prores_band_rgba:()=>ve,decode_prores_luma:()=>Ie,decode_prores_mxf:()=>ye,decode_prores_preview:()=>me,decode_prores_raw_acescct:()=>he,decode_prores_raw_luma:()=>ke,decode_prores_raw_preview:()=>Ae,decode_prores_raw_rec2020:()=>Me,decode_prores_raw_rgba:()=>Ee,decode_prores_rgb16:()=>Te,decode_prores_rgba:()=>Oe,decode_prores_thumb_dc32:()=>Fe,decode_r3d_luma:()=>We,decode_r3d_preview:()=>Se,decode_r3d_preview_clip:()=>Re,decode_r3d_rgb16:()=>Le,decode_r3d_rgba:()=>ze,decode_r3d_rgba_clip:()=>De,decode_tiff_preview:()=>Ue,decode_tiff_rgba:()=>je,decode_vc3_band_rgba:()=>Be,decode_vc3_luma:()=>Pe,decode_vc3_mxf:()=>Ce,decode_vc3_preview:()=>qe,decode_vc3_rgba:()=>Ne,decode_xocn_index_luma:()=>He,decode_xocn_luma:()=>Ge,decode_xocn_mxf:()=>Ve,decode_xocn_preview:()=>Ke,decode_xocn_preview_rec709:()=>Xe,decode_xocn_rgb16:()=>Ye,decode_xocn_rgba:()=>$e,default:()=>nt,encode_dci_j2c:()=>Je,encode_dci_j2c_rgb:()=>Qe,encode_dci_j2c_rgba8:()=>Ze,encode_dci_j2c_staged:()=>tn,encode_dci_j2c_staged_modelled:()=>en,encode_exr:()=>nn,encode_prores_4444_alpha_mov_rgba:()=>rn,encode_prores_4444_alpha_sample_q:()=>_n,encode_prores_444_sample_cbr:()=>on,encode_prores_444_sample_cbr_rgb16:()=>an,encode_prores_444_sample_cbr_rgb16_lut:()=>cn,encode_prores_mov_rgba:()=>dn,encode_prores_rgba:()=>sn,encode_prores_sample_cbr:()=>pn,encode_prores_sample_cbr_rgb16:()=>gn,encode_prores_sample_cbr_rgb16_lut:()=>un,encode_prores_sample_q:()=>wn,exr_sequence_filename:()=>bn,fit_sizing:()=>ln,initSync:()=>Lr,inspect_cr3:()=>fn,inspect_dng:()=>xn,inspect_dpx:()=>vn,inspect_exr:()=>In,inspect_isobmff:()=>yn,inspect_tiff:()=>mn,inspect_wav:()=>hn,is_arriraw12_mxf:()=>kn,is_arriraw_mxf:()=>An,is_crm:()=>Mn,is_prores_mxf:()=>En,is_vc3_mxf:()=>Tn,is_xavc_mxf:()=>On,is_xocn_mxf:()=>Fn,list_isobmff_segments:()=>Wn,list_mxf_segments:()=>Sn,list_r3d_frames:()=>Rn,list_r3d_segments:()=>Ln,list_wav_segments:()=>zn,mux_prores_4444_alpha_samples:()=>Dn,mux_prores_samples:()=>Un,mux_prores_samples_full:()=>jn,mxf_au_run:()=>Bn,mxf_frame_index:()=>Pn,mxf_gop_map:()=>Cn,mxf_h264_kind:()=>qn,plan_isobmff_trim:()=>Nn,plan_isobmff_trim_reader:()=>Hn,plan_mxf_compact_trim:()=>Gn,plan_mxf_trim:()=>Vn,plan_r3d_compact:()=>Kn,plan_wav_trim:()=>Xn,plan_wav_trim_reader:()=>Yn,prepare_isobmff:()=>$n,prepare_mxf:()=>Jn,prepare_r3d:()=>Qn,prepare_wav:()=>Zn,probe_mov:()=>tr,probe_mxf:()=>er,probe_r3d:()=>nr,prores_band_info:()=>rr,prores_reset_rate_control:()=>_r,r3d_gpu_develop_params:()=>or,r3d_is_helium:()=>ir,read_arriraw_fcs:()=>ar,read_arriraw_unit_correction:()=>cr,recover_reframe:()=>dr,resample_rgba16:()=>sr,resample_rgba8:()=>pr,reset_dci_rate_state:()=>gr,resize_luma_area:()=>ur,rgba8_to_xyz12:()=>wr,trim_r3d:()=>br,vc3_band_info:()=>lr,video_frame_index_isobmff_reader:()=>fr,xavc_au:()=>xr,xavc_frame_count:()=>vr,xocn_frame_count:()=>Ir,xocn_index_prefix_len:()=>yr,xocn_preview_prefix_len:()=>mr});var J=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,wt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_exrbench_free(e,0)}block_rows(){return t.exrbench_block_rows(this.__wbg_ptr)>>>0}f32_to_half_block(){return t.exrbench_f32_to_half_block(this.__wbg_ptr)}n_blocks(){return t.exrbench_n_blocks(this.__wbg_ptr)>>>0}constructor(e,n,o,a){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=I(a,t.__wbindgen_export4,t.__wbindgen_export5),u=p;t.exrbench_new(s,e,n,o,g,u);var c=_().getInt32(s+0,!0),i=_().getInt32(s+4,!0),d=_().getInt32(s+8,!0);if(d)throw w(i);return this.__wbg_ptr=c,wt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}piz_stage_block(e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_piz_stage_block(c,this.__wbg_ptr,e);var n=_().getFloat64(c+0,!0),o=_().getInt32(c+8,!0),a=_().getInt32(c+12,!0);if(a)throw w(o);return n}finally{t.__wbindgen_add_to_stack_pointer(16)}}staging_f32_ptr(){return t.exrbench_staging_f32_ptr(this.__wbg_ptr)>>>0}staging_f32_samples(){return t.exrbench_staging_f32_samples(this.__wbg_ptr)>>>0}staging_half_len(){return t.exrbench_staging_half_len(this.__wbg_ptr)>>>0}staging_half_ptr(){return t.exrbench_staging_half_ptr(this.__wbg_ptr)>>>0}zip_stage_block(e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_zip_stage_block(c,this.__wbg_ptr,e);var n=_().getFloat64(c+0,!0),o=_().getInt32(c+8,!0),a=_().getInt32(c+12,!0);if(a)throw w(o);return n}finally{t.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(J.prototype[Symbol.dispose]=J.prototype.free);var Q=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,bt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_exrstreamencoder_free(e,0)}block_rows(){return t.exrstreamencoder_block_rows(this.__wbg_ptr)>>>0}finish(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_finish(i,this.__wbg_ptr);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_header(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}n_blocks(){return t.exrstreamencoder_n_blocks(this.__wbg_ptr)>>>0}constructor(e,n,o,a,c,i,d,s,g,u){try{let y=t.__wbindgen_add_to_stack_pointer(-16),h=I(o,t.__wbindgen_export4,t.__wbindgen_export5),k=p,M=I(a,t.__wbindgen_export4,t.__wbindgen_export5),O=p,F=I(c,t.__wbindgen_export4,t.__wbindgen_export5),E=p,W=I(i,t.__wbindgen_export4,t.__wbindgen_export5),S=p,z=I(s,t.__wbindgen_export4,t.__wbindgen_export5),U=p;t.exrstreamencoder_new(y,e,n,h,k,M,O,F,E,W,S,d,z,U,g,u);var b=_().getInt32(y+0,!0),x=_().getInt32(y+4,!0),m=_().getInt32(y+8,!0);if(m)throw w(x);return this.__wbg_ptr=b,bt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_block(e){try{let d=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_push_block(d,this.__wbg_ptr,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}rows_remaining(){return t.exrstreamencoder_rows_remaining(this.__wbg_ptr)>>>0}staging_ptr(){return t.exrstreamencoder_staging_ptr(this.__wbg_ptr)>>>0}staging_samples(){return t.exrstreamencoder_staging_samples(this.__wbg_ptr)>>>0}};Symbol.dispose&&(Q.prototype[Symbol.dispose]=Q.prototype.free);var Z=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,lt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_proresbench_free(e,0)}constructor(e,n,o,a){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=I(o,t.__wbindgen_export4,t.__wbindgen_export5),u=p;t.proresbench_new(s,e,n,g,u,a);var c=_().getInt32(s+0,!0),i=_().getInt32(s+4,!0),d=_().getInt32(s+8,!0);if(d)throw w(i);return this.__wbg_ptr=c,lt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}stage(e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.proresbench_stage(c,this.__wbg_ptr,e);var n=_().getFloat64(c+0,!0),o=_().getInt32(c+8,!0),a=_().getInt32(c+12,!0);if(a)throw w(o);return n}finally{t.__wbindgen_add_to_stack_pointer(16)}}staging_len(){return t.proresbench_staging_len(this.__wbg_ptr)>>>0}staging_ptr(){return t.proresbench_staging_ptr(this.__wbg_ptr)>>>0}};Symbol.dispose&&(Z.prototype[Symbol.dispose]=Z.prototype.free);var tt=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_proresmovencoder_free(e,0)}add_frame_rgba(e){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(e,t.__wbindgen_export4),i=p;t.proresmovencoder_add_frame_rgba(a,this.__wbg_ptr,c,i);var n=_().getInt32(a+0,!0),o=_().getInt32(a+4,!0);if(o)throw w(n)}finally{t.__wbindgen_add_to_stack_pointer(16)}}finish(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovencoder_finish(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovencoder_frame_count(this.__wbg_ptr)>>>0}constructor(e,n,o,a){let c=t.proresmovencoder_new(e,n,o,a);return this.__wbg_ptr=c,ft.register(this,this.__wbg_ptr,this),this}set_alpha(e){t.proresmovencoder_set_alpha(this.__wbg_ptr,e)}set_bitrate_mbps(e){t.proresmovencoder_set_bitrate_mbps(this.__wbg_ptr,e)}set_qscale(e){t.proresmovencoder_set_qscale(this.__wbg_ptr,e)}};Symbol.dispose&&(tt.prototype[Symbol.dispose]=tt.prototype.free);var et=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,xt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_proresmovwriter_free(e,0)}finish(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_finish(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovwriter_frame_count(this.__wbg_ptr)>>>0}header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_header(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_mdat_box_header(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_offset(){return t.proresmovwriter_mdat_box_offset(this.__wbg_ptr)}constructor(e,n,o,a){let c=t.proresmovwriter_new(e,n,o,a);return this.__wbg_ptr=c,xt.register(this,this.__wbg_ptr,this),this}push_frame(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_frame(i,this.__wbg_ptr);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample(e){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(e,t.__wbindgen_export4),i=p;t.proresmovwriter_push_sample(a,this.__wbg_ptr,c,i);var n=_().getInt32(a+0,!0),o=_().getInt32(a+4,!0);if(o)throw w(n)}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample_len(e){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_sample_len(a,this.__wbg_ptr,e);var n=_().getInt32(a+0,!0),o=_().getInt32(a+4,!0);if(o)throw w(n)}finally{t.__wbindgen_add_to_stack_pointer(16)}}reserve_large_mdat(e){t.proresmovwriter_reserve_large_mdat(this.__wbg_ptr,e)}set_alpha(e){t.proresmovwriter_set_alpha(this.__wbg_ptr,e)}set_bitrate_mbps(e){t.proresmovwriter_set_bitrate_mbps(this.__wbg_ptr,e)}set_par(e,n){t.proresmovwriter_set_par(this.__wbg_ptr,e,n)}set_profile(e){let n=I(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p;t.proresmovwriter_set_profile(this.__wbg_ptr,n,o)}set_qscale(e){t.proresmovwriter_set_qscale(this.__wbg_ptr,e)}set_start_timecode(e,n){t.proresmovwriter_set_start_timecode(this.__wbg_ptr,e,n)}staging_len(){return t.proresmovwriter_staging_len(this.__wbg_ptr)>>>0}staging_ptr(){return t.proresmovwriter_staging_ptr(this.__wbg_ptr)>>>0}total_len(){return t.proresmovwriter_total_len(this.__wbg_ptr)}};Symbol.dispose&&(et.prototype[Symbol.dispose]=et.prototype.free);function Ot(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.arriraw12_clip_info(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Ft(r,e,n,o){var a=B(o)?0:I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p;let i=t.arriraw_mxf_gpu_frame(v(r),e,n,a,c);return w(i)}function Wt(r,e,n){let o=t.audio_aac_au(v(r),e,n);return w(o)}function St(r,e){let n=t.audio_aac_config(v(r),e);return w(n)}function Rt(r,e){let n=t.audio_info(v(r),e);return w(n)}function Lt(r){let e=gt(r,t.__wbindgen_export4),n=p;return t.bench_f32_boundary(e,n)}function zt(r,e,n,o){let a=gt(r,t.__wbindgen_export4),c=p;return t.bench_piz_no_huffman(a,c,e,n,o)}function Dt(r,e,n){let o=R(r,t.__wbindgen_export4),a=p;return t.dci_code_full_depth(o,a,e,n)}function Ut(r,e,n){return t.dci_frame_cap(r,e,n)>>>0}function jt(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=I(e,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.dci_gpu_colour_patch(d,s,g,u,b);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=pt(n,o).slice();return t.__wbindgen_export3(n,o*2,2),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Bt(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=I(r,t.__wbindgen_export4,t.__wbindgen_export5),s=p;t.dci_gpu_colour_tables(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pt(){try{let o=t.__wbindgen_add_to_stack_pointer(-16);t.dci_last_pass_caps(o);var r=_().getInt32(o+0,!0),e=_().getInt32(o+4,!0),n=_t(r,e).slice();return t.__wbindgen_export3(r,e*4,4),n}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ct(r,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.dci_legal_rates(c,r,e);var n=_().getInt32(c+0,!0),o=_().getInt32(c+4,!0),a=_t(n,o).slice();return t.__wbindgen_export3(n,o*4,4),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function qt(r){return t.dci_mq_bench(r)>>>0}function Nt(r,e,n,o,a,c,i,d,s,g,u){try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=L(r,t.__wbindgen_export4),O=p,F=l(e,t.__wbindgen_export4),E=p,W=L(n,t.__wbindgen_export4),S=p,z=L(o,t.__wbindgen_export4),U=p,C=L(a,t.__wbindgen_export4),q=p,ot=L(c,t.__wbindgen_export4),it=p,at=L(i,t.__wbindgen_export4),ct=p,Mt=L(d,t.__wbindgen_export4),Et=p;t.dci_pack_tier1(k,M,O,F,E,W,S,z,U,C,q,ot,it,at,ct,Mt,Et,s,g,u);var b=_().getInt32(k+0,!0),x=_().getInt32(k+4,!0),m=_().getInt32(k+8,!0),y=_().getInt32(k+12,!0);if(y)throw w(m);var h=f(b,x).slice();return t.__wbindgen_export3(b,x*1,1),h}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ht(r,e){let n=t.dci_stage_rgba8(r,e);return w(n)}function Gt(r,e,n){let o=R(r,t.__wbindgen_export4),a=p;return t.dci_transform_only(o,a,e,n)}function Vt(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=l(e,t.__wbindgen_export4),b=p;t.decode_arriraw12_luma(d,s,g,u,b);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Kt(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_arriraw12_mxf(v(r),e,n,a,c);return w(i)}function Xt(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p,b=l(e,t.__wbindgen_export4),x=p;t.decode_arriraw12_preview(s,g,u,b,x,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Yt(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=l(e,t.__wbindgen_export4),b=p;t.decode_arriraw12_rgba(d,s,g,u,b);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $t(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_arriraw_luma(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Jt(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_arriraw_mxf(v(r),e,n,a,c);return w(i)}function Qt(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.decode_arriraw_preview(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Zt(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.decode_arriraw_preview_gray(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function te(r,e,n,o,a,c,i,d,s){try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=l(r,t.__wbindgen_export4),O=p;var g=B(s)?0:Y(s,t.__wbindgen_export4),u=p;t.decode_arriraw_preview_meta(k,M,O,e,n,o,a,c,i,d,g,u);var b=_().getInt32(k+0,!0),x=_().getInt32(k+4,!0),m=_().getInt32(k+8,!0),y=_().getInt32(k+12,!0);if(y)throw w(m);var h=f(b,x).slice();return t.__wbindgen_export3(b,x*1,1),h}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ee(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_arriraw_rgba(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ne(r,e,n,o,a,c,i,d){try{let h=t.__wbindgen_add_to_stack_pointer(-16),k=l(r,t.__wbindgen_export4),M=p;var s=B(d)?0:Y(d,t.__wbindgen_export4),g=p;t.decode_arriraw_rgba_meta(h,k,M,e,n,o,a,c,i,s,g);var u=_().getInt32(h+0,!0),b=_().getInt32(h+4,!0),x=_().getInt32(h+8,!0),m=_().getInt32(h+12,!0);if(m)throw w(x);var y=f(u,b).slice();return t.__wbindgen_export3(u,b*1,1),y}finally{t.__wbindgen_add_to_stack_pointer(16)}}function re(r,e,n,o){let a=t.decode_audio_pcm(v(r),e,n,o);return w(a)}function _e(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),i=p;t.decode_braw_gen5log(a,c,i);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function oe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_braw_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ie(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_braw_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ae(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_braw_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ce(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_cr3_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function de(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_crm(v(r),e,n,a,c);return w(i)}function se(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_dng_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_dng_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ge(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_dpx_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ue(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_dpx_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function we(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_exr_linear(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function be(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_exr_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function le(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_exr_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_jpeg_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_png_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ve(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_prores_band_rgba(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ie(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ye(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_prores_mxf(v(r),e,n,a,c);return w(i)}function me(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_prores_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function he(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_acescct(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ke(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ae(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_prores_raw_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Me(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_rec2020(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ee(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Te(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_rgb16(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Oe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_thumb_dc32(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function We(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_r3d_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Se(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_r3d_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Re(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p,b=l(e,t.__wbindgen_export4),x=p;t.decode_r3d_preview_clip(s,g,u,b,x,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Le(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_r3d_rgb16(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ze(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_r3d_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function De(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=l(e,t.__wbindgen_export4),b=p;t.decode_r3d_rgba_clip(d,s,g,u,b);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ue(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_tiff_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function je(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_tiff_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Be(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_vc3_band_rgba(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_vc3_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ce(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_vc3_mxf(v(r),e,n,a,c);return w(i)}function qe(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_vc3_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ne(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_vc3_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function He(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),i=p;t.decode_xocn_index_luma(a,c,i);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ge(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_xocn_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ve(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_xocn_mxf(v(r),e,n,a,c);return w(i)}function Ke(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_xocn_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Xe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_xocn_preview_rec709(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ye(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),i=p;t.decode_xocn_rgb16(a,c,i);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $e(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_xocn_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Je(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=R(r,t.__wbindgen_export4),b=p;t.encode_dci_j2c(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qe(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=R(r,t.__wbindgen_export4),m=p,y=I(n,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.encode_dci_j2c_rgb(b,x,m,e,y,h,o,a,c);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ze(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,m=I(e,t.__wbindgen_export4,t.__wbindgen_export5),y=p;t.encode_dci_j2c_rgba8(u,b,x,m,y,n,o,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function tn(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=I(o,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged(u,r,e,n,b,x,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function en(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=I(o,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged_modelled(u,r,e,n,b,x,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function nn(r,e,n,o,a,c,i,d,s,g,u,b,x,m,y){try{let E=t.__wbindgen_add_to_stack_pointer(-16),W=gt(r,t.__wbindgen_export4),S=p,z=I(a,t.__wbindgen_export4,t.__wbindgen_export5),U=p,C=I(c,t.__wbindgen_export4,t.__wbindgen_export5),q=p,ot=I(i,t.__wbindgen_export4,t.__wbindgen_export5),it=p,at=I(x,t.__wbindgen_export4,t.__wbindgen_export5),ct=p;t.encode_exr(E,W,S,e,n,o,z,U,C,q,ot,it,d,s,g,u,b,at,ct,m,y);var h=_().getInt32(E+0,!0),k=_().getInt32(E+4,!0),M=_().getInt32(E+8,!0),O=_().getInt32(E+12,!0);if(O)throw w(M);var F=f(h,k).slice();return t.__wbindgen_export3(h,k*1,1),F}finally{t.__wbindgen_add_to_stack_pointer(16)}}function rn(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p;t.encode_prores_4444_alpha_mov_rgba(u,b,x,e,n,o,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _n(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_4444_alpha_sample_q(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function on(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function an(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=R(r,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr_rgb16(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function cn(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=R(r,t.__wbindgen_export4),x=p,m=R(a,t.__wbindgen_export4),y=p;t.encode_prores_444_sample_cbr_rgb16_lut(u,b,x,e,n,o,m,y);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function dn(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p;t.encode_prores_mov_rgba(u,b,x,e,n,o,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function sn(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.encode_prores_rgba(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pn(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function gn(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=R(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr_rgb16(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function un(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=R(r,t.__wbindgen_export4),x=p,m=R(a,t.__wbindgen_export4),y=p;t.encode_prores_sample_cbr_rgb16_lut(u,b,x,e,n,o,m,y);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function wn(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_q(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function bn(r,e,n,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=I(r,t.__wbindgen_export4,t.__wbindgen_export5),y=p;t.exr_sequence_filename(x,m,y,e,n,o);var i=_().getInt32(x+0,!0),d=_().getInt32(x+4,!0),s=_().getInt32(x+8,!0),g=_().getInt32(x+12,!0),u=i,b=d;if(g)throw u=0,b=0,w(s);return a=u,c=b,T(u,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function ln(r,e,n,o,a,c,i,d){let s,g;try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=l(r,t.__wbindgen_export4),O=p,F=l(o,t.__wbindgen_export4),E=p,W=I(d,t.__wbindgen_export4,t.__wbindgen_export5),S=p;t.fit_sizing(k,M,O,e,n,F,E,a,c,i,W,S);var u=_().getInt32(k+0,!0),b=_().getInt32(k+4,!0),x=_().getInt32(k+8,!0),m=_().getInt32(k+12,!0),y=u,h=b;if(m)throw y=0,h=0,w(x);return s=y,g=h,T(y,h)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function fn(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_cr3(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function xn(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_dng(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function vn(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_dpx(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function In(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_exr(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function yn(r,e,n){let o=I(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.inspect_isobmff(v(r),e,o,a);return w(c)}function mn(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_tiff(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function hn(r,e){let n=t.inspect_wav(v(r),e);return w(n)}function kn(r,e){let n=t.is_arriraw12_mxf(v(r),e);return w(n)}function An(r,e){let n=t.is_arriraw_mxf(v(r),e);return w(n)}function Mn(r,e){let n=t.is_crm(v(r),e);return w(n)}function En(r,e){let n=t.is_prores_mxf(v(r),e);return w(n)}function Tn(r,e){let n=t.is_vc3_mxf(v(r),e);return w(n)}function On(r,e){let n=t.is_xavc_mxf(v(r),e);return w(n)}function Fn(r,e){let n=t.is_xocn_mxf(v(r),e);return w(n)}function Wn(r,e,n){let o=I(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.list_isobmff_segments(v(r),e,o,a);return w(c)}function Sn(r,e){let n=t.list_mxf_segments(v(r),e);return w(n)}function Rn(r,e){let n=I(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.list_r3d_frames(v(r),n,o);return w(a)}function Ln(r,e){let n=I(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.list_r3d_segments(v(r),n,o);return w(a)}function zn(r,e){let n=t.list_wav_segments(v(r),e);return w(n)}function Dn(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),m=p,y=L(e,t.__wbindgen_export4),h=p;t.mux_prores_4444_alpha_samples(b,x,m,y,h,n,o,a,c);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Un(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),m=p,y=L(e,t.__wbindgen_export4),h=p;t.mux_prores_samples(b,x,m,y,h,n,o,a,c);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function jn(r,e,n,o,a,c,i,d,s,g,u,b){try{let M=t.__wbindgen_add_to_stack_pointer(-16),O=l(r,t.__wbindgen_export4),F=p,E=L(e,t.__wbindgen_export4),W=p,S=I(i,t.__wbindgen_export4,t.__wbindgen_export5),z=p;t.mux_prores_samples_full(M,O,F,E,W,n,o,a,c,S,z,d,s,g,u,b);var x=_().getInt32(M+0,!0),m=_().getInt32(M+4,!0),y=_().getInt32(M+8,!0),h=_().getInt32(M+12,!0);if(h)throw w(y);var k=f(x,m).slice();return t.__wbindgen_export3(x,m*1,1),k}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Bn(r,e,n,o){let a=t.mxf_au_run(v(r),e,n,o);return w(a)}function Pn(r,e){let n=t.mxf_frame_index(v(r),e);return w(n)}function Cn(r,e){let n=t.mxf_gop_map(v(r),e);return w(n)}function qn(r,e){let n=t.mxf_h264_kind(v(r),e);return w(n)}function Nn(r,e){let n,o;try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,m=I(e,t.__wbindgen_export4,t.__wbindgen_export5),y=p;t.plan_isobmff_trim(u,b,x,m,y);var a=_().getInt32(u+0,!0),c=_().getInt32(u+4,!0),i=_().getInt32(u+8,!0),d=_().getInt32(u+12,!0),s=a,g=c;if(d)throw s=0,g=0,w(i);return n=s,o=g,T(s,g)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,o,1)}}function Hn(r,e,n,o,a){let c=I(a,t.__wbindgen_export4,t.__wbindgen_export5),i=p,d=t.plan_isobmff_trim_reader(v(r),e,n,o,c,i);return w(d)}function Gn(r){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=I(r,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.plan_mxf_compact_trim(g,u,b);var o=_().getInt32(g+0,!0),a=_().getInt32(g+4,!0),c=_().getInt32(g+8,!0),i=_().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,w(c);return e=d,n=s,T(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Vn(r,e,n,o){let a=t.plan_mxf_trim(v(r),e,n,o);return w(a)}function Kn(r,e,n,o,a,c,i,d){let s,g;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=l(r,t.__wbindgen_export4),y=p,h=l(e,t.__wbindgen_export4),k=p,M=l(n,t.__wbindgen_export4),O=p,F=l(o,t.__wbindgen_export4),E=p,W=Y(a,t.__wbindgen_export4),S=p,z=Y(c,t.__wbindgen_export4),U=p,C=Y(i,t.__wbindgen_export4),q=p;t.plan_r3d_compact(x,m,y,h,k,M,O,F,E,W,S,z,U,C,q,d);var u=_().getInt32(x+0,!0),b=_().getInt32(x+4,!0);return s=u,g=b,T(u,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function Xn(r,e,n,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=l(r,t.__wbindgen_export4),y=p;t.plan_wav_trim(x,m,y,e,n,o);var i=_().getInt32(x+0,!0),d=_().getInt32(x+4,!0),s=_().getInt32(x+8,!0),g=_().getInt32(x+12,!0),u=i,b=d;if(g)throw u=0,b=0,w(s);return a=u,c=b,T(u,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function Yn(r,e,n,o,a){let c=t.plan_wav_trim_reader(v(r),e,n,o,a);return w(c)}function $n(r,e,n,o){let a=I(n,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=I(o,t.__wbindgen_export4,t.__wbindgen_export5),d=p,s=t.prepare_isobmff(v(r),e,a,c,i,d);return w(s)}function Jn(r,e,n){let o=I(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.prepare_mxf(v(r),e,o,a);return w(c)}function Qn(r,e,n){let o=I(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=I(n,t.__wbindgen_export4,t.__wbindgen_export5),i=p,d=t.prepare_r3d(v(r),o,a,c,i);return w(d)}function Zn(r,e,n,o){let a=I(n,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.prepare_wav(v(r),e,a,c,o);return w(i)}function tr(r){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.probe_mov(g,u,b);var o=_().getInt32(g+0,!0),a=_().getInt32(g+4,!0),c=_().getInt32(g+8,!0),i=_().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,w(c);return e=d,n=s,T(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function er(r,e){let n=t.probe_mxf(v(r),e);return w(n)}function nr(r,e){let n=I(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.probe_r3d(v(r),n,o);return w(a)}function rr(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.prores_band_info(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=_t(e,n).slice();return t.__wbindgen_export3(e,n*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _r(){t.prores_reset_rate_control()}function or(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),i=p;t.r3d_gpu_develop_params(a,c,i);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ir(r){let e=l(r,t.__wbindgen_export4),n=p;return t.r3d_is_helium(e,n)!==0}function ar(r){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.read_arriraw_fcs(g,u,b);var o=_().getInt32(g+0,!0),a=_().getInt32(g+4,!0),c=_().getInt32(g+8,!0),i=_().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,w(c);return e=d,n=s,T(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function cr(r,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.read_arriraw_unit_correction(c,i,d,e);var n=_().getInt32(c+0,!0),o=_().getInt32(c+4,!0),a=Mr(n,o).slice();return t.__wbindgen_export3(n,o*8,8),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function dr(r,e,n,o,a,c,i){let d,s;try{let h=t.__wbindgen_add_to_stack_pointer(-16),k=l(r,t.__wbindgen_export4),M=p,O=l(o,t.__wbindgen_export4),F=p,E=I(i,t.__wbindgen_export4,t.__wbindgen_export5),W=p;t.recover_reframe(h,k,M,e,n,O,F,a,c,E,W);var g=_().getInt32(h+0,!0),u=_().getInt32(h+4,!0),b=_().getInt32(h+8,!0),x=_().getInt32(h+12,!0),m=g,y=u;if(x)throw m=0,y=0,w(b);return d=m,s=y,T(m,y)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(d,s,1)}}function sr(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=R(r,t.__wbindgen_export4),m=p,y=I(c,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.resample_rgba16(b,x,m,e,n,o,a,y,h);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=pt(i,d).slice();return t.__wbindgen_export3(i,d*2,2),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pr(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),m=p,y=I(c,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.resample_rgba8(b,x,m,e,n,o,a,y,h);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function gr(){t.reset_dci_rate_state()}function ur(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.resize_luma_area(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function wr(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,m=I(a,t.__wbindgen_export4,t.__wbindgen_export5),y=p;t.rgba8_to_xyz12(u,b,x,e,n,o,m,y);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=pt(c,i).slice();return t.__wbindgen_export3(c,i*2,2),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function br(r,e,n,o){let a=I(e,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=I(n,t.__wbindgen_export4,t.__wbindgen_export5),d=p,s=I(o,t.__wbindgen_export4,t.__wbindgen_export5),g=p,u=t.trim_r3d(v(r),a,c,i,d,s,g);return w(u)}function lr(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.vc3_band_info(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=_t(e,n).slice();return t.__wbindgen_export3(e,n*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fr(r,e,n){let o=I(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.video_frame_index_isobmff_reader(v(r),e,o,a);return w(c)}function xr(r,e,n){let o=t.xavc_au(v(r),e,n);return w(o)}function vr(r,e){let n=t.xavc_frame_count(v(r),e);return w(n)}function Ir(r,e){let n=t.xocn_frame_count(v(r),e);return w(n)}function yr(r){let e=l(r,t.__wbindgen_export4),n=p;return t.xocn_index_prefix_len(e,n)>>>0}function mr(r){let e=l(r,t.__wbindgen_export4),n=p;return t.xocn_preview_prefix_len(e,n)>>>0}function It(){return{__proto__:null,"./media_core_bg.js":{__proto__:null,__wbg___wbindgen_is_function_acc5528be2b923f2:function(e){return typeof A(e)=="function"},__wbg___wbindgen_is_undefined_721f8decd50c87a3:function(e){return A(e)===void 0},__wbg___wbindgen_throw_ea4887a5f8f9a9db:function(e,n){throw new Error(T(e,n))},__wbg__wbg_cb_unref_33c39e13d73b25f6:function(e){A(e)._wbg_cb_unref()},__wbg_call_0e855b388e315e17:function(){return dt(function(e,n,o,a){let c=A(e).call(A(n),A(o),A(a));return v(c)},arguments)},__wbg_call_5575218572ead796:function(){return dt(function(e,n,o){let a=A(e).call(A(n),A(o));return v(a)},arguments)},__wbg_call_dd0f909cbc9405d0:function(){return dt(function(e,n,o,a,c){let i=A(e).call(A(n),A(o),A(a),A(c));return v(i)},arguments)},__wbg_length_589238bdcf171f0e:function(e){return A(e).length},__wbg_new_81880fb5002cb255:function(e){let n=new Uint8Array(A(e));return v(n)},__wbg_new_typed_00a409eb4ec4f2d9:function(e,n){try{var o={a:e,b:n},a=(i,d)=>{let s=o.a;o.a=0;try{return kr(s,o.b,i,d)}finally{o.a=s}};let c=new Promise(a);return v(c)}finally{o.a=0}},__wbg_prototypesetcall_d721637c7ca66eb8:function(e,n,o){Uint8Array.prototype.set.call(f(e,n),A(o))},__wbg_queueMicrotask_1c9b3800e321a967:function(e){let n=A(e).queueMicrotask;return v(n)},__wbg_queueMicrotask_311744e534a929a3:function(e){queueMicrotask(A(e))},__wbg_resolve_d82363d90af6928a:function(e){let n=Promise.resolve(A(e));return v(n)},__wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938:function(){let e=typeof globalThis>"u"?null:globalThis;return B(e)?0:v(e)},__wbg_static_accessor_GLOBAL_ce44e66a4935da8c:function(){let e=typeof global>"u"?null:global;return B(e)?0:v(e)},__wbg_static_accessor_SELF_44f6e0cb5e67cdad:function(){let e=typeof self>"u"?null:self;return B(e)?0:v(e)},__wbg_static_accessor_WINDOW_168f178805d978fe:function(){let e=typeof window>"u"?null:window;return B(e)?0:v(e)},__wbg_then_05edfc8a4fea5106:function(e,n,o){let a=A(e).then(A(n),A(o));return v(a)},__wbg_then_591b6b3a75ee817a:function(e,n){let o=A(e).then(A(n));return v(o)},__wbindgen_cast_0000000000000001:function(e,n){let o=Tr(e,n,hr);return v(o)},__wbindgen_cast_0000000000000002:function(e){return v(e)},__wbindgen_cast_0000000000000003:function(e,n){let o=f(e,n);return v(o)},__wbindgen_cast_0000000000000004:function(e,n){let o=T(e,n);return v(o)},__wbindgen_cast_0000000000000005:function(e,n){var o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),v(o)},__wbindgen_object_clone_ref:function(e){let n=A(e);return v(n)},__wbindgen_object_drop_ref:function(e){w(e)}}}}function hr(r,e,n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.__wasm_bindgen_func_elem_1765(c,r,e,v(n));var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);if(a)throw w(o)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function kr(r,e,n,o){t.__wasm_bindgen_func_elem_1780(r,e,v(n),v(o))}var wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_exrbench_free(r,1)),bt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_exrstreamencoder_free(r,1)),lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresbench_free(r,1)),ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresmovencoder_free(r,1)),xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresmovwriter_free(r,1));function v(r){X===D.length&&D.push(D.length+1);let e=X;return X=D[e],D[e]=r,e}var vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbindgen_export2(r.a,r.b));function Ar(r){r<1028||(D[r]=X,X=r)}function Mr(r,e){return r=r>>>0,yt().subarray(r/8,r/8+e)}function pt(r,e){return r=r>>>0,mt().subarray(r/2,r/2+e)}function _t(r,e){return r=r>>>0,ht().subarray(r/4,r/4+e)}function f(r,e){return r=r>>>0,P().subarray(r/1,r/1+e)}var j=null;function _(){return(j===null||j.buffer.detached===!0||j.buffer.detached===void 0&&j.buffer!==t.memory.buffer)&&(j=new DataView(t.memory.buffer)),j}var N=null;function Er(){return(N===null||N.byteLength===0)&&(N=new Float32Array(t.memory.buffer)),N}var H=null;function yt(){return(H===null||H.byteLength===0)&&(H=new Float64Array(t.memory.buffer)),H}function T(r,e){return Fr(r>>>0,e)}var G=null;function mt(){return(G===null||G.byteLength===0)&&(G=new Uint16Array(t.memory.buffer)),G}var V=null;function ht(){return(V===null||V.byteLength===0)&&(V=new Uint32Array(t.memory.buffer)),V}var K=null;function P(){return(K===null||K.byteLength===0)&&(K=new Uint8Array(t.memory.buffer)),K}function A(r){return D[r]}function dt(r,e){try{return r.apply(this,e)}catch(n){t.__wbindgen_export(v(n))}}var D=new Array(1024).fill(void 0);D.push(void 0,null,!0,!1);var X=D.length;function B(r){return r==null}function Tr(r,e,n){let o={a:r,b:e,cnt:1},a=(...c)=>{o.cnt++;let i=o.a;o.a=0;try{return n(i,o.b,...c)}finally{o.a=i,a._wbg_cb_unref()}};return a._wbg_cb_unref=()=>{--o.cnt===0&&(t.__wbindgen_export2(o.a,o.b),o.a=0,vt.unregister(o))},vt.register(a,o,o),a}function R(r,e){let n=e(r.length*2,2)>>>0;return mt().set(r,n/2),p=r.length,n}function L(r,e){let n=e(r.length*4,4)>>>0;return ht().set(r,n/4),p=r.length,n}function l(r,e){let n=e(r.length*1,1)>>>0;return P().set(r,n/1),p=r.length,n}function gt(r,e){let n=e(r.length*4,4)>>>0;return Er().set(r,n/4),p=r.length,n}function Y(r,e){let n=e(r.length*8,8)>>>0;return yt().set(r,n/8),p=r.length,n}function I(r,e,n){if(n===void 0){let d=$.encode(r),s=e(d.length,1)>>>0;return P().subarray(s,s+d.length).set(d),p=d.length,s}let o=r.length,a=e(o,1)>>>0,c=P(),i=0;for(;i<o;i++){let d=r.charCodeAt(i);if(d>127)break;c[a+i]=d}if(i!==o){i!==0&&(r=r.slice(i)),a=n(a,o,o=i+r.length*3,1)>>>0;let d=P().subarray(a+i,a+o),s=$.encodeInto(r,d);i+=s.written,a=n(a,o,i,1)>>>0}return p=i,a}function w(r){let e=A(r);return Ar(r),e}var rt=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});rt.decode();var Or=2146435072,st=0;function Fr(r,e){return st+=e,st>=Or&&(rt=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),rt.decode(),st=e),rt.decode(P().subarray(r,r+e))}var $=new TextEncoder;"encodeInto"in $||($.encodeInto=function(r,e){let n=$.encode(r);return e.set(n),{read:r.length,written:n.length}});var p=0,Wr,Sr,t;function kt(r,e){return Sr=r,t=r.exports,Wr=e,j=null,N=null,H=null,G=null,V=null,K=null,t}async function Rr(r,e){if(typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,e)}catch(a){if(r.ok&&n(r.type)&&r.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",a);else throw a}let o=await r.arrayBuffer();return await WebAssembly.instantiate(o,e)}else{let o=await WebAssembly.instantiate(r,e);return o instanceof WebAssembly.Instance?{instance:o,module:r}:o}function n(o){switch(o){case"basic":case"cors":case"default":return!0}return!1}}function Lr(r){if(t!==void 0)return t;r!==void 0&&(Object.getPrototypeOf(r)===Object.prototype?{module:r}=r:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let e=It();r instanceof WebAssembly.Module||(r=new WebAssembly.Module(r));let n=new WebAssembly.Instance(r,e);return kt(n,r)}async function nt(r){if(t!==void 0)return t;r!==void 0&&(Object.getPrototypeOf(r)===Object.prototype?{module_or_path:r}=r:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),r===void 0&&(r=new URL("media_core_bg.wasm",import.meta.url));let e=It();(typeof r=="string"||typeof Request=="function"&&r instanceof Request||typeof URL=="function"&&r instanceof URL)&&(r=fetch(r));let{instance:n,module:o}=await Rr(await r,e);return kt(n,o)}var Ur=import.meta.env?.MODE==="development"?["conform.tools","localhost"]:["conform.tools"];var ut=null,zr=!1;function Dr(r){return ut||(ut=(async()=>{if(r!==void 0)return nt(r);if(typeof process<"u"&&process.versions?.node){let n="node:fs/promises",{readFile:o}=await import(n),a=await o(new URL("./wasm/media_core_bg.wasm",import.meta.url));return nt({module_or_path:a})}let{default:e}=await import("./media_core_bg-YBW45HJ2.js");return nt({module_or_path:e})})().then(e=>(zr=!0,e))),ut}function qr(){return Dr()}export{Ft as a,Rt as b,Kt as c,$t as d,Jt as e,Zt as f,re as g,_e as h,oe as i,ie as j,ae as k,ce as l,de as m,pe as n,ue as o,le as p,fe as q,xe as r,Ie as s,ye as t,me as u,he as v,ke as w,Ae as x,Ee as y,Te as z,Oe as A,Fe as B,We as C,Se as D,Re as E,Le as F,De as G,je as H,Pe as I,Ce as J,qe as K,Ne as L,He as M,Ge as N,Ve as O,Ke as P,Xe as Q,ln as R,fn as S,xn as T,vn as U,In as V,yn as W,mn as X,hn as Y,kn as Z,An as _,En as $,Tn as aa,Fn as ba,Wn as ca,Sn as da,Rn as ea,Ln as fa,zn as ga,Bn as ha,Pn as ia,Cn as ja,Hn as ka,Vn as la,Yn as ma,$n as na,Jn as oa,Zn as pa,er as qa,nr as ra,or as sa,ir as ta,dr as ua,ur as va,br as wa,fr as xa,yr as ya,mr as za,At as Aa,Dr as Ba,qr as Ca};
3
+ import{d as Tt}from"./chunk-PSANHDZM.js";var At={};Tt(At,{ExrBench:()=>J,ExrStreamEncoder:()=>Q,ProResBench:()=>Z,ProResMovEncoder:()=>tt,ProResMovWriter:()=>et,arriraw12_clip_info:()=>Ot,arriraw_mxf_gpu_frame:()=>Ft,audio_aac_au:()=>Wt,audio_aac_config:()=>St,audio_info:()=>Rt,bench_f32_boundary:()=>Lt,bench_piz_no_huffman:()=>zt,dci_code_full_depth:()=>Dt,dci_frame_cap:()=>Ut,dci_gpu_colour_patch:()=>jt,dci_gpu_colour_tables:()=>Bt,dci_last_pass_caps:()=>Pt,dci_legal_rates:()=>Ct,dci_mq_bench:()=>qt,dci_pack_tier1:()=>Nt,dci_stage_rgba8:()=>Ht,dci_transform_only:()=>Gt,decode_arriraw12_luma:()=>Vt,decode_arriraw12_mxf:()=>Kt,decode_arriraw12_preview:()=>Xt,decode_arriraw12_rgba:()=>Yt,decode_arriraw_luma:()=>$t,decode_arriraw_mxf:()=>Jt,decode_arriraw_preview:()=>Qt,decode_arriraw_preview_gray:()=>Zt,decode_arriraw_preview_meta:()=>te,decode_arriraw_rgba:()=>ee,decode_arriraw_rgba_meta:()=>ne,decode_audio_pcm:()=>re,decode_braw_gen5log:()=>_e,decode_braw_luma:()=>oe,decode_braw_preview:()=>ie,decode_braw_rgba:()=>ae,decode_cr3_rgba:()=>ce,decode_crm:()=>de,decode_dng_preview:()=>se,decode_dng_rgba:()=>pe,decode_dpx_preview:()=>ge,decode_dpx_rgba:()=>ue,decode_exr_linear:()=>we,decode_exr_preview:()=>be,decode_exr_rgba:()=>le,decode_jpeg_rgba:()=>fe,decode_png_rgba:()=>xe,decode_prores_band_rgba:()=>ve,decode_prores_luma:()=>Ie,decode_prores_mxf:()=>ye,decode_prores_preview:()=>me,decode_prores_raw_acescct:()=>he,decode_prores_raw_luma:()=>ke,decode_prores_raw_preview:()=>Ae,decode_prores_raw_rec2020:()=>Me,decode_prores_raw_rgba:()=>Ee,decode_prores_rgb16:()=>Te,decode_prores_rgba:()=>Oe,decode_prores_thumb_dc32:()=>Fe,decode_r3d_luma:()=>We,decode_r3d_preview:()=>Se,decode_r3d_preview_clip:()=>Re,decode_r3d_rgb16:()=>Le,decode_r3d_rgba:()=>ze,decode_r3d_rgba_clip:()=>De,decode_tiff_preview:()=>Ue,decode_tiff_rgba:()=>je,decode_vc3_band_rgba:()=>Be,decode_vc3_luma:()=>Pe,decode_vc3_mxf:()=>Ce,decode_vc3_preview:()=>qe,decode_vc3_rgba:()=>Ne,decode_xocn_index_luma:()=>He,decode_xocn_luma:()=>Ge,decode_xocn_mxf:()=>Ve,decode_xocn_preview:()=>Ke,decode_xocn_preview_rec709:()=>Xe,decode_xocn_rgb16:()=>Ye,decode_xocn_rgba:()=>$e,default:()=>nt,encode_dci_j2c:()=>Je,encode_dci_j2c_rgb:()=>Qe,encode_dci_j2c_rgba8:()=>Ze,encode_dci_j2c_staged:()=>tn,encode_dci_j2c_staged_modelled:()=>en,encode_exr:()=>nn,encode_prores_4444_alpha_mov_rgba:()=>rn,encode_prores_4444_alpha_sample_q:()=>_n,encode_prores_444_sample_cbr:()=>on,encode_prores_444_sample_cbr_rgb16:()=>an,encode_prores_444_sample_cbr_rgb16_lut:()=>cn,encode_prores_mov_rgba:()=>dn,encode_prores_rgba:()=>sn,encode_prores_sample_cbr:()=>pn,encode_prores_sample_cbr_rgb16:()=>gn,encode_prores_sample_cbr_rgb16_lut:()=>un,encode_prores_sample_q:()=>wn,exr_sequence_filename:()=>bn,fit_sizing:()=>ln,initSync:()=>Lr,inspect_cr3:()=>fn,inspect_dng:()=>xn,inspect_dpx:()=>vn,inspect_exr:()=>In,inspect_isobmff:()=>yn,inspect_tiff:()=>mn,inspect_wav:()=>hn,is_arriraw12_mxf:()=>kn,is_arriraw_mxf:()=>An,is_crm:()=>Mn,is_prores_mxf:()=>En,is_vc3_mxf:()=>Tn,is_xavc_mxf:()=>On,is_xocn_mxf:()=>Fn,list_isobmff_segments:()=>Wn,list_mxf_segments:()=>Sn,list_r3d_frames:()=>Rn,list_r3d_segments:()=>Ln,list_wav_segments:()=>zn,mux_prores_4444_alpha_samples:()=>Dn,mux_prores_samples:()=>Un,mux_prores_samples_full:()=>jn,mxf_au_run:()=>Bn,mxf_frame_index:()=>Pn,mxf_gop_map:()=>Cn,mxf_h264_kind:()=>qn,plan_isobmff_trim:()=>Nn,plan_isobmff_trim_reader:()=>Hn,plan_mxf_compact_trim:()=>Gn,plan_mxf_trim:()=>Vn,plan_r3d_compact:()=>Kn,plan_wav_trim:()=>Xn,plan_wav_trim_reader:()=>Yn,prepare_isobmff:()=>$n,prepare_mxf:()=>Jn,prepare_r3d:()=>Qn,prepare_wav:()=>Zn,probe_mov:()=>tr,probe_mxf:()=>er,probe_r3d:()=>nr,prores_band_info:()=>rr,prores_reset_rate_control:()=>_r,r3d_gpu_develop_params:()=>or,r3d_is_helium:()=>ir,read_arriraw_fcs:()=>ar,read_arriraw_unit_correction:()=>cr,recover_reframe:()=>dr,resample_rgba16:()=>sr,resample_rgba8:()=>pr,reset_dci_rate_state:()=>gr,resize_luma_area:()=>ur,rgba8_to_xyz12:()=>wr,trim_r3d:()=>br,vc3_band_info:()=>lr,video_frame_index_isobmff_reader:()=>fr,xavc_au:()=>xr,xavc_frame_count:()=>vr,xocn_frame_count:()=>Ir,xocn_index_prefix_len:()=>yr,xocn_preview_prefix_len:()=>mr});var J=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,wt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_exrbench_free(e,0)}block_rows(){return t.exrbench_block_rows(this.__wbg_ptr)>>>0}f32_to_half_block(){return t.exrbench_f32_to_half_block(this.__wbg_ptr)}n_blocks(){return t.exrbench_n_blocks(this.__wbg_ptr)>>>0}constructor(e,n,o,a){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=I(a,t.__wbindgen_export4,t.__wbindgen_export5),u=p;t.exrbench_new(s,e,n,o,g,u);var c=_().getInt32(s+0,!0),i=_().getInt32(s+4,!0),d=_().getInt32(s+8,!0);if(d)throw w(i);return this.__wbg_ptr=c,wt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}piz_stage_block(e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_piz_stage_block(c,this.__wbg_ptr,e);var n=_().getFloat64(c+0,!0),o=_().getInt32(c+8,!0),a=_().getInt32(c+12,!0);if(a)throw w(o);return n}finally{t.__wbindgen_add_to_stack_pointer(16)}}staging_f32_ptr(){return t.exrbench_staging_f32_ptr(this.__wbg_ptr)>>>0}staging_f32_samples(){return t.exrbench_staging_f32_samples(this.__wbg_ptr)>>>0}staging_half_len(){return t.exrbench_staging_half_len(this.__wbg_ptr)>>>0}staging_half_ptr(){return t.exrbench_staging_half_ptr(this.__wbg_ptr)>>>0}zip_stage_block(e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_zip_stage_block(c,this.__wbg_ptr,e);var n=_().getFloat64(c+0,!0),o=_().getInt32(c+8,!0),a=_().getInt32(c+12,!0);if(a)throw w(o);return n}finally{t.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(J.prototype[Symbol.dispose]=J.prototype.free);var Q=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,bt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_exrstreamencoder_free(e,0)}block_rows(){return t.exrstreamencoder_block_rows(this.__wbg_ptr)>>>0}finish(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_finish(i,this.__wbg_ptr);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_header(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}n_blocks(){return t.exrstreamencoder_n_blocks(this.__wbg_ptr)>>>0}constructor(e,n,o,a,c,i,d,s,g,u){try{let y=t.__wbindgen_add_to_stack_pointer(-16),h=I(o,t.__wbindgen_export4,t.__wbindgen_export5),k=p,M=I(a,t.__wbindgen_export4,t.__wbindgen_export5),O=p,F=I(c,t.__wbindgen_export4,t.__wbindgen_export5),E=p,W=I(i,t.__wbindgen_export4,t.__wbindgen_export5),S=p,z=I(s,t.__wbindgen_export4,t.__wbindgen_export5),U=p;t.exrstreamencoder_new(y,e,n,h,k,M,O,F,E,W,S,d,z,U,g,u);var b=_().getInt32(y+0,!0),x=_().getInt32(y+4,!0),m=_().getInt32(y+8,!0);if(m)throw w(x);return this.__wbg_ptr=b,bt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_block(e){try{let d=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_push_block(d,this.__wbg_ptr,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}rows_remaining(){return t.exrstreamencoder_rows_remaining(this.__wbg_ptr)>>>0}staging_ptr(){return t.exrstreamencoder_staging_ptr(this.__wbg_ptr)>>>0}staging_samples(){return t.exrstreamencoder_staging_samples(this.__wbg_ptr)>>>0}};Symbol.dispose&&(Q.prototype[Symbol.dispose]=Q.prototype.free);var Z=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,lt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_proresbench_free(e,0)}constructor(e,n,o,a){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=I(o,t.__wbindgen_export4,t.__wbindgen_export5),u=p;t.proresbench_new(s,e,n,g,u,a);var c=_().getInt32(s+0,!0),i=_().getInt32(s+4,!0),d=_().getInt32(s+8,!0);if(d)throw w(i);return this.__wbg_ptr=c,lt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}stage(e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.proresbench_stage(c,this.__wbg_ptr,e);var n=_().getFloat64(c+0,!0),o=_().getInt32(c+8,!0),a=_().getInt32(c+12,!0);if(a)throw w(o);return n}finally{t.__wbindgen_add_to_stack_pointer(16)}}staging_len(){return t.proresbench_staging_len(this.__wbg_ptr)>>>0}staging_ptr(){return t.proresbench_staging_ptr(this.__wbg_ptr)>>>0}};Symbol.dispose&&(Z.prototype[Symbol.dispose]=Z.prototype.free);var tt=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_proresmovencoder_free(e,0)}add_frame_rgba(e){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(e,t.__wbindgen_export4),i=p;t.proresmovencoder_add_frame_rgba(a,this.__wbg_ptr,c,i);var n=_().getInt32(a+0,!0),o=_().getInt32(a+4,!0);if(o)throw w(n)}finally{t.__wbindgen_add_to_stack_pointer(16)}}finish(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovencoder_finish(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovencoder_frame_count(this.__wbg_ptr)>>>0}constructor(e,n,o,a){let c=t.proresmovencoder_new(e,n,o,a);return this.__wbg_ptr=c,ft.register(this,this.__wbg_ptr,this),this}set_alpha(e){t.proresmovencoder_set_alpha(this.__wbg_ptr,e)}set_bitrate_mbps(e){t.proresmovencoder_set_bitrate_mbps(this.__wbg_ptr,e)}set_qscale(e){t.proresmovencoder_set_qscale(this.__wbg_ptr,e)}};Symbol.dispose&&(tt.prototype[Symbol.dispose]=tt.prototype.free);var et=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,xt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_proresmovwriter_free(e,0)}finish(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_finish(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovwriter_frame_count(this.__wbg_ptr)>>>0}header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_header(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_mdat_box_header(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_offset(){return t.proresmovwriter_mdat_box_offset(this.__wbg_ptr)}constructor(e,n,o,a){let c=t.proresmovwriter_new(e,n,o,a);return this.__wbg_ptr=c,xt.register(this,this.__wbg_ptr,this),this}push_frame(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_frame(i,this.__wbg_ptr);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample(e){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(e,t.__wbindgen_export4),i=p;t.proresmovwriter_push_sample(a,this.__wbg_ptr,c,i);var n=_().getInt32(a+0,!0),o=_().getInt32(a+4,!0);if(o)throw w(n)}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample_len(e){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_sample_len(a,this.__wbg_ptr,e);var n=_().getInt32(a+0,!0),o=_().getInt32(a+4,!0);if(o)throw w(n)}finally{t.__wbindgen_add_to_stack_pointer(16)}}reserve_large_mdat(e){t.proresmovwriter_reserve_large_mdat(this.__wbg_ptr,e)}set_alpha(e){t.proresmovwriter_set_alpha(this.__wbg_ptr,e)}set_bitrate_mbps(e){t.proresmovwriter_set_bitrate_mbps(this.__wbg_ptr,e)}set_par(e,n){t.proresmovwriter_set_par(this.__wbg_ptr,e,n)}set_profile(e){let n=I(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p;t.proresmovwriter_set_profile(this.__wbg_ptr,n,o)}set_qscale(e){t.proresmovwriter_set_qscale(this.__wbg_ptr,e)}set_start_timecode(e,n){t.proresmovwriter_set_start_timecode(this.__wbg_ptr,e,n)}staging_len(){return t.proresmovwriter_staging_len(this.__wbg_ptr)>>>0}staging_ptr(){return t.proresmovwriter_staging_ptr(this.__wbg_ptr)>>>0}total_len(){return t.proresmovwriter_total_len(this.__wbg_ptr)}};Symbol.dispose&&(et.prototype[Symbol.dispose]=et.prototype.free);function Ot(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.arriraw12_clip_info(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Ft(r,e,n,o){var a=B(o)?0:I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p;let i=t.arriraw_mxf_gpu_frame(v(r),e,n,a,c);return w(i)}function Wt(r,e,n){let o=t.audio_aac_au(v(r),e,n);return w(o)}function St(r,e){let n=t.audio_aac_config(v(r),e);return w(n)}function Rt(r,e){let n=t.audio_info(v(r),e);return w(n)}function Lt(r){let e=gt(r,t.__wbindgen_export4),n=p;return t.bench_f32_boundary(e,n)}function zt(r,e,n,o){let a=gt(r,t.__wbindgen_export4),c=p;return t.bench_piz_no_huffman(a,c,e,n,o)}function Dt(r,e,n){let o=R(r,t.__wbindgen_export4),a=p;return t.dci_code_full_depth(o,a,e,n)}function Ut(r,e,n){return t.dci_frame_cap(r,e,n)>>>0}function jt(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=I(e,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.dci_gpu_colour_patch(d,s,g,u,b);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=pt(n,o).slice();return t.__wbindgen_export3(n,o*2,2),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Bt(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=I(r,t.__wbindgen_export4,t.__wbindgen_export5),s=p;t.dci_gpu_colour_tables(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pt(){try{let o=t.__wbindgen_add_to_stack_pointer(-16);t.dci_last_pass_caps(o);var r=_().getInt32(o+0,!0),e=_().getInt32(o+4,!0),n=_t(r,e).slice();return t.__wbindgen_export3(r,e*4,4),n}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ct(r,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.dci_legal_rates(c,r,e);var n=_().getInt32(c+0,!0),o=_().getInt32(c+4,!0),a=_t(n,o).slice();return t.__wbindgen_export3(n,o*4,4),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function qt(r){return t.dci_mq_bench(r)>>>0}function Nt(r,e,n,o,a,c,i,d,s,g,u){try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=L(r,t.__wbindgen_export4),O=p,F=l(e,t.__wbindgen_export4),E=p,W=L(n,t.__wbindgen_export4),S=p,z=L(o,t.__wbindgen_export4),U=p,C=L(a,t.__wbindgen_export4),q=p,ot=L(c,t.__wbindgen_export4),it=p,at=L(i,t.__wbindgen_export4),ct=p,Mt=L(d,t.__wbindgen_export4),Et=p;t.dci_pack_tier1(k,M,O,F,E,W,S,z,U,C,q,ot,it,at,ct,Mt,Et,s,g,u);var b=_().getInt32(k+0,!0),x=_().getInt32(k+4,!0),m=_().getInt32(k+8,!0),y=_().getInt32(k+12,!0);if(y)throw w(m);var h=f(b,x).slice();return t.__wbindgen_export3(b,x*1,1),h}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ht(r,e){let n=t.dci_stage_rgba8(r,e);return w(n)}function Gt(r,e,n){let o=R(r,t.__wbindgen_export4),a=p;return t.dci_transform_only(o,a,e,n)}function Vt(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=l(e,t.__wbindgen_export4),b=p;t.decode_arriraw12_luma(d,s,g,u,b);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Kt(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_arriraw12_mxf(v(r),e,n,a,c);return w(i)}function Xt(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p,b=l(e,t.__wbindgen_export4),x=p;t.decode_arriraw12_preview(s,g,u,b,x,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Yt(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=l(e,t.__wbindgen_export4),b=p;t.decode_arriraw12_rgba(d,s,g,u,b);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $t(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_arriraw_luma(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Jt(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_arriraw_mxf(v(r),e,n,a,c);return w(i)}function Qt(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.decode_arriraw_preview(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Zt(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.decode_arriraw_preview_gray(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function te(r,e,n,o,a,c,i,d,s){try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=l(r,t.__wbindgen_export4),O=p;var g=B(s)?0:Y(s,t.__wbindgen_export4),u=p;t.decode_arriraw_preview_meta(k,M,O,e,n,o,a,c,i,d,g,u);var b=_().getInt32(k+0,!0),x=_().getInt32(k+4,!0),m=_().getInt32(k+8,!0),y=_().getInt32(k+12,!0);if(y)throw w(m);var h=f(b,x).slice();return t.__wbindgen_export3(b,x*1,1),h}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ee(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_arriraw_rgba(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ne(r,e,n,o,a,c,i,d){try{let h=t.__wbindgen_add_to_stack_pointer(-16),k=l(r,t.__wbindgen_export4),M=p;var s=B(d)?0:Y(d,t.__wbindgen_export4),g=p;t.decode_arriraw_rgba_meta(h,k,M,e,n,o,a,c,i,s,g);var u=_().getInt32(h+0,!0),b=_().getInt32(h+4,!0),x=_().getInt32(h+8,!0),m=_().getInt32(h+12,!0);if(m)throw w(x);var y=f(u,b).slice();return t.__wbindgen_export3(u,b*1,1),y}finally{t.__wbindgen_add_to_stack_pointer(16)}}function re(r,e,n,o){let a=t.decode_audio_pcm(v(r),e,n,o);return w(a)}function _e(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),i=p;t.decode_braw_gen5log(a,c,i);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function oe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_braw_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ie(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_braw_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ae(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_braw_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ce(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_cr3_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function de(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_crm(v(r),e,n,a,c);return w(i)}function se(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_dng_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_dng_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ge(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_dpx_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ue(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_dpx_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function we(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_exr_linear(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function be(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_exr_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function le(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_exr_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_jpeg_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_png_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ve(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_prores_band_rgba(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ie(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ye(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_prores_mxf(v(r),e,n,a,c);return w(i)}function me(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_prores_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function he(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_acescct(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ke(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ae(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_prores_raw_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Me(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_rec2020(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ee(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Te(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_rgb16(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Oe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_thumb_dc32(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function We(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_r3d_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Se(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_r3d_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Re(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p,b=l(e,t.__wbindgen_export4),x=p;t.decode_r3d_preview_clip(s,g,u,b,x,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Le(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_r3d_rgb16(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ze(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_r3d_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function De(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=l(e,t.__wbindgen_export4),b=p;t.decode_r3d_rgba_clip(d,s,g,u,b);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ue(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_tiff_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function je(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_tiff_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Be(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_vc3_band_rgba(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_vc3_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ce(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_vc3_mxf(v(r),e,n,a,c);return w(i)}function qe(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_vc3_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ne(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_vc3_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function He(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),i=p;t.decode_xocn_index_luma(a,c,i);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ge(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_xocn_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ve(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_xocn_mxf(v(r),e,n,a,c);return w(i)}function Ke(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_xocn_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Xe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_xocn_preview_rec709(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ye(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),i=p;t.decode_xocn_rgb16(a,c,i);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $e(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_xocn_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Je(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=R(r,t.__wbindgen_export4),b=p;t.encode_dci_j2c(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qe(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=R(r,t.__wbindgen_export4),m=p,y=I(n,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.encode_dci_j2c_rgb(b,x,m,e,y,h,o,a,c);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ze(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,m=I(e,t.__wbindgen_export4,t.__wbindgen_export5),y=p;t.encode_dci_j2c_rgba8(u,b,x,m,y,n,o,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function tn(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=I(o,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged(u,r,e,n,b,x,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function en(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=I(o,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged_modelled(u,r,e,n,b,x,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function nn(r,e,n,o,a,c,i,d,s,g,u,b,x,m,y){try{let E=t.__wbindgen_add_to_stack_pointer(-16),W=gt(r,t.__wbindgen_export4),S=p,z=I(a,t.__wbindgen_export4,t.__wbindgen_export5),U=p,C=I(c,t.__wbindgen_export4,t.__wbindgen_export5),q=p,ot=I(i,t.__wbindgen_export4,t.__wbindgen_export5),it=p,at=I(x,t.__wbindgen_export4,t.__wbindgen_export5),ct=p;t.encode_exr(E,W,S,e,n,o,z,U,C,q,ot,it,d,s,g,u,b,at,ct,m,y);var h=_().getInt32(E+0,!0),k=_().getInt32(E+4,!0),M=_().getInt32(E+8,!0),O=_().getInt32(E+12,!0);if(O)throw w(M);var F=f(h,k).slice();return t.__wbindgen_export3(h,k*1,1),F}finally{t.__wbindgen_add_to_stack_pointer(16)}}function rn(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p;t.encode_prores_4444_alpha_mov_rgba(u,b,x,e,n,o,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _n(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_4444_alpha_sample_q(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function on(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function an(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=R(r,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr_rgb16(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function cn(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=R(r,t.__wbindgen_export4),x=p,m=R(a,t.__wbindgen_export4),y=p;t.encode_prores_444_sample_cbr_rgb16_lut(u,b,x,e,n,o,m,y);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function dn(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p;t.encode_prores_mov_rgba(u,b,x,e,n,o,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function sn(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.encode_prores_rgba(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pn(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function gn(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=R(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr_rgb16(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function un(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=R(r,t.__wbindgen_export4),x=p,m=R(a,t.__wbindgen_export4),y=p;t.encode_prores_sample_cbr_rgb16_lut(u,b,x,e,n,o,m,y);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function wn(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_q(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function bn(r,e,n,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=I(r,t.__wbindgen_export4,t.__wbindgen_export5),y=p;t.exr_sequence_filename(x,m,y,e,n,o);var i=_().getInt32(x+0,!0),d=_().getInt32(x+4,!0),s=_().getInt32(x+8,!0),g=_().getInt32(x+12,!0),u=i,b=d;if(g)throw u=0,b=0,w(s);return a=u,c=b,T(u,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function ln(r,e,n,o,a,c,i,d){let s,g;try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=l(r,t.__wbindgen_export4),O=p,F=l(o,t.__wbindgen_export4),E=p,W=I(d,t.__wbindgen_export4,t.__wbindgen_export5),S=p;t.fit_sizing(k,M,O,e,n,F,E,a,c,i,W,S);var u=_().getInt32(k+0,!0),b=_().getInt32(k+4,!0),x=_().getInt32(k+8,!0),m=_().getInt32(k+12,!0),y=u,h=b;if(m)throw y=0,h=0,w(x);return s=y,g=h,T(y,h)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function fn(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_cr3(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function xn(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_dng(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function vn(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_dpx(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function In(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_exr(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function yn(r,e,n){let o=I(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.inspect_isobmff(v(r),e,o,a);return w(c)}function mn(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_tiff(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function hn(r,e){let n=t.inspect_wav(v(r),e);return w(n)}function kn(r,e){let n=t.is_arriraw12_mxf(v(r),e);return w(n)}function An(r,e){let n=t.is_arriraw_mxf(v(r),e);return w(n)}function Mn(r,e){let n=t.is_crm(v(r),e);return w(n)}function En(r,e){let n=t.is_prores_mxf(v(r),e);return w(n)}function Tn(r,e){let n=t.is_vc3_mxf(v(r),e);return w(n)}function On(r,e){let n=t.is_xavc_mxf(v(r),e);return w(n)}function Fn(r,e){let n=t.is_xocn_mxf(v(r),e);return w(n)}function Wn(r,e,n){let o=I(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.list_isobmff_segments(v(r),e,o,a);return w(c)}function Sn(r,e){let n=t.list_mxf_segments(v(r),e);return w(n)}function Rn(r,e){let n=I(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.list_r3d_frames(v(r),n,o);return w(a)}function Ln(r,e){let n=I(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.list_r3d_segments(v(r),n,o);return w(a)}function zn(r,e){let n=t.list_wav_segments(v(r),e);return w(n)}function Dn(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),m=p,y=L(e,t.__wbindgen_export4),h=p;t.mux_prores_4444_alpha_samples(b,x,m,y,h,n,o,a,c);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Un(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),m=p,y=L(e,t.__wbindgen_export4),h=p;t.mux_prores_samples(b,x,m,y,h,n,o,a,c);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function jn(r,e,n,o,a,c,i,d,s,g,u,b){try{let M=t.__wbindgen_add_to_stack_pointer(-16),O=l(r,t.__wbindgen_export4),F=p,E=L(e,t.__wbindgen_export4),W=p,S=I(i,t.__wbindgen_export4,t.__wbindgen_export5),z=p;t.mux_prores_samples_full(M,O,F,E,W,n,o,a,c,S,z,d,s,g,u,b);var x=_().getInt32(M+0,!0),m=_().getInt32(M+4,!0),y=_().getInt32(M+8,!0),h=_().getInt32(M+12,!0);if(h)throw w(y);var k=f(x,m).slice();return t.__wbindgen_export3(x,m*1,1),k}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Bn(r,e,n,o){let a=t.mxf_au_run(v(r),e,n,o);return w(a)}function Pn(r,e){let n=t.mxf_frame_index(v(r),e);return w(n)}function Cn(r,e){let n=t.mxf_gop_map(v(r),e);return w(n)}function qn(r,e){let n=t.mxf_h264_kind(v(r),e);return w(n)}function Nn(r,e){let n,o;try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,m=I(e,t.__wbindgen_export4,t.__wbindgen_export5),y=p;t.plan_isobmff_trim(u,b,x,m,y);var a=_().getInt32(u+0,!0),c=_().getInt32(u+4,!0),i=_().getInt32(u+8,!0),d=_().getInt32(u+12,!0),s=a,g=c;if(d)throw s=0,g=0,w(i);return n=s,o=g,T(s,g)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,o,1)}}function Hn(r,e,n,o,a){let c=I(a,t.__wbindgen_export4,t.__wbindgen_export5),i=p,d=t.plan_isobmff_trim_reader(v(r),e,n,o,c,i);return w(d)}function Gn(r){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=I(r,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.plan_mxf_compact_trim(g,u,b);var o=_().getInt32(g+0,!0),a=_().getInt32(g+4,!0),c=_().getInt32(g+8,!0),i=_().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,w(c);return e=d,n=s,T(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Vn(r,e,n,o){let a=t.plan_mxf_trim(v(r),e,n,o);return w(a)}function Kn(r,e,n,o,a,c,i,d){let s,g;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=l(r,t.__wbindgen_export4),y=p,h=l(e,t.__wbindgen_export4),k=p,M=l(n,t.__wbindgen_export4),O=p,F=l(o,t.__wbindgen_export4),E=p,W=Y(a,t.__wbindgen_export4),S=p,z=Y(c,t.__wbindgen_export4),U=p,C=Y(i,t.__wbindgen_export4),q=p;t.plan_r3d_compact(x,m,y,h,k,M,O,F,E,W,S,z,U,C,q,d);var u=_().getInt32(x+0,!0),b=_().getInt32(x+4,!0);return s=u,g=b,T(u,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function Xn(r,e,n,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=l(r,t.__wbindgen_export4),y=p;t.plan_wav_trim(x,m,y,e,n,o);var i=_().getInt32(x+0,!0),d=_().getInt32(x+4,!0),s=_().getInt32(x+8,!0),g=_().getInt32(x+12,!0),u=i,b=d;if(g)throw u=0,b=0,w(s);return a=u,c=b,T(u,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function Yn(r,e,n,o,a){let c=t.plan_wav_trim_reader(v(r),e,n,o,a);return w(c)}function $n(r,e,n,o){let a=I(n,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=I(o,t.__wbindgen_export4,t.__wbindgen_export5),d=p,s=t.prepare_isobmff(v(r),e,a,c,i,d);return w(s)}function Jn(r,e,n){let o=I(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.prepare_mxf(v(r),e,o,a);return w(c)}function Qn(r,e,n){let o=I(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=I(n,t.__wbindgen_export4,t.__wbindgen_export5),i=p,d=t.prepare_r3d(v(r),o,a,c,i);return w(d)}function Zn(r,e,n,o){let a=I(n,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.prepare_wav(v(r),e,a,c,o);return w(i)}function tr(r){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.probe_mov(g,u,b);var o=_().getInt32(g+0,!0),a=_().getInt32(g+4,!0),c=_().getInt32(g+8,!0),i=_().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,w(c);return e=d,n=s,T(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function er(r,e){let n=t.probe_mxf(v(r),e);return w(n)}function nr(r,e){let n=I(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.probe_r3d(v(r),n,o);return w(a)}function rr(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.prores_band_info(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=_t(e,n).slice();return t.__wbindgen_export3(e,n*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _r(){t.prores_reset_rate_control()}function or(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),i=p;t.r3d_gpu_develop_params(a,c,i);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ir(r){let e=l(r,t.__wbindgen_export4),n=p;return t.r3d_is_helium(e,n)!==0}function ar(r){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.read_arriraw_fcs(g,u,b);var o=_().getInt32(g+0,!0),a=_().getInt32(g+4,!0),c=_().getInt32(g+8,!0),i=_().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,w(c);return e=d,n=s,T(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function cr(r,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.read_arriraw_unit_correction(c,i,d,e);var n=_().getInt32(c+0,!0),o=_().getInt32(c+4,!0),a=Mr(n,o).slice();return t.__wbindgen_export3(n,o*8,8),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function dr(r,e,n,o,a,c,i){let d,s;try{let h=t.__wbindgen_add_to_stack_pointer(-16),k=l(r,t.__wbindgen_export4),M=p,O=l(o,t.__wbindgen_export4),F=p,E=I(i,t.__wbindgen_export4,t.__wbindgen_export5),W=p;t.recover_reframe(h,k,M,e,n,O,F,a,c,E,W);var g=_().getInt32(h+0,!0),u=_().getInt32(h+4,!0),b=_().getInt32(h+8,!0),x=_().getInt32(h+12,!0),m=g,y=u;if(x)throw m=0,y=0,w(b);return d=m,s=y,T(m,y)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(d,s,1)}}function sr(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=R(r,t.__wbindgen_export4),m=p,y=I(c,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.resample_rgba16(b,x,m,e,n,o,a,y,h);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=pt(i,d).slice();return t.__wbindgen_export3(i,d*2,2),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pr(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),m=p,y=I(c,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.resample_rgba8(b,x,m,e,n,o,a,y,h);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function gr(){t.reset_dci_rate_state()}function ur(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.resize_luma_area(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function wr(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,m=I(a,t.__wbindgen_export4,t.__wbindgen_export5),y=p;t.rgba8_to_xyz12(u,b,x,e,n,o,m,y);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=pt(c,i).slice();return t.__wbindgen_export3(c,i*2,2),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function br(r,e,n,o){let a=I(e,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=I(n,t.__wbindgen_export4,t.__wbindgen_export5),d=p,s=I(o,t.__wbindgen_export4,t.__wbindgen_export5),g=p,u=t.trim_r3d(v(r),a,c,i,d,s,g);return w(u)}function lr(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.vc3_band_info(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=_t(e,n).slice();return t.__wbindgen_export3(e,n*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fr(r,e,n){let o=I(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.video_frame_index_isobmff_reader(v(r),e,o,a);return w(c)}function xr(r,e,n){let o=t.xavc_au(v(r),e,n);return w(o)}function vr(r,e){let n=t.xavc_frame_count(v(r),e);return w(n)}function Ir(r,e){let n=t.xocn_frame_count(v(r),e);return w(n)}function yr(r){let e=l(r,t.__wbindgen_export4),n=p;return t.xocn_index_prefix_len(e,n)>>>0}function mr(r){let e=l(r,t.__wbindgen_export4),n=p;return t.xocn_preview_prefix_len(e,n)>>>0}function It(){return{__proto__:null,"./media_core_bg.js":{__proto__:null,__wbg___wbindgen_is_function_acc5528be2b923f2:function(e){return typeof A(e)=="function"},__wbg___wbindgen_is_undefined_721f8decd50c87a3:function(e){return A(e)===void 0},__wbg___wbindgen_throw_ea4887a5f8f9a9db:function(e,n){throw new Error(T(e,n))},__wbg__wbg_cb_unref_33c39e13d73b25f6:function(e){A(e)._wbg_cb_unref()},__wbg_call_0e855b388e315e17:function(){return dt(function(e,n,o,a){let c=A(e).call(A(n),A(o),A(a));return v(c)},arguments)},__wbg_call_5575218572ead796:function(){return dt(function(e,n,o){let a=A(e).call(A(n),A(o));return v(a)},arguments)},__wbg_call_dd0f909cbc9405d0:function(){return dt(function(e,n,o,a,c){let i=A(e).call(A(n),A(o),A(a),A(c));return v(i)},arguments)},__wbg_length_589238bdcf171f0e:function(e){return A(e).length},__wbg_new_81880fb5002cb255:function(e){let n=new Uint8Array(A(e));return v(n)},__wbg_new_typed_00a409eb4ec4f2d9:function(e,n){try{var o={a:e,b:n},a=(i,d)=>{let s=o.a;o.a=0;try{return kr(s,o.b,i,d)}finally{o.a=s}};let c=new Promise(a);return v(c)}finally{o.a=0}},__wbg_prototypesetcall_d721637c7ca66eb8:function(e,n,o){Uint8Array.prototype.set.call(f(e,n),A(o))},__wbg_queueMicrotask_1c9b3800e321a967:function(e){let n=A(e).queueMicrotask;return v(n)},__wbg_queueMicrotask_311744e534a929a3:function(e){queueMicrotask(A(e))},__wbg_resolve_d82363d90af6928a:function(e){let n=Promise.resolve(A(e));return v(n)},__wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938:function(){let e=typeof globalThis>"u"?null:globalThis;return B(e)?0:v(e)},__wbg_static_accessor_GLOBAL_ce44e66a4935da8c:function(){let e=typeof global>"u"?null:global;return B(e)?0:v(e)},__wbg_static_accessor_SELF_44f6e0cb5e67cdad:function(){let e=typeof self>"u"?null:self;return B(e)?0:v(e)},__wbg_static_accessor_WINDOW_168f178805d978fe:function(){let e=typeof window>"u"?null:window;return B(e)?0:v(e)},__wbg_then_05edfc8a4fea5106:function(e,n,o){let a=A(e).then(A(n),A(o));return v(a)},__wbg_then_591b6b3a75ee817a:function(e,n){let o=A(e).then(A(n));return v(o)},__wbindgen_cast_0000000000000001:function(e,n){let o=Tr(e,n,hr);return v(o)},__wbindgen_cast_0000000000000002:function(e){return v(e)},__wbindgen_cast_0000000000000003:function(e,n){let o=f(e,n);return v(o)},__wbindgen_cast_0000000000000004:function(e,n){let o=T(e,n);return v(o)},__wbindgen_cast_0000000000000005:function(e,n){var o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),v(o)},__wbindgen_object_clone_ref:function(e){let n=A(e);return v(n)},__wbindgen_object_drop_ref:function(e){w(e)}}}}function hr(r,e,n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.__wasm_bindgen_func_elem_1768(c,r,e,v(n));var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);if(a)throw w(o)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function kr(r,e,n,o){t.__wasm_bindgen_func_elem_1783(r,e,v(n),v(o))}var wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_exrbench_free(r,1)),bt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_exrstreamencoder_free(r,1)),lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresbench_free(r,1)),ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresmovencoder_free(r,1)),xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresmovwriter_free(r,1));function v(r){X===D.length&&D.push(D.length+1);let e=X;return X=D[e],D[e]=r,e}var vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbindgen_export2(r.a,r.b));function Ar(r){r<1028||(D[r]=X,X=r)}function Mr(r,e){return r=r>>>0,yt().subarray(r/8,r/8+e)}function pt(r,e){return r=r>>>0,mt().subarray(r/2,r/2+e)}function _t(r,e){return r=r>>>0,ht().subarray(r/4,r/4+e)}function f(r,e){return r=r>>>0,P().subarray(r/1,r/1+e)}var j=null;function _(){return(j===null||j.buffer.detached===!0||j.buffer.detached===void 0&&j.buffer!==t.memory.buffer)&&(j=new DataView(t.memory.buffer)),j}var N=null;function Er(){return(N===null||N.byteLength===0)&&(N=new Float32Array(t.memory.buffer)),N}var H=null;function yt(){return(H===null||H.byteLength===0)&&(H=new Float64Array(t.memory.buffer)),H}function T(r,e){return Fr(r>>>0,e)}var G=null;function mt(){return(G===null||G.byteLength===0)&&(G=new Uint16Array(t.memory.buffer)),G}var V=null;function ht(){return(V===null||V.byteLength===0)&&(V=new Uint32Array(t.memory.buffer)),V}var K=null;function P(){return(K===null||K.byteLength===0)&&(K=new Uint8Array(t.memory.buffer)),K}function A(r){return D[r]}function dt(r,e){try{return r.apply(this,e)}catch(n){t.__wbindgen_export(v(n))}}var D=new Array(1024).fill(void 0);D.push(void 0,null,!0,!1);var X=D.length;function B(r){return r==null}function Tr(r,e,n){let o={a:r,b:e,cnt:1},a=(...c)=>{o.cnt++;let i=o.a;o.a=0;try{return n(i,o.b,...c)}finally{o.a=i,a._wbg_cb_unref()}};return a._wbg_cb_unref=()=>{--o.cnt===0&&(t.__wbindgen_export2(o.a,o.b),o.a=0,vt.unregister(o))},vt.register(a,o,o),a}function R(r,e){let n=e(r.length*2,2)>>>0;return mt().set(r,n/2),p=r.length,n}function L(r,e){let n=e(r.length*4,4)>>>0;return ht().set(r,n/4),p=r.length,n}function l(r,e){let n=e(r.length*1,1)>>>0;return P().set(r,n/1),p=r.length,n}function gt(r,e){let n=e(r.length*4,4)>>>0;return Er().set(r,n/4),p=r.length,n}function Y(r,e){let n=e(r.length*8,8)>>>0;return yt().set(r,n/8),p=r.length,n}function I(r,e,n){if(n===void 0){let d=$.encode(r),s=e(d.length,1)>>>0;return P().subarray(s,s+d.length).set(d),p=d.length,s}let o=r.length,a=e(o,1)>>>0,c=P(),i=0;for(;i<o;i++){let d=r.charCodeAt(i);if(d>127)break;c[a+i]=d}if(i!==o){i!==0&&(r=r.slice(i)),a=n(a,o,o=i+r.length*3,1)>>>0;let d=P().subarray(a+i,a+o),s=$.encodeInto(r,d);i+=s.written,a=n(a,o,i,1)>>>0}return p=i,a}function w(r){let e=A(r);return Ar(r),e}var rt=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});rt.decode();var Or=2146435072,st=0;function Fr(r,e){return st+=e,st>=Or&&(rt=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),rt.decode(),st=e),rt.decode(P().subarray(r,r+e))}var $=new TextEncoder;"encodeInto"in $||($.encodeInto=function(r,e){let n=$.encode(r);return e.set(n),{read:r.length,written:n.length}});var p=0,Wr,Sr,t;function kt(r,e){return Sr=r,t=r.exports,Wr=e,j=null,N=null,H=null,G=null,V=null,K=null,t}async function Rr(r,e){if(typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,e)}catch(a){if(r.ok&&n(r.type)&&r.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",a);else throw a}let o=await r.arrayBuffer();return await WebAssembly.instantiate(o,e)}else{let o=await WebAssembly.instantiate(r,e);return o instanceof WebAssembly.Instance?{instance:o,module:r}:o}function n(o){switch(o){case"basic":case"cors":case"default":return!0}return!1}}function Lr(r){if(t!==void 0)return t;r!==void 0&&(Object.getPrototypeOf(r)===Object.prototype?{module:r}=r:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let e=It();r instanceof WebAssembly.Module||(r=new WebAssembly.Module(r));let n=new WebAssembly.Instance(r,e);return kt(n,r)}async function nt(r){if(t!==void 0)return t;r!==void 0&&(Object.getPrototypeOf(r)===Object.prototype?{module_or_path:r}=r:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),r===void 0&&(r=new URL("media_core_bg.wasm",import.meta.url));let e=It();(typeof r=="string"||typeof Request=="function"&&r instanceof Request||typeof URL=="function"&&r instanceof URL)&&(r=fetch(r));let{instance:n,module:o}=await Rr(await r,e);return kt(n,o)}var Ur=import.meta.env?.MODE==="development"?["conform.tools","localhost"]:["conform.tools"];var ut=null,zr=!1;function Dr(r){return ut||(ut=(async()=>{if(r!==void 0)return nt(r);if(typeof process<"u"&&process.versions?.node){let n="node:fs/promises",{readFile:o}=await import(n),a=await o(new URL("./wasm/media_core_bg.wasm",import.meta.url));return nt({module_or_path:a})}let{default:e}=await import("./media_core_bg-FGAR5KA5.js");return nt({module_or_path:e})})().then(e=>(zr=!0,e))),ut}function qr(){return Dr()}export{Ft as a,Rt as b,Kt as c,$t as d,Jt as e,Zt as f,re as g,_e as h,oe as i,ie as j,ae as k,ce as l,de as m,pe as n,ue as o,le as p,fe as q,xe as r,Ie as s,ye as t,me as u,he as v,ke as w,Ae as x,Ee as y,Te as z,Oe as A,Fe as B,We as C,Se as D,Re as E,Le as F,De as G,je as H,Pe as I,Ce as J,qe as K,Ne as L,He as M,Ge as N,Ve as O,Ke as P,Xe as Q,ln as R,fn as S,xn as T,vn as U,In as V,yn as W,mn as X,hn as Y,kn as Z,An as _,En as $,Tn as aa,Fn as ba,Wn as ca,Sn as da,Rn as ea,Ln as fa,zn as ga,Bn as ha,Pn as ia,Cn as ja,Hn as ka,Vn as la,Yn as ma,$n as na,Jn as oa,Zn as pa,er as qa,nr as ra,or as sa,ir as ta,dr as ua,ur as va,br as wa,fr as xa,yr as ya,mr as za,At as Aa,Dr as Ba,qr as Ca};
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
+ import{d as _}from"./chunk-QTPCU2TF.js";function l(f){let m=[...f].sort((s,t)=>s.first_frame-t.first_frame),e=[];for(let s of m){let t=e[e.length-1];t&&s.first_frame<=t.last_frame+1?t.last_frame=Math.max(t.last_frame,s.last_frame):e.push({...s})}return e}async function g(f,m,e){let s=l(f),t=l(f.map(r=>({first_frame:Math.max(0,r.first_frame-m),last_frame:r.last_frame+m}))),n=[];for(let r of t)try{n.push(await e(r.first_frame,r.last_frame+1))}catch(o){let i=_(o)?.file_frames,u=s.filter(a=>a.last_frame>=r.first_frame&&a.first_frame<=r.last_frame);if(i==null||r.last_frame+1<=i||u.some(a=>a.first_frame<0||a.last_frame+1>i))throw o;n.push(await e(r.first_frame,i))}return n}export{l as a,g as b};
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{Ca as r,S as s,l as o}from"./chunk-PIEH7J6J.js";async function d(t){await r();let e=s(t);return e==="null"?null:JSON.parse(e)}async function l(t){await r();let e;try{e=o(t)}catch{return null}if(e.length<8)return null;let n=new DataView(e.buffer,e.byteOffset,e.byteLength),a=n.getUint32(0,!0),i=n.getUint32(4,!0),u=a*i*4;return e.length<8+u?null:{width:a,height:i,rgba:new Uint8ClampedArray(e.subarray(8,8+u))}}export{d as a,l as b};
3
+ import{Ca as r,S as s,l as o}from"./chunk-CL26XMDO.js";async function d(t){await r();let e=s(t);return e==="null"?null:JSON.parse(e)}async function l(t){await r();let e;try{e=o(t)}catch{return null}if(e.length<8)return null;let n=new DataView(e.buffer,e.byteOffset,e.byteLength),a=n.getUint32(0,!0),i=n.getUint32(4,!0),u=a*i*4;return e.length<8+u?null:{width:a,height:i,rgba:new Uint8ClampedArray(e.subarray(8,8+u))}}export{d as a,l as b};
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a as c,b as m}from"./chunk-DKGGJM6Z.js";import{Aa as u,Ca as t,T as s,n as d}from"./chunk-PIEH7J6J.js";async function h(r){await t();let e=s(r);return e==="null"?null:JSON.parse(e)}async function g(r){await t();let e;try{e=d(r)}catch{return null}if(e.length<8)return null;let n=new DataView(e.buffer,e.byteOffset,e.byteLength),i=n.getUint32(0,!0),a=n.getUint32(4,!0),o=i*a*4;return e.length<8+o?null:{width:i,height:a,rgba:new Uint8ClampedArray(e.subarray(8,8+o))}}async function y(r,e=8){await t();let n=m(u,"decode_dng_preview");if(!n)return g(r);try{return c(n(r,e))}catch{return null}}export{h as a,g as b,y as c};
3
+ import{a as c,b as m}from"./chunk-DKGGJM6Z.js";import{Aa as u,Ca as t,T as s,n as d}from"./chunk-CL26XMDO.js";async function h(r){await t();let e=s(r);return e==="null"?null:JSON.parse(e)}async function g(r){await t();let e;try{e=d(r)}catch{return null}if(e.length<8)return null;let n=new DataView(e.buffer,e.byteOffset,e.byteLength),i=n.getUint32(0,!0),a=n.getUint32(4,!0),o=i*a*4;return e.length<8+o?null:{width:i,height:a,rgba:new Uint8ClampedArray(e.subarray(8,8+o))}}async function y(r,e=8){await t();let n=m(u,"decode_dng_preview");if(!n)return g(r);try{return c(n(r,e))}catch{return null}}export{h as a,g as b,y as c};
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{G as b,S as w}from"./chunk-C2ESM27Z.js";import{c as m,d as _}from"./chunk-P7OVDUA5.js";import{i as g}from"./chunk-FNGHTZ5F.js";var f={prproj:"prproj","resolve-drt":"drt",aaf:"aaf",avb:"avb",otio:"otio","flame-archive":"flame","resolve-fcpxml":"fcpxml","finalcut-fcpxml":"fcpxml","fcp-xml":"xmeml","premiere-xml":"xmeml","resolve-xml":"xmeml"};function S(e){return e in f}var p=null;function l(){return p||(p=E()),p}async function E(){let e=await import("./timeline_core-VK2ZWPCO.js"),r=(await import("./timeline_core_bg-XYT26ZTU.js")).default;return await e.default({module_or_path:r}),e}async function A(e,r){let o=f[r];if(!o)throw new Error(`timelineInspect: no Rust engine for format '${r}'`);let t=await l(),i=e.name.replace(/\.[^.]+$/,""),n=(R,...M)=>t[R](...M),a;switch(o){case"prproj":a=n("inspect_prproj_json",await s(e));break;case"aaf":a=n("inspect_aaf_json",await s(e));break;case"avb":a=n("inspect_avb_json",await s(e));break;case"flame":a=n("inspect_flame_json",await s(e),i);break;case"drt":a=n("inspect_drt_json",await y(e));break;case"otio":a=n("inspect_otio_json",await e.text(),i);break;case"fcpxml":a=n("inspect_fcpxml_json",await e.text(),i);break;case"xmeml":a=n("inspect_xmeml_json",await e.text(),i);break}return I(a)}var x=12*1024*1024,d=!1;function j(e){d=e}var h=null,k=8e3;async function F(){!h||d||await Promise.race([h,new Promise(e=>setTimeout(e,k))])}function c(e,r,o){if(d||e.length<=x)return e;let t=(e.length/1048576).toFixed(0),i=o?.length??0;throw i===1?new Error(`This ${r.toUpperCase()} timeline extracts to ${t} MB, past what our conversion server can hold in one pass (the ceiling is ours, not your file \u2014 a single long timeline can exceed it on its own). Get in touch and we will convert it for you while we lift the limit.`):new Error(`This ${r.toUpperCase()} selection${i?` (${i} sequences)`:""} extracts to ${t} MB, past what our conversion server can hold in one pass. Convert a few sequences at a time \u2014 one long timeline is usually about ${(x/1048576).toFixed(0)} MB. If a single timeline still will not go through, get in touch and we will convert it for you.`)}async function T(e,r,o){let t=f[r];if(!t)throw new Error(`timelineExtract: no Rust engine for format '${r}'`);switch(await F(),t){case"otio":case"fcpxml":case"xmeml":return{fmt:t,extract:await e.text()};case"drt":{let n=(await l()).extract_drt_json(await y(e));return{fmt:t,extract:c(n,t,o)}}case"prproj":{let i=await l(),n=JSON.stringify(o??[]),a=i.extract_prproj_json(await s(e),n);return{fmt:t,extract:c(a,t,o)}}case"avb":{let i=await l(),n=JSON.stringify(o??[]),a=i.extract_avb_json(await s(e),n);return{fmt:t,extract:c(a,t,o)}}case"aaf":case"flame":{let n=(await l())[`extract_${t}_json`](await s(e));return{fmt:t,extract:c(n,t,o)}}}}async function s(e){return new Uint8Array(await e.arrayBuffer())}async function y(e){let r=w(await s(e)),o={};for(let[t,i]of Object.entries(r))t.toLowerCase().endsWith(".xml")&&(o[t]=b(i));return JSON.stringify(o)}function I(e){let r=JSON.parse(e),o=Array.isArray(r)?r:r?.timelines??r?.sequences??[],t=o.filter(n=>typeof n=="object"&&n!==null),i=o.map(n=>{if(typeof n=="string")return n;let a=n;return a?.name??a?.title??a?.id??""}).filter(n=>!!n);return{names:Array.from(new Set(i)),timelines:t}}var P=/^(.+)_(\d{3})\.R3D$/i;function u(e){let o=(e.split(/[/\\]/).pop()??e).match(P);return o?{clipBase:o[1],partNumber:parseInt(o[2],10)}:null}function C(e){return u(e)!==null}function U(e,r){let o=u(e);if(!o)return[];let t=[];for(let i of r){let n=u(i);n&&n.clipBase===o.clipBase&&t.push({name:i,n:n.partNumber})}return t.sort((i,n)=>i.n-n.n),t.map(i=>i.name)}async function L(e){if(!m(e.name))return null;try{return await g(_(e),{verb:"inspect"})}catch(r){return console.warn(`[probeMedia] ${e.name} probe failed:`,r),null}}var z={reelName:!1,fileName:!0,fileNameMode:"loose",fileExtensions:"",totalDuration:!1,resolution:!1,bitDepth:!1,fileFormat:!1,codec:!1,mediaUmid:!1};var Y="X-Write-Issues";function Q(e){if(!e)return[];try{let r=JSON.parse(decodeURIComponent(e));return Array.isArray(r)?r:[]}catch{return[]}}export{u as a,C as b,U as c,z as d,S as e,A as f,j as g,T as h,Y as i,Q as j,L as k};
3
+ import{G as b,S as w}from"./chunk-C2ESM27Z.js";import{c as m,d as _}from"./chunk-P7OVDUA5.js";import{i as g}from"./chunk-QTPCU2TF.js";var f={prproj:"prproj","resolve-drt":"drt",aaf:"aaf",avb:"avb",otio:"otio","flame-archive":"flame","resolve-fcpxml":"fcpxml","finalcut-fcpxml":"fcpxml","fcp-xml":"xmeml","premiere-xml":"xmeml","resolve-xml":"xmeml"};function P(e){return e in f}var p=null;function l(){return p||(p=E()),p}async function E(){let e=await import("./timeline_core-VK2ZWPCO.js"),r=(await import("./timeline_core_bg-2TYWZ35G.js")).default;return await e.default({module_or_path:r}),e}async function A(e,r){let o=f[r];if(!o)throw new Error(`timelineInspect: no Rust engine for format '${r}'`);let t=await l(),i=e.name.replace(/\.[^.]+$/,""),n=(R,...M)=>t[R](...M),s;switch(o){case"prproj":s=n("inspect_prproj_json",await a(e));break;case"aaf":s=n("inspect_aaf_json",await a(e));break;case"avb":s=n("inspect_avb_json",await a(e));break;case"flame":s=n("inspect_flame_json",await a(e),i);break;case"drt":s=n("inspect_drt_json",await y(e));break;case"otio":s=n("inspect_otio_json",await e.text(),i);break;case"fcpxml":s=n("inspect_fcpxml_json",await e.text(),i);break;case"xmeml":s=n("inspect_xmeml_json",await e.text(),i);break}return F(s)}var x=12*1024*1024,d=!1;function T(e){d=e}var h=null,k=8e3;async function I(){!h||d||await Promise.race([h,new Promise(e=>setTimeout(e,k))])}function c(e,r,o){if(d||e.length<=x)return e;let t=(e.length/1048576).toFixed(0),i=o?.length??0;throw i===1?new Error(`This ${r.toUpperCase()} timeline extracts to ${t} MB, past what our conversion server can hold in one pass (the ceiling is ours, not your file \u2014 a single long timeline can exceed it on its own). Get in touch and we will convert it for you while we lift the limit.`):new Error(`This ${r.toUpperCase()} selection${i?` (${i} sequences)`:""} extracts to ${t} MB, past what our conversion server can hold in one pass. Convert a few sequences at a time \u2014 one long timeline is usually about ${(x/1048576).toFixed(0)} MB. If a single timeline still will not go through, get in touch and we will convert it for you.`)}async function j(e,r,o){let t=f[r];if(!t)throw new Error(`timelineExtract: no Rust engine for format '${r}'`);switch(await I(),t){case"otio":case"fcpxml":case"xmeml":return{fmt:t,extract:await e.text()};case"drt":{let n=(await l()).extract_drt_json(await y(e));return{fmt:t,extract:c(n,t,o)}}case"prproj":{let i=await l(),n=JSON.stringify(o??[]),s=i.extract_prproj_json(await a(e),n);return{fmt:t,extract:c(s,t,o)}}case"avb":{let i=await l(),n=JSON.stringify(o??[]),s=i.extract_avb_json(await a(e),n);return{fmt:t,extract:c(s,t,o)}}case"aaf":case"flame":{let n=(await l())[`extract_${t}_json`](await a(e));return{fmt:t,extract:c(n,t,o)}}}}async function a(e){return new Uint8Array(await e.arrayBuffer())}async function y(e){let r=w(await a(e)),o={};for(let[t,i]of Object.entries(r))t.toLowerCase().endsWith(".xml")&&(o[t]=b(i));return JSON.stringify(o)}function F(e){let r=JSON.parse(e),o=Array.isArray(r)?r:r?.timelines??r?.sequences??[],t=o.filter(n=>typeof n=="object"&&n!==null),i=o.map(n=>{if(typeof n=="string")return n;let s=n;return s?.name??s?.title??s?.id??""}).filter(n=>!!n);return{names:Array.from(new Set(i)),timelines:t}}var S=/^(.+)_(\d{3})\.R3D$/i;function u(e){let o=(e.split(/[/\\]/).pop()??e).match(S);return o?{clipBase:o[1],partNumber:parseInt(o[2],10)}:null}function C(e){return u(e)!==null}function U(e,r){let o=u(e);if(!o)return[];let t=[];for(let i of r){let n=u(i);n&&n.clipBase===o.clipBase&&t.push({name:i,n:n.partNumber})}return t.sort((i,n)=>i.n-n.n),t.map(i=>i.name)}async function L(e){if(!m(e.name))return null;try{return await g(_(e),{verb:"inspect"})}catch(r){return console.warn(`[probeMedia] ${e.name} probe failed:`,r),null}}var z={reelName:!1,fileName:!0,fileNameMode:"loose",fileExtensions:"",totalDuration:!1,resolution:!1,bitDepth:!1,fileFormat:!1,codec:!1,mediaUmid:!1};var K="X-Write-Issues";function Q(e){if(!e)return[];try{let r=JSON.parse(decodeURIComponent(e));return Array.isArray(r)?r:[]}catch{return[]}}export{u as a,C as b,U as c,z as d,P as e,A as f,T as g,j as h,K as i,Q as j,L as k};