conformtools 0.6.0 → 0.6.2
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.
- package/README.md +22 -17
- package/dist/browser/timeline_core_bg.wasm +0 -0
- package/dist/{chunk-UUDNNFU7.js → chunk-BTXLTVNK.js} +1 -1
- package/dist/{chunk-AHNDJFQR.js → chunk-BUEIRRNY.js} +1 -1
- package/dist/{chunk-PZFWQJCF.js → chunk-BXFVYGFW.js} +1 -1
- package/dist/chunk-CX3USH6A.js +318 -0
- package/dist/chunk-D5DEQ467.js +3 -0
- package/dist/{chunk-N43NAG5E.js → chunk-FNGHTZ5F.js} +1 -1
- package/dist/{chunk-PSMXHDMX.js → chunk-JH3OLTR6.js} +1 -1
- package/dist/{chunk-7XTBFOUJ.js → chunk-KP4C2MFM.js} +1 -1
- package/dist/{chunk-R6WJ6JIQ.js → chunk-PIEH7J6J.js} +1 -1
- package/dist/{chunk-XDHIIZ6A.js → chunk-RUBNBRUK.js} +1 -1
- package/dist/{chunk-ZAHP3ES5.js → chunk-RULUDOB7.js} +1 -1
- package/dist/claude-setup-XSNTKEU7.js +5 -0
- package/dist/cli.js +10 -5
- package/dist/conformtools-decode +0 -0
- package/dist/{cr3-wasm-CWKEOCYH.js → cr3-wasm-YTMVBAFM.js} +1 -1
- package/dist/{dng-wasm-JNFS44V5.js → dng-wasm-WUUQB7M2.js} +1 -1
- package/dist/{dpx-wasm-VNJRFPYY.js → dpx-wasm-XBKO4V4W.js} +1 -1
- package/dist/{exr-wasm-5D66YR7A.js → exr-wasm-VE2W6MFW.js} +1 -1
- package/dist/{h264-ZB5DJSNV.js → h264-HD7BY5J5.js} +1 -1
- package/dist/{h264-mxf-NVBLGU3V.js → h264-mxf-6OOODSAK.js} +1 -1
- package/dist/http.js +1 -1
- package/dist/{inspect-MGSZRRAF.js → inspect-TDZCNXVW.js} +1 -1
- package/dist/isobmff-57HSD6O2.js +3 -0
- package/dist/mcp.js +8 -9
- package/dist/{media_core-AISE7FMT.js → media_core-R5PPN3AY.js} +2 -2
- package/dist/{media_core_bg-FGAR5KA5.js → media_core_bg-YBW45HJ2.js} +1 -1
- package/dist/{mxf-YH2A2XLW.js → mxf-FAXEK4WR.js} +1 -1
- package/dist/{ops-BQDPU4M6.js → ops-UPPAG2TI.js} +1 -1
- package/dist/{r3d-U4XTQJXQ.js → r3d-EY6FEFKM.js} +1 -1
- package/dist/{r3d-T6D3M2XJ.js → r3d-KJVC7T2C.js} +1 -1
- package/dist/resolve-bridge.py +458 -35
- package/dist/statusline-GMMCFMOA.js +4 -0
- package/dist/statusline.js +3 -0
- package/dist/{still-UFLOAEM4.js → still-WY7MUR7A.js} +1 -1
- package/dist/{tiff-wasm-2CEABW6L.js → tiff-wasm-T2V2ICZT.js} +1 -1
- package/dist/wasm/media_core_bg.wasm +0 -0
- package/dist/wasm-threads/media_core_bg.wasm +0 -0
- package/dist/{wav-KNJZMOGX.js → wav-LFS6OZHJ.js} +1 -1
- package/package.json +1 -1
- package/dist/chunk-E6YXZIJS.js +0 -230
- package/dist/isobmff-7G55HKDG.js +0 -3
- package/dist/skills/auto-conform/SKILL.md +0 -87
- package/dist/skills/conform-artist/SKILL.md +0 -68
- package/dist/skills/conform-artist/references/avid.md +0 -19
- package/dist/skills/conform-artist/references/other-hosts.md +0 -23
- package/dist/skills/conform-artist/references/premiere.md +0 -18
- package/dist/skills/conform-artist/references/resolve.md +0 -19
- package/dist/skills/conform-artist/references/troubleshooting.md +0 -33
- package/dist/skills/conform-artist/references/turnover-checklist.md +0 -37
- package/dist/skills/delivery-qc/SKILL.md +0 -48
- /package/dist/{arriraw-3GKCR6K2.js → arriraw-BEZILZY3.js} +0 -0
- /package/dist/{chunk-WHY3DVXS.js → chunk-NP53ITN6.js} +0 -0
- /package/dist/{media_core_bg-YK63OUDM.js → media_core_bg-5UIQAP7I.js} +0 -0
- /package/dist/{prores-L4JZZWGH.js → prores-BNALPJPS.js} +0 -0
- /package/dist/{timeline_core_bg-2TYWZ35G.js → timeline_core_bg-XYT26ZTU.js} +0 -0
- /package/dist/{udf_bg-A4WEMSAX.js → udf_bg-R3JEZJAT.js} +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
+
import{readFile as y,writeFile as v,appendFile as F,stat as f,readdir as k,mkdir as U,open as h,copyFile as D,mkdtemp as O,rm as P,chmod as T,rename as R,cp as M,statfs as S}from"node:fs/promises";import{execFile as W,spawn as A}from"node:child_process";import{createHash as $}from"node:crypto";import{createReadStream as E}from"node:fs";import{homedir as B,tmpdir as H,platform as N,release as C,arch as z,totalmem as L,availableParallelism as I}from"node:os";import{fileURLToPath as b}from"node:url";import _ from"node:http";import m from"node:process";import{Buffer as x}from"node:buffer";import{join as w,resolve as j}from"node:path";import{basename as ze,dirname as Le,extname as Ie,join as _e,relative as je,resolve as Ge}from"node:path";{let e=globalThis.fetch,t=typeof globalThis.Deno<"u";e&&!t&&(globalThis.fetch=(async(n,o)=>{let r=typeof n=="string"?n:n instanceof URL?n.href:n.url;if(r.startsWith("file:")){let i=await y(b(r)),s=r.endsWith(".wasm")?"application/wasm":"application/octet-stream";return new Response(i,{status:200,headers:{"content-type":s}})}return e(n,o)}))}var p=e=>m.env[e],re=()=>Number(p("CONFORM_MEMORY_GB")??0)*2**30||L(),ne=()=>I(),oe=()=>m.argv.slice(2),se=e=>m.exit(e),ie=()=>m.platform,ae=()=>m.arch;function ce(){let e=m.versions.deno;return{platform:`${N()} ${C()} ${z()}`,runtime:e?`deno ${e}`:`node ${m.version}`}}var le=()=>p("CONFORM_MCP_HOME")??w(g(),".conform-mcp"),g=()=>p("HOME")??B();function me(e){let t=e.trim();if(t.length>=2&&(t.startsWith('"')&&t.endsWith('"')||t.startsWith("'")&&t.endsWith("'"))&&(t=t.slice(1,-1)),/^file:\/\//i.test(t))try{t=b(t)}catch{}return t==="~"?t=g():(t.startsWith("~/")||t.startsWith("~\\"))&&(t=w(g(),t.slice(2))),t&&j(t)}var ue=e=>b(e);async function de(e){let t=await f(e);return{isFile:t.isFile(),isDirectory:t.isDirectory(),size:t.size,mtimeMs:t.mtimeMs}}async function fe(e){try{return await f(e),!0}catch{return!1}}async function pe(e){try{return(await f(e)).isFile()}catch{return!1}}async function ge(e){try{return(await f(e)).isDirectory()}catch{return!1}}async function ye(e){let t=await y(e);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var he=e=>y(e,"utf8"),be=(e,t)=>v(e,t),we=(e,t,n)=>n?.append?F(e,t):v(e,t);async function xe(e){await U(e,{recursive:!0})}var ve=e=>P(e,{force:!0}),Pe=(e,t)=>T(e,t).catch(()=>{}),Re=(e,t)=>D(e,t),Ae=(e,t)=>R(e,t),Fe=e=>P(e,{recursive:!0,force:!0}),ke=(e,t)=>M(e,t,{recursive:!0,verbatimSymlinks:!0});async function Ue(e){try{let t=await S(e);return Number(t.bavail)*Number(t.bsize)}catch{return null}}var De=(e="conform-")=>O(w(H(),e));async function*Oe(e){for(let t of await k(e,{withFileTypes:!0}))yield{name:t.name,isFile:t.isFile(),isDirectory:t.isDirectory()}}async function Te(e){let t=await h(e,"r"),n=(await t.stat()).size;return{path:e,size:n,async readAt(o,r){let i=new Uint8Array(r),s=0;for(;s<r;){let{bytesRead:c}=await t.read(i,s,r-s,o+s);if(!c)break;s+=c}return s===r?i:i.subarray(0,s)},close:()=>t.close()}}async function Me(e){let t=await h(e,"w");return{async writeAt(n,o){let r=0;for(;r<o.length;){let{bytesWritten:i}=await t.write(o,r,o.length-r,n+r);r+=i}},truncate:n=>t.truncate(n),close:()=>t.close()}}function G(e,t,n={}){return new Promise(o=>{W(e,t,{maxBuffer:1<<30,env:n.env?{...m.env,...n.env}:void 0,timeout:n.timeoutMs},(r,i,s)=>{let c=r?.code??0;o({success:!r,code:c,stdout:String(i),stderr:String(s)})})})}function Se(e,t,n,o={}){return new Promise((r,i)=>{let s=A(e,t,{env:o.env?{...m.env,...o.env}:void 0,stdio:["ignore","pipe","pipe"]}),c="";s.stdout.on("data",a=>n(a)),s.stderr.on("data",a=>{c+=new TextDecoder().decode(a)}),s.on("error",i),s.on("close",a=>r({code:a,stderr:c})),o.signal?.addEventListener("abort",()=>s.kill(),{once:!0})})}function We(e,t,n,o){let r=A(e,t,{stdio:["pipe","pipe","pipe"]});r.stdout.on("data",a=>n(a)),r.stderr.on("data",a=>o?.(new TextDecoder().decode(a)));let i=new Promise(a=>{r.on("close",l=>a(l)),r.on("error",()=>a(null))}),s=[r,r.stdout,r.stderr,r.stdin],c=a=>{for(let l of s)(a?l.ref:l.unref)?.call(l)};return c(!1),{write:a=>new Promise((l,u)=>{r.stdin.write(a,d=>d?u(d):l())}),hold:c,close:()=>{try{r.stdin.end(),r.kill()}catch{}},exited:i}}async function $e(e){if(p("CONFORM_NO_BROWSER"))return!1;let[t,n]=m.platform==="darwin"?["open",[e]]:m.platform==="win32"?["cmd",["/c","start","",e.replace(/&/g,"^&")]]:["xdg-open",[e]];return(await G(t,n)).success}function Ee(e,t){let n=_.createServer(async(o,r)=>{try{let i=[];if(o.method!=="GET"&&o.method!=="HEAD")for await(let u of o)i.push(u);let s=i.length>0,c=new Headers;for(let[u,d]of Object.entries(o.headers))d!=null&&c.set(u,Array.isArray(d)?d.join(", "):d);let a=`http://${o.headers.host??`${e.hostname}:${e.port}`}${o.url??"/"}`,l=await t(new Request(a,{method:o.method,headers:c,body:s?x.concat(i):void 0}));r.statusCode=l.status,l.headers.forEach((u,d)=>r.setHeader(d,u)),r.end(x.from(await l.arrayBuffer()))}catch(i){r.statusCode=500,r.end(JSON.stringify({ok:!1,code:"internal",message:i instanceof Error?i.message:String(i)}))}});return n.listen(e.port,e.hostname,()=>{let o=n.address();e.onListen?.(typeof o=="object"&&o?o.port:e.port)}),{close:()=>n.close()}}async function Be(e){let t=$("sha256");for await(let n of E(e))t.update(n);return t.digest("hex")}async function He(e,t,n){let o=`${t}.part`;for(let r=0;;r++){let i=0;try{i=(await f(o)).size}catch{}try{let s=await fetch(e,{headers:i?{Range:`bytes=${i}-`}:{}});if(s.status===416)break;if(!s.ok||!s.body)throw new Error(`${e} answered ${s.status}`);i&&s.status!==206&&(i=0);let c=i+Number(s.headers.get("content-length")??0),a=await h(o,i?"a":"w");try{let l=i;for await(let u of s.body)await a.write(u),l+=u.length,n?.(l,c)}finally{await a.close()}break}catch(s){if(r>=4)throw s;await new Promise(c=>setTimeout(c,2e3*(r+1)))}}await R(o,t)}export{b as a,p as b,re as c,ne as d,oe as e,se as f,ie as g,ae as h,ce as i,le as j,g as k,me as l,ue as m,de as n,fe as o,pe as p,ge as q,ye as r,he as s,be as t,we as u,xe as v,ve as w,Pe as x,Re as y,Ae as z,Fe as A,ke as B,Ue as C,De as D,Oe as E,Te as F,Me as G,G as H,Se as I,We as J,$e as K,Ee as L,Be as M,He as N,ze as O,Le as P,Ie as Q,_e as R,je as S,Ge as T};
|
|
@@ -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
|
-
var s={scrub:{output:"rgba8",detail:"coarse"},thumbnail:{output:"rgba8",detail:"coarse"},park:{output:"rgba8",detail:"exact"},render:{output:"rgba8",detail:"exact"},transcode:{output:"rgb16",detail:"exact"}};function p(e){let t=new DataView(e.buffer,e.byteOffset,8),r=t.getUint32(0,!0),n=t.getUint32(4,!0),o=e.slice(8);return{width:r,height:n,rgb16:new Uint16Array(o.buffer,o.byteOffset,r*n*3)}}var a=class extends Error{constructor(r,n){super(`COVERAGE_MISS: frame ${r} not in linked media (${n} frames)`);this.index=r;this.frameCount=n;this.name="CoverageMissError"}},m=/(?:[A-Z0-9]+_)?COVERAGE_MISS\s+(\{[\s\S]*\})/;function u(e){let r=(e instanceof Error?e.message:String(e??"")).match(m);if(!r)return null;try{return JSON.parse(r[1])}catch{return{reason:"coverage_miss"}}}var i=class extends Error{constructor(r){super(`DELIVERY_COVERAGE_MISS: ${r.reason}`+(r.cut_in!=null?` cut [${r.cut_in}..${r.cut_out}] file_frames ${r.file_frames}`:""));this.detail=r;this.name="DeliveryCoverageMissError"}};function l(e){return e instanceof i?e.detail:u(e)}var d={mov:()=>import("./isobmff-
|
|
3
|
+
var s={scrub:{output:"rgba8",detail:"coarse"},thumbnail:{output:"rgba8",detail:"coarse"},park:{output:"rgba8",detail:"exact"},render:{output:"rgba8",detail:"exact"},transcode:{output:"rgb16",detail:"exact"}};function p(e){let t=new DataView(e.buffer,e.byteOffset,8),r=t.getUint32(0,!0),n=t.getUint32(4,!0),o=e.slice(8);return{width:r,height:n,rgb16:new Uint16Array(o.buffer,o.byteOffset,r*n*3)}}var a=class extends Error{constructor(r,n){super(`COVERAGE_MISS: frame ${r} not in linked media (${n} frames)`);this.index=r;this.frameCount=n;this.name="CoverageMissError"}},m=/(?:[A-Z0-9]+_)?COVERAGE_MISS\s+(\{[\s\S]*\})/;function u(e){let r=(e instanceof Error?e.message:String(e??"")).match(m);if(!r)return null;try{return JSON.parse(r[1])}catch{return{reason:"coverage_miss"}}}var i=class extends Error{constructor(r){super(`DELIVERY_COVERAGE_MISS: ${r.reason}`+(r.cut_in!=null?` cut [${r.cut_in}..${r.cut_out}] file_frames ${r.file_frames}`:""));this.detail=r;this.name="DeliveryCoverageMissError"}};function l(e){return e instanceof i?e.detail:u(e)}var d={mov:()=>import("./isobmff-57HSD6O2.js").then(e=>e.isobmffFormat),crm:()=>import("./isobmff-57HSD6O2.js").then(e=>e.isobmffFormat),braw:()=>import("./isobmff-57HSD6O2.js").then(e=>e.isobmffFormat),wav:()=>import("./wav-LFS6OZHJ.js").then(e=>e.wavFormat),mxf:()=>import("./mxf-FAXEK4WR.js").then(e=>e.mxfFormat),r3d:()=>import("./r3d-KJVC7T2C.js").then(e=>e.r3dFormat),still:()=>import("./still-WY7MUR7A.js").then(e=>e.stillFormat),avc1:()=>import("./h264-HD7BY5J5.js").then(e=>e.h264Format),avc3:()=>import("./h264-HD7BY5J5.js").then(e=>e.h264Format),h264:()=>import("./h264-HD7BY5J5.js").then(e=>e.h264Format),hvc1:()=>import("./h264-HD7BY5J5.js").then(e=>e.h264Format),hev1:()=>import("./h264-HD7BY5J5.js").then(e=>e.h264Format),hevc:()=>import("./h264-HD7BY5J5.js").then(e=>e.h264Format),h264_mxf:()=>import("./h264-mxf-6OOODSAK.js").then(e=>e.h264MxfFormat)};async function c(e){let t=d[e];return t?await t():null}async function f(e){let t=await c(e.format);if(!t)throw new Error(`extract: no handler for format '${e.format}'`);return t.extract(e)}async function b(e,t){let r=await c(e.format);if(!r){if(t.verb==="inspect")return null;throw new Error(`mediaOp: no handler for format '${e.format}' (verb ${t.verb})`)}switch(t.verb){case"inspect":{let n=await r.inspect(e);return n&&(n.source_facts_origin="probed"),n}case"sparsify":return r.sparsify(e,t.selection);case"trim":return r.trim(e,t.selection);case"decode":{let{output:n,detail:o}=s[t.intent];if(n==="rgb16"){if(!r.decode16)throw new Error(`mediaOp: format '${e.format}' has no 16-bit decoder (intent '${t.intent}')`);return r.decode16(e,t.index)}if(!r.decode)throw new Error(`mediaOp: format '${e.format}' has no decoder (no viewer)`);return r.decode(e,t.index,{detail:o})}}}export{s as a,p as b,a as c,u as d,i as e,l as f,c as g,f as h,b as i};
|
|
@@ -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{
|
|
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};
|
|
@@ -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-
|
|
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};
|
|
@@ -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_1760(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_1775(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};
|
|
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};
|
|
@@ -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 m,b as l}from"./chunk-DKGGJM6Z.js";import{Aa as u,Ca as n,V as c,p as s}from"./chunk-
|
|
3
|
+
import{a as m,b as l}from"./chunk-DKGGJM6Z.js";import{Aa as u,Ca as n,V as c,p as s}from"./chunk-PIEH7J6J.js";async function y(r){await n();let e=c(r);return e==="null"?null:JSON.parse(e)}async function d(r){await n();let e;try{e=s(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 h(r,e=8){await n();let t=l(u,"decode_exr_preview");if(!t)return d(r);try{return m(t(r,e))}catch{return null}}export{y as a,d as b,h 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{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-
|
|
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};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
+
import{H as h,R as c,a as m,j as w,k as $,o as i,s as b,u as v,v as R,y as k}from"./chunk-D5DEQ467.js";import"./chunk-PSANHDZM.js";var y="conformtools-statusline";function x(e,n){let s=e.statusLine;return s&&!String(s.command??"").includes(y)?{settings:e,result:"kept"}:s?.command===n?{settings:e,result:"updated"}:{settings:{...e,statusLine:{type:"command",command:n,padding:0}},result:s?"updated":"installed"}}async function P(){let e=new URL(import.meta.url),n=m(new URL("./statusline.js",e));if(await i(n)){await R(w());let t=c(w(),`${y}.js`);return await k(n,t),`node "${t}"`}let s=m(new URL("../adapters/statusline.ts",e));return await i(s)?`deno run --allow-read --allow-env --no-check "${s}" ${y}`:null}function L(e,n){let s=e.permissions&&typeof e.permissions=="object"?e.permissions:{},t=Array.isArray(s.allow)?s.allow.filter(o=>typeof o=="string"):[];return t.includes(n)?{settings:e,added:!1}:{settings:{...e,permissions:{...s,allow:[...t,n]}},added:!0}}async function U(e={}){let n=e.server??"conformtools",s=`mcp__${n}`,t=e.settingsPath??c($(),".claude","settings.json"),o={};if(await i(t)){let a=await b(t);try{o=a.trim()?JSON.parse(a):{}}catch(r){throw new Error(`${t} is not valid JSON (${r instanceof Error?r.message:r}); fix it first, nothing was changed`)}}let p=L(o,s),d=p.settings,l="skipped",C=p.added,S=e.statusline===!1?null:await P();if(S){let a=x(d,S);d=a.settings,l=a.result}let f;(C||l==="installed"||l==="updated"&&d!==p.settings)&&(await i(t)?(f=`${t}.conformtools-backup`,await k(t,f)):await Deno.mkdir(c(t,".."),{recursive:!0}),await v(t,JSON.stringify(d,null,2)+`
|
|
4
|
+
`));let u="skipped",g;if(e.register!==!1)try{if((await h("claude",["mcp","get",n])).code===0)u="already";else{let r=await h("claude",["mcp","add","-s","user",n,"--","npx","-y","conformtools@latest","mcp"]);u=r.code===0?"added":"failed",r.code!==0&&(g=r.stderr.trim().slice(-300))}}catch(a){u="failed",g=`claude CLI not found (${a instanceof Error?a.message:a}); add the server with: claude mcp add -s user ${n} -- npx -y conformtools@latest mcp`}return{settings:t,rule:s,added:C,backup:f,registered:u,detail:g,statusline:l}}function M(e){return[e.added?`Claude Code: allowed every conform.tools tool (${e.rule}) in ${e.settings}${e.backup?` (backup: ${e.backup})`:""}`:`Claude Code: ${e.rule} was already allowed in ${e.settings}`,{already:"MCP server: already registered",added:"MCP server: registered (claude mcp add -s user)",skipped:"MCP server: not checked",failed:`MCP server: not registered: ${e.detail??"claude mcp add failed"}`}[e.registered],{installed:"Status line: conform.tools (the running job and its progress) at the bottom of Claude Code",updated:"Status line: conform.tools, refreshed",kept:"Status line: you already have one, so it was left as it is (conformtools statusline prints ours)",skipped:"Status line: not installed"}[e.statusline],"Restart Claude Code (or /mcp) to load it. Remove the rule from permissions.allow to be asked again."].join(`
|
|
5
|
+
`)}export{U as setupClaude,M as setupText,L as withAllowRule,x as withStatusLine};
|
package/dist/cli.js
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
-
import{
|
|
3
|
+
import{O as X,_ as Z,aa as t8,b as q,ba as o8,c as Q,da as e8,e as U,ea as n8}from"./chunk-CX3USH6A.js";import{b as T,e as G,f as R}from"./chunk-D5DEQ467.js";import"./chunk-DRHOPOC7.js";import"./chunk-GXEVALBL.js";import"./chunk-Y2BEEOPB.js";import"./chunk-JH3OLTR6.js";import"./chunk-C2ESM27Z.js";import"./chunk-RULUDOB7.js";import"./chunk-BXFVYGFW.js";import"./chunk-BTXLTVNK.js";import"./chunk-RXHNBSER.js";import"./chunk-QDWB7QU7.js";import"./chunk-P7OVDUA5.js";import"./chunk-UCMNH6Q6.js";import"./chunk-KP4C2MFM.js";import"./chunk-RUBNBRUK.js";import"./chunk-DKGGJM6Z.js";import"./chunk-NP53ITN6.js";import"./chunk-BUEIRRNY.js";import"./chunk-TK55FA56.js";import"./chunk-JEMLKBH2.js";import"./chunk-FNGHTZ5F.js";import"./chunk-PIEH7J6J.js";import"./chunk-PSANHDZM.js";import{release as f8}from"node:os";var r8="6,a,e,a,9,5,9,8,3,11,8,a,e,a,9,5,10,5,7,14,8,a,e,a,9,8,e,a,6/5,c,c,c,7,7,8,8,3,11,7,c,c,c,7,7,e,7,6,15,6,c,c,c,8,8,d,c,5/4,e,a,e,6,7,8,8,3,11,6,e,a,e,7,6,e,7,6,15,5,e,a,e,7,8,c,e,4/4,e,a,e,6,7,8,8,3,11,6,e,a,e,7,6,e,7,6,15,5,e,a,e,7,8,c,e,4/3,10,8,10,5,8,7,8,3,11,5,10,8,10,6,7,c,8,6,15,4,10,8,10,6,8,b,10,3/2,11,7,11,5,8,7,8,3,11,4,11,7,11,6,7,c,8,6,15,3,12,6,12,5,8,b,11,2/2,12,6,12,4,8,7,8,3,11,4,12,6,12,5,7,c,8,6,15,3,12,6,12,5,8,a,12,2/1,14,4,14,3,9,6,8,3,11,3,14,4,14,4,7,c,8,6,15,2,14,4,14,4,8,9,14,1/0,a,2,9,4,9,2,9,3,9,6,8,3,9,b,9,2,9,4,14,4,8,a,9,b,a,8,9,2,9,4,9,2,9,4,8,9,9,2,a/0,9,4,8,3,9,4,8,3,9,6,8,3,8,c,8,4,8,4,8,4,8,4,8,a,9,c,8,9,8,4,8,4,8,4,8,4,8,9,8,4,9/0,9,4,8,3,9,4,8,3,a,5,8,3,8,c,8,4,8,4,8,4,8,4,8,a,9,c,8,9,8,4,8,4,8,4,8,4,8,9,8,4,9/0,9,4,8,3,9,4,8,3,a,5,8,3,8,c,8,4,8,4,8,4,8,4,9,8,a,c,8,9,8,4,8,4,8,4,8,4,8,9,8,4,9/0,9,4,8,3,9,4,8,3,a,5,8,3,8,c,8,4,8,4,8,4,8,4,9,8,a,c,8,9,8,4,8,4,8,4,8,4,8,9,8,4,9/0,9,4,8,3,9,4,8,3,a,5,8,3,8,c,8,4,8,4,8,4,8,4,9,8,a,c,8,9,8,4,8,4,8,4,8,4,8,9,8,4,9/0,9,4,8,3,9,4,8,3,b,4,8,3,8,c,8,4,8,4,8,4,8,4,a,6,b,c,8,9,8,4,8,4,8,4,8,4,8,9,8,4,9/0,9,4,8,3,9,4,8,3,b,4,8,3,8,c,8,4,8,4,8,4,8,4,a,6,b,c,8,9,8,4,8,4,8,4,8,4,8,9,9,3,9/0,9,4,8,3,9,4,8,3,b,4,8,3,8,c,8,4,8,4,8,4,8,4,a,6,b,c,8,9,8,4,8,4,8,4,8,4,8,a,9,2,9/0,9,4,8,3,9,4,8,3,c,3,8,3,8,c,8,4,8,4,8,4,8,4,a,6,b,c,8,9,8,4,8,4,8,4,8,4,8,b,8,3,8/0,9,4,8,3,9,4,8,3,c,3,8,3,8,c,8,4,8,4,8,4,8,4,b,4,c,c,8,9,8,4,8,4,8,4,8,4,8,b,9,a/0,9,4,8,3,9,4,8,3,c,3,8,3,9,b,8,4,8,4,8,4,8,4,b,4,c,c,8,9,8,4,8,4,8,4,8,4,8,c,9,9/0,9,f,9,4,8,3,d,2,8,3,11,3,8,4,8,4,8,4,8,4,b,4,c,c,8,9,8,4,8,4,8,4,8,4,8,d,8,9/0,9,f,9,4,8,3,d,2,8,3,11,3,8,4,8,4,8,4,8,4,c,2,d,c,8,9,8,4,8,4,8,4,8,4,8,d,9,8/0,9,f,9,4,8,3,d,2,8,3,11,3,8,4,8,4,9,3,8,4,c,2,d,c,8,9,8,4,8,4,8,4,8,4,8,e,8,8/0,9,f,9,4,8,3,e,1,8,3,11,3,8,4,8,4,a,2,8,4,c,2,d,c,8,9,8,4,8,4,8,4,8,4,8,f,8,7/0,9,f,9,4,8,3,17,3,11,3,8,4,8,4,a,2,7,5,c,2,d,c,8,9,8,4,8,4,8,4,8,4,8,f,9,6/0,9,f,9,4,8,3,17,3,11,3,8,4,8,4,b,1,6,6,1b,c,8,9,8,4,8,4,8,4,8,4,8,10,8,6/0,9,f,9,4,8,3,17,3,11,3,8,4,8,4,12,6,1b,c,8,9,8,4,8,4,8,4,8,4,8,10,9,5/0,9,4,8,3,9,4,8,3,17,3,9,b,8,4,8,4,11,7,1b,c,8,9,8,4,8,4,8,4,8,4,8,11,9,4/0,9,4,8,3,9,4,8,3,17,3,8,c,8,4,8,4,10,8,1b,c,8,9,8,4,8,4,8,4,8,4,8,12,8,4/0,9,4,8,3,9,4,8,3,17,3,8,c,8,4,8,4,10,8,1b,c,8,9,8,4,8,4,8,4,8,4,8,12,9,3/0,9,4,8,3,9,4,8,3,17,3,8,c,8,4,8,4,10,8,1b,c,8,9,8,4,8,4,8,4,8,4,8,9,8,2,8,3/0,9,4,8,3,9,4,8,3,9,1,d,3,8,c,8,4,8,4,8,1,8,7,8,1,8,1,9,c,8,9,8,4,8,4,8,4,8,4,8,9,8,3,8,2/0,9,4,8,3,9,4,8,3,9,1,d,3,8,c,8,4,8,4,8,2,7,7,8,1,8,1,9,c,8,9,8,4,8,4,8,4,8,4,8,9,8,3,9,1/0,9,4,8,3,9,4,8,3,9,1,d,3,8,c,8,4,8,4,8,3,7,6,8,1,8,1,9,c,8,9,8,4,8,4,8,4,8,4,8,9,8,4,9/0,9,4,8,3,9,4,8,3,9,2,c,3,8,c,8,4,8,4,8,4,7,5,8,2,6,2,9,c,8,9,8,4,8,4,8,4,8,4,8,9,8,4,9/0,9,4,8,3,9,4,8,3,9,2,c,3,8,c,8,4,8,4,8,4,8,4,8,2,6,2,9,c,8,9,8,4,8,4,8,4,8,4,8,9,8,4,9/0,9,4,8,3,9,4,8,3,9,2,c,3,8,c,8,4,8,4,8,4,8,4,8,3,4,3,9,c,8,9,8,4,8,4,8,4,8,4,8,9,8,4,9/0,9,4,8,3,9,4,8,3,9,3,b,3,8,c,8,4,8,4,8,4,8,4,8,3,4,3,9,c,8,9,8,4,8,4,8,4,8,4,8,9,8,4,9/0,9,4,8,3,9,4,8,3,9,3,b,3,8,b,9,4,8,4,8,4,8,4,8,4,3,3,9,c,8,9,8,4,8,4,8,4,8,4,8,9,8,4,9/0,a,2,9,4,9,2,9,3,9,4,a,3,8,c,9,2,9,4,8,4,8,4,8,a,9,4,3,5,8,9,9,2,9,4,9,2,9,4,e,3,9,2,a/1,14,4,14,3,9,4,a,3,8,c,14,4,8,4,8,4,8,a,9,3,6,3,8,9,14,4,14,4,f,2,14,1/2,12,6,12,4,9,4,a,3,8,d,12,5,8,4,8,4,8,a,9,2,8,2,8,a,12,6,12,5,f,3,12,2/2,11,7,11,5,9,5,9,3,8,d,11,6,8,4,8,4,8,a,9,2,8,2,8,b,10,8,10,6,f,4,11,2/3,10,8,10,5,9,5,9,3,8,e,10,6,8,4,8,4,8,a,9,2,8,2,8,b,10,8,10,6,f,4,10,3/4,e,a,e,6,9,6,8,3,8,f,e,7,8,4,8,4,8,a,9,2,8,2,8,c,e,a,e,7,f,5,e,4/4,d,b,d,7,9,6,8,3,8,f,d,8,8,4,8,4,8,a,9,2,7,3,8,c,e,a,e,7,f,6,d,4/5,c,c,c,7,9,6,8,3,8,10,c,7,9,4,8,3,9,a,9,3,5,4,8,d,c,c,c,8,f,6,c,5/ae,2,6c";var I=[18,18,18],H=[255,60,0],N=[245,245,245],Y=[140,140,140],c8=[255,222,0],V=(t,o,n)=>[0,1,2].map(e=>Math.round(t[e]+(o[e]-t[e])*n)),v=process.stdout,$=[[1,0],[.772,.017],[.662,.039],[.471,.102],[.386,.142],[.237,.226],[.194,.305],[.122,.411]],s8=(t,o)=>Math.abs(o)<=Math.min(1-.417*Math.abs(t),2.393*(1-Math.abs(t))),b8=(t,o)=>t*t+o*o<=1;function h8(t){let o=$.length-1,n=(r,l,c)=>[Math.exp(Math.log(r[0])+(Math.log(l[0])-Math.log(r[0]))*c),r[1]+(l[1]-r[1])*c];if(t<=0)return n($[0],$[2],t/2);if(t>=o)return n($[o-2],$[o],1+(t-o)/2);let e=Math.floor(t);return n($[e],$[e+1],t-e)}function p8(t,o,n){let e=[];for(let l=-2;l<12;l++){let c=l-2*n;if(c<-2||c>11)continue;let[i,a]=h8(c);e.push({oval:(l%2+2)%2===1,s:i,cy:a})}let r=4;return Array.from({length:o},(l,c)=>Array.from({length:t},(i,a)=>{let m=0;for(let p=0;p<r;p++)for(let u=0;u<r;u++){let d=(a+(u+.5)/r)/t*2-1,x=(c+(p+.5)/r)/o*2-1;if(!s8(d,x))continue;let y=!1;for(let f of e)(f.oval?b8:s8)(d/f.s,(x-f.cy)/f.s)&&(y=!f.oval);y&&m++}return m/(r*r)}))}var S=r8.split("/").map(t=>{let o=[];return t.split(",").forEach((n,e)=>{for(let r=0;r<parseInt(n,16);r++)o.push(e%2===1)}),o}),K=S[0].length,L=S.length,z=(t,o)=>t>=169&&t<=180&&o>=30,_=[];for(let t=0,o=-1;t<=K;t++){let n=t<K&&S.some((e,r)=>e[t]&&!z(t,r));n&&o<0&&(o=t),!n&&o>=0&&(_.push({x0:o,x1:t,dot:!1}),o=-1)}{let t=Array.from({length:K},(o,n)=>n).filter(o=>S.some((n,e)=>n[o]&&z(o,e)));_.push({x0:t[0],x1:t[t.length-1]+1,dot:!0}),_.sort((o,n)=>o.x0-n.x0)}function w8(t){let o=Array.from({length:t},()=>[]),n=Array.from({length:t},()=>[]);return _.forEach(({x0:e,x1:r,dot:l},c)=>{let i=Math.max(1,Math.round((r-e)*t/L));for(let a=0;a<t;a++){let m=Math.floor(a*L/t),p=Math.max(m+1,Math.floor((a+1)*L/t));for(let u=0;u<i;u++){let d=e+Math.floor(u*(r-e)/i),x=Math.max(d+1,e+Math.floor((u+1)*(r-e)/i)),y=0;for(let f=m;f<p;f++)for(let B=d;B<x;B++)S[f][B]&&z(B,f)===l&&y++;o[a].push(y/((p-m)*(x-d))),n[a].push(l)}c<_.length-1&&(o[a].push(0),n[a].push(!1))}}),{cover:o,dot:n,w:o[0].length}}var d8=t=>_.reduce((o,n)=>o+Math.max(1,Math.round((n.x1-n.x0)*t/L))+1,-1);function g8(){if(T("NO_COLOR"))return"none";if(/truecolor|24bit/i.test(T("COLORTERM")??""))return"truecolor";let t=T("TERM_PROGRAM")??"";return["iTerm.app","WezTerm","ghostty","vscode"].includes(t)||t==="Apple_Terminal"&&Number(f8().split(".")[0])>=25?"truecolor":"256"}function a8(t,o){let n=(c,i)=>o==="truecolor"?`${i};2;${c[0]};${c[1]};${c[2]}`:`${i};5;${16+36*Math.round(c[0]/51)+6*Math.round(c[1]/51)+Math.round(c[2]/51)}`,e="",r="",l="";for(let c of t){let[i,a,m]="ch"in c?[n(c.fg,38),n(I,48),c.ch]:[n(c.top,38),n(c.bottom,48),"\u2580"];(i!==r||a!==l)&&(e+=`\x1B[${i};${a}m`,r=i,l=a),e+=m}return e+"\x1B[0m"}async function i8(t){if(!v.isTTY)return!1;let o=g8(),n=v.columns??80,e=[[24,10],[24,8],[20,8],[20,6]].map(([s,w])=>({mh:s,wh:w,mw:Math.round(s*1.143),ww:d8(w)})).find(s=>2+s.mw+3+s.ww+2<=n)??{mh:20,wh:0,mw:23,ww:30},r=e.mh/2,l=e.wh/2,c=2+e.mw+3+e.ww+2,i=e.wh?w8(e.wh):null,a=r===12?2:1,m=a+Math.max(l,1)+1,p=(s,w,M)=>[...s.padEnd(M).slice(0,M)].map(O=>({ch:O,fg:w})),u=s=>p("",N,s),d=(s,w,M)=>{let O=p8(e.mw,e.mh,s),J=[];for(let b=-1;b<=r;b++){if(b<0||b===r){J.push(o==="none"?"":a8(u(c),o));continue}let g=[...u(2)];for(let h=0;h<e.mw;h++)g.push({top:V(I,H,O[2*b][h]**.7),bottom:V(I,H,O[2*b+1][h]**.7)});g.push(...u(3));let k=b-a;if(i&&k>=0&&k<l)for(let h=0;h<e.ww;h++){let j=W=>Math.min(1,Math.max(0,(W-.2)/.4)),P=W=>V(I,i.dot[W][h]?H:N,j(i.cover[W][h]));g.push({top:P(2*k),bottom:P(2*k+1)})}else if(!i&&b===a)g.push(...p("conform.tools",N,e.ww));else if(b===m){let h=w.flatMap(([j,P])=>p(j,P,j.length));g.push(...h.slice(0,e.ww),...u(Math.max(0,e.ww-h.length)))}else b>m&&b-m-1<M.length?g.push(...p(M[b-m-1],Y,e.ww)):g.push(...u(e.ww));g.push(...u(2)),J.push(o==="none"?x8(g):a8(g,o))}return J.join(`
|
|
4
|
+
`)+`
|
|
5
|
+
`},x=null;t.account.then(s=>{x=s});let y=s=>[s/86400,s/1440%60,s/24%60,s%24].map(w=>String(Math.floor(w)).padStart(2,"0")).join(":"),f=r+2;if(v.write(`
|
|
6
|
+
`),!T("CI")&&T("TERM")!=="dumb"){let s=()=>v.write("\x1B[?25h");process.once("SIGINT",()=>{s(),process.exit(130)}),v.write("\x1B[?25l"+d(0,[[`\u25B6 ${y(0)}`,c8]],[]));let w=Date.now(),M=0;for(;x===null||Date.now()-w<900;)await new Promise(O=>setTimeout(O,1e3/24)),M=Math.round((Date.now()-w)*24/1e3),v.write(`\x1B[${f}A\r`+d(M/22%1,[[`\u25B6 ${y(M)}`,c8],[" checking your account\u2026",Y]],[]));v.write(`\x1B[${f}A\r`),s()}let B=(x??await t.account).split(`
|
|
7
|
+
`);return v.write(d(0,[[`v${t.version}`,N],[" \xB7 built by post pros",Y]],B)+`
|
|
8
|
+
`),!0}function x8(t){let o=n=>n[0]+n[1]+n[2]>254;return t.map(n=>"ch"in n?n.ch:o(n.top)&&o(n.bottom)?"\u2588":o(n.top)?"\u2580":o(n.bottom)?"\u2584":" ").join("")}var u8=()=>i8({version:U,account:Promise.race([q().catch(()=>null),new Promise(t=>setTimeout(t,1500,null))]).then(t=>t?Q(t):"account: no answer (offline?)")}),M8={login:"account_login",logout:"account_logout",whoami:"account_status",status:"account_status",telemetry:"account_telemetry"};G()[0]==="mcp"&&(await import("./mcp.js"),await new Promise(()=>{}));G()[0]==="http"&&(await import("./http.js"),await new Promise(()=>{}));G()[0]==="statusline"&&((await import("./statusline-GMMCFMOA.js")).main(),R(0));if(G()[0]==="setup"){let t=G()[1];t!=="claude"&&(console.error(`conformtools setup <client>: supported: claude${t?` (not ${t} yet)`:""}`),R(2));let{setupClaude:o,setupText:n}=await import("./claude-setup-XSNTKEU7.js");try{console.log(n(await o())),R(0)}catch(e){console.error(e instanceof Error?e.message:String(e)),R(1)}}var l8=G().includes("--json"),[E,D]=G().filter(t=>t!=="--json");if(!E||E==="--list"||E==="help"||E==="--help"){await u8(),console.log(`conformtools <verb> '<json args>' [--json]
|
|
4
9
|
|
|
5
10
|
login / whoami / logout sign in with your conform.tools Google account
|
|
6
11
|
telemetry on|off|status optional outcome telemetry (off by default; see the README, Feedback and privacy)
|
|
7
12
|
mcp run as an MCP server (stdio) for Claude Code, Cursor, Codex\u2026
|
|
8
13
|
http run the local HTTP API on 127.0.0.1:7791
|
|
9
|
-
`);let
|
|
10
|
-
(on conform.tools) = the timeline is read or written by conform.tools; the file and its media stay here`),
|
|
11
|
-
`)},null,1):
|
|
12
|
-
`));await
|
|
14
|
+
`);let t=X()==="hosted";for(let o of e8)console.log(` ${o.name.padEnd(22)} ${o.title}${t&&o.protectedStages?.length?" (on conform.tools)":""}`);t&&console.log(`
|
|
15
|
+
(on conform.tools) = the timeline is read or written by conform.tools; the file and its media stay here`),R(0)}var C=M8[E]??E,R8=n8(C);R8||(console.error(`unknown verb '${E}' \u2014 conformtools --list`),R(2));C==="account_login"&&console.error("opening the browser to sign in to conform.tools\u2026");var y8=C==="account_telemetry"&&D&&!D.trim().startsWith("{")?JSON.stringify({action:D.trim()}):D,m8;try{m8=JSON.parse(y8??"{}")}catch{console.error(`arguments must be JSON, e.g. conformtools ${E} '{"path":"\u2026"}'`),R(2)}var F=o8(C,m8),A=F.ok?await t8(C,F.data):F.result;C==="account_login"&&!A.isError&&!l8&&await u8()||console.log(l8?JSON.stringify(A.structuredContent??{ok:!A.isError,text:A.content.map(t=>t.text).join(`
|
|
16
|
+
`)},null,1):A.content.map(t=>t.text).join(`
|
|
17
|
+
`));await Z();R(A.isError?1:0);
|
|
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,b}from"./chunk-
|
|
3
|
+
import{a,b}from"./chunk-BXFVYGFW.js";import"./chunk-PIEH7J6J.js";import"./chunk-PSANHDZM.js";export{b as decodeCr3Wasm,a as inspectCr3Wasm};
|
|
@@ -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,b,c}from"./chunk-
|
|
3
|
+
import{a,b,c}from"./chunk-RULUDOB7.js";import"./chunk-DKGGJM6Z.js";import"./chunk-PIEH7J6J.js";import"./chunk-PSANHDZM.js";export{c as decodeDngPreviewWasm,b as decodeDngWasm,a as inspectDngWasm};
|
|
@@ -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,b,c}from"./chunk-
|
|
3
|
+
import{a,b,c}from"./chunk-KP4C2MFM.js";import"./chunk-DKGGJM6Z.js";import"./chunk-PIEH7J6J.js";import"./chunk-PSANHDZM.js";export{c as decodeDpxPreviewWasm,b as decodeDpxWasm,a as inspectDpxWasm};
|
|
@@ -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,b,c}from"./chunk-
|
|
3
|
+
import{a,b,c}from"./chunk-RUBNBRUK.js";import"./chunk-DKGGJM6Z.js";import"./chunk-PIEH7J6J.js";import"./chunk-PSANHDZM.js";export{c as decodeExrPreviewWasm,b as decodeExrWasm,a as inspectExrWasm};
|
|
@@ -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
|
|
3
|
+
import{a as M}from"./chunk-QDWB7QU7.js";import{a as v,b as S}from"./chunk-SP5RGDAM.js";import{a as F}from"./chunk-TK55FA56.js";import"./chunk-PSANHDZM.js";var V=8,H=1500,P=new WeakMap;async function C(t){let o=P.get(t);return o||(o=k(t),P.set(t,o)),o}async function k(t){if(typeof VideoDecoder>"u")throw new Error("h264: WebCodecs (VideoDecoder) not available in this context");let o=t.parts[0],e=await F({fileSize:o.fileSize,read:o.read}),a=S(v(e)),r=M(e);if(!r)throw new Error("h264: no H.264/HEVC config in container");let s=r.decodeToPres.length||a.length,f=new Int32Array(s);for(let n=0;n<r.decodeToPres.length;n++)f[r.decodeToPres[n]]=n;let u=[];for(let n=0;n<r.keyframes.length;n++){let l=r.keyframes[n],m=n+1<r.keyframes.length?r.keyframes[n+1]:a.length;u.push([l,m])}let c={offs:a,cfg:r,gops:u,presToDecode:f,count:s,dec:null,wanted:-1,got:null,gotResolve:null,fedThrough:-1,queue:Promise.resolve()};return c.dec=new VideoDecoder({output:n=>{Number(n.timestamp)===c.wanted&&!c.got?(c.got=n,c.gotResolve?.()):n.close()},error:()=>{c.fedThrough=-1}}),c.dec.configure({codec:r.codec,description:r.description,optimizeForLatency:!0,hardwareAcceleration:"prefer-hardware"}),c}function R(t,o){let e=0,a=t.length-1,r=0;for(;e<=a;){let s=e+a>>1;t[s][0]<=o?(r=s,e=s+1):a=s-1}return r}async function I(t){let o=t.codedWidth,e=t.codedHeight;try{let a=o*e*4,r=new Uint8Array(a);return await t.copyTo(r,{format:"RGBA",colorSpace:"srgb"}),{width:o,height:e,rgba:r}}catch{let r=new OffscreenCanvas(o,e).getContext("2d",{willReadFrequently:!0});if(!r)throw new Error("h264: no 2d context for frame readback");r.drawImage(t,0,0);let s=r.getImageData(0,0,o,e);return{width:o,height:e,rgba:new Uint8Array(s.data.buffer)}}}async function O(t,o){let e=await C(t);if(e.count===0)throw new Error("h264: empty clip");if(o<0||o>=e.count)throw new Error(`COVERAGE_MISS: frame ${o} outside 0..${e.count-1}`);let a,r=new Promise(f=>{a=f}),s=e.queue;e.queue=e.queue.then(()=>r),await s;try{let f=t.parts[0],u=e.presToDecode[o],c=R(e.gops,u),[n,l]=e.gops[c];for(let m=0;m<2;m++){let T=m===0&&e.fedThrough>n&&e.fedThrough<=l&&u>=e.fedThrough,w=T?e.fedThrough:n;if(!T&&e.fedThrough!==-1){try{await e.dec.flush()}catch{}e.fedThrough=-1}let h=Math.min(l,u+1+V);e.wanted=o,e.got=null;let D=new Promise(d=>{e.gotResolve=d});if(h>w){let d=1/0,y=0;for(let i=w;i<h;i++)d=Math.min(d,e.offs[i].offset),y=Math.max(y,e.offs[i].offset+e.offs[i].size);let E=await f.read(d,y-d);for(let i=w;i<h;i++){let b=e.offs[i];e.dec.decode(new EncodedVideoChunk({type:i===n?"key":"delta",timestamp:e.cfg.decodeToPres[i],data:E.subarray(b.offset-d,b.offset-d+b.size)}))}e.fedThrough=h}let A=new Promise(d=>setTimeout(d,H));if(await Promise.race([D,A]),!e.got){try{await e.dec.flush()}catch{}e.fedThrough=-1}let p=e.got;if(e.wanted=-1,e.gotResolve=null,e.got=null,!!p)try{return await I(p)}finally{p.close()}}throw new Error(`h264: frame ${o} did not decode`)}finally{a()}}async function g(){return(await import("./isobmff-57HSD6O2.js")).isobmffFormat}var U={async inspect(t){return(await g()).inspect(t)},async extract(t){return(await g()).extract(t)},async sparsify(t,o){return(await g()).sparsify(t,o)},async trim(t,o){return(await g()).trim(t,o)},async decode(t,o){return O(t,o)}};export{U as h264Format};
|
|
@@ -1,3 +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 v,ha as g,ja as b}from"./chunk-
|
|
3
|
+
import{Ca as v,ha as g,ja as b}from"./chunk-PIEH7J6J.js";import"./chunk-PSANHDZM.js";var G=8,P=1500,M=new WeakMap,S=o=>(t,e)=>o.read(t,e);function F(o){let t=new DataView(o.buffer,o.byteOffset,o.byteLength),e=t.getUint32(0,!0),n=[];for(let a=0;a<e;a++)n.push(t.getUint32(4+a*4,!0));let i=[],r=4+e*4;for(let a of n)i.push(o.subarray(r,r+a)),r+=a;return i}function V(o){for(let t=0;t+5<o.length;t++){let e=o[t]===0&&o[t+1]===0&&o[t+2]===0&&o[t+3]===1,n=o[t]===0&&o[t+1]===0&&o[t+2]===1;if(e||n){let i=t+(e?4:3);if((o[i]&31)===7){let r=a=>a.toString(16).padStart(2,"0");return`avc1.${r(o[i+1])}${r(o[i+2])}${r(o[i+3])}`}t=i-1}}return"avc1.640028"}async function A(o){if(typeof VideoDecoder>"u")throw new Error("h264-mxf: WebCodecs (VideoDecoder) not available in this context");await v();let t=o.parts[0],e=S(t),n=JSON.parse(await b(e,t.fileSize));if(!n.raps.length)throw new Error("h264-mxf: no random-access points in MXF index");let i=V(F(await g(e,t.fileSize,0,0))[0]),r={map:n,codec:i,dec:null,wanted:-1,emitted:0,got:null,gotResolve:null,fedGop:-1,fedThrough:-1,queue:Promise.resolve()};return r.dec=new VideoDecoder({output:a=>{r.emitted++===r.wanted&&!r.got?(r.got=a,r.gotResolve?.()):a.close()},error:()=>{r.fedGop=-1,r.fedThrough=-1}}),r.dec.configure({codec:i,codedWidth:n.coded_width||1920,codedHeight:n.coded_height||1088,optimizeForLatency:!0}),r}async function E(o){let t=M.get(o);return t||(t=A(o),M.set(o,t)),t}function D(o,t){let e=o.raps,n=0,i=e.length-1,r=0;for(;n<=i;){let a=n+i>>1;e[a]<=t?(r=a,n=a+1):i=a-1}return{start:e[r],end:r+1<e.length?e[r+1]:o.total_frames}}async function R(o){let t=o.visibleRect,e=t?t.width:o.codedWidth,n=t?t.height:o.codedHeight;try{let i=new Uint8Array(e*n*4);return await o.copyTo(i,{format:"RGBA",colorSpace:"srgb",rect:t??void 0}),{width:e,height:n,rgba:i}}catch{let r=new OffscreenCanvas(e,n).getContext("2d",{willReadFrequently:!0});if(!r)throw new Error("h264-mxf: no 2d context for frame readback");r.drawImage(o,t?t.x:0,t?t.y:0,e,n,0,0,e,n);let a=r.getImageData(0,0,e,n);return{width:e,height:n,rgba:new Uint8Array(a.data.buffer)}}}async function U(o,t){let e=await E(o);if(e.map.total_frames===0)throw new Error("h264-mxf: empty clip");if(t<0||t>=e.map.total_frames)throw new Error(`COVERAGE_MISS: frame ${t} outside 0..${e.map.total_frames-1}`);let n,i=new Promise(a=>{n=a}),r=e.queue;e.queue=e.queue.then(()=>i),await r;try{let a=o.parts[0],w=S(a),{start:c,end:_}=D(e.map,t);for(let u=0;u<2;u++){let f=u===0&&e.fedGop===c&&e.fedThrough>c&&t>=e.fedThrough;if(!f&&e.fedGop!==-1){try{await e.dec.flush()}catch{}e.fedGop=-1,e.fedThrough=-1}let l=f?e.fedThrough:c,h=Math.min(_,t+1+G);f||(e.emitted=0),e.wanted=t-c,e.got=null;let T=new Promise(s=>{e.gotResolve=s});if(h>l){let s=F(await g(w,a.fileSize,l,h-1));for(let d=0;d<s.length;d++){let y=l+d;e.dec.decode(new EncodedVideoChunk({type:y===c?"key":"delta",timestamp:y*1e3,data:s[d]}))}e.fedGop=c,e.fedThrough=h}let x=new Promise(s=>setTimeout(s,P));if(await Promise.race([T,x]),!e.got){try{await e.dec.flush()}catch{}e.fedGop=-1,e.fedThrough=-1}let p=e.got;if(e.wanted=-1,e.gotResolve=null,e.got=null,!!p)try{return await R(p)}finally{p.close()}}throw new Error(`h264-mxf: frame ${t} did not decode`)}finally{n()}}async function m(){return(await import("./mxf-FAXEK4WR.js")).mxfFormat}var O={async inspect(o){return(await m()).inspect(o)},async extract(o){return(await m()).extract(o)},async sparsify(o,t){return(await m()).sparsify(o,t)},async trim(o,t){return(await m()).trim(o,t)},async decode(o,t){return U(o,t)}};export{O as h264MxfFormat};
|
package/dist/http.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
-
import{b as
|
|
3
|
+
import{b as h}from"./chunk-6TM32YIJ.js";import{N as d,O as u,W as f,X as g,Y as T,aa as O,ba as w,da as r,e as p}from"./chunk-CX3USH6A.js";import{L as m,b as c}from"./chunk-D5DEQ467.js";import"./chunk-DRHOPOC7.js";import"./chunk-GXEVALBL.js";import"./chunk-Y2BEEOPB.js";import"./chunk-JH3OLTR6.js";import"./chunk-C2ESM27Z.js";import"./chunk-RULUDOB7.js";import"./chunk-BXFVYGFW.js";import"./chunk-BTXLTVNK.js";import"./chunk-RXHNBSER.js";import"./chunk-QDWB7QU7.js";import"./chunk-P7OVDUA5.js";import"./chunk-UCMNH6Q6.js";import"./chunk-KP4C2MFM.js";import"./chunk-RUBNBRUK.js";import"./chunk-DKGGJM6Z.js";import"./chunk-NP53ITN6.js";import"./chunk-BUEIRRNY.js";import"./chunk-TK55FA56.js";import"./chunk-JEMLKBH2.js";import"./chunk-FNGHTZ5F.js";import"./chunk-PIEH7J6J.js";import"./chunk-PSANHDZM.js";var S=Number(c("CONFORM_HTTP_PORT")??7791),E=c("CONFORM_HTTP_TOKEN")??"",k=(c("CONFORM_HTTP_ORIGINS")??"https://conform.tools,https://app.conform.tools,http://localhost:5173,http://localhost:3000").split(","),R=(t,n=new Headers)=>{let e=t.headers.get("origin")??"";return k.includes(e)&&n.set("access-control-allow-origin",e),n.set("access-control-allow-headers","authorization, content-type"),n.set("access-control-allow-methods","GET, POST, DELETE, OPTIONS"),n.set("access-control-allow-private-network","true"),n.set("vary","origin"),n},s=(t,n,e=200)=>new Response(JSON.stringify(n),{status:e,headers:R(t,new Headers({"content-type":"application/json"}))});m({hostname:"127.0.0.1",port:S,onListen:t=>console.error(`conformtools HTTP API on http://127.0.0.1:${t} (${r.length} verbs)`)},async t=>{let n=new URL(t.url);if(t.method==="OPTIONS")return new Response(null,{status:204,headers:R(t)});if(E&&t.headers.get("authorization")!==`Bearer ${E}`&&n.pathname!=="/health")return s(t,{ok:!1,code:"unauthorized"},401);let e=n.pathname.split("/").filter(Boolean);try{if(n.pathname==="/health")return s(t,{ok:!0,verbs:r.length,version:p,engine:u()});if(e[0]==="verbs"&&e.length===1&&t.method==="GET")return s(t,r.map(o=>({name:o.name,title:o.title,description:o.description,long:!!o.long,input_schema:h(d.object(o.inputSchema)),protected_stages:o.protectedStages??[],engine:u()})));if(e[0]==="verbs"&&e.length===2&&t.method==="POST"){let o=r.find(l=>l.name===e[1]);if(!o)return s(t,{ok:!1,code:"not_found",message:`unknown verb ${e[1]}`},404);let b=t.headers.get("content-type")?.includes("json")?await t.json():{},a=w(o.name,b);if(!a.ok)return s(t,{...a.result.structuredContent,text:a.result.content[0].text},400);let i=await O(o.name,a.data);return s(t,{...i.structuredContent??{ok:!i.isError},text:i.content.map(l=>l.text).join(`
|
|
4
4
|
`)},i.isError?422:200)}if(e[0]==="jobs"&&e.length===1)return s(t,await T());if(e[0]==="jobs"&&e.length===2){if(t.method==="DELETE")return s(t,{ok:g(e[1])});let o=await f(e[1]);return o?s(t,o):s(t,{ok:!1,code:"not_found"},404)}return s(t,{ok:!1,code:"not_found"},404)}catch(o){return s(t,{ok:!1,code:"internal",message:o instanceof Error?o.message:String(o)},500)}});
|