From 0d93c4da7de5bfcd59693cd020648031931df73d Mon Sep 17 00:00:00 2001 From: nightfall <16275538+miracle2012@user.noreply.gitee.com> Date: Fri, 12 Jun 2026 16:23:13 +0800 Subject: [PATCH] fix linter warnings: remove !important, fix unsafe innerHTML, update minAppVersion, replace static styles with CSS classes, add qs dependency, use FileManager.trashFile --- main.js | 84 ++++++++++++++++++++--------------------- manifest.json | 4 +- package.json | 1 + src/baseTypes.ts | 16 -------- src/fsLocal.ts | 12 +++++- src/localdb.ts | 8 ++-- src/main.ts | 15 ++++---- src/remoteForWebdav.ts | 17 ++++----- src/settings.ts | 14 +++---- src/sync.ts | 3 ++ src/syncAlgoV2Notice.ts | 4 +- src/types/pako.d.ts | 8 ++-- styles.css | 54 +++++++++++++++++--------- tsconfig.json | 2 +- 14 files changed, 130 insertions(+), 112 deletions(-) diff --git a/main.js b/main.js index df8f5f4..36dd2ea 100644 --- a/main.js +++ b/main.js @@ -3,68 +3,68 @@ THIS IS A GENERATED/BUNDLED FILE BY ESBUILD if you want to view the source, please visit the github repository of this plugin */ -var D5=Object.create;var Pc=Object.defineProperty;var S5=Object.getOwnPropertyDescriptor;var C5=Object.getOwnPropertyNames;var T5=Object.getPrototypeOf,A5=Object.prototype.hasOwnProperty;var OE=e=>{throw TypeError(e)};var R5=(e,t,n)=>t in e?Pc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Fs=(e,t)=>()=>(e&&(t=e(e=0)),t);var F=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),FE=(e,t)=>{for(var n in t)Pc(e,n,{get:t[n],enumerable:!0})},BE=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of C5(t))!A5.call(e,i)&&i!==n&&Pc(e,i,{get:()=>t[i],enumerable:!(r=S5(t,i))||r.enumerable});return e};var at=(e,t,n)=>(n=e!=null?D5(T5(e)):{},BE(t||!e||!e.__esModule?Pc(n,"default",{value:e,enumerable:!0}):n,e)),k5=e=>BE(Pc({},"__esModule",{value:!0}),e);var S=(e,t,n)=>R5(e,typeof t!="symbol"?t+"":t,n),Yg=(e,t,n)=>t.has(e)||OE("Cannot "+n);var Y=(e,t,n)=>(Yg(e,t,"read from private field"),n?n.call(e):t.get(e)),Ht=(e,t,n)=>t.has(e)?OE("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ne=(e,t,n,r)=>(Yg(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ke=(e,t,n)=>(Yg(e,t,"access private method"),n);var NE=F(bp=>{"use strict";c();bp.byteLength=F5;bp.toByteArray=I5;bp.fromByteArray=M5;var jr=[],ir=[],O5=typeof Uint8Array!="undefined"?Uint8Array:Array,Xg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Bs=0,IE=Xg.length;Bs0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function F5(e){var t=PE(e),n=t[0],r=t[1];return(n+r)*3/4-r}function B5(e,t,n){return(t+n)*3/4-n}function I5(e){var t,n=PE(e),r=n[0],i=n[1],s=new O5(B5(e,r,i)),o=0,a=i>0?r-4:r,l;for(l=0;l>16&255,s[o++]=t>>8&255,s[o++]=t&255;return i===2&&(t=ir[e.charCodeAt(l)]<<2|ir[e.charCodeAt(l+1)]>>4,s[o++]=t&255),i===1&&(t=ir[e.charCodeAt(l)]<<10|ir[e.charCodeAt(l+1)]<<4|ir[e.charCodeAt(l+2)]>>2,s[o++]=t>>8&255,s[o++]=t&255),s}function P5(e){return jr[e>>18&63]+jr[e>>12&63]+jr[e>>6&63]+jr[e&63]}function N5(e,t,n){for(var r,i=[],s=t;sa?a:o+s));return r===1?(t=e[n-1],i.push(jr[t>>2]+jr[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(jr[t>>10]+jr[t>>4&63]+jr[t<<2&63]+"=")),i.join("")}});var ME=F(Zg=>{c();Zg.read=function(e,t,n,r,i){var s,o,a=i*8-r-1,l=(1<>1,p=-7,d=n?i-1:0,f=n?-1:1,m=e[t+d];for(d+=f,s=m&(1<<-p)-1,m>>=-p,p+=a;p>0;s=s*256+e[t+d],d+=f,p-=8);for(o=s&(1<<-p)-1,s>>=-p,p+=r;p>0;o=o*256+e[t+d],d+=f,p-=8);if(s===0)s=1-u;else{if(s===l)return o?NaN:(m?-1:1)*(1/0);o=o+Math.pow(2,r),s=s-u}return(m?-1:1)*o*Math.pow(2,s-r)};Zg.write=function(e,t,n,r,i,s){var o,a,l,u=s*8-i-1,p=(1<>1,f=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=r?0:s-1,g=r?1:-1,x=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=p):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=p?(a=0,o=p):o+d>=1?(a=(t*l-1)*Math.pow(2,i),o=o+d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+m]=a&255,m+=g,a/=256,i-=8);for(o=o<0;e[n+m]=o&255,m+=g,o/=256,u-=8);e[n+m-g]|=x*128}});var Sr=F(qo=>{"use strict";c();var Qg=NE(),jo=ME(),LE=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;qo.Buffer=q;qo.SlowBuffer=q5;qo.INSPECT_MAX_BYTES=50;var _p=2147483647;qo.kMaxLength=_p;q.TYPED_ARRAY_SUPPORT=L5();!q.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function L5(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(e){return!1}}Object.defineProperty(q.prototype,"parent",{enumerable:!0,get:function(){if(q.isBuffer(this))return this.buffer}});Object.defineProperty(q.prototype,"offset",{enumerable:!0,get:function(){if(q.isBuffer(this))return this.byteOffset}});function fi(e){if(e>_p)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,q.prototype),t}function q(e,t,n){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ny(e)}return zE(e,t,n)}q.poolSize=8192;function zE(e,t,n){if(typeof e=="string")return U5(e,t);if(ArrayBuffer.isView(e))return j5(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(zr(e,ArrayBuffer)||e&&zr(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(zr(e,SharedArrayBuffer)||e&&zr(e.buffer,SharedArrayBuffer)))return ey(e,t,n);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return q.from(r,t,n);let i=z5(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return q.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}q.from=function(e,t,n){return zE(e,t,n)};Object.setPrototypeOf(q.prototype,Uint8Array.prototype);Object.setPrototypeOf(q,Uint8Array);function qE(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function $5(e,t,n){return qE(e),e<=0?fi(e):t!==void 0?typeof n=="string"?fi(e).fill(t,n):fi(e).fill(t):fi(e)}q.alloc=function(e,t,n){return $5(e,t,n)};function ny(e){return qE(e),fi(e<0?0:ry(e)|0)}q.allocUnsafe=function(e){return ny(e)};q.allocUnsafeSlow=function(e){return ny(e)};function U5(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!q.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let n=HE(e,t)|0,r=fi(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function Jg(e){let t=e.length<0?0:ry(e.length)|0,n=fi(t);for(let r=0;r=_p)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_p.toString(16)+" bytes");return e|0}function q5(e){return+e!=e&&(e=0),q.alloc(+e)}q.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==q.prototype};q.compare=function(t,n){if(zr(t,Uint8Array)&&(t=q.from(t,t.offset,t.byteLength)),zr(n,Uint8Array)&&(n=q.from(n,n.offset,n.byteLength)),!q.isBuffer(t)||!q.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===n)return 0;let r=t.length,i=n.length;for(let s=0,o=Math.min(r,i);si.length?(q.isBuffer(o)||(o=q.from(o)),o.copy(i,s)):Uint8Array.prototype.set.call(i,o,s);else if(q.isBuffer(o))o.copy(i,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=o.length}return i};function HE(e,t){if(q.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||zr(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return ty(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return JE(e).length;default:if(i)return r?-1:ty(e).length;t=(""+t).toLowerCase(),i=!0}}q.byteLength=HE;function H5(e,t,n){let r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return ej(this,t,n);case"utf8":case"utf-8":return VE(this,t,n);case"ascii":return Q5(this,t,n);case"latin1":case"binary":return J5(this,t,n);case"base64":return X5(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return tj(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}q.prototype._isBuffer=!0;function Is(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}q.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let n=0;nn&&(t+=" ... "),""};LE&&(q.prototype[LE]=q.prototype.inspect);q.prototype.compare=function(t,n,r,i,s){if(zr(t,Uint8Array)&&(t=q.from(t,t.offset,t.byteLength)),!q.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(n===void 0&&(n=0),r===void 0&&(r=t?t.length:0),i===void 0&&(i=0),s===void 0&&(s=this.length),n<0||r>t.length||i<0||s>this.length)throw new RangeError("out of range index");if(i>=s&&n>=r)return 0;if(i>=s)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,i>>>=0,s>>>=0,this===t)return 0;let o=s-i,a=r-n,l=Math.min(o,a),u=this.slice(i,s),p=t.slice(n,r);for(let d=0;d2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,sy(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t=="string"&&(t=q.from(t,r)),q.isBuffer(t))return t.length===0?-1:$E(e,t,n,r,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):$E(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function $E(e,t,n,r,i){let s=1,o=e.length,a=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(e.length<2||t.length<2)return-1;s=2,o/=2,a/=2,n/=2}function l(p,d){return s===1?p[d]:p.readUInt16BE(d*s)}let u;if(i){let p=-1;for(u=n;uo&&(n=o-a),u=n;u>=0;u--){let p=!0;for(let d=0;di&&(r=i)):r=i;let s=t.length;r>s/2&&(r=s/2);let o;for(o=0;o>>0,isFinite(r)?(r=r>>>0,i===void 0&&(i="utf8")):(i=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let s=this.length-n;if((r===void 0||r>s)&&(r=s),t.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let o=!1;for(;;)switch(i){case"hex":return G5(this,t,n,r);case"utf8":case"utf-8":return V5(this,t,n,r);case"ascii":case"latin1":case"binary":return W5(this,t,n,r);case"base64":return K5(this,t,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y5(this,t,n,r);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};q.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function X5(e,t,n){return t===0&&n===e.length?Qg.fromByteArray(e):Qg.fromByteArray(e.slice(t,n))}function VE(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i239?4:s>223?3:s>191?2:1;if(i+a<=n){let l,u,p,d;switch(a){case 1:s<128&&(o=s);break;case 2:l=e[i+1],(l&192)===128&&(d=(s&31)<<6|l&63,d>127&&(o=d));break;case 3:l=e[i+1],u=e[i+2],(l&192)===128&&(u&192)===128&&(d=(s&15)<<12|(l&63)<<6|u&63,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:l=e[i+1],u=e[i+2],p=e[i+3],(l&192)===128&&(u&192)===128&&(p&192)===128&&(d=(s&15)<<18|(l&63)<<12|(u&63)<<6|p&63,d>65535&&d<1114112&&(o=d))}}o===null?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|o&1023),r.push(o),i+=a}return Z5(r)}var UE=4096;function Z5(e){let t=e.length;if(t<=UE)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rr)&&(n=r);let i="";for(let s=t;sr&&(t=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),nn)throw new RangeError("Trying to access beyond buffer length")}q.prototype.readUintLE=q.prototype.readUIntLE=function(t,n,r){t=t>>>0,n=n>>>0,r||Pt(t,n,this.length);let i=this[t],s=1,o=0;for(;++o>>0,n=n>>>0,r||Pt(t,n,this.length);let i=this[t+--n],s=1;for(;n>0&&(s*=256);)i+=this[t+--n]*s;return i};q.prototype.readUint8=q.prototype.readUInt8=function(t,n){return t=t>>>0,n||Pt(t,1,this.length),this[t]};q.prototype.readUint16LE=q.prototype.readUInt16LE=function(t,n){return t=t>>>0,n||Pt(t,2,this.length),this[t]|this[t+1]<<8};q.prototype.readUint16BE=q.prototype.readUInt16BE=function(t,n){return t=t>>>0,n||Pt(t,2,this.length),this[t]<<8|this[t+1]};q.prototype.readUint32LE=q.prototype.readUInt32LE=function(t,n){return t=t>>>0,n||Pt(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};q.prototype.readUint32BE=q.prototype.readUInt32BE=function(t,n){return t=t>>>0,n||Pt(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};q.prototype.readBigUInt64LE=ji(function(t){t=t>>>0,zo(t,"offset");let n=this[t],r=this[t+7];(n===void 0||r===void 0)&&Nc(t,this.length-8);let i=n+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,s=this[++t]+this[++t]*2**8+this[++t]*2**16+r*2**24;return BigInt(i)+(BigInt(s)<>>0,zo(t,"offset");let n=this[t],r=this[t+7];(n===void 0||r===void 0)&&Nc(t,this.length-8);let i=n*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],s=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+r;return(BigInt(i)<>>0,n=n>>>0,r||Pt(t,n,this.length);let i=this[t],s=1,o=0;for(;++o=s&&(i-=Math.pow(2,8*n)),i};q.prototype.readIntBE=function(t,n,r){t=t>>>0,n=n>>>0,r||Pt(t,n,this.length);let i=n,s=1,o=this[t+--i];for(;i>0&&(s*=256);)o+=this[t+--i]*s;return s*=128,o>=s&&(o-=Math.pow(2,8*n)),o};q.prototype.readInt8=function(t,n){return t=t>>>0,n||Pt(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};q.prototype.readInt16LE=function(t,n){t=t>>>0,n||Pt(t,2,this.length);let r=this[t]|this[t+1]<<8;return r&32768?r|4294901760:r};q.prototype.readInt16BE=function(t,n){t=t>>>0,n||Pt(t,2,this.length);let r=this[t+1]|this[t]<<8;return r&32768?r|4294901760:r};q.prototype.readInt32LE=function(t,n){return t=t>>>0,n||Pt(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};q.prototype.readInt32BE=function(t,n){return t=t>>>0,n||Pt(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};q.prototype.readBigInt64LE=ji(function(t){t=t>>>0,zo(t,"offset");let n=this[t],r=this[t+7];(n===void 0||r===void 0)&&Nc(t,this.length-8);let i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(r<<24);return(BigInt(i)<>>0,zo(t,"offset");let n=this[t],r=this[t+7];(n===void 0||r===void 0)&&Nc(t,this.length-8);let i=(n<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<>>0,n||Pt(t,4,this.length),jo.read(this,t,!0,23,4)};q.prototype.readFloatBE=function(t,n){return t=t>>>0,n||Pt(t,4,this.length),jo.read(this,t,!1,23,4)};q.prototype.readDoubleLE=function(t,n){return t=t>>>0,n||Pt(t,8,this.length),jo.read(this,t,!0,52,8)};q.prototype.readDoubleBE=function(t,n){return t=t>>>0,n||Pt(t,8,this.length),jo.read(this,t,!1,52,8)};function On(e,t,n,r,i,s){if(!q.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}q.prototype.writeUintLE=q.prototype.writeUIntLE=function(t,n,r,i){if(t=+t,n=n>>>0,r=r>>>0,!i){let a=Math.pow(2,8*r)-1;On(this,t,n,r,a,0)}let s=1,o=0;for(this[n]=t&255;++o>>0,r=r>>>0,!i){let a=Math.pow(2,8*r)-1;On(this,t,n,r,a,0)}let s=r-1,o=1;for(this[n+s]=t&255;--s>=0&&(o*=256);)this[n+s]=t/o&255;return n+r};q.prototype.writeUint8=q.prototype.writeUInt8=function(t,n,r){return t=+t,n=n>>>0,r||On(this,t,n,1,255,0),this[n]=t&255,n+1};q.prototype.writeUint16LE=q.prototype.writeUInt16LE=function(t,n,r){return t=+t,n=n>>>0,r||On(this,t,n,2,65535,0),this[n]=t&255,this[n+1]=t>>>8,n+2};q.prototype.writeUint16BE=q.prototype.writeUInt16BE=function(t,n,r){return t=+t,n=n>>>0,r||On(this,t,n,2,65535,0),this[n]=t>>>8,this[n+1]=t&255,n+2};q.prototype.writeUint32LE=q.prototype.writeUInt32LE=function(t,n,r){return t=+t,n=n>>>0,r||On(this,t,n,4,4294967295,0),this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=t&255,n+4};q.prototype.writeUint32BE=q.prototype.writeUInt32BE=function(t,n,r){return t=+t,n=n>>>0,r||On(this,t,n,4,4294967295,0),this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255,n+4};function WE(e,t,n,r,i){QE(t,r,i,e,n,7);let s=Number(t&BigInt(4294967295));e[n++]=s,s=s>>8,e[n++]=s,s=s>>8,e[n++]=s,s=s>>8,e[n++]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o=o>>8,e[n++]=o,o=o>>8,e[n++]=o,o=o>>8,e[n++]=o,n}function KE(e,t,n,r,i){QE(t,r,i,e,n,7);let s=Number(t&BigInt(4294967295));e[n+7]=s,s=s>>8,e[n+6]=s,s=s>>8,e[n+5]=s,s=s>>8,e[n+4]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o=o>>8,e[n+2]=o,o=o>>8,e[n+1]=o,o=o>>8,e[n]=o,n+8}q.prototype.writeBigUInt64LE=ji(function(t,n=0){return WE(this,t,n,BigInt(0),BigInt("0xffffffffffffffff"))});q.prototype.writeBigUInt64BE=ji(function(t,n=0){return KE(this,t,n,BigInt(0),BigInt("0xffffffffffffffff"))});q.prototype.writeIntLE=function(t,n,r,i){if(t=+t,n=n>>>0,!i){let l=Math.pow(2,8*r-1);On(this,t,n,r,l-1,-l)}let s=0,o=1,a=0;for(this[n]=t&255;++s>0)-a&255;return n+r};q.prototype.writeIntBE=function(t,n,r,i){if(t=+t,n=n>>>0,!i){let l=Math.pow(2,8*r-1);On(this,t,n,r,l-1,-l)}let s=r-1,o=1,a=0;for(this[n+s]=t&255;--s>=0&&(o*=256);)t<0&&a===0&&this[n+s+1]!==0&&(a=1),this[n+s]=(t/o>>0)-a&255;return n+r};q.prototype.writeInt8=function(t,n,r){return t=+t,n=n>>>0,r||On(this,t,n,1,127,-128),t<0&&(t=255+t+1),this[n]=t&255,n+1};q.prototype.writeInt16LE=function(t,n,r){return t=+t,n=n>>>0,r||On(this,t,n,2,32767,-32768),this[n]=t&255,this[n+1]=t>>>8,n+2};q.prototype.writeInt16BE=function(t,n,r){return t=+t,n=n>>>0,r||On(this,t,n,2,32767,-32768),this[n]=t>>>8,this[n+1]=t&255,n+2};q.prototype.writeInt32LE=function(t,n,r){return t=+t,n=n>>>0,r||On(this,t,n,4,2147483647,-2147483648),this[n]=t&255,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24,n+4};q.prototype.writeInt32BE=function(t,n,r){return t=+t,n=n>>>0,r||On(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255,n+4};q.prototype.writeBigInt64LE=ji(function(t,n=0){return WE(this,t,n,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});q.prototype.writeBigInt64BE=ji(function(t,n=0){return KE(this,t,n,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function YE(e,t,n,r,i,s){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function XE(e,t,n,r,i){return t=+t,n=n>>>0,i||YE(e,t,n,4,34028234663852886e22,-34028234663852886e22),jo.write(e,t,n,r,23,4),n+4}q.prototype.writeFloatLE=function(t,n,r){return XE(this,t,n,!0,r)};q.prototype.writeFloatBE=function(t,n,r){return XE(this,t,n,!1,r)};function ZE(e,t,n,r,i){return t=+t,n=n>>>0,i||YE(e,t,n,8,17976931348623157e292,-17976931348623157e292),jo.write(e,t,n,r,52,8),n+8}q.prototype.writeDoubleLE=function(t,n,r){return ZE(this,t,n,!0,r)};q.prototype.writeDoubleBE=function(t,n,r){return ZE(this,t,n,!1,r)};q.prototype.copy=function(t,n,r,i){if(!q.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),!i&&i!==0&&(i=this.length),n>=t.length&&(n=t.length),n||(n=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-n>>0,r=r===void 0?this.length:r>>>0,t||(t=0);let s;if(typeof t=="number")for(s=n;s2**32?i=jE(String(n)):typeof n=="bigint"&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=jE(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r},RangeError);function jE(e){let t="",n=e.length,r=e[0]==="-"?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function nj(e,t,n){zo(t,"offset"),(e[t]===void 0||e[t+n]===void 0)&&Nc(t,e.length-(n+1))}function QE(e,t,n,r,i,s){if(e>n||e3?t===0||t===BigInt(0)?a=`>= 0${o} and < 2${o} ** ${(s+1)*8}${o}`:a=`>= -(2${o} ** ${(s+1)*8-1}${o}) and < 2 ** ${(s+1)*8-1}${o}`:a=`>= ${t}${o} and <= ${n}${o}`,new Uo.ERR_OUT_OF_RANGE("value",a,e)}nj(r,i,s)}function zo(e,t){if(typeof e!="number")throw new Uo.ERR_INVALID_ARG_TYPE(t,"number",e)}function Nc(e,t,n){throw Math.floor(e)!==e?(zo(e,n),new Uo.ERR_OUT_OF_RANGE(n||"offset","an integer",e)):t<0?new Uo.ERR_BUFFER_OUT_OF_BOUNDS:new Uo.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}var rj=/[^+/0-9A-Za-z-_]/g;function ij(e){if(e=e.split("=")[0],e=e.trim().replace(rj,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function ty(e,t){t=t||1/0;let n,r=e.length,i=null,s=[];for(let o=0;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&s.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return s}function sj(e){let t=[];for(let n=0;n>8,i=n%256,s.push(i),s.push(r);return s}function JE(e){return Qg.toByteArray(ij(e))}function wp(e,t,n,r){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function zr(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function sy(e){return e!==e}var aj=(function(){let e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){let r=n*16;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t})();function ji(e){return typeof BigInt=="undefined"?cj:e}function cj(){throw new Error("BigInt not supported")}});var h,c=Fs(()=>{h=at(Sr())});var t1=F((DSe,e1)=>{c();function uj(){this.__data__=[],this.size=0}e1.exports=uj});var Mc=F((CSe,n1)=>{c();function lj(e,t){return e===t||e!==e&&t!==t}n1.exports=lj});var Lc=F((ASe,r1)=>{c();var pj=Mc();function dj(e,t){for(var n=e.length;n--;)if(pj(e[n][0],t))return n;return-1}r1.exports=dj});var s1=F((kSe,i1)=>{c();var fj=Lc(),mj=Array.prototype,hj=mj.splice;function gj(e){var t=this.__data__,n=fj(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():hj.call(t,n,1),--this.size,!0}i1.exports=gj});var a1=F((FSe,o1)=>{c();var yj=Lc();function xj(e){var t=this.__data__,n=yj(t,e);return n<0?void 0:t[n][1]}o1.exports=xj});var u1=F((ISe,c1)=>{c();var vj=Lc();function bj(e){return vj(this.__data__,e)>-1}c1.exports=bj});var p1=F((NSe,l1)=>{c();var _j=Lc();function wj(e,t){var n=this.__data__,r=_j(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}l1.exports=wj});var $c=F((LSe,d1)=>{c();var Ej=t1(),Dj=s1(),Sj=a1(),Cj=u1(),Tj=p1();function Ho(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{c();var Aj=$c();function Rj(){this.__data__=new Aj,this.size=0}f1.exports=Rj});var g1=F((zSe,h1)=>{c();function kj(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}h1.exports=kj});var x1=F((HSe,y1)=>{c();function Oj(e){return this.__data__.get(e)}y1.exports=Oj});var b1=F((VSe,v1)=>{c();function Fj(e){return this.__data__.has(e)}v1.exports=Fj});var oy=F((KSe,_1)=>{c();var Bj=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis;_1.exports=Bj});var Cr=F((XSe,w1)=>{c();var Ij=oy(),Pj=typeof self=="object"&&self&&self.Object===Object&&self,Nj=Ij||Pj||Function("return this")();w1.exports=Nj});var Go=F((QSe,E1)=>{c();var Mj=Cr(),Lj=Mj.Symbol;E1.exports=Lj});var T1=F((eCe,C1)=>{c();var D1=Go(),S1=Object.prototype,$j=S1.hasOwnProperty,Uj=S1.toString,Uc=D1?D1.toStringTag:void 0;function jj(e){var t=$j.call(e,Uc),n=e[Uc];try{e[Uc]=void 0;var r=!0}catch(s){}var i=Uj.call(e);return r&&(t?e[Uc]=n:delete e[Uc]),i}C1.exports=jj});var R1=F((nCe,A1)=>{c();var zj=Object.prototype,qj=zj.toString;function Hj(e){return qj.call(e)}A1.exports=Hj});var Vo=F((iCe,F1)=>{c();var k1=Go(),Gj=T1(),Vj=R1(),Wj="[object Null]",Kj="[object Undefined]",O1=k1?k1.toStringTag:void 0;function Yj(e){return e==null?e===void 0?Kj:Wj:O1&&O1 in Object(e)?Gj(e):Vj(e)}F1.exports=Yj});var zi=F((oCe,B1)=>{c();function Xj(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}B1.exports=Xj});var ay=F((cCe,I1)=>{c();var Zj=Vo(),Qj=zi(),Jj="[object AsyncFunction]",e7="[object Function]",t7="[object GeneratorFunction]",n7="[object Proxy]";function r7(e){if(!Qj(e))return!1;var t=Zj(e);return t==e7||t==t7||t==Jj||t==n7}I1.exports=r7});var N1=F((lCe,P1)=>{c();var i7=Cr(),s7=i7["__core-js_shared__"];P1.exports=s7});var $1=F((dCe,L1)=>{c();var cy=N1(),M1=(function(){var e=/[^.]+$/.exec(cy&&cy.keys&&cy.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function o7(e){return!!M1&&M1 in e}L1.exports=o7});var uy=F((mCe,U1)=>{c();var a7=Function.prototype,c7=a7.toString;function u7(e){if(e!=null){try{return c7.call(e)}catch(t){}try{return e+""}catch(t){}}return""}U1.exports=u7});var z1=F((gCe,j1)=>{c();var l7=ay(),p7=$1(),d7=zi(),f7=uy(),m7=/[\\^$.*+?()[\]{}|]/g,h7=/^\[object .+?Constructor\]$/,g7=Function.prototype,y7=Object.prototype,x7=g7.toString,v7=y7.hasOwnProperty,b7=RegExp("^"+x7.call(v7).replace(m7,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _7(e){if(!d7(e)||p7(e))return!1;var t=l7(e)?b7:h7;return t.test(f7(e))}j1.exports=_7});var H1=F((xCe,q1)=>{c();function w7(e,t){return e==null?void 0:e[t]}q1.exports=w7});var qi=F((bCe,G1)=>{c();var E7=z1(),D7=H1();function S7(e,t){var n=D7(e,t);return E7(n)?n:void 0}G1.exports=S7});var Ep=F((wCe,V1)=>{c();var C7=qi(),T7=Cr(),A7=C7(T7,"Map");V1.exports=A7});var jc=F((DCe,W1)=>{c();var R7=qi(),k7=R7(Object,"create");W1.exports=k7});var X1=F((CCe,Y1)=>{c();var K1=jc();function O7(){this.__data__=K1?K1(null):{},this.size=0}Y1.exports=O7});var Q1=F((ACe,Z1)=>{c();function F7(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}Z1.exports=F7});var eD=F((kCe,J1)=>{c();var B7=jc(),I7="__lodash_hash_undefined__",P7=Object.prototype,N7=P7.hasOwnProperty;function M7(e){var t=this.__data__;if(B7){var n=t[e];return n===I7?void 0:n}return N7.call(t,e)?t[e]:void 0}J1.exports=M7});var nD=F((FCe,tD)=>{c();var L7=jc(),$7=Object.prototype,U7=$7.hasOwnProperty;function j7(e){var t=this.__data__;return L7?t[e]!==void 0:U7.call(t,e)}tD.exports=j7});var iD=F((ICe,rD)=>{c();var z7=jc(),q7="__lodash_hash_undefined__";function H7(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=z7&&t===void 0?q7:t,this}rD.exports=H7});var oD=F((NCe,sD)=>{c();var G7=X1(),V7=Q1(),W7=eD(),K7=nD(),Y7=iD();function Wo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{c();var aD=oD(),X7=$c(),Z7=Ep();function Q7(){this.size=0,this.__data__={hash:new aD,map:new(Z7||X7),string:new aD}}cD.exports=Q7});var pD=F((UCe,lD)=>{c();function J7(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}lD.exports=J7});var zc=F((zCe,dD)=>{c();var e9=pD();function t9(e,t){var n=e.__data__;return e9(t)?n[typeof t=="string"?"string":"hash"]:n.map}dD.exports=t9});var mD=F((HCe,fD)=>{c();var n9=zc();function r9(e){var t=n9(this,e).delete(e);return this.size-=t?1:0,t}fD.exports=r9});var gD=F((VCe,hD)=>{c();var i9=zc();function s9(e){return i9(this,e).get(e)}hD.exports=s9});var xD=F((KCe,yD)=>{c();var o9=zc();function a9(e){return o9(this,e).has(e)}yD.exports=a9});var bD=F((XCe,vD)=>{c();var c9=zc();function u9(e,t){var n=c9(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}vD.exports=u9});var ly=F((QCe,_D)=>{c();var l9=uD(),p9=mD(),d9=gD(),f9=xD(),m9=bD();function Ko(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{c();var h9=$c(),g9=Ep(),y9=ly(),x9=200;function v9(e,t){var n=this.__data__;if(n instanceof h9){var r=n.__data__;if(!g9||r.length{c();var b9=$c(),_9=m1(),w9=g1(),E9=x1(),D9=b1(),S9=ED();function Yo(e){var t=this.__data__=new b9(e);this.size=t.size}Yo.prototype.clear=_9;Yo.prototype.delete=w9;Yo.prototype.get=E9;Yo.prototype.has=D9;Yo.prototype.set=S9;DD.exports=Yo});var CD=F((iTe,SD)=>{c();function C9(e,t){for(var n=-1,r=e==null?0:e.length;++n{c();var T9=qi(),A9=(function(){try{var e=T9(Object,"defineProperty");return e({},"",{}),e}catch(t){}})();TD.exports=A9});var dy=F((cTe,kD)=>{c();var RD=AD();function R9(e,t,n){t=="__proto__"&&RD?RD(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}kD.exports=R9});var fy=F((lTe,OD)=>{c();var k9=dy(),O9=Mc(),F9=Object.prototype,B9=F9.hasOwnProperty;function I9(e,t,n){var r=e[t];(!(B9.call(e,t)&&O9(r,n))||n===void 0&&!(t in e))&&k9(e,t,n)}OD.exports=I9});var qc=F((dTe,FD)=>{c();var P9=fy(),N9=dy();function M9(e,t,n,r){var i=!n;n||(n={});for(var s=-1,o=t.length;++s{c();function L9(e,t){for(var n=-1,r=Array(e);++n{c();function $9(e){return e!=null&&typeof e=="object"}PD.exports=$9});var MD=F((xTe,ND)=>{c();var U9=Vo(),j9=Hi(),z9="[object Arguments]";function q9(e){return j9(e)&&U9(e)==z9}ND.exports=q9});var my=F((bTe,UD)=>{c();var LD=MD(),H9=Hi(),$D=Object.prototype,G9=$D.hasOwnProperty,V9=$D.propertyIsEnumerable,W9=LD((function(){return arguments})())?LD:function(e){return H9(e)&&G9.call(e,"callee")&&!V9.call(e,"callee")};UD.exports=W9});var Xo=F((wTe,jD)=>{c();var K9=Array.isArray;jD.exports=K9});var qD=F((DTe,zD)=>{c();function Y9(){return!1}zD.exports=Y9});var Dp=F((Hc,Zo)=>{c();var X9=Cr(),Z9=qD(),VD=typeof Hc=="object"&&Hc&&!Hc.nodeType&&Hc,HD=VD&&typeof Zo=="object"&&Zo&&!Zo.nodeType&&Zo,Q9=HD&&HD.exports===VD,GD=Q9?X9.Buffer:void 0,J9=GD?GD.isBuffer:void 0,ez=J9||Z9;Zo.exports=ez});var hy=F((TTe,WD)=>{c();var tz=9007199254740991,nz=/^(?:0|[1-9]\d*)$/;function rz(e,t){var n=typeof e;return t=t==null?tz:t,!!t&&(n=="number"||n!="symbol"&&nz.test(e))&&e>-1&&e%1==0&&e{c();var iz=9007199254740991;function sz(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=iz}KD.exports=sz});var XD=F((OTe,YD)=>{c();var oz=Vo(),az=gy(),cz=Hi(),uz="[object Arguments]",lz="[object Array]",pz="[object Boolean]",dz="[object Date]",fz="[object Error]",mz="[object Function]",hz="[object Map]",gz="[object Number]",yz="[object Object]",xz="[object RegExp]",vz="[object Set]",bz="[object String]",_z="[object WeakMap]",wz="[object ArrayBuffer]",Ez="[object DataView]",Dz="[object Float32Array]",Sz="[object Float64Array]",Cz="[object Int8Array]",Tz="[object Int16Array]",Az="[object Int32Array]",Rz="[object Uint8Array]",kz="[object Uint8ClampedArray]",Oz="[object Uint16Array]",Fz="[object Uint32Array]",tt={};tt[Dz]=tt[Sz]=tt[Cz]=tt[Tz]=tt[Az]=tt[Rz]=tt[kz]=tt[Oz]=tt[Fz]=!0;tt[uz]=tt[lz]=tt[wz]=tt[pz]=tt[Ez]=tt[dz]=tt[fz]=tt[mz]=tt[hz]=tt[gz]=tt[yz]=tt[xz]=tt[vz]=tt[bz]=tt[_z]=!1;function Bz(e){return cz(e)&&az(e.length)&&!!tt[oz(e)]}YD.exports=Bz});var Sp=F((BTe,ZD)=>{c();function Iz(e){return function(t){return e(t)}}ZD.exports=Iz});var Cp=F((Gc,Qo)=>{c();var Pz=oy(),QD=typeof Gc=="object"&&Gc&&!Gc.nodeType&&Gc,Vc=QD&&typeof Qo=="object"&&Qo&&!Qo.nodeType&&Qo,Nz=Vc&&Vc.exports===QD,yy=Nz&&Pz.process,Mz=(function(){try{var e=Vc&&Vc.require&&Vc.require("util").types;return e||yy&&yy.binding&&yy.binding("util")}catch(t){}})();Qo.exports=Mz});var xy=F((NTe,tS)=>{c();var Lz=XD(),$z=Sp(),JD=Cp(),eS=JD&&JD.isTypedArray,Uz=eS?$z(eS):Lz;tS.exports=Uz});var vy=F((LTe,nS)=>{c();var jz=ID(),zz=my(),qz=Xo(),Hz=Dp(),Gz=hy(),Vz=xy(),Wz=Object.prototype,Kz=Wz.hasOwnProperty;function Yz(e,t){var n=qz(e),r=!n&&zz(e),i=!n&&!r&&Hz(e),s=!n&&!r&&!i&&Vz(e),o=n||r||i||s,a=o?jz(e.length,String):[],l=a.length;for(var u in e)(t||Kz.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Gz(u,l)))&&a.push(u);return a}nS.exports=Yz});var Tp=F((UTe,rS)=>{c();var Xz=Object.prototype;function Zz(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Xz;return e===n}rS.exports=Zz});var by=F((zTe,iS)=>{c();function Qz(e,t){return function(n){return e(t(n))}}iS.exports=Qz});var oS=F((HTe,sS)=>{c();var Jz=by(),eq=Jz(Object.keys,Object);sS.exports=eq});var cS=F((VTe,aS)=>{c();var tq=Tp(),nq=oS(),rq=Object.prototype,iq=rq.hasOwnProperty;function sq(e){if(!tq(e))return nq(e);var t=[];for(var n in Object(e))iq.call(e,n)&&n!="constructor"&&t.push(n);return t}aS.exports=sq});var Ap=F((KTe,uS)=>{c();var oq=ay(),aq=gy();function cq(e){return e!=null&&aq(e.length)&&!oq(e)}uS.exports=cq});var Rp=F((XTe,lS)=>{c();var uq=vy(),lq=cS(),pq=Ap();function dq(e){return pq(e)?uq(e):lq(e)}lS.exports=dq});var dS=F((QTe,pS)=>{c();var fq=qc(),mq=Rp();function hq(e,t){return e&&fq(t,mq(t),e)}pS.exports=hq});var mS=F((e2e,fS)=>{c();function gq(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}fS.exports=gq});var gS=F((n2e,hS)=>{c();var yq=zi(),xq=Tp(),vq=mS(),bq=Object.prototype,_q=bq.hasOwnProperty;function wq(e){if(!yq(e))return vq(e);var t=xq(e),n=[];for(var r in e)r=="constructor"&&(t||!_q.call(e,r))||n.push(r);return n}hS.exports=wq});var kp=F((i2e,yS)=>{c();var Eq=vy(),Dq=gS(),Sq=Ap();function Cq(e){return Sq(e)?Eq(e,!0):Dq(e)}yS.exports=Cq});var vS=F((o2e,xS)=>{c();var Tq=qc(),Aq=kp();function Rq(e,t){return e&&Tq(t,Aq(t),e)}xS.exports=Rq});var DS=F((Wc,Jo)=>{c();var kq=Cr(),ES=typeof Wc=="object"&&Wc&&!Wc.nodeType&&Wc,bS=ES&&typeof Jo=="object"&&Jo&&!Jo.nodeType&&Jo,Oq=bS&&bS.exports===ES,_S=Oq?kq.Buffer:void 0,wS=_S?_S.allocUnsafe:void 0;function Fq(e,t){if(t)return e.slice();var n=e.length,r=wS?wS(n):new e.constructor(n);return e.copy(r),r}Jo.exports=Fq});var CS=F((u2e,SS)=>{c();function Bq(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n{c();function Iq(e,t){for(var n=-1,r=e==null?0:e.length,i=0,s=[];++n{c();function Pq(){return[]}RS.exports=Pq});var Op=F((h2e,OS)=>{c();var Nq=AS(),Mq=_y(),Lq=Object.prototype,$q=Lq.propertyIsEnumerable,kS=Object.getOwnPropertySymbols,Uq=kS?function(e){return e==null?[]:(e=Object(e),Nq(kS(e),function(t){return $q.call(e,t)}))}:Mq;OS.exports=Uq});var BS=F((y2e,FS)=>{c();var jq=qc(),zq=Op();function qq(e,t){return jq(e,zq(e),t)}FS.exports=qq});var Fp=F((v2e,IS)=>{c();function Hq(e,t){for(var n=-1,r=t.length,i=e.length;++n{c();var Gq=by(),Vq=Gq(Object.getPrototypeOf,Object);PS.exports=Vq});var Ey=F((E2e,NS)=>{c();var Wq=Fp(),Kq=wy(),Yq=Op(),Xq=_y(),Zq=Object.getOwnPropertySymbols,Qq=Zq?function(e){for(var t=[];e;)Wq(t,Yq(e)),e=Kq(e);return t}:Xq;NS.exports=Qq});var LS=F((S2e,MS)=>{c();var Jq=qc(),eH=Ey();function tH(e,t){return Jq(e,eH(e),t)}MS.exports=tH});var Dy=F((T2e,$S)=>{c();var nH=Fp(),rH=Xo();function iH(e,t,n){var r=t(e);return rH(e)?r:nH(r,n(e))}$S.exports=iH});var Sy=F((R2e,US)=>{c();var sH=Dy(),oH=Op(),aH=Rp();function cH(e){return sH(e,aH,oH)}US.exports=cH});var zS=F((O2e,jS)=>{c();var uH=Dy(),lH=Ey(),pH=kp();function dH(e){return uH(e,pH,lH)}jS.exports=dH});var HS=F((B2e,qS)=>{c();var fH=qi(),mH=Cr(),hH=fH(mH,"DataView");qS.exports=hH});var VS=F((P2e,GS)=>{c();var gH=qi(),yH=Cr(),xH=gH(yH,"Promise");GS.exports=xH});var KS=F((M2e,WS)=>{c();var vH=qi(),bH=Cr(),_H=vH(bH,"Set");WS.exports=_H});var XS=F(($2e,YS)=>{c();var wH=qi(),EH=Cr(),DH=wH(EH,"WeakMap");YS.exports=DH});var Kc=F((j2e,rC)=>{c();var Cy=HS(),Ty=Ep(),Ay=VS(),Ry=KS(),ky=XS(),nC=Vo(),ea=uy(),ZS="[object Map]",SH="[object Object]",QS="[object Promise]",JS="[object Set]",eC="[object WeakMap]",tC="[object DataView]",CH=ea(Cy),TH=ea(Ty),AH=ea(Ay),RH=ea(Ry),kH=ea(ky),Ps=nC;(Cy&&Ps(new Cy(new ArrayBuffer(1)))!=tC||Ty&&Ps(new Ty)!=ZS||Ay&&Ps(Ay.resolve())!=QS||Ry&&Ps(new Ry)!=JS||ky&&Ps(new ky)!=eC)&&(Ps=function(e){var t=nC(e),n=t==SH?e.constructor:void 0,r=n?ea(n):"";if(r)switch(r){case CH:return tC;case TH:return ZS;case AH:return QS;case RH:return JS;case kH:return eC}return t});rC.exports=Ps});var sC=F((q2e,iC)=>{c();var OH=Object.prototype,FH=OH.hasOwnProperty;function BH(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&FH.call(e,"index")&&(n.index=e.index,n.input=e.input),n}iC.exports=BH});var Oy=F((G2e,oC)=>{c();var IH=Cr(),PH=IH.Uint8Array;oC.exports=PH});var Bp=F((W2e,cC)=>{c();var aC=Oy();function NH(e){var t=new e.constructor(e.byteLength);return new aC(t).set(new aC(e)),t}cC.exports=NH});var lC=F((Y2e,uC)=>{c();var MH=Bp();function LH(e,t){var n=t?MH(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}uC.exports=LH});var dC=F((Z2e,pC)=>{c();var $H=/\w*$/;function UH(e){var t=new e.constructor(e.source,$H.exec(e));return t.lastIndex=e.lastIndex,t}pC.exports=UH});var yC=F((J2e,gC)=>{c();var fC=Go(),mC=fC?fC.prototype:void 0,hC=mC?mC.valueOf:void 0;function jH(e){return hC?Object(hC.call(e)):{}}gC.exports=jH});var vC=F((tAe,xC)=>{c();var zH=Bp();function qH(e,t){var n=t?zH(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}xC.exports=qH});var _C=F((rAe,bC)=>{c();var HH=Bp(),GH=lC(),VH=dC(),WH=yC(),KH=vC(),YH="[object Boolean]",XH="[object Date]",ZH="[object Map]",QH="[object Number]",JH="[object RegExp]",eG="[object Set]",tG="[object String]",nG="[object Symbol]",rG="[object ArrayBuffer]",iG="[object DataView]",sG="[object Float32Array]",oG="[object Float64Array]",aG="[object Int8Array]",cG="[object Int16Array]",uG="[object Int32Array]",lG="[object Uint8Array]",pG="[object Uint8ClampedArray]",dG="[object Uint16Array]",fG="[object Uint32Array]";function mG(e,t,n){var r=e.constructor;switch(t){case rG:return HH(e);case YH:case XH:return new r(+e);case iG:return GH(e,n);case sG:case oG:case aG:case cG:case uG:case lG:case pG:case dG:case fG:return KH(e,n);case ZH:return new r;case QH:case tG:return new r(e);case JH:return VH(e);case eG:return new r;case nG:return WH(e)}}bC.exports=mG});var DC=F((sAe,EC)=>{c();var hG=zi(),wC=Object.create,gG=(function(){function e(){}return function(t){if(!hG(t))return{};if(wC)return wC(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})();EC.exports=gG});var CC=F((aAe,SC)=>{c();var yG=DC(),xG=wy(),vG=Tp();function bG(e){return typeof e.constructor=="function"&&!vG(e)?yG(xG(e)):{}}SC.exports=bG});var AC=F((uAe,TC)=>{c();var _G=Kc(),wG=Hi(),EG="[object Map]";function DG(e){return wG(e)&&_G(e)==EG}TC.exports=DG});var FC=F((pAe,OC)=>{c();var SG=AC(),CG=Sp(),RC=Cp(),kC=RC&&RC.isMap,TG=kC?CG(kC):SG;OC.exports=TG});var IC=F((fAe,BC)=>{c();var AG=Kc(),RG=Hi(),kG="[object Set]";function OG(e){return RG(e)&&AG(e)==kG}BC.exports=OG});var LC=F((hAe,MC)=>{c();var FG=IC(),BG=Sp(),PC=Cp(),NC=PC&&PC.isSet,IG=NC?BG(NC):FG;MC.exports=IG});var qC=F((yAe,zC)=>{c();var PG=py(),NG=CD(),MG=fy(),LG=dS(),$G=vS(),UG=DS(),jG=CS(),zG=BS(),qG=LS(),HG=Sy(),GG=zS(),VG=Kc(),WG=sC(),KG=_C(),YG=CC(),XG=Xo(),ZG=Dp(),QG=FC(),JG=zi(),eV=LC(),tV=Rp(),nV=kp(),rV=1,iV=2,sV=4,$C="[object Arguments]",oV="[object Array]",aV="[object Boolean]",cV="[object Date]",uV="[object Error]",UC="[object Function]",lV="[object GeneratorFunction]",pV="[object Map]",dV="[object Number]",jC="[object Object]",fV="[object RegExp]",mV="[object Set]",hV="[object String]",gV="[object Symbol]",yV="[object WeakMap]",xV="[object ArrayBuffer]",vV="[object DataView]",bV="[object Float32Array]",_V="[object Float64Array]",wV="[object Int8Array]",EV="[object Int16Array]",DV="[object Int32Array]",SV="[object Uint8Array]",CV="[object Uint8ClampedArray]",TV="[object Uint16Array]",AV="[object Uint32Array]",Ze={};Ze[$C]=Ze[oV]=Ze[xV]=Ze[vV]=Ze[aV]=Ze[cV]=Ze[bV]=Ze[_V]=Ze[wV]=Ze[EV]=Ze[DV]=Ze[pV]=Ze[dV]=Ze[jC]=Ze[fV]=Ze[mV]=Ze[hV]=Ze[gV]=Ze[SV]=Ze[CV]=Ze[TV]=Ze[AV]=!0;Ze[uV]=Ze[UC]=Ze[yV]=!1;function Ip(e,t,n,r,i,s){var o,a=t&rV,l=t&iV,u=t&sV;if(n&&(o=i?n(e,r,i,s):n(e)),o!==void 0)return o;if(!JG(e))return e;var p=XG(e);if(p){if(o=WG(e),!a)return jG(e,o)}else{var d=VG(e),f=d==UC||d==lV;if(ZG(e))return UG(e,a);if(d==jC||d==$C||f&&!i){if(o=l||f?{}:YG(e),!a)return l?qG(e,$G(o,e)):zG(e,LG(o,e))}else{if(!Ze[d])return i?e:{};o=KG(e,d,a)}}s||(s=new PG);var m=s.get(e);if(m)return m;s.set(e,o),eV(e)?e.forEach(function(v){o.add(Ip(v,t,n,v,e,s))}):QG(e)&&e.forEach(function(v,_){o.set(_,Ip(v,t,n,_,e,s))});var g=u?l?GG:HG:l?nV:tV,x=p?void 0:g(e);return NG(x||e,function(v,_){x&&(_=v,v=e[_]),MG(o,_,Ip(v,t,n,_,e,s))}),o}zC.exports=Ip});var Yc=F((vAe,HC)=>{c();var RV=qC(),kV=1,OV=4;function FV(e){return RV(e,kV|OV)}HC.exports=FV});var Wt,l0=Fs(()=>{c();Wt=e=>new TextEncoder().encode(e)});var Ar,S2=Fs(()=>{c();l0();Ar=e=>typeof e=="string"?Wt(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)});var Bn,C2=Fs(()=>{c();Bn=e=>{if(typeof e=="string")return e;if(typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)}});var Xt=Fs(()=>{c();l0();S2();C2()});var q0,TA=Fs(()=>{c();Xt();q0=class{constructor({marshaller:t,serializer:n,deserializer:r,serdeContext:i,defaultContentType:s}){S(this,"marshaller");S(this,"serializer");S(this,"deserializer");S(this,"serdeContext");S(this,"defaultContentType");this.marshaller=t,this.serializer=n,this.deserializer=r,this.serdeContext=i,this.defaultContentType=s}async serializeEventStream({eventStream:t,requestSchema:n,initialRequest:r}){let i=this.marshaller,s=n.getEventStreamMember(),o=n.getMemberSchema(s),a=this.serializer,l=this.defaultContentType,u=Symbol("initialRequestMarker"),p={async*[Symbol.asyncIterator](){if(r){let d={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:l}};a.write(n,r);let f=a.flush();yield{[u]:!0,headers:d,body:f}}for await(let d of t)yield d}};return i.serialize(p,d=>{if(d[u])return{headers:d.headers,body:d.body};let f="";for(let w in d)if(w!=="__type"){f=w;break}let{additionalHeaders:m,body:g,eventType:x,explicitPayloadContentType:v}=this.writeEventBody(f,o,d);return{headers:{":event-type":{type:"string",value:x},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:v!=null?v:l},...m},body:g}})}async deserializeEventStream({response:t,responseSchema:n,initialResponseContainer:r}){var f;let i=this.marshaller,s=n.getEventStreamMember(),a=n.getMemberSchema(s).getMemberSchemas(),l=Symbol("initialResponseMarker"),u=i.deserialize(t.body,async m=>{var v,_,w;let g="";for(let D in m)if(D!=="__type"){g=D;break}let x=m[g].body;if(g==="initial-response"){let D=await this.deserializer.read(n,x);return delete D[s],{[l]:!0,...D}}else if(g in a){let D=a[g];if(D.isStructSchema()){let C={},A=!1;for(let[k,I]of D.structIterator()){let{eventHeader:L,eventPayload:U}=I.getMergedTraits();if(A=A||!!(L||U),U)I.isBlobSchema()?C[k]=x:I.isStringSchema()?C[k]=((_=(v=this.serdeContext)==null?void 0:v.utf8Encoder)!=null?_:Bn)(x):I.isStructSchema()&&(C[k]=await this.deserializer.read(I,x));else if(L){let $=(w=m[g].headers[k])==null?void 0:w.value;$!=null&&(I.isNumericSchema()?$&&typeof $=="object"&&"bytes"in $?C[k]=BigInt($.toString()):C[k]=Number($):C[k]=$)}}if(A)return{[g]:C};if(x.byteLength===0)return{[g]:{}}}return{[g]:await this.deserializer.read(D,x)}}else return{$unknown:m}}),p=u[Symbol.asyncIterator](),d=await p.next();if(d.done)return u;if((f=d.value)!=null&&f[l]){if(!n)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(let m in d.value)r[m]=d.value[m]}return{async*[Symbol.asyncIterator](){var m;for((m=d==null?void 0:d.value)!=null&&m[l]||(yield d.value);;){let{done:g,value:x}=await p.next();if(g)break;yield x}}}}writeEventBody(t,n,r){var f,m,g;let i=this.serializer,s=t,o=null,a,l=n.getSchema()[4].includes(t),u={};if(l){let x=n.getMemberSchema(t);if(x.isStructSchema()){for(let[v,_]of x.structIterator()){let{eventHeader:w,eventPayload:D}=_.getMergedTraits();if(D)o=v;else if(w){let C=r[t][v],A="binary";_.isNumericSchema()?(-2)**31<=C&&C<=2**31-1?A="integer":A="long":_.isTimestampSchema()?A="timestamp":_.isStringSchema()?A="string":_.isBooleanSchema()&&(A="boolean"),C!=null&&(u[v]={type:A,value:C},delete r[t][v])}}if(o!==null){let v=x.getMemberSchema(o);v.isBlobSchema()?a="application/octet-stream":v.isStringSchema()&&(a="text/plain"),i.write(v,r[t][o])}else i.write(x,r[t])}else if(x.isUnitSchema())i.write(x,{});else throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}else{let[x,v]=r[t];s=x,i.write(15,v)}let p=(f=i.flush())!=null?f:new Uint8Array;return{body:typeof p=="string"?((g=(m=this.serdeContext)==null?void 0:m.utf8Decoder)!=null?g:Wt)(p):p,eventType:s,explicitPayloadContentType:a,additionalHeaders:u}}}});var AA={};FE(AA,{EventStreamSerde:()=>q0});var RA=Fs(()=>{c();TA()});var xl=F((btt,ob)=>{"use strict";c();var ec=typeof Reflect=="object"?Reflect:null,EP=ec&&typeof ec.apply=="function"?ec.apply:function(t,n,r){return Function.prototype.apply.call(t,n,r)},Mm;ec&&typeof ec.ownKeys=="function"?Mm=ec.ownKeys:Object.getOwnPropertySymbols?Mm=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Mm=function(t){return Object.getOwnPropertyNames(t)};function mge(e){console&&console.warn&&console.warn(e)}var SP=Number.isNaN||function(t){return t!==t};function We(){We.init.call(this)}ob.exports=We;ob.exports.once=xge;We.EventEmitter=We;We.prototype._events=void 0;We.prototype._eventsCount=0;We.prototype._maxListeners=void 0;var DP=10;function Lm(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(We,"defaultMaxListeners",{enumerable:!0,get:function(){return DP},set:function(e){if(typeof e!="number"||e<0||SP(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");DP=e}});We.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};We.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||SP(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function CP(e){return e._maxListeners===void 0?We.defaultMaxListeners:e._maxListeners}We.prototype.getMaxListeners=function(){return CP(this)};We.prototype.emit=function(t){for(var n=[],r=1;r0&&(o=n[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var l=s[t];if(l===void 0)return!1;if(typeof l=="function")EP(l,this,n);else for(var u=l.length,p=OP(l,u),r=0;r0&&o.length>i&&!o.warned){o.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=o.length,mge(a)}return e}We.prototype.addListener=function(t,n){return TP(this,t,n,!1)};We.prototype.on=We.prototype.addListener;We.prototype.prependListener=function(t,n){return TP(this,t,n,!0)};function hge(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function AP(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=hge.bind(r);return i.listener=n,r.wrapFn=i,i}We.prototype.once=function(t,n){return Lm(n),this.on(t,AP(this,t,n)),this};We.prototype.prependOnceListener=function(t,n){return Lm(n),this.prependListener(t,AP(this,t,n)),this};We.prototype.removeListener=function(t,n){var r,i,s,o,a;if(Lm(n),i=this._events,i===void 0)return this;if(r=i[t],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,r.listener||n));else if(typeof r!="function"){for(s=-1,o=r.length-1;o>=0;o--)if(r[o]===n||r[o].listener===n){a=r[o].listener,s=o;break}if(s<0)return this;s===0?r.shift():gge(r,s),r.length===1&&(i[t]=r[0]),i.removeListener!==void 0&&this.emit("removeListener",t,a||n)}return this};We.prototype.off=We.prototype.removeListener;We.prototype.removeAllListeners=function(t){var n,r,i;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[t]),this;if(arguments.length===0){var s=Object.keys(r),o;for(i=0;i=0;i--)this.removeListener(t,n[i]);return this};function RP(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i=="function"?n?[i.listener||i]:[i]:n?yge(i):OP(i,i.length)}We.prototype.listeners=function(t){return RP(this,t,!0)};We.prototype.rawListeners=function(t){return RP(this,t,!1)};We.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):kP.call(e,t)};We.prototype.listenerCount=kP;function kP(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}We.prototype.eventNames=function(){return this._eventsCount>0?Mm(this._events):[]};function OP(e,t){for(var n=new Array(t),r=0;r{c();typeof Object.create=="function"?ab.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:ab.exports=function(t,n){if(n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}}});var cb=F((Ftt,PP)=>{c();PP.exports=xl().EventEmitter});var ub=F((Itt,NP)=>{"use strict";c();NP.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;t[n]=i;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,n);if(a.value!==i||a.enumerable!==!0)return!1}return!0}});var vl=F((Ntt,MP)=>{"use strict";c();var bge=ub();MP.exports=function(){return bge()&&!!Symbol.toStringTag}});var lb=F((Ltt,LP)=>{"use strict";c();LP.exports=Object});var UP=F((Utt,$P)=>{"use strict";c();$P.exports=Error});var zP=F((ztt,jP)=>{"use strict";c();jP.exports=EvalError});var HP=F((Htt,qP)=>{"use strict";c();qP.exports=RangeError});var VP=F((Vtt,GP)=>{"use strict";c();GP.exports=ReferenceError});var pb=F((Ktt,WP)=>{"use strict";c();WP.exports=SyntaxError});var tc=F((Xtt,KP)=>{"use strict";c();KP.exports=TypeError});var XP=F((Qtt,YP)=>{"use strict";c();YP.exports=URIError});var QP=F((ent,ZP)=>{"use strict";c();ZP.exports=Math.abs});var eN=F((nnt,JP)=>{"use strict";c();JP.exports=Math.floor});var nN=F((int,tN)=>{"use strict";c();tN.exports=Math.max});var iN=F((ont,rN)=>{"use strict";c();rN.exports=Math.min});var oN=F((cnt,sN)=>{"use strict";c();sN.exports=Math.pow});var cN=F((lnt,aN)=>{"use strict";c();aN.exports=Math.round});var lN=F((dnt,uN)=>{"use strict";c();uN.exports=Number.isNaN||function(t){return t!==t}});var dN=F((mnt,pN)=>{"use strict";c();var _ge=lN();pN.exports=function(t){return _ge(t)||t===0?t:t<0?-1:1}});var mN=F((gnt,fN)=>{"use strict";c();fN.exports=Object.getOwnPropertyDescriptor});var xo=F((xnt,hN)=>{"use strict";c();var Um=mN();if(Um)try{Um([],"length")}catch(e){Um=null}hN.exports=Um});var bl=F((bnt,gN)=>{"use strict";c();var jm=Object.defineProperty||!1;if(jm)try{jm({},"a",{value:1})}catch(e){jm=!1}gN.exports=jm});var vN=F((wnt,xN)=>{"use strict";c();var yN=typeof Symbol!="undefined"&&Symbol,wge=ub();xN.exports=function(){return typeof yN!="function"||typeof Symbol!="function"||typeof yN("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:wge()}});var db=F((Dnt,bN)=>{"use strict";c();bN.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var fb=F((Cnt,_N)=>{"use strict";c();var Ege=lb();_N.exports=Ege.getPrototypeOf||null});var DN=F((Ant,EN)=>{"use strict";c();var Dge="Function.prototype.bind called on incompatible ",Sge=Object.prototype.toString,Cge=Math.max,Tge="[object Function]",wN=function(t,n){for(var r=[],i=0;i{"use strict";c();var kge=DN();SN.exports=Function.prototype.bind||kge});var zm=F((Fnt,CN)=>{"use strict";c();CN.exports=Function.prototype.call});var qm=F((Int,TN)=>{"use strict";c();TN.exports=Function.prototype.apply});var RN=F((Nnt,AN)=>{"use strict";c();AN.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var mb=F((Lnt,kN)=>{"use strict";c();var Oge=nc(),Fge=qm(),Bge=zm(),Ige=RN();kN.exports=Ige||Oge.call(Bge,Fge)});var Hm=F((Unt,ON)=>{"use strict";c();var Pge=nc(),Nge=tc(),Mge=zm(),Lge=mb();ON.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new Nge("a function is required");return Lge(Pge,Mge,t)}});var MN=F((znt,NN)=>{"use strict";c();var $ge=Hm(),FN=xo(),IN;try{IN=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var hb=!!IN&&FN&&FN(Object.prototype,"__proto__"),PN=Object,BN=PN.getPrototypeOf;NN.exports=hb&&typeof hb.get=="function"?$ge([hb.get]):typeof BN=="function"?function(t){return BN(t==null?t:PN(t))}:!1});var Gm=F((Hnt,jN)=>{"use strict";c();var LN=db(),$N=fb(),UN=MN();jN.exports=LN?function(t){return LN(t)}:$N?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return $N(t)}:UN?function(t){return UN(t)}:null});var gb=F((Vnt,zN)=>{"use strict";c();var Uge=Function.prototype.call,jge=Object.prototype.hasOwnProperty,zge=nc();zN.exports=zge.call(Uge,jge)});var vb=F((Knt,KN)=>{"use strict";c();var ye,qge=lb(),Hge=UP(),Gge=zP(),Vge=HP(),Wge=VP(),oc=pb(),sc=tc(),Kge=XP(),Yge=QP(),Xge=eN(),Zge=nN(),Qge=iN(),Jge=oN(),eye=cN(),tye=dN(),VN=Function,yb=function(e){try{return VN('"use strict"; return ('+e+").constructor;")()}catch(t){}},_l=xo(),nye=bl(),xb=function(){throw new sc},rye=_l?(function(){try{return arguments.callee,xb}catch(e){try{return _l(arguments,"callee").get}catch(t){return xb}}})():xb,rc=vN()(),zt=Gm(),iye=fb(),sye=db(),WN=qm(),wl=zm(),ic={},oye=typeof Uint8Array=="undefined"||!zt?ye:zt(Uint8Array),vo={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?ye:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?ye:ArrayBuffer,"%ArrayIteratorPrototype%":rc&&zt?zt([][Symbol.iterator]()):ye,"%AsyncFromSyncIteratorPrototype%":ye,"%AsyncFunction%":ic,"%AsyncGenerator%":ic,"%AsyncGeneratorFunction%":ic,"%AsyncIteratorPrototype%":ic,"%Atomics%":typeof Atomics=="undefined"?ye:Atomics,"%BigInt%":typeof BigInt=="undefined"?ye:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?ye:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?ye:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?ye:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Hge,"%eval%":eval,"%EvalError%":Gge,"%Float16Array%":typeof Float16Array=="undefined"?ye:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?ye:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?ye:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?ye:FinalizationRegistry,"%Function%":VN,"%GeneratorFunction%":ic,"%Int8Array%":typeof Int8Array=="undefined"?ye:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?ye:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?ye:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":rc&&zt?zt(zt([][Symbol.iterator]())):ye,"%JSON%":typeof JSON=="object"?JSON:ye,"%Map%":typeof Map=="undefined"?ye:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!rc||!zt?ye:zt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":qge,"%Object.getOwnPropertyDescriptor%":_l,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?ye:Promise,"%Proxy%":typeof Proxy=="undefined"?ye:Proxy,"%RangeError%":Vge,"%ReferenceError%":Wge,"%Reflect%":typeof Reflect=="undefined"?ye:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?ye:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!rc||!zt?ye:zt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?ye:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":rc&&zt?zt(""[Symbol.iterator]()):ye,"%Symbol%":rc?Symbol:ye,"%SyntaxError%":oc,"%ThrowTypeError%":rye,"%TypedArray%":oye,"%TypeError%":sc,"%Uint8Array%":typeof Uint8Array=="undefined"?ye:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?ye:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?ye:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?ye:Uint32Array,"%URIError%":Kge,"%WeakMap%":typeof WeakMap=="undefined"?ye:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?ye:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?ye:WeakSet,"%Function.prototype.call%":wl,"%Function.prototype.apply%":WN,"%Object.defineProperty%":nye,"%Object.getPrototypeOf%":iye,"%Math.abs%":Yge,"%Math.floor%":Xge,"%Math.max%":Zge,"%Math.min%":Qge,"%Math.pow%":Jge,"%Math.round%":eye,"%Math.sign%":tye,"%Reflect.getPrototypeOf%":sye};if(zt)try{null.error}catch(e){qN=zt(zt(e)),vo["%Error.prototype%"]=qN}var qN,aye=function e(t){var n;if(t==="%AsyncFunction%")n=yb("async function () {}");else if(t==="%GeneratorFunction%")n=yb("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=yb("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&zt&&(n=zt(i.prototype))}return vo[t]=n,n},HN={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},El=nc(),Vm=gb(),cye=El.call(wl,Array.prototype.concat),uye=El.call(WN,Array.prototype.splice),GN=El.call(wl,String.prototype.replace),Wm=El.call(wl,String.prototype.slice),lye=El.call(wl,RegExp.prototype.exec),pye=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,dye=/\\(\\)?/g,fye=function(t){var n=Wm(t,0,1),r=Wm(t,-1);if(n==="%"&&r!=="%")throw new oc("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new oc("invalid intrinsic syntax, expected opening `%`");var i=[];return GN(t,pye,function(s,o,a,l){i[i.length]=a?GN(l,dye,"$1"):o||s}),i},mye=function(t,n){var r=t,i;if(Vm(HN,r)&&(i=HN[r],r="%"+i[0]+"%"),Vm(vo,r)){var s=vo[r];if(s===ic&&(s=aye(r)),typeof s=="undefined"&&!n)throw new sc("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:s}}throw new oc("intrinsic "+t+" does not exist!")};KN.exports=function(t,n){if(typeof t!="string"||t.length===0)throw new sc("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new sc('"allowMissing" argument must be a boolean');if(lye(/^%?[^%]*%?$/,t)===null)throw new oc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=fye(t),i=r.length>0?r[0]:"",s=mye("%"+i+"%",n),o=s.name,a=s.value,l=!1,u=s.alias;u&&(i=u[0],uye(r,cye([0,1],u)));for(var p=1,d=!0;p=r.length){var x=_l(a,f);d=!!x,d&&"get"in x&&!("originalValue"in x.get)?a=x.get:a=a[f]}else d=Vm(a,f),a=a[f];d&&!l&&(vo[o]=a)}}return a}});var ac=F((Xnt,ZN)=>{"use strict";c();var YN=vb(),XN=Hm(),hye=XN([YN("%String.prototype.indexOf%")]);ZN.exports=function(t,n){var r=YN(t,!!n);return typeof r=="function"&&hye(t,".prototype.")>-1?XN([r]):r}});var e4=F((Qnt,JN)=>{"use strict";c();var gye=vl()(),yye=ac(),bb=yye("Object.prototype.toString"),Km=function(t){return gye&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:bb(t)==="[object Arguments]"},QN=function(t){return Km(t)?!0:t!==null&&typeof t=="object"&&"length"in t&&typeof t.length=="number"&&t.length>=0&&bb(t)!=="[object Array]"&&"callee"in t&&bb(t.callee)==="[object Function]"},xye=(function(){return Km(arguments)})();Km.isLegacyArguments=QN;JN.exports=xye?Km:QN});var o4=F((ert,s4)=>{"use strict";c();var t4=ac(),vye=vl()(),bye=gb(),_ye=xo(),Eb;vye?(n4=t4("RegExp.prototype.exec"),_b={},Ym=function(){throw _b},wb={toString:Ym,valueOf:Ym},typeof Symbol.toPrimitive=="symbol"&&(wb[Symbol.toPrimitive]=Ym),Eb=function(t){if(!t||typeof t!="object")return!1;var n=_ye(t,"lastIndex"),r=n&&bye(n,"value");if(!r)return!1;try{n4(t,wb)}catch(i){return i===_b}}):(r4=t4("Object.prototype.toString"),i4="[object RegExp]",Eb=function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:r4(t)===i4});var n4,_b,Ym,wb,r4,i4;s4.exports=Eb});var c4=F((nrt,a4)=>{"use strict";c();var wye=ac(),Eye=o4(),Dye=wye("RegExp.prototype.exec"),Sye=tc();a4.exports=function(t){if(!Eye(t))throw new Sye("`regex` must be a RegExp");return function(r){return Dye(t,r)!==null}}});var l4=F((irt,u4)=>{"use strict";c();var Cye=function*(){}.constructor;u4.exports=()=>Cye});var m4=F((ort,f4)=>{"use strict";c();var d4=ac(),Tye=c4(),Aye=Tye(/^\s*(?:function)?\*/),Rye=vl()(),p4=Gm(),kye=d4("Object.prototype.toString"),Oye=d4("Function.prototype.toString"),Fye=l4();f4.exports=function(t){if(typeof t!="function")return!1;if(Aye(Oye(t)))return!0;if(!Rye){var n=kye(t);return n==="[object GeneratorFunction]"}if(!p4)return!1;var r=Fye();return r&&p4(t)===r.prototype}});var x4=F((crt,y4)=>{"use strict";c();var g4=Function.prototype.toString,cc=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Sb,Xm;if(typeof cc=="function"&&typeof Object.defineProperty=="function")try{Sb=Object.defineProperty({},"length",{get:function(){throw Xm}}),Xm={},cc(function(){throw 42},null,Sb)}catch(e){e!==Xm&&(cc=null)}else cc=null;var Bye=/^\s*class\b/,Cb=function(t){try{var n=g4.call(t);return Bye.test(n)}catch(r){return!1}},Db=function(t){try{return Cb(t)?!1:(g4.call(t),!0)}catch(n){return!1}},Zm=Object.prototype.toString,Iye="[object Object]",Pye="[object Function]",Nye="[object GeneratorFunction]",Mye="[object HTMLAllCollection]",Lye="[object HTML document.all class]",$ye="[object HTMLCollection]",Uye=typeof Symbol=="function"&&!!Symbol.toStringTag,jye=!(0 in[,]),Tb=function(){return!1};typeof document=="object"&&(h4=document.all,Zm.call(h4)===Zm.call(document.all)&&(Tb=function(t){if((jye||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var n=Zm.call(t);return(n===Mye||n===Lye||n===$ye||n===Iye)&&t("")==null}catch(r){}return!1}));var h4;y4.exports=cc?function(t){if(Tb(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{cc(t,null,Sb)}catch(n){if(n!==Xm)return!1}return!Cb(t)&&Db(t)}:function(t){if(Tb(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(Uye)return Db(t);if(Cb(t))return!1;var n=Zm.call(t);return n!==Pye&&n!==Nye&&!/^\[object HTML/.test(n)?!1:Db(t)}});var _4=F((lrt,b4)=>{"use strict";c();var zye=x4(),qye=Object.prototype.toString,v4=Object.prototype.hasOwnProperty,Hye=function(t,n,r){for(var i=0,s=t.length;i=3&&(i=r),Wye(t)?Hye(t,n,i):typeof t=="string"?Gye(t,n,i):Vye(t,n,i)}});var E4=F((drt,w4)=>{"use strict";c();w4.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var S4=F((mrt,D4)=>{"use strict";c();var Ab=E4(),Kye=globalThis;D4.exports=function(){for(var t=[],n=0;n{"use strict";c();var C4=bl(),Yye=pb(),uc=tc(),T4=xo();A4.exports=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new uc("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new uc("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new uc("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new uc("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new uc("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new uc("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!T4&&T4(t,n);if(C4)C4(t,n,{configurable:o===null&&l?l.configurable:!o,enumerable:i===null&&l?l.enumerable:!i,value:r,writable:s===null&&l?l.writable:!s});else if(a||!i&&!s&&!o)t[n]=r;else throw new Yye("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var F4=F((xrt,O4)=>{"use strict";c();var Rb=bl(),k4=function(){return!!Rb};k4.hasArrayLengthDefineBug=function(){if(!Rb)return null;try{return Rb([],"length",{value:1}).length!==1}catch(t){return!0}};O4.exports=k4});var M4=F((brt,N4)=>{"use strict";c();var Xye=vb(),B4=R4(),Zye=F4()(),I4=xo(),P4=tc(),Qye=Xye("%Math.floor%");N4.exports=function(t,n){if(typeof t!="function")throw new P4("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||Qye(n)!==n)throw new P4("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],i=!0,s=!0;if("length"in t&&I4){var o=I4(t,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(s=!1)}return(i||s||!r)&&(Zye?B4(t,"length",n,!0,!0):B4(t,"length",n)),t}});var $4=F((wrt,L4)=>{"use strict";c();var Jye=nc(),e0e=qm(),t0e=mb();L4.exports=function(){return t0e(Jye,e0e,arguments)}});var z4=F((Drt,Qm)=>{"use strict";c();var n0e=M4(),U4=bl(),r0e=Hm(),j4=$4();Qm.exports=function(t){var n=r0e(arguments),r=1+t.length-(arguments.length-1);return n0e(n,r>0?r:0,!0)};U4?U4(Qm.exports,"apply",{value:j4}):Qm.exports.apply=j4});var Bb=F((Crt,V4)=>{"use strict";c();var th=_4(),i0e=S4(),q4=z4(),Ob=ac(),eh=xo(),Jm=Gm(),s0e=Ob("Object.prototype.toString"),G4=vl()(),H4=globalThis,kb=i0e(),Fb=Ob("String.prototype.slice"),o0e=Ob("Array.prototype.indexOf",!0)||function(t,n){for(var r=0;r-1?n:n!=="Object"?!1:c0e(t)}return eh?a0e(t):null}});var K4=F((Art,W4)=>{"use strict";c();var u0e=Bb();W4.exports=function(t){return!!u0e(t)}});var cM=F(xe=>{"use strict";c();var l0e=e4(),p0e=m4(),Nr=Bb(),Y4=K4();function lc(e){return e.call.bind(e)}var X4=typeof BigInt!="undefined",Z4=typeof Symbol!="undefined",gr=lc(Object.prototype.toString),d0e=lc(Number.prototype.valueOf),f0e=lc(String.prototype.valueOf),m0e=lc(Boolean.prototype.valueOf);X4&&(Q4=lc(BigInt.prototype.valueOf));var Q4;Z4&&(J4=lc(Symbol.prototype.valueOf));var J4;function Sl(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch(n){return!1}}xe.isArgumentsObject=l0e;xe.isGeneratorFunction=p0e;xe.isTypedArray=Y4;function h0e(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}xe.isPromise=h0e;function g0e(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):Y4(e)||tM(e)}xe.isArrayBufferView=g0e;function y0e(e){return Nr(e)==="Uint8Array"}xe.isUint8Array=y0e;function x0e(e){return Nr(e)==="Uint8ClampedArray"}xe.isUint8ClampedArray=x0e;function v0e(e){return Nr(e)==="Uint16Array"}xe.isUint16Array=v0e;function b0e(e){return Nr(e)==="Uint32Array"}xe.isUint32Array=b0e;function _0e(e){return Nr(e)==="Int8Array"}xe.isInt8Array=_0e;function w0e(e){return Nr(e)==="Int16Array"}xe.isInt16Array=w0e;function E0e(e){return Nr(e)==="Int32Array"}xe.isInt32Array=E0e;function D0e(e){return Nr(e)==="Float32Array"}xe.isFloat32Array=D0e;function S0e(e){return Nr(e)==="Float64Array"}xe.isFloat64Array=S0e;function C0e(e){return Nr(e)==="BigInt64Array"}xe.isBigInt64Array=C0e;function T0e(e){return Nr(e)==="BigUint64Array"}xe.isBigUint64Array=T0e;function rh(e){return gr(e)==="[object Map]"}rh.working=typeof Map!="undefined"&&rh(new Map);function A0e(e){return typeof Map=="undefined"?!1:rh.working?rh(e):e instanceof Map}xe.isMap=A0e;function ih(e){return gr(e)==="[object Set]"}ih.working=typeof Set!="undefined"&&ih(new Set);function R0e(e){return typeof Set=="undefined"?!1:ih.working?ih(e):e instanceof Set}xe.isSet=R0e;function sh(e){return gr(e)==="[object WeakMap]"}sh.working=typeof WeakMap!="undefined"&&sh(new WeakMap);function k0e(e){return typeof WeakMap=="undefined"?!1:sh.working?sh(e):e instanceof WeakMap}xe.isWeakMap=k0e;function Pb(e){return gr(e)==="[object WeakSet]"}Pb.working=typeof WeakSet!="undefined"&&Pb(new WeakSet);function O0e(e){return Pb(e)}xe.isWeakSet=O0e;function oh(e){return gr(e)==="[object ArrayBuffer]"}oh.working=typeof ArrayBuffer!="undefined"&&oh(new ArrayBuffer);function eM(e){return typeof ArrayBuffer=="undefined"?!1:oh.working?oh(e):e instanceof ArrayBuffer}xe.isArrayBuffer=eM;function ah(e){return gr(e)==="[object DataView]"}ah.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&ah(new DataView(new ArrayBuffer(1),0,1));function tM(e){return typeof DataView=="undefined"?!1:ah.working?ah(e):e instanceof DataView}xe.isDataView=tM;var Ib=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function Dl(e){return gr(e)==="[object SharedArrayBuffer]"}function nM(e){return typeof Ib=="undefined"?!1:(typeof Dl.working=="undefined"&&(Dl.working=Dl(new Ib)),Dl.working?Dl(e):e instanceof Ib)}xe.isSharedArrayBuffer=nM;function F0e(e){return gr(e)==="[object AsyncFunction]"}xe.isAsyncFunction=F0e;function B0e(e){return gr(e)==="[object Map Iterator]"}xe.isMapIterator=B0e;function I0e(e){return gr(e)==="[object Set Iterator]"}xe.isSetIterator=I0e;function P0e(e){return gr(e)==="[object Generator]"}xe.isGeneratorObject=P0e;function N0e(e){return gr(e)==="[object WebAssembly.Module]"}xe.isWebAssemblyCompiledModule=N0e;function rM(e){return Sl(e,d0e)}xe.isNumberObject=rM;function iM(e){return Sl(e,f0e)}xe.isStringObject=iM;function sM(e){return Sl(e,m0e)}xe.isBooleanObject=sM;function oM(e){return X4&&Sl(e,Q4)}xe.isBigIntObject=oM;function aM(e){return Z4&&Sl(e,J4)}xe.isSymbolObject=aM;function M0e(e){return rM(e)||iM(e)||sM(e)||oM(e)||aM(e)}xe.isBoxedPrimitive=M0e;function L0e(e){return typeof Uint8Array!="undefined"&&(eM(e)||nM(e))}xe.isAnyArrayBuffer=L0e;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(xe,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var lM=F((Frt,uM)=>{c();uM.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var jb=F(ve=>{c();var pM=Object.getOwnPropertyDescriptors||function(t){for(var n=Object.keys(t),r={},i=0;i=i)return a;switch(a){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(l){return"[Circular]"}default:return a}}),o=r[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),$b(t)?n.showHidden=t:t&&ve._extend(n,t),_o(n.showHidden)&&(n.showHidden=!1),_o(n.depth)&&(n.depth=2),_o(n.colors)&&(n.colors=!1),_o(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=U0e),ph(n,e,n.depth)}ve.inspect=hs;hs.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};hs.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function U0e(e,t){var n=hs.styles[t];return n?"\x1B["+hs.colors[n][0]+"m"+e+"\x1B["+hs.colors[n][1]+"m":e}function j0e(e,t){return e}function z0e(e){var t={};return e.forEach(function(n,r){t[n]=!0}),t}function ph(e,t,n){if(e.customInspect&&t&&lh(t.inspect)&&t.inspect!==ve.inspect&&!(t.constructor&&t.constructor.prototype===t)){var r=t.inspect(n,e);return mh(r)||(r=ph(e,r,n)),r}var i=q0e(e,t);if(i)return i;var s=Object.keys(t),o=z0e(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),Tl(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return Nb(t);if(s.length===0){if(lh(t)){var a=t.name?": "+t.name:"";return e.stylize("[Function"+a+"]","special")}if(Cl(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(dh(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Tl(t))return Nb(t)}var l="",u=!1,p=["{","}"];if(fM(t)&&(u=!0,p=["[","]"]),lh(t)){var d=t.name?": "+t.name:"";l=" [Function"+d+"]"}if(Cl(t)&&(l=" "+RegExp.prototype.toString.call(t)),dh(t)&&(l=" "+Date.prototype.toUTCString.call(t)),Tl(t)&&(l=" "+Nb(t)),s.length===0&&(!u||t.length==0))return p[0]+l+p[1];if(n<0)return Cl(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var f;return u?f=H0e(e,t,n,o,s):f=s.map(function(m){return Lb(e,t,n,o,m,u)}),e.seen.pop(),G0e(f,l,p)}function q0e(e,t){if(_o(t))return e.stylize("undefined","undefined");if(mh(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(mM(t))return e.stylize(""+t,"number");if($b(t))return e.stylize(""+t,"boolean");if(fh(t))return e.stylize("null","null")}function Nb(e){return"["+Error.prototype.toString.call(e)+"]"}function H0e(e,t,n,r,i){for(var s=[],o=0,a=t.length;o{throw TypeError(e)};var j5=(e,t,n)=>t in e?$c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ns=(e,t)=>()=>(e&&(t=e(e=0)),t);var F=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),PE=(e,t)=>{for(var n in t)$c(e,n,{get:t[n],enumerable:!0})},NE=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of L5(t))!U5.call(e,i)&&i!==n&&$c(e,i,{get:()=>t[i],enumerable:!(r=M5(t,i))||r.enumerable});return e};var at=(e,t,n)=>(n=e!=null?N5($5(e)):{},NE(t||!e||!e.__esModule?$c(n,"default",{value:e,enumerable:!0}):n,e)),z5=e=>NE($c({},"__esModule",{value:!0}),e);var C=(e,t,n)=>j5(e,typeof t!="symbol"?t+"":t,n),Zg=(e,t,n)=>t.has(e)||IE("Cannot "+n);var Y=(e,t,n)=>(Zg(e,t,"read from private field"),n?n.call(e):t.get(e)),Ht=(e,t,n)=>t.has(e)?IE("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),$e=(e,t,n,r)=>(Zg(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Be=(e,t,n)=>(Zg(e,t,"access private method"),n);var $E=F(wp=>{"use strict";c();wp.byteLength=H5;wp.toByteArray=V5;wp.fromByteArray=Y5;var zr=[],sr=[],q5=typeof Uint8Array!="undefined"?Uint8Array:Array,Qg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Ms=0,ME=Qg.length;Ms0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function H5(e){var t=LE(e),n=t[0],r=t[1];return(n+r)*3/4-r}function G5(e,t,n){return(t+n)*3/4-n}function V5(e){var t,n=LE(e),r=n[0],i=n[1],s=new q5(G5(e,r,i)),o=0,a=i>0?r-4:r,l;for(l=0;l>16&255,s[o++]=t>>8&255,s[o++]=t&255;return i===2&&(t=sr[e.charCodeAt(l)]<<2|sr[e.charCodeAt(l+1)]>>4,s[o++]=t&255),i===1&&(t=sr[e.charCodeAt(l)]<<10|sr[e.charCodeAt(l+1)]<<4|sr[e.charCodeAt(l+2)]>>2,s[o++]=t>>8&255,s[o++]=t&255),s}function W5(e){return zr[e>>18&63]+zr[e>>12&63]+zr[e>>6&63]+zr[e&63]}function K5(e,t,n){for(var r,i=[],s=t;sa?a:o+s));return r===1?(t=e[n-1],i.push(zr[t>>2]+zr[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(zr[t>>10]+zr[t>>4&63]+zr[t<<2&63]+"=")),i.join("")}});var UE=F(Jg=>{c();Jg.read=function(e,t,n,r,i){var s,o,a=i*8-r-1,l=(1<>1,p=-7,d=n?i-1:0,f=n?-1:1,m=e[t+d];for(d+=f,s=m&(1<<-p)-1,m>>=-p,p+=a;p>0;s=s*256+e[t+d],d+=f,p-=8);for(o=s&(1<<-p)-1,s>>=-p,p+=r;p>0;o=o*256+e[t+d],d+=f,p-=8);if(s===0)s=1-u;else{if(s===l)return o?NaN:(m?-1:1)*(1/0);o=o+Math.pow(2,r),s=s-u}return(m?-1:1)*o*Math.pow(2,s-r)};Jg.write=function(e,t,n,r,i,s){var o,a,l,u=s*8-i-1,p=(1<>1,f=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=r?0:s-1,g=r?1:-1,x=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=p):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=p?(a=0,o=p):o+d>=1?(a=(t*l-1)*Math.pow(2,i),o=o+d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+m]=a&255,m+=g,a/=256,i-=8);for(o=o<0;e[n+m]=o&255,m+=g,o/=256,u-=8);e[n+m-g]|=x*128}});var Cr=F(Vo=>{"use strict";c();var ey=$E(),Ho=UE(),jE=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Vo.Buffer=q;Vo.SlowBuffer=tj;Vo.INSPECT_MAX_BYTES=50;var Ep=2147483647;Vo.kMaxLength=Ep;q.TYPED_ARRAY_SUPPORT=X5();!q.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function X5(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(e){return!1}}Object.defineProperty(q.prototype,"parent",{enumerable:!0,get:function(){if(q.isBuffer(this))return this.buffer}});Object.defineProperty(q.prototype,"offset",{enumerable:!0,get:function(){if(q.isBuffer(this))return this.byteOffset}});function hi(e){if(e>Ep)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,q.prototype),t}function q(e,t,n){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return iy(e)}return GE(e,t,n)}q.poolSize=8192;function GE(e,t,n){if(typeof e=="string")return Q5(e,t);if(ArrayBuffer.isView(e))return J5(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(qr(e,ArrayBuffer)||e&&qr(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(qr(e,SharedArrayBuffer)||e&&qr(e.buffer,SharedArrayBuffer)))return ny(e,t,n);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return q.from(r,t,n);let i=ej(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return q.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}q.from=function(e,t,n){return GE(e,t,n)};Object.setPrototypeOf(q.prototype,Uint8Array.prototype);Object.setPrototypeOf(q,Uint8Array);function VE(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Z5(e,t,n){return VE(e),e<=0?hi(e):t!==void 0?typeof n=="string"?hi(e).fill(t,n):hi(e).fill(t):hi(e)}q.alloc=function(e,t,n){return Z5(e,t,n)};function iy(e){return VE(e),hi(e<0?0:sy(e)|0)}q.allocUnsafe=function(e){return iy(e)};q.allocUnsafeSlow=function(e){return iy(e)};function Q5(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!q.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let n=WE(e,t)|0,r=hi(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function ty(e){let t=e.length<0?0:sy(e.length)|0,n=hi(t);for(let r=0;r=Ep)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ep.toString(16)+" bytes");return e|0}function tj(e){return+e!=e&&(e=0),q.alloc(+e)}q.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==q.prototype};q.compare=function(t,n){if(qr(t,Uint8Array)&&(t=q.from(t,t.offset,t.byteLength)),qr(n,Uint8Array)&&(n=q.from(n,n.offset,n.byteLength)),!q.isBuffer(t)||!q.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===n)return 0;let r=t.length,i=n.length;for(let s=0,o=Math.min(r,i);si.length?(q.isBuffer(o)||(o=q.from(o)),o.copy(i,s)):Uint8Array.prototype.set.call(i,o,s);else if(q.isBuffer(o))o.copy(i,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=o.length}return i};function WE(e,t){if(q.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||qr(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return ry(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return n1(e).length;default:if(i)return r?-1:ry(e).length;t=(""+t).toLowerCase(),i=!0}}q.byteLength=WE;function nj(e,t,n){let r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return dj(this,t,n);case"utf8":case"utf-8":return YE(this,t,n);case"ascii":return lj(this,t,n);case"latin1":case"binary":return pj(this,t,n);case"base64":return cj(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fj(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}q.prototype._isBuffer=!0;function Ls(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}q.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let n=0;nn&&(t+=" ... "),""};jE&&(q.prototype[jE]=q.prototype.inspect);q.prototype.compare=function(t,n,r,i,s){if(qr(t,Uint8Array)&&(t=q.from(t,t.offset,t.byteLength)),!q.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(n===void 0&&(n=0),r===void 0&&(r=t?t.length:0),i===void 0&&(i=0),s===void 0&&(s=this.length),n<0||r>t.length||i<0||s>this.length)throw new RangeError("out of range index");if(i>=s&&n>=r)return 0;if(i>=s)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,i>>>=0,s>>>=0,this===t)return 0;let o=s-i,a=r-n,l=Math.min(o,a),u=this.slice(i,s),p=t.slice(n,r);for(let d=0;d2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,ay(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t=="string"&&(t=q.from(t,r)),q.isBuffer(t))return t.length===0?-1:zE(e,t,n,r,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):zE(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function zE(e,t,n,r,i){let s=1,o=e.length,a=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(e.length<2||t.length<2)return-1;s=2,o/=2,a/=2,n/=2}function l(p,d){return s===1?p[d]:p.readUInt16BE(d*s)}let u;if(i){let p=-1;for(u=n;uo&&(n=o-a),u=n;u>=0;u--){let p=!0;for(let d=0;di&&(r=i)):r=i;let s=t.length;r>s/2&&(r=s/2);let o;for(o=0;o>>0,isFinite(r)?(r=r>>>0,i===void 0&&(i="utf8")):(i=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let s=this.length-n;if((r===void 0||r>s)&&(r=s),t.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let o=!1;for(;;)switch(i){case"hex":return rj(this,t,n,r);case"utf8":case"utf-8":return ij(this,t,n,r);case"ascii":case"latin1":case"binary":return sj(this,t,n,r);case"base64":return oj(this,t,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return aj(this,t,n,r);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};q.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function cj(e,t,n){return t===0&&n===e.length?ey.fromByteArray(e):ey.fromByteArray(e.slice(t,n))}function YE(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i239?4:s>223?3:s>191?2:1;if(i+a<=n){let l,u,p,d;switch(a){case 1:s<128&&(o=s);break;case 2:l=e[i+1],(l&192)===128&&(d=(s&31)<<6|l&63,d>127&&(o=d));break;case 3:l=e[i+1],u=e[i+2],(l&192)===128&&(u&192)===128&&(d=(s&15)<<12|(l&63)<<6|u&63,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:l=e[i+1],u=e[i+2],p=e[i+3],(l&192)===128&&(u&192)===128&&(p&192)===128&&(d=(s&15)<<18|(l&63)<<12|(u&63)<<6|p&63,d>65535&&d<1114112&&(o=d))}}o===null?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|o&1023),r.push(o),i+=a}return uj(r)}var qE=4096;function uj(e){let t=e.length;if(t<=qE)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rr)&&(n=r);let i="";for(let s=t;sr&&(t=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),nn)throw new RangeError("Trying to access beyond buffer length")}q.prototype.readUintLE=q.prototype.readUIntLE=function(t,n,r){t=t>>>0,n=n>>>0,r||Pt(t,n,this.length);let i=this[t],s=1,o=0;for(;++o>>0,n=n>>>0,r||Pt(t,n,this.length);let i=this[t+--n],s=1;for(;n>0&&(s*=256);)i+=this[t+--n]*s;return i};q.prototype.readUint8=q.prototype.readUInt8=function(t,n){return t=t>>>0,n||Pt(t,1,this.length),this[t]};q.prototype.readUint16LE=q.prototype.readUInt16LE=function(t,n){return t=t>>>0,n||Pt(t,2,this.length),this[t]|this[t+1]<<8};q.prototype.readUint16BE=q.prototype.readUInt16BE=function(t,n){return t=t>>>0,n||Pt(t,2,this.length),this[t]<<8|this[t+1]};q.prototype.readUint32LE=q.prototype.readUInt32LE=function(t,n){return t=t>>>0,n||Pt(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};q.prototype.readUint32BE=q.prototype.readUInt32BE=function(t,n){return t=t>>>0,n||Pt(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};q.prototype.readBigUInt64LE=qi(function(t){t=t>>>0,Go(t,"offset");let n=this[t],r=this[t+7];(n===void 0||r===void 0)&&Uc(t,this.length-8);let i=n+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,s=this[++t]+this[++t]*2**8+this[++t]*2**16+r*2**24;return BigInt(i)+(BigInt(s)<>>0,Go(t,"offset");let n=this[t],r=this[t+7];(n===void 0||r===void 0)&&Uc(t,this.length-8);let i=n*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],s=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+r;return(BigInt(i)<>>0,n=n>>>0,r||Pt(t,n,this.length);let i=this[t],s=1,o=0;for(;++o=s&&(i-=Math.pow(2,8*n)),i};q.prototype.readIntBE=function(t,n,r){t=t>>>0,n=n>>>0,r||Pt(t,n,this.length);let i=n,s=1,o=this[t+--i];for(;i>0&&(s*=256);)o+=this[t+--i]*s;return s*=128,o>=s&&(o-=Math.pow(2,8*n)),o};q.prototype.readInt8=function(t,n){return t=t>>>0,n||Pt(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};q.prototype.readInt16LE=function(t,n){t=t>>>0,n||Pt(t,2,this.length);let r=this[t]|this[t+1]<<8;return r&32768?r|4294901760:r};q.prototype.readInt16BE=function(t,n){t=t>>>0,n||Pt(t,2,this.length);let r=this[t+1]|this[t]<<8;return r&32768?r|4294901760:r};q.prototype.readInt32LE=function(t,n){return t=t>>>0,n||Pt(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};q.prototype.readInt32BE=function(t,n){return t=t>>>0,n||Pt(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};q.prototype.readBigInt64LE=qi(function(t){t=t>>>0,Go(t,"offset");let n=this[t],r=this[t+7];(n===void 0||r===void 0)&&Uc(t,this.length-8);let i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(r<<24);return(BigInt(i)<>>0,Go(t,"offset");let n=this[t],r=this[t+7];(n===void 0||r===void 0)&&Uc(t,this.length-8);let i=(n<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<>>0,n||Pt(t,4,this.length),Ho.read(this,t,!0,23,4)};q.prototype.readFloatBE=function(t,n){return t=t>>>0,n||Pt(t,4,this.length),Ho.read(this,t,!1,23,4)};q.prototype.readDoubleLE=function(t,n){return t=t>>>0,n||Pt(t,8,this.length),Ho.read(this,t,!0,52,8)};q.prototype.readDoubleBE=function(t,n){return t=t>>>0,n||Pt(t,8,this.length),Ho.read(this,t,!1,52,8)};function Fn(e,t,n,r,i,s){if(!q.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}q.prototype.writeUintLE=q.prototype.writeUIntLE=function(t,n,r,i){if(t=+t,n=n>>>0,r=r>>>0,!i){let a=Math.pow(2,8*r)-1;Fn(this,t,n,r,a,0)}let s=1,o=0;for(this[n]=t&255;++o>>0,r=r>>>0,!i){let a=Math.pow(2,8*r)-1;Fn(this,t,n,r,a,0)}let s=r-1,o=1;for(this[n+s]=t&255;--s>=0&&(o*=256);)this[n+s]=t/o&255;return n+r};q.prototype.writeUint8=q.prototype.writeUInt8=function(t,n,r){return t=+t,n=n>>>0,r||Fn(this,t,n,1,255,0),this[n]=t&255,n+1};q.prototype.writeUint16LE=q.prototype.writeUInt16LE=function(t,n,r){return t=+t,n=n>>>0,r||Fn(this,t,n,2,65535,0),this[n]=t&255,this[n+1]=t>>>8,n+2};q.prototype.writeUint16BE=q.prototype.writeUInt16BE=function(t,n,r){return t=+t,n=n>>>0,r||Fn(this,t,n,2,65535,0),this[n]=t>>>8,this[n+1]=t&255,n+2};q.prototype.writeUint32LE=q.prototype.writeUInt32LE=function(t,n,r){return t=+t,n=n>>>0,r||Fn(this,t,n,4,4294967295,0),this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=t&255,n+4};q.prototype.writeUint32BE=q.prototype.writeUInt32BE=function(t,n,r){return t=+t,n=n>>>0,r||Fn(this,t,n,4,4294967295,0),this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255,n+4};function XE(e,t,n,r,i){t1(t,r,i,e,n,7);let s=Number(t&BigInt(4294967295));e[n++]=s,s=s>>8,e[n++]=s,s=s>>8,e[n++]=s,s=s>>8,e[n++]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o=o>>8,e[n++]=o,o=o>>8,e[n++]=o,o=o>>8,e[n++]=o,n}function ZE(e,t,n,r,i){t1(t,r,i,e,n,7);let s=Number(t&BigInt(4294967295));e[n+7]=s,s=s>>8,e[n+6]=s,s=s>>8,e[n+5]=s,s=s>>8,e[n+4]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o=o>>8,e[n+2]=o,o=o>>8,e[n+1]=o,o=o>>8,e[n]=o,n+8}q.prototype.writeBigUInt64LE=qi(function(t,n=0){return XE(this,t,n,BigInt(0),BigInt("0xffffffffffffffff"))});q.prototype.writeBigUInt64BE=qi(function(t,n=0){return ZE(this,t,n,BigInt(0),BigInt("0xffffffffffffffff"))});q.prototype.writeIntLE=function(t,n,r,i){if(t=+t,n=n>>>0,!i){let l=Math.pow(2,8*r-1);Fn(this,t,n,r,l-1,-l)}let s=0,o=1,a=0;for(this[n]=t&255;++s>0)-a&255;return n+r};q.prototype.writeIntBE=function(t,n,r,i){if(t=+t,n=n>>>0,!i){let l=Math.pow(2,8*r-1);Fn(this,t,n,r,l-1,-l)}let s=r-1,o=1,a=0;for(this[n+s]=t&255;--s>=0&&(o*=256);)t<0&&a===0&&this[n+s+1]!==0&&(a=1),this[n+s]=(t/o>>0)-a&255;return n+r};q.prototype.writeInt8=function(t,n,r){return t=+t,n=n>>>0,r||Fn(this,t,n,1,127,-128),t<0&&(t=255+t+1),this[n]=t&255,n+1};q.prototype.writeInt16LE=function(t,n,r){return t=+t,n=n>>>0,r||Fn(this,t,n,2,32767,-32768),this[n]=t&255,this[n+1]=t>>>8,n+2};q.prototype.writeInt16BE=function(t,n,r){return t=+t,n=n>>>0,r||Fn(this,t,n,2,32767,-32768),this[n]=t>>>8,this[n+1]=t&255,n+2};q.prototype.writeInt32LE=function(t,n,r){return t=+t,n=n>>>0,r||Fn(this,t,n,4,2147483647,-2147483648),this[n]=t&255,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24,n+4};q.prototype.writeInt32BE=function(t,n,r){return t=+t,n=n>>>0,r||Fn(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255,n+4};q.prototype.writeBigInt64LE=qi(function(t,n=0){return XE(this,t,n,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});q.prototype.writeBigInt64BE=qi(function(t,n=0){return ZE(this,t,n,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function QE(e,t,n,r,i,s){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function JE(e,t,n,r,i){return t=+t,n=n>>>0,i||QE(e,t,n,4,34028234663852886e22,-34028234663852886e22),Ho.write(e,t,n,r,23,4),n+4}q.prototype.writeFloatLE=function(t,n,r){return JE(this,t,n,!0,r)};q.prototype.writeFloatBE=function(t,n,r){return JE(this,t,n,!1,r)};function e1(e,t,n,r,i){return t=+t,n=n>>>0,i||QE(e,t,n,8,17976931348623157e292,-17976931348623157e292),Ho.write(e,t,n,r,52,8),n+8}q.prototype.writeDoubleLE=function(t,n,r){return e1(this,t,n,!0,r)};q.prototype.writeDoubleBE=function(t,n,r){return e1(this,t,n,!1,r)};q.prototype.copy=function(t,n,r,i){if(!q.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),!i&&i!==0&&(i=this.length),n>=t.length&&(n=t.length),n||(n=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-n>>0,r=r===void 0?this.length:r>>>0,t||(t=0);let s;if(typeof t=="number")for(s=n;s2**32?i=HE(String(n)):typeof n=="bigint"&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=HE(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r},RangeError);function HE(e){let t="",n=e.length,r=e[0]==="-"?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function mj(e,t,n){Go(t,"offset"),(e[t]===void 0||e[t+n]===void 0)&&Uc(t,e.length-(n+1))}function t1(e,t,n,r,i,s){if(e>n||e3?t===0||t===BigInt(0)?a=`>= 0${o} and < 2${o} ** ${(s+1)*8}${o}`:a=`>= -(2${o} ** ${(s+1)*8-1}${o}) and < 2 ** ${(s+1)*8-1}${o}`:a=`>= ${t}${o} and <= ${n}${o}`,new qo.ERR_OUT_OF_RANGE("value",a,e)}mj(r,i,s)}function Go(e,t){if(typeof e!="number")throw new qo.ERR_INVALID_ARG_TYPE(t,"number",e)}function Uc(e,t,n){throw Math.floor(e)!==e?(Go(e,n),new qo.ERR_OUT_OF_RANGE(n||"offset","an integer",e)):t<0?new qo.ERR_BUFFER_OUT_OF_BOUNDS:new qo.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}var hj=/[^+/0-9A-Za-z-_]/g;function gj(e){if(e=e.split("=")[0],e=e.trim().replace(hj,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function ry(e,t){t=t||1/0;let n,r=e.length,i=null,s=[];for(let o=0;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&s.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return s}function yj(e){let t=[];for(let n=0;n>8,i=n%256,s.push(i),s.push(r);return s}function n1(e){return ey.toByteArray(gj(e))}function Dp(e,t,n,r){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function qr(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function ay(e){return e!==e}var vj=(function(){let e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){let r=n*16;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t})();function qi(e){return typeof BigInt=="undefined"?bj:e}function bj(){throw new Error("BigInt not supported")}});var h,c=Ns(()=>{h=at(Cr())});var i1=F((ISe,r1)=>{c();function _j(){this.__data__=[],this.size=0}r1.exports=_j});var jc=F((NSe,s1)=>{c();function wj(e,t){return e===t||e!==e&&t!==t}s1.exports=wj});var zc=F((LSe,o1)=>{c();var Ej=jc();function Dj(e,t){for(var n=e.length;n--;)if(Ej(e[n][0],t))return n;return-1}o1.exports=Dj});var c1=F((USe,a1)=>{c();var Sj=zc(),Cj=Array.prototype,Tj=Cj.splice;function Aj(e){var t=this.__data__,n=Sj(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Tj.call(t,n,1),--this.size,!0}a1.exports=Aj});var l1=F((zSe,u1)=>{c();var Rj=zc();function kj(e){var t=this.__data__,n=Rj(t,e);return n<0?void 0:t[n][1]}u1.exports=kj});var d1=F((HSe,p1)=>{c();var Oj=zc();function Fj(e){return Oj(this.__data__,e)>-1}p1.exports=Fj});var m1=F((VSe,f1)=>{c();var Bj=zc();function Ij(e,t){var n=this.__data__,r=Bj(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}f1.exports=Ij});var qc=F((KSe,h1)=>{c();var Pj=i1(),Nj=c1(),Mj=l1(),Lj=d1(),$j=m1();function Wo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{c();var Uj=qc();function jj(){this.__data__=new Uj,this.size=0}g1.exports=jj});var v1=F((QSe,x1)=>{c();function zj(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}x1.exports=zj});var _1=F((eCe,b1)=>{c();function qj(e){return this.__data__.get(e)}b1.exports=qj});var E1=F((nCe,w1)=>{c();function Hj(e){return this.__data__.has(e)}w1.exports=Hj});var cy=F((iCe,D1)=>{c();var Gj=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis;D1.exports=Gj});var Tr=F((oCe,S1)=>{c();var Vj=cy(),Wj=typeof self=="object"&&self&&self.Object===Object&&self,Kj=Vj||Wj||Function("return this")();S1.exports=Kj});var Ko=F((cCe,C1)=>{c();var Yj=Tr(),Xj=Yj.Symbol;C1.exports=Xj});var k1=F((lCe,R1)=>{c();var T1=Ko(),A1=Object.prototype,Zj=A1.hasOwnProperty,Qj=A1.toString,Hc=T1?T1.toStringTag:void 0;function Jj(e){var t=Zj.call(e,Hc),n=e[Hc];try{e[Hc]=void 0;var r=!0}catch(s){}var i=Qj.call(e);return r&&(t?e[Hc]=n:delete e[Hc]),i}R1.exports=Jj});var F1=F((dCe,O1)=>{c();var e7=Object.prototype,t7=e7.toString;function n7(e){return t7.call(e)}O1.exports=n7});var Yo=F((mCe,P1)=>{c();var B1=Ko(),r7=k1(),i7=F1(),s7="[object Null]",o7="[object Undefined]",I1=B1?B1.toStringTag:void 0;function a7(e){return e==null?e===void 0?o7:s7:I1&&I1 in Object(e)?r7(e):i7(e)}P1.exports=a7});var Hi=F((gCe,N1)=>{c();function c7(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}N1.exports=c7});var uy=F((xCe,M1)=>{c();var u7=Yo(),l7=Hi(),p7="[object AsyncFunction]",d7="[object Function]",f7="[object GeneratorFunction]",m7="[object Proxy]";function h7(e){if(!l7(e))return!1;var t=u7(e);return t==d7||t==f7||t==p7||t==m7}M1.exports=h7});var $1=F((bCe,L1)=>{c();var g7=Tr(),y7=g7["__core-js_shared__"];L1.exports=y7});var z1=F((wCe,j1)=>{c();var ly=$1(),U1=(function(){var e=/[^.]+$/.exec(ly&&ly.keys&&ly.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function x7(e){return!!U1&&U1 in e}j1.exports=x7});var py=F((DCe,q1)=>{c();var v7=Function.prototype,b7=v7.toString;function _7(e){if(e!=null){try{return b7.call(e)}catch(t){}try{return e+""}catch(t){}}return""}q1.exports=_7});var G1=F((CCe,H1)=>{c();var w7=uy(),E7=z1(),D7=Hi(),S7=py(),C7=/[\\^$.*+?()[\]{}|]/g,T7=/^\[object .+?Constructor\]$/,A7=Function.prototype,R7=Object.prototype,k7=A7.toString,O7=R7.hasOwnProperty,F7=RegExp("^"+k7.call(O7).replace(C7,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function B7(e){if(!D7(e)||E7(e))return!1;var t=w7(e)?F7:T7;return t.test(S7(e))}H1.exports=B7});var W1=F((ACe,V1)=>{c();function I7(e,t){return e==null?void 0:e[t]}V1.exports=I7});var Gi=F((kCe,K1)=>{c();var P7=G1(),N7=W1();function M7(e,t){var n=N7(e,t);return P7(n)?n:void 0}K1.exports=M7});var Sp=F((FCe,Y1)=>{c();var L7=Gi(),$7=Tr(),U7=L7($7,"Map");Y1.exports=U7});var Gc=F((ICe,X1)=>{c();var j7=Gi(),z7=j7(Object,"create");X1.exports=z7});var J1=F((NCe,Q1)=>{c();var Z1=Gc();function q7(){this.__data__=Z1?Z1(null):{},this.size=0}Q1.exports=q7});var tD=F((LCe,eD)=>{c();function H7(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}eD.exports=H7});var rD=F((UCe,nD)=>{c();var G7=Gc(),V7="__lodash_hash_undefined__",W7=Object.prototype,K7=W7.hasOwnProperty;function Y7(e){var t=this.__data__;if(G7){var n=t[e];return n===V7?void 0:n}return K7.call(t,e)?t[e]:void 0}nD.exports=Y7});var sD=F((zCe,iD)=>{c();var X7=Gc(),Z7=Object.prototype,Q7=Z7.hasOwnProperty;function J7(e){var t=this.__data__;return X7?t[e]!==void 0:Q7.call(t,e)}iD.exports=J7});var aD=F((HCe,oD)=>{c();var e9=Gc(),t9="__lodash_hash_undefined__";function n9(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=e9&&t===void 0?t9:t,this}oD.exports=n9});var uD=F((VCe,cD)=>{c();var r9=J1(),i9=tD(),s9=rD(),o9=sD(),a9=aD();function Xo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{c();var lD=uD(),c9=qc(),u9=Sp();function l9(){this.size=0,this.__data__={hash:new lD,map:new(u9||c9),string:new lD}}pD.exports=l9});var mD=F((XCe,fD)=>{c();function p9(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}fD.exports=p9});var Vc=F((QCe,hD)=>{c();var d9=mD();function f9(e,t){var n=e.__data__;return d9(t)?n[typeof t=="string"?"string":"hash"]:n.map}hD.exports=f9});var yD=F((eTe,gD)=>{c();var m9=Vc();function h9(e){var t=m9(this,e).delete(e);return this.size-=t?1:0,t}gD.exports=h9});var vD=F((nTe,xD)=>{c();var g9=Vc();function y9(e){return g9(this,e).get(e)}xD.exports=y9});var _D=F((iTe,bD)=>{c();var x9=Vc();function v9(e){return x9(this,e).has(e)}bD.exports=v9});var ED=F((oTe,wD)=>{c();var b9=Vc();function _9(e,t){var n=b9(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}wD.exports=_9});var dy=F((cTe,DD)=>{c();var w9=dD(),E9=yD(),D9=vD(),S9=_D(),C9=ED();function Zo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{c();var T9=qc(),A9=Sp(),R9=dy(),k9=200;function O9(e,t){var n=this.__data__;if(n instanceof T9){var r=n.__data__;if(!A9||r.length{c();var F9=qc(),B9=y1(),I9=v1(),P9=_1(),N9=E1(),M9=CD();function Qo(e){var t=this.__data__=new F9(e);this.size=t.size}Qo.prototype.clear=B9;Qo.prototype.delete=I9;Qo.prototype.get=P9;Qo.prototype.has=N9;Qo.prototype.set=M9;TD.exports=Qo});var RD=F((mTe,AD)=>{c();function L9(e,t){for(var n=-1,r=e==null?0:e.length;++n{c();var $9=Gi(),U9=(function(){try{var e=$9(Object,"defineProperty");return e({},"",{}),e}catch(t){}})();kD.exports=U9});var my=F((xTe,BD)=>{c();var FD=OD();function j9(e,t,n){t=="__proto__"&&FD?FD(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}BD.exports=j9});var hy=F((bTe,ID)=>{c();var z9=my(),q9=jc(),H9=Object.prototype,G9=H9.hasOwnProperty;function V9(e,t,n){var r=e[t];(!(G9.call(e,t)&&q9(r,n))||n===void 0&&!(t in e))&&z9(e,t,n)}ID.exports=V9});var Wc=F((wTe,PD)=>{c();var W9=hy(),K9=my();function Y9(e,t,n,r){var i=!n;n||(n={});for(var s=-1,o=t.length;++s{c();function X9(e,t){for(var n=-1,r=Array(e);++n{c();function Z9(e){return e!=null&&typeof e=="object"}LD.exports=Z9});var UD=F((ATe,$D)=>{c();var Q9=Yo(),J9=Vi(),ez="[object Arguments]";function tz(e){return J9(e)&&Q9(e)==ez}$D.exports=tz});var gy=F((kTe,qD)=>{c();var jD=UD(),nz=Vi(),zD=Object.prototype,rz=zD.hasOwnProperty,iz=zD.propertyIsEnumerable,sz=jD((function(){return arguments})())?jD:function(e){return nz(e)&&rz.call(e,"callee")&&!iz.call(e,"callee")};qD.exports=sz});var Jo=F((FTe,HD)=>{c();var oz=Array.isArray;HD.exports=oz});var VD=F((ITe,GD)=>{c();function az(){return!1}GD.exports=az});var Cp=F((Kc,ea)=>{c();var cz=Tr(),uz=VD(),YD=typeof Kc=="object"&&Kc&&!Kc.nodeType&&Kc,WD=YD&&typeof ea=="object"&&ea&&!ea.nodeType&&ea,lz=WD&&WD.exports===YD,KD=lz?cz.Buffer:void 0,pz=KD?KD.isBuffer:void 0,dz=pz||uz;ea.exports=dz});var yy=F((MTe,XD)=>{c();var fz=9007199254740991,mz=/^(?:0|[1-9]\d*)$/;function hz(e,t){var n=typeof e;return t=t==null?fz:t,!!t&&(n=="number"||n!="symbol"&&mz.test(e))&&e>-1&&e%1==0&&e{c();var gz=9007199254740991;function yz(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=gz}ZD.exports=yz});var JD=F((jTe,QD)=>{c();var xz=Yo(),vz=xy(),bz=Vi(),_z="[object Arguments]",wz="[object Array]",Ez="[object Boolean]",Dz="[object Date]",Sz="[object Error]",Cz="[object Function]",Tz="[object Map]",Az="[object Number]",Rz="[object Object]",kz="[object RegExp]",Oz="[object Set]",Fz="[object String]",Bz="[object WeakMap]",Iz="[object ArrayBuffer]",Pz="[object DataView]",Nz="[object Float32Array]",Mz="[object Float64Array]",Lz="[object Int8Array]",$z="[object Int16Array]",Uz="[object Int32Array]",jz="[object Uint8Array]",zz="[object Uint8ClampedArray]",qz="[object Uint16Array]",Hz="[object Uint32Array]",tt={};tt[Nz]=tt[Mz]=tt[Lz]=tt[$z]=tt[Uz]=tt[jz]=tt[zz]=tt[qz]=tt[Hz]=!0;tt[_z]=tt[wz]=tt[Iz]=tt[Ez]=tt[Pz]=tt[Dz]=tt[Sz]=tt[Cz]=tt[Tz]=tt[Az]=tt[Rz]=tt[kz]=tt[Oz]=tt[Fz]=tt[Bz]=!1;function Gz(e){return bz(e)&&vz(e.length)&&!!tt[xz(e)]}QD.exports=Gz});var Tp=F((qTe,eS)=>{c();function Vz(e){return function(t){return e(t)}}eS.exports=Vz});var Ap=F((Yc,ta)=>{c();var Wz=cy(),tS=typeof Yc=="object"&&Yc&&!Yc.nodeType&&Yc,Xc=tS&&typeof ta=="object"&&ta&&!ta.nodeType&&ta,Kz=Xc&&Xc.exports===tS,vy=Kz&&Wz.process,Yz=(function(){try{var e=Xc&&Xc.require&&Xc.require("util").types;return e||vy&&vy.binding&&vy.binding("util")}catch(t){}})();ta.exports=Yz});var by=F((VTe,iS)=>{c();var Xz=JD(),Zz=Tp(),nS=Ap(),rS=nS&&nS.isTypedArray,Qz=rS?Zz(rS):Xz;iS.exports=Qz});var _y=F((KTe,sS)=>{c();var Jz=MD(),eq=gy(),tq=Jo(),nq=Cp(),rq=yy(),iq=by(),sq=Object.prototype,oq=sq.hasOwnProperty;function aq(e,t){var n=tq(e),r=!n&&eq(e),i=!n&&!r&&nq(e),s=!n&&!r&&!i&&iq(e),o=n||r||i||s,a=o?Jz(e.length,String):[],l=a.length;for(var u in e)(t||oq.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||rq(u,l)))&&a.push(u);return a}sS.exports=aq});var Rp=F((XTe,oS)=>{c();var cq=Object.prototype;function uq(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||cq;return e===n}oS.exports=uq});var wy=F((QTe,aS)=>{c();function lq(e,t){return function(n){return e(t(n))}}aS.exports=lq});var uS=F((e2e,cS)=>{c();var pq=wy(),dq=pq(Object.keys,Object);cS.exports=dq});var pS=F((n2e,lS)=>{c();var fq=Rp(),mq=uS(),hq=Object.prototype,gq=hq.hasOwnProperty;function yq(e){if(!fq(e))return mq(e);var t=[];for(var n in Object(e))gq.call(e,n)&&n!="constructor"&&t.push(n);return t}lS.exports=yq});var kp=F((i2e,dS)=>{c();var xq=uy(),vq=xy();function bq(e){return e!=null&&vq(e.length)&&!xq(e)}dS.exports=bq});var Op=F((o2e,fS)=>{c();var _q=_y(),wq=pS(),Eq=kp();function Dq(e){return Eq(e)?_q(e):wq(e)}fS.exports=Dq});var hS=F((c2e,mS)=>{c();var Sq=Wc(),Cq=Op();function Tq(e,t){return e&&Sq(t,Cq(t),e)}mS.exports=Tq});var yS=F((l2e,gS)=>{c();function Aq(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}gS.exports=Aq});var vS=F((d2e,xS)=>{c();var Rq=Hi(),kq=Rp(),Oq=yS(),Fq=Object.prototype,Bq=Fq.hasOwnProperty;function Iq(e){if(!Rq(e))return Oq(e);var t=kq(e),n=[];for(var r in e)r=="constructor"&&(t||!Bq.call(e,r))||n.push(r);return n}xS.exports=Iq});var Fp=F((m2e,bS)=>{c();var Pq=_y(),Nq=vS(),Mq=kp();function Lq(e){return Mq(e)?Pq(e,!0):Nq(e)}bS.exports=Lq});var wS=F((g2e,_S)=>{c();var $q=Wc(),Uq=Fp();function jq(e,t){return e&&$q(t,Uq(t),e)}_S.exports=jq});var TS=F((Zc,na)=>{c();var zq=Tr(),CS=typeof Zc=="object"&&Zc&&!Zc.nodeType&&Zc,ES=CS&&typeof na=="object"&&na&&!na.nodeType&&na,qq=ES&&ES.exports===CS,DS=qq?zq.Buffer:void 0,SS=DS?DS.allocUnsafe:void 0;function Hq(e,t){if(t)return e.slice();var n=e.length,r=SS?SS(n):new e.constructor(n);return e.copy(r),r}na.exports=Hq});var RS=F((v2e,AS)=>{c();function Gq(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n{c();function Vq(e,t){for(var n=-1,r=e==null?0:e.length,i=0,s=[];++n{c();function Wq(){return[]}FS.exports=Wq});var Bp=F((S2e,IS)=>{c();var Kq=OS(),Yq=Ey(),Xq=Object.prototype,Zq=Xq.propertyIsEnumerable,BS=Object.getOwnPropertySymbols,Qq=BS?function(e){return e==null?[]:(e=Object(e),Kq(BS(e),function(t){return Zq.call(e,t)}))}:Yq;IS.exports=Qq});var NS=F((T2e,PS)=>{c();var Jq=Wc(),eH=Bp();function tH(e,t){return Jq(e,eH(e),t)}PS.exports=tH});var Ip=F((R2e,MS)=>{c();function nH(e,t){for(var n=-1,r=t.length,i=e.length;++n{c();var rH=wy(),iH=rH(Object.getPrototypeOf,Object);LS.exports=iH});var Sy=F((B2e,$S)=>{c();var sH=Ip(),oH=Dy(),aH=Bp(),cH=Ey(),uH=Object.getOwnPropertySymbols,lH=uH?function(e){for(var t=[];e;)sH(t,aH(e)),e=oH(e);return t}:cH;$S.exports=lH});var jS=F((P2e,US)=>{c();var pH=Wc(),dH=Sy();function fH(e,t){return pH(e,dH(e),t)}US.exports=fH});var Cy=F((M2e,zS)=>{c();var mH=Ip(),hH=Jo();function gH(e,t,n){var r=t(e);return hH(e)?r:mH(r,n(e))}zS.exports=gH});var Ty=F(($2e,qS)=>{c();var yH=Cy(),xH=Bp(),vH=Op();function bH(e){return yH(e,vH,xH)}qS.exports=bH});var GS=F((j2e,HS)=>{c();var _H=Cy(),wH=Sy(),EH=Fp();function DH(e){return _H(e,EH,wH)}HS.exports=DH});var WS=F((q2e,VS)=>{c();var SH=Gi(),CH=Tr(),TH=SH(CH,"DataView");VS.exports=TH});var YS=F((G2e,KS)=>{c();var AH=Gi(),RH=Tr(),kH=AH(RH,"Promise");KS.exports=kH});var ZS=F((W2e,XS)=>{c();var OH=Gi(),FH=Tr(),BH=OH(FH,"Set");XS.exports=BH});var JS=F((Y2e,QS)=>{c();var IH=Gi(),PH=Tr(),NH=IH(PH,"WeakMap");QS.exports=NH});var Qc=F((Z2e,oC)=>{c();var Ay=WS(),Ry=Sp(),ky=YS(),Oy=ZS(),Fy=JS(),sC=Yo(),ra=py(),eC="[object Map]",MH="[object Object]",tC="[object Promise]",nC="[object Set]",rC="[object WeakMap]",iC="[object DataView]",LH=ra(Ay),$H=ra(Ry),UH=ra(ky),jH=ra(Oy),zH=ra(Fy),$s=sC;(Ay&&$s(new Ay(new ArrayBuffer(1)))!=iC||Ry&&$s(new Ry)!=eC||ky&&$s(ky.resolve())!=tC||Oy&&$s(new Oy)!=nC||Fy&&$s(new Fy)!=rC)&&($s=function(e){var t=sC(e),n=t==MH?e.constructor:void 0,r=n?ra(n):"";if(r)switch(r){case LH:return iC;case $H:return eC;case UH:return tC;case jH:return nC;case zH:return rC}return t});oC.exports=$s});var cC=F((J2e,aC)=>{c();var qH=Object.prototype,HH=qH.hasOwnProperty;function GH(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&HH.call(e,"index")&&(n.index=e.index,n.input=e.input),n}aC.exports=GH});var By=F((tAe,uC)=>{c();var VH=Tr(),WH=VH.Uint8Array;uC.exports=WH});var Pp=F((rAe,pC)=>{c();var lC=By();function KH(e){var t=new e.constructor(e.byteLength);return new lC(t).set(new lC(e)),t}pC.exports=KH});var fC=F((sAe,dC)=>{c();var YH=Pp();function XH(e,t){var n=t?YH(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}dC.exports=XH});var hC=F((aAe,mC)=>{c();var ZH=/\w*$/;function QH(e){var t=new e.constructor(e.source,ZH.exec(e));return t.lastIndex=e.lastIndex,t}mC.exports=QH});var bC=F((uAe,vC)=>{c();var gC=Ko(),yC=gC?gC.prototype:void 0,xC=yC?yC.valueOf:void 0;function JH(e){return xC?Object(xC.call(e)):{}}vC.exports=JH});var wC=F((pAe,_C)=>{c();var eG=Pp();function tG(e,t){var n=t?eG(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}_C.exports=tG});var DC=F((fAe,EC)=>{c();var nG=Pp(),rG=fC(),iG=hC(),sG=bC(),oG=wC(),aG="[object Boolean]",cG="[object Date]",uG="[object Map]",lG="[object Number]",pG="[object RegExp]",dG="[object Set]",fG="[object String]",mG="[object Symbol]",hG="[object ArrayBuffer]",gG="[object DataView]",yG="[object Float32Array]",xG="[object Float64Array]",vG="[object Int8Array]",bG="[object Int16Array]",_G="[object Int32Array]",wG="[object Uint8Array]",EG="[object Uint8ClampedArray]",DG="[object Uint16Array]",SG="[object Uint32Array]";function CG(e,t,n){var r=e.constructor;switch(t){case hG:return nG(e);case aG:case cG:return new r(+e);case gG:return rG(e,n);case yG:case xG:case vG:case bG:case _G:case wG:case EG:case DG:case SG:return oG(e,n);case uG:return new r;case lG:case fG:return new r(e);case pG:return iG(e);case dG:return new r;case mG:return sG(e)}}EC.exports=CG});var TC=F((hAe,CC)=>{c();var TG=Hi(),SC=Object.create,AG=(function(){function e(){}return function(t){if(!TG(t))return{};if(SC)return SC(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})();CC.exports=AG});var RC=F((yAe,AC)=>{c();var RG=TC(),kG=Dy(),OG=Rp();function FG(e){return typeof e.constructor=="function"&&!OG(e)?RG(kG(e)):{}}AC.exports=FG});var OC=F((vAe,kC)=>{c();var BG=Qc(),IG=Vi(),PG="[object Map]";function NG(e){return IG(e)&&BG(e)==PG}kC.exports=NG});var PC=F((_Ae,IC)=>{c();var MG=OC(),LG=Tp(),FC=Ap(),BC=FC&&FC.isMap,$G=BC?LG(BC):MG;IC.exports=$G});var MC=F((EAe,NC)=>{c();var UG=Qc(),jG=Vi(),zG="[object Set]";function qG(e){return jG(e)&&UG(e)==zG}NC.exports=qG});var jC=F((SAe,UC)=>{c();var HG=MC(),GG=Tp(),LC=Ap(),$C=LC&&LC.isSet,VG=$C?GG($C):HG;UC.exports=VG});var VC=F((TAe,GC)=>{c();var WG=fy(),KG=RD(),YG=hy(),XG=hS(),ZG=wS(),QG=TS(),JG=RS(),eV=NS(),tV=jS(),nV=Ty(),rV=GS(),iV=Qc(),sV=cC(),oV=DC(),aV=RC(),cV=Jo(),uV=Cp(),lV=PC(),pV=Hi(),dV=jC(),fV=Op(),mV=Fp(),hV=1,gV=2,yV=4,zC="[object Arguments]",xV="[object Array]",vV="[object Boolean]",bV="[object Date]",_V="[object Error]",qC="[object Function]",wV="[object GeneratorFunction]",EV="[object Map]",DV="[object Number]",HC="[object Object]",SV="[object RegExp]",CV="[object Set]",TV="[object String]",AV="[object Symbol]",RV="[object WeakMap]",kV="[object ArrayBuffer]",OV="[object DataView]",FV="[object Float32Array]",BV="[object Float64Array]",IV="[object Int8Array]",PV="[object Int16Array]",NV="[object Int32Array]",MV="[object Uint8Array]",LV="[object Uint8ClampedArray]",$V="[object Uint16Array]",UV="[object Uint32Array]",Qe={};Qe[zC]=Qe[xV]=Qe[kV]=Qe[OV]=Qe[vV]=Qe[bV]=Qe[FV]=Qe[BV]=Qe[IV]=Qe[PV]=Qe[NV]=Qe[EV]=Qe[DV]=Qe[HC]=Qe[SV]=Qe[CV]=Qe[TV]=Qe[AV]=Qe[MV]=Qe[LV]=Qe[$V]=Qe[UV]=!0;Qe[_V]=Qe[qC]=Qe[RV]=!1;function Np(e,t,n,r,i,s){var o,a=t&hV,l=t&gV,u=t&yV;if(n&&(o=i?n(e,r,i,s):n(e)),o!==void 0)return o;if(!pV(e))return e;var p=cV(e);if(p){if(o=sV(e),!a)return JG(e,o)}else{var d=iV(e),f=d==qC||d==wV;if(uV(e))return QG(e,a);if(d==HC||d==zC||f&&!i){if(o=l||f?{}:aV(e),!a)return l?tV(e,ZG(o,e)):eV(e,XG(o,e))}else{if(!Qe[d])return i?e:{};o=oV(e,d,a)}}s||(s=new WG);var m=s.get(e);if(m)return m;s.set(e,o),dV(e)?e.forEach(function(v){o.add(Np(v,t,n,v,e,s))}):lV(e)&&e.forEach(function(v,_){o.set(_,Np(v,t,n,_,e,s))});var g=u?l?rV:nV:l?mV:fV,x=p?void 0:g(e);return KG(x||e,function(v,_){x&&(_=v,v=e[_]),YG(o,_,Np(v,t,n,_,e,s))}),o}GC.exports=Np});var Jc=F((RAe,WC)=>{c();var jV=VC(),zV=1,qV=4;function HV(e){return jV(e,zV|qV)}WC.exports=HV});var Wt,d0=Ns(()=>{c();Wt=e=>new TextEncoder().encode(e)});var Rr,A2=Ns(()=>{c();d0();Rr=e=>typeof e=="string"?Wt(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)});var In,R2=Ns(()=>{c();In=e=>{if(typeof e=="string")return e;if(typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)}});var Zt=Ns(()=>{c();d0();A2();R2()});var G0,kA=Ns(()=>{c();Zt();G0=class{constructor({marshaller:t,serializer:n,deserializer:r,serdeContext:i,defaultContentType:s}){C(this,"marshaller");C(this,"serializer");C(this,"deserializer");C(this,"serdeContext");C(this,"defaultContentType");this.marshaller=t,this.serializer=n,this.deserializer=r,this.serdeContext=i,this.defaultContentType=s}async serializeEventStream({eventStream:t,requestSchema:n,initialRequest:r}){let i=this.marshaller,s=n.getEventStreamMember(),o=n.getMemberSchema(s),a=this.serializer,l=this.defaultContentType,u=Symbol("initialRequestMarker"),p={async*[Symbol.asyncIterator](){if(r){let d={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:l}};a.write(n,r);let f=a.flush();yield{[u]:!0,headers:d,body:f}}for await(let d of t)yield d}};return i.serialize(p,d=>{if(d[u])return{headers:d.headers,body:d.body};let f="";for(let w in d)if(w!=="__type"){f=w;break}let{additionalHeaders:m,body:g,eventType:x,explicitPayloadContentType:v}=this.writeEventBody(f,o,d);return{headers:{":event-type":{type:"string",value:x},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:v!=null?v:l},...m},body:g}})}async deserializeEventStream({response:t,responseSchema:n,initialResponseContainer:r}){var f;let i=this.marshaller,s=n.getEventStreamMember(),a=n.getMemberSchema(s).getMemberSchemas(),l=Symbol("initialResponseMarker"),u=i.deserialize(t.body,async m=>{var v,_,w;let g="";for(let E in m)if(E!=="__type"){g=E;break}let x=m[g].body;if(g==="initial-response"){let E=await this.deserializer.read(n,x);return delete E[s],{[l]:!0,...E}}else if(g in a){let E=a[g];if(E.isStructSchema()){let S={},A=!1;for(let[k,I]of E.structIterator()){let{eventHeader:M,eventPayload:U}=I.getMergedTraits();if(A=A||!!(M||U),U)I.isBlobSchema()?S[k]=x:I.isStringSchema()?S[k]=((_=(v=this.serdeContext)==null?void 0:v.utf8Encoder)!=null?_:In)(x):I.isStructSchema()&&(S[k]=await this.deserializer.read(I,x));else if(M){let $=(w=m[g].headers[k])==null?void 0:w.value;$!=null&&(I.isNumericSchema()?$&&typeof $=="object"&&"bytes"in $?S[k]=BigInt($.toString()):S[k]=Number($):S[k]=$)}}if(A)return{[g]:S};if(x.byteLength===0)return{[g]:{}}}return{[g]:await this.deserializer.read(E,x)}}else return{$unknown:m}}),p=u[Symbol.asyncIterator](),d=await p.next();if(d.done)return u;if((f=d.value)!=null&&f[l]){if(!n)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(let m in d.value)r[m]=d.value[m]}return{async*[Symbol.asyncIterator](){var m;for((m=d==null?void 0:d.value)!=null&&m[l]||(yield d.value);;){let{done:g,value:x}=await p.next();if(g)break;yield x}}}}writeEventBody(t,n,r){var f,m,g;let i=this.serializer,s=t,o=null,a,l=n.getSchema()[4].includes(t),u={};if(l){let x=n.getMemberSchema(t);if(x.isStructSchema()){for(let[v,_]of x.structIterator()){let{eventHeader:w,eventPayload:E}=_.getMergedTraits();if(E)o=v;else if(w){let S=r[t][v],A="binary";_.isNumericSchema()?(-2)**31<=S&&S<=2**31-1?A="integer":A="long":_.isTimestampSchema()?A="timestamp":_.isStringSchema()?A="string":_.isBooleanSchema()&&(A="boolean"),S!=null&&(u[v]={type:A,value:S},delete r[t][v])}}if(o!==null){let v=x.getMemberSchema(o);v.isBlobSchema()?a="application/octet-stream":v.isStringSchema()&&(a="text/plain"),i.write(v,r[t][o])}else i.write(x,r[t])}else if(x.isUnitSchema())i.write(x,{});else throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}else{let[x,v]=r[t];s=x,i.write(15,v)}let p=(f=i.flush())!=null?f:new Uint8Array;return{body:typeof p=="string"?((g=(m=this.serdeContext)==null?void 0:m.utf8Decoder)!=null?g:Wt)(p):p,eventType:s,explicitPayloadContentType:a,additionalHeaders:u}}}});var OA={};PE(OA,{EventStreamSerde:()=>G0});var FA=Ns(()=>{c();kA()});var wl=F((ktt,cb)=>{"use strict";c();var rc=typeof Reflect=="object"?Reflect:null,CP=rc&&typeof rc.apply=="function"?rc.apply:function(t,n,r){return Function.prototype.apply.call(t,n,r)},Um;rc&&typeof rc.ownKeys=="function"?Um=rc.ownKeys:Object.getOwnPropertySymbols?Um=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Um=function(t){return Object.getOwnPropertyNames(t)};function Cge(e){console&&console.warn&&console.warn(e)}var AP=Number.isNaN||function(t){return t!==t};function Ye(){Ye.init.call(this)}cb.exports=Ye;cb.exports.once=kge;Ye.EventEmitter=Ye;Ye.prototype._events=void 0;Ye.prototype._eventsCount=0;Ye.prototype._maxListeners=void 0;var TP=10;function jm(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Ye,"defaultMaxListeners",{enumerable:!0,get:function(){return TP},set:function(e){if(typeof e!="number"||e<0||AP(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");TP=e}});Ye.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ye.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||AP(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function RP(e){return e._maxListeners===void 0?Ye.defaultMaxListeners:e._maxListeners}Ye.prototype.getMaxListeners=function(){return RP(this)};Ye.prototype.emit=function(t){for(var n=[],r=1;r0&&(o=n[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var l=s[t];if(l===void 0)return!1;if(typeof l=="function")CP(l,this,n);else for(var u=l.length,p=IP(l,u),r=0;r0&&o.length>i&&!o.warned){o.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=o.length,Cge(a)}return e}Ye.prototype.addListener=function(t,n){return kP(this,t,n,!1)};Ye.prototype.on=Ye.prototype.addListener;Ye.prototype.prependListener=function(t,n){return kP(this,t,n,!0)};function Tge(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function OP(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=Tge.bind(r);return i.listener=n,r.wrapFn=i,i}Ye.prototype.once=function(t,n){return jm(n),this.on(t,OP(this,t,n)),this};Ye.prototype.prependOnceListener=function(t,n){return jm(n),this.prependListener(t,OP(this,t,n)),this};Ye.prototype.removeListener=function(t,n){var r,i,s,o,a;if(jm(n),i=this._events,i===void 0)return this;if(r=i[t],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,r.listener||n));else if(typeof r!="function"){for(s=-1,o=r.length-1;o>=0;o--)if(r[o]===n||r[o].listener===n){a=r[o].listener,s=o;break}if(s<0)return this;s===0?r.shift():Age(r,s),r.length===1&&(i[t]=r[0]),i.removeListener!==void 0&&this.emit("removeListener",t,a||n)}return this};Ye.prototype.off=Ye.prototype.removeListener;Ye.prototype.removeAllListeners=function(t){var n,r,i;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[t]),this;if(arguments.length===0){var s=Object.keys(r),o;for(i=0;i=0;i--)this.removeListener(t,n[i]);return this};function FP(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i=="function"?n?[i.listener||i]:[i]:n?Rge(i):IP(i,i.length)}Ye.prototype.listeners=function(t){return FP(this,t,!0)};Ye.prototype.rawListeners=function(t){return FP(this,t,!1)};Ye.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):BP.call(e,t)};Ye.prototype.listenerCount=BP;function BP(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}Ye.prototype.eventNames=function(){return this._eventsCount>0?Um(this._events):[]};function IP(e,t){for(var n=new Array(t),r=0;r{c();typeof Object.create=="function"?ub.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:ub.exports=function(t,n){if(n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}}});var lb=F((ztt,LP)=>{c();LP.exports=wl().EventEmitter});var pb=F((Htt,$P)=>{"use strict";c();$P.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;t[n]=i;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,n);if(a.value!==i||a.enumerable!==!0)return!1}return!0}});var El=F((Vtt,UP)=>{"use strict";c();var Fge=pb();UP.exports=function(){return Fge()&&!!Symbol.toStringTag}});var db=F((Ktt,jP)=>{"use strict";c();jP.exports=Object});var qP=F((Xtt,zP)=>{"use strict";c();zP.exports=Error});var GP=F((Qtt,HP)=>{"use strict";c();HP.exports=EvalError});var WP=F((ent,VP)=>{"use strict";c();VP.exports=RangeError});var YP=F((nnt,KP)=>{"use strict";c();KP.exports=ReferenceError});var fb=F((int,XP)=>{"use strict";c();XP.exports=SyntaxError});var ic=F((ont,ZP)=>{"use strict";c();ZP.exports=TypeError});var JP=F((cnt,QP)=>{"use strict";c();QP.exports=URIError});var tN=F((lnt,eN)=>{"use strict";c();eN.exports=Math.abs});var rN=F((dnt,nN)=>{"use strict";c();nN.exports=Math.floor});var sN=F((mnt,iN)=>{"use strict";c();iN.exports=Math.max});var aN=F((gnt,oN)=>{"use strict";c();oN.exports=Math.min});var uN=F((xnt,cN)=>{"use strict";c();cN.exports=Math.pow});var pN=F((bnt,lN)=>{"use strict";c();lN.exports=Math.round});var fN=F((wnt,dN)=>{"use strict";c();dN.exports=Number.isNaN||function(t){return t!==t}});var hN=F((Dnt,mN)=>{"use strict";c();var Bge=fN();mN.exports=function(t){return Bge(t)||t===0?t:t<0?-1:1}});var yN=F((Cnt,gN)=>{"use strict";c();gN.exports=Object.getOwnPropertyDescriptor});var wo=F((Ant,xN)=>{"use strict";c();var qm=yN();if(qm)try{qm([],"length")}catch(e){qm=null}xN.exports=qm});var Dl=F((knt,vN)=>{"use strict";c();var Hm=Object.defineProperty||!1;if(Hm)try{Hm({},"a",{value:1})}catch(e){Hm=!1}vN.exports=Hm});var wN=F((Fnt,_N)=>{"use strict";c();var bN=typeof Symbol!="undefined"&&Symbol,Ige=pb();_N.exports=function(){return typeof bN!="function"||typeof Symbol!="function"||typeof bN("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Ige()}});var mb=F((Int,EN)=>{"use strict";c();EN.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var hb=F((Nnt,DN)=>{"use strict";c();var Pge=db();DN.exports=Pge.getPrototypeOf||null});var TN=F((Lnt,CN)=>{"use strict";c();var Nge="Function.prototype.bind called on incompatible ",Mge=Object.prototype.toString,Lge=Math.max,$ge="[object Function]",SN=function(t,n){for(var r=[],i=0;i{"use strict";c();var zge=TN();AN.exports=Function.prototype.bind||zge});var Gm=F((znt,RN)=>{"use strict";c();RN.exports=Function.prototype.call});var Vm=F((Hnt,kN)=>{"use strict";c();kN.exports=Function.prototype.apply});var FN=F((Vnt,ON)=>{"use strict";c();ON.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var gb=F((Knt,BN)=>{"use strict";c();var qge=sc(),Hge=Vm(),Gge=Gm(),Vge=FN();BN.exports=Vge||qge.call(Gge,Hge)});var Wm=F((Xnt,IN)=>{"use strict";c();var Wge=sc(),Kge=ic(),Yge=Gm(),Xge=gb();IN.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new Kge("a function is required");return Xge(Wge,Yge,t)}});var UN=F((Qnt,$N)=>{"use strict";c();var Zge=Wm(),PN=wo(),MN;try{MN=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var yb=!!MN&&PN&&PN(Object.prototype,"__proto__"),LN=Object,NN=LN.getPrototypeOf;$N.exports=yb&&typeof yb.get=="function"?Zge([yb.get]):typeof NN=="function"?function(t){return NN(t==null?t:LN(t))}:!1});var Km=F((ert,HN)=>{"use strict";c();var jN=mb(),zN=hb(),qN=UN();HN.exports=jN?function(t){return jN(t)}:zN?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return zN(t)}:qN?function(t){return qN(t)}:null});var xb=F((nrt,GN)=>{"use strict";c();var Qge=Function.prototype.call,Jge=Object.prototype.hasOwnProperty,eye=sc();GN.exports=eye.call(Qge,Jge)});var _b=F((irt,ZN)=>{"use strict";c();var xe,tye=db(),nye=qP(),rye=GP(),iye=WP(),sye=YP(),uc=fb(),cc=ic(),oye=JP(),aye=tN(),cye=rN(),uye=sN(),lye=aN(),pye=uN(),dye=pN(),fye=hN(),YN=Function,vb=function(e){try{return YN('"use strict"; return ('+e+").constructor;")()}catch(t){}},Sl=wo(),mye=Dl(),bb=function(){throw new cc},hye=Sl?(function(){try{return arguments.callee,bb}catch(e){try{return Sl(arguments,"callee").get}catch(t){return bb}}})():bb,oc=wN()(),zt=Km(),gye=hb(),yye=mb(),XN=Vm(),Cl=Gm(),ac={},xye=typeof Uint8Array=="undefined"||!zt?xe:zt(Uint8Array),Eo={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?xe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?xe:ArrayBuffer,"%ArrayIteratorPrototype%":oc&&zt?zt([][Symbol.iterator]()):xe,"%AsyncFromSyncIteratorPrototype%":xe,"%AsyncFunction%":ac,"%AsyncGenerator%":ac,"%AsyncGeneratorFunction%":ac,"%AsyncIteratorPrototype%":ac,"%Atomics%":typeof Atomics=="undefined"?xe:Atomics,"%BigInt%":typeof BigInt=="undefined"?xe:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?xe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?xe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?xe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":nye,"%eval%":eval,"%EvalError%":rye,"%Float16Array%":typeof Float16Array=="undefined"?xe:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?xe:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?xe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?xe:FinalizationRegistry,"%Function%":YN,"%GeneratorFunction%":ac,"%Int8Array%":typeof Int8Array=="undefined"?xe:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?xe:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?xe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":oc&&zt?zt(zt([][Symbol.iterator]())):xe,"%JSON%":typeof JSON=="object"?JSON:xe,"%Map%":typeof Map=="undefined"?xe:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!oc||!zt?xe:zt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":tye,"%Object.getOwnPropertyDescriptor%":Sl,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?xe:Promise,"%Proxy%":typeof Proxy=="undefined"?xe:Proxy,"%RangeError%":iye,"%ReferenceError%":sye,"%Reflect%":typeof Reflect=="undefined"?xe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?xe:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!oc||!zt?xe:zt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?xe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":oc&&zt?zt(""[Symbol.iterator]()):xe,"%Symbol%":oc?Symbol:xe,"%SyntaxError%":uc,"%ThrowTypeError%":hye,"%TypedArray%":xye,"%TypeError%":cc,"%Uint8Array%":typeof Uint8Array=="undefined"?xe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?xe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?xe:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?xe:Uint32Array,"%URIError%":oye,"%WeakMap%":typeof WeakMap=="undefined"?xe:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?xe:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?xe:WeakSet,"%Function.prototype.call%":Cl,"%Function.prototype.apply%":XN,"%Object.defineProperty%":mye,"%Object.getPrototypeOf%":gye,"%Math.abs%":aye,"%Math.floor%":cye,"%Math.max%":uye,"%Math.min%":lye,"%Math.pow%":pye,"%Math.round%":dye,"%Math.sign%":fye,"%Reflect.getPrototypeOf%":yye};if(zt)try{null.error}catch(e){VN=zt(zt(e)),Eo["%Error.prototype%"]=VN}var VN,vye=function e(t){var n;if(t==="%AsyncFunction%")n=vb("async function () {}");else if(t==="%GeneratorFunction%")n=vb("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=vb("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&zt&&(n=zt(i.prototype))}return Eo[t]=n,n},WN={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Tl=sc(),Ym=xb(),bye=Tl.call(Cl,Array.prototype.concat),_ye=Tl.call(XN,Array.prototype.splice),KN=Tl.call(Cl,String.prototype.replace),Xm=Tl.call(Cl,String.prototype.slice),wye=Tl.call(Cl,RegExp.prototype.exec),Eye=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Dye=/\\(\\)?/g,Sye=function(t){var n=Xm(t,0,1),r=Xm(t,-1);if(n==="%"&&r!=="%")throw new uc("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new uc("invalid intrinsic syntax, expected opening `%`");var i=[];return KN(t,Eye,function(s,o,a,l){i[i.length]=a?KN(l,Dye,"$1"):o||s}),i},Cye=function(t,n){var r=t,i;if(Ym(WN,r)&&(i=WN[r],r="%"+i[0]+"%"),Ym(Eo,r)){var s=Eo[r];if(s===ac&&(s=vye(r)),typeof s=="undefined"&&!n)throw new cc("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:s}}throw new uc("intrinsic "+t+" does not exist!")};ZN.exports=function(t,n){if(typeof t!="string"||t.length===0)throw new cc("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new cc('"allowMissing" argument must be a boolean');if(wye(/^%?[^%]*%?$/,t)===null)throw new uc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Sye(t),i=r.length>0?r[0]:"",s=Cye("%"+i+"%",n),o=s.name,a=s.value,l=!1,u=s.alias;u&&(i=u[0],_ye(r,bye([0,1],u)));for(var p=1,d=!0;p=r.length){var x=Sl(a,f);d=!!x,d&&"get"in x&&!("originalValue"in x.get)?a=x.get:a=a[f]}else d=Ym(a,f),a=a[f];d&&!l&&(Eo[o]=a)}}return a}});var lc=F((ort,e4)=>{"use strict";c();var QN=_b(),JN=Wm(),Tye=JN([QN("%String.prototype.indexOf%")]);e4.exports=function(t,n){var r=QN(t,!!n);return typeof r=="function"&&Tye(t,".prototype.")>-1?JN([r]):r}});var r4=F((crt,n4)=>{"use strict";c();var Aye=El()(),Rye=lc(),wb=Rye("Object.prototype.toString"),Zm=function(t){return Aye&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:wb(t)==="[object Arguments]"},t4=function(t){return Zm(t)?!0:t!==null&&typeof t=="object"&&"length"in t&&typeof t.length=="number"&&t.length>=0&&wb(t)!=="[object Array]"&&"callee"in t&&wb(t.callee)==="[object Function]"},kye=(function(){return Zm(arguments)})();Zm.isLegacyArguments=t4;n4.exports=kye?Zm:t4});var u4=F((lrt,c4)=>{"use strict";c();var i4=lc(),Oye=El()(),Fye=xb(),Bye=wo(),Sb;Oye?(s4=i4("RegExp.prototype.exec"),Eb={},Qm=function(){throw Eb},Db={toString:Qm,valueOf:Qm},typeof Symbol.toPrimitive=="symbol"&&(Db[Symbol.toPrimitive]=Qm),Sb=function(t){if(!t||typeof t!="object")return!1;var n=Bye(t,"lastIndex"),r=n&&Fye(n,"value");if(!r)return!1;try{s4(t,Db)}catch(i){return i===Eb}}):(o4=i4("Object.prototype.toString"),a4="[object RegExp]",Sb=function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:o4(t)===a4});var s4,Eb,Qm,Db,o4,a4;c4.exports=Sb});var p4=F((drt,l4)=>{"use strict";c();var Iye=lc(),Pye=u4(),Nye=Iye("RegExp.prototype.exec"),Mye=ic();l4.exports=function(t){if(!Pye(t))throw new Mye("`regex` must be a RegExp");return function(r){return Nye(t,r)!==null}}});var f4=F((mrt,d4)=>{"use strict";c();var Lye=function*(){}.constructor;d4.exports=()=>Lye});var y4=F((grt,g4)=>{"use strict";c();var h4=lc(),$ye=p4(),Uye=$ye(/^\s*(?:function)?\*/),jye=El()(),m4=Km(),zye=h4("Object.prototype.toString"),qye=h4("Function.prototype.toString"),Hye=f4();g4.exports=function(t){if(typeof t!="function")return!1;if(Uye(qye(t)))return!0;if(!jye){var n=zye(t);return n==="[object GeneratorFunction]"}if(!m4)return!1;var r=Hye();return r&&m4(t)===r.prototype}});var _4=F((xrt,b4)=>{"use strict";c();var v4=Function.prototype.toString,pc=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Tb,Jm;if(typeof pc=="function"&&typeof Object.defineProperty=="function")try{Tb=Object.defineProperty({},"length",{get:function(){throw Jm}}),Jm={},pc(function(){throw 42},null,Tb)}catch(e){e!==Jm&&(pc=null)}else pc=null;var Gye=/^\s*class\b/,Ab=function(t){try{var n=v4.call(t);return Gye.test(n)}catch(r){return!1}},Cb=function(t){try{return Ab(t)?!1:(v4.call(t),!0)}catch(n){return!1}},eh=Object.prototype.toString,Vye="[object Object]",Wye="[object Function]",Kye="[object GeneratorFunction]",Yye="[object HTMLAllCollection]",Xye="[object HTML document.all class]",Zye="[object HTMLCollection]",Qye=typeof Symbol=="function"&&!!Symbol.toStringTag,Jye=!(0 in[,]),Rb=function(){return!1};typeof document=="object"&&(x4=document.all,eh.call(x4)===eh.call(document.all)&&(Rb=function(t){if((Jye||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var n=eh.call(t);return(n===Yye||n===Xye||n===Zye||n===Vye)&&t("")==null}catch(r){}return!1}));var x4;b4.exports=pc?function(t){if(Rb(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{pc(t,null,Tb)}catch(n){if(n!==Jm)return!1}return!Ab(t)&&Cb(t)}:function(t){if(Rb(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(Qye)return Cb(t);if(Ab(t))return!1;var n=eh.call(t);return n!==Wye&&n!==Kye&&!/^\[object HTML/.test(n)?!1:Cb(t)}});var D4=F((brt,E4)=>{"use strict";c();var e0e=_4(),t0e=Object.prototype.toString,w4=Object.prototype.hasOwnProperty,n0e=function(t,n,r){for(var i=0,s=t.length;i=3&&(i=r),s0e(t)?n0e(t,n,i):typeof t=="string"?r0e(t,n,i):i0e(t,n,i)}});var C4=F((wrt,S4)=>{"use strict";c();S4.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var A4=F((Drt,T4)=>{"use strict";c();var kb=C4(),o0e=globalThis;T4.exports=function(){for(var t=[],n=0;n{"use strict";c();var R4=Dl(),a0e=fb(),dc=ic(),k4=wo();O4.exports=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new dc("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new dc("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new dc("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new dc("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new dc("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new dc("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!k4&&k4(t,n);if(R4)R4(t,n,{configurable:o===null&&l?l.configurable:!o,enumerable:i===null&&l?l.enumerable:!i,value:r,writable:s===null&&l?l.writable:!s});else if(a||!i&&!s&&!o)t[n]=r;else throw new a0e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var P4=F((Art,I4)=>{"use strict";c();var Ob=Dl(),B4=function(){return!!Ob};B4.hasArrayLengthDefineBug=function(){if(!Ob)return null;try{return Ob([],"length",{value:1}).length!==1}catch(t){return!0}};I4.exports=B4});var U4=F((krt,$4)=>{"use strict";c();var c0e=_b(),N4=F4(),u0e=P4()(),M4=wo(),L4=ic(),l0e=c0e("%Math.floor%");$4.exports=function(t,n){if(typeof t!="function")throw new L4("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||l0e(n)!==n)throw new L4("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],i=!0,s=!0;if("length"in t&&M4){var o=M4(t,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(s=!1)}return(i||s||!r)&&(u0e?N4(t,"length",n,!0,!0):N4(t,"length",n)),t}});var z4=F((Frt,j4)=>{"use strict";c();var p0e=sc(),d0e=Vm(),f0e=gb();j4.exports=function(){return f0e(p0e,d0e,arguments)}});var G4=F((Irt,th)=>{"use strict";c();var m0e=U4(),q4=Dl(),h0e=Wm(),H4=z4();th.exports=function(t){var n=h0e(arguments),r=1+t.length-(arguments.length-1);return m0e(n,r>0?r:0,!0)};q4?q4(th.exports,"apply",{value:H4}):th.exports.apply=H4});var Pb=F((Nrt,Y4)=>{"use strict";c();var ih=D4(),g0e=A4(),V4=G4(),Bb=lc(),rh=wo(),nh=Km(),y0e=Bb("Object.prototype.toString"),K4=El()(),W4=globalThis,Fb=g0e(),Ib=Bb("String.prototype.slice"),x0e=Bb("Array.prototype.indexOf",!0)||function(t,n){for(var r=0;r-1?n:n!=="Object"?!1:b0e(t)}return rh?v0e(t):null}});var Z4=F((Lrt,X4)=>{"use strict";c();var _0e=Pb();X4.exports=function(t){return!!_0e(t)}});var pM=F(ve=>{"use strict";c();var w0e=r4(),E0e=y4(),Mr=Pb(),Q4=Z4();function fc(e){return e.call.bind(e)}var J4=typeof BigInt!="undefined",eM=typeof Symbol!="undefined",yr=fc(Object.prototype.toString),D0e=fc(Number.prototype.valueOf),S0e=fc(String.prototype.valueOf),C0e=fc(Boolean.prototype.valueOf);J4&&(tM=fc(BigInt.prototype.valueOf));var tM;eM&&(nM=fc(Symbol.prototype.valueOf));var nM;function Rl(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch(n){return!1}}ve.isArgumentsObject=w0e;ve.isGeneratorFunction=E0e;ve.isTypedArray=Q4;function T0e(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}ve.isPromise=T0e;function A0e(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):Q4(e)||iM(e)}ve.isArrayBufferView=A0e;function R0e(e){return Mr(e)==="Uint8Array"}ve.isUint8Array=R0e;function k0e(e){return Mr(e)==="Uint8ClampedArray"}ve.isUint8ClampedArray=k0e;function O0e(e){return Mr(e)==="Uint16Array"}ve.isUint16Array=O0e;function F0e(e){return Mr(e)==="Uint32Array"}ve.isUint32Array=F0e;function B0e(e){return Mr(e)==="Int8Array"}ve.isInt8Array=B0e;function I0e(e){return Mr(e)==="Int16Array"}ve.isInt16Array=I0e;function P0e(e){return Mr(e)==="Int32Array"}ve.isInt32Array=P0e;function N0e(e){return Mr(e)==="Float32Array"}ve.isFloat32Array=N0e;function M0e(e){return Mr(e)==="Float64Array"}ve.isFloat64Array=M0e;function L0e(e){return Mr(e)==="BigInt64Array"}ve.isBigInt64Array=L0e;function $0e(e){return Mr(e)==="BigUint64Array"}ve.isBigUint64Array=$0e;function oh(e){return yr(e)==="[object Map]"}oh.working=typeof Map!="undefined"&&oh(new Map);function U0e(e){return typeof Map=="undefined"?!1:oh.working?oh(e):e instanceof Map}ve.isMap=U0e;function ah(e){return yr(e)==="[object Set]"}ah.working=typeof Set!="undefined"&&ah(new Set);function j0e(e){return typeof Set=="undefined"?!1:ah.working?ah(e):e instanceof Set}ve.isSet=j0e;function ch(e){return yr(e)==="[object WeakMap]"}ch.working=typeof WeakMap!="undefined"&&ch(new WeakMap);function z0e(e){return typeof WeakMap=="undefined"?!1:ch.working?ch(e):e instanceof WeakMap}ve.isWeakMap=z0e;function Mb(e){return yr(e)==="[object WeakSet]"}Mb.working=typeof WeakSet!="undefined"&&Mb(new WeakSet);function q0e(e){return Mb(e)}ve.isWeakSet=q0e;function uh(e){return yr(e)==="[object ArrayBuffer]"}uh.working=typeof ArrayBuffer!="undefined"&&uh(new ArrayBuffer);function rM(e){return typeof ArrayBuffer=="undefined"?!1:uh.working?uh(e):e instanceof ArrayBuffer}ve.isArrayBuffer=rM;function lh(e){return yr(e)==="[object DataView]"}lh.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&lh(new DataView(new ArrayBuffer(1),0,1));function iM(e){return typeof DataView=="undefined"?!1:lh.working?lh(e):e instanceof DataView}ve.isDataView=iM;var Nb=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function Al(e){return yr(e)==="[object SharedArrayBuffer]"}function sM(e){return typeof Nb=="undefined"?!1:(typeof Al.working=="undefined"&&(Al.working=Al(new Nb)),Al.working?Al(e):e instanceof Nb)}ve.isSharedArrayBuffer=sM;function H0e(e){return yr(e)==="[object AsyncFunction]"}ve.isAsyncFunction=H0e;function G0e(e){return yr(e)==="[object Map Iterator]"}ve.isMapIterator=G0e;function V0e(e){return yr(e)==="[object Set Iterator]"}ve.isSetIterator=V0e;function W0e(e){return yr(e)==="[object Generator]"}ve.isGeneratorObject=W0e;function K0e(e){return yr(e)==="[object WebAssembly.Module]"}ve.isWebAssemblyCompiledModule=K0e;function oM(e){return Rl(e,D0e)}ve.isNumberObject=oM;function aM(e){return Rl(e,S0e)}ve.isStringObject=aM;function cM(e){return Rl(e,C0e)}ve.isBooleanObject=cM;function uM(e){return J4&&Rl(e,tM)}ve.isBigIntObject=uM;function lM(e){return eM&&Rl(e,nM)}ve.isSymbolObject=lM;function Y0e(e){return oM(e)||aM(e)||cM(e)||uM(e)||lM(e)}ve.isBoxedPrimitive=Y0e;function X0e(e){return typeof Uint8Array!="undefined"&&(rM(e)||sM(e))}ve.isAnyArrayBuffer=X0e;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(ve,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var fM=F((zrt,dM)=>{c();dM.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var qb=F(be=>{c();var mM=Object.getOwnPropertyDescriptors||function(t){for(var n=Object.keys(t),r={},i=0;i=i)return a;switch(a){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(l){return"[Circular]"}default:return a}}),o=r[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),jb(t)?n.showHidden=t:t&&be._extend(n,t),So(n.showHidden)&&(n.showHidden=!1),So(n.depth)&&(n.depth=2),So(n.colors)&&(n.colors=!1),So(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=Q0e),mh(n,e,n.depth)}be.inspect=ys;ys.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};ys.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function Q0e(e,t){var n=ys.styles[t];return n?"\x1B["+ys.colors[n][0]+"m"+e+"\x1B["+ys.colors[n][1]+"m":e}function J0e(e,t){return e}function exe(e){var t={};return e.forEach(function(n,r){t[n]=!0}),t}function mh(e,t,n){if(e.customInspect&&t&&fh(t.inspect)&&t.inspect!==be.inspect&&!(t.constructor&&t.constructor.prototype===t)){var r=t.inspect(n,e);return yh(r)||(r=mh(e,r,n)),r}var i=txe(e,t);if(i)return i;var s=Object.keys(t),o=exe(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),Ol(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return Lb(t);if(s.length===0){if(fh(t)){var a=t.name?": "+t.name:"";return e.stylize("[Function"+a+"]","special")}if(kl(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(hh(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Ol(t))return Lb(t)}var l="",u=!1,p=["{","}"];if(gM(t)&&(u=!0,p=["[","]"]),fh(t)){var d=t.name?": "+t.name:"";l=" [Function"+d+"]"}if(kl(t)&&(l=" "+RegExp.prototype.toString.call(t)),hh(t)&&(l=" "+Date.prototype.toUTCString.call(t)),Ol(t)&&(l=" "+Lb(t)),s.length===0&&(!u||t.length==0))return p[0]+l+p[1];if(n<0)return kl(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var f;return u?f=nxe(e,t,n,o,s):f=s.map(function(m){return Ub(e,t,n,o,m,u)}),e.seen.pop(),rxe(f,l,p)}function txe(e,t){if(So(t))return e.stylize("undefined","undefined");if(yh(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(yM(t))return e.stylize(""+t,"number");if(jb(t))return e.stylize(""+t,"boolean");if(gh(t))return e.stylize("null","null")}function Lb(e){return"["+Error.prototype.toString.call(e)+"]"}function nxe(e,t,n,r,i){for(var s=[],o=0,a=t.length;o-1&&(s?a=a.split(` `).map(function(u){return" "+u}).join(` `).slice(2):a=` `+a.split(` `).map(function(u){return" "+u}).join(` -`))):a=e.stylize("[Circular]","special")),_o(o)){if(s&&i.match(/^\d+$/))return a;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+a}function G0e(e,t,n){var r=0,i=e.reduce(function(s,o){return r++,o.indexOf(` +`))):a=e.stylize("[Circular]","special")),So(o)){if(s&&i.match(/^\d+$/))return a;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+a}function rxe(e,t,n){var r=0,i=e.reduce(function(s,o){return r++,o.indexOf(` `)>=0&&r++,s+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?n[0]+(t===""?"":t+` `)+" "+e.join(`, - `)+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}ve.types=cM();function fM(e){return Array.isArray(e)}ve.isArray=fM;function $b(e){return typeof e=="boolean"}ve.isBoolean=$b;function fh(e){return e===null}ve.isNull=fh;function V0e(e){return e==null}ve.isNullOrUndefined=V0e;function mM(e){return typeof e=="number"}ve.isNumber=mM;function mh(e){return typeof e=="string"}ve.isString=mh;function W0e(e){return typeof e=="symbol"}ve.isSymbol=W0e;function _o(e){return e===void 0}ve.isUndefined=_o;function Cl(e){return pc(e)&&Ub(e)==="[object RegExp]"}ve.isRegExp=Cl;ve.types.isRegExp=Cl;function pc(e){return typeof e=="object"&&e!==null}ve.isObject=pc;function dh(e){return pc(e)&&Ub(e)==="[object Date]"}ve.isDate=dh;ve.types.isDate=dh;function Tl(e){return pc(e)&&(Ub(e)==="[object Error]"||e instanceof Error)}ve.isError=Tl;ve.types.isNativeError=Tl;function lh(e){return typeof e=="function"}ve.isFunction=lh;function K0e(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}ve.isPrimitive=K0e;ve.isBuffer=lM();function Ub(e){return Object.prototype.toString.call(e)}function Mb(e){return e<10?"0"+e.toString(10):e.toString(10)}var Y0e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function X0e(){var e=new Date,t=[Mb(e.getHours()),Mb(e.getMinutes()),Mb(e.getSeconds())].join(":");return[e.getDate(),Y0e[e.getMonth()],t].join(" ")}ve.log=function(){console.log("%s - %s",X0e(),ve.format.apply(ve,arguments))};ve.inherits=ms();ve._extend=function(e,t){if(!t||!pc(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};function hM(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var bo=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;ve.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(bo&&t[bo]){var n=t[bo];if(typeof n!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(n,bo,{value:n,enumerable:!1,writable:!1,configurable:!0}),n}function n(){for(var r,i,s=new Promise(function(l,u){r=l,i=u}),o=[],a=0;a{"use strict";c();function gM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yM(e){for(var t=1;t0?this.tail.next=r:this.head=r,this.tail=r,++this.length}},{key:"unshift",value:function(n){var r={data:n,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}},{key:"shift",value:function(){if(this.length!==0){var n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(n){if(this.length===0)return"";for(var r=this.head,i=""+r.data;r=r.next;)i+=n+r.data;return i}},{key:"concat",value:function(n){if(this.length===0)return hh.alloc(0);for(var r=hh.allocUnsafe(n>>>0),i=this.head,s=0;i;)oxe(i.data,r,s),s+=i.data.length,i=i.next;return r}},{key:"consume",value:function(n,r){var i;return no.length?o.length:n;if(a===o.length?s+=o:s+=o.slice(0,n),n-=a,n===0){a===o.length?(++i,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(a));break}++i}return this.length-=i,s}},{key:"_getBuffer",value:function(n){var r=hh.allocUnsafe(n),i=this.head,s=1;for(i.data.copy(r),n-=i.data.length;i=i.next;){var o=i.data,a=n>o.length?o.length:n;if(o.copy(r,r.length-n,0,a),n-=a,n===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,r}},{key:sxe,value:function(n,r){return zb(this,yM(yM({},r),{},{depth:0,customInspect:!1}))}}]),e})()});var Hb=F((Lrt,EM)=>{"use strict";c();function axe(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(qb,this,e)):process.nextTick(qb,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?n._writableState?n._writableState.errorEmitted?process.nextTick(gh,n):(n._writableState.errorEmitted=!0,process.nextTick(wM,n,s)):process.nextTick(wM,n,s):t?(process.nextTick(gh,n),t(s)):process.nextTick(gh,n)}),this)}function wM(e,t){qb(e,t),gh(e)}function gh(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function cxe(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function qb(e,t){e.emit("error",t)}function uxe(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}EM.exports={destroy:axe,undestroy:cxe,errorOrDestroy:uxe}});var wo=F((Urt,CM)=>{"use strict";c();function lxe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var SM={};function yr(e,t,n){n||(n=Error);function r(s,o,a){return typeof t=="string"?t:t(s,o,a)}var i=(function(s){lxe(o,s);function o(a,l,u){return s.call(this,r(a,l,u))||this}return o})(n);i.prototype.name=n.name,i.prototype.code=e,SM[e]=i}function DM(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(r){return String(r)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:n===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function pxe(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function dxe(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function fxe(e,t,n){return typeof n!="number"&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}yr("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);yr("ERR_INVALID_ARG_TYPE",function(e,t,n){var r;typeof t=="string"&&pxe(t,"not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";var i;if(dxe(e," argument"))i="The ".concat(e," ").concat(r," ").concat(DM(t,"type"));else{var s=fxe(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(s," ").concat(r," ").concat(DM(t,"type"))}return i+=". Received type ".concat(typeof n),i},TypeError);yr("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");yr("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});yr("ERR_STREAM_PREMATURE_CLOSE","Premature close");yr("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});yr("ERR_MULTIPLE_CALLBACK","Callback called multiple times");yr("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");yr("ERR_STREAM_WRITE_AFTER_END","write after end");yr("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);yr("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);yr("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");CM.exports.codes=SM});var Gb=F((zrt,TM)=>{"use strict";c();var mxe=wo().codes.ERR_INVALID_OPT_VALUE;function hxe(e,t,n){return e.highWaterMark!=null?e.highWaterMark:t?e[n]:null}function gxe(e,t,n,r){var i=hxe(t,r,n);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=r?n:"highWaterMark";throw new mxe(s,i)}return Math.floor(i)}return e.objectMode?16:16*1024}TM.exports={getHighWaterMark:gxe}});var RM=F((Hrt,AM)=>{c();AM.exports=yxe;function yxe(e,t){if(Vb("noDeprecation"))return e;var n=!1;function r(){if(!n){if(Vb("throwDeprecation"))throw new Error(t);Vb("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return r}function Vb(e){try{if(!globalThis.localStorage)return!1}catch(n){return!1}var t=globalThis.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var Yb=F((Vrt,PM)=>{"use strict";c();PM.exports=gt;function OM(e){var t=this;this.next=null,this.entry=null,this.finish=function(){Hxe(t,e)}}var dc;gt.WritableState=Rl;var xxe={deprecate:RM()},FM=cb(),xh=Sr().Buffer,vxe=(typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function bxe(e){return xh.from(e)}function _xe(e){return xh.isBuffer(e)||e instanceof vxe}var Kb=Hb(),wxe=Gb(),Exe=wxe.getHighWaterMark,gs=wo().codes,Dxe=gs.ERR_INVALID_ARG_TYPE,Sxe=gs.ERR_METHOD_NOT_IMPLEMENTED,Cxe=gs.ERR_MULTIPLE_CALLBACK,Txe=gs.ERR_STREAM_CANNOT_PIPE,Axe=gs.ERR_STREAM_DESTROYED,Rxe=gs.ERR_STREAM_NULL_VALUES,kxe=gs.ERR_STREAM_WRITE_AFTER_END,Oxe=gs.ERR_UNKNOWN_ENCODING,fc=Kb.errorOrDestroy;ms()(gt,FM);function Fxe(){}function Rl(e,t,n){dc=dc||Eo(),e=e||{},typeof n!="boolean"&&(n=t instanceof dc),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=Exe(this,e,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var r=e.decodeStrings===!1;this.decodeStrings=!r,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){$xe(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new OM(this)}Rl.prototype.getBuffer=function(){for(var t=this.bufferedRequest,n=[];t;)n.push(t),t=t.next;return n};(function(){try{Object.defineProperty(Rl.prototype,"buffer",{get:xxe.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var yh;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(yh=Function.prototype[Symbol.hasInstance],Object.defineProperty(gt,Symbol.hasInstance,{value:function(t){return yh.call(this,t)?!0:this!==gt?!1:t&&t._writableState instanceof Rl}})):yh=function(t){return t instanceof this};function gt(e){dc=dc||Eo();var t=this instanceof dc;if(!t&&!yh.call(gt,this))return new gt(e);this._writableState=new Rl(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),FM.call(this)}gt.prototype.pipe=function(){fc(this,new Txe)};function Bxe(e,t){var n=new kxe;fc(e,n),process.nextTick(t,n)}function Ixe(e,t,n,r){var i;return n===null?i=new Rxe:typeof n!="string"&&!t.objectMode&&(i=new Dxe("chunk",["string","Buffer"],n)),i?(fc(e,i),process.nextTick(r,i),!1):!0}gt.prototype.write=function(e,t,n){var r=this._writableState,i=!1,s=!r.objectMode&&_xe(e);return s&&!xh.isBuffer(e)&&(e=bxe(e)),typeof t=="function"&&(n=t,t=null),s?t="buffer":t||(t=r.defaultEncoding),typeof n!="function"&&(n=Fxe),r.ending?Bxe(this,n):(s||Ixe(this,r,e,n))&&(r.pendingcb++,i=Nxe(this,r,s,e,t,n)),i};gt.prototype.cork=function(){this._writableState.corked++};gt.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&BM(this,e))};gt.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new Oxe(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(gt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Pxe(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=xh.from(t,n)),t}Object.defineProperty(gt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Nxe(e,t,n,r,i,s){if(!n){var o=Pxe(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var a=t.objectMode?1:r.length;t.length+=a;var l=t.length{"use strict";c();var Gxe=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};MM.exports=si;var NM=Qb(),Zb=Yb();ms()(si,NM);for(Xb=Gxe(Zb.prototype),vh=0;vh{c();var _h=Sr(),Bi=_h.Buffer;function LM(e,t){for(var n in e)t[n]=e[n]}Bi.from&&Bi.alloc&&Bi.allocUnsafe&&Bi.allocUnsafeSlow?$M.exports=_h:(LM(_h,Jb),Jb.Buffer=mc);function mc(e,t,n){return Bi(e,t,n)}LM(Bi,mc);mc.from=function(e,t,n){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Bi(e,t,n)};mc.alloc=function(e,t,n){if(typeof e!="number")throw new TypeError("Argument must be a number");var r=Bi(e);return t!==void 0?typeof n=="string"?r.fill(t,n):r.fill(t):r.fill(0),r};mc.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Bi(e)};mc.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return _h.SlowBuffer(e)}});var n_=F(zM=>{"use strict";c();var t_=UM().Buffer,jM=t_.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Kxe(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function Yxe(e){var t=Kxe(e);if(typeof t!="string"&&(t_.isEncoding===jM||!jM(e)))throw new Error("Unknown encoding: "+e);return t||e}zM.StringDecoder=kl;function kl(e){this.encoding=Yxe(e);var t;switch(this.encoding){case"utf16le":this.text=tve,this.end=nve,t=4;break;case"utf8":this.fillLast=Qxe,t=4;break;case"base64":this.text=rve,this.end=ive,t=3;break;default:this.write=sve,this.end=ove;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t_.allocUnsafe(t)}kl.prototype.write=function(e){if(e.length===0)return"";var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function Xxe(e,t,n){var r=t.length-1;if(r=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function Zxe(e,t,n){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function Qxe(e){var t=this.lastTotal-this.lastNeed,n=Zxe(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function Jxe(e,t){var n=Xxe(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function eve(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function tve(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function nve(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function rve(e,t){var n=(e.length-t)%3;return n===0?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function ive(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function sve(e){return e.toString(this.encoding)}function ove(e){return e&&e.length?this.write(e):""}});var wh=F((Jrt,GM)=>{"use strict";c();var qM=wo().codes.ERR_STREAM_PREMATURE_CLOSE;function ave(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i{"use strict";c();var Eh;function ys(e,t,n){return t=lve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lve(e){var t=pve(e,"string");return typeof t=="symbol"?t:String(t)}function pve(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dve=wh(),xs=Symbol("lastResolve"),Do=Symbol("lastReject"),Ol=Symbol("error"),Dh=Symbol("ended"),So=Symbol("lastPromise"),r_=Symbol("handlePromise"),Co=Symbol("stream");function vs(e,t){return{value:e,done:t}}function fve(e){var t=e[xs];if(t!==null){var n=e[Co].read();n!==null&&(e[So]=null,e[xs]=null,e[Do]=null,t(vs(n,!1)))}}function mve(e){process.nextTick(fve,e)}function hve(e,t){return function(n,r){e.then(function(){if(t[Dh]){n(vs(void 0,!0));return}t[r_](n,r)},r)}}var gve=Object.getPrototypeOf(function(){}),yve=Object.setPrototypeOf((Eh={get stream(){return this[Co]},next:function(){var t=this,n=this[Ol];if(n!==null)return Promise.reject(n);if(this[Dh])return Promise.resolve(vs(void 0,!0));if(this[Co].destroyed)return new Promise(function(o,a){process.nextTick(function(){t[Ol]?a(t[Ol]):o(vs(void 0,!0))})});var r=this[So],i;if(r)i=new Promise(hve(r,this));else{var s=this[Co].read();if(s!==null)return Promise.resolve(vs(s,!1));i=new Promise(this[r_])}return this[So]=i,i}},ys(Eh,Symbol.asyncIterator,function(){return this}),ys(Eh,"return",function(){var t=this;return new Promise(function(n,r){t[Co].destroy(null,function(i){if(i){r(i);return}n(vs(void 0,!0))})})}),Eh),gve),xve=function(t){var n,r=Object.create(yve,(n={},ys(n,Co,{value:t,writable:!0}),ys(n,xs,{value:null,writable:!0}),ys(n,Do,{value:null,writable:!0}),ys(n,Ol,{value:null,writable:!0}),ys(n,Dh,{value:t._readableState.endEmitted,writable:!0}),ys(n,r_,{value:function(s,o){var a=r[Co].read();a?(r[So]=null,r[xs]=null,r[Do]=null,s(vs(a,!1))):(r[xs]=s,r[Do]=o)},writable:!0}),n));return r[So]=null,dve(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=r[Do];s!==null&&(r[So]=null,r[xs]=null,r[Do]=null,s(i)),r[Ol]=i;return}var o=r[xs];o!==null&&(r[So]=null,r[xs]=null,r[Do]=null,o(vs(void 0,!0))),r[Dh]=!0}),t.on("readable",mve.bind(null,r)),r};VM.exports=xve});var YM=F((rit,KM)=>{c();KM.exports=function(){throw new Error("Readable.from is not available in the browser")}});var Qb=F((oit,s8)=>{"use strict";c();s8.exports=Ce;var hc;Ce.ReadableState=JM;var sit=xl().EventEmitter,QM=function(t,n){return t.listeners(n).length},Bl=cb(),Sh=Sr().Buffer,vve=(typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function bve(e){return Sh.from(e)}function _ve(e){return Sh.isBuffer(e)||e instanceof vve}var i_=jb(),ge;i_&&i_.debuglog?ge=i_.debuglog("stream"):ge=function(){};var wve=_M(),p_=Hb(),Eve=Gb(),Dve=Eve.getHighWaterMark,Ch=wo().codes,Sve=Ch.ERR_INVALID_ARG_TYPE,Cve=Ch.ERR_STREAM_PUSH_AFTER_EOF,Tve=Ch.ERR_METHOD_NOT_IMPLEMENTED,Ave=Ch.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,gc,s_,o_;ms()(Ce,Bl);var Fl=p_.errorOrDestroy,a_=["error","close","destroy","pause","resume"];function Rve(e,t,n){if(typeof e.prependListener=="function")return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function JM(e,t,n){hc=hc||Eo(),e=e||{},typeof n!="boolean"&&(n=t instanceof hc),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=Dve(this,e,"readableHighWaterMark",n),this.buffer=new wve,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(gc||(gc=n_().StringDecoder),this.decoder=new gc(e.encoding),this.encoding=e.encoding)}function Ce(e){if(hc=hc||Eo(),!(this instanceof Ce))return new Ce(e);var t=this instanceof hc;this._readableState=new JM(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Bl.call(this)}Object.defineProperty(Ce.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Ce.prototype.destroy=p_.destroy;Ce.prototype._undestroy=p_.undestroy;Ce.prototype._destroy=function(e,t){t(e)};Ce.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e=="string"&&(t=t||n.defaultEncoding,t!==n.encoding&&(e=Sh.from(e,t),t=""),r=!0),e8(this,e,t,!1,r)};Ce.prototype.unshift=function(e){return e8(this,e,null,!0,!1)};function e8(e,t,n,r,i){ge("readableAddChunk",t);var s=e._readableState;if(t===null)s.reading=!1,Fve(e,s);else{var o;if(i||(o=kve(s,t)),o)Fl(e,o);else if(s.objectMode||t&&t.length>0)if(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==Sh.prototype&&(t=bve(t)),r)s.endEmitted?Fl(e,new Ave):c_(e,s,t,!0);else if(s.ended)Fl(e,new Cve);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||t.length!==0?c_(e,s,t,!1):l_(e,s)):c_(e,s,t,!1)}else r||(s.reading=!1,l_(e,s))}return!s.ended&&(s.length=XM?e=XM:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function ZM(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=Ove(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}Ce.prototype.read=function(e){ge("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return ge("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?u_(this):Th(this),null;if(e=ZM(e,t),e===0&&t.ended)return t.length===0&&u_(this),null;var r=t.needReadable;ge("need readable",r),(t.length===0||t.length-e0?i=r8(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&u_(this)),i!==null&&this.emit("data",i),i};function Fve(e,t){if(ge("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?Th(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t8(e)))}}function Th(e){var t=e._readableState;ge("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(ge("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(t8,e))}function t8(e){var t=e._readableState;ge("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,d_(e)}function l_(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(Bve,e,t))}function Bve(e,t){for(;!t.reading&&!t.ended&&(t.length1&&i8(r.pipes,e)!==-1)&&!u&&(ge("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function f(v){ge("onerror",v),x(),e.removeListener("error",f),QM(e,"error")===0&&Fl(e,v)}Rve(e,"error",f);function m(){e.removeListener("finish",g),x()}e.once("close",m);function g(){ge("onfinish"),e.removeListener("close",m),x()}e.once("finish",g);function x(){ge("unpipe"),n.unpipe(e)}return e.emit("pipe",n),r.flowing||(ge("pipe resume"),n.resume()),e};function Ive(e){return function(){var n=e._readableState;ge("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,n.awaitDrain===0&&QM(e,"data")&&(n.flowing=!0,d_(e))}}Ce.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s0,r.flowing!==!1&&this.resume()):e==="readable"&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,ge("on readable",r.length,r.reading),r.length?Th(this):r.reading||process.nextTick(Pve,this)),n};Ce.prototype.addListener=Ce.prototype.on;Ce.prototype.removeListener=function(e,t){var n=Bl.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(n8,this),n};Ce.prototype.removeAllListeners=function(e){var t=Bl.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(n8,this),t};function n8(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function Pve(e){ge("readable nexttick read 0"),e.read(0)}Ce.prototype.resume=function(){var e=this._readableState;return e.flowing||(ge("resume"),e.flowing=!e.readableListening,Nve(this,e)),e.paused=!1,this};function Nve(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(Mve,e,t))}function Mve(e,t){ge("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),d_(e),t.flowing&&!t.reading&&e.read(0)}Ce.prototype.pause=function(){return ge("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ge("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function d_(e){var t=e._readableState;for(ge("flow",t.flowing);t.flowing&&e.read()!==null;);}Ce.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;e.on("end",function(){if(ge("wrapped end"),n.decoder&&!n.ended){var o=n.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(ge("wrapped data"),n.decoder&&(o=n.decoder.write(o)),!(n.objectMode&&o==null)&&!(!n.objectMode&&(!o||!o.length))){var a=t.push(o);a||(r=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=(function(a){return function(){return e[a].apply(e,arguments)}})(i));for(var s=0;s=t.length?(t.decoder?n=t.buffer.join(""):t.buffer.length===1?n=t.buffer.first():n=t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function u_(e){var t=e._readableState;ge("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(Lve,t,e))}function Lve(e,t){if(ge("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}typeof Symbol=="function"&&(Ce.from=function(e,t){return o_===void 0&&(o_=YM()),o_(Ce,e,t)});function i8(e,t){for(var n=0,r=e.length;n{"use strict";c();a8.exports=Ii;var Ah=wo().codes,$ve=Ah.ERR_METHOD_NOT_IMPLEMENTED,Uve=Ah.ERR_MULTIPLE_CALLBACK,jve=Ah.ERR_TRANSFORM_ALREADY_TRANSFORMING,zve=Ah.ERR_TRANSFORM_WITH_LENGTH_0,Rh=Eo();ms()(Ii,Rh);function qve(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit("error",new Uve);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";c();u8.exports=Il;var c8=f_();ms()(Il,c8);function Il(e){if(!(this instanceof Il))return new Il(e);c8.call(this,e)}Il.prototype._transform=function(e,t,n){n(null,e)}});var h8=F((dit,m8)=>{"use strict";c();var m_;function Gve(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var f8=wo().codes,Vve=f8.ERR_MISSING_ARGS,Wve=f8.ERR_STREAM_DESTROYED;function p8(e){if(e)throw e}function Kve(e){return e.setHeader&&typeof e.abort=="function"}function Yve(e,t,n,r){r=Gve(r);var i=!1;e.on("close",function(){i=!0}),m_===void 0&&(m_=wh()),m_(e,{readable:t,writable:n},function(o){if(o)return r(o);i=!0,r()});var s=!1;return function(o){if(!i&&!s){if(s=!0,Kve(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();r(o||new Wve("pipe"))}}}function d8(e){e()}function Xve(e,t){return e.pipe(t)}function Zve(e){return!e.length||typeof e[e.length-1]!="function"?p8:e.pop()}function Qve(){for(var e=arguments.length,t=new Array(e),n=0;n0;return Yve(o,l,u,function(p){i||(i=p),p&&s.forEach(d8),!l&&(s.forEach(d8),r(i))})});return t.reduce(Xve)}m8.exports=Qve});var g_=F((mit,g8)=>{c();g8.exports=xr;var h_=xl().EventEmitter,Jve=ms();Jve(xr,h_);xr.Readable=Qb();xr.Writable=Yb();xr.Duplex=Eo();xr.Transform=f_();xr.PassThrough=l8();xr.finished=wh();xr.pipeline=h8();xr.Stream=xr;function xr(){h_.call(this)}xr.prototype.pipe=function(e,t){var n=this;function r(p){e.writable&&e.write(p)===!1&&n.pause&&n.pause()}n.on("data",r);function i(){n.readable&&n.resume&&n.resume()}e.on("drain",i),!e._isStdio&&(!t||t.end!==!1)&&(n.on("end",o),n.on("close",a));var s=!1;function o(){s||(s=!0,e.end())}function a(){s||(s=!0,typeof e.destroy=="function"&&e.destroy())}function l(p){if(u(),h_.listenerCount(this,"error")===0)throw p}n.on("error",l),e.on("error",l);function u(){n.removeListener("data",r),e.removeListener("drain",i),n.removeListener("end",o),n.removeListener("close",a),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}return n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e}});var E8=F((Pst,nbe)=>{nbe.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}});var S8=F((Nst,D8)=>{c();D8.exports=E8()});var A8=F((Lst,T8)=>{"use strict";c();function oi(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function C8(e,t){for(var n="",r=0,i=-1,s=0,o,a=0;a<=e.length;++a){if(a2){var l=n.lastIndexOf("/");if(l!==n.length-1){l===-1?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,s=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=a,s=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,s=0}else o===46&&s!==-1?++s:s=-1}return n}function rbe(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}var xc={resolve:function(){for(var t="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var s;i>=0?s=arguments[i]:(r===void 0&&(r=process.cwd()),s=r),oi(s),s.length!==0&&(t=s+"/"+t,n=s.charCodeAt(0)===47)}return t=C8(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(oi(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=C8(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return oi(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,n=0;n0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":xc.normalize(t)},relative:function(t,n){if(oi(t),oi(n),t===n||(t=xc.resolve(t),n=xc.resolve(n),t===n))return"";for(var r=1;ru){if(n.charCodeAt(o+d)===47)return n.slice(o+d+1);if(d===0)return n.slice(o+d)}else s>u&&(t.charCodeAt(r+d)===47?p=d:d===0&&(p=0));break}var f=t.charCodeAt(r+d),m=n.charCodeAt(o+d);if(f!==m)break;f===47&&(p=d)}var g="";for(d=r+p+1;d<=i;++d)(d===i||t.charCodeAt(d)===47)&&(g.length===0?g+="..":g+="/..");return g.length>0?g+n.slice(o+p):(o+=p,n.charCodeAt(o)===47&&++o,n.slice(o))},_makeLong:function(t){return t},dirname:function(t){if(oi(t),t.length===0)return".";for(var n=t.charCodeAt(0),r=n===47,i=-1,s=!0,o=t.length-1;o>=1;--o)if(n=t.charCodeAt(o),n===47){if(!s){i=o;break}}else s=!1;return i===-1?r?"/":".":r&&i===1?"//":t.slice(0,i)},basename:function(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');oi(t);var r=0,i=-1,s=!0,o;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var a=n.length-1,l=-1;for(o=t.length-1;o>=0;--o){var u=t.charCodeAt(o);if(u===47){if(!s){r=o+1;break}}else l===-1&&(s=!1,l=o+1),a>=0&&(u===n.charCodeAt(a)?--a===-1&&(i=o):(a=-1,i=l))}return r===i?i=l:i===-1&&(i=t.length),t.slice(r,i)}else{for(o=t.length-1;o>=0;--o)if(t.charCodeAt(o)===47){if(!s){r=o+1;break}}else i===-1&&(s=!1,i=o+1);return i===-1?"":t.slice(r,i)}},extname:function(t){oi(t);for(var n=-1,r=0,i=-1,s=!0,o=0,a=t.length-1;a>=0;--a){var l=t.charCodeAt(a);if(l===47){if(!s){r=a+1;break}continue}i===-1&&(s=!1,i=a+1),l===46?n===-1?n=a:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return rbe("/",t)},parse:function(t){oi(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;var r=t.charCodeAt(0),i=r===47,s;i?(n.root="/",s=1):s=0;for(var o=-1,a=0,l=-1,u=!0,p=t.length-1,d=0;p>=s;--p){if(r=t.charCodeAt(p),r===47){if(!u){a=p+1;break}continue}l===-1&&(u=!1,l=p+1),r===46?o===-1?o=p:d!==1&&(d=1):o!==-1&&(d=-1)}return o===-1||l===-1||d===0||d===1&&o===l-1&&o===a+1?l!==-1&&(a===0&&i?n.base=n.name=t.slice(1,l):n.base=n.name=t.slice(a,l)):(a===0&&i?(n.name=t.slice(1,o),n.base=t.slice(1,l)):(n.name=t.slice(a,o),n.base=t.slice(a,l)),n.ext=t.slice(o,l)),a>0?n.dir=t.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};xc.posix=xc;T8.exports=xc});var O8=F($n=>{"use strict";c();var Ih=S8(),ibe=A8().extname,R8=/^\s*([^;\s]*)(?:;|\s|$)/,sbe=/^text\//i;$n.charset=k8;$n.charsets={lookup:k8};$n.contentType=obe;$n.extension=abe;$n.extensions=Object.create(null);$n.lookup=cbe;$n.types=Object.create(null);ube($n.extensions,$n.types);function k8(e){if(!e||typeof e!="string")return!1;var t=R8.exec(e),n=t&&Ih[t[1].toLowerCase()];return n&&n.charset?n.charset:t&&sbe.test(t[1])?"UTF-8":!1}function obe(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?$n.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var n=$n.charset(t);n&&(t+="; charset="+n.toLowerCase())}return t}function abe(e){if(!e||typeof e!="string")return!1;var t=R8.exec(e),n=t&&$n.extensions[t[1].toLowerCase()];return!n||!n.length?!1:n[0]}function cbe(e){if(!e||typeof e!="string")return!1;var t=ibe("x."+e).toLowerCase().substr(1);return t&&$n.types[t]||!1}function ube(e,t){var n=["nginx","apache",void 0,"iana"];Object.keys(Ih).forEach(function(i){var s=Ih[i],o=s.extensions;if(!(!o||!o.length)){e[i]=o;for(var a=0;ap||u===p&&t[l].substr(0,12)==="application/"))continue}t[l]=i}}})}});var P8=F((I8,Ph)=>{c();(function(e,t){"use strict";typeof define=="function"&&define.amd?define(t):typeof Ph=="object"&&Ph.exports?Ph.exports=t():e.log=t()})(I8,function(){"use strict";var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"],i={},s=null;function o(g,x){var v=g[x];if(typeof v.bind=="function")return v.bind(g);try{return Function.prototype.bind.call(v,g)}catch(_){return function(){return Function.prototype.apply.apply(v,[g,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(g){return g==="debug"&&(g="log"),typeof console===t?!1:g==="trace"&&n?a:console[g]!==void 0?o(console,g):console.log!==void 0?o(console,"log"):e}function u(){for(var g=this.getLevel(),x=0;x=0&&W<=v.levels.SILENT)return W;throw new TypeError("log.setLevel() called with invalid level: "+$)}v.name=g,v.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},v.methodFactory=x||d,v.getLevel=function(){return D!=null?D:w!=null?w:_},v.setLevel=function($,W){return D=L($),W!==!1&&A(D),u.call(v)},v.setDefaultLevel=function($){w=L($),k()||v.setLevel($,!1)},v.resetLevel=function(){D=null,I(),u.call(v)},v.enableAll=function($){v.setLevel(v.levels.TRACE,$)},v.disableAll=function($){v.setLevel(v.levels.SILENT,$)},v.rebuild=function(){if(s!==v&&(_=L(s.getLevel())),u.call(v),s===v)for(var $ in i)i[$].rebuild()},_=L(s?s.getLevel():"WARN");var U=k();U!=null&&(D=L(U)),u.call(v)}s=new f,s.getLogger=function(x){if(typeof x!="symbol"&&typeof x!="string"||x==="")throw new TypeError("You must supply a name when creating a logger.");var v=i[x];return v||(v=i[x]=new f(x,s.methodFactory)),v};var m=typeof window!==t?window.log:void 0;return s.noConflict=function(){return typeof window!==t&&window.log===s&&(window.log=m),s},s.getLoggers=function(){return i},s.default=s,s})});var B_=F(_c=>{"use strict";c();Object.defineProperty(_c,"__esModule",{value:!0});_c.Queue=_c.Stack=void 0;var O_=class{constructor(t){t===void 0?(this.stackBack=[],this.length=0):(this.stackBack=[...t],this.length=this.stackBack.length)}push(t){this.stackBack.push(t),this.length+=1}pop(){if(this.length!==0)return this.length-=1,this.stackBack.pop()}size(){return this.length}back(){if(this.length!==0)return this.stackBack[this.stackBack.length-1]}};_c.Stack=O_;var F_=class{constructor(t){if(t===void 0)this.stackBack=[],this.stackFront=[],this.length=0;else{this.stackFront=[];for(let n=t.length-1;n>=0;n--)this.stackFront.push(t[n]);this.stackBack=[],this.length=this.stackFront.length}}push(t){this.stackBack.push(t),this.length+=1}pop(){if(this.length!==0){if(this.stackFront.length===0)for(;this.stackBack.length>0;)this.stackFront.push(this.stackBack.pop());return this.length-=1,this.stackFront.pop()}}shift(){return this.pop()}size(){return this.length}front(){if(this.length!==0){if(this.stackFront.length===0)for(;this.stackBack.length>0;)this.stackFront.push(this.stackBack.pop());return this.stackFront[this.stackFront.length-1]}}back(){if(this.length!==0)return this.stackBack.length>0?this.stackBack[this.stackBack.length-1]:this.stackFront[0]}};_c.Queue=F_});var eL=F((Kot,J8)=>{c();function Sbe(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(i);++r{c();var Cbe=Mc(),Tbe=Ap(),Abe=hy(),Rbe=zi();function kbe(e,t,n){if(!Rbe(n))return!1;var r=typeof t;return(r=="number"?Tbe(n)&&Abe(t,n.length):r=="string"&&t in n)?Cbe(n[t],e):!1}tL.exports=kbe});var iL=F((Qot,rL)=>{c();var Obe=/\s/;function Fbe(e){for(var t=e.length;t--&&Obe.test(e.charAt(t)););return t}rL.exports=Fbe});var oL=F((eat,sL)=>{c();var Bbe=iL(),Ibe=/^\s+/;function Pbe(e){return e&&e.slice(0,Bbe(e)+1).replace(Ibe,"")}sL.exports=Pbe});var cL=F((nat,aL)=>{c();var Nbe=Vo(),Mbe=Hi(),Lbe="[object Symbol]";function $be(e){return typeof e=="symbol"||Mbe(e)&&Nbe(e)==Lbe}aL.exports=$be});var dL=F((iat,pL)=>{c();var Ube=oL(),uL=zi(),jbe=cL(),lL=NaN,zbe=/^[-+]0x[0-9a-f]+$/i,qbe=/^0b[01]+$/i,Hbe=/^0o[0-7]+$/i,Gbe=parseInt;function Vbe(e){if(typeof e=="number")return e;if(jbe(e))return lL;if(uL(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=uL(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ube(e);var n=qbe.test(e);return n||Hbe.test(e)?Gbe(e.slice(2),n?2:8):zbe.test(e)?lL:+e}pL.exports=Vbe});var hL=F((oat,mL)=>{c();var Wbe=dL(),fL=1/0,Kbe=17976931348623157e292;function Ybe(e){if(!e)return e===0?e:0;if(e=Wbe(e),e===fL||e===-fL){var t=e<0?-1:1;return t*Kbe}return e===e?e:0}mL.exports=Ybe});var yL=F((cat,gL)=>{c();var Xbe=hL();function Zbe(e){var t=Xbe(e),n=t%1;return t===t?n?t-n:t:0}gL.exports=Zbe});var I_=F((lat,xL)=>{c();var Qbe=eL(),Jbe=nL(),e_e=yL(),t_e=Math.ceil,n_e=Math.max;function r_e(e,t,n){(n?Jbe(e,t,n):t===void 0)?t=1:t=n_e(e_e(t),0);var r=e==null?0:e.length;if(!r||t<1)return[];for(var i=0,s=0,o=Array(t_e(r/t));i{c();var vL=Go(),i_e=my(),s_e=Xo(),bL=vL?vL.isConcatSpreadable:void 0;function o_e(e){return s_e(e)||i_e(e)||!!(bL&&e&&e[bL])}_L.exports=o_e});var SL=F((mat,DL)=>{c();var a_e=Fp(),c_e=wL();function EL(e,t,n,r,i){var s=-1,o=e.length;for(n||(n=c_e),i||(i=[]);++s0&&n(a)?t>1?EL(a,t-1,n,r,i):a_e(i,a):r||(i[i.length]=a)}return i}DL.exports=EL});var P_=F((gat,CL)=>{c();var u_e=SL();function l_e(e){var t=e==null?0:e.length;return t?u_e(e,1):[]}CL.exports=l_e});var m$=F((f$,Bw)=>{c();(function(e){if(typeof f$=="object"&&typeof Bw!="undefined")Bw.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var t;typeof window!="undefined"?t=window:typeof globalThis!="undefined"?t=globalThis:typeof self!="undefined"?t=self:t=this,t.localforage=e()}})(function(){var e,t,n;return(function r(i,s,o){function a(p,d){if(!s[p]){if(!i[p]){var f=typeof require=="function"&&require;if(!d&&f)return f(p,!0);if(l)return l(p,!0);var m=new Error("Cannot find module '"+p+"'");throw m.code="MODULE_NOT_FOUND",m}var g=s[p]={exports:{}};i[p][0].call(g.exports,function(x){var v=i[p][1][x];return a(v||x)},g,g.exports,r,i,s,o)}return s[p].exports}for(var l=typeof require=="function"&&require,u=0;u=43)}}).catch(function(){return!1})}function U(T){return typeof w=="boolean"?f.resolve(w):L(T).then(function(B){return w=B,w})}function $(T){var B=D[T.name],R={};R.promise=new f(function(N,M){R.resolve=N,R.reject=M}),B.deferredOperations.push(R),B.dbReady?B.dbReady=B.dbReady.then(function(){return R.promise}):B.dbReady=R.promise}function W(T){var B=D[T.name],R=B.deferredOperations.pop();if(R)return R.resolve(),R.promise}function pe(T,B){var R=D[T.name],N=R.deferredOperations.pop();if(N)return N.reject(B),N.promise}function J(T,B){return new f(function(R,N){if(D[T.name]=D[T.name]||se(),T.db)if(B)$(T),T.db.close();else return R(T.db);var M=[T.name];B&&M.push(T.version);var P=u.open.apply(u,M);B&&(P.onupgradeneeded=function(G){var Q=P.result;try{Q.createObjectStore(T.storeName),G.oldVersion<=1&&Q.createObjectStore(_)}catch(ee){if(ee.name==="ConstraintError")console.warn('The database "'+T.name+'" has been upgraded from version '+G.oldVersion+" to version "+G.newVersion+', but the storage "'+T.storeName+'" already exists.');else throw ee}}),P.onerror=function(G){G.preventDefault(),N(P.error)},P.onsuccess=function(){var G=P.result;G.onversionchange=function(Q){Q.target.close()},R(G),W(T)}})}function Te(T){return J(T,!1)}function Ke(T){return J(T,!0)}function Re(T,B){if(!T.db)return!0;var R=!T.db.objectStoreNames.contains(T.storeName),N=T.versionT.db.version;if(N&&(T.version!==B&&console.warn('The database "'+T.name+`" can't be downgraded from version `+T.db.version+" to version "+T.version+"."),T.version=T.db.version),M||R){if(R){var P=T.db.version+1;P>T.version&&(T.version=P)}return!0}return!1}function He(T){return new f(function(B,R){var N=new FileReader;N.onerror=R,N.onloadend=function(M){var P=btoa(M.target.result||"");B({__local_forage_encoded_blob:!0,data:P,type:T.type})},N.readAsBinaryString(T)})}function Ge(T){var B=I(atob(T.data));return d([B],{type:T.type})}function et(T){return T&&T.__local_forage_encoded_blob}function z(T){var B=this,R=B._initReady().then(function(){var N=D[B._dbInfo.name];if(N&&N.dbReady)return N.dbReady});return g(R,T,T),R}function O(T){$(T);for(var B=D[T.name],R=B.forages,N=0;N0&&(!T.db||P.name==="InvalidStateError"||P.name==="NotFoundError"))return f.resolve().then(function(){if(!T.db||P.name==="NotFoundError"&&!T.db.objectStoreNames.contains(T.storeName)&&T.version<=T.db.version)return T.db&&(T.version=T.db.version+1),Ke(T)}).then(function(){return O(T).then(function(){H(T,B,R,N-1)})}).catch(R);R(P)}}function se(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Ve(T){var B=this,R={db:null};if(T)for(var N in T)R[N]=T[N];var M=D[R.name];M||(M=se(),D[R.name]=M),M.forages.push(B),B._initReady||(B._initReady=B.ready,B.ready=z);var P=[];function G(){return f.resolve()}for(var Q=0;Q>4,re[M++]=(G&15)<<4|Q>>2,re[M++]=(Q&3)<<6|ee&63;return te}function qg(T){var B=new Uint8Array(T),R="",N;for(N=0;N>2],R+=Ur[(B[N]&3)<<4|B[N+1]>>4],R+=Ur[(B[N+1]&15)<<2|B[N+2]>>6],R+=Ur[B[N+2]&63];return B.length%3===2?R=R.substring(0,R.length-1)+"=":B.length%3===1&&(R=R.substring(0,R.length-2)+"=="),R}function UU(T,B){var R="";if(T&&(R=EE.call(T)),T&&(R==="[object ArrayBuffer]"||T.buffer&&EE.call(T.buffer)==="[object ArrayBuffer]")){var N,M=xp;T instanceof ArrayBuffer?(N=T,M+=jg):(N=T.buffer,R==="[object Int8Array]"?M+=fE:R==="[object Uint8Array]"?M+=mE:R==="[object Uint8ClampedArray]"?M+=hE:R==="[object Int16Array]"?M+=gE:R==="[object Uint16Array]"?M+=xE:R==="[object Int32Array]"?M+=yE:R==="[object Uint32Array]"?M+=vE:R==="[object Float32Array]"?M+=bE:R==="[object Float64Array]"?M+=_E:B(new Error("Failed to get type for BinaryArray"))),B(M+qg(N))}else if(R==="[object Blob]"){var P=new FileReader;P.onload=function(){var G=$U+T.type+"~"+qg(this.result);B(xp+zg+G)},P.readAsArrayBuffer(T)}else try{B(JSON.stringify(T))}catch(G){console.error("Couldn't convert value into a JSON string: ",T),B(null,G)}}function jU(T){if(T.substring(0,Ug)!==xp)return JSON.parse(T);var B=T.substring(wE),R=T.substring(Ug,wE),N;if(R===zg&&dE.test(B)){var M=B.match(dE);N=M[1],B=B.substring(M[0].length)}var P=DE(B);switch(R){case jg:return P;case zg:return d([P],{type:N});case fE:return new Int8Array(P);case mE:return new Uint8Array(P);case hE:return new Uint8ClampedArray(P);case gE:return new Int16Array(P);case xE:return new Uint16Array(P);case yE:return new Int32Array(P);case vE:return new Uint32Array(P);case bE:return new Float32Array(P);case _E:return new Float64Array(P);default:throw new Error("Unkown type: "+R)}}var Hg={serialize:UU,deserialize:jU,stringToBuffer:DE,bufferToString:qg};function SE(T,B,R,N){T.executeSql("CREATE TABLE IF NOT EXISTS "+B.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],R,N)}function zU(T){var B=this,R={db:null};if(T)for(var N in T)R[N]=typeof T[N]!="string"?T[N].toString():T[N];var M=new f(function(P,G){try{R.db=openDatabase(R.name,String(R.version),R.description,R.size)}catch(Q){return G(Q)}R.db.transaction(function(Q){SE(Q,R,function(){B._dbInfo=R,P()},function(ee,te){G(te)})},G)});return R.serializer=Hg,M}function Ui(T,B,R,N,M,P){T.executeSql(R,N,M,function(G,Q){Q.code===Q.SYNTAX_ERR?G.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[B.storeName],function(ee,te){te.rows.length?P(ee,Q):SE(ee,B,function(){ee.executeSql(R,N,M,P)},P)},P):P(G,Q)},P)}function qU(T,B){var R=this;T=x(T);var N=new f(function(M,P){R.ready().then(function(){var G=R._dbInfo;G.db.transaction(function(Q){Ui(Q,G,"SELECT * FROM "+G.storeName+" WHERE key = ? LIMIT 1",[T],function(ee,te){var re=te.rows.length?te.rows.item(0).value:null;re&&(re=G.serializer.deserialize(re)),M(re)},function(ee,te){P(te)})})}).catch(P)});return m(N,B),N}function HU(T,B){var R=this,N=new f(function(M,P){R.ready().then(function(){var G=R._dbInfo;G.db.transaction(function(Q){Ui(Q,G,"SELECT * FROM "+G.storeName,[],function(ee,te){for(var re=te.rows,ce=re.length,he=0;he0){G(CE.apply(M,[T,ee,R,N-1]));return}Q(he)}})})}).catch(Q)});return m(P,R),P}function GU(T,B,R){return CE.apply(this,[T,B,R,1])}function VU(T,B){var R=this;T=x(T);var N=new f(function(M,P){R.ready().then(function(){var G=R._dbInfo;G.db.transaction(function(Q){Ui(Q,G,"DELETE FROM "+G.storeName+" WHERE key = ?",[T],function(){M()},function(ee,te){P(te)})})}).catch(P)});return m(N,B),N}function WU(T){var B=this,R=new f(function(N,M){B.ready().then(function(){var P=B._dbInfo;P.db.transaction(function(G){Ui(G,P,"DELETE FROM "+P.storeName,[],function(){N()},function(Q,ee){M(ee)})})}).catch(M)});return m(R,T),R}function KU(T){var B=this,R=new f(function(N,M){B.ready().then(function(){var P=B._dbInfo;P.db.transaction(function(G){Ui(G,P,"SELECT COUNT(key) as c FROM "+P.storeName,[],function(Q,ee){var te=ee.rows.item(0).c;N(te)},function(Q,ee){M(ee)})})}).catch(M)});return m(R,T),R}function YU(T,B){var R=this,N=new f(function(M,P){R.ready().then(function(){var G=R._dbInfo;G.db.transaction(function(Q){Ui(Q,G,"SELECT key FROM "+G.storeName+" WHERE id = ? LIMIT 1",[T+1],function(ee,te){var re=te.rows.length?te.rows.item(0).key:null;M(re)},function(ee,te){P(te)})})}).catch(P)});return m(N,B),N}function XU(T){var B=this,R=new f(function(N,M){B.ready().then(function(){var P=B._dbInfo;P.db.transaction(function(G){Ui(G,P,"SELECT key FROM "+P.storeName,[],function(Q,ee){for(var te=[],re=0;re '__WebKitDatabaseInfoTable__'",[],function(M,P){for(var G=[],Q=0;Q0}function r5(T){var B=this,R={};if(T)for(var N in T)R[N]=T[N];return R.keyPrefix=TE(T,B._defaultConfig),n5()?(B._dbInfo=R,R.serializer=Hg,f.resolve()):f.reject()}function i5(T){var B=this,R=B.ready().then(function(){for(var N=B._dbInfo.keyPrefix,M=localStorage.length-1;M>=0;M--){var P=localStorage.key(M);P.indexOf(N)===0&&localStorage.removeItem(P)}});return m(R,T),R}function s5(T,B){var R=this;T=x(T);var N=R.ready().then(function(){var M=R._dbInfo,P=localStorage.getItem(M.keyPrefix+T);return P&&(P=M.serializer.deserialize(P)),P});return m(N,B),N}function o5(T,B){var R=this,N=R.ready().then(function(){for(var M=R._dbInfo,P=M.keyPrefix,G=P.length,Q=localStorage.length,ee=1,te=0;te=0;G--){var Q=localStorage.key(G);Q.indexOf(P)===0&&localStorage.removeItem(Q)}}):M=f.reject("Invalid arguments"),m(M,B),M}var f5={_driver:"localStorageWrapper",_initStorage:r5,_support:e5(),iterate:o5,getItem:s5,setItem:p5,removeItem:l5,clear:i5,length:u5,key:a5,keys:c5,dropInstance:d5},m5=function(B,R){return B===R||typeof B=="number"&&typeof R=="number"&&isNaN(B)&&isNaN(R)},h5=function(B,R){for(var N=B.length,M=0;M{c();var j1e="__lodash_hash_undefined__";function z1e(e){return this.__data__.set(e,j1e),this}A$.exports=z1e});var O$=F((tut,k$)=>{c();function q1e(e){return this.__data__.has(e)}k$.exports=q1e});var B$=F((rut,F$)=>{c();var H1e=ly(),G1e=R$(),V1e=O$();function fg(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new H1e;++t{c();function W1e(e,t){for(var n=-1,r=e==null?0:e.length;++n{c();function K1e(e,t){return e.has(t)}N$.exports=K1e});var Uw=F((uut,L$)=>{c();var Y1e=B$(),X1e=P$(),Z1e=M$(),Q1e=1,J1e=2;function eDe(e,t,n,r,i,s){var o=n&Q1e,a=e.length,l=t.length;if(a!=l&&!(o&&l>a))return!1;var u=s.get(e),p=s.get(t);if(u&&p)return u==t&&p==e;var d=-1,f=!0,m=n&J1e?new Y1e:void 0;for(s.set(e,t),s.set(t,e);++d{c();function tDe(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}$$.exports=tDe});var z$=F((fut,j$)=>{c();function nDe(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}j$.exports=nDe});var W$=F((hut,V$)=>{c();var q$=Go(),H$=Oy(),rDe=Mc(),iDe=Uw(),sDe=U$(),oDe=z$(),aDe=1,cDe=2,uDe="[object Boolean]",lDe="[object Date]",pDe="[object Error]",dDe="[object Map]",fDe="[object Number]",mDe="[object RegExp]",hDe="[object Set]",gDe="[object String]",yDe="[object Symbol]",xDe="[object ArrayBuffer]",vDe="[object DataView]",G$=q$?q$.prototype:void 0,jw=G$?G$.valueOf:void 0;function bDe(e,t,n,r,i,s,o){switch(n){case vDe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case xDe:return!(e.byteLength!=t.byteLength||!s(new H$(e),new H$(t)));case uDe:case lDe:case fDe:return rDe(+e,+t);case pDe:return e.name==t.name&&e.message==t.message;case mDe:case gDe:return e==t+"";case dDe:var a=sDe;case hDe:var l=r&aDe;if(a||(a=oDe),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;r|=cDe,o.set(e,t);var p=iDe(a(e),a(t),r,i,s,o);return o.delete(e),p;case yDe:if(jw)return jw.call(e)==jw.call(t)}return!1}V$.exports=bDe});var X$=F((yut,Y$)=>{c();var K$=Sy(),_De=1,wDe=Object.prototype,EDe=wDe.hasOwnProperty;function DDe(e,t,n,r,i,s){var o=n&_De,a=K$(e),l=a.length,u=K$(t),p=u.length;if(l!=p&&!o)return!1;for(var d=l;d--;){var f=a[d];if(!(o?f in t:EDe.call(t,f)))return!1}var m=s.get(e),g=s.get(t);if(m&&g)return m==t&&g==e;var x=!0;s.set(e,t),s.set(t,e);for(var v=o;++d{c();var zw=py(),SDe=Uw(),CDe=W$(),TDe=X$(),Z$=Kc(),Q$=Xo(),J$=Dp(),ADe=xy(),RDe=1,eU="[object Arguments]",tU="[object Array]",mg="[object Object]",kDe=Object.prototype,nU=kDe.hasOwnProperty;function ODe(e,t,n,r,i,s){var o=Q$(e),a=Q$(t),l=o?tU:Z$(e),u=a?tU:Z$(t);l=l==eU?mg:l,u=u==eU?mg:u;var p=l==mg,d=u==mg,f=l==u;if(f&&J$(e)){if(!J$(t))return!1;o=!0,p=!1}if(f&&!p)return s||(s=new zw),o||ADe(e)?SDe(e,t,n,r,i,s):CDe(e,t,l,n,r,i,s);if(!(n&RDe)){var m=p&&nU.call(e,"__wrapped__"),g=d&&nU.call(t,"__wrapped__");if(m||g){var x=m?e.value():e,v=g?t.value():t;return s||(s=new zw),i(x,v,n,r,s)}}return f?(s||(s=new zw),TDe(e,t,n,r,i,s)):!1}rU.exports=ODe});var cU=F((_ut,aU)=>{c();var FDe=iU(),sU=Hi();function oU(e,t,n,r,i){return e===t?!0:e==null||t==null||!sU(e)&&!sU(t)?e!==e&&t!==t:FDe(e,t,n,r,oU,i)}aU.exports=oU});var lU=F((Eut,uU)=>{c();var BDe=cU();function IDe(e,t){return BDe(e,t)}uU.exports=IDe});var fU=F((Rut,Vw)=>{"use strict";c();var NDe=Object.prototype.hasOwnProperty,An="~";function tp(){}Object.create&&(tp.prototype=Object.create(null),new tp().__proto__||(An=!1));function MDe(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function dU(e,t,n,r,i){if(typeof n!="function")throw new TypeError("The listener must be a function");var s=new MDe(n,r||e,i),o=An?An+t:t;return e._events[o]?e._events[o].fn?e._events[o]=[e._events[o],s]:e._events[o].push(s):(e._events[o]=s,e._eventsCount++),e}function gg(e,t){--e._eventsCount===0?e._events=new tp:delete e._events[t]}function pn(){this._events=new tp,this._eventsCount=0}pn.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)NDe.call(n,r)&&t.push(An?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t};pn.prototype.listeners=function(t){var n=An?An+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,s=r.length,o=new Array(s);iLg});module.exports=k5(fSe);c();var Ue=require("obsidian"),Mg=at(Yc());c();var qr=require("obsidian"),mi="application/octet-stream",Pp="third-party-sync",VC="third-party-sync-cb",Np="third-party-sync-onedrive",WC=1e3*60*60*24*80;var GC="0.13.26",BV="0.14.6",sr=!qr.Platform.isAndroidApp&&!qr.Platform.isMobileApp&&(0,qr.requireApiVersion)(GC)||qr.Platform.isAndroidApp&&(0,qr.requireApiVersion)(BV)||qr.Platform.isMobileApp&&!qr.Platform.isAndroidApp&&(0,qr.requireApiVersion)(GC),Ns="_debug_remotely_save/",KC="sync_plans_hist_exported_on_",YC="log_hist_exported_on_";c();var d$=at(Yc());c();function oa(e){let t=e.length;for(;--t>=0;)e[t]=0}var IV=0,IT=1,PV=2,NV=3,MV=258,t0=29,lu=256,nu=lu+1+t0,ra=30,n0=19,PT=2*nu+1,Ms=15,Fy=16,LV=7,r0=256,NT=16,MT=17,LT=18,Vy=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),zp=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),$V=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),$T=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),UV=512,gi=new Array((nu+2)*2);oa(gi);var Jc=new Array(ra*2);oa(Jc);var ru=new Array(UV);oa(ru);var iu=new Array(MV-NV+1);oa(iu);var i0=new Array(t0);oa(i0);var qp=new Array(ra);oa(qp);function By(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}var UT,jT,zT;function Iy(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}var qT=e=>e<256?ru[e]:ru[256+(e>>>7)],su=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Fn=(e,t,n)=>{e.bi_valid>Fy-n?(e.bi_buf|=t<>Fy-e.bi_valid,e.bi_valid+=n-Fy):(e.bi_buf|=t<{Fn(e,n[t*2],n[t*2+1])},HT=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},jV=e=>{e.bi_valid===16?(su(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},zV=(e,t)=>{let n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,s=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,l=t.stat_desc.max_length,u,p,d,f,m,g,x=0;for(f=0;f<=Ms;f++)e.bl_count[f]=0;for(n[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;ul&&(f=l,x++),n[p*2+1]=f,!(p>r)&&(e.bl_count[f]++,m=0,p>=a&&(m=o[p-a]),g=n[p*2],e.opt_len+=g*(f+m),s&&(e.static_len+=g*(i[p*2+1]+m)));if(x!==0){do{for(f=l-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[l]--,x-=2}while(x>0);for(f=l;f!==0;f--)for(p=e.bl_count[f];p!==0;)d=e.heap[--u],!(d>r)&&(n[d*2+1]!==f&&(e.opt_len+=(f-n[d*2+1])*n[d*2],n[d*2+1]=f),p--)}},GT=(e,t,n)=>{let r=new Array(Ms+1),i=0,s,o;for(s=1;s<=Ms;s++)i=i+n[s-1]<<1,r[s]=i;for(o=0;o<=t;o++){let a=e[o*2+1];a!==0&&(e[o*2]=HT(r[a]++,a))}},qV=()=>{let e,t,n,r,i,s=new Array(Ms+1);for(n=0,r=0;r>=7;r{let t;for(t=0;t{e.bi_valid>8?su(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},XC=(e,t,n,r)=>{let i=t*2,s=n*2;return e[i]{let r=e.heap[n],i=n<<1;for(;i<=e.heap_len&&(i{let r,i,s=0,o,a;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+s++]&255,r+=(e.pending_buf[e.sym_buf+s++]&255)<<8,i=e.pending_buf[e.sym_buf+s++],r===0?Gr(e,i,t):(o=iu[i],Gr(e,o+lu+1,t),a=Vy[o],a!==0&&(i-=i0[o],Fn(e,i,a)),r--,o=qT(r),Gr(e,o,n),a=zp[o],a!==0&&(r-=qp[o],Fn(e,r,a)));while(s{let n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,s=t.stat_desc.elems,o,a,l=-1,u;for(e.heap_len=0,e.heap_max=PT,o=0;o>1;o>=1;o--)Py(e,n,o);u=s;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Py(e,n,1),a=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=a,n[u*2]=n[o*2]+n[a*2],e.depth[u]=(e.depth[o]>=e.depth[a]?e.depth[o]:e.depth[a])+1,n[o*2+1]=n[a*2+1]=u,e.heap[1]=u++,Py(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],zV(e,t),GT(n,l,e.bl_count)},QC=(e,t,n)=>{let r,i=-1,s,o=t[1],a=0,l=7,u=4;for(o===0&&(l=138,u=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)s=o,o=t[(r+1)*2+1],!(++a{let r,i=-1,s,o=t[1],a=0,l=7,u=4;for(o===0&&(l=138,u=3),r=0;r<=n;r++)if(s=o,o=t[(r+1)*2+1],!(++a{let t;for(QC(e,e.dyn_ltree,e.l_desc.max_code),QC(e,e.dyn_dtree,e.d_desc.max_code),Wy(e,e.bl_desc),t=n0-1;t>=3&&e.bl_tree[$T[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},GV=(e,t,n,r)=>{let i;for(Fn(e,t-257,5),Fn(e,n-1,5),Fn(e,r-4,4),i=0;i{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return 0;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return 1;for(n=32;n{eT||(qV(),eT=!0),e.l_desc=new Iy(e.dyn_ltree,UT),e.d_desc=new Iy(e.dyn_dtree,jT),e.bl_desc=new Iy(e.bl_tree,zT),e.bi_buf=0,e.bi_valid=0,VT(e)},KT=(e,t,n,r)=>{Fn(e,(IV<<1)+(r?1:0),3),WT(e),su(e,n),su(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},KV=e=>{Fn(e,IT<<1,3),Gr(e,r0,gi),jV(e)},YV=(e,t,n,r)=>{let i,s,o=0;e.level>0?(e.strm.data_type===2&&(e.strm.data_type=VV(e)),Wy(e,e.l_desc),Wy(e,e.d_desc),o=HV(e),i=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=i&&(i=s)):i=s=n+5,n+4<=i&&t!==-1?KT(e,t,n,r):e.strategy===4||s===i?(Fn(e,(IT<<1)+(r?1:0),3),ZC(e,gi,Jc)):(Fn(e,(PV<<1)+(r?1:0),3),GV(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),ZC(e,e.dyn_ltree,e.dyn_dtree)),VT(e),r&&WT(e)},XV=(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(iu[n]+lu+1)*2]++,e.dyn_dtree[qT(t)*2]++),e.sym_next===e.sym_end),ZV=WV,QV=KT,JV=YV,eW=XV,tW=KV,nW={_tr_init:ZV,_tr_stored_block:QV,_tr_flush_block:JV,_tr_tally:eW,_tr_align:tW},rW=(e,t,n,r)=>{let i=e&65535|0,s=e>>>16&65535|0,o=0;for(;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,s=s+i|0;while(--o);i%=65521,s%=65521}return i|s<<16|0},ou=rW,iW=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},sW=new Uint32Array(iW()),oW=(e,t,n,r)=>{let i=sW,s=r+n;e^=-1;for(let o=r;o>>8^i[(e^t[o])&255];return e^-1},Nt=oW,Us={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},qs={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:aW,_tr_stored_block:Ky,_tr_flush_block:cW,_tr_tally:Wi,_tr_align:uW}=nW,{Z_NO_FLUSH:Ki,Z_PARTIAL_FLUSH:lW,Z_FULL_FLUSH:pW,Z_FINISH:or,Z_BLOCK:tT,Z_OK:Gt,Z_STREAM_END:nT,Z_STREAM_ERROR:Vr,Z_DATA_ERROR:dW,Z_BUF_ERROR:Ny,Z_DEFAULT_COMPRESSION:fW,Z_FILTERED:mW,Z_HUFFMAN_ONLY:Mp,Z_RLE:hW,Z_FIXED:gW,Z_DEFAULT_STRATEGY:yW,Z_UNKNOWN:xW,Z_DEFLATED:Vp}=qs,vW=9,bW=15,_W=8,wW=29,EW=256,Yy=EW+1+wW,DW=30,SW=19,CW=2*Yy+1,TW=15,Ee=3,Vi=258,Wr=Vi+Ee+1,AW=32,ia=42,s0=57,Xy=69,Zy=73,Qy=91,Jy=103,Ls=113,Zc=666,dn=1,aa=2,js=3,ca=4,RW=3,$s=(e,t)=>(e.msg=Us[t],t),rT=e=>e*2-(e>4?9:0),Gi=e=>{let t=e.length;for(;--t>=0;)e[t]=0},kW=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=i?n-i:0;while(--t);t=i,r=t;do n=e.prev[--r],e.prev[r]=n>=i?n-i:0;while(--t)},OW=(e,t,n)=>(t<{let t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},Hn=(e,t)=>{cW(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,qn(e.strm)},Oe=(e,t)=>{e.pending_buf[e.pending++]=t},Xc=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},e0=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),e.state.wrap===1?e.adler=ou(e.adler,t,i,n):e.state.wrap===2&&(e.adler=Nt(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},YT=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,s,o=e.prev_length,a=e.nice_match,l=e.strstart>e.w_size-Wr?e.strstart-(e.w_size-Wr):0,u=e.window,p=e.w_mask,d=e.prev,f=e.strstart+Vi,m=u[r+o-1],g=u[r+o];e.prev_length>=e.good_match&&(n>>=2),a>e.lookahead&&(a=e.lookahead);do if(i=t,!(u[i+o]!==g||u[i+o-1]!==m||u[i]!==u[r]||u[++i]!==u[r+1])){r+=2,i++;do;while(u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&ro){if(e.match_start=t,o=s,s>=a)break;m=u[r+o-1],g=u[r+o]}}while((t=d[t&p])>l&&--n!==0);return o<=e.lookahead?o:e.lookahead},sa=e=>{let t=e.w_size,n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Wr)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),kW(e),r+=t),e.strm.avail_in===0)break;if(n=e0(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=Ee)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Yi(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Yi(e,e.ins_h,e.window[i+Ee-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,s,o=0,a=e.strm.avail_in;do{if(r=65535,s=e.bi_valid+42>>3,e.strm.avail_outi+e.strm.avail_in&&(r=i+e.strm.avail_in),r>s&&(r=s),r>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,qn(e.strm),i&&(i>r&&(i=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,r-=i),r&&(e0(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(o===0);return a-=e.strm.avail_in,a&&(a>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=a&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-a,e.strm.next_in),e.strstart),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.block_start=e.strstart),e.high_waters&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,s+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),s>e.strm.avail_in&&(s=e.strm.avail_in),s&&(e0(e.strm,e.window,e.strstart,s),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.high_water>3,s=e.pending_buf_size-s>65535?65535:e.pending_buf_size-s,n=s>e.w_size?e.w_size:s,i=e.strstart-e.block_start,(i>=n||(i||t===or)&&t!==Ki&&e.strm.avail_in===0&&i<=s)&&(r=i>s?s:i,o=t===or&&e.strm.avail_in===0&&r===i?1:0,Ky(e,e.block_start,r,o),e.block_start+=r,qn(e.strm)),o?js:dn)},My=(e,t)=>{let n,r;for(;;){if(e.lookahead=Ee&&(e.ins_h=Yi(e,e.ins_h,e.window[e.strstart+Ee-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-Wr&&(e.match_length=YT(e,n)),e.match_length>=Ee)if(r=Wi(e,e.strstart-e.match_start,e.match_length-Ee),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Ee){e.match_length--;do e.strstart++,e.ins_h=Yi(e,e.ins_h,e.window[e.strstart+Ee-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Yi(e,e.ins_h,e.window[e.strstart+1]);else r=Wi(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Hn(e,!1),e.strm.avail_out===0))return dn}return e.insert=e.strstart{let n,r,i;for(;;){if(e.lookahead=Ee&&(e.ins_h=Yi(e,e.ins_h,e.window[e.strstart+Ee-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Ee-1,n!==0&&e.prev_length4096)&&(e.match_length=Ee-1)),e.prev_length>=Ee&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-Ee,r=Wi(e,e.strstart-1-e.prev_match,e.prev_length-Ee),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=Yi(e,e.ins_h,e.window[e.strstart+Ee-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Ee-1,e.strstart++,r&&(Hn(e,!1),e.strm.avail_out===0))return dn}else if(e.match_available){if(r=Wi(e,0,e.window[e.strstart-1]),r&&Hn(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return dn}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=Wi(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let n,r,i,s,o=e.window;for(;;){if(e.lookahead<=Vi){if(sa(e),e.lookahead<=Vi&&t===Ki)return dn;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Ee&&e.strstart>0&&(i=e.strstart-1,r=o[i],r===o[++i]&&r===o[++i]&&r===o[++i])){s=e.strstart+Vi;do;while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Ee?(n=Wi(e,1,e.match_length-Ee),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Wi(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Hn(e,!1),e.strm.avail_out===0))return dn}return e.insert=0,t===or?(Hn(e,!0),e.strm.avail_out===0?js:ca):e.sym_next&&(Hn(e,!1),e.strm.avail_out===0)?dn:aa},BW=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(sa(e),e.lookahead===0)){if(t===Ki)return dn;break}if(e.match_length=0,n=Wi(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Hn(e,!1),e.strm.avail_out===0))return dn}return e.insert=0,t===or?(Hn(e,!0),e.strm.avail_out===0?js:ca):e.sym_next&&(Hn(e,!1),e.strm.avail_out===0)?dn:aa};function Hr(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var Qc=[new Hr(0,0,0,0,XT),new Hr(4,4,8,4,My),new Hr(4,5,16,8,My),new Hr(4,6,32,32,My),new Hr(4,4,16,16,ta),new Hr(8,16,32,32,ta),new Hr(8,16,128,128,ta),new Hr(8,32,128,256,ta),new Hr(32,128,258,1024,ta),new Hr(32,258,258,4096,ta)],IW=e=>{e.window_size=2*e.w_size,Gi(e.head),e.max_lazy_match=Qc[e.level].max_lazy,e.good_match=Qc[e.level].good_length,e.nice_match=Qc[e.level].nice_length,e.max_chain_length=Qc[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Ee-1,e.match_available=0,e.ins_h=0};function PW(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Vp,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(CW*2),this.dyn_dtree=new Uint16Array((2*DW+1)*2),this.bl_tree=new Uint16Array((2*SW+1)*2),Gi(this.dyn_ltree),Gi(this.dyn_dtree),Gi(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(TW+1),this.heap=new Uint16Array(2*Yy+1),Gi(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Yy+1),Gi(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var pu=e=>{if(!e)return 1;let t=e.state;return!t||t.strm!==e||t.status!==ia&&t.status!==s0&&t.status!==Xy&&t.status!==Zy&&t.status!==Qy&&t.status!==Jy&&t.status!==Ls&&t.status!==Zc?1:0},ZT=e=>{if(pu(e))return $s(e,Vr);e.total_in=e.total_out=0,e.data_type=xW;let t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?s0:t.wrap?ia:Ls,e.adler=t.wrap===2?0:1,t.last_flush=-2,aW(t),Gt},QT=e=>{let t=ZT(e);return t===Gt&&IW(e.state),t},NW=(e,t)=>pu(e)||e.state.wrap!==2?Vr:(e.state.gzhead=t,Gt),JT=(e,t,n,r,i,s)=>{if(!e)return Vr;let o=1;if(t===fW&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),i<1||i>vW||n!==Vp||r<8||r>15||t<0||t>9||s<0||s>gW||r===8&&o!==1)return $s(e,Vr);r===8&&(r=9);let a=new PW;return e.state=a,a.strm=e,a.status=ia,a.wrap=o,a.gzhead=null,a.w_bits=r,a.w_size=1<JT(e,t,Vp,bW,_W,yW),LW=(e,t)=>{if(pu(e)||t>tT||t<0)return e?$s(e,Vr):Vr;let n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===Zc&&t!==or)return $s(e,e.avail_out===0?Ny:Vr);let r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(qn(e),e.avail_out===0)return n.last_flush=-1,Gt}else if(e.avail_in===0&&rT(t)<=rT(r)&&t!==or)return $s(e,Ny);if(n.status===Zc&&e.avail_in!==0)return $s(e,Ny);if(n.status===ia&&n.wrap===0&&(n.status=Ls),n.status===ia){let i=Vp+(n.w_bits-8<<4)<<8,s=-1;if(n.strategy>=Mp||n.level<2?s=0:n.level<6?s=1:n.level===6?s=2:s=3,i|=s<<6,n.strstart!==0&&(i|=AW),i+=31-i%31,Xc(n,i),n.strstart!==0&&(Xc(n,e.adler>>>16),Xc(n,e.adler&65535)),e.adler=1,n.status=Ls,qn(e),n.pending!==0)return n.last_flush=-1,Gt}if(n.status===s0){if(e.adler=0,Oe(n,31),Oe(n,139),Oe(n,8),n.gzhead)Oe(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Oe(n,n.gzhead.time&255),Oe(n,n.gzhead.time>>8&255),Oe(n,n.gzhead.time>>16&255),Oe(n,n.gzhead.time>>24&255),Oe(n,n.level===9?2:n.strategy>=Mp||n.level<2?4:0),Oe(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(Oe(n,n.gzhead.extra.length&255),Oe(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=Nt(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=Xy;else if(Oe(n,0),Oe(n,0),Oe(n,0),Oe(n,0),Oe(n,0),Oe(n,n.level===9?2:n.strategy>=Mp||n.level<2?4:0),Oe(n,RW),n.status=Ls,qn(e),n.pending!==0)return n.last_flush=-1,Gt}if(n.status===Xy){if(n.gzhead.extra){let i=n.pending,s=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+s>n.pending_buf_size;){let a=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+a),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>i&&(e.adler=Nt(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex+=a,qn(e),n.pending!==0)return n.last_flush=-1,Gt;i=0,s-=a}let o=new Uint8Array(n.gzhead.extra);n.pending_buf.set(o.subarray(n.gzindex,n.gzindex+s),n.pending),n.pending+=s,n.gzhead.hcrc&&n.pending>i&&(e.adler=Nt(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=Zy}if(n.status===Zy){if(n.gzhead.name){let i=n.pending,s;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=Nt(e.adler,n.pending_buf,n.pending-i,i)),qn(e),n.pending!==0)return n.last_flush=-1,Gt;i=0}n.gzindexi&&(e.adler=Nt(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=Qy}if(n.status===Qy){if(n.gzhead.comment){let i=n.pending,s;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=Nt(e.adler,n.pending_buf,n.pending-i,i)),qn(e),n.pending!==0)return n.last_flush=-1,Gt;i=0}n.gzindexi&&(e.adler=Nt(e.adler,n.pending_buf,n.pending-i,i))}n.status=Jy}if(n.status===Jy){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(qn(e),n.pending!==0))return n.last_flush=-1,Gt;Oe(n,e.adler&255),Oe(n,e.adler>>8&255),e.adler=0}if(n.status=Ls,qn(e),n.pending!==0)return n.last_flush=-1,Gt}if(e.avail_in!==0||n.lookahead!==0||t!==Ki&&n.status!==Zc){let i=n.level===0?XT(n,t):n.strategy===Mp?BW(n,t):n.strategy===hW?FW(n,t):Qc[n.level].func(n,t);if((i===js||i===ca)&&(n.status=Zc),i===dn||i===js)return e.avail_out===0&&(n.last_flush=-1),Gt;if(i===aa&&(t===lW?uW(n):t!==tT&&(Ky(n,0,0,!1),t===pW&&(Gi(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),qn(e),e.avail_out===0))return n.last_flush=-1,Gt}return t!==or?Gt:n.wrap<=0?nT:(n.wrap===2?(Oe(n,e.adler&255),Oe(n,e.adler>>8&255),Oe(n,e.adler>>16&255),Oe(n,e.adler>>24&255),Oe(n,e.total_in&255),Oe(n,e.total_in>>8&255),Oe(n,e.total_in>>16&255),Oe(n,e.total_in>>24&255)):(Xc(n,e.adler>>>16),Xc(n,e.adler&65535)),qn(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?Gt:nT)},$W=e=>{if(pu(e))return Vr;let t=e.state.status;return e.state=null,t===Ls?$s(e,dW):Gt},UW=(e,t)=>{let n=t.length;if(pu(e))return Vr;let r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==ia||r.lookahead)return Vr;if(i===1&&(e.adler=ou(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(Gi(r.head),r.strstart=0,r.block_start=0,r.insert=0);let l=new Uint8Array(r.w_size);l.set(t.subarray(n-r.w_size,n),0),t=l,n=r.w_size}let s=e.avail_in,o=e.next_in,a=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,sa(r);r.lookahead>=Ee;){let l=r.strstart,u=r.lookahead-(Ee-1);do r.ins_h=Yi(r,r.ins_h,r.window[l+Ee-1]),r.prev[l&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=l,l++;while(--u);r.strstart=l,r.lookahead=Ee-1,sa(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=Ee-1,r.match_available=0,e.next_in=o,e.input=a,e.avail_in=s,r.wrap=i,Gt},jW=MW,zW=JT,qW=QT,HW=ZT,GW=NW,VW=LW,WW=$W,KW=UW,YW="pako deflate (from Nodeca project)",eu={deflateInit:jW,deflateInit2:zW,deflateReset:qW,deflateResetKeep:HW,deflateSetHeader:GW,deflate:VW,deflateEnd:WW,deflateSetDictionary:KW,deflateInfo:YW},XW=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ZW=function(e){let t=Array.prototype.slice.call(arguments,1);for(;t.length;){let n=t.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(let r in n)XW(n,r)&&(e[r]=n[r])}}return e},QW=e=>{let t=0;for(let r=0,i=e.length;r=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;au[254]=au[254]=1;var JW=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,s,o=e.length,a=0;for(i=0;i>>6,t[s++]=128|n&63):n<65536?(t[s++]=224|n>>>12,t[s++]=128|n>>>6&63,t[s++]=128|n&63):(t[s++]=240|n>>>18,t[s++]=128|n>>>12&63,t[s++]=128|n>>>6&63,t[s++]=128|n&63);return t},eK=(e,t)=>{if(t<65534&&e.subarray&&e2)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r{let n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i,s=new Array(n*2);for(i=0,r=0;r4){s[i++]=65533,r+=a-1;continue}for(o&=a===2?31:a===3?15:7;a>1&&r1){s[i++]=65533;continue}o<65536?s[i++]=o:(o-=65536,s[i++]=55296|o>>10&1023,s[i++]=56320|o&1023)}return eK(s,i)},nK=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+au[e[n]]>t?n:t},cu={string2buf:JW,buf2string:tK,utf8border:nK};function rK(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var t2=rK,n2=Object.prototype.toString,{Z_NO_FLUSH:iK,Z_SYNC_FLUSH:sK,Z_FULL_FLUSH:oK,Z_FINISH:aK,Z_OK:Hp,Z_STREAM_END:cK,Z_DEFAULT_COMPRESSION:uK,Z_DEFAULT_STRATEGY:lK,Z_DEFLATED:pK}=qs;function du(e){this.options=Wp.assign({level:uK,method:pK,chunkSize:16384,windowBits:15,memLevel:8,strategy:lK},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new t2,this.strm.avail_out=0;let n=eu.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==Hp)throw new Error(Us[n]);if(t.header&&eu.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=cu.string2buf(t.dictionary):n2.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=eu.deflateSetDictionary(this.strm,r),n!==Hp)throw new Error(Us[n]);this._dict_set=!0}}du.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i,s;if(this.ended)return!1;for(t===~~t?s=t:s=t===!0?aK:iK,typeof e=="string"?n.input=cu.string2buf(e):n2.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(s===sK||s===oK)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=eu.deflate(n,s),i===cK)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=eu.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===Hp;if(n.avail_out===0){this.onData(n.output);continue}if(s>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};du.prototype.onData=function(e){this.chunks.push(e)};du.prototype.onEnd=function(e){e===Hp&&(this.result=Wp.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function o0(e,t){let n=new du(t);if(n.push(e,!0),n.err)throw n.msg||Us[n.err];return n.result}function dK(e,t){return t=t||{},t.raw=!0,o0(e,t)}function fK(e,t){return t=t||{},t.gzip=!0,o0(e,t)}var mK=du,hK=o0,gK=dK,yK=fK,xK=qs,vK={Deflate:mK,deflate:hK,deflateRaw:gK,gzip:yK,constants:xK},Lp=16209,bK=16191,_K=function(t,n){let r,i,s,o,a,l,u,p,d,f,m,g,x,v,_,w,D,C,A,k,I,L,U,$,W=t.state;r=t.next_in,U=t.input,i=r+(t.avail_in-5),s=t.next_out,$=t.output,o=s-(n-t.avail_out),a=s+(t.avail_out-257),l=W.dmax,u=W.wsize,p=W.whave,d=W.wnext,f=W.window,m=W.hold,g=W.bits,x=W.lencode,v=W.distcode,_=(1<>>24,m>>>=C,g-=C,C=D>>>16&255,C===0)$[s++]=D&65535;else if(C&16){A=D&65535,C&=15,C&&(g>>=C,g-=C),g<15&&(m+=U[r++]<>>24,m>>>=C,g-=C,C=D>>>16&255,C&16){if(k=D&65535,C&=15,gl){t.msg="invalid distance too far back",W.mode=Lp;break e}if(m>>>=C,g-=C,C=s-o,k>C){if(C=k-C,C>p&&W.sane){t.msg="invalid distance too far back",W.mode=Lp;break e}if(I=0,L=f,d===0){if(I+=u-C,C2;)$[s++]=L[I++],$[s++]=L[I++],$[s++]=L[I++],A-=3;A&&($[s++]=L[I++],A>1&&($[s++]=L[I++]))}else{I=s-k;do $[s++]=$[I++],$[s++]=$[I++],$[s++]=$[I++],A-=3;while(A>2);A&&($[s++]=$[I++],A>1&&($[s++]=$[I++]))}}else if((C&64)===0){D=v[(D&65535)+(m&(1<>3,r-=A,g-=A<<3,m&=(1<{let l=a.bits,u=0,p=0,d=0,f=0,m=0,g=0,x=0,v=0,_=0,w=0,D,C,A,k,I,L=null,U,$=new Uint16Array(na+1),W=new Uint16Array(na+1),pe=null,J,Te,Ke;for(u=0;u<=na;u++)$[u]=0;for(p=0;p=1&&$[f]===0;f--);if(m>f&&(m=f),f===0)return i[s++]=1<<24|64<<16|0,i[s++]=1<<24|64<<16|0,a.bits=1,0;for(d=1;d0&&(e===oT||f!==1))return-1;for(W[1]=0,u=1;uiT||e===aT&&_>sT)return 1;for(;;){J=u-x,o[p]+1=U?(Te=pe[o[p]-U],Ke=L[o[p]-U]):(Te=96,Ke=0),D=1<>x)+C]=J<<24|Te<<16|Ke|0;while(C!==0);for(D=1<>=1;if(D!==0?(w&=D-1,w+=D):w=0,p++,--$[u]===0){if(u===f)break;u=t[n+o[p]]}if(u>m&&(w&k)!==A){for(x===0&&(x=m),I+=d,g=u-x,v=1<iT||e===aT&&_>sT)return 1;A=w&k,i[A]=m<<24|g<<16|I-s|0}}return w!==0&&(i[I+w]=u-x<<24|64<<16|0),a.bits=m,0},tu=CK,TK=0,r2=1,i2=2,{Z_FINISH:cT,Z_BLOCK:AK,Z_TREES:$p,Z_OK:zs,Z_STREAM_END:RK,Z_NEED_DICT:kK,Z_STREAM_ERROR:ar,Z_DATA_ERROR:s2,Z_MEM_ERROR:o2,Z_BUF_ERROR:OK,Z_DEFLATED:uT}=qs,Kp=16180,lT=16181,pT=16182,dT=16183,fT=16184,mT=16185,hT=16186,gT=16187,yT=16188,xT=16189,Gp=16190,hi=16191,$y=16192,vT=16193,Uy=16194,bT=16195,_T=16196,wT=16197,ET=16198,Up=16199,jp=16200,DT=16201,ST=16202,CT=16203,TT=16204,AT=16205,jy=16206,RT=16207,kT=16208,ct=16209,a2=16210,c2=16211,FK=852,BK=592,IK=15,PK=IK,OT=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function NK(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var Hs=e=>{if(!e)return 1;let t=e.state;return!t||t.strm!==e||t.modec2?1:0},u2=e=>{if(Hs(e))return ar;let t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Kp,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(FK),t.distcode=t.distdyn=new Int32Array(BK),t.sane=1,t.back=-1,zs},l2=e=>{if(Hs(e))return ar;let t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,u2(e)},p2=(e,t)=>{let n;if(Hs(e))return ar;let r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?ar:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,l2(e))},d2=(e,t)=>{if(!e)return ar;let n=new NK;e.state=n,n.strm=e,n.window=null,n.mode=Kp;let r=p2(e,t);return r!==zs&&(e.state=null),r},MK=e=>d2(e,PK),FT=!0,zy,qy,LK=e=>{if(FT){zy=new Int32Array(512),qy=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(tu(r2,e.lens,0,288,zy,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;tu(i2,e.lens,0,32,qy,0,e.work,{bits:5}),FT=!1}e.lencode=zy,e.lenbits=9,e.distcode=qy,e.distbits=5},f2=(e,t,n,r)=>{let i,s=e.state;return s.window===null&&(s.wsize=1<=s.wsize?(s.window.set(t.subarray(n-s.wsize,n),0),s.wnext=0,s.whave=s.wsize):(i=s.wsize-s.wnext,i>r&&(i=r),s.window.set(t.subarray(n-r,n-r+i),s.wnext),r-=i,r?(s.window.set(t.subarray(n-r,n),0),s.wnext=r,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave{let n,r,i,s,o,a,l,u,p,d,f,m,g,x,v=0,_,w,D,C,A,k,I,L,U=new Uint8Array(4),$,W,pe=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Hs(e)||!e.output||!e.input&&e.avail_in!==0)return ar;n=e.state,n.mode===hi&&(n.mode=$y),o=e.next_out,i=e.output,l=e.avail_out,s=e.next_in,r=e.input,a=e.avail_in,u=n.hold,p=n.bits,d=a,f=l,L=zs;e:for(;;)switch(n.mode){case Kp:if(n.wrap===0){n.mode=$y;break}for(;p<16;){if(a===0)break e;a--,u+=r[s++]<>>8&255,n.check=Nt(n.check,U,2,0),u=0,p=0,n.mode=lT;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=ct;break}if((u&15)!==uT){e.msg="unknown compression method",n.mode=ct;break}if(u>>>=4,p-=4,I=(u&15)+8,n.wbits===0&&(n.wbits=I),I>15||I>n.wbits){e.msg="invalid window size",n.mode=ct;break}n.dmax=1<>8&1),n.flags&512&&n.wrap&4&&(U[0]=u&255,U[1]=u>>>8&255,n.check=Nt(n.check,U,2,0)),u=0,p=0,n.mode=pT;case pT:for(;p<32;){if(a===0)break e;a--,u+=r[s++]<>>8&255,U[2]=u>>>16&255,U[3]=u>>>24&255,n.check=Nt(n.check,U,4,0)),u=0,p=0,n.mode=dT;case dT:for(;p<16;){if(a===0)break e;a--,u+=r[s++]<>8),n.flags&512&&n.wrap&4&&(U[0]=u&255,U[1]=u>>>8&255,n.check=Nt(n.check,U,2,0)),u=0,p=0,n.mode=fT;case fT:if(n.flags&1024){for(;p<16;){if(a===0)break e;a--,u+=r[s++]<>>8&255,n.check=Nt(n.check,U,2,0)),u=0,p=0}else n.head&&(n.head.extra=null);n.mode=mT;case mT:if(n.flags&1024&&(m=n.length,m>a&&(m=a),m&&(n.head&&(I=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(s,s+m),I)),n.flags&512&&n.wrap&4&&(n.check=Nt(n.check,r,m,s)),a-=m,s+=m,n.length-=m),n.length))break e;n.length=0,n.mode=hT;case hT:if(n.flags&2048){if(a===0)break e;m=0;do I=r[s+m++],n.head&&I&&n.length<65536&&(n.head.name+=String.fromCharCode(I));while(I&&m>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=hi;break;case xT:for(;p<32;){if(a===0)break e;a--,u+=r[s++]<>>=p&7,p-=p&7,n.mode=jy;break}for(;p<3;){if(a===0)break e;a--,u+=r[s++]<>>=1,p-=1,u&3){case 0:n.mode=vT;break;case 1:if(LK(n),n.mode=Up,t===$p){u>>>=2,p-=2;break e}break;case 2:n.mode=_T;break;case 3:e.msg="invalid block type",n.mode=ct}u>>>=2,p-=2;break;case vT:for(u>>>=p&7,p-=p&7;p<32;){if(a===0)break e;a--,u+=r[s++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=ct;break}if(n.length=u&65535,u=0,p=0,n.mode=Uy,t===$p)break e;case Uy:n.mode=bT;case bT:if(m=n.length,m){if(m>a&&(m=a),m>l&&(m=l),m===0)break e;i.set(r.subarray(s,s+m),o),a-=m,s+=m,l-=m,o+=m,n.length-=m;break}n.mode=hi;break;case _T:for(;p<14;){if(a===0)break e;a--,u+=r[s++]<>>=5,p-=5,n.ndist=(u&31)+1,u>>>=5,p-=5,n.ncode=(u&15)+4,u>>>=4,p-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=ct;break}n.have=0,n.mode=wT;case wT:for(;n.have>>=3,p-=3}for(;n.have<19;)n.lens[pe[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,$={bits:n.lenbits},L=tu(TK,n.lens,0,19,n.lencode,0,n.work,$),n.lenbits=$.bits,L){e.msg="invalid code lengths set",n.mode=ct;break}n.have=0,n.mode=ET;case ET:for(;n.have>>24,w=v>>>16&255,D=v&65535,!(_<=p);){if(a===0)break e;a--,u+=r[s++]<>>=_,p-=_,n.lens[n.have++]=D;else{if(D===16){for(W=_+2;p>>=_,p-=_,n.have===0){e.msg="invalid bit length repeat",n.mode=ct;break}I=n.lens[n.have-1],m=3+(u&3),u>>>=2,p-=2}else if(D===17){for(W=_+3;p>>=_,p-=_,I=0,m=3+(u&7),u>>>=3,p-=3}else{for(W=_+7;p>>=_,p-=_,I=0,m=11+(u&127),u>>>=7,p-=7}if(n.have+m>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=ct;break}for(;m--;)n.lens[n.have++]=I}}if(n.mode===ct)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=ct;break}if(n.lenbits=9,$={bits:n.lenbits},L=tu(r2,n.lens,0,n.nlen,n.lencode,0,n.work,$),n.lenbits=$.bits,L){e.msg="invalid literal/lengths set",n.mode=ct;break}if(n.distbits=6,n.distcode=n.distdyn,$={bits:n.distbits},L=tu(i2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,$),n.distbits=$.bits,L){e.msg="invalid distances set",n.mode=ct;break}if(n.mode=Up,t===$p)break e;case Up:n.mode=jp;case jp:if(a>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=a,n.hold=u,n.bits=p,_K(e,f),o=e.next_out,i=e.output,l=e.avail_out,s=e.next_in,r=e.input,a=e.avail_in,u=n.hold,p=n.bits,n.mode===hi&&(n.back=-1);break}for(n.back=0;v=n.lencode[u&(1<>>24,w=v>>>16&255,D=v&65535,!(_<=p);){if(a===0)break e;a--,u+=r[s++]<>C)],_=v>>>24,w=v>>>16&255,D=v&65535,!(C+_<=p);){if(a===0)break e;a--,u+=r[s++]<>>=C,p-=C,n.back+=C}if(u>>>=_,p-=_,n.back+=_,n.length=D,w===0){n.mode=AT;break}if(w&32){n.back=-1,n.mode=hi;break}if(w&64){e.msg="invalid literal/length code",n.mode=ct;break}n.extra=w&15,n.mode=DT;case DT:if(n.extra){for(W=n.extra;p>>=n.extra,p-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=ST;case ST:for(;v=n.distcode[u&(1<>>24,w=v>>>16&255,D=v&65535,!(_<=p);){if(a===0)break e;a--,u+=r[s++]<>C)],_=v>>>24,w=v>>>16&255,D=v&65535,!(C+_<=p);){if(a===0)break e;a--,u+=r[s++]<>>=C,p-=C,n.back+=C}if(u>>>=_,p-=_,n.back+=_,w&64){e.msg="invalid distance code",n.mode=ct;break}n.offset=D,n.extra=w&15,n.mode=CT;case CT:if(n.extra){for(W=n.extra;p>>=n.extra,p-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=ct;break}n.mode=TT;case TT:if(l===0)break e;if(m=f-l,n.offset>m){if(m=n.offset-m,m>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=ct;break}m>n.wnext?(m-=n.wnext,g=n.wsize-m):g=n.wnext-m,m>n.length&&(m=n.length),x=n.window}else x=i,g=o-n.offset,m=n.length;m>l&&(m=l),l-=m,n.length-=m;do i[o++]=x[g++];while(--m);n.length===0&&(n.mode=jp);break;case AT:if(l===0)break e;i[o++]=n.length,l--,n.mode=jp;break;case jy:if(n.wrap){for(;p<32;){if(a===0)break e;a--,u|=r[s++]<{if(Hs(e))return ar;let t=e.state;return t.window&&(t.window=null),e.state=null,zs},jK=(e,t)=>{if(Hs(e))return ar;let n=e.state;return(n.wrap&2)===0?ar:(n.head=t,t.done=!1,zs)},zK=(e,t)=>{let n=t.length,r,i,s;return Hs(e)||(r=e.state,r.wrap!==0&&r.mode!==Gp)?ar:r.mode===Gp&&(i=1,i=ou(i,t,n,0),i!==r.check)?s2:(s=f2(e,t,n,n),s?(r.mode=a2,o2):(r.havedict=1,zs))},qK=l2,HK=p2,GK=u2,VK=MK,WK=d2,KK=$K,YK=UK,XK=jK,ZK=zK,QK="pako inflate (from Nodeca project)",yi={inflateReset:qK,inflateReset2:HK,inflateResetKeep:GK,inflateInit:VK,inflateInit2:WK,inflate:KK,inflateEnd:YK,inflateGetHeader:XK,inflateSetDictionary:ZK,inflateInfo:QK};function JK(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var eY=JK,m2=Object.prototype.toString,{Z_NO_FLUSH:tY,Z_FINISH:nY,Z_OK:uu,Z_STREAM_END:Hy,Z_NEED_DICT:Gy,Z_STREAM_ERROR:rY,Z_DATA_ERROR:BT,Z_MEM_ERROR:iY}=qs;function fu(e){this.options=Wp.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});let t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new t2,this.strm.avail_out=0;let n=yi.inflateInit2(this.strm,t.windowBits);if(n!==uu)throw new Error(Us[n]);if(this.header=new eY,yi.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=cu.string2buf(t.dictionary):m2.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=yi.inflateSetDictionary(this.strm,t.dictionary),n!==uu)))throw new Error(Us[n])}fu.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i=this.options.dictionary,s,o,a;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?nY:tY,m2.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),s=yi.inflate(n,o),s===Gy&&i&&(s=yi.inflateSetDictionary(n,i),s===uu?s=yi.inflate(n,o):s===BT&&(s=Gy));n.avail_in>0&&s===Hy&&n.state.wrap>0&&e[n.next_in]!==0;)yi.inflateReset(n),s=yi.inflate(n,o);switch(s){case rY:case BT:case Gy:case iY:return this.onEnd(s),this.ended=!0,!1}if(a=n.avail_out,n.next_out&&(n.avail_out===0||s===Hy))if(this.options.to==="string"){let l=cu.utf8border(n.output,n.next_out),u=n.next_out-l,p=cu.buf2string(n.output,l);n.next_out=u,n.avail_out=r-u,u&&n.output.set(n.output.subarray(l,l+u),0),this.onData(p)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(s===uu&&a===0)){if(s===Hy)return s=yi.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};fu.prototype.onData=function(e){this.chunks.push(e)};fu.prototype.onEnd=function(e){e===uu&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Wp.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function a0(e,t){let n=new fu(t);if(n.push(e),n.err)throw n.msg||Us[n.err];return n.result}function sY(e,t){return t=t||{},t.raw=!0,a0(e,t)}var oY=fu,aY=a0,cY=sY,uY=a0,lY=qs,pY={Inflate:oY,inflate:aY,inflateRaw:cY,ungzip:uY,constants:lY},{Deflate:dY,deflate:fY,deflateRaw:mY,gzip:hY}=vK,{Inflate:gY,inflate:yY,inflateRaw:xY,ungzip:vY}=pY,bY=dY,_Y=fY,wY=mY,EY=hY,DY=gY,SY=yY,CY=xY,TY=vY,AY=qs,c0={Deflate:bY,deflate:_Y,deflateRaw:wY,gzip:EY,Inflate:DY,inflate:SY,inflateRaw:CY,ungzip:TY,constants:AY};c();c();c();c();var h2=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){var r;(r=e.httpHandler)==null||r.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}),g2=e=>({httpHandler:e.httpHandler()});c();var ua;(function(e){e.HTTP="http",e.HTTPS="https"})(ua||(ua={}));c();c();var Gs;(function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"})(Gs||(Gs={}));c();var mu="__smithy_context";c();var be=class e{constructor(t){S(this,"method");S(this,"protocol");S(this,"hostname");S(this,"port");S(this,"path");S(this,"query");S(this,"headers");S(this,"username");S(this,"password");S(this,"fragment");S(this,"body");this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){let n=new e({...t,headers:{...t.headers}});return n.query&&(n.query=RY(n.query)),n}static isInstance(t){if(!t)return!1;let n=t;return"method"in n&&"protocol"in n&&"hostname"in n&&"path"in n&&typeof n.query=="object"&&typeof n.headers=="object"}clone(){return e.clone(this)}};function RY(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}c();var Vt=class{constructor(t){S(this,"statusCode");S(this,"reason");S(this,"headers");S(this,"body");this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;let n=t;return typeof n.statusCode=="number"&&typeof n.headers=="object"}};function kY(e){return t=>async n=>{var i,s,o,a,l,u;let{request:r}=n;if(e.expectContinueHeader!==!1&&be.isInstance(r)&&r.body&&e.runtime==="node"&&((s=(i=e.requestHandler)==null?void 0:i.constructor)==null?void 0:s.name)!=="FetchHttpHandler"){let p=!0;if(typeof e.expectContinueHeader=="number")try{p=((u=(l=Number((o=r.headers)==null?void 0:o["content-length"]))!=null?l:(a=e.bodyLengthChecker)==null?void 0:a.call(e,r.body))!=null?u:1/0)>=e.expectContinueHeader}catch(d){}else p=!!e.expectContinueHeader;p&&(r.headers.Expect="100-continue")}return t({...n,request:r})}}var OY={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},y2=e=>({applyToStack:t=>{t.add(kY(e),OY)}});c();var xi={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},v2=xi.WHEN_SUPPORTED,Yp={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},b2=xi.WHEN_SUPPORTED,Ae;(function(e){e.MD5="MD5",e.CRC32="CRC32",e.CRC32C="CRC32C",e.CRC64NVME="CRC64NVME",e.SHA1="SHA1",e.SHA256="SHA256"})(Ae||(Ae={}));var x2;(function(e){e.HEADER="header",e.TRAILER="trailer"})(x2||(x2={}));var hu=Ae.CRC32;c();c();function _2(e,t,n){return e.$source||(e.$source={}),e.$source[t]=n,e}c();function ut(e,t,n){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=n}c();c();c();var w2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u0=Object.entries(w2).reduce((e,[t,n])=>(e[n]=Number(t),e),{}),E2=w2.split(""),Xi=6,Vs=8,D2=63;var Tr=e=>{let t=e.length/4*3;e.slice(-2)==="=="?t-=2:e.slice(-1)==="="&&t--;let n=new ArrayBuffer(t),r=new DataView(n);for(let i=0;i>=Xi;let a=i/4*3;s>>=o%Vs;let l=Math.floor(o/Vs);for(let u=0;u>p)}}return new Uint8Array(n)};c();Xt();function Gn(e){let t;typeof e=="string"?t=Wt(e):t=e;let n=typeof t=="object"&&typeof t.length=="number",r=typeof t=="object"&&typeof t.byteOffset=="number"&&typeof t.byteLength=="number";if(!n&&!r)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let i="";for(let s=0;s>p]}i+="==".slice(0,4-l)}return i}Xt();var la=class e extends Uint8Array{static fromString(t,n="utf-8"){if(typeof t=="string")return n==="base64"?e.mutate(Tr(t)):e.mutate(Wt(t));throw new Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}static mutate(t){return Object.setPrototypeOf(t,e.prototype),t}transformToString(t="utf-8"){return t==="base64"?Gn(this):Bn(this)}};c();var FY=typeof ReadableStream=="function"?ReadableStream:function(){},Xp=class extends FY{};c();c();var gu=e=>{var t;return typeof ReadableStream=="function"&&(((t=e==null?void 0:e.constructor)==null?void 0:t.name)===ReadableStream.name||e instanceof ReadableStream)};var T2=({expectedChecksum:e,checksum:t,source:n,checksumSourceLocation:r,base64Encoder:i})=>{var l,u;if(!gu(n))throw new Error(`@smithy/util-stream: unsupported source type ${(u=(l=n==null?void 0:n.constructor)==null?void 0:l.name)!=null?u:n} in ChecksumStream.`);let s=i!=null?i:Gn;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let o=new TransformStream({start(){},async transform(p,d){t.update(p),d.enqueue(p)},async flush(p){let d=await t.digest(),f=s(d);if(e!==f){let m=new Error(`Checksum mismatch: expected "${e}" but received "${f}" in response header "${r}".`);p.error(m)}else p.terminate()}});n.pipeThrough(o);let a=o.readable;return Object.setPrototypeOf(a,Xp.prototype),a};c();c();var Zp=class{constructor(t){S(this,"allocByteArray");S(this,"byteLength",0);S(this,"byteArrays",[]);this.allocByteArray=t}push(t){this.byteArrays.push(t),this.byteLength+=t.byteLength}flush(){if(this.byteArrays.length===1){let r=this.byteArrays[0];return this.reset(),r}let t=this.allocByteArray(this.byteLength),n=0;for(let r=0;rnew Uint8Array(u))],a=-1,l=async u=>{let{value:p,done:d}=await r.read(),f=p;if(d){if(a!==-1){let m=p0(o,a);yu(m)>0&&u.enqueue(m)}u.close()}else{let m=PY(f,!1);if(a!==m&&(a>=0&&u.enqueue(p0(o,a)),a=m),a===-1){u.enqueue(f);return}let g=yu(f);s+=g;let x=yu(o[a]);if(g>=t&&x===0)u.enqueue(f);else{let v=IY(o,a,f);!i&&s>t*2&&(i=!0,n==null||n.warn(`@smithy/util-stream - stream chunk size ${g} is below threshold of ${t}, automatically buffering.`)),v>=t?u.enqueue(p0(o,a)):await l(u)}}};return new ReadableStream({pull:l})}var A2=BY;function IY(e,t,n){switch(t){case 0:return e[0]+=n,yu(e[0]);case 1:case 2:return e[t].push(n),yu(e[t])}}function p0(e,t){switch(t){case 0:let n=e[0];return e[0]="",n;case 1:case 2:return e[t].flush()}throw new Error(`@smithy/util-stream - invalid index ${t} given to flush()`)}function yu(e){var t,n;return(n=(t=e==null?void 0:e.byteLength)!=null?t:e==null?void 0:e.length)!=null?n:0}function PY(e,t=!0){return t&&typeof h.Buffer!="undefined"&&e instanceof h.Buffer?2:e instanceof Uint8Array?1:typeof e=="string"?0:-1}c();var R2=(e,t)=>{let{base64Encoder:n,bodyLengthChecker:r,checksumAlgorithmFn:i,checksumLocationName:s,streamHasher:o}=t,a=n!==void 0&&r!==void 0&&i!==void 0&&s!==void 0&&o!==void 0,l=a?o(i,e):void 0,u=e.getReader();return new ReadableStream({async pull(p){let{value:d,done:f}=await u.read();if(f){if(p.enqueue(`0\r + `)+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}be.types=pM();function gM(e){return Array.isArray(e)}be.isArray=gM;function jb(e){return typeof e=="boolean"}be.isBoolean=jb;function gh(e){return e===null}be.isNull=gh;function ixe(e){return e==null}be.isNullOrUndefined=ixe;function yM(e){return typeof e=="number"}be.isNumber=yM;function yh(e){return typeof e=="string"}be.isString=yh;function sxe(e){return typeof e=="symbol"}be.isSymbol=sxe;function So(e){return e===void 0}be.isUndefined=So;function kl(e){return mc(e)&&zb(e)==="[object RegExp]"}be.isRegExp=kl;be.types.isRegExp=kl;function mc(e){return typeof e=="object"&&e!==null}be.isObject=mc;function hh(e){return mc(e)&&zb(e)==="[object Date]"}be.isDate=hh;be.types.isDate=hh;function Ol(e){return mc(e)&&(zb(e)==="[object Error]"||e instanceof Error)}be.isError=Ol;be.types.isNativeError=Ol;function fh(e){return typeof e=="function"}be.isFunction=fh;function oxe(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}be.isPrimitive=oxe;be.isBuffer=fM();function zb(e){return Object.prototype.toString.call(e)}function $b(e){return e<10?"0"+e.toString(10):e.toString(10)}var axe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function cxe(){var e=new Date,t=[$b(e.getHours()),$b(e.getMinutes()),$b(e.getSeconds())].join(":");return[e.getDate(),axe[e.getMonth()],t].join(" ")}be.log=function(){console.log("%s - %s",cxe(),be.format.apply(be,arguments))};be.inherits=gs();be._extend=function(e,t){if(!t||!mc(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};function xM(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Do=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;be.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(Do&&t[Do]){var n=t[Do];if(typeof n!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(n,Do,{value:n,enumerable:!1,writable:!1,configurable:!0}),n}function n(){for(var r,i,s=new Promise(function(l,u){r=l,i=u}),o=[],a=0;a{"use strict";c();function vM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bM(e){for(var t=1;t0?this.tail.next=r:this.head=r,this.tail=r,++this.length}},{key:"unshift",value:function(n){var r={data:n,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}},{key:"shift",value:function(){if(this.length!==0){var n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(n){if(this.length===0)return"";for(var r=this.head,i=""+r.data;r=r.next;)i+=n+r.data;return i}},{key:"concat",value:function(n){if(this.length===0)return xh.alloc(0);for(var r=xh.allocUnsafe(n>>>0),i=this.head,s=0;i;)xxe(i.data,r,s),s+=i.data.length,i=i.next;return r}},{key:"consume",value:function(n,r){var i;return no.length?o.length:n;if(a===o.length?s+=o:s+=o.slice(0,n),n-=a,n===0){a===o.length?(++i,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(a));break}++i}return this.length-=i,s}},{key:"_getBuffer",value:function(n){var r=xh.allocUnsafe(n),i=this.head,s=1;for(i.data.copy(r),n-=i.data.length;i=i.next;){var o=i.data,a=n>o.length?o.length:n;if(o.copy(r,r.length-n,0,a),n-=a,n===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,r}},{key:yxe,value:function(n,r){return Hb(this,bM(bM({},r),{},{depth:0,customInspect:!1}))}}]),e})()});var Vb=F((Krt,CM)=>{"use strict";c();function vxe(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Gb,this,e)):process.nextTick(Gb,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?n._writableState?n._writableState.errorEmitted?process.nextTick(vh,n):(n._writableState.errorEmitted=!0,process.nextTick(SM,n,s)):process.nextTick(SM,n,s):t?(process.nextTick(vh,n),t(s)):process.nextTick(vh,n)}),this)}function SM(e,t){Gb(e,t),vh(e)}function vh(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function bxe(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Gb(e,t){e.emit("error",t)}function _xe(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}CM.exports={destroy:vxe,undestroy:bxe,errorOrDestroy:_xe}});var Co=F((Xrt,RM)=>{"use strict";c();function wxe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var AM={};function xr(e,t,n){n||(n=Error);function r(s,o,a){return typeof t=="string"?t:t(s,o,a)}var i=(function(s){wxe(o,s);function o(a,l,u){return s.call(this,r(a,l,u))||this}return o})(n);i.prototype.name=n.name,i.prototype.code=e,AM[e]=i}function TM(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(r){return String(r)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:n===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function Exe(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function Dxe(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function Sxe(e,t,n){return typeof n!="number"&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}xr("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);xr("ERR_INVALID_ARG_TYPE",function(e,t,n){var r;typeof t=="string"&&Exe(t,"not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";var i;if(Dxe(e," argument"))i="The ".concat(e," ").concat(r," ").concat(TM(t,"type"));else{var s=Sxe(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(s," ").concat(r," ").concat(TM(t,"type"))}return i+=". Received type ".concat(typeof n),i},TypeError);xr("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");xr("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});xr("ERR_STREAM_PREMATURE_CLOSE","Premature close");xr("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});xr("ERR_MULTIPLE_CALLBACK","Callback called multiple times");xr("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");xr("ERR_STREAM_WRITE_AFTER_END","write after end");xr("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);xr("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);xr("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");RM.exports.codes=AM});var Wb=F((Qrt,kM)=>{"use strict";c();var Cxe=Co().codes.ERR_INVALID_OPT_VALUE;function Txe(e,t,n){return e.highWaterMark!=null?e.highWaterMark:t?e[n]:null}function Axe(e,t,n,r){var i=Txe(t,r,n);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=r?n:"highWaterMark";throw new Cxe(s,i)}return Math.floor(i)}return e.objectMode?16:16*1024}kM.exports={getHighWaterMark:Axe}});var FM=F((eit,OM)=>{c();OM.exports=Rxe;function Rxe(e,t){if(Kb("noDeprecation"))return e;var n=!1;function r(){if(!n){if(Kb("throwDeprecation"))throw new Error(t);Kb("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return r}function Kb(e){try{if(!globalThis.localStorage)return!1}catch(n){return!1}var t=globalThis.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var Zb=F((nit,LM)=>{"use strict";c();LM.exports=gt;function IM(e){var t=this;this.next=null,this.entry=null,this.finish=function(){nve(t,e)}}var hc;gt.WritableState=Bl;var kxe={deprecate:FM()},PM=lb(),_h=Cr().Buffer,Oxe=(typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function Fxe(e){return _h.from(e)}function Bxe(e){return _h.isBuffer(e)||e instanceof Oxe}var Xb=Vb(),Ixe=Wb(),Pxe=Ixe.getHighWaterMark,xs=Co().codes,Nxe=xs.ERR_INVALID_ARG_TYPE,Mxe=xs.ERR_METHOD_NOT_IMPLEMENTED,Lxe=xs.ERR_MULTIPLE_CALLBACK,$xe=xs.ERR_STREAM_CANNOT_PIPE,Uxe=xs.ERR_STREAM_DESTROYED,jxe=xs.ERR_STREAM_NULL_VALUES,zxe=xs.ERR_STREAM_WRITE_AFTER_END,qxe=xs.ERR_UNKNOWN_ENCODING,gc=Xb.errorOrDestroy;gs()(gt,PM);function Hxe(){}function Bl(e,t,n){hc=hc||To(),e=e||{},typeof n!="boolean"&&(n=t instanceof hc),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=Pxe(this,e,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var r=e.decodeStrings===!1;this.decodeStrings=!r,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){Zxe(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new IM(this)}Bl.prototype.getBuffer=function(){for(var t=this.bufferedRequest,n=[];t;)n.push(t),t=t.next;return n};(function(){try{Object.defineProperty(Bl.prototype,"buffer",{get:kxe.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var bh;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(bh=Function.prototype[Symbol.hasInstance],Object.defineProperty(gt,Symbol.hasInstance,{value:function(t){return bh.call(this,t)?!0:this!==gt?!1:t&&t._writableState instanceof Bl}})):bh=function(t){return t instanceof this};function gt(e){hc=hc||To();var t=this instanceof hc;if(!t&&!bh.call(gt,this))return new gt(e);this._writableState=new Bl(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),PM.call(this)}gt.prototype.pipe=function(){gc(this,new $xe)};function Gxe(e,t){var n=new zxe;gc(e,n),process.nextTick(t,n)}function Vxe(e,t,n,r){var i;return n===null?i=new jxe:typeof n!="string"&&!t.objectMode&&(i=new Nxe("chunk",["string","Buffer"],n)),i?(gc(e,i),process.nextTick(r,i),!1):!0}gt.prototype.write=function(e,t,n){var r=this._writableState,i=!1,s=!r.objectMode&&Bxe(e);return s&&!_h.isBuffer(e)&&(e=Fxe(e)),typeof t=="function"&&(n=t,t=null),s?t="buffer":t||(t=r.defaultEncoding),typeof n!="function"&&(n=Hxe),r.ending?Gxe(this,n):(s||Vxe(this,r,e,n))&&(r.pendingcb++,i=Kxe(this,r,s,e,t,n)),i};gt.prototype.cork=function(){this._writableState.corked++};gt.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&NM(this,e))};gt.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new qxe(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(gt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Wxe(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=_h.from(t,n)),t}Object.defineProperty(gt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Kxe(e,t,n,r,i,s){if(!n){var o=Wxe(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var a=t.objectMode?1:r.length;t.length+=a;var l=t.length{"use strict";c();var rve=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};UM.exports=oi;var $M=e_(),Jb=Zb();gs()(oi,$M);for(Qb=rve(Jb.prototype),wh=0;wh{c();var Dh=Cr(),Pi=Dh.Buffer;function jM(e,t){for(var n in e)t[n]=e[n]}Pi.from&&Pi.alloc&&Pi.allocUnsafe&&Pi.allocUnsafeSlow?zM.exports=Dh:(jM(Dh,t_),t_.Buffer=yc);function yc(e,t,n){return Pi(e,t,n)}jM(Pi,yc);yc.from=function(e,t,n){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Pi(e,t,n)};yc.alloc=function(e,t,n){if(typeof e!="number")throw new TypeError("Argument must be a number");var r=Pi(e);return t!==void 0?typeof n=="string"?r.fill(t,n):r.fill(t):r.fill(0),r};yc.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Pi(e)};yc.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Dh.SlowBuffer(e)}});var i_=F(GM=>{"use strict";c();var r_=qM().Buffer,HM=r_.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function ove(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function ave(e){var t=ove(e);if(typeof t!="string"&&(r_.isEncoding===HM||!HM(e)))throw new Error("Unknown encoding: "+e);return t||e}GM.StringDecoder=Il;function Il(e){this.encoding=ave(e);var t;switch(this.encoding){case"utf16le":this.text=fve,this.end=mve,t=4;break;case"utf8":this.fillLast=lve,t=4;break;case"base64":this.text=hve,this.end=gve,t=3;break;default:this.write=yve,this.end=xve;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=r_.allocUnsafe(t)}Il.prototype.write=function(e){if(e.length===0)return"";var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function cve(e,t,n){var r=t.length-1;if(r=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function uve(e,t,n){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function lve(e){var t=this.lastTotal-this.lastNeed,n=uve(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function pve(e,t){var n=cve(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function dve(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function fve(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function mve(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function hve(e,t){var n=(e.length-t)%3;return n===0?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function gve(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function yve(e){return e.toString(this.encoding)}function xve(e){return e&&e.length?this.write(e):""}});var Sh=F((uit,KM)=>{"use strict";c();var VM=Co().codes.ERR_STREAM_PREMATURE_CLOSE;function vve(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i{"use strict";c();var Ch;function vs(e,t,n){return t=wve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wve(e){var t=Eve(e,"string");return typeof t=="symbol"?t:String(t)}function Eve(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Dve=Sh(),bs=Symbol("lastResolve"),Ao=Symbol("lastReject"),Pl=Symbol("error"),Th=Symbol("ended"),Ro=Symbol("lastPromise"),s_=Symbol("handlePromise"),ko=Symbol("stream");function _s(e,t){return{value:e,done:t}}function Sve(e){var t=e[bs];if(t!==null){var n=e[ko].read();n!==null&&(e[Ro]=null,e[bs]=null,e[Ao]=null,t(_s(n,!1)))}}function Cve(e){process.nextTick(Sve,e)}function Tve(e,t){return function(n,r){e.then(function(){if(t[Th]){n(_s(void 0,!0));return}t[s_](n,r)},r)}}var Ave=Object.getPrototypeOf(function(){}),Rve=Object.setPrototypeOf((Ch={get stream(){return this[ko]},next:function(){var t=this,n=this[Pl];if(n!==null)return Promise.reject(n);if(this[Th])return Promise.resolve(_s(void 0,!0));if(this[ko].destroyed)return new Promise(function(o,a){process.nextTick(function(){t[Pl]?a(t[Pl]):o(_s(void 0,!0))})});var r=this[Ro],i;if(r)i=new Promise(Tve(r,this));else{var s=this[ko].read();if(s!==null)return Promise.resolve(_s(s,!1));i=new Promise(this[s_])}return this[Ro]=i,i}},vs(Ch,Symbol.asyncIterator,function(){return this}),vs(Ch,"return",function(){var t=this;return new Promise(function(n,r){t[ko].destroy(null,function(i){if(i){r(i);return}n(_s(void 0,!0))})})}),Ch),Ave),kve=function(t){var n,r=Object.create(Rve,(n={},vs(n,ko,{value:t,writable:!0}),vs(n,bs,{value:null,writable:!0}),vs(n,Ao,{value:null,writable:!0}),vs(n,Pl,{value:null,writable:!0}),vs(n,Th,{value:t._readableState.endEmitted,writable:!0}),vs(n,s_,{value:function(s,o){var a=r[ko].read();a?(r[Ro]=null,r[bs]=null,r[Ao]=null,s(_s(a,!1))):(r[bs]=s,r[Ao]=o)},writable:!0}),n));return r[Ro]=null,Dve(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=r[Ao];s!==null&&(r[Ro]=null,r[bs]=null,r[Ao]=null,s(i)),r[Pl]=i;return}var o=r[bs];o!==null&&(r[Ro]=null,r[bs]=null,r[Ao]=null,o(_s(void 0,!0))),r[Th]=!0}),t.on("readable",Cve.bind(null,r)),r};YM.exports=kve});var QM=F((fit,ZM)=>{c();ZM.exports=function(){throw new Error("Readable.from is not available in the browser")}});var e_=F((git,c8)=>{"use strict";c();c8.exports=Re;var xc;Re.ReadableState=n8;var hit=wl().EventEmitter,t8=function(t,n){return t.listeners(n).length},Ml=lb(),Ah=Cr().Buffer,Ove=(typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function Fve(e){return Ah.from(e)}function Bve(e){return Ah.isBuffer(e)||e instanceof Ove}var o_=qb(),ye;o_&&o_.debuglog?ye=o_.debuglog("stream"):ye=function(){};var Ive=DM(),f_=Vb(),Pve=Wb(),Nve=Pve.getHighWaterMark,Rh=Co().codes,Mve=Rh.ERR_INVALID_ARG_TYPE,Lve=Rh.ERR_STREAM_PUSH_AFTER_EOF,$ve=Rh.ERR_METHOD_NOT_IMPLEMENTED,Uve=Rh.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,vc,a_,c_;gs()(Re,Ml);var Nl=f_.errorOrDestroy,u_=["error","close","destroy","pause","resume"];function jve(e,t,n){if(typeof e.prependListener=="function")return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function n8(e,t,n){xc=xc||To(),e=e||{},typeof n!="boolean"&&(n=t instanceof xc),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=Nve(this,e,"readableHighWaterMark",n),this.buffer=new Ive,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(vc||(vc=i_().StringDecoder),this.decoder=new vc(e.encoding),this.encoding=e.encoding)}function Re(e){if(xc=xc||To(),!(this instanceof Re))return new Re(e);var t=this instanceof xc;this._readableState=new n8(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Ml.call(this)}Object.defineProperty(Re.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Re.prototype.destroy=f_.destroy;Re.prototype._undestroy=f_.undestroy;Re.prototype._destroy=function(e,t){t(e)};Re.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e=="string"&&(t=t||n.defaultEncoding,t!==n.encoding&&(e=Ah.from(e,t),t=""),r=!0),r8(this,e,t,!1,r)};Re.prototype.unshift=function(e){return r8(this,e,null,!0,!1)};function r8(e,t,n,r,i){ye("readableAddChunk",t);var s=e._readableState;if(t===null)s.reading=!1,Hve(e,s);else{var o;if(i||(o=zve(s,t)),o)Nl(e,o);else if(s.objectMode||t&&t.length>0)if(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==Ah.prototype&&(t=Fve(t)),r)s.endEmitted?Nl(e,new Uve):l_(e,s,t,!0);else if(s.ended)Nl(e,new Lve);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||t.length!==0?l_(e,s,t,!1):d_(e,s)):l_(e,s,t,!1)}else r||(s.reading=!1,d_(e,s))}return!s.ended&&(s.length=JM?e=JM:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function e8(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=qve(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}Re.prototype.read=function(e){ye("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return ye("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?p_(this):kh(this),null;if(e=e8(e,t),e===0&&t.ended)return t.length===0&&p_(this),null;var r=t.needReadable;ye("need readable",r),(t.length===0||t.length-e0?i=o8(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&p_(this)),i!==null&&this.emit("data",i),i};function Hve(e,t){if(ye("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?kh(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,i8(e)))}}function kh(e){var t=e._readableState;ye("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(ye("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(i8,e))}function i8(e){var t=e._readableState;ye("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,m_(e)}function d_(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(Gve,e,t))}function Gve(e,t){for(;!t.reading&&!t.ended&&(t.length1&&a8(r.pipes,e)!==-1)&&!u&&(ye("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function f(v){ye("onerror",v),x(),e.removeListener("error",f),t8(e,"error")===0&&Nl(e,v)}jve(e,"error",f);function m(){e.removeListener("finish",g),x()}e.once("close",m);function g(){ye("onfinish"),e.removeListener("close",m),x()}e.once("finish",g);function x(){ye("unpipe"),n.unpipe(e)}return e.emit("pipe",n),r.flowing||(ye("pipe resume"),n.resume()),e};function Vve(e){return function(){var n=e._readableState;ye("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,n.awaitDrain===0&&t8(e,"data")&&(n.flowing=!0,m_(e))}}Re.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s0,r.flowing!==!1&&this.resume()):e==="readable"&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,ye("on readable",r.length,r.reading),r.length?kh(this):r.reading||process.nextTick(Wve,this)),n};Re.prototype.addListener=Re.prototype.on;Re.prototype.removeListener=function(e,t){var n=Ml.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(s8,this),n};Re.prototype.removeAllListeners=function(e){var t=Ml.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(s8,this),t};function s8(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function Wve(e){ye("readable nexttick read 0"),e.read(0)}Re.prototype.resume=function(){var e=this._readableState;return e.flowing||(ye("resume"),e.flowing=!e.readableListening,Kve(this,e)),e.paused=!1,this};function Kve(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(Yve,e,t))}function Yve(e,t){ye("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),m_(e),t.flowing&&!t.reading&&e.read(0)}Re.prototype.pause=function(){return ye("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ye("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function m_(e){var t=e._readableState;for(ye("flow",t.flowing);t.flowing&&e.read()!==null;);}Re.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;e.on("end",function(){if(ye("wrapped end"),n.decoder&&!n.ended){var o=n.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(ye("wrapped data"),n.decoder&&(o=n.decoder.write(o)),!(n.objectMode&&o==null)&&!(!n.objectMode&&(!o||!o.length))){var a=t.push(o);a||(r=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=(function(a){return function(){return e[a].apply(e,arguments)}})(i));for(var s=0;s=t.length?(t.decoder?n=t.buffer.join(""):t.buffer.length===1?n=t.buffer.first():n=t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function p_(e){var t=e._readableState;ye("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(Xve,t,e))}function Xve(e,t){if(ye("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}typeof Symbol=="function"&&(Re.from=function(e,t){return c_===void 0&&(c_=QM()),c_(Re,e,t)});function a8(e,t){for(var n=0,r=e.length;n{"use strict";c();l8.exports=Ni;var Oh=Co().codes,Zve=Oh.ERR_METHOD_NOT_IMPLEMENTED,Qve=Oh.ERR_MULTIPLE_CALLBACK,Jve=Oh.ERR_TRANSFORM_ALREADY_TRANSFORMING,ebe=Oh.ERR_TRANSFORM_WITH_LENGTH_0,Fh=To();gs()(Ni,Fh);function tbe(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit("error",new Qve);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";c();d8.exports=Ll;var p8=h_();gs()(Ll,p8);function Ll(e){if(!(this instanceof Ll))return new Ll(e);p8.call(this,e)}Ll.prototype._transform=function(e,t,n){n(null,e)}});var x8=F((wit,y8)=>{"use strict";c();var g_;function rbe(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var g8=Co().codes,ibe=g8.ERR_MISSING_ARGS,sbe=g8.ERR_STREAM_DESTROYED;function m8(e){if(e)throw e}function obe(e){return e.setHeader&&typeof e.abort=="function"}function abe(e,t,n,r){r=rbe(r);var i=!1;e.on("close",function(){i=!0}),g_===void 0&&(g_=Sh()),g_(e,{readable:t,writable:n},function(o){if(o)return r(o);i=!0,r()});var s=!1;return function(o){if(!i&&!s){if(s=!0,obe(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();r(o||new sbe("pipe"))}}}function h8(e){e()}function cbe(e,t){return e.pipe(t)}function ube(e){return!e.length||typeof e[e.length-1]!="function"?m8:e.pop()}function lbe(){for(var e=arguments.length,t=new Array(e),n=0;n0;return abe(o,l,u,function(p){i||(i=p),p&&s.forEach(h8),!l&&(s.forEach(h8),r(i))})});return t.reduce(cbe)}y8.exports=lbe});var x_=F((Dit,v8)=>{c();v8.exports=vr;var y_=wl().EventEmitter,pbe=gs();pbe(vr,y_);vr.Readable=e_();vr.Writable=Zb();vr.Duplex=To();vr.Transform=h_();vr.PassThrough=f8();vr.finished=Sh();vr.pipeline=x8();vr.Stream=vr;function vr(){y_.call(this)}vr.prototype.pipe=function(e,t){var n=this;function r(p){e.writable&&e.write(p)===!1&&n.pause&&n.pause()}n.on("data",r);function i(){n.readable&&n.resume&&n.resume()}e.on("drain",i),!e._isStdio&&(!t||t.end!==!1)&&(n.on("end",o),n.on("close",a));var s=!1;function o(){s||(s=!0,e.end())}function a(){s||(s=!0,typeof e.destroy=="function"&&e.destroy())}function l(p){if(u(),y_.listenerCount(this,"error")===0)throw p}n.on("error",l),e.on("error",l);function u(){n.removeListener("data",r),e.removeListener("drain",i),n.removeListener("end",o),n.removeListener("close",a),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}return n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e}});var C8=F((Gst,mbe)=>{mbe.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}});var A8=F((Vst,T8)=>{c();T8.exports=C8()});var O8=F((Kst,k8)=>{"use strict";c();function ai(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function R8(e,t){for(var n="",r=0,i=-1,s=0,o,a=0;a<=e.length;++a){if(a2){var l=n.lastIndexOf("/");if(l!==n.length-1){l===-1?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,s=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=a,s=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,s=0}else o===46&&s!==-1?++s:s=-1}return n}function hbe(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}var _c={resolve:function(){for(var t="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var s;i>=0?s=arguments[i]:(r===void 0&&(r=process.cwd()),s=r),ai(s),s.length!==0&&(t=s+"/"+t,n=s.charCodeAt(0)===47)}return t=R8(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(ai(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=R8(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return ai(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,n=0;n0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":_c.normalize(t)},relative:function(t,n){if(ai(t),ai(n),t===n||(t=_c.resolve(t),n=_c.resolve(n),t===n))return"";for(var r=1;ru){if(n.charCodeAt(o+d)===47)return n.slice(o+d+1);if(d===0)return n.slice(o+d)}else s>u&&(t.charCodeAt(r+d)===47?p=d:d===0&&(p=0));break}var f=t.charCodeAt(r+d),m=n.charCodeAt(o+d);if(f!==m)break;f===47&&(p=d)}var g="";for(d=r+p+1;d<=i;++d)(d===i||t.charCodeAt(d)===47)&&(g.length===0?g+="..":g+="/..");return g.length>0?g+n.slice(o+p):(o+=p,n.charCodeAt(o)===47&&++o,n.slice(o))},_makeLong:function(t){return t},dirname:function(t){if(ai(t),t.length===0)return".";for(var n=t.charCodeAt(0),r=n===47,i=-1,s=!0,o=t.length-1;o>=1;--o)if(n=t.charCodeAt(o),n===47){if(!s){i=o;break}}else s=!1;return i===-1?r?"/":".":r&&i===1?"//":t.slice(0,i)},basename:function(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');ai(t);var r=0,i=-1,s=!0,o;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var a=n.length-1,l=-1;for(o=t.length-1;o>=0;--o){var u=t.charCodeAt(o);if(u===47){if(!s){r=o+1;break}}else l===-1&&(s=!1,l=o+1),a>=0&&(u===n.charCodeAt(a)?--a===-1&&(i=o):(a=-1,i=l))}return r===i?i=l:i===-1&&(i=t.length),t.slice(r,i)}else{for(o=t.length-1;o>=0;--o)if(t.charCodeAt(o)===47){if(!s){r=o+1;break}}else i===-1&&(s=!1,i=o+1);return i===-1?"":t.slice(r,i)}},extname:function(t){ai(t);for(var n=-1,r=0,i=-1,s=!0,o=0,a=t.length-1;a>=0;--a){var l=t.charCodeAt(a);if(l===47){if(!s){r=a+1;break}continue}i===-1&&(s=!1,i=a+1),l===46?n===-1?n=a:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return hbe("/",t)},parse:function(t){ai(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;var r=t.charCodeAt(0),i=r===47,s;i?(n.root="/",s=1):s=0;for(var o=-1,a=0,l=-1,u=!0,p=t.length-1,d=0;p>=s;--p){if(r=t.charCodeAt(p),r===47){if(!u){a=p+1;break}continue}l===-1&&(u=!1,l=p+1),r===46?o===-1?o=p:d!==1&&(d=1):o!==-1&&(d=-1)}return o===-1||l===-1||d===0||d===1&&o===l-1&&o===a+1?l!==-1&&(a===0&&i?n.base=n.name=t.slice(1,l):n.base=n.name=t.slice(a,l)):(a===0&&i?(n.name=t.slice(1,o),n.base=t.slice(1,l)):(n.name=t.slice(a,o),n.base=t.slice(a,l)),n.ext=t.slice(o,l)),a>0?n.dir=t.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};_c.posix=_c;k8.exports=_c});var I8=F(Un=>{"use strict";c();var Mh=A8(),gbe=O8().extname,F8=/^\s*([^;\s]*)(?:;|\s|$)/,ybe=/^text\//i;Un.charset=B8;Un.charsets={lookup:B8};Un.contentType=xbe;Un.extension=vbe;Un.extensions=Object.create(null);Un.lookup=bbe;Un.types=Object.create(null);_be(Un.extensions,Un.types);function B8(e){if(!e||typeof e!="string")return!1;var t=F8.exec(e),n=t&&Mh[t[1].toLowerCase()];return n&&n.charset?n.charset:t&&ybe.test(t[1])?"UTF-8":!1}function xbe(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?Un.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var n=Un.charset(t);n&&(t+="; charset="+n.toLowerCase())}return t}function vbe(e){if(!e||typeof e!="string")return!1;var t=F8.exec(e),n=t&&Un.extensions[t[1].toLowerCase()];return!n||!n.length?!1:n[0]}function bbe(e){if(!e||typeof e!="string")return!1;var t=gbe("x."+e).toLowerCase().substr(1);return t&&Un.types[t]||!1}function _be(e,t){var n=["nginx","apache",void 0,"iana"];Object.keys(Mh).forEach(function(i){var s=Mh[i],o=s.extensions;if(!(!o||!o.length)){e[i]=o;for(var a=0;ap||u===p&&t[l].substr(0,12)==="application/"))continue}t[l]=i}}})}});var L8=F((M8,Lh)=>{c();(function(e,t){"use strict";typeof define=="function"&&define.amd?define(t):typeof Lh=="object"&&Lh.exports?Lh.exports=t():e.log=t()})(M8,function(){"use strict";var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"],i={},s=null;function o(g,x){var v=g[x];if(typeof v.bind=="function")return v.bind(g);try{return Function.prototype.bind.call(v,g)}catch(_){return function(){return Function.prototype.apply.apply(v,[g,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(g){return g==="debug"&&(g="log"),typeof console===t?!1:g==="trace"&&n?a:console[g]!==void 0?o(console,g):console.log!==void 0?o(console,"log"):e}function u(){for(var g=this.getLevel(),x=0;x=0&&W<=v.levels.SILENT)return W;throw new TypeError("log.setLevel() called with invalid level: "+$)}v.name=g,v.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},v.methodFactory=x||d,v.getLevel=function(){return E!=null?E:w!=null?w:_},v.setLevel=function($,W){return E=M($),W!==!1&&A(E),u.call(v)},v.setDefaultLevel=function($){w=M($),k()||v.setLevel($,!1)},v.resetLevel=function(){E=null,I(),u.call(v)},v.enableAll=function($){v.setLevel(v.levels.TRACE,$)},v.disableAll=function($){v.setLevel(v.levels.SILENT,$)},v.rebuild=function(){if(s!==v&&(_=M(s.getLevel())),u.call(v),s===v)for(var $ in i)i[$].rebuild()},_=M(s?s.getLevel():"WARN");var U=k();U!=null&&(E=M(U)),u.call(v)}s=new f,s.getLogger=function(x){if(typeof x!="symbol"&&typeof x!="string"||x==="")throw new TypeError("You must supply a name when creating a logger.");var v=i[x];return v||(v=i[x]=new f(x,s.methodFactory)),v};var m=typeof window!==t?window.log:void 0;return s.noConflict=function(){return typeof window!==t&&window.log===s&&(window.log=m),s},s.getLoggers=function(){return i},s.default=s,s})});var P_=F(Dc=>{"use strict";c();Object.defineProperty(Dc,"__esModule",{value:!0});Dc.Queue=Dc.Stack=void 0;var B_=class{constructor(t){t===void 0?(this.stackBack=[],this.length=0):(this.stackBack=[...t],this.length=this.stackBack.length)}push(t){this.stackBack.push(t),this.length+=1}pop(){if(this.length!==0)return this.length-=1,this.stackBack.pop()}size(){return this.length}back(){if(this.length!==0)return this.stackBack[this.stackBack.length-1]}};Dc.Stack=B_;var I_=class{constructor(t){if(t===void 0)this.stackBack=[],this.stackFront=[],this.length=0;else{this.stackFront=[];for(let n=t.length-1;n>=0;n--)this.stackFront.push(t[n]);this.stackBack=[],this.length=this.stackFront.length}}push(t){this.stackBack.push(t),this.length+=1}pop(){if(this.length!==0){if(this.stackFront.length===0)for(;this.stackBack.length>0;)this.stackFront.push(this.stackBack.pop());return this.length-=1,this.stackFront.pop()}}shift(){return this.pop()}size(){return this.length}front(){if(this.length!==0){if(this.stackFront.length===0)for(;this.stackBack.length>0;)this.stackFront.push(this.stackBack.pop());return this.stackFront[this.stackFront.length-1]}}back(){if(this.length!==0)return this.stackBack.length>0?this.stackBack[this.stackBack.length-1]:this.stackFront[0]}};Dc.Queue=I_});var rL=F((iat,nL)=>{c();function Mbe(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(i);++r{c();var Lbe=jc(),$be=kp(),Ube=yy(),jbe=Hi();function zbe(e,t,n){if(!jbe(n))return!1;var r=typeof t;return(r=="number"?$be(n)&&Ube(t,n.length):r=="string"&&t in n)?Lbe(n[t],e):!1}iL.exports=zbe});var aL=F((cat,oL)=>{c();var qbe=/\s/;function Hbe(e){for(var t=e.length;t--&&qbe.test(e.charAt(t)););return t}oL.exports=Hbe});var uL=F((lat,cL)=>{c();var Gbe=aL(),Vbe=/^\s+/;function Wbe(e){return e&&e.slice(0,Gbe(e)+1).replace(Vbe,"")}cL.exports=Wbe});var pL=F((dat,lL)=>{c();var Kbe=Yo(),Ybe=Vi(),Xbe="[object Symbol]";function Zbe(e){return typeof e=="symbol"||Ybe(e)&&Kbe(e)==Xbe}lL.exports=Zbe});var hL=F((mat,mL)=>{c();var Qbe=uL(),dL=Hi(),Jbe=pL(),fL=NaN,e_e=/^[-+]0x[0-9a-f]+$/i,t_e=/^0b[01]+$/i,n_e=/^0o[0-7]+$/i,r_e=parseInt;function i_e(e){if(typeof e=="number")return e;if(Jbe(e))return fL;if(dL(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=dL(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Qbe(e);var n=t_e.test(e);return n||n_e.test(e)?r_e(e.slice(2),n?2:8):e_e.test(e)?fL:+e}mL.exports=i_e});var xL=F((gat,yL)=>{c();var s_e=hL(),gL=1/0,o_e=17976931348623157e292;function a_e(e){if(!e)return e===0?e:0;if(e=s_e(e),e===gL||e===-gL){var t=e<0?-1:1;return t*o_e}return e===e?e:0}yL.exports=a_e});var bL=F((xat,vL)=>{c();var c_e=xL();function u_e(e){var t=c_e(e),n=t%1;return t===t?n?t-n:t:0}vL.exports=u_e});var N_=F((bat,_L)=>{c();var l_e=rL(),p_e=sL(),d_e=bL(),f_e=Math.ceil,m_e=Math.max;function h_e(e,t,n){(n?p_e(e,t,n):t===void 0)?t=1:t=m_e(d_e(t),0);var r=e==null?0:e.length;if(!r||t<1)return[];for(var i=0,s=0,o=Array(f_e(r/t));i{c();var wL=Ko(),g_e=gy(),y_e=Jo(),EL=wL?wL.isConcatSpreadable:void 0;function x_e(e){return y_e(e)||g_e(e)||!!(EL&&e&&e[EL])}DL.exports=x_e});var AL=F((Dat,TL)=>{c();var v_e=Ip(),b_e=SL();function CL(e,t,n,r,i){var s=-1,o=e.length;for(n||(n=b_e),i||(i=[]);++s0&&n(a)?t>1?CL(a,t-1,n,r,i):v_e(i,a):r||(i[i.length]=a)}return i}TL.exports=CL});var M_=F((Cat,RL)=>{c();var __e=AL();function w_e(e){var t=e==null?0:e.length;return t?__e(e,1):[]}RL.exports=w_e});var y$=F((g$,Pw)=>{c();(function(e){if(typeof g$=="object"&&typeof Pw!="undefined")Pw.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var t;typeof window!="undefined"?t=window:typeof globalThis!="undefined"?t=globalThis:typeof self!="undefined"?t=self:t=this,t.localforage=e()}})(function(){var e,t,n;return(function r(i,s,o){function a(p,d){if(!s[p]){if(!i[p]){var f=typeof require=="function"&&require;if(!d&&f)return f(p,!0);if(l)return l(p,!0);var m=new Error("Cannot find module '"+p+"'");throw m.code="MODULE_NOT_FOUND",m}var g=s[p]={exports:{}};i[p][0].call(g.exports,function(x){var v=i[p][1][x];return a(v||x)},g,g.exports,r,i,s,o)}return s[p].exports}for(var l=typeof require=="function"&&require,u=0;u=43)}}).catch(function(){return!1})}function U(T){return typeof w=="boolean"?f.resolve(w):M(T).then(function(B){return w=B,w})}function $(T){var B=E[T.name],R={};R.promise=new f(function(N,L){R.resolve=N,R.reject=L}),B.deferredOperations.push(R),B.dbReady?B.dbReady=B.dbReady.then(function(){return R.promise}):B.dbReady=R.promise}function W(T){var B=E[T.name],R=B.deferredOperations.pop();if(R)return R.resolve(),R.promise}function le(T,B){var R=E[T.name],N=R.deferredOperations.pop();if(N)return N.reject(B),N.promise}function J(T,B){return new f(function(R,N){if(E[T.name]=E[T.name]||oe(),T.db)if(B)$(T),T.db.close();else return R(T.db);var L=[T.name];B&&L.push(T.version);var P=u.open.apply(u,L);B&&(P.onupgradeneeded=function(G){var Q=P.result;try{Q.createObjectStore(T.storeName),G.oldVersion<=1&&Q.createObjectStore(_)}catch(ee){if(ee.name==="ConstraintError")console.warn('The database "'+T.name+'" has been upgraded from version '+G.oldVersion+" to version "+G.newVersion+', but the storage "'+T.storeName+'" already exists.');else throw ee}}),P.onerror=function(G){G.preventDefault(),N(P.error)},P.onsuccess=function(){var G=P.result;G.onversionchange=function(Q){Q.target.close()},R(G),W(T)}})}function me(T){return J(T,!1)}function Ae(T){return J(T,!0)}function _e(T,B){if(!T.db)return!0;var R=!T.db.objectStoreNames.contains(T.storeName),N=T.versionT.db.version;if(N&&(T.version!==B&&console.warn('The database "'+T.name+`" can't be downgraded from version `+T.db.version+" to version "+T.version+"."),T.version=T.db.version),L||R){if(R){var P=T.db.version+1;P>T.version&&(T.version=P)}return!0}return!1}function Oe(T){return new f(function(B,R){var N=new FileReader;N.onerror=R,N.onloadend=function(L){var P=btoa(L.target.result||"");B({__local_forage_encoded_blob:!0,data:P,type:T.type})},N.readAsBinaryString(T)})}function He(T){var B=I(atob(T.data));return d([B],{type:T.type})}function Fe(T){return T&&T.__local_forage_encoded_blob}function z(T){var B=this,R=B._initReady().then(function(){var N=E[B._dbInfo.name];if(N&&N.dbReady)return N.dbReady});return g(R,T,T),R}function O(T){$(T);for(var B=E[T.name],R=B.forages,N=0;N0&&(!T.db||P.name==="InvalidStateError"||P.name==="NotFoundError"))return f.resolve().then(function(){if(!T.db||P.name==="NotFoundError"&&!T.db.objectStoreNames.contains(T.storeName)&&T.version<=T.db.version)return T.db&&(T.version=T.db.version+1),Ae(T)}).then(function(){return O(T).then(function(){H(T,B,R,N-1)})}).catch(R);R(P)}}function oe(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Ke(T){var B=this,R={db:null};if(T)for(var N in T)R[N]=T[N];var L=E[R.name];L||(L=oe(),E[R.name]=L),L.forages.push(B),B._initReady||(B._initReady=B.ready,B.ready=z);var P=[];function G(){return f.resolve()}for(var Q=0;Q>4,re[L++]=(G&15)<<4|Q>>2,re[L++]=(Q&3)<<6|ee&63;return te}function Gg(T){var B=new Uint8Array(T),R="",N;for(N=0;N>2],R+=jr[(B[N]&3)<<4|B[N+1]>>4],R+=jr[(B[N+1]&15)<<2|B[N+2]>>6],R+=jr[B[N+2]&63];return B.length%3===2?R=R.substring(0,R.length-1)+"=":B.length%3===1&&(R=R.substring(0,R.length-2)+"=="),R}function QU(T,B){var R="";if(T&&(R=CE.call(T)),T&&(R==="[object ArrayBuffer]"||T.buffer&&CE.call(T.buffer)==="[object ArrayBuffer]")){var N,L=bp;T instanceof ArrayBuffer?(N=T,L+=qg):(N=T.buffer,R==="[object Int8Array]"?L+=gE:R==="[object Uint8Array]"?L+=yE:R==="[object Uint8ClampedArray]"?L+=xE:R==="[object Int16Array]"?L+=vE:R==="[object Uint16Array]"?L+=_E:R==="[object Int32Array]"?L+=bE:R==="[object Uint32Array]"?L+=wE:R==="[object Float32Array]"?L+=EE:R==="[object Float64Array]"?L+=DE:B(new Error("Failed to get type for BinaryArray"))),B(L+Gg(N))}else if(R==="[object Blob]"){var P=new FileReader;P.onload=function(){var G=ZU+T.type+"~"+Gg(this.result);B(bp+Hg+G)},P.readAsArrayBuffer(T)}else try{B(JSON.stringify(T))}catch(G){console.error("Couldn't convert value into a JSON string: ",T),B(null,G)}}function JU(T){if(T.substring(0,zg)!==bp)return JSON.parse(T);var B=T.substring(SE),R=T.substring(zg,SE),N;if(R===Hg&&hE.test(B)){var L=B.match(hE);N=L[1],B=B.substring(L[0].length)}var P=TE(B);switch(R){case qg:return P;case Hg:return d([P],{type:N});case gE:return new Int8Array(P);case yE:return new Uint8Array(P);case xE:return new Uint8ClampedArray(P);case vE:return new Int16Array(P);case _E:return new Uint16Array(P);case bE:return new Int32Array(P);case wE:return new Uint32Array(P);case EE:return new Float32Array(P);case DE:return new Float64Array(P);default:throw new Error("Unkown type: "+R)}}var Vg={serialize:QU,deserialize:JU,stringToBuffer:TE,bufferToString:Gg};function AE(T,B,R,N){T.executeSql("CREATE TABLE IF NOT EXISTS "+B.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],R,N)}function e5(T){var B=this,R={db:null};if(T)for(var N in T)R[N]=typeof T[N]!="string"?T[N].toString():T[N];var L=new f(function(P,G){try{R.db=openDatabase(R.name,String(R.version),R.description,R.size)}catch(Q){return G(Q)}R.db.transaction(function(Q){AE(Q,R,function(){B._dbInfo=R,P()},function(ee,te){G(te)})},G)});return R.serializer=Vg,L}function zi(T,B,R,N,L,P){T.executeSql(R,N,L,function(G,Q){Q.code===Q.SYNTAX_ERR?G.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[B.storeName],function(ee,te){te.rows.length?P(ee,Q):AE(ee,B,function(){ee.executeSql(R,N,L,P)},P)},P):P(G,Q)},P)}function t5(T,B){var R=this;T=x(T);var N=new f(function(L,P){R.ready().then(function(){var G=R._dbInfo;G.db.transaction(function(Q){zi(Q,G,"SELECT * FROM "+G.storeName+" WHERE key = ? LIMIT 1",[T],function(ee,te){var re=te.rows.length?te.rows.item(0).value:null;re&&(re=G.serializer.deserialize(re)),L(re)},function(ee,te){P(te)})})}).catch(P)});return m(N,B),N}function n5(T,B){var R=this,N=new f(function(L,P){R.ready().then(function(){var G=R._dbInfo;G.db.transaction(function(Q){zi(Q,G,"SELECT * FROM "+G.storeName,[],function(ee,te){for(var re=te.rows,ce=re.length,ge=0;ge0){G(RE.apply(L,[T,ee,R,N-1]));return}Q(ge)}})})}).catch(Q)});return m(P,R),P}function r5(T,B,R){return RE.apply(this,[T,B,R,1])}function i5(T,B){var R=this;T=x(T);var N=new f(function(L,P){R.ready().then(function(){var G=R._dbInfo;G.db.transaction(function(Q){zi(Q,G,"DELETE FROM "+G.storeName+" WHERE key = ?",[T],function(){L()},function(ee,te){P(te)})})}).catch(P)});return m(N,B),N}function s5(T){var B=this,R=new f(function(N,L){B.ready().then(function(){var P=B._dbInfo;P.db.transaction(function(G){zi(G,P,"DELETE FROM "+P.storeName,[],function(){N()},function(Q,ee){L(ee)})})}).catch(L)});return m(R,T),R}function o5(T){var B=this,R=new f(function(N,L){B.ready().then(function(){var P=B._dbInfo;P.db.transaction(function(G){zi(G,P,"SELECT COUNT(key) as c FROM "+P.storeName,[],function(Q,ee){var te=ee.rows.item(0).c;N(te)},function(Q,ee){L(ee)})})}).catch(L)});return m(R,T),R}function a5(T,B){var R=this,N=new f(function(L,P){R.ready().then(function(){var G=R._dbInfo;G.db.transaction(function(Q){zi(Q,G,"SELECT key FROM "+G.storeName+" WHERE id = ? LIMIT 1",[T+1],function(ee,te){var re=te.rows.length?te.rows.item(0).key:null;L(re)},function(ee,te){P(te)})})}).catch(P)});return m(N,B),N}function c5(T){var B=this,R=new f(function(N,L){B.ready().then(function(){var P=B._dbInfo;P.db.transaction(function(G){zi(G,P,"SELECT key FROM "+P.storeName,[],function(Q,ee){for(var te=[],re=0;re '__WebKitDatabaseInfoTable__'",[],function(L,P){for(var G=[],Q=0;Q0}function h5(T){var B=this,R={};if(T)for(var N in T)R[N]=T[N];return R.keyPrefix=kE(T,B._defaultConfig),m5()?(B._dbInfo=R,R.serializer=Vg,f.resolve()):f.reject()}function g5(T){var B=this,R=B.ready().then(function(){for(var N=B._dbInfo.keyPrefix,L=localStorage.length-1;L>=0;L--){var P=localStorage.key(L);P.indexOf(N)===0&&localStorage.removeItem(P)}});return m(R,T),R}function y5(T,B){var R=this;T=x(T);var N=R.ready().then(function(){var L=R._dbInfo,P=localStorage.getItem(L.keyPrefix+T);return P&&(P=L.serializer.deserialize(P)),P});return m(N,B),N}function x5(T,B){var R=this,N=R.ready().then(function(){for(var L=R._dbInfo,P=L.keyPrefix,G=P.length,Q=localStorage.length,ee=1,te=0;te=0;G--){var Q=localStorage.key(G);Q.indexOf(P)===0&&localStorage.removeItem(Q)}}):L=f.reject("Invalid arguments"),m(L,B),L}var S5={_driver:"localStorageWrapper",_initStorage:h5,_support:d5(),iterate:x5,getItem:y5,setItem:E5,removeItem:w5,clear:g5,length:_5,key:v5,keys:b5,dropInstance:D5},C5=function(B,R){return B===R||typeof B=="number"&&typeof R=="number"&&isNaN(B)&&isNaN(R)},T5=function(B,R){for(var N=B.length,L=0;L{c();var Q1e="__lodash_hash_undefined__";function J1e(e){return this.__data__.set(e,Q1e),this}B$.exports=J1e});var N$=F((put,P$)=>{c();function eDe(e){return this.__data__.has(e)}P$.exports=eDe});var L$=F((fut,M$)=>{c();var tDe=dy(),nDe=I$(),rDe=N$();function hg(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new tDe;++t{c();function iDe(e,t){for(var n=-1,r=e==null?0:e.length;++n{c();function sDe(e,t){return e.has(t)}j$.exports=sDe});var jw=F((vut,q$)=>{c();var oDe=L$(),aDe=U$(),cDe=z$(),uDe=1,lDe=2;function pDe(e,t,n,r,i,s){var o=n&uDe,a=e.length,l=t.length;if(a!=l&&!(o&&l>a))return!1;var u=s.get(e),p=s.get(t);if(u&&p)return u==t&&p==e;var d=-1,f=!0,m=n&lDe?new oDe:void 0;for(s.set(e,t),s.set(t,e);++d{c();function dDe(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}H$.exports=dDe});var W$=F((Eut,V$)=>{c();function fDe(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}V$.exports=fDe});var Q$=F((Sut,Z$)=>{c();var K$=Ko(),Y$=By(),mDe=jc(),hDe=jw(),gDe=G$(),yDe=W$(),xDe=1,vDe=2,bDe="[object Boolean]",_De="[object Date]",wDe="[object Error]",EDe="[object Map]",DDe="[object Number]",SDe="[object RegExp]",CDe="[object Set]",TDe="[object String]",ADe="[object Symbol]",RDe="[object ArrayBuffer]",kDe="[object DataView]",X$=K$?K$.prototype:void 0,zw=X$?X$.valueOf:void 0;function ODe(e,t,n,r,i,s,o){switch(n){case kDe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case RDe:return!(e.byteLength!=t.byteLength||!s(new Y$(e),new Y$(t)));case bDe:case _De:case DDe:return mDe(+e,+t);case wDe:return e.name==t.name&&e.message==t.message;case SDe:case TDe:return e==t+"";case EDe:var a=gDe;case CDe:var l=r&xDe;if(a||(a=yDe),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;r|=vDe,o.set(e,t);var p=hDe(a(e),a(t),r,i,s,o);return o.delete(e),p;case ADe:if(zw)return zw.call(e)==zw.call(t)}return!1}Z$.exports=ODe});var tU=F((Tut,eU)=>{c();var J$=Ty(),FDe=1,BDe=Object.prototype,IDe=BDe.hasOwnProperty;function PDe(e,t,n,r,i,s){var o=n&FDe,a=J$(e),l=a.length,u=J$(t),p=u.length;if(l!=p&&!o)return!1;for(var d=l;d--;){var f=a[d];if(!(o?f in t:IDe.call(t,f)))return!1}var m=s.get(e),g=s.get(t);if(m&&g)return m==t&&g==e;var x=!0;s.set(e,t),s.set(t,e);for(var v=o;++d{c();var qw=fy(),NDe=jw(),MDe=Q$(),LDe=tU(),nU=Qc(),rU=Jo(),iU=Cp(),$De=by(),UDe=1,sU="[object Arguments]",oU="[object Array]",gg="[object Object]",jDe=Object.prototype,aU=jDe.hasOwnProperty;function zDe(e,t,n,r,i,s){var o=rU(e),a=rU(t),l=o?oU:nU(e),u=a?oU:nU(t);l=l==sU?gg:l,u=u==sU?gg:u;var p=l==gg,d=u==gg,f=l==u;if(f&&iU(e)){if(!iU(t))return!1;o=!0,p=!1}if(f&&!p)return s||(s=new qw),o||$De(e)?NDe(e,t,n,r,i,s):MDe(e,t,l,n,r,i,s);if(!(n&UDe)){var m=p&&aU.call(e,"__wrapped__"),g=d&&aU.call(t,"__wrapped__");if(m||g){var x=m?e.value():e,v=g?t.value():t;return s||(s=new qw),i(x,v,n,r,s)}}return f?(s||(s=new qw),LDe(e,t,n,r,i,s)):!1}cU.exports=zDe});var fU=F((Out,dU)=>{c();var qDe=uU(),lU=Vi();function pU(e,t,n,r,i){return e===t?!0:e==null||t==null||!lU(e)&&!lU(t)?e!==e&&t!==t:qDe(e,t,n,r,pU,i)}dU.exports=pU});var hU=F((But,mU)=>{c();var HDe=fU();function GDe(e,t){return HDe(e,t)}mU.exports=GDe});var vU=F(($ut,Kw)=>{"use strict";c();var YDe=Object.prototype.hasOwnProperty,Rn="~";function ip(){}Object.create&&(ip.prototype=Object.create(null),new ip().__proto__||(Rn=!1));function XDe(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function xU(e,t,n,r,i){if(typeof n!="function")throw new TypeError("The listener must be a function");var s=new XDe(n,r||e,i),o=Rn?Rn+t:t;return e._events[o]?e._events[o].fn?e._events[o]=[e._events[o],s]:e._events[o].push(s):(e._events[o]=s,e._eventsCount++),e}function xg(e,t){--e._eventsCount===0?e._events=new ip:delete e._events[t]}function dn(){this._events=new ip,this._eventsCount=0}dn.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)YDe.call(n,r)&&t.push(Rn?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t};dn.prototype.listeners=function(t){var n=Rn?Rn+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,s=r.length,o=new Array(s);iUg});module.exports=z5(ESe);c();var qe=require("obsidian"),$g=at(Jc());c();var Hr=require("obsidian"),gi="application/octet-stream",Mp="third-party-sync",YC="third-party-sync-cb",Lp="third-party-sync-onedrive",XC=1e3*60*60*24*80,$p="0.13.27",KC="0.13.26",GV="0.14.6",or=!Hr.Platform.isAndroidApp&&!Hr.Platform.isMobileApp&&(0,Hr.requireApiVersion)(KC)||Hr.Platform.isAndroidApp&&(0,Hr.requireApiVersion)(GV)||Hr.Platform.isMobileApp&&!Hr.Platform.isAndroidApp&&(0,Hr.requireApiVersion)(KC),Us="_debug_remotely_save/",ZC="sync_plans_hist_exported_on_",QC="log_hist_exported_on_";c();var h$=at(Jc());c();function ua(e){let t=e.length;for(;--t>=0;)e[t]=0}var VV=0,MT=1,WV=2,KV=3,YV=258,r0=29,mu=256,ou=mu+1+r0,oa=30,i0=19,LT=2*ou+1,js=15,Iy=16,XV=7,s0=256,$T=16,UT=17,jT=18,Ky=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Gp=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),ZV=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),zT=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),QV=512,xi=new Array((ou+2)*2);ua(xi);var ru=new Array(oa*2);ua(ru);var au=new Array(QV);ua(au);var cu=new Array(YV-KV+1);ua(cu);var o0=new Array(r0);ua(o0);var Vp=new Array(oa);ua(Vp);function Py(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}var qT,HT,GT;function Ny(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}var VT=e=>e<256?au[e]:au[256+(e>>>7)],uu=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Bn=(e,t,n)=>{e.bi_valid>Iy-n?(e.bi_buf|=t<>Iy-e.bi_valid,e.bi_valid+=n-Iy):(e.bi_buf|=t<{Bn(e,n[t*2],n[t*2+1])},WT=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},JV=e=>{e.bi_valid===16?(uu(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},eW=(e,t)=>{let n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,s=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,l=t.stat_desc.max_length,u,p,d,f,m,g,x=0;for(f=0;f<=js;f++)e.bl_count[f]=0;for(n[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;ul&&(f=l,x++),n[p*2+1]=f,!(p>r)&&(e.bl_count[f]++,m=0,p>=a&&(m=o[p-a]),g=n[p*2],e.opt_len+=g*(f+m),s&&(e.static_len+=g*(i[p*2+1]+m)));if(x!==0){do{for(f=l-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[l]--,x-=2}while(x>0);for(f=l;f!==0;f--)for(p=e.bl_count[f];p!==0;)d=e.heap[--u],!(d>r)&&(n[d*2+1]!==f&&(e.opt_len+=(f-n[d*2+1])*n[d*2],n[d*2+1]=f),p--)}},KT=(e,t,n)=>{let r=new Array(js+1),i=0,s,o;for(s=1;s<=js;s++)i=i+n[s-1]<<1,r[s]=i;for(o=0;o<=t;o++){let a=e[o*2+1];a!==0&&(e[o*2]=WT(r[a]++,a))}},tW=()=>{let e,t,n,r,i,s=new Array(js+1);for(n=0,r=0;r>=7;r{let t;for(t=0;t{e.bi_valid>8?uu(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},JC=(e,t,n,r)=>{let i=t*2,s=n*2;return e[i]{let r=e.heap[n],i=n<<1;for(;i<=e.heap_len&&(i{let r,i,s=0,o,a;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+s++]&255,r+=(e.pending_buf[e.sym_buf+s++]&255)<<8,i=e.pending_buf[e.sym_buf+s++],r===0?Vr(e,i,t):(o=cu[i],Vr(e,o+mu+1,t),a=Ky[o],a!==0&&(i-=o0[o],Bn(e,i,a)),r--,o=VT(r),Vr(e,o,n),a=Gp[o],a!==0&&(r-=Vp[o],Bn(e,r,a)));while(s{let n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,s=t.stat_desc.elems,o,a,l=-1,u;for(e.heap_len=0,e.heap_max=LT,o=0;o>1;o>=1;o--)My(e,n,o);u=s;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],My(e,n,1),a=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=a,n[u*2]=n[o*2]+n[a*2],e.depth[u]=(e.depth[o]>=e.depth[a]?e.depth[o]:e.depth[a])+1,n[o*2+1]=n[a*2+1]=u,e.heap[1]=u++,My(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],eW(e,t),KT(n,l,e.bl_count)},tT=(e,t,n)=>{let r,i=-1,s,o=t[1],a=0,l=7,u=4;for(o===0&&(l=138,u=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)s=o,o=t[(r+1)*2+1],!(++a{let r,i=-1,s,o=t[1],a=0,l=7,u=4;for(o===0&&(l=138,u=3),r=0;r<=n;r++)if(s=o,o=t[(r+1)*2+1],!(++a{let t;for(tT(e,e.dyn_ltree,e.l_desc.max_code),tT(e,e.dyn_dtree,e.d_desc.max_code),Yy(e,e.bl_desc),t=i0-1;t>=3&&e.bl_tree[zT[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},rW=(e,t,n,r)=>{let i;for(Bn(e,t-257,5),Bn(e,n-1,5),Bn(e,r-4,4),i=0;i{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return 0;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return 1;for(n=32;n{rT||(tW(),rT=!0),e.l_desc=new Ny(e.dyn_ltree,qT),e.d_desc=new Ny(e.dyn_dtree,HT),e.bl_desc=new Ny(e.bl_tree,GT),e.bi_buf=0,e.bi_valid=0,YT(e)},ZT=(e,t,n,r)=>{Bn(e,(VV<<1)+(r?1:0),3),XT(e),uu(e,n),uu(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},oW=e=>{Bn(e,MT<<1,3),Vr(e,s0,xi),JV(e)},aW=(e,t,n,r)=>{let i,s,o=0;e.level>0?(e.strm.data_type===2&&(e.strm.data_type=iW(e)),Yy(e,e.l_desc),Yy(e,e.d_desc),o=nW(e),i=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=i&&(i=s)):i=s=n+5,n+4<=i&&t!==-1?ZT(e,t,n,r):e.strategy===4||s===i?(Bn(e,(MT<<1)+(r?1:0),3),eT(e,xi,ru)):(Bn(e,(WV<<1)+(r?1:0),3),rW(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),eT(e,e.dyn_ltree,e.dyn_dtree)),YT(e),r&&XT(e)},cW=(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(cu[n]+mu+1)*2]++,e.dyn_dtree[VT(t)*2]++),e.sym_next===e.sym_end),uW=sW,lW=ZT,pW=aW,dW=cW,fW=oW,mW={_tr_init:uW,_tr_stored_block:lW,_tr_flush_block:pW,_tr_tally:dW,_tr_align:fW},hW=(e,t,n,r)=>{let i=e&65535|0,s=e>>>16&65535|0,o=0;for(;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,s=s+i|0;while(--o);i%=65521,s%=65521}return i|s<<16|0},lu=hW,gW=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},yW=new Uint32Array(gW()),xW=(e,t,n,r)=>{let i=yW,s=r+n;e^=-1;for(let o=r;o>>8^i[(e^t[o])&255];return e^-1},Nt=xW,Hs={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Ws={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:vW,_tr_stored_block:Xy,_tr_flush_block:bW,_tr_tally:Yi,_tr_align:_W}=mW,{Z_NO_FLUSH:Xi,Z_PARTIAL_FLUSH:wW,Z_FULL_FLUSH:EW,Z_FINISH:ar,Z_BLOCK:iT,Z_OK:Gt,Z_STREAM_END:sT,Z_STREAM_ERROR:Wr,Z_DATA_ERROR:DW,Z_BUF_ERROR:Ly,Z_DEFAULT_COMPRESSION:SW,Z_FILTERED:CW,Z_HUFFMAN_ONLY:Up,Z_RLE:TW,Z_FIXED:AW,Z_DEFAULT_STRATEGY:RW,Z_UNKNOWN:kW,Z_DEFLATED:Yp}=Ws,OW=9,FW=15,BW=8,IW=29,PW=256,Zy=PW+1+IW,NW=30,MW=19,LW=2*Zy+1,$W=15,Se=3,Ki=258,Kr=Ki+Se+1,UW=32,aa=42,a0=57,Qy=69,Jy=73,e0=91,t0=103,zs=113,tu=666,fn=1,la=2,Gs=3,pa=4,jW=3,qs=(e,t)=>(e.msg=Hs[t],t),oT=e=>e*2-(e>4?9:0),Wi=e=>{let t=e.length;for(;--t>=0;)e[t]=0},zW=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=i?n-i:0;while(--t);t=i,r=t;do n=e.prev[--r],e.prev[r]=n>=i?n-i:0;while(--t)},qW=(e,t,n)=>(t<{let t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},Vn=(e,t)=>{bW(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Gn(e.strm)},Ie=(e,t)=>{e.pending_buf[e.pending++]=t},eu=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},n0=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),e.state.wrap===1?e.adler=lu(e.adler,t,i,n):e.state.wrap===2&&(e.adler=Nt(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},QT=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,s,o=e.prev_length,a=e.nice_match,l=e.strstart>e.w_size-Kr?e.strstart-(e.w_size-Kr):0,u=e.window,p=e.w_mask,d=e.prev,f=e.strstart+Ki,m=u[r+o-1],g=u[r+o];e.prev_length>=e.good_match&&(n>>=2),a>e.lookahead&&(a=e.lookahead);do if(i=t,!(u[i+o]!==g||u[i+o-1]!==m||u[i]!==u[r]||u[++i]!==u[r+1])){r+=2,i++;do;while(u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&ro){if(e.match_start=t,o=s,s>=a)break;m=u[r+o-1],g=u[r+o]}}while((t=d[t&p])>l&&--n!==0);return o<=e.lookahead?o:e.lookahead},ca=e=>{let t=e.w_size,n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Kr)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),zW(e),r+=t),e.strm.avail_in===0)break;if(n=n0(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=Se)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Zi(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Zi(e,e.ins_h,e.window[i+Se-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,s,o=0,a=e.strm.avail_in;do{if(r=65535,s=e.bi_valid+42>>3,e.strm.avail_outi+e.strm.avail_in&&(r=i+e.strm.avail_in),r>s&&(r=s),r>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,Gn(e.strm),i&&(i>r&&(i=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,r-=i),r&&(n0(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(o===0);return a-=e.strm.avail_in,a&&(a>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=a&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-a,e.strm.next_in),e.strstart),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.block_start=e.strstart),e.high_waters&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,s+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),s>e.strm.avail_in&&(s=e.strm.avail_in),s&&(n0(e.strm,e.window,e.strstart,s),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.high_water>3,s=e.pending_buf_size-s>65535?65535:e.pending_buf_size-s,n=s>e.w_size?e.w_size:s,i=e.strstart-e.block_start,(i>=n||(i||t===ar)&&t!==Xi&&e.strm.avail_in===0&&i<=s)&&(r=i>s?s:i,o=t===ar&&e.strm.avail_in===0&&r===i?1:0,Xy(e,e.block_start,r,o),e.block_start+=r,Gn(e.strm)),o?Gs:fn)},$y=(e,t)=>{let n,r;for(;;){if(e.lookahead=Se&&(e.ins_h=Zi(e,e.ins_h,e.window[e.strstart+Se-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-Kr&&(e.match_length=QT(e,n)),e.match_length>=Se)if(r=Yi(e,e.strstart-e.match_start,e.match_length-Se),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Se){e.match_length--;do e.strstart++,e.ins_h=Zi(e,e.ins_h,e.window[e.strstart+Se-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Zi(e,e.ins_h,e.window[e.strstart+1]);else r=Yi(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Vn(e,!1),e.strm.avail_out===0))return fn}return e.insert=e.strstart{let n,r,i;for(;;){if(e.lookahead=Se&&(e.ins_h=Zi(e,e.ins_h,e.window[e.strstart+Se-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Se-1,n!==0&&e.prev_length4096)&&(e.match_length=Se-1)),e.prev_length>=Se&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-Se,r=Yi(e,e.strstart-1-e.prev_match,e.prev_length-Se),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=Zi(e,e.ins_h,e.window[e.strstart+Se-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Se-1,e.strstart++,r&&(Vn(e,!1),e.strm.avail_out===0))return fn}else if(e.match_available){if(r=Yi(e,0,e.window[e.strstart-1]),r&&Vn(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return fn}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=Yi(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let n,r,i,s,o=e.window;for(;;){if(e.lookahead<=Ki){if(ca(e),e.lookahead<=Ki&&t===Xi)return fn;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Se&&e.strstart>0&&(i=e.strstart-1,r=o[i],r===o[++i]&&r===o[++i]&&r===o[++i])){s=e.strstart+Ki;do;while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Se?(n=Yi(e,1,e.match_length-Se),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Yi(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Vn(e,!1),e.strm.avail_out===0))return fn}return e.insert=0,t===ar?(Vn(e,!0),e.strm.avail_out===0?Gs:pa):e.sym_next&&(Vn(e,!1),e.strm.avail_out===0)?fn:la},GW=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(ca(e),e.lookahead===0)){if(t===Xi)return fn;break}if(e.match_length=0,n=Yi(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Vn(e,!1),e.strm.avail_out===0))return fn}return e.insert=0,t===ar?(Vn(e,!0),e.strm.avail_out===0?Gs:pa):e.sym_next&&(Vn(e,!1),e.strm.avail_out===0)?fn:la};function Gr(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var nu=[new Gr(0,0,0,0,JT),new Gr(4,4,8,4,$y),new Gr(4,5,16,8,$y),new Gr(4,6,32,32,$y),new Gr(4,4,16,16,ia),new Gr(8,16,32,32,ia),new Gr(8,16,128,128,ia),new Gr(8,32,128,256,ia),new Gr(32,128,258,1024,ia),new Gr(32,258,258,4096,ia)],VW=e=>{e.window_size=2*e.w_size,Wi(e.head),e.max_lazy_match=nu[e.level].max_lazy,e.good_match=nu[e.level].good_length,e.nice_match=nu[e.level].nice_length,e.max_chain_length=nu[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Se-1,e.match_available=0,e.ins_h=0};function WW(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Yp,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(LW*2),this.dyn_dtree=new Uint16Array((2*NW+1)*2),this.bl_tree=new Uint16Array((2*MW+1)*2),Wi(this.dyn_ltree),Wi(this.dyn_dtree),Wi(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array($W+1),this.heap=new Uint16Array(2*Zy+1),Wi(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Zy+1),Wi(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var hu=e=>{if(!e)return 1;let t=e.state;return!t||t.strm!==e||t.status!==aa&&t.status!==a0&&t.status!==Qy&&t.status!==Jy&&t.status!==e0&&t.status!==t0&&t.status!==zs&&t.status!==tu?1:0},e2=e=>{if(hu(e))return qs(e,Wr);e.total_in=e.total_out=0,e.data_type=kW;let t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?a0:t.wrap?aa:zs,e.adler=t.wrap===2?0:1,t.last_flush=-2,vW(t),Gt},t2=e=>{let t=e2(e);return t===Gt&&VW(e.state),t},KW=(e,t)=>hu(e)||e.state.wrap!==2?Wr:(e.state.gzhead=t,Gt),n2=(e,t,n,r,i,s)=>{if(!e)return Wr;let o=1;if(t===SW&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),i<1||i>OW||n!==Yp||r<8||r>15||t<0||t>9||s<0||s>AW||r===8&&o!==1)return qs(e,Wr);r===8&&(r=9);let a=new WW;return e.state=a,a.strm=e,a.status=aa,a.wrap=o,a.gzhead=null,a.w_bits=r,a.w_size=1<n2(e,t,Yp,FW,BW,RW),XW=(e,t)=>{if(hu(e)||t>iT||t<0)return e?qs(e,Wr):Wr;let n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===tu&&t!==ar)return qs(e,e.avail_out===0?Ly:Wr);let r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(Gn(e),e.avail_out===0)return n.last_flush=-1,Gt}else if(e.avail_in===0&&oT(t)<=oT(r)&&t!==ar)return qs(e,Ly);if(n.status===tu&&e.avail_in!==0)return qs(e,Ly);if(n.status===aa&&n.wrap===0&&(n.status=zs),n.status===aa){let i=Yp+(n.w_bits-8<<4)<<8,s=-1;if(n.strategy>=Up||n.level<2?s=0:n.level<6?s=1:n.level===6?s=2:s=3,i|=s<<6,n.strstart!==0&&(i|=UW),i+=31-i%31,eu(n,i),n.strstart!==0&&(eu(n,e.adler>>>16),eu(n,e.adler&65535)),e.adler=1,n.status=zs,Gn(e),n.pending!==0)return n.last_flush=-1,Gt}if(n.status===a0){if(e.adler=0,Ie(n,31),Ie(n,139),Ie(n,8),n.gzhead)Ie(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Ie(n,n.gzhead.time&255),Ie(n,n.gzhead.time>>8&255),Ie(n,n.gzhead.time>>16&255),Ie(n,n.gzhead.time>>24&255),Ie(n,n.level===9?2:n.strategy>=Up||n.level<2?4:0),Ie(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(Ie(n,n.gzhead.extra.length&255),Ie(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=Nt(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=Qy;else if(Ie(n,0),Ie(n,0),Ie(n,0),Ie(n,0),Ie(n,0),Ie(n,n.level===9?2:n.strategy>=Up||n.level<2?4:0),Ie(n,jW),n.status=zs,Gn(e),n.pending!==0)return n.last_flush=-1,Gt}if(n.status===Qy){if(n.gzhead.extra){let i=n.pending,s=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+s>n.pending_buf_size;){let a=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+a),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>i&&(e.adler=Nt(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex+=a,Gn(e),n.pending!==0)return n.last_flush=-1,Gt;i=0,s-=a}let o=new Uint8Array(n.gzhead.extra);n.pending_buf.set(o.subarray(n.gzindex,n.gzindex+s),n.pending),n.pending+=s,n.gzhead.hcrc&&n.pending>i&&(e.adler=Nt(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=Jy}if(n.status===Jy){if(n.gzhead.name){let i=n.pending,s;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=Nt(e.adler,n.pending_buf,n.pending-i,i)),Gn(e),n.pending!==0)return n.last_flush=-1,Gt;i=0}n.gzindexi&&(e.adler=Nt(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=e0}if(n.status===e0){if(n.gzhead.comment){let i=n.pending,s;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=Nt(e.adler,n.pending_buf,n.pending-i,i)),Gn(e),n.pending!==0)return n.last_flush=-1,Gt;i=0}n.gzindexi&&(e.adler=Nt(e.adler,n.pending_buf,n.pending-i,i))}n.status=t0}if(n.status===t0){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Gn(e),n.pending!==0))return n.last_flush=-1,Gt;Ie(n,e.adler&255),Ie(n,e.adler>>8&255),e.adler=0}if(n.status=zs,Gn(e),n.pending!==0)return n.last_flush=-1,Gt}if(e.avail_in!==0||n.lookahead!==0||t!==Xi&&n.status!==tu){let i=n.level===0?JT(n,t):n.strategy===Up?GW(n,t):n.strategy===TW?HW(n,t):nu[n.level].func(n,t);if((i===Gs||i===pa)&&(n.status=tu),i===fn||i===Gs)return e.avail_out===0&&(n.last_flush=-1),Gt;if(i===la&&(t===wW?_W(n):t!==iT&&(Xy(n,0,0,!1),t===EW&&(Wi(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Gn(e),e.avail_out===0))return n.last_flush=-1,Gt}return t!==ar?Gt:n.wrap<=0?sT:(n.wrap===2?(Ie(n,e.adler&255),Ie(n,e.adler>>8&255),Ie(n,e.adler>>16&255),Ie(n,e.adler>>24&255),Ie(n,e.total_in&255),Ie(n,e.total_in>>8&255),Ie(n,e.total_in>>16&255),Ie(n,e.total_in>>24&255)):(eu(n,e.adler>>>16),eu(n,e.adler&65535)),Gn(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?Gt:sT)},ZW=e=>{if(hu(e))return Wr;let t=e.state.status;return e.state=null,t===zs?qs(e,DW):Gt},QW=(e,t)=>{let n=t.length;if(hu(e))return Wr;let r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==aa||r.lookahead)return Wr;if(i===1&&(e.adler=lu(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(Wi(r.head),r.strstart=0,r.block_start=0,r.insert=0);let l=new Uint8Array(r.w_size);l.set(t.subarray(n-r.w_size,n),0),t=l,n=r.w_size}let s=e.avail_in,o=e.next_in,a=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,ca(r);r.lookahead>=Se;){let l=r.strstart,u=r.lookahead-(Se-1);do r.ins_h=Zi(r,r.ins_h,r.window[l+Se-1]),r.prev[l&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=l,l++;while(--u);r.strstart=l,r.lookahead=Se-1,ca(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=Se-1,r.match_available=0,e.next_in=o,e.input=a,e.avail_in=s,r.wrap=i,Gt},JW=YW,eK=n2,tK=t2,nK=e2,rK=KW,iK=XW,sK=ZW,oK=QW,aK="pako deflate (from Nodeca project)",iu={deflateInit:JW,deflateInit2:eK,deflateReset:tK,deflateResetKeep:nK,deflateSetHeader:rK,deflate:iK,deflateEnd:sK,deflateSetDictionary:oK,deflateInfo:aK},cK=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),uK=function(e){let t=Array.prototype.slice.call(arguments,1);for(;t.length;){let n=t.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(let r in n)cK(n,r)&&(e[r]=n[r])}}return e},lK=e=>{let t=0;for(let r=0,i=e.length;r=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;pu[254]=pu[254]=1;var pK=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,s,o=e.length,a=0;for(i=0;i>>6,t[s++]=128|n&63):n<65536?(t[s++]=224|n>>>12,t[s++]=128|n>>>6&63,t[s++]=128|n&63):(t[s++]=240|n>>>18,t[s++]=128|n>>>12&63,t[s++]=128|n>>>6&63,t[s++]=128|n&63);return t},dK=(e,t)=>{if(t<65534&&e.subarray&&r2)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r{let n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i,s=new Array(n*2);for(i=0,r=0;r4){s[i++]=65533,r+=a-1;continue}for(o&=a===2?31:a===3?15:7;a>1&&r1){s[i++]=65533;continue}o<65536?s[i++]=o:(o-=65536,s[i++]=55296|o>>10&1023,s[i++]=56320|o&1023)}return dK(s,i)},mK=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+pu[e[n]]>t?n:t},du={string2buf:pK,buf2string:fK,utf8border:mK};function hK(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var i2=hK,s2=Object.prototype.toString,{Z_NO_FLUSH:gK,Z_SYNC_FLUSH:yK,Z_FULL_FLUSH:xK,Z_FINISH:vK,Z_OK:Wp,Z_STREAM_END:bK,Z_DEFAULT_COMPRESSION:_K,Z_DEFAULT_STRATEGY:wK,Z_DEFLATED:EK}=Ws;function gu(e){this.options=Xp.assign({level:_K,method:EK,chunkSize:16384,windowBits:15,memLevel:8,strategy:wK},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i2,this.strm.avail_out=0;let n=iu.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==Wp)throw new Error(Hs[n]);if(t.header&&iu.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=du.string2buf(t.dictionary):s2.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=iu.deflateSetDictionary(this.strm,r),n!==Wp)throw new Error(Hs[n]);this._dict_set=!0}}gu.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i,s;if(this.ended)return!1;for(t===~~t?s=t:s=t===!0?vK:gK,typeof e=="string"?n.input=du.string2buf(e):s2.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(s===yK||s===xK)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=iu.deflate(n,s),i===bK)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=iu.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===Wp;if(n.avail_out===0){this.onData(n.output);continue}if(s>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};gu.prototype.onData=function(e){this.chunks.push(e)};gu.prototype.onEnd=function(e){e===Wp&&(this.result=Xp.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function c0(e,t){let n=new gu(t);if(n.push(e,!0),n.err)throw n.msg||Hs[n.err];return n.result}function DK(e,t){return t=t||{},t.raw=!0,c0(e,t)}function SK(e,t){return t=t||{},t.gzip=!0,c0(e,t)}var CK=gu,TK=c0,AK=DK,RK=SK,kK=Ws,OK={Deflate:CK,deflate:TK,deflateRaw:AK,gzip:RK,constants:kK},jp=16209,FK=16191,BK=function(t,n){let r,i,s,o,a,l,u,p,d,f,m,g,x,v,_,w,E,S,A,k,I,M,U,$,W=t.state;r=t.next_in,U=t.input,i=r+(t.avail_in-5),s=t.next_out,$=t.output,o=s-(n-t.avail_out),a=s+(t.avail_out-257),l=W.dmax,u=W.wsize,p=W.whave,d=W.wnext,f=W.window,m=W.hold,g=W.bits,x=W.lencode,v=W.distcode,_=(1<>>24,m>>>=S,g-=S,S=E>>>16&255,S===0)$[s++]=E&65535;else if(S&16){A=E&65535,S&=15,S&&(g>>=S,g-=S),g<15&&(m+=U[r++]<>>24,m>>>=S,g-=S,S=E>>>16&255,S&16){if(k=E&65535,S&=15,gl){t.msg="invalid distance too far back",W.mode=jp;break e}if(m>>>=S,g-=S,S=s-o,k>S){if(S=k-S,S>p&&W.sane){t.msg="invalid distance too far back",W.mode=jp;break e}if(I=0,M=f,d===0){if(I+=u-S,S2;)$[s++]=M[I++],$[s++]=M[I++],$[s++]=M[I++],A-=3;A&&($[s++]=M[I++],A>1&&($[s++]=M[I++]))}else{I=s-k;do $[s++]=$[I++],$[s++]=$[I++],$[s++]=$[I++],A-=3;while(A>2);A&&($[s++]=$[I++],A>1&&($[s++]=$[I++]))}}else if((S&64)===0){E=v[(E&65535)+(m&(1<>3,r-=A,g-=A<<3,m&=(1<{let l=a.bits,u=0,p=0,d=0,f=0,m=0,g=0,x=0,v=0,_=0,w=0,E,S,A,k,I,M=null,U,$=new Uint16Array(sa+1),W=new Uint16Array(sa+1),le=null,J,me,Ae;for(u=0;u<=sa;u++)$[u]=0;for(p=0;p=1&&$[f]===0;f--);if(m>f&&(m=f),f===0)return i[s++]=1<<24|64<<16|0,i[s++]=1<<24|64<<16|0,a.bits=1,0;for(d=1;d0&&(e===uT||f!==1))return-1;for(W[1]=0,u=1;uaT||e===lT&&_>cT)return 1;for(;;){J=u-x,o[p]+1=U?(me=le[o[p]-U],Ae=M[o[p]-U]):(me=96,Ae=0),E=1<>x)+S]=J<<24|me<<16|Ae|0;while(S!==0);for(E=1<>=1;if(E!==0?(w&=E-1,w+=E):w=0,p++,--$[u]===0){if(u===f)break;u=t[n+o[p]]}if(u>m&&(w&k)!==A){for(x===0&&(x=m),I+=d,g=u-x,v=1<aT||e===lT&&_>cT)return 1;A=w&k,i[A]=m<<24|g<<16|I-s|0}}return w!==0&&(i[I+w]=u-x<<24|64<<16|0),a.bits=m,0},su=LK,$K=0,o2=1,a2=2,{Z_FINISH:pT,Z_BLOCK:UK,Z_TREES:zp,Z_OK:Vs,Z_STREAM_END:jK,Z_NEED_DICT:zK,Z_STREAM_ERROR:cr,Z_DATA_ERROR:c2,Z_MEM_ERROR:u2,Z_BUF_ERROR:qK,Z_DEFLATED:dT}=Ws,Zp=16180,fT=16181,mT=16182,hT=16183,gT=16184,yT=16185,xT=16186,vT=16187,bT=16188,_T=16189,Kp=16190,yi=16191,jy=16192,wT=16193,zy=16194,ET=16195,DT=16196,ST=16197,CT=16198,qp=16199,Hp=16200,TT=16201,AT=16202,RT=16203,kT=16204,OT=16205,qy=16206,FT=16207,BT=16208,ct=16209,l2=16210,p2=16211,HK=852,GK=592,VK=15,WK=VK,IT=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function KK(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var Ks=e=>{if(!e)return 1;let t=e.state;return!t||t.strm!==e||t.modep2?1:0},d2=e=>{if(Ks(e))return cr;let t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Zp,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(HK),t.distcode=t.distdyn=new Int32Array(GK),t.sane=1,t.back=-1,Vs},f2=e=>{if(Ks(e))return cr;let t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,d2(e)},m2=(e,t)=>{let n;if(Ks(e))return cr;let r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?cr:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,f2(e))},h2=(e,t)=>{if(!e)return cr;let n=new KK;e.state=n,n.strm=e,n.window=null,n.mode=Zp;let r=m2(e,t);return r!==Vs&&(e.state=null),r},YK=e=>h2(e,WK),PT=!0,Hy,Gy,XK=e=>{if(PT){Hy=new Int32Array(512),Gy=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(su(o2,e.lens,0,288,Hy,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;su(a2,e.lens,0,32,Gy,0,e.work,{bits:5}),PT=!1}e.lencode=Hy,e.lenbits=9,e.distcode=Gy,e.distbits=5},g2=(e,t,n,r)=>{let i,s=e.state;return s.window===null&&(s.wsize=1<=s.wsize?(s.window.set(t.subarray(n-s.wsize,n),0),s.wnext=0,s.whave=s.wsize):(i=s.wsize-s.wnext,i>r&&(i=r),s.window.set(t.subarray(n-r,n-r+i),s.wnext),r-=i,r?(s.window.set(t.subarray(n-r,n),0),s.wnext=r,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave{let n,r,i,s,o,a,l,u,p,d,f,m,g,x,v=0,_,w,E,S,A,k,I,M,U=new Uint8Array(4),$,W,le=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Ks(e)||!e.output||!e.input&&e.avail_in!==0)return cr;n=e.state,n.mode===yi&&(n.mode=jy),o=e.next_out,i=e.output,l=e.avail_out,s=e.next_in,r=e.input,a=e.avail_in,u=n.hold,p=n.bits,d=a,f=l,M=Vs;e:for(;;)switch(n.mode){case Zp:if(n.wrap===0){n.mode=jy;break}for(;p<16;){if(a===0)break e;a--,u+=r[s++]<>>8&255,n.check=Nt(n.check,U,2,0),u=0,p=0,n.mode=fT;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=ct;break}if((u&15)!==dT){e.msg="unknown compression method",n.mode=ct;break}if(u>>>=4,p-=4,I=(u&15)+8,n.wbits===0&&(n.wbits=I),I>15||I>n.wbits){e.msg="invalid window size",n.mode=ct;break}n.dmax=1<>8&1),n.flags&512&&n.wrap&4&&(U[0]=u&255,U[1]=u>>>8&255,n.check=Nt(n.check,U,2,0)),u=0,p=0,n.mode=mT;case mT:for(;p<32;){if(a===0)break e;a--,u+=r[s++]<>>8&255,U[2]=u>>>16&255,U[3]=u>>>24&255,n.check=Nt(n.check,U,4,0)),u=0,p=0,n.mode=hT;case hT:for(;p<16;){if(a===0)break e;a--,u+=r[s++]<>8),n.flags&512&&n.wrap&4&&(U[0]=u&255,U[1]=u>>>8&255,n.check=Nt(n.check,U,2,0)),u=0,p=0,n.mode=gT;case gT:if(n.flags&1024){for(;p<16;){if(a===0)break e;a--,u+=r[s++]<>>8&255,n.check=Nt(n.check,U,2,0)),u=0,p=0}else n.head&&(n.head.extra=null);n.mode=yT;case yT:if(n.flags&1024&&(m=n.length,m>a&&(m=a),m&&(n.head&&(I=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(s,s+m),I)),n.flags&512&&n.wrap&4&&(n.check=Nt(n.check,r,m,s)),a-=m,s+=m,n.length-=m),n.length))break e;n.length=0,n.mode=xT;case xT:if(n.flags&2048){if(a===0)break e;m=0;do I=r[s+m++],n.head&&I&&n.length<65536&&(n.head.name+=String.fromCharCode(I));while(I&&m>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=yi;break;case _T:for(;p<32;){if(a===0)break e;a--,u+=r[s++]<>>=p&7,p-=p&7,n.mode=qy;break}for(;p<3;){if(a===0)break e;a--,u+=r[s++]<>>=1,p-=1,u&3){case 0:n.mode=wT;break;case 1:if(XK(n),n.mode=qp,t===zp){u>>>=2,p-=2;break e}break;case 2:n.mode=DT;break;case 3:e.msg="invalid block type",n.mode=ct}u>>>=2,p-=2;break;case wT:for(u>>>=p&7,p-=p&7;p<32;){if(a===0)break e;a--,u+=r[s++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=ct;break}if(n.length=u&65535,u=0,p=0,n.mode=zy,t===zp)break e;case zy:n.mode=ET;case ET:if(m=n.length,m){if(m>a&&(m=a),m>l&&(m=l),m===0)break e;i.set(r.subarray(s,s+m),o),a-=m,s+=m,l-=m,o+=m,n.length-=m;break}n.mode=yi;break;case DT:for(;p<14;){if(a===0)break e;a--,u+=r[s++]<>>=5,p-=5,n.ndist=(u&31)+1,u>>>=5,p-=5,n.ncode=(u&15)+4,u>>>=4,p-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=ct;break}n.have=0,n.mode=ST;case ST:for(;n.have>>=3,p-=3}for(;n.have<19;)n.lens[le[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,$={bits:n.lenbits},M=su($K,n.lens,0,19,n.lencode,0,n.work,$),n.lenbits=$.bits,M){e.msg="invalid code lengths set",n.mode=ct;break}n.have=0,n.mode=CT;case CT:for(;n.have>>24,w=v>>>16&255,E=v&65535,!(_<=p);){if(a===0)break e;a--,u+=r[s++]<>>=_,p-=_,n.lens[n.have++]=E;else{if(E===16){for(W=_+2;p>>=_,p-=_,n.have===0){e.msg="invalid bit length repeat",n.mode=ct;break}I=n.lens[n.have-1],m=3+(u&3),u>>>=2,p-=2}else if(E===17){for(W=_+3;p>>=_,p-=_,I=0,m=3+(u&7),u>>>=3,p-=3}else{for(W=_+7;p>>=_,p-=_,I=0,m=11+(u&127),u>>>=7,p-=7}if(n.have+m>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=ct;break}for(;m--;)n.lens[n.have++]=I}}if(n.mode===ct)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=ct;break}if(n.lenbits=9,$={bits:n.lenbits},M=su(o2,n.lens,0,n.nlen,n.lencode,0,n.work,$),n.lenbits=$.bits,M){e.msg="invalid literal/lengths set",n.mode=ct;break}if(n.distbits=6,n.distcode=n.distdyn,$={bits:n.distbits},M=su(a2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,$),n.distbits=$.bits,M){e.msg="invalid distances set",n.mode=ct;break}if(n.mode=qp,t===zp)break e;case qp:n.mode=Hp;case Hp:if(a>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=a,n.hold=u,n.bits=p,BK(e,f),o=e.next_out,i=e.output,l=e.avail_out,s=e.next_in,r=e.input,a=e.avail_in,u=n.hold,p=n.bits,n.mode===yi&&(n.back=-1);break}for(n.back=0;v=n.lencode[u&(1<>>24,w=v>>>16&255,E=v&65535,!(_<=p);){if(a===0)break e;a--,u+=r[s++]<>S)],_=v>>>24,w=v>>>16&255,E=v&65535,!(S+_<=p);){if(a===0)break e;a--,u+=r[s++]<>>=S,p-=S,n.back+=S}if(u>>>=_,p-=_,n.back+=_,n.length=E,w===0){n.mode=OT;break}if(w&32){n.back=-1,n.mode=yi;break}if(w&64){e.msg="invalid literal/length code",n.mode=ct;break}n.extra=w&15,n.mode=TT;case TT:if(n.extra){for(W=n.extra;p>>=n.extra,p-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=AT;case AT:for(;v=n.distcode[u&(1<>>24,w=v>>>16&255,E=v&65535,!(_<=p);){if(a===0)break e;a--,u+=r[s++]<>S)],_=v>>>24,w=v>>>16&255,E=v&65535,!(S+_<=p);){if(a===0)break e;a--,u+=r[s++]<>>=S,p-=S,n.back+=S}if(u>>>=_,p-=_,n.back+=_,w&64){e.msg="invalid distance code",n.mode=ct;break}n.offset=E,n.extra=w&15,n.mode=RT;case RT:if(n.extra){for(W=n.extra;p>>=n.extra,p-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=ct;break}n.mode=kT;case kT:if(l===0)break e;if(m=f-l,n.offset>m){if(m=n.offset-m,m>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=ct;break}m>n.wnext?(m-=n.wnext,g=n.wsize-m):g=n.wnext-m,m>n.length&&(m=n.length),x=n.window}else x=i,g=o-n.offset,m=n.length;m>l&&(m=l),l-=m,n.length-=m;do i[o++]=x[g++];while(--m);n.length===0&&(n.mode=Hp);break;case OT:if(l===0)break e;i[o++]=n.length,l--,n.mode=Hp;break;case qy:if(n.wrap){for(;p<32;){if(a===0)break e;a--,u|=r[s++]<{if(Ks(e))return cr;let t=e.state;return t.window&&(t.window=null),e.state=null,Vs},JK=(e,t)=>{if(Ks(e))return cr;let n=e.state;return(n.wrap&2)===0?cr:(n.head=t,t.done=!1,Vs)},eY=(e,t)=>{let n=t.length,r,i,s;return Ks(e)||(r=e.state,r.wrap!==0&&r.mode!==Kp)?cr:r.mode===Kp&&(i=1,i=lu(i,t,n,0),i!==r.check)?c2:(s=g2(e,t,n,n),s?(r.mode=l2,u2):(r.havedict=1,Vs))},tY=f2,nY=m2,rY=d2,iY=YK,sY=h2,oY=ZK,aY=QK,cY=JK,uY=eY,lY="pako inflate (from Nodeca project)",vi={inflateReset:tY,inflateReset2:nY,inflateResetKeep:rY,inflateInit:iY,inflateInit2:sY,inflate:oY,inflateEnd:aY,inflateGetHeader:cY,inflateSetDictionary:uY,inflateInfo:lY};function pY(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var dY=pY,y2=Object.prototype.toString,{Z_NO_FLUSH:fY,Z_FINISH:mY,Z_OK:fu,Z_STREAM_END:Vy,Z_NEED_DICT:Wy,Z_STREAM_ERROR:hY,Z_DATA_ERROR:NT,Z_MEM_ERROR:gY}=Ws;function yu(e){this.options=Xp.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});let t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i2,this.strm.avail_out=0;let n=vi.inflateInit2(this.strm,t.windowBits);if(n!==fu)throw new Error(Hs[n]);if(this.header=new dY,vi.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=du.string2buf(t.dictionary):y2.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=vi.inflateSetDictionary(this.strm,t.dictionary),n!==fu)))throw new Error(Hs[n])}yu.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i=this.options.dictionary,s,o,a;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?mY:fY,y2.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),s=vi.inflate(n,o),s===Wy&&i&&(s=vi.inflateSetDictionary(n,i),s===fu?s=vi.inflate(n,o):s===NT&&(s=Wy));n.avail_in>0&&s===Vy&&n.state.wrap>0&&e[n.next_in]!==0;)vi.inflateReset(n),s=vi.inflate(n,o);switch(s){case hY:case NT:case Wy:case gY:return this.onEnd(s),this.ended=!0,!1}if(a=n.avail_out,n.next_out&&(n.avail_out===0||s===Vy))if(this.options.to==="string"){let l=du.utf8border(n.output,n.next_out),u=n.next_out-l,p=du.buf2string(n.output,l);n.next_out=u,n.avail_out=r-u,u&&n.output.set(n.output.subarray(l,l+u),0),this.onData(p)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(s===fu&&a===0)){if(s===Vy)return s=vi.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};yu.prototype.onData=function(e){this.chunks.push(e)};yu.prototype.onEnd=function(e){e===fu&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Xp.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function u0(e,t){let n=new yu(t);if(n.push(e),n.err)throw n.msg||Hs[n.err];return n.result}function yY(e,t){return t=t||{},t.raw=!0,u0(e,t)}var xY=yu,vY=u0,bY=yY,_Y=u0,wY=Ws,EY={Inflate:xY,inflate:vY,inflateRaw:bY,ungzip:_Y,constants:wY},{Deflate:DY,deflate:SY,deflateRaw:CY,gzip:TY}=OK,{Inflate:AY,inflate:RY,inflateRaw:kY,ungzip:OY}=EY,FY=DY,BY=SY,IY=CY,PY=TY,NY=AY,MY=RY,LY=kY,$Y=OY,UY=Ws,l0={Deflate:FY,deflate:BY,deflateRaw:IY,gzip:PY,Inflate:NY,inflate:MY,inflateRaw:LY,ungzip:$Y,constants:UY};c();c();c();c();var x2=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){var r;(r=e.httpHandler)==null||r.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}),v2=e=>({httpHandler:e.httpHandler()});c();var da;(function(e){e.HTTP="http",e.HTTPS="https"})(da||(da={}));c();c();var Ys;(function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"})(Ys||(Ys={}));c();var xu="__smithy_context";c();var we=class e{constructor(t){C(this,"method");C(this,"protocol");C(this,"hostname");C(this,"port");C(this,"path");C(this,"query");C(this,"headers");C(this,"username");C(this,"password");C(this,"fragment");C(this,"body");this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){let n=new e({...t,headers:{...t.headers}});return n.query&&(n.query=jY(n.query)),n}static isInstance(t){if(!t)return!1;let n=t;return"method"in n&&"protocol"in n&&"hostname"in n&&"path"in n&&typeof n.query=="object"&&typeof n.headers=="object"}clone(){return e.clone(this)}};function jY(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}c();var Vt=class{constructor(t){C(this,"statusCode");C(this,"reason");C(this,"headers");C(this,"body");this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;let n=t;return typeof n.statusCode=="number"&&typeof n.headers=="object"}};function zY(e){return t=>async n=>{var i,s,o,a,l,u;let{request:r}=n;if(e.expectContinueHeader!==!1&&we.isInstance(r)&&r.body&&e.runtime==="node"&&((s=(i=e.requestHandler)==null?void 0:i.constructor)==null?void 0:s.name)!=="FetchHttpHandler"){let p=!0;if(typeof e.expectContinueHeader=="number")try{p=((u=(l=Number((o=r.headers)==null?void 0:o["content-length"]))!=null?l:(a=e.bodyLengthChecker)==null?void 0:a.call(e,r.body))!=null?u:1/0)>=e.expectContinueHeader}catch(d){}else p=!!e.expectContinueHeader;p&&(r.headers.Expect="100-continue")}return t({...n,request:r})}}var qY={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},b2=e=>({applyToStack:t=>{t.add(zY(e),qY)}});c();var bi={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},w2=bi.WHEN_SUPPORTED,Qp={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},E2=bi.WHEN_SUPPORTED,ke;(function(e){e.MD5="MD5",e.CRC32="CRC32",e.CRC32C="CRC32C",e.CRC64NVME="CRC64NVME",e.SHA1="SHA1",e.SHA256="SHA256"})(ke||(ke={}));var _2;(function(e){e.HEADER="header",e.TRAILER="trailer"})(_2||(_2={}));var vu=ke.CRC32;c();c();function D2(e,t,n){return e.$source||(e.$source={}),e.$source[t]=n,e}c();function ut(e,t,n){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=n}c();c();c();var S2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p0=Object.entries(S2).reduce((e,[t,n])=>(e[n]=Number(t),e),{}),C2=S2.split(""),Qi=6,Xs=8,T2=63;var Ar=e=>{let t=e.length/4*3;e.slice(-2)==="=="?t-=2:e.slice(-1)==="="&&t--;let n=new ArrayBuffer(t),r=new DataView(n);for(let i=0;i>=Qi;let a=i/4*3;s>>=o%Xs;let l=Math.floor(o/Xs);for(let u=0;u>p)}}return new Uint8Array(n)};c();Zt();function Wn(e){let t;typeof e=="string"?t=Wt(e):t=e;let n=typeof t=="object"&&typeof t.length=="number",r=typeof t=="object"&&typeof t.byteOffset=="number"&&typeof t.byteLength=="number";if(!n&&!r)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let i="";for(let s=0;s>p]}i+="==".slice(0,4-l)}return i}Zt();var fa=class e extends Uint8Array{static fromString(t,n="utf-8"){if(typeof t=="string")return n==="base64"?e.mutate(Ar(t)):e.mutate(Wt(t));throw new Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}static mutate(t){return Object.setPrototypeOf(t,e.prototype),t}transformToString(t="utf-8"){return t==="base64"?Wn(this):In(this)}};c();var HY=typeof ReadableStream=="function"?ReadableStream:function(){},Jp=class extends HY{};c();c();var bu=e=>{var t;return typeof ReadableStream=="function"&&(((t=e==null?void 0:e.constructor)==null?void 0:t.name)===ReadableStream.name||e instanceof ReadableStream)};var k2=({expectedChecksum:e,checksum:t,source:n,checksumSourceLocation:r,base64Encoder:i})=>{var l,u;if(!bu(n))throw new Error(`@smithy/util-stream: unsupported source type ${(u=(l=n==null?void 0:n.constructor)==null?void 0:l.name)!=null?u:n} in ChecksumStream.`);let s=i!=null?i:Wn;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let o=new TransformStream({start(){},async transform(p,d){t.update(p),d.enqueue(p)},async flush(p){let d=await t.digest(),f=s(d);if(e!==f){let m=new Error(`Checksum mismatch: expected "${e}" but received "${f}" in response header "${r}".`);p.error(m)}else p.terminate()}});n.pipeThrough(o);let a=o.readable;return Object.setPrototypeOf(a,Jp.prototype),a};c();c();var ed=class{constructor(t){C(this,"allocByteArray");C(this,"byteLength",0);C(this,"byteArrays",[]);this.allocByteArray=t}push(t){this.byteArrays.push(t),this.byteLength+=t.byteLength}flush(){if(this.byteArrays.length===1){let r=this.byteArrays[0];return this.reset(),r}let t=this.allocByteArray(this.byteLength),n=0;for(let r=0;rnew Uint8Array(u))],a=-1,l=async u=>{let{value:p,done:d}=await r.read(),f=p;if(d){if(a!==-1){let m=f0(o,a);_u(m)>0&&u.enqueue(m)}u.close()}else{let m=WY(f,!1);if(a!==m&&(a>=0&&u.enqueue(f0(o,a)),a=m),a===-1){u.enqueue(f);return}let g=_u(f);s+=g;let x=_u(o[a]);if(g>=t&&x===0)u.enqueue(f);else{let v=VY(o,a,f);!i&&s>t*2&&(i=!0,n==null||n.warn(`@smithy/util-stream - stream chunk size ${g} is below threshold of ${t}, automatically buffering.`)),v>=t?u.enqueue(f0(o,a)):await l(u)}}};return new ReadableStream({pull:l})}var O2=GY;function VY(e,t,n){switch(t){case 0:return e[0]+=n,_u(e[0]);case 1:case 2:return e[t].push(n),_u(e[t])}}function f0(e,t){switch(t){case 0:let n=e[0];return e[0]="",n;case 1:case 2:return e[t].flush()}throw new Error(`@smithy/util-stream - invalid index ${t} given to flush()`)}function _u(e){var t,n;return(n=(t=e==null?void 0:e.byteLength)!=null?t:e==null?void 0:e.length)!=null?n:0}function WY(e,t=!0){return t&&typeof h.Buffer!="undefined"&&e instanceof h.Buffer?2:e instanceof Uint8Array?1:typeof e=="string"?0:-1}c();var F2=(e,t)=>{let{base64Encoder:n,bodyLengthChecker:r,checksumAlgorithmFn:i,checksumLocationName:s,streamHasher:o}=t,a=n!==void 0&&r!==void 0&&i!==void 0&&s!==void 0&&o!==void 0,l=a?o(i,e):void 0,u=e.getReader();return new ReadableStream({async pull(p){let{value:d,done:f}=await u.read();if(f){if(p.enqueue(`0\r `),a){let m=n(await l);p.enqueue(`${s}:${m}\r `),p.enqueue(`\r `)}p.close()}else p.enqueue(`${(r(d)||0).toString(16)}\r ${d}\r -`)}})};c();async function k2(e,t){var l;let n=0,r=[],i=e.getReader(),s=!1;for(;!s;){let{done:u,value:p}=await i.read();if(p&&(r.push(p),n+=(l=p==null?void 0:p.byteLength)!=null?l:0),n>=t)break;s=u}i.releaseLock();let o=new Uint8Array(Math.min(t,n)),a=0;for(let u of r){if(u.byteLength>o.byteLength-a){o.set(u.subarray(0,o.byteLength-a),a);break}else o.set(u,a);a+=u.length}return o}c();c();c();c();var Kr=e=>encodeURIComponent(e).replace(/[!'()*]/g,NY),NY=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function O2(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=Kr(n),Array.isArray(r))for(let i=0,s=r.length;i{e&&setTimeout(()=>{let r=new Error(`Request did not complete within ${e} ms`);r.name="TimeoutError",n(r)},e)})}var f0={supported:void 0},Qp=class e{constructor(t){S(this,"config");S(this,"configProvider");typeof t=="function"?this.configProvider=t().then(n=>n||{}):(this.config=t!=null?t:{},this.configProvider=Promise.resolve(this.config)),f0.supported===void 0&&(f0.supported=typeof Request!="undefined"&&"keepalive"in d0("https://[::1]"))}static create(t){return typeof(t==null?void 0:t.handle)=="function"?t:new e(t)}destroy(){}async handle(t,{abortSignal:n,requestTimeout:r}={}){var w,D,C;this.config||(this.config=await this.configProvider);let i=r!=null?r:this.config.requestTimeout,s=this.config.keepAlive===!0,o=this.config.credentials;if(n!=null&&n.aborted){let A=B2(n);return Promise.reject(A)}let a=t.path,l=O2(t.query||{});l&&(a+=`?${l}`),t.fragment&&(a+=`#${t.fragment}`);let u="";if(t.username!=null||t.password!=null){let A=(w=t.username)!=null?w:"",k=(D=t.password)!=null?D:"";u=`${A}:${k}@`}let{port:p,method:d}=t,f=`${t.protocol}//${u}${t.hostname}${p?`:${p}`:""}${a}`,m=d==="GET"||d==="HEAD"?void 0:t.body,g={body:m,headers:new Headers(t.headers),method:d,credentials:o};(C=this.config)!=null&&C.cache&&(g.cache=this.config.cache),m&&(g.duplex="half"),typeof AbortController!="undefined"&&(g.signal=n),f0.supported&&(g.keepalive=s),typeof this.config.requestInit=="function"&&Object.assign(g,this.config.requestInit(t));let x=()=>{},v=d0(f,g),_=[fetch(v).then(A=>{let k=A.headers,I={};for(let U of k.entries())I[U[0]]=U[1];return A.body!=null?{response:new Vt({headers:I,reason:A.statusText,statusCode:A.status,body:A.body})}:A.blob().then(U=>({response:new Vt({headers:I,reason:A.statusText,statusCode:A.status,body:U})}))}),F2(i)];return n&&_.push(new Promise((A,k)=>{let I=()=>{let L=B2(n);k(L)};if(typeof n.addEventListener=="function"){let L=n;L.addEventListener("abort",I,{once:!0}),x=()=>L.removeEventListener("abort",I)}else n.onabort=I})),Promise.race(_).finally(x)}updateHttpClientConfig(t,n){this.config=void 0,this.configProvider=this.configProvider.then(r=>(r[t]=n,r))}httpHandlerConfigs(){var t;return(t=this.config)!=null?t:{}}};function B2(e){let t=e&&typeof e=="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let i=new Error("Request aborted");return i.name="AbortError",i.cause=t,i}let r=new Error(String(t));return r.name="AbortError",r}let n=new Error("Request aborted");return n.name="AbortError",n}c();var Jp=async e=>{var t;return typeof Blob=="function"&&e instanceof Blob||((t=e.constructor)==null?void 0:t.name)==="Blob"?Blob.prototype.arrayBuffer!==void 0?new Uint8Array(await e.arrayBuffer()):MY(e):LY(e)};async function MY(e){let t=await $Y(e),n=Tr(t);return new Uint8Array(n)}async function LY(e){let t=[],n=e.getReader(),r=!1,i=0;for(;!r;){let{done:a,value:l}=await n.read();l&&(t.push(l),i+=l.length),r=a}let s=new Uint8Array(i),o=0;for(let a of t)s.set(a,o),o+=a.length;return s}function $Y(e){return new Promise((t,n)=>{let r=new FileReader;r.onloadend=()=>{var a;if(r.readyState!==2)return n(new Error("Reader aborted too early"));let i=(a=r.result)!=null?a:"",s=i.indexOf(","),o=s>-1?s+1:i.length;t(i.substring(o))},r.onabort=()=>n(new Error("Read aborted")),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}c();var I2={},m0={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),I2[e]=t,m0[t]=e}function ed(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let t=new Uint8Array(e.length/2);for(let n=0;n{var i,s;if(!N2(e)&&!gu(e)){let o=((s=(i=e==null?void 0:e.__proto__)==null?void 0:i.constructor)==null?void 0:s.name)||e;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${o}`)}let t=!1,n=async()=>{if(t)throw new Error(P2);return t=!0,await Jp(e)},r=o=>{if(typeof o.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled. -If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return o.stream()};return Object.assign(e,{transformToByteArray:n,transformToString:async o=>{let a=await n();if(o==="base64")return Gn(a);if(o==="hex")return ft(a);if(o===void 0||o==="utf8"||o==="utf-8")return Bn(a);if(typeof TextDecoder=="function")return new TextDecoder(o).decode(a);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(t)throw new Error(P2);if(t=!0,N2(e))return r(e);if(gu(e))return e;throw new Error(`Cannot transform payload to web stream, got ${e}`)}})},N2=e=>typeof Blob=="function"&&e instanceof Blob;c();async function M2(e){return typeof e.stream=="function"&&(e=e.stream()),e.tee()}c();var L2=(e,{requestChecksumRequired:t,requestAlgorithmMember:n,requestChecksumCalculation:r})=>n?e[n]?e[n]:void 0:r===xi.WHEN_SUPPORTED||t?hu:void 0;c();var Ws=e=>e===Ae.MD5?"content-md5":`x-amz-checksum-${e.toLowerCase()}`;c();var $2=(e,t)=>{let n=e.toLowerCase();for(let r of Object.keys(t))if(n===r.toLowerCase())return!0;return!1};c();var U2=(e,t)=>{let n=e.toLowerCase();for(let r of Object.keys(t))if(r.toLowerCase().startsWith(n))return!0;return!1};c();c();var nd=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";var rd=e=>e!==void 0&&typeof e!="string"&&!ArrayBuffer.isView(e)&&!nd(e);c();c();c();var Zi=function(){return Zi=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0&&s[s.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function j2(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function z2(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;rnew TextEncoder().encode(e);c();c();var UY=typeof h.Buffer!="undefined"&&h.Buffer.from?function(e){return h.Buffer.from(e,"utf8")}:h0;function fn(e){return e instanceof Uint8Array?e:typeof e=="string"?UY(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}c();function Yr(e){return typeof e=="string"?e.length===0:e.byteLength===0}c();function xu(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}c();function vu(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),n=0;n>>8^zY[(this.checksum^o)&255]}}catch(a){n={error:a}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e})();var jY=[0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697],zY=vu(jY);c();c();var qY=()=>{let t=new Array(8);for(let n=0;n<8;n++){let r=new Array(512);for(let i=0;i<256;i++){let s=BigInt(i);for(let o=0;o<8*(n+1);o++)s&BigInt(1)?s=s>>BigInt(1)^BigInt("0x9a6c9329ac4bc9b5"):s=s>>BigInt(1);r[i*2]=Number(s>>BigInt(32)&BigInt(0xffffffff)),r[i*2+1]=Number(s&BigInt(0xffffffff))}t[n]=new Uint32Array(r)}return t},x0,bu,v0,b0,_0,w0,E0,D0,S0,HY=()=>{x0||(x0=qY(),[bu,v0,b0,_0,w0,E0,D0,S0]=x0)},id=class{constructor(){S(this,"c1",0);S(this,"c2",0);HY(),this.reset()}update(t){let n=t.length,r=0,i=this.c1,s=this.c2;for(;r+8<=n;){let o=((s^t[r++])&255)<<1,a=((s>>>8^t[r++])&255)<<1,l=((s>>>16^t[r++])&255)<<1,u=((s>>>24^t[r++])&255)<<1,p=((i^t[r++])&255)<<1,d=((i>>>8^t[r++])&255)<<1,f=((i>>>16^t[r++])&255)<<1,m=((i>>>24^t[r++])&255)<<1;i=S0[o]^D0[a]^E0[l]^w0[u]^_0[p]^b0[d]^v0[f]^bu[m],s=S0[o+1]^D0[a+1]^E0[l+1]^w0[u+1]^_0[p+1]^b0[d+1]^v0[f+1]^bu[m+1]}for(;r>>8|(i&255)<<24)>>>0,i=i>>>8^bu[o],s^=bu[o+1],r++}this.c1=i,this.c2=s}async digest(){let t=this.c1^4294967295,n=this.c2^4294967295;return new Uint8Array([t>>>24,t>>>16&255,t>>>8&255,t&255,n>>>24,n>>>16&255,n>>>8&255,n&255])}reset(){this.c1=4294967295,this.c2=4294967295}};c();var C0={CrtCrc64Nvme:null};c();c();c();var T0=(function(){function e(){this.crc32=new Ks}return e.prototype.update=function(t){Yr(t)||this.crc32.update(fn(t))},e.prototype.digest=function(){return vi(this,void 0,void 0,function(){return bi(this,function(t){return[2,xu(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new Ks},e})();var Ks=(function(){function e(){this.checksum=4294967295}return e.prototype.update=function(t){var n,r;try{for(var i=Qi(t),s=i.next();!s.done;s=i.next()){var o=s.value;this.checksum=this.checksum>>>8^VY[(this.checksum^o)&255]}}catch(a){n={error:a}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e})();var GY=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],VY=vu(GY);var q2=()=>T0;c();var H2=[Ae.CRC32,Ae.CRC32C,Ae.CRC64NVME,Ae.SHA1,Ae.SHA256],A0=[Ae.SHA256,Ae.SHA1,Ae.CRC32,Ae.CRC32C,Ae.CRC64NVME];var sd=(e,t)=>{var r,i,s,o,a,l,u;let{checksumAlgorithms:n={}}=t;switch(e){case Ae.MD5:return(r=n==null?void 0:n.MD5)!=null?r:t.md5;case Ae.CRC32:return(i=n==null?void 0:n.CRC32)!=null?i:q2();case Ae.CRC32C:return(s=n==null?void 0:n.CRC32C)!=null?s:y0;case Ae.CRC64NVME:return typeof C0.CrtCrc64Nvme!="function"?(o=n==null?void 0:n.CRC64NVME)!=null?o:id:(a=n==null?void 0:n.CRC64NVME)!=null?a:C0.CrtCrc64Nvme;case Ae.SHA1:return(l=n==null?void 0:n.SHA1)!=null?l:t.sha1;case Ae.SHA256:return(u=n==null?void 0:n.SHA256)!=null?u:t.sha256;default:if(n!=null&&n[e])return n[e];throw new Error(`The checksum algorithm "${e}" is not supported by the client. Select one of ${H2}, or provide an implementation to the client constructor checksums field.`)}};c();Xt();var od=(e,t)=>{let n=new e;return n.update(Ar(t||"")),n.digest()};var G2={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0},V2=(e,t)=>(n,r)=>async i=>{if(!be.isInstance(i.request)||U2("x-amz-checksum-",i.request.headers))return n(i);let{request:s,input:o}=i,{body:a,headers:l}=s,{base64Encoder:u,streamHasher:p}=e,{requestChecksumRequired:d,requestAlgorithmMember:f}=t,m=await e.requestChecksumCalculation(),g=f==null?void 0:f.name,x=f==null?void 0:f.httpHeader;g&&!o[g]&&(m===xi.WHEN_SUPPORTED||d)&&(o[g]=hu,x&&(l[x]=hu));let v=L2(o,{requestChecksumRequired:d,requestAlgorithmMember:f==null?void 0:f.name,requestChecksumCalculation:m}),_=a,w=l;if(v){switch(v){case Ae.CRC32:ut(r,"FLEXIBLE_CHECKSUMS_REQ_CRC32","U");break;case Ae.CRC32C:ut(r,"FLEXIBLE_CHECKSUMS_REQ_CRC32C","V");break;case Ae.CRC64NVME:ut(r,"FLEXIBLE_CHECKSUMS_REQ_CRC64","W");break;case Ae.SHA1:ut(r,"FLEXIBLE_CHECKSUMS_REQ_SHA1","X");break;case Ae.SHA256:ut(r,"FLEXIBLE_CHECKSUMS_REQ_SHA256","Y");break}let D=Ws(v),C=sd(v,e);if(rd(a)){let{getAwsChunkedEncodingStream:A,bodyLengthChecker:k}=e;_=A(typeof e.requestStreamBufferSize=="number"&&e.requestStreamBufferSize>=8*1024?A2(a,e.requestStreamBufferSize,r.logger):a,{base64Encoder:u,bodyLengthChecker:k,checksumLocationName:D,checksumAlgorithmFn:C,streamHasher:p}),w={...l,"content-encoding":l["content-encoding"]?`${l["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":l["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":D},delete w["content-length"]}else if(!$2(D,l)){let A=await od(C,a);w={...l,[D]:u(A)}}}try{return await n({...i,request:{...s,headers:w,body:_}})}catch(D){if(D instanceof Error&&D.name==="InvalidChunkSizeError")try{D.message.endsWith(".")||(D.message+="."),D.message+=" Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream."}catch(C){}throw D}};c();c();var W2={name:"flexibleChecksumsInputMiddleware",toMiddleware:"serializerMiddleware",relation:"before",tags:["BODY_CHECKSUM"],override:!0},K2=(e,t)=>(n,r)=>async i=>{let s=i.input,{requestValidationModeMember:o}=t,a=await e.requestChecksumCalculation(),l=await e.responseChecksumValidation();switch(a){case xi.WHEN_REQUIRED:ut(r,"FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED","a");break;case xi.WHEN_SUPPORTED:ut(r,"FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED","Z");break}switch(l){case Yp.WHEN_REQUIRED:ut(r,"FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED","c");break;case Yp.WHEN_SUPPORTED:ut(r,"FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED","b");break}return o&&!s[o]&&l===Yp.WHEN_SUPPORTED&&(s[o]="ENABLED"),n(i)};c();c();var ad=(e=[])=>{let t=[],n=A0.length;for(let r of e){let i=A0.indexOf(r);i!==-1?t[i]=r:t[n++]=r}return t.filter(Boolean)};c();var Y2=e=>{let t=e.lastIndexOf("-");if(t!==-1){let n=e.slice(t+1);if(!n.startsWith("0")){let r=parseInt(n,10);if(!isNaN(r)&&r>=1&&r<=1e4)return!0}}return!1};c();c();var X2=async(e,{checksumAlgorithmFn:t,base64Encoder:n})=>n(await od(t,e));var Z2=async(e,{config:t,responseAlgorithms:n,logger:r})=>{let i=ad(n),{body:s,headers:o}=e;for(let a of i){let l=Ws(a),u=o[l];if(u){let p;try{p=sd(a,t)}catch(m){if(a===Ae.CRC64NVME){r==null||r.warn(`Skipping ${Ae.CRC64NVME} checksum validation: ${m.message}`);continue}throw m}let{base64Encoder:d}=t;if(rd(s)){e.body=T2({expectedChecksum:u,checksumSourceLocation:l,checksum:new p,source:s,base64Encoder:d});return}let f=await X2(s,{checksumAlgorithmFn:p,base64Encoder:d});if(f===u)break;throw new Error(`Checksum mismatch: expected "${f}" but received "${u}" in response header "${l}".`)}}};var Q2={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0},J2=(e,t)=>(n,r)=>async i=>{var p;if(!be.isInstance(i.request))return n(i);let s=i.input,o=await n(i),a=o.response,{requestValidationModeMember:l,responseAlgorithms:u}=t;if(l&&s[l]==="ENABLED"){let{clientName:d,commandName:f}=r,m=Object.keys((p=e.checksumAlgorithms)!=null?p:{}).filter(v=>{let _=Ws(v);return a.headers[_]!==void 0}),g=ad([...u!=null?u:[],...m]);if(d==="S3Client"&&f==="GetObjectCommand"&&g.every(v=>{let _=Ws(v),w=a.headers[_];return!w||Y2(w)}))return o;await Z2(a,{config:e,responseAlgorithms:g,logger:r.logger})}return o};var Ji=(e,t)=>({applyToStack:n=>{n.add(V2(e,t),G2),n.addRelativeTo(K2(e,t),W2),n.addRelativeTo(J2(e,t),Q2)}});c();c();var mn=e=>e[mu]||(e[mu]={});c();var Zt=e=>{if(typeof e=="function")return e;let t=Promise.resolve(e);return()=>t};var eA=e=>{var i;let{requestChecksumCalculation:t,responseChecksumValidation:n,requestStreamBufferSize:r}=e;return Object.assign(e,{requestChecksumCalculation:Zt(t!=null?t:v2),responseChecksumValidation:Zt(n!=null?n:b2),requestStreamBufferSize:Number(r!=null?r:0),checksumAlgorithms:(i=e.checksumAlgorithms)!=null?i:{}})};c();var WY=e=>t=>async n=>{if(!be.isInstance(n.request))return t(n);let{request:r}=n,{handlerProtocol:i=""}=e.requestHandler.metadata||{};if(i.indexOf("h2")>=0&&!r.headers[":authority"])delete r.headers.host,r.headers[":authority"]=r.hostname+(r.port?":"+r.port:"");else if(!r.headers.host){let s=r.hostname;r.port!=null&&(s+=`:${r.port}`),r.headers.host=s}return t(n)},KY={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},tA=e=>({applyToStack:t=>{t.add(WY(e),KY)}});c();var YY=()=>(e,t)=>async n=>{var r,i;try{let s=await e(n),{clientName:o,commandName:a,logger:l,dynamoDbDocumentClientOptions:u={}}=t,{overrideInputFilterSensitiveLog:p,overrideOutputFilterSensitiveLog:d}=u,f=p!=null?p:t.inputFilterSensitiveLog,m=d!=null?d:t.outputFilterSensitiveLog,{$metadata:g,...x}=s.output;return(r=l==null?void 0:l.info)==null||r.call(l,{clientName:o,commandName:a,input:f(n.input),output:m(x),metadata:g}),s}catch(s){let{clientName:o,commandName:a,logger:l,dynamoDbDocumentClientOptions:u={}}=t,{overrideInputFilterSensitiveLog:p}=u,d=p!=null?p:t.inputFilterSensitiveLog;throw(i=l==null?void 0:l.error)==null||i.call(l,{clientName:o,commandName:a,input:d(n.input),error:s,metadata:s.$metadata}),s}},XY={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},nA=e=>({applyToStack:t=>{t.add(YY(),XY)}});c();c();var rA={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"};c();var iA=()=>e=>async t=>e(t);var sA=e=>({applyToStack:t=>{t.add(iA(),rA)}});c();c();c();c();var Ys=(e,t)=>{let n=[];if(e&&n.push(e),t)for(let r of t)n.push(r);return n},es=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,pa=()=>{let e=[],t=[],n=!1,r=new Set,i=d=>d.sort((f,m)=>oA[m.step]-oA[f.step]||aA[m.priority||"normal"]-aA[f.priority||"normal"]),s=d=>{let f=!1,m=g=>{let x=Ys(g.name,g.aliases);if(x.includes(d)){f=!0;for(let v of x)r.delete(v);return!1}return!0};return e=e.filter(m),t=t.filter(m),f},o=d=>{let f=!1,m=g=>{if(g.middleware===d){f=!0;for(let x of Ys(g.name,g.aliases))r.delete(x);return!1}return!0};return e=e.filter(m),t=t.filter(m),f},a=d=>{var f;return e.forEach(m=>{d.add(m.middleware,{...m})}),t.forEach(m=>{d.addRelativeTo(m.middleware,{...m})}),(f=d.identifyOnResolve)==null||f.call(d,p.identifyOnResolve()),d},l=d=>{let f=[];return d.before.forEach(m=>{m.before.length===0&&m.after.length===0?f.push(m):f.push(...l(m))}),f.push(d),d.after.reverse().forEach(m=>{m.before.length===0&&m.after.length===0?f.push(m):f.push(...l(m))}),f},u=(d=!1)=>{let f=[],m=[],g={};return e.forEach(v=>{let _={...v,before:[],after:[]};for(let w of Ys(_.name,_.aliases))g[w]=_;f.push(_)}),t.forEach(v=>{let _={...v,before:[],after:[]};for(let w of Ys(_.name,_.aliases))g[w]=_;m.push(_)}),m.forEach(v=>{if(v.toMiddleware){let _=g[v.toMiddleware];if(_===void 0){if(d)return;throw new Error(`${v.toMiddleware} is not found when adding ${es(v.name,v.aliases)} middleware ${v.relation} ${v.toMiddleware}`)}v.relation==="after"&&_.after.push(v),v.relation==="before"&&_.before.push(v)}}),i(f).map(l).reduce((v,_)=>(v.push(..._),v),[])},p={add:(d,f={})=>{let{name:m,override:g,aliases:x}=f,v={step:"initialize",priority:"normal",middleware:d,...f},_=Ys(m,x);if(_.length>0){if(_.some(w=>r.has(w))){if(!g)throw new Error(`Duplicate middleware name '${es(m,x)}'`);for(let w of _){let D=e.findIndex(A=>{var k;return A.name===w||((k=A.aliases)==null?void 0:k.some(I=>I===w))});if(D===-1)continue;let C=e[D];if(C.step!==v.step||v.priority!==C.priority)throw new Error(`"${es(C.name,C.aliases)}" middleware with ${C.priority} priority in ${C.step} step cannot be overridden by "${es(m,x)}" middleware with ${v.priority} priority in ${v.step} step.`);e.splice(D,1)}}for(let w of _)r.add(w)}e.push(v)},addRelativeTo:(d,f)=>{let{name:m,override:g,aliases:x}=f,v={middleware:d,...f},_=Ys(m,x);if(_.length>0){if(_.some(w=>r.has(w))){if(!g)throw new Error(`Duplicate middleware name '${es(m,x)}'`);for(let w of _){let D=t.findIndex(A=>{var k;return A.name===w||((k=A.aliases)==null?void 0:k.some(I=>I===w))});if(D===-1)continue;let C=t[D];if(C.toMiddleware!==v.toMiddleware||C.relation!==v.relation)throw new Error(`"${es(C.name,C.aliases)}" middleware ${C.relation} "${C.toMiddleware}" middleware cannot be overridden by "${es(m,x)}" middleware ${v.relation} "${v.toMiddleware}" middleware.`);t.splice(D,1)}}for(let w of _)r.add(w)}t.push(v)},clone:()=>a(pa()),use:d=>{d.applyToStack(p)},remove:d=>typeof d=="string"?s(d):o(d),removeByTag:d=>{let f=!1,m=g=>{let{tags:x,name:v,aliases:_}=g;if(x&&x.includes(d)){let w=Ys(v,_);for(let D of w)r.delete(D);return f=!0,!1}return!0};return e=e.filter(m),t=t.filter(m),f},concat:d=>{var m,g;let f=a(pa());return f.use(d),f.identifyOnResolve(n||f.identifyOnResolve()||((g=(m=d.identifyOnResolve)==null?void 0:m.call(d))!=null?g:!1)),f},applyToStack:a,identify:()=>u(!0).map(d=>{var m;let f=(m=d.step)!=null?m:d.relation+" "+d.toMiddleware;return es(d.name,d.aliases)+" - "+f}),identifyOnResolve(d){return typeof d=="boolean"&&(n=d),n},resolve:(d,f)=>{for(let m of u().map(g=>g.middleware).reverse())d=m(d,f);return n&&console.log(p.identify()),d}};return p},oA={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},aA={high:3,normal:2,low:1};var cd=class{constructor(t){S(this,"config");S(this,"middlewareStack",pa());S(this,"initConfig");S(this,"handlers");this.config=t;let{protocol:n,protocolSettings:r}=t;r&&typeof n=="function"&&(t.protocol=new n(r))}send(t,n,r){let i=typeof n!="function"?n:void 0,s=typeof n=="function"?n:r,o=i===void 0&&this.config.cacheMiddleware===!0,a;if(o){this.handlers||(this.handlers=new WeakMap);let l=this.handlers;l.has(t.constructor)?a=l.get(t.constructor):(a=t.resolveMiddleware(this.middlewareStack,this.config,i),l.set(t.constructor,a))}else delete this.handlers,a=t.resolveMiddleware(this.middlewareStack,this.config,i);if(s)a(t).then(l=>s(null,l.output),l=>s(l)).catch(()=>{});else return a(t).then(l=>l.output)}destroy(){var t,n,r;(r=(n=(t=this.config)==null?void 0:t.requestHandler)==null?void 0:n.destroy)==null||r.call(n),delete this.handlers}};c();var _u=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return la.mutate(e);if(!e)return la.mutate(new Uint8Array);let n=t.streamCollector(e);return la.mutate(await n)};c();function R0(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}c();c();var ud=e=>typeof e=="function"?e():e;c();c();c();var ld=(e,t,n,r,i)=>({name:t,namespace:e,traits:n,input:r,output:i});var cA=e=>(t,n)=>async r=>{var d,f,m,g;let{response:i}=await t(r),{operationSchema:s}=mn(n),[,o,a,l,u,p]=s!=null?s:[];try{let x=await e.protocol.deserializeResponse(ld(o,a,l,u,p),{...e,...n},i);return{response:i,output:x}}catch(x){if(Object.defineProperty(x,"$response",{value:i,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in x)){let v="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{x.message+=` - `+v}catch(_){!n.logger||((f=(d=n.logger)==null?void 0:d.constructor)==null?void 0:f.name)==="NoOpLogger"?console.warn(v):(g=(m=n.logger)==null?void 0:m.warn)==null||g.call(m,v)}typeof x.$responseBodyText!="undefined"&&x.$response&&(x.$response.body=x.$responseBodyText);try{if(Vt.isInstance(i)){let{headers:_={}}=i,w=Object.entries(_);x.$metadata={httpStatusCode:i.statusCode,requestId:k0(/^x-[\w-]+-request-?id$/,w),extendedRequestId:k0(/^x-[\w-]+-id-2$/,w),cfId:k0(/^x-[\w-]+-cf-id$/,w)}}}catch(_){}}throw x}},k0=(e,t)=>(t.find(([n])=>n.match(e))||[void 0,void 0])[1];c();c();c();c();function uA(e){let t={};if(e=e.replace(/^\?/,""),e)for(let n of e.split("&")){let[r,i=null]=n.split("=");r=decodeURIComponent(r),i&&(i=decodeURIComponent(i)),r in t?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i}return t}var _i=e=>{if(typeof e=="string")return _i(new URL(e));let{hostname:t,pathname:n,port:r,protocol:i,search:s}=e,o;return s&&(o=uA(s)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:o}};var lA=e=>{if(typeof e=="object"){if("url"in e){let t=_i(e.url);if(e.headers){t.headers={};for(let n in e.headers)t.headers[n.toLowerCase()]=e.headers[n].join(", ")}return t}return e}return _i(e)};var pA=e=>(t,n)=>async r=>{let{operationSchema:i}=mn(n),[,s,o,a,l,u]=i!=null?i:[],p=n.endpointV2?async()=>lA(n.endpointV2):e.endpoint,d=await e.protocol.serializeRequest(ld(s,o,a,l,u),r.input,{...e,...n,endpoint:p});return t({...r,request:d})};var ZY={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},QY={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function dA(e){return{applyToStack:t=>{t.add(pA(e),QY),t.add(cA(e),ZY),e.protocol.setSerdeContext(e)}}}c();c();var O0=[];function wi(e){if(typeof e=="object")return e;if(e=e|0,O0[e])return O0[e];let t={},n=0;for(let r of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(e>>n++&1)===1&&(t[r]=1);return O0[e]=t}var wu={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},F0=[],B0={},ts=class ts{constructor(t,n){S(this,"ref");S(this,"memberName");S(this,"symbol",ts.symbol);S(this,"name");S(this,"schema");S(this,"_isMemberSchema");S(this,"traits");S(this,"memberTraits");S(this,"normalizedTraits");var o;this.ref=t,this.memberName=n;let r=[],i=t,s=t;for(this._isMemberSchema=!1;I0(i);)r.push(i[1]),i=i[0],s=ud(i),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let a=r.length-1;a>=0;--a){let l=r[a];Object.assign(this.memberTraits,wi(l))}}else this.memberTraits=0;if(s instanceof ts){let a=this.memberTraits;Object.assign(this,s),this.memberTraits=Object.assign({},a,s.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=n!=null?n:s.memberName;return}if(this.schema=ud(s),JY(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=(o=this.memberName)!=null?o:String(s),this.traits=0),this._isMemberSchema&&!n)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](t){let n=this.prototype.isPrototypeOf(t);return!n&&typeof t=="object"&&t!==null?t.symbol===this.symbol:n}static of(t){let n=typeof t=="function"||typeof t=="object"&&t!==null;if(typeof t=="number"){if(F0[t])return F0[t]}else if(typeof t=="string"){if(B0[t])return B0[t]}else if(n&&t[wu.ns])return t[wu.ns];let r=ud(t);if(r instanceof ts)return r;if(I0(r)){let[s,o]=r;if(s instanceof ts)return Object.assign(s.getMergedTraits(),wi(o)),s;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}let i=new ts(r);return n?t[wu.ns]=i:typeof r=="string"?B0[r]=i:typeof r=="number"?F0[r]=i:i}getSchema(){let t=this.schema;return Array.isArray(t)&&t[0]===0?t[4]:t}getName(t=!1){let{name:n}=this;return!t&&n&&n.includes("#")?n.split("#")[1]:n||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let t=this.getSchema();return typeof t=="number"?t>=64&&t<128:t[0]===1}isMapSchema(){let t=this.getSchema();return typeof t=="number"?t>=128&&t<=255:t[0]===2}isStructSchema(){let t=this.getSchema();if(typeof t!="object")return!1;let n=t[0];return n===3||n===-3||n===4}isUnionSchema(){let t=this.getSchema();return typeof t!="object"?!1:t[0]===4}isBlobSchema(){let t=this.getSchema();return t===21||t===42}isTimestampSchema(){let t=this.getSchema();return typeof t=="number"&&t>=4&&t<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:t}=this.getMergedTraits();return!!t||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){var t;return(t=this.normalizedTraits)!=null?t:this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()}}getMemberTraits(){return wi(this.memberTraits)}getOwnTraits(){return wi(this.traits)}getKeySchema(){var s;let[t,n]=[this.isDocumentSchema(),this.isMapSchema()];if(!t&&!n)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let r=this.getSchema(),i=t?15:(s=r[4])!=null?s:0;return Eu([i,0],"key")}getValueSchema(){let t=this.getSchema(),[n,r,i]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],s=typeof t=="number"?63&t:t&&typeof t=="object"&&(r||i)?t[3+t[0]]:n?15:void 0;if(s!=null)return Eu([s,0],r?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(t){let n=this.getSchema();if(this.isStructSchema()&&n[4].includes(t)){let r=n[4].indexOf(t),i=n[5][r];return Eu(I0(i)?i:[i,0],t)}if(this.isDocumentSchema())return Eu([15,0],t);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${t}.`)}getMemberSchemas(){let t={};try{for(let[n,r]of this.structIterator())t[n]=r}catch(n){}return t}getEventStreamMember(){if(this.isStructSchema()){for(let[t,n]of this.structIterator())if(n.isStreaming()&&n.isStructSchema())return t}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");let t=this.getSchema(),n=t[4].length,r=t[wu.it];if(r&&n===r.length){yield*r;return}r=Array(n);for(let i=0;iArray.isArray(e)&&e.length===2,JY=e=>Array.isArray(e)&&e.length>=5;c();var Xr=class Xr{constructor(t,n=new Map,r=new Map){S(this,"namespace");S(this,"schemas");S(this,"exceptions");this.namespace=t,this.schemas=n,this.exceptions=r}static for(t){return Xr.registries.has(t)||Xr.registries.set(t,new Xr(t)),Xr.registries.get(t)}copyFrom(t){let{schemas:n,exceptions:r}=this;for(let[i,s]of t.schemas)n.has(i)||n.set(i,s);for(let[i,s]of t.exceptions)r.has(i)||r.set(i,s)}register(t,n){let r=this.normalizeShapeId(t);for(let i of[this,Xr.for(r.split("#")[0])])i.schemas.set(r,n)}getSchema(t){let n=this.normalizeShapeId(t);if(!this.schemas.has(n))throw new Error(`@smithy/core/schema - schema not found for ${n}`);return this.schemas.get(n)}registerError(t,n){let r=t,i=r[1];for(let s of[this,Xr.for(i)])s.schemas.set(i+"#"+r[2],r),s.exceptions.set(r,n)}getErrorCtor(t){let n=t;return this.exceptions.has(n)?this.exceptions.get(n):Xr.for(n[1]).exceptions.get(n)}getBaseException(){for(let t of this.exceptions.keys())if(Array.isArray(t)){let[,n,r]=t,i=n+"#"+r;if(i.startsWith("smithy.ts.sdk.synthetic.")&&i.endsWith("ServiceException"))return t}}find(t){for(let n of this.schemas.values())if(t(n))return n}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(t){return t.includes("#")?t:this.namespace+"#"+t}};S(Xr,"registries",new Map);var Zr=Xr;c();c();var eX=e=>{if(e!=null){if(typeof e=="string"){let t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&oX.warn(sX(`Expected number but observed string: ${e}`)),t}if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},tX=Math.ceil(34028234663852886e22),fA=e=>{let t=eX(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>tX)throw new TypeError(`Expected 32-bit float, got ${e}`);return t},nX=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}};var mA=e=>gA(e,16),hA=e=>gA(e,8),gA=(e,t)=>{let n=nX(e);if(n!==void 0&&rX(n,t)!==n)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return n},rX=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}};var yA=e=>fA(typeof e=="string"?P0(e):e),iX=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,P0=e=>{let t=e.match(iX);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)};var pd=e=>mA(typeof e=="string"?P0(e):e),xA=e=>hA(typeof e=="string"?P0(e):e),sX=e=>String(new TypeError(e).stack||e).split(` +`)}})};c();async function B2(e,t){var l;let n=0,r=[],i=e.getReader(),s=!1;for(;!s;){let{done:u,value:p}=await i.read();if(p&&(r.push(p),n+=(l=p==null?void 0:p.byteLength)!=null?l:0),n>=t)break;s=u}i.releaseLock();let o=new Uint8Array(Math.min(t,n)),a=0;for(let u of r){if(u.byteLength>o.byteLength-a){o.set(u.subarray(0,o.byteLength-a),a);break}else o.set(u,a);a+=u.length}return o}c();c();c();c();var Yr=e=>encodeURIComponent(e).replace(/[!'()*]/g,KY),KY=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function I2(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=Yr(n),Array.isArray(r))for(let i=0,s=r.length;i{e&&setTimeout(()=>{let r=new Error(`Request did not complete within ${e} ms`);r.name="TimeoutError",n(r)},e)})}var h0={supported:void 0},td=class e{constructor(t){C(this,"config");C(this,"configProvider");typeof t=="function"?this.configProvider=t().then(n=>n||{}):(this.config=t!=null?t:{},this.configProvider=Promise.resolve(this.config)),h0.supported===void 0&&(h0.supported=typeof Request!="undefined"&&"keepalive"in m0("https://[::1]"))}static create(t){return typeof(t==null?void 0:t.handle)=="function"?t:new e(t)}destroy(){}async handle(t,{abortSignal:n,requestTimeout:r}={}){var w,E,S;this.config||(this.config=await this.configProvider);let i=r!=null?r:this.config.requestTimeout,s=this.config.keepAlive===!0,o=this.config.credentials;if(n!=null&&n.aborted){let A=N2(n);return Promise.reject(A)}let a=t.path,l=I2(t.query||{});l&&(a+=`?${l}`),t.fragment&&(a+=`#${t.fragment}`);let u="";if(t.username!=null||t.password!=null){let A=(w=t.username)!=null?w:"",k=(E=t.password)!=null?E:"";u=`${A}:${k}@`}let{port:p,method:d}=t,f=`${t.protocol}//${u}${t.hostname}${p?`:${p}`:""}${a}`,m=d==="GET"||d==="HEAD"?void 0:t.body,g={body:m,headers:new Headers(t.headers),method:d,credentials:o};(S=this.config)!=null&&S.cache&&(g.cache=this.config.cache),m&&(g.duplex="half"),typeof AbortController!="undefined"&&(g.signal=n),h0.supported&&(g.keepalive=s),typeof this.config.requestInit=="function"&&Object.assign(g,this.config.requestInit(t));let x=()=>{},v=m0(f,g),_=[fetch(v).then(A=>{let k=A.headers,I={};for(let U of k.entries())I[U[0]]=U[1];return A.body!=null?{response:new Vt({headers:I,reason:A.statusText,statusCode:A.status,body:A.body})}:A.blob().then(U=>({response:new Vt({headers:I,reason:A.statusText,statusCode:A.status,body:U})}))}),P2(i)];return n&&_.push(new Promise((A,k)=>{let I=()=>{let M=N2(n);k(M)};if(typeof n.addEventListener=="function"){let M=n;M.addEventListener("abort",I,{once:!0}),x=()=>M.removeEventListener("abort",I)}else n.onabort=I})),Promise.race(_).finally(x)}updateHttpClientConfig(t,n){this.config=void 0,this.configProvider=this.configProvider.then(r=>(r[t]=n,r))}httpHandlerConfigs(){var t;return(t=this.config)!=null?t:{}}};function N2(e){let t=e&&typeof e=="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let i=new Error("Request aborted");return i.name="AbortError",i.cause=t,i}let r=new Error(String(t));return r.name="AbortError",r}let n=new Error("Request aborted");return n.name="AbortError",n}c();var nd=async e=>{var t;return typeof Blob=="function"&&e instanceof Blob||((t=e.constructor)==null?void 0:t.name)==="Blob"?Blob.prototype.arrayBuffer!==void 0?new Uint8Array(await e.arrayBuffer()):YY(e):XY(e)};async function YY(e){let t=await ZY(e),n=Ar(t);return new Uint8Array(n)}async function XY(e){let t=[],n=e.getReader(),r=!1,i=0;for(;!r;){let{done:a,value:l}=await n.read();l&&(t.push(l),i+=l.length),r=a}let s=new Uint8Array(i),o=0;for(let a of t)s.set(a,o),o+=a.length;return s}function ZY(e){return new Promise((t,n)=>{let r=new FileReader;r.onloadend=()=>{var a;if(r.readyState!==2)return n(new Error("Reader aborted too early"));let i=(a=r.result)!=null?a:"",s=i.indexOf(","),o=s>-1?s+1:i.length;t(i.substring(o))},r.onabort=()=>n(new Error("Read aborted")),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}c();var M2={},g0={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),M2[e]=t,g0[t]=e}function rd(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let t=new Uint8Array(e.length/2);for(let n=0;n{var i,s;if(!$2(e)&&!bu(e)){let o=((s=(i=e==null?void 0:e.__proto__)==null?void 0:i.constructor)==null?void 0:s.name)||e;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${o}`)}let t=!1,n=async()=>{if(t)throw new Error(L2);return t=!0,await nd(e)},r=o=>{if(typeof o.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled. +If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return o.stream()};return Object.assign(e,{transformToByteArray:n,transformToString:async o=>{let a=await n();if(o==="base64")return Wn(a);if(o==="hex")return ft(a);if(o===void 0||o==="utf8"||o==="utf-8")return In(a);if(typeof TextDecoder=="function")return new TextDecoder(o).decode(a);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(t)throw new Error(L2);if(t=!0,$2(e))return r(e);if(bu(e))return e;throw new Error(`Cannot transform payload to web stream, got ${e}`)}})},$2=e=>typeof Blob=="function"&&e instanceof Blob;c();async function U2(e){return typeof e.stream=="function"&&(e=e.stream()),e.tee()}c();var j2=(e,{requestChecksumRequired:t,requestAlgorithmMember:n,requestChecksumCalculation:r})=>n?e[n]?e[n]:void 0:r===bi.WHEN_SUPPORTED||t?vu:void 0;c();var Zs=e=>e===ke.MD5?"content-md5":`x-amz-checksum-${e.toLowerCase()}`;c();var z2=(e,t)=>{let n=e.toLowerCase();for(let r of Object.keys(t))if(n===r.toLowerCase())return!0;return!1};c();var q2=(e,t)=>{let n=e.toLowerCase();for(let r of Object.keys(t))if(r.toLowerCase().startsWith(n))return!0;return!1};c();c();var sd=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";var od=e=>e!==void 0&&typeof e!="string"&&!ArrayBuffer.isView(e)&&!sd(e);c();c();c();var Ji=function(){return Ji=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0&&s[s.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function H2(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function G2(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;rnew TextEncoder().encode(e);c();c();var QY=typeof h.Buffer!="undefined"&&h.Buffer.from?function(e){return h.Buffer.from(e,"utf8")}:y0;function mn(e){return e instanceof Uint8Array?e:typeof e=="string"?QY(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}c();function Xr(e){return typeof e=="string"?e.length===0:e.byteLength===0}c();function wu(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}c();function Eu(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),n=0;n>>8^eX[(this.checksum^o)&255]}}catch(a){n={error:a}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e})();var JY=[0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697],eX=Eu(JY);c();c();var tX=()=>{let t=new Array(8);for(let n=0;n<8;n++){let r=new Array(512);for(let i=0;i<256;i++){let s=BigInt(i);for(let o=0;o<8*(n+1);o++)s&BigInt(1)?s=s>>BigInt(1)^BigInt("0x9a6c9329ac4bc9b5"):s=s>>BigInt(1);r[i*2]=Number(s>>BigInt(32)&BigInt(0xffffffff)),r[i*2+1]=Number(s&BigInt(0xffffffff))}t[n]=new Uint32Array(r)}return t},b0,Du,_0,w0,E0,D0,S0,C0,T0,nX=()=>{b0||(b0=tX(),[Du,_0,w0,E0,D0,S0,C0,T0]=b0)},ad=class{constructor(){C(this,"c1",0);C(this,"c2",0);nX(),this.reset()}update(t){let n=t.length,r=0,i=this.c1,s=this.c2;for(;r+8<=n;){let o=((s^t[r++])&255)<<1,a=((s>>>8^t[r++])&255)<<1,l=((s>>>16^t[r++])&255)<<1,u=((s>>>24^t[r++])&255)<<1,p=((i^t[r++])&255)<<1,d=((i>>>8^t[r++])&255)<<1,f=((i>>>16^t[r++])&255)<<1,m=((i>>>24^t[r++])&255)<<1;i=T0[o]^C0[a]^S0[l]^D0[u]^E0[p]^w0[d]^_0[f]^Du[m],s=T0[o+1]^C0[a+1]^S0[l+1]^D0[u+1]^E0[p+1]^w0[d+1]^_0[f+1]^Du[m+1]}for(;r>>8|(i&255)<<24)>>>0,i=i>>>8^Du[o],s^=Du[o+1],r++}this.c1=i,this.c2=s}async digest(){let t=this.c1^4294967295,n=this.c2^4294967295;return new Uint8Array([t>>>24,t>>>16&255,t>>>8&255,t&255,n>>>24,n>>>16&255,n>>>8&255,n&255])}reset(){this.c1=4294967295,this.c2=4294967295}};c();var A0={CrtCrc64Nvme:null};c();c();c();var R0=(function(){function e(){this.crc32=new Qs}return e.prototype.update=function(t){Xr(t)||this.crc32.update(mn(t))},e.prototype.digest=function(){return _i(this,void 0,void 0,function(){return wi(this,function(t){return[2,wu(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new Qs},e})();var Qs=(function(){function e(){this.checksum=4294967295}return e.prototype.update=function(t){var n,r;try{for(var i=es(t),s=i.next();!s.done;s=i.next()){var o=s.value;this.checksum=this.checksum>>>8^iX[(this.checksum^o)&255]}}catch(a){n={error:a}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e})();var rX=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],iX=Eu(rX);var V2=()=>R0;c();var W2=[ke.CRC32,ke.CRC32C,ke.CRC64NVME,ke.SHA1,ke.SHA256],k0=[ke.SHA256,ke.SHA1,ke.CRC32,ke.CRC32C,ke.CRC64NVME];var cd=(e,t)=>{var r,i,s,o,a,l,u;let{checksumAlgorithms:n={}}=t;switch(e){case ke.MD5:return(r=n==null?void 0:n.MD5)!=null?r:t.md5;case ke.CRC32:return(i=n==null?void 0:n.CRC32)!=null?i:V2();case ke.CRC32C:return(s=n==null?void 0:n.CRC32C)!=null?s:v0;case ke.CRC64NVME:return typeof A0.CrtCrc64Nvme!="function"?(o=n==null?void 0:n.CRC64NVME)!=null?o:ad:(a=n==null?void 0:n.CRC64NVME)!=null?a:A0.CrtCrc64Nvme;case ke.SHA1:return(l=n==null?void 0:n.SHA1)!=null?l:t.sha1;case ke.SHA256:return(u=n==null?void 0:n.SHA256)!=null?u:t.sha256;default:if(n!=null&&n[e])return n[e];throw new Error(`The checksum algorithm "${e}" is not supported by the client. Select one of ${W2}, or provide an implementation to the client constructor checksums field.`)}};c();Zt();var ud=(e,t)=>{let n=new e;return n.update(Rr(t||"")),n.digest()};var K2={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0},Y2=(e,t)=>(n,r)=>async i=>{if(!we.isInstance(i.request)||q2("x-amz-checksum-",i.request.headers))return n(i);let{request:s,input:o}=i,{body:a,headers:l}=s,{base64Encoder:u,streamHasher:p}=e,{requestChecksumRequired:d,requestAlgorithmMember:f}=t,m=await e.requestChecksumCalculation(),g=f==null?void 0:f.name,x=f==null?void 0:f.httpHeader;g&&!o[g]&&(m===bi.WHEN_SUPPORTED||d)&&(o[g]=vu,x&&(l[x]=vu));let v=j2(o,{requestChecksumRequired:d,requestAlgorithmMember:f==null?void 0:f.name,requestChecksumCalculation:m}),_=a,w=l;if(v){switch(v){case ke.CRC32:ut(r,"FLEXIBLE_CHECKSUMS_REQ_CRC32","U");break;case ke.CRC32C:ut(r,"FLEXIBLE_CHECKSUMS_REQ_CRC32C","V");break;case ke.CRC64NVME:ut(r,"FLEXIBLE_CHECKSUMS_REQ_CRC64","W");break;case ke.SHA1:ut(r,"FLEXIBLE_CHECKSUMS_REQ_SHA1","X");break;case ke.SHA256:ut(r,"FLEXIBLE_CHECKSUMS_REQ_SHA256","Y");break}let E=Zs(v),S=cd(v,e);if(od(a)){let{getAwsChunkedEncodingStream:A,bodyLengthChecker:k}=e;_=A(typeof e.requestStreamBufferSize=="number"&&e.requestStreamBufferSize>=8*1024?O2(a,e.requestStreamBufferSize,r.logger):a,{base64Encoder:u,bodyLengthChecker:k,checksumLocationName:E,checksumAlgorithmFn:S,streamHasher:p}),w={...l,"content-encoding":l["content-encoding"]?`${l["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":l["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":E},delete w["content-length"]}else if(!z2(E,l)){let A=await ud(S,a);w={...l,[E]:u(A)}}}try{return await n({...i,request:{...s,headers:w,body:_}})}catch(E){if(E instanceof Error&&E.name==="InvalidChunkSizeError")try{E.message.endsWith(".")||(E.message+="."),E.message+=" Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream."}catch(S){}throw E}};c();c();var X2={name:"flexibleChecksumsInputMiddleware",toMiddleware:"serializerMiddleware",relation:"before",tags:["BODY_CHECKSUM"],override:!0},Z2=(e,t)=>(n,r)=>async i=>{let s=i.input,{requestValidationModeMember:o}=t,a=await e.requestChecksumCalculation(),l=await e.responseChecksumValidation();switch(a){case bi.WHEN_REQUIRED:ut(r,"FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED","a");break;case bi.WHEN_SUPPORTED:ut(r,"FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED","Z");break}switch(l){case Qp.WHEN_REQUIRED:ut(r,"FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED","c");break;case Qp.WHEN_SUPPORTED:ut(r,"FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED","b");break}return o&&!s[o]&&l===Qp.WHEN_SUPPORTED&&(s[o]="ENABLED"),n(i)};c();c();var ld=(e=[])=>{let t=[],n=k0.length;for(let r of e){let i=k0.indexOf(r);i!==-1?t[i]=r:t[n++]=r}return t.filter(Boolean)};c();var Q2=e=>{let t=e.lastIndexOf("-");if(t!==-1){let n=e.slice(t+1);if(!n.startsWith("0")){let r=parseInt(n,10);if(!isNaN(r)&&r>=1&&r<=1e4)return!0}}return!1};c();c();var J2=async(e,{checksumAlgorithmFn:t,base64Encoder:n})=>n(await ud(t,e));var eA=async(e,{config:t,responseAlgorithms:n,logger:r})=>{let i=ld(n),{body:s,headers:o}=e;for(let a of i){let l=Zs(a),u=o[l];if(u){let p;try{p=cd(a,t)}catch(m){if(a===ke.CRC64NVME){r==null||r.warn(`Skipping ${ke.CRC64NVME} checksum validation: ${m.message}`);continue}throw m}let{base64Encoder:d}=t;if(od(s)){e.body=k2({expectedChecksum:u,checksumSourceLocation:l,checksum:new p,source:s,base64Encoder:d});return}let f=await J2(s,{checksumAlgorithmFn:p,base64Encoder:d});if(f===u)break;throw new Error(`Checksum mismatch: expected "${f}" but received "${u}" in response header "${l}".`)}}};var tA={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0},nA=(e,t)=>(n,r)=>async i=>{var p;if(!we.isInstance(i.request))return n(i);let s=i.input,o=await n(i),a=o.response,{requestValidationModeMember:l,responseAlgorithms:u}=t;if(l&&s[l]==="ENABLED"){let{clientName:d,commandName:f}=r,m=Object.keys((p=e.checksumAlgorithms)!=null?p:{}).filter(v=>{let _=Zs(v);return a.headers[_]!==void 0}),g=ld([...u!=null?u:[],...m]);if(d==="S3Client"&&f==="GetObjectCommand"&&g.every(v=>{let _=Zs(v),w=a.headers[_];return!w||Q2(w)}))return o;await eA(a,{config:e,responseAlgorithms:g,logger:r.logger})}return o};var ts=(e,t)=>({applyToStack:n=>{n.add(Y2(e,t),K2),n.addRelativeTo(Z2(e,t),X2),n.addRelativeTo(nA(e,t),tA)}});c();c();var hn=e=>e[xu]||(e[xu]={});c();var Qt=e=>{if(typeof e=="function")return e;let t=Promise.resolve(e);return()=>t};var rA=e=>{var i;let{requestChecksumCalculation:t,responseChecksumValidation:n,requestStreamBufferSize:r}=e;return Object.assign(e,{requestChecksumCalculation:Qt(t!=null?t:w2),responseChecksumValidation:Qt(n!=null?n:E2),requestStreamBufferSize:Number(r!=null?r:0),checksumAlgorithms:(i=e.checksumAlgorithms)!=null?i:{}})};c();var sX=e=>t=>async n=>{if(!we.isInstance(n.request))return t(n);let{request:r}=n,{handlerProtocol:i=""}=e.requestHandler.metadata||{};if(i.indexOf("h2")>=0&&!r.headers[":authority"])delete r.headers.host,r.headers[":authority"]=r.hostname+(r.port?":"+r.port:"");else if(!r.headers.host){let s=r.hostname;r.port!=null&&(s+=`:${r.port}`),r.headers.host=s}return t(n)},oX={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},iA=e=>({applyToStack:t=>{t.add(sX(e),oX)}});c();var aX=()=>(e,t)=>async n=>{var r,i;try{let s=await e(n),{clientName:o,commandName:a,logger:l,dynamoDbDocumentClientOptions:u={}}=t,{overrideInputFilterSensitiveLog:p,overrideOutputFilterSensitiveLog:d}=u,f=p!=null?p:t.inputFilterSensitiveLog,m=d!=null?d:t.outputFilterSensitiveLog,{$metadata:g,...x}=s.output;return(r=l==null?void 0:l.info)==null||r.call(l,{clientName:o,commandName:a,input:f(n.input),output:m(x),metadata:g}),s}catch(s){let{clientName:o,commandName:a,logger:l,dynamoDbDocumentClientOptions:u={}}=t,{overrideInputFilterSensitiveLog:p}=u,d=p!=null?p:t.inputFilterSensitiveLog;throw(i=l==null?void 0:l.error)==null||i.call(l,{clientName:o,commandName:a,input:d(n.input),error:s,metadata:s.$metadata}),s}},cX={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},sA=e=>({applyToStack:t=>{t.add(aX(),cX)}});c();c();var oA={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"};c();var aA=()=>e=>async t=>e(t);var cA=e=>({applyToStack:t=>{t.add(aA(),oA)}});c();c();c();c();var Js=(e,t)=>{let n=[];if(e&&n.push(e),t)for(let r of t)n.push(r);return n},ns=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,ma=()=>{let e=[],t=[],n=!1,r=new Set,i=d=>d.sort((f,m)=>uA[m.step]-uA[f.step]||lA[m.priority||"normal"]-lA[f.priority||"normal"]),s=d=>{let f=!1,m=g=>{let x=Js(g.name,g.aliases);if(x.includes(d)){f=!0;for(let v of x)r.delete(v);return!1}return!0};return e=e.filter(m),t=t.filter(m),f},o=d=>{let f=!1,m=g=>{if(g.middleware===d){f=!0;for(let x of Js(g.name,g.aliases))r.delete(x);return!1}return!0};return e=e.filter(m),t=t.filter(m),f},a=d=>{var f;return e.forEach(m=>{d.add(m.middleware,{...m})}),t.forEach(m=>{d.addRelativeTo(m.middleware,{...m})}),(f=d.identifyOnResolve)==null||f.call(d,p.identifyOnResolve()),d},l=d=>{let f=[];return d.before.forEach(m=>{m.before.length===0&&m.after.length===0?f.push(m):f.push(...l(m))}),f.push(d),d.after.reverse().forEach(m=>{m.before.length===0&&m.after.length===0?f.push(m):f.push(...l(m))}),f},u=(d=!1)=>{let f=[],m=[],g={};return e.forEach(v=>{let _={...v,before:[],after:[]};for(let w of Js(_.name,_.aliases))g[w]=_;f.push(_)}),t.forEach(v=>{let _={...v,before:[],after:[]};for(let w of Js(_.name,_.aliases))g[w]=_;m.push(_)}),m.forEach(v=>{if(v.toMiddleware){let _=g[v.toMiddleware];if(_===void 0){if(d)return;throw new Error(`${v.toMiddleware} is not found when adding ${ns(v.name,v.aliases)} middleware ${v.relation} ${v.toMiddleware}`)}v.relation==="after"&&_.after.push(v),v.relation==="before"&&_.before.push(v)}}),i(f).map(l).reduce((v,_)=>(v.push(..._),v),[])},p={add:(d,f={})=>{let{name:m,override:g,aliases:x}=f,v={step:"initialize",priority:"normal",middleware:d,...f},_=Js(m,x);if(_.length>0){if(_.some(w=>r.has(w))){if(!g)throw new Error(`Duplicate middleware name '${ns(m,x)}'`);for(let w of _){let E=e.findIndex(A=>{var k;return A.name===w||((k=A.aliases)==null?void 0:k.some(I=>I===w))});if(E===-1)continue;let S=e[E];if(S.step!==v.step||v.priority!==S.priority)throw new Error(`"${ns(S.name,S.aliases)}" middleware with ${S.priority} priority in ${S.step} step cannot be overridden by "${ns(m,x)}" middleware with ${v.priority} priority in ${v.step} step.`);e.splice(E,1)}}for(let w of _)r.add(w)}e.push(v)},addRelativeTo:(d,f)=>{let{name:m,override:g,aliases:x}=f,v={middleware:d,...f},_=Js(m,x);if(_.length>0){if(_.some(w=>r.has(w))){if(!g)throw new Error(`Duplicate middleware name '${ns(m,x)}'`);for(let w of _){let E=t.findIndex(A=>{var k;return A.name===w||((k=A.aliases)==null?void 0:k.some(I=>I===w))});if(E===-1)continue;let S=t[E];if(S.toMiddleware!==v.toMiddleware||S.relation!==v.relation)throw new Error(`"${ns(S.name,S.aliases)}" middleware ${S.relation} "${S.toMiddleware}" middleware cannot be overridden by "${ns(m,x)}" middleware ${v.relation} "${v.toMiddleware}" middleware.`);t.splice(E,1)}}for(let w of _)r.add(w)}t.push(v)},clone:()=>a(ma()),use:d=>{d.applyToStack(p)},remove:d=>typeof d=="string"?s(d):o(d),removeByTag:d=>{let f=!1,m=g=>{let{tags:x,name:v,aliases:_}=g;if(x&&x.includes(d)){let w=Js(v,_);for(let E of w)r.delete(E);return f=!0,!1}return!0};return e=e.filter(m),t=t.filter(m),f},concat:d=>{var m,g;let f=a(ma());return f.use(d),f.identifyOnResolve(n||f.identifyOnResolve()||((g=(m=d.identifyOnResolve)==null?void 0:m.call(d))!=null?g:!1)),f},applyToStack:a,identify:()=>u(!0).map(d=>{var m;let f=(m=d.step)!=null?m:d.relation+" "+d.toMiddleware;return ns(d.name,d.aliases)+" - "+f}),identifyOnResolve(d){return typeof d=="boolean"&&(n=d),n},resolve:(d,f)=>{for(let m of u().map(g=>g.middleware).reverse())d=m(d,f);return n&&console.log(p.identify()),d}};return p},uA={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},lA={high:3,normal:2,low:1};var pd=class{constructor(t){C(this,"config");C(this,"middlewareStack",ma());C(this,"initConfig");C(this,"handlers");this.config=t;let{protocol:n,protocolSettings:r}=t;r&&typeof n=="function"&&(t.protocol=new n(r))}send(t,n,r){let i=typeof n!="function"?n:void 0,s=typeof n=="function"?n:r,o=i===void 0&&this.config.cacheMiddleware===!0,a;if(o){this.handlers||(this.handlers=new WeakMap);let l=this.handlers;l.has(t.constructor)?a=l.get(t.constructor):(a=t.resolveMiddleware(this.middlewareStack,this.config,i),l.set(t.constructor,a))}else delete this.handlers,a=t.resolveMiddleware(this.middlewareStack,this.config,i);if(s)a(t).then(l=>s(null,l.output),l=>s(l)).catch(()=>{});else return a(t).then(l=>l.output)}destroy(){var t,n,r;(r=(n=(t=this.config)==null?void 0:t.requestHandler)==null?void 0:n.destroy)==null||r.call(n),delete this.handlers}};c();var Su=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return fa.mutate(e);if(!e)return fa.mutate(new Uint8Array);let n=t.streamCollector(e);return fa.mutate(await n)};c();function O0(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}c();c();var dd=e=>typeof e=="function"?e():e;c();c();c();var fd=(e,t,n,r,i)=>({name:t,namespace:e,traits:n,input:r,output:i});var pA=e=>(t,n)=>async r=>{var d,f,m,g;let{response:i}=await t(r),{operationSchema:s}=hn(n),[,o,a,l,u,p]=s!=null?s:[];try{let x=await e.protocol.deserializeResponse(fd(o,a,l,u,p),{...e,...n},i);return{response:i,output:x}}catch(x){if(Object.defineProperty(x,"$response",{value:i,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in x)){let v="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{x.message+=` + `+v}catch(_){!n.logger||((f=(d=n.logger)==null?void 0:d.constructor)==null?void 0:f.name)==="NoOpLogger"?console.warn(v):(g=(m=n.logger)==null?void 0:m.warn)==null||g.call(m,v)}typeof x.$responseBodyText!="undefined"&&x.$response&&(x.$response.body=x.$responseBodyText);try{if(Vt.isInstance(i)){let{headers:_={}}=i,w=Object.entries(_);x.$metadata={httpStatusCode:i.statusCode,requestId:F0(/^x-[\w-]+-request-?id$/,w),extendedRequestId:F0(/^x-[\w-]+-id-2$/,w),cfId:F0(/^x-[\w-]+-cf-id$/,w)}}}catch(_){}}throw x}},F0=(e,t)=>(t.find(([n])=>n.match(e))||[void 0,void 0])[1];c();c();c();c();function dA(e){let t={};if(e=e.replace(/^\?/,""),e)for(let n of e.split("&")){let[r,i=null]=n.split("=");r=decodeURIComponent(r),i&&(i=decodeURIComponent(i)),r in t?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i}return t}var Ei=e=>{if(typeof e=="string")return Ei(new URL(e));let{hostname:t,pathname:n,port:r,protocol:i,search:s}=e,o;return s&&(o=dA(s)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:o}};var fA=e=>{if(typeof e=="object"){if("url"in e){let t=Ei(e.url);if(e.headers){t.headers={};for(let n in e.headers)t.headers[n.toLowerCase()]=e.headers[n].join(", ")}return t}return e}return Ei(e)};var mA=e=>(t,n)=>async r=>{let{operationSchema:i}=hn(n),[,s,o,a,l,u]=i!=null?i:[],p=n.endpointV2?async()=>fA(n.endpointV2):e.endpoint,d=await e.protocol.serializeRequest(fd(s,o,a,l,u),r.input,{...e,...n,endpoint:p});return t({...r,request:d})};var uX={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},lX={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function hA(e){return{applyToStack:t=>{t.add(mA(e),lX),t.add(pA(e),uX),e.protocol.setSerdeContext(e)}}}c();c();var B0=[];function Di(e){if(typeof e=="object")return e;if(e=e|0,B0[e])return B0[e];let t={},n=0;for(let r of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(e>>n++&1)===1&&(t[r]=1);return B0[e]=t}var Cu={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},I0=[],P0={},rs=class rs{constructor(t,n){C(this,"ref");C(this,"memberName");C(this,"symbol",rs.symbol);C(this,"name");C(this,"schema");C(this,"_isMemberSchema");C(this,"traits");C(this,"memberTraits");C(this,"normalizedTraits");var o;this.ref=t,this.memberName=n;let r=[],i=t,s=t;for(this._isMemberSchema=!1;N0(i);)r.push(i[1]),i=i[0],s=dd(i),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let a=r.length-1;a>=0;--a){let l=r[a];Object.assign(this.memberTraits,Di(l))}}else this.memberTraits=0;if(s instanceof rs){let a=this.memberTraits;Object.assign(this,s),this.memberTraits=Object.assign({},a,s.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=n!=null?n:s.memberName;return}if(this.schema=dd(s),pX(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=(o=this.memberName)!=null?o:String(s),this.traits=0),this._isMemberSchema&&!n)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](t){let n=this.prototype.isPrototypeOf(t);return!n&&typeof t=="object"&&t!==null?t.symbol===this.symbol:n}static of(t){let n=typeof t=="function"||typeof t=="object"&&t!==null;if(typeof t=="number"){if(I0[t])return I0[t]}else if(typeof t=="string"){if(P0[t])return P0[t]}else if(n&&t[Cu.ns])return t[Cu.ns];let r=dd(t);if(r instanceof rs)return r;if(N0(r)){let[s,o]=r;if(s instanceof rs)return Object.assign(s.getMergedTraits(),Di(o)),s;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}let i=new rs(r);return n?t[Cu.ns]=i:typeof r=="string"?P0[r]=i:typeof r=="number"?I0[r]=i:i}getSchema(){let t=this.schema;return Array.isArray(t)&&t[0]===0?t[4]:t}getName(t=!1){let{name:n}=this;return!t&&n&&n.includes("#")?n.split("#")[1]:n||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let t=this.getSchema();return typeof t=="number"?t>=64&&t<128:t[0]===1}isMapSchema(){let t=this.getSchema();return typeof t=="number"?t>=128&&t<=255:t[0]===2}isStructSchema(){let t=this.getSchema();if(typeof t!="object")return!1;let n=t[0];return n===3||n===-3||n===4}isUnionSchema(){let t=this.getSchema();return typeof t!="object"?!1:t[0]===4}isBlobSchema(){let t=this.getSchema();return t===21||t===42}isTimestampSchema(){let t=this.getSchema();return typeof t=="number"&&t>=4&&t<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:t}=this.getMergedTraits();return!!t||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){var t;return(t=this.normalizedTraits)!=null?t:this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()}}getMemberTraits(){return Di(this.memberTraits)}getOwnTraits(){return Di(this.traits)}getKeySchema(){var s;let[t,n]=[this.isDocumentSchema(),this.isMapSchema()];if(!t&&!n)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let r=this.getSchema(),i=t?15:(s=r[4])!=null?s:0;return Tu([i,0],"key")}getValueSchema(){let t=this.getSchema(),[n,r,i]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],s=typeof t=="number"?63&t:t&&typeof t=="object"&&(r||i)?t[3+t[0]]:n?15:void 0;if(s!=null)return Tu([s,0],r?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(t){let n=this.getSchema();if(this.isStructSchema()&&n[4].includes(t)){let r=n[4].indexOf(t),i=n[5][r];return Tu(N0(i)?i:[i,0],t)}if(this.isDocumentSchema())return Tu([15,0],t);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${t}.`)}getMemberSchemas(){let t={};try{for(let[n,r]of this.structIterator())t[n]=r}catch(n){}return t}getEventStreamMember(){if(this.isStructSchema()){for(let[t,n]of this.structIterator())if(n.isStreaming()&&n.isStructSchema())return t}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");let t=this.getSchema(),n=t[4].length,r=t[Cu.it];if(r&&n===r.length){yield*r;return}r=Array(n);for(let i=0;iArray.isArray(e)&&e.length===2,pX=e=>Array.isArray(e)&&e.length>=5;c();var Zr=class Zr{constructor(t,n=new Map,r=new Map){C(this,"namespace");C(this,"schemas");C(this,"exceptions");this.namespace=t,this.schemas=n,this.exceptions=r}static for(t){return Zr.registries.has(t)||Zr.registries.set(t,new Zr(t)),Zr.registries.get(t)}copyFrom(t){let{schemas:n,exceptions:r}=this;for(let[i,s]of t.schemas)n.has(i)||n.set(i,s);for(let[i,s]of t.exceptions)r.has(i)||r.set(i,s)}register(t,n){let r=this.normalizeShapeId(t);for(let i of[this,Zr.for(r.split("#")[0])])i.schemas.set(r,n)}getSchema(t){let n=this.normalizeShapeId(t);if(!this.schemas.has(n))throw new Error(`@smithy/core/schema - schema not found for ${n}`);return this.schemas.get(n)}registerError(t,n){let r=t,i=r[1];for(let s of[this,Zr.for(i)])s.schemas.set(i+"#"+r[2],r),s.exceptions.set(r,n)}getErrorCtor(t){let n=t;return this.exceptions.has(n)?this.exceptions.get(n):Zr.for(n[1]).exceptions.get(n)}getBaseException(){for(let t of this.exceptions.keys())if(Array.isArray(t)){let[,n,r]=t,i=n+"#"+r;if(i.startsWith("smithy.ts.sdk.synthetic.")&&i.endsWith("ServiceException"))return t}}find(t){for(let n of this.schemas.values())if(t(n))return n}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(t){return t.includes("#")?t:this.namespace+"#"+t}};C(Zr,"registries",new Map);var Qr=Zr;c();c();var dX=e=>{if(e!=null){if(typeof e=="string"){let t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&xX.warn(yX(`Expected number but observed string: ${e}`)),t}if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},fX=Math.ceil(34028234663852886e22),gA=e=>{let t=dX(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>fX)throw new TypeError(`Expected 32-bit float, got ${e}`);return t},mX=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}};var yA=e=>vA(e,16),xA=e=>vA(e,8),vA=(e,t)=>{let n=mX(e);if(n!==void 0&&hX(n,t)!==n)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return n},hX=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}};var bA=e=>gA(typeof e=="string"?M0(e):e),gX=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,M0=e=>{let t=e.match(gX);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)};var md=e=>yA(typeof e=="string"?M0(e):e),_A=e=>xA(typeof e=="string"?M0(e):e),yX=e=>String(new TypeError(e).stack||e).split(` `).slice(0,5).filter(t=>!t.includes("stackTraceWarning")).join(` -`),oX={warn:console.warn};var aX=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],L0=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Du(e){let t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),i=e.getUTCDate(),s=e.getUTCHours(),o=e.getUTCMinutes(),a=e.getUTCSeconds(),l=i<10?`0${i}`:`${i}`,u=s<10?`0${s}`:`${s}`,p=o<10?`0${o}`:`${o}`,d=a<10?`0${a}`:`${a}`;return`${aX[r]}, ${l} ${L0[n]} ${t} ${u}:${p}:${d} GMT`}var pBe=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);var dBe=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/);var cX=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),uX=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),lX=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),fd=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=cX.exec(e);if(t){let[n,r,i,s,o,a,l,u]=t;return N0(pd(dd(s)),M0(i),da(r,"day",1,31),{hours:o,minutes:a,seconds:l,fractionalMilliseconds:u})}if(t=uX.exec(e),t){let[n,r,i,s,o,a,l,u]=t;return fX(N0(pX(s),M0(i),da(r,"day",1,31),{hours:o,minutes:a,seconds:l,fractionalMilliseconds:u}))}if(t=lX.exec(e),t){let[n,r,i,s,o,a,l,u]=t;return N0(pd(dd(u)),M0(r),da(i.trimLeft(),"day",1,31),{hours:s,minutes:o,seconds:a,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")};var N0=(e,t,n,r)=>{let i=t-1;return hX(e,i,n),new Date(Date.UTC(e,i,n,da(r.hours,"hour",0,23),da(r.minutes,"minute",0,59),da(r.seconds,"seconds",0,60),yX(r.fractionalMilliseconds)))},pX=e=>{let t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+pd(dd(e));return ne.getTime()-new Date().getTime()>dX?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,M0=e=>{let t=L0.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},mX=[31,28,31,30,31,30,31,31,30,31,30,31],hX=(e,t,n)=>{let r=mX[t];if(t===1&&gX(e)&&(r=29),n>r)throw new TypeError(`Invalid day for ${L0[t]} in ${e}: ${n}`)},gX=e=>e%4===0&&(e%100!==0||e%400===0),da=(e,t,n,r)=>{let i=xA(dd(e));if(ir)throw new TypeError(`${t} must be between ${n} and ${r}, inclusive`);return i},yX=e=>e==null?0:yA("0."+e)*1e3;var dd=e=>{let t=0;for(;tt.toString(16).padStart(2,"0")),Xs=()=>{if($0)return $0();let e=new Uint8Array(16);return crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,Qt[e[0]]+Qt[e[1]]+Qt[e[2]]+Qt[e[3]]+"-"+Qt[e[4]]+Qt[e[5]]+"-"+Qt[e[6]]+Qt[e[7]]+"-"+Qt[e[8]]+Qt[e[9]]+"-"+Qt[e[10]]+Qt[e[11]]+Qt[e[12]]+Qt[e[13]]+Qt[e[14]]+Qt[e[15]]};c();var Qr=function(t){return Object.assign(new String(t),{deserializeJSON(){return JSON.parse(String(t))},toString(){return String(t)},toJSON(){return String(t)}})};Qr.from=e=>e&&typeof e=="object"&&(e instanceof Qr||"deserializeJSON"in e)?e:typeof e=="string"||Object.getPrototypeOf(e)===String.prototype?Qr(String(e)):Qr(JSON.stringify(e));Qr.fromObject=Qr.from;c();function vA(e){return(e.includes(",")||e.includes('"'))&&(e=`"${e.replace(/"/g,'\\"')}"`),e}c();var U0="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",j0="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",z0="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",bA="(\\d?\\d)",_A="(\\d{4})",xX=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),vX=new RegExp(`^${U0}, ${bA} ${j0} ${_A} ${z0} GMT$`),bX=new RegExp(`^${U0}, ${bA}-${j0}-(\\d\\d) ${z0} GMT$`),_X=new RegExp(`^${U0} ${j0} ( [1-9]|\\d\\d) ${z0} ${_A}$`),wX=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wA=e=>{if(e==null)return;let t=NaN;if(typeof e=="number")t=e;else if(typeof e=="string"){if(!/^-?\d*\.?\d+$/.test(e))throw new TypeError("parseEpochTimestamp - numeric string invalid.");t=Number.parseFloat(e)}else typeof e=="object"&&e.tag===1&&(t=e.value);if(isNaN(t)||Math.abs(t)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(t*1e3))},EA=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC3339 timestamps must be strings");let t=xX.exec(e);if(!t)throw new TypeError(`Invalid RFC3339 timestamp format ${e}`);let[,n,r,i,s,o,a,,l,u]=t;Ei(r,1,12),Ei(i,1,31),Ei(s,0,23),Ei(o,0,59),Ei(a,0,60);let p=new Date(Date.UTC(Number(n),Number(r)-1,Number(i),Number(s),Number(o),Number(a),Number(l)?Math.round(parseFloat(`0.${l}`)*1e3):0));if(p.setUTCFullYear(Number(n)),u.toUpperCase()!="Z"){let[,d,f,m]=/([+-])(\d\d):(\d\d)/.exec(u)||[void 0,"+",0,0],g=d==="-"?1:-1;p.setTime(p.getTime()+g*(Number(f)*60*60*1e3+Number(m)*60*1e3))}return p},DA=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC7231 timestamps must be strings.");let t,n,r,i,s,o,a,l;if((l=vX.exec(e))?[,t,n,r,i,s,o,a]=l:(l=bX.exec(e))?([,t,n,r,i,s,o,a]=l,r=(Number(r)+1900).toString()):(l=_X.exec(e))&&([,n,t,i,s,o,a,r]=l),r&&o){let u=Date.UTC(Number(r),wX.indexOf(n),Number(t),Number(i),Number(s),Number(o),a?Math.round(parseFloat(`0.${a}`)*1e3):0);Ei(t,1,31),Ei(i,0,23),Ei(s,0,59),Ei(o,0,60);let p=new Date(u);return p.setUTCFullYear(Number(r)),p}throw new TypeError(`Invalid RFC7231 date-time value ${e}.`)};function Ei(e,t,n){let r=Number(e);if(rn)throw new Error(`Value ${r} out of range [${t}, ${n}]`)}c();function SA(e,t,n){if(n<=0||!Number.isInteger(n))throw new Error("Invalid number of delimiters ("+n+") for splitEvery.");let r=e.split(t);if(n===1)return r;let i=[],s="";for(let o=0;o{let t=e.length,n=[],r=!1,i,s=0;for(let o=0;o{o=o.trim();let a=o.length;return a<2?o:(o[0]==='"'&&o[a-1]==='"'&&(o=o.slice(1,a-1)),o.replace(/\\"/g,'"'))})};c();var CA=/^-?\d*(\.\d+)?$/,fa=class e{constructor(t,n){S(this,"string");S(this,"type");if(this.string=t,this.type=n,!CA.test(t))throw new Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](t){if(!t||typeof t!="object")return!1;let n=t;return e.prototype.isPrototypeOf(t)||n.type==="bigDecimal"&&CA.test(n.string)}};c();c();var Jr=class{constructor(){S(this,"serdeContext")}setSerdeContext(t){this.serdeContext=t}};var hd=class extends Jr{constructor(n){var r;super();S(this,"options");S(this,"compositeErrorRegistry");this.options=n,this.compositeErrorRegistry=Zr.for(n.defaultNamespace);for(let i of(r=n.errorTypeRegistries)!=null?r:[])this.compositeErrorRegistry.copyFrom(i)}getRequestType(){return be}getResponseType(){return Vt}setSerdeContext(n){this.serdeContext=n,this.serializer.setSerdeContext(n),this.deserializer.setSerdeContext(n),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(n)}updateServiceEndpoint(n,r){if("url"in r){n.protocol=r.url.protocol,n.hostname=r.url.hostname,n.port=r.url.port?Number(r.url.port):void 0,n.path=r.url.pathname,n.fragment=r.url.hash||void 0,n.username=r.url.username||void 0,n.password=r.url.password||void 0,n.query||(n.query={});for(let[i,s]of r.url.searchParams.entries())n.query[i]=s;if(r.headers)for(let i in r.headers)n.headers[i]=r.headers[i].join(", ");return n}else{if(n.protocol=r.protocol,n.hostname=r.hostname,n.port=r.port?Number(r.port):void 0,n.path=r.path,n.query={...r.query},r.headers)for(let i in r.headers)n.headers[i]=r.headers[i];return n}}setHostPrefix(n,r,i){var a,l,u;if((a=this.serdeContext)!=null&&a.disableHostPrefix)return;let s=De.of(r.input),o=wi((l=r.traits)!=null?l:{});if(o.endpoint){let p=(u=o.endpoint)==null?void 0:u[0];if(typeof p=="string"){for(let[d,f]of s.structIterator()){if(!f.getMergedTraits().hostLabel)continue;let m=i[d];if(typeof m!="string")throw new Error(`@smithy/core/schema - ${d} in input must be a string as hostLabel.`);p=p.replace(`{${d}}`,m)}n.hostname=p+n.hostname}}}deserializeMetadata(n){var r,i;return{httpStatusCode:n.statusCode,requestId:(i=(r=n.headers["x-amzn-requestid"])!=null?r:n.headers["x-amzn-request-id"])!=null?i:n.headers["x-amz-request-id"],extendedRequestId:n.headers["x-amz-id-2"],cfId:n.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:n,requestSchema:r,initialRequest:i}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:n,requestSchema:r,initialRequest:i})}async deserializeEventStream({response:n,responseSchema:r,initialResponseContainer:i}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:n,responseSchema:r,initialResponseContainer:i})}async loadEventStreamCapability(){let{EventStreamSerde:n}=await Promise.resolve().then(()=>(RA(),AA));return new n({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(n,r,i,s,o){return[]}getEventStreamMarshaller(){let n=this.serdeContext;if(!n.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return n.eventStreamMarshaller}};var gd=class extends hd{async serializeRequest(t,n,r){var x,v;let i=n&&typeof n=="object"?n:{},s=this.serializer,o={},a={},l=await r.endpoint(),u=De.of(t==null?void 0:t.input),p=[],d=[],f=!1,m,g=new be({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:o,headers:a,body:void 0});if(l){this.updateServiceEndpoint(g,l),this.setHostPrefix(g,t,i);let _=wi(t.traits);if(_.http){g.method=_.http[0];let[w,D]=_.http[1].split("?");g.path=="/"?g.path=w:g.path+=w;let C=new URLSearchParams(D!=null?D:"");for(let[A,k]of C)o[A]=k}}for(let[_,w]of u.structIterator()){let D=(x=w.getMergedTraits())!=null?x:{},C=i[_];if(C==null&&!w.isIdempotencyToken()){if(D.httpLabel&&(g.path.includes(`{${_}+}`)||g.path.includes(`{${_}}`)))throw new Error(`No value provided for input HTTP label: ${_}.`);continue}if(D.httpPayload)w.isStreaming()?w.isStructSchema()?i[_]&&(m=await this.serializeEventStream({eventStream:i[_],requestSchema:u})):m=C:(s.write(w,C),m=s.flush());else if(D.httpLabel){s.write(w,C);let A=s.flush();g.path.includes(`{${_}+}`)?g.path=g.path.replace(`{${_}+}`,A.split("/").map(R0).join("/")):g.path.includes(`{${_}}`)&&(g.path=g.path.replace(`{${_}}`,R0(A)))}else if(D.httpHeader)s.write(w,C),a[D.httpHeader.toLowerCase()]=String(s.flush());else if(typeof D.httpPrefixHeaders=="string")for(let A in C){let k=C[A],I=D.httpPrefixHeaders+A;s.write([w.getValueSchema(),{httpHeader:I}],k),a[I.toLowerCase()]=s.flush()}else D.httpQuery||D.httpQueryParams?this.serializeQuery(w,C,o):(f=!0,p.push(_),d.push(w))}if(f&&i){let[_,w]=((v=u.getName(!0))!=null?v:"#Unknown").split("#"),D=u.getSchema()[6],C=[3,_,w,u.getMergedTraits(),p,d,void 0];D?C[6]=D:C.pop(),s.write(C,i),m=s.flush()}return g.headers=a,g.query=o,g.body=m,g}serializeQuery(t,n,r){let i=this.serializer,s=t.getMergedTraits();if(s.httpQueryParams){for(let o in n)if(!(o in r)){let a=n[o],l=t.getValueSchema();Object.assign(l.getMergedTraits(),{...s,httpQuery:o,httpQueryParams:void 0}),this.serializeQuery(l,a,r)}return}if(t.isListSchema()){let o=!!t.getMergedTraits().sparse,a=[];for(let l of n){i.write([t.getValueSchema(),s],l);let u=i.flush();(o||u!==void 0)&&a.push(u)}r[s.httpQuery]=a}else i.write([t,s],n),r[s.httpQuery]=i.flush()}async deserializeResponse(t,n,r){let i=this.deserializer,s=De.of(t.output),o={};if(r.statusCode>=300){let l=await _u(r.body,n);throw l.byteLength>0&&Object.assign(o,await i.read(15,l)),await this.handleError(t,n,r,o,this.deserializeMetadata(r)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let l in r.headers){let u=r.headers[l];delete r.headers[l],r.headers[l.toLowerCase()]=u}let a=await this.deserializeHttpMessage(s,n,r,o);if(a.length){let l=await _u(r.body,n);if(l.byteLength>0){let u=await i.read(s,l);for(let p of a)u[p]!=null&&(o[p]=u[p])}}else a.discardResponseBody&&await _u(r.body,n);return o.$metadata=this.deserializeMetadata(r),o}async deserializeHttpMessage(t,n,r,i,s){let o;i instanceof Set?o=s:o=i;let a=!0,l=this.deserializer,u=De.of(t),p=[];for(let[d,f]of u.structIterator()){let m=f.getMemberTraits();if(m.httpPayload){if(a=!1,f.isStreaming())f.isStructSchema()?o[d]=await this.deserializeEventStream({response:r,responseSchema:u}):o[d]=td(r.body);else if(r.body){let x=await _u(r.body,n);x.byteLength>0&&(o[d]=await l.read(f,x))}}else if(m.httpHeader){let g=String(m.httpHeader).toLowerCase(),x=r.headers[g];if(x!=null)if(f.isListSchema()){let v=f.getValueSchema();v.getMergedTraits().httpHeader=g;let _;v.isTimestampSchema()&&v.getSchema()===4?_=SA(x,",",2):_=md(x);let w=[];for(let D of _)w.push(await l.read(v,D.trim()));o[d]=w}else o[d]=await l.read(f,x)}else if(m.httpPrefixHeaders!==void 0){o[d]={};for(let g in r.headers)if(g.startsWith(m.httpPrefixHeaders)){let x=r.headers[g],v=f.getValueSchema();v.getMergedTraits().httpHeader=g,o[d][g.slice(m.httpPrefixHeaders.length)]=await l.read(v,x)}}else m.httpResponseCode?o[d]=r.statusCode:p.push(d)}return p.discardResponseBody=a,p}};c();Xt();c();function ma(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7))return e.getSchema();let{httpLabel:n,httpPrefixHeaders:r,httpHeader:i,httpQuery:s}=e.getMergedTraits(),o=t.httpBindings?typeof r=="string"||i?6:s||n?5:void 0:void 0;return o!=null?o:t.timestampFormat.default}var ha=class extends Jr{constructor(n){super();S(this,"settings");this.settings=n}read(n,r){var s,o;let i=De.of(n);if(i.isListSchema())return md(r).map(a=>this.read(i.getValueSchema(),a));if(i.isBlobSchema())return((o=(s=this.serdeContext)==null?void 0:s.base64Decoder)!=null?o:Tr)(r);if(i.isTimestampSchema())switch(ma(i,this.settings)){case 5:return EA(r);case 6:return DA(r);case 7:return wA(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(i.isStringSchema()){let a=i.getMergedTraits().mediaType,l=r;if(a)return i.getMergedTraits().httpHeader&&(l=this.base64ToUtf8(l)),(a==="application/json"||a.endsWith("+json"))&&(l=Qr.from(l)),l}return i.isNumericSchema()?Number(r):i.isBigIntegerSchema()?BigInt(r):i.isBigDecimalSchema()?new fa(r,"bigDecimal"):i.isBooleanSchema()?String(r).toLowerCase()==="true":r}base64ToUtf8(n){var r,i,s,o;return((i=(r=this.serdeContext)==null?void 0:r.utf8Encoder)!=null?i:Bn)(((o=(s=this.serdeContext)==null?void 0:s.base64Decoder)!=null?o:Tr)(n))}};c();Xt();var yd=class extends Jr{constructor(n,r){super();S(this,"codecDeserializer");S(this,"stringDeserializer");this.codecDeserializer=n,this.stringDeserializer=new ha(r)}setSerdeContext(n){this.stringDeserializer.setSerdeContext(n),this.codecDeserializer.setSerdeContext(n),this.serdeContext=n}read(n,r){var a,l,u,p;let i=De.of(n),s=i.getMergedTraits(),o=(l=(a=this.serdeContext)==null?void 0:a.utf8Encoder)!=null?l:Bn;if(s.httpHeader||s.httpResponseCode)return this.stringDeserializer.read(i,o(r));if(s.httpPayload){if(i.isBlobSchema()){let d=(p=(u=this.serdeContext)==null?void 0:u.utf8Decoder)!=null?p:Wt;return typeof r=="string"?d(r):r}else if(i.isStringSchema())return"byteLength"in r?o(r):r}return this.codecDeserializer.read(i,r)}};c();c();var xd=class extends Jr{constructor(n){super();S(this,"settings");S(this,"stringBuffer","");this.settings=n}write(n,r){var s,o,a,l;let i=De.of(n);switch(typeof r){case"object":if(r===null){this.stringBuffer="null";return}if(i.isTimestampSchema()){if(!(r instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${r} when schema expected Date in ${i.getName(!0)}`);switch(ma(i,this.settings)){case 5:this.stringBuffer=r.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=Du(r);break;case 7:this.stringBuffer=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",r),this.stringBuffer=String(r.getTime()/1e3)}return}if(i.isBlobSchema()&&"byteLength"in r){this.stringBuffer=((o=(s=this.serdeContext)==null?void 0:s.base64Encoder)!=null?o:Gn)(r);return}if(i.isListSchema()&&Array.isArray(r)){let d="";for(let f of r){this.write([i.getValueSchema(),i.getMergedTraits()],f);let m=this.flush(),g=i.getValueSchema().isTimestampSchema()?m:vA(m);d!==""&&(d+=", "),d+=g}this.stringBuffer=d;return}this.stringBuffer=JSON.stringify(r,null,2);break;case"string":let u=i.getMergedTraits().mediaType,p=r;if(u&&((u==="application/json"||u.endsWith("+json"))&&(p=Qr.from(p)),i.getMergedTraits().httpHeader)){this.stringBuffer=((l=(a=this.serdeContext)==null?void 0:a.base64Encoder)!=null?l:Gn)(p.toString());return}this.stringBuffer=r;break;default:i.isIdempotencyToken()?this.stringBuffer=Xs():this.stringBuffer=String(r)}}flush(){let n=this.stringBuffer;return this.stringBuffer="",n}};var vd=class{constructor(t,n,r=new xd(n)){S(this,"codecSerializer");S(this,"stringSerializer");S(this,"buffer");this.codecSerializer=t,this.stringSerializer=r}setSerdeContext(t){this.codecSerializer.setSerdeContext(t),this.stringSerializer.setSerdeContext(t)}write(t,n){let r=De.of(t),i=r.getMergedTraits();if(i.httpHeader||i.httpLabel||i.httpQuery){this.stringSerializer.write(r,n),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(r,n)}flush(){if(this.buffer!==void 0){let t=this.buffer;return this.buffer=void 0,t}return this.codecSerializer.flush()}};c();c();var H0="***SensitiveInformation***";function bd(e,t){if(t==null)return t;let n=De.of(e);if(n.getMergedTraits().sensitive)return H0;if(n.isListSchema()){if(!!n.getValueSchema().getMergedTraits().sensitive)return H0}else if(n.isMapSchema()){if(!!n.getKeySchema().getMergedTraits().sensitive||!!n.getValueSchema().getMergedTraits().sensitive)return H0}else if(n.isStructSchema()&&typeof t=="object"){let r=t,i={};for(let[s,o]of n.structIterator())r[s]!=null&&(i[s]=bd(o,r[s]));return i}return t}var nt=class{constructor(){S(this,"middlewareStack",pa());S(this,"schema")}static classBuilder(){return new G0}resolveMiddlewareWithContext(t,n,r,{middlewareFn:i,clientName:s,commandName:o,inputFilterSensitiveLog:a,outputFilterSensitiveLog:l,smithyContext:u,additionalContext:p,CommandCtor:d}){for(let _ of i.bind(this)(d,t,n,r))this.middlewareStack.use(_);let f=t.concat(this.middlewareStack),{logger:m}=n,g={logger:m,clientName:s,commandName:o,inputFilterSensitiveLog:a,outputFilterSensitiveLog:l,[mu]:{commandInstance:this,...u},...p},{requestHandler:x}=n,v=r!=null?r:{};return u.eventStream&&(v={isEventStream:!0,...v}),f.resolve(_=>x.handle(_.request,v),g)}},G0=class{constructor(){S(this,"_init",()=>{});S(this,"_ep",{});S(this,"_middlewareFn",()=>[]);S(this,"_commandName","");S(this,"_clientName","");S(this,"_additionalContext",{});S(this,"_smithyContext",{});S(this,"_inputFilterSensitiveLog");S(this,"_outputFilterSensitiveLog");S(this,"_serializer",null);S(this,"_deserializer",null);S(this,"_operationSchema")}init(t){this._init=t}ep(t){return this._ep=t,this}m(t){return this._middlewareFn=t,this}s(t,n,r={}){return this._smithyContext={service:t,operation:n,...r},this}c(t={}){return this._additionalContext=t,this}n(t,n){return this._clientName=t,this._commandName=n,this}f(t=r=>r,n=r=>r){return this._inputFilterSensitiveLog=t,this._outputFilterSensitiveLog=n,this}ser(t){return this._serializer=t,this}de(t){return this._deserializer=t,this}sc(t){return this._operationSchema=t,this._smithyContext.operationSchema=t,this}build(){let t=this,n;return n=class extends nt{constructor(...[i]){super();S(this,"input");S(this,"serialize",t._serializer);S(this,"deserialize",t._deserializer);this.input=i!=null?i:{},t._init(this),this.schema=t._operationSchema}static getEndpointParameterInstructions(){return t._ep}resolveMiddleware(i,s,o){var p,d,f,m;let a=t._operationSchema,l=(p=a==null?void 0:a[4])!=null?p:a==null?void 0:a.input,u=(d=a==null?void 0:a[5])!=null?d:a==null?void 0:a.output;return this.resolveMiddlewareWithContext(i,s,o,{CommandCtor:n,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:(f=t._inputFilterSensitiveLog)!=null?f:a?bd.bind(null,l):g=>g,outputFilterSensitiveLog:(m=t._outputFilterSensitiveLog)!=null?m:a?bd.bind(null,u):g=>g,smithyContext:t._smithyContext,additionalContext:t._additionalContext})}}}};c();var _d=class e extends Error{constructor(n){super(n.message);S(this,"$fault");S(this,"$response");S(this,"$retryable");S(this,"$metadata");Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=n.name,this.$fault=n.$fault,this.$metadata=n.$metadata}static isInstance(n){if(!n)return!1;let r=n;return e.prototype.isPrototypeOf(r)||!!r.$fault&&!!r.$metadata&&(r.$fault==="client"||r.$fault==="server")}static[Symbol.hasInstance](n){if(!n)return!1;let r=n;return this===e?e.isInstance(n):e.isInstance(n)?r.name&&this.name?this.prototype.isPrototypeOf(n)||r.name===this.name:this.prototype.isPrototypeOf(n):!1}},V0=(e,t={})=>{Object.entries(t).filter(([,r])=>r!==void 0).forEach(([r,i])=>{(e[r]==null||e[r]==="")&&(e[r]=i)});let n=e.message||e.Message||"UnknownError";return e.message=n,delete e.Message,e};c();var kA=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};c();c();var OA=Object.values(Gs),FA=e=>{var n;let t=[];for(let r in Gs){let i=Gs[r];e[i]!==void 0&&t.push({algorithmId:()=>i,checksumConstructor:()=>e[i]})}for(let[r,i]of Object.entries((n=e.checksumAlgorithms)!=null?n:{}))t.push({algorithmId:()=>r,checksumConstructor:()=>i});return{addChecksumAlgorithm(r){var o;e.checksumAlgorithms=(o=e.checksumAlgorithms)!=null?o:{};let i=r.algorithmId(),s=r.checksumConstructor();OA.includes(i)?e.checksumAlgorithms[i.toUpperCase()]=s:e.checksumAlgorithms[i]=s,t.push(r)},checksumAlgorithms(){return t}}},BA=e=>{let t={};return e.checksumAlgorithms().forEach(n=>{let r=n.algorithmId();OA.includes(r)&&(t[r]=n.checksumConstructor())}),t};c();var IA=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),PA=e=>{let t={};return t.retryStrategy=e.retryStrategy(),t};var NA=e=>Object.assign(FA(e),IA(e));var MA=e=>Object.assign(BA(e),PA(e));c();var W0=e=>{let t="#text";for(let n in e)e.hasOwnProperty(n)&&e[n][t]!==void 0?e[n]=e[n][t]:typeof e[n]=="object"&&e[n]!==null&&(e[n]=W0(e[n]));return e};c();var ns=class{trace(){}debug(){}info(){}warn(){}error(){}};var EX="content-length",DX="x-amz-decoded-content-length";function SX(){return(e,t)=>async n=>{var i;let{request:r}=n;if(be.isInstance(r)&&!(EX in r.headers)&&!(DX in r.headers)){let s="Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.";typeof((i=t==null?void 0:t.logger)==null?void 0:i.warn)=="function"&&!(t.logger instanceof ns)?t.logger.warn(s):console.warn(s)}return e({...n})}}var CX={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},LA=e=>({applyToStack:t=>{t.add(SX(),CX)}});c();var $A=e=>(t,n)=>async r=>{let i=await e.region(),s=e.region,o=()=>{};n.__s3RegionRedirect&&(Object.defineProperty(e,"region",{writable:!1,value:async()=>n.__s3RegionRedirect}),o=()=>Object.defineProperty(e,"region",{writable:!0,value:s}));try{let a=await t(r);if(n.__s3RegionRedirect){o();let l=await e.region();if(i!==l)throw new Error("Region was not restored following S3 region redirect.")}return a}catch(a){throw o(),a}},UA={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};c();function TX(e){return(t,n)=>async r=>{var i,s,o,a;try{return await t(r)}catch(l){if(e.followRegionRedirects){let u=(i=l==null?void 0:l.$metadata)==null?void 0:i.httpStatusCode,p=n.commandName==="HeadBucketCommand",d=(o=(s=l==null?void 0:l.$response)==null?void 0:s.headers)==null?void 0:o["x-amz-bucket-region"];if(d&&(u===301||u===400&&((l==null?void 0:l.name)==="IllegalLocationConstraintException"||p))){try{let f=d;(a=n.logger)==null||a.debug(`Redirecting from ${await e.region()} to ${f}`),n.__s3RegionRedirect=f}catch(f){throw new Error("Region redirect failed: "+f)}return t(r)}}throw l}}}var AX={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},jA=e=>({applyToStack:t=>{t.add(TX(e),AX),t.addRelativeTo($A(e),UA)}});c();var RX=e=>(t,n)=>async r=>{var o;let i=await t(r),{response:s}=i;if(Vt.isInstance(s)&&s.headers.expires){s.headers.expiresstring=s.headers.expires;try{fd(s.headers.expires)}catch(a){(o=n.logger)==null||o.warn(`AWS SDK Warning for ${n.clientName}::${n.commandName} response parsing (${s.headers.expires}): ${a}`),delete s.headers.expires}}return i},kX={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},wd=e=>({applyToStack:t=>{t.addRelativeTo(RX(e),kX)}});c();c();var Dd=class Dd{constructor(t={}){S(this,"data");S(this,"lastPurgeTime",Date.now());this.data=t}get(t){let n=this.data[t];if(n)return n}set(t,n){return this.data[t]=n,n}delete(t){delete this.data[t]}async purgeExpired(){let t=Date.now();if(!(this.lastPurgeTime+Dd.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>t))for(let n in this.data){let r=this.data[n];if(!r.isRefreshing){let i=await r.identity;i.expiration&&i.expiration.getTime(){var u,p,d,f;return((p=(u=o.expiration)==null?void 0:u.getTime())!=null?p:0){i.set(r,new ga(Promise.resolve(m)))})),o)}):i.set(r,new ga(this.getIdentity(r))).identity}async getIdentity(t){var i,s;await this.cache.purgeExpired().catch(o=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache: -`+o)});let n=await this.createSessionFn(t);if(!((i=n.Credentials)!=null&&i.AccessKeyId)||!((s=n.Credentials)!=null&&s.SecretAccessKey))throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:n.Credentials.AccessKeyId,secretAccessKey:n.Credentials.SecretAccessKey,sessionToken:n.Credentials.SessionToken,expiration:n.Credentials.Expiration?new Date(n.Credentials.Expiration):void 0}}};S(Sd,"REFRESH_WINDOW_MS",6e4);var Su=Sd;c();c();Xt();c();var zA="X-Amz-Algorithm",qA="X-Amz-Credential",K0="X-Amz-Date",HA="X-Amz-SignedHeaders",GA="X-Amz-Expires",Y0="X-Amz-Signature",X0="X-Amz-Security-Token";var Z0="authorization",Q0=K0.toLowerCase(),OX="date",VA=[Z0,Q0,OX],WA=Y0.toLowerCase(),Cu="x-amz-content-sha256",KA=X0.toLowerCase();var YA={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},XA=/^proxy-/,ZA=/^sec-/;var Cd="AWS4-HMAC-SHA256";var QA="AWS4-HMAC-SHA256-PAYLOAD",JA="UNSIGNED-PAYLOAD",eR=50,J0="aws4_request",tR=3600*24*7;c();Xt();var Td={},ex=[],Ad=(e,t,n)=>`${e}/${t}/${n}/${J0}`,rR=async(e,t,n,r,i)=>{let s=await nR(e,t.secretAccessKey,t.accessKeyId),o=`${n}:${r}:${i}:${ft(s)}:${t.sessionToken}`;if(o in Td)return Td[o];for(ex.push(o);ex.length>eR;)delete Td[ex.shift()];let a=`AWS4${t.secretAccessKey}`;for(let l of[n,r,i,J0])a=await nR(e,a,l);return Td[o]=a};var nR=(e,t,n)=>{let r=new e(t);return r.update(Ar(n)),r.digest()};c();var tx=({headers:e},t,n)=>{let r={};for(let i of Object.keys(e).sort()){if(e[i]==null)continue;let s=i.toLowerCase();(s in YA||t!=null&&t.has(s)||XA.test(s)||ZA.test(s))&&(!n||n&&!n.has(s))||(r[s]=e[i].trim().replace(/\s+/g," "))}return r};c();Xt();var Rd=async({headers:e,body:t},n)=>{for(let r of Object.keys(e))if(r.toLowerCase()===Cu)return e[r];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||nd(t)){let r=new n;return r.update(Ar(t)),ft(await r.digest())}return JA};c();Xt();var kd=class{format(t){let n=[];for(let s of Object.keys(t)){let o=Wt(s);n.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(t[s]))}let r=new Uint8Array(n.reduce((s,o)=>s+o.byteLength,0)),i=0;for(let s of n)r.set(s,i),i+=s.byteLength;return r}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":let n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,t.value,!1),new Uint8Array(n.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case"long":let i=new Uint8Array(9);return i[0]=5,i.set(t.value.bytes,1),i;case"binary":let s=new DataView(new ArrayBuffer(3+t.value.byteLength));s.setUint8(0,6),s.setUint16(1,t.value.byteLength,!1);let o=new Uint8Array(s.buffer);return o.set(t.value,3),o;case"string":let a=Wt(t.value),l=new DataView(new ArrayBuffer(3+a.byteLength));l.setUint8(0,7),l.setUint16(1,a.byteLength,!1);let u=new Uint8Array(l.buffer);return u.set(a,3),u;case"timestamp":let p=new Uint8Array(9);return p[0]=8,p.set(nx.fromNumber(t.value.valueOf()).bytes,1),p;case"uuid":if(!FX.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);let d=new Uint8Array(17);return d[0]=9,d.set(ed(t.value.replace(/\-/g,"")),1),d}}},iR;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(iR||(iR={}));var FX=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,nx=class e{constructor(t){S(this,"bytes");if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let r=7,i=Math.abs(Math.round(t));r>-1&&i>0;r--,i/=256)n[r]=i;return t<0&&sR(n),new e(n)}valueOf(){let t=this.bytes.slice(0),n=t[0]&128;return n&&sR(t),parseInt(ft(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}};function sR(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}c();var oR=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1};c();var aR=(e,t={})=>{var i,s;let{headers:n,query:r={}}=be.clone(e);for(let o of Object.keys(n)){let a=o.toLowerCase();(a.slice(0,6)==="x-amz-"&&!((i=t.unhoistableHeaders)!=null&&i.has(a))||(s=t.hoistableHeaders)!=null&&s.has(a))&&(r[o]=n[o],delete n[o])}return{...e,headers:n,query:r}};c();var rx=e=>{e=be.clone(e);for(let t of Object.keys(e.headers))VA.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};c();Xt();c();var cR=({query:e={}})=>{let t=[],n={};for(let r of Object.keys(e)){if(r.toLowerCase()===WA)continue;let i=Kr(r);t.push(i);let s=e[r];typeof s=="string"?n[i]=`${i}=${Kr(s)}`:Array.isArray(s)&&(n[i]=s.slice(0).reduce((o,a)=>o.concat([`${i}=${Kr(a)}`]),[]).sort().join("&"))}return t.sort().map(r=>n[r]).filter(r=>r).join("&")};c();var uR=e=>BX(e).toISOString().replace(/\.\d{3}Z$/,"Z"),BX=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;var Od=class{constructor({applyChecksum:t,credentials:n,region:r,service:i,sha256:s,uriEscapePath:o=!0}){S(this,"service");S(this,"regionProvider");S(this,"credentialProvider");S(this,"sha256");S(this,"uriEscapePath");S(this,"applyChecksum");this.service=i,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=Zt(r),this.credentialProvider=Zt(n)}createCanonicalRequest(t,n,r){let i=Object.keys(n).sort();return`${t.method} +`),xX={warn:console.warn};var vX=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],U0=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Au(e){let t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),i=e.getUTCDate(),s=e.getUTCHours(),o=e.getUTCMinutes(),a=e.getUTCSeconds(),l=i<10?`0${i}`:`${i}`,u=s<10?`0${s}`:`${s}`,p=o<10?`0${o}`:`${o}`,d=a<10?`0${a}`:`${a}`;return`${vX[r]}, ${l} ${U0[n]} ${t} ${u}:${p}:${d} GMT`}var _Be=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);var wBe=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/);var bX=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),_X=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),wX=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),gd=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=bX.exec(e);if(t){let[n,r,i,s,o,a,l,u]=t;return L0(md(hd(s)),$0(i),ha(r,"day",1,31),{hours:o,minutes:a,seconds:l,fractionalMilliseconds:u})}if(t=_X.exec(e),t){let[n,r,i,s,o,a,l,u]=t;return SX(L0(EX(s),$0(i),ha(r,"day",1,31),{hours:o,minutes:a,seconds:l,fractionalMilliseconds:u}))}if(t=wX.exec(e),t){let[n,r,i,s,o,a,l,u]=t;return L0(md(hd(u)),$0(r),ha(i.trimLeft(),"day",1,31),{hours:s,minutes:o,seconds:a,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")};var L0=(e,t,n,r)=>{let i=t-1;return TX(e,i,n),new Date(Date.UTC(e,i,n,ha(r.hours,"hour",0,23),ha(r.minutes,"minute",0,59),ha(r.seconds,"seconds",0,60),RX(r.fractionalMilliseconds)))},EX=e=>{let t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+md(hd(e));return ne.getTime()-new Date().getTime()>DX?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,$0=e=>{let t=U0.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},CX=[31,28,31,30,31,30,31,31,30,31,30,31],TX=(e,t,n)=>{let r=CX[t];if(t===1&&AX(e)&&(r=29),n>r)throw new TypeError(`Invalid day for ${U0[t]} in ${e}: ${n}`)},AX=e=>e%4===0&&(e%100!==0||e%400===0),ha=(e,t,n,r)=>{let i=_A(hd(e));if(ir)throw new TypeError(`${t} must be between ${n} and ${r}, inclusive`);return i},RX=e=>e==null?0:bA("0."+e)*1e3;var hd=e=>{let t=0;for(;tt.toString(16).padStart(2,"0")),eo=()=>{if(j0)return j0();let e=new Uint8Array(16);return crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,Jt[e[0]]+Jt[e[1]]+Jt[e[2]]+Jt[e[3]]+"-"+Jt[e[4]]+Jt[e[5]]+"-"+Jt[e[6]]+Jt[e[7]]+"-"+Jt[e[8]]+Jt[e[9]]+"-"+Jt[e[10]]+Jt[e[11]]+Jt[e[12]]+Jt[e[13]]+Jt[e[14]]+Jt[e[15]]};c();var Jr=function(t){return Object.assign(new String(t),{deserializeJSON(){return JSON.parse(String(t))},toString(){return String(t)},toJSON(){return String(t)}})};Jr.from=e=>e&&typeof e=="object"&&(e instanceof Jr||"deserializeJSON"in e)?e:typeof e=="string"||Object.getPrototypeOf(e)===String.prototype?Jr(String(e)):Jr(JSON.stringify(e));Jr.fromObject=Jr.from;c();function wA(e){return(e.includes(",")||e.includes('"'))&&(e=`"${e.replace(/"/g,'\\"')}"`),e}c();var z0="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",q0="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",H0="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",EA="(\\d?\\d)",DA="(\\d{4})",kX=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),OX=new RegExp(`^${z0}, ${EA} ${q0} ${DA} ${H0} GMT$`),FX=new RegExp(`^${z0}, ${EA}-${q0}-(\\d\\d) ${H0} GMT$`),BX=new RegExp(`^${z0} ${q0} ( [1-9]|\\d\\d) ${H0} ${DA}$`),IX=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],SA=e=>{if(e==null)return;let t=NaN;if(typeof e=="number")t=e;else if(typeof e=="string"){if(!/^-?\d*\.?\d+$/.test(e))throw new TypeError("parseEpochTimestamp - numeric string invalid.");t=Number.parseFloat(e)}else typeof e=="object"&&e.tag===1&&(t=e.value);if(isNaN(t)||Math.abs(t)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(t*1e3))},CA=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC3339 timestamps must be strings");let t=kX.exec(e);if(!t)throw new TypeError(`Invalid RFC3339 timestamp format ${e}`);let[,n,r,i,s,o,a,,l,u]=t;Si(r,1,12),Si(i,1,31),Si(s,0,23),Si(o,0,59),Si(a,0,60);let p=new Date(Date.UTC(Number(n),Number(r)-1,Number(i),Number(s),Number(o),Number(a),Number(l)?Math.round(parseFloat(`0.${l}`)*1e3):0));if(p.setUTCFullYear(Number(n)),u.toUpperCase()!="Z"){let[,d,f,m]=/([+-])(\d\d):(\d\d)/.exec(u)||[void 0,"+",0,0],g=d==="-"?1:-1;p.setTime(p.getTime()+g*(Number(f)*60*60*1e3+Number(m)*60*1e3))}return p},TA=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC7231 timestamps must be strings.");let t,n,r,i,s,o,a,l;if((l=OX.exec(e))?[,t,n,r,i,s,o,a]=l:(l=FX.exec(e))?([,t,n,r,i,s,o,a]=l,r=(Number(r)+1900).toString()):(l=BX.exec(e))&&([,n,t,i,s,o,a,r]=l),r&&o){let u=Date.UTC(Number(r),IX.indexOf(n),Number(t),Number(i),Number(s),Number(o),a?Math.round(parseFloat(`0.${a}`)*1e3):0);Si(t,1,31),Si(i,0,23),Si(s,0,59),Si(o,0,60);let p=new Date(u);return p.setUTCFullYear(Number(r)),p}throw new TypeError(`Invalid RFC7231 date-time value ${e}.`)};function Si(e,t,n){let r=Number(e);if(rn)throw new Error(`Value ${r} out of range [${t}, ${n}]`)}c();function AA(e,t,n){if(n<=0||!Number.isInteger(n))throw new Error("Invalid number of delimiters ("+n+") for splitEvery.");let r=e.split(t);if(n===1)return r;let i=[],s="";for(let o=0;o{let t=e.length,n=[],r=!1,i,s=0;for(let o=0;o{o=o.trim();let a=o.length;return a<2?o:(o[0]==='"'&&o[a-1]==='"'&&(o=o.slice(1,a-1)),o.replace(/\\"/g,'"'))})};c();var RA=/^-?\d*(\.\d+)?$/,ga=class e{constructor(t,n){C(this,"string");C(this,"type");if(this.string=t,this.type=n,!RA.test(t))throw new Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](t){if(!t||typeof t!="object")return!1;let n=t;return e.prototype.isPrototypeOf(t)||n.type==="bigDecimal"&&RA.test(n.string)}};c();c();var ei=class{constructor(){C(this,"serdeContext")}setSerdeContext(t){this.serdeContext=t}};var xd=class extends ei{constructor(n){var r;super();C(this,"options");C(this,"compositeErrorRegistry");this.options=n,this.compositeErrorRegistry=Qr.for(n.defaultNamespace);for(let i of(r=n.errorTypeRegistries)!=null?r:[])this.compositeErrorRegistry.copyFrom(i)}getRequestType(){return we}getResponseType(){return Vt}setSerdeContext(n){this.serdeContext=n,this.serializer.setSerdeContext(n),this.deserializer.setSerdeContext(n),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(n)}updateServiceEndpoint(n,r){if("url"in r){n.protocol=r.url.protocol,n.hostname=r.url.hostname,n.port=r.url.port?Number(r.url.port):void 0,n.path=r.url.pathname,n.fragment=r.url.hash||void 0,n.username=r.url.username||void 0,n.password=r.url.password||void 0,n.query||(n.query={});for(let[i,s]of r.url.searchParams.entries())n.query[i]=s;if(r.headers)for(let i in r.headers)n.headers[i]=r.headers[i].join(", ");return n}else{if(n.protocol=r.protocol,n.hostname=r.hostname,n.port=r.port?Number(r.port):void 0,n.path=r.path,n.query={...r.query},r.headers)for(let i in r.headers)n.headers[i]=r.headers[i];return n}}setHostPrefix(n,r,i){var a,l,u;if((a=this.serdeContext)!=null&&a.disableHostPrefix)return;let s=Ce.of(r.input),o=Di((l=r.traits)!=null?l:{});if(o.endpoint){let p=(u=o.endpoint)==null?void 0:u[0];if(typeof p=="string"){for(let[d,f]of s.structIterator()){if(!f.getMergedTraits().hostLabel)continue;let m=i[d];if(typeof m!="string")throw new Error(`@smithy/core/schema - ${d} in input must be a string as hostLabel.`);p=p.replace(`{${d}}`,m)}n.hostname=p+n.hostname}}}deserializeMetadata(n){var r,i;return{httpStatusCode:n.statusCode,requestId:(i=(r=n.headers["x-amzn-requestid"])!=null?r:n.headers["x-amzn-request-id"])!=null?i:n.headers["x-amz-request-id"],extendedRequestId:n.headers["x-amz-id-2"],cfId:n.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:n,requestSchema:r,initialRequest:i}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:n,requestSchema:r,initialRequest:i})}async deserializeEventStream({response:n,responseSchema:r,initialResponseContainer:i}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:n,responseSchema:r,initialResponseContainer:i})}async loadEventStreamCapability(){let{EventStreamSerde:n}=await Promise.resolve().then(()=>(FA(),OA));return new n({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(n,r,i,s,o){return[]}getEventStreamMarshaller(){let n=this.serdeContext;if(!n.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return n.eventStreamMarshaller}};var vd=class extends xd{async serializeRequest(t,n,r){var x,v;let i=n&&typeof n=="object"?n:{},s=this.serializer,o={},a={},l=await r.endpoint(),u=Ce.of(t==null?void 0:t.input),p=[],d=[],f=!1,m,g=new we({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:o,headers:a,body:void 0});if(l){this.updateServiceEndpoint(g,l),this.setHostPrefix(g,t,i);let _=Di(t.traits);if(_.http){g.method=_.http[0];let[w,E]=_.http[1].split("?");g.path=="/"?g.path=w:g.path+=w;let S=new URLSearchParams(E!=null?E:"");for(let[A,k]of S)o[A]=k}}for(let[_,w]of u.structIterator()){let E=(x=w.getMergedTraits())!=null?x:{},S=i[_];if(S==null&&!w.isIdempotencyToken()){if(E.httpLabel&&(g.path.includes(`{${_}+}`)||g.path.includes(`{${_}}`)))throw new Error(`No value provided for input HTTP label: ${_}.`);continue}if(E.httpPayload)w.isStreaming()?w.isStructSchema()?i[_]&&(m=await this.serializeEventStream({eventStream:i[_],requestSchema:u})):m=S:(s.write(w,S),m=s.flush());else if(E.httpLabel){s.write(w,S);let A=s.flush();g.path.includes(`{${_}+}`)?g.path=g.path.replace(`{${_}+}`,A.split("/").map(O0).join("/")):g.path.includes(`{${_}}`)&&(g.path=g.path.replace(`{${_}}`,O0(A)))}else if(E.httpHeader)s.write(w,S),a[E.httpHeader.toLowerCase()]=String(s.flush());else if(typeof E.httpPrefixHeaders=="string")for(let A in S){let k=S[A],I=E.httpPrefixHeaders+A;s.write([w.getValueSchema(),{httpHeader:I}],k),a[I.toLowerCase()]=s.flush()}else E.httpQuery||E.httpQueryParams?this.serializeQuery(w,S,o):(f=!0,p.push(_),d.push(w))}if(f&&i){let[_,w]=((v=u.getName(!0))!=null?v:"#Unknown").split("#"),E=u.getSchema()[6],S=[3,_,w,u.getMergedTraits(),p,d,void 0];E?S[6]=E:S.pop(),s.write(S,i),m=s.flush()}return g.headers=a,g.query=o,g.body=m,g}serializeQuery(t,n,r){let i=this.serializer,s=t.getMergedTraits();if(s.httpQueryParams){for(let o in n)if(!(o in r)){let a=n[o],l=t.getValueSchema();Object.assign(l.getMergedTraits(),{...s,httpQuery:o,httpQueryParams:void 0}),this.serializeQuery(l,a,r)}return}if(t.isListSchema()){let o=!!t.getMergedTraits().sparse,a=[];for(let l of n){i.write([t.getValueSchema(),s],l);let u=i.flush();(o||u!==void 0)&&a.push(u)}r[s.httpQuery]=a}else i.write([t,s],n),r[s.httpQuery]=i.flush()}async deserializeResponse(t,n,r){let i=this.deserializer,s=Ce.of(t.output),o={};if(r.statusCode>=300){let l=await Su(r.body,n);throw l.byteLength>0&&Object.assign(o,await i.read(15,l)),await this.handleError(t,n,r,o,this.deserializeMetadata(r)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let l in r.headers){let u=r.headers[l];delete r.headers[l],r.headers[l.toLowerCase()]=u}let a=await this.deserializeHttpMessage(s,n,r,o);if(a.length){let l=await Su(r.body,n);if(l.byteLength>0){let u=await i.read(s,l);for(let p of a)u[p]!=null&&(o[p]=u[p])}}else a.discardResponseBody&&await Su(r.body,n);return o.$metadata=this.deserializeMetadata(r),o}async deserializeHttpMessage(t,n,r,i,s){let o;i instanceof Set?o=s:o=i;let a=!0,l=this.deserializer,u=Ce.of(t),p=[];for(let[d,f]of u.structIterator()){let m=f.getMemberTraits();if(m.httpPayload){if(a=!1,f.isStreaming())f.isStructSchema()?o[d]=await this.deserializeEventStream({response:r,responseSchema:u}):o[d]=id(r.body);else if(r.body){let x=await Su(r.body,n);x.byteLength>0&&(o[d]=await l.read(f,x))}}else if(m.httpHeader){let g=String(m.httpHeader).toLowerCase(),x=r.headers[g];if(x!=null)if(f.isListSchema()){let v=f.getValueSchema();v.getMergedTraits().httpHeader=g;let _;v.isTimestampSchema()&&v.getSchema()===4?_=AA(x,",",2):_=yd(x);let w=[];for(let E of _)w.push(await l.read(v,E.trim()));o[d]=w}else o[d]=await l.read(f,x)}else if(m.httpPrefixHeaders!==void 0){o[d]={};for(let g in r.headers)if(g.startsWith(m.httpPrefixHeaders)){let x=r.headers[g],v=f.getValueSchema();v.getMergedTraits().httpHeader=g,o[d][g.slice(m.httpPrefixHeaders.length)]=await l.read(v,x)}}else m.httpResponseCode?o[d]=r.statusCode:p.push(d)}return p.discardResponseBody=a,p}};c();Zt();c();function ya(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7))return e.getSchema();let{httpLabel:n,httpPrefixHeaders:r,httpHeader:i,httpQuery:s}=e.getMergedTraits(),o=t.httpBindings?typeof r=="string"||i?6:s||n?5:void 0:void 0;return o!=null?o:t.timestampFormat.default}var xa=class extends ei{constructor(n){super();C(this,"settings");this.settings=n}read(n,r){var s,o;let i=Ce.of(n);if(i.isListSchema())return yd(r).map(a=>this.read(i.getValueSchema(),a));if(i.isBlobSchema())return((o=(s=this.serdeContext)==null?void 0:s.base64Decoder)!=null?o:Ar)(r);if(i.isTimestampSchema())switch(ya(i,this.settings)){case 5:return CA(r);case 6:return TA(r);case 7:return SA(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(i.isStringSchema()){let a=i.getMergedTraits().mediaType,l=r;if(a)return i.getMergedTraits().httpHeader&&(l=this.base64ToUtf8(l)),(a==="application/json"||a.endsWith("+json"))&&(l=Jr.from(l)),l}return i.isNumericSchema()?Number(r):i.isBigIntegerSchema()?BigInt(r):i.isBigDecimalSchema()?new ga(r,"bigDecimal"):i.isBooleanSchema()?String(r).toLowerCase()==="true":r}base64ToUtf8(n){var r,i,s,o;return((i=(r=this.serdeContext)==null?void 0:r.utf8Encoder)!=null?i:In)(((o=(s=this.serdeContext)==null?void 0:s.base64Decoder)!=null?o:Ar)(n))}};c();Zt();var bd=class extends ei{constructor(n,r){super();C(this,"codecDeserializer");C(this,"stringDeserializer");this.codecDeserializer=n,this.stringDeserializer=new xa(r)}setSerdeContext(n){this.stringDeserializer.setSerdeContext(n),this.codecDeserializer.setSerdeContext(n),this.serdeContext=n}read(n,r){var a,l,u,p;let i=Ce.of(n),s=i.getMergedTraits(),o=(l=(a=this.serdeContext)==null?void 0:a.utf8Encoder)!=null?l:In;if(s.httpHeader||s.httpResponseCode)return this.stringDeserializer.read(i,o(r));if(s.httpPayload){if(i.isBlobSchema()){let d=(p=(u=this.serdeContext)==null?void 0:u.utf8Decoder)!=null?p:Wt;return typeof r=="string"?d(r):r}else if(i.isStringSchema())return"byteLength"in r?o(r):r}return this.codecDeserializer.read(i,r)}};c();c();var _d=class extends ei{constructor(n){super();C(this,"settings");C(this,"stringBuffer","");this.settings=n}write(n,r){var s,o,a,l;let i=Ce.of(n);switch(typeof r){case"object":if(r===null){this.stringBuffer="null";return}if(i.isTimestampSchema()){if(!(r instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${r} when schema expected Date in ${i.getName(!0)}`);switch(ya(i,this.settings)){case 5:this.stringBuffer=r.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=Au(r);break;case 7:this.stringBuffer=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",r),this.stringBuffer=String(r.getTime()/1e3)}return}if(i.isBlobSchema()&&"byteLength"in r){this.stringBuffer=((o=(s=this.serdeContext)==null?void 0:s.base64Encoder)!=null?o:Wn)(r);return}if(i.isListSchema()&&Array.isArray(r)){let d="";for(let f of r){this.write([i.getValueSchema(),i.getMergedTraits()],f);let m=this.flush(),g=i.getValueSchema().isTimestampSchema()?m:wA(m);d!==""&&(d+=", "),d+=g}this.stringBuffer=d;return}this.stringBuffer=JSON.stringify(r,null,2);break;case"string":let u=i.getMergedTraits().mediaType,p=r;if(u&&((u==="application/json"||u.endsWith("+json"))&&(p=Jr.from(p)),i.getMergedTraits().httpHeader)){this.stringBuffer=((l=(a=this.serdeContext)==null?void 0:a.base64Encoder)!=null?l:Wn)(p.toString());return}this.stringBuffer=r;break;default:i.isIdempotencyToken()?this.stringBuffer=eo():this.stringBuffer=String(r)}}flush(){let n=this.stringBuffer;return this.stringBuffer="",n}};var wd=class{constructor(t,n,r=new _d(n)){C(this,"codecSerializer");C(this,"stringSerializer");C(this,"buffer");this.codecSerializer=t,this.stringSerializer=r}setSerdeContext(t){this.codecSerializer.setSerdeContext(t),this.stringSerializer.setSerdeContext(t)}write(t,n){let r=Ce.of(t),i=r.getMergedTraits();if(i.httpHeader||i.httpLabel||i.httpQuery){this.stringSerializer.write(r,n),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(r,n)}flush(){if(this.buffer!==void 0){let t=this.buffer;return this.buffer=void 0,t}return this.codecSerializer.flush()}};c();c();var V0="***SensitiveInformation***";function Ed(e,t){if(t==null)return t;let n=Ce.of(e);if(n.getMergedTraits().sensitive)return V0;if(n.isListSchema()){if(!!n.getValueSchema().getMergedTraits().sensitive)return V0}else if(n.isMapSchema()){if(!!n.getKeySchema().getMergedTraits().sensitive||!!n.getValueSchema().getMergedTraits().sensitive)return V0}else if(n.isStructSchema()&&typeof t=="object"){let r=t,i={};for(let[s,o]of n.structIterator())r[s]!=null&&(i[s]=Ed(o,r[s]));return i}return t}var nt=class{constructor(){C(this,"middlewareStack",ma());C(this,"schema")}static classBuilder(){return new W0}resolveMiddlewareWithContext(t,n,r,{middlewareFn:i,clientName:s,commandName:o,inputFilterSensitiveLog:a,outputFilterSensitiveLog:l,smithyContext:u,additionalContext:p,CommandCtor:d}){for(let _ of i.bind(this)(d,t,n,r))this.middlewareStack.use(_);let f=t.concat(this.middlewareStack),{logger:m}=n,g={logger:m,clientName:s,commandName:o,inputFilterSensitiveLog:a,outputFilterSensitiveLog:l,[xu]:{commandInstance:this,...u},...p},{requestHandler:x}=n,v=r!=null?r:{};return u.eventStream&&(v={isEventStream:!0,...v}),f.resolve(_=>x.handle(_.request,v),g)}},W0=class{constructor(){C(this,"_init",()=>{});C(this,"_ep",{});C(this,"_middlewareFn",()=>[]);C(this,"_commandName","");C(this,"_clientName","");C(this,"_additionalContext",{});C(this,"_smithyContext",{});C(this,"_inputFilterSensitiveLog");C(this,"_outputFilterSensitiveLog");C(this,"_serializer",null);C(this,"_deserializer",null);C(this,"_operationSchema")}init(t){this._init=t}ep(t){return this._ep=t,this}m(t){return this._middlewareFn=t,this}s(t,n,r={}){return this._smithyContext={service:t,operation:n,...r},this}c(t={}){return this._additionalContext=t,this}n(t,n){return this._clientName=t,this._commandName=n,this}f(t=r=>r,n=r=>r){return this._inputFilterSensitiveLog=t,this._outputFilterSensitiveLog=n,this}ser(t){return this._serializer=t,this}de(t){return this._deserializer=t,this}sc(t){return this._operationSchema=t,this._smithyContext.operationSchema=t,this}build(){let t=this,n;return n=class extends nt{constructor(...[i]){super();C(this,"input");C(this,"serialize",t._serializer);C(this,"deserialize",t._deserializer);this.input=i!=null?i:{},t._init(this),this.schema=t._operationSchema}static getEndpointParameterInstructions(){return t._ep}resolveMiddleware(i,s,o){var p,d,f,m;let a=t._operationSchema,l=(p=a==null?void 0:a[4])!=null?p:a==null?void 0:a.input,u=(d=a==null?void 0:a[5])!=null?d:a==null?void 0:a.output;return this.resolveMiddlewareWithContext(i,s,o,{CommandCtor:n,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:(f=t._inputFilterSensitiveLog)!=null?f:a?Ed.bind(null,l):g=>g,outputFilterSensitiveLog:(m=t._outputFilterSensitiveLog)!=null?m:a?Ed.bind(null,u):g=>g,smithyContext:t._smithyContext,additionalContext:t._additionalContext})}}}};c();var Dd=class e extends Error{constructor(n){super(n.message);C(this,"$fault");C(this,"$response");C(this,"$retryable");C(this,"$metadata");Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=n.name,this.$fault=n.$fault,this.$metadata=n.$metadata}static isInstance(n){if(!n)return!1;let r=n;return e.prototype.isPrototypeOf(r)||!!r.$fault&&!!r.$metadata&&(r.$fault==="client"||r.$fault==="server")}static[Symbol.hasInstance](n){if(!n)return!1;let r=n;return this===e?e.isInstance(n):e.isInstance(n)?r.name&&this.name?this.prototype.isPrototypeOf(n)||r.name===this.name:this.prototype.isPrototypeOf(n):!1}},K0=(e,t={})=>{Object.entries(t).filter(([,r])=>r!==void 0).forEach(([r,i])=>{(e[r]==null||e[r]==="")&&(e[r]=i)});let n=e.message||e.Message||"UnknownError";return e.message=n,delete e.Message,e};c();var BA=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};c();c();var IA=Object.values(Ys),PA=e=>{var n;let t=[];for(let r in Ys){let i=Ys[r];e[i]!==void 0&&t.push({algorithmId:()=>i,checksumConstructor:()=>e[i]})}for(let[r,i]of Object.entries((n=e.checksumAlgorithms)!=null?n:{}))t.push({algorithmId:()=>r,checksumConstructor:()=>i});return{addChecksumAlgorithm(r){var o;e.checksumAlgorithms=(o=e.checksumAlgorithms)!=null?o:{};let i=r.algorithmId(),s=r.checksumConstructor();IA.includes(i)?e.checksumAlgorithms[i.toUpperCase()]=s:e.checksumAlgorithms[i]=s,t.push(r)},checksumAlgorithms(){return t}}},NA=e=>{let t={};return e.checksumAlgorithms().forEach(n=>{let r=n.algorithmId();IA.includes(r)&&(t[r]=n.checksumConstructor())}),t};c();var MA=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),LA=e=>{let t={};return t.retryStrategy=e.retryStrategy(),t};var $A=e=>Object.assign(PA(e),MA(e));var UA=e=>Object.assign(NA(e),LA(e));c();var Y0=e=>{let t="#text";for(let n in e)e.hasOwnProperty(n)&&e[n][t]!==void 0?e[n]=e[n][t]:typeof e[n]=="object"&&e[n]!==null&&(e[n]=Y0(e[n]));return e};c();var is=class{trace(){}debug(){}info(){}warn(){}error(){}};var PX="content-length",NX="x-amz-decoded-content-length";function MX(){return(e,t)=>async n=>{var i;let{request:r}=n;if(we.isInstance(r)&&!(PX in r.headers)&&!(NX in r.headers)){let s="Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.";typeof((i=t==null?void 0:t.logger)==null?void 0:i.warn)=="function"&&!(t.logger instanceof is)?t.logger.warn(s):console.warn(s)}return e({...n})}}var LX={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},jA=e=>({applyToStack:t=>{t.add(MX(),LX)}});c();var zA=e=>(t,n)=>async r=>{let i=await e.region(),s=e.region,o=()=>{};n.__s3RegionRedirect&&(Object.defineProperty(e,"region",{writable:!1,value:async()=>n.__s3RegionRedirect}),o=()=>Object.defineProperty(e,"region",{writable:!0,value:s}));try{let a=await t(r);if(n.__s3RegionRedirect){o();let l=await e.region();if(i!==l)throw new Error("Region was not restored following S3 region redirect.")}return a}catch(a){throw o(),a}},qA={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};c();function $X(e){return(t,n)=>async r=>{var i,s,o,a;try{return await t(r)}catch(l){if(e.followRegionRedirects){let u=(i=l==null?void 0:l.$metadata)==null?void 0:i.httpStatusCode,p=n.commandName==="HeadBucketCommand",d=(o=(s=l==null?void 0:l.$response)==null?void 0:s.headers)==null?void 0:o["x-amz-bucket-region"];if(d&&(u===301||u===400&&((l==null?void 0:l.name)==="IllegalLocationConstraintException"||p))){try{let f=d;(a=n.logger)==null||a.debug(`Redirecting from ${await e.region()} to ${f}`),n.__s3RegionRedirect=f}catch(f){throw new Error("Region redirect failed: "+f)}return t(r)}}throw l}}}var UX={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},HA=e=>({applyToStack:t=>{t.add($X(e),UX),t.addRelativeTo(zA(e),qA)}});c();var jX=e=>(t,n)=>async r=>{var o;let i=await t(r),{response:s}=i;if(Vt.isInstance(s)&&s.headers.expires){s.headers.expiresstring=s.headers.expires;try{gd(s.headers.expires)}catch(a){(o=n.logger)==null||o.warn(`AWS SDK Warning for ${n.clientName}::${n.commandName} response parsing (${s.headers.expires}): ${a}`),delete s.headers.expires}}return i},zX={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},Sd=e=>({applyToStack:t=>{t.addRelativeTo(jX(e),zX)}});c();c();var Td=class Td{constructor(t={}){C(this,"data");C(this,"lastPurgeTime",Date.now());this.data=t}get(t){let n=this.data[t];if(n)return n}set(t,n){return this.data[t]=n,n}delete(t){delete this.data[t]}async purgeExpired(){let t=Date.now();if(!(this.lastPurgeTime+Td.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>t))for(let n in this.data){let r=this.data[n];if(!r.isRefreshing){let i=await r.identity;i.expiration&&i.expiration.getTime(){var u,p,d,f;return((p=(u=o.expiration)==null?void 0:u.getTime())!=null?p:0){i.set(r,new va(Promise.resolve(m)))})),o)}):i.set(r,new va(this.getIdentity(r))).identity}async getIdentity(t){var i,s;await this.cache.purgeExpired().catch(o=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache: +`+o)});let n=await this.createSessionFn(t);if(!((i=n.Credentials)!=null&&i.AccessKeyId)||!((s=n.Credentials)!=null&&s.SecretAccessKey))throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:n.Credentials.AccessKeyId,secretAccessKey:n.Credentials.SecretAccessKey,sessionToken:n.Credentials.SessionToken,expiration:n.Credentials.Expiration?new Date(n.Credentials.Expiration):void 0}}};C(Ad,"REFRESH_WINDOW_MS",6e4);var Ru=Ad;c();c();Zt();c();var GA="X-Amz-Algorithm",VA="X-Amz-Credential",X0="X-Amz-Date",WA="X-Amz-SignedHeaders",KA="X-Amz-Expires",Z0="X-Amz-Signature",Q0="X-Amz-Security-Token";var J0="authorization",ex=X0.toLowerCase(),qX="date",YA=[J0,ex,qX],XA=Z0.toLowerCase(),ku="x-amz-content-sha256",ZA=Q0.toLowerCase();var QA={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},JA=/^proxy-/,eR=/^sec-/;var Rd="AWS4-HMAC-SHA256";var tR="AWS4-HMAC-SHA256-PAYLOAD",nR="UNSIGNED-PAYLOAD",rR=50,tx="aws4_request",iR=3600*24*7;c();Zt();var kd={},nx=[],Od=(e,t,n)=>`${e}/${t}/${n}/${tx}`,oR=async(e,t,n,r,i)=>{let s=await sR(e,t.secretAccessKey,t.accessKeyId),o=`${n}:${r}:${i}:${ft(s)}:${t.sessionToken}`;if(o in kd)return kd[o];for(nx.push(o);nx.length>rR;)delete kd[nx.shift()];let a=`AWS4${t.secretAccessKey}`;for(let l of[n,r,i,tx])a=await sR(e,a,l);return kd[o]=a};var sR=(e,t,n)=>{let r=new e(t);return r.update(Rr(n)),r.digest()};c();var rx=({headers:e},t,n)=>{let r={};for(let i of Object.keys(e).sort()){if(e[i]==null)continue;let s=i.toLowerCase();(s in QA||t!=null&&t.has(s)||JA.test(s)||eR.test(s))&&(!n||n&&!n.has(s))||(r[s]=e[i].trim().replace(/\s+/g," "))}return r};c();Zt();var Fd=async({headers:e,body:t},n)=>{for(let r of Object.keys(e))if(r.toLowerCase()===ku)return e[r];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||sd(t)){let r=new n;return r.update(Rr(t)),ft(await r.digest())}return nR};c();Zt();var Bd=class{format(t){let n=[];for(let s of Object.keys(t)){let o=Wt(s);n.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(t[s]))}let r=new Uint8Array(n.reduce((s,o)=>s+o.byteLength,0)),i=0;for(let s of n)r.set(s,i),i+=s.byteLength;return r}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":let n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,t.value,!1),new Uint8Array(n.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case"long":let i=new Uint8Array(9);return i[0]=5,i.set(t.value.bytes,1),i;case"binary":let s=new DataView(new ArrayBuffer(3+t.value.byteLength));s.setUint8(0,6),s.setUint16(1,t.value.byteLength,!1);let o=new Uint8Array(s.buffer);return o.set(t.value,3),o;case"string":let a=Wt(t.value),l=new DataView(new ArrayBuffer(3+a.byteLength));l.setUint8(0,7),l.setUint16(1,a.byteLength,!1);let u=new Uint8Array(l.buffer);return u.set(a,3),u;case"timestamp":let p=new Uint8Array(9);return p[0]=8,p.set(ix.fromNumber(t.value.valueOf()).bytes,1),p;case"uuid":if(!HX.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);let d=new Uint8Array(17);return d[0]=9,d.set(rd(t.value.replace(/\-/g,"")),1),d}}},aR;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(aR||(aR={}));var HX=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,ix=class e{constructor(t){C(this,"bytes");if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let r=7,i=Math.abs(Math.round(t));r>-1&&i>0;r--,i/=256)n[r]=i;return t<0&&cR(n),new e(n)}valueOf(){let t=this.bytes.slice(0),n=t[0]&128;return n&&cR(t),parseInt(ft(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}};function cR(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}c();var uR=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1};c();var lR=(e,t={})=>{var i,s;let{headers:n,query:r={}}=we.clone(e);for(let o of Object.keys(n)){let a=o.toLowerCase();(a.slice(0,6)==="x-amz-"&&!((i=t.unhoistableHeaders)!=null&&i.has(a))||(s=t.hoistableHeaders)!=null&&s.has(a))&&(r[o]=n[o],delete n[o])}return{...e,headers:n,query:r}};c();var sx=e=>{e=we.clone(e);for(let t of Object.keys(e.headers))YA.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};c();Zt();c();var pR=({query:e={}})=>{let t=[],n={};for(let r of Object.keys(e)){if(r.toLowerCase()===XA)continue;let i=Yr(r);t.push(i);let s=e[r];typeof s=="string"?n[i]=`${i}=${Yr(s)}`:Array.isArray(s)&&(n[i]=s.slice(0).reduce((o,a)=>o.concat([`${i}=${Yr(a)}`]),[]).sort().join("&"))}return t.sort().map(r=>n[r]).filter(r=>r).join("&")};c();var dR=e=>GX(e).toISOString().replace(/\.\d{3}Z$/,"Z"),GX=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;var Id=class{constructor({applyChecksum:t,credentials:n,region:r,service:i,sha256:s,uriEscapePath:o=!0}){C(this,"service");C(this,"regionProvider");C(this,"credentialProvider");C(this,"sha256");C(this,"uriEscapePath");C(this,"applyChecksum");this.service=i,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=Qt(r),this.credentialProvider=Qt(n)}createCanonicalRequest(t,n,r){let i=Object.keys(n).sort();return`${t.method} ${this.getCanonicalPath(t)} -${cR(t)} +${pR(t)} ${i.map(s=>`${s}:${n[s]}`).join(` `)} ${i.join(";")} -${r}`}async createStringToSign(t,n,r,i){let s=new this.sha256;s.update(Ar(r));let o=await s.digest();return`${i} +${r}`}async createStringToSign(t,n,r,i){let s=new this.sha256;s.update(Rr(r));let o=await s.digest();return`${i} ${t} ${n} -${ft(o)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){let n=[];for(let s of t.split("/"))(s==null?void 0:s.length)!==0&&s!=="."&&(s===".."?n.pop():n.push(s));let r=`${t!=null&&t.startsWith("/")?"/":""}${n.join("/")}${n.length>0&&(t!=null&&t.endsWith("/"))?"/":""}`;return Kr(r).replace(/%2F/g,"/")}return t}validateResolvedCredentials(t){if(typeof t!="object"||typeof t.accessKeyId!="string"||typeof t.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(t){let n=uR(t).replace(/[\-:]/g,"");return{longDate:n,shortDate:n.slice(0,8)}}getCanonicalHeaderList(t){return Object.keys(t).sort().join(";")}};var Zs=class extends Od{constructor({applyChecksum:n,credentials:r,region:i,service:s,sha256:o,uriEscapePath:a=!0}){super({applyChecksum:n,credentials:r,region:i,service:s,sha256:o,uriEscapePath:a});S(this,"headerFormatter",new kd)}async presign(n,r={}){let{signingDate:i=new Date,expiresIn:s=3600,unsignableHeaders:o,unhoistableHeaders:a,signableHeaders:l,hoistableHeaders:u,signingRegion:p,signingService:d}=r,f=await this.credentialProvider();this.validateResolvedCredentials(f);let m=p!=null?p:await this.regionProvider(),{longDate:g,shortDate:x}=this.formatDate(i);if(s>tR)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let v=Ad(x,m,d!=null?d:this.service),_=aR(rx(n),{unhoistableHeaders:a,hoistableHeaders:u});f.sessionToken&&(_.query[X0]=f.sessionToken),_.query[zA]=Cd,_.query[qA]=`${f.accessKeyId}/${v}`,_.query[K0]=g,_.query[GA]=s.toString(10);let w=tx(_,o,l);return _.query[HA]=this.getCanonicalHeaderList(w),_.query[Y0]=await this.getSignature(g,v,this.getSigningKey(f,m,x,d),this.createCanonicalRequest(_,w,await Rd(n,this.sha256))),_}async sign(n,r){return typeof n=="string"?this.signString(n,r):n.headers&&n.payload?this.signEvent(n,r):n.message?this.signMessage(n,r):this.signRequest(n,r)}async signEvent({headers:n,payload:r},{signingDate:i=new Date,priorSignature:s,signingRegion:o,signingService:a,eventStreamCredentials:l}){let u=o!=null?o:await this.regionProvider(),{shortDate:p,longDate:d}=this.formatDate(i),f=Ad(p,u,a!=null?a:this.service),m=await Rd({headers:{},body:r},this.sha256),g=new this.sha256;g.update(n);let x=ft(await g.digest()),v=[QA,d,f,s,x,m].join(` -`);return this.signString(v,{signingDate:i,signingRegion:u,signingService:a,eventStreamCredentials:l})}async signMessage(n,{signingDate:r=new Date,signingRegion:i,signingService:s,eventStreamCredentials:o}){return this.signEvent({headers:this.headerFormatter.format(n.message.headers),payload:n.message.body},{signingDate:r,signingRegion:i,signingService:s,priorSignature:n.priorSignature,eventStreamCredentials:o}).then(l=>({message:n.message,signature:l}))}async signString(n,{signingDate:r=new Date,signingRegion:i,signingService:s,eventStreamCredentials:o}={}){let a=o!=null?o:await this.credentialProvider();this.validateResolvedCredentials(a);let l=i!=null?i:await this.regionProvider(),{shortDate:u}=this.formatDate(r),p=new this.sha256(await this.getSigningKey(a,l,u,s));return p.update(Ar(n)),ft(await p.digest())}async signRequest(n,{signingDate:r=new Date,signableHeaders:i,unsignableHeaders:s,signingRegion:o,signingService:a}={}){let l=await this.credentialProvider();this.validateResolvedCredentials(l);let u=o!=null?o:await this.regionProvider(),p=rx(n),{longDate:d,shortDate:f}=this.formatDate(r),m=Ad(f,u,a!=null?a:this.service);p.headers[Q0]=d,l.sessionToken&&(p.headers[KA]=l.sessionToken);let g=await Rd(p,this.sha256);!oR(Cu,p.headers)&&this.applyChecksum&&(p.headers[Cu]=g);let x=tx(p,s,i),v=await this.getSignature(d,m,this.getSigningKey(l,u,f,a),this.createCanonicalRequest(p,x,g));return p.headers[Z0]=`${Cd} Credential=${l.accessKeyId}/${m}, SignedHeaders=${this.getCanonicalHeaderList(x)}, Signature=${v}`,p}async getSignature(n,r,i,s){let o=await this.createStringToSign(n,r,s,Cd),a=new this.sha256(await i);return a.update(Ar(o)),ft(await a.digest())}getSigningKey(n,r,i,s){return rR(this.sha256,n,i,r,s||this.service)}};c();var ix={SignatureV4a:null};c();var lR="Directory",pR="S3Express",dR="sigv4-s3express",Fd="X-Amz-S3session-Token",Tu=Fd.toLowerCase();var Au=class extends Zs{async signWithCredentials(t,n,r){let i=fR(n);t.headers[Tu]=n.sessionToken;let s=this;return mR(s,i),s.signRequest(t,r!=null?r:{})}async presignWithCredentials(t,n,r){var o;let i=fR(n);return delete t.headers[Tu],t.headers[Fd]=n.sessionToken,t.query=(o=t.query)!=null?o:{},t.query[Fd]=n.sessionToken,mR(this,i),this.presign(t,r)}};function fR(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function mR(e,t){let n=setTimeout(()=>{throw new Error("SignatureV4S3Express credential override was created but not called.")},10),r=e.credentialProvider,i=()=>(clearTimeout(n),e.credentialProvider=r,Promise.resolve(t));e.credentialProvider=i}c();var hR=e=>(t,n)=>async r=>{var i,s,o,a,l;if(n.endpointV2){let u=n.endpointV2,p=((o=(s=(i=u.properties)==null?void 0:i.authSchemes)==null?void 0:s[0])==null?void 0:o.name)===dR;if((((a=u.properties)==null?void 0:a.backend)===pR||((l=u.properties)==null?void 0:l.bucketType)===lR)&&(ut(n,"S3_EXPRESS_BUCKET","J"),n.isS3ExpressBucket=!0),p){let f=r.input.Bucket;if(f){let m=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:f});n.s3ExpressIdentity=m,be.isInstance(r.request)&&m.sessionToken&&(r.request.headers[Tu]=m.sessionToken)}}}return t(r)},gR={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},sx=e=>({applyToStack:t=>{t.add(hR(e),gR)}});c();c();c();var yR=(e,t)=>{if(!t||t.length===0)return e;let n=[];for(let r of t)for(let i of e)i.schemeId.split("#")[1]===r&&n.push(i);for(let r of e)n.find(({schemeId:i})=>i===r.schemeId)||n.push(r);return n};function IX(e){let t=new Map;for(let n of e)t.set(n.schemeId,n);return t}var xR=(e,t)=>(n,r)=>async i=>{var d;let s=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,r,i.input)),o=e.authSchemePreference?await e.authSchemePreference():[],a=yR(s,o),l=IX(e.httpAuthSchemes),u=mn(r),p=[];for(let f of a){let m=l.get(f.schemeId);if(!m){p.push(`HttpAuthScheme \`${f.schemeId}\` was not enabled for this service.`);continue}let g=m.identityProvider(await t.identityProviderConfigProvider(e));if(!g){p.push(`HttpAuthScheme \`${f.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:x={},signingProperties:v={}}=((d=f.propertiesExtractor)==null?void 0:d.call(f,e,r))||{};f.identityProperties=Object.assign(f.identityProperties||{},x),f.signingProperties=Object.assign(f.signingProperties||{},v),u.selectedHttpAuthScheme={httpAuthOption:f,identity:await g(f.identityProperties),signer:m.signer};break}if(!u.selectedHttpAuthScheme)throw new Error(p.join(` -`));return n(i)};c();var PX={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},vR=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:r=>{r.addRelativeTo(xR(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),PX)}});c();var NX=e=>t=>{throw t},MX=(e,t)=>{},bR=e=>(t,n)=>async r=>{if(!be.isInstance(r.request))return t(r);let s=mn(n).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:o={}},identity:a,signer:l}=s,u=await t({...r,request:await l.sign(r.request,a,o)}).catch((l.errorHandler||NX)(o));return(l.successHandler||MX)(u.response,o),u};c();var ox={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},_R=e=>({applyToStack:t=>{t.addRelativeTo(bR(e),ox)}});c();var Di=e=>{if(typeof e=="function")return e;let t=Promise.resolve(e);return()=>t};c();function wR(e,t,n){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=n}c();var Bd=class{constructor(t){S(this,"authSchemes",new Map);for(let n in t){let r=t[n];r!==void 0&&this.authSchemes.set(n,r)}}getIdentityProvider(t){return this.authSchemes.get(t)}};c();var LX=e=>function(n){return ax(n)&&n.expiration.getTime()-Date.now()e.expiration!==void 0,DR=(e,t,n)=>{if(e===void 0)return;let r=typeof e!="function"?async()=>Promise.resolve(e):e,i,s,o,a=!1,l=async u=>{s||(s=r(u));try{i=await s,o=!0,a=!1}finally{s=void 0}return i};return t===void 0?async u=>((!o||u!=null&&u.forceRefresh)&&(i=await l(u)),i):async u=>((!o||u!=null&&u.forceRefresh)&&(i=await l(u)),a?i:n(i)?(t(i)&&await l(u),i):(a=!0,i))};c();var SR=async(e,t,n,r)=>{let i=await r.signWithCredentials(n,e,{});if(i.headers["X-Amz-Security-Token"]||i.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.");return i};var $X=e=>t=>{throw t},UX=(e,t)=>{};var CR=e=>(t,n)=>async r=>{if(!be.isInstance(r.request))return t(r);let s=mn(n).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:o={}},identity:a,signer:l}=s,u;n.s3ExpressIdentity?u=await SR(n.s3ExpressIdentity,o,r.request,await e.signer()):u=await l.sign(r.request,a,o);let p=await t({...r,request:u}).catch((l.errorHandler||$X)(o));return(l.successHandler||UX)(p.response,o),p},cx=e=>({applyToStack:t=>{t.addRelativeTo(CR(e),ox)}});c();var TR=(e,{session:t})=>{let[n,r]=t,{forcePathStyle:i,useAccelerateEndpoint:s,disableMultiregionAccessPoints:o,followRegionRedirects:a,s3ExpressIdentityProvider:l,bucketEndpoint:u,expectContinueHeader:p}=e;return Object.assign(e,{forcePathStyle:i!=null?i:!1,useAccelerateEndpoint:s!=null?s:!1,disableMultiregionAccessPoints:o!=null?o:!1,followRegionRedirects:a!=null?a:!1,s3ExpressIdentityProvider:l!=null?l:new Su(async d=>n().send(new r({Bucket:d}))),bucketEndpoint:u!=null?u:!1,expectContinueHeader:p!=null?p:2097152})};c();var jX={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},zX=3e3,qX=e=>(t,n)=>async r=>{let i=await t(r),{response:s}=i;if(!Vt.isInstance(s))return i;let{statusCode:o,body:a}=s;if(o<200||o>=300||!(typeof(a==null?void 0:a.stream)=="function"||typeof(a==null?void 0:a.pipe)=="function"||typeof(a==null?void 0:a.tee)=="function"))return i;let u=a,p=a;a&&typeof a=="object"&&!(a instanceof Uint8Array)&&([u,p]=await M2(a)),s.body=p;let d=await HX(u,{streamCollector:async m=>k2(m,zX)});typeof(u==null?void 0:u.destroy)=="function"&&u.destroy();let f=e.utf8Encoder(d.subarray(d.length-16));if(d.length===0&&jX[n.commandName]){let m=new Error("S3 aborted request");throw m.name="InternalError",m}return f&&f.endsWith("")&&(s.statusCode=400),i},HX=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),GX={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},Dt=e=>({applyToStack:t=>{t.addRelativeTo(qX(e),GX)}});c();c();var AR=e=>typeof e=="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6;c();function RR(e){return(t,n)=>async r=>{var i,s,o,a;if(e.bucketEndpoint){let l=n.endpointV2;if(l){let u=r.input.Bucket;if(typeof u=="string")try{let p=new URL(u);n.endpointV2={...l,url:p}}catch(p){let d=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${u} could not be parsed as URL.`;throw((s=(i=n.logger)==null?void 0:i.constructor)==null?void 0:s.name)==="NoOpLogger"?console.warn(d):(a=(o=n.logger)==null?void 0:o.warn)==null||a.call(o,d),p}}}return t(r)}}var kR={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function VX({bucketEndpoint:e}){return t=>async n=>{let{input:{Bucket:r}}=n;if(!e&&typeof r=="string"&&!AR(r)&&r.indexOf("/")>=0){let i=new Error(`Bucket name shouldn't contain '/', received '${r}'`);throw i.name="InvalidBucketName",i}return t({...n})}}var WX={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},OR=e=>({applyToStack:t=>{t.add(VX(e),WX),t.addRelativeTo(RR(e),kR)}});c();c();var FR=typeof TextEncoder=="function"?new TextEncoder:null,BR=e=>{if(typeof e=="string"){if(FR)return FR.encode(e).byteLength;let t=e.length;for(let n=t-1;n>=0;n--){let r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&n--}return t}else{if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size}throw new Error(`Body Length computation failed for ${e}`)};c();var Id=class{constructor(t=!1){S(this,"queryCompat");S(this,"errorRegistry");this.queryCompat=t}resolveRestContentType(t,n){let r=n.getMemberSchemas(),i=Object.values(r).find(s=>!!s.getMergedTraits().httpPayload);if(i){let s=i.getMergedTraits().mediaType;return s||(i.isStringSchema()?"text/plain":i.isBlobSchema()?"application/octet-stream":t)}else if(!n.isUnitSchema()&&Object.values(r).find(o=>{let{httpQuery:a,httpQueryParams:l,httpHeader:u,httpLabel:p,httpPrefixHeaders:d}=o.getMergedTraits();return!a&&!l&&!u&&!p&&d===void 0}))return t}async getErrorSchemaOrThrowBaseException(t,n,r,i,s,o){var u,p,d,f,m,g,x,v,_;let a=t;t.includes("#")&&([,a]=t.split("#"));let l={$metadata:s,$fault:r.statusCode<500?"client":"server"};if(!this.errorRegistry)throw new Error("@aws-sdk/core/protocols - error handler not initialized.");try{return{errorSchema:(u=o==null?void 0:o(this.errorRegistry,a))!=null?u:this.errorRegistry.getSchema(t),errorMetadata:l}}catch(w){i.message=(d=(p=i.message)!=null?p:i.Message)!=null?d:"UnknownError";let D=this.errorRegistry,C=D.getBaseException();if(C){let I=(f=D.getErrorCtor(C))!=null?f:Error;throw this.decorateServiceException(Object.assign(new I({name:a}),l),i)}let A=i,k=(_=(x=(m=A==null?void 0:A.message)!=null?m:A==null?void 0:A.Message)!=null?x:(g=A==null?void 0:A.Error)==null?void 0:g.Message)!=null?_:(v=A==null?void 0:A.Error)==null?void 0:v.message;throw this.decorateServiceException(Object.assign(new Error(k),{name:a},l),i)}}compose(t,n,r){let i=r;n.includes("#")&&([i]=n.split("#"));let s=Zr.for(i),o=Zr.for("smithy.ts.sdk.synthetic."+r);t.copyFrom(s),t.copyFrom(o),this.errorRegistry=t}decorateServiceException(t,n={}){var r,i,s,o,a,l,u,p;if(this.queryCompat){let d=(r=t.Message)!=null?r:n.Message,f=V0(t,n);d&&(f.message=d);let m=(i=f.Error)!=null?i:{};m.Type=(s=f.Error)==null?void 0:s.Type,m.Code=(o=f.Error)==null?void 0:o.Code,m.Message=(p=(u=(a=f.Error)==null?void 0:a.message)!=null?u:(l=f.Error)==null?void 0:l.Message)!=null?p:d,f.Error=m;let g=f.$metadata.requestId;return g&&(f.RequestId=g),f}return V0(t,n)}setQueryCompatError(t,n){var i;let r=(i=n.headers)==null?void 0:i["x-amzn-query-error"];if(t!==void 0&&r!=null){let[s,o]=r.split(";"),a=Object.keys(t),l={Code:s,Type:o};t.Code=s,t.Type=o;for(let u=0;u{var s;return((s=De.of(i).getMergedTraits().awsQueryError)==null?void 0:s[0])===n})}}};c();var rs=class{constructor(){S(this,"serdeContext")}setSerdeContext(t){this.serdeContext=t}};c();var Pd=class{constructor(t,n){S(this,"from");S(this,"to");S(this,"keys");this.from=t,this.to=n;let r=Object.keys(this.from),i=new Set(r);i.delete("__type"),this.keys=i}mark(t){this.keys.delete(t)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let t=this.keys.values().next().value,n=this.from[t];this.to.$unknown=[t,n]}}};c();c();c();c();var KX=/[&<>"]/g,YX={"&":"&","<":"<",">":">",'"':"""};function IR(e){return e.replace(KX,t=>YX[t])}c();c();var XX=/[&"'<>\r\n\u0085\u2028]/g,ZX={"&":"&",'"':""","'":"'","<":"<",">":">","\r":" ","\n":" ","\x85":"…","\u2028":"
"};function PR(e){return e.replace(XX,t=>ZX[t])}var Qs=class{constructor(t){S(this,"value");this.value=t}toString(){return PR(""+this.value)}};var In=class e{constructor(t,n=[]){S(this,"name");S(this,"children");S(this,"attributes",{});this.name=t,this.children=n}static of(t,n,r){let i=new e(t);return n!==void 0&&i.addChildNode(new Qs(n)),r!==void 0&&i.withName(r),i}withName(t){return this.name=t,this}addAttribute(t,n){return this.attributes[t]=n,this}addChildNode(t){return this.children.push(t),this}removeAttribute(t){return delete this.attributes[t],this}n(t){return this.name=t,this}c(t){return this.children.push(t),this}a(t,n){return n!=null&&(this.attributes[t]=n),this}cc(t,n,r=n){if(t[n]!=null){let i=e.of(n,t[n]).withName(r);this.c(i)}}l(t,n,r,i){t[n]!=null&&i().map(o=>{o.withName(r),this.c(o)})}lc(t,n,r,i){if(t[n]!=null){let s=i(),o=new e(r);s.map(a=>{o.c(a)}),this.c(o)}}toString(){let t=!!this.children.length,n=`<${this.name}`,r=this.attributes;for(let i of Object.keys(r)){let s=r[i];s!=null&&(n+=` ${i}="${IR(""+s)}"`)}return n+=t?`>${this.children.map(i=>i.toString()).join("")}`:"/>"}};c();var ux;function lx(e){ux||(ux=new DOMParser);let t=ux.parseFromString(e,"application/xml");if(t.getElementsByTagName("parsererror").length>0)throw new Error("DOMParser XML parsing error.");let n=r=>{var i;if(r.nodeType===Node.TEXT_NODE&&(i=r.textContent)!=null&&i.trim())return r.textContent;if(r.nodeType===Node.ELEMENT_NODE){let s=r;if(s.attributes.length===0&&s.childNodes.length===0)return"";let o={},a=Array.from(s.attributes);for(let u of a)o[`${u.name}`]=u.value;let l=Array.from(s.childNodes);for(let u of l){let p=n(u);if(p!=null){let d=u.nodeName;if(l.length===1&&a.length===0&&d==="#text")return p;o[d]?Array.isArray(o[d])?o[d].push(p):o[d]=[o[d],p]:o[d]=p}else if(l.length===1&&a.length===0)return s.textContent}return o}return null};return{[t.documentElement.nodeName]:n(t.documentElement)}}Xt();var Nd=class extends rs{constructor(n){super();S(this,"settings");S(this,"stringDeserializer");this.settings=n,this.stringDeserializer=new ha(n)}setSerdeContext(n){this.serdeContext=n,this.stringDeserializer.setSerdeContext(n)}read(n,r,i){var p,d;let s=De.of(n),o=s.getMemberSchemas();if(s.isStructSchema()&&s.isMemberSchema()&&!!Object.values(o).find(f=>!!f.getMemberTraits().eventPayload)){let f={},m=Object.keys(o)[0];return o[m].isBlobSchema()?f[m]=r:f[m]=this.read(o[m],r),f}let l=((d=(p=this.serdeContext)==null?void 0:p.utf8Encoder)!=null?d:Bn)(r),u=this.parseXml(l);return this.readSchema(n,i?u[i]:u)}readSchema(n,r){var o,a,l,u,p,d;let i=De.of(n);if(i.isUnitSchema())return;let s=i.getMergedTraits();if(i.isListSchema()&&!Array.isArray(r))return this.readSchema(i,[r]);if(r==null)return r;if(typeof r=="object"){let f=!!s.xmlFlattened;if(i.isListSchema()){let g=i.getValueSchema(),x=[],v=(o=g.getMergedTraits().xmlName)!=null?o:"member",_=f?r:((a=r[0])!=null?a:r)[v];if(_==null)return x;let w=Array.isArray(_)?_:[_];for(let D of w)x.push(this.readSchema(g,D));return x}let m={};if(i.isMapSchema()){let g=i.getKeySchema(),x=i.getValueSchema(),v;f?v=Array.isArray(r)?r:[r]:v=Array.isArray(r.entry)?r.entry:[r.entry];let _=(l=g.getMergedTraits().xmlName)!=null?l:"key",w=(u=x.getMergedTraits().xmlName)!=null?u:"value";for(let D of v){let C=D[_],A=D[w];m[C]=this.readSchema(x,A)}return m}if(i.isStructSchema()){let g=i.isUnionSchema(),x;g&&(x=new Pd(r,m));for(let[v,_]of i.structIterator()){let w=_.getMergedTraits(),D=w.httpPayload?(d=w.xmlName)!=null?d:_.getName():(p=_.getMemberTraits().xmlName)!=null?p:v;g&&x.mark(D),r[D]!=null&&(m[v]=this.readSchema(_,r[D]))}return g&&x.writeUnknown(),m}if(i.isDocumentSchema())return r;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${i.getName(!0)}`)}return i.isListSchema()?[]:i.isMapSchema()||i.isStructSchema()?{}:this.stringDeserializer.read(i,r)}parseXml(n){if(n.length){let r;try{r=lx(n)}catch(a){throw a&&typeof a=="object"&&Object.defineProperty(a,"$responseBodyText",{value:n}),a}let i="#text",s=Object.keys(r)[0],o=r[s];return o[i]&&(o[s]=o[i],delete o[i]),W0(o)}return{}}};c();c();var NR=(e,t)=>{var n;if(((n=t==null?void 0:t.Error)==null?void 0:n.Code)!==void 0)return t.Error.Code;if((t==null?void 0:t.Code)!==void 0)return t.Code;if(e.statusCode==404)return"NotFound"};c();c();var Md=class extends rs{constructor(n){super();S(this,"settings");S(this,"stringBuffer");S(this,"byteBuffer");S(this,"buffer");this.settings=n}write(n,r){var s,o;let i=De.of(n);if(i.isStringSchema()&&typeof r=="string")this.stringBuffer=r;else if(i.isBlobSchema())this.byteBuffer="byteLength"in r?r:((o=(s=this.serdeContext)==null?void 0:s.base64Decoder)!=null?o:Tr)(r);else{this.buffer=this.writeStruct(i,r,void 0);let a=i.getMergedTraits();a.httpPayload&&!a.xmlName&&this.buffer.withName(i.getName())}}flush(){var r;if(this.byteBuffer!==void 0){let i=this.byteBuffer;return delete this.byteBuffer,i}if(this.stringBuffer!==void 0){let i=this.stringBuffer;return delete this.stringBuffer,i}let n=this.buffer;return this.settings.xmlNamespace&&((r=n==null?void 0:n.attributes)!=null&&r.xmlns||n.addAttribute("xmlns",this.settings.xmlNamespace)),delete this.buffer,n.toString()}writeStruct(n,r,i){var d,f,m,g;let s=n.getMergedTraits(),o=n.isMemberSchema()&&!s.httpPayload?(d=n.getMemberTraits().xmlName)!=null?d:n.getMemberName():(f=s.xmlName)!=null?f:n.getName();if(!o||!n.isStructSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${n.getName(!0)}.`);let a=In.of(o),[l,u]=this.getXmlnsAttribute(n,i);for(let[x,v]of n.structIterator()){let _=r[x];if(_!=null||v.isIdempotencyToken()){if(v.getMergedTraits().xmlAttribute){a.addAttribute((m=v.getMergedTraits().xmlName)!=null?m:x,this.writeSimple(v,_));continue}if(v.isListSchema())this.writeList(v,_,a,u);else if(v.isMapSchema())this.writeMap(v,_,a,u);else if(v.isStructSchema())a.addChildNode(this.writeStruct(v,_,u));else{let w=In.of((g=v.getMergedTraits().xmlName)!=null?g:v.getMemberName());this.writeSimpleInto(v,_,w,u),a.addChildNode(w)}}}let{$unknown:p}=r;if(p&&n.isUnionSchema()&&Array.isArray(p)&&Object.keys(r).length===1){let[x,v]=p,_=In.of(x);if(typeof v!="string")if(r instanceof In||r instanceof Qs)a.addChildNode(r);else throw new Error("@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.");this.writeSimpleInto(0,v,_,u),a.addChildNode(_)}return u&&a.addAttribute(l,u),a}writeList(n,r,i,s){var g;if(!n.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${n.getName(!0)}`);let o=n.getMergedTraits(),a=n.getValueSchema(),l=a.getMergedTraits(),u=!!l.sparse,p=!!o.xmlFlattened,[d,f]=this.getXmlnsAttribute(n,s),m=(x,v)=>{var _,w,D,C;if(a.isListSchema())this.writeList(a,Array.isArray(v)?v:[v],x,f);else if(a.isMapSchema())this.writeMap(a,v,x,f);else if(a.isStructSchema()){let A=this.writeStruct(a,v,f);x.addChildNode(A.withName(p?(_=o.xmlName)!=null?_:n.getMemberName():(w=l.xmlName)!=null?w:"member"))}else{let A=In.of(p?(D=o.xmlName)!=null?D:n.getMemberName():(C=l.xmlName)!=null?C:"member");this.writeSimpleInto(a,v,A,f),x.addChildNode(A)}};if(p)for(let x of r)(u||x!=null)&&m(i,x);else{let x=In.of((g=o.xmlName)!=null?g:n.getMemberName());f&&x.addAttribute(d,f);for(let v of r)(u||v!=null)&&m(x,v);i.addChildNode(x)}}writeMap(n,r,i,s,o=!1){var D,C,A,k;if(!n.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${n.getName(!0)}`);let a=n.getMergedTraits(),l=n.getKeySchema(),p=(D=l.getMergedTraits().xmlName)!=null?D:"key",d=n.getValueSchema(),f=d.getMergedTraits(),m=(C=f.xmlName)!=null?C:"value",g=!!f.sparse,x=!!a.xmlFlattened,[v,_]=this.getXmlnsAttribute(n,s),w=(I,L,U)=>{let $=In.of(p,L),[W,pe]=this.getXmlnsAttribute(l,_);pe&&$.addAttribute(W,pe),I.addChildNode($);let J=In.of(m);d.isListSchema()?this.writeList(d,U,J,_):d.isMapSchema()?this.writeMap(d,U,J,_,!0):d.isStructSchema()?J=this.writeStruct(d,U,_):this.writeSimpleInto(d,U,J,_),I.addChildNode(J)};if(x)for(let I in r){let L=r[I];if(g||L!=null){let U=In.of((A=a.xmlName)!=null?A:n.getMemberName());w(U,I,L),i.addChildNode(U)}}else{let I;o||(I=In.of((k=a.xmlName)!=null?k:n.getMemberName()),_&&I.addAttribute(v,_),i.addChildNode(I));for(let L in r){let U=r[L];if(g||U!=null){let $=In.of("entry");w($,L,U),(o?i:I).addChildNode($)}}}}writeSimple(n,r){var o,a;if(r===null)throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");let i=De.of(n),s=null;if(r&&typeof r=="object")if(i.isBlobSchema())s=((a=(o=this.serdeContext)==null?void 0:o.base64Encoder)!=null?a:Gn)(r);else if(i.isTimestampSchema()&&r instanceof Date)switch(ma(i,this.settings)){case 5:s=r.toISOString().replace(".000Z","Z");break;case 6:s=Du(r);break;case 7:s=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",r),s=Du(r);break}else{if(i.isBigDecimalSchema()&&r)return r instanceof fa?r.string:String(r);throw i.isMapSchema()||i.isListSchema()?new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."):new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${i.getName(!0)}`)}if((i.isBooleanSchema()||i.isNumericSchema()||i.isBigIntegerSchema()||i.isBigDecimalSchema())&&(s=String(r)),i.isStringSchema()&&(r===void 0&&i.isIdempotencyToken()?s=Xs():s=String(r)),s===null)throw new Error(`Unhandled schema-value pair ${i.getName(!0)}=${r}`);return s}writeSimpleInto(n,r,i,s){let o=this.writeSimple(n,r),a=De.of(n),l=new Qs(o),[u,p]=this.getXmlnsAttribute(a,s);p&&i.addAttribute(u,p),i.addChildNode(l)}getXmlnsAttribute(n,r){var a;let i=n.getMergedTraits(),[s,o]=(a=i.xmlNamespace)!=null?a:[];return o&&o!==r?[s?`xmlns:${s}`:"xmlns",o]:[void 0,void 0]}};var Ld=class extends rs{constructor(n){super();S(this,"settings");this.settings=n}createSerializer(){let n=new Md(this.settings);return n.setSerdeContext(this.serdeContext),n}createDeserializer(){let n=new Nd(this.settings);return n.setSerdeContext(this.serdeContext),n}};var $d=class extends gd{constructor(n){super(n);S(this,"codec");S(this,"serializer");S(this,"deserializer");S(this,"mixin",new Id);let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:n.xmlNamespace,serviceNamespace:n.defaultNamespace};this.codec=new Ld(r),this.serializer=new vd(this.codec.createSerializer(),r),this.deserializer=new yd(this.codec.createDeserializer(),r),this.compositeErrorRegistry}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(n,r,i){let s=await super.serializeRequest(n,r,i),o=De.of(n.input);if(!s.headers["content-type"]){let a=this.mixin.resolveRestContentType(this.getDefaultContentType(),o);a&&(s.headers["content-type"]=a)}return typeof s.body=="string"&&s.headers["content-type"]===this.getDefaultContentType()&&!s.body.startsWith("'+s.body),s}async deserializeResponse(n,r,i){return super.deserializeResponse(n,r,i)}async handleError(n,r,i,s,o){var v,_,w,D,C,A,k,I,L,U,$;let a=(v=NR(i,s))!=null?v:"Unknown";if(this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace),s.Error&&typeof s.Error=="object")for(let W of Object.keys(s.Error))s[W]=s.Error[W],W.toLowerCase()==="message"&&(s.message=s.Error[W]);s.RequestId&&!o.requestId&&(o.requestId=s.RequestId);let{errorSchema:l,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,i,s,o),p=De.of(l),d=(k=(A=(C=(D=(_=s.Error)==null?void 0:_.message)!=null?D:(w=s.Error)==null?void 0:w.Message)!=null?C:s.message)!=null?A:s.Message)!=null?k:"UnknownError",f=(I=this.compositeErrorRegistry.getErrorCtor(l))!=null?I:Error,m=new f(d);await this.deserializeHttpMessage(l,r,i,s);let g={},x=this.codec.createDeserializer();for(let[W,pe]of p.structIterator()){let J=(L=pe.getMergedTraits().xmlName)!=null?L:W,Te=($=(U=s.Error)==null?void 0:U[J])!=null?$:s[J];g[W]=x.readSchema(pe,Te)}throw this.mixin.decorateServiceException(Object.assign(m,u,{$fault:p.getMergedTraits().error,message:d},g),s)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(n){for(let[,r]of n.structIterator())if(r.getMergedTraits().httpPayload)return!(r.isStructSchema()||r.isMapSchema()||r.isListSchema());return!1}};var Ru=class extends $d{async serializeRequest(t,n,r){var u;let i=await super.serializeRequest(t,n,r),s=De.of(t.input),o=s.getSchema(),a=0,l=(u=o[6])!=null?u:0;if(n&&typeof n=="object")for(let[p,d]of s.structIterator()){if(++a>l)break;if(p==="Bucket"){if(!n.Bucket&&d.getMergedTraits().httpLabel)throw new Error("No value provided for input HTTP label: Bucket.");break}}return i}};c();var QX=void 0;function JX(e){return e===void 0?!0:typeof e=="string"&&e.length<=50}function MR(e){var r;let t=Di((r=e.userAgentAppId)!=null?r:QX),{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n=="string"?[[n]]:n,userAgentAppId:async()=>{var s,o;let i=await t();if(!JX(i)){let a=((o=(s=e.logger)==null?void 0:s.constructor)==null?void 0:o.name)==="NoOpLogger"||!e.logger?console:e.logger;typeof i!="string"?a==null||a.warn("userAgentAppId must be a string or undefined."):i.length>50&&(a==null||a.warn("The provided userAgentAppId exceeds the maximum length of 50 characters."))}return i}})}c();c();c();c();c();var ku=class e{constructor(t,n,r,i){S(this,"nodes");S(this,"root");S(this,"conditions");S(this,"results");this.nodes=t,this.root=n,this.conditions=r,this.results=i}static from(t,n,r,i){return new e(t,n,r,i)}};c();var Ud=class{constructor({size:t,params:n}){S(this,"capacity");S(this,"data",new Map);S(this,"parameters",[]);this.capacity=t!=null?t:50,n&&(this.parameters=n)}get(t,n){let r=this.hash(t);if(r===!1)return n();if(!this.data.has(r)){if(this.data.size>this.capacity+10){let i=this.data.keys(),s=0;for(;;){let{value:o,done:a}=i.next();if(this.data.delete(o),a||++s>10)break}}this.data.set(r,n())}return this.data.get(r)}size(){return this.data.size}hash(t){var i;let n="",{parameters:r}=this;if(r.length===0)return!1;for(let s of r){let o=String((i=t[s])!=null?i:"");if(o.includes("|;"))return!1;n+=o+"|;"}return n}};c();c();var vt=class extends Error{constructor(t){super(t),this.name="EndpointError"}};c();c();var LR="endpoints";c();function Ou(e){return typeof e!="object"||e==null?e:"ref"in e?`$${Ou(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(Ou).join(", ")})`:JSON.stringify(e,null,2)}c();c();c();var ya={};c();c();var $R=(e,t)=>e===t;c();function UR(...e){for(let t of e)if(t!=null)return t}c();c();var jR=e=>{let t=e.split("."),n=[];for(let r of t){let i=r.indexOf("[");if(i!==-1){if(r.indexOf("]")!==r.length-1)throw new vt(`Path: '${e}' does not end with ']'`);let s=r.slice(i+1,-1);if(Number.isNaN(parseInt(s)))throw new vt(`Invalid array index: '${s}' in path: '${e}'`);i!==0&&n.push(r.slice(0,i)),n.push(s)}else n.push(r)}return n};var jd=(e,t)=>jR(t).reduce((n,r)=>{if(typeof n!="object")throw new vt(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);if(Array.isArray(n)){let i=parseInt(r);return n[i<0?n.length+i:i]}return n[r]},e);c();var zR=e=>e!=null;c();var eZ=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),Js=(e,t=!1)=>{if(!t)return eZ.test(e);let n=e.split(".");for(let r of n)if(!Js(r))return!1;return!0};c();function qR(e,t,n){return e?t:n}c();var HR=e=>!e;c();c();var tZ=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),Fu=e=>tZ.test(e)||e.startsWith("[")&&e.endsWith("]");var px={[ua.HTTP]:80,[ua.HTTPS]:443},GR=e=>{let t=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){let{hostname:f,port:m,protocol:g="",path:x="",query:v={}}=e,_=new URL(`${g}//${f}${m?`:${m}`:""}${x}`);return _.search=Object.entries(v).map(([w,D])=>`${w}=${D}`).join("&"),_}return new URL(e)}catch(f){return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let n=t.href,{host:r,hostname:i,pathname:s,protocol:o,search:a}=t;if(a)return null;let l=o.slice(0,-1);if(!Object.values(ua).includes(l))return null;let u=Fu(i),p=n.includes(`${r}:${px[l]}`)||typeof e=="string"&&e.includes(`${r}:${px[l]}`),d=`${r}${p?`:${px[l]}`:""}`;return{scheme:l,authority:d,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:u}};c();function VR(e,t,n){if(n===1)return[e];if(e==="")return[""];let r=e.split(t);return n===0?r:r.slice(0,n-1).concat(r.slice(1).join(t))}c();var WR=(e,t)=>e===t;c();var KR=(e,t,n,r)=>e==null||t>=n||e.lengthencodeURIComponent(e).replace(/[!*'()]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`);var XR={booleanEquals:$R,coalesce:UR,getAttr:jd,isSet:zR,isValidHostLabel:Js,ite:qR,not:HR,parseURL:GR,split:VR,stringEquals:WR,substring:KR,uriEncode:YR};c();var zd=(e,t)=>{var o,a;let n=[],{referenceRecord:r,endpointParams:i}=t,s=0;for(;s{var n;return(n=t.referenceRecord[e])!=null?n:t.endpointParams[e]};var eo=(e,t,n)=>{if(typeof e=="string")return zd(e,n);if(e.fn)return QR.callFunction(e,n);if(e.ref)return ZR(e,n);throw new vt(`'${t}': ${String(e)} is not a string, function or reference.`)},qd=({fn:e,argv:t},n)=>{let r=Array(t.length);for(let o=0;o{var s,o;let{assign:n}=e;if(n&&n in t.referenceRecord)throw new vt(`'${n}' is already defined in Reference Record.`);let r=qd(e,t);(o=(s=t.logger)==null?void 0:s.debug)==null||o.call(s,`${LR} evaluateCondition: ${Ou(e)} = ${Ou(r)}`);let i=r===""?!0:!!r;return n!=null?{result:i,toAssign:{name:n,value:r}}:{result:i}};c();var e3=(e,t)=>Object.entries(e!=null?e:{}).reduce((n,[r,i])=>(n[r]=i.map(s=>{let o=eo(s,"Header value entry",t);if(typeof o!="string")throw new vt(`Header '${r}' value '${o}' is not a string`);return o}),n),{});c();var dx=(e,t)=>Object.entries(e).reduce((n,[r,i])=>(n[r]=n3.getEndpointProperty(i,t),n),{}),t3=(e,t)=>{if(Array.isArray(e))return e.map(n=>t3(n,t));switch(typeof e){case"string":return zd(e,t);case"object":if(e===null)throw new vt(`Unexpected endpoint property: ${e}`);return n3.getEndpointProperties(e,t);case"boolean":return e;default:throw new vt(`Unexpected endpoint property type: ${typeof e}`)}},n3={getEndpointProperty:t3,getEndpointProperties:dx};c();var r3=(e,t)=>{let n=eo(e,"Endpoint URL",t);if(typeof n=="string")try{return new URL(n)}catch(r){throw console.error(`Failed to construct URL with ${n}`,r),r}throw new vt(`Endpoint URL must be a string, got ${typeof n}`)};var fx=1e8,mx=(e,t)=>{let{nodes:n,root:r,results:i,conditions:s}=e,o=r,a={},l={referenceRecord:a,endpointParams:t.endpointParams,logger:t.logger};for(;o!==1&&o!==-1&&o=0===v.result?d:f}if(o>=fx){let u=i[o-fx];if(u[0]===-1){let[,m]=u;throw new vt(eo(m,"Error",l))}let[p,d,f]=u;return{url:r3(p,l),properties:dx(d,l),headers:e3(f!=null?f:{},l)}}throw new vt("No matching endpoint.")};c();c();var hx=(e,t=!1)=>{if(t){for(let n of e.split("."))if(!hx(n))return!1;return!0}return!(!Js(e)||e.length<3||e.length>63||e!==e.toLowerCase()||Fu(e))};c();var i3=e=>{let t=e.split(":");if(t.length<6)return null;let[n,r,i,s,o,...a]=t;if(n!=="arn"||r===""||i===""||a.join(":")==="")return null;let l=a.map(u=>u.split("/")).flat();return{partition:r,service:i,region:s,accountId:o,resourceId:l}};c();var s3={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],version:"1.1"};var rZ=s3,iZ="",o3=e=>{let{partitions:t}=rZ;for(let r of t){let{regions:i,outputs:s}=r;for(let[o,a]of Object.entries(i))if(o===e)return{...s,...a}}for(let r of t){let{regionRegex:i,outputs:s}=r;if(new RegExp(i).test(e))return{...s}}let n=t.find(r=>r.id==="aws");if(!n)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...n.outputs}};var a3=()=>iZ;var gx={isVirtualHostableS3Bucket:hx,parseArn:i3,partition:o3};ya.aws=gx;c();c();c();c();c();c();c();c();c();c();c();c();var cr;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(cr||(cr={}));var is=3,yx=cr.STANDARD;c();c();c();var c3=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],u3=["TimeoutError","RequestTimeout","RequestTimeoutException"],l3=[500,502,503,504],p3=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],d3=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"];var sZ=e=>(e==null?void 0:e.$retryable)!==void 0;var oZ=e=>{var t;return(t=e.$metadata)==null?void 0:t.clockSkewCorrected},aZ=e=>{let t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return e&&e instanceof TypeError?t.has(e.message):!1},Hd=e=>{var t,n;return((t=e.$metadata)==null?void 0:t.httpStatusCode)===429||c3.includes(e.name)||((n=e.$retryable)==null?void 0:n.throttling)==!0},Gd=(e,t=0)=>{var n;return sZ(e)||oZ(e)||u3.includes(e.name)||p3.includes((e==null?void 0:e.code)||"")||d3.includes((e==null?void 0:e.code)||"")||l3.includes(((n=e.$metadata)==null?void 0:n.httpStatusCode)||0)||aZ(e)||cZ(e)||e.cause!==void 0&&t<=10&&Gd(e.cause,t+1)},f3=e=>{var t;if(((t=e.$metadata)==null?void 0:t.httpStatusCode)!==void 0){let n=e.$metadata.httpStatusCode;return 500<=n&&n<=599&&!Gd(e)}return!1};function cZ(e){return e.code==="ERR_HTTP2_STREAM_ERROR"&&e.message.includes("NGHTTP2_REFUSED_STREAM")}var Wd=class Wd{constructor(t){S(this,"beta");S(this,"minCapacity");S(this,"minFillRate");S(this,"scaleConstant");S(this,"smooth");S(this,"enabled",!1);S(this,"availableTokens",0);S(this,"lastMaxRate",0);S(this,"measuredTxRate",0);S(this,"requestCount",0);S(this,"fillRate");S(this,"lastThrottleTime");S(this,"lastTimestamp",0);S(this,"lastTxRateBucket");S(this,"maxCapacity");S(this,"timeWindow",0);var n,r,i,s,o;this.beta=(n=t==null?void 0:t.beta)!=null?n:.7,this.minCapacity=(r=t==null?void 0:t.minCapacity)!=null?r:1,this.minFillRate=(i=t==null?void 0:t.minFillRate)!=null?i:.5,this.scaleConstant=(s=t==null?void 0:t.scaleConstant)!=null?s:.4,this.smooth=(o=t==null?void 0:t.smooth)!=null?o:.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(t){var o;let n;this.updateMeasuredRate();let r=t;if((r==null?void 0:r.errorType)==="THROTTLING"||Hd((o=r==null?void 0:r.error)!=null?o:t)){let a=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=a,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),n=this.cubicThrottle(a),this.enableTokenBucket()}else this.calculateTimeWindow(),n=this.cubicSuccess(this.getCurrentTimeInSeconds());let s=Math.min(n,2*this.measuredTxRate);this.updateTokenBucketRate(s)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(t){if(this.enabled){if(this.refillTokenBucket(),t>this.availableTokens){let n=(t-this.availableTokens)/this.fillRate*1e3;await new Promise(r=>Wd.setTimeoutFn(r,n))}this.availableTokens=this.availableTokens-t}}refillTokenBucket(){let t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}let n=(t-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+n),this.lastTimestamp=t}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(t){return this.getPrecise(t*this.beta)}cubicSuccess(t){return this.getPrecise(this.scaleConstant*Math.pow(t-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(t){this.refillTokenBucket(),this.fillRate=Math.max(t,this.minFillRate),this.maxCapacity=Math.max(t,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let t=this.getCurrentTimeInSeconds(),n=Math.floor(t*2)/2;if(this.requestCount++,n>this.lastTxRateBucket){let r=this.requestCount/(n-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(r*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=n}}getPrecise(t){return parseFloat(t.toFixed(8))}};S(Wd,"setTimeoutFn",setTimeout);var Vd=Wd;c();c();var m3="amz-sdk-invocation-id",h3="amz-sdk-request";c();c();var g3,ss=class ss{static delay(){return ss.v2026?50:100}static throttlingDelay(){return ss.v2026?1e3:500}static cost(){return ss.v2026?14:5}static throttlingCost(){return ss.v2026?5:10}static modifiedCostType(){return ss.v2026?"THROTTLING":"TRANSIENT"}};S(ss,"v2026",typeof process!="undefined"&&((g3=process.env)==null?void 0:g3.SMITHY_NEW_RETRIES_2026)==="true");var Vn=ss;var Kd=class{constructor(){S(this,"x",Vn.delay())}computeNextBackoffDelay(t){let i=Math.random()*Math.min(this.x*2**t,2e4);return Math.floor(i)}setDelayBase(t){this.x=t}};c();var Bu=class{constructor(t,n,r,i){S(this,"delay");S(this,"count");S(this,"cost");S(this,"longPoll");this.delay=t,this.count=n,this.cost=r,this.longPoll=i}getRetryCount(){return this.count}getRetryDelay(){return Math.min(2e4,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}};var to=class{constructor(t){S(this,"mode",cr.STANDARD);S(this,"capacity",500);S(this,"retryBackoffStrategy");S(this,"maxAttemptsProvider");S(this,"baseDelay");var n,r,i;typeof t=="number"?this.maxAttemptsProvider=async()=>t:typeof t=="function"?this.maxAttemptsProvider=t:t&&typeof t=="object"&&(this.maxAttemptsProvider=async()=>t.maxAttempts,this.baseDelay=t.baseDelay,this.retryBackoffStrategy=t.backoff),(n=this.maxAttemptsProvider)!=null||(this.maxAttemptsProvider=async()=>is),(r=this.baseDelay)!=null||(this.baseDelay=Vn.delay()),(i=this.retryBackoffStrategy)!=null||(this.retryBackoffStrategy=new Kd)}async acquireInitialRetryToken(t){return new Bu(Vn.delay(),0,void 0,Vn.v2026&&t.includes(":longpoll"))}async refreshRetryTokenForRetry(t,n){var s,o,a;let r=await this.getMaxAttempts(),i=this.shouldRetry(t,n,r);if(i||(s=t.isLongPoll)!=null&&s.call(t)){let l=n.errorType;this.retryBackoffStrategy.setDelayBase(l==="THROTTLING"?Vn.throttlingDelay():this.baseDelay);let u=this.retryBackoffStrategy.computeNextBackoffDelay(t.getRetryCount()),p=u;if(n.retryAfterHint instanceof Date&&(p=Math.max(u,Math.min(n.retryAfterHint.getTime()-Date.now(),u+5e3))),i){let d=this.getCapacityCost(l);return this.capacity-=d,new Bu(p,t.getRetryCount()+1,d,(a=(o=t.isLongPoll)==null?void 0:o.call(t))!=null?a:!1)}else throw Object.assign(new Error("No retry token available"),{$backoff:Vn.v2026?p:0})}throw new Error("No retry token available")}recordSuccess(t){var n;this.capacity=Math.min(500,this.capacity+((n=t.getRetryCost())!=null?n:1))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(t){return console.warn(`Max attempts provider could not resolve. Using default of ${is}`),is}}shouldRetry(t,n,r){return t.getRetryCount()+1=this.getCapacityCost(n.errorType)&&this.isRetryableError(n.errorType)}getCapacityCost(t){return t===Vn.modifiedCostType()?Vn.throttlingCost():Vn.cost()}isRetryableError(t){return t==="THROTTLING"||t==="TRANSIENT"}async maxAttempts(){return this.maxAttemptsProvider()}};var Yd=class{constructor(t,n){S(this,"mode",cr.ADAPTIVE);S(this,"rateLimiter");S(this,"standardRetryStrategy");let{rateLimiter:r}=n!=null?n:{};this.rateLimiter=r!=null?r:new Vd,this.standardRetryStrategy=n?new to({maxAttempts:typeof t=="number"?t:3,...n}):new to(t)}async acquireInitialRetryToken(t){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(t)}async refreshRetryTokenForRetry(t,n){return this.rateLimiter.updateClientSendingRate(n),this.standardRetryStrategy.refreshRetryTokenForRetry(t,n)}recordSuccess(t){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(t)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};var pZ=/\d{12}\.ddb/;async function y3(e,t,n){var s,o,a,l,u,p;let r=n.request;if(((s=r==null?void 0:r.headers)==null?void 0:s["smithy-protocol"])==="rpc-v2-cbor"&&ut(e,"PROTOCOL_RPC_V2_CBOR","M"),typeof t.retryStrategy=="function"){let d=await t.retryStrategy();if(typeof d.mode=="string")switch(d.mode){case cr.ADAPTIVE:ut(e,"RETRY_MODE_ADAPTIVE","F");break;case cr.STANDARD:ut(e,"RETRY_MODE_STANDARD","E");break}}if(typeof t.accountIdEndpointMode=="function"){let d=e.endpointV2;switch(String((o=d==null?void 0:d.url)==null?void 0:o.hostname).match(pZ)&&ut(e,"ACCOUNT_ID_ENDPOINT","O"),await((a=t.accountIdEndpointMode)==null?void 0:a.call(t))){case"disabled":ut(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":ut(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":ut(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let i=(u=(l=e.__smithy_context)==null?void 0:l.selectedHttpAuthScheme)==null?void 0:u.identity;if(i!=null&&i.$source){let d=i;d.accountId&&ut(e,"RESOLVED_ACCOUNT_ID","T");for(let[f,m]of Object.entries((p=d.$source)!=null?p:{}))ut(e,f,m)}}c();var xx="user-agent",Xd="x-amz-user-agent";var x3=/[^!$%&'*+\-.^_`|~\w]/g,v3=/[^!$%&'*+\-.^_`|~\w#]/g;c();function b3(e){let t="";for(let n in e){let r=e[n];if(t.length+r.length+1<=1024){t.length?t+=","+r:t+=r;continue}break}return t}var dZ=e=>(t,n)=>async r=>{var g,x,v,_;let{request:i}=r;if(!be.isInstance(i))return t(r);let{headers:s}=i,o=((g=n==null?void 0:n.userAgent)==null?void 0:g.map(Zd))||[],a=(await e.defaultUserAgentProvider()).map(Zd);await y3(n,e,r);let l=n;a.push(`m/${b3(Object.assign({},(x=n.__smithy_context)==null?void 0:x.features,(v=l.__aws_sdk_context)==null?void 0:v.features))}`);let u=((_=e==null?void 0:e.customUserAgent)==null?void 0:_.map(Zd))||[],p=await e.userAgentAppId();p&&a.push(Zd(["app",`${p}`]));let d=a3(),f=(d?[d]:[]).concat([...a,...o,...u]).join(" "),m=[...a.filter(w=>w.startsWith("aws-sdk-")),...u].join(" ");return e.runtime!=="browser"?(m&&(s[Xd]=s[Xd]?`${s[xx]} ${m}`:m),s[xx]=f):s[Xd]=f,t({...r,request:i})},Zd=e=>{var o;let t=e[0].split("/").map(a=>a.replace(x3,"-")).join("/"),n=(o=e[1])==null?void 0:o.replace(v3,"-"),r=t.indexOf("/"),i=t.substring(0,r),s=t.substring(r+1);return i==="api"&&(s=s.toLowerCase()),[i,s,n].filter(a=>a&&a.length>0).reduce((a,l,u)=>{switch(u){case 0:return l;case 1:return`${a}/${l}`;default:return`${a}#${l}`}},"")},fZ={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},E3=e=>({applyToStack:t=>{t.add(dZ(e),fZ)}});c();var D3=!1;c();var S3=!1;c();c();var C3=new Set,T3=(e,t=Js)=>{if(!C3.has(e)&&!t(e))if(e==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw new Error(`Region not accepted: region="${e}" is not a valid hostname component.`);else C3.add(e)};c();c();var Qd=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));var A3=e=>Qd(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;var R3=e=>{let{region:t,useFipsEndpoint:n}=e;if(!t)throw new Error("Region is missing");return Object.assign(e,{region:async()=>{let r=typeof t=="function"?await t():t,i=A3(r);return T3(i),i},useFipsEndpoint:async()=>{let r=typeof t=="string"?t:await t();return Qd(r)?!0:typeof n!="function"?Promise.resolve(!!n):n()}})};c();var k3=e=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)});c();var O3="content-length";function mZ(e){return t=>async n=>{let r=n.request;if(be.isInstance(r)){let{body:i,headers:s}=r;if(i&&Object.keys(s).map(o=>o.toLowerCase()).indexOf(O3)===-1)try{let o=e(i);r.headers={...r.headers,[O3]:String(o)}}catch(o){}}return t({...n,request:r})}}var hZ={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},F3=e=>({applyToStack:t=>{t.add(mZ(e.bodyLengthChecker),hZ)}});c();c();var B3=async e=>{let t=(e==null?void 0:e.Bucket)||"";if(typeof e.Bucket=="string"&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),bZ(t)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!vZ(t)||t.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},gZ=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,yZ=/(\d+\.){3}\d+/,xZ=/\.\./;var vZ=e=>gZ.test(e)&&!yZ.test(e)&&!xZ.test(e),bZ=e=>{let[t,n,r,,,i]=e.split(":"),s=t==="arn"&&e.split(":").length>=6,o=!!(s&&n&&r&&i);if(s&&!o)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return o};c();var I3=(e,t,n,r=!1)=>{let i=async()=>{var o,a;let s;if(r){let l=n.clientContextParams,u=l==null?void 0:l[e];s=(o=u!=null?u:n[e])!=null?o:n[t]}else s=(a=n[e])!=null?a:n[t];return typeof s=="function"?s():s};return e==="credentialScope"||t==="CredentialScope"?async()=>{var a;let s=typeof n.credentials=="function"?await n.credentials():n.credentials;return(a=s==null?void 0:s.credentialScope)!=null?a:s==null?void 0:s.CredentialScope}:e==="accountId"||t==="AccountId"?async()=>{var a;let s=typeof n.credentials=="function"?await n.credentials():n.credentials;return(a=s==null?void 0:s.accountId)!=null?a:s==null?void 0:s.AccountId}:e==="endpoint"||t==="endpoint"?async()=>{if(n.isCustomEndpoint===!1)return;let s=await i();if(s&&typeof s=="object"){if("url"in s)return s.url.href;if("hostname"in s){let{protocol:o,hostname:a,port:l,path:u}=s;return`${o}//${a}${l?":"+l:""}${u}`}}return s}:i};c();var Jd=async e=>{};c();var ef=e=>{if(typeof e=="object"){if("url"in e){let t=_i(e.url);if(e.headers){t.headers={};for(let[n,r]of Object.entries(e.headers))t.headers[n.toLowerCase()]=r.join(", ")}return t}return e}return _i(e)};var P3=async(e,t,n,r)=>{var o;if(!n.isCustomEndpoint){let a;n.serviceConfiguredEndpoint?a=await n.serviceConfiguredEndpoint():a=await Jd(n.serviceId),a&&(n.endpoint=()=>Promise.resolve(ef(a)),n.isCustomEndpoint=!0)}let i=await bx(e,t,n);if(typeof n.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");let s=n.endpointProvider(i,r);if(n.isCustomEndpoint&&n.endpoint){let a=await n.endpoint();if(a!=null&&a.headers){(o=s.headers)!=null||(s.headers={});for(let[l,u]of Object.entries(a.headers))s.headers[l]=Array.isArray(u)?u:[u]}}return s},bx=async(e,t,n)=>{var s;let r={},i=((s=t==null?void 0:t.getEndpointParameterInstructions)==null?void 0:s.call(t))||{};for(let[o,a]of Object.entries(i))switch(a.type){case"staticContextParams":r[o]=a.value;break;case"contextParams":r[o]=e[a.name];break;case"clientContextParams":case"builtInParams":r[o]=await I3(a.name,o,n,a.type!=="builtInParams")();break;case"operationContextParams":r[o]=a.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(a))}return Object.keys(i).length===0&&Object.assign(r,n),String(n.serviceId).toLowerCase()==="s3"&&await B3(r),r};c();var N3=({config:e,instructions:t})=>(n,r)=>async i=>{var a,l,u;e.isCustomEndpoint&&wR(r,"ENDPOINT_OVERRIDE","N");let s=await P3(i.input,{getEndpointParameterInstructions(){return t}},{...e},r);r.endpointV2=s,r.authSchemes=(a=s.properties)==null?void 0:a.authSchemes;let o=(l=r.authSchemes)==null?void 0:l[0];if(o){r.signing_region=o.signingRegion,r.signing_service=o.signingName;let p=mn(r),d=(u=p==null?void 0:p.selectedHttpAuthScheme)==null?void 0:u.httpAuthOption;d&&(d.signingProperties=Object.assign(d.signingProperties||{},{signing_region:o.signingRegion,signingRegion:o.signingRegion,signing_service:o.signingName,signingName:o.signingName,signingRegionSet:o.signingRegionSet},o.properties))}return n({...i})};c();c();var M3={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};var _Z={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:M3.name},mt=(e,t)=>({applyToStack:n=>{n.addRelativeTo(N3({config:e,instructions:t}),_Z)}});c();var L3=e=>{var u;let t=(u=e.tls)!=null?u:!0,{endpoint:n,useDualstackEndpoint:r,useFipsEndpoint:i}=e,s=n!=null?async()=>ef(await Zt(n)()):void 0,a=Object.assign(e,{endpoint:s,tls:t,isCustomEndpoint:!!n,useDualstackEndpoint:Zt(r!=null?r:!1),useFipsEndpoint:Zt(i!=null?i:!1)}),l;return a.serviceConfiguredEndpoint=async()=>(e.serviceId&&!l&&(l=Jd(e.serviceId)),l),a};c();var $3=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`);c();var U3=e=>{var o;let{retryStrategy:t,retryMode:n}=e,r=Zt((o=e.maxAttempts)!=null?o:is),i=t?Promise.resolve(t):void 0,s=async()=>await Zt(n)()===cr.ADAPTIVE?new Yd(r):new to(r);return Object.assign(e,{maxAttempts:r,retryStrategy:()=>i!=null?i:i=s()})};c();c();var j3=e=>(e==null?void 0:e.body)instanceof ReadableStream;c();function z3(e,t){var n,r,i,s;if(Vt.isInstance(e))for(let o of Object.keys(e.headers)){let a=o.toLowerCase();if(a==="retry-after"){let l=e.headers[o],u=NaN;if(l.endsWith("GMT"))try{u=(fd(l).getTime()-Date.now())/1e3}catch(p){(n=t==null?void 0:t.trace)==null||n.call(t,"Failed to parse retry-after header"),(r=t==null?void 0:t.trace)==null||r.call(t,p)}else l.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?u=Number((i=l.match(/ GMT, ([\d.]+)$/))==null?void 0:i[1]):l.match(/^((\d+)|(\d+\.\d+))$/)?u=Number(l):Date.parse(l)>=Date.now()&&(u=(Date.parse(l)-Date.now())/1e3);return isNaN(u)?void 0:new Date(Date.now()+u*1e3)}else if(a==="x-amz-retry-after"){let l=e.headers[o],u=Number(l);if(isNaN(u)){(s=t==null?void 0:t.trace)==null||s.call(t,`Failed to parse x-amz-retry-after=${l}`);return}return new Date(Date.now()+u)}}}var wZ=e=>(t,n)=>async r=>{var o,a;let i=await e.retryStrategy(),s=await e.maxAttempts();if(EZ(i)){i=i;let l=await i.acquireInitialRetryToken(((o=n.partition_id)!=null?o:"")+(n.__retryLongPoll?":longpoll":"")),u=new Error,p=0,d=0,{request:f}=r,m=be.isInstance(f);for(m&&(f.headers[m3]=Xs());;)try{m&&(f.headers[h3]=`attempt=${p+1}; max=${s}`);let{response:g,output:x}=await t(r);return i.recordSuccess(l),x.$metadata.attempts=p+1,x.$metadata.totalRetryDelay=d,{response:g,output:x}}catch(g){let x=DZ(g,e.logger);if(u=$3(g),m&&j3(f))throw(a=n.logger instanceof ns?console:n.logger)==null||a.warn("An error was encountered in a non-retryable streaming request."),u;try{l=await i.refreshRetryTokenForRetry(l,x)}catch(_){throw typeof _.$backoff=="number"&&await q3(_.$backoff),u.$metadata||(u.$metadata={}),u.$metadata.attempts=p+1,u.$metadata.totalRetryDelay=d,u}p=l.getRetryCount();let v=l.getRetryDelay();d+=v,await q3(v)}}else return i=i,i!=null&&i.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(t,r)},q3=e=>new Promise(t=>setTimeout(t,e)),EZ=e=>typeof e.acquireInitialRetryToken!="undefined"&&typeof e.refreshRetryTokenForRetry!="undefined"&&typeof e.recordSuccess!="undefined",DZ=(e,t)=>{let n={error:e,errorType:SZ(e)},r=z3(e.$response,t);return r&&(n.retryAfterHint=r),n},SZ=e=>Hd(e)?"THROTTLING":Gd(e)?"TRANSIENT":f3(e)?"SERVER_ERROR":"CLIENT_ERROR",CZ={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},H3=e=>({applyToStack:t=>{t.add(wZ(e),CZ)}});c();c();c();c();var _x=e=>{var t,n,r;return Vt.isInstance(e)?(r=(t=e.headers)==null?void 0:t.date)!=null?r:(n=e.headers)==null?void 0:n.Date:void 0};c();var xa=e=>new Date(Date.now()+e);c();c();var G3=(e,t)=>Math.abs(xa(t).getTime()-e)>=3e5;var wx=(e,t)=>{let n=Date.parse(e);return G3(n,t)?n-Date.now():t};var Iu=(e,t)=>{if(!t)throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},tf=async e=>{var u,p,d;let t=Iu("context",e.context),n=Iu("config",e.config),r=(d=(p=(u=t.endpointV2)==null?void 0:u.properties)==null?void 0:p.authSchemes)==null?void 0:d[0],s=await Iu("signer",n.signer)(r),o=e==null?void 0:e.signingRegion,a=e==null?void 0:e.signingRegionSet,l=e==null?void 0:e.signingName;return{config:n,signer:s,signingRegion:o,signingRegionSet:a,signingName:l}},no=class{async sign(t,n,r){var d,f,m,g;if(!be.isInstance(t))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let i=await tf(r),{config:s,signer:o}=i,{signingRegion:a,signingName:l}=i,u=r.context;if((f=(d=u==null?void 0:u.authSchemes)==null?void 0:d.length)!=null&&f){let[x,v]=u.authSchemes;(x==null?void 0:x.name)==="sigv4a"&&(v==null?void 0:v.name)==="sigv4"&&(a=(m=v==null?void 0:v.signingRegion)!=null?m:a,l=(g=v==null?void 0:v.signingName)!=null?g:l)}return await o.sign(t,{signingDate:xa(s.systemClockOffset),signingRegion:a,signingService:l})}errorHandler(t){return n=>{var i;let r=(i=n.ServerTime)!=null?i:_x(n.$response);if(r){let s=Iu("config",t.config),o=s.systemClockOffset;s.systemClockOffset=wx(r,s.systemClockOffset),s.systemClockOffset!==o&&n.$metadata&&(n.$metadata.clockSkewCorrected=!0)}throw n}}successHandler(t,n){let r=_x(t);if(r){let i=Iu("config",n.config);i.systemClockOffset=wx(r,i.systemClockOffset)}}};c();var Pu=class extends no{async sign(t,n,r){var f,m;if(!be.isInstance(t))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:i,signer:s,signingRegion:o,signingRegionSet:a,signingName:l}=await tf(r),u=await((f=i.sigv4aSigningRegionSet)==null?void 0:f.call(i)),p=((m=u!=null?u:a)!=null?m:[o]).join(",");return await s.sign(t,{signingDate:xa(i.systemClockOffset),signingRegion:p,signingService:l})}};c();c();var V3=(e,t,n)=>{let r,i,s,o=!1,a=async()=>{i||(i=e());try{r=await i,s=!0,o=!1}finally{i=void 0}return r};return t===void 0?async l=>((!s||l!=null&&l.forceRefresh)&&(r=await a()),r):async l=>((!s||l!=null&&l.forceRefresh)&&(r=await a()),o?r:n&&!n(r)?(o=!0,r):(t(r)&&await a(),r))};var W3=e=>(e.sigv4aSigningRegionSet=Di(e.sigv4aSigningRegionSet),e);c();var K3=e=>{let t=e.credentials,n=!!e.credentials,r;Object.defineProperty(e,"credentials",{set(u){u&&u!==t&&u!==r&&(n=!0),t=u;let p=TZ(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}),d=AZ(e,p);if(n&&!d.attributed){let f=typeof t=="object"&&t!==null;r=async m=>{let x=await d(m);return f&&(!x.$source||Object.keys(x.$source).length===0)?_2(x,"CREDENTIALS_CODE","e"):x},r.memoized=d.memoized,r.configBound=d.configBound,r.attributed=!0}else r=d},get(){return r},enumerable:!0,configurable:!0}),e.credentials=t;let{signingEscapePath:i=!0,systemClockOffset:s=e.systemClockOffset||0,sha256:o}=e,a;return e.signer?a=Di(e.signer):e.regionInfoProvider?a=()=>Di(e.region)().then(async u=>[await e.regionInfoProvider(u,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},u]).then(([u,p])=>{let{signingRegion:d,signingService:f}=u;e.signingRegion=e.signingRegion||d||p,e.signingName=e.signingName||f||e.serviceId;let m={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i},g=e.signerConstructor||Zs;return new g(m)}):a=async u=>{u=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await Di(e.region)(),properties:{}},u);let p=u.signingRegion,d=u.signingName;e.signingRegion=e.signingRegion||p,e.signingName=e.signingName||d||e.serviceId;let f={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i},m=e.signerConstructor||Zs;return new m(f)},Object.assign(e,{systemClockOffset:s,signingEscapePath:i,signer:a})};function TZ(e,{credentials:t,credentialDefaultProvider:n}){let r;return t?t!=null&&t.memoized?r=t:r=DR(t,ER,ax):n?r=Di(n(Object.assign({},e,{parentClientConfig:e}))):r=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}function AZ(e,t){if(t.configBound)return t;let n=async r=>t({...r,callerClientConfig:e});return n.memoized=t.memoized,n.configBound=!0,n}c();c();var Nu={CrtSignerV4:null};var va=class{constructor(t){S(this,"sigv4aSigner");S(this,"sigv4Signer");S(this,"signerOptions");this.sigv4Signer=new Au(t),this.signerOptions=t}static sigv4aDependency(){return typeof Nu.CrtSignerV4=="function"?"crt":typeof ix.SignatureV4a=="function"?"js":"none"}async sign(t,n={}){return n.signingRegion==="*"?this.getSigv4aSigner().sign(t,n):this.sigv4Signer.sign(t,n)}async signWithCredentials(t,n,r={}){if(r.signingRegion==="*"){let i=this.getSigv4aSigner(),s=Nu.CrtSignerV4;if(s&&i instanceof s)return i.signWithCredentials(t,n,r);throw new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(t,n,r)}async presign(t,n={}){if(n.signingRegion==="*"){let r=this.getSigv4aSigner(),i=Nu.CrtSignerV4;if(i&&r instanceof i)return r.presign(t,n);throw new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(t,n)}async presignWithCredentials(t,n,r={}){if(r.signingRegion==="*")throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(t,n,r)}getSigv4aSigner(){if(!this.sigv4aSigner){let t=Nu.CrtSignerV4,n=ix.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!t&&!n)throw new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(t&&typeof t=="function")this.sigv4aSigner=new t({...this.signerOptions,signingAlgorithm:1});else if(n&&typeof n=="function")this.sigv4aSigner=new n({...this.signerOptions});else throw new Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!n||typeof n!="function")throw new Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new n({...this.signerOptions})}}return this.sigv4aSigner}};c();c();var Qe="ref",_e="argv",Ek="backend",ei="authSchemes",ur="disableDoubleEncoding",lr="signingName",Ti="signingRegion",Fx="signingRegionSet",ue=-1,ze=!0,Rr=!1,Ex="isSet",kr="booleanEquals",Fe="stringEquals",Jt="coalesce",hn="substring",Tt="",Y3="aws.partition",Dk="partitionResult",X3="accessPointSuffix",Z3="regionPrefix",nf=e=>"outpostId_ssa_"+e+Tt,Sk="hardwareType",Dx="ite",os="isValidHostLabel",Ai="sigv4",Q3="aws.isVirtualHostableS3Bucket",Ck="url",gn="getAttr",Tk="bucketArn",Si="--",Ak="arnType",J3="accesspoint",ek=e=>"accessPointName_ssa_"+e+Tt,Bx="s3-object-lambda",Lu="s3-outposts",tk="bucketPartition",Rk="us-east-1",nk="outpostType",Wn="name",$u="s3",Sx="{url#scheme}://{Bucket}.{url#authority}{url#path}",rf="{url#scheme}://{url#authority}{url#path}",rk="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",ik="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",sk="https://{Bucket}.s3.{partitionResult#dnsSuffix}",ok=e=>"{url#scheme}://{accessPointName_ssa_"+e+"}-{bucketArn#accountId}.{url#authority}{url#path}",Ix="sigv4a",ak="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",ck="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",uk="https://s3.{partitionResult#dnsSuffix}",lk={[Qe]:"UseFIPS"},pk={[Qe]:"UseDualStack"},Lt={[Qe]:"Bucket"},Cx={fn:gn,[_e]:[{[Qe]:Dk},Wn]},dk={[Qe]:Ck},ba={[Qe]:"Region"},Ci={[Qe]:Tk},fk={[Qe]:Ak},Tx={[Qe]:"accessPointName_ssa_1"},sf={fn:gn,[_e]:[Ci,"region"]},mk={[Qe]:Sk},Ax={fn:gn,[_e]:[Ci,"service"]},hk={fn:gn,[_e]:[Ci,"accountId"]},of={[Ek]:"S3Express",[ei]:[{[ur]:!0,[Wn]:"{_s3e_auth}",[lr]:"s3express",[Ti]:"{Region}"}]},gk={[Ek]:"S3Express",[ei]:[{[ur]:!0,[Wn]:Ai,[lr]:"s3express",[Ti]:"{Region}"}]},af={[ei]:[{[ur]:!0,[Wn]:Ix,[lr]:Lu,[Fx]:["*"]},{[ur]:!0,[Wn]:Ai,[lr]:Lu,[Ti]:"{Region}"}]},Mt={[ei]:[{[ur]:!0,[Wn]:Ai,[lr]:$u,[Ti]:Rk}]},bt={[ei]:[{[ur]:!0,[Wn]:Ai,[lr]:$u,[Ti]:"{Region}"}]},Rx={[ei]:[{[ur]:!0,[Wn]:Ai,[lr]:Bx,[Ti]:"{bucketArn#region}"}]},Mu={[ei]:[{[ur]:!0,[Wn]:Ai,[lr]:$u,[Ti]:"{bucketArn#region}"}]},yk={[ei]:[{[ur]:!0,[Wn]:Ix,[lr]:Lu,[Fx]:["*"]},{[ur]:!0,[Wn]:Ai,[lr]:Lu,[Ti]:"{bucketArn#region}"}]},kx={[ei]:[{[ur]:!0,[Wn]:Ai,[lr]:Bx,[Ti]:"{Region}"}]},xk=[ba],vk=[{[Qe]:"Endpoint"}],Ox=[Lt],bk=[Lt,0,7,!0],_k=[Ci,"resourceId[1]"],RZ=["*"],wk={conditions:[[Ex,xk],[kr,[{[Qe]:"Accelerate"},ze]],[kr,[lk,ze]],[kr,[pk,ze]],[Ex,vk],[Ex,Ox],[Fe,[{fn:Jt,[_e]:[{fn:hn,[_e]:[Lt,0,6,ze]},Tt]},"--x-s3"]],[Fe,[{fn:Jt,[_e]:[{fn:hn,[_e]:bk},Tt]},"--xa-s3"]],[Y3,xk,Dk],[hn,bk,X3],[Fe,[{[Qe]:X3},"--op-s3"]],[hn,[Lt,8,12,ze],Z3],[hn,[Lt,32,49,ze],nf(2)],[hn,[Lt,49,50,ze],Sk],[kr,[{[Qe]:"ForcePathStyle"},ze]],[Fe,[Cx,"aws-cn"]],[Dx,[pk,".dualstack",Tt],"_s3e_ds"],[os,[{[Qe]:nf(2)},Rr]],[Dx,[lk,"-fips",Tt],"_s3e_fips"],[Dx,[{fn:Jt,[_e]:[{[Qe]:"DisableS3ExpressSessionAuth"},Rr]},Ai,"sigv4-s3express"],"_s3e_auth"],[Q3,[Lt,Rr]],["parseURL",vk,Ck],[kr,[{fn:Jt,[_e]:[{[Qe]:"UseS3ExpressControlEndpoint"},Rr]},ze]],[Q3,[Lt,ze]],[Fe,[{fn:gn,[_e]:[dk,"scheme"]},"http"]],[os,[ba,Rr]],["aws.parseArn",Ox,Tk],[gn,[{fn:"split",[_e]:[Lt,Si,0]},"[-2]"],"s3expressAvailabilityZoneId"],[Fe,[{fn:Jt,[_e]:[{fn:hn,[_e]:[Lt,0,4,Rr]},Tt]},"arn:"]],[Fe,[{fn:Jt,[_e]:[{fn:hn,[_e]:[Lt,16,18,ze]},Tt]},Si]],[kr,[{fn:gn,[_e]:[dk,"isIp"]},ze]],[Fe,[{fn:Jt,[_e]:[{fn:hn,[_e]:[Lt,21,23,ze]},Tt]},Si]],[Fe,[{fn:Jt,[_e]:[{fn:hn,[_e]:[Lt,27,29,ze]},Tt]},Si]],[Fe,[{[Qe]:Z3},"beta"]],["uriEncode",Ox,"uri_encoded_bucket"],[os,[ba,ze]],[kr,[{fn:Jt,[_e]:[{[Qe]:"UseObjectLambdaEndpoint"},Rr]},ze]],[gn,[Ci,"resourceId[0]"],Ak],[Fe,[fk,Tt]],[Fe,[fk,J3]],[gn,_k,ek(1)],[Fe,[Tx,Tt]],[Fe,[sf,Tt]],[Fe,[{fn:Jt,[_e]:[{fn:hn,[_e]:[Lt,14,16,ze]},Tt]},Si]],[Fe,[mk,"e"]],[Fe,[mk,"o"]],[Fe,[ba,"aws-global"]],[Fe,[{fn:Jt,[_e]:[{fn:hn,[_e]:[Lt,19,21,ze]},Tt]},Si]],[Fe,[Ax,Bx]],[kr,[{fn:Jt,[_e]:[{[Qe]:"DisableAccessPoints"},Rr]},ze]],[Fe,[Ax,Lu]],[Y3,[sf],tk],[os,[Tx,ze]],[Fe,[{fn:Jt,[_e]:[{fn:hn,[_e]:[Lt,26,28,ze]},Tt]},Si]],[Fe,[{fn:Jt,[_e]:[{fn:hn,[_e]:[Lt,15,17,ze]},Tt]},Si]],[gn,[Ci,"resourceId[4]"]],[Fe,[{fn:Jt,[_e]:[{fn:hn,[_e]:[Lt,20,22,ze]},Tt]},Si]],[kr,[{[Qe]:"UseGlobalEndpoint"},ze]],[Fe,[ba,Rk]],[gn,_k,nf(1)],[kr,[{fn:Jt,[_e]:[{[Qe]:"UseArnRegion"},ze]},ze]],[os,[{[Qe]:nf(1)},Rr]],[gn,[Ci,"resourceId[2]"],nk],[Fe,[ba,sf]],[Fe,[{fn:gn,[_e]:[{[Qe]:tk},Wn]},Cx]],[kr,[{[Qe]:"DisableMultiRegionAccessPoints"},ze]],[os,[sf,ze]],[Fe,[{fn:gn,[_e]:[Ci,"partition"]},Cx]],[Fe,[hk,Tt]],[Fe,[Ax,$u]],[os,[hk,Rr]],[gn,[Ci,"resourceId[3]"],ek(2)],[os,[Tx,Rr]],[Fe,[{[Qe]:nk},J3]]],results:[[ue],[ue,"Accelerate cannot be used with FIPS"],[ue,"Cannot set dual-stack in combination with a custom endpoint."],[ue,"A custom endpoint cannot be combined with FIPS"],[ue,"A custom endpoint cannot be combined with S3 Accelerate"],[ue,"Partition does not support FIPS"],[ue,"S3Express does not support S3 Accelerate."],["{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",of],[Sx,of],[ue,"S3Express bucket name is not a valid virtual hostable name."],["https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",gk],["https://{Bucket}.s3express{_s3e_fips}-{s3expressAvailabilityZoneId}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}",of],[ue,"Unrecognized S3Express bucket name format."],[rf,of],["https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}",gk],[ue,"Expected a endpoint to be specified but no endpoint was found"],["https://{Bucket}.ec2.{url#authority}",af],["https://{Bucket}.ec2.s3-outposts.{Region}.{partitionResult#dnsSuffix}",af],["https://{Bucket}.op-{outpostId_ssa_2}.{url#authority}",af],["https://{Bucket}.op-{outpostId_ssa_2}.s3-outposts.{Region}.{partitionResult#dnsSuffix}",af],[ue,'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"'],[ue,"Invalid Outposts Bucket alias - it must be a valid bucket name."],[ue,"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`."],[ue,"Custom endpoint `{Endpoint}` was not a valid URI"],[ue,"S3 Accelerate cannot be used in this region"],["https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",Mt],["https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",bt],["https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",Mt],["https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",bt],["https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",Mt],["https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",bt],["https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",Mt],["https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",bt],[rk,Mt],[Sx,Mt],[rk,bt],[Sx,bt],[ik,Mt],[ik,bt],[sk,Mt],[sk,bt],["https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",bt],[ue,"Invalid region: region was not a valid DNS name."],[ue,"S3 Object Lambda does not support Dual-stack"],[ue,"S3 Object Lambda does not support S3 Accelerate"],[ue,"Access points are not supported for this operation"],[ue,"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`"],[ue,"Invalid ARN: Missing account id"],[ok(1),Rx],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",Rx],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",Rx],[ue,"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName_ssa_1}`"],[ue,"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`"],[ue,"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)"],[ue,"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`"],[ue,"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`."],[ue,"Invalid ARN: bucket ARN is missing a region"],[ue,"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided"],[ue,"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`"],[ue,"Access Points do not support S3 Accelerate"],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",Mu],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",Mu],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",Mu],[ok(1),Mu],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",Mu],[ue,"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}"],[ue,"S3 MRAP does not support dual-stack"],[ue,"S3 MRAP does not support FIPS"],[ue,"S3 MRAP does not support S3 Accelerate"],[ue,"Invalid configuration: Multi-Region Access Point ARNs are disabled."],["https://{accessPointName_ssa_1}.accesspoint.s3-global.{partitionResult#dnsSuffix}",{[ei]:[{[ur]:ze,name:Ix,[lr]:$u,[Fx]:RZ}]}],[ue,"Client was configured for partition `{partitionResult#name}` but bucket referred to partition `{bucketArn#partition}`"],[ue,"Invalid Access Point Name"],[ue,"S3 Outposts does not support Dual-stack"],[ue,"S3 Outposts does not support FIPS"],[ue,"S3 Outposts does not support S3 Accelerate"],[ue,"Invalid Arn: Outpost Access Point ARN contains sub resources"],["https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.{url#authority}",yk],["https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",yk],[ue,"Expected an outpost type `accesspoint`, found {outpostType}"],[ue,"Invalid ARN: expected an access point name"],[ue,"Invalid ARN: Expected a 4-component resource"],[ue,"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId_ssa_1}`"],[ue,"Invalid ARN: The Outpost Id was not set"],[ue,"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})"],[ue,"Invalid ARN: No ARN type specified"],[ue,"Invalid ARN: `{Bucket}` was not a valid ARN"],[ue,"Path-style addressing cannot be used with ARN buckets"],["https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Mt],["https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",bt],["https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Mt],["https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",bt],["https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Mt],["https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",bt],[ak,Mt],[ak,bt],[ck,Mt],[ck,bt],["https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",bt],[ue,"Path-style addressing cannot be used with S3 Accelerate"],[rf,kx],["https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",kx],["https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",kx],["https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",Mt],["https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",bt],["https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",Mt],["https://s3-fips.{Region}.{partitionResult#dnsSuffix}",bt],["https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",Mt],["https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",bt],[rf,Mt],[rf,bt],[uk,Mt],[uk,bt],["https://s3.{Region}.{partitionResult#dnsSuffix}",bt],[ue,"A region must be set when sending requests to S3."]]},kZ=2,E=1e8,OZ=new Int32Array([-1,1,-1,0,3,E+114,1,422,4,2,270,5,3,231,6,4,84,7,5,15,8,8,9,E+114,16,10,13,18,11,13,19,12,13,22,E+14,13,35,14,E+42,36,E+102,433,6,269,16,7,268,17,8,19,18,14,499,105,9,20,24,10,21,24,11,22,24,12,23,24,13,545,24,14,76,25,20,72,26,26,27,77,37,28,E+85,38,E+85,29,39,46,30,48,E+58,31,50,32,E+84,51,33,135,55,E+76,34,59,35,E+83,60,39,36,61,37,E+82,62,38,145,63,41,E+46,61,40,E+82,62,41,149,64,42,E+54,66,43,E+53,70,44,E+52,71,45,E+80,73,E+78,E+79,40,47,E+57,41,E+57,48,42,183,49,48,61,50,49,E+45,51,51,52,524,60,55,53,62,E+55,54,63,56,E+46,62,E+55,56,64,57,E+54,66,58,E+53,69,59,E+65,70,60,E+52,72,E+64,E+51,49,E+45,62,51,63,524,60,66,64,62,E+55,65,63,67,E+46,62,E+55,67,64,68,E+54,66,69,E+53,68,E+47,70,70,71,E+52,72,E+50,E+51,25,73,E+42,46,E+39,74,57,75,E+41,58,E+40,E+41,26,E+87,77,28,E+86,78,34,81,79,35,80,543,36,E+102,E+114,46,E+96,82,57,83,E+98,58,E+97,E+98,5,100,85,8,86,E+114,16,87,88,18,90,88,19,89,91,21,96,94,19,92,91,21,97,94,21,96,93,22,E+14,94,35,95,E+42,36,E+102,E+42,22,E+13,97,35,98,E+42,36,E+100,99,46,E+109,E+110,6,212,101,7,206,102,8,118,103,14,117,104,21,105,E+23,26,106,500,37,107,E+85,38,E+85,108,39,111,109,48,E+58,110,50,135,E+84,40,112,E+57,41,E+57,113,42,114,498,48,E+56,115,52,116,E+72,65,E+69,E+72,21,499,E+23,9,119,123,10,120,123,11,121,123,12,122,123,13,200,123,14,193,124,20,188,125,21,126,E+23,23,127,128,24,187,128,26,129,195,37,130,E+85,38,E+85,131,39,157,132,48,E+58,133,50,134,E+84,51,140,135,55,E+76,136,59,137,E+83,60,E+82,138,61,139,E+82,63,E+82,E+46,55,E+76,141,59,142,E+83,60,147,143,61,144,E+82,62,146,145,63,149,E+46,63,152,E+46,61,148,E+82,62,152,149,64,150,E+54,66,151,E+53,70,E+81,E+52,64,153,E+54,66,154,E+53,70,155,E+52,71,156,E+80,73,E+77,E+79,40,158,E+57,41,E+57,159,42,183,160,48,172,161,49,E+45,162,51,163,524,60,166,164,62,E+55,165,63,167,E+46,62,E+55,167,64,168,E+54,66,169,E+53,69,170,E+65,70,171,E+52,72,E+63,E+51,49,E+45,173,51,174,524,60,177,175,62,E+55,176,63,178,E+46,62,E+55,178,64,179,E+54,66,180,E+53,68,E+47,181,70,182,E+52,72,E+48,E+51,48,E+56,184,52,185,E+72,65,E+69,186,67,E+70,E+71,25,E+36,E+42,21,189,E+23,25,190,E+42,30,192,191,46,E+34,E+36,46,E+33,E+35,21,194,E+23,26,E+87,195,28,E+86,196,34,199,197,35,198,543,36,E+100,E+114,46,E+94,E+95,17,201,E+22,20,202,E+21,21,203,548,33,204,548,44,E+16,205,45,E+18,E+20,8,207,213,16,208,218,18,209,218,19,210,222,20,211,225,21,229,399,8,216,213,19,214,E+9,20,215,225,21,229,E+9,16,217,218,18,221,218,19,219,222,20,220,225,21,229,E+12,19,224,222,20,223,E+9,21,E+9,E+12,20,228,225,21,226,E+9,30,227,E+9,34,E+7,E+9,21,229,413,30,230,E+8,34,E+7,E+8,4,E+2,232,5,233,478,6,269,234,7,268,235,8,236,489,9,237,241,10,238,241,11,239,241,12,240,241,13,545,241,14,264,242,20,262,243,26,244,265,37,245,E+85,38,E+85,246,39,247,516,40,248,E+57,41,E+57,249,42,536,250,48,E+43,251,49,E+45,252,51,253,524,60,256,254,62,E+55,255,63,257,E+46,62,E+55,257,64,258,E+54,66,259,E+53,69,260,E+65,70,261,E+52,72,E+62,E+51,25,263,E+42,46,E+31,E+32,26,E+87,265,28,E+86,266,34,267,542,46,E+92,E+93,8,395,E+9,8,405,E+9,3,344,271,4,E+3,272,5,282,273,8,274,E+114,15,E+5,275,16,276,279,18,277,279,19,278,279,22,E+14,279,35,280,E+42,36,E+101,281,46,E+105,E+106,6,403,283,7,393,284,8,293,285,14,499,286,26,287,500,37,288,E+85,38,E+85,289,39,290,305,40,291,E+57,41,E+57,292,42,333,498,9,294,298,10,295,298,11,296,298,12,297,298,13,392,298,14,337,299,15,E+5,300,20,335,301,26,302,339,37,303,E+85,38,E+85,304,39,307,305,48,E+58,306,50,E+74,E+84,40,308,E+57,41,E+57,309,42,333,310,48,322,311,49,E+45,312,51,313,524,60,316,314,62,E+55,315,63,317,E+46,62,E+55,317,64,318,E+54,66,319,E+53,69,320,E+65,70,321,E+52,72,E+61,E+51,49,E+45,323,51,324,524,60,327,325,62,E+55,326,63,328,E+46,62,E+55,328,64,329,E+54,66,330,E+53,68,E+47,331,70,332,E+52,72,E+49,E+51,48,E+56,334,52,E+67,E+72,25,336,E+42,46,E+27,E+28,15,E+5,338,26,E+87,339,28,E+86,340,34,343,341,35,342,543,36,E+101,E+114,46,E+90,E+91,4,E+2,345,5,355,346,8,347,E+114,15,E+5,348,16,349,352,18,350,352,19,351,352,22,E+14,352,35,353,E+42,36,E+43,354,46,E+103,E+104,6,403,356,7,393,357,8,358,489,9,359,363,10,360,363,11,361,363,12,362,363,13,392,363,14,387,364,15,E+5,365,20,385,366,26,367,389,37,368,E+85,38,E+85,369,39,370,516,40,371,E+57,41,E+57,372,42,536,373,48,E+43,374,49,E+45,375,51,376,524,60,379,377,62,E+55,378,63,380,E+46,62,E+55,380,64,381,E+54,66,382,E+53,69,383,E+65,70,384,E+52,72,E+60,E+51,25,386,E+42,46,E+25,E+26,15,E+5,388,26,E+87,389,28,E+86,390,34,391,542,46,E+88,E+89,15,E+5,545,8,394,E+9,15,E+5,395,16,396,408,18,397,408,19,398,408,20,399,E+9,27,400,E+12,29,E+11,401,31,E+11,402,32,E+11,420,8,404,E+9,15,E+5,405,16,406,408,18,407,408,19,409,408,20,E+12,E+9,20,412,410,22,411,E+9,34,E+10,E+9,22,414,413,27,417,E+12,27,416,415,34,E+10,E+12,34,E+10,417,43,E+11,418,47,E+11,419,53,E+11,420,54,E+11,421,56,E+11,E+12,2,E+1,423,3,476,424,4,E+4,425,5,436,426,8,427,E+114,16,428,431,18,429,431,19,430,431,22,E+14,431,35,432,E+42,36,E+44,433,46,E+111,434,57,435,E+113,58,E+112,E+113,6,E+6,437,7,E+6,438,8,448,439,14,499,440,26,441,500,37,442,E+85,38,E+85,443,39,444,463,40,445,E+57,41,E+57,446,42,469,447,48,E+44,498,9,449,453,10,450,453,11,451,453,12,452,453,13,545,453,14,471,454,15,458,455,20,456,459,25,457,E+42,46,E+37,E+38,20,538,459,26,460,472,37,461,E+85,38,E+85,462,39,465,463,48,E+58,464,50,E+75,E+84,40,466,E+57,41,E+57,467,42,469,468,48,E+44,522,48,E+44,470,52,E+68,E+72,26,E+87,472,28,E+86,473,34,E+99,474,35,475,543,36,E+44,E+114,4,E+2,477,5,486,478,8,479,E+114,16,480,483,18,481,483,19,482,483,22,E+14,483,35,484,E+42,36,E+43,485,46,E+107,E+108,6,E+6,487,7,E+6,488,8,501,489,14,499,490,26,491,500,37,492,E+85,38,E+85,493,39,494,516,40,495,E+57,41,E+57,496,42,536,497,48,E+43,498,49,E+45,524,26,E+87,500,28,E+86,E+114,9,502,506,10,503,506,11,504,506,12,505,506,13,545,506,14,539,507,15,511,508,20,509,512,25,510,E+42,46,E+29,E+30,20,538,512,26,513,540,37,514,E+85,38,E+85,515,39,518,516,48,E+58,517,50,E+73,E+84,40,519,E+57,41,E+57,520,42,536,521,48,E+43,522,49,E+45,523,51,527,524,60,E+55,525,62,E+55,526,63,E+55,E+46,60,530,528,62,E+55,529,63,531,E+46,62,E+55,531,64,532,E+54,66,533,E+53,69,534,E+65,70,535,E+52,72,E+59,E+51,48,E+43,537,52,E+66,E+72,25,E+24,E+42,26,E+87,540,28,E+86,541,34,E+99,542,35,544,543,36,E+42,E+114,36,E+43,E+114,17,546,E+22,20,547,E+21,33,550,548,44,E+17,549,45,E+19,E+20,44,E+15,551,45,E+15,E+20]),kk=ku.from(OZ,kZ,wk.conditions,wk.results);var FZ=new Ud({size:50,params:["Accelerate","Bucket","DisableAccessPoints","DisableMultiRegionAccessPoints","DisableS3ExpressSessionAuth","Endpoint","ForcePathStyle","Region","UseArnRegion","UseDualStack","UseFIPS","UseGlobalEndpoint","UseObjectLambdaEndpoint","UseS3ExpressControlEndpoint"]}),cf=(e,t={})=>FZ.get(e,()=>mx(kk,{endpointParams:e,logger:t.logger}));ya.aws=gx;var BZ=e=>async(t,n,r)=>{var a,l,u;if(!r)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),s=(u=(l=(a=mn(n))==null?void 0:a.commandInstance)==null?void 0:l.constructor)==null?void 0:u.getEndpointParameterInstructions;if(!s)throw new Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let o=await bx(r,{getEndpointParameterInstructions:s},t);return Object.assign(i,o)},IZ=async(e,t,n)=>({operation:mn(t).operation,region:await Zt(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),Ok=BZ(IZ);function Fk(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function Bk(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}var PZ=(e,t,n)=>i=>{var l;let o=(l=e(i).properties)==null?void 0:l.authSchemes;if(!o)return t(i);let a=[];for(let u of o){let{name:p,properties:d={},...f}=u,m=p.toLowerCase();p!==m&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${p}' to '${m}'`);let g;if(m==="sigv4a"){g="aws.auth#sigv4a";let _=o.find(w=>{let D=w.name.toLowerCase();return D!=="sigv4a"&&D.startsWith("sigv4")});if(va.sigv4aDependency()==="none"&&_)continue}else if(m.startsWith("sigv4"))g="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${m}'`);let x=n[g];if(!x)throw new Error(`Could not find HttpAuthOption create function for '${g}'`);let v=x(i);v.schemeId=g,v.signingProperties={...v.signingProperties||{},...f,...d},a.push(v)}return a},NZ=e=>{let t=[];switch(e.operation){default:t.push(Fk(e)),t.push(Bk(e))}return t},Ik=PZ(cf,NZ,{"aws.auth#sigv4":Fk,"aws.auth#sigv4a":Bk}),Pk=e=>{var r;let t=K3(e),n=W3(t);return Object.assign(n,{authSchemePreference:Zt((r=e.authSchemePreference)!=null?r:[])})};c();c();var Nk=e=>{var t,n,r,i,s,o,a;return Object.assign(e,{useFipsEndpoint:(t=e.useFipsEndpoint)!=null?t:!1,useDualstackEndpoint:(n=e.useDualstackEndpoint)!=null?n:!1,forcePathStyle:(r=e.forcePathStyle)!=null?r:!1,useAccelerateEndpoint:(i=e.useAccelerateEndpoint)!=null?i:!1,useGlobalEndpoint:(s=e.useGlobalEndpoint)!=null?s:!1,disableMultiregionAccessPoints:(o=e.disableMultiregionAccessPoints)!=null?o:!1,defaultSigningName:"s3",clientContextParams:(a=e.clientContextParams)!=null?a:{}})},ht={ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},DisableS3ExpressSessionAuth:{type:"clientContextParams",name:"disableS3ExpressSessionAuth"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};c();c();c();var St=class e extends _d{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}};var uf=class e extends St{constructor(n){super({name:"NoSuchUpload",$fault:"client",...n});S(this,"name","NoSuchUpload");S(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}},lf=class e extends St{constructor(n){super({name:"AccessDenied",$fault:"client",...n});S(this,"name","AccessDenied");S(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}},pf=class e extends St{constructor(n){super({name:"ObjectNotInActiveTierError",$fault:"client",...n});S(this,"name","ObjectNotInActiveTierError");S(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}},df=class e extends St{constructor(n){super({name:"BucketAlreadyExists",$fault:"client",...n});S(this,"name","BucketAlreadyExists");S(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}},ff=class e extends St{constructor(n){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...n});S(this,"name","BucketAlreadyOwnedByYou");S(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}},mf=class e extends St{constructor(n){super({name:"NoSuchBucket",$fault:"client",...n});S(this,"name","NoSuchBucket");S(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}},hf=class e extends St{constructor(n){super({name:"InvalidObjectState",$fault:"client",...n});S(this,"name","InvalidObjectState");S(this,"$fault","client");S(this,"StorageClass");S(this,"AccessTier");Object.setPrototypeOf(this,e.prototype),this.StorageClass=n.StorageClass,this.AccessTier=n.AccessTier}},gf=class e extends St{constructor(n){super({name:"NoSuchKey",$fault:"client",...n});S(this,"name","NoSuchKey");S(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}},yf=class e extends St{constructor(n){super({name:"NotFound",$fault:"client",...n});S(this,"name","NotFound");S(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}},xf=class e extends St{constructor(n){super({name:"EncryptionTypeMismatch",$fault:"client",...n});S(this,"name","EncryptionTypeMismatch");S(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}},vf=class e extends St{constructor(n){super({name:"InvalidRequest",$fault:"client",...n});S(this,"name","InvalidRequest");S(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}},bf=class e extends St{constructor(n){super({name:"InvalidWriteOffset",$fault:"client",...n});S(this,"name","InvalidWriteOffset");S(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}},_f=class e extends St{constructor(n){super({name:"TooManyParts",$fault:"client",...n});S(this,"name","TooManyParts");S(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}},wf=class e extends St{constructor(n){super({name:"IdempotencyParameterMismatch",$fault:"client",...n});S(this,"name","IdempotencyParameterMismatch");S(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}},Ef=class e extends St{constructor(n){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...n});S(this,"name","ObjectAlreadyInActiveTierError");S(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}};var MZ="Account",LZ="AnalyticsAndOperator",Df="AccelerateConfiguration",Gf="AccessControlList",_a="ACL",Wk="AnalyticsConfigurationList",ro="AccessControlPolicy",Kk="AccessControlTranslation",Uu="AnalyticsConfiguration",$Z="AccessDenied",Yk="AbortDate",UZ="AnalyticsExportDestination",jZ="AnalyticsFilter",zZ="AllowedHeaders",qZ="AllowedHeader",HZ="AccountId",Xk="AbortIncompleteMultipartUpload",Mk="AccessKeyId",GZ="AllowedMethods",VZ="AbortMultipartUpload",WZ="AbortMultipartUploadOutput",KZ="AbortMultipartUploadRequest",YZ="AllowedMethod",XZ="AllowedOrigins",ZZ="AllowedOrigin",QZ="AccessPointAlias",Zk="AccessPointArn",JZ="AllowQuotedRecordDelimiter",qx="AcceptRanges",Qk="AbortRuleId",Sf="AbacStatus",eQ="AnalyticsS3BucketDestination",tQ="ApplyServerSideEncryptionByDefault",nQ="ArchiveStatus",Jk="AccessTier",Hu="And",V="Bucket",Hx="BucketArn",rQ="BucketAlreadyExists",iQ="BucketAccountId",sQ="BucketAlreadyOwnedByYou",eO="BlockedEncryptionTypes",Gx="BypassGovernanceRetention",oQ="BucketInfo",en="BucketKeyEnabled",aQ="BucketLifecycleConfiguration",cQ="BucketLocationName",Cf="BucketLoggingStatus",uQ="BucketLocationType",lQ="BucketNamespace",pQ="BucketName",tO="BytesProcessed",Lk="BlockPublicAcls",$k="BlockPublicPolicy",Vx="BucketRegion",nO="BytesReturned",rO="BytesScanned",Gu="Body",Wx="Buckets",iO="Checksum",we="ChecksumAlgorithm",dQ="CannedACL",fQ="CreateBucket",Px="CreateBucketConfiguration",mQ="CreateBucketMetadataConfiguration",hQ="CreateBucketMetadataConfigurationRequest",gQ="CreateBucketMetadataTableConfiguration",yQ="CreateBucketMetadataTableConfigurationRequest",xQ="CreateBucketOutput",vQ="CreateBucketRequest",wa="CacheControl",yn="ChecksumCRC32",xn="ChecksumCRC32C",vn="ChecksumCRC64NVME",Vu="Cache-Control",bQ="CreationDate",Wu="Content-Disposition",Ea="ContentDisposition",_Q="ContinuationEvent",Ku="Content-Encoding",Da="ContentEncoding",wQ="CloudFunction",EQ="CloudFunctionConfiguration",Sa="ContentLanguage",Yu="Content-Language",Xu="Content-Length",Zu="ContentLength",rt="Content-MD5",it="ContentMD5",DQ="CompletedMultipartUpload",SQ="CompleteMultipartUploadOutput",CQ="CreateMultipartUploadOutput",TQ="CompleteMultipartUploadResult",AQ="CompleteMultipartUploadRequest",RQ="CreateMultipartUploadRequest",sO="CompleteMultipartUpload",kQ="CreateMultipartUpload",oO="ChecksumMode",OQ="CopyObject",FQ="CopyObjectOutput",aO="CopyObjectResult",Tf="CORSConfiguration",Kx="CORSRules",Yx="CORSRule",BQ="CopyObjectRequest",IQ="CommonPrefix",PQ="CommonPrefixList",NQ="CompletedPartList",cO="CopyPartResult",MQ="CompletedPart",Vf="CommonPrefixes",Xx="ContentRange",LQ="ConfirmRemoveSelfBucketAccess",uO="Content-Range",lO="CopySource",bn="ChecksumSHA1",_n="ChecksumSHA256",pO="CopySourceIfMatch",dO="CopySourceIfModifiedSince",fO="CopySourceIfNoneMatch",mO="CopySourceIfUnmodifiedSince",$Q="CreateSessionOutput",UQ="CreateSessionResult",jQ="CopySourceRange",zQ="CreateSessionRequest",hO="CopySourceSSECustomerAlgorithm",Zx="CopySourceSSECustomerKey",gO="CopySourceSSECustomerKeyMD5",yO="CSV",xO="CopySourceVersionId",qQ="CSVInput",HQ="CSVOutput",Qx="ConfigurationState",GQ="CreateSession",Kn="ChecksumType",Qu="Content-Type",VQ="ClientToken",Ca="ContentType",WQ="CompressionType",Pn="ContinuationToken",vO="Condition",KQ="Code",YQ="Comments",bO="Contents",XQ="Cont",Uk="Credentials",Ta="Days",ZQ="DaysAfterInitiation",QQ="DeleteBucket",JQ="DeleteBucketAnalyticsConfiguration",eJ="DeleteBucketAnalyticsConfigurationRequest",tJ="DeleteBucketCors",nJ="DeleteBucketCorsRequest",rJ="DeleteBucketEncryption",iJ="DeleteBucketEncryptionRequest",sJ="DeleteBucketInventoryConfiguration",oJ="DeleteBucketInventoryConfigurationRequest",aJ="DeleteBucketIntelligentTieringConfiguration",cJ="DeleteBucketIntelligentTieringConfigurationRequest",uJ="DeleteBucketLifecycle",lJ="DeleteBucketLifecycleRequest",pJ="DeleteBucketMetadataConfiguration",dJ="DeleteBucketMetadataConfigurationRequest",fJ="DeleteBucketMetricsConfigurationRequest",mJ="DeleteBucketMetricsConfiguration",hJ="DeleteBucketMetadataTableConfiguration",gJ="DeleteBucketMetadataTableConfigurationRequest",yJ="DeleteBucketOwnershipControls",xJ="DeleteBucketOwnershipControlsRequest",vJ="DeleteBucketPolicy",bJ="DeleteBucketPolicyRequest",_J="DeleteBucketRequest",wJ="DeleteBucketReplicationRequest",EJ="DeleteBucketReplication",DJ="DeleteBucketTagging",SJ="DeleteBucketTaggingRequest",CJ="DeleteBucketWebsite",TJ="DeleteBucketWebsiteRequest",AJ="DataExport",RJ="DestinationIfMatch",kJ="DestinationIfModifiedSince",OJ="DestinationIfNoneMatch",FJ="DestinationIfUnmodifiedSince",io="DeleteMarker",BJ="DeleteMarkerEntry",_O="DeleteMarkerReplication",IJ="DeleteMarkerVersionId",wO="DeleteMarkers",Jx="DisplayName",PJ="DeletedObject",NJ="DeleteObjectOutput",MJ="DeleteObjectsOutput",LJ="DeleteObjectRequest",$J="DeleteObjectsRequest",UJ="DeleteObjectTagging",jJ="DeleteObjectTaggingOutput",zJ="DeleteObjectTaggingRequest",qJ="DeletedObjects",HJ="DeleteObject",GJ="DeleteObjects",VJ="DeletePublicAccessBlock",WJ="DeletePublicAccessBlockRequest",KJ="DataRedundancy",EO="DefaultRetention",YJ="DeleteResult",DO="DestinationResult",SO="Date",Nx="Delete",XJ="Deleted",as="Delimiter",Wf="Destination",ZJ="Description",CO="Details",ti="Expiration",QJ="EmailAddress",TO="EventBridgeConfiguration",X="ExpectedBucketOwner",Ju="EncryptionConfiguration",AO="ErrorCode",JJ="ErrorDetails",ev="ErrorDocument",eee="EndEvent",tee="ExposeHeaders",nee="ExposeHeader",RO="ErrorMessage",ree="ExpiredObjectDeleteMarker",kO="ExistingObjectReplication",Af="ExpiresString",OO="ExpectedSourceBucketOwner",tv="EncryptionType",iee="EncryptionTypeList",see="EncryptionTypeMismatch",$t="ETag",cs="EncodingType",oee="EventThreshold",FO="ExpressionType",nv="Encryption",aee="Enabled",BO="End",IO="Errors",el="Error",rv="Events",iv="Event",Or="Expires",PO="Expression",Ri="Filter",NO="FieldDelimiter",cee="FileHeaderInfo",uee="FetchOwner",MO="FilterRule",lee="FilterRuleList",pee="FilterRules",dee="Field",LO="Format",fee="Frequency",Kf="Grants",mee="GetBucketAbac",hee="GetBucketAccelerateConfiguration",gee="GetBucketAccelerateConfigurationOutput",yee="GetBucketAnalyticsConfigurationOutput",xee="GetBucketAccelerateConfigurationRequest",vee="GetBucketAnalyticsConfigurationRequest",bee="GetBucketAnalyticsConfiguration",_ee="GetBucketAbacOutput",wee="GetBucketAclOutput",Eee="GetBucketAbacRequest",Dee="GetBucketAclRequest",See="GetBucketAcl",Cee="GetBucketCors",Tee="GetBucketCorsOutput",Aee="GetBucketCorsRequest",Ree="GetBucketEncryption",kee="GetBucketEncryptionOutput",Oee="GetBucketEncryptionRequest",Fee="GetBucketInventoryConfiguration",Bee="GetBucketInventoryConfigurationOutput",Iee="GetBucketInventoryConfigurationRequest",Pee="GetBucketIntelligentTieringConfiguration",Nee="GetBucketIntelligentTieringConfigurationOutput",Mee="GetBucketIntelligentTieringConfigurationRequest",Lee="GetBucketLocation",$ee="GetBucketLifecycleConfiguration",Uee="GetBucketLifecycleConfigurationOutput",jee="GetBucketLifecycleConfigurationRequest",zee="GetBucketLocationOutput",qee="GetBucketLoggingOutput",Hee="GetBucketLocationRequest",Gee="GetBucketLoggingRequest",Vee="GetBucketLogging",Wee="GetBucketMetadataConfiguration",Kee="GetBucketMetadataConfigurationOutput",Yee="GetBucketMetricsConfigurationOutput",$O="GetBucketMetadataConfigurationResult",Xee="GetBucketMetadataConfigurationRequest",Zee="GetBucketMetricsConfigurationRequest",Qee="GetBucketMetricsConfiguration",Jee="GetBucketMetadataTableConfiguration",ete="GetBucketMetadataTableConfigurationOutput",UO="GetBucketMetadataTableConfigurationResult",tte="GetBucketMetadataTableConfigurationRequest",nte="GetBucketNotificationConfiguration",rte="GetBucketNotificationConfigurationRequest",ite="GetBucketOwnershipControls",ste="GetBucketOwnershipControlsOutput",ote="GetBucketOwnershipControlsRequest",ate="GetBucketPolicy",cte="GetBucketPolicyOutput",ute="GetBucketPolicyRequest",lte="GetBucketPolicyStatus",pte="GetBucketPolicyStatusOutput",dte="GetBucketPolicyStatusRequest",fte="GetBucketReplication",mte="GetBucketReplicationOutput",hte="GetBucketRequestPayment",gte="GetBucketRequestPaymentOutput",yte="GetBucketRequestPaymentRequest",xte="GetBucketReplicationRequest",vte="GetBucketTagging",bte="GetBucketTaggingOutput",_te="GetBucketTaggingRequest",wte="GetBucketVersioning",Ete="GetBucketVersioningOutput",Dte="GetBucketVersioningRequest",Ste="GetBucketWebsite",Cte="GetBucketWebsiteOutput",Tte="GetBucketWebsiteRequest",Aa="GrantFullControl",jO="GlacierJobParameters",Ate="GetObject",Rte="GetObjectAcl",kte="GetObjectAclOutput",Ote="GetObjectAttributesOutput",Fte="GetObjectAttributesParts",Bte="GetObjectAclRequest",Ite="GetObjectAttributesResponse",Pte="GetObjectAttributesRequest",Nte="GetObjectAttributes",Mte="GetObjectLockConfiguration",Lte="GetObjectLockConfigurationOutput",$te="GetObjectLockConfigurationRequest",Ute="GetObjectLegalHold",jte="GetObjectLegalHoldOutput",zte="GetObjectLegalHoldRequest",qte="GetObjectOutput",Hte="GetObjectRequest",Gte="GetObjectRetentionOutput",Vte="GetObjectRetentionRequest",Wte="GetObjectRetention",Kte="GetObjectTagging",Yte="GetObjectTaggingOutput",Xte="GetObjectTorrentOutput",Zte="GetObjectTaggingRequest",Qte="GetObjectTorrentRequest",Jte="GetObjectTorrent",ene="GetPublicAccessBlock",tne="GetPublicAccessBlockOutput",nne="GetPublicAccessBlockRequest",Ra="GrantRead",ka="GrantReadACP",sv="GrantWrite",Oa="GrantWriteACP",ov="Grant",av="Grantee",rne="HeadBucket",ine="HeadBucketOutput",sne="HeadBucketRequest",one="HttpErrorCodeReturnedEquals",zO="HostName",ane="HeadObject",cne="HeadObjectOutput",une="HeadObjectRequest",lne="HttpRedirectCode",At="Id",ju="InventoryConfiguration",qO="InventoryConfigurationList",Fa="ID",cv="IndexDocument",pne="InventoryDestination",dne="IsEnabled",fne="InventoryEncryption",mne="InventoryFilter",HO="IsLatest",Ba="IfMatch",hne="IfMatchInitiatedTime",gne="IfMatchLastModifiedTime",yne="IfMatchSize",uv="If-Modified-Since",GO="IfModifiedSince",xne="InitiateMultipartUploadResult",so="If-Match",tl="IfNoneMatch",Ia="If-None-Match",vne="InventoryOptionalFields",bne="InvalidObjectState",_ne="IncludedObjectVersions",jk="IsPublic",zk="IgnorePublicAcls",wne="IdempotencyParameterMismatch",Ene="InvalidRequest",Dne="IsRestoreInProgress",lv="InputSerialization",Sne="InventoryS3BucketDestination",Cne="InventorySchedule",ni="IsTruncated",Tne="IntelligentTieringAndOperator",zu="IntelligentTieringConfiguration",VO="IntelligentTieringConfigurationList",WO="InventoryTableConfigurationResult",Ane="InventoryTableConfigurationUpdates",Rf="InventoryTableConfiguration",Rne="IntelligentTieringFilter",KO="IfUnmodifiedSince",pv="If-Unmodified-Since",kne="InvalidWriteOffset",dv="Initiator",One="Initiated",YO="JSON",Fne="JSONInput",Bne="JSONOutput",kf="JournalTableConfiguration",XO="JournalTableConfigurationResult",Ine="JournalTableConfigurationUpdates",me="Key",Pne="KeyCount",Nne="KeyId",Mne="KmsKeyArn",Yf="KeyMarker",Lne="KMSContext",$ne="KMSKeyArn",Une="KMSKeyId",jne="KMSMasterKeyID",zne="KeyPrefixEquals",Of="Location",qne="ListAllMyBucketsResult",Hne="ListAllMyDirectoryBucketsResult",Gne="ListBuckets",Vne="ListBucketAnalyticsConfigurations",Wne="ListBucketAnalyticsConfigurationsOutput",Kne="ListBucketAnalyticsConfigurationResult",Yne="ListBucketAnalyticsConfigurationsRequest",Xne="ListBucketInventoryConfigurations",Zne="ListBucketInventoryConfigurationsOutput",Qne="ListBucketInventoryConfigurationsRequest",Jne="ListBucketIntelligentTieringConfigurations",ere="ListBucketIntelligentTieringConfigurationsOutput",tre="ListBucketIntelligentTieringConfigurationsRequest",nre="ListBucketMetricsConfigurations",rre="ListBucketMetricsConfigurationsOutput",ire="ListBucketMetricsConfigurationsRequest",sre="ListBucketsOutput",ore="ListBucketsRequest",ZO="ListBucketResult",Mx="LocationConstraint",Lx="LifecycleConfiguration",are="ListDirectoryBuckets",cre="ListDirectoryBucketsOutput",ure="ListDirectoryBucketsRequest",fv="LoggingEnabled",lre="LifecycleExpiration",pre="LambdaFunctionArn",dre="LambdaFunctionConfiguration",fre="LambdaFunctionConfigurationList",mre="LambdaFunctionConfigurations",Ff="LegalHold",hre="LocationInfo",gre="ListInventoryConfigurationsResult",ri="LastModified",yre="ListMetricsConfigurationsResult",xre="LastModifiedTime",vre="ListMultipartUploads",bre="ListMultipartUploadsOutput",_re="ListMultipartUploadsResult",wre="ListMultipartUploadsRequest",mv="Last-Modified",Ere="ListObjects",Dre="ListObjectsOutput",Sre="ListObjectsRequest",Cre="ListObjectsV2",Tre="ListObjectsV2Output",Are="ListObjectVersionsOutput",Rre="ListObjectsV2Request",kre="ListObjectVersionsRequest",Ore="ListObjectVersions",Fre="ListParts",Bre="ListPartsOutput",Ire="ListPartsResult",Pre="ListPartsRequest",Nre="LifecycleRule",Mre="LifecycleRuleAndOperator",Lre="LifecycleRuleFilter",$re="LifecycleRules",Ure="ListVersionsResult",Pa="Metadata",jre="MetricsAndOperator",zre="MaxAgeSeconds",qre="MaxBuckets",$x="MetadataConfiguration",QO="MetricsConfigurationList",JO="MetadataConfigurationResult",qu="MetricsConfiguration",Hre="MetadataDirective",Gre="MaxDirectoryBuckets",eF="MfaDelete",tF="MetadataEntry",Vre="MetricsFilter",hv="MFA",nF="MFADelete",Na="MaxKeys",gv="MissingMeta",Wre="MpuObjectSize",Xf="MaxParts",Ux="MetadataTableConfiguration",rF="MetadataTableConfigurationResult",Kre="MetadataTableEncryptionConfiguration",iF="MultipartUpload",Yre="MultipartUploadList",sF="MaxUploads",oF="Marker",aF="Metrics",Xre="Message",Zre="Minutes",cF="Mode",oo="Name",jx="NotificationConfiguration",Qre="NotificationConfigurationFilter",nl="NextContinuationToken",uF="NoncurrentDays",Jre="NonEmptyKmsKeyArnString",eie="NotFound",lF="NextKeyMarker",tie="NextMarker",pF="NewerNoncurrentVersions",dF="NextPartNumberMarker",nie="NoSuchBucket",rie="NoSuchKey",iie="NoSuchUpload",sie="NextUploadIdMarker",fF="NoncurrentVersionExpiration",oie="NextVersionIdMarker",aie="NoncurrentVersionTransitions",cie="NoncurrentVersionTransitionList",mF="NoncurrentVersionTransition",Br="Owner",uie="ObjectAttributes",lie="ObjectAlreadyInActiveTierError",Bf="OwnershipControls",pie="OwnershipControlsRule",die="OwnershipControlsRules",hF="ObjectEncryption",fie="OptionalFields",mie="ObjectIdentifier",hie="ObjectIdentifierList",gF="OutputLocation",If="ObjectLockConfiguration",gie="ObjectLockEnabled",yie="ObjectLockEnabledForBucket",xie="ObjectLockLegalHold",Ma="ObjectLockLegalHoldStatus",La="ObjectLockMode",vie="ObjectLockRetention",$a="ObjectLockRetainUntilDate",bie="ObjectLockRule",_ie="ObjectList",wie="ObjectNotInActiveTierError",yF="ObjectOwnership",yv="OptionalObjectAttributes",Eie="ObjectParts",Die="ObjectPart",Sie="ObjectSize",xF="ObjectSizeGreaterThan",vF="ObjectSizeLessThan",Cie="OutputSchemaVersion",xv="OutputSerialization",Tie="ObjectVersion",Aie="ObjectVersionList",Rie="Objects",bF="Object",Ye="Prefix",Pf="PublicAccessBlockConfiguration",kie="PutBucketAbac",Oie="PutBucketAccelerateConfiguration",Fie="PutBucketAccelerateConfigurationRequest",Bie="PutBucketAnalyticsConfigurationRequest",Iie="PutBucketAnalyticsConfiguration",Pie="PutBucketAbacRequest",Nie="PutBucketAclRequest",Mie="PutBucketAcl",Lie="PutBucketCors",$ie="PutBucketCorsRequest",Uie="PutBucketEncryption",jie="PutBucketEncryptionRequest",zie="PutBucketInventoryConfiguration",qie="PutBucketInventoryConfigurationRequest",Hie="PutBucketIntelligentTieringConfiguration",Gie="PutBucketIntelligentTieringConfigurationRequest",Vie="PutBucketLogging",Wie="PutBucketLifecycleConfiguration",Kie="PutBucketLifecycleConfigurationOutput",Yie="PutBucketLifecycleConfigurationRequest",Xie="PutBucketLoggingRequest",Zie="PutBucketMetricsConfiguration",Qie="PutBucketMetricsConfigurationRequest",Jie="PutBucketNotificationConfiguration",ese="PutBucketNotificationConfigurationRequest",tse="PutBucketOwnershipControls",nse="PutBucketOwnershipControlsRequest",rse="PutBucketPolicy",ise="PutBucketPolicyRequest",sse="PutBucketReplication",ose="PutBucketRequestPayment",ase="PutBucketRequestPaymentRequest",cse="PutBucketReplicationRequest",use="PutBucketTagging",lse="PutBucketTaggingRequest",pse="PutBucketVersioning",dse="PutBucketVersioningRequest",fse="PutBucketWebsite",mse="PutBucketWebsiteRequest",Zf="PartsCount",hse="PartitionDateSource",gse="ProgressEvent",yse="ParquetInput",xse="PartsList",ao="PartNumber",Qf="PartNumberMarker",vse="PutObject",bse="PutObjectAcl",_se="PutObjectAclOutput",wse="PutObjectAclRequest",Ese="PutObjectLockConfiguration",Dse="PutObjectLockConfigurationOutput",Sse="PutObjectLockConfigurationRequest",Cse="PutObjectLegalHold",Tse="PutObjectLegalHoldOutput",Ase="PutObjectLegalHoldRequest",Rse="PutObjectOutput",kse="PutObjectRequest",Ose="PutObjectRetentionOutput",Fse="PutObjectRetentionRequest",Bse="PutObjectRetention",Ise="PutObjectTagging",Pse="PutObjectTaggingOutput",Nse="PutObjectTaggingRequest",Nf="PartitionedPrefix",Mse="PutPublicAccessBlock",Lse="PutPublicAccessBlockRequest",_F="PolicyStatus",Jf="Parts",em="Part",$se="Parquet",wF="Payer",EF="Payload",DF="Permission",SF="Policy",CF="Progress",Use="Priority",TF="Protocol",jse="Quiet",zse="QueueArn",AF="QuoteCharacter",qse="QueueConfigurationList",Hse="QueueConfigurations",RF="QueueConfiguration",kF="QuoteEscapeCharacter",Gse="QuoteFields",Vse="Queue",rl="Rules",vv="RedirectAllRequestsTo",Xe="RequestCharged",OF="ResponseCacheControl",FF="ResponseContentDisposition",BF="ResponseContentEncoding",IF="ResponseContentLanguage",PF="ResponseContentType",Mf="ReplicationConfiguration",bv="RecordDelimiter",NF="ResponseExpires",Wse="RestoreExpiryDate",tm="RecordExpiration",Kse="RecordsEvent",Yse="ReplicaKmsKeyID",Xse="ReplaceKeyPrefixWith",Zse="ReplaceKeyWith",MF="ReplicaModifications",Qse="RenameObject",Jse="RenameObjectOutput",eoe="RestoreObjectOutput",toe="RestoreOutputPath",noe="RenameObjectRequest",roe="RestoreObjectRequest",ioe="RestoreObject",Me="RequestPayer",qk="RestrictPublicBuckets",Lf="RequestPaymentConfiguration",LF="RequestProgress",_v="RoutingRules",soe="ReplicationRuleAndOperator",ooe="ReplicationRuleFilter",aoe="ReplicationRule",coe="ReplicationRules",uoe="RequestRoute",zx="RestoreRequest",$F="RoutingRule",wv="ReplicationStatus",Ev="RestoreStatus",loe="RenameSource",UF="ReplicationTime",poe="ReplicationTimeValue",doe="RequestToken",foe="RetainUntilDate",$f="Range",Dv="Restore",moe="Records",jF="Redirect",Uf="Retention",hoe="Role",Ua="Rule",tn="Status",zF="StartAfter",Hk="SecretAccessKey",goe="SseAlgorithm",yoe="StreamingBlob",qF="S3BucketDestination",nn="StorageClass",HF="StorageClassAnalysis",xoe="StorageClassAnalysisDataExport",voe="SessionCredentialValue",boe="SessionCredentials",_oe="StatusCode",woe="SkipDestinationValidation",Eoe="StatsEvent",Doe="SourceIfMatch",Soe="SourceIfModifiedSince",Coe="SourceIfNoneMatch",Toe="SourceIfUnmodifiedSince",nm="SSE-KMS",GF="SseKmsEncryptedObjects",Aoe="S3KeyFilter",Roe="S3Key",koe="S3Location",Ooe="SessionMode",Foe="SelectObjectContent",Boe="SelectObjectContentEventStream",Ioe="SelectObjectContentOutput",Poe="SelectObjectContentRequest",VF="SelectParameters",jf="SimplePrefix",WF="ScanRange",KF="SSE-S3",YF="SourceSelectionCriteria",Nn="ServerSideEncryption",Noe="SSEAlgorithm",Moe="ServerSideEncryptionByDefault",zf="ServerSideEncryptionConfiguration",Rt="SSECustomerAlgorithm",pr="SSECustomerKey",kt="SSECustomerKeyMD5",Sv="SSEKMS",Loe="SSEKMSEncryption",ki="SSEKMSEncryptionContext",wn="SSEKMSKeyId",$oe="ServerSideEncryptionRule",Uoe="ServerSideEncryptionRules",XF="SSES3",Gk="SessionToken",ZF="S3TablesDestination",QF="S3TablesDestinationResult",joe="S3",zoe="Schedule",ja="Size",qoe="Start",JF="Stats",Hoe="Suffix",za="Tags",Cv="TableArn",Goe="TopicArn",Voe="TargetBucket",Tv="TableBucketArn",Woe="TableBucketType",Av="TagCount",Koe="TopicConfigurationList",Yoe="TopicConfigurations",eB="TopicConfiguration",Xoe="TaggingDirective",Rv="TransitionDefaultMinimumObjectSize",tB="TargetGrants",Zoe="TargetGrant",Qoe="TieringList",Joe="TransitionList",eae="TooManyParts",nB="TableNamespace",rm="TableName",rB="TargetObjectKeyFormat",tae="TargetPrefix",nae="TotalPartsCount",im="TagSet",iB="TableStatus",dr="Tag",Fr="Tagging",sB="Tier",rae="Tierings",oB="Tiering",iae="Time",aB="Token",sae="Topic",oae="Transitions",cB="Transition",il="Type",aae="Uploads",cae="UpdateBucketMetadataInventoryTableConfiguration",uae="UpdateBucketMetadataInventoryTableConfigurationRequest",lae="UpdateBucketMetadataJournalTableConfiguration",pae="UpdateBucketMetadataJournalTableConfigurationRequest",us="UploadId",uB="UploadIdMarker",lB="UserMetadata",dae="UpdateObjectEncryption",fae="UpdateObjectEncryptionRequest",mae="UpdateObjectEncryptionResponse",hae="UploadPart",gae="UploadPartCopy",yae="UploadPartCopyOutput",xae="UploadPartCopyRequest",vae="UploadPartOutput",bae="UploadPartRequest",_ae="URI",wae="Upload",kv="Value",qf="VersioningConfiguration",Be="VersionId",pB="VersionIdMarker",Eae="Versions",Dae="Version",Hf="WebsiteConfiguration",Sae="WriteGetObjectResponse",Cae="WriteGetObjectResponseRequest",Tae="WriteOffsetBytes",sl="WebsiteRedirectLocation",Aae="Years",dB="accept-ranges",Rae="bucket-region",En="client",co="continuation-token",sm="delimiter",Dn="error",Ov="eventPayload",kae="endpoint",om="encoding-type",Oae="fetch-owner",K="http",Le="httpChecksum",Mn="httpError",y="httpHeader",Fae="hostLabel",Se="httpPayload",qa="httpPrefixHeaders",ne="httpQuery",fB="http://www.w3.org/2001/XMLSchema-instance",fr="id",Bae="idempotencyToken",mB="key-marker",Iae="marker",Pae="max-buckets",Nae="max-directory-buckets",Fv="max-keys",Mae="max-parts",Lae="max-uploads",ol="prefix",am="partNumber",$ae="part-number-marker",hB="response-cache-control",gB="response-content-disposition",yB="response-content-encoding",xB="response-content-language",vB="response-content-type",bB="response-expires",_B="smithy.ts.sdk.synthetic.com.amazonaws.s3",Uae="start-after",wB="streaming",al="uploadId",jae="upload-id-marker",Sn="versionId",zae="version-id-marker",EB="xsi",qae="xmlAttribute",le="xmlFlattened",j="xmlName",DB="xmlNamespace",Ha="x-amz-acl",SB="x-amz-abort-date",Hae="x-amz-access-point-alias",CB="x-amz-abort-rule-id",Gae="x-amz-archive-status",TB="x-amz-bucket-arn",Bv="x-amz-bypass-governance-retention",Vae="x-amz-bucket-location-name",Wae="x-amz-bucket-location-type",Kae="x-amz-bucket-namespace",Yae="x-amz-bucket-object-lock-enabled",AB="x-amz-bucket-object-lock-token",Xae="x-amz-bucket-region",Iv="x-amz-checksum-algorithm",uo="x-amz-checksum-crc32",lo="x-amz-checksum-crc32c",po="x-amz-checksum-crc64nvme",RB="x-amz-checksum-mode",Zae="x-amz-confirm-remove-self-bucket-access",fo="x-amz-checksum-sha1",mo="x-amz-checksum-sha256",kB="x-amz-copy-source",OB="x-amz-copy-source-if-match",FB="x-amz-copy-source-if-modified-since",BB="x-amz-copy-source-if-none-match",IB="x-amz-copy-source-if-unmodified-since",Qae="x-amz-create-session-mode",Jae="x-amz-copy-source-range",PB="x-amz-copy-source-server-side-encryption-customer-algorithm",NB="x-amz-copy-source-server-side-encryption-customer-key",MB="x-amz-copy-source-server-side-encryption-customer-key-MD5",LB="x-amz-copy-source-version-id",Ga="x-amz-checksum-type",ece="x-amz-client-token",cm="x-amz-delete-marker",cl="x-amz-expiration",Z="x-amz-expected-bucket-owner",tce="x-amz-fwd-error-code",nce="x-amz-fwd-error-message",rce="x-amz-fwd-header-Cache-Control",ice="x-amz-fwd-header-Content-Disposition",sce="x-amz-fwd-header-Content-Encoding",oce="x-amz-fwd-header-Content-Language",ace="x-amz-fwd-header-Content-Range",cce="x-amz-fwd-header-Content-Type",uce="x-amz-fwd-header-ETag",lce="x-amz-fwd-header-Expires",pce="x-amz-fwd-header-Last-Modified",dce="x-amz-fwd-header-accept-ranges",fce="x-amz-fwd-header-x-amz-checksum-crc32",mce="x-amz-fwd-header-x-amz-checksum-crc32c",hce="x-amz-fwd-header-x-amz-checksum-crc64nvme",gce="x-amz-fwd-header-x-amz-checksum-sha1",yce="x-amz-fwd-header-x-amz-checksum-sha256",xce="x-amz-fwd-header-x-amz-delete-marker",vce="x-amz-fwd-header-x-amz-expiration",bce="x-amz-fwd-header-x-amz-missing-meta",_ce="x-amz-fwd-header-x-amz-mp-parts-count",wce="x-amz-fwd-header-x-amz-object-lock-legal-hold",Ece="x-amz-fwd-header-x-amz-object-lock-mode",Dce="x-amz-fwd-header-x-amz-object-lock-retain-until-date",Sce="x-amz-fwd-header-x-amz-restore",Cce="x-amz-fwd-header-x-amz-request-charged",Tce="x-amz-fwd-header-x-amz-replication-status",Ace="x-amz-fwd-header-x-amz-storage-class",Rce="x-amz-fwd-header-x-amz-server-side-encryption",kce="x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id",Oce="x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled",Fce="x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm",Bce="x-amz-fwd-header-x-amz-server-side-encryption-customer-key-MD5",Ice="x-amz-fwd-header-x-amz-tagging-count",Pce="x-amz-fwd-header-x-amz-version-id",Nce="x-amz-fwd-status",Va="x-amz-grant-full-control",Wa="x-amz-grant-read",Ka="x-amz-grant-read-acp",Pv="x-amz-grant-write",Ya="x-amz-grant-write-acp",Mce="x-amz-if-match-initiated-time",Lce="x-amz-if-match-last-modified-time",$ce="x-amz-if-match-size",Xa="x-amz-meta-",Nv="x-amz-mfa",Uce="x-amz-metadata-directive",$B="x-amz-missing-meta",jce="x-amz-mp-object-size",zce="x-amz-max-parts",UB="x-amz-mp-parts-count",qce="x-amz-object-attributes",ul="x-amz-object-lock-legal-hold",ll="x-amz-object-lock-mode",pl="x-amz-object-lock-retain-until-date",Hce="x-amz-object-ownership",Mv="x-amz-optional-object-attributes",Gce="x-amz-object-size",Vce="x-amz-part-number-marker",jB="x-amz-restore",Je="x-amz-request-charged",Wce="x-amz-restore-output-path",$e="x-amz-request-payer",Kce="x-amz-request-route",zB="x-amz-replication-status",Yce="x-amz-rename-source",Xce="x-amz-rename-source-if-match",Zce="x-amz-rename-source-if-modified-since",Qce="x-amz-rename-source-if-none-match",Jce="x-amz-rename-source-if-unmodified-since",eue="x-amz-request-token",dl="x-amz-storage-class",qe="x-amz-sdk-checksum-algorithm",tue="x-amz-skip-destination-validation",qB="x-amz-source-expected-bucket-owner",Yn="x-amz-server-side-encryption",Xn="x-amz-server-side-encryption-aws-kms-key-id",Zn="x-amz-server-side-encryption-bucket-key-enabled",ls="x-amz-server-side-encryption-context",Ut="x-amz-server-side-encryption-customer-algorithm",Ir="x-amz-server-side-encryption-customer-key",jt="x-amz-server-side-encryption-customer-key-MD5",Lv="x-amz-tagging",HB="x-amz-tagging-count",nue="x-amz-tagging-directive",$v="x-amz-transition-default-minimum-object-size",ii="x-amz-version-id",rue="x-amz-write-offset-bytes",fl="x-amz-website-redirect-location",iue="xsi:type",b="com.amazonaws.s3",GB=Zr.for(_B),sue=[-3,_B,"S3ServiceException",0,[],[]];GB.registerError(sue,St);var rn=Zr.for(b),oue=[-3,b,$Z,{[Dn]:En,[Mn]:403},[],[]];rn.registerError(oue,lf);var aue=[-3,b,rQ,{[Dn]:En,[Mn]:409},[],[]];rn.registerError(aue,df);var cue=[-3,b,sQ,{[Dn]:En,[Mn]:409},[],[]];rn.registerError(cue,ff);var uue=[-3,b,see,{[Dn]:En,[Mn]:400},[],[]];rn.registerError(uue,xf);var lue=[-3,b,wne,{[Dn]:En,[Mn]:400},[],[]];rn.registerError(lue,wf);var pue=[-3,b,bne,{[Dn]:En,[Mn]:403},[nn,Jk],[0,0]];rn.registerError(pue,hf);var due=[-3,b,Ene,{[Dn]:En,[Mn]:400},[],[]];rn.registerError(due,vf);var fue=[-3,b,kne,{[Dn]:En,[Mn]:400},[],[]];rn.registerError(fue,bf);var mue=[-3,b,nie,{[Dn]:En,[Mn]:404},[],[]];rn.registerError(mue,mf);var hue=[-3,b,rie,{[Dn]:En,[Mn]:404},[],[]];rn.registerError(hue,gf);var gue=[-3,b,iie,{[Dn]:En,[Mn]:404},[],[]];rn.registerError(gue,uf);var yue=[-3,b,eie,{[Dn]:En},[],[]];rn.registerError(yue,yf);var xue=[-3,b,lie,{[Dn]:En,[Mn]:403},[],[]];rn.registerError(xue,Ef);var vue=[-3,b,wie,{[Dn]:En,[Mn]:403},[],[]];rn.registerError(vue,pf);var bue=[-3,b,eae,{[Dn]:En,[Mn]:400},[],[]];rn.registerError(bue,_f);var VB=[GB,rn],WB=[0,b,Zx,8,0],_ue=[0,b,Jre,8,0],Vk=[0,b,voe,8,0],Pr=[0,b,pr,8,0],ps=[0,b,ki,8,0],Kt=[0,b,wn,8,0],ml=[0,b,yoe,{[wB]:1},42],KB=[3,b,Sf,0,[tn],[0]],wue=[3,b,Xk,0,[ZQ],[1]],Eue=[3,b,WZ,0,[Xe],[[0,{[y]:Je}]]],Due=[3,b,KZ,0,[V,me,us,Me,X,hne],[[0,1],[0,1],[0,{[ne]:al}],[0,{[y]:$e}],[0,{[y]:Z}],[6,{[y]:Mce}]],3],Sue=[3,b,Df,0,[tn],[0]],YB=[3,b,ro,0,[Kf,Br],[[()=>lm,{[j]:Gf}],()=>Oi]],Cue=[3,b,Kk,0,[Br],[0],1],Tue=[3,b,LZ,0,[Ye,za],[0,[()=>Fi,{[le]:1,[j]:dr}]]],Uv=[3,b,Uu,0,[At,HF,Ri],[0,()=>Fme,[()=>Ehe,0]],2],Aue=[3,b,UZ,0,[qF],[()=>Rue],1],Rue=[3,b,eQ,0,[LO,V,iQ,Ye],[0,0,0,0],2],kue=[3,b,eO,0,[tv],[[()=>ehe,{[le]:1}]]],Oue=[3,b,V,0,[oo,bQ,Vx,Hx],[0,4,0,0]],Fue=[3,b,oQ,0,[KJ,il],[0,0]],Bue=[3,b,aQ,0,[rl],[[()=>gI,{[le]:1,[j]:Ua}]],1],Iue=[3,b,Cf,0,[fv],[[()=>tI,0]]],Pue=[3,b,iO,0,[yn,xn,vn,bn,_n,Kn],[0,0,0,0,0,0]],Nue=[3,b,IQ,0,[Ye],[0]],Mue=[3,b,DQ,0,[Jf],[[()=>Zme,{[le]:1,[j]:em}]]],Lue=[3,b,MQ,0,[$t,yn,xn,vn,bn,_n,ao],[0,0,0,0,0,0,1]],$ue=[3,b,SQ,{[j]:TQ},[Of,V,me,ti,$t,yn,xn,vn,bn,_n,Kn,Nn,Be,wn,en,Xe],[0,0,0,[0,{[y]:cl}],0,0,0,0,0,0,0,[0,{[y]:Yn}],[0,{[y]:ii}],[()=>Kt,{[y]:Xn}],[2,{[y]:Zn}],[0,{[y]:Je}]]],Uue=[3,b,AQ,0,[V,me,us,iF,yn,xn,vn,bn,_n,Kn,Wre,Me,X,Ba,tl,Rt,pr,kt],[[0,1],[0,1],[0,{[ne]:al}],[()=>Mue,{[Se]:1,[j]:sO}],[0,{[y]:uo}],[0,{[y]:lo}],[0,{[y]:po}],[0,{[y]:fo}],[0,{[y]:mo}],[0,{[y]:Ga}],[1,{[y]:jce}],[0,{[y]:$e}],[0,{[y]:Z}],[0,{[y]:so}],[0,{[y]:Ia}],[0,{[y]:Ut}],[()=>Pr,{[y]:Ir}],[0,{[y]:jt}]],3],jue=[3,b,vO,0,[one,zne],[0,0]],zue=[3,b,_Q,0,[],[]],que=[3,b,FQ,0,[aO,ti,xO,Be,Nn,Rt,kt,wn,ki,en,Xe],[[()=>Gue,16],[0,{[y]:cl}],[0,{[y]:LB}],[0,{[y]:ii}],[0,{[y]:Yn}],[0,{[y]:Ut}],[0,{[y]:jt}],[()=>Kt,{[y]:Xn}],[()=>ps,{[y]:ls}],[2,{[y]:Zn}],[0,{[y]:Je}]]],Hue=[3,b,BQ,0,[V,lO,me,_a,wa,we,Ea,Da,Sa,Ca,pO,dO,fO,mO,Or,Aa,Ra,ka,Oa,Ba,tl,Pa,Hre,Xoe,Nn,nn,sl,Rt,pr,kt,wn,ki,en,hO,Zx,gO,Me,Fr,La,$a,Ma,X,OO],[[0,1],[0,{[y]:kB}],[0,1],[0,{[y]:Ha}],[0,{[y]:Vu}],[0,{[y]:Iv}],[0,{[y]:Wu}],[0,{[y]:Ku}],[0,{[y]:Yu}],[0,{[y]:Qu}],[0,{[y]:OB}],[4,{[y]:FB}],[0,{[y]:BB}],[4,{[y]:IB}],[4,{[y]:Or}],[0,{[y]:Va}],[0,{[y]:Wa}],[0,{[y]:Ka}],[0,{[y]:Ya}],[0,{[y]:so}],[0,{[y]:Ia}],[128,{[qa]:Xa}],[0,{[y]:Uce}],[0,{[y]:nue}],[0,{[y]:Yn}],[0,{[y]:dl}],[0,{[y]:fl}],[0,{[y]:Ut}],[()=>Pr,{[y]:Ir}],[0,{[y]:jt}],[()=>Kt,{[y]:Xn}],[()=>ps,{[y]:ls}],[2,{[y]:Zn}],[0,{[y]:PB}],[()=>WB,{[y]:NB}],[0,{[y]:MB}],[0,{[y]:$e}],[0,{[y]:Lv}],[0,{[y]:ll}],[5,{[y]:pl}],[0,{[y]:ul}],[0,{[y]:Z}],[0,{[y]:qB}]],3],Gue=[3,b,aO,0,[$t,ri,Kn,yn,xn,vn,bn,_n],[0,4,0,0,0,0,0,0]],Vue=[3,b,cO,0,[$t,ri,yn,xn,vn,bn,_n],[0,4,0,0,0,0,0]],Wue=[3,b,Tf,0,[Kx],[[()=>hI,{[le]:1,[j]:Yx}]],1],Kue=[3,b,Yx,0,[GZ,XZ,Fa,zZ,tee,zre],[[64,{[le]:1,[j]:YZ}],[64,{[le]:1,[j]:ZZ}],0,[64,{[le]:1,[j]:qZ}],[64,{[le]:1,[j]:nee}],1],2],Yue=[3,b,Px,0,[Mx,Of,V,za],[0,()=>Kde,()=>Fue,[()=>Fi,0]]],Xue=[3,b,hQ,0,[V,$x,it,we,X],[[0,1],[()=>Yde,{[Se]:1,[j]:$x}],[0,{[y]:rt}],[0,{[y]:qe}],[0,{[y]:Z}]],2],Zue=[3,b,yQ,0,[V,Ux,it,we,X],[[0,1],[()=>Qde,{[Se]:1,[j]:Ux}],[0,{[y]:rt}],[0,{[y]:qe}],[0,{[y]:Z}]],2],Que=[3,b,xQ,0,[Of,Hx],[[0,{[y]:Of}],[0,{[y]:TB}]]],Jue=[3,b,vQ,0,[V,_a,Px,Aa,Ra,ka,sv,Oa,yie,yF,lQ],[[0,1],[0,{[y]:Ha}],[()=>Yue,{[Se]:1,[j]:Px}],[0,{[y]:Va}],[0,{[y]:Wa}],[0,{[y]:Ka}],[0,{[y]:Pv}],[0,{[y]:Ya}],[2,{[y]:Yae}],[0,{[y]:Hce}],[0,{[y]:Kae}]],1],ele=[3,b,CQ,{[j]:xne},[Yk,Qk,V,me,us,Nn,Rt,kt,wn,ki,en,Xe,we,Kn],[[4,{[y]:SB}],[0,{[y]:CB}],[0,{[j]:V}],0,0,[0,{[y]:Yn}],[0,{[y]:Ut}],[0,{[y]:jt}],[()=>Kt,{[y]:Xn}],[()=>ps,{[y]:ls}],[2,{[y]:Zn}],[0,{[y]:Je}],[0,{[y]:Iv}],[0,{[y]:Ga}]]],tle=[3,b,RQ,0,[V,me,_a,wa,Ea,Da,Sa,Ca,Or,Aa,Ra,ka,Oa,Pa,Nn,nn,sl,Rt,pr,kt,wn,ki,en,Me,Fr,La,$a,Ma,X,we,Kn],[[0,1],[0,1],[0,{[y]:Ha}],[0,{[y]:Vu}],[0,{[y]:Wu}],[0,{[y]:Ku}],[0,{[y]:Yu}],[0,{[y]:Qu}],[4,{[y]:Or}],[0,{[y]:Va}],[0,{[y]:Wa}],[0,{[y]:Ka}],[0,{[y]:Ya}],[128,{[qa]:Xa}],[0,{[y]:Yn}],[0,{[y]:dl}],[0,{[y]:fl}],[0,{[y]:Ut}],[()=>Pr,{[y]:Ir}],[0,{[y]:jt}],[()=>Kt,{[y]:Xn}],[()=>ps,{[y]:ls}],[2,{[y]:Zn}],[0,{[y]:$e}],[0,{[y]:Lv}],[0,{[y]:ll}],[5,{[y]:pl}],[0,{[y]:ul}],[0,{[y]:Z}],[0,{[y]:Iv}],[0,{[y]:Ga}]],2],nle=[3,b,$Q,{[j]:UQ},[Uk,Nn,wn,ki,en],[[()=>Eme,{[j]:Uk}],[0,{[y]:Yn}],[()=>Kt,{[y]:Xn}],[()=>ps,{[y]:ls}],[2,{[y]:Zn}]],1],rle=[3,b,zQ,0,[V,Ooe,Nn,wn,ki,en],[[0,1],[0,{[y]:Qae}],[0,{[y]:Yn}],[()=>Kt,{[y]:Xn}],[()=>ps,{[y]:ls}],[2,{[y]:Zn}]],1],ile=[3,b,qQ,0,[cee,YQ,kF,bv,NO,AF,JZ],[0,0,0,0,0,0,2]],sle=[3,b,HQ,0,[Gse,kF,bv,NO,AF],[0,0,0,0,0]],ole=[3,b,EO,0,[cF,Ta,Aae],[0,1,1]],ale=[3,b,Nx,0,[Rie,jse],[[()=>lhe,{[le]:1,[j]:bF}],2],1],cle=[3,b,eJ,0,[V,At,X],[[0,1],[0,{[ne]:fr}],[0,{[y]:Z}]],2],ule=[3,b,nJ,0,[V,X],[[0,1],[0,{[y]:Z}]],1],lle=[3,b,iJ,0,[V,X],[[0,1],[0,{[y]:Z}]],1],ple=[3,b,cJ,0,[V,At,X],[[0,1],[0,{[ne]:fr}],[0,{[y]:Z}]],2],dle=[3,b,oJ,0,[V,At,X],[[0,1],[0,{[ne]:fr}],[0,{[y]:Z}]],2],fle=[3,b,lJ,0,[V,X],[[0,1],[0,{[y]:Z}]],1],mle=[3,b,dJ,0,[V,X],[[0,1],[0,{[y]:Z}]],1],hle=[3,b,gJ,0,[V,X],[[0,1],[0,{[y]:Z}]],1],gle=[3,b,fJ,0,[V,At,X],[[0,1],[0,{[ne]:fr}],[0,{[y]:Z}]],2],yle=[3,b,xJ,0,[V,X],[[0,1],[0,{[y]:Z}]],1],xle=[3,b,bJ,0,[V,X],[[0,1],[0,{[y]:Z}]],1],vle=[3,b,wJ,0,[V,X],[[0,1],[0,{[y]:Z}]],1],ble=[3,b,_J,0,[V,X],[[0,1],[0,{[y]:Z}]],1],_le=[3,b,SJ,0,[V,X],[[0,1],[0,{[y]:Z}]],1],wle=[3,b,TJ,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Ele=[3,b,PJ,0,[me,Be,io,IJ],[0,0,2,0]],Dle=[3,b,BJ,0,[Br,me,Be,HO,ri],[()=>Oi,0,0,2,4]],Sle=[3,b,_O,0,[tn],[0]],Cle=[3,b,NJ,0,[io,Be,Xe],[[2,{[y]:cm}],[0,{[y]:ii}],[0,{[y]:Je}]]],Tle=[3,b,LJ,0,[V,me,hv,Be,Me,Gx,X,Ba,gne,yne],[[0,1],[0,1],[0,{[y]:Nv}],[0,{[ne]:Sn}],[0,{[y]:$e}],[2,{[y]:Bv}],[0,{[y]:Z}],[0,{[y]:so}],[6,{[y]:Lce}],[1,{[y]:$ce}]],2],Ale=[3,b,MJ,{[j]:YJ},[XJ,Xe,IO],[[()=>Qme,{[le]:1}],[0,{[y]:Je}],[()=>the,{[le]:1,[j]:el}]]],Rle=[3,b,$J,0,[V,Nx,hv,Me,Gx,X,we],[[0,1],[()=>ale,{[Se]:1,[j]:Nx}],[0,{[y]:Nv}],[0,{[y]:$e}],[2,{[y]:Bv}],[0,{[y]:Z}],[0,{[y]:qe}]],2],kle=[3,b,jJ,0,[Be],[[0,{[y]:ii}]]],Ole=[3,b,zJ,0,[V,me,Be,X],[[0,1],[0,1],[0,{[ne]:Sn}],[0,{[y]:Z}]],2],Fle=[3,b,WJ,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Ble=[3,b,Wf,0,[V,MZ,nn,Kk,Ju,UF,aF],[0,0,0,()=>Cue,()=>Nle,()=>ome,()=>efe],1],Ile=[3,b,DO,0,[Woe,Tv,nB],[0,0,0]],Ple=[3,b,nv,0,[tv,Une,Lne],[0,[()=>Kt,0],0],1],Nle=[3,b,Ju,0,[Yse],[0]],Mle=[3,b,eee,0,[],[]],Lle=[3,b,el,0,[me,Be,KQ,Xre],[0,0,0,0]],jv=[3,b,JJ,0,[AO,RO],[0,0]],XB=[3,b,ev,0,[me],[0],1],$le=[3,b,TO,0,[],[]],Ule=[3,b,kO,0,[tn],[0],1],jle=[3,b,MO,0,[oo,kv],[0,0]],zle=[3,b,_ee,0,[Sf],[[()=>KB,16]]],qle=[3,b,Eee,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Hle=[3,b,gee,{[j]:Df},[tn,Xe],[0,[0,{[y]:Je}]]],Gle=[3,b,xee,0,[V,X,Me],[[0,1],[0,{[y]:Z}],[0,{[y]:$e}]],1],Vle=[3,b,wee,{[j]:ro},[Br,Kf],[()=>Oi,[()=>lm,{[j]:Gf}]]],Wle=[3,b,Dee,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Kle=[3,b,yee,0,[Uu],[[()=>Uv,16]]],Yle=[3,b,vee,0,[V,At,X],[[0,1],[0,{[ne]:fr}],[0,{[y]:Z}]],2],Xle=[3,b,Tee,{[j]:Tf},[Kx],[[()=>hI,{[le]:1,[j]:Yx}]]],Zle=[3,b,Aee,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Qle=[3,b,kee,0,[zf],[[()=>fI,16]]],Jle=[3,b,Oee,0,[V,X],[[0,1],[0,{[y]:Z}]],1],epe=[3,b,Nee,0,[zu],[[()=>zv,16]]],tpe=[3,b,Mee,0,[V,At,X],[[0,1],[0,{[ne]:fr}],[0,{[y]:Z}]],2],npe=[3,b,Bee,0,[ju],[[()=>qv,16]]],rpe=[3,b,Iee,0,[V,At,X],[[0,1],[0,{[ne]:fr}],[0,{[y]:Z}]],2],ipe=[3,b,Uee,{[j]:Lx},[rl,Rv],[[()=>gI,{[le]:1,[j]:Ua}],[0,{[y]:$v}]]],spe=[3,b,jee,0,[V,X],[[0,1],[0,{[y]:Z}]],1],ope=[3,b,zee,{[j]:Mx},[Mx],[0]],ape=[3,b,Hee,0,[V,X],[[0,1],[0,{[y]:Z}]],1],cpe=[3,b,qee,{[j]:Cf},[fv],[[()=>tI,0]]],upe=[3,b,Gee,0,[V,X],[[0,1],[0,{[y]:Z}]],1],lpe=[3,b,Kee,0,[$O],[[()=>dpe,16]]],ppe=[3,b,Xee,0,[V,X],[[0,1],[0,{[y]:Z}]],1],dpe=[3,b,$O,0,[JO],[()=>Xde],1],fpe=[3,b,ete,0,[UO],[[()=>hpe,16]]],mpe=[3,b,tte,0,[V,X],[[0,1],[0,{[y]:Z}]],1],hpe=[3,b,UO,0,[rF,tn,el],[()=>Jde,0,()=>jv],2],gpe=[3,b,Yee,0,[qu],[[()=>Gv,16]]],ype=[3,b,Zee,0,[V,At,X],[[0,1],[0,{[ne]:fr}],[0,{[y]:Z}]],2],xpe=[3,b,rte,0,[V,X],[[0,1],[0,{[y]:Z}]],1],vpe=[3,b,ste,0,[Bf],[[()=>aI,16]]],bpe=[3,b,ote,0,[V,X],[[0,1],[0,{[y]:Z}]],1],_pe=[3,b,cte,0,[SF],[[0,16]]],wpe=[3,b,ute,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Epe=[3,b,pte,0,[_F],[[()=>hfe,16]]],Dpe=[3,b,dte,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Spe=[3,b,mte,0,[Mf],[[()=>lI,16]]],Cpe=[3,b,xte,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Tpe=[3,b,gte,{[j]:Lf},[wF],[0]],Ape=[3,b,yte,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Rpe=[3,b,bte,{[j]:Fr},[im],[[()=>Fi,0]],1],kpe=[3,b,_te,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Ope=[3,b,Ete,{[j]:qf},[tn,nF],[0,[0,{[j]:eF}]]],Fpe=[3,b,Dte,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Bpe=[3,b,Cte,{[j]:Hf},[vv,cv,ev,_v],[()=>uI,()=>QB,()=>XB,[()=>xI,0]]],Ipe=[3,b,Tte,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Ppe=[3,b,kte,{[j]:ro},[Br,Kf,Xe],[()=>Oi,[()=>lm,{[j]:Gf}],[0,{[y]:Je}]]],Npe=[3,b,Bte,0,[V,me,Be,Me,X],[[0,1],[0,1],[0,{[ne]:Sn}],[0,{[y]:$e}],[0,{[y]:Z}]],2],Mpe=[3,b,Ote,{[j]:Ite},[io,ri,Be,Xe,$t,iO,Eie,nn,Sie],[[2,{[y]:cm}],[4,{[y]:mv}],[0,{[y]:ii}],[0,{[y]:Je}],0,()=>Pue,[()=>Lpe,0],0,1]],Lpe=[3,b,Fte,0,[nae,Qf,dF,Xf,ni,Jf],[[1,{[j]:Zf}],0,0,1,2,[()=>mhe,{[le]:1,[j]:em}]]],$pe=[3,b,Pte,0,[V,me,uie,Be,Xf,Qf,Rt,pr,kt,Me,X],[[0,1],[0,1],[64,{[y]:qce}],[0,{[ne]:Sn}],[1,{[y]:zce}],[0,{[y]:Vce}],[0,{[y]:Ut}],[()=>Pr,{[y]:Ir}],[0,{[y]:jt}],[0,{[y]:$e}],[0,{[y]:Z}]],3],Upe=[3,b,jte,0,[Ff],[[()=>iI,{[Se]:1,[j]:Ff}]]],jpe=[3,b,zte,0,[V,me,Be,Me,X],[[0,1],[0,1],[0,{[ne]:Sn}],[0,{[y]:$e}],[0,{[y]:Z}]],2],zpe=[3,b,Lte,0,[If],[[()=>rI,16]]],qpe=[3,b,$te,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Hpe=[3,b,qte,0,[Gu,io,qx,ti,Dv,ri,Zu,$t,yn,xn,vn,bn,_n,Kn,gv,Be,wa,Ea,Da,Sa,Xx,Ca,Or,Af,sl,Nn,Pa,Rt,kt,wn,en,nn,Xe,wv,Zf,Av,La,$a,Ma],[[()=>ml,16],[2,{[y]:cm}],[0,{[y]:dB}],[0,{[y]:cl}],[0,{[y]:jB}],[4,{[y]:mv}],[1,{[y]:Xu}],[0,{[y]:$t}],[0,{[y]:uo}],[0,{[y]:lo}],[0,{[y]:po}],[0,{[y]:fo}],[0,{[y]:mo}],[0,{[y]:Ga}],[1,{[y]:$B}],[0,{[y]:ii}],[0,{[y]:Vu}],[0,{[y]:Wu}],[0,{[y]:Ku}],[0,{[y]:Yu}],[0,{[y]:uO}],[0,{[y]:Qu}],[4,{[y]:Or}],[0,{[y]:Af}],[0,{[y]:fl}],[0,{[y]:Yn}],[128,{[qa]:Xa}],[0,{[y]:Ut}],[0,{[y]:jt}],[()=>Kt,{[y]:Xn}],[2,{[y]:Zn}],[0,{[y]:dl}],[0,{[y]:Je}],[0,{[y]:zB}],[1,{[y]:UB}],[1,{[y]:HB}],[0,{[y]:ll}],[5,{[y]:pl}],[0,{[y]:ul}]]],Gpe=[3,b,Hte,0,[V,me,Ba,GO,tl,KO,$f,OF,FF,BF,IF,PF,NF,Be,Rt,pr,kt,Me,ao,X,oO],[[0,1],[0,1],[0,{[y]:so}],[4,{[y]:uv}],[0,{[y]:Ia}],[4,{[y]:pv}],[0,{[y]:$f}],[0,{[ne]:hB}],[0,{[ne]:gB}],[0,{[ne]:yB}],[0,{[ne]:xB}],[0,{[ne]:vB}],[6,{[ne]:bB}],[0,{[ne]:Sn}],[0,{[y]:Ut}],[()=>Pr,{[y]:Ir}],[0,{[y]:jt}],[0,{[y]:$e}],[1,{[ne]:am}],[0,{[y]:Z}],[0,{[y]:RB}]],2],Vpe=[3,b,Gte,0,[Uf],[[()=>sI,{[Se]:1,[j]:Uf}]]],Wpe=[3,b,Vte,0,[V,me,Be,Me,X],[[0,1],[0,1],[0,{[ne]:Sn}],[0,{[y]:$e}],[0,{[y]:Z}]],2],Kpe=[3,b,Yte,{[j]:Fr},[im,Be],[[()=>Fi,0],[0,{[y]:ii}]],1],Ype=[3,b,Zte,0,[V,me,Be,X,Me],[[0,1],[0,1],[0,{[ne]:Sn}],[0,{[y]:Z}],[0,{[y]:$e}]],2],Xpe=[3,b,Xte,0,[Gu,Xe],[[()=>ml,16],[0,{[y]:Je}]]],Zpe=[3,b,Qte,0,[V,me,Me,X],[[0,1],[0,1],[0,{[y]:$e}],[0,{[y]:Z}]],2],Qpe=[3,b,tne,0,[Pf],[[()=>cI,16]]],Jpe=[3,b,nne,0,[V,X],[[0,1],[0,{[y]:Z}]],1],ede=[3,b,jO,0,[sB],[0],1],tde=[3,b,ov,0,[av,DF],[[()=>ZB,{[DB]:[EB,fB]}],0]],ZB=[3,b,av,0,[il,Jx,QJ,Fa,_ae],[[0,{[qae]:1,[j]:iue}],0,0,0,0],1],nde=[3,b,ine,0,[Hx,uQ,cQ,Vx,QZ],[[0,{[y]:TB}],[0,{[y]:Wae}],[0,{[y]:Vae}],[0,{[y]:Xae}],[2,{[y]:Hae}]]],rde=[3,b,sne,0,[V,X],[[0,1],[0,{[y]:Z}]],1],ide=[3,b,cne,0,[io,qx,ti,Dv,nQ,ri,Zu,yn,xn,vn,bn,_n,Kn,$t,gv,Be,wa,Ea,Da,Sa,Ca,Xx,Or,Af,sl,Nn,Pa,Rt,kt,wn,en,nn,Xe,wv,Zf,Av,La,$a,Ma],[[2,{[y]:cm}],[0,{[y]:dB}],[0,{[y]:cl}],[0,{[y]:jB}],[0,{[y]:Gae}],[4,{[y]:mv}],[1,{[y]:Xu}],[0,{[y]:uo}],[0,{[y]:lo}],[0,{[y]:po}],[0,{[y]:fo}],[0,{[y]:mo}],[0,{[y]:Ga}],[0,{[y]:$t}],[1,{[y]:$B}],[0,{[y]:ii}],[0,{[y]:Vu}],[0,{[y]:Wu}],[0,{[y]:Ku}],[0,{[y]:Yu}],[0,{[y]:Qu}],[0,{[y]:uO}],[4,{[y]:Or}],[0,{[y]:Af}],[0,{[y]:fl}],[0,{[y]:Yn}],[128,{[qa]:Xa}],[0,{[y]:Ut}],[0,{[y]:jt}],[()=>Kt,{[y]:Xn}],[2,{[y]:Zn}],[0,{[y]:dl}],[0,{[y]:Je}],[0,{[y]:zB}],[1,{[y]:UB}],[1,{[y]:HB}],[0,{[y]:ll}],[5,{[y]:pl}],[0,{[y]:ul}]]],sde=[3,b,une,0,[V,me,Ba,GO,tl,KO,$f,OF,FF,BF,IF,PF,NF,Be,Rt,pr,kt,Me,ao,X,oO],[[0,1],[0,1],[0,{[y]:so}],[4,{[y]:uv}],[0,{[y]:Ia}],[4,{[y]:pv}],[0,{[y]:$f}],[0,{[ne]:hB}],[0,{[ne]:gB}],[0,{[ne]:yB}],[0,{[ne]:xB}],[0,{[ne]:vB}],[6,{[ne]:bB}],[0,{[ne]:Sn}],[0,{[y]:Ut}],[()=>Pr,{[y]:Ir}],[0,{[y]:jt}],[0,{[y]:$e}],[1,{[ne]:am}],[0,{[y]:Z}],[0,{[y]:RB}]],2],QB=[3,b,cv,0,[Hoe],[0],1],JB=[3,b,dv,0,[Fa,Jx],[0,0]],eI=[3,b,lv,0,[yO,WQ,YO,$se],[()=>ile,0,()=>vde,()=>dfe]],ode=[3,b,Tne,0,[Ye,za],[0,[()=>Fi,{[le]:1,[j]:dr}]]],zv=[3,b,zu,0,[At,tn,rae,Ri],[0,0,[()=>vhe,{[le]:1,[j]:oB}],[()=>ade,0]],3],ade=[3,b,Rne,0,[Ye,dr,Hu],[0,()=>Za,[()=>ode,0]]],qv=[3,b,ju,0,[Wf,dne,At,_ne,zoe,Ri,fie],[[()=>cde,0],2,0,0,()=>dde,()=>lde,[()=>she,0]],5],cde=[3,b,pne,0,[qF],[[()=>pde,0]],1],ude=[3,b,fne,0,[XF,Sv],[[()=>Rme,{[j]:KF}],[()=>Cme,{[j]:nm}]]],lde=[3,b,mne,0,[Ye],[0],1],pde=[3,b,Sne,0,[V,LO,HZ,Ye,nv],[0,0,0,0,[()=>ude,0]],2],dde=[3,b,Cne,0,[fee],[0],1],fde=[3,b,Rf,0,[Qx,Ju],[0,()=>Hv],1],mde=[3,b,WO,0,[Qx,iB,el,rm,Cv],[0,0,()=>jv,0,0],1],hde=[3,b,Ane,0,[Qx,Ju],[0,()=>Hv],1],gde=[3,b,kf,0,[tm,Ju],[()=>Wv,()=>Hv],1],yde=[3,b,XO,0,[iB,rm,tm,el,Cv],[0,0,()=>Wv,()=>jv,0],3],xde=[3,b,Ine,0,[tm],[()=>Wv],1],vde=[3,b,Fne,0,[il],[0]],bde=[3,b,Bne,0,[bv],[0]],_de=[3,b,dre,0,[pre,rv,At,Ri],[[0,{[j]:wQ}],[64,{[le]:1,[j]:iv}],0,[()=>Vv,0]],2],wde=[3,b,lre,0,[SO,Ta,ree],[5,1,2]],Ede=[3,b,Nre,0,[tn,ti,Fa,Ye,Ri,oae,aie,fF,Xk],[0,()=>wde,0,0,[()=>Sde,0],[()=>_he,{[le]:1,[j]:cB}],[()=>uhe,{[le]:1,[j]:mF}],()=>rfe,()=>wue],1],Dde=[3,b,Mre,0,[Ye,za,xF,vF],[0,[()=>Fi,{[le]:1,[j]:dr}],1,1]],Sde=[3,b,Lre,0,[Ye,dr,xF,vF,Hu],[0,()=>Za,1,1,[()=>Dde,0]]],Cde=[3,b,Wne,{[j]:Kne},[ni,Pn,nl,Wk],[2,0,0,[()=>Xme,{[le]:1,[j]:Uu}]]],Tde=[3,b,Yne,0,[V,Pn,X],[[0,1],[0,{[ne]:co}],[0,{[y]:Z}]],1],Ade=[3,b,ere,0,[ni,Pn,nl,VO],[2,0,0,[()=>rhe,{[le]:1,[j]:zu}]]],Rde=[3,b,tre,0,[V,Pn,X],[[0,1],[0,{[ne]:co}],[0,{[y]:Z}]],1],kde=[3,b,Zne,{[j]:gre},[Pn,qO,ni,nl],[0,[()=>ihe,{[le]:1,[j]:ju}],2,0]],Ode=[3,b,Qne,0,[V,Pn,X],[[0,1],[0,{[ne]:co}],[0,{[y]:Z}]],1],Fde=[3,b,rre,{[j]:yre},[ni,Pn,nl,QO],[2,0,0,[()=>ahe,{[le]:1,[j]:qu}]]],Bde=[3,b,ire,0,[V,Pn,X],[[0,1],[0,{[ne]:co}],[0,{[y]:Z}]],1],Ide=[3,b,sre,{[j]:qne},[Wx,Br,Pn,Ye],[[()=>mI,0],()=>Oi,0,0]],Pde=[3,b,ore,0,[qre,Pn,Ye,Vx],[[1,{[ne]:Pae}],[0,{[ne]:co}],[0,{[ne]:ol}],[0,{[ne]:Rae}]]],Nde=[3,b,cre,{[j]:Hne},[Wx,Pn],[[()=>mI,0],0]],Mde=[3,b,ure,0,[Pn,Gre],[[0,{[ne]:co}],[1,{[ne]:Nae}]]],Lde=[3,b,bre,{[j]:_re},[V,Yf,uB,lF,Ye,as,sie,sF,ni,aae,Vf,cs,Xe],[0,0,0,0,0,0,0,1,2,[()=>che,{[le]:1,[j]:wae}],[()=>um,{[le]:1}],0,[0,{[y]:Je}]]],$de=[3,b,wre,0,[V,as,cs,Yf,sF,Ye,uB,X,Me],[[0,1],[0,{[ne]:sm}],[0,{[ne]:om}],[0,{[ne]:mB}],[1,{[ne]:Lae}],[0,{[ne]:ol}],[0,{[ne]:jae}],[0,{[y]:Z}],[0,{[y]:$e}]],1],Ude=[3,b,Dre,{[j]:ZO},[ni,oF,tie,bO,oo,Ye,as,Na,Vf,cs,Xe],[2,0,0,[()=>yI,{[le]:1}],0,0,0,1,[()=>um,{[le]:1}],0,[0,{[y]:Je}]]],jde=[3,b,Sre,0,[V,as,cs,oF,Na,Ye,Me,X,yv],[[0,1],[0,{[ne]:sm}],[0,{[ne]:om}],[0,{[ne]:Iae}],[1,{[ne]:Fv}],[0,{[ne]:ol}],[0,{[y]:$e}],[0,{[y]:Z}],[64,{[y]:Mv}]],1],zde=[3,b,Tre,{[j]:ZO},[ni,bO,oo,Ye,as,Na,Vf,cs,Pne,Pn,nl,zF,Xe],[2,[()=>yI,{[le]:1}],0,0,0,1,[()=>um,{[le]:1}],0,1,0,0,0,[0,{[y]:Je}]]],qde=[3,b,Rre,0,[V,as,cs,Na,Ye,Pn,uee,zF,Me,X,yv],[[0,1],[0,{[ne]:sm}],[0,{[ne]:om}],[1,{[ne]:Fv}],[0,{[ne]:ol}],[0,{[ne]:co}],[2,{[ne]:Oae}],[0,{[ne]:Uae}],[0,{[y]:$e}],[0,{[y]:Z}],[64,{[y]:Mv}]],1],Hde=[3,b,Are,{[j]:Ure},[ni,Yf,pB,lF,oie,Eae,wO,oo,Ye,as,Na,Vf,cs,Xe],[2,0,0,0,0,[()=>phe,{[le]:1,[j]:Dae}],[()=>Jme,{[le]:1,[j]:io}],0,0,0,1,[()=>um,{[le]:1}],0,[0,{[y]:Je}]]],Gde=[3,b,kre,0,[V,as,cs,Yf,Na,Ye,pB,X,Me,yv],[[0,1],[0,{[ne]:sm}],[0,{[ne]:om}],[0,{[ne]:mB}],[1,{[ne]:Fv}],[0,{[ne]:ol}],[0,{[ne]:zae}],[0,{[y]:Z}],[0,{[y]:$e}],[64,{[y]:Mv}]],1],Vde=[3,b,Bre,{[j]:Ire},[Yk,Qk,V,me,us,Qf,dF,Xf,ni,Jf,dv,Br,nn,Xe,we,Kn],[[4,{[y]:SB}],[0,{[y]:CB}],0,0,0,0,0,1,2,[()=>fhe,{[le]:1,[j]:em}],()=>JB,()=>Oi,0,[0,{[y]:Je}],0,0]],Wde=[3,b,Pre,0,[V,me,us,Xf,Qf,Me,X,Rt,pr,kt],[[0,1],[0,1],[0,{[ne]:al}],[1,{[ne]:Mae}],[0,{[ne]:$ae}],[0,{[y]:$e}],[0,{[y]:Z}],[0,{[y]:Ut}],[()=>Pr,{[y]:Ir}],[0,{[y]:jt}]],3],Kde=[3,b,hre,0,[il,oo],[0,0]],tI=[3,b,fv,0,[Voe,tae,tB,rB],[0,0,[()=>xhe,0],[()=>Pme,0]],2],Yde=[3,b,$x,0,[kf,Rf],[()=>gde,()=>fde],1],Xde=[3,b,JO,0,[DO,XO,WO],[()=>Ile,()=>yde,()=>mde],1],Zde=[3,b,tF,0,[oo,kv],[0,0]],Qde=[3,b,Ux,0,[ZF],[()=>hme],1],Jde=[3,b,rF,0,[QF],[()=>gme],1],Hv=[3,b,Kre,0,[goe,Mne],[0,0],1],efe=[3,b,aF,0,[tn,oee],[0,()=>pI],1],tfe=[3,b,jre,0,[Ye,za,Zk],[0,[()=>Fi,{[le]:1,[j]:dr}],0]],Gv=[3,b,qu,0,[At,Ri],[0,[()=>Dhe,0]],1],nfe=[3,b,iF,0,[us,me,One,nn,Br,dv,we,Kn],[0,0,4,0,()=>Oi,()=>JB,0,0]],rfe=[3,b,fF,0,[uF,pF],[1,1]],ife=[3,b,mF,0,[uF,nn,pF],[1,0,1]],nI=[3,b,jx,0,[Yoe,Hse,mre,TO],[[()=>bhe,{[le]:1,[j]:eB}],[()=>hhe,{[le]:1,[j]:RF}],[()=>ohe,{[le]:1,[j]:EQ}],()=>$le]],Vv=[3,b,Qre,0,[me],[[()=>fme,{[j]:Roe}]]],sfe=[3,b,bF,0,[me,ri,$t,we,Kn,ja,nn,Br,Ev],[0,4,0,[64,{[le]:1}],0,1,0,()=>Oi,()=>dI]],ofe=[3,b,mie,0,[me,Be,$t,xre,ja],[0,0,0,6,1],1],rI=[3,b,If,0,[gie,Ua],[0,()=>afe]],iI=[3,b,xie,0,[tn],[0]],sI=[3,b,vie,0,[cF,foe],[0,5]],afe=[3,b,bie,0,[EO],[()=>ole]],cfe=[3,b,Die,0,[ao,ja,yn,xn,vn,bn,_n],[1,1,0,0,0,0,0]],ufe=[3,b,Tie,0,[$t,we,Kn,ja,nn,me,Be,HO,ri,Br,Ev],[0,[64,{[le]:1}],0,1,0,0,0,2,4,()=>Oi,()=>dI]],lfe=[3,b,gF,0,[joe],[[()=>mme,0]]],oI=[3,b,xv,0,[yO,YO],[()=>sle,()=>bde]],Oi=[3,b,Br,0,[Jx,Fa],[0,0]],aI=[3,b,Bf,0,[rl],[[()=>dhe,{[le]:1,[j]:Ua}]],1],pfe=[3,b,pie,0,[yF],[0],1],dfe=[3,b,yse,0,[],[]],ffe=[3,b,em,0,[ao,ri,$t,ja,yn,xn,vn,bn,_n],[1,4,0,1,0,0,0,0,0]],mfe=[3,b,Nf,{[j]:Nf},[hse],[0]],hfe=[3,b,_F,0,[jk],[[2,{[j]:jk}]]],gfe=[3,b,CF,0,[rO,tO,nO],[1,1,1]],yfe=[3,b,gse,0,[CO],[[()=>gfe,{[Ov]:1}]]],cI=[3,b,Pf,0,[Lk,zk,$k,qk],[[2,{[j]:Lk}],[2,{[j]:zk}],[2,{[j]:$k}],[2,{[j]:qk}]]],xfe=[3,b,Pie,0,[V,Sf,it,we,X],[[0,1],[()=>KB,{[Se]:1,[j]:Sf}],[0,{[y]:rt}],[0,{[y]:qe}],[0,{[y]:Z}]],2],vfe=[3,b,Fie,0,[V,Df,X,we],[[0,1],[()=>Sue,{[Se]:1,[j]:Df}],[0,{[y]:Z}],[0,{[y]:qe}]],2],bfe=[3,b,Nie,0,[V,_a,ro,it,we,Aa,Ra,ka,sv,Oa,X],[[0,1],[0,{[y]:Ha}],[()=>YB,{[Se]:1,[j]:ro}],[0,{[y]:rt}],[0,{[y]:qe}],[0,{[y]:Va}],[0,{[y]:Wa}],[0,{[y]:Ka}],[0,{[y]:Pv}],[0,{[y]:Ya}],[0,{[y]:Z}]],1],_fe=[3,b,Bie,0,[V,At,Uu,X],[[0,1],[0,{[ne]:fr}],[()=>Uv,{[Se]:1,[j]:Uu}],[0,{[y]:Z}]],3],wfe=[3,b,$ie,0,[V,Tf,it,we,X],[[0,1],[()=>Wue,{[Se]:1,[j]:Tf}],[0,{[y]:rt}],[0,{[y]:qe}],[0,{[y]:Z}]],2],Efe=[3,b,jie,0,[V,zf,it,we,X],[[0,1],[()=>fI,{[Se]:1,[j]:zf}],[0,{[y]:rt}],[0,{[y]:qe}],[0,{[y]:Z}]],2],Dfe=[3,b,Gie,0,[V,At,zu,X],[[0,1],[0,{[ne]:fr}],[()=>zv,{[Se]:1,[j]:zu}],[0,{[y]:Z}]],3],Sfe=[3,b,qie,0,[V,At,ju,X],[[0,1],[0,{[ne]:fr}],[()=>qv,{[Se]:1,[j]:ju}],[0,{[y]:Z}]],3],Cfe=[3,b,Kie,0,[Rv],[[0,{[y]:$v}]]],Tfe=[3,b,Yie,0,[V,we,Lx,X,Rv],[[0,1],[0,{[y]:qe}],[()=>Bue,{[Se]:1,[j]:Lx}],[0,{[y]:Z}],[0,{[y]:$v}]],1],Afe=[3,b,Xie,0,[V,Cf,it,we,X],[[0,1],[()=>Iue,{[Se]:1,[j]:Cf}],[0,{[y]:rt}],[0,{[y]:qe}],[0,{[y]:Z}]],2],Rfe=[3,b,Qie,0,[V,At,qu,X],[[0,1],[0,{[ne]:fr}],[()=>Gv,{[Se]:1,[j]:qu}],[0,{[y]:Z}]],3],kfe=[3,b,ese,0,[V,jx,X,woe],[[0,1],[()=>nI,{[Se]:1,[j]:jx}],[0,{[y]:Z}],[2,{[y]:tue}]],2],Ofe=[3,b,nse,0,[V,Bf,it,X,we],[[0,1],[()=>aI,{[Se]:1,[j]:Bf}],[0,{[y]:rt}],[0,{[y]:Z}],[0,{[y]:qe}]],2],Ffe=[3,b,ise,0,[V,SF,it,we,LQ,X],[[0,1],[0,16],[0,{[y]:rt}],[0,{[y]:qe}],[2,{[y]:Zae}],[0,{[y]:Z}]],2],Bfe=[3,b,cse,0,[V,Mf,it,we,aB,X],[[0,1],[()=>lI,{[Se]:1,[j]:Mf}],[0,{[y]:rt}],[0,{[y]:qe}],[0,{[y]:AB}],[0,{[y]:Z}]],2],Ife=[3,b,ase,0,[V,Lf,it,we,X],[[0,1],[()=>ame,{[Se]:1,[j]:Lf}],[0,{[y]:rt}],[0,{[y]:qe}],[0,{[y]:Z}]],2],Pfe=[3,b,lse,0,[V,Fr,it,we,X],[[0,1],[()=>Kv,{[Se]:1,[j]:Fr}],[0,{[y]:rt}],[0,{[y]:qe}],[0,{[y]:Z}]],2],Nfe=[3,b,dse,0,[V,qf,it,we,hv,X],[[0,1],[()=>Wme,{[Se]:1,[j]:qf}],[0,{[y]:rt}],[0,{[y]:qe}],[0,{[y]:Nv}],[0,{[y]:Z}]],2],Mfe=[3,b,mse,0,[V,Hf,it,we,X],[[0,1],[()=>Kme,{[Se]:1,[j]:Hf}],[0,{[y]:rt}],[0,{[y]:qe}],[0,{[y]:Z}]],2],Lfe=[3,b,_se,0,[Xe],[[0,{[y]:Je}]]],$fe=[3,b,wse,0,[V,me,_a,ro,it,we,Aa,Ra,ka,sv,Oa,Me,Be,X],[[0,1],[0,1],[0,{[y]:Ha}],[()=>YB,{[Se]:1,[j]:ro}],[0,{[y]:rt}],[0,{[y]:qe}],[0,{[y]:Va}],[0,{[y]:Wa}],[0,{[y]:Ka}],[0,{[y]:Pv}],[0,{[y]:Ya}],[0,{[y]:$e}],[0,{[ne]:Sn}],[0,{[y]:Z}]],2],Ufe=[3,b,Tse,0,[Xe],[[0,{[y]:Je}]]],jfe=[3,b,Ase,0,[V,me,Ff,Me,Be,it,we,X],[[0,1],[0,1],[()=>iI,{[Se]:1,[j]:Ff}],[0,{[y]:$e}],[0,{[ne]:Sn}],[0,{[y]:rt}],[0,{[y]:qe}],[0,{[y]:Z}]],2],zfe=[3,b,Dse,0,[Xe],[[0,{[y]:Je}]]],qfe=[3,b,Sse,0,[V,If,Me,aB,it,we,X],[[0,1],[()=>rI,{[Se]:1,[j]:If}],[0,{[y]:$e}],[0,{[y]:AB}],[0,{[y]:rt}],[0,{[y]:qe}],[0,{[y]:Z}]],1],Hfe=[3,b,Rse,0,[ti,$t,yn,xn,vn,bn,_n,Kn,Nn,Be,Rt,kt,wn,ki,en,ja,Xe],[[0,{[y]:cl}],[0,{[y]:$t}],[0,{[y]:uo}],[0,{[y]:lo}],[0,{[y]:po}],[0,{[y]:fo}],[0,{[y]:mo}],[0,{[y]:Ga}],[0,{[y]:Yn}],[0,{[y]:ii}],[0,{[y]:Ut}],[0,{[y]:jt}],[()=>Kt,{[y]:Xn}],[()=>ps,{[y]:ls}],[2,{[y]:Zn}],[1,{[y]:Gce}],[0,{[y]:Je}]]],Gfe=[3,b,kse,0,[V,me,_a,Gu,wa,Ea,Da,Sa,Zu,it,Ca,we,yn,xn,vn,bn,_n,Or,Ba,tl,Aa,Ra,ka,Oa,Tae,Pa,Nn,nn,sl,Rt,pr,kt,wn,ki,en,Me,Fr,La,$a,Ma,X],[[0,1],[0,1],[0,{[y]:Ha}],[()=>ml,16],[0,{[y]:Vu}],[0,{[y]:Wu}],[0,{[y]:Ku}],[0,{[y]:Yu}],[1,{[y]:Xu}],[0,{[y]:rt}],[0,{[y]:Qu}],[0,{[y]:qe}],[0,{[y]:uo}],[0,{[y]:lo}],[0,{[y]:po}],[0,{[y]:fo}],[0,{[y]:mo}],[4,{[y]:Or}],[0,{[y]:so}],[0,{[y]:Ia}],[0,{[y]:Va}],[0,{[y]:Wa}],[0,{[y]:Ka}],[0,{[y]:Ya}],[1,{[y]:rue}],[128,{[qa]:Xa}],[0,{[y]:Yn}],[0,{[y]:dl}],[0,{[y]:fl}],[0,{[y]:Ut}],[()=>Pr,{[y]:Ir}],[0,{[y]:jt}],[()=>Kt,{[y]:Xn}],[()=>ps,{[y]:ls}],[2,{[y]:Zn}],[0,{[y]:$e}],[0,{[y]:Lv}],[0,{[y]:ll}],[5,{[y]:pl}],[0,{[y]:ul}],[0,{[y]:Z}]],2],Vfe=[3,b,Ose,0,[Xe],[[0,{[y]:Je}]]],Wfe=[3,b,Fse,0,[V,me,Uf,Me,Be,Gx,it,we,X],[[0,1],[0,1],[()=>sI,{[Se]:1,[j]:Uf}],[0,{[y]:$e}],[0,{[ne]:Sn}],[2,{[y]:Bv}],[0,{[y]:rt}],[0,{[y]:qe}],[0,{[y]:Z}]],2],Kfe=[3,b,Pse,0,[Be],[[0,{[y]:ii}]]],Yfe=[3,b,Nse,0,[V,me,Fr,Be,it,we,X,Me],[[0,1],[0,1],[()=>Kv,{[Se]:1,[j]:Fr}],[0,{[ne]:Sn}],[0,{[y]:rt}],[0,{[y]:qe}],[0,{[y]:Z}],[0,{[y]:$e}]],3],Xfe=[3,b,Lse,0,[V,Pf,it,we,X],[[0,1],[()=>cI,{[Se]:1,[j]:Pf}],[0,{[y]:rt}],[0,{[y]:qe}],[0,{[y]:Z}]],2],Zfe=[3,b,RF,0,[zse,rv,At,Ri],[[0,{[j]:Vse}],[64,{[le]:1,[j]:iv}],0,[()=>Vv,0]],2],Wv=[3,b,tm,0,[ti,Ta],[0,1],1],Qfe=[3,b,Kse,0,[EF],[[21,{[Ov]:1}]]],Jfe=[3,b,jF,0,[zO,lne,TF,Xse,Zse],[0,0,0,0,0]],uI=[3,b,vv,0,[zO,TF],[0,0],1],eme=[3,b,Jse,0,[],[]],tme=[3,b,noe,0,[V,me,loe,RJ,OJ,kJ,FJ,Doe,Coe,Soe,Toe,VQ],[[0,1],[0,1],[0,{[y]:Yce}],[0,{[y]:so}],[0,{[y]:Ia}],[4,{[y]:uv}],[4,{[y]:pv}],[0,{[y]:Xce}],[0,{[y]:Qce}],[6,{[y]:Zce}],[6,{[y]:Jce}],[0,{[y]:ece,[Bae]:1}]],3],nme=[3,b,MF,0,[tn],[0],1],lI=[3,b,Mf,0,[hoe,rl],[0,[()=>ghe,{[le]:1,[j]:Ua}]],2],rme=[3,b,aoe,0,[tn,Wf,Fa,Use,Ye,Ri,YF,kO,_O],[0,()=>Ble,0,1,0,[()=>sme,0],()=>Sme,()=>Ule,()=>Sle],2],ime=[3,b,soe,0,[Ye,za],[0,[()=>Fi,{[le]:1,[j]:dr}]]],sme=[3,b,ooe,0,[Ye,dr,Hu],[0,()=>Za,[()=>ime,0]]],ome=[3,b,UF,0,[tn,iae],[0,()=>pI],2],pI=[3,b,poe,0,[Zre],[1]],ame=[3,b,Lf,0,[wF],[0],1],cme=[3,b,LF,0,[aee],[2]],ume=[3,b,eoe,0,[Xe,toe],[[0,{[y]:Je}],[0,{[y]:Wce}]]],lme=[3,b,roe,0,[V,me,Be,zx,Me,we,X],[[0,1],[0,1],[0,{[ne]:Sn}],[()=>pme,{[Se]:1,[j]:zx}],[0,{[y]:$e}],[0,{[y]:qe}],[0,{[y]:Z}]],2],pme=[3,b,zx,0,[Ta,jO,il,sB,ZJ,VF,gF],[1,()=>ede,0,0,0,()=>bme,[()=>lfe,0]]],dI=[3,b,Ev,0,[Dne,Wse],[2,4]],dme=[3,b,$F,0,[jF,vO],[()=>Jfe,()=>jue],1],fme=[3,b,Aoe,0,[pee],[[()=>nhe,{[le]:1,[j]:MO}]]],mme=[3,b,koe,0,[pQ,Ye,nv,dQ,Gf,Fr,lB,nn],[0,0,[()=>Ple,0],0,[()=>lm,0],[()=>Kv,0],[()=>whe,0],0],2],hme=[3,b,ZF,0,[Tv,rm],[0,0],2],gme=[3,b,QF,0,[Tv,rm,Cv,nB],[0,0,0,0],4],yme=[3,b,WF,0,[qoe,BO],[1,1]],xme=[3,b,Ioe,0,[EF],[[()=>Che,16]]],vme=[3,b,Poe,0,[V,me,PO,FO,lv,xv,Rt,pr,kt,LF,WF,X],[[0,1],[0,1],0,0,()=>eI,()=>oI,[0,{[y]:Ut}],[()=>Pr,{[y]:Ir}],[0,{[y]:jt}],()=>cme,()=>yme,[0,{[y]:Z}]],6],bme=[3,b,VF,0,[lv,FO,PO,xv],[()=>eI,0,0,()=>oI],4],_me=[3,b,Moe,0,[Noe,jne],[0,[()=>Kt,0]],1],fI=[3,b,zf,0,[rl],[[()=>yhe,{[le]:1,[j]:Ua}]],1],wme=[3,b,$oe,0,[tQ,en,eO],[[()=>_me,0],2,[()=>kue,0]]],Eme=[3,b,boe,0,[Mk,Hk,Gk,ti],[[0,{[j]:Mk}],[()=>Vk,{[j]:Hk}],[()=>Vk,{[j]:Gk}],[4,{[j]:ti}]],4],Dme=[3,b,jf,{[j]:jf},[],[]],Sme=[3,b,YF,0,[GF,MF],[()=>Tme,()=>nme]],Cme=[3,b,Sv,{[j]:nm},[Nne],[[()=>Kt,0]],1],Tme=[3,b,GF,0,[tn],[0],1],Ame=[3,b,Loe,{[j]:nm},[$ne,en],[[()=>_ue,0],2],1],Rme=[3,b,XF,{[j]:KF},[],[]],kme=[3,b,JF,0,[rO,tO,nO],[1,1,1]],Ome=[3,b,Eoe,0,[CO],[[()=>kme,{[Ov]:1}]]],Fme=[3,b,HF,0,[AJ],[()=>Bme]],Bme=[3,b,xoe,0,[Cie,Wf],[0,()=>Aue],2],Za=[3,b,dr,0,[me,kv],[0,0],2],Kv=[3,b,Fr,0,[im],[[()=>Fi,0]],1],Ime=[3,b,Zoe,0,[av,DF],[[()=>ZB,{[DB]:[EB,fB]}],0]],Pme=[3,b,rB,0,[jf,Nf],[[()=>Dme,{[j]:jf}],[()=>mfe,{[j]:Nf}]]],Nme=[3,b,oB,0,[Ta,Jk],[1,0],2],Mme=[3,b,eB,0,[Goe,rv,At,Ri],[[0,{[j]:sae}],[64,{[le]:1,[j]:iv}],0,[()=>Vv,0]],2],Lme=[3,b,cB,0,[SO,Ta,nn],[5,1,0]],$me=[3,b,uae,0,[V,Rf,it,we,X],[[0,1],[()=>hde,{[Se]:1,[j]:Rf}],[0,{[y]:rt}],[0,{[y]:qe}],[0,{[y]:Z}]],2],Ume=[3,b,pae,0,[V,kf,it,we,X],[[0,1],[()=>xde,{[Se]:1,[j]:kf}],[0,{[y]:rt}],[0,{[y]:qe}],[0,{[y]:Z}]],2],jme=[3,b,fae,0,[V,me,hF,Be,Me,X,it,we],[[0,1],[0,1],[()=>She,16],[0,{[ne]:Sn}],[0,{[y]:$e}],[0,{[y]:Z}],[0,{[y]:rt}],[0,{[y]:qe}]],3],zme=[3,b,mae,0,[Xe],[[0,{[y]:Je}]]],qme=[3,b,yae,0,[xO,cO,Nn,Rt,kt,wn,en,Xe],[[0,{[y]:LB}],[()=>Vue,16],[0,{[y]:Yn}],[0,{[y]:Ut}],[0,{[y]:jt}],[()=>Kt,{[y]:Xn}],[2,{[y]:Zn}],[0,{[y]:Je}]]],Hme=[3,b,xae,0,[V,lO,me,ao,us,pO,dO,fO,mO,jQ,Rt,pr,kt,hO,Zx,gO,Me,X,OO],[[0,1],[0,{[y]:kB}],[0,1],[1,{[ne]:am}],[0,{[ne]:al}],[0,{[y]:OB}],[4,{[y]:FB}],[0,{[y]:BB}],[4,{[y]:IB}],[0,{[y]:Jae}],[0,{[y]:Ut}],[()=>Pr,{[y]:Ir}],[0,{[y]:jt}],[0,{[y]:PB}],[()=>WB,{[y]:NB}],[0,{[y]:MB}],[0,{[y]:$e}],[0,{[y]:Z}],[0,{[y]:qB}]],5],Gme=[3,b,vae,0,[Nn,$t,yn,xn,vn,bn,_n,Rt,kt,wn,en,Xe],[[0,{[y]:Yn}],[0,{[y]:$t}],[0,{[y]:uo}],[0,{[y]:lo}],[0,{[y]:po}],[0,{[y]:fo}],[0,{[y]:mo}],[0,{[y]:Ut}],[0,{[y]:jt}],[()=>Kt,{[y]:Xn}],[2,{[y]:Zn}],[0,{[y]:Je}]]],Vme=[3,b,bae,0,[V,me,ao,us,Gu,Zu,it,we,yn,xn,vn,bn,_n,Rt,pr,kt,Me,X],[[0,1],[0,1],[1,{[ne]:am}],[0,{[ne]:al}],[()=>ml,16],[1,{[y]:Xu}],[0,{[y]:rt}],[0,{[y]:qe}],[0,{[y]:uo}],[0,{[y]:lo}],[0,{[y]:po}],[0,{[y]:fo}],[0,{[y]:mo}],[0,{[y]:Ut}],[()=>Pr,{[y]:Ir}],[0,{[y]:jt}],[0,{[y]:$e}],[0,{[y]:Z}]],4],Wme=[3,b,qf,0,[nF,tn],[[0,{[j]:eF}],0]],Kme=[3,b,Hf,0,[ev,cv,vv,_v],[()=>XB,()=>QB,()=>uI,[()=>xI,0]]],Yme=[3,b,Cae,0,[uoe,doe,Gu,_oe,AO,RO,qx,wa,Ea,Da,Sa,Zu,Xx,Ca,yn,xn,vn,bn,_n,io,$t,Or,ti,ri,gv,Pa,La,Ma,$a,Zf,wv,Xe,Dv,Nn,Rt,wn,kt,nn,Av,Be,en],[[0,{[Fae]:1,[y]:Kce}],[0,{[y]:eue}],[()=>ml,16],[1,{[y]:Nce}],[0,{[y]:tce}],[0,{[y]:nce}],[0,{[y]:dce}],[0,{[y]:rce}],[0,{[y]:ice}],[0,{[y]:sce}],[0,{[y]:oce}],[1,{[y]:Xu}],[0,{[y]:ace}],[0,{[y]:cce}],[0,{[y]:fce}],[0,{[y]:mce}],[0,{[y]:hce}],[0,{[y]:gce}],[0,{[y]:yce}],[2,{[y]:xce}],[0,{[y]:uce}],[4,{[y]:lce}],[0,{[y]:vce}],[4,{[y]:pce}],[1,{[y]:bce}],[128,{[qa]:Xa}],[0,{[y]:Ece}],[0,{[y]:wce}],[5,{[y]:Dce}],[1,{[y]:_ce}],[0,{[y]:Tce}],[0,{[y]:Cce}],[0,{[y]:Sce}],[0,{[y]:Rce}],[0,{[y]:Fce}],[()=>Kt,{[y]:kce}],[0,{[y]:Bce}],[0,{[y]:Ace}],[1,{[y]:Ice}],[0,{[y]:Pce}],[2,{[y]:Oce}]],2],fe="unit";var Xme=[1,b,Wk,0,[()=>Uv,0]],mI=[1,b,Wx,0,[()=>Oue,{[j]:V}]];var um=[1,b,PQ,0,()=>Nue],Zme=[1,b,NQ,0,()=>Lue],hI=[1,b,Kx,0,[()=>Kue,0]],Qme=[1,b,qJ,0,()=>Ele],Jme=[1,b,wO,0,()=>Dle],ehe=[1,b,iee,0,[0,{[j]:tv}]],the=[1,b,IO,0,()=>Lle];var nhe=[1,b,lee,0,()=>jle],lm=[1,b,Kf,0,[()=>tde,{[j]:ov}]],rhe=[1,b,VO,0,[()=>zv,0]],ihe=[1,b,qO,0,[()=>qv,0]],she=[1,b,vne,0,[0,{[j]:dee}]],ohe=[1,b,fre,0,[()=>_de,0]],gI=[1,b,$re,0,[()=>Ede,0]],ahe=[1,b,QO,0,[()=>Gv,0]],che=[1,b,Yre,0,()=>nfe],uhe=[1,b,cie,0,()=>ife];var lhe=[1,b,hie,0,()=>ofe],yI=[1,b,_ie,0,[()=>sfe,0]],phe=[1,b,Aie,0,[()=>ufe,0]];var dhe=[1,b,die,0,()=>pfe],fhe=[1,b,Jf,0,()=>ffe],mhe=[1,b,xse,0,()=>cfe],hhe=[1,b,qse,0,[()=>Zfe,0]],ghe=[1,b,coe,0,[()=>rme,0]],xI=[1,b,_v,0,[()=>dme,{[j]:$F}]],yhe=[1,b,Uoe,0,[()=>wme,0]],Fi=[1,b,im,0,[()=>Za,{[j]:dr}]],xhe=[1,b,tB,0,[()=>Ime,{[j]:ov}]],vhe=[1,b,Qoe,0,()=>Nme],bhe=[1,b,Koe,0,[()=>Mme,0]],_he=[1,b,Joe,0,()=>Lme],whe=[1,b,lB,0,[()=>Zde,{[j]:tF}]];var Ehe=[4,b,jZ,0,[Ye,dr,Hu],[0,()=>Za,[()=>Tue,0]]],Dhe=[4,b,Vre,0,[Ye,dr,Zk,Hu],[0,()=>Za,0,[()=>tfe,0]]],She=[4,b,hF,0,[Sv],[[()=>Ame,{[j]:nm}]]],Che=[4,b,Boe,{[wB]:1},[moe,JF,CF,XQ,BO],[[()=>Qfe,0],[()=>Ome,0],[()=>yfe,0],()=>zue,()=>Mle]],n7e=[9,b,VZ,{[K]:["DELETE","/{Key+}?x-id=AbortMultipartUpload",204]},()=>Due,()=>Eue],vI=[9,b,sO,{[K]:["POST","/{Key+}",200]},()=>Uue,()=>$ue],r7e=[9,b,OQ,{[K]:["PUT","/{Key+}?x-id=CopyObject",200]},()=>Hue,()=>que],i7e=[9,b,fQ,{[K]:["PUT","/",200]},()=>Jue,()=>Que],s7e=[9,b,mQ,{[Le]:"-",[K]:["POST","/?metadataConfiguration",200]},()=>Xue,()=>fe],o7e=[9,b,gQ,{[Le]:"-",[K]:["POST","/?metadataTable",200]},()=>Zue,()=>fe],bI=[9,b,kQ,{[K]:["POST","/{Key+}?uploads",200]},()=>tle,()=>ele],_I=[9,b,GQ,{[K]:["GET","/?session",200]},()=>rle,()=>nle],a7e=[9,b,QQ,{[K]:["DELETE","/",204]},()=>ble,()=>fe],c7e=[9,b,JQ,{[K]:["DELETE","/?analytics",204]},()=>cle,()=>fe],u7e=[9,b,tJ,{[K]:["DELETE","/?cors",204]},()=>ule,()=>fe],l7e=[9,b,rJ,{[K]:["DELETE","/?encryption",204]},()=>lle,()=>fe],p7e=[9,b,aJ,{[K]:["DELETE","/?intelligent-tiering",204]},()=>ple,()=>fe],d7e=[9,b,sJ,{[K]:["DELETE","/?inventory",204]},()=>dle,()=>fe],f7e=[9,b,uJ,{[K]:["DELETE","/?lifecycle",204]},()=>fle,()=>fe],m7e=[9,b,pJ,{[K]:["DELETE","/?metadataConfiguration",204]},()=>mle,()=>fe],h7e=[9,b,hJ,{[K]:["DELETE","/?metadataTable",204]},()=>hle,()=>fe],g7e=[9,b,mJ,{[K]:["DELETE","/?metrics",204]},()=>gle,()=>fe],y7e=[9,b,yJ,{[K]:["DELETE","/?ownershipControls",204]},()=>yle,()=>fe],x7e=[9,b,vJ,{[K]:["DELETE","/?policy",204]},()=>xle,()=>fe],v7e=[9,b,EJ,{[K]:["DELETE","/?replication",204]},()=>vle,()=>fe],b7e=[9,b,DJ,{[K]:["DELETE","/?tagging",204]},()=>_le,()=>fe],_7e=[9,b,CJ,{[K]:["DELETE","/?website",204]},()=>wle,()=>fe],wI=[9,b,HJ,{[K]:["DELETE","/{Key+}?x-id=DeleteObject",204]},()=>Tle,()=>Cle],w7e=[9,b,GJ,{[Le]:"-",[K]:["POST","/?delete",200]},()=>Rle,()=>Ale],E7e=[9,b,UJ,{[K]:["DELETE","/{Key+}?tagging",204]},()=>Ole,()=>kle],D7e=[9,b,VJ,{[K]:["DELETE","/?publicAccessBlock",204]},()=>Fle,()=>fe],S7e=[9,b,mee,{[K]:["GET","/?abac",200]},()=>qle,()=>zle],C7e=[9,b,hee,{[K]:["GET","/?accelerate",200]},()=>Gle,()=>Hle],T7e=[9,b,See,{[K]:["GET","/?acl",200]},()=>Wle,()=>Vle],A7e=[9,b,bee,{[K]:["GET","/?analytics&x-id=GetBucketAnalyticsConfiguration",200]},()=>Yle,()=>Kle],R7e=[9,b,Cee,{[K]:["GET","/?cors",200]},()=>Zle,()=>Xle],k7e=[9,b,Ree,{[K]:["GET","/?encryption",200]},()=>Jle,()=>Qle],O7e=[9,b,Pee,{[K]:["GET","/?intelligent-tiering&x-id=GetBucketIntelligentTieringConfiguration",200]},()=>tpe,()=>epe],F7e=[9,b,Fee,{[K]:["GET","/?inventory&x-id=GetBucketInventoryConfiguration",200]},()=>rpe,()=>npe],B7e=[9,b,$ee,{[K]:["GET","/?lifecycle",200]},()=>spe,()=>ipe],I7e=[9,b,Lee,{[K]:["GET","/?location",200]},()=>ape,()=>ope],P7e=[9,b,Vee,{[K]:["GET","/?logging",200]},()=>upe,()=>cpe],N7e=[9,b,Wee,{[K]:["GET","/?metadataConfiguration",200]},()=>ppe,()=>lpe],M7e=[9,b,Jee,{[K]:["GET","/?metadataTable",200]},()=>mpe,()=>fpe],L7e=[9,b,Qee,{[K]:["GET","/?metrics&x-id=GetBucketMetricsConfiguration",200]},()=>ype,()=>gpe],$7e=[9,b,nte,{[K]:["GET","/?notification",200]},()=>xpe,()=>nI],U7e=[9,b,ite,{[K]:["GET","/?ownershipControls",200]},()=>bpe,()=>vpe],j7e=[9,b,ate,{[K]:["GET","/?policy",200]},()=>wpe,()=>_pe],z7e=[9,b,lte,{[K]:["GET","/?policyStatus",200]},()=>Dpe,()=>Epe],q7e=[9,b,fte,{[K]:["GET","/?replication",200]},()=>Cpe,()=>Spe],H7e=[9,b,hte,{[K]:["GET","/?requestPayment",200]},()=>Ape,()=>Tpe],G7e=[9,b,vte,{[K]:["GET","/?tagging",200]},()=>kpe,()=>Rpe],V7e=[9,b,wte,{[K]:["GET","/?versioning",200]},()=>Fpe,()=>Ope],W7e=[9,b,Ste,{[K]:["GET","/?website",200]},()=>Ipe,()=>Bpe],EI=[9,b,Ate,{[Le]:"-",[K]:["GET","/{Key+}?x-id=GetObject",200]},()=>Gpe,()=>Hpe],K7e=[9,b,Rte,{[K]:["GET","/{Key+}?acl",200]},()=>Npe,()=>Ppe],Y7e=[9,b,Nte,{[K]:["GET","/{Key+}?attributes",200]},()=>$pe,()=>Mpe],X7e=[9,b,Ute,{[K]:["GET","/{Key+}?legal-hold",200]},()=>jpe,()=>Upe],Z7e=[9,b,Mte,{[K]:["GET","/?object-lock",200]},()=>qpe,()=>zpe],Q7e=[9,b,Wte,{[K]:["GET","/{Key+}?retention",200]},()=>Wpe,()=>Vpe],J7e=[9,b,Kte,{[K]:["GET","/{Key+}?tagging",200]},()=>Ype,()=>Kpe],e9e=[9,b,Jte,{[K]:["GET","/{Key+}?torrent",200]},()=>Zpe,()=>Xpe],t9e=[9,b,ene,{[K]:["GET","/?publicAccessBlock",200]},()=>Jpe,()=>Qpe],DI=[9,b,rne,{[K]:["HEAD","/",200]},()=>rde,()=>nde],SI=[9,b,ane,{[K]:["HEAD","/{Key+}",200]},()=>sde,()=>ide],n9e=[9,b,Vne,{[K]:["GET","/?analytics&x-id=ListBucketAnalyticsConfigurations",200]},()=>Tde,()=>Cde],r9e=[9,b,Jne,{[K]:["GET","/?intelligent-tiering&x-id=ListBucketIntelligentTieringConfigurations",200]},()=>Rde,()=>Ade],i9e=[9,b,Xne,{[K]:["GET","/?inventory&x-id=ListBucketInventoryConfigurations",200]},()=>Ode,()=>kde],s9e=[9,b,nre,{[K]:["GET","/?metrics&x-id=ListBucketMetricsConfigurations",200]},()=>Bde,()=>Fde],o9e=[9,b,Gne,{[K]:["GET","/?x-id=ListBuckets",200]},()=>Pde,()=>Ide],a9e=[9,b,are,{[K]:["GET","/?x-id=ListDirectoryBuckets",200]},()=>Mde,()=>Nde],c9e=[9,b,vre,{[K]:["GET","/?uploads",200]},()=>$de,()=>Lde],u9e=[9,b,Ere,{[K]:["GET","/",200]},()=>jde,()=>Ude],CI=[9,b,Cre,{[K]:["GET","/?list-type=2",200]},()=>qde,()=>zde],l9e=[9,b,Ore,{[K]:["GET","/?versions",200]},()=>Gde,()=>Hde],p9e=[9,b,Fre,{[K]:["GET","/{Key+}?x-id=ListParts",200]},()=>Wde,()=>Vde],d9e=[9,b,kie,{[Le]:"-",[K]:["PUT","/?abac",200]},()=>xfe,()=>fe],f9e=[9,b,Oie,{[Le]:"-",[K]:["PUT","/?accelerate",200]},()=>vfe,()=>fe],m9e=[9,b,Mie,{[Le]:"-",[K]:["PUT","/?acl",200]},()=>bfe,()=>fe],h9e=[9,b,Iie,{[K]:["PUT","/?analytics",200]},()=>_fe,()=>fe],g9e=[9,b,Lie,{[Le]:"-",[K]:["PUT","/?cors",200]},()=>wfe,()=>fe],y9e=[9,b,Uie,{[Le]:"-",[K]:["PUT","/?encryption",200]},()=>Efe,()=>fe],x9e=[9,b,Hie,{[K]:["PUT","/?intelligent-tiering",200]},()=>Dfe,()=>fe],v9e=[9,b,zie,{[K]:["PUT","/?inventory",200]},()=>Sfe,()=>fe],b9e=[9,b,Wie,{[Le]:"-",[K]:["PUT","/?lifecycle",200]},()=>Tfe,()=>Cfe],_9e=[9,b,Vie,{[Le]:"-",[K]:["PUT","/?logging",200]},()=>Afe,()=>fe],w9e=[9,b,Zie,{[K]:["PUT","/?metrics",200]},()=>Rfe,()=>fe],E9e=[9,b,Jie,{[K]:["PUT","/?notification",200]},()=>kfe,()=>fe],D9e=[9,b,tse,{[Le]:"-",[K]:["PUT","/?ownershipControls",200]},()=>Ofe,()=>fe],S9e=[9,b,rse,{[Le]:"-",[K]:["PUT","/?policy",200]},()=>Ffe,()=>fe],C9e=[9,b,sse,{[Le]:"-",[K]:["PUT","/?replication",200]},()=>Bfe,()=>fe],T9e=[9,b,ose,{[Le]:"-",[K]:["PUT","/?requestPayment",200]},()=>Ife,()=>fe],A9e=[9,b,use,{[Le]:"-",[K]:["PUT","/?tagging",200]},()=>Pfe,()=>fe],R9e=[9,b,pse,{[Le]:"-",[K]:["PUT","/?versioning",200]},()=>Nfe,()=>fe],k9e=[9,b,fse,{[Le]:"-",[K]:["PUT","/?website",200]},()=>Mfe,()=>fe],TI=[9,b,vse,{[Le]:"-",[K]:["PUT","/{Key+}?x-id=PutObject",200]},()=>Gfe,()=>Hfe],O9e=[9,b,bse,{[Le]:"-",[K]:["PUT","/{Key+}?acl",200]},()=>$fe,()=>Lfe],F9e=[9,b,Cse,{[Le]:"-",[K]:["PUT","/{Key+}?legal-hold",200]},()=>jfe,()=>Ufe],B9e=[9,b,Ese,{[Le]:"-",[K]:["PUT","/?object-lock",200]},()=>qfe,()=>zfe],I9e=[9,b,Bse,{[Le]:"-",[K]:["PUT","/{Key+}?retention",200]},()=>Wfe,()=>Vfe],AI=[9,b,Ise,{[Le]:"-",[K]:["PUT","/{Key+}?tagging",200]},()=>Yfe,()=>Kfe],P9e=[9,b,Mse,{[Le]:"-",[K]:["PUT","/?publicAccessBlock",200]},()=>Xfe,()=>fe],N9e=[9,b,Qse,{[K]:["PUT","/{Key+}?renameObject",200]},()=>tme,()=>eme],M9e=[9,b,ioe,{[Le]:"-",[K]:["POST","/{Key+}?restore",200]},()=>lme,()=>ume],L9e=[9,b,Foe,{[K]:["POST","/{Key+}?select&select-type=2",200]},()=>vme,()=>xme],$9e=[9,b,cae,{[Le]:"-",[K]:["PUT","/?metadataInventoryTable",200]},()=>$me,()=>fe],U9e=[9,b,lae,{[Le]:"-",[K]:["PUT","/?metadataJournalTable",200]},()=>Ume,()=>fe],j9e=[9,b,dae,{[Le]:"-",[K]:["PUT","/{Key+}?encryption",200]},()=>jme,()=>zme],RI=[9,b,hae,{[Le]:"-",[K]:["PUT","/{Key+}?x-id=UploadPart",200]},()=>Vme,()=>Gme],z9e=[9,b,gae,{[K]:["PUT","/{Key+}?x-id=UploadPartCopy",200]},()=>Hme,()=>qme],q9e=[9,b,Sae,{[kae]:["{RequestRoute}."],[K]:["POST","/WriteGetObjectResponse",200]},()=>Yme,()=>fe];var pm=class extends nt.classBuilder().ep({...ht,DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,i){return[mt(r,t.getEndpointParameterInstructions()),Dt(r)]}).s("AmazonS3","CreateSession",{}).n("S3Client","CreateSessionCommand").sc(_I).build(){};c();var kI={name:"@aws-sdk/client-s3",description:"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",version:"3.1033.0",scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-s3","build:es":"tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo s3",test:"yarn g:vitest run","test:browser":"node ./test/browser-build/esbuild && yarn g:vitest run -c vitest.config.browser.mts","test:browser:watch":"node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.mts","test:e2e":"yarn g:vitest run -c vitest.config.e2e.mts && yarn test:browser","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.mts","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs","test:integration":"yarn g:vitest run -c vitest.config.integ.mts","test:integration:watch":"yarn g:vitest watch -c vitest.config.integ.mts","test:watch":"yarn g:vitest watch"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha1-browser":"5.2.0","@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.974.2","@aws-sdk/credential-provider-node":"^3.972.33","@aws-sdk/middleware-bucket-endpoint":"^3.972.10","@aws-sdk/middleware-expect-continue":"^3.972.10","@aws-sdk/middleware-flexible-checksums":"^3.974.10","@aws-sdk/middleware-host-header":"^3.972.10","@aws-sdk/middleware-location-constraint":"^3.972.10","@aws-sdk/middleware-logger":"^3.972.10","@aws-sdk/middleware-recursion-detection":"^3.972.11","@aws-sdk/middleware-sdk-s3":"^3.972.31","@aws-sdk/middleware-ssec":"^3.972.10","@aws-sdk/middleware-user-agent":"^3.972.32","@aws-sdk/region-config-resolver":"^3.972.12","@aws-sdk/signature-v4-multi-region":"^3.996.19","@aws-sdk/types":"^3.973.8","@aws-sdk/util-endpoints":"^3.996.7","@aws-sdk/util-user-agent-browser":"^3.972.10","@aws-sdk/util-user-agent-node":"^3.973.18","@smithy/config-resolver":"^4.4.16","@smithy/core":"^3.23.15","@smithy/eventstream-serde-browser":"^4.2.14","@smithy/eventstream-serde-config-resolver":"^4.3.14","@smithy/eventstream-serde-node":"^4.2.14","@smithy/fetch-http-handler":"^5.3.17","@smithy/hash-blob-browser":"^4.2.15","@smithy/hash-node":"^4.2.14","@smithy/hash-stream-node":"^4.2.14","@smithy/invalid-dependency":"^4.2.14","@smithy/md5-js":"^4.2.14","@smithy/middleware-content-length":"^4.2.14","@smithy/middleware-endpoint":"^4.4.30","@smithy/middleware-retry":"^4.5.3","@smithy/middleware-serde":"^4.2.18","@smithy/middleware-stack":"^4.2.14","@smithy/node-config-provider":"^4.3.14","@smithy/node-http-handler":"^4.5.3","@smithy/protocol-http":"^5.3.14","@smithy/smithy-client":"^4.12.11","@smithy/types":"^4.14.1","@smithy/url-parser":"^4.2.14","@smithy/util-base64":"^4.3.2","@smithy/util-body-length-browser":"^4.2.2","@smithy/util-body-length-node":"^4.2.3","@smithy/util-defaults-mode-browser":"^4.3.47","@smithy/util-defaults-mode-node":"^4.2.52","@smithy/util-endpoints":"^3.4.1","@smithy/util-middleware":"^4.2.14","@smithy/util-retry":"^4.3.2","@smithy/util-stream":"^4.5.23","@smithy/util-utf8":"^4.2.2","@smithy/util-waiter":"^4.2.16",tslib:"^2.6.2"},devDependencies:{"@aws-sdk/signature-v4-crt":"3.1033.0","@smithy/snapshot-testing":"^2.0.6","@tsconfig/node20":"20.1.8","@types/node":"^20.14.8",concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~5.8.3",vitest:"^4.0.17"},engines:{node:">=20.0.0"},typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-s3"}};c();c();c();c();c();var Yv=e=>new TextEncoder().encode(e);c();c();c();function Xv(e){return typeof e=="string"?e.length===0:e.byteLength===0}c();var Zv={name:"SHA-1"},Qv={name:"HMAC",hash:Zv},OI=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]);c();var Ahe={};function mr(){return typeof window!="undefined"?window:typeof self!="undefined"?self:Ahe}var Jv=(function(){function e(t){this.toHash=new Uint8Array(0),t!==void 0&&(this.key=new Promise(function(n,r){mr().crypto.subtle.importKey("raw",FI(t),Qv,!1,["sign"]).then(n,r)}),this.key.catch(function(){}))}return e.prototype.update=function(t){if(!Xv(t)){var n=FI(t),r=new Uint8Array(this.toHash.byteLength+n.byteLength);r.set(this.toHash,0),r.set(n,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var t=this;return this.key?this.key.then(function(n){return mr().crypto.subtle.sign(Qv,n,t.toHash).then(function(r){return new Uint8Array(r)})}):Xv(this.toHash)?Promise.resolve(OI):Promise.resolve().then(function(){return mr().crypto.subtle.digest(Zv,t.toHash)}).then(function(n){return Promise.resolve(new Uint8Array(n))})},e.prototype.reset=function(){this.toHash=new Uint8Array(0)},e})();function FI(e){return typeof e=="string"?Yv(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}c();c();var Rhe=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function dm(e){if(khe(e)&&typeof e.crypto.subtle=="object"){var t=e.crypto.subtle;return Ohe(t)}return!1}function khe(e){if(typeof e=="object"&&typeof e.crypto=="object"){var t=e.crypto.getRandomValues;return typeof t=="function"}return!1}function Ohe(e){return e&&Rhe.every(function(t){return typeof e[t]=="function"})}var BI=(function(){function e(t){if(dm(mr()))this.hash=new Jv(t);else throw new Error("SHA1 not supported")}return e.prototype.update=function(t,n){this.hash.update(fn(t))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e})();c();c();c();c();var eb={name:"SHA-256"},tb={name:"HMAC",hash:eb},II=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85]);var nb=(function(){function e(t){this.toHash=new Uint8Array(0),this.secret=t,this.reset()}return e.prototype.update=function(t){if(!Yr(t)){var n=fn(t),r=new Uint8Array(this.toHash.byteLength+n.byteLength);r.set(this.toHash,0),r.set(n,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var t=this;return this.key?this.key.then(function(n){return mr().crypto.subtle.sign(tb,n,t.toHash).then(function(r){return new Uint8Array(r)})}):Yr(this.toHash)?Promise.resolve(II):Promise.resolve().then(function(){return mr().crypto.subtle.digest(eb,t.toHash)}).then(function(n){return Promise.resolve(new Uint8Array(n))})},e.prototype.reset=function(){var t=this;this.toHash=new Uint8Array(0),this.secret&&this.secret!==void 0&&(this.key=new Promise(function(n,r){mr().crypto.subtle.importKey("raw",fn(t.secret),tb,!1,["sign"]).then(n,r)}),this.key.catch(function(){}))},e})();c();c();c();var Ln=64,PI=32,NI=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),MI=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],LI=Math.pow(2,53)-1;c();var hl=(function(){function e(){this.state=Int32Array.from(MI),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");var n=0,r=t.byteLength;if(this.bytesHashed+=r,this.bytesHashed*8>LI)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=t[n++],r--,this.bufferLength===Ln&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var t=this.bytesHashed*8,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(n.setUint8(this.bufferLength++,128),r%Ln>=Ln-8){for(var i=this.bufferLength;i>>24&255,s[i*4+1]=this.state[i]>>>16&255,s[i*4+2]=this.state[i]>>>8&255,s[i*4+3]=this.state[i]>>>0&255;return s},e.prototype.hashBuffer=function(){for(var t=this,n=t.buffer,r=t.state,i=r[0],s=r[1],o=r[2],a=r[3],l=r[4],u=r[5],p=r[6],d=r[7],f=0;f>>17|m<<15)^(m>>>19|m<<13)^m>>>10;m=this.temp[f-15];var x=(m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3;this.temp[f]=(g+this.temp[f-7]|0)+(x+this.temp[f-16]|0)}var v=(((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&u^~l&p)|0)+(d+(NI[f]+this.temp[f]|0)|0)|0,_=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&s^i&o^s&o)|0;d=p,p=u,u=l,l=a+v|0,a=o,o=s,s=i,i=v+_|0}r[0]+=i,r[1]+=s,r[2]+=o,r[3]+=a,r[4]+=l,r[5]+=u,r[6]+=p,r[7]+=d},e})();var $I=(function(){function e(t){this.secret=t,this.hash=new hl,this.reset()}return e.prototype.update=function(t){if(!(Yr(t)||this.error))try{this.hash.update(fn(t))}catch(n){this.error=n}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return vi(this,void 0,void 0,function(){return bi(this,function(t){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new hl,this.secret){this.outer=new hl;var t=Fhe(this.secret),n=new Uint8Array(Ln);n.set(t);for(var r=0;rLn){var n=new hl;n.update(t),t=n.digest()}var r=new Uint8Array(Ln);return r.set(t),r}var UI=(function(){function e(t){dm(mr())?this.hash=new nb(t):this.hash=new $I(t)}return e.prototype.update=function(t,n){this.hash.update(fn(t))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e})();c();var zI=({serviceId:e,clientVersion:t})=>async n=>{var m,g,x,v,_,w,D,C,A,k;let r=typeof window!="undefined"?window.navigator:void 0,i=(m=r==null?void 0:r.userAgent)!=null?m:"",s=(v=(x=(g=r==null?void 0:r.userAgentData)==null?void 0:g.platform)!=null?x:jI.os(i))!=null?v:"other",o=void 0,a=(w=(_=r==null?void 0:r.userAgentData)==null?void 0:_.brands)!=null?w:[],l=a[a.length-1],u=(C=(D=l==null?void 0:l.brand)!=null?D:jI.browser(i))!=null?C:"unknown",p=(A=l==null?void 0:l.version)!=null?A:"unknown",d=[["aws-sdk-js",t],["ua","2.1"],[`os/${s}`,o],["lang/js"],["md/browser",`${u}_${p}`]];e&&d.push([`api/${e}`,t]);let f=await((k=n==null?void 0:n.userAgentAppId)==null?void 0:k.call(n));return f&&d.push([`app/${f}`]),d},jI={os(e){if(/iPhone|iPad|iPod/.test(e))return"iOS";if(/Macintosh|Mac OS X/.test(e))return"macOS";if(/Windows NT/.test(e))return"Windows";if(/Android/.test(e))return"Android";if(/Linux/.test(e))return"Linux"},browser(e){if(/EdgiOS|EdgA|Edg\//.test(e))return"Microsoft Edge";if(/Firefox\//.test(e))return"Firefox";if(/Chrome\//.test(e))return"Chrome";if(/Safari\//.test(e))return"Safari"}};c();c();c();c();c();var Qa=class e{constructor(t){S(this,"bytes");if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let r=7,i=Math.abs(Math.round(t));r>-1&&i>0;r--,i/=256)n[r]=i;return t<0&&qI(n),new e(n)}valueOf(){let t=this.bytes.slice(0),n=t[0]&128;return n&&qI(t),parseInt(ft(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}};function qI(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}var fm=class{constructor(t,n){S(this,"toUtf8");S(this,"fromUtf8");this.toUtf8=t,this.fromUtf8=n}format(t){let n=[];for(let s of Object.keys(t)){let o=this.fromUtf8(s);n.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(t[s]))}let r=new Uint8Array(n.reduce((s,o)=>s+o.byteLength,0)),i=0;for(let s of n)r.set(s,i),i+=s.byteLength;return r}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":let n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,t.value,!1),new Uint8Array(n.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case"long":let i=new Uint8Array(9);return i[0]=5,i.set(t.value.bytes,1),i;case"binary":let s=new DataView(new ArrayBuffer(3+t.value.byteLength));s.setUint8(0,6),s.setUint16(1,t.value.byteLength,!1);let o=new Uint8Array(s.buffer);return o.set(t.value,3),o;case"string":let a=this.fromUtf8(t.value),l=new DataView(new ArrayBuffer(3+a.byteLength));l.setUint8(0,7),l.setUint16(1,a.byteLength,!1);let u=new Uint8Array(l.buffer);return u.set(a,3),u;case"timestamp":let p=new Uint8Array(9);return p[0]=8,p.set(Qa.fromNumber(t.value.valueOf()).bytes,1),p;case"uuid":if(!jhe.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);let d=new Uint8Array(17);return d[0]=9,d.set(ed(t.value.replace(/\-/g,"")),1),d}}parse(t){let n={},r=0;for(;r{if(typeof a!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+a);t=a,n=4,r=new Uint8Array(a),new DataView(r.buffer).setUint32(0,a,!1)},o=async function*(){let a=e[Symbol.asyncIterator]();for(;;){let{value:l,done:u}=await a.next();if(u){if(t)if(t===n)yield r;else throw new Error("Truncated event message received.");else return;return}let p=l.length,d=0;for(;d({[Symbol.asyncIterator]:async function*(){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}}),ZI=e=>{let t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(n){let{done:r,value:i}=await t.next();if(r)return n.close();n.enqueue(i)}})};var bm=class{constructor({utf8Encoder:t,utf8Decoder:n}){S(this,"universalMarshaller");this.universalMarshaller=new vm({utf8Decoder:n,utf8Encoder:t})}deserialize(t,n){let r=qhe(t)?XI(t):t;return this.universalMarshaller.deserialize(r,n)}serialize(t,n){let r=this.universalMarshaller.serialize(t,n);return typeof ReadableStream=="function"?ZI(r):r}},qhe=e=>typeof ReadableStream=="function"&&e instanceof ReadableStream;c();var QI=e=>new bm(e);c();c();async function JI(e,t,n=1024*1024){let r=e.size,i=0;for(;i{r.update(i)}),r.digest()};c();var tP=e=>()=>Promise.reject(e);c();Xt();c();var nP=[1732584193,4023233417,2562383102,271733878];var _m=class{constructor(){S(this,"state");S(this,"buffer");S(this,"bufferLength");S(this,"bytesHashed");S(this,"finished");this.reset()}update(t){if(Ghe(t))return;if(this.finished)throw new Error("Attempted to update an already finished hash.");let n=Vhe(t),r=0,{byteLength:i}=n;for(this.bytesHashed+=i;i>0;)this.buffer.setUint8(this.bufferLength++,n[r++]),i--,this.bufferLength===64&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){let{buffer:n,bufferLength:r,bytesHashed:i}=this,s=i*8;if(n.setUint8(this.bufferLength++,128),r%64>=56){for(let o=this.bufferLength;o<64;o++)n.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(let o=this.bufferLength;o<56;o++)n.setUint8(o,0);n.setUint32(56,s>>>0,!0),n.setUint32(60,Math.floor(s/4294967296),!0),this.hashBuffer(),this.finished=!0}let t=new DataView(new ArrayBuffer(16));for(let n=0;n<4;n++)t.setUint32(n*4,this.state[n],!0);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}hashBuffer(){let{buffer:t,state:n}=this,r=n[0],i=n[1],s=n[2],o=n[3];r=sn(r,i,s,o,t.getUint32(0,!0),7,3614090360),o=sn(o,r,i,s,t.getUint32(4,!0),12,3905402710),s=sn(s,o,r,i,t.getUint32(8,!0),17,606105819),i=sn(i,s,o,r,t.getUint32(12,!0),22,3250441966),r=sn(r,i,s,o,t.getUint32(16,!0),7,4118548399),o=sn(o,r,i,s,t.getUint32(20,!0),12,1200080426),s=sn(s,o,r,i,t.getUint32(24,!0),17,2821735955),i=sn(i,s,o,r,t.getUint32(28,!0),22,4249261313),r=sn(r,i,s,o,t.getUint32(32,!0),7,1770035416),o=sn(o,r,i,s,t.getUint32(36,!0),12,2336552879),s=sn(s,o,r,i,t.getUint32(40,!0),17,4294925233),i=sn(i,s,o,r,t.getUint32(44,!0),22,2304563134),r=sn(r,i,s,o,t.getUint32(48,!0),7,1804603682),o=sn(o,r,i,s,t.getUint32(52,!0),12,4254626195),s=sn(s,o,r,i,t.getUint32(56,!0),17,2792965006),i=sn(i,s,o,r,t.getUint32(60,!0),22,1236535329),r=on(r,i,s,o,t.getUint32(4,!0),5,4129170786),o=on(o,r,i,s,t.getUint32(24,!0),9,3225465664),s=on(s,o,r,i,t.getUint32(44,!0),14,643717713),i=on(i,s,o,r,t.getUint32(0,!0),20,3921069994),r=on(r,i,s,o,t.getUint32(20,!0),5,3593408605),o=on(o,r,i,s,t.getUint32(40,!0),9,38016083),s=on(s,o,r,i,t.getUint32(60,!0),14,3634488961),i=on(i,s,o,r,t.getUint32(16,!0),20,3889429448),r=on(r,i,s,o,t.getUint32(36,!0),5,568446438),o=on(o,r,i,s,t.getUint32(56,!0),9,3275163606),s=on(s,o,r,i,t.getUint32(12,!0),14,4107603335),i=on(i,s,o,r,t.getUint32(32,!0),20,1163531501),r=on(r,i,s,o,t.getUint32(52,!0),5,2850285829),o=on(o,r,i,s,t.getUint32(8,!0),9,4243563512),s=on(s,o,r,i,t.getUint32(28,!0),14,1735328473),i=on(i,s,o,r,t.getUint32(48,!0),20,2368359562),r=an(r,i,s,o,t.getUint32(20,!0),4,4294588738),o=an(o,r,i,s,t.getUint32(32,!0),11,2272392833),s=an(s,o,r,i,t.getUint32(44,!0),16,1839030562),i=an(i,s,o,r,t.getUint32(56,!0),23,4259657740),r=an(r,i,s,o,t.getUint32(4,!0),4,2763975236),o=an(o,r,i,s,t.getUint32(16,!0),11,1272893353),s=an(s,o,r,i,t.getUint32(28,!0),16,4139469664),i=an(i,s,o,r,t.getUint32(40,!0),23,3200236656),r=an(r,i,s,o,t.getUint32(52,!0),4,681279174),o=an(o,r,i,s,t.getUint32(0,!0),11,3936430074),s=an(s,o,r,i,t.getUint32(12,!0),16,3572445317),i=an(i,s,o,r,t.getUint32(24,!0),23,76029189),r=an(r,i,s,o,t.getUint32(36,!0),4,3654602809),o=an(o,r,i,s,t.getUint32(48,!0),11,3873151461),s=an(s,o,r,i,t.getUint32(60,!0),16,530742520),i=an(i,s,o,r,t.getUint32(8,!0),23,3299628645),r=cn(r,i,s,o,t.getUint32(0,!0),6,4096336452),o=cn(o,r,i,s,t.getUint32(28,!0),10,1126891415),s=cn(s,o,r,i,t.getUint32(56,!0),15,2878612391),i=cn(i,s,o,r,t.getUint32(20,!0),21,4237533241),r=cn(r,i,s,o,t.getUint32(48,!0),6,1700485571),o=cn(o,r,i,s,t.getUint32(12,!0),10,2399980690),s=cn(s,o,r,i,t.getUint32(40,!0),15,4293915773),i=cn(i,s,o,r,t.getUint32(4,!0),21,2240044497),r=cn(r,i,s,o,t.getUint32(32,!0),6,1873313359),o=cn(o,r,i,s,t.getUint32(60,!0),10,4264355552),s=cn(s,o,r,i,t.getUint32(24,!0),15,2734768916),i=cn(i,s,o,r,t.getUint32(52,!0),21,1309151649),r=cn(r,i,s,o,t.getUint32(16,!0),6,4149444226),o=cn(o,r,i,s,t.getUint32(44,!0),10,3174756917),s=cn(s,o,r,i,t.getUint32(8,!0),15,718787259),i=cn(i,s,o,r,t.getUint32(36,!0),21,3951481745),n[0]=r+n[0]&4294967295,n[1]=i+n[1]&4294967295,n[2]=s+n[2]&4294967295,n[3]=o+n[3]&4294967295}reset(){this.state=Uint32Array.from(nP),this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}};function wm(e,t,n,r,i,s){return t=(t+e&4294967295)+(r+s&4294967295)&4294967295,(t<>>32-i)+n&4294967295}function sn(e,t,n,r,i,s,o){return wm(t&n|~t&r,e,t,i,s,o)}function on(e,t,n,r,i,s,o){return wm(t&r|n&~r,e,t,i,s,o)}function an(e,t,n,r,i,s,o){return wm(t^n^r,e,t,i,s,o)}function cn(e,t,n,r,i,s,o){return wm(n^(t|~r),e,t,i,s,o)}function Ghe(e){return typeof e=="string"?e.length===0:e.byteLength===0}function Vhe(e){return typeof e=="string"?Wt(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}c();c();var rP=["in-region","cross-region","mobile","standard","legacy"];var iP=({defaultsMode:e}={})=>V3(async()=>{let t=typeof e=="function"?await e():e;switch(t==null?void 0:t.toLowerCase()){case"auto":return Promise.resolve(Whe()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(t==null?void 0:t.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${rP.join(", ")}, got ${t}`)}}),Whe=()=>{var t;let e=window==null?void 0:window.navigator;if(e!=null&&e.connection){let{effectiveType:n,rtt:r,downlink:i}=e==null?void 0:e.connection;if(typeof n=="string"&&n!=="4g"||Number(r)>100||Number(i)<10)return!0}return((t=e==null?void 0:e.userAgentData)==null?void 0:t.mobile)||typeof(e==null?void 0:e.maxTouchPoints)=="number"&&(e==null?void 0:e.maxTouchPoints)>1};c();Xt();var sP=e=>{var t,n,r,i,s,o,a,l,u,p,d,f,m,g,x,v,_,w,D;return{apiVersion:"2006-03-01",base64Decoder:(t=e==null?void 0:e.base64Decoder)!=null?t:Tr,base64Encoder:(n=e==null?void 0:e.base64Encoder)!=null?n:Gn,disableHostPrefix:(r=e==null?void 0:e.disableHostPrefix)!=null?r:!1,endpointProvider:(i=e==null?void 0:e.endpointProvider)!=null?i:cf,extensions:(s=e==null?void 0:e.extensions)!=null?s:[],getAwsChunkedEncodingStream:(o=e==null?void 0:e.getAwsChunkedEncodingStream)!=null?o:R2,httpAuthSchemeProvider:(a=e==null?void 0:e.httpAuthSchemeProvider)!=null?a:Ik,httpAuthSchemes:(l=e==null?void 0:e.httpAuthSchemes)!=null?l:[{schemeId:"aws.auth#sigv4",identityProvider:C=>C.getIdentityProvider("aws.auth#sigv4"),signer:new no},{schemeId:"aws.auth#sigv4a",identityProvider:C=>C.getIdentityProvider("aws.auth#sigv4a"),signer:new Pu}],logger:(u=e==null?void 0:e.logger)!=null?u:new ns,protocol:(p=e==null?void 0:e.protocol)!=null?p:Ru,protocolSettings:(d=e==null?void 0:e.protocolSettings)!=null?d:{defaultNamespace:"com.amazonaws.s3",errorTypeRegistries:VB,xmlNamespace:"http://s3.amazonaws.com/doc/2006-03-01/",version:"2006-03-01",serviceTarget:"AmazonS3"},sdkStreamMixin:(f=e==null?void 0:e.sdkStreamMixin)!=null?f:td,serviceId:(m=e==null?void 0:e.serviceId)!=null?m:"S3",signerConstructor:(g=e==null?void 0:e.signerConstructor)!=null?g:va,signingEscapePath:(x=e==null?void 0:e.signingEscapePath)!=null?x:!1,urlParser:(v=e==null?void 0:e.urlParser)!=null?v:_i,useArnRegion:(_=e==null?void 0:e.useArnRegion)!=null?_:void 0,utf8Decoder:(w=e==null?void 0:e.utf8Decoder)!=null?w:Wt,utf8Encoder:(D=e==null?void 0:e.utf8Encoder)!=null?D:Bn}};var oP=e=>{var i,s,o,a,l,u,p,d,f,m,g,x,v,_,w;let t=iP(e),n=()=>t().then(kA),r=sP(e);return{...r,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:(i=e==null?void 0:e.bodyLengthChecker)!=null?i:BR,credentialDefaultProvider:(s=e==null?void 0:e.credentialDefaultProvider)!=null?s:(D=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(o=e==null?void 0:e.defaultUserAgentProvider)!=null?o:zI({serviceId:r.serviceId,clientVersion:kI.version}),eventStreamSerdeProvider:(a=e==null?void 0:e.eventStreamSerdeProvider)!=null?a:QI,maxAttempts:(l=e==null?void 0:e.maxAttempts)!=null?l:is,md5:(u=e==null?void 0:e.md5)!=null?u:_m,region:(p=e==null?void 0:e.region)!=null?p:tP("Region is missing"),requestHandler:Qp.create((d=e==null?void 0:e.requestHandler)!=null?d:n),retryMode:(f=e==null?void 0:e.retryMode)!=null?f:(async()=>(await n()).retryMode||yx),sha1:(m=e==null?void 0:e.sha1)!=null?m:BI,sha256:(g=e==null?void 0:e.sha256)!=null?g:UI,streamCollector:(x=e==null?void 0:e.streamCollector)!=null?x:Jp,streamHasher:(v=e==null?void 0:e.streamHasher)!=null?v:eP,useDualstackEndpoint:(_=e==null?void 0:e.useDualstackEndpoint)!=null?_:(()=>Promise.resolve(D3)),useFipsEndpoint:(w=e==null?void 0:e.useFipsEndpoint)!=null?w:(()=>Promise.resolve(S3))}};c();c();var aP=e=>({setRegion(t){e.region=t},region(){return e.region}}),cP=e=>({region:e.region()});c();var uP=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(i){let s=t.findIndex(o=>o.schemeId===i.schemeId);s===-1?t.push(i):t.splice(s,1,i)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(i){n=i},httpAuthSchemeProvider(){return n},setCredentials(i){r=i},credentials(){return r}}},lP=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()});var pP=(e,t)=>{let n=Object.assign(aP(e),NA(e),h2(e),uP(e));return t.forEach(r=>r.configure(n)),Object.assign(e,cP(n),MA(n),g2(n),lP(n))};var Em=class extends cd{constructor(...[n]){let r=oP(n||{});super(r);S(this,"config");this.initConfig=r;let i=Nk(r),s=MR(i),o=eA(s),a=U3(o),l=R3(a),u=l,p=L3(u),d=k3(p),f=Pk(d),m=TR(f,{session:[()=>this,pm]}),g=pP(m,(n==null?void 0:n.extensions)||[]);this.config=g,this.middlewareStack.use(dA(this.config)),this.middlewareStack.use(E3(this.config)),this.middlewareStack.use(H3(this.config)),this.middlewareStack.use(F3(this.config)),this.middlewareStack.use(tA(this.config)),this.middlewareStack.use(nA(this.config)),this.middlewareStack.use(sA(this.config)),this.middlewareStack.use(vR(this.config,{httpAuthSchemeParametersProvider:Ok,identityProviderConfigProvider:async x=>new Bd({"aws.auth#sigv4":x.credentials,"aws.auth#sigv4a":x.credentials})})),this.middlewareStack.use(_R(this.config)),this.middlewareStack.use(OR(this.config)),this.middlewareStack.use(y2(this.config)),this.middlewareStack.use(jA(this.config)),this.middlewareStack.use(sx(this.config)),this.middlewareStack.use(cx(this.config))}destroy(){super.destroy()}};c();c();function Khe(e){return t=>async n=>{let r={...n.input},i=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(let s of i){let o=r[s.target];if(o){let a;typeof o=="string"?Xhe(o,e)?a=e.base64Decoder(o):(a=e.utf8Decoder(o),r[s.target]=e.base64Encoder(a)):(a=ArrayBuffer.isView(o)?new Uint8Array(o.buffer,o.byteOffset,o.byteLength):new Uint8Array(o),r[s.target]=e.base64Encoder(a));let l=new e.md5;l.update(a),r[s.hash]=e.base64Encoder(await l.digest())}}return t({...n,input:r})}}var Yhe={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},hr=e=>({applyToStack:t=>{t.add(Khe(e),Yhe)}});function Xhe(e,t){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))return!1;try{return t.base64Decoder(e).length===32}catch(r){return!1}}var Dm=class extends nt.classBuilder().ep({...ht,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,n,r,i){return[mt(r,t.getEndpointParameterInstructions()),Dt(r),hr(r)]}).s("AmazonS3","CompleteMultipartUpload",{}).n("S3Client","CompleteMultipartUploadCommand").sc(vI).build(){};c();var Sm=class extends nt.classBuilder().ep({...ht,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,n,r,i){return[mt(r,t.getEndpointParameterInstructions()),Dt(r),hr(r)]}).s("AmazonS3","CreateMultipartUpload",{}).n("S3Client","CreateMultipartUploadCommand").sc(bI).build(){};c();var gl=class extends nt.classBuilder().ep({...ht,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,n,r,i){return[mt(r,t.getEndpointParameterInstructions()),Dt(r)]}).s("AmazonS3","DeleteObject",{}).n("S3Client","DeleteObjectCommand").sc(wI).build(){};c();var Cm=class extends nt.classBuilder().ep({...ht,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,n,r,i){return[mt(r,t.getEndpointParameterInstructions()),Ji(r,{requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC64NVME","CRC32","CRC32C","SHA256","SHA1"]}),hr(r),wd(r)]}).s("AmazonS3","GetObject",{}).n("S3Client","GetObjectCommand").sc(EI).build(){};c();var Tm=class extends nt.classBuilder().ep({...ht,Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,i){return[mt(r,t.getEndpointParameterInstructions()),Dt(r)]}).s("AmazonS3","HeadBucket",{}).n("S3Client","HeadBucketCommand").sc(DI).build(){};c();var Am=class extends nt.classBuilder().ep({...ht,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,n,r,i){return[mt(r,t.getEndpointParameterInstructions()),Dt(r),hr(r),wd(r)]}).s("AmazonS3","HeadObject",{}).n("S3Client","HeadObjectCommand").sc(SI).build(){};c();var Rm=class extends nt.classBuilder().ep({...ht,Bucket:{type:"contextParams",name:"Bucket"},Prefix:{type:"contextParams",name:"Prefix"}}).m(function(t,n,r,i){return[mt(r,t.getEndpointParameterInstructions()),Dt(r)]}).s("AmazonS3","ListObjectsV2",{}).n("S3Client","ListObjectsV2Command").sc(CI).build(){};c();var go=class extends nt.classBuilder().ep({...ht,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,n,r,i){return[mt(r,t.getEndpointParameterInstructions()),Ji(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),LA(r),Dt(r),hr(r)]}).s("AmazonS3","PutObject",{}).n("S3Client","PutObjectCommand").sc(TI).build(){};c();var km=class extends nt.classBuilder().ep({...ht,Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,i){return[mt(r,t.getEndpointParameterInstructions()),Ji(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0}),Dt(r)]}).s("AmazonS3","PutObjectTagging",{}).n("S3Client","PutObjectTaggingCommand").sc(AI).build(){};c();var Om=class extends nt.classBuilder().ep({...ht,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,n,r,i){return[mt(r,t.getEndpointParameterInstructions()),Ji(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),Dt(r),hr(r)]}).s("AmazonS3","UploadPart",{}).n("S3Client","UploadPartCommand").sc(RI).build(){};c();c();c();c();c();var Fm=class{constructor(){this.onabort=null,this._aborted=!1,Object.defineProperty(this,"_aborted",{value:!1,writable:!0})}get aborted(){return this._aborted}abort(){this._aborted=!0,this.onabort&&(this.onabort(this),this.onabort=null)}};var Bm=class{constructor(){this.signal=new Fm}abort(){this.signal.abort()}};c();c();c();c();c();var dP=async e=>{let t=(e==null?void 0:e.Bucket)||"";if(typeof e.Bucket=="string"&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),tge(t)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!ege(t)||t.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},Zhe=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Qhe=/(\d+\.){3}\d+/,Jhe=/\.\./;var ege=e=>Zhe.test(e)&&!Qhe.test(e)&&!Jhe.test(e),tge=e=>{let[t,n,r,,,i]=e.split(":"),s=t==="arn"&&e.split(":").length>=6,o=!!(s&&n&&r&&i);if(s&&!o)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return o};c();var fP=(e,t,n)=>{let r=async()=>{var s;let i=(s=n[e])!=null?s:n[t];return typeof i=="function"?i():i};return e==="credentialScope"||t==="CredentialScope"?async()=>{var o;let i=typeof n.credentials=="function"?await n.credentials():n.credentials;return(o=i==null?void 0:i.credentialScope)!=null?o:i==null?void 0:i.CredentialScope}:e==="endpoint"||t==="endpoint"?async()=>{let i=await r();if(i&&typeof i=="object"){if("url"in i)return i.url.href;if("hostname"in i){let{protocol:s,hostname:o,port:a,path:l}=i;return`${s}//${o}${a?":"+a:""}${l}`}}return i}:r};c();var mP=async e=>{};c();c();c();function hP(e){let t={};if(e=e.replace(/^\?/,""),e)for(let n of e.split("&")){let[r,i=null]=n.split("=");r=decodeURIComponent(r),i&&(i=decodeURIComponent(i)),r in t?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i}return t}var Im=e=>{if(typeof e=="string")return Im(new URL(e));let{hostname:t,pathname:n,port:r,protocol:i,search:s}=e,o;return s&&(o=hP(s)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:o}};var yl=e=>typeof e=="object"?"url"in e?Im(e.url):e:Im(e);var rb=async(e,t,n,r)=>{if(!n.endpoint){let o=await mP(n.serviceId||"");o&&(n.endpoint=()=>Promise.resolve(yl(o)))}let i=await nge(e,t,n);if(typeof n.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return n.endpointProvider(i,r)},nge=async(e,t,n)=>{var s;let r={},i=((s=t==null?void 0:t.getEndpointParameterInstructions)==null?void 0:s.call(t))||{};for(let[o,a]of Object.entries(i))switch(a.type){case"staticContextParams":r[o]=a.value;break;case"contextParams":r[o]=e[a.name];break;case"clientContextParams":case"builtInParams":r[o]=await fP(a.name,o,n)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(a))}return Object.keys(i).length===0&&Object.assign(r,n),String(n.serviceId).toLowerCase()==="s3"&&await dP(r),r};c();c();c();c();c();c();c();var gP;(function(e){e.HEADER="header",e.QUERY="query"})(gP||(gP={}));c();var yP;(function(e){e.HEADER="header",e.QUERY="query"})(yP||(yP={}));c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();var xP;(function(e){e.HTTP="http",e.HTTPS="https"})(xP||(xP={}));c();c();c();c();c();c();c();c();c();c();var Pm;(function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"})(Pm||(Pm={}));c();c();var ib;(function(e){e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER"})(ib||(ib={}));c();c();c();c();c();c();c();c();c();c();var vP;(function(e){e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services"})(vP||(vP={}));c();c();c();c();c();c();c();c();c();c();var bP;(function(e){e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0"})(bP||(bP={}));c();c();c();c();c();c();c();c();c();c();c();c();var _P={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};var tZe={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:_P.name};c();c();c();c();c();c();c();c();c();c();c();c();c();c();var yo={},Ja=new Array(64);for(let e=0,t=65,n=90;e+t<=n;e++){let r=String.fromCharCode(e+t);yo[r]=e,Ja[e]=r}for(let e=0,t=97,n=122;e+t<=n;e++){let r=String.fromCharCode(e+t),i=e+26;yo[r]=i,Ja[i]=r}for(let e=0;e<10;e++){yo[e.toString(10)]=e+52;let t=e.toString(10),n=e+52;yo[t]=n,Ja[n]=t}yo["+"]=62;Ja[62]="+";yo["/"]=63;Ja[63]="/";c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();var sJe={supported:typeof Request!="undefined"&&"keepalive"in new Request("https://[::1]")};c();c();var dge={},fge={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),dge[e]=t,fge[t]=e}c();c();c();c();c();var jJe=Math.ceil(34028234663852886e22);var YJe=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);var XJe=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/);var ZJe=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),QJe=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),JJe=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/);var eet=50*365*24*60*60*1e3;c();c();c();c();c();c();c();c();c();function Nm(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}c();c();c();var sb=function(){let e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,[null,...arguments]),n=new t;return Object.setPrototypeOf(n,e.prototype),n};sb.prototype=Object.create(String.prototype,{constructor:{value:sb,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(sb,String);c();c();c();c();c();var Oh=at(xl());c();c();c();var BP={lstatSync:()=>{}};var IP={...BP,runtime:"browser"};var $m=e=>{if(e==null)return 0;if(typeof e=="string"&&(e=h.Buffer.from(e)),typeof e.byteLength=="number")return e.byteLength;if(typeof e.length=="number")return e.length;if(typeof e.size=="number")return e.size;if(typeof e.path=="string")try{return IP.lstatSync(e.path).size}catch(t){return}};c();var b_=at(Sr()),b8=at(g_());c();async function*y_(e,t){let n=1,r=0,i=t;for(;i=t;){let o=i.chunks.length>1?x_.Buffer.concat(i.chunks):i.chunks[0];yield{partNumber:r,data:o.slice(0,t)},i.chunks=[o.slice(t)],i.length=i.chunks[0].length,r+=1}yield{partNumber:r,data:x_.Buffer.concat(i.chunks),lastPart:!0}}c();var y8=at(Sr());async function*x8(e){for await(let t of e)yield y8.Buffer.from(t)}c();var v8=at(Sr());async function*v_(e){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield v8.Buffer.from(r)}}catch(n){throw n}finally{t.releaseLock()}}var _8=(e,t)=>{if(e instanceof b_.Buffer)return y_(e,t);if(e instanceof b8.Readable)return kh(e,t,x8);if(e instanceof String||typeof e=="string"||e instanceof Uint8Array)return y_(b_.Buffer.from(e),t);if(typeof e.stream=="function")return kh(e.stream(),t,v_);if(e instanceof ReadableStream)return kh(e,t,v_);throw new Error("Body Data is unsupported format, expected data to be one of: string | Uint8Array | Buffer | Readable | ReadableStream | Blob;.")};var __=1024*1024*5,Pl=class extends Oh.EventEmitter{constructor(t){var n;super(),this.MAX_PARTS=1e4,this.queueSize=4,this.partSize=__,this.leavePartsOnError=!1,this.tags=[],this.concurrentUploaders=[],this.uploadedParts=[],this.isMultiPart=!0,this.queueSize=t.queueSize||this.queueSize,this.partSize=t.partSize||this.partSize,this.leavePartsOnError=t.leavePartsOnError||this.leavePartsOnError,this.tags=t.tags||this.tags,this.client=t.client,this.params=t.params,this.__validateInput(),this.totalBytes=$m(this.params.Body),this.bytesUploadedSoFar=0,this.abortController=(n=t.abortController)!=null?n:new Bm}async abort(){this.abortController.abort()}async done(){return await Promise.race([this.__doMultipartUpload(),this.__abortTimeout(this.abortController.signal)])}on(t,n){return this.uploadEvent=t,super.on(t,n)}async __uploadUsingPut(t){var g;this.isMultiPart=!1;let n={...this.params,Body:t.data},r=this.client.config,i=r.requestHandler,s=i instanceof Oh.EventEmitter?i:null,o=x=>{this.bytesUploadedSoFar=x.loaded,this.totalBytes=x.total,this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:t.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})};s!==null&&s.on("xhr.upload.progress",o);let a=await Promise.all([this.client.send(new go(n)),(g=r==null?void 0:r.endpoint)==null?void 0:g.call(r)]),l=a[0],u=a[1];if(u||(u=yl(await rb(n,go,{...r}))),!u)throw new Error('Could not resolve endpoint from S3 "client.config.endpoint()" nor EndpointsV2.');s!==null&&s.off("xhr.upload.progress",o);let p=this.params.Key.split("/").map(x=>Nm(x)).join("/"),d=Nm(this.params.Bucket),f=(()=>{let x=u.hostname.startsWith(`${d}.`);return this.client.config.forcePathStyle?`${u.protocol}//${u.hostname}/${d}/${p}`:x?`${u.protocol}//${u.hostname}/${p}`:`${u.protocol}//${d}.${u.hostname}/${p}`})();this.singleUploadResult={...l,Bucket:this.params.Bucket,Key:this.params.Key,Location:f};let m=$m(t.data);this.__notifyProgress({loaded:m,total:m,part:1,Key:this.params.Key,Bucket:this.params.Bucket})}async __createMultipartUpload(){if(!this.createMultiPartPromise){let t={...this.params,Body:void 0};this.createMultiPartPromise=this.client.send(new Sm(t))}return this.createMultiPartPromise}async __doConcurrentUpload(t){for await(let n of t){if(this.uploadedParts.length>this.MAX_PARTS)throw new Error(`Exceeded ${this.MAX_PARTS} as part of the upload to ${this.params.Key} and ${this.params.Bucket}.`);try{if(this.abortController.signal.aborted)return;if(n.partNumber===1&&n.lastPart)return await this.__uploadUsingPut(n);if(!this.uploadId){let{UploadId:u}=await this.__createMultipartUpload();if(this.uploadId=u,this.abortController.signal.aborted)return}let r=$m(n.data)||0,i=this.client.config.requestHandler,s=i instanceof Oh.EventEmitter?i:null,o=0,a=(u,p)=>{(Number(p.query.partNumber)||-1)===n.partNumber&&(u.total&&r&&(this.bytesUploadedSoFar+=u.loaded-o,o=u.loaded),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:n.partNumber,Key:this.params.Key,Bucket:this.params.Bucket}))};s!==null&&s.on("xhr.upload.progress",a);let l=await this.client.send(new Om({...this.params,UploadId:this.uploadId,Body:n.data,PartNumber:n.partNumber}));if(s!==null&&s.off("xhr.upload.progress",a),this.abortController.signal.aborted)return;if(!l.ETag)throw new Error(`Part ${n.partNumber} is missing ETag in UploadPart response. Missing Bucket CORS configuration for ETag header?`);this.uploadedParts.push({PartNumber:n.partNumber,ETag:l.ETag,...l.ChecksumCRC32&&{ChecksumCRC32:l.ChecksumCRC32},...l.ChecksumCRC32C&&{ChecksumCRC32C:l.ChecksumCRC32C},...l.ChecksumSHA1&&{ChecksumSHA1:l.ChecksumSHA1},...l.ChecksumSHA256&&{ChecksumSHA256:l.ChecksumSHA256}}),s===null&&(this.bytesUploadedSoFar+=r),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:n.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})}catch(r){if(!this.uploadId||this.leavePartsOnError)throw r}}}async __doMultipartUpload(){let t=_8(this.params.Body,this.partSize);for(let r=0;ri.PartNumber-s.PartNumber);let r={...this.params,Body:void 0,UploadId:this.uploadId,MultipartUpload:{Parts:this.uploadedParts}};n=await this.client.send(new Dm(r))}else n=this.singleUploadResult;return this.tags.length&&await this.client.send(new km({...this.params,Tagging:{TagSet:this.tags}})),n}__notifyProgress(t){this.uploadEvent&&this.emit(this.uploadEvent,t)}async __abortTimeout(t){return new Promise((n,r)=>{t.onabort=()=>{let i=new Error("Upload aborted.");i.name="AbortError",r(i)}})}__validateInput(){if(!this.params)throw new Error("InputError: Upload requires params to be passed to upload.");if(!this.client)throw new Error("InputError: Upload requires a AWS client to do uploads with.");if(this.partSize<__)throw new Error(`EntityTooSmall: Your proposed upload partsize [${this.partSize}] is smaller than the minimum allowed size [${__}] (5MB)`);if(this.queueSize<1)throw new Error("Queue size: Must have at least one uploading queue.")}};c();c();c();c();var Git=(function(){function e(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?"".concat(t.protocol,":"):t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?"/".concat(t.path):t.path:"/"}return e.isInstance=function(t){if(!t)return!1;var n=t;return"method"in n&&"protocol"in n&&"hostname"in n&&"path"in n&&typeof n.query=="object"&&typeof n.headers=="object"},e.prototype.clone=function(){var t=new e(Zi(Zi({},this),{headers:Zi({},this.headers)}));return t.query&&(t.query=ebe(t.query)),t},e})();function ebe(e){return Object.keys(e).reduce(function(t,n){var r,i=e[n];return Zi(Zi({},t),(r={},r[n]=Array.isArray(i)?z2([],j2(i),!1):i,r))},{})}c();var Nl=(function(){function e(t){this.statusCode=t.statusCode,this.headers=t.headers||{},this.body=t.body}return e.isInstance=function(t){if(!t)return!1;var n=t;return typeof n.statusCode=="number"&&typeof n.headers=="object"},e})();c();c();c();c();c();c();var Ml=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,tbe)},tbe=function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())};c();function Fh(e){var t,n,r=[];try{for(var i=Qi(Object.keys(e).sort()),s=i.next();!s.done;s=i.next()){var o=s.value,a=e[o];if(o=Ml(o),Array.isArray(a))for(var l=0,u=a.length;l{let s=i.match(F8);if(s===null||!s[1])return!0;let o=s[1];return o.includes(".app/Contents/Resources/electron.asar")||o.includes(".app/Contents/Resources/default_app.asar")||o.includes("node_modules/electron/dist/resources/electron.asar")||o.includes("node_modules/electron/dist/resources/default_app.asar")?!1:!lbe.test(o)}).filter(i=>i.trim()!=="").map(i=>(r&&(i=i.replace(r,"$1")),t&&(i=i.replace(F8,(s,o)=>s.replace(o,o.replace(pbe,"~")))),i)).join(` -`)}var dbe=e=>e.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,""),Ul,Pi=class extends Error{constructor(n){if(!Array.isArray(n))throw new TypeError(`Expected input to be an Array, got ${typeof n}`);n=n.map(i=>i instanceof Error?i:i!==null&&typeof i=="object"?Object.assign(new Error(i.message),i):new Error(i));let r=n.map(i=>typeof i.stack=="string"&&i.stack.length>0?dbe(S_(i.stack)):String(i)).join(` +${ft(o)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){let n=[];for(let s of t.split("/"))(s==null?void 0:s.length)!==0&&s!=="."&&(s===".."?n.pop():n.push(s));let r=`${t!=null&&t.startsWith("/")?"/":""}${n.join("/")}${n.length>0&&(t!=null&&t.endsWith("/"))?"/":""}`;return Yr(r).replace(/%2F/g,"/")}return t}validateResolvedCredentials(t){if(typeof t!="object"||typeof t.accessKeyId!="string"||typeof t.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(t){let n=dR(t).replace(/[\-:]/g,"");return{longDate:n,shortDate:n.slice(0,8)}}getCanonicalHeaderList(t){return Object.keys(t).sort().join(";")}};var to=class extends Id{constructor({applyChecksum:n,credentials:r,region:i,service:s,sha256:o,uriEscapePath:a=!0}){super({applyChecksum:n,credentials:r,region:i,service:s,sha256:o,uriEscapePath:a});C(this,"headerFormatter",new Bd)}async presign(n,r={}){let{signingDate:i=new Date,expiresIn:s=3600,unsignableHeaders:o,unhoistableHeaders:a,signableHeaders:l,hoistableHeaders:u,signingRegion:p,signingService:d}=r,f=await this.credentialProvider();this.validateResolvedCredentials(f);let m=p!=null?p:await this.regionProvider(),{longDate:g,shortDate:x}=this.formatDate(i);if(s>iR)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let v=Od(x,m,d!=null?d:this.service),_=lR(sx(n),{unhoistableHeaders:a,hoistableHeaders:u});f.sessionToken&&(_.query[Q0]=f.sessionToken),_.query[GA]=Rd,_.query[VA]=`${f.accessKeyId}/${v}`,_.query[X0]=g,_.query[KA]=s.toString(10);let w=rx(_,o,l);return _.query[WA]=this.getCanonicalHeaderList(w),_.query[Z0]=await this.getSignature(g,v,this.getSigningKey(f,m,x,d),this.createCanonicalRequest(_,w,await Fd(n,this.sha256))),_}async sign(n,r){return typeof n=="string"?this.signString(n,r):n.headers&&n.payload?this.signEvent(n,r):n.message?this.signMessage(n,r):this.signRequest(n,r)}async signEvent({headers:n,payload:r},{signingDate:i=new Date,priorSignature:s,signingRegion:o,signingService:a,eventStreamCredentials:l}){let u=o!=null?o:await this.regionProvider(),{shortDate:p,longDate:d}=this.formatDate(i),f=Od(p,u,a!=null?a:this.service),m=await Fd({headers:{},body:r},this.sha256),g=new this.sha256;g.update(n);let x=ft(await g.digest()),v=[tR,d,f,s,x,m].join(` +`);return this.signString(v,{signingDate:i,signingRegion:u,signingService:a,eventStreamCredentials:l})}async signMessage(n,{signingDate:r=new Date,signingRegion:i,signingService:s,eventStreamCredentials:o}){return this.signEvent({headers:this.headerFormatter.format(n.message.headers),payload:n.message.body},{signingDate:r,signingRegion:i,signingService:s,priorSignature:n.priorSignature,eventStreamCredentials:o}).then(l=>({message:n.message,signature:l}))}async signString(n,{signingDate:r=new Date,signingRegion:i,signingService:s,eventStreamCredentials:o}={}){let a=o!=null?o:await this.credentialProvider();this.validateResolvedCredentials(a);let l=i!=null?i:await this.regionProvider(),{shortDate:u}=this.formatDate(r),p=new this.sha256(await this.getSigningKey(a,l,u,s));return p.update(Rr(n)),ft(await p.digest())}async signRequest(n,{signingDate:r=new Date,signableHeaders:i,unsignableHeaders:s,signingRegion:o,signingService:a}={}){let l=await this.credentialProvider();this.validateResolvedCredentials(l);let u=o!=null?o:await this.regionProvider(),p=sx(n),{longDate:d,shortDate:f}=this.formatDate(r),m=Od(f,u,a!=null?a:this.service);p.headers[ex]=d,l.sessionToken&&(p.headers[ZA]=l.sessionToken);let g=await Fd(p,this.sha256);!uR(ku,p.headers)&&this.applyChecksum&&(p.headers[ku]=g);let x=rx(p,s,i),v=await this.getSignature(d,m,this.getSigningKey(l,u,f,a),this.createCanonicalRequest(p,x,g));return p.headers[J0]=`${Rd} Credential=${l.accessKeyId}/${m}, SignedHeaders=${this.getCanonicalHeaderList(x)}, Signature=${v}`,p}async getSignature(n,r,i,s){let o=await this.createStringToSign(n,r,s,Rd),a=new this.sha256(await i);return a.update(Rr(o)),ft(await a.digest())}getSigningKey(n,r,i,s){return oR(this.sha256,n,i,r,s||this.service)}};c();var ox={SignatureV4a:null};c();var fR="Directory",mR="S3Express",hR="sigv4-s3express",Pd="X-Amz-S3session-Token",Ou=Pd.toLowerCase();var Fu=class extends to{async signWithCredentials(t,n,r){let i=gR(n);t.headers[Ou]=n.sessionToken;let s=this;return yR(s,i),s.signRequest(t,r!=null?r:{})}async presignWithCredentials(t,n,r){var o;let i=gR(n);return delete t.headers[Ou],t.headers[Pd]=n.sessionToken,t.query=(o=t.query)!=null?o:{},t.query[Pd]=n.sessionToken,yR(this,i),this.presign(t,r)}};function gR(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function yR(e,t){let n=setTimeout(()=>{throw new Error("SignatureV4S3Express credential override was created but not called.")},10),r=e.credentialProvider,i=()=>(clearTimeout(n),e.credentialProvider=r,Promise.resolve(t));e.credentialProvider=i}c();var xR=e=>(t,n)=>async r=>{var i,s,o,a,l;if(n.endpointV2){let u=n.endpointV2,p=((o=(s=(i=u.properties)==null?void 0:i.authSchemes)==null?void 0:s[0])==null?void 0:o.name)===hR;if((((a=u.properties)==null?void 0:a.backend)===mR||((l=u.properties)==null?void 0:l.bucketType)===fR)&&(ut(n,"S3_EXPRESS_BUCKET","J"),n.isS3ExpressBucket=!0),p){let f=r.input.Bucket;if(f){let m=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:f});n.s3ExpressIdentity=m,we.isInstance(r.request)&&m.sessionToken&&(r.request.headers[Ou]=m.sessionToken)}}}return t(r)},vR={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},ax=e=>({applyToStack:t=>{t.add(xR(e),vR)}});c();c();c();var bR=(e,t)=>{if(!t||t.length===0)return e;let n=[];for(let r of t)for(let i of e)i.schemeId.split("#")[1]===r&&n.push(i);for(let r of e)n.find(({schemeId:i})=>i===r.schemeId)||n.push(r);return n};function VX(e){let t=new Map;for(let n of e)t.set(n.schemeId,n);return t}var _R=(e,t)=>(n,r)=>async i=>{var d;let s=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,r,i.input)),o=e.authSchemePreference?await e.authSchemePreference():[],a=bR(s,o),l=VX(e.httpAuthSchemes),u=hn(r),p=[];for(let f of a){let m=l.get(f.schemeId);if(!m){p.push(`HttpAuthScheme \`${f.schemeId}\` was not enabled for this service.`);continue}let g=m.identityProvider(await t.identityProviderConfigProvider(e));if(!g){p.push(`HttpAuthScheme \`${f.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:x={},signingProperties:v={}}=((d=f.propertiesExtractor)==null?void 0:d.call(f,e,r))||{};f.identityProperties=Object.assign(f.identityProperties||{},x),f.signingProperties=Object.assign(f.signingProperties||{},v),u.selectedHttpAuthScheme={httpAuthOption:f,identity:await g(f.identityProperties),signer:m.signer};break}if(!u.selectedHttpAuthScheme)throw new Error(p.join(` +`));return n(i)};c();var WX={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},wR=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:r=>{r.addRelativeTo(_R(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),WX)}});c();var KX=e=>t=>{throw t},YX=(e,t)=>{},ER=e=>(t,n)=>async r=>{if(!we.isInstance(r.request))return t(r);let s=hn(n).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:o={}},identity:a,signer:l}=s,u=await t({...r,request:await l.sign(r.request,a,o)}).catch((l.errorHandler||KX)(o));return(l.successHandler||YX)(u.response,o),u};c();var cx={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},DR=e=>({applyToStack:t=>{t.addRelativeTo(ER(e),cx)}});c();var Ci=e=>{if(typeof e=="function")return e;let t=Promise.resolve(e);return()=>t};c();function SR(e,t,n){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=n}c();var Nd=class{constructor(t){C(this,"authSchemes",new Map);for(let n in t){let r=t[n];r!==void 0&&this.authSchemes.set(n,r)}}getIdentityProvider(t){return this.authSchemes.get(t)}};c();var XX=e=>function(n){return ux(n)&&n.expiration.getTime()-Date.now()e.expiration!==void 0,TR=(e,t,n)=>{if(e===void 0)return;let r=typeof e!="function"?async()=>Promise.resolve(e):e,i,s,o,a=!1,l=async u=>{s||(s=r(u));try{i=await s,o=!0,a=!1}finally{s=void 0}return i};return t===void 0?async u=>((!o||u!=null&&u.forceRefresh)&&(i=await l(u)),i):async u=>((!o||u!=null&&u.forceRefresh)&&(i=await l(u)),a?i:n(i)?(t(i)&&await l(u),i):(a=!0,i))};c();var AR=async(e,t,n,r)=>{let i=await r.signWithCredentials(n,e,{});if(i.headers["X-Amz-Security-Token"]||i.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.");return i};var ZX=e=>t=>{throw t},QX=(e,t)=>{};var RR=e=>(t,n)=>async r=>{if(!we.isInstance(r.request))return t(r);let s=hn(n).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:o={}},identity:a,signer:l}=s,u;n.s3ExpressIdentity?u=await AR(n.s3ExpressIdentity,o,r.request,await e.signer()):u=await l.sign(r.request,a,o);let p=await t({...r,request:u}).catch((l.errorHandler||ZX)(o));return(l.successHandler||QX)(p.response,o),p},lx=e=>({applyToStack:t=>{t.addRelativeTo(RR(e),cx)}});c();var kR=(e,{session:t})=>{let[n,r]=t,{forcePathStyle:i,useAccelerateEndpoint:s,disableMultiregionAccessPoints:o,followRegionRedirects:a,s3ExpressIdentityProvider:l,bucketEndpoint:u,expectContinueHeader:p}=e;return Object.assign(e,{forcePathStyle:i!=null?i:!1,useAccelerateEndpoint:s!=null?s:!1,disableMultiregionAccessPoints:o!=null?o:!1,followRegionRedirects:a!=null?a:!1,s3ExpressIdentityProvider:l!=null?l:new Ru(async d=>n().send(new r({Bucket:d}))),bucketEndpoint:u!=null?u:!1,expectContinueHeader:p!=null?p:2097152})};c();var JX={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},eZ=3e3,tZ=e=>(t,n)=>async r=>{let i=await t(r),{response:s}=i;if(!Vt.isInstance(s))return i;let{statusCode:o,body:a}=s;if(o<200||o>=300||!(typeof(a==null?void 0:a.stream)=="function"||typeof(a==null?void 0:a.pipe)=="function"||typeof(a==null?void 0:a.tee)=="function"))return i;let u=a,p=a;a&&typeof a=="object"&&!(a instanceof Uint8Array)&&([u,p]=await U2(a)),s.body=p;let d=await nZ(u,{streamCollector:async m=>B2(m,eZ)});typeof(u==null?void 0:u.destroy)=="function"&&u.destroy();let f=e.utf8Encoder(d.subarray(d.length-16));if(d.length===0&&JX[n.commandName]){let m=new Error("S3 aborted request");throw m.name="InternalError",m}return f&&f.endsWith("")&&(s.statusCode=400),i},nZ=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),rZ={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},Dt=e=>({applyToStack:t=>{t.addRelativeTo(tZ(e),rZ)}});c();c();var OR=e=>typeof e=="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6;c();function FR(e){return(t,n)=>async r=>{var i,s,o,a;if(e.bucketEndpoint){let l=n.endpointV2;if(l){let u=r.input.Bucket;if(typeof u=="string")try{let p=new URL(u);n.endpointV2={...l,url:p}}catch(p){let d=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${u} could not be parsed as URL.`;throw((s=(i=n.logger)==null?void 0:i.constructor)==null?void 0:s.name)==="NoOpLogger"?console.warn(d):(a=(o=n.logger)==null?void 0:o.warn)==null||a.call(o,d),p}}}return t(r)}}var BR={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function iZ({bucketEndpoint:e}){return t=>async n=>{let{input:{Bucket:r}}=n;if(!e&&typeof r=="string"&&!OR(r)&&r.indexOf("/")>=0){let i=new Error(`Bucket name shouldn't contain '/', received '${r}'`);throw i.name="InvalidBucketName",i}return t({...n})}}var sZ={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},IR=e=>({applyToStack:t=>{t.add(iZ(e),sZ),t.addRelativeTo(FR(e),BR)}});c();c();var PR=typeof TextEncoder=="function"?new TextEncoder:null,NR=e=>{if(typeof e=="string"){if(PR)return PR.encode(e).byteLength;let t=e.length;for(let n=t-1;n>=0;n--){let r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&n--}return t}else{if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size}throw new Error(`Body Length computation failed for ${e}`)};c();var Md=class{constructor(t=!1){C(this,"queryCompat");C(this,"errorRegistry");this.queryCompat=t}resolveRestContentType(t,n){let r=n.getMemberSchemas(),i=Object.values(r).find(s=>!!s.getMergedTraits().httpPayload);if(i){let s=i.getMergedTraits().mediaType;return s||(i.isStringSchema()?"text/plain":i.isBlobSchema()?"application/octet-stream":t)}else if(!n.isUnitSchema()&&Object.values(r).find(o=>{let{httpQuery:a,httpQueryParams:l,httpHeader:u,httpLabel:p,httpPrefixHeaders:d}=o.getMergedTraits();return!a&&!l&&!u&&!p&&d===void 0}))return t}async getErrorSchemaOrThrowBaseException(t,n,r,i,s,o){var u,p,d,f,m,g,x,v,_;let a=t;t.includes("#")&&([,a]=t.split("#"));let l={$metadata:s,$fault:r.statusCode<500?"client":"server"};if(!this.errorRegistry)throw new Error("@aws-sdk/core/protocols - error handler not initialized.");try{return{errorSchema:(u=o==null?void 0:o(this.errorRegistry,a))!=null?u:this.errorRegistry.getSchema(t),errorMetadata:l}}catch(w){i.message=(d=(p=i.message)!=null?p:i.Message)!=null?d:"UnknownError";let E=this.errorRegistry,S=E.getBaseException();if(S){let I=(f=E.getErrorCtor(S))!=null?f:Error;throw this.decorateServiceException(Object.assign(new I({name:a}),l),i)}let A=i,k=(_=(x=(m=A==null?void 0:A.message)!=null?m:A==null?void 0:A.Message)!=null?x:(g=A==null?void 0:A.Error)==null?void 0:g.Message)!=null?_:(v=A==null?void 0:A.Error)==null?void 0:v.message;throw this.decorateServiceException(Object.assign(new Error(k),{name:a},l),i)}}compose(t,n,r){let i=r;n.includes("#")&&([i]=n.split("#"));let s=Qr.for(i),o=Qr.for("smithy.ts.sdk.synthetic."+r);t.copyFrom(s),t.copyFrom(o),this.errorRegistry=t}decorateServiceException(t,n={}){var r,i,s,o,a,l,u,p;if(this.queryCompat){let d=(r=t.Message)!=null?r:n.Message,f=K0(t,n);d&&(f.message=d);let m=(i=f.Error)!=null?i:{};m.Type=(s=f.Error)==null?void 0:s.Type,m.Code=(o=f.Error)==null?void 0:o.Code,m.Message=(p=(u=(a=f.Error)==null?void 0:a.message)!=null?u:(l=f.Error)==null?void 0:l.Message)!=null?p:d,f.Error=m;let g=f.$metadata.requestId;return g&&(f.RequestId=g),f}return K0(t,n)}setQueryCompatError(t,n){var i;let r=(i=n.headers)==null?void 0:i["x-amzn-query-error"];if(t!==void 0&&r!=null){let[s,o]=r.split(";"),a=Object.keys(t),l={Code:s,Type:o};t.Code=s,t.Type=o;for(let u=0;u{var s;return((s=Ce.of(i).getMergedTraits().awsQueryError)==null?void 0:s[0])===n})}}};c();var ss=class{constructor(){C(this,"serdeContext")}setSerdeContext(t){this.serdeContext=t}};c();var Ld=class{constructor(t,n){C(this,"from");C(this,"to");C(this,"keys");this.from=t,this.to=n;let r=Object.keys(this.from),i=new Set(r);i.delete("__type"),this.keys=i}mark(t){this.keys.delete(t)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let t=this.keys.values().next().value,n=this.from[t];this.to.$unknown=[t,n]}}};c();c();c();c();var oZ=/[&<>"]/g,aZ={"&":"&","<":"<",">":">",'"':"""};function MR(e){return e.replace(oZ,t=>aZ[t])}c();c();var cZ=/[&"'<>\r\n\u0085\u2028]/g,uZ={"&":"&",'"':""","'":"'","<":"<",">":">","\r":" ","\n":" ","\x85":"…","\u2028":"
"};function LR(e){return e.replace(cZ,t=>uZ[t])}var no=class{constructor(t){C(this,"value");this.value=t}toString(){return LR(""+this.value)}};var Pn=class e{constructor(t,n=[]){C(this,"name");C(this,"children");C(this,"attributes",{});this.name=t,this.children=n}static of(t,n,r){let i=new e(t);return n!==void 0&&i.addChildNode(new no(n)),r!==void 0&&i.withName(r),i}withName(t){return this.name=t,this}addAttribute(t,n){return this.attributes[t]=n,this}addChildNode(t){return this.children.push(t),this}removeAttribute(t){return delete this.attributes[t],this}n(t){return this.name=t,this}c(t){return this.children.push(t),this}a(t,n){return n!=null&&(this.attributes[t]=n),this}cc(t,n,r=n){if(t[n]!=null){let i=e.of(n,t[n]).withName(r);this.c(i)}}l(t,n,r,i){t[n]!=null&&i().map(o=>{o.withName(r),this.c(o)})}lc(t,n,r,i){if(t[n]!=null){let s=i(),o=new e(r);s.map(a=>{o.c(a)}),this.c(o)}}toString(){let t=!!this.children.length,n=`<${this.name}`,r=this.attributes;for(let i of Object.keys(r)){let s=r[i];s!=null&&(n+=` ${i}="${MR(""+s)}"`)}return n+=t?`>${this.children.map(i=>i.toString()).join("")}`:"/>"}};c();var px;function dx(e){px||(px=new DOMParser);let t=px.parseFromString(e,"application/xml");if(t.getElementsByTagName("parsererror").length>0)throw new Error("DOMParser XML parsing error.");let n=r=>{var i;if(r.nodeType===Node.TEXT_NODE&&(i=r.textContent)!=null&&i.trim())return r.textContent;if(r.nodeType===Node.ELEMENT_NODE){let s=r;if(s.attributes.length===0&&s.childNodes.length===0)return"";let o={},a=Array.from(s.attributes);for(let u of a)o[`${u.name}`]=u.value;let l=Array.from(s.childNodes);for(let u of l){let p=n(u);if(p!=null){let d=u.nodeName;if(l.length===1&&a.length===0&&d==="#text")return p;o[d]?Array.isArray(o[d])?o[d].push(p):o[d]=[o[d],p]:o[d]=p}else if(l.length===1&&a.length===0)return s.textContent}return o}return null};return{[t.documentElement.nodeName]:n(t.documentElement)}}Zt();var $d=class extends ss{constructor(n){super();C(this,"settings");C(this,"stringDeserializer");this.settings=n,this.stringDeserializer=new xa(n)}setSerdeContext(n){this.serdeContext=n,this.stringDeserializer.setSerdeContext(n)}read(n,r,i){var p,d;let s=Ce.of(n),o=s.getMemberSchemas();if(s.isStructSchema()&&s.isMemberSchema()&&!!Object.values(o).find(f=>!!f.getMemberTraits().eventPayload)){let f={},m=Object.keys(o)[0];return o[m].isBlobSchema()?f[m]=r:f[m]=this.read(o[m],r),f}let l=((d=(p=this.serdeContext)==null?void 0:p.utf8Encoder)!=null?d:In)(r),u=this.parseXml(l);return this.readSchema(n,i?u[i]:u)}readSchema(n,r){var o,a,l,u,p,d;let i=Ce.of(n);if(i.isUnitSchema())return;let s=i.getMergedTraits();if(i.isListSchema()&&!Array.isArray(r))return this.readSchema(i,[r]);if(r==null)return r;if(typeof r=="object"){let f=!!s.xmlFlattened;if(i.isListSchema()){let g=i.getValueSchema(),x=[],v=(o=g.getMergedTraits().xmlName)!=null?o:"member",_=f?r:((a=r[0])!=null?a:r)[v];if(_==null)return x;let w=Array.isArray(_)?_:[_];for(let E of w)x.push(this.readSchema(g,E));return x}let m={};if(i.isMapSchema()){let g=i.getKeySchema(),x=i.getValueSchema(),v;f?v=Array.isArray(r)?r:[r]:v=Array.isArray(r.entry)?r.entry:[r.entry];let _=(l=g.getMergedTraits().xmlName)!=null?l:"key",w=(u=x.getMergedTraits().xmlName)!=null?u:"value";for(let E of v){let S=E[_],A=E[w];m[S]=this.readSchema(x,A)}return m}if(i.isStructSchema()){let g=i.isUnionSchema(),x;g&&(x=new Ld(r,m));for(let[v,_]of i.structIterator()){let w=_.getMergedTraits(),E=w.httpPayload?(d=w.xmlName)!=null?d:_.getName():(p=_.getMemberTraits().xmlName)!=null?p:v;g&&x.mark(E),r[E]!=null&&(m[v]=this.readSchema(_,r[E]))}return g&&x.writeUnknown(),m}if(i.isDocumentSchema())return r;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${i.getName(!0)}`)}return i.isListSchema()?[]:i.isMapSchema()||i.isStructSchema()?{}:this.stringDeserializer.read(i,r)}parseXml(n){if(n.length){let r;try{r=dx(n)}catch(a){throw a&&typeof a=="object"&&Object.defineProperty(a,"$responseBodyText",{value:n}),a}let i="#text",s=Object.keys(r)[0],o=r[s];return o[i]&&(o[s]=o[i],delete o[i]),Y0(o)}return{}}};c();c();var $R=(e,t)=>{var n;if(((n=t==null?void 0:t.Error)==null?void 0:n.Code)!==void 0)return t.Error.Code;if((t==null?void 0:t.Code)!==void 0)return t.Code;if(e.statusCode==404)return"NotFound"};c();c();var Ud=class extends ss{constructor(n){super();C(this,"settings");C(this,"stringBuffer");C(this,"byteBuffer");C(this,"buffer");this.settings=n}write(n,r){var s,o;let i=Ce.of(n);if(i.isStringSchema()&&typeof r=="string")this.stringBuffer=r;else if(i.isBlobSchema())this.byteBuffer="byteLength"in r?r:((o=(s=this.serdeContext)==null?void 0:s.base64Decoder)!=null?o:Ar)(r);else{this.buffer=this.writeStruct(i,r,void 0);let a=i.getMergedTraits();a.httpPayload&&!a.xmlName&&this.buffer.withName(i.getName())}}flush(){var r;if(this.byteBuffer!==void 0){let i=this.byteBuffer;return delete this.byteBuffer,i}if(this.stringBuffer!==void 0){let i=this.stringBuffer;return delete this.stringBuffer,i}let n=this.buffer;return this.settings.xmlNamespace&&((r=n==null?void 0:n.attributes)!=null&&r.xmlns||n.addAttribute("xmlns",this.settings.xmlNamespace)),delete this.buffer,n.toString()}writeStruct(n,r,i){var d,f,m,g;let s=n.getMergedTraits(),o=n.isMemberSchema()&&!s.httpPayload?(d=n.getMemberTraits().xmlName)!=null?d:n.getMemberName():(f=s.xmlName)!=null?f:n.getName();if(!o||!n.isStructSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${n.getName(!0)}.`);let a=Pn.of(o),[l,u]=this.getXmlnsAttribute(n,i);for(let[x,v]of n.structIterator()){let _=r[x];if(_!=null||v.isIdempotencyToken()){if(v.getMergedTraits().xmlAttribute){a.addAttribute((m=v.getMergedTraits().xmlName)!=null?m:x,this.writeSimple(v,_));continue}if(v.isListSchema())this.writeList(v,_,a,u);else if(v.isMapSchema())this.writeMap(v,_,a,u);else if(v.isStructSchema())a.addChildNode(this.writeStruct(v,_,u));else{let w=Pn.of((g=v.getMergedTraits().xmlName)!=null?g:v.getMemberName());this.writeSimpleInto(v,_,w,u),a.addChildNode(w)}}}let{$unknown:p}=r;if(p&&n.isUnionSchema()&&Array.isArray(p)&&Object.keys(r).length===1){let[x,v]=p,_=Pn.of(x);if(typeof v!="string")if(r instanceof Pn||r instanceof no)a.addChildNode(r);else throw new Error("@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.");this.writeSimpleInto(0,v,_,u),a.addChildNode(_)}return u&&a.addAttribute(l,u),a}writeList(n,r,i,s){var g;if(!n.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${n.getName(!0)}`);let o=n.getMergedTraits(),a=n.getValueSchema(),l=a.getMergedTraits(),u=!!l.sparse,p=!!o.xmlFlattened,[d,f]=this.getXmlnsAttribute(n,s),m=(x,v)=>{var _,w,E,S;if(a.isListSchema())this.writeList(a,Array.isArray(v)?v:[v],x,f);else if(a.isMapSchema())this.writeMap(a,v,x,f);else if(a.isStructSchema()){let A=this.writeStruct(a,v,f);x.addChildNode(A.withName(p?(_=o.xmlName)!=null?_:n.getMemberName():(w=l.xmlName)!=null?w:"member"))}else{let A=Pn.of(p?(E=o.xmlName)!=null?E:n.getMemberName():(S=l.xmlName)!=null?S:"member");this.writeSimpleInto(a,v,A,f),x.addChildNode(A)}};if(p)for(let x of r)(u||x!=null)&&m(i,x);else{let x=Pn.of((g=o.xmlName)!=null?g:n.getMemberName());f&&x.addAttribute(d,f);for(let v of r)(u||v!=null)&&m(x,v);i.addChildNode(x)}}writeMap(n,r,i,s,o=!1){var E,S,A,k;if(!n.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${n.getName(!0)}`);let a=n.getMergedTraits(),l=n.getKeySchema(),p=(E=l.getMergedTraits().xmlName)!=null?E:"key",d=n.getValueSchema(),f=d.getMergedTraits(),m=(S=f.xmlName)!=null?S:"value",g=!!f.sparse,x=!!a.xmlFlattened,[v,_]=this.getXmlnsAttribute(n,s),w=(I,M,U)=>{let $=Pn.of(p,M),[W,le]=this.getXmlnsAttribute(l,_);le&&$.addAttribute(W,le),I.addChildNode($);let J=Pn.of(m);d.isListSchema()?this.writeList(d,U,J,_):d.isMapSchema()?this.writeMap(d,U,J,_,!0):d.isStructSchema()?J=this.writeStruct(d,U,_):this.writeSimpleInto(d,U,J,_),I.addChildNode(J)};if(x)for(let I in r){let M=r[I];if(g||M!=null){let U=Pn.of((A=a.xmlName)!=null?A:n.getMemberName());w(U,I,M),i.addChildNode(U)}}else{let I;o||(I=Pn.of((k=a.xmlName)!=null?k:n.getMemberName()),_&&I.addAttribute(v,_),i.addChildNode(I));for(let M in r){let U=r[M];if(g||U!=null){let $=Pn.of("entry");w($,M,U),(o?i:I).addChildNode($)}}}}writeSimple(n,r){var o,a;if(r===null)throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");let i=Ce.of(n),s=null;if(r&&typeof r=="object")if(i.isBlobSchema())s=((a=(o=this.serdeContext)==null?void 0:o.base64Encoder)!=null?a:Wn)(r);else if(i.isTimestampSchema()&&r instanceof Date)switch(ya(i,this.settings)){case 5:s=r.toISOString().replace(".000Z","Z");break;case 6:s=Au(r);break;case 7:s=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",r),s=Au(r);break}else{if(i.isBigDecimalSchema()&&r)return r instanceof ga?r.string:String(r);throw i.isMapSchema()||i.isListSchema()?new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."):new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${i.getName(!0)}`)}if((i.isBooleanSchema()||i.isNumericSchema()||i.isBigIntegerSchema()||i.isBigDecimalSchema())&&(s=String(r)),i.isStringSchema()&&(r===void 0&&i.isIdempotencyToken()?s=eo():s=String(r)),s===null)throw new Error(`Unhandled schema-value pair ${i.getName(!0)}=${r}`);return s}writeSimpleInto(n,r,i,s){let o=this.writeSimple(n,r),a=Ce.of(n),l=new no(o),[u,p]=this.getXmlnsAttribute(a,s);p&&i.addAttribute(u,p),i.addChildNode(l)}getXmlnsAttribute(n,r){var a;let i=n.getMergedTraits(),[s,o]=(a=i.xmlNamespace)!=null?a:[];return o&&o!==r?[s?`xmlns:${s}`:"xmlns",o]:[void 0,void 0]}};var jd=class extends ss{constructor(n){super();C(this,"settings");this.settings=n}createSerializer(){let n=new Ud(this.settings);return n.setSerdeContext(this.serdeContext),n}createDeserializer(){let n=new $d(this.settings);return n.setSerdeContext(this.serdeContext),n}};var zd=class extends vd{constructor(n){super(n);C(this,"codec");C(this,"serializer");C(this,"deserializer");C(this,"mixin",new Md);let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:n.xmlNamespace,serviceNamespace:n.defaultNamespace};this.codec=new jd(r),this.serializer=new wd(this.codec.createSerializer(),r),this.deserializer=new bd(this.codec.createDeserializer(),r),this.compositeErrorRegistry}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(n,r,i){let s=await super.serializeRequest(n,r,i),o=Ce.of(n.input);if(!s.headers["content-type"]){let a=this.mixin.resolveRestContentType(this.getDefaultContentType(),o);a&&(s.headers["content-type"]=a)}return typeof s.body=="string"&&s.headers["content-type"]===this.getDefaultContentType()&&!s.body.startsWith("'+s.body),s}async deserializeResponse(n,r,i){return super.deserializeResponse(n,r,i)}async handleError(n,r,i,s,o){var v,_,w,E,S,A,k,I,M,U,$;let a=(v=$R(i,s))!=null?v:"Unknown";if(this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace),s.Error&&typeof s.Error=="object")for(let W of Object.keys(s.Error))s[W]=s.Error[W],W.toLowerCase()==="message"&&(s.message=s.Error[W]);s.RequestId&&!o.requestId&&(o.requestId=s.RequestId);let{errorSchema:l,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,i,s,o),p=Ce.of(l),d=(k=(A=(S=(E=(_=s.Error)==null?void 0:_.message)!=null?E:(w=s.Error)==null?void 0:w.Message)!=null?S:s.message)!=null?A:s.Message)!=null?k:"UnknownError",f=(I=this.compositeErrorRegistry.getErrorCtor(l))!=null?I:Error,m=new f(d);await this.deserializeHttpMessage(l,r,i,s);let g={},x=this.codec.createDeserializer();for(let[W,le]of p.structIterator()){let J=(M=le.getMergedTraits().xmlName)!=null?M:W,me=($=(U=s.Error)==null?void 0:U[J])!=null?$:s[J];g[W]=x.readSchema(le,me)}throw this.mixin.decorateServiceException(Object.assign(m,u,{$fault:p.getMergedTraits().error,message:d},g),s)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(n){for(let[,r]of n.structIterator())if(r.getMergedTraits().httpPayload)return!(r.isStructSchema()||r.isMapSchema()||r.isListSchema());return!1}};var Bu=class extends zd{async serializeRequest(t,n,r){var u;let i=await super.serializeRequest(t,n,r),s=Ce.of(t.input),o=s.getSchema(),a=0,l=(u=o[6])!=null?u:0;if(n&&typeof n=="object")for(let[p,d]of s.structIterator()){if(++a>l)break;if(p==="Bucket"){if(!n.Bucket&&d.getMergedTraits().httpLabel)throw new Error("No value provided for input HTTP label: Bucket.");break}}return i}};c();var lZ=void 0;function pZ(e){return e===void 0?!0:typeof e=="string"&&e.length<=50}function UR(e){var r;let t=Ci((r=e.userAgentAppId)!=null?r:lZ),{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n=="string"?[[n]]:n,userAgentAppId:async()=>{var s,o;let i=await t();if(!pZ(i)){let a=((o=(s=e.logger)==null?void 0:s.constructor)==null?void 0:o.name)==="NoOpLogger"||!e.logger?console:e.logger;typeof i!="string"?a==null||a.warn("userAgentAppId must be a string or undefined."):i.length>50&&(a==null||a.warn("The provided userAgentAppId exceeds the maximum length of 50 characters."))}return i}})}c();c();c();c();c();var Iu=class e{constructor(t,n,r,i){C(this,"nodes");C(this,"root");C(this,"conditions");C(this,"results");this.nodes=t,this.root=n,this.conditions=r,this.results=i}static from(t,n,r,i){return new e(t,n,r,i)}};c();var qd=class{constructor({size:t,params:n}){C(this,"capacity");C(this,"data",new Map);C(this,"parameters",[]);this.capacity=t!=null?t:50,n&&(this.parameters=n)}get(t,n){let r=this.hash(t);if(r===!1)return n();if(!this.data.has(r)){if(this.data.size>this.capacity+10){let i=this.data.keys(),s=0;for(;;){let{value:o,done:a}=i.next();if(this.data.delete(o),a||++s>10)break}}this.data.set(r,n())}return this.data.get(r)}size(){return this.data.size}hash(t){var i;let n="",{parameters:r}=this;if(r.length===0)return!1;for(let s of r){let o=String((i=t[s])!=null?i:"");if(o.includes("|;"))return!1;n+=o+"|;"}return n}};c();c();var vt=class extends Error{constructor(t){super(t),this.name="EndpointError"}};c();c();var jR="endpoints";c();function Pu(e){return typeof e!="object"||e==null?e:"ref"in e?`$${Pu(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(Pu).join(", ")})`:JSON.stringify(e,null,2)}c();c();c();var ba={};c();c();var zR=(e,t)=>e===t;c();function qR(...e){for(let t of e)if(t!=null)return t}c();c();var HR=e=>{let t=e.split("."),n=[];for(let r of t){let i=r.indexOf("[");if(i!==-1){if(r.indexOf("]")!==r.length-1)throw new vt(`Path: '${e}' does not end with ']'`);let s=r.slice(i+1,-1);if(Number.isNaN(parseInt(s)))throw new vt(`Invalid array index: '${s}' in path: '${e}'`);i!==0&&n.push(r.slice(0,i)),n.push(s)}else n.push(r)}return n};var Hd=(e,t)=>HR(t).reduce((n,r)=>{if(typeof n!="object")throw new vt(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);if(Array.isArray(n)){let i=parseInt(r);return n[i<0?n.length+i:i]}return n[r]},e);c();var GR=e=>e!=null;c();var dZ=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),ro=(e,t=!1)=>{if(!t)return dZ.test(e);let n=e.split(".");for(let r of n)if(!ro(r))return!1;return!0};c();function VR(e,t,n){return e?t:n}c();var WR=e=>!e;c();c();var fZ=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),Nu=e=>fZ.test(e)||e.startsWith("[")&&e.endsWith("]");var fx={[da.HTTP]:80,[da.HTTPS]:443},KR=e=>{let t=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){let{hostname:f,port:m,protocol:g="",path:x="",query:v={}}=e,_=new URL(`${g}//${f}${m?`:${m}`:""}${x}`);return _.search=Object.entries(v).map(([w,E])=>`${w}=${E}`).join("&"),_}return new URL(e)}catch(f){return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let n=t.href,{host:r,hostname:i,pathname:s,protocol:o,search:a}=t;if(a)return null;let l=o.slice(0,-1);if(!Object.values(da).includes(l))return null;let u=Nu(i),p=n.includes(`${r}:${fx[l]}`)||typeof e=="string"&&e.includes(`${r}:${fx[l]}`),d=`${r}${p?`:${fx[l]}`:""}`;return{scheme:l,authority:d,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:u}};c();function YR(e,t,n){if(n===1)return[e];if(e==="")return[""];let r=e.split(t);return n===0?r:r.slice(0,n-1).concat(r.slice(1).join(t))}c();var XR=(e,t)=>e===t;c();var ZR=(e,t,n,r)=>e==null||t>=n||e.lengthencodeURIComponent(e).replace(/[!*'()]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`);var JR={booleanEquals:zR,coalesce:qR,getAttr:Hd,isSet:GR,isValidHostLabel:ro,ite:VR,not:WR,parseURL:KR,split:YR,stringEquals:XR,substring:ZR,uriEncode:QR};c();var Gd=(e,t)=>{var o,a;let n=[],{referenceRecord:r,endpointParams:i}=t,s=0;for(;s{var n;return(n=t.referenceRecord[e])!=null?n:t.endpointParams[e]};var io=(e,t,n)=>{if(typeof e=="string")return Gd(e,n);if(e.fn)return t3.callFunction(e,n);if(e.ref)return e3(e,n);throw new vt(`'${t}': ${String(e)} is not a string, function or reference.`)},Vd=({fn:e,argv:t},n)=>{let r=Array(t.length);for(let o=0;o{var s,o;let{assign:n}=e;if(n&&n in t.referenceRecord)throw new vt(`'${n}' is already defined in Reference Record.`);let r=Vd(e,t);(o=(s=t.logger)==null?void 0:s.debug)==null||o.call(s,`${jR} evaluateCondition: ${Pu(e)} = ${Pu(r)}`);let i=r===""?!0:!!r;return n!=null?{result:i,toAssign:{name:n,value:r}}:{result:i}};c();var r3=(e,t)=>Object.entries(e!=null?e:{}).reduce((n,[r,i])=>(n[r]=i.map(s=>{let o=io(s,"Header value entry",t);if(typeof o!="string")throw new vt(`Header '${r}' value '${o}' is not a string`);return o}),n),{});c();var mx=(e,t)=>Object.entries(e).reduce((n,[r,i])=>(n[r]=s3.getEndpointProperty(i,t),n),{}),i3=(e,t)=>{if(Array.isArray(e))return e.map(n=>i3(n,t));switch(typeof e){case"string":return Gd(e,t);case"object":if(e===null)throw new vt(`Unexpected endpoint property: ${e}`);return s3.getEndpointProperties(e,t);case"boolean":return e;default:throw new vt(`Unexpected endpoint property type: ${typeof e}`)}},s3={getEndpointProperty:i3,getEndpointProperties:mx};c();var o3=(e,t)=>{let n=io(e,"Endpoint URL",t);if(typeof n=="string")try{return new URL(n)}catch(r){throw console.error(`Failed to construct URL with ${n}`,r),r}throw new vt(`Endpoint URL must be a string, got ${typeof n}`)};var hx=1e8,gx=(e,t)=>{let{nodes:n,root:r,results:i,conditions:s}=e,o=r,a={},l={referenceRecord:a,endpointParams:t.endpointParams,logger:t.logger};for(;o!==1&&o!==-1&&o=0===v.result?d:f}if(o>=hx){let u=i[o-hx];if(u[0]===-1){let[,m]=u;throw new vt(io(m,"Error",l))}let[p,d,f]=u;return{url:o3(p,l),properties:mx(d,l),headers:r3(f!=null?f:{},l)}}throw new vt("No matching endpoint.")};c();c();var yx=(e,t=!1)=>{if(t){for(let n of e.split("."))if(!yx(n))return!1;return!0}return!(!ro(e)||e.length<3||e.length>63||e!==e.toLowerCase()||Nu(e))};c();var a3=e=>{let t=e.split(":");if(t.length<6)return null;let[n,r,i,s,o,...a]=t;if(n!=="arn"||r===""||i===""||a.join(":")==="")return null;let l=a.map(u=>u.split("/")).flat();return{partition:r,service:i,region:s,accountId:o,resourceId:l}};c();var c3={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],version:"1.1"};var hZ=c3,gZ="",u3=e=>{let{partitions:t}=hZ;for(let r of t){let{regions:i,outputs:s}=r;for(let[o,a]of Object.entries(i))if(o===e)return{...s,...a}}for(let r of t){let{regionRegex:i,outputs:s}=r;if(new RegExp(i).test(e))return{...s}}let n=t.find(r=>r.id==="aws");if(!n)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...n.outputs}};var l3=()=>gZ;var xx={isVirtualHostableS3Bucket:yx,parseArn:a3,partition:u3};ba.aws=xx;c();c();c();c();c();c();c();c();c();c();c();c();var ur;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(ur||(ur={}));var os=3,vx=ur.STANDARD;c();c();c();var p3=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],d3=["TimeoutError","RequestTimeout","RequestTimeoutException"],f3=[500,502,503,504],m3=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],h3=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"];var yZ=e=>(e==null?void 0:e.$retryable)!==void 0;var xZ=e=>{var t;return(t=e.$metadata)==null?void 0:t.clockSkewCorrected},vZ=e=>{let t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return e&&e instanceof TypeError?t.has(e.message):!1},Wd=e=>{var t,n;return((t=e.$metadata)==null?void 0:t.httpStatusCode)===429||p3.includes(e.name)||((n=e.$retryable)==null?void 0:n.throttling)==!0},Kd=(e,t=0)=>{var n;return yZ(e)||xZ(e)||d3.includes(e.name)||m3.includes((e==null?void 0:e.code)||"")||h3.includes((e==null?void 0:e.code)||"")||f3.includes(((n=e.$metadata)==null?void 0:n.httpStatusCode)||0)||vZ(e)||bZ(e)||e.cause!==void 0&&t<=10&&Kd(e.cause,t+1)},g3=e=>{var t;if(((t=e.$metadata)==null?void 0:t.httpStatusCode)!==void 0){let n=e.$metadata.httpStatusCode;return 500<=n&&n<=599&&!Kd(e)}return!1};function bZ(e){return e.code==="ERR_HTTP2_STREAM_ERROR"&&e.message.includes("NGHTTP2_REFUSED_STREAM")}var Xd=class Xd{constructor(t){C(this,"beta");C(this,"minCapacity");C(this,"minFillRate");C(this,"scaleConstant");C(this,"smooth");C(this,"enabled",!1);C(this,"availableTokens",0);C(this,"lastMaxRate",0);C(this,"measuredTxRate",0);C(this,"requestCount",0);C(this,"fillRate");C(this,"lastThrottleTime");C(this,"lastTimestamp",0);C(this,"lastTxRateBucket");C(this,"maxCapacity");C(this,"timeWindow",0);var n,r,i,s,o;this.beta=(n=t==null?void 0:t.beta)!=null?n:.7,this.minCapacity=(r=t==null?void 0:t.minCapacity)!=null?r:1,this.minFillRate=(i=t==null?void 0:t.minFillRate)!=null?i:.5,this.scaleConstant=(s=t==null?void 0:t.scaleConstant)!=null?s:.4,this.smooth=(o=t==null?void 0:t.smooth)!=null?o:.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(t){var o;let n;this.updateMeasuredRate();let r=t;if((r==null?void 0:r.errorType)==="THROTTLING"||Wd((o=r==null?void 0:r.error)!=null?o:t)){let a=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=a,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),n=this.cubicThrottle(a),this.enableTokenBucket()}else this.calculateTimeWindow(),n=this.cubicSuccess(this.getCurrentTimeInSeconds());let s=Math.min(n,2*this.measuredTxRate);this.updateTokenBucketRate(s)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(t){if(this.enabled){if(this.refillTokenBucket(),t>this.availableTokens){let n=(t-this.availableTokens)/this.fillRate*1e3;await new Promise(r=>Xd.setTimeoutFn(r,n))}this.availableTokens=this.availableTokens-t}}refillTokenBucket(){let t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}let n=(t-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+n),this.lastTimestamp=t}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(t){return this.getPrecise(t*this.beta)}cubicSuccess(t){return this.getPrecise(this.scaleConstant*Math.pow(t-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(t){this.refillTokenBucket(),this.fillRate=Math.max(t,this.minFillRate),this.maxCapacity=Math.max(t,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let t=this.getCurrentTimeInSeconds(),n=Math.floor(t*2)/2;if(this.requestCount++,n>this.lastTxRateBucket){let r=this.requestCount/(n-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(r*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=n}}getPrecise(t){return parseFloat(t.toFixed(8))}};C(Xd,"setTimeoutFn",setTimeout);var Yd=Xd;c();c();var y3="amz-sdk-invocation-id",x3="amz-sdk-request";c();c();var v3,as=class as{static delay(){return as.v2026?50:100}static throttlingDelay(){return as.v2026?1e3:500}static cost(){return as.v2026?14:5}static throttlingCost(){return as.v2026?5:10}static modifiedCostType(){return as.v2026?"THROTTLING":"TRANSIENT"}};C(as,"v2026",typeof process!="undefined"&&((v3=process.env)==null?void 0:v3.SMITHY_NEW_RETRIES_2026)==="true");var Kn=as;var Zd=class{constructor(){C(this,"x",Kn.delay())}computeNextBackoffDelay(t){let i=Math.random()*Math.min(this.x*2**t,2e4);return Math.floor(i)}setDelayBase(t){this.x=t}};c();var Mu=class{constructor(t,n,r,i){C(this,"delay");C(this,"count");C(this,"cost");C(this,"longPoll");this.delay=t,this.count=n,this.cost=r,this.longPoll=i}getRetryCount(){return this.count}getRetryDelay(){return Math.min(2e4,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}};var so=class{constructor(t){C(this,"mode",ur.STANDARD);C(this,"capacity",500);C(this,"retryBackoffStrategy");C(this,"maxAttemptsProvider");C(this,"baseDelay");var n,r,i;typeof t=="number"?this.maxAttemptsProvider=async()=>t:typeof t=="function"?this.maxAttemptsProvider=t:t&&typeof t=="object"&&(this.maxAttemptsProvider=async()=>t.maxAttempts,this.baseDelay=t.baseDelay,this.retryBackoffStrategy=t.backoff),(n=this.maxAttemptsProvider)!=null||(this.maxAttemptsProvider=async()=>os),(r=this.baseDelay)!=null||(this.baseDelay=Kn.delay()),(i=this.retryBackoffStrategy)!=null||(this.retryBackoffStrategy=new Zd)}async acquireInitialRetryToken(t){return new Mu(Kn.delay(),0,void 0,Kn.v2026&&t.includes(":longpoll"))}async refreshRetryTokenForRetry(t,n){var s,o,a;let r=await this.getMaxAttempts(),i=this.shouldRetry(t,n,r);if(i||(s=t.isLongPoll)!=null&&s.call(t)){let l=n.errorType;this.retryBackoffStrategy.setDelayBase(l==="THROTTLING"?Kn.throttlingDelay():this.baseDelay);let u=this.retryBackoffStrategy.computeNextBackoffDelay(t.getRetryCount()),p=u;if(n.retryAfterHint instanceof Date&&(p=Math.max(u,Math.min(n.retryAfterHint.getTime()-Date.now(),u+5e3))),i){let d=this.getCapacityCost(l);return this.capacity-=d,new Mu(p,t.getRetryCount()+1,d,(a=(o=t.isLongPoll)==null?void 0:o.call(t))!=null?a:!1)}else throw Object.assign(new Error("No retry token available"),{$backoff:Kn.v2026?p:0})}throw new Error("No retry token available")}recordSuccess(t){var n;this.capacity=Math.min(500,this.capacity+((n=t.getRetryCost())!=null?n:1))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(t){return console.warn(`Max attempts provider could not resolve. Using default of ${os}`),os}}shouldRetry(t,n,r){return t.getRetryCount()+1=this.getCapacityCost(n.errorType)&&this.isRetryableError(n.errorType)}getCapacityCost(t){return t===Kn.modifiedCostType()?Kn.throttlingCost():Kn.cost()}isRetryableError(t){return t==="THROTTLING"||t==="TRANSIENT"}async maxAttempts(){return this.maxAttemptsProvider()}};var Qd=class{constructor(t,n){C(this,"mode",ur.ADAPTIVE);C(this,"rateLimiter");C(this,"standardRetryStrategy");let{rateLimiter:r}=n!=null?n:{};this.rateLimiter=r!=null?r:new Yd,this.standardRetryStrategy=n?new so({maxAttempts:typeof t=="number"?t:3,...n}):new so(t)}async acquireInitialRetryToken(t){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(t)}async refreshRetryTokenForRetry(t,n){return this.rateLimiter.updateClientSendingRate(n),this.standardRetryStrategy.refreshRetryTokenForRetry(t,n)}recordSuccess(t){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(t)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};var EZ=/\d{12}\.ddb/;async function b3(e,t,n){var s,o,a,l,u,p;let r=n.request;if(((s=r==null?void 0:r.headers)==null?void 0:s["smithy-protocol"])==="rpc-v2-cbor"&&ut(e,"PROTOCOL_RPC_V2_CBOR","M"),typeof t.retryStrategy=="function"){let d=await t.retryStrategy();if(typeof d.mode=="string")switch(d.mode){case ur.ADAPTIVE:ut(e,"RETRY_MODE_ADAPTIVE","F");break;case ur.STANDARD:ut(e,"RETRY_MODE_STANDARD","E");break}}if(typeof t.accountIdEndpointMode=="function"){let d=e.endpointV2;switch(String((o=d==null?void 0:d.url)==null?void 0:o.hostname).match(EZ)&&ut(e,"ACCOUNT_ID_ENDPOINT","O"),await((a=t.accountIdEndpointMode)==null?void 0:a.call(t))){case"disabled":ut(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":ut(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":ut(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let i=(u=(l=e.__smithy_context)==null?void 0:l.selectedHttpAuthScheme)==null?void 0:u.identity;if(i!=null&&i.$source){let d=i;d.accountId&&ut(e,"RESOLVED_ACCOUNT_ID","T");for(let[f,m]of Object.entries((p=d.$source)!=null?p:{}))ut(e,f,m)}}c();var bx="user-agent",Jd="x-amz-user-agent";var _3=/[^!$%&'*+\-.^_`|~\w]/g,w3=/[^!$%&'*+\-.^_`|~\w#]/g;c();function E3(e){let t="";for(let n in e){let r=e[n];if(t.length+r.length+1<=1024){t.length?t+=","+r:t+=r;continue}break}return t}var DZ=e=>(t,n)=>async r=>{var g,x,v,_;let{request:i}=r;if(!we.isInstance(i))return t(r);let{headers:s}=i,o=((g=n==null?void 0:n.userAgent)==null?void 0:g.map(ef))||[],a=(await e.defaultUserAgentProvider()).map(ef);await b3(n,e,r);let l=n;a.push(`m/${E3(Object.assign({},(x=n.__smithy_context)==null?void 0:x.features,(v=l.__aws_sdk_context)==null?void 0:v.features))}`);let u=((_=e==null?void 0:e.customUserAgent)==null?void 0:_.map(ef))||[],p=await e.userAgentAppId();p&&a.push(ef(["app",`${p}`]));let d=l3(),f=(d?[d]:[]).concat([...a,...o,...u]).join(" "),m=[...a.filter(w=>w.startsWith("aws-sdk-")),...u].join(" ");return e.runtime!=="browser"?(m&&(s[Jd]=s[Jd]?`${s[bx]} ${m}`:m),s[bx]=f):s[Jd]=f,t({...r,request:i})},ef=e=>{var o;let t=e[0].split("/").map(a=>a.replace(_3,"-")).join("/"),n=(o=e[1])==null?void 0:o.replace(w3,"-"),r=t.indexOf("/"),i=t.substring(0,r),s=t.substring(r+1);return i==="api"&&(s=s.toLowerCase()),[i,s,n].filter(a=>a&&a.length>0).reduce((a,l,u)=>{switch(u){case 0:return l;case 1:return`${a}/${l}`;default:return`${a}#${l}`}},"")},SZ={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},C3=e=>({applyToStack:t=>{t.add(DZ(e),SZ)}});c();var T3=!1;c();var A3=!1;c();c();var R3=new Set,k3=(e,t=ro)=>{if(!R3.has(e)&&!t(e))if(e==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw new Error(`Region not accepted: region="${e}" is not a valid hostname component.`);else R3.add(e)};c();c();var tf=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));var O3=e=>tf(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;var F3=e=>{let{region:t,useFipsEndpoint:n}=e;if(!t)throw new Error("Region is missing");return Object.assign(e,{region:async()=>{let r=typeof t=="function"?await t():t,i=O3(r);return k3(i),i},useFipsEndpoint:async()=>{let r=typeof t=="string"?t:await t();return tf(r)?!0:typeof n!="function"?Promise.resolve(!!n):n()}})};c();var B3=e=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)});c();var I3="content-length";function CZ(e){return t=>async n=>{let r=n.request;if(we.isInstance(r)){let{body:i,headers:s}=r;if(i&&Object.keys(s).map(o=>o.toLowerCase()).indexOf(I3)===-1)try{let o=e(i);r.headers={...r.headers,[I3]:String(o)}}catch(o){}}return t({...n,request:r})}}var TZ={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},P3=e=>({applyToStack:t=>{t.add(CZ(e.bodyLengthChecker),TZ)}});c();c();var N3=async e=>{let t=(e==null?void 0:e.Bucket)||"";if(typeof e.Bucket=="string"&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),FZ(t)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!OZ(t)||t.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},AZ=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,RZ=/(\d+\.){3}\d+/,kZ=/\.\./;var OZ=e=>AZ.test(e)&&!RZ.test(e)&&!kZ.test(e),FZ=e=>{let[t,n,r,,,i]=e.split(":"),s=t==="arn"&&e.split(":").length>=6,o=!!(s&&n&&r&&i);if(s&&!o)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return o};c();var M3=(e,t,n,r=!1)=>{let i=async()=>{var o,a;let s;if(r){let l=n.clientContextParams,u=l==null?void 0:l[e];s=(o=u!=null?u:n[e])!=null?o:n[t]}else s=(a=n[e])!=null?a:n[t];return typeof s=="function"?s():s};return e==="credentialScope"||t==="CredentialScope"?async()=>{var a;let s=typeof n.credentials=="function"?await n.credentials():n.credentials;return(a=s==null?void 0:s.credentialScope)!=null?a:s==null?void 0:s.CredentialScope}:e==="accountId"||t==="AccountId"?async()=>{var a;let s=typeof n.credentials=="function"?await n.credentials():n.credentials;return(a=s==null?void 0:s.accountId)!=null?a:s==null?void 0:s.AccountId}:e==="endpoint"||t==="endpoint"?async()=>{if(n.isCustomEndpoint===!1)return;let s=await i();if(s&&typeof s=="object"){if("url"in s)return s.url.href;if("hostname"in s){let{protocol:o,hostname:a,port:l,path:u}=s;return`${o}//${a}${l?":"+l:""}${u}`}}return s}:i};c();var nf=async e=>{};c();var rf=e=>{if(typeof e=="object"){if("url"in e){let t=Ei(e.url);if(e.headers){t.headers={};for(let[n,r]of Object.entries(e.headers))t.headers[n.toLowerCase()]=r.join(", ")}return t}return e}return Ei(e)};var L3=async(e,t,n,r)=>{var o;if(!n.isCustomEndpoint){let a;n.serviceConfiguredEndpoint?a=await n.serviceConfiguredEndpoint():a=await nf(n.serviceId),a&&(n.endpoint=()=>Promise.resolve(rf(a)),n.isCustomEndpoint=!0)}let i=await wx(e,t,n);if(typeof n.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");let s=n.endpointProvider(i,r);if(n.isCustomEndpoint&&n.endpoint){let a=await n.endpoint();if(a!=null&&a.headers){(o=s.headers)!=null||(s.headers={});for(let[l,u]of Object.entries(a.headers))s.headers[l]=Array.isArray(u)?u:[u]}}return s},wx=async(e,t,n)=>{var s;let r={},i=((s=t==null?void 0:t.getEndpointParameterInstructions)==null?void 0:s.call(t))||{};for(let[o,a]of Object.entries(i))switch(a.type){case"staticContextParams":r[o]=a.value;break;case"contextParams":r[o]=e[a.name];break;case"clientContextParams":case"builtInParams":r[o]=await M3(a.name,o,n,a.type!=="builtInParams")();break;case"operationContextParams":r[o]=a.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(a))}return Object.keys(i).length===0&&Object.assign(r,n),String(n.serviceId).toLowerCase()==="s3"&&await N3(r),r};c();var $3=({config:e,instructions:t})=>(n,r)=>async i=>{var a,l,u;e.isCustomEndpoint&&SR(r,"ENDPOINT_OVERRIDE","N");let s=await L3(i.input,{getEndpointParameterInstructions(){return t}},{...e},r);r.endpointV2=s,r.authSchemes=(a=s.properties)==null?void 0:a.authSchemes;let o=(l=r.authSchemes)==null?void 0:l[0];if(o){r.signing_region=o.signingRegion,r.signing_service=o.signingName;let p=hn(r),d=(u=p==null?void 0:p.selectedHttpAuthScheme)==null?void 0:u.httpAuthOption;d&&(d.signingProperties=Object.assign(d.signingProperties||{},{signing_region:o.signingRegion,signingRegion:o.signingRegion,signing_service:o.signingName,signingName:o.signingName,signingRegionSet:o.signingRegionSet},o.properties))}return n({...i})};c();c();var U3={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};var BZ={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:U3.name},mt=(e,t)=>({applyToStack:n=>{n.addRelativeTo($3({config:e,instructions:t}),BZ)}});c();var j3=e=>{var u;let t=(u=e.tls)!=null?u:!0,{endpoint:n,useDualstackEndpoint:r,useFipsEndpoint:i}=e,s=n!=null?async()=>rf(await Qt(n)()):void 0,a=Object.assign(e,{endpoint:s,tls:t,isCustomEndpoint:!!n,useDualstackEndpoint:Qt(r!=null?r:!1),useFipsEndpoint:Qt(i!=null?i:!1)}),l;return a.serviceConfiguredEndpoint=async()=>(e.serviceId&&!l&&(l=nf(e.serviceId)),l),a};c();var z3=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`);c();var q3=e=>{var o;let{retryStrategy:t,retryMode:n}=e,r=Qt((o=e.maxAttempts)!=null?o:os),i=t?Promise.resolve(t):void 0,s=async()=>await Qt(n)()===ur.ADAPTIVE?new Qd(r):new so(r);return Object.assign(e,{maxAttempts:r,retryStrategy:()=>i!=null?i:i=s()})};c();c();var H3=e=>(e==null?void 0:e.body)instanceof ReadableStream;c();function G3(e,t){var n,r,i,s;if(Vt.isInstance(e))for(let o of Object.keys(e.headers)){let a=o.toLowerCase();if(a==="retry-after"){let l=e.headers[o],u=NaN;if(l.endsWith("GMT"))try{u=(gd(l).getTime()-Date.now())/1e3}catch(p){(n=t==null?void 0:t.trace)==null||n.call(t,"Failed to parse retry-after header"),(r=t==null?void 0:t.trace)==null||r.call(t,p)}else l.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?u=Number((i=l.match(/ GMT, ([\d.]+)$/))==null?void 0:i[1]):l.match(/^((\d+)|(\d+\.\d+))$/)?u=Number(l):Date.parse(l)>=Date.now()&&(u=(Date.parse(l)-Date.now())/1e3);return isNaN(u)?void 0:new Date(Date.now()+u*1e3)}else if(a==="x-amz-retry-after"){let l=e.headers[o],u=Number(l);if(isNaN(u)){(s=t==null?void 0:t.trace)==null||s.call(t,`Failed to parse x-amz-retry-after=${l}`);return}return new Date(Date.now()+u)}}}var IZ=e=>(t,n)=>async r=>{var o,a;let i=await e.retryStrategy(),s=await e.maxAttempts();if(PZ(i)){i=i;let l=await i.acquireInitialRetryToken(((o=n.partition_id)!=null?o:"")+(n.__retryLongPoll?":longpoll":"")),u=new Error,p=0,d=0,{request:f}=r,m=we.isInstance(f);for(m&&(f.headers[y3]=eo());;)try{m&&(f.headers[x3]=`attempt=${p+1}; max=${s}`);let{response:g,output:x}=await t(r);return i.recordSuccess(l),x.$metadata.attempts=p+1,x.$metadata.totalRetryDelay=d,{response:g,output:x}}catch(g){let x=NZ(g,e.logger);if(u=z3(g),m&&H3(f))throw(a=n.logger instanceof is?console:n.logger)==null||a.warn("An error was encountered in a non-retryable streaming request."),u;try{l=await i.refreshRetryTokenForRetry(l,x)}catch(_){throw typeof _.$backoff=="number"&&await V3(_.$backoff),u.$metadata||(u.$metadata={}),u.$metadata.attempts=p+1,u.$metadata.totalRetryDelay=d,u}p=l.getRetryCount();let v=l.getRetryDelay();d+=v,await V3(v)}}else return i=i,i!=null&&i.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(t,r)},V3=e=>new Promise(t=>setTimeout(t,e)),PZ=e=>typeof e.acquireInitialRetryToken!="undefined"&&typeof e.refreshRetryTokenForRetry!="undefined"&&typeof e.recordSuccess!="undefined",NZ=(e,t)=>{let n={error:e,errorType:MZ(e)},r=G3(e.$response,t);return r&&(n.retryAfterHint=r),n},MZ=e=>Wd(e)?"THROTTLING":Kd(e)?"TRANSIENT":g3(e)?"SERVER_ERROR":"CLIENT_ERROR",LZ={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},W3=e=>({applyToStack:t=>{t.add(IZ(e),LZ)}});c();c();c();c();var Ex=e=>{var t,n,r;return Vt.isInstance(e)?(r=(t=e.headers)==null?void 0:t.date)!=null?r:(n=e.headers)==null?void 0:n.Date:void 0};c();var _a=e=>new Date(Date.now()+e);c();c();var K3=(e,t)=>Math.abs(_a(t).getTime()-e)>=3e5;var Dx=(e,t)=>{let n=Date.parse(e);return K3(n,t)?n-Date.now():t};var Lu=(e,t)=>{if(!t)throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},sf=async e=>{var u,p,d;let t=Lu("context",e.context),n=Lu("config",e.config),r=(d=(p=(u=t.endpointV2)==null?void 0:u.properties)==null?void 0:p.authSchemes)==null?void 0:d[0],s=await Lu("signer",n.signer)(r),o=e==null?void 0:e.signingRegion,a=e==null?void 0:e.signingRegionSet,l=e==null?void 0:e.signingName;return{config:n,signer:s,signingRegion:o,signingRegionSet:a,signingName:l}},oo=class{async sign(t,n,r){var d,f,m,g;if(!we.isInstance(t))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let i=await sf(r),{config:s,signer:o}=i,{signingRegion:a,signingName:l}=i,u=r.context;if((f=(d=u==null?void 0:u.authSchemes)==null?void 0:d.length)!=null&&f){let[x,v]=u.authSchemes;(x==null?void 0:x.name)==="sigv4a"&&(v==null?void 0:v.name)==="sigv4"&&(a=(m=v==null?void 0:v.signingRegion)!=null?m:a,l=(g=v==null?void 0:v.signingName)!=null?g:l)}return await o.sign(t,{signingDate:_a(s.systemClockOffset),signingRegion:a,signingService:l})}errorHandler(t){return n=>{var i;let r=(i=n.ServerTime)!=null?i:Ex(n.$response);if(r){let s=Lu("config",t.config),o=s.systemClockOffset;s.systemClockOffset=Dx(r,s.systemClockOffset),s.systemClockOffset!==o&&n.$metadata&&(n.$metadata.clockSkewCorrected=!0)}throw n}}successHandler(t,n){let r=Ex(t);if(r){let i=Lu("config",n.config);i.systemClockOffset=Dx(r,i.systemClockOffset)}}};c();var $u=class extends oo{async sign(t,n,r){var f,m;if(!we.isInstance(t))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:i,signer:s,signingRegion:o,signingRegionSet:a,signingName:l}=await sf(r),u=await((f=i.sigv4aSigningRegionSet)==null?void 0:f.call(i)),p=((m=u!=null?u:a)!=null?m:[o]).join(",");return await s.sign(t,{signingDate:_a(i.systemClockOffset),signingRegion:p,signingService:l})}};c();c();var Y3=(e,t,n)=>{let r,i,s,o=!1,a=async()=>{i||(i=e());try{r=await i,s=!0,o=!1}finally{i=void 0}return r};return t===void 0?async l=>((!s||l!=null&&l.forceRefresh)&&(r=await a()),r):async l=>((!s||l!=null&&l.forceRefresh)&&(r=await a()),o?r:n&&!n(r)?(o=!0,r):(t(r)&&await a(),r))};var X3=e=>(e.sigv4aSigningRegionSet=Ci(e.sigv4aSigningRegionSet),e);c();var Z3=e=>{let t=e.credentials,n=!!e.credentials,r;Object.defineProperty(e,"credentials",{set(u){u&&u!==t&&u!==r&&(n=!0),t=u;let p=$Z(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}),d=UZ(e,p);if(n&&!d.attributed){let f=typeof t=="object"&&t!==null;r=async m=>{let x=await d(m);return f&&(!x.$source||Object.keys(x.$source).length===0)?D2(x,"CREDENTIALS_CODE","e"):x},r.memoized=d.memoized,r.configBound=d.configBound,r.attributed=!0}else r=d},get(){return r},enumerable:!0,configurable:!0}),e.credentials=t;let{signingEscapePath:i=!0,systemClockOffset:s=e.systemClockOffset||0,sha256:o}=e,a;return e.signer?a=Ci(e.signer):e.regionInfoProvider?a=()=>Ci(e.region)().then(async u=>[await e.regionInfoProvider(u,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},u]).then(([u,p])=>{let{signingRegion:d,signingService:f}=u;e.signingRegion=e.signingRegion||d||p,e.signingName=e.signingName||f||e.serviceId;let m={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i},g=e.signerConstructor||to;return new g(m)}):a=async u=>{u=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await Ci(e.region)(),properties:{}},u);let p=u.signingRegion,d=u.signingName;e.signingRegion=e.signingRegion||p,e.signingName=e.signingName||d||e.serviceId;let f={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i},m=e.signerConstructor||to;return new m(f)},Object.assign(e,{systemClockOffset:s,signingEscapePath:i,signer:a})};function $Z(e,{credentials:t,credentialDefaultProvider:n}){let r;return t?t!=null&&t.memoized?r=t:r=TR(t,CR,ux):n?r=Ci(n(Object.assign({},e,{parentClientConfig:e}))):r=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}function UZ(e,t){if(t.configBound)return t;let n=async r=>t({...r,callerClientConfig:e});return n.memoized=t.memoized,n.configBound=!0,n}c();c();var Uu={CrtSignerV4:null};var wa=class{constructor(t){C(this,"sigv4aSigner");C(this,"sigv4Signer");C(this,"signerOptions");this.sigv4Signer=new Fu(t),this.signerOptions=t}static sigv4aDependency(){return typeof Uu.CrtSignerV4=="function"?"crt":typeof ox.SignatureV4a=="function"?"js":"none"}async sign(t,n={}){return n.signingRegion==="*"?this.getSigv4aSigner().sign(t,n):this.sigv4Signer.sign(t,n)}async signWithCredentials(t,n,r={}){if(r.signingRegion==="*"){let i=this.getSigv4aSigner(),s=Uu.CrtSignerV4;if(s&&i instanceof s)return i.signWithCredentials(t,n,r);throw new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(t,n,r)}async presign(t,n={}){if(n.signingRegion==="*"){let r=this.getSigv4aSigner(),i=Uu.CrtSignerV4;if(i&&r instanceof i)return r.presign(t,n);throw new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(t,n)}async presignWithCredentials(t,n,r={}){if(r.signingRegion==="*")throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(t,n,r)}getSigv4aSigner(){if(!this.sigv4aSigner){let t=Uu.CrtSignerV4,n=ox.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!t&&!n)throw new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(t&&typeof t=="function")this.sigv4aSigner=new t({...this.signerOptions,signingAlgorithm:1});else if(n&&typeof n=="function")this.sigv4aSigner=new n({...this.signerOptions});else throw new Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!n||typeof n!="function")throw new Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new n({...this.signerOptions})}}return this.sigv4aSigner}};c();c();var Je="ref",Ee="argv",Ck="backend",ti="authSchemes",lr="disableDoubleEncoding",pr="signingName",Ri="signingRegion",Ix="signingRegionSet",ue=-1,Ve=!0,kr=!1,Sx="isSet",Or="booleanEquals",Pe="stringEquals",en="coalesce",gn="substring",Tt="",Q3="aws.partition",Tk="partitionResult",J3="accessPointSuffix",ek="regionPrefix",of=e=>"outpostId_ssa_"+e+Tt,Ak="hardwareType",Cx="ite",cs="isValidHostLabel",ki="sigv4",tk="aws.isVirtualHostableS3Bucket",Rk="url",yn="getAttr",kk="bucketArn",Ti="--",Ok="arnType",nk="accesspoint",rk=e=>"accessPointName_ssa_"+e+Tt,Px="s3-object-lambda",zu="s3-outposts",ik="bucketPartition",Fk="us-east-1",sk="outpostType",Yn="name",qu="s3",Tx="{url#scheme}://{Bucket}.{url#authority}{url#path}",af="{url#scheme}://{url#authority}{url#path}",ok="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",ak="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",ck="https://{Bucket}.s3.{partitionResult#dnsSuffix}",uk=e=>"{url#scheme}://{accessPointName_ssa_"+e+"}-{bucketArn#accountId}.{url#authority}{url#path}",Nx="sigv4a",lk="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",pk="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",dk="https://s3.{partitionResult#dnsSuffix}",fk={[Je]:"UseFIPS"},mk={[Je]:"UseDualStack"},Lt={[Je]:"Bucket"},Ax={fn:yn,[Ee]:[{[Je]:Tk},Yn]},hk={[Je]:Rk},Ea={[Je]:"Region"},Ai={[Je]:kk},gk={[Je]:Ok},Rx={[Je]:"accessPointName_ssa_1"},cf={fn:yn,[Ee]:[Ai,"region"]},yk={[Je]:Ak},kx={fn:yn,[Ee]:[Ai,"service"]},xk={fn:yn,[Ee]:[Ai,"accountId"]},uf={[Ck]:"S3Express",[ti]:[{[lr]:!0,[Yn]:"{_s3e_auth}",[pr]:"s3express",[Ri]:"{Region}"}]},vk={[Ck]:"S3Express",[ti]:[{[lr]:!0,[Yn]:ki,[pr]:"s3express",[Ri]:"{Region}"}]},lf={[ti]:[{[lr]:!0,[Yn]:Nx,[pr]:zu,[Ix]:["*"]},{[lr]:!0,[Yn]:ki,[pr]:zu,[Ri]:"{Region}"}]},Mt={[ti]:[{[lr]:!0,[Yn]:ki,[pr]:qu,[Ri]:Fk}]},bt={[ti]:[{[lr]:!0,[Yn]:ki,[pr]:qu,[Ri]:"{Region}"}]},Ox={[ti]:[{[lr]:!0,[Yn]:ki,[pr]:Px,[Ri]:"{bucketArn#region}"}]},ju={[ti]:[{[lr]:!0,[Yn]:ki,[pr]:qu,[Ri]:"{bucketArn#region}"}]},bk={[ti]:[{[lr]:!0,[Yn]:Nx,[pr]:zu,[Ix]:["*"]},{[lr]:!0,[Yn]:ki,[pr]:zu,[Ri]:"{bucketArn#region}"}]},Fx={[ti]:[{[lr]:!0,[Yn]:ki,[pr]:Px,[Ri]:"{Region}"}]},_k=[Ea],wk=[{[Je]:"Endpoint"}],Bx=[Lt],Ek=[Lt,0,7,!0],Dk=[Ai,"resourceId[1]"],jZ=["*"],Sk={conditions:[[Sx,_k],[Or,[{[Je]:"Accelerate"},Ve]],[Or,[fk,Ve]],[Or,[mk,Ve]],[Sx,wk],[Sx,Bx],[Pe,[{fn:en,[Ee]:[{fn:gn,[Ee]:[Lt,0,6,Ve]},Tt]},"--x-s3"]],[Pe,[{fn:en,[Ee]:[{fn:gn,[Ee]:Ek},Tt]},"--xa-s3"]],[Q3,_k,Tk],[gn,Ek,J3],[Pe,[{[Je]:J3},"--op-s3"]],[gn,[Lt,8,12,Ve],ek],[gn,[Lt,32,49,Ve],of(2)],[gn,[Lt,49,50,Ve],Ak],[Or,[{[Je]:"ForcePathStyle"},Ve]],[Pe,[Ax,"aws-cn"]],[Cx,[mk,".dualstack",Tt],"_s3e_ds"],[cs,[{[Je]:of(2)},kr]],[Cx,[fk,"-fips",Tt],"_s3e_fips"],[Cx,[{fn:en,[Ee]:[{[Je]:"DisableS3ExpressSessionAuth"},kr]},ki,"sigv4-s3express"],"_s3e_auth"],[tk,[Lt,kr]],["parseURL",wk,Rk],[Or,[{fn:en,[Ee]:[{[Je]:"UseS3ExpressControlEndpoint"},kr]},Ve]],[tk,[Lt,Ve]],[Pe,[{fn:yn,[Ee]:[hk,"scheme"]},"http"]],[cs,[Ea,kr]],["aws.parseArn",Bx,kk],[yn,[{fn:"split",[Ee]:[Lt,Ti,0]},"[-2]"],"s3expressAvailabilityZoneId"],[Pe,[{fn:en,[Ee]:[{fn:gn,[Ee]:[Lt,0,4,kr]},Tt]},"arn:"]],[Pe,[{fn:en,[Ee]:[{fn:gn,[Ee]:[Lt,16,18,Ve]},Tt]},Ti]],[Or,[{fn:yn,[Ee]:[hk,"isIp"]},Ve]],[Pe,[{fn:en,[Ee]:[{fn:gn,[Ee]:[Lt,21,23,Ve]},Tt]},Ti]],[Pe,[{fn:en,[Ee]:[{fn:gn,[Ee]:[Lt,27,29,Ve]},Tt]},Ti]],[Pe,[{[Je]:ek},"beta"]],["uriEncode",Bx,"uri_encoded_bucket"],[cs,[Ea,Ve]],[Or,[{fn:en,[Ee]:[{[Je]:"UseObjectLambdaEndpoint"},kr]},Ve]],[yn,[Ai,"resourceId[0]"],Ok],[Pe,[gk,Tt]],[Pe,[gk,nk]],[yn,Dk,rk(1)],[Pe,[Rx,Tt]],[Pe,[cf,Tt]],[Pe,[{fn:en,[Ee]:[{fn:gn,[Ee]:[Lt,14,16,Ve]},Tt]},Ti]],[Pe,[yk,"e"]],[Pe,[yk,"o"]],[Pe,[Ea,"aws-global"]],[Pe,[{fn:en,[Ee]:[{fn:gn,[Ee]:[Lt,19,21,Ve]},Tt]},Ti]],[Pe,[kx,Px]],[Or,[{fn:en,[Ee]:[{[Je]:"DisableAccessPoints"},kr]},Ve]],[Pe,[kx,zu]],[Q3,[cf],ik],[cs,[Rx,Ve]],[Pe,[{fn:en,[Ee]:[{fn:gn,[Ee]:[Lt,26,28,Ve]},Tt]},Ti]],[Pe,[{fn:en,[Ee]:[{fn:gn,[Ee]:[Lt,15,17,Ve]},Tt]},Ti]],[yn,[Ai,"resourceId[4]"]],[Pe,[{fn:en,[Ee]:[{fn:gn,[Ee]:[Lt,20,22,Ve]},Tt]},Ti]],[Or,[{[Je]:"UseGlobalEndpoint"},Ve]],[Pe,[Ea,Fk]],[yn,Dk,of(1)],[Or,[{fn:en,[Ee]:[{[Je]:"UseArnRegion"},Ve]},Ve]],[cs,[{[Je]:of(1)},kr]],[yn,[Ai,"resourceId[2]"],sk],[Pe,[Ea,cf]],[Pe,[{fn:yn,[Ee]:[{[Je]:ik},Yn]},Ax]],[Or,[{[Je]:"DisableMultiRegionAccessPoints"},Ve]],[cs,[cf,Ve]],[Pe,[{fn:yn,[Ee]:[Ai,"partition"]},Ax]],[Pe,[xk,Tt]],[Pe,[kx,qu]],[cs,[xk,kr]],[yn,[Ai,"resourceId[3]"],rk(2)],[cs,[Rx,kr]],[Pe,[{[Je]:sk},nk]]],results:[[ue],[ue,"Accelerate cannot be used with FIPS"],[ue,"Cannot set dual-stack in combination with a custom endpoint."],[ue,"A custom endpoint cannot be combined with FIPS"],[ue,"A custom endpoint cannot be combined with S3 Accelerate"],[ue,"Partition does not support FIPS"],[ue,"S3Express does not support S3 Accelerate."],["{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",uf],[Tx,uf],[ue,"S3Express bucket name is not a valid virtual hostable name."],["https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",vk],["https://{Bucket}.s3express{_s3e_fips}-{s3expressAvailabilityZoneId}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}",uf],[ue,"Unrecognized S3Express bucket name format."],[af,uf],["https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}",vk],[ue,"Expected a endpoint to be specified but no endpoint was found"],["https://{Bucket}.ec2.{url#authority}",lf],["https://{Bucket}.ec2.s3-outposts.{Region}.{partitionResult#dnsSuffix}",lf],["https://{Bucket}.op-{outpostId_ssa_2}.{url#authority}",lf],["https://{Bucket}.op-{outpostId_ssa_2}.s3-outposts.{Region}.{partitionResult#dnsSuffix}",lf],[ue,'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"'],[ue,"Invalid Outposts Bucket alias - it must be a valid bucket name."],[ue,"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`."],[ue,"Custom endpoint `{Endpoint}` was not a valid URI"],[ue,"S3 Accelerate cannot be used in this region"],["https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",Mt],["https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",bt],["https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",Mt],["https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",bt],["https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",Mt],["https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",bt],["https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",Mt],["https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",bt],[ok,Mt],[Tx,Mt],[ok,bt],[Tx,bt],[ak,Mt],[ak,bt],[ck,Mt],[ck,bt],["https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",bt],[ue,"Invalid region: region was not a valid DNS name."],[ue,"S3 Object Lambda does not support Dual-stack"],[ue,"S3 Object Lambda does not support S3 Accelerate"],[ue,"Access points are not supported for this operation"],[ue,"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`"],[ue,"Invalid ARN: Missing account id"],[uk(1),Ox],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",Ox],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",Ox],[ue,"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName_ssa_1}`"],[ue,"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`"],[ue,"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)"],[ue,"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`"],[ue,"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`."],[ue,"Invalid ARN: bucket ARN is missing a region"],[ue,"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided"],[ue,"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`"],[ue,"Access Points do not support S3 Accelerate"],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",ju],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",ju],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",ju],[uk(1),ju],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",ju],[ue,"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}"],[ue,"S3 MRAP does not support dual-stack"],[ue,"S3 MRAP does not support FIPS"],[ue,"S3 MRAP does not support S3 Accelerate"],[ue,"Invalid configuration: Multi-Region Access Point ARNs are disabled."],["https://{accessPointName_ssa_1}.accesspoint.s3-global.{partitionResult#dnsSuffix}",{[ti]:[{[lr]:Ve,name:Nx,[pr]:qu,[Ix]:jZ}]}],[ue,"Client was configured for partition `{partitionResult#name}` but bucket referred to partition `{bucketArn#partition}`"],[ue,"Invalid Access Point Name"],[ue,"S3 Outposts does not support Dual-stack"],[ue,"S3 Outposts does not support FIPS"],[ue,"S3 Outposts does not support S3 Accelerate"],[ue,"Invalid Arn: Outpost Access Point ARN contains sub resources"],["https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.{url#authority}",bk],["https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",bk],[ue,"Expected an outpost type `accesspoint`, found {outpostType}"],[ue,"Invalid ARN: expected an access point name"],[ue,"Invalid ARN: Expected a 4-component resource"],[ue,"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId_ssa_1}`"],[ue,"Invalid ARN: The Outpost Id was not set"],[ue,"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})"],[ue,"Invalid ARN: No ARN type specified"],[ue,"Invalid ARN: `{Bucket}` was not a valid ARN"],[ue,"Path-style addressing cannot be used with ARN buckets"],["https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Mt],["https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",bt],["https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Mt],["https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",bt],["https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Mt],["https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",bt],[lk,Mt],[lk,bt],[pk,Mt],[pk,bt],["https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",bt],[ue,"Path-style addressing cannot be used with S3 Accelerate"],[af,Fx],["https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",Fx],["https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",Fx],["https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",Mt],["https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",bt],["https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",Mt],["https://s3-fips.{Region}.{partitionResult#dnsSuffix}",bt],["https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",Mt],["https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",bt],[af,Mt],[af,bt],[dk,Mt],[dk,bt],["https://s3.{Region}.{partitionResult#dnsSuffix}",bt],[ue,"A region must be set when sending requests to S3."]]},zZ=2,D=1e8,qZ=new Int32Array([-1,1,-1,0,3,D+114,1,422,4,2,270,5,3,231,6,4,84,7,5,15,8,8,9,D+114,16,10,13,18,11,13,19,12,13,22,D+14,13,35,14,D+42,36,D+102,433,6,269,16,7,268,17,8,19,18,14,499,105,9,20,24,10,21,24,11,22,24,12,23,24,13,545,24,14,76,25,20,72,26,26,27,77,37,28,D+85,38,D+85,29,39,46,30,48,D+58,31,50,32,D+84,51,33,135,55,D+76,34,59,35,D+83,60,39,36,61,37,D+82,62,38,145,63,41,D+46,61,40,D+82,62,41,149,64,42,D+54,66,43,D+53,70,44,D+52,71,45,D+80,73,D+78,D+79,40,47,D+57,41,D+57,48,42,183,49,48,61,50,49,D+45,51,51,52,524,60,55,53,62,D+55,54,63,56,D+46,62,D+55,56,64,57,D+54,66,58,D+53,69,59,D+65,70,60,D+52,72,D+64,D+51,49,D+45,62,51,63,524,60,66,64,62,D+55,65,63,67,D+46,62,D+55,67,64,68,D+54,66,69,D+53,68,D+47,70,70,71,D+52,72,D+50,D+51,25,73,D+42,46,D+39,74,57,75,D+41,58,D+40,D+41,26,D+87,77,28,D+86,78,34,81,79,35,80,543,36,D+102,D+114,46,D+96,82,57,83,D+98,58,D+97,D+98,5,100,85,8,86,D+114,16,87,88,18,90,88,19,89,91,21,96,94,19,92,91,21,97,94,21,96,93,22,D+14,94,35,95,D+42,36,D+102,D+42,22,D+13,97,35,98,D+42,36,D+100,99,46,D+109,D+110,6,212,101,7,206,102,8,118,103,14,117,104,21,105,D+23,26,106,500,37,107,D+85,38,D+85,108,39,111,109,48,D+58,110,50,135,D+84,40,112,D+57,41,D+57,113,42,114,498,48,D+56,115,52,116,D+72,65,D+69,D+72,21,499,D+23,9,119,123,10,120,123,11,121,123,12,122,123,13,200,123,14,193,124,20,188,125,21,126,D+23,23,127,128,24,187,128,26,129,195,37,130,D+85,38,D+85,131,39,157,132,48,D+58,133,50,134,D+84,51,140,135,55,D+76,136,59,137,D+83,60,D+82,138,61,139,D+82,63,D+82,D+46,55,D+76,141,59,142,D+83,60,147,143,61,144,D+82,62,146,145,63,149,D+46,63,152,D+46,61,148,D+82,62,152,149,64,150,D+54,66,151,D+53,70,D+81,D+52,64,153,D+54,66,154,D+53,70,155,D+52,71,156,D+80,73,D+77,D+79,40,158,D+57,41,D+57,159,42,183,160,48,172,161,49,D+45,162,51,163,524,60,166,164,62,D+55,165,63,167,D+46,62,D+55,167,64,168,D+54,66,169,D+53,69,170,D+65,70,171,D+52,72,D+63,D+51,49,D+45,173,51,174,524,60,177,175,62,D+55,176,63,178,D+46,62,D+55,178,64,179,D+54,66,180,D+53,68,D+47,181,70,182,D+52,72,D+48,D+51,48,D+56,184,52,185,D+72,65,D+69,186,67,D+70,D+71,25,D+36,D+42,21,189,D+23,25,190,D+42,30,192,191,46,D+34,D+36,46,D+33,D+35,21,194,D+23,26,D+87,195,28,D+86,196,34,199,197,35,198,543,36,D+100,D+114,46,D+94,D+95,17,201,D+22,20,202,D+21,21,203,548,33,204,548,44,D+16,205,45,D+18,D+20,8,207,213,16,208,218,18,209,218,19,210,222,20,211,225,21,229,399,8,216,213,19,214,D+9,20,215,225,21,229,D+9,16,217,218,18,221,218,19,219,222,20,220,225,21,229,D+12,19,224,222,20,223,D+9,21,D+9,D+12,20,228,225,21,226,D+9,30,227,D+9,34,D+7,D+9,21,229,413,30,230,D+8,34,D+7,D+8,4,D+2,232,5,233,478,6,269,234,7,268,235,8,236,489,9,237,241,10,238,241,11,239,241,12,240,241,13,545,241,14,264,242,20,262,243,26,244,265,37,245,D+85,38,D+85,246,39,247,516,40,248,D+57,41,D+57,249,42,536,250,48,D+43,251,49,D+45,252,51,253,524,60,256,254,62,D+55,255,63,257,D+46,62,D+55,257,64,258,D+54,66,259,D+53,69,260,D+65,70,261,D+52,72,D+62,D+51,25,263,D+42,46,D+31,D+32,26,D+87,265,28,D+86,266,34,267,542,46,D+92,D+93,8,395,D+9,8,405,D+9,3,344,271,4,D+3,272,5,282,273,8,274,D+114,15,D+5,275,16,276,279,18,277,279,19,278,279,22,D+14,279,35,280,D+42,36,D+101,281,46,D+105,D+106,6,403,283,7,393,284,8,293,285,14,499,286,26,287,500,37,288,D+85,38,D+85,289,39,290,305,40,291,D+57,41,D+57,292,42,333,498,9,294,298,10,295,298,11,296,298,12,297,298,13,392,298,14,337,299,15,D+5,300,20,335,301,26,302,339,37,303,D+85,38,D+85,304,39,307,305,48,D+58,306,50,D+74,D+84,40,308,D+57,41,D+57,309,42,333,310,48,322,311,49,D+45,312,51,313,524,60,316,314,62,D+55,315,63,317,D+46,62,D+55,317,64,318,D+54,66,319,D+53,69,320,D+65,70,321,D+52,72,D+61,D+51,49,D+45,323,51,324,524,60,327,325,62,D+55,326,63,328,D+46,62,D+55,328,64,329,D+54,66,330,D+53,68,D+47,331,70,332,D+52,72,D+49,D+51,48,D+56,334,52,D+67,D+72,25,336,D+42,46,D+27,D+28,15,D+5,338,26,D+87,339,28,D+86,340,34,343,341,35,342,543,36,D+101,D+114,46,D+90,D+91,4,D+2,345,5,355,346,8,347,D+114,15,D+5,348,16,349,352,18,350,352,19,351,352,22,D+14,352,35,353,D+42,36,D+43,354,46,D+103,D+104,6,403,356,7,393,357,8,358,489,9,359,363,10,360,363,11,361,363,12,362,363,13,392,363,14,387,364,15,D+5,365,20,385,366,26,367,389,37,368,D+85,38,D+85,369,39,370,516,40,371,D+57,41,D+57,372,42,536,373,48,D+43,374,49,D+45,375,51,376,524,60,379,377,62,D+55,378,63,380,D+46,62,D+55,380,64,381,D+54,66,382,D+53,69,383,D+65,70,384,D+52,72,D+60,D+51,25,386,D+42,46,D+25,D+26,15,D+5,388,26,D+87,389,28,D+86,390,34,391,542,46,D+88,D+89,15,D+5,545,8,394,D+9,15,D+5,395,16,396,408,18,397,408,19,398,408,20,399,D+9,27,400,D+12,29,D+11,401,31,D+11,402,32,D+11,420,8,404,D+9,15,D+5,405,16,406,408,18,407,408,19,409,408,20,D+12,D+9,20,412,410,22,411,D+9,34,D+10,D+9,22,414,413,27,417,D+12,27,416,415,34,D+10,D+12,34,D+10,417,43,D+11,418,47,D+11,419,53,D+11,420,54,D+11,421,56,D+11,D+12,2,D+1,423,3,476,424,4,D+4,425,5,436,426,8,427,D+114,16,428,431,18,429,431,19,430,431,22,D+14,431,35,432,D+42,36,D+44,433,46,D+111,434,57,435,D+113,58,D+112,D+113,6,D+6,437,7,D+6,438,8,448,439,14,499,440,26,441,500,37,442,D+85,38,D+85,443,39,444,463,40,445,D+57,41,D+57,446,42,469,447,48,D+44,498,9,449,453,10,450,453,11,451,453,12,452,453,13,545,453,14,471,454,15,458,455,20,456,459,25,457,D+42,46,D+37,D+38,20,538,459,26,460,472,37,461,D+85,38,D+85,462,39,465,463,48,D+58,464,50,D+75,D+84,40,466,D+57,41,D+57,467,42,469,468,48,D+44,522,48,D+44,470,52,D+68,D+72,26,D+87,472,28,D+86,473,34,D+99,474,35,475,543,36,D+44,D+114,4,D+2,477,5,486,478,8,479,D+114,16,480,483,18,481,483,19,482,483,22,D+14,483,35,484,D+42,36,D+43,485,46,D+107,D+108,6,D+6,487,7,D+6,488,8,501,489,14,499,490,26,491,500,37,492,D+85,38,D+85,493,39,494,516,40,495,D+57,41,D+57,496,42,536,497,48,D+43,498,49,D+45,524,26,D+87,500,28,D+86,D+114,9,502,506,10,503,506,11,504,506,12,505,506,13,545,506,14,539,507,15,511,508,20,509,512,25,510,D+42,46,D+29,D+30,20,538,512,26,513,540,37,514,D+85,38,D+85,515,39,518,516,48,D+58,517,50,D+73,D+84,40,519,D+57,41,D+57,520,42,536,521,48,D+43,522,49,D+45,523,51,527,524,60,D+55,525,62,D+55,526,63,D+55,D+46,60,530,528,62,D+55,529,63,531,D+46,62,D+55,531,64,532,D+54,66,533,D+53,69,534,D+65,70,535,D+52,72,D+59,D+51,48,D+43,537,52,D+66,D+72,25,D+24,D+42,26,D+87,540,28,D+86,541,34,D+99,542,35,544,543,36,D+42,D+114,36,D+43,D+114,17,546,D+22,20,547,D+21,33,550,548,44,D+17,549,45,D+19,D+20,44,D+15,551,45,D+15,D+20]),Bk=Iu.from(qZ,zZ,Sk.conditions,Sk.results);var HZ=new qd({size:50,params:["Accelerate","Bucket","DisableAccessPoints","DisableMultiRegionAccessPoints","DisableS3ExpressSessionAuth","Endpoint","ForcePathStyle","Region","UseArnRegion","UseDualStack","UseFIPS","UseGlobalEndpoint","UseObjectLambdaEndpoint","UseS3ExpressControlEndpoint"]}),pf=(e,t={})=>HZ.get(e,()=>gx(Bk,{endpointParams:e,logger:t.logger}));ba.aws=xx;var GZ=e=>async(t,n,r)=>{var a,l,u;if(!r)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),s=(u=(l=(a=hn(n))==null?void 0:a.commandInstance)==null?void 0:l.constructor)==null?void 0:u.getEndpointParameterInstructions;if(!s)throw new Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let o=await wx(r,{getEndpointParameterInstructions:s},t);return Object.assign(i,o)},VZ=async(e,t,n)=>({operation:hn(t).operation,region:await Qt(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),Ik=GZ(VZ);function Pk(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function Nk(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}var WZ=(e,t,n)=>i=>{var l;let o=(l=e(i).properties)==null?void 0:l.authSchemes;if(!o)return t(i);let a=[];for(let u of o){let{name:p,properties:d={},...f}=u,m=p.toLowerCase();p!==m&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${p}' to '${m}'`);let g;if(m==="sigv4a"){g="aws.auth#sigv4a";let _=o.find(w=>{let E=w.name.toLowerCase();return E!=="sigv4a"&&E.startsWith("sigv4")});if(wa.sigv4aDependency()==="none"&&_)continue}else if(m.startsWith("sigv4"))g="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${m}'`);let x=n[g];if(!x)throw new Error(`Could not find HttpAuthOption create function for '${g}'`);let v=x(i);v.schemeId=g,v.signingProperties={...v.signingProperties||{},...f,...d},a.push(v)}return a},KZ=e=>{let t=[];switch(e.operation){default:t.push(Pk(e)),t.push(Nk(e))}return t},Mk=WZ(pf,KZ,{"aws.auth#sigv4":Pk,"aws.auth#sigv4a":Nk}),Lk=e=>{var r;let t=Z3(e),n=X3(t);return Object.assign(n,{authSchemePreference:Qt((r=e.authSchemePreference)!=null?r:[])})};c();c();var $k=e=>{var t,n,r,i,s,o,a;return Object.assign(e,{useFipsEndpoint:(t=e.useFipsEndpoint)!=null?t:!1,useDualstackEndpoint:(n=e.useDualstackEndpoint)!=null?n:!1,forcePathStyle:(r=e.forcePathStyle)!=null?r:!1,useAccelerateEndpoint:(i=e.useAccelerateEndpoint)!=null?i:!1,useGlobalEndpoint:(s=e.useGlobalEndpoint)!=null?s:!1,disableMultiregionAccessPoints:(o=e.disableMultiregionAccessPoints)!=null?o:!1,defaultSigningName:"s3",clientContextParams:(a=e.clientContextParams)!=null?a:{}})},ht={ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},DisableS3ExpressSessionAuth:{type:"clientContextParams",name:"disableS3ExpressSessionAuth"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};c();c();c();var St=class e extends Dd{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}};var df=class e extends St{constructor(n){super({name:"NoSuchUpload",$fault:"client",...n});C(this,"name","NoSuchUpload");C(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}},ff=class e extends St{constructor(n){super({name:"AccessDenied",$fault:"client",...n});C(this,"name","AccessDenied");C(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}},mf=class e extends St{constructor(n){super({name:"ObjectNotInActiveTierError",$fault:"client",...n});C(this,"name","ObjectNotInActiveTierError");C(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}},hf=class e extends St{constructor(n){super({name:"BucketAlreadyExists",$fault:"client",...n});C(this,"name","BucketAlreadyExists");C(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}},gf=class e extends St{constructor(n){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...n});C(this,"name","BucketAlreadyOwnedByYou");C(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}},yf=class e extends St{constructor(n){super({name:"NoSuchBucket",$fault:"client",...n});C(this,"name","NoSuchBucket");C(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}},xf=class e extends St{constructor(n){super({name:"InvalidObjectState",$fault:"client",...n});C(this,"name","InvalidObjectState");C(this,"$fault","client");C(this,"StorageClass");C(this,"AccessTier");Object.setPrototypeOf(this,e.prototype),this.StorageClass=n.StorageClass,this.AccessTier=n.AccessTier}},vf=class e extends St{constructor(n){super({name:"NoSuchKey",$fault:"client",...n});C(this,"name","NoSuchKey");C(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}},bf=class e extends St{constructor(n){super({name:"NotFound",$fault:"client",...n});C(this,"name","NotFound");C(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}},_f=class e extends St{constructor(n){super({name:"EncryptionTypeMismatch",$fault:"client",...n});C(this,"name","EncryptionTypeMismatch");C(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}},wf=class e extends St{constructor(n){super({name:"InvalidRequest",$fault:"client",...n});C(this,"name","InvalidRequest");C(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}},Ef=class e extends St{constructor(n){super({name:"InvalidWriteOffset",$fault:"client",...n});C(this,"name","InvalidWriteOffset");C(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}},Df=class e extends St{constructor(n){super({name:"TooManyParts",$fault:"client",...n});C(this,"name","TooManyParts");C(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}},Sf=class e extends St{constructor(n){super({name:"IdempotencyParameterMismatch",$fault:"client",...n});C(this,"name","IdempotencyParameterMismatch");C(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}},Cf=class e extends St{constructor(n){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...n});C(this,"name","ObjectAlreadyInActiveTierError");C(this,"$fault","client");Object.setPrototypeOf(this,e.prototype)}};var YZ="Account",XZ="AnalyticsAndOperator",Tf="AccelerateConfiguration",Kf="AccessControlList",Da="ACL",Xk="AnalyticsConfigurationList",ao="AccessControlPolicy",Zk="AccessControlTranslation",Hu="AnalyticsConfiguration",ZZ="AccessDenied",Qk="AbortDate",QZ="AnalyticsExportDestination",JZ="AnalyticsFilter",eQ="AllowedHeaders",tQ="AllowedHeader",nQ="AccountId",Jk="AbortIncompleteMultipartUpload",Uk="AccessKeyId",rQ="AllowedMethods",iQ="AbortMultipartUpload",sQ="AbortMultipartUploadOutput",oQ="AbortMultipartUploadRequest",aQ="AllowedMethod",cQ="AllowedOrigins",uQ="AllowedOrigin",lQ="AccessPointAlias",eO="AccessPointArn",pQ="AllowQuotedRecordDelimiter",Gx="AcceptRanges",tO="AbortRuleId",Af="AbacStatus",dQ="AnalyticsS3BucketDestination",fQ="ApplyServerSideEncryptionByDefault",mQ="ArchiveStatus",nO="AccessTier",Ku="And",V="Bucket",Vx="BucketArn",hQ="BucketAlreadyExists",gQ="BucketAccountId",yQ="BucketAlreadyOwnedByYou",rO="BlockedEncryptionTypes",Wx="BypassGovernanceRetention",xQ="BucketInfo",tn="BucketKeyEnabled",vQ="BucketLifecycleConfiguration",bQ="BucketLocationName",Rf="BucketLoggingStatus",_Q="BucketLocationType",wQ="BucketNamespace",EQ="BucketName",iO="BytesProcessed",jk="BlockPublicAcls",zk="BlockPublicPolicy",Kx="BucketRegion",sO="BytesReturned",oO="BytesScanned",Yu="Body",Yx="Buckets",aO="Checksum",De="ChecksumAlgorithm",DQ="CannedACL",SQ="CreateBucket",Mx="CreateBucketConfiguration",CQ="CreateBucketMetadataConfiguration",TQ="CreateBucketMetadataConfigurationRequest",AQ="CreateBucketMetadataTableConfiguration",RQ="CreateBucketMetadataTableConfigurationRequest",kQ="CreateBucketOutput",OQ="CreateBucketRequest",Sa="CacheControl",xn="ChecksumCRC32",vn="ChecksumCRC32C",bn="ChecksumCRC64NVME",Xu="Cache-Control",FQ="CreationDate",Zu="Content-Disposition",Ca="ContentDisposition",BQ="ContinuationEvent",Qu="Content-Encoding",Ta="ContentEncoding",IQ="CloudFunction",PQ="CloudFunctionConfiguration",Aa="ContentLanguage",Ju="Content-Language",el="Content-Length",tl="ContentLength",rt="Content-MD5",it="ContentMD5",NQ="CompletedMultipartUpload",MQ="CompleteMultipartUploadOutput",LQ="CreateMultipartUploadOutput",$Q="CompleteMultipartUploadResult",UQ="CompleteMultipartUploadRequest",jQ="CreateMultipartUploadRequest",cO="CompleteMultipartUpload",zQ="CreateMultipartUpload",uO="ChecksumMode",qQ="CopyObject",HQ="CopyObjectOutput",lO="CopyObjectResult",kf="CORSConfiguration",Xx="CORSRules",Zx="CORSRule",GQ="CopyObjectRequest",VQ="CommonPrefix",WQ="CommonPrefixList",KQ="CompletedPartList",pO="CopyPartResult",YQ="CompletedPart",Yf="CommonPrefixes",Qx="ContentRange",XQ="ConfirmRemoveSelfBucketAccess",dO="Content-Range",fO="CopySource",_n="ChecksumSHA1",wn="ChecksumSHA256",mO="CopySourceIfMatch",hO="CopySourceIfModifiedSince",gO="CopySourceIfNoneMatch",yO="CopySourceIfUnmodifiedSince",ZQ="CreateSessionOutput",QQ="CreateSessionResult",JQ="CopySourceRange",eJ="CreateSessionRequest",xO="CopySourceSSECustomerAlgorithm",Jx="CopySourceSSECustomerKey",vO="CopySourceSSECustomerKeyMD5",bO="CSV",_O="CopySourceVersionId",tJ="CSVInput",nJ="CSVOutput",ev="ConfigurationState",rJ="CreateSession",Xn="ChecksumType",nl="Content-Type",iJ="ClientToken",Ra="ContentType",sJ="CompressionType",Nn="ContinuationToken",wO="Condition",oJ="Code",aJ="Comments",EO="Contents",cJ="Cont",qk="Credentials",ka="Days",uJ="DaysAfterInitiation",lJ="DeleteBucket",pJ="DeleteBucketAnalyticsConfiguration",dJ="DeleteBucketAnalyticsConfigurationRequest",fJ="DeleteBucketCors",mJ="DeleteBucketCorsRequest",hJ="DeleteBucketEncryption",gJ="DeleteBucketEncryptionRequest",yJ="DeleteBucketInventoryConfiguration",xJ="DeleteBucketInventoryConfigurationRequest",vJ="DeleteBucketIntelligentTieringConfiguration",bJ="DeleteBucketIntelligentTieringConfigurationRequest",_J="DeleteBucketLifecycle",wJ="DeleteBucketLifecycleRequest",EJ="DeleteBucketMetadataConfiguration",DJ="DeleteBucketMetadataConfigurationRequest",SJ="DeleteBucketMetricsConfigurationRequest",CJ="DeleteBucketMetricsConfiguration",TJ="DeleteBucketMetadataTableConfiguration",AJ="DeleteBucketMetadataTableConfigurationRequest",RJ="DeleteBucketOwnershipControls",kJ="DeleteBucketOwnershipControlsRequest",OJ="DeleteBucketPolicy",FJ="DeleteBucketPolicyRequest",BJ="DeleteBucketRequest",IJ="DeleteBucketReplicationRequest",PJ="DeleteBucketReplication",NJ="DeleteBucketTagging",MJ="DeleteBucketTaggingRequest",LJ="DeleteBucketWebsite",$J="DeleteBucketWebsiteRequest",UJ="DataExport",jJ="DestinationIfMatch",zJ="DestinationIfModifiedSince",qJ="DestinationIfNoneMatch",HJ="DestinationIfUnmodifiedSince",co="DeleteMarker",GJ="DeleteMarkerEntry",DO="DeleteMarkerReplication",VJ="DeleteMarkerVersionId",SO="DeleteMarkers",tv="DisplayName",WJ="DeletedObject",KJ="DeleteObjectOutput",YJ="DeleteObjectsOutput",XJ="DeleteObjectRequest",ZJ="DeleteObjectsRequest",QJ="DeleteObjectTagging",JJ="DeleteObjectTaggingOutput",eee="DeleteObjectTaggingRequest",tee="DeletedObjects",nee="DeleteObject",ree="DeleteObjects",iee="DeletePublicAccessBlock",see="DeletePublicAccessBlockRequest",oee="DataRedundancy",CO="DefaultRetention",aee="DeleteResult",TO="DestinationResult",AO="Date",Lx="Delete",cee="Deleted",us="Delimiter",Xf="Destination",uee="Description",RO="Details",ni="Expiration",lee="EmailAddress",kO="EventBridgeConfiguration",X="ExpectedBucketOwner",rl="EncryptionConfiguration",OO="ErrorCode",pee="ErrorDetails",nv="ErrorDocument",dee="EndEvent",fee="ExposeHeaders",mee="ExposeHeader",FO="ErrorMessage",hee="ExpiredObjectDeleteMarker",BO="ExistingObjectReplication",Of="ExpiresString",IO="ExpectedSourceBucketOwner",rv="EncryptionType",gee="EncryptionTypeList",yee="EncryptionTypeMismatch",$t="ETag",ls="EncodingType",xee="EventThreshold",PO="ExpressionType",iv="Encryption",vee="Enabled",NO="End",MO="Errors",il="Error",sv="Events",ov="Event",Fr="Expires",LO="Expression",Oi="Filter",$O="FieldDelimiter",bee="FileHeaderInfo",_ee="FetchOwner",UO="FilterRule",wee="FilterRuleList",Eee="FilterRules",Dee="Field",jO="Format",See="Frequency",Zf="Grants",Cee="GetBucketAbac",Tee="GetBucketAccelerateConfiguration",Aee="GetBucketAccelerateConfigurationOutput",Ree="GetBucketAnalyticsConfigurationOutput",kee="GetBucketAccelerateConfigurationRequest",Oee="GetBucketAnalyticsConfigurationRequest",Fee="GetBucketAnalyticsConfiguration",Bee="GetBucketAbacOutput",Iee="GetBucketAclOutput",Pee="GetBucketAbacRequest",Nee="GetBucketAclRequest",Mee="GetBucketAcl",Lee="GetBucketCors",$ee="GetBucketCorsOutput",Uee="GetBucketCorsRequest",jee="GetBucketEncryption",zee="GetBucketEncryptionOutput",qee="GetBucketEncryptionRequest",Hee="GetBucketInventoryConfiguration",Gee="GetBucketInventoryConfigurationOutput",Vee="GetBucketInventoryConfigurationRequest",Wee="GetBucketIntelligentTieringConfiguration",Kee="GetBucketIntelligentTieringConfigurationOutput",Yee="GetBucketIntelligentTieringConfigurationRequest",Xee="GetBucketLocation",Zee="GetBucketLifecycleConfiguration",Qee="GetBucketLifecycleConfigurationOutput",Jee="GetBucketLifecycleConfigurationRequest",ete="GetBucketLocationOutput",tte="GetBucketLoggingOutput",nte="GetBucketLocationRequest",rte="GetBucketLoggingRequest",ite="GetBucketLogging",ste="GetBucketMetadataConfiguration",ote="GetBucketMetadataConfigurationOutput",ate="GetBucketMetricsConfigurationOutput",zO="GetBucketMetadataConfigurationResult",cte="GetBucketMetadataConfigurationRequest",ute="GetBucketMetricsConfigurationRequest",lte="GetBucketMetricsConfiguration",pte="GetBucketMetadataTableConfiguration",dte="GetBucketMetadataTableConfigurationOutput",qO="GetBucketMetadataTableConfigurationResult",fte="GetBucketMetadataTableConfigurationRequest",mte="GetBucketNotificationConfiguration",hte="GetBucketNotificationConfigurationRequest",gte="GetBucketOwnershipControls",yte="GetBucketOwnershipControlsOutput",xte="GetBucketOwnershipControlsRequest",vte="GetBucketPolicy",bte="GetBucketPolicyOutput",_te="GetBucketPolicyRequest",wte="GetBucketPolicyStatus",Ete="GetBucketPolicyStatusOutput",Dte="GetBucketPolicyStatusRequest",Ste="GetBucketReplication",Cte="GetBucketReplicationOutput",Tte="GetBucketRequestPayment",Ate="GetBucketRequestPaymentOutput",Rte="GetBucketRequestPaymentRequest",kte="GetBucketReplicationRequest",Ote="GetBucketTagging",Fte="GetBucketTaggingOutput",Bte="GetBucketTaggingRequest",Ite="GetBucketVersioning",Pte="GetBucketVersioningOutput",Nte="GetBucketVersioningRequest",Mte="GetBucketWebsite",Lte="GetBucketWebsiteOutput",$te="GetBucketWebsiteRequest",Oa="GrantFullControl",HO="GlacierJobParameters",Ute="GetObject",jte="GetObjectAcl",zte="GetObjectAclOutput",qte="GetObjectAttributesOutput",Hte="GetObjectAttributesParts",Gte="GetObjectAclRequest",Vte="GetObjectAttributesResponse",Wte="GetObjectAttributesRequest",Kte="GetObjectAttributes",Yte="GetObjectLockConfiguration",Xte="GetObjectLockConfigurationOutput",Zte="GetObjectLockConfigurationRequest",Qte="GetObjectLegalHold",Jte="GetObjectLegalHoldOutput",ene="GetObjectLegalHoldRequest",tne="GetObjectOutput",nne="GetObjectRequest",rne="GetObjectRetentionOutput",ine="GetObjectRetentionRequest",sne="GetObjectRetention",one="GetObjectTagging",ane="GetObjectTaggingOutput",cne="GetObjectTorrentOutput",une="GetObjectTaggingRequest",lne="GetObjectTorrentRequest",pne="GetObjectTorrent",dne="GetPublicAccessBlock",fne="GetPublicAccessBlockOutput",mne="GetPublicAccessBlockRequest",Fa="GrantRead",Ba="GrantReadACP",av="GrantWrite",Ia="GrantWriteACP",cv="Grant",uv="Grantee",hne="HeadBucket",gne="HeadBucketOutput",yne="HeadBucketRequest",xne="HttpErrorCodeReturnedEquals",GO="HostName",vne="HeadObject",bne="HeadObjectOutput",_ne="HeadObjectRequest",wne="HttpRedirectCode",At="Id",Gu="InventoryConfiguration",VO="InventoryConfigurationList",Pa="ID",lv="IndexDocument",Ene="InventoryDestination",Dne="IsEnabled",Sne="InventoryEncryption",Cne="InventoryFilter",WO="IsLatest",Na="IfMatch",Tne="IfMatchInitiatedTime",Ane="IfMatchLastModifiedTime",Rne="IfMatchSize",pv="If-Modified-Since",KO="IfModifiedSince",kne="InitiateMultipartUploadResult",uo="If-Match",sl="IfNoneMatch",Ma="If-None-Match",One="InventoryOptionalFields",Fne="InvalidObjectState",Bne="IncludedObjectVersions",Hk="IsPublic",Gk="IgnorePublicAcls",Ine="IdempotencyParameterMismatch",Pne="InvalidRequest",Nne="IsRestoreInProgress",dv="InputSerialization",Mne="InventoryS3BucketDestination",Lne="InventorySchedule",ri="IsTruncated",$ne="IntelligentTieringAndOperator",Vu="IntelligentTieringConfiguration",YO="IntelligentTieringConfigurationList",XO="InventoryTableConfigurationResult",Une="InventoryTableConfigurationUpdates",Ff="InventoryTableConfiguration",jne="IntelligentTieringFilter",ZO="IfUnmodifiedSince",fv="If-Unmodified-Since",zne="InvalidWriteOffset",mv="Initiator",qne="Initiated",QO="JSON",Hne="JSONInput",Gne="JSONOutput",Bf="JournalTableConfiguration",JO="JournalTableConfigurationResult",Vne="JournalTableConfigurationUpdates",he="Key",Wne="KeyCount",Kne="KeyId",Yne="KmsKeyArn",Qf="KeyMarker",Xne="KMSContext",Zne="KMSKeyArn",Qne="KMSKeyId",Jne="KMSMasterKeyID",ere="KeyPrefixEquals",If="Location",tre="ListAllMyBucketsResult",nre="ListAllMyDirectoryBucketsResult",rre="ListBuckets",ire="ListBucketAnalyticsConfigurations",sre="ListBucketAnalyticsConfigurationsOutput",ore="ListBucketAnalyticsConfigurationResult",are="ListBucketAnalyticsConfigurationsRequest",cre="ListBucketInventoryConfigurations",ure="ListBucketInventoryConfigurationsOutput",lre="ListBucketInventoryConfigurationsRequest",pre="ListBucketIntelligentTieringConfigurations",dre="ListBucketIntelligentTieringConfigurationsOutput",fre="ListBucketIntelligentTieringConfigurationsRequest",mre="ListBucketMetricsConfigurations",hre="ListBucketMetricsConfigurationsOutput",gre="ListBucketMetricsConfigurationsRequest",yre="ListBucketsOutput",xre="ListBucketsRequest",eF="ListBucketResult",$x="LocationConstraint",Ux="LifecycleConfiguration",vre="ListDirectoryBuckets",bre="ListDirectoryBucketsOutput",_re="ListDirectoryBucketsRequest",hv="LoggingEnabled",wre="LifecycleExpiration",Ere="LambdaFunctionArn",Dre="LambdaFunctionConfiguration",Sre="LambdaFunctionConfigurationList",Cre="LambdaFunctionConfigurations",Pf="LegalHold",Tre="LocationInfo",Are="ListInventoryConfigurationsResult",ii="LastModified",Rre="ListMetricsConfigurationsResult",kre="LastModifiedTime",Ore="ListMultipartUploads",Fre="ListMultipartUploadsOutput",Bre="ListMultipartUploadsResult",Ire="ListMultipartUploadsRequest",gv="Last-Modified",Pre="ListObjects",Nre="ListObjectsOutput",Mre="ListObjectsRequest",Lre="ListObjectsV2",$re="ListObjectsV2Output",Ure="ListObjectVersionsOutput",jre="ListObjectsV2Request",zre="ListObjectVersionsRequest",qre="ListObjectVersions",Hre="ListParts",Gre="ListPartsOutput",Vre="ListPartsResult",Wre="ListPartsRequest",Kre="LifecycleRule",Yre="LifecycleRuleAndOperator",Xre="LifecycleRuleFilter",Zre="LifecycleRules",Qre="ListVersionsResult",La="Metadata",Jre="MetricsAndOperator",eie="MaxAgeSeconds",tie="MaxBuckets",jx="MetadataConfiguration",tF="MetricsConfigurationList",nF="MetadataConfigurationResult",Wu="MetricsConfiguration",nie="MetadataDirective",rie="MaxDirectoryBuckets",rF="MfaDelete",iF="MetadataEntry",iie="MetricsFilter",yv="MFA",sF="MFADelete",$a="MaxKeys",xv="MissingMeta",sie="MpuObjectSize",Jf="MaxParts",zx="MetadataTableConfiguration",oF="MetadataTableConfigurationResult",oie="MetadataTableEncryptionConfiguration",aF="MultipartUpload",aie="MultipartUploadList",cF="MaxUploads",uF="Marker",lF="Metrics",cie="Message",uie="Minutes",pF="Mode",lo="Name",qx="NotificationConfiguration",lie="NotificationConfigurationFilter",ol="NextContinuationToken",dF="NoncurrentDays",pie="NonEmptyKmsKeyArnString",die="NotFound",fF="NextKeyMarker",fie="NextMarker",mF="NewerNoncurrentVersions",hF="NextPartNumberMarker",mie="NoSuchBucket",hie="NoSuchKey",gie="NoSuchUpload",yie="NextUploadIdMarker",gF="NoncurrentVersionExpiration",xie="NextVersionIdMarker",vie="NoncurrentVersionTransitions",bie="NoncurrentVersionTransitionList",yF="NoncurrentVersionTransition",Ir="Owner",_ie="ObjectAttributes",wie="ObjectAlreadyInActiveTierError",Nf="OwnershipControls",Eie="OwnershipControlsRule",Die="OwnershipControlsRules",xF="ObjectEncryption",Sie="OptionalFields",Cie="ObjectIdentifier",Tie="ObjectIdentifierList",vF="OutputLocation",Mf="ObjectLockConfiguration",Aie="ObjectLockEnabled",Rie="ObjectLockEnabledForBucket",kie="ObjectLockLegalHold",Ua="ObjectLockLegalHoldStatus",ja="ObjectLockMode",Oie="ObjectLockRetention",za="ObjectLockRetainUntilDate",Fie="ObjectLockRule",Bie="ObjectList",Iie="ObjectNotInActiveTierError",bF="ObjectOwnership",vv="OptionalObjectAttributes",Pie="ObjectParts",Nie="ObjectPart",Mie="ObjectSize",_F="ObjectSizeGreaterThan",wF="ObjectSizeLessThan",Lie="OutputSchemaVersion",bv="OutputSerialization",$ie="ObjectVersion",Uie="ObjectVersionList",jie="Objects",EF="Object",Xe="Prefix",Lf="PublicAccessBlockConfiguration",zie="PutBucketAbac",qie="PutBucketAccelerateConfiguration",Hie="PutBucketAccelerateConfigurationRequest",Gie="PutBucketAnalyticsConfigurationRequest",Vie="PutBucketAnalyticsConfiguration",Wie="PutBucketAbacRequest",Kie="PutBucketAclRequest",Yie="PutBucketAcl",Xie="PutBucketCors",Zie="PutBucketCorsRequest",Qie="PutBucketEncryption",Jie="PutBucketEncryptionRequest",ese="PutBucketInventoryConfiguration",tse="PutBucketInventoryConfigurationRequest",nse="PutBucketIntelligentTieringConfiguration",rse="PutBucketIntelligentTieringConfigurationRequest",ise="PutBucketLogging",sse="PutBucketLifecycleConfiguration",ose="PutBucketLifecycleConfigurationOutput",ase="PutBucketLifecycleConfigurationRequest",cse="PutBucketLoggingRequest",use="PutBucketMetricsConfiguration",lse="PutBucketMetricsConfigurationRequest",pse="PutBucketNotificationConfiguration",dse="PutBucketNotificationConfigurationRequest",fse="PutBucketOwnershipControls",mse="PutBucketOwnershipControlsRequest",hse="PutBucketPolicy",gse="PutBucketPolicyRequest",yse="PutBucketReplication",xse="PutBucketRequestPayment",vse="PutBucketRequestPaymentRequest",bse="PutBucketReplicationRequest",_se="PutBucketTagging",wse="PutBucketTaggingRequest",Ese="PutBucketVersioning",Dse="PutBucketVersioningRequest",Sse="PutBucketWebsite",Cse="PutBucketWebsiteRequest",em="PartsCount",Tse="PartitionDateSource",Ase="ProgressEvent",Rse="ParquetInput",kse="PartsList",po="PartNumber",tm="PartNumberMarker",Ose="PutObject",Fse="PutObjectAcl",Bse="PutObjectAclOutput",Ise="PutObjectAclRequest",Pse="PutObjectLockConfiguration",Nse="PutObjectLockConfigurationOutput",Mse="PutObjectLockConfigurationRequest",Lse="PutObjectLegalHold",$se="PutObjectLegalHoldOutput",Use="PutObjectLegalHoldRequest",jse="PutObjectOutput",zse="PutObjectRequest",qse="PutObjectRetentionOutput",Hse="PutObjectRetentionRequest",Gse="PutObjectRetention",Vse="PutObjectTagging",Wse="PutObjectTaggingOutput",Kse="PutObjectTaggingRequest",$f="PartitionedPrefix",Yse="PutPublicAccessBlock",Xse="PutPublicAccessBlockRequest",DF="PolicyStatus",nm="Parts",rm="Part",Zse="Parquet",SF="Payer",CF="Payload",TF="Permission",AF="Policy",RF="Progress",Qse="Priority",kF="Protocol",Jse="Quiet",eoe="QueueArn",OF="QuoteCharacter",toe="QueueConfigurationList",noe="QueueConfigurations",FF="QueueConfiguration",BF="QuoteEscapeCharacter",roe="QuoteFields",ioe="Queue",al="Rules",_v="RedirectAllRequestsTo",Ze="RequestCharged",IF="ResponseCacheControl",PF="ResponseContentDisposition",NF="ResponseContentEncoding",MF="ResponseContentLanguage",LF="ResponseContentType",Uf="ReplicationConfiguration",wv="RecordDelimiter",$F="ResponseExpires",soe="RestoreExpiryDate",im="RecordExpiration",ooe="RecordsEvent",aoe="ReplicaKmsKeyID",coe="ReplaceKeyPrefixWith",uoe="ReplaceKeyWith",UF="ReplicaModifications",loe="RenameObject",poe="RenameObjectOutput",doe="RestoreObjectOutput",foe="RestoreOutputPath",moe="RenameObjectRequest",hoe="RestoreObjectRequest",goe="RestoreObject",Ue="RequestPayer",Vk="RestrictPublicBuckets",jf="RequestPaymentConfiguration",jF="RequestProgress",Ev="RoutingRules",yoe="ReplicationRuleAndOperator",xoe="ReplicationRuleFilter",voe="ReplicationRule",boe="ReplicationRules",_oe="RequestRoute",Hx="RestoreRequest",zF="RoutingRule",Dv="ReplicationStatus",Sv="RestoreStatus",woe="RenameSource",qF="ReplicationTime",Eoe="ReplicationTimeValue",Doe="RequestToken",Soe="RetainUntilDate",zf="Range",Cv="Restore",Coe="Records",HF="Redirect",qf="Retention",Toe="Role",qa="Rule",nn="Status",GF="StartAfter",Wk="SecretAccessKey",Aoe="SseAlgorithm",Roe="StreamingBlob",VF="S3BucketDestination",rn="StorageClass",WF="StorageClassAnalysis",koe="StorageClassAnalysisDataExport",Ooe="SessionCredentialValue",Foe="SessionCredentials",Boe="StatusCode",Ioe="SkipDestinationValidation",Poe="StatsEvent",Noe="SourceIfMatch",Moe="SourceIfModifiedSince",Loe="SourceIfNoneMatch",$oe="SourceIfUnmodifiedSince",sm="SSE-KMS",KF="SseKmsEncryptedObjects",Uoe="S3KeyFilter",joe="S3Key",zoe="S3Location",qoe="SessionMode",Hoe="SelectObjectContent",Goe="SelectObjectContentEventStream",Voe="SelectObjectContentOutput",Woe="SelectObjectContentRequest",YF="SelectParameters",Hf="SimplePrefix",XF="ScanRange",ZF="SSE-S3",QF="SourceSelectionCriteria",Mn="ServerSideEncryption",Koe="SSEAlgorithm",Yoe="ServerSideEncryptionByDefault",Gf="ServerSideEncryptionConfiguration",Rt="SSECustomerAlgorithm",dr="SSECustomerKey",kt="SSECustomerKeyMD5",Tv="SSEKMS",Xoe="SSEKMSEncryption",Fi="SSEKMSEncryptionContext",En="SSEKMSKeyId",Zoe="ServerSideEncryptionRule",Qoe="ServerSideEncryptionRules",JF="SSES3",Kk="SessionToken",eB="S3TablesDestination",tB="S3TablesDestinationResult",Joe="S3",eae="Schedule",Ha="Size",tae="Start",nB="Stats",nae="Suffix",Ga="Tags",Av="TableArn",rae="TopicArn",iae="TargetBucket",Rv="TableBucketArn",sae="TableBucketType",kv="TagCount",oae="TopicConfigurationList",aae="TopicConfigurations",rB="TopicConfiguration",cae="TaggingDirective",Ov="TransitionDefaultMinimumObjectSize",iB="TargetGrants",uae="TargetGrant",lae="TieringList",pae="TransitionList",dae="TooManyParts",sB="TableNamespace",om="TableName",oB="TargetObjectKeyFormat",fae="TargetPrefix",mae="TotalPartsCount",am="TagSet",aB="TableStatus",fr="Tag",Br="Tagging",cB="Tier",hae="Tierings",uB="Tiering",gae="Time",lB="Token",yae="Topic",xae="Transitions",pB="Transition",cl="Type",vae="Uploads",bae="UpdateBucketMetadataInventoryTableConfiguration",_ae="UpdateBucketMetadataInventoryTableConfigurationRequest",wae="UpdateBucketMetadataJournalTableConfiguration",Eae="UpdateBucketMetadataJournalTableConfigurationRequest",ps="UploadId",dB="UploadIdMarker",fB="UserMetadata",Dae="UpdateObjectEncryption",Sae="UpdateObjectEncryptionRequest",Cae="UpdateObjectEncryptionResponse",Tae="UploadPart",Aae="UploadPartCopy",Rae="UploadPartCopyOutput",kae="UploadPartCopyRequest",Oae="UploadPartOutput",Fae="UploadPartRequest",Bae="URI",Iae="Upload",Fv="Value",Vf="VersioningConfiguration",Ne="VersionId",mB="VersionIdMarker",Pae="Versions",Nae="Version",Wf="WebsiteConfiguration",Mae="WriteGetObjectResponse",Lae="WriteGetObjectResponseRequest",$ae="WriteOffsetBytes",ul="WebsiteRedirectLocation",Uae="Years",hB="accept-ranges",jae="bucket-region",Dn="client",fo="continuation-token",cm="delimiter",Sn="error",Bv="eventPayload",zae="endpoint",um="encoding-type",qae="fetch-owner",K="http",je="httpChecksum",Ln="httpError",y="httpHeader",Hae="hostLabel",Te="httpPayload",Va="httpPrefixHeaders",ne="httpQuery",gB="http://www.w3.org/2001/XMLSchema-instance",mr="id",Gae="idempotencyToken",yB="key-marker",Vae="marker",Wae="max-buckets",Kae="max-directory-buckets",Iv="max-keys",Yae="max-parts",Xae="max-uploads",ll="prefix",lm="partNumber",Zae="part-number-marker",xB="response-cache-control",vB="response-content-disposition",bB="response-content-encoding",_B="response-content-language",wB="response-content-type",EB="response-expires",DB="smithy.ts.sdk.synthetic.com.amazonaws.s3",Qae="start-after",SB="streaming",pl="uploadId",Jae="upload-id-marker",Cn="versionId",ece="version-id-marker",CB="xsi",tce="xmlAttribute",pe="xmlFlattened",j="xmlName",TB="xmlNamespace",Wa="x-amz-acl",AB="x-amz-abort-date",nce="x-amz-access-point-alias",RB="x-amz-abort-rule-id",rce="x-amz-archive-status",kB="x-amz-bucket-arn",Pv="x-amz-bypass-governance-retention",ice="x-amz-bucket-location-name",sce="x-amz-bucket-location-type",oce="x-amz-bucket-namespace",ace="x-amz-bucket-object-lock-enabled",OB="x-amz-bucket-object-lock-token",cce="x-amz-bucket-region",Nv="x-amz-checksum-algorithm",mo="x-amz-checksum-crc32",ho="x-amz-checksum-crc32c",go="x-amz-checksum-crc64nvme",FB="x-amz-checksum-mode",uce="x-amz-confirm-remove-self-bucket-access",yo="x-amz-checksum-sha1",xo="x-amz-checksum-sha256",BB="x-amz-copy-source",IB="x-amz-copy-source-if-match",PB="x-amz-copy-source-if-modified-since",NB="x-amz-copy-source-if-none-match",MB="x-amz-copy-source-if-unmodified-since",lce="x-amz-create-session-mode",pce="x-amz-copy-source-range",LB="x-amz-copy-source-server-side-encryption-customer-algorithm",$B="x-amz-copy-source-server-side-encryption-customer-key",UB="x-amz-copy-source-server-side-encryption-customer-key-MD5",jB="x-amz-copy-source-version-id",Ka="x-amz-checksum-type",dce="x-amz-client-token",pm="x-amz-delete-marker",dl="x-amz-expiration",Z="x-amz-expected-bucket-owner",fce="x-amz-fwd-error-code",mce="x-amz-fwd-error-message",hce="x-amz-fwd-header-Cache-Control",gce="x-amz-fwd-header-Content-Disposition",yce="x-amz-fwd-header-Content-Encoding",xce="x-amz-fwd-header-Content-Language",vce="x-amz-fwd-header-Content-Range",bce="x-amz-fwd-header-Content-Type",_ce="x-amz-fwd-header-ETag",wce="x-amz-fwd-header-Expires",Ece="x-amz-fwd-header-Last-Modified",Dce="x-amz-fwd-header-accept-ranges",Sce="x-amz-fwd-header-x-amz-checksum-crc32",Cce="x-amz-fwd-header-x-amz-checksum-crc32c",Tce="x-amz-fwd-header-x-amz-checksum-crc64nvme",Ace="x-amz-fwd-header-x-amz-checksum-sha1",Rce="x-amz-fwd-header-x-amz-checksum-sha256",kce="x-amz-fwd-header-x-amz-delete-marker",Oce="x-amz-fwd-header-x-amz-expiration",Fce="x-amz-fwd-header-x-amz-missing-meta",Bce="x-amz-fwd-header-x-amz-mp-parts-count",Ice="x-amz-fwd-header-x-amz-object-lock-legal-hold",Pce="x-amz-fwd-header-x-amz-object-lock-mode",Nce="x-amz-fwd-header-x-amz-object-lock-retain-until-date",Mce="x-amz-fwd-header-x-amz-restore",Lce="x-amz-fwd-header-x-amz-request-charged",$ce="x-amz-fwd-header-x-amz-replication-status",Uce="x-amz-fwd-header-x-amz-storage-class",jce="x-amz-fwd-header-x-amz-server-side-encryption",zce="x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id",qce="x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled",Hce="x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm",Gce="x-amz-fwd-header-x-amz-server-side-encryption-customer-key-MD5",Vce="x-amz-fwd-header-x-amz-tagging-count",Wce="x-amz-fwd-header-x-amz-version-id",Kce="x-amz-fwd-status",Ya="x-amz-grant-full-control",Xa="x-amz-grant-read",Za="x-amz-grant-read-acp",Mv="x-amz-grant-write",Qa="x-amz-grant-write-acp",Yce="x-amz-if-match-initiated-time",Xce="x-amz-if-match-last-modified-time",Zce="x-amz-if-match-size",Ja="x-amz-meta-",Lv="x-amz-mfa",Qce="x-amz-metadata-directive",zB="x-amz-missing-meta",Jce="x-amz-mp-object-size",eue="x-amz-max-parts",qB="x-amz-mp-parts-count",tue="x-amz-object-attributes",fl="x-amz-object-lock-legal-hold",ml="x-amz-object-lock-mode",hl="x-amz-object-lock-retain-until-date",nue="x-amz-object-ownership",$v="x-amz-optional-object-attributes",rue="x-amz-object-size",iue="x-amz-part-number-marker",HB="x-amz-restore",et="x-amz-request-charged",sue="x-amz-restore-output-path",ze="x-amz-request-payer",oue="x-amz-request-route",GB="x-amz-replication-status",aue="x-amz-rename-source",cue="x-amz-rename-source-if-match",uue="x-amz-rename-source-if-modified-since",lue="x-amz-rename-source-if-none-match",pue="x-amz-rename-source-if-unmodified-since",due="x-amz-request-token",gl="x-amz-storage-class",We="x-amz-sdk-checksum-algorithm",fue="x-amz-skip-destination-validation",VB="x-amz-source-expected-bucket-owner",Zn="x-amz-server-side-encryption",Qn="x-amz-server-side-encryption-aws-kms-key-id",Jn="x-amz-server-side-encryption-bucket-key-enabled",ds="x-amz-server-side-encryption-context",Ut="x-amz-server-side-encryption-customer-algorithm",Pr="x-amz-server-side-encryption-customer-key",jt="x-amz-server-side-encryption-customer-key-MD5",Uv="x-amz-tagging",WB="x-amz-tagging-count",mue="x-amz-tagging-directive",jv="x-amz-transition-default-minimum-object-size",si="x-amz-version-id",hue="x-amz-write-offset-bytes",yl="x-amz-website-redirect-location",gue="xsi:type",b="com.amazonaws.s3",KB=Qr.for(DB),yue=[-3,DB,"S3ServiceException",0,[],[]];KB.registerError(yue,St);var sn=Qr.for(b),xue=[-3,b,ZZ,{[Sn]:Dn,[Ln]:403},[],[]];sn.registerError(xue,ff);var vue=[-3,b,hQ,{[Sn]:Dn,[Ln]:409},[],[]];sn.registerError(vue,hf);var bue=[-3,b,yQ,{[Sn]:Dn,[Ln]:409},[],[]];sn.registerError(bue,gf);var _ue=[-3,b,yee,{[Sn]:Dn,[Ln]:400},[],[]];sn.registerError(_ue,_f);var wue=[-3,b,Ine,{[Sn]:Dn,[Ln]:400},[],[]];sn.registerError(wue,Sf);var Eue=[-3,b,Fne,{[Sn]:Dn,[Ln]:403},[rn,nO],[0,0]];sn.registerError(Eue,xf);var Due=[-3,b,Pne,{[Sn]:Dn,[Ln]:400},[],[]];sn.registerError(Due,wf);var Sue=[-3,b,zne,{[Sn]:Dn,[Ln]:400},[],[]];sn.registerError(Sue,Ef);var Cue=[-3,b,mie,{[Sn]:Dn,[Ln]:404},[],[]];sn.registerError(Cue,yf);var Tue=[-3,b,hie,{[Sn]:Dn,[Ln]:404},[],[]];sn.registerError(Tue,vf);var Aue=[-3,b,gie,{[Sn]:Dn,[Ln]:404},[],[]];sn.registerError(Aue,df);var Rue=[-3,b,die,{[Sn]:Dn},[],[]];sn.registerError(Rue,bf);var kue=[-3,b,wie,{[Sn]:Dn,[Ln]:403},[],[]];sn.registerError(kue,Cf);var Oue=[-3,b,Iie,{[Sn]:Dn,[Ln]:403},[],[]];sn.registerError(Oue,mf);var Fue=[-3,b,dae,{[Sn]:Dn,[Ln]:400},[],[]];sn.registerError(Fue,Df);var YB=[KB,sn],XB=[0,b,Jx,8,0],Bue=[0,b,pie,8,0],Yk=[0,b,Ooe,8,0],Nr=[0,b,dr,8,0],fs=[0,b,Fi,8,0],Kt=[0,b,En,8,0],xl=[0,b,Roe,{[SB]:1},42],ZB=[3,b,Af,0,[nn],[0]],Iue=[3,b,Jk,0,[uJ],[1]],Pue=[3,b,sQ,0,[Ze],[[0,{[y]:et}]]],Nue=[3,b,oQ,0,[V,he,ps,Ue,X,Tne],[[0,1],[0,1],[0,{[ne]:pl}],[0,{[y]:ze}],[0,{[y]:Z}],[6,{[y]:Yce}]],3],Mue=[3,b,Tf,0,[nn],[0]],QB=[3,b,ao,0,[Zf,Ir],[[()=>fm,{[j]:Kf}],()=>Bi]],Lue=[3,b,Zk,0,[Ir],[0],1],$ue=[3,b,XZ,0,[Xe,Ga],[0,[()=>Ii,{[pe]:1,[j]:fr}]]],zv=[3,b,Hu,0,[At,WF,Oi],[0,()=>Hme,[()=>Phe,0]],2],Uue=[3,b,QZ,0,[VF],[()=>jue],1],jue=[3,b,dQ,0,[jO,V,gQ,Xe],[0,0,0,0],2],zue=[3,b,rO,0,[rv],[[()=>dhe,{[pe]:1}]]],que=[3,b,V,0,[lo,FQ,Kx,Vx],[0,4,0,0]],Hue=[3,b,xQ,0,[oee,cl],[0,0]],Gue=[3,b,vQ,0,[al],[[()=>vI,{[pe]:1,[j]:qa}]],1],Vue=[3,b,Rf,0,[hv],[[()=>iI,0]]],Wue=[3,b,aO,0,[xn,vn,bn,_n,wn,Xn],[0,0,0,0,0,0]],Kue=[3,b,VQ,0,[Xe],[0]],Yue=[3,b,NQ,0,[nm],[[()=>uhe,{[pe]:1,[j]:rm}]]],Xue=[3,b,YQ,0,[$t,xn,vn,bn,_n,wn,po],[0,0,0,0,0,0,1]],Zue=[3,b,MQ,{[j]:$Q},[If,V,he,ni,$t,xn,vn,bn,_n,wn,Xn,Mn,Ne,En,tn,Ze],[0,0,0,[0,{[y]:dl}],0,0,0,0,0,0,0,[0,{[y]:Zn}],[0,{[y]:si}],[()=>Kt,{[y]:Qn}],[2,{[y]:Jn}],[0,{[y]:et}]]],Que=[3,b,UQ,0,[V,he,ps,aF,xn,vn,bn,_n,wn,Xn,sie,Ue,X,Na,sl,Rt,dr,kt],[[0,1],[0,1],[0,{[ne]:pl}],[()=>Yue,{[Te]:1,[j]:cO}],[0,{[y]:mo}],[0,{[y]:ho}],[0,{[y]:go}],[0,{[y]:yo}],[0,{[y]:xo}],[0,{[y]:Ka}],[1,{[y]:Jce}],[0,{[y]:ze}],[0,{[y]:Z}],[0,{[y]:uo}],[0,{[y]:Ma}],[0,{[y]:Ut}],[()=>Nr,{[y]:Pr}],[0,{[y]:jt}]],3],Jue=[3,b,wO,0,[xne,ere],[0,0]],ele=[3,b,BQ,0,[],[]],tle=[3,b,HQ,0,[lO,ni,_O,Ne,Mn,Rt,kt,En,Fi,tn,Ze],[[()=>rle,16],[0,{[y]:dl}],[0,{[y]:jB}],[0,{[y]:si}],[0,{[y]:Zn}],[0,{[y]:Ut}],[0,{[y]:jt}],[()=>Kt,{[y]:Qn}],[()=>fs,{[y]:ds}],[2,{[y]:Jn}],[0,{[y]:et}]]],nle=[3,b,GQ,0,[V,fO,he,Da,Sa,De,Ca,Ta,Aa,Ra,mO,hO,gO,yO,Fr,Oa,Fa,Ba,Ia,Na,sl,La,nie,cae,Mn,rn,ul,Rt,dr,kt,En,Fi,tn,xO,Jx,vO,Ue,Br,ja,za,Ua,X,IO],[[0,1],[0,{[y]:BB}],[0,1],[0,{[y]:Wa}],[0,{[y]:Xu}],[0,{[y]:Nv}],[0,{[y]:Zu}],[0,{[y]:Qu}],[0,{[y]:Ju}],[0,{[y]:nl}],[0,{[y]:IB}],[4,{[y]:PB}],[0,{[y]:NB}],[4,{[y]:MB}],[4,{[y]:Fr}],[0,{[y]:Ya}],[0,{[y]:Xa}],[0,{[y]:Za}],[0,{[y]:Qa}],[0,{[y]:uo}],[0,{[y]:Ma}],[128,{[Va]:Ja}],[0,{[y]:Qce}],[0,{[y]:mue}],[0,{[y]:Zn}],[0,{[y]:gl}],[0,{[y]:yl}],[0,{[y]:Ut}],[()=>Nr,{[y]:Pr}],[0,{[y]:jt}],[()=>Kt,{[y]:Qn}],[()=>fs,{[y]:ds}],[2,{[y]:Jn}],[0,{[y]:LB}],[()=>XB,{[y]:$B}],[0,{[y]:UB}],[0,{[y]:ze}],[0,{[y]:Uv}],[0,{[y]:ml}],[5,{[y]:hl}],[0,{[y]:fl}],[0,{[y]:Z}],[0,{[y]:VB}]],3],rle=[3,b,lO,0,[$t,ii,Xn,xn,vn,bn,_n,wn],[0,4,0,0,0,0,0,0]],ile=[3,b,pO,0,[$t,ii,xn,vn,bn,_n,wn],[0,4,0,0,0,0,0]],sle=[3,b,kf,0,[Xx],[[()=>xI,{[pe]:1,[j]:Zx}]],1],ole=[3,b,Zx,0,[rQ,cQ,Pa,eQ,fee,eie],[[64,{[pe]:1,[j]:aQ}],[64,{[pe]:1,[j]:uQ}],0,[64,{[pe]:1,[j]:tQ}],[64,{[pe]:1,[j]:mee}],1],2],ale=[3,b,Mx,0,[$x,If,V,Ga],[0,()=>ofe,()=>Hue,[()=>Ii,0]]],cle=[3,b,TQ,0,[V,jx,it,De,X],[[0,1],[()=>afe,{[Te]:1,[j]:jx}],[0,{[y]:rt}],[0,{[y]:We}],[0,{[y]:Z}]],2],ule=[3,b,RQ,0,[V,zx,it,De,X],[[0,1],[()=>lfe,{[Te]:1,[j]:zx}],[0,{[y]:rt}],[0,{[y]:We}],[0,{[y]:Z}]],2],lle=[3,b,kQ,0,[If,Vx],[[0,{[y]:If}],[0,{[y]:kB}]]],ple=[3,b,OQ,0,[V,Da,Mx,Oa,Fa,Ba,av,Ia,Rie,bF,wQ],[[0,1],[0,{[y]:Wa}],[()=>ale,{[Te]:1,[j]:Mx}],[0,{[y]:Ya}],[0,{[y]:Xa}],[0,{[y]:Za}],[0,{[y]:Mv}],[0,{[y]:Qa}],[2,{[y]:ace}],[0,{[y]:nue}],[0,{[y]:oce}]],1],dle=[3,b,LQ,{[j]:kne},[Qk,tO,V,he,ps,Mn,Rt,kt,En,Fi,tn,Ze,De,Xn],[[4,{[y]:AB}],[0,{[y]:RB}],[0,{[j]:V}],0,0,[0,{[y]:Zn}],[0,{[y]:Ut}],[0,{[y]:jt}],[()=>Kt,{[y]:Qn}],[()=>fs,{[y]:ds}],[2,{[y]:Jn}],[0,{[y]:et}],[0,{[y]:Nv}],[0,{[y]:Ka}]]],fle=[3,b,jQ,0,[V,he,Da,Sa,Ca,Ta,Aa,Ra,Fr,Oa,Fa,Ba,Ia,La,Mn,rn,ul,Rt,dr,kt,En,Fi,tn,Ue,Br,ja,za,Ua,X,De,Xn],[[0,1],[0,1],[0,{[y]:Wa}],[0,{[y]:Xu}],[0,{[y]:Zu}],[0,{[y]:Qu}],[0,{[y]:Ju}],[0,{[y]:nl}],[4,{[y]:Fr}],[0,{[y]:Ya}],[0,{[y]:Xa}],[0,{[y]:Za}],[0,{[y]:Qa}],[128,{[Va]:Ja}],[0,{[y]:Zn}],[0,{[y]:gl}],[0,{[y]:yl}],[0,{[y]:Ut}],[()=>Nr,{[y]:Pr}],[0,{[y]:jt}],[()=>Kt,{[y]:Qn}],[()=>fs,{[y]:ds}],[2,{[y]:Jn}],[0,{[y]:ze}],[0,{[y]:Uv}],[0,{[y]:ml}],[5,{[y]:hl}],[0,{[y]:fl}],[0,{[y]:Z}],[0,{[y]:Nv}],[0,{[y]:Ka}]],2],mle=[3,b,ZQ,{[j]:QQ},[qk,Mn,En,Fi,tn],[[()=>Pme,{[j]:qk}],[0,{[y]:Zn}],[()=>Kt,{[y]:Qn}],[()=>fs,{[y]:ds}],[2,{[y]:Jn}]],1],hle=[3,b,eJ,0,[V,qoe,Mn,En,Fi,tn],[[0,1],[0,{[y]:lce}],[0,{[y]:Zn}],[()=>Kt,{[y]:Qn}],[()=>fs,{[y]:ds}],[2,{[y]:Jn}]],1],gle=[3,b,tJ,0,[bee,aJ,BF,wv,$O,OF,pQ],[0,0,0,0,0,0,2]],yle=[3,b,nJ,0,[roe,BF,wv,$O,OF],[0,0,0,0,0]],xle=[3,b,CO,0,[pF,ka,Uae],[0,1,1]],vle=[3,b,Lx,0,[jie,Jse],[[()=>whe,{[pe]:1,[j]:EF}],2],1],ble=[3,b,dJ,0,[V,At,X],[[0,1],[0,{[ne]:mr}],[0,{[y]:Z}]],2],_le=[3,b,mJ,0,[V,X],[[0,1],[0,{[y]:Z}]],1],wle=[3,b,gJ,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Ele=[3,b,bJ,0,[V,At,X],[[0,1],[0,{[ne]:mr}],[0,{[y]:Z}]],2],Dle=[3,b,xJ,0,[V,At,X],[[0,1],[0,{[ne]:mr}],[0,{[y]:Z}]],2],Sle=[3,b,wJ,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Cle=[3,b,DJ,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Tle=[3,b,AJ,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Ale=[3,b,SJ,0,[V,At,X],[[0,1],[0,{[ne]:mr}],[0,{[y]:Z}]],2],Rle=[3,b,kJ,0,[V,X],[[0,1],[0,{[y]:Z}]],1],kle=[3,b,FJ,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Ole=[3,b,IJ,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Fle=[3,b,BJ,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Ble=[3,b,MJ,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Ile=[3,b,$J,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Ple=[3,b,WJ,0,[he,Ne,co,VJ],[0,0,2,0]],Nle=[3,b,GJ,0,[Ir,he,Ne,WO,ii],[()=>Bi,0,0,2,4]],Mle=[3,b,DO,0,[nn],[0]],Lle=[3,b,KJ,0,[co,Ne,Ze],[[2,{[y]:pm}],[0,{[y]:si}],[0,{[y]:et}]]],$le=[3,b,XJ,0,[V,he,yv,Ne,Ue,Wx,X,Na,Ane,Rne],[[0,1],[0,1],[0,{[y]:Lv}],[0,{[ne]:Cn}],[0,{[y]:ze}],[2,{[y]:Pv}],[0,{[y]:Z}],[0,{[y]:uo}],[6,{[y]:Xce}],[1,{[y]:Zce}]],2],Ule=[3,b,YJ,{[j]:aee},[cee,Ze,MO],[[()=>lhe,{[pe]:1}],[0,{[y]:et}],[()=>fhe,{[pe]:1,[j]:il}]]],jle=[3,b,ZJ,0,[V,Lx,yv,Ue,Wx,X,De],[[0,1],[()=>vle,{[Te]:1,[j]:Lx}],[0,{[y]:Lv}],[0,{[y]:ze}],[2,{[y]:Pv}],[0,{[y]:Z}],[0,{[y]:We}]],2],zle=[3,b,JJ,0,[Ne],[[0,{[y]:si}]]],qle=[3,b,eee,0,[V,he,Ne,X],[[0,1],[0,1],[0,{[ne]:Cn}],[0,{[y]:Z}]],2],Hle=[3,b,see,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Gle=[3,b,Xf,0,[V,YZ,rn,Zk,rl,qF,lF],[0,0,0,()=>Lue,()=>Kle,()=>xme,()=>dfe],1],Vle=[3,b,TO,0,[sae,Rv,sB],[0,0,0]],Wle=[3,b,iv,0,[rv,Qne,Xne],[0,[()=>Kt,0],0],1],Kle=[3,b,rl,0,[aoe],[0]],Yle=[3,b,dee,0,[],[]],Xle=[3,b,il,0,[he,Ne,oJ,cie],[0,0,0,0]],qv=[3,b,pee,0,[OO,FO],[0,0]],JB=[3,b,nv,0,[he],[0],1],Zle=[3,b,kO,0,[],[]],Qle=[3,b,BO,0,[nn],[0],1],Jle=[3,b,UO,0,[lo,Fv],[0,0]],epe=[3,b,Bee,0,[Af],[[()=>ZB,16]]],tpe=[3,b,Pee,0,[V,X],[[0,1],[0,{[y]:Z}]],1],npe=[3,b,Aee,{[j]:Tf},[nn,Ze],[0,[0,{[y]:et}]]],rpe=[3,b,kee,0,[V,X,Ue],[[0,1],[0,{[y]:Z}],[0,{[y]:ze}]],1],ipe=[3,b,Iee,{[j]:ao},[Ir,Zf],[()=>Bi,[()=>fm,{[j]:Kf}]]],spe=[3,b,Nee,0,[V,X],[[0,1],[0,{[y]:Z}]],1],ope=[3,b,Ree,0,[Hu],[[()=>zv,16]]],ape=[3,b,Oee,0,[V,At,X],[[0,1],[0,{[ne]:mr}],[0,{[y]:Z}]],2],cpe=[3,b,$ee,{[j]:kf},[Xx],[[()=>xI,{[pe]:1,[j]:Zx}]]],upe=[3,b,Uee,0,[V,X],[[0,1],[0,{[y]:Z}]],1],lpe=[3,b,zee,0,[Gf],[[()=>gI,16]]],ppe=[3,b,qee,0,[V,X],[[0,1],[0,{[y]:Z}]],1],dpe=[3,b,Kee,0,[Vu],[[()=>Hv,16]]],fpe=[3,b,Yee,0,[V,At,X],[[0,1],[0,{[ne]:mr}],[0,{[y]:Z}]],2],mpe=[3,b,Gee,0,[Gu],[[()=>Gv,16]]],hpe=[3,b,Vee,0,[V,At,X],[[0,1],[0,{[ne]:mr}],[0,{[y]:Z}]],2],gpe=[3,b,Qee,{[j]:Ux},[al,Ov],[[()=>vI,{[pe]:1,[j]:qa}],[0,{[y]:jv}]]],ype=[3,b,Jee,0,[V,X],[[0,1],[0,{[y]:Z}]],1],xpe=[3,b,ete,{[j]:$x},[$x],[0]],vpe=[3,b,nte,0,[V,X],[[0,1],[0,{[y]:Z}]],1],bpe=[3,b,tte,{[j]:Rf},[hv],[[()=>iI,0]]],_pe=[3,b,rte,0,[V,X],[[0,1],[0,{[y]:Z}]],1],wpe=[3,b,ote,0,[zO],[[()=>Dpe,16]]],Epe=[3,b,cte,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Dpe=[3,b,zO,0,[nF],[()=>cfe],1],Spe=[3,b,dte,0,[qO],[[()=>Tpe,16]]],Cpe=[3,b,fte,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Tpe=[3,b,qO,0,[oF,nn,il],[()=>pfe,0,()=>qv],2],Ape=[3,b,ate,0,[Wu],[[()=>Wv,16]]],Rpe=[3,b,ute,0,[V,At,X],[[0,1],[0,{[ne]:mr}],[0,{[y]:Z}]],2],kpe=[3,b,hte,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Ope=[3,b,yte,0,[Nf],[[()=>lI,16]]],Fpe=[3,b,xte,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Bpe=[3,b,bte,0,[AF],[[0,16]]],Ipe=[3,b,_te,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Ppe=[3,b,Ete,0,[DF],[[()=>Tfe,16]]],Npe=[3,b,Dte,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Mpe=[3,b,Cte,0,[Uf],[[()=>fI,16]]],Lpe=[3,b,kte,0,[V,X],[[0,1],[0,{[y]:Z}]],1],$pe=[3,b,Ate,{[j]:jf},[SF],[0]],Upe=[3,b,Rte,0,[V,X],[[0,1],[0,{[y]:Z}]],1],jpe=[3,b,Fte,{[j]:Br},[am],[[()=>Ii,0]],1],zpe=[3,b,Bte,0,[V,X],[[0,1],[0,{[y]:Z}]],1],qpe=[3,b,Pte,{[j]:Vf},[nn,sF],[0,[0,{[j]:rF}]]],Hpe=[3,b,Nte,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Gpe=[3,b,Lte,{[j]:Wf},[_v,lv,nv,Ev],[()=>dI,()=>tI,()=>JB,[()=>_I,0]]],Vpe=[3,b,$te,0,[V,X],[[0,1],[0,{[y]:Z}]],1],Wpe=[3,b,zte,{[j]:ao},[Ir,Zf,Ze],[()=>Bi,[()=>fm,{[j]:Kf}],[0,{[y]:et}]]],Kpe=[3,b,Gte,0,[V,he,Ne,Ue,X],[[0,1],[0,1],[0,{[ne]:Cn}],[0,{[y]:ze}],[0,{[y]:Z}]],2],Ype=[3,b,qte,{[j]:Vte},[co,ii,Ne,Ze,$t,aO,Pie,rn,Mie],[[2,{[y]:pm}],[4,{[y]:gv}],[0,{[y]:si}],[0,{[y]:et}],0,()=>Wue,[()=>Xpe,0],0,1]],Xpe=[3,b,Hte,0,[mae,tm,hF,Jf,ri,nm],[[1,{[j]:em}],0,0,1,2,[()=>Che,{[pe]:1,[j]:rm}]]],Zpe=[3,b,Wte,0,[V,he,_ie,Ne,Jf,tm,Rt,dr,kt,Ue,X],[[0,1],[0,1],[64,{[y]:tue}],[0,{[ne]:Cn}],[1,{[y]:eue}],[0,{[y]:iue}],[0,{[y]:Ut}],[()=>Nr,{[y]:Pr}],[0,{[y]:jt}],[0,{[y]:ze}],[0,{[y]:Z}]],3],Qpe=[3,b,Jte,0,[Pf],[[()=>aI,{[Te]:1,[j]:Pf}]]],Jpe=[3,b,ene,0,[V,he,Ne,Ue,X],[[0,1],[0,1],[0,{[ne]:Cn}],[0,{[y]:ze}],[0,{[y]:Z}]],2],ede=[3,b,Xte,0,[Mf],[[()=>oI,16]]],tde=[3,b,Zte,0,[V,X],[[0,1],[0,{[y]:Z}]],1],nde=[3,b,tne,0,[Yu,co,Gx,ni,Cv,ii,tl,$t,xn,vn,bn,_n,wn,Xn,xv,Ne,Sa,Ca,Ta,Aa,Qx,Ra,Fr,Of,ul,Mn,La,Rt,kt,En,tn,rn,Ze,Dv,em,kv,ja,za,Ua],[[()=>xl,16],[2,{[y]:pm}],[0,{[y]:hB}],[0,{[y]:dl}],[0,{[y]:HB}],[4,{[y]:gv}],[1,{[y]:el}],[0,{[y]:$t}],[0,{[y]:mo}],[0,{[y]:ho}],[0,{[y]:go}],[0,{[y]:yo}],[0,{[y]:xo}],[0,{[y]:Ka}],[1,{[y]:zB}],[0,{[y]:si}],[0,{[y]:Xu}],[0,{[y]:Zu}],[0,{[y]:Qu}],[0,{[y]:Ju}],[0,{[y]:dO}],[0,{[y]:nl}],[4,{[y]:Fr}],[0,{[y]:Of}],[0,{[y]:yl}],[0,{[y]:Zn}],[128,{[Va]:Ja}],[0,{[y]:Ut}],[0,{[y]:jt}],[()=>Kt,{[y]:Qn}],[2,{[y]:Jn}],[0,{[y]:gl}],[0,{[y]:et}],[0,{[y]:GB}],[1,{[y]:qB}],[1,{[y]:WB}],[0,{[y]:ml}],[5,{[y]:hl}],[0,{[y]:fl}]]],rde=[3,b,nne,0,[V,he,Na,KO,sl,ZO,zf,IF,PF,NF,MF,LF,$F,Ne,Rt,dr,kt,Ue,po,X,uO],[[0,1],[0,1],[0,{[y]:uo}],[4,{[y]:pv}],[0,{[y]:Ma}],[4,{[y]:fv}],[0,{[y]:zf}],[0,{[ne]:xB}],[0,{[ne]:vB}],[0,{[ne]:bB}],[0,{[ne]:_B}],[0,{[ne]:wB}],[6,{[ne]:EB}],[0,{[ne]:Cn}],[0,{[y]:Ut}],[()=>Nr,{[y]:Pr}],[0,{[y]:jt}],[0,{[y]:ze}],[1,{[ne]:lm}],[0,{[y]:Z}],[0,{[y]:FB}]],2],ide=[3,b,rne,0,[qf],[[()=>cI,{[Te]:1,[j]:qf}]]],sde=[3,b,ine,0,[V,he,Ne,Ue,X],[[0,1],[0,1],[0,{[ne]:Cn}],[0,{[y]:ze}],[0,{[y]:Z}]],2],ode=[3,b,ane,{[j]:Br},[am,Ne],[[()=>Ii,0],[0,{[y]:si}]],1],ade=[3,b,une,0,[V,he,Ne,X,Ue],[[0,1],[0,1],[0,{[ne]:Cn}],[0,{[y]:Z}],[0,{[y]:ze}]],2],cde=[3,b,cne,0,[Yu,Ze],[[()=>xl,16],[0,{[y]:et}]]],ude=[3,b,lne,0,[V,he,Ue,X],[[0,1],[0,1],[0,{[y]:ze}],[0,{[y]:Z}]],2],lde=[3,b,fne,0,[Lf],[[()=>pI,16]]],pde=[3,b,mne,0,[V,X],[[0,1],[0,{[y]:Z}]],1],dde=[3,b,HO,0,[cB],[0],1],fde=[3,b,cv,0,[uv,TF],[[()=>eI,{[TB]:[CB,gB]}],0]],eI=[3,b,uv,0,[cl,tv,lee,Pa,Bae],[[0,{[tce]:1,[j]:gue}],0,0,0,0],1],mde=[3,b,gne,0,[Vx,_Q,bQ,Kx,lQ],[[0,{[y]:kB}],[0,{[y]:sce}],[0,{[y]:ice}],[0,{[y]:cce}],[2,{[y]:nce}]]],hde=[3,b,yne,0,[V,X],[[0,1],[0,{[y]:Z}]],1],gde=[3,b,bne,0,[co,Gx,ni,Cv,mQ,ii,tl,xn,vn,bn,_n,wn,Xn,$t,xv,Ne,Sa,Ca,Ta,Aa,Ra,Qx,Fr,Of,ul,Mn,La,Rt,kt,En,tn,rn,Ze,Dv,em,kv,ja,za,Ua],[[2,{[y]:pm}],[0,{[y]:hB}],[0,{[y]:dl}],[0,{[y]:HB}],[0,{[y]:rce}],[4,{[y]:gv}],[1,{[y]:el}],[0,{[y]:mo}],[0,{[y]:ho}],[0,{[y]:go}],[0,{[y]:yo}],[0,{[y]:xo}],[0,{[y]:Ka}],[0,{[y]:$t}],[1,{[y]:zB}],[0,{[y]:si}],[0,{[y]:Xu}],[0,{[y]:Zu}],[0,{[y]:Qu}],[0,{[y]:Ju}],[0,{[y]:nl}],[0,{[y]:dO}],[4,{[y]:Fr}],[0,{[y]:Of}],[0,{[y]:yl}],[0,{[y]:Zn}],[128,{[Va]:Ja}],[0,{[y]:Ut}],[0,{[y]:jt}],[()=>Kt,{[y]:Qn}],[2,{[y]:Jn}],[0,{[y]:gl}],[0,{[y]:et}],[0,{[y]:GB}],[1,{[y]:qB}],[1,{[y]:WB}],[0,{[y]:ml}],[5,{[y]:hl}],[0,{[y]:fl}]]],yde=[3,b,_ne,0,[V,he,Na,KO,sl,ZO,zf,IF,PF,NF,MF,LF,$F,Ne,Rt,dr,kt,Ue,po,X,uO],[[0,1],[0,1],[0,{[y]:uo}],[4,{[y]:pv}],[0,{[y]:Ma}],[4,{[y]:fv}],[0,{[y]:zf}],[0,{[ne]:xB}],[0,{[ne]:vB}],[0,{[ne]:bB}],[0,{[ne]:_B}],[0,{[ne]:wB}],[6,{[ne]:EB}],[0,{[ne]:Cn}],[0,{[y]:Ut}],[()=>Nr,{[y]:Pr}],[0,{[y]:jt}],[0,{[y]:ze}],[1,{[ne]:lm}],[0,{[y]:Z}],[0,{[y]:FB}]],2],tI=[3,b,lv,0,[nae],[0],1],nI=[3,b,mv,0,[Pa,tv],[0,0]],rI=[3,b,dv,0,[bO,sJ,QO,Zse],[()=>gle,0,()=>Ode,()=>Dfe]],xde=[3,b,$ne,0,[Xe,Ga],[0,[()=>Ii,{[pe]:1,[j]:fr}]]],Hv=[3,b,Vu,0,[At,nn,hae,Oi],[0,0,[()=>Ohe,{[pe]:1,[j]:uB}],[()=>vde,0]],3],vde=[3,b,jne,0,[Xe,fr,Ku],[0,()=>ec,[()=>xde,0]]],Gv=[3,b,Gu,0,[Xf,Dne,At,Bne,eae,Oi,Sie],[[()=>bde,0],2,0,0,()=>Dde,()=>wde,[()=>yhe,0]],5],bde=[3,b,Ene,0,[VF],[[()=>Ede,0]],1],_de=[3,b,Sne,0,[JF,Tv],[[()=>jme,{[j]:ZF}],[()=>Lme,{[j]:sm}]]],wde=[3,b,Cne,0,[Xe],[0],1],Ede=[3,b,Mne,0,[V,jO,nQ,Xe,iv],[0,0,0,0,[()=>_de,0]],2],Dde=[3,b,Lne,0,[See],[0],1],Sde=[3,b,Ff,0,[ev,rl],[0,()=>Vv],1],Cde=[3,b,XO,0,[ev,aB,il,om,Av],[0,0,()=>qv,0,0],1],Tde=[3,b,Une,0,[ev,rl],[0,()=>Vv],1],Ade=[3,b,Bf,0,[im,rl],[()=>Yv,()=>Vv],1],Rde=[3,b,JO,0,[aB,om,im,il,Av],[0,0,()=>Yv,()=>qv,0],3],kde=[3,b,Vne,0,[im],[()=>Yv],1],Ode=[3,b,Hne,0,[cl],[0]],Fde=[3,b,Gne,0,[wv],[0]],Bde=[3,b,Dre,0,[Ere,sv,At,Oi],[[0,{[j]:IQ}],[64,{[pe]:1,[j]:ov}],0,[()=>Kv,0]],2],Ide=[3,b,wre,0,[AO,ka,hee],[5,1,2]],Pde=[3,b,Kre,0,[nn,ni,Pa,Xe,Oi,xae,vie,gF,Jk],[0,()=>Ide,0,0,[()=>Mde,0],[()=>Bhe,{[pe]:1,[j]:pB}],[()=>_he,{[pe]:1,[j]:yF}],()=>hfe,()=>Iue],1],Nde=[3,b,Yre,0,[Xe,Ga,_F,wF],[0,[()=>Ii,{[pe]:1,[j]:fr}],1,1]],Mde=[3,b,Xre,0,[Xe,fr,_F,wF,Ku],[0,()=>ec,1,1,[()=>Nde,0]]],Lde=[3,b,sre,{[j]:ore},[ri,Nn,ol,Xk],[2,0,0,[()=>che,{[pe]:1,[j]:Hu}]]],$de=[3,b,are,0,[V,Nn,X],[[0,1],[0,{[ne]:fo}],[0,{[y]:Z}]],1],Ude=[3,b,dre,0,[ri,Nn,ol,YO],[2,0,0,[()=>hhe,{[pe]:1,[j]:Vu}]]],jde=[3,b,fre,0,[V,Nn,X],[[0,1],[0,{[ne]:fo}],[0,{[y]:Z}]],1],zde=[3,b,ure,{[j]:Are},[Nn,VO,ri,ol],[0,[()=>ghe,{[pe]:1,[j]:Gu}],2,0]],qde=[3,b,lre,0,[V,Nn,X],[[0,1],[0,{[ne]:fo}],[0,{[y]:Z}]],1],Hde=[3,b,hre,{[j]:Rre},[ri,Nn,ol,tF],[2,0,0,[()=>vhe,{[pe]:1,[j]:Wu}]]],Gde=[3,b,gre,0,[V,Nn,X],[[0,1],[0,{[ne]:fo}],[0,{[y]:Z}]],1],Vde=[3,b,yre,{[j]:tre},[Yx,Ir,Nn,Xe],[[()=>yI,0],()=>Bi,0,0]],Wde=[3,b,xre,0,[tie,Nn,Xe,Kx],[[1,{[ne]:Wae}],[0,{[ne]:fo}],[0,{[ne]:ll}],[0,{[ne]:jae}]]],Kde=[3,b,bre,{[j]:nre},[Yx,Nn],[[()=>yI,0],0]],Yde=[3,b,_re,0,[Nn,rie],[[0,{[ne]:fo}],[1,{[ne]:Kae}]]],Xde=[3,b,Fre,{[j]:Bre},[V,Qf,dB,fF,Xe,us,yie,cF,ri,vae,Yf,ls,Ze],[0,0,0,0,0,0,0,1,2,[()=>bhe,{[pe]:1,[j]:Iae}],[()=>dm,{[pe]:1}],0,[0,{[y]:et}]]],Zde=[3,b,Ire,0,[V,us,ls,Qf,cF,Xe,dB,X,Ue],[[0,1],[0,{[ne]:cm}],[0,{[ne]:um}],[0,{[ne]:yB}],[1,{[ne]:Xae}],[0,{[ne]:ll}],[0,{[ne]:Jae}],[0,{[y]:Z}],[0,{[y]:ze}]],1],Qde=[3,b,Nre,{[j]:eF},[ri,uF,fie,EO,lo,Xe,us,$a,Yf,ls,Ze],[2,0,0,[()=>bI,{[pe]:1}],0,0,0,1,[()=>dm,{[pe]:1}],0,[0,{[y]:et}]]],Jde=[3,b,Mre,0,[V,us,ls,uF,$a,Xe,Ue,X,vv],[[0,1],[0,{[ne]:cm}],[0,{[ne]:um}],[0,{[ne]:Vae}],[1,{[ne]:Iv}],[0,{[ne]:ll}],[0,{[y]:ze}],[0,{[y]:Z}],[64,{[y]:$v}]],1],efe=[3,b,$re,{[j]:eF},[ri,EO,lo,Xe,us,$a,Yf,ls,Wne,Nn,ol,GF,Ze],[2,[()=>bI,{[pe]:1}],0,0,0,1,[()=>dm,{[pe]:1}],0,1,0,0,0,[0,{[y]:et}]]],tfe=[3,b,jre,0,[V,us,ls,$a,Xe,Nn,_ee,GF,Ue,X,vv],[[0,1],[0,{[ne]:cm}],[0,{[ne]:um}],[1,{[ne]:Iv}],[0,{[ne]:ll}],[0,{[ne]:fo}],[2,{[ne]:qae}],[0,{[ne]:Qae}],[0,{[y]:ze}],[0,{[y]:Z}],[64,{[y]:$v}]],1],nfe=[3,b,Ure,{[j]:Qre},[ri,Qf,mB,fF,xie,Pae,SO,lo,Xe,us,$a,Yf,ls,Ze],[2,0,0,0,0,[()=>Ehe,{[pe]:1,[j]:Nae}],[()=>phe,{[pe]:1,[j]:co}],0,0,0,1,[()=>dm,{[pe]:1}],0,[0,{[y]:et}]]],rfe=[3,b,zre,0,[V,us,ls,Qf,$a,Xe,mB,X,Ue,vv],[[0,1],[0,{[ne]:cm}],[0,{[ne]:um}],[0,{[ne]:yB}],[1,{[ne]:Iv}],[0,{[ne]:ll}],[0,{[ne]:ece}],[0,{[y]:Z}],[0,{[y]:ze}],[64,{[y]:$v}]],1],ife=[3,b,Gre,{[j]:Vre},[Qk,tO,V,he,ps,tm,hF,Jf,ri,nm,mv,Ir,rn,Ze,De,Xn],[[4,{[y]:AB}],[0,{[y]:RB}],0,0,0,0,0,1,2,[()=>She,{[pe]:1,[j]:rm}],()=>nI,()=>Bi,0,[0,{[y]:et}],0,0]],sfe=[3,b,Wre,0,[V,he,ps,Jf,tm,Ue,X,Rt,dr,kt],[[0,1],[0,1],[0,{[ne]:pl}],[1,{[ne]:Yae}],[0,{[ne]:Zae}],[0,{[y]:ze}],[0,{[y]:Z}],[0,{[y]:Ut}],[()=>Nr,{[y]:Pr}],[0,{[y]:jt}]],3],ofe=[3,b,Tre,0,[cl,lo],[0,0]],iI=[3,b,hv,0,[iae,fae,iB,oB],[0,0,[()=>khe,0],[()=>Wme,0]],2],afe=[3,b,jx,0,[Bf,Ff],[()=>Ade,()=>Sde],1],cfe=[3,b,nF,0,[TO,JO,XO],[()=>Vle,()=>Rde,()=>Cde],1],ufe=[3,b,iF,0,[lo,Fv],[0,0]],lfe=[3,b,zx,0,[eB],[()=>Tme],1],pfe=[3,b,oF,0,[tB],[()=>Ame],1],Vv=[3,b,oie,0,[Aoe,Yne],[0,0],1],dfe=[3,b,lF,0,[nn,xee],[0,()=>mI],1],ffe=[3,b,Jre,0,[Xe,Ga,eO],[0,[()=>Ii,{[pe]:1,[j]:fr}],0]],Wv=[3,b,Wu,0,[At,Oi],[0,[()=>Nhe,0]],1],mfe=[3,b,aF,0,[ps,he,qne,rn,Ir,mv,De,Xn],[0,0,4,0,()=>Bi,()=>nI,0,0]],hfe=[3,b,gF,0,[dF,mF],[1,1]],gfe=[3,b,yF,0,[dF,rn,mF],[1,0,1]],sI=[3,b,qx,0,[aae,noe,Cre,kO],[[()=>Fhe,{[pe]:1,[j]:rB}],[()=>The,{[pe]:1,[j]:FF}],[()=>xhe,{[pe]:1,[j]:PQ}],()=>Zle]],Kv=[3,b,lie,0,[he],[[()=>Sme,{[j]:joe}]]],yfe=[3,b,EF,0,[he,ii,$t,De,Xn,Ha,rn,Ir,Sv],[0,4,0,[64,{[pe]:1}],0,1,0,()=>Bi,()=>hI]],xfe=[3,b,Cie,0,[he,Ne,$t,kre,Ha],[0,0,0,6,1],1],oI=[3,b,Mf,0,[Aie,qa],[0,()=>vfe]],aI=[3,b,kie,0,[nn],[0]],cI=[3,b,Oie,0,[pF,Soe],[0,5]],vfe=[3,b,Fie,0,[CO],[()=>xle]],bfe=[3,b,Nie,0,[po,Ha,xn,vn,bn,_n,wn],[1,1,0,0,0,0,0]],_fe=[3,b,$ie,0,[$t,De,Xn,Ha,rn,he,Ne,WO,ii,Ir,Sv],[0,[64,{[pe]:1}],0,1,0,0,0,2,4,()=>Bi,()=>hI]],wfe=[3,b,vF,0,[Joe],[[()=>Cme,0]]],uI=[3,b,bv,0,[bO,QO],[()=>yle,()=>Fde]],Bi=[3,b,Ir,0,[tv,Pa],[0,0]],lI=[3,b,Nf,0,[al],[[()=>Dhe,{[pe]:1,[j]:qa}]],1],Efe=[3,b,Eie,0,[bF],[0],1],Dfe=[3,b,Rse,0,[],[]],Sfe=[3,b,rm,0,[po,ii,$t,Ha,xn,vn,bn,_n,wn],[1,4,0,1,0,0,0,0,0]],Cfe=[3,b,$f,{[j]:$f},[Tse],[0]],Tfe=[3,b,DF,0,[Hk],[[2,{[j]:Hk}]]],Afe=[3,b,RF,0,[oO,iO,sO],[1,1,1]],Rfe=[3,b,Ase,0,[RO],[[()=>Afe,{[Bv]:1}]]],pI=[3,b,Lf,0,[jk,Gk,zk,Vk],[[2,{[j]:jk}],[2,{[j]:Gk}],[2,{[j]:zk}],[2,{[j]:Vk}]]],kfe=[3,b,Wie,0,[V,Af,it,De,X],[[0,1],[()=>ZB,{[Te]:1,[j]:Af}],[0,{[y]:rt}],[0,{[y]:We}],[0,{[y]:Z}]],2],Ofe=[3,b,Hie,0,[V,Tf,X,De],[[0,1],[()=>Mue,{[Te]:1,[j]:Tf}],[0,{[y]:Z}],[0,{[y]:We}]],2],Ffe=[3,b,Kie,0,[V,Da,ao,it,De,Oa,Fa,Ba,av,Ia,X],[[0,1],[0,{[y]:Wa}],[()=>QB,{[Te]:1,[j]:ao}],[0,{[y]:rt}],[0,{[y]:We}],[0,{[y]:Ya}],[0,{[y]:Xa}],[0,{[y]:Za}],[0,{[y]:Mv}],[0,{[y]:Qa}],[0,{[y]:Z}]],1],Bfe=[3,b,Gie,0,[V,At,Hu,X],[[0,1],[0,{[ne]:mr}],[()=>zv,{[Te]:1,[j]:Hu}],[0,{[y]:Z}]],3],Ife=[3,b,Zie,0,[V,kf,it,De,X],[[0,1],[()=>sle,{[Te]:1,[j]:kf}],[0,{[y]:rt}],[0,{[y]:We}],[0,{[y]:Z}]],2],Pfe=[3,b,Jie,0,[V,Gf,it,De,X],[[0,1],[()=>gI,{[Te]:1,[j]:Gf}],[0,{[y]:rt}],[0,{[y]:We}],[0,{[y]:Z}]],2],Nfe=[3,b,rse,0,[V,At,Vu,X],[[0,1],[0,{[ne]:mr}],[()=>Hv,{[Te]:1,[j]:Vu}],[0,{[y]:Z}]],3],Mfe=[3,b,tse,0,[V,At,Gu,X],[[0,1],[0,{[ne]:mr}],[()=>Gv,{[Te]:1,[j]:Gu}],[0,{[y]:Z}]],3],Lfe=[3,b,ose,0,[Ov],[[0,{[y]:jv}]]],$fe=[3,b,ase,0,[V,De,Ux,X,Ov],[[0,1],[0,{[y]:We}],[()=>Gue,{[Te]:1,[j]:Ux}],[0,{[y]:Z}],[0,{[y]:jv}]],1],Ufe=[3,b,cse,0,[V,Rf,it,De,X],[[0,1],[()=>Vue,{[Te]:1,[j]:Rf}],[0,{[y]:rt}],[0,{[y]:We}],[0,{[y]:Z}]],2],jfe=[3,b,lse,0,[V,At,Wu,X],[[0,1],[0,{[ne]:mr}],[()=>Wv,{[Te]:1,[j]:Wu}],[0,{[y]:Z}]],3],zfe=[3,b,dse,0,[V,qx,X,Ioe],[[0,1],[()=>sI,{[Te]:1,[j]:qx}],[0,{[y]:Z}],[2,{[y]:fue}]],2],qfe=[3,b,mse,0,[V,Nf,it,X,De],[[0,1],[()=>lI,{[Te]:1,[j]:Nf}],[0,{[y]:rt}],[0,{[y]:Z}],[0,{[y]:We}]],2],Hfe=[3,b,gse,0,[V,AF,it,De,XQ,X],[[0,1],[0,16],[0,{[y]:rt}],[0,{[y]:We}],[2,{[y]:uce}],[0,{[y]:Z}]],2],Gfe=[3,b,bse,0,[V,Uf,it,De,lB,X],[[0,1],[()=>fI,{[Te]:1,[j]:Uf}],[0,{[y]:rt}],[0,{[y]:We}],[0,{[y]:OB}],[0,{[y]:Z}]],2],Vfe=[3,b,vse,0,[V,jf,it,De,X],[[0,1],[()=>vme,{[Te]:1,[j]:jf}],[0,{[y]:rt}],[0,{[y]:We}],[0,{[y]:Z}]],2],Wfe=[3,b,wse,0,[V,Br,it,De,X],[[0,1],[()=>Xv,{[Te]:1,[j]:Br}],[0,{[y]:rt}],[0,{[y]:We}],[0,{[y]:Z}]],2],Kfe=[3,b,Dse,0,[V,Vf,it,De,yv,X],[[0,1],[()=>she,{[Te]:1,[j]:Vf}],[0,{[y]:rt}],[0,{[y]:We}],[0,{[y]:Lv}],[0,{[y]:Z}]],2],Yfe=[3,b,Cse,0,[V,Wf,it,De,X],[[0,1],[()=>ohe,{[Te]:1,[j]:Wf}],[0,{[y]:rt}],[0,{[y]:We}],[0,{[y]:Z}]],2],Xfe=[3,b,Bse,0,[Ze],[[0,{[y]:et}]]],Zfe=[3,b,Ise,0,[V,he,Da,ao,it,De,Oa,Fa,Ba,av,Ia,Ue,Ne,X],[[0,1],[0,1],[0,{[y]:Wa}],[()=>QB,{[Te]:1,[j]:ao}],[0,{[y]:rt}],[0,{[y]:We}],[0,{[y]:Ya}],[0,{[y]:Xa}],[0,{[y]:Za}],[0,{[y]:Mv}],[0,{[y]:Qa}],[0,{[y]:ze}],[0,{[ne]:Cn}],[0,{[y]:Z}]],2],Qfe=[3,b,$se,0,[Ze],[[0,{[y]:et}]]],Jfe=[3,b,Use,0,[V,he,Pf,Ue,Ne,it,De,X],[[0,1],[0,1],[()=>aI,{[Te]:1,[j]:Pf}],[0,{[y]:ze}],[0,{[ne]:Cn}],[0,{[y]:rt}],[0,{[y]:We}],[0,{[y]:Z}]],2],eme=[3,b,Nse,0,[Ze],[[0,{[y]:et}]]],tme=[3,b,Mse,0,[V,Mf,Ue,lB,it,De,X],[[0,1],[()=>oI,{[Te]:1,[j]:Mf}],[0,{[y]:ze}],[0,{[y]:OB}],[0,{[y]:rt}],[0,{[y]:We}],[0,{[y]:Z}]],1],nme=[3,b,jse,0,[ni,$t,xn,vn,bn,_n,wn,Xn,Mn,Ne,Rt,kt,En,Fi,tn,Ha,Ze],[[0,{[y]:dl}],[0,{[y]:$t}],[0,{[y]:mo}],[0,{[y]:ho}],[0,{[y]:go}],[0,{[y]:yo}],[0,{[y]:xo}],[0,{[y]:Ka}],[0,{[y]:Zn}],[0,{[y]:si}],[0,{[y]:Ut}],[0,{[y]:jt}],[()=>Kt,{[y]:Qn}],[()=>fs,{[y]:ds}],[2,{[y]:Jn}],[1,{[y]:rue}],[0,{[y]:et}]]],rme=[3,b,zse,0,[V,he,Da,Yu,Sa,Ca,Ta,Aa,tl,it,Ra,De,xn,vn,bn,_n,wn,Fr,Na,sl,Oa,Fa,Ba,Ia,$ae,La,Mn,rn,ul,Rt,dr,kt,En,Fi,tn,Ue,Br,ja,za,Ua,X],[[0,1],[0,1],[0,{[y]:Wa}],[()=>xl,16],[0,{[y]:Xu}],[0,{[y]:Zu}],[0,{[y]:Qu}],[0,{[y]:Ju}],[1,{[y]:el}],[0,{[y]:rt}],[0,{[y]:nl}],[0,{[y]:We}],[0,{[y]:mo}],[0,{[y]:ho}],[0,{[y]:go}],[0,{[y]:yo}],[0,{[y]:xo}],[4,{[y]:Fr}],[0,{[y]:uo}],[0,{[y]:Ma}],[0,{[y]:Ya}],[0,{[y]:Xa}],[0,{[y]:Za}],[0,{[y]:Qa}],[1,{[y]:hue}],[128,{[Va]:Ja}],[0,{[y]:Zn}],[0,{[y]:gl}],[0,{[y]:yl}],[0,{[y]:Ut}],[()=>Nr,{[y]:Pr}],[0,{[y]:jt}],[()=>Kt,{[y]:Qn}],[()=>fs,{[y]:ds}],[2,{[y]:Jn}],[0,{[y]:ze}],[0,{[y]:Uv}],[0,{[y]:ml}],[5,{[y]:hl}],[0,{[y]:fl}],[0,{[y]:Z}]],2],ime=[3,b,qse,0,[Ze],[[0,{[y]:et}]]],sme=[3,b,Hse,0,[V,he,qf,Ue,Ne,Wx,it,De,X],[[0,1],[0,1],[()=>cI,{[Te]:1,[j]:qf}],[0,{[y]:ze}],[0,{[ne]:Cn}],[2,{[y]:Pv}],[0,{[y]:rt}],[0,{[y]:We}],[0,{[y]:Z}]],2],ome=[3,b,Wse,0,[Ne],[[0,{[y]:si}]]],ame=[3,b,Kse,0,[V,he,Br,Ne,it,De,X,Ue],[[0,1],[0,1],[()=>Xv,{[Te]:1,[j]:Br}],[0,{[ne]:Cn}],[0,{[y]:rt}],[0,{[y]:We}],[0,{[y]:Z}],[0,{[y]:ze}]],3],cme=[3,b,Xse,0,[V,Lf,it,De,X],[[0,1],[()=>pI,{[Te]:1,[j]:Lf}],[0,{[y]:rt}],[0,{[y]:We}],[0,{[y]:Z}]],2],ume=[3,b,FF,0,[eoe,sv,At,Oi],[[0,{[j]:ioe}],[64,{[pe]:1,[j]:ov}],0,[()=>Kv,0]],2],Yv=[3,b,im,0,[ni,ka],[0,1],1],lme=[3,b,ooe,0,[CF],[[21,{[Bv]:1}]]],pme=[3,b,HF,0,[GO,wne,kF,coe,uoe],[0,0,0,0,0]],dI=[3,b,_v,0,[GO,kF],[0,0],1],dme=[3,b,poe,0,[],[]],fme=[3,b,moe,0,[V,he,woe,jJ,qJ,zJ,HJ,Noe,Loe,Moe,$oe,iJ],[[0,1],[0,1],[0,{[y]:aue}],[0,{[y]:uo}],[0,{[y]:Ma}],[4,{[y]:pv}],[4,{[y]:fv}],[0,{[y]:cue}],[0,{[y]:lue}],[6,{[y]:uue}],[6,{[y]:pue}],[0,{[y]:dce,[Gae]:1}]],3],mme=[3,b,UF,0,[nn],[0],1],fI=[3,b,Uf,0,[Toe,al],[0,[()=>Ahe,{[pe]:1,[j]:qa}]],2],hme=[3,b,voe,0,[nn,Xf,Pa,Qse,Xe,Oi,QF,BO,DO],[0,()=>Gle,0,1,0,[()=>yme,0],()=>Mme,()=>Qle,()=>Mle],2],gme=[3,b,yoe,0,[Xe,Ga],[0,[()=>Ii,{[pe]:1,[j]:fr}]]],yme=[3,b,xoe,0,[Xe,fr,Ku],[0,()=>ec,[()=>gme,0]]],xme=[3,b,qF,0,[nn,gae],[0,()=>mI],2],mI=[3,b,Eoe,0,[uie],[1]],vme=[3,b,jf,0,[SF],[0],1],bme=[3,b,jF,0,[vee],[2]],_me=[3,b,doe,0,[Ze,foe],[[0,{[y]:et}],[0,{[y]:sue}]]],wme=[3,b,hoe,0,[V,he,Ne,Hx,Ue,De,X],[[0,1],[0,1],[0,{[ne]:Cn}],[()=>Eme,{[Te]:1,[j]:Hx}],[0,{[y]:ze}],[0,{[y]:We}],[0,{[y]:Z}]],2],Eme=[3,b,Hx,0,[ka,HO,cl,cB,uee,YF,vF],[1,()=>dde,0,0,0,()=>Fme,[()=>wfe,0]]],hI=[3,b,Sv,0,[Nne,soe],[2,4]],Dme=[3,b,zF,0,[HF,wO],[()=>pme,()=>Jue],1],Sme=[3,b,Uoe,0,[Eee],[[()=>mhe,{[pe]:1,[j]:UO}]]],Cme=[3,b,zoe,0,[EQ,Xe,iv,DQ,Kf,Br,fB,rn],[0,0,[()=>Wle,0],0,[()=>fm,0],[()=>Xv,0],[()=>Ihe,0],0],2],Tme=[3,b,eB,0,[Rv,om],[0,0],2],Ame=[3,b,tB,0,[Rv,om,Av,sB],[0,0,0,0],4],Rme=[3,b,XF,0,[tae,NO],[1,1]],kme=[3,b,Voe,0,[CF],[[()=>Lhe,16]]],Ome=[3,b,Woe,0,[V,he,LO,PO,dv,bv,Rt,dr,kt,jF,XF,X],[[0,1],[0,1],0,0,()=>rI,()=>uI,[0,{[y]:Ut}],[()=>Nr,{[y]:Pr}],[0,{[y]:jt}],()=>bme,()=>Rme,[0,{[y]:Z}]],6],Fme=[3,b,YF,0,[dv,PO,LO,bv],[()=>rI,0,0,()=>uI],4],Bme=[3,b,Yoe,0,[Koe,Jne],[0,[()=>Kt,0]],1],gI=[3,b,Gf,0,[al],[[()=>Rhe,{[pe]:1,[j]:qa}]],1],Ime=[3,b,Zoe,0,[fQ,tn,rO],[[()=>Bme,0],2,[()=>zue,0]]],Pme=[3,b,Foe,0,[Uk,Wk,Kk,ni],[[0,{[j]:Uk}],[()=>Yk,{[j]:Wk}],[()=>Yk,{[j]:Kk}],[4,{[j]:ni}]],4],Nme=[3,b,Hf,{[j]:Hf},[],[]],Mme=[3,b,QF,0,[KF,UF],[()=>$me,()=>mme]],Lme=[3,b,Tv,{[j]:sm},[Kne],[[()=>Kt,0]],1],$me=[3,b,KF,0,[nn],[0],1],Ume=[3,b,Xoe,{[j]:sm},[Zne,tn],[[()=>Bue,0],2],1],jme=[3,b,JF,{[j]:ZF},[],[]],zme=[3,b,nB,0,[oO,iO,sO],[1,1,1]],qme=[3,b,Poe,0,[RO],[[()=>zme,{[Bv]:1}]]],Hme=[3,b,WF,0,[UJ],[()=>Gme]],Gme=[3,b,koe,0,[Lie,Xf],[0,()=>Uue],2],ec=[3,b,fr,0,[he,Fv],[0,0],2],Xv=[3,b,Br,0,[am],[[()=>Ii,0]],1],Vme=[3,b,uae,0,[uv,TF],[[()=>eI,{[TB]:[CB,gB]}],0]],Wme=[3,b,oB,0,[Hf,$f],[[()=>Nme,{[j]:Hf}],[()=>Cfe,{[j]:$f}]]],Kme=[3,b,uB,0,[ka,nO],[1,0],2],Yme=[3,b,rB,0,[rae,sv,At,Oi],[[0,{[j]:yae}],[64,{[pe]:1,[j]:ov}],0,[()=>Kv,0]],2],Xme=[3,b,pB,0,[AO,ka,rn],[5,1,0]],Zme=[3,b,_ae,0,[V,Ff,it,De,X],[[0,1],[()=>Tde,{[Te]:1,[j]:Ff}],[0,{[y]:rt}],[0,{[y]:We}],[0,{[y]:Z}]],2],Qme=[3,b,Eae,0,[V,Bf,it,De,X],[[0,1],[()=>kde,{[Te]:1,[j]:Bf}],[0,{[y]:rt}],[0,{[y]:We}],[0,{[y]:Z}]],2],Jme=[3,b,Sae,0,[V,he,xF,Ne,Ue,X,it,De],[[0,1],[0,1],[()=>Mhe,16],[0,{[ne]:Cn}],[0,{[y]:ze}],[0,{[y]:Z}],[0,{[y]:rt}],[0,{[y]:We}]],3],ehe=[3,b,Cae,0,[Ze],[[0,{[y]:et}]]],the=[3,b,Rae,0,[_O,pO,Mn,Rt,kt,En,tn,Ze],[[0,{[y]:jB}],[()=>ile,16],[0,{[y]:Zn}],[0,{[y]:Ut}],[0,{[y]:jt}],[()=>Kt,{[y]:Qn}],[2,{[y]:Jn}],[0,{[y]:et}]]],nhe=[3,b,kae,0,[V,fO,he,po,ps,mO,hO,gO,yO,JQ,Rt,dr,kt,xO,Jx,vO,Ue,X,IO],[[0,1],[0,{[y]:BB}],[0,1],[1,{[ne]:lm}],[0,{[ne]:pl}],[0,{[y]:IB}],[4,{[y]:PB}],[0,{[y]:NB}],[4,{[y]:MB}],[0,{[y]:pce}],[0,{[y]:Ut}],[()=>Nr,{[y]:Pr}],[0,{[y]:jt}],[0,{[y]:LB}],[()=>XB,{[y]:$B}],[0,{[y]:UB}],[0,{[y]:ze}],[0,{[y]:Z}],[0,{[y]:VB}]],5],rhe=[3,b,Oae,0,[Mn,$t,xn,vn,bn,_n,wn,Rt,kt,En,tn,Ze],[[0,{[y]:Zn}],[0,{[y]:$t}],[0,{[y]:mo}],[0,{[y]:ho}],[0,{[y]:go}],[0,{[y]:yo}],[0,{[y]:xo}],[0,{[y]:Ut}],[0,{[y]:jt}],[()=>Kt,{[y]:Qn}],[2,{[y]:Jn}],[0,{[y]:et}]]],ihe=[3,b,Fae,0,[V,he,po,ps,Yu,tl,it,De,xn,vn,bn,_n,wn,Rt,dr,kt,Ue,X],[[0,1],[0,1],[1,{[ne]:lm}],[0,{[ne]:pl}],[()=>xl,16],[1,{[y]:el}],[0,{[y]:rt}],[0,{[y]:We}],[0,{[y]:mo}],[0,{[y]:ho}],[0,{[y]:go}],[0,{[y]:yo}],[0,{[y]:xo}],[0,{[y]:Ut}],[()=>Nr,{[y]:Pr}],[0,{[y]:jt}],[0,{[y]:ze}],[0,{[y]:Z}]],4],she=[3,b,Vf,0,[sF,nn],[[0,{[j]:rF}],0]],ohe=[3,b,Wf,0,[nv,lv,_v,Ev],[()=>JB,()=>tI,()=>dI,[()=>_I,0]]],ahe=[3,b,Lae,0,[_oe,Doe,Yu,Boe,OO,FO,Gx,Sa,Ca,Ta,Aa,tl,Qx,Ra,xn,vn,bn,_n,wn,co,$t,Fr,ni,ii,xv,La,ja,Ua,za,em,Dv,Ze,Cv,Mn,Rt,En,kt,rn,kv,Ne,tn],[[0,{[Hae]:1,[y]:oue}],[0,{[y]:due}],[()=>xl,16],[1,{[y]:Kce}],[0,{[y]:fce}],[0,{[y]:mce}],[0,{[y]:Dce}],[0,{[y]:hce}],[0,{[y]:gce}],[0,{[y]:yce}],[0,{[y]:xce}],[1,{[y]:el}],[0,{[y]:vce}],[0,{[y]:bce}],[0,{[y]:Sce}],[0,{[y]:Cce}],[0,{[y]:Tce}],[0,{[y]:Ace}],[0,{[y]:Rce}],[2,{[y]:kce}],[0,{[y]:_ce}],[4,{[y]:wce}],[0,{[y]:Oce}],[4,{[y]:Ece}],[1,{[y]:Fce}],[128,{[Va]:Ja}],[0,{[y]:Pce}],[0,{[y]:Ice}],[5,{[y]:Nce}],[1,{[y]:Bce}],[0,{[y]:$ce}],[0,{[y]:Lce}],[0,{[y]:Mce}],[0,{[y]:jce}],[0,{[y]:Hce}],[()=>Kt,{[y]:zce}],[0,{[y]:Gce}],[0,{[y]:Uce}],[1,{[y]:Vce}],[0,{[y]:Wce}],[2,{[y]:qce}]],2],fe="unit";var che=[1,b,Xk,0,[()=>zv,0]],yI=[1,b,Yx,0,[()=>que,{[j]:V}]];var dm=[1,b,WQ,0,()=>Kue],uhe=[1,b,KQ,0,()=>Xue],xI=[1,b,Xx,0,[()=>ole,0]],lhe=[1,b,tee,0,()=>Ple],phe=[1,b,SO,0,()=>Nle],dhe=[1,b,gee,0,[0,{[j]:rv}]],fhe=[1,b,MO,0,()=>Xle];var mhe=[1,b,wee,0,()=>Jle],fm=[1,b,Zf,0,[()=>fde,{[j]:cv}]],hhe=[1,b,YO,0,[()=>Hv,0]],ghe=[1,b,VO,0,[()=>Gv,0]],yhe=[1,b,One,0,[0,{[j]:Dee}]],xhe=[1,b,Sre,0,[()=>Bde,0]],vI=[1,b,Zre,0,[()=>Pde,0]],vhe=[1,b,tF,0,[()=>Wv,0]],bhe=[1,b,aie,0,()=>mfe],_he=[1,b,bie,0,()=>gfe];var whe=[1,b,Tie,0,()=>xfe],bI=[1,b,Bie,0,[()=>yfe,0]],Ehe=[1,b,Uie,0,[()=>_fe,0]];var Dhe=[1,b,Die,0,()=>Efe],She=[1,b,nm,0,()=>Sfe],Che=[1,b,kse,0,()=>bfe],The=[1,b,toe,0,[()=>ume,0]],Ahe=[1,b,boe,0,[()=>hme,0]],_I=[1,b,Ev,0,[()=>Dme,{[j]:zF}]],Rhe=[1,b,Qoe,0,[()=>Ime,0]],Ii=[1,b,am,0,[()=>ec,{[j]:fr}]],khe=[1,b,iB,0,[()=>Vme,{[j]:cv}]],Ohe=[1,b,lae,0,()=>Kme],Fhe=[1,b,oae,0,[()=>Yme,0]],Bhe=[1,b,pae,0,()=>Xme],Ihe=[1,b,fB,0,[()=>ufe,{[j]:iF}]];var Phe=[4,b,JZ,0,[Xe,fr,Ku],[0,()=>ec,[()=>$ue,0]]],Nhe=[4,b,iie,0,[Xe,fr,eO,Ku],[0,()=>ec,0,[()=>ffe,0]]],Mhe=[4,b,xF,0,[Tv],[[()=>Ume,{[j]:sm}]]],Lhe=[4,b,Goe,{[SB]:1},[Coe,nB,RF,cJ,NO],[[()=>lme,0],[()=>qme,0],[()=>Rfe,0],()=>ele,()=>Yle]],d7e=[9,b,iQ,{[K]:["DELETE","/{Key+}?x-id=AbortMultipartUpload",204]},()=>Nue,()=>Pue],wI=[9,b,cO,{[K]:["POST","/{Key+}",200]},()=>Que,()=>Zue],f7e=[9,b,qQ,{[K]:["PUT","/{Key+}?x-id=CopyObject",200]},()=>nle,()=>tle],m7e=[9,b,SQ,{[K]:["PUT","/",200]},()=>ple,()=>lle],h7e=[9,b,CQ,{[je]:"-",[K]:["POST","/?metadataConfiguration",200]},()=>cle,()=>fe],g7e=[9,b,AQ,{[je]:"-",[K]:["POST","/?metadataTable",200]},()=>ule,()=>fe],EI=[9,b,zQ,{[K]:["POST","/{Key+}?uploads",200]},()=>fle,()=>dle],DI=[9,b,rJ,{[K]:["GET","/?session",200]},()=>hle,()=>mle],y7e=[9,b,lJ,{[K]:["DELETE","/",204]},()=>Fle,()=>fe],x7e=[9,b,pJ,{[K]:["DELETE","/?analytics",204]},()=>ble,()=>fe],v7e=[9,b,fJ,{[K]:["DELETE","/?cors",204]},()=>_le,()=>fe],b7e=[9,b,hJ,{[K]:["DELETE","/?encryption",204]},()=>wle,()=>fe],_7e=[9,b,vJ,{[K]:["DELETE","/?intelligent-tiering",204]},()=>Ele,()=>fe],w7e=[9,b,yJ,{[K]:["DELETE","/?inventory",204]},()=>Dle,()=>fe],E7e=[9,b,_J,{[K]:["DELETE","/?lifecycle",204]},()=>Sle,()=>fe],D7e=[9,b,EJ,{[K]:["DELETE","/?metadataConfiguration",204]},()=>Cle,()=>fe],S7e=[9,b,TJ,{[K]:["DELETE","/?metadataTable",204]},()=>Tle,()=>fe],C7e=[9,b,CJ,{[K]:["DELETE","/?metrics",204]},()=>Ale,()=>fe],T7e=[9,b,RJ,{[K]:["DELETE","/?ownershipControls",204]},()=>Rle,()=>fe],A7e=[9,b,OJ,{[K]:["DELETE","/?policy",204]},()=>kle,()=>fe],R7e=[9,b,PJ,{[K]:["DELETE","/?replication",204]},()=>Ole,()=>fe],k7e=[9,b,NJ,{[K]:["DELETE","/?tagging",204]},()=>Ble,()=>fe],O7e=[9,b,LJ,{[K]:["DELETE","/?website",204]},()=>Ile,()=>fe],SI=[9,b,nee,{[K]:["DELETE","/{Key+}?x-id=DeleteObject",204]},()=>$le,()=>Lle],F7e=[9,b,ree,{[je]:"-",[K]:["POST","/?delete",200]},()=>jle,()=>Ule],B7e=[9,b,QJ,{[K]:["DELETE","/{Key+}?tagging",204]},()=>qle,()=>zle],I7e=[9,b,iee,{[K]:["DELETE","/?publicAccessBlock",204]},()=>Hle,()=>fe],P7e=[9,b,Cee,{[K]:["GET","/?abac",200]},()=>tpe,()=>epe],N7e=[9,b,Tee,{[K]:["GET","/?accelerate",200]},()=>rpe,()=>npe],M7e=[9,b,Mee,{[K]:["GET","/?acl",200]},()=>spe,()=>ipe],L7e=[9,b,Fee,{[K]:["GET","/?analytics&x-id=GetBucketAnalyticsConfiguration",200]},()=>ape,()=>ope],$7e=[9,b,Lee,{[K]:["GET","/?cors",200]},()=>upe,()=>cpe],U7e=[9,b,jee,{[K]:["GET","/?encryption",200]},()=>ppe,()=>lpe],j7e=[9,b,Wee,{[K]:["GET","/?intelligent-tiering&x-id=GetBucketIntelligentTieringConfiguration",200]},()=>fpe,()=>dpe],z7e=[9,b,Hee,{[K]:["GET","/?inventory&x-id=GetBucketInventoryConfiguration",200]},()=>hpe,()=>mpe],q7e=[9,b,Zee,{[K]:["GET","/?lifecycle",200]},()=>ype,()=>gpe],H7e=[9,b,Xee,{[K]:["GET","/?location",200]},()=>vpe,()=>xpe],G7e=[9,b,ite,{[K]:["GET","/?logging",200]},()=>_pe,()=>bpe],V7e=[9,b,ste,{[K]:["GET","/?metadataConfiguration",200]},()=>Epe,()=>wpe],W7e=[9,b,pte,{[K]:["GET","/?metadataTable",200]},()=>Cpe,()=>Spe],K7e=[9,b,lte,{[K]:["GET","/?metrics&x-id=GetBucketMetricsConfiguration",200]},()=>Rpe,()=>Ape],Y7e=[9,b,mte,{[K]:["GET","/?notification",200]},()=>kpe,()=>sI],X7e=[9,b,gte,{[K]:["GET","/?ownershipControls",200]},()=>Fpe,()=>Ope],Z7e=[9,b,vte,{[K]:["GET","/?policy",200]},()=>Ipe,()=>Bpe],Q7e=[9,b,wte,{[K]:["GET","/?policyStatus",200]},()=>Npe,()=>Ppe],J7e=[9,b,Ste,{[K]:["GET","/?replication",200]},()=>Lpe,()=>Mpe],e9e=[9,b,Tte,{[K]:["GET","/?requestPayment",200]},()=>Upe,()=>$pe],t9e=[9,b,Ote,{[K]:["GET","/?tagging",200]},()=>zpe,()=>jpe],n9e=[9,b,Ite,{[K]:["GET","/?versioning",200]},()=>Hpe,()=>qpe],r9e=[9,b,Mte,{[K]:["GET","/?website",200]},()=>Vpe,()=>Gpe],CI=[9,b,Ute,{[je]:"-",[K]:["GET","/{Key+}?x-id=GetObject",200]},()=>rde,()=>nde],i9e=[9,b,jte,{[K]:["GET","/{Key+}?acl",200]},()=>Kpe,()=>Wpe],s9e=[9,b,Kte,{[K]:["GET","/{Key+}?attributes",200]},()=>Zpe,()=>Ype],o9e=[9,b,Qte,{[K]:["GET","/{Key+}?legal-hold",200]},()=>Jpe,()=>Qpe],a9e=[9,b,Yte,{[K]:["GET","/?object-lock",200]},()=>tde,()=>ede],c9e=[9,b,sne,{[K]:["GET","/{Key+}?retention",200]},()=>sde,()=>ide],u9e=[9,b,one,{[K]:["GET","/{Key+}?tagging",200]},()=>ade,()=>ode],l9e=[9,b,pne,{[K]:["GET","/{Key+}?torrent",200]},()=>ude,()=>cde],p9e=[9,b,dne,{[K]:["GET","/?publicAccessBlock",200]},()=>pde,()=>lde],TI=[9,b,hne,{[K]:["HEAD","/",200]},()=>hde,()=>mde],AI=[9,b,vne,{[K]:["HEAD","/{Key+}",200]},()=>yde,()=>gde],d9e=[9,b,ire,{[K]:["GET","/?analytics&x-id=ListBucketAnalyticsConfigurations",200]},()=>$de,()=>Lde],f9e=[9,b,pre,{[K]:["GET","/?intelligent-tiering&x-id=ListBucketIntelligentTieringConfigurations",200]},()=>jde,()=>Ude],m9e=[9,b,cre,{[K]:["GET","/?inventory&x-id=ListBucketInventoryConfigurations",200]},()=>qde,()=>zde],h9e=[9,b,mre,{[K]:["GET","/?metrics&x-id=ListBucketMetricsConfigurations",200]},()=>Gde,()=>Hde],g9e=[9,b,rre,{[K]:["GET","/?x-id=ListBuckets",200]},()=>Wde,()=>Vde],y9e=[9,b,vre,{[K]:["GET","/?x-id=ListDirectoryBuckets",200]},()=>Yde,()=>Kde],x9e=[9,b,Ore,{[K]:["GET","/?uploads",200]},()=>Zde,()=>Xde],v9e=[9,b,Pre,{[K]:["GET","/",200]},()=>Jde,()=>Qde],RI=[9,b,Lre,{[K]:["GET","/?list-type=2",200]},()=>tfe,()=>efe],b9e=[9,b,qre,{[K]:["GET","/?versions",200]},()=>rfe,()=>nfe],_9e=[9,b,Hre,{[K]:["GET","/{Key+}?x-id=ListParts",200]},()=>sfe,()=>ife],w9e=[9,b,zie,{[je]:"-",[K]:["PUT","/?abac",200]},()=>kfe,()=>fe],E9e=[9,b,qie,{[je]:"-",[K]:["PUT","/?accelerate",200]},()=>Ofe,()=>fe],D9e=[9,b,Yie,{[je]:"-",[K]:["PUT","/?acl",200]},()=>Ffe,()=>fe],S9e=[9,b,Vie,{[K]:["PUT","/?analytics",200]},()=>Bfe,()=>fe],C9e=[9,b,Xie,{[je]:"-",[K]:["PUT","/?cors",200]},()=>Ife,()=>fe],T9e=[9,b,Qie,{[je]:"-",[K]:["PUT","/?encryption",200]},()=>Pfe,()=>fe],A9e=[9,b,nse,{[K]:["PUT","/?intelligent-tiering",200]},()=>Nfe,()=>fe],R9e=[9,b,ese,{[K]:["PUT","/?inventory",200]},()=>Mfe,()=>fe],k9e=[9,b,sse,{[je]:"-",[K]:["PUT","/?lifecycle",200]},()=>$fe,()=>Lfe],O9e=[9,b,ise,{[je]:"-",[K]:["PUT","/?logging",200]},()=>Ufe,()=>fe],F9e=[9,b,use,{[K]:["PUT","/?metrics",200]},()=>jfe,()=>fe],B9e=[9,b,pse,{[K]:["PUT","/?notification",200]},()=>zfe,()=>fe],I9e=[9,b,fse,{[je]:"-",[K]:["PUT","/?ownershipControls",200]},()=>qfe,()=>fe],P9e=[9,b,hse,{[je]:"-",[K]:["PUT","/?policy",200]},()=>Hfe,()=>fe],N9e=[9,b,yse,{[je]:"-",[K]:["PUT","/?replication",200]},()=>Gfe,()=>fe],M9e=[9,b,xse,{[je]:"-",[K]:["PUT","/?requestPayment",200]},()=>Vfe,()=>fe],L9e=[9,b,_se,{[je]:"-",[K]:["PUT","/?tagging",200]},()=>Wfe,()=>fe],$9e=[9,b,Ese,{[je]:"-",[K]:["PUT","/?versioning",200]},()=>Kfe,()=>fe],U9e=[9,b,Sse,{[je]:"-",[K]:["PUT","/?website",200]},()=>Yfe,()=>fe],kI=[9,b,Ose,{[je]:"-",[K]:["PUT","/{Key+}?x-id=PutObject",200]},()=>rme,()=>nme],j9e=[9,b,Fse,{[je]:"-",[K]:["PUT","/{Key+}?acl",200]},()=>Zfe,()=>Xfe],z9e=[9,b,Lse,{[je]:"-",[K]:["PUT","/{Key+}?legal-hold",200]},()=>Jfe,()=>Qfe],q9e=[9,b,Pse,{[je]:"-",[K]:["PUT","/?object-lock",200]},()=>tme,()=>eme],H9e=[9,b,Gse,{[je]:"-",[K]:["PUT","/{Key+}?retention",200]},()=>sme,()=>ime],OI=[9,b,Vse,{[je]:"-",[K]:["PUT","/{Key+}?tagging",200]},()=>ame,()=>ome],G9e=[9,b,Yse,{[je]:"-",[K]:["PUT","/?publicAccessBlock",200]},()=>cme,()=>fe],V9e=[9,b,loe,{[K]:["PUT","/{Key+}?renameObject",200]},()=>fme,()=>dme],W9e=[9,b,goe,{[je]:"-",[K]:["POST","/{Key+}?restore",200]},()=>wme,()=>_me],K9e=[9,b,Hoe,{[K]:["POST","/{Key+}?select&select-type=2",200]},()=>Ome,()=>kme],Y9e=[9,b,bae,{[je]:"-",[K]:["PUT","/?metadataInventoryTable",200]},()=>Zme,()=>fe],X9e=[9,b,wae,{[je]:"-",[K]:["PUT","/?metadataJournalTable",200]},()=>Qme,()=>fe],Z9e=[9,b,Dae,{[je]:"-",[K]:["PUT","/{Key+}?encryption",200]},()=>Jme,()=>ehe],FI=[9,b,Tae,{[je]:"-",[K]:["PUT","/{Key+}?x-id=UploadPart",200]},()=>ihe,()=>rhe],Q9e=[9,b,Aae,{[K]:["PUT","/{Key+}?x-id=UploadPartCopy",200]},()=>nhe,()=>the],J9e=[9,b,Mae,{[zae]:["{RequestRoute}."],[K]:["POST","/WriteGetObjectResponse",200]},()=>ahe,()=>fe];var mm=class extends nt.classBuilder().ep({...ht,DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,i){return[mt(r,t.getEndpointParameterInstructions()),Dt(r)]}).s("AmazonS3","CreateSession",{}).n("S3Client","CreateSessionCommand").sc(DI).build(){};c();var BI={name:"@aws-sdk/client-s3",description:"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",version:"3.1033.0",scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-s3","build:es":"tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo s3",test:"yarn g:vitest run","test:browser":"node ./test/browser-build/esbuild && yarn g:vitest run -c vitest.config.browser.mts","test:browser:watch":"node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.mts","test:e2e":"yarn g:vitest run -c vitest.config.e2e.mts && yarn test:browser","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.mts","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs","test:integration":"yarn g:vitest run -c vitest.config.integ.mts","test:integration:watch":"yarn g:vitest watch -c vitest.config.integ.mts","test:watch":"yarn g:vitest watch"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha1-browser":"5.2.0","@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.974.2","@aws-sdk/credential-provider-node":"^3.972.33","@aws-sdk/middleware-bucket-endpoint":"^3.972.10","@aws-sdk/middleware-expect-continue":"^3.972.10","@aws-sdk/middleware-flexible-checksums":"^3.974.10","@aws-sdk/middleware-host-header":"^3.972.10","@aws-sdk/middleware-location-constraint":"^3.972.10","@aws-sdk/middleware-logger":"^3.972.10","@aws-sdk/middleware-recursion-detection":"^3.972.11","@aws-sdk/middleware-sdk-s3":"^3.972.31","@aws-sdk/middleware-ssec":"^3.972.10","@aws-sdk/middleware-user-agent":"^3.972.32","@aws-sdk/region-config-resolver":"^3.972.12","@aws-sdk/signature-v4-multi-region":"^3.996.19","@aws-sdk/types":"^3.973.8","@aws-sdk/util-endpoints":"^3.996.7","@aws-sdk/util-user-agent-browser":"^3.972.10","@aws-sdk/util-user-agent-node":"^3.973.18","@smithy/config-resolver":"^4.4.16","@smithy/core":"^3.23.15","@smithy/eventstream-serde-browser":"^4.2.14","@smithy/eventstream-serde-config-resolver":"^4.3.14","@smithy/eventstream-serde-node":"^4.2.14","@smithy/fetch-http-handler":"^5.3.17","@smithy/hash-blob-browser":"^4.2.15","@smithy/hash-node":"^4.2.14","@smithy/hash-stream-node":"^4.2.14","@smithy/invalid-dependency":"^4.2.14","@smithy/md5-js":"^4.2.14","@smithy/middleware-content-length":"^4.2.14","@smithy/middleware-endpoint":"^4.4.30","@smithy/middleware-retry":"^4.5.3","@smithy/middleware-serde":"^4.2.18","@smithy/middleware-stack":"^4.2.14","@smithy/node-config-provider":"^4.3.14","@smithy/node-http-handler":"^4.5.3","@smithy/protocol-http":"^5.3.14","@smithy/smithy-client":"^4.12.11","@smithy/types":"^4.14.1","@smithy/url-parser":"^4.2.14","@smithy/util-base64":"^4.3.2","@smithy/util-body-length-browser":"^4.2.2","@smithy/util-body-length-node":"^4.2.3","@smithy/util-defaults-mode-browser":"^4.3.47","@smithy/util-defaults-mode-node":"^4.2.52","@smithy/util-endpoints":"^3.4.1","@smithy/util-middleware":"^4.2.14","@smithy/util-retry":"^4.3.2","@smithy/util-stream":"^4.5.23","@smithy/util-utf8":"^4.2.2","@smithy/util-waiter":"^4.2.16",tslib:"^2.6.2"},devDependencies:{"@aws-sdk/signature-v4-crt":"3.1033.0","@smithy/snapshot-testing":"^2.0.6","@tsconfig/node20":"20.1.8","@types/node":"^20.14.8",concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~5.8.3",vitest:"^4.0.17"},engines:{node:">=20.0.0"},typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-s3"}};c();c();c();c();c();var Zv=e=>new TextEncoder().encode(e);c();c();c();function Qv(e){return typeof e=="string"?e.length===0:e.byteLength===0}c();var Jv={name:"SHA-1"},eb={name:"HMAC",hash:Jv},II=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]);c();var Uhe={};function hr(){return typeof window!="undefined"?window:typeof self!="undefined"?self:Uhe}var tb=(function(){function e(t){this.toHash=new Uint8Array(0),t!==void 0&&(this.key=new Promise(function(n,r){hr().crypto.subtle.importKey("raw",PI(t),eb,!1,["sign"]).then(n,r)}),this.key.catch(function(){}))}return e.prototype.update=function(t){if(!Qv(t)){var n=PI(t),r=new Uint8Array(this.toHash.byteLength+n.byteLength);r.set(this.toHash,0),r.set(n,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var t=this;return this.key?this.key.then(function(n){return hr().crypto.subtle.sign(eb,n,t.toHash).then(function(r){return new Uint8Array(r)})}):Qv(this.toHash)?Promise.resolve(II):Promise.resolve().then(function(){return hr().crypto.subtle.digest(Jv,t.toHash)}).then(function(n){return Promise.resolve(new Uint8Array(n))})},e.prototype.reset=function(){this.toHash=new Uint8Array(0)},e})();function PI(e){return typeof e=="string"?Zv(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}c();c();var jhe=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function hm(e){if(zhe(e)&&typeof e.crypto.subtle=="object"){var t=e.crypto.subtle;return qhe(t)}return!1}function zhe(e){if(typeof e=="object"&&typeof e.crypto=="object"){var t=e.crypto.getRandomValues;return typeof t=="function"}return!1}function qhe(e){return e&&jhe.every(function(t){return typeof e[t]=="function"})}var NI=(function(){function e(t){if(hm(hr()))this.hash=new tb(t);else throw new Error("SHA1 not supported")}return e.prototype.update=function(t,n){this.hash.update(mn(t))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e})();c();c();c();c();var nb={name:"SHA-256"},rb={name:"HMAC",hash:nb},MI=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85]);var ib=(function(){function e(t){this.toHash=new Uint8Array(0),this.secret=t,this.reset()}return e.prototype.update=function(t){if(!Xr(t)){var n=mn(t),r=new Uint8Array(this.toHash.byteLength+n.byteLength);r.set(this.toHash,0),r.set(n,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var t=this;return this.key?this.key.then(function(n){return hr().crypto.subtle.sign(rb,n,t.toHash).then(function(r){return new Uint8Array(r)})}):Xr(this.toHash)?Promise.resolve(MI):Promise.resolve().then(function(){return hr().crypto.subtle.digest(nb,t.toHash)}).then(function(n){return Promise.resolve(new Uint8Array(n))})},e.prototype.reset=function(){var t=this;this.toHash=new Uint8Array(0),this.secret&&this.secret!==void 0&&(this.key=new Promise(function(n,r){hr().crypto.subtle.importKey("raw",mn(t.secret),rb,!1,["sign"]).then(n,r)}),this.key.catch(function(){}))},e})();c();c();c();var $n=64,LI=32,$I=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),UI=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],jI=Math.pow(2,53)-1;c();var vl=(function(){function e(){this.state=Int32Array.from(UI),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");var n=0,r=t.byteLength;if(this.bytesHashed+=r,this.bytesHashed*8>jI)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=t[n++],r--,this.bufferLength===$n&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var t=this.bytesHashed*8,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(n.setUint8(this.bufferLength++,128),r%$n>=$n-8){for(var i=this.bufferLength;i<$n;i++)n.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(var i=this.bufferLength;i<$n-8;i++)n.setUint8(i,0);n.setUint32($n-8,Math.floor(t/4294967296),!0),n.setUint32($n-4,t),this.hashBuffer(),this.finished=!0}for(var s=new Uint8Array(LI),i=0;i<8;i++)s[i*4]=this.state[i]>>>24&255,s[i*4+1]=this.state[i]>>>16&255,s[i*4+2]=this.state[i]>>>8&255,s[i*4+3]=this.state[i]>>>0&255;return s},e.prototype.hashBuffer=function(){for(var t=this,n=t.buffer,r=t.state,i=r[0],s=r[1],o=r[2],a=r[3],l=r[4],u=r[5],p=r[6],d=r[7],f=0;f<$n;f++){if(f<16)this.temp[f]=(n[f*4]&255)<<24|(n[f*4+1]&255)<<16|(n[f*4+2]&255)<<8|n[f*4+3]&255;else{var m=this.temp[f-2],g=(m>>>17|m<<15)^(m>>>19|m<<13)^m>>>10;m=this.temp[f-15];var x=(m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3;this.temp[f]=(g+this.temp[f-7]|0)+(x+this.temp[f-16]|0)}var v=(((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&u^~l&p)|0)+(d+($I[f]+this.temp[f]|0)|0)|0,_=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&s^i&o^s&o)|0;d=p,p=u,u=l,l=a+v|0,a=o,o=s,s=i,i=v+_|0}r[0]+=i,r[1]+=s,r[2]+=o,r[3]+=a,r[4]+=l,r[5]+=u,r[6]+=p,r[7]+=d},e})();var zI=(function(){function e(t){this.secret=t,this.hash=new vl,this.reset()}return e.prototype.update=function(t){if(!(Xr(t)||this.error))try{this.hash.update(mn(t))}catch(n){this.error=n}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return _i(this,void 0,void 0,function(){return wi(this,function(t){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new vl,this.secret){this.outer=new vl;var t=Hhe(this.secret),n=new Uint8Array($n);n.set(t);for(var r=0;r<$n;r++)t[r]^=54,n[r]^=92;this.hash.update(t),this.outer.update(n);for(var r=0;r$n){var n=new vl;n.update(t),t=n.digest()}var r=new Uint8Array($n);return r.set(t),r}var qI=(function(){function e(t){hm(hr())?this.hash=new ib(t):this.hash=new zI(t)}return e.prototype.update=function(t,n){this.hash.update(mn(t))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e})();c();var GI=({serviceId:e,clientVersion:t})=>async n=>{var m,g,x,v,_,w,E,S,A,k;let r=typeof window!="undefined"?window.navigator:void 0,i=(m=r==null?void 0:r.userAgent)!=null?m:"",s=(v=(x=(g=r==null?void 0:r.userAgentData)==null?void 0:g.platform)!=null?x:HI.os(i))!=null?v:"other",o=void 0,a=(w=(_=r==null?void 0:r.userAgentData)==null?void 0:_.brands)!=null?w:[],l=a[a.length-1],u=(S=(E=l==null?void 0:l.brand)!=null?E:HI.browser(i))!=null?S:"unknown",p=(A=l==null?void 0:l.version)!=null?A:"unknown",d=[["aws-sdk-js",t],["ua","2.1"],[`os/${s}`,o],["lang/js"],["md/browser",`${u}_${p}`]];e&&d.push([`api/${e}`,t]);let f=await((k=n==null?void 0:n.userAgentAppId)==null?void 0:k.call(n));return f&&d.push([`app/${f}`]),d},HI={os(e){if(/iPhone|iPad|iPod/.test(e))return"iOS";if(/Macintosh|Mac OS X/.test(e))return"macOS";if(/Windows NT/.test(e))return"Windows";if(/Android/.test(e))return"Android";if(/Linux/.test(e))return"Linux"},browser(e){if(/EdgiOS|EdgA|Edg\//.test(e))return"Microsoft Edge";if(/Firefox\//.test(e))return"Firefox";if(/Chrome\//.test(e))return"Chrome";if(/Safari\//.test(e))return"Safari"}};c();c();c();c();c();var tc=class e{constructor(t){C(this,"bytes");if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let r=7,i=Math.abs(Math.round(t));r>-1&&i>0;r--,i/=256)n[r]=i;return t<0&&VI(n),new e(n)}valueOf(){let t=this.bytes.slice(0),n=t[0]&128;return n&&VI(t),parseInt(ft(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}};function VI(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}var gm=class{constructor(t,n){C(this,"toUtf8");C(this,"fromUtf8");this.toUtf8=t,this.fromUtf8=n}format(t){let n=[];for(let s of Object.keys(t)){let o=this.fromUtf8(s);n.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(t[s]))}let r=new Uint8Array(n.reduce((s,o)=>s+o.byteLength,0)),i=0;for(let s of n)r.set(s,i),i+=s.byteLength;return r}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":let n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,t.value,!1),new Uint8Array(n.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case"long":let i=new Uint8Array(9);return i[0]=5,i.set(t.value.bytes,1),i;case"binary":let s=new DataView(new ArrayBuffer(3+t.value.byteLength));s.setUint8(0,6),s.setUint16(1,t.value.byteLength,!1);let o=new Uint8Array(s.buffer);return o.set(t.value,3),o;case"string":let a=this.fromUtf8(t.value),l=new DataView(new ArrayBuffer(3+a.byteLength));l.setUint8(0,7),l.setUint16(1,a.byteLength,!1);let u=new Uint8Array(l.buffer);return u.set(a,3),u;case"timestamp":let p=new Uint8Array(9);return p[0]=8,p.set(tc.fromNumber(t.value.valueOf()).bytes,1),p;case"uuid":if(!Jhe.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);let d=new Uint8Array(17);return d[0]=9,d.set(rd(t.value.replace(/\-/g,"")),1),d}}parse(t){let n={},r=0;for(;r{if(typeof a!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+a);t=a,n=4,r=new Uint8Array(a),new DataView(r.buffer).setUint32(0,a,!1)},o=async function*(){let a=e[Symbol.asyncIterator]();for(;;){let{value:l,done:u}=await a.next();if(u){if(t)if(t===n)yield r;else throw new Error("Truncated event message received.");else return;return}let p=l.length,d=0;for(;d({[Symbol.asyncIterator]:async function*(){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}}),eP=e=>{let t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(n){let{done:r,value:i}=await t.next();if(r)return n.close();n.enqueue(i)}})};var Em=class{constructor({utf8Encoder:t,utf8Decoder:n}){C(this,"universalMarshaller");this.universalMarshaller=new wm({utf8Decoder:n,utf8Encoder:t})}deserialize(t,n){let r=tge(t)?JI(t):t;return this.universalMarshaller.deserialize(r,n)}serialize(t,n){let r=this.universalMarshaller.serialize(t,n);return typeof ReadableStream=="function"?eP(r):r}},tge=e=>typeof ReadableStream=="function"&&e instanceof ReadableStream;c();var tP=e=>new Em(e);c();c();async function nP(e,t,n=1024*1024){let r=e.size,i=0;for(;i{r.update(i)}),r.digest()};c();var iP=e=>()=>Promise.reject(e);c();Zt();c();var sP=[1732584193,4023233417,2562383102,271733878];var Dm=class{constructor(){C(this,"state");C(this,"buffer");C(this,"bufferLength");C(this,"bytesHashed");C(this,"finished");this.reset()}update(t){if(rge(t))return;if(this.finished)throw new Error("Attempted to update an already finished hash.");let n=ige(t),r=0,{byteLength:i}=n;for(this.bytesHashed+=i;i>0;)this.buffer.setUint8(this.bufferLength++,n[r++]),i--,this.bufferLength===64&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){let{buffer:n,bufferLength:r,bytesHashed:i}=this,s=i*8;if(n.setUint8(this.bufferLength++,128),r%64>=56){for(let o=this.bufferLength;o<64;o++)n.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(let o=this.bufferLength;o<56;o++)n.setUint8(o,0);n.setUint32(56,s>>>0,!0),n.setUint32(60,Math.floor(s/4294967296),!0),this.hashBuffer(),this.finished=!0}let t=new DataView(new ArrayBuffer(16));for(let n=0;n<4;n++)t.setUint32(n*4,this.state[n],!0);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}hashBuffer(){let{buffer:t,state:n}=this,r=n[0],i=n[1],s=n[2],o=n[3];r=on(r,i,s,o,t.getUint32(0,!0),7,3614090360),o=on(o,r,i,s,t.getUint32(4,!0),12,3905402710),s=on(s,o,r,i,t.getUint32(8,!0),17,606105819),i=on(i,s,o,r,t.getUint32(12,!0),22,3250441966),r=on(r,i,s,o,t.getUint32(16,!0),7,4118548399),o=on(o,r,i,s,t.getUint32(20,!0),12,1200080426),s=on(s,o,r,i,t.getUint32(24,!0),17,2821735955),i=on(i,s,o,r,t.getUint32(28,!0),22,4249261313),r=on(r,i,s,o,t.getUint32(32,!0),7,1770035416),o=on(o,r,i,s,t.getUint32(36,!0),12,2336552879),s=on(s,o,r,i,t.getUint32(40,!0),17,4294925233),i=on(i,s,o,r,t.getUint32(44,!0),22,2304563134),r=on(r,i,s,o,t.getUint32(48,!0),7,1804603682),o=on(o,r,i,s,t.getUint32(52,!0),12,4254626195),s=on(s,o,r,i,t.getUint32(56,!0),17,2792965006),i=on(i,s,o,r,t.getUint32(60,!0),22,1236535329),r=an(r,i,s,o,t.getUint32(4,!0),5,4129170786),o=an(o,r,i,s,t.getUint32(24,!0),9,3225465664),s=an(s,o,r,i,t.getUint32(44,!0),14,643717713),i=an(i,s,o,r,t.getUint32(0,!0),20,3921069994),r=an(r,i,s,o,t.getUint32(20,!0),5,3593408605),o=an(o,r,i,s,t.getUint32(40,!0),9,38016083),s=an(s,o,r,i,t.getUint32(60,!0),14,3634488961),i=an(i,s,o,r,t.getUint32(16,!0),20,3889429448),r=an(r,i,s,o,t.getUint32(36,!0),5,568446438),o=an(o,r,i,s,t.getUint32(56,!0),9,3275163606),s=an(s,o,r,i,t.getUint32(12,!0),14,4107603335),i=an(i,s,o,r,t.getUint32(32,!0),20,1163531501),r=an(r,i,s,o,t.getUint32(52,!0),5,2850285829),o=an(o,r,i,s,t.getUint32(8,!0),9,4243563512),s=an(s,o,r,i,t.getUint32(28,!0),14,1735328473),i=an(i,s,o,r,t.getUint32(48,!0),20,2368359562),r=cn(r,i,s,o,t.getUint32(20,!0),4,4294588738),o=cn(o,r,i,s,t.getUint32(32,!0),11,2272392833),s=cn(s,o,r,i,t.getUint32(44,!0),16,1839030562),i=cn(i,s,o,r,t.getUint32(56,!0),23,4259657740),r=cn(r,i,s,o,t.getUint32(4,!0),4,2763975236),o=cn(o,r,i,s,t.getUint32(16,!0),11,1272893353),s=cn(s,o,r,i,t.getUint32(28,!0),16,4139469664),i=cn(i,s,o,r,t.getUint32(40,!0),23,3200236656),r=cn(r,i,s,o,t.getUint32(52,!0),4,681279174),o=cn(o,r,i,s,t.getUint32(0,!0),11,3936430074),s=cn(s,o,r,i,t.getUint32(12,!0),16,3572445317),i=cn(i,s,o,r,t.getUint32(24,!0),23,76029189),r=cn(r,i,s,o,t.getUint32(36,!0),4,3654602809),o=cn(o,r,i,s,t.getUint32(48,!0),11,3873151461),s=cn(s,o,r,i,t.getUint32(60,!0),16,530742520),i=cn(i,s,o,r,t.getUint32(8,!0),23,3299628645),r=un(r,i,s,o,t.getUint32(0,!0),6,4096336452),o=un(o,r,i,s,t.getUint32(28,!0),10,1126891415),s=un(s,o,r,i,t.getUint32(56,!0),15,2878612391),i=un(i,s,o,r,t.getUint32(20,!0),21,4237533241),r=un(r,i,s,o,t.getUint32(48,!0),6,1700485571),o=un(o,r,i,s,t.getUint32(12,!0),10,2399980690),s=un(s,o,r,i,t.getUint32(40,!0),15,4293915773),i=un(i,s,o,r,t.getUint32(4,!0),21,2240044497),r=un(r,i,s,o,t.getUint32(32,!0),6,1873313359),o=un(o,r,i,s,t.getUint32(60,!0),10,4264355552),s=un(s,o,r,i,t.getUint32(24,!0),15,2734768916),i=un(i,s,o,r,t.getUint32(52,!0),21,1309151649),r=un(r,i,s,o,t.getUint32(16,!0),6,4149444226),o=un(o,r,i,s,t.getUint32(44,!0),10,3174756917),s=un(s,o,r,i,t.getUint32(8,!0),15,718787259),i=un(i,s,o,r,t.getUint32(36,!0),21,3951481745),n[0]=r+n[0]&4294967295,n[1]=i+n[1]&4294967295,n[2]=s+n[2]&4294967295,n[3]=o+n[3]&4294967295}reset(){this.state=Uint32Array.from(sP),this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}};function Sm(e,t,n,r,i,s){return t=(t+e&4294967295)+(r+s&4294967295)&4294967295,(t<>>32-i)+n&4294967295}function on(e,t,n,r,i,s,o){return Sm(t&n|~t&r,e,t,i,s,o)}function an(e,t,n,r,i,s,o){return Sm(t&r|n&~r,e,t,i,s,o)}function cn(e,t,n,r,i,s,o){return Sm(t^n^r,e,t,i,s,o)}function un(e,t,n,r,i,s,o){return Sm(n^(t|~r),e,t,i,s,o)}function rge(e){return typeof e=="string"?e.length===0:e.byteLength===0}function ige(e){return typeof e=="string"?Wt(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}c();c();var oP=["in-region","cross-region","mobile","standard","legacy"];var aP=({defaultsMode:e}={})=>Y3(async()=>{let t=typeof e=="function"?await e():e;switch(t==null?void 0:t.toLowerCase()){case"auto":return Promise.resolve(sge()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(t==null?void 0:t.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${oP.join(", ")}, got ${t}`)}}),sge=()=>{var t;let e=window==null?void 0:window.navigator;if(e!=null&&e.connection){let{effectiveType:n,rtt:r,downlink:i}=e==null?void 0:e.connection;if(typeof n=="string"&&n!=="4g"||Number(r)>100||Number(i)<10)return!0}return((t=e==null?void 0:e.userAgentData)==null?void 0:t.mobile)||typeof(e==null?void 0:e.maxTouchPoints)=="number"&&(e==null?void 0:e.maxTouchPoints)>1};c();Zt();var cP=e=>{var t,n,r,i,s,o,a,l,u,p,d,f,m,g,x,v,_,w,E;return{apiVersion:"2006-03-01",base64Decoder:(t=e==null?void 0:e.base64Decoder)!=null?t:Ar,base64Encoder:(n=e==null?void 0:e.base64Encoder)!=null?n:Wn,disableHostPrefix:(r=e==null?void 0:e.disableHostPrefix)!=null?r:!1,endpointProvider:(i=e==null?void 0:e.endpointProvider)!=null?i:pf,extensions:(s=e==null?void 0:e.extensions)!=null?s:[],getAwsChunkedEncodingStream:(o=e==null?void 0:e.getAwsChunkedEncodingStream)!=null?o:F2,httpAuthSchemeProvider:(a=e==null?void 0:e.httpAuthSchemeProvider)!=null?a:Mk,httpAuthSchemes:(l=e==null?void 0:e.httpAuthSchemes)!=null?l:[{schemeId:"aws.auth#sigv4",identityProvider:S=>S.getIdentityProvider("aws.auth#sigv4"),signer:new oo},{schemeId:"aws.auth#sigv4a",identityProvider:S=>S.getIdentityProvider("aws.auth#sigv4a"),signer:new $u}],logger:(u=e==null?void 0:e.logger)!=null?u:new is,protocol:(p=e==null?void 0:e.protocol)!=null?p:Bu,protocolSettings:(d=e==null?void 0:e.protocolSettings)!=null?d:{defaultNamespace:"com.amazonaws.s3",errorTypeRegistries:YB,xmlNamespace:"http://s3.amazonaws.com/doc/2006-03-01/",version:"2006-03-01",serviceTarget:"AmazonS3"},sdkStreamMixin:(f=e==null?void 0:e.sdkStreamMixin)!=null?f:id,serviceId:(m=e==null?void 0:e.serviceId)!=null?m:"S3",signerConstructor:(g=e==null?void 0:e.signerConstructor)!=null?g:wa,signingEscapePath:(x=e==null?void 0:e.signingEscapePath)!=null?x:!1,urlParser:(v=e==null?void 0:e.urlParser)!=null?v:Ei,useArnRegion:(_=e==null?void 0:e.useArnRegion)!=null?_:void 0,utf8Decoder:(w=e==null?void 0:e.utf8Decoder)!=null?w:Wt,utf8Encoder:(E=e==null?void 0:e.utf8Encoder)!=null?E:In}};var uP=e=>{var i,s,o,a,l,u,p,d,f,m,g,x,v,_,w;let t=aP(e),n=()=>t().then(BA),r=cP(e);return{...r,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:(i=e==null?void 0:e.bodyLengthChecker)!=null?i:NR,credentialDefaultProvider:(s=e==null?void 0:e.credentialDefaultProvider)!=null?s:(E=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(o=e==null?void 0:e.defaultUserAgentProvider)!=null?o:GI({serviceId:r.serviceId,clientVersion:BI.version}),eventStreamSerdeProvider:(a=e==null?void 0:e.eventStreamSerdeProvider)!=null?a:tP,maxAttempts:(l=e==null?void 0:e.maxAttempts)!=null?l:os,md5:(u=e==null?void 0:e.md5)!=null?u:Dm,region:(p=e==null?void 0:e.region)!=null?p:iP("Region is missing"),requestHandler:td.create((d=e==null?void 0:e.requestHandler)!=null?d:n),retryMode:(f=e==null?void 0:e.retryMode)!=null?f:(async()=>(await n()).retryMode||vx),sha1:(m=e==null?void 0:e.sha1)!=null?m:NI,sha256:(g=e==null?void 0:e.sha256)!=null?g:qI,streamCollector:(x=e==null?void 0:e.streamCollector)!=null?x:nd,streamHasher:(v=e==null?void 0:e.streamHasher)!=null?v:rP,useDualstackEndpoint:(_=e==null?void 0:e.useDualstackEndpoint)!=null?_:(()=>Promise.resolve(T3)),useFipsEndpoint:(w=e==null?void 0:e.useFipsEndpoint)!=null?w:(()=>Promise.resolve(A3))}};c();c();var lP=e=>({setRegion(t){e.region=t},region(){return e.region}}),pP=e=>({region:e.region()});c();var dP=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(i){let s=t.findIndex(o=>o.schemeId===i.schemeId);s===-1?t.push(i):t.splice(s,1,i)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(i){n=i},httpAuthSchemeProvider(){return n},setCredentials(i){r=i},credentials(){return r}}},fP=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()});var mP=(e,t)=>{let n=Object.assign(lP(e),$A(e),x2(e),dP(e));return t.forEach(r=>r.configure(n)),Object.assign(e,pP(n),UA(n),v2(n),fP(n))};var Cm=class extends pd{constructor(...[n]){let r=uP(n||{});super(r);C(this,"config");this.initConfig=r;let i=$k(r),s=UR(i),o=rA(s),a=q3(o),l=F3(a),u=l,p=j3(u),d=B3(p),f=Lk(d),m=kR(f,{session:[()=>this,mm]}),g=mP(m,(n==null?void 0:n.extensions)||[]);this.config=g,this.middlewareStack.use(hA(this.config)),this.middlewareStack.use(C3(this.config)),this.middlewareStack.use(W3(this.config)),this.middlewareStack.use(P3(this.config)),this.middlewareStack.use(iA(this.config)),this.middlewareStack.use(sA(this.config)),this.middlewareStack.use(cA(this.config)),this.middlewareStack.use(wR(this.config,{httpAuthSchemeParametersProvider:Ik,identityProviderConfigProvider:async x=>new Nd({"aws.auth#sigv4":x.credentials,"aws.auth#sigv4a":x.credentials})})),this.middlewareStack.use(DR(this.config)),this.middlewareStack.use(IR(this.config)),this.middlewareStack.use(b2(this.config)),this.middlewareStack.use(HA(this.config)),this.middlewareStack.use(ax(this.config)),this.middlewareStack.use(lx(this.config))}destroy(){super.destroy()}};c();c();function oge(e){return t=>async n=>{let r={...n.input},i=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(let s of i){let o=r[s.target];if(o){let a;typeof o=="string"?cge(o,e)?a=e.base64Decoder(o):(a=e.utf8Decoder(o),r[s.target]=e.base64Encoder(a)):(a=ArrayBuffer.isView(o)?new Uint8Array(o.buffer,o.byteOffset,o.byteLength):new Uint8Array(o),r[s.target]=e.base64Encoder(a));let l=new e.md5;l.update(a),r[s.hash]=e.base64Encoder(await l.digest())}}return t({...n,input:r})}}var age={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},gr=e=>({applyToStack:t=>{t.add(oge(e),age)}});function cge(e,t){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))return!1;try{return t.base64Decoder(e).length===32}catch(r){return!1}}var Tm=class extends nt.classBuilder().ep({...ht,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,n,r,i){return[mt(r,t.getEndpointParameterInstructions()),Dt(r),gr(r)]}).s("AmazonS3","CompleteMultipartUpload",{}).n("S3Client","CompleteMultipartUploadCommand").sc(wI).build(){};c();var Am=class extends nt.classBuilder().ep({...ht,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,n,r,i){return[mt(r,t.getEndpointParameterInstructions()),Dt(r),gr(r)]}).s("AmazonS3","CreateMultipartUpload",{}).n("S3Client","CreateMultipartUploadCommand").sc(EI).build(){};c();var bl=class extends nt.classBuilder().ep({...ht,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,n,r,i){return[mt(r,t.getEndpointParameterInstructions()),Dt(r)]}).s("AmazonS3","DeleteObject",{}).n("S3Client","DeleteObjectCommand").sc(SI).build(){};c();var Rm=class extends nt.classBuilder().ep({...ht,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,n,r,i){return[mt(r,t.getEndpointParameterInstructions()),ts(r,{requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC64NVME","CRC32","CRC32C","SHA256","SHA1"]}),gr(r),Sd(r)]}).s("AmazonS3","GetObject",{}).n("S3Client","GetObjectCommand").sc(CI).build(){};c();var km=class extends nt.classBuilder().ep({...ht,Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,i){return[mt(r,t.getEndpointParameterInstructions()),Dt(r)]}).s("AmazonS3","HeadBucket",{}).n("S3Client","HeadBucketCommand").sc(TI).build(){};c();var Om=class extends nt.classBuilder().ep({...ht,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,n,r,i){return[mt(r,t.getEndpointParameterInstructions()),Dt(r),gr(r),Sd(r)]}).s("AmazonS3","HeadObject",{}).n("S3Client","HeadObjectCommand").sc(AI).build(){};c();var Fm=class extends nt.classBuilder().ep({...ht,Bucket:{type:"contextParams",name:"Bucket"},Prefix:{type:"contextParams",name:"Prefix"}}).m(function(t,n,r,i){return[mt(r,t.getEndpointParameterInstructions()),Dt(r)]}).s("AmazonS3","ListObjectsV2",{}).n("S3Client","ListObjectsV2Command").sc(RI).build(){};c();var bo=class extends nt.classBuilder().ep({...ht,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,n,r,i){return[mt(r,t.getEndpointParameterInstructions()),ts(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),jA(r),Dt(r),gr(r)]}).s("AmazonS3","PutObject",{}).n("S3Client","PutObjectCommand").sc(kI).build(){};c();var Bm=class extends nt.classBuilder().ep({...ht,Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,i){return[mt(r,t.getEndpointParameterInstructions()),ts(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0}),Dt(r)]}).s("AmazonS3","PutObjectTagging",{}).n("S3Client","PutObjectTaggingCommand").sc(OI).build(){};c();var Im=class extends nt.classBuilder().ep({...ht,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,n,r,i){return[mt(r,t.getEndpointParameterInstructions()),ts(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),Dt(r),gr(r)]}).s("AmazonS3","UploadPart",{}).n("S3Client","UploadPartCommand").sc(FI).build(){};c();c();c();c();c();var Pm=class{constructor(){this.onabort=null,this._aborted=!1,Object.defineProperty(this,"_aborted",{value:!1,writable:!0})}get aborted(){return this._aborted}abort(){this._aborted=!0,this.onabort&&(this.onabort(this),this.onabort=null)}};var Nm=class{constructor(){this.signal=new Pm}abort(){this.signal.abort()}};c();c();c();c();c();var hP=async e=>{let t=(e==null?void 0:e.Bucket)||"";if(typeof e.Bucket=="string"&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),fge(t)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!dge(t)||t.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},uge=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,lge=/(\d+\.){3}\d+/,pge=/\.\./;var dge=e=>uge.test(e)&&!lge.test(e)&&!pge.test(e),fge=e=>{let[t,n,r,,,i]=e.split(":"),s=t==="arn"&&e.split(":").length>=6,o=!!(s&&n&&r&&i);if(s&&!o)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return o};c();var gP=(e,t,n)=>{let r=async()=>{var s;let i=(s=n[e])!=null?s:n[t];return typeof i=="function"?i():i};return e==="credentialScope"||t==="CredentialScope"?async()=>{var o;let i=typeof n.credentials=="function"?await n.credentials():n.credentials;return(o=i==null?void 0:i.credentialScope)!=null?o:i==null?void 0:i.CredentialScope}:e==="endpoint"||t==="endpoint"?async()=>{let i=await r();if(i&&typeof i=="object"){if("url"in i)return i.url.href;if("hostname"in i){let{protocol:s,hostname:o,port:a,path:l}=i;return`${s}//${o}${a?":"+a:""}${l}`}}return i}:r};c();var yP=async e=>{};c();c();c();function xP(e){let t={};if(e=e.replace(/^\?/,""),e)for(let n of e.split("&")){let[r,i=null]=n.split("=");r=decodeURIComponent(r),i&&(i=decodeURIComponent(i)),r in t?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i}return t}var Mm=e=>{if(typeof e=="string")return Mm(new URL(e));let{hostname:t,pathname:n,port:r,protocol:i,search:s}=e,o;return s&&(o=xP(s)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:o}};var _l=e=>typeof e=="object"?"url"in e?Mm(e.url):e:Mm(e);var sb=async(e,t,n,r)=>{if(!n.endpoint){let o=await yP(n.serviceId||"");o&&(n.endpoint=()=>Promise.resolve(_l(o)))}let i=await mge(e,t,n);if(typeof n.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return n.endpointProvider(i,r)},mge=async(e,t,n)=>{var s;let r={},i=((s=t==null?void 0:t.getEndpointParameterInstructions)==null?void 0:s.call(t))||{};for(let[o,a]of Object.entries(i))switch(a.type){case"staticContextParams":r[o]=a.value;break;case"contextParams":r[o]=e[a.name];break;case"clientContextParams":case"builtInParams":r[o]=await gP(a.name,o,n)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(a))}return Object.keys(i).length===0&&Object.assign(r,n),String(n.serviceId).toLowerCase()==="s3"&&await hP(r),r};c();c();c();c();c();c();c();var vP;(function(e){e.HEADER="header",e.QUERY="query"})(vP||(vP={}));c();var bP;(function(e){e.HEADER="header",e.QUERY="query"})(bP||(bP={}));c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();var _P;(function(e){e.HTTP="http",e.HTTPS="https"})(_P||(_P={}));c();c();c();c();c();c();c();c();c();c();var Lm;(function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"})(Lm||(Lm={}));c();c();var ob;(function(e){e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER"})(ob||(ob={}));c();c();c();c();c();c();c();c();c();c();var wP;(function(e){e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services"})(wP||(wP={}));c();c();c();c();c();c();c();c();c();c();var EP;(function(e){e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0"})(EP||(EP={}));c();c();c();c();c();c();c();c();c();c();c();c();var DP={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};var pZe={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:DP.name};c();c();c();c();c();c();c();c();c();c();c();c();c();c();var _o={},nc=new Array(64);for(let e=0,t=65,n=90;e+t<=n;e++){let r=String.fromCharCode(e+t);_o[r]=e,nc[e]=r}for(let e=0,t=97,n=122;e+t<=n;e++){let r=String.fromCharCode(e+t),i=e+26;_o[r]=i,nc[i]=r}for(let e=0;e<10;e++){_o[e.toString(10)]=e+52;let t=e.toString(10),n=e+52;_o[t]=n,nc[n]=t}_o["+"]=62;nc[62]="+";_o["/"]=63;nc[63]="/";c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();var hJe={supported:typeof Request!="undefined"&&"keepalive"in new Request("https://[::1]")};c();c();var Dge={},Sge={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),Dge[e]=t,Sge[t]=e}c();c();c();c();c();var ZJe=Math.ceil(34028234663852886e22);var set=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);var oet=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/);var aet=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),cet=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),uet=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/);var pet=50*365*24*60*60*1e3;c();c();c();c();c();c();c();c();c();function $m(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}c();c();c();var ab=function(){let e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,[null,...arguments]),n=new t;return Object.setPrototypeOf(n,e.prototype),n};ab.prototype=Object.create(String.prototype,{constructor:{value:ab,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(ab,String);c();c();c();c();c();var Ih=at(wl());c();c();c();var NP={lstatSync:()=>{}};var MP={...NP,runtime:"browser"};var zm=e=>{if(e==null)return 0;if(typeof e=="string"&&(e=h.Buffer.from(e)),typeof e.byteLength=="number")return e.byteLength;if(typeof e.length=="number")return e.length;if(typeof e.size=="number")return e.size;if(typeof e.path=="string")try{return MP.lstatSync(e.path).size}catch(t){return}};c();var w_=at(Cr()),E8=at(x_());c();async function*v_(e,t){let n=1,r=0,i=t;for(;i=t;){let o=i.chunks.length>1?b_.Buffer.concat(i.chunks):i.chunks[0];yield{partNumber:r,data:o.slice(0,t)},i.chunks=[o.slice(t)],i.length=i.chunks[0].length,r+=1}yield{partNumber:r,data:b_.Buffer.concat(i.chunks),lastPart:!0}}c();var b8=at(Cr());async function*_8(e){for await(let t of e)yield b8.Buffer.from(t)}c();var w8=at(Cr());async function*__(e){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield w8.Buffer.from(r)}}catch(n){throw n}finally{t.releaseLock()}}var D8=(e,t)=>{if(e instanceof w_.Buffer)return v_(e,t);if(e instanceof E8.Readable)return Bh(e,t,_8);if(e instanceof String||typeof e=="string"||e instanceof Uint8Array)return v_(w_.Buffer.from(e),t);if(typeof e.stream=="function")return Bh(e.stream(),t,__);if(e instanceof ReadableStream)return Bh(e,t,__);throw new Error("Body Data is unsupported format, expected data to be one of: string | Uint8Array | Buffer | Readable | ReadableStream | Blob;.")};var E_=1024*1024*5,$l=class extends Ih.EventEmitter{constructor(t){var n;super(),this.MAX_PARTS=1e4,this.queueSize=4,this.partSize=E_,this.leavePartsOnError=!1,this.tags=[],this.concurrentUploaders=[],this.uploadedParts=[],this.isMultiPart=!0,this.queueSize=t.queueSize||this.queueSize,this.partSize=t.partSize||this.partSize,this.leavePartsOnError=t.leavePartsOnError||this.leavePartsOnError,this.tags=t.tags||this.tags,this.client=t.client,this.params=t.params,this.__validateInput(),this.totalBytes=zm(this.params.Body),this.bytesUploadedSoFar=0,this.abortController=(n=t.abortController)!=null?n:new Nm}async abort(){this.abortController.abort()}async done(){return await Promise.race([this.__doMultipartUpload(),this.__abortTimeout(this.abortController.signal)])}on(t,n){return this.uploadEvent=t,super.on(t,n)}async __uploadUsingPut(t){var g;this.isMultiPart=!1;let n={...this.params,Body:t.data},r=this.client.config,i=r.requestHandler,s=i instanceof Ih.EventEmitter?i:null,o=x=>{this.bytesUploadedSoFar=x.loaded,this.totalBytes=x.total,this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:t.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})};s!==null&&s.on("xhr.upload.progress",o);let a=await Promise.all([this.client.send(new bo(n)),(g=r==null?void 0:r.endpoint)==null?void 0:g.call(r)]),l=a[0],u=a[1];if(u||(u=_l(await sb(n,bo,{...r}))),!u)throw new Error('Could not resolve endpoint from S3 "client.config.endpoint()" nor EndpointsV2.');s!==null&&s.off("xhr.upload.progress",o);let p=this.params.Key.split("/").map(x=>$m(x)).join("/"),d=$m(this.params.Bucket),f=(()=>{let x=u.hostname.startsWith(`${d}.`);return this.client.config.forcePathStyle?`${u.protocol}//${u.hostname}/${d}/${p}`:x?`${u.protocol}//${u.hostname}/${p}`:`${u.protocol}//${d}.${u.hostname}/${p}`})();this.singleUploadResult={...l,Bucket:this.params.Bucket,Key:this.params.Key,Location:f};let m=zm(t.data);this.__notifyProgress({loaded:m,total:m,part:1,Key:this.params.Key,Bucket:this.params.Bucket})}async __createMultipartUpload(){if(!this.createMultiPartPromise){let t={...this.params,Body:void 0};this.createMultiPartPromise=this.client.send(new Am(t))}return this.createMultiPartPromise}async __doConcurrentUpload(t){for await(let n of t){if(this.uploadedParts.length>this.MAX_PARTS)throw new Error(`Exceeded ${this.MAX_PARTS} as part of the upload to ${this.params.Key} and ${this.params.Bucket}.`);try{if(this.abortController.signal.aborted)return;if(n.partNumber===1&&n.lastPart)return await this.__uploadUsingPut(n);if(!this.uploadId){let{UploadId:u}=await this.__createMultipartUpload();if(this.uploadId=u,this.abortController.signal.aborted)return}let r=zm(n.data)||0,i=this.client.config.requestHandler,s=i instanceof Ih.EventEmitter?i:null,o=0,a=(u,p)=>{(Number(p.query.partNumber)||-1)===n.partNumber&&(u.total&&r&&(this.bytesUploadedSoFar+=u.loaded-o,o=u.loaded),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:n.partNumber,Key:this.params.Key,Bucket:this.params.Bucket}))};s!==null&&s.on("xhr.upload.progress",a);let l=await this.client.send(new Im({...this.params,UploadId:this.uploadId,Body:n.data,PartNumber:n.partNumber}));if(s!==null&&s.off("xhr.upload.progress",a),this.abortController.signal.aborted)return;if(!l.ETag)throw new Error(`Part ${n.partNumber} is missing ETag in UploadPart response. Missing Bucket CORS configuration for ETag header?`);this.uploadedParts.push({PartNumber:n.partNumber,ETag:l.ETag,...l.ChecksumCRC32&&{ChecksumCRC32:l.ChecksumCRC32},...l.ChecksumCRC32C&&{ChecksumCRC32C:l.ChecksumCRC32C},...l.ChecksumSHA1&&{ChecksumSHA1:l.ChecksumSHA1},...l.ChecksumSHA256&&{ChecksumSHA256:l.ChecksumSHA256}}),s===null&&(this.bytesUploadedSoFar+=r),this.__notifyProgress({loaded:this.bytesUploadedSoFar,total:this.totalBytes,part:n.partNumber,Key:this.params.Key,Bucket:this.params.Bucket})}catch(r){if(!this.uploadId||this.leavePartsOnError)throw r}}}async __doMultipartUpload(){let t=D8(this.params.Body,this.partSize);for(let r=0;ri.PartNumber-s.PartNumber);let r={...this.params,Body:void 0,UploadId:this.uploadId,MultipartUpload:{Parts:this.uploadedParts}};n=await this.client.send(new Tm(r))}else n=this.singleUploadResult;return this.tags.length&&await this.client.send(new Bm({...this.params,Tagging:{TagSet:this.tags}})),n}__notifyProgress(t){this.uploadEvent&&this.emit(this.uploadEvent,t)}async __abortTimeout(t){return new Promise((n,r)=>{t.onabort=()=>{let i=new Error("Upload aborted.");i.name="AbortError",r(i)}})}__validateInput(){if(!this.params)throw new Error("InputError: Upload requires params to be passed to upload.");if(!this.client)throw new Error("InputError: Upload requires a AWS client to do uploads with.");if(this.partSize{let s=i.match(P8);if(s===null||!s[1])return!0;let o=s[1];return o.includes(".app/Contents/Resources/electron.asar")||o.includes(".app/Contents/Resources/default_app.asar")||o.includes("node_modules/electron/dist/resources/electron.asar")||o.includes("node_modules/electron/dist/resources/default_app.asar")?!1:!wbe.test(o)}).filter(i=>i.trim()!=="").map(i=>(r&&(i=i.replace(r,"$1")),t&&(i=i.replace(P8,(s,o)=>s.replace(o,o.replace(Ebe,"~")))),i)).join(` +`)}var Dbe=e=>e.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,""),Hl,ci=class extends Error{constructor(n){if(!Array.isArray(n))throw new TypeError(`Expected input to be an Array, got ${typeof n}`);n=n.map(i=>i instanceof Error?i:i!==null&&typeof i=="object"?Object.assign(new Error(i.message),i):new Error(i));let r=n.map(i=>typeof i.stack=="string"&&i.stack.length>0?Dbe(T_(i.stack)):String(i)).join(` `);r=` -`+w_(r,4);super(r);Ht(this,Ul);S(this,"name","AggregateError");Ne(this,Ul,n)}get errors(){return Y(this,Ul).slice()}};Ul=new WeakMap;c();c();var B8={chars:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bits:6};var Ro={parse:function(t,n){return fbe(t,B8,n)},stringify:function(t,n){return mbe(t,B8,n)}};function fbe(e,t,n){var r;if(n===void 0&&(n={}),!t.codes){t.codes={};for(var i=0;i=8&&(a-=8,o[u++]=255&l>>a)}if(a>=t.bits||255&l<<8-a)throw new SyntaxError("Unexpected end of data");return o}function mbe(e,t,n){n===void 0&&(n={});for(var r=n,i=r.pad,s=i===void 0?!0:i,o=(1<t.bits;)l-=t.bits,a+=t.chars[o&u>>l];if(l&&(a+=t.chars[o&u<{bs.methodFactory=M8,bs.setLevel(bs.getLevel())},oe=bs;var C_=(e,t=!0,n=!0)=>{if(!(t||n))throw Error("parameter error for isHiddenPath");let i=gbe(e).split("/");for(let s of i)if(!(s==="."||s===".."||s==="")&&(t&&s[0]==="."||n&&s[0]==="_"))return!0;return!1},gbe=e=>{if(!e)throw Error("missing path for normalizePath");e=e.replace(/\\/g,"/"),e=e.replace(/\/\/+/g,"/");let t=e.split("/"),n=[];for(let r of t)r===".."?n.pop():r!=="."&&r!==""&&n.push(r);return n.join("/")},ybe=e=>{e=e.replace(/\\/g,"/");let t=e.split("/");t.pop();let n=t.join("/");return n===""||n==="/"||n==="."?"/":n},xbe=(e,t=!1)=>{let n=[];if(e===""||e==="/")return n;let r=e.split("/"),i=0;for(let s=0;s+1{let n=xbe(e);for(let r of n)await t.adapter.exists(r)||await t.adapter.mkdir(r)},vr=e=>e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);var jl=e=>{let t=ybe(e);return t==="."||t==="/"?"/":t.endsWith("/")?t:`${t}/`};var U8=(e,t)=>{let n=typeof window!="undefined"&&window.crypto||typeof globalThis!="undefined"&&globalThis.crypto;if(!n||!n.getRandomValues)throw new Error("Crypto API not available");let r=new Uint32Array(1);n.getRandomValues(r);let i=r[0]/4294967296;return e=Math.ceil(e),t=Math.floor(t),Math.floor(i*(t-e+1))+e},j8=e=>{let t=typeof window!="undefined"&&window.crypto||typeof globalThis!="undefined"&&globalThis.crypto;if(!t||!t.getRandomValues)throw new Error("Crypto API not available");let n=t.getRandomValues(new Uint8Array(e));return vr(n)},Mh=e=>[...e].reverse().join("");var T_=e=>{(e===void 0||e===""||e==="."||e===".."||e.startsWith("/"))&&oe.debug(`do not know which level for ${e}`);let t=e;return e.endsWith("/")&&(t=e.slice(0,-1)),t.split("/").length},z8=e=>/[?/\\]/.test(e),Qn=e=>{if(!(e==null||Number.isNaN(e)))return(0,$8.moment)(e).format()},vbe=()=>{let e=new WeakSet;return(t,n)=>{if(typeof n=="object"&&n!==null){if(e.has(n))return;e.add(n)}return n}},q8=e=>{if(e==null)return`${e}`;if(typeof e=="string")return e;if(e instanceof String||e instanceof Date||typeof e=="number"||typeof e=="bigint"||typeof e=="boolean")return`${e}`;if(e instanceof Error||e&&e.stack&&e.message&&typeof e.stack=="string"&&typeof e.message=="string")return`ERROR! MESSAGE: ${e.message}, STACK: ${e.stack}`;try{let t=JSON.stringify(e,vbe(),2);if(t!==void 0)return t;throw new Error("not jsonable")}catch(t){return`${e}`}},vc=async(e,t)=>{let n=await e.adapter.stat(t);if(n!=null)return(n.ctime===void 0||n.ctime===null||Number.isNaN(n.ctime))&&(n.ctime=void 0),(n.mtime===void 0||n.mtime===null||Number.isNaN(n.mtime))&&(n.mtime=void 0),(n.size===void 0||n.size===null||Number.isNaN(n.size))&&n.type==="folder"&&(n.size=0),n};function H8(e,t){let n=(i,s)=>e.t(i,s),r={lastSyncMsg:n("statusbar_lastsync_never"),lastSyncLabelMsg:n("statusbar_lastsync_never_label")};if(t!==void 0&&t>0){let i=Date.now()-t,s=Math.floor(i/31556952e3),o=Math.floor(i/2629746e3),a=Math.floor(i/6048e5),l=Math.floor(i/864e5),u=Math.floor(i/36e5),p=Math.floor(i/6e4),d="";s>0?d=n("statusbar_time_years",{time:s}):o>0?d=n("statusbar_time_months",{time:o}):a>0?d=n("statusbar_time_weeks",{time:a}):l>0?d=n("statusbar_time_days",{time:l}):u>0?d=n("statusbar_time_hours",{time:u}):p>0?d=n("statusbar_time_minutes",{time:p}):d=n("statusbar_time_lessminute");let f=new Date(t).toLocaleTimeString(navigator.language,{weekday:"long",year:"numeric",month:"long",day:"numeric"});r.lastSyncMsg=n("statusbar_lastsync",{time:d}),r.lastSyncLabelMsg=n("statusbar_lastsync_label",{date:f})}return r}var zl=2e4,G8=async(e,t,n=zl)=>{let r=typeof window!="undefined"&&window.crypto||typeof globalThis!="undefined"&&globalThis.crypto;if(!r||!r.subtle||!r.subtle.importKey||!r.subtle.deriveBits)throw new Error("Crypto subtle API not available");let i=await r.subtle.importKey("raw",new TextEncoder().encode(t),{name:"PBKDF2"},!1,["deriveKey","deriveBits"]);return await r.subtle.deriveBits({name:"PBKDF2",salt:e,iterations:n,hash:"SHA-256"},i,256)},_s=async(e,t,n=zl)=>{let r=typeof window!="undefined"&&window.crypto||typeof globalThis!="undefined"&&globalThis.crypto;if(!r||!r.getRandomValues||!r.subtle||!r.subtle.importKey||!r.subtle.encrypt)throw new Error("Crypto API not available");let i=r.getRandomValues(new Uint8Array(16)),s=await G8(i,t,n),o=r.getRandomValues(new Uint8Array(12)),a=await r.subtle.importKey("raw",s,{name:"AES-GCM"},!1,["encrypt","decrypt"]),l=await r.subtle.encrypt({name:"AES-GCM",iv:o},a,e),u=new Uint8Array([...i,...o,...new Uint8Array(l)]);return vr(u)},ko=async(e,t,n=zl)=>{let r=e.slice(0,16),i=e.slice(16,28),s=e.slice(28),o=await G8(new Uint8Array(r),t,n),a=typeof window!="undefined"&&window.crypto||typeof globalThis!="undefined"&&globalThis.crypto;if(!a||!a.subtle||!a.subtle.importKey||!a.subtle.decrypt)throw new Error("Crypto API not available");let l=await a.subtle.importKey("raw",o,{name:"AES-GCM"},!1,["encrypt","decrypt"]);return await a.subtle.decrypt({name:"AES-GCM",iv:i},l,s)};var A_=async(e,t,n=zl)=>{let r=await _s(vr(new TextEncoder().encode(e)),t,n);return Ro.stringify(new Uint8Array(r),{pad:!1})},Lh=async(e,t,n=zl)=>new TextDecoder().decode(await ko(vr(Ro.parse(e,{loose:!0})),t,n)),$h=e=>{if(e<0||Number.isNaN(e)||!Number.isInteger(e))throw Error(`getSizeFromOrigToEnc: x=${e} is not a valid size`);return e+16+16+12};var R_=class extends w8{constructor(n){super(n);S(this,"requestTimeoutInMs");this.requestTimeoutInMs=n===void 0?void 0:n.requestTimeout}async handle(n,{abortSignal:r}={}){if(r!=null&&r.aborted){let g=new Error("Request aborted");return g.name="AbortError",Promise.reject(g)}let i=n.path;if(n.query){let g=Fh(n.query);g&&(i+=`?${g}`)}let{port:s,method:o}=n,a=`${n.protocol}//${n.hostname}${s?`:${s}`:""}${i}`,l=o==="GET"||o==="HEAD"?void 0:n.body,u={};for(let g of Object.keys(n.headers)){let x=g.toLowerCase();x==="host"||x==="content-length"||(u[x]=n.headers[g])}let p;u["content-type"]!==void 0&&(p=u["content-type"]);let d=l;ArrayBuffer.isView(l)&&(d=vr(l));let m=[(0,W8.requestUrl)({body:d,headers:u,method:o,url:a,contentType:p}).then(g=>{let x=g.headers,v={};for(let w of Object.keys(x))v[w.toLowerCase()]=x[w];let _=new ReadableStream({start(w){w.enqueue(new Uint8Array(g.arrayBuffer)),w.close()}});return{response:new Nl({headers:v,statusCode:g.status,body:_})}}),Bh(this.requestTimeoutInMs)];return r&&m.push(new Promise((g,x)=>{r.onabort=()=>{let v=new Error("Request aborted");v.name="AbortError",x(v)}})),Promise.race(m)}updateHttpClientConfig(n,r){}httpHandlerConfigs(){return{}}},jh={s3Endpoint:"",s3Region:"",s3AccessKeyID:"",s3SecretAccessKey:"",s3BucketName:"",bypassCorsLocally:!0,partsConcurrency:20,forcePathStyle:!1,disableS3MetadataSync:!1},bbe=e=>{if(e===void 0||e.Key===void 0||e.LastModified===void 0||e.Size===void 0)throw Error(`invalid S3 object shape: ${JSON.stringify(e)}`);return{key:e.Key,lastModified:e.LastModified.valueOf(),size:e.Size,remoteType:"s3",etag:e.ETag}},_be=(e,t)=>{let n=t.LastModified.valueOf();return t.Metadata.modification_time!=null&&(n=parseInt(t.Metadata.modification_time)),{key:e,lastModified:n,size:t.ContentLength,remoteType:"s3",etag:t.ETag}},bc=e=>{let t=e.s3Endpoint;t.startsWith("http://")||t.startsWith("https://")||(t=`https://${t}`);let n,r={region:e.s3Region,endpoint:t,forcePathStyle:e.forcePathStyle,credentials:{accessKeyId:e.s3AccessKeyID,secretAccessKey:e.s3SecretAccessKey}};return sr&&e.bypassCorsLocally&&(r.requestHandler=new R_),n=new Em(r),n.middlewareStack.add((i,s)=>o=>(o.request.headers["cache-control"]="no-cache",i(o)),{step:"build"}),n},V8=async(e,t,n)=>{let r=await e.send(new Am({Bucket:t.s3BucketName,Key:n}));return _be(n,r)},Y8=async(e,t,n,r,i=!1,s="",o="",a=!1,l="")=>{let u=n;s!==""&&(u=o);let p=n.endsWith("/");if(p&&i)throw Error("upload function doesn't implement recursive function yet!");if(p&&!i){if(a)throw Error("you specify uploadRaw, but you also provide a folder key!");let d=mi;return await e.send(new go({Bucket:t.s3BucketName,Key:u,Body:"",ContentType:d})),await V8(e,t,u)}else{let d=mi;s===""&&(d=Uh.contentType(Uh.lookup(n)||mi)||mi);let f;a?typeof l=="string"?f=new TextEncoder().encode(l).buffer:f=l:f=await r.adapter.readBinary(n);let m=f;s!==""&&(m=await _s(f,s));let g=5242880,x=new Uint8Array(m),v=await vc(r,n),_=v==null?void 0:v.mtime.toString(),w={Bucket:t.s3BucketName,Key:u,Body:x,ContentType:d};t.disableS3MetadataSync||(w.Metadata={modification_time:_});let D=new Pl({client:e,queueSize:t.partsConcurrency,partSize:g,leavePartsOnError:!1,params:w});try{await D.done()}catch(C){if(!t.disableS3MetadataSync&&w.Metadata!==void 0){oe.warn("S3 upload with metadata failed, retrying once without metadata",C);let A={...w};delete A.Metadata,await new Pl({client:e,queueSize:t.partsConcurrency,partSize:g,leavePartsOnError:!1,params:A}).done()}else throw C}return await V8(e,t,u)}},k_=async(e,t,n)=>{let r={Bucket:t.s3BucketName};n!==void 0&&(r.Prefix=n);let i=[],s=!0;do{let a=await e.send(new Rm(r));if(a.$metadata.httpStatusCode!==200)throw Error("some thing bad while listing remote!");if(a.Contents===void 0)break;if(i.push(...a.Contents),s=a.IsTruncated,r.ContinuationToken=a.NextContinuationToken,s&&(r.ContinuationToken===void 0||r.ContinuationToken===""))throw Error("isTruncated is true but no continuationToken provided")}while(s);let o=[];for(let a of i)try{o.push(bbe(a))}catch(l){oe.warn(`skip unrecognized S3 object while listing remote: ${JSON.stringify({key:a==null?void 0:a.Key})}`,l)}return{Contents:o}},wbe=async e=>{if(e instanceof K8.Readable)return await new Promise((t,n)=>{let r=[];e.on("data",i=>r.push(i)),e.on("error",n),e.on("end",()=>{let i=r.reduce((a,l)=>a+l.byteLength,0),s=new Uint8Array(i),o=0;for(let a of r)s.set(a,o),o+=a.byteLength;t(vr(s))})});if(e instanceof ReadableStream)return await new Response(e,{}).arrayBuffer();if(e instanceof Blob)return await e.arrayBuffer();throw TypeError(`The type of ${e} is not one of the supported types`)},Ebe=async(e,t,n)=>{let r=await e.send(new Cm({Bucket:t.s3BucketName,Key:n}));return await wbe(r.Body)},X8=async(e,t,n,r,i,s="",o="",a=!1)=>{let l=n.endsWith("/");if(a||await Lr(n,r),l)return new ArrayBuffer(0);{let u=n;s!==""&&(u=o);let p=await Ebe(e,t,u),d=p;return s!==""&&(d=await ko(p,s)),a||await r.adapter.writeBinary(n,d,{mtime:i}),d}},Z8=async(e,t,n,r="",i="")=>{if(n==="/")return;let s=n;r!==""&&(s=i),await e.send(new gl({Bucket:t.s3BucketName,Key:s})),n.endsWith("/")&&r===""?(await k_(e,t,n)).Contents.forEach(async a=>{await e.send(new gl({Bucket:t.s3BucketName,Key:a.key}))}):n.endsWith("/")},Q8=async(e,t,n)=>{try{let r=await e.send(new Tm({Bucket:t.s3BucketName}));if(r===void 0||r.$metadata===void 0||r.$metadata.httpStatusCode===void 0){let i="results or $metadata or httStatusCode is undefined";return oe.debug(i),n!==void 0&&n(i),!1}return r.$metadata.httpStatusCode===200}catch(r){if(oe.debug(r),n!==void 0)if(t.s3Endpoint.contains(t.s3BucketName)){let i=new Pi([r,new Error("Maybe you've included the bucket name inside the endpoint setting. Please remove the bucket name and try again.")]);n(i)}else n(r);return!1}};c();var j6=at(Sr()),Dw=require("obsidian"),z6=at(B_()),q6=at(I_()),H6=at(P_());c();c();var p_e=202,d_e=502,f_e=400,m_e=409,h_e=100,g_e=201,y_e=417;var x_e=403,v_e=504,b_e=410,__e=505,w_e=418,E_e=419,D_e=507,S_e=500,C_e=411,T_e=423,A_e=420,R_e=405,k_e=301,O_e=302,F_e=207,B_e=300,I_e=511,P_e=204,N_e=203,M_e=406,L_e=404,$_e=501,U_e=304,j_e=200,z_e=206,q_e=402,H_e=308,G_e=412,V_e=428,W_e=102,K_e=407,Y_e=431,X_e=408,Z_e=413,Q_e=414,J_e=416,ewe=205,twe=303,nwe=503,rwe=101,iwe=307,swe=429,owe=401,awe=422,cwe=415,uwe=305,TL={ACCEPTED:p_e,BAD_GATEWAY:d_e,BAD_REQUEST:f_e,CONFLICT:m_e,CONTINUE:h_e,CREATED:g_e,EXPECTATION_FAILED:y_e,FORBIDDEN:x_e,GATEWAY_TIMEOUT:v_e,GONE:b_e,HTTP_VERSION_NOT_SUPPORTED:__e,IM_A_TEAPOT:w_e,INSUFFICIENT_SPACE_ON_RESOURCE:E_e,INSUFFICIENT_STORAGE:D_e,INTERNAL_SERVER_ERROR:S_e,LENGTH_REQUIRED:C_e,LOCKED:T_e,METHOD_FAILURE:A_e,METHOD_NOT_ALLOWED:R_e,MOVED_PERMANENTLY:k_e,MOVED_TEMPORARILY:O_e,MULTI_STATUS:F_e,MULTIPLE_CHOICES:B_e,NETWORK_AUTHENTICATION_REQUIRED:I_e,NO_CONTENT:P_e,NON_AUTHORITATIVE_INFORMATION:N_e,NOT_ACCEPTABLE:M_e,NOT_FOUND:L_e,NOT_IMPLEMENTED:$_e,NOT_MODIFIED:U_e,OK:j_e,PARTIAL_CONTENT:z_e,PAYMENT_REQUIRED:q_e,PERMANENT_REDIRECT:H_e,PRECONDITION_FAILED:G_e,PRECONDITION_REQUIRED:V_e,PROCESSING:W_e,PROXY_AUTHENTICATION_REQUIRED:K_e,REQUEST_HEADER_FIELDS_TOO_LARGE:Y_e,REQUEST_TIMEOUT:X_e,REQUEST_TOO_LONG:Z_e,REQUEST_URI_TOO_LONG:Q_e,REQUESTED_RANGE_NOT_SATISFIABLE:J_e,RESET_CONTENT:ewe,SEE_OTHER:twe,SERVICE_UNAVAILABLE:nwe,SWITCHING_PROTOCOLS:rwe,TEMPORARY_REDIRECT:iwe,TOO_MANY_REQUESTS:swe,UNAUTHORIZED:owe,UNPROCESSABLE_ENTITY:awe,UNSUPPORTED_MEDIA_TYPE:cwe,USE_PROXY:uwe};c();c();var AL={202:"Accepted",502:"Bad Gateway",400:"Bad Request",409:"Conflict",100:"Continue",201:"Created",417:"Expectation Failed",424:"Failed Dependency",403:"Forbidden",504:"Gateway Timeout",410:"Gone",505:"HTTP Version Not Supported",418:"I'm a teapot",419:"Insufficient Space on Resource",507:"Insufficient Storage",500:"Internal Server Error",411:"Length Required",423:"Locked",420:"Method Failure",405:"Method Not Allowed",301:"Moved Permanently",302:"Moved Temporarily",207:"Multi-Status",300:"Multiple Choices",511:"Network Authentication Required",204:"No Content",203:"Non Authoritative Information",406:"Not Acceptable",404:"Not Found",501:"Not Implemented",304:"Not Modified",200:"OK",206:"Partial Content",402:"Payment Required",308:"Permanent Redirect",412:"Precondition Failed",428:"Precondition Required",102:"Processing",103:"Early Hints",426:"Upgrade Required",407:"Proxy Authentication Required",431:"Request Header Fields Too Large",408:"Request Timeout",413:"Request Entity Too Large",414:"Request-URI Too Long",416:"Requested Range Not Satisfiable",205:"Reset Content",303:"See Other",503:"Service Unavailable",101:"Switching Protocols",307:"Temporary Redirect",429:"Too Many Requests",401:"Unauthorized",451:"Unavailable For Legal Reasons",422:"Unprocessable Entity",415:"Unsupported Media Type",305:"Use Proxy",421:"Misdirected Request"},RL={Accepted:202,"Bad Gateway":502,"Bad Request":400,Conflict:409,Continue:100,Created:201,"Expectation Failed":417,"Failed Dependency":424,Forbidden:403,"Gateway Timeout":504,Gone:410,"HTTP Version Not Supported":505,"I'm a teapot":418,"Insufficient Space on Resource":419,"Insufficient Storage":507,"Internal Server Error":500,"Length Required":411,Locked:423,"Method Failure":420,"Method Not Allowed":405,"Moved Permanently":301,"Moved Temporarily":302,"Multi-Status":207,"Multiple Choices":300,"Network Authentication Required":511,"No Content":204,"Non Authoritative Information":203,"Not Acceptable":406,"Not Found":404,"Not Implemented":501,"Not Modified":304,OK:200,"Partial Content":206,"Payment Required":402,"Permanent Redirect":308,"Precondition Failed":412,"Precondition Required":428,Processing:102,"Early Hints":103,"Upgrade Required":426,"Proxy Authentication Required":407,"Request Header Fields Too Large":431,"Request Timeout":408,"Request Entity Too Large":413,"Request-URI Too Long":414,"Requested Range Not Satisfiable":416,"Reset Content":205,"See Other":303,"Service Unavailable":503,"Switching Protocols":101,"Temporary Redirect":307,"Too Many Requests":429,Unauthorized:401,"Unavailable For Legal Reasons":451,"Unprocessable Entity":422,"Unsupported Media Type":415,"Use Proxy":305,"Misdirected Request":421};function Oo(e){var t=AL[e.toString()];if(!t)throw new Error("Status code does not exist: "+e);return t}function N_(e){var t=RL[e];if(!t)throw new Error("Reason phrase does not exist: "+e);return t}var M_=Oo;var zh=function(){return zh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0&&m>0){for(a=[],u=o.length;g>=0&&!d;)g==f?(a.push(g),f=o.indexOf(i,g+1)):a.length==1?d=[a.pop(),m]:((l=a.pop())=0?f:m;a.length&&(d=[u,p])}return d}e.exports=t,t.range=r},101(e,t,n){var r;e=n.nmd(e),(function(){var i=(e&&e.exports,typeof globalThis=="object"&&globalThis);i.global!==i&&i.window;var s=function(p){this.message=p};(s.prototype=new Error).name="InvalidCharacterError";var o=function(p){throw new s(p)},a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=/[\t\n\f\r ]/g,u={encode:function(p){p=String(p),/[^\0-\xFF]/.test(p)&&o("The string to be encoded contains characters outside of the Latin1 range.");for(var d,f,m,g,x=p.length%3,v="",_=-1,w=p.length-x;++_>18&63)+a.charAt(g>>12&63)+a.charAt(g>>6&63)+a.charAt(63&g);return x==2?(d=p.charCodeAt(_)<<8,f=p.charCodeAt(++_),v+=a.charAt((g=d+f)>>10)+a.charAt(g>>4&63)+a.charAt(g<<2&63)+"="):x==1&&(g=p.charCodeAt(_),v+=a.charAt(g>>2)+a.charAt(g<<4&63)+"=="),v},decode:function(p){var d=(p=String(p).replace(l,"")).length;d%4==0&&(d=(p=p.replace(/==?$/,"")).length),(d%4==1||/[^+a-zA-Z0-9/]/.test(p))&&o("Invalid character: the string to be decoded is not correctly encoded.");for(var f,m,g=0,x="",v=-1;++v>(-2*g&6)));return x},version:"1.0.0"};(r=function(){return u}.call(t,n,t,e))===void 0||(e.exports=r)})()},172(e,t){t.d=function(n){if(!n)return 0;for(var r=(n=n.toString()).length,i=n.length;i--;){var s=n.charCodeAt(i);56320<=s&&s<=57343&&i--,127>>32-i},rotr:function(r,i){return r<<32-i|r>>>i},endian:function(r){if(r.constructor==Number)return 16711935&n.rotl(r,8)|4278255360&n.rotl(r,24);for(var i=0;i0;r--)i.push(Math.floor(256*Math.random()));return i},bytesToWords:function(r){for(var i=[],s=0,o=0;s>>5]|=r[s]<<24-o%32;return i},wordsToBytes:function(r){for(var i=[],s=0;s<32*r.length;s+=8)i.push(r[s>>>5]>>>24-s%32&255);return i},bytesToHex:function(r){for(var i=[],s=0;s>>4).toString(16)),i.push((15&r[s]).toString(16));return i.join("")},hexToBytes:function(r){for(var i=[],s=0;s>>6*(3-a)&63)):i.push("=");return i.join("")},base64ToBytes:function(r){r=r.replace(/[^A-Z0-9+\/]/gi,"");for(var i=[],s=0,o=0;s>>6-2*o);return i}},e.exports=n},135(e){function t(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}e.exports=function(n){return n!=null&&(t(n)||(function(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&t(r.slice(0,0))})(n)||!!n._isBuffer)}},542(e,t,n){(function(){var r=n(298),i=n(526).utf8,s=n(135),o=n(526).bin,a=function(l,u){l.constructor==String?l=u&&u.encoding==="binary"?o.stringToBytes(l):i.stringToBytes(l):s(l)?l=Array.prototype.slice.call(l,0):Array.isArray(l)||l.constructor===Uint8Array||(l=l.toString());for(var p=r.bytesToWords(l),d=8*l.length,f=1732584193,m=-271733879,g=-1732584194,x=271733878,v=0;v>>24)|4278255360&(p[v]<<24|p[v]>>>8);p[d>>>5]|=128<>>9<<4)]=d;var _=a._ff,w=a._gg,D=a._hh,C=a._ii;for(v=0;v>>0,m=m+k>>>0,g=g+I>>>0,x=x+L>>>0}return r.endian([f,m,g,x])};a._ff=function(l,u,p,d,f,m,g){var x=l+(u&p|~u&d)+(f>>>0)+g;return(x<>>32-m)+u},a._gg=function(l,u,p,d,f,m,g){var x=l+(u&d|p&~d)+(f>>>0)+g;return(x<>>32-m)+u},a._hh=function(l,u,p,d,f,m,g){var x=l+(u^p^d)+(f>>>0)+g;return(x<>>32-m)+u},a._ii=function(l,u,p,d,f,m,g){var x=l+(p^(u|~d))+(f>>>0)+g;return(x<>>32-m)+u},a._blocksize=16,a._digestsize=16,e.exports=function(l,u){if(l==null)throw new Error("Illegal argument "+l);var p=r.wordsToBytes(a(l,u));return u&&u.asBytes?p:u&&u.asString?o.bytesToString(p):r.bytesToHex(p)}})()},285(e,t,n){var r=n(2);e.exports=function(_,w){if(!_)return[];var D=(w=w||{}).max==null?1/0:w.max;return _.substr(0,2)==="{}"&&(_="\\{\\}"+_.substr(2)),v((function(C){return C.split("\\\\").join(i).split("\\{").join(s).split("\\}").join(o).split("\\,").join(a).split("\\.").join(l)})(_),D,!0).map(p)};var i="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",o="\0CLOSE"+Math.random()+"\0",a="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function u(_){return parseInt(_,10)==_?parseInt(_,10):_.charCodeAt(0)}function p(_){return _.split(i).join("\\").split(s).join("{").split(o).join("}").split(a).join(",").split(l).join(".")}function d(_){if(!_)return[""];var w=[],D=r("{","}",_);if(!D)return _.split(",");var C=D.pre,A=D.body,k=D.post,I=C.split(",");I[I.length-1]+="{"+A+"}";var L=d(k);return k.length&&(I[I.length-1]+=L.shift(),I.push.apply(I,L)),w.push.apply(w,I),w}function f(_){return"{"+_+"}"}function m(_){return/^-?0\d/.test(_)}function g(_,w){return _<=w}function x(_,w){return _>=w}function v(_,w,D){var C=[],A=r("{","}",_);if(!A)return[_];var k=A.pre,I=A.post.length?v(A.post,w,!1):[""];if(/\$$/.test(A.pre))for(var L=0;L=0;if(!Te&&!Ke)return A.post.match(/,(?!,).*\}/)?v(_=A.pre+"{"+A.body+o+A.post,w,!0):[_];if(Te)$=A.body.split(/\.\./);else if(($=d(A.body)).length===1&&($=v($[0],w,!1).map(f)).length===1)return I.map((function(Lo){return A.pre+$[0]+Lo}));if(Te){var Re=u($[0]),He=u($[1]),Ge=Math.max($[0].length,$[1].length),et=$.length==3?Math.max(Math.abs(u($[2])),1):1,z=g;He0){var kn=new Array(Ve+1).join("0");se=H<0?"-"+kn+se.slice(1):kn+se}}W.push(se)}}else{W=[];for(var ot=0;ot<$.length;ot++)W.push.apply(W,v($[ot],w,!1))}for(ot=0;ot2&&arguments[2]!==void 0?arguments[2]:function(){},f=p.split("."),m=f.length,g=function(_){var w=f[_];if(!u)return{v:void 0};if(w==="+"){if(Array.isArray(u))return{v:u.map((function(C,A){var k=f.slice(_+1);return k.length>0?a(C,k.join("."),d):d(u,A,f,_)}))};var D=f.slice(0,_).join(".");throw new Error("Object at wildcard (".concat(D,") is not an array"))}u=d(u,w,f,_)},x=0;x2&&arguments[2]!==void 0?arguments[2]:{};if(t(u)!="object"||u===null||p===void 0)return!1;if(typeof p=="number")return p in u;try{var f=!1;return a(u,p,(function(m,g,x,v){if(!l(x,v))return m&&m[g];f=d.own?m.hasOwnProperty(g):g in m})),f}catch(m){return!1}},hasOwn:function(u,p,d){return this.has(u,p,d||{own:!0})},isIn:function(u,p,d){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(t(u)!="object"||u===null||p===void 0)return!1;try{var m=!1,g=!1;return a(u,p,(function(x,v,_,w){return m=m||x===d||!!x&&x[v]===d,g=l(_,w)&&t(x)==="object"&&v in x,x&&x[v]})),f.validPath?m&&g:m}catch(x){return!1}},ObjectPrototypeMutationError:o}},47(e,t,n){var r=n(410),i=function(u){return typeof u=="string"};function s(u,p){for(var d=[],f=0;f=-1&&!p;d--){var f=d>=0?arguments[d]:process.cwd();if(!i(f))throw new TypeError("Arguments to path.resolve must be strings");f&&(u=f+"/"+u,p=f.charAt(0)==="/")}return(p?"/":"")+(u=s(u.split("/"),!p).join("/"))||"."},a.normalize=function(u){var p=a.isAbsolute(u),d=u.substr(-1)==="/";return(u=s(u.split("/"),!p).join("/"))||p||(u="."),u&&d&&(u+="/"),(p?"/":"")+u},a.isAbsolute=function(u){return u.charAt(0)==="/"},a.join=function(){for(var u="",p=0;p=0&&w[C]==="";C--);return D>C?[]:w.slice(D,C+1)}u=a.resolve(u).substr(1),p=a.resolve(p).substr(1);for(var f=d(u.split("/")),m=d(p.split("/")),g=Math.min(f.length,m.length),x=g,v=0;v=2&&(C=C.slice(2)):x(k)?C=A[4]:k?I&&(C=C.slice(2)):U>=2&&x(D.protocol)&&(C=A[4]),{protocol:k,slashes:I||x(k),slashesCount:U,rest:C}}function _(w,D,C){if(w=(w=d(w)).replace(o,""),!(this instanceof _))return new _(w,D,C);var A,k,I,L,U,$,W=f.slice(),pe=typeof D,J=this,Te=0;for(pe!=="object"&&pe!=="string"&&(C=D,D=null),C&&typeof C!="function"&&(C=i.parse),A=!(k=v(w||"",D=g(D))).protocol&&!k.slashes,J.slashes=k.slashes||A&&D.slashes,J.protocol=k.protocol||D.protocol||"",w=k.rest,(k.protocol==="file:"&&(k.slashesCount!==2||p.test(w))||!k.slashes&&(k.protocol||k.slashesCount<2||!x(J.protocol)))&&(W[3]=[/(.*)/,"pathname"]);Te{var t=e&&e.__esModule?()=>e.default:()=>e;return st.d(t,{a:t}),t},st.d=(e,t)=>{for(var n in t)st.o(t,n)&&!st.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},st.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),st.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var pwe=st(737),dwe=st.n(pwe);function L_(e){if(!X_(e))throw new Error("Parameter was not an error")}function X_(e){return!!e&&typeof e=="object"&&(t=e,Object.prototype.toString.call(t)==="[object Error]")||e instanceof Error;var t}var wr=class e extends Error{constructor(t,n){let r=[...arguments],{options:i,shortMessage:s}=(function(a){let l,u="";if(a.length===0)l={};else if(X_(a[0]))l={cause:a[0]},u=a.slice(1).join(" ")||"";else if(a[0]&&typeof a[0]=="object")l=Object.assign({},a[0]),u=a.slice(1).join(" ")||"";else{if(typeof a[0]!="string")throw new Error("Invalid arguments passed to Layerr");l={},u=u=a.join(" ")||""}return{options:l,shortMessage:u}})(r),o=s;if(i.cause&&(o=`${o}: ${i.cause.message}`),super(o),this.message=o,i.name&&typeof i.name=="string"?this.name=i.name:this.name="Layerr",i.cause&&Object.defineProperty(this,"_cause",{value:i.cause}),Object.defineProperty(this,"_info",{value:{}}),i.info&&typeof i.info=="object"&&Object.assign(this._info,i.info),Error.captureStackTrace){let a=i.constructorOpt||this.constructor;Error.captureStackTrace(this,a)}}static cause(t){return L_(t),t._cause&&X_(t._cause)?t._cause:null}static fullStack(t){var r;L_(t);let n=e.cause(t);return n?`${t.stack} -caused by: ${e.fullStack(n)}`:(r=t.stack)!=null?r:""}static info(t){L_(t);let n={},r=e.cause(t);return r&&Object.assign(n,e.info(r)),t._info&&Object.assign(n,t._info),n}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}},fwe=st(47),Kh=st.n(fwe),OL="__PATH_SEPARATOR_POSIX__",FL="__PATH_SEPARATOR_WINDOWS__";function lt(e){try{let t=e.replace(/\//g,OL).replace(/\\\\/g,FL);return encodeURIComponent(t).split(FL).join("\\\\").split(OL).join("/")}catch(t){throw new wr(t,"Failed encoding path")}}function BL(e){return e.startsWith("/")?e:"/"+e}function Yl(e){let t=e;return t[0]!=="/"&&(t="/"+t),/^.+\/$/.test(t)&&(t=t.substr(0,t.length-1)),t}function mwe(e){let t=new(dwe())(e).pathname;return t.length<=0&&(t="/"),Yl(t)}function pt(){for(var e=arguments.length,t=new Array(e),n=0;n1){var s=r.shift();r[0]=s+r[0]}r[0].match(/^file:\/\/\//)?r[0]=r[0].replace(/^([^/:]+):\/*/,"$1:///"):r[0]=r[0].replace(/^([^/:]+):\/*/,"$1://");for(var o=0;o0&&(a=a.replace(/^[\/]+/,"")),a=o0?"?":"")+u.join("&")})(typeof arguments[0]=="object"?arguments[0]:[].slice.call(arguments))})(t.reduce(((r,i,s)=>((s===0||i!=="/"||i==="/"&&r[r.length-1]!=="/")&&r.push(i),r)),[]))}var hwe=st(542),ql=st.n(hwe);function IL(e,t){let n=e.url.replace("//",""),r=n.indexOf("/")==-1?"/":n.slice(n.indexOf("/")),i=e.method?e.method.toUpperCase():"GET",s=!!/(^|,)\s*auth\s*($|,)/.test(t.qop)&&"auth",o=`00000000${t.nc}`.slice(-8),a=(function(f,m,g,x,v,_,w){let D=w||ql()(`${m}:${g}:${x}`);return f&&f.toLowerCase()==="md5-sess"?ql()(`${D}:${v}:${_}`):D})(t.algorithm,t.username,t.realm,t.password,t.nonce,t.cnonce,t.ha1),l=ql()(`${i}:${r}`),u=s?ql()(`${a}:${t.nonce}:${o}:${t.cnonce}:${s}:${l}`):ql()(`${a}:${t.nonce}:${l}`),p={username:t.username,realm:t.realm,nonce:t.nonce,uri:r,qop:s,response:u,nc:o,cnonce:t.cnonce,algorithm:t.algorithm,opaque:t.opaque},d=[];for(let f in p)p[f]&&(f==="qop"||f==="nc"||f==="algorithm"?d.push(`${f}=${p[f]}`):d.push(`${f}="${p[f]}"`));return`Digest ${d.join(", ")}`}function s6(e){return(e.headers&&e.headers.get("www-authenticate")||"").split(/\s/)[0].toLowerCase()==="digest"}var gwe=st(101),o6=st.n(gwe);function PL(e){return o6().decode(e)}function NL(e,t){var n;return`Basic ${n=`${e}:${t}`,o6().encode(n)}`}var Xl=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:typeof window!="undefined"?window:globalThis,ywe=Xl.fetch.bind(Xl),Fat=(Xl.Headers,Xl.Request),Bat=Xl.Response,Yt=(function(e){return e.Auto="auto",e.Digest="digest",e.None="none",e.Password="password",e.Token="token",e})({}),Ss=(function(e){return e.DataTypeNoLength="data-type-no-length",e.InvalidAuthType="invalid-auth-type",e.InvalidOutputFormat="invalid-output-format",e.LinkUnsupportedAuthType="link-unsupported-auth",e.InvalidUpdateRange="invalid-update-range",e.NotSupported="not-supported",e})({});function a6(e,t,n,r,i){switch(e.authType){case Yt.Auto:t&&n&&(e.headers.Authorization=NL(t,n));break;case Yt.Digest:e.digest=(function(o,a,l){return{username:o,password:a,ha1:l,nc:0,algorithm:"md5",hasDigestAuth:!1}})(t,n,i);break;case Yt.None:break;case Yt.Password:e.headers.Authorization=NL(t,n);break;case Yt.Token:e.headers.Authorization=`${(s=r).token_type} ${s.access_token}`;break;default:throw new wr({info:{code:Ss.InvalidAuthType}},`Invalid auth type: ${e.authType}`)}var s}st(345),st(800);var ML="@@HOTPATCHER",xwe=()=>{};function $_(e){return{original:e,methods:[e],final:!1}}var Z_=class{constructor(){this._configuration={registry:{},getEmptyAction:"null"},this.__type__=ML}get configuration(){return this._configuration}get getEmptyAction(){return this.configuration.getEmptyAction}set getEmptyAction(t){this.configuration.getEmptyAction=t}control(t){let n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!t||t.__type__!==ML)throw new Error("Failed taking control of target HotPatcher instance: Invalid type or object");return Object.keys(t.configuration.registry).forEach((r=>{this.configuration.registry.hasOwnProperty(r)?n&&(this.configuration.registry[r]=Object.assign({},t.configuration.registry[r])):this.configuration.registry[r]=Object.assign({},t.configuration.registry[r])})),t._configuration=this.configuration,this}execute(t){let n=this.get(t)||xwe;for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s0;)u=[i.shift().apply(p,u)];return u[0]}})(...n.methods)}isPatched(t){return!!this.configuration.registry[t]}patch(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{chain:i=!1}=r;if(this.configuration.registry[t]&&this.configuration.registry[t].final)throw new Error(`Failed patching '${t}': Method marked as being final`);if(typeof n!="function")throw new Error(`Failed patching '${t}': Provided method is not a function`);if(i)this.configuration.registry[t]?this.configuration.registry[t].methods.push(n):this.configuration.registry[t]=$_(n);else if(this.isPatched(t)){let{original:s}=this.configuration.registry[t];this.configuration.registry[t]=Object.assign($_(n),{original:s})}else this.configuration.registry[t]=$_(n);return this}patchInline(t,n){this.isPatched(t)||this.patch(t,n);for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s1?n-1:0),i=1;i{this.patch(t,s,{chain:!0})})),this}restore(t){if(!this.isPatched(t))throw new Error(`Failed restoring method: No method present for key: ${t}`);if(typeof this.configuration.registry[t].original!="function")throw new Error(`Failed restoring method: Original method not found or of invalid type for key: ${t}`);return this.configuration.registry[t].methods=[this.configuration.registry[t].original],this}setFinal(t){if(!this.configuration.registry.hasOwnProperty(t))throw new Error(`Failed marking '${t}' as final: No method found for key`);return this.configuration.registry[t].final=!0,this}},U_=null;function mw(){return U_||(U_=new Z_),U_}function Yh(e){return(function(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!="[object Object]")return!1;if(Object.getPrototypeOf(t)===null)return!0;let n=t;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(t)===n})(e)?Object.assign({},e):Object.setPrototypeOf(Object.assign({},e),Object.getPrototypeOf(e))}function LL(){for(var e=arguments.length,t=new Array(e),n=0;n0;){let s=i.shift();r=r?c6(r,s):Yh(s)}return r}function c6(e,t){let n=Yh(e);return Object.keys(t).forEach((r=>{n.hasOwnProperty(r)?Array.isArray(t[r])?n[r]=Array.isArray(n[r])?[...n[r],...t[r]]:[...t[r]]:typeof t[r]=="object"&&t[r]?n[r]=typeof n[r]=="object"&&n[r]?c6(n[r],t[r]):Yh(t[r]):n[r]=t[r]:n[r]=t[r]})),n}function vwe(e){let t={};for(let n of e.keys())t[n]=e.get(n);return t}function Q_(){for(var e=arguments.length,t=new Array(e),n=0;n(Object.keys(s).forEach((o=>{let a=o.toLowerCase();r.hasOwnProperty(a)?i[r[a]]=s[o]:(r[a]=o,i[o]=s[o])})),i)),{})}st(805);var bwe=typeof ArrayBuffer=="function",{toString:_we}=Object.prototype;function u6(e){return bwe&&(e instanceof ArrayBuffer||_we.call(e)==="[object ArrayBuffer]")}function l6(e){return e!=null&&e.constructor!=null&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function hw(e){return function(){for(var t=[],n=0;nt.patchInline("fetch",ywe,n.url,(function(r){let i={},s={method:r.method};if(r.headers&&(i=Q_(i,r.headers)),r.data!==void 0){let[o,a]=(function(l){if(typeof l=="string")return[l,{}];if(l6(l))return[l,{}];if(u6(l))return[l,{}];if(l&&typeof l=="object")return[JSON.stringify(l),{"content-type":"application/json"}];throw new Error("Unable to convert request body: Unexpected body type: "+typeof l)})(r.data);s.body=o,i=Q_(i,a)}return r.signal&&(s.signal=r.signal),r.withCredentials&&(s.credentials="include"),s.headers=i,s})(n))),e)}var Ewe=st(285),Zh=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},Dwe={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Hl=e=>e.replace(/[[\]\\-]/g,"\\$&"),$L=e=>e.join(""),Swe=(e,t)=>{let n=t;if(e.charAt(n)!=="[")throw new Error("not in a brace expression");let r=[],i=[],s=n+1,o=!1,a=!1,l=!1,u=!1,p=n,d="";e:for(;sd?r.push(Hl(d)+"-"+Hl(x)):x===d&&r.push(Hl(x)),d="",s++):e.startsWith("-]",s+1)?(r.push(Hl(x+"-")),s+=2):e.startsWith("-",s+1)?(d=x,s+=2):(r.push(Hl(x)),s++)}else l=!0,s++}else u=!0,s++}if(p1&&arguments[1]!==void 0?arguments[1]:{};return t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")},jn,Cwe=new Set(["!","?","+","*","@"]),ew=e=>Cwe.has(e),UL=e=>ew(e.type),Twe=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),Awe=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),Rwe=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),jL=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),j_="(?!\\.)",kwe=new Set(["[","."]),Owe=new Set(["..","."]),Fwe=new Set("().*{}+?[]^$\\!"),gw="[^/]",zL=gw+"*?",qL=gw+"+?",Ot,qt,Mi,de,yt,ws,Io,Es,ai,ci,Tc,Ie,d6,Ds,Gh,f6,tw,Vh,m6,nw,h6,g6,y6,Wh,rw,x6,Sc=class{constructor(t,n){Ht(this,Ie);S(this,"type");Ht(this,Ot);Ht(this,qt);Ht(this,Mi,!1);Ht(this,de,[]);Ht(this,yt);Ht(this,ws);Ht(this,Io);Ht(this,Es,!1);Ht(this,ai);Ht(this,ci);Ht(this,Tc,!1);let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.type=t,t&&Ne(this,qt,!0),Ne(this,yt,n),Ne(this,Ot,Y(this,yt)?Y(Y(this,yt),Ot):this),Ne(this,ai,Y(this,Ot)===this?r:Y(Y(this,Ot),ai)),Ne(this,Io,Y(this,Ot)===this?[]:Y(Y(this,Ot),Io)),t!=="!"||Y(Y(this,Ot),Es)||Y(this,Io).push(this),Ne(this,ws,Y(this,yt)?Y(Y(this,yt),de).length:0)}get hasMagic(){if(Y(this,qt)!==void 0)return Y(this,qt);for(let t of Y(this,de))if(typeof t!="string"&&(t.type||t.hasMagic))return Ne(this,qt,!0);return Y(this,qt)}toString(){return Y(this,ci)!==void 0?Y(this,ci):this.type?Ne(this,ci,this.type+"("+Y(this,de).map((t=>String(t))).join("|")+")"):Ne(this,ci,Y(this,de).map((t=>String(t))).join(""))}push(){for(var t=arguments.length,n=new Array(t),r=0;rtypeof r=="string"?r:r.toJSON())):[this.type,...Y(this,de).map((r=>r.toJSON()))];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===Y(this,Ot)||Y(Y(this,Ot),Es)&&((n=Y(this,yt))==null?void 0:n.type)==="!")&&t.push({}),t}isStart(){var n;if(Y(this,Ot)===this)return!0;if(!((n=Y(this,yt))!=null&&n.isStart()))return!1;if(Y(this,ws)===0)return!0;let t=Y(this,yt);for(let r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=new jn(null,void 0,n);return ke(i=jn,Ds,Gh).call(i,t,r,0,n,0),r}toMMPattern(){if(this!==Y(this,Ot))return Y(this,Ot).toMMPattern();let t=this.toString(),[n,r,i,s]=this.toRegExpSource();if(!(i||Y(this,qt)||Y(this,ai).nocase&&!Y(this,ai).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return r;let o=(Y(this,ai).nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${n}$`,o),{_src:n,_glob:t})}get options(){return Y(this,ai)}toRegExpSource(t){var l;let n=t!=null?t:!!Y(this,ai).dot;if(Y(this,Ot)===this&&(ke(this,Ie,Wh).call(this),ke(this,Ie,d6).call(this)),!UL(this)){let u=this.isStart()&&this.isEnd(),p=Y(this,de).map((m=>{var w;let[g,x,v,_]=typeof m=="string"?ke(w=jn,Ds,x6).call(w,m,Y(this,qt),u):m.toRegExpSource(t);return Ne(this,qt,Y(this,qt)||v),Ne(this,Mi,Y(this,Mi)||_),g})).join(""),d="";if(this.isStart()&&typeof Y(this,de)[0]=="string"&&(Y(this,de).length!==1||!Owe.has(Y(this,de)[0]))){let m=kwe,g=n&&m.has(p.charAt(0))||p.startsWith("\\.")&&m.has(p.charAt(2))||p.startsWith("\\.\\.")&&m.has(p.charAt(4)),x=!n&&!t&&m.has(p.charAt(0));d=g?"(?!(?:^|/)\\.\\.?(?:$|/))":x?j_:""}let f="";return this.isEnd()&&Y(Y(this,Ot),Es)&&((l=Y(this,yt))==null?void 0:l.type)==="!"&&(f="(?:$|\\/)"),[d+p+f,Wl(p),Ne(this,qt,!!Y(this,qt)),Y(this,Mi)]}let r=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=ke(this,Ie,rw).call(this,n);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let u=this.toString(),p=this;return Ne(p,de,[u]),p.type=null,Ne(p,qt,void 0),[u,Wl(this.toString()),!1,!1]}let o=!r||t||n?"":ke(this,Ie,rw).call(this,!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";return a=this.type==="!"&&Y(this,Tc)?(this.isStart()&&!n?j_:"")+qL:i+s+(this.type==="!"?"))"+(!this.isStart()||n||t?"":j_)+zL+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`),[a,Wl(s),Ne(this,qt,!!Y(this,qt)),Y(this,Mi)]}};Ot=new WeakMap,qt=new WeakMap,Mi=new WeakMap,de=new WeakMap,yt=new WeakMap,ws=new WeakMap,Io=new WeakMap,Es=new WeakMap,ai=new WeakMap,ci=new WeakMap,Tc=new WeakMap,Ie=new WeakSet,d6=function(){if(this!==Y(this,Ot))throw new Error("should only call on root");if(Y(this,Es))return this;let t;for(this.toString(),Ne(this,Es,!0);t=Y(this,Io).pop();){if(t.type!=="!")continue;let n=t,r=Y(n,yt);for(;r;){for(let i=Y(n,ws)+1;!r.type&&i1&&arguments[1]!==void 0?arguments[1]:Twe;if(!t||typeof t!="object"||t.type!==null||Y(t,de).length!==1||this.type===null)return!1;let r=Y(t,de)[0];return!(!r||typeof r!="object"||r.type===null)&&ke(this,Ie,Vh).call(this,r.type,n)},Vh=function(t){var r;return!!((r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rwe).get(this.type))!=null&&r.includes(t))},m6=function(t,n){let r=Y(t,de)[0],i=new jn(null,r,this.options);Y(i,de).push(""),r.push(i),ke(this,Ie,nw).call(this,t,n)},nw=function(t,n){let r=Y(t,de)[0];Y(this,de).splice(n,1,...Y(r,de));for(let i of Y(r,de))typeof i=="object"&&Ne(i,yt,this);Ne(this,ci,void 0)},h6=function(t){let n=jL.get(this.type);return!!(n!=null&&n.has(t))},g6=function(t){if(!t||typeof t!="object"||t.type!==null||Y(t,de).length!==1||this.type===null||Y(this,de).length!==1)return!1;let n=Y(t,de)[0];return!(!n||typeof n!="object"||n.type===null)&&ke(this,Ie,h6).call(this,n.type)},y6=function(t){let n=jL.get(this.type),r=Y(t,de)[0],i=n==null?void 0:n.get(r.type);if(!i)return!1;Ne(this,de,Y(r,de));for(let s of Y(this,de))typeof s=="object"&&Ne(s,yt,this);this.type=i,Ne(this,ci,void 0),Ne(this,Tc,!1)},Wh=function(){var t,n;if(UL(this)){let r=0,i=!1;do{i=!0;for(let s=0;s{if(typeof n=="string")throw new Error("string type in extglob ast??");let[r,i,s,o]=n.toRegExpSource(t);return Ne(this,Mi,Y(this,Mi)||o),r})).filter((n=>!(this.isStart()&&this.isEnd()&&!n))).join("|")},x6=function(t,n){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],i=!1,s="",o=!1,a=!1;for(let l=0;l2&&arguments[2]!==void 0?arguments[2]:{};return Zh(t),!(!n.nocomment&&t.charAt(0)==="#")&&new Ac(t,n).match(e)},Bwe=/^\*+([^+@!?\*\[\(]*)$/,Iwe=e=>t=>!t.startsWith(".")&&t.endsWith(e),Pwe=e=>t=>t.endsWith(e),Nwe=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),Mwe=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Lwe=/^\*+\.\*+$/,$we=e=>!e.startsWith(".")&&e.includes("."),Uwe=e=>e!=="."&&e!==".."&&e.includes("."),jwe=/^\.\*+$/,zwe=e=>e!=="."&&e!==".."&&e.startsWith("."),qwe=/^\*+$/,Hwe=e=>e.length!==0&&!e.startsWith("."),Gwe=e=>e.length!==0&&e!=="."&&e!=="..",Vwe=/^\?+([^+@!?\*\[\(]*)?$/,Wwe=e=>{let[t,n=""]=e,r=v6([t]);return n?(n=n.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(n)):r},Kwe=e=>{let[t,n=""]=e,r=b6([t]);return n?(n=n.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(n)):r},Ywe=e=>{let[t,n=""]=e,r=b6([t]);return n?i=>r(i)&&i.endsWith(n):r},Xwe=e=>{let[t,n=""]=e,r=v6([t]);return n?i=>r(i)&&i.endsWith(n):r},v6=e=>{let[t]=e,n=t.length;return r=>r.length===n&&!r.startsWith(".")},b6=e=>{let[t]=e,n=t.length;return r=>r.length===n&&r!=="."&&r!==".."},_6=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";ln.sep=_6==="win32"?"\\":"/";var un=Symbol("globstar **");ln.GLOBSTAR=un,ln.filter=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return n=>ln(n,e,t)};var br=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.assign({},e,t)};ln.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return ln;let t=ln;return Object.assign((function(n,r){return t(n,r,br(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))}),{Minimatch:class extends t.Minimatch{constructor(n){super(n,br(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}))}static defaults(n){return t.defaults(br(e,n)).Minimatch}},AST:class extends t.AST{constructor(n,r){super(n,r,br(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))}static fromGlob(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.AST.fromGlob(n,br(e,r))}},unescape:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.unescape(n,br(e,r))},escape:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.escape(n,br(e,r))},filter:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.filter(n,br(e,r))},defaults:n=>t.defaults(br(e,n)),makeRe:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.makeRe(n,br(e,r))},braceExpand:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.braceExpand(n,br(e,r))},match:function(n,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t.match(n,r,br(e,i))},sep:t.sep,GLOBSTAR:un})};var w6=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Zh(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Ewe(e)};ln.braceExpand=w6,ln.makeRe=function(e){return new Ac(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).makeRe()},ln.match=function(e,t){let n=new Ac(t,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{});return e=e.filter((r=>n.match(r))),n.options.nonull&&!e.length&&e.push(t),e};var HL=/[?*]|[+@!]\(.*?\)|\[|\]/,er,E6,iw,wc,Ac=class{constructor(t){Ht(this,er);S(this,"options");S(this,"set");S(this,"pattern");S(this,"windowsPathsNoEscape");S(this,"nonegate");S(this,"negate");S(this,"comment");S(this,"empty");S(this,"preserveMultipleSlashes");S(this,"partial");S(this,"globSet");S(this,"globParts");S(this,"nocase");S(this,"isWindows");S(this,"platform");S(this,"windowsNoMagicRoot");S(this,"maxGlobstarRecursion");S(this,"regexp");var r;let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Zh(t),n=n||{},this.options=n,this.maxGlobstarRecursion=(r=n.maxGlobstarRecursion)!=null?r:200,this.pattern=t,this.platform=n.platform||_6,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!n.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!n.nonegate,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=n.windowsNoMagicRoot!==void 0?n.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let n of t)if(typeof n!="string")return!0;return!1}debug(){}make(){let t=this.pattern,n=this.options;if(!n.nocomment&&t.charAt(0)==="#")return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],n.debug&&(this.debug=function(){return console.error(...arguments)}),this.debug(this.pattern,this.globSet);let r=this.globSet.map((s=>this.slashSplit(s)));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let i=this.globParts.map(((s,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=!(s[0]!==""||s[1]!==""||s[2]!=="?"&&HL.test(s[2])||HL.test(s[3])),u=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map((p=>this.parse(p)))];if(u)return[s[0],...s.slice(1).map((p=>this.parse(p)))]}return s.map((l=>this.parse(l)))}));if(this.debug(this.pattern,i),this.set=i.filter((s=>s.indexOf(!1)===-1)),this.isWindows)for(let s=0;s=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=n>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((n=>{let r=-1;for(;(r=n.indexOf("**",r+1))!==-1;){let i=r;for(;n[i+1]==="**";)i++;i!==r&&n.splice(r,i-r)}return n}))}levelOneOptimize(t){return t.map((n=>(n=n.reduce(((r,i)=>{let s=r[r.length-1];return i==="**"&&s==="**"?r:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(r.pop(),r):(r.push(i),r)}),[])).length===0?[""]:n))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let n=!1;do{if(n=!1,!this.preserveMultipleSlashes){for(let i=1;ii&&r.splice(i+1,o-i);let a=r[i+1],l=r[i+2],u=r[i+3];if(a!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;n=!0,r.splice(i,1);let p=r.slice(0);p[i]="**",t.push(p),i--}if(!this.preserveMultipleSlashes){for(let o=1;on.length))}partsMatch(t,n){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],i=0,s=0,o=[],a="";for(;i2&&arguments[2]!==void 0&&arguments[2],i=0,s=0;if(this.isWindows){let a=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),l=!a&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),u=typeof n[0]=="string"&&/^[a-z]:$/i.test(n[0]),p=l?3:a?0:void 0,d=!u&&n[0]===""&&n[1]===""&&n[2]==="?"&&typeof n[3]=="string"&&/^[a-z]:$/i.test(n[3])?3:u?0:void 0;if(typeof p=="number"&&typeof d=="number"){let[f,m]=[t[p],n[d]];f.toLowerCase()===m.toLowerCase()&&(n[d]=f,s=d,i=p)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(t=this.levelTwoFileOptimize(t)),n.includes(un)?ke(this,er,E6).call(this,t,n,r,i,s):ke(this,er,wc).call(this,t,n,r,i,s)}braceExpand(){return w6(this.pattern,this.options)}parse(t){Zh(t);let n=this.options;if(t==="**")return un;if(t==="")return"";let r,i=null;(r=t.match(qwe))?i=n.dot?Gwe:Hwe:(r=t.match(Bwe))?i=(n.nocase?n.dot?Mwe:Nwe:n.dot?Pwe:Iwe)(r[1]):(r=t.match(Vwe))?i=(n.nocase?n.dot?Kwe:Wwe:n.dot?Ywe:Xwe)(r):(r=t.match(Lwe))?i=n.dot?Uwe:$we:(r=t.match(jwe))&&(i=zwe);let s=Sc.fromGlob(t,this.options).toMMPattern();return i&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let n=this.options,r=n.noglobstar?"[^/]*?":n.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",i=new Set(n.nocase?["i"]:[]),s=t.map((l=>{let u=l.map((p=>{if(p instanceof RegExp)for(let d of p.flags.split(""))i.add(d);return typeof p=="string"?p.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):p===un?un:p._src}));return u.forEach(((p,d)=>{let f=u[d+1],m=u[d-1];p===un&&m!==un&&(m===void 0?f!==void 0&&f!==un?u[d+1]="(?:\\/|"+r+"\\/)?"+f:u[d]=r:f===void 0?u[d-1]=m+"(?:\\/|"+r+")?":f!==un&&(u[d-1]=m+"(?:\\/|\\/"+r+"\\/)"+f,u[d+1]=un))})),u.filter((p=>p!==un)).join("/")})).join("|"),[o,a]=t.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch(l){this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.partial;if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&n)return!0;let r=this.options;this.isWindows&&(t=t.split("\\").join("/"));let i=this.slashSplit(t);this.debug(this.pattern,"split",i);let s=this.set;this.debug(this.pattern,"set",s);let o=i[i.length-1];if(!o)for(let a=i.length-2;!o&&a>=0;a--)o=i[a];for(let a=0;at.length)return!1;let w=t.length-p.length;if(ke(this,er,wc).call(this,t,p,r,w,0))d=p.length;else{if(t[t.length-1]!==""||i+p.length===t.length||(w--,!ke(this,er,wc).call(this,t,p,r,w,0)))return!1;d=p.length+1}}if(!u.length){let w=!!d;for(let D=i;D1&&arguments[1]!==void 0?arguments[1]:""}Invalid response: ${e.status} ${e.statusText}`);return t.status=e.status,t.response=e,t}function It(e,t){let{status:n}=t;if(n===401&&e.digest)return t;if(n>=400)throw yw(t);return t}function Rc(e,t){return arguments.length>2&&arguments[2]!==void 0&&arguments[2]?{data:t,headers:e.headers?vwe(e.headers):{},status:e.status,statusText:e.statusText}:t}ln.AST=Sc,ln.Minimatch=Ac,ln.escape=function(e){let{windowsPathsNoEscape:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&")},ln.unescape=Wl;var Zwe=(GL=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=Bt({url:pt(e.remoteURL,lt(t)),method:"COPY",headers:{Destination:pt(e.remoteURL,lt(n)),Overwrite:r.overwrite===!1?"F":"T",Depth:r.shallow?"0":"infinity"}},e,r);return o=function(a){It(e,a)},(s=Ft(i,e))&&s.then||(s=Promise.resolve(s)),o?s.then(o):s;var s,o},function(){for(var e=[],t=0;txw.includes(e)?"__"+e:e,Jwe={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:C6};function eEe(e,t){if(typeof e!="string")return;let n=e.toLowerCase();if(xw.some((r=>n===r.toLowerCase())))throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);if(S6.some((r=>n===r.toLowerCase())))throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function T6(e,t){var n,r,i,s,o,a,l,u;return typeof e=="boolean"?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:"all"}:typeof e=="object"&&e!==null?{enabled:e.enabled!==!1,maxEntitySize:Math.max(1,(n=e.maxEntitySize)!=null?n:1e4),maxExpansionDepth:Math.max(1,(r=e.maxExpansionDepth)!=null?r:1e4),maxTotalExpansions:Math.max(1,(i=e.maxTotalExpansions)!=null?i:1/0),maxExpandedLength:Math.max(1,(s=e.maxExpandedLength)!=null?s:1e5),maxEntityCount:Math.max(1,(o=e.maxEntityCount)!=null?o:1e3),allowedTags:(a=e.allowedTags)!=null?a:null,tagFilter:(l=e.tagFilter)!=null?l:null,appliesTo:(u=e.appliesTo)!=null?u:"all"}:T6(!0)}var tEe=function(e){let t=Object.assign({},Jwe,e),n=[{value:t.attributeNamePrefix,name:"attributeNamePrefix"},{value:t.attributesGroupName,name:"attributesGroupName"},{value:t.textNodeName,name:"textNodeName"},{value:t.cdataPropName,name:"cdataPropName"},{value:t.commentPropName,name:"commentPropName"}];for(let{value:r,name:i}of n)r&&eEe(r,i);return t.onDangerousProperty===null&&(t.onDangerousProperty=C6),t.processEntities=T6(t.processEntities,t.htmlEntities),t.unpairedTagsSet=new Set(t.unpairedTags),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map((r=>typeof r=="string"&&r.startsWith("*.")?".."+r.substring(2):r))),t},sw;sw=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");var ui=class{constructor(t){this.tagname=t,this.child=[],this[":@"]=Object.create(null)}add(t,n){t==="__proto__"&&(t="#__proto__"),this.child.push({[t]:n})}addChild(t,n){t.tagname==="__proto__"&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child}),n!==void 0&&(this.child[this.child.length-1][sw]={startIndex:n})}static getMetaDataSymbol(){return sw}},ow=class{constructor(t){this.suppressValidationErr=!t,this.options=t}readDocType(t,n){let r=Object.create(null),i=0;if(t[n+3]!=="O"||t[n+4]!=="C"||t[n+5]!=="T"||t[n+6]!=="Y"||t[n+7]!=="P"||t[n+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{n+=9;let s=1,o=!1,a=!1,l="";for(;n"){if(a?t[n-1]==="-"&&t[n-2]==="-"&&(a=!1,s--):s--,s===0)break}else t[n]==="["?o=!0:l+=t[n];else{if(o&&Fo(t,"!ENTITY",n)){let u,p;if(n+=7,[u,p,n]=this.readEntityExp(t,n+1,this.suppressValidationErr),p.indexOf("&")===-1){if(this.options.enabled!==!1&&this.options.maxEntityCount!=null&&i>=this.options.maxEntityCount)throw new Error(`Entity count (${i+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);r[u]=p,i++}}else if(o&&Fo(t,"!ELEMENT",n)){n+=8;let{index:u}=this.readElementExp(t,n+1);n=u}else if(o&&Fo(t,"!ATTLIST",n))n+=8;else if(o&&Fo(t,"!NOTATION",n)){n+=9;let{index:u}=this.readNotationExp(t,n+1,this.suppressValidationErr);n=u}else{if(!Fo(t,"!--",n))throw new Error("Invalid DOCTYPE");a=!0}s++,l=""}if(s!==0)throw new Error("Unclosed DOCTYPE")}return{entities:r,i:n}}readEntityExp(t,n){let r=n=Un(t,n);for(;nthis.options.maxEntitySize)throw new Error(`Entity "${i}" size (${s.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[i,s,--n]}readNotationExp(t,n){let r=n=Un(t,n);for(;n{for(;t0?t[t.length-1].tag:void 0}getCurrentNamespace(){let t=this._matcher.path;return t.length>0?t[t.length-1].namespace:void 0}getAttrValue(t){var r;let n=this._matcher.path;if(n.length!==0)return(r=n[n.length-1].values)==null?void 0:r[t]}hasAttr(t){let n=this._matcher.path;if(n.length===0)return!1;let r=n[n.length-1];return r.values!==void 0&&t in r.values}getPosition(){var n;let t=this._matcher.path;return t.length===0?-1:(n=t[t.length-1].position)!=null?n:0}getCounter(){var n;let t=this._matcher.path;return t.length===0?-1:(n=t[t.length-1].counter)!=null?n:0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(t){let n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return this._matcher.toString(t,n)}toArray(){return this._matcher.path.map((t=>t.tag))}matches(t){return this._matcher.matches(t)}matchesAny(t){return t.matchesAny(this._matcher)}},Zl=class{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.separator=t.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new aw(this)}push(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let i=this.path.length;this.siblingStacks[i]||(this.siblingStacks[i]=new Map);let s=this.siblingStacks[i],o=r?`${r}:${t}`:t,a=s.get(o)||0,l=0;for(let p of s.values())l+=p;s.set(o,a+1);let u={tag:t,position:l,counter:a};r!=null&&(u.namespace=r),n!=null&&(u.values=n),this.path.push(u)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let t=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),t}updateCurrent(t){if(this.path.length>0){let n=this.path[this.path.length-1];t!=null&&(n.values=t)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(t){var n;if(this.path.length!==0)return(n=this.path[this.path.length-1].values)==null?void 0:n[t]}hasAttr(t){if(this.path.length===0)return!1;let n=this.path[this.path.length-1];return n.values!==void 0&&t in n.values}getPosition(){var t;return this.path.length===0?-1:(t=this.path[this.path.length-1].position)!=null?t:0}getCounter(){var t;return this.path.length===0?-1:(t=this.path[this.path.length-1].counter)!=null?t:0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(t){let n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=t||this.separator;if(r===this.separator&&n===!0){if(this._pathStringCache!==null)return this._pathStringCache;let i=this.path.map((s=>s.namespace?`${s.namespace}:${s.tag}`:s.tag)).join(r);return this._pathStringCache=i,i}return this.path.map((i=>n&&i.namespace?`${i.namespace}:${i.tag}`:i.tag)).join(r)}toArray(){return this.path.map((t=>t.tag))}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(t){let n=t.segments;return n.length!==0&&(t.hasDeepWildcard()?this._matchWithDeepWildcard(n):this._matchSimple(n))}_matchSimple(t){if(this.path.length!==t.length)return!1;for(let n=0;n=0&&n>=0;){let i=t[r];if(i.type==="deep-wildcard"){if(r--,r<0)return!0;let s=t[r],o=!1;for(let a=n;a>=0;a--)if(this._matchSegment(s,this.path[a],a===this.path.length-1)){n=a-1,r--,o=!0;break}if(!o)return!1}else{if(!this._matchSegment(i,this.path[n],n===this.path.length-1))return!1;n--,r--}}return r<0}_matchSegment(t,n,r){var i;if(t.tag!=="*"&&t.tag!==n.tag||t.namespace!==void 0&&t.namespace!=="*"&&t.namespace!==n.namespace||t.attrName!==void 0&&(!r||!n.values||!(t.attrName in n.values)||t.attrValue!==void 0&&String(n.values[t.attrName])!==String(t.attrValue)))return!1;if(t.position!==void 0){if(!r)return!1;let s=(i=n.counter)!=null?i:0;if(t.position==="first"&&s!==0||t.position==="odd"&&s%2!=1||t.position==="even"&&s%2!=0||t.position==="nth"&&s!==t.positionValue)return!1}return!0}matchesAny(t){return t.matchesAny(this)}snapshot(){return{path:this.path.map((t=>({...t}))),siblingStacks:this.siblingStacks.map((t=>new Map(t)))}}restore(t){this._pathStringCache=null,this.path=t.path.map((n=>({...n}))),this.siblingStacks=t.siblingStacks.map((n=>new Map(n)))}readOnly(){return this._view}},Cs=class{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;this.pattern=t,this.separator=n.separator||".",this.segments=this._parse(t),this.data=r,this._hasDeepWildcard=this.segments.some((i=>i.type==="deep-wildcard")),this._hasAttributeCondition=this.segments.some((i=>i.attrName!==void 0)),this._hasPositionSelector=this.segments.some((i=>i.position!==void 0))}_parse(t){let n=[],r=0,i="";for(;r",lt:"<",quot:'"'},aEe={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"},cEe=new Set("!?\\\\/[]$%{}^&*()<>|+");function WL(e){if(e[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(let t of e)if(cEe.has(t))throw new Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);return e}function z_(){let e=Object.create(null);for(var t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{};var n;this._limit=t.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof t.postCheck=="function"?t.postCheck:o=>o,this._limitTiers=(n=(i=this._limit.applyLimitsTo)!=null?i:Bo)&&n!==Bo?n===q_?new Set([q_]):n===qh?new Set([qh]):Array.isArray(n)?new Set(n):new Set([Bo]):new Set([Bo]),this._numericAllowed=(s=t.numericAllowed)!=null?s:!0,this._baseMap=z_(A6,t.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(t.remove&&Array.isArray(t.remove)?t.remove:[]),this._leaveSet=new Set(t.leave&&Array.isArray(t.leave)?t.leave:[]);let r=(function(o){var p,d;if(!o)return{xmlVersion:1,onLevel:Jn.allow,nullLevel:Jn.remove};let a=o.xmlVersion===1.1?1.1:1,l=(p=Jn[o.onNCR])!=null?p:Jn.allow,u=(d=Jn[o.nullNCR])!=null?d:Jn.remove;return{xmlVersion:a,onLevel:l,nullLevel:Math.max(u,Jn.remove)}})(t.ncr);this._ncrXmlVersion=r.xmlVersion,this._ncrOnLevel=r.onLevel,this._ncrNullLevel=r.nullLevel}setExternalEntities(t){if(t)for(let n of Object.keys(t))WL(n);this._externalMap=z_(t)}addExternalEntity(t,n){WL(t),typeof n=="string"&&n.indexOf("&")===-1&&(this._externalMap[t]=n)}addInputEntities(t){this._totalExpansions=0,this._expandedLength=0,this._inputMap=z_(t)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(t){this._ncrXmlVersion=t===1.1?1.1:1}decode(t){if(typeof t!="string"||t.length===0)return t;let n=t,r=[],i=t.length,s=0,o=0,a=this._maxTotalExpansions>0,l=this._maxExpandedLength>0,u=a||l;for(;o=i||t.charCodeAt(d)!==59){o++;continue}let f=t.slice(o+1,d);if(f.length===0){o++;continue}let m,g;if(this._removeSet.has(f))m="",g===void 0&&(g=Bo);else{if(this._leaveSet.has(f)){o++;continue}if(f.charCodeAt(0)===35){let x=this._resolveNCR(f);if(x===void 0){o++;continue}m=x,g=qh}else{let x=this._resolveName(f);m=x==null?void 0:x.value,g=x==null?void 0:x.tier}}if(m!==void 0){if(o>s&&r.push(t.slice(s,o)),r.push(m),s=d+1,o=s,u&&this._tierCounts(g)){if(a&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(l){let x=m.length-(f.length+2);if(x>0&&(this._expandedLength+=x,this._expandedLength>this._maxExpandedLength))throw new Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}else o++}s=55296&&t<=57343||this._ncrXmlVersion===1&&t>=1&&t<=31&&!uEe.has(t)?Jn.remove:-1}_applyNCRAction(t,n,r){switch(t){case Jn.allow:return String.fromCodePoint(r);case Jn.remove:return"";case Jn.leave:return;case Jn.throw:throw new Error(`[EntityDecoder] Prohibited numeric character reference &${n}; (U+${r.toString(16).toUpperCase().padStart(4,"0")})`);default:return String.fromCodePoint(r)}}_resolveNCR(t){let n=t.charCodeAt(1),r;if(r=n===120||n===88?parseInt(t.slice(2),16):parseInt(t.slice(1),10),Number.isNaN(r)||r<0||r>1114111)return;let i=this._classifyNCR(r);if(!this._numericAllowed&&i0){let n=e.substring(0,t);if(n!=="xmlns")return n}}var uw=class{constructor(t,n){var r;this.options=t,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=gEe,this.parseTextData=dEe,this.resolveNameSpace=fEe,this.buildAttributesMap=hEe,this.isItStopNode=bEe,this.replaceEntitiesValue=xEe,this.readStopNodeData=wEe,this.saveTextToParentTag=vEe,this.addChild=yEe,this.ignoreAttributesFn=typeof(r=this.options.ignoreAttributes)=="function"?r:Array.isArray(r)?o=>{for(let a of r)if(typeof a=="string"&&o===a||a instanceof RegExp&&a.test(o))return!0}:()=>!1,this.entityExpansionCount=0,this.currentExpandedLength=0;let i={...A6};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities=="object"?i=this.options.htmlEntities:this.options.htmlEntities===!0&&(i={...aEe,...oEe}),this.entityDecoder=new Qh({namedEntities:{...i,...n},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new Zl,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new cw;let s=this.options.stopNodes;if(s&&s.length>0){for(let o=0;o0)){o||(e=this.replaceEntitiesValue(e,t,n));let l=a.jPath?n.toString():n,u=a.tagValueProcessor(t,e,l,i,s);return u==null?e:typeof u!=typeof e||u!==e?u:a.trimValues||e.trim()===e?R6(e,a.parseTagValue,a.numberParseOptions):e}}function fEe(e){if(this.options.removeNSPrefix){let t=e.split(":"),n=e.charAt(0)==="/"?"/":"";if(t[0]==="xmlns")return"";t.length===2&&(e=n+t[1])}return e}var mEe=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function hEe(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0&&arguments[3],i=this.options;if(r===!0||i.ignoreAttributes!==!0&&typeof e=="string"){let s=D6(e,mEe),o=s.length,a={},l=new Array(o),u=!1,p={};for(let m=0;m",a,"Closing Tag is not closed."),p=e.substring(a+2,u).trim();if(i.removeNSPrefix){let f=p.indexOf(":");f!==-1&&(p=p.substr(f+1))}p=H_(i.transformTagName,p,"",i).tagName,n&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(p&&i.unpairedTagsSet.has(p))throw new Error(`Unpaired tag can not be used as closing tag: `);d&&i.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=this.tagsNodeStack.pop(),r="",a=u}else if(l===63){let u=lw(e,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let p=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(p){let d=p[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1)}if(!(i.ignoreDeclaration&&u.tagName==="?xml"||i.ignorePiTags)){let d=new ui(u.tagName);d.add(i.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&i.ignoreAttributes!==!0&&(d[":@"]=p),this.addChild(n,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(l===33&&e.charCodeAt(a+2)===45&&e.charCodeAt(a+3)===45){let u=Cc(e,"-->",a+4,"Comment is not closed.");if(i.commentPropName){let p=e.substring(a+4,u-2);r=this.saveTextToParentTag(r,n,this.readonlyMatcher),n.add(i.commentPropName,[{[i.textNodeName]:p}])}a=u}else if(l===33&&e.charCodeAt(a+2)===68){let u=s.readDocType(e,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(l===33&&e.charCodeAt(a+2)===91){let u=Cc(e,"]]>",a,"CDATA is not closed.")-2,p=e.substring(a+9,u);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let d=this.parseTextData(p,n.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),i.cdataPropName?n.add(i.cdataPropName,[{[i.textNodeName]:p}]):n.add(i.textNodeName,d),a=u+2}else{let u=lw(e,a,i.removeNSPrefix);if(!u){let A=e.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${A}"`)}let p=u.tagName,d=u.rawTagName,f=u.tagExp,m=u.attrExpPresent,g=u.closeIndex;if({tagName:p,tagExp:f}=H_(i.transformTagName,p,f,i),i.strictReservedNames&&(p===i.commentPropName||p===i.cdataPropName||p===i.textNodeName||p===i.attributesGroupName))throw new Error(`Invalid tag name: ${p}`);n&&r&&n.tagname!=="!xml"&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher,!1));let x=n;x&&i.unpairedTagsSet.has(x.tagname)&&(n=this.tagsNodeStack.pop(),this.matcher.pop());let v=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(v=!0,p[p.length-1]==="/"?(p=p.substr(0,p.length-1),f=p):f=f.substr(0,f.length-1),m=p!==f);let _,w=null,D={};_=pEe(d),p!==t.tagname&&this.matcher.push(p,{},_),p!==f&&m&&(w=this.buildAttributesMap(f,this.matcher,p),w&&(D=lEe(w,i))),p!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let C=a;if(this.isCurrentNodeStopNode){let A="";if(v)a=u.closeIndex;else if(i.unpairedTagsSet.has(p))a=u.closeIndex;else{let I=this.readStopNodeData(e,d,g+1);if(!I)throw new Error(`Unexpected end of ${d}`);a=I.i,A=I.tagContent}let k=new ui(p);w&&(k[":@"]=w),k.add(i.textNodeName,A),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(n,k,this.readonlyMatcher,C)}else{if(v){({tagName:p,tagExp:f}=H_(i.transformTagName,p,f,i));let A=new ui(p);w&&(A[":@"]=w),this.addChild(n,A,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else{if(i.unpairedTagsSet.has(p)){let A=new ui(p);w&&(A[":@"]=w),this.addChild(n,A,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}{let A=new ui(p);if(this.tagsNodeStack.length>i.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(n),w&&(A[":@"]=w),this.addChild(n,A,this.readonlyMatcher,C),n=A}}r="",a=g}}}else r+=e[a];return t.child};function yEe(e,t,n,r){this.options.captureMetaData||(r=void 0);let i=this.options.jPath?n.toString():n,s=this.options.updateTag(t.tagname,i,t[":@"]);s===!1||(typeof s=="string"&&(t.tagname=s),e.addChild(t,r))}function xEe(e,t,n){let r=this.options.processEntities;if(!r||!r.enabled)return e;if(r.allowedTags){let i=this.options.jPath?n.toString():n;if(!(Array.isArray(r.allowedTags)?r.allowedTags.includes(t):r.allowedTags(t,i)))return e}if(r.tagFilter){let i=this.options.jPath?n.toString():n;if(!r.tagFilter(t,i))return e}return this.entityDecoder.decode(e)}function vEe(e,t,n,r){return e&&(r===void 0&&(r=t.child.length===0),(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&Object.keys(t[":@"]).length!==0,r))!==void 0&&e!==""&&t.add(this.options.textNodeName,e),e=""),e}function bEe(){return this.stopNodeExpressionsSet.size!==0&&this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Cc(e,t,n,r){let i=e.indexOf(t,n);if(i===-1)throw new Error(r);return i+t.length-1}function _Ee(e,t,n,r){let i=e.indexOf(t,n);if(i===-1)throw new Error(r);return i}function lw(e,t,n){let r=(function(p,d){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:">",m=0,g=p.length,x=f.charCodeAt(0),v=f.length>1?f.charCodeAt(1):-1,_="",w=d;for(let D=d;D3&&arguments[3]!==void 0?arguments[3]:">");if(!r)return;let i=r.data,s=r.index,o=i.search(/\s/),a=i,l=!0;o!==-1&&(a=i.substring(0,o),i=i.substring(o+1).trimStart());let u=a;if(n){let p=a.indexOf(":");p!==-1&&(a=a.substr(p+1),l=a!==r.data.substr(p+1))}return{tagName:a,tagExp:i,closeIndex:s,attrExpPresent:l,rawTagName:u}}function wEe(e,t,n){let r=n,i=1,s=e.length;for(;n",n,`${t} is not closed`);if(e.substring(n+2,a).trim()===t&&(i--,i===0))return{tagContent:e.substring(r,n),i:a};n=a}else if(o===63)n=Cc(e,"?>",n+1,"StopNode is not closed.");else if(o===33&&e.charCodeAt(n+2)===45&&e.charCodeAt(n+3)===45)n=Cc(e,"-->",n+3,"StopNode is not closed.");else if(o===33&&e.charCodeAt(n+2)===91)n=Cc(e,"]]>",n,"StopNode is not closed.")-2;else{let a=lw(e,n,">");a&&((a&&a.tagName)===t&&a.tagExp[a.tagExp.length-1]!=="/"&&i++,n=a.closeIndex)}}}function R6(e,t,n){if(t&&typeof e=="string"){let r=e.trim();return r==="true"||r!=="false"&&(function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(s=Object.assign({},iEe,s),!i||typeof i!="string")return i;let o=i.trim();if(o.length===0||s.skipLike!==void 0&&s.skipLike.test(o))return i;if(o==="0")return 0;if(s.hex&&nEe.test(o))return(function(l){if(parseInt)return parseInt(l,16);if(Number.parseInt)return Number.parseInt(l,16);if(window&&window.parseInt)return window.parseInt(l,16);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")})(o);if(isFinite(o)){if(o.includes("e")||o.includes("E"))return(function(l,u,p){if(!p.eNotation)return l;let d=u.match(sEe);if(d){let f=d[1]||"",m=d[3].indexOf("e")===-1?"E":"e",g=d[2],x=f?l[g.length+1]===m:l[g.length]===m;return g.length>1&&x?l:(g.length!==1||!d[3].startsWith(`.${m}`)&&d[3][0]!==m)&&g.length>0?p.leadingZeros&&!x?(u=(d[1]||"")+d[3],Number(u)):l:Number(u)}return l})(i,o,s);{let l=rEe.exec(o);if(l){let u=l[1]||"",p=l[2],d=((a=l[3])&&a.indexOf(".")!==-1&&((a=a.replace(/0+$/,""))==="."?a="0":a[0]==="."?a="0"+a:a[a.length-1]==="."&&(a=a.substring(0,a.length-1))),a),f=u?i[p.length+1]===".":i[p.length]===".";if(!s.leadingZeros&&(p.length>1||p.length===1&&!f))return i;{let m=Number(o),g=String(m);if(m===0)return m;if(g.search(/[eE]/)!==-1)return s.eNotation?m:i;if(o.indexOf(".")!==-1)return g==="0"||g===d||g===`${u}${d}`?m:i;let x=p?d:o;return p?x===g||u+x===g?m:i:x===g||x===u+g?m:i}}return i}}var a;return(function(l,u,p){let d=u===1/0;switch(p.infinity.toLowerCase()){case"null":return null;case"infinity":return u;case"string":return d?"Infinity":"-Infinity";default:return l}})(i,Number(o),s)})(e,n)}return e!==void 0?e:""}function H_(e,t,n,r){if(e){let i=e(t);n===t&&(n=i),t=i}return{tagName:t=k6(t,r),tagExp:n}}function k6(e,t){if(S6.includes(e))throw new Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return xw.includes(e)?t.onDangerousProperty(e):e}var G_=ui.getMetaDataSymbol();function EEe(e,t){if(!e||typeof e!="object")return{};if(!t)return e;let n={};for(let r in e)r.startsWith(t)?n[r.substring(t.length)]=e[r]:n[r]=e[r];return n}function DEe(e,t,n,r){return O6(e,t,n,r)}function O6(e,t,n,r){let i,s={};for(let o=0;o0&&(s[t.textNodeName]=i):i!==void 0&&(s[t.textNodeName]=i),s}function SEe(e){let t=Object.keys(e);for(let n=0;n5&&r==="xml")return _t("InvalidXml","XML declaration allowed only at the start of the document.",Cn(e,t));if(e[t]=="?"&&e[t+1]==">"){t++;break}}return t}function XL(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t"){t+=2;break}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let n=1;for(t+=8;t"&&(n--,n===0))break}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t"){t+=2;break}}return t}function REe(e,t){let n="",r="",i=!1;for(;t"&&r===""){i=!0;break}n+=e[t]}return r===""&&{value:n,index:t,tagClosed:i}}var kEe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function ZL(e,t){let n=D6(e,kEe),r={};for(let i=0;i"&&o[d]!==" "&&o[d]!==" "&&o[d]!==` -`&&o[d]!=="\r";d++)g+=o[d];if(g=g.trim(),g[g.length-1]==="/"&&(g=g.substring(0,g.length-1),d--),!tg(g)){let _;return _=g.trim().length===0?"Invalid space after '<'.":"Tag '"+g+"' is an invalid name.",_t("InvalidTag",_,Cn(o,d))}let x=REe(o,d);if(x===!1)return _t("InvalidAttr","Attributes for '"+g+"' have open quote.",Cn(o,d));let v=x.value;if(d=x.index,v[v.length-1]==="/"){let _=d-v.length;v=v.substring(0,v.length-1);let w=ZL(v,a);if(w!==!0)return _t(w.err.code,w.err.msg,Cn(o,_+w.err.line));u=!0}else if(m){if(!x.tagClosed)return _t("InvalidTag","Closing tag '"+g+"' doesn't have proper closing.",Cn(o,d));if(v.trim().length>0)return _t("InvalidTag","Closing tag '"+g+"' can't have attributes or invalid starting.",Cn(o,f));if(l.length===0)return _t("InvalidTag","Closing tag '"+g+"' has not been opened.",Cn(o,f));{let _=l.pop();if(g!==_.tagName){let w=Cn(o,_.tagStartPos);return _t("InvalidTag","Expected closing tag '"+_.tagName+"' (opened in line "+w.line+", col "+w.col+") instead of closing tag '"+g+"'.",Cn(o,f))}l.length==0&&(p=!0)}}else{let _=ZL(v,a);if(_!==!0)return _t(_.err.code,_.err.msg,Cn(o,d-v.length+_.err.line));if(p===!0)return _t("InvalidXml","Multiple possible root nodes found.",Cn(o,d));a.unpairedTags.indexOf(g)!==-1||l.push({tagName:g,tagStartPos:f}),u=!0}for(d++;d0)||_t("InvalidXml","Invalid '"+JSON.stringify(l.map((d=>d.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):_t("InvalidXml","Start tag expected.",1)})(t,n);if(s!==!0)throw Error(`${s.err.msg}:${s.err.line}:${s.err.col}`)}let r=new uw(this.options,this.externalEntities),i=r.parseXml(t);return this.options.preserveOrder||i===void 0?i:DEe(i,this.options,r.matcher,r.readonlyMatcher)}addEntity(t,n){if(n.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(t.indexOf("&")!==-1||t.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if(n==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[t]=n}static getMetaDataSymbol(){return ui.getMetaDataSymbol()}},BEe=st(829),Ni=st.n(BEe),Ec=(function(e){return e.Array="array",e.Object="object",e.Original="original",e})(Ec||{});function QL(e){return typeof e=="string"?e:e.toString(".",!1)}function F6(e,t){if(!e.endsWith("propstat.prop.displayname"))return t}function Hh(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ec.Original,r=Ni().get(e,t);return n==="array"&&Array.isArray(r)===!1?[r]:n==="object"&&Array.isArray(r)?r[0]:r}function ng(e,t){return t=t!=null?t:{attributeNamePrefix:"@",attributeParsers:[],tagParsers:[F6]},new Promise((n=>{n((function(r){let{multistatus:i}=r;if(i==="")return{multistatus:{response:[]}};if(!i)throw new Error("Invalid response: No root multistatus found");let s={multistatus:Array.isArray(i)?i[0]:i};return Ni().set(s,"multistatus.response",Hh(s,"multistatus.response",Ec.Array)),Ni().set(s,"multistatus.response",Ni().get(s,"multistatus.response").map((o=>(function(a){let l=Object.assign({},a);return l.status?Ni().set(l,"status",Hh(l,"status",Ec.Object)):(Ni().set(l,"propstat",Hh(l,"propstat",Ec.Object)),Ni().set(l,"propstat.prop",Hh(l,"propstat.prop",Ec.Object))),l})(o)))),s})((function(r){var u,p,d,f;let{attributeNamePrefix:i,attributeParsers:s,entityDecoder:o,tagParsers:a}=r,l={allowBooleanAttributes:!0,attributeNamePrefix:i,textNodeName:"text",ignoreAttributes:!1,removeNSPrefix:!0,jPath:!1,numberParseOptions:{hex:!0,leadingZeros:!1},attributeValueProcessor(m,g,x){let v=QL(x);for(let _ of s)try{let w=_(v,g);if(w!==g)return w}catch(w){}return g},tagValueProcessor(m,g,x){let v=QL(x);for(let _ of a)try{let w=_(v,g);if(w!==g)return w}catch(w){}return g}};return o&&(l.entityDecoder=new Qh({limit:{maxTotalExpansions:(p=(u=o.limit)==null?void 0:u.maxTotalExpansions)!=null?p:0,maxExpandedLength:(f=(d=o.limit)==null?void 0:d.maxExpandedLength)!=null?f:0}})),new Jh(l)})(t).parse(e)))}))}function vw(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],{getlastmodified:r=null,getcontentlength:i="0",resourcetype:s=null,getcontenttype:o=null,getetag:a=null}=e,l=s&&typeof s=="object"&&s.collection!==void 0?"directory":"file",u={filename:t,basename:Kh().basename(t),lastmod:r,size:parseInt(i,10),type:l,etag:typeof a=="string"?a.replace(/"/g,""):null};return l==="file"&&(u.mime=o&&typeof o=="string"?o.split(";")[0]:""),n&&(e.displayname!==void 0&&(e.displayname=String(e.displayname)),u.props=e),u}function IEe(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=null;try{e.multistatus.response[0].propstat&&(r=e.multistatus.response[0])}catch(p){}if(!r)throw new Error("Failed getting item stat: bad response");let{propstat:{prop:i,status:s}}=r,[o,a,l]=s.split(" ",3),u=parseInt(a,10);if(u>=400){let p=new Error(`Invalid response: ${u} ${l}`);throw p.status=u,p}return vw(i,Yl(t),n)}function PEe(e){switch(String(e)){case"-3":return"unlimited";case"-2":case"-1":return"unknown";default:return parseInt(String(e),10)}}function V_(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var bw=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{},{details:r=!1}=n,i=Bt({url:pt(e.remoteURL,lt(t)),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,n);return V_(Ft(i,e),(function(s){return It(e,s),V_(s.text(),(function(o){return V_(ng(o,e.parsing),(function(a){let l=IEe(a,t,r);return Rc(s,l,r)}))}))}))}));function B6(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var NEe=I6((function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=(function(s){if(!s||s==="/")return[];let o=s,a=[];do a.push(o),o=Kh().dirname(o);while(o&&o!=="/");return a})(Yl(t));r.sort(((s,o)=>s.length>o.length?1:o.length>s.length?-1:0));let i=!1;return(function(s,o,a){if(typeof s[e6]=="function"){let x=function(v){try{for(;!(l=d.next()).done;)if((v=o(l.value))&&v.then){if(!t6(v))return void v.then(x,p||(p=Tn.bind(null,u=new Dc,2)));v=v.v}u?Tn(u,1,v):u=v}catch(_){Tn(u||(u=new Dc),2,_)}};var l,u,p,d=s[e6]();if(x(),d.return){var f=function(v){try{l.done||d.return()}catch(_){}return v};if(u&&u.then)return u.then(f,(function(v){throw f(v)}));f()}return u}if(!("length"in s))throw new TypeError("Object is not iterable");for(var m=[],g=0;g2&&arguments[2]!==void 0?arguments[2]:{};if(n.recursive===!0)return NEe(e,t,n);let r=Bt({url:pt(e.remoteURL,(i=lt(t),i.endsWith("/")?i:i+"/")),method:"MKCOL"},e,n);var i;return B6(Ft(r,e),(function(s){It(e,s)}))})),LEe=st(388),n6=st.n(LEe),$Ee=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{},r={};if(typeof n.range=="object"&&typeof n.range.start=="number"){let a=`bytes=${n.range.start}-`;typeof n.range.end=="number"&&(a=`${a}${n.range.end}`),r.Range=a}let i=Bt({url:pt(e.remoteURL,lt(t)),method:"GET",headers:r},e,n);return o=function(a){if(It(e,a),r.Range&&a.status!==206){let l=new Error(`Invalid response code for partial request: ${a.status}`);throw l.status=a.status,l}return n.callback&&setTimeout((()=>{n.callback(a)}),0),a.body},(s=Ft(i,e))&&s.then||(s=Promise.resolve(s)),o?s.then(o):s;var s,o})),UEe=()=>{},jEe=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{},r=Bt({url:pt(e.remoteURL,lt(t)),method:"DELETE"},e,n);return s=function(o){It(e,o)},(i=Ft(r,e))&&i.then||(i=Promise.resolve(i)),s?i.then(s):i;var i,s})),qEe=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};return(function(r,i){try{var s=(o=bw(e,t,n),a=function(){return!0},l?a?a(o):o:(o&&o.then||(o=Promise.resolve(o)),a?o.then(a):o))}catch(u){return i(u)}var o,a,l;return s&&s.then?s.then(void 0,i):s})(0,(function(r){if(r.status===404)return!1;throw r}))}));function W_(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var HEe=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{},r=Bt({url:pt(e.remoteURL,lt(t),"/"),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:n.deep?"infinity":"1"}},e,n);return W_(Ft(r,e),(function(i){return It(e,i),W_(i.text(),(function(s){if(!s)throw new Error("Failed parsing directory contents: Empty response");return W_(ng(s,e.parsing),(function(o){let a=BL(t),l=(function(u,p,d){let f=arguments.length>3&&arguments[3]!==void 0&&arguments[3],m=arguments.length>4&&arguments[4]!==void 0&&arguments[4],g=Kh().join(p,"/"),{multistatus:{response:x}}=u,v=x.map((_=>{let w=(function(C){try{return C.replace(/^https?:\/\/[^\/]+/,"")}catch(A){throw new wr(A,"Failed normalising HREF")}})(_.href),{propstat:{prop:D}}=_;return vw(D,g==="/"?decodeURIComponent(Yl(w)):Yl(Kh().relative(decodeURIComponent(g),decodeURIComponent(w))),f)}));return m?v:v.filter((_=>_.basename&&(_.type==="file"||_.filename!==d.replace(/\/$/,""))))})(o,BL(e.remoteBasePath||e.remotePath),a,n.details,n.includeSelf);return n.glob&&(l=(function(u,p){return u.filter((d=>ln(d.filename,p,{matchBase:!0})))})(l,n.glob)),Rc(i,l,n.details)}))}))}))}));function _w(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{},r=Bt({url:pt(e.remoteURL,lt(t)),method:"GET",headers:{Accept:"text/plain"},transformResponse:[KEe]},e,n);return eg(Ft(r,e),(function(i){return It(e,i),eg(i.text(),(function(s){return Rc(i,s,n.details)}))}))}));function eg(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var VEe=_w((function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Bt({url:pt(e.remoteURL,lt(t)),method:"GET"},e,n);return eg(Ft(r,e),(function(i){let s;return It(e,i),(function(o,a){var l=o();return l&&l.then?l.then(a):a()})((function(){return eg(i.arrayBuffer(),(function(o){s=o}))}),(function(){return Rc(i,s,n.details)}))}))})),WEe=_w((function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{format:r="binary"}=n;if(r!=="binary"&&r!=="text")throw new wr({info:{code:Ss.InvalidOutputFormat}},`Invalid output format: ${r}`);return r==="text"?GEe(e,t,n):VEe(e,t,n)})),KEe=e=>e;function YEe(e,t){let n="";t.format&&t.indentBy.length>0&&(n=` -`);let r=[];if(t.stopNodes&&Array.isArray(t.stopNodes))for(let i=0;it.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(e)){if(e!=null){let a=e.toString();return a=dw(a,t),a}return""}for(let a=0;a/g,"]]]]>")}]]>`,o=!1,r.pop();continue}if(u===t.commentPropName){let x=l[u][0][t.textNodeName];s+=n+``,o=!0,r.pop();continue}if(u[0]==="?"){let x=r6(l[":@"],t,d),v=u==="?xml"?"":n,_=l[u][0][t.textNodeName];_=_.length!==0?" "+_:"",s+=v+`<${u}${_}${x}?>`,o=!0,r.pop();continue}let f=n;f!==""&&(f+=t.indentBy);let m=n+`<${u}${r6(l[":@"],t,d)}`,g;g=d?N6(l[u],t):P6(l[u],t,f,r,i),t.unpairedTags.indexOf(u)!==-1?t.suppressUnpairedNode?s+=m+">":s+=m+"/>":g&&g.length!==0||!t.suppressEmptyNode?g&&g.endsWith(">")?s+=m+`>${g}${n}`:(s+=m+">",g&&n!==""&&(g.includes("/>")||g.includes("`):s+=m+"/>",o=!0,r.pop()}return s}function XEe(e,t){if(!e||t.ignoreAttributes)return null;let n={},r=!1;for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i.startsWith(t.attributeNamePrefix)?i.substr(t.attributeNamePrefix.length):i]=e[i],r=!0);return r?n:null}function N6(e,t){if(!Array.isArray(e))return e!=null?e.toString():"";let n="";for(let r=0;r${a}`:n+=`<${s}${o}/>`}}}return n}function ZEe(e,t){let n="";if(e&&!t.ignoreAttributes)for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=e[r];i===!0&&t.suppressBooleanAttributes?n+=` ${r.substr(t.attributeNamePrefix.length)}`:n+=` ${r.substr(t.attributeNamePrefix.length)}="${i}"`}return n}function M6(e){let t=Object.keys(e);for(let n=0;n0&&t.processEntities)for(let n=0;n","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function _r(e){if(this.options=Object.assign({},JEe,e),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map((n=>typeof n=="string"&&n.startsWith("*.")?".."+n.substring(2):n))),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let n=0;n{for(let r of t)if(typeof r=="string"&&n===r||r instanceof RegExp&&r.test(n))return!0}:()=>!1,this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=n1e),this.processTextOrObjNode=e1e,this.options.format?(this.indentate=t1e,this.tagEndChar=`> +`+D_(r,4);super(r);Ht(this,Hl);C(this,"name","AggregateError");$e(this,Hl,n)}get errors(){return Y(this,Hl).slice()}};Hl=new WeakMap;c();c();var N8={chars:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bits:6};var Mi={parse:function(t,n){return Sbe(t,N8,n)},stringify:function(t,n){return Cbe(t,N8,n)}};function Sbe(e,t,n){var r;if(n===void 0&&(n={}),!t.codes){t.codes={};for(var i=0;i=8&&(a-=8,o[u++]=255&l>>a)}if(a>=t.bits||255&l<<8-a)throw new SyntaxError("Unexpected end of data");return o}function Cbe(e,t,n){n===void 0&&(n={});for(var r=n,i=r.pad,s=i===void 0?!0:i,o=(1<t.bits;)l-=t.bits,a+=t.chars[o&u>>l];if(l&&(a+=t.chars[o&u<{ws.methodFactory=U8,ws.setLevel(ws.getLevel())},se=ws;var A_=(e,t=!0,n=!0)=>{if(!(t||n))throw Error("parameter error for isHiddenPath");let i=Abe(e).split("/");for(let s of i)if(!(s==="."||s===".."||s==="")&&(t&&s[0]==="."||n&&s[0]==="_"))return!0;return!1},Abe=e=>{if(!e)throw Error("missing path for normalizePath");e=e.replace(/\\/g,"/"),e=e.replace(/\/\/+/g,"/");let t=e.split("/"),n=[];for(let r of t)r===".."?n.pop():r!=="."&&r!==""&&n.push(r);return n.join("/")},Rbe=e=>{e=e.replace(/\\/g,"/");let t=e.split("/");t.pop();let n=t.join("/");return n===""||n==="/"||n==="."?"/":n},kbe=(e,t=!1)=>{let n=[];if(e===""||e==="/")return n;let r=e.split("/"),i=0;for(let s=0;s+1{let n=kbe(e);for(let r of n)await t.adapter.exists(r)||await t.adapter.mkdir(r)},br=e=>e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);var Yt=e=>{let t=Rbe(e);return t==="."||t==="/"?"/":t.endsWith("/")?t:`${t}/`};var q8=(e,t)=>{let n=typeof window!="undefined"&&window.crypto||typeof globalThis!="undefined"&&globalThis.crypto;if(!n||!n.getRandomValues)throw new Error("Crypto API not available");let r=new Uint32Array(1);n.getRandomValues(r);let i=r[0]/4294967296;return e=Math.ceil(e),t=Math.floor(t),Math.floor(i*(t-e+1))+e},H8=e=>{let t=typeof window!="undefined"&&window.crypto||typeof globalThis!="undefined"&&globalThis.crypto;if(!t||!t.getRandomValues)throw new Error("Crypto API not available");let n=t.getRandomValues(new Uint8Array(e));return br(n)},wc=e=>[...e].reverse().join("");var R_=e=>{(e===void 0||e===""||e==="."||e===".."||e.startsWith("/"))&&se.debug(`do not know which level for ${e}`);let t=e;return e.endsWith("/")&&(t=e.slice(0,-1)),t.split("/").length},G8=e=>/[?/\\]/.test(e),jn=e=>{if(!(e==null||Number.isNaN(e)))return(0,z8.moment)(e).format()},Obe=()=>{let e=new WeakSet;return(t,n)=>{if(typeof n=="object"&&n!==null){if(e.has(n))return;e.add(n)}return n}},V8=e=>{if(e==null)return`${e}`;if(typeof e=="string")return e;if(e instanceof String||e instanceof Date||typeof e=="number"||typeof e=="bigint"||typeof e=="boolean")return`${e}`;if(e instanceof Error||e&&e.stack&&e.message&&typeof e.stack=="string"&&typeof e.message=="string")return`ERROR! MESSAGE: ${e.message}, STACK: ${e.stack}`;try{let t=JSON.stringify(e,Obe(),2);if(t!==void 0)return t;throw new Error("not jsonable")}catch(t){return`${e}`}},Es=async(e,t)=>{let n=await e.adapter.stat(t);if(n!=null)return(n.ctime===void 0||n.ctime===null||Number.isNaN(n.ctime))&&(n.ctime=void 0),(n.mtime===void 0||n.mtime===null||Number.isNaN(n.mtime))&&(n.mtime=void 0),(n.size===void 0||n.size===null||Number.isNaN(n.size))&&n.type==="folder"&&(n.size=0),n};function W8(e,t){let n=(i,s)=>e.t(i,s),r={lastSyncMsg:n("statusbar_lastsync_never"),lastSyncLabelMsg:n("statusbar_lastsync_never_label")};if(t!==void 0&&t>0){let i=Date.now()-t,s=Math.floor(i/31556952e3),o=Math.floor(i/2629746e3),a=Math.floor(i/6048e5),l=Math.floor(i/864e5),u=Math.floor(i/36e5),p=Math.floor(i/6e4),d="";s>0?d=n("statusbar_time_years",{time:s}):o>0?d=n("statusbar_time_months",{time:o}):a>0?d=n("statusbar_time_weeks",{time:a}):l>0?d=n("statusbar_time_days",{time:l}):u>0?d=n("statusbar_time_hours",{time:u}):p>0?d=n("statusbar_time_minutes",{time:p}):d=n("statusbar_time_lessminute");let f=new Date(t).toLocaleTimeString(navigator.language,{weekday:"long",year:"numeric",month:"long",day:"numeric"});r.lastSyncMsg=n("statusbar_lastsync",{time:d}),r.lastSyncLabelMsg=n("statusbar_lastsync_label",{date:f})}return r}var Gl=2e4,K8=async(e,t,n=Gl)=>{let r=typeof window!="undefined"&&window.crypto||typeof globalThis!="undefined"&&globalThis.crypto;if(!r||!r.subtle||!r.subtle.importKey||!r.subtle.deriveBits)throw new Error("Crypto subtle API not available");let i=await r.subtle.importKey("raw",new TextEncoder().encode(t),{name:"PBKDF2"},!1,["deriveKey","deriveBits"]);return await r.subtle.deriveBits({name:"PBKDF2",salt:e,iterations:n,hash:"SHA-256"},i,256)},Ds=async(e,t,n=Gl)=>{let r=typeof window!="undefined"&&window.crypto||typeof globalThis!="undefined"&&globalThis.crypto;if(!r||!r.getRandomValues||!r.subtle||!r.subtle.importKey||!r.subtle.encrypt)throw new Error("Crypto API not available");let i=r.getRandomValues(new Uint8Array(16)),s=await K8(i,t,n),o=r.getRandomValues(new Uint8Array(12)),a=await r.subtle.importKey("raw",s,{name:"AES-GCM"},!1,["encrypt","decrypt"]),l=await r.subtle.encrypt({name:"AES-GCM",iv:o},a,e),u=new Uint8Array([...i,...o,...new Uint8Array(l)]);return br(u)},Bo=async(e,t,n=Gl)=>{let r=e.slice(0,16),i=e.slice(16,28),s=e.slice(28),o=await K8(new Uint8Array(r),t,n),a=typeof window!="undefined"&&window.crypto||typeof globalThis!="undefined"&&globalThis.crypto;if(!a||!a.subtle||!a.subtle.importKey||!a.subtle.decrypt)throw new Error("Crypto API not available");let l=await a.subtle.importKey("raw",o,{name:"AES-GCM"},!1,["encrypt","decrypt"]);return await a.subtle.decrypt({name:"AES-GCM",iv:i},l,s)};var k_=async(e,t,n=Gl)=>{let r=await Ds(br(new TextEncoder().encode(e)),t,n);return Mi.stringify(new Uint8Array(r),{pad:!1})},Uh=async(e,t,n=Gl)=>new TextDecoder().decode(await Bo(br(Mi.parse(e,{loose:!0})),t,n)),jh=e=>{if(e<0||Number.isNaN(e)||!Number.isInteger(e))throw Error(`getSizeFromOrigToEnc: x=${e} is not a valid size`);return e+16+16+12};var O_=class extends S8{constructor(n){super(n);C(this,"requestTimeoutInMs");this.requestTimeoutInMs=n===void 0?void 0:n.requestTimeout}async handle(n,{abortSignal:r}={}){if(r!=null&&r.aborted){let g=new Error("Request aborted");return g.name="AbortError",Promise.reject(g)}let i=n.path;if(n.query){let g=Ph(n.query);g&&(i+=`?${g}`)}let{port:s,method:o}=n,a=`${n.protocol}//${n.hostname}${s?`:${s}`:""}${i}`,l=o==="GET"||o==="HEAD"?void 0:n.body,u={};for(let g of Object.keys(n.headers)){let x=g.toLowerCase();x==="host"||x==="content-length"||(u[x]=n.headers[g])}let p;u["content-type"]!==void 0&&(p=u["content-type"]);let d=l;ArrayBuffer.isView(l)&&(d=br(l));let m=[(0,X8.requestUrl)({body:d,headers:u,method:o,url:a,contentType:p}).then(g=>{let x=g.headers,v={};for(let w of Object.keys(x))v[w.toLowerCase()]=x[w];let _=new ReadableStream({start(w){w.enqueue(new Uint8Array(g.arrayBuffer)),w.close()}});return{response:new Ul({headers:v,statusCode:g.status,body:_})}}),Nh(this.requestTimeoutInMs)];return r&&m.push(new Promise((g,x)=>{r.onabort=()=>{let v=new Error("Request aborted");v.name="AbortError",x(v)}})),Promise.race(m)}updateHttpClientConfig(n,r){}httpHandlerConfigs(){return{}}},qh={s3Endpoint:"",s3Region:"",s3AccessKeyID:"",s3SecretAccessKey:"",s3BucketName:"",bypassCorsLocally:!0,partsConcurrency:20,forcePathStyle:!1,disableS3MetadataSync:!1},Fbe=e=>{if(e===void 0||e.Key===void 0||e.LastModified===void 0||e.Size===void 0)throw Error(`invalid S3 object shape: ${JSON.stringify(e)}`);return{key:e.Key,lastModified:e.LastModified.valueOf(),size:e.Size,remoteType:"s3",etag:e.ETag}},Bbe=(e,t)=>{let n=t.LastModified.valueOf();return t.Metadata.modification_time!=null&&(n=parseInt(t.Metadata.modification_time)),{key:e,lastModified:n,size:t.ContentLength,remoteType:"s3",etag:t.ETag}},Ec=e=>{let t=e.s3Endpoint;t.startsWith("http://")||t.startsWith("https://")||(t=`https://${t}`);let n,r={region:e.s3Region,endpoint:t,forcePathStyle:e.forcePathStyle,credentials:{accessKeyId:e.s3AccessKeyID,secretAccessKey:e.s3SecretAccessKey}};return or&&e.bypassCorsLocally&&(r.requestHandler=new O_),n=new Cm(r),n.middlewareStack.add((i,s)=>o=>(o.request.headers["cache-control"]="no-cache",i(o)),{step:"build"}),n},Y8=async(e,t,n)=>{let r=await e.send(new Om({Bucket:t.s3BucketName,Key:n}));return Bbe(n,r)},Q8=async(e,t,n,r,i=!1,s="",o="",a=!1,l="")=>{let u=n;s!==""&&(u=o);let p=n.endsWith("/");if(p&&i)throw Error("upload function doesn't implement recursive function yet!");if(p&&!i){if(a)throw Error("you specify uploadRaw, but you also provide a folder key!");let d=gi;return await e.send(new bo({Bucket:t.s3BucketName,Key:u,Body:"",ContentType:d})),await Y8(e,t,u)}else{let d=gi;s===""&&(d=zh.contentType(zh.lookup(n)||gi)||gi);let f;a?typeof l=="string"?f=new TextEncoder().encode(l).buffer:f=l:f=await r.adapter.readBinary(n);let m=f;s!==""&&(m=await Ds(f,s));let g=5242880,x=new Uint8Array(m),v=await Es(r,n),_=v==null?void 0:v.mtime.toString(),w={Bucket:t.s3BucketName,Key:u,Body:x,ContentType:d};t.disableS3MetadataSync||(w.Metadata={modification_time:_});let E=new $l({client:e,queueSize:t.partsConcurrency,partSize:g,leavePartsOnError:!1,params:w});try{await E.done()}catch(S){if(!t.disableS3MetadataSync&&w.Metadata!==void 0){se.warn("S3 upload with metadata failed, retrying once without metadata",S);let A={...w};delete A.Metadata,await new $l({client:e,queueSize:t.partsConcurrency,partSize:g,leavePartsOnError:!1,params:A}).done()}else throw S}return await Y8(e,t,u)}},F_=async(e,t,n)=>{let r={Bucket:t.s3BucketName};n!==void 0&&(r.Prefix=n);let i=[],s=!0;do{let a=await e.send(new Fm(r));if(a.$metadata.httpStatusCode!==200)throw Error("some thing bad while listing remote!");if(a.Contents===void 0)break;if(i.push(...a.Contents),s=a.IsTruncated,r.ContinuationToken=a.NextContinuationToken,s&&(r.ContinuationToken===void 0||r.ContinuationToken===""))throw Error("isTruncated is true but no continuationToken provided")}while(s);let o=[];for(let a of i)try{o.push(Fbe(a))}catch(l){se.warn(`skip unrecognized S3 object while listing remote: ${JSON.stringify({key:a==null?void 0:a.Key})}`,l)}return{Contents:o}},Ibe=async e=>{if(e instanceof Z8.Readable)return await new Promise((t,n)=>{let r=[];e.on("data",i=>r.push(i)),e.on("error",n),e.on("end",()=>{let i=r.reduce((a,l)=>a+l.byteLength,0),s=new Uint8Array(i),o=0;for(let a of r)s.set(a,o),o+=a.byteLength;t(br(s))})});if(e instanceof ReadableStream)return await new Response(e,{}).arrayBuffer();if(e instanceof Blob)return await e.arrayBuffer();throw TypeError(`The type of ${e} is not one of the supported types`)},Pbe=async(e,t,n)=>{let r=await e.send(new Rm({Bucket:t.s3BucketName,Key:n}));return await Ibe(r.Body)},J8=async(e,t,n,r,i,s="",o="",a=!1)=>{let l=n.endsWith("/");if(a||await $r(n,r),l)return new ArrayBuffer(0);{let u=n;s!==""&&(u=o);let p=await Pbe(e,t,u),d=p;return s!==""&&(d=await Bo(p,s)),a||await r.adapter.writeBinary(n,d,{mtime:i}),d}},eL=async(e,t,n,r="",i="")=>{if(n==="/")return;let s=n;r!==""&&(s=i),await e.send(new bl({Bucket:t.s3BucketName,Key:s})),n.endsWith("/")&&r===""?(await F_(e,t,n)).Contents.forEach(async a=>{await e.send(new bl({Bucket:t.s3BucketName,Key:a.key}))}):n.endsWith("/")},tL=async(e,t,n)=>{try{let r=await e.send(new km({Bucket:t.s3BucketName}));if(r===void 0||r.$metadata===void 0||r.$metadata.httpStatusCode===void 0){let i="results or $metadata or httStatusCode is undefined";return se.debug(i),n!==void 0&&n(i),!1}return r.$metadata.httpStatusCode===200}catch(r){if(se.debug(r),n!==void 0)if(t.s3Endpoint.contains(t.s3BucketName)){let i=new ci([r,new Error("Maybe you've included the bucket name inside the endpoint setting. Please remove the bucket name and try again.")]);n(i)}else n(r);return!1}};c();var H6=at(Cr()),Cw=require("obsidian"),G6=at(P_()),V6=at(N_()),W6=at(M_());c();c();var E_e=202,D_e=502,S_e=400,C_e=409,T_e=100,A_e=201,R_e=417;var k_e=403,O_e=504,F_e=410,B_e=505,I_e=418,P_e=419,N_e=507,M_e=500,L_e=411,$_e=423,U_e=420,j_e=405,z_e=301,q_e=302,H_e=207,G_e=300,V_e=511,W_e=204,K_e=203,Y_e=406,X_e=404,Z_e=501,Q_e=304,J_e=200,ewe=206,twe=402,nwe=308,rwe=412,iwe=428,swe=102,owe=407,awe=431,cwe=408,uwe=413,lwe=414,pwe=416,dwe=205,fwe=303,mwe=503,hwe=101,gwe=307,ywe=429,xwe=401,vwe=422,bwe=415,_we=305,kL={ACCEPTED:E_e,BAD_GATEWAY:D_e,BAD_REQUEST:S_e,CONFLICT:C_e,CONTINUE:T_e,CREATED:A_e,EXPECTATION_FAILED:R_e,FORBIDDEN:k_e,GATEWAY_TIMEOUT:O_e,GONE:F_e,HTTP_VERSION_NOT_SUPPORTED:B_e,IM_A_TEAPOT:I_e,INSUFFICIENT_SPACE_ON_RESOURCE:P_e,INSUFFICIENT_STORAGE:N_e,INTERNAL_SERVER_ERROR:M_e,LENGTH_REQUIRED:L_e,LOCKED:$_e,METHOD_FAILURE:U_e,METHOD_NOT_ALLOWED:j_e,MOVED_PERMANENTLY:z_e,MOVED_TEMPORARILY:q_e,MULTI_STATUS:H_e,MULTIPLE_CHOICES:G_e,NETWORK_AUTHENTICATION_REQUIRED:V_e,NO_CONTENT:W_e,NON_AUTHORITATIVE_INFORMATION:K_e,NOT_ACCEPTABLE:Y_e,NOT_FOUND:X_e,NOT_IMPLEMENTED:Z_e,NOT_MODIFIED:Q_e,OK:J_e,PARTIAL_CONTENT:ewe,PAYMENT_REQUIRED:twe,PERMANENT_REDIRECT:nwe,PRECONDITION_FAILED:rwe,PRECONDITION_REQUIRED:iwe,PROCESSING:swe,PROXY_AUTHENTICATION_REQUIRED:owe,REQUEST_HEADER_FIELDS_TOO_LARGE:awe,REQUEST_TIMEOUT:cwe,REQUEST_TOO_LONG:uwe,REQUEST_URI_TOO_LONG:lwe,REQUESTED_RANGE_NOT_SATISFIABLE:pwe,RESET_CONTENT:dwe,SEE_OTHER:fwe,SERVICE_UNAVAILABLE:mwe,SWITCHING_PROTOCOLS:hwe,TEMPORARY_REDIRECT:gwe,TOO_MANY_REQUESTS:ywe,UNAUTHORIZED:xwe,UNPROCESSABLE_ENTITY:vwe,UNSUPPORTED_MEDIA_TYPE:bwe,USE_PROXY:_we};c();c();var OL={202:"Accepted",502:"Bad Gateway",400:"Bad Request",409:"Conflict",100:"Continue",201:"Created",417:"Expectation Failed",424:"Failed Dependency",403:"Forbidden",504:"Gateway Timeout",410:"Gone",505:"HTTP Version Not Supported",418:"I'm a teapot",419:"Insufficient Space on Resource",507:"Insufficient Storage",500:"Internal Server Error",411:"Length Required",423:"Locked",420:"Method Failure",405:"Method Not Allowed",301:"Moved Permanently",302:"Moved Temporarily",207:"Multi-Status",300:"Multiple Choices",511:"Network Authentication Required",204:"No Content",203:"Non Authoritative Information",406:"Not Acceptable",404:"Not Found",501:"Not Implemented",304:"Not Modified",200:"OK",206:"Partial Content",402:"Payment Required",308:"Permanent Redirect",412:"Precondition Failed",428:"Precondition Required",102:"Processing",103:"Early Hints",426:"Upgrade Required",407:"Proxy Authentication Required",431:"Request Header Fields Too Large",408:"Request Timeout",413:"Request Entity Too Large",414:"Request-URI Too Long",416:"Requested Range Not Satisfiable",205:"Reset Content",303:"See Other",503:"Service Unavailable",101:"Switching Protocols",307:"Temporary Redirect",429:"Too Many Requests",401:"Unauthorized",451:"Unavailable For Legal Reasons",422:"Unprocessable Entity",415:"Unsupported Media Type",305:"Use Proxy",421:"Misdirected Request"},FL={Accepted:202,"Bad Gateway":502,"Bad Request":400,Conflict:409,Continue:100,Created:201,"Expectation Failed":417,"Failed Dependency":424,Forbidden:403,"Gateway Timeout":504,Gone:410,"HTTP Version Not Supported":505,"I'm a teapot":418,"Insufficient Space on Resource":419,"Insufficient Storage":507,"Internal Server Error":500,"Length Required":411,Locked:423,"Method Failure":420,"Method Not Allowed":405,"Moved Permanently":301,"Moved Temporarily":302,"Multi-Status":207,"Multiple Choices":300,"Network Authentication Required":511,"No Content":204,"Non Authoritative Information":203,"Not Acceptable":406,"Not Found":404,"Not Implemented":501,"Not Modified":304,OK:200,"Partial Content":206,"Payment Required":402,"Permanent Redirect":308,"Precondition Failed":412,"Precondition Required":428,Processing:102,"Early Hints":103,"Upgrade Required":426,"Proxy Authentication Required":407,"Request Header Fields Too Large":431,"Request Timeout":408,"Request Entity Too Large":413,"Request-URI Too Long":414,"Requested Range Not Satisfiable":416,"Reset Content":205,"See Other":303,"Service Unavailable":503,"Switching Protocols":101,"Temporary Redirect":307,"Too Many Requests":429,Unauthorized:401,"Unavailable For Legal Reasons":451,"Unprocessable Entity":422,"Unsupported Media Type":415,"Use Proxy":305,"Misdirected Request":421};function Io(e){var t=OL[e.toString()];if(!t)throw new Error("Status code does not exist: "+e);return t}function L_(e){var t=FL[e];if(!t)throw new Error("Reason phrase does not exist: "+e);return t}var $_=Io;var Hh=function(){return Hh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0&&m>0){for(a=[],u=o.length;g>=0&&!d;)g==f?(a.push(g),f=o.indexOf(i,g+1)):a.length==1?d=[a.pop(),m]:((l=a.pop())=0?f:m;a.length&&(d=[u,p])}return d}e.exports=t,t.range=r},101(e,t,n){var r;e=n.nmd(e),(function(){var i=(e&&e.exports,typeof globalThis=="object"&&globalThis);i.global!==i&&i.window;var s=function(p){this.message=p};(s.prototype=new Error).name="InvalidCharacterError";var o=function(p){throw new s(p)},a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=/[\t\n\f\r ]/g,u={encode:function(p){p=String(p),/[^\0-\xFF]/.test(p)&&o("The string to be encoded contains characters outside of the Latin1 range.");for(var d,f,m,g,x=p.length%3,v="",_=-1,w=p.length-x;++_>18&63)+a.charAt(g>>12&63)+a.charAt(g>>6&63)+a.charAt(63&g);return x==2?(d=p.charCodeAt(_)<<8,f=p.charCodeAt(++_),v+=a.charAt((g=d+f)>>10)+a.charAt(g>>4&63)+a.charAt(g<<2&63)+"="):x==1&&(g=p.charCodeAt(_),v+=a.charAt(g>>2)+a.charAt(g<<4&63)+"=="),v},decode:function(p){var d=(p=String(p).replace(l,"")).length;d%4==0&&(d=(p=p.replace(/==?$/,"")).length),(d%4==1||/[^+a-zA-Z0-9/]/.test(p))&&o("Invalid character: the string to be decoded is not correctly encoded.");for(var f,m,g=0,x="",v=-1;++v>(-2*g&6)));return x},version:"1.0.0"};(r=function(){return u}.call(t,n,t,e))===void 0||(e.exports=r)})()},172(e,t){t.d=function(n){if(!n)return 0;for(var r=(n=n.toString()).length,i=n.length;i--;){var s=n.charCodeAt(i);56320<=s&&s<=57343&&i--,127>>32-i},rotr:function(r,i){return r<<32-i|r>>>i},endian:function(r){if(r.constructor==Number)return 16711935&n.rotl(r,8)|4278255360&n.rotl(r,24);for(var i=0;i0;r--)i.push(Math.floor(256*Math.random()));return i},bytesToWords:function(r){for(var i=[],s=0,o=0;s>>5]|=r[s]<<24-o%32;return i},wordsToBytes:function(r){for(var i=[],s=0;s<32*r.length;s+=8)i.push(r[s>>>5]>>>24-s%32&255);return i},bytesToHex:function(r){for(var i=[],s=0;s>>4).toString(16)),i.push((15&r[s]).toString(16));return i.join("")},hexToBytes:function(r){for(var i=[],s=0;s>>6*(3-a)&63)):i.push("=");return i.join("")},base64ToBytes:function(r){r=r.replace(/[^A-Z0-9+\/]/gi,"");for(var i=[],s=0,o=0;s>>6-2*o);return i}},e.exports=n},135(e){function t(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}e.exports=function(n){return n!=null&&(t(n)||(function(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&t(r.slice(0,0))})(n)||!!n._isBuffer)}},542(e,t,n){(function(){var r=n(298),i=n(526).utf8,s=n(135),o=n(526).bin,a=function(l,u){l.constructor==String?l=u&&u.encoding==="binary"?o.stringToBytes(l):i.stringToBytes(l):s(l)?l=Array.prototype.slice.call(l,0):Array.isArray(l)||l.constructor===Uint8Array||(l=l.toString());for(var p=r.bytesToWords(l),d=8*l.length,f=1732584193,m=-271733879,g=-1732584194,x=271733878,v=0;v>>24)|4278255360&(p[v]<<24|p[v]>>>8);p[d>>>5]|=128<>>9<<4)]=d;var _=a._ff,w=a._gg,E=a._hh,S=a._ii;for(v=0;v>>0,m=m+k>>>0,g=g+I>>>0,x=x+M>>>0}return r.endian([f,m,g,x])};a._ff=function(l,u,p,d,f,m,g){var x=l+(u&p|~u&d)+(f>>>0)+g;return(x<>>32-m)+u},a._gg=function(l,u,p,d,f,m,g){var x=l+(u&d|p&~d)+(f>>>0)+g;return(x<>>32-m)+u},a._hh=function(l,u,p,d,f,m,g){var x=l+(u^p^d)+(f>>>0)+g;return(x<>>32-m)+u},a._ii=function(l,u,p,d,f,m,g){var x=l+(p^(u|~d))+(f>>>0)+g;return(x<>>32-m)+u},a._blocksize=16,a._digestsize=16,e.exports=function(l,u){if(l==null)throw new Error("Illegal argument "+l);var p=r.wordsToBytes(a(l,u));return u&&u.asBytes?p:u&&u.asString?o.bytesToString(p):r.bytesToHex(p)}})()},285(e,t,n){var r=n(2);e.exports=function(_,w){if(!_)return[];var E=(w=w||{}).max==null?1/0:w.max;return _.substr(0,2)==="{}"&&(_="\\{\\}"+_.substr(2)),v((function(S){return S.split("\\\\").join(i).split("\\{").join(s).split("\\}").join(o).split("\\,").join(a).split("\\.").join(l)})(_),E,!0).map(p)};var i="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",o="\0CLOSE"+Math.random()+"\0",a="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function u(_){return parseInt(_,10)==_?parseInt(_,10):_.charCodeAt(0)}function p(_){return _.split(i).join("\\").split(s).join("{").split(o).join("}").split(a).join(",").split(l).join(".")}function d(_){if(!_)return[""];var w=[],E=r("{","}",_);if(!E)return _.split(",");var S=E.pre,A=E.body,k=E.post,I=S.split(",");I[I.length-1]+="{"+A+"}";var M=d(k);return k.length&&(I[I.length-1]+=M.shift(),I.push.apply(I,M)),w.push.apply(w,I),w}function f(_){return"{"+_+"}"}function m(_){return/^-?0\d/.test(_)}function g(_,w){return _<=w}function x(_,w){return _>=w}function v(_,w,E){var S=[],A=r("{","}",_);if(!A)return[_];var k=A.pre,I=A.post.length?v(A.post,w,!1):[""];if(/\$$/.test(A.pre))for(var M=0;M=0;if(!me&&!Ae)return A.post.match(/,(?!,).*\}/)?v(_=A.pre+"{"+A.body+o+A.post,w,!0):[_];if(me)$=A.body.split(/\.\./);else if(($=d(A.body)).length===1&&($=v($[0],w,!1).map(f)).length===1)return I.map((function(jo){return A.pre+$[0]+jo}));if(me){var _e=u($[0]),Oe=u($[1]),He=Math.max($[0].length,$[1].length),Fe=$.length==3?Math.max(Math.abs(u($[2])),1):1,z=g;Oe<_e&&(Fe*=-1,z=x);var O=$.some(m);W=[];for(var H=_e;z(H,Oe);H+=Fe){var oe;if(J)(oe=String.fromCharCode(H))==="\\"&&(oe="");else if(oe=String(H),O){var Ke=He-oe.length;if(Ke>0){var On=new Array(Ke+1).join("0");oe=H<0?"-"+On+oe.slice(1):On+oe}}W.push(oe)}}else{W=[];for(var ot=0;ot<$.length;ot++)W.push.apply(W,v($[ot],w,!1))}for(ot=0;ot2&&arguments[2]!==void 0?arguments[2]:function(){},f=p.split("."),m=f.length,g=function(_){var w=f[_];if(!u)return{v:void 0};if(w==="+"){if(Array.isArray(u))return{v:u.map((function(S,A){var k=f.slice(_+1);return k.length>0?a(S,k.join("."),d):d(u,A,f,_)}))};var E=f.slice(0,_).join(".");throw new Error("Object at wildcard (".concat(E,") is not an array"))}u=d(u,w,f,_)},x=0;x2&&arguments[2]!==void 0?arguments[2]:{};if(t(u)!="object"||u===null||p===void 0)return!1;if(typeof p=="number")return p in u;try{var f=!1;return a(u,p,(function(m,g,x,v){if(!l(x,v))return m&&m[g];f=d.own?m.hasOwnProperty(g):g in m})),f}catch(m){return!1}},hasOwn:function(u,p,d){return this.has(u,p,d||{own:!0})},isIn:function(u,p,d){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(t(u)!="object"||u===null||p===void 0)return!1;try{var m=!1,g=!1;return a(u,p,(function(x,v,_,w){return m=m||x===d||!!x&&x[v]===d,g=l(_,w)&&t(x)==="object"&&v in x,x&&x[v]})),f.validPath?m&&g:m}catch(x){return!1}},ObjectPrototypeMutationError:o}},47(e,t,n){var r=n(410),i=function(u){return typeof u=="string"};function s(u,p){for(var d=[],f=0;f=-1&&!p;d--){var f=d>=0?arguments[d]:process.cwd();if(!i(f))throw new TypeError("Arguments to path.resolve must be strings");f&&(u=f+"/"+u,p=f.charAt(0)==="/")}return(p?"/":"")+(u=s(u.split("/"),!p).join("/"))||"."},a.normalize=function(u){var p=a.isAbsolute(u),d=u.substr(-1)==="/";return(u=s(u.split("/"),!p).join("/"))||p||(u="."),u&&d&&(u+="/"),(p?"/":"")+u},a.isAbsolute=function(u){return u.charAt(0)==="/"},a.join=function(){for(var u="",p=0;p=0&&w[S]==="";S--);return E>S?[]:w.slice(E,S+1)}u=a.resolve(u).substr(1),p=a.resolve(p).substr(1);for(var f=d(u.split("/")),m=d(p.split("/")),g=Math.min(f.length,m.length),x=g,v=0;v=2&&(S=S.slice(2)):x(k)?S=A[4]:k?I&&(S=S.slice(2)):U>=2&&x(E.protocol)&&(S=A[4]),{protocol:k,slashes:I||x(k),slashesCount:U,rest:S}}function _(w,E,S){if(w=(w=d(w)).replace(o,""),!(this instanceof _))return new _(w,E,S);var A,k,I,M,U,$,W=f.slice(),le=typeof E,J=this,me=0;for(le!=="object"&&le!=="string"&&(S=E,E=null),S&&typeof S!="function"&&(S=i.parse),A=!(k=v(w||"",E=g(E))).protocol&&!k.slashes,J.slashes=k.slashes||A&&E.slashes,J.protocol=k.protocol||E.protocol||"",w=k.rest,(k.protocol==="file:"&&(k.slashesCount!==2||p.test(w))||!k.slashes&&(k.protocol||k.slashesCount<2||!x(J.protocol)))&&(W[3]=[/(.*)/,"pathname"]);me{var t=e&&e.__esModule?()=>e.default:()=>e;return st.d(t,{a:t}),t},st.d=(e,t)=>{for(var n in t)st.o(t,n)&&!st.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},st.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),st.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var Ewe=st(737),Dwe=st.n(Ewe);function U_(e){if(!Q_(e))throw new Error("Parameter was not an error")}function Q_(e){return!!e&&typeof e=="object"&&(t=e,Object.prototype.toString.call(t)==="[object Error]")||e instanceof Error;var t}var Er=class e extends Error{constructor(t,n){let r=[...arguments],{options:i,shortMessage:s}=(function(a){let l,u="";if(a.length===0)l={};else if(Q_(a[0]))l={cause:a[0]},u=a.slice(1).join(" ")||"";else if(a[0]&&typeof a[0]=="object")l=Object.assign({},a[0]),u=a.slice(1).join(" ")||"";else{if(typeof a[0]!="string")throw new Error("Invalid arguments passed to Layerr");l={},u=u=a.join(" ")||""}return{options:l,shortMessage:u}})(r),o=s;if(i.cause&&(o=`${o}: ${i.cause.message}`),super(o),this.message=o,i.name&&typeof i.name=="string"?this.name=i.name:this.name="Layerr",i.cause&&Object.defineProperty(this,"_cause",{value:i.cause}),Object.defineProperty(this,"_info",{value:{}}),i.info&&typeof i.info=="object"&&Object.assign(this._info,i.info),Error.captureStackTrace){let a=i.constructorOpt||this.constructor;Error.captureStackTrace(this,a)}}static cause(t){return U_(t),t._cause&&Q_(t._cause)?t._cause:null}static fullStack(t){var r;U_(t);let n=e.cause(t);return n?`${t.stack} +caused by: ${e.fullStack(n)}`:(r=t.stack)!=null?r:""}static info(t){U_(t);let n={},r=e.cause(t);return r&&Object.assign(n,e.info(r)),t._info&&Object.assign(n,t._info),n}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}},Swe=st(47),Xh=st.n(Swe),IL="__PATH_SEPARATOR_POSIX__",PL="__PATH_SEPARATOR_WINDOWS__";function lt(e){try{let t=e.replace(/\//g,IL).replace(/\\\\/g,PL);return encodeURIComponent(t).split(PL).join("\\\\").split(IL).join("/")}catch(t){throw new Er(t,"Failed encoding path")}}function NL(e){return e.startsWith("/")?e:"/"+e}function Ql(e){let t=e;return t[0]!=="/"&&(t="/"+t),/^.+\/$/.test(t)&&(t=t.substr(0,t.length-1)),t}function Cwe(e){let t=new(Dwe())(e).pathname;return t.length<=0&&(t="/"),Ql(t)}function pt(){for(var e=arguments.length,t=new Array(e),n=0;n1){var s=r.shift();r[0]=s+r[0]}r[0].match(/^file:\/\/\//)?r[0]=r[0].replace(/^([^/:]+):\/*/,"$1:///"):r[0]=r[0].replace(/^([^/:]+):\/*/,"$1://");for(var o=0;o0&&(a=a.replace(/^[\/]+/,"")),a=o0?"?":"")+u.join("&")})(typeof arguments[0]=="object"?arguments[0]:[].slice.call(arguments))})(t.reduce(((r,i,s)=>((s===0||i!=="/"||i==="/"&&r[r.length-1]!=="/")&&r.push(i),r)),[]))}var Twe=st(542),Vl=st.n(Twe);function ML(e,t){let n=e.url.replace("//",""),r=n.indexOf("/")==-1?"/":n.slice(n.indexOf("/")),i=e.method?e.method.toUpperCase():"GET",s=!!/(^|,)\s*auth\s*($|,)/.test(t.qop)&&"auth",o=`00000000${t.nc}`.slice(-8),a=(function(f,m,g,x,v,_,w){let E=w||Vl()(`${m}:${g}:${x}`);return f&&f.toLowerCase()==="md5-sess"?Vl()(`${E}:${v}:${_}`):E})(t.algorithm,t.username,t.realm,t.password,t.nonce,t.cnonce,t.ha1),l=Vl()(`${i}:${r}`),u=s?Vl()(`${a}:${t.nonce}:${o}:${t.cnonce}:${s}:${l}`):Vl()(`${a}:${t.nonce}:${l}`),p={username:t.username,realm:t.realm,nonce:t.nonce,uri:r,qop:s,response:u,nc:o,cnonce:t.cnonce,algorithm:t.algorithm,opaque:t.opaque},d=[];for(let f in p)p[f]&&(f==="qop"||f==="nc"||f==="algorithm"?d.push(`${f}=${p[f]}`):d.push(`${f}="${p[f]}"`));return`Digest ${d.join(", ")}`}function c6(e){return(e.headers&&e.headers.get("www-authenticate")||"").split(/\s/)[0].toLowerCase()==="digest"}var Awe=st(101),u6=st.n(Awe);function LL(e){return u6().decode(e)}function $L(e,t){var n;return`Basic ${n=`${e}:${t}`,u6().encode(n)}`}var Jl=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:typeof window!="undefined"?window:globalThis,Rwe=Jl.fetch.bind(Jl),zat=(Jl.Headers,Jl.Request),qat=Jl.Response,Xt=(function(e){return e.Auto="auto",e.Digest="digest",e.None="none",e.Password="password",e.Token="token",e})({}),As=(function(e){return e.DataTypeNoLength="data-type-no-length",e.InvalidAuthType="invalid-auth-type",e.InvalidOutputFormat="invalid-output-format",e.LinkUnsupportedAuthType="link-unsupported-auth",e.InvalidUpdateRange="invalid-update-range",e.NotSupported="not-supported",e})({});function l6(e,t,n,r,i){switch(e.authType){case Xt.Auto:t&&n&&(e.headers.Authorization=$L(t,n));break;case Xt.Digest:e.digest=(function(o,a,l){return{username:o,password:a,ha1:l,nc:0,algorithm:"md5",hasDigestAuth:!1}})(t,n,i);break;case Xt.None:break;case Xt.Password:e.headers.Authorization=$L(t,n);break;case Xt.Token:e.headers.Authorization=`${(s=r).token_type} ${s.access_token}`;break;default:throw new Er({info:{code:As.InvalidAuthType}},`Invalid auth type: ${e.authType}`)}var s}st(345),st(800);var UL="@@HOTPATCHER",kwe=()=>{};function j_(e){return{original:e,methods:[e],final:!1}}var J_=class{constructor(){this._configuration={registry:{},getEmptyAction:"null"},this.__type__=UL}get configuration(){return this._configuration}get getEmptyAction(){return this.configuration.getEmptyAction}set getEmptyAction(t){this.configuration.getEmptyAction=t}control(t){let n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!t||t.__type__!==UL)throw new Error("Failed taking control of target HotPatcher instance: Invalid type or object");return Object.keys(t.configuration.registry).forEach((r=>{this.configuration.registry.hasOwnProperty(r)?n&&(this.configuration.registry[r]=Object.assign({},t.configuration.registry[r])):this.configuration.registry[r]=Object.assign({},t.configuration.registry[r])})),t._configuration=this.configuration,this}execute(t){let n=this.get(t)||kwe;for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s0;)u=[i.shift().apply(p,u)];return u[0]}})(...n.methods)}isPatched(t){return!!this.configuration.registry[t]}patch(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{chain:i=!1}=r;if(this.configuration.registry[t]&&this.configuration.registry[t].final)throw new Error(`Failed patching '${t}': Method marked as being final`);if(typeof n!="function")throw new Error(`Failed patching '${t}': Provided method is not a function`);if(i)this.configuration.registry[t]?this.configuration.registry[t].methods.push(n):this.configuration.registry[t]=j_(n);else if(this.isPatched(t)){let{original:s}=this.configuration.registry[t];this.configuration.registry[t]=Object.assign(j_(n),{original:s})}else this.configuration.registry[t]=j_(n);return this}patchInline(t,n){this.isPatched(t)||this.patch(t,n);for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s1?n-1:0),i=1;i{this.patch(t,s,{chain:!0})})),this}restore(t){if(!this.isPatched(t))throw new Error(`Failed restoring method: No method present for key: ${t}`);if(typeof this.configuration.registry[t].original!="function")throw new Error(`Failed restoring method: Original method not found or of invalid type for key: ${t}`);return this.configuration.registry[t].methods=[this.configuration.registry[t].original],this}setFinal(t){if(!this.configuration.registry.hasOwnProperty(t))throw new Error(`Failed marking '${t}' as final: No method found for key`);return this.configuration.registry[t].final=!0,this}},z_=null;function gw(){return z_||(z_=new J_),z_}function Zh(e){return(function(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!="[object Object]")return!1;if(Object.getPrototypeOf(t)===null)return!0;let n=t;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(t)===n})(e)?Object.assign({},e):Object.setPrototypeOf(Object.assign({},e),Object.getPrototypeOf(e))}function jL(){for(var e=arguments.length,t=new Array(e),n=0;n0;){let s=i.shift();r=r?p6(r,s):Zh(s)}return r}function p6(e,t){let n=Zh(e);return Object.keys(t).forEach((r=>{n.hasOwnProperty(r)?Array.isArray(t[r])?n[r]=Array.isArray(n[r])?[...n[r],...t[r]]:[...t[r]]:typeof t[r]=="object"&&t[r]?n[r]=typeof n[r]=="object"&&n[r]?p6(n[r],t[r]):Zh(t[r]):n[r]=t[r]:n[r]=t[r]})),n}function Owe(e){let t={};for(let n of e.keys())t[n]=e.get(n);return t}function ew(){for(var e=arguments.length,t=new Array(e),n=0;n(Object.keys(s).forEach((o=>{let a=o.toLowerCase();r.hasOwnProperty(a)?i[r[a]]=s[o]:(r[a]=o,i[o]=s[o])})),i)),{})}st(805);var Fwe=typeof ArrayBuffer=="function",{toString:Bwe}=Object.prototype;function d6(e){return Fwe&&(e instanceof ArrayBuffer||Bwe.call(e)==="[object ArrayBuffer]")}function f6(e){return e!=null&&e.constructor!=null&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function yw(e){return function(){for(var t=[],n=0;nt.patchInline("fetch",Rwe,n.url,(function(r){let i={},s={method:r.method};if(r.headers&&(i=ew(i,r.headers)),r.data!==void 0){let[o,a]=(function(l){if(typeof l=="string")return[l,{}];if(f6(l))return[l,{}];if(d6(l))return[l,{}];if(l&&typeof l=="object")return[JSON.stringify(l),{"content-type":"application/json"}];throw new Error("Unable to convert request body: Unexpected body type: "+typeof l)})(r.data);s.body=o,i=ew(i,a)}return r.signal&&(s.signal=r.signal),r.withCredentials&&(s.credentials="include"),s.headers=i,s})(n))),e)}var Pwe=st(285),Jh=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},Nwe={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Wl=e=>e.replace(/[[\]\\-]/g,"\\$&"),zL=e=>e.join(""),Mwe=(e,t)=>{let n=t;if(e.charAt(n)!=="[")throw new Error("not in a brace expression");let r=[],i=[],s=n+1,o=!1,a=!1,l=!1,u=!1,p=n,d="";e:for(;sd?r.push(Wl(d)+"-"+Wl(x)):x===d&&r.push(Wl(x)),d="",s++):e.startsWith("-]",s+1)?(r.push(Wl(x+"-")),s+=2):e.startsWith("-",s+1)?(d=x,s+=2):(r.push(Wl(x)),s++)}else l=!0,s++}else u=!0,s++}if(p1&&arguments[1]!==void 0?arguments[1]:{};return t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")},qn,Lwe=new Set(["!","?","+","*","@"]),nw=e=>Lwe.has(e),qL=e=>nw(e.type),$we=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),Uwe=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),jwe=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),HL=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),q_="(?!\\.)",zwe=new Set(["[","."]),qwe=new Set(["..","."]),Hwe=new Set("().*{}+?[]^$\\!"),xw="[^/]",GL=xw+"*?",VL=xw+"+?",Ot,qt,$i,de,yt,Ss,Mo,Cs,ui,li,kc,Me,h6,Ts,Wh,g6,rw,Kh,y6,iw,x6,v6,b6,Yh,sw,_6,Ac=class{constructor(t,n){Ht(this,Me);C(this,"type");Ht(this,Ot);Ht(this,qt);Ht(this,$i,!1);Ht(this,de,[]);Ht(this,yt);Ht(this,Ss);Ht(this,Mo);Ht(this,Cs,!1);Ht(this,ui);Ht(this,li);Ht(this,kc,!1);let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.type=t,t&&$e(this,qt,!0),$e(this,yt,n),$e(this,Ot,Y(this,yt)?Y(Y(this,yt),Ot):this),$e(this,ui,Y(this,Ot)===this?r:Y(Y(this,Ot),ui)),$e(this,Mo,Y(this,Ot)===this?[]:Y(Y(this,Ot),Mo)),t!=="!"||Y(Y(this,Ot),Cs)||Y(this,Mo).push(this),$e(this,Ss,Y(this,yt)?Y(Y(this,yt),de).length:0)}get hasMagic(){if(Y(this,qt)!==void 0)return Y(this,qt);for(let t of Y(this,de))if(typeof t!="string"&&(t.type||t.hasMagic))return $e(this,qt,!0);return Y(this,qt)}toString(){return Y(this,li)!==void 0?Y(this,li):this.type?$e(this,li,this.type+"("+Y(this,de).map((t=>String(t))).join("|")+")"):$e(this,li,Y(this,de).map((t=>String(t))).join(""))}push(){for(var t=arguments.length,n=new Array(t),r=0;rtypeof r=="string"?r:r.toJSON())):[this.type,...Y(this,de).map((r=>r.toJSON()))];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===Y(this,Ot)||Y(Y(this,Ot),Cs)&&((n=Y(this,yt))==null?void 0:n.type)==="!")&&t.push({}),t}isStart(){var n;if(Y(this,Ot)===this)return!0;if(!((n=Y(this,yt))!=null&&n.isStart()))return!1;if(Y(this,Ss)===0)return!0;let t=Y(this,yt);for(let r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=new qn(null,void 0,n);return Be(i=qn,Ts,Wh).call(i,t,r,0,n,0),r}toMMPattern(){if(this!==Y(this,Ot))return Y(this,Ot).toMMPattern();let t=this.toString(),[n,r,i,s]=this.toRegExpSource();if(!(i||Y(this,qt)||Y(this,ui).nocase&&!Y(this,ui).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return r;let o=(Y(this,ui).nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${n}$`,o),{_src:n,_glob:t})}get options(){return Y(this,ui)}toRegExpSource(t){var l;let n=t!=null?t:!!Y(this,ui).dot;if(Y(this,Ot)===this&&(Be(this,Me,Yh).call(this),Be(this,Me,h6).call(this)),!qL(this)){let u=this.isStart()&&this.isEnd(),p=Y(this,de).map((m=>{var w;let[g,x,v,_]=typeof m=="string"?Be(w=qn,Ts,_6).call(w,m,Y(this,qt),u):m.toRegExpSource(t);return $e(this,qt,Y(this,qt)||v),$e(this,$i,Y(this,$i)||_),g})).join(""),d="";if(this.isStart()&&typeof Y(this,de)[0]=="string"&&(Y(this,de).length!==1||!qwe.has(Y(this,de)[0]))){let m=zwe,g=n&&m.has(p.charAt(0))||p.startsWith("\\.")&&m.has(p.charAt(2))||p.startsWith("\\.\\.")&&m.has(p.charAt(4)),x=!n&&!t&&m.has(p.charAt(0));d=g?"(?!(?:^|/)\\.\\.?(?:$|/))":x?q_:""}let f="";return this.isEnd()&&Y(Y(this,Ot),Cs)&&((l=Y(this,yt))==null?void 0:l.type)==="!"&&(f="(?:$|\\/)"),[d+p+f,Xl(p),$e(this,qt,!!Y(this,qt)),Y(this,$i)]}let r=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=Be(this,Me,sw).call(this,n);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let u=this.toString(),p=this;return $e(p,de,[u]),p.type=null,$e(p,qt,void 0),[u,Xl(this.toString()),!1,!1]}let o=!r||t||n?"":Be(this,Me,sw).call(this,!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";return a=this.type==="!"&&Y(this,kc)?(this.isStart()&&!n?q_:"")+VL:i+s+(this.type==="!"?"))"+(!this.isStart()||n||t?"":q_)+GL+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`),[a,Xl(s),$e(this,qt,!!Y(this,qt)),Y(this,$i)]}};Ot=new WeakMap,qt=new WeakMap,$i=new WeakMap,de=new WeakMap,yt=new WeakMap,Ss=new WeakMap,Mo=new WeakMap,Cs=new WeakMap,ui=new WeakMap,li=new WeakMap,kc=new WeakMap,Me=new WeakSet,h6=function(){if(this!==Y(this,Ot))throw new Error("should only call on root");if(Y(this,Cs))return this;let t;for(this.toString(),$e(this,Cs,!0);t=Y(this,Mo).pop();){if(t.type!=="!")continue;let n=t,r=Y(n,yt);for(;r;){for(let i=Y(n,Ss)+1;!r.type&&i1&&arguments[1]!==void 0?arguments[1]:$we;if(!t||typeof t!="object"||t.type!==null||Y(t,de).length!==1||this.type===null)return!1;let r=Y(t,de)[0];return!(!r||typeof r!="object"||r.type===null)&&Be(this,Me,Kh).call(this,r.type,n)},Kh=function(t){var r;return!!((r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:jwe).get(this.type))!=null&&r.includes(t))},y6=function(t,n){let r=Y(t,de)[0],i=new qn(null,r,this.options);Y(i,de).push(""),r.push(i),Be(this,Me,iw).call(this,t,n)},iw=function(t,n){let r=Y(t,de)[0];Y(this,de).splice(n,1,...Y(r,de));for(let i of Y(r,de))typeof i=="object"&&$e(i,yt,this);$e(this,li,void 0)},x6=function(t){let n=HL.get(this.type);return!!(n!=null&&n.has(t))},v6=function(t){if(!t||typeof t!="object"||t.type!==null||Y(t,de).length!==1||this.type===null||Y(this,de).length!==1)return!1;let n=Y(t,de)[0];return!(!n||typeof n!="object"||n.type===null)&&Be(this,Me,x6).call(this,n.type)},b6=function(t){let n=HL.get(this.type),r=Y(t,de)[0],i=n==null?void 0:n.get(r.type);if(!i)return!1;$e(this,de,Y(r,de));for(let s of Y(this,de))typeof s=="object"&&$e(s,yt,this);this.type=i,$e(this,li,void 0),$e(this,kc,!1)},Yh=function(){var t,n;if(qL(this)){let r=0,i=!1;do{i=!0;for(let s=0;s{if(typeof n=="string")throw new Error("string type in extglob ast??");let[r,i,s,o]=n.toRegExpSource(t);return $e(this,$i,Y(this,$i)||o),r})).filter((n=>!(this.isStart()&&this.isEnd()&&!n))).join("|")},_6=function(t,n){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],i=!1,s="",o=!1,a=!1;for(let l=0;l2&&arguments[2]!==void 0?arguments[2]:{};return Jh(t),!(!n.nocomment&&t.charAt(0)==="#")&&new Oc(t,n).match(e)},Gwe=/^\*+([^+@!?\*\[\(]*)$/,Vwe=e=>t=>!t.startsWith(".")&&t.endsWith(e),Wwe=e=>t=>t.endsWith(e),Kwe=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),Ywe=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Xwe=/^\*+\.\*+$/,Zwe=e=>!e.startsWith(".")&&e.includes("."),Qwe=e=>e!=="."&&e!==".."&&e.includes("."),Jwe=/^\.\*+$/,eEe=e=>e!=="."&&e!==".."&&e.startsWith("."),tEe=/^\*+$/,nEe=e=>e.length!==0&&!e.startsWith("."),rEe=e=>e.length!==0&&e!=="."&&e!=="..",iEe=/^\?+([^+@!?\*\[\(]*)?$/,sEe=e=>{let[t,n=""]=e,r=w6([t]);return n?(n=n.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(n)):r},oEe=e=>{let[t,n=""]=e,r=E6([t]);return n?(n=n.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(n)):r},aEe=e=>{let[t,n=""]=e,r=E6([t]);return n?i=>r(i)&&i.endsWith(n):r},cEe=e=>{let[t,n=""]=e,r=w6([t]);return n?i=>r(i)&&i.endsWith(n):r},w6=e=>{let[t]=e,n=t.length;return r=>r.length===n&&!r.startsWith(".")},E6=e=>{let[t]=e,n=t.length;return r=>r.length===n&&r!=="."&&r!==".."},D6=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";pn.sep=D6==="win32"?"\\":"/";var ln=Symbol("globstar **");pn.GLOBSTAR=ln,pn.filter=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return n=>pn(n,e,t)};var _r=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.assign({},e,t)};pn.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return pn;let t=pn;return Object.assign((function(n,r){return t(n,r,_r(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))}),{Minimatch:class extends t.Minimatch{constructor(n){super(n,_r(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}))}static defaults(n){return t.defaults(_r(e,n)).Minimatch}},AST:class extends t.AST{constructor(n,r){super(n,r,_r(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))}static fromGlob(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.AST.fromGlob(n,_r(e,r))}},unescape:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.unescape(n,_r(e,r))},escape:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.escape(n,_r(e,r))},filter:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.filter(n,_r(e,r))},defaults:n=>t.defaults(_r(e,n)),makeRe:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.makeRe(n,_r(e,r))},braceExpand:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.braceExpand(n,_r(e,r))},match:function(n,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t.match(n,r,_r(e,i))},sep:t.sep,GLOBSTAR:ln})};var S6=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Jh(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Pwe(e)};pn.braceExpand=S6,pn.makeRe=function(e){return new Oc(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).makeRe()},pn.match=function(e,t){let n=new Oc(t,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{});return e=e.filter((r=>n.match(r))),n.options.nonull&&!e.length&&e.push(t),e};var WL=/[?*]|[+@!]\(.*?\)|\[|\]/,tr,C6,ow,Sc,Oc=class{constructor(t){Ht(this,tr);C(this,"options");C(this,"set");C(this,"pattern");C(this,"windowsPathsNoEscape");C(this,"nonegate");C(this,"negate");C(this,"comment");C(this,"empty");C(this,"preserveMultipleSlashes");C(this,"partial");C(this,"globSet");C(this,"globParts");C(this,"nocase");C(this,"isWindows");C(this,"platform");C(this,"windowsNoMagicRoot");C(this,"maxGlobstarRecursion");C(this,"regexp");var r;let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Jh(t),n=n||{},this.options=n,this.maxGlobstarRecursion=(r=n.maxGlobstarRecursion)!=null?r:200,this.pattern=t,this.platform=n.platform||D6,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!n.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!n.nonegate,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=n.windowsNoMagicRoot!==void 0?n.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let n of t)if(typeof n!="string")return!0;return!1}debug(){}make(){let t=this.pattern,n=this.options;if(!n.nocomment&&t.charAt(0)==="#")return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],n.debug&&(this.debug=function(){return console.error(...arguments)}),this.debug(this.pattern,this.globSet);let r=this.globSet.map((s=>this.slashSplit(s)));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let i=this.globParts.map(((s,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=!(s[0]!==""||s[1]!==""||s[2]!=="?"&&WL.test(s[2])||WL.test(s[3])),u=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map((p=>this.parse(p)))];if(u)return[s[0],...s.slice(1).map((p=>this.parse(p)))]}return s.map((l=>this.parse(l)))}));if(this.debug(this.pattern,i),this.set=i.filter((s=>s.indexOf(!1)===-1)),this.isWindows)for(let s=0;s=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=n>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((n=>{let r=-1;for(;(r=n.indexOf("**",r+1))!==-1;){let i=r;for(;n[i+1]==="**";)i++;i!==r&&n.splice(r,i-r)}return n}))}levelOneOptimize(t){return t.map((n=>(n=n.reduce(((r,i)=>{let s=r[r.length-1];return i==="**"&&s==="**"?r:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(r.pop(),r):(r.push(i),r)}),[])).length===0?[""]:n))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let n=!1;do{if(n=!1,!this.preserveMultipleSlashes){for(let i=1;ii&&r.splice(i+1,o-i);let a=r[i+1],l=r[i+2],u=r[i+3];if(a!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;n=!0,r.splice(i,1);let p=r.slice(0);p[i]="**",t.push(p),i--}if(!this.preserveMultipleSlashes){for(let o=1;on.length))}partsMatch(t,n){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],i=0,s=0,o=[],a="";for(;i2&&arguments[2]!==void 0&&arguments[2],i=0,s=0;if(this.isWindows){let a=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),l=!a&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),u=typeof n[0]=="string"&&/^[a-z]:$/i.test(n[0]),p=l?3:a?0:void 0,d=!u&&n[0]===""&&n[1]===""&&n[2]==="?"&&typeof n[3]=="string"&&/^[a-z]:$/i.test(n[3])?3:u?0:void 0;if(typeof p=="number"&&typeof d=="number"){let[f,m]=[t[p],n[d]];f.toLowerCase()===m.toLowerCase()&&(n[d]=f,s=d,i=p)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(t=this.levelTwoFileOptimize(t)),n.includes(ln)?Be(this,tr,C6).call(this,t,n,r,i,s):Be(this,tr,Sc).call(this,t,n,r,i,s)}braceExpand(){return S6(this.pattern,this.options)}parse(t){Jh(t);let n=this.options;if(t==="**")return ln;if(t==="")return"";let r,i=null;(r=t.match(tEe))?i=n.dot?rEe:nEe:(r=t.match(Gwe))?i=(n.nocase?n.dot?Ywe:Kwe:n.dot?Wwe:Vwe)(r[1]):(r=t.match(iEe))?i=(n.nocase?n.dot?oEe:sEe:n.dot?aEe:cEe)(r):(r=t.match(Xwe))?i=n.dot?Qwe:Zwe:(r=t.match(Jwe))&&(i=eEe);let s=Ac.fromGlob(t,this.options).toMMPattern();return i&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let n=this.options,r=n.noglobstar?"[^/]*?":n.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",i=new Set(n.nocase?["i"]:[]),s=t.map((l=>{let u=l.map((p=>{if(p instanceof RegExp)for(let d of p.flags.split(""))i.add(d);return typeof p=="string"?p.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):p===ln?ln:p._src}));return u.forEach(((p,d)=>{let f=u[d+1],m=u[d-1];p===ln&&m!==ln&&(m===void 0?f!==void 0&&f!==ln?u[d+1]="(?:\\/|"+r+"\\/)?"+f:u[d]=r:f===void 0?u[d-1]=m+"(?:\\/|"+r+")?":f!==ln&&(u[d-1]=m+"(?:\\/|\\/"+r+"\\/)"+f,u[d+1]=ln))})),u.filter((p=>p!==ln)).join("/")})).join("|"),[o,a]=t.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch(l){this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.partial;if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&n)return!0;let r=this.options;this.isWindows&&(t=t.split("\\").join("/"));let i=this.slashSplit(t);this.debug(this.pattern,"split",i);let s=this.set;this.debug(this.pattern,"set",s);let o=i[i.length-1];if(!o)for(let a=i.length-2;!o&&a>=0;a--)o=i[a];for(let a=0;at.length)return!1;let w=t.length-p.length;if(Be(this,tr,Sc).call(this,t,p,r,w,0))d=p.length;else{if(t[t.length-1]!==""||i+p.length===t.length||(w--,!Be(this,tr,Sc).call(this,t,p,r,w,0)))return!1;d=p.length+1}}if(!u.length){let w=!!d;for(let E=i;E1&&arguments[1]!==void 0?arguments[1]:""}Invalid response: ${e.status} ${e.statusText}`);return t.status=e.status,t.response=e,t}function It(e,t){let{status:n}=t;if(n===401&&e.digest)return t;if(n>=400)throw vw(t);return t}function Fc(e,t){return arguments.length>2&&arguments[2]!==void 0&&arguments[2]?{data:t,headers:e.headers?Owe(e.headers):{},status:e.status,statusText:e.statusText}:t}pn.AST=Ac,pn.Minimatch=Oc,pn.escape=function(e){let{windowsPathsNoEscape:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&")},pn.unescape=Xl;var uEe=(KL=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=Bt({url:pt(e.remoteURL,lt(t)),method:"COPY",headers:{Destination:pt(e.remoteURL,lt(n)),Overwrite:r.overwrite===!1?"F":"T",Depth:r.shallow?"0":"infinity"}},e,r);return o=function(a){It(e,a)},(s=Ft(i,e))&&s.then||(s=Promise.resolve(s)),o?s.then(o):s;var s,o},function(){for(var e=[],t=0;tbw.includes(e)?"__"+e:e,pEe={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:R6};function dEe(e,t){if(typeof e!="string")return;let n=e.toLowerCase();if(bw.some((r=>n===r.toLowerCase())))throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);if(A6.some((r=>n===r.toLowerCase())))throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function k6(e,t){var n,r,i,s,o,a,l,u;return typeof e=="boolean"?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:"all"}:typeof e=="object"&&e!==null?{enabled:e.enabled!==!1,maxEntitySize:Math.max(1,(n=e.maxEntitySize)!=null?n:1e4),maxExpansionDepth:Math.max(1,(r=e.maxExpansionDepth)!=null?r:1e4),maxTotalExpansions:Math.max(1,(i=e.maxTotalExpansions)!=null?i:1/0),maxExpandedLength:Math.max(1,(s=e.maxExpandedLength)!=null?s:1e5),maxEntityCount:Math.max(1,(o=e.maxEntityCount)!=null?o:1e3),allowedTags:(a=e.allowedTags)!=null?a:null,tagFilter:(l=e.tagFilter)!=null?l:null,appliesTo:(u=e.appliesTo)!=null?u:"all"}:k6(!0)}var fEe=function(e){let t=Object.assign({},pEe,e),n=[{value:t.attributeNamePrefix,name:"attributeNamePrefix"},{value:t.attributesGroupName,name:"attributesGroupName"},{value:t.textNodeName,name:"textNodeName"},{value:t.cdataPropName,name:"cdataPropName"},{value:t.commentPropName,name:"commentPropName"}];for(let{value:r,name:i}of n)r&&dEe(r,i);return t.onDangerousProperty===null&&(t.onDangerousProperty=R6),t.processEntities=k6(t.processEntities,t.htmlEntities),t.unpairedTagsSet=new Set(t.unpairedTags),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map((r=>typeof r=="string"&&r.startsWith("*.")?".."+r.substring(2):r))),t},aw;aw=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");var pi=class{constructor(t){this.tagname=t,this.child=[],this[":@"]=Object.create(null)}add(t,n){t==="__proto__"&&(t="#__proto__"),this.child.push({[t]:n})}addChild(t,n){t.tagname==="__proto__"&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child}),n!==void 0&&(this.child[this.child.length-1][aw]={startIndex:n})}static getMetaDataSymbol(){return aw}},cw=class{constructor(t){this.suppressValidationErr=!t,this.options=t}readDocType(t,n){let r=Object.create(null),i=0;if(t[n+3]!=="O"||t[n+4]!=="C"||t[n+5]!=="T"||t[n+6]!=="Y"||t[n+7]!=="P"||t[n+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{n+=9;let s=1,o=!1,a=!1,l="";for(;n"){if(a?t[n-1]==="-"&&t[n-2]==="-"&&(a=!1,s--):s--,s===0)break}else t[n]==="["?o=!0:l+=t[n];else{if(o&&Po(t,"!ENTITY",n)){let u,p;if(n+=7,[u,p,n]=this.readEntityExp(t,n+1,this.suppressValidationErr),p.indexOf("&")===-1){if(this.options.enabled!==!1&&this.options.maxEntityCount!=null&&i>=this.options.maxEntityCount)throw new Error(`Entity count (${i+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);r[u]=p,i++}}else if(o&&Po(t,"!ELEMENT",n)){n+=8;let{index:u}=this.readElementExp(t,n+1);n=u}else if(o&&Po(t,"!ATTLIST",n))n+=8;else if(o&&Po(t,"!NOTATION",n)){n+=9;let{index:u}=this.readNotationExp(t,n+1,this.suppressValidationErr);n=u}else{if(!Po(t,"!--",n))throw new Error("Invalid DOCTYPE");a=!0}s++,l=""}if(s!==0)throw new Error("Unclosed DOCTYPE")}return{entities:r,i:n}}readEntityExp(t,n){let r=n=zn(t,n);for(;nthis.options.maxEntitySize)throw new Error(`Entity "${i}" size (${s.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[i,s,--n]}readNotationExp(t,n){let r=n=zn(t,n);for(;n{for(;t0?t[t.length-1].tag:void 0}getCurrentNamespace(){let t=this._matcher.path;return t.length>0?t[t.length-1].namespace:void 0}getAttrValue(t){var r;let n=this._matcher.path;if(n.length!==0)return(r=n[n.length-1].values)==null?void 0:r[t]}hasAttr(t){let n=this._matcher.path;if(n.length===0)return!1;let r=n[n.length-1];return r.values!==void 0&&t in r.values}getPosition(){var n;let t=this._matcher.path;return t.length===0?-1:(n=t[t.length-1].position)!=null?n:0}getCounter(){var n;let t=this._matcher.path;return t.length===0?-1:(n=t[t.length-1].counter)!=null?n:0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(t){let n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return this._matcher.toString(t,n)}toArray(){return this._matcher.path.map((t=>t.tag))}matches(t){return this._matcher.matches(t)}matchesAny(t){return t.matchesAny(this._matcher)}},ep=class{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.separator=t.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new uw(this)}push(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let i=this.path.length;this.siblingStacks[i]||(this.siblingStacks[i]=new Map);let s=this.siblingStacks[i],o=r?`${r}:${t}`:t,a=s.get(o)||0,l=0;for(let p of s.values())l+=p;s.set(o,a+1);let u={tag:t,position:l,counter:a};r!=null&&(u.namespace=r),n!=null&&(u.values=n),this.path.push(u)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let t=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),t}updateCurrent(t){if(this.path.length>0){let n=this.path[this.path.length-1];t!=null&&(n.values=t)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(t){var n;if(this.path.length!==0)return(n=this.path[this.path.length-1].values)==null?void 0:n[t]}hasAttr(t){if(this.path.length===0)return!1;let n=this.path[this.path.length-1];return n.values!==void 0&&t in n.values}getPosition(){var t;return this.path.length===0?-1:(t=this.path[this.path.length-1].position)!=null?t:0}getCounter(){var t;return this.path.length===0?-1:(t=this.path[this.path.length-1].counter)!=null?t:0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(t){let n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=t||this.separator;if(r===this.separator&&n===!0){if(this._pathStringCache!==null)return this._pathStringCache;let i=this.path.map((s=>s.namespace?`${s.namespace}:${s.tag}`:s.tag)).join(r);return this._pathStringCache=i,i}return this.path.map((i=>n&&i.namespace?`${i.namespace}:${i.tag}`:i.tag)).join(r)}toArray(){return this.path.map((t=>t.tag))}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(t){let n=t.segments;return n.length!==0&&(t.hasDeepWildcard()?this._matchWithDeepWildcard(n):this._matchSimple(n))}_matchSimple(t){if(this.path.length!==t.length)return!1;for(let n=0;n=0&&n>=0;){let i=t[r];if(i.type==="deep-wildcard"){if(r--,r<0)return!0;let s=t[r],o=!1;for(let a=n;a>=0;a--)if(this._matchSegment(s,this.path[a],a===this.path.length-1)){n=a-1,r--,o=!0;break}if(!o)return!1}else{if(!this._matchSegment(i,this.path[n],n===this.path.length-1))return!1;n--,r--}}return r<0}_matchSegment(t,n,r){var i;if(t.tag!=="*"&&t.tag!==n.tag||t.namespace!==void 0&&t.namespace!=="*"&&t.namespace!==n.namespace||t.attrName!==void 0&&(!r||!n.values||!(t.attrName in n.values)||t.attrValue!==void 0&&String(n.values[t.attrName])!==String(t.attrValue)))return!1;if(t.position!==void 0){if(!r)return!1;let s=(i=n.counter)!=null?i:0;if(t.position==="first"&&s!==0||t.position==="odd"&&s%2!=1||t.position==="even"&&s%2!=0||t.position==="nth"&&s!==t.positionValue)return!1}return!0}matchesAny(t){return t.matchesAny(this)}snapshot(){return{path:this.path.map((t=>({...t}))),siblingStacks:this.siblingStacks.map((t=>new Map(t)))}}restore(t){this._pathStringCache=null,this.path=t.path.map((n=>({...n}))),this.siblingStacks=t.siblingStacks.map((n=>new Map(n)))}readOnly(){return this._view}},Rs=class{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;this.pattern=t,this.separator=n.separator||".",this.segments=this._parse(t),this.data=r,this._hasDeepWildcard=this.segments.some((i=>i.type==="deep-wildcard")),this._hasAttributeCondition=this.segments.some((i=>i.attrName!==void 0)),this._hasPositionSelector=this.segments.some((i=>i.position!==void 0))}_parse(t){let n=[],r=0,i="";for(;r",lt:"<",quot:'"'},vEe={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"},bEe=new Set("!?\\\\/[]$%{}^&*()<>|+");function XL(e){if(e[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(let t of e)if(bEe.has(t))throw new Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);return e}function H_(){let e=Object.create(null);for(var t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{};var n;this._limit=t.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof t.postCheck=="function"?t.postCheck:o=>o,this._limitTiers=(n=(i=this._limit.applyLimitsTo)!=null?i:No)&&n!==No?n===G_?new Set([G_]):n===Gh?new Set([Gh]):Array.isArray(n)?new Set(n):new Set([No]):new Set([No]),this._numericAllowed=(s=t.numericAllowed)!=null?s:!0,this._baseMap=H_(O6,t.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(t.remove&&Array.isArray(t.remove)?t.remove:[]),this._leaveSet=new Set(t.leave&&Array.isArray(t.leave)?t.leave:[]);let r=(function(o){var p,d;if(!o)return{xmlVersion:1,onLevel:er.allow,nullLevel:er.remove};let a=o.xmlVersion===1.1?1.1:1,l=(p=er[o.onNCR])!=null?p:er.allow,u=(d=er[o.nullNCR])!=null?d:er.remove;return{xmlVersion:a,onLevel:l,nullLevel:Math.max(u,er.remove)}})(t.ncr);this._ncrXmlVersion=r.xmlVersion,this._ncrOnLevel=r.onLevel,this._ncrNullLevel=r.nullLevel}setExternalEntities(t){if(t)for(let n of Object.keys(t))XL(n);this._externalMap=H_(t)}addExternalEntity(t,n){XL(t),typeof n=="string"&&n.indexOf("&")===-1&&(this._externalMap[t]=n)}addInputEntities(t){this._totalExpansions=0,this._expandedLength=0,this._inputMap=H_(t)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(t){this._ncrXmlVersion=t===1.1?1.1:1}decode(t){if(typeof t!="string"||t.length===0)return t;let n=t,r=[],i=t.length,s=0,o=0,a=this._maxTotalExpansions>0,l=this._maxExpandedLength>0,u=a||l;for(;o=i||t.charCodeAt(d)!==59){o++;continue}let f=t.slice(o+1,d);if(f.length===0){o++;continue}let m,g;if(this._removeSet.has(f))m="",g===void 0&&(g=No);else{if(this._leaveSet.has(f)){o++;continue}if(f.charCodeAt(0)===35){let x=this._resolveNCR(f);if(x===void 0){o++;continue}m=x,g=Gh}else{let x=this._resolveName(f);m=x==null?void 0:x.value,g=x==null?void 0:x.tier}}if(m!==void 0){if(o>s&&r.push(t.slice(s,o)),r.push(m),s=d+1,o=s,u&&this._tierCounts(g)){if(a&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(l){let x=m.length-(f.length+2);if(x>0&&(this._expandedLength+=x,this._expandedLength>this._maxExpandedLength))throw new Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}else o++}s=55296&&t<=57343||this._ncrXmlVersion===1&&t>=1&&t<=31&&!_Ee.has(t)?er.remove:-1}_applyNCRAction(t,n,r){switch(t){case er.allow:return String.fromCodePoint(r);case er.remove:return"";case er.leave:return;case er.throw:throw new Error(`[EntityDecoder] Prohibited numeric character reference &${n}; (U+${r.toString(16).toUpperCase().padStart(4,"0")})`);default:return String.fromCodePoint(r)}}_resolveNCR(t){let n=t.charCodeAt(1),r;if(r=n===120||n===88?parseInt(t.slice(2),16):parseInt(t.slice(1),10),Number.isNaN(r)||r<0||r>1114111)return;let i=this._classifyNCR(r);if(!this._numericAllowed&&i0){let n=e.substring(0,t);if(n!=="xmlns")return n}}var pw=class{constructor(t,n){var r;this.options=t,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=AEe,this.parseTextData=DEe,this.resolveNameSpace=SEe,this.buildAttributesMap=TEe,this.isItStopNode=FEe,this.replaceEntitiesValue=kEe,this.readStopNodeData=IEe,this.saveTextToParentTag=OEe,this.addChild=REe,this.ignoreAttributesFn=typeof(r=this.options.ignoreAttributes)=="function"?r:Array.isArray(r)?o=>{for(let a of r)if(typeof a=="string"&&o===a||a instanceof RegExp&&a.test(o))return!0}:()=>!1,this.entityExpansionCount=0,this.currentExpandedLength=0;let i={...O6};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities=="object"?i=this.options.htmlEntities:this.options.htmlEntities===!0&&(i={...vEe,...xEe}),this.entityDecoder=new eg({namedEntities:{...i,...n},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new ep,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new lw;let s=this.options.stopNodes;if(s&&s.length>0){for(let o=0;o0)){o||(e=this.replaceEntitiesValue(e,t,n));let l=a.jPath?n.toString():n,u=a.tagValueProcessor(t,e,l,i,s);return u==null?e:typeof u!=typeof e||u!==e?u:a.trimValues||e.trim()===e?F6(e,a.parseTagValue,a.numberParseOptions):e}}function SEe(e){if(this.options.removeNSPrefix){let t=e.split(":"),n=e.charAt(0)==="/"?"/":"";if(t[0]==="xmlns")return"";t.length===2&&(e=n+t[1])}return e}var CEe=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function TEe(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0&&arguments[3],i=this.options;if(r===!0||i.ignoreAttributes!==!0&&typeof e=="string"){let s=T6(e,CEe),o=s.length,a={},l=new Array(o),u=!1,p={};for(let m=0;m",a,"Closing Tag is not closed."),p=e.substring(a+2,u).trim();if(i.removeNSPrefix){let f=p.indexOf(":");f!==-1&&(p=p.substr(f+1))}p=V_(i.transformTagName,p,"",i).tagName,n&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(p&&i.unpairedTagsSet.has(p))throw new Error(`Unpaired tag can not be used as closing tag: `);d&&i.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=this.tagsNodeStack.pop(),r="",a=u}else if(l===63){let u=dw(e,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let p=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(p){let d=p[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1)}if(!(i.ignoreDeclaration&&u.tagName==="?xml"||i.ignorePiTags)){let d=new pi(u.tagName);d.add(i.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&i.ignoreAttributes!==!0&&(d[":@"]=p),this.addChild(n,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(l===33&&e.charCodeAt(a+2)===45&&e.charCodeAt(a+3)===45){let u=Rc(e,"-->",a+4,"Comment is not closed.");if(i.commentPropName){let p=e.substring(a+4,u-2);r=this.saveTextToParentTag(r,n,this.readonlyMatcher),n.add(i.commentPropName,[{[i.textNodeName]:p}])}a=u}else if(l===33&&e.charCodeAt(a+2)===68){let u=s.readDocType(e,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(l===33&&e.charCodeAt(a+2)===91){let u=Rc(e,"]]>",a,"CDATA is not closed.")-2,p=e.substring(a+9,u);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let d=this.parseTextData(p,n.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),i.cdataPropName?n.add(i.cdataPropName,[{[i.textNodeName]:p}]):n.add(i.textNodeName,d),a=u+2}else{let u=dw(e,a,i.removeNSPrefix);if(!u){let A=e.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${A}"`)}let p=u.tagName,d=u.rawTagName,f=u.tagExp,m=u.attrExpPresent,g=u.closeIndex;if({tagName:p,tagExp:f}=V_(i.transformTagName,p,f,i),i.strictReservedNames&&(p===i.commentPropName||p===i.cdataPropName||p===i.textNodeName||p===i.attributesGroupName))throw new Error(`Invalid tag name: ${p}`);n&&r&&n.tagname!=="!xml"&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher,!1));let x=n;x&&i.unpairedTagsSet.has(x.tagname)&&(n=this.tagsNodeStack.pop(),this.matcher.pop());let v=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(v=!0,p[p.length-1]==="/"?(p=p.substr(0,p.length-1),f=p):f=f.substr(0,f.length-1),m=p!==f);let _,w=null,E={};_=EEe(d),p!==t.tagname&&this.matcher.push(p,{},_),p!==f&&m&&(w=this.buildAttributesMap(f,this.matcher,p),w&&(E=wEe(w,i))),p!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let S=a;if(this.isCurrentNodeStopNode){let A="";if(v)a=u.closeIndex;else if(i.unpairedTagsSet.has(p))a=u.closeIndex;else{let I=this.readStopNodeData(e,d,g+1);if(!I)throw new Error(`Unexpected end of ${d}`);a=I.i,A=I.tagContent}let k=new pi(p);w&&(k[":@"]=w),k.add(i.textNodeName,A),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(n,k,this.readonlyMatcher,S)}else{if(v){({tagName:p,tagExp:f}=V_(i.transformTagName,p,f,i));let A=new pi(p);w&&(A[":@"]=w),this.addChild(n,A,this.readonlyMatcher,S),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else{if(i.unpairedTagsSet.has(p)){let A=new pi(p);w&&(A[":@"]=w),this.addChild(n,A,this.readonlyMatcher,S),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}{let A=new pi(p);if(this.tagsNodeStack.length>i.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(n),w&&(A[":@"]=w),this.addChild(n,A,this.readonlyMatcher,S),n=A}}r="",a=g}}}else r+=e[a];return t.child};function REe(e,t,n,r){this.options.captureMetaData||(r=void 0);let i=this.options.jPath?n.toString():n,s=this.options.updateTag(t.tagname,i,t[":@"]);s===!1||(typeof s=="string"&&(t.tagname=s),e.addChild(t,r))}function kEe(e,t,n){let r=this.options.processEntities;if(!r||!r.enabled)return e;if(r.allowedTags){let i=this.options.jPath?n.toString():n;if(!(Array.isArray(r.allowedTags)?r.allowedTags.includes(t):r.allowedTags(t,i)))return e}if(r.tagFilter){let i=this.options.jPath?n.toString():n;if(!r.tagFilter(t,i))return e}return this.entityDecoder.decode(e)}function OEe(e,t,n,r){return e&&(r===void 0&&(r=t.child.length===0),(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&Object.keys(t[":@"]).length!==0,r))!==void 0&&e!==""&&t.add(this.options.textNodeName,e),e=""),e}function FEe(){return this.stopNodeExpressionsSet.size!==0&&this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Rc(e,t,n,r){let i=e.indexOf(t,n);if(i===-1)throw new Error(r);return i+t.length-1}function BEe(e,t,n,r){let i=e.indexOf(t,n);if(i===-1)throw new Error(r);return i}function dw(e,t,n){let r=(function(p,d){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:">",m=0,g=p.length,x=f.charCodeAt(0),v=f.length>1?f.charCodeAt(1):-1,_="",w=d;for(let E=d;E3&&arguments[3]!==void 0?arguments[3]:">");if(!r)return;let i=r.data,s=r.index,o=i.search(/\s/),a=i,l=!0;o!==-1&&(a=i.substring(0,o),i=i.substring(o+1).trimStart());let u=a;if(n){let p=a.indexOf(":");p!==-1&&(a=a.substr(p+1),l=a!==r.data.substr(p+1))}return{tagName:a,tagExp:i,closeIndex:s,attrExpPresent:l,rawTagName:u}}function IEe(e,t,n){let r=n,i=1,s=e.length;for(;n",n,`${t} is not closed`);if(e.substring(n+2,a).trim()===t&&(i--,i===0))return{tagContent:e.substring(r,n),i:a};n=a}else if(o===63)n=Rc(e,"?>",n+1,"StopNode is not closed.");else if(o===33&&e.charCodeAt(n+2)===45&&e.charCodeAt(n+3)===45)n=Rc(e,"-->",n+3,"StopNode is not closed.");else if(o===33&&e.charCodeAt(n+2)===91)n=Rc(e,"]]>",n,"StopNode is not closed.")-2;else{let a=dw(e,n,">");a&&((a&&a.tagName)===t&&a.tagExp[a.tagExp.length-1]!=="/"&&i++,n=a.closeIndex)}}}function F6(e,t,n){if(t&&typeof e=="string"){let r=e.trim();return r==="true"||r!=="false"&&(function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(s=Object.assign({},gEe,s),!i||typeof i!="string")return i;let o=i.trim();if(o.length===0||s.skipLike!==void 0&&s.skipLike.test(o))return i;if(o==="0")return 0;if(s.hex&&mEe.test(o))return(function(l){if(parseInt)return parseInt(l,16);if(Number.parseInt)return Number.parseInt(l,16);if(window&&window.parseInt)return window.parseInt(l,16);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")})(o);if(isFinite(o)){if(o.includes("e")||o.includes("E"))return(function(l,u,p){if(!p.eNotation)return l;let d=u.match(yEe);if(d){let f=d[1]||"",m=d[3].indexOf("e")===-1?"E":"e",g=d[2],x=f?l[g.length+1]===m:l[g.length]===m;return g.length>1&&x?l:(g.length!==1||!d[3].startsWith(`.${m}`)&&d[3][0]!==m)&&g.length>0?p.leadingZeros&&!x?(u=(d[1]||"")+d[3],Number(u)):l:Number(u)}return l})(i,o,s);{let l=hEe.exec(o);if(l){let u=l[1]||"",p=l[2],d=((a=l[3])&&a.indexOf(".")!==-1&&((a=a.replace(/0+$/,""))==="."?a="0":a[0]==="."?a="0"+a:a[a.length-1]==="."&&(a=a.substring(0,a.length-1))),a),f=u?i[p.length+1]===".":i[p.length]===".";if(!s.leadingZeros&&(p.length>1||p.length===1&&!f))return i;{let m=Number(o),g=String(m);if(m===0)return m;if(g.search(/[eE]/)!==-1)return s.eNotation?m:i;if(o.indexOf(".")!==-1)return g==="0"||g===d||g===`${u}${d}`?m:i;let x=p?d:o;return p?x===g||u+x===g?m:i:x===g||x===u+g?m:i}}return i}}var a;return(function(l,u,p){let d=u===1/0;switch(p.infinity.toLowerCase()){case"null":return null;case"infinity":return u;case"string":return d?"Infinity":"-Infinity";default:return l}})(i,Number(o),s)})(e,n)}return e!==void 0?e:""}function V_(e,t,n,r){if(e){let i=e(t);n===t&&(n=i),t=i}return{tagName:t=B6(t,r),tagExp:n}}function B6(e,t){if(A6.includes(e))throw new Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return bw.includes(e)?t.onDangerousProperty(e):e}var W_=pi.getMetaDataSymbol();function PEe(e,t){if(!e||typeof e!="object")return{};if(!t)return e;let n={};for(let r in e)r.startsWith(t)?n[r.substring(t.length)]=e[r]:n[r]=e[r];return n}function NEe(e,t,n,r){return I6(e,t,n,r)}function I6(e,t,n,r){let i,s={};for(let o=0;o0&&(s[t.textNodeName]=i):i!==void 0&&(s[t.textNodeName]=i),s}function MEe(e){let t=Object.keys(e);for(let n=0;n5&&r==="xml")return _t("InvalidXml","XML declaration allowed only at the start of the document.",Tn(e,t));if(e[t]=="?"&&e[t+1]==">"){t++;break}}return t}function JL(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t"){t+=2;break}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let n=1;for(t+=8;t"&&(n--,n===0))break}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t"){t+=2;break}}return t}function jEe(e,t){let n="",r="",i=!1;for(;t"&&r===""){i=!0;break}n+=e[t]}return r===""&&{value:n,index:t,tagClosed:i}}var zEe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function e6(e,t){let n=T6(e,zEe),r={};for(let i=0;i"&&o[d]!==" "&&o[d]!==" "&&o[d]!==` +`&&o[d]!=="\r";d++)g+=o[d];if(g=g.trim(),g[g.length-1]==="/"&&(g=g.substring(0,g.length-1),d--),!rg(g)){let _;return _=g.trim().length===0?"Invalid space after '<'.":"Tag '"+g+"' is an invalid name.",_t("InvalidTag",_,Tn(o,d))}let x=jEe(o,d);if(x===!1)return _t("InvalidAttr","Attributes for '"+g+"' have open quote.",Tn(o,d));let v=x.value;if(d=x.index,v[v.length-1]==="/"){let _=d-v.length;v=v.substring(0,v.length-1);let w=e6(v,a);if(w!==!0)return _t(w.err.code,w.err.msg,Tn(o,_+w.err.line));u=!0}else if(m){if(!x.tagClosed)return _t("InvalidTag","Closing tag '"+g+"' doesn't have proper closing.",Tn(o,d));if(v.trim().length>0)return _t("InvalidTag","Closing tag '"+g+"' can't have attributes or invalid starting.",Tn(o,f));if(l.length===0)return _t("InvalidTag","Closing tag '"+g+"' has not been opened.",Tn(o,f));{let _=l.pop();if(g!==_.tagName){let w=Tn(o,_.tagStartPos);return _t("InvalidTag","Expected closing tag '"+_.tagName+"' (opened in line "+w.line+", col "+w.col+") instead of closing tag '"+g+"'.",Tn(o,f))}l.length==0&&(p=!0)}}else{let _=e6(v,a);if(_!==!0)return _t(_.err.code,_.err.msg,Tn(o,d-v.length+_.err.line));if(p===!0)return _t("InvalidXml","Multiple possible root nodes found.",Tn(o,d));a.unpairedTags.indexOf(g)!==-1||l.push({tagName:g,tagStartPos:f}),u=!0}for(d++;d0)||_t("InvalidXml","Invalid '"+JSON.stringify(l.map((d=>d.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):_t("InvalidXml","Start tag expected.",1)})(t,n);if(s!==!0)throw Error(`${s.err.msg}:${s.err.line}:${s.err.col}`)}let r=new pw(this.options,this.externalEntities),i=r.parseXml(t);return this.options.preserveOrder||i===void 0?i:NEe(i,this.options,r.matcher,r.readonlyMatcher)}addEntity(t,n){if(n.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(t.indexOf("&")!==-1||t.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if(n==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[t]=n}static getMetaDataSymbol(){return pi.getMetaDataSymbol()}},GEe=st(829),Li=st.n(GEe),Cc=(function(e){return e.Array="array",e.Object="object",e.Original="original",e})(Cc||{});function t6(e){return typeof e=="string"?e:e.toString(".",!1)}function P6(e,t){if(!e.endsWith("propstat.prop.displayname"))return t}function Vh(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Cc.Original,r=Li().get(e,t);return n==="array"&&Array.isArray(r)===!1?[r]:n==="object"&&Array.isArray(r)?r[0]:r}function ig(e,t){return t=t!=null?t:{attributeNamePrefix:"@",attributeParsers:[],tagParsers:[P6]},new Promise((n=>{n((function(r){let{multistatus:i}=r;if(i==="")return{multistatus:{response:[]}};if(!i)throw new Error("Invalid response: No root multistatus found");let s={multistatus:Array.isArray(i)?i[0]:i};return Li().set(s,"multistatus.response",Vh(s,"multistatus.response",Cc.Array)),Li().set(s,"multistatus.response",Li().get(s,"multistatus.response").map((o=>(function(a){let l=Object.assign({},a);return l.status?Li().set(l,"status",Vh(l,"status",Cc.Object)):(Li().set(l,"propstat",Vh(l,"propstat",Cc.Object)),Li().set(l,"propstat.prop",Vh(l,"propstat.prop",Cc.Object))),l})(o)))),s})((function(r){var u,p,d,f;let{attributeNamePrefix:i,attributeParsers:s,entityDecoder:o,tagParsers:a}=r,l={allowBooleanAttributes:!0,attributeNamePrefix:i,textNodeName:"text",ignoreAttributes:!1,removeNSPrefix:!0,jPath:!1,numberParseOptions:{hex:!0,leadingZeros:!1},attributeValueProcessor(m,g,x){let v=t6(x);for(let _ of s)try{let w=_(v,g);if(w!==g)return w}catch(w){}return g},tagValueProcessor(m,g,x){let v=t6(x);for(let _ of a)try{let w=_(v,g);if(w!==g)return w}catch(w){}return g}};return o&&(l.entityDecoder=new eg({limit:{maxTotalExpansions:(p=(u=o.limit)==null?void 0:u.maxTotalExpansions)!=null?p:0,maxExpandedLength:(f=(d=o.limit)==null?void 0:d.maxExpandedLength)!=null?f:0}})),new tg(l)})(t).parse(e)))}))}function _w(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],{getlastmodified:r=null,getcontentlength:i="0",resourcetype:s=null,getcontenttype:o=null,getetag:a=null}=e,l=s&&typeof s=="object"&&s.collection!==void 0?"directory":"file",u={filename:t,basename:Xh().basename(t),lastmod:r,size:parseInt(i,10),type:l,etag:typeof a=="string"?a.replace(/"/g,""):null};return l==="file"&&(u.mime=o&&typeof o=="string"?o.split(";")[0]:""),n&&(e.displayname!==void 0&&(e.displayname=String(e.displayname)),u.props=e),u}function VEe(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=null;try{e.multistatus.response[0].propstat&&(r=e.multistatus.response[0])}catch(p){}if(!r)throw new Error("Failed getting item stat: bad response");let{propstat:{prop:i,status:s}}=r,[o,a,l]=s.split(" ",3),u=parseInt(a,10);if(u>=400){let p=new Error(`Invalid response: ${u} ${l}`);throw p.status=u,p}return _w(i,Ql(t),n)}function WEe(e){switch(String(e)){case"-3":return"unlimited";case"-2":case"-1":return"unknown";default:return parseInt(String(e),10)}}function K_(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var ww=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{},{details:r=!1}=n,i=Bt({url:pt(e.remoteURL,lt(t)),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,n);return K_(Ft(i,e),(function(s){return It(e,s),K_(s.text(),(function(o){return K_(ig(o,e.parsing),(function(a){let l=VEe(a,t,r);return Fc(s,l,r)}))}))}))}));function N6(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var KEe=M6((function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=(function(s){if(!s||s==="/")return[];let o=s,a=[];do a.push(o),o=Xh().dirname(o);while(o&&o!=="/");return a})(Ql(t));r.sort(((s,o)=>s.length>o.length?1:o.length>s.length?-1:0));let i=!1;return(function(s,o,a){if(typeof s[r6]=="function"){let x=function(v){try{for(;!(l=d.next()).done;)if((v=o(l.value))&&v.then){if(!i6(v))return void v.then(x,p||(p=An.bind(null,u=new Tc,2)));v=v.v}u?An(u,1,v):u=v}catch(_){An(u||(u=new Tc),2,_)}};var l,u,p,d=s[r6]();if(x(),d.return){var f=function(v){try{l.done||d.return()}catch(_){}return v};if(u&&u.then)return u.then(f,(function(v){throw f(v)}));f()}return u}if(!("length"in s))throw new TypeError("Object is not iterable");for(var m=[],g=0;g2&&arguments[2]!==void 0?arguments[2]:{};if(n.recursive===!0)return KEe(e,t,n);let r=Bt({url:pt(e.remoteURL,(i=lt(t),i.endsWith("/")?i:i+"/")),method:"MKCOL"},e,n);var i;return N6(Ft(r,e),(function(s){It(e,s)}))})),XEe=st(388),s6=st.n(XEe),ZEe=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{},r={};if(typeof n.range=="object"&&typeof n.range.start=="number"){let a=`bytes=${n.range.start}-`;typeof n.range.end=="number"&&(a=`${a}${n.range.end}`),r.Range=a}let i=Bt({url:pt(e.remoteURL,lt(t)),method:"GET",headers:r},e,n);return o=function(a){if(It(e,a),r.Range&&a.status!==206){let l=new Error(`Invalid response code for partial request: ${a.status}`);throw l.status=a.status,l}return n.callback&&setTimeout((()=>{n.callback(a)}),0),a.body},(s=Ft(i,e))&&s.then||(s=Promise.resolve(s)),o?s.then(o):s;var s,o})),QEe=()=>{},JEe=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{},r=Bt({url:pt(e.remoteURL,lt(t)),method:"DELETE"},e,n);return s=function(o){It(e,o)},(i=Ft(r,e))&&i.then||(i=Promise.resolve(i)),s?i.then(s):i;var i,s})),t1e=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};return(function(r,i){try{var s=(o=ww(e,t,n),a=function(){return!0},l?a?a(o):o:(o&&o.then||(o=Promise.resolve(o)),a?o.then(a):o))}catch(u){return i(u)}var o,a,l;return s&&s.then?s.then(void 0,i):s})(0,(function(r){if(r.status===404)return!1;throw r}))}));function Y_(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var n1e=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{},r=Bt({url:pt(e.remoteURL,lt(t),"/"),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:n.deep?"infinity":"1"}},e,n);return Y_(Ft(r,e),(function(i){return It(e,i),Y_(i.text(),(function(s){if(!s)throw new Error("Failed parsing directory contents: Empty response");return Y_(ig(s,e.parsing),(function(o){let a=NL(t),l=(function(u,p,d){let f=arguments.length>3&&arguments[3]!==void 0&&arguments[3],m=arguments.length>4&&arguments[4]!==void 0&&arguments[4],g=Xh().join(p,"/"),{multistatus:{response:x}}=u,v=x.map((_=>{let w=(function(S){try{return S.replace(/^https?:\/\/[^\/]+/,"")}catch(A){throw new Er(A,"Failed normalising HREF")}})(_.href),{propstat:{prop:E}}=_;return _w(E,g==="/"?decodeURIComponent(Ql(w)):Ql(Xh().relative(decodeURIComponent(g),decodeURIComponent(w))),f)}));return m?v:v.filter((_=>_.basename&&(_.type==="file"||_.filename!==d.replace(/\/$/,""))))})(o,NL(e.remoteBasePath||e.remotePath),a,n.details,n.includeSelf);return n.glob&&(l=(function(u,p){return u.filter((d=>pn(d.filename,p,{matchBase:!0})))})(l,n.glob)),Fc(i,l,n.details)}))}))}))}));function Ew(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{},r=Bt({url:pt(e.remoteURL,lt(t)),method:"GET",headers:{Accept:"text/plain"},transformResponse:[o1e]},e,n);return ng(Ft(r,e),(function(i){return It(e,i),ng(i.text(),(function(s){return Fc(i,s,n.details)}))}))}));function ng(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var i1e=Ew((function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Bt({url:pt(e.remoteURL,lt(t)),method:"GET"},e,n);return ng(Ft(r,e),(function(i){let s;return It(e,i),(function(o,a){var l=o();return l&&l.then?l.then(a):a()})((function(){return ng(i.arrayBuffer(),(function(o){s=o}))}),(function(){return Fc(i,s,n.details)}))}))})),s1e=Ew((function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{format:r="binary"}=n;if(r!=="binary"&&r!=="text")throw new Er({info:{code:As.InvalidOutputFormat}},`Invalid output format: ${r}`);return r==="text"?r1e(e,t,n):i1e(e,t,n)})),o1e=e=>e;function a1e(e,t){let n="";t.format&&t.indentBy.length>0&&(n=` +`);let r=[];if(t.stopNodes&&Array.isArray(t.stopNodes))for(let i=0;it.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(e)){if(e!=null){let a=e.toString();return a=mw(a,t),a}return""}for(let a=0;a/g,"]]]]>")}]]>`,o=!1,r.pop();continue}if(u===t.commentPropName){let x=l[u][0][t.textNodeName];s+=n+``,o=!0,r.pop();continue}if(u[0]==="?"){let x=o6(l[":@"],t,d),v=u==="?xml"?"":n,_=l[u][0][t.textNodeName];_=_.length!==0?" "+_:"",s+=v+`<${u}${_}${x}?>`,o=!0,r.pop();continue}let f=n;f!==""&&(f+=t.indentBy);let m=n+`<${u}${o6(l[":@"],t,d)}`,g;g=d?$6(l[u],t):L6(l[u],t,f,r,i),t.unpairedTags.indexOf(u)!==-1?t.suppressUnpairedNode?s+=m+">":s+=m+"/>":g&&g.length!==0||!t.suppressEmptyNode?g&&g.endsWith(">")?s+=m+`>${g}${n}`:(s+=m+">",g&&n!==""&&(g.includes("/>")||g.includes("`):s+=m+"/>",o=!0,r.pop()}return s}function c1e(e,t){if(!e||t.ignoreAttributes)return null;let n={},r=!1;for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i.startsWith(t.attributeNamePrefix)?i.substr(t.attributeNamePrefix.length):i]=e[i],r=!0);return r?n:null}function $6(e,t){if(!Array.isArray(e))return e!=null?e.toString():"";let n="";for(let r=0;r${a}`:n+=`<${s}${o}/>`}}}return n}function u1e(e,t){let n="";if(e&&!t.ignoreAttributes)for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=e[r];i===!0&&t.suppressBooleanAttributes?n+=` ${r.substr(t.attributeNamePrefix.length)}`:n+=` ${r.substr(t.attributeNamePrefix.length)}="${i}"`}return n}function U6(e){let t=Object.keys(e);for(let n=0;n0&&t.processEntities)for(let n=0;n","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function wr(e){if(this.options=Object.assign({},p1e,e),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map((n=>typeof n=="string"&&n.startsWith("*.")?".."+n.substring(2):n))),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let n=0;n{for(let r of t)if(typeof r=="string"&&n===r||r instanceof RegExp&&r.test(n))return!0}:()=>!1,this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=m1e),this.processTextOrObjNode=d1e,this.options.format?(this.indentate=f1e,this.tagEndChar=`> `,this.newLine=` -`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function e1e(e,t,n,r){let i=this.extractAttributes(e);if(r.push(t,i),this.checkStopNode(r)){let o=this.buildRawContent(e),a=this.buildAttributesForStopNode(e);return r.pop(),this.buildObjectNode(o,t,a,n)}let s=this.j2x(e,n+1,r);return r.pop(),e[this.options.textNodeName]!==void 0&&Object.keys(e).length===1?this.buildTextValNode(e[this.options.textNodeName],t,s.attrStr,n,r):this.buildObjectNode(s.val,t,s.attrStr,n)}function t1e(e){return this.options.indentBy.repeat(e)}function n1e(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}_r.prototype.build=function(e){if(this.options.preserveOrder)return YEe(e,this.options);{Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e});let t=new Zl;return this.j2x(e,0,t).val}},_r.prototype.j2x=function(e,t,n){let r="",i="";if(this.options.maxNestedTags&&n.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let s=this.options.jPath?n.toString():n,o=this.checkStopNode(n);for(let a in e)if(Object.prototype.hasOwnProperty.call(e,a))if(e[a]===void 0)this.isAttribute(a)&&(i+="");else if(e[a]===null)this.isAttribute(a)||a===this.options.cdataPropName?i+="":a[0]==="?"?i+=this.indentate(t)+"<"+a+"?"+this.tagEndChar:i+=this.indentate(t)+"<"+a+"/"+this.tagEndChar;else if(e[a]instanceof Date)i+=this.buildTextValNode(e[a],a,"",t,n);else if(typeof e[a]!="object"){let l=this.isAttribute(a);if(l&&!this.ignoreAttributesFn(l,s))r+=this.buildAttrPairStr(l,""+e[a],o);else if(!l)if(a===this.options.textNodeName){let u=this.options.tagValueProcessor(a,""+e[a]);i+=this.replaceEntitiesValue(u)}else{n.push(a);let u=this.checkStopNode(n);if(n.pop(),u){let p=""+e[a];i+=p===""?this.indentate(t)+"<"+a+this.closeTag(a)+this.tagEndChar:this.indentate(t)+"<"+a+">"+p+""+g+"${i}`;else if(typeof i=="object"&&i!==null){let s=this.buildRawContent(i),o=this.buildAttributesForStopNode(i);t+=s===""?`<${n}${o}/>`:`<${n}${o}>${s}`}}else if(typeof r=="object"&&r!==null){let i=this.buildRawContent(r),s=this.buildAttributesForStopNode(r);t+=i===""?`<${n}${s}/>`:`<${n}${s}>${i}`}else t+=`<${n}>${r}`}return t},_r.prototype.buildAttributesForStopNode=function(e){if(!e||typeof e!="object")return"";let t="";if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){let n=e[this.options.attributesGroupName];for(let r in n){if(!Object.prototype.hasOwnProperty.call(n,r))continue;let i=r.startsWith(this.options.attributeNamePrefix)?r.substring(this.options.attributeNamePrefix.length):r,s=n[r];s===!0&&this.options.suppressBooleanAttributes?t+=" "+i:t+=" "+i+'="'+s+'"'}}else for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let r=this.isAttribute(n);if(r){let i=e[n];i===!0&&this.options.suppressBooleanAttributes?t+=" "+r:t+=" "+r+'="'+i+'"'}}return t},_r.prototype.buildObjectNode=function(e,t,n,r){if(e==="")return t[0]==="?"?this.indentate(r)+"<"+t+n+"?"+this.tagEndChar:this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar;{let i="`+this.newLine:this.indentate(r)+"<"+t+n+s+this.tagEndChar+e+this.indentate(r)+i:this.indentate(r)+"<"+t+n+s+">"+e+i}},_r.prototype.closeTag=function(e){let t="";return this.options.unpairedTags.indexOf(e)!==-1?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`>/g,"]]]]>");return this.indentate(r)+``+this.newLine}if(this.options.commentPropName!==!1&&t===this.options.commentPropName){let s=String(e).replace(/--/g,"- -").replace(/-$/,"- ");return this.indentate(r)+``+this.newLine}if(t[0]==="?")return this.indentate(r)+"<"+t+n+"?"+this.tagEndChar;{let s=this.options.tagValueProcessor(t,e);return s=this.replaceEntitiesValue(s),s===""?this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+"<"+t+n+">"+s+"0&&this.options.processEntities)for(let t=0;t3&&arguments[3]!==void 0?arguments[3]:{},i=Bt({url:pt(e.remoteURL,lt(t)),method:"UNLOCK",headers:{"Lock-Token":n}},e,r);return fw(Ft(i,e),(function(s){if(It(e,s),s.status!==204&&s.status!==200)throw yw(s)}))})),o1e=$6((function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{refreshToken:r,timeout:i=a1e}=n,s={Accept:"text/plain,application/xml",Timeout:i};r&&(s.If=r);let o=Bt({url:pt(e.remoteURL,lt(t)),method:"LOCK",headers:s,data:i1e(e.contactHref)},e,n);return fw(Ft(o,e),(function(a){return It(e,a),fw(a.text(),(function(l){let u=(f=l,new Jh({removeNSPrefix:!0,parseAttributeValue:!0,parseTagValue:!0}).parse(f)),p=Ni().get(u,"prop.lockdiscovery.activelock.locktoken.href"),d=Ni().get(u,"prop.lockdiscovery.activelock.timeout");var f;if(!p)throw yw(a,"No lock token received: ");return{token:p,serverTimeout:d}}))}))})),a1e="Infinite, Second-4100000000";function K_(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var c1e=(function(e){return function(){for(var t=[],n=0;n1&&arguments[1]!==void 0?arguments[1]:{},n=t.path||"/",r=Bt({url:pt(e.remoteURL,n),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,t);return K_(Ft(r,e),(function(i){return It(e,i),K_(i.text(),(function(s){return K_(ng(s,e.parsing),(function(o){let a=(function(l){try{let[u]=l.multistatus.response,{propstat:{prop:{"quota-used-bytes":p,"quota-available-bytes":d}}}=u;return p!==void 0&&d!==void 0?{used:parseInt(String(p),10),available:PEe(d)}:null}catch(u){}return null})(o);return Rc(i,a,t.details)}))}))}))}));function Y_(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var u1e=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{},{details:r=!1}=n,i=Bt({url:pt(e.remoteURL,lt(t)),method:"SEARCH",headers:{Accept:"text/plain,application/xml","Content-Type":e.headers["Content-Type"]||"application/xml; charset=utf-8"}},e,n);return Y_(Ft(i,e),(function(s){return It(e,s),Y_(s.text(),(function(o){return Y_(ng(o,e.parsing),(function(a){let l=(function(u,p,d){let f={truncated:!1,results:[]};return f.truncated=u.multistatus.response.some((m=>{var g,x;return((x=(m.status||((g=m.propstat)==null?void 0:g.status)).split(" ",3))==null?void 0:x[1])==="507"&&m.href.replace(/\/$/,"").endsWith(lt(p).replace(/\/$/,""))})),u.multistatus.response.forEach((m=>{if(m.propstat===void 0)return;let g=m.href.split("/").map(decodeURIComponent).join("/");f.results.push(vw(m.propstat.prop,g,d))})),f})(a,t,r);return Rc(s,l,r)}))}))}))})),l1e=(function(e){return function(){for(var t=[],n=0;n3&&arguments[3]!==void 0?arguments[3]:{},i=Bt({url:pt(e.remoteURL,lt(t)),method:"MOVE",headers:{Destination:pt(e.remoteURL,lt(n)),Overwrite:r.overwrite===!1?"F":"T"}},e,r);return o=function(a){It(e,a)},(s=Ft(i,e))&&s.then||(s=Promise.resolve(s)),o?s.then(o):s;var s,o})),p1e=st(172);function d1e(e){if(u6(e))return e.byteLength;if(l6(e))return e.length;if(typeof e=="string")return(0,p1e.d)(e);throw new wr({info:{code:Ss.DataTypeNoLength}},"Cannot calculate data length: Invalid type")}var f1e=(function(e){return function(){for(var t=[],n=0;n3&&arguments[3]!==void 0?arguments[3]:{},{contentLength:i=!0,overwrite:s=!0}=r,o={"Content-Type":"application/octet-stream"};i===!1||(o["Content-Length"]=typeof i=="number"?`${i}`:`${d1e(n)}`),s||(o["If-None-Match"]="*");let a=Bt({url:pt(e.remoteURL,lt(t)),method:"PUT",headers:o,data:n},e,r);return u=function(p){try{It(e,p)}catch(d){let f=d;if(f.status!==412||s)throw f;return!1}return!0},(l=Ft(a,e))&&l.then||(l=Promise.resolve(l)),u?l.then(u):l;var l,u})),U6=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{},r=Bt({url:pt(e.remoteURL,lt(t)),method:"OPTIONS"},e,n);return s=function(o){var a,l;try{It(e,o)}catch(u){throw u}return{compliance:((a=o.headers.get("DAV"))!=null?a:"").split(",").map((u=>u.trim())),server:(l=o.headers.get("Server"))!=null?l:""}},(i=Ft(r,e))&&i.then||(i=Promise.resolve(i)),s?i.then(s):i;var i,s}));function Kl(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var m1e=ww((function(e,t,n,r,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(n>r||n<0)throw new wr({info:{code:Ss.InvalidUpdateRange}},`Invalid update range ${n} for partial update`);let o={"Content-Type":"application/octet-stream","Content-Length":""+(r-n+1),"Content-Range":`bytes ${n}-${r}/*`},a=Bt({url:pt(e.remoteURL,lt(t)),method:"PUT",headers:o,data:i},e,s);return Kl(Ft(a,e),(function(l){It(e,l)}))}));function i6(e,t){var n=e();return n&&n.then?n.then(t):t(n)}var h1e=ww((function(e,t,n,r,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(n>r||n<0)throw new wr({info:{code:Ss.InvalidUpdateRange}},`Invalid update range ${n} for partial update`);let o={"Content-Type":"application/x-sabredav-partialupdate","Content-Length":""+(r-n+1),"X-Update-Range":`bytes=${n}-${r}`},a=Bt({url:pt(e.remoteURL,lt(t)),method:"PATCH",headers:o,data:i},e,s);return Kl(Ft(a,e),(function(l){It(e,l)}))}));function ww(e){return function(){for(var t=[],n=0;n5&&arguments[5]!==void 0?arguments[5]:{};return Kl(U6(e,t,s),(function(o){let a=!1;return i6((function(){if(o.compliance.includes("sabredav-partialupdate"))return Kl(h1e(e,t,n,r,i,s),(function(l){return a=!0,l}))}),(function(l){let u=!1;return a?l:i6((function(){if(o.server.includes("Apache")&&o.compliance.includes(""))return Kl(m1e(e,t,n,r,i,s),(function(p){return u=!0,p}))}),(function(p){if(u)return p;throw new wr({info:{code:Ss.NotSupported}},"Not supported")}))}))}))})),y1e="https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";function Ew(e){var v;let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{authType:n=null,remoteBasePath:r,contactHref:i=y1e,entityDecoder:s,ha1:o,headers:a={},httpAgent:l,httpsAgent:u,password:p,token:d,username:f,withCredentials:m}=t,g=n;g||(g=f||p?Yt.Password:Yt.None);let x={authType:g,remoteBasePath:r,contactHref:i,ha1:o,headers:Object.assign({},a),httpAgent:l,httpsAgent:u,password:p,parsing:{attributeNamePrefix:(v=t.attributeNamePrefix)!=null?v:"@",attributeParsers:[],entityDecoder:s,tagParsers:[F6]},remotePath:mwe(e),remoteURL:e,token:d,username:f,withCredentials:m};return a6(x,f,p,d,o),{copyFile:(_,w,D)=>Zwe(x,_,w,D),createDirectory:(_,w)=>pw(x,_,w),createReadStream:(_,w)=>(function(D,C){let A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},k=new(n6()).PassThrough;return $Ee(D,C,A).then((I=>{I.pipe(k)})).catch((I=>{k.emit("error",I)})),k})(x,_,w),createWriteStream:(_,w,D)=>(function(C,A){let k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:UEe,L=new(n6()).PassThrough,U={};k.overwrite===!1&&(U["If-None-Match"]="*");let $=Bt({url:pt(C.remoteURL,lt(A)),method:"PUT",headers:U,data:L,maxRedirects:0},C,k);return Ft($,C).then((W=>It(C,W))).then((W=>{setTimeout((()=>{I(W)}),0)})).catch((W=>{L.emit("error",W)})),L})(x,_,w,D),customRequest:(_,w)=>jEe(x,_,w),deleteFile:(_,w)=>zEe(x,_,w),exists:(_,w)=>qEe(x,_,w),getDirectoryContents:(_,w)=>HEe(x,_,w),getFileContents:(_,w)=>WEe(x,_,w),getFileDownloadLink:_=>(function(w,D){let C=pt(w.remoteURL,lt(D)),A=/^https:/i.test(C)?"https":"http";switch(w.authType){case Yt.None:break;case Yt.Password:{let k=PL(w.headers.Authorization.replace(/^Basic /i,"").trim());C=C.replace(/^https?:\/\//,`${A}://${k}@`);break}default:throw new wr({info:{code:Ss.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${w.authType}`)}return C})(x,_),getFileUploadLink:_=>(function(w,D){let C=`${pt(w.remoteURL,lt(D))}?Content-Type=application/octet-stream`,A=/^https:/i.test(C)?"https":"http";switch(w.authType){case Yt.None:break;case Yt.Password:{let k=PL(w.headers.Authorization.replace(/^Basic /i,"").trim());C=C.replace(/^https?:\/\//,`${A}://${k}@`);break}default:throw new wr({info:{code:Ss.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${w.authType}`)}return C})(x,_),getHeaders:()=>Object.assign({},x.headers),getQuota:_=>c1e(x,_),lock:(_,w)=>o1e(x,_,w),moveFile:(_,w,D)=>l1e(x,_,w,D),putFileContents:(_,w,D)=>f1e(x,_,w,D),partialUpdateFileContents:(_,w,D,C,A)=>g1e(x,_,w,D,C,A),getDAVCompliance:_=>U6(x,_),search:(_,w)=>u1e(x,_,w),setHeaders:_=>{x.headers=Object.assign({},_)},stat:(_,w)=>bw(x,_,w),unlock:(_,w,D)=>s1e(x,_,w,D),registerAttributeParser:_=>{x.parsing.attributeParsers.push(_)},registerTagParser:_=>{x.parsing.tagParsers.push(_)}}}var zn=[300,700,1300],ig=e=>new Promise(t=>setTimeout(t,e)),G6=e=>{if(e==null)return!1;let t=e;return!!(t.status===503||typeof t.message=="string"&&/\bstatus\s*503\b/i.test(t.message))},x1e=e=>e==null?!1:e.status===503,Er=async(e,t)=>{let n;for(let r=0;r<=zn.length;r++)try{let i=await t();if(x1e(i)&&r{let t=typeof e=="string"?"GET":e.method,n=typeof e=="string"?e:e.url;for(let r=0;r<=zn.length;r++)try{let i=await(0,Dw.requestUrl)(e);if(i.status===503&&r{let t={...e.headers};delete t.host,delete t.Host,delete t["content-length"],delete t["Content-Length"];let n=await v1e({url:e.url,method:e.method,body:e.data,headers:t}),r;if(e.responseType===void 0)r={data:void 0,status:n.status,statusText:Oo(n.status),headers:n.headers};else if(e.responseType==="json")r={data:n.json,status:n.status,statusText:Oo(n.status),headers:n.headers};else if(e.responseType==="text")r={data:n.text,status:n.status,statusText:Oo(n.status),headers:n.headers};else if(e.responseType==="arraybuffer")r={data:n.arrayBuffer,status:n.status,statusText:Oo(n.status),headers:n.headers};else throw Error(`do not know how to deal with responseType = ${e.responseType}`);return r});var sg={address:"",username:"",password:"",authType:"basic",manualRecursive:!1,depth:"auto_unknown",remoteBaseDir:""},Ql=(e,t)=>{let n=e;return(e==="/"||e==="")&&(n=`/${t}/`),e.startsWith("/")||(n=`/${t}/${e}`),n},b1e=(e,t)=>{if(e===`/${t}`||e.startsWith(`/${t}/`))return e.slice(`/${t}/`.length);let n=/^\/Remotely (?:Save|Secure|Sync)\/[^/]+\//,r=e.match(n);if(r!==null)return e.slice(r[0].length);throw Error(`"${e}" doesn't starts with "/${t}/" and is not a recognized legacy path`)},V6=(e,t)=>{let n=b1e(e.filename,t);return e.type==="directory"&&!n.endsWith("/")&&(n=`${n}/`),{key:n,lastModified:Date.parse(e.lastmod).valueOf(),size:e.size,remoteType:"webdav",etag:e.etag||void 0}},Sw=class{constructor(t,n,r){S(this,"webdavConfig");S(this,"remoteBaseDir");S(this,"client");S(this,"vaultFolderExists");S(this,"saveUpdatedConfigFunc");S(this,"init",async()=>{let t={"Cache-Control":"no-cache"};if(this.client===void 0&&(this.webdavConfig.username!==""&&this.webdavConfig.password!==""?this.client=Ew(this.webdavConfig.address,{username:this.webdavConfig.username,password:this.webdavConfig.password,headers:t,authType:this.webdavConfig.authType==="digest"?Yt.Digest:Yt.Password}):this.client=Ew(this.webdavConfig.address,{headers:t})),this.vaultFolderExists||(await Er("exists(vaultRoot)",()=>this.client.exists(`/${this.remoteBaseDir}/`))?this.vaultFolderExists=!0:(await Er("createDirectory(vaultRoot)",()=>this.client.createDirectory(`/${this.remoteBaseDir}/`)),this.vaultFolderExists=!0)),this.webdavConfig.depth==="auto_unknown"){let n=!1;try{if((await Er("customRequest(PROPFIND infinity)",()=>this.client.customRequest(`/${this.remoteBaseDir}/`,{method:"PROPFIND",headers:{Depth:"infinity"},responseType:"text"}))).status===403)throw Error("not support Infinity, get 403");n=!0,this.webdavConfig.depth="auto_infinity",this.webdavConfig.manualRecursive=!1}catch(r){n=!1}if(!n)try{let r=await Er("customRequest(PROPFIND depth=1)",()=>this.client.customRequest(`/${this.remoteBaseDir}/`,{method:"PROPFIND",headers:{Depth:"1"},responseType:"text"}));n=!0,this.webdavConfig.depth="auto_1",this.webdavConfig.manualRecursive=!0}catch(r){n=!1}n&&this.saveUpdatedConfigFunc!==void 0&&await this.saveUpdatedConfigFunc()}});this.webdavConfig=t,this.remoteBaseDir=n,this.vaultFolderExists=!1,this.saveUpdatedConfigFunc=r}},W6=(e,t,n)=>new Sw(e,t,n),rg=async(e,t)=>{await e.init();let n=Ql(t,e.remoteBaseDir),r=await Er("stat",()=>e.client.stat(n,{details:!1}));return V6(r,e.remoteBaseDir)},K6=async(e,t,n,r=!1,i="",s="",o=!1,a="")=>{await e.init();let l=t;i!==""&&(l=s),l=Ql(l,e.remoteBaseDir);let u=t.endsWith("/");if(u&&r)throw Error("upload function doesn't implement recursive function yet!");if(u&&!r){if(o)throw Error("you specify uploadRaw, but you also provide a folder key!");return i===""?(await Er("createDirectory(uploadFolder)",()=>e.client.createDirectory(l,{recursive:!1})),await rg(e,l)):(await Er("putFileContents(uploadFakeFolderFile)",()=>e.client.putFileContents(l,"",{overwrite:!0})),await rg(e,l))}else{let p;o?typeof a=="string"?p=new TextEncoder().encode(a).buffer:p=a:p=await n.adapter.readBinary(t);let d=p;return i!==""&&(d=await _s(p,i)),await Er("putFileContents(uploadFile)",()=>e.client.putFileContents(l,d,{overwrite:!0})),await rg(e,l)}},Y6=async(e,t)=>{if(t!==void 0)throw Error("prefix not supported");await e.init();let n=[];if(e.webdavConfig.depth==="auto_1"||e.webdavConfig.depth==="manual_1"){let i=new z6.Queue([`/${e.remoteBaseDir}`]),s=2;for(;i.length>0;){let o=[];for(;i.length>0;)o.push(i.pop());let a=(0,q6.default)(o,s),l=[];for(let u of a){let p=u.map(f=>Er(`getDirectoryContents(${f})`,()=>e.client.getDirectoryContents(f,{deep:!1,details:!1}))),d=(0,H6.default)(await Promise.all(p));l.push(...d)}for(let u=0;ue.client.getDirectoryContents(`/${e.remoteBaseDir}`,{deep:!0,details:!1}));let r=[];for(let i of n)if(!(i.filename===`/${e.remoteBaseDir}`||i.filename===`/${e.remoteBaseDir}/`))try{r.push(V6(i,e.remoteBaseDir))}catch(s){oe.warn(`skip unrecognized webdav item while listing remote: ${JSON.stringify({filename:i==null?void 0:i.filename,type:i==null?void 0:i.type})}`,s)}return{Contents:r}},_1e=async(e,t)=>{await e.init();let n=await Er("getFileContents",()=>e.client.getFileContents(Ql(t,e.remoteBaseDir)));if(n instanceof ArrayBuffer)return n;if(n instanceof j6.Buffer)return vr(n);throw Error(`unexpected file content result with type ${typeof n}`)},X6=async(e,t,n,r,i="",s="",o=!1)=>{await e.init();let a=t.endsWith("/");if(o||await Lr(t,n),a)return new ArrayBuffer(0);{let l=t;i!==""&&(l=s),l=Ql(l,e.remoteBaseDir);let u=await _1e(e,l),p=u;return i!==""&&(p=await ko(u,i)),o||await n.adapter.writeBinary(t,p,{mtime:r}),p}},Z6=async(e,t,n="",r="")=>{if(t==="/")return;let i=t;n!==""&&(i=r),i=Ql(i,e.remoteBaseDir),await e.init();try{await Er("deleteFile",()=>e.client.deleteFile(i))}catch(s){console.error("some error while deleting")}},Q6=async(e,t)=>{if(!(e.webdavConfig.address.startsWith("http://")||e.webdavConfig.address.startsWith("https://"))){let n="Error: the url should start with http(s):// but it does not!";return oe.debug(n),t!==void 0&&t(n),!1}try{if(await e.init(),await rg(e,"/")===void 0){let r="results is undefined";return oe.debug(r),t!==void 0&&t(r),!1}return!0}catch(n){return oe.debug(n),t!==void 0&&t(n),!1}};c();var e$=at(Yc()),li=require("obsidian");var kw=["User.Read","Files.ReadWrite.AppFolder","offline_access"],Tw=`obsidian://${Np}`,t$=3e4,Po={accessToken:"",clientID:"ad95e28f-d89a-43db-8ce6-0e64ef1283aa",authority:"https://login.microsoftonline.com/consumers/",refreshToken:"",accessTokenExpiresInSeconds:0,accessTokenExpiresAtTime:0,deltaLink:"",username:"",credentialsShouldBeDeletedAtTime:0};async function E1e(){let e=new Uint8Array(32),t=typeof window!="undefined"&&window.crypto||typeof globalThis!="undefined"&&globalThis.crypto;if(!t||!t.getRandomValues)throw new Error("Crypto API not available");return t.getRandomValues(e),btoa(String.fromCharCode(...e)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}async function D1e(e){let n=new TextEncoder().encode(e),r=typeof window!="undefined"&&window.crypto||typeof globalThis!="undefined"&&globalThis.crypto;if(!r||!r.subtle||!r.subtle.digest)throw new Error("Crypto subtle API not available");let i=await r.subtle.digest("SHA-256",n);return btoa(String.fromCharCode(...new Uint8Array(i))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}async function n$(e,t){let n=await E1e(),r=await D1e(n),i=t.replace(/\/$/,""),s=new URLSearchParams({client_id:e,response_type:"code",redirect_uri:Tw,scope:kw.join(" "),code_challenge:r,code_challenge_method:"S256",response_mode:"query"});return{authUrl:`${i}/oauth2/v2.0/authorize?${s.toString()}`,verifier:n}}var r$=async(e,t,n,r)=>{try{let s=new URL(t).pathname.replace(/^\//,"")||"common";console.log("OneDrive token exchange:",{url:`${t.replace(/\/$/,"")}/oauth2/v2.0/token`,tenant:s,client_id:e,redirect_uri:Tw,has_code:!!n,has_verifier:!!r});let o=(0,li.requestUrl)({url:`${t.replace(/\/$/,"")}/oauth2/v2.0/token`,method:"POST",contentType:"application/x-www-form-urlencoded",body:new URLSearchParams({tenant:s,client_id:e,scope:kw.join(" "),code:n,redirect_uri:Tw,grant_type:"authorization_code",code_verifier:r}).toString()}).json,a=new Promise((u,p)=>{window.setTimeout(()=>{p(Error("\u8BF7\u6C42\u8D85\u65F6\uFF0830\u79D2\uFF09\u3002\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002"))},t$)}),l=await Promise.race([o,a]);if(console.log("OneDrive token response:",l),l.error!==void 0){console.error("OneDrive auth error:",l);let u=l.error_description||l.error||"\u672A\u77E5\u9519\u8BEF";return{...l,error_description:u}}else return l}catch(i){if(console.error("OneDrive auth request failed:",i),i.response&&i.response.data){let s=typeof i.response.data=="string"?JSON.parse(i.response.data):i.response.data;throw Error(`Azure API \u9519\u8BEF: ${s.error_description||s.error||JSON.stringify(s)}`)}throw Error(`\u7F51\u7EDC\u8BF7\u6C42\u5931\u8D25: ${i.message||i}`)}},S1e=async(e,t,n)=>{let r=new URLSearchParams({tenant:"consumers",client_id:e,scope:kw.join(" "),refresh_token:n,grant_type:"refresh_token"}).toString(),i={url:`${t.replace(/\/$/,"")}/oauth2/v2.0/token`,method:"POST",contentType:"application/x-www-form-urlencoded",body:r},s=(0,li.requestUrl)(i).json,o=new Promise((l,u)=>{window.setTimeout(()=>{u(Error("\u8BF7\u6C42\u8D85\u65F6\uFF0830\u79D2\uFF09\u3002\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002"))},t$)}),a=await Promise.race([s,o]);return a.error!==void 0,a},i$=async(e,t,n)=>{e.accessToken=t.access_token,e.accessTokenExpiresAtTime=Date.now()+t.expires_in*1e3-300*1e3,e.accessTokenExpiresInSeconds=t.expires_in,e.refreshToken=t.refresh_token,e.credentialsShouldBeDeletedAtTime=Date.now()+WC,n!==void 0&&await n()},Jl=(e,t)=>{let n=`/drive/special/approot:/${t}`;if(e.startsWith(n))return e;let r=e;return e==="/"||e===""?n:(r.endsWith("/")&&(r=r.slice(0,r.length-1)),r=`${n}/${r}`,r)};var J6=e=>`parentPath="${e.parentReference.path}", selfName="${e.name}"`,s$=(e,t)=>{if(e===void 0||e.parentReference===void 0||e.parentReference.path===void 0||e.name===void 0)throw Error("invalid drive item shape");let n="",r=/^\/drive\/root:\/[^\/]+\/Remotely (Sync|Secure|Save)\//g,i=/^\/Livefolders\/[^\/]+\/Remotely (Sync|Secure|Save)\//g,s="/drive/items/",o=`${e.parentReference.path}/${e.name}`,a=o.match(r),l=o.match(i);if(a!==null&&o.startsWith(`${a[0]}${t}`)){let p=`${a[0]}${t}`;n=o.substring(p.length+1)}else if(l!==null&&o.startsWith(`${l[0]}${t}`)){let p=`${l[0]}${t}`;n=o.substring(p.length+1)}else if(e.parentReference.path.startsWith(s)){let p=decodeURIComponent(e.parentReference.path);if(n=p.substring(p.indexOf(":")+1),n.startsWith(`/${t}/`))n=n.substring(`/${t}/`.length),n=`${n}/${e.name}`;else if(n===`/${t}`)n=e.name;else throw Error(`we meet file/folder and do not know how to deal with it: -${J6(e)}`)}else throw Error(`we meet file/folder and do not know how to deal with it: -${J6(e)}`);let u="folder"in e;return u&&(n=`${n}/`),{key:n,lastModified:Date.parse(e.fileSystemInfo.lastModifiedDateTime),size:u?0:e.size,remoteType:"onedrive",etag:e.cTag||""}},Aw=class{constructor(t,n){S(this,"onedriveConfig");S(this,"saveUpdatedConfigFunc");S(this,"getAccessToken",async()=>{if(this.onedriveConfig.accessToken===""||this.onedriveConfig.refreshToken==="")throw Error("The user has not manually auth yet.");let t=Date.now();if(this.onedriveConfig.accessTokenExpiresAtTime>t)return this.onedriveConfig.accessToken;{let n=await S1e(this.onedriveConfig.clientID,this.onedriveConfig.authority,this.onedriveConfig.refreshToken);if(n.error!==void 0){let i=n;throw Error(`Error while refreshing accessToken: ${i.error}, ${i.error_codes}: ${i.error_description}`)}let r=n;return this.onedriveConfig.accessToken=r.access_token,this.onedriveConfig.refreshToken=r.refresh_token,this.onedriveConfig.accessTokenExpiresInSeconds=r.expires_in,this.onedriveConfig.accessTokenExpiresAtTime=t+r.expires_in*1e3-120*1e3,await this.saveUpdatedConfigFunc(),this.onedriveConfig.accessToken}});this.onedriveConfig=t,this.saveUpdatedConfigFunc=n}},Rw=class{constructor(t,n,r){S(this,"onedriveConfig");S(this,"remoteBaseDir");S(this,"vaultFolderExists");S(this,"authGetter");S(this,"saveUpdatedConfigFunc");S(this,"init",async()=>{if(this.onedriveConfig.accessToken===""||this.onedriveConfig.refreshToken==="")throw Error("The user has not manually auth yet.");if(!this.vaultFolderExists){let t=await this.getJson("/drive/special/approot/children");this.vaultFolderExists=t.value.filter(n=>n.name===this.remoteBaseDir).length>0,this.vaultFolderExists||(await this.postJson("/drive/special/approot/children",{name:`${this.remoteBaseDir}`,folder:{},"@microsoft.graph.conflictBehavior":"replace"}),this.vaultFolderExists=!0)}});S(this,"buildUrl",t=>{let n="https://graph.microsoft.com/v1.0",r="";if(t.startsWith("http://")||t.startsWith("https://"))r=t;else{let i=encodeURI(t);r=`${n}${i}`}return r});S(this,"getJson",async t=>{let n=this.buildUrl(t);oe.debug(`getJson, theUrl=${n}`);let i={Authorization:`Bearer ${await this.authGetter.getAccessToken()}`,"Cache-Control":"no-cache"};return await(0,li.requestUrl)({url:n,method:"GET",contentType:"application/json",headers:i}).json});S(this,"postJson",async(t,n)=>{let r=this.buildUrl(t);oe.debug(`postJson, theUrl=${r}`);let s={Authorization:`Bearer ${await this.authGetter.getAccessToken()}`},o={url:r,method:"POST",contentType:"application/json",body:JSON.stringify(n),headers:s};return await(0,li.requestUrl)(o).json});S(this,"patchJson",async(t,n)=>{let r=this.buildUrl(t),s={Authorization:`Bearer ${await this.authGetter.getAccessToken()}`},o={url:r,method:"PATCH",contentType:"application/json",body:JSON.stringify(n),headers:s};await(0,li.requestUrl)(o).json});S(this,"deleteJson",async t=>{let n=this.buildUrl(t);oe.debug(`deleteJson, theUrl=${n}`),await(0,li.requestUrl)({url:n,method:"DELETE",headers:{Authorization:`Bearer ${await this.authGetter.getAccessToken()}`}})});S(this,"putArrayBuffer",async(t,n)=>{let r=this.buildUrl(t);oe.debug(`putArrayBuffer, theUrl=${r}`),await(0,li.requestUrl)({url:r,method:"PUT",body:n,contentType:mi,headers:{"Content-Type":mi,Authorization:`Bearer ${await this.authGetter.getAccessToken()}`}})});S(this,"putUint8ArrayByRange",async(t,n,r,i,s)=>{let o=this.buildUrl(t);return oe.debug(`putUint8ArrayByRange, theUrl=${o}, range=${r}-${i-1}, len=${i-r}, size=${s}`),(await(0,li.requestUrl)({url:o,method:"PUT",body:vr(n.subarray(r,i)),contentType:mi,headers:{"Content-Range":`bytes ${r}-${i-1}/${s}`}})).json});this.onedriveConfig=t,this.remoteBaseDir=n,this.vaultFolderExists=!1,this.saveUpdatedConfigFunc=r,this.authGetter=new Aw(t,r)}},o$=(e,t,n)=>new Rw(e,t,n),a$=async(e,t)=>{var a;if(t!==void 0)throw Error("prefix not supported (yet)");await e.init();let n="@odata.nextLink",r="@odata.deltaLink",i=await e.getJson(`/drive/special/approot:/${e.remoteBaseDir}:/delta`),s=i.value;for(;n in i;)i=await e.getJson(i[n]),s.push(...(0,e$.default)(i.value));r in i&&(e.onedriveConfig.deltaLink=i[r],await e.saveUpdatedConfigFunc());let o=[];for(let l of s)if(l.deleted===void 0)try{let u=s$(l,e.remoteBaseDir);u.key!=="/"&&o.push(u)}catch(u){oe.warn(`skip unrecognized onedrive item while listing remote: ${JSON.stringify({name:l==null?void 0:l.name,parentPath:(a=l==null?void 0:l.parentReference)==null?void 0:a.path})}`,u)}return{Contents:o}},Cw=async(e,t)=>{await e.init();let n=Jl(t,e.remoteBaseDir),i=await e.getJson(`${n}?$select=cTag,eTag,fileSystemInfo,folder,file,name,parentReference,size`);return s$(i,e.remoteBaseDir)},c$=async(e,t,n,r=!1,i="",s="",o=void 0,a=!1,l="")=>{await e.init();let u=t;i!==""&&(u=s),u=Jl(u,e.remoteBaseDir),oe.debug(`uploadFile=${u}`);let p=t.endsWith("/");if(p&&r)throw Error("upload function doesn't implement recursive function yet!");if(p&&!r){if(a)throw Error("you specify uploadRaw, but you also provide a folder key!");if(i==="")return o!=null&&o.has(u)||await e.patchJson(u,{folder:{},"@microsoft.graph.conflictBehavior":"replace"}),await Cw(e,u);{let d=U8(1,65536),f=await _s(j8(d),i);return await e.putArrayBuffer(`${u}:/content?${new URLSearchParams({"@microsoft.graph.conflictBehavior":"replace"})}`,f),await Cw(e,u)}}else{let d;a?typeof l=="string"?d=new TextEncoder().encode(l).buffer:d=l:d=await n.adapter.readBinary(t);let f=d;i!==""&&(f=await _s(d,i));let g=327680*20,x=1e3*1e3*4;if(f.byteLength{await e.init();let n=Jl(t,e.remoteBaseDir),i=(await e.getJson(`${n}?$select=@microsoft.graph.downloadUrl`))["@microsoft.graph.downloadUrl"];return(await(0,li.requestUrl)({url:i,headers:{"Cache-Control":"no-cache"}})).arrayBuffer},u$=async(e,t,n,r,i="",s="",o=!1)=>{await e.init();let a=t.endsWith("/");if(o||await Lr(t,n),a)return new ArrayBuffer(0);{let l=t;i!==""&&(l=s),l=Jl(l,e.remoteBaseDir);let u=await C1e(e,l),p=u;return i!==""&&(p=await ko(u,i)),o||await n.adapter.writeBinary(t,p,{mtime:r}),p}},l$=async(e,t,n="",r="")=>{if(t==="/")return;let i=t;n!==""&&(i=r),i=Jl(i,e.remoteBaseDir),await e.init(),await e.deleteJson(i)},p$=async(e,t)=>{try{return await Ow(e)!==""}catch(n){return oe.debug(n),t!==void 0&&t(n),!1}},Ow=async e=>(await e.init(),(await e.getJson("/me?$select=displayName")).displayName||"");var Fw=(e,t,n)=>{let r=(0,d$.default)(e);delete r.onedrive,delete r.vaultRandomID;let i=JSON.stringify(r),s=c0.deflate(i),o=btoa(String.fromCharCode.apply(null,s)),a=encodeURIComponent(o),l=encodeURIComponent(t),u=encodeURIComponent(n);return`obsidian://${Pp}?func=settings&version=${u}&vault=${l}&data=${a}&compressed=1`},og=(e,t)=>{let n=o=>{if(typeof o!="string")return o;try{return decodeURIComponent(o)}catch(a){return o}},r=o=>{var p,d,f;let a=new Set(["s3","webdav","onedrive"]),l=o==null?void 0:o.serviceType,u=a.has(l)?l:"s3";return{...o,serviceType:u,s3:{...jh,...(p=o==null?void 0:o.s3)!=null?p:{}},webdav:{...sg,...(d=o==null?void 0:o.webdav)!=null?d:{}},onedrive:{...Po,...(f=o==null?void 0:o.onedrive)!=null?f:{}}}},i=e;if(i={...i,vault:n(i.vault),data:n(i.data)},i.func===void 0||i.func!=="settings"||i.vault===void 0||i.data===void 0)return{status:"error",message:`the uri is not for exporting/importing settings: ${JSON.stringify(e)}`};if(i.vault!==t)return{status:"error",message:`the target vault is ${i.vault} but you are currently in ${t}: ${JSON.stringify(e)}`};let s={};try{let o=i.data;if(i.compressed==="1"||i.compressed==="true")try{let a=atob(o),l=new Uint8Array(a.length);for(let p=0;pcrypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");var Mw=require("obsidian");var Iw=20250430,As="remotelysavedb",R1e="schemaversion",k1e="filefolderoperationhistory",O1e="syncmetadatahistory",F1e="syncplanshistory",B1e="vaultrandomidmapping",I1e="loggeroutput",P1e="prevsyncrecords",Pw=async(e,t)=>{let i=[],s=await e.fileHistoryTbl.keys();for(let l of s){if(l.startsWith(t))continue;let u=await e.fileHistoryTbl.getItem(l);if(u==null)continue;(u.vaultRandomID===void 0||u.vaultRandomID==="")&&(u.vaultRandomID=t);let p=`${t} ${l}`;i.push(e.fileHistoryTbl.setItem(p,u)),i.push(e.fileHistoryTbl.removeItem(l))}let o=await e.syncMappingTbl.keys();for(let l of o){if(l.startsWith(t))continue;let u=await e.syncMappingTbl.getItem(l);if(u==null)continue;(u.vaultRandomID===void 0||u.vaultRandomID==="")&&(u.vaultRandomID=t);let p=`${t} ${l}`;i.push(e.syncMappingTbl.setItem(p,u)),i.push(e.syncMappingTbl.removeItem(l))}let a=await e.syncPlansTbl.keys();for(let l of a){if(l.startsWith(t))continue;let u=await e.syncPlansTbl.getItem(l);if(u==null)continue;(u.vaultRandomID===void 0||u.vaultRandomID==="")&&(u.vaultRandomID=t);let p=`${t} ${l}`;i.push(e.syncPlansTbl.setItem(p,u)),i.push(e.syncPlansTbl.removeItem(l))}await Promise.all(i),await e.versionTbl.setItem("version",20220108)},ag=async(e,t)=>{await e.versionTbl.setItem("version",20220326)},Nw=async(e,t)=>{await e.versionTbl.setItem("version",20250430)},N1e=async(e,t,n,r)=>{if(t!==n){if(t===20211114&&n===20220108)return await Pw(e,r);if(t===20220108&&n===20220326)return await ag(e,r);if(t===20220326&&n===20250430)return await Nw(e,r);if(t===20211114&&n===20220326){await Pw(e,r),await ag(e,r);return}if(t===20211114&&n===20250430){await Pw(e,r),await ag(e,r),await Nw(e,r);return}if(t===20220108&&n===20250430){await ag(e,r),await Nw(e,r);return}throw n{let n={versionTbl:Ts.default.createInstance({name:As,storeName:R1e}),fileHistoryTbl:Ts.default.createInstance({name:As,storeName:k1e}),syncMappingTbl:Ts.default.createInstance({name:As,storeName:O1e}),syncPlansTbl:Ts.default.createInstance({name:As,storeName:F1e}),vaultRandomIDMappingTbl:Ts.default.createInstance({name:As,storeName:B1e}),loggerOutputTbl:Ts.default.createInstance({name:As,storeName:I1e}),prevSyncRecordsTbl:Ts.default.createInstance({name:As,storeName:P1e})},r="",i=await n.vaultRandomIDMappingTbl.getItem(`path2id ${e}`);if(i===null?(t!==""?r=t:r=h$(),await n.vaultRandomIDMappingTbl.setItem(`path2id ${e}`,r),await n.vaultRandomIDMappingTbl.setItem(`id2path ${r}`,e)):r=i,r==="")throw Error("no vaultRandomID found or generated");let s=await n.versionTbl.getItem("version");return s===null?await n.versionTbl.setItem("version",Iw):s===Iw||await N1e(n,s,Iw,r),{db:n,vaultRandomID:r}},M1e=async(e,t)=>{let n=(await e.prevSyncRecordsTbl.keys()).filter(i=>i.startsWith(`${t} `)),r=[];for(let i of n)r.push(e.prevSyncRecordsTbl.removeItem(i));await Promise.all(r)},y$=async(e,t,n)=>{await M1e(e,t);let r=[];for(let i of n)r.push(e.prevSyncRecordsTbl.setItem(`${t} ${i.key}`,i));await Promise.all(r)},cg=async(e,t)=>{let n=[];return await e.prevSyncRecordsTbl.iterate((r,i,s)=>{i.startsWith(`${t} `)&&n.push(r)}),n},x$=async()=>{let e=indexedDB.deleteDatabase(As);e.onerror=t=>{oe.error("tried to delete db but something goes wrong!"),oe.error(t)}},v$=async(e,t)=>{let n=[];return await e.fileHistoryTbl.iterate((r,i,s)=>{i.startsWith(`${t} `)&&n.push(r)}),n.sort((r,i)=>r.actionWhen-i.actionWhen),n},Rs=async(e,t,n)=>{let r=`${n} ${t}`,i=await e.fileHistoryTbl.getItem(r);i!==null&&(i.actionType==="delete"||i.actionType==="rename")&&await e.fileHistoryTbl.removeItem(r)};var Lw=async(e,t,n,r,i,s,o,a,l,u)=>{let p={localKey:n,localMtime:r,localSize:i,remoteKey:s,remoteMtime:o,remoteSize:a,remoteExtraKey:l,remoteType:e,keyType:n.endsWith("/")?"folder":"file",vaultRandomID:u};await t.syncMappingTbl.setItem(`${u} ${s}`,p)},b$=async(e,t,n,r,i,s)=>{let o=await t.syncMappingTbl.getItem(`${s} ${n}`);if(o!==null&&o.remoteKey===n&&o.remoteMtime===r&&o.remoteExtraKey===i&&o.remoteType===e)return o},_$=async e=>{await e.syncMappingTbl.clear()};var w$=async e=>{await e.syncPlansTbl.clear()},E$=async(e,t)=>{let n=[];return await e.syncPlansTbl.iterate((r,i,s)=>{i.startsWith(`${t} `)&&n.push(r)}),n.sort((r,i)=>-(r.ts-i.ts)),n===void 0?[]:n.map(r=>r.syncPlan)},$w=async e=>{let i=Date.now()-6048e5,s=(await e.syncPlansTbl.keys()).map(l=>{let u=parseInt(l.split(" ")[1]),p=u<=i;return{ts:u,key:l,expired:p}}),o=new Set(s.filter(l=>l.expired).map(l=>l.key));s.length-o.size>1e4&&(s=s.filter(l=>!l.expired),s.sort((l,u)=>-(l.ts-u.ts)),s.slice(1e4).forEach(l=>{o.add(l.key)}));let a=[];o.forEach(l=>{a.push(e.syncPlansTbl.removeItem(l))}),await Promise.all(a)},D$=async(e,t)=>{let n=[];return await e.loggerOutputTbl.iterate((r,i,s)=>{if(i.startsWith(`${t} `)){let o={ts:parseInt(i.split(" ")[1]),r};n.push(o)}}),n.sort((r,i)=>r.ts-i.ts),n===void 0?[]:n.map(r=>r.r)},ug=async(e,t,...n)=>{let r=Date.now(),i=Qn(r),s=`${t} ${r}`;try{let o=[`[${i}]`,...n.map(a=>q8(a))].join(" ");e.loggerOutputTbl.setItem(s,o)}catch(o){}},S$=async e=>{await e.loggerOutputTbl.clear()},ep=async e=>{let i=Date.now()-6048e5,s=(await e.loggerOutputTbl.keys()).map(l=>{let u=parseInt(l.split(" ")[1]),p=u<=i;return{ts:u,key:l,expired:p}}),o=new Set(s.filter(l=>l.expired).map(l=>l.key));s.length-o.size>1e4&&(s=s.filter(l=>!l.expired),s.sort((l,u)=>-(l.ts-u.ts)),s.slice(1e4).forEach(l=>{o.add(l.key)}));let a=[];o.forEach(l=>{a.push(e.loggerOutputTbl.removeItem(l))}),await Promise.all(a)};c();var pi=class{constructor(t,n,r,i,s,o){S(this,"serviceType");S(this,"s3Config");S(this,"webdavClient");S(this,"webdavConfig");S(this,"onedriveClient");S(this,"onedriveConfig");S(this,"uploadToRemote",async(t,n,r=!1,i="",s="",o=void 0,a=!1,l="")=>{if(this.serviceType==="s3")return await Y8(bc(this.s3Config),this.s3Config,t,n,r,i,s,a,l);if(this.serviceType==="webdav")return await K6(this.webdavClient,t,n,r,i,s,a,l);if(this.serviceType==="onedrive")return await c$(this.onedriveClient,t,n,r,i,s,o,a,l);throw Error(`not supported service type ${this.serviceType}`)});S(this,"listFromRemote",async t=>{if(this.serviceType==="s3")return await k_(bc(this.s3Config),this.s3Config,t);if(this.serviceType==="webdav")return await Y6(this.webdavClient,t);if(this.serviceType==="onedrive")return await a$(this.onedriveClient,t);throw Error(`not supported service type ${this.serviceType}`)});S(this,"downloadFromRemote",async(t,n,r,i="",s="",o=!1)=>{if(this.serviceType==="s3")return await X8(bc(this.s3Config),this.s3Config,t,n,r,i,s,o);if(this.serviceType==="webdav")return await X6(this.webdavClient,t,n,r,i,s,o);if(this.serviceType==="onedrive")return await u$(this.onedriveClient,t,n,r,i,s,o);throw Error(`not supported service type ${this.serviceType}`)});S(this,"deleteFromRemote",async(t,n="",r="")=>{if(this.serviceType==="s3")return await Z8(bc(this.s3Config),this.s3Config,t,n,r);if(this.serviceType==="webdav")return await Z6(this.webdavClient,t,n,r);if(this.serviceType==="onedrive")return await l$(this.onedriveClient,t,n,r);throw Error(`not supported service type ${this.serviceType}`)});S(this,"checkConnectivity",async t=>{if(this.serviceType==="s3")return await Q8(bc(this.s3Config),this.s3Config,t);if(this.serviceType==="webdav")return await Q6(this.webdavClient,t);if(this.serviceType==="onedrive")return await p$(this.onedriveClient,t);throw Error(`not supported service type ${this.serviceType}`)});S(this,"getUser",async()=>{if(this.serviceType==="onedrive")return await Ow(this.onedriveClient);throw Error(`not supported service type ${this.serviceType}`)});S(this,"revokeAuth",async()=>{});if(this.serviceType=t,t==="s3")this.s3Config=n;else if(t==="webdav"){if(s===void 0||o===void 0)throw Error("remember to provide vault name and callback while init webdav client");let a=r.remoteBaseDir||s;this.webdavConfig=r,this.webdavClient=W6(this.webdavConfig,a,o)}else if(t==="onedrive"){if(s===void 0||o===void 0)throw Error("remember to provide vault name and callback while init onedrive client");let a=i.remoteBaseDir||s;this.onedriveConfig=i,this.onedriveClient=o$(this.onedriveConfig,a,o)}else throw Error(`not supported service type ${this.serviceType}`)}};c();var ie=require("obsidian"),Ag=at(Yc());c();var L1e=e=>{let t=JSON.parse(e),{ts:n,tsFmt:r,remoteType:i,mixedStates:s}=t,o=["key","remoteEncryptedKey","existLocal","sizeLocal","sizeLocalEnc","mtimeLocal","deltimeLocal","changeLocalMtimeUsingMapping","existRemote","sizeRemote","sizeRemoteEnc","mtimeRemote","deltimeRemote","changeRemoteMtimeUsingMapping","decision","decisionBranch"],a=[`ts: ${n}${r!==void 0?" / "+r:""}`,`remoteType: ${i}`,`| ${o.join(" | ")} |`,`| ${o.map(l=>"---").join(" | ")} |`];for(let[l,u]of Object.entries(t.mixedStates)){let p=l,d=u,f=[];for(let m of o){let g=d[m];if(g===void 0){f.push("");continue}if(m==="mtimeLocal"||m==="deltimeLocal"||m==="mtimeRemote"||m==="deltimeRemote"){let x=d[m+"Fmt"],v=`${g}${x!==void 0?" / "+x:""}`;f.push(v)}else f.push(g)}a.push(`| ${f.join(" | ")} |`)}return a.join(` -`)},kc=async(e,t,n,r="json")=>{await Lr(Ns,t);let i=await E$(e,n),s="";if(i.length===0)s="No sync plans history found";else if(r==="json")s=`Sync plans found: +`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function d1e(e,t,n,r){let i=this.extractAttributes(e);if(r.push(t,i),this.checkStopNode(r)){let o=this.buildRawContent(e),a=this.buildAttributesForStopNode(e);return r.pop(),this.buildObjectNode(o,t,a,n)}let s=this.j2x(e,n+1,r);return r.pop(),e[this.options.textNodeName]!==void 0&&Object.keys(e).length===1?this.buildTextValNode(e[this.options.textNodeName],t,s.attrStr,n,r):this.buildObjectNode(s.val,t,s.attrStr,n)}function f1e(e){return this.options.indentBy.repeat(e)}function m1e(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}wr.prototype.build=function(e){if(this.options.preserveOrder)return a1e(e,this.options);{Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e});let t=new ep;return this.j2x(e,0,t).val}},wr.prototype.j2x=function(e,t,n){let r="",i="";if(this.options.maxNestedTags&&n.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let s=this.options.jPath?n.toString():n,o=this.checkStopNode(n);for(let a in e)if(Object.prototype.hasOwnProperty.call(e,a))if(e[a]===void 0)this.isAttribute(a)&&(i+="");else if(e[a]===null)this.isAttribute(a)||a===this.options.cdataPropName?i+="":a[0]==="?"?i+=this.indentate(t)+"<"+a+"?"+this.tagEndChar:i+=this.indentate(t)+"<"+a+"/"+this.tagEndChar;else if(e[a]instanceof Date)i+=this.buildTextValNode(e[a],a,"",t,n);else if(typeof e[a]!="object"){let l=this.isAttribute(a);if(l&&!this.ignoreAttributesFn(l,s))r+=this.buildAttrPairStr(l,""+e[a],o);else if(!l)if(a===this.options.textNodeName){let u=this.options.tagValueProcessor(a,""+e[a]);i+=this.replaceEntitiesValue(u)}else{n.push(a);let u=this.checkStopNode(n);if(n.pop(),u){let p=""+e[a];i+=p===""?this.indentate(t)+"<"+a+this.closeTag(a)+this.tagEndChar:this.indentate(t)+"<"+a+">"+p+""+g+"${i}`;else if(typeof i=="object"&&i!==null){let s=this.buildRawContent(i),o=this.buildAttributesForStopNode(i);t+=s===""?`<${n}${o}/>`:`<${n}${o}>${s}`}}else if(typeof r=="object"&&r!==null){let i=this.buildRawContent(r),s=this.buildAttributesForStopNode(r);t+=i===""?`<${n}${s}/>`:`<${n}${s}>${i}`}else t+=`<${n}>${r}`}return t},wr.prototype.buildAttributesForStopNode=function(e){if(!e||typeof e!="object")return"";let t="";if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){let n=e[this.options.attributesGroupName];for(let r in n){if(!Object.prototype.hasOwnProperty.call(n,r))continue;let i=r.startsWith(this.options.attributeNamePrefix)?r.substring(this.options.attributeNamePrefix.length):r,s=n[r];s===!0&&this.options.suppressBooleanAttributes?t+=" "+i:t+=" "+i+'="'+s+'"'}}else for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let r=this.isAttribute(n);if(r){let i=e[n];i===!0&&this.options.suppressBooleanAttributes?t+=" "+r:t+=" "+r+'="'+i+'"'}}return t},wr.prototype.buildObjectNode=function(e,t,n,r){if(e==="")return t[0]==="?"?this.indentate(r)+"<"+t+n+"?"+this.tagEndChar:this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar;{let i="`+this.newLine:this.indentate(r)+"<"+t+n+s+this.tagEndChar+e+this.indentate(r)+i:this.indentate(r)+"<"+t+n+s+">"+e+i}},wr.prototype.closeTag=function(e){let t="";return this.options.unpairedTags.indexOf(e)!==-1?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`>/g,"]]]]>");return this.indentate(r)+``+this.newLine}if(this.options.commentPropName!==!1&&t===this.options.commentPropName){let s=String(e).replace(/--/g,"- -").replace(/-$/,"- ");return this.indentate(r)+``+this.newLine}if(t[0]==="?")return this.indentate(r)+"<"+t+n+"?"+this.tagEndChar;{let s=this.options.tagValueProcessor(t,e);return s=this.replaceEntitiesValue(s),s===""?this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+"<"+t+n+">"+s+"0&&this.options.processEntities)for(let t=0;t3&&arguments[3]!==void 0?arguments[3]:{},i=Bt({url:pt(e.remoteURL,lt(t)),method:"UNLOCK",headers:{"Lock-Token":n}},e,r);return hw(Ft(i,e),(function(s){if(It(e,s),s.status!==204&&s.status!==200)throw vw(s)}))})),x1e=z6((function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{refreshToken:r,timeout:i=v1e}=n,s={Accept:"text/plain,application/xml",Timeout:i};r&&(s.If=r);let o=Bt({url:pt(e.remoteURL,lt(t)),method:"LOCK",headers:s,data:g1e(e.contactHref)},e,n);return hw(Ft(o,e),(function(a){return It(e,a),hw(a.text(),(function(l){let u=(f=l,new tg({removeNSPrefix:!0,parseAttributeValue:!0,parseTagValue:!0}).parse(f)),p=Li().get(u,"prop.lockdiscovery.activelock.locktoken.href"),d=Li().get(u,"prop.lockdiscovery.activelock.timeout");var f;if(!p)throw vw(a,"No lock token received: ");return{token:p,serverTimeout:d}}))}))})),v1e="Infinite, Second-4100000000";function X_(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var b1e=(function(e){return function(){for(var t=[],n=0;n1&&arguments[1]!==void 0?arguments[1]:{},n=t.path||"/",r=Bt({url:pt(e.remoteURL,n),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,t);return X_(Ft(r,e),(function(i){return It(e,i),X_(i.text(),(function(s){return X_(ig(s,e.parsing),(function(o){let a=(function(l){try{let[u]=l.multistatus.response,{propstat:{prop:{"quota-used-bytes":p,"quota-available-bytes":d}}}=u;return p!==void 0&&d!==void 0?{used:parseInt(String(p),10),available:WEe(d)}:null}catch(u){}return null})(o);return Fc(i,a,t.details)}))}))}))}));function Z_(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var _1e=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{},{details:r=!1}=n,i=Bt({url:pt(e.remoteURL,lt(t)),method:"SEARCH",headers:{Accept:"text/plain,application/xml","Content-Type":e.headers["Content-Type"]||"application/xml; charset=utf-8"}},e,n);return Z_(Ft(i,e),(function(s){return It(e,s),Z_(s.text(),(function(o){return Z_(ig(o,e.parsing),(function(a){let l=(function(u,p,d){let f={truncated:!1,results:[]};return f.truncated=u.multistatus.response.some((m=>{var g,x;return((x=(m.status||((g=m.propstat)==null?void 0:g.status)).split(" ",3))==null?void 0:x[1])==="507"&&m.href.replace(/\/$/,"").endsWith(lt(p).replace(/\/$/,""))})),u.multistatus.response.forEach((m=>{if(m.propstat===void 0)return;let g=m.href.split("/").map(decodeURIComponent).join("/");f.results.push(_w(m.propstat.prop,g,d))})),f})(a,t,r);return Fc(s,l,r)}))}))}))})),w1e=(function(e){return function(){for(var t=[],n=0;n3&&arguments[3]!==void 0?arguments[3]:{},i=Bt({url:pt(e.remoteURL,lt(t)),method:"MOVE",headers:{Destination:pt(e.remoteURL,lt(n)),Overwrite:r.overwrite===!1?"F":"T"}},e,r);return o=function(a){It(e,a)},(s=Ft(i,e))&&s.then||(s=Promise.resolve(s)),o?s.then(o):s;var s,o})),E1e=st(172);function D1e(e){if(d6(e))return e.byteLength;if(f6(e))return e.length;if(typeof e=="string")return(0,E1e.d)(e);throw new Er({info:{code:As.DataTypeNoLength}},"Cannot calculate data length: Invalid type")}var S1e=(function(e){return function(){for(var t=[],n=0;n3&&arguments[3]!==void 0?arguments[3]:{},{contentLength:i=!0,overwrite:s=!0}=r,o={"Content-Type":"application/octet-stream"};i===!1||(o["Content-Length"]=typeof i=="number"?`${i}`:`${D1e(n)}`),s||(o["If-None-Match"]="*");let a=Bt({url:pt(e.remoteURL,lt(t)),method:"PUT",headers:o,data:n},e,r);return u=function(p){try{It(e,p)}catch(d){let f=d;if(f.status!==412||s)throw f;return!1}return!0},(l=Ft(a,e))&&l.then||(l=Promise.resolve(l)),u?l.then(u):l;var l,u})),q6=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{},r=Bt({url:pt(e.remoteURL,lt(t)),method:"OPTIONS"},e,n);return s=function(o){var a,l;try{It(e,o)}catch(u){throw u}return{compliance:((a=o.headers.get("DAV"))!=null?a:"").split(",").map((u=>u.trim())),server:(l=o.headers.get("Server"))!=null?l:""}},(i=Ft(r,e))&&i.then||(i=Promise.resolve(i)),s?i.then(s):i;var i,s}));function Zl(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var C1e=Dw((function(e,t,n,r,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(n>r||n<0)throw new Er({info:{code:As.InvalidUpdateRange}},`Invalid update range ${n} for partial update`);let o={"Content-Type":"application/octet-stream","Content-Length":""+(r-n+1),"Content-Range":`bytes ${n}-${r}/*`},a=Bt({url:pt(e.remoteURL,lt(t)),method:"PUT",headers:o,data:i},e,s);return Zl(Ft(a,e),(function(l){It(e,l)}))}));function a6(e,t){var n=e();return n&&n.then?n.then(t):t(n)}var T1e=Dw((function(e,t,n,r,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(n>r||n<0)throw new Er({info:{code:As.InvalidUpdateRange}},`Invalid update range ${n} for partial update`);let o={"Content-Type":"application/x-sabredav-partialupdate","Content-Length":""+(r-n+1),"X-Update-Range":`bytes=${n}-${r}`},a=Bt({url:pt(e.remoteURL,lt(t)),method:"PATCH",headers:o,data:i},e,s);return Zl(Ft(a,e),(function(l){It(e,l)}))}));function Dw(e){return function(){for(var t=[],n=0;n5&&arguments[5]!==void 0?arguments[5]:{};return Zl(q6(e,t,s),(function(o){let a=!1;return a6((function(){if(o.compliance.includes("sabredav-partialupdate"))return Zl(T1e(e,t,n,r,i,s),(function(l){return a=!0,l}))}),(function(l){let u=!1;return a?l:a6((function(){if(o.server.includes("Apache")&&o.compliance.includes(""))return Zl(C1e(e,t,n,r,i,s),(function(p){return u=!0,p}))}),(function(p){if(u)return p;throw new Er({info:{code:As.NotSupported}},"Not supported")}))}))}))})),R1e="https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";function Sw(e){var v;let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{authType:n=null,remoteBasePath:r,contactHref:i=R1e,entityDecoder:s,ha1:o,headers:a={},httpAgent:l,httpsAgent:u,password:p,token:d,username:f,withCredentials:m}=t,g=n;g||(g=f||p?Xt.Password:Xt.None);let x={authType:g,remoteBasePath:r,contactHref:i,ha1:o,headers:Object.assign({},a),httpAgent:l,httpsAgent:u,password:p,parsing:{attributeNamePrefix:(v=t.attributeNamePrefix)!=null?v:"@",attributeParsers:[],entityDecoder:s,tagParsers:[P6]},remotePath:Cwe(e),remoteURL:e,token:d,username:f,withCredentials:m};return l6(x,f,p,d,o),{copyFile:(_,w,E)=>uEe(x,_,w,E),createDirectory:(_,w)=>fw(x,_,w),createReadStream:(_,w)=>(function(E,S){let A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},k=new(s6()).PassThrough;return ZEe(E,S,A).then((I=>{I.pipe(k)})).catch((I=>{k.emit("error",I)})),k})(x,_,w),createWriteStream:(_,w,E)=>(function(S,A){let k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:QEe,M=new(s6()).PassThrough,U={};k.overwrite===!1&&(U["If-None-Match"]="*");let $=Bt({url:pt(S.remoteURL,lt(A)),method:"PUT",headers:U,data:M,maxRedirects:0},S,k);return Ft($,S).then((W=>It(S,W))).then((W=>{setTimeout((()=>{I(W)}),0)})).catch((W=>{M.emit("error",W)})),M})(x,_,w,E),customRequest:(_,w)=>JEe(x,_,w),deleteFile:(_,w)=>e1e(x,_,w),exists:(_,w)=>t1e(x,_,w),getDirectoryContents:(_,w)=>n1e(x,_,w),getFileContents:(_,w)=>s1e(x,_,w),getFileDownloadLink:_=>(function(w,E){let S=pt(w.remoteURL,lt(E)),A=/^https:/i.test(S)?"https":"http";switch(w.authType){case Xt.None:break;case Xt.Password:{let k=LL(w.headers.Authorization.replace(/^Basic /i,"").trim());S=S.replace(/^https?:\/\//,`${A}://${k}@`);break}default:throw new Er({info:{code:As.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${w.authType}`)}return S})(x,_),getFileUploadLink:_=>(function(w,E){let S=`${pt(w.remoteURL,lt(E))}?Content-Type=application/octet-stream`,A=/^https:/i.test(S)?"https":"http";switch(w.authType){case Xt.None:break;case Xt.Password:{let k=LL(w.headers.Authorization.replace(/^Basic /i,"").trim());S=S.replace(/^https?:\/\//,`${A}://${k}@`);break}default:throw new Er({info:{code:As.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${w.authType}`)}return S})(x,_),getHeaders:()=>Object.assign({},x.headers),getQuota:_=>b1e(x,_),lock:(_,w)=>x1e(x,_,w),moveFile:(_,w,E)=>w1e(x,_,w,E),putFileContents:(_,w,E)=>S1e(x,_,w,E),partialUpdateFileContents:(_,w,E,S,A)=>A1e(x,_,w,E,S,A),getDAVCompliance:_=>q6(x,_),search:(_,w)=>_1e(x,_,w),setHeaders:_=>{x.headers=Object.assign({},_)},stat:(_,w)=>ww(x,_,w),unlock:(_,w,E)=>y1e(x,_,w,E),registerAttributeParser:_=>{x.parsing.attributeParsers.push(_)},registerTagParser:_=>{x.parsing.tagParsers.push(_)}}}var Hn=[300,700,1300],og=e=>new Promise(t=>setTimeout(t,e)),K6=e=>{if(e==null)return!1;let t=e;return!!(t.status===503||typeof t.message=="string"&&/\bstatus\s*503\b/i.test(t.message))},k1e=e=>e==null?!1:e.status===503,Dr=async(e,t)=>{let n;for(let r=0;r<=Hn.length;r++)try{let i=await t();if(k1e(i)&&r{let t=typeof e=="string"?"GET":e.method,n=typeof e=="string"?e:e.url;for(let r=0;r<=Hn.length;r++)try{let i=await(0,Cw.requestUrl)(e);if(i.status===503&&r{let t={...e.headers};delete t.host,delete t.Host,delete t["content-length"],delete t["Content-Length"];let n=await O1e({url:e.url,method:e.method,body:e.data,headers:t}),r;if(e.responseType===void 0)r={data:void 0,status:n.status,statusText:Io(n.status),headers:n.headers};else if(e.responseType==="json")r={data:n.json,status:n.status,statusText:Io(n.status),headers:n.headers};else if(e.responseType==="text")r={data:n.text,status:n.status,statusText:Io(n.status),headers:n.headers};else if(e.responseType==="arraybuffer")r={data:n.arrayBuffer,status:n.status,statusText:Io(n.status),headers:n.headers};else throw Error(`do not know how to deal with responseType = ${e.responseType}`);return r});var ag={address:"",username:"",password:"",authType:"basic",manualRecursive:!1,depth:"auto_unknown",remoteBaseDir:""},tp=(e,t)=>{let n=e;return(e==="/"||e==="")&&(n=`/${t}/`),e.startsWith("/")||(n=`/${t}/${e}`),n},F1e=(e,t)=>{if(e===`/${t}`||e.startsWith(`/${t}/`))return e.slice(`/${t}/`.length);let n=/^\/Remotely (?:Save|Secure|Sync)\/[^/]+\//,r=e.match(n);if(r!==null)return e.slice(r[0].length);throw Error(`"${e}" doesn't starts with "/${t}/" and is not a recognized legacy path`)},Y6=(e,t)=>{let n=F1e(e.filename,t);return e.type==="directory"&&!n.endsWith("/")&&(n=`${n}/`),{key:n,lastModified:Date.parse(e.lastmod).valueOf(),size:e.size,remoteType:"webdav",etag:e.etag||void 0}},Tw=class{constructor(t,n,r){C(this,"webdavConfig");C(this,"remoteBaseDir");C(this,"client");C(this,"vaultFolderExists");C(this,"saveUpdatedConfigFunc");C(this,"init",async()=>{let t={"Cache-Control":"no-cache"};if(this.client===void 0&&(this.webdavConfig.username!==""&&this.webdavConfig.password!==""?this.client=Sw(this.webdavConfig.address,{username:this.webdavConfig.username,password:this.webdavConfig.password,headers:t,authType:this.webdavConfig.authType==="digest"?Xt.Digest:Xt.Password}):this.client=Sw(this.webdavConfig.address,{headers:t})),this.vaultFolderExists||(await Dr("exists(vaultRoot)",()=>this.client.exists(`/${this.remoteBaseDir}/`))?this.vaultFolderExists=!0:(await Dr("createDirectory(vaultRoot)",()=>this.client.createDirectory(`/${this.remoteBaseDir}/`)),this.vaultFolderExists=!0)),this.webdavConfig.depth==="auto_unknown"){let n=!1;try{if((await Dr("customRequest(PROPFIND infinity)",()=>this.client.customRequest(`/${this.remoteBaseDir}/`,{method:"PROPFIND",headers:{Depth:"infinity"},responseType:"text"}))).status===403)throw Error("not support Infinity, get 403");n=!0,this.webdavConfig.depth="auto_infinity",this.webdavConfig.manualRecursive=!1}catch(r){n=!1}if(!n)try{let r=await Dr("customRequest(PROPFIND depth=1)",()=>this.client.customRequest(`/${this.remoteBaseDir}/`,{method:"PROPFIND",headers:{Depth:"1"},responseType:"text"}));n=!0,this.webdavConfig.depth="auto_1",this.webdavConfig.manualRecursive=!0}catch(r){n=!1}n&&this.saveUpdatedConfigFunc!==void 0&&await this.saveUpdatedConfigFunc()}});this.webdavConfig=t,this.remoteBaseDir=n,this.vaultFolderExists=!1,this.saveUpdatedConfigFunc=r}},X6=(e,t,n)=>new Tw(e,t,n),sg=async(e,t)=>{await e.init();let n=tp(t,e.remoteBaseDir),r=await Dr("stat",()=>e.client.stat(n,{details:!1}));return Y6(r,e.remoteBaseDir)},Z6=async(e,t,n,r=!1,i="",s="",o=!1,a="")=>{await e.init();let l=t;i!==""&&(l=s),l=tp(l,e.remoteBaseDir);let u=t.endsWith("/");if(u&&r)throw Error("upload function doesn't implement recursive function yet!");if(u&&!r){if(o)throw Error("you specify uploadRaw, but you also provide a folder key!");return i===""?(await Dr("createDirectory(uploadFolder)",()=>e.client.createDirectory(l,{recursive:!1})),await sg(e,l)):(await Dr("putFileContents(uploadFakeFolderFile)",()=>e.client.putFileContents(l,"",{overwrite:!0})),await sg(e,l))}else{let p;o?typeof a=="string"?p=new TextEncoder().encode(a).buffer:p=a:p=await n.adapter.readBinary(t);let d=p;return i!==""&&(d=await Ds(p,i)),await Dr("putFileContents(uploadFile)",()=>e.client.putFileContents(l,d,{overwrite:!0})),await sg(e,l)}},Q6=async(e,t)=>{if(t!==void 0)throw Error("prefix not supported");await e.init();let n=[];if(e.webdavConfig.depth==="auto_1"||e.webdavConfig.depth==="manual_1"){let i=new G6.Queue([`/${e.remoteBaseDir}`]),s=2;for(;i.length>0;){let o=[];for(;i.length>0;)o.push(i.pop());let a=(0,V6.default)(o,s),l=[];for(let u of a){let p=u.map(f=>Dr(`getDirectoryContents(${f})`,()=>e.client.getDirectoryContents(f,{deep:!1,details:!1}))),d=(0,W6.default)(await Promise.all(p));l.push(...d)}for(let u=0;ue.client.getDirectoryContents(`/${e.remoteBaseDir}`,{deep:!0,details:!1}));let r=[];for(let i of n)if(!(i.filename===`/${e.remoteBaseDir}`||i.filename===`/${e.remoteBaseDir}/`))try{r.push(Y6(i,e.remoteBaseDir))}catch(s){se.warn(`skip unrecognized webdav item while listing remote: ${JSON.stringify({filename:i==null?void 0:i.filename,type:i==null?void 0:i.type})}`,s)}return{Contents:r}},B1e=async(e,t)=>{await e.init();let n=await Dr("getFileContents",()=>e.client.getFileContents(tp(t,e.remoteBaseDir)));if(n instanceof ArrayBuffer)return n;if(n instanceof H6.Buffer)return br(n);throw Error(`unexpected file content result with type ${typeof n}`)},J6=async(e,t,n,r,i="",s="",o=!1)=>{await e.init();let a=t.endsWith("/");if(o||await $r(t,n),a)return new ArrayBuffer(0);{let l=t;i!==""&&(l=s),l=tp(l,e.remoteBaseDir);let u=await B1e(e,l),p=u;return i!==""&&(p=await Bo(u,i)),o||await n.adapter.writeBinary(t,p,{mtime:r}),p}},e$=async(e,t,n="",r="")=>{if(t==="/")return;let i=t;n!==""&&(i=r),i=tp(i,e.remoteBaseDir),await e.init();try{await Dr("deleteFile",()=>e.client.deleteFile(i))}catch(s){console.error("some error while deleting")}},t$=async(e,t)=>{if(!(e.webdavConfig.address.startsWith("http://")||e.webdavConfig.address.startsWith("https://"))){let n="Error: the url should start with http(s):// but it does not!";return se.debug(n),t!==void 0&&t(n),!1}try{if(await e.init(),await sg(e,"/")===void 0){let r="results is undefined";return se.debug(r),t!==void 0&&t(r),!1}return!0}catch(n){return se.debug(n),t!==void 0&&t(n),!1}};c();var r$=at(Jc()),di=require("obsidian");var Fw=["User.Read","Files.ReadWrite.AppFolder","offline_access"],Rw=`obsidian://${Lp}`,i$=3e4,Lo={accessToken:"",clientID:"ad95e28f-d89a-43db-8ce6-0e64ef1283aa",authority:"https://login.microsoftonline.com/consumers/",refreshToken:"",accessTokenExpiresInSeconds:0,accessTokenExpiresAtTime:0,deltaLink:"",username:"",credentialsShouldBeDeletedAtTime:0};async function P1e(){let e=new Uint8Array(32),t=typeof window!="undefined"&&window.crypto||typeof globalThis!="undefined"&&globalThis.crypto;if(!t||!t.getRandomValues)throw new Error("Crypto API not available");return t.getRandomValues(e),btoa(String.fromCharCode(...e)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}async function N1e(e){let n=new TextEncoder().encode(e),r=typeof window!="undefined"&&window.crypto||typeof globalThis!="undefined"&&globalThis.crypto;if(!r||!r.subtle||!r.subtle.digest)throw new Error("Crypto subtle API not available");let i=await r.subtle.digest("SHA-256",n);return btoa(String.fromCharCode(...new Uint8Array(i))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}async function s$(e,t){let n=await P1e(),r=await N1e(n),i=t.replace(/\/$/,""),s=new URLSearchParams({client_id:e,response_type:"code",redirect_uri:Rw,scope:Fw.join(" "),code_challenge:r,code_challenge_method:"S256",response_mode:"query"});return{authUrl:`${i}/oauth2/v2.0/authorize?${s.toString()}`,verifier:n}}var o$=async(e,t,n,r)=>{try{let s=new URL(t).pathname.replace(/^\//,"")||"common";console.log("OneDrive token exchange:",{url:`${t.replace(/\/$/,"")}/oauth2/v2.0/token`,tenant:s,client_id:e,redirect_uri:Rw,has_code:!!n,has_verifier:!!r});let o=(0,di.requestUrl)({url:`${t.replace(/\/$/,"")}/oauth2/v2.0/token`,method:"POST",contentType:"application/x-www-form-urlencoded",body:new URLSearchParams({tenant:s,client_id:e,scope:Fw.join(" "),code:n,redirect_uri:Rw,grant_type:"authorization_code",code_verifier:r}).toString()}).json,a=new Promise((u,p)=>{window.setTimeout(()=>{p(Error("\u8BF7\u6C42\u8D85\u65F6\uFF0830\u79D2\uFF09\u3002\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002"))},i$)}),l=await Promise.race([o,a]);if(console.log("OneDrive token response:",l),l.error!==void 0){console.error("OneDrive auth error:",l);let u=l.error_description||l.error||"\u672A\u77E5\u9519\u8BEF";return{...l,error_description:u}}else return l}catch(i){if(console.error("OneDrive auth request failed:",i),i.response&&i.response.data){let s=typeof i.response.data=="string"?JSON.parse(i.response.data):i.response.data;throw Error(`Azure API \u9519\u8BEF: ${s.error_description||s.error||JSON.stringify(s)}`)}throw Error(`\u7F51\u7EDC\u8BF7\u6C42\u5931\u8D25: ${i.message||i}`)}},M1e=async(e,t,n)=>{let r=new URLSearchParams({tenant:"consumers",client_id:e,scope:Fw.join(" "),refresh_token:n,grant_type:"refresh_token"}).toString(),i={url:`${t.replace(/\/$/,"")}/oauth2/v2.0/token`,method:"POST",contentType:"application/x-www-form-urlencoded",body:r},s=(0,di.requestUrl)(i).json,o=new Promise((l,u)=>{window.setTimeout(()=>{u(Error("\u8BF7\u6C42\u8D85\u65F6\uFF0830\u79D2\uFF09\u3002\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002"))},i$)}),a=await Promise.race([s,o]);return a.error!==void 0,a},a$=async(e,t,n)=>{e.accessToken=t.access_token,e.accessTokenExpiresAtTime=Date.now()+t.expires_in*1e3-300*1e3,e.accessTokenExpiresInSeconds=t.expires_in,e.refreshToken=t.refresh_token,e.credentialsShouldBeDeletedAtTime=Date.now()+XC,n!==void 0&&await n()},np=(e,t)=>{let n=`/drive/special/approot:/${t}`;if(e.startsWith(n))return e;let r=e;return e==="/"||e===""?n:(r.endsWith("/")&&(r=r.slice(0,r.length-1)),r=`${n}/${r}`,r)};var n$=e=>`parentPath="${e.parentReference.path}", selfName="${e.name}"`,c$=(e,t)=>{if(e===void 0||e.parentReference===void 0||e.parentReference.path===void 0||e.name===void 0)throw Error("invalid drive item shape");let n="",r=/^\/drive\/root:\/[^\/]+\/Remotely (Sync|Secure|Save)\//g,i=/^\/Livefolders\/[^\/]+\/Remotely (Sync|Secure|Save)\//g,s="/drive/items/",o=`${e.parentReference.path}/${e.name}`,a=o.match(r),l=o.match(i);if(a!==null&&o.startsWith(`${a[0]}${t}`)){let p=`${a[0]}${t}`;n=o.substring(p.length+1)}else if(l!==null&&o.startsWith(`${l[0]}${t}`)){let p=`${l[0]}${t}`;n=o.substring(p.length+1)}else if(e.parentReference.path.startsWith(s)){let p=decodeURIComponent(e.parentReference.path);if(n=p.substring(p.indexOf(":")+1),n.startsWith(`/${t}/`))n=n.substring(`/${t}/`.length),n=`${n}/${e.name}`;else if(n===`/${t}`)n=e.name;else throw Error(`we meet file/folder and do not know how to deal with it: +${n$(e)}`)}else throw Error(`we meet file/folder and do not know how to deal with it: +${n$(e)}`);let u="folder"in e;return u&&(n=`${n}/`),{key:n,lastModified:Date.parse(e.fileSystemInfo.lastModifiedDateTime),size:u?0:e.size,remoteType:"onedrive",etag:e.cTag||""}},kw=class{constructor(t,n){C(this,"onedriveConfig");C(this,"saveUpdatedConfigFunc");C(this,"getAccessToken",async()=>{if(this.onedriveConfig.accessToken===""||this.onedriveConfig.refreshToken==="")throw Error("The user has not manually auth yet.");let t=Date.now();if(this.onedriveConfig.accessTokenExpiresAtTime>t)return this.onedriveConfig.accessToken;{let n=await M1e(this.onedriveConfig.clientID,this.onedriveConfig.authority,this.onedriveConfig.refreshToken);if(n.error!==void 0){let i=n;throw Error(`Error while refreshing accessToken: ${i.error}, ${i.error_codes}: ${i.error_description}`)}let r=n;return this.onedriveConfig.accessToken=r.access_token,this.onedriveConfig.refreshToken=r.refresh_token,this.onedriveConfig.accessTokenExpiresInSeconds=r.expires_in,this.onedriveConfig.accessTokenExpiresAtTime=t+r.expires_in*1e3-120*1e3,await this.saveUpdatedConfigFunc(),this.onedriveConfig.accessToken}});this.onedriveConfig=t,this.saveUpdatedConfigFunc=n}},Ow=class{constructor(t,n,r){C(this,"onedriveConfig");C(this,"remoteBaseDir");C(this,"vaultFolderExists");C(this,"authGetter");C(this,"saveUpdatedConfigFunc");C(this,"init",async()=>{if(this.onedriveConfig.accessToken===""||this.onedriveConfig.refreshToken==="")throw Error("The user has not manually auth yet.");if(!this.vaultFolderExists){let t=await this.getJson("/drive/special/approot/children");this.vaultFolderExists=t.value.filter(n=>n.name===this.remoteBaseDir).length>0,this.vaultFolderExists||(await this.postJson("/drive/special/approot/children",{name:`${this.remoteBaseDir}`,folder:{},"@microsoft.graph.conflictBehavior":"replace"}),this.vaultFolderExists=!0)}});C(this,"buildUrl",t=>{let n="https://graph.microsoft.com/v1.0",r="";if(t.startsWith("http://")||t.startsWith("https://"))r=t;else{let i=encodeURI(t);r=`${n}${i}`}return r});C(this,"getJson",async t=>{let n=this.buildUrl(t);se.debug(`getJson, theUrl=${n}`);let i={Authorization:`Bearer ${await this.authGetter.getAccessToken()}`,"Cache-Control":"no-cache"};return await(0,di.requestUrl)({url:n,method:"GET",contentType:"application/json",headers:i}).json});C(this,"postJson",async(t,n)=>{let r=this.buildUrl(t);se.debug(`postJson, theUrl=${r}`);let s={Authorization:`Bearer ${await this.authGetter.getAccessToken()}`},o={url:r,method:"POST",contentType:"application/json",body:JSON.stringify(n),headers:s};return await(0,di.requestUrl)(o).json});C(this,"patchJson",async(t,n)=>{let r=this.buildUrl(t),s={Authorization:`Bearer ${await this.authGetter.getAccessToken()}`},o={url:r,method:"PATCH",contentType:"application/json",body:JSON.stringify(n),headers:s};await(0,di.requestUrl)(o).json});C(this,"deleteJson",async t=>{let n=this.buildUrl(t);se.debug(`deleteJson, theUrl=${n}`),await(0,di.requestUrl)({url:n,method:"DELETE",headers:{Authorization:`Bearer ${await this.authGetter.getAccessToken()}`}})});C(this,"putArrayBuffer",async(t,n)=>{let r=this.buildUrl(t);se.debug(`putArrayBuffer, theUrl=${r}`),await(0,di.requestUrl)({url:r,method:"PUT",body:n,contentType:gi,headers:{"Content-Type":gi,Authorization:`Bearer ${await this.authGetter.getAccessToken()}`}})});C(this,"putUint8ArrayByRange",async(t,n,r,i,s)=>{let o=this.buildUrl(t);return se.debug(`putUint8ArrayByRange, theUrl=${o}, range=${r}-${i-1}, len=${i-r}, size=${s}`),(await(0,di.requestUrl)({url:o,method:"PUT",body:br(n.subarray(r,i)),contentType:gi,headers:{"Content-Range":`bytes ${r}-${i-1}/${s}`}})).json});this.onedriveConfig=t,this.remoteBaseDir=n,this.vaultFolderExists=!1,this.saveUpdatedConfigFunc=r,this.authGetter=new kw(t,r)}},u$=(e,t,n)=>new Ow(e,t,n),l$=async(e,t)=>{var a;if(t!==void 0)throw Error("prefix not supported (yet)");await e.init();let n="@odata.nextLink",r="@odata.deltaLink",i=await e.getJson(`/drive/special/approot:/${e.remoteBaseDir}:/delta`),s=i.value;for(;n in i;)i=await e.getJson(i[n]),s.push(...(0,r$.default)(i.value));r in i&&(e.onedriveConfig.deltaLink=i[r],await e.saveUpdatedConfigFunc());let o=[];for(let l of s)if(l.deleted===void 0)try{let u=c$(l,e.remoteBaseDir);u.key!=="/"&&o.push(u)}catch(u){se.warn(`skip unrecognized onedrive item while listing remote: ${JSON.stringify({name:l==null?void 0:l.name,parentPath:(a=l==null?void 0:l.parentReference)==null?void 0:a.path})}`,u)}return{Contents:o}},Aw=async(e,t)=>{await e.init();let n=np(t,e.remoteBaseDir),i=await e.getJson(`${n}?$select=cTag,eTag,fileSystemInfo,folder,file,name,parentReference,size`);return c$(i,e.remoteBaseDir)},p$=async(e,t,n,r=!1,i="",s="",o=void 0,a=!1,l="")=>{await e.init();let u=t;i!==""&&(u=s),u=np(u,e.remoteBaseDir),se.debug(`uploadFile=${u}`);let p=t.endsWith("/");if(p&&r)throw Error("upload function doesn't implement recursive function yet!");if(p&&!r){if(a)throw Error("you specify uploadRaw, but you also provide a folder key!");if(i==="")return o!=null&&o.has(u)||await e.patchJson(u,{folder:{},"@microsoft.graph.conflictBehavior":"replace"}),await Aw(e,u);{let d=q8(1,65536),f=await Ds(H8(d),i);return await e.putArrayBuffer(`${u}:/content?${new URLSearchParams({"@microsoft.graph.conflictBehavior":"replace"})}`,f),await Aw(e,u)}}else{let d;a?typeof l=="string"?d=new TextEncoder().encode(l).buffer:d=l:d=await n.adapter.readBinary(t);let f=d;i!==""&&(f=await Ds(d,i));let g=327680*20,x=1e3*1e3*4;if(f.byteLength{await e.init();let n=np(t,e.remoteBaseDir),i=(await e.getJson(`${n}?$select=@microsoft.graph.downloadUrl`))["@microsoft.graph.downloadUrl"];return(await(0,di.requestUrl)({url:i,headers:{"Cache-Control":"no-cache"}})).arrayBuffer},d$=async(e,t,n,r,i="",s="",o=!1)=>{await e.init();let a=t.endsWith("/");if(o||await $r(t,n),a)return new ArrayBuffer(0);{let l=t;i!==""&&(l=s),l=np(l,e.remoteBaseDir);let u=await L1e(e,l),p=u;return i!==""&&(p=await Bo(u,i)),o||await n.adapter.writeBinary(t,p,{mtime:r}),p}},f$=async(e,t,n="",r="")=>{if(t==="/")return;let i=t;n!==""&&(i=r),i=np(i,e.remoteBaseDir),await e.init(),await e.deleteJson(i)},m$=async(e,t)=>{try{return await Bw(e)!==""}catch(n){return se.debug(n),t!==void 0&&t(n),!1}},Bw=async e=>(await e.init(),(await e.getJson("/me?$select=displayName")).displayName||"");var Iw=(e,t,n)=>{let r=(0,h$.default)(e);delete r.onedrive,delete r.vaultRandomID;let i=JSON.stringify(r),s=l0.deflate(i),o=btoa(String.fromCharCode.apply(null,s)),a=encodeURIComponent(o),l=encodeURIComponent(t),u=encodeURIComponent(n);return`obsidian://${Mp}?func=settings&version=${u}&vault=${l}&data=${a}&compressed=1`},cg=(e,t)=>{let n=o=>{if(typeof o!="string")return o;try{return decodeURIComponent(o)}catch(a){return o}},r=o=>{var p,d,f;let a=new Set(["s3","webdav","onedrive"]),l=o==null?void 0:o.serviceType,u=a.has(l)?l:"s3";return{...o,serviceType:u,s3:{...qh,...(p=o==null?void 0:o.s3)!=null?p:{}},webdav:{...ag,...(d=o==null?void 0:o.webdav)!=null?d:{}},onedrive:{...Lo,...(f=o==null?void 0:o.onedrive)!=null?f:{}}}},i=e;if(i={...i,vault:n(i.vault),data:n(i.data)},i.func===void 0||i.func!=="settings"||i.vault===void 0||i.data===void 0)return{status:"error",message:`the uri is not for exporting/importing settings: ${JSON.stringify(e)}`};if(i.vault!==t)return{status:"error",message:`the target vault is ${i.vault} but you are currently in ${t}: ${JSON.stringify(e)}`};let s={};try{let o=i.data;if(i.compressed==="1"||i.compressed==="true")try{let a=atob(o),l=new Uint8Array(a.length);for(let p=0;pcrypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");var Fs=require("obsidian");var Nw=20250430,Os="remotelysavedb",U1e="schemaversion",j1e="filefolderoperationhistory",z1e="syncmetadatahistory",q1e="syncplanshistory",H1e="vaultrandomidmapping",G1e="loggeroutput",V1e="prevsyncrecords",Mw=async(e,t)=>{let i=[],s=await e.fileHistoryTbl.keys();for(let l of s){if(l.startsWith(t))continue;let u=await e.fileHistoryTbl.getItem(l);if(u==null)continue;(u.vaultRandomID===void 0||u.vaultRandomID==="")&&(u.vaultRandomID=t);let p=`${t} ${l}`;i.push(e.fileHistoryTbl.setItem(p,u)),i.push(e.fileHistoryTbl.removeItem(l))}let o=await e.syncMappingTbl.keys();for(let l of o){if(l.startsWith(t))continue;let u=await e.syncMappingTbl.getItem(l);if(u==null)continue;(u.vaultRandomID===void 0||u.vaultRandomID==="")&&(u.vaultRandomID=t);let p=`${t} ${l}`;i.push(e.syncMappingTbl.setItem(p,u)),i.push(e.syncMappingTbl.removeItem(l))}let a=await e.syncPlansTbl.keys();for(let l of a){if(l.startsWith(t))continue;let u=await e.syncPlansTbl.getItem(l);if(u==null)continue;(u.vaultRandomID===void 0||u.vaultRandomID==="")&&(u.vaultRandomID=t);let p=`${t} ${l}`;i.push(e.syncPlansTbl.setItem(p,u)),i.push(e.syncPlansTbl.removeItem(l))}await Promise.all(i),await e.versionTbl.setItem("version",20220108)},ug=async(e,t)=>{await e.versionTbl.setItem("version",20220326)},Lw=async(e,t)=>{await e.versionTbl.setItem("version",20250430)},W1e=async(e,t,n,r)=>{if(t!==n){if(t===20211114&&n===20220108)return await Mw(e,r);if(t===20220108&&n===20220326)return await ug(e,r);if(t===20220326&&n===20250430)return await Lw(e,r);if(t===20211114&&n===20220326){await Mw(e,r),await ug(e,r);return}if(t===20211114&&n===20250430){await Mw(e,r),await ug(e,r),await Lw(e,r);return}if(t===20220108&&n===20250430){await ug(e,r),await Lw(e,r);return}throw n{let n={versionTbl:ks.default.createInstance({name:Os,storeName:U1e}),fileHistoryTbl:ks.default.createInstance({name:Os,storeName:j1e}),syncMappingTbl:ks.default.createInstance({name:Os,storeName:z1e}),syncPlansTbl:ks.default.createInstance({name:Os,storeName:q1e}),vaultRandomIDMappingTbl:ks.default.createInstance({name:Os,storeName:H1e}),loggerOutputTbl:ks.default.createInstance({name:Os,storeName:G1e}),prevSyncRecordsTbl:ks.default.createInstance({name:Os,storeName:V1e})},r="",i=await n.vaultRandomIDMappingTbl.getItem(`path2id ${e}`);if(i===null?(t!==""?r=t:r=x$(),await n.vaultRandomIDMappingTbl.setItem(`path2id ${e}`,r),await n.vaultRandomIDMappingTbl.setItem(`id2path ${r}`,e)):r=i,r==="")throw Error("no vaultRandomID found or generated");let s=await n.versionTbl.getItem("version");return s===null?await n.versionTbl.setItem("version",Nw):s===Nw||await W1e(n,s,Nw,r),{db:n,vaultRandomID:r}},K1e=async(e,t)=>{let n=(await e.prevSyncRecordsTbl.keys()).filter(i=>i.startsWith(`${t} `)),r=[];for(let i of n)r.push(e.prevSyncRecordsTbl.removeItem(i));await Promise.all(r)},b$=async(e,t,n)=>{await K1e(e,t);let r=[];for(let i of n)r.push(e.prevSyncRecordsTbl.setItem(`${t} ${i.key}`,i));await Promise.all(r)},lg=async(e,t)=>{let n=[];return await e.prevSyncRecordsTbl.iterate((r,i,s)=>{i.startsWith(`${t} `)&&n.push(r)}),n},_$=async()=>{let e=indexedDB.deleteDatabase(Os);e.onerror=t=>{se.error("tried to delete db but something goes wrong!"),se.error(t)}},w$=async(e,t)=>{let n=[];return await e.fileHistoryTbl.iterate((r,i,s)=>{i.startsWith(`${t} `)&&n.push(r)}),n.sort((r,i)=>r.actionWhen-i.actionWhen),n},Bs=async(e,t,n)=>{let r=`${n} ${t}`,i=await e.fileHistoryTbl.getItem(r);i!==null&&(i.actionType==="delete"||i.actionType==="rename")&&await e.fileHistoryTbl.removeItem(r)},E$=async(e,t,n)=>{let r;t instanceof Fs.TFile?r={key:t.path,ctime:t.stat.ctime,mtime:t.stat.mtime,size:t.stat.size,actionWhen:Date.now(),actionType:"delete",keyType:"file",renameTo:"",vaultRandomID:n}:t instanceof Fs.TFolder&&(r={key:t.path.endsWith("/")?t.path:`${t.path}/`,ctime:0,mtime:0,size:0,actionWhen:Date.now(),actionType:"delete",keyType:"folder",renameTo:"",vaultRandomID:n}),await e.fileHistoryTbl.setItem(`${n} ${r.key}`,r)},D$=async(e,t,n,r)=>{let i,s,o=Date.now();if(t instanceof Fs.TFile)i={key:n,ctime:t.stat.ctime,mtime:t.stat.mtime,size:t.stat.size,actionWhen:o,actionType:"rename",keyType:"file",renameTo:t.path,vaultRandomID:r},s={key:t.path,ctime:t.stat.ctime,mtime:t.stat.mtime,size:t.stat.size,actionWhen:o,actionType:"renameDestination",keyType:"file",renameTo:"",vaultRandomID:r};else if(t instanceof Fs.TFolder){let a=n.endsWith("/")?n:`${n}/`,l=t.path.endsWith("/")?t.path:`${t.path}/`,u=0,p=0;if((0,Fs.requireApiVersion)($p)){let d=await Es(t.vault,t.path);u=d.ctime,p=d.mtime}i={key:a,ctime:u,mtime:p,size:0,actionWhen:o,actionType:"rename",keyType:"folder",renameTo:l,vaultRandomID:r},s={key:l,ctime:u,mtime:p,size:0,actionWhen:o,actionType:"renameDestination",keyType:"folder",renameTo:"",vaultRandomID:r}}await Promise.all([e.fileHistoryTbl.setItem(`${r} ${i.key}`,i),e.fileHistoryTbl.setItem(`${r} ${s.key}`,s)])},$w=async(e,t,n,r,i,s,o,a,l,u)=>{let p={localKey:n,localMtime:r,localSize:i,remoteKey:s,remoteMtime:o,remoteSize:a,remoteExtraKey:l,remoteType:e,keyType:n.endsWith("/")?"folder":"file",vaultRandomID:u};await t.syncMappingTbl.setItem(`${u} ${s}`,p)},S$=async(e,t,n,r,i,s)=>{let o=await t.syncMappingTbl.getItem(`${s} ${n}`);if(o!==null&&o.remoteKey===n&&o.remoteMtime===r&&o.remoteExtraKey===i&&o.remoteType===e)return o},C$=async e=>{await e.syncMappingTbl.clear()};var T$=async e=>{await e.syncPlansTbl.clear()},A$=async(e,t)=>{let n=[];return await e.syncPlansTbl.iterate((r,i,s)=>{i.startsWith(`${t} `)&&n.push(r)}),n.sort((r,i)=>-(r.ts-i.ts)),n===void 0?[]:n.map(r=>r.syncPlan)},Uw=async e=>{let i=Date.now()-6048e5,s=(await e.syncPlansTbl.keys()).map(l=>{let u=parseInt(l.split(" ")[1]),p=u<=i;return{ts:u,key:l,expired:p}}),o=new Set(s.filter(l=>l.expired).map(l=>l.key));s.length-o.size>1e4&&(s=s.filter(l=>!l.expired),s.sort((l,u)=>-(l.ts-u.ts)),s.slice(1e4).forEach(l=>{o.add(l.key)}));let a=[];o.forEach(l=>{a.push(e.syncPlansTbl.removeItem(l))}),await Promise.all(a)},R$=async(e,t)=>{let n=[];return await e.loggerOutputTbl.iterate((r,i,s)=>{if(i.startsWith(`${t} `)){let o={ts:parseInt(i.split(" ")[1]),r};n.push(o)}}),n.sort((r,i)=>r.ts-i.ts),n===void 0?[]:n.map(r=>r.r)},pg=async(e,t,...n)=>{let r=Date.now(),i=jn(r),s=`${t} ${r}`;try{let o=[`[${i}]`,...n.map(a=>V8(a))].join(" ");e.loggerOutputTbl.setItem(s,o)}catch(o){}},k$=async e=>{await e.loggerOutputTbl.clear()},rp=async e=>{let i=Date.now()-6048e5,s=(await e.loggerOutputTbl.keys()).map(l=>{let u=parseInt(l.split(" ")[1]),p=u<=i;return{ts:u,key:l,expired:p}}),o=new Set(s.filter(l=>l.expired).map(l=>l.key));s.length-o.size>1e4&&(s=s.filter(l=>!l.expired),s.sort((l,u)=>-(l.ts-u.ts)),s.slice(1e4).forEach(l=>{o.add(l.key)}));let a=[];o.forEach(l=>{a.push(e.loggerOutputTbl.removeItem(l))}),await Promise.all(a)};c();var fi=class{constructor(t,n,r,i,s,o){C(this,"serviceType");C(this,"s3Config");C(this,"webdavClient");C(this,"webdavConfig");C(this,"onedriveClient");C(this,"onedriveConfig");C(this,"uploadToRemote",async(t,n,r=!1,i="",s="",o=void 0,a=!1,l="")=>{if(this.serviceType==="s3")return await Q8(Ec(this.s3Config),this.s3Config,t,n,r,i,s,a,l);if(this.serviceType==="webdav")return await Z6(this.webdavClient,t,n,r,i,s,a,l);if(this.serviceType==="onedrive")return await p$(this.onedriveClient,t,n,r,i,s,o,a,l);throw Error(`not supported service type ${this.serviceType}`)});C(this,"listFromRemote",async t=>{if(this.serviceType==="s3")return await F_(Ec(this.s3Config),this.s3Config,t);if(this.serviceType==="webdav")return await Q6(this.webdavClient,t);if(this.serviceType==="onedrive")return await l$(this.onedriveClient,t);throw Error(`not supported service type ${this.serviceType}`)});C(this,"downloadFromRemote",async(t,n,r,i="",s="",o=!1)=>{if(this.serviceType==="s3")return await J8(Ec(this.s3Config),this.s3Config,t,n,r,i,s,o);if(this.serviceType==="webdav")return await J6(this.webdavClient,t,n,r,i,s,o);if(this.serviceType==="onedrive")return await d$(this.onedriveClient,t,n,r,i,s,o);throw Error(`not supported service type ${this.serviceType}`)});C(this,"deleteFromRemote",async(t,n="",r="")=>{if(this.serviceType==="s3")return await eL(Ec(this.s3Config),this.s3Config,t,n,r);if(this.serviceType==="webdav")return await e$(this.webdavClient,t,n,r);if(this.serviceType==="onedrive")return await f$(this.onedriveClient,t,n,r);throw Error(`not supported service type ${this.serviceType}`)});C(this,"checkConnectivity",async t=>{if(this.serviceType==="s3")return await tL(Ec(this.s3Config),this.s3Config,t);if(this.serviceType==="webdav")return await t$(this.webdavClient,t);if(this.serviceType==="onedrive")return await m$(this.onedriveClient,t);throw Error(`not supported service type ${this.serviceType}`)});C(this,"getUser",async()=>{if(this.serviceType==="onedrive")return await Bw(this.onedriveClient);throw Error(`not supported service type ${this.serviceType}`)});C(this,"revokeAuth",async()=>{});if(this.serviceType=t,t==="s3")this.s3Config=n;else if(t==="webdav"){if(s===void 0||o===void 0)throw Error("remember to provide vault name and callback while init webdav client");let a=r.remoteBaseDir||s;this.webdavConfig=r,this.webdavClient=X6(this.webdavConfig,a,o)}else if(t==="onedrive"){if(s===void 0||o===void 0)throw Error("remember to provide vault name and callback while init onedrive client");let a=i.remoteBaseDir||s;this.onedriveConfig=i,this.onedriveClient=u$(this.onedriveConfig,a,o)}else throw Error(`not supported service type ${this.serviceType}`)}};c();var ie=require("obsidian"),kg=at(Jc());c();var Y1e=e=>{let t=JSON.parse(e),{ts:n,tsFmt:r,remoteType:i,mixedStates:s}=t,o=["key","remoteEncryptedKey","existLocal","sizeLocal","sizeLocalEnc","mtimeLocal","deltimeLocal","changeLocalMtimeUsingMapping","existRemote","sizeRemote","sizeRemoteEnc","mtimeRemote","deltimeRemote","changeRemoteMtimeUsingMapping","decision","decisionBranch"],a=[`ts: ${n}${r!==void 0?" / "+r:""}`,`remoteType: ${i}`,`| ${o.join(" | ")} |`,`| ${o.map(l=>"---").join(" | ")} |`];for(let[l,u]of Object.entries(t.mixedStates)){let p=l,d=u,f=[];for(let m of o){let g=d[m];if(g===void 0){f.push("");continue}if(m==="mtimeLocal"||m==="deltimeLocal"||m==="mtimeRemote"||m==="deltimeRemote"){let x=d[m+"Fmt"],v=`${g}${x!==void 0?" / "+x:""}`;f.push(v)}else f.push(g)}a.push(`| ${f.join(" | ")} |`)}return a.join(` +`)},Bc=async(e,t,n,r="json")=>{await $r(Us,t);let i=await A$(e,n),s="";if(i.length===0)s="No sync plans history found";else if(r==="json")s=`Sync plans found: `+i.map(l=>"```json\n"+l+"\n```\n").join(` `);else if(r==="table")s=`Sync plans found: -`+i.map(L1e).join(` +`+i.map(Y1e).join(` -`);else{let l=r}let o=Date.now(),a=`${Ns}${KC}${o}.md`;await t.create(a,s,{mtime:o})},lg=async(e,t,n)=>{await Lr(Ns,t);let r=await D$(e,n),i="";r.length===0?i="No logger history found.":i="Logger history found:\n\n```text\n"+r.join(` -`)+"\n```\n";let s=Date.now(),o=`${Ns}${YC}${s}.md`;await t.create(o,i,{mtime:s})};c();var $1e="The file contains sensitive info, so DO NOT take screenshot of, copy, or share it to anyone! It's also generated automatically, so do not edit it manually.",pg=e=>e==null?e:"readme"in e&&"d"in e?JSON.parse(Ro.parse(Mh(e.d),{out:h.Buffer.allocUnsafe,loose:!0}).toString("utf-8")):e,C$=e=>e==null?e:{readme:$1e,d:Mh(Ro.stringify(h.Buffer.from(JSON.stringify(e),"utf-8"),{pad:!1}))};c();var U1e={webdav:{depth:[{url:"^https://(.+).teracloud.jp/.+",depth:"auto_1",manualRecursive:!0},{url:"^https://dav.jianguoyun.com/dav/",depth:"auto_1",manualRecursive:!0}]}},dg=e=>{if(e===void 0)return{changed:!1,webdav:e};for(let{url:t,depth:n,manualRecursive:r}of U1e.webdav.depth)if(e.address!==void 0&&new RegExp(t).test(e.address)&&e.depth!==void 0&&e.depth.startsWith("auto_")&&e.depth!==n)return e.depth=n,e.manualRecursive=r,{changed:!0,webdav:e};return{changed:!1,webdav:e}},T$=e=>e===void 0?{changed:!1,settings:e}:{changed:dg(e.webdav).changed,settings:e};c();var PDe=at(lU());var No=".third-party-sync-metadata-on-remote.json",qw=".third-party-sync-metadata-on-remote.bin",hg="_remotely-save-metadata-on-remote.json",Hw="_remotely-save-metadata-on-remote.bin",pU="data.json",Gw="/bookmarks.json";c();var cp=require("obsidian");c();c();var Ww=at(fU(),1);c();var np=class extends Error{constructor(t){super(t),this.name="TimeoutError"}},Kw=class extends Error{constructor(t){super(),this.name="AbortError",this.message=t}},mU=e=>globalThis.DOMException===void 0?new Kw(e):new DOMException(e),hU=e=>{let t=e.reason===void 0?mU("This operation was aborted."):e.reason;return t instanceof Error?t:mU(t)};function Yw(e,t,n,r){let i,s=new Promise((o,a)=>{if(typeof t!="number"||Math.sign(t)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${t}\``);if(t===Number.POSITIVE_INFINITY){o(e);return}if(r={customTimers:{setTimeout,clearTimeout},...r},r.signal){let{signal:l}=r;l.aborted&&a(hU(l)),l.addEventListener("abort",()=>{a(hU(l))})}i=r.customTimers.setTimeout.call(void 0,()=>{if(typeof n=="function"){try{o(n())}catch(p){a(p)}return}let l=typeof n=="string"?n:`Promise timed out after ${t} milliseconds`,u=n instanceof Error?n:new np(l);typeof e.cancel=="function"&&e.cancel(),a(u)},t),(async()=>{try{o(await e)}catch(l){a(l)}finally{r.customTimers.clearTimeout.call(void 0,i)}})()});return s.clear=()=>{clearTimeout(i),i=void 0},s}c();c();function Xw(e,t,n){let r=0,i=e.length;for(;i>0;){let s=Math.trunc(i/2),o=r+s;n(e[o],t)<=0?(r=++o,i-=s+1):i=s}return r}var Mo=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Li,Zw=class{constructor(){Li.set(this,[])}enqueue(t,n){n={priority:0,...n};let r={priority:n.priority,run:t};if(this.size&&Mo(this,Li,"f")[this.size-1].priority>=n.priority){Mo(this,Li,"f").push(r);return}let i=Xw(Mo(this,Li,"f"),r,(s,o)=>o.priority-s.priority);Mo(this,Li,"f").splice(i,0,r)}dequeue(){let t=Mo(this,Li,"f").shift();return t==null?void 0:t.run}filter(t){return Mo(this,Li,"f").filter(n=>n.priority===t.priority).map(n=>n.run)}get size(){return Mo(this,Li,"f").length}};Li=new WeakMap;var gU=Zw;var dt=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},ae=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},wt,ip,sp,Os,wg,op,yg,$r,rp,tr,xg,nr,ap,ks,vg,yU,xU,_U,vU,bU,bg,Qw,Jw,Eg,wU,_g,Dg=class extends Error{},eE=class extends Ww.default{constructor(t){var n,r,i,s;if(super(),wt.add(this),ip.set(this,void 0),sp.set(this,void 0),Os.set(this,0),wg.set(this,void 0),op.set(this,void 0),yg.set(this,0),$r.set(this,void 0),rp.set(this,void 0),tr.set(this,void 0),xg.set(this,void 0),nr.set(this,0),ap.set(this,void 0),ks.set(this,void 0),vg.set(this,void 0),Object.defineProperty(this,"timeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),t={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:gU,...t},!(typeof t.intervalCap=="number"&&t.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${(r=(n=t.intervalCap)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:""}\` (${typeof t.intervalCap})`);if(t.interval===void 0||!(Number.isFinite(t.interval)&&t.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${(s=(i=t.interval)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""}\` (${typeof t.interval})`);dt(this,ip,t.carryoverConcurrencyCount,"f"),dt(this,sp,t.intervalCap===Number.POSITIVE_INFINITY||t.interval===0,"f"),dt(this,wg,t.intervalCap,"f"),dt(this,op,t.interval,"f"),dt(this,tr,new t.queueClass,"f"),dt(this,xg,t.queueClass,"f"),this.concurrency=t.concurrency,this.timeout=t.timeout,dt(this,vg,t.throwOnTimeout===!0,"f"),dt(this,ks,t.autoStart===!1,"f")}get concurrency(){return ae(this,ap,"f")}set concurrency(t){if(!(typeof t=="number"&&t>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${t}\` (${typeof t})`);dt(this,ap,t,"f"),ae(this,wt,"m",Eg).call(this)}async add(t,n={}){return n={timeout:this.timeout,throwOnTimeout:ae(this,vg,"f"),...n},new Promise((r,i)=>{ae(this,tr,"f").enqueue(async()=>{var s,o,a;dt(this,nr,(o=ae(this,nr,"f"),o++,o),"f"),dt(this,Os,(a=ae(this,Os,"f"),a++,a),"f");try{if(!((s=n.signal)===null||s===void 0)&&s.aborted)throw new Dg("The task was aborted.");let l=t({signal:n.signal});n.timeout&&(l=Yw(Promise.resolve(l),n.timeout)),n.signal&&(l=Promise.race([l,ae(this,wt,"m",wU).call(this,n.signal)]));let u=await l;r(u),this.emit("completed",u)}catch(l){if(l instanceof np&&!n.throwOnTimeout){r();return}i(l),this.emit("error",l)}finally{ae(this,wt,"m",_U).call(this)}},n),this.emit("add"),ae(this,wt,"m",bg).call(this)})}async addAll(t,n){return Promise.all(t.map(async r=>this.add(r,n)))}start(){return ae(this,ks,"f")?(dt(this,ks,!1,"f"),ae(this,wt,"m",Eg).call(this),this):this}pause(){dt(this,ks,!0,"f")}clear(){dt(this,tr,new(ae(this,xg,"f")),"f")}async onEmpty(){ae(this,tr,"f").size!==0&&await ae(this,wt,"m",_g).call(this,"empty")}async onSizeLessThan(t){ae(this,tr,"f").sizeae(this,tr,"f").size{ae(this,wt,"m",vU).call(this)},n),"f"),!0}return!1},bg=function(){if(ae(this,tr,"f").size===0)return ae(this,$r,"f")&&clearInterval(ae(this,$r,"f")),dt(this,$r,void 0,"f"),this.emit("empty"),ae(this,nr,"f")===0&&this.emit("idle"),!1;if(!ae(this,ks,"f")){let t=!ae(this,wt,"a",bU);if(ae(this,wt,"a",yU)&&ae(this,wt,"a",xU)){let n=ae(this,tr,"f").dequeue();return n?(this.emit("active"),n(),t&&ae(this,wt,"m",Qw).call(this),!0):!1}}return!1},Qw=function(){ae(this,sp,"f")||ae(this,$r,"f")!==void 0||(dt(this,$r,setInterval(()=>{ae(this,wt,"m",Jw).call(this)},ae(this,op,"f")),"f"),dt(this,yg,Date.now()+ae(this,op,"f"),"f"))},Jw=function(){ae(this,Os,"f")===0&&ae(this,nr,"f")===0&&ae(this,$r,"f")&&(clearInterval(ae(this,$r,"f")),dt(this,$r,void 0,"f")),dt(this,Os,ae(this,ip,"f")?ae(this,nr,"f"):0,"f"),ae(this,wt,"m",Eg).call(this)},Eg=function(){for(;ae(this,wt,"m",bg).call(this););},wU=async function(t){return new Promise((n,r)=>{t.addEventListener("abort",()=>{r(new Dg("The task was aborted."))},{once:!0})})},_g=async function(t,n){return new Promise(r=>{let i=()=>{n&&!n()||(this.off(t,i),r())};this.on(t,i)})};var EU=eE;c();var CU=at(B_()),TU=at(I_()),AU=at(P_());var DU=e=>{let t=[".git",".github",".gitlab",".svn","node_modules",".DS_Store"];for(let n of t)if(e===n||e===`${n}/`||e.endsWith(`/${n}`)||e.endsWith(`/${n}/`))return!0;return!1},LDe=(e,t)=>e===t||e===t+"/"||e.endsWith("/"+t)||e.endsWith("/"+t+"/"),SU=e=>{let t=["data.json","main.js","manifest.json",".gitignore","styles.css"];for(let n of t)if(e===n||e.endsWith(`/${n}`))return!0;return!1},RU=(e,t)=>{if(!t.startsWith("."))throw Error(`configDir should starts with . but we get ${t}`);return e===t||e.startsWith(`${t}/`)},kU=e=>e.startsWith(".trash"),Sg=async(e,t,n)=>{let r=[e.configDir];n&&await e.adapter.stat(".trash")!=null&&r.push(".trash");let i=new CU.Queue(r),s=10,o=[];for(;i.length>0;){let a=[];for(;i.length>0;)a.push(i.pop());let l=(0,TU.default)(a,s);for(let u of l){let p=u.map(async f=>{let m=await vc(e,f),g=m.type==="folder",x;return g&&(x=await e.adapter.list(f)),{itself:{key:g?`${f}/`:f,...m},children:x}}),d=(0,AU.default)(await Promise.all(p));for(let f of d){o.push(f.itself);let m=LDe(f.itself.key,t);if(f.children!==void 0){for(let g of f.children.folders)DU(g)||m&&!SU(g)||i.push(g);for(let g of f.children.files)DU(g)||m&&!SU(g)||i.push(g)}}}}return o};var tE=async(e,t="")=>{if(e===void 0||e.length===0)return{ok:!0,reason:"empty_remote"};let n=e.some(i=>i.key===No||i.key===qw||i.key===hg||i.key===Hw);if(oe.debug("password is blank? ",t==""," remote has metadata? ",n),t=="")return n?{ok:!0,reason:"no_password_both_sides"}:e.some(s=>!s.key.includes(".")||s.key.endsWith(".json"))?{ok:!0,reason:"no_password_both_sides"}:{ok:!0,reason:"no_password_both_sides"};let r=e[0].key;try{let i=await Lh(r,t);return{ok:!0,reason:"password_matched"}}catch(i){return{ok:!1,reason:"password_not_matched"}}},OU=async(e,t,n="")=>{if(e===void 0)return;let r=[];for(let i of e){let s=i.key,o=s;n!==""&&(o=await Lh(s,n)),(o===No||o===hg)&&r.push({key:o,existRemote:!0,mtimeRemote:i.lastModified,mtimeRemoteFmt:Qn(i.lastModified),sizeRemote:n===""?i.size:void 0,sizeRemoteEnc:n===""?void 0:i.size,remoteEncryptedKey:s,changeRemoteMtimeUsingMapping:!1})}if(r.length>1){r=r.sort((s,o)=>o.mtimeRemote-s.mtimeRemote);let i=new Set;r.forEach(async s=>{if(!i.has(s.key)){i.add(s.key);return}await t.deleteFromRemote(s.key,n,s.remoteEncryptedKey)})}return r[0]},Tg=async(e,t,n,r,i="")=>{let s=[];if(e===void 0)return s;for(let o of e){let a=o.key,l=a;i!==""&&(l=await Lh(a,i));let u=await b$(r,t,l,o.lastModified,o.etag,n),p={};if(u!==void 0){l=u.localKey;let d=u.localMtime||o.lastModified;p={key:l,existRemote:!0,mtimeRemote:d,mtimeRemoteFmt:Qn(d),sizeRemote:u.localSize,sizeRemoteEnc:i===""?void 0:o.size,remoteEncryptedKey:a,changeRemoteMtimeUsingMapping:!0}}else p={key:l,existRemote:!0,mtimeRemote:o.lastModified,mtimeRemoteFmt:Qn(o.lastModified),sizeRemote:i===""?o.size:void 0,sizeRemoteEnc:i===""?void 0:o.size,remoteEncryptedKey:a,changeRemoteMtimeUsingMapping:!1};s.push(p)}return s};var Cg=(e,t,n,r,i,s)=>e===s+Gw?!i:t&&RU(e,s)?e==s+"/plugins/third-party-sync/"+pU:r&&kU(e)||e===No||e===qw||e===hg||e===Hw?!0:C_(e,!0,!1)||!n&&C_(e,!1,!0),$De=async(e,t,n,r,i,s,o,a,l,u,p)=>{var f,m,g,x,v,_;let d={};for(let w of e){let D=w.key;Cg(D,s,u,o,a,l)||(d[D]=w,d[D].existLocal=!1)}for(let w of t){let D={},C=w.path;if(w.path!=="/"){if(w instanceof cp.TFile){let A=Math.max((f=w.stat.mtime)!=null?f:0,(m=w.stat.ctime)!=null?m:0);D={key:w.path,existLocal:!0,mtimeLocal:A,mtimeLocalFmt:Qn(A),sizeLocal:w.stat.size,sizeLocalEnc:p===""?void 0:$h(w.stat.size)}}else if(w instanceof cp.TFolder)C=`${w.path}/`,D={key:C,existLocal:!0,mtimeLocal:void 0,mtimeLocalFmt:void 0,sizeLocal:0,sizeLocalEnc:p===""?void 0:$h(0)};else throw Error(`unexpected ${w}`);Cg(C,s,u,o,a,l)||(d.hasOwnProperty(C)?(d[C].key=D.key,d[C].existLocal=D.existLocal,d[C].mtimeLocal=D.mtimeLocal,d[C].mtimeLocalFmt=D.mtimeLocalFmt,d[C].sizeLocal=D.sizeLocal,d[C].sizeLocalEnc=D.sizeLocalEnc):(d[C]=D,d[C].existRemote=!1))}}if(n!==void 0)for(let w of n){let D=w.key,C=D===l+Gw;if(!s&&!(a&&C))continue;let A=Math.max((g=w.mtime)!=null?g:0,(x=w.ctime)!=null?x:0);(Number.isNaN(A)||A===0)&&(A=void 0);let k={key:D,existLocal:!0,mtimeLocal:A,mtimeLocalFmt:Qn(A),sizeLocal:w.size,sizeLocalEnc:p===""?void 0:$h(w.size)};d.hasOwnProperty(D)?(d[D].key=k.key,d[D].existLocal=k.existLocal,d[D].mtimeLocal=k.mtimeLocal,d[D].mtimeLocalFmt=k.mtimeLocalFmt,d[D].sizeLocal=k.sizeLocal,d[D].sizeLocalEnc=k.sizeLocalEnc):(d[D]=k,d[D].existRemote=!1)}for(let w of r){let D=w.key,C={key:D,deltimeRemote:w.actionWhen,deltimeRemoteFmt:Qn(w.actionWhen)};Cg(D,s,u,o,a,l)||(d.hasOwnProperty(D)?(d[D].key=C.key,d[D].deltimeRemote=C.deltimeRemote,d[D].deltimeRemoteFmt=C.deltimeRemoteFmt):(d[D]=C,d[D].existLocal=!1,d[D].existRemote=!1))}for(let w of i){let D=w.key;if(w.keyType==="folder")w.key.endsWith("/")||(D=`${w.key}/`);else if(w.keyType!=="file")throw Error(`unexpected ${w}`);if(!Cg(D,s,u,o,a,l))if(w.actionType==="delete"||w.actionType==="rename"){let C={key:D,deltimeLocal:w.actionWhen,deltimeLocalFmt:Qn(w.actionWhen)};d.hasOwnProperty(D)?(d[D].deltimeLocal=C.deltimeLocal,d[D].deltimeLocalFmt=C.deltimeLocalFmt):(d[D]=C,d[D].existLocal=!1,d[D].existRemote=!1)}else if(w.actionType==="renameDestination"){let C={key:D,mtimeLocal:w.actionWhen,mtimeLocalFmt:Qn(w.actionWhen),changeLocalMtimeUsingMapping:!0};if(d.hasOwnProperty(D)){let A=Math.max((v=C.mtimeLocal)!=null?v:0,(_=d[D].mtimeLocal)!=null?_:0);(Number.isNaN(A)||A===0)&&(A=void 0),d[D].mtimeLocal=A,d[D].mtimeLocalFmt=Qn(A),d[D].changeLocalMtimeUsingMapping=C.changeLocalMtimeUsingMapping}}else throw Error(`do not know how to deal with local file history ${w.key} with ${w.actionType}`)}return d};var UDe=new Set(["uploadLocalDelHistToRemote","keepRemoteDelHist","uploadLocalDelHistToRemoteFolder","keepRemoteDelHistFolder"]),jDe=new Set(["errorLocalTooLargeConflictRemote","errorRemoteTooLargeConflictLocal"]),nE=async(e,t,n,r,i,s,o,a,l,u,p,d,f,m="",g="bidirectional")=>{let x=new Map;for(let L of r)x.set(L.key,L);let v=await $De(e,t,n,[],[],a,l,u,p,d,m);for(let[L,U]of x)v[L]===void 0&&(v[L]={key:L,existLocal:!1,existRemote:!1}),v[L].prevSync=U;let _=Object.keys(v).sort((L,U)=>U.length-L.length),w=[],D=[],C=new Set;for(let L=0;L<_.length;++L){let U=_[L],$=v[U];if(U.endsWith("/")?await qDe($,C,o,m,g):zDe($,C,f,m,g),jDe.has($.decision)&&w.push($),UDe.has($.decision))if($.decision==="uploadLocalDelHistToRemote")D.push({key:U,actionWhen:Date.now()});else if($.decision==="keepRemoteDelHist")D.push({key:U,actionWhen:Date.now()});else if($.decision==="uploadLocalDelHistToRemoteFolder")D.push({key:U,actionWhen:Date.now()});else if($.decision==="keepRemoteDelHistFolder")D.push({key:U,actionWhen:Date.now()});else throw Error(`do not know how to delete for decision ${$.decision}`)}let A=Date.now(),k=Qn(A);return{plan:{ts:A,tsFmt:k,remoteType:i,syncTriggerSource:s,mixedStates:v},sortedKeys:_,deletions:D,sizesGoWrong:w}},zDe=(e,t,n,r="",i="bidirectional")=>{var _,w,D,C,A,k;let s=e;if(s.key.endsWith("/"))return s;let o=(_=s.existLocal)!=null?_:!1,a=(w=s.existRemote)!=null?w:!1,l=s.prevSync!==void 0,u=(C=(D=s.prevSync)==null?void 0:D.mtime)!=null?C:0,p=(k=(A=s.prevSync)==null?void 0:A.size)!=null?k:0,d=i==="incremental_pull_only"||i==="incremental_pull_and_delete_only",f=i==="incremental_push_only"||i==="incremental_push_and_delete_only",m=i==="incremental_pull_and_delete_only",g=i==="incremental_push_and_delete_only",x=r===""?s.sizeLocal:s.sizeLocalEnc,v=r===""?s.sizeRemote:s.sizeRemoteEnc;if(o&&(s.mtimeLocal===void 0||s.mtimeLocal<=0))throw Error(`Error: Abnormal last modified time locally: ${JSON.stringify(s,null,2)}`);if(a&&(s.mtimeRemote===void 0||s.mtimeRemote<=0))throw Error(`Error: Abnormal last modified time remotely: ${JSON.stringify(s,null,2)}`);if(o&&a)return s.mtimeLocal===s.mtimeRemote?x===v?(s.decision="skipUploading",s.decisionBranch=1):(s.decision="uploadLocalToRemote",s.decisionBranch=2):s.mtimeLocal>s.mtimeRemote?d?(s.decision="skipUploading",s.decisionBranch=51):(s.decision="uploadLocalToRemote",s.decisionBranch=4):f?(s.decision="skipUploading",s.decisionBranch=53):(s.decision="downloadRemoteToLocal",s.decisionBranch=5),t.add(jl(s.key)),s;if(o&&!a)return l?g&&!d?(s.decision="skipUploading",s.decisionBranch=60):m?(s.decision="keepRemoteDelHist",s.decisionBranch=61):f?(s.decision="skipUploading",s.decisionBranch=62):(s.decision="keepRemoteDelHist",s.decisionBranch=7):(d?(s.decision="skipUploading",s.decisionBranch=63):(s.decision="uploadLocalToRemote",s.decisionBranch=64),t.add(jl(s.key))),s;if(!o&&a)return l?m&&!f?(s.decision="skipUploading",s.decisionBranch=65):g?(s.decision="uploadLocalDelHistToRemote",s.decisionBranch=66):d?(s.decision="downloadRemoteToLocal",s.decisionBranch=67):(s.decision="uploadLocalDelHistToRemote",s.decisionBranch=6):(f?(s.decision="skipUploading",s.decisionBranch=68):(s.decision="downloadRemoteToLocal",s.decisionBranch=69),t.add(jl(s.key))),s;if(!o&&!a&&l)return s.decision="skipUploading",s.decisionBranch=70,s;if(!o&&!a&&!l)return s.decision="skipUploading",s.decisionBranch=71,s;throw Error(`no decision for ${JSON.stringify(s)}`)},qDe=async(e,t,n,r="",i="bidirectional")=>{var m,g;let s=e;if(!s.key.endsWith("/"))return s;let o=(m=s.existLocal)!=null?m:!1,a=(g=s.existRemote)!=null?g:!1,l=s.prevSync!==void 0,u=i==="incremental_pull_only"||i==="incremental_pull_and_delete_only",p=i==="incremental_push_only"||i==="incremental_push_and_delete_only",d=i==="incremental_pull_and_delete_only",f=i==="incremental_push_and_delete_only";if(!t.has(s.key))o&&a?(s.decision="skipFolder",s.decisionBranch=10):o&&!a?l&&(d||!p&&!u)?(s.decision="keepRemoteDelHistFolder",s.decisionBranch=9):(s.decision="createFolder",s.decisionBranch=15):!o&&a?l&&(f||!p&&!u)?(s.decision="uploadLocalDelHistToRemoteFolder",s.decisionBranch=8):(s.decision="createFolder",s.decisionBranch=11):(s.decision="skipFolder",s.decisionBranch=72);else if(t.add(jl(s.key)),o&&a)s.decision="skipFolder",s.decisionBranch=12;else if(o||a)s.decision="createFolder",s.decisionBranch=13;else throw Error(`Error: Folder ${s.key} doesn't exist locally and remotely but is marked must be kept. Abort.`);return t.delete(s.key),s},FU=async(e,t,n,r,i,s,o,a,l="",u,p=1,d,f,m,g)=>{var W,pe,J,Te;if(o.length>0){oe.debug("some sizes are larger than the threshold, abort and show hints"),d(o);return}oe.debug(`concurrency === ${p}`);let{folderCreationOps:x,deletionOps:v,uploadDownloads:_,realTotalCount:w,allFilesCount:D,realModifyDeleteCount:C}=GDe(i,s);if(m!==void 0&&m>=0&&D>0&&(oe.debug(`protectModifyPercentage: ${m}`),oe.debug(`allFilesCount: ${D}, realModifyDeleteCount: ${C}`),!(m===100&&C===D))){if(C*100>=D*m){let Ke=(100*C/D).toFixed(1),Re=`syncrun_abort_protectmodifypercentage|${m}|${C}|${D}|${Ke}`;oe.debug(`aborting sync due to protectModifyPercentage: ${Re}`),g&&g(Re);return}}let A=[x,v,_];oe.debug("folderCreationOps: ",x.length," deletionOps: ",v.length," uploadDownloads: ",_.length);let k=new EU({concurrency:p,autoStart:!0}),I=w,L=0;oe.debug("Checking if lastSynced is set: ",u,"== -1?: ",u==-1);let U=[];for(let Ke of A)for(let Re of Ke)if(Re!=null)for(let He of Re){let Ge=He.key,et=Ke===v;if(u==-1){let O=[".obsidian/app.json",".obsidian/appearance.json",".obsidian/core-plugins-migration.json",".obsidian/core-plugins.json",".obsidian/graph.json",".obsidian/workspace.json"];He.existRemote&&O.includes(Ge)&&(oe.debug("downloading from remote for first sync: ",Ge),He.decision="downloadRemoteToLocal")}k.add(async()=>{let O=await VDe(Ge,et,He,n,e,t,r,a,l);return!et&&!He.decision.startsWith("createFolder")&&(L++,f!==void 0&&await f(L,I)),O}).catch(O=>{let H=`${Ge}: ${O.message}`;U.push(new Error(H)),U.length>=3&&(U.push(new Error("too many errors, stop the remaining tasks")),k.pause(),k.clear())})}if(await k.onIdle(),U.length>0)throw new Pi(U);oe.debug("V3 sync finished, saving prevSync records");let $=[];for(let Ke of s){let Re=i.mixedStates[Ke];if(Re.decision==="skipUploading"||Re.decision==="uploadLocalToRemote"||Re.decision==="downloadRemoteToLocal"||Re.decision==="createFolder"||Re.decision==="skipFolder"){let He=(pe=(W=Re.mtimeLocal)!=null?W:Re.mtimeRemote)!=null?pe:Date.now(),Ge=(Te=(J=Re.sizeLocal)!=null?J:Re.sizeRemote)!=null?Te:0;$.push({key:Ke,mtime:He,size:Ge,keyType:Ke.endsWith("/")?"folder":"file",vaultRandomID:n})}}return await y$(t,n,$),oe.debug("V3 sync finished, prevSync records saved"),Date.now()};var BU=async(e,t,n,r,i,s="")=>{let o=No,a=o;s!==""&&(n===void 0?a=void 0:a=n.remoteEncryptedKey,(a===void 0||a==="")&&(a=await A_(o,s)));let l={deletions:i},u=serializeMetadataOnRemote(l);return(await e.uploadToRemote(o,t,!1,s,a,void 0,!0,u)).lastModified},HDe=async(e,t,n,r,i,s,o,a="")=>{let l=e;if(a!==""&&(l=n.remoteEncryptedKey,(l===void 0||l==="")&&(l=await A_(e,a))),n.decision===void 0)throw Error(`unknown decision in ${JSON.stringify(n)}`);if(n.decision!=="skipUploading"){if(n.decision==="uploadLocalDelHistToRemote")n.existLocal&&await o(n.key),n.existRemote&&await r.deleteFromRemote(n.key,a,l),await Rs(i,n.key,t);else if(n.decision==="keepRemoteDelHist")n.existLocal&&await o(n.key),n.existRemote&&await r.deleteFromRemote(n.key,a,l),await Rs(i,n.key,t);else if(n.decision==="uploadLocalToRemote"){if(!(r.serviceType==="onedrive"&&n.sizeLocal===0&&a==="")){let u=await r.uploadToRemote(n.key,s,!1,a,l);await Lw(r.serviceType,i,n.key,n.mtimeLocal,n.sizeLocal,n.key,u.lastModified,u.size,u.etag,t)}await Rs(i,n.key,t)}else if(n.decision==="downloadRemoteToLocal")await r.downloadFromRemote(n.key,s,n.mtimeRemote,a,l),await Rs(i,n.key,t);else if(n.decision==="createFolder"){if(n.existLocal||await Lr(n.key,s),!n.existRemote){let u=await r.uploadToRemote(n.key,s,!1,a,l);await Lw(r.serviceType,i,n.key,n.mtimeLocal,n.sizeLocal,n.key,u.lastModified,u.size,u.etag,t)}await Rs(i,n.key,t)}else if(n.decision==="uploadLocalDelHistToRemoteFolder")n.existLocal&&await o(n.key),n.existRemote&&await r.deleteFromRemote(n.key,a,l),await Rs(i,n.key,t);else if(n.decision==="keepRemoteDelHistFolder")n.existLocal&&await o(n.key),n.existRemote&&await r.deleteFromRemote(n.key,a,l),await Rs(i,n.key,t);else if(n.decision!=="skipFolder"){if(n.decision!=="skipUploadingTooLarge"){if(n.decision!=="skipDownloadingTooLarge"){if(n.decision!=="skipUsingLocalDelTooLarge"){if(n.decision!=="skipUsingRemoteDelTooLarge")throw Error(`unknown decision in ${JSON.stringify(n)}`)}}}}}},GDe=(e,t)=>{let n=e.mixedStates,r=t.length||0,i=[],s=[],o=[],a=0,l=0,u=0,p=0;for(let d=0;dthis.plugin.i18n.t(i,s);n.createEl("h2",{text:r("modal_password_title")}),r("modal_password_shortdesc").split(` -`).forEach((i,s)=>{n.createEl("p",{text:i})}),[r("modal_password_attn1"),r("modal_password_attn2"),r("modal_password_attn3"),r("modal_password_attn4"),r("modal_password_attn5")].forEach((i,s)=>{s<3?n.createEl("p",{text:i,cls:"password-disclaimer"}):n.createEl("p",{text:i})}),new ie.Setting(n).addButton(i=>{i.setButtonText(r("modal_password_secondconfirm")),i.onClick(async()=>{this.plugin.settings.password=this.newPassword,await this.plugin.saveSettings(),new ie.Notice(r("modal_password_notice")),this.close()}),i.setClass("password-second-confirm")}).addButton(i=>{i.setButtonText(r("goback")),i.onClick(()=>{this.close()})})}onClose(){let{contentEl:n}=this;n.empty()}},Rg=class extends ie.Modal{constructor(n,r,i,s){super(n);S(this,"plugin");S(this,"newRemoteBaseDir");S(this,"service");this.plugin=r,this.newRemoteBaseDir=i,this.service=s}onOpen(){let{contentEl:n}=this,r=(i,s)=>this.plugin.i18n.t(i,s);n.createEl("h2",{text:r("modal_remotebasedir_title")}),r("modal_remotebasedir_shortdesc").split(` -`).forEach((i,s)=>{n.createEl("p",{text:i})}),this.newRemoteBaseDir===""||this.newRemoteBaseDir===this.app.vault.getName()?new ie.Setting(n).addButton(i=>{i.setButtonText(r("modal_remotebasedir_secondconfirm_vaultname")),i.onClick(async()=>{this.plugin.settings[this.service].remoteBaseDir="",await this.plugin.saveSettings(),new ie.Notice(r("modal_remotebasedir_notice")),this.close()}),i.setClass("remotebasedir-second-confirm")}).addButton(i=>{i.setButtonText(r("goback")),i.onClick(()=>{this.close()})}):z8(this.newRemoteBaseDir)?(n.createEl("p",{text:r("modal_remotebasedir_invaliddirhint")}),new ie.Setting(n).addButton(i=>{i.setButtonText(r("goback")),i.onClick(()=>{this.close()})})):new ie.Setting(n).addButton(i=>{i.setButtonText(r("modal_remotebasedir_secondconfirm_change")),i.onClick(async()=>{this.plugin.settings[this.service].remoteBaseDir=this.newRemoteBaseDir,this.plugin.settings.lastSynced=-1,await this.plugin.saveSettings(),new ie.Notice(r("modal_remotebasedir_notice")),this.close()}),i.setClass("remotebasedir-second-confirm")}).addButton(i=>{i.setButtonText(r("goback")),i.onClick(()=>{this.close()})})}onClose(){let{contentEl:n}=this;n.empty()}},iE=class extends ie.Modal{constructor(n,r,i){super(n);S(this,"plugin");S(this,"revokeAuthSetting");this.plugin=r,this.revokeAuthSetting=i}async onOpen(){let{contentEl:n}=this,{authUrl:r,verifier:i}=await n$(this.plugin.settings.onedrive.clientID,this.plugin.settings.onedrive.authority);this.plugin.oauth2Info.verifier=i;let s=(o,a)=>this.plugin.i18n.t(o,a);s("modal_onedriveauth_shortdesc").split(` -`).forEach(o=>{n.createEl("p",{text:o})}),n.createDiv().createEl("button",{text:s("modal_onedriveauth_copybutton"),cls:"mod-cta"},o=>{o.onclick=async()=>{await navigator.clipboard.writeText(r),new ie.Notice(s("modal_onedriveauth_copynotice"))}}),n.createEl("p").createEl("a",{href:r,text:r})}onClose(){let{contentEl:n}=this;n.empty()}},sE=class extends ie.Modal{constructor(n,r,i,s){super(n);S(this,"plugin");S(this,"authSetting");S(this,"revokeAuthSetting");this.plugin=r,this.authSetting=i,this.revokeAuthSetting=s}async onOpen(){let{contentEl:n}=this,r=(s,o)=>this.plugin.i18n.t(s,o);n.createEl("p",{text:r("modal_onedriverevokeauth_step1")});let i="https://microsoft.com/consent";n.createEl("p").createEl("a",{href:i,text:i}),n.createEl("p",{text:r("modal_onedriverevokeauth_step2")}),new ie.Setting(n).setName(r("modal_onedriverevokeauth_clean")).setDesc(r("modal_onedriverevokeauth_clean_desc")).addButton(async s=>{s.setButtonText(r("modal_onedriverevokeauth_clean_button")),s.onClick(async()=>{try{this.plugin.settings.onedrive=JSON.parse(JSON.stringify(Po)),await this.plugin.saveSettings();let o=this.plugin.settings.onedrive.username!=="";this.authSetting.settingEl.toggleClass("tp-sync-auth-hidden",o),this.revokeAuthSetting.settingEl.toggleClass("tp-sync-revoke-hidden",!o),new ie.Notice(r("modal_onedriverevokeauth_clean_notice")),this.close()}catch(o){console.error(o),new ie.Notice(r("modal_onedriverevokeauth_clean_fail"))}})})}onClose(){let{contentEl:n}=this;n.empty()}},oE=class extends ie.Modal{constructor(n,r,i){super(n);S(this,"plugin");S(this,"saveDropdownFunc");this.plugin=r,this.saveDropdownFunc=i}async onOpen(){let{contentEl:n}=this,r=(i,s)=>this.plugin.i18n.t(i,s);r("modal_syncconfig_attn").split(` -`).forEach(i=>{n.createEl("p",{text:i})}),new ie.Setting(n).addButton(i=>{i.setButtonText(r("modal_syncconfig_secondconfirm")),i.onClick(async()=>{this.plugin.settings.syncConfigDir=!0,await this.plugin.saveSettings(),this.saveDropdownFunc(),new ie.Notice(r("modal_syncconfig_notice")),this.close()})}).addButton(i=>{i.setButtonText(r("goback")),i.onClick(()=>{this.close()})})}onClose(){let{contentEl:n}=this;n.empty()}},up=e=>{let t=createSpan("Hi!"),n=e.inputEl.insertAdjacentElement("afterend",t);return(0,ie.setIcon)(n,"eye-off"),n.addEventListener("click",r=>{let i=e.inputEl.getAttribute("type")==="text";(0,ie.setIcon)(n,i?"eye-off":"eye"),e.inputEl.setAttribute("type",i?"password":"text"),e.inputEl.focus()}),e.inputEl.setAttribute("type","password"),e},kg=class extends ie.PluginSettingTab{constructor(n,r){super(n,r);S(this,"plugin");S(this,"deletingRemoteMeta");S(this,"update");this.plugin=r,this.deletingRemoteMeta=!1}display(){let{containerEl:n}=this;n.empty();let r=(z,O)=>this.plugin.i18n.t(z,O),i=new ie.SettingGroup(n);i.setHeading(r("settings_chooseservice"));let s={s3:r("settings_s3"),onedrive:r("settings_onedrive"),webdav:r("settings_webdav")},o=new ie.SettingGroup(n);o.addClass("service-detail-group");let a=document.createDocumentFragment(),l=a.createEl("div",{text:s[this.plugin.settings.serviceType],cls:"setting-item-name"}),u=a.createDiv({cls:"settings-long-desc s3-hide"}),p=a.createDiv({cls:"settings-long-desc onedrive-hide"}),d=a.createDiv({cls:"settings-long-desc webdav-hide"});u.toggleClass("s3-hide",this.plugin.settings.serviceType!=="s3"),p.toggleClass("onedrive-hide",this.plugin.settings.serviceType!=="onedrive"),d.toggleClass("webdav-hide",this.plugin.settings.serviceType!=="webdav"),o.setHeading(a);let f=[],m=[],g=[];for(let z of[r("settings_s3_disclaimer1"),r("settings_s3_disclaimer2")])u.createEl("p",{text:z,cls:"s3-disclaimer"});sr||u.createEl("p",{text:r("settings_s3_cors")}),u.createEl("p",{text:r("settings_s3_prod")});let x=u.createEl("ul");x.createEl("li").createEl("a",{href:"https://docs.aws.amazon.com/general/latest/gr/s3.html",text:r("settings_s3_prod1")}),x.createEl("li").createEl("a",{href:"https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/getting-your-credentials.html",text:r("settings_s3_prod2")}),sr||x.createEl("li").createEl("a",{href:"https://docs.aws.amazon.com/AmazonS3/latest/userguide/enabling-cors-examples.html",text:r("settings_s3_prod3")}),o.addSetting(z=>(f.push(z),z.setName(r("settings_s3_endpoint")).setDesc(r("settings_s3_endpoint")).addText(O=>O.setPlaceholder("").setValue(this.plugin.settings.s3.s3Endpoint).onChange(async H=>{this.plugin.settings.s3.s3Endpoint=H.trim(),await this.plugin.saveSettings()})))),o.addSetting(z=>(f.push(z),z.setName(r("settings_s3_region")).setDesc(r("settings_s3_region_desc")).addText(O=>O.setPlaceholder("").setValue(`${this.plugin.settings.s3.s3Region}`).onChange(async H=>{this.plugin.settings.s3.s3Region=H.trim(),await this.plugin.saveSettings()})))),o.addSetting(z=>(f.push(z),z.setName(r("settings_s3_accesskeyid")).setDesc(r("settings_s3_accesskeyid_desc")).addText(O=>{up(O),O.setPlaceholder("").setValue(`${this.plugin.settings.s3.s3AccessKeyID}`).onChange(async H=>{this.plugin.settings.s3.s3AccessKeyID=H.trim(),await this.plugin.saveSettings()})}))),o.addSetting(z=>(f.push(z),z.setName(r("settings_s3_secretaccesskey")).setDesc(r("settings_s3_secretaccesskey_desc")).addText(O=>{up(O),O.setPlaceholder("").setValue(`${this.plugin.settings.s3.s3SecretAccessKey}`).onChange(async H=>{this.plugin.settings.s3.s3SecretAccessKey=H.trim(),await this.plugin.saveSettings()})}))),o.addSetting(z=>(f.push(z),z.setName(r("settings_s3_bucketname")).setDesc(r("settings_s3_bucketname")).addText(O=>O.setPlaceholder("").setValue(`${this.plugin.settings.s3.s3BucketName}`).onChange(async H=>{this.plugin.settings.s3.s3BucketName=H.trim(),await this.plugin.saveSettings()})))),o.addSetting(z=>(f.push(z),z.setName(r("settings_s3_urlstyle")).setDesc(r("settings_s3_urlstyle_desc")).addDropdown(O=>{O.addOption("virtualHostedStyle",r("settings_s3_urlstyle_virtual")),O.addOption("pathStyle",r("settings_s3_urlstyle_path")),O.setValue(this.plugin.settings.s3.forcePathStyle?"pathStyle":"virtualHostedStyle").onChange(async H=>{this.plugin.settings.s3.forcePathStyle=H==="pathStyle",await this.plugin.saveSettings()})}))),sr&&o.addSetting(z=>(f.push(z),z.setName(r("settings_s3_bypasscorslocally")).setDesc(r("settings_s3_bypasscorslocally_desc")).addDropdown(O=>{O.addOption("disable",r("disable")).addOption("enable",r("enable")),O.setValue(`${this.plugin.settings.s3.bypassCorsLocally?"enable":"disable"}`).onChange(async H=>{H==="enable"?this.plugin.settings.s3.bypassCorsLocally=!0:this.plugin.settings.s3.bypassCorsLocally=!1,await this.plugin.saveSettings()})}))),o.addSetting(z=>(f.push(z),z.setName(r("settings_s3_parts")).setDesc(r("settings_s3_parts_desc")).addDropdown(O=>{O.addOption("1","1"),O.addOption("2","2"),O.addOption("3","3"),O.addOption("5","5"),O.addOption("10","10"),O.addOption("15","15"),O.addOption("20",r("settings_s3_parts_default")),O.setValue(`${this.plugin.settings.s3.partsConcurrency}`).onChange(async H=>{let se=parseInt(H);this.plugin.settings.s3.partsConcurrency=se,await this.plugin.saveSettings()})}))),o.addSetting(z=>(f.push(z),z.setName(r("settings_checkonnectivity")).setDesc(r("settings_checkonnectivity_desc")).addButton(async O=>{O.setButtonText(r("settings_checkonnectivity_button")),O.onClick(async()=>{new ie.Notice(r("settings_checkonnectivity_checking"));let H=new pi("s3",this.plugin.settings.s3),se={msg:""};await H.checkConnectivity(kn=>{se.msg=kn})?new ie.Notice(r("settings_s3_connect_succ")):(new ie.Notice(r("settings_s3_connect_fail")),new ie.Notice(se.msg))})})));for(let z of[r("settings_onedrive_disclaimer1"),r("settings_onedrive_disclaimer2")])p.createEl("p",{text:z,cls:"onedrive-disclaimer"});p.createEl("p",{text:r("settings_onedrive_folder",{pluginID:this.plugin.manifest.id,remoteBaseDir:this.plugin.settings.onedrive.remoteBaseDir||this.app.vault.getName()})}),p.createEl("p",{text:r("settings_onedrive_nobiz")});let v=this.plugin.settings.onedrive.username!=="",_,w;o.addSetting(z=>(m.push(z),_=z,v||z.settingEl.addClass("tp-sync-revoke-hidden"),z.settingEl.style.borderTop="none",z.settingEl.style.boxShadow="none",z.setName(r("settings_onedrive_revoke")).setDesc(r("settings_onedrive_revoke_desc",{username:this.plugin.settings.onedrive.username})).addButton(async O=>{O.setButtonText(r("settings_onedrive_revoke_button")),O.onClick(async()=>{new sE(this.app,this.plugin,w,_).open()})}))),o.addSetting(z=>(m.push(z),w=z,v&&z.settingEl.addClass("tp-sync-auth-hidden"),z.settingEl.style.borderTop="none",z.settingEl.style.boxShadow="none",z.setName(r("settings_onedrive_auth")).setDesc(r("settings_onedrive_auth_desc")).addButton(async O=>{O.setButtonText(r("settings_onedrive_auth_button")),O.onClick(async()=>{let H=new iE(this.app,this.plugin,_);this.plugin.oauth2Info.helperModal=H,this.plugin.oauth2Info.authSetting=w,this.plugin.oauth2Info.revokeAuthSetting=_,H.open()})})));let D=this.plugin.settings.onedrive.remoteBaseDir||"";o.addSetting(z=>(m.push(z),z.setName(r("settings_remotebasedir")).setDesc(r("settings_remotebasedir_desc")).addText(O=>O.setPlaceholder(this.app.vault.getName()).setValue(D).onChange(H=>{D=H.trim()})).addButton(O=>{O.setButtonText(r("confirm")),O.onClick(()=>{new Rg(this.app,this.plugin,D,"onedrive").open()})}))),o.addSetting(z=>(m.push(z),z.setName(r("settings_checkonnectivity")).setDesc(r("settings_checkonnectivity_desc")).addButton(async O=>{O.setButtonText(r("settings_checkonnectivity_button")),O.onClick(async()=>{new ie.Notice(r("settings_checkonnectivity_checking"));let H=this,se=new pi("onedrive",void 0,void 0,this.plugin.settings.onedrive,this.app.vault.getName(),()=>H.plugin.saveSettings()),Ve={msg:""};await se.checkConnectivity(ot=>{Ve.msg=`${ot}`})?new ie.Notice(r("settings_onedrive_connect_succ")):(new ie.Notice(r("settings_onedrive_connect_fail")),new ie.Notice(Ve.msg))})}))),d.createEl("p",{text:r("settings_webdav_disclaimer1"),cls:"webdav-disclaimer"}),sr||(d.createEl("p",{text:r("settings_webdav_cors_os")}),d.createEl("p",{text:r("settings_webdav_cors")})),d.createEl("p",{text:r("settings_webdav_folder",{remoteBaseDir:this.plugin.settings.webdav.remoteBaseDir||this.app.vault.getName()})}),o.addSetting(z=>(g.push(z),z.setName(r("settings_webdav_addr")).setDesc(r("settings_webdav_addr_desc")).addText(O=>O.setPlaceholder("").setValue(this.plugin.settings.webdav.address).onChange(async H=>{this.plugin.settings.webdav.address=H.trim(),(this.plugin.settings.webdav.depth==="auto_1"||this.plugin.settings.webdav.depth==="auto_infinity")&&(this.plugin.settings.webdav.depth="auto_unknown"),dg(this.plugin.settings.webdav),await this.plugin.saveSettings()})))),o.addSetting(z=>(g.push(z),z.setName(r("settings_webdav_user")).setDesc(r("settings_webdav_user_desc")).addText(O=>{up(O),O.setPlaceholder("").setValue(this.plugin.settings.webdav.username).onChange(async H=>{this.plugin.settings.webdav.username=H.trim(),(this.plugin.settings.webdav.depth==="auto_1"||this.plugin.settings.webdav.depth==="auto_infinity")&&(this.plugin.settings.webdav.depth="auto_unknown"),await this.plugin.saveSettings()})}))),o.addSetting(z=>(g.push(z),z.setName(r("settings_webdav_password")).setDesc(r("settings_webdav_password_desc")).addText(O=>{up(O),O.setPlaceholder("").setValue(this.plugin.settings.webdav.password).onChange(async H=>{this.plugin.settings.webdav.password=H.trim(),(this.plugin.settings.webdav.depth==="auto_1"||this.plugin.settings.webdav.depth==="auto_infinity")&&(this.plugin.settings.webdav.depth="auto_unknown"),await this.plugin.saveSettings()})}))),o.addSetting(z=>(g.push(z),z.setName(r("settings_webdav_auth")).setDesc(r("settings_webdav_auth_desc")).addDropdown(async O=>{O.addOption("basic","basic"),sr&&O.addOption("digest","digest"),!sr&&this.plugin.settings.webdav.authType!=="basic"&&(this.plugin.settings.webdav.authType="basic",await this.plugin.saveSettings()),O.setValue(this.plugin.settings.webdav.authType).onChange(async H=>{this.plugin.settings.webdav.authType=H,await this.plugin.saveSettings()})}))),o.addSetting(z=>(g.push(z),z.setName(r("settings_webdav_depth")).setDesc(r("settings_webdav_depth_desc")).addDropdown(O=>{O.addOption("auto",r("settings_webdav_depth_auto")),O.addOption("manual_1",r("settings_webdav_depth_1")),O.addOption("manual_infinity",r("settings_webdav_depth_inf"));let H="auto";new Set(["auto_unknown","auto_1","auto_infinity"]).has(this.plugin.settings.webdav.depth)?H="auto":H=this.plugin.settings.webdav.depth||"auto",O.setValue(H).onChange(async Ve=>{Ve==="auto"?(this.plugin.settings.webdav.depth="auto_unknown",this.plugin.settings.webdav.manualRecursive=!1):Ve==="manual_1"?(this.plugin.settings.webdav.depth="manual_1",this.plugin.settings.webdav.manualRecursive=!0):Ve==="manual_infinity"&&(this.plugin.settings.webdav.depth="manual_infinity",this.plugin.settings.webdav.manualRecursive=!1),dg(this.plugin.settings.webdav),await this.plugin.saveSettings()})})));let C=this.plugin.settings.webdav.remoteBaseDir||"";o.addSetting(z=>(g.push(z),z.setName(r("settings_remotebasedir")).setDesc(r("settings_remotebasedir_desc")).addText(O=>O.setPlaceholder(this.app.vault.getName()).setValue(C).onChange(H=>{C=H.trim()})).addButton(O=>{O.setButtonText(r("confirm")),O.onClick(()=>{new Rg(this.app,this.plugin,C,"webdav").open()})}))),o.addSetting(z=>(g.push(z),z.setName(r("settings_checkonnectivity")).setDesc(r("settings_checkonnectivity_desc")).addButton(async O=>{O.setButtonText(r("settings_checkonnectivity_button")),O.onClick(async()=>{new ie.Notice(r("settings_checkonnectivity_checking"));let H=this,se=new pi("webdav",void 0,this.plugin.settings.webdav,void 0,this.app.vault.getName(),()=>H.plugin.saveSettings()),Ve={msg:""};await se.checkConnectivity(ot=>{Ve.msg=`${ot}`})?new ie.Notice(r("settings_webdav_connect_succ")):(sr?new ie.Notice(r("settings_webdav_connect_fail")):new ie.Notice(r("settings_webdav_connect_fail_withcors")),new ie.Notice(Ve.msg))})})));let A=this.plugin.settings.serviceType==="s3",k=this.plugin.settings.serviceType==="onedrive",I=this.plugin.settings.serviceType==="webdav";f.forEach(z=>z.settingEl.toggleClass("s3-hide",!A)),m.forEach(z=>z.settingEl.toggleClass("onedrive-hide",!k)),g.forEach(z=>z.settingEl.toggleClass("webdav-hide",!I)),i.addSetting(z=>z.setName(r("settings_chooseservice")).setDesc(r("settings_chooseservice_desc")).addDropdown(async O=>{O.addOption("s3",r("settings_chooseservice_s3")),O.addOption("webdav",r("settings_chooseservice_webdav")),O.addOption("onedrive",r("settings_chooseservice_onedrive")),O.setValue(this.plugin.settings.serviceType).onChange(async H=>{this.plugin.settings.serviceType=H,await this.plugin.saveSettings(),this.display()})}));let L=new ie.SettingGroup(n);L.setHeading(r("settings_basic"));let U=`${this.plugin.settings.password}`;L.addSetting(z=>z.setName(r("settings_password")).setDesc(r("settings_password_desc")).addText(O=>{up(O),O.setPlaceholder("").setValue(`${this.plugin.settings.password}`).onChange(async H=>{U=H.trim()})}).addButton(async O=>{O.setButtonText(r("confirm")),O.onClick(async()=>{new rE(this.app,this.plugin,U).open()})})),L.addSetting(z=>z.setName(r("settings_saverun")).setDesc(r("settings_saverun_desc")).addDropdown(O=>{O.addOption("-1",r("settings_saverun_notset")),O.addOption("0",r("settings_saverun_instant")),O.addOption(`${1e3*5}`,r("settings_saverun_5sec")),O.addOption(`${1e3*10}`,r("settings_saverun_10sec")),O.addOption(`${1e3*30}`,r("settings_saverun_30sec")),O.addOption(`${1e3*60}`,r("settings_saverun_1min"));let H=!1;O.setValue(`${this.plugin.settings.syncOnSaveAfterMilliseconds}`).onChange(async se=>{let Ve=parseInt(se);this.plugin.settings.syncOnSaveAfterMilliseconds=Ve,await this.plugin.saveSettings(),Ve<0?this.plugin.toggleSyncOnSave(!1):this.plugin.toggleSyncOnSave(!0)})})),L.addSetting(z=>z.setName(r("settings_remoterun")).setDesc(r("settings_remoterun_desc")).addDropdown(O=>{O.addOption("-1",r("settings_remoterun_notset")),O.addOption(`${1e3*1}`,r("settings_remoterun_1sec")),O.addOption(`${1e3*5}`,r("settings_remoterun_5sec")),O.addOption(`${1e3*10}`,r("settings_remoterun_10sec")),O.addOption(`${1e3*60}`,r("settings_remoterun_1min")),O.setValue(`${this.plugin.settings.syncOnRemoteChangesAfterMilliseconds}`).onChange(async H=>{let se=parseInt(H);this.plugin.settings.syncOnRemoteChangesAfterMilliseconds=se,await this.plugin.saveSettings(),se<=0?this.plugin.toggleSyncOnRemote(!1):this.plugin.toggleSyncOnRemote(!0)})})),L.addSetting(z=>z.setName(r("settings_autorun")).setDesc(r("settings_autorun_desc")).addDropdown(O=>{O.addOption("-1",r("settings_autorun_notset")),O.addOption(`${1e3*5}`,r("settings_autorun_second",{time:5})),O.addOption(`${1e3*15}`,r("settings_autorun_second",{time:15})),O.addOption(`${1e3*30}`,r("settings_autorun_second",{time:30})),O.addOption(`${1e3*60}`,r("settings_autorun_1min")),O.addOption(`${1e3*60*5}`,r("settings_autorun_5min")),O.addOption(`${1e3*60*10}`,r("settings_autorun_10min")),O.addOption(`${1e3*60*30}`,r("settings_autorun_30min")),O.setValue(`${this.plugin.settings.autoRunEveryMilliseconds}`).onChange(async H=>{let se=parseInt(H);if(this.plugin.settings.autoRunEveryMilliseconds=se,await this.plugin.saveSettings(),(se==null||se<=0)&&this.plugin.autoRunIntervalID!==void 0)window.clearInterval(this.plugin.autoRunIntervalID),this.plugin.autoRunIntervalID=void 0;else if(se!=null&&se>0){let Ve=window.setInterval(()=>{this.plugin.syncRun("auto")},se);this.plugin.autoRunIntervalID=Ve,this.plugin.registerInterval(Ve)}})})),L.addSetting(z=>z.setName(r("settings_runoncestartup")).setDesc(r("settings_runoncestartup_desc")).addDropdown(O=>{O.addOption("-1",r("settings_runoncestartup_notset")),O.addOption(`${1e3*1*1}`,r("settings_runoncestartup_1sec")),O.addOption(`${1e3*10*1}`,r("settings_runoncestartup_10sec")),O.addOption(`${1e3*30*1}`,r("settings_runoncestartup_30sec")),O.setValue(`${this.plugin.settings.initRunAfterMilliseconds}`).onChange(async H=>{let se=parseInt(H);this.plugin.settings.initRunAfterMilliseconds=se,await this.plugin.saveSettings()})})),L.addSetting(z=>z.setName(r("settings_skiplargefiles")).setDesc(r("settings_skiplargefiles_desc")).addDropdown(O=>{O.addOption("-1",r("settings_skiplargefiles_notset"));let H=[1,5,10,50,100,500,1e3];for(let se of H)O.addOption(`${se*1e3*1e3}`,`${se} MB`);O.setValue(`${this.plugin.settings.skipSizeLargerThan}`).onChange(async se=>{this.plugin.settings.skipSizeLargerThan=parseInt(se),await this.plugin.saveSettings()})})),L.addSetting(z=>z.setName(r("settings_enablestatusbar_info")).setDesc(r("settings_enablestatusbar_info_desc")).addToggle(O=>{O.setValue(this.plugin.settings.enableStatusBarInfo).onChange(async H=>{this.plugin.settings.enableStatusBarInfo=H,await this.plugin.saveSettings(),this.plugin.toggleStatusBar(H),$.toggleClass("third-party-sync-hidden",this.plugin.settings.enableStatusBarInfo!==!0)})}));let $=L.groupEl.createDiv({cls:"third-party-sync-hidden"});$.toggleClass("third-party-sync-hidden",this.plugin.settings.enableStatusBarInfo!==!0),L.addSetting(z=>z.setName(r("settings_sync_trash")).setDesc(r("settings_sync_trash_desc")).addToggle(O=>{O.setValue(this.plugin.settings.syncTrash).onChange(async H=>{this.plugin.settings.syncTrash=H,await this.plugin.saveSettings()})})),L.addSetting(z=>z.setName(r("settings_sync_bookmarks")).setDesc(r("settings_sync_bookmarks_desc")).addToggle(O=>{O.setValue(this.plugin.settings.syncBookmarks).onChange(async H=>{this.plugin.settings.syncBookmarks=H,await this.plugin.saveSettings()})}));let W=new ie.SettingGroup(n);W.setHeading(r("settings_adv")),W.addSetting(z=>z.setName(r("settings_concurrency")).setDesc(r("settings_concurrency_desc")).addDropdown(O=>{O.addOption("1","1"),O.addOption("2","2"),O.addOption("3","3"),O.addOption("5",r("settings_concurrency_default")),O.addOption("10","10"),O.addOption("15","15"),O.addOption("20","20"),O.setValue(`${this.plugin.settings.concurrency}`).onChange(async H=>{let se=parseInt(H);this.plugin.settings.concurrency=se,await this.plugin.saveSettings()})})),W.addSetting(z=>z.setName(r("settings_syncunderscore")).setDesc(r("settings_syncunderscore_desc")).addDropdown(O=>{O.addOption("disable",r("disable")),O.addOption("enable",r("enable")),O.setValue(`${this.plugin.settings.syncUnderscoreItems?"enable":"disable"}`).onChange(async H=>{this.plugin.settings.syncUnderscoreItems=H==="enable",await this.plugin.saveSettings()})})),W.addSetting(z=>z.setName(r("settings_deletetowhere")).setDesc(r("settings_deletetowhere_desc")).addDropdown(O=>{var H;O.addOption("system_trash",r("settings_deletetowhere_system_trash")),O.addOption("obsidian_trash",r("settings_deletetowhere_obsidian_trash")),O.setValue((H=this.plugin.settings.deleteToWhere)!=null?H:"system_trash").onChange(async se=>{this.plugin.settings.deleteToWhere=se,await this.plugin.saveSettings()})})),W.addSetting(z=>z.setName(r("settings_conflictaction")).setDesc(r("settings_conflictaction_desc")).addDropdown(O=>{var H;O.addOption("keep_newer",r("settings_conflictaction_keep_newer")),O.addOption("keep_larger",r("settings_conflictaction_keep_larger")),O.setValue((H=this.plugin.settings.conflictAction)!=null?H:"keep_newer").onChange(async se=>{this.plugin.settings.conflictAction=se,await this.plugin.saveSettings()})}));let pe;W.addSetting(z=>(pe=z,z.setName(r("setting_syncdirection")).setDesc((O=>{let H=document.createDocumentFragment();return O.split(` -`).forEach((Ve,kn)=>{kn>0&&H.appendChild(document.createElement("br")),H.appendChild(document.createTextNode(Ve))}),H})(r("setting_syncdirection_desc"))).addDropdown(O=>{var H;O.addOption("bidirectional",r("setting_syncdirection_bidirectional_desc")),O.addOption("incremental_push_only",r("setting_syncdirection_incremental_push_only_desc")),O.addOption("incremental_pull_only",r("setting_syncdirection_incremental_pull_only_desc")),O.addOption("incremental_push_and_delete_only",r("setting_syncdirection_incremental_push_and_delete_only_desc")),O.addOption("incremental_pull_and_delete_only",r("setting_syncdirection_incremental_pull_and_delete_only_desc")),O.setValue((H=this.plugin.settings.syncDirection)!=null?H:"bidirectional").onChange(async se=>{this.plugin.settings.syncDirection=se,await this.plugin.saveSettings()})})));let J=pe.settingEl,Te=pe.infoEl,Ke=pe.controlEl;Te&&Ke&&J.appendChild(Ke),W.addSetting(z=>z.setName(r("settings_protectmodifypercentage")).setDesc(r("settings_protectmodifypercentage_desc")).addDropdown(O=>{var H;O.addOption("0",r("settings_protectmodifypercentage_000_desc")),O.addOption("10","10"),O.addOption("20","20"),O.addOption("30","30"),O.addOption("40","40"),O.addOption("50",r("settings_protectmodifypercentage_050_desc")),O.addOption("60","60"),O.addOption("70","70"),O.addOption("80","80"),O.addOption("90","90"),O.addOption("100",r("settings_protectmodifypercentage_100_desc")),O.setValue(`${(H=this.plugin.settings.protectModifyPercentage)!=null?H:50}`).onChange(async se=>{this.plugin.settings.protectModifyPercentage=parseInt(se),await this.plugin.saveSettings()})})),W.addSetting(z=>z.setName(r("settings_configdir")).setDesc(r("settings_configdir_desc",{configDir:this.app.vault.configDir})).addDropdown(O=>{O.addOption("disable",r("disable")),O.addOption("enable",r("enable"));let H={secondConfirm:!1};O.setValue(`${this.plugin.settings.syncConfigDir?"enable":"disable"}`).onChange(async se=>{se==="enable"&&!H.secondConfirm?(O.setValue("disable"),new oE(this.app,this.plugin,()=>{H.secondConfirm=!0,O.setValue("enable")}).open()):(H.secondConfirm=!1,this.plugin.settings.syncConfigDir=!1,await this.plugin.saveSettings())})}));let Re=new ie.SettingGroup(n);Re.setHeading(r("settings_importexport"));let He="";Re.addSetting(z=>z.setName(r("settings_export")).setDesc(r("settings_export_desc")).addButton(async O=>{O.setButtonText(r("settings_export_s3_button")),O.onClick(async()=>{let H=(0,Ag.default)(this.plugin.settings);delete H.onedrive,delete H.webdav,delete H.vaultRandomID;let se=Fw(H,this.app.vault.getName(),this.plugin.manifest.version);await navigator.clipboard.writeText(se),new ie.Notice(r("modal_export_button_notice"))})}).addButton(async O=>{O.setButtonText(r("settings_export_webdav_button")),O.onClick(async()=>{let H=(0,Ag.default)(this.plugin.settings);delete H.onedrive,delete H.s3,delete H.vaultRandomID;let se=Fw(H,this.app.vault.getName(),this.plugin.manifest.version);await navigator.clipboard.writeText(se),new ie.Notice(r("modal_export_button_notice"))})})),Re.addSetting(z=>z.setName(r("settings_import")).setDesc(r("settings_import_desc")).addText(O=>{O.setPlaceholder("obsidian://third-party-sync?func=settings&vault=&version=&data=&compressed=1").onChange(H=>{He=H}),O.inputEl.style.width="100%"}).addButton(O=>{O.setButtonText(r("settings_import_button")),O.onClick(async()=>{var Lo,fp,mp;let H=He.trim();if(H===""){new ie.Notice(r("settings_import_error_notice"));return}let Ve=($i=>{let hp=di=>{let yp={};return di.forEach(($g,Ur)=>{yp[Ur]=$g}),yp};try{let di=new URL($i);return hp(di.searchParams)}catch(di){}let gp=$i.startsWith("?")?$i.slice(1):$i.includes("?")?$i.split("?").slice(1).join("?"):$i;if(gp.includes("="))try{let di=new URLSearchParams(gp);return hp(di)}catch(di){return}})(H);if(Ve===void 0){new ie.Notice(r("settings_import_error_notice"));return}let kn=og(Ve,this.app.vault.getName());if(kn.status==="error"){new ie.Notice(kn.message);return}let ot=(0,Ag.default)(kn.result);this.plugin.settings={...this.plugin.settings,...ot,s3:{...this.plugin.settings.s3,...(Lo=ot==null?void 0:ot.s3)!=null?Lo:{}},webdav:{...this.plugin.settings.webdav,...(fp=ot==null?void 0:ot.webdav)!=null?fp:{}},onedrive:{...this.plugin.settings.onedrive,...(mp=ot==null?void 0:ot.onedrive)!=null?mp:{}}},await this.plugin.saveSettings(),new ie.Notice(r("protocol_saveqr",{manifestName:this.plugin.manifest.name})),this.display()})}));let Ge=new ie.SettingGroup(n);Ge.setHeading(r("settings_debug")),Ge.addSetting(z=>z.setName(r("settings_debug_enabled")).setDesc(r("settings_debug_enabled_desc")).addDropdown(async O=>{O.addOption("disable",r("disable")),O.addOption("enable",r("enable")),O.setValue(this.plugin.settings.debugEnabled?"enable":"disable").onChange(async H=>{let se=H==="enable";this.plugin.settings.debugEnabled=se,se?oe.setLevel("debug"):oe.setLevel("info"),this.update(),await this.plugin.saveSettings()})}));let et=Ge.groupEl.createEl("div",{cls:"remotely-sync-debug-options"});this.update=()=>{let z=!!this.plugin.settings.debugEnabled;et.style.display=z?"block":"none",et.empty(),z&&(new ie.Setting(et).setName(r("settings_outputsettingsconsole")).setDesc(r("settings_outputsettingsconsole_desc")).addButton(async O=>{O.setButtonText(r("settings_outputsettingsconsole_button")),O.onClick(async()=>{let H=pg(await this.plugin.loadData());new ie.Notice(r("settings_outputsettingsconsole_notice")),console.log(H)})}),new ie.Setting(et).setName(r("settings_syncplans")).setDesc(r("settings_syncplans_desc")).addButton(async O=>{O.setButtonText(r("settings_syncplans_button_json")),O.onClick(async()=>{await kc(this.plugin.db,this.app.vault,this.plugin.vaultRandomID,"json"),new ie.Notice(r("settings_syncplans_notice"))})}).addButton(async O=>{O.setButtonText(r("settings_syncplans_button_table")),O.onClick(async()=>{await kc(this.plugin.db,this.app.vault,this.plugin.vaultRandomID,"table"),new ie.Notice(r("settings_syncplans_notice"))})}),new ie.Setting(et).setName(r("settings_delsyncplans")).setDesc(r("settings_delsyncplans_desc")).addButton(async O=>{O.setButtonText(r("settings_delsyncplans_button")),O.onClick(async()=>{await w$(this.plugin.db),new ie.Notice(r("settings_delsyncplans_notice"))})}),new ie.Setting(et).setName(r("settings_logtodb")).setDesc(r("settings_logtodb_desc")).addDropdown(async O=>{O.addOption("enable",r("enable")),O.addOption("disable",r("disable")),O.setValue(this.plugin.settings.logToDB?"enable":"disable").onChange(async H=>{let se=H==="enable";se?Nh((...Ve)=>{ug(this.plugin.db,this.plugin.vaultRandomID,...Ve)}):L8(),ep(this.plugin.db),this.plugin.settings.logToDB=se,await this.plugin.saveSettings()})}),new ie.Setting(et).setName(r("settings_logtodbexport")).setDesc(r("settings_logtodbexport_desc",{debugFolder:Ns})).addButton(async O=>{O.setButtonText(r("settings_logtodbexport_button")),O.onClick(async()=>{await lg(this.plugin.db,this.app.vault,this.plugin.vaultRandomID),new ie.Notice(r("settings_logtodbexport_notice"))})}),new ie.Setting(et).setName(r("settings_logtodbclear")).setDesc(r("settings_logtodbclear_desc")).addButton(async O=>{O.setButtonText(r("settings_logtodbclear_button")),O.onClick(async()=>{await S$(this.plugin.db),new ie.Notice(r("settings_logtodbclear_notice"))})}),new ie.Setting(et).setName(r("settings_delsyncmap")).setDesc(r("settings_delsyncmap_desc")).addButton(async O=>{O.setButtonText(r("settings_delsyncmap_button")),O.onClick(async()=>{await _$(this.plugin.db),new ie.Notice(r("settings_delsyncmap_notice"))})}),new ie.Setting(et).setName(r("settings_outputbasepathvaultid")).setDesc(r("settings_outputbasepathvaultid_desc")).addButton(async O=>{O.setButtonText(r("settings_outputbasepathvaultid_button")),O.onClick(async()=>{new ie.Notice(this.plugin.getVaultBasePath()),new ie.Notice(this.plugin.vaultRandomID)})}),new ie.Setting(et).setName(r("settings_resetcache")).setDesc(r("settings_resetcache_desc")).addButton(async O=>{O.setButtonText(r("settings_reset_button")),O.onClick(async()=>{await x$(),new ie.Notice(r("settings_resetcache_notice"))})}),new ie.Setting(et).setName(r("settings_disable_s3_metadata_sync")).setDesc(r("settings_disable_s3_metadata_sync_desc")).addToggle(O=>{O.setValue(this.plugin.settings.s3.disableS3MetadataSync).onChange(async H=>{this.plugin.settings.s3.disableS3MetadataSync=H,await this.plugin.saveSettings(),new ie.Notice(r("settings_enablestatusbar_reloadrequired_notice"))})}),new ie.Setting(et).setName(r("settings_reset_sync_metadata")).setDesc(r("settings_reset_sync_metadata_desc")).addButton(async O=>{O.setButtonText(r("settings_reset_button")),O.onClick(async()=>{if(this.deletingRemoteMeta){new ie.Notice(r("settings_reset_sync_metadata_notice_error"));return}new ie.Notice(r("settings_reset_sync_metadata_notice_start")),oe.debug("Deleting remote metadata file. (1/2)"),this.deletingRemoteMeta=!0,await this.deleteRemoteMetadata(),await BU(this.getClient(),this.app.vault,void 0,void 0,[],this.plugin.settings.password),this.deletingRemoteMeta=!1,new ie.Notice(r("settings_reset_sync_metadata_notice_end")),oe.debug("Remote metadata file deleted. (2/2)")})}))}}async deleteRemoteMetadata(){let n=this.getClient(),r=await n.listFromRemote(),i=await OU(r.Contents,n,this.plugin.settings.password);await n.deleteFromRemote(No,this.plugin.settings.password,i.remoteEncryptedKey)}getClient(){return new pi(this.plugin.settings.serviceType,this.plugin.settings.s3,this.plugin.settings.webdav,this.plugin.settings.onedrive,this.app.vault.getName(),()=>this.plugin.saveSettings())}hide(){let{containerEl:n}=this;n.empty(),super.hide()}};c();c();var WDe=Object.prototype.toString,Fc=Array.isArray||function(t){return WDe.call(t)==="[object Array]"};function cE(e){return typeof e=="function"}function KDe(e){return Fc(e)?"array":typeof e}function aE(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function IU(e,t){return e!=null&&typeof e=="object"&&t in e}function YDe(e,t){return e!=null&&typeof e!="object"&&e.hasOwnProperty&&e.hasOwnProperty(t)}var XDe=RegExp.prototype.test;function ZDe(e,t){return XDe.call(e,t)}var QDe=/\S/;function JDe(e){return!ZDe(QDe,e)}var eSe={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function tSe(e){return String(e).replace(/[&<>"'`=\/]/g,function(n){return eSe[n]})}var nSe=/\s*/,rSe=/\s+/,PU=/\s*=/,iSe=/\s*\}/,sSe=/#|\^|\/|>|\{|&|=|!/;function oSe(e,t){if(!e)return[];var n=!1,r=[],i=[],s=[],o=!1,a=!1,l="",u=0;function p(){if(o&&!a)for(;s.length;)delete i[s.pop()];else s=[];o=!1,a=!1}var d,f,m;function g(L){if(typeof L=="string"&&(L=L.split(rSe,2)),!Fc(L)||L.length!==2)throw new Error("Invalid tags: "+L);d=new RegExp(aE(L[0])+"\\s*"),f=new RegExp("\\s*"+aE(L[1])),m=new RegExp("\\s*"+aE("}"+L[1]))}g(t||Dr.tags);for(var x=new pp(e),v,_,w,D,C,A;!x.eos();){if(v=x.pos,w=x.scanUntil(d),w)for(var k=0,I=w.length;k"?C=[_,w,v,x.pos,l,u,n]:C=[_,w,v,x.pos],u++,i.push(C),_==="#"||_==="^")r.push(C);else if(_==="/"){if(A=r.pop(),!A)throw new Error('Unopened section "'+w+'" at '+v);if(A[1]!==w)throw new Error('Unclosed section "'+A[1]+'" at '+v)}else _==="name"||_==="{"||_==="&"?a=!0:_==="="&&g(w)}if(p(),A=r.pop(),A)throw new Error('Unclosed section "'+A[1]+'" at '+x.pos);return cSe(aSe(i))}function aSe(e){for(var t=[],n,r,i=0,s=e.length;i0?r[r.length-1][4]:t;break;default:n.push(i)}return t}function pp(e){this.string=e,this.tail=e,this.pos=0}pp.prototype.eos=function(){return this.tail===""};pp.prototype.scan=function(t){var n=this.tail.match(t);if(!n||n.index!==0)return"";var r=n[0];return this.tail=this.tail.substring(r.length),this.pos+=r.length,r};pp.prototype.scanUntil=function(t){var n=this.tail.search(t),r;switch(n){case-1:r=this.tail,this.tail="";break;case 0:r="";break;default:r=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=r.length,r};function Oc(e,t){this.view=e,this.cache={".":this.view},this.parent=t}Oc.prototype.push=function(t){return new Oc(t,this)};Oc.prototype.lookup=function(t){var n=this.cache,r;if(n.hasOwnProperty(t))r=n[t];else{for(var i=this,s,o,a,l=!1;i;){if(t.indexOf(".")>0)for(s=i.view,o=t.split("."),a=0;s!=null&&a"?u=this.renderPartial(a,n,r,s):l==="&"?u=this.unescapedValue(a,n):l==="name"?u=this.escapedValue(a,n,s):l==="text"&&(u=this.rawValue(a)),u!==void 0&&(o+=u);return o};Rn.prototype.renderSection=function(t,n,r,i,s){var o=this,a="",l=n.lookup(t[1]);function u(f){return o.render(f,n,r,s)}if(l){if(Fc(l))for(var p=0,d=l.length;p{await $r(Us,t);let r=await R$(e,n),i="";r.length===0?i="No logger history found.":i="Logger history found:\n\n```text\n"+r.join(` +`)+"\n```\n";let s=Date.now(),o=`${Us}${QC}${s}.md`;await t.create(o,i,{mtime:s})};c();var X1e="The file contains sensitive info, so DO NOT take screenshot of, copy, or share it to anyone! It's also generated automatically, so do not edit it manually.",fg=e=>e==null?e:"readme"in e&&"d"in e?JSON.parse(Mi.parse(wc(e.d),{out:h.Buffer.allocUnsafe,loose:!0}).toString("utf-8")):e,O$=e=>e==null?e:{readme:X1e,d:wc(Mi.stringify(h.Buffer.from(JSON.stringify(e),"utf-8"),{pad:!1}))};c();var Z1e={webdav:{depth:[{url:"^https://(.+).teracloud.jp/.+",depth:"auto_1",manualRecursive:!0},{url:"^https://dav.jianguoyun.com/dav/",depth:"auto_1",manualRecursive:!0}]}},mg=e=>{if(e===void 0)return{changed:!1,webdav:e};for(let{url:t,depth:n,manualRecursive:r}of Z1e.webdav.depth)if(e.address!==void 0&&new RegExp(t).test(e.address)&&e.depth!==void 0&&e.depth.startsWith("auto_")&&e.depth!==n)return e.depth=n,e.manualRecursive=r,{changed:!0,webdav:e};return{changed:!1,webdav:e}},F$=e=>e===void 0?{changed:!1,settings:e}:{changed:mg(e.webdav).changed,settings:e};c();var VDe=at(hU());var WDe="Do NOT edit or delete the file manually. This file is for the plugin third-party-sync to store some necessary meta data on the remote services. Its content is slightly obfuscated.",KDe="20220220",$o=".third-party-sync-metadata-on-remote.json",Hw=".third-party-sync-metadata-on-remote.bin",yg="_remotely-save-metadata-on-remote.json",Gw="_remotely-save-metadata-on-remote.bin",gU="data.json",Vw="/bookmarks.json";var yU=e=>{let t=e;t.version===void 0&&t.version,t.generatedWhen===void 0&&(t.generatedWhen=Date.now()),t.deletions===void 0&&(t.deletions=[]);let n={readme:WDe,d:wc(Mi.stringify(h.Buffer.from(JSON.stringify(e),"utf-8"),{pad:!1}))};return JSON.stringify(n,null,2)},Ww=e=>{let t="";typeof e=="string"?t=e:t=new TextDecoder().decode(e);let n;try{n=JSON.parse(t)}catch(s){throw new Error(`invalid remote meta data file with first few chars: ${t.slice(0,5)}`)}if(!("readme"in n&&"d"in n))throw new Error('invalid remote meta data file (no "readme" or "d" fields)!');let r;try{r=Mi.parse(wc(n.d),{out:h.Buffer.allocUnsafe,loose:!0}).toString("utf-8")}catch(s){throw new Error('invalid remote meta data file (invalid "d" field)!')}let i;try{i=JSON.parse(r)}catch(s){throw new Error(`invalid remote meta data file with "d" field with first few chars: ${r.slice(0,5)}`)}return i};c();var Ic=require("obsidian");c();c();var Yw=at(vU(),1);c();var sp=class extends Error{constructor(t){super(t),this.name="TimeoutError"}},Xw=class extends Error{constructor(t){super(),this.name="AbortError",this.message=t}},bU=e=>globalThis.DOMException===void 0?new Xw(e):new DOMException(e),_U=e=>{let t=e.reason===void 0?bU("This operation was aborted."):e.reason;return t instanceof Error?t:bU(t)};function Zw(e,t,n,r){let i,s=new Promise((o,a)=>{if(typeof t!="number"||Math.sign(t)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${t}\``);if(t===Number.POSITIVE_INFINITY){o(e);return}if(r={customTimers:{setTimeout,clearTimeout},...r},r.signal){let{signal:l}=r;l.aborted&&a(_U(l)),l.addEventListener("abort",()=>{a(_U(l))})}i=r.customTimers.setTimeout.call(void 0,()=>{if(typeof n=="function"){try{o(n())}catch(p){a(p)}return}let l=typeof n=="string"?n:`Promise timed out after ${t} milliseconds`,u=n instanceof Error?n:new sp(l);typeof e.cancel=="function"&&e.cancel(),a(u)},t),(async()=>{try{o(await e)}catch(l){a(l)}finally{r.customTimers.clearTimeout.call(void 0,i)}})()});return s.clear=()=>{clearTimeout(i),i=void 0},s}c();c();function Qw(e,t,n){let r=0,i=e.length;for(;i>0;){let s=Math.trunc(i/2),o=r+s;n(e[o],t)<=0?(r=++o,i-=s+1):i=s}return r}var Uo=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Ui,Jw=class{constructor(){Ui.set(this,[])}enqueue(t,n){n={priority:0,...n};let r={priority:n.priority,run:t};if(this.size&&Uo(this,Ui,"f")[this.size-1].priority>=n.priority){Uo(this,Ui,"f").push(r);return}let i=Qw(Uo(this,Ui,"f"),r,(s,o)=>o.priority-s.priority);Uo(this,Ui,"f").splice(i,0,r)}dequeue(){let t=Uo(this,Ui,"f").shift();return t==null?void 0:t.run}filter(t){return Uo(this,Ui,"f").filter(n=>n.priority===t.priority).map(n=>n.run)}get size(){return Uo(this,Ui,"f").length}};Ui=new WeakMap;var wU=Jw;var dt=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},ae=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},wt,ap,cp,Ps,Dg,up,vg,Ur,op,nr,bg,rr,lp,Is,_g,EU,DU,TU,SU,CU,wg,eE,tE,Sg,AU,Eg,Cg=class extends Error{},nE=class extends Yw.default{constructor(t){var n,r,i,s;if(super(),wt.add(this),ap.set(this,void 0),cp.set(this,void 0),Ps.set(this,0),Dg.set(this,void 0),up.set(this,void 0),vg.set(this,0),Ur.set(this,void 0),op.set(this,void 0),nr.set(this,void 0),bg.set(this,void 0),rr.set(this,0),lp.set(this,void 0),Is.set(this,void 0),_g.set(this,void 0),Object.defineProperty(this,"timeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),t={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:wU,...t},!(typeof t.intervalCap=="number"&&t.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${(r=(n=t.intervalCap)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:""}\` (${typeof t.intervalCap})`);if(t.interval===void 0||!(Number.isFinite(t.interval)&&t.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${(s=(i=t.interval)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""}\` (${typeof t.interval})`);dt(this,ap,t.carryoverConcurrencyCount,"f"),dt(this,cp,t.intervalCap===Number.POSITIVE_INFINITY||t.interval===0,"f"),dt(this,Dg,t.intervalCap,"f"),dt(this,up,t.interval,"f"),dt(this,nr,new t.queueClass,"f"),dt(this,bg,t.queueClass,"f"),this.concurrency=t.concurrency,this.timeout=t.timeout,dt(this,_g,t.throwOnTimeout===!0,"f"),dt(this,Is,t.autoStart===!1,"f")}get concurrency(){return ae(this,lp,"f")}set concurrency(t){if(!(typeof t=="number"&&t>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${t}\` (${typeof t})`);dt(this,lp,t,"f"),ae(this,wt,"m",Sg).call(this)}async add(t,n={}){return n={timeout:this.timeout,throwOnTimeout:ae(this,_g,"f"),...n},new Promise((r,i)=>{ae(this,nr,"f").enqueue(async()=>{var s,o,a;dt(this,rr,(o=ae(this,rr,"f"),o++,o),"f"),dt(this,Ps,(a=ae(this,Ps,"f"),a++,a),"f");try{if(!((s=n.signal)===null||s===void 0)&&s.aborted)throw new Cg("The task was aborted.");let l=t({signal:n.signal});n.timeout&&(l=Zw(Promise.resolve(l),n.timeout)),n.signal&&(l=Promise.race([l,ae(this,wt,"m",AU).call(this,n.signal)]));let u=await l;r(u),this.emit("completed",u)}catch(l){if(l instanceof sp&&!n.throwOnTimeout){r();return}i(l),this.emit("error",l)}finally{ae(this,wt,"m",TU).call(this)}},n),this.emit("add"),ae(this,wt,"m",wg).call(this)})}async addAll(t,n){return Promise.all(t.map(async r=>this.add(r,n)))}start(){return ae(this,Is,"f")?(dt(this,Is,!1,"f"),ae(this,wt,"m",Sg).call(this),this):this}pause(){dt(this,Is,!0,"f")}clear(){dt(this,nr,new(ae(this,bg,"f")),"f")}async onEmpty(){ae(this,nr,"f").size!==0&&await ae(this,wt,"m",Eg).call(this,"empty")}async onSizeLessThan(t){ae(this,nr,"f").sizeae(this,nr,"f").size{ae(this,wt,"m",SU).call(this)},n),"f"),!0}return!1},wg=function(){if(ae(this,nr,"f").size===0)return ae(this,Ur,"f")&&clearInterval(ae(this,Ur,"f")),dt(this,Ur,void 0,"f"),this.emit("empty"),ae(this,rr,"f")===0&&this.emit("idle"),!1;if(!ae(this,Is,"f")){let t=!ae(this,wt,"a",CU);if(ae(this,wt,"a",EU)&&ae(this,wt,"a",DU)){let n=ae(this,nr,"f").dequeue();return n?(this.emit("active"),n(),t&&ae(this,wt,"m",eE).call(this),!0):!1}}return!1},eE=function(){ae(this,cp,"f")||ae(this,Ur,"f")!==void 0||(dt(this,Ur,setInterval(()=>{ae(this,wt,"m",tE).call(this)},ae(this,up,"f")),"f"),dt(this,vg,Date.now()+ae(this,up,"f"),"f"))},tE=function(){ae(this,Ps,"f")===0&&ae(this,rr,"f")===0&&ae(this,Ur,"f")&&(clearInterval(ae(this,Ur,"f")),dt(this,Ur,void 0,"f")),dt(this,Ps,ae(this,ap,"f")?ae(this,rr,"f"):0,"f"),ae(this,wt,"m",Sg).call(this)},Sg=function(){for(;ae(this,wt,"m",wg).call(this););},AU=async function(t){return new Promise((n,r)=>{t.addEventListener("abort",()=>{r(new Cg("The task was aborted."))},{once:!0})})},Eg=async function(t,n){return new Promise(r=>{let i=()=>{n&&!n()||(this.off(t,i),r())};this.on(t,i)})};var rE=nE;c();var OU=at(P_()),FU=at(N_()),BU=at(M_());var RU=e=>{let t=[".git",".github",".gitlab",".svn","node_modules",".DS_Store"];for(let n of t)if(e===n||e===`${n}/`||e.endsWith(`/${n}`)||e.endsWith(`/${n}/`))return!0;return!1},ZDe=(e,t)=>e===t||e===t+"/"||e.endsWith("/"+t)||e.endsWith("/"+t+"/"),kU=e=>{let t=["data.json","main.js","manifest.json",".gitignore","styles.css"];for(let n of t)if(e===n||e.endsWith(`/${n}`))return!0;return!1},IU=(e,t)=>{if(!t.startsWith("."))throw Error(`configDir should starts with . but we get ${t}`);return e===t||e.startsWith(`${t}/`)},PU=e=>e.startsWith(".trash"),Tg=async(e,t,n)=>{let r=[e.configDir];n&&await e.adapter.stat(".trash")!=null&&r.push(".trash");let i=new OU.Queue(r),s=10,o=[];for(;i.length>0;){let a=[];for(;i.length>0;)a.push(i.pop());let l=(0,FU.default)(a,s);for(let u of l){let p=u.map(async f=>{let m=await Es(e,f),g=m.type==="folder",x;return g&&(x=await e.adapter.list(f)),{itself:{key:g?`${f}/`:f,...m},children:x}}),d=(0,BU.default)(await Promise.all(p));for(let f of d){o.push(f.itself);let m=ZDe(f.itself.key,t);if(f.children!==void 0){for(let g of f.children.folders)RU(g)||m&&!kU(g)||i.push(g);for(let g of f.children.files)RU(g)||m&&!kU(g)||i.push(g)}}}}return o};var iE=async(e,t="")=>{if(e===void 0||e.length===0)return{ok:!0,reason:"empty_remote"};let n=e.some(i=>i.key===$o||i.key===Hw||i.key===yg||i.key===Gw);if(se.debug("password is blank? ",t==""," remote has metadata? ",n),t=="")return n?{ok:!0,reason:"no_password_both_sides"}:e.some(s=>!s.key.includes(".")||s.key.endsWith(".json"))?{ok:!0,reason:"no_password_both_sides"}:{ok:!0,reason:"no_password_both_sides"};let r=e[0].key;try{let i=await Uh(r,t);return{ok:!0,reason:"password_matched"}}catch(i){return{ok:!1,reason:"password_not_matched"}}},NU=async(e,t,n="")=>{if(e===void 0)return;let r=[];for(let i of e){let s=i.key,o=s;n!==""&&(o=await Uh(s,n)),(o===$o||o===yg)&&r.push({key:o,existRemote:!0,mtimeRemote:i.lastModified,mtimeRemoteFmt:jn(i.lastModified),sizeRemote:n===""?i.size:void 0,sizeRemoteEnc:n===""?void 0:i.size,remoteEncryptedKey:s,changeRemoteMtimeUsingMapping:!1})}if(r.length>1){r=r.sort((s,o)=>o.mtimeRemote-s.mtimeRemote);let i=new Set;r.forEach(async s=>{if(!i.has(s.key)){i.add(s.key);return}await t.deleteFromRemote(s.key,n,s.remoteEncryptedKey)})}return r[0]},Rg=async(e,t,n,r,i="")=>{let s=[];if(e===void 0)return s;for(let o of e){let a=o.key,l=a;i!==""&&(l=await Uh(a,i));let u=await S$(r,t,l,o.lastModified,o.etag,n),p={};if(u!==void 0){l=u.localKey;let d=u.localMtime||o.lastModified;p={key:l,existRemote:!0,mtimeRemote:d,mtimeRemoteFmt:jn(d),sizeRemote:u.localSize,sizeRemoteEnc:i===""?void 0:o.size,remoteEncryptedKey:a,changeRemoteMtimeUsingMapping:!0}}else p={key:l,existRemote:!0,mtimeRemote:o.lastModified,mtimeRemoteFmt:jn(o.lastModified),sizeRemote:i===""?o.size:void 0,sizeRemoteEnc:i===""?void 0:o.size,remoteEncryptedKey:a,changeRemoteMtimeUsingMapping:!1};s.push(p)}return s};var Ag=(e,t,n,r,i,s)=>e===s+Vw?!i:t&&IU(e,s)?e==s+"/plugins/third-party-sync/"+gU:r&&PU(e)||e===$o||e===Hw||e===yg||e===Gw?!0:A_(e,!0,!1)||!n&&A_(e,!1,!0),MU=async(e,t,n,r,i,s,o,a,l,u,p)=>{var f,m,g,x,v,_;let d={};for(let w of e){let E=w.key;Ag(E,s,u,o,a,l)||(d[E]=w,d[E].existLocal=!1)}for(let w of t){let E={},S=w.path;if(w.path!=="/"){if(w instanceof Ic.TFile){let A=Math.max((f=w.stat.mtime)!=null?f:0,(m=w.stat.ctime)!=null?m:0);E={key:w.path,existLocal:!0,mtimeLocal:A,mtimeLocalFmt:jn(A),sizeLocal:w.stat.size,sizeLocalEnc:p===""?void 0:jh(w.stat.size)}}else if(w instanceof Ic.TFolder)S=`${w.path}/`,E={key:S,existLocal:!0,mtimeLocal:void 0,mtimeLocalFmt:void 0,sizeLocal:0,sizeLocalEnc:p===""?void 0:jh(0)};else throw Error(`unexpected ${w}`);Ag(S,s,u,o,a,l)||(d.hasOwnProperty(S)?(d[S].key=E.key,d[S].existLocal=E.existLocal,d[S].mtimeLocal=E.mtimeLocal,d[S].mtimeLocalFmt=E.mtimeLocalFmt,d[S].sizeLocal=E.sizeLocal,d[S].sizeLocalEnc=E.sizeLocalEnc):(d[S]=E,d[S].existRemote=!1))}}if(n!==void 0)for(let w of n){let E=w.key,S=E===l+Vw;if(!s&&!(a&&S))continue;let A=Math.max((g=w.mtime)!=null?g:0,(x=w.ctime)!=null?x:0);(Number.isNaN(A)||A===0)&&(A=void 0);let k={key:E,existLocal:!0,mtimeLocal:A,mtimeLocalFmt:jn(A),sizeLocal:w.size,sizeLocalEnc:p===""?void 0:jh(w.size)};d.hasOwnProperty(E)?(d[E].key=k.key,d[E].existLocal=k.existLocal,d[E].mtimeLocal=k.mtimeLocal,d[E].mtimeLocalFmt=k.mtimeLocalFmt,d[E].sizeLocal=k.sizeLocal,d[E].sizeLocalEnc=k.sizeLocalEnc):(d[E]=k,d[E].existRemote=!1)}for(let w of r){let E=w.key,S={key:E,deltimeRemote:w.actionWhen,deltimeRemoteFmt:jn(w.actionWhen)};Ag(E,s,u,o,a,l)||(d.hasOwnProperty(E)?(d[E].key=S.key,d[E].deltimeRemote=S.deltimeRemote,d[E].deltimeRemoteFmt=S.deltimeRemoteFmt):(d[E]=S,d[E].existLocal=!1,d[E].existRemote=!1))}for(let w of i){let E=w.key;if(w.keyType==="folder")w.key.endsWith("/")||(E=`${w.key}/`);else if(w.keyType!=="file")throw Error(`unexpected ${w}`);if(!Ag(E,s,u,o,a,l))if(w.actionType==="delete"||w.actionType==="rename"){let S={key:E,deltimeLocal:w.actionWhen,deltimeLocalFmt:jn(w.actionWhen)};d.hasOwnProperty(E)?(d[E].deltimeLocal=S.deltimeLocal,d[E].deltimeLocalFmt=S.deltimeLocalFmt):(d[E]=S,d[E].existLocal=!1,d[E].existRemote=!1)}else if(w.actionType==="renameDestination"){let S={key:E,mtimeLocal:w.actionWhen,mtimeLocalFmt:jn(w.actionWhen),changeLocalMtimeUsingMapping:!0};if(d.hasOwnProperty(E)){let A=Math.max((v=S.mtimeLocal)!=null?v:0,(_=d[E].mtimeLocal)!=null?_:0);(Number.isNaN(A)||A===0)&&(A=void 0),d[E].mtimeLocal=A,d[E].mtimeLocalFmt=jn(A),d[E].changeLocalMtimeUsingMapping=S.changeLocalMtimeUsingMapping}}else throw Error(`do not know how to deal with local file history ${w.key} with ${w.actionType}`)}return d},QDe=(e,t,n,r="",i="bidirectional")=>{let s=e;if(s.key.endsWith("/"))return s;if(s.existLocal&&(s.mtimeLocal===void 0||s.mtimeLocal<=0))throw Error(`Error: Abnormal last modified time locally: ${JSON.stringify(s,null,2)}`);if(s.existRemote&&(s.mtimeRemote===void 0||s.mtimeRemote<=0))throw Error(`Error: Abnormal last modified time remotely: ${JSON.stringify(s,null,2)}`);if(s.deltimeLocal!==void 0&&s.deltimeLocal<=0)throw Error(`Error: Abnormal deletion time locally: ${JSON.stringify(s,null,2)}`);if(s.deltimeRemote!==void 0&&s.deltimeRemote<=0)throw Error(`Error: Abnormal deletion time remotely: ${JSON.stringify(s,null,2)}`);if(s.existLocal&&r!==""&&s.sizeLocalEnc===void 0||s.existRemote&&r!==""&&s.sizeRemoteEnc===void 0)throw new Error(`Error: No encryption sizes: ${JSON.stringify(s,null,2)}`);let o=r===""?s.sizeLocal:s.sizeLocalEnc,a=r===""?s.sizeRemote:s.sizeRemoteEnc,l=i==="incremental_pull_only"||i==="incremental_pull_and_delete_only",u=i==="incremental_push_only"||i==="incremental_push_and_delete_only";if(s.existLocal){if(l&&(!s.existRemote||s.mtimeLocal>s.mtimeRemote))return s.mtimeLocal===s.mtimeRemote&&o===a?(s.decision="skipUploading",s.decisionBranch=50,t.add(Yt(s.key)),s):(s.decision="skipUploading",s.decisionBranch=51,t.add(Yt(s.key)),s);let p=s.existRemote?s.mtimeRemote:-1,d=s.deltimeRemote!==void 0?s.deltimeRemote:-1,f=s.deltimeLocal!==void 0?s.deltimeLocal:-1;if(s.mtimeLocal>=p&&s.mtimeLocal>=f&&s.mtimeLocal>=d){if(o===void 0)throw new Error(`Error: no local size but has local mtime: ${JSON.stringify(s,null,2)}`);return s.mtimeLocal===s.mtimeRemote?o===a?(s.decision="skipUploading",s.decisionBranch=1):n<=0?(s.decision="uploadLocalToRemote",s.decisionBranch=2):o<=n?a<=n?(s.decision="uploadLocalToRemote",s.decisionBranch=18):(s.decision="errorRemoteTooLargeConflictLocal",s.decisionBranch=19):a<=n?(s.decision="errorLocalTooLargeConflictRemote",s.decisionBranch=20):(s.decision="skipUploadingTooLarge",s.decisionBranch=21):n<=0?(s.decision="uploadLocalToRemote",s.decisionBranch=4):o<=n?a===void 0?(s.decision="uploadLocalToRemote",s.decisionBranch=22):a<=n?(s.decision="uploadLocalToRemote",s.decisionBranch=23):(s.decision="errorRemoteTooLargeConflictLocal",s.decisionBranch=24):a===void 0?(s.decision="skipUploadingTooLarge",s.decisionBranch=25):a<=n?(s.decision="errorLocalTooLargeConflictRemote",s.decisionBranch=26):(s.decision="skipUploadingTooLarge",s.decisionBranch=27),t.add(Yt(s.key)),s}}if(s.existRemote){let p=s.existLocal?s.mtimeLocal:-1;if(u&&s.mtimeRemote>p)return s.mtimeLocal===s.mtimeRemote&&o===a?(s.decision="skipUploading",s.decisionBranch=52,t.add(Yt(s.key)),s):(s.decision="skipUploading",s.decisionBranch=53,t.add(Yt(s.key)),s);let d=s.deltimeRemote!==void 0?s.deltimeRemote:-1,f=s.deltimeLocal!==void 0?s.deltimeLocal:-1;if(s.mtimeRemote>p&&s.mtimeRemote>=f&&s.mtimeRemote>=d){if(a===void 0)throw new Error(`Error: no remote size but has remote mtime: ${JSON.stringify(s,null,2)}`);return n<=0?(s.decision="downloadRemoteToLocal",s.decisionBranch=5):a<=n?o===void 0?(s.decision="downloadRemoteToLocal",s.decisionBranch=28):o<=n?(s.decision="downloadRemoteToLocal",s.decisionBranch=29):(s.decision="errorLocalTooLargeConflictRemote",s.decisionBranch=30):o===void 0?(s.decision="skipDownloadingTooLarge",s.decisionBranch=31):o<=n?(s.decision="errorRemoteTooLargeConflictLocal",s.decisionBranch=32):(s.decision="skipDownloadingTooLarge",s.decisionBranch=33),t.add(Yt(s.key)),s}}if(s.deltimeLocal!==void 0&&s.deltimeLocal!==0){if(i==="incremental_pull_only")return s.decision="skipUploading",s.decisionBranch=54,t.add(Yt(s.key)),s;let p=s.existLocal?s.mtimeLocal:-1,d=s.existRemote?s.mtimeRemote:-1,f=s.deltimeRemote!==void 0?s.deltimeRemote:-1;if(s.deltimeLocal>=p&&s.deltimeLocal>=d&&s.deltimeLocal>=f){if(n<=0)s.decision="uploadLocalDelHistToRemote",s.decisionBranch=6,s.existLocal||s.existRemote;else{let m=s.existLocal&&o>n,g=s.existRemote&&a>n;m?g?(s.decision="skipUsingLocalDelTooLarge",s.decisionBranch=34):s.existRemote?(s.decision="errorLocalTooLargeConflictRemote",s.decisionBranch=35):(s.decision="skipUsingLocalDelTooLarge",s.decisionBranch=36):g?s.existLocal?(s.decision="errorLocalTooLargeConflictRemote",s.decisionBranch=37):(s.decision="skipUsingLocalDelTooLarge",s.decisionBranch=38):(s.decision="uploadLocalDelHistToRemote",s.decisionBranch=39)}return s}}if(s.deltimeRemote!==void 0&&s.deltimeRemote!==0){if(i==="incremental_push_only")return s.decision="skipUploading",s.decisionBranch=55,t.add(Yt(s.key)),s;let p=s.existLocal?s.mtimeLocal:-1,d=s.existRemote?s.mtimeRemote:-1,f=s.deltimeLocal!==void 0?s.deltimeLocal:-1;if(s.deltimeRemote>=p&&s.deltimeRemote>=d&&s.deltimeRemote>=f){if(n<=0)s.decision="keepRemoteDelHist",s.decisionBranch=7,s.existLocal||s.existRemote;else{let m=s.existLocal&&o>n,g=s.existRemote&&a>n;m?g?(s.decision="skipUsingRemoteDelTooLarge",s.decisionBranch=40):s.existRemote?(s.decision="errorLocalTooLargeConflictRemote",s.decisionBranch=41):(s.decision="skipUsingRemoteDelTooLarge",s.decisionBranch=42):g?s.existLocal?(s.decision="errorLocalTooLargeConflictRemote",s.decisionBranch=43):(s.decision="skipUsingRemoteDelTooLarge",s.decisionBranch=44):(s.decision="keepRemoteDelHist",s.decisionBranch=45)}return s}}throw Error(`no decision for ${JSON.stringify(s)}`)},JDe=async(e,t,n,r="",i="bidirectional")=>{let s=e;if(!s.key.endsWith("/"))return s;if(t.has(s.key))if(t.add(Yt(s.key)),s.existLocal&&s.existRemote)s.decision="skipFolder",s.decisionBranch=12;else if(s.existLocal||s.existRemote)s.decision="createFolder",s.decisionBranch=13;else throw Error(`Error: Folder ${s.key} doesn't exist locally and remotely but is marked must be kept. Abort.`);else if(s.deltimeLocal!==void 0||s.deltimeRemote!==void 0){let o=s.deltimeLocal!==void 0?s.deltimeLocal:-1,a=s.deltimeRemote!==void 0?s.deltimeRemote:-1;if((0,Ic.requireApiVersion)($p)&&s.existLocal){let{ctime:l,mtime:u}=await Es(n,s.key),p=Math.max(l!=null?l:0,u!=null?u:0);if(!Number.isNaN(p)&&p>0&&p>=o&&p>=a)if(t.add(Yt(s.key)),s.existLocal&&s.existRemote)s.decision="skipFolder",s.decisionBranch=14;else if(s.existLocal||s.existRemote)s.decision="createFolder",s.decisionBranch=15;else throw Error(`Error: Folder ${s.key} doesn't exist locally and remotely but is marked must be kept. Abort.`)}if(s.existLocal&&s.changeLocalMtimeUsingMapping&&s.mtimeLocal>0&&s.mtimeLocal>o&&s.mtimeLocal>a)if(t.add(Yt(s.key)),s.existLocal&&s.existRemote)s.decision="skipFolder",s.decisionBranch=16;else if(s.existLocal||s.existRemote)s.decision="createFolder",s.decisionBranch=17;else throw Error(`Error: Folder ${s.key} doesn't exist locally and remotely but is marked must be kept. Abort.`);s.decision===void 0&&(o>0&&o>a?(s.decision="uploadLocalDelHistToRemoteFolder",s.decisionBranch=8):(s.decision="keepRemoteDelHistFolder",s.decisionBranch=9))}else if(t.add(Yt(s.key)),s.existLocal&&s.existRemote)s.decision="skipFolder",s.decisionBranch=10;else if(s.existLocal||s.existRemote)s.decision="createFolder",s.decisionBranch=11;else throw Error(`Error: Folder ${s.key} doesn't exist locally and remotely but is marked must be kept. Abort.`);return t.delete(s.key),s},LU=new Set(["uploadLocalDelHistToRemote","keepRemoteDelHist","uploadLocalDelHistToRemoteFolder","keepRemoteDelHistFolder"]),$U=new Set(["errorLocalTooLargeConflictRemote","errorRemoteTooLargeConflictLocal"]),sE=async(e,t,n,r,i,s,o,a,l,u,p,d,f,m="",g="bidirectional")=>{let x=new Map;for(let M of r)x.set(M.key,M);let v=await MU(e,t,n,[],[],a,l,u,p,d,m);for(let[M,U]of x)v[M]===void 0&&(v[M]={key:M,existLocal:!1,existRemote:!1}),v[M].prevSync=U;let _=Object.keys(v).sort((M,U)=>U.length-M.length),w=[],E=[],S=new Set;for(let M=0;M<_.length;++M){let U=_[M],$=v[U];if(U.endsWith("/")?await tSe($,S,o,m,g):eSe($,S,f,m,g),$U.has($.decision)&&w.push($),LU.has($.decision))if($.decision==="uploadLocalDelHistToRemote")E.push({key:U,actionWhen:Date.now()});else if($.decision==="keepRemoteDelHist")E.push({key:U,actionWhen:Date.now()});else if($.decision==="uploadLocalDelHistToRemoteFolder")E.push({key:U,actionWhen:Date.now()});else if($.decision==="keepRemoteDelHistFolder")E.push({key:U,actionWhen:Date.now()});else throw Error(`do not know how to delete for decision ${$.decision}`)}let A=Date.now(),k=jn(A);return{plan:{ts:A,tsFmt:k,remoteType:i,syncTriggerSource:s,mixedStates:v},sortedKeys:_,deletions:E,sizesGoWrong:w}},eSe=(e,t,n,r="",i="bidirectional")=>{var _,w,E,S,A,k;let s=e;if(s.key.endsWith("/"))return s;let o=(_=s.existLocal)!=null?_:!1,a=(w=s.existRemote)!=null?w:!1,l=s.prevSync!==void 0,u=(S=(E=s.prevSync)==null?void 0:E.mtime)!=null?S:0,p=(k=(A=s.prevSync)==null?void 0:A.size)!=null?k:0,d=i==="incremental_pull_only"||i==="incremental_pull_and_delete_only",f=i==="incremental_push_only"||i==="incremental_push_and_delete_only",m=i==="incremental_pull_and_delete_only",g=i==="incremental_push_and_delete_only",x=r===""?s.sizeLocal:s.sizeLocalEnc,v=r===""?s.sizeRemote:s.sizeRemoteEnc;if(o&&(s.mtimeLocal===void 0||s.mtimeLocal<=0))throw Error(`Error: Abnormal last modified time locally: ${JSON.stringify(s,null,2)}`);if(a&&(s.mtimeRemote===void 0||s.mtimeRemote<=0))throw Error(`Error: Abnormal last modified time remotely: ${JSON.stringify(s,null,2)}`);if(o&&a)return s.mtimeLocal===s.mtimeRemote?x===v?(s.decision="skipUploading",s.decisionBranch=1):(s.decision="uploadLocalToRemote",s.decisionBranch=2):s.mtimeLocal>s.mtimeRemote?d?(s.decision="skipUploading",s.decisionBranch=51):(s.decision="uploadLocalToRemote",s.decisionBranch=4):f?(s.decision="skipUploading",s.decisionBranch=53):(s.decision="downloadRemoteToLocal",s.decisionBranch=5),t.add(Yt(s.key)),s;if(o&&!a)return l?g&&!d?(s.decision="skipUploading",s.decisionBranch=60):m?(s.decision="keepRemoteDelHist",s.decisionBranch=61):f?(s.decision="skipUploading",s.decisionBranch=62):(s.decision="keepRemoteDelHist",s.decisionBranch=7):(d?(s.decision="skipUploading",s.decisionBranch=63):(s.decision="uploadLocalToRemote",s.decisionBranch=64),t.add(Yt(s.key))),s;if(!o&&a)return l?m&&!f?(s.decision="skipUploading",s.decisionBranch=65):g?(s.decision="uploadLocalDelHistToRemote",s.decisionBranch=66):d?(s.decision="downloadRemoteToLocal",s.decisionBranch=67):(s.decision="uploadLocalDelHistToRemote",s.decisionBranch=6):(f?(s.decision="skipUploading",s.decisionBranch=68):(s.decision="downloadRemoteToLocal",s.decisionBranch=69),t.add(Yt(s.key))),s;if(!o&&!a&&l)return s.decision="skipUploading",s.decisionBranch=70,s;if(!o&&!a&&!l)return s.decision="skipUploading",s.decisionBranch=71,s;throw Error(`no decision for ${JSON.stringify(s)}`)},tSe=async(e,t,n,r="",i="bidirectional")=>{var m,g;let s=e;if(!s.key.endsWith("/"))return s;let o=(m=s.existLocal)!=null?m:!1,a=(g=s.existRemote)!=null?g:!1,l=s.prevSync!==void 0,u=i==="incremental_pull_only"||i==="incremental_pull_and_delete_only",p=i==="incremental_push_only"||i==="incremental_push_and_delete_only",d=i==="incremental_pull_and_delete_only",f=i==="incremental_push_and_delete_only";if(!t.has(s.key))o&&a?(s.decision="skipFolder",s.decisionBranch=10):o&&!a?l&&(d||!p&&!u)?(s.decision="keepRemoteDelHistFolder",s.decisionBranch=9):(s.decision="createFolder",s.decisionBranch=15):!o&&a?l&&(f||!p&&!u)?(s.decision="uploadLocalDelHistToRemoteFolder",s.decisionBranch=8):(s.decision="createFolder",s.decisionBranch=11):(s.decision="skipFolder",s.decisionBranch=72);else if(t.add(Yt(s.key)),o&&a)s.decision="skipFolder",s.decisionBranch=12;else if(o||a)s.decision="createFolder",s.decisionBranch=13;else throw Error(`Error: Folder ${s.key} doesn't exist locally and remotely but is marked must be kept. Abort.`);return t.delete(s.key),s},UU=async(e,t,n,r,i,s,o,a,l="",u,p=1,d,f,m,g)=>{var W,le,J,me;if(o.length>0){se.debug("some sizes are larger than the threshold, abort and show hints"),d(o);return}se.debug(`concurrency === ${p}`);let{folderCreationOps:x,deletionOps:v,uploadDownloads:_,realTotalCount:w,allFilesCount:E,realModifyDeleteCount:S}=qU(i,s);if(m!==void 0&&m>=0&&E>0&&(se.debug(`protectModifyPercentage: ${m}`),se.debug(`allFilesCount: ${E}, realModifyDeleteCount: ${S}`),!(m===100&&S===E))){if(S*100>=E*m){let Ae=(100*S/E).toFixed(1),_e=`syncrun_abort_protectmodifypercentage|${m}|${S}|${E}|${Ae}`;se.debug(`aborting sync due to protectModifyPercentage: ${_e}`),g&&g(_e);return}}let A=[x,v,_];se.debug("folderCreationOps: ",x.length," deletionOps: ",v.length," uploadDownloads: ",_.length);let k=new rE({concurrency:p,autoStart:!0}),I=w,M=0;se.debug("Checking if lastSynced is set: ",u,"== -1?: ",u==-1);let U=[];for(let Ae of A)for(let _e of Ae)if(_e!=null)for(let Oe of _e){let He=Oe.key,Fe=Ae===v;if(u==-1){let O=[".obsidian/app.json",".obsidian/appearance.json",".obsidian/core-plugins-migration.json",".obsidian/core-plugins.json",".obsidian/graph.json",".obsidian/workspace.json"];Oe.existRemote&&O.includes(He)&&(se.debug("downloading from remote for first sync: ",He),Oe.decision="downloadRemoteToLocal")}k.add(async()=>{let O=await HU(He,Fe,Oe,n,e,t,r,a,l);return!Fe&&!Oe.decision.startsWith("createFolder")&&(M++,f!==void 0&&await f(M,I)),O}).catch(O=>{let H=`${He}: ${O.message}`;U.push(new Error(H)),U.length>=3&&(U.push(new Error("too many errors, stop the remaining tasks")),k.pause(),k.clear())})}if(await k.onIdle(),U.length>0)throw new ci(U);se.debug("V3 sync finished, saving prevSync records");let $=[];for(let Ae of s){let _e=i.mixedStates[Ae];if(_e.decision==="skipUploading"||_e.decision==="uploadLocalToRemote"||_e.decision==="downloadRemoteToLocal"||_e.decision==="createFolder"||_e.decision==="skipFolder"){let Oe=(le=(W=_e.mtimeLocal)!=null?W:_e.mtimeRemote)!=null?le:Date.now(),He=(me=(J=_e.sizeLocal)!=null?J:_e.sizeRemote)!=null?me:0;$.push({key:Ae,mtime:Oe,size:He,keyType:Ae.endsWith("/")?"folder":"file",vaultRandomID:n})}}return await b$(t,n,$),se.debug("V3 sync finished, prevSync records saved"),Date.now()},jU=async(e,t,n,r,i,s,o,a,l,u,p,d,f,m,g="",x="bidirectional")=>{let v=await MU(e,t,n,r,i,l,u,p,d,f,g),_=Object.keys(v).sort((M,U)=>U.length-M.length),w=[],E=[],S=new Set;for(let M=0;M<_.length;++M){let U=_[M],$=v[U];if(U.endsWith("/")?await JDe($,S,a,g,x):QDe($,S,m,g,x),$U.has($.decision)&&w.push($),LU.has($.decision))if($.decision==="uploadLocalDelHistToRemote")E.push({key:U,actionWhen:$.deltimeLocal});else if($.decision==="keepRemoteDelHist")E.push({key:U,actionWhen:$.deltimeRemote});else if($.decision==="uploadLocalDelHistToRemoteFolder")E.push({key:U,actionWhen:$.deltimeLocal});else if($.decision==="keepRemoteDelHistFolder")E.push({key:U,actionWhen:$.deltimeRemote});else throw Error(`do not know how to delete for decision ${$.decision}`)}let A=Date.now(),k=jn(A);return{plan:{ts:A,tsFmt:k,remoteType:s,syncTriggerSource:o,mixedStates:v},sortedKeys:_,deletions:E,sizesGoWrong:w}},zU=async(e,t,n,r,i,s="")=>{let o=$o,a=o;s!==""&&(n===void 0?a=void 0:a=n.remoteEncryptedKey,(a===void 0||a==="")&&(a=await k_(o,s)));let u=yU({deletions:i});return(await e.uploadToRemote(o,t,!1,s,a,void 0,!0,u)).lastModified},nSe=async(e,t,n,r,i,s,o,a="")=>{let l=e;if(a!==""&&(l=n.remoteEncryptedKey,(l===void 0||l==="")&&(l=await k_(e,a))),n.decision===void 0)throw Error(`unknown decision in ${JSON.stringify(n)}`);if(n.decision!=="skipUploading"){if(n.decision==="uploadLocalDelHistToRemote")n.existLocal&&await o(n.key),n.existRemote&&await r.deleteFromRemote(n.key,a,l),await Bs(i,n.key,t);else if(n.decision==="keepRemoteDelHist")n.existLocal&&await o(n.key),n.existRemote&&await r.deleteFromRemote(n.key,a,l),await Bs(i,n.key,t);else if(n.decision==="uploadLocalToRemote"){if(!(r.serviceType==="onedrive"&&n.sizeLocal===0&&a==="")){let u=await r.uploadToRemote(n.key,s,!1,a,l);await $w(r.serviceType,i,n.key,n.mtimeLocal,n.sizeLocal,n.key,u.lastModified,u.size,u.etag,t)}await Bs(i,n.key,t)}else if(n.decision==="downloadRemoteToLocal")await r.downloadFromRemote(n.key,s,n.mtimeRemote,a,l),await Bs(i,n.key,t);else if(n.decision==="createFolder"){if(n.existLocal||await $r(n.key,s),!n.existRemote){let u=await r.uploadToRemote(n.key,s,!1,a,l);await $w(r.serviceType,i,n.key,n.mtimeLocal,n.sizeLocal,n.key,u.lastModified,u.size,u.etag,t)}await Bs(i,n.key,t)}else if(n.decision==="uploadLocalDelHistToRemoteFolder")n.existLocal&&await o(n.key),n.existRemote&&await r.deleteFromRemote(n.key,a,l),await Bs(i,n.key,t);else if(n.decision==="keepRemoteDelHistFolder")n.existLocal&&await o(n.key),n.existRemote&&await r.deleteFromRemote(n.key,a,l),await Bs(i,n.key,t);else if(n.decision!=="skipFolder"){if(n.decision!=="skipUploadingTooLarge"){if(n.decision!=="skipDownloadingTooLarge"){if(n.decision!=="skipUsingLocalDelTooLarge"){if(n.decision!=="skipUsingRemoteDelTooLarge")throw Error(`unknown decision in ${JSON.stringify(n)}`)}}}}}},qU=(e,t)=>{let n=e.mixedStates,r=t.length||0,i=[],s=[],o=[],a=0,l=0,u=0,p=0;for(let d=0;d{if(l.length>0){se.debug("some sizes are larger than the threshold, abort and show hints"),g(l);return}se.debug(`concurrency === ${m}`);let{folderCreationOps:w,deletionOps:E,uploadDownloads:S,realTotalCount:A,allFilesCount:k,realModifyDeleteCount:I}=qU(i,s);if(v!==void 0&&v>=0&&k>0&&(se.debug(`protectModifyPercentage: ${v}`),se.debug(`allFilesCount: ${k}, realModifyDeleteCount: ${I}`),!(v===100&&I===k))){if(I*100>=k*v){let J=(100*I/k).toFixed(1),me=`syncrun_abort_protectmodifypercentage|${v}|${I}|${k}|${J}`;se.debug(`aborting sync due to protectModifyPercentage: ${me}`),_&&_(me);return}}let M=[w,E,S];se.debug("folderCreationOps: ",w.length," deletionOps: ",E.length," uploadDownloads: ",S.length);let U=new rE({concurrency:m,autoStart:!0}),$=A,W=0;se.debug("Checking if lastSynced is set: ",f,"== -1?: ",f==-1);let le=[];for(let J of M)for(let me of J)if(me!=null)for(let Ae of me){let _e=Ae.key,Oe=J===E;if(f==-1){let Fe=[".obsidian/app.json",".obsidian/appearance.json",".obsidian/core-plugins-migration.json",".obsidian/core-plugins.json",".obsidian/graph.json",".obsidian/workspace.json"];Ae.existRemote&&Fe.includes(_e)&&(se.debug("downloading from remote for first sync: ",_e),Ae.decision="downloadRemoteToLocal")}U.add(async()=>{let Fe=await HU(_e,Oe,Ae,n,e,t,r,p,d);return!Oe&&!Ae.decision.startsWith("createFolder")&&(W++,x!==void 0&&await x(W,$)),Fe}).catch(Fe=>{let z=`${_e}: ${Fe.message}`;le.push(new Error(z)),le.length>=3&&(le.push(new Error("too many errors, stop the remaining tasks")),U.pause(),U.clear())})}if(await U.onIdle(),le.length>0)throw new ci(le);return se.debug("V2 sync finished, no metadata upload in V3 mode"),Date.now()};var oE=class extends ie.Modal{constructor(n,r,i){super(n);C(this,"plugin");C(this,"newPassword");this.plugin=r,this.newPassword=i}onOpen(){let{contentEl:n}=this,r=(i,s)=>this.plugin.i18n.t(i,s);n.createEl("h2",{text:r("modal_password_title")}),r("modal_password_shortdesc").split(` +`).forEach((i,s)=>{n.createEl("p",{text:i})}),[r("modal_password_attn1"),r("modal_password_attn2"),r("modal_password_attn3"),r("modal_password_attn4"),r("modal_password_attn5")].forEach((i,s)=>{s<3?n.createEl("p",{text:i,cls:"password-disclaimer"}):n.createEl("p",{text:i})}),new ie.Setting(n).addButton(i=>{i.setButtonText(r("modal_password_secondconfirm")),i.onClick(async()=>{this.plugin.settings.password=this.newPassword,await this.plugin.saveSettings(),new ie.Notice(r("modal_password_notice")),this.close()}),i.setClass("password-second-confirm")}).addButton(i=>{i.setButtonText(r("goback")),i.onClick(()=>{this.close()})})}onClose(){let{contentEl:n}=this;n.empty()}},Og=class extends ie.Modal{constructor(n,r,i,s){super(n);C(this,"plugin");C(this,"newRemoteBaseDir");C(this,"service");this.plugin=r,this.newRemoteBaseDir=i,this.service=s}onOpen(){let{contentEl:n}=this,r=(i,s)=>this.plugin.i18n.t(i,s);n.createEl("h2",{text:r("modal_remotebasedir_title")}),r("modal_remotebasedir_shortdesc").split(` +`).forEach((i,s)=>{n.createEl("p",{text:i})}),this.newRemoteBaseDir===""||this.newRemoteBaseDir===this.app.vault.getName()?new ie.Setting(n).addButton(i=>{i.setButtonText(r("modal_remotebasedir_secondconfirm_vaultname")),i.onClick(async()=>{this.plugin.settings[this.service].remoteBaseDir="",await this.plugin.saveSettings(),new ie.Notice(r("modal_remotebasedir_notice")),this.close()}),i.setClass("remotebasedir-second-confirm")}).addButton(i=>{i.setButtonText(r("goback")),i.onClick(()=>{this.close()})}):G8(this.newRemoteBaseDir)?(n.createEl("p",{text:r("modal_remotebasedir_invaliddirhint")}),new ie.Setting(n).addButton(i=>{i.setButtonText(r("goback")),i.onClick(()=>{this.close()})})):new ie.Setting(n).addButton(i=>{i.setButtonText(r("modal_remotebasedir_secondconfirm_change")),i.onClick(async()=>{this.plugin.settings[this.service].remoteBaseDir=this.newRemoteBaseDir,this.plugin.settings.lastSynced=-1,await this.plugin.saveSettings(),new ie.Notice(r("modal_remotebasedir_notice")),this.close()}),i.setClass("remotebasedir-second-confirm")}).addButton(i=>{i.setButtonText(r("goback")),i.onClick(()=>{this.close()})})}onClose(){let{contentEl:n}=this;n.empty()}},aE=class extends ie.Modal{constructor(n,r,i){super(n);C(this,"plugin");C(this,"revokeAuthSetting");this.plugin=r,this.revokeAuthSetting=i}async onOpen(){let{contentEl:n}=this,{authUrl:r,verifier:i}=await s$(this.plugin.settings.onedrive.clientID,this.plugin.settings.onedrive.authority);this.plugin.oauth2Info.verifier=i;let s=(o,a)=>this.plugin.i18n.t(o,a);s("modal_onedriveauth_shortdesc").split(` +`).forEach(o=>{n.createEl("p",{text:o})}),n.createDiv().createEl("button",{text:s("modal_onedriveauth_copybutton"),cls:"mod-cta"},o=>{o.onclick=async()=>{await navigator.clipboard.writeText(r),new ie.Notice(s("modal_onedriveauth_copynotice"))}}),n.createEl("p").createEl("a",{href:r,text:r})}onClose(){let{contentEl:n}=this;n.empty()}},cE=class extends ie.Modal{constructor(n,r,i,s){super(n);C(this,"plugin");C(this,"authSetting");C(this,"revokeAuthSetting");this.plugin=r,this.authSetting=i,this.revokeAuthSetting=s}async onOpen(){let{contentEl:n}=this,r=(s,o)=>this.plugin.i18n.t(s,o);n.createEl("p",{text:r("modal_onedriverevokeauth_step1")});let i="https://microsoft.com/consent";n.createEl("p").createEl("a",{href:i,text:i}),n.createEl("p",{text:r("modal_onedriverevokeauth_step2")}),new ie.Setting(n).setName(r("modal_onedriverevokeauth_clean")).setDesc(r("modal_onedriverevokeauth_clean_desc")).addButton(async s=>{s.setButtonText(r("modal_onedriverevokeauth_clean_button")),s.onClick(async()=>{try{this.plugin.settings.onedrive=JSON.parse(JSON.stringify(Lo)),await this.plugin.saveSettings();let o=this.plugin.settings.onedrive.username!=="";this.authSetting.settingEl.toggleClass("tp-sync-auth-hidden",o),this.revokeAuthSetting.settingEl.toggleClass("tp-sync-revoke-hidden",!o),new ie.Notice(r("modal_onedriverevokeauth_clean_notice")),this.close()}catch(o){console.error(o),new ie.Notice(r("modal_onedriverevokeauth_clean_fail"))}})})}onClose(){let{contentEl:n}=this;n.empty()}},uE=class extends ie.Modal{constructor(n,r,i){super(n);C(this,"plugin");C(this,"saveDropdownFunc");this.plugin=r,this.saveDropdownFunc=i}async onOpen(){let{contentEl:n}=this,r=(i,s)=>this.plugin.i18n.t(i,s);r("modal_syncconfig_attn").split(` +`).forEach(i=>{n.createEl("p",{text:i})}),new ie.Setting(n).addButton(i=>{i.setButtonText(r("modal_syncconfig_secondconfirm")),i.onClick(async()=>{this.plugin.settings.syncConfigDir=!0,await this.plugin.saveSettings(),this.saveDropdownFunc(),new ie.Notice(r("modal_syncconfig_notice")),this.close()})}).addButton(i=>{i.setButtonText(r("goback")),i.onClick(()=>{this.close()})})}onClose(){let{contentEl:n}=this;n.empty()}},pp=e=>{let t=createSpan("Hi!"),n=e.inputEl.insertAdjacentElement("afterend",t);return(0,ie.setIcon)(n,"eye-off"),n.addEventListener("click",r=>{let i=e.inputEl.getAttribute("type")==="text";(0,ie.setIcon)(n,i?"eye-off":"eye"),e.inputEl.setAttribute("type",i?"password":"text"),e.inputEl.focus()}),e.inputEl.setAttribute("type","password"),e},Fg=class extends ie.PluginSettingTab{constructor(n,r){super(n,r);C(this,"plugin");C(this,"deletingRemoteMeta");C(this,"update");this.plugin=r,this.deletingRemoteMeta=!1}display(){let{containerEl:n}=this;n.empty();let r=(z,O)=>this.plugin.i18n.t(z,O),i=new ie.SettingGroup(n);i.setHeading(r("settings_chooseservice"));let s={s3:r("settings_s3"),onedrive:r("settings_onedrive"),webdav:r("settings_webdav")},o=new ie.SettingGroup(n);o.addClass("service-detail-group");let a=document.createDocumentFragment(),l=a.createEl("div",{text:s[this.plugin.settings.serviceType],cls:"setting-item-name"}),u=a.createDiv({cls:"settings-long-desc s3-hide"}),p=a.createDiv({cls:"settings-long-desc onedrive-hide"}),d=a.createDiv({cls:"settings-long-desc webdav-hide"});u.toggleClass("s3-hide",this.plugin.settings.serviceType!=="s3"),p.toggleClass("onedrive-hide",this.plugin.settings.serviceType!=="onedrive"),d.toggleClass("webdav-hide",this.plugin.settings.serviceType!=="webdav"),o.setHeading(a);let f=[],m=[],g=[];for(let z of[r("settings_s3_disclaimer1"),r("settings_s3_disclaimer2")])u.createEl("p",{text:z,cls:"s3-disclaimer"});or||u.createEl("p",{text:r("settings_s3_cors")}),u.createEl("p",{text:r("settings_s3_prod")});let x=u.createEl("ul");x.createEl("li").createEl("a",{href:"https://docs.aws.amazon.com/general/latest/gr/s3.html",text:r("settings_s3_prod1")}),x.createEl("li").createEl("a",{href:"https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/getting-your-credentials.html",text:r("settings_s3_prod2")}),or||x.createEl("li").createEl("a",{href:"https://docs.aws.amazon.com/AmazonS3/latest/userguide/enabling-cors-examples.html",text:r("settings_s3_prod3")}),o.addSetting(z=>(f.push(z),z.setName(r("settings_s3_endpoint")).setDesc(r("settings_s3_endpoint")).addText(O=>O.setPlaceholder("").setValue(this.plugin.settings.s3.s3Endpoint).onChange(async H=>{this.plugin.settings.s3.s3Endpoint=H.trim(),await this.plugin.saveSettings()})))),o.addSetting(z=>(f.push(z),z.setName(r("settings_s3_region")).setDesc(r("settings_s3_region_desc")).addText(O=>O.setPlaceholder("").setValue(`${this.plugin.settings.s3.s3Region}`).onChange(async H=>{this.plugin.settings.s3.s3Region=H.trim(),await this.plugin.saveSettings()})))),o.addSetting(z=>(f.push(z),z.setName(r("settings_s3_accesskeyid")).setDesc(r("settings_s3_accesskeyid_desc")).addText(O=>{pp(O),O.setPlaceholder("").setValue(`${this.plugin.settings.s3.s3AccessKeyID}`).onChange(async H=>{this.plugin.settings.s3.s3AccessKeyID=H.trim(),await this.plugin.saveSettings()})}))),o.addSetting(z=>(f.push(z),z.setName(r("settings_s3_secretaccesskey")).setDesc(r("settings_s3_secretaccesskey_desc")).addText(O=>{pp(O),O.setPlaceholder("").setValue(`${this.plugin.settings.s3.s3SecretAccessKey}`).onChange(async H=>{this.plugin.settings.s3.s3SecretAccessKey=H.trim(),await this.plugin.saveSettings()})}))),o.addSetting(z=>(f.push(z),z.setName(r("settings_s3_bucketname")).setDesc(r("settings_s3_bucketname")).addText(O=>O.setPlaceholder("").setValue(`${this.plugin.settings.s3.s3BucketName}`).onChange(async H=>{this.plugin.settings.s3.s3BucketName=H.trim(),await this.plugin.saveSettings()})))),o.addSetting(z=>(f.push(z),z.setName(r("settings_s3_urlstyle")).setDesc(r("settings_s3_urlstyle_desc")).addDropdown(O=>{O.addOption("virtualHostedStyle",r("settings_s3_urlstyle_virtual")),O.addOption("pathStyle",r("settings_s3_urlstyle_path")),O.setValue(this.plugin.settings.s3.forcePathStyle?"pathStyle":"virtualHostedStyle").onChange(async H=>{this.plugin.settings.s3.forcePathStyle=H==="pathStyle",await this.plugin.saveSettings()})}))),or&&o.addSetting(z=>(f.push(z),z.setName(r("settings_s3_bypasscorslocally")).setDesc(r("settings_s3_bypasscorslocally_desc")).addDropdown(O=>{O.addOption("disable",r("disable")).addOption("enable",r("enable")),O.setValue(`${this.plugin.settings.s3.bypassCorsLocally?"enable":"disable"}`).onChange(async H=>{H==="enable"?this.plugin.settings.s3.bypassCorsLocally=!0:this.plugin.settings.s3.bypassCorsLocally=!1,await this.plugin.saveSettings()})}))),o.addSetting(z=>(f.push(z),z.setName(r("settings_s3_parts")).setDesc(r("settings_s3_parts_desc")).addDropdown(O=>{O.addOption("1","1"),O.addOption("2","2"),O.addOption("3","3"),O.addOption("5","5"),O.addOption("10","10"),O.addOption("15","15"),O.addOption("20",r("settings_s3_parts_default")),O.setValue(`${this.plugin.settings.s3.partsConcurrency}`).onChange(async H=>{let oe=parseInt(H);this.plugin.settings.s3.partsConcurrency=oe,await this.plugin.saveSettings()})}))),o.addSetting(z=>(f.push(z),z.setName(r("settings_checkonnectivity")).setDesc(r("settings_checkonnectivity_desc")).addButton(async O=>{O.setButtonText(r("settings_checkonnectivity_button")),O.onClick(async()=>{new ie.Notice(r("settings_checkonnectivity_checking"));let H=new fi("s3",this.plugin.settings.s3),oe={msg:""};await H.checkConnectivity(On=>{oe.msg=On})?new ie.Notice(r("settings_s3_connect_succ")):(new ie.Notice(r("settings_s3_connect_fail")),new ie.Notice(oe.msg))})})));for(let z of[r("settings_onedrive_disclaimer1"),r("settings_onedrive_disclaimer2")])p.createEl("p",{text:z,cls:"onedrive-disclaimer"});p.createEl("p",{text:r("settings_onedrive_folder",{pluginID:this.plugin.manifest.id,remoteBaseDir:this.plugin.settings.onedrive.remoteBaseDir||this.app.vault.getName()})}),p.createEl("p",{text:r("settings_onedrive_nobiz")});let v=this.plugin.settings.onedrive.username!=="",_,w;o.addSetting(z=>(m.push(z),_=z,v||z.settingEl.addClass("tp-sync-revoke-hidden"),z.settingEl.addClass("tp-no-border-top"),z.settingEl.addClass("tp-no-box-shadow"),z.setName(r("settings_onedrive_revoke")).setDesc(r("settings_onedrive_revoke_desc",{username:this.plugin.settings.onedrive.username})).addButton(async O=>{O.setButtonText(r("settings_onedrive_revoke_button")),O.onClick(async()=>{new cE(this.app,this.plugin,w,_).open()})}))),o.addSetting(z=>(m.push(z),w=z,v&&z.settingEl.addClass("tp-sync-auth-hidden"),z.settingEl.addClass("tp-no-border-top"),z.settingEl.addClass("tp-no-box-shadow"),z.setName(r("settings_onedrive_auth")).setDesc(r("settings_onedrive_auth_desc")).addButton(async O=>{O.setButtonText(r("settings_onedrive_auth_button")),O.onClick(async()=>{let H=new aE(this.app,this.plugin,_);this.plugin.oauth2Info.helperModal=H,this.plugin.oauth2Info.authSetting=w,this.plugin.oauth2Info.revokeAuthSetting=_,H.open()})})));let E=this.plugin.settings.onedrive.remoteBaseDir||"";o.addSetting(z=>(m.push(z),z.setName(r("settings_remotebasedir")).setDesc(r("settings_remotebasedir_desc")).addText(O=>O.setPlaceholder(this.app.vault.getName()).setValue(E).onChange(H=>{E=H.trim()})).addButton(O=>{O.setButtonText(r("confirm")),O.onClick(()=>{new Og(this.app,this.plugin,E,"onedrive").open()})}))),o.addSetting(z=>(m.push(z),z.setName(r("settings_checkonnectivity")).setDesc(r("settings_checkonnectivity_desc")).addButton(async O=>{O.setButtonText(r("settings_checkonnectivity_button")),O.onClick(async()=>{new ie.Notice(r("settings_checkonnectivity_checking"));let H=this,oe=new fi("onedrive",void 0,void 0,this.plugin.settings.onedrive,this.app.vault.getName(),()=>H.plugin.saveSettings()),Ke={msg:""};await oe.checkConnectivity(ot=>{Ke.msg=`${ot}`})?new ie.Notice(r("settings_onedrive_connect_succ")):(new ie.Notice(r("settings_onedrive_connect_fail")),new ie.Notice(Ke.msg))})}))),d.createEl("p",{text:r("settings_webdav_disclaimer1"),cls:"webdav-disclaimer"}),or||(d.createEl("p",{text:r("settings_webdav_cors_os")}),d.createEl("p",{text:r("settings_webdav_cors")})),d.createEl("p",{text:r("settings_webdav_folder",{remoteBaseDir:this.plugin.settings.webdav.remoteBaseDir||this.app.vault.getName()})}),o.addSetting(z=>(g.push(z),z.setName(r("settings_webdav_addr")).setDesc(r("settings_webdav_addr_desc")).addText(O=>O.setPlaceholder("").setValue(this.plugin.settings.webdav.address).onChange(async H=>{this.plugin.settings.webdav.address=H.trim(),(this.plugin.settings.webdav.depth==="auto_1"||this.plugin.settings.webdav.depth==="auto_infinity")&&(this.plugin.settings.webdav.depth="auto_unknown"),mg(this.plugin.settings.webdav),await this.plugin.saveSettings()})))),o.addSetting(z=>(g.push(z),z.setName(r("settings_webdav_user")).setDesc(r("settings_webdav_user_desc")).addText(O=>{pp(O),O.setPlaceholder("").setValue(this.plugin.settings.webdav.username).onChange(async H=>{this.plugin.settings.webdav.username=H.trim(),(this.plugin.settings.webdav.depth==="auto_1"||this.plugin.settings.webdav.depth==="auto_infinity")&&(this.plugin.settings.webdav.depth="auto_unknown"),await this.plugin.saveSettings()})}))),o.addSetting(z=>(g.push(z),z.setName(r("settings_webdav_password")).setDesc(r("settings_webdav_password_desc")).addText(O=>{pp(O),O.setPlaceholder("").setValue(this.plugin.settings.webdav.password).onChange(async H=>{this.plugin.settings.webdav.password=H.trim(),(this.plugin.settings.webdav.depth==="auto_1"||this.plugin.settings.webdav.depth==="auto_infinity")&&(this.plugin.settings.webdav.depth="auto_unknown"),await this.plugin.saveSettings()})}))),o.addSetting(z=>(g.push(z),z.setName(r("settings_webdav_auth")).setDesc(r("settings_webdav_auth_desc")).addDropdown(async O=>{O.addOption("basic","basic"),or&&O.addOption("digest","digest"),!or&&this.plugin.settings.webdav.authType!=="basic"&&(this.plugin.settings.webdav.authType="basic",await this.plugin.saveSettings()),O.setValue(this.plugin.settings.webdav.authType).onChange(async H=>{this.plugin.settings.webdav.authType=H,await this.plugin.saveSettings()})}))),o.addSetting(z=>(g.push(z),z.setName(r("settings_webdav_depth")).setDesc(r("settings_webdav_depth_desc")).addDropdown(O=>{O.addOption("auto",r("settings_webdav_depth_auto")),O.addOption("manual_1",r("settings_webdav_depth_1")),O.addOption("manual_infinity",r("settings_webdav_depth_inf"));let H="auto";new Set(["auto_unknown","auto_1","auto_infinity"]).has(this.plugin.settings.webdav.depth)?H="auto":H=this.plugin.settings.webdav.depth||"auto",O.setValue(H).onChange(async Ke=>{Ke==="auto"?(this.plugin.settings.webdav.depth="auto_unknown",this.plugin.settings.webdav.manualRecursive=!1):Ke==="manual_1"?(this.plugin.settings.webdav.depth="manual_1",this.plugin.settings.webdav.manualRecursive=!0):Ke==="manual_infinity"&&(this.plugin.settings.webdav.depth="manual_infinity",this.plugin.settings.webdav.manualRecursive=!1),mg(this.plugin.settings.webdav),await this.plugin.saveSettings()})})));let S=this.plugin.settings.webdav.remoteBaseDir||"";o.addSetting(z=>(g.push(z),z.setName(r("settings_remotebasedir")).setDesc(r("settings_remotebasedir_desc")).addText(O=>O.setPlaceholder(this.app.vault.getName()).setValue(S).onChange(H=>{S=H.trim()})).addButton(O=>{O.setButtonText(r("confirm")),O.onClick(()=>{new Og(this.app,this.plugin,S,"webdav").open()})}))),o.addSetting(z=>(g.push(z),z.setName(r("settings_checkonnectivity")).setDesc(r("settings_checkonnectivity_desc")).addButton(async O=>{O.setButtonText(r("settings_checkonnectivity_button")),O.onClick(async()=>{new ie.Notice(r("settings_checkonnectivity_checking"));let H=this,oe=new fi("webdav",void 0,this.plugin.settings.webdav,void 0,this.app.vault.getName(),()=>H.plugin.saveSettings()),Ke={msg:""};await oe.checkConnectivity(ot=>{Ke.msg=`${ot}`})?new ie.Notice(r("settings_webdav_connect_succ")):(or?new ie.Notice(r("settings_webdav_connect_fail")):new ie.Notice(r("settings_webdav_connect_fail_withcors")),new ie.Notice(Ke.msg))})})));let A=this.plugin.settings.serviceType==="s3",k=this.plugin.settings.serviceType==="onedrive",I=this.plugin.settings.serviceType==="webdav";f.forEach(z=>z.settingEl.toggleClass("s3-hide",!A)),m.forEach(z=>z.settingEl.toggleClass("onedrive-hide",!k)),g.forEach(z=>z.settingEl.toggleClass("webdav-hide",!I)),i.addSetting(z=>z.setName(r("settings_chooseservice")).setDesc(r("settings_chooseservice_desc")).addDropdown(async O=>{O.addOption("s3",r("settings_chooseservice_s3")),O.addOption("webdav",r("settings_chooseservice_webdav")),O.addOption("onedrive",r("settings_chooseservice_onedrive")),O.setValue(this.plugin.settings.serviceType).onChange(async H=>{this.plugin.settings.serviceType=H,await this.plugin.saveSettings(),this.display()})}));let M=new ie.SettingGroup(n);M.setHeading(r("settings_basic"));let U=`${this.plugin.settings.password}`;M.addSetting(z=>z.setName(r("settings_password")).setDesc(r("settings_password_desc")).addText(O=>{pp(O),O.setPlaceholder("").setValue(`${this.plugin.settings.password}`).onChange(async H=>{U=H.trim()})}).addButton(async O=>{O.setButtonText(r("confirm")),O.onClick(async()=>{new oE(this.app,this.plugin,U).open()})})),M.addSetting(z=>z.setName(r("settings_saverun")).setDesc(r("settings_saverun_desc")).addDropdown(O=>{O.addOption("-1",r("settings_saverun_notset")),O.addOption("0",r("settings_saverun_instant")),O.addOption(`${1e3*5}`,r("settings_saverun_5sec")),O.addOption(`${1e3*10}`,r("settings_saverun_10sec")),O.addOption(`${1e3*30}`,r("settings_saverun_30sec")),O.addOption(`${1e3*60}`,r("settings_saverun_1min"));let H=!1;O.setValue(`${this.plugin.settings.syncOnSaveAfterMilliseconds}`).onChange(async oe=>{let Ke=parseInt(oe);this.plugin.settings.syncOnSaveAfterMilliseconds=Ke,await this.plugin.saveSettings(),Ke<0?this.plugin.toggleSyncOnSave(!1):this.plugin.toggleSyncOnSave(!0)})})),M.addSetting(z=>z.setName(r("settings_remoterun")).setDesc(r("settings_remoterun_desc")).addDropdown(O=>{O.addOption("-1",r("settings_remoterun_notset")),O.addOption(`${1e3*1}`,r("settings_remoterun_1sec")),O.addOption(`${1e3*5}`,r("settings_remoterun_5sec")),O.addOption(`${1e3*10}`,r("settings_remoterun_10sec")),O.addOption(`${1e3*60}`,r("settings_remoterun_1min")),O.setValue(`${this.plugin.settings.syncOnRemoteChangesAfterMilliseconds}`).onChange(async H=>{let oe=parseInt(H);this.plugin.settings.syncOnRemoteChangesAfterMilliseconds=oe,await this.plugin.saveSettings(),oe<=0?this.plugin.toggleSyncOnRemote(!1):this.plugin.toggleSyncOnRemote(!0)})})),M.addSetting(z=>z.setName(r("settings_autorun")).setDesc(r("settings_autorun_desc")).addDropdown(O=>{O.addOption("-1",r("settings_autorun_notset")),O.addOption(`${1e3*5}`,r("settings_autorun_second",{time:5})),O.addOption(`${1e3*15}`,r("settings_autorun_second",{time:15})),O.addOption(`${1e3*30}`,r("settings_autorun_second",{time:30})),O.addOption(`${1e3*60}`,r("settings_autorun_1min")),O.addOption(`${1e3*60*5}`,r("settings_autorun_5min")),O.addOption(`${1e3*60*10}`,r("settings_autorun_10min")),O.addOption(`${1e3*60*30}`,r("settings_autorun_30min")),O.setValue(`${this.plugin.settings.autoRunEveryMilliseconds}`).onChange(async H=>{let oe=parseInt(H);if(this.plugin.settings.autoRunEveryMilliseconds=oe,await this.plugin.saveSettings(),(oe==null||oe<=0)&&this.plugin.autoRunIntervalID!==void 0)window.clearInterval(this.plugin.autoRunIntervalID),this.plugin.autoRunIntervalID=void 0;else if(oe!=null&&oe>0){let Ke=window.setInterval(()=>{this.plugin.syncRun("auto")},oe);this.plugin.autoRunIntervalID=Ke,this.plugin.registerInterval(Ke)}})})),M.addSetting(z=>z.setName(r("settings_runoncestartup")).setDesc(r("settings_runoncestartup_desc")).addDropdown(O=>{O.addOption("-1",r("settings_runoncestartup_notset")),O.addOption(`${1e3*1*1}`,r("settings_runoncestartup_1sec")),O.addOption(`${1e3*10*1}`,r("settings_runoncestartup_10sec")),O.addOption(`${1e3*30*1}`,r("settings_runoncestartup_30sec")),O.setValue(`${this.plugin.settings.initRunAfterMilliseconds}`).onChange(async H=>{let oe=parseInt(H);this.plugin.settings.initRunAfterMilliseconds=oe,await this.plugin.saveSettings()})})),M.addSetting(z=>z.setName(r("settings_skiplargefiles")).setDesc(r("settings_skiplargefiles_desc")).addDropdown(O=>{O.addOption("-1",r("settings_skiplargefiles_notset"));let H=[1,5,10,50,100,500,1e3];for(let oe of H)O.addOption(`${oe*1e3*1e3}`,`${oe} MB`);O.setValue(`${this.plugin.settings.skipSizeLargerThan}`).onChange(async oe=>{this.plugin.settings.skipSizeLargerThan=parseInt(oe),await this.plugin.saveSettings()})})),M.addSetting(z=>z.setName(r("settings_enablestatusbar_info")).setDesc(r("settings_enablestatusbar_info_desc")).addToggle(O=>{O.setValue(this.plugin.settings.enableStatusBarInfo).onChange(async H=>{this.plugin.settings.enableStatusBarInfo=H,await this.plugin.saveSettings(),this.plugin.toggleStatusBar(H),$.toggleClass("third-party-sync-hidden",this.plugin.settings.enableStatusBarInfo!==!0)})}));let $=M.groupEl.createDiv({cls:"third-party-sync-hidden"});$.toggleClass("third-party-sync-hidden",this.plugin.settings.enableStatusBarInfo!==!0),M.addSetting(z=>z.setName(r("settings_sync_trash")).setDesc(r("settings_sync_trash_desc")).addToggle(O=>{O.setValue(this.plugin.settings.syncTrash).onChange(async H=>{this.plugin.settings.syncTrash=H,await this.plugin.saveSettings()})})),M.addSetting(z=>z.setName(r("settings_sync_bookmarks")).setDesc(r("settings_sync_bookmarks_desc")).addToggle(O=>{O.setValue(this.plugin.settings.syncBookmarks).onChange(async H=>{this.plugin.settings.syncBookmarks=H,await this.plugin.saveSettings()})}));let W=new ie.SettingGroup(n);W.setHeading(r("settings_adv")),W.addSetting(z=>z.setName(r("settings_concurrency")).setDesc(r("settings_concurrency_desc")).addDropdown(O=>{O.addOption("1","1"),O.addOption("2","2"),O.addOption("3","3"),O.addOption("5",r("settings_concurrency_default")),O.addOption("10","10"),O.addOption("15","15"),O.addOption("20","20"),O.setValue(`${this.plugin.settings.concurrency}`).onChange(async H=>{let oe=parseInt(H);this.plugin.settings.concurrency=oe,await this.plugin.saveSettings()})})),W.addSetting(z=>z.setName(r("settings_syncunderscore")).setDesc(r("settings_syncunderscore_desc")).addDropdown(O=>{O.addOption("disable",r("disable")),O.addOption("enable",r("enable")),O.setValue(`${this.plugin.settings.syncUnderscoreItems?"enable":"disable"}`).onChange(async H=>{this.plugin.settings.syncUnderscoreItems=H==="enable",await this.plugin.saveSettings()})})),W.addSetting(z=>z.setName(r("settings_deletetowhere")).setDesc(r("settings_deletetowhere_desc")).addDropdown(O=>{var H;O.addOption("system_trash",r("settings_deletetowhere_system_trash")),O.addOption("obsidian_trash",r("settings_deletetowhere_obsidian_trash")),O.setValue((H=this.plugin.settings.deleteToWhere)!=null?H:"system_trash").onChange(async oe=>{this.plugin.settings.deleteToWhere=oe,await this.plugin.saveSettings()})})),W.addSetting(z=>z.setName(r("settings_conflictaction")).setDesc(r("settings_conflictaction_desc")).addDropdown(O=>{var H;O.addOption("keep_newer",r("settings_conflictaction_keep_newer")),O.addOption("keep_larger",r("settings_conflictaction_keep_larger")),O.setValue((H=this.plugin.settings.conflictAction)!=null?H:"keep_newer").onChange(async oe=>{this.plugin.settings.conflictAction=oe,await this.plugin.saveSettings()})}));let le;W.addSetting(z=>(le=z,z.setName(r("setting_syncdirection")).setDesc((O=>{let H=document.createDocumentFragment();return O.split(` +`).forEach((Ke,On)=>{On>0&&H.appendChild(document.createElement("br")),H.appendChild(document.createTextNode(Ke))}),H})(r("setting_syncdirection_desc"))).addDropdown(O=>{var H;O.addOption("bidirectional",r("setting_syncdirection_bidirectional_desc")),O.addOption("incremental_push_only",r("setting_syncdirection_incremental_push_only_desc")),O.addOption("incremental_pull_only",r("setting_syncdirection_incremental_pull_only_desc")),O.addOption("incremental_push_and_delete_only",r("setting_syncdirection_incremental_push_and_delete_only_desc")),O.addOption("incremental_pull_and_delete_only",r("setting_syncdirection_incremental_pull_and_delete_only_desc")),O.setValue((H=this.plugin.settings.syncDirection)!=null?H:"bidirectional").onChange(async oe=>{this.plugin.settings.syncDirection=oe,await this.plugin.saveSettings()})})));let J=le.settingEl,me=le.infoEl,Ae=le.controlEl;me&&Ae&&J.appendChild(Ae),W.addSetting(z=>z.setName(r("settings_protectmodifypercentage")).setDesc(r("settings_protectmodifypercentage_desc")).addDropdown(O=>{var H;O.addOption("0",r("settings_protectmodifypercentage_000_desc")),O.addOption("10","10"),O.addOption("20","20"),O.addOption("30","30"),O.addOption("40","40"),O.addOption("50",r("settings_protectmodifypercentage_050_desc")),O.addOption("60","60"),O.addOption("70","70"),O.addOption("80","80"),O.addOption("90","90"),O.addOption("100",r("settings_protectmodifypercentage_100_desc")),O.setValue(`${(H=this.plugin.settings.protectModifyPercentage)!=null?H:50}`).onChange(async oe=>{this.plugin.settings.protectModifyPercentage=parseInt(oe),await this.plugin.saveSettings()})})),W.addSetting(z=>z.setName(r("settings_configdir")).setDesc(r("settings_configdir_desc",{configDir:this.app.vault.configDir})).addDropdown(O=>{O.addOption("disable",r("disable")),O.addOption("enable",r("enable"));let H={secondConfirm:!1};O.setValue(`${this.plugin.settings.syncConfigDir?"enable":"disable"}`).onChange(async oe=>{oe==="enable"&&!H.secondConfirm?(O.setValue("disable"),new uE(this.app,this.plugin,()=>{H.secondConfirm=!0,O.setValue("enable")}).open()):(H.secondConfirm=!1,this.plugin.settings.syncConfigDir=!1,await this.plugin.saveSettings())})}));let _e=new ie.SettingGroup(n);_e.setHeading(r("settings_importexport"));let Oe="";_e.addSetting(z=>z.setName(r("settings_export")).setDesc(r("settings_export_desc")).addButton(async O=>{O.setButtonText(r("settings_export_s3_button")),O.onClick(async()=>{let H=(0,kg.default)(this.plugin.settings);delete H.onedrive,delete H.webdav,delete H.vaultRandomID;let oe=Iw(H,this.app.vault.getName(),this.plugin.manifest.version);await navigator.clipboard.writeText(oe),new ie.Notice(r("modal_export_button_notice"))})}).addButton(async O=>{O.setButtonText(r("settings_export_webdav_button")),O.onClick(async()=>{let H=(0,kg.default)(this.plugin.settings);delete H.onedrive,delete H.s3,delete H.vaultRandomID;let oe=Iw(H,this.app.vault.getName(),this.plugin.manifest.version);await navigator.clipboard.writeText(oe),new ie.Notice(r("modal_export_button_notice"))})})),_e.addSetting(z=>z.setName(r("settings_import")).setDesc(r("settings_import_desc")).addText(O=>{var H;O.setPlaceholder("obsidian://third-party-sync?func=settings&vault=&version=&data=&compressed=1").onChange(oe=>{Oe=oe}),(H=O.inputEl.parentElement)==null||H.addClass("tp-full-width-input")}).addButton(O=>{O.setButtonText(r("settings_import_button")),O.onClick(async()=>{var jo,hp,gp;let H=Oe.trim();if(H===""){new ie.Notice(r("settings_import_error_notice"));return}let Ke=(ji=>{let yp=mi=>{let vp={};return mi.forEach((jg,jr)=>{vp[jr]=jg}),vp};try{let mi=new URL(ji);return yp(mi.searchParams)}catch(mi){}let xp=ji.startsWith("?")?ji.slice(1):ji.includes("?")?ji.split("?").slice(1).join("?"):ji;if(xp.includes("="))try{let mi=new URLSearchParams(xp);return yp(mi)}catch(mi){return}})(H);if(Ke===void 0){new ie.Notice(r("settings_import_error_notice"));return}let On=cg(Ke,this.app.vault.getName());if(On.status==="error"){new ie.Notice(On.message);return}let ot=(0,kg.default)(On.result);this.plugin.settings={...this.plugin.settings,...ot,s3:{...this.plugin.settings.s3,...(jo=ot==null?void 0:ot.s3)!=null?jo:{}},webdav:{...this.plugin.settings.webdav,...(hp=ot==null?void 0:ot.webdav)!=null?hp:{}},onedrive:{...this.plugin.settings.onedrive,...(gp=ot==null?void 0:ot.onedrive)!=null?gp:{}}},await this.plugin.saveSettings(),new ie.Notice(r("protocol_saveqr",{manifestName:this.plugin.manifest.name})),this.display()})}));let He=new ie.SettingGroup(n);He.setHeading(r("settings_debug")),He.addSetting(z=>z.setName(r("settings_debug_enabled")).setDesc(r("settings_debug_enabled_desc")).addDropdown(async O=>{O.addOption("disable",r("disable")),O.addOption("enable",r("enable")),O.setValue(this.plugin.settings.debugEnabled?"enable":"disable").onChange(async H=>{let oe=H==="enable";this.plugin.settings.debugEnabled=oe,oe?se.setLevel("debug"):se.setLevel("info"),this.update(),await this.plugin.saveSettings()})}));let Fe=He.groupEl.createEl("div",{cls:"remotely-sync-debug-options"});this.update=()=>{let z=!!this.plugin.settings.debugEnabled;Fe.style.display=z?"block":"none",Fe.empty(),z&&(new ie.Setting(Fe).setName(r("settings_outputsettingsconsole")).setDesc(r("settings_outputsettingsconsole_desc")).addButton(async O=>{O.setButtonText(r("settings_outputsettingsconsole_button")),O.onClick(async()=>{let H=fg(await this.plugin.loadData());new ie.Notice(r("settings_outputsettingsconsole_notice")),console.log(H)})}),new ie.Setting(Fe).setName(r("settings_syncplans")).setDesc(r("settings_syncplans_desc")).addButton(async O=>{O.setButtonText(r("settings_syncplans_button_json")),O.onClick(async()=>{await Bc(this.plugin.db,this.app.vault,this.plugin.vaultRandomID,"json"),new ie.Notice(r("settings_syncplans_notice"))})}).addButton(async O=>{O.setButtonText(r("settings_syncplans_button_table")),O.onClick(async()=>{await Bc(this.plugin.db,this.app.vault,this.plugin.vaultRandomID,"table"),new ie.Notice(r("settings_syncplans_notice"))})}),new ie.Setting(Fe).setName(r("settings_delsyncplans")).setDesc(r("settings_delsyncplans_desc")).addButton(async O=>{O.setButtonText(r("settings_delsyncplans_button")),O.onClick(async()=>{await T$(this.plugin.db),new ie.Notice(r("settings_delsyncplans_notice"))})}),new ie.Setting(Fe).setName(r("settings_logtodb")).setDesc(r("settings_logtodb_desc")).addDropdown(async O=>{O.addOption("enable",r("enable")),O.addOption("disable",r("disable")),O.setValue(this.plugin.settings.logToDB?"enable":"disable").onChange(async H=>{let oe=H==="enable";oe?$h((...Ke)=>{pg(this.plugin.db,this.plugin.vaultRandomID,...Ke)}):j8(),rp(this.plugin.db),this.plugin.settings.logToDB=oe,await this.plugin.saveSettings()})}),new ie.Setting(Fe).setName(r("settings_logtodbexport")).setDesc(r("settings_logtodbexport_desc",{debugFolder:Us})).addButton(async O=>{O.setButtonText(r("settings_logtodbexport_button")),O.onClick(async()=>{await dg(this.plugin.db,this.app.vault,this.plugin.vaultRandomID),new ie.Notice(r("settings_logtodbexport_notice"))})}),new ie.Setting(Fe).setName(r("settings_logtodbclear")).setDesc(r("settings_logtodbclear_desc")).addButton(async O=>{O.setButtonText(r("settings_logtodbclear_button")),O.onClick(async()=>{await k$(this.plugin.db),new ie.Notice(r("settings_logtodbclear_notice"))})}),new ie.Setting(Fe).setName(r("settings_delsyncmap")).setDesc(r("settings_delsyncmap_desc")).addButton(async O=>{O.setButtonText(r("settings_delsyncmap_button")),O.onClick(async()=>{await C$(this.plugin.db),new ie.Notice(r("settings_delsyncmap_notice"))})}),new ie.Setting(Fe).setName(r("settings_outputbasepathvaultid")).setDesc(r("settings_outputbasepathvaultid_desc")).addButton(async O=>{O.setButtonText(r("settings_outputbasepathvaultid_button")),O.onClick(async()=>{new ie.Notice(this.plugin.getVaultBasePath()),new ie.Notice(this.plugin.vaultRandomID)})}),new ie.Setting(Fe).setName(r("settings_resetcache")).setDesc(r("settings_resetcache_desc")).addButton(async O=>{O.setButtonText(r("settings_reset_button")),O.onClick(async()=>{await _$(),new ie.Notice(r("settings_resetcache_notice"))})}),new ie.Setting(Fe).setName(r("settings_disable_s3_metadata_sync")).setDesc(r("settings_disable_s3_metadata_sync_desc")).addToggle(O=>{O.setValue(this.plugin.settings.s3.disableS3MetadataSync).onChange(async H=>{this.plugin.settings.s3.disableS3MetadataSync=H,await this.plugin.saveSettings(),new ie.Notice(r("settings_enablestatusbar_reloadrequired_notice"))})}),new ie.Setting(Fe).setName(r("settings_reset_sync_metadata")).setDesc(r("settings_reset_sync_metadata_desc")).addButton(async O=>{O.setButtonText(r("settings_reset_button")),O.onClick(async()=>{if(this.deletingRemoteMeta){new ie.Notice(r("settings_reset_sync_metadata_notice_error"));return}new ie.Notice(r("settings_reset_sync_metadata_notice_start")),se.debug("Deleting remote metadata file. (1/2)"),this.deletingRemoteMeta=!0,await this.deleteRemoteMetadata(),await zU(this.getClient(),this.app.vault,void 0,void 0,[],this.plugin.settings.password),this.deletingRemoteMeta=!1,new ie.Notice(r("settings_reset_sync_metadata_notice_end")),se.debug("Remote metadata file deleted. (2/2)")})}))}}async deleteRemoteMetadata(){let n=this.getClient(),r=await n.listFromRemote(),i=await NU(r.Contents,n,this.plugin.settings.password);await n.deleteFromRemote($o,this.plugin.settings.password,i.remoteEncryptedKey)}getClient(){return new fi(this.plugin.settings.serviceType,this.plugin.settings.s3,this.plugin.settings.webdav,this.plugin.settings.onedrive,this.app.vault.getName(),()=>this.plugin.saveSettings())}hide(){let{containerEl:n}=this;n.empty(),super.hide()}};c();c();var rSe=Object.prototype.toString,Nc=Array.isArray||function(t){return rSe.call(t)==="[object Array]"};function pE(e){return typeof e=="function"}function iSe(e){return Nc(e)?"array":typeof e}function lE(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function VU(e,t){return e!=null&&typeof e=="object"&&t in e}function sSe(e,t){return e!=null&&typeof e!="object"&&e.hasOwnProperty&&e.hasOwnProperty(t)}var oSe=RegExp.prototype.test;function aSe(e,t){return oSe.call(e,t)}var cSe=/\S/;function uSe(e){return!aSe(cSe,e)}var lSe={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function pSe(e){return String(e).replace(/[&<>"'`=\/]/g,function(n){return lSe[n]})}var dSe=/\s*/,fSe=/\s+/,WU=/\s*=/,mSe=/\s*\}/,hSe=/#|\^|\/|>|\{|&|=|!/;function gSe(e,t){if(!e)return[];var n=!1,r=[],i=[],s=[],o=!1,a=!1,l="",u=0;function p(){if(o&&!a)for(;s.length;)delete i[s.pop()];else s=[];o=!1,a=!1}var d,f,m;function g(M){if(typeof M=="string"&&(M=M.split(fSe,2)),!Nc(M)||M.length!==2)throw new Error("Invalid tags: "+M);d=new RegExp(lE(M[0])+"\\s*"),f=new RegExp("\\s*"+lE(M[1])),m=new RegExp("\\s*"+lE("}"+M[1]))}g(t||Sr.tags);for(var x=new fp(e),v,_,w,E,S,A;!x.eos();){if(v=x.pos,w=x.scanUntil(d),w)for(var k=0,I=w.length;k"?S=[_,w,v,x.pos,l,u,n]:S=[_,w,v,x.pos],u++,i.push(S),_==="#"||_==="^")r.push(S);else if(_==="/"){if(A=r.pop(),!A)throw new Error('Unopened section "'+w+'" at '+v);if(A[1]!==w)throw new Error('Unclosed section "'+A[1]+'" at '+v)}else _==="name"||_==="{"||_==="&"?a=!0:_==="="&&g(w)}if(p(),A=r.pop(),A)throw new Error('Unclosed section "'+A[1]+'" at '+x.pos);return xSe(ySe(i))}function ySe(e){for(var t=[],n,r,i=0,s=e.length;i0?r[r.length-1][4]:t;break;default:n.push(i)}return t}function fp(e){this.string=e,this.tail=e,this.pos=0}fp.prototype.eos=function(){return this.tail===""};fp.prototype.scan=function(t){var n=this.tail.match(t);if(!n||n.index!==0)return"";var r=n[0];return this.tail=this.tail.substring(r.length),this.pos+=r.length,r};fp.prototype.scanUntil=function(t){var n=this.tail.search(t),r;switch(n){case-1:r=this.tail,this.tail="";break;case 0:r="";break;default:r=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=r.length,r};function Pc(e,t){this.view=e,this.cache={".":this.view},this.parent=t}Pc.prototype.push=function(t){return new Pc(t,this)};Pc.prototype.lookup=function(t){var n=this.cache,r;if(n.hasOwnProperty(t))r=n[t];else{for(var i=this,s,o,a,l=!1;i;){if(t.indexOf(".")>0)for(s=i.view,o=t.split("."),a=0;s!=null&&a"?u=this.renderPartial(a,n,r,s):l==="&"?u=this.unescapedValue(a,n):l==="name"?u=this.escapedValue(a,n,s):l==="text"&&(u=this.rawValue(a)),u!==void 0&&(o+=u);return o};kn.prototype.renderSection=function(t,n,r,i,s){var o=this,a="",l=n.lookup(t[1]);function u(f){return o.render(f,n,r,s)}if(l){if(Nc(l))for(var p=0,d=l.length;p0||!r)&&(s[o]=i+s[o]);return s.join(` -`)};Rn.prototype.renderPartial=function(t,n,r,i){if(r){var s=this.getConfigTags(i),o=cE(r)?r(t[1]):r[t[1]];if(o!=null){var a=t[6],l=t[5],u=t[4],p=o;l==0&&u&&(p=this.indentPartial(o,u,a));var d=this.parse(p,s);return this.renderTokens(d,n,r,p,i)}}};Rn.prototype.unescapedValue=function(t,n){var r=n.lookup(t[1]);if(r!=null)return r};Rn.prototype.escapedValue=function(t,n,r){var i=this.getConfigEscape(r)||Dr.escape,s=n.lookup(t[1]);if(s!=null)return typeof s=="number"&&i===Dr.escape?String(s):i(s)};Rn.prototype.rawValue=function(t){return t[1]};Rn.prototype.getConfigTags=function(t){return Fc(t)?t:t&&typeof t=="object"?t.tags:void 0};Rn.prototype.getConfigEscape=function(t){if(t&&typeof t=="object"&&!Fc(t))return t.escape};var Dr={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){lp.templateCache=e},get templateCache(){return lp.templateCache}},lp=new Rn;Dr.clearCache=function(){return lp.clearCache()};Dr.parse=function(t,n){return lp.parse(t,n)};Dr.render=function(t,n,r,i){if(typeof t!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+KDe(t)+'" was given as the first argument for mustache#render(template, view, partials)');return lp.render(t,n,r,i)};Dr.escape=tSe;Dr.Scanner=pp;Dr.Context=Oc;Dr.Writer=Rn;var NU=Dr;var uE=require("obsidian");c();var MU={confirm:"Confirm",disable:"Disable",enable:"Enable",goback:"Go Back",submit:"Submit",sometext:"Here are some texts.",syncrun_alreadyrunning:"New command {{newTriggerSource}} stops because {{pluginName}} is already running in stage {{syncStatus}}!",syncrun_syncingribbon:"{{pluginName}}: syncing from {{triggerSource}}",syncrun_step0:"{{current}}/{{maxSteps}} Third-party Sync is running in dry mode, thus not actual file changes would happen.",syncrun_step1:"{{current}}/{{maxSteps}} Third-party Sync is preparing ({{serviceType}})",syncrun_step2:"{{current}}/{{maxSteps}} Starting to fetch remote meta data and check password.",syncrun_passworderr:"Something goes wrong while checking password.",syncrun_step3:"{{current}}/{{maxSteps}} Starting to process remote data.",syncrun_step4:"{{current}}/{{maxSteps}} Starting to fetch local meta data.",syncrun_step5:"{{current}}/{{maxSteps}} Starting to fetch local prev sync data.",syncrun_step6:"{{current}}/{{maxSteps}} Starting to generate sync plan.",syncrun_step7:"{{current}}/{{maxSteps}} Third-party Sync data is exchanging!",syncrun_step7skip:"{{current}}/{{maxSteps}} Third-party Sync real sync is skipped in dry run mode.",syncrun_step8:"{{current}}/{{maxSteps}} Third-party Sync finished!",syncrun_status_preparing:"Preparing...",syncrun_status_syncing:"Syncing...",syncrun_status_progress:"Syncing {{current}} / {{total}} ...",remote_changes_found:"Remote changes found, auto sync started.",remote_changes_synced:"No remote changes found.",syncrun_shortstep0:"0/2 Third-party Sync is running in dry mode, not actual file changes would happen.",syncrun_shortstep1:"1/2 Third-party Sync starts running ({{serviceType}})",syncrun_shortstep2skip:"2/2 Third-party Sync real sync is skipped in dry run mode.",syncrun_shortstep2:"2/2 Third-party Sync finished!",syncrun_shortstep3drydone:"Dry run finished (no files were changed).",syncrun_abort:"{{manifestID}}-{{theDate}}: abort sync, triggerSource={{triggerSource}}, error while {{syncStatus}}",syncrun_abort_protectmodifypercentage:"Abort! you set changing files >= {{protectModifyPercentage}}% is not allowed but {{realModifyDeleteCount}}/{{allFilesCount}}={{percent}}% is going to be modified or deleted! If you are sure you want this sync, please adjust the allowed ratio in the settings.",protocol_saveqr:"New settings for {{manifestName}} is imported and saved. Reopen the plugin settings to make it effective.",protocol_callbacknotsupported:"Your uri calls a callback that's not supported yet: {{params}}",protocol_onedrive_connecting:`Connecting to OneDrive... +`)};kn.prototype.renderPartial=function(t,n,r,i){if(r){var s=this.getConfigTags(i),o=pE(r)?r(t[1]):r[t[1]];if(o!=null){var a=t[6],l=t[5],u=t[4],p=o;l==0&&u&&(p=this.indentPartial(o,u,a));var d=this.parse(p,s);return this.renderTokens(d,n,r,p,i)}}};kn.prototype.unescapedValue=function(t,n){var r=n.lookup(t[1]);if(r!=null)return r};kn.prototype.escapedValue=function(t,n,r){var i=this.getConfigEscape(r)||Sr.escape,s=n.lookup(t[1]);if(s!=null)return typeof s=="number"&&i===Sr.escape?String(s):i(s)};kn.prototype.rawValue=function(t){return t[1]};kn.prototype.getConfigTags=function(t){return Nc(t)?t:t&&typeof t=="object"?t.tags:void 0};kn.prototype.getConfigEscape=function(t){if(t&&typeof t=="object"&&!Nc(t))return t.escape};var Sr={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){dp.templateCache=e},get templateCache(){return dp.templateCache}},dp=new kn;Sr.clearCache=function(){return dp.clearCache()};Sr.parse=function(t,n){return dp.parse(t,n)};Sr.render=function(t,n,r,i){if(typeof t!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+iSe(t)+'" was given as the first argument for mustache#render(template, view, partials)');return dp.render(t,n,r,i)};Sr.escape=pSe;Sr.Scanner=fp;Sr.Context=Pc;Sr.Writer=kn;var KU=Sr;var dE=require("obsidian");c();var YU={confirm:"Confirm",disable:"Disable",enable:"Enable",goback:"Go Back",submit:"Submit",sometext:"Here are some texts.",syncrun_alreadyrunning:"New command {{newTriggerSource}} stops because {{pluginName}} is already running in stage {{syncStatus}}!",syncrun_syncingribbon:"{{pluginName}}: syncing from {{triggerSource}}",syncrun_step0:"{{current}}/{{maxSteps}} Third-party Sync is running in dry mode, thus not actual file changes would happen.",syncrun_step1:"{{current}}/{{maxSteps}} Third-party Sync is preparing ({{serviceType}})",syncrun_step2:"{{current}}/{{maxSteps}} Starting to fetch remote meta data and check password.",syncrun_passworderr:"Something goes wrong while checking password.",syncrun_step3:"{{current}}/{{maxSteps}} Starting to process remote data.",syncrun_step4:"{{current}}/{{maxSteps}} Starting to fetch local meta data.",syncrun_step5:"{{current}}/{{maxSteps}} Starting to fetch local prev sync data.",syncrun_step6:"{{current}}/{{maxSteps}} Starting to generate sync plan.",syncrun_step7:"{{current}}/{{maxSteps}} Third-party Sync data is exchanging!",syncrun_step7skip:"{{current}}/{{maxSteps}} Third-party Sync real sync is skipped in dry run mode.",syncrun_step8:"{{current}}/{{maxSteps}} Third-party Sync finished!",syncrun_status_preparing:"Preparing...",syncrun_status_syncing:"Syncing...",syncrun_status_progress:"Syncing {{current}} / {{total}} ...",remote_changes_found:"Remote changes found, auto sync started.",remote_changes_synced:"No remote changes found.",syncrun_shortstep0:"0/2 Third-party Sync is running in dry mode, not actual file changes would happen.",syncrun_shortstep1:"1/2 Third-party Sync starts running ({{serviceType}})",syncrun_shortstep2skip:"2/2 Third-party Sync real sync is skipped in dry run mode.",syncrun_shortstep2:"2/2 Third-party Sync finished!",syncrun_shortstep3drydone:"Dry run finished (no files were changed).",syncrun_abort:"{{manifestID}}-{{theDate}}: abort sync, triggerSource={{triggerSource}}, error while {{syncStatus}}",syncrun_abort_protectmodifypercentage:"Abort! you set changing files >= {{protectModifyPercentage}}% is not allowed but {{realModifyDeleteCount}}/{{allFilesCount}}={{percent}}% is going to be modified or deleted! If you are sure you want this sync, please adjust the allowed ratio in the settings.",protocol_saveqr:"New settings for {{manifestName}} is imported and saved. Reopen the plugin settings to make it effective.",protocol_callbacknotsupported:"Your uri calls a callback that's not supported yet: {{params}}",protocol_onedrive_connecting:`Connecting to OneDrive... Please DO NOT close this modal.`,protocol_onedrive_connect_succ_revoke:"You've connected as user {{username}}. If you want to disconnect, click this button.",protocol_onedrive_connect_fail:"Something went wrong from response from OneDrive. Maybe you rejected the auth?",protocol_onedrive_connect_unknown:"Do not know how to deal with the callback: {{params}}",command_startsync:"start sync",command_drynrun:"start sync (dry run only)",command_exportsyncplans_1_only_change:"export sync plans (latest 1) (change part)",command_exportsyncplans_1:"export sync plans (latest 1)",command_exportsyncplans_5:"export sync plans (latest 5)",command_exportsyncplans_all:"export sync plans (all)",command_exportlogsindb:"export logs saved in db",statusbar_sync_source_manual:"Manual: ",statusbar_sync_source_dry:"Dry: ",statusbar_sync_source_auto:"Auto: ",statusbar_sync_source_auto_once_init:"Auto (init): ",statusbar_sync_source_auto_sync_on_save:"Auto (save): ",statusbar_sync_status_prefix_success:"Successfully synced ",statusbar_sync_status_prefix_failed:"Failed to sync ",statusbar_time_years:"{{time}} years ago",statusbar_time_months:"{{time}} months ago",statusbar_time_weeks:"{{time}} weeks ago",statusbar_time_days:"{{time}} days ago",statusbar_time_hours:"{{time}} hours ago",statusbar_time_minutes:"{{time}} minutes ago",statusbar_time_lessminute:"last minute ago",statusbar_time_now:"just now",statusbar_syncing:"Syncing...",statusbar_syncing_manual:"Manual: Syncing...",statusbar_syncing_auto:"Auto: Syncing...",statusbar_finished_justnow:"Sync finished, just now",statusbar_lastsync:"{{time}}",statusbar_lastsync_label:"on {{date}}",statusbar_lastsync_never:"Never Synced",statusbar_lastsync_never_label:"Never Synced before",modal_password_title:"Hold on and PLEASE READ ON...",modal_password_shortdesc:`If the field is not empty, files would be encrypted locally before being uploaded. If the field is empty, then files would be uploaded without encryption.`,modal_password_attn1:"Attention 1/5: The vault name is NOT encrypted. The plugin creates a folder with the vault name on some remote services.",modal_password_attn2:"Attention 2/5: The password itself is stored in PLAIN TEXT LOCALLY.",modal_password_attn3:"Attention 3/5: Some metadata are not encrypted or can be easily guessed. (File sizes are closed to their unencrypted ones, and directory path may be stored as 0-byte-size object.)",modal_password_attn4:"Attention 4/5: You should make sure the remote store IS EMPTY, or REMOTE FILES WERE ENCRYPTED BY THAT NEW PASSWORD, to avoid conflicts.",modal_password_attn5:"Attention 5/5: The longer the password, the better.",modal_password_secondconfirm:"The Second Confirm to change password.",modal_password_notice:"New password saved!",modal_encryptionmethod_title:"Hold on and PLEASE READ ON...",modal_encryptionmethod_shortdesc:`You are changing the encrpytion method but you have set the password before. After switching the method, you need to manually and fully delete every encrypted vault files in the remote and re-sync (so that re-upload) the newly encrypted files again.`,modal_remotebasedir_title:"You are changing the remote base directory config",modal_remotebasedir_shortdesc:`1. The plugin would NOT automatically move the content from the old directory to the new one directly on the remote. Everything syncs from the beginning again. @@ -99,7 +99,7 @@ Also, please consider v \xB7 After upgrading to this version, it is recommended to perform a full sync at least once to ensure all data is properly updated. If you agree to use this plugin, please click the "Agree" button. -If you do not agree, please click the "Do Not Agree" button, and the plugin will not be enabled (Unload).`,syncalgov2_button_agree:"Agree",syncalgov2_button_disagree:"Do Not Agree"};var LU={confirm:"\u786E\u8BA4",disable:"\u5173\u95ED",enable:"\u5F00\u542F",goback:"\u8FD4\u56DE",submit:"\u63D0\u4EA4",sometext:"\u8FD9\u91CC\u6709\u4E00\u6BB5\u6587\u5B57\u3002",syncrun_alreadyrunning:"{{pluginName}} \u6B63\u5904\u4E8E\u6B64\u9636\u6BB5\uFF1A{{syncStatus}}\uFF01\u4E2D\u65AD\u89E6\u53D1 {{newTriggerSource}}\u3002",syncrun_syncingribbon:"{{pluginName}}\uFF1A\u6B63\u5728\u7531 {{triggerSource}} \u89E6\u53D1\u8FD0\u884C",syncrun_step0:"{{current}}/{{maxSteps}} Third-party Sync \u5728\u7A7A\u8DD1\uFF08dry run\uFF09\u6A21\u5F0F\uFF0C\u4E0D\u4F1A\u53D1\u751F\u5B9E\u9645\u7684\u6587\u4EF6\u4EA4\u6362\u3002",syncrun_step1:"{{current}}/{{maxSteps}} Third-party Sync \u51C6\u5907\u540C\u6B65\uFF08{{serviceType}}\uFF09",syncrun_step2:"{{current}}/{{maxSteps}} \u6B63\u5728\u83B7\u53D6\u8FDC\u7AEF\u7684\u5143\u6570\u636E\u548C\u68C0\u67E5\u5BC6\u7801\u3002",syncrun_passworderr:"\u68C0\u67E5\u5BC6\u7801\u65F6\u5019\u51FA\u9519\u3002",syncrun_step3:"{{current}}/{{maxSteps}} \u6B63\u5728\u5904\u7406\u8FDC\u7AEF\u7684\u5143\u6570\u636E\u3002",syncrun_step4:"{{current}}/{{maxSteps}} \u6B63\u5728\u83B7\u53D6\u672C\u5730\u7684\u5143\u6570\u636E\u3002",syncrun_step5:"{{current}}/{{maxSteps}} \u6B63\u5728\u83B7\u53D6\u672C\u5730\u4E0A\u4E00\u6B21\u540C\u6B65\u7684\u5143\u6570\u636E\u3002",syncrun_step6:"{{current}}/{{maxSteps}} \u6B63\u5728\u751F\u6210\u540C\u6B65\u8BA1\u5212\u3002",syncrun_step7:"{{current}}/{{maxSteps}} Third-party Sync \u5F00\u59CB\u53D1\u751F\u6570\u636E\u4EA4\u6362\uFF01",syncrun_step7skip:"{{current}}/{{maxSteps}} Third-party Sync \u5728\u7A7A\u8DD1\u6A21\u5F0F\uFF0C\u8DF3\u8FC7\u5B9E\u9645\u6570\u636E\u4EA4\u6362\u6B65\u9AA4\u3002",syncrun_step8:"{{current}}/{{maxSteps}} Third-party Sync \u5DF2\u5B8C\u6210\u540C\u6B65\uFF01",syncrun_status_preparing:"\u6B63\u5728\u51C6\u5907",syncrun_status_syncing:"\u6B63\u5728\u540C\u6B65",syncrun_status_progress:"\u6B63\u5728\u540C\u6B65 {{current}}/{{total}}",remote_changes_found:"\u68C0\u6D4B\u5230\u8FDC\u7AEF\u53D8\u5316\uFF0C\u5DF2\u5F00\u59CB\u81EA\u52A8\u540C\u6B65\u3002",remote_changes_synced:"\u672A\u68C0\u6D4B\u5230\u8FDC\u7AEF\u53D8\u5316\u3002",syncrun_shortstep0:"0/2 Third-party Sync \u5728\u7A7A\u8DD1\uFF08dry run\uFF09\u6A21\u5F0F\uFF0C\u4E0D\u4F1A\u53D1\u751F\u5B9E\u9645\u7684\u6587\u4EF6\u4EA4\u6362\u3002",syncrun_shortstep1:"1/2 Third-party Sync \u5F00\u59CB\u540C\u6B65\uFF08{{serviceType}}\uFF09",syncrun_shortstep2skip:"2/2 Third-party Sync \u5728\u7A7A\u8DD1\u6A21\u5F0F\uFF0C\u8DF3\u8FC7\u5B9E\u9645\u6570\u636E\u4EA4\u6362\u6B65\u9AA4\u3002",syncrun_shortstep2:"2/2 Third-party Sync \u5DF2\u5B8C\u6210\u540C\u6B65\uFF01",syncrun_shortstep3drydone:"\u7A7A\u8DD1\u6D41\u7A0B\u5DF2\u5B8C\u6210\uFF08\u672A\u4FEE\u6539\u4EFB\u4F55\u6587\u4EF6\uFF09\u3002",syncrun_abort:"{{manifestID}}-{{theDate}}\uFF1A\u4E2D\u65AD\u540C\u6B65\uFF0C\u540C\u6B65\u6765\u6E90={{triggerSource}}\uFF0C\u51FA\u9519\u9636\u6BB5={{syncStatus}}",syncrun_abort_protectmodifypercentage:"\u4E2D\u65AD\u540C\u6B65\uFF01\u60A8\u8BBE\u7F6E\u4E86\u4E0D\u5141\u8BB8 >= {{protectModifyPercentage}}% \u7684\u53D8\u66F4\uFF0C\u4F46\u662F\u73B0\u5728 {{realModifyDeleteCount}}/{{allFilesCount}}={{percent}}% \u7684\u6587\u4EF6\u4F1A\u88AB\u4FEE\u6539\u6216\u5220\u9664\uFF01\u5982\u679C\u60A8\u786E\u8BA4\u8FD9\u6B21\u540C\u6B65\u662F\u60A8\u60F3\u8981\u7684\uFF0C\u90A3\u4E48\u8BF7\u5728\u8BBE\u7F6E\u91CC\u4FEE\u6539\u5141\u8BB8\u6BD4\u4F8B\u3002",protocol_saveqr:" {{manifestName}} \u7684\u65B0\u8BBE\u7F6E\u5BFC\u5165\u5B8C\u6210\u3002\u8BF7\u91CD\u542F\u63D2\u4EF6\u8BBE\u7F6E\u9875\u4F7F\u4E4B\u751F\u6548\u3002",protocol_callbacknotsupported:"\u60A8\u7684 uri callback \u6682\u4E0D\u652F\u6301\uFF1A {{params}}",protocol_onedrive_connecting:`\u6B63\u5728\u8FDE\u63A5 OneDrive\u2026\u2026 +If you do not agree, please click the "Do Not Agree" button, and the plugin will not be enabled (Unload).`,syncalgov2_button_agree:"Agree",syncalgov2_button_disagree:"Do Not Agree"};var XU={confirm:"\u786E\u8BA4",disable:"\u5173\u95ED",enable:"\u5F00\u542F",goback:"\u8FD4\u56DE",submit:"\u63D0\u4EA4",sometext:"\u8FD9\u91CC\u6709\u4E00\u6BB5\u6587\u5B57\u3002",syncrun_alreadyrunning:"{{pluginName}} \u6B63\u5904\u4E8E\u6B64\u9636\u6BB5\uFF1A{{syncStatus}}\uFF01\u4E2D\u65AD\u89E6\u53D1 {{newTriggerSource}}\u3002",syncrun_syncingribbon:"{{pluginName}}\uFF1A\u6B63\u5728\u7531 {{triggerSource}} \u89E6\u53D1\u8FD0\u884C",syncrun_step0:"{{current}}/{{maxSteps}} Third-party Sync \u5728\u7A7A\u8DD1\uFF08dry run\uFF09\u6A21\u5F0F\uFF0C\u4E0D\u4F1A\u53D1\u751F\u5B9E\u9645\u7684\u6587\u4EF6\u4EA4\u6362\u3002",syncrun_step1:"{{current}}/{{maxSteps}} Third-party Sync \u51C6\u5907\u540C\u6B65\uFF08{{serviceType}}\uFF09",syncrun_step2:"{{current}}/{{maxSteps}} \u6B63\u5728\u83B7\u53D6\u8FDC\u7AEF\u7684\u5143\u6570\u636E\u548C\u68C0\u67E5\u5BC6\u7801\u3002",syncrun_passworderr:"\u68C0\u67E5\u5BC6\u7801\u65F6\u5019\u51FA\u9519\u3002",syncrun_step3:"{{current}}/{{maxSteps}} \u6B63\u5728\u5904\u7406\u8FDC\u7AEF\u7684\u5143\u6570\u636E\u3002",syncrun_step4:"{{current}}/{{maxSteps}} \u6B63\u5728\u83B7\u53D6\u672C\u5730\u7684\u5143\u6570\u636E\u3002",syncrun_step5:"{{current}}/{{maxSteps}} \u6B63\u5728\u83B7\u53D6\u672C\u5730\u4E0A\u4E00\u6B21\u540C\u6B65\u7684\u5143\u6570\u636E\u3002",syncrun_step6:"{{current}}/{{maxSteps}} \u6B63\u5728\u751F\u6210\u540C\u6B65\u8BA1\u5212\u3002",syncrun_step7:"{{current}}/{{maxSteps}} Third-party Sync \u5F00\u59CB\u53D1\u751F\u6570\u636E\u4EA4\u6362\uFF01",syncrun_step7skip:"{{current}}/{{maxSteps}} Third-party Sync \u5728\u7A7A\u8DD1\u6A21\u5F0F\uFF0C\u8DF3\u8FC7\u5B9E\u9645\u6570\u636E\u4EA4\u6362\u6B65\u9AA4\u3002",syncrun_step8:"{{current}}/{{maxSteps}} Third-party Sync \u5DF2\u5B8C\u6210\u540C\u6B65\uFF01",syncrun_status_preparing:"\u6B63\u5728\u51C6\u5907",syncrun_status_syncing:"\u6B63\u5728\u540C\u6B65",syncrun_status_progress:"\u6B63\u5728\u540C\u6B65 {{current}}/{{total}}",remote_changes_found:"\u68C0\u6D4B\u5230\u8FDC\u7AEF\u53D8\u5316\uFF0C\u5DF2\u5F00\u59CB\u81EA\u52A8\u540C\u6B65\u3002",remote_changes_synced:"\u672A\u68C0\u6D4B\u5230\u8FDC\u7AEF\u53D8\u5316\u3002",syncrun_shortstep0:"0/2 Third-party Sync \u5728\u7A7A\u8DD1\uFF08dry run\uFF09\u6A21\u5F0F\uFF0C\u4E0D\u4F1A\u53D1\u751F\u5B9E\u9645\u7684\u6587\u4EF6\u4EA4\u6362\u3002",syncrun_shortstep1:"1/2 Third-party Sync \u5F00\u59CB\u540C\u6B65\uFF08{{serviceType}}\uFF09",syncrun_shortstep2skip:"2/2 Third-party Sync \u5728\u7A7A\u8DD1\u6A21\u5F0F\uFF0C\u8DF3\u8FC7\u5B9E\u9645\u6570\u636E\u4EA4\u6362\u6B65\u9AA4\u3002",syncrun_shortstep2:"2/2 Third-party Sync \u5DF2\u5B8C\u6210\u540C\u6B65\uFF01",syncrun_shortstep3drydone:"\u7A7A\u8DD1\u6D41\u7A0B\u5DF2\u5B8C\u6210\uFF08\u672A\u4FEE\u6539\u4EFB\u4F55\u6587\u4EF6\uFF09\u3002",syncrun_abort:"{{manifestID}}-{{theDate}}\uFF1A\u4E2D\u65AD\u540C\u6B65\uFF0C\u540C\u6B65\u6765\u6E90={{triggerSource}}\uFF0C\u51FA\u9519\u9636\u6BB5={{syncStatus}}",syncrun_abort_protectmodifypercentage:"\u4E2D\u65AD\u540C\u6B65\uFF01\u60A8\u8BBE\u7F6E\u4E86\u4E0D\u5141\u8BB8 >= {{protectModifyPercentage}}% \u7684\u53D8\u66F4\uFF0C\u4F46\u662F\u73B0\u5728 {{realModifyDeleteCount}}/{{allFilesCount}}={{percent}}% \u7684\u6587\u4EF6\u4F1A\u88AB\u4FEE\u6539\u6216\u5220\u9664\uFF01\u5982\u679C\u60A8\u786E\u8BA4\u8FD9\u6B21\u540C\u6B65\u662F\u60A8\u60F3\u8981\u7684\uFF0C\u90A3\u4E48\u8BF7\u5728\u8BBE\u7F6E\u91CC\u4FEE\u6539\u5141\u8BB8\u6BD4\u4F8B\u3002",protocol_saveqr:" {{manifestName}} \u7684\u65B0\u8BBE\u7F6E\u5BFC\u5165\u5B8C\u6210\u3002\u8BF7\u91CD\u542F\u63D2\u4EF6\u8BBE\u7F6E\u9875\u4F7F\u4E4B\u751F\u6548\u3002",protocol_callbacknotsupported:"\u60A8\u7684 uri callback \u6682\u4E0D\u652F\u6301\uFF1A {{params}}",protocol_onedrive_connecting:`\u6B63\u5728\u8FDE\u63A5 OneDrive\u2026\u2026 \u8BF7\u4E0D\u8981\u5173\u95ED\u6B64\u5F39\u7A97\u3002`,protocol_onedrive_connect_succ_revoke:"\u60A8\u5DF2\u4F5C\u4E3A\u7528\u6237 {{username}} \u8FDE\u63A5\u4E0A\u4E86\u3002\u5982\u679C\u60A8\u60F3\u53D6\u6D88\u8FDE\u63A5\uFF0C\u8BF7\u70B9\u51FB\u6B64\u6309\u94AE\u3002",protocol_onedrive_connect_fail:"OneDrive \u7684\u56DE\u8C03\u8BF7\u6C42\u6709\u70B9\u5F02\u5E38\u3002\u60A8\u662F\u5426\u62D2\u7EDD\u4E86\u9274\u6743\uFF1F",protocol_onedrive_connect_unknown:"\u4E0D\u77E5\u9053\u5982\u4F55\u5904\u7406\u6B64 callback\uFF1A{{params}}",command_startsync:"\u5F00\u59CB\u540C\u6B65\uFF08start sync\uFF09",command_drynrun:"\u5F00\u59CB\u540C\u6B65\uFF08\u7A7A\u8DD1\u6A21\u5F0F\uFF09\uFF08start sync (dry run only)\uFF09",command_exportsyncplans_json:"\u5BFC\u51FA\u540C\u6B65\u8BA1\u5212\u4E3A json \u683C\u5F0F\uFF08export sync plans in json format\uFF09",command_exportsyncplans_1_only_change:"\u5BFC\u51FA\u540C\u6B65\u8BA1\u5212\uFF08\u6700\u8FD1 1 \u6B21\uFF09\uFF08\u4EC5\u4FEE\u6539\u90E8\u5206\uFF09\uFF08export sync plans (latest 1) (change part)\uFF09",command_exportsyncplans_1:"\u5BFC\u51FA\u540C\u6B65\u8BA1\u5212\uFF08\u6700\u8FD1 1 \u6B21\uFF09\uFF08export sync plans (latest 1)\uFF09",command_exportsyncplans_5:"\u5BFC\u51FA\u540C\u6B65\u8BA1\u5212\uFF08\u6700\u8FD1 5 \u6B21\uFF09\uFF08export sync plans (latest 5)\uFF09",command_exportsyncplans_all:"\u5BFC\u51FA\u540C\u6B65\u8BA1\u5212\uFF08\u6240\u6709\uFF09\uFF08export sync plans (all)\uFF09",command_exportlogsindb:"\u4ECE\u6570\u636E\u5E93\u5BFC\u51FA\u7EC8\u7AEF\u65E5\u5FD7\uFF08export logs saved in db\uFF09",statusbar_sync_source_manual:"\u624B\u52A8\uFF1A",statusbar_sync_source_dry:"\u7A7A\u8DD1\uFF1A",statusbar_sync_source_auto:"\u81EA\u52A8\uFF1A",statusbar_sync_source_auto_once_init:"\u542F\u52A8\u65F6\u540C\u6B65\uFF1A",statusbar_sync_source_auto_sync_on_save:"\u4FDD\u5B58\u65F6\u540C\u6B65\uFF1A",statusbar_sync_status_prefix_success:"\u540C\u6B65\u6210\u529F\uFF1A",statusbar_sync_status_prefix_failed:"\u540C\u6B65\u5931\u8D25\uFF1A",statusbar_time_years:"{{time}} \u5E74\u524D",statusbar_time_months:"{{time}} \u6708\u524D",statusbar_time_weeks:"{{time}} \u5468\u524D",statusbar_time_days:"{{time}} \u5929\u524D",statusbar_time_hours:"{{time}} \u5C0F\u65F6\u524D",statusbar_time_minutes:"{{time}} \u5206\u949F\u524D",statusbar_time_lessminute:"1 \u5206\u949F\u5185",statusbar_time_now:"\u521A\u521A",statusbar_syncing:"\u6B63\u5728\u540C\u6B65",statusbar_syncing_manual:"\u624B\u52A8\uFF1A\u6B63\u5728\u540C\u6B65",statusbar_syncing_auto:"\u81EA\u52A8\uFF1A\u6B63\u5728\u540C\u6B65",statusbar_finished_justnow:"\u540C\u6B65\u5B8C\u6210\uFF0C\u521A\u521A",statusbar_lastsync:"{{time}}",statusbar_lastsync_label:"\u65E5\u671F\uFF1A{{date}}",statusbar_lastsync_never:"\u6CA1\u89E6\u53D1\u8FC7\u540C\u6B65",statusbar_lastsync_never_label:"\u6CA1\u89E6\u53D1\u8FC7\u540C\u6B65",modal_password_title:"\u7A0D\u7B49\u4E00\u4E0B\uFF0C\u8BF7\u9605\u8BFB\u4E0B\u6587\uFF1A",modal_password_shortdesc:`\u5982\u679C\u5BC6\u7801\u4E0D\u662F\u7A7A\u7684\uFF0C\u90A3\u4E48\u6587\u4EF6\u4F1A\u5728\u4E0A\u4F20\u4E4B\u524D\uFF0C\u5728\u672C\u5730\u5148\u7528\u6B64\u5BC6\u7801\u52A0\u5BC6\u3002 \u5982\u679C\u5BC6\u7801\u662F\u7A7A\u7684\uFF0C\u90A3\u4E48\u6587\u4EF6\u4F1A\u88AB\u975E\u52A0\u5BC6\u5730\u4E0A\u4F20\u3002`,modal_password_attn1:"\u6CE8\u610F 1/5\uFF1A\u5E93\uFF08Vault\uFF09\u540D\u5B57\u662F\u4E0D\u4F1A\u52A0\u5BC6\u7684\uFF01\u672C\u63D2\u4EF6\u4F1A\u5728\u4E00\u4E9B\u8FDC\u7A0B\u5B58\u50A8\u91CC\u521B\u5EFA\u4E00\u4E2A\u548C\u5E93\u540D\u5B57\u6709\u7740\u540C\u540D\u7684\u6587\u4EF6\u5939\u3002",modal_password_attn2:"\u6CE8\u610F 2/5\uFF1A\u5BC6\u7801\u5728\u672C\u5730\u4E0D\u52A0\u5BC6\u5730\u4FDD\u5B58\uFF01",modal_password_attn3:"\u6CE8\u610F 3/5\uFF1A\u4E00\u4E9B\u5143\u4FE1\u606F\u662F\u6CA1\u6709\u88AB\u52A0\u5BC6\u7684\uFF0C\u6216\u8005\u53EF\u4EE5\u88AB\u8F83\u5BB9\u6613\u5730\u731C\u6D4B\u51FA\u6765\u3002\uFF08\u6587\u4EF6\u5927\u5C0F\u5F88\u63A5\u8FD1\u4E8E\u6CA1\u52A0\u5BC6\u7684\u65F6\u5019\uFF0C\u4E14\u6587\u4EF6\u5939\u53EF\u80FD\u4F1A\u88AB\u5B58\u50A8\u4E3A\u5927\u5C0F\u4E3A 0 byte \u7684\u5BF9\u8C61\u3002\uFF09",modal_password_attn4:"\u6CE8\u610F 4/5\uFF1A\u60A8\u9700\u8981\u786E\u4FDD\u8FDC\u7A0B\u5B58\u50A8\u662F\u201C\u7A7A\u201D\u7684\uFF0C\u6216\u8005\u5DF2\u6709\u6587\u4EF6\u4E5F\u662F\u88AB\u540C\u4E00\u4E2A\u65B0\u5BC6\u7801\u52A0\u5BC6\u7684\uFF1B\u4ECE\u800C\u907F\u514D\u51B2\u7A81\u3002",modal_password_attn5:"\u6CE8\u610F 5/5\uFF1A\u5BC6\u7801\u8D8A\u957F\u8D8A\u597D\u3002",modal_password_secondconfirm:"\u518D\u6B21\u786E\u8BA4\u4FDD\u5B58\u65B0\u5BC6\u7801",modal_password_notice:"\u65B0\u5BC6\u7801\u5DF2\u4FDD\u5B58\uFF01",modal_encryptionmethod_title:"\u7A0D\u7B49\u4E00\u4E0B\uFF0C\u8BF7\u9605\u8BFB\u4E0B\u6587\uFF1A",modal_encryptionmethod_shortdesc:`\u60A8\u6B63\u5728\u4FEE\u6539\u52A0\u5BC6\u65B9\u5F0F\uFF0C\u4F46\u662F\u60A8\u5DF2\u7ECF\u8BBE\u7F6E\u4E86\u5BC6\u7801\u3002 \u4FEE\u6539\u52A0\u5BC6\u65B9\u5F0F\u4E4B\u540E\uFF0C\u60A8\u9700\u8981\u624B\u52A8\u548C\u5B8C\u5168\u5220\u9664\u5728\u8FDC\u7AEF\u7684\u4E4B\u524D\u52A0\u5BC6\u8FC7\u7684\u5E93\u6587\u4EF6\uFF0C\u7136\u540E\u91CD\u65B0\u540C\u6B65\uFF08\u4ECE\u800C\u91CD\u65B0\u4E0A\u4F20\uFF09\u65B0\u7684\u52A0\u5BC6\u6587\u4EF6\u3002`,modal_remotebasedir_title:"\u60A8\u6B63\u5728\u4FEE\u6539\u8FDC\u7AEF\u57FA\u6587\u4EF6\u5939\u8BBE\u7F6E",modal_remotebasedir_shortdesc:`1. \u672C\u63D2\u4EF6\u5E76\u4E0D\u4F1A\u81EA\u52A8\u5728\u8FDC\u7AEF\u628A\u5185\u5BB9\u4ECE\u65E7\u6587\u4EF6\u5939\u79FB\u52A8\u5230\u65B0\u6587\u4EF6\u5939\u3002\u6240\u6709\u5185\u5BB9\u90FD\u4F1A\u91CD\u65B0\u540C\u6B65\u3002 @@ -140,14 +140,14 @@ If you do not agree, please click the "Do Not Agree" button, and the plugin will \xB7 \u5347\u7EA7\u5230\u6B64\u7248\u672C\u540E\uFF0C\u5EFA\u8BAE\u81F3\u5C11\u6267\u884C\u4E00\u6B21\u5B8C\u6574\u540C\u6B65\uFF0C\u4EE5\u786E\u4FDD\u6240\u6709\u6570\u636E\u6B63\u786E\u66F4\u65B0\u3002 \u5982\u679C\u60A8\u540C\u610F\u4F7F\u7528\u672C\u63D2\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u300C\u6211\u540C\u610F\u300D\u6309\u94AE\u3002 -\u5982\u679C\u60A8\u4E0D\u540C\u610F\uFF0C\u8BF7\u70B9\u51FB\u300C\u6211\u4E0D\u540C\u610F\u300D\u6309\u94AE\uFF0C\u63D2\u4EF6\u5C06\u4E0D\u4F1A\u542F\u7528\uFF08Unload\uFF09\u3002`,syncalgov2_button_agree:"\u6211\u540C\u610F",syncalgov2_button_disagree:"\u6211\u4E0D\u540C\u610F"};var Og={en:MU,zh_cn:LU};var Fg=class{constructor(t,n){S(this,"lang");S(this,"saveSettingFunc");this.lang=t,this.saveSettingFunc=n}async changeTo(t){this.lang=t,await this.saveSettingFunc(t)}_get(t){let n=this.lang;this.lang==="auto"&&uE.moment.locale().replace("-","_")in Og?n=uE.moment.locale().replace("-","_"):n="en";let r=Og[n],i=Og.en;return r[t]||i[t]||t}t(t,n){return n===void 0?this._get(t):NU.render(this._get(t),n)}};c();var Ig=require("obsidian");var Bg=class extends Ig.Modal{constructor(n,r,i){super(n);S(this,"result");S(this,"onSubmit");S(this,"i18n");this.i18n=r,this.result=!1,this.onSubmit=i}onOpen(){let{contentEl:n}=this;n.createEl("h2",{text:this.i18n.t("syncalgov2_title")}),this.i18n.t("syncalgov2_texts").split(` -`).forEach(r=>{n.createEl("p").innerHTML=r}),new Ig.Setting(n).addButton(r=>{r.setButtonText(this.i18n.t("syncalgov2_button_agree")),r.onClick(async()=>{this.result=!0,this.close()})}).addButton(r=>{r.setButtonText(this.i18n.t("syncalgov2_button_disagree")),r.onClick(()=>{this.close()})})}onClose(){let{contentEl:n}=this;n.empty(),this.onSubmit(this.result)}};c();var Pg=require("obsidian");var dp=class extends Pg.Modal{constructor(n,r,i,s,o){super(n);S(this,"plugin");S(this,"skipSizeLargerThan");S(this,"sizesGoWrong");S(this,"hasPassword");this.plugin=r,this.skipSizeLargerThan=i,this.sizesGoWrong=s,this.hasPassword=o}onOpen(){let{contentEl:n}=this,r=(s,o)=>this.plugin.i18n.t(s,o);n.createEl("h2",{text:r("modal_sizesconflict_title")}),r("modal_sizesconflict_desc",{thresholdMB:`${this.skipSizeLargerThan/1e3/1e3}`,thresholdBytes:`${this.skipSizeLargerThan}`}).split(` -`).forEach(s=>{n.createEl("p",{text:s})});let i=this.serialize();n.createDiv().createEl("button",{text:r("modal_sizesconflict_copybutton")},s=>{s.onclick=async()=>{await navigator.clipboard.writeText(i),new Pg.Notice(r("modal_sizesconflict_copynotice"))}}),n.createEl("pre",{text:i})}serialize(){return this.sizesGoWrong.map(n=>[n.key,this.hasPassword?`encrypted name: ${n.remoteEncryptedKey}`:void 0,`local ${this.hasPassword?"encrypted ":""}bytes: ${this.hasPassword?n.sizeLocalEnc:n.sizeLocal}`,`remote ${this.hasPassword?"encrypted ":""}bytes: ${this.hasPassword?n.sizeRemoteEnc:n.sizeRemote}`].filter(r=>r!==void 0).join(` +\u5982\u679C\u60A8\u4E0D\u540C\u610F\uFF0C\u8BF7\u70B9\u51FB\u300C\u6211\u4E0D\u540C\u610F\u300D\u6309\u94AE\uFF0C\u63D2\u4EF6\u5C06\u4E0D\u4F1A\u542F\u7528\uFF08Unload\uFF09\u3002`,syncalgov2_button_agree:"\u6211\u540C\u610F",syncalgov2_button_disagree:"\u6211\u4E0D\u540C\u610F"};var Bg={en:YU,zh_cn:XU};var Ig=class{constructor(t,n){C(this,"lang");C(this,"saveSettingFunc");this.lang=t,this.saveSettingFunc=n}async changeTo(t){this.lang=t,await this.saveSettingFunc(t)}_get(t){let n=this.lang;this.lang==="auto"&&dE.moment.locale().replace("-","_")in Bg?n=dE.moment.locale().replace("-","_"):n="en";let r=Bg[n],i=Bg.en;return r[t]||i[t]||t}t(t,n){return n===void 0?this._get(t):KU.render(this._get(t),n)}};c();var Ng=require("obsidian");var Pg=class extends Ng.Modal{constructor(n,r,i){super(n);C(this,"result");C(this,"onSubmit");C(this,"i18n");this.i18n=r,this.result=!1,this.onSubmit=i}onOpen(){let{contentEl:n}=this;n.createEl("h2",{text:this.i18n.t("syncalgov2_title")}),this.i18n.t("syncalgov2_texts").split(` +`).forEach(r=>{let i=createSpan();i.innerHTML=r,n.createEl("p").append(...Array.from(i.childNodes))}),new Ng.Setting(n).addButton(r=>{r.setButtonText(this.i18n.t("syncalgov2_button_agree")),r.onClick(async()=>{this.result=!0,this.close()})}).addButton(r=>{r.setButtonText(this.i18n.t("syncalgov2_button_disagree")),r.onClick(()=>{this.close()})})}onClose(){let{contentEl:n}=this;n.empty(),this.onSubmit(this.result)}};c();var Mg=require("obsidian");var mp=class extends Mg.Modal{constructor(n,r,i,s,o){super(n);C(this,"plugin");C(this,"skipSizeLargerThan");C(this,"sizesGoWrong");C(this,"hasPassword");this.plugin=r,this.skipSizeLargerThan=i,this.sizesGoWrong=s,this.hasPassword=o}onOpen(){let{contentEl:n}=this,r=(s,o)=>this.plugin.i18n.t(s,o);n.createEl("h2",{text:r("modal_sizesconflict_title")}),r("modal_sizesconflict_desc",{thresholdMB:`${this.skipSizeLargerThan/1e3/1e3}`,thresholdBytes:`${this.skipSizeLargerThan}`}).split(` +`).forEach(s=>{n.createEl("p",{text:s})});let i=this.serialize();n.createDiv().createEl("button",{text:r("modal_sizesconflict_copybutton")},s=>{s.onclick=async()=>{await navigator.clipboard.writeText(i),new Mg.Notice(r("modal_sizesconflict_copynotice"))}}),n.createEl("pre",{text:i})}serialize(){return this.sizesGoWrong.map(n=>[n.key,this.hasPassword?`encrypted name: ${n.remoteEncryptedKey}`:void 0,`local ${this.hasPassword?"encrypted ":""}bytes: ${this.hasPassword?n.sizeLocalEnc:n.sizeLocal}`,`remote ${this.hasPassword?"encrypted ":""}bytes: ${this.hasPassword?n.sizeRemoteEnc:n.sizeRemote}`].filter(r=>r!==void 0).join(` `)).join(` -`)}onClose(){let{contentEl:n}=this;n.empty()}};var lE={s3:jh,webdav:sg,onedrive:Po,password:"",serviceType:"s3",debugEnabled:!1,autoRunEveryMilliseconds:-1,initRunAfterMilliseconds:-1,syncOnSaveAfterMilliseconds:-1,syncOnRemoteChangesAfterMilliseconds:-1,agreeToUploadExtraMetadata:!1,concurrency:5,syncConfigDir:!1,syncUnderscoreItems:!1,lang:"auto",logToDB:!1,skipSizeLargerThan:-1,enableStatusBarInfo:void 0,lastSynced:-1,syncTrash:!1,syncBookmarks:!0,syncDirection:"bidirectional",protectModifyPercentage:50,deleteToWhere:"system_trash"},Ng="rotate-ccw",pSe="refresh-ccw",dSe="refresh-ccw-dot",pE="file-text",Lg=class extends Ue.Plugin{constructor(){super(...arguments);S(this,"settings");S(this,"db");S(this,"syncStatus");S(this,"syncStatusText");S(this,"statusBarElement");S(this,"oauth2Info");S(this,"currSyncMsg");S(this,"syncRibbon");S(this,"autoRunIntervalID");S(this,"i18n");S(this,"vaultRandomID");S(this,"isManual");S(this,"isAlreadyRunning");S(this,"syncOnSaveEvent");S(this,"vaultScannerIntervalId");S(this,"syncOnRemoteIntervalID");S(this,"statusBarIntervalID");S(this,"currentTriggerSource");S(this,"shouldSyncBasedOnSyncPlan",async n=>{for(let r in n.mixedStates){let i=n.mixedStates[r];if(i.existLocal&&i.existRemote&&i.mtimeLocal>i.mtimeRemote)return!0}return!1})}async syncRun(n="manual"){var d;this.isManual=n==="manual",this.isAlreadyRunning=!1,this.currentTriggerSource=n;let r=this.settings.debugEnabled?8:2;await this.createTrashIfDoesNotExist();let i=(f,m)=>this.i18n.t(f,m),s=(f,m,g)=>{(f==="manual"||f==="dry")&&new Ue.Notice(m,g)},o=async(f,m)=>{if(!(f!=="manual"&&f!=="dry"))if(this.settings.debugEnabled)switch(m){case 0:f==="dry"&&s(f,i("syncrun_step0",{current:"0",maxSteps:"8"}),0);break;case 1:s(f,i("syncrun_step1",{current:"1",maxSteps:"8",serviceType:this.settings.serviceType}));break;case 2:case 3:case 4:case 5:case 6:s(f,i(`syncrun_step${m}`,{current:`${m}`,maxSteps:"8"}));break;case 7:f==="dry"?s(f,i("syncrun_step7skip",{current:"7",maxSteps:"8"})):s(f,i("syncrun_step7",{current:"7",maxSteps:"8"}));break;case 8:s(f,i("syncrun_step8",{current:"8",maxSteps:"8"}));break}else switch(m){case 0:f==="dry"&&s(f,i("syncrun_shortstep0"),0);break;case 1:s(f,i("syncrun_shortstep1",{serviceType:this.settings.serviceType}));break;case 7:f==="dry"&&s(f,i("syncrun_shortstep2skip"));break;case 8:s(f,i("syncrun_shortstep2")),f==="dry"&&s(f,i("syncrun_shortstep3drydone"));break}},a=async(f,m,g)=>{m===1?this.updateSyncStatus("syncing"):m===8&&(g?this.updateSyncStatus("idle"):this.updateSyncStatus("idle"))},l=async(f,m)=>{},u=async(f,m,g,x,v)=>{this.settings.enableStatusBarInfo&&this.setCurrSyncMsg(m,g,x)};if(this.syncStatus!=="idle"){n=="manual"&&(this.settings.debugEnabled?new Ue.Notice(i("syncrun_debug_alreadyrunning",{stage:this.syncStatus})):(new Ue.Notice("1/"+i("syncrun_alreadyrunning",{maxSteps:r})),this.isAlreadyRunning=!0),oe.debug(this.manifest.name," already running in stage: ",this.syncStatus),this.currSyncMsg!==void 0&&this.currSyncMsg!==""&&oe.debug(this.currSyncMsg));return}let p=!0;try{this.setSyncIcon(!0,n),n==="dry"&&o(n,0),o(n,1),a(n,1,!0);let f=this,m=this.getRemoteClient(f);await o(n,2);let g=await m.listFromRemote();await o(n,3);let x=await tE(g.Contents,this.settings.password);await o(n,5);let v=await Tg(g.Contents,this.db,this.vaultRandomID,m.serviceType,this.settings.password);await o(n,6);let _=this.app.vault.getAllLoadedFiles(),w=await Sg(this.app.vault,this.manifest.id,this.settings.syncTrash);await o(n,4);let D=await cg(this.db,this.vaultRandomID);await o(n,7);let{plan:C,sortedKeys:A,deletions:k,sizesGoWrong:I}=await nE(v,_,w,D,m.serviceType,n,this.app.vault,this.settings.syncConfigDir,this.settings.syncTrash,this.settings.syncBookmarks,this.app.vault.configDir,this.settings.syncUnderscoreItems,this.settings.skipSizeLargerThan,this.settings.password,(d=this.settings.syncDirection)!=null?d:"bidirectional");await this.doActualSyncV3(m,C,A,I,k,f),this.settings.lastSynced=Date.now(),await this.saveSettings(),this.updateSyncStatus("idle"),o(n,8),a(n,8,!0),this.setSyncIcon(!1)}catch(f){p=!1;let m=i("syncrun_abort",{manifestID:this.manifest.id,theDate:`${Date.now()}`,triggerSource:n,syncStatus:this.syncStatus});if(oe.error(m),oe.error(f),s(n,m,10*1e3),f instanceof Pi)for(let g of f.errors)s(n,g.message,10*1e3);else s(n,f.message,10*1e3);this.updateSyncStatus("idle"),this.setSyncIcon(!1)}}async createTrashIfDoesNotExist(){this.settings.syncTrash&&await this.createTrashFolderIfDoesNotExist(this.app.vault)}async doActualSyncV3(n,r,i,s,o,a){let l=(p,d)=>this.i18n.t(p,d),u=n.serviceType==="webdav"?1:this.settings.concurrency;return FU(n,this.db,this.vaultRandomID,this.app.vault,r,i,s,p=>a.trash(p),this.settings.password,this.settings.lastSynced,u,p=>{new dp(a.app,a,this.settings.skipSizeLargerThan,p,l,async()=>{await a.saveSettings()}).open()},void 0,this.settings.protectModifyPercentage,p=>{let d=p.split("|");if(d[0]==="syncrun_abort_protectmodifypercentage"){let[f,m,g,x,v]=d,_=l("syncrun_abort_protectmodifypercentage",{protectModifyPercentage:parseInt(m),realModifyDeleteCount:parseInt(g),allFilesCount:parseInt(x),percent:v});new Ue.Notice(_,0)}})}async doActualSync(n,r,i,s,o,a,l,u){let p=(f,m)=>this.i18n.t(f,m),d=n.serviceType==="webdav"?1:this.settings.concurrency;return doActualSync(n,this.db,this.vaultRandomID,this.app.vault,r,i,s,o,a,l,f=>u.trash(f),this.settings.password,this.settings.lastSynced,d,f=>{new dp(u.app,u,this.settings.skipSizeLargerThan,f,this.settings.password!=="").open()},(f,m)=>u.updateStatusBar({i:f,total:m}),this.settings.protectModifyPercentage,f=>{let m=f.split("|");if(m[0]==="syncrun_abort_protectmodifypercentage"){let[g,x,v,_,w]=m,D=p("syncrun_abort_protectmodifypercentage",{protectModifyPercentage:parseInt(x),realModifyDeleteCount:parseInt(v),allFilesCount:parseInt(_),percent:w});new Ue.Notice(D,0)}})}async getSyncPlan(n,r,i,s,o,a,l){var u;return await getSyncPlan(n,r,i,s.deletions,o,a.serviceType,l,this.app.vault,this.settings.syncConfigDir,this.settings.syncTrash,this.settings.syncBookmarks,this.app.vault.configDir,this.settings.syncUnderscoreItems,this.settings.skipSizeLargerThan,this.settings.password,(u=this.settings.syncDirection)!=null?u:"bidirectional")}async getLocalHistory(){return await v$(this.db,this.vaultRandomID)}async fetchMetadataFromRemote(n,r){if(n===void 0)return oe.debug("no metadata file, so no fetch"),{deletions:[]};let i=await r.downloadFromRemote(n.key,this.app.vault,n.mtimeRemote,this.settings.password,n.remoteEncryptedKey,!0);return deserializeMetadataOnRemote(i)}getRemoteClient(n){return new pi(this.settings.serviceType,this.settings.s3,this.settings.webdav,this.settings.onedrive,this.app.vault.getName(),()=>n.saveSettings())}updateSyncStatus(n){this.syncStatus=n,this.updateStatusBar()}setSyncIcon(n,r){this.syncRibbon!==void 0&&(n?((0,Ue.setIcon)(this.syncRibbon,pSe),this.syncRibbon.setAttribute("aria-label",this.i18n.t("syncrun_syncingribbon",{pluginName:this.manifest.name,triggerSource:r}))):((0,Ue.setIcon)(this.syncRibbon,Ng),this.syncRibbon.setAttribute("aria-label",this.manifest.name)))}getStatusBarShortMsgFromSyncSource(n){if(n===void 0)return"";switch(n){case"manual":return this.i18n.t("statusbar_sync_source_manual");case"dry":return this.i18n.t("statusbar_sync_source_dry");case"auto":return this.i18n.t("statusbar_sync_source_auto");case"autoOnceInit":return this.i18n.t("statusbar_sync_source_auto_once_init");default:return""}}setCurrSyncMsg(n,r,i){if(this.statusBarElement===void 0)return;let s=`${r}`.length,o=`${n}`.padStart(s,"0"),l=this.getStatusBarShortMsgFromSyncSource(this.currentTriggerSource)+this.i18n.t("syncrun_status_progress",{current:o,total:r.toString()});this.currSyncMsg=l,i&&this.statusBarElement.setAttribute("aria-label",`${l} - ${i}`),this.statusBarElement.setText(l)}updateLastSyncMsg(n){if(this.statusBarElement===void 0)return;let r,i,s=n!==void 0?n:this.settings.lastSynced;if(s!==void 0&&s>0){let o=Date.now()-s;Math.floor(o/1e3)<60?r=this.i18n.t("statusbar_time_now"):r=H8(this.i18n,s).lastSyncMsg,i=r}else r=this.i18n.t("statusbar_lastsync_never"),i=this.i18n.t("statusbar_lastsync_never_label");this.statusBarElement.setText(r),this.statusBarElement.setAttribute("aria-label",i)}updateStatusBar(n){this.statusBarElement!==void 0&&this.settings.enableStatusBarInfo===!0&&(this.syncStatus==="syncing"&&n!==void 0?this.setCurrSyncMsg(n.i,n.total):this.syncStatus==="idle"&&this.updateLastSyncMsg(this.settings.lastSynced))}async onload(){this.oauth2Info={verifier:"",helperModal:void 0,authSetting:void 0,revokeAuthSetting:void 0},this.currSyncMsg="",await this.loadSettings(),await this.checkIfPresetRulesFollowed(),this.i18n=new Fg(this.settings.lang,async s=>{this.settings.lang=s,await this.saveSettings()});let n=(s,o)=>this.i18n.t(s,o);this.settings.debugEnabled&&oe.setLevel("debug"),await this.checkIfOauthExpires();let r=await this.getVaultRandomIDFromOldConfigFile();this.tryToAddIgnoreFile();let i=this.getVaultBasePath();try{await this.prepareDBAndVaultRandomID(i,r)}catch(s){throw new Ue.Notice(s.message,10*1e3),s}this.addOutputToDBIfSet(),this.enableAutoClearOutputToDBHistIfSet(),this.enableAutoClearSyncPlanHist(),this.registerEvent(this.app.vault.on("delete",async s=>{await insertDeleteRecordByVault(this.db,s,this.vaultRandomID)})),this.registerEvent(this.app.vault.on("rename",async(s,o)=>{await insertRenameRecordByVault(this.db,s,o,this.vaultRandomID)})),this.registerObsidianProtocolHandler(Pp,async s=>{var a,l,u;let o=og(s,this.app.vault.getName());if(o.status==="error")new Ue.Notice(o.message);else{let p=(0,Mg.default)(o.result);this.settings={...this.settings,...p,s3:{...this.settings.s3,...(a=p==null?void 0:p.s3)!=null?a:{}},webdav:{...this.settings.webdav,...(l=p==null?void 0:p.webdav)!=null?l:{}},onedrive:{...this.settings.onedrive,...(u=p==null?void 0:p.onedrive)!=null?u:{}}},this.saveSettings(),new Ue.Notice(n("protocol_saveqr",{manifestName:this.manifest.name}))}}),this.registerObsidianProtocolHandler(VC,async s=>{new Ue.Notice(n("protocol_callbacknotsupported",{params:JSON.stringify(s)}))}),this.registerObsidianProtocolHandler(Np,async s=>{var o,a;try{if(s.code!==void 0){if(!this.oauth2Info.verifier)throw Error("OneDrive auth verifier is missing. Please restart auth.");this.oauth2Info.helperModal!==void 0&&(this.oauth2Info.helperModal.contentEl.empty(),n("protocol_onedrive_connecting").split(` -`).forEach(f=>{this.oauth2Info.helperModal.contentEl.createEl("p",{text:f})}));let l=await r$(this.settings.onedrive.clientID,this.settings.onedrive.authority,s.code,this.oauth2Info.verifier);if(l.error!==void 0){let f=l.error_description||JSON.stringify(l);throw Error(`Azure API \u9519\u8BEF: ${f}`)}let u=this;await i$(this.settings.onedrive,l,()=>u.saveSettings());let p=new pi("onedrive",void 0,void 0,this.settings.onedrive,this.app.vault.getName(),()=>u.saveSettings());this.settings.onedrive.username=await p.getUser(),await u.saveSettings(),this.oauth2Info.verifier="",(o=this.oauth2Info.helperModal)==null||o.close(),this.oauth2Info.helperModal=void 0;let d=this.settings.onedrive.username!=="";this.oauth2Info.authSetting&&this.oauth2Info.authSetting.settingEl.toggleClass("tp-sync-auth-hidden",d),this.oauth2Info.authSetting=void 0,(a=this.oauth2Info.revokeAuthSetting)==null||a.setDesc(n("protocol_onedrive_connect_succ_revoke",{username:this.settings.onedrive.username})),this.oauth2Info.revokeAuthSetting&&this.oauth2Info.revokeAuthSetting.settingEl.toggleClass("tp-sync-revoke-hidden",!d),this.oauth2Info.revokeAuthSetting=void 0,new Ue.Notice(n("protocol_onedrive_connect_succ_revoke",{username:this.settings.onedrive.username}))}else throw new Ue.Notice(n("protocol_onedrive_connect_fail")),Error(n("protocol_onedrive_connect_unknown",{params:JSON.stringify(s)}))}catch(l){console.error("OneDrive auth protocol handler error:",l),this.oauth2Info.helperModal&&(this.oauth2Info.helperModal.contentEl.empty(),this.oauth2Info.helperModal.contentEl.createEl("p",{text:"\u9274\u6743\u5931\u8D25"}),this.oauth2Info.helperModal.contentEl.createEl("p",{text:l.message||"\u672A\u77E5\u9519\u8BEF",cls:"onedrive-auth-error"})),this.oauth2Info.verifier="",this.oauth2Info.authSetting=void 0,this.oauth2Info.revokeAuthSetting=void 0}}),this.syncRibbon=this.addRibbonIcon(Ng,`${this.manifest.name}`,async()=>this.syncRun("manual")),this.addCommand({id:"start-sync",name:n("command_startsync"),icon:Ng,callback:async()=>{this.syncRun("manual")}}),this.addCommand({id:"start-sync-dry-run",name:n("command_drynrun"),icon:Ng,callback:async()=>{this.syncRun("dry")}}),this.addCommand({id:"export-sync-plans-json",name:n("command_exportsyncplans_json"),icon:pE,callback:async()=>{await kc(this.db,this.app.vault,this.vaultRandomID,"json"),new Ue.Notice(n("settings_syncplans_notice"))}}),this.addCommand({id:"export-sync-plans-table",name:n("command_exportsyncplans_table"),icon:pE,callback:async()=>{await kc(this.db,this.app.vault,this.vaultRandomID,"table"),new Ue.Notice(n("settings_syncplans_notice"))}}),this.addCommand({id:"export-logs-in-db",name:n("command_exportlogsindb"),icon:pE,callback:async()=>{await lg(this.db,this.app.vault,this.vaultRandomID),new Ue.Notice(n("settings_logtodbexport_notice"))}}),this.addCommand({id:"get-sync-status",name:n("command_syncstatus"),icon:dSe,callback:()=>new Ue.Notice(this.syncStatusText)}),this.addSettingTab(new kg(this.app,this)),this.settings.enableStatusBarInfo===void 0&&(this.settings.enableStatusBarInfo=!Ue.Platform.isMobile),this.saveSettings(),this.settings.agreeToUploadExtraMetadata?this.enableFeaturesAfterAgreement():new Bg(this.app,this.i18n,s=>{s?(this.settings.agreeToUploadExtraMetadata=!0,this.saveSettings(),this.enableFeaturesAfterAgreement()):this.unload()}).open()}enableFeaturesAfterAgreement(){this.enableAutoSyncIfSet(),this.enableInitSyncIfSet(),this.toggleSyncOnRemote(!0),this.toggleSyncOnSave(!0),this.toggleStatusBar(!0),this.toggleStatusText(!0),this.updateSyncStatus("idle")}async onunload(){this.syncRibbon=void 0,this.oauth2Info!==void 0&&(this.oauth2Info.helperModal=void 0,this.oauth2Info=void 0),this.toggleSyncOnSave(!1),this.toggleSyncOnRemote(!1),this.toggleStatusText(!1),this.toggleStatusBar(!1)}async loadSettings(){let n=null;try{n=await this.loadData()}catch(r){console.warn("Failed to load settings, using defaults:",r),n=null}(!n||typeof n!="object")&&(console.log("No existing settings found, using default configuration"),n={}),this.settings=Object.assign({},(0,Mg.default)(lE),pg(n)),this.settings.onedrive.clientID===""&&(this.settings.onedrive.clientID=lE.onedrive.clientID),this.settings.onedrive.authority===""&&(this.settings.onedrive.authority=lE.onedrive.authority),this.settings.onedrive.remoteBaseDir===void 0&&(this.settings.onedrive.remoteBaseDir=""),this.settings.webdav.manualRecursive===void 0&&(this.settings.webdav.manualRecursive=!1),this.settings.webdav.depth===void 0&&(this.settings.webdav.depth="auto_unknown"),this.settings.webdav.remoteBaseDir===void 0&&(this.settings.webdav.remoteBaseDir=""),this.settings.s3.partsConcurrency===void 0&&(this.settings.s3.partsConcurrency=20),this.settings.s3.forcePathStyle===void 0&&(this.settings.s3.forcePathStyle=!1),this.settings.s3.disableS3MetadataSync==null&&(this.settings.s3.disableS3MetadataSync=!1),this.settings.deleteToWhere===void 0&&(this.settings.deleteToWhere="system_trash")}async checkIfPresetRulesFollowed(){T$(this.settings).changed&&await this.saveSettings()}async saveSettings(){await this.saveData(C$(this.settings))}async checkIfOauthExpires(){let n=!1,r=Date.now();this.settings.onedrive.refreshToken!==""&&this.settings.onedrive.credentialsShouldBeDeletedAtTime===void 0&&(this.settings.onedrive.credentialsShouldBeDeletedAtTime=r+1e3*60*60*24*30,n=!0);let i=!1;this.settings.onedrive.refreshToken!==""&&r>=this.settings.onedrive.credentialsShouldBeDeletedAtTime&&(i=!0,this.settings.onedrive=(0,Mg.default)(Po),n=!0),n&&await this.saveSettings(),i&&new Ue.Notice(`${this.manifest.name}: You haven't manually auth OneDrive for a while, you need to re-auth it again.`,6e3)}async getVaultRandomIDFromOldConfigFile(){let n="";return this.settings.vaultRandomID!==void 0&&(this.settings.vaultRandomID!==""&&(n=this.settings.vaultRandomID),delete this.settings.vaultRandomID,await this.saveSettings()),n}async trash(n){this.settings.deleteToWhere==="obsidian_trash"?await this.app.vault.adapter.trashLocal(n):await this.app.vault.adapter.trashSystem(n)||await this.app.vault.adapter.trashLocal(n)}getVaultBasePath(){return this.app.vault.adapter instanceof Ue.FileSystemAdapter?this.app.vault.adapter.getBasePath().split("?")[0]:this.app.vault.adapter.getResourcePath("").split("?")[0]}async prepareDBAndVaultRandomID(n,r){let{db:i,vaultRandomID:s}=await g$(n,r);this.db=i,this.vaultRandomID=s}toggleStatusText(n){this.statusBarIntervalID!==void 0&&(window.clearInterval(this.statusBarIntervalID),this.statusBarIntervalID=void 0),n&&(this.statusBarIntervalID=window.setInterval(async()=>{this.syncStatus!=="syncing"&&this.updateStatusBar()},3e4),this.updateStatusBar())}toggleStatusBar(n){var i;(i=this.statusBarElement)==null||i.remove();let r=document.getElementsByClassName("status-bar")[0];if(r&&(r.removeClass("third-party-sync-show-status-bar"),r.style.marginBottom="0px",Array.from(r.children).forEach(s=>{s.removeClass("third-party-sync-hidden")}),n&&this.settings.enableStatusBarInfo)){if(Ue.Platform.isMobile&&(r.addClass("third-party-sync-show-status-bar"),Ue.Platform.isPhone)){let s=document.getElementsByClassName("mobile-navbar")[0],o=window.getComputedStyle(s).getPropertyValue("height");r.style.marginBottom=o}this.statusBarElement=this.addStatusBarItem(),this.statusBarElement.createEl("span"),this.statusBarElement.setAttribute("data-tooltip-position","top"),this.updateStatusBar()}}async toggleSyncOnRemote(n){if(this.syncOnRemoteIntervalID!==void 0&&(window.clearInterval(this.syncOnRemoteIntervalID),this.syncOnRemoteIntervalID=void 0),n===!1||this.settings.syncOnRemoteChangesAfterMilliseconds===-1)return;let r=!1,i=async()=>{if(!(this.syncStatus!=="idle"||r)){r=!0;try{let s=this.getRemoteClient(this),o=await s.listFromRemote(),a=await Tg(o.Contents,this.db,this.vaultRandomID,s.serviceType,this.settings.password),l=await cg(this.db,this.vaultRandomID),u=new Map(l.map(d=>[d.key,d])),p=!1;for(let d of a){if(!d.key)continue;let f=u.get(d.key);if(!f||f.mtime!==d.mtimeRemote){p=!0;break}}if(!p){for(let d of l)if(!a.some(m=>m.key===d.key)){p=!0;break}}if(p)return oe.debug("Sync on Remote ran | Remote changes detected"),this.syncRun("auto"),!0}catch(s){oe.debug("Sync on Remote check failed:",s)}finally{r=!1}}};if(Ue.Platform.isMobileApp){let s=await i();new Ue.Notice(s===!0?this.i18n.t("remote_changes_found"):this.i18n.t("remote_changes_synced"))}this.syncOnRemoteIntervalID=window.setInterval(i,this.settings.syncOnRemoteChangesAfterMilliseconds)}async toggleSyncOnSave(n){let r=!1;if(this.syncOnSaveEvent!==void 0&&(this.app.vault.offref(this.syncOnSaveEvent),this.syncOnSaveEvent=void 0),this.vaultScannerIntervalId!==void 0&&(window.clearInterval(this.vaultScannerIntervalId),this.vaultScannerIntervalId=void 0),n===!1||this.settings.syncOnSaveAfterMilliseconds===-1)return;this.syncOnSaveEvent=this.app.vault.on("modify",()=>{this.syncStatus!=="idle"||r||(r=!0,oe.debug(`Scheduled a sync run for ${this.settings.syncOnSaveAfterMilliseconds} milliseconds later`),setTimeout(async()=>{oe.debug("Sync on save ran"),await this.syncRun("auto"),r=!1},this.settings.syncOnSaveAfterMilliseconds))});let i=async()=>{if(this.syncStatus!=="idle"||r||!this.settings.syncConfigDir)return;oe.debug("Scanning config directory for changes");let s=await Sg(this.app.vault,this.manifest.id,this.settings.syncTrash);for(let o=0;othis.settings.lastSynced){oe.debug("Unsynced config file found: ",a.key),r=!0,oe.debug(`Scheduled a sync run for ${this.settings.syncOnSaveAfterMilliseconds} milliseconds later`),setTimeout(async()=>{oe.debug("Sync on save ran"),await this.syncRun("auto"),r=!1},this.settings.syncOnSaveAfterMilliseconds);break}}};this.vaultScannerIntervalId=window.setInterval(i,3e4)}async getMetadataMtime(){return this.settings.lastSynced}async getSyncPlan2(){var p;await this.createTrashIfDoesNotExist();let n=this.getRemoteClient(this),r=await n.listFromRemote(),i=await tE(r.Contents,this.settings.password),s=await Tg(r.Contents,this.db,this.vaultRandomID,n.serviceType,this.settings.password),o=this.app.vault.getAllLoadedFiles(),a=await Sg(this.app.vault,this.manifest.id,this.settings.syncTrash),l=await cg(this.db,this.vaultRandomID),{plan:u}=await nE(s,o,a,l,n.serviceType,"auto",this.app.vault,this.settings.syncConfigDir,this.settings.syncTrash,this.settings.syncBookmarks,this.app.vault.configDir,this.settings.syncUnderscoreItems,this.settings.skipSizeLargerThan,this.settings.password,(p=this.settings.syncDirection)!=null?p:"bidirectional");return u}enableAutoSyncIfSet(){this.settings.autoRunEveryMilliseconds!==void 0&&this.settings.autoRunEveryMilliseconds!==null&&this.settings.autoRunEveryMilliseconds>0&&this.app.workspace.onLayoutReady(()=>{let n=window.setInterval(()=>{this.syncRun("auto")},this.settings.autoRunEveryMilliseconds);this.autoRunIntervalID=n,this.registerInterval(n)})}enableInitSyncIfSet(){this.settings.initRunAfterMilliseconds!==void 0&&this.settings.initRunAfterMilliseconds!==null&&this.settings.initRunAfterMilliseconds>0&&this.app.workspace.onLayoutReady(()=>{window.setTimeout(()=>{this.syncRun("autoOnceInit")},this.settings.initRunAfterMilliseconds)})}async tryToAddIgnoreFile(){let n=this.manifest.dir;if(!await this.app.vault.adapter.exists(n))return;let i=`${n}/.gitignore`,s=await this.app.vault.adapter.exists(i),o=`data.json -`;try{s||this.app.vault.adapter.write(i,o)}catch(a){}}addOutputToDBIfSet(){this.settings.logToDB&&Nh((...n)=>{ug(this.db,this.vaultRandomID,...n)})}enableAutoClearOutputToDBHistIfSet(){this.app.workspace.onLayoutReady(()=>{window.setTimeout(()=>{this.settings.logToDB&&ep(this.db)},45e3);let i=window.setInterval(()=>{this.settings.logToDB&&ep(this.db)},3e5);this.registerInterval(i)})}enableAutoClearSyncPlanHist(){this.app.workspace.onLayoutReady(()=>{window.setTimeout(()=>{$w(this.db)},45e3);let i=window.setInterval(()=>{$w(this.db)},3e5);this.registerInterval(i)})}async createTrashFolderIfDoesNotExist(n){await n.adapter.stat(".trash")==null&&await n.adapter.mkdir(".trash")}}; +`)}onClose(){let{contentEl:n}=this;n.empty()}};var fE={s3:qh,webdav:ag,onedrive:Lo,password:"",serviceType:"s3",debugEnabled:!1,autoRunEveryMilliseconds:-1,initRunAfterMilliseconds:-1,syncOnSaveAfterMilliseconds:-1,syncOnRemoteChangesAfterMilliseconds:-1,agreeToUploadExtraMetadata:!1,concurrency:5,syncConfigDir:!1,syncUnderscoreItems:!1,lang:"auto",logToDB:!1,skipSizeLargerThan:-1,enableStatusBarInfo:void 0,lastSynced:-1,syncTrash:!1,syncBookmarks:!0,syncDirection:"bidirectional",protectModifyPercentage:50,deleteToWhere:"system_trash"},Lg="rotate-ccw",_Se="refresh-ccw",wSe="refresh-ccw-dot",mE="file-text",Ug=class extends qe.Plugin{constructor(){super(...arguments);C(this,"settings");C(this,"db");C(this,"syncStatus");C(this,"syncStatusText");C(this,"statusBarElement");C(this,"oauth2Info");C(this,"currSyncMsg");C(this,"syncRibbon");C(this,"autoRunIntervalID");C(this,"i18n");C(this,"vaultRandomID");C(this,"isManual");C(this,"isAlreadyRunning");C(this,"syncOnSaveEvent");C(this,"vaultScannerIntervalId");C(this,"syncOnRemoteIntervalID");C(this,"statusBarIntervalID");C(this,"currentTriggerSource");C(this,"shouldSyncBasedOnSyncPlan",async n=>{for(let r in n.mixedStates){let i=n.mixedStates[r];if(i.existLocal&&i.existRemote&&i.mtimeLocal>i.mtimeRemote)return!0}return!1})}async syncRun(n="manual"){var d;this.isManual=n==="manual",this.isAlreadyRunning=!1,this.currentTriggerSource=n;let r=this.settings.debugEnabled?8:2;await this.createTrashIfDoesNotExist();let i=(f,m)=>this.i18n.t(f,m),s=(f,m,g)=>{(f==="manual"||f==="dry")&&new qe.Notice(m,g)},o=async(f,m)=>{if(!(f!=="manual"&&f!=="dry"))if(this.settings.debugEnabled)switch(m){case 0:f==="dry"&&s(f,i("syncrun_step0",{current:"0",maxSteps:"8"}),0);break;case 1:s(f,i("syncrun_step1",{current:"1",maxSteps:"8",serviceType:this.settings.serviceType}));break;case 2:case 3:case 4:case 5:case 6:s(f,i(`syncrun_step${m}`,{current:`${m}`,maxSteps:"8"}));break;case 7:f==="dry"?s(f,i("syncrun_step7skip",{current:"7",maxSteps:"8"})):s(f,i("syncrun_step7",{current:"7",maxSteps:"8"}));break;case 8:s(f,i("syncrun_step8",{current:"8",maxSteps:"8"}));break}else switch(m){case 0:f==="dry"&&s(f,i("syncrun_shortstep0"),0);break;case 1:s(f,i("syncrun_shortstep1",{serviceType:this.settings.serviceType}));break;case 7:f==="dry"&&s(f,i("syncrun_shortstep2skip"));break;case 8:s(f,i("syncrun_shortstep2")),f==="dry"&&s(f,i("syncrun_shortstep3drydone"));break}},a=async(f,m,g)=>{m===1?this.updateSyncStatus("syncing"):m===8&&(g?this.updateSyncStatus("idle"):this.updateSyncStatus("idle"))},l=async(f,m)=>{},u=async(f,m,g,x,v)=>{this.settings.enableStatusBarInfo&&this.setCurrSyncMsg(m,g,x)};if(this.syncStatus!=="idle"){n=="manual"&&(this.settings.debugEnabled?new qe.Notice(i("syncrun_debug_alreadyrunning",{stage:this.syncStatus})):(new qe.Notice("1/"+i("syncrun_alreadyrunning",{maxSteps:r})),this.isAlreadyRunning=!0),se.debug(this.manifest.name," already running in stage: ",this.syncStatus),this.currSyncMsg!==void 0&&this.currSyncMsg!==""&&se.debug(this.currSyncMsg));return}let p=!0;try{this.setSyncIcon(!0,n),n==="dry"&&o(n,0),o(n,1),a(n,1,!0);let f=this,m=this.getRemoteClient(f);await o(n,2);let g=await m.listFromRemote();await o(n,3);let x=await iE(g.Contents,this.settings.password);await o(n,5);let v=await Rg(g.Contents,this.db,this.vaultRandomID,m.serviceType,this.settings.password);await o(n,6);let _=this.app.vault.getAllLoadedFiles(),w=await Tg(this.app.vault,this.manifest.id,this.settings.syncTrash);await o(n,4);let E=await lg(this.db,this.vaultRandomID);await o(n,7);let{plan:S,sortedKeys:A,deletions:k,sizesGoWrong:I}=await sE(v,_,w,E,m.serviceType,n,this.app.vault,this.settings.syncConfigDir,this.settings.syncTrash,this.settings.syncBookmarks,this.app.vault.configDir,this.settings.syncUnderscoreItems,this.settings.skipSizeLargerThan,this.settings.password,(d=this.settings.syncDirection)!=null?d:"bidirectional");await this.doActualSyncV3(m,S,A,I,k,f),this.settings.lastSynced=Date.now(),await this.saveSettings(),this.updateSyncStatus("idle"),o(n,8),a(n,8,!0),this.setSyncIcon(!1)}catch(f){p=!1;let m=i("syncrun_abort",{manifestID:this.manifest.id,theDate:`${Date.now()}`,triggerSource:n,syncStatus:this.syncStatus});if(se.error(m),se.error(f),s(n,m,10*1e3),f instanceof ci)for(let g of f.errors)s(n,g.message,10*1e3);else s(n,f.message,10*1e3);this.updateSyncStatus("idle"),this.setSyncIcon(!1)}}async createTrashIfDoesNotExist(){this.settings.syncTrash&&await this.createTrashFolderIfDoesNotExist(this.app.vault)}async doActualSyncV3(n,r,i,s,o,a){let l=(p,d)=>this.i18n.t(p,d),u=n.serviceType==="webdav"?1:this.settings.concurrency;return UU(n,this.db,this.vaultRandomID,this.app.vault,r,i,s,p=>a.trash(p),this.settings.password,this.settings.lastSynced,u,p=>{new mp(a.app,a,this.settings.skipSizeLargerThan,p,this.settings.password!=="").open()},void 0,this.settings.protectModifyPercentage,p=>{let d=p.split("|");if(d[0]==="syncrun_abort_protectmodifypercentage"){let[f,m,g,x,v]=d,_=l("syncrun_abort_protectmodifypercentage",{protectModifyPercentage:parseInt(m),realModifyDeleteCount:parseInt(g),allFilesCount:parseInt(x),percent:v});new qe.Notice(_,0)}})}async doActualSync(n,r,i,s,o,a,l,u){let p=(f,m)=>this.i18n.t(f,m),d=n.serviceType==="webdav"?1:this.settings.concurrency;return GU(n,this.db,this.vaultRandomID,this.app.vault,r,i,s,o,a,l,f=>u.trash(f),this.settings.password,this.settings.lastSynced,d,f=>{new mp(u.app,u,this.settings.skipSizeLargerThan,f,this.settings.password!=="").open()},(f,m)=>u.updateStatusBar({i:f,total:m}),this.settings.protectModifyPercentage,f=>{let m=f.split("|");if(m[0]==="syncrun_abort_protectmodifypercentage"){let[g,x,v,_,w]=m,E=p("syncrun_abort_protectmodifypercentage",{protectModifyPercentage:parseInt(x),realModifyDeleteCount:parseInt(v),allFilesCount:parseInt(_),percent:w});new qe.Notice(E,0)}})}async getSyncPlan(n,r,i,s,o,a,l){var u;return await jU(n,r,i,s.deletions,o,a.serviceType,l,this.app.vault,this.settings.syncConfigDir,this.settings.syncTrash,this.settings.syncBookmarks,this.app.vault.configDir,this.settings.syncUnderscoreItems,this.settings.skipSizeLargerThan,this.settings.password,(u=this.settings.syncDirection)!=null?u:"bidirectional")}async getLocalHistory(){return await w$(this.db,this.vaultRandomID)}async fetchMetadataFromRemote(n,r){if(n===void 0)return se.debug("no metadata file, so no fetch"),{deletions:[]};let i=await r.downloadFromRemote(n.key,this.app.vault,n.mtimeRemote,this.settings.password,n.remoteEncryptedKey,!0);return Ww(i)}getRemoteClient(n){return new fi(this.settings.serviceType,this.settings.s3,this.settings.webdav,this.settings.onedrive,this.app.vault.getName(),()=>n.saveSettings())}updateSyncStatus(n){this.syncStatus=n,this.updateStatusBar()}setSyncIcon(n,r){this.syncRibbon!==void 0&&(n?((0,qe.setIcon)(this.syncRibbon,_Se),this.syncRibbon.setAttribute("aria-label",this.i18n.t("syncrun_syncingribbon",{pluginName:this.manifest.name,triggerSource:r}))):((0,qe.setIcon)(this.syncRibbon,Lg),this.syncRibbon.setAttribute("aria-label",this.manifest.name)))}getStatusBarShortMsgFromSyncSource(n){if(n===void 0)return"";switch(n){case"manual":return this.i18n.t("statusbar_sync_source_manual");case"dry":return this.i18n.t("statusbar_sync_source_dry");case"auto":return this.i18n.t("statusbar_sync_source_auto");case"autoOnceInit":return this.i18n.t("statusbar_sync_source_auto_once_init");default:return""}}setCurrSyncMsg(n,r,i){if(this.statusBarElement===void 0)return;let s=`${r}`.length,o=`${n}`.padStart(s,"0"),l=this.getStatusBarShortMsgFromSyncSource(this.currentTriggerSource)+this.i18n.t("syncrun_status_progress",{current:o,total:r.toString()});this.currSyncMsg=l,i&&this.statusBarElement.setAttribute("aria-label",`${l} - ${i}`),this.statusBarElement.setText(l)}updateLastSyncMsg(n){if(this.statusBarElement===void 0)return;let r,i,s=n!==void 0?n:this.settings.lastSynced;if(s!==void 0&&s>0){let o=Date.now()-s;Math.floor(o/1e3)<60?r=this.i18n.t("statusbar_time_now"):r=W8(this.i18n,s).lastSyncMsg,i=r}else r=this.i18n.t("statusbar_lastsync_never"),i=this.i18n.t("statusbar_lastsync_never_label");this.statusBarElement.setText(r),this.statusBarElement.setAttribute("aria-label",i)}updateStatusBar(n){this.statusBarElement!==void 0&&this.settings.enableStatusBarInfo===!0&&(this.syncStatus==="syncing"&&n!==void 0?this.setCurrSyncMsg(n.i,n.total):this.syncStatus==="idle"&&this.updateLastSyncMsg(this.settings.lastSynced))}async onload(){this.oauth2Info={verifier:"",helperModal:void 0,authSetting:void 0,revokeAuthSetting:void 0},this.currSyncMsg="",await this.loadSettings(),await this.checkIfPresetRulesFollowed(),this.i18n=new Ig(this.settings.lang,async s=>{this.settings.lang=s,await this.saveSettings()});let n=(s,o)=>this.i18n.t(s,o);this.settings.debugEnabled&&se.setLevel("debug"),await this.checkIfOauthExpires();let r=await this.getVaultRandomIDFromOldConfigFile();this.tryToAddIgnoreFile();let i=this.getVaultBasePath();try{await this.prepareDBAndVaultRandomID(i,r)}catch(s){throw new qe.Notice(s.message,10*1e3),s}this.addOutputToDBIfSet(),this.enableAutoClearOutputToDBHistIfSet(),this.enableAutoClearSyncPlanHist(),this.registerEvent(this.app.vault.on("delete",async s=>{await E$(this.db,s,this.vaultRandomID)})),this.registerEvent(this.app.vault.on("rename",async(s,o)=>{await D$(this.db,s,o,this.vaultRandomID)})),this.registerObsidianProtocolHandler(Mp,async s=>{var a,l,u;let o=cg(s,this.app.vault.getName());if(o.status==="error")new qe.Notice(o.message);else{let p=(0,$g.default)(o.result);this.settings={...this.settings,...p,s3:{...this.settings.s3,...(a=p==null?void 0:p.s3)!=null?a:{}},webdav:{...this.settings.webdav,...(l=p==null?void 0:p.webdav)!=null?l:{}},onedrive:{...this.settings.onedrive,...(u=p==null?void 0:p.onedrive)!=null?u:{}}},this.saveSettings(),new qe.Notice(n("protocol_saveqr",{manifestName:this.manifest.name}))}}),this.registerObsidianProtocolHandler(YC,async s=>{new qe.Notice(n("protocol_callbacknotsupported",{params:JSON.stringify(s)}))}),this.registerObsidianProtocolHandler(Lp,async s=>{var o,a;try{if(s.code!==void 0){if(!this.oauth2Info.verifier)throw Error("OneDrive auth verifier is missing. Please restart auth.");this.oauth2Info.helperModal!==void 0&&(this.oauth2Info.helperModal.contentEl.empty(),n("protocol_onedrive_connecting").split(` +`).forEach(f=>{this.oauth2Info.helperModal.contentEl.createEl("p",{text:f})}));let l=await o$(this.settings.onedrive.clientID,this.settings.onedrive.authority,s.code,this.oauth2Info.verifier);if(l.error!==void 0){let f=l.error_description||JSON.stringify(l);throw Error(`Azure API \u9519\u8BEF: ${f}`)}let u=this;await a$(this.settings.onedrive,l,()=>u.saveSettings());let p=new fi("onedrive",void 0,void 0,this.settings.onedrive,this.app.vault.getName(),()=>u.saveSettings());this.settings.onedrive.username=await p.getUser(),await u.saveSettings(),this.oauth2Info.verifier="",(o=this.oauth2Info.helperModal)==null||o.close(),this.oauth2Info.helperModal=void 0;let d=this.settings.onedrive.username!=="";this.oauth2Info.authSetting&&this.oauth2Info.authSetting.settingEl.toggleClass("tp-sync-auth-hidden",d),this.oauth2Info.authSetting=void 0,(a=this.oauth2Info.revokeAuthSetting)==null||a.setDesc(n("protocol_onedrive_connect_succ_revoke",{username:this.settings.onedrive.username})),this.oauth2Info.revokeAuthSetting&&this.oauth2Info.revokeAuthSetting.settingEl.toggleClass("tp-sync-revoke-hidden",!d),this.oauth2Info.revokeAuthSetting=void 0,new qe.Notice(n("protocol_onedrive_connect_succ_revoke",{username:this.settings.onedrive.username}))}else throw new qe.Notice(n("protocol_onedrive_connect_fail")),Error(n("protocol_onedrive_connect_unknown",{params:JSON.stringify(s)}))}catch(l){console.error("OneDrive auth protocol handler error:",l),this.oauth2Info.helperModal&&(this.oauth2Info.helperModal.contentEl.empty(),this.oauth2Info.helperModal.contentEl.createEl("p",{text:"\u9274\u6743\u5931\u8D25"}),this.oauth2Info.helperModal.contentEl.createEl("p",{text:l.message||"\u672A\u77E5\u9519\u8BEF",cls:"onedrive-auth-error"})),this.oauth2Info.verifier="",this.oauth2Info.authSetting=void 0,this.oauth2Info.revokeAuthSetting=void 0}}),this.syncRibbon=this.addRibbonIcon(Lg,`${this.manifest.name}`,async()=>this.syncRun("manual")),this.addCommand({id:"start-sync",name:n("command_startsync"),icon:Lg,callback:async()=>{this.syncRun("manual")}}),this.addCommand({id:"start-sync-dry-run",name:n("command_drynrun"),icon:Lg,callback:async()=>{this.syncRun("dry")}}),this.addCommand({id:"export-sync-plans-json",name:n("command_exportsyncplans_json"),icon:mE,callback:async()=>{await Bc(this.db,this.app.vault,this.vaultRandomID,"json"),new qe.Notice(n("settings_syncplans_notice"))}}),this.addCommand({id:"export-sync-plans-table",name:n("command_exportsyncplans_table"),icon:mE,callback:async()=>{await Bc(this.db,this.app.vault,this.vaultRandomID,"table"),new qe.Notice(n("settings_syncplans_notice"))}}),this.addCommand({id:"export-logs-in-db",name:n("command_exportlogsindb"),icon:mE,callback:async()=>{await dg(this.db,this.app.vault,this.vaultRandomID),new qe.Notice(n("settings_logtodbexport_notice"))}}),this.addCommand({id:"get-sync-status",name:n("command_syncstatus"),icon:wSe,callback:()=>new qe.Notice(this.syncStatusText)}),this.addSettingTab(new Fg(this.app,this)),this.settings.enableStatusBarInfo===void 0&&(this.settings.enableStatusBarInfo=!qe.Platform.isMobile),this.saveSettings(),this.settings.agreeToUploadExtraMetadata?this.enableFeaturesAfterAgreement():new Pg(this.app,this.i18n,s=>{s?(this.settings.agreeToUploadExtraMetadata=!0,this.saveSettings(),this.enableFeaturesAfterAgreement()):this.unload()}).open()}enableFeaturesAfterAgreement(){this.enableAutoSyncIfSet(),this.enableInitSyncIfSet(),this.toggleSyncOnRemote(!0),this.toggleSyncOnSave(!0),this.toggleStatusBar(!0),this.toggleStatusText(!0),this.updateSyncStatus("idle")}async onunload(){this.syncRibbon=void 0,this.oauth2Info!==void 0&&(this.oauth2Info.helperModal=void 0,this.oauth2Info=void 0),this.toggleSyncOnSave(!1),this.toggleSyncOnRemote(!1),this.toggleStatusText(!1),this.toggleStatusBar(!1)}async loadSettings(){let n=null;try{n=await this.loadData()}catch(r){console.warn("Failed to load settings, using defaults:",r),n=null}(!n||typeof n!="object")&&(console.log("No existing settings found, using default configuration"),n={}),this.settings=Object.assign({},(0,$g.default)(fE),fg(n)),this.settings.onedrive.clientID===""&&(this.settings.onedrive.clientID=fE.onedrive.clientID),this.settings.onedrive.authority===""&&(this.settings.onedrive.authority=fE.onedrive.authority),this.settings.onedrive.remoteBaseDir===void 0&&(this.settings.onedrive.remoteBaseDir=""),this.settings.webdav.manualRecursive===void 0&&(this.settings.webdav.manualRecursive=!1),this.settings.webdav.depth===void 0&&(this.settings.webdav.depth="auto_unknown"),this.settings.webdav.remoteBaseDir===void 0&&(this.settings.webdav.remoteBaseDir=""),this.settings.s3.partsConcurrency===void 0&&(this.settings.s3.partsConcurrency=20),this.settings.s3.forcePathStyle===void 0&&(this.settings.s3.forcePathStyle=!1),this.settings.s3.disableS3MetadataSync==null&&(this.settings.s3.disableS3MetadataSync=!1),this.settings.deleteToWhere===void 0&&(this.settings.deleteToWhere="system_trash")}async checkIfPresetRulesFollowed(){F$(this.settings).changed&&await this.saveSettings()}async saveSettings(){await this.saveData(O$(this.settings))}async checkIfOauthExpires(){let n=!1,r=Date.now();this.settings.onedrive.refreshToken!==""&&this.settings.onedrive.credentialsShouldBeDeletedAtTime===void 0&&(this.settings.onedrive.credentialsShouldBeDeletedAtTime=r+1e3*60*60*24*30,n=!0);let i=!1;this.settings.onedrive.refreshToken!==""&&r>=this.settings.onedrive.credentialsShouldBeDeletedAtTime&&(i=!0,this.settings.onedrive=(0,$g.default)(Lo),n=!0),n&&await this.saveSettings(),i&&new qe.Notice(`${this.manifest.name}: You haven't manually auth OneDrive for a while, you need to re-auth it again.`,6e3)}async getVaultRandomIDFromOldConfigFile(){let n="";return this.settings.vaultRandomID!==void 0&&(this.settings.vaultRandomID!==""&&(n=this.settings.vaultRandomID),delete this.settings.vaultRandomID,await this.saveSettings()),n}async trash(n){this.settings.deleteToWhere==="obsidian_trash"?await this.app.vault.adapter.trashLocal(n):await this.app.vault.adapter.trashSystem(n)||await this.app.vault.adapter.trashLocal(n)}getVaultBasePath(){return this.app.vault.adapter instanceof qe.FileSystemAdapter?this.app.vault.adapter.getBasePath().split("?")[0]:this.app.vault.adapter.getResourcePath("").split("?")[0]}async prepareDBAndVaultRandomID(n,r){let{db:i,vaultRandomID:s}=await v$(n,r);this.db=i,this.vaultRandomID=s}toggleStatusText(n){this.statusBarIntervalID!==void 0&&(window.clearInterval(this.statusBarIntervalID),this.statusBarIntervalID=void 0),n&&(this.statusBarIntervalID=window.setInterval(async()=>{this.syncStatus!=="syncing"&&this.updateStatusBar()},3e4),this.updateStatusBar())}toggleStatusBar(n){var i;(i=this.statusBarElement)==null||i.remove();let r=document.getElementsByClassName("status-bar")[0];if(r&&(r.removeClass("third-party-sync-show-status-bar"),r.addClass("tp-statusbar-reset-margin"),Array.from(r.children).forEach(s=>{s.removeClass("third-party-sync-hidden")}),n&&this.settings.enableStatusBarInfo)){if(qe.Platform.isMobile&&(r.addClass("third-party-sync-show-status-bar"),qe.Platform.isPhone)){let s=document.getElementsByClassName("mobile-navbar")[0],o=window.getComputedStyle(s).getPropertyValue("height");r.style.marginBottom=o}this.statusBarElement=this.addStatusBarItem(),this.statusBarElement.createEl("span"),this.statusBarElement.setAttribute("data-tooltip-position","top"),this.updateStatusBar()}}async toggleSyncOnRemote(n){if(this.syncOnRemoteIntervalID!==void 0&&(window.clearInterval(this.syncOnRemoteIntervalID),this.syncOnRemoteIntervalID=void 0),n===!1||this.settings.syncOnRemoteChangesAfterMilliseconds===-1)return;let r=!1,i=async()=>{if(!(this.syncStatus!=="idle"||r)){r=!0;try{let s=this.getRemoteClient(this),o=await s.listFromRemote(),a=await Rg(o.Contents,this.db,this.vaultRandomID,s.serviceType,this.settings.password),l=await lg(this.db,this.vaultRandomID),u=new Map(l.map(d=>[d.key,d])),p=!1;for(let d of a){if(!d.key)continue;let f=u.get(d.key);if(!f||f.mtime!==d.mtimeRemote){p=!0;break}}if(!p){for(let d of l)if(!a.some(m=>m.key===d.key)){p=!0;break}}if(p)return se.debug("Sync on Remote ran | Remote changes detected"),this.syncRun("auto"),!0}catch(s){se.debug("Sync on Remote check failed:",s)}finally{r=!1}}};if(qe.Platform.isMobileApp){let s=await i();new qe.Notice(s===!0?this.i18n.t("remote_changes_found"):this.i18n.t("remote_changes_synced"))}this.syncOnRemoteIntervalID=window.setInterval(i,this.settings.syncOnRemoteChangesAfterMilliseconds)}async toggleSyncOnSave(n){let r=!1;if(this.syncOnSaveEvent!==void 0&&(this.app.vault.offref(this.syncOnSaveEvent),this.syncOnSaveEvent=void 0),this.vaultScannerIntervalId!==void 0&&(window.clearInterval(this.vaultScannerIntervalId),this.vaultScannerIntervalId=void 0),n===!1||this.settings.syncOnSaveAfterMilliseconds===-1)return;this.syncOnSaveEvent=this.app.vault.on("modify",()=>{this.syncStatus!=="idle"||r||(r=!0,se.debug(`Scheduled a sync run for ${this.settings.syncOnSaveAfterMilliseconds} milliseconds later`),setTimeout(async()=>{se.debug("Sync on save ran"),await this.syncRun("auto"),r=!1},this.settings.syncOnSaveAfterMilliseconds))});let i=async()=>{if(this.syncStatus!=="idle"||r||!this.settings.syncConfigDir)return;se.debug("Scanning config directory for changes");let s=await Tg(this.app.vault,this.manifest.id,this.settings.syncTrash);for(let o=0;othis.settings.lastSynced){se.debug("Unsynced config file found: ",a.key),r=!0,se.debug(`Scheduled a sync run for ${this.settings.syncOnSaveAfterMilliseconds} milliseconds later`),setTimeout(async()=>{se.debug("Sync on save ran"),await this.syncRun("auto"),r=!1},this.settings.syncOnSaveAfterMilliseconds);break}}};this.vaultScannerIntervalId=window.setInterval(i,3e4)}async getMetadataMtime(){return this.settings.lastSynced}async getSyncPlan2(){var p;await this.createTrashIfDoesNotExist();let n=this.getRemoteClient(this),r=await n.listFromRemote(),i=await iE(r.Contents,this.settings.password),s=await Rg(r.Contents,this.db,this.vaultRandomID,n.serviceType,this.settings.password),o=this.app.vault.getAllLoadedFiles(),a=await Tg(this.app.vault,this.manifest.id,this.settings.syncTrash),l=await lg(this.db,this.vaultRandomID),{plan:u}=await sE(s,o,a,l,n.serviceType,"auto",this.app.vault,this.settings.syncConfigDir,this.settings.syncTrash,this.settings.syncBookmarks,this.app.vault.configDir,this.settings.syncUnderscoreItems,this.settings.skipSizeLargerThan,this.settings.password,(p=this.settings.syncDirection)!=null?p:"bidirectional");return u}enableAutoSyncIfSet(){this.settings.autoRunEveryMilliseconds!==void 0&&this.settings.autoRunEveryMilliseconds!==null&&this.settings.autoRunEveryMilliseconds>0&&this.app.workspace.onLayoutReady(()=>{let n=window.setInterval(()=>{this.syncRun("auto")},this.settings.autoRunEveryMilliseconds);this.autoRunIntervalID=n,this.registerInterval(n)})}enableInitSyncIfSet(){this.settings.initRunAfterMilliseconds!==void 0&&this.settings.initRunAfterMilliseconds!==null&&this.settings.initRunAfterMilliseconds>0&&this.app.workspace.onLayoutReady(()=>{window.setTimeout(()=>{this.syncRun("autoOnceInit")},this.settings.initRunAfterMilliseconds)})}async tryToAddIgnoreFile(){let n=this.manifest.dir;if(!await this.app.vault.adapter.exists(n))return;let i=`${n}/.gitignore`,s=await this.app.vault.adapter.exists(i),o=`data.json +`;try{s||this.app.vault.adapter.write(i,o)}catch(a){}}addOutputToDBIfSet(){this.settings.logToDB&&$h((...n)=>{pg(this.db,this.vaultRandomID,...n)})}enableAutoClearOutputToDBHistIfSet(){this.app.workspace.onLayoutReady(()=>{window.setTimeout(()=>{this.settings.logToDB&&rp(this.db)},45e3);let i=window.setInterval(()=>{this.settings.logToDB&&rp(this.db)},3e5);this.registerInterval(i)})}enableAutoClearSyncPlanHist(){this.app.workspace.onLayoutReady(()=>{window.setTimeout(()=>{Uw(this.db)},45e3);let i=window.setInterval(()=>{Uw(this.db)},3e5);this.registerInterval(i)})}async createTrashFolderIfDoesNotExist(n){await n.adapter.stat(".trash")==null&&await n.adapter.mkdir(".trash")}}; /*! Bundled license information: ieee754/index.js: diff --git a/manifest.json b/manifest.json index 63ebe50..8914958 100644 --- a/manifest.json +++ b/manifest.json @@ -2,9 +2,9 @@ "id": "third-party-sync", "name": "Third-party Sync", "version": "0.5.4", - "minAppVersion": "1.4.11", + "minAppVersion": "1.5.0", "description": "Security and feature updates for the remotely-save unofficial plugin allowing users to synchronize notes between local device and the cloud service. Not backwards compatible.", "author": "nightfall", - "authorUrl": "https://github.com/nightfall-yl/obsidian-third-party-sync", + "authorUrl": "https://github.com/nightfall-yl", "isDesktopOnly": false } diff --git a/package.json b/package.json index ee5ab8e..c68638d 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "p-queue": "^7.2.0", "pako": "^2.1.0", "path-browserify": "^1.0.1", + "qs": "^6.13.0", "rfc4648": "^1.5.1", "rimraf": "^3.0.2", "stream-browserify": "^3.0.0", diff --git a/src/baseTypes.ts b/src/baseTypes.ts index 39da283..b3ef611 100644 --- a/src/baseTypes.ts +++ b/src/baseTypes.ts @@ -231,19 +231,3 @@ export interface SyncPlanType { remoteType: SUPPORTED_SERVICES_TYPE; mixedStates: Record; } - -export interface DeletionOnRemote { - key: string; - deltime: number; -} - -export interface MetadataOnRemote { - version: string; - lastSyncTime: number; - files: { - [key: string]: { - mtime: number; - size?: number; - }; - }; -} diff --git a/src/fsLocal.ts b/src/fsLocal.ts index a5a6ef5..bceec3f 100644 --- a/src/fsLocal.ts +++ b/src/fsLocal.ts @@ -1,9 +1,11 @@ import { Vault, TFile, TFolder } from "obsidian"; +import type { App } from "obsidian"; import type { Entity } from "./baseTypes"; import { FakeFs } from "./fsAll"; export class FakeFsLocal extends FakeFs { vault: Vault; + app?: App; syncConfigDir: boolean; syncBookmarks: boolean; configDir: string; @@ -15,10 +17,12 @@ export class FakeFsLocal extends FakeFs { syncConfigDir: boolean, syncBookmarks: boolean, configDir: string, - pluginId: string + pluginId: string, + app?: App ) { super(); this.vault = vault; + this.app = app; this.syncConfigDir = syncConfigDir; this.syncBookmarks = syncBookmarks; this.configDir = configDir; @@ -207,7 +211,11 @@ export class FakeFsLocal extends FakeFs { } else { const file = this.vault.getFileByPath(key); if (file) { - await this.vault.delete(file, true); + if (this.app) { + await this.app.fileManager.trashFile(file); + } else { + await this.vault.delete(file); + } } } } diff --git a/src/localdb.ts b/src/localdb.ts index 1d52bce..90c8ea3 100644 --- a/src/localdb.ts +++ b/src/localdb.ts @@ -302,7 +302,7 @@ export const clearAllPrevSyncRecordsByVault = async ( const keys = (await db.prevSyncRecordsTbl.keys()).filter((x) => x.startsWith(`${vaultRandomID}\t`) ); - const ps = [] as Promise[]; + const ps: Promise[] = []; for (const key of keys) { ps.push(db.prevSyncRecordsTbl.removeItem(key)); } @@ -317,7 +317,7 @@ export const savePrevSyncRecordsByVault = async ( // Clear old records first await clearAllPrevSyncRecordsByVault(db, vaultRandomID); // Save new records - const ps = [] as Promise[]; + const ps: Promise[] = []; for (const record of records) { ps.push( db.prevSyncRecordsTbl.setItem(`${vaultRandomID}\t${record.key}`, record) @@ -640,7 +640,7 @@ export const clearExpiredSyncPlanRecords = async (db: InternalDBs) => { }); } - const ps = [] as Promise[]; + const ps: Promise[] = []; keysToRemove.forEach((element) => { ps.push(db.syncPlansTbl.removeItem(element)); }); @@ -728,7 +728,7 @@ export const clearExpiredLoggerOutputRecords = async (db: InternalDBs) => { }); } - const ps = [] as Promise[]; + const ps: Promise[] = []; keysToRemove.forEach((element) => { ps.push(db.loggerOutputTbl.removeItem(element)); }); diff --git a/src/main.ts b/src/main.ts index dadcf9f..5db0ada 100644 --- a/src/main.ts +++ b/src/main.ts @@ -27,7 +27,10 @@ import { InternalDBs, insertLoggerOutputByVault, clearExpiredLoggerOutputRecords, - clearExpiredSyncPlanRecords, FileFolderHistoryRecord, + clearExpiredSyncPlanRecords, + FileFolderHistoryRecord, + insertDeleteRecordByVault, + insertRenameRecordByVault, } from "./localdb"; import { RemoteClient } from "./remote"; import { @@ -39,7 +42,8 @@ import { import { DEFAULT_S3_CONFIG } from "./remoteForS3"; import { DEFAULT_WEBDAV_CONFIG } from "./remoteForWebdav"; import { ThirdPartySyncSettingTab } from "./settings"; -import { SyncStatusType, isPasswordOk, getRemoteStates, getSyncPlanV3, doActualSyncV3 } from "./sync"; +import { SyncStatusType, isPasswordOk, getRemoteStates, getSyncPlanV3, doActualSyncV3, getSyncPlan, doActualSync } from "./sync"; +import { DeletionOnRemote, MetadataOnRemote, deserializeMetadataOnRemote } from "./metadataOnRemote"; import { messyConfigToNormal, normalConfigToMessy } from "./configPersist"; import { ObsConfigDirFileType, listFilesInObsFolder } from "./obsFolderLister"; import { I18n } from "./i18n"; @@ -403,10 +407,7 @@ export default class ThirdPartySyncPlugin extends Plugin { self, this.settings.skipSizeLargerThan, ss, - t, - async () => { - await self.saveSettings(); - } + this.settings.password !== "" ).open(); }, undefined, @@ -1187,7 +1188,7 @@ export default class ThirdPartySyncPlugin extends Plugin { // Remove any third-party sync classes statusBar.removeClass("third-party-sync-show-status-bar"); - statusBar.style.marginBottom = "0px"; + statusBar.addClass("tp-statusbar-reset-margin"); Array.from(statusBar.children).forEach((element) => { element.removeClass("third-party-sync-hidden"); diff --git a/src/remoteForWebdav.ts b/src/remoteForWebdav.ts index 0d426cf..e9e92ea 100644 --- a/src/remoteForWebdav.ts +++ b/src/remoteForWebdav.ts @@ -14,11 +14,10 @@ import { log } from "./moreOnLog"; import type { FileStat, WebDAVClient, - RequestOptionsWithState, Response, ResponseDataDetailed, -} from "webdav/web"; -import { getPatcher } from "webdav/web"; +} from "webdav"; +import { getPatcher } from "webdav"; const WEBDAV_503_RETRY_DELAYS_MS = [300, 700, 1300]; @@ -128,7 +127,7 @@ if (VALID_REQURL) { getPatcher().patch( "request", async ( - options: RequestOptionsWithState + options: any ): Promise> => { const transformedHeaders = { ...options.headers }; delete transformedHeaders["host"]; @@ -180,8 +179,8 @@ if (VALID_REQURL) { } ); } -import { AuthType, BufferLike, createClient } from "webdav/web"; -export type { WebDAVClient } from "webdav/web"; +import { AuthType, BufferLike, createClient } from "webdav"; +export type { WebDAVClient } from "webdav"; export const DEFAULT_WEBDAV_CONFIG = { address: "", @@ -307,7 +306,7 @@ export class WrappedWebdavClient { if (this.webdavConfig.depth === "auto_unknown") { let testPassed = false; try { - const res = await webdavCallWith503Retry( + const res = await webdavCallWith503Retry( "customRequest(PROPFIND infinity)", () => this.client.customRequest(`/${this.remoteBaseDir}/`, { @@ -316,7 +315,7 @@ export class WrappedWebdavClient { Depth: "infinity", }, responseType: "text", - }) + } as any) ); if (res.status === 403) { throw Error("not support Infinity, get 403"); @@ -339,7 +338,7 @@ export class WrappedWebdavClient { Depth: "1", }, responseType: "text", - }) + } as any) ); testPassed = true; this.webdavConfig.depth = "auto_1"; diff --git a/src/settings.ts b/src/settings.ts index e54a8f7..6e140f2 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -732,8 +732,8 @@ export class ThirdPartySyncSettingTab extends PluginSettingTab { onedriveSettings.push(setting); onedriveRevokeAuthSetting = setting; if (!isOneDriveAuthenticated) setting.settingEl.addClass("tp-sync-revoke-hidden"); - setting.settingEl.style.borderTop = "none"; - setting.settingEl.style.boxShadow = "none"; + setting.settingEl.addClass("tp-no-border-top"); + setting.settingEl.addClass("tp-no-box-shadow"); return setting.setName(t("settings_onedrive_revoke")) .setDesc( t("settings_onedrive_revoke_desc", { @@ -757,8 +757,8 @@ export class ThirdPartySyncSettingTab extends PluginSettingTab { onedriveSettings.push(setting); onedriveAuthSetting = setting; if (isOneDriveAuthenticated) setting.settingEl.addClass("tp-sync-auth-hidden"); - setting.settingEl.style.borderTop = "none"; - setting.settingEl.style.boxShadow = "none"; + setting.settingEl.addClass("tp-no-border-top"); + setting.settingEl.addClass("tp-no-box-shadow"); return setting.setName(t("settings_onedrive_auth")) .setDesc(t("settings_onedrive_auth_desc")) .addButton(async (button) => { @@ -1277,7 +1277,7 @@ export class ThirdPartySyncSettingTab extends PluginSettingTab { }) ); - const statusBarOptions = sgBasic.groupEl.createDiv({ cls: "third-party-sync-hidden" }); + const statusBarOptions = (sgBasic as any).groupEl.createDiv({ cls: "third-party-sync-hidden" }); statusBarOptions.toggleClass( "third-party-sync-hidden", @@ -1551,7 +1551,7 @@ export class ThirdPartySyncSettingTab extends PluginSettingTab { .onChange((value) => { importUriInput = value; }); - text.inputEl.style.width = "100%"; + text.inputEl.parentElement?.addClass("tp-full-width-input"); }) .addButton((button) => { button.setButtonText(t("settings_import_button")); @@ -1666,7 +1666,7 @@ export class ThirdPartySyncSettingTab extends PluginSettingTab { ); // Container for debug options (hidden when debug is disabled) - const debugOptionsDiv = sgDebug.groupEl.createEl("div", { + const debugOptionsDiv = (sgDebug as any).groupEl.createEl("div", { cls: "remotely-sync-debug-options" }); diff --git a/src/sync.ts b/src/sync.ts index 625a740..f7db87c 100644 --- a/src/sync.ts +++ b/src/sync.ts @@ -41,12 +41,15 @@ import { import { RemoteClient } from "./remote"; import { DeletionOnRemote, + MetadataOnRemote, DEFAULT_FILE_NAME_FOR_METADATAONREMOTE, DEFAULT_FILE_NAME_FOR_METADATAONREMOTE2, LEGACY_FILE_NAME_FOR_METADATAONREMOTE, LEGACY_FILE_NAME_FOR_METADATAONREMOTE2, FILE_NAME_FOR_BOOKMARK_FILE, FILE_NAME_FOR_DATA_JSON, + serializeMetadataOnRemote, + deserializeMetadataOnRemote, } from "./metadataOnRemote"; import {isInsideObsFolder, isInsideTrashFolder, ObsConfigDirFileType} from "./obsFolderLister"; diff --git a/src/syncAlgoV2Notice.ts b/src/syncAlgoV2Notice.ts index 50fa931..8853fdc 100644 --- a/src/syncAlgoV2Notice.ts +++ b/src/syncAlgoV2Notice.ts @@ -23,7 +23,9 @@ export class SyncAlgoV2Modal extends Modal { this.i18n.t("syncalgov2_texts") .split("\n") .forEach((val) => { - contentEl.createEl("p").innerHTML = val; + const wrapper = createSpan(); + wrapper.innerHTML = val; + contentEl.createEl("p").append(...Array.from(wrapper.childNodes)); }); new Setting(contentEl) diff --git a/src/types/pako.d.ts b/src/types/pako.d.ts index e0fcd54..d530e7e 100644 --- a/src/types/pako.d.ts +++ b/src/types/pako.d.ts @@ -1,8 +1,10 @@ declare module 'pako' { export function inflate(data: any, options?: any): any; export function deflate(data: any, options?: any): any; - export default { - inflate, - deflate + + const pako: { + inflate: typeof inflate; + deflate: typeof deflate; }; + export default pako; } diff --git a/styles.css b/styles.css index 8b599fa..bc5dbb3 100644 --- a/styles.css +++ b/styles.css @@ -5,33 +5,33 @@ /* Service detail heading: align with native SettingGroup headings */ .setting-group > .setting-item-heading { - padding: 12px 16px 0 !important; + padding: 12px 16px 0; } .setting-group > .setting-item-heading > .setting-item-name { - font-size: var(--font-ui-medium) !important; - font-weight: var(--bold-weight) !important; + font-size: var(--font-ui-medium); + font-weight: var(--bold-weight); } /* Fix extra line: remove all separator lines in service detail group */ .service-detail-group > .setting-item-heading { - border-bottom: none !important; - box-shadow: none !important; + border-bottom: none; + box-shadow: none; } .service-detail-group > .setting-item-heading::after { - display: none !important; + display: none; } .service-detail-group > .setting-item { - border-top: none !important; - border-top-width: 0 !important; - box-shadow: none !important; + border-top: none; + border-top-width: 0; + box-shadow: none; } .service-detail-group > .setting-item::before, .service-detail-group > .setting-item::after { - display: none !important; + display: none; } .setting-item.tp-sync-revoke-hidden, .setting-item.tp-sync-auth-hidden { - display: none !important; + display: none; } /* set the styles */ @@ -66,32 +66,50 @@ margin: 2px 0; } .s3-hide { - display: none !important; + display: none; } .onedrive-disclaimer { font-weight: bold; } .onedrive-hide { - display: none !important; + display: none; } .webdav-disclaimer { font-weight: bold; } .webdav-hide { - display: none !important; + display: none; } -/* !important isn't great practice but it needs to overwrite other css classes */ +/* Use higher specificity to overwrite other css classes */ .third-party-sync-hidden { - display: none !important; + display: none; } .third-party-sync-show-status-bar { - display: flex !important; + display: flex; +} + +/* Remove border/shadow for service settings */ +.tp-no-border-top { + border-top: none !important; +} +.tp-no-box-shadow { + box-shadow: none !important; +} + +/* Full width input */ +.tp-full-width-input > input { + width: 100%; +} + +/* Status bar margin reset */ +.tp-statusbar-reset-margin { + margin-bottom: 0px; } /* OneDrive OAuth Modal Styles */ @@ -146,7 +164,7 @@ text-align: right; } .oauth-submit-btn { - padding: 8px 24px !important; + padding: 8px 24px; } .oauth-button-row { margin-top: 10px; diff --git a/tsconfig.json b/tsconfig.json index a71ca71..77c94c8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,11 +7,11 @@ "allowJs": true, "noImplicitAny": true, "moduleResolution": "node", - // "allowSyntheticDefaultImports": true, "resolveJsonModule": true, "esModuleInterop": true, "importHelpers": true, "isolatedModules": true, + "skipLibCheck": true, "lib": [ "dom", "es5",