@duckdb/duckdb-wasm 1.16.0 → 1.16.1

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.
@@ -1,7 +1,7 @@
1
- "use strict";var sg=Object.create;var Ci=Object.defineProperty;var og=Object.getOwnPropertyDescriptor;var ug=Object.getOwnPropertyNames;var lg=Object.getPrototypeOf,cg=Object.prototype.hasOwnProperty;var V=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),fg=(r,t)=>{for(var e in t)Ci(r,e,{get:t[e],enumerable:!0})},wf=(r,t,e,u)=>{if(t&&typeof t=="object"||typeof t=="function")for(let d of ug(t))!cg.call(r,d)&&d!==e&&Ci(r,d,{get:()=>t[d],enumerable:!(u=og(t,d))||u.enumerable});return r};var cr=(r,t,e)=>(e=r!=null?sg(lg(r)):{},wf(t||!r||!r.__esModule?Ci(e,"default",{value:r,enumerable:!0}):e,r)),_g=r=>wf(Ci({},"__esModule",{value:!0}),r);var Mf=V((V0,Nf)=>{"use strict";var gg=async r=>{try{return(await WebAssembly.instantiate(r)).instance.exports.b(BigInt(0))===BigInt(0)}catch{return!1}},bg=async r=>{try{return typeof MessageChannel<"u"&&new MessageChannel().port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(r)}catch{return!1}},jg={bigInt:()=>gg(new Uint8Array([0,97,115,109,1,0,0,0,1,6,1,96,1,126,1,126,3,2,1,0,7,5,1,1,98,0,0,10,6,1,4,0,32,0,11])),bulkMemory:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,3,1,0,1,10,14,1,12,0,65,0,65,0,65,0,252,10,0,0,11])),exceptions:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,8,1,6,0,6,64,25,11,11])),multiValue:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,6,1,96,0,2,127,127,3,2,1,0,10,8,1,6,0,65,0,65,0,11])),mutableGlobals:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,2,8,1,1,97,1,98,3,127,1,6,6,1,127,1,65,0,11,7,5,1,1,97,3,1])),referenceTypes:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,7,1,5,0,208,112,26,11])),saturatedFloatToInt:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,12,1,10,0,67,0,0,0,0,252,0,26,11])),signExtensions:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,8,1,6,0,65,0,192,26,11])),simd:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])),tailCall:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,6,1,4,0,18,0,11])),threads:()=>bg(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]))};Nf.exports=jg});var Bf=V(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.splitWhen=_r.flatten=void 0;function Dg(r){return r.reduce((t,e)=>[].concat(t,e),[])}_r.flatten=Dg;function Pg(r,t){let e=[[]],u=0;for(let d of r)t(d)?(u++,e[u]=[]):e[u].push(d);return e}_r.splitWhen=Pg});var Lf=V(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.isEnoentCodeError=void 0;function xg(r){return r.code==="ENOENT"}Pi.isEnoentCodeError=xg});var Uf=V(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.createDirentFromStats=void 0;var ps=class{constructor(t,e){this.name=t,this.isBlockDevice=e.isBlockDevice.bind(e),this.isCharacterDevice=e.isCharacterDevice.bind(e),this.isDirectory=e.isDirectory.bind(e),this.isFIFO=e.isFIFO.bind(e),this.isFile=e.isFile.bind(e),this.isSocket=e.isSocket.bind(e),this.isSymbolicLink=e.isSymbolicLink.bind(e)}};function Og(r,t){return new ps(r,t)}xi.createDirentFromStats=Og});var Hf=V(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.removeLeadingDotSegment=yt.escape=yt.makeAbsolute=yt.unixify=void 0;var Fg=require("path"),Ng=2,Mg=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function Ig(r){return r.replace(/\\/g,"/")}yt.unixify=Ig;function Bg(r,t){return Fg.resolve(r,t)}yt.makeAbsolute=Bg;function Lg(r){return r.replace(Mg,"\\$2")}yt.escape=Lg;function Ug(r){if(r.charAt(0)==="."){let t=r.charAt(1);if(t==="/"||t==="\\")return r.slice(Ng)}return r}yt.removeLeadingDotSegment=Ug});var Wf=V((ik,qf)=>{qf.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var e;e=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(e[2])return!0;t=t.slice(e.index+e[0].length)}return!1}});var Kf=V((nk,Gf)=>{var Hg=Wf(),$f={"{":"}","(":")","[":"]"},qg=function(r){if(r[0]==="!")return!0;for(var t=0,e=-2,u=-2,d=-2,y=-2,v=-2;t<r.length;){if(r[t]==="*"||r[t+1]==="?"&&/[\].+)]/.test(r[t])||u!==-1&&r[t]==="["&&r[t+1]!=="]"&&(u<t&&(u=r.indexOf("]",t)),u>t&&(v===-1||v>u||(v=r.indexOf("\\",t),v===-1||v>u)))||d!==-1&&r[t]==="{"&&r[t+1]!=="}"&&(d=r.indexOf("}",t),d>t&&(v=r.indexOf("\\",t),v===-1||v>d))||y!==-1&&r[t]==="("&&r[t+1]==="?"&&/[:!=]/.test(r[t+2])&&r[t+3]!==")"&&(y=r.indexOf(")",t),y>t&&(v=r.indexOf("\\",t),v===-1||v>y))||e!==-1&&r[t]==="("&&r[t+1]!=="|"&&(e<t&&(e=r.indexOf("|",t)),e!==-1&&r[e+1]!==")"&&(y=r.indexOf(")",e),y>e&&(v=r.indexOf("\\",e),v===-1||v>y))))return!0;if(r[t]==="\\"){var S=r[t+1];t+=2;var A=$f[S];if(A){var I=r.indexOf(A,t);I!==-1&&(t=I+1)}if(r[t]==="!")return!0}else t++}return!1},Wg=function(r){if(r[0]==="!")return!0;for(var t=0;t<r.length;){if(/[*?{}()[\]]/.test(r[t]))return!0;if(r[t]==="\\"){var e=r[t+1];t+=2;var u=$f[e];if(u){var d=r.indexOf(u,t);d!==-1&&(t=d+1)}if(r[t]==="!")return!0}else t++}return!1};Gf.exports=function(t,e){if(typeof t!="string"||t==="")return!1;if(Hg(t))return!0;var u=qg;return e&&e.strict===!1&&(u=Wg),u(t)}});var Yf=V((ak,Vf)=>{"use strict";var $g=Kf(),Gg=require("path").posix.dirname,Kg=require("os").platform()==="win32",ys="/",Vg=/\\/g,Yg=/[\{\[].*[\}\]]$/,Qg=/(^|[^\\])([\{\[]|\([^\)]+$)/,zg=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Vf.exports=function(t,e){var u=Object.assign({flipBackslashes:!0},e);u.flipBackslashes&&Kg&&t.indexOf(ys)<0&&(t=t.replace(Vg,ys)),Yg.test(t)&&(t+=ys),t+="a";do t=Gg(t);while($g(t)||Qg.test(t));return t.replace(zg,"$1")}});var Oi=V(lt=>{"use strict";lt.isInteger=r=>typeof r=="number"?Number.isInteger(r):typeof r=="string"&&r.trim()!==""?Number.isInteger(Number(r)):!1;lt.find=(r,t)=>r.nodes.find(e=>e.type===t);lt.exceedsLimit=(r,t,e=1,u)=>u===!1||!lt.isInteger(r)||!lt.isInteger(t)?!1:(Number(t)-Number(r))/Number(e)>=u;lt.escapeNode=(r,t=0,e)=>{let u=r.nodes[t];!u||(e&&u.type===e||u.type==="open"||u.type==="close")&&u.escaped!==!0&&(u.value="\\"+u.value,u.escaped=!0)};lt.encloseBrace=r=>r.type!=="brace"?!1:r.commas>>0+r.ranges>>0===0?(r.invalid=!0,!0):!1;lt.isInvalidBrace=r=>r.type!=="brace"?!1:r.invalid===!0||r.dollar?!0:r.commas>>0+r.ranges>>0===0||r.open!==!0||r.close!==!0?(r.invalid=!0,!0):!1;lt.isOpenOrClose=r=>r.type==="open"||r.type==="close"?!0:r.open===!0||r.close===!0;lt.reduce=r=>r.reduce((t,e)=>(e.type==="text"&&t.push(e.value),e.type==="range"&&(e.type="text"),t),[]);lt.flatten=(...r)=>{let t=[],e=u=>{for(let d=0;d<u.length;d++){let y=u[d];Array.isArray(y)?e(y,t):y!==void 0&&t.push(y)}return t};return e(r),t}});var Fi=V((ok,zf)=>{"use strict";var Qf=Oi();zf.exports=(r,t={})=>{let e=(u,d={})=>{let y=t.escapeInvalid&&Qf.isInvalidBrace(d),v=u.invalid===!0&&t.escapeInvalid===!0,S="";if(u.value)return(y||v)&&Qf.isOpenOrClose(u)?"\\"+u.value:u.value;if(u.value)return u.value;if(u.nodes)for(let A of u.nodes)S+=e(A);return S};return e(r)}});var Jf=V((uk,Xf)=>{"use strict";Xf.exports=function(r){return typeof r=="number"?r-r===0:typeof r=="string"&&r.trim()!==""?Number.isFinite?Number.isFinite(+r):isFinite(+r):!1}});var o_=V((lk,s_)=>{"use strict";var Zf=Jf(),Kt=(r,t,e)=>{if(Zf(r)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||r===t)return String(r);if(Zf(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let u={relaxZeros:!0,...e};typeof u.strictZeros=="boolean"&&(u.relaxZeros=u.strictZeros===!1);let d=String(u.relaxZeros),y=String(u.shorthand),v=String(u.capture),S=String(u.wrap),A=r+":"+t+"="+d+y+v+S;if(Kt.cache.hasOwnProperty(A))return Kt.cache[A].result;let I=Math.min(r,t),R=Math.max(r,t);if(Math.abs(I-R)===1){let z=r+"|"+t;return u.capture?`(${z})`:u.wrap===!1?z:`(?:${z})`}let L=a_(r)||a_(t),P={min:r,max:t,a:I,b:R},fe=[],K=[];if(L&&(P.isPadded=L,P.maxLen=String(P.max).length),I<0){let z=R<0?Math.abs(R):1;K=e_(z,Math.abs(I),P,u),I=P.a=0}return R>=0&&(fe=e_(I,R,P,u)),P.negatives=K,P.positives=fe,P.result=Xg(K,fe,u),u.capture===!0?P.result=`(${P.result})`:u.wrap!==!1&&fe.length+K.length>1&&(P.result=`(?:${P.result})`),Kt.cache[A]=P,P.result};function Xg(r,t,e){let u=hs(r,t,"-",!1,e)||[],d=hs(t,r,"",!1,e)||[],y=hs(r,t,"-?",!0,e)||[];return u.concat(y).concat(d).join("|")}function Jg(r,t){let e=1,u=1,d=r_(r,e),y=new Set([t]);for(;r<=d&&d<=t;)y.add(d),e+=1,d=r_(r,e);for(d=i_(t+1,u)-1;r<d&&d<=t;)y.add(d),u+=1,d=i_(t+1,u)-1;return y=[...y],y.sort(tb),y}function Zg(r,t,e){if(r===t)return{pattern:r,count:[],digits:0};let u=eb(r,t),d=u.length,y="",v=0;for(let S=0;S<d;S++){let[A,I]=u[S];A===I?y+=A:A!=="0"||I!=="9"?y+=rb(A,I,e):v++}return v&&(y+=e.shorthand===!0?"\\d":"[0-9]"),{pattern:y,count:[v],digits:d}}function e_(r,t,e,u){let d=Jg(r,t),y=[],v=r,S;for(let A=0;A<d.length;A++){let I=d[A],R=Zg(String(v),String(I),u),L="";if(!e.isPadded&&S&&S.pattern===R.pattern){S.count.length>1&&S.count.pop(),S.count.push(R.count[0]),S.string=S.pattern+n_(S.count),v=I+1;continue}e.isPadded&&(L=ib(I,e,u)),R.string=L+R.pattern+n_(R.count),y.push(R),v=I+1,S=R}return y}function hs(r,t,e,u,d){let y=[];for(let v of r){let{string:S}=v;!u&&!t_(t,"string",S)&&y.push(e+S),u&&t_(t,"string",S)&&y.push(e+S)}return y}function eb(r,t){let e=[];for(let u=0;u<r.length;u++)e.push([r[u],t[u]]);return e}function tb(r,t){return r>t?1:t>r?-1:0}function t_(r,t,e){return r.some(u=>u[t]===e)}function r_(r,t){return Number(String(r).slice(0,-t)+"9".repeat(t))}function i_(r,t){return r-r%Math.pow(10,t)}function n_(r){let[t=0,e=""]=r;return e||t>1?`{${t+(e?","+e:"")}}`:""}function rb(r,t,e){return`[${r}${t-r===1?"":"-"}${t}]`}function a_(r){return/^-?(0+)\d/.test(r)}function ib(r,t,e){if(!t.isPadded)return r;let u=Math.abs(t.maxLen-String(r).length),d=e.relaxZeros!==!1;switch(u){case 0:return"";case 1:return d?"0?":"0";case 2:return d?"0{0,2}":"00";default:return d?`0{0,${u}}`:`0{${u}}`}}Kt.cache={};Kt.clearCache=()=>Kt.cache={};s_.exports=Kt});var gs=V((ck,y_)=>{"use strict";var nb=require("util"),c_=o_(),u_=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),ab=r=>t=>r===!0?Number(t):String(t),ms=r=>typeof r=="number"||typeof r=="string"&&r!=="",qr=r=>Number.isInteger(+r),vs=r=>{let t=`${r}`,e=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++e]==="0";);return e>0},sb=(r,t,e)=>typeof r=="string"||typeof t=="string"?!0:e.stringify===!0,ob=(r,t,e)=>{if(t>0){let u=r[0]==="-"?"-":"";u&&(r=r.slice(1)),r=u+r.padStart(u?t-1:t,"0")}return e===!1?String(r):r},l_=(r,t)=>{let e=r[0]==="-"?"-":"";for(e&&(r=r.slice(1),t--);r.length<t;)r="0"+r;return e?"-"+r:r},ub=(r,t)=>{r.negatives.sort((v,S)=>v<S?-1:v>S?1:0),r.positives.sort((v,S)=>v<S?-1:v>S?1:0);let e=t.capture?"":"?:",u="",d="",y;return r.positives.length&&(u=r.positives.join("|")),r.negatives.length&&(d=`-(${e}${r.negatives.join("|")})`),u&&d?y=`${u}|${d}`:y=u||d,t.wrap?`(${e}${y})`:y},f_=(r,t,e,u)=>{if(e)return c_(r,t,{wrap:!1,...u});let d=String.fromCharCode(r);if(r===t)return d;let y=String.fromCharCode(t);return`[${d}-${y}]`},__=(r,t,e)=>{if(Array.isArray(r)){let u=e.wrap===!0,d=e.capture?"":"?:";return u?`(${d}${r.join("|")})`:r.join("|")}return c_(r,t,e)},d_=(...r)=>new RangeError("Invalid range arguments: "+nb.inspect(...r)),p_=(r,t,e)=>{if(e.strictRanges===!0)throw d_([r,t]);return[]},lb=(r,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${r}" to be a number`);return[]},cb=(r,t,e=1,u={})=>{let d=Number(r),y=Number(t);if(!Number.isInteger(d)||!Number.isInteger(y)){if(u.strictRanges===!0)throw d_([r,t]);return[]}d===0&&(d=0),y===0&&(y=0);let v=d>y,S=String(r),A=String(t),I=String(e);e=Math.max(Math.abs(e),1);let R=vs(S)||vs(A)||vs(I),L=R?Math.max(S.length,A.length,I.length):0,P=R===!1&&sb(r,t,u)===!1,fe=u.transform||ab(P);if(u.toRegex&&e===1)return f_(l_(r,L),l_(t,L),!0,u);let K={negatives:[],positives:[]},z=be=>K[be<0?"negatives":"positives"].push(Math.abs(be)),ee=[],oe=0;for(;v?d>=y:d<=y;)u.toRegex===!0&&e>1?z(d):ee.push(ob(fe(d,oe),L,P)),d=v?d-e:d+e,oe++;return u.toRegex===!0?e>1?ub(K,u):__(ee,null,{wrap:!1,...u}):ee},fb=(r,t,e=1,u={})=>{if(!qr(r)&&r.length>1||!qr(t)&&t.length>1)return p_(r,t,u);let d=u.transform||(P=>String.fromCharCode(P)),y=`${r}`.charCodeAt(0),v=`${t}`.charCodeAt(0),S=y>v,A=Math.min(y,v),I=Math.max(y,v);if(u.toRegex&&e===1)return f_(A,I,!1,u);let R=[],L=0;for(;S?y>=v:y<=v;)R.push(d(y,L)),y=S?y-e:y+e,L++;return u.toRegex===!0?__(R,null,{wrap:!1,options:u}):R},Ni=(r,t,e,u={})=>{if(t==null&&ms(r))return[r];if(!ms(r)||!ms(t))return p_(r,t,u);if(typeof e=="function")return Ni(r,t,1,{transform:e});if(u_(e))return Ni(r,t,0,e);let d={...u};return d.capture===!0&&(d.wrap=!0),e=e||d.step||1,qr(e)?qr(r)&&qr(t)?cb(r,t,e,d):fb(r,t,Math.max(Math.abs(e),1),d):e!=null&&!u_(e)?lb(e,d):Ni(r,t,1,e)};y_.exports=Ni});var v_=V((fk,m_)=>{"use strict";var _b=gs(),h_=Oi(),db=(r,t={})=>{let e=(u,d={})=>{let y=h_.isInvalidBrace(d),v=u.invalid===!0&&t.escapeInvalid===!0,S=y===!0||v===!0,A=t.escapeInvalid===!0?"\\":"",I="";if(u.isOpen===!0||u.isClose===!0)return A+u.value;if(u.type==="open")return S?A+u.value:"(";if(u.type==="close")return S?A+u.value:")";if(u.type==="comma")return u.prev.type==="comma"?"":S?u.value:"|";if(u.value)return u.value;if(u.nodes&&u.ranges>0){let R=h_.reduce(u.nodes),L=_b(...R,{...t,wrap:!1,toRegex:!0});if(L.length!==0)return R.length>1&&L.length>1?`(${L})`:L}if(u.nodes)for(let R of u.nodes)I+=e(R,u);return I};return e(r)};m_.exports=db});var j_=V((_k,b_)=>{"use strict";var pb=gs(),g_=Fi(),dr=Oi(),Vt=(r="",t="",e=!1)=>{let u=[];if(r=[].concat(r),t=[].concat(t),!t.length)return r;if(!r.length)return e?dr.flatten(t).map(d=>`{${d}}`):t;for(let d of r)if(Array.isArray(d))for(let y of d)u.push(Vt(y,t,e));else for(let y of t)e===!0&&typeof y=="string"&&(y=`{${y}}`),u.push(Array.isArray(y)?Vt(d,y,e):d+y);return dr.flatten(u)},yb=(r,t={})=>{let e=t.rangeLimit===void 0?1e3:t.rangeLimit,u=(d,y={})=>{d.queue=[];let v=y,S=y.queue;for(;v.type!=="brace"&&v.type!=="root"&&v.parent;)v=v.parent,S=v.queue;if(d.invalid||d.dollar){S.push(Vt(S.pop(),g_(d,t)));return}if(d.type==="brace"&&d.invalid!==!0&&d.nodes.length===2){S.push(Vt(S.pop(),["{}"]));return}if(d.nodes&&d.ranges>0){let L=dr.reduce(d.nodes);if(dr.exceedsLimit(...L,t.step,e))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let P=pb(...L,t);P.length===0&&(P=g_(d,t)),S.push(Vt(S.pop(),P)),d.nodes=[];return}let A=dr.encloseBrace(d),I=d.queue,R=d;for(;R.type!=="brace"&&R.type!=="root"&&R.parent;)R=R.parent,I=R.queue;for(let L=0;L<d.nodes.length;L++){let P=d.nodes[L];if(P.type==="comma"&&d.type==="brace"){L===1&&I.push(""),I.push("");continue}if(P.type==="close"){S.push(Vt(S.pop(),I,A));continue}if(P.value&&P.type!=="open"){I.push(Vt(I.pop(),P.value));continue}P.nodes&&u(P,d)}return I};return dr.flatten(u(r))};b_.exports=yb});var k_=V((dk,w_)=>{"use strict";w_.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
2
- `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var R_=V((pk,A_)=>{"use strict";var hb=Fi(),{MAX_LENGTH:C_,CHAR_BACKSLASH:bs,CHAR_BACKTICK:mb,CHAR_COMMA:vb,CHAR_DOT:gb,CHAR_LEFT_PARENTHESES:bb,CHAR_RIGHT_PARENTHESES:jb,CHAR_LEFT_CURLY_BRACE:wb,CHAR_RIGHT_CURLY_BRACE:kb,CHAR_LEFT_SQUARE_BRACKET:S_,CHAR_RIGHT_SQUARE_BRACKET:E_,CHAR_DOUBLE_QUOTE:Cb,CHAR_SINGLE_QUOTE:Sb,CHAR_NO_BREAK_SPACE:Eb,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Ab}=k_(),Rb=(r,t={})=>{if(typeof r!="string")throw new TypeError("Expected a string");let e=t||{},u=typeof e.maxLength=="number"?Math.min(C_,e.maxLength):C_;if(r.length>u)throw new SyntaxError(`Input length (${r.length}), exceeds max characters (${u})`);let d={type:"root",input:r,nodes:[]},y=[d],v=d,S=d,A=0,I=r.length,R=0,L=0,P,fe={},K=()=>r[R++],z=ee=>{if(ee.type==="text"&&S.type==="dot"&&(S.type="text"),S&&S.type==="text"&&ee.type==="text"){S.value+=ee.value;return}return v.nodes.push(ee),ee.parent=v,ee.prev=S,S=ee,ee};for(z({type:"bos"});R<I;)if(v=y[y.length-1],P=K(),!(P===Ab||P===Eb)){if(P===bs){z({type:"text",value:(t.keepEscaping?P:"")+K()});continue}if(P===E_){z({type:"text",value:"\\"+P});continue}if(P===S_){A++;let ee=!0,oe;for(;R<I&&(oe=K());){if(P+=oe,oe===S_){A++;continue}if(oe===bs){P+=K();continue}if(oe===E_&&(A--,A===0))break}z({type:"text",value:P});continue}if(P===bb){v=z({type:"paren",nodes:[]}),y.push(v),z({type:"text",value:P});continue}if(P===jb){if(v.type!=="paren"){z({type:"text",value:P});continue}v=y.pop(),z({type:"text",value:P}),v=y[y.length-1];continue}if(P===Cb||P===Sb||P===mb){let ee=P,oe;for(t.keepQuotes!==!0&&(P="");R<I&&(oe=K());){if(oe===bs){P+=oe+K();continue}if(oe===ee){t.keepQuotes===!0&&(P+=oe);break}P+=oe}z({type:"text",value:P});continue}if(P===wb){L++;let ee=S.value&&S.value.slice(-1)==="$"||v.dollar===!0;v=z({type:"brace",open:!0,close:!1,dollar:ee,depth:L,commas:0,ranges:0,nodes:[]}),y.push(v),z({type:"open",value:P});continue}if(P===kb){if(v.type!=="brace"){z({type:"text",value:P});continue}let ee="close";v=y.pop(),v.close=!0,z({type:ee,value:P}),L--,v=y[y.length-1];continue}if(P===vb&&L>0){if(v.ranges>0){v.ranges=0;let ee=v.nodes.shift();v.nodes=[ee,{type:"text",value:hb(v)}]}z({type:"comma",value:P}),v.commas++;continue}if(P===gb&&L>0&&v.commas===0){let ee=v.nodes;if(L===0||ee.length===0){z({type:"text",value:P});continue}if(S.type==="dot"){if(v.range=[],S.value+=P,S.type="range",v.nodes.length!==3&&v.nodes.length!==5){v.invalid=!0,v.ranges=0,S.type="text";continue}v.ranges++,v.args=[];continue}if(S.type==="range"){ee.pop();let oe=ee[ee.length-1];oe.value+=S.value+P,S=oe,v.ranges--;continue}z({type:"dot",value:P});continue}z({type:"text",value:P})}do if(v=y.pop(),v.type!=="root"){v.nodes.forEach(be=>{be.nodes||(be.type==="open"&&(be.isOpen=!0),be.type==="close"&&(be.isClose=!0),be.nodes||(be.type="text"),be.invalid=!0)});let ee=y[y.length-1],oe=ee.nodes.indexOf(v);ee.nodes.splice(oe,1,...v.nodes)}while(y.length>0);return z({type:"eos"}),d};A_.exports=Rb});var P_=V((yk,D_)=>{"use strict";var T_=Fi(),Tb=v_(),Db=j_(),Pb=R_(),st=(r,t={})=>{let e=[];if(Array.isArray(r))for(let u of r){let d=st.create(u,t);Array.isArray(d)?e.push(...d):e.push(d)}else e=[].concat(st.create(r,t));return t&&t.expand===!0&&t.nodupes===!0&&(e=[...new Set(e)]),e};st.parse=(r,t={})=>Pb(r,t);st.stringify=(r,t={})=>T_(typeof r=="string"?st.parse(r,t):r,t);st.compile=(r,t={})=>(typeof r=="string"&&(r=st.parse(r,t)),Tb(r,t));st.expand=(r,t={})=>{typeof r=="string"&&(r=st.parse(r,t));let e=Db(r,t);return t.noempty===!0&&(e=e.filter(Boolean)),t.nodupes===!0&&(e=[...new Set(e)]),e};st.create=(r,t={})=>r===""||r.length<3?[r]:t.expand!==!0?st.compile(r,t):st.expand(r,t);D_.exports=st});var Wr=V((hk,M_)=>{"use strict";var xb=require("path"),ht="\\\\/",x_=`[^${ht}]`,Ct="\\.",Ob="\\+",Fb="\\?",Mi="\\/",Nb="(?=.)",O_="[^/]",js=`(?:${Mi}|$)`,F_=`(?:^|${Mi})`,ws=`${Ct}{1,2}${js}`,Mb=`(?!${Ct})`,Ib=`(?!${F_}${ws})`,Bb=`(?!${Ct}{0,1}${js})`,Lb=`(?!${ws})`,Ub=`[^.${Mi}]`,Hb=`${O_}*?`,N_={DOT_LITERAL:Ct,PLUS_LITERAL:Ob,QMARK_LITERAL:Fb,SLASH_LITERAL:Mi,ONE_CHAR:Nb,QMARK:O_,END_ANCHOR:js,DOTS_SLASH:ws,NO_DOT:Mb,NO_DOTS:Ib,NO_DOT_SLASH:Bb,NO_DOTS_SLASH:Lb,QMARK_NO_DOT:Ub,STAR:Hb,START_ANCHOR:F_},qb={...N_,SLASH_LITERAL:`[${ht}]`,QMARK:x_,STAR:`${x_}*?`,DOTS_SLASH:`${Ct}{1,2}(?:[${ht}]|$)`,NO_DOT:`(?!${Ct})`,NO_DOTS:`(?!(?:^|[${ht}])${Ct}{1,2}(?:[${ht}]|$))`,NO_DOT_SLASH:`(?!${Ct}{0,1}(?:[${ht}]|$))`,NO_DOTS_SLASH:`(?!${Ct}{1,2}(?:[${ht}]|$))`,QMARK_NO_DOT:`[^.${ht}]`,START_ANCHOR:`(?:^|[${ht}])`,END_ANCHOR:`(?:[${ht}]|$)`},Wb={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};M_.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Wb,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:xb.sep,extglobChars(r){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${r.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(r){return r===!0?qb:N_}}});var $r=V(nt=>{"use strict";var $b=require("path"),Gb=process.platform==="win32",{REGEX_BACKSLASH:Kb,REGEX_REMOVE_BACKSLASH:Vb,REGEX_SPECIAL_CHARS:Yb,REGEX_SPECIAL_CHARS_GLOBAL:Qb}=Wr();nt.isObject=r=>r!==null&&typeof r=="object"&&!Array.isArray(r);nt.hasRegexChars=r=>Yb.test(r);nt.isRegexChar=r=>r.length===1&&nt.hasRegexChars(r);nt.escapeRegex=r=>r.replace(Qb,"\\$1");nt.toPosixSlashes=r=>r.replace(Kb,"/");nt.removeBackslashes=r=>r.replace(Vb,t=>t==="\\"?"":t);nt.supportsLookbehinds=()=>{let r=process.version.slice(1).split(".").map(Number);return r.length===3&&r[0]>=9||r[0]===8&&r[1]>=10};nt.isWindows=r=>r&&typeof r.windows=="boolean"?r.windows:Gb===!0||$b.sep==="\\";nt.escapeLast=(r,t,e)=>{let u=r.lastIndexOf(t,e);return u===-1?r:r[u-1]==="\\"?nt.escapeLast(r,t,u-1):`${r.slice(0,u)}\\${r.slice(u)}`};nt.removePrefix=(r,t={})=>{let e=r;return e.startsWith("./")&&(e=e.slice(2),t.prefix="./"),e};nt.wrapOutput=(r,t={},e={})=>{let u=e.contains?"":"^",d=e.contains?"":"$",y=`${u}(?:${r})${d}`;return t.negated===!0&&(y=`(?:^(?!${y}).*$)`),y}});var $_=V((vk,W_)=>{"use strict";var I_=$r(),{CHAR_ASTERISK:ks,CHAR_AT:zb,CHAR_BACKWARD_SLASH:Gr,CHAR_COMMA:Xb,CHAR_DOT:Cs,CHAR_EXCLAMATION_MARK:Ss,CHAR_FORWARD_SLASH:q_,CHAR_LEFT_CURLY_BRACE:Es,CHAR_LEFT_PARENTHESES:As,CHAR_LEFT_SQUARE_BRACKET:Jb,CHAR_PLUS:Zb,CHAR_QUESTION_MARK:B_,CHAR_RIGHT_CURLY_BRACE:ej,CHAR_RIGHT_PARENTHESES:L_,CHAR_RIGHT_SQUARE_BRACKET:tj}=Wr(),U_=r=>r===q_||r===Gr,H_=r=>{r.isPrefix!==!0&&(r.depth=r.isGlobstar?1/0:1)},rj=(r,t)=>{let e=t||{},u=r.length-1,d=e.parts===!0||e.scanToEnd===!0,y=[],v=[],S=[],A=r,I=-1,R=0,L=0,P=!1,fe=!1,K=!1,z=!1,ee=!1,oe=!1,be=!1,me=!1,Ae=!1,ie=!1,ke=0,J,te,$={value:"",depth:0,isGlob:!1},pe=()=>I>=u,F=()=>A.charCodeAt(I+1),ue=()=>(J=te,A.charCodeAt(++I));for(;I<u;){te=ue();let Pe;if(te===Gr){be=$.backslashes=!0,te=ue(),te===Es&&(oe=!0);continue}if(oe===!0||te===Es){for(ke++;pe()!==!0&&(te=ue());){if(te===Gr){be=$.backslashes=!0,ue();continue}if(te===Es){ke++;continue}if(oe!==!0&&te===Cs&&(te=ue())===Cs){if(P=$.isBrace=!0,K=$.isGlob=!0,ie=!0,d===!0)continue;break}if(oe!==!0&&te===Xb){if(P=$.isBrace=!0,K=$.isGlob=!0,ie=!0,d===!0)continue;break}if(te===ej&&(ke--,ke===0)){oe=!1,P=$.isBrace=!0,ie=!0;break}}if(d===!0)continue;break}if(te===q_){if(y.push(I),v.push($),$={value:"",depth:0,isGlob:!1},ie===!0)continue;if(J===Cs&&I===R+1){R+=2;continue}L=I+1;continue}if(e.noext!==!0&&(te===Zb||te===zb||te===ks||te===B_||te===Ss)===!0&&F()===As){if(K=$.isGlob=!0,z=$.isExtglob=!0,ie=!0,te===Ss&&I===R&&(Ae=!0),d===!0){for(;pe()!==!0&&(te=ue());){if(te===Gr){be=$.backslashes=!0,te=ue();continue}if(te===L_){K=$.isGlob=!0,ie=!0;break}}continue}break}if(te===ks){if(J===ks&&(ee=$.isGlobstar=!0),K=$.isGlob=!0,ie=!0,d===!0)continue;break}if(te===B_){if(K=$.isGlob=!0,ie=!0,d===!0)continue;break}if(te===Jb){for(;pe()!==!0&&(Pe=ue());){if(Pe===Gr){be=$.backslashes=!0,ue();continue}if(Pe===tj){fe=$.isBracket=!0,K=$.isGlob=!0,ie=!0;break}}if(d===!0)continue;break}if(e.nonegate!==!0&&te===Ss&&I===R){me=$.negated=!0,R++;continue}if(e.noparen!==!0&&te===As){if(K=$.isGlob=!0,d===!0){for(;pe()!==!0&&(te=ue());){if(te===As){be=$.backslashes=!0,te=ue();continue}if(te===L_){ie=!0;break}}continue}break}if(K===!0){if(ie=!0,d===!0)continue;break}}e.noext===!0&&(z=!1,K=!1);let ae=A,Ce="",D="";R>0&&(Ce=A.slice(0,R),A=A.slice(R),L-=R),ae&&K===!0&&L>0?(ae=A.slice(0,L),D=A.slice(L)):K===!0?(ae="",D=A):ae=A,ae&&ae!==""&&ae!=="/"&&ae!==A&&U_(ae.charCodeAt(ae.length-1))&&(ae=ae.slice(0,-1)),e.unescape===!0&&(D&&(D=I_.removeBackslashes(D)),ae&&be===!0&&(ae=I_.removeBackslashes(ae)));let x={prefix:Ce,input:r,start:R,base:ae,glob:D,isBrace:P,isBracket:fe,isGlob:K,isExtglob:z,isGlobstar:ee,negated:me,negatedExtglob:Ae};if(e.tokens===!0&&(x.maxDepth=0,U_(te)||v.push($),x.tokens=v),e.parts===!0||e.tokens===!0){let Pe;for(let le=0;le<y.length;le++){let Ye=Pe?Pe+1:R,We=y[le],xe=r.slice(Ye,We);e.tokens&&(le===0&&R!==0?(v[le].isPrefix=!0,v[le].value=Ce):v[le].value=xe,H_(v[le]),x.maxDepth+=v[le].depth),(le!==0||xe!=="")&&S.push(xe),Pe=We}if(Pe&&Pe+1<r.length){let le=r.slice(Pe+1);S.push(le),e.tokens&&(v[v.length-1].value=le,H_(v[v.length-1]),x.maxDepth+=v[v.length-1].depth)}x.slashes=y,x.parts=S}return x};W_.exports=rj});var Y_=V((gk,V_)=>{"use strict";var Ii=Wr(),ot=$r(),{MAX_LENGTH:Bi,POSIX_REGEX_SOURCE:ij,REGEX_NON_SPECIAL_CHARS:nj,REGEX_SPECIAL_CHARS_BACKREF:aj,REPLACEMENTS:G_}=Ii,sj=(r,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...r,t);r.sort();let e=`[${r.join("-")}]`;try{new RegExp(e)}catch{return r.map(d=>ot.escapeRegex(d)).join("..")}return e},pr=(r,t)=>`Missing ${r}: "${t}" - use "\\\\${t}" to match literal characters`,K_=(r,t)=>{if(typeof r!="string")throw new TypeError("Expected a string");r=G_[r]||r;let e={...t},u=typeof e.maxLength=="number"?Math.min(Bi,e.maxLength):Bi,d=r.length;if(d>u)throw new SyntaxError(`Input length: ${d}, exceeds maximum allowed length: ${u}`);let y={type:"bos",value:"",output:e.prepend||""},v=[y],S=e.capture?"":"?:",A=ot.isWindows(t),I=Ii.globChars(A),R=Ii.extglobChars(I),{DOT_LITERAL:L,PLUS_LITERAL:P,SLASH_LITERAL:fe,ONE_CHAR:K,DOTS_SLASH:z,NO_DOT:ee,NO_DOT_SLASH:oe,NO_DOTS_SLASH:be,QMARK:me,QMARK_NO_DOT:Ae,STAR:ie,START_ANCHOR:ke}=I,J=O=>`(${S}(?:(?!${ke}${O.dot?z:L}).)*?)`,te=e.dot?"":ee,$=e.dot?me:Ae,pe=e.bash===!0?J(e):ie;e.capture&&(pe=`(${pe})`),typeof e.noext=="boolean"&&(e.noextglob=e.noext);let F={input:r,index:-1,start:0,dot:e.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:v};r=ot.removePrefix(r,F),d=r.length;let ue=[],ae=[],Ce=[],D=y,x,Pe=()=>F.index===d-1,le=F.peek=(O=1)=>r[F.index+O],Ye=F.advance=()=>r[++F.index]||"",We=()=>r.slice(F.index+1),xe=(O="",ve=0)=>{F.consumed+=O,F.index+=ve},_t=O=>{F.output+=O.output!=null?O.output:O.value,xe(O.value)},It=()=>{let O=1;for(;le()==="!"&&(le(2)!=="("||le(3)==="?");)Ye(),F.start++,O++;return O%2===0?!1:(F.negated=!0,F.start++,!0)},bt=O=>{F[O]++,Ce.push(O)},Qe=O=>{F[O]--,Ce.pop()},se=O=>{if(D.type==="globstar"){let ve=F.braces>0&&(O.type==="comma"||O.type==="brace"),W=O.extglob===!0||ue.length&&(O.type==="pipe"||O.type==="paren");O.type!=="slash"&&O.type!=="paren"&&!ve&&!W&&(F.output=F.output.slice(0,-D.output.length),D.type="star",D.value="*",D.output=pe,F.output+=D.output)}if(ue.length&&O.type!=="paren"&&(ue[ue.length-1].inner+=O.value),(O.value||O.output)&&_t(O),D&&D.type==="text"&&O.type==="text"){D.value+=O.value,D.output=(D.output||"")+O.value;return}O.prev=D,v.push(O),D=O},at=(O,ve)=>{let W={...R[ve],conditions:1,inner:""};W.prev=D,W.parens=F.parens,W.output=F.output;let N=(e.capture?"(":"")+W.open;bt("parens"),se({type:O,value:ve,output:F.output?"":K}),se({type:"paren",extglob:!0,value:Ye(),output:N}),ue.push(W)},Je=O=>{let ve=O.close+(e.capture?")":""),W;if(O.type==="negate"){let N=pe;O.inner&&O.inner.length>1&&O.inner.includes("/")&&(N=J(e)),(N!==pe||Pe()||/^\)+$/.test(We()))&&(ve=O.close=`)$))${N}`),O.inner.includes("*")&&(W=We())&&/^\.[^\\/.]+$/.test(W)&&(ve=O.close=`)${W})${N})`),O.prev.type==="bos"&&(F.negatedExtglob=!0)}se({type:"paren",extglob:!0,value:x,output:ve}),Qe("parens")};if(e.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(r)){let O=!1,ve=r.replace(aj,(W,N,Re,He,Fe,jt)=>He==="\\"?(O=!0,W):He==="?"?N?N+He+(Fe?me.repeat(Fe.length):""):jt===0?$+(Fe?me.repeat(Fe.length):""):me.repeat(Re.length):He==="."?L.repeat(Re.length):He==="*"?N?N+He+(Fe?pe:""):pe:N?W:`\\${W}`);return O===!0&&(e.unescape===!0?ve=ve.replace(/\\/g,""):ve=ve.replace(/\\+/g,W=>W.length%2===0?"\\\\":W?"\\":"")),ve===r&&e.contains===!0?(F.output=r,F):(F.output=ot.wrapOutput(ve,F,t),F)}for(;!Pe();){if(x=Ye(),x==="\0")continue;if(x==="\\"){let W=le();if(W==="/"&&e.bash!==!0||W==="."||W===";")continue;if(!W){x+="\\",se({type:"text",value:x});continue}let N=/^\\+/.exec(We()),Re=0;if(N&&N[0].length>2&&(Re=N[0].length,F.index+=Re,Re%2!==0&&(x+="\\")),e.unescape===!0?x=Ye():x+=Ye(),F.brackets===0){se({type:"text",value:x});continue}}if(F.brackets>0&&(x!=="]"||D.value==="["||D.value==="[^")){if(e.posix!==!1&&x===":"){let W=D.value.slice(1);if(W.includes("[")&&(D.posix=!0,W.includes(":"))){let N=D.value.lastIndexOf("["),Re=D.value.slice(0,N),He=D.value.slice(N+2),Fe=ij[He];if(Fe){D.value=Re+Fe,F.backtrack=!0,Ye(),!y.output&&v.indexOf(D)===1&&(y.output=K);continue}}}(x==="["&&le()!==":"||x==="-"&&le()==="]")&&(x=`\\${x}`),x==="]"&&(D.value==="["||D.value==="[^")&&(x=`\\${x}`),e.posix===!0&&x==="!"&&D.value==="["&&(x="^"),D.value+=x,_t({value:x});continue}if(F.quotes===1&&x!=='"'){x=ot.escapeRegex(x),D.value+=x,_t({value:x});continue}if(x==='"'){F.quotes=F.quotes===1?0:1,e.keepQuotes===!0&&se({type:"text",value:x});continue}if(x==="("){bt("parens"),se({type:"paren",value:x});continue}if(x===")"){if(F.parens===0&&e.strictBrackets===!0)throw new SyntaxError(pr("opening","("));let W=ue[ue.length-1];if(W&&F.parens===W.parens+1){Je(ue.pop());continue}se({type:"paren",value:x,output:F.parens?")":"\\)"}),Qe("parens");continue}if(x==="["){if(e.nobracket===!0||!We().includes("]")){if(e.nobracket!==!0&&e.strictBrackets===!0)throw new SyntaxError(pr("closing","]"));x=`\\${x}`}else bt("brackets");se({type:"bracket",value:x});continue}if(x==="]"){if(e.nobracket===!0||D&&D.type==="bracket"&&D.value.length===1){se({type:"text",value:x,output:`\\${x}`});continue}if(F.brackets===0){if(e.strictBrackets===!0)throw new SyntaxError(pr("opening","["));se({type:"text",value:x,output:`\\${x}`});continue}Qe("brackets");let W=D.value.slice(1);if(D.posix!==!0&&W[0]==="^"&&!W.includes("/")&&(x=`/${x}`),D.value+=x,_t({value:x}),e.literalBrackets===!1||ot.hasRegexChars(W))continue;let N=ot.escapeRegex(D.value);if(F.output=F.output.slice(0,-D.value.length),e.literalBrackets===!0){F.output+=N,D.value=N;continue}D.value=`(${S}${N}|${D.value})`,F.output+=D.value;continue}if(x==="{"&&e.nobrace!==!0){bt("braces");let W={type:"brace",value:x,output:"(",outputIndex:F.output.length,tokensIndex:F.tokens.length};ae.push(W),se(W);continue}if(x==="}"){let W=ae[ae.length-1];if(e.nobrace===!0||!W){se({type:"text",value:x,output:x});continue}let N=")";if(W.dots===!0){let Re=v.slice(),He=[];for(let Fe=Re.length-1;Fe>=0&&(v.pop(),Re[Fe].type!=="brace");Fe--)Re[Fe].type!=="dots"&&He.unshift(Re[Fe].value);N=sj(He,e),F.backtrack=!0}if(W.comma!==!0&&W.dots!==!0){let Re=F.output.slice(0,W.outputIndex),He=F.tokens.slice(W.tokensIndex);W.value=W.output="\\{",x=N="\\}",F.output=Re;for(let Fe of He)F.output+=Fe.output||Fe.value}se({type:"brace",value:x,output:N}),Qe("braces"),ae.pop();continue}if(x==="|"){ue.length>0&&ue[ue.length-1].conditions++,se({type:"text",value:x});continue}if(x===","){let W=x,N=ae[ae.length-1];N&&Ce[Ce.length-1]==="braces"&&(N.comma=!0,W="|"),se({type:"comma",value:x,output:W});continue}if(x==="/"){if(D.type==="dot"&&F.index===F.start+1){F.start=F.index+1,F.consumed="",F.output="",v.pop(),D=y;continue}se({type:"slash",value:x,output:fe});continue}if(x==="."){if(F.braces>0&&D.type==="dot"){D.value==="."&&(D.output=L);let W=ae[ae.length-1];D.type="dots",D.output+=x,D.value+=x,W.dots=!0;continue}if(F.braces+F.parens===0&&D.type!=="bos"&&D.type!=="slash"){se({type:"text",value:x,output:L});continue}se({type:"dot",value:x,output:L});continue}if(x==="?"){if(!(D&&D.value==="(")&&e.noextglob!==!0&&le()==="("&&le(2)!=="?"){at("qmark",x);continue}if(D&&D.type==="paren"){let N=le(),Re=x;if(N==="<"&&!ot.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(D.value==="("&&!/[!=<:]/.test(N)||N==="<"&&!/<([!=]|\w+>)/.test(We()))&&(Re=`\\${x}`),se({type:"text",value:x,output:Re});continue}if(e.dot!==!0&&(D.type==="slash"||D.type==="bos")){se({type:"qmark",value:x,output:Ae});continue}se({type:"qmark",value:x,output:me});continue}if(x==="!"){if(e.noextglob!==!0&&le()==="("&&(le(2)!=="?"||!/[!=<:]/.test(le(3)))){at("negate",x);continue}if(e.nonegate!==!0&&F.index===0){It();continue}}if(x==="+"){if(e.noextglob!==!0&&le()==="("&&le(2)!=="?"){at("plus",x);continue}if(D&&D.value==="("||e.regex===!1){se({type:"plus",value:x,output:P});continue}if(D&&(D.type==="bracket"||D.type==="paren"||D.type==="brace")||F.parens>0){se({type:"plus",value:x});continue}se({type:"plus",value:P});continue}if(x==="@"){if(e.noextglob!==!0&&le()==="("&&le(2)!=="?"){se({type:"at",extglob:!0,value:x,output:""});continue}se({type:"text",value:x});continue}if(x!=="*"){(x==="$"||x==="^")&&(x=`\\${x}`);let W=nj.exec(We());W&&(x+=W[0],F.index+=W[0].length),se({type:"text",value:x});continue}if(D&&(D.type==="globstar"||D.star===!0)){D.type="star",D.star=!0,D.value+=x,D.output=pe,F.backtrack=!0,F.globstar=!0,xe(x);continue}let O=We();if(e.noextglob!==!0&&/^\([^?]/.test(O)){at("star",x);continue}if(D.type==="star"){if(e.noglobstar===!0){xe(x);continue}let W=D.prev,N=W.prev,Re=W.type==="slash"||W.type==="bos",He=N&&(N.type==="star"||N.type==="globstar");if(e.bash===!0&&(!Re||O[0]&&O[0]!=="/")){se({type:"star",value:x,output:""});continue}let Fe=F.braces>0&&(W.type==="comma"||W.type==="brace"),jt=ue.length&&(W.type==="pipe"||W.type==="paren");if(!Re&&W.type!=="paren"&&!Fe&&!jt){se({type:"star",value:x,output:""});continue}for(;O.slice(0,3)==="/**";){let At=r[F.index+4];if(At&&At!=="/")break;O=O.slice(3),xe("/**",3)}if(W.type==="bos"&&Pe()){D.type="globstar",D.value+=x,D.output=J(e),F.output=D.output,F.globstar=!0,xe(x);continue}if(W.type==="slash"&&W.prev.type!=="bos"&&!He&&Pe()){F.output=F.output.slice(0,-(W.output+D.output).length),W.output=`(?:${W.output}`,D.type="globstar",D.output=J(e)+(e.strictSlashes?")":"|$)"),D.value+=x,F.globstar=!0,F.output+=W.output+D.output,xe(x);continue}if(W.type==="slash"&&W.prev.type!=="bos"&&O[0]==="/"){let At=O[1]!==void 0?"|$":"";F.output=F.output.slice(0,-(W.output+D.output).length),W.output=`(?:${W.output}`,D.type="globstar",D.output=`${J(e)}${fe}|${fe}${At})`,D.value+=x,F.output+=W.output+D.output,F.globstar=!0,xe(x+Ye()),se({type:"slash",value:"/",output:""});continue}if(W.type==="bos"&&O[0]==="/"){D.type="globstar",D.value+=x,D.output=`(?:^|${fe}|${J(e)}${fe})`,F.output=D.output,F.globstar=!0,xe(x+Ye()),se({type:"slash",value:"/",output:""});continue}F.output=F.output.slice(0,-D.output.length),D.type="globstar",D.output=J(e),D.value+=x,F.output+=D.output,F.globstar=!0,xe(x);continue}let ve={type:"star",value:x,output:pe};if(e.bash===!0){ve.output=".*?",(D.type==="bos"||D.type==="slash")&&(ve.output=te+ve.output),se(ve);continue}if(D&&(D.type==="bracket"||D.type==="paren")&&e.regex===!0){ve.output=x,se(ve);continue}(F.index===F.start||D.type==="slash"||D.type==="dot")&&(D.type==="dot"?(F.output+=oe,D.output+=oe):e.dot===!0?(F.output+=be,D.output+=be):(F.output+=te,D.output+=te),le()!=="*"&&(F.output+=K,D.output+=K)),se(ve)}for(;F.brackets>0;){if(e.strictBrackets===!0)throw new SyntaxError(pr("closing","]"));F.output=ot.escapeLast(F.output,"["),Qe("brackets")}for(;F.parens>0;){if(e.strictBrackets===!0)throw new SyntaxError(pr("closing",")"));F.output=ot.escapeLast(F.output,"("),Qe("parens")}for(;F.braces>0;){if(e.strictBrackets===!0)throw new SyntaxError(pr("closing","}"));F.output=ot.escapeLast(F.output,"{"),Qe("braces")}if(e.strictSlashes!==!0&&(D.type==="star"||D.type==="bracket")&&se({type:"maybe_slash",value:"",output:`${fe}?`}),F.backtrack===!0){F.output="";for(let O of F.tokens)F.output+=O.output!=null?O.output:O.value,O.suffix&&(F.output+=O.suffix)}return F};K_.fastpaths=(r,t)=>{let e={...t},u=typeof e.maxLength=="number"?Math.min(Bi,e.maxLength):Bi,d=r.length;if(d>u)throw new SyntaxError(`Input length: ${d}, exceeds maximum allowed length: ${u}`);r=G_[r]||r;let y=ot.isWindows(t),{DOT_LITERAL:v,SLASH_LITERAL:S,ONE_CHAR:A,DOTS_SLASH:I,NO_DOT:R,NO_DOTS:L,NO_DOTS_SLASH:P,STAR:fe,START_ANCHOR:K}=Ii.globChars(y),z=e.dot?L:R,ee=e.dot?P:R,oe=e.capture?"":"?:",be={negated:!1,prefix:""},me=e.bash===!0?".*?":fe;e.capture&&(me=`(${me})`);let Ae=te=>te.noglobstar===!0?me:`(${oe}(?:(?!${K}${te.dot?I:v}).)*?)`,ie=te=>{switch(te){case"*":return`${z}${A}${me}`;case".*":return`${v}${A}${me}`;case"*.*":return`${z}${me}${v}${A}${me}`;case"*/*":return`${z}${me}${S}${A}${ee}${me}`;case"**":return z+Ae(e);case"**/*":return`(?:${z}${Ae(e)}${S})?${ee}${A}${me}`;case"**/*.*":return`(?:${z}${Ae(e)}${S})?${ee}${me}${v}${A}${me}`;case"**/.*":return`(?:${z}${Ae(e)}${S})?${v}${A}${me}`;default:{let $=/^(.*?)\.(\w+)$/.exec(te);if(!$)return;let pe=ie($[1]);return pe?pe+v+$[2]:void 0}}},ke=ot.removePrefix(r,be),J=ie(ke);return J&&e.strictSlashes!==!0&&(J+=`${S}?`),J};V_.exports=K_});var z_=V((bk,Q_)=>{"use strict";var oj=require("path"),uj=$_(),Rs=Y_(),Ts=$r(),lj=Wr(),cj=r=>r&&typeof r=="object"&&!Array.isArray(r),Le=(r,t,e=!1)=>{if(Array.isArray(r)){let R=r.map(P=>Le(P,t,e));return P=>{for(let fe of R){let K=fe(P);if(K)return K}return!1}}let u=cj(r)&&r.tokens&&r.input;if(r===""||typeof r!="string"&&!u)throw new TypeError("Expected pattern to be a non-empty string");let d=t||{},y=Ts.isWindows(t),v=u?Le.compileRe(r,t):Le.makeRe(r,t,!1,!0),S=v.state;delete v.state;let A=()=>!1;if(d.ignore){let R={...t,ignore:null,onMatch:null,onResult:null};A=Le(d.ignore,R,e)}let I=(R,L=!1)=>{let{isMatch:P,match:fe,output:K}=Le.test(R,v,t,{glob:r,posix:y}),z={glob:r,state:S,regex:v,posix:y,input:R,output:K,match:fe,isMatch:P};return typeof d.onResult=="function"&&d.onResult(z),P===!1?(z.isMatch=!1,L?z:!1):A(R)?(typeof d.onIgnore=="function"&&d.onIgnore(z),z.isMatch=!1,L?z:!1):(typeof d.onMatch=="function"&&d.onMatch(z),L?z:!0)};return e&&(I.state=S),I};Le.test=(r,t,e,{glob:u,posix:d}={})=>{if(typeof r!="string")throw new TypeError("Expected input to be a string");if(r==="")return{isMatch:!1,output:""};let y=e||{},v=y.format||(d?Ts.toPosixSlashes:null),S=r===u,A=S&&v?v(r):r;return S===!1&&(A=v?v(r):r,S=A===u),(S===!1||y.capture===!0)&&(y.matchBase===!0||y.basename===!0?S=Le.matchBase(r,t,e,d):S=t.exec(A)),{isMatch:Boolean(S),match:S,output:A}};Le.matchBase=(r,t,e,u=Ts.isWindows(e))=>(t instanceof RegExp?t:Le.makeRe(t,e)).test(oj.basename(r));Le.isMatch=(r,t,e)=>Le(t,e)(r);Le.parse=(r,t)=>Array.isArray(r)?r.map(e=>Le.parse(e,t)):Rs(r,{...t,fastpaths:!1});Le.scan=(r,t)=>uj(r,t);Le.compileRe=(r,t,e=!1,u=!1)=>{if(e===!0)return r.output;let d=t||{},y=d.contains?"":"^",v=d.contains?"":"$",S=`${y}(?:${r.output})${v}`;r&&r.negated===!0&&(S=`^(?!${S}).*$`);let A=Le.toRegex(S,t);return u===!0&&(A.state=r),A};Le.makeRe=(r,t={},e=!1,u=!1)=>{if(!r||typeof r!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(r[0]==="."||r[0]==="*")&&(d.output=Rs.fastpaths(r,t)),d.output||(d=Rs(r,t)),Le.compileRe(d,t,e,u)};Le.toRegex=(r,t)=>{try{let e=t||{};return new RegExp(r,e.flags||(e.nocase?"i":""))}catch(e){if(t&&t.debug===!0)throw e;return/$^/}};Le.constants=lj;Q_.exports=Le});var J_=V((jk,X_)=>{"use strict";X_.exports=z_()});var id=V((wk,rd)=>{"use strict";var ed=require("util"),td=P_(),mt=J_(),Ds=$r(),Z_=r=>r===""||r==="./",Ne=(r,t,e)=>{t=[].concat(t),r=[].concat(r);let u=new Set,d=new Set,y=new Set,v=0,S=R=>{y.add(R.output),e&&e.onResult&&e.onResult(R)};for(let R=0;R<t.length;R++){let L=mt(String(t[R]),{...e,onResult:S},!0),P=L.state.negated||L.state.negatedExtglob;P&&v++;for(let fe of r){let K=L(fe,!0);!(P?!K.isMatch:K.isMatch)||(P?u.add(K.output):(u.delete(K.output),d.add(K.output)))}}let I=(v===t.length?[...y]:[...d]).filter(R=>!u.has(R));if(e&&I.length===0){if(e.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(e.nonull===!0||e.nullglob===!0)return e.unescape?t.map(R=>R.replace(/\\/g,"")):t}return I};Ne.match=Ne;Ne.matcher=(r,t)=>mt(r,t);Ne.isMatch=(r,t,e)=>mt(t,e)(r);Ne.any=Ne.isMatch;Ne.not=(r,t,e={})=>{t=[].concat(t).map(String);let u=new Set,d=[],v=Ne(r,t,{...e,onResult:S=>{e.onResult&&e.onResult(S),d.push(S.output)}});for(let S of d)v.includes(S)||u.add(S);return[...u]};Ne.contains=(r,t,e)=>{if(typeof r!="string")throw new TypeError(`Expected a string: "${ed.inspect(r)}"`);if(Array.isArray(t))return t.some(u=>Ne.contains(r,u,e));if(typeof t=="string"){if(Z_(r)||Z_(t))return!1;if(r.includes(t)||r.startsWith("./")&&r.slice(2).includes(t))return!0}return Ne.isMatch(r,t,{...e,contains:!0})};Ne.matchKeys=(r,t,e)=>{if(!Ds.isObject(r))throw new TypeError("Expected the first argument to be an object");let u=Ne(Object.keys(r),t,e),d={};for(let y of u)d[y]=r[y];return d};Ne.some=(r,t,e)=>{let u=[].concat(r);for(let d of[].concat(t)){let y=mt(String(d),e);if(u.some(v=>y(v)))return!0}return!1};Ne.every=(r,t,e)=>{let u=[].concat(r);for(let d of[].concat(t)){let y=mt(String(d),e);if(!u.every(v=>y(v)))return!1}return!0};Ne.all=(r,t,e)=>{if(typeof r!="string")throw new TypeError(`Expected a string: "${ed.inspect(r)}"`);return[].concat(t).every(u=>mt(u,e)(r))};Ne.capture=(r,t,e)=>{let u=Ds.isWindows(e),y=mt.makeRe(String(r),{...e,capture:!0}).exec(u?Ds.toPosixSlashes(t):t);if(y)return y.slice(1).map(v=>v===void 0?"":v)};Ne.makeRe=(...r)=>mt.makeRe(...r);Ne.scan=(...r)=>mt.scan(...r);Ne.parse=(r,t)=>{let e=[];for(let u of[].concat(r||[]))for(let d of td(String(u),t))e.push(mt.parse(d,t));return e};Ne.braces=(r,t)=>{if(typeof r!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(r)?[r]:td(r,t)};Ne.braceExpand=(r,t)=>{if(typeof r!="string")throw new TypeError("Expected a string");return Ne.braces(r,{...t,expand:!0})};rd.exports=Ne});var fd=V(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.matchAny=ce.convertPatternsToRe=ce.makeRe=ce.getPatternParts=ce.expandBraceExpansion=ce.expandPatternsWithBraceExpansion=ce.isAffectDepthOfReadingPattern=ce.endsWithSlashGlobStar=ce.hasGlobStar=ce.getBaseDirectory=ce.isPatternRelatedToParentDirectory=ce.getPatternsOutsideCurrentDirectory=ce.getPatternsInsideCurrentDirectory=ce.getPositivePatterns=ce.getNegativePatterns=ce.isPositivePattern=ce.isNegativePattern=ce.convertToNegativePattern=ce.convertToPositivePattern=ce.isDynamicPattern=ce.isStaticPattern=void 0;var fj=require("path"),_j=Yf(),Ps=id(),nd="**",dj="\\",pj=/[*?]|^!/,yj=/\[[^[]*]/,hj=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,mj=/[!*+?@]\([^(]*\)/,vj=/,|\.\./;function ad(r,t={}){return!sd(r,t)}ce.isStaticPattern=ad;function sd(r,t={}){return r===""?!1:!!(t.caseSensitiveMatch===!1||r.includes(dj)||pj.test(r)||yj.test(r)||hj.test(r)||t.extglob!==!1&&mj.test(r)||t.braceExpansion!==!1&&gj(r))}ce.isDynamicPattern=sd;function gj(r){let t=r.indexOf("{");if(t===-1)return!1;let e=r.indexOf("}",t+1);if(e===-1)return!1;let u=r.slice(t,e);return vj.test(u)}function bj(r){return Li(r)?r.slice(1):r}ce.convertToPositivePattern=bj;function jj(r){return"!"+r}ce.convertToNegativePattern=jj;function Li(r){return r.startsWith("!")&&r[1]!=="("}ce.isNegativePattern=Li;function od(r){return!Li(r)}ce.isPositivePattern=od;function wj(r){return r.filter(Li)}ce.getNegativePatterns=wj;function kj(r){return r.filter(od)}ce.getPositivePatterns=kj;function Cj(r){return r.filter(t=>!xs(t))}ce.getPatternsInsideCurrentDirectory=Cj;function Sj(r){return r.filter(xs)}ce.getPatternsOutsideCurrentDirectory=Sj;function xs(r){return r.startsWith("..")||r.startsWith("./..")}ce.isPatternRelatedToParentDirectory=xs;function Ej(r){return _j(r,{flipBackslashes:!1})}ce.getBaseDirectory=Ej;function Aj(r){return r.includes(nd)}ce.hasGlobStar=Aj;function ud(r){return r.endsWith("/"+nd)}ce.endsWithSlashGlobStar=ud;function Rj(r){let t=fj.basename(r);return ud(r)||ad(t)}ce.isAffectDepthOfReadingPattern=Rj;function Tj(r){return r.reduce((t,e)=>t.concat(ld(e)),[])}ce.expandPatternsWithBraceExpansion=Tj;function ld(r){return Ps.braces(r,{expand:!0,nodupes:!0})}ce.expandBraceExpansion=ld;function Dj(r,t){let{parts:e}=Ps.scan(r,Object.assign(Object.assign({},t),{parts:!0}));return e.length===0&&(e=[r]),e[0].startsWith("/")&&(e[0]=e[0].slice(1),e.unshift("")),e}ce.getPatternParts=Dj;function cd(r,t){return Ps.makeRe(r,t)}ce.makeRe=cd;function Pj(r,t){return r.map(e=>cd(e,t))}ce.convertPatternsToRe=Pj;function xj(r,t){return t.some(e=>e.test(r))}ce.matchAny=xj});var yd=V((Ck,pd)=>{"use strict";var Oj=require("stream"),_d=Oj.PassThrough,Fj=Array.prototype.slice;pd.exports=Nj;function Nj(){let r=[],t=Fj.call(arguments),e=!1,u=t[t.length-1];u&&!Array.isArray(u)&&u.pipe==null?t.pop():u={};let d=u.end!==!1,y=u.pipeError===!0;u.objectMode==null&&(u.objectMode=!0),u.highWaterMark==null&&(u.highWaterMark=64*1024);let v=_d(u);function S(){for(let R=0,L=arguments.length;R<L;R++)r.push(dd(arguments[R],u));return A(),this}function A(){if(e)return;e=!0;let R=r.shift();if(!R){process.nextTick(I);return}Array.isArray(R)||(R=[R]);let L=R.length+1;function P(){--L>0||(e=!1,A())}function fe(K){function z(){K.removeListener("merge2UnpipeEnd",z),K.removeListener("end",z),y&&K.removeListener("error",ee),P()}function ee(oe){v.emit("error",oe)}if(K._readableState.endEmitted)return P();K.on("merge2UnpipeEnd",z),K.on("end",z),y&&K.on("error",ee),K.pipe(v,{end:!1}),K.resume()}for(let K=0;K<R.length;K++)fe(R[K]);P()}function I(){e=!1,v.emit("queueDrain"),d&&v.end()}return v.setMaxListeners(0),v.add=S,v.on("unpipe",function(R){R.emit("merge2UnpipeEnd")}),t.length&&S.apply(null,t),v}function dd(r,t){if(Array.isArray(r))for(let e=0,u=r.length;e<u;e++)r[e]=dd(r[e],t);else{if(!r._readableState&&r.pipe&&(r=r.pipe(_d(t))),!r._readableState||!r.pause||!r.pipe)throw new Error("Only readable stream can be merged.");r.pause()}return r}});var md=V(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.merge=void 0;var Mj=yd();function Ij(r){let t=Mj(r);return r.forEach(e=>{e.once("error",u=>t.emit("error",u))}),t.once("close",()=>hd(r)),t.once("end",()=>hd(r)),t}Ui.merge=Ij;function hd(r){r.forEach(t=>t.emit("close"))}});var vd=V(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.isEmpty=yr.isString=void 0;function Bj(r){return typeof r=="string"}yr.isString=Bj;function Lj(r){return r===""}yr.isEmpty=Lj});var St=V(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.string=ze.stream=ze.pattern=ze.path=ze.fs=ze.errno=ze.array=void 0;var Uj=Bf();ze.array=Uj;var Hj=Lf();ze.errno=Hj;var qj=Uf();ze.fs=qj;var Wj=Hf();ze.path=Wj;var $j=fd();ze.pattern=$j;var Gj=md();ze.stream=Gj;var Kj=vd();ze.string=Kj});var jd=V(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.convertPatternGroupToTask=Xe.convertPatternGroupsToTasks=Xe.groupPatternsByBaseDirectory=Xe.getNegativePatternsAsPositive=Xe.getPositivePatterns=Xe.convertPatternsToTasks=Xe.generate=void 0;var Et=St();function Vj(r,t){let e=gd(r),u=bd(r,t.ignore),d=e.filter(A=>Et.pattern.isStaticPattern(A,t)),y=e.filter(A=>Et.pattern.isDynamicPattern(A,t)),v=Os(d,u,!1),S=Os(y,u,!0);return v.concat(S)}Xe.generate=Vj;function Os(r,t,e){let u=[],d=Et.pattern.getPatternsOutsideCurrentDirectory(r),y=Et.pattern.getPatternsInsideCurrentDirectory(r),v=Fs(d),S=Fs(y);return u.push(...Ns(v,t,e)),"."in S?u.push(Ms(".",y,t,e)):u.push(...Ns(S,t,e)),u}Xe.convertPatternsToTasks=Os;function gd(r){return Et.pattern.getPositivePatterns(r)}Xe.getPositivePatterns=gd;function bd(r,t){return Et.pattern.getNegativePatterns(r).concat(t).map(Et.pattern.convertToPositivePattern)}Xe.getNegativePatternsAsPositive=bd;function Fs(r){let t={};return r.reduce((e,u)=>{let d=Et.pattern.getBaseDirectory(u);return d in e?e[d].push(u):e[d]=[u],e},t)}Xe.groupPatternsByBaseDirectory=Fs;function Ns(r,t,e){return Object.keys(r).map(u=>Ms(u,r[u],t,e))}Xe.convertPatternGroupsToTasks=Ns;function Ms(r,t,e,u){return{dynamic:u,positive:t,negative:e,base:r,patterns:[].concat(t,e.map(Et.pattern.convertToNegativePattern))}}Xe.convertPatternGroupToTask=Ms});var kd=V(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.removeDuplicateSlashes=hr.transform=void 0;var Yj=/(?!^)\/{2,}/g;function Qj(r){return r.map(t=>wd(t))}hr.transform=Qj;function wd(r){return r.replace(Yj,"/")}hr.removeDuplicateSlashes=wd});var Sd=V(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.read=void 0;function zj(r,t,e){t.fs.lstat(r,(u,d)=>{if(u!==null){Cd(e,u);return}if(!d.isSymbolicLink()||!t.followSymbolicLink){Is(e,d);return}t.fs.stat(r,(y,v)=>{if(y!==null){if(t.throwErrorOnBrokenSymbolicLink){Cd(e,y);return}Is(e,d);return}t.markSymbolicLink&&(v.isSymbolicLink=()=>!0),Is(e,v)})})}Hi.read=zj;function Cd(r,t){r(t)}function Is(r,t){r(null,t)}});var Ed=V(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.read=void 0;function Xj(r,t){let e=t.fs.lstatSync(r);if(!e.isSymbolicLink()||!t.followSymbolicLink)return e;try{let u=t.fs.statSync(r);return t.markSymbolicLink&&(u.isSymbolicLink=()=>!0),u}catch(u){if(!t.throwErrorOnBrokenSymbolicLink)return e;throw u}}qi.read=Xj});var Ad=V(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.createFileSystemAdapter=Pt.FILE_SYSTEM_ADAPTER=void 0;var Wi=require("fs");Pt.FILE_SYSTEM_ADAPTER={lstat:Wi.lstat,stat:Wi.stat,lstatSync:Wi.lstatSync,statSync:Wi.statSync};function Jj(r){return r===void 0?Pt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Pt.FILE_SYSTEM_ADAPTER),r)}Pt.createFileSystemAdapter=Jj});var Rd=V(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});var Zj=Ad(),Bs=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Zj.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,e){return t??e}};Ls.default=Bs});var Yt=V(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.statSync=xt.stat=xt.Settings=void 0;var Td=Sd(),ew=Ed(),Us=Rd();xt.Settings=Us.default;function tw(r,t,e){if(typeof t=="function"){Td.read(r,Hs(),t);return}Td.read(r,Hs(t),e)}xt.stat=tw;function rw(r,t){let e=Hs(t);return ew.read(r,e)}xt.statSync=rw;function Hs(r={}){return r instanceof Us.default?r:new Us.default(r)}});var xd=V((Nk,Pd)=>{var Dd;Pd.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):r=>(Dd||(Dd=Promise.resolve())).then(r).catch(t=>setTimeout(()=>{throw t},0))});var Fd=V((Mk,Od)=>{Od.exports=nw;var iw=xd();function nw(r,t){let e,u,d,y=!0;Array.isArray(r)?(e=[],u=r.length):(d=Object.keys(r),e={},u=d.length);function v(A){function I(){t&&t(A,e),t=null}y?iw(I):I()}function S(A,I,R){e[A]=R,(--u===0||I)&&v(I)}u?d?d.forEach(function(A){r[A](function(I,R){S(A,I,R)})}):r.forEach(function(A,I){A(function(R,L){S(I,R,L)})}):v(null),y=!1}});var qs=V(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var $i=process.versions.node.split(".");if($i[0]===void 0||$i[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Nd=Number.parseInt($i[0],10),aw=Number.parseInt($i[1],10),Md=10,sw=10,ow=Nd>Md,uw=Nd===Md&&aw>=sw;Gi.IS_SUPPORT_READDIR_WITH_FILE_TYPES=ow||uw});var Id=V(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.createDirentFromStats=void 0;var Ws=class{constructor(t,e){this.name=t,this.isBlockDevice=e.isBlockDevice.bind(e),this.isCharacterDevice=e.isCharacterDevice.bind(e),this.isDirectory=e.isDirectory.bind(e),this.isFIFO=e.isFIFO.bind(e),this.isFile=e.isFile.bind(e),this.isSocket=e.isSocket.bind(e),this.isSymbolicLink=e.isSymbolicLink.bind(e)}};function lw(r,t){return new Ws(r,t)}Ki.createDirentFromStats=lw});var $s=V(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.fs=void 0;var cw=Id();Vi.fs=cw});var Gs=V(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.joinPathSegments=void 0;function fw(r,t,e){return r.endsWith(e)?r+t:r+e+t}Yi.joinPathSegments=fw});var Wd=V(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.readdir=Ot.readdirWithFileTypes=Ot.read=void 0;var _w=Yt(),Bd=Fd(),dw=qs(),Ld=$s(),Ud=Gs();function pw(r,t,e){if(!t.stats&&dw.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Hd(r,t,e);return}qd(r,t,e)}Ot.read=pw;function Hd(r,t,e){t.fs.readdir(r,{withFileTypes:!0},(u,d)=>{if(u!==null){Qi(e,u);return}let y=d.map(S=>({dirent:S,name:S.name,path:Ud.joinPathSegments(r,S.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Ks(e,y);return}let v=y.map(S=>yw(S,t));Bd(v,(S,A)=>{if(S!==null){Qi(e,S);return}Ks(e,A)})})}Ot.readdirWithFileTypes=Hd;function yw(r,t){return e=>{if(!r.dirent.isSymbolicLink()){e(null,r);return}t.fs.stat(r.path,(u,d)=>{if(u!==null){if(t.throwErrorOnBrokenSymbolicLink){e(u);return}e(null,r);return}r.dirent=Ld.fs.createDirentFromStats(r.name,d),e(null,r)})}}function qd(r,t,e){t.fs.readdir(r,(u,d)=>{if(u!==null){Qi(e,u);return}let y=d.map(v=>{let S=Ud.joinPathSegments(r,v,t.pathSegmentSeparator);return A=>{_w.stat(S,t.fsStatSettings,(I,R)=>{if(I!==null){A(I);return}let L={name:v,path:S,dirent:Ld.fs.createDirentFromStats(v,R)};t.stats&&(L.stats=R),A(null,L)})}});Bd(y,(v,S)=>{if(v!==null){Qi(e,v);return}Ks(e,S)})})}Ot.readdir=qd;function Qi(r,t){r(t)}function Ks(r,t){r(null,t)}});var Yd=V(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.readdir=Ft.readdirWithFileTypes=Ft.read=void 0;var hw=Yt(),mw=qs(),$d=$s(),Gd=Gs();function vw(r,t){return!t.stats&&mw.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Kd(r,t):Vd(r,t)}Ft.read=vw;function Kd(r,t){return t.fs.readdirSync(r,{withFileTypes:!0}).map(u=>{let d={dirent:u,name:u.name,path:Gd.joinPathSegments(r,u.name,t.pathSegmentSeparator)};if(d.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let y=t.fs.statSync(d.path);d.dirent=$d.fs.createDirentFromStats(d.name,y)}catch(y){if(t.throwErrorOnBrokenSymbolicLink)throw y}return d})}Ft.readdirWithFileTypes=Kd;function Vd(r,t){return t.fs.readdirSync(r).map(u=>{let d=Gd.joinPathSegments(r,u,t.pathSegmentSeparator),y=hw.statSync(d,t.fsStatSettings),v={name:u,path:d,dirent:$d.fs.createDirentFromStats(u,y)};return t.stats&&(v.stats=y),v})}Ft.readdir=Vd});var Qd=V(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.createFileSystemAdapter=Nt.FILE_SYSTEM_ADAPTER=void 0;var mr=require("fs");Nt.FILE_SYSTEM_ADAPTER={lstat:mr.lstat,stat:mr.stat,lstatSync:mr.lstatSync,statSync:mr.statSync,readdir:mr.readdir,readdirSync:mr.readdirSync};function gw(r){return r===void 0?Nt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Nt.FILE_SYSTEM_ADAPTER),r)}Nt.createFileSystemAdapter=gw});var zd=V(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});var bw=require("path"),jw=Yt(),ww=Qd(),Vs=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=ww.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,bw.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new jw.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,e){return t??e}};Ys.default=Vs});var zi=V(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.Settings=Mt.scandirSync=Mt.scandir=void 0;var Xd=Wd(),kw=Yd(),Qs=zd();Mt.Settings=Qs.default;function Cw(r,t,e){if(typeof t=="function"){Xd.read(r,zs(),t);return}Xd.read(r,zs(t),e)}Mt.scandir=Cw;function Sw(r,t){let e=zs(t);return kw.read(r,e)}Mt.scandirSync=Sw;function zs(r={}){return r instanceof Qs.default?r:new Qs.default(r)}});var Zd=V((Kk,Jd)=>{"use strict";function Ew(r){var t=new r,e=t;function u(){var y=t;return y.next?t=y.next:(t=new r,e=t),y.next=null,y}function d(y){e.next=y,e=y}return{get:u,release:d}}Jd.exports=Ew});var tp=V((Vk,Xs)=>{"use strict";var Aw=Zd();function ep(r,t,e){if(typeof r=="function"&&(e=t,t=r,r=null),e<1)throw new Error("fastqueue concurrency must be greater than 1");var u=Aw(Rw),d=null,y=null,v=0,S=null,A={push:z,drain:ct,saturated:ct,pause:R,paused:!1,concurrency:e,running:I,resume:fe,idle:K,length:L,getQueue:P,unshift:ee,empty:ct,kill:be,killAndDrain:me,error:Ae};return A;function I(){return v}function R(){A.paused=!0}function L(){for(var ie=d,ke=0;ie;)ie=ie.next,ke++;return ke}function P(){for(var ie=d,ke=[];ie;)ke.push(ie.value),ie=ie.next;return ke}function fe(){if(!!A.paused){A.paused=!1;for(var ie=0;ie<A.concurrency;ie++)v++,oe()}}function K(){return v===0&&A.length()===0}function z(ie,ke){var J=u.get();J.context=r,J.release=oe,J.value=ie,J.callback=ke||ct,J.errorHandler=S,v===A.concurrency||A.paused?y?(y.next=J,y=J):(d=J,y=J,A.saturated()):(v++,t.call(r,J.value,J.worked))}function ee(ie,ke){var J=u.get();J.context=r,J.release=oe,J.value=ie,J.callback=ke||ct,v===A.concurrency||A.paused?d?(J.next=d,d=J):(d=J,y=J,A.saturated()):(v++,t.call(r,J.value,J.worked))}function oe(ie){ie&&u.release(ie);var ke=d;ke?A.paused?v--:(y===d&&(y=null),d=ke.next,ke.next=null,t.call(r,ke.value,ke.worked),y===null&&A.empty()):--v===0&&A.drain()}function be(){d=null,y=null,A.drain=ct}function me(){d=null,y=null,A.drain(),A.drain=ct}function Ae(ie){S=ie}}function ct(){}function Rw(){this.value=null,this.callback=ct,this.next=null,this.release=ct,this.context=null,this.errorHandler=null;var r=this;this.worked=function(e,u){var d=r.callback,y=r.errorHandler,v=r.value;r.value=null,r.callback=ct,r.errorHandler&&y(e,v),d.call(r.context,e,u),r.release(r)}}function Tw(r,t,e){typeof r=="function"&&(e=t,t=r,r=null);function u(R,L){t.call(this,R).then(function(P){L(null,P)},L)}var d=ep(r,u,e),y=d.push,v=d.unshift;return d.push=S,d.unshift=A,d.drained=I,d;function S(R){var L=new Promise(function(P,fe){y(R,function(K,z){if(K){fe(K);return}P(z)})});return L.catch(ct),L}function A(R){var L=new Promise(function(P,fe){v(R,function(K,z){if(K){fe(K);return}P(z)})});return L.catch(ct),L}function I(){var R=d.drain,L=new Promise(function(P){d.drain=function(){R(),P()}});return L}}Xs.exports=ep;Xs.exports.promise=Tw});var Xi=V(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.joinPathSegments=vt.replacePathSegmentSeparator=vt.isAppliedFilter=vt.isFatalError=void 0;function Dw(r,t){return r.errorFilter===null?!0:!r.errorFilter(t)}vt.isFatalError=Dw;function Pw(r,t){return r===null||r(t)}vt.isAppliedFilter=Pw;function xw(r,t){return r.split(/[/\\]/).join(t)}vt.replacePathSegmentSeparator=xw;function Ow(r,t,e){return r===""?t:r.endsWith(e)?r+t:r+e+t}vt.joinPathSegments=Ow});var eo=V(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});var Fw=Xi(),Js=class{constructor(t,e){this._root=t,this._settings=e,this._root=Fw.replacePathSegmentSeparator(t,e.pathSegmentSeparator)}};Zs.default=Js});var io=V(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});var Nw=require("events"),Mw=zi(),Iw=tp(),Ji=Xi(),Bw=eo(),to=class extends Bw.default{constructor(t,e){super(t,e),this._settings=e,this._scandir=Mw.scandir,this._emitter=new Nw.EventEmitter,this._queue=Iw(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,e){let u={directory:t,base:e};this._queue.push(u,d=>{d!==null&&this._handleError(d)})}_worker(t,e){this._scandir(t.directory,this._settings.fsScandirSettings,(u,d)=>{if(u!==null){e(u,void 0);return}for(let y of d)this._handleEntry(y,t.base);e(null,void 0)})}_handleError(t){this._isDestroyed||!Ji.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,e){if(this._isDestroyed||this._isFatalError)return;let u=t.path;e!==void 0&&(t.path=Ji.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)),Ji.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Ji.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(u,e===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};ro.default=to});var rp=V(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});var Lw=io(),no=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new Lw.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(e=>{Uw(t,e)}),this._reader.onEntry(e=>{this._storage.push(e)}),this._reader.onEnd(()=>{Hw(t,this._storage)}),this._reader.read()}};ao.default=no;function Uw(r,t){r(t)}function Hw(r,t){r(null,t)}});var ip=V(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});var qw=require("stream"),Ww=io(),so=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new Ww.default(this._root,this._settings),this._stream=new qw.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};oo.default=so});var np=V(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});var $w=zi(),Zi=Xi(),Gw=eo(),uo=class extends Gw.default{constructor(){super(...arguments),this._scandir=$w.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,e){this._queue.add({directory:t,base:e})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,e){try{let u=this._scandir(t,this._settings.fsScandirSettings);for(let d of u)this._handleEntry(d,e)}catch(u){this._handleError(u)}}_handleError(t){if(!!Zi.isFatalError(this._settings,t))throw t}_handleEntry(t,e){let u=t.path;e!==void 0&&(t.path=Zi.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)),Zi.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Zi.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(u,e===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};lo.default=uo});var ap=V(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});var Kw=np(),co=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new Kw.default(this._root,this._settings)}read(){return this._reader.read()}};fo.default=co});var sp=V(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});var Vw=require("path"),Yw=zi(),_o=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Vw.sep),this.fsScandirSettings=new Yw.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,e){return t??e}};po.default=_o});var ho=V(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.Settings=gt.walkStream=gt.walkSync=gt.walk=void 0;var op=rp(),Qw=ip(),zw=ap(),yo=sp();gt.Settings=yo.default;function Xw(r,t,e){if(typeof t=="function"){new op.default(r,en()).read(t);return}new op.default(r,en(t)).read(e)}gt.walk=Xw;function Jw(r,t){let e=en(t);return new zw.default(r,e).read()}gt.walkSync=Jw;function Zw(r,t){let e=en(t);return new Qw.default(r,e).read()}gt.walkStream=Zw;function en(r={}){return r instanceof yo.default?r:new yo.default(r)}});var go=V(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});var e0=require("path"),t0=Yt(),up=St(),mo=class{constructor(t){this._settings=t,this._fsStatSettings=new t0.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return e0.resolve(this._settings.cwd,t)}_makeEntry(t,e){let u={name:e,path:e,dirent:up.fs.createDirentFromStats(e,t)};return this._settings.stats&&(u.stats=t),u}_isFatalError(t){return!up.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};vo.default=mo});var wo=V(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});var r0=require("stream"),i0=Yt(),n0=ho(),a0=go(),bo=class extends a0.default{constructor(){super(...arguments),this._walkStream=n0.walkStream,this._stat=i0.stat}dynamic(t,e){return this._walkStream(t,e)}static(t,e){let u=t.map(this._getFullEntryPath,this),d=new r0.PassThrough({objectMode:!0});d._write=(y,v,S)=>this._getEntry(u[y],t[y],e).then(A=>{A!==null&&e.entryFilter(A)&&d.push(A),y===u.length-1&&d.end(),S()}).catch(S);for(let y=0;y<u.length;y++)d.write(y);return d}_getEntry(t,e,u){return this._getStat(t).then(d=>this._makeEntry(d,e)).catch(d=>{if(u.errorFilter(d))return null;throw d})}_getStat(t){return new Promise((e,u)=>{this._stat(t,this._fsStatSettings,(d,y)=>d===null?e(y):u(d))})}};jo.default=bo});var lp=V(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});var vr=St(),ko=class{constructor(t,e,u){this._patterns=t,this._settings=e,this._micromatchOptions=u,this._storage=[],this._fillStorage()}_fillStorage(){let t=vr.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let e of t){let u=this._getPatternSegments(e),d=this._splitSegmentsIntoSections(u);this._storage.push({complete:d.length<=1,pattern:e,segments:u,sections:d})}}_getPatternSegments(t){return vr.pattern.getPatternParts(t,this._micromatchOptions).map(u=>vr.pattern.isDynamicPattern(u,this._settings)?{dynamic:!0,pattern:u,patternRe:vr.pattern.makeRe(u,this._micromatchOptions)}:{dynamic:!1,pattern:u})}_splitSegmentsIntoSections(t){return vr.array.splitWhen(t,e=>e.dynamic&&vr.pattern.hasGlobStar(e.pattern))}};Co.default=ko});var cp=V(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});var s0=lp(),So=class extends s0.default{match(t){let e=t.split("/"),u=e.length,d=this._storage.filter(y=>!y.complete||y.segments.length>u);for(let y of d){let v=y.sections[0];if(!y.complete&&u>v.length||e.every((A,I)=>{let R=y.segments[I];return!!(R.dynamic&&R.patternRe.test(A)||!R.dynamic&&R.pattern===A)}))return!0}return!1}};Eo.default=So});var fp=V(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});var tn=St(),o0=cp(),Ao=class{constructor(t,e){this._settings=t,this._micromatchOptions=e}getFilter(t,e,u){let d=this._getMatcher(e),y=this._getNegativePatternsRe(u);return v=>this._filter(t,v,d,y)}_getMatcher(t){return new o0.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let e=t.filter(tn.pattern.isAffectDepthOfReadingPattern);return tn.pattern.convertPatternsToRe(e,this._micromatchOptions)}_filter(t,e,u,d){if(this._isSkippedByDeep(t,e.path)||this._isSkippedSymbolicLink(e))return!1;let y=tn.path.removeLeadingDotSegment(e.path);return this._isSkippedByPositivePatterns(y,u)?!1:this._isSkippedByNegativePatterns(y,d)}_isSkippedByDeep(t,e){return this._settings.deep===1/0?!1:this._getEntryLevel(t,e)>=this._settings.deep}_getEntryLevel(t,e){let u=e.split("/").length;if(t==="")return u;let d=t.split("/").length;return u-d}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,e){return!this._settings.baseNameMatch&&!e.match(t)}_isSkippedByNegativePatterns(t,e){return!tn.pattern.matchAny(t,e)}};Ro.default=Ao});var _p=V(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});var Qt=St(),To=class{constructor(t,e){this._settings=t,this._micromatchOptions=e,this.index=new Map}getFilter(t,e){let u=Qt.pattern.convertPatternsToRe(t,this._micromatchOptions),d=Qt.pattern.convertPatternsToRe(e,this._micromatchOptions);return y=>this._filter(y,u,d)}_filter(t,e,u){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,u))return!1;let d=this._settings.baseNameMatch?t.name:t.path,y=this._isMatchToPatterns(d,e)&&!this._isMatchToPatterns(t.path,u);return this._settings.unique&&y&&this._createIndexRecord(t),y}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,e){if(!this._settings.absolute)return!1;let u=Qt.path.makeAbsolute(this._settings.cwd,t);return Qt.pattern.matchAny(u,e)}_isMatchToPatterns(t,e){let u=Qt.path.removeLeadingDotSegment(t);return Qt.pattern.matchAny(u,e)||Qt.pattern.matchAny(u+"/",e)}};Do.default=To});var dp=V(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});var u0=St(),Po=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return u0.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};xo.default=Po});var yp=V(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});var pp=St(),Oo=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let e=t.path;return this._settings.absolute&&(e=pp.path.makeAbsolute(this._settings.cwd,e),e=pp.path.unixify(e)),this._settings.markDirectories&&t.dirent.isDirectory()&&(e+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:e}):e}};Fo.default=Oo});var rn=V(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});var l0=require("path"),c0=fp(),f0=_p(),_0=dp(),d0=yp(),No=class{constructor(t){this._settings=t,this.errorFilter=new _0.default(this._settings),this.entryFilter=new f0.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new c0.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new d0.default(this._settings)}_getRootDirectory(t){return l0.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let e=t.base==="."?"":t.base;return{basePath:e,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(e,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Mo.default=No});var hp=V(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});var p0=wo(),y0=rn(),Io=class extends y0.default{constructor(){super(...arguments),this._reader=new p0.default(this._settings)}read(t){let e=this._getRootDirectory(t),u=this._getReaderOptions(t),d=[];return new Promise((y,v)=>{let S=this.api(e,t,u);S.once("error",v),S.on("data",A=>d.push(u.transform(A))),S.once("end",()=>y(d))})}api(t,e,u){return e.dynamic?this._reader.dynamic(t,u):this._reader.static(e.patterns,u)}};Bo.default=Io});var mp=V(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});var h0=require("stream"),m0=wo(),v0=rn(),Lo=class extends v0.default{constructor(){super(...arguments),this._reader=new m0.default(this._settings)}read(t){let e=this._getRootDirectory(t),u=this._getReaderOptions(t),d=this.api(e,t,u),y=new h0.Readable({objectMode:!0,read:()=>{}});return d.once("error",v=>y.emit("error",v)).on("data",v=>y.emit("data",u.transform(v))).once("end",()=>y.emit("end")),y.once("close",()=>d.destroy()),y}api(t,e,u){return e.dynamic?this._reader.dynamic(t,u):this._reader.static(e.patterns,u)}};Uo.default=Lo});var vp=V(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});var g0=Yt(),b0=ho(),j0=go(),Ho=class extends j0.default{constructor(){super(...arguments),this._walkSync=b0.walkSync,this._statSync=g0.statSync}dynamic(t,e){return this._walkSync(t,e)}static(t,e){let u=[];for(let d of t){let y=this._getFullEntryPath(d),v=this._getEntry(y,d,e);v===null||!e.entryFilter(v)||u.push(v)}return u}_getEntry(t,e,u){try{let d=this._getStat(t);return this._makeEntry(d,e)}catch(d){if(u.errorFilter(d))return null;throw d}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};qo.default=Ho});var gp=V($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});var w0=vp(),k0=rn(),Wo=class extends k0.default{constructor(){super(...arguments),this._reader=new w0.default(this._settings)}read(t){let e=this._getRootDirectory(t),u=this._getReaderOptions(t);return this.api(e,t,u).map(u.transform)}api(t,e,u){return e.dynamic?this._reader.dynamic(t,u):this._reader.static(e.patterns,u)}};$o.default=Wo});var bp=V(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var gr=require("fs"),C0=require("os"),S0=Math.max(C0.cpus().length,1);br.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:gr.lstat,lstatSync:gr.lstatSync,stat:gr.stat,statSync:gr.statSync,readdir:gr.readdir,readdirSync:gr.readdirSync};var Go=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,S0),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(t,e){return t===void 0?e:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},br.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};br.default=Go});var Cp=V((mC,kp)=>{"use strict";var jp=jd(),wp=kd(),E0=hp(),A0=mp(),R0=gp(),Ko=bp(),zt=St();async function Vo(r,t){jr(r);let e=Yo(r,E0.default,t),u=await Promise.all(e);return zt.array.flatten(u)}(function(r){function t(v,S){jr(v);let A=Yo(v,R0.default,S);return zt.array.flatten(A)}r.sync=t;function e(v,S){jr(v);let A=Yo(v,A0.default,S);return zt.stream.merge(A)}r.stream=e;function u(v,S){jr(v);let A=wp.transform([].concat(v)),I=new Ko.default(S);return jp.generate(A,I)}r.generateTasks=u;function d(v,S){jr(v);let A=new Ko.default(S);return zt.pattern.isDynamicPattern(v,A)}r.isDynamicPattern=d;function y(v){return jr(v),zt.path.escape(v)}r.escapePath=y})(Vo||(Vo={}));function Yo(r,t,e){let u=wp.transform([].concat(r)),d=new Ko.default(e),y=jp.generate(u,d),v=new t(d);return y.map(v.read,v)}function jr(r){if(![].concat(r).every(u=>zt.string.isString(u)&&!zt.string.isEmpty(u)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}kp.exports=Vo});var x0={};fg(x0,{ConsoleLogger:()=>ns,DEFAULT_RUNTIME:()=>rs,DuckDBBindingsBase:()=>Hr,DuckDBConnection:()=>Br,DuckDBDataProtocol:()=>ts,DuckDBFeature:()=>Tf,FileFlags:()=>Rf,FileStatistics:()=>Ur,JSONTableShape:()=>Df,LogEvent:()=>Of,LogLevel:()=>Pf,LogOrigin:()=>Ff,LogTopic:()=>xf,NODE_RUNTIME:()=>qe,PACKAGE_NAME:()=>as,PACKAGE_VERSION:()=>ss,PACKAGE_VERSION_MAJOR:()=>kg,PACKAGE_VERSION_MINOR:()=>Cg,PACKAGE_VERSION_PATCH:()=>Sg,PreparedStatement:()=>Si,ResultStreamIterator:()=>Lr,StatusCode:()=>kf,VoidLogger:()=>is,callSRet:()=>we,copyBuffer:()=>Tt,createDuckDB:()=>P0,decodeText:()=>Rt,dropResponseBuffers:()=>De,failWith:()=>Ee,getJsDelivrBundles:()=>Rg,getLogEventLabel:()=>hg,getLogLevelLabel:()=>yg,getLogOriginLabel:()=>vg,getLogTopicLabel:()=>mg,getPlatformFeatures:()=>Di,isFirefox:()=>Eg,isNode:()=>ds,isSafari:()=>Ag,readString:()=>_e,selectBundle:()=>Tg});module.exports=_g(x0);var pt=cr(require("apache-arrow")),Br=class{constructor(t,e){this._bindings=t,this._conn=e}close(){this._bindings.disconnect(this._conn)}useUnsafe(t){return t(this._bindings,this._conn)}query(t){let e=this._bindings.runQuery(this._conn,t),u=pt.RecordBatchReader.from(e);return console.assert(u.isSync()),console.assert(u.isFile()),new pt.Table(u)}async send(t){let e=this._bindings.startPendingQuery(this._conn,t);for(;e==null;)e=await new Promise((y,v)=>{try{y(this._bindings.pollPendingQuery(this._conn))}catch(S){v(S)}});let u=new Lr(this._bindings,this._conn,e),d=pt.RecordBatchReader.from(u);return console.assert(d.isSync()),console.assert(d.isStream()),d}cancelSent(){return this._bindings.cancelPendingQuery(this._conn)}getTableNames(t){return this._bindings.getTableNames(this._conn,t)}prepare(t){let e=this._bindings.createPrepared(this._conn,t);return new Si(this._bindings,this._conn,e)}createScalarFunction(t,e,u){this._bindings.createScalarFunction(this._conn,t,e,u)}insertArrowTable(t,e){let u=new pt.RecordBatchStreamWriter;u.writeAll(t);let d=u.toUint8Array(!0);this.insertArrowFromIPCStream(d,e)}insertArrowFromIPCStream(t,e){this._bindings.insertArrowFromIPCStream(this._conn,t,e)}insertCSVFromPath(t,e){this._bindings.insertCSVFromPath(this._conn,t,e)}insertJSONFromPath(t,e){this._bindings.insertJSONFromPath(this._conn,t,e)}},Lr=class{constructor(t,e,u){this.bindings=t;this.conn=e;this.header=u;this._first=!0,this._depleted=!1}next(){if(this._first)return this._first=!1,{done:!1,value:this.header};if(this._depleted)return{done:!0,value:null};let t=this.bindings.fetchQueryResults(this.conn);return this._depleted=t.length==0,{done:this._depleted,value:t}}[Symbol.iterator](){return this}},Si=class{constructor(t,e,u){this.bindings=t,this.connectionId=e,this.statementId=u}close(){this.bindings.closePrepared(this.connectionId,this.statementId)}query(...t){let e=this.bindings.runPrepared(this.connectionId,this.statementId,t),u=pt.RecordBatchReader.from(e);return console.assert(u.isSync()),console.assert(u.isFile()),new pt.Table(u)}send(...t){let e=this.bindings.sendPrepared(this.connectionId,this.statementId,t),u=new Lr(this.bindings,this.connectionId,e),d=pt.RecordBatchReader.from(u);return console.assert(d.isSync()),console.assert(d.isStream()),d}};var kf=(t=>(t[t.SUCCESS=0]="SUCCESS",t))(kf||{});var Ef=new TextEncoder,Cf=new TextDecoder("utf-8");function Ja(r,t,e){let u=Ef.encode(e),d=r._malloc(u.byteLength),y=r.HEAPU8.subarray(d,d+u.byteLength);y.set(u),r.HEAPF64[(t>>3)+0]=1,r.HEAPF64[(t>>3)+1]=d,r.HEAPF64[(t>>3)+2]=y.byteLength}function es(r){switch(r){case"UINT8":case"INT8":return 1;case"INT32":case"FLOAT":return 4;case"INT64":case"UINT64":case"DOUBLE":case"VARCHAR":return 8;default:return 0}}function Za(r,t,e,u){let d=r.HEAPU8.subarray(t,t+u*es(e));switch(e){case"UINT8":return new Uint8Array(d.buffer,d.byteOffset,u);case"INT8":return new Int8Array(d.buffer,d.byteOffset,u);case"INT32":return new Int32Array(d.buffer,d.byteOffset,u);case"FLOAT":return new Float32Array(d.buffer,d.byteOffset,u);case"DOUBLE":return new Float64Array(d.buffer,d.byteOffset,u);case"VARCHAR":return new Float64Array(d.buffer,d.byteOffset,u);default:return new Array(0)}}function Sf(r,t,e){let u=r.HEAPU8.subarray(t,t+e);return new Uint8Array(u.buffer,u.byteOffset,e)}function Ei(r,t,e){let u=r.HEAPU8.subarray(t,t+e*8);return new Float64Array(u.buffer,u.byteOffset,e)}function Ai(r,t,e,u,d,y,v,S){try{let A=r._udfFunctions.get(u);if(!A){Ja(t,e,"Unknown UDF with id: "+u);return}let I=Cf.decode(t.HEAPU8.subarray(d,d+y)),R=JSON.parse(I),L=Ei(t,v,S/8),P=$=>{var F;let pe=null;switch($.validityBuffer!==void 0&&(pe=Sf(t,L[$.validityBuffer],R.rows)),$.physicalType){case"VARCHAR":{if($.dataBuffer===null||$.dataBuffer===void 0)throw new Error("malformed data view, expected data buffer for VARCHAR argument");if($.lengthBuffer===null||$.lengthBuffer===void 0)throw new Error("malformed data view, expected data length buffer for VARCHAR argument");let ue=Za(t,L[$.dataBuffer],$.physicalType,R.rows),ae=[],Ce=Ei(t,L[$.lengthBuffer],R.rows);for(let D=0;D<R.rows;++D){if(pe!=null&&!pe[D]){ae.push(null);continue}let x=t.HEAPU8.subarray(ue[D],ue[D]+Ce[D]),Pe=Cf.decode(x);ae.push(Pe)}return D=>ae[D]}case"STRUCT":{let ue={},ae=[];for(let Ce=0;Ce<(((F=$.children)==null?void 0:F.length)||0);++Ce){let D=$.children[Ce],x=P(D);ae.push(Pe=>{ue[D.name]=x(Pe)})}return pe!=null?Ce=>{if(!pe[Ce])return null;for(let D of ae)D(Ce);return ue}:Ce=>{for(let D of ae)D(Ce);return ue}}default:{if($.dataBuffer===void 0)throw new Error("malformed data view, expected data buffer for argument of type: "+$.physicalType);let ue=Za(t,L[$.dataBuffer],$.physicalType,R.rows);return pe!=null?ae=>pe[ae]?ue[ae]:null:ae=>ue[ae]}}},fe=[];for(let $=0;$<R.args.length;++$)fe.push(P(R.args[$]));let K=R.rows*es(R.ret.physicalType),z=t._malloc(K),ee=Za(t,z,R.ret.physicalType,R.rows),oe=t._malloc(R.rows),be=Sf(t,oe,R.rows);if(ee.length==0||be.length==0){Ja(t,e,"Can't create physical arrays for result");return}let me=ee;R.ret.physicalType=="VARCHAR"&&(me=new Array(R.rows));let Ae=[];for(let $=0;$<R.args.length;++$)Ae.push(null);for(let $=0;$<R.rows;++$){for(let F=0;F<R.args.length;++F)Ae[F]=fe[F]($);let pe=A.func(...Ae);me[$]=pe,be[$]=pe==null?0:1}let ie=0;switch(R.ret.physicalType){case"VARCHAR":{let $=new Array(0);ie=t._malloc(R.rows*es("DOUBLE"));let pe=Ei(t,ie,R.rows),F=0;for(let D=0;D<R.rows;++D){let x=Ef.encode(me[D]||"");$.push(x),pe[D]=x.length,F+=x.length}let ue=t._malloc(F),ae=t.HEAPU8.subarray(ue,ue+F),Ce=0;for(let D=0;D<R.rows;++D){ee[D]=Ce;let x=$[D];ae.subarray(Ce,Ce+x.length).set(x),Ce+=x.length}}}let ke=3*8,J=t._malloc(ke),te=Ei(t,J,3);te[0]=z,te[1]=oe,te[2]=ie,t.HEAPF64[(e>>3)+0]=0,t.HEAPF64[(e>>3)+1]=J,t.HEAPF64[(e>>3)+2]=0}catch(A){Ja(t,e,A.toString())}}function dg(){let r=new TextDecoder;return t=>(typeof SharedArrayBuffer<"u"&&t.buffer instanceof SharedArrayBuffer&&(t=new Uint8Array(t)),r.decode(t))}var Rt=dg();function Ee(r,t){r.ccall("duckdb_web_fail_with",null,["string"],[t])}function Tt(r,t,e){let u=r.HEAPU8.subarray(t,t+e),d=new Uint8Array(new ArrayBuffer(u.byteLength));return d.set(u),d}function _e(r,t,e){return Rt(r.HEAPU8.subarray(t,t+e))}var ts=(d=>(d[d.BUFFER=0]="BUFFER",d[d.NATIVE=1]="NATIVE",d[d.HTTP=3]="HTTP",d[d.S3=4]="S3",d))(ts||{}),Rf=(v=>(v[v.FILE_FLAGS_READ=1]="FILE_FLAGS_READ",v[v.FILE_FLAGS_WRITE=2]="FILE_FLAGS_WRITE",v[v.FILE_FLAGS_DIRECT_IO=4]="FILE_FLAGS_DIRECT_IO",v[v.FILE_FLAGS_FILE_CREATE=8]="FILE_FLAGS_FILE_CREATE",v[v.FILE_FLAGS_FILE_CREATE_NEW=16]="FILE_FLAGS_FILE_CREATE_NEW",v[v.FILE_FLAGS_APPEND=32]="FILE_FLAGS_APPEND",v))(Rf||{});function we(r,t,e,u){let d=r.stackSave(),y=r.stackAlloc(3*8);e.unshift("number"),u.unshift(y),r.ccall(t,null,e,u);let v=r.HEAPF64[(y>>3)+0],S=r.HEAPF64[(y>>3)+1],A=r.HEAPF64[(y>>3)+2];return r.stackRestore(d),[v,S,A]}function De(r){r.ccall("duckdb_web_clear_response",null,[],[])}var rs={_udfFunctions:new Map,testPlatformFeature:(r,t)=>!1,openFile:(r,t,e)=>{},syncFile:(r,t)=>{},closeFile:(r,t)=>{},getLastFileModificationTime:(r,t)=>0,truncateFile:(r,t,e)=>{},readFile:(r,t,e,u,d)=>0,writeFile:(r,t,e,u,d)=>0,removeDirectory:(r,t,e)=>{},checkDirectory:(r,t,e)=>!1,createDirectory:(r,t,e)=>{},listDirectoryEntries:(r,t,e)=>!1,glob:(r,t,e)=>{},moveFile:(r,t,e,u,d)=>{},checkFile:(r,t,e)=>!1,removeFile:(r,t,e)=>{},callScalarUDF:(r,t,e,u,d,y,v)=>{Ai(rs,r,t,e,u,d,y,v)}};var Ur=class{constructor(t){let e=new Float64Array(t.buffer,t.byteOffset,t.byteLength/8),u=new Uint8Array(new ArrayBuffer(t.byteLength));u.set(t.subarray(7*8)),this.totalFileReadsCold=e[0],this.totalFileReadsAhead=e[1],this.totalFileReadsCached=e[2],this.totalFileWrites=e[3],this.totalPageAccesses=e[4],this.totalPageLoads=e[5],this.blockSize=e[6],this.blockStats=u}getBlockStats(t,e){return e=e||{file_reads_cold:0,file_reads_ahead:0,file_reads_cached:0,file_writes:0,page_accesses:0,page_loads:0},e.file_writes=this.blockStats[t*3+0]&15,e.file_reads_cold=this.blockStats[t*3+0]>>4,e.file_reads_ahead=this.blockStats[t*3+1]&15,e.file_reads_cached=this.blockStats[t*3+1]>>4,e.page_accesses=this.blockStats[t*3+1]&15,e.page_loads=this.blockStats[t*3+1]>>4,e}};var he=cr(require("apache-arrow"));function fr(r){switch(r.typeId){case he.Type.Binary:return{sqlType:"binary"};case he.Type.Bool:return{sqlType:"bool"};case he.Type.Date:return{sqlType:"date"};case he.Type.DateDay:return{sqlType:"date32[d]"};case he.Type.DateMillisecond:return{sqlType:"date64[ms]"};case he.Type.Decimal:{let t=r;return{sqlType:"decimal",precision:t.precision,scale:t.scale}}case he.Type.Float:return{sqlType:"float"};case he.Type.Float16:return{sqlType:"float16"};case he.Type.Float32:return{sqlType:"float32"};case he.Type.Float64:return{sqlType:"float64"};case he.Type.Int:return{sqlType:"int32"};case he.Type.Int16:return{sqlType:"int16"};case he.Type.Int32:return{sqlType:"int32"};case he.Type.Int64:return{sqlType:"int64"};case he.Type.Uint16:return{sqlType:"uint16"};case he.Type.Uint32:return{sqlType:"uint32"};case he.Type.Uint64:return{sqlType:"uint64"};case he.Type.Uint8:return{sqlType:"uint8"};case he.Type.IntervalDayTime:return{sqlType:"interval[dt]"};case he.Type.IntervalYearMonth:return{sqlType:"interval[m]"};case he.Type.List:return{sqlType:"list",valueType:fr(r.valueType)};case he.Type.FixedSizeBinary:return{sqlType:"fixedsizebinary",byteWidth:r.byteWidth};case he.Type.Null:return{sqlType:"null"};case he.Type.Utf8:return{sqlType:"utf8"};case he.Type.Struct:return{sqlType:"struct",fields:r.children.map(e=>Ri(e.name,e.type))};case he.Type.Map:{let t=r;return{sqlType:"map",keyType:fr(t.keyType),valueType:fr(t.valueType)}}case he.Type.Time:return{sqlType:"time[s]"};case he.Type.TimeMicrosecond:return{sqlType:"time[us]"};case he.Type.TimeMillisecond:return{sqlType:"time[ms]"};case he.Type.TimeNanosecond:return{sqlType:"time[ns]"};case he.Type.TimeSecond:return{sqlType:"time[s]"};case he.Type.Timestamp:return{sqlType:"timestamp",timezone:r.timezone||void 0};case he.Type.TimestampSecond:return{sqlType:"timestamp[s]",timezone:r.timezone||void 0};case he.Type.TimestampMicrosecond:return{sqlType:"timestamp[us]",timezone:r.timezone||void 0};case he.Type.TimestampNanosecond:return{sqlType:"timestamp[ns]",timezone:r.timezone||void 0};case he.Type.TimestampMillisecond:return{sqlType:"timestamp[ms]",timezone:r.timezone||void 0}}throw new Error(`unsupported arrow type: ${r.toString()}`)}function Ri(r,t){let e=fr(t);return e.name=r,e}var pg=new TextEncoder,Tf=(y=>(y[y.WASM_EXCEPTIONS=1]="WASM_EXCEPTIONS",y[y.WASM_THREADS=2]="WASM_THREADS",y[y.WASM_SIMD=4]="WASM_SIMD",y[y.WASM_BULK_MEMORY=8]="WASM_BULK_MEMORY",y[y.EMIT_BIGINT=16]="EMIT_BIGINT",y))(Tf||{}),Hr=class{constructor(t,e){this._instance=null;this._initPromise=null;this._initPromiseResolver=()=>{};this.onInstantiationProgress=[];this._logger=t,this._runtime=e,this._nextUDFId=1}get logger(){return this._logger}get mod(){return this._instance}get pthread(){return this.mod.PThread||null}async instantiate(t=e=>{}){return this._instance!=null?this:(this._initPromise!=null&&(this.onInstantiationProgress.push(t),await this._initPromise),this._initPromise=new Promise(e=>{this._initPromiseResolver=e}),this.onInstantiationProgress=[t],this._instance=await this.instantiateImpl({print:console.log.bind(console),printErr:console.log.bind(console),onRuntimeInitialized:this._initPromiseResolver}),await this._initPromise,this._initPromise=null,this.onInstantiationProgress=this.onInstantiationProgress.filter(e=>e!=t),this)}open(t){let[e,u,d]=we(this.mod,"duckdb_web_open",["string"],[JSON.stringify(t)]);if(e!==0)throw new Error(_e(this.mod,u,d));De(this.mod)}reset(){let[t,e,u]=we(this.mod,"duckdb_web_reset",[],[]);if(t!==0)throw new Error(_e(this.mod,e,u));De(this.mod)}getVersion(){let[t,e,u]=we(this.mod,"duckdb_web_get_version",[],[]);if(t!==0)throw new Error(_e(this.mod,e,u));let d=_e(this.mod,e,u);return De(this.mod),d}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(t){let[e,u,d]=we(this.mod,"duckdb_web_tokenize",["string"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));let y=_e(this.mod,u,d);return De(this.mod),JSON.parse(y)}connect(){let t=this.mod.ccall("duckdb_web_connect","number",[],[]);return new Br(this,t)}disconnect(t){if(this.mod.ccall("duckdb_web_disconnect",null,["number"],[t]),this.pthread)for(let e of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])e.postMessage({cmd:"dropUDFFunctions",connectionId:t})}runQuery(t,e){let[u,d,y]=we(this.mod,"duckdb_web_query_run",["number","string"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y));let v=Tt(this.mod,d,y);return De(this.mod),v}startPendingQuery(t,e){let[u,d,y]=we(this.mod,"duckdb_web_pending_query_start",["number","string"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y));if(d==0)return null;let v=Tt(this.mod,d,y);return De(this.mod),v}pollPendingQuery(t){let[e,u,d]=we(this.mod,"duckdb_web_pending_query_poll",["number"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));if(u==0)return null;let y=Tt(this.mod,u,d);return De(this.mod),y}cancelPendingQuery(t){return this.mod.ccall("duckdb_web_pending_query_cancel","boolean",["number"],[t])}fetchQueryResults(t){let[e,u,d]=we(this.mod,"duckdb_web_query_fetch_results",["number"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));let y=Tt(this.mod,u,d);return De(this.mod),y}getTableNames(t,e){let[u,d,y]=we(this.mod,"duckdb_web_get_tablenames",["number","string"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y));let v=_e(this.mod,d,y);return De(this.mod),JSON.parse(v)}createScalarFunction(t,e,u,d){let y={functionId:this._nextUDFId,name:e,returnType:fr(u)},v={functionId:y.functionId,connectionId:t,name:e,returnType:u,func:d};this._nextUDFId+=1;let[S,A,I]=we(this.mod,"duckdb_web_udf_scalar_create",["number","string"],[t,JSON.stringify(y)]);if(S!==0)throw new Error(_e(this.mod,A,I));if(De(this.mod),globalThis.DUCKDB_RUNTIME._udfFunctions=(globalThis.DUCKDB_RUNTIME._udfFunctions||new Map).set(v.functionId,v),this.pthread)for(let R of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])R.postMessage({cmd:"registerUDFFunction",udf:v})}createPrepared(t,e){let[u,d,y]=we(this.mod,"duckdb_web_prepared_create",["number","string"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y));return De(this.mod),d}closePrepared(t,e){let[u,d,y]=we(this.mod,"duckdb_web_prepared_close",["number","number"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y));De(this.mod)}runPrepared(t,e,u){let[d,y,v]=we(this.mod,"duckdb_web_prepared_run",["number","number","string"],[t,e,JSON.stringify(u)]);if(d!==0)throw new Error(_e(this.mod,y,v));let S=Tt(this.mod,y,v);return De(this.mod),S}sendPrepared(t,e,u){let[d,y,v]=we(this.mod,"duckdb_web_prepared_send",["number","number","string"],[t,e,JSON.stringify(u)]);if(d!==0)throw new Error(_e(this.mod,y,v));let S=Tt(this.mod,y,v);return De(this.mod),S}insertArrowFromIPCStream(t,e,u){if(e.length==0)return;let d=this.mod._malloc(e.length);this.mod.HEAPU8.subarray(d,d+e.length).set(e);let v=u?JSON.stringify(u):"",[S,A,I]=we(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[t,d,e.length,v]);if(S!==0)throw new Error(_e(this.mod,A,I))}insertCSVFromPath(t,e,u){if(u.columns!==void 0){u.columnsFlat=[];for(let I in u.columns)u.columnsFlat.push(Ri(I,u.columns[I]))}let d={...u};d.columns=d.columnsFlat,delete d.columnsFlat;let y=JSON.stringify(d),[v,S,A]=we(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[t,e,y]);if(v!==0)throw new Error(_e(this.mod,S,A))}insertJSONFromPath(t,e,u){if(u.columns!==void 0){u.columnsFlat=[];for(let I in u.columns)u.columnsFlat.push(Ri(I,u.columns[I]))}let d={...u};d.columns=d.columnsFlat,delete d.columnsFlat;let y=JSON.stringify(d),[v,S,A]=we(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[t,e,y]);if(v!==0)throw new Error(_e(this.mod,S,A))}globFiles(t){let[e,u,d]=we(this.mod,"duckdb_web_fs_glob_file_infos",["string"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));let y=_e(this.mod,u,d);De(this.mod);let v=JSON.parse(y);return v??[]}registerFileURL(t,e){e===void 0&&(e=t);let[u,d,y]=we(this.mod,"duckdb_web_fs_register_file_url",["string","string","number"],[t,e,-1]);if(u!==0)throw new Error(_e(this.mod,d,y));De(this.mod)}registerFileText(t,e){let u=pg.encode(e);this.registerFileBuffer(t,u)}registerFileBuffer(t,e){let u=this.mod._malloc(e.length);this.mod.HEAPU8.subarray(u,u+e.length).set(e);let[y,v,S]=we(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[t,u,e.length]);if(y!==0)throw new Error(_e(this.mod,v,S));De(this.mod)}registerFileHandle(t,e){let[u,d,y]=we(this.mod,"duckdb_web_fs_register_file_url",["string","string","number"],[t,t,-1]);if(u!==0)throw new Error(_e(this.mod,d,y));if(De(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(t,e),this.pthread){for(let v of this.pthread.runningWorkers)v.postMessage({cmd:"registerFileHandle",fileName:t,fileHandle:e});for(let v of this.pthread.unusedWorkers)v.postMessage({cmd:"dropFileHandle",fileName:t})}}dropFile(t){let[e,u,d]=we(this.mod,"duckdb_web_fs_drop_file",["string"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));De(this.mod)}dropFiles(){let[t,e,u]=we(this.mod,"duckdb_web_fs_drop_files",[],[]);if(t!==0)throw new Error(_e(this.mod,e,u));De(this.mod)}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(t,e){let[u,d,y]=we(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y));De(this.mod)}copyFileToBuffer(t){let[e,u,d]=we(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));let y=this.mod.HEAPU8.subarray(u,u+d),v=new Uint8Array(y.length);return v.set(y),De(this.mod),v}collectFileStatistics(t,e){let[u,d,y]=we(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y))}exportFileStatistics(t){let[e,u,d]=we(this.mod,"duckdb_web_export_file_stats",["string"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));return new Ur(this.mod.HEAPU8.subarray(u,u+d))}};var Df=(e=>(e.ROW_ARRAY="row-array",e.COLUMN_OBJECT="column-object",e))(Df||{});var Pf=(y=>(y[y.NONE=0]="NONE",y[y.DEBUG=1]="DEBUG",y[y.INFO=2]="INFO",y[y.WARNING=3]="WARNING",y[y.ERROR=4]="ERROR",y))(Pf||{}),xf=(v=>(v[v.NONE=0]="NONE",v[v.CONNECT=1]="CONNECT",v[v.DISCONNECT=2]="DISCONNECT",v[v.OPEN=3]="OPEN",v[v.QUERY=4]="QUERY",v[v.INSTANTIATE=5]="INSTANTIATE",v))(xf||{}),Of=(v=>(v[v.NONE=0]="NONE",v[v.OK=1]="OK",v[v.ERROR=2]="ERROR",v[v.START=3]="START",v[v.RUN=4]="RUN",v[v.CAPTURE=5]="CAPTURE",v))(Of||{}),Ff=(y=>(y[y.NONE=0]="NONE",y[y.WEB_WORKER=1]="WEB_WORKER",y[y.NODE_WORKER=2]="NODE_WORKER",y[y.BINDINGS=3]="BINDINGS",y[y.ASYNC_DUCKDB=4]="ASYNC_DUCKDB",y))(Ff||{}),is=class{log(t){}},ns=class{constructor(t=2){this.level=t}log(t){t.level>=this.level&&console.log(t)}};function yg(r){switch(r){case 0:return"NONE";case 1:return"DEBUG";case 2:return"INFO";case 3:return"WARNING";case 4:return"ERROR";default:return"?"}}function hg(r){switch(r){case 0:return"NONE";case 1:return"OK";case 2:return"ERROR";case 3:return"START";case 4:return"RUN";case 5:return"CAPTURE";default:return"?"}}function mg(r){switch(r){case 1:return"CONNECT";case 2:return"DISCONNECT";case 5:return"INSTANTIATE";case 3:return"OPEN";case 4:return"QUERY";default:return"?"}}function vg(r){switch(r){case 0:return"NONE";case 1:return"WEB WORKER";case 2:return"NODE WORKER";case 3:return"DUCKDB BINDINGS";case 4:return"DUCKDB";default:return"?"}}var Dt=cr(Mf());var Ti={name:"@duckdb/duckdb-wasm",version:"1.16.0",description:"DuckDB powered by WebAssembly",license:"MPL-2.0",repository:{type:"git",url:"https://github.com/duckdb/duckdb-wasm.git"},keywords:["sql","duckdb","relational","database","data","query","wasm","analytics","olap","arrow","parquet","json","csv"],dependencies:{"apache-arrow":"^8.0.0"},devDependencies:{"@types/emscripten":"^1.39.6","@types/jasmine":"^4.0.3","@typescript-eslint/eslint-plugin":"^5.30.5","@typescript-eslint/parser":"^5.30.5",esbuild:"^0.14.49",eslint:"^8.19.0","eslint-plugin-jasmine":"^4.1.3","eslint-plugin-react":"^7.30.1","fast-glob":"^3.2.11",jasmine:"^4.2.1","jasmine-core":"^4.2.0","jasmine-spec-reporter":"^7.0.0","js-sha256":"^0.9.0",karma:"^6.4.0","karma-chrome-launcher":"^3.1.1","karma-coverage":"^2.2.0","karma-firefox-launcher":"^2.1.2","karma-jasmine":"^5.1.0","karma-jasmine-html-reporter":"^2.0.0","karma-sourcemap-loader":"^0.3.8","karma-spec-reporter":"^0.0.34","make-dir":"^3.1.0",nyc:"^15.1.0",prettier:"^2.7.1",puppeteer:"^15.4.0",rimraf:"^3.0.2",s3rver:"^3.7.1",typedoc:"^0.23.7",typescript:"^4.7.4","wasm-feature-detect":"^1.2.11","web-worker":"^1.2.0"},scripts:{"build:debug":"node bundle.mjs debug && tsc --emitDeclarationOnly","build:release":"node bundle.mjs release && tsc --emitDeclarationOnly",docs:"typedoc",report:"node ./coverage.mjs","test:node":"node --enable-source-maps --experimental-wasm-eh ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs","test:node:debug":"node --inspect-brk --enable-source-maps --experimental-wasm-eh ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs","test:node:coverage":"nyc -r json --report-dir ./coverage/node node --experimental-wasm-eh ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs","test:firefox":"karma start ./karma/tests-firefox.cjs","test:chrome":"karma start ./karma/tests-chrome.cjs","test:chrome:eh":"karma start ./karma/tests-chrome-eh.cjs","test:chrome:coverage":"karma start ./karma/tests-chrome-coverage.cjs","test:browser":"karma start ./karma/tests-all.cjs","test:browser:debug":"karma start ./karma/tests-debug.cjs",test:"npm run test:chrome && npm run test:node","test:coverage":"npm run test:chrome:coverage && npm run test:node:coverage && npm run report",lint:"eslint src test"},files:["dist","!dist/types/test"],main:"dist/duckdb-browser.cjs",module:"dist/duckdb-browser.mjs",types:"dist/duckdb-browser.d.ts",jsdelivr:"dist/duckdb-browser.cjs",unpkg:"dist/duckdb-browser.mjs",sideEffects:!1,browser:{fs:!1,path:!1,perf_hooks:!1,os:!1,worker_threads:!1},exports:{"./dist/duckdb-mvp.wasm":"./dist/duckdb-mvp.wasm","./dist/duckdb-eh.wasm":"./dist/duckdb-eh.wasm","./dist/duckdb-coi.wasm":"./dist/duckdb-coi.wasm","./dist/duckdb-browser":"./dist/duckdb-browser.mjs","./dist/duckdb-browser.cjs":"./dist/duckdb-browser.cjs","./dist/duckdb-browser.mjs":"./dist/duckdb-browser.mjs","./dist/duckdb-browser-blocking":"./dist/duckdb-browser-blocking.mjs","./dist/duckdb-browser-blocking.mjs":"./dist/duckdb-browser-blocking.mjs","./dist/duckdb-browser-blocking.cjs":"./dist/duckdb-browser-blocking.cjs","./dist/duckdb-browser-coi.pthread.worker.js":"./dist/duckdb-browser-coi.pthread.worker.js","./dist/duckdb-browser-coi.worker.js":"./dist/duckdb-browser-coi.worker.js","./dist/duckdb-browser-eh.worker.js":"./dist/duckdb-browser-eh.worker.js","./dist/duckdb-browser-mvp.worker.js":"./dist/duckdb-browser-mvp.worker.js","./dist/duckdb-node":"./dist/duckdb-node.cjs","./dist/duckdb-node.cjs":"./dist/duckdb-node.cjs","./dist/duckdb-node-blocking":"./dist/duckdb-node-blocking.cjs","./dist/duckdb-node-blocking.cjs":"./dist/duckdb-node-blocking.cjs","./dist/duckdb-node-eh.worker.cjs":"./dist/duckdb-node-eh.worker.cjs","./dist/duckdb-node-mvp.worker.cjs":"./dist/duckdb-node-mvp.worker.cjs","./blocking":{browser:{types:"./dist/duckdb-browser-blocking.d.ts",import:"./dist/duckdb-browser-blocking.mjs",require:"./dist/duckdb-browser-blocking.cjs"},node:{types:"./dist/duckdb-node-blocking.d.ts",require:"./dist/duckdb-node-blocking.cjs",import:"./dist/duckdb-node-blocking.cjs"},types:"./dist/duckdb-browser-blocking.d.ts",import:"./dist/duckdb-browser-blocking.mjs",require:"./dist/duckdb-browser-blocking.cjs"},".":{browser:{types:"./dist/duckdb-browser.d.ts",import:"./dist/duckdb-browser.mjs",require:"./dist/duckdb-browser.cjs"},node:{types:"./dist/duckdb-node.d.ts",import:"./dist/duckdb-node.cjs",require:"./dist/duckdb-node.cjs"},types:"./dist/duckdb-browser.d.ts",import:"./dist/duckdb-browser.mjs",require:"./dist/duckdb-browser.cjs"}}};var as=Ti.name,ss=Ti.version,os=Ti.version.split("."),kg=os[0],Cg=os[1],Sg=os[2];var ds=()=>typeof navigator>"u",If=()=>ds()?"node":navigator.userAgent,Eg=()=>If().includes("Firefox"),Ag=()=>/^((?!chrome|android).)*safari/i.test(If());function Rg(){let r=`https://cdn.jsdelivr.net/npm/${as}@${ss}/dist/`;return{mvp:{mainModule:`${r}duckdb-mvp.wasm`,mainWorker:`${r}duckdb-browser-mvp.worker.js`},eh:{mainModule:`${r}duckdb-eh.wasm`,mainWorker:`${r}duckdb-browser-eh.worker.js`}}}var us=null,ls=null,cs=null,fs=null,_s=null;async function Di(){return us==null&&(us=typeof BigInt64Array<"u"),ls==null&&(ls=await Dt.exceptions()),cs==null&&(cs=await Dt.threads()),fs==null&&(fs=await Dt.simd()),_s==null&&(_s=await Dt.bulkMemory()),{bigInt64Array:us,crossOriginIsolated:ds()||globalThis.crossOriginIsolated||!1,wasmExceptions:ls,wasmSIMD:fs,wasmThreads:cs,wasmBulkMemory:_s}}async function Tg(r){let t=await Di();if(t.wasmExceptions){if(t.wasmSIMD&&t.wasmThreads&&t.crossOriginIsolated&&r.coi)return{mainModule:r.coi.mainModule,mainWorker:r.coi.mainWorker,pthreadWorker:r.coi.pthreadWorker};if(r.eh)return{mainModule:r.eh.mainModule,mainWorker:r.eh.mainWorker,pthreadWorker:null}}return{mainModule:r.mvp.mainModule,mainWorker:r.mvp.mainWorker,pthreadWorker:null}}var Ve=cr(require("fs"));var Sp=cr(Cp());var qe={_files:new Map,_fileInfoCache:new Map,_udfFunctions:new Map,resolveFileInfo(r,t){try{let e=qe._fileInfoCache.get(t),[u,d,y]=we(r,"duckdb_web_fs_get_file_info_by_id",["number","number"],[t,(e==null?void 0:e.cacheEpoch)||0]);if(u!==0)return Ee(r,_e(r,d,y)),null;if(y===0)return e;let v=_e(r,d,y);De(r);let S=JSON.parse(v);return S==null?null:(qe._fileInfoCache.set(t,S),S)}catch(e){return Ee(r,e.toString()),null}},testPlatformFeature:(r,t)=>{switch(t){case 1:return typeof BigInt64Array<"u";default:return console.warn(`test for unknown feature: ${t}`),!1}},openFile(r,t,e){try{qe._fileInfoCache.delete(t);let u=qe.resolveFileInfo(r,t);switch(u==null?void 0:u.dataProtocol){case 1:{u.dataNativeFd=Ve.default.openSync(u.dataUrl,Ve.default.constants.O_CREAT|Ve.default.constants.O_RDWR,Ve.default.constants.S_IRUSR|Ve.default.constants.S_IWUSR);let[d,y,v]=we(r,"duckdb_web_fs_set_file_descriptor",["number","number"],[t,u.dataNativeFd]);d!==0&&Ee(r,_e(r,y,v));let S=Ve.default.fstatSync(u.dataNativeFd).size,A=r._malloc(2*8);return r.HEAPF64[(A>>3)+0]=+S,r.HEAPF64[(A>>3)+1]=0,A}case 3:case 4:Ee(r,"Not implemented")}}catch(u){Ee(r,u.toString())}return 0},syncFile:(r,t)=>{},closeFile:(r,t)=>{try{let e=qe.resolveFileInfo(r,t);switch(qe._fileInfoCache.delete(t),e==null?void 0:e.dataProtocol){case 1:{if(!e.dataNativeFd)return Ee(r,`File ${t} is missing a file descriptor`),0;Ve.default.closeSync(e.dataNativeFd),e.dataNativeFd=null;break}case 3:case 4:Ee(r,"Not implemented")}}catch(e){Ee(r,e.toString())}return 0},truncateFile:(r,t,e)=>{try{let u=qe.resolveFileInfo(r,t);switch(u==null?void 0:u.dataProtocol){case 1:{if(!u.dataNativeFd)return Ee(r,`File ${t} is missing a file descriptor`),0;Ve.default.truncateSync(u.dataUrl,e);break}case 3:case 4:Ee(r,"Not implemented")}}catch(u){Ee(r,u.toString())}return 0},readFile:(r,t,e,u,d)=>{try{let y=qe.resolveFileInfo(r,t);switch(y==null?void 0:y.dataProtocol){case 1:return y.dataNativeFd?Ve.default.readSync(y.dataNativeFd,r.HEAPU8,e,u,d):(Ee(r,`File ${t} is missing a file descriptor`),0);case 3:case 4:Ee(r,"Not implemented")}}catch(y){Ee(r,y.toString())}return 0},writeFile:(r,t,e,u,d)=>{try{let y=qe.resolveFileInfo(r,t);switch(y==null?void 0:y.dataProtocol){case 1:{if(!y.dataNativeFd)return Ee(r,`File ${t} is missing a file descriptor`),0;let v=r.HEAPU8.subarray(e,e+u);return Ve.default.writeSync(y.dataNativeFd,v,0,v.length,d)}}}catch(y){Ee(r,y.toString())}return 0},getLastFileModificationTime:(r,t)=>{try{let e=qe.resolveFileInfo(r,t);switch(e==null?void 0:e.dataProtocol){case 1:return e.dataNativeFd?Ve.default.fstatSync(e.dataNativeFd).mtime.getTime():(Ee(r,`File ${t} is missing a file descriptor`),0);case 3:case 4:Ee(r,"Not implemented")}}catch(e){Ee(r,e.toString())}return 0},checkDirectory:(r,t,e)=>{try{let u=Rt(r.HEAPU8.subarray(t,t+e));return Ve.default.existsSync(u)}catch(u){return Ee(r,u.toString()),!1}},createDirectory:(r,t,e)=>{try{let u=Rt(r.HEAPU8.subarray(t,t+e));return Ve.default.mkdirSync(u)}catch(u){return Ee(r,u.toString()),0}},removeDirectory:(r,t,e)=>{try{let u=Rt(r.HEAPU8.subarray(t,t+e));return Ve.default.rmdirSync(u)}catch(u){return Ee(r,u.toString()),0}},listDirectoryEntries:(r,t,e)=>(Ee(r,"Not Implemented"),!1),glob:(r,t,e)=>{try{let u=_e(r,t,e),d=Sp.sync([u],{dot:!0});for(let y of d)r.ccall("duckdb_web_fs_glob_add_path",null,["string"],[y])}catch(u){return Ee(r,u.toString()),0}},moveFile:(r,t,e,u,d)=>{var A,I;let y=_e(r,t,e),v=_e(r,u,d),S=(A=qe._files)==null?void 0:A.get(y);S!==void 0&&(qe._files.delete(S),qe._files.set(v,S));for(let[R,L]of((I=qe._fileInfoCache)==null?void 0:I.entries())||[])if(L.dataUrl==y){qe._fileInfoCache.delete(R);break}return!0},checkFile:(r,t,e)=>{try{let u=Rt(r.HEAPU8.subarray(t,t+e));return Ve.default.existsSync(u)}catch(u){return Ee(r,u.toString()),!1}},removeFile:(r,t,e)=>{try{let u=Rt(r.HEAPU8.subarray(t,t+e));return Ve.default.rmSync(u)}catch(u){return Ee(r,u.toString()),0}},callScalarUDF:(r,t,e,u,d,y,v)=>{Ai(qe,r,t,e,u,d,y,v)}};var Ep={},T0=(()=>{var r=Ep.url;return function(t){t=t||{};var e=typeof t<"u"?t:{},u,d;e.ready=new Promise(function(i,n){u=i,d=n});var y=Object.assign({},e),v=[],S="./this.program",A=(i,n)=>{throw n},I=typeof window=="object",R=typeof importScripts=="function",L=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",P="";function fe(i){return e.locateFile?e.locateFile(i,P):P+i}var K,z,ee,oe;function be(i){if(i instanceof wi)return;J("exiting due to exception: "+i)}var me,Ae,ie;L?(R?P=require("path").dirname(P)+"/":P=__dirname+"/",ie=()=>{Ae||(me=require("fs"),Ae=require("path"))},K=function(n,a){return ie(),n=Ae.normalize(n),me.readFileSync(n,a?void 0:"utf8")},ee=i=>{var n=K(i,!0);return n.buffer||(n=new Uint8Array(n)),n},z=(i,n,a)=>{ie(),i=Ae.normalize(i),me.readFile(i,function(s,o){s?a(s):n(o.buffer)})},process.argv.length>1&&(S=process.argv[1].replace(/\\/g,"/")),v=process.argv.slice(2),process.on("uncaughtException",function(i){if(!(i instanceof wi))throw i}),process.on("unhandledRejection",function(i){throw i}),A=(i,n)=>{if(zr())throw process.exitCode=i,n;be(n),process.exit(i)},e.inspect=function(){return"[Emscripten Module object]"}):(I||R)&&(R?P=self.location.href:typeof document<"u"&&document.currentScript&&(P=document.currentScript.src),r&&(P=r),P.indexOf("blob:")!==0?P=P.substr(0,P.replace(/[?#].*/,"").lastIndexOf("/")+1):P="",K=i=>{var n=new XMLHttpRequest;return n.open("GET",i,!1),n.send(null),n.responseText},R&&(ee=i=>{var n=new XMLHttpRequest;return n.open("GET",i,!1),n.responseType="arraybuffer",n.send(null),new Uint8Array(n.response)}),z=(i,n,a)=>{var s=new XMLHttpRequest;s.open("GET",i,!0),s.responseType="arraybuffer",s.onload=()=>{if(s.status==200||s.status==0&&s.response){n(s.response);return}a()},s.onerror=a,s.send(null)},oe=i=>document.title=i);var ke=e.print||console.log.bind(console),J=e.printErr||console.warn.bind(console);Object.assign(e,y),y=null,e.arguments&&(v=e.arguments),e.thisProgram&&(S=e.thisProgram),e.quit&&(A=e.quit);var te=0,$=i=>{te=i},pe=()=>te,F;e.wasmBinary&&(F=e.wasmBinary);var ue=e.noExitRuntime||!0;typeof WebAssembly!="object"&&Oe("no native wasm support detected");var ae,Ce=!1,D;function x(i,n){i||Oe(n)}function Pe(i){var n=e["_"+i];return n}function le(i,n,a,s,o){var l={string:function(Y){var de=0;if(Y!=null&&Y!==0){var je=(Y.length<<2)+1;de=it(je),It(Y,de,je)}return de},array:function(Y){var de=it(Y.length);return Qe(Y,de),de}};function c(Y){return n==="string"?xe(Y):n==="boolean"?Boolean(Y):Y}var f=Pe(i),_=[],p=0;if(s)for(var m=0;m<s.length;m++){var k=l[a[m]];k?(p===0&&(p=b()),_[m]=k(s[m])):_[m]=s[m]}var E=f.apply(null,_);function H(Y){return p!==0&&j(p),c(Y)}return E=H(E),E}var Ye=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function We(i,n,a){for(var s=n+a,o=n;i[o]&&!(o>=s);)++o;if(o-n>16&&i.buffer&&Ye)return Ye.decode(i.subarray(n,o));for(var l="";n<o;){var c=i[n++];if(!(c&128)){l+=String.fromCharCode(c);continue}var f=i[n++]&63;if((c&224)==192){l+=String.fromCharCode((c&31)<<6|f);continue}var _=i[n++]&63;if((c&240)==224?c=(c&15)<<12|f<<6|_:c=(c&7)<<18|f<<12|_<<6|i[n++]&63,c<65536)l+=String.fromCharCode(c);else{var p=c-65536;l+=String.fromCharCode(55296|p>>10,56320|p&1023)}}return l}function xe(i,n){return i?We(O,i,n):""}function _t(i,n,a,s){if(!(s>0))return 0;for(var o=a,l=a+s-1,c=0;c<i.length;++c){var f=i.charCodeAt(c);if(f>=55296&&f<=57343){var _=i.charCodeAt(++c);f=65536+((f&1023)<<10)|_&1023}if(f<=127){if(a>=l)break;n[a++]=f}else if(f<=2047){if(a+1>=l)break;n[a++]=192|f>>6,n[a++]=128|f&63}else if(f<=65535){if(a+2>=l)break;n[a++]=224|f>>12,n[a++]=128|f>>6&63,n[a++]=128|f&63}else{if(a+3>=l)break;n[a++]=240|f>>18,n[a++]=128|f>>12&63,n[a++]=128|f>>6&63,n[a++]=128|f&63}}return n[a]=0,a-o}function It(i,n,a){return _t(i,O,n,a)}function bt(i){for(var n=0,a=0;a<i.length;++a){var s=i.charCodeAt(a);s>=55296&&s<=57343&&(s=65536+((s&1023)<<10)|i.charCodeAt(++a)&1023),s<=127?++n:s<=2047?n+=2:s<=65535?n+=3:n+=4}return n}function Qe(i,n){Je.set(i,n)}function se(i,n,a){for(var s=0;s<i.length;++s)Je[n++>>0]=i.charCodeAt(s);a||(Je[n>>0]=0)}var at,Je,O,ve,W,N,Re,He,Fe;function jt(i){at=i,e.HEAP8=Je=new Int8Array(i),e.HEAP16=ve=new Int16Array(i),e.HEAP32=N=new Int32Array(i),e.HEAPU8=O=new Uint8Array(i),e.HEAPU16=W=new Uint16Array(i),e.HEAPU32=Re=new Uint32Array(i),e.HEAPF32=He=new Float32Array(i),e.HEAPF64=Fe=new Float64Array(i)}var At=e.INITIAL_MEMORY||16777216,Kr,kr=[],Vr=[],Yr=[],Qr=[],on=!1;function zr(){return ue}function un(){if(e.preRun)for(typeof e.preRun=="function"&&(e.preRun=[e.preRun]);e.preRun.length;)wt(e.preRun.shift());Jt(kr)}function ln(){on=!0,Jt(Vr)}function cn(){Jt(Yr)}function fn(){if(e.postRun)for(typeof e.postRun=="function"&&(e.postRun=[e.postRun]);e.postRun.length;)Bt(e.postRun.shift());Jt(Qr)}function wt(i){kr.unshift(i)}function Cr(i){Vr.unshift(i)}function Bt(i){Qr.unshift(i)}var kt=0,Sr=null,$e=null;function _n(i){kt++,e.monitorRunDependencies&&e.monitorRunDependencies(kt)}function Xr(i){if(kt--,e.monitorRunDependencies&&e.monitorRunDependencies(kt),kt==0&&(Sr!==null&&(clearInterval(Sr),Sr=null),$e)){var n=$e;$e=null,n()}}function Oe(i){e.onAbort&&e.onAbort(i),i="Aborted("+i+")",J(i),Ce=!0,D=1,i+=". Build with -sASSERTIONS for more info.";var n=new WebAssembly.RuntimeError(i);throw d(n),n}var Jr="data:application/octet-stream;base64,";function Zr(i){return i.startsWith(Jr)}var Ze;e.locateFile?(Ze="./duckdb-mvp.wasm",Zr(Ze)||(Ze=fe(Ze))):Ze=new URL("./duckdb-mvp.wasm",Ep.url).toString();function Lt(i){try{if(i==Ze&&F)return new Uint8Array(F);if(ee)return ee(i);throw"both async and sync fetching of the wasm failed"}catch(n){Oe(n)}}function Xt(){return!F&&(I||R)&&typeof fetch=="function"?fetch(Ze,{credentials:"same-origin"}).then(function(i){if(!i.ok)throw"failed to load wasm binary file at '"+Ze+"'";return i.arrayBuffer()}).catch(function(){return Lt(Ze)}):Promise.resolve().then(function(){return Lt(Ze)})}function ei(){var i={a:Ra};function n(c,f){var _=c.exports;e.asm=_,ae=e.asm.Ve,jt(ae.buffer),Kr=e.asm.Vf,Cr(e.asm.We),Xr("wasm-instantiate")}_n("wasm-instantiate");function a(c){n(c.instance)}function s(c){return Xt().then(function(f){return WebAssembly.instantiate(f,i)}).then(function(f){return f}).then(c,function(f){J("failed to asynchronously prepare wasm: "+f),Oe(f)})}function o(){return!F&&typeof WebAssembly.instantiateStreaming=="function"&&!Zr(Ze)&&typeof fetch=="function"?fetch(Ze,{credentials:"same-origin"}).then(function(c){var f=WebAssembly.instantiateStreaming(c,i);return f.then(a,function(_){return J("wasm streaming compile failed: "+_),J("falling back to ArrayBuffer instantiation"),s(a)})}):s(a)}if(e.instantiateWasm)try{var l=e.instantiateWasm(i,n);return l}catch(c){return J("Module.instantiateWasm callback failed with error: "+c),!1}return o().catch(d),{}}function Jt(i){for(;i.length>0;){var n=i.shift();if(typeof n=="function"){n(e);continue}var a=n.func;typeof a=="number"?n.arg===void 0?Q(a)():Q(a)(n.arg):a(n.arg===void 0?null:n.arg)}}var Zt=[];function Q(i){var n=Zt[i];return n||(i>=Zt.length&&(Zt.length=i+1),Zt[i]=n=Kr.get(i)),n}function dn(i){if(i instanceof wi||i=="unwind")return D;A(1,i)}function pn(i,n,a,s){Oe("Assertion failed: "+xe(i)+", at: "+[n?xe(n):"unknown filename",a,s?xe(s):"unknown function"])}function ti(i){return Ge(i+24)+24}var dt=[];function Er(i){i.add_ref()}var Ut=0;function ri(i){var n=new ut(i);return n.get_caught()||(n.set_caught(!0),Ut--),n.set_rethrown(!1),dt.push(n),Er(n),n.get_exception_ptr()}var et=0;function ut(i){this.excPtr=i,this.ptr=i-24,this.set_type=function(n){N[this.ptr+4>>2]=n},this.get_type=function(){return N[this.ptr+4>>2]},this.set_destructor=function(n){N[this.ptr+8>>2]=n},this.get_destructor=function(){return N[this.ptr+8>>2]},this.set_refcount=function(n){N[this.ptr>>2]=n},this.set_caught=function(n){n=n?1:0,Je[this.ptr+12>>0]=n},this.get_caught=function(){return Je[this.ptr+12>>0]!=0},this.set_rethrown=function(n){n=n?1:0,Je[this.ptr+13>>0]=n},this.get_rethrown=function(){return Je[this.ptr+13>>0]!=0},this.init=function(n,a){this.set_adjusted_ptr(0),this.set_type(n),this.set_destructor(a),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var n=N[this.ptr>>2];N[this.ptr>>2]=n+1},this.release_ref=function(){var n=N[this.ptr>>2];return N[this.ptr>>2]=n-1,n===1},this.set_adjusted_ptr=function(n){N[this.ptr+16>>2]=n},this.get_adjusted_ptr=function(){return N[this.ptr+16>>2]},this.get_exception_ptr=function(){var n=U(this.get_type());if(n)return N[this.excPtr>>2];var a=this.get_adjusted_ptr();return a!==0?a:this.excPtr}}function er(i){return Se(new ut(i).ptr)}function tt(i){if(i.release_ref()&&!i.get_rethrown()){var n=i.get_destructor();n&&Q(n)(i.excPtr),er(i.excPtr)}}function ii(){w(0);var i=dt.pop();tt(i),et=0}function yn(i){throw et||(et=i),i}function hn(){var i=et;if(!i)return $(0),0;var n=new ut(i);n.set_adjusted_ptr(i);var a=n.get_type();if(!a)return $(0),i|0;for(var s=Array.prototype.slice.call(arguments),o=0;o<s.length;o++){var l=s[o];if(l===0||l===a)break;var c=n.ptr+16;if(ft(l,a,c))return $(l),i|0}return $(a),i|0}function mn(){var i=et;if(!i)return $(0),0;var n=new ut(i);n.set_adjusted_ptr(i);var a=n.get_type();if(!a)return $(0),i|0;for(var s=Array.prototype.slice.call(arguments),o=0;o<s.length;o++){var l=s[o];if(l===0||l===a)break;var c=n.ptr+16;if(ft(l,a,c))return $(l),i|0}return $(a),i|0}function vn(){var i=et;if(!i)return $(0),0;var n=new ut(i);n.set_adjusted_ptr(i);var a=n.get_type();if(!a)return $(0),i|0;for(var s=Array.prototype.slice.call(arguments),o=0;o<s.length;o++){var l=s[o];if(l===0||l===a)break;var c=n.ptr+16;if(ft(l,a,c))return $(l),i|0}return $(a),i|0}function gn(){var i=et;if(!i)return $(0),0;var n=new ut(i);n.set_adjusted_ptr(i);var a=n.get_type();if(!a)return $(0),i|0;for(var s=Array.prototype.slice.call(arguments),o=0;o<s.length;o++){var l=s[o];if(l===0||l===a)break;var c=n.ptr+16;if(ft(l,a,c))return $(l),i|0}return $(a),i|0}function bn(){var i=dt.pop();i||Oe("no exception to throw");var n=i.excPtr;throw i.get_rethrown()||(dt.push(i),i.set_rethrown(!0),i.set_caught(!1),Ut++),et=n,n}function jn(i,n,a){var s=new ut(i);throw s.init(n,a),et=i,Ut++,i}function ni(){return Ut}var Ie={buffers:[null,[],[]],printChar:function(i,n){var a=Ie.buffers[i];n===0||n===10?((i===1?ke:J)(We(a,0)),a.length=0):a.push(n)},varargs:void 0,get:function(){Ie.varargs+=4;var i=N[Ie.varargs-4>>2];return i},getStr:function(i){var n=xe(i);return n}};function wn(i,n,a,s,o){}function kn(){J("missing function: $SOCKFS"),Oe(-1)}function ai(){J("missing function: $FS"),Oe(-1)}function Ht(i){var n=kn.getSocket(i);if(!n)throw new ai.ErrnoError(8);return n}function Ar(i){return(i&255)+"."+(i>>8&255)+"."+(i>>16&255)+"."+(i>>24&255)}function si(i){var n="",a=0,s=0,o=0,l=0,c=0,f=0,_=[i[0]&65535,i[0]>>16,i[1]&65535,i[1]>>16,i[2]&65535,i[2]>>16,i[3]&65535,i[3]>>16],p=!0,m="";for(f=0;f<5;f++)if(_[f]!==0){p=!1;break}if(p){if(m=Ar(_[6]|_[7]<<16),_[5]===-1)return n="::ffff:",n+=m,n;if(_[5]===0)return n="::",m==="0.0.0.0"&&(m=""),m==="0.0.0.1"&&(m="1"),n+=m,n}for(a=0;a<8;a++)_[a]===0&&(a-o>1&&(c=0),o=a,c++),c>s&&(s=c,l=a-s+1);for(a=0;a<8;a++){if(s>1&&_[a]===0&&a>=l&&a<l+s){a===l&&(n+=":",l===0&&(n+=":"));continue}n+=Number(ge(_[a]&65535)).toString(16),n+=a<7?":":""}return n}function oi(i,n){var a=ve[i>>1],s=ge(W[i+2>>1]),o;switch(a){case 2:if(n!==16)return{errno:28};o=N[i+4>>2],o=Ar(o);break;case 10:if(n!==28)return{errno:28};o=[N[i+8>>2],N[i+12>>2],N[i+16>>2],N[i+20>>2]],o=si(o);break;default:return{errno:5}}return{family:a,addr:o,port:s}}function tr(i){for(var n=i.split("."),a=0;a<4;a++){var s=Number(n[a]);if(isNaN(s))return null;n[a]=s}return(n[0]|n[1]<<8|n[2]<<16|n[3]<<24)>>>0}function rr(i){return parseInt(i)}function Rr(i){var n,a,s,o,l=/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i,c=[];if(!l.test(i))return null;if(i==="::")return[0,0,0,0,0,0,0,0];for(i.startsWith("::")?i=i.replace("::","Z:"):i=i.replace("::",":Z:"),i.indexOf(".")>0?(i=i.replace(new RegExp("[.]","g"),":"),n=i.split(":"),n[n.length-4]=rr(n[n.length-4])+rr(n[n.length-3])*256,n[n.length-3]=rr(n[n.length-2])+rr(n[n.length-1])*256,n=n.slice(0,n.length-2)):n=i.split(":"),s=0,o=0,a=0;a<n.length;a++)if(typeof n[a]=="string")if(n[a]==="Z"){for(o=0;o<8-n.length+1;o++)c[a+o]=0;s=o-1}else c[a+s]=ye(parseInt(n[a],16));else c[a+s]=n[a];return[c[1]<<16|c[0],c[3]<<16|c[2],c[5]<<16|c[4],c[7]<<16|c[6]]}var rt={address_map:{id:1,addrs:{},names:{}},lookup_name:function(i){var n=tr(i);if(n!==null||(n=Rr(i),n!==null))return i;var a;if(rt.address_map.addrs[i])a=rt.address_map.addrs[i];else{var s=rt.address_map.id++;x(s<65535,"exceeded max address mappings of 65535"),a="172.29."+(s&255)+"."+(s&65280),rt.address_map.names[a]=i,rt.address_map.addrs[i]=a}return a},lookup_addr:function(i){return rt.address_map.names[i]?rt.address_map.names[i]:null}};function ui(i,n,a){if(a&&i===0)return null;var s=oi(i,n);if(s.errno)throw new ai.ErrnoError(s.errno);return s.addr=rt.lookup_addr(s.addr)||s.addr,s}function Cn(i,n,a){var s=Ht(i),o=ui(n,a);return s.sock_ops.bind(s,o.addr,o.port),0}function Sn(i,n,a){var s=Ht(i),o=ui(n,a);return s.sock_ops.connect(s,o.addr,o.port),0}function En(i,n,a,s){return n=Ie.getStr(n),n=Ie.calculateAt(i,n),Ie.doAccess(n,a)}function li(i,n,a){return Ie.varargs=a,0}function An(i,n){}function Rn(i,n,a){}function Tn(i,n,a){}function ci(i,n){O.fill(0,i,i+n)}function Tr(i,n,a,s,o){switch(n){case 2:a=tr(a),ci(i,16),o&&(N[o>>2]=16),ve[i>>1]=n,N[i+4>>2]=a,ve[i+2>>1]=ye(s);break;case 10:a=Rr(a),ci(i,28),o&&(N[o>>2]=28),N[i>>2]=n,N[i+8>>2]=a[0],N[i+12>>2]=a[1],N[i+16>>2]=a[2],N[i+20>>2]=a[3],ve[i+2>>1]=ye(s);break;default:return 5}return 0}function Dn(i,n,a){var s=Ht(i);if(!s.daddr)return-53;var o=Tr(n,s.family,rt.lookup_name(s.daddr),s.dport,a);return 0}function Pn(i,n,a,s,o){var l=Ht(i);return n===1&&a===4?(N[s>>2]=l.error,N[o>>2]=4,l.error=null,0):-50}function xn(i,n,a){return Ie.varargs=a,0}function On(i,n){}function Fn(i,n,a){}function Nn(i,n,a,s){}function Mn(i,n,a,s){Ie.varargs=s}function In(i,n,a,s,o,l){var c=Ht(i),f=c.sock_ops.recvmsg(c,a);if(!f)return 0;if(o)var _=Tr(o,c.family,rt.lookup_name(f.addr),f.port,l);return O.set(f.buffer,n),f.buffer.byteLength}function Bn(i,n,a,s){}function Ln(i){}function Un(i,n,a,s,o,l){}function Hn(i,n,a){}function qn(i,n){}function Wn(i,n,a){}function $n(i){}var fi="To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking";function _i(i,n){Oe(fi)}function Dr(i,n){Oe(fi)}function Gn(){return Date.now()}var Kn=!0;function Vn(){return Kn}function Pr(){Oe("")}function Yn(i,n){return globalThis.DUCKDB_RUNTIME.createDirectory(e,i,n)}function qt(i,n){return globalThis.DUCKDB_RUNTIME.checkDirectory(e,i,n)}function Qn(i,n){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(e,i,n)}function zn(i,n){return globalThis.DUCKDB_RUNTIME.removeDirectory(e,i,n)}function Xn(i){return globalThis.DUCKDB_RUNTIME.closeFile(e,i)}function Jn(i,n){return globalThis.DUCKDB_RUNTIME.checkFile(e,i,n)}function Zn(i){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(e,i)}function ea(i,n,a,s){return globalThis.DUCKDB_RUNTIME.moveFile(e,i,n,a,s)}function ta(i,n){return globalThis.DUCKDB_RUNTIME.openFile(e,i,n)}function ra(i,n,a,s){return globalThis.DUCKDB_RUNTIME.readFile(e,i,n,a,s)}function ia(i,n){return globalThis.DUCKDB_RUNTIME.truncateFile(e,i,n)}function na(i,n,a,s){return globalThis.DUCKDB_RUNTIME.writeFile(e,i,n,a,s)}function aa(i,n){return globalThis.DUCKDB_RUNTIME.glob(e,i,n)}function ir(i){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(e,i)}function sa(i,n,a,s,o,l){return globalThis.DUCKDB_RUNTIME.callScalarUDF(e,i,n,a,s,o,l)}function Wt(){return 2147483648}var xr;L?xr=()=>{var i=process.hrtime();return i[0]*1e3+i[1]/1e6}:xr=()=>performance.now();function di(i,n,a){O.copyWithin(i,n,n+a)}function pi(i){try{return ae.grow(i-at.byteLength+65535>>>16),jt(ae.buffer),1}catch{}}function oa(i){var n=O.length;i=i>>>0;var a=Wt();if(i>a)return!1;let s=(_,p)=>_+(p-_%p)%p;for(var o=1;o<=4;o*=2){var l=n*(1+.2/o);l=Math.min(l,i+100663296);var c=Math.min(a,s(Math.max(i,l),65536)),f=pi(c);if(f)return!0}return!1}var Or={};function ua(){return S||"./this.program"}function $t(){if(!$t.strings){var i=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",n={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:i,_:ua()};for(var a in Or)Or[a]===void 0?delete n[a]:n[a]=Or[a];var s=[];for(var a in n)s.push(a+"="+n[a]);$t.strings=s}return $t.strings}function la(i,n){var a=0;return $t().forEach(function(s,o){var l=n+a;N[i+o*4>>2]=l,se(s,l),a+=s.length+1}),0}function Qo(i,n){var a=$t();N[i>>2]=a.length;var s=0;return a.forEach(function(o){s+=o.length+1}),N[n>>2]=s,0}function ca(i){return 0}function fa(i,n,a,s,o,l){var c=Ie.getStreamFromFD(i),f=Ie.doReadv(c,n,a,s);return N[l>>2]=f,0}function _a(i,n,a,s,o,l){var c=Ie.getStreamFromFD(i),f=Ie.doWritev(c,n,a,s);return N[l>>2]=f,0}function da(i,n,a,s){var o=Ie.getStreamFromFD(i),l=Ie.doReadv(o,n,a);return N[s>>2]=l,0}function pa(i,n,a,s,o){}function ya(i){var n=Ie.getStreamFromFD(i);return n.stream_ops&&n.stream_ops.fsync?-n.stream_ops.fsync(n):0}function ha(i,n,a,s){for(var o=0,l=0;l<a;l++){var c=N[n>>2],f=N[n+4>>2];n+=8;for(var _=0;_<f;_++)Ie.printChar(i,O[c+_]);o+=f}return N[s>>2]=o,0}function ma(){return pe()}function va(i,n,a,s){var o=0,l=0,c=0,f=0,_=0,p=0,m;function k(E,H,Y,de,je,Be){var B,re,Me,Ke;return re=E===10?28:16,je=E===10?si(je):Ar(je),B=Ge(re),Ke=Tr(B,E,je,Be),x(!Ke),Me=Ge(32),N[Me+4>>2]=E,N[Me+8>>2]=H,N[Me+12>>2]=Y,N[Me+24>>2]=de,N[Me+20>>2]=B,E===10?N[Me+16>>2]=28:N[Me+16>>2]=16,N[Me+28>>2]=0,Me}if(a&&(c=N[a>>2],f=N[a+4>>2],_=N[a+8>>2],p=N[a+12>>2]),_&&!p&&(p=_===2?17:6),!_&&p&&(_=p===17?2:1),p===0&&(p=6),_===0&&(_=1),!i&&!n)return-2;if(c&-1088||a!==0&&N[a>>2]&2&&!i)return-1;if(c&32)return-2;if(_!==0&&_!==1&&_!==2)return-7;if(f!==0&&f!==2&&f!==10)return-6;if(n&&(n=xe(n),l=parseInt(n,10),isNaN(l)))return c&1024?-2:-8;if(!i)return f===0&&(f=2),(c&1)===0&&(f===2?o=Z(2130706433):o=[0,0,0,1]),m=k(f,_,p,null,o,l),N[s>>2]=m,0;if(i=xe(i),o=tr(i),o!==null)if(f===0||f===2)f=2;else if(f===10&&c&8)o=[0,0,Z(65535),o],f=10;else return-2;else if(o=Rr(i),o!==null)if(f===0||f===10)f=10;else return-2;return o!=null?(m=k(f,_,p,i,o,l),N[s>>2]=m,0):c&4?-2:(i=rt.lookup_name(i),o=tr(i),f===0?f=2:f===10&&(o=[0,0,Z(65535),o]),m=k(f,_,p,null,o,l),N[s>>2]=m,0)}function ga(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var i=new Uint8Array(1);return function(){return crypto.getRandomValues(i),i[0]}}else if(L)try{var n=require("crypto");return function(){return n.randomBytes(1)[0]}}catch{}return function(){Oe("randomDevice")}}function nr(i,n){nr.randomDevice||(nr.randomDevice=ga());for(var a=0;a<n;a++)Je[i+a>>0]=nr.randomDevice();return 0}function ba(i,n,a,s,o,l,c){var f=oi(i,n);if(f.errno)return-6;var _=f.port,p=f.addr,m=!1;if(a&&s){var k;if(c&1||!(k=rt.lookup_addr(p))){if(c&8)return-2}else p=k;var E=It(p,a,s);E+1>=s&&(m=!0)}if(o&&l){_=""+_;var E=It(_,o,l);E+1>=l&&(m=!0)}return m?-12:0}function ja(i){return i}function wa(i){$(i)}function ar(i){return i%4===0&&(i%100!==0||i%400===0)}function ka(i,n){for(var a=0,s=0;s<=n;a+=i[s++]);return a}var yi=[31,29,31,30,31,30,31,31,30,31,30,31],hi=[31,28,31,30,31,30,31,31,30,31,30,31];function Ca(i,n){for(var a=new Date(i.getTime());n>0;){var s=ar(a.getFullYear()),o=a.getMonth(),l=(s?yi:hi)[o];if(n>l-a.getDate())n-=l-a.getDate()+1,a.setDate(1),o<11?a.setMonth(o+1):(a.setMonth(0),a.setFullYear(a.getFullYear()+1));else return a.setDate(a.getDate()+n),a}return a}function Sa(i,n,a,s){var o=N[s+40>>2],l={tm_sec:N[s>>2],tm_min:N[s+4>>2],tm_hour:N[s+8>>2],tm_mday:N[s+12>>2],tm_mon:N[s+16>>2],tm_year:N[s+20>>2],tm_wday:N[s+24>>2],tm_yday:N[s+28>>2],tm_isdst:N[s+32>>2],tm_gmtoff:N[s+36>>2],tm_zone:o?xe(o):""},c=xe(a),f={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var _ in f)c=c.replace(new RegExp(_,"g"),f[_]);var p=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],m=["January","February","March","April","May","June","July","August","September","October","November","December"];function k(B,re,Me){for(var Ke=typeof B=="number"?B.toString():B||"";Ke.length<re;)Ke=Me[0]+Ke;return Ke}function E(B,re){return k(B,re,"0")}function H(B,re){function Me(ki){return ki<0?-1:ki>0?1:0}var Ke;return(Ke=Me(B.getFullYear()-re.getFullYear()))===0&&(Ke=Me(B.getMonth()-re.getMonth()))===0&&(Ke=Me(B.getDate()-re.getDate())),Ke}function Y(B){switch(B.getDay()){case 0:return new Date(B.getFullYear()-1,11,29);case 1:return B;case 2:return new Date(B.getFullYear(),0,3);case 3:return new Date(B.getFullYear(),0,2);case 4:return new Date(B.getFullYear(),0,1);case 5:return new Date(B.getFullYear()-1,11,31);case 6:return new Date(B.getFullYear()-1,11,30)}}function de(B){var re=Ca(new Date(B.tm_year+1900,0,1),B.tm_yday),Me=new Date(re.getFullYear(),0,4),Ke=new Date(re.getFullYear()+1,0,4),ki=Y(Me),ag=Y(Ke);return H(ki,re)<=0?H(ag,re)<=0?re.getFullYear()+1:re.getFullYear():re.getFullYear()-1}var je={"%a":function(B){return p[B.tm_wday].substring(0,3)},"%A":function(B){return p[B.tm_wday]},"%b":function(B){return m[B.tm_mon].substring(0,3)},"%B":function(B){return m[B.tm_mon]},"%C":function(B){var re=B.tm_year+1900;return E(re/100|0,2)},"%d":function(B){return E(B.tm_mday,2)},"%e":function(B){return k(B.tm_mday,2," ")},"%g":function(B){return de(B).toString().substring(2)},"%G":function(B){return de(B)},"%H":function(B){return E(B.tm_hour,2)},"%I":function(B){var re=B.tm_hour;return re==0?re=12:re>12&&(re-=12),E(re,2)},"%j":function(B){return E(B.tm_mday+ka(ar(B.tm_year+1900)?yi:hi,B.tm_mon-1),3)},"%m":function(B){return E(B.tm_mon+1,2)},"%M":function(B){return E(B.tm_min,2)},"%n":function(){return`
3
- `},"%p":function(B){return B.tm_hour>=0&&B.tm_hour<12?"AM":"PM"},"%S":function(B){return E(B.tm_sec,2)},"%t":function(){return" "},"%u":function(B){return B.tm_wday||7},"%U":function(B){var re=B.tm_yday+7-B.tm_wday;return E(Math.floor(re/7),2)},"%V":function(B){var re=Math.floor((B.tm_yday+7-(B.tm_wday+6)%7)/7);if((B.tm_wday+371-B.tm_yday-2)%7<=2&&re++,re){if(re==53){var Ke=(B.tm_wday+371-B.tm_yday)%7;Ke!=4&&(Ke!=3||!ar(B.tm_year))&&(re=1)}}else{re=52;var Me=(B.tm_wday+7-B.tm_yday-1)%7;(Me==4||Me==5&&ar(B.tm_year%400-1))&&re++}return E(re,2)},"%w":function(B){return B.tm_wday},"%W":function(B){var re=B.tm_yday+7-(B.tm_wday+6)%7;return E(Math.floor(re/7),2)},"%y":function(B){return(B.tm_year+1900).toString().substring(2)},"%Y":function(B){return B.tm_year+1900},"%z":function(B){var re=B.tm_gmtoff,Me=re>=0;return re=Math.abs(re)/60,re=re/60*100+re%60,(Me?"+":"-")+String("0000"+re).slice(-4)},"%Z":function(B){return B.tm_zone},"%%":function(){return"%"}};c=c.replace(/%%/g,"\0\0");for(var _ in je)c.includes(_)&&(c=c.replace(new RegExp(_,"g"),je[_](l)));c=c.replace(/\0\0/g,"%");var Be=Aa(c,!1);return Be.length>n?0:(Qe(Be,i),Be.length-1)}function Ea(i,n,a,s){return Sa(i,n,a,s)}function Aa(i,n,a){var s=a>0?a:bt(i)+1,o=new Array(s),l=_t(i,o,0,o.length);return n&&(o.length=l),o}var Ra={p:pn,j:ti,C:ri,G:ii,b:hn,n:mn,J:vn,_:gn,i:er,fa:bn,w:jn,F:ni,e:yn,Ba:wn,Da:Cn,Ca:Sn,va:En,T:li,Oa:An,ve:Rn,Ka:Tn,xa:Dn,Aa:Pn,Qa:xn,La:On,Pa:Fn,Ma:Nn,ma:Mn,ya:In,Te:Bn,ka:Ln,za:Un,ja:Hn,Na:qn,la:Wn,Fa:$n,Ha:_i,Ga:Dr,Sa:Gn,Ra:Vn,ba:Pr,Le:Yn,Me:qt,Je:Qn,Ke:zn,ta:Xn,He:Jn,Oe:Zn,Ie:ea,Pe:ta,ha:ra,Ne:ia,ua:na,Ge:aa,sa:ir,Qe:sa,Ta:Wt,oe:xr,nb:di,hd:oa,Va:la,Wa:Qo,Y:ca,ue:fa,rb:_a,oa:da,De:pa,Ue:ya,ga:ha,a:ma,Ea:va,Ja:nr,wa:ba,qa:Ey,P:dy,X:Up,Cd:Eh,ra:Sy,Z:_y,pa:Lp,Dd:Sh,x:Vp,da:ly,t:ny,$:oy,ea:uy,u:iy,d:xp,ca:gy,O:my,mc:Um,c:Op,W:vy,h:Np,ic:$m,m:Bp,na:ey,o:Mp,y:Qp,A:$p,Q:sy,U:ay,cb:Gp,z:zp,B:Kp,L:jy,r:hy,Nc:pm,Yc:im,$c:em,ed:Qh,Oc:dm,jc:Wm,Bd:Ah,Zc:rm,fd:Yh,ab:Qv,ze:xy,Td:lh,ec:Ym,Rc:cm,ye:Oy,sc:Fm,Pb:fv,Ya:Zv,Xa:eg,Ud:uh,Sd:ch,xb:Tv,Xb:iv,de:Xy,nd:Hh,tc:Om,hc:Gm,ke:$y,Yd:nh,Hd:jh,fc:Vm,Ub:sv,Xd:ah,pb:Mv,Zd:ih,qe:Ly,Vd:oh,Ob:_v,kc:qm,lc:Hm,zb:Av,jb:Hv,$a:zv,xe:Fy,ce:Jy,_b:ev,wb:Dv,$b:Zm,kb:Uv,Ab:Ev,Wd:sh,ac:Jm,dc:Qm,cc:zm,bc:Xm,Xc:nm,cd:Xh,Fc:wm,he:Vy,Cc:Sm,gd:Vh,be:Zy,se:Iy,ld:Wh,kd:$h,Ce:Ty,Be:Dy,Pd:dh,Fe:Ay,qd:Bh,jd:Gh,Pc:_m,od:Uh,yd:Dh,pc:Im,Sc:lm,Id:bh,Jc:vm,Qb:cv,zd:Th,xd:Ph,Gc:jm,Uc:om,wc:Pm,Lc:hm,Gd:wh,Ad:Rh,Dc:Cm,Lb:yv,Za:Jv,Ic:gm,Hc:bm,Jb:mv,md:qh,Bb:Sv,Kc:mm,yc:Tm,Cb:Cv,Db:kv,xc:Dm,v:Dp,k:Fp,D:fy,tb:Ov,K:cy,ub:xv,f:Pp,R:qp,V:wy,uc:Hp,g:Wp,l:Ip,Se:ky,s:ry,q:Zp,ia:by,E:Yp,N:ty,S:yy,M:Xp,Re:Cy,Ia:py,aa:Jp,pd:Lh,sb:Fv,Qc:fm,Ac:Am,wd:xh,dd:zh,nc:Lm,mb:Bv,me:qy,Jd:gh,Yb:rv,hb:Wv,Vc:sm,Wc:am,zc:Rm,Vb:av,Hb:gv,qc:Mm,oc:Bm,vd:Oh,le:Wy,id:Kh,Fd:kh,Wb:nv,td:Nh,_d:rh,_a:Xv,$d:th,lb:Lv,fe:Qy,ae:eh,rc:Nm,rd:Ih,Nd:yh,ie:Ky,ib:qv,te:My,we:Ny,Ae:Py,Md:hh,gb:$v,Kd:vh,Eb:wv,ud:Fh,Mb:pv,Ib:vv,Rb:lv,ob:Iv,Od:ph,fb:Gv,sd:Mh,Tc:um,Ee:Ry,pe:Uy,Nb:dv,ee:zy,_c:tm,ne:Hy,ge:Yy,gc:Km,Rd:fh,Qd:_h,Kb:hv,vb:Pv,Gb:bv,Mc:ym,bd:Jh,je:Gy,eb:Kv,Ld:mh,qb:Nv,Ed:Ch,vc:xm,bb:Yv,db:Vv,ad:Zh,re:By,Tb:ov,yb:Rv,Bc:Em,Ec:km,Fb:jv,Zb:tv,Sb:uv,I:ja,H:wa,Ua:Ea},zo=ei(),Ta=e.___wasm_call_ctors=function(){return(Ta=e.___wasm_call_ctors=e.asm.We).apply(null,arguments)},Da=e._main=function(){return(Da=e._main=e.asm.Xe).apply(null,arguments)},Pa=e._duckdb_web_fs_glob_add_path=function(){return(Pa=e._duckdb_web_fs_glob_add_path=e.asm.Ye).apply(null,arguments)},xa=e._duckdb_web_clear_response=function(){return(xa=e._duckdb_web_clear_response=e.asm.Ze).apply(null,arguments)},Oa=e._duckdb_web_fail_with=function(){return(Oa=e._duckdb_web_fail_with=e.asm._e).apply(null,arguments)},Fa=e._duckdb_web_reset=function(){return(Fa=e._duckdb_web_reset=e.asm.$e).apply(null,arguments)},Na=e._duckdb_web_connect=function(){return(Na=e._duckdb_web_connect=e.asm.af).apply(null,arguments)},Ma=e._duckdb_web_disconnect=function(){return(Ma=e._duckdb_web_disconnect=e.asm.bf).apply(null,arguments)},Ia=e._duckdb_web_flush_files=function(){return(Ia=e._duckdb_web_flush_files=e.asm.cf).apply(null,arguments)},Ba=e._duckdb_web_flush_file=function(){return(Ba=e._duckdb_web_flush_file=e.asm.df).apply(null,arguments)},La=e._duckdb_web_open=function(){return(La=e._duckdb_web_open=e.asm.ef).apply(null,arguments)},Ua=e._duckdb_web_get_global_file_info=function(){return(Ua=e._duckdb_web_get_global_file_info=e.asm.ff).apply(null,arguments)},Ha=e._duckdb_web_collect_file_stats=function(){return(Ha=e._duckdb_web_collect_file_stats=e.asm.gf).apply(null,arguments)},qa=e._duckdb_web_export_file_stats=function(){return(qa=e._duckdb_web_export_file_stats=e.asm.hf).apply(null,arguments)},Wa=e._duckdb_web_fs_drop_file=function(){return(Wa=e._duckdb_web_fs_drop_file=e.asm.jf).apply(null,arguments)},$a=e._duckdb_web_fs_drop_files=function(){return($a=e._duckdb_web_fs_drop_files=e.asm.kf).apply(null,arguments)},Ga=e._duckdb_web_fs_glob_file_infos=function(){return(Ga=e._duckdb_web_fs_glob_file_infos=e.asm.lf).apply(null,arguments)},sr=e._duckdb_web_fs_get_file_info_by_id=function(){return(sr=e._duckdb_web_fs_get_file_info_by_id=e.asm.mf).apply(null,arguments)},or=e._duckdb_web_fs_get_file_info_by_name=function(){return(or=e._duckdb_web_fs_get_file_info_by_name=e.asm.nf).apply(null,arguments)},Fr=e._duckdb_web_fs_set_file_descriptor=function(){return(Fr=e._duckdb_web_fs_set_file_descriptor=e.asm.of).apply(null,arguments)},Nr=e._duckdb_web_fs_register_file_url=function(){return(Nr=e._duckdb_web_fs_register_file_url=e.asm.pf).apply(null,arguments)},Ka=e._duckdb_web_fs_register_file_buffer=function(){return(Ka=e._duckdb_web_fs_register_file_buffer=e.asm.qf).apply(null,arguments)},mi=e._duckdb_web_copy_file_to_buffer=function(){return(mi=e._duckdb_web_copy_file_to_buffer=e.asm.rf).apply(null,arguments)},vi=e._duckdb_web_copy_file_to_path=function(){return(vi=e._duckdb_web_copy_file_to_path=e.asm.sf).apply(null,arguments)},Mr=e._duckdb_web_get_version=function(){return(Mr=e._duckdb_web_get_version=e.asm.tf).apply(null,arguments)},ur=e._duckdb_web_get_feature_flags=function(){return(ur=e._duckdb_web_get_feature_flags=e.asm.uf).apply(null,arguments)},lr=e._duckdb_web_tokenize=function(){return(lr=e._duckdb_web_tokenize=e.asm.vf).apply(null,arguments)},Va=e._duckdb_web_udf_scalar_create=function(){return(Va=e._duckdb_web_udf_scalar_create=e.asm.wf).apply(null,arguments)},Ya=e._duckdb_web_prepared_create=function(){return(Ya=e._duckdb_web_prepared_create=e.asm.xf).apply(null,arguments)},Ir=e._duckdb_web_prepared_close=function(){return(Ir=e._duckdb_web_prepared_close=e.asm.yf).apply(null,arguments)},Qa=e._duckdb_web_prepared_run=function(){return(Qa=e._duckdb_web_prepared_run=e.asm.zf).apply(null,arguments)},za=e._duckdb_web_prepared_send=function(){return(za=e._duckdb_web_prepared_send=e.asm.Af).apply(null,arguments)},gi=e._duckdb_web_query_run=function(){return(gi=e._duckdb_web_query_run=e.asm.Bf).apply(null,arguments)},h=e._duckdb_web_pending_query_start=function(){return(h=e._duckdb_web_pending_query_start=e.asm.Cf).apply(null,arguments)},g=e._duckdb_web_pending_query_poll=function(){return(g=e._duckdb_web_pending_query_poll=e.asm.Df).apply(null,arguments)},C=e._duckdb_web_pending_query_cancel=function(){return(C=e._duckdb_web_pending_query_cancel=e.asm.Ef).apply(null,arguments)},T=e._duckdb_web_query_fetch_results=function(){return(T=e._duckdb_web_query_fetch_results=e.asm.Ff).apply(null,arguments)},M=e._duckdb_web_get_tablenames=function(){return(M=e._duckdb_web_get_tablenames=e.asm.Gf).apply(null,arguments)},X=e._duckdb_web_insert_arrow_from_ipc_stream=function(){return(X=e._duckdb_web_insert_arrow_from_ipc_stream=e.asm.Hf).apply(null,arguments)},G=e._duckdb_web_insert_csv_from_path=function(){return(G=e._duckdb_web_insert_csv_from_path=e.asm.If).apply(null,arguments)},q=e._duckdb_web_insert_json_from_path=function(){return(q=e._duckdb_web_insert_json_from_path=e.asm.Jf).apply(null,arguments)},Z=e._htonl=function(){return(Z=e._htonl=e.asm.Kf).apply(null,arguments)},ye=e._htons=function(){return(ye=e._htons=e.asm.Lf).apply(null,arguments)},ge=e._ntohs=function(){return(ge=e._ntohs=e.asm.Mf).apply(null,arguments)},Ge=e._malloc=function(){return(Ge=e._malloc=e.asm.Nf).apply(null,arguments)},Se=e._free=function(){return(Se=e._free=e.asm.Of).apply(null,arguments)},w=e._setThrew=function(){return(w=e._setThrew=e.asm.Pf).apply(null,arguments)},b=e.stackSave=function(){return(b=e.stackSave=e.asm.Qf).apply(null,arguments)},j=e.stackRestore=function(){return(j=e.stackRestore=e.asm.Rf).apply(null,arguments)},it=e.stackAlloc=function(){return(it=e.stackAlloc=e.asm.Sf).apply(null,arguments)},ft=e.___cxa_can_catch=function(){return(ft=e.___cxa_can_catch=e.asm.Tf).apply(null,arguments)},U=e.___cxa_is_pointer_type=function(){return(U=e.___cxa_is_pointer_type=e.asm.Uf).apply(null,arguments)},ne=e.dynCall_jiiii=function(){return(ne=e.dynCall_jiiii=e.asm.Wf).apply(null,arguments)},Te=e.dynCall_iiiiij=function(){return(Te=e.dynCall_iiiiij=e.asm.Xf).apply(null,arguments)},Ue=e.dynCall_iiiiijj=function(){return(Ue=e.dynCall_iiiiijj=e.asm.Yf).apply(null,arguments)},Gt=e.dynCall_viijii=function(){return(Gt=e.dynCall_viijii=e.asm.Zf).apply(null,arguments)},bi=e.dynCall_j=function(){return(bi=e.dynCall_j=e.asm._f).apply(null,arguments)},Xo=e.dynCall_ji=function(){return(Xo=e.dynCall_ji=e.asm.$f).apply(null,arguments)},Jo=e.dynCall_iij=function(){return(Jo=e.dynCall_iij=e.asm.ag).apply(null,arguments)},Zo=e.dynCall_viij=function(){return(Zo=e.dynCall_viij=e.asm.bg).apply(null,arguments)},eu=e.dynCall_viijji=function(){return(eu=e.dynCall_viijji=e.asm.cg).apply(null,arguments)},tu=e.dynCall_viijj=function(){return(tu=e.dynCall_viijj=e.asm.dg).apply(null,arguments)},ru=e.dynCall_viiijj=function(){return(ru=e.dynCall_viiijj=e.asm.eg).apply(null,arguments)},iu=e.dynCall_viiji=function(){return(iu=e.dynCall_viiji=e.asm.fg).apply(null,arguments)},nu=e.dynCall_vijjj=function(){return(nu=e.dynCall_vijjj=e.asm.gg).apply(null,arguments)},au=e.dynCall_iiijj=function(){return(au=e.dynCall_iiijj=e.asm.hg).apply(null,arguments)},su=e.dynCall_viiij=function(){return(su=e.dynCall_viiij=e.asm.ig).apply(null,arguments)},ou=e.dynCall_viijij=function(){return(ou=e.dynCall_viijij=e.asm.jg).apply(null,arguments)},uu=e.dynCall_iiij=function(){return(uu=e.dynCall_iiij=e.asm.kg).apply(null,arguments)},lu=e.dynCall_vijijj=function(){return(lu=e.dynCall_vijijj=e.asm.lg).apply(null,arguments)},cu=e.dynCall_viiijjj=function(){return(cu=e.dynCall_viiijjj=e.asm.mg).apply(null,arguments)},fu=e.dynCall_iji=function(){return(fu=e.dynCall_iji=e.asm.ng).apply(null,arguments)},_u=e.dynCall_viji=function(){return(_u=e.dynCall_viji=e.asm.og).apply(null,arguments)},du=e.dynCall_vij=function(){return(du=e.dynCall_vij=e.asm.pg).apply(null,arguments)},pu=e.dynCall_viiiij=function(){return(pu=e.dynCall_viiiij=e.asm.qg).apply(null,arguments)},yu=e.dynCall_jii=function(){return(yu=e.dynCall_jii=e.asm.rg).apply(null,arguments)},hu=e.dynCall_iiji=function(){return(hu=e.dynCall_iiji=e.asm.sg).apply(null,arguments)},mu=e.dynCall_iiiij=function(){return(mu=e.dynCall_iiiij=e.asm.tg).apply(null,arguments)},vu=e.dynCall_iiiiiji=function(){return(vu=e.dynCall_iiiiiji=e.asm.ug).apply(null,arguments)},gu=e.dynCall_iiiji=function(){return(gu=e.dynCall_iiiji=e.asm.vg).apply(null,arguments)},bu=e.dynCall_iiiiji=function(){return(bu=e.dynCall_iiiiji=e.asm.wg).apply(null,arguments)},ju=e.dynCall_jiii=function(){return(ju=e.dynCall_jiii=e.asm.xg).apply(null,arguments)},wu=e.dynCall_jij=function(){return(wu=e.dynCall_jij=e.asm.yg).apply(null,arguments)},ku=e.dynCall_viijiiiii=function(){return(ku=e.dynCall_viijiiiii=e.asm.zg).apply(null,arguments)},Cu=e.dynCall_iiijii=function(){return(Cu=e.dynCall_iiijii=e.asm.Ag).apply(null,arguments)},Su=e.dynCall_jiijii=function(){return(Su=e.dynCall_jiijii=e.asm.Bg).apply(null,arguments)},Eu=e.dynCall_viiijii=function(){return(Eu=e.dynCall_viiijii=e.asm.Cg).apply(null,arguments)},Au=e.dynCall_fiijii=function(){return(Au=e.dynCall_fiijii=e.asm.Dg).apply(null,arguments)},Ru=e.dynCall_diijii=function(){return(Ru=e.dynCall_diijii=e.asm.Eg).apply(null,arguments)},Tu=e.dynCall_iiiiiiijii=function(){return(Tu=e.dynCall_iiiiiiijii=e.asm.Fg).apply(null,arguments)},Du=e.dynCall_vijj=function(){return(Du=e.dynCall_vijj=e.asm.Gg).apply(null,arguments)},Pu=e.dynCall_jiiijii=function(){return(Pu=e.dynCall_jiiijii=e.asm.Hg).apply(null,arguments)},xu=e.dynCall_jiijiii=function(){return(xu=e.dynCall_jiijiii=e.asm.Ig).apply(null,arguments)},Ou=e.dynCall_viiiiji=function(){return(Ou=e.dynCall_viiiiji=e.asm.Jg).apply(null,arguments)},Fu=e.dynCall_jiiiijii=function(){return(Fu=e.dynCall_jiiiijii=e.asm.Kg).apply(null,arguments)},Nu=e.dynCall_jiiiiijiiii=function(){return(Nu=e.dynCall_jiiiiijiiii=e.asm.Lg).apply(null,arguments)},Mu=e.dynCall_jiiijiii=function(){return(Mu=e.dynCall_jiiijiii=e.asm.Mg).apply(null,arguments)},Iu=e.dynCall_viiiiijiiii=function(){return(Iu=e.dynCall_viiiiijiiii=e.asm.Ng).apply(null,arguments)},Bu=e.dynCall_viiijjij=function(){return(Bu=e.dynCall_viiijjij=e.asm.Og).apply(null,arguments)},Lu=e.dynCall_viijiii=function(){return(Lu=e.dynCall_viijiii=e.asm.Pg).apply(null,arguments)},Uu=e.dynCall_vijijjiij=function(){return(Uu=e.dynCall_vijijjiij=e.asm.Qg).apply(null,arguments)},Hu=e.dynCall_viiijjiij=function(){return(Hu=e.dynCall_viiijjiij=e.asm.Rg).apply(null,arguments)},qu=e.dynCall_viiiijjjj=function(){return(qu=e.dynCall_viiiijjjj=e.asm.Sg).apply(null,arguments)},Wu=e.dynCall_viijiiiiij=function(){return(Wu=e.dynCall_viijiiiiij=e.asm.Tg).apply(null,arguments)},$u=e.dynCall_viiijiiiijjj=function(){return($u=e.dynCall_viiijiiiijjj=e.asm.Ug).apply(null,arguments)},Gu=e.dynCall_viijijiiiijjj=function(){return(Gu=e.dynCall_viijijiiiijjj=e.asm.Vg).apply(null,arguments)},Ku=e.dynCall_jj=function(){return(Ku=e.dynCall_jj=e.asm.Wg).apply(null,arguments)},Vu=e.dynCall_jd=function(){return(Vu=e.dynCall_jd=e.asm.Xg).apply(null,arguments)},Yu=e.dynCall_jf=function(){return(Yu=e.dynCall_jf=e.asm.Yg).apply(null,arguments)},Qu=e.dynCall_iijjj=function(){return(Qu=e.dynCall_iijjj=e.asm.Zg).apply(null,arguments)},zu=e.dynCall_iiijji=function(){return(zu=e.dynCall_iiijji=e.asm._g).apply(null,arguments)},Xu=e.dynCall_vijijiiiijjj=function(){return(Xu=e.dynCall_vijijiiiijjj=e.asm.$g).apply(null,arguments)},Ju=e.dynCall_viiiiiij=function(){return(Ju=e.dynCall_viiiiiij=e.asm.ah).apply(null,arguments)},Zu=e.dynCall_iiiiiiji=function(){return(Zu=e.dynCall_iiiiiiji=e.asm.bh).apply(null,arguments)},el=e.dynCall_iiiiiiiiji=function(){return(el=e.dynCall_iiiiiiiiji=e.asm.ch).apply(null,arguments)},tl=e.dynCall_viiiiijj=function(){return(tl=e.dynCall_viiiiijj=e.asm.dh).apply(null,arguments)},rl=e.dynCall_vijiii=function(){return(rl=e.dynCall_vijiii=e.asm.eh).apply(null,arguments)},il=e.dynCall_viijjj=function(){return(il=e.dynCall_viijjj=e.asm.fh).apply(null,arguments)},nl=e.dynCall_vijjij=function(){return(nl=e.dynCall_vijjij=e.asm.gh).apply(null,arguments)},al=e.dynCall_jiiiii=function(){return(al=e.dynCall_jiiiii=e.asm.hh).apply(null,arguments)},sl=e.dynCall_viijjji=function(){return(sl=e.dynCall_viijjji=e.asm.ih).apply(null,arguments)},ol=e.dynCall_vijiiii=function(){return(ol=e.dynCall_vijiiii=e.asm.jh).apply(null,arguments)},ul=e.dynCall_iijjijj=function(){return(ul=e.dynCall_iijjijj=e.asm.kh).apply(null,arguments)},ll=e.dynCall_viiiijiiiii=function(){return(ll=e.dynCall_viiiijiiiii=e.asm.lh).apply(null,arguments)},cl=e.dynCall_viiiijiiii=function(){return(cl=e.dynCall_viiiijiiii=e.asm.mh).apply(null,arguments)},fl=e.dynCall_iiiiiij=function(){return(fl=e.dynCall_iiiiiij=e.asm.nh).apply(null,arguments)},_l=e.dynCall_iiiiiiiiiiji=function(){return(_l=e.dynCall_iiiiiiiiiiji=e.asm.oh).apply(null,arguments)},dl=e.dynCall_iiiiiiiij=function(){return(dl=e.dynCall_iiiiiiiij=e.asm.ph).apply(null,arguments)},pl=e.dynCall_jiiijjj=function(){return(pl=e.dynCall_jiiijjj=e.asm.qh).apply(null,arguments)},yl=e.dynCall_viijijj=function(){return(yl=e.dynCall_viijijj=e.asm.rh).apply(null,arguments)},hl=e.dynCall_jiiiiji=function(){return(hl=e.dynCall_jiiiiji=e.asm.sh).apply(null,arguments)},ml=e.dynCall_iiiiijij=function(){return(ml=e.dynCall_iiiiijij=e.asm.th).apply(null,arguments)},vl=e.dynCall_viiiiiji=function(){return(vl=e.dynCall_viiiiiji=e.asm.uh).apply(null,arguments)},gl=e.dynCall_jiiiiiii=function(){return(gl=e.dynCall_jiiiiiii=e.asm.vh).apply(null,arguments)},bl=e.dynCall_vijiji=function(){return(bl=e.dynCall_vijiji=e.asm.wh).apply(null,arguments)},jl=e.dynCall_jiiiij=function(){return(jl=e.dynCall_jiiiij=e.asm.xh).apply(null,arguments)},wl=e.dynCall_jijjij=function(){return(wl=e.dynCall_jijjij=e.asm.yh).apply(null,arguments)},kl=e.dynCall_viiiijiiiiiiii=function(){return(kl=e.dynCall_viiiijiiiiiiii=e.asm.zh).apply(null,arguments)},Cl=e.dynCall_ij=function(){return(Cl=e.dynCall_ij=e.asm.Ah).apply(null,arguments)},Sl=e.dynCall_jjj=function(){return(Sl=e.dynCall_jjj=e.asm.Bh).apply(null,arguments)},El=e.dynCall_jiiji=function(){return(El=e.dynCall_jiiji=e.asm.Ch).apply(null,arguments)},Al=e.dynCall_jjiji=function(){return(Al=e.dynCall_jjiji=e.asm.Dh).apply(null,arguments)},Rl=e.dynCall_jiiij=function(){return(Rl=e.dynCall_jiiij=e.asm.Eh).apply(null,arguments)},Tl=e.dynCall_jijij=function(){return(Tl=e.dynCall_jijij=e.asm.Fh).apply(null,arguments)},Dl=e.dynCall_jijj=function(){return(Dl=e.dynCall_jijj=e.asm.Gh).apply(null,arguments)},Pl=e.dynCall_jiiijj=function(){return(Pl=e.dynCall_jiiijj=e.asm.Hh).apply(null,arguments)},xl=e.dynCall_vjii=function(){return(xl=e.dynCall_vjii=e.asm.Ih).apply(null,arguments)},Ol=e.dynCall_jjjjjjd=function(){return(Ol=e.dynCall_jjjjjjd=e.asm.Jh).apply(null,arguments)},Fl=e.dynCall_viiiji=function(){return(Fl=e.dynCall_viiiji=e.asm.Kh).apply(null,arguments)},Nl=e.dynCall_ijii=function(){return(Nl=e.dynCall_ijii=e.asm.Lh).apply(null,arguments)},Ml=e.dynCall_vjiiii=function(){return(Ml=e.dynCall_vjiiii=e.asm.Mh).apply(null,arguments)},Il=e.dynCall_viiiiijiii=function(){return(Il=e.dynCall_viiiiijiii=e.asm.Nh).apply(null,arguments)},Bl=e.dynCall_jiij=function(){return(Bl=e.dynCall_jiij=e.asm.Oh).apply(null,arguments)},Ll=e.dynCall_vijji=function(){return(Ll=e.dynCall_vijji=e.asm.Ph).apply(null,arguments)},Ul=e.dynCall_iiiijjii=function(){return(Ul=e.dynCall_iiiijjii=e.asm.Qh).apply(null,arguments)},Hl=e.dynCall_iiiiijji=function(){return(Hl=e.dynCall_iiiiijji=e.asm.Rh).apply(null,arguments)},ql=e.dynCall_viiijjii=function(){return(ql=e.dynCall_viiijjii=e.asm.Sh).apply(null,arguments)},Wl=e.dynCall_viiiijji=function(){return(Wl=e.dynCall_viiiijji=e.asm.Th).apply(null,arguments)},$l=e.dynCall_viiiijjii=function(){return($l=e.dynCall_viiiijjii=e.asm.Uh).apply(null,arguments)},Gl=e.dynCall_viiiiijji=function(){return(Gl=e.dynCall_viiiiijji=e.asm.Vh).apply(null,arguments)},Kl=e.dynCall_iidj=function(){return(Kl=e.dynCall_iidj=e.asm.Wh).apply(null,arguments)},Vl=e.dynCall_ijji=function(){return(Vl=e.dynCall_ijji=e.asm.Xh).apply(null,arguments)},Yl=e.dynCall_iiiiiiij=function(){return(Yl=e.dynCall_iiiiiiij=e.asm.Yh).apply(null,arguments)},Ql=e.dynCall_iiiiiiiiiiiij=function(){return(Ql=e.dynCall_iiiiiiiiiiiij=e.asm.Zh).apply(null,arguments)},zl=e.dynCall_iiijjiiji=function(){return(zl=e.dynCall_iiijjiiji=e.asm._h).apply(null,arguments)},Xl=e.dynCall_iiijjiij=function(){return(Xl=e.dynCall_iiijjiij=e.asm.$h).apply(null,arguments)},Jl=e.dynCall_iiiiiiiji=function(){return(Jl=e.dynCall_iiiiiiiji=e.asm.ai).apply(null,arguments)},Zl=e.dynCall_iiiidjj=function(){return(Zl=e.dynCall_iiiidjj=e.asm.bi).apply(null,arguments)},ec=e.dynCall_iiiijjj=function(){return(ec=e.dynCall_iiiijjj=e.asm.ci).apply(null,arguments)},tc=e.dynCall_vijii=function(){return(tc=e.dynCall_vijii=e.asm.di).apply(null,arguments)},rc=e.dynCall_jiiiiiijii=function(){return(rc=e.dynCall_jiiiiiijii=e.asm.ei).apply(null,arguments)},ic=e.dynCall_iiiijji=function(){return(ic=e.dynCall_iiiijji=e.asm.fi).apply(null,arguments)},nc=e.dynCall_viiijji=function(){return(nc=e.dynCall_viiijji=e.asm.gi).apply(null,arguments)},ac=e.dynCall_jiiiiii=function(){return(ac=e.dynCall_jiiiiii=e.asm.hi).apply(null,arguments)},sc=e.dynCall_iiijiii=function(){return(sc=e.dynCall_iiijiii=e.asm.ii).apply(null,arguments)},oc=e.dynCall_iiiiijii=function(){return(oc=e.dynCall_iiiiijii=e.asm.ji).apply(null,arguments)},uc=e.dynCall_iiijiij=function(){return(uc=e.dynCall_iiijiij=e.asm.ki).apply(null,arguments)},lc=e.dynCall_iijjii=function(){return(lc=e.dynCall_iijjii=e.asm.li).apply(null,arguments)},cc=e.dynCall_iijjiii=function(){return(cc=e.dynCall_iijjiii=e.asm.mi).apply(null,arguments)},fc=e.dynCall_iijjiiii=function(){return(fc=e.dynCall_iijjiiii=e.asm.ni).apply(null,arguments)},_c=e.dynCall_iijji=function(){return(_c=e.dynCall_iijji=e.asm.oi).apply(null,arguments)},dc=e.dynCall_iijiiii=function(){return(dc=e.dynCall_iijiiii=e.asm.pi).apply(null,arguments)},pc=e.dynCall_iijii=function(){return(pc=e.dynCall_iijii=e.asm.qi).apply(null,arguments)},yc=e.dynCall_vjjii=function(){return(yc=e.dynCall_vjjii=e.asm.ri).apply(null,arguments)},hc=e.dynCall_viiiijii=function(){return(hc=e.dynCall_viiiijii=e.asm.si).apply(null,arguments)},mc=e.dynCall_iiiijiii=function(){return(mc=e.dynCall_iiiijiii=e.asm.ti).apply(null,arguments)},vc=e.dynCall_iiijij=function(){return(vc=e.dynCall_iiijij=e.asm.ui).apply(null,arguments)},gc=e.dynCall_iijj=function(){return(gc=e.dynCall_iijj=e.asm.vi).apply(null,arguments)},bc=e.dynCall_iiiijj=function(){return(bc=e.dynCall_iiiijj=e.asm.wi).apply(null,arguments)},jc=e.dynCall_viiijiii=function(){return(jc=e.dynCall_viiijiii=e.asm.xi).apply(null,arguments)},wc=e.dynCall_viiiijij=function(){return(wc=e.dynCall_viiiijij=e.asm.yi).apply(null,arguments)},kc=e.dynCall_iiijiiii=function(){return(kc=e.dynCall_iiijiiii=e.asm.zi).apply(null,arguments)},Cc=e.dynCall_iiiiijjiijj=function(){return(Cc=e.dynCall_iiiiijjiijj=e.asm.Ai).apply(null,arguments)},Sc=e.dynCall_viijiiji=function(){return(Sc=e.dynCall_viijiiji=e.asm.Bi).apply(null,arguments)},Ec=e.dynCall_iiijjii=function(){return(Ec=e.dynCall_iiijjii=e.asm.Ci).apply(null,arguments)},Ac=e.dynCall_vjjijij=function(){return(Ac=e.dynCall_vjjijij=e.asm.Di).apply(null,arguments)},Rc=e.dynCall_vijjji=function(){return(Rc=e.dynCall_vijjji=e.asm.Ei).apply(null,arguments)},Tc=e.dynCall_jiiiji=function(){return(Tc=e.dynCall_jiiiji=e.asm.Fi).apply(null,arguments)},Dc=e.dynCall_viijjii=function(){return(Dc=e.dynCall_viijjii=e.asm.Gi).apply(null,arguments)},Pc=e.dynCall_viiiijj=function(){return(Pc=e.dynCall_viiiijj=e.asm.Hi).apply(null,arguments)},xc=e.dynCall_jijiii=function(){return(xc=e.dynCall_jijiii=e.asm.Ii).apply(null,arguments)},Oc=e.dynCall_viijiiij=function(){return(Oc=e.dynCall_viijiiij=e.asm.Ji).apply(null,arguments)},Fc=e.dynCall_vijiiiji=function(){return(Fc=e.dynCall_vijiiiji=e.asm.Ki).apply(null,arguments)},Nc=e.dynCall_viiijij=function(){return(Nc=e.dynCall_viiijij=e.asm.Li).apply(null,arguments)},Mc=e.dynCall_viijiij=function(){return(Mc=e.dynCall_viijiij=e.asm.Mi).apply(null,arguments)},Ic=e.dynCall_vijij=function(){return(Ic=e.dynCall_vijij=e.asm.Ni).apply(null,arguments)},Bc=e.dynCall_vjiiiji=function(){return(Bc=e.dynCall_vjiiiji=e.asm.Oi).apply(null,arguments)},Lc=e.dynCall_viijiiiiii=function(){return(Lc=e.dynCall_viijiiiiii=e.asm.Pi).apply(null,arguments)},Uc=e.dynCall_jjjji=function(){return(Uc=e.dynCall_jjjji=e.asm.Qi).apply(null,arguments)},Hc=e.dynCall_jjjii=function(){return(Hc=e.dynCall_jjjii=e.asm.Ri).apply(null,arguments)},qc=e.dynCall_jji=function(){return(qc=e.dynCall_jji=e.asm.Si).apply(null,arguments)},Wc=e.dynCall_iijiji=function(){return(Wc=e.dynCall_iijiji=e.asm.Ti).apply(null,arguments)},$c=e.dynCall_viiijijiji=function(){return($c=e.dynCall_viiijijiji=e.asm.Ui).apply(null,arguments)},Gc=e.dynCall_iiijjj=function(){return(Gc=e.dynCall_iiijjj=e.asm.Vi).apply(null,arguments)},Kc=e.dynCall_vj=function(){return(Kc=e.dynCall_vj=e.asm.Wi).apply(null,arguments)},Vc=e.dynCall_iiiijii=function(){return(Vc=e.dynCall_iiiijii=e.asm.Xi).apply(null,arguments)},Yc=e.dynCall_iijiii=function(){return(Yc=e.dynCall_iijiii=e.asm.Yi).apply(null,arguments)},Qc=e.dynCall_vijiijj=function(){return(Qc=e.dynCall_vijiijj=e.asm.Zi).apply(null,arguments)},zc=e.dynCall_vifiijj=function(){return(zc=e.dynCall_vifiijj=e.asm._i).apply(null,arguments)},Xc=e.dynCall_vidiijj=function(){return(Xc=e.dynCall_vidiijj=e.asm.$i).apply(null,arguments)},Jc=e.dynCall_viiiiij=function(){return(Jc=e.dynCall_viiiiij=e.asm.aj).apply(null,arguments)},Zc=e.dynCall_ijjiii=function(){return(Zc=e.dynCall_ijjiii=e.asm.bj).apply(null,arguments)},ef=e.dynCall_vijijjji=function(){return(ef=e.dynCall_vijijjji=e.asm.cj).apply(null,arguments)},tf=e.dynCall_viijiijj=function(){return(tf=e.dynCall_viijiijj=e.asm.dj).apply(null,arguments)},rf=e.dynCall_viiiiijjji=function(){return(rf=e.dynCall_viiiiijjji=e.asm.ej).apply(null,arguments)},nf=e.dynCall_iiijiijj=function(){return(nf=e.dynCall_iiijiijj=e.asm.fj).apply(null,arguments)},af=e.dynCall_viiijijjj=function(){return(af=e.dynCall_viiijijjj=e.asm.gj).apply(null,arguments)},sf=e.dynCall_iijiijj=function(){return(sf=e.dynCall_iijiijj=e.asm.hj).apply(null,arguments)},of=e.dynCall_viiijjjji=function(){return(of=e.dynCall_viiijjjji=e.asm.ij).apply(null,arguments)},uf=e.dynCall_viiiijiii=function(){return(uf=e.dynCall_viiiijiii=e.asm.jj).apply(null,arguments)},lf=e.dynCall_viijiiii=function(){return(lf=e.dynCall_viijiiii=e.asm.kj).apply(null,arguments)},cf=e.dynCall_vijjiiii=function(){return(cf=e.dynCall_vijjiiii=e.asm.lj).apply(null,arguments)},ff=e.dynCall_vijijjiiiii=function(){return(ff=e.dynCall_vijijjiiiii=e.asm.mj).apply(null,arguments)},_f=e.dynCall_vijjiiiii=function(){return(_f=e.dynCall_vijjiiiii=e.asm.nj).apply(null,arguments)},df=e.dynCall_iiijjji=function(){return(df=e.dynCall_iiijjji=e.asm.oj).apply(null,arguments)},pf=e.dynCall_iiiiiijji=function(){return(pf=e.dynCall_iiiiiijji=e.asm.pj).apply(null,arguments)},yf=e.dynCall_iiiiijjj=function(){return(yf=e.dynCall_iiiiijjj=e.asm.qj).apply(null,arguments)},hf=e.dynCall_jijiiii=function(){return(hf=e.dynCall_jijiiii=e.asm.rj).apply(null,arguments)},mf=e.dynCall_viiijiji=function(){return(mf=e.dynCall_viiijiji=e.asm.sj).apply(null,arguments)},vf=e.dynCall_iiijjjii=function(){return(vf=e.dynCall_iiijjjii=e.asm.tj).apply(null,arguments)},gf=e.dynCall_iiiiijjji=function(){return(gf=e.dynCall_iiiiijjji=e.asm.uj).apply(null,arguments)},bf=e.dynCall_viijiji=function(){return(bf=e.dynCall_viijiji=e.asm.vj).apply(null,arguments)};function Dp(i){var n=b();try{Q(i)()}catch(a){if(j(n),a!==a+0)throw a;w(1,0)}}function Pp(i,n,a){var s=b();try{Q(i)(n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function xp(i,n){var a=b();try{return Q(i)(n)}catch(s){if(j(a),s!==s+0)throw s;w(1,0)}}function Op(i,n,a){var s=b();try{return Q(i)(n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function Fp(i,n){var a=b();try{Q(i)(n)}catch(s){if(j(a),s!==s+0)throw s;w(1,0)}}function Np(i,n,a,s){var o=b();try{return Q(i)(n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function Mp(i,n,a,s,o,l){var c=b();try{return Q(i)(n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function Ip(i,n,a,s,o){var l=b();try{Q(i)(n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Bp(i,n,a,s,o){var l=b();try{return Q(i)(n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Lp(i,n,a,s){var o=b();try{return Q(i)(n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function Up(i,n,a,s){var o=b();try{return Q(i)(n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function Hp(i,n,a,s){var o=b();try{Q(i)(n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function qp(i,n,a,s){var o=b();try{Q(i)(n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function Wp(i,n,a,s){var o=b();try{Q(i)(n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function $p(i,n,a,s,o,l,c,f){var _=b();try{return Q(i)(n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Gp(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return Q(i)(n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Kp(i,n,a,s,o,l,c,f,_,p,m,k,E){var H=b();try{return Q(i)(n,a,s,o,l,c,f,_,p,m,k,E)}catch(Y){if(j(H),Y!==Y+0)throw Y;w(1,0)}}function Vp(i){var n=b();try{return Q(i)()}catch(a){if(j(n),a!==a+0)throw a;w(1,0)}}function Yp(i,n,a,s,o,l,c,f){var _=b();try{Q(i)(n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Qp(i,n,a,s,o,l,c){var f=b();try{return Q(i)(n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function zp(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{return Q(i)(n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function Xp(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{Q(i)(n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Jp(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de){var je=b();try{Q(i)(n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de)}catch(Be){if(j(je),Be!==Be+0)throw Be;w(1,0)}}function Zp(i,n,a,s,o,l,c){var f=b();try{Q(i)(n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function ey(i,n,a,s,o,l){var c=b();try{return Q(i)(n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function ty(i,n,a,s,o,l,c,f,_){var p=b();try{Q(i)(n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function ry(i,n,a,s,o,l){var c=b();try{Q(i)(n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function iy(i,n,a){var s=b();try{return Q(i)(n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function ny(i,n,a){var s=b();try{return Q(i)(n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function ay(i,n,a,s,o,l,c,f,_,p){var m=b();try{return Q(i)(n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function sy(i,n,a,s,o,l,c,f,_){var p=b();try{return Q(i)(n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function oy(i,n,a,s,o){var l=b();try{return Q(i)(n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function uy(i,n){var a=b();try{return Q(i)(n)}catch(s){if(j(a),s!==s+0)throw s;w(1,0)}}function ly(i,n){var a=b();try{return Q(i)(n)}catch(s){if(j(a),s!==s+0)throw s;w(1,0)}}function cy(i,n,a){var s=b();try{Q(i)(n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function fy(i,n,a){var s=b();try{Q(i)(n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function _y(i,n){var a=b();try{return Q(i)(n)}catch(s){if(j(a),s!==s+0)throw s;w(1,0)}}function dy(i,n){var a=b();try{return Q(i)(n)}catch(s){if(j(a),s!==s+0)throw s;w(1,0)}}function py(i,n,a,s,o,l,c,f,_,p,m,k,E,H){var Y=b();try{Q(i)(n,a,s,o,l,c,f,_,p,m,k,E,H)}catch(de){if(j(Y),de!==de+0)throw de;w(1,0)}}function yy(i,n,a,s,o,l,c,f,_,p){var m=b();try{Q(i)(n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function hy(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de){var je=b();try{return Q(i)(n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de)}catch(Be){if(j(je),Be!==Be+0)throw Be;w(1,0)}}function my(i,n,a,s,o){var l=b();try{return Q(i)(n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function vy(i,n,a,s){var o=b();try{return Q(i)(n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function gy(i,n,a){var s=b();try{return Q(i)(n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function by(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{Q(i)(n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function jy(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y){var de=b();try{return Q(i)(n,a,s,o,l,c,f,_,p,m,k,E,H,Y)}catch(je){if(j(de),je!==je+0)throw je;w(1,0)}}function wy(i,n,a,s,o,l){var c=b();try{Q(i)(n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function ky(i,n,a,s,o,l,c,f,_,p){var m=b();try{Q(i)(n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Cy(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{Q(i)(n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function Sy(i){var n=b();try{return Q(i)()}catch(a){if(j(n),a!==a+0)throw a;w(1,0)}}function Ey(i){var n=b();try{return Q(i)()}catch(a){if(j(n),a!==a+0)throw a;w(1,0)}}function Ay(i,n,a,s,o){var l=b();try{return ne(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Ry(i,n,a,s,o,l,c){var f=b();try{tu(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Ty(i,n){var a=b();try{return Xo(i,n)}catch(s){if(j(a),s!==s+0)throw s;w(1,0)}}function Dy(i,n,a){var s=b();try{return yu(i,n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function Py(i,n,a,s,o,l,c){var f=b();try{Gt(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function xy(i,n,a,s,o,l,c){var f=b();try{return Te(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Oy(i,n,a,s,o,l,c,f,_){var p=b();try{return Ue(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Fy(i,n,a,s){var o=b();try{return Jo(i,n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function Ny(i,n,a,s,o,l){var c=b();try{iu(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function My(i,n,a,s,o){var l=b();try{Zo(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Iy(i){var n=b();try{return bi(i)}catch(a){if(j(n),a!==a+0)throw a;w(1,0)}}function By(i,n,a,s,o,l,c,f){var _=b();try{nu(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Ly(i,n,a,s,o,l,c){var f=b();try{return au(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Uy(i,n,a,s,o,l,c,f){var _=b();try{eu(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Hy(i,n,a,s){var o=b();try{du(i,n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function qy(i,n,a,s,o,l,c){var f=b();try{pu(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Wy(i,n,a,s,o,l){var c=b();try{su(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function $y(i,n,a,s,o){var l=b();try{return uu(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Gy(i,n,a,s,o,l,c,f,_){var p=b();try{lu(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Ky(i,n,a,s,o,l,c,f,_,p){var m=b();try{cu(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Vy(i,n,a,s){var o=b();try{return fu(i,n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function Yy(i,n,a,s,o){var l=b();try{_u(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Qy(i,n,a,s,o,l,c,f){var _=b();try{ru(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function zy(i,n,a,s,o,l,c,f,_){var p=b();try{il(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Xy(i,n,a,s,o,l,c,f){var _=b();try{return bc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Jy(i,n,a,s,o){var l=b();try{return hu(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Zy(i,n,a,s,o,l,c,f){var _=b();try{return Zc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function eh(i,n,a,s,o,l,c,f,_){var p=b();try{nc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function th(i,n,a,s,o,l,c,f,_,p,m,k,E){var H=b();try{$c(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Y){if(j(H),Y!==Y+0)throw Y;w(1,0)}}function rh(i,n,a,s,o,l,c,f,_){var p=b();try{Nc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function ih(i,n,a,s,o,l,c,f){var _=b();try{return vc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function nh(i,n,a,s,o,l){var c=b();try{return gu(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function ah(i,n,a,s,o,l,c,f,_){var p=b();try{return uc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function sh(i,n,a,s,o,l){var c=b();try{return gc(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function oh(i,n,a,s,o,l,c,f){var _=b();try{return zu(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function uh(i,n,a,s,o,l){var c=b();try{return mu(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function lh(i,n,a,s,o,l,c,f){var _=b();try{return vu(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function ch(i,n,a,s,o,l,c){var f=b();try{return bu(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function fh(i,n,a,s,o,l,c){var f=b();try{rl(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function _h(i,n,a,s,o,l,c,f){var _=b();try{ol(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function dh(i,n,a,s){var o=b();try{return ju(i,n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function ph(i,n,a,s,o,l,c,f){var _=b();try{ou(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function yh(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{Bu(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function hh(i,n,a,s,o,l,c,f){var _=b();try{Lu(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function mh(i,n,a,s,o,l,c,f,_,p,m,k,E){var H=b();try{Uu(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Y){if(j(H),Y!==Y+0)throw Y;w(1,0)}}function vh(i,n,a,s,o,l,c,f,_,p){var m=b();try{ku(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function gh(i,n,a,s,o,l,c,f){var _=b();try{Ou(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function bh(i,n,a,s,o,l,c,f,_){var p=b();try{return Fu(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function jh(i,n,a,s,o,l,c){var f=b();try{return Cu(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function wh(i,n,a,s,o,l,c){var f=b();try{return Su(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function kh(i,n,a,s,o,l,c,f){var _=b();try{Eu(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Ch(i,n,a,s,o,l){var c=b();try{Du(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function Sh(i,n,a,s,o,l,c){var f=b();try{return Au(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Eh(i,n,a,s,o,l,c){var f=b();try{return Ru(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Ah(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return Tu(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Rh(i,n,a,s,o,l,c,f){var _=b();try{return xu(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Th(i,n,a,s,o,l,c,f){var _=b();try{return Pu(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Dh(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{return Nu(i,n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function Ph(i,n,a,s,o,l,c,f,_){var p=b();try{return Mu(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function xh(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{Iu(i,n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function Oh(i,n,a,s,o,l,c,f,_,p,m,k,E){var H=b();try{qu(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Y){if(j(H),Y!==Y+0)throw Y;w(1,0)}}function Fh(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{Wu(i,n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function Nh(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de){var je=b();try{$u(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de)}catch(Be){if(j(je),Be!==Be+0)throw Be;w(1,0)}}function Mh(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de,je,Be){var B=b();try{Gu(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de,je,Be)}catch(re){if(j(B),re!==re+0)throw re;w(1,0)}}function Ih(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{Hu(i,n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function Bh(i,n,a,s,o,l){var c=b();try{return al(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function Lh(i,n,a,s,o,l,c,f,_){var p=b();try{Ju(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Uh(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return rc(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Hh(i,n,a,s,o,l,c,f,_){var p=b();try{return ic(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function qh(i,n,a){var s=b();try{return Ku(i,n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function Wh(i,n){var a=b();try{return Vu(i,n)}catch(s){if(j(a),s!==s+0)throw s;w(1,0)}}function $h(i,n){var a=b();try{return Yu(i,n)}catch(s){if(j(a),s!==s+0)throw s;w(1,0)}}function Gh(i,n,a,s,o,l,c){var f=b();try{return ac(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Kh(i,n,a,s,o,l,c){var f=b();try{Fl(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Vh(i,n,a,s,o,l){var c=b();try{return Vl(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function Yh(i,n,a,s,o,l,c,f,_){var p=b();try{return Zu(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Qh(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return el(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function zh(i,n,a,s,o,l,c,f,_,p){var m=b();try{tl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Xh(i,n,a,s,o,l,c,f){var _=b();try{return Qu(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Jh(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de,je){var Be=b();try{Xu(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de,je)}catch(B){if(j(Be),B!==B+0)throw B;w(1,0)}}function Zh(i,n,a,s,o,l,c,f,_){var p=b();try{nl(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function em(i,n,a,s,o,l,c,f,_,p){var m=b();try{return dl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function tm(i,n,a,s,o,l,c,f,_,p){var m=b();try{sl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function rm(i,n,a,s,o,l,c,f){var _=b();try{return fl(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function im(i,n,a,s,o,l,c,f,_,p,m,k,E){var H=b();try{return _l(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Y){if(j(H),Y!==Y+0)throw Y;w(1,0)}}function nm(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return ul(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function am(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{ll(i,n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function sm(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{cl(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function om(i,n,a,s,o,l,c,f,_,p){var m=b();try{return pl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function um(i,n,a,s,o,l,c,f,_,p){var m=b();try{yl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function lm(i,n,a,s,o,l,c,f){var _=b();try{return hl(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function cm(i,n,a,s,o,l,c,f,_,p){var m=b();try{return ml(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function fm(i,n,a,s,o,l,c,f,_){var p=b();try{vl(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function _m(i,n,a,s,o,l,c,f){var _=b();try{return gl(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function dm(i,n,a,s,o,l,c,f,_){var p=b();try{return Yl(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function pm(i,n,a,s,o,l,c,f,_,p,m,k,E,H){var Y=b();try{return Ql(i,n,a,s,o,l,c,f,_,p,m,k,E,H)}catch(de){if(j(Y),de!==de+0)throw de;w(1,0)}}function ym(i,n,a,s,o,l,c,f){var _=b();try{bl(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function hm(i,n,a,s,o,l){var c=b();try{return El(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function mm(i,n,a,s,o,l,c){var f=b();try{return Al(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function vm(i,n,a,s,o,l){var c=b();try{return Rl(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function gm(i,n,a,s,o,l,c){var f=b();try{return Tl(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function bm(i,n,a,s,o,l){var c=b();try{return Dl(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function jm(i,n,a,s,o,l,c,f){var _=b();try{return Pl(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function wm(i,n,a){var s=b();try{return Cl(i,n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function km(i,n,a,s,o,l,c){var f=b();try{Ml(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Cm(i,n,a,s){var o=b();try{return wu(i,n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function Sm(i,n,a,s,o){var l=b();try{return Nl(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Em(i,n,a,s,o){var l=b();try{xl(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Am(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{Il(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Rm(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y){var de=b();try{kl(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y)}catch(je){if(j(de),je!==je+0)throw je;w(1,0)}}function Tm(i,n,a,s,o){var l=b();try{return Sl(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Dm(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{return Ol(i,n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function Pm(i,n,a,s,o){var l=b();try{return Bl(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function xm(i,n,a,s,o,l,c){var f=b();try{Ll(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Om(i,n,a,s,o,l,c,f,_,p){var m=b();try{return Ul(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Fm(i,n,a,s,o,l,c,f,_,p){var m=b();try{return Hl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Nm(i,n,a,s,o,l,c,f,_,p){var m=b();try{ql(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Mm(i,n,a,s,o,l,c,f,_,p){var m=b();try{Wl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Im(i,n,a,s,o,l,c){var f=b();try{return jl(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Bm(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{$l(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Lm(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{Gl(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Um(i,n,a,s,o){var l=b();try{return Kl(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Hm(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{return zl(i,n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function qm(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return Xl(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Wm(i,n,a,s,o,l,c,f,_,p){var m=b();try{return Jl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function $m(i,n,a,s,o,l,c,f,_){var p=b();try{return Zl(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Gm(i,n,a,s,o,l,c,f,_,p){var m=b();try{return ec(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Km(i,n,a,s,o,l){var c=b();try{tc(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function Vm(i,n,a,s,o,l,c,f){var _=b();try{return sc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Ym(i,n,a,s,o,l,c,f,_){var p=b();try{return oc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Qm(i,n,a,s,o,l,c,f){var _=b();try{return lc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function zm(i,n,a,s,o,l,c,f,_){var p=b();try{return cc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Xm(i,n,a,s,o,l,c,f,_,p){var m=b();try{return fc(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Jm(i,n,a,s,o,l,c){var f=b();try{return _c(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Zm(i,n,a,s,o,l,c,f){var _=b();try{return dc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function ev(i,n,a,s,o,l){var c=b();try{return pc(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function tv(i,n,a,s,o,l,c){var f=b();try{yc(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function rv(i,n,a,s,o,l,c,f,_){var p=b();try{hc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function iv(i,n,a,s,o,l,c,f,_){var p=b();try{return mc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function nv(i,n,a,s,o,l,c,f,_){var p=b();try{jc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function av(i,n,a,s,o,l,c,f,_,p){var m=b();try{wc(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function sv(i,n,a,s,o,l,c,f,_){var p=b();try{return kc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function ov(i,n,a,s,o,l,c,f,_){var p=b();try{Rc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function uv(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{Ac(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function lv(i,n,a,s,o,l,c,f,_,p){var m=b();try{Sc(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function cv(i,n,a,s,o,l,c){var f=b();try{return Tc(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function fv(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y){var de=b();try{return Cc(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y)}catch(je){if(j(de),je!==je+0)throw je;w(1,0)}}function _v(i,n,a,s,o,l,c,f,_){var p=b();try{return Ec(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function dv(i,n,a,s,o,l,c,f,_){var p=b();try{Dc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function pv(i,n,a,s,o,l,c,f,_,p){var m=b();try{Oc(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function yv(i,n,a,s,o,l,c){var f=b();try{return xc(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function hv(i,n,a,s,o,l,c,f,_,p){var m=b();try{Fc(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function mv(i,n,a,s,o,l,c,f,_){var p=b();try{return wl(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function vv(i,n,a,s,o,l,c,f,_){var p=b();try{Mc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function gv(i,n,a,s,o,l,c,f,_){var p=b();try{Pc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function bv(i,n,a,s,o,l,c){var f=b();try{Ic(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function jv(i,n,a,s,o,l,c,f,_){var p=b();try{Bc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function wv(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{Lc(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function kv(i,n,a,s,o,l,c,f){var _=b();try{return Uc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Cv(i,n,a,s,o,l,c){var f=b();try{return Hc(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Sv(i,n,a,s){var o=b();try{return qc(i,n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function Ev(i,n,a,s,o,l,c,f){var _=b();try{return Wc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Av(i,n,a,s,o,l,c,f,_){var p=b();try{return Gc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Rv(i,n,a){var s=b();try{Kc(i,n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function Tv(i,n,a,s,o,l,c,f){var _=b();try{return Vc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Dv(i,n,a,s,o,l,c){var f=b();try{return Yc(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Pv(i,n,a,s,o,l,c,f,_,p){var m=b();try{Qc(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function xv(i,n,a,s,o,l,c,f,_){var p=b();try{zc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Ov(i,n,a,s,o,l,c,f,_){var p=b();try{Xc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Fv(i,n,a,s,o,l,c,f){var _=b();try{Jc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Nv(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{ef(i,n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function Mv(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return nf(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Iv(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{tf(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Bv(i,n,a,s,o,l,c,f,_,p,m,k,E){var H=b();try{rf(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Y){if(j(H),Y!==Y+0)throw Y;w(1,0)}}function Lv(i,n,a,s,o,l,c,f,_,p,m,k,E){var H=b();try{af(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Y){if(j(H),Y!==Y+0)throw Y;w(1,0)}}function Uv(i,n,a,s,o,l,c,f,_,p){var m=b();try{return sf(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Hv(i,n,a,s,o,l,c,f,_,p){var m=b();try{return df(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function qv(i,n,a,s,o,l,c,f,_,p,m,k,E){var H=b();try{of(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Y){if(j(H),Y!==Y+0)throw Y;w(1,0)}}function Wv(i,n,a,s,o,l,c,f,_,p){var m=b();try{uf(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function $v(i,n,a,s,o,l,c,f,_){var p=b();try{lf(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Gv(i,n,a,s,o,l,c,f,_){var p=b();try{bf(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Kv(i,n,a,s,o,l,c,f,_,p,m,k,E,H){var Y=b();try{ff(i,n,a,s,o,l,c,f,_,p,m,k,E,H)}catch(de){if(j(Y),de!==de+0)throw de;w(1,0)}}function Vv(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{_f(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Yv(i,n,a,s,o,l,c,f,_,p){var m=b();try{cf(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Qv(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return pf(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function zv(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return vf(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Xv(i,n,a,s,o,l,c,f,_,p){var m=b();try{mf(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Jv(i,n,a,s,o,l,c,f){var _=b();try{return hf(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Zv(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return yf(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function eg(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{return gf(i,n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}e.ccall=le;var ji;function wi(i){this.name="ExitStatus",this.message="Program terminated with exit("+i+")",this.status=i}var tg=!1;$e=function i(){ji||Xa(),ji||($e=i)};function rg(i){var n=e._main,a=0,s=0;try{var o=n(a,s);return ig(o,!0),o}catch(l){return dn(l)}finally{tg=!0}}function Xa(i){if(i=i||v,kt>0||(un(),kt>0))return;function n(){ji||(ji=!0,e.calledRun=!0,!Ce&&(ln(),cn(),u(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),jf&&rg(i),fn()))}e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),n()},1)):n()}e.run=Xa;function ig(i,n){D=i,ng(i)}function ng(i){D=i,zr()||(e.onExit&&e.onExit(i),Ce=!0),A(i,new wi(i))}if(e.preInit)for(typeof e.preInit=="function"&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();var jf=!0;return e.noInitialRun&&(jf=!1),Xa(),t.ready}})(),nn=T0;var Ap=cr(require("fs")),wr=class extends Hr{constructor(e,u,d,y){super(e,u);this.mainModulePath=d,this.pthreadWorkerPath=y}locateFile(e,u){if(e.endsWith(".wasm"))return this.mainModulePath;if(e.endsWith(".worker.js")){if(!this.pthreadWorkerPath)throw new Error("Missing DuckDB worker path!");return this.pthreadWorkerPath}throw new Error(`WASM instantiation requested unexpected file: prefix=${u} path=${e}`)}instantiateWasm(e,u){globalThis.DUCKDB_RUNTIME={};for(let y of Object.getOwnPropertyNames(this._runtime))y!="constructor"&&(globalThis.DUCKDB_RUNTIME[y]=Object.getOwnPropertyDescriptor(this._runtime,y).value);let d=Ap.default.readFileSync(this.mainModulePath);return WebAssembly.instantiate(d,e).then(y=>{u(y.instance,y.module)}),[]}instantiateImpl(e){return nn({...e,instantiateWasm:this.instantiateWasm.bind(this)})}};var an=class extends wr{constructor(t,e,u,d=null){super(t,e,u,d)}instantiateImpl(t){return nn({...t,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}};var Rp={},D0=(()=>{var r=Rp.url;return function(t){t=t||{};var e=typeof t<"u"?t:{},u,d;e.ready=new Promise(function(h,g){u=h,d=g});var y=Object.assign({},e),v=[],S="./this.program",A=(h,g)=>{throw g},I=typeof window=="object",R=typeof importScripts=="function",L=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",P="";function fe(h){return e.locateFile?e.locateFile(h,P):P+h}var K,z,ee,oe;function be(h){if(h instanceof lr)return;J("exiting due to exception: "+h)}var me,Ae,ie;L?(R?P=require("path").dirname(P)+"/":P=__dirname+"/",ie=()=>{Ae||(me=require("fs"),Ae=require("path"))},K=function(g,C){return ie(),g=Ae.normalize(g),me.readFileSync(g,C?void 0:"utf8")},ee=h=>{var g=K(h,!0);return g.buffer||(g=new Uint8Array(g)),g},z=(h,g,C)=>{ie(),h=Ae.normalize(h),me.readFile(h,function(T,M){T?C(T):g(M.buffer)})},process.argv.length>1&&(S=process.argv[1].replace(/\\/g,"/")),v=process.argv.slice(2),process.on("uncaughtException",function(h){if(!(h instanceof lr))throw h}),process.on("unhandledRejection",function(h){throw h}),A=(h,g)=>{if(Yr())throw process.exitCode=h,g;be(g),process.exit(h)},e.inspect=function(){return"[Emscripten Module object]"}):(I||R)&&(R?P=self.location.href:typeof document<"u"&&document.currentScript&&(P=document.currentScript.src),r&&(P=r),P.indexOf("blob:")!==0?P=P.substr(0,P.replace(/[?#].*/,"").lastIndexOf("/")+1):P="",K=h=>{var g=new XMLHttpRequest;return g.open("GET",h,!1),g.send(null),g.responseText},R&&(ee=h=>{var g=new XMLHttpRequest;return g.open("GET",h,!1),g.responseType="arraybuffer",g.send(null),new Uint8Array(g.response)}),z=(h,g,C)=>{var T=new XMLHttpRequest;T.open("GET",h,!0),T.responseType="arraybuffer",T.onload=()=>{if(T.status==200||T.status==0&&T.response){g(T.response);return}C()},T.onerror=C,T.send(null)},oe=h=>document.title=h);var ke=e.print||console.log.bind(console),J=e.printErr||console.warn.bind(console);Object.assign(e,y),y=null,e.arguments&&(v=e.arguments),e.thisProgram&&(S=e.thisProgram),e.quit&&(A=e.quit);var te;e.wasmBinary&&(te=e.wasmBinary);var $=e.noExitRuntime||!0;typeof WebAssembly!="object"&&$e("no native wasm support detected");var pe,F=!1,ue;function ae(h,g){h||$e(g)}function Ce(h){var g=e["_"+h];return g}function D(h,g,C,T,M){var X={string:function(b){var j=0;if(b!=null&&b!==0){var it=(b.length<<2)+1;j=Mr(it),We(b,j,it)}return j},array:function(b){var j=Mr(b.length);return _t(b,j),j}};function G(b){return g==="string"?le(b):g==="boolean"?Boolean(b):b}var q=Ce(h),Z=[],ye=0;if(T)for(var ge=0;ge<T.length;ge++){var Ge=X[C[ge]];Ge?(ye===0&&(ye=mi()),Z[ge]=Ge(T[ge])):Z[ge]=T[ge]}var Se=q.apply(null,Z);function w(b){return ye!==0&&vi(ye),G(b)}return Se=w(Se),Se}var x=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Pe(h,g,C){for(var T=g+C,M=g;h[M]&&!(M>=T);)++M;if(M-g>16&&h.buffer&&x)return x.decode(h.subarray(g,M));for(var X="";g<M;){var G=h[g++];if(!(G&128)){X+=String.fromCharCode(G);continue}var q=h[g++]&63;if((G&224)==192){X+=String.fromCharCode((G&31)<<6|q);continue}var Z=h[g++]&63;if((G&240)==224?G=(G&15)<<12|q<<6|Z:G=(G&7)<<18|q<<12|Z<<6|h[g++]&63,G<65536)X+=String.fromCharCode(G);else{var ye=G-65536;X+=String.fromCharCode(55296|ye>>10,56320|ye&1023)}}return X}function le(h,g){return h?Pe(se,h,g):""}function Ye(h,g,C,T){if(!(T>0))return 0;for(var M=C,X=C+T-1,G=0;G<h.length;++G){var q=h.charCodeAt(G);if(q>=55296&&q<=57343){var Z=h.charCodeAt(++G);q=65536+((q&1023)<<10)|Z&1023}if(q<=127){if(C>=X)break;g[C++]=q}else if(q<=2047){if(C+1>=X)break;g[C++]=192|q>>6,g[C++]=128|q&63}else if(q<=65535){if(C+2>=X)break;g[C++]=224|q>>12,g[C++]=128|q>>6&63,g[C++]=128|q&63}else{if(C+3>=X)break;g[C++]=240|q>>18,g[C++]=128|q>>12&63,g[C++]=128|q>>6&63,g[C++]=128|q&63}}return g[C]=0,C-M}function We(h,g,C){return Ye(h,se,g,C)}function xe(h){for(var g=0,C=0;C<h.length;++C){var T=h.charCodeAt(C);T>=55296&&T<=57343&&(T=65536+((T&1023)<<10)|h.charCodeAt(++C)&1023),T<=127?++g:T<=2047?g+=2:T<=65535?g+=3:g+=4}return g}function _t(h,g){Qe.set(h,g)}function It(h,g,C){for(var T=0;T<h.length;++T)Qe[g++>>0]=h.charCodeAt(T);C||(Qe[g>>0]=0)}var bt,Qe,se,at,Je,O,ve,W,N;function Re(h){bt=h,e.HEAP8=Qe=new Int8Array(h),e.HEAP16=at=new Int16Array(h),e.HEAP32=O=new Int32Array(h),e.HEAPU8=se=new Uint8Array(h),e.HEAPU16=Je=new Uint16Array(h),e.HEAPU32=ve=new Uint32Array(h),e.HEAPF32=W=new Float32Array(h),e.HEAPF64=N=new Float64Array(h)}var He=e.INITIAL_MEMORY||16777216,Fe,jt=[],At=[],Kr=[],kr=[],Vr=!1;function Yr(){return $}function Qr(){if(e.preRun)for(typeof e.preRun=="function"&&(e.preRun=[e.preRun]);e.preRun.length;)ln(e.preRun.shift());Lt(jt)}function on(){Vr=!0,Lt(At)}function zr(){Lt(Kr)}function un(){if(e.postRun)for(typeof e.postRun=="function"&&(e.postRun=[e.postRun]);e.postRun.length;)fn(e.postRun.shift());Lt(kr)}function ln(h){jt.unshift(h)}function cn(h){At.unshift(h)}function fn(h){kr.unshift(h)}var wt=0,Cr=null,Bt=null;function kt(h){wt++,e.monitorRunDependencies&&e.monitorRunDependencies(wt)}function Sr(h){if(wt--,e.monitorRunDependencies&&e.monitorRunDependencies(wt),wt==0&&(Cr!==null&&(clearInterval(Cr),Cr=null),Bt)){var g=Bt;Bt=null,g()}}function $e(h){e.onAbort&&e.onAbort(h),h="Aborted("+h+")",J(h),F=!0,ue=1,h+=". Build with -sASSERTIONS for more info.";var g=new WebAssembly.RuntimeError(h);throw d(g),g}var _n="data:application/octet-stream;base64,";function Xr(h){return h.startsWith(_n)}var Oe;e.locateFile?(Oe="./duckdb-eh.wasm",Xr(Oe)||(Oe=fe(Oe))):Oe=new URL("./duckdb-eh.wasm",Rp.url).toString();function Jr(h){try{if(h==Oe&&te)return new Uint8Array(te);if(ee)return ee(h);throw"both async and sync fetching of the wasm failed"}catch(g){$e(g)}}function Zr(){return!te&&(I||R)&&typeof fetch=="function"?fetch(Oe,{credentials:"same-origin"}).then(function(h){if(!h.ok)throw"failed to load wasm binary file at '"+Oe+"'";return h.arrayBuffer()}).catch(function(){return Jr(Oe)}):Promise.resolve().then(function(){return Jr(Oe)})}function Ze(){var h={a:la};function g(G,q){var Z=G.exports;e.asm=Z,pe=e.asm.ha,Re(pe.buffer),Fe=e.asm.db,cn(e.asm.ia),Sr("wasm-instantiate")}kt("wasm-instantiate");function C(G){g(G.instance)}function T(G){return Zr().then(function(q){return WebAssembly.instantiate(q,h)}).then(function(q){return q}).then(G,function(q){J("failed to asynchronously prepare wasm: "+q),$e(q)})}function M(){return!te&&typeof WebAssembly.instantiateStreaming=="function"&&!Xr(Oe)&&typeof fetch=="function"?fetch(Oe,{credentials:"same-origin"}).then(function(G){var q=WebAssembly.instantiateStreaming(G,h);return q.then(C,function(Z){return J("wasm streaming compile failed: "+Z),J("falling back to ArrayBuffer instantiation"),T(C)})}):T(C)}if(e.instantiateWasm)try{var X=e.instantiateWasm(h,g);return X}catch(G){return J("Module.instantiateWasm callback failed with error: "+G),!1}return M().catch(d),{}}function Lt(h){for(;h.length>0;){var g=h.shift();if(typeof g=="function"){g(e);continue}var C=g.func;typeof C=="number"?g.arg===void 0?ei(C)():ei(C)(g.arg):C(g.arg===void 0?null:g.arg)}}var Xt=[];function ei(h){var g=Xt[h];return g||(h>=Xt.length&&(Xt.length=h+1),Xt[h]=g=Fe.get(h)),g}function Jt(h){if(h instanceof lr||h=="unwind")return ue;A(1,h)}function Zt(h,g,C,T){$e("Assertion failed: "+le(h)+", at: "+[g?le(g):"unknown filename",C,T?le(T):"unknown function"])}var Q={buffers:[null,[],[]],printChar:function(h,g){var C=Q.buffers[h];g===0||g===10?((h===1?ke:J)(Pe(C,0)),C.length=0):C.push(g)},varargs:void 0,get:function(){Q.varargs+=4;var h=O[Q.varargs-4>>2];return h},getStr:function(h){var g=le(h);return g}};function dn(h,g,C,T,M){}function pn(){J("missing function: $SOCKFS"),$e(-1)}function ti(){J("missing function: $FS"),$e(-1)}function dt(h){var g=pn.getSocket(h);if(!g)throw new ti.ErrnoError(8);return g}function Er(h){return(h&255)+"."+(h>>8&255)+"."+(h>>16&255)+"."+(h>>24&255)}function Ut(h){var g="",C=0,T=0,M=0,X=0,G=0,q=0,Z=[h[0]&65535,h[0]>>16,h[1]&65535,h[1]>>16,h[2]&65535,h[2]>>16,h[3]&65535,h[3]>>16],ye=!0,ge="";for(q=0;q<5;q++)if(Z[q]!==0){ye=!1;break}if(ye){if(ge=Er(Z[6]|Z[7]<<16),Z[5]===-1)return g="::ffff:",g+=ge,g;if(Z[5]===0)return g="::",ge==="0.0.0.0"&&(ge=""),ge==="0.0.0.1"&&(ge="1"),g+=ge,g}for(C=0;C<8;C++)Z[C]===0&&(C-M>1&&(G=0),M=C,G++),G>T&&(T=G,X=C-T+1);for(C=0;C<8;C++){if(T>1&&Z[C]===0&&C>=X&&C<X+T){C===X&&(g+=":",X===0&&(g+=":"));continue}g+=Number(Fr(Z[C]&65535)).toString(16),g+=C<7?":":""}return g}function ri(h,g){var C=at[h>>1],T=Fr(Je[h+2>>1]),M;switch(C){case 2:if(g!==16)return{errno:28};M=O[h+4>>2],M=Er(M);break;case 10:if(g!==28)return{errno:28};M=[O[h+8>>2],O[h+12>>2],O[h+16>>2],O[h+20>>2]],M=Ut(M);break;default:return{errno:5}}return{family:C,addr:M,port:T}}function et(h){for(var g=h.split("."),C=0;C<4;C++){var T=Number(g[C]);if(isNaN(T))return null;g[C]=T}return(g[0]|g[1]<<8|g[2]<<16|g[3]<<24)>>>0}function ut(h){return parseInt(h)}function er(h){var g,C,T,M,X=/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i,G=[];if(!X.test(h))return null;if(h==="::")return[0,0,0,0,0,0,0,0];for(h.startsWith("::")?h=h.replace("::","Z:"):h=h.replace("::",":Z:"),h.indexOf(".")>0?(h=h.replace(new RegExp("[.]","g"),":"),g=h.split(":"),g[g.length-4]=ut(g[g.length-4])+ut(g[g.length-3])*256,g[g.length-3]=ut(g[g.length-2])+ut(g[g.length-1])*256,g=g.slice(0,g.length-2)):g=h.split(":"),T=0,M=0,C=0;C<g.length;C++)if(typeof g[C]=="string")if(g[C]==="Z"){for(M=0;M<8-g.length+1;M++)G[C+M]=0;T=M-1}else G[C+T]=or(parseInt(g[C],16));else G[C+T]=g[C];return[G[1]<<16|G[0],G[3]<<16|G[2],G[5]<<16|G[4],G[7]<<16|G[6]]}var tt={address_map:{id:1,addrs:{},names:{}},lookup_name:function(h){var g=et(h);if(g!==null||(g=er(h),g!==null))return h;var C;if(tt.address_map.addrs[h])C=tt.address_map.addrs[h];else{var T=tt.address_map.id++;ae(T<65535,"exceeded max address mappings of 65535"),C="172.29."+(T&255)+"."+(T&65280),tt.address_map.names[C]=h,tt.address_map.addrs[h]=C}return C},lookup_addr:function(h){return tt.address_map.names[h]?tt.address_map.names[h]:null}};function ii(h,g,C){if(C&&h===0)return null;var T=ri(h,g);if(T.errno)throw new ti.ErrnoError(T.errno);return T.addr=tt.lookup_addr(T.addr)||T.addr,T}function yn(h,g,C){var T=dt(h),M=ii(g,C);return T.sock_ops.bind(T,M.addr,M.port),0}function hn(h,g,C){var T=dt(h),M=ii(g,C);return T.sock_ops.connect(T,M.addr,M.port),0}function mn(h,g,C,T){return g=Q.getStr(g),g=Q.calculateAt(h,g),Q.doAccess(g,C)}function vn(h,g,C){return Q.varargs=C,0}function gn(h,g){}function bn(h,g,C){}function jn(h,g,C){}function ni(h,g){se.fill(0,h,h+g)}function Ie(h,g,C,T,M){switch(g){case 2:C=et(C),ni(h,16),M&&(O[M>>2]=16),at[h>>1]=g,O[h+4>>2]=C,at[h+2>>1]=or(T);break;case 10:C=er(C),ni(h,28),M&&(O[M>>2]=28),O[h>>2]=g,O[h+8>>2]=C[0],O[h+12>>2]=C[1],O[h+16>>2]=C[2],O[h+20>>2]=C[3],at[h+2>>1]=or(T);break;default:return 5}return 0}function wn(h,g,C){var T=dt(h);if(!T.daddr)return-53;var M=Ie(g,T.family,tt.lookup_name(T.daddr),T.dport,C);return 0}function kn(h,g,C,T,M){var X=dt(h);return g===1&&C===4?(O[T>>2]=X.error,O[M>>2]=4,X.error=null,0):-50}function ai(h,g,C){return Q.varargs=C,0}function Ht(h,g){}function Ar(h,g,C){}function si(h,g,C,T){}function oi(h,g,C,T){Q.varargs=T}function tr(h,g,C,T,M,X){var G=dt(h),q=G.sock_ops.recvmsg(G,C);if(!q)return 0;if(M)var Z=Ie(M,G.family,tt.lookup_name(q.addr),q.port,X);return se.set(q.buffer,g),q.buffer.byteLength}function rr(h,g,C,T){}function Rr(h){}function rt(h,g,C,T,M,X){}function ui(h,g,C){}function Cn(h,g){}function Sn(h,g,C){}function En(h){}var li="To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking";function An(h,g){$e(li)}function Rn(h,g){$e(li)}function Tn(){return Date.now()}var ci=!0;function Tr(){return ci}function Dn(){$e("")}function Pn(h,g){return globalThis.DUCKDB_RUNTIME.createDirectory(e,h,g)}function xn(h,g){return globalThis.DUCKDB_RUNTIME.checkDirectory(e,h,g)}function On(h,g){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(e,h,g)}function Fn(h,g){return globalThis.DUCKDB_RUNTIME.removeDirectory(e,h,g)}function Nn(h){return globalThis.DUCKDB_RUNTIME.closeFile(e,h)}function Mn(h,g){return globalThis.DUCKDB_RUNTIME.checkFile(e,h,g)}function In(h){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(e,h)}function Bn(h,g,C,T){return globalThis.DUCKDB_RUNTIME.moveFile(e,h,g,C,T)}function Ln(h,g){return globalThis.DUCKDB_RUNTIME.openFile(e,h,g)}function Un(h,g,C,T){return globalThis.DUCKDB_RUNTIME.readFile(e,h,g,C,T)}function Hn(h,g){return globalThis.DUCKDB_RUNTIME.truncateFile(e,h,g)}function qn(h,g,C,T){return globalThis.DUCKDB_RUNTIME.writeFile(e,h,g,C,T)}function Wn(h,g){return globalThis.DUCKDB_RUNTIME.glob(e,h,g)}function $n(h){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(e,h)}function fi(h,g,C,T,M,X){return globalThis.DUCKDB_RUNTIME.callScalarUDF(e,h,g,C,T,M,X)}function _i(){return 2147483648}var Dr;L?Dr=()=>{var h=process.hrtime();return h[0]*1e3+h[1]/1e6}:Dr=()=>performance.now();function Gn(h,g,C){se.copyWithin(h,g,g+C)}function Kn(h){try{return pe.grow(h-bt.byteLength+65535>>>16),Re(pe.buffer),1}catch{}}function Vn(h){var g=se.length;h=h>>>0;var C=_i();if(h>C)return!1;let T=(Z,ye)=>Z+(ye-Z%ye)%ye;for(var M=1;M<=4;M*=2){var X=g*(1+.2/M);X=Math.min(X,h+100663296);var G=Math.min(C,T(Math.max(h,X),65536)),q=Kn(G);if(q)return!0}return!1}var Pr={};function Yn(){return S||"./this.program"}function qt(){if(!qt.strings){var h=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",g={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:h,_:Yn()};for(var C in Pr)Pr[C]===void 0?delete g[C]:g[C]=Pr[C];var T=[];for(var C in g)T.push(C+"="+g[C]);qt.strings=T}return qt.strings}function Qn(h,g){var C=0;return qt().forEach(function(T,M){var X=g+C;O[h+M*4>>2]=X,It(T,X),C+=T.length+1}),0}function zn(h,g){var C=qt();O[h>>2]=C.length;var T=0;return C.forEach(function(M){T+=M.length+1}),O[g>>2]=T,0}function Xn(h){return 0}function Jn(h,g,C,T,M,X){var G=Q.getStreamFromFD(h),q=Q.doReadv(G,g,C,T);return O[X>>2]=q,0}function Zn(h,g,C,T,M,X){var G=Q.getStreamFromFD(h),q=Q.doWritev(G,g,C,T);return O[X>>2]=q,0}function ea(h,g,C,T){var M=Q.getStreamFromFD(h),X=Q.doReadv(M,g,C);return O[T>>2]=X,0}function ta(h,g,C,T,M){}function ra(h){var g=Q.getStreamFromFD(h);return g.stream_ops&&g.stream_ops.fsync?-g.stream_ops.fsync(g):0}function ia(h,g,C,T){for(var M=0,X=0;X<C;X++){var G=O[g>>2],q=O[g+4>>2];g+=8;for(var Z=0;Z<q;Z++)Q.printChar(h,se[G+Z]);M+=q}return O[T>>2]=M,0}function na(h,g,C,T){var M=0,X=0,G=0,q=0,Z=0,ye=0,ge;function Ge(Se,w,b,j,it,ft){var U,ne,Te,Ue;return ne=Se===10?28:16,it=Se===10?Ut(it):Er(it),U=Nr(ne),Ue=Ie(U,Se,it,ft),ae(!Ue),Te=Nr(32),O[Te+4>>2]=Se,O[Te+8>>2]=w,O[Te+12>>2]=b,O[Te+24>>2]=j,O[Te+20>>2]=U,Se===10?O[Te+16>>2]=28:O[Te+16>>2]=16,O[Te+28>>2]=0,Te}if(C&&(G=O[C>>2],q=O[C+4>>2],Z=O[C+8>>2],ye=O[C+12>>2]),Z&&!ye&&(ye=Z===2?17:6),!Z&&ye&&(Z=ye===17?2:1),ye===0&&(ye=6),Z===0&&(Z=1),!h&&!g)return-2;if(G&-1088||C!==0&&O[C>>2]&2&&!h)return-1;if(G&32)return-2;if(Z!==0&&Z!==1&&Z!==2)return-7;if(q!==0&&q!==2&&q!==10)return-6;if(g&&(g=le(g),X=parseInt(g,10),isNaN(X)))return G&1024?-2:-8;if(!h)return q===0&&(q=2),(G&1)===0&&(q===2?M=sr(2130706433):M=[0,0,0,1]),ge=Ge(q,Z,ye,null,M,X),O[T>>2]=ge,0;if(h=le(h),M=et(h),M!==null)if(q===0||q===2)q=2;else if(q===10&&G&8)M=[0,0,sr(65535),M],q=10;else return-2;else if(M=er(h),M!==null)if(q===0||q===10)q=10;else return-2;return M!=null?(ge=Ge(q,Z,ye,h,M,X),O[T>>2]=ge,0):G&4?-2:(h=tt.lookup_name(h),M=et(h),q===0?q=2:q===10&&(M=[0,0,sr(65535),M]),ge=Ge(q,Z,ye,null,M,X),O[T>>2]=ge,0)}function aa(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var h=new Uint8Array(1);return function(){return crypto.getRandomValues(h),h[0]}}else if(L)try{var g=require("crypto");return function(){return g.randomBytes(1)[0]}}catch{}return function(){$e("randomDevice")}}function ir(h,g){ir.randomDevice||(ir.randomDevice=aa());for(var C=0;C<g;C++)Qe[h+C>>0]=ir.randomDevice();return 0}function sa(h,g,C,T,M,X,G){var q=ri(h,g);if(q.errno)return-6;var Z=q.port,ye=q.addr,ge=!1;if(C&&T){var Ge;if(G&1||!(Ge=tt.lookup_addr(ye))){if(G&8)return-2}else ye=Ge;var Se=We(ye,C,T);Se+1>=T&&(ge=!0)}if(M&&X){Z=""+Z;var Se=We(Z,M,X);Se+1>=X&&(ge=!0)}return ge?-12:0}function Wt(h){return h%4===0&&(h%100!==0||h%400===0)}function xr(h,g){for(var C=0,T=0;T<=g;C+=h[T++]);return C}var di=[31,29,31,30,31,30,31,31,30,31,30,31],pi=[31,28,31,30,31,30,31,31,30,31,30,31];function oa(h,g){for(var C=new Date(h.getTime());g>0;){var T=Wt(C.getFullYear()),M=C.getMonth(),X=(T?di:pi)[M];if(g>X-C.getDate())g-=X-C.getDate()+1,C.setDate(1),M<11?C.setMonth(M+1):(C.setMonth(0),C.setFullYear(C.getFullYear()+1));else return C.setDate(C.getDate()+g),C}return C}function Or(h,g,C,T){var M=O[T+40>>2],X={tm_sec:O[T>>2],tm_min:O[T+4>>2],tm_hour:O[T+8>>2],tm_mday:O[T+12>>2],tm_mon:O[T+16>>2],tm_year:O[T+20>>2],tm_wday:O[T+24>>2],tm_yday:O[T+28>>2],tm_isdst:O[T+32>>2],tm_gmtoff:O[T+36>>2],tm_zone:M?le(M):""},G=le(C),q={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var Z in q)G=G.replace(new RegExp(Z,"g"),q[Z]);var ye=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ge=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ge(U,ne,Te){for(var Ue=typeof U=="number"?U.toString():U||"";Ue.length<ne;)Ue=Te[0]+Ue;return Ue}function Se(U,ne){return Ge(U,ne,"0")}function w(U,ne){function Te(Gt){return Gt<0?-1:Gt>0?1:0}var Ue;return(Ue=Te(U.getFullYear()-ne.getFullYear()))===0&&(Ue=Te(U.getMonth()-ne.getMonth()))===0&&(Ue=Te(U.getDate()-ne.getDate())),Ue}function b(U){switch(U.getDay()){case 0:return new Date(U.getFullYear()-1,11,29);case 1:return U;case 2:return new Date(U.getFullYear(),0,3);case 3:return new Date(U.getFullYear(),0,2);case 4:return new Date(U.getFullYear(),0,1);case 5:return new Date(U.getFullYear()-1,11,31);case 6:return new Date(U.getFullYear()-1,11,30)}}function j(U){var ne=oa(new Date(U.tm_year+1900,0,1),U.tm_yday),Te=new Date(ne.getFullYear(),0,4),Ue=new Date(ne.getFullYear()+1,0,4),Gt=b(Te),bi=b(Ue);return w(Gt,ne)<=0?w(bi,ne)<=0?ne.getFullYear()+1:ne.getFullYear():ne.getFullYear()-1}var it={"%a":function(U){return ye[U.tm_wday].substring(0,3)},"%A":function(U){return ye[U.tm_wday]},"%b":function(U){return ge[U.tm_mon].substring(0,3)},"%B":function(U){return ge[U.tm_mon]},"%C":function(U){var ne=U.tm_year+1900;return Se(ne/100|0,2)},"%d":function(U){return Se(U.tm_mday,2)},"%e":function(U){return Ge(U.tm_mday,2," ")},"%g":function(U){return j(U).toString().substring(2)},"%G":function(U){return j(U)},"%H":function(U){return Se(U.tm_hour,2)},"%I":function(U){var ne=U.tm_hour;return ne==0?ne=12:ne>12&&(ne-=12),Se(ne,2)},"%j":function(U){return Se(U.tm_mday+xr(Wt(U.tm_year+1900)?di:pi,U.tm_mon-1),3)},"%m":function(U){return Se(U.tm_mon+1,2)},"%M":function(U){return Se(U.tm_min,2)},"%n":function(){return`
4
- `},"%p":function(U){return U.tm_hour>=0&&U.tm_hour<12?"AM":"PM"},"%S":function(U){return Se(U.tm_sec,2)},"%t":function(){return" "},"%u":function(U){return U.tm_wday||7},"%U":function(U){var ne=U.tm_yday+7-U.tm_wday;return Se(Math.floor(ne/7),2)},"%V":function(U){var ne=Math.floor((U.tm_yday+7-(U.tm_wday+6)%7)/7);if((U.tm_wday+371-U.tm_yday-2)%7<=2&&ne++,ne){if(ne==53){var Ue=(U.tm_wday+371-U.tm_yday)%7;Ue!=4&&(Ue!=3||!Wt(U.tm_year))&&(ne=1)}}else{ne=52;var Te=(U.tm_wday+7-U.tm_yday-1)%7;(Te==4||Te==5&&Wt(U.tm_year%400-1))&&ne++}return Se(ne,2)},"%w":function(U){return U.tm_wday},"%W":function(U){var ne=U.tm_yday+7-(U.tm_wday+6)%7;return Se(Math.floor(ne/7),2)},"%y":function(U){return(U.tm_year+1900).toString().substring(2)},"%Y":function(U){return U.tm_year+1900},"%z":function(U){var ne=U.tm_gmtoff,Te=ne>=0;return ne=Math.abs(ne)/60,ne=ne/60*100+ne%60,(Te?"+":"-")+String("0000"+ne).slice(-4)},"%Z":function(U){return U.tm_zone},"%%":function(){return"%"}};G=G.replace(/%%/g,"\0\0");for(var Z in it)G.includes(Z)&&(G=G.replace(new RegExp(Z,"g"),it[Z](X)));G=G.replace(/\0\0/g,"%");var ft=$t(G,!1);return ft.length>g?0:(_t(ft,h),ft.length-1)}function ua(h,g,C,T){return Or(h,g,C,T)}function $t(h,g,C){var T=C>0?C:xe(h)+1,M=new Array(T),X=Ye(h,M,0,M.length);return g&&(M.length=X),M}var la={a:Zt,P:dn,R:yn,Q:hn,J:mn,b:vn,$:gn,u:bn,X:jn,L:wn,O:kn,ba:ai,Y:Ht,aa:Ar,Z:si,o:oi,M:tr,H:rr,m:Rr,N:rt,k:ui,_:Cn,n:Sn,T:En,V:An,U:Rn,da:Tn,ca:Tr,d:Dn,B:Pn,C:xn,z:On,A:Fn,i:Nn,x:Mn,E:In,y:Bn,F:Ln,f:Un,D:Hn,j:qn,w:Wn,g:$n,G:fi,ea:_i,S:Dr,fa:Gn,ga:Vn,q:Qn,r:zn,c:Xn,t:Jn,s:Zn,h:ea,v:ta,I:ra,e:ia,l:na,W:ir,K:sa,p:ua},Qo=Ze(),ca=e.___wasm_call_ctors=function(){return(ca=e.___wasm_call_ctors=e.asm.ia).apply(null,arguments)},fa=e._main=function(){return(fa=e._main=e.asm.ja).apply(null,arguments)},_a=e._duckdb_web_fs_glob_add_path=function(){return(_a=e._duckdb_web_fs_glob_add_path=e.asm.ka).apply(null,arguments)},da=e._duckdb_web_clear_response=function(){return(da=e._duckdb_web_clear_response=e.asm.la).apply(null,arguments)},pa=e._duckdb_web_fail_with=function(){return(pa=e._duckdb_web_fail_with=e.asm.ma).apply(null,arguments)},ya=e._duckdb_web_reset=function(){return(ya=e._duckdb_web_reset=e.asm.na).apply(null,arguments)},ha=e._duckdb_web_connect=function(){return(ha=e._duckdb_web_connect=e.asm.oa).apply(null,arguments)},ma=e._duckdb_web_disconnect=function(){return(ma=e._duckdb_web_disconnect=e.asm.pa).apply(null,arguments)},va=e._duckdb_web_flush_files=function(){return(va=e._duckdb_web_flush_files=e.asm.qa).apply(null,arguments)},ga=e._duckdb_web_flush_file=function(){return(ga=e._duckdb_web_flush_file=e.asm.ra).apply(null,arguments)},nr=e._duckdb_web_open=function(){return(nr=e._duckdb_web_open=e.asm.sa).apply(null,arguments)},ba=e._duckdb_web_get_global_file_info=function(){return(ba=e._duckdb_web_get_global_file_info=e.asm.ta).apply(null,arguments)},ja=e._duckdb_web_collect_file_stats=function(){return(ja=e._duckdb_web_collect_file_stats=e.asm.ua).apply(null,arguments)},wa=e._duckdb_web_export_file_stats=function(){return(wa=e._duckdb_web_export_file_stats=e.asm.va).apply(null,arguments)},ar=e._duckdb_web_fs_drop_file=function(){return(ar=e._duckdb_web_fs_drop_file=e.asm.wa).apply(null,arguments)},ka=e._duckdb_web_fs_drop_files=function(){return(ka=e._duckdb_web_fs_drop_files=e.asm.xa).apply(null,arguments)},yi=e._duckdb_web_fs_glob_file_infos=function(){return(yi=e._duckdb_web_fs_glob_file_infos=e.asm.ya).apply(null,arguments)},hi=e._duckdb_web_fs_get_file_info_by_id=function(){return(hi=e._duckdb_web_fs_get_file_info_by_id=e.asm.za).apply(null,arguments)},Ca=e._duckdb_web_fs_get_file_info_by_name=function(){return(Ca=e._duckdb_web_fs_get_file_info_by_name=e.asm.Aa).apply(null,arguments)},Sa=e._duckdb_web_fs_set_file_descriptor=function(){return(Sa=e._duckdb_web_fs_set_file_descriptor=e.asm.Ba).apply(null,arguments)},Ea=e._duckdb_web_fs_register_file_url=function(){return(Ea=e._duckdb_web_fs_register_file_url=e.asm.Ca).apply(null,arguments)},Aa=e._duckdb_web_fs_register_file_buffer=function(){return(Aa=e._duckdb_web_fs_register_file_buffer=e.asm.Da).apply(null,arguments)},Ra=e._duckdb_web_copy_file_to_buffer=function(){return(Ra=e._duckdb_web_copy_file_to_buffer=e.asm.Ea).apply(null,arguments)},zo=e._duckdb_web_copy_file_to_path=function(){return(zo=e._duckdb_web_copy_file_to_path=e.asm.Fa).apply(null,arguments)},Ta=e._duckdb_web_get_version=function(){return(Ta=e._duckdb_web_get_version=e.asm.Ga).apply(null,arguments)},Da=e._duckdb_web_get_feature_flags=function(){return(Da=e._duckdb_web_get_feature_flags=e.asm.Ha).apply(null,arguments)},Pa=e._duckdb_web_tokenize=function(){return(Pa=e._duckdb_web_tokenize=e.asm.Ia).apply(null,arguments)},xa=e._duckdb_web_udf_scalar_create=function(){return(xa=e._duckdb_web_udf_scalar_create=e.asm.Ja).apply(null,arguments)},Oa=e._duckdb_web_prepared_create=function(){return(Oa=e._duckdb_web_prepared_create=e.asm.Ka).apply(null,arguments)},Fa=e._duckdb_web_prepared_close=function(){return(Fa=e._duckdb_web_prepared_close=e.asm.La).apply(null,arguments)},Na=e._duckdb_web_prepared_run=function(){return(Na=e._duckdb_web_prepared_run=e.asm.Ma).apply(null,arguments)},Ma=e._duckdb_web_prepared_send=function(){return(Ma=e._duckdb_web_prepared_send=e.asm.Na).apply(null,arguments)},Ia=e._duckdb_web_query_run=function(){return(Ia=e._duckdb_web_query_run=e.asm.Oa).apply(null,arguments)},Ba=e._duckdb_web_pending_query_start=function(){return(Ba=e._duckdb_web_pending_query_start=e.asm.Pa).apply(null,arguments)},La=e._duckdb_web_pending_query_poll=function(){return(La=e._duckdb_web_pending_query_poll=e.asm.Qa).apply(null,arguments)},Ua=e._duckdb_web_pending_query_cancel=function(){return(Ua=e._duckdb_web_pending_query_cancel=e.asm.Ra).apply(null,arguments)},Ha=e._duckdb_web_query_fetch_results=function(){return(Ha=e._duckdb_web_query_fetch_results=e.asm.Sa).apply(null,arguments)},qa=e._duckdb_web_get_tablenames=function(){return(qa=e._duckdb_web_get_tablenames=e.asm.Ta).apply(null,arguments)},Wa=e._duckdb_web_insert_arrow_from_ipc_stream=function(){return(Wa=e._duckdb_web_insert_arrow_from_ipc_stream=e.asm.Ua).apply(null,arguments)},$a=e._duckdb_web_insert_csv_from_path=function(){return($a=e._duckdb_web_insert_csv_from_path=e.asm.Va).apply(null,arguments)},Ga=e._duckdb_web_insert_json_from_path=function(){return(Ga=e._duckdb_web_insert_json_from_path=e.asm.Wa).apply(null,arguments)},sr=e._htonl=function(){return(sr=e._htonl=e.asm.Xa).apply(null,arguments)},or=e._htons=function(){return(or=e._htons=e.asm.Ya).apply(null,arguments)},Fr=e._ntohs=function(){return(Fr=e._ntohs=e.asm.Za).apply(null,arguments)},Nr=e._malloc=function(){return(Nr=e._malloc=e.asm._a).apply(null,arguments)},Ka=e._free=function(){return(Ka=e._free=e.asm.$a).apply(null,arguments)},mi=e.stackSave=function(){return(mi=e.stackSave=e.asm.ab).apply(null,arguments)},vi=e.stackRestore=function(){return(vi=e.stackRestore=e.asm.bb).apply(null,arguments)},Mr=e.stackAlloc=function(){return(Mr=e.stackAlloc=e.asm.cb).apply(null,arguments)};e.ccall=D;var ur;function lr(h){this.name="ExitStatus",this.message="Program terminated with exit("+h+")",this.status=h}var Va=!1;Bt=function h(){ur||Ir(),ur||(Bt=h)};function Ya(h){var g=e._main,C=0,T=0;try{var M=g(C,T);return Qa(M,!0),M}catch(X){return Jt(X)}finally{Va=!0}}function Ir(h){if(h=h||v,wt>0||(Qr(),wt>0))return;function g(){ur||(ur=!0,e.calledRun=!0,!F&&(on(),zr(),u(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),gi&&Ya(h),un()))}e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),g()},1)):g()}e.run=Ir;function Qa(h,g){ue=h,za(h)}function za(h){ue=h,Yr()||(e.onExit&&e.onExit(h),F=!0),A(h,new lr(h))}if(e.preInit)for(typeof e.preInit=="function"&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();var gi=!0;return e.noInitialRun&&(gi=!1),Ir(),t.ready}})(),Tp=D0;var sn=class extends wr{constructor(t,e,u,d=null){super(t,e,u,d)}instantiateImpl(t){return Tp({...t,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}};async function P0(r,t,e){return(await Di()).wasmExceptions&&r.eh?new sn(t,e,r.eh.mainModule):new an(t,e,r.mvp.mainModule)}0&&(module.exports={ConsoleLogger,DEFAULT_RUNTIME,DuckDBBindingsBase,DuckDBConnection,DuckDBDataProtocol,DuckDBFeature,FileFlags,FileStatistics,JSONTableShape,LogEvent,LogLevel,LogOrigin,LogTopic,NODE_RUNTIME,PACKAGE_NAME,PACKAGE_VERSION,PACKAGE_VERSION_MAJOR,PACKAGE_VERSION_MINOR,PACKAGE_VERSION_PATCH,PreparedStatement,ResultStreamIterator,StatusCode,VoidLogger,callSRet,copyBuffer,createDuckDB,decodeText,dropResponseBuffers,failWith,getJsDelivrBundles,getLogEventLabel,getLogLevelLabel,getLogOriginLabel,getLogTopicLabel,getPlatformFeatures,isFirefox,isNode,isSafari,readString,selectBundle});
1
+ "use strict";var sg=Object.create;var Ci=Object.defineProperty;var og=Object.getOwnPropertyDescriptor;var ug=Object.getOwnPropertyNames;var lg=Object.getPrototypeOf,cg=Object.prototype.hasOwnProperty;var V=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),fg=(r,t)=>{for(var e in t)Ci(r,e,{get:t[e],enumerable:!0})},wf=(r,t,e,u)=>{if(t&&typeof t=="object"||typeof t=="function")for(let d of ug(t))!cg.call(r,d)&&d!==e&&Ci(r,d,{get:()=>t[d],enumerable:!(u=og(t,d))||u.enumerable});return r};var cr=(r,t,e)=>(e=r!=null?sg(lg(r)):{},wf(t||!r||!r.__esModule?Ci(e,"default",{value:r,enumerable:!0}):e,r)),_g=r=>wf(Ci({},"__esModule",{value:!0}),r);var Mf=V((Vw,Nf)=>{"use strict";var gg=async r=>{try{return(await WebAssembly.instantiate(r)).instance.exports.b(BigInt(0))===BigInt(0)}catch{return!1}},bg=async r=>{try{return typeof MessageChannel<"u"&&new MessageChannel().port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(r)}catch{return!1}},jg={bigInt:()=>gg(new Uint8Array([0,97,115,109,1,0,0,0,1,6,1,96,1,126,1,126,3,2,1,0,7,5,1,1,98,0,0,10,6,1,4,0,32,0,11])),bulkMemory:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,3,1,0,1,10,14,1,12,0,65,0,65,0,65,0,252,10,0,0,11])),exceptions:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,8,1,6,0,6,64,25,11,11])),multiValue:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,6,1,96,0,2,127,127,3,2,1,0,10,8,1,6,0,65,0,65,0,11])),mutableGlobals:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,2,8,1,1,97,1,98,3,127,1,6,6,1,127,1,65,0,11,7,5,1,1,97,3,1])),referenceTypes:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,7,1,5,0,208,112,26,11])),saturatedFloatToInt:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,12,1,10,0,67,0,0,0,0,252,0,26,11])),signExtensions:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,8,1,6,0,65,0,192,26,11])),simd:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])),tailCall:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,6,1,4,0,18,0,11])),threads:()=>bg(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]))};Nf.exports=jg});var Bf=V(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.splitWhen=_r.flatten=void 0;function Dg(r){return r.reduce((t,e)=>[].concat(t,e),[])}_r.flatten=Dg;function Pg(r,t){let e=[[]],u=0;for(let d of r)t(d)?(u++,e[u]=[]):e[u].push(d);return e}_r.splitWhen=Pg});var Lf=V(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.isEnoentCodeError=void 0;function xg(r){return r.code==="ENOENT"}Pi.isEnoentCodeError=xg});var Uf=V(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.createDirentFromStats=void 0;var ps=class{constructor(t,e){this.name=t,this.isBlockDevice=e.isBlockDevice.bind(e),this.isCharacterDevice=e.isCharacterDevice.bind(e),this.isDirectory=e.isDirectory.bind(e),this.isFIFO=e.isFIFO.bind(e),this.isFile=e.isFile.bind(e),this.isSocket=e.isSocket.bind(e),this.isSymbolicLink=e.isSymbolicLink.bind(e)}};function Og(r,t){return new ps(r,t)}xi.createDirentFromStats=Og});var Hf=V(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.removeLeadingDotSegment=yt.escape=yt.makeAbsolute=yt.unixify=void 0;var Fg=require("path"),Ng=2,Mg=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function Ig(r){return r.replace(/\\/g,"/")}yt.unixify=Ig;function Bg(r,t){return Fg.resolve(r,t)}yt.makeAbsolute=Bg;function Lg(r){return r.replace(Mg,"\\$2")}yt.escape=Lg;function Ug(r){if(r.charAt(0)==="."){let t=r.charAt(1);if(t==="/"||t==="\\")return r.slice(Ng)}return r}yt.removeLeadingDotSegment=Ug});var Wf=V((ik,qf)=>{qf.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var e;e=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(e[2])return!0;t=t.slice(e.index+e[0].length)}return!1}});var Kf=V((nk,Gf)=>{var Hg=Wf(),$f={"{":"}","(":")","[":"]"},qg=function(r){if(r[0]==="!")return!0;for(var t=0,e=-2,u=-2,d=-2,y=-2,v=-2;t<r.length;){if(r[t]==="*"||r[t+1]==="?"&&/[\].+)]/.test(r[t])||u!==-1&&r[t]==="["&&r[t+1]!=="]"&&(u<t&&(u=r.indexOf("]",t)),u>t&&(v===-1||v>u||(v=r.indexOf("\\",t),v===-1||v>u)))||d!==-1&&r[t]==="{"&&r[t+1]!=="}"&&(d=r.indexOf("}",t),d>t&&(v=r.indexOf("\\",t),v===-1||v>d))||y!==-1&&r[t]==="("&&r[t+1]==="?"&&/[:!=]/.test(r[t+2])&&r[t+3]!==")"&&(y=r.indexOf(")",t),y>t&&(v=r.indexOf("\\",t),v===-1||v>y))||e!==-1&&r[t]==="("&&r[t+1]!=="|"&&(e<t&&(e=r.indexOf("|",t)),e!==-1&&r[e+1]!==")"&&(y=r.indexOf(")",e),y>e&&(v=r.indexOf("\\",e),v===-1||v>y))))return!0;if(r[t]==="\\"){var S=r[t+1];t+=2;var A=$f[S];if(A){var I=r.indexOf(A,t);I!==-1&&(t=I+1)}if(r[t]==="!")return!0}else t++}return!1},Wg=function(r){if(r[0]==="!")return!0;for(var t=0;t<r.length;){if(/[*?{}()[\]]/.test(r[t]))return!0;if(r[t]==="\\"){var e=r[t+1];t+=2;var u=$f[e];if(u){var d=r.indexOf(u,t);d!==-1&&(t=d+1)}if(r[t]==="!")return!0}else t++}return!1};Gf.exports=function(t,e){if(typeof t!="string"||t==="")return!1;if(Hg(t))return!0;var u=qg;return e&&e.strict===!1&&(u=Wg),u(t)}});var Yf=V((ak,Vf)=>{"use strict";var $g=Kf(),Gg=require("path").posix.dirname,Kg=require("os").platform()==="win32",ys="/",Vg=/\\/g,Yg=/[\{\[].*[\}\]]$/,Qg=/(^|[^\\])([\{\[]|\([^\)]+$)/,zg=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Vf.exports=function(t,e){var u=Object.assign({flipBackslashes:!0},e);u.flipBackslashes&&Kg&&t.indexOf(ys)<0&&(t=t.replace(Vg,ys)),Yg.test(t)&&(t+=ys),t+="a";do t=Gg(t);while($g(t)||Qg.test(t));return t.replace(zg,"$1")}});var Oi=V(lt=>{"use strict";lt.isInteger=r=>typeof r=="number"?Number.isInteger(r):typeof r=="string"&&r.trim()!==""?Number.isInteger(Number(r)):!1;lt.find=(r,t)=>r.nodes.find(e=>e.type===t);lt.exceedsLimit=(r,t,e=1,u)=>u===!1||!lt.isInteger(r)||!lt.isInteger(t)?!1:(Number(t)-Number(r))/Number(e)>=u;lt.escapeNode=(r,t=0,e)=>{let u=r.nodes[t];!u||(e&&u.type===e||u.type==="open"||u.type==="close")&&u.escaped!==!0&&(u.value="\\"+u.value,u.escaped=!0)};lt.encloseBrace=r=>r.type!=="brace"?!1:r.commas>>0+r.ranges>>0===0?(r.invalid=!0,!0):!1;lt.isInvalidBrace=r=>r.type!=="brace"?!1:r.invalid===!0||r.dollar?!0:r.commas>>0+r.ranges>>0===0||r.open!==!0||r.close!==!0?(r.invalid=!0,!0):!1;lt.isOpenOrClose=r=>r.type==="open"||r.type==="close"?!0:r.open===!0||r.close===!0;lt.reduce=r=>r.reduce((t,e)=>(e.type==="text"&&t.push(e.value),e.type==="range"&&(e.type="text"),t),[]);lt.flatten=(...r)=>{let t=[],e=u=>{for(let d=0;d<u.length;d++){let y=u[d];Array.isArray(y)?e(y,t):y!==void 0&&t.push(y)}return t};return e(r),t}});var Fi=V((ok,zf)=>{"use strict";var Qf=Oi();zf.exports=(r,t={})=>{let e=(u,d={})=>{let y=t.escapeInvalid&&Qf.isInvalidBrace(d),v=u.invalid===!0&&t.escapeInvalid===!0,S="";if(u.value)return(y||v)&&Qf.isOpenOrClose(u)?"\\"+u.value:u.value;if(u.value)return u.value;if(u.nodes)for(let A of u.nodes)S+=e(A);return S};return e(r)}});var Jf=V((uk,Xf)=>{"use strict";Xf.exports=function(r){return typeof r=="number"?r-r===0:typeof r=="string"&&r.trim()!==""?Number.isFinite?Number.isFinite(+r):isFinite(+r):!1}});var o_=V((lk,s_)=>{"use strict";var Zf=Jf(),Kt=(r,t,e)=>{if(Zf(r)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||r===t)return String(r);if(Zf(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let u={relaxZeros:!0,...e};typeof u.strictZeros=="boolean"&&(u.relaxZeros=u.strictZeros===!1);let d=String(u.relaxZeros),y=String(u.shorthand),v=String(u.capture),S=String(u.wrap),A=r+":"+t+"="+d+y+v+S;if(Kt.cache.hasOwnProperty(A))return Kt.cache[A].result;let I=Math.min(r,t),R=Math.max(r,t);if(Math.abs(I-R)===1){let z=r+"|"+t;return u.capture?`(${z})`:u.wrap===!1?z:`(?:${z})`}let L=a_(r)||a_(t),P={min:r,max:t,a:I,b:R},fe=[],K=[];if(L&&(P.isPadded=L,P.maxLen=String(P.max).length),I<0){let z=R<0?Math.abs(R):1;K=e_(z,Math.abs(I),P,u),I=P.a=0}return R>=0&&(fe=e_(I,R,P,u)),P.negatives=K,P.positives=fe,P.result=Xg(K,fe,u),u.capture===!0?P.result=`(${P.result})`:u.wrap!==!1&&fe.length+K.length>1&&(P.result=`(?:${P.result})`),Kt.cache[A]=P,P.result};function Xg(r,t,e){let u=hs(r,t,"-",!1,e)||[],d=hs(t,r,"",!1,e)||[],y=hs(r,t,"-?",!0,e)||[];return u.concat(y).concat(d).join("|")}function Jg(r,t){let e=1,u=1,d=r_(r,e),y=new Set([t]);for(;r<=d&&d<=t;)y.add(d),e+=1,d=r_(r,e);for(d=i_(t+1,u)-1;r<d&&d<=t;)y.add(d),u+=1,d=i_(t+1,u)-1;return y=[...y],y.sort(tb),y}function Zg(r,t,e){if(r===t)return{pattern:r,count:[],digits:0};let u=eb(r,t),d=u.length,y="",v=0;for(let S=0;S<d;S++){let[A,I]=u[S];A===I?y+=A:A!=="0"||I!=="9"?y+=rb(A,I,e):v++}return v&&(y+=e.shorthand===!0?"\\d":"[0-9]"),{pattern:y,count:[v],digits:d}}function e_(r,t,e,u){let d=Jg(r,t),y=[],v=r,S;for(let A=0;A<d.length;A++){let I=d[A],R=Zg(String(v),String(I),u),L="";if(!e.isPadded&&S&&S.pattern===R.pattern){S.count.length>1&&S.count.pop(),S.count.push(R.count[0]),S.string=S.pattern+n_(S.count),v=I+1;continue}e.isPadded&&(L=ib(I,e,u)),R.string=L+R.pattern+n_(R.count),y.push(R),v=I+1,S=R}return y}function hs(r,t,e,u,d){let y=[];for(let v of r){let{string:S}=v;!u&&!t_(t,"string",S)&&y.push(e+S),u&&t_(t,"string",S)&&y.push(e+S)}return y}function eb(r,t){let e=[];for(let u=0;u<r.length;u++)e.push([r[u],t[u]]);return e}function tb(r,t){return r>t?1:t>r?-1:0}function t_(r,t,e){return r.some(u=>u[t]===e)}function r_(r,t){return Number(String(r).slice(0,-t)+"9".repeat(t))}function i_(r,t){return r-r%Math.pow(10,t)}function n_(r){let[t=0,e=""]=r;return e||t>1?`{${t+(e?","+e:"")}}`:""}function rb(r,t,e){return`[${r}${t-r===1?"":"-"}${t}]`}function a_(r){return/^-?(0+)\d/.test(r)}function ib(r,t,e){if(!t.isPadded)return r;let u=Math.abs(t.maxLen-String(r).length),d=e.relaxZeros!==!1;switch(u){case 0:return"";case 1:return d?"0?":"0";case 2:return d?"0{0,2}":"00";default:return d?`0{0,${u}}`:`0{${u}}`}}Kt.cache={};Kt.clearCache=()=>Kt.cache={};s_.exports=Kt});var gs=V((ck,y_)=>{"use strict";var nb=require("util"),c_=o_(),u_=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),ab=r=>t=>r===!0?Number(t):String(t),ms=r=>typeof r=="number"||typeof r=="string"&&r!=="",qr=r=>Number.isInteger(+r),vs=r=>{let t=`${r}`,e=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++e]==="0";);return e>0},sb=(r,t,e)=>typeof r=="string"||typeof t=="string"?!0:e.stringify===!0,ob=(r,t,e)=>{if(t>0){let u=r[0]==="-"?"-":"";u&&(r=r.slice(1)),r=u+r.padStart(u?t-1:t,"0")}return e===!1?String(r):r},l_=(r,t)=>{let e=r[0]==="-"?"-":"";for(e&&(r=r.slice(1),t--);r.length<t;)r="0"+r;return e?"-"+r:r},ub=(r,t)=>{r.negatives.sort((v,S)=>v<S?-1:v>S?1:0),r.positives.sort((v,S)=>v<S?-1:v>S?1:0);let e=t.capture?"":"?:",u="",d="",y;return r.positives.length&&(u=r.positives.join("|")),r.negatives.length&&(d=`-(${e}${r.negatives.join("|")})`),u&&d?y=`${u}|${d}`:y=u||d,t.wrap?`(${e}${y})`:y},f_=(r,t,e,u)=>{if(e)return c_(r,t,{wrap:!1,...u});let d=String.fromCharCode(r);if(r===t)return d;let y=String.fromCharCode(t);return`[${d}-${y}]`},__=(r,t,e)=>{if(Array.isArray(r)){let u=e.wrap===!0,d=e.capture?"":"?:";return u?`(${d}${r.join("|")})`:r.join("|")}return c_(r,t,e)},d_=(...r)=>new RangeError("Invalid range arguments: "+nb.inspect(...r)),p_=(r,t,e)=>{if(e.strictRanges===!0)throw d_([r,t]);return[]},lb=(r,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${r}" to be a number`);return[]},cb=(r,t,e=1,u={})=>{let d=Number(r),y=Number(t);if(!Number.isInteger(d)||!Number.isInteger(y)){if(u.strictRanges===!0)throw d_([r,t]);return[]}d===0&&(d=0),y===0&&(y=0);let v=d>y,S=String(r),A=String(t),I=String(e);e=Math.max(Math.abs(e),1);let R=vs(S)||vs(A)||vs(I),L=R?Math.max(S.length,A.length,I.length):0,P=R===!1&&sb(r,t,u)===!1,fe=u.transform||ab(P);if(u.toRegex&&e===1)return f_(l_(r,L),l_(t,L),!0,u);let K={negatives:[],positives:[]},z=be=>K[be<0?"negatives":"positives"].push(Math.abs(be)),ee=[],oe=0;for(;v?d>=y:d<=y;)u.toRegex===!0&&e>1?z(d):ee.push(ob(fe(d,oe),L,P)),d=v?d-e:d+e,oe++;return u.toRegex===!0?e>1?ub(K,u):__(ee,null,{wrap:!1,...u}):ee},fb=(r,t,e=1,u={})=>{if(!qr(r)&&r.length>1||!qr(t)&&t.length>1)return p_(r,t,u);let d=u.transform||(P=>String.fromCharCode(P)),y=`${r}`.charCodeAt(0),v=`${t}`.charCodeAt(0),S=y>v,A=Math.min(y,v),I=Math.max(y,v);if(u.toRegex&&e===1)return f_(A,I,!1,u);let R=[],L=0;for(;S?y>=v:y<=v;)R.push(d(y,L)),y=S?y-e:y+e,L++;return u.toRegex===!0?__(R,null,{wrap:!1,options:u}):R},Ni=(r,t,e,u={})=>{if(t==null&&ms(r))return[r];if(!ms(r)||!ms(t))return p_(r,t,u);if(typeof e=="function")return Ni(r,t,1,{transform:e});if(u_(e))return Ni(r,t,0,e);let d={...u};return d.capture===!0&&(d.wrap=!0),e=e||d.step||1,qr(e)?qr(r)&&qr(t)?cb(r,t,e,d):fb(r,t,Math.max(Math.abs(e),1),d):e!=null&&!u_(e)?lb(e,d):Ni(r,t,1,e)};y_.exports=Ni});var v_=V((fk,m_)=>{"use strict";var _b=gs(),h_=Oi(),db=(r,t={})=>{let e=(u,d={})=>{let y=h_.isInvalidBrace(d),v=u.invalid===!0&&t.escapeInvalid===!0,S=y===!0||v===!0,A=t.escapeInvalid===!0?"\\":"",I="";if(u.isOpen===!0||u.isClose===!0)return A+u.value;if(u.type==="open")return S?A+u.value:"(";if(u.type==="close")return S?A+u.value:")";if(u.type==="comma")return u.prev.type==="comma"?"":S?u.value:"|";if(u.value)return u.value;if(u.nodes&&u.ranges>0){let R=h_.reduce(u.nodes),L=_b(...R,{...t,wrap:!1,toRegex:!0});if(L.length!==0)return R.length>1&&L.length>1?`(${L})`:L}if(u.nodes)for(let R of u.nodes)I+=e(R,u);return I};return e(r)};m_.exports=db});var j_=V((_k,b_)=>{"use strict";var pb=gs(),g_=Fi(),dr=Oi(),Vt=(r="",t="",e=!1)=>{let u=[];if(r=[].concat(r),t=[].concat(t),!t.length)return r;if(!r.length)return e?dr.flatten(t).map(d=>`{${d}}`):t;for(let d of r)if(Array.isArray(d))for(let y of d)u.push(Vt(y,t,e));else for(let y of t)e===!0&&typeof y=="string"&&(y=`{${y}}`),u.push(Array.isArray(y)?Vt(d,y,e):d+y);return dr.flatten(u)},yb=(r,t={})=>{let e=t.rangeLimit===void 0?1e3:t.rangeLimit,u=(d,y={})=>{d.queue=[];let v=y,S=y.queue;for(;v.type!=="brace"&&v.type!=="root"&&v.parent;)v=v.parent,S=v.queue;if(d.invalid||d.dollar){S.push(Vt(S.pop(),g_(d,t)));return}if(d.type==="brace"&&d.invalid!==!0&&d.nodes.length===2){S.push(Vt(S.pop(),["{}"]));return}if(d.nodes&&d.ranges>0){let L=dr.reduce(d.nodes);if(dr.exceedsLimit(...L,t.step,e))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let P=pb(...L,t);P.length===0&&(P=g_(d,t)),S.push(Vt(S.pop(),P)),d.nodes=[];return}let A=dr.encloseBrace(d),I=d.queue,R=d;for(;R.type!=="brace"&&R.type!=="root"&&R.parent;)R=R.parent,I=R.queue;for(let L=0;L<d.nodes.length;L++){let P=d.nodes[L];if(P.type==="comma"&&d.type==="brace"){L===1&&I.push(""),I.push("");continue}if(P.type==="close"){S.push(Vt(S.pop(),I,A));continue}if(P.value&&P.type!=="open"){I.push(Vt(I.pop(),P.value));continue}P.nodes&&u(P,d)}return I};return dr.flatten(u(r))};b_.exports=yb});var k_=V((dk,w_)=>{"use strict";w_.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
2
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var R_=V((pk,A_)=>{"use strict";var hb=Fi(),{MAX_LENGTH:C_,CHAR_BACKSLASH:bs,CHAR_BACKTICK:mb,CHAR_COMMA:vb,CHAR_DOT:gb,CHAR_LEFT_PARENTHESES:bb,CHAR_RIGHT_PARENTHESES:jb,CHAR_LEFT_CURLY_BRACE:wb,CHAR_RIGHT_CURLY_BRACE:kb,CHAR_LEFT_SQUARE_BRACKET:S_,CHAR_RIGHT_SQUARE_BRACKET:E_,CHAR_DOUBLE_QUOTE:Cb,CHAR_SINGLE_QUOTE:Sb,CHAR_NO_BREAK_SPACE:Eb,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Ab}=k_(),Rb=(r,t={})=>{if(typeof r!="string")throw new TypeError("Expected a string");let e=t||{},u=typeof e.maxLength=="number"?Math.min(C_,e.maxLength):C_;if(r.length>u)throw new SyntaxError(`Input length (${r.length}), exceeds max characters (${u})`);let d={type:"root",input:r,nodes:[]},y=[d],v=d,S=d,A=0,I=r.length,R=0,L=0,P,fe={},K=()=>r[R++],z=ee=>{if(ee.type==="text"&&S.type==="dot"&&(S.type="text"),S&&S.type==="text"&&ee.type==="text"){S.value+=ee.value;return}return v.nodes.push(ee),ee.parent=v,ee.prev=S,S=ee,ee};for(z({type:"bos"});R<I;)if(v=y[y.length-1],P=K(),!(P===Ab||P===Eb)){if(P===bs){z({type:"text",value:(t.keepEscaping?P:"")+K()});continue}if(P===E_){z({type:"text",value:"\\"+P});continue}if(P===S_){A++;let ee=!0,oe;for(;R<I&&(oe=K());){if(P+=oe,oe===S_){A++;continue}if(oe===bs){P+=K();continue}if(oe===E_&&(A--,A===0))break}z({type:"text",value:P});continue}if(P===bb){v=z({type:"paren",nodes:[]}),y.push(v),z({type:"text",value:P});continue}if(P===jb){if(v.type!=="paren"){z({type:"text",value:P});continue}v=y.pop(),z({type:"text",value:P}),v=y[y.length-1];continue}if(P===Cb||P===Sb||P===mb){let ee=P,oe;for(t.keepQuotes!==!0&&(P="");R<I&&(oe=K());){if(oe===bs){P+=oe+K();continue}if(oe===ee){t.keepQuotes===!0&&(P+=oe);break}P+=oe}z({type:"text",value:P});continue}if(P===wb){L++;let ee=S.value&&S.value.slice(-1)==="$"||v.dollar===!0;v=z({type:"brace",open:!0,close:!1,dollar:ee,depth:L,commas:0,ranges:0,nodes:[]}),y.push(v),z({type:"open",value:P});continue}if(P===kb){if(v.type!=="brace"){z({type:"text",value:P});continue}let ee="close";v=y.pop(),v.close=!0,z({type:ee,value:P}),L--,v=y[y.length-1];continue}if(P===vb&&L>0){if(v.ranges>0){v.ranges=0;let ee=v.nodes.shift();v.nodes=[ee,{type:"text",value:hb(v)}]}z({type:"comma",value:P}),v.commas++;continue}if(P===gb&&L>0&&v.commas===0){let ee=v.nodes;if(L===0||ee.length===0){z({type:"text",value:P});continue}if(S.type==="dot"){if(v.range=[],S.value+=P,S.type="range",v.nodes.length!==3&&v.nodes.length!==5){v.invalid=!0,v.ranges=0,S.type="text";continue}v.ranges++,v.args=[];continue}if(S.type==="range"){ee.pop();let oe=ee[ee.length-1];oe.value+=S.value+P,S=oe,v.ranges--;continue}z({type:"dot",value:P});continue}z({type:"text",value:P})}do if(v=y.pop(),v.type!=="root"){v.nodes.forEach(be=>{be.nodes||(be.type==="open"&&(be.isOpen=!0),be.type==="close"&&(be.isClose=!0),be.nodes||(be.type="text"),be.invalid=!0)});let ee=y[y.length-1],oe=ee.nodes.indexOf(v);ee.nodes.splice(oe,1,...v.nodes)}while(y.length>0);return z({type:"eos"}),d};A_.exports=Rb});var P_=V((yk,D_)=>{"use strict";var T_=Fi(),Tb=v_(),Db=j_(),Pb=R_(),st=(r,t={})=>{let e=[];if(Array.isArray(r))for(let u of r){let d=st.create(u,t);Array.isArray(d)?e.push(...d):e.push(d)}else e=[].concat(st.create(r,t));return t&&t.expand===!0&&t.nodupes===!0&&(e=[...new Set(e)]),e};st.parse=(r,t={})=>Pb(r,t);st.stringify=(r,t={})=>T_(typeof r=="string"?st.parse(r,t):r,t);st.compile=(r,t={})=>(typeof r=="string"&&(r=st.parse(r,t)),Tb(r,t));st.expand=(r,t={})=>{typeof r=="string"&&(r=st.parse(r,t));let e=Db(r,t);return t.noempty===!0&&(e=e.filter(Boolean)),t.nodupes===!0&&(e=[...new Set(e)]),e};st.create=(r,t={})=>r===""||r.length<3?[r]:t.expand!==!0?st.compile(r,t):st.expand(r,t);D_.exports=st});var Wr=V((hk,M_)=>{"use strict";var xb=require("path"),ht="\\\\/",x_=`[^${ht}]`,Ct="\\.",Ob="\\+",Fb="\\?",Mi="\\/",Nb="(?=.)",O_="[^/]",js=`(?:${Mi}|$)`,F_=`(?:^|${Mi})`,ws=`${Ct}{1,2}${js}`,Mb=`(?!${Ct})`,Ib=`(?!${F_}${ws})`,Bb=`(?!${Ct}{0,1}${js})`,Lb=`(?!${ws})`,Ub=`[^.${Mi}]`,Hb=`${O_}*?`,N_={DOT_LITERAL:Ct,PLUS_LITERAL:Ob,QMARK_LITERAL:Fb,SLASH_LITERAL:Mi,ONE_CHAR:Nb,QMARK:O_,END_ANCHOR:js,DOTS_SLASH:ws,NO_DOT:Mb,NO_DOTS:Ib,NO_DOT_SLASH:Bb,NO_DOTS_SLASH:Lb,QMARK_NO_DOT:Ub,STAR:Hb,START_ANCHOR:F_},qb={...N_,SLASH_LITERAL:`[${ht}]`,QMARK:x_,STAR:`${x_}*?`,DOTS_SLASH:`${Ct}{1,2}(?:[${ht}]|$)`,NO_DOT:`(?!${Ct})`,NO_DOTS:`(?!(?:^|[${ht}])${Ct}{1,2}(?:[${ht}]|$))`,NO_DOT_SLASH:`(?!${Ct}{0,1}(?:[${ht}]|$))`,NO_DOTS_SLASH:`(?!${Ct}{1,2}(?:[${ht}]|$))`,QMARK_NO_DOT:`[^.${ht}]`,START_ANCHOR:`(?:^|[${ht}])`,END_ANCHOR:`(?:[${ht}]|$)`},Wb={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};M_.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Wb,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:xb.sep,extglobChars(r){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${r.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(r){return r===!0?qb:N_}}});var $r=V(nt=>{"use strict";var $b=require("path"),Gb=process.platform==="win32",{REGEX_BACKSLASH:Kb,REGEX_REMOVE_BACKSLASH:Vb,REGEX_SPECIAL_CHARS:Yb,REGEX_SPECIAL_CHARS_GLOBAL:Qb}=Wr();nt.isObject=r=>r!==null&&typeof r=="object"&&!Array.isArray(r);nt.hasRegexChars=r=>Yb.test(r);nt.isRegexChar=r=>r.length===1&&nt.hasRegexChars(r);nt.escapeRegex=r=>r.replace(Qb,"\\$1");nt.toPosixSlashes=r=>r.replace(Kb,"/");nt.removeBackslashes=r=>r.replace(Vb,t=>t==="\\"?"":t);nt.supportsLookbehinds=()=>{let r=process.version.slice(1).split(".").map(Number);return r.length===3&&r[0]>=9||r[0]===8&&r[1]>=10};nt.isWindows=r=>r&&typeof r.windows=="boolean"?r.windows:Gb===!0||$b.sep==="\\";nt.escapeLast=(r,t,e)=>{let u=r.lastIndexOf(t,e);return u===-1?r:r[u-1]==="\\"?nt.escapeLast(r,t,u-1):`${r.slice(0,u)}\\${r.slice(u)}`};nt.removePrefix=(r,t={})=>{let e=r;return e.startsWith("./")&&(e=e.slice(2),t.prefix="./"),e};nt.wrapOutput=(r,t={},e={})=>{let u=e.contains?"":"^",d=e.contains?"":"$",y=`${u}(?:${r})${d}`;return t.negated===!0&&(y=`(?:^(?!${y}).*$)`),y}});var $_=V((vk,W_)=>{"use strict";var I_=$r(),{CHAR_ASTERISK:ks,CHAR_AT:zb,CHAR_BACKWARD_SLASH:Gr,CHAR_COMMA:Xb,CHAR_DOT:Cs,CHAR_EXCLAMATION_MARK:Ss,CHAR_FORWARD_SLASH:q_,CHAR_LEFT_CURLY_BRACE:Es,CHAR_LEFT_PARENTHESES:As,CHAR_LEFT_SQUARE_BRACKET:Jb,CHAR_PLUS:Zb,CHAR_QUESTION_MARK:B_,CHAR_RIGHT_CURLY_BRACE:ej,CHAR_RIGHT_PARENTHESES:L_,CHAR_RIGHT_SQUARE_BRACKET:tj}=Wr(),U_=r=>r===q_||r===Gr,H_=r=>{r.isPrefix!==!0&&(r.depth=r.isGlobstar?1/0:1)},rj=(r,t)=>{let e=t||{},u=r.length-1,d=e.parts===!0||e.scanToEnd===!0,y=[],v=[],S=[],A=r,I=-1,R=0,L=0,P=!1,fe=!1,K=!1,z=!1,ee=!1,oe=!1,be=!1,me=!1,Ae=!1,ie=!1,ke=0,J,te,$={value:"",depth:0,isGlob:!1},pe=()=>I>=u,F=()=>A.charCodeAt(I+1),ue=()=>(J=te,A.charCodeAt(++I));for(;I<u;){te=ue();let Pe;if(te===Gr){be=$.backslashes=!0,te=ue(),te===Es&&(oe=!0);continue}if(oe===!0||te===Es){for(ke++;pe()!==!0&&(te=ue());){if(te===Gr){be=$.backslashes=!0,ue();continue}if(te===Es){ke++;continue}if(oe!==!0&&te===Cs&&(te=ue())===Cs){if(P=$.isBrace=!0,K=$.isGlob=!0,ie=!0,d===!0)continue;break}if(oe!==!0&&te===Xb){if(P=$.isBrace=!0,K=$.isGlob=!0,ie=!0,d===!0)continue;break}if(te===ej&&(ke--,ke===0)){oe=!1,P=$.isBrace=!0,ie=!0;break}}if(d===!0)continue;break}if(te===q_){if(y.push(I),v.push($),$={value:"",depth:0,isGlob:!1},ie===!0)continue;if(J===Cs&&I===R+1){R+=2;continue}L=I+1;continue}if(e.noext!==!0&&(te===Zb||te===zb||te===ks||te===B_||te===Ss)===!0&&F()===As){if(K=$.isGlob=!0,z=$.isExtglob=!0,ie=!0,te===Ss&&I===R&&(Ae=!0),d===!0){for(;pe()!==!0&&(te=ue());){if(te===Gr){be=$.backslashes=!0,te=ue();continue}if(te===L_){K=$.isGlob=!0,ie=!0;break}}continue}break}if(te===ks){if(J===ks&&(ee=$.isGlobstar=!0),K=$.isGlob=!0,ie=!0,d===!0)continue;break}if(te===B_){if(K=$.isGlob=!0,ie=!0,d===!0)continue;break}if(te===Jb){for(;pe()!==!0&&(Pe=ue());){if(Pe===Gr){be=$.backslashes=!0,ue();continue}if(Pe===tj){fe=$.isBracket=!0,K=$.isGlob=!0,ie=!0;break}}if(d===!0)continue;break}if(e.nonegate!==!0&&te===Ss&&I===R){me=$.negated=!0,R++;continue}if(e.noparen!==!0&&te===As){if(K=$.isGlob=!0,d===!0){for(;pe()!==!0&&(te=ue());){if(te===As){be=$.backslashes=!0,te=ue();continue}if(te===L_){ie=!0;break}}continue}break}if(K===!0){if(ie=!0,d===!0)continue;break}}e.noext===!0&&(z=!1,K=!1);let ae=A,Ce="",D="";R>0&&(Ce=A.slice(0,R),A=A.slice(R),L-=R),ae&&K===!0&&L>0?(ae=A.slice(0,L),D=A.slice(L)):K===!0?(ae="",D=A):ae=A,ae&&ae!==""&&ae!=="/"&&ae!==A&&U_(ae.charCodeAt(ae.length-1))&&(ae=ae.slice(0,-1)),e.unescape===!0&&(D&&(D=I_.removeBackslashes(D)),ae&&be===!0&&(ae=I_.removeBackslashes(ae)));let x={prefix:Ce,input:r,start:R,base:ae,glob:D,isBrace:P,isBracket:fe,isGlob:K,isExtglob:z,isGlobstar:ee,negated:me,negatedExtglob:Ae};if(e.tokens===!0&&(x.maxDepth=0,U_(te)||v.push($),x.tokens=v),e.parts===!0||e.tokens===!0){let Pe;for(let le=0;le<y.length;le++){let Ye=Pe?Pe+1:R,We=y[le],xe=r.slice(Ye,We);e.tokens&&(le===0&&R!==0?(v[le].isPrefix=!0,v[le].value=Ce):v[le].value=xe,H_(v[le]),x.maxDepth+=v[le].depth),(le!==0||xe!=="")&&S.push(xe),Pe=We}if(Pe&&Pe+1<r.length){let le=r.slice(Pe+1);S.push(le),e.tokens&&(v[v.length-1].value=le,H_(v[v.length-1]),x.maxDepth+=v[v.length-1].depth)}x.slashes=y,x.parts=S}return x};W_.exports=rj});var Y_=V((gk,V_)=>{"use strict";var Ii=Wr(),ot=$r(),{MAX_LENGTH:Bi,POSIX_REGEX_SOURCE:ij,REGEX_NON_SPECIAL_CHARS:nj,REGEX_SPECIAL_CHARS_BACKREF:aj,REPLACEMENTS:G_}=Ii,sj=(r,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...r,t);r.sort();let e=`[${r.join("-")}]`;try{new RegExp(e)}catch{return r.map(d=>ot.escapeRegex(d)).join("..")}return e},pr=(r,t)=>`Missing ${r}: "${t}" - use "\\\\${t}" to match literal characters`,K_=(r,t)=>{if(typeof r!="string")throw new TypeError("Expected a string");r=G_[r]||r;let e={...t},u=typeof e.maxLength=="number"?Math.min(Bi,e.maxLength):Bi,d=r.length;if(d>u)throw new SyntaxError(`Input length: ${d}, exceeds maximum allowed length: ${u}`);let y={type:"bos",value:"",output:e.prepend||""},v=[y],S=e.capture?"":"?:",A=ot.isWindows(t),I=Ii.globChars(A),R=Ii.extglobChars(I),{DOT_LITERAL:L,PLUS_LITERAL:P,SLASH_LITERAL:fe,ONE_CHAR:K,DOTS_SLASH:z,NO_DOT:ee,NO_DOT_SLASH:oe,NO_DOTS_SLASH:be,QMARK:me,QMARK_NO_DOT:Ae,STAR:ie,START_ANCHOR:ke}=I,J=O=>`(${S}(?:(?!${ke}${O.dot?z:L}).)*?)`,te=e.dot?"":ee,$=e.dot?me:Ae,pe=e.bash===!0?J(e):ie;e.capture&&(pe=`(${pe})`),typeof e.noext=="boolean"&&(e.noextglob=e.noext);let F={input:r,index:-1,start:0,dot:e.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:v};r=ot.removePrefix(r,F),d=r.length;let ue=[],ae=[],Ce=[],D=y,x,Pe=()=>F.index===d-1,le=F.peek=(O=1)=>r[F.index+O],Ye=F.advance=()=>r[++F.index]||"",We=()=>r.slice(F.index+1),xe=(O="",ve=0)=>{F.consumed+=O,F.index+=ve},_t=O=>{F.output+=O.output!=null?O.output:O.value,xe(O.value)},It=()=>{let O=1;for(;le()==="!"&&(le(2)!=="("||le(3)==="?");)Ye(),F.start++,O++;return O%2===0?!1:(F.negated=!0,F.start++,!0)},bt=O=>{F[O]++,Ce.push(O)},Qe=O=>{F[O]--,Ce.pop()},se=O=>{if(D.type==="globstar"){let ve=F.braces>0&&(O.type==="comma"||O.type==="brace"),W=O.extglob===!0||ue.length&&(O.type==="pipe"||O.type==="paren");O.type!=="slash"&&O.type!=="paren"&&!ve&&!W&&(F.output=F.output.slice(0,-D.output.length),D.type="star",D.value="*",D.output=pe,F.output+=D.output)}if(ue.length&&O.type!=="paren"&&(ue[ue.length-1].inner+=O.value),(O.value||O.output)&&_t(O),D&&D.type==="text"&&O.type==="text"){D.value+=O.value,D.output=(D.output||"")+O.value;return}O.prev=D,v.push(O),D=O},at=(O,ve)=>{let W={...R[ve],conditions:1,inner:""};W.prev=D,W.parens=F.parens,W.output=F.output;let N=(e.capture?"(":"")+W.open;bt("parens"),se({type:O,value:ve,output:F.output?"":K}),se({type:"paren",extglob:!0,value:Ye(),output:N}),ue.push(W)},Je=O=>{let ve=O.close+(e.capture?")":""),W;if(O.type==="negate"){let N=pe;O.inner&&O.inner.length>1&&O.inner.includes("/")&&(N=J(e)),(N!==pe||Pe()||/^\)+$/.test(We()))&&(ve=O.close=`)$))${N}`),O.inner.includes("*")&&(W=We())&&/^\.[^\\/.]+$/.test(W)&&(ve=O.close=`)${W})${N})`),O.prev.type==="bos"&&(F.negatedExtglob=!0)}se({type:"paren",extglob:!0,value:x,output:ve}),Qe("parens")};if(e.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(r)){let O=!1,ve=r.replace(aj,(W,N,Re,He,Fe,jt)=>He==="\\"?(O=!0,W):He==="?"?N?N+He+(Fe?me.repeat(Fe.length):""):jt===0?$+(Fe?me.repeat(Fe.length):""):me.repeat(Re.length):He==="."?L.repeat(Re.length):He==="*"?N?N+He+(Fe?pe:""):pe:N?W:`\\${W}`);return O===!0&&(e.unescape===!0?ve=ve.replace(/\\/g,""):ve=ve.replace(/\\+/g,W=>W.length%2===0?"\\\\":W?"\\":"")),ve===r&&e.contains===!0?(F.output=r,F):(F.output=ot.wrapOutput(ve,F,t),F)}for(;!Pe();){if(x=Ye(),x==="\0")continue;if(x==="\\"){let W=le();if(W==="/"&&e.bash!==!0||W==="."||W===";")continue;if(!W){x+="\\",se({type:"text",value:x});continue}let N=/^\\+/.exec(We()),Re=0;if(N&&N[0].length>2&&(Re=N[0].length,F.index+=Re,Re%2!==0&&(x+="\\")),e.unescape===!0?x=Ye():x+=Ye(),F.brackets===0){se({type:"text",value:x});continue}}if(F.brackets>0&&(x!=="]"||D.value==="["||D.value==="[^")){if(e.posix!==!1&&x===":"){let W=D.value.slice(1);if(W.includes("[")&&(D.posix=!0,W.includes(":"))){let N=D.value.lastIndexOf("["),Re=D.value.slice(0,N),He=D.value.slice(N+2),Fe=ij[He];if(Fe){D.value=Re+Fe,F.backtrack=!0,Ye(),!y.output&&v.indexOf(D)===1&&(y.output=K);continue}}}(x==="["&&le()!==":"||x==="-"&&le()==="]")&&(x=`\\${x}`),x==="]"&&(D.value==="["||D.value==="[^")&&(x=`\\${x}`),e.posix===!0&&x==="!"&&D.value==="["&&(x="^"),D.value+=x,_t({value:x});continue}if(F.quotes===1&&x!=='"'){x=ot.escapeRegex(x),D.value+=x,_t({value:x});continue}if(x==='"'){F.quotes=F.quotes===1?0:1,e.keepQuotes===!0&&se({type:"text",value:x});continue}if(x==="("){bt("parens"),se({type:"paren",value:x});continue}if(x===")"){if(F.parens===0&&e.strictBrackets===!0)throw new SyntaxError(pr("opening","("));let W=ue[ue.length-1];if(W&&F.parens===W.parens+1){Je(ue.pop());continue}se({type:"paren",value:x,output:F.parens?")":"\\)"}),Qe("parens");continue}if(x==="["){if(e.nobracket===!0||!We().includes("]")){if(e.nobracket!==!0&&e.strictBrackets===!0)throw new SyntaxError(pr("closing","]"));x=`\\${x}`}else bt("brackets");se({type:"bracket",value:x});continue}if(x==="]"){if(e.nobracket===!0||D&&D.type==="bracket"&&D.value.length===1){se({type:"text",value:x,output:`\\${x}`});continue}if(F.brackets===0){if(e.strictBrackets===!0)throw new SyntaxError(pr("opening","["));se({type:"text",value:x,output:`\\${x}`});continue}Qe("brackets");let W=D.value.slice(1);if(D.posix!==!0&&W[0]==="^"&&!W.includes("/")&&(x=`/${x}`),D.value+=x,_t({value:x}),e.literalBrackets===!1||ot.hasRegexChars(W))continue;let N=ot.escapeRegex(D.value);if(F.output=F.output.slice(0,-D.value.length),e.literalBrackets===!0){F.output+=N,D.value=N;continue}D.value=`(${S}${N}|${D.value})`,F.output+=D.value;continue}if(x==="{"&&e.nobrace!==!0){bt("braces");let W={type:"brace",value:x,output:"(",outputIndex:F.output.length,tokensIndex:F.tokens.length};ae.push(W),se(W);continue}if(x==="}"){let W=ae[ae.length-1];if(e.nobrace===!0||!W){se({type:"text",value:x,output:x});continue}let N=")";if(W.dots===!0){let Re=v.slice(),He=[];for(let Fe=Re.length-1;Fe>=0&&(v.pop(),Re[Fe].type!=="brace");Fe--)Re[Fe].type!=="dots"&&He.unshift(Re[Fe].value);N=sj(He,e),F.backtrack=!0}if(W.comma!==!0&&W.dots!==!0){let Re=F.output.slice(0,W.outputIndex),He=F.tokens.slice(W.tokensIndex);W.value=W.output="\\{",x=N="\\}",F.output=Re;for(let Fe of He)F.output+=Fe.output||Fe.value}se({type:"brace",value:x,output:N}),Qe("braces"),ae.pop();continue}if(x==="|"){ue.length>0&&ue[ue.length-1].conditions++,se({type:"text",value:x});continue}if(x===","){let W=x,N=ae[ae.length-1];N&&Ce[Ce.length-1]==="braces"&&(N.comma=!0,W="|"),se({type:"comma",value:x,output:W});continue}if(x==="/"){if(D.type==="dot"&&F.index===F.start+1){F.start=F.index+1,F.consumed="",F.output="",v.pop(),D=y;continue}se({type:"slash",value:x,output:fe});continue}if(x==="."){if(F.braces>0&&D.type==="dot"){D.value==="."&&(D.output=L);let W=ae[ae.length-1];D.type="dots",D.output+=x,D.value+=x,W.dots=!0;continue}if(F.braces+F.parens===0&&D.type!=="bos"&&D.type!=="slash"){se({type:"text",value:x,output:L});continue}se({type:"dot",value:x,output:L});continue}if(x==="?"){if(!(D&&D.value==="(")&&e.noextglob!==!0&&le()==="("&&le(2)!=="?"){at("qmark",x);continue}if(D&&D.type==="paren"){let N=le(),Re=x;if(N==="<"&&!ot.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(D.value==="("&&!/[!=<:]/.test(N)||N==="<"&&!/<([!=]|\w+>)/.test(We()))&&(Re=`\\${x}`),se({type:"text",value:x,output:Re});continue}if(e.dot!==!0&&(D.type==="slash"||D.type==="bos")){se({type:"qmark",value:x,output:Ae});continue}se({type:"qmark",value:x,output:me});continue}if(x==="!"){if(e.noextglob!==!0&&le()==="("&&(le(2)!=="?"||!/[!=<:]/.test(le(3)))){at("negate",x);continue}if(e.nonegate!==!0&&F.index===0){It();continue}}if(x==="+"){if(e.noextglob!==!0&&le()==="("&&le(2)!=="?"){at("plus",x);continue}if(D&&D.value==="("||e.regex===!1){se({type:"plus",value:x,output:P});continue}if(D&&(D.type==="bracket"||D.type==="paren"||D.type==="brace")||F.parens>0){se({type:"plus",value:x});continue}se({type:"plus",value:P});continue}if(x==="@"){if(e.noextglob!==!0&&le()==="("&&le(2)!=="?"){se({type:"at",extglob:!0,value:x,output:""});continue}se({type:"text",value:x});continue}if(x!=="*"){(x==="$"||x==="^")&&(x=`\\${x}`);let W=nj.exec(We());W&&(x+=W[0],F.index+=W[0].length),se({type:"text",value:x});continue}if(D&&(D.type==="globstar"||D.star===!0)){D.type="star",D.star=!0,D.value+=x,D.output=pe,F.backtrack=!0,F.globstar=!0,xe(x);continue}let O=We();if(e.noextglob!==!0&&/^\([^?]/.test(O)){at("star",x);continue}if(D.type==="star"){if(e.noglobstar===!0){xe(x);continue}let W=D.prev,N=W.prev,Re=W.type==="slash"||W.type==="bos",He=N&&(N.type==="star"||N.type==="globstar");if(e.bash===!0&&(!Re||O[0]&&O[0]!=="/")){se({type:"star",value:x,output:""});continue}let Fe=F.braces>0&&(W.type==="comma"||W.type==="brace"),jt=ue.length&&(W.type==="pipe"||W.type==="paren");if(!Re&&W.type!=="paren"&&!Fe&&!jt){se({type:"star",value:x,output:""});continue}for(;O.slice(0,3)==="/**";){let At=r[F.index+4];if(At&&At!=="/")break;O=O.slice(3),xe("/**",3)}if(W.type==="bos"&&Pe()){D.type="globstar",D.value+=x,D.output=J(e),F.output=D.output,F.globstar=!0,xe(x);continue}if(W.type==="slash"&&W.prev.type!=="bos"&&!He&&Pe()){F.output=F.output.slice(0,-(W.output+D.output).length),W.output=`(?:${W.output}`,D.type="globstar",D.output=J(e)+(e.strictSlashes?")":"|$)"),D.value+=x,F.globstar=!0,F.output+=W.output+D.output,xe(x);continue}if(W.type==="slash"&&W.prev.type!=="bos"&&O[0]==="/"){let At=O[1]!==void 0?"|$":"";F.output=F.output.slice(0,-(W.output+D.output).length),W.output=`(?:${W.output}`,D.type="globstar",D.output=`${J(e)}${fe}|${fe}${At})`,D.value+=x,F.output+=W.output+D.output,F.globstar=!0,xe(x+Ye()),se({type:"slash",value:"/",output:""});continue}if(W.type==="bos"&&O[0]==="/"){D.type="globstar",D.value+=x,D.output=`(?:^|${fe}|${J(e)}${fe})`,F.output=D.output,F.globstar=!0,xe(x+Ye()),se({type:"slash",value:"/",output:""});continue}F.output=F.output.slice(0,-D.output.length),D.type="globstar",D.output=J(e),D.value+=x,F.output+=D.output,F.globstar=!0,xe(x);continue}let ve={type:"star",value:x,output:pe};if(e.bash===!0){ve.output=".*?",(D.type==="bos"||D.type==="slash")&&(ve.output=te+ve.output),se(ve);continue}if(D&&(D.type==="bracket"||D.type==="paren")&&e.regex===!0){ve.output=x,se(ve);continue}(F.index===F.start||D.type==="slash"||D.type==="dot")&&(D.type==="dot"?(F.output+=oe,D.output+=oe):e.dot===!0?(F.output+=be,D.output+=be):(F.output+=te,D.output+=te),le()!=="*"&&(F.output+=K,D.output+=K)),se(ve)}for(;F.brackets>0;){if(e.strictBrackets===!0)throw new SyntaxError(pr("closing","]"));F.output=ot.escapeLast(F.output,"["),Qe("brackets")}for(;F.parens>0;){if(e.strictBrackets===!0)throw new SyntaxError(pr("closing",")"));F.output=ot.escapeLast(F.output,"("),Qe("parens")}for(;F.braces>0;){if(e.strictBrackets===!0)throw new SyntaxError(pr("closing","}"));F.output=ot.escapeLast(F.output,"{"),Qe("braces")}if(e.strictSlashes!==!0&&(D.type==="star"||D.type==="bracket")&&se({type:"maybe_slash",value:"",output:`${fe}?`}),F.backtrack===!0){F.output="";for(let O of F.tokens)F.output+=O.output!=null?O.output:O.value,O.suffix&&(F.output+=O.suffix)}return F};K_.fastpaths=(r,t)=>{let e={...t},u=typeof e.maxLength=="number"?Math.min(Bi,e.maxLength):Bi,d=r.length;if(d>u)throw new SyntaxError(`Input length: ${d}, exceeds maximum allowed length: ${u}`);r=G_[r]||r;let y=ot.isWindows(t),{DOT_LITERAL:v,SLASH_LITERAL:S,ONE_CHAR:A,DOTS_SLASH:I,NO_DOT:R,NO_DOTS:L,NO_DOTS_SLASH:P,STAR:fe,START_ANCHOR:K}=Ii.globChars(y),z=e.dot?L:R,ee=e.dot?P:R,oe=e.capture?"":"?:",be={negated:!1,prefix:""},me=e.bash===!0?".*?":fe;e.capture&&(me=`(${me})`);let Ae=te=>te.noglobstar===!0?me:`(${oe}(?:(?!${K}${te.dot?I:v}).)*?)`,ie=te=>{switch(te){case"*":return`${z}${A}${me}`;case".*":return`${v}${A}${me}`;case"*.*":return`${z}${me}${v}${A}${me}`;case"*/*":return`${z}${me}${S}${A}${ee}${me}`;case"**":return z+Ae(e);case"**/*":return`(?:${z}${Ae(e)}${S})?${ee}${A}${me}`;case"**/*.*":return`(?:${z}${Ae(e)}${S})?${ee}${me}${v}${A}${me}`;case"**/.*":return`(?:${z}${Ae(e)}${S})?${v}${A}${me}`;default:{let $=/^(.*?)\.(\w+)$/.exec(te);if(!$)return;let pe=ie($[1]);return pe?pe+v+$[2]:void 0}}},ke=ot.removePrefix(r,be),J=ie(ke);return J&&e.strictSlashes!==!0&&(J+=`${S}?`),J};V_.exports=K_});var z_=V((bk,Q_)=>{"use strict";var oj=require("path"),uj=$_(),Rs=Y_(),Ts=$r(),lj=Wr(),cj=r=>r&&typeof r=="object"&&!Array.isArray(r),Le=(r,t,e=!1)=>{if(Array.isArray(r)){let R=r.map(P=>Le(P,t,e));return P=>{for(let fe of R){let K=fe(P);if(K)return K}return!1}}let u=cj(r)&&r.tokens&&r.input;if(r===""||typeof r!="string"&&!u)throw new TypeError("Expected pattern to be a non-empty string");let d=t||{},y=Ts.isWindows(t),v=u?Le.compileRe(r,t):Le.makeRe(r,t,!1,!0),S=v.state;delete v.state;let A=()=>!1;if(d.ignore){let R={...t,ignore:null,onMatch:null,onResult:null};A=Le(d.ignore,R,e)}let I=(R,L=!1)=>{let{isMatch:P,match:fe,output:K}=Le.test(R,v,t,{glob:r,posix:y}),z={glob:r,state:S,regex:v,posix:y,input:R,output:K,match:fe,isMatch:P};return typeof d.onResult=="function"&&d.onResult(z),P===!1?(z.isMatch=!1,L?z:!1):A(R)?(typeof d.onIgnore=="function"&&d.onIgnore(z),z.isMatch=!1,L?z:!1):(typeof d.onMatch=="function"&&d.onMatch(z),L?z:!0)};return e&&(I.state=S),I};Le.test=(r,t,e,{glob:u,posix:d}={})=>{if(typeof r!="string")throw new TypeError("Expected input to be a string");if(r==="")return{isMatch:!1,output:""};let y=e||{},v=y.format||(d?Ts.toPosixSlashes:null),S=r===u,A=S&&v?v(r):r;return S===!1&&(A=v?v(r):r,S=A===u),(S===!1||y.capture===!0)&&(y.matchBase===!0||y.basename===!0?S=Le.matchBase(r,t,e,d):S=t.exec(A)),{isMatch:Boolean(S),match:S,output:A}};Le.matchBase=(r,t,e,u=Ts.isWindows(e))=>(t instanceof RegExp?t:Le.makeRe(t,e)).test(oj.basename(r));Le.isMatch=(r,t,e)=>Le(t,e)(r);Le.parse=(r,t)=>Array.isArray(r)?r.map(e=>Le.parse(e,t)):Rs(r,{...t,fastpaths:!1});Le.scan=(r,t)=>uj(r,t);Le.compileRe=(r,t,e=!1,u=!1)=>{if(e===!0)return r.output;let d=t||{},y=d.contains?"":"^",v=d.contains?"":"$",S=`${y}(?:${r.output})${v}`;r&&r.negated===!0&&(S=`^(?!${S}).*$`);let A=Le.toRegex(S,t);return u===!0&&(A.state=r),A};Le.makeRe=(r,t={},e=!1,u=!1)=>{if(!r||typeof r!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(r[0]==="."||r[0]==="*")&&(d.output=Rs.fastpaths(r,t)),d.output||(d=Rs(r,t)),Le.compileRe(d,t,e,u)};Le.toRegex=(r,t)=>{try{let e=t||{};return new RegExp(r,e.flags||(e.nocase?"i":""))}catch(e){if(t&&t.debug===!0)throw e;return/$^/}};Le.constants=lj;Q_.exports=Le});var J_=V((jk,X_)=>{"use strict";X_.exports=z_()});var id=V((wk,rd)=>{"use strict";var ed=require("util"),td=P_(),mt=J_(),Ds=$r(),Z_=r=>r===""||r==="./",Ne=(r,t,e)=>{t=[].concat(t),r=[].concat(r);let u=new Set,d=new Set,y=new Set,v=0,S=R=>{y.add(R.output),e&&e.onResult&&e.onResult(R)};for(let R=0;R<t.length;R++){let L=mt(String(t[R]),{...e,onResult:S},!0),P=L.state.negated||L.state.negatedExtglob;P&&v++;for(let fe of r){let K=L(fe,!0);!(P?!K.isMatch:K.isMatch)||(P?u.add(K.output):(u.delete(K.output),d.add(K.output)))}}let I=(v===t.length?[...y]:[...d]).filter(R=>!u.has(R));if(e&&I.length===0){if(e.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(e.nonull===!0||e.nullglob===!0)return e.unescape?t.map(R=>R.replace(/\\/g,"")):t}return I};Ne.match=Ne;Ne.matcher=(r,t)=>mt(r,t);Ne.isMatch=(r,t,e)=>mt(t,e)(r);Ne.any=Ne.isMatch;Ne.not=(r,t,e={})=>{t=[].concat(t).map(String);let u=new Set,d=[],v=Ne(r,t,{...e,onResult:S=>{e.onResult&&e.onResult(S),d.push(S.output)}});for(let S of d)v.includes(S)||u.add(S);return[...u]};Ne.contains=(r,t,e)=>{if(typeof r!="string")throw new TypeError(`Expected a string: "${ed.inspect(r)}"`);if(Array.isArray(t))return t.some(u=>Ne.contains(r,u,e));if(typeof t=="string"){if(Z_(r)||Z_(t))return!1;if(r.includes(t)||r.startsWith("./")&&r.slice(2).includes(t))return!0}return Ne.isMatch(r,t,{...e,contains:!0})};Ne.matchKeys=(r,t,e)=>{if(!Ds.isObject(r))throw new TypeError("Expected the first argument to be an object");let u=Ne(Object.keys(r),t,e),d={};for(let y of u)d[y]=r[y];return d};Ne.some=(r,t,e)=>{let u=[].concat(r);for(let d of[].concat(t)){let y=mt(String(d),e);if(u.some(v=>y(v)))return!0}return!1};Ne.every=(r,t,e)=>{let u=[].concat(r);for(let d of[].concat(t)){let y=mt(String(d),e);if(!u.every(v=>y(v)))return!1}return!0};Ne.all=(r,t,e)=>{if(typeof r!="string")throw new TypeError(`Expected a string: "${ed.inspect(r)}"`);return[].concat(t).every(u=>mt(u,e)(r))};Ne.capture=(r,t,e)=>{let u=Ds.isWindows(e),y=mt.makeRe(String(r),{...e,capture:!0}).exec(u?Ds.toPosixSlashes(t):t);if(y)return y.slice(1).map(v=>v===void 0?"":v)};Ne.makeRe=(...r)=>mt.makeRe(...r);Ne.scan=(...r)=>mt.scan(...r);Ne.parse=(r,t)=>{let e=[];for(let u of[].concat(r||[]))for(let d of td(String(u),t))e.push(mt.parse(d,t));return e};Ne.braces=(r,t)=>{if(typeof r!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(r)?[r]:td(r,t)};Ne.braceExpand=(r,t)=>{if(typeof r!="string")throw new TypeError("Expected a string");return Ne.braces(r,{...t,expand:!0})};rd.exports=Ne});var fd=V(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.matchAny=ce.convertPatternsToRe=ce.makeRe=ce.getPatternParts=ce.expandBraceExpansion=ce.expandPatternsWithBraceExpansion=ce.isAffectDepthOfReadingPattern=ce.endsWithSlashGlobStar=ce.hasGlobStar=ce.getBaseDirectory=ce.isPatternRelatedToParentDirectory=ce.getPatternsOutsideCurrentDirectory=ce.getPatternsInsideCurrentDirectory=ce.getPositivePatterns=ce.getNegativePatterns=ce.isPositivePattern=ce.isNegativePattern=ce.convertToNegativePattern=ce.convertToPositivePattern=ce.isDynamicPattern=ce.isStaticPattern=void 0;var fj=require("path"),_j=Yf(),Ps=id(),nd="**",dj="\\",pj=/[*?]|^!/,yj=/\[[^[]*]/,hj=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,mj=/[!*+?@]\([^(]*\)/,vj=/,|\.\./;function ad(r,t={}){return!sd(r,t)}ce.isStaticPattern=ad;function sd(r,t={}){return r===""?!1:!!(t.caseSensitiveMatch===!1||r.includes(dj)||pj.test(r)||yj.test(r)||hj.test(r)||t.extglob!==!1&&mj.test(r)||t.braceExpansion!==!1&&gj(r))}ce.isDynamicPattern=sd;function gj(r){let t=r.indexOf("{");if(t===-1)return!1;let e=r.indexOf("}",t+1);if(e===-1)return!1;let u=r.slice(t,e);return vj.test(u)}function bj(r){return Li(r)?r.slice(1):r}ce.convertToPositivePattern=bj;function jj(r){return"!"+r}ce.convertToNegativePattern=jj;function Li(r){return r.startsWith("!")&&r[1]!=="("}ce.isNegativePattern=Li;function od(r){return!Li(r)}ce.isPositivePattern=od;function wj(r){return r.filter(Li)}ce.getNegativePatterns=wj;function kj(r){return r.filter(od)}ce.getPositivePatterns=kj;function Cj(r){return r.filter(t=>!xs(t))}ce.getPatternsInsideCurrentDirectory=Cj;function Sj(r){return r.filter(xs)}ce.getPatternsOutsideCurrentDirectory=Sj;function xs(r){return r.startsWith("..")||r.startsWith("./..")}ce.isPatternRelatedToParentDirectory=xs;function Ej(r){return _j(r,{flipBackslashes:!1})}ce.getBaseDirectory=Ej;function Aj(r){return r.includes(nd)}ce.hasGlobStar=Aj;function ud(r){return r.endsWith("/"+nd)}ce.endsWithSlashGlobStar=ud;function Rj(r){let t=fj.basename(r);return ud(r)||ad(t)}ce.isAffectDepthOfReadingPattern=Rj;function Tj(r){return r.reduce((t,e)=>t.concat(ld(e)),[])}ce.expandPatternsWithBraceExpansion=Tj;function ld(r){return Ps.braces(r,{expand:!0,nodupes:!0})}ce.expandBraceExpansion=ld;function Dj(r,t){let{parts:e}=Ps.scan(r,Object.assign(Object.assign({},t),{parts:!0}));return e.length===0&&(e=[r]),e[0].startsWith("/")&&(e[0]=e[0].slice(1),e.unshift("")),e}ce.getPatternParts=Dj;function cd(r,t){return Ps.makeRe(r,t)}ce.makeRe=cd;function Pj(r,t){return r.map(e=>cd(e,t))}ce.convertPatternsToRe=Pj;function xj(r,t){return t.some(e=>e.test(r))}ce.matchAny=xj});var yd=V((Ck,pd)=>{"use strict";var Oj=require("stream"),_d=Oj.PassThrough,Fj=Array.prototype.slice;pd.exports=Nj;function Nj(){let r=[],t=Fj.call(arguments),e=!1,u=t[t.length-1];u&&!Array.isArray(u)&&u.pipe==null?t.pop():u={};let d=u.end!==!1,y=u.pipeError===!0;u.objectMode==null&&(u.objectMode=!0),u.highWaterMark==null&&(u.highWaterMark=64*1024);let v=_d(u);function S(){for(let R=0,L=arguments.length;R<L;R++)r.push(dd(arguments[R],u));return A(),this}function A(){if(e)return;e=!0;let R=r.shift();if(!R){process.nextTick(I);return}Array.isArray(R)||(R=[R]);let L=R.length+1;function P(){--L>0||(e=!1,A())}function fe(K){function z(){K.removeListener("merge2UnpipeEnd",z),K.removeListener("end",z),y&&K.removeListener("error",ee),P()}function ee(oe){v.emit("error",oe)}if(K._readableState.endEmitted)return P();K.on("merge2UnpipeEnd",z),K.on("end",z),y&&K.on("error",ee),K.pipe(v,{end:!1}),K.resume()}for(let K=0;K<R.length;K++)fe(R[K]);P()}function I(){e=!1,v.emit("queueDrain"),d&&v.end()}return v.setMaxListeners(0),v.add=S,v.on("unpipe",function(R){R.emit("merge2UnpipeEnd")}),t.length&&S.apply(null,t),v}function dd(r,t){if(Array.isArray(r))for(let e=0,u=r.length;e<u;e++)r[e]=dd(r[e],t);else{if(!r._readableState&&r.pipe&&(r=r.pipe(_d(t))),!r._readableState||!r.pause||!r.pipe)throw new Error("Only readable stream can be merged.");r.pause()}return r}});var md=V(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.merge=void 0;var Mj=yd();function Ij(r){let t=Mj(r);return r.forEach(e=>{e.once("error",u=>t.emit("error",u))}),t.once("close",()=>hd(r)),t.once("end",()=>hd(r)),t}Ui.merge=Ij;function hd(r){r.forEach(t=>t.emit("close"))}});var vd=V(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.isEmpty=yr.isString=void 0;function Bj(r){return typeof r=="string"}yr.isString=Bj;function Lj(r){return r===""}yr.isEmpty=Lj});var St=V(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.string=ze.stream=ze.pattern=ze.path=ze.fs=ze.errno=ze.array=void 0;var Uj=Bf();ze.array=Uj;var Hj=Lf();ze.errno=Hj;var qj=Uf();ze.fs=qj;var Wj=Hf();ze.path=Wj;var $j=fd();ze.pattern=$j;var Gj=md();ze.stream=Gj;var Kj=vd();ze.string=Kj});var jd=V(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.convertPatternGroupToTask=Xe.convertPatternGroupsToTasks=Xe.groupPatternsByBaseDirectory=Xe.getNegativePatternsAsPositive=Xe.getPositivePatterns=Xe.convertPatternsToTasks=Xe.generate=void 0;var Et=St();function Vj(r,t){let e=gd(r),u=bd(r,t.ignore),d=e.filter(A=>Et.pattern.isStaticPattern(A,t)),y=e.filter(A=>Et.pattern.isDynamicPattern(A,t)),v=Os(d,u,!1),S=Os(y,u,!0);return v.concat(S)}Xe.generate=Vj;function Os(r,t,e){let u=[],d=Et.pattern.getPatternsOutsideCurrentDirectory(r),y=Et.pattern.getPatternsInsideCurrentDirectory(r),v=Fs(d),S=Fs(y);return u.push(...Ns(v,t,e)),"."in S?u.push(Ms(".",y,t,e)):u.push(...Ns(S,t,e)),u}Xe.convertPatternsToTasks=Os;function gd(r){return Et.pattern.getPositivePatterns(r)}Xe.getPositivePatterns=gd;function bd(r,t){return Et.pattern.getNegativePatterns(r).concat(t).map(Et.pattern.convertToPositivePattern)}Xe.getNegativePatternsAsPositive=bd;function Fs(r){let t={};return r.reduce((e,u)=>{let d=Et.pattern.getBaseDirectory(u);return d in e?e[d].push(u):e[d]=[u],e},t)}Xe.groupPatternsByBaseDirectory=Fs;function Ns(r,t,e){return Object.keys(r).map(u=>Ms(u,r[u],t,e))}Xe.convertPatternGroupsToTasks=Ns;function Ms(r,t,e,u){return{dynamic:u,positive:t,negative:e,base:r,patterns:[].concat(t,e.map(Et.pattern.convertToNegativePattern))}}Xe.convertPatternGroupToTask=Ms});var kd=V(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.removeDuplicateSlashes=hr.transform=void 0;var Yj=/(?!^)\/{2,}/g;function Qj(r){return r.map(t=>wd(t))}hr.transform=Qj;function wd(r){return r.replace(Yj,"/")}hr.removeDuplicateSlashes=wd});var Sd=V(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.read=void 0;function zj(r,t,e){t.fs.lstat(r,(u,d)=>{if(u!==null){Cd(e,u);return}if(!d.isSymbolicLink()||!t.followSymbolicLink){Is(e,d);return}t.fs.stat(r,(y,v)=>{if(y!==null){if(t.throwErrorOnBrokenSymbolicLink){Cd(e,y);return}Is(e,d);return}t.markSymbolicLink&&(v.isSymbolicLink=()=>!0),Is(e,v)})})}Hi.read=zj;function Cd(r,t){r(t)}function Is(r,t){r(null,t)}});var Ed=V(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.read=void 0;function Xj(r,t){let e=t.fs.lstatSync(r);if(!e.isSymbolicLink()||!t.followSymbolicLink)return e;try{let u=t.fs.statSync(r);return t.markSymbolicLink&&(u.isSymbolicLink=()=>!0),u}catch(u){if(!t.throwErrorOnBrokenSymbolicLink)return e;throw u}}qi.read=Xj});var Ad=V(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.createFileSystemAdapter=Pt.FILE_SYSTEM_ADAPTER=void 0;var Wi=require("fs");Pt.FILE_SYSTEM_ADAPTER={lstat:Wi.lstat,stat:Wi.stat,lstatSync:Wi.lstatSync,statSync:Wi.statSync};function Jj(r){return r===void 0?Pt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Pt.FILE_SYSTEM_ADAPTER),r)}Pt.createFileSystemAdapter=Jj});var Rd=V(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});var Zj=Ad(),Bs=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Zj.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,e){return t??e}};Ls.default=Bs});var Yt=V(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.statSync=xt.stat=xt.Settings=void 0;var Td=Sd(),e0=Ed(),Us=Rd();xt.Settings=Us.default;function t0(r,t,e){if(typeof t=="function"){Td.read(r,Hs(),t);return}Td.read(r,Hs(t),e)}xt.stat=t0;function r0(r,t){let e=Hs(t);return e0.read(r,e)}xt.statSync=r0;function Hs(r={}){return r instanceof Us.default?r:new Us.default(r)}});var xd=V((Nk,Pd)=>{var Dd;Pd.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):r=>(Dd||(Dd=Promise.resolve())).then(r).catch(t=>setTimeout(()=>{throw t},0))});var Fd=V((Mk,Od)=>{Od.exports=n0;var i0=xd();function n0(r,t){let e,u,d,y=!0;Array.isArray(r)?(e=[],u=r.length):(d=Object.keys(r),e={},u=d.length);function v(A){function I(){t&&t(A,e),t=null}y?i0(I):I()}function S(A,I,R){e[A]=R,(--u===0||I)&&v(I)}u?d?d.forEach(function(A){r[A](function(I,R){S(A,I,R)})}):r.forEach(function(A,I){A(function(R,L){S(I,R,L)})}):v(null),y=!1}});var qs=V(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var $i=process.versions.node.split(".");if($i[0]===void 0||$i[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Nd=Number.parseInt($i[0],10),a0=Number.parseInt($i[1],10),Md=10,s0=10,o0=Nd>Md,u0=Nd===Md&&a0>=s0;Gi.IS_SUPPORT_READDIR_WITH_FILE_TYPES=o0||u0});var Id=V(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.createDirentFromStats=void 0;var Ws=class{constructor(t,e){this.name=t,this.isBlockDevice=e.isBlockDevice.bind(e),this.isCharacterDevice=e.isCharacterDevice.bind(e),this.isDirectory=e.isDirectory.bind(e),this.isFIFO=e.isFIFO.bind(e),this.isFile=e.isFile.bind(e),this.isSocket=e.isSocket.bind(e),this.isSymbolicLink=e.isSymbolicLink.bind(e)}};function l0(r,t){return new Ws(r,t)}Ki.createDirentFromStats=l0});var $s=V(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.fs=void 0;var c0=Id();Vi.fs=c0});var Gs=V(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.joinPathSegments=void 0;function f0(r,t,e){return r.endsWith(e)?r+t:r+e+t}Yi.joinPathSegments=f0});var Wd=V(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.readdir=Ot.readdirWithFileTypes=Ot.read=void 0;var _0=Yt(),Bd=Fd(),d0=qs(),Ld=$s(),Ud=Gs();function p0(r,t,e){if(!t.stats&&d0.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Hd(r,t,e);return}qd(r,t,e)}Ot.read=p0;function Hd(r,t,e){t.fs.readdir(r,{withFileTypes:!0},(u,d)=>{if(u!==null){Qi(e,u);return}let y=d.map(S=>({dirent:S,name:S.name,path:Ud.joinPathSegments(r,S.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Ks(e,y);return}let v=y.map(S=>y0(S,t));Bd(v,(S,A)=>{if(S!==null){Qi(e,S);return}Ks(e,A)})})}Ot.readdirWithFileTypes=Hd;function y0(r,t){return e=>{if(!r.dirent.isSymbolicLink()){e(null,r);return}t.fs.stat(r.path,(u,d)=>{if(u!==null){if(t.throwErrorOnBrokenSymbolicLink){e(u);return}e(null,r);return}r.dirent=Ld.fs.createDirentFromStats(r.name,d),e(null,r)})}}function qd(r,t,e){t.fs.readdir(r,(u,d)=>{if(u!==null){Qi(e,u);return}let y=d.map(v=>{let S=Ud.joinPathSegments(r,v,t.pathSegmentSeparator);return A=>{_0.stat(S,t.fsStatSettings,(I,R)=>{if(I!==null){A(I);return}let L={name:v,path:S,dirent:Ld.fs.createDirentFromStats(v,R)};t.stats&&(L.stats=R),A(null,L)})}});Bd(y,(v,S)=>{if(v!==null){Qi(e,v);return}Ks(e,S)})})}Ot.readdir=qd;function Qi(r,t){r(t)}function Ks(r,t){r(null,t)}});var Yd=V(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.readdir=Ft.readdirWithFileTypes=Ft.read=void 0;var h0=Yt(),m0=qs(),$d=$s(),Gd=Gs();function v0(r,t){return!t.stats&&m0.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Kd(r,t):Vd(r,t)}Ft.read=v0;function Kd(r,t){return t.fs.readdirSync(r,{withFileTypes:!0}).map(u=>{let d={dirent:u,name:u.name,path:Gd.joinPathSegments(r,u.name,t.pathSegmentSeparator)};if(d.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let y=t.fs.statSync(d.path);d.dirent=$d.fs.createDirentFromStats(d.name,y)}catch(y){if(t.throwErrorOnBrokenSymbolicLink)throw y}return d})}Ft.readdirWithFileTypes=Kd;function Vd(r,t){return t.fs.readdirSync(r).map(u=>{let d=Gd.joinPathSegments(r,u,t.pathSegmentSeparator),y=h0.statSync(d,t.fsStatSettings),v={name:u,path:d,dirent:$d.fs.createDirentFromStats(u,y)};return t.stats&&(v.stats=y),v})}Ft.readdir=Vd});var Qd=V(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.createFileSystemAdapter=Nt.FILE_SYSTEM_ADAPTER=void 0;var mr=require("fs");Nt.FILE_SYSTEM_ADAPTER={lstat:mr.lstat,stat:mr.stat,lstatSync:mr.lstatSync,statSync:mr.statSync,readdir:mr.readdir,readdirSync:mr.readdirSync};function g0(r){return r===void 0?Nt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Nt.FILE_SYSTEM_ADAPTER),r)}Nt.createFileSystemAdapter=g0});var zd=V(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});var b0=require("path"),j0=Yt(),w0=Qd(),Vs=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=w0.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,b0.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new j0.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,e){return t??e}};Ys.default=Vs});var zi=V(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.Settings=Mt.scandirSync=Mt.scandir=void 0;var Xd=Wd(),k0=Yd(),Qs=zd();Mt.Settings=Qs.default;function C0(r,t,e){if(typeof t=="function"){Xd.read(r,zs(),t);return}Xd.read(r,zs(t),e)}Mt.scandir=C0;function S0(r,t){let e=zs(t);return k0.read(r,e)}Mt.scandirSync=S0;function zs(r={}){return r instanceof Qs.default?r:new Qs.default(r)}});var Zd=V((Kk,Jd)=>{"use strict";function E0(r){var t=new r,e=t;function u(){var y=t;return y.next?t=y.next:(t=new r,e=t),y.next=null,y}function d(y){e.next=y,e=y}return{get:u,release:d}}Jd.exports=E0});var tp=V((Vk,Xs)=>{"use strict";var A0=Zd();function ep(r,t,e){if(typeof r=="function"&&(e=t,t=r,r=null),e<1)throw new Error("fastqueue concurrency must be greater than 1");var u=A0(R0),d=null,y=null,v=0,S=null,A={push:z,drain:ct,saturated:ct,pause:R,paused:!1,concurrency:e,running:I,resume:fe,idle:K,length:L,getQueue:P,unshift:ee,empty:ct,kill:be,killAndDrain:me,error:Ae};return A;function I(){return v}function R(){A.paused=!0}function L(){for(var ie=d,ke=0;ie;)ie=ie.next,ke++;return ke}function P(){for(var ie=d,ke=[];ie;)ke.push(ie.value),ie=ie.next;return ke}function fe(){if(!!A.paused){A.paused=!1;for(var ie=0;ie<A.concurrency;ie++)v++,oe()}}function K(){return v===0&&A.length()===0}function z(ie,ke){var J=u.get();J.context=r,J.release=oe,J.value=ie,J.callback=ke||ct,J.errorHandler=S,v===A.concurrency||A.paused?y?(y.next=J,y=J):(d=J,y=J,A.saturated()):(v++,t.call(r,J.value,J.worked))}function ee(ie,ke){var J=u.get();J.context=r,J.release=oe,J.value=ie,J.callback=ke||ct,v===A.concurrency||A.paused?d?(J.next=d,d=J):(d=J,y=J,A.saturated()):(v++,t.call(r,J.value,J.worked))}function oe(ie){ie&&u.release(ie);var ke=d;ke?A.paused?v--:(y===d&&(y=null),d=ke.next,ke.next=null,t.call(r,ke.value,ke.worked),y===null&&A.empty()):--v===0&&A.drain()}function be(){d=null,y=null,A.drain=ct}function me(){d=null,y=null,A.drain(),A.drain=ct}function Ae(ie){S=ie}}function ct(){}function R0(){this.value=null,this.callback=ct,this.next=null,this.release=ct,this.context=null,this.errorHandler=null;var r=this;this.worked=function(e,u){var d=r.callback,y=r.errorHandler,v=r.value;r.value=null,r.callback=ct,r.errorHandler&&y(e,v),d.call(r.context,e,u),r.release(r)}}function T0(r,t,e){typeof r=="function"&&(e=t,t=r,r=null);function u(R,L){t.call(this,R).then(function(P){L(null,P)},L)}var d=ep(r,u,e),y=d.push,v=d.unshift;return d.push=S,d.unshift=A,d.drained=I,d;function S(R){var L=new Promise(function(P,fe){y(R,function(K,z){if(K){fe(K);return}P(z)})});return L.catch(ct),L}function A(R){var L=new Promise(function(P,fe){v(R,function(K,z){if(K){fe(K);return}P(z)})});return L.catch(ct),L}function I(){var R=d.drain,L=new Promise(function(P){d.drain=function(){R(),P()}});return L}}Xs.exports=ep;Xs.exports.promise=T0});var Xi=V(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.joinPathSegments=vt.replacePathSegmentSeparator=vt.isAppliedFilter=vt.isFatalError=void 0;function D0(r,t){return r.errorFilter===null?!0:!r.errorFilter(t)}vt.isFatalError=D0;function P0(r,t){return r===null||r(t)}vt.isAppliedFilter=P0;function x0(r,t){return r.split(/[/\\]/).join(t)}vt.replacePathSegmentSeparator=x0;function O0(r,t,e){return r===""?t:r.endsWith(e)?r+t:r+e+t}vt.joinPathSegments=O0});var eo=V(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});var F0=Xi(),Js=class{constructor(t,e){this._root=t,this._settings=e,this._root=F0.replacePathSegmentSeparator(t,e.pathSegmentSeparator)}};Zs.default=Js});var io=V(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});var N0=require("events"),M0=zi(),I0=tp(),Ji=Xi(),B0=eo(),to=class extends B0.default{constructor(t,e){super(t,e),this._settings=e,this._scandir=M0.scandir,this._emitter=new N0.EventEmitter,this._queue=I0(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,e){let u={directory:t,base:e};this._queue.push(u,d=>{d!==null&&this._handleError(d)})}_worker(t,e){this._scandir(t.directory,this._settings.fsScandirSettings,(u,d)=>{if(u!==null){e(u,void 0);return}for(let y of d)this._handleEntry(y,t.base);e(null,void 0)})}_handleError(t){this._isDestroyed||!Ji.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,e){if(this._isDestroyed||this._isFatalError)return;let u=t.path;e!==void 0&&(t.path=Ji.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)),Ji.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Ji.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(u,e===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};ro.default=to});var rp=V(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});var L0=io(),no=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new L0.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(e=>{U0(t,e)}),this._reader.onEntry(e=>{this._storage.push(e)}),this._reader.onEnd(()=>{H0(t,this._storage)}),this._reader.read()}};ao.default=no;function U0(r,t){r(t)}function H0(r,t){r(null,t)}});var ip=V(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});var q0=require("stream"),W0=io(),so=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new W0.default(this._root,this._settings),this._stream=new q0.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};oo.default=so});var np=V(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});var $0=zi(),Zi=Xi(),G0=eo(),uo=class extends G0.default{constructor(){super(...arguments),this._scandir=$0.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,e){this._queue.add({directory:t,base:e})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,e){try{let u=this._scandir(t,this._settings.fsScandirSettings);for(let d of u)this._handleEntry(d,e)}catch(u){this._handleError(u)}}_handleError(t){if(!!Zi.isFatalError(this._settings,t))throw t}_handleEntry(t,e){let u=t.path;e!==void 0&&(t.path=Zi.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)),Zi.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Zi.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(u,e===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};lo.default=uo});var ap=V(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});var K0=np(),co=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new K0.default(this._root,this._settings)}read(){return this._reader.read()}};fo.default=co});var sp=V(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});var V0=require("path"),Y0=zi(),_o=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,V0.sep),this.fsScandirSettings=new Y0.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,e){return t??e}};po.default=_o});var ho=V(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.Settings=gt.walkStream=gt.walkSync=gt.walk=void 0;var op=rp(),Q0=ip(),z0=ap(),yo=sp();gt.Settings=yo.default;function X0(r,t,e){if(typeof t=="function"){new op.default(r,en()).read(t);return}new op.default(r,en(t)).read(e)}gt.walk=X0;function J0(r,t){let e=en(t);return new z0.default(r,e).read()}gt.walkSync=J0;function Z0(r,t){let e=en(t);return new Q0.default(r,e).read()}gt.walkStream=Z0;function en(r={}){return r instanceof yo.default?r:new yo.default(r)}});var go=V(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});var ew=require("path"),tw=Yt(),up=St(),mo=class{constructor(t){this._settings=t,this._fsStatSettings=new tw.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return ew.resolve(this._settings.cwd,t)}_makeEntry(t,e){let u={name:e,path:e,dirent:up.fs.createDirentFromStats(e,t)};return this._settings.stats&&(u.stats=t),u}_isFatalError(t){return!up.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};vo.default=mo});var wo=V(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});var rw=require("stream"),iw=Yt(),nw=ho(),aw=go(),bo=class extends aw.default{constructor(){super(...arguments),this._walkStream=nw.walkStream,this._stat=iw.stat}dynamic(t,e){return this._walkStream(t,e)}static(t,e){let u=t.map(this._getFullEntryPath,this),d=new rw.PassThrough({objectMode:!0});d._write=(y,v,S)=>this._getEntry(u[y],t[y],e).then(A=>{A!==null&&e.entryFilter(A)&&d.push(A),y===u.length-1&&d.end(),S()}).catch(S);for(let y=0;y<u.length;y++)d.write(y);return d}_getEntry(t,e,u){return this._getStat(t).then(d=>this._makeEntry(d,e)).catch(d=>{if(u.errorFilter(d))return null;throw d})}_getStat(t){return new Promise((e,u)=>{this._stat(t,this._fsStatSettings,(d,y)=>d===null?e(y):u(d))})}};jo.default=bo});var lp=V(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});var vr=St(),ko=class{constructor(t,e,u){this._patterns=t,this._settings=e,this._micromatchOptions=u,this._storage=[],this._fillStorage()}_fillStorage(){let t=vr.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let e of t){let u=this._getPatternSegments(e),d=this._splitSegmentsIntoSections(u);this._storage.push({complete:d.length<=1,pattern:e,segments:u,sections:d})}}_getPatternSegments(t){return vr.pattern.getPatternParts(t,this._micromatchOptions).map(u=>vr.pattern.isDynamicPattern(u,this._settings)?{dynamic:!0,pattern:u,patternRe:vr.pattern.makeRe(u,this._micromatchOptions)}:{dynamic:!1,pattern:u})}_splitSegmentsIntoSections(t){return vr.array.splitWhen(t,e=>e.dynamic&&vr.pattern.hasGlobStar(e.pattern))}};Co.default=ko});var cp=V(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});var sw=lp(),So=class extends sw.default{match(t){let e=t.split("/"),u=e.length,d=this._storage.filter(y=>!y.complete||y.segments.length>u);for(let y of d){let v=y.sections[0];if(!y.complete&&u>v.length||e.every((A,I)=>{let R=y.segments[I];return!!(R.dynamic&&R.patternRe.test(A)||!R.dynamic&&R.pattern===A)}))return!0}return!1}};Eo.default=So});var fp=V(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});var tn=St(),ow=cp(),Ao=class{constructor(t,e){this._settings=t,this._micromatchOptions=e}getFilter(t,e,u){let d=this._getMatcher(e),y=this._getNegativePatternsRe(u);return v=>this._filter(t,v,d,y)}_getMatcher(t){return new ow.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let e=t.filter(tn.pattern.isAffectDepthOfReadingPattern);return tn.pattern.convertPatternsToRe(e,this._micromatchOptions)}_filter(t,e,u,d){if(this._isSkippedByDeep(t,e.path)||this._isSkippedSymbolicLink(e))return!1;let y=tn.path.removeLeadingDotSegment(e.path);return this._isSkippedByPositivePatterns(y,u)?!1:this._isSkippedByNegativePatterns(y,d)}_isSkippedByDeep(t,e){return this._settings.deep===1/0?!1:this._getEntryLevel(t,e)>=this._settings.deep}_getEntryLevel(t,e){let u=e.split("/").length;if(t==="")return u;let d=t.split("/").length;return u-d}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,e){return!this._settings.baseNameMatch&&!e.match(t)}_isSkippedByNegativePatterns(t,e){return!tn.pattern.matchAny(t,e)}};Ro.default=Ao});var _p=V(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});var Qt=St(),To=class{constructor(t,e){this._settings=t,this._micromatchOptions=e,this.index=new Map}getFilter(t,e){let u=Qt.pattern.convertPatternsToRe(t,this._micromatchOptions),d=Qt.pattern.convertPatternsToRe(e,this._micromatchOptions);return y=>this._filter(y,u,d)}_filter(t,e,u){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,u))return!1;let d=this._settings.baseNameMatch?t.name:t.path,y=this._isMatchToPatterns(d,e)&&!this._isMatchToPatterns(t.path,u);return this._settings.unique&&y&&this._createIndexRecord(t),y}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,e){if(!this._settings.absolute)return!1;let u=Qt.path.makeAbsolute(this._settings.cwd,t);return Qt.pattern.matchAny(u,e)}_isMatchToPatterns(t,e){let u=Qt.path.removeLeadingDotSegment(t);return Qt.pattern.matchAny(u,e)||Qt.pattern.matchAny(u+"/",e)}};Do.default=To});var dp=V(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});var uw=St(),Po=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return uw.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};xo.default=Po});var yp=V(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});var pp=St(),Oo=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let e=t.path;return this._settings.absolute&&(e=pp.path.makeAbsolute(this._settings.cwd,e),e=pp.path.unixify(e)),this._settings.markDirectories&&t.dirent.isDirectory()&&(e+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:e}):e}};Fo.default=Oo});var rn=V(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});var lw=require("path"),cw=fp(),fw=_p(),_w=dp(),dw=yp(),No=class{constructor(t){this._settings=t,this.errorFilter=new _w.default(this._settings),this.entryFilter=new fw.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new cw.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new dw.default(this._settings)}_getRootDirectory(t){return lw.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let e=t.base==="."?"":t.base;return{basePath:e,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(e,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Mo.default=No});var hp=V(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});var pw=wo(),yw=rn(),Io=class extends yw.default{constructor(){super(...arguments),this._reader=new pw.default(this._settings)}read(t){let e=this._getRootDirectory(t),u=this._getReaderOptions(t),d=[];return new Promise((y,v)=>{let S=this.api(e,t,u);S.once("error",v),S.on("data",A=>d.push(u.transform(A))),S.once("end",()=>y(d))})}api(t,e,u){return e.dynamic?this._reader.dynamic(t,u):this._reader.static(e.patterns,u)}};Bo.default=Io});var mp=V(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});var hw=require("stream"),mw=wo(),vw=rn(),Lo=class extends vw.default{constructor(){super(...arguments),this._reader=new mw.default(this._settings)}read(t){let e=this._getRootDirectory(t),u=this._getReaderOptions(t),d=this.api(e,t,u),y=new hw.Readable({objectMode:!0,read:()=>{}});return d.once("error",v=>y.emit("error",v)).on("data",v=>y.emit("data",u.transform(v))).once("end",()=>y.emit("end")),y.once("close",()=>d.destroy()),y}api(t,e,u){return e.dynamic?this._reader.dynamic(t,u):this._reader.static(e.patterns,u)}};Uo.default=Lo});var vp=V(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});var gw=Yt(),bw=ho(),jw=go(),Ho=class extends jw.default{constructor(){super(...arguments),this._walkSync=bw.walkSync,this._statSync=gw.statSync}dynamic(t,e){return this._walkSync(t,e)}static(t,e){let u=[];for(let d of t){let y=this._getFullEntryPath(d),v=this._getEntry(y,d,e);v===null||!e.entryFilter(v)||u.push(v)}return u}_getEntry(t,e,u){try{let d=this._getStat(t);return this._makeEntry(d,e)}catch(d){if(u.errorFilter(d))return null;throw d}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};qo.default=Ho});var gp=V($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});var ww=vp(),kw=rn(),Wo=class extends kw.default{constructor(){super(...arguments),this._reader=new ww.default(this._settings)}read(t){let e=this._getRootDirectory(t),u=this._getReaderOptions(t);return this.api(e,t,u).map(u.transform)}api(t,e,u){return e.dynamic?this._reader.dynamic(t,u):this._reader.static(e.patterns,u)}};$o.default=Wo});var bp=V(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var gr=require("fs"),Cw=require("os"),Sw=Math.max(Cw.cpus().length,1);br.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:gr.lstat,lstatSync:gr.lstatSync,stat:gr.stat,statSync:gr.statSync,readdir:gr.readdir,readdirSync:gr.readdirSync};var Go=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,Sw),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(t,e){return t===void 0?e:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},br.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};br.default=Go});var Cp=V((mC,kp)=>{"use strict";var jp=jd(),wp=kd(),Ew=hp(),Aw=mp(),Rw=gp(),Ko=bp(),zt=St();async function Vo(r,t){jr(r);let e=Yo(r,Ew.default,t),u=await Promise.all(e);return zt.array.flatten(u)}(function(r){function t(v,S){jr(v);let A=Yo(v,Rw.default,S);return zt.array.flatten(A)}r.sync=t;function e(v,S){jr(v);let A=Yo(v,Aw.default,S);return zt.stream.merge(A)}r.stream=e;function u(v,S){jr(v);let A=wp.transform([].concat(v)),I=new Ko.default(S);return jp.generate(A,I)}r.generateTasks=u;function d(v,S){jr(v);let A=new Ko.default(S);return zt.pattern.isDynamicPattern(v,A)}r.isDynamicPattern=d;function y(v){return jr(v),zt.path.escape(v)}r.escapePath=y})(Vo||(Vo={}));function Yo(r,t,e){let u=wp.transform([].concat(r)),d=new Ko.default(e),y=jp.generate(u,d),v=new t(d);return y.map(v.read,v)}function jr(r){if(![].concat(r).every(u=>zt.string.isString(u)&&!zt.string.isEmpty(u)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}kp.exports=Vo});var xw={};fg(xw,{ConsoleLogger:()=>ns,DEFAULT_RUNTIME:()=>rs,DuckDBBindingsBase:()=>Hr,DuckDBConnection:()=>Br,DuckDBDataProtocol:()=>ts,DuckDBFeature:()=>Tf,FileFlags:()=>Rf,FileStatistics:()=>Ur,JSONTableShape:()=>Df,LogEvent:()=>Of,LogLevel:()=>Pf,LogOrigin:()=>Ff,LogTopic:()=>xf,NODE_RUNTIME:()=>qe,PACKAGE_NAME:()=>as,PACKAGE_VERSION:()=>ss,PACKAGE_VERSION_MAJOR:()=>kg,PACKAGE_VERSION_MINOR:()=>Cg,PACKAGE_VERSION_PATCH:()=>Sg,PreparedStatement:()=>Si,ResultStreamIterator:()=>Lr,StatusCode:()=>kf,VoidLogger:()=>is,callSRet:()=>we,copyBuffer:()=>Tt,createDuckDB:()=>Pw,decodeText:()=>Rt,dropResponseBuffers:()=>De,failWith:()=>Ee,getJsDelivrBundles:()=>Rg,getLogEventLabel:()=>hg,getLogLevelLabel:()=>yg,getLogOriginLabel:()=>vg,getLogTopicLabel:()=>mg,getPlatformFeatures:()=>Di,isFirefox:()=>Eg,isNode:()=>ds,isSafari:()=>Ag,readString:()=>_e,selectBundle:()=>Tg});module.exports=_g(xw);var pt=cr(require("apache-arrow")),Br=class{constructor(t,e){this._bindings=t,this._conn=e}close(){this._bindings.disconnect(this._conn)}useUnsafe(t){return t(this._bindings,this._conn)}query(t){let e=this._bindings.runQuery(this._conn,t),u=pt.RecordBatchReader.from(e);return console.assert(u.isSync()),console.assert(u.isFile()),new pt.Table(u)}async send(t){let e=this._bindings.startPendingQuery(this._conn,t);for(;e==null;)e=await new Promise((y,v)=>{try{y(this._bindings.pollPendingQuery(this._conn))}catch(S){v(S)}});let u=new Lr(this._bindings,this._conn,e),d=pt.RecordBatchReader.from(u);return console.assert(d.isSync()),console.assert(d.isStream()),d}cancelSent(){return this._bindings.cancelPendingQuery(this._conn)}getTableNames(t){return this._bindings.getTableNames(this._conn,t)}prepare(t){let e=this._bindings.createPrepared(this._conn,t);return new Si(this._bindings,this._conn,e)}createScalarFunction(t,e,u){this._bindings.createScalarFunction(this._conn,t,e,u)}insertArrowTable(t,e){let u=pt.tableToIPC(t,"stream");this.insertArrowFromIPCStream(u,e)}insertArrowFromIPCStream(t,e){this._bindings.insertArrowFromIPCStream(this._conn,t,e)}insertCSVFromPath(t,e){this._bindings.insertCSVFromPath(this._conn,t,e)}insertJSONFromPath(t,e){this._bindings.insertJSONFromPath(this._conn,t,e)}},Lr=class{constructor(t,e,u){this.bindings=t;this.conn=e;this.header=u;this._first=!0,this._depleted=!1}next(){if(this._first)return this._first=!1,{done:!1,value:this.header};if(this._depleted)return{done:!0,value:null};let t=this.bindings.fetchQueryResults(this.conn);return this._depleted=t.length==0,{done:this._depleted,value:t}}[Symbol.iterator](){return this}},Si=class{constructor(t,e,u){this.bindings=t,this.connectionId=e,this.statementId=u}close(){this.bindings.closePrepared(this.connectionId,this.statementId)}query(...t){let e=this.bindings.runPrepared(this.connectionId,this.statementId,t),u=pt.RecordBatchReader.from(e);return console.assert(u.isSync()),console.assert(u.isFile()),new pt.Table(u)}send(...t){let e=this.bindings.sendPrepared(this.connectionId,this.statementId,t),u=new Lr(this.bindings,this.connectionId,e),d=pt.RecordBatchReader.from(u);return console.assert(d.isSync()),console.assert(d.isStream()),d}};var kf=(t=>(t[t.SUCCESS=0]="SUCCESS",t))(kf||{});var Ef=new TextEncoder,Cf=new TextDecoder("utf-8");function Ja(r,t,e){let u=Ef.encode(e),d=r._malloc(u.byteLength),y=r.HEAPU8.subarray(d,d+u.byteLength);y.set(u),r.HEAPF64[(t>>3)+0]=1,r.HEAPF64[(t>>3)+1]=d,r.HEAPF64[(t>>3)+2]=y.byteLength}function es(r){switch(r){case"UINT8":case"INT8":return 1;case"INT32":case"FLOAT":return 4;case"INT64":case"UINT64":case"DOUBLE":case"VARCHAR":return 8;default:return 0}}function Za(r,t,e,u){let d=r.HEAPU8.subarray(t,t+u*es(e));switch(e){case"UINT8":return new Uint8Array(d.buffer,d.byteOffset,u);case"INT8":return new Int8Array(d.buffer,d.byteOffset,u);case"INT32":return new Int32Array(d.buffer,d.byteOffset,u);case"FLOAT":return new Float32Array(d.buffer,d.byteOffset,u);case"DOUBLE":return new Float64Array(d.buffer,d.byteOffset,u);case"VARCHAR":return new Float64Array(d.buffer,d.byteOffset,u);default:return new Array(0)}}function Sf(r,t,e){let u=r.HEAPU8.subarray(t,t+e);return new Uint8Array(u.buffer,u.byteOffset,e)}function Ei(r,t,e){let u=r.HEAPU8.subarray(t,t+e*8);return new Float64Array(u.buffer,u.byteOffset,e)}function Ai(r,t,e,u,d,y,v,S){try{let A=r._udfFunctions.get(u);if(!A){Ja(t,e,"Unknown UDF with id: "+u);return}let I=Cf.decode(t.HEAPU8.subarray(d,d+y)),R=JSON.parse(I),L=Ei(t,v,S/8),P=$=>{var F;let pe=null;switch($.validityBuffer!==void 0&&(pe=Sf(t,L[$.validityBuffer],R.rows)),$.physicalType){case"VARCHAR":{if($.dataBuffer===null||$.dataBuffer===void 0)throw new Error("malformed data view, expected data buffer for VARCHAR argument");if($.lengthBuffer===null||$.lengthBuffer===void 0)throw new Error("malformed data view, expected data length buffer for VARCHAR argument");let ue=Za(t,L[$.dataBuffer],$.physicalType,R.rows),ae=[],Ce=Ei(t,L[$.lengthBuffer],R.rows);for(let D=0;D<R.rows;++D){if(pe!=null&&!pe[D]){ae.push(null);continue}let x=t.HEAPU8.subarray(ue[D],ue[D]+Ce[D]),Pe=Cf.decode(x);ae.push(Pe)}return D=>ae[D]}case"STRUCT":{let ue={},ae=[];for(let Ce=0;Ce<(((F=$.children)==null?void 0:F.length)||0);++Ce){let D=$.children[Ce],x=P(D);ae.push(Pe=>{ue[D.name]=x(Pe)})}return pe!=null?Ce=>{if(!pe[Ce])return null;for(let D of ae)D(Ce);return ue}:Ce=>{for(let D of ae)D(Ce);return ue}}default:{if($.dataBuffer===void 0)throw new Error("malformed data view, expected data buffer for argument of type: "+$.physicalType);let ue=Za(t,L[$.dataBuffer],$.physicalType,R.rows);return pe!=null?ae=>pe[ae]?ue[ae]:null:ae=>ue[ae]}}},fe=[];for(let $=0;$<R.args.length;++$)fe.push(P(R.args[$]));let K=R.rows*es(R.ret.physicalType),z=t._malloc(K),ee=Za(t,z,R.ret.physicalType,R.rows),oe=t._malloc(R.rows),be=Sf(t,oe,R.rows);if(ee.length==0||be.length==0){Ja(t,e,"Can't create physical arrays for result");return}let me=ee;R.ret.physicalType=="VARCHAR"&&(me=new Array(R.rows));let Ae=[];for(let $=0;$<R.args.length;++$)Ae.push(null);for(let $=0;$<R.rows;++$){for(let F=0;F<R.args.length;++F)Ae[F]=fe[F]($);let pe=A.func(...Ae);me[$]=pe,be[$]=pe==null?0:1}let ie=0;switch(R.ret.physicalType){case"VARCHAR":{let $=new Array(0);ie=t._malloc(R.rows*es("DOUBLE"));let pe=Ei(t,ie,R.rows),F=0;for(let D=0;D<R.rows;++D){let x=Ef.encode(me[D]||"");$.push(x),pe[D]=x.length,F+=x.length}let ue=t._malloc(F),ae=t.HEAPU8.subarray(ue,ue+F),Ce=0;for(let D=0;D<R.rows;++D){ee[D]=Ce;let x=$[D];ae.subarray(Ce,Ce+x.length).set(x),Ce+=x.length}}}let ke=3*8,J=t._malloc(ke),te=Ei(t,J,3);te[0]=z,te[1]=oe,te[2]=ie,t.HEAPF64[(e>>3)+0]=0,t.HEAPF64[(e>>3)+1]=J,t.HEAPF64[(e>>3)+2]=0}catch(A){Ja(t,e,A.toString())}}function dg(){let r=new TextDecoder;return t=>(typeof SharedArrayBuffer<"u"&&t.buffer instanceof SharedArrayBuffer&&(t=new Uint8Array(t)),r.decode(t))}var Rt=dg();function Ee(r,t){r.ccall("duckdb_web_fail_with",null,["string"],[t])}function Tt(r,t,e){let u=r.HEAPU8.subarray(t,t+e),d=new Uint8Array(new ArrayBuffer(u.byteLength));return d.set(u),d}function _e(r,t,e){return Rt(r.HEAPU8.subarray(t,t+e))}var ts=(d=>(d[d.BUFFER=0]="BUFFER",d[d.NATIVE=1]="NATIVE",d[d.HTTP=3]="HTTP",d[d.S3=4]="S3",d))(ts||{}),Rf=(v=>(v[v.FILE_FLAGS_READ=1]="FILE_FLAGS_READ",v[v.FILE_FLAGS_WRITE=2]="FILE_FLAGS_WRITE",v[v.FILE_FLAGS_DIRECT_IO=4]="FILE_FLAGS_DIRECT_IO",v[v.FILE_FLAGS_FILE_CREATE=8]="FILE_FLAGS_FILE_CREATE",v[v.FILE_FLAGS_FILE_CREATE_NEW=16]="FILE_FLAGS_FILE_CREATE_NEW",v[v.FILE_FLAGS_APPEND=32]="FILE_FLAGS_APPEND",v))(Rf||{});function we(r,t,e,u){let d=r.stackSave(),y=r.stackAlloc(3*8);e.unshift("number"),u.unshift(y),r.ccall(t,null,e,u);let v=r.HEAPF64[(y>>3)+0],S=r.HEAPF64[(y>>3)+1],A=r.HEAPF64[(y>>3)+2];return r.stackRestore(d),[v,S,A]}function De(r){r.ccall("duckdb_web_clear_response",null,[],[])}var rs={_udfFunctions:new Map,testPlatformFeature:(r,t)=>!1,openFile:(r,t,e)=>{},syncFile:(r,t)=>{},closeFile:(r,t)=>{},getLastFileModificationTime:(r,t)=>0,truncateFile:(r,t,e)=>{},readFile:(r,t,e,u,d)=>0,writeFile:(r,t,e,u,d)=>0,removeDirectory:(r,t,e)=>{},checkDirectory:(r,t,e)=>!1,createDirectory:(r,t,e)=>{},listDirectoryEntries:(r,t,e)=>!1,glob:(r,t,e)=>{},moveFile:(r,t,e,u,d)=>{},checkFile:(r,t,e)=>!1,removeFile:(r,t,e)=>{},callScalarUDF:(r,t,e,u,d,y,v)=>{Ai(rs,r,t,e,u,d,y,v)}};var Ur=class{constructor(t){let e=new Float64Array(t.buffer,t.byteOffset,t.byteLength/8),u=new Uint8Array(new ArrayBuffer(t.byteLength));u.set(t.subarray(7*8)),this.totalFileReadsCold=e[0],this.totalFileReadsAhead=e[1],this.totalFileReadsCached=e[2],this.totalFileWrites=e[3],this.totalPageAccesses=e[4],this.totalPageLoads=e[5],this.blockSize=e[6],this.blockStats=u}getBlockStats(t,e){return e=e||{file_reads_cold:0,file_reads_ahead:0,file_reads_cached:0,file_writes:0,page_accesses:0,page_loads:0},e.file_writes=this.blockStats[t*3+0]&15,e.file_reads_cold=this.blockStats[t*3+0]>>4,e.file_reads_ahead=this.blockStats[t*3+1]&15,e.file_reads_cached=this.blockStats[t*3+1]>>4,e.page_accesses=this.blockStats[t*3+1]&15,e.page_loads=this.blockStats[t*3+1]>>4,e}};var he=cr(require("apache-arrow"));function fr(r){switch(r.typeId){case he.Type.Binary:return{sqlType:"binary"};case he.Type.Bool:return{sqlType:"bool"};case he.Type.Date:return{sqlType:"date"};case he.Type.DateDay:return{sqlType:"date32[d]"};case he.Type.DateMillisecond:return{sqlType:"date64[ms]"};case he.Type.Decimal:{let t=r;return{sqlType:"decimal",precision:t.precision,scale:t.scale}}case he.Type.Float:return{sqlType:"float"};case he.Type.Float16:return{sqlType:"float16"};case he.Type.Float32:return{sqlType:"float32"};case he.Type.Float64:return{sqlType:"float64"};case he.Type.Int:return{sqlType:"int32"};case he.Type.Int16:return{sqlType:"int16"};case he.Type.Int32:return{sqlType:"int32"};case he.Type.Int64:return{sqlType:"int64"};case he.Type.Uint16:return{sqlType:"uint16"};case he.Type.Uint32:return{sqlType:"uint32"};case he.Type.Uint64:return{sqlType:"uint64"};case he.Type.Uint8:return{sqlType:"uint8"};case he.Type.IntervalDayTime:return{sqlType:"interval[dt]"};case he.Type.IntervalYearMonth:return{sqlType:"interval[m]"};case he.Type.List:return{sqlType:"list",valueType:fr(r.valueType)};case he.Type.FixedSizeBinary:return{sqlType:"fixedsizebinary",byteWidth:r.byteWidth};case he.Type.Null:return{sqlType:"null"};case he.Type.Utf8:return{sqlType:"utf8"};case he.Type.Struct:return{sqlType:"struct",fields:r.children.map(e=>Ri(e.name,e.type))};case he.Type.Map:{let t=r;return{sqlType:"map",keyType:fr(t.keyType),valueType:fr(t.valueType)}}case he.Type.Time:return{sqlType:"time[s]"};case he.Type.TimeMicrosecond:return{sqlType:"time[us]"};case he.Type.TimeMillisecond:return{sqlType:"time[ms]"};case he.Type.TimeNanosecond:return{sqlType:"time[ns]"};case he.Type.TimeSecond:return{sqlType:"time[s]"};case he.Type.Timestamp:return{sqlType:"timestamp",timezone:r.timezone||void 0};case he.Type.TimestampSecond:return{sqlType:"timestamp[s]",timezone:r.timezone||void 0};case he.Type.TimestampMicrosecond:return{sqlType:"timestamp[us]",timezone:r.timezone||void 0};case he.Type.TimestampNanosecond:return{sqlType:"timestamp[ns]",timezone:r.timezone||void 0};case he.Type.TimestampMillisecond:return{sqlType:"timestamp[ms]",timezone:r.timezone||void 0}}throw new Error(`unsupported arrow type: ${r.toString()}`)}function Ri(r,t){let e=fr(t);return e.name=r,e}var pg=new TextEncoder,Tf=(y=>(y[y.WASM_EXCEPTIONS=1]="WASM_EXCEPTIONS",y[y.WASM_THREADS=2]="WASM_THREADS",y[y.WASM_SIMD=4]="WASM_SIMD",y[y.WASM_BULK_MEMORY=8]="WASM_BULK_MEMORY",y[y.EMIT_BIGINT=16]="EMIT_BIGINT",y))(Tf||{}),Hr=class{constructor(t,e){this._instance=null;this._initPromise=null;this._initPromiseResolver=()=>{};this.onInstantiationProgress=[];this._logger=t,this._runtime=e,this._nextUDFId=1}get logger(){return this._logger}get mod(){return this._instance}get pthread(){return this.mod.PThread||null}async instantiate(t=e=>{}){return this._instance!=null?this:(this._initPromise!=null&&(this.onInstantiationProgress.push(t),await this._initPromise),this._initPromise=new Promise(e=>{this._initPromiseResolver=e}),this.onInstantiationProgress=[t],this._instance=await this.instantiateImpl({print:console.log.bind(console),printErr:console.log.bind(console),onRuntimeInitialized:this._initPromiseResolver}),await this._initPromise,this._initPromise=null,this.onInstantiationProgress=this.onInstantiationProgress.filter(e=>e!=t),this)}open(t){let[e,u,d]=we(this.mod,"duckdb_web_open",["string"],[JSON.stringify(t)]);if(e!==0)throw new Error(_e(this.mod,u,d));De(this.mod)}reset(){let[t,e,u]=we(this.mod,"duckdb_web_reset",[],[]);if(t!==0)throw new Error(_e(this.mod,e,u));De(this.mod)}getVersion(){let[t,e,u]=we(this.mod,"duckdb_web_get_version",[],[]);if(t!==0)throw new Error(_e(this.mod,e,u));let d=_e(this.mod,e,u);return De(this.mod),d}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(t){let[e,u,d]=we(this.mod,"duckdb_web_tokenize",["string"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));let y=_e(this.mod,u,d);return De(this.mod),JSON.parse(y)}connect(){let t=this.mod.ccall("duckdb_web_connect","number",[],[]);return new Br(this,t)}disconnect(t){if(this.mod.ccall("duckdb_web_disconnect",null,["number"],[t]),this.pthread)for(let e of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])e.postMessage({cmd:"dropUDFFunctions",connectionId:t})}runQuery(t,e){let[u,d,y]=we(this.mod,"duckdb_web_query_run",["number","string"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y));let v=Tt(this.mod,d,y);return De(this.mod),v}startPendingQuery(t,e){let[u,d,y]=we(this.mod,"duckdb_web_pending_query_start",["number","string"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y));if(d==0)return null;let v=Tt(this.mod,d,y);return De(this.mod),v}pollPendingQuery(t){let[e,u,d]=we(this.mod,"duckdb_web_pending_query_poll",["number"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));if(u==0)return null;let y=Tt(this.mod,u,d);return De(this.mod),y}cancelPendingQuery(t){return this.mod.ccall("duckdb_web_pending_query_cancel","boolean",["number"],[t])}fetchQueryResults(t){let[e,u,d]=we(this.mod,"duckdb_web_query_fetch_results",["number"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));let y=Tt(this.mod,u,d);return De(this.mod),y}getTableNames(t,e){let[u,d,y]=we(this.mod,"duckdb_web_get_tablenames",["number","string"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y));let v=_e(this.mod,d,y);return De(this.mod),JSON.parse(v)}createScalarFunction(t,e,u,d){let y={functionId:this._nextUDFId,name:e,returnType:fr(u)},v={functionId:y.functionId,connectionId:t,name:e,returnType:u,func:d};this._nextUDFId+=1;let[S,A,I]=we(this.mod,"duckdb_web_udf_scalar_create",["number","string"],[t,JSON.stringify(y)]);if(S!==0)throw new Error(_e(this.mod,A,I));if(De(this.mod),globalThis.DUCKDB_RUNTIME._udfFunctions=(globalThis.DUCKDB_RUNTIME._udfFunctions||new Map).set(v.functionId,v),this.pthread)for(let R of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])R.postMessage({cmd:"registerUDFFunction",udf:v})}createPrepared(t,e){let[u,d,y]=we(this.mod,"duckdb_web_prepared_create",["number","string"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y));return De(this.mod),d}closePrepared(t,e){let[u,d,y]=we(this.mod,"duckdb_web_prepared_close",["number","number"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y));De(this.mod)}runPrepared(t,e,u){let[d,y,v]=we(this.mod,"duckdb_web_prepared_run",["number","number","string"],[t,e,JSON.stringify(u)]);if(d!==0)throw new Error(_e(this.mod,y,v));let S=Tt(this.mod,y,v);return De(this.mod),S}sendPrepared(t,e,u){let[d,y,v]=we(this.mod,"duckdb_web_prepared_send",["number","number","string"],[t,e,JSON.stringify(u)]);if(d!==0)throw new Error(_e(this.mod,y,v));let S=Tt(this.mod,y,v);return De(this.mod),S}insertArrowFromIPCStream(t,e,u){if(e.length==0)return;let d=this.mod._malloc(e.length);this.mod.HEAPU8.subarray(d,d+e.length).set(e);let v=u?JSON.stringify(u):"",[S,A,I]=we(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[t,d,e.length,v]);if(S!==0)throw new Error(_e(this.mod,A,I))}insertCSVFromPath(t,e,u){if(u.columns!==void 0){u.columnsFlat=[];for(let I in u.columns)u.columnsFlat.push(Ri(I,u.columns[I]))}let d={...u};d.columns=d.columnsFlat,delete d.columnsFlat;let y=JSON.stringify(d),[v,S,A]=we(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[t,e,y]);if(v!==0)throw new Error(_e(this.mod,S,A))}insertJSONFromPath(t,e,u){if(u.columns!==void 0){u.columnsFlat=[];for(let I in u.columns)u.columnsFlat.push(Ri(I,u.columns[I]))}let d={...u};d.columns=d.columnsFlat,delete d.columnsFlat;let y=JSON.stringify(d),[v,S,A]=we(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[t,e,y]);if(v!==0)throw new Error(_e(this.mod,S,A))}globFiles(t){let[e,u,d]=we(this.mod,"duckdb_web_fs_glob_file_infos",["string"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));let y=_e(this.mod,u,d);De(this.mod);let v=JSON.parse(y);return v??[]}registerFileURL(t,e){e===void 0&&(e=t);let[u,d,y]=we(this.mod,"duckdb_web_fs_register_file_url",["string","string","number"],[t,e,-1]);if(u!==0)throw new Error(_e(this.mod,d,y));De(this.mod)}registerFileText(t,e){let u=pg.encode(e);this.registerFileBuffer(t,u)}registerFileBuffer(t,e){let u=this.mod._malloc(e.length);this.mod.HEAPU8.subarray(u,u+e.length).set(e);let[y,v,S]=we(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[t,u,e.length]);if(y!==0)throw new Error(_e(this.mod,v,S));De(this.mod)}registerFileHandle(t,e){let[u,d,y]=we(this.mod,"duckdb_web_fs_register_file_url",["string","string","number"],[t,t,-1]);if(u!==0)throw new Error(_e(this.mod,d,y));if(De(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(t,e),this.pthread){for(let v of this.pthread.runningWorkers)v.postMessage({cmd:"registerFileHandle",fileName:t,fileHandle:e});for(let v of this.pthread.unusedWorkers)v.postMessage({cmd:"dropFileHandle",fileName:t})}}dropFile(t){let[e,u,d]=we(this.mod,"duckdb_web_fs_drop_file",["string"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));De(this.mod)}dropFiles(){let[t,e,u]=we(this.mod,"duckdb_web_fs_drop_files",[],[]);if(t!==0)throw new Error(_e(this.mod,e,u));De(this.mod)}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(t,e){let[u,d,y]=we(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y));De(this.mod)}copyFileToBuffer(t){let[e,u,d]=we(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));let y=this.mod.HEAPU8.subarray(u,u+d),v=new Uint8Array(y.length);return v.set(y),De(this.mod),v}collectFileStatistics(t,e){let[u,d,y]=we(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y))}exportFileStatistics(t){let[e,u,d]=we(this.mod,"duckdb_web_export_file_stats",["string"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));return new Ur(this.mod.HEAPU8.subarray(u,u+d))}};var Df=(e=>(e.ROW_ARRAY="row-array",e.COLUMN_OBJECT="column-object",e))(Df||{});var Pf=(y=>(y[y.NONE=0]="NONE",y[y.DEBUG=1]="DEBUG",y[y.INFO=2]="INFO",y[y.WARNING=3]="WARNING",y[y.ERROR=4]="ERROR",y))(Pf||{}),xf=(v=>(v[v.NONE=0]="NONE",v[v.CONNECT=1]="CONNECT",v[v.DISCONNECT=2]="DISCONNECT",v[v.OPEN=3]="OPEN",v[v.QUERY=4]="QUERY",v[v.INSTANTIATE=5]="INSTANTIATE",v))(xf||{}),Of=(v=>(v[v.NONE=0]="NONE",v[v.OK=1]="OK",v[v.ERROR=2]="ERROR",v[v.START=3]="START",v[v.RUN=4]="RUN",v[v.CAPTURE=5]="CAPTURE",v))(Of||{}),Ff=(y=>(y[y.NONE=0]="NONE",y[y.WEB_WORKER=1]="WEB_WORKER",y[y.NODE_WORKER=2]="NODE_WORKER",y[y.BINDINGS=3]="BINDINGS",y[y.ASYNC_DUCKDB=4]="ASYNC_DUCKDB",y))(Ff||{}),is=class{log(t){}},ns=class{constructor(t=2){this.level=t}log(t){t.level>=this.level&&console.log(t)}};function yg(r){switch(r){case 0:return"NONE";case 1:return"DEBUG";case 2:return"INFO";case 3:return"WARNING";case 4:return"ERROR";default:return"?"}}function hg(r){switch(r){case 0:return"NONE";case 1:return"OK";case 2:return"ERROR";case 3:return"START";case 4:return"RUN";case 5:return"CAPTURE";default:return"?"}}function mg(r){switch(r){case 1:return"CONNECT";case 2:return"DISCONNECT";case 5:return"INSTANTIATE";case 3:return"OPEN";case 4:return"QUERY";default:return"?"}}function vg(r){switch(r){case 0:return"NONE";case 1:return"WEB WORKER";case 2:return"NODE WORKER";case 3:return"DUCKDB BINDINGS";case 4:return"DUCKDB";default:return"?"}}var Dt=cr(Mf());var Ti={name:"@duckdb/duckdb-wasm",version:"1.16.1",description:"DuckDB powered by WebAssembly",license:"MPL-2.0",repository:{type:"git",url:"https://github.com/duckdb/duckdb-wasm.git"},keywords:["sql","duckdb","relational","database","data","query","wasm","analytics","olap","arrow","parquet","json","csv"],dependencies:{"apache-arrow":"^9.0.0"},devDependencies:{"@types/emscripten":"^1.39.6","@types/jasmine":"^4.3.0","@typescript-eslint/eslint-plugin":"^5.36.1","@typescript-eslint/parser":"^5.36.1",esbuild:"^0.15.6",eslint:"^8.23.0","eslint-plugin-jasmine":"^4.1.3","eslint-plugin-react":"^7.31.1","fast-glob":"^3.2.11",jasmine:"^4.3.0","jasmine-core":"^4.3.0","jasmine-spec-reporter":"^7.0.0","js-sha256":"^0.9.0",karma:"^6.4.0","karma-chrome-launcher":"^3.1.1","karma-coverage":"^2.2.0","karma-firefox-launcher":"^2.1.2","karma-jasmine":"^5.1.0","karma-jasmine-html-reporter":"^2.0.0","karma-sourcemap-loader":"^0.3.8","karma-spec-reporter":"^0.0.34","make-dir":"^3.1.0",nyc:"^15.1.0",prettier:"^2.7.1",puppeteer:"^17.0.0",rimraf:"^3.0.2",s3rver:"^3.7.1",typedoc:"^0.23.13",typescript:"^4.7.4","wasm-feature-detect":"^1.2.11","web-worker":"^1.2.0"},scripts:{"build:debug":"node bundle.mjs debug && tsc --emitDeclarationOnly","build:release":"node bundle.mjs release && tsc --emitDeclarationOnly",docs:"typedoc",report:"node ./coverage.mjs","test:node":"node --enable-source-maps --experimental-wasm-eh ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs","test:node:debug":"node --inspect-brk --enable-source-maps --experimental-wasm-eh ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs","test:node:coverage":"nyc -r json --report-dir ./coverage/node node --experimental-wasm-eh ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs","test:firefox":"karma start ./karma/tests-firefox.cjs","test:chrome":"karma start ./karma/tests-chrome.cjs","test:chrome:eh":"karma start ./karma/tests-chrome-eh.cjs","test:chrome:coverage":"karma start ./karma/tests-chrome-coverage.cjs","test:browser":"karma start ./karma/tests-all.cjs","test:browser:debug":"karma start ./karma/tests-debug.cjs",test:"npm run test:chrome && npm run test:node","test:coverage":"npm run test:chrome:coverage && npm run test:node:coverage && npm run report",lint:"eslint src test"},files:["dist","!dist/types/test"],main:"dist/duckdb-browser.cjs",module:"dist/duckdb-browser.mjs",types:"dist/duckdb-browser.d.ts",jsdelivr:"dist/duckdb-browser.cjs",unpkg:"dist/duckdb-browser.mjs",sideEffects:!1,browser:{fs:!1,path:!1,perf_hooks:!1,os:!1,worker_threads:!1},exports:{"./dist/duckdb-mvp.wasm":"./dist/duckdb-mvp.wasm","./dist/duckdb-eh.wasm":"./dist/duckdb-eh.wasm","./dist/duckdb-coi.wasm":"./dist/duckdb-coi.wasm","./dist/duckdb-browser":"./dist/duckdb-browser.mjs","./dist/duckdb-browser.cjs":"./dist/duckdb-browser.cjs","./dist/duckdb-browser.mjs":"./dist/duckdb-browser.mjs","./dist/duckdb-browser-blocking":"./dist/duckdb-browser-blocking.mjs","./dist/duckdb-browser-blocking.mjs":"./dist/duckdb-browser-blocking.mjs","./dist/duckdb-browser-blocking.cjs":"./dist/duckdb-browser-blocking.cjs","./dist/duckdb-browser-coi.pthread.worker.js":"./dist/duckdb-browser-coi.pthread.worker.js","./dist/duckdb-browser-coi.worker.js":"./dist/duckdb-browser-coi.worker.js","./dist/duckdb-browser-eh.worker.js":"./dist/duckdb-browser-eh.worker.js","./dist/duckdb-browser-mvp.worker.js":"./dist/duckdb-browser-mvp.worker.js","./dist/duckdb-node":"./dist/duckdb-node.cjs","./dist/duckdb-node.cjs":"./dist/duckdb-node.cjs","./dist/duckdb-node-blocking":"./dist/duckdb-node-blocking.cjs","./dist/duckdb-node-blocking.cjs":"./dist/duckdb-node-blocking.cjs","./dist/duckdb-node-eh.worker.cjs":"./dist/duckdb-node-eh.worker.cjs","./dist/duckdb-node-mvp.worker.cjs":"./dist/duckdb-node-mvp.worker.cjs","./blocking":{browser:{types:"./dist/duckdb-browser-blocking.d.ts",import:"./dist/duckdb-browser-blocking.mjs",require:"./dist/duckdb-browser-blocking.cjs"},node:{types:"./dist/duckdb-node-blocking.d.ts",require:"./dist/duckdb-node-blocking.cjs",import:"./dist/duckdb-node-blocking.cjs"},types:"./dist/duckdb-browser-blocking.d.ts",import:"./dist/duckdb-browser-blocking.mjs",require:"./dist/duckdb-browser-blocking.cjs"},".":{browser:{types:"./dist/duckdb-browser.d.ts",import:"./dist/duckdb-browser.mjs",require:"./dist/duckdb-browser.cjs"},node:{types:"./dist/duckdb-node.d.ts",import:"./dist/duckdb-node.cjs",require:"./dist/duckdb-node.cjs"},types:"./dist/duckdb-browser.d.ts",import:"./dist/duckdb-browser.mjs",require:"./dist/duckdb-browser.cjs"}}};var as=Ti.name,ss=Ti.version,os=Ti.version.split("."),kg=os[0],Cg=os[1],Sg=os[2];var ds=()=>typeof navigator>"u",If=()=>ds()?"node":navigator.userAgent,Eg=()=>If().includes("Firefox"),Ag=()=>/^((?!chrome|android).)*safari/i.test(If());function Rg(){let r=`https://cdn.jsdelivr.net/npm/${as}@${ss}/dist/`;return{mvp:{mainModule:`${r}duckdb-mvp.wasm`,mainWorker:`${r}duckdb-browser-mvp.worker.js`},eh:{mainModule:`${r}duckdb-eh.wasm`,mainWorker:`${r}duckdb-browser-eh.worker.js`}}}var us=null,ls=null,cs=null,fs=null,_s=null;async function Di(){return us==null&&(us=typeof BigInt64Array<"u"),ls==null&&(ls=await Dt.exceptions()),cs==null&&(cs=await Dt.threads()),fs==null&&(fs=await Dt.simd()),_s==null&&(_s=await Dt.bulkMemory()),{bigInt64Array:us,crossOriginIsolated:ds()||globalThis.crossOriginIsolated||!1,wasmExceptions:ls,wasmSIMD:fs,wasmThreads:cs,wasmBulkMemory:_s}}async function Tg(r){let t=await Di();if(t.wasmExceptions){if(t.wasmSIMD&&t.wasmThreads&&t.crossOriginIsolated&&r.coi)return{mainModule:r.coi.mainModule,mainWorker:r.coi.mainWorker,pthreadWorker:r.coi.pthreadWorker};if(r.eh)return{mainModule:r.eh.mainModule,mainWorker:r.eh.mainWorker,pthreadWorker:null}}return{mainModule:r.mvp.mainModule,mainWorker:r.mvp.mainWorker,pthreadWorker:null}}var Ve=cr(require("fs"));var Sp=cr(Cp());var qe={_files:new Map,_fileInfoCache:new Map,_udfFunctions:new Map,resolveFileInfo(r,t){try{let e=qe._fileInfoCache.get(t),[u,d,y]=we(r,"duckdb_web_fs_get_file_info_by_id",["number","number"],[t,(e==null?void 0:e.cacheEpoch)||0]);if(u!==0)return Ee(r,_e(r,d,y)),null;if(y===0)return e;let v=_e(r,d,y);De(r);let S=JSON.parse(v);return S==null?null:(qe._fileInfoCache.set(t,S),S)}catch(e){return Ee(r,e.toString()),null}},testPlatformFeature:(r,t)=>{switch(t){case 1:return typeof BigInt64Array<"u";default:return console.warn(`test for unknown feature: ${t}`),!1}},openFile(r,t,e){try{qe._fileInfoCache.delete(t);let u=qe.resolveFileInfo(r,t);switch(u==null?void 0:u.dataProtocol){case 1:{u.dataNativeFd=Ve.default.openSync(u.dataUrl,Ve.default.constants.O_CREAT|Ve.default.constants.O_RDWR,Ve.default.constants.S_IRUSR|Ve.default.constants.S_IWUSR);let[d,y,v]=we(r,"duckdb_web_fs_set_file_descriptor",["number","number"],[t,u.dataNativeFd]);d!==0&&Ee(r,_e(r,y,v));let S=Ve.default.fstatSync(u.dataNativeFd).size,A=r._malloc(2*8);return r.HEAPF64[(A>>3)+0]=+S,r.HEAPF64[(A>>3)+1]=0,A}case 3:case 4:Ee(r,"Not implemented")}}catch(u){Ee(r,u.toString())}return 0},syncFile:(r,t)=>{},closeFile:(r,t)=>{try{let e=qe.resolveFileInfo(r,t);switch(qe._fileInfoCache.delete(t),e==null?void 0:e.dataProtocol){case 1:{if(!e.dataNativeFd)return Ee(r,`File ${t} is missing a file descriptor`),0;Ve.default.closeSync(e.dataNativeFd),e.dataNativeFd=null;break}case 3:case 4:Ee(r,"Not implemented")}}catch(e){Ee(r,e.toString())}return 0},truncateFile:(r,t,e)=>{try{let u=qe.resolveFileInfo(r,t);switch(u==null?void 0:u.dataProtocol){case 1:{if(!u.dataNativeFd)return Ee(r,`File ${t} is missing a file descriptor`),0;Ve.default.truncateSync(u.dataUrl,e);break}case 3:case 4:Ee(r,"Not implemented")}}catch(u){Ee(r,u.toString())}return 0},readFile:(r,t,e,u,d)=>{try{let y=qe.resolveFileInfo(r,t);switch(y==null?void 0:y.dataProtocol){case 1:return y.dataNativeFd?Ve.default.readSync(y.dataNativeFd,r.HEAPU8,e,u,d):(Ee(r,`File ${t} is missing a file descriptor`),0);case 3:case 4:Ee(r,"Not implemented")}}catch(y){Ee(r,y.toString())}return 0},writeFile:(r,t,e,u,d)=>{try{let y=qe.resolveFileInfo(r,t);switch(y==null?void 0:y.dataProtocol){case 1:{if(!y.dataNativeFd)return Ee(r,`File ${t} is missing a file descriptor`),0;let v=r.HEAPU8.subarray(e,e+u);return Ve.default.writeSync(y.dataNativeFd,v,0,v.length,d)}}}catch(y){Ee(r,y.toString())}return 0},getLastFileModificationTime:(r,t)=>{try{let e=qe.resolveFileInfo(r,t);switch(e==null?void 0:e.dataProtocol){case 1:return e.dataNativeFd?Ve.default.fstatSync(e.dataNativeFd).mtime.getTime():(Ee(r,`File ${t} is missing a file descriptor`),0);case 3:case 4:Ee(r,"Not implemented")}}catch(e){Ee(r,e.toString())}return 0},checkDirectory:(r,t,e)=>{try{let u=Rt(r.HEAPU8.subarray(t,t+e));return Ve.default.existsSync(u)}catch(u){return Ee(r,u.toString()),!1}},createDirectory:(r,t,e)=>{try{let u=Rt(r.HEAPU8.subarray(t,t+e));return Ve.default.mkdirSync(u)}catch(u){return Ee(r,u.toString()),0}},removeDirectory:(r,t,e)=>{try{let u=Rt(r.HEAPU8.subarray(t,t+e));return Ve.default.rmdirSync(u)}catch(u){return Ee(r,u.toString()),0}},listDirectoryEntries:(r,t,e)=>(Ee(r,"Not Implemented"),!1),glob:(r,t,e)=>{try{let u=_e(r,t,e),d=Sp.sync([u],{dot:!0});for(let y of d)r.ccall("duckdb_web_fs_glob_add_path",null,["string"],[y])}catch(u){return Ee(r,u.toString()),0}},moveFile:(r,t,e,u,d)=>{var A,I;let y=_e(r,t,e),v=_e(r,u,d),S=(A=qe._files)==null?void 0:A.get(y);S!==void 0&&(qe._files.delete(S),qe._files.set(v,S));for(let[R,L]of((I=qe._fileInfoCache)==null?void 0:I.entries())||[])if(L.dataUrl==y){qe._fileInfoCache.delete(R);break}return!0},checkFile:(r,t,e)=>{try{let u=Rt(r.HEAPU8.subarray(t,t+e));return Ve.default.existsSync(u)}catch(u){return Ee(r,u.toString()),!1}},removeFile:(r,t,e)=>{try{let u=Rt(r.HEAPU8.subarray(t,t+e));return Ve.default.rmSync(u)}catch(u){return Ee(r,u.toString()),0}},callScalarUDF:(r,t,e,u,d,y,v)=>{Ai(qe,r,t,e,u,d,y,v)}};var Ep={},Tw=(()=>{var r=Ep.url;return function(t){t=t||{};var e=typeof t<"u"?t:{},u,d;e.ready=new Promise(function(i,n){u=i,d=n});var y=Object.assign({},e),v=[],S="./this.program",A=(i,n)=>{throw n},I=typeof window=="object",R=typeof importScripts=="function",L=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",P="";function fe(i){return e.locateFile?e.locateFile(i,P):P+i}var K,z,ee,oe;function be(i){if(i instanceof wi)return;J("exiting due to exception: "+i)}var me,Ae,ie;L?(R?P=require("path").dirname(P)+"/":P=__dirname+"/",ie=()=>{Ae||(me=require("fs"),Ae=require("path"))},K=function(n,a){return ie(),n=Ae.normalize(n),me.readFileSync(n,a?void 0:"utf8")},ee=i=>{var n=K(i,!0);return n.buffer||(n=new Uint8Array(n)),n},z=(i,n,a)=>{ie(),i=Ae.normalize(i),me.readFile(i,function(s,o){s?a(s):n(o.buffer)})},process.argv.length>1&&(S=process.argv[1].replace(/\\/g,"/")),v=process.argv.slice(2),process.on("uncaughtException",function(i){if(!(i instanceof wi))throw i}),process.on("unhandledRejection",function(i){throw i}),A=(i,n)=>{if(zr())throw process.exitCode=i,n;be(n),process.exit(i)},e.inspect=function(){return"[Emscripten Module object]"}):(I||R)&&(R?P=self.location.href:typeof document<"u"&&document.currentScript&&(P=document.currentScript.src),r&&(P=r),P.indexOf("blob:")!==0?P=P.substr(0,P.replace(/[?#].*/,"").lastIndexOf("/")+1):P="",K=i=>{var n=new XMLHttpRequest;return n.open("GET",i,!1),n.send(null),n.responseText},R&&(ee=i=>{var n=new XMLHttpRequest;return n.open("GET",i,!1),n.responseType="arraybuffer",n.send(null),new Uint8Array(n.response)}),z=(i,n,a)=>{var s=new XMLHttpRequest;s.open("GET",i,!0),s.responseType="arraybuffer",s.onload=()=>{if(s.status==200||s.status==0&&s.response){n(s.response);return}a()},s.onerror=a,s.send(null)},oe=i=>document.title=i);var ke=e.print||console.log.bind(console),J=e.printErr||console.warn.bind(console);Object.assign(e,y),y=null,e.arguments&&(v=e.arguments),e.thisProgram&&(S=e.thisProgram),e.quit&&(A=e.quit);var te=0,$=i=>{te=i},pe=()=>te,F;e.wasmBinary&&(F=e.wasmBinary);var ue=e.noExitRuntime||!0;typeof WebAssembly!="object"&&Oe("no native wasm support detected");var ae,Ce=!1,D;function x(i,n){i||Oe(n)}function Pe(i){var n=e["_"+i];return n}function le(i,n,a,s,o){var l={string:function(Y){var de=0;if(Y!=null&&Y!==0){var je=(Y.length<<2)+1;de=it(je),It(Y,de,je)}return de},array:function(Y){var de=it(Y.length);return Qe(Y,de),de}};function c(Y){return n==="string"?xe(Y):n==="boolean"?Boolean(Y):Y}var f=Pe(i),_=[],p=0;if(s)for(var m=0;m<s.length;m++){var k=l[a[m]];k?(p===0&&(p=b()),_[m]=k(s[m])):_[m]=s[m]}var E=f.apply(null,_);function H(Y){return p!==0&&j(p),c(Y)}return E=H(E),E}var Ye=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function We(i,n,a){n>>>=0;for(var s=n+a,o=n;i[o]&&!(o>=s);)++o;if(o-n>16&&i.buffer&&Ye)return Ye.decode(i.subarray(n,o));for(var l="";n<o;){var c=i[n++];if(!(c&128)){l+=String.fromCharCode(c);continue}var f=i[n++]&63;if((c&224)==192){l+=String.fromCharCode((c&31)<<6|f);continue}var _=i[n++]&63;if((c&240)==224?c=(c&15)<<12|f<<6|_:c=(c&7)<<18|f<<12|_<<6|i[n++]&63,c<65536)l+=String.fromCharCode(c);else{var p=c-65536;l+=String.fromCharCode(55296|p>>10,56320|p&1023)}}return l}function xe(i,n){return i>>>=0,i?We(O,i,n):""}function _t(i,n,a,s){if(a>>>=0,!(s>0))return 0;for(var o=a,l=a+s-1,c=0;c<i.length;++c){var f=i.charCodeAt(c);if(f>=55296&&f<=57343){var _=i.charCodeAt(++c);f=65536+((f&1023)<<10)|_&1023}if(f<=127){if(a>=l)break;n[a++>>>0]=f}else if(f<=2047){if(a+1>=l)break;n[a++>>>0]=192|f>>6,n[a++>>>0]=128|f&63}else if(f<=65535){if(a+2>=l)break;n[a++>>>0]=224|f>>12,n[a++>>>0]=128|f>>6&63,n[a++>>>0]=128|f&63}else{if(a+3>=l)break;n[a++>>>0]=240|f>>18,n[a++>>>0]=128|f>>12&63,n[a++>>>0]=128|f>>6&63,n[a++>>>0]=128|f&63}}return n[a>>>0]=0,a-o}function It(i,n,a){return _t(i,O,n,a)}function bt(i){for(var n=0,a=0;a<i.length;++a){var s=i.charCodeAt(a);s>=55296&&s<=57343&&(s=65536+((s&1023)<<10)|i.charCodeAt(++a)&1023),s<=127?++n:s<=2047?n+=2:s<=65535?n+=3:n+=4}return n}function Qe(i,n){Je.set(i,n>>>0)}function se(i,n,a){for(var s=0;s<i.length;++s)Je[n++>>>0]=i.charCodeAt(s);a||(Je[n>>>0]=0)}var at,Je,O,ve,W,N,Re,He,Fe;function jt(i){at=i,e.HEAP8=Je=new Int8Array(i),e.HEAP16=ve=new Int16Array(i),e.HEAP32=N=new Int32Array(i),e.HEAPU8=O=new Uint8Array(i),e.HEAPU16=W=new Uint16Array(i),e.HEAPU32=Re=new Uint32Array(i),e.HEAPF32=He=new Float32Array(i),e.HEAPF64=Fe=new Float64Array(i)}var At=e.INITIAL_MEMORY||16777216,Kr,kr=[],Vr=[],Yr=[],Qr=[],on=!1;function zr(){return ue}function un(){if(e.preRun)for(typeof e.preRun=="function"&&(e.preRun=[e.preRun]);e.preRun.length;)wt(e.preRun.shift());Jt(kr)}function ln(){on=!0,Jt(Vr)}function cn(){Jt(Yr)}function fn(){if(e.postRun)for(typeof e.postRun=="function"&&(e.postRun=[e.postRun]);e.postRun.length;)Bt(e.postRun.shift());Jt(Qr)}function wt(i){kr.unshift(i)}function Cr(i){Vr.unshift(i)}function Bt(i){Qr.unshift(i)}var kt=0,Sr=null,$e=null;function _n(i){kt++,e.monitorRunDependencies&&e.monitorRunDependencies(kt)}function Xr(i){if(kt--,e.monitorRunDependencies&&e.monitorRunDependencies(kt),kt==0&&(Sr!==null&&(clearInterval(Sr),Sr=null),$e)){var n=$e;$e=null,n()}}function Oe(i){e.onAbort&&e.onAbort(i),i="Aborted("+i+")",J(i),Ce=!0,D=1,i+=". Build with -sASSERTIONS for more info.";var n=new WebAssembly.RuntimeError(i);throw d(n),n}var Jr="data:application/octet-stream;base64,";function Zr(i){return i.startsWith(Jr)}var Ze;e.locateFile?(Ze="./duckdb-mvp.wasm",Zr(Ze)||(Ze=fe(Ze))):Ze=new URL("./duckdb-mvp.wasm",Ep.url).toString();function Lt(i){try{if(i==Ze&&F)return new Uint8Array(F);if(ee)return ee(i);throw"both async and sync fetching of the wasm failed"}catch(n){Oe(n)}}function Xt(){return!F&&(I||R)&&typeof fetch=="function"?fetch(Ze,{credentials:"same-origin"}).then(function(i){if(!i.ok)throw"failed to load wasm binary file at '"+Ze+"'";return i.arrayBuffer()}).catch(function(){return Lt(Ze)}):Promise.resolve().then(function(){return Lt(Ze)})}function ei(){var i={a:Ra};function n(c,f){var _=c.exports;e.asm=_,ae=e.asm.Ve,jt(ae.buffer),Kr=e.asm.Vf,Cr(e.asm.We),Xr("wasm-instantiate")}_n("wasm-instantiate");function a(c){n(c.instance)}function s(c){return Xt().then(function(f){return WebAssembly.instantiate(f,i)}).then(function(f){return f}).then(c,function(f){J("failed to asynchronously prepare wasm: "+f),Oe(f)})}function o(){return!F&&typeof WebAssembly.instantiateStreaming=="function"&&!Zr(Ze)&&typeof fetch=="function"?fetch(Ze,{credentials:"same-origin"}).then(function(c){var f=WebAssembly.instantiateStreaming(c,i);return f.then(a,function(_){return J("wasm streaming compile failed: "+_),J("falling back to ArrayBuffer instantiation"),s(a)})}):s(a)}if(e.instantiateWasm)try{var l=e.instantiateWasm(i,n);return l}catch(c){return J("Module.instantiateWasm callback failed with error: "+c),!1}return o().catch(d),{}}function Jt(i){for(;i.length>0;){var n=i.shift();if(typeof n=="function"){n(e);continue}var a=n.func;typeof a=="number"?n.arg===void 0?Q(a)():Q(a)(n.arg):a(n.arg===void 0?null:n.arg)}}var Zt=[];function Q(i){var n=Zt[i];return n||(i>=Zt.length&&(Zt.length=i+1),Zt[i]=n=Kr.get(i)),n}function dn(i){if(i instanceof wi||i=="unwind")return D;A(1,i)}function pn(i,n,a,s){Oe("Assertion failed: "+xe(i)+", at: "+[n?xe(n):"unknown filename",a,s?xe(s):"unknown function"])}function ti(i){return Ge(i+24)+24}var dt=[];function Er(i){i.add_ref()}var Ut=0;function ri(i){var n=new ut(i);return n.get_caught()||(n.set_caught(!0),Ut--),n.set_rethrown(!1),dt.push(n),Er(n),n.get_exception_ptr()}var et=0;function ut(i){this.excPtr=i,this.ptr=i-24,this.set_type=function(n){N[this.ptr+4>>>2]=n},this.get_type=function(){return N[this.ptr+4>>>2]},this.set_destructor=function(n){N[this.ptr+8>>>2]=n},this.get_destructor=function(){return N[this.ptr+8>>>2]},this.set_refcount=function(n){N[this.ptr>>>2]=n},this.set_caught=function(n){n=n?1:0,Je[this.ptr+12>>>0]=n},this.get_caught=function(){return Je[this.ptr+12>>>0]!=0},this.set_rethrown=function(n){n=n?1:0,Je[this.ptr+13>>>0]=n},this.get_rethrown=function(){return Je[this.ptr+13>>>0]!=0},this.init=function(n,a){this.set_adjusted_ptr(0),this.set_type(n),this.set_destructor(a),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var n=N[this.ptr>>>2];N[this.ptr>>>2]=n+1},this.release_ref=function(){var n=N[this.ptr>>>2];return N[this.ptr>>>2]=n-1,n===1},this.set_adjusted_ptr=function(n){N[this.ptr+16>>>2]=n},this.get_adjusted_ptr=function(){return N[this.ptr+16>>>2]},this.get_exception_ptr=function(){var n=U(this.get_type());if(n)return N[this.excPtr>>>2];var a=this.get_adjusted_ptr();return a!==0?a:this.excPtr}}function er(i){return Se(new ut(i).ptr)}function tt(i){if(i.release_ref()&&!i.get_rethrown()){var n=i.get_destructor();n&&Q(n)(i.excPtr),er(i.excPtr)}}function ii(){w(0);var i=dt.pop();tt(i),et=0}function yn(i){throw et||(et=i),i}function hn(){var i=et;if(!i)return $(0),0;var n=new ut(i);n.set_adjusted_ptr(i);var a=n.get_type();if(!a)return $(0),i|0;for(var s=Array.prototype.slice.call(arguments),o=0;o<s.length;o++){var l=s[o];if(l===0||l===a)break;var c=n.ptr+16;if(ft(l,a,c))return $(l),i|0}return $(a),i|0}function mn(){var i=et;if(!i)return $(0),0;var n=new ut(i);n.set_adjusted_ptr(i);var a=n.get_type();if(!a)return $(0),i|0;for(var s=Array.prototype.slice.call(arguments),o=0;o<s.length;o++){var l=s[o];if(l===0||l===a)break;var c=n.ptr+16;if(ft(l,a,c))return $(l),i|0}return $(a),i|0}function vn(){var i=et;if(!i)return $(0),0;var n=new ut(i);n.set_adjusted_ptr(i);var a=n.get_type();if(!a)return $(0),i|0;for(var s=Array.prototype.slice.call(arguments),o=0;o<s.length;o++){var l=s[o];if(l===0||l===a)break;var c=n.ptr+16;if(ft(l,a,c))return $(l),i|0}return $(a),i|0}function gn(){var i=et;if(!i)return $(0),0;var n=new ut(i);n.set_adjusted_ptr(i);var a=n.get_type();if(!a)return $(0),i|0;for(var s=Array.prototype.slice.call(arguments),o=0;o<s.length;o++){var l=s[o];if(l===0||l===a)break;var c=n.ptr+16;if(ft(l,a,c))return $(l),i|0}return $(a),i|0}function bn(){var i=dt.pop();i||Oe("no exception to throw");var n=i.excPtr;throw i.get_rethrown()||(dt.push(i),i.set_rethrown(!0),i.set_caught(!1),Ut++),et=n,n}function jn(i,n,a){var s=new ut(i);throw s.init(n,a),et=i,Ut++,i}function ni(){return Ut}var Ie={buffers:[null,[],[]],printChar:function(i,n){var a=Ie.buffers[i];n===0||n===10?((i===1?ke:J)(We(a,0)),a.length=0):a.push(n)},varargs:void 0,get:function(){Ie.varargs+=4;var i=N[Ie.varargs-4>>>2];return i},getStr:function(i){var n=xe(i);return n}};function wn(i,n,a,s,o){}function kn(){J("missing function: $SOCKFS"),Oe(-1)}function ai(){J("missing function: $FS"),Oe(-1)}function Ht(i){var n=kn.getSocket(i);if(!n)throw new ai.ErrnoError(8);return n}function Ar(i){return(i&255)+"."+(i>>8&255)+"."+(i>>16&255)+"."+(i>>24&255)}function si(i){var n="",a=0,s=0,o=0,l=0,c=0,f=0,_=[i[0]&65535,i[0]>>16,i[1]&65535,i[1]>>16,i[2]&65535,i[2]>>16,i[3]&65535,i[3]>>16],p=!0,m="";for(f=0;f<5;f++)if(_[f]!==0){p=!1;break}if(p){if(m=Ar(_[6]|_[7]<<16),_[5]===-1)return n="::ffff:",n+=m,n;if(_[5]===0)return n="::",m==="0.0.0.0"&&(m=""),m==="0.0.0.1"&&(m="1"),n+=m,n}for(a=0;a<8;a++)_[a]===0&&(a-o>1&&(c=0),o=a,c++),c>s&&(s=c,l=a-s+1);for(a=0;a<8;a++){if(s>1&&_[a]===0&&a>=l&&a<l+s){a===l&&(n+=":",l===0&&(n+=":"));continue}n+=Number(ge(_[a]&65535)).toString(16),n+=a<7?":":""}return n}function oi(i,n){var a=ve[i>>>1],s=ge(W[i+2>>>1]),o;switch(a){case 2:if(n!==16)return{errno:28};o=N[i+4>>>2],o=Ar(o);break;case 10:if(n!==28)return{errno:28};o=[N[i+8>>>2],N[i+12>>>2],N[i+16>>>2],N[i+20>>>2]],o=si(o);break;default:return{errno:5}}return{family:a,addr:o,port:s}}function tr(i){for(var n=i.split("."),a=0;a<4;a++){var s=Number(n[a]);if(isNaN(s))return null;n[a]=s}return(n[0]|n[1]<<8|n[2]<<16|n[3]<<24)>>>0}function rr(i){return parseInt(i)}function Rr(i){var n,a,s,o,l=/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i,c=[];if(!l.test(i))return null;if(i==="::")return[0,0,0,0,0,0,0,0];for(i.startsWith("::")?i=i.replace("::","Z:"):i=i.replace("::",":Z:"),i.indexOf(".")>0?(i=i.replace(new RegExp("[.]","g"),":"),n=i.split(":"),n[n.length-4]=rr(n[n.length-4])+rr(n[n.length-3])*256,n[n.length-3]=rr(n[n.length-2])+rr(n[n.length-1])*256,n=n.slice(0,n.length-2)):n=i.split(":"),s=0,o=0,a=0;a<n.length;a++)if(typeof n[a]=="string")if(n[a]==="Z"){for(o=0;o<8-n.length+1;o++)c[a+o]=0;s=o-1}else c[a+s]=ye(parseInt(n[a],16));else c[a+s]=n[a];return[c[1]<<16|c[0],c[3]<<16|c[2],c[5]<<16|c[4],c[7]<<16|c[6]]}var rt={address_map:{id:1,addrs:{},names:{}},lookup_name:function(i){var n=tr(i);if(n!==null||(n=Rr(i),n!==null))return i;var a;if(rt.address_map.addrs[i])a=rt.address_map.addrs[i];else{var s=rt.address_map.id++;x(s<65535,"exceeded max address mappings of 65535"),a="172.29."+(s&255)+"."+(s&65280),rt.address_map.names[a]=i,rt.address_map.addrs[i]=a}return a},lookup_addr:function(i){return rt.address_map.names[i]?rt.address_map.names[i]:null}};function ui(i,n,a){if(a&&i===0)return null;var s=oi(i,n);if(s.errno)throw new ai.ErrnoError(s.errno);return s.addr=rt.lookup_addr(s.addr)||s.addr,s}function Cn(i,n,a){var s=Ht(i),o=ui(n,a);return s.sock_ops.bind(s,o.addr,o.port),0}function Sn(i,n,a){var s=Ht(i),o=ui(n,a);return s.sock_ops.connect(s,o.addr,o.port),0}function En(i,n,a,s){return n=Ie.getStr(n),n=Ie.calculateAt(i,n),Ie.doAccess(n,a)}function li(i,n,a){return Ie.varargs=a,0}function An(i,n){}function Rn(i,n,a){}function Tn(i,n,a){}function ci(i,n){O.fill(0,i,i+n)}function Tr(i,n,a,s,o){switch(n){case 2:a=tr(a),ci(i,16),o&&(N[o>>>2]=16),ve[i>>>1]=n,N[i+4>>>2]=a,ve[i+2>>>1]=ye(s);break;case 10:a=Rr(a),ci(i,28),o&&(N[o>>>2]=28),N[i>>>2]=n,N[i+8>>>2]=a[0],N[i+12>>>2]=a[1],N[i+16>>>2]=a[2],N[i+20>>>2]=a[3],ve[i+2>>>1]=ye(s);break;default:return 5}return 0}function Dn(i,n,a){var s=Ht(i);if(!s.daddr)return-53;var o=Tr(n,s.family,rt.lookup_name(s.daddr),s.dport,a);return 0}function Pn(i,n,a,s,o){var l=Ht(i);return n===1&&a===4?(N[s>>>2]=l.error,N[o>>>2]=4,l.error=null,0):-50}function xn(i,n,a){return Ie.varargs=a,0}function On(i,n){}function Fn(i,n,a){}function Nn(i,n,a,s){}function Mn(i,n,a,s){Ie.varargs=s}function In(i,n,a,s,o,l){var c=Ht(i),f=c.sock_ops.recvmsg(c,a);if(!f)return 0;if(o)var _=Tr(o,c.family,rt.lookup_name(f.addr),f.port,l);return O.set(f.buffer,n>>>0),f.buffer.byteLength}function Bn(i,n,a,s){}function Ln(i){}function Un(i,n,a,s,o,l){}function Hn(i,n,a){}function qn(i,n){}function Wn(i,n,a){}function $n(i){}var fi="To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking";function _i(i,n){Oe(fi)}function Dr(i,n){Oe(fi)}function Gn(){return Date.now()}var Kn=!0;function Vn(){return Kn}function Pr(){Oe("")}function Yn(i,n){return globalThis.DUCKDB_RUNTIME.createDirectory(e,i,n)}function qt(i,n){return globalThis.DUCKDB_RUNTIME.checkDirectory(e,i,n)}function Qn(i,n){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(e,i,n)}function zn(i,n){return globalThis.DUCKDB_RUNTIME.removeDirectory(e,i,n)}function Xn(i){return globalThis.DUCKDB_RUNTIME.closeFile(e,i)}function Jn(i,n){return globalThis.DUCKDB_RUNTIME.checkFile(e,i,n)}function Zn(i){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(e,i)}function ea(i,n,a,s){return globalThis.DUCKDB_RUNTIME.moveFile(e,i,n,a,s)}function ta(i,n){return globalThis.DUCKDB_RUNTIME.openFile(e,i,n)}function ra(i,n,a,s){return globalThis.DUCKDB_RUNTIME.readFile(e,i,n,a,s)}function ia(i,n){return globalThis.DUCKDB_RUNTIME.truncateFile(e,i,n)}function na(i,n,a,s){return globalThis.DUCKDB_RUNTIME.writeFile(e,i,n,a,s)}function aa(i,n){return globalThis.DUCKDB_RUNTIME.glob(e,i,n)}function ir(i){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(e,i)}function sa(i,n,a,s,o,l){return globalThis.DUCKDB_RUNTIME.callScalarUDF(e,i,n,a,s,o,l)}function Wt(){return 4294901760}var xr;L?xr=()=>{var i=process.hrtime();return i[0]*1e3+i[1]/1e6}:xr=()=>performance.now();function di(i,n,a){O.copyWithin(i>>>0,n>>>0,n+a>>>0)}function pi(i){try{return ae.grow(i-at.byteLength+65535>>>16),jt(ae.buffer),1}catch{}}function oa(i){var n=O.length;i=i>>>0;var a=Wt();if(i>a)return!1;let s=(_,p)=>_+(p-_%p)%p;for(var o=1;o<=4;o*=2){var l=n*(1+.2/o);l=Math.min(l,i+100663296);var c=Math.min(a,s(Math.max(i,l),65536)),f=pi(c);if(f)return!0}return!1}var Or={};function ua(){return S||"./this.program"}function $t(){if(!$t.strings){var i=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",n={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:i,_:ua()};for(var a in Or)Or[a]===void 0?delete n[a]:n[a]=Or[a];var s=[];for(var a in n)s.push(a+"="+n[a]);$t.strings=s}return $t.strings}function la(i,n){var a=0;return $t().forEach(function(s,o){var l=n+a;N[i+o*4>>>2]=l,se(s,l),a+=s.length+1}),0}function Qo(i,n){var a=$t();N[i>>>2]=a.length;var s=0;return a.forEach(function(o){s+=o.length+1}),N[n>>>2]=s,0}function ca(i){return 0}function fa(i,n,a,s,o,l){var c=Ie.getStreamFromFD(i),f=Ie.doReadv(c,n,a,s);return N[l>>>2]=f,0}function _a(i,n,a,s,o,l){var c=Ie.getStreamFromFD(i),f=Ie.doWritev(c,n,a,s);return N[l>>>2]=f,0}function da(i,n,a,s){var o=Ie.getStreamFromFD(i),l=Ie.doReadv(o,n,a);return N[s>>>2]=l,0}function pa(i,n,a,s,o){}function ya(i){var n=Ie.getStreamFromFD(i);return n.stream_ops&&n.stream_ops.fsync?-n.stream_ops.fsync(n):0}function ha(i,n,a,s){for(var o=0,l=0;l<a;l++){var c=N[n>>>2],f=N[n+4>>>2];n+=8;for(var _=0;_<f;_++)Ie.printChar(i,O[c+_>>>0]);o+=f}return N[s>>>2]=o,0}function ma(){return pe()}function va(i,n,a,s){var o=0,l=0,c=0,f=0,_=0,p=0,m;function k(E,H,Y,de,je,Be){var B,re,Me,Ke;return re=E===10?28:16,je=E===10?si(je):Ar(je),B=Ge(re),Ke=Tr(B,E,je,Be),x(!Ke),Me=Ge(32),N[Me+4>>>2]=E,N[Me+8>>>2]=H,N[Me+12>>>2]=Y,N[Me+24>>>2]=de,N[Me+20>>>2]=B,E===10?N[Me+16>>>2]=28:N[Me+16>>>2]=16,N[Me+28>>>2]=0,Me}if(a&&(c=N[a>>>2],f=N[a+4>>>2],_=N[a+8>>>2],p=N[a+12>>>2]),_&&!p&&(p=_===2?17:6),!_&&p&&(_=p===17?2:1),p===0&&(p=6),_===0&&(_=1),!i&&!n)return-2;if(c&-1088||a!==0&&N[a>>>2]&2&&!i)return-1;if(c&32)return-2;if(_!==0&&_!==1&&_!==2)return-7;if(f!==0&&f!==2&&f!==10)return-6;if(n&&(n=xe(n),l=parseInt(n,10),isNaN(l)))return c&1024?-2:-8;if(!i)return f===0&&(f=2),(c&1)===0&&(f===2?o=Z(2130706433):o=[0,0,0,1]),m=k(f,_,p,null,o,l),N[s>>>2]=m,0;if(i=xe(i),o=tr(i),o!==null)if(f===0||f===2)f=2;else if(f===10&&c&8)o=[0,0,Z(65535),o],f=10;else return-2;else if(o=Rr(i),o!==null)if(f===0||f===10)f=10;else return-2;return o!=null?(m=k(f,_,p,i,o,l),N[s>>>2]=m,0):c&4?-2:(i=rt.lookup_name(i),o=tr(i),f===0?f=2:f===10&&(o=[0,0,Z(65535),o]),m=k(f,_,p,null,o,l),N[s>>>2]=m,0)}function ga(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var i=new Uint8Array(1);return function(){return crypto.getRandomValues(i),i[0]}}else if(L)try{var n=require("crypto");return function(){return n.randomBytes(1)[0]}}catch{}return function(){Oe("randomDevice")}}function nr(i,n){nr.randomDevice||(nr.randomDevice=ga());for(var a=0;a<n;a++)Je[i+a>>>0]=nr.randomDevice();return 0}function ba(i,n,a,s,o,l,c){var f=oi(i,n);if(f.errno)return-6;var _=f.port,p=f.addr,m=!1;if(a&&s){var k;if(c&1||!(k=rt.lookup_addr(p))){if(c&8)return-2}else p=k;var E=It(p,a,s);E+1>=s&&(m=!0)}if(o&&l){_=""+_;var E=It(_,o,l);E+1>=l&&(m=!0)}return m?-12:0}function ja(i){return i}function wa(i){$(i)}function ar(i){return i%4===0&&(i%100!==0||i%400===0)}function ka(i,n){for(var a=0,s=0;s<=n;a+=i[s++]);return a}var yi=[31,29,31,30,31,30,31,31,30,31,30,31],hi=[31,28,31,30,31,30,31,31,30,31,30,31];function Ca(i,n){for(var a=new Date(i.getTime());n>0;){var s=ar(a.getFullYear()),o=a.getMonth(),l=(s?yi:hi)[o];if(n>l-a.getDate())n-=l-a.getDate()+1,a.setDate(1),o<11?a.setMonth(o+1):(a.setMonth(0),a.setFullYear(a.getFullYear()+1));else return a.setDate(a.getDate()+n),a}return a}function Sa(i,n,a,s){var o=N[s+40>>>2],l={tm_sec:N[s>>>2],tm_min:N[s+4>>>2],tm_hour:N[s+8>>>2],tm_mday:N[s+12>>>2],tm_mon:N[s+16>>>2],tm_year:N[s+20>>>2],tm_wday:N[s+24>>>2],tm_yday:N[s+28>>>2],tm_isdst:N[s+32>>>2],tm_gmtoff:N[s+36>>>2],tm_zone:o?xe(o):""},c=xe(a),f={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var _ in f)c=c.replace(new RegExp(_,"g"),f[_]);var p=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],m=["January","February","March","April","May","June","July","August","September","October","November","December"];function k(B,re,Me){for(var Ke=typeof B=="number"?B.toString():B||"";Ke.length<re;)Ke=Me[0]+Ke;return Ke}function E(B,re){return k(B,re,"0")}function H(B,re){function Me(ki){return ki<0?-1:ki>0?1:0}var Ke;return(Ke=Me(B.getFullYear()-re.getFullYear()))===0&&(Ke=Me(B.getMonth()-re.getMonth()))===0&&(Ke=Me(B.getDate()-re.getDate())),Ke}function Y(B){switch(B.getDay()){case 0:return new Date(B.getFullYear()-1,11,29);case 1:return B;case 2:return new Date(B.getFullYear(),0,3);case 3:return new Date(B.getFullYear(),0,2);case 4:return new Date(B.getFullYear(),0,1);case 5:return new Date(B.getFullYear()-1,11,31);case 6:return new Date(B.getFullYear()-1,11,30)}}function de(B){var re=Ca(new Date(B.tm_year+1900,0,1),B.tm_yday),Me=new Date(re.getFullYear(),0,4),Ke=new Date(re.getFullYear()+1,0,4),ki=Y(Me),ag=Y(Ke);return H(ki,re)<=0?H(ag,re)<=0?re.getFullYear()+1:re.getFullYear():re.getFullYear()-1}var je={"%a":function(B){return p[B.tm_wday].substring(0,3)},"%A":function(B){return p[B.tm_wday]},"%b":function(B){return m[B.tm_mon].substring(0,3)},"%B":function(B){return m[B.tm_mon]},"%C":function(B){var re=B.tm_year+1900;return E(re/100|0,2)},"%d":function(B){return E(B.tm_mday,2)},"%e":function(B){return k(B.tm_mday,2," ")},"%g":function(B){return de(B).toString().substring(2)},"%G":function(B){return de(B)},"%H":function(B){return E(B.tm_hour,2)},"%I":function(B){var re=B.tm_hour;return re==0?re=12:re>12&&(re-=12),E(re,2)},"%j":function(B){return E(B.tm_mday+ka(ar(B.tm_year+1900)?yi:hi,B.tm_mon-1),3)},"%m":function(B){return E(B.tm_mon+1,2)},"%M":function(B){return E(B.tm_min,2)},"%n":function(){return`
3
+ `},"%p":function(B){return B.tm_hour>=0&&B.tm_hour<12?"AM":"PM"},"%S":function(B){return E(B.tm_sec,2)},"%t":function(){return" "},"%u":function(B){return B.tm_wday||7},"%U":function(B){var re=B.tm_yday+7-B.tm_wday;return E(Math.floor(re/7),2)},"%V":function(B){var re=Math.floor((B.tm_yday+7-(B.tm_wday+6)%7)/7);if((B.tm_wday+371-B.tm_yday-2)%7<=2&&re++,re){if(re==53){var Ke=(B.tm_wday+371-B.tm_yday)%7;Ke!=4&&(Ke!=3||!ar(B.tm_year))&&(re=1)}}else{re=52;var Me=(B.tm_wday+7-B.tm_yday-1)%7;(Me==4||Me==5&&ar(B.tm_year%400-1))&&re++}return E(re,2)},"%w":function(B){return B.tm_wday},"%W":function(B){var re=B.tm_yday+7-(B.tm_wday+6)%7;return E(Math.floor(re/7),2)},"%y":function(B){return(B.tm_year+1900).toString().substring(2)},"%Y":function(B){return B.tm_year+1900},"%z":function(B){var re=B.tm_gmtoff,Me=re>=0;return re=Math.abs(re)/60,re=re/60*100+re%60,(Me?"+":"-")+String("0000"+re).slice(-4)},"%Z":function(B){return B.tm_zone},"%%":function(){return"%"}};c=c.replace(/%%/g,"\0\0");for(var _ in je)c.includes(_)&&(c=c.replace(new RegExp(_,"g"),je[_](l)));c=c.replace(/\0\0/g,"%");var Be=Aa(c,!1);return Be.length>n?0:(Qe(Be,i),Be.length-1)}function Ea(i,n,a,s){return Sa(i,n,a,s)}function Aa(i,n,a){var s=a>0?a:bt(i)+1,o=new Array(s),l=_t(i,o,0,o.length);return n&&(o.length=l),o}var Ra={p:pn,j:ti,C:ri,G:ii,b:hn,n:mn,J:vn,_:gn,i:er,fa:bn,w:jn,F:ni,e:yn,Ba:wn,Da:Cn,Ca:Sn,va:En,T:li,Oa:An,ve:Rn,Ka:Tn,xa:Dn,Aa:Pn,Qa:xn,La:On,Pa:Fn,Ma:Nn,ma:Mn,ya:In,Te:Bn,ka:Ln,za:Un,ja:Hn,Na:qn,la:Wn,Fa:$n,Ha:_i,Ga:Dr,Sa:Gn,Ra:Vn,ba:Pr,Le:Yn,Me:qt,Je:Qn,Ke:zn,ta:Xn,He:Jn,Oe:Zn,Ie:ea,Pe:ta,ha:ra,Ne:ia,ua:na,Ge:aa,sa:ir,Qe:sa,Ta:Wt,oe:xr,nb:di,hd:oa,Va:la,Wa:Qo,Y:ca,ue:fa,rb:_a,oa:da,De:pa,Ue:ya,ga:ha,a:ma,Ea:va,Ja:nr,wa:ba,qa:Ey,P:dy,X:Up,Cd:Eh,ra:Sy,Z:_y,pa:Lp,Dd:Sh,x:Vp,da:ly,t:ny,$:oy,ea:uy,u:iy,d:xp,ca:gy,O:my,mc:Um,c:Op,W:vy,h:Np,ic:$m,m:Bp,na:ey,o:Mp,y:Qp,A:$p,Q:sy,U:ay,cb:Gp,z:zp,B:Kp,L:jy,r:hy,Nc:pm,Yc:im,$c:em,ed:Qh,Oc:dm,jc:Wm,Bd:Ah,Zc:rm,fd:Yh,ab:Qv,ze:xy,Td:lh,ec:Ym,Rc:cm,ye:Oy,sc:Fm,Pb:fv,Ya:Zv,Xa:eg,Ud:uh,Sd:ch,xb:Tv,Xb:iv,de:Xy,nd:Hh,tc:Om,hc:Gm,ke:$y,Yd:nh,Hd:jh,fc:Vm,Ub:sv,Xd:ah,pb:Mv,Zd:ih,qe:Ly,Vd:oh,Ob:_v,kc:qm,lc:Hm,zb:Av,jb:Hv,$a:zv,xe:Fy,ce:Jy,_b:ev,wb:Dv,$b:Zm,kb:Uv,Ab:Ev,Wd:sh,ac:Jm,dc:Qm,cc:zm,bc:Xm,Xc:nm,cd:Xh,Fc:wm,he:Vy,Cc:Sm,gd:Vh,be:Zy,se:Iy,ld:Wh,kd:$h,Ce:Ty,Be:Dy,Pd:dh,Fe:Ay,qd:Bh,jd:Gh,Pc:_m,od:Uh,yd:Dh,pc:Im,Sc:lm,Id:bh,Jc:vm,Qb:cv,zd:Th,xd:Ph,Gc:jm,Uc:om,wc:Pm,Lc:hm,Gd:wh,Ad:Rh,Dc:Cm,Lb:yv,Za:Jv,Ic:gm,Hc:bm,Jb:mv,md:qh,Bb:Sv,Kc:mm,yc:Tm,Cb:Cv,Db:kv,xc:Dm,v:Dp,k:Fp,D:fy,tb:Ov,K:cy,ub:xv,f:Pp,R:qp,V:wy,uc:Hp,g:Wp,l:Ip,Se:ky,s:ry,q:Zp,ia:by,E:Yp,N:ty,S:yy,M:Xp,Re:Cy,Ia:py,aa:Jp,pd:Lh,sb:Fv,Qc:fm,Ac:Am,wd:xh,dd:zh,nc:Lm,mb:Bv,me:qy,Jd:gh,Yb:rv,hb:Wv,Vc:sm,Wc:am,zc:Rm,Vb:av,Hb:gv,qc:Mm,oc:Bm,vd:Oh,le:Wy,id:Kh,Fd:kh,Wb:nv,td:Nh,_d:rh,_a:Xv,$d:th,lb:Lv,fe:Qy,ae:eh,rc:Nm,rd:Ih,Nd:yh,ie:Ky,ib:qv,te:My,we:Ny,Ae:Py,Md:hh,gb:$v,Kd:vh,Eb:wv,ud:Fh,Mb:pv,Ib:vv,Rb:lv,ob:Iv,Od:ph,fb:Gv,sd:Mh,Tc:um,Ee:Ry,pe:Uy,Nb:dv,ee:zy,_c:tm,ne:Hy,ge:Yy,gc:Km,Rd:fh,Qd:_h,Kb:hv,vb:Pv,Gb:bv,Mc:ym,bd:Jh,je:Gy,eb:Kv,Ld:mh,qb:Nv,Ed:Ch,vc:xm,bb:Yv,db:Vv,ad:Zh,re:By,Tb:ov,yb:Rv,Bc:Em,Ec:km,Fb:jv,Zb:tv,Sb:uv,I:ja,H:wa,Ua:Ea},zo=ei(),Ta=e.___wasm_call_ctors=function(){return(Ta=e.___wasm_call_ctors=e.asm.We).apply(null,arguments)},Da=e._main=function(){return(Da=e._main=e.asm.Xe).apply(null,arguments)},Pa=e._duckdb_web_fs_glob_add_path=function(){return(Pa=e._duckdb_web_fs_glob_add_path=e.asm.Ye).apply(null,arguments)},xa=e._duckdb_web_clear_response=function(){return(xa=e._duckdb_web_clear_response=e.asm.Ze).apply(null,arguments)},Oa=e._duckdb_web_fail_with=function(){return(Oa=e._duckdb_web_fail_with=e.asm._e).apply(null,arguments)},Fa=e._duckdb_web_reset=function(){return(Fa=e._duckdb_web_reset=e.asm.$e).apply(null,arguments)},Na=e._duckdb_web_connect=function(){return(Na=e._duckdb_web_connect=e.asm.af).apply(null,arguments)},Ma=e._duckdb_web_disconnect=function(){return(Ma=e._duckdb_web_disconnect=e.asm.bf).apply(null,arguments)},Ia=e._duckdb_web_flush_files=function(){return(Ia=e._duckdb_web_flush_files=e.asm.cf).apply(null,arguments)},Ba=e._duckdb_web_flush_file=function(){return(Ba=e._duckdb_web_flush_file=e.asm.df).apply(null,arguments)},La=e._duckdb_web_open=function(){return(La=e._duckdb_web_open=e.asm.ef).apply(null,arguments)},Ua=e._duckdb_web_get_global_file_info=function(){return(Ua=e._duckdb_web_get_global_file_info=e.asm.ff).apply(null,arguments)},Ha=e._duckdb_web_collect_file_stats=function(){return(Ha=e._duckdb_web_collect_file_stats=e.asm.gf).apply(null,arguments)},qa=e._duckdb_web_export_file_stats=function(){return(qa=e._duckdb_web_export_file_stats=e.asm.hf).apply(null,arguments)},Wa=e._duckdb_web_fs_drop_file=function(){return(Wa=e._duckdb_web_fs_drop_file=e.asm.jf).apply(null,arguments)},$a=e._duckdb_web_fs_drop_files=function(){return($a=e._duckdb_web_fs_drop_files=e.asm.kf).apply(null,arguments)},Ga=e._duckdb_web_fs_glob_file_infos=function(){return(Ga=e._duckdb_web_fs_glob_file_infos=e.asm.lf).apply(null,arguments)},sr=e._duckdb_web_fs_get_file_info_by_id=function(){return(sr=e._duckdb_web_fs_get_file_info_by_id=e.asm.mf).apply(null,arguments)},or=e._duckdb_web_fs_get_file_info_by_name=function(){return(or=e._duckdb_web_fs_get_file_info_by_name=e.asm.nf).apply(null,arguments)},Fr=e._duckdb_web_fs_set_file_descriptor=function(){return(Fr=e._duckdb_web_fs_set_file_descriptor=e.asm.of).apply(null,arguments)},Nr=e._duckdb_web_fs_register_file_url=function(){return(Nr=e._duckdb_web_fs_register_file_url=e.asm.pf).apply(null,arguments)},Ka=e._duckdb_web_fs_register_file_buffer=function(){return(Ka=e._duckdb_web_fs_register_file_buffer=e.asm.qf).apply(null,arguments)},mi=e._duckdb_web_copy_file_to_buffer=function(){return(mi=e._duckdb_web_copy_file_to_buffer=e.asm.rf).apply(null,arguments)},vi=e._duckdb_web_copy_file_to_path=function(){return(vi=e._duckdb_web_copy_file_to_path=e.asm.sf).apply(null,arguments)},Mr=e._duckdb_web_get_version=function(){return(Mr=e._duckdb_web_get_version=e.asm.tf).apply(null,arguments)},ur=e._duckdb_web_get_feature_flags=function(){return(ur=e._duckdb_web_get_feature_flags=e.asm.uf).apply(null,arguments)},lr=e._duckdb_web_tokenize=function(){return(lr=e._duckdb_web_tokenize=e.asm.vf).apply(null,arguments)},Va=e._duckdb_web_udf_scalar_create=function(){return(Va=e._duckdb_web_udf_scalar_create=e.asm.wf).apply(null,arguments)},Ya=e._duckdb_web_prepared_create=function(){return(Ya=e._duckdb_web_prepared_create=e.asm.xf).apply(null,arguments)},Ir=e._duckdb_web_prepared_close=function(){return(Ir=e._duckdb_web_prepared_close=e.asm.yf).apply(null,arguments)},Qa=e._duckdb_web_prepared_run=function(){return(Qa=e._duckdb_web_prepared_run=e.asm.zf).apply(null,arguments)},za=e._duckdb_web_prepared_send=function(){return(za=e._duckdb_web_prepared_send=e.asm.Af).apply(null,arguments)},gi=e._duckdb_web_query_run=function(){return(gi=e._duckdb_web_query_run=e.asm.Bf).apply(null,arguments)},h=e._duckdb_web_pending_query_start=function(){return(h=e._duckdb_web_pending_query_start=e.asm.Cf).apply(null,arguments)},g=e._duckdb_web_pending_query_poll=function(){return(g=e._duckdb_web_pending_query_poll=e.asm.Df).apply(null,arguments)},C=e._duckdb_web_pending_query_cancel=function(){return(C=e._duckdb_web_pending_query_cancel=e.asm.Ef).apply(null,arguments)},T=e._duckdb_web_query_fetch_results=function(){return(T=e._duckdb_web_query_fetch_results=e.asm.Ff).apply(null,arguments)},M=e._duckdb_web_get_tablenames=function(){return(M=e._duckdb_web_get_tablenames=e.asm.Gf).apply(null,arguments)},X=e._duckdb_web_insert_arrow_from_ipc_stream=function(){return(X=e._duckdb_web_insert_arrow_from_ipc_stream=e.asm.Hf).apply(null,arguments)},G=e._duckdb_web_insert_csv_from_path=function(){return(G=e._duckdb_web_insert_csv_from_path=e.asm.If).apply(null,arguments)},q=e._duckdb_web_insert_json_from_path=function(){return(q=e._duckdb_web_insert_json_from_path=e.asm.Jf).apply(null,arguments)},Z=e._htonl=function(){return(Z=e._htonl=e.asm.Kf).apply(null,arguments)},ye=e._htons=function(){return(ye=e._htons=e.asm.Lf).apply(null,arguments)},ge=e._ntohs=function(){return(ge=e._ntohs=e.asm.Mf).apply(null,arguments)},Ge=e._malloc=function(){return(Ge=e._malloc=e.asm.Nf).apply(null,arguments)},Se=e._free=function(){return(Se=e._free=e.asm.Of).apply(null,arguments)},w=e._setThrew=function(){return(w=e._setThrew=e.asm.Pf).apply(null,arguments)},b=e.stackSave=function(){return(b=e.stackSave=e.asm.Qf).apply(null,arguments)},j=e.stackRestore=function(){return(j=e.stackRestore=e.asm.Rf).apply(null,arguments)},it=e.stackAlloc=function(){return(it=e.stackAlloc=e.asm.Sf).apply(null,arguments)},ft=e.___cxa_can_catch=function(){return(ft=e.___cxa_can_catch=e.asm.Tf).apply(null,arguments)},U=e.___cxa_is_pointer_type=function(){return(U=e.___cxa_is_pointer_type=e.asm.Uf).apply(null,arguments)},ne=e.dynCall_jiiii=function(){return(ne=e.dynCall_jiiii=e.asm.Wf).apply(null,arguments)},Te=e.dynCall_iiiiij=function(){return(Te=e.dynCall_iiiiij=e.asm.Xf).apply(null,arguments)},Ue=e.dynCall_iiiiijj=function(){return(Ue=e.dynCall_iiiiijj=e.asm.Yf).apply(null,arguments)},Gt=e.dynCall_viijii=function(){return(Gt=e.dynCall_viijii=e.asm.Zf).apply(null,arguments)},bi=e.dynCall_j=function(){return(bi=e.dynCall_j=e.asm._f).apply(null,arguments)},Xo=e.dynCall_ji=function(){return(Xo=e.dynCall_ji=e.asm.$f).apply(null,arguments)},Jo=e.dynCall_iij=function(){return(Jo=e.dynCall_iij=e.asm.ag).apply(null,arguments)},Zo=e.dynCall_viij=function(){return(Zo=e.dynCall_viij=e.asm.bg).apply(null,arguments)},eu=e.dynCall_viijji=function(){return(eu=e.dynCall_viijji=e.asm.cg).apply(null,arguments)},tu=e.dynCall_viijj=function(){return(tu=e.dynCall_viijj=e.asm.dg).apply(null,arguments)},ru=e.dynCall_viiijj=function(){return(ru=e.dynCall_viiijj=e.asm.eg).apply(null,arguments)},iu=e.dynCall_viiji=function(){return(iu=e.dynCall_viiji=e.asm.fg).apply(null,arguments)},nu=e.dynCall_vijjj=function(){return(nu=e.dynCall_vijjj=e.asm.gg).apply(null,arguments)},au=e.dynCall_iiijj=function(){return(au=e.dynCall_iiijj=e.asm.hg).apply(null,arguments)},su=e.dynCall_viiij=function(){return(su=e.dynCall_viiij=e.asm.ig).apply(null,arguments)},ou=e.dynCall_viijij=function(){return(ou=e.dynCall_viijij=e.asm.jg).apply(null,arguments)},uu=e.dynCall_iiij=function(){return(uu=e.dynCall_iiij=e.asm.kg).apply(null,arguments)},lu=e.dynCall_vijijj=function(){return(lu=e.dynCall_vijijj=e.asm.lg).apply(null,arguments)},cu=e.dynCall_viiijjj=function(){return(cu=e.dynCall_viiijjj=e.asm.mg).apply(null,arguments)},fu=e.dynCall_iji=function(){return(fu=e.dynCall_iji=e.asm.ng).apply(null,arguments)},_u=e.dynCall_viji=function(){return(_u=e.dynCall_viji=e.asm.og).apply(null,arguments)},du=e.dynCall_vij=function(){return(du=e.dynCall_vij=e.asm.pg).apply(null,arguments)},pu=e.dynCall_viiiij=function(){return(pu=e.dynCall_viiiij=e.asm.qg).apply(null,arguments)},yu=e.dynCall_jii=function(){return(yu=e.dynCall_jii=e.asm.rg).apply(null,arguments)},hu=e.dynCall_iiji=function(){return(hu=e.dynCall_iiji=e.asm.sg).apply(null,arguments)},mu=e.dynCall_iiiij=function(){return(mu=e.dynCall_iiiij=e.asm.tg).apply(null,arguments)},vu=e.dynCall_iiiiiji=function(){return(vu=e.dynCall_iiiiiji=e.asm.ug).apply(null,arguments)},gu=e.dynCall_iiiji=function(){return(gu=e.dynCall_iiiji=e.asm.vg).apply(null,arguments)},bu=e.dynCall_iiiiji=function(){return(bu=e.dynCall_iiiiji=e.asm.wg).apply(null,arguments)},ju=e.dynCall_jiii=function(){return(ju=e.dynCall_jiii=e.asm.xg).apply(null,arguments)},wu=e.dynCall_jij=function(){return(wu=e.dynCall_jij=e.asm.yg).apply(null,arguments)},ku=e.dynCall_viijiiiii=function(){return(ku=e.dynCall_viijiiiii=e.asm.zg).apply(null,arguments)},Cu=e.dynCall_iiijii=function(){return(Cu=e.dynCall_iiijii=e.asm.Ag).apply(null,arguments)},Su=e.dynCall_jiijii=function(){return(Su=e.dynCall_jiijii=e.asm.Bg).apply(null,arguments)},Eu=e.dynCall_viiijii=function(){return(Eu=e.dynCall_viiijii=e.asm.Cg).apply(null,arguments)},Au=e.dynCall_fiijii=function(){return(Au=e.dynCall_fiijii=e.asm.Dg).apply(null,arguments)},Ru=e.dynCall_diijii=function(){return(Ru=e.dynCall_diijii=e.asm.Eg).apply(null,arguments)},Tu=e.dynCall_iiiiiiijii=function(){return(Tu=e.dynCall_iiiiiiijii=e.asm.Fg).apply(null,arguments)},Du=e.dynCall_vijj=function(){return(Du=e.dynCall_vijj=e.asm.Gg).apply(null,arguments)},Pu=e.dynCall_jiiijii=function(){return(Pu=e.dynCall_jiiijii=e.asm.Hg).apply(null,arguments)},xu=e.dynCall_jiijiii=function(){return(xu=e.dynCall_jiijiii=e.asm.Ig).apply(null,arguments)},Ou=e.dynCall_viiiiji=function(){return(Ou=e.dynCall_viiiiji=e.asm.Jg).apply(null,arguments)},Fu=e.dynCall_jiiiijii=function(){return(Fu=e.dynCall_jiiiijii=e.asm.Kg).apply(null,arguments)},Nu=e.dynCall_jiiiiijiiii=function(){return(Nu=e.dynCall_jiiiiijiiii=e.asm.Lg).apply(null,arguments)},Mu=e.dynCall_jiiijiii=function(){return(Mu=e.dynCall_jiiijiii=e.asm.Mg).apply(null,arguments)},Iu=e.dynCall_viiiiijiiii=function(){return(Iu=e.dynCall_viiiiijiiii=e.asm.Ng).apply(null,arguments)},Bu=e.dynCall_viiijjij=function(){return(Bu=e.dynCall_viiijjij=e.asm.Og).apply(null,arguments)},Lu=e.dynCall_viijiii=function(){return(Lu=e.dynCall_viijiii=e.asm.Pg).apply(null,arguments)},Uu=e.dynCall_vijijjiij=function(){return(Uu=e.dynCall_vijijjiij=e.asm.Qg).apply(null,arguments)},Hu=e.dynCall_viiijjiij=function(){return(Hu=e.dynCall_viiijjiij=e.asm.Rg).apply(null,arguments)},qu=e.dynCall_viiiijjjj=function(){return(qu=e.dynCall_viiiijjjj=e.asm.Sg).apply(null,arguments)},Wu=e.dynCall_viijiiiiij=function(){return(Wu=e.dynCall_viijiiiiij=e.asm.Tg).apply(null,arguments)},$u=e.dynCall_viiijiiiijjj=function(){return($u=e.dynCall_viiijiiiijjj=e.asm.Ug).apply(null,arguments)},Gu=e.dynCall_viijijiiiijjj=function(){return(Gu=e.dynCall_viijijiiiijjj=e.asm.Vg).apply(null,arguments)},Ku=e.dynCall_jj=function(){return(Ku=e.dynCall_jj=e.asm.Wg).apply(null,arguments)},Vu=e.dynCall_jd=function(){return(Vu=e.dynCall_jd=e.asm.Xg).apply(null,arguments)},Yu=e.dynCall_jf=function(){return(Yu=e.dynCall_jf=e.asm.Yg).apply(null,arguments)},Qu=e.dynCall_iijjj=function(){return(Qu=e.dynCall_iijjj=e.asm.Zg).apply(null,arguments)},zu=e.dynCall_iiijji=function(){return(zu=e.dynCall_iiijji=e.asm._g).apply(null,arguments)},Xu=e.dynCall_vijijiiiijjj=function(){return(Xu=e.dynCall_vijijiiiijjj=e.asm.$g).apply(null,arguments)},Ju=e.dynCall_viiiiiij=function(){return(Ju=e.dynCall_viiiiiij=e.asm.ah).apply(null,arguments)},Zu=e.dynCall_iiiiiiji=function(){return(Zu=e.dynCall_iiiiiiji=e.asm.bh).apply(null,arguments)},el=e.dynCall_iiiiiiiiji=function(){return(el=e.dynCall_iiiiiiiiji=e.asm.ch).apply(null,arguments)},tl=e.dynCall_viiiiijj=function(){return(tl=e.dynCall_viiiiijj=e.asm.dh).apply(null,arguments)},rl=e.dynCall_vijiii=function(){return(rl=e.dynCall_vijiii=e.asm.eh).apply(null,arguments)},il=e.dynCall_viijjj=function(){return(il=e.dynCall_viijjj=e.asm.fh).apply(null,arguments)},nl=e.dynCall_vijjij=function(){return(nl=e.dynCall_vijjij=e.asm.gh).apply(null,arguments)},al=e.dynCall_jiiiii=function(){return(al=e.dynCall_jiiiii=e.asm.hh).apply(null,arguments)},sl=e.dynCall_viijjji=function(){return(sl=e.dynCall_viijjji=e.asm.ih).apply(null,arguments)},ol=e.dynCall_vijiiii=function(){return(ol=e.dynCall_vijiiii=e.asm.jh).apply(null,arguments)},ul=e.dynCall_iijjijj=function(){return(ul=e.dynCall_iijjijj=e.asm.kh).apply(null,arguments)},ll=e.dynCall_viiiijiiiii=function(){return(ll=e.dynCall_viiiijiiiii=e.asm.lh).apply(null,arguments)},cl=e.dynCall_viiiijiiii=function(){return(cl=e.dynCall_viiiijiiii=e.asm.mh).apply(null,arguments)},fl=e.dynCall_iiiiiij=function(){return(fl=e.dynCall_iiiiiij=e.asm.nh).apply(null,arguments)},_l=e.dynCall_iiiiiiiiiiji=function(){return(_l=e.dynCall_iiiiiiiiiiji=e.asm.oh).apply(null,arguments)},dl=e.dynCall_iiiiiiiij=function(){return(dl=e.dynCall_iiiiiiiij=e.asm.ph).apply(null,arguments)},pl=e.dynCall_jiiijjj=function(){return(pl=e.dynCall_jiiijjj=e.asm.qh).apply(null,arguments)},yl=e.dynCall_viijijj=function(){return(yl=e.dynCall_viijijj=e.asm.rh).apply(null,arguments)},hl=e.dynCall_jiiiiji=function(){return(hl=e.dynCall_jiiiiji=e.asm.sh).apply(null,arguments)},ml=e.dynCall_iiiiijij=function(){return(ml=e.dynCall_iiiiijij=e.asm.th).apply(null,arguments)},vl=e.dynCall_viiiiiji=function(){return(vl=e.dynCall_viiiiiji=e.asm.uh).apply(null,arguments)},gl=e.dynCall_jiiiiiii=function(){return(gl=e.dynCall_jiiiiiii=e.asm.vh).apply(null,arguments)},bl=e.dynCall_vijiji=function(){return(bl=e.dynCall_vijiji=e.asm.wh).apply(null,arguments)},jl=e.dynCall_jiiiij=function(){return(jl=e.dynCall_jiiiij=e.asm.xh).apply(null,arguments)},wl=e.dynCall_jijjij=function(){return(wl=e.dynCall_jijjij=e.asm.yh).apply(null,arguments)},kl=e.dynCall_viiiijiiiiiiii=function(){return(kl=e.dynCall_viiiijiiiiiiii=e.asm.zh).apply(null,arguments)},Cl=e.dynCall_ij=function(){return(Cl=e.dynCall_ij=e.asm.Ah).apply(null,arguments)},Sl=e.dynCall_jjj=function(){return(Sl=e.dynCall_jjj=e.asm.Bh).apply(null,arguments)},El=e.dynCall_jiiji=function(){return(El=e.dynCall_jiiji=e.asm.Ch).apply(null,arguments)},Al=e.dynCall_jjiji=function(){return(Al=e.dynCall_jjiji=e.asm.Dh).apply(null,arguments)},Rl=e.dynCall_jiiij=function(){return(Rl=e.dynCall_jiiij=e.asm.Eh).apply(null,arguments)},Tl=e.dynCall_jijij=function(){return(Tl=e.dynCall_jijij=e.asm.Fh).apply(null,arguments)},Dl=e.dynCall_jijj=function(){return(Dl=e.dynCall_jijj=e.asm.Gh).apply(null,arguments)},Pl=e.dynCall_jiiijj=function(){return(Pl=e.dynCall_jiiijj=e.asm.Hh).apply(null,arguments)},xl=e.dynCall_vjii=function(){return(xl=e.dynCall_vjii=e.asm.Ih).apply(null,arguments)},Ol=e.dynCall_jjjjjjd=function(){return(Ol=e.dynCall_jjjjjjd=e.asm.Jh).apply(null,arguments)},Fl=e.dynCall_viiiji=function(){return(Fl=e.dynCall_viiiji=e.asm.Kh).apply(null,arguments)},Nl=e.dynCall_ijii=function(){return(Nl=e.dynCall_ijii=e.asm.Lh).apply(null,arguments)},Ml=e.dynCall_vjiiii=function(){return(Ml=e.dynCall_vjiiii=e.asm.Mh).apply(null,arguments)},Il=e.dynCall_viiiiijiii=function(){return(Il=e.dynCall_viiiiijiii=e.asm.Nh).apply(null,arguments)},Bl=e.dynCall_jiij=function(){return(Bl=e.dynCall_jiij=e.asm.Oh).apply(null,arguments)},Ll=e.dynCall_vijji=function(){return(Ll=e.dynCall_vijji=e.asm.Ph).apply(null,arguments)},Ul=e.dynCall_iiiijjii=function(){return(Ul=e.dynCall_iiiijjii=e.asm.Qh).apply(null,arguments)},Hl=e.dynCall_iiiiijji=function(){return(Hl=e.dynCall_iiiiijji=e.asm.Rh).apply(null,arguments)},ql=e.dynCall_viiijjii=function(){return(ql=e.dynCall_viiijjii=e.asm.Sh).apply(null,arguments)},Wl=e.dynCall_viiiijji=function(){return(Wl=e.dynCall_viiiijji=e.asm.Th).apply(null,arguments)},$l=e.dynCall_viiiijjii=function(){return($l=e.dynCall_viiiijjii=e.asm.Uh).apply(null,arguments)},Gl=e.dynCall_viiiiijji=function(){return(Gl=e.dynCall_viiiiijji=e.asm.Vh).apply(null,arguments)},Kl=e.dynCall_iidj=function(){return(Kl=e.dynCall_iidj=e.asm.Wh).apply(null,arguments)},Vl=e.dynCall_ijji=function(){return(Vl=e.dynCall_ijji=e.asm.Xh).apply(null,arguments)},Yl=e.dynCall_iiiiiiij=function(){return(Yl=e.dynCall_iiiiiiij=e.asm.Yh).apply(null,arguments)},Ql=e.dynCall_iiiiiiiiiiiij=function(){return(Ql=e.dynCall_iiiiiiiiiiiij=e.asm.Zh).apply(null,arguments)},zl=e.dynCall_iiijjiiji=function(){return(zl=e.dynCall_iiijjiiji=e.asm._h).apply(null,arguments)},Xl=e.dynCall_iiijjiij=function(){return(Xl=e.dynCall_iiijjiij=e.asm.$h).apply(null,arguments)},Jl=e.dynCall_iiiiiiiji=function(){return(Jl=e.dynCall_iiiiiiiji=e.asm.ai).apply(null,arguments)},Zl=e.dynCall_iiiidjj=function(){return(Zl=e.dynCall_iiiidjj=e.asm.bi).apply(null,arguments)},ec=e.dynCall_iiiijjj=function(){return(ec=e.dynCall_iiiijjj=e.asm.ci).apply(null,arguments)},tc=e.dynCall_vijii=function(){return(tc=e.dynCall_vijii=e.asm.di).apply(null,arguments)},rc=e.dynCall_jiiiiiijii=function(){return(rc=e.dynCall_jiiiiiijii=e.asm.ei).apply(null,arguments)},ic=e.dynCall_iiiijji=function(){return(ic=e.dynCall_iiiijji=e.asm.fi).apply(null,arguments)},nc=e.dynCall_viiijji=function(){return(nc=e.dynCall_viiijji=e.asm.gi).apply(null,arguments)},ac=e.dynCall_jiiiiii=function(){return(ac=e.dynCall_jiiiiii=e.asm.hi).apply(null,arguments)},sc=e.dynCall_iiijiii=function(){return(sc=e.dynCall_iiijiii=e.asm.ii).apply(null,arguments)},oc=e.dynCall_iiiiijii=function(){return(oc=e.dynCall_iiiiijii=e.asm.ji).apply(null,arguments)},uc=e.dynCall_iiijiij=function(){return(uc=e.dynCall_iiijiij=e.asm.ki).apply(null,arguments)},lc=e.dynCall_iijjii=function(){return(lc=e.dynCall_iijjii=e.asm.li).apply(null,arguments)},cc=e.dynCall_iijjiii=function(){return(cc=e.dynCall_iijjiii=e.asm.mi).apply(null,arguments)},fc=e.dynCall_iijjiiii=function(){return(fc=e.dynCall_iijjiiii=e.asm.ni).apply(null,arguments)},_c=e.dynCall_iijji=function(){return(_c=e.dynCall_iijji=e.asm.oi).apply(null,arguments)},dc=e.dynCall_iijiiii=function(){return(dc=e.dynCall_iijiiii=e.asm.pi).apply(null,arguments)},pc=e.dynCall_iijii=function(){return(pc=e.dynCall_iijii=e.asm.qi).apply(null,arguments)},yc=e.dynCall_vjjii=function(){return(yc=e.dynCall_vjjii=e.asm.ri).apply(null,arguments)},hc=e.dynCall_viiiijii=function(){return(hc=e.dynCall_viiiijii=e.asm.si).apply(null,arguments)},mc=e.dynCall_iiiijiii=function(){return(mc=e.dynCall_iiiijiii=e.asm.ti).apply(null,arguments)},vc=e.dynCall_iiijij=function(){return(vc=e.dynCall_iiijij=e.asm.ui).apply(null,arguments)},gc=e.dynCall_iijj=function(){return(gc=e.dynCall_iijj=e.asm.vi).apply(null,arguments)},bc=e.dynCall_iiiijj=function(){return(bc=e.dynCall_iiiijj=e.asm.wi).apply(null,arguments)},jc=e.dynCall_viiijiii=function(){return(jc=e.dynCall_viiijiii=e.asm.xi).apply(null,arguments)},wc=e.dynCall_viiiijij=function(){return(wc=e.dynCall_viiiijij=e.asm.yi).apply(null,arguments)},kc=e.dynCall_iiijiiii=function(){return(kc=e.dynCall_iiijiiii=e.asm.zi).apply(null,arguments)},Cc=e.dynCall_iiiiijjiijj=function(){return(Cc=e.dynCall_iiiiijjiijj=e.asm.Ai).apply(null,arguments)},Sc=e.dynCall_viijiiji=function(){return(Sc=e.dynCall_viijiiji=e.asm.Bi).apply(null,arguments)},Ec=e.dynCall_iiijjii=function(){return(Ec=e.dynCall_iiijjii=e.asm.Ci).apply(null,arguments)},Ac=e.dynCall_vjjijij=function(){return(Ac=e.dynCall_vjjijij=e.asm.Di).apply(null,arguments)},Rc=e.dynCall_vijjji=function(){return(Rc=e.dynCall_vijjji=e.asm.Ei).apply(null,arguments)},Tc=e.dynCall_jiiiji=function(){return(Tc=e.dynCall_jiiiji=e.asm.Fi).apply(null,arguments)},Dc=e.dynCall_viijjii=function(){return(Dc=e.dynCall_viijjii=e.asm.Gi).apply(null,arguments)},Pc=e.dynCall_viiiijj=function(){return(Pc=e.dynCall_viiiijj=e.asm.Hi).apply(null,arguments)},xc=e.dynCall_jijiii=function(){return(xc=e.dynCall_jijiii=e.asm.Ii).apply(null,arguments)},Oc=e.dynCall_viijiiij=function(){return(Oc=e.dynCall_viijiiij=e.asm.Ji).apply(null,arguments)},Fc=e.dynCall_vijiiiji=function(){return(Fc=e.dynCall_vijiiiji=e.asm.Ki).apply(null,arguments)},Nc=e.dynCall_viiijij=function(){return(Nc=e.dynCall_viiijij=e.asm.Li).apply(null,arguments)},Mc=e.dynCall_viijiij=function(){return(Mc=e.dynCall_viijiij=e.asm.Mi).apply(null,arguments)},Ic=e.dynCall_vijij=function(){return(Ic=e.dynCall_vijij=e.asm.Ni).apply(null,arguments)},Bc=e.dynCall_vjiiiji=function(){return(Bc=e.dynCall_vjiiiji=e.asm.Oi).apply(null,arguments)},Lc=e.dynCall_viijiiiiii=function(){return(Lc=e.dynCall_viijiiiiii=e.asm.Pi).apply(null,arguments)},Uc=e.dynCall_jjjji=function(){return(Uc=e.dynCall_jjjji=e.asm.Qi).apply(null,arguments)},Hc=e.dynCall_jjjii=function(){return(Hc=e.dynCall_jjjii=e.asm.Ri).apply(null,arguments)},qc=e.dynCall_jji=function(){return(qc=e.dynCall_jji=e.asm.Si).apply(null,arguments)},Wc=e.dynCall_iijiji=function(){return(Wc=e.dynCall_iijiji=e.asm.Ti).apply(null,arguments)},$c=e.dynCall_viiijijiji=function(){return($c=e.dynCall_viiijijiji=e.asm.Ui).apply(null,arguments)},Gc=e.dynCall_iiijjj=function(){return(Gc=e.dynCall_iiijjj=e.asm.Vi).apply(null,arguments)},Kc=e.dynCall_vj=function(){return(Kc=e.dynCall_vj=e.asm.Wi).apply(null,arguments)},Vc=e.dynCall_iiiijii=function(){return(Vc=e.dynCall_iiiijii=e.asm.Xi).apply(null,arguments)},Yc=e.dynCall_iijiii=function(){return(Yc=e.dynCall_iijiii=e.asm.Yi).apply(null,arguments)},Qc=e.dynCall_vijiijj=function(){return(Qc=e.dynCall_vijiijj=e.asm.Zi).apply(null,arguments)},zc=e.dynCall_vifiijj=function(){return(zc=e.dynCall_vifiijj=e.asm._i).apply(null,arguments)},Xc=e.dynCall_vidiijj=function(){return(Xc=e.dynCall_vidiijj=e.asm.$i).apply(null,arguments)},Jc=e.dynCall_viiiiij=function(){return(Jc=e.dynCall_viiiiij=e.asm.aj).apply(null,arguments)},Zc=e.dynCall_ijjiii=function(){return(Zc=e.dynCall_ijjiii=e.asm.bj).apply(null,arguments)},ef=e.dynCall_vijijjji=function(){return(ef=e.dynCall_vijijjji=e.asm.cj).apply(null,arguments)},tf=e.dynCall_viijiijj=function(){return(tf=e.dynCall_viijiijj=e.asm.dj).apply(null,arguments)},rf=e.dynCall_viiiiijjji=function(){return(rf=e.dynCall_viiiiijjji=e.asm.ej).apply(null,arguments)},nf=e.dynCall_iiijiijj=function(){return(nf=e.dynCall_iiijiijj=e.asm.fj).apply(null,arguments)},af=e.dynCall_viiijijjj=function(){return(af=e.dynCall_viiijijjj=e.asm.gj).apply(null,arguments)},sf=e.dynCall_iijiijj=function(){return(sf=e.dynCall_iijiijj=e.asm.hj).apply(null,arguments)},of=e.dynCall_viiijjjji=function(){return(of=e.dynCall_viiijjjji=e.asm.ij).apply(null,arguments)},uf=e.dynCall_viiiijiii=function(){return(uf=e.dynCall_viiiijiii=e.asm.jj).apply(null,arguments)},lf=e.dynCall_viijiiii=function(){return(lf=e.dynCall_viijiiii=e.asm.kj).apply(null,arguments)},cf=e.dynCall_vijjiiii=function(){return(cf=e.dynCall_vijjiiii=e.asm.lj).apply(null,arguments)},ff=e.dynCall_vijijjiiiii=function(){return(ff=e.dynCall_vijijjiiiii=e.asm.mj).apply(null,arguments)},_f=e.dynCall_vijjiiiii=function(){return(_f=e.dynCall_vijjiiiii=e.asm.nj).apply(null,arguments)},df=e.dynCall_iiijjji=function(){return(df=e.dynCall_iiijjji=e.asm.oj).apply(null,arguments)},pf=e.dynCall_iiiiiijji=function(){return(pf=e.dynCall_iiiiiijji=e.asm.pj).apply(null,arguments)},yf=e.dynCall_iiiiijjj=function(){return(yf=e.dynCall_iiiiijjj=e.asm.qj).apply(null,arguments)},hf=e.dynCall_jijiiii=function(){return(hf=e.dynCall_jijiiii=e.asm.rj).apply(null,arguments)},mf=e.dynCall_viiijiji=function(){return(mf=e.dynCall_viiijiji=e.asm.sj).apply(null,arguments)},vf=e.dynCall_iiijjjii=function(){return(vf=e.dynCall_iiijjjii=e.asm.tj).apply(null,arguments)},gf=e.dynCall_iiiiijjji=function(){return(gf=e.dynCall_iiiiijjji=e.asm.uj).apply(null,arguments)},bf=e.dynCall_viijiji=function(){return(bf=e.dynCall_viijiji=e.asm.vj).apply(null,arguments)};function Dp(i){var n=b();try{Q(i)()}catch(a){if(j(n),a!==a+0)throw a;w(1,0)}}function Pp(i,n,a){var s=b();try{Q(i)(n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function xp(i,n){var a=b();try{return Q(i)(n)}catch(s){if(j(a),s!==s+0)throw s;w(1,0)}}function Op(i,n,a){var s=b();try{return Q(i)(n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function Fp(i,n){var a=b();try{Q(i)(n)}catch(s){if(j(a),s!==s+0)throw s;w(1,0)}}function Np(i,n,a,s){var o=b();try{return Q(i)(n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function Mp(i,n,a,s,o,l){var c=b();try{return Q(i)(n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function Ip(i,n,a,s,o){var l=b();try{Q(i)(n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Bp(i,n,a,s,o){var l=b();try{return Q(i)(n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Lp(i,n,a,s){var o=b();try{return Q(i)(n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function Up(i,n,a,s){var o=b();try{return Q(i)(n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function Hp(i,n,a,s){var o=b();try{Q(i)(n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function qp(i,n,a,s){var o=b();try{Q(i)(n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function Wp(i,n,a,s){var o=b();try{Q(i)(n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function $p(i,n,a,s,o,l,c,f){var _=b();try{return Q(i)(n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Gp(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return Q(i)(n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Kp(i,n,a,s,o,l,c,f,_,p,m,k,E){var H=b();try{return Q(i)(n,a,s,o,l,c,f,_,p,m,k,E)}catch(Y){if(j(H),Y!==Y+0)throw Y;w(1,0)}}function Vp(i){var n=b();try{return Q(i)()}catch(a){if(j(n),a!==a+0)throw a;w(1,0)}}function Yp(i,n,a,s,o,l,c,f){var _=b();try{Q(i)(n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Qp(i,n,a,s,o,l,c){var f=b();try{return Q(i)(n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function zp(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{return Q(i)(n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function Xp(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{Q(i)(n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Jp(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de){var je=b();try{Q(i)(n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de)}catch(Be){if(j(je),Be!==Be+0)throw Be;w(1,0)}}function Zp(i,n,a,s,o,l,c){var f=b();try{Q(i)(n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function ey(i,n,a,s,o,l){var c=b();try{return Q(i)(n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function ty(i,n,a,s,o,l,c,f,_){var p=b();try{Q(i)(n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function ry(i,n,a,s,o,l){var c=b();try{Q(i)(n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function iy(i,n,a){var s=b();try{return Q(i)(n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function ny(i,n,a){var s=b();try{return Q(i)(n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function ay(i,n,a,s,o,l,c,f,_,p){var m=b();try{return Q(i)(n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function sy(i,n,a,s,o,l,c,f,_){var p=b();try{return Q(i)(n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function oy(i,n,a,s,o){var l=b();try{return Q(i)(n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function uy(i,n){var a=b();try{return Q(i)(n)}catch(s){if(j(a),s!==s+0)throw s;w(1,0)}}function ly(i,n){var a=b();try{return Q(i)(n)}catch(s){if(j(a),s!==s+0)throw s;w(1,0)}}function cy(i,n,a){var s=b();try{Q(i)(n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function fy(i,n,a){var s=b();try{Q(i)(n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function _y(i,n){var a=b();try{return Q(i)(n)}catch(s){if(j(a),s!==s+0)throw s;w(1,0)}}function dy(i,n){var a=b();try{return Q(i)(n)}catch(s){if(j(a),s!==s+0)throw s;w(1,0)}}function py(i,n,a,s,o,l,c,f,_,p,m,k,E,H){var Y=b();try{Q(i)(n,a,s,o,l,c,f,_,p,m,k,E,H)}catch(de){if(j(Y),de!==de+0)throw de;w(1,0)}}function yy(i,n,a,s,o,l,c,f,_,p){var m=b();try{Q(i)(n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function hy(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de){var je=b();try{return Q(i)(n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de)}catch(Be){if(j(je),Be!==Be+0)throw Be;w(1,0)}}function my(i,n,a,s,o){var l=b();try{return Q(i)(n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function vy(i,n,a,s){var o=b();try{return Q(i)(n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function gy(i,n,a){var s=b();try{return Q(i)(n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function by(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{Q(i)(n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function jy(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y){var de=b();try{return Q(i)(n,a,s,o,l,c,f,_,p,m,k,E,H,Y)}catch(je){if(j(de),je!==je+0)throw je;w(1,0)}}function wy(i,n,a,s,o,l){var c=b();try{Q(i)(n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function ky(i,n,a,s,o,l,c,f,_,p){var m=b();try{Q(i)(n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Cy(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{Q(i)(n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function Sy(i){var n=b();try{return Q(i)()}catch(a){if(j(n),a!==a+0)throw a;w(1,0)}}function Ey(i){var n=b();try{return Q(i)()}catch(a){if(j(n),a!==a+0)throw a;w(1,0)}}function Ay(i,n,a,s,o){var l=b();try{return ne(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Ry(i,n,a,s,o,l,c){var f=b();try{tu(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Ty(i,n){var a=b();try{return Xo(i,n)}catch(s){if(j(a),s!==s+0)throw s;w(1,0)}}function Dy(i,n,a){var s=b();try{return yu(i,n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function Py(i,n,a,s,o,l,c){var f=b();try{Gt(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function xy(i,n,a,s,o,l,c){var f=b();try{return Te(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Oy(i,n,a,s,o,l,c,f,_){var p=b();try{return Ue(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Fy(i,n,a,s){var o=b();try{return Jo(i,n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function Ny(i,n,a,s,o,l){var c=b();try{iu(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function My(i,n,a,s,o){var l=b();try{Zo(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Iy(i){var n=b();try{return bi(i)}catch(a){if(j(n),a!==a+0)throw a;w(1,0)}}function By(i,n,a,s,o,l,c,f){var _=b();try{nu(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Ly(i,n,a,s,o,l,c){var f=b();try{return au(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Uy(i,n,a,s,o,l,c,f){var _=b();try{eu(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Hy(i,n,a,s){var o=b();try{du(i,n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function qy(i,n,a,s,o,l,c){var f=b();try{pu(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Wy(i,n,a,s,o,l){var c=b();try{su(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function $y(i,n,a,s,o){var l=b();try{return uu(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Gy(i,n,a,s,o,l,c,f,_){var p=b();try{lu(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Ky(i,n,a,s,o,l,c,f,_,p){var m=b();try{cu(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Vy(i,n,a,s){var o=b();try{return fu(i,n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function Yy(i,n,a,s,o){var l=b();try{_u(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Qy(i,n,a,s,o,l,c,f){var _=b();try{ru(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function zy(i,n,a,s,o,l,c,f,_){var p=b();try{il(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Xy(i,n,a,s,o,l,c,f){var _=b();try{return bc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Jy(i,n,a,s,o){var l=b();try{return hu(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Zy(i,n,a,s,o,l,c,f){var _=b();try{return Zc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function eh(i,n,a,s,o,l,c,f,_){var p=b();try{nc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function th(i,n,a,s,o,l,c,f,_,p,m,k,E){var H=b();try{$c(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Y){if(j(H),Y!==Y+0)throw Y;w(1,0)}}function rh(i,n,a,s,o,l,c,f,_){var p=b();try{Nc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function ih(i,n,a,s,o,l,c,f){var _=b();try{return vc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function nh(i,n,a,s,o,l){var c=b();try{return gu(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function ah(i,n,a,s,o,l,c,f,_){var p=b();try{return uc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function sh(i,n,a,s,o,l){var c=b();try{return gc(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function oh(i,n,a,s,o,l,c,f){var _=b();try{return zu(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function uh(i,n,a,s,o,l){var c=b();try{return mu(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function lh(i,n,a,s,o,l,c,f){var _=b();try{return vu(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function ch(i,n,a,s,o,l,c){var f=b();try{return bu(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function fh(i,n,a,s,o,l,c){var f=b();try{rl(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function _h(i,n,a,s,o,l,c,f){var _=b();try{ol(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function dh(i,n,a,s){var o=b();try{return ju(i,n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function ph(i,n,a,s,o,l,c,f){var _=b();try{ou(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function yh(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{Bu(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function hh(i,n,a,s,o,l,c,f){var _=b();try{Lu(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function mh(i,n,a,s,o,l,c,f,_,p,m,k,E){var H=b();try{Uu(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Y){if(j(H),Y!==Y+0)throw Y;w(1,0)}}function vh(i,n,a,s,o,l,c,f,_,p){var m=b();try{ku(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function gh(i,n,a,s,o,l,c,f){var _=b();try{Ou(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function bh(i,n,a,s,o,l,c,f,_){var p=b();try{return Fu(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function jh(i,n,a,s,o,l,c){var f=b();try{return Cu(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function wh(i,n,a,s,o,l,c){var f=b();try{return Su(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function kh(i,n,a,s,o,l,c,f){var _=b();try{Eu(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Ch(i,n,a,s,o,l){var c=b();try{Du(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function Sh(i,n,a,s,o,l,c){var f=b();try{return Au(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Eh(i,n,a,s,o,l,c){var f=b();try{return Ru(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Ah(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return Tu(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Rh(i,n,a,s,o,l,c,f){var _=b();try{return xu(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Th(i,n,a,s,o,l,c,f){var _=b();try{return Pu(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Dh(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{return Nu(i,n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function Ph(i,n,a,s,o,l,c,f,_){var p=b();try{return Mu(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function xh(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{Iu(i,n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function Oh(i,n,a,s,o,l,c,f,_,p,m,k,E){var H=b();try{qu(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Y){if(j(H),Y!==Y+0)throw Y;w(1,0)}}function Fh(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{Wu(i,n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function Nh(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de){var je=b();try{$u(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de)}catch(Be){if(j(je),Be!==Be+0)throw Be;w(1,0)}}function Mh(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de,je,Be){var B=b();try{Gu(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de,je,Be)}catch(re){if(j(B),re!==re+0)throw re;w(1,0)}}function Ih(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{Hu(i,n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function Bh(i,n,a,s,o,l){var c=b();try{return al(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function Lh(i,n,a,s,o,l,c,f,_){var p=b();try{Ju(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Uh(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return rc(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Hh(i,n,a,s,o,l,c,f,_){var p=b();try{return ic(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function qh(i,n,a){var s=b();try{return Ku(i,n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function Wh(i,n){var a=b();try{return Vu(i,n)}catch(s){if(j(a),s!==s+0)throw s;w(1,0)}}function $h(i,n){var a=b();try{return Yu(i,n)}catch(s){if(j(a),s!==s+0)throw s;w(1,0)}}function Gh(i,n,a,s,o,l,c){var f=b();try{return ac(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Kh(i,n,a,s,o,l,c){var f=b();try{Fl(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Vh(i,n,a,s,o,l){var c=b();try{return Vl(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function Yh(i,n,a,s,o,l,c,f,_){var p=b();try{return Zu(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Qh(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return el(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function zh(i,n,a,s,o,l,c,f,_,p){var m=b();try{tl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Xh(i,n,a,s,o,l,c,f){var _=b();try{return Qu(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Jh(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de,je){var Be=b();try{Xu(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de,je)}catch(B){if(j(Be),B!==B+0)throw B;w(1,0)}}function Zh(i,n,a,s,o,l,c,f,_){var p=b();try{nl(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function em(i,n,a,s,o,l,c,f,_,p){var m=b();try{return dl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function tm(i,n,a,s,o,l,c,f,_,p){var m=b();try{sl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function rm(i,n,a,s,o,l,c,f){var _=b();try{return fl(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function im(i,n,a,s,o,l,c,f,_,p,m,k,E){var H=b();try{return _l(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Y){if(j(H),Y!==Y+0)throw Y;w(1,0)}}function nm(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return ul(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function am(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{ll(i,n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function sm(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{cl(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function om(i,n,a,s,o,l,c,f,_,p){var m=b();try{return pl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function um(i,n,a,s,o,l,c,f,_,p){var m=b();try{yl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function lm(i,n,a,s,o,l,c,f){var _=b();try{return hl(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function cm(i,n,a,s,o,l,c,f,_,p){var m=b();try{return ml(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function fm(i,n,a,s,o,l,c,f,_){var p=b();try{vl(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function _m(i,n,a,s,o,l,c,f){var _=b();try{return gl(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function dm(i,n,a,s,o,l,c,f,_){var p=b();try{return Yl(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function pm(i,n,a,s,o,l,c,f,_,p,m,k,E,H){var Y=b();try{return Ql(i,n,a,s,o,l,c,f,_,p,m,k,E,H)}catch(de){if(j(Y),de!==de+0)throw de;w(1,0)}}function ym(i,n,a,s,o,l,c,f){var _=b();try{bl(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function hm(i,n,a,s,o,l){var c=b();try{return El(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function mm(i,n,a,s,o,l,c){var f=b();try{return Al(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function vm(i,n,a,s,o,l){var c=b();try{return Rl(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function gm(i,n,a,s,o,l,c){var f=b();try{return Tl(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function bm(i,n,a,s,o,l){var c=b();try{return Dl(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function jm(i,n,a,s,o,l,c,f){var _=b();try{return Pl(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function wm(i,n,a){var s=b();try{return Cl(i,n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function km(i,n,a,s,o,l,c){var f=b();try{Ml(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Cm(i,n,a,s){var o=b();try{return wu(i,n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function Sm(i,n,a,s,o){var l=b();try{return Nl(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Em(i,n,a,s,o){var l=b();try{xl(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Am(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{Il(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Rm(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y){var de=b();try{kl(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y)}catch(je){if(j(de),je!==je+0)throw je;w(1,0)}}function Tm(i,n,a,s,o){var l=b();try{return Sl(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Dm(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{return Ol(i,n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function Pm(i,n,a,s,o){var l=b();try{return Bl(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function xm(i,n,a,s,o,l,c){var f=b();try{Ll(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Om(i,n,a,s,o,l,c,f,_,p){var m=b();try{return Ul(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Fm(i,n,a,s,o,l,c,f,_,p){var m=b();try{return Hl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Nm(i,n,a,s,o,l,c,f,_,p){var m=b();try{ql(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Mm(i,n,a,s,o,l,c,f,_,p){var m=b();try{Wl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Im(i,n,a,s,o,l,c){var f=b();try{return jl(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Bm(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{$l(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Lm(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{Gl(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Um(i,n,a,s,o){var l=b();try{return Kl(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Hm(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{return zl(i,n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function qm(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return Xl(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Wm(i,n,a,s,o,l,c,f,_,p){var m=b();try{return Jl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function $m(i,n,a,s,o,l,c,f,_){var p=b();try{return Zl(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Gm(i,n,a,s,o,l,c,f,_,p){var m=b();try{return ec(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Km(i,n,a,s,o,l){var c=b();try{tc(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function Vm(i,n,a,s,o,l,c,f){var _=b();try{return sc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Ym(i,n,a,s,o,l,c,f,_){var p=b();try{return oc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Qm(i,n,a,s,o,l,c,f){var _=b();try{return lc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function zm(i,n,a,s,o,l,c,f,_){var p=b();try{return cc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Xm(i,n,a,s,o,l,c,f,_,p){var m=b();try{return fc(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Jm(i,n,a,s,o,l,c){var f=b();try{return _c(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Zm(i,n,a,s,o,l,c,f){var _=b();try{return dc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function ev(i,n,a,s,o,l){var c=b();try{return pc(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function tv(i,n,a,s,o,l,c){var f=b();try{yc(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function rv(i,n,a,s,o,l,c,f,_){var p=b();try{hc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function iv(i,n,a,s,o,l,c,f,_){var p=b();try{return mc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function nv(i,n,a,s,o,l,c,f,_){var p=b();try{jc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function av(i,n,a,s,o,l,c,f,_,p){var m=b();try{wc(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function sv(i,n,a,s,o,l,c,f,_){var p=b();try{return kc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function ov(i,n,a,s,o,l,c,f,_){var p=b();try{Rc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function uv(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{Ac(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function lv(i,n,a,s,o,l,c,f,_,p){var m=b();try{Sc(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function cv(i,n,a,s,o,l,c){var f=b();try{return Tc(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function fv(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y){var de=b();try{return Cc(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y)}catch(je){if(j(de),je!==je+0)throw je;w(1,0)}}function _v(i,n,a,s,o,l,c,f,_){var p=b();try{return Ec(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function dv(i,n,a,s,o,l,c,f,_){var p=b();try{Dc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function pv(i,n,a,s,o,l,c,f,_,p){var m=b();try{Oc(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function yv(i,n,a,s,o,l,c){var f=b();try{return xc(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function hv(i,n,a,s,o,l,c,f,_,p){var m=b();try{Fc(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function mv(i,n,a,s,o,l,c,f,_){var p=b();try{return wl(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function vv(i,n,a,s,o,l,c,f,_){var p=b();try{Mc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function gv(i,n,a,s,o,l,c,f,_){var p=b();try{Pc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function bv(i,n,a,s,o,l,c){var f=b();try{Ic(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function jv(i,n,a,s,o,l,c,f,_){var p=b();try{Bc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function wv(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{Lc(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function kv(i,n,a,s,o,l,c,f){var _=b();try{return Uc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Cv(i,n,a,s,o,l,c){var f=b();try{return Hc(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Sv(i,n,a,s){var o=b();try{return qc(i,n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function Ev(i,n,a,s,o,l,c,f){var _=b();try{return Wc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Av(i,n,a,s,o,l,c,f,_){var p=b();try{return Gc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Rv(i,n,a){var s=b();try{Kc(i,n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function Tv(i,n,a,s,o,l,c,f){var _=b();try{return Vc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Dv(i,n,a,s,o,l,c){var f=b();try{return Yc(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Pv(i,n,a,s,o,l,c,f,_,p){var m=b();try{Qc(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function xv(i,n,a,s,o,l,c,f,_){var p=b();try{zc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Ov(i,n,a,s,o,l,c,f,_){var p=b();try{Xc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Fv(i,n,a,s,o,l,c,f){var _=b();try{Jc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Nv(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{ef(i,n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function Mv(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return nf(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Iv(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{tf(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Bv(i,n,a,s,o,l,c,f,_,p,m,k,E){var H=b();try{rf(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Y){if(j(H),Y!==Y+0)throw Y;w(1,0)}}function Lv(i,n,a,s,o,l,c,f,_,p,m,k,E){var H=b();try{af(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Y){if(j(H),Y!==Y+0)throw Y;w(1,0)}}function Uv(i,n,a,s,o,l,c,f,_,p){var m=b();try{return sf(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Hv(i,n,a,s,o,l,c,f,_,p){var m=b();try{return df(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function qv(i,n,a,s,o,l,c,f,_,p,m,k,E){var H=b();try{of(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Y){if(j(H),Y!==Y+0)throw Y;w(1,0)}}function Wv(i,n,a,s,o,l,c,f,_,p){var m=b();try{uf(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function $v(i,n,a,s,o,l,c,f,_){var p=b();try{lf(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Gv(i,n,a,s,o,l,c,f,_){var p=b();try{bf(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Kv(i,n,a,s,o,l,c,f,_,p,m,k,E,H){var Y=b();try{ff(i,n,a,s,o,l,c,f,_,p,m,k,E,H)}catch(de){if(j(Y),de!==de+0)throw de;w(1,0)}}function Vv(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{_f(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Yv(i,n,a,s,o,l,c,f,_,p){var m=b();try{cf(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Qv(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return pf(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function zv(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return vf(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Xv(i,n,a,s,o,l,c,f,_,p){var m=b();try{mf(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Jv(i,n,a,s,o,l,c,f){var _=b();try{return hf(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Zv(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return yf(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function eg(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{return gf(i,n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}e.ccall=le;var ji;function wi(i){this.name="ExitStatus",this.message="Program terminated with exit("+i+")",this.status=i}var tg=!1;$e=function i(){ji||Xa(),ji||($e=i)};function rg(i){var n=e._main,a=0,s=0;try{var o=n(a,s);return ig(o,!0),o}catch(l){return dn(l)}finally{tg=!0}}function Xa(i){if(i=i||v,kt>0||(un(),kt>0))return;function n(){ji||(ji=!0,e.calledRun=!0,!Ce&&(ln(),cn(),u(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),jf&&rg(i),fn()))}e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),n()},1)):n()}e.run=Xa;function ig(i,n){D=i,ng(i)}function ng(i){D=i,zr()||(e.onExit&&e.onExit(i),Ce=!0),A(i,new wi(i))}if(e.preInit)for(typeof e.preInit=="function"&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();var jf=!0;return e.noInitialRun&&(jf=!1),Xa(),t.ready}})(),nn=Tw;var Ap=cr(require("fs")),wr=class extends Hr{constructor(e,u,d,y){super(e,u);this.mainModulePath=d,this.pthreadWorkerPath=y}locateFile(e,u){if(e.endsWith(".wasm"))return this.mainModulePath;if(e.endsWith(".worker.js")){if(!this.pthreadWorkerPath)throw new Error("Missing DuckDB worker path!");return this.pthreadWorkerPath}throw new Error(`WASM instantiation requested unexpected file: prefix=${u} path=${e}`)}instantiateWasm(e,u){globalThis.DUCKDB_RUNTIME={};for(let y of Object.getOwnPropertyNames(this._runtime))y!="constructor"&&(globalThis.DUCKDB_RUNTIME[y]=Object.getOwnPropertyDescriptor(this._runtime,y).value);let d=Ap.default.readFileSync(this.mainModulePath);return WebAssembly.instantiate(d,e).then(y=>{u(y.instance,y.module)}),[]}instantiateImpl(e){return nn({...e,instantiateWasm:this.instantiateWasm.bind(this)})}};var an=class extends wr{constructor(t,e,u,d=null){super(t,e,u,d)}instantiateImpl(t){return nn({...t,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}};var Rp={},Dw=(()=>{var r=Rp.url;return function(t){t=t||{};var e=typeof t<"u"?t:{},u,d;e.ready=new Promise(function(h,g){u=h,d=g});var y=Object.assign({},e),v=[],S="./this.program",A=(h,g)=>{throw g},I=typeof window=="object",R=typeof importScripts=="function",L=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",P="";function fe(h){return e.locateFile?e.locateFile(h,P):P+h}var K,z,ee,oe;function be(h){if(h instanceof lr)return;J("exiting due to exception: "+h)}var me,Ae,ie;L?(R?P=require("path").dirname(P)+"/":P=__dirname+"/",ie=()=>{Ae||(me=require("fs"),Ae=require("path"))},K=function(g,C){return ie(),g=Ae.normalize(g),me.readFileSync(g,C?void 0:"utf8")},ee=h=>{var g=K(h,!0);return g.buffer||(g=new Uint8Array(g)),g},z=(h,g,C)=>{ie(),h=Ae.normalize(h),me.readFile(h,function(T,M){T?C(T):g(M.buffer)})},process.argv.length>1&&(S=process.argv[1].replace(/\\/g,"/")),v=process.argv.slice(2),process.on("uncaughtException",function(h){if(!(h instanceof lr))throw h}),process.on("unhandledRejection",function(h){throw h}),A=(h,g)=>{if(Yr())throw process.exitCode=h,g;be(g),process.exit(h)},e.inspect=function(){return"[Emscripten Module object]"}):(I||R)&&(R?P=self.location.href:typeof document<"u"&&document.currentScript&&(P=document.currentScript.src),r&&(P=r),P.indexOf("blob:")!==0?P=P.substr(0,P.replace(/[?#].*/,"").lastIndexOf("/")+1):P="",K=h=>{var g=new XMLHttpRequest;return g.open("GET",h,!1),g.send(null),g.responseText},R&&(ee=h=>{var g=new XMLHttpRequest;return g.open("GET",h,!1),g.responseType="arraybuffer",g.send(null),new Uint8Array(g.response)}),z=(h,g,C)=>{var T=new XMLHttpRequest;T.open("GET",h,!0),T.responseType="arraybuffer",T.onload=()=>{if(T.status==200||T.status==0&&T.response){g(T.response);return}C()},T.onerror=C,T.send(null)},oe=h=>document.title=h);var ke=e.print||console.log.bind(console),J=e.printErr||console.warn.bind(console);Object.assign(e,y),y=null,e.arguments&&(v=e.arguments),e.thisProgram&&(S=e.thisProgram),e.quit&&(A=e.quit);var te;e.wasmBinary&&(te=e.wasmBinary);var $=e.noExitRuntime||!0;typeof WebAssembly!="object"&&$e("no native wasm support detected");var pe,F=!1,ue;function ae(h,g){h||$e(g)}function Ce(h){var g=e["_"+h];return g}function D(h,g,C,T,M){var X={string:function(b){var j=0;if(b!=null&&b!==0){var it=(b.length<<2)+1;j=Mr(it),We(b,j,it)}return j},array:function(b){var j=Mr(b.length);return _t(b,j),j}};function G(b){return g==="string"?le(b):g==="boolean"?Boolean(b):b}var q=Ce(h),Z=[],ye=0;if(T)for(var ge=0;ge<T.length;ge++){var Ge=X[C[ge]];Ge?(ye===0&&(ye=mi()),Z[ge]=Ge(T[ge])):Z[ge]=T[ge]}var Se=q.apply(null,Z);function w(b){return ye!==0&&vi(ye),G(b)}return Se=w(Se),Se}var x=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Pe(h,g,C){g>>>=0;for(var T=g+C,M=g;h[M]&&!(M>=T);)++M;if(M-g>16&&h.buffer&&x)return x.decode(h.subarray(g,M));for(var X="";g<M;){var G=h[g++];if(!(G&128)){X+=String.fromCharCode(G);continue}var q=h[g++]&63;if((G&224)==192){X+=String.fromCharCode((G&31)<<6|q);continue}var Z=h[g++]&63;if((G&240)==224?G=(G&15)<<12|q<<6|Z:G=(G&7)<<18|q<<12|Z<<6|h[g++]&63,G<65536)X+=String.fromCharCode(G);else{var ye=G-65536;X+=String.fromCharCode(55296|ye>>10,56320|ye&1023)}}return X}function le(h,g){return h>>>=0,h?Pe(se,h,g):""}function Ye(h,g,C,T){if(C>>>=0,!(T>0))return 0;for(var M=C,X=C+T-1,G=0;G<h.length;++G){var q=h.charCodeAt(G);if(q>=55296&&q<=57343){var Z=h.charCodeAt(++G);q=65536+((q&1023)<<10)|Z&1023}if(q<=127){if(C>=X)break;g[C++>>>0]=q}else if(q<=2047){if(C+1>=X)break;g[C++>>>0]=192|q>>6,g[C++>>>0]=128|q&63}else if(q<=65535){if(C+2>=X)break;g[C++>>>0]=224|q>>12,g[C++>>>0]=128|q>>6&63,g[C++>>>0]=128|q&63}else{if(C+3>=X)break;g[C++>>>0]=240|q>>18,g[C++>>>0]=128|q>>12&63,g[C++>>>0]=128|q>>6&63,g[C++>>>0]=128|q&63}}return g[C>>>0]=0,C-M}function We(h,g,C){return Ye(h,se,g,C)}function xe(h){for(var g=0,C=0;C<h.length;++C){var T=h.charCodeAt(C);T>=55296&&T<=57343&&(T=65536+((T&1023)<<10)|h.charCodeAt(++C)&1023),T<=127?++g:T<=2047?g+=2:T<=65535?g+=3:g+=4}return g}function _t(h,g){Qe.set(h,g>>>0)}function It(h,g,C){for(var T=0;T<h.length;++T)Qe[g++>>>0]=h.charCodeAt(T);C||(Qe[g>>>0]=0)}var bt,Qe,se,at,Je,O,ve,W,N;function Re(h){bt=h,e.HEAP8=Qe=new Int8Array(h),e.HEAP16=at=new Int16Array(h),e.HEAP32=O=new Int32Array(h),e.HEAPU8=se=new Uint8Array(h),e.HEAPU16=Je=new Uint16Array(h),e.HEAPU32=ve=new Uint32Array(h),e.HEAPF32=W=new Float32Array(h),e.HEAPF64=N=new Float64Array(h)}var He=e.INITIAL_MEMORY||16777216,Fe,jt=[],At=[],Kr=[],kr=[],Vr=!1;function Yr(){return $}function Qr(){if(e.preRun)for(typeof e.preRun=="function"&&(e.preRun=[e.preRun]);e.preRun.length;)ln(e.preRun.shift());Lt(jt)}function on(){Vr=!0,Lt(At)}function zr(){Lt(Kr)}function un(){if(e.postRun)for(typeof e.postRun=="function"&&(e.postRun=[e.postRun]);e.postRun.length;)fn(e.postRun.shift());Lt(kr)}function ln(h){jt.unshift(h)}function cn(h){At.unshift(h)}function fn(h){kr.unshift(h)}var wt=0,Cr=null,Bt=null;function kt(h){wt++,e.monitorRunDependencies&&e.monitorRunDependencies(wt)}function Sr(h){if(wt--,e.monitorRunDependencies&&e.monitorRunDependencies(wt),wt==0&&(Cr!==null&&(clearInterval(Cr),Cr=null),Bt)){var g=Bt;Bt=null,g()}}function $e(h){e.onAbort&&e.onAbort(h),h="Aborted("+h+")",J(h),F=!0,ue=1,h+=". Build with -sASSERTIONS for more info.";var g=new WebAssembly.RuntimeError(h);throw d(g),g}var _n="data:application/octet-stream;base64,";function Xr(h){return h.startsWith(_n)}var Oe;e.locateFile?(Oe="./duckdb-eh.wasm",Xr(Oe)||(Oe=fe(Oe))):Oe=new URL("./duckdb-eh.wasm",Rp.url).toString();function Jr(h){try{if(h==Oe&&te)return new Uint8Array(te);if(ee)return ee(h);throw"both async and sync fetching of the wasm failed"}catch(g){$e(g)}}function Zr(){return!te&&(I||R)&&typeof fetch=="function"?fetch(Oe,{credentials:"same-origin"}).then(function(h){if(!h.ok)throw"failed to load wasm binary file at '"+Oe+"'";return h.arrayBuffer()}).catch(function(){return Jr(Oe)}):Promise.resolve().then(function(){return Jr(Oe)})}function Ze(){var h={a:la};function g(G,q){var Z=G.exports;e.asm=Z,pe=e.asm.ha,Re(pe.buffer),Fe=e.asm.db,cn(e.asm.ia),Sr("wasm-instantiate")}kt("wasm-instantiate");function C(G){g(G.instance)}function T(G){return Zr().then(function(q){return WebAssembly.instantiate(q,h)}).then(function(q){return q}).then(G,function(q){J("failed to asynchronously prepare wasm: "+q),$e(q)})}function M(){return!te&&typeof WebAssembly.instantiateStreaming=="function"&&!Xr(Oe)&&typeof fetch=="function"?fetch(Oe,{credentials:"same-origin"}).then(function(G){var q=WebAssembly.instantiateStreaming(G,h);return q.then(C,function(Z){return J("wasm streaming compile failed: "+Z),J("falling back to ArrayBuffer instantiation"),T(C)})}):T(C)}if(e.instantiateWasm)try{var X=e.instantiateWasm(h,g);return X}catch(G){return J("Module.instantiateWasm callback failed with error: "+G),!1}return M().catch(d),{}}function Lt(h){for(;h.length>0;){var g=h.shift();if(typeof g=="function"){g(e);continue}var C=g.func;typeof C=="number"?g.arg===void 0?ei(C)():ei(C)(g.arg):C(g.arg===void 0?null:g.arg)}}var Xt=[];function ei(h){var g=Xt[h];return g||(h>=Xt.length&&(Xt.length=h+1),Xt[h]=g=Fe.get(h)),g}function Jt(h){if(h instanceof lr||h=="unwind")return ue;A(1,h)}function Zt(h,g,C,T){$e("Assertion failed: "+le(h)+", at: "+[g?le(g):"unknown filename",C,T?le(T):"unknown function"])}var Q={buffers:[null,[],[]],printChar:function(h,g){var C=Q.buffers[h];g===0||g===10?((h===1?ke:J)(Pe(C,0)),C.length=0):C.push(g)},varargs:void 0,get:function(){Q.varargs+=4;var h=O[Q.varargs-4>>>2];return h},getStr:function(h){var g=le(h);return g}};function dn(h,g,C,T,M){}function pn(){J("missing function: $SOCKFS"),$e(-1)}function ti(){J("missing function: $FS"),$e(-1)}function dt(h){var g=pn.getSocket(h);if(!g)throw new ti.ErrnoError(8);return g}function Er(h){return(h&255)+"."+(h>>8&255)+"."+(h>>16&255)+"."+(h>>24&255)}function Ut(h){var g="",C=0,T=0,M=0,X=0,G=0,q=0,Z=[h[0]&65535,h[0]>>16,h[1]&65535,h[1]>>16,h[2]&65535,h[2]>>16,h[3]&65535,h[3]>>16],ye=!0,ge="";for(q=0;q<5;q++)if(Z[q]!==0){ye=!1;break}if(ye){if(ge=Er(Z[6]|Z[7]<<16),Z[5]===-1)return g="::ffff:",g+=ge,g;if(Z[5]===0)return g="::",ge==="0.0.0.0"&&(ge=""),ge==="0.0.0.1"&&(ge="1"),g+=ge,g}for(C=0;C<8;C++)Z[C]===0&&(C-M>1&&(G=0),M=C,G++),G>T&&(T=G,X=C-T+1);for(C=0;C<8;C++){if(T>1&&Z[C]===0&&C>=X&&C<X+T){C===X&&(g+=":",X===0&&(g+=":"));continue}g+=Number(Fr(Z[C]&65535)).toString(16),g+=C<7?":":""}return g}function ri(h,g){var C=at[h>>>1],T=Fr(Je[h+2>>>1]),M;switch(C){case 2:if(g!==16)return{errno:28};M=O[h+4>>>2],M=Er(M);break;case 10:if(g!==28)return{errno:28};M=[O[h+8>>>2],O[h+12>>>2],O[h+16>>>2],O[h+20>>>2]],M=Ut(M);break;default:return{errno:5}}return{family:C,addr:M,port:T}}function et(h){for(var g=h.split("."),C=0;C<4;C++){var T=Number(g[C]);if(isNaN(T))return null;g[C]=T}return(g[0]|g[1]<<8|g[2]<<16|g[3]<<24)>>>0}function ut(h){return parseInt(h)}function er(h){var g,C,T,M,X=/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i,G=[];if(!X.test(h))return null;if(h==="::")return[0,0,0,0,0,0,0,0];for(h.startsWith("::")?h=h.replace("::","Z:"):h=h.replace("::",":Z:"),h.indexOf(".")>0?(h=h.replace(new RegExp("[.]","g"),":"),g=h.split(":"),g[g.length-4]=ut(g[g.length-4])+ut(g[g.length-3])*256,g[g.length-3]=ut(g[g.length-2])+ut(g[g.length-1])*256,g=g.slice(0,g.length-2)):g=h.split(":"),T=0,M=0,C=0;C<g.length;C++)if(typeof g[C]=="string")if(g[C]==="Z"){for(M=0;M<8-g.length+1;M++)G[C+M]=0;T=M-1}else G[C+T]=or(parseInt(g[C],16));else G[C+T]=g[C];return[G[1]<<16|G[0],G[3]<<16|G[2],G[5]<<16|G[4],G[7]<<16|G[6]]}var tt={address_map:{id:1,addrs:{},names:{}},lookup_name:function(h){var g=et(h);if(g!==null||(g=er(h),g!==null))return h;var C;if(tt.address_map.addrs[h])C=tt.address_map.addrs[h];else{var T=tt.address_map.id++;ae(T<65535,"exceeded max address mappings of 65535"),C="172.29."+(T&255)+"."+(T&65280),tt.address_map.names[C]=h,tt.address_map.addrs[h]=C}return C},lookup_addr:function(h){return tt.address_map.names[h]?tt.address_map.names[h]:null}};function ii(h,g,C){if(C&&h===0)return null;var T=ri(h,g);if(T.errno)throw new ti.ErrnoError(T.errno);return T.addr=tt.lookup_addr(T.addr)||T.addr,T}function yn(h,g,C){var T=dt(h),M=ii(g,C);return T.sock_ops.bind(T,M.addr,M.port),0}function hn(h,g,C){var T=dt(h),M=ii(g,C);return T.sock_ops.connect(T,M.addr,M.port),0}function mn(h,g,C,T){return g=Q.getStr(g),g=Q.calculateAt(h,g),Q.doAccess(g,C)}function vn(h,g,C){return Q.varargs=C,0}function gn(h,g){}function bn(h,g,C){}function jn(h,g,C){}function ni(h,g){se.fill(0,h,h+g)}function Ie(h,g,C,T,M){switch(g){case 2:C=et(C),ni(h,16),M&&(O[M>>>2]=16),at[h>>>1]=g,O[h+4>>>2]=C,at[h+2>>>1]=or(T);break;case 10:C=er(C),ni(h,28),M&&(O[M>>>2]=28),O[h>>>2]=g,O[h+8>>>2]=C[0],O[h+12>>>2]=C[1],O[h+16>>>2]=C[2],O[h+20>>>2]=C[3],at[h+2>>>1]=or(T);break;default:return 5}return 0}function wn(h,g,C){var T=dt(h);if(!T.daddr)return-53;var M=Ie(g,T.family,tt.lookup_name(T.daddr),T.dport,C);return 0}function kn(h,g,C,T,M){var X=dt(h);return g===1&&C===4?(O[T>>>2]=X.error,O[M>>>2]=4,X.error=null,0):-50}function ai(h,g,C){return Q.varargs=C,0}function Ht(h,g){}function Ar(h,g,C){}function si(h,g,C,T){}function oi(h,g,C,T){Q.varargs=T}function tr(h,g,C,T,M,X){var G=dt(h),q=G.sock_ops.recvmsg(G,C);if(!q)return 0;if(M)var Z=Ie(M,G.family,tt.lookup_name(q.addr),q.port,X);return se.set(q.buffer,g>>>0),q.buffer.byteLength}function rr(h,g,C,T){}function Rr(h){}function rt(h,g,C,T,M,X){}function ui(h,g,C){}function Cn(h,g){}function Sn(h,g,C){}function En(h){}var li="To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking";function An(h,g){$e(li)}function Rn(h,g){$e(li)}function Tn(){return Date.now()}var ci=!0;function Tr(){return ci}function Dn(){$e("")}function Pn(h,g){return globalThis.DUCKDB_RUNTIME.createDirectory(e,h,g)}function xn(h,g){return globalThis.DUCKDB_RUNTIME.checkDirectory(e,h,g)}function On(h,g){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(e,h,g)}function Fn(h,g){return globalThis.DUCKDB_RUNTIME.removeDirectory(e,h,g)}function Nn(h){return globalThis.DUCKDB_RUNTIME.closeFile(e,h)}function Mn(h,g){return globalThis.DUCKDB_RUNTIME.checkFile(e,h,g)}function In(h){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(e,h)}function Bn(h,g,C,T){return globalThis.DUCKDB_RUNTIME.moveFile(e,h,g,C,T)}function Ln(h,g){return globalThis.DUCKDB_RUNTIME.openFile(e,h,g)}function Un(h,g,C,T){return globalThis.DUCKDB_RUNTIME.readFile(e,h,g,C,T)}function Hn(h,g){return globalThis.DUCKDB_RUNTIME.truncateFile(e,h,g)}function qn(h,g,C,T){return globalThis.DUCKDB_RUNTIME.writeFile(e,h,g,C,T)}function Wn(h,g){return globalThis.DUCKDB_RUNTIME.glob(e,h,g)}function $n(h){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(e,h)}function fi(h,g,C,T,M,X){return globalThis.DUCKDB_RUNTIME.callScalarUDF(e,h,g,C,T,M,X)}function _i(){return 4294901760}var Dr;L?Dr=()=>{var h=process.hrtime();return h[0]*1e3+h[1]/1e6}:Dr=()=>performance.now();function Gn(h,g,C){se.copyWithin(h>>>0,g>>>0,g+C>>>0)}function Kn(h){try{return pe.grow(h-bt.byteLength+65535>>>16),Re(pe.buffer),1}catch{}}function Vn(h){var g=se.length;h=h>>>0;var C=_i();if(h>C)return!1;let T=(Z,ye)=>Z+(ye-Z%ye)%ye;for(var M=1;M<=4;M*=2){var X=g*(1+.2/M);X=Math.min(X,h+100663296);var G=Math.min(C,T(Math.max(h,X),65536)),q=Kn(G);if(q)return!0}return!1}var Pr={};function Yn(){return S||"./this.program"}function qt(){if(!qt.strings){var h=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",g={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:h,_:Yn()};for(var C in Pr)Pr[C]===void 0?delete g[C]:g[C]=Pr[C];var T=[];for(var C in g)T.push(C+"="+g[C]);qt.strings=T}return qt.strings}function Qn(h,g){var C=0;return qt().forEach(function(T,M){var X=g+C;O[h+M*4>>>2]=X,It(T,X),C+=T.length+1}),0}function zn(h,g){var C=qt();O[h>>>2]=C.length;var T=0;return C.forEach(function(M){T+=M.length+1}),O[g>>>2]=T,0}function Xn(h){return 0}function Jn(h,g,C,T,M,X){var G=Q.getStreamFromFD(h),q=Q.doReadv(G,g,C,T);return O[X>>>2]=q,0}function Zn(h,g,C,T,M,X){var G=Q.getStreamFromFD(h),q=Q.doWritev(G,g,C,T);return O[X>>>2]=q,0}function ea(h,g,C,T){var M=Q.getStreamFromFD(h),X=Q.doReadv(M,g,C);return O[T>>>2]=X,0}function ta(h,g,C,T,M){}function ra(h){var g=Q.getStreamFromFD(h);return g.stream_ops&&g.stream_ops.fsync?-g.stream_ops.fsync(g):0}function ia(h,g,C,T){for(var M=0,X=0;X<C;X++){var G=O[g>>>2],q=O[g+4>>>2];g+=8;for(var Z=0;Z<q;Z++)Q.printChar(h,se[G+Z>>>0]);M+=q}return O[T>>>2]=M,0}function na(h,g,C,T){var M=0,X=0,G=0,q=0,Z=0,ye=0,ge;function Ge(Se,w,b,j,it,ft){var U,ne,Te,Ue;return ne=Se===10?28:16,it=Se===10?Ut(it):Er(it),U=Nr(ne),Ue=Ie(U,Se,it,ft),ae(!Ue),Te=Nr(32),O[Te+4>>>2]=Se,O[Te+8>>>2]=w,O[Te+12>>>2]=b,O[Te+24>>>2]=j,O[Te+20>>>2]=U,Se===10?O[Te+16>>>2]=28:O[Te+16>>>2]=16,O[Te+28>>>2]=0,Te}if(C&&(G=O[C>>>2],q=O[C+4>>>2],Z=O[C+8>>>2],ye=O[C+12>>>2]),Z&&!ye&&(ye=Z===2?17:6),!Z&&ye&&(Z=ye===17?2:1),ye===0&&(ye=6),Z===0&&(Z=1),!h&&!g)return-2;if(G&-1088||C!==0&&O[C>>>2]&2&&!h)return-1;if(G&32)return-2;if(Z!==0&&Z!==1&&Z!==2)return-7;if(q!==0&&q!==2&&q!==10)return-6;if(g&&(g=le(g),X=parseInt(g,10),isNaN(X)))return G&1024?-2:-8;if(!h)return q===0&&(q=2),(G&1)===0&&(q===2?M=sr(2130706433):M=[0,0,0,1]),ge=Ge(q,Z,ye,null,M,X),O[T>>>2]=ge,0;if(h=le(h),M=et(h),M!==null)if(q===0||q===2)q=2;else if(q===10&&G&8)M=[0,0,sr(65535),M],q=10;else return-2;else if(M=er(h),M!==null)if(q===0||q===10)q=10;else return-2;return M!=null?(ge=Ge(q,Z,ye,h,M,X),O[T>>>2]=ge,0):G&4?-2:(h=tt.lookup_name(h),M=et(h),q===0?q=2:q===10&&(M=[0,0,sr(65535),M]),ge=Ge(q,Z,ye,null,M,X),O[T>>>2]=ge,0)}function aa(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var h=new Uint8Array(1);return function(){return crypto.getRandomValues(h),h[0]}}else if(L)try{var g=require("crypto");return function(){return g.randomBytes(1)[0]}}catch{}return function(){$e("randomDevice")}}function ir(h,g){ir.randomDevice||(ir.randomDevice=aa());for(var C=0;C<g;C++)Qe[h+C>>>0]=ir.randomDevice();return 0}function sa(h,g,C,T,M,X,G){var q=ri(h,g);if(q.errno)return-6;var Z=q.port,ye=q.addr,ge=!1;if(C&&T){var Ge;if(G&1||!(Ge=tt.lookup_addr(ye))){if(G&8)return-2}else ye=Ge;var Se=We(ye,C,T);Se+1>=T&&(ge=!0)}if(M&&X){Z=""+Z;var Se=We(Z,M,X);Se+1>=X&&(ge=!0)}return ge?-12:0}function Wt(h){return h%4===0&&(h%100!==0||h%400===0)}function xr(h,g){for(var C=0,T=0;T<=g;C+=h[T++]);return C}var di=[31,29,31,30,31,30,31,31,30,31,30,31],pi=[31,28,31,30,31,30,31,31,30,31,30,31];function oa(h,g){for(var C=new Date(h.getTime());g>0;){var T=Wt(C.getFullYear()),M=C.getMonth(),X=(T?di:pi)[M];if(g>X-C.getDate())g-=X-C.getDate()+1,C.setDate(1),M<11?C.setMonth(M+1):(C.setMonth(0),C.setFullYear(C.getFullYear()+1));else return C.setDate(C.getDate()+g),C}return C}function Or(h,g,C,T){var M=O[T+40>>>2],X={tm_sec:O[T>>>2],tm_min:O[T+4>>>2],tm_hour:O[T+8>>>2],tm_mday:O[T+12>>>2],tm_mon:O[T+16>>>2],tm_year:O[T+20>>>2],tm_wday:O[T+24>>>2],tm_yday:O[T+28>>>2],tm_isdst:O[T+32>>>2],tm_gmtoff:O[T+36>>>2],tm_zone:M?le(M):""},G=le(C),q={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var Z in q)G=G.replace(new RegExp(Z,"g"),q[Z]);var ye=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ge=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ge(U,ne,Te){for(var Ue=typeof U=="number"?U.toString():U||"";Ue.length<ne;)Ue=Te[0]+Ue;return Ue}function Se(U,ne){return Ge(U,ne,"0")}function w(U,ne){function Te(Gt){return Gt<0?-1:Gt>0?1:0}var Ue;return(Ue=Te(U.getFullYear()-ne.getFullYear()))===0&&(Ue=Te(U.getMonth()-ne.getMonth()))===0&&(Ue=Te(U.getDate()-ne.getDate())),Ue}function b(U){switch(U.getDay()){case 0:return new Date(U.getFullYear()-1,11,29);case 1:return U;case 2:return new Date(U.getFullYear(),0,3);case 3:return new Date(U.getFullYear(),0,2);case 4:return new Date(U.getFullYear(),0,1);case 5:return new Date(U.getFullYear()-1,11,31);case 6:return new Date(U.getFullYear()-1,11,30)}}function j(U){var ne=oa(new Date(U.tm_year+1900,0,1),U.tm_yday),Te=new Date(ne.getFullYear(),0,4),Ue=new Date(ne.getFullYear()+1,0,4),Gt=b(Te),bi=b(Ue);return w(Gt,ne)<=0?w(bi,ne)<=0?ne.getFullYear()+1:ne.getFullYear():ne.getFullYear()-1}var it={"%a":function(U){return ye[U.tm_wday].substring(0,3)},"%A":function(U){return ye[U.tm_wday]},"%b":function(U){return ge[U.tm_mon].substring(0,3)},"%B":function(U){return ge[U.tm_mon]},"%C":function(U){var ne=U.tm_year+1900;return Se(ne/100|0,2)},"%d":function(U){return Se(U.tm_mday,2)},"%e":function(U){return Ge(U.tm_mday,2," ")},"%g":function(U){return j(U).toString().substring(2)},"%G":function(U){return j(U)},"%H":function(U){return Se(U.tm_hour,2)},"%I":function(U){var ne=U.tm_hour;return ne==0?ne=12:ne>12&&(ne-=12),Se(ne,2)},"%j":function(U){return Se(U.tm_mday+xr(Wt(U.tm_year+1900)?di:pi,U.tm_mon-1),3)},"%m":function(U){return Se(U.tm_mon+1,2)},"%M":function(U){return Se(U.tm_min,2)},"%n":function(){return`
4
+ `},"%p":function(U){return U.tm_hour>=0&&U.tm_hour<12?"AM":"PM"},"%S":function(U){return Se(U.tm_sec,2)},"%t":function(){return" "},"%u":function(U){return U.tm_wday||7},"%U":function(U){var ne=U.tm_yday+7-U.tm_wday;return Se(Math.floor(ne/7),2)},"%V":function(U){var ne=Math.floor((U.tm_yday+7-(U.tm_wday+6)%7)/7);if((U.tm_wday+371-U.tm_yday-2)%7<=2&&ne++,ne){if(ne==53){var Ue=(U.tm_wday+371-U.tm_yday)%7;Ue!=4&&(Ue!=3||!Wt(U.tm_year))&&(ne=1)}}else{ne=52;var Te=(U.tm_wday+7-U.tm_yday-1)%7;(Te==4||Te==5&&Wt(U.tm_year%400-1))&&ne++}return Se(ne,2)},"%w":function(U){return U.tm_wday},"%W":function(U){var ne=U.tm_yday+7-(U.tm_wday+6)%7;return Se(Math.floor(ne/7),2)},"%y":function(U){return(U.tm_year+1900).toString().substring(2)},"%Y":function(U){return U.tm_year+1900},"%z":function(U){var ne=U.tm_gmtoff,Te=ne>=0;return ne=Math.abs(ne)/60,ne=ne/60*100+ne%60,(Te?"+":"-")+String("0000"+ne).slice(-4)},"%Z":function(U){return U.tm_zone},"%%":function(){return"%"}};G=G.replace(/%%/g,"\0\0");for(var Z in it)G.includes(Z)&&(G=G.replace(new RegExp(Z,"g"),it[Z](X)));G=G.replace(/\0\0/g,"%");var ft=$t(G,!1);return ft.length>g?0:(_t(ft,h),ft.length-1)}function ua(h,g,C,T){return Or(h,g,C,T)}function $t(h,g,C){var T=C>0?C:xe(h)+1,M=new Array(T),X=Ye(h,M,0,M.length);return g&&(M.length=X),M}var la={a:Zt,P:dn,R:yn,Q:hn,J:mn,b:vn,$:gn,u:bn,X:jn,L:wn,O:kn,ba:ai,Y:Ht,aa:Ar,Z:si,o:oi,M:tr,H:rr,m:Rr,N:rt,k:ui,_:Cn,n:Sn,T:En,V:An,U:Rn,da:Tn,ca:Tr,d:Dn,B:Pn,C:xn,z:On,A:Fn,i:Nn,x:Mn,E:In,y:Bn,F:Ln,f:Un,D:Hn,j:qn,w:Wn,g:$n,G:fi,ea:_i,S:Dr,fa:Gn,ga:Vn,q:Qn,r:zn,c:Xn,t:Jn,s:Zn,h:ea,v:ta,I:ra,e:ia,l:na,W:ir,K:sa,p:ua},Qo=Ze(),ca=e.___wasm_call_ctors=function(){return(ca=e.___wasm_call_ctors=e.asm.ia).apply(null,arguments)},fa=e._main=function(){return(fa=e._main=e.asm.ja).apply(null,arguments)},_a=e._duckdb_web_fs_glob_add_path=function(){return(_a=e._duckdb_web_fs_glob_add_path=e.asm.ka).apply(null,arguments)},da=e._duckdb_web_clear_response=function(){return(da=e._duckdb_web_clear_response=e.asm.la).apply(null,arguments)},pa=e._duckdb_web_fail_with=function(){return(pa=e._duckdb_web_fail_with=e.asm.ma).apply(null,arguments)},ya=e._duckdb_web_reset=function(){return(ya=e._duckdb_web_reset=e.asm.na).apply(null,arguments)},ha=e._duckdb_web_connect=function(){return(ha=e._duckdb_web_connect=e.asm.oa).apply(null,arguments)},ma=e._duckdb_web_disconnect=function(){return(ma=e._duckdb_web_disconnect=e.asm.pa).apply(null,arguments)},va=e._duckdb_web_flush_files=function(){return(va=e._duckdb_web_flush_files=e.asm.qa).apply(null,arguments)},ga=e._duckdb_web_flush_file=function(){return(ga=e._duckdb_web_flush_file=e.asm.ra).apply(null,arguments)},nr=e._duckdb_web_open=function(){return(nr=e._duckdb_web_open=e.asm.sa).apply(null,arguments)},ba=e._duckdb_web_get_global_file_info=function(){return(ba=e._duckdb_web_get_global_file_info=e.asm.ta).apply(null,arguments)},ja=e._duckdb_web_collect_file_stats=function(){return(ja=e._duckdb_web_collect_file_stats=e.asm.ua).apply(null,arguments)},wa=e._duckdb_web_export_file_stats=function(){return(wa=e._duckdb_web_export_file_stats=e.asm.va).apply(null,arguments)},ar=e._duckdb_web_fs_drop_file=function(){return(ar=e._duckdb_web_fs_drop_file=e.asm.wa).apply(null,arguments)},ka=e._duckdb_web_fs_drop_files=function(){return(ka=e._duckdb_web_fs_drop_files=e.asm.xa).apply(null,arguments)},yi=e._duckdb_web_fs_glob_file_infos=function(){return(yi=e._duckdb_web_fs_glob_file_infos=e.asm.ya).apply(null,arguments)},hi=e._duckdb_web_fs_get_file_info_by_id=function(){return(hi=e._duckdb_web_fs_get_file_info_by_id=e.asm.za).apply(null,arguments)},Ca=e._duckdb_web_fs_get_file_info_by_name=function(){return(Ca=e._duckdb_web_fs_get_file_info_by_name=e.asm.Aa).apply(null,arguments)},Sa=e._duckdb_web_fs_set_file_descriptor=function(){return(Sa=e._duckdb_web_fs_set_file_descriptor=e.asm.Ba).apply(null,arguments)},Ea=e._duckdb_web_fs_register_file_url=function(){return(Ea=e._duckdb_web_fs_register_file_url=e.asm.Ca).apply(null,arguments)},Aa=e._duckdb_web_fs_register_file_buffer=function(){return(Aa=e._duckdb_web_fs_register_file_buffer=e.asm.Da).apply(null,arguments)},Ra=e._duckdb_web_copy_file_to_buffer=function(){return(Ra=e._duckdb_web_copy_file_to_buffer=e.asm.Ea).apply(null,arguments)},zo=e._duckdb_web_copy_file_to_path=function(){return(zo=e._duckdb_web_copy_file_to_path=e.asm.Fa).apply(null,arguments)},Ta=e._duckdb_web_get_version=function(){return(Ta=e._duckdb_web_get_version=e.asm.Ga).apply(null,arguments)},Da=e._duckdb_web_get_feature_flags=function(){return(Da=e._duckdb_web_get_feature_flags=e.asm.Ha).apply(null,arguments)},Pa=e._duckdb_web_tokenize=function(){return(Pa=e._duckdb_web_tokenize=e.asm.Ia).apply(null,arguments)},xa=e._duckdb_web_udf_scalar_create=function(){return(xa=e._duckdb_web_udf_scalar_create=e.asm.Ja).apply(null,arguments)},Oa=e._duckdb_web_prepared_create=function(){return(Oa=e._duckdb_web_prepared_create=e.asm.Ka).apply(null,arguments)},Fa=e._duckdb_web_prepared_close=function(){return(Fa=e._duckdb_web_prepared_close=e.asm.La).apply(null,arguments)},Na=e._duckdb_web_prepared_run=function(){return(Na=e._duckdb_web_prepared_run=e.asm.Ma).apply(null,arguments)},Ma=e._duckdb_web_prepared_send=function(){return(Ma=e._duckdb_web_prepared_send=e.asm.Na).apply(null,arguments)},Ia=e._duckdb_web_query_run=function(){return(Ia=e._duckdb_web_query_run=e.asm.Oa).apply(null,arguments)},Ba=e._duckdb_web_pending_query_start=function(){return(Ba=e._duckdb_web_pending_query_start=e.asm.Pa).apply(null,arguments)},La=e._duckdb_web_pending_query_poll=function(){return(La=e._duckdb_web_pending_query_poll=e.asm.Qa).apply(null,arguments)},Ua=e._duckdb_web_pending_query_cancel=function(){return(Ua=e._duckdb_web_pending_query_cancel=e.asm.Ra).apply(null,arguments)},Ha=e._duckdb_web_query_fetch_results=function(){return(Ha=e._duckdb_web_query_fetch_results=e.asm.Sa).apply(null,arguments)},qa=e._duckdb_web_get_tablenames=function(){return(qa=e._duckdb_web_get_tablenames=e.asm.Ta).apply(null,arguments)},Wa=e._duckdb_web_insert_arrow_from_ipc_stream=function(){return(Wa=e._duckdb_web_insert_arrow_from_ipc_stream=e.asm.Ua).apply(null,arguments)},$a=e._duckdb_web_insert_csv_from_path=function(){return($a=e._duckdb_web_insert_csv_from_path=e.asm.Va).apply(null,arguments)},Ga=e._duckdb_web_insert_json_from_path=function(){return(Ga=e._duckdb_web_insert_json_from_path=e.asm.Wa).apply(null,arguments)},sr=e._htonl=function(){return(sr=e._htonl=e.asm.Xa).apply(null,arguments)},or=e._htons=function(){return(or=e._htons=e.asm.Ya).apply(null,arguments)},Fr=e._ntohs=function(){return(Fr=e._ntohs=e.asm.Za).apply(null,arguments)},Nr=e._malloc=function(){return(Nr=e._malloc=e.asm._a).apply(null,arguments)},Ka=e._free=function(){return(Ka=e._free=e.asm.$a).apply(null,arguments)},mi=e.stackSave=function(){return(mi=e.stackSave=e.asm.ab).apply(null,arguments)},vi=e.stackRestore=function(){return(vi=e.stackRestore=e.asm.bb).apply(null,arguments)},Mr=e.stackAlloc=function(){return(Mr=e.stackAlloc=e.asm.cb).apply(null,arguments)};e.ccall=D;var ur;function lr(h){this.name="ExitStatus",this.message="Program terminated with exit("+h+")",this.status=h}var Va=!1;Bt=function h(){ur||Ir(),ur||(Bt=h)};function Ya(h){var g=e._main,C=0,T=0;try{var M=g(C,T);return Qa(M,!0),M}catch(X){return Jt(X)}finally{Va=!0}}function Ir(h){if(h=h||v,wt>0||(Qr(),wt>0))return;function g(){ur||(ur=!0,e.calledRun=!0,!F&&(on(),zr(),u(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),gi&&Ya(h),un()))}e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),g()},1)):g()}e.run=Ir;function Qa(h,g){ue=h,za(h)}function za(h){ue=h,Yr()||(e.onExit&&e.onExit(h),F=!0),A(h,new lr(h))}if(e.preInit)for(typeof e.preInit=="function"&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();var gi=!0;return e.noInitialRun&&(gi=!1),Ir(),t.ready}})(),Tp=Dw;var sn=class extends wr{constructor(t,e,u,d=null){super(t,e,u,d)}instantiateImpl(t){return Tp({...t,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}};async function Pw(r,t,e){return(await Di()).wasmExceptions&&r.eh?new sn(t,e,r.eh.mainModule):new an(t,e,r.mvp.mainModule)}0&&(module.exports={ConsoleLogger,DEFAULT_RUNTIME,DuckDBBindingsBase,DuckDBConnection,DuckDBDataProtocol,DuckDBFeature,FileFlags,FileStatistics,JSONTableShape,LogEvent,LogLevel,LogOrigin,LogTopic,NODE_RUNTIME,PACKAGE_NAME,PACKAGE_VERSION,PACKAGE_VERSION_MAJOR,PACKAGE_VERSION_MINOR,PACKAGE_VERSION_PATCH,PreparedStatement,ResultStreamIterator,StatusCode,VoidLogger,callSRet,copyBuffer,createDuckDB,decodeText,dropResponseBuffers,failWith,getJsDelivrBundles,getLogEventLabel,getLogLevelLabel,getLogOriginLabel,getLogTopicLabel,getPlatformFeatures,isFirefox,isNode,isSafari,readString,selectBundle});
5
5
  /*!
6
6
  * fill-range <https://github.com/jonschlinkert/fill-range>
7
7
  *