@zuplo/core 5.1894.0 → 5.1896.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -392,7 +392,7 @@ ${m}
392
392
  Content-Type: ${i["Content-Type"]}\r
393
393
  \r
394
394
  `;n.write(s);if(typeof i.body==="string"){n.write(i.body);n.write("\r\n")}else{i.body.pipe(n,{end:false});i.body.on("end",()=>{n.write("\r\n");n.write(r);n.end()})}}return n}o(Wvt,"createMultipartStream");function Zi(t,e){const{uri:r,options:n}=Yvt(t);const i=t.multipart;if(t.multipart&&i.length===2){if(!e){throw new Error("Multipart without callback is not implemented.")}const s=zvt.v4();n.headers["Content-Type"]=`multipart/related; boundary=${s}`;n.body=Wvt(s,i);Zi.stats.requestStarting();(0,kF.default)(r,n).then(a=>{Zi.stats.requestFinished();const u=a.headers.get("content-type");const l=eT(n,a);const c=l.body;if(u==="application/json"||u==="application/json; charset=utf-8"){a.json().then(d=>{l.body=d;e(null,l,d)},d=>{e(d,l,c)});return}a.text().then(d=>{l.body=d;e(null,l,d)},d=>{e(d,l,c)})},a=>{Zi.stats.requestFinished();e(a,null,null)});return}if(e===void 0){const s=Kvt(new tT.PassThrough);let a;s.once("reading",()=>{if(a){(0,tT.pipeline)(a,s,()=>{})}else{s.once("response",()=>{(0,tT.pipeline)(a,s,()=>{})})}});n.compress=false;Zi.stats.requestStarting();(0,kF.default)(r,n).then(u=>{Zi.stats.requestFinished();a=u.body;a.on("error",c=>{s.emit("error",c)});const l=eT(n,u);s.emit("response",l)},u=>{Zi.stats.requestFinished();s.emit("error",u)});return s}Zi.stats.requestStarting();(0,kF.default)(r,n).then(s=>{Zi.stats.requestFinished();const a=s.headers.get("content-type");const u=eT(n,s);const l=u.body;if(a==="application/json"||a==="application/json; charset=utf-8"){if(u.statusCode===204){e(null,u,l);return}s.json().then(c=>{u.body=c;e(null,u,c)},c=>{e(c,u,l)});return}s.text().then(c=>{const d=eT(n,s);d.body=c;e(null,d,c)},c=>{e(c,u,l)})},s=>{Zi.stats.requestFinished();e(s,null,null)});return}o(Zi,"teenyRequest");yg.teenyRequest=Zi;Zi.defaults=t=>{return(e,r)=>{const n={...t,...e};if(r===void 0){return Zi(n)}Zi(n,r)}};Zi.stats=new R_e.TeenyStatistics;Zi.resetStats=()=>{Zi.stats=new R_e.TeenyStatistics(Zi.stats.getOptions())}});var N_e=_((Iar,Jvt)=>{Jvt.exports={name:"@google-cloud/storage",description:"Cloud Storage Client Library for Node.js",version:"7.5.0",license:"Apache-2.0",author:"Google Inc.",engines:{node:">=14"},repository:"googleapis/nodejs-storage",main:"./build/cjs/src/index.js",types:"./build/cjs/src/index.d.ts",type:"module",exports:{".":{import:{types:"./build/esm/src/index.d.ts",default:"./build/esm/src/index.js"},require:{types:"./build/cjs/src/index.d.ts",default:"./build/cjs/src/index.js"}}},files:["build/cjs/src","build/cjs/package.json","!build/cjs/src/**/*.map","build/esm/src","!build/esm/src/**/*.map"],keywords:["google apis client","google api client","google apis","google api","google","google cloud platform","google cloud","cloud","google storage","storage"],scripts:{"all-test":"npm test && npm run system-test && npm run samples-test",benchwrapper:"node bin/benchwrapper.js",check:"gts check",clean:"rm -rf build/","compile:cjs":"tsc -p ./tsconfig.cjs.json","compile:esm":"tsc -p .",compile:"npm run compile:cjs && npm run compile:esm","conformance-test":"mocha --parallel build/cjs/conformance-test/ --require build/cjs/conformance-test/globalHooks.js","docs-test":"linkinator docs",docs:"jsdoc -c .jsdoc.json",fix:"gts fix",lint:"gts check",postcompile:"cp ./src/package-json-helper.cjs ./build/cjs/src && cp ./src/package-json-helper.cjs ./build/esm/src","postcompile:cjs":"babel --plugins gapic-tools/build/src/replaceImportMetaUrl,gapic-tools/build/src/toggleESMFlagVariable build/cjs/src/util.js -o build/cjs/src/util.js && cp internal-tooling/helpers/package.cjs.json build/cjs/package.json",precompile:"rm -rf build/","preconformance-test":"npm run compile:cjs -- --sourceMap","predocs-test":"npm run docs",predocs:"npm run compile:cjs -- --sourceMap",prelint:"cd samples; npm link ../; npm install",prepare:"npm run compile","presystem-test:esm":"npm run compile:esm","presystem-test":"npm run compile -- --sourceMap",pretest:"npm run compile -- --sourceMap","samples-test":"npm link && cd samples/ && npm link ../ && npm test && cd ../","system-test:esm":"mocha build/esm/system-test --timeout 600000 --exit","system-test":"mocha build/cjs/system-test --timeout 600000 --exit",test:"c8 mocha build/cjs/test"},dependencies:{"@google-cloud/paginator":"^5.0.0","@google-cloud/projectify":"^4.0.0","@google-cloud/promisify":"^4.0.0","abort-controller":"^3.0.0","async-retry":"^1.3.3",compressible:"^2.0.12",duplexify:"^4.0.0",ent:"^2.2.0","fast-xml-parser":"^4.3.0",gaxios:"^6.0.2","google-auth-library":"^9.0.0",mime:"^3.0.0","mime-types":"^2.0.8","p-limit":"^3.0.1","retry-request":"^7.0.0","teeny-request":"^9.0.0",uuid:"^8.0.0"},devDependencies:{"@babel/cli":"^7.22.10","@babel/core":"^7.22.11","@google-cloud/pubsub":"^4.0.0","@grpc/grpc-js":"^1.0.3","@grpc/proto-loader":"^0.7.0","@types/async-retry":"^1.4.3","@types/compressible":"^2.0.0","@types/ent":"^2.2.1","@types/mime":"^3.0.0","@types/mime-types":"^2.1.0","@types/mocha":"^9.1.1","@types/mockery":"^1.4.29","@types/node":"^20.4.4","@types/node-fetch":"^2.1.3","@types/proxyquire":"^1.3.28","@types/request":"^2.48.4","@types/sinon":"^10.0.15","@types/tmp":"0.2.5","@types/uuid":"^8.0.0","@types/yargs":"^17.0.10",c8:"^8.0.0","form-data":"^4.0.0","gapic-tools":"^0.2.0",gts:"^5.0.0",jsdoc:"^4.0.0","jsdoc-fresh":"^3.0.0","jsdoc-region-tag":"^3.0.0",linkinator:"^4.0.0",mocha:"^9.2.2",mockery:"^2.1.0",nock:"~13.3.0","node-fetch":"^2.6.7","pack-n-play":"^2.0.0",proxyquire:"^2.1.3",sinon:"^17.0.0",tmp:"^0.2.0",typescript:"^5.1.6",yargs:"^17.3.1"}}});var vg=_(I_e=>{function Qvt(){return N_e()}o(Qvt,"getPackageJSON");I_e.getPackageJSON=Qvt});var yl=_(fr=>{"use strict";var Xvt=fr&&fr.__createBinding||(Object.create?function(t,e,r,n){if(n===void 0)n=r;var i=Object.getOwnPropertyDescriptor(e,r);if(!i||("get"in i?!e.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return e[r]}}}Object.defineProperty(t,n,i)}:function(t,e,r,n){if(n===void 0)n=r;t[n]=e[r]});var Zvt=fr&&fr.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:true,value:e})}:function(t,e){t["default"]=e});var jF=fr&&fr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null){for(var r in t)if(r!=="default"&&Object.prototype.hasOwnProperty.call(t,r))Xvt(e,t,r)}Zvt(e,t);return e};Object.defineProperty(fr,"__esModule",{value:true});fr.PassThroughShim=fr.getModuleFormat=fr.getDirName=fr.getUserAgentString=fr.getRuntimeTrackingString=fr.formatAsUTCISO=fr.convertObjKeysToSnakeCase=fr.unicodeJSONStringify=fr.objectKeyToLowercase=fr.qsStringify=fr.encodeURI=fr.fixedEncodeURIComponent=fr.objectEntries=fr.normalize=void 0;var kar=jF(require("path"));var e_t=jF(require("querystring"));var t_t=require("stream");var r_t=jF(require("url"));var n_t=vg();var $ar=r_t.fileURLToPath;var i_t=false;function s_t(t,e){const r=typeof t==="object"?t:{};const n=typeof t==="function"?t:e;return{options:r,callback:n}}o(s_t,"normalize");fr.normalize=s_t;function a_t(t){return Object.keys(t).map(e=>[e,t[e]])}o(a_t,"objectEntries");fr.objectEntries=a_t;function P_e(t){return encodeURIComponent(t).replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase())}o(P_e,"fixedEncodeURIComponent");fr.fixedEncodeURIComponent=P_e;function D_e(t,e){return t.split("/").map(P_e).join(e?"%2F":"/")}o(D_e,"encodeURI");fr.encodeURI=D_e;function o_t(t){return e_t.stringify(t,"&","=",{encodeURIComponent:e=>D_e(e,true)})}o(o_t,"qsStringify");fr.qsStringify=o_t;function u_t(t){const e={};for(let r of Object.keys(t)){const n=t[r];r=r.toLowerCase();e[r]=n}return e}o(u_t,"objectKeyToLowercase");fr.objectKeyToLowercase=u_t;function l_t(t){return JSON.stringify(t).replace(/[\u0080-\uFFFF]/g,e=>"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4))}o(l_t,"unicodeJSONStringify");fr.unicodeJSONStringify=l_t;function LF(t){if(t instanceof Date||t instanceof RegExp){return t}if(Array.isArray(t)){return t.map(LF)}if(t instanceof Object){return Object.keys(t).reduce((e,r)=>{const n=r[0].toLocaleLowerCase()+r.slice(1).replace(/([A-Z]+)/g,(i,s)=>{return`_${s.toLowerCase()}`});e[n]=LF(t[r]);return e},Object())}return t}o(LF,"convertObjKeysToSnakeCase");fr.convertObjKeysToSnakeCase=LF;function c_t(t,e=false,r="",n=""){const i=t.getUTCFullYear();const s=t.getUTCMonth()+1;const a=t.getUTCDate();const u=t.getUTCHours();const l=t.getUTCMinutes();const c=t.getUTCSeconds();let d=`${i.toString().padStart(4,"0")}${r}${s.toString().padStart(2,"0")}${r}${a.toString().padStart(2,"0")}`;if(e){d=`${d}T${u.toString().padStart(2,"0")}${n}${l.toString().padStart(2,"0")}${n}${c.toString().padStart(2,"0")}Z`}return d}o(c_t,"formatAsUTCISO");fr.formatAsUTCISO=c_t;function d_t(){if(globalThis.Deno&&globalThis.Deno.version&&globalThis.Deno.version.deno){return`gl-deno/${globalThis.Deno.version.deno}`}else{return`gl-node/${process.versions.node}`}}o(d_t,"getRuntimeTrackingString");fr.getRuntimeTrackingString=d_t;function p_t(){const t=(0,n_t.getPackageJSON)();const e=t.name.replace("@google-cloud","gcloud-node").replace("/","-");return e+"/"+t.version}o(p_t,"getUserAgentString");fr.getUserAgentString=p_t;function f_t(){let t="";try{t=__dirname}catch(e){t=__dirname}return t}o(f_t,"getDirName");fr.getDirName=f_t;function h_t(){return i_t?"ESM":"CJS"}o(h_t,"getModuleFormat");fr.getModuleFormat=h_t;var qF=class extends t_t.PassThrough{static{o(this,"PassThroughShim")}constructor(){super(...arguments);this.shouldEmitReading=true;this.shouldEmitWriting=true}_read(e){if(this.shouldEmitReading){this.emit("reading");this.shouldEmitReading=false}super._read(e)}_write(e,r,n){if(this.shouldEmitWriting){this.emit("writing");this.shouldEmitWriting=false}process.nextTick(()=>{super._write(e,r,n)})}_final(e){if(this.shouldEmitReading){this.emit("reading");this.shouldEmitReading=false}if(this.shouldEmitWriting){this.emit("writing");this.shouldEmitWriting=false}e(null)}};fr.PassThroughShim=qF});var UF=_((jar,k_e)=>{k_e.exports=require("stream")});var j_e=_((Uar,q_e)=>{"use strict";function $_e(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);if(e)n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable});r.push.apply(r,n)}return r}o($_e,"ownKeys");function m_t(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};if(e%2){$_e(Object(r),true).forEach(function(n){g_t(t,n,r[n])})}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(t,Object.getOwnPropertyDescriptors(r))}else{$_e(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}}return t}o(m_t,"_objectSpread");function g_t(t,e,r){if(e in t){Object.defineProperty(t,e,{value:r,enumerable:true,configurable:true,writable:true})}else{t[e]=r}return t}o(g_t,"_defineProperty");function y_t(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}o(y_t,"_classCallCheck");function L_e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(t,n.key,n)}}o(L_e,"_defineProperties");function v_t(t,e,r){if(e)L_e(t.prototype,e);if(r)L_e(t,r);return t}o(v_t,"_createClass");var __t=require("buffer");var rT=__t.Buffer;var E_t=require("util");var FF=E_t.inspect;var b_t=FF&&FF.custom||"inspect";function w_t(t,e,r){rT.prototype.copy.call(t,e,r)}o(w_t,"copyBuffer");q_e.exports=function(){function t(){y_t(this,t);this.head=null;this.tail=null;this.length=0}o(t,"BufferList");v_t(t,[{key:"push",value:o(function e(r){var n={data:r,next:null};if(this.length>0)this.tail.next=n;else this.head=n;this.tail=n;++this.length},"push")},{key:"unshift",value:o(function e(r){var n={data:r,next:this.head};if(this.length===0)this.tail=n;this.head=n;++this.length},"unshift")},{key:"shift",value:o(function e(){if(this.length===0)return;var r=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return r},"shift")},{key:"clear",value:o(function e(){this.head=this.tail=null;this.length=0},"clear")},{key:"join",value:o(function e(r){if(this.length===0)return"";var n=this.head;var i=""+n.data;while(n=n.next){i+=r+n.data}return i},"join")},{key:"concat",value:o(function e(r){if(this.length===0)return rT.alloc(0);var n=rT.allocUnsafe(r>>>0);var i=this.head;var s=0;while(i){w_t(i.data,n,s);s+=i.data.length;i=i.next}return n},"concat")},{key:"consume",value:o(function e(r,n){var i;if(r<this.head.data.length){i=this.head.data.slice(0,r);this.head.data=this.head.data.slice(r)}else if(r===this.head.data.length){i=this.shift()}else{i=n?this._getString(r):this._getBuffer(r)}return i},"consume")},{key:"first",value:o(function e(){return this.head.data},"first")},{key:"_getString",value:o(function e(r){var n=this.head;var i=1;var s=n.data;r-=s.length;while(n=n.next){var a=n.data;var u=r>a.length?a.length:r;if(u===a.length)s+=a;else s+=a.slice(0,r);r-=u;if(r===0){if(u===a.length){++i;if(n.next)this.head=n.next;else this.head=this.tail=null}else{this.head=n;n.data=a.slice(u)}break}++i}this.length-=i;return s},"_getString")},{key:"_getBuffer",value:o(function e(r){var n=rT.allocUnsafe(r);var i=this.head;var s=1;i.data.copy(n);r-=i.data.length;while(i=i.next){var a=i.data;var u=r>a.length?a.length:r;a.copy(n,n.length-r,0,u);r-=u;if(r===0){if(u===a.length){++s;if(i.next)this.head=i.next;else this.head=this.tail=null}else{this.head=i;i.data=a.slice(u)}break}++s}this.length-=s;return n},"_getBuffer")},{key:b_t,value:o(function e(r,n){return FF(this,m_t({},n,{depth:0,customInspect:false}))},"value")}]);return t}()});var MF=_((Bar,F_e)=>{"use strict";function S_t(t,e){var r=this;var n=this._readableState&&this._readableState.destroyed;var i=this._writableState&&this._writableState.destroyed;if(n||i){if(e){e(t)}else if(t){if(!this._writableState){process.nextTick(BF,this,t)}else if(!this._writableState.errorEmitted){this._writableState.errorEmitted=true;process.nextTick(BF,this,t)}}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(t||null,function(s){if(!e&&s){if(!r._writableState){process.nextTick(U_e,r,s)}else if(!r._writableState.errorEmitted){r._writableState.errorEmitted=true;process.nextTick(U_e,r,s)}else{process.nextTick(nT,r)}}else if(e){process.nextTick(nT,r);e(s)}else{process.nextTick(nT,r)}});return this}o(S_t,"destroy");function U_e(t,e){BF(t,e);nT(t)}o(U_e,"emitErrorAndCloseNT");function nT(t){if(t._writableState&&!t._writableState.emitClose)return;if(t._readableState&&!t._readableState.emitClose)return;t.emit("close")}o(nT,"emitCloseNT");function T_t(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finalCalled=false;this._writableState.prefinished=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}o(T_t,"undestroy");function BF(t,e){t.emit("error",e)}o(BF,"emitErrorNT");function A_t(t,e){var r=t._readableState;var n=t._writableState;if(r&&r.autoDestroy||n&&n.autoDestroy)t.destroy(e);else t.emit("error",e)}o(A_t,"errorOrDestroy");F_e.exports={destroy:S_t,undestroy:T_t,errorOrDestroy:A_t}});var _p=_((Var,V_e)=>{"use strict";var M_e={};function _o(t,e,r){if(!r){r=Error}function n(s,a,u){if(typeof e==="string"){return e}else{return e(s,a,u)}}o(n,"getMessage");class i extends r{static{o(this,"NodeError")}constructor(a,u,l){super(n(a,u,l))}}i.prototype.name=r.name;i.prototype.code=t;M_e[t]=i}o(_o,"createErrorType");function B_e(t,e){if(Array.isArray(t)){const r=t.length;t=t.map(n=>String(n));if(r>2){return`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]}else if(r===2){return`one of ${e} ${t[0]} or ${t[1]}`}else{return`of ${e} ${t[0]}`}}else{return`of ${e} ${String(t)}`}}o(B_e,"oneOf");function x_t(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}o(x_t,"startsWith");function C_t(t,e,r){if(r===void 0||r>t.length){r=t.length}return t.substring(r-e.length,r)===e}o(C_t,"endsWith");function R_t(t,e,r){if(typeof r!=="number"){r=0}if(r+e.length>t.length){return false}else{return t.indexOf(e,r)!==-1}}o(R_t,"includes");_o("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);_o("ERR_INVALID_ARG_TYPE",function(t,e,r){let n;if(typeof e==="string"&&x_t(e,"not ")){n="must not be";e=e.replace(/^not /,"")}else{n="must be"}let i;if(C_t(t," argument")){i=`The ${t} ${n} ${B_e(e,"type")}`}else{const s=R_t(t,".")?"property":"argument";i=`The "${t}" ${s} ${n} ${B_e(e,"type")}`}i+=`. Received type ${typeof r}`;return i},TypeError);_o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");_o("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});_o("ERR_STREAM_PREMATURE_CLOSE","Premature close");_o("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});_o("ERR_MULTIPLE_CALLBACK","Callback called multiple times");_o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");_o("ERR_STREAM_WRITE_AFTER_END","write after end");_o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);_o("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);_o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");V_e.exports.codes=M_e});var VF=_((zar,H_e)=>{"use strict";var O_t=_p().codes.ERR_INVALID_OPT_VALUE;function N_t(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}o(N_t,"highWaterMarkFrom");function I_t(t,e,r,n){var i=N_t(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new O_t(s,i)}return Math.floor(i)}return t.objectMode?16:16*1024}o(I_t,"getHighWaterMark");H_e.exports={getHighWaterMark:I_t}});var z_e=_((Kar,HF)=>{if(typeof Object.create==="function"){HF.exports=o(function t(e,r){if(r){e.super_=r;e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}},"inherits")}else{HF.exports=o(function t(e,r){if(r){e.super_=r;var n=o(function(){},"TempCtor");n.prototype=r.prototype;e.prototype=new n;e.prototype.constructor=e}},"inherits")}});var Wh=_((War,GF)=>{try{zF=require("util");if(typeof zF.inherits!=="function")throw"";GF.exports=zF.inherits}catch(t){GF.exports=z_e()}var zF});var K_e=_((Jar,G_e)=>{G_e.exports=require("util").deprecate});var WF=_((Qar,Z_e)=>{"use strict";Z_e.exports=Wn;function W_e(t){var e=this;this.next=null;this.entry=null;this.finish=function(){i4t(e,t)}}o(W_e,"CorkedRequest");var _g;Wn.WritableState=yE;var P_t={deprecate:K_e()};var J_e=UF();var sT=require("buffer").Buffer;var D_t=global.Uint8Array||function(){};function k_t(t){return sT.from(t)}o(k_t,"_uint8ArrayToBuffer");function $_t(t){return sT.isBuffer(t)||t instanceof D_t}o($_t,"_isUint8Array");var YF=MF();var L_t=VF();var q_t=L_t.getHighWaterMark;var Ep=_p().codes;var j_t=Ep.ERR_INVALID_ARG_TYPE;var U_t=Ep.ERR_METHOD_NOT_IMPLEMENTED;var F_t=Ep.ERR_MULTIPLE_CALLBACK;var B_t=Ep.ERR_STREAM_CANNOT_PIPE;var M_t=Ep.ERR_STREAM_DESTROYED;var V_t=Ep.ERR_STREAM_NULL_VALUES;var H_t=Ep.ERR_STREAM_WRITE_AFTER_END;var z_t=Ep.ERR_UNKNOWN_ENCODING;var Eg=YF.errorOrDestroy;Wh()(Wn,J_e);function G_t(){}o(G_t,"nop");function yE(t,e,r){_g=_g||Jh();t=t||{};if(typeof r!=="boolean")r=e instanceof _g;this.objectMode=!!t.objectMode;if(r)this.objectMode=this.objectMode||!!t.writableObjectMode;this.highWaterMark=q_t(this,t,"writableHighWaterMark",r);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var n=t.decodeStrings===false;this.decodeStrings=!n;this.defaultEncoding=t.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(i){Z_t(e,i)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.emitClose=t.emitClose!==false;this.autoDestroy=!!t.autoDestroy;this.bufferedRequestCount=0;this.corkedRequestsFree=new W_e(this)}o(yE,"WritableState");yE.prototype.getBuffer=o(function t(){var e=this.bufferedRequest;var r=[];while(e){r.push(e);e=e.next}return r},"getBuffer");(function(){try{Object.defineProperty(yE.prototype,"buffer",{get:P_t.deprecate(o(function t(){return this.getBuffer()},"writableStateBufferGetter"),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}})();var iT;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){iT=Function.prototype[Symbol.hasInstance];Object.defineProperty(Wn,Symbol.hasInstance,{value:o(function t(e){if(iT.call(this,e))return true;if(this!==Wn)return false;return e&&e._writableState instanceof yE},"value")})}else{iT=o(function t(e){return e instanceof this},"realHasInstance")}function Wn(t){_g=_g||Jh();var e=this instanceof _g;if(!e&&!iT.call(Wn,this))return new Wn(t);this._writableState=new yE(t,this,e);this.writable=true;if(t){if(typeof t.write==="function")this._write=t.write;if(typeof t.writev==="function")this._writev=t.writev;if(typeof t.destroy==="function")this._destroy=t.destroy;if(typeof t.final==="function")this._final=t.final}J_e.call(this)}o(Wn,"Writable");Wn.prototype.pipe=function(){Eg(this,new B_t)};function K_t(t,e){var r=new H_t;Eg(t,r);process.nextTick(e,r)}o(K_t,"writeAfterEnd");function Y_t(t,e,r,n){var i;if(r===null){i=new V_t}else if(typeof r!=="string"&&!e.objectMode){i=new j_t("chunk",["string","Buffer"],r)}if(i){Eg(t,i);process.nextTick(n,i);return false}return true}o(Y_t,"validChunk");Wn.prototype.write=function(t,e,r){var n=this._writableState;var i=false;var s=!n.objectMode&&$_t(t);if(s&&!sT.isBuffer(t)){t=k_t(t)}if(typeof e==="function"){r=e;e=null}if(s)e="buffer";else if(!e)e=n.defaultEncoding;if(typeof r!=="function")r=G_t;if(n.ending)K_t(this,r);else if(s||Y_t(this,n,t,r)){n.pendingcb++;i=J_t(this,n,s,t,e,r)}return i};Wn.prototype.cork=function(){this._writableState.corked++};Wn.prototype.uncork=function(){var t=this._writableState;if(t.corked){t.corked--;if(!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest)Q_e(this,t)}};Wn.prototype.setDefaultEncoding=o(function t(e){if(typeof e==="string")e=e.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new z_t(e);this._writableState.defaultEncoding=e;return this},"setDefaultEncoding");Object.defineProperty(Wn.prototype,"writableBuffer",{enumerable:false,get:o(function t(){return this._writableState&&this._writableState.getBuffer()},"get")});function W_t(t,e,r){if(!t.objectMode&&t.decodeStrings!==false&&typeof e==="string"){e=sT.from(e,r)}return e}o(W_t,"decodeChunk");Object.defineProperty(Wn.prototype,"writableHighWaterMark",{enumerable:false,get:o(function t(){return this._writableState.highWaterMark},"get")});function J_t(t,e,r,n,i,s){if(!r){var a=W_t(e,n,i);if(n!==a){r=true;i="buffer";n=a}}var u=e.objectMode?1:n.length;e.length+=u;var l=e.length<e.highWaterMark;if(!l)e.needDrain=true;if(e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null};if(c){c.next=e.lastBufferedRequest}else{e.bufferedRequest=e.lastBufferedRequest}e.bufferedRequestCount+=1}else{KF(t,e,false,u,n,i,s)}return l}o(J_t,"writeOrBuffer");function KF(t,e,r,n,i,s,a){e.writelen=n;e.writecb=a;e.writing=true;e.sync=true;if(e.destroyed)e.onwrite(new M_t("write"));else if(r)t._writev(i,e.onwrite);else t._write(i,s,e.onwrite);e.sync=false}o(KF,"doWrite");function Q_t(t,e,r,n,i){--e.pendingcb;if(r){process.nextTick(i,n);process.nextTick(gE,t,e);t._writableState.errorEmitted=true;Eg(t,n)}else{i(n);t._writableState.errorEmitted=true;Eg(t,n);gE(t,e)}}o(Q_t,"onwriteError");function X_t(t){t.writing=false;t.writecb=null;t.length-=t.writelen;t.writelen=0}o(X_t,"onwriteStateUpdate");function Z_t(t,e){var r=t._writableState;var n=r.sync;var i=r.writecb;if(typeof i!=="function")throw new F_t;X_t(r);if(e)Q_t(t,r,n,e,i);else{var s=X_e(r)||t.destroyed;if(!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest){Q_e(t,r)}if(n){process.nextTick(Y_e,t,r,s,i)}else{Y_e(t,r,s,i)}}}o(Z_t,"onwrite");function Y_e(t,e,r,n){if(!r)e4t(t,e);e.pendingcb--;n();gE(t,e)}o(Y_e,"afterWrite");function e4t(t,e){if(e.length===0&&e.needDrain){e.needDrain=false;t.emit("drain")}}o(e4t,"onwriteDrain");function Q_e(t,e){e.bufferProcessing=true;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount;var i=new Array(n);var s=e.corkedRequestsFree;s.entry=r;var a=0;var u=true;while(r){i[a]=r;if(!r.isBuf)u=false;r=r.next;a+=1}i.allBuffers=u;KF(t,e,true,e.length,i,"",s.finish);e.pendingcb++;e.lastBufferedRequest=null;if(s.next){e.corkedRequestsFree=s.next;s.next=null}else{e.corkedRequestsFree=new W_e(e)}e.bufferedRequestCount=0}else{while(r){var l=r.chunk;var c=r.encoding;var d=r.callback;var p=e.objectMode?1:l.length;KF(t,e,false,p,l,c,d);r=r.next;e.bufferedRequestCount--;if(e.writing){break}}if(r===null)e.lastBufferedRequest=null}e.bufferedRequest=r;e.bufferProcessing=false}o(Q_e,"clearBuffer");Wn.prototype._write=function(t,e,r){r(new U_t("_write()"))};Wn.prototype._writev=null;Wn.prototype.end=function(t,e,r){var n=this._writableState;if(typeof t==="function"){r=t;t=null;e=null}else if(typeof e==="function"){r=e;e=null}if(t!==null&&t!==void 0)this.write(t,e);if(n.corked){n.corked=1;this.uncork()}if(!n.ending)n4t(this,n,r);return this};Object.defineProperty(Wn.prototype,"writableLength",{enumerable:false,get:o(function t(){return this._writableState.length},"get")});function X_e(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}o(X_e,"needFinish");function t4t(t,e){t._final(function(r){e.pendingcb--;if(r){Eg(t,r)}e.prefinished=true;t.emit("prefinish");gE(t,e)})}o(t4t,"callFinal");function r4t(t,e){if(!e.prefinished&&!e.finalCalled){if(typeof t._final==="function"&&!e.destroyed){e.pendingcb++;e.finalCalled=true;process.nextTick(t4t,t,e)}else{e.prefinished=true;t.emit("prefinish")}}}o(r4t,"prefinish");function gE(t,e){var r=X_e(e);if(r){r4t(t,e);if(e.pendingcb===0){e.finished=true;t.emit("finish");if(e.autoDestroy){var n=t._readableState;if(!n||n.autoDestroy&&n.endEmitted){t.destroy()}}}}return r}o(gE,"finishMaybe");function n4t(t,e,r){e.ending=true;gE(t,e);if(r){if(e.finished)process.nextTick(r);else t.once("finish",r)}e.ended=true;t.writable=false}o(n4t,"endWritable");function i4t(t,e,r){var n=t.entry;t.entry=null;while(n){var i=n.callback;e.pendingcb--;i(r);n=n.next}e.corkedRequestsFree.next=t}o(i4t,"onCorkedFinish");Object.defineProperty(Wn.prototype,"destroyed",{enumerable:false,get:o(function t(){if(this._writableState===void 0){return false}return this._writableState.destroyed},"get"),set:o(function t(e){if(!this._writableState){return}this._writableState.destroyed=e},"set")});Wn.prototype.destroy=YF.destroy;Wn.prototype._undestroy=YF.undestroy;Wn.prototype._destroy=function(t,e){e(t)}});var Jh=_((Zar,t4e)=>{"use strict";var s4t=Object.keys||function(t){var e=[];for(var r in t){e.push(r)}return e};t4e.exports=vl;var e4e=XF();var QF=WF();Wh()(vl,e4e);{JF=s4t(QF.prototype);for(aT=0;aT<JF.length;aT++){oT=JF[aT];if(!vl.prototype[oT])vl.prototype[oT]=QF.prototype[oT]}}var JF;var oT;var aT;function vl(t){if(!(this instanceof vl))return new vl(t);e4e.call(this,t);QF.call(this,t);this.allowHalfOpen=true;if(t){if(t.readable===false)this.readable=false;if(t.writable===false)this.writable=false;if(t.allowHalfOpen===false){this.allowHalfOpen=false;this.once("end",a4t)}}}o(vl,"Duplex");Object.defineProperty(vl.prototype,"writableHighWaterMark",{enumerable:false,get:o(function t(){return this._writableState.highWaterMark},"get")});Object.defineProperty(vl.prototype,"writableBuffer",{enumerable:false,get:o(function t(){return this._writableState&&this._writableState.getBuffer()},"get")});Object.defineProperty(vl.prototype,"writableLength",{enumerable:false,get:o(function t(){return this._writableState.length},"get")});function a4t(){if(this._writableState.ended)return;process.nextTick(o4t,this)}o(a4t,"onend");function o4t(t){t.end()}o(o4t,"onEndNT");Object.defineProperty(vl.prototype,"destroyed",{enumerable:false,get:o(function t(){if(this._readableState===void 0||this._writableState===void 0){return false}return this._readableState.destroyed&&this._writableState.destroyed},"get"),set:o(function t(e){if(this._readableState===void 0||this._writableState===void 0){return}this._readableState.destroyed=e;this._writableState.destroyed=e},"set")})});var i4e=_((ZF,n4e)=>{var uT=require("buffer");var Lc=uT.Buffer;function r4e(t,e){for(var r in t){e[r]=t[r]}}o(r4e,"copyProps");if(Lc.from&&Lc.alloc&&Lc.allocUnsafe&&Lc.allocUnsafeSlow){n4e.exports=uT}else{r4e(uT,ZF);ZF.Buffer=bg}function bg(t,e,r){return Lc(t,e,r)}o(bg,"SafeBuffer");r4e(Lc,bg);bg.from=function(t,e,r){if(typeof t==="number"){throw new TypeError("Argument must not be a number")}return Lc(t,e,r)};bg.alloc=function(t,e,r){if(typeof t!=="number"){throw new TypeError("Argument must be a number")}var n=Lc(t);if(e!==void 0){if(typeof r==="string"){n.fill(e,r)}else{n.fill(e)}}else{n.fill(0)}return n};bg.allocUnsafe=function(t){if(typeof t!=="number"){throw new TypeError("Argument must be a number")}return Lc(t)};bg.allocUnsafeSlow=function(t){if(typeof t!=="number"){throw new TypeError("Argument must be a number")}return uT.SlowBuffer(t)}});var rB=_(a4e=>{"use strict";var tB=i4e().Buffer;var s4e=tB.isEncoding||function(t){t=""+t;switch(t&&t.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 true;default:return false}};function u4t(t){if(!t)return"utf8";var e;while(true){switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase();e=true}}}o(u4t,"_normalizeEncoding");function l4t(t){var e=u4t(t);if(typeof e!=="string"&&(tB.isEncoding===s4e||!s4e(t)))throw new Error("Unknown encoding: "+t);return e||t}o(l4t,"normalizeEncoding");a4e.StringDecoder=vE;function vE(t){this.encoding=l4t(t);var e;switch(this.encoding){case"utf16le":this.text=m4t;this.end=g4t;e=4;break;case"utf8":this.fillLast=p4t;e=4;break;case"base64":this.text=y4t;this.end=v4t;e=3;break;default:this.write=_4t;this.end=E4t;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=tB.allocUnsafe(e)}o(vE,"StringDecoder");vE.prototype.write=function(t){if(t.length===0)return"";var e;var r;if(this.lastNeed){e=this.fillLast(t);if(e===void 0)return"";r=this.lastNeed;this.lastNeed=0}else{r=0}if(r<t.length)return e?e+this.text(t,r):this.text(t,r);return e||""};vE.prototype.end=h4t;vE.prototype.text=f4t;vE.prototype.fillLast=function(t){if(this.lastNeed<=t.length){t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length);this.lastNeed-=t.length};function eB(t){if(t<=127)return 0;else if(t>>5===6)return 2;else if(t>>4===14)return 3;else if(t>>3===30)return 4;return t>>6===2?-1:-2}o(eB,"utf8CheckByte");function c4t(t,e,r){var n=e.length-1;if(n<r)return 0;var i=eB(e[n]);if(i>=0){if(i>0)t.lastNeed=i-1;return i}if(--n<r||i===-2)return 0;i=eB(e[n]);if(i>=0){if(i>0)t.lastNeed=i-2;return i}if(--n<r||i===-2)return 0;i=eB(e[n]);if(i>=0){if(i>0){if(i===2)i=0;else t.lastNeed=i-3}return i}return 0}o(c4t,"utf8CheckIncomplete");function d4t(t,e,r){if((e[0]&192)!==128){t.lastNeed=0;return"\uFFFD"}if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128){t.lastNeed=1;return"\uFFFD"}if(t.lastNeed>2&&e.length>2){if((e[2]&192)!==128){t.lastNeed=2;return"\uFFFD"}}}}o(d4t,"utf8CheckExtraBytes");function p4t(t){var e=this.lastTotal-this.lastNeed;var r=d4t(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length){t.copy(this.lastChar,e,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}t.copy(this.lastChar,e,0,t.length);this.lastNeed-=t.length}o(p4t,"utf8FillLast");function f4t(t,e){var r=c4t(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);t.copy(this.lastChar,0,n);return t.toString("utf8",e,n)}o(f4t,"utf8Text");function h4t(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed)return e+"\uFFFD";return e}o(h4t,"utf8End");function m4t(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=t[t.length-2];this.lastChar[1]=t[t.length-1];return r.slice(0,-1)}}return r}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=t[t.length-1];return t.toString("utf16le",e,t.length-1)}o(m4t,"utf16Text");function g4t(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}o(g4t,"utf16End");function y4t(t,e){var r=(t.length-e)%3;if(r===0)return t.toString("base64",e);this.lastNeed=3-r;this.lastTotal=3;if(r===1){this.lastChar[0]=t[t.length-1]}else{this.lastChar[0]=t[t.length-2];this.lastChar[1]=t[t.length-1]}return t.toString("base64",e,t.length-r)}o(y4t,"base64Text");function v4t(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed)return e+this.lastChar.toString("base64",0,3-this.lastNeed);return e}o(v4t,"base64End");function _4t(t){return t.toString(this.encoding)}o(_4t,"simpleWrite");function E4t(t){return t&&t.length?this.write(t):""}o(E4t,"simpleEnd")});var lT=_((ior,l4e)=>{"use strict";var o4e=_p().codes.ERR_STREAM_PREMATURE_CLOSE;function b4t(t){var e=false;return function(){if(e)return;e=true;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++){n[i]=arguments[i]}t.apply(this,n)}}o(b4t,"once");function w4t(){}o(w4t,"noop");function S4t(t){return t.setHeader&&typeof t.abort==="function"}o(S4t,"isRequest");function u4e(t,e,r){if(typeof e==="function")return u4e(t,null,e);if(!e)e={};r=b4t(r||w4t);var n=e.readable||e.readable!==false&&t.readable;var i=e.writable||e.writable!==false&&t.writable;var s=o(function h(){if(!t.writable)u()},"onlegacyfinish");var a=t._writableState&&t._writableState.finished;var u=o(function h(){i=false;a=true;if(!n)r.call(t)},"onfinish");var l=t._readableState&&t._readableState.endEmitted;var c=o(function h(){n=false;l=true;if(!i)r.call(t)},"onend");var d=o(function h(m){r.call(t,m)},"onerror");var p=o(function h(){var m;if(n&&!l){if(!t._readableState||!t._readableState.ended)m=new o4e;return r.call(t,m)}if(i&&!a){if(!t._writableState||!t._writableState.ended)m=new o4e;return r.call(t,m)}},"onclose");var f=o(function h(){t.req.on("finish",u)},"onrequest");if(S4t(t)){t.on("complete",u);t.on("abort",p);if(t.req)f();else t.on("request",f)}else if(i&&!t._writableState){t.on("end",s);t.on("close",s)}t.on("end",c);t.on("finish",u);if(e.error!==false)t.on("error",d);t.on("close",p);return function(){t.removeListener("complete",u);t.removeListener("abort",p);t.removeListener("request",f);if(t.req)t.req.removeListener("finish",u);t.removeListener("end",s);t.removeListener("close",s);t.removeListener("finish",u);t.removeListener("end",c);t.removeListener("error",d);t.removeListener("close",p)}}o(u4e,"eos");l4e.exports=u4e});var d4e=_((aor,c4e)=>{"use strict";var cT;function bp(t,e,r){if(e in t){Object.defineProperty(t,e,{value:r,enumerable:true,configurable:true,writable:true})}else{t[e]=r}return t}o(bp,"_defineProperty");var T4t=lT();var wp=Symbol("lastResolve");var Qh=Symbol("lastReject");var _E=Symbol("error");var dT=Symbol("ended");var Xh=Symbol("lastPromise");var nB=Symbol("handlePromise");var Zh=Symbol("stream");function Sp(t,e){return{value:t,done:e}}o(Sp,"createIterResult");function A4t(t){var e=t[wp];if(e!==null){var r=t[Zh].read();if(r!==null){t[Xh]=null;t[wp]=null;t[Qh]=null;e(Sp(r,false))}}}o(A4t,"readAndResolve");function x4t(t){process.nextTick(A4t,t)}o(x4t,"onReadable");function C4t(t,e){return function(r,n){t.then(function(){if(e[dT]){r(Sp(void 0,true));return}e[nB](r,n)},n)}}o(C4t,"wrapForNext");var R4t=Object.getPrototypeOf(function(){});var O4t=Object.setPrototypeOf((cT={get stream(){return this[Zh]},next:o(function t(){var e=this;var r=this[_E];if(r!==null){return Promise.reject(r)}if(this[dT]){return Promise.resolve(Sp(void 0,true))}if(this[Zh].destroyed){return new Promise(function(a,u){process.nextTick(function(){if(e[_E]){u(e[_E])}else{a(Sp(void 0,true))}})})}var n=this[Xh];var i;if(n){i=new Promise(C4t(n,this))}else{var s=this[Zh].read();if(s!==null){return Promise.resolve(Sp(s,false))}i=new Promise(this[nB])}this[Xh]=i;return i},"next")},bp(cT,Symbol.asyncIterator,function(){return this}),bp(cT,"return",o(function t(){var e=this;return new Promise(function(r,n){e[Zh].destroy(null,function(i){if(i){n(i);return}r(Sp(void 0,true))})})},"_return")),cT),R4t);var N4t=o(function t(e){var r;var n=Object.create(O4t,(r={},bp(r,Zh,{value:e,writable:true}),bp(r,wp,{value:null,writable:true}),bp(r,Qh,{value:null,writable:true}),bp(r,_E,{value:null,writable:true}),bp(r,dT,{value:e._readableState.endEmitted,writable:true}),bp(r,nB,{value:o(function i(s,a){var u=n[Zh].read();if(u){n[Xh]=null;n[wp]=null;n[Qh]=null;s(Sp(u,false))}else{n[wp]=s;n[Qh]=a}},"value"),writable:true}),r));n[Xh]=null;T4t(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[Qh];if(s!==null){n[Xh]=null;n[wp]=null;n[Qh]=null;s(i)}n[_E]=i;return}var a=n[wp];if(a!==null){n[Xh]=null;n[wp]=null;n[Qh]=null;a(Sp(void 0,true))}n[dT]=true});e.on("readable",x4t.bind(null,n));return n},"createReadableStreamAsyncIterator");c4e.exports=N4t});var m4e=_((uor,h4e)=>{"use strict";function p4e(t,e,r,n,i,s,a){try{var u=t[s](a);var l=u.value}catch(c){r(c);return}if(u.done){e(l)}else{Promise.resolve(l).then(n,i)}}o(p4e,"asyncGeneratorStep");function I4t(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var s=t.apply(e,r);function a(l){p4e(s,n,i,a,u,"next",l)}o(a,"_next");function u(l){p4e(s,n,i,a,u,"throw",l)}o(u,"_throw");a(void 0)})}}o(I4t,"_asyncToGenerator");function f4e(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);if(e)n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable});r.push.apply(r,n)}return r}o(f4e,"ownKeys");function P4t(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};if(e%2){f4e(Object(r),true).forEach(function(n){D4t(t,n,r[n])})}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(t,Object.getOwnPropertyDescriptors(r))}else{f4e(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}}return t}o(P4t,"_objectSpread");function D4t(t,e,r){if(e in t){Object.defineProperty(t,e,{value:r,enumerable:true,configurable:true,writable:true})}else{t[e]=r}return t}o(D4t,"_defineProperty");var k4t=_p().codes.ERR_INVALID_ARG_TYPE;function $4t(t,e,r){var n;if(e&&typeof e.next==="function"){n=e}else if(e&&e[Symbol.asyncIterator])n=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])n=e[Symbol.iterator]();else throw new k4t("iterable",["Iterable"],e);var i=new t(P4t({objectMode:true},r));var s=false;i._read=function(){if(!s){s=true;a()}};function a(){return u.apply(this,arguments)}o(a,"next");function u(){u=I4t(function*(){try{var l=yield n.next(),c=l.value,d=l.done;if(d){i.push(null)}else if(i.push(yield c)){a()}else{s=false}}catch(p){i.destroy(p)}});return u.apply(this,arguments)}o(u,"_next2");return i}o($4t,"from");h4e.exports=$4t});var XF=_((dor,A4e)=>{"use strict";A4e.exports=Lr;var wg;Lr.ReadableState=_4e;var cor=require("events").EventEmitter;var v4e=o(function t(e,r){return e.listeners(r).length},"EElistenerCount");var bE=UF();var pT=require("buffer").Buffer;var L4t=global.Uint8Array||function(){};function q4t(t){return pT.from(t)}o(q4t,"_uint8ArrayToBuffer");function j4t(t){return pT.isBuffer(t)||t instanceof L4t}o(j4t,"_isUint8Array");var iB=require("util");var Zt;if(iB&&iB.debuglog){Zt=iB.debuglog("stream")}else{Zt=o(function t(){},"debug")}var U4t=j_e();var dB=MF();var F4t=VF();var B4t=F4t.getHighWaterMark;var fT=_p().codes;var M4t=fT.ERR_INVALID_ARG_TYPE;var V4t=fT.ERR_STREAM_PUSH_AFTER_EOF;var H4t=fT.ERR_METHOD_NOT_IMPLEMENTED;var z4t=fT.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;var Sg;var sB;var aB;Wh()(Lr,bE);var EE=dB.errorOrDestroy;var oB=["error","close","destroy","pause","resume"];function G4t(t,e,r){if(typeof t.prependListener==="function")return t.prependListener(e,r);if(!t._events||!t._events[e])t.on(e,r);else if(Array.isArray(t._events[e]))t._events[e].unshift(r);else t._events[e]=[r,t._events[e]]}o(G4t,"prependListener");function _4e(t,e,r){wg=wg||Jh();t=t||{};if(typeof r!=="boolean")r=e instanceof wg;this.objectMode=!!t.objectMode;if(r)this.objectMode=this.objectMode||!!t.readableObjectMode;this.highWaterMark=B4t(this,t,"readableHighWaterMark",r);this.buffer=new U4t;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.paused=true;this.emitClose=t.emitClose!==false;this.autoDestroy=!!t.autoDestroy;this.destroyed=false;this.defaultEncoding=t.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(t.encoding){if(!Sg)Sg=rB().StringDecoder;this.decoder=new Sg(t.encoding);this.encoding=t.encoding}}o(_4e,"ReadableState");function Lr(t){wg=wg||Jh();if(!(this instanceof Lr))return new Lr(t);var e=this instanceof wg;this._readableState=new _4e(t,this,e);this.readable=true;if(t){if(typeof t.read==="function")this._read=t.read;if(typeof t.destroy==="function")this._destroy=t.destroy}bE.call(this)}o(Lr,"Readable");Object.defineProperty(Lr.prototype,"destroyed",{enumerable:false,get:o(function t(){if(this._readableState===void 0){return false}return this._readableState.destroyed},"get"),set:o(function t(e){if(!this._readableState){return}this._readableState.destroyed=e},"set")});Lr.prototype.destroy=dB.destroy;Lr.prototype._undestroy=dB.undestroy;Lr.prototype._destroy=function(t,e){e(t)};Lr.prototype.push=function(t,e){var r=this._readableState;var n;if(!r.objectMode){if(typeof t==="string"){e=e||r.defaultEncoding;if(e!==r.encoding){t=pT.from(t,e);e=""}n=true}}else{n=true}return E4e(this,t,e,false,n)};Lr.prototype.unshift=function(t){return E4e(this,t,null,true,false)};function E4e(t,e,r,n,i){Zt("readableAddChunk",e);var s=t._readableState;if(e===null){s.reading=false;W4t(t,s)}else{var a;if(!i)a=K4t(s,e);if(a){EE(t,a)}else if(s.objectMode||e&&e.length>0){if(typeof e!=="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==pT.prototype){e=q4t(e)}if(n){if(s.endEmitted)EE(t,new z4t);else uB(t,s,e,true)}else if(s.ended){EE(t,new V4t)}else if(s.destroyed){return false}else{s.reading=false;if(s.decoder&&!r){e=s.decoder.write(e);if(s.objectMode||e.length!==0)uB(t,s,e,false);else cB(t,s)}else{uB(t,s,e,false)}}}else if(!n){s.reading=false;cB(t,s)}}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}o(E4e,"readableAddChunk");function uB(t,e,r,n){if(e.flowing&&e.length===0&&!e.sync){e.awaitDrain=0;t.emit("data",r)}else{e.length+=e.objectMode?1:r.length;if(n)e.buffer.unshift(r);else e.buffer.push(r);if(e.needReadable)hT(t)}cB(t,e)}o(uB,"addChunk");function K4t(t,e){var r;if(!j4t(e)&&typeof e!=="string"&&e!==void 0&&!t.objectMode){r=new M4t("chunk",["string","Buffer","Uint8Array"],e)}return r}o(K4t,"chunkInvalid");Lr.prototype.isPaused=function(){return this._readableState.flowing===false};Lr.prototype.setEncoding=function(t){if(!Sg)Sg=rB().StringDecoder;var e=new Sg(t);this._readableState.decoder=e;this._readableState.encoding=this._readableState.decoder.encoding;var r=this._readableState.buffer.head;var n="";while(r!==null){n+=e.write(r.data);r=r.next}this._readableState.buffer.clear();if(n!=="")this._readableState.buffer.push(n);this._readableState.length=n.length;return this};var g4e=1073741824;function Y4t(t){if(t>=g4e){t=g4e}else{t--;t|=t>>>1;t|=t>>>2;t|=t>>>4;t|=t>>>8;t|=t>>>16;t++}return t}o(Y4t,"computeNewHighWaterMark");function y4e(t,e){if(t<=0||e.length===0&&e.ended)return 0;if(e.objectMode)return 1;if(t!==t){if(e.flowing&&e.length)return e.buffer.head.data.length;else return e.length}if(t>e.highWaterMark)e.highWaterMark=Y4t(t);if(t<=e.length)return t;if(!e.ended){e.needReadable=true;return 0}return e.length}o(y4e,"howMuchToRead");Lr.prototype.read=function(t){Zt("read",t);t=parseInt(t,10);var e=this._readableState;var r=t;if(t!==0)e.emittedReadable=false;if(t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended)){Zt("read: emitReadable",e.length,e.ended);if(e.length===0&&e.ended)lB(this);else hT(this);return null}t=y4e(t,e);if(t===0&&e.ended){if(e.length===0)lB(this);return null}var n=e.needReadable;Zt("need readable",n);if(e.length===0||e.length-t<e.highWaterMark){n=true;Zt("length less than watermark",n)}if(e.ended||e.reading){n=false;Zt("reading or ended",n)}else if(n){Zt("do read");e.reading=true;e.sync=true;if(e.length===0)e.needReadable=true;this._read(e.highWaterMark);e.sync=false;if(!e.reading)t=y4e(r,e)}var i;if(t>0)i=S4e(t,e);else i=null;if(i===null){e.needReadable=e.length<=e.highWaterMark;t=0}else{e.length-=t;e.awaitDrain=0}if(e.length===0){if(!e.ended)e.needReadable=true;if(r!==t&&e.ended)lB(this)}if(i!==null)this.emit("data",i);return i};function W4t(t,e){Zt("onEofChunk");if(e.ended)return;if(e.decoder){var r=e.decoder.end();if(r&&r.length){e.buffer.push(r);e.length+=e.objectMode?1:r.length}}e.ended=true;if(e.sync){hT(t)}else{e.needReadable=false;if(!e.emittedReadable){e.emittedReadable=true;b4e(t)}}}o(W4t,"onEofChunk");function hT(t){var e=t._readableState;Zt("emitReadable",e.needReadable,e.emittedReadable);e.needReadable=false;if(!e.emittedReadable){Zt("emitReadable",e.flowing);e.emittedReadable=true;process.nextTick(b4e,t)}}o(hT,"emitReadable");function b4e(t){var e=t._readableState;Zt("emitReadable_",e.destroyed,e.length,e.ended);if(!e.destroyed&&(e.length||e.ended)){t.emit("readable");e.emittedReadable=false}e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark;pB(t)}o(b4e,"emitReadable_");function cB(t,e){if(!e.readingMore){e.readingMore=true;process.nextTick(J4t,t,e)}}o(cB,"maybeReadMore");function J4t(t,e){while(!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0)){var r=e.length;Zt("maybeReadMore read 0");t.read(0);if(r===e.length)break}e.readingMore=false}o(J4t,"maybeReadMore_");Lr.prototype._read=function(t){EE(this,new H4t("_read()"))};Lr.prototype.pipe=function(t,e){var r=this;var n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t);break}n.pipesCount+=1;Zt("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==false)&&t!==process.stdout&&t!==process.stderr;var s=i?u:g;if(n.endEmitted)process.nextTick(s);else r.once("end",s);t.on("unpipe",a);function a(y,v){Zt("onunpipe");if(y===r){if(v&&v.hasUnpiped===false){v.hasUnpiped=true;d()}}}o(a,"onunpipe");function u(){Zt("onend");t.end()}o(u,"onend");var l=Q4t(r);t.on("drain",l);var c=false;function d(){Zt("cleanup");t.removeListener("close",h);t.removeListener("finish",m);t.removeListener("drain",l);t.removeListener("error",f);t.removeListener("unpipe",a);r.removeListener("end",u);r.removeListener("end",g);r.removeListener("data",p);c=true;if(n.awaitDrain&&(!t._writableState||t._writableState.needDrain))l()}o(d,"cleanup");r.on("data",p);function p(y){Zt("ondata");var v=t.write(y);Zt("dest.write",v);if(v===false){if((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&T4e(n.pipes,t)!==-1)&&!c){Zt("false write response, pause",n.awaitDrain);n.awaitDrain++}r.pause()}}o(p,"ondata");function f(y){Zt("onerror",y);g();t.removeListener("error",f);if(v4e(t,"error")===0)EE(t,y)}o(f,"onerror");G4t(t,"error",f);function h(){t.removeListener("finish",m);g()}o(h,"onclose");t.once("close",h);function m(){Zt("onfinish");t.removeListener("close",h);g()}o(m,"onfinish");t.once("finish",m);function g(){Zt("unpipe");r.unpipe(t)}o(g,"unpipe");t.emit("pipe",r);if(!n.flowing){Zt("pipe resume");r.resume()}return t};function Q4t(t){return o(function e(){var r=t._readableState;Zt("pipeOnDrain",r.awaitDrain);if(r.awaitDrain)r.awaitDrain--;if(r.awaitDrain===0&&v4e(t,"data")){r.flowing=true;pB(t)}},"pipeOnDrainFunctionResult")}o(Q4t,"pipeOnDrain");Lr.prototype.unpipe=function(t){var e=this._readableState;var r={hasUnpiped:false};if(e.pipesCount===0)return this;if(e.pipesCount===1){if(t&&t!==e.pipes)return this;if(!t)t=e.pipes;e.pipes=null;e.pipesCount=0;e.flowing=false;if(t)t.emit("unpipe",this,r);return this}if(!t){var n=e.pipes;var i=e.pipesCount;e.pipes=null;e.pipesCount=0;e.flowing=false;for(var s=0;s<i;s++){n[s].emit("unpipe",this,{hasUnpiped:false})}return this}var a=T4e(e.pipes,t);if(a===-1)return this;e.pipes.splice(a,1);e.pipesCount-=1;if(e.pipesCount===1)e.pipes=e.pipes[0];t.emit("unpipe",this,r);return this};Lr.prototype.on=function(t,e){var r=bE.prototype.on.call(this,t,e);var n=this._readableState;if(t==="data"){n.readableListening=this.listenerCount("readable")>0;if(n.flowing!==false)this.resume()}else if(t==="readable"){if(!n.endEmitted&&!n.readableListening){n.readableListening=n.needReadable=true;n.flowing=false;n.emittedReadable=false;Zt("on readable",n.length,n.reading);if(n.length){hT(this)}else if(!n.reading){process.nextTick(X4t,this)}}}return r};Lr.prototype.addListener=Lr.prototype.on;Lr.prototype.removeListener=function(t,e){var r=bE.prototype.removeListener.call(this,t,e);if(t==="readable"){process.nextTick(w4e,this)}return r};Lr.prototype.removeAllListeners=function(t){var e=bE.prototype.removeAllListeners.apply(this,arguments);if(t==="readable"||t===void 0){process.nextTick(w4e,this)}return e};function w4e(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0;if(e.resumeScheduled&&!e.paused){e.flowing=true}else if(t.listenerCount("data")>0){t.resume()}}o(w4e,"updateReadableListening");function X4t(t){Zt("readable nexttick read 0");t.read(0)}o(X4t,"nReadingNextTick");Lr.prototype.resume=function(){var t=this._readableState;if(!t.flowing){Zt("resume");t.flowing=!t.readableListening;Z4t(this,t)}t.paused=false;return this};function Z4t(t,e){if(!e.resumeScheduled){e.resumeScheduled=true;process.nextTick(eEt,t,e)}}o(Z4t,"resume");function eEt(t,e){Zt("resume",e.reading);if(!e.reading){t.read(0)}e.resumeScheduled=false;t.emit("resume");pB(t);if(e.flowing&&!e.reading)t.read(0)}o(eEt,"resume_");Lr.prototype.pause=function(){Zt("call pause flowing=%j",this._readableState.flowing);if(this._readableState.flowing!==false){Zt("pause");this._readableState.flowing=false;this.emit("pause")}this._readableState.paused=true;return this};function pB(t){var e=t._readableState;Zt("flow",e.flowing);while(e.flowing&&t.read()!==null){;}}o(pB,"flow");Lr.prototype.wrap=function(t){var e=this;var r=this._readableState;var n=false;t.on("end",function(){Zt("wrapped end");if(r.decoder&&!r.ended){var a=r.decoder.end();if(a&&a.length)e.push(a)}e.push(null)});t.on("data",function(a){Zt("wrapped data");if(r.decoder)a=r.decoder.write(a);if(r.objectMode&&(a===null||a===void 0))return;else if(!r.objectMode&&(!a||!a.length))return;var u=e.push(a);if(!u){n=true;t.pause()}});for(var i in t){if(this[i]===void 0&&typeof t[i]==="function"){this[i]=o(function a(u){return o(function l(){return t[u].apply(t,arguments)},"methodWrapReturnFunction")},"methodWrap")(i)}}for(var s=0;s<oB.length;s++){t.on(oB[s],this.emit.bind(this,oB[s]))}this._read=function(a){Zt("wrapped _read",a);if(n){n=false;t.resume()}};return this};if(typeof Symbol==="function"){Lr.prototype[Symbol.asyncIterator]=function(){if(sB===void 0){sB=d4e()}return sB(this)}}Object.defineProperty(Lr.prototype,"readableHighWaterMark",{enumerable:false,get:o(function t(){return this._readableState.highWaterMark},"get")});Object.defineProperty(Lr.prototype,"readableBuffer",{enumerable:false,get:o(function t(){return this._readableState&&this._readableState.buffer},"get")});Object.defineProperty(Lr.prototype,"readableFlowing",{enumerable:false,get:o(function t(){return this._readableState.flowing},"get"),set:o(function t(e){if(this._readableState){this._readableState.flowing=e}},"set")});Lr._fromList=S4e;Object.defineProperty(Lr.prototype,"readableLength",{enumerable:false,get:o(function t(){return this._readableState.length},"get")});function S4e(t,e){if(e.length===0)return null;var r;if(e.objectMode)r=e.buffer.shift();else if(!t||t>=e.length){if(e.decoder)r=e.buffer.join("");else if(e.buffer.length===1)r=e.buffer.first();else r=e.buffer.concat(e.length);e.buffer.clear()}else{r=e.buffer.consume(t,e.decoder)}return r}o(S4e,"fromList");function lB(t){var e=t._readableState;Zt("endReadable",e.endEmitted);if(!e.endEmitted){e.ended=true;process.nextTick(tEt,e,t)}}o(lB,"endReadable");function tEt(t,e){Zt("endReadableNT",t.endEmitted,t.length);if(!t.endEmitted&&t.length===0){t.endEmitted=true;e.readable=false;e.emit("end");if(t.autoDestroy){var r=e._writableState;if(!r||r.autoDestroy&&r.finished){e.destroy()}}}}o(tEt,"endReadableNT");if(typeof Symbol==="function"){Lr.from=function(t,e){if(aB===void 0){aB=m4e()}return aB(Lr,t,e)}}function T4e(t,e){for(var r=0,n=t.length;r<n;r++){if(t[r]===e)return r}return-1}o(T4e,"indexOf")});var fB=_((hor,C4e)=>{"use strict";C4e.exports=qc;var mT=_p().codes;var rEt=mT.ERR_METHOD_NOT_IMPLEMENTED;var nEt=mT.ERR_MULTIPLE_CALLBACK;var iEt=mT.ERR_TRANSFORM_ALREADY_TRANSFORMING;var sEt=mT.ERR_TRANSFORM_WITH_LENGTH_0;var gT=Jh();Wh()(qc,gT);function aEt(t,e){var r=this._transformState;r.transforming=false;var n=r.writecb;if(n===null){return this.emit("error",new nEt)}r.writechunk=null;r.writecb=null;if(e!=null)this.push(e);n(t);var i=this._readableState;i.reading=false;if(i.needReadable||i.length<i.highWaterMark){this._read(i.highWaterMark)}}o(aEt,"afterTransform");function qc(t){if(!(this instanceof qc))return new qc(t);gT.call(this,t);this._transformState={afterTransform:aEt.bind(this),needTransform:false,transforming:false,writecb:null,writechunk:null,writeencoding:null};this._readableState.needReadable=true;this._readableState.sync=false;if(t){if(typeof t.transform==="function")this._transform=t.transform;if(typeof t.flush==="function")this._flush=t.flush}this.on("prefinish",oEt)}o(qc,"Transform");function oEt(){var t=this;if(typeof this._flush==="function"&&!this._readableState.destroyed){this._flush(function(e,r){x4e(t,e,r)})}else{x4e(this,null,null)}}o(oEt,"prefinish");qc.prototype.push=function(t,e){this._transformState.needTransform=false;return gT.prototype.push.call(this,t,e)};qc.prototype._transform=function(t,e,r){r(new rEt("_transform()"))};qc.prototype._write=function(t,e,r){var n=this._transformState;n.writecb=r;n.writechunk=t;n.writeencoding=e;if(!n.transforming){var i=this._readableState;if(n.needTransform||i.needReadable||i.length<i.highWaterMark)this._read(i.highWaterMark)}};qc.prototype._read=function(t){var e=this._transformState;if(e.writechunk!==null&&!e.transforming){e.transforming=true;this._transform(e.writechunk,e.writeencoding,e.afterTransform)}else{e.needTransform=true}};qc.prototype._destroy=function(t,e){gT.prototype._destroy.call(this,t,function(r){e(r)})};function x4e(t,e,r){if(e)return t.emit("error",e);if(r!=null)t.push(r);if(t._writableState.length)throw new sEt;if(t._transformState.transforming)throw new iEt;return t.push(null)}o(x4e,"done")});var N4e=_((gor,O4e)=>{"use strict";O4e.exports=wE;var R4e=fB();Wh()(wE,R4e);function wE(t){if(!(this instanceof wE))return new wE(t);R4e.call(this,t)}o(wE,"PassThrough");wE.prototype._transform=function(t,e,r){r(null,t)}});var $4e=_((vor,k4e)=>{"use strict";var hB;function uEt(t){var e=false;return function(){if(e)return;e=true;t.apply(void 0,arguments)}}o(uEt,"once");var D4e=_p().codes;var lEt=D4e.ERR_MISSING_ARGS;var cEt=D4e.ERR_STREAM_DESTROYED;function I4e(t){if(t)throw t}o(I4e,"noop");function dEt(t){return t.setHeader&&typeof t.abort==="function"}o(dEt,"isRequest");function pEt(t,e,r,n){n=uEt(n);var i=false;t.on("close",function(){i=true});if(hB===void 0)hB=lT();hB(t,{readable:e,writable:r},function(a){if(a)return n(a);i=true;n()});var s=false;return function(a){if(i)return;if(s)return;s=true;if(dEt(t))return t.abort();if(typeof t.destroy==="function")return t.destroy();n(a||new cEt("pipe"))}}o(pEt,"destroyer");function P4e(t){t()}o(P4e,"call");function fEt(t,e){return t.pipe(e)}o(fEt,"pipe");function hEt(t){if(!t.length)return I4e;if(typeof t[t.length-1]!=="function")return I4e;return t.pop()}o(hEt,"popCallback");function mEt(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++){e[r]=arguments[r]}var n=hEt(e);if(Array.isArray(e[0]))e=e[0];if(e.length<2){throw new lEt("streams")}var i;var s=e.map(function(a,u){var l=u<e.length-1;var c=u>0;return pEt(a,l,c,function(d){if(!i)i=d;if(d)s.forEach(P4e);if(l)return;s.forEach(P4e);n(i)})});return e.reduce(fEt)}o(mEt,"pipeline");k4e.exports=mEt});var L4e=_((Eo,TE)=>{var SE=require("stream");if(process.env.READABLE_STREAM==="disable"&&SE){TE.exports=SE.Readable;Object.assign(TE.exports,SE);TE.exports.Stream=SE}else{Eo=TE.exports=XF();Eo.Stream=SE||Eo;Eo.Readable=Eo;Eo.Writable=WF();Eo.Duplex=Jh();Eo.Transform=fB();Eo.PassThrough=N4e();Eo.finished=lT();Eo.pipeline=$4e()}});var U4e=_((Eor,j4e)=>{j4e.exports=q4e;function q4e(t,e){if(t&&e)return q4e(t)(e);if(typeof t!=="function")throw new TypeError("need wrapper function");Object.keys(t).forEach(function(n){r[n]=t[n]});return r;function r(){var n=new Array(arguments.length);for(var i=0;i<n.length;i++){n[i]=arguments[i]}var s=t.apply(this,n);var a=n[n.length-1];if(typeof s==="function"&&s!==a){Object.keys(a).forEach(function(u){s[u]=a[u]})}return s}o(r,"wrapper")}o(q4e,"wrappy")});var M4e=_((wor,mB)=>{var F4e=U4e();mB.exports=F4e(yT);mB.exports.strict=F4e(B4e);yT.proto=yT(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return yT(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return B4e(this)},configurable:true})});function yT(t){var e=o(function(){if(e.called)return e.value;e.called=true;return e.value=t.apply(this,arguments)},"f");e.called=false;return e}o(yT,"once");function B4e(t){var e=o(function(){if(e.called)throw new Error(e.onceError);e.called=true;return e.value=t.apply(this,arguments)},"f");var r=t.name||"Function wrapped with `once`";e.onceError=r+" shouldn't be called more than once";e.called=false;return e}o(B4e,"onceStrict")});var z4e=_((Tor,H4e)=>{var gEt=M4e();var yEt=o(function(){},"noop");var vEt=o(function(t){return t.setHeader&&typeof t.abort==="function"},"isRequest");var _Et=o(function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},"isChildProcess");var V4e=o(function(t,e,r){if(typeof e==="function")return V4e(t,null,e);if(!e)e={};r=gEt(r||yEt);var n=t._writableState;var i=t._readableState;var s=e.readable||e.readable!==false&&t.readable;var a=e.writable||e.writable!==false&&t.writable;var u=false;var l=o(function(){if(!t.writable)c()},"onlegacyfinish");var c=o(function(){a=false;if(!s)r.call(t)},"onfinish");var d=o(function(){s=false;if(!a)r.call(t)},"onend");var p=o(function(y){r.call(t,y?new Error("exited with error code: "+y):null)},"onexit");var f=o(function(y){r.call(t,y)},"onerror");var h=o(function(){process.nextTick(m)},"onclose");var m=o(function(){if(u)return;if(s&&!(i&&(i.ended&&!i.destroyed)))return r.call(t,new Error("premature close"));if(a&&!(n&&(n.ended&&!n.destroyed)))return r.call(t,new Error("premature close"))},"onclosenexttick");var g=o(function(){t.req.on("finish",c)},"onrequest");if(vEt(t)){t.on("complete",c);t.on("abort",h);if(t.req)g();else t.on("request",g)}else if(a&&!n){t.on("end",l);t.on("close",l)}if(_Et(t))t.on("exit",p);t.on("end",d);t.on("finish",c);if(e.error!==false)t.on("error",f);t.on("close",h);return function(){u=true;t.removeListener("complete",c);t.removeListener("abort",h);t.removeListener("request",g);if(t.req)t.req.removeListener("finish",c);t.removeListener("end",l);t.removeListener("close",l);t.removeListener("finish",c);t.removeListener("exit",p);t.removeListener("end",d);t.removeListener("error",f);t.removeListener("close",h)}},"eos");H4e.exports=V4e});var K4e=_((xor,G4e)=>{G4e.exports=EEt;function EEt(t){var e=t._readableState;if(!e)return null;return e.objectMode||typeof t._duplexState==="number"?t.read():t.read(bEt(e))}o(EEt,"shift");function bEt(t){if(t.buffer.length){if(t.buffer.head){return t.buffer.head.data.length}return t.buffer[0].length}return t.length}o(bEt,"getStateLength")});var yB=_((Ror,Q4e)=>{var vT=L4e();var Y4e=z4e();var wEt=Wh();var SEt=K4e();var W4e=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from([0]):new Buffer([0]);var gB=o(function(t,e){if(t._corked)t.once("uncork",e);else e()},"onuncork");var TEt=o(function(t,e){if(t._autoDestroy)t.destroy(e)},"autoDestroy");var J4e=o(function(t,e){return function(r){if(r)TEt(t,r.message==="premature close"?null:r);else if(e&&!t._ended)t.end()}},"destroyer");var AEt=o(function(t,e){if(!t)return e();if(t._writableState&&t._writableState.finished)return e();if(t._writableState)return t.end(e);t.end();e()},"end");var xEt=o(function(){},"noop");var CEt=o(function(t){return new vT.Readable({objectMode:true,highWaterMark:16}).wrap(t)},"toStreams2");var es=o(function(t,e,r){if(!(this instanceof es))return new es(t,e,r);vT.Duplex.call(this,r);this._writable=null;this._readable=null;this._readable2=null;this._autoDestroy=!r||r.autoDestroy!==false;this._forwardDestroy=!r||r.destroy!==false;this._forwardEnd=!r||r.end!==false;this._corked=1;this._ondrain=null;this._drained=false;this._forwarding=false;this._unwrite=null;this._unread=null;this._ended=false;this.destroyed=false;if(t)this.setWritable(t);if(e)this.setReadable(e)},"Duplexify");wEt(es,vT.Duplex);es.obj=function(t,e,r){if(!r)r={};r.objectMode=true;r.highWaterMark=16;return new es(t,e,r)};es.prototype.cork=function(){if(++this._corked===1)this.emit("cork")};es.prototype.uncork=function(){if(this._corked&&--this._corked===0)this.emit("uncork")};es.prototype.setWritable=function(t){if(this._unwrite)this._unwrite();if(this.destroyed){if(t&&t.destroy)t.destroy();return}if(t===null||t===false){this.end();return}var e=this;var r=Y4e(t,{writable:true,readable:false},J4e(this,this._forwardEnd));var n=o(function(){var s=e._ondrain;e._ondrain=null;if(s)s()},"ondrain");var i=o(function(){e._writable.removeListener("drain",n);r()},"clear");if(this._unwrite)process.nextTick(n);this._writable=t;this._writable.on("drain",n);this._unwrite=i;this.uncork()};es.prototype.setReadable=function(t){if(this._unread)this._unread();if(this.destroyed){if(t&&t.destroy)t.destroy();return}if(t===null||t===false){this.push(null);this.resume();return}var e=this;var r=Y4e(t,{writable:false,readable:true},J4e(this));var n=o(function(){e._forward()},"onreadable");var i=o(function(){e.push(null)},"onend");var s=o(function(){e._readable2.removeListener("readable",n);e._readable2.removeListener("end",i);r()},"clear");this._drained=true;this._readable=t;this._readable2=t._readableState?t:CEt(t);this._readable2.on("readable",n);this._readable2.on("end",i);this._unread=s;this._forward()};es.prototype._read=function(){this._drained=true;this._forward()};es.prototype._forward=function(){if(this._forwarding||!this._readable2||!this._drained)return;this._forwarding=true;var t;while(this._drained&&(t=SEt(this._readable2))!==null){if(this.destroyed)continue;this._drained=this.push(t)}this._forwarding=false};es.prototype.destroy=function(t,e){if(!e)e=xEt;if(this.destroyed)return e(null);this.destroyed=true;var r=this;process.nextTick(function(){r._destroy(t);e(null)})};es.prototype._destroy=function(t){if(t){var e=this._ondrain;this._ondrain=null;if(e)e(t);else this.emit("error",t)}if(this._forwardDestroy){if(this._readable&&this._readable.destroy)this._readable.destroy();if(this._writable&&this._writable.destroy)this._writable.destroy()}this.emit("close")};es.prototype._write=function(t,e,r){if(this.destroyed)return;if(this._corked)return gB(this,this._write.bind(this,t,e,r));if(t===W4e)return this._finish(r);if(!this._writable)return r();if(this._writable.write(t)===false)this._ondrain=r;else if(!this.destroyed)r()};es.prototype._finish=function(t){var e=this;this.emit("preend");gB(this,function(){AEt(e._forwardEnd&&e._writable,function(){if(e._writableState.prefinished===false)e._writableState.prefinished=true;e.emit("prefinish");gB(e,t)})})};es.prototype.end=function(t,e,r){if(typeof t==="function")return this.end(null,null,t);if(typeof e==="function")return this.end(t,null,e);this._ended=true;if(t)this.write(t);if(!this._writableState.ending&&!this._writableState.destroyed)this.write(W4e);return vT.Writable.prototype.end.call(this,r)};Q4e.exports=es});var tm=_(Jn=>{"use strict";var REt=Jn&&Jn.__createBinding||(Object.create?function(t,e,r,n){if(n===void 0)n=r;var i=Object.getOwnPropertyDescriptor(e,r);if(!i||("get"in i?!e.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return e[r]}}}Object.defineProperty(t,n,i)}:function(t,e,r,n){if(n===void 0)n=r;t[n]=e[r]});var OEt=Jn&&Jn.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:true,value:e})}:function(t,e){t["default"]=e});var tEe=Jn&&Jn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null){for(var r in t)if(r!=="default"&&Object.prototype.hasOwnProperty.call(t,r))REt(e,t,r)}OEt(e,t);return e};var rEe=Jn&&Jn.__importDefault||function(t){return t&&t.__esModule?t:{"default":t}};Object.defineProperty(Jn,"__esModule",{value:true});Jn.util=Jn.Util=Jn.PartialFailureError=Jn.ApiError=Jn.GCCL_GCS_CMD_KEY=void 0;var AE=Sge();var NEt=tEe(Pge());var X4e=GS();var Z4e=rEe($ve());var IEt=require("stream");var eEe=O_e();var PEt=tEe((j1(),Hm(q1)));var vB=bB();var _B=yl();var DEt=rEe(yB());var kEt=vg();var $Et=(0,kEt.getPackageJSON)();Jn.GCCL_GCS_CMD_KEY=Symbol.for("GCCL_GCS_CMD");var _T={timeout:6e4,gzip:true,forever:true,pool:{maxSockets:Infinity}};var LEt=true;var qEt=3;var em=class t extends Error{static{o(this,"ApiError")}constructor(e){super();if(typeof e!=="object"){this.message=e||"";return}const r=e;this.code=r.code;this.errors=r.errors;this.response=r.response;try{this.errors=JSON.parse(this.response.body).error.errors}catch(n){this.errors=r.errors}this.message=t.createMultiErrorMessage(r,this.errors);Error.captureStackTrace(this)}static createMultiErrorMessage(e,r){const n=new Set;if(e.message){n.add(e.message)}if(r&&r.length){r.forEach(({message:s})=>n.add(s))}else if(e.response&&e.response.body){n.add(NEt.decode(e.response.body.toString()))}else if(!e.message){n.add("A failure occurred during this request.")}let i=Array.from(n);if(i.length>1){i=i.map((s,a)=>` ${a+1}. ${s}`);i.unshift("Multiple errors occurred during the request. Please see the `errors` array for complete details.\n");i.push("\n")}return i.join("\n")}};Jn.ApiError=em;var ET=class extends Error{static{o(this,"PartialFailureError")}constructor(e){super();const r=e;this.errors=r.errors;this.name="PartialFailureError";this.response=r.response;this.message=em.createMultiErrorMessage(r,this.errors)}};Jn.PartialFailureError=ET;var bT=class{static{o(this,"Util")}constructor(){this.ApiError=em;this.PartialFailureError=ET}noop(){}handleResp(e,r,n,i){i=i||$a.noop;const s={err:e||null,...r&&$a.parseHttpRespMessage(r),...n&&$a.parseHttpRespBody(n)};if(!s.err&&r&&typeof s.body==="object"){s.resp.body=s.body}if(s.err&&r){s.err.response=r}i(s.err,s.body,s.resp)}parseHttpRespMessage(e){const r={resp:e};if(e.statusCode<200||e.statusCode>299){r.err=new em({errors:new Array,code:e.statusCode,message:e.statusMessage,response:e})}return r}parseHttpRespBody(e){const r={body:e};if(typeof e==="string"){try{r.body=JSON.parse(e)}catch(n){r.body=e}}if(r.body&&r.body.error){r.err=new em(r.body.error)}return r}makeWritableStream(e,r,n){var i;n=n||$a.noop;const s=new EB;s.on("progress",c=>e.emit("progress",c));e.setWritable(s);const a={method:"POST",qs:{uploadType:"multipart"},timeout:0,maxRetries:0};const u=r.metadata||{};const l={...a,...r.request,qs:{...a.qs,...(i=r.request)===null||i===void 0?void 0:i.qs},multipart:[{"Content-Type":"application/json",body:JSON.stringify(u)},{"Content-Type":u.contentType||"application/octet-stream",body:s}]};r.makeAuthenticatedRequest(l,{onAuthenticated(c,d){if(c){e.destroy(c);return}_T.headers=$a._getDefaultHeaders(l[Jn.GCCL_GCS_CMD_KEY]);const p=eEe.teenyRequest.defaults(_T);p(d,(f,h,m)=>{$a.handleResp(f,h,m,(g,y)=>{if(g){e.destroy(g);return}e.emit("response",h);n(y)})})}})}shouldRetryRequest(e){if(e){if([408,429,500,502,503,504].indexOf(e.code)!==-1){return true}if(e.errors){for(const r of e.errors){const n=r.reason;if(n==="rateLimitExceeded"){return true}if(n==="userRateLimitExceeded"){return true}if(n&&n.includes("EAI_AGAIN")){return true}}}}return false}makeAuthenticatedRequestFactory(e){const r={...e};if(r.projectId===vB.DEFAULT_PROJECT_ID_TOKEN){delete r.projectId}let n;if(r.authClient instanceof X4e.GoogleAuth){n=r.authClient}else{const a={...r,authClient:r.authClient};n=new X4e.GoogleAuth(a)}function i(a,u){let l;let c;const d={...e};let p;if(!u){l=(0,DEt.default)();d.stream=l}const f=typeof u==="object"?u:void 0;const h=typeof u==="function"?u:void 0;async function m(){c=await n.getProjectId()}o(m,"setProjectId");const g=o(async(v,w)=>{const E=v;const b=v&&typeof v.message==="string"&&v.message.indexOf("Could not load the default credentials")>-1;if(b){w=a}if(!v||b){try{w=$a.decorateRequest(w,c);v=null}catch(S){if(S instanceof AE.MissingProjectIdError){try{await m();w=$a.decorateRequest(w,c);v=null}catch(T){v=v||T}}else{v=v||S}}}if(v){if(l){l.destroy(v)}else{const S=f&&f.onAuthenticated?f.onAuthenticated:h;S(v)}return}if(f&&f.onAuthenticated){f.onAuthenticated(null,w)}else{p=$a.makeRequest(w,d,(S,...T)=>{if(S&&S.code===401&&E){S=E}h(S,...T)})}},"onAuthenticated");const y=o(async()=>{try{const v=o(async()=>{if(e.projectId&&e.projectId!==vB.DEFAULT_PROJECT_ID_TOKEN){return e.projectId}if(e.projectIdRequired===false){return vB.DEFAULT_PROJECT_ID_TOKEN}return m()},"getProjectId");const w=o(async()=>{if(d.customEndpoint&&!d.useAuthWithCustomEndpoint){return a}else{return n.authorizeRequest(a)}},"authorizeRequest");const[E,b]=await Promise.all([v(),w()]);if(E){c=E}return g(null,b)}catch(v){return g(v)}},"prepareRequest");y();if(l){return l}return{abort(){setImmediate(()=>{if(p){p.abort();p=null}})}}}o(i,"makeAuthenticatedRequest");const s=i;s.getCredentials=n.getCredentials.bind(n);s.authClient=n;return s}makeRequest(e,r,n){var i,s,a,u,l;let c=LEt;if(r.autoRetry!==void 0){c=r.autoRetry}else if(((i=r.retryOptions)===null||i===void 0?void 0:i.autoRetry)!==void 0){c=r.retryOptions.autoRetry}let d=qEt;if(r.maxRetries!==void 0){d=r.maxRetries}else if(((s=r.retryOptions)===null||s===void 0?void 0:s.maxRetries)!==void 0){d=r.retryOptions.maxRetries}_T.headers=this._getDefaultHeaders(e[Jn.GCCL_GCS_CMD_KEY]);const p={request:eEe.teenyRequest.defaults(_T),retries:c!==false?d:0,noResponseRetries:c!==false?d:0,shouldRetryFn(g){var y,v;const w=$a.parseHttpRespMessage(g).err;if((y=r.retryOptions)===null||y===void 0?void 0:y.retryableErrorFn){return w&&((v=r.retryOptions)===null||v===void 0?void 0:v.retryableErrorFn(w))}return w&&$a.shouldRetryRequest(w)},maxRetryDelay:(a=r.retryOptions)===null||a===void 0?void 0:a.maxRetryDelay,retryDelayMultiplier:(u=r.retryOptions)===null||u===void 0?void 0:u.retryDelayMultiplier,totalTimeout:(l=r.retryOptions)===null||l===void 0?void 0:l.totalTimeout};if(typeof e.maxRetries==="number"){p.retries=e.maxRetries;p.noResponseRetries=e.maxRetries}if(!r.stream){return(0,Z4e.default)(e,p,(g,y,v)=>{$a.handleResp(g,y,v,n)})}const f=r.stream;let h;const m=(e.method||"GET").toUpperCase()==="GET";if(m){h=(0,Z4e.default)(e,p);f.setReadable(h)}else{h=p.request(e);f.setWritable(h)}h.on("error",f.destroy.bind(f)).on("response",f.emit.bind(f,"response")).on("complete",f.emit.bind(f,"complete"));f.abort=h.abort;return f}decorateRequest(e,r){delete e.autoPaginate;delete e.autoPaginateVal;delete e.objectMode;if(e.qs!==null&&typeof e.qs==="object"){delete e.qs.autoPaginate;delete e.qs.autoPaginateVal;e.qs=(0,AE.replaceProjectIdToken)(e.qs,r)}if(Array.isArray(e.multipart)){e.multipart=e.multipart.map(n=>{return(0,AE.replaceProjectIdToken)(n,r)})}if(e.json!==null&&typeof e.json==="object"){delete e.json.autoPaginate;delete e.json.autoPaginateVal;e.json=(0,AE.replaceProjectIdToken)(e.json,r)}e.uri=(0,AE.replaceProjectIdToken)(e.uri,r);return e}isCustomType(e,r){function n(l){return l.constructor&&l.constructor.name.toLowerCase()}o(n,"getConstructorName");const i=r.split("/");const s=i[0]&&i[0].toLowerCase();const a=i[1]&&i[1].toLowerCase();if(a&&n(e)!==a){return false}let u=e;while(true){if(n(u)===s){return true}u=u.parent;if(!u){return false}}}maybeOptionsOrCallback(e,r){return typeof e==="function"?[{},e]:[e,r]}_getDefaultHeaders(e){const r={"User-Agent":(0,_B.getUserAgentString)(),"x-goog-api-client":`${(0,_B.getRuntimeTrackingString)()} gccl/${$Et.version}-${(0,_B.getModuleFormat)()} gccl-invocation-id/${PEt.v4()}`};if(e){r["x-goog-api-client"]+=` gccl-gcs-cmd/${e}`}return r}};Jn.Util=bT;var EB=class extends IEt.Transform{static{o(this,"ProgressStream")}constructor(){super(...arguments);this.bytesRead=0}_transform(e,r,n){this.bytesRead+=e.length;this.emit("progress",{bytesWritten:this.bytesRead,contentLength:"*"});this.push(e);n()}};var $a=new bT;Jn.util=$a});var bB=_(fa=>{"use strict";var jEt=fa&&fa.__createBinding||(Object.create?function(t,e,r,n){if(n===void 0)n=r;var i=Object.getOwnPropertyDescriptor(e,r);if(!i||("get"in i?!e.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return e[r]}}}Object.defineProperty(t,n,i)}:function(t,e,r,n){if(n===void 0)n=r;t[n]=e[r]});var UEt=fa&&fa.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:true,value:e})}:function(t,e){t["default"]=e});var FEt=fa&&fa.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null){for(var r in t)if(r!=="default"&&Object.prototype.hasOwnProperty.call(t,r))jEt(e,t,r)}UEt(e,t);return e};Object.defineProperty(fa,"__esModule",{value:true});fa.Service=fa.DEFAULT_PROJECT_ID_TOKEN=void 0;var BEt=FEt((j1(),Hm(q1)));var wB=tm();var SB=yl();fa.DEFAULT_PROJECT_ID_TOKEN="{{projectId}}";var TB=class t{static{o(this,"Service")}constructor(e,r={}){this.baseUrl=e.baseUrl;this.apiEndpoint=e.apiEndpoint;this.timeout=r.timeout;this.globalInterceptors=Array.isArray(r.interceptors_)?r.interceptors_:[];this.interceptors=[];this.packageJson=e.packageJson;this.projectId=r.projectId||fa.DEFAULT_PROJECT_ID_TOKEN;this.projectIdRequired=e.projectIdRequired!==false;this.providedUserAgent=r.userAgent;const n={...e,projectIdRequired:this.projectIdRequired,projectId:this.projectId,authClient:r.authClient||e.authClient,credentials:r.credentials,keyFile:r.keyFilename,email:r.email,token:r.token};this.makeAuthenticatedRequest=wB.util.makeAuthenticatedRequestFactory(n);this.authClient=this.makeAuthenticatedRequest.authClient;this.getCredentials=this.makeAuthenticatedRequest.getCredentials;const i=!!process.env.FUNCTION_NAME;if(i){this.interceptors.push({request(s){s.forever=false;return s}})}}getRequestInterceptors(){return[].slice.call(this.globalInterceptors).concat(this.interceptors).filter(e=>typeof e.request==="function").map(e=>e.request)}getProjectId(e){if(!e){return this.getProjectIdAsync()}this.getProjectIdAsync().then(r=>e(null,r),e)}async getProjectIdAsync(){const e=await this.authClient.getProjectId();if(this.projectId===fa.DEFAULT_PROJECT_ID_TOKEN&&e){this.projectId=e}return this.projectId}request_(e,r){e={...e,timeout:this.timeout};const n=e.uri.indexOf("http")===0;const i=[this.baseUrl];if(this.projectIdRequired){if(e.projectId){i.push("projects");i.push(e.projectId)}else{i.push("projects");i.push(this.projectId)}}i.push(e.uri);if(n){i.splice(0,i.indexOf(e.uri))}e.uri=i.map(c=>{const d=/^\/*|\/*$/g;return c.replace(d,"")}).join("/").replace(/\/:/g,":");const s=this.getRequestInterceptors();const a=Array.isArray(e.interceptors_)?e.interceptors_:[];a.forEach(c=>{if(typeof c.request==="function"){s.push(c.request)}});s.forEach(c=>{e=c(e)});delete e.interceptors_;const u=this.packageJson;let l=(0,SB.getUserAgentString)();if(this.providedUserAgent){l=`${this.providedUserAgent} ${l}`}e.headers={...e.headers,"User-Agent":l,"x-goog-api-client":`${(0,SB.getRuntimeTrackingString)()} gccl/${u.version}-${(0,SB.getModuleFormat)()} gccl-invocation-id/${BEt.v4()}`};if(e[wB.GCCL_GCS_CMD_KEY]){e.headers["x-goog-api-client"]+=` gccl-gcs-cmd/${e[wB.GCCL_GCS_CMD_KEY]}`}if(e.shouldReturnStream){return this.makeAuthenticatedRequest(e)}else{this.makeAuthenticatedRequest(e,r)}}request(e,r){t.prototype.request_.call(this,e,r)}requestStream(e){const r={...e,shouldReturnStream:true};return t.prototype.request_.call(this,r)}};fa.Service=TB});var _l=_(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:true});bo.callbackifyAll=bo.callbackify=bo.promisifyAll=bo.promisify=void 0;function MEt(t,e){if(t.promisified_){return t}e=e||{};const r=Array.prototype.slice;const n=o(function(){let i;for(i=arguments.length-1;i>=0;i--){const u=arguments[i];if(typeof u==="undefined"){continue}if(typeof u!=="function"){break}return t.apply(this,arguments)}const s=r.call(arguments,0,i+1);let a=Promise;if(this&&this.Promise){a=this.Promise}return new a((u,l)=>{s.push((...c)=>{const d=r.call(c);const p=d.shift();if(p){return l(p)}if(e.singular&&d.length===1){u(d[0])}else{u(d)}});t.apply(this,s)})},"wrapper");n.promisified_=true;return n}o(MEt,"promisify");bo.promisify=MEt;function VEt(t,e){const r=e&&e.exclude||[];const n=Object.getOwnPropertyNames(t.prototype);const i=n.filter(s=>{return!r.includes(s)&&typeof t.prototype[s]==="function"&&!/(^_|(Stream|_)|promise$)|^constructor$/.test(s)});i.forEach(s=>{const a=t.prototype[s];if(!a.promisified_){t.prototype[s]=bo.promisify(a,e)}})}o(VEt,"promisifyAll");bo.promisifyAll=VEt;function HEt(t){if(t.callbackified_){return t}const e=o(function(){if(typeof arguments[arguments.length-1]!=="function"){return t.apply(this,arguments)}const r=Array.prototype.pop.call(arguments);t.apply(this,arguments).then(n=>{n=Array.isArray(n)?n:[n];r(null,...n)},n=>r(n))},"wrapper");e.callbackified_=true;return e}o(HEt,"callbackify");bo.callbackify=HEt;function zEt(t,e){const r=e&&e.exclude||[];const n=Object.getOwnPropertyNames(t.prototype);const i=n.filter(s=>{return!r.includes(s)&&typeof t.prototype[s]==="function"&&!/^_|(Stream|_)|^constructor$/.test(s)});i.forEach(s=>{const a=t.prototype[s];if(!a.callbackified_){t.prototype[s]=bo.callbackify(a)}})}o(zEt,"callbackifyAll");bo.callbackifyAll=zEt});var nEe=_(ST=>{"use strict";Object.defineProperty(ST,"__esModule",{value:true});ST.ServiceObject=void 0;var GEt=_l();var KEt=require("events");var xE=tm();var wT=class t extends KEt.EventEmitter{static{o(this,"ServiceObject")}constructor(e){super();this.metadata={};this.baseUrl=e.baseUrl;this.parent=e.parent;this.id=e.id;this.createMethod=e.createMethod;this.methods=e.methods||{};this.interceptors=[];this.projectId=e.projectId;if(e.methods){Object.getOwnPropertyNames(t.prototype).filter(r=>{return!/^request/.test(r)&&!/^getRequestInterceptors/.test(r)&&this[r]===t.prototype[r]&&!e.methods[r]}).forEach(r=>{this[r]=void 0})}}create(e,r){const n=this;const i=[this.id];if(typeof e==="function"){r=e}if(typeof e==="object"){i.push(e)}function s(...a){const[u,l]=a;if(!u){n.metadata=l.metadata;if(n.id&&l.metadata){n.id=l.metadata.id}a[1]=n}r(...a)}o(s,"onCreate");i.push(s);this.createMethod.apply(null,i)}delete(e,r){var n;const[i,s]=xE.util.maybeOptionsOrCallback(e,r);const a=i.ignoreNotFound;delete i.ignoreNotFound;const u=typeof this.methods.delete==="object"&&this.methods.delete||{};const l={method:"DELETE",uri:"",...u.reqOpts,qs:{...(n=u.reqOpts)===null||n===void 0?void 0:n.qs,...i}};t.prototype.request.call(this,l,(c,d,p)=>{if(c){if(c.code===404&&a){c=null}}s(c,p)})}exists(e,r){const[n,i]=xE.util.maybeOptionsOrCallback(e,r);this.get(n,s=>{if(s){if(s.code===404){i(null,false)}else{i(s)}return}i(null,true)})}get(e,r){const n=this;const[i,s]=xE.util.maybeOptionsOrCallback(e,r);const a=Object.assign({},i);const u=a.autoCreate&&typeof this.create==="function";delete a.autoCreate;function l(c,d,p){if(c){if(c.code===409){n.get(a,s);return}s(c,null,p);return}s(null,d,p)}o(l,"onCreate");this.getMetadata(a,(c,d)=>{if(c){if(c.code===404&&u){const p=[];if(Object.keys(a).length>0){p.push(a)}p.push(l);n.create(...p);return}s(c,null,d);return}s(null,n,d)})}getMetadata(e,r){var n;const[i,s]=xE.util.maybeOptionsOrCallback(e,r);const a=typeof this.methods.getMetadata==="object"&&this.methods.getMetadata||{};const u={uri:"",...a.reqOpts,qs:{...(n=a.reqOpts)===null||n===void 0?void 0:n.qs,...i}};t.prototype.request.call(this,u,(l,c,d)=>{this.metadata=c;s(l,this.metadata,d)})}getRequestInterceptors(){const e=this.interceptors.filter(r=>typeof r.request==="function").map(r=>r.request);return this.parent.getRequestInterceptors().concat(e)}setMetadata(e,r,n){var i,s;const[a,u]=xE.util.maybeOptionsOrCallback(r,n);const l=typeof this.methods.setMetadata==="object"&&this.methods.setMetadata||{};const c={method:"PATCH",uri:"",...l.reqOpts,json:{...(i=l.reqOpts)===null||i===void 0?void 0:i.json,...e},qs:{...(s=l.reqOpts)===null||s===void 0?void 0:s.qs,...a}};t.prototype.request.call(this,c,(d,p,f)=>{this.metadata=p;u(d,this.metadata,f)})}request_(e,r){e={...e};if(this.projectId){e.projectId=this.projectId}const n=e.uri.indexOf("http")===0;const i=[this.baseUrl,this.id||"",e.uri];if(n){i.splice(0,i.indexOf(e.uri))}e.uri=i.filter(u=>u.trim()).map(u=>{const l=/^\/*|\/*$/g;return u.replace(l,"")}).join("/");const s=Array.isArray(e.interceptors_)?e.interceptors_:[];const a=[].slice.call(this.interceptors);e.interceptors_=s.concat(a);if(e.shouldReturnStream){return this.parent.requestStream(e)}this.parent.request(e,r)}request(e,r){this.request_(e,r)}requestStream(e){const r={...e,shouldReturnStream:true};return this.request_(r)}};ST.ServiceObject=wT;(0,GEt.promisifyAll)(wT,{exclude:["getRequestInterceptors"]})});var Tp=_(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:true});El.util=El.ApiError=El.ServiceObject=El.Service=void 0;var YEt=bB();Object.defineProperty(El,"Service",{enumerable:true,get:function(){return YEt.Service}});var WEt=nEe();Object.defineProperty(El,"ServiceObject",{enumerable:true,get:function(){return WEt.ServiceObject}});var iEe=tm();Object.defineProperty(El,"ApiError",{enumerable:true,get:function(){return iEe.ApiError}});Object.defineProperty(El,"util",{enumerable:true,get:function(){return iEe.util}})});var AB=_((Uor,sEe)=>{"use strict";var JEt=o(t=>{if(t===null||t===void 0){return[]}if(Array.isArray(t)){return t}if(typeof t==="string"){return[t]}if(typeof t[Symbol.iterator]==="function"){return[...t]}return[t]},"arrify");sEe.exports=JEt});var aEe=_(TT=>{"use strict";Object.defineProperty(TT,"__esModule",{value:true});TT.ResourceStream=void 0;var QEt=require("stream");var xB=class extends QEt.Transform{static{o(this,"ResourceStream")}constructor(e,r){const n=Object.assign({objectMode:true},e.streamOptions);super(n);this._ended=false;this._maxApiCalls=e.maxApiCalls===-1?Infinity:e.maxApiCalls;this._nextQuery=e.query;this._reading=false;this._requestFn=r;this._requestsMade=0;this._resultsToSend=e.maxResults===-1?Infinity:e.maxResults}end(...e){this._ended=true;return super.end(...e)}_read(){if(this._reading){return}this._reading=true;try{this._requestFn(this._nextQuery,(e,r,n)=>{if(e){this.destroy(e);return}this._nextQuery=n;if(this._resultsToSend!==Infinity){r=r.splice(0,this._resultsToSend);this._resultsToSend-=r.length}let i=true;for(const u of r){if(this._ended){break}i=this.push(u)}const s=!this._nextQuery||this._resultsToSend<1;const a=++this._requestsMade>=this._maxApiCalls;if(s||a){this.end()}if(i&&!this._ended){setImmediate(()=>this._read())}this._reading=false})}catch(e){this.destroy(e)}}};TT.ResourceStream=xB});var CB=_(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:true});Ap.ResourceStream=Ap.paginator=Ap.Paginator=void 0;var XEt=AB();var oEe=U4();var uEe=aEe();Object.defineProperty(Ap,"ResourceStream",{enumerable:true,get:function(){return uEe.ResourceStream}});var AT=class{static{o(this,"Paginator")}extend(e,r){r=XEt(r);r.forEach(n=>{const i=e.prototype[n];e.prototype[n+"_"]=i;e.prototype[n]=function(...s){const a=Tg.parseArguments_(s);return Tg.run_(a,i.bind(this))}})}streamify(e){return function(...r){const n=Tg.parseArguments_(r);const i=this[e+"_"]||this[e];return Tg.runAsStream_(n,i.bind(this))}}parseArguments_(e){let r;let n=true;let i=-1;let s=-1;let a;const u=e[0];const l=e[e.length-1];if(typeof u==="function"){a=u}else{r=u}if(typeof l==="function"){a=l}if(typeof r==="object"){r=oEe(true,{},r);if(r.maxResults&&typeof r.maxResults==="number"){s=r.maxResults}else if(typeof r.pageSize==="number"){s=r.pageSize}if(r.maxApiCalls&&typeof r.maxApiCalls==="number"){i=r.maxApiCalls;delete r.maxApiCalls}if(s!==-1||r.autoPaginate===false){n=false}}const c={query:r||{},autoPaginate:n,maxApiCalls:i,maxResults:s,callback:a};c.streamOptions=oEe(true,{},c.query);delete c.streamOptions.autoPaginate;delete c.streamOptions.maxResults;delete c.streamOptions.pageSize;return c}run_(e,r){const n=e.query;const i=e.callback;if(!e.autoPaginate){return r(n,i)}const s=new Array;const a=new Promise((u,l)=>{Tg.runAsStream_(e,r).on("error",l).on("data",c=>s.push(c)).on("end",()=>u(s))});if(!i){return a.then(u=>[u])}a.then(u=>i(null,u),u=>i(u))}runAsStream_(e,r){return new uEe.ResourceStream(e,r)}};Ap.Paginator=AT;var Tg=new AT;Ap.paginator=Tg});var lEe=_((zor,ZEt)=>{ZEt.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/3gpp-ims+xml":{source:"iana",compressible:true},"application/3gpphal+json":{source:"iana",compressible:true},"application/3gpphalforms+json":{source:"iana",compressible:true},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:true},"application/alto-costmap+json":{source:"iana",compressible:true},"application/alto-costmapfilter+json":{source:"iana",compressible:true},"application/alto-directory+json":{source:"iana",compressible:true},"application/alto-endpointcost+json":{source:"iana",compressible:true},"application/alto-endpointcostparams+json":{source:"iana",compressible:true},"application/alto-endpointprop+json":{source:"iana",compressible:true},"application/alto-endpointpropparams+json":{source:"iana",compressible:true},"application/alto-error+json":{source:"iana",compressible:true},"application/alto-networkmap+json":{source:"iana",compressible:true},"application/alto-networkmapfilter+json":{source:"iana",compressible:true},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:true},"application/alto-updatestreamparams+json":{source:"iana",compressible:true},"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:true,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:true,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:true,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:true,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:true,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:true,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:true},"application/atsc-rsat+xml":{source:"iana",compressible:true,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:true},"application/bacnet-xdd+zip":{source:"iana",compressible:false},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:false,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/calendar+json":{source:"iana",compressible:true},"application/calendar+xml":{source:"iana",compressible:true,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:true},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:true},"application/ccxml+xml":{source:"iana",compressible:true,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:true,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:true},"application/cellml+xml":{source:"iana",compressible:true},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:true},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:true},"application/clue_info+xml":{source:"iana",compressible:true},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:true},"application/coap-group+json":{source:"iana",compressible:true},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:true},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:true,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:true},"application/cstadata+xml":{source:"iana",compressible:true},"application/csvm+json":{source:"iana",compressible:true},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:true},"application/dash+xml":{source:"iana",compressible:true,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:true,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:true,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:true},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:true},"application/dicom+xml":{source:"iana",compressible:true},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:true},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:true,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:true},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:true,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:true,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:false},"application/edifact":{source:"iana",compressible:false},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:true},"application/elm+xml":{source:"iana",compressible:true},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/emergencycalldata.comment+xml":{source:"iana",compressible:true},"application/emergencycalldata.control+xml":{source:"iana",compressible:true},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:true},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:true},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:true},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:true},"application/emergencycalldata.veds+xml":{source:"iana",compressible:true},"application/emma+xml":{source:"iana",compressible:true,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:true,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:true},"application/epub+zip":{source:"iana",compressible:false,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:true},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:true,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:true},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/fido.trusted-apps+json":{compressible:true},"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:false},"application/framework-attributes+xml":{source:"iana",compressible:true},"application/geo+json":{source:"iana",compressible:true,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:true},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:true,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:true,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:false,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:true},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:true},"application/ibe-pkg-reply+xml":{source:"iana",compressible:true},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:true},"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:true,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:true,extensions:["its"]},"application/java-archive":{source:"apache",compressible:false,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:false,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:false,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:true,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:true},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:true},"application/jrd+json":{source:"iana",compressible:true},"application/jscalendar+json":{source:"iana",compressible:true},"application/json":{source:"iana",charset:"UTF-8",compressible:true,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:true},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:true,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:true},"application/jwk-set+json":{source:"iana",compressible:true},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:true},"application/kpml-response+xml":{source:"iana",compressible:true},"application/ld+json":{source:"iana",compressible:true,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:true,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:true},"application/lost+xml":{source:"iana",compressible:true,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:true},"application/lpf+zip":{source:"iana",compressible:false},"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:true,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:true,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:true,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:true,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:true},"application/mathml-presentation+xml":{source:"iana",compressible:true},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:true},"application/mbms-deregister+xml":{source:"iana",compressible:true},"application/mbms-envelope+xml":{source:"iana",compressible:true},"application/mbms-msk+xml":{source:"iana",compressible:true},"application/mbms-msk-response+xml":{source:"iana",compressible:true},"application/mbms-protection-description+xml":{source:"iana",compressible:true},"application/mbms-reception-report+xml":{source:"iana",compressible:true},"application/mbms-register+xml":{source:"iana",compressible:true},"application/mbms-register-response+xml":{source:"iana",compressible:true},"application/mbms-schedule+xml":{source:"iana",compressible:true},"application/mbms-user-service-description+xml":{source:"iana",compressible:true},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:true,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:true},"application/mediaservercontrol+xml":{source:"iana",compressible:true,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:true},"application/metalink+xml":{source:"apache",compressible:true,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:true,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:true,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:true,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:true,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:true,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:true},"application/mrb-publish+xml":{source:"iana",compressible:true},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/msword":{source:"iana",compressible:false,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:true},"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:true},"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:false,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:true},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:true,extensions:["opf"]},"application/ogg":{source:"iana",compressible:false,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:true,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:true},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:false},"application/p2p-overlay+xml":{source:"iana",compressible:true,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:true,extensions:["xer"]},"application/pdf":{source:"iana",compressible:false,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:false,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:true},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:true},"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:true,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/postscript":{source:"iana",compressible:true,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:true},"application/problem+json":{source:"iana",compressible:true},"application/problem+xml":{source:"iana",compressible:true},"application/provenance+xml":{source:"iana",compressible:true,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:false},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:true},"application/pskc+xml":{source:"iana",compressible:true,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:true},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:true,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:true},"application/rdf+xml":{source:"iana",compressible:true,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:true,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:true},"application/resource-lists+xml":{source:"iana",compressible:true,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:true,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:true},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:true},"application/rls-services+xml":{source:"iana",compressible:true,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:true,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:true,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:true,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:true,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:true,extensions:["rss"]},"application/rtf":{source:"iana",compressible:true,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:true},"application/samlmetadata+xml":{source:"iana",compressible:true},"application/sarif+json":{source:"iana",compressible:true},"application/sarif-external-properties+json":{source:"iana",compressible:true},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:true,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:true},"application/scim+json":{source:"iana",compressible:true},"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:true},"application/senml+xml":{source:"iana",compressible:true,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:true},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:true},"application/sensml+xml":{source:"iana",compressible:true,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:true},"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:true,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:true},"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:true,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:true},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:true,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:true},"application/spirits-event+xml":{source:"iana",compressible:true},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:true,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:true,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:true,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:true,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:true},"application/swid+xml":{source:"iana",compressible:true,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:true},"application/taxii+json":{source:"iana",compressible:true},"application/td+json":{source:"iana",compressible:true},"application/tei+xml":{source:"iana",compressible:true,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:true,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:true},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:true,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:true,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:false,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:true},"application/urc-ressheet+xml":{source:"iana",compressible:true,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:true,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:true},"application/vcard+json":{source:"iana",compressible:true},"application/vcard+xml":{source:"iana",compressible:true},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:true,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:true},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:true},"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:true},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:true},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:true},"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:true},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:true},"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:true},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:true},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:true},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:true},"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:false,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:true,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:true},"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:true},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:false,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:true},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:true},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:true},"application/vnd.apple.installer+xml":{source:"iana",compressible:true,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:false,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:true},"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:true},"application/vnd.avistar+xml":{source:"iana",compressible:true},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:true,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:true},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:true},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:true},"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:true},"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:true},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:true,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:true,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:true},"application/vnd.collection.doc+json":{source:"iana",compressible:true},"application/vnd.collection.next+json":{source:"iana",compressible:true},"application/vnd.comicbook+zip":{source:"iana",compressible:false},"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:true},"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:true,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:true},"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:true},"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:true},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:true},"application/vnd.cyclonedx+xml":{source:"iana",compressible:true},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:false},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:true,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:true},"application/vnd.dataresource+json":{source:"iana",compressible:true},"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:true,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:true},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:true},"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:true},"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:true},"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:true},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:true},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:true},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:true},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:true},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:true},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:true},"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:true},"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:true},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:true},"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:false},"application/vnd.eszigno3+xml":{source:"iana",compressible:true,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:true},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:false},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:false},"application/vnd.etsi.cug+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:true},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:true},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:true},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:true},"application/vnd.etsi.sci+xml":{source:"iana",compressible:true},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:true},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:true},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:true},"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:false},"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:false},"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:false},"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:true},"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:true},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:true},"application/vnd.geo+json":{source:"iana",compressible:true},"application/vnd.geocube+xml":{source:"iana",compressible:true},"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:false,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:false,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:false,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:true,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:false,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:true},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:false},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:true},"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:true},"application/vnd.hal+xml":{source:"iana",compressible:true,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:true,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:true},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:true},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:true},"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:true},"application/vnd.hyper-item+json":{source:"iana",compressible:true},"application/vnd.hyperdrive+json":{source:"iana",compressible:true},"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:false},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:false},"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:true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:true},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:true},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:true},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:true},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:true},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:true},"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:true},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:true},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:true},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:true},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:true},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:true},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:true},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:true,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:false},"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:true},"application/vnd.las.las+xml":{source:"iana",compressible:true,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:true},"application/vnd.liberty-request+xml":{source:"iana",compressible:true},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:true,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:false},"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:true},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:true},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:true},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:true},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:false},"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:true},"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:true},"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:true,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:false,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:true,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:true},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:true},"application/vnd.ms-outlook":{compressible:false,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:true},"application/vnd.ms-powerpoint":{source:"iana",compressible:false,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:true},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:true},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:true},"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:false,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:true},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:true},"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:true},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:true},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:true},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:true},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:true,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:true},"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:false,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:false,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:false,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:false,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:true},"application/vnd.oftn.l10n+json":{source:"iana",compressible:true},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:true},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:true},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:true},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:true},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:true},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:true},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:true},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:true},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:true},"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:true},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:true},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:true},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:true},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:true},"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:true},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:true},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:true},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:true},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:true},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:true},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:true},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:true,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:true},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:true},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:true},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:true},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:true},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:true},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:true},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:true},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:true},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:true},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:true},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:true},"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:true,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:true,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:false,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:false,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:false,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:true},"application/vnd.oracle.resource+json":{source:"iana",compressible:true},"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:true},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:true},"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:true},"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:true},"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:true},"application/vnd.radisys.msml+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:true},"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:true,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:true},"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:true,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:true},"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:true},"application/vnd.shopkick+json":{source:"iana",compressible:true},"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:true},"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:true,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:true,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:true,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:true},"application/vnd.syft+json":{source:"iana",compressible:true},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:true,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:true,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:true,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:true},"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:true},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:true},"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:true,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:true},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:true},"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:true},"application/vnd.wv.ssp+xml":{source:"iana",compressible:true},"application/vnd.xacml+json":{source:"iana",compressible:true},"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:true},"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:true,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:true,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:true,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:true},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:true,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:true,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:true},"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:true,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:true,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:false,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:false,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:false,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:false,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:false,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:false},"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:true,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:true,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:true,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:false,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:true,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:false,extensions:["jnlp"]},"application/x-javascript":{compressible:true},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:false,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:false},"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:true,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:false,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:false,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:true,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:false,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:false,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:true,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:true,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:true,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:true,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:true,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:false,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:true,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:true,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:true,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:true,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:true},"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:true,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:false,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:true},"application/xaml+xml":{source:"apache",compressible:true,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:true,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:true,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:true,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:true,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:true},"application/xcap-ns+xml":{source:"iana",compressible:true,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:true},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:true},"application/xenc+xml":{source:"iana",compressible:true,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:true,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:true},"application/xliff+xml":{source:"iana",compressible:true,extensions:["xlf"]},"application/xml":{source:"iana",compressible:true,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:true,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:true},"application/xmpp+xml":{source:"iana",compressible:true},"application/xop+xml":{source:"iana",compressible:true,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:true,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:true,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:true,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:true,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:true},"application/yang-data+xml":{source:"iana",compressible:true},"application/yang-patch+json":{source:"iana",compressible:true},"application/yang-patch+xml":{source:"iana",compressible:true},"application/yin+xml":{source:"iana",compressible:true,extensions:["yin"]},"application/zip":{source:"iana",compressible:false,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:false,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:false,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:false},"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:false,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:false,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:false,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:false,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:false},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:false},"audio/vorbis":{source:"iana",compressible:false},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:false,extensions:["wav"]},"audio/wave":{compressible:false,extensions:["wav"]},"audio/webm":{source:"apache",compressible:false,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:false,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:false,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:true,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:true,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:false,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:false,extensions:["avif"]},"image/bmp":{source:"iana",compressible:true,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:false,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:false,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:false,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:false,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:false,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:false},"image/png":{source:"iana",compressible:false,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:true,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:false,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:true,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:true,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:true,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:true,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:true,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:false},"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:false},"message/imdn+xml":{source:"iana",compressible:true},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:false},"message/rfc822":{source:"iana",compressible:true,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:true,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:true,extensions:["glb"]},"model/iges":{source:"iana",compressible:false,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:false,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:true,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:false,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:false,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:true,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:true},"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:false,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:false,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:false,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:false,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:true,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:false},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:false},"multipart/form-data":{source:"iana",compressible:false},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:false},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:false},"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:true,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:true},"text/cmd":{compressible:true},"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:true,extensions:["css"]},"text/csv":{source:"iana",compressible:true,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:true,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:true},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:true,extensions:["jsx"]},"text/less":{compressible:true,extensions:["less"]},"text/markdown":{source:"iana",compressible:true,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:true,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:true,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:true,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:true,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:true,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:true,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:true,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:true,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:true,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:true},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:true},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:true,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:true,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:true,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:true,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:true,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:true,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:false,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:false,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:false,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:false,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:false,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:false,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:false,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:false,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:true},"x-shader/x-vertex":{compressible:true}}});var RB=_((Gor,cEe)=>{cEe.exports=lEe()});var OB=_(ha=>{"use strict";var xT=RB();var e6t=require("path").extname;var dEe=/^\s*([^;\s]*)(?:;|\s|$)/;var t6t=/^text\//i;ha.charset=pEe;ha.charsets={lookup:pEe};ha.contentType=r6t;ha.extension=n6t;ha.extensions=Object.create(null);ha.lookup=i6t;ha.types=Object.create(null);s6t(ha.extensions,ha.types);function pEe(t){if(!t||typeof t!=="string"){return false}var e=dEe.exec(t);var r=e&&xT[e[1].toLowerCase()];if(r&&r.charset){return r.charset}if(e&&t6t.test(e[1])){return"UTF-8"}return false}o(pEe,"charset");function r6t(t){if(!t||typeof t!=="string"){return false}var e=t.indexOf("/")===-1?ha.lookup(t):t;if(!e){return false}if(e.indexOf("charset")===-1){var r=ha.charset(e);if(r)e+="; charset="+r.toLowerCase()}return e}o(r6t,"contentType");function n6t(t){if(!t||typeof t!=="string"){return false}var e=dEe.exec(t);var r=e&&ha.extensions[e[1].toLowerCase()];if(!r||!r.length){return false}return r[0]}o(n6t,"extension");function i6t(t){if(!t||typeof t!=="string"){return false}var e=e6t("x."+t).toLowerCase().substr(1);if(!e){return false}return ha.types[e]||false}o(i6t,"lookup");function s6t(t,e){var r=["nginx","apache",void 0,"iana"];Object.keys(xT).forEach(o(function n(i){var s=xT[i];var a=s.extensions;if(!a||!a.length){return}t[i]=a;for(var u=0;u<a.length;u++){var l=a[u];if(e[l]){var c=r.indexOf(xT[e[l]].source);var d=r.indexOf(s.source);if(e[l]!=="application/octet-stream"&&(c>d||c===d&&e[l].substr(0,12)==="application/")){continue}}e[l]=i}},"forEachMimeType"))}o(s6t,"populateMaps")});var hEe=_((Wor,fEe)=>{var NB=class{static{o(this,"Node")}constructor(e){this.value=e;this.next=void 0}};var IB=class{static{o(this,"Queue")}constructor(){this.clear()}enqueue(e){const r=new NB(e);if(this._head){this._tail.next=r;this._tail=r}else{this._head=r;this._tail=r}this._size++}dequeue(){const e=this._head;if(!e){return}this._head=this._head.next;this._size--;return e.value}clear(){this._head=void 0;this._tail=void 0;this._size=0}get size(){return this._size}*[Symbol.iterator](){let e=this._head;while(e){yield e.value;e=e.next}}};fEe.exports=IB});var PB=_((Qor,mEe)=>{"use strict";var a6t=hEe();var o6t=o(t=>{if(!((Number.isInteger(t)||t===Infinity)&&t>0)){throw new TypeError("Expected `concurrency` to be a number from 1 and up")}const e=new a6t;let r=0;const n=o(()=>{r--;if(e.size>0){e.dequeue()()}},"next");const i=o(async(u,l,...c)=>{r++;const d=(async()=>u(...c))();l(d);try{await d}catch{}n()},"run");const s=o((u,l,...c)=>{e.enqueue(i.bind(null,u,l,...c));(async()=>{await Promise.resolve();if(r<t&&e.size>0){e.dequeue()()}})()},"enqueue");const a=o((u,...l)=>new Promise(c=>{s(u,c,...l)}),"generator");Object.defineProperties(a,{activeCount:{get:()=>r},pendingCount:{get:()=>e.size},clearQueue:{value:()=>{e.clear()}}});return a},"pLimit");mEe.exports=o6t});var yEe=_((Zor,gEe)=>{function wo(t,e){if(typeof e==="boolean"){e={forever:e}}this._originalTimeouts=JSON.parse(JSON.stringify(t));this._timeouts=t;this._options=e||{};this._maxRetryTime=e&&e.maxRetryTime||Infinity;this._fn=null;this._errors=[];this._attempts=1;this._operationTimeout=null;this._operationTimeoutCb=null;this._timeout=null;this._operationStart=null;this._timer=null;if(this._options.forever){this._cachedTimeouts=this._timeouts.slice(0)}}o(wo,"RetryOperation");gEe.exports=wo;wo.prototype.reset=function(){this._attempts=1;this._timeouts=this._originalTimeouts.slice(0)};wo.prototype.stop=function(){if(this._timeout){clearTimeout(this._timeout)}if(this._timer){clearTimeout(this._timer)}this._timeouts=[];this._cachedTimeouts=null};wo.prototype.retry=function(t){if(this._timeout){clearTimeout(this._timeout)}if(!t){return false}var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime){this._errors.push(t);this._errors.unshift(new Error("RetryOperation timeout occurred"));return false}this._errors.push(t);var r=this._timeouts.shift();if(r===void 0){if(this._cachedTimeouts){this._errors.splice(0,this._errors.length-1);r=this._cachedTimeouts.slice(-1)}else{return false}}var n=this;this._timer=setTimeout(function(){n._attempts++;if(n._operationTimeoutCb){n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout);if(n._options.unref){n._timeout.unref()}}n._fn(n._attempts)},r);if(this._options.unref){this._timer.unref()}return true};wo.prototype.attempt=function(t,e){this._fn=t;if(e){if(e.timeout){this._operationTimeout=e.timeout}if(e.cb){this._operationTimeoutCb=e.cb}}var r=this;if(this._operationTimeoutCb){this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)}this._operationStart=new Date().getTime();this._fn(this._attempts)};wo.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated");this.attempt(t)};wo.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated");this.attempt(t)};wo.prototype.start=wo.prototype.try;wo.prototype.errors=function(){return this._errors};wo.prototype.attempts=function(){return this._attempts};wo.prototype.mainError=function(){if(this._errors.length===0){return null}var t={};var e=null;var r=0;for(var n=0;n<this._errors.length;n++){var i=this._errors[n];var s=i.message;var a=(t[s]||0)+1;t[s]=a;if(a>=r){e=i;r=a}}return e}});var vEe=_(rm=>{var u6t=yEe();rm.operation=function(t){var e=rm.timeouts(t);return new u6t(e,{forever:t&&(t.forever||t.retries===Infinity),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};rm.timeouts=function(t){if(t instanceof Array){return[].concat(t)}var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:Infinity,randomize:false};for(var r in t){e[r]=t[r]}if(e.minTimeout>e.maxTimeout){throw new Error("minTimeout is greater than maxTimeout")}var n=[];for(var i=0;i<e.retries;i++){n.push(this.createTimeout(i,e))}if(t&&t.forever&&!n.length){n.push(this.createTimeout(i,e))}n.sort(function(s,a){return s-a});return n};rm.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1;var n=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));n=Math.min(n,e.maxTimeout);return n};rm.wrap=function(t,e,r){if(e instanceof Array){r=e;e=null}if(!r){r=[];for(var n in t){if(typeof t[n]==="function"){r.push(n)}}}for(var i=0;i<r.length;i++){var s=r[i];var a=t[s];t[s]=o(function u(l){var c=rm.operation(e);var d=Array.prototype.slice.call(arguments,1);var p=d.pop();d.push(function(f){if(c.retry(f)){return}if(f){arguments[0]=c.mainError()}p.apply(this,arguments)});c.attempt(function(){l.apply(t,d)})},"retryWrapper").bind(t,a);t[s].options=e}}});var EEe=_((nur,_Ee)=>{_Ee.exports=vEe()});var CE=_((iur,bEe)=>{var l6t=EEe();function c6t(t,e){function r(n,i){var s=e||{};var a;if(!("randomize"in s)){s.randomize=true}a=l6t.operation(s);function u(d){i(d||new Error("Aborted"))}o(u,"bail");function l(d,p){if(d.bail){u(d);return}if(!a.retry(d)){i(a.mainError())}else if(s.onRetry){s.onRetry(d,p)}}o(l,"onError");function c(d){var p;try{p=t(u,d)}catch(f){l(f,d);return}Promise.resolve(p).then(n).catch(o(function f(h){l(h,d)},"catchIt"))}o(c,"runAttempt");a.attempt(c)}o(r,"run");return new Promise(r)}o(c6t,"retry");bEe.exports=c6t});var DB=_(Ag=>{"use strict";Object.defineProperty(Ag,"__esModule",{value:true});Ag.AclRoleAccessorMethods=Ag.Acl=void 0;var d6t=_l();var nm=class t{static{o(this,"AclRoleAccessorMethods")}constructor(){this.owners={};this.readers={};this.writers={};this.owners={};this.readers={};this.writers={};t.roles.forEach(this._assignAccessMethods.bind(this))}_assignAccessMethods(e){const r=t.accessMethods;const n=t.entities;const i=e.toLowerCase()+"s";this[i]=n.reduce((s,a)=>{const u=a.charAt(a.length-1)==="-";r.forEach(l=>{let c=l+a[0].toUpperCase()+a.substring(1);if(u){c=c.replace("-","")}s[c]=(d,p,f)=>{let h;if(typeof p==="function"){f=p;p={}}if(u){h=a+d}else{h=a;f=d}p=Object.assign({entity:h,role:e},p);const m=[p];if(typeof f==="function"){m.push(f)}return this[l].apply(this,m)}});return s},{})}};Ag.AclRoleAccessorMethods=nm;nm.accessMethods=["add","delete"];nm.entities=["allAuthenticatedUsers","allUsers","domain-","group-","project-","user-"];nm.roles=["OWNER","READER","WRITER"];var CT=class extends nm{static{o(this,"Acl")}constructor(e){super();this.pathPrefix=e.pathPrefix;this.request_=e.request}add(e,r){const n={};if(e.generation){n.generation=e.generation}if(e.userProject){n.userProject=e.userProject}this.request({method:"POST",uri:"",qs:n,maxRetries:0,json:{entity:e.entity,role:e.role.toUpperCase()}},(i,s)=>{if(i){r(i,null,s);return}r(null,this.makeAclObject_(s),s)})}delete(e,r){const n={};if(e.generation){n.generation=e.generation}if(e.userProject){n.userProject=e.userProject}this.request({method:"DELETE",uri:"/"+encodeURIComponent(e.entity),qs:n},(i,s)=>{r(i,s)})}get(e,r){const n=typeof e==="object"?e:null;const i=typeof e==="function"?e:r;let s="";const a={};if(n){s="/"+encodeURIComponent(n.entity);if(n.generation){a.generation=n.generation}if(n.userProject){a.userProject=n.userProject}}this.request({uri:s,qs:a},(u,l)=>{if(u){i(u,null,l);return}let c;if(l.items){c=l.items.map(this.makeAclObject_)}else{c=this.makeAclObject_(l)}i(null,c,l)})}update(e,r){const n={};if(e.generation){n.generation=e.generation}if(e.userProject){n.userProject=e.userProject}this.request({method:"PUT",uri:"/"+encodeURIComponent(e.entity),qs:n,json:{role:e.role.toUpperCase()}},(i,s)=>{if(i){r(i,null,s);return}r(null,this.makeAclObject_(s),s)})}makeAclObject_(e){const r={entity:e.entity,role:e.role};if(e.projectTeam){r.projectTeam=e.projectTeam}return r}request(e,r){e.uri=this.pathPrefix+e.uri;this.request_(e,r)}};Ag.Acl=CT;(0,d6t.promisifyAll)(CT,{exclude:["request"]})});var SEe=_((uur,wEe)=>{"use strict";var p6t=RB();var f6t=/^text\/|\+(?:json|text|xml)$/i;var h6t=/^\s*([^;\s]*)(?:;|\s|$)/;wEe.exports=m6t;function m6t(t){if(!t||typeof t!=="string"){return false}var e=h6t.exec(t);var r=e&&e[1].toLowerCase();var n=p6t[r];if(n&&n.compressible!==void 0){return n.compressible}return f6t.test(r)||void 0}o(m6t,"compressible")});var AEe=_((cur,TEe)=>{"use strict";function RT(){this._types=Object.create(null);this._extensions=Object.create(null);for(let t=0;t<arguments.length;t++){this.define(arguments[t])}this.define=this.define.bind(this);this.getType=this.getType.bind(this);this.getExtension=this.getExtension.bind(this)}o(RT,"Mime");RT.prototype.define=function(t,e){for(let r in t){let n=t[r].map(function(i){return i.toLowerCase()});r=r.toLowerCase();for(let i=0;i<n.length;i++){const s=n[i];if(s[0]==="*"){continue}if(!e&&s in this._types){throw new Error('Attempt to change mapping for "'+s+'" extension from "'+this._types[s]+'" to "'+r+'". Pass `force=true` to allow this, otherwise remove "'+s+'" from the list of extensions for "'+r+'".')}this._types[s]=r}if(e||!this._extensions[r]){const i=n[0];this._extensions[r]=i[0]!=="*"?i:i.substr(1)}}};RT.prototype.getType=function(t){t=String(t);let e=t.replace(/^.*[/\\]/,"").toLowerCase();let r=e.replace(/^.*\./,"").toLowerCase();let n=e.length<t.length;let i=r.length<e.length-1;return(i||!n)&&this._types[r]||null};RT.prototype.getExtension=function(t){t=/^\s*([^;\s]*)/.test(t)&&RegExp.$1;return t&&this._extensions[t.toLowerCase()]||null};TEe.exports=RT});var CEe=_((pur,xEe)=>{xEe.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}});var OEe=_((fur,REe)=>{REe.exports={"application/prs.cww":["cww"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.sap.vds":["vds"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}});var IEe=_((hur,NEe)=>{"use strict";var g6t=AEe();NEe.exports=new g6t(CEe(),OEe())});var BEe=_((NE,OE)=>{"use strict";Object.defineProperty(NE,"__esModule",{value:true});var qEe=new WeakMap;var kB=new WeakMap;function On(t){const e=qEe.get(t);console.assert(e!=null,"'this' is expected an Event object, but got",t);return e}o(On,"pd");function PEe(t){if(t.passiveListener!=null){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener)}return}if(!t.event.cancelable){return}t.canceled=true;if(typeof t.event.preventDefault==="function"){t.event.preventDefault()}}o(PEe,"setCancelFlag");function xg(t,e){qEe.set(this,{eventTarget:t,event:e,eventPhase:2,currentTarget:t,canceled:false,stopped:false,immediateStopped:false,passiveListener:null,timeStamp:e.timeStamp||Date.now()});Object.defineProperty(this,"isTrusted",{value:false,enumerable:true});const r=Object.keys(e);for(let n=0;n<r.length;++n){const i=r[n];if(!(i in this)){Object.defineProperty(this,i,jEe(i))}}}o(xg,"Event");xg.prototype={get type(){return On(this).event.type},get target(){return On(this).eventTarget},get currentTarget(){return On(this).currentTarget},composedPath(){const t=On(this).currentTarget;if(t==null){return[]}return[t]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return On(this).eventPhase},stopPropagation(){const t=On(this);t.stopped=true;if(typeof t.event.stopPropagation==="function"){t.event.stopPropagation()}},stopImmediatePropagation(){const t=On(this);t.stopped=true;t.immediateStopped=true;if(typeof t.event.stopImmediatePropagation==="function"){t.event.stopImmediatePropagation()}},get bubbles(){return Boolean(On(this).event.bubbles)},get cancelable(){return Boolean(On(this).event.cancelable)},preventDefault(){PEe(On(this))},get defaultPrevented(){return On(this).canceled},get composed(){return Boolean(On(this).event.composed)},get timeStamp(){return On(this).timeStamp},get srcElement(){return On(this).eventTarget},get cancelBubble(){return On(this).stopped},set cancelBubble(t){if(!t){return}const e=On(this);e.stopped=true;if(typeof e.event.cancelBubble==="boolean"){e.event.cancelBubble=true}},get returnValue(){return!On(this).canceled},set returnValue(t){if(!t){PEe(On(this))}},initEvent(){}};Object.defineProperty(xg.prototype,"constructor",{value:xg,configurable:true,writable:true});if(typeof window!=="undefined"&&typeof window.Event!=="undefined"){Object.setPrototypeOf(xg.prototype,window.Event.prototype);kB.set(window.Event.prototype,xg)}function jEe(t){return{get(){return On(this).event[t]},set(e){On(this).event[t]=e},configurable:true,enumerable:true}}o(jEe,"defineRedirectDescriptor");function y6t(t){return{value(){const e=On(this).event;return e[t].apply(e,arguments)},configurable:true,enumerable:true}}o(y6t,"defineCallDescriptor");function v6t(t,e){const r=Object.keys(e);if(r.length===0){return t}function n(i,s){t.call(this,i,s)}o(n,"CustomEvent");n.prototype=Object.create(t.prototype,{constructor:{value:n,configurable:true,writable:true}});for(let i=0;i<r.length;++i){const s=r[i];if(!(s in t.prototype)){const a=Object.getOwnPropertyDescriptor(e,s);const u=typeof a.value==="function";Object.defineProperty(n.prototype,s,u?y6t(s):jEe(s))}}return n}o(v6t,"defineWrapper");function UEe(t){if(t==null||t===Object.prototype){return xg}let e=kB.get(t);if(e==null){e=v6t(UEe(Object.getPrototypeOf(t)),t);kB.set(t,e)}return e}o(UEe,"getWrapper");function _6t(t,e){const r=UEe(Object.getPrototypeOf(e));return new r(t,e)}o(_6t,"wrapEvent");function E6t(t){return On(t).immediateStopped}o(E6t,"isStopped");function b6t(t,e){On(t).eventPhase=e}o(b6t,"setEventPhase");function w6t(t,e){On(t).currentTarget=e}o(w6t,"setCurrentTarget");function DEe(t,e){On(t).passiveListener=e}o(DEe,"setPassiveListener");var FEe=new WeakMap;var kEe=1;var $Ee=2;var OT=3;function NT(t){return t!==null&&typeof t==="object"}o(NT,"isObject");function RE(t){const e=FEe.get(t);if(e==null){throw new TypeError("'this' is expected an EventTarget object, but got another value.")}return e}o(RE,"getListeners");function S6t(t){return{get(){const e=RE(this);let r=e.get(t);while(r!=null){if(r.listenerType===OT){return r.listener}r=r.next}return null},set(e){if(typeof e!=="function"&&!NT(e)){e=null}const r=RE(this);let n=null;let i=r.get(t);while(i!=null){if(i.listenerType===OT){if(n!==null){n.next=i.next}else if(i.next!==null){r.set(t,i.next)}else{r.delete(t)}}else{n=i}i=i.next}if(e!==null){const s={listener:e,listenerType:OT,passive:false,once:false,next:null};if(n===null){r.set(t,s)}else{n.next=s}}},configurable:true,enumerable:true}}o(S6t,"defineEventAttributeDescriptor");function $B(t,e){Object.defineProperty(t,`on${e}`,S6t(e))}o($B,"defineEventAttribute");function LEe(t){function e(){Su.call(this)}o(e,"CustomEventTarget");e.prototype=Object.create(Su.prototype,{constructor:{value:e,configurable:true,writable:true}});for(let r=0;r<t.length;++r){$B(e.prototype,t[r])}return e}o(LEe,"defineCustomEventTarget");function Su(){if(this instanceof Su){FEe.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0])){return LEe(arguments[0])}if(arguments.length>0){const t=new Array(arguments.length);for(let e=0;e<arguments.length;++e){t[e]=arguments[e]}return LEe(t)}throw new TypeError("Cannot call a class as a function")}o(Su,"EventTarget");Su.prototype={addEventListener(t,e,r){if(e==null){return}if(typeof e!=="function"&&!NT(e)){throw new TypeError("'listener' should be a function or an object.")}const n=RE(this);const i=NT(r);const s=i?Boolean(r.capture):Boolean(r);const a=s?kEe:$Ee;const u={listener:e,listenerType:a,passive:i&&Boolean(r.passive),once:i&&Boolean(r.once),next:null};let l=n.get(t);if(l===void 0){n.set(t,u);return}let c=null;while(l!=null){if(l.listener===e&&l.listenerType===a){return}c=l;l=l.next}c.next=u},removeEventListener(t,e,r){if(e==null){return}const n=RE(this);const i=NT(r)?Boolean(r.capture):Boolean(r);const s=i?kEe:$Ee;let a=null;let u=n.get(t);while(u!=null){if(u.listener===e&&u.listenerType===s){if(a!==null){a.next=u.next}else if(u.next!==null){n.set(t,u.next)}else{n.delete(t)}return}a=u;u=u.next}},dispatchEvent(t){if(t==null||typeof t.type!=="string"){throw new TypeError('"event.type" should be a string.')}const e=RE(this);const r=t.type;let n=e.get(r);if(n==null){return true}const i=_6t(this,t);let s=null;while(n!=null){if(n.once){if(s!==null){s.next=n.next}else if(n.next!==null){e.set(r,n.next)}else{e.delete(r)}}else{s=n}DEe(i,n.passive?n.listener:null);if(typeof n.listener==="function"){try{n.listener.call(this,i)}catch(a){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error(a)}}}else if(n.listenerType!==OT&&typeof n.listener.handleEvent==="function"){n.listener.handleEvent(i)}if(E6t(i)){break}n=n.next}DEe(i,null);b6t(i,0);w6t(i,null);return!i.defaultPrevented}};Object.defineProperty(Su.prototype,"constructor",{value:Su,configurable:true,writable:true});if(typeof window!=="undefined"&&typeof window.EventTarget!=="undefined"){Object.setPrototypeOf(Su.prototype,window.EventTarget.prototype)}NE.defineEventAttribute=$B;NE.EventTarget=Su;NE.default=Su;OE.exports=Su;OE.exports.EventTarget=OE.exports["default"]=Su;OE.exports.defineEventAttribute=$B});var HEe=_((PE,IE)=>{"use strict";Object.defineProperty(PE,"__esModule",{value:true});var LB=BEe();var xp=class extends LB.EventTarget{static{o(this,"AbortSignal")}constructor(){super();throw new TypeError("AbortSignal cannot be constructed directly")}get aborted(){const e=IT.get(this);if(typeof e!=="boolean"){throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`)}return e}};LB.defineEventAttribute(xp.prototype,"abort");function T6t(){const t=Object.create(xp.prototype);LB.EventTarget.call(t);IT.set(t,false);return t}o(T6t,"createAbortSignal");function A6t(t){if(IT.get(t)!==false){return}IT.set(t,true);t.dispatchEvent({type:"abort"})}o(A6t,"abortSignal");var IT=new WeakMap;Object.defineProperties(xp.prototype,{aborted:{enumerable:true}});if(typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol"){Object.defineProperty(xp.prototype,Symbol.toStringTag,{configurable:true,value:"AbortSignal"})}var Cp=class{static{o(this,"AbortController")}constructor(){VEe.set(this,T6t())}get signal(){return MEe(this)}abort(){A6t(MEe(this))}};var VEe=new WeakMap;function MEe(t){const e=VEe.get(t);if(e==null){throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${t===null?"null":typeof t}`)}return e}o(MEe,"getSignal");Object.defineProperties(Cp.prototype,{signal:{enumerable:true},abort:{enumerable:true}});if(typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol"){Object.defineProperty(Cp.prototype,Symbol.toStringTag,{configurable:true,value:"AbortController"})}PE.AbortController=Cp;PE.AbortSignal=xp;PE.default=Cp;IE.exports=Cp;IE.exports.AbortController=IE.exports["default"]=Cp;IE.exports.AbortSignal=xp});var YEe=_(Fn=>{"use strict";var x6t=Fn&&Fn.__createBinding||(Object.create?function(t,e,r,n){if(n===void 0)n=r;var i=Object.getOwnPropertyDescriptor(e,r);if(!i||("get"in i?!e.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return e[r]}}}Object.defineProperty(t,n,i)}:function(t,e,r,n){if(n===void 0)n=r;t[n]=e[r]});var C6t=Fn&&Fn.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:true,value:e})}:function(t,e){t["default"]=e});var GEe=Fn&&Fn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null){for(var r in t)if(r!=="default"&&Object.prototype.hasOwnProperty.call(t,r))x6t(e,t,r)}C6t(e,t);return e};var R6t=Fn&&Fn.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e==="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r};var La=Fn&&Fn.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)};var KEe=Fn&&Fn.__importDefault||function(t){return t&&t.__esModule?t:{"default":t}};var Uc;var Fc;var DE;var PT;Object.defineProperty(Fn,"__esModule",{value:true});Fn.createURI=Fn.upload=Fn.Upload=Fn.PROTOCOL_REGEX=void 0;var O6t=KEe(HEe());var N6t=require("crypto");var I6t=GEe(pl());var P6t=GS();var zEe=require("stream");var D6t=KEe(CE());var Cg=GEe((j1(),Hm(q1)));var k6t=tm();var jc=yl();var $6t=vg();var L6t=404;var qB=308;var q6t=/.*\.googleapis\.com/;var jB=(0,$6t.getPackageJSON)();Fn.PROTOCOL_REGEX=/^(\w*):\/\//;var kE=class extends zEe.Writable{static{o(this,"Upload")}constructor(e){super(e);Uc.add(this);this.numBytesWritten=0;this.numRetries=0;this.currentInvocationId={chunk:Cg.v4(),uri:Cg.v4(),offset:Cg.v4()};this.writeBuffers=[];this.numChunksReadInRequest=0;this.localWriteCache=[];this.localWriteCacheByteLength=0;this.upstreamEnded=false;Fc.set(this,void 0);e=e||{};if(!e.bucket||!e.file){throw new Error("A bucket and file name are required")}e.authConfig=e.authConfig||{};e.authConfig.scopes=["https://www.googleapis.com/auth/devstorage.full_control"];this.authClient=e.authClient||new P6t.GoogleAuth(e.authConfig);this.apiEndpoint="https://storage.googleapis.com";if(e.apiEndpoint){this.apiEndpoint=this.sanitizeEndpoint(e.apiEndpoint);if(!q6t.test(e.apiEndpoint)){this.authClient=I6t}}this.baseURI=`${this.apiEndpoint}/upload/storage/v1/b`;this.bucket=e.bucket;const r=[e.bucket,e.file];if(typeof e.generation==="number"){r.push(`${e.generation}`)}this.cacheKey=r.join("/");this.customRequestOptions=e.customRequestOptions||{};this.file=e.file;this.generation=e.generation;this.kmsKeyName=e.kmsKeyName;this.metadata=e.metadata||{};this.offset=e.offset;this.origin=e.origin;this.params=e.params||{};this.userProject=e.userProject;this.chunkSize=e.chunkSize;this.retryOptions=e.retryOptions;if(e.key){const s=Buffer.from(e.key).toString("base64");this.encryption={key:s,hash:(0,N6t.createHash)("sha256").update(e.key).digest("base64")}}this.predefinedAcl=e.predefinedAcl;if(e.private)this.predefinedAcl="private";if(e.public)this.predefinedAcl="publicRead";const n=e.retryOptions.autoRetry;this.uriProvidedManually=!!e.uri;this.uri=e.uri;this.numBytesWritten=0;this.numRetries=0;if(!n){e.retryOptions.maxRetries=0}this.timeOfFirstRequest=Date.now();const i=e.metadata?Number(e.metadata.contentLength):NaN;this.contentLength=isNaN(i)?"*":i;R6t(this,Fc,e[k6t.GCCL_GCS_CMD_KEY],"f");this.once("writing",()=>{if(this.uri){this.continueUploading()}else{this.createURI(s=>{if(s){return this.destroy(s)}this.startUploading();return})}})}_final(e=()=>{}){this.upstreamEnded=true;this.once("uploadFinished",e);process.nextTick(()=>{this.emit("upstreamFinished");this.emit("writing")})}_write(e,r,n=()=>{}){this.emit("writing");this.writeBuffers.push(typeof e==="string"?Buffer.from(e,r):e);this.once("readFromChunkBuffer",n);process.nextTick(()=>this.emit("wroteToChunkBuffer"))}prependLocalBufferToUpstream(e){let r=[];if(e){let i=0;while(e>i){let s=this.localWriteCache.pop();if(!s)break;i+=s.byteLength;if(i>e){const a=i-e;s=s.subarray(a);i-=a}r.unshift(s)}}else{r=this.localWriteCache}const n=this.writeBuffers;this.writeBuffers=r;for(const i of n){this.writeBuffers.push(i)}La(this,Uc,"m",DE).call(this)}*pullFromChunkBuffer(e){while(e){const r=this.writeBuffers.shift();if(!r)break;let n=r;if(r.byteLength>e){n=r.subarray(0,e);this.writeBuffers.unshift(r.subarray(e));e=0}else{e-=r.byteLength}yield n;this.emit("readFromChunkBuffer")}}async waitForNextChunk(){const e=await new Promise(r=>{if(this.writeBuffers.length){return r(true)}if(this.upstreamEnded){return r(false)}const n=o(()=>{s();return r(true)},"wroteToChunkBufferCallback");const i=o(()=>{s();if(this.writeBuffers.length)return r(true);return r(false)},"upstreamFinishedCallback");const s=o(()=>{this.removeListener("wroteToChunkBuffer",n);this.removeListener("upstreamFinished",i)},"removeListeners");this.once("wroteToChunkBuffer",n);this.once("upstreamFinished",i)});return e}async*upstreamIterator(e=Infinity){while(e&&await this.waitForNextChunk()){for(const r of this.pullFromChunkBuffer(e)){e-=r.byteLength;yield r}}}createURI(e){if(!e){return this.createURIAsync()}this.createURIAsync().then(r=>e(null,r),e)}async createURIAsync(){const e={...this.metadata};const r={};if(e.contentLength){r["X-Upload-Content-Length"]=e.contentLength.toString();delete e.contentLength}if(e.contentType){r["X-Upload-Content-Type"]=e.contentType;delete e.contentType}let n=`${(0,jc.getRuntimeTrackingString)()} gccl/${jB.version}-${(0,jc.getModuleFormat)()} gccl-invocation-id/${this.currentInvocationId.uri}`;if(La(this,Fc,"f")){n+=` gccl-gcs-cmd/${La(this,Fc,"f")}`}const i={method:"POST",url:[this.baseURI,this.bucket,"o"].join("/"),params:Object.assign({name:this.file,uploadType:"resumable"},this.params),data:e,headers:{"User-Agent":(0,jc.getUserAgentString)(),"x-goog-api-client":n,...r}};if(e.contentLength){i.headers["X-Upload-Content-Length"]=e.contentLength.toString()}if(e.contentType){i.headers["X-Upload-Content-Type"]=e.contentType}if(typeof this.generation!=="undefined"){i.params.ifGenerationMatch=this.generation}if(this.kmsKeyName){i.params.kmsKeyName=this.kmsKeyName}if(this.predefinedAcl){i.params.predefinedAcl=this.predefinedAcl}if(this.origin){i.headers.Origin=this.origin}const s=await(0,D6t.default)(async a=>{var u,l,c;try{const d=await this.makeRequest(i);this.currentInvocationId.uri=Cg.v4();return d.headers.location}catch(d){const p=d;const f={code:(u=p.response)===null||u===void 0?void 0:u.status,name:(l=p.response)===null||l===void 0?void 0:l.statusText,message:(c=p.response)===null||c===void 0?void 0:c.statusText,errors:[{reason:p.code}]};if(this.retryOptions.maxRetries>0&&this.retryOptions.retryableErrorFn(f)){throw p}else{return a(p)}}},{retries:this.retryOptions.maxRetries,factor:this.retryOptions.retryDelayMultiplier,maxTimeout:this.retryOptions.maxRetryDelay*1e3,maxRetryTime:this.retryOptions.totalTimeout*1e3});this.uri=s;this.offset=0;return s}async continueUploading(){if(typeof this.offset==="number"){this.startUploading();return}await this.getAndSetOffset();this.startUploading()}async startUploading(){const e=!!this.chunkSize;let r=false;this.numChunksReadInRequest=0;if(!this.offset){this.offset=0}if(this.offset<this.numBytesWritten){const c=this.numBytesWritten-this.offset;const d=`The offset is lower than the number of bytes written. The server has ${this.offset} bytes and while ${this.numBytesWritten} bytes has been uploaded - thus ${c} bytes are missing. Stopping as this could result in data loss. Initiate a new upload to continue.`;this.emit("error",new RangeError(d));return}if(this.numBytesWritten<this.offset){const c=this.offset-this.numBytesWritten;for await(const d of this.upstreamIterator(c)){d}this.numBytesWritten=this.offset}let n=void 0;if(typeof this.contentLength==="number"){n=this.contentLength-this.numBytesWritten}if(this.chunkSize){n=n?Math.min(this.chunkSize,n):this.chunkSize}const i=this.upstreamIterator(n);const s=new zEe.Readable({read:async()=>{if(r)s.push(null);const c=await i.next();if(c.value){this.numChunksReadInRequest++;if(e){La(this,Uc,"m",PT).call(this,c.value)}else{La(this,Uc,"m",DE).call(this);La(this,Uc,"m",PT).call(this,c.value)}this.numBytesWritten+=c.value.byteLength;this.emit("progress",{bytesWritten:this.numBytesWritten,contentLength:this.contentLength});s.push(c.value)}if(c.done){s.push(null)}}});let a=`${(0,jc.getRuntimeTrackingString)()} gccl/${jB.version}-${(0,jc.getModuleFormat)()} gccl-invocation-id/${this.currentInvocationId.chunk}`;if(La(this,Fc,"f")){a+=` gccl-gcs-cmd/${La(this,Fc,"f")}`}const u={"User-Agent":(0,jc.getUserAgentString)(),"x-goog-api-client":a};if(e){for await(const h of this.upstreamIterator(n)){La(this,Uc,"m",PT).call(this,h)}const c=this.localWriteCacheByteLength;const d=!await this.waitForNextChunk();this.prependLocalBufferToUpstream();let p=this.contentLength;if(typeof this.contentLength!=="number"&&d){p=c+this.numBytesWritten}const f=c+this.numBytesWritten-1;u["Content-Length"]=c;u["Content-Range"]=`bytes ${this.offset}-${f}/${p}`}else{u["Content-Range"]=`bytes ${this.offset}-*/${this.contentLength}`}const l={method:"PUT",url:this.uri,headers:u,body:s};try{const c=await this.makeRequestStream(l);if(c){r=true;this.responseHandler(c)}}catch(c){const d=c;if(this.retryOptions.retryableErrorFn(d)){this.attemptDelayedRetry({status:NaN,data:d});return}this.destroy(d)}}responseHandler(e){if(e.data.error){this.destroy(e.data.error);return}this.currentInvocationId.chunk=Cg.v4();const r=this.chunkSize&&e.status===qB&&e.headers.range;if(r){const n=e.headers.range;this.offset=Number(n.split("-")[1])+1;const i=this.numBytesWritten-this.offset;if(i){this.prependLocalBufferToUpstream(i);this.numBytesWritten-=i}else{La(this,Uc,"m",DE).call(this)}this.continueUploading()}else if(!this.isSuccessfulResponse(e.status)){const n=new Error("Upload failed");n.code=e.status;n.name="Upload failed";if(e===null||e===void 0?void 0:e.data){n.errors=[e===null||e===void 0?void 0:e.data]}this.destroy(n)}else{La(this,Uc,"m",DE).call(this);if(e&&e.data){e.data.size=Number(e.data.size)}this.emit("metadata",e.data);this.emit("uploadFinished")}}async getAndSetOffset(){let e=`${(0,jc.getRuntimeTrackingString)()} gccl/${jB.version}-${(0,jc.getModuleFormat)()} gccl-invocation-id/${this.currentInvocationId.offset}`;if(La(this,Fc,"f")){e+=` gccl-gcs-cmd/${La(this,Fc,"f")}`}const r={method:"PUT",url:this.uri,headers:{"Content-Length":0,"Content-Range":"bytes */*","User-Agent":(0,jc.getUserAgentString)(),"x-goog-api-client":e}};try{const n=await this.makeRequest(r);this.currentInvocationId.offset=Cg.v4();if(n.status===qB){if(n.headers.range){const i=n.headers.range;this.offset=Number(i.split("-")[1])+1;return}}this.offset=0}catch(n){const i=n;if(this.retryOptions.retryableErrorFn(i)){this.attemptDelayedRetry({status:NaN,data:i});return}this.destroy(i)}}async makeRequest(e){if(this.encryption){e.headers=e.headers||{};e.headers["x-goog-encryption-algorithm"]="AES256";e.headers["x-goog-encryption-key"]=this.encryption.key.toString();e.headers["x-goog-encryption-key-sha256"]=this.encryption.hash.toString()}if(this.userProject){e.params=e.params||{};e.params.userProject=this.userProject}e.validateStatus=i=>{return this.isSuccessfulResponse(i)||i===qB};const r={...this.customRequestOptions,...e,headers:{...this.customRequestOptions.headers,...e.headers}};const n=await this.authClient.request(r);if(n.data&&n.data.error){throw n.data.error}return n}async makeRequestStream(e){const r=new O6t.default;const n=o(()=>r.abort(),"errorCallback");this.once("error",n);if(this.userProject){e.params=e.params||{};e.params.userProject=this.userProject}e.signal=r.signal;e.validateStatus=()=>true;const i={...this.customRequestOptions,...e,headers:{...this.customRequestOptions.headers,...e.headers}};const s=await this.authClient.request(i);const a=this.onResponse(s);this.removeListener("error",n);return a?s:null}onResponse(e){if(e.status!==200&&this.retryOptions.retryableErrorFn({code:e.status,message:e.statusText,name:e.statusText})){this.attemptDelayedRetry(e);return false}this.emit("response",e);return true}attemptDelayedRetry(e){if(this.numRetries<this.retryOptions.maxRetries){if(e.status===L6t&&this.numChunksReadInRequest===0){this.startUploading()}else{const r=this.getRetryDelay();if(r<=0){this.destroy(new Error(`Retry total time limit exceeded - ${e.data}`));return}this.numBytesWritten-=this.localWriteCacheByteLength;this.prependLocalBufferToUpstream();this.offset=void 0;setTimeout(this.continueUploading.bind(this),r)}this.numRetries++}else{this.destroy(new Error("Retry limit exceeded - "+e.data))}}getRetryDelay(){const e=Math.round(Math.random()*1e3);const r=Math.pow(this.retryOptions.retryDelayMultiplier,this.numRetries)*1e3+e;const n=this.retryOptions.totalTimeout*1e3-(Date.now()-this.timeOfFirstRequest);const i=this.retryOptions.maxRetryDelay*1e3;return Math.min(r,i,n)}sanitizeEndpoint(e){if(!Fn.PROTOCOL_REGEX.test(e)){e=`https://${e}`}return e.replace(/\/+$/,"")}isSuccessfulResponse(e){return e>=200&&e<300}};Fn.Upload=kE;Fc=new WeakMap,Uc=new WeakSet,DE=o(function t(){this.localWriteCache=[];this.localWriteCacheByteLength=0},"_Upload_resetLocalBuffersCache"),PT=o(function t(e){this.localWriteCache.push(e);this.localWriteCacheByteLength+=e.byteLength},"_Upload_addLocalBufferCache");function j6t(t){return new kE(t)}o(j6t,"upload");Fn.upload=j6t;function U6t(t,e){const r=new kE(t);if(!e){return r.createURI()}r.createURI().then(n=>e(null,n),e)}o(U6t,"createURI");Fn.createURI=U6t});var FB=_(Ni=>{"use strict";var F6t=Ni&&Ni.__createBinding||(Object.create?function(t,e,r,n){if(n===void 0)n=r;var i=Object.getOwnPropertyDescriptor(e,r);if(!i||("get"in i?!e.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return e[r]}}}Object.defineProperty(t,n,i)}:function(t,e,r,n){if(n===void 0)n=r;t[n]=e[r]});var B6t=Ni&&Ni.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:true,value:e})}:function(t,e){t["default"]=e});var XEe=Ni&&Ni.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null){for(var r in t)if(r!=="default"&&Object.prototype.hasOwnProperty.call(t,r))F6t(e,t,r)}B6t(e,t);return e};Object.defineProperty(Ni,"__esModule",{value:true});Ni.SigningError=Ni.URLSigner=Ni.PATH_STYLED_HOST=Ni.SignerExceptionMessages=void 0;var M6t=XEe(require("crypto"));var WEe=XEe(require("url"));var JEe=Rg();var Rp=yl();var $E;(function(t){t["ACCESSIBLE_DATE_INVALID"]="The accessible at date provided was invalid.";t["EXPIRATION_BEFORE_ACCESSIBLE_DATE"]="An expiration date cannot be before accessible date.";t["X_GOOG_CONTENT_SHA256"]="The header X-Goog-Content-SHA256 must be a hexadecimal string."})($E||(Ni.SignerExceptionMessages=$E={}));var V6t="v2";var QEe=7*24*60*60;Ni.PATH_STYLED_HOST="https://storage.googleapis.com";var UB=class{static{o(this,"URLSigner")}constructor(e,r,n){this.bucket=r;this.file=n;this.authClient=e}getSignedUrl(e){const r=this.parseExpires(e.expires);const n=e.method;const i=this.parseAccessibleAt(e.accessibleAt);if(r<i){throw new Error($E.EXPIRATION_BEFORE_ACCESSIBLE_DATE)}let s;const a=e.virtualHostedStyle||false;if(e.cname){s=e.cname}else if(a){s=`https://${this.bucket.name}.storage.googleapis.com`}const u=1e3;const l=Object.assign({},e,{method:n,expiration:r,accessibleAt:new Date(u*i),bucket:this.bucket.name,file:this.file?(0,Rp.encodeURI)(this.file.name,false):void 0});if(s){l.cname=s}const c=e.version||V6t;let d;if(c==="v2"){d=this.getSignedUrlV2(l)}else if(c==="v4"){d=this.getSignedUrlV4(l)}else{throw new Error(`Invalid signed URL version: ${c}. Supported versions are 'v2' and 'v4'.`)}return d.then(p=>{p=Object.assign(p,e.queryParams);const f=new WEe.URL(l.cname||Ni.PATH_STYLED_HOST);f.pathname=this.getResourcePath(!!l.cname,this.bucket.name,l.file);f.search=(0,Rp.qsStringify)(p);return f.href})}getSignedUrlV2(e){const r=this.getCanonicalHeaders(e.extensionHeaders||{});const n=this.getResourcePath(false,e.bucket,e.file);const i=[e.method,e.contentMd5||"",e.contentType||"",e.expiration,r+n].join("\n");const s=o(async()=>{const a=this.authClient;try{const u=await a.sign(i);const l=await a.getCredentials();return{GoogleAccessId:l.client_email,Expires:e.expiration,Signature:u}}catch(u){const l=u;const c=new LE(l.message);c.stack=l.stack;throw c}},"sign");return s()}getSignedUrlV4(e){e.accessibleAt=e.accessibleAt?e.accessibleAt:new Date;const r=1/1e3;const n=e.expiration-e.accessibleAt.valueOf()*r;if(n>QEe){throw new Error(`Max allowed expiration is seven days (${QEe} seconds).`)}const i=Object.assign({},e.extensionHeaders);const s=new WEe.URL(e.cname||Ni.PATH_STYLED_HOST);i.host=s.host;if(e.contentMd5){i["content-md5"]=e.contentMd5}if(e.contentType){i["content-type"]=e.contentType}let a;const u=i["x-goog-content-sha256"];if(u){if(typeof u!=="string"||!/[A-Fa-f0-9]{40}/.test(u)){throw new Error($E.X_GOOG_CONTENT_SHA256)}a=u}const l=Object.keys(i).map(h=>h.toLowerCase()).sort().join(";");const c=this.getCanonicalHeaders(i);const d=(0,Rp.formatAsUTCISO)(e.accessibleAt);const p=`${d}/auto/storage/goog4_request`;const f=o(async()=>{const h=await this.authClient.getCredentials();const m=`${h.client_email}/${p}`;const g=(0,Rp.formatAsUTCISO)(e.accessibleAt?e.accessibleAt:new Date,true);const y={"X-Goog-Algorithm":"GOOG4-RSA-SHA256","X-Goog-Credential":m,"X-Goog-Date":g,"X-Goog-Expires":n.toString(10),"X-Goog-SignedHeaders":l,...e.queryParams||{}};const v=this.getCanonicalQueryParams(y);const w=this.getCanonicalRequest(e.method,this.getResourcePath(!!e.cname,e.bucket,e.file),v,c,l,a);const E=M6t.createHash("sha256").update(w).digest("hex");const b=["GOOG4-RSA-SHA256",g,p,E].join("\n");try{const S=await this.authClient.sign(b);const T=Buffer.from(S,"base64").toString("hex");const x=Object.assign({},y,{"X-Goog-Signature":T});return x}catch(S){const T=S;const x=new LE(T.message);x.stack=T.stack;throw x}},"sign");return f()}getCanonicalHeaders(e){const r=(0,Rp.objectEntries)(e).map(([n,i])=>[n.toLowerCase(),i]).sort((n,i)=>n[0].localeCompare(i[0]));return r.filter(([,n])=>n!==void 0).map(([n,i])=>{const s=`${i}`.trim().replace(/\s{2,}/g," ");return`${n}:${s}
395
- `}).join("")}getCanonicalRequest(e,r,n,i,s,a){return[e,r,n,i,s,a||"UNSIGNED-PAYLOAD"].join("\n")}getCanonicalQueryParams(e){return(0,Rp.objectEntries)(e).map(([r,n])=>[(0,Rp.encodeURI)(r,true),(0,Rp.encodeURI)(n,true)]).sort((r,n)=>r[0]<n[0]?-1:1).map(([r,n])=>`${r}=${n}`).join("&")}getResourcePath(e,r,n){if(e){return"/"+(n||"")}else if(n){return`/${r}/${n}`}else{return`/${r}`}}parseExpires(e,r=new Date){const n=new Date(e).valueOf();if(isNaN(n)){throw new Error(JEe.ExceptionMessages.EXPIRATION_DATE_INVALID)}if(n<r.valueOf()){throw new Error(JEe.ExceptionMessages.EXPIRATION_DATE_PAST)}return Math.floor(n/1e3)}parseAccessibleAt(e){const r=new Date(e||new Date).valueOf();if(isNaN(r)){throw new Error($E.ACCESSIBLE_DATE_INVALID)}return Math.floor(r/1e3)}};Ni.URLSigner=UB;var LE=class extends Error{static{o(this,"SigningError")}constructor(){super(...arguments);this.name="SigningError"}};Ni.SigningError=LE});var qE=_(_s=>{"use strict";var ZEe=_s&&_s.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e==="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r};var DT=_s&&_s.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)};var Op;Object.defineProperty(_s,"__esModule",{value:true});_s.CRC32C_EXTENSION_TABLE=_s.CRC32C_EXTENSIONS=_s.CRC32C_EXCEPTION_MESSAGES=_s.CRC32C_DEFAULT_VALIDATOR_GENERATOR=_s.CRC32C=void 0;var H6t=require("fs");var BB=[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];_s.CRC32C_EXTENSIONS=BB;var e6e=new Int32Array(BB);_s.CRC32C_EXTENSION_TABLE=e6e;var z6t=o(()=>new Og,"CRC32C_DEFAULT_VALIDATOR_GENERATOR");_s.CRC32C_DEFAULT_VALIDATOR_GENERATOR=z6t;var kT={INVALID_INIT_BASE64_RANGE:t=>`base64-encoded data expected to equal 4 bytes, not ${t}`,INVALID_INIT_BUFFER_LENGTH:t=>`Buffer expected to equal 4 bytes, not ${t}`,INVALID_INIT_INTEGER:t=>`Number expected to be a safe, unsigned 32-bit integer, not ${t}`};_s.CRC32C_EXCEPTION_MESSAGES=kT;var Og=class t{static{o(this,"CRC32C")}constructor(e=0){Op.set(this,0);ZEe(this,Op,e,"f")}update(e){let r=DT(this,Op,"f")^4294967295;for(const n of e){const i=t.CRC32C_EXTENSION_TABLE[(n^r)&255];r=i^r>>>8}ZEe(this,Op,r^4294967295,"f")}validate(e){if(typeof e==="number"){return e===DT(this,Op,"f")}else if(typeof e==="string"){return e===this.toString()}else if(Buffer.isBuffer(e)){return Buffer.compare(e,this.toBuffer())===0}else{return e.toString()===this.toString()}}toBuffer(){const e=Buffer.alloc(4);e.writeInt32BE(DT(this,Op,"f"));return e}toJSON(){return this.toString()}toString(){return this.toBuffer().toString("base64")}valueOf(){return DT(this,Op,"f")}static fromBuffer(e){let r;if(Buffer.isBuffer(e)){r=e}else if("buffer"in e){r=Buffer.from(e.buffer)}else{r=Buffer.from(e)}if(r.byteLength!==4){throw new RangeError(kT.INVALID_INIT_BUFFER_LENGTH(r.byteLength))}return new t(r.readInt32BE())}static async fromFile(e){const r=new t;await new Promise((n,i)=>{(0,H6t.createReadStream)(e).on("data",s=>r.update(s)).on("end",n).on("error",i)});return r}static fromString(e){const r=Buffer.from(e,"base64");if(r.byteLength!==4){throw new RangeError(kT.INVALID_INIT_BASE64_RANGE(r.byteLength))}return this.fromBuffer(r)}static fromNumber(e){if(!Number.isSafeInteger(e)||e>2**32||e<-(2**32)){throw new RangeError(kT.INVALID_INIT_INTEGER(e))}return new t(e)}static from(e){if(typeof e==="number"){return this.fromNumber(e)}else if(typeof e==="string"){return this.fromString(e)}else if("byteLength"in e){return this.fromBuffer(e)}else{return this.fromString(e.toString())}}};_s.CRC32C=Og;Op=new WeakMap;Og.CRC32C_EXTENSIONS=BB;Og.CRC32C_EXTENSION_TABLE=e6e});var HB=_(Ip=>{"use strict";var MB=Ip&&Ip.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e==="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r};var bl=Ip&&Ip.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)};var im;var Np;var $T;Object.defineProperty(Ip,"__esModule",{value:true});Ip.HashStreamValidator=void 0;var G6t=require("crypto");var K6t=require("stream");var Y6t=qE();var t6e=jE();var VB=class extends K6t.Transform{static{o(this,"HashStreamValidator")}constructor(e={}){super();this.updateHashesOnly=false;im.set(this,void 0);Np.set(this,void 0);$T.set(this,"");this.crc32cEnabled=!!e.crc32c;this.md5Enabled=!!e.md5;this.updateHashesOnly=!!e.updateHashesOnly;this.crc32cExpected=e.crc32cExpected;this.md5Expected=e.md5Expected;if(this.crc32cEnabled){const r=e.crc32cGenerator||Y6t.CRC32C_DEFAULT_VALIDATOR_GENERATOR;MB(this,im,r(),"f")}if(this.md5Enabled){MB(this,Np,(0,G6t.createHash)("md5"),"f")}}_flush(e){if(bl(this,Np,"f")){MB(this,$T,bl(this,Np,"f").digest("base64"),"f")}if(this.updateHashesOnly){e();return}let r=this.crc32cEnabled||this.md5Enabled;if(this.crc32cEnabled&&this.crc32cExpected){r=!this.test("crc32c",this.crc32cExpected)}if(this.md5Enabled&&this.md5Expected){r=!this.test("md5",this.md5Expected)}if(r){const n=new t6e.RequestError(t6e.FileExceptionMessages.DOWNLOAD_MISMATCH);n.code="CONTENT_DOWNLOAD_MISMATCH";e(n)}else{e()}}_transform(e,r,n){this.push(e,r);try{if(bl(this,im,"f"))bl(this,im,"f").update(e);if(bl(this,Np,"f"))bl(this,Np,"f").update(e);n()}catch(i){n(i)}}test(e,r){const n=Buffer.isBuffer(r)?r.toString("base64"):r;if(e==="crc32c"&&bl(this,im,"f")){return bl(this,im,"f").validate(n)}if(e==="md5"&&bl(this,Np,"f")){return bl(this,$T,"f")===n}return false}};Ip.HashStreamValidator=VB;im=new WeakMap,Np=new WeakMap,$T=new WeakMap});var jE=_(Bn=>{"use strict";var W6t=Bn&&Bn.__createBinding||(Object.create?function(t,e,r,n){if(n===void 0)n=r;var i=Object.getOwnPropertyDescriptor(e,r);if(!i||("get"in i?!e.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return e[r]}}}Object.defineProperty(t,n,i)}:function(t,e,r,n){if(n===void 0)n=r;t[n]=e[r]});var J6t=Bn&&Bn.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:true,value:e})}:function(t,e){t["default"]=e});var qT=Bn&&Bn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null){for(var r in t)if(r!=="default"&&Object.prototype.hasOwnProperty.call(t,r))W6t(e,t,r)}J6t(e,t);return e};var Q6t=Bn&&Bn.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)};var jT=Bn&&Bn.__importDefault||function(t){return t&&t.__esModule?t:{"default":t}};var GB;var o6e;Object.defineProperty(Bn,"__esModule",{value:true});Bn.File=Bn.FileExceptionMessages=Bn.RequestError=Bn.STORAGE_POST_POLICY_BASE_URL=Bn.ActionToHTTPMethod=void 0;var Pp=Tp();var X6t=_l();var Z6t=jT(SEe());var ebt=qT(require("crypto"));var r6e=qT(require("fs"));var tbt=jT(IEe());var n6e=qT(YEe());var UE=require("stream");var i6e=qT(require("zlib"));var So=Rg();var FE=UT();var rbt=DB();var zB=FB();var Bc=tm();var nbt=jT(yB());var Mc=yl();var s6e=HB();var ibt=jT(CE());var KB;(function(t){t["read"]="GET";t["write"]="PUT";t["delete"]="DELETE";t["resumable"]="POST"})(KB||(Bn.ActionToHTTPMethod=KB={}));Bn.STORAGE_POST_POLICY_BASE_URL="https://storage.googleapis.com";var sbt=/^gs:\/\/([a-z0-9_.-]+)\/(.+)$/;var BE=class extends Error{static{o(this,"RequestError")}};Bn.RequestError=BE;var a6e=7*24*60*60;var To;(function(t){t["EXPIRATION_TIME_NA"]="An expiration time is not available.";t["DESTINATION_NO_NAME"]="Destination file should have a name.";t["INVALID_VALIDATION_FILE_RANGE"]="Cannot use validation with file ranges (start/end).";t["MD5_NOT_AVAILABLE"]="MD5 verification was specified, but is not available for the requested object. MD5 is not available for composite objects.";t["EQUALS_CONDITION_TWO_ELEMENTS"]="Equals condition must be an array of 2 elements.";t["STARTS_WITH_TWO_ELEMENTS"]="StartsWith condition must be an array of 2 elements.";t["CONTENT_LENGTH_RANGE_MIN_MAX"]="ContentLengthRange must have numeric min & max fields.";t["DOWNLOAD_MISMATCH"]="The downloaded data did not match the data from the server. To be sure the content is the same, you should download the file again.";t["UPLOAD_MISMATCH_DELETE_FAIL"]="The uploaded data did not match the data from the server.\n As a precaution, we attempted to delete the file, but it was not successful.\n To be sure the content is the same, you should try removing the file manually,\n then uploading the file again.\n \n\nThe delete attempt failed with this message:\n\n ";t["UPLOAD_MISMATCH"]="The uploaded data did not match the data from the server.\n As a precaution, the file has been deleted.\n To be sure the content is the same, you should try uploading the file again."})(To||(Bn.FileExceptionMessages=To={}));var LT=class t extends Pp.ServiceObject{static{o(this,"File")}constructor(e,r,n={}){var i,s;const a={};let u;if(n.generation!==null){if(typeof n.generation==="string"){u=Number(n.generation)}else{u=n.generation}if(!isNaN(u)){a.generation=u}}Object.assign(a,n.preconditionOpts);const l=n.userProject||e.userProject;if(typeof l==="string"){a.userProject=l}const c={delete:{reqOpts:{qs:a}},exists:{reqOpts:{qs:a}},get:{reqOpts:{qs:a}},getMetadata:{reqOpts:{qs:a}},setMetadata:{reqOpts:{qs:a}}};super({parent:e,baseUrl:"/o",id:encodeURIComponent(r),methods:c});GB.add(this);this.bucket=e;this.storage=e.parent;if(n.generation!==null){let d;if(typeof n.generation==="string"){d=Number(n.generation)}else{d=n.generation}if(!isNaN(d)){this.generation=d}}this.kmsKeyName=n.kmsKeyName;this.userProject=l;this.name=r;if(n.encryptionKey){this.setEncryptionKey(n.encryptionKey)}this.acl=new rbt.Acl({request:this.request.bind(this),pathPrefix:"/acl"});this.crc32cGenerator=n.crc32cGenerator||this.bucket.crc32cGenerator;this.instanceRetryValue=(s=(i=this.storage)===null||i===void 0?void 0:i.retryOptions)===null||s===void 0?void 0:s.autoRetry;this.instancePreconditionOpts=n===null||n===void 0?void 0:n.preconditionOpts}get cloudStorageURI(){const e=this.bucket.cloudStorageURI;e.pathname=this.name;return e}shouldRetryBasedOnPreconditionAndIdempotencyStrat(e){var r;return!((e===null||e===void 0?void 0:e.ifGenerationMatch)===void 0&&((r=this.instancePreconditionOpts)===null||r===void 0?void 0:r.ifGenerationMatch)===void 0&&this.storage.retryOptions.idempotencyStrategy===So.IdempotencyStrategy.RetryConditional||this.storage.retryOptions.idempotencyStrategy===So.IdempotencyStrategy.RetryNever)}copy(e,r,n){var i,s;const a=new Error(To.DESTINATION_NO_NAME);if(!e){throw a}let u={};if(typeof r==="function"){n=r}else if(r){u={...r}}n=n||Pp.util.noop;let l;let c;let d;if(typeof e==="string"){const h=sbt.exec(e);if(h!==null&&h.length===3){l=this.storage.bucket(h[1]);c=h[2]}else{l=this.bucket;c=e}}else if(e instanceof FE.Bucket){l=e;c=this.name}else if(e instanceof t){l=e.bucket;c=e.name;d=e}else{throw a}const p={};if(this.generation!==void 0){p.sourceGeneration=this.generation}if(u.token!==void 0){p.rewriteToken=u.token}if(u.userProject!==void 0){p.userProject=u.userProject;delete u.userProject}if(u.predefinedAcl!==void 0){p.destinationPredefinedAcl=u.predefinedAcl;delete u.predefinedAcl}d=d||l.file(c);const f={};if(this.encryptionKey!==void 0){f["x-goog-copy-source-encryption-algorithm"]="AES256";f["x-goog-copy-source-encryption-key"]=this.encryptionKeyBase64;f["x-goog-copy-source-encryption-key-sha256"]=this.encryptionKeyHash}if(d.encryptionKey!==void 0){this.setEncryptionKey(d.encryptionKey)}else if(u.destinationKmsKeyName!==void 0){p.destinationKmsKeyName=u.destinationKmsKeyName;delete u.destinationKmsKeyName}else if(d.kmsKeyName!==void 0){p.destinationKmsKeyName=d.kmsKeyName}if(p.destinationKmsKeyName){this.kmsKeyName=p.destinationKmsKeyName;const h=this.interceptors.indexOf(this.encryptionKeyInterceptor);if(h>-1){this.interceptors.splice(h,1)}}if(!this.shouldRetryBasedOnPreconditionAndIdempotencyStrat(u===null||u===void 0?void 0:u.preconditionOpts)){this.storage.retryOptions.autoRetry=false}if(((i=u.preconditionOpts)===null||i===void 0?void 0:i.ifGenerationMatch)!==void 0){p.ifGenerationMatch=(s=u.preconditionOpts)===null||s===void 0?void 0:s.ifGenerationMatch;delete u.preconditionOpts}this.request({method:"POST",uri:`/rewriteTo/b/${l.name}/o/${encodeURIComponent(d.name)}`,qs:p,json:u,headers:f},(h,m)=>{this.storage.retryOptions.autoRetry=this.instanceRetryValue;if(h){n(h,null,m);return}if(m.rewriteToken){const g={token:m.rewriteToken};if(p.userProject){g.userProject=p.userProject}if(p.destinationKmsKeyName){g.destinationKmsKeyName=p.destinationKmsKeyName}this.copy(d,g,n);return}n(null,d,m)})}createReadStream(e={}){e=Object.assign({decompress:true},e);const r=typeof e.start==="number"||typeof e.end==="number";const n=e.end<0;let i=void 0;let s=void 0;const a=new Mc.PassThroughShim;let u=true;let l=false;if(typeof e.validation==="string"){const h=e.validation.toLowerCase().trim();u=h==="crc32c";l=h==="md5"}else if(e.validation===false){u=false}const c=!r&&(u||l);if(r){if(typeof e.validation==="string"||e.validation===true){throw new Error(To.INVALID_VALIDATION_FILE_RANGE)}u=false;l=false}const d=o(h=>{if(h){if(s===null||s===void 0?void 0:s.agent){s.agent.destroy()}a.destroy(h)}},"onComplete");const p=o((h,m,g)=>{if(h){this.getBufferFromReadable(g).then(S=>{h.message=S.toString("utf8");a.destroy(h)});return}s=g.request;const y=g.toJSON().headers;const v=y["content-encoding"]==="gzip";const w={};const E=y["x-goog-stored-content-encoding"]==="gzip"&&v||y["x-goog-stored-content-encoding"]==="identity";const b=[];if(c){if(typeof y["x-goog-hash"]==="string"){y["x-goog-hash"].split(",").forEach(S=>{const T=S.indexOf("=");const x=S.substring(0,T);const O=S.substring(T+1);w[x]=O})}i=new s6e.HashStreamValidator({crc32c:u,md5:l,crc32cGenerator:this.crc32cGenerator,crc32cExpected:w.crc32c,md5Expected:w.md5})}if(l&&!w.md5){const S=new BE(To.MD5_NOT_AVAILABLE);S.code="MD5_NOT_AVAILABLE";a.destroy(S);return}if(E&&c&&i){b.push(i)}if(v&&e.decompress){b.push(i6e.createGunzip())}(0,UE.pipeline)(g,...b,a,d)},"onResponse");const f=o(()=>{const h={alt:"media"};if(this.generation){h.generation=this.generation}if(e.userProject){h.userProject=e.userProject}const m={"Accept-Encoding":"gzip","Cache-Control":"no-store"};if(r){const y=typeof e.start==="number"?e.start:"0";const v=typeof e.end==="number"?e.end:"";m.Range=`bytes=${n?v:`${y}-${v}`}`}const g={uri:"",headers:m,qs:h};if(e[Bc.GCCL_GCS_CMD_KEY]){g[Bc.GCCL_GCS_CMD_KEY]=e[Bc.GCCL_GCS_CMD_KEY]}this.requestStream(g).on("error",y=>{a.destroy(y)}).on("response",y=>{a.emit("response",y);Pp.util.handleResp(null,y,null,p)}).resume()},"makeRequest");a.on("reading",f);return a}createResumableUpload(e,r){var n,i;const s=typeof e==="object"?e:{};r=typeof e==="function"?e:r;const a=this.storage.retryOptions;if(((n=s===null||s===void 0?void 0:s.preconditionOpts)===null||n===void 0?void 0:n.ifGenerationMatch)===void 0&&((i=this.instancePreconditionOpts)===null||i===void 0?void 0:i.ifGenerationMatch)===void 0&&this.storage.retryOptions.idempotencyStrategy===So.IdempotencyStrategy.RetryConditional||this.storage.retryOptions.idempotencyStrategy===So.IdempotencyStrategy.RetryNever){a.autoRetry=false}n6e.createURI({authClient:this.storage.authClient,apiEndpoint:this.storage.apiEndpoint,bucket:this.bucket.name,customRequestOptions:this.getRequestInterceptors().reduce((u,l)=>l(u),{}),file:this.name,generation:this.generation,key:this.encryptionKey,kmsKeyName:this.kmsKeyName,metadata:s.metadata,offset:s.offset,origin:s.origin,predefinedAcl:s.predefinedAcl,private:s.private,public:s.public,userProject:s.userProject||this.userProject,retryOptions:a,params:(s===null||s===void 0?void 0:s.preconditionOpts)||this.instancePreconditionOpts,[Bc.GCCL_GCS_CMD_KEY]:s[Bc.GCCL_GCS_CMD_KEY]},r);this.storage.retryOptions.autoRetry=this.instanceRetryValue}createWriteStream(e={}){var r;(r=e.metadata)!==null&&r!==void 0?r:e.metadata={};if(e.contentType){e.metadata.contentType=e.contentType}if(!e.metadata.contentType||e.metadata.contentType==="auto"){const f=tbt.default.getType(this.name);if(f){e.metadata.contentType=f}}let n=e.gzip;if(n==="auto"){n=(0,Z6t.default)(e.metadata.contentType||"")}if(n){e.metadata.contentEncoding="gzip"}let i=true;let s=false;if(typeof e.validation==="string"){e.validation=e.validation.toLowerCase();i=e.validation==="crc32c";s=e.validation==="md5"}else if(e.validation===false){i=false}let a=o(f=>{u.destroy(f||void 0)},"pipelineCallback");const u=new UE.Writable({final(f){a=f;l.end()},write(f,h,m){l.write(f,h,m)}});const l=new Mc.PassThroughShim;const c=new s6e.HashStreamValidator({crc32c:i,md5:s,crc32cGenerator:this.crc32cGenerator,updateHashesOnly:true});const d=(0,nbt.default)();let p=false;l.on("reading",()=>u.emit("reading"));l.on("writing",()=>u.emit("writing"));d.on("progress",f=>u.emit("progress",f));d.on("response",f=>u.emit("response",f));d.once("metadata",()=>{p=true});u.on("writing",()=>{if(e.resumable===false){this.startSimpleUpload_(d,e)}else{this.startResumableUpload_(d,e)}(0,UE.pipeline)(l,n?i6e.createGzip():new UE.PassThrough,c,d,async f=>{if(f){return a(f)}if(!p){try{await new Promise((h,m)=>{d.once("metadata",h);d.once("error",m)})}catch(h){return a(h)}}try{await Q6t(this,GB,"m",o6e).call(this,c,{crc32c:i,md5:s});a()}catch(h){a(h)}})});return u}delete(e,r){const n=typeof e==="object"?e:{};r=typeof e==="function"?e:r;this.disableAutoRetryConditionallyIdempotent_(this.methods.delete,FE.AvailableServiceObjectMethods.delete,n);super.delete(n).then(i=>r(null,...i)).catch(r).finally(()=>{this.storage.retryOptions.autoRetry=this.instanceRetryValue})}download(e,r){let n;if(typeof e==="function"){r=e;n={}}else{n=e}let i=false;const s=o((...c)=>{if(!i)r(...c);i=true},"callback");const a=n.destination;delete n.destination;const u=this.createReadStream(n);let l=false;if(a){u.on("error",s).once("data",c=>{l=true;const d=r6e.createWriteStream(a);d.write(c);u.pipe(d).on("error",s).on("finish",s)}).on("end",()=>{if(!l){const c=Buffer.alloc(0);try{r6e.writeFileSync(a,c);s(null,c)}catch(d){s(d,c)}}})}else{this.getBufferFromReadable(u).then(c=>s===null||s===void 0?void 0:s(null,c)).catch(s)}}setEncryptionKey(e){this.encryptionKey=e;this.encryptionKeyBase64=Buffer.from(e).toString("base64");this.encryptionKeyHash=ebt.createHash("sha256").update(this.encryptionKeyBase64,"base64").digest("base64");this.encryptionKeyInterceptor={request:r=>{r.headers=r.headers||{};r.headers["x-goog-encryption-algorithm"]="AES256";r.headers["x-goog-encryption-key"]=this.encryptionKeyBase64;r.headers["x-goog-encryption-key-sha256"]=this.encryptionKeyHash;return r}};this.interceptors.push(this.encryptionKeyInterceptor);return this}getExpirationDate(e){this.getMetadata((r,n,i)=>{if(r){e(r,null,i);return}if(!n.retentionExpirationTime){const s=new Error(To.EXPIRATION_TIME_NA);e(s,null,i);return}e(null,new Date(n.retentionExpirationTime),i)})}generateSignedPostPolicyV2(e,r){const n=(0,Mc.normalize)(e,r);let i=n.options;const s=n.callback;const a=new Date(i.expires);if(isNaN(a.getTime())){throw new Error(So.ExceptionMessages.EXPIRATION_DATE_INVALID)}if(a.valueOf()<Date.now()){throw new Error(So.ExceptionMessages.EXPIRATION_DATE_PAST)}i=Object.assign({},i);const u=[["eq","$key",this.name],{bucket:this.bucket.name}];if(Array.isArray(i.equals)){if(!Array.isArray(i.equals[0])){i.equals=[i.equals]}i.equals.forEach(p=>{if(!Array.isArray(p)||p.length!==2){throw new Error(To.EQUALS_CONDITION_TWO_ELEMENTS)}u.push(["eq",p[0],p[1]])})}if(Array.isArray(i.startsWith)){if(!Array.isArray(i.startsWith[0])){i.startsWith=[i.startsWith]}i.startsWith.forEach(p=>{if(!Array.isArray(p)||p.length!==2){throw new Error(To.STARTS_WITH_TWO_ELEMENTS)}u.push(["starts-with",p[0],p[1]])})}if(i.acl){u.push({acl:i.acl})}if(i.successRedirect){u.push({success_action_redirect:i.successRedirect})}if(i.successStatus){u.push({success_action_status:i.successStatus})}if(i.contentLengthRange){const p=i.contentLengthRange.min;const f=i.contentLengthRange.max;if(typeof p!=="number"||typeof f!=="number"){throw new Error(To.CONTENT_LENGTH_RANGE_MIN_MAX)}u.push(["content-length-range",p,f])}const l={expiration:a.toISOString(),conditions:u};const c=JSON.stringify(l);const d=Buffer.from(c).toString("base64");this.storage.authClient.sign(d).then(p=>{s(null,{string:c,base64:d,signature:p})},p=>{s(new zB.SigningError(p.message))})}generateSignedPostPolicyV4(e,r){const n=(0,Mc.normalize)(e,r);let i=n.options;const s=n.callback;const a=new Date(i.expires);if(isNaN(a.getTime())){throw new Error(So.ExceptionMessages.EXPIRATION_DATE_INVALID)}if(a.valueOf()<Date.now()){throw new Error(So.ExceptionMessages.EXPIRATION_DATE_PAST)}if(a.valueOf()-Date.now()>a6e*1e3){throw new Error(`Max allowed expiration is seven days (${a6e} seconds).`)}i=Object.assign({},i);let u=Object.assign({},i.fields);const l=new Date;const c=(0,Mc.formatAsUTCISO)(l,true);const d=(0,Mc.formatAsUTCISO)(l);const p=o(async()=>{const{client_email:f}=await this.storage.authClient.getCredentials();const h=`${f}/${d}/auto/storage/goog4_request`;u={...u,bucket:this.bucket.name,key:this.name,"x-goog-date":c,"x-goog-credential":h,"x-goog-algorithm":"GOOG4-RSA-SHA256"};const m=i.conditions||[];Object.entries(u).forEach(([E,b])=>{if(!E.startsWith("x-ignore-")){m.push({[E]:b})}});delete u.bucket;const g=(0,Mc.formatAsUTCISO)(a,true,"-",":");const y={conditions:m,expiration:g};const v=(0,Mc.unicodeJSONStringify)(y);const w=Buffer.from(v).toString("base64");try{const E=await this.storage.authClient.sign(w);const b=Buffer.from(E,"base64").toString("hex");u["policy"]=w;u["x-goog-signature"]=b;let S;if(i.virtualHostedStyle){S=`https://${this.bucket.name}.storage.googleapis.com/`}else if(i.bucketBoundHostname){S=`${i.bucketBoundHostname}/`}else{S=`${Bn.STORAGE_POST_POLICY_BASE_URL}/${this.bucket.name}/`}return{url:S,fields:u}}catch(E){throw new zB.SigningError(E.message)}},"sign");p().then(f=>s(null,f),s)}getSignedUrl(e,r){const n=KB[e.action];const i=(0,Mc.objectKeyToLowercase)(e.extensionHeaders||{});if(e.action==="resumable"){i["x-goog-resumable"]="start"}const s=Object.assign({},e.queryParams);if(typeof e.responseType==="string"){s["response-content-type"]=e.responseType}if(typeof e.promptSaveAs==="string"){s["response-content-disposition"]='attachment; filename="'+e.promptSaveAs+'"'}if(typeof e.responseDisposition==="string"){s["response-content-disposition"]=e.responseDisposition}if(this.generation){s["generation"]=this.generation.toString()}const a={method:n,expires:e.expires,accessibleAt:e.accessibleAt,extensionHeaders:i,queryParams:s,contentMd5:e.contentMd5,contentType:e.contentType};if(e.cname){a.cname=e.cname}if(e.version){a.version=e.version}if(e.virtualHostedStyle){a.virtualHostedStyle=e.virtualHostedStyle}if(!this.signer){this.signer=new zB.URLSigner(this.storage.authClient,this.bucket,this)}this.signer.getSignedUrl(a).then(u=>r(null,u),r)}isPublic(e){var r;const n=((r=this.storage)===null||r===void 0?void 0:r.interceptors)||[];const i=this.interceptors||[];const s=n.concat(i);const a=s.reduce((u,l)=>{const c=l.request({uri:`${this.storage.apiEndpoint}/${this.bucket.name}/${encodeURIComponent(this.name)}`});Object.assign(u,c.headers);return u},{});Pp.util.makeRequest({method:"GET",uri:`${this.storage.apiEndpoint}/${this.bucket.name}/${encodeURIComponent(this.name)}`,headers:a},{retryOptions:this.storage.retryOptions},u=>{if(u){const l=u;if(l.code===403){e(null,false)}else{e(u)}}else{e(null,true)}})}makePrivate(e,r){var n,i;const s=typeof e==="object"?e:{};r=typeof e==="function"?e:r;const a={predefinedAcl:s.strict?"private":"projectPrivate"};if(((n=s.preconditionOpts)===null||n===void 0?void 0:n.ifMetagenerationMatch)!==void 0){a.ifMetagenerationMatch=(i=s.preconditionOpts)===null||i===void 0?void 0:i.ifMetagenerationMatch;delete s.preconditionOpts}if(s.userProject){a.userProject=s.userProject}const u={...s.metadata,acl:null};this.setMetadata(u,a,r)}makePublic(e){e=e||Pp.util.noop;this.acl.add({entity:"allUsers",role:"READER"},(r,n,i)=>{e(r,i)})}publicUrl(){return`${this.storage.apiEndpoint}/${this.bucket.name}/${encodeURIComponent(this.name)}`}move(e,r,n){const i=typeof r==="object"?r:{};n=typeof r==="function"?r:n;n=n||Pp.util.noop;this.copy(e,i,(s,a,u)=>{if(s){s.message="file#copy failed with an error - "+s.message;n(s,null,u);return}if(this.name!==a.name||this.bucket.name!==a.bucket.name){this.delete(i,(l,c)=>{if(l){l.message="file#delete failed with an error - "+l.message;n(l,a,c);return}n(null,a,u)})}else{n(null,a,u)}})}rename(e,r,n){const i=typeof r==="object"?r:{};n=typeof r==="function"?r:n;n=n||Pp.util.noop;this.move(e,i,n)}request(e,r){return this.parent.request.call(this,e,r)}rotateEncryptionKey(e,r){var n;r=typeof e==="function"?e:r;let i={};if(typeof e==="string"||e instanceof Buffer){i={encryptionKey:e}}else if(typeof e==="object"){i=e}const s=this.bucket.file(this.id,i);const a=((n=i.preconditionOpts)===null||n===void 0?void 0:n.ifGenerationMatch)!==void 0?{preconditionOpts:i.preconditionOpts}:{};this.copy(s,a,r)}save(e,r,n){n=typeof r==="function"?r:n;const i=typeof r==="object"?r:{};let s=this.storage.retryOptions.maxRetries;if(!this.shouldRetryBasedOnPreconditionAndIdempotencyStrat(i===null||i===void 0?void 0:i.preconditionOpts)){s=0}const a=(0,ibt.default)(async u=>{return new Promise((l,c)=>{if(s===0){this.storage.retryOptions.autoRetry=false}const d=this.createWriteStream(i);if(i.onUploadProgress){d.on("progress",i.onUploadProgress)}const p=o(f=>{if(this.storage.retryOptions.autoRetry&&this.storage.retryOptions.retryableErrorFn(f)){return c(f)}return u(f)},"handleError");if(typeof e==="string"||Buffer.isBuffer(e)){d.on("error",p).on("finish",()=>l()).end(e)}else{(0,UE.pipeline)(e,d,f=>{if(f){if(typeof e!=="function"){return u(f)}p(f)}else{l()}})}})},{retries:s,factor:this.storage.retryOptions.retryDelayMultiplier,maxTimeout:this.storage.retryOptions.maxRetryDelay*1e3,maxRetryTime:this.storage.retryOptions.totalTimeout*1e3});if(!n){return a}else{return a.then(()=>{if(n){return n()}}).catch(n)}}setMetadata(e,r,n){const i=typeof r==="object"?r:{};n=typeof r==="function"?r:n;this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,FE.AvailableServiceObjectMethods.setMetadata,i);super.setMetadata(e,i).then(s=>n(null,...s)).catch(n).finally(()=>{this.storage.retryOptions.autoRetry=this.instanceRetryValue})}setStorageClass(e,r,n){n=typeof r==="function"?r:n;const i=typeof r==="object"?r:{};const s={...i,storageClass:e.replace(/-/g,"_").replace(/([a-z])([A-Z])/g,(a,u,l)=>{return u+"_"+l}).toUpperCase()};this.copy(this,s,(a,u,l)=>{if(a){n(a,l);return}this.metadata=u.metadata;n(null,l)})}setUserProject(e){this.bucket.setUserProject.call(this,e)}startResumableUpload_(e,r={}){var n;(n=r.metadata)!==null&&n!==void 0?n:r.metadata={};const i=this.storage.retryOptions;if(!this.shouldRetryBasedOnPreconditionAndIdempotencyStrat(r.preconditionOpts)){i.autoRetry=false}const s=n6e.upload({authClient:this.storage.authClient,apiEndpoint:this.storage.apiEndpoint,bucket:this.bucket.name,customRequestOptions:this.getRequestInterceptors().reduce((a,u)=>u(a),{}),file:this.name,generation:this.generation,key:this.encryptionKey,kmsKeyName:this.kmsKeyName,metadata:r.metadata,offset:r.offset,predefinedAcl:r.predefinedAcl,private:r.private,public:r.public,uri:r.uri,userProject:r.userProject||this.userProject,retryOptions:{...i},params:(r===null||r===void 0?void 0:r.preconditionOpts)||this.instancePreconditionOpts,chunkSize:r===null||r===void 0?void 0:r.chunkSize,highWaterMark:r===null||r===void 0?void 0:r.highWaterMark,[Bc.GCCL_GCS_CMD_KEY]:r[Bc.GCCL_GCS_CMD_KEY]});s.on("response",a=>{e.emit("response",a)}).on("metadata",a=>{this.metadata=a;e.emit("metadata")}).on("finish",()=>{e.emit("complete")}).on("progress",a=>e.emit("progress",a));e.setWritable(s);this.storage.retryOptions.autoRetry=this.instanceRetryValue}startSimpleUpload_(e,r={}){var n;(n=r.metadata)!==null&&n!==void 0?n:r.metadata={};const i=this.storage.apiEndpoint;const s=this.bucket.name;const a=`${i}/upload/storage/v1/b/${s}/o`;const u={qs:{name:this.name},uri:a,[Bc.GCCL_GCS_CMD_KEY]:r[Bc.GCCL_GCS_CMD_KEY]};if(this.generation!==void 0){u.qs.ifGenerationMatch=this.generation}if(this.kmsKeyName!==void 0){u.qs.kmsKeyName=this.kmsKeyName}if(typeof r.timeout==="number"){u.timeout=r.timeout}if(r.userProject||this.userProject){u.qs.userProject=r.userProject||this.userProject}if(r.predefinedAcl){u.qs.predefinedAcl=r.predefinedAcl}else if(r.private){u.qs.predefinedAcl="private"}else if(r.public){u.qs.predefinedAcl="publicRead"}Object.assign(u.qs,this.instancePreconditionOpts,r.preconditionOpts);Pp.util.makeWritableStream(e,{makeAuthenticatedRequest:l=>{this.request(l,(c,d,p)=>{if(c){e.destroy(c);return}this.metadata=d;e.emit("metadata",d);e.emit("response",p);e.emit("complete")})},metadata:r.metadata,request:u})}disableAutoRetryConditionallyIdempotent_(e,r,n){var i,s,a,u;if(typeof e==="object"&&((s=(i=e===null||e===void 0?void 0:e.reqOpts)===null||i===void 0?void 0:i.qs)===null||s===void 0?void 0:s.ifGenerationMatch)===void 0&&(n===null||n===void 0?void 0:n.ifGenerationMatch)===void 0&&r===FE.AvailableServiceObjectMethods.delete&&this.storage.retryOptions.idempotencyStrategy===So.IdempotencyStrategy.RetryConditional||this.storage.retryOptions.idempotencyStrategy===So.IdempotencyStrategy.RetryNever){this.storage.retryOptions.autoRetry=false}if(typeof e==="object"&&((u=(a=e===null||e===void 0?void 0:e.reqOpts)===null||a===void 0?void 0:a.qs)===null||u===void 0?void 0:u.ifMetagenerationMatch)===void 0&&(n===null||n===void 0?void 0:n.ifMetagenerationMatch)===void 0&&r===FE.AvailableServiceObjectMethods.setMetadata&&this.storage.retryOptions.idempotencyStrategy===So.IdempotencyStrategy.RetryConditional||this.storage.retryOptions.idempotencyStrategy===So.IdempotencyStrategy.RetryNever){this.storage.retryOptions.autoRetry=false}}async getBufferFromReadable(e){const r=[];for await(const n of e){r.push(n)}return Buffer.concat(r)}};Bn.File=LT;GB=new WeakSet,o6e=o(async function t(e,r={}){const n=this.metadata;let i=!!(r.crc32c||r.md5);if(r.crc32c&&n.crc32c){i=!e.test("crc32c",n.crc32c)}if(r.md5&&n.md5Hash){i=!e.test("md5",n.md5Hash)}if(i){const s=[];let a="";let u="";try{await this.delete();if(r.md5&&!n.md5Hash){a="MD5_NOT_AVAILABLE";u=To.MD5_NOT_AVAILABLE}else{a="FILE_NO_UPLOAD";u=To.UPLOAD_MISMATCH}}catch(c){const d=c;a="FILE_NO_UPLOAD_DELETE";u=`${To.UPLOAD_MISMATCH_DELETE_FAIL}${d.message}`;s.push(d)}const l=new BE(u);l.code=a;l.errors=s;throw l}return true},"_File_validateIntegrity");(0,X6t.promisifyAll)(LT,{exclude:["cloudStorageURI","publicUrl","request","save","setEncryptionKey","shouldRetryBasedOnPreconditionAndIdempotencyStrat","getBufferFromReadable"]})});var WB=_(Ng=>{"use strict";Object.defineProperty(Ng,"__esModule",{value:true});Ng.Iam=Ng.IAMExceptionMessages=void 0;var abt=_l();var YB=yl();var FT;(function(t){t["POLICY_OBJECT_REQUIRED"]="A policy object is required.";t["PERMISSIONS_REQUIRED"]="Permissions are required."})(FT||(Ng.IAMExceptionMessages=FT={}));var BT=class{static{o(this,"Iam")}constructor(e){this.request_=e.request.bind(e);this.resourceId_="buckets/"+e.getId()}getPolicy(e,r){const{options:n,callback:i}=(0,YB.normalize)(e,r);const s={};if(n.userProject){s.userProject=n.userProject}if(n.requestedPolicyVersion!==null&&n.requestedPolicyVersion!==void 0){s.optionsRequestedPolicyVersion=n.requestedPolicyVersion}this.request_({uri:"/iam",qs:s},i)}setPolicy(e,r,n){if(e===null||typeof e!=="object"){throw new Error(FT.POLICY_OBJECT_REQUIRED)}const{options:i,callback:s}=(0,YB.normalize)(r,n);let a;if(e.etag===void 0){a=0}this.request_({method:"PUT",uri:"/iam",maxRetries:a,json:Object.assign({resourceId:this.resourceId_},e),qs:i},s)}testPermissions(e,r,n){if(!Array.isArray(e)&&typeof e!=="string"){throw new Error(FT.PERMISSIONS_REQUIRED)}const{options:i,callback:s}=(0,YB.normalize)(r,n);const a=Array.isArray(e)?e:[e];const u=Object.assign({permissions:a},i);this.request_({uri:"/iam/testPermissions",qs:u,useQuerystring:true},(l,c)=>{if(l){s(l,null,c);return}const d=Array.isArray(c.permissions)?c.permissions:[];const p=a.reduce((f,h)=>{f[h]=d.indexOf(h)>-1;return f},{});s(null,p,c)})}};Ng.Iam=BT;(0,abt.promisifyAll)(BT)});var JB=_(VT=>{"use strict";Object.defineProperty(VT,"__esModule",{value:true});VT.Notification=void 0;var obt=Tp();var ubt=_l();var MT=class extends obt.ServiceObject{static{o(this,"Notification")}constructor(e,r){const n={};const i={create:true,delete:{reqOpts:{qs:n}},get:{reqOpts:{qs:n}},getMetadata:{reqOpts:{qs:n}},exists:true};super({parent:e,baseUrl:"/notificationConfigs",id:r.toString(),createMethod:e.createNotification.bind(e),methods:i})}};VT.Notification=MT;(0,ubt.promisifyAll)(MT)});var UT=_(Ii=>{"use strict";var lbt=Ii&&Ii.__createBinding||(Object.create?function(t,e,r,n){if(n===void 0)n=r;var i=Object.getOwnPropertyDescriptor(e,r);if(!i||("get"in i?!e.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return e[r]}}}Object.defineProperty(t,n,i)}:function(t,e,r,n){if(n===void 0)n=r;t[n]=e[r]});var cbt=Ii&&Ii.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:true,value:e})}:function(t,e){t["default"]=e});var ZB=Ii&&Ii.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null){for(var r in t)if(r!=="default"&&Object.prototype.hasOwnProperty.call(t,r))lbt(e,t,r)}cbt(e,t);return e};var d6e=Ii&&Ii.__importDefault||function(t){return t&&t.__esModule?t:{"default":t}};Object.defineProperty(Ii,"__esModule",{value:true});Ii.Bucket=Ii.BucketExceptionMessages=Ii.AvailableServiceObjectMethods=Ii.BucketActionToHTTPMethod=void 0;var HT=Tp();var p6e=CB();var dbt=_l();var pbt=ZB(require("fs"));var fbt=ZB(OB());var hbt=ZB(require("path"));var u6e=d6e(PB());var l6e=require("util");var mbt=d6e(CE());var gbt=yl();var c6e=DB();var QB=jE();var ybt=WB();var vbt=JB();var Ig=Rg();var _bt=FB();var Ebt=require("stream");var bbt=require("url");var XB;(function(t){t["list"]="GET"})(XB||(Ii.BucketActionToHTTPMethod=XB={}));var Pg;(function(t){t[t["setMetadata"]=0]="setMetadata";t[t["delete"]=1]="delete"})(Pg||(Ii.AvailableServiceObjectMethods=Pg={}));var wl;(function(t){t["PROVIDE_SOURCE_FILE"]="You must provide at least one source file.";t["DESTINATION_FILE_NOT_SPECIFIED"]="A destination file must be specified.";t["CHANNEL_ID_REQUIRED"]="An ID is required to create a channel.";t["TOPIC_NAME_REQUIRED"]="A valid topic name is required.";t["CONFIGURATION_OBJECT_PREFIX_REQUIRED"]="A configuration object with a prefix is required.";t["SPECIFY_FILE_NAME"]="A file name must be specified.";t["METAGENERATION_NOT_PROVIDED"]="A metageneration must be provided.";t["SUPPLY_NOTIFICATION_ID"]="You must supply a notification ID."})(wl||(Ii.BucketExceptionMessages=wl={}));var ME=class t extends HT.ServiceObject{static{o(this,"Bucket")}getFilesStream(e){return new Ebt.Readable}constructor(e,r,n){var i,s,a,u;n=n||{};r=r.replace(/^gs:\/\//,"").replace(/\/+$/,"");const l={};if((i=n===null||n===void 0?void 0:n.preconditionOpts)===null||i===void 0?void 0:i.ifGenerationMatch){l.ifGenerationMatch=n.preconditionOpts.ifGenerationMatch}if((s=n===null||n===void 0?void 0:n.preconditionOpts)===null||s===void 0?void 0:s.ifGenerationNotMatch){l.ifGenerationNotMatch=n.preconditionOpts.ifGenerationNotMatch}if((a=n===null||n===void 0?void 0:n.preconditionOpts)===null||a===void 0?void 0:a.ifMetagenerationMatch){l.ifMetagenerationMatch=n.preconditionOpts.ifMetagenerationMatch}if((u=n===null||n===void 0?void 0:n.preconditionOpts)===null||u===void 0?void 0:u.ifMetagenerationNotMatch){l.ifMetagenerationNotMatch=n.preconditionOpts.ifMetagenerationNotMatch}const c=n.userProject;if(typeof c==="string"){l.userProject=c}const d={create:{reqOpts:{qs:l}},delete:{reqOpts:{qs:l}},exists:{reqOpts:{qs:l}},get:{reqOpts:{qs:l}},getMetadata:{reqOpts:{qs:l}},setMetadata:{reqOpts:{qs:l}}};super({parent:e,baseUrl:"/b",id:r,createMethod:e.createBucket.bind(e),methods:d});this.name=r;this.storage=e;this.userProject=n.userProject;this.acl=new c6e.Acl({request:this.request.bind(this),pathPrefix:"/acl"});this.acl.default=new c6e.Acl({request:this.request.bind(this),pathPrefix:"/defaultObjectAcl"});this.crc32cGenerator=n.crc32cGenerator||this.storage.crc32cGenerator;this.iam=new ybt.Iam(this);this.getFilesStream=p6e.paginator.streamify("getFiles");this.instanceRetryValue=e.retryOptions.autoRetry;this.instancePreconditionOpts=n===null||n===void 0?void 0:n.preconditionOpts}get cloudStorageURI(){const e=new bbt.URL("gs://");e.host=this.name;return e}addLifecycleRule(e,r,n){let i={};if(typeof r==="function"){n=r}else if(r){i=r}i=i||{};const s=Array.isArray(e)?e:[e];for(const a of s){if(a.condition.createdBefore instanceof Date){a.condition.createdBefore=a.condition.createdBefore.toISOString().replace(/T.+$/,"")}if(a.condition.customTimeBefore instanceof Date){a.condition.customTimeBefore=a.condition.customTimeBefore.toISOString().replace(/T.+$/,"")}if(a.condition.noncurrentTimeBefore instanceof Date){a.condition.noncurrentTimeBefore=a.condition.noncurrentTimeBefore.toISOString().replace(/T.+$/,"")}}if(i.append===false){this.setMetadata({lifecycle:{rule:s}},i,n);return}this.getMetadata((a,u)=>{var l,c;if(a){n(a);return}const d=Array.isArray((l=u.lifecycle)===null||l===void 0?void 0:l.rule)?(c=u.lifecycle)===null||c===void 0?void 0:c.rule:[];this.setMetadata({lifecycle:{rule:d.concat(s)}},i,n)})}combine(e,r,n,i){var s;if(!Array.isArray(e)||e.length===0){throw new Error(wl.PROVIDE_SOURCE_FILE)}if(!r){throw new Error(wl.DESTINATION_FILE_NOT_SPECIFIED)}let a={};if(typeof n==="function"){i=n}else if(n){a=n}this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,Pg.setMetadata,a);const u=o(d=>{if(d instanceof QB.File){return d}return this.file(d)},"convertToFile");e=e.map(u);const l=u(r);i=i||HT.util.noop;if(!l.metadata.contentType){const d=fbt.contentType(l.name);if(d){l.metadata.contentType=d}}let c=this.storage.retryOptions.maxRetries;if(((s=l===null||l===void 0?void 0:l.instancePreconditionOpts)===null||s===void 0?void 0:s.ifGenerationMatch)===void 0&&a.ifGenerationMatch===void 0&&this.storage.retryOptions.idempotencyStrategy===Ig.IdempotencyStrategy.RetryConditional||this.storage.retryOptions.idempotencyStrategy===Ig.IdempotencyStrategy.RetryNever){c=0}if(a.ifGenerationMatch===void 0){Object.assign(a,l.instancePreconditionOpts,a)}l.request({method:"POST",uri:"/compose",maxRetries:c,json:{destination:{contentType:l.metadata.contentType},sourceObjects:e.map(d=>{const p={name:d.name};if(d.metadata&&d.metadata.generation){p.generation=parseInt(d.metadata.generation.toString())}return p})},qs:a},(d,p)=>{this.storage.retryOptions.autoRetry=this.instanceRetryValue;if(d){i(d,null,p);return}i(null,l,p)})}createChannel(e,r,n,i){if(typeof e!=="string"){throw new Error(wl.CHANNEL_ID_REQUIRED)}let s={};if(typeof n==="function"){i=n}else if(n){s=n}this.request({method:"POST",uri:"/o/watch",json:Object.assign({id:e,type:"web_hook"},r),qs:s},(a,u)=>{if(a){i(a,null,u);return}const l=u.resourceId;const c=this.storage.channel(e,l);c.metadata=u;i(null,c,u)})}createNotification(e,r,n){let i={};if(typeof r==="function"){n=r}else if(r){i=r}const s=e!==null&&typeof e==="object";if(s&&HT.util.isCustomType(e,"pubsub/topic")){e=e.name}if(typeof e!=="string"){throw new Error(wl.TOPIC_NAME_REQUIRED)}const a=Object.assign({topic:e},i);if(a.topic.indexOf("projects")!==0){a.topic="projects/{{projectId}}/topics/"+a.topic}a.topic="//pubsub.googleapis.com/"+a.topic;if(!a.payloadFormat){a.payloadFormat="JSON_API_V1"}const u={};if(a.userProject){u.userProject=a.userProject;delete a.userProject}this.request({method:"POST",uri:"/notificationConfigs",json:(0,gbt.convertObjKeysToSnakeCase)(a),qs:u,maxRetries:0},(l,c)=>{if(l){n(l,null,c);return}const d=this.notification(c.id);d.metadata=c;n(null,d,c)})}deleteFiles(e,r){let n={};if(typeof e==="function"){r=e}else if(e){n=e}const i=10;const s=1e3;const a=[];const u=o(l=>{return l.delete(n).catch(c=>{if(!n.force){throw c}a.push(c)})},"deleteFile");(async()=>{try{let l=[];const c=(0,u6e.default)(i);const d=this.getFilesStream(n);for await(const p of d){if(l.length>=s){await Promise.all(l);l=[]}l.push(c(()=>u(p)).catch(f=>{d.destroy();throw f}))}await Promise.all(l);r(a.length>0?a:null)}catch(l){r(l);return}})()}deleteLabels(e,r,n){let i=new Array;let s={};if(typeof e==="function"){n=e}else if(typeof e==="string"){i=[e]}else if(Array.isArray(e)){i=e}else if(e){s=e}if(typeof r==="function"){n=r}else if(r){s=r}const a=o(u=>{const l=u.reduce((c,d)=>{c[d]=null;return c},{});if((s===null||s===void 0?void 0:s.ifMetagenerationMatch)!==void 0){this.setLabels(l,s,n)}else{this.setLabels(l,n)}},"deleteLabels");if(i.length===0){this.getLabels((u,l)=>{if(u){n(u);return}a(Object.keys(l))})}else{a(i)}}disableRequesterPays(e,r){let n={};if(typeof e==="function"){r=e}else if(e){n=e}this.setMetadata({billing:{requesterPays:false}},n,r)}enableLogging(e,r){if(!e||typeof e==="function"||typeof e.prefix==="undefined"){throw new Error(wl.CONFIGURATION_OBJECT_PREFIX_REQUIRED)}let n=this.id;if(e.bucket&&e.bucket instanceof t){n=e.bucket.id}else if(e.bucket&&typeof e.bucket==="string"){n=e.bucket}const i={};if(e===null||e===void 0?void 0:e.ifMetagenerationMatch){i.ifMetagenerationMatch=e.ifMetagenerationMatch}if(e===null||e===void 0?void 0:e.ifMetagenerationNotMatch){i.ifMetagenerationNotMatch=e.ifMetagenerationNotMatch}(async()=>{try{const[s]=await this.iam.getPolicy();s.bindings.push({members:["group:cloud-storage-analytics@google.com"],role:"roles/storage.objectCreator"});await this.iam.setPolicy(s);this.setMetadata({logging:{logBucket:n,logObjectPrefix:e.prefix}},i,r)}catch(s){r(s);return}})()}enableRequesterPays(e,r){let n={};if(typeof e==="function"){r=e}else if(e){n=e}this.setMetadata({billing:{requesterPays:true}},n,r)}file(e,r){if(!e){throw Error(wl.SPECIFY_FILE_NAME)}return new QB.File(this,e,r)}getFiles(e,r){let n=typeof e==="object"?e:{};if(!r){r=e}n=Object.assign({},n);this.request({uri:"/o",qs:n},(i,s)=>{if(i){r(i,null,null,s);return}const a=s.items?s.items:[];const u=a.map(c=>{const d={};if(n.versions){d.generation=c.generation}if(c.kmsKeyName){d.kmsKeyName=c.kmsKeyName}const p=this.file(c.name,d);p.metadata=c;return p});let l=null;if(s.nextPageToken){l=Object.assign({},n,{pageToken:s.nextPageToken})}r(null,u,l,s)})}getLabels(e,r){let n={};if(typeof e==="function"){r=e}else if(e){n=e}this.getMetadata(n,(i,s)=>{if(i){r(i,null);return}r(null,(s===null||s===void 0?void 0:s.labels)||{})})}getNotifications(e,r){let n={};if(typeof e==="function"){r=e}else if(e){n=e}this.request({uri:"/notificationConfigs",qs:n},(i,s)=>{if(i){r(i,null,s);return}const a=s.items?s.items:[];const u=a.map(l=>{const c=this.notification(l.id);c.metadata=l;return c});r(null,u,s)})}getSignedUrl(e,r){const n=XB[e.action];const i={method:n,expires:e.expires,version:e.version,cname:e.cname,extensionHeaders:e.extensionHeaders||{},queryParams:e.queryParams||{}};if(!this.signer){this.signer=new _bt.URLSigner(this.storage.authClient,this)}this.signer.getSignedUrl(i).then(s=>r(null,s),r)}lock(e,r){const n=typeof e;if(n!=="number"&&n!=="string"){throw new Error(wl.METAGENERATION_NOT_PROVIDED)}this.request({method:"POST",uri:"/lockRetentionPolicy",qs:{ifMetagenerationMatch:e}},r)}makePrivate(e,r){var n,i,s,a;const u=typeof e==="object"?e:{};r=typeof e==="function"?e:r;u.private=true;const l={predefinedAcl:"projectPrivate"};if(u.userProject){l.userProject=u.userProject}if((n=u.preconditionOpts)===null||n===void 0?void 0:n.ifGenerationMatch){l.ifGenerationMatch=u.preconditionOpts.ifGenerationMatch}if((i=u.preconditionOpts)===null||i===void 0?void 0:i.ifGenerationNotMatch){l.ifGenerationNotMatch=u.preconditionOpts.ifGenerationNotMatch}if((s=u.preconditionOpts)===null||s===void 0?void 0:s.ifMetagenerationMatch){l.ifMetagenerationMatch=u.preconditionOpts.ifMetagenerationMatch}if((a=u.preconditionOpts)===null||a===void 0?void 0:a.ifMetagenerationNotMatch){l.ifMetagenerationNotMatch=u.preconditionOpts.ifMetagenerationNotMatch}const c={...u.metadata,acl:null};this.setMetadata(c,l,d=>{if(d){r(d)}const p=o(()=>{if(u.includeFiles){return(0,l6e.promisify)(this.makeAllFilesPublicPrivate_).call(this,u)}return Promise.resolve([])},"internalCall");p().then(f=>r(null,f)).catch(r)})}makePublic(e,r){const n=typeof e==="object"?e:{};r=typeof e==="function"?e:r;const i={public:true,...n};this.acl.add({entity:"allUsers",role:"READER"}).then(()=>{return this.acl.default.add({entity:"allUsers",role:"READER"})}).then(()=>{if(i.includeFiles){return(0,l6e.promisify)(this.makeAllFilesPublicPrivate_).call(this,i)}return[]}).then(s=>r(null,s),r)}notification(e){if(!e){throw new Error(wl.SUPPLY_NOTIFICATION_ID)}return new vbt.Notification(this,e)}removeRetentionPeriod(e,r){const n=typeof e==="object"?e:{};r=typeof e==="function"?e:r;this.setMetadata({retentionPolicy:null},n,r)}request(e,r){if(this.userProject&&(!e.qs||!e.qs.userProject)){e.qs={...e.qs,userProject:this.userProject}}return super.request(e,r)}setLabels(e,r,n){const i=typeof r==="object"?r:{};n=typeof r==="function"?r:n;n=n||HT.util.noop;this.setMetadata({labels:e},i,n)}setMetadata(e,r,n){const i=typeof r==="object"?r:{};n=typeof r==="function"?r:n;this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,Pg.setMetadata,i);super.setMetadata(e,i).then(s=>n(null,...s)).catch(n).finally(()=>{this.storage.retryOptions.autoRetry=this.instanceRetryValue})}setRetentionPeriod(e,r,n){const i=typeof r==="object"?r:{};n=typeof r==="function"?r:n;this.setMetadata({retentionPolicy:{retentionPeriod:e.toString()}},i,n)}setCorsConfiguration(e,r,n){const i=typeof r==="object"?r:{};n=typeof r==="function"?r:n;this.setMetadata({cors:e},i,n)}setStorageClass(e,r,n){const i=typeof r==="object"?r:{};n=typeof r==="function"?r:n;e=e.replace(/-/g,"_").replace(/([a-z])([A-Z])/g,(s,a,u)=>{return a+"_"+u}).toUpperCase();this.setMetadata({storageClass:e},i,n)}setUserProject(e){this.userProject=e;const r=["create","delete","exists","get","getMetadata","setMetadata"];r.forEach(n=>{const i=this.methods[n];if(typeof i==="object"){if(typeof i.reqOpts==="object"){Object.assign(i.reqOpts.qs,{userProject:e})}else{i.reqOpts={qs:{userProject:e}}}}})}upload(e,r,n){var i,s;const a=o(d=>{const p=(0,mbt.default)(async f=>{await new Promise((h,m)=>{var g,y;if(d===0&&((y=(g=c===null||c===void 0?void 0:c.storage)===null||g===void 0?void 0:g.retryOptions)===null||y===void 0?void 0:y.autoRetry)){c.storage.retryOptions.autoRetry=false}const v=c.createWriteStream(u);if(u.onUploadProgress){v.on("progress",u.onUploadProgress)}pbt.createReadStream(e).on("error",f).pipe(v).on("error",w=>{if(this.storage.retryOptions.autoRetry&&this.storage.retryOptions.retryableErrorFn(w)){return m(w)}else{return f(w)}}).on("finish",()=>{return h()})})},{retries:d,factor:this.storage.retryOptions.retryDelayMultiplier,maxTimeout:this.storage.retryOptions.maxRetryDelay*1e3,maxRetryTime:this.storage.retryOptions.totalTimeout*1e3});if(!n){return p}else{return p.then(()=>{if(n){return n(null,c,c.metadata)}}).catch(n)}},"upload");if(global["GCLOUD_SANDBOX_ENV"]){return}let u=typeof r==="object"?r:{};n=typeof r==="function"?r:n;u=Object.assign({metadata:{}},u);let l=this.storage.retryOptions.maxRetries;if(((i=u===null||u===void 0?void 0:u.preconditionOpts)===null||i===void 0?void 0:i.ifGenerationMatch)===void 0&&((s=this.instancePreconditionOpts)===null||s===void 0?void 0:s.ifGenerationMatch)===void 0&&this.storage.retryOptions.idempotencyStrategy===Ig.IdempotencyStrategy.RetryConditional||this.storage.retryOptions.idempotencyStrategy===Ig.IdempotencyStrategy.RetryNever){l=0}let c;if(u.destination instanceof QB.File){c=u.destination}else if(u.destination!==null&&typeof u.destination==="string"){c=this.file(u.destination,{encryptionKey:u.encryptionKey,kmsKeyName:u.kmsKeyName,preconditionOpts:this.instancePreconditionOpts})}else{const d=hbt.basename(e);c=this.file(d,{encryptionKey:u.encryptionKey,kmsKeyName:u.kmsKeyName,preconditionOpts:this.instancePreconditionOpts})}a(l)}makeAllFilesPublicPrivate_(e,r){const n=10;const i=[];const s=[];const a=typeof e==="object"?e:{};r=typeof e==="function"?e:r;const u=o(async l=>{try{await(a.public?l.makePublic():l.makePrivate(a));s.push(l)}catch(c){if(!a.force){throw c}i.push(c)}},"processFile");this.getFiles(a).then(([l])=>{const c=(0,u6e.default)(n);const d=l.map(p=>{return c(()=>u(p))});return Promise.all(d)}).then(()=>r(i.length>0?i:null,s),l=>r(l,s))}getId(){return this.id}disableAutoRetryConditionallyIdempotent_(e,r,n){var i,s;if(typeof e==="object"&&((s=(i=e===null||e===void 0?void 0:e.reqOpts)===null||i===void 0?void 0:i.qs)===null||s===void 0?void 0:s.ifMetagenerationMatch)===void 0&&(n===null||n===void 0?void 0:n.ifMetagenerationMatch)===void 0&&(r===Pg.setMetadata||r===Pg.delete)&&this.storage.retryOptions.idempotencyStrategy===Ig.IdempotencyStrategy.RetryConditional){this.storage.retryOptions.autoRetry=false}else if(this.storage.retryOptions.idempotencyStrategy===Ig.IdempotencyStrategy.RetryNever){this.storage.retryOptions.autoRetry=false}}};Ii.Bucket=ME;p6e.paginator.extend(ME,"getFiles");(0,dbt.promisifyAll)(ME,{exclude:["cloudStorageURI","request","file","notification"]})});var eM=_(GT=>{"use strict";Object.defineProperty(GT,"__esModule",{value:true});GT.Channel=void 0;var f6e=Tp();var wbt=_l();var zT=class extends f6e.ServiceObject{static{o(this,"Channel")}constructor(e,r,n){const i={parent:e,baseUrl:"/channels",id:"",methods:{}};super(i);this.metadata.id=r;this.metadata.resourceId=n}stop(e){e=e||f6e.util.noop;this.request({method:"POST",uri:"/stop",json:this.metadata},(r,n)=>{e(r,n)})}};GT.Channel=zT;(0,wbt.promisifyAll)(zT)});var tM=_(YT=>{"use strict";Object.defineProperty(YT,"__esModule",{value:true});YT.HmacKey=void 0;var Sbt=Tp();var Tbt=Rg();var Abt=_l();var KT=class extends Sbt.ServiceObject{static{o(this,"HmacKey")}constructor(e,r,n){const i={delete:true,get:true,getMetadata:true,setMetadata:{reqOpts:{method:"PUT"}}};const s=n&&n.projectId||e.projectId;super({parent:e,id:r,baseUrl:`/projects/${s}/hmacKeys`,methods:i});this.storage=e;this.instanceRetryValue=e.retryOptions.autoRetry}setMetadata(e,r,n){if(this.storage.retryOptions.idempotencyStrategy!==Tbt.IdempotencyStrategy.RetryAlways){this.storage.retryOptions.autoRetry=false}const i=typeof r==="object"?r:{};n=typeof r==="function"?r:n;super.setMetadata(e,i).then(s=>n(null,...s)).catch(n).finally(()=>{this.storage.retryOptions.autoRetry=this.instanceRetryValue})}};YT.HmacKey=KT;(0,Abt.promisifyAll)(KT)});var Rg=_(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:true});Yr.Storage=Yr.RETRYABLE_ERR_FN_DEFAULT=Yr.MAX_RETRY_DELAY_DEFAULT=Yr.TOTAL_TIMEOUT_DEFAULT=Yr.RETRY_DELAY_MULTIPLIER_DEFAULT=Yr.MAX_RETRY_DEFAULT=Yr.AUTO_RETRY_DEFAULT=Yr.PROTOCOL_REGEX=Yr.StorageExceptionMessages=Yr.ExceptionMessages=Yr.IdempotencyStrategy=void 0;var xbt=Tp();var rM=CB();var Cbt=_l();var h6e=require("stream");var g6e=UT();var y6e=eM();var Rbt=jE();var WT=yl();var Obt=vg();var v6e=tM();var Nbt=qE();var nM;(function(t){t[t["RetryAlways"]=0]="RetryAlways";t[t["RetryConditional"]=1]="RetryConditional";t[t["RetryNever"]=2]="RetryNever"})(nM||(Yr.IdempotencyStrategy=nM={}));var m6e;(function(t){t["EXPIRATION_DATE_INVALID"]="The expiration date provided was invalid.";t["EXPIRATION_DATE_PAST"]="An expiration date cannot be in the past."})(m6e||(Yr.ExceptionMessages=m6e={}));var Dg;(function(t){t["BUCKET_NAME_REQUIRED"]="A bucket name is needed to use Cloud Storage.";t["BUCKET_NAME_REQUIRED_CREATE"]="A name is required to create a bucket.";t["HMAC_SERVICE_ACCOUNT"]="The first argument must be a service account email to create an HMAC key.";t["HMAC_ACCESS_ID"]="An access ID is needed to create an HmacKey object."})(Dg||(Yr.StorageExceptionMessages=Dg={}));Yr.PROTOCOL_REGEX=/^(\w*):\/\//;Yr.AUTO_RETRY_DEFAULT=true;Yr.MAX_RETRY_DEFAULT=3;Yr.RETRY_DELAY_MULTIPLIER_DEFAULT=2;Yr.TOTAL_TIMEOUT_DEFAULT=600;Yr.MAX_RETRY_DELAY_DEFAULT=64;var Ibt=nM.RetryConditional;var Pbt=o(function(t){var e;const r=o(n=>{return n.includes("eai_again")||n==="econnreset"||n==="unexpected connection closure"||n==="epipe"||n==="socket connection timeout"},"isConnectionProblem");if(t){if([408,429,500,502,503,504].indexOf(t.code)!==-1){return true}if(typeof t.code==="string"){if(["408","429","500","502","503","504"].indexOf(t.code)!==-1){return true}const n=t.code.toLowerCase();if(r(n)){return true}}if(t.errors){for(const n of t.errors){const i=(e=n===null||n===void 0?void 0:n.reason)===null||e===void 0?void 0:e.toString().toLowerCase();if(i&&r(i)){return true}}}}return false},"RETRYABLE_ERR_FN_DEFAULT");Yr.RETRYABLE_ERR_FN_DEFAULT=Pbt;var Sl=class t extends xbt.Service{static{o(this,"Storage")}getBucketsStream(){return new h6e.Readable}getHmacKeysStream(){return new h6e.Readable}constructor(e={}){var r,n,i,s,a,u,l,c,d,p,f,h,m,g;let y="https://storage.googleapis.com";let v=false;const w=process.env.STORAGE_EMULATOR_HOST;if(typeof w==="string"){y=t.sanitizeEndpoint(w);v=true}if(e.apiEndpoint){y=t.sanitizeEndpoint(e.apiEndpoint);v=true}e=Object.assign({},e,{apiEndpoint:y});const E=w||`${e.apiEndpoint}/storage/v1`;const b={apiEndpoint:e.apiEndpoint,retryOptions:{autoRetry:((r=e.retryOptions)===null||r===void 0?void 0:r.autoRetry)!==void 0?(n=e.retryOptions)===null||n===void 0?void 0:n.autoRetry:Yr.AUTO_RETRY_DEFAULT,maxRetries:((i=e.retryOptions)===null||i===void 0?void 0:i.maxRetries)?(s=e.retryOptions)===null||s===void 0?void 0:s.maxRetries:Yr.MAX_RETRY_DEFAULT,retryDelayMultiplier:((a=e.retryOptions)===null||a===void 0?void 0:a.retryDelayMultiplier)?(u=e.retryOptions)===null||u===void 0?void 0:u.retryDelayMultiplier:Yr.RETRY_DELAY_MULTIPLIER_DEFAULT,totalTimeout:((l=e.retryOptions)===null||l===void 0?void 0:l.totalTimeout)?(c=e.retryOptions)===null||c===void 0?void 0:c.totalTimeout:Yr.TOTAL_TIMEOUT_DEFAULT,maxRetryDelay:((d=e.retryOptions)===null||d===void 0?void 0:d.maxRetryDelay)?(p=e.retryOptions)===null||p===void 0?void 0:p.maxRetryDelay:Yr.MAX_RETRY_DELAY_DEFAULT,retryableErrorFn:((f=e.retryOptions)===null||f===void 0?void 0:f.retryableErrorFn)?(h=e.retryOptions)===null||h===void 0?void 0:h.retryableErrorFn:Yr.RETRYABLE_ERR_FN_DEFAULT,idempotencyStrategy:((m=e.retryOptions)===null||m===void 0?void 0:m.idempotencyStrategy)!==void 0?(g=e.retryOptions)===null||g===void 0?void 0:g.idempotencyStrategy:Ibt},baseUrl:E,customEndpoint:v,useAuthWithCustomEndpoint:e===null||e===void 0?void 0:e.useAuthWithCustomEndpoint,projectIdRequired:false,scopes:["https://www.googleapis.com/auth/iam","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/devstorage.full_control"],packageJson:(0,Obt.getPackageJSON)()};super(b,e);this.acl=t.acl;this.crc32cGenerator=e.crc32cGenerator||Nbt.CRC32C_DEFAULT_VALIDATOR_GENERATOR;this.retryOptions=b.retryOptions;this.getBucketsStream=rM.paginator.streamify("getBuckets");this.getHmacKeysStream=rM.paginator.streamify("getHmacKeys")}static sanitizeEndpoint(e){if(!Yr.PROTOCOL_REGEX.test(e)){e=`https://${e}`}return e.replace(/\/+$/,"")}bucket(e,r){if(!e){throw new Error(Dg.BUCKET_NAME_REQUIRED)}return new g6e.Bucket(this,e,r)}channel(e,r){return new y6e.Channel(this,e,r)}createBucket(e,r,n){if(!e){throw new Error(Dg.BUCKET_NAME_REQUIRED_CREATE)}let i;if(!n){n=r;i={}}else{i=r}const s={...i,name:e};const a={archive:"ARCHIVE",coldline:"COLDLINE",dra:"DURABLE_REDUCED_AVAILABILITY",multiRegional:"MULTI_REGIONAL",nearline:"NEARLINE",regional:"REGIONAL",standard:"STANDARD"};const u=Object.keys(a);for(const c of u){if(s[c]){if(i.storageClass&&i.storageClass!==c){throw new Error(`Both \`${c}\` and \`storageClass\` were provided.`)}s.storageClass=a[c];delete s[c]}}if(s.requesterPays){s.billing={requesterPays:s.requesterPays};delete s.requesterPays}const l={project:this.projectId};if(s.userProject){l.userProject=s.userProject;delete s.userProject}this.request({method:"POST",uri:"/b",qs:l,json:s},(c,d)=>{if(c){n(c,null,d);return}const p=this.bucket(e);p.metadata=d;n(null,p,d)})}createHmacKey(e,r,n){if(typeof e!=="string"){throw new Error(Dg.HMAC_SERVICE_ACCOUNT)}const{options:i,callback:s}=(0,WT.normalize)(r,n);const a=Object.assign({},i,{serviceAccountEmail:e});const u=a.projectId||this.projectId;delete a.projectId;this.request({method:"POST",uri:`/projects/${u}/hmacKeys`,qs:a,maxRetries:0},(l,c)=>{if(l){s(l,null,null,c);return}const d=c.metadata;const p=this.hmacKey(d.accessId,{projectId:d.projectId});p.metadata=c.metadata;s(null,p,c.secret,c)})}getBuckets(e,r){const{options:n,callback:i}=(0,WT.normalize)(e,r);n.project=n.project||this.projectId;this.request({uri:"/b",qs:n},(s,a)=>{if(s){i(s,null,null,a);return}const u=a.items?a.items:[];const l=u.map(d=>{const p=this.bucket(d.id);p.metadata=d;return p});const c=a.nextPageToken?Object.assign({},n,{pageToken:a.nextPageToken}):null;i(null,l,c,a)})}getHmacKeys(e,r){const{options:n,callback:i}=(0,WT.normalize)(e,r);const s=Object.assign({},n);const a=s.projectId||this.projectId;delete s.projectId;this.request({uri:`/projects/${a}/hmacKeys`,qs:s},(u,l)=>{if(u){i(u,null,null,l);return}const c=l.items?l.items:[];const d=c.map(f=>{const h=this.hmacKey(f.accessId,{projectId:f.projectId});h.metadata=f;return h});const p=l.nextPageToken?Object.assign({},n,{pageToken:l.nextPageToken}):null;i(null,d,p,l)})}getServiceAccount(e,r){const{options:n,callback:i}=(0,WT.normalize)(e,r);this.request({uri:`/projects/${this.projectId}/serviceAccount`,qs:n},(s,a)=>{if(s){i(s,null,a);return}const u={};for(const l in a){if(a.hasOwnProperty(l)){const c=l.replace(/_(\w)/g,(d,p)=>p.toUpperCase());u[c]=a[l]}}i(null,u,a)})}hmacKey(e,r){if(!e){throw new Error(Dg.HMAC_ACCESS_ID)}return new v6e.HmacKey(this,e,r)}};Yr.Storage=Sl;Sl.Bucket=g6e.Bucket;Sl.Channel=y6e.Channel;Sl.File=Rbt.File;Sl.HmacKey=v6e.HmacKey;Sl.acl={OWNER_ROLE:"OWNER",READER_ROLE:"READER",WRITER_ROLE:"WRITER"};rM.paginator.extend(Sl,["getBuckets","getHmacKeys"]);(0,Cbt.promisifyAll)(Sl,{exclude:["bucket","channel","hmacKey"]})});var JT=_(Vc=>{"use strict";var _6e=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";var Dbt=_6e+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040";var E6e="["+_6e+"]["+Dbt+"]*";var kbt=new RegExp("^"+E6e+"$");var $bt=o(function(t,e){const r=[];let n=e.exec(t);while(n){const i=[];i.startIndex=e.lastIndex-n[0].length;const s=n.length;for(let a=0;a<s;a++){i.push(n[a])}r.push(i);n=e.exec(t)}return r},"getAllMatches");var Lbt=o(function(t){const e=kbt.exec(t);return!(e===null||typeof e==="undefined")},"isName");Vc.isExist=function(t){return typeof t!=="undefined"};Vc.isEmptyObject=function(t){return Object.keys(t).length===0};Vc.merge=function(t,e,r){if(e){const n=Object.keys(e);const i=n.length;for(let s=0;s<i;s++){if(r==="strict"){t[n[s]]=[e[n[s]]]}else{t[n[s]]=e[n[s]]}}}};Vc.getValue=function(t){if(Vc.isExist(t)){return t}else{return""}};Vc.isName=Lbt;Vc.getAllMatches=$bt;Vc.nameRegexp=E6e});var sM=_(A6e=>{"use strict";var iM=JT();var qbt={allowBooleanAttributes:false,unpairedTags:[]};A6e.validate=function(t,e){e=Object.assign({},qbt,e);const r=[];let n=false;let i=false;if(t[0]==="\uFEFF"){t=t.substr(1)}for(let s=0;s<t.length;s++){if(t[s]==="<"&&t[s+1]==="?"){s+=2;s=w6e(t,s);if(s.err)return s}else if(t[s]==="<"){let a=s;s++;if(t[s]==="!"){s=S6e(t,s);continue}else{let u=false;if(t[s]==="/"){u=true;s++}let l="";for(;s<t.length&&t[s]!==">"&&t[s]!==" "&&t[s]!==" "&&t[s]!=="\n"&&t[s]!=="\r";s++){l+=t[s]}l=l.trim();if(l[l.length-1]==="/"){l=l.substring(0,l.length-1);s--}if(!zbt(l)){let p;if(l.trim().length===0){p="Invalid space after '<'."}else{p="Tag '"+l+"' is an invalid name."}return di("InvalidTag",p,ma(t,s))}const c=Fbt(t,s);if(c===false){return di("InvalidAttr","Attributes for '"+l+"' have open quote.",ma(t,s))}let d=c.value;s=c.index;if(d[d.length-1]==="/"){const p=s-d.length;d=d.substring(0,d.length-1);const f=T6e(d,e);if(f===true){n=true}else{return di(f.err.code,f.err.msg,ma(t,p+f.err.line))}}else if(u){if(!c.tagClosed){return di("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",ma(t,s))}else if(d.trim().length>0){return di("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",ma(t,a))}else{const p=r.pop();if(l!==p.tagName){let f=ma(t,p.tagStartPos);return di("InvalidTag","Expected closing tag '"+p.tagName+"' (opened in line "+f.line+", col "+f.col+") instead of closing tag '"+l+"'.",ma(t,a))}if(r.length==0){i=true}}}else{const p=T6e(d,e);if(p!==true){return di(p.err.code,p.err.msg,ma(t,s-d.length+p.err.line))}if(i===true){return di("InvalidXml","Multiple possible root nodes found.",ma(t,s))}else if(e.unpairedTags.indexOf(l)!==-1){}else{r.push({tagName:l,tagStartPos:a})}n=true}for(s++;s<t.length;s++){if(t[s]==="<"){if(t[s+1]==="!"){s++;s=S6e(t,s);continue}else if(t[s+1]==="?"){s=w6e(t,++s);if(s.err)return s}else{break}}else if(t[s]==="&"){const p=Vbt(t,s);if(p==-1)return di("InvalidChar","char '&' is not expected.",ma(t,s));s=p}else{if(i===true&&!b6e(t[s])){return di("InvalidXml","Extra text at the end",ma(t,s))}}}if(t[s]==="<"){s--}}}else{if(b6e(t[s])){continue}return di("InvalidChar","char '"+t[s]+"' is not expected.",ma(t,s))}}if(!n){return di("InvalidXml","Start tag expected.",1)}else if(r.length==1){return di("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ma(t,r[0].tagStartPos))}else if(r.length>0){return di("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}return true};function b6e(t){return t===" "||t===" "||t==="\n"||t==="\r"}o(b6e,"isWhiteSpace");function w6e(t,e){const r=e;for(;e<t.length;e++){if(t[e]=="?"||t[e]==" "){const n=t.substr(r,e-r);if(e>5&&n==="xml"){return di("InvalidXml","XML declaration allowed only at the start of the document.",ma(t,e))}else if(t[e]=="?"&&t[e+1]==">"){e++;break}else{continue}}}return e}o(w6e,"readPI");function S6e(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++){if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++){if(t[e]==="<"){r++}else if(t[e]===">"){r--;if(r===0){break}}}}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++){if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}}return e}o(S6e,"readCommentAndCDATA");var jbt='"';var Ubt="'";function Fbt(t,e){let r="";let n="";let i=false;for(;e<t.length;e++){if(t[e]===jbt||t[e]===Ubt){if(n===""){n=t[e]}else if(n!==t[e]){}else{n=""}}else if(t[e]===">"){if(n===""){i=true;break}}r+=t[e]}if(n!==""){return false}return{value:r,index:e,tagClosed:i}}o(Fbt,"readAttributeStr");var Bbt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function T6e(t,e){const r=iM.getAllMatches(t,Bbt);const n={};for(let i=0;i<r.length;i++){if(r[i][1].length===0){return di("InvalidAttr","Attribute '"+r[i][2]+"' has no space in starting.",VE(r[i]))}else if(r[i][3]!==void 0&&r[i][4]===void 0){return di("InvalidAttr","Attribute '"+r[i][2]+"' is without value.",VE(r[i]))}else if(r[i][3]===void 0&&!e.allowBooleanAttributes){return di("InvalidAttr","boolean attribute '"+r[i][2]+"' is not allowed.",VE(r[i]))}const s=r[i][2];if(!Hbt(s)){return di("InvalidAttr","Attribute '"+s+"' is an invalid name.",VE(r[i]))}if(!n.hasOwnProperty(s)){n[s]=1}else{return di("InvalidAttr","Attribute '"+s+"' is repeated.",VE(r[i]))}}return true}o(T6e,"validateAttributeString");function Mbt(t,e){let r=/\d/;if(t[e]==="x"){e++;r=/[\da-fA-F]/}for(;e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}o(Mbt,"validateNumberAmpersand");function Vbt(t,e){e++;if(t[e]===";")return-1;if(t[e]==="#"){e++;return Mbt(t,e)}let r=0;for(;e<t.length;e++,r++){if(t[e].match(/\w/)&&r<20)continue;if(t[e]===";")break;return-1}return e}o(Vbt,"validateAmpersand");function di(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(di,"getErrorObject");function Hbt(t){return iM.isName(t)}o(Hbt,"validateAttrName");function zbt(t){return iM.isName(t)}o(zbt,"validateTagName");function ma(t,e){const r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(ma,"getLineNumberForPosition");function VE(t){return t.startIndex+t[1].length}o(VE,"getPositionFromMatch")});var C6e=_(aM=>{var x6e={preserveOrder:false,attributeNamePrefix:"@_",attributesGroupName:false,textNodeName:"#text",ignoreAttributes:true,removeNSPrefix:false,allowBooleanAttributes:false,parseTagValue:true,parseAttributeValue:false,trimValues:true,cdataPropName:false,numberParseOptions:{hex:true,leadingZeros:true,eNotation:true},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:false,isArray:()=>false,commentPropName:false,unpairedTags:[],processEntities:true,htmlEntities:false,ignoreDeclaration:false,ignorePiTags:false,transformTagName:false,transformAttributeName:false,updateTag:function(t,e,r){return t}};var Gbt=o(function(t){return Object.assign({},x6e,t)},"buildOptions");aM.buildOptions=Gbt;aM.defaultOptions=x6e});var O6e=_((zur,R6e)=>{"use strict";var oM=class{static{o(this,"XmlNode")}constructor(e){this.tagname=e;this.child=[];this[":@"]={}}add(e,r){if(e==="__proto__")e="#__proto__";this.child.push({[e]:r})}addChild(e){if(e.tagname==="__proto__")e.tagname="#__proto__";if(e[":@"]&&Object.keys(e[":@"]).length>0){this.child.push({[e.tagname]:e.child,[":@"]:e[":@"]})}else{this.child.push({[e.tagname]:e.child})}}};R6e.exports=oM});var I6e=_((Kur,N6e)=>{var Kbt=JT();function Ybt(t,e){const r={};if(t[e+3]==="O"&&t[e+4]==="C"&&t[e+5]==="T"&&t[e+6]==="Y"&&t[e+7]==="P"&&t[e+8]==="E"){e=e+9;let n=1;let i=false,s=false;let a="";for(;e<t.length;e++){if(t[e]==="<"&&!s){if(i&&Qbt(t,e)){e+=7;[entityName,val,e]=Wbt(t,e+1);if(val.indexOf("&")===-1)r[t3t(entityName)]={regx:RegExp(`&${entityName};`,"g"),val}}else if(i&&Xbt(t,e))e+=8;else if(i&&Zbt(t,e))e+=8;else if(i&&e3t(t,e))e+=9;else if(Jbt)s=true;else throw new Error("Invalid DOCTYPE");n++;a=""}else if(t[e]===">"){if(s){if(t[e-1]==="-"&&t[e-2]==="-"){s=false;n--}}else{n--}if(n===0){break}}else if(t[e]==="["){i=true}else{a+=t[e]}}if(n!==0){throw new Error(`Unclosed DOCTYPE`)}}else{throw new Error(`Invalid Tag instead of DOCTYPE`)}return{entities:r,i:e}}o(Ybt,"readDocType");function Wbt(t,e){let r="";for(;e<t.length&&(t[e]!=="'"&&t[e]!=='"');e++){r+=t[e]}r=r.trim();if(r.indexOf(" ")!==-1)throw new Error("External entites are not supported");const n=t[e++];let i="";for(;e<t.length&&t[e]!==n;e++){i+=t[e]}return[r,i,e]}o(Wbt,"readEntityExp");function Jbt(t,e){if(t[e+1]==="!"&&t[e+2]==="-"&&t[e+3]==="-")return true;return false}o(Jbt,"isComment");function Qbt(t,e){if(t[e+1]==="!"&&t[e+2]==="E"&&t[e+3]==="N"&&t[e+4]==="T"&&t[e+5]==="I"&&t[e+6]==="T"&&t[e+7]==="Y")return true;return false}o(Qbt,"isEntity");function Xbt(t,e){if(t[e+1]==="!"&&t[e+2]==="E"&&t[e+3]==="L"&&t[e+4]==="E"&&t[e+5]==="M"&&t[e+6]==="E"&&t[e+7]==="N"&&t[e+8]==="T")return true;return false}o(Xbt,"isElement");function Zbt(t,e){if(t[e+1]==="!"&&t[e+2]==="A"&&t[e+3]==="T"&&t[e+4]==="T"&&t[e+5]==="L"&&t[e+6]==="I"&&t[e+7]==="S"&&t[e+8]==="T")return true;return false}o(Zbt,"isAttlist");function e3t(t,e){if(t[e+1]==="!"&&t[e+2]==="N"&&t[e+3]==="O"&&t[e+4]==="T"&&t[e+5]==="A"&&t[e+6]==="T"&&t[e+7]==="I"&&t[e+8]==="O"&&t[e+9]==="N")return true;return false}o(e3t,"isNotation");function t3t(t){if(Kbt.isName(t))return t;else throw new Error(`Invalid entity name ${t}`)}o(t3t,"validateEntityName");N6e.exports=Ybt});var D6e=_((Wur,P6e)=>{var r3t=/^[-+]?0x[a-fA-F0-9]+$/;var n3t=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;if(!Number.parseInt&&window.parseInt){Number.parseInt=window.parseInt}if(!Number.parseFloat&&window.parseFloat){Number.parseFloat=window.parseFloat}var i3t={hex:true,leadingZeros:true,decimalPoint:".",eNotation:true};function s3t(t,e={}){e=Object.assign({},i3t,e);if(!t||typeof t!=="string")return t;let r=t.trim();if(e.skipLike!==void 0&&e.skipLike.test(r))return t;else if(e.hex&&r3t.test(r)){return Number.parseInt(r,16)}else{const n=n3t.exec(r);if(n){const i=n[1];const s=n[2];let a=a3t(n[3]);const u=n[4]||n[6];if(!e.leadingZeros&&s.length>0&&i&&r[2]!==".")return t;else if(!e.leadingZeros&&s.length>0&&!i&&r[1]!==".")return t;else{const l=Number(r);const c=""+l;if(c.search(/[eE]/)!==-1){if(e.eNotation)return l;else return t}else if(u){if(e.eNotation)return l;else return t}else if(r.indexOf(".")!==-1){if(c==="0"&&a==="")return l;else if(c===a)return l;else if(i&&c==="-"+a)return l;else return t}if(s){if(a===c)return l;else if(i+a===c)return l;else return t}if(r===c)return l;else if(r===i+c)return l;return t}}else{return t}}}o(s3t,"toNumber");function a3t(t){if(t&&t.indexOf(".")!==-1){t=t.replace(/0+$/,"");if(t===".")t="0";else if(t[0]===".")t="0"+t;else if(t[t.length-1]===".")t=t.substr(0,t.length-1);return t}return t}o(a3t,"trimZeros");P6e.exports=s3t});var $6e=_((Xur,k6e)=>{"use strict";var dM=JT();var HE=O6e();var o3t=I6e();var u3t=D6e();var Qur="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,dM.nameRegexp);var uM=class{static{o(this,"OrderedObjParser")}constructor(e){this.options=e;this.currentNode=null;this.tagsNodeStack=[];this.docTypeEntities={};this.lastEntities={"apos":{regex:/&(apos|#39|#x27);/g,val:"'"},"gt":{regex:/&(gt|#62|#x3E);/g,val:">"},"lt":{regex:/&(lt|#60|#x3C);/g,val:"<"},"quot":{regex:/&(quot|#34|#x22);/g,val:'"'}};this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"};this.htmlEntities={"space":{regex:/&(nbsp|#160);/g,val:" "},"cent":{regex:/&(cent|#162);/g,val:"\xA2"},"pound":{regex:/&(pound|#163);/g,val:"\xA3"},"yen":{regex:/&(yen|#165);/g,val:"\xA5"},"euro":{regex:/&(euro|#8364);/g,val:"\u20AC"},"copyright":{regex:/&(copy|#169);/g,val:"\xA9"},"reg":{regex:/&(reg|#174);/g,val:"\xAE"},"inr":{regex:/&(inr|#8377);/g,val:"\u20B9"}};this.addExternalEntities=l3t;this.parseXml=h3t;this.parseTextData=c3t;this.resolveNameSpace=d3t;this.buildAttributesMap=f3t;this.isItStopNode=v3t;this.replaceEntitiesValue=g3t;this.readStopNodeData=E3t;this.saveTextToParentTag=y3t;this.addChild=m3t}};function l3t(t){const e=Object.keys(t);for(let r=0;r<e.length;r++){const n=e[r];this.lastEntities[n]={regex:new RegExp("&"+n+";","g"),val:t[n]}}}o(l3t,"addExternalEntities");function c3t(t,e,r,n,i,s,a){if(t!==void 0){if(this.options.trimValues&&!n){t=t.trim()}if(t.length>0){if(!a)t=this.replaceEntitiesValue(t);const u=this.options.tagValueProcessor(e,t,r,i,s);if(u===null||u===void 0){return t}else if(typeof u!==typeof t||u!==t){return u}else if(this.options.trimValues){return cM(t,this.options.parseTagValue,this.options.numberParseOptions)}else{const l=t.trim();if(l===t){return cM(t,this.options.parseTagValue,this.options.numberParseOptions)}else{return t}}}}}o(c3t,"parseTextData");function d3t(t){if(this.options.removeNSPrefix){const e=t.split(":");const r=t.charAt(0)==="/"?"/":"";if(e[0]==="xmlns"){return""}if(e.length===2){t=r+e[1]}}return t}o(d3t,"resolveNameSpace");var p3t=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function f3t(t,e,r){if(!this.options.ignoreAttributes&&typeof t==="string"){const n=dM.getAllMatches(t,p3t);const i=n.length;const s={};for(let a=0;a<i;a++){const u=this.resolveNameSpace(n[a][1]);let l=n[a][4];let c=this.options.attributeNamePrefix+u;if(u.length){if(this.options.transformAttributeName){c=this.options.transformAttributeName(c)}if(c==="__proto__")c="#__proto__";if(l!==void 0){if(this.options.trimValues){l=l.trim()}l=this.replaceEntitiesValue(l);const d=this.options.attributeValueProcessor(u,l,e);if(d===null||d===void 0){s[c]=l}else if(typeof d!==typeof l||d!==l){s[c]=d}else{s[c]=cM(l,this.options.parseAttributeValue,this.options.numberParseOptions)}}else if(this.options.allowBooleanAttributes){s[c]=true}}}if(!Object.keys(s).length){return}if(this.options.attributesGroupName){const a={};a[this.options.attributesGroupName]=s;return a}return s}}o(f3t,"buildAttributesMap");var h3t=o(function(t){t=t.replace(/\r\n?/g,"\n");const e=new HE("!xml");let r=e;let n="";let i="";for(let s=0;s<t.length;s++){const a=t[s];if(a==="<"){if(t[s+1]==="/"){const u=sm(t,">",s,"Closing Tag is not closed.");let l=t.substring(s+2,u).trim();if(this.options.removeNSPrefix){const p=l.indexOf(":");if(p!==-1){l=l.substr(p+1)}}if(this.options.transformTagName){l=this.options.transformTagName(l)}if(r){n=this.saveTextToParentTag(n,r,i)}const c=i.substring(i.lastIndexOf(".")+1);if(l&&this.options.unpairedTags.indexOf(l)!==-1){throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`)}let d=0;if(c&&this.options.unpairedTags.indexOf(c)!==-1){d=i.lastIndexOf(".",i.lastIndexOf(".")-1);this.tagsNodeStack.pop()}else{d=i.lastIndexOf(".")}i=i.substring(0,d);r=this.tagsNodeStack.pop();n="";s=u}else if(t[s+1]==="?"){let u=lM(t,s,false,"?>");if(!u)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,i);if(this.options.ignoreDeclaration&&u.tagName==="?xml"||this.options.ignorePiTags){}else{const l=new HE(u.tagName);l.add(this.options.textNodeName,"");if(u.tagName!==u.tagExp&&u.attrExpPresent){l[":@"]=this.buildAttributesMap(u.tagExp,i,u.tagName)}this.addChild(r,l,i)}s=u.closeIndex+1}else if(t.substr(s+1,3)==="!--"){const u=sm(t,"-->",s+4,"Comment is not closed.");if(this.options.commentPropName){const l=t.substring(s+4,u-2);n=this.saveTextToParentTag(n,r,i);r.add(this.options.commentPropName,[{[this.options.textNodeName]:l}])}s=u}else if(t.substr(s+1,2)==="!D"){const u=o3t(t,s);this.docTypeEntities=u.entities;s=u.i}else if(t.substr(s+1,2)==="!["){const u=sm(t,"]]>",s,"CDATA is not closed.")-2;const l=t.substring(s+9,u);n=this.saveTextToParentTag(n,r,i);if(this.options.cdataPropName){r.add(this.options.cdataPropName,[{[this.options.textNodeName]:l}])}else{let c=this.parseTextData(l,r.tagname,i,true,false,true);if(c==void 0)c="";r.add(this.options.textNodeName,c)}s=u+2}else{let u=lM(t,s,this.options.removeNSPrefix);let l=u.tagName;const c=u.rawTagName;let d=u.tagExp;let p=u.attrExpPresent;let f=u.closeIndex;if(this.options.transformTagName){l=this.options.transformTagName(l)}if(r&&n){if(r.tagname!=="!xml"){n=this.saveTextToParentTag(n,r,i,false)}}const h=r;if(h&&this.options.unpairedTags.indexOf(h.tagname)!==-1){r=this.tagsNodeStack.pop();i=i.substring(0,i.lastIndexOf("."))}if(l!==e.tagname){i+=i?"."+l:l}if(this.isItStopNode(this.options.stopNodes,i,l)){let m="";if(d.length>0&&d.lastIndexOf("/")===d.length-1){s=u.closeIndex}else if(this.options.unpairedTags.indexOf(l)!==-1){s=u.closeIndex}else{const y=this.readStopNodeData(t,c,f+1);if(!y)throw new Error(`Unexpected end of ${c}`);s=y.i;m=y.tagContent}const g=new HE(l);if(l!==d&&p){g[":@"]=this.buildAttributesMap(d,i,l)}if(m){m=this.parseTextData(m,l,i,true,p,true,true)}i=i.substr(0,i.lastIndexOf("."));g.add(this.options.textNodeName,m);this.addChild(r,g,i)}else{if(d.length>0&&d.lastIndexOf("/")===d.length-1){if(l[l.length-1]==="/"){l=l.substr(0,l.length-1);i=i.substr(0,i.length-1);d=l}else{d=d.substr(0,d.length-1)}if(this.options.transformTagName){l=this.options.transformTagName(l)}const m=new HE(l);if(l!==d&&p){m[":@"]=this.buildAttributesMap(d,i,l)}this.addChild(r,m,i);i=i.substr(0,i.lastIndexOf("."))}else{const m=new HE(l);this.tagsNodeStack.push(r);if(l!==d&&p){m[":@"]=this.buildAttributesMap(d,i,l)}this.addChild(r,m,i);r=m}n="";s=f}}}else{n+=t[s]}}return e.child},"parseXml");function m3t(t,e,r){const n=this.options.updateTag(e.tagname,r,e[":@"]);if(n===false){}else if(typeof n==="string"){e.tagname=n;t.addChild(e)}else{t.addChild(e)}}o(m3t,"addChild");var g3t=o(function(t){if(this.options.processEntities){for(let e in this.docTypeEntities){const r=this.docTypeEntities[e];t=t.replace(r.regx,r.val)}for(let e in this.lastEntities){const r=this.lastEntities[e];t=t.replace(r.regex,r.val)}if(this.options.htmlEntities){for(let e in this.htmlEntities){const r=this.htmlEntities[e];t=t.replace(r.regex,r.val)}}t=t.replace(this.ampEntity.regex,this.ampEntity.val)}return t},"replaceEntitiesValue");function y3t(t,e,r,n){if(t){if(n===void 0)n=Object.keys(e.child).length===0;t=this.parseTextData(t,e.tagname,r,false,e[":@"]?Object.keys(e[":@"]).length!==0:false,n);if(t!==void 0&&t!=="")e.add(this.options.textNodeName,t);t=""}return t}o(y3t,"saveTextToParentTag");function v3t(t,e,r){const n="*."+r;for(const i in t){const s=t[i];if(n===s||e===s)return true}return false}o(v3t,"isItStopNode");function _3t(t,e,r=">"){let n;let i="";for(let s=e;s<t.length;s++){let a=t[s];if(n){if(a===n)n=""}else if(a==='"'||a==="'"){n=a}else if(a===r[0]){if(r[1]){if(t[s+1]===r[1]){return{data:i,index:s}}}else{return{data:i,index:s}}}else if(a===" "){a=" "}i+=a}}o(_3t,"tagExpWithClosingIndex");function sm(t,e,r,n){const i=t.indexOf(e,r);if(i===-1){throw new Error(n)}else{return i+e.length-1}}o(sm,"findClosingIndex");function lM(t,e,r,n=">"){const i=_3t(t,e+1,n);if(!i)return;let s=i.data;const a=i.index;const u=s.search(/\s/);let l=s;let c=true;if(u!==-1){l=s.substr(0,u).replace(/\s\s*$/,"");s=s.substr(u+1)}const d=l;if(r){const p=l.indexOf(":");if(p!==-1){l=l.substr(p+1);c=l!==i.data.substr(p+1)}}return{tagName:l,tagExp:s,closeIndex:a,attrExpPresent:c,rawTagName:d}}o(lM,"readTagExp");function E3t(t,e,r){const n=r;let i=1;for(;r<t.length;r++){if(t[r]==="<"){if(t[r+1]==="/"){const s=sm(t,">",r,`${e} is not closed`);let a=t.substring(r+2,s).trim();if(a===e){i--;if(i===0){return{tagContent:t.substring(n,r),i:s}}}r=s}else if(t[r+1]==="?"){const s=sm(t,"?>",r+1,"StopNode is not closed.");r=s}else if(t.substr(r+1,3)==="!--"){const s=sm(t,"-->",r+3,"StopNode is not closed.");r=s}else if(t.substr(r+1,2)==="!["){const s=sm(t,"]]>",r,"StopNode is not closed.")-2;r=s}else{const s=lM(t,r,">");if(s){const a=s&&s.tagName;if(a===e&&s.tagExp[s.tagExp.length-1]!=="/"){i++}r=s.closeIndex}}}}}o(E3t,"readStopNodeData");function cM(t,e,r){if(e&&typeof t==="string"){const n=t.trim();if(n==="true")return true;else if(n==="false")return false;else return u3t(t,r)}else{if(dM.isExist(t)){return t}else{return""}}}o(cM,"parseValue");k6e.exports=uM});var j6e=_(q6e=>{"use strict";function b3t(t,e){return L6e(t,e)}o(b3t,"prettify");function L6e(t,e,r){let n;const i={};for(let s=0;s<t.length;s++){const a=t[s];const u=w3t(a);let l="";if(r===void 0)l=u;else l=r+"."+u;if(u===e.textNodeName){if(n===void 0)n=a[u];else n+=""+a[u]}else if(u===void 0){continue}else if(a[u]){let c=L6e(a[u],e,l);const d=T3t(c,e);if(a[":@"]){S3t(c,a[":@"],l,e)}else if(Object.keys(c).length===1&&c[e.textNodeName]!==void 0&&!e.alwaysCreateTextNode){c=c[e.textNodeName]}else if(Object.keys(c).length===0){if(e.alwaysCreateTextNode)c[e.textNodeName]="";else c=""}if(i[u]!==void 0&&i.hasOwnProperty(u)){if(!Array.isArray(i[u])){i[u]=[i[u]]}i[u].push(c)}else{if(e.isArray(u,l,d)){i[u]=[c]}else{i[u]=c}}}}if(typeof n==="string"){if(n.length>0)i[e.textNodeName]=n}else if(n!==void 0)i[e.textNodeName]=n;return i}o(L6e,"compress");function w3t(t){const e=Object.keys(t);for(let r=0;r<e.length;r++){const n=e[r];if(n!==":@")return n}}o(w3t,"propName");function S3t(t,e,r,n){if(e){const i=Object.keys(e);const s=i.length;for(let a=0;a<s;a++){const u=i[a];if(n.isArray(u,r+"."+u,true,true)){t[u]=[e[u]]}else{t[u]=e[u]}}}}o(S3t,"assignAttributes");function T3t(t,e){const{textNodeName:r}=e;const n=Object.keys(t).length;if(n===0){return true}if(n===1&&(t[r]||typeof t[r]==="boolean"||t[r]===0)){return true}return false}o(T3t,"isLeafTag");q6e.prettify=b3t});var F6e=_((rlr,U6e)=>{var{buildOptions:A3t}=C6e();var x3t=$6e();var{prettify:C3t}=j6e();var R3t=sM();var pM=class{static{o(this,"XMLParser")}constructor(e){this.externalEntities={};this.options=A3t(e)}parse(e,r){if(typeof e==="string"){}else if(e.toString){e=e.toString()}else{throw new Error("XML data is accepted in String or Bytes[] form.")}if(r){if(r===true)r={};const s=R3t.validate(e,r);if(s!==true){throw Error(`${s.err.msg}:${s.err.line}:${s.err.col}`)}}const n=new x3t(this.options);n.addExternalEntities(this.externalEntities);const i=n.parseXml(e);if(this.options.preserveOrder||i===void 0)return i;else return C3t(i,this.options)}addEntity(e,r){if(r.indexOf("&")!==-1){throw new Error("Entity value can't have '&'")}else if(e.indexOf("&")!==-1||e.indexOf(";")!==-1){throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'")}else if(r==="&"){throw new Error("An entity with value '&' is not permitted")}else{this.externalEntities[e]=r}}};U6e.exports=pM});var z6e=_((ilr,H6e)=>{var O3t="\n";function N3t(t,e){let r="";if(e.format&&e.indentBy.length>0){r=O3t}return M6e(t,e,"",r)}o(N3t,"toXml");function M6e(t,e,r,n){let i="";let s=false;for(let a=0;a<t.length;a++){const u=t[a];const l=I3t(u);if(l===void 0)continue;let c="";if(r.length===0)c=l;else c=`${r}.${l}`;if(l===e.textNodeName){let m=u[l];if(!P3t(c,e)){m=e.tagValueProcessor(l,m);m=V6e(m,e)}if(s){i+=n}i+=m;s=false;continue}else if(l===e.cdataPropName){if(s){i+=n}i+=`<![CDATA[${u[l][0][e.textNodeName]}]]>`;s=false;continue}else if(l===e.commentPropName){i+=n+`<!--${u[l][0][e.textNodeName]}-->`;s=true;continue}else if(l[0]==="?"){const m=B6e(u[":@"],e);const g=l==="?xml"?"":n;let y=u[l][0][e.textNodeName];y=y.length!==0?" "+y:"";i+=g+`<${l}${y}${m}?>`;s=true;continue}let d=n;if(d!==""){d+=e.indentBy}const p=B6e(u[":@"],e);const f=n+`<${l}${p}`;const h=M6e(u[l],e,c,d);if(e.unpairedTags.indexOf(l)!==-1){if(e.suppressUnpairedNode)i+=f+">";else i+=f+"/>"}else if((!h||h.length===0)&&e.suppressEmptyNode){i+=f+"/>"}else if(h&&h.endsWith(">")){i+=f+`>${h}${n}</${l}>`}else{i+=f+">";if(h&&n!==""&&(h.includes("/>")||h.includes("</"))){i+=n+e.indentBy+h+n}else{i+=h}i+=`</${l}>`}s=true}return i}o(M6e,"arrToStr");function I3t(t){const e=Object.keys(t);for(let r=0;r<e.length;r++){const n=e[r];if(!t.hasOwnProperty(n))continue;if(n!==":@")return n}}o(I3t,"propName");function B6e(t,e){let r="";if(t&&!e.ignoreAttributes){for(let n in t){if(!t.hasOwnProperty(n))continue;let i=e.attributeValueProcessor(n,t[n]);i=V6e(i,e);if(i===true&&e.suppressBooleanAttributes){r+=` ${n.substr(e.attributeNamePrefix.length)}`}else{r+=` ${n.substr(e.attributeNamePrefix.length)}="${i}"`}}}return r}o(B6e,"attr_to_str");function P3t(t,e){t=t.substr(0,t.length-e.textNodeName.length-1);let r=t.substr(t.lastIndexOf(".")+1);for(let n in e.stopNodes){if(e.stopNodes[n]===t||e.stopNodes[n]==="*."+r)return true}return false}o(P3t,"isStopNode");function V6e(t,e){if(t&&t.length>0&&e.processEntities){for(let r=0;r<e.entities.length;r++){const n=e.entities[r];t=t.replace(n.regex,n.val)}}return t}o(V6e,"replaceEntitiesValue");H6e.exports=N3t});var K6e=_((alr,G6e)=>{"use strict";var D3t=z6e();var k3t={attributeNamePrefix:"@_",attributesGroupName:false,textNodeName:"#text",ignoreAttributes:true,cdataPropName:false,format:false,indentBy:" ",suppressEmptyNode:false,suppressUnpairedNode:true,suppressBooleanAttributes:true,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:false,commentPropName:false,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:true,stopNodes:[],oneListGroup:false};function Dp(t){this.options=Object.assign({},k3t,t);if(this.options.ignoreAttributes||this.options.attributesGroupName){this.isAttribute=function(){return false}}else{this.attrPrefixLen=this.options.attributeNamePrefix.length;this.isAttribute=q3t}this.processTextOrObjNode=$3t;if(this.options.format){this.indentate=L3t;this.tagEndChar=">\n";this.newLine="\n"}else{this.indentate=function(){return""};this.tagEndChar=">";this.newLine=""}}o(Dp,"Builder");Dp.prototype.build=function(t){if(this.options.preserveOrder){return D3t(t,this.options)}else{if(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1){t={[this.options.arrayNodeName]:t}}return this.j2x(t,0).val}};Dp.prototype.j2x=function(t,e){let r="";let n="";for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;if(typeof t[i]==="undefined"){if(this.isAttribute(i)){n+=""}}else if(t[i]===null){if(this.isAttribute(i)){n+=""}else if(i[0]==="?"){n+=this.indentate(e)+"<"+i+"?"+this.tagEndChar}else{n+=this.indentate(e)+"<"+i+"/"+this.tagEndChar}}else if(t[i]instanceof Date){n+=this.buildTextValNode(t[i],i,"",e)}else if(typeof t[i]!=="object"){const s=this.isAttribute(i);if(s){r+=this.buildAttrPairStr(s,""+t[i])}else{if(i===this.options.textNodeName){let a=this.options.tagValueProcessor(i,""+t[i]);n+=this.replaceEntitiesValue(a)}else{n+=this.buildTextValNode(t[i],i,"",e)}}}else if(Array.isArray(t[i])){const s=t[i].length;let a="";for(let u=0;u<s;u++){const l=t[i][u];if(typeof l==="undefined"){}else if(l===null){if(i[0]==="?")n+=this.indentate(e)+"<"+i+"?"+this.tagEndChar;else n+=this.indentate(e)+"<"+i+"/"+this.tagEndChar}else if(typeof l==="object"){if(this.options.oneListGroup){a+=this.j2x(l,e+1).val}else{a+=this.processTextOrObjNode(l,i,e)}}else{a+=this.buildTextValNode(l,i,"",e)}}if(this.options.oneListGroup){a=this.buildObjectNode(a,i,"",e)}n+=a}else{if(this.options.attributesGroupName&&i===this.options.attributesGroupName){const s=Object.keys(t[i]);const a=s.length;for(let u=0;u<a;u++){r+=this.buildAttrPairStr(s[u],""+t[i][s[u]])}}else{n+=this.processTextOrObjNode(t[i],i,e)}}}return{attrStr:r,val:n}};Dp.prototype.buildAttrPairStr=function(t,e){e=this.options.attributeValueProcessor(t,""+e);e=this.replaceEntitiesValue(e);if(this.options.suppressBooleanAttributes&&e==="true"){return" "+t}else return" "+t+'="'+e+'"'};function $3t(t,e,r){const n=this.j2x(t,r+1);if(t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1){return this.buildTextValNode(t[this.options.textNodeName],e,n.attrStr,r)}else{return this.buildObjectNode(n.val,e,n.attrStr,r)}}o($3t,"processTextOrObjNode");Dp.prototype.buildObjectNode=function(t,e,r,n){if(t===""){if(e[0]==="?")return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;else{return this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar}}else{let i="</"+e+this.tagEndChar;let s="";if(e[0]==="?"){s="?";i=""}if((r||r==="")&&t.indexOf("<")===-1){return this.indentate(n)+"<"+e+r+s+">"+t+i}else if(this.options.commentPropName!==false&&e===this.options.commentPropName&&s.length===0){return this.indentate(n)+`<!--${t}-->`+this.newLine}else{return this.indentate(n)+"<"+e+r+s+this.tagEndChar+t+this.indentate(n)+i}}};Dp.prototype.closeTag=function(t){let e="";if(this.options.unpairedTags.indexOf(t)!==-1){if(!this.options.suppressUnpairedNode)e="/"}else if(this.options.suppressEmptyNode){e="/"}else{e=`></${t}`}return e};Dp.prototype.buildTextValNode=function(t,e,r,n){if(this.options.cdataPropName!==false&&e===this.options.cdataPropName){return this.indentate(n)+`<![CDATA[${t}]]>`+this.newLine}else if(this.options.commentPropName!==false&&e===this.options.commentPropName){return this.indentate(n)+`<!--${t}-->`+this.newLine}else if(e[0]==="?"){return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar}else{let i=this.options.tagValueProcessor(e,t);i=this.replaceEntitiesValue(i);if(i===""){return this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar}else{return this.indentate(n)+"<"+e+r+">"+i+"</"+e+this.tagEndChar}}};Dp.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities){for(let e=0;e<this.options.entities.length;e++){const r=this.options.entities[e];t=t.replace(r.regex,r.val)}}return t};function L3t(t){return this.options.indentBy.repeat(t)}o(L3t,"indentate");function q3t(t){if(t.startsWith(this.options.attributeNamePrefix)&&t!==this.options.textNodeName){return t.substr(this.attrPrefixLen)}else{return false}}o(q3t,"isAttribute");G6e.exports=Dp});var W6e=_((ulr,Y6e)=>{"use strict";var j3t=sM();var U3t=F6e();var F3t=K6e();Y6e.exports={XMLParser:U3t,XMLValidator:j3t,XMLBuilder:F3t}});var ebe=_(Es=>{"use strict";var B3t=Es&&Es.__createBinding||(Object.create?function(t,e,r,n){if(n===void 0)n=r;var i=Object.getOwnPropertyDescriptor(e,r);if(!i||("get"in i?!e.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return e[r]}}}Object.defineProperty(t,n,i)}:function(t,e,r,n){if(n===void 0)n=r;t[n]=e[r]});var M3t=Es&&Es.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:true,value:e})}:function(t,e){t["default"]=e});var V3t=Es&&Es.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null){for(var r in t)if(r!=="default"&&Object.prototype.hasOwnProperty.call(t,r))B3t(e,t,r)}M3t(e,t);return e};var am=Es&&Es.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)};var Z6e=Es&&Es.__importDefault||function(t){return t&&t.__esModule?t:{"default":t}};var Hc;var ZT;var GE;Object.defineProperty(Es,"__esModule",{value:true});Es.TransferManager=Es.MultiPartUploadError=void 0;var zE=Z6e(PB());var kp=V3t(require("path"));var QT=require("fs");var H3t=qE();var z3t=GS();var J6e=W6e();var XT=Z6e(CE());var G3t=require("crypto");var fM=tm();var Q6e=yl();var K3t=vg();var Y3t=(0,K3t.getPackageJSON)();var W3t=5;var J3t=5;var Q3t=5;var X3t=32*1024*1024;var Z3t=32*1024*1024;var e8t=32*1024*1024;var X6e=5;var t8t="(?:)";var kg={UPLOAD_MANY:"tm.upload_many",DOWNLOAD_MANY:"tm.download_many",UPLOAD_SHARDED:"tm.upload_sharded",DOWNLOAD_SHARDED:"tm.download_sharded"};var r8t=o((t,e,r,n)=>{return new hM(t,e,r,n)},"defaultMultiPartGenerator");var KE=class extends Error{static{o(this,"MultiPartUploadError")}constructor(e,r,n){super(e);this.uploadId=r;this.partsMap=n}};Es.MultiPartUploadError=KE;var hM=class{static{o(this,"XMLMultiPartUploadHelper")}constructor(e,r,n,i){Hc.add(this);this.authClient=e.storage.authClient||new z3t.GoogleAuth;this.uploadId=n||"";this.bucket=e;this.fileName=r;this.baseUrl=`https://${e.name}.${new URL(this.bucket.storage.apiEndpoint).hostname}/${r}`;this.xmlBuilder=new J6e.XMLBuilder({arrayNodeName:"Part"});this.xmlParser=new J6e.XMLParser;this.partsMap=i||new Map;this.retryOptions={retries:this.bucket.storage.retryOptions.maxRetries,factor:this.bucket.storage.retryOptions.retryDelayMultiplier,maxTimeout:this.bucket.storage.retryOptions.maxRetryDelay*1e3,maxRetryTime:this.bucket.storage.retryOptions.totalTimeout*1e3}}async initiateUpload(e={}){const r=`${this.baseUrl}?uploads`;return(0,XT.default)(async n=>{try{const i=await this.authClient.request({headers:am(this,Hc,"m",ZT).call(this,e),method:"POST",url:r});if(i.data&&i.data.error){throw i.data.error}const s=this.xmlParser.parse(i.data);this.uploadId=s.InitiateMultipartUploadResult.UploadId}catch(i){am(this,Hc,"m",GE).call(this,i,n)}},this.retryOptions)}async uploadPart(e,r,n){const i=`${this.baseUrl}?partNumber=${e}&uploadId=${this.uploadId}`;let s=am(this,Hc,"m",ZT).call(this);if(n==="md5"){const a=(0,G3t.createHash)("md5").update(r).digest("base64");s={"Content-MD5":a}}return(0,XT.default)(async a=>{try{const u=await this.authClient.request({url:i,method:"PUT",body:r,headers:s});if(u.data&&u.data.error){throw u.data.error}this.partsMap.set(e,u.headers["etag"])}catch(u){am(this,Hc,"m",GE).call(this,u,a)}},this.retryOptions)}async completeUpload(){const e=`${this.baseUrl}?uploadId=${this.uploadId}`;const r=new Map([...this.partsMap.entries()].sort((s,a)=>s[0]-a[0]));const n=[];for(const s of r.entries()){n.push({PartNumber:s[0],ETag:s[1]})}const i=`<CompleteMultipartUpload>${this.xmlBuilder.build(n)}</CompleteMultipartUpload>`;return(0,XT.default)(async s=>{try{const a=await this.authClient.request({headers:am(this,Hc,"m",ZT).call(this),url:e,method:"POST",body:i});if(a.data&&a.data.error){throw a.data.error}return a}catch(a){am(this,Hc,"m",GE).call(this,a,s);return}},this.retryOptions)}async abortUpload(){const e=`${this.baseUrl}?uploadId=${this.uploadId}`;return(0,XT.default)(async r=>{try{const n=await this.authClient.request({url:e,method:"DELETE"});if(n.data&&n.data.error){throw n.data.error}}catch(n){am(this,Hc,"m",GE).call(this,n,r);return}},this.retryOptions)}};Hc=new WeakSet,ZT=o(function t(e={}){let r=false;let n=false;for(const[i,s]of Object.entries(e)){if(i.toLocaleLowerCase().trim()==="x-goog-api-client"){r=true;if(!s.includes(kg.UPLOAD_SHARDED)){e[i]=`${s} gccl-gcs-cmd/${kg.UPLOAD_SHARDED}`}}else if(i.toLocaleLowerCase().trim()==="user-agent"){n=true}}if(!r){e["x-goog-api-client"]=`${(0,Q6e.getRuntimeTrackingString)()} gccl/${Y3t.version} gccl-gcs-cmd/${kg.UPLOAD_SHARDED}`}if(!n){e["User-Agent"]=(0,Q6e.getUserAgentString)()}return e},"_XMLMultiPartUploadHelper_setGoogApiClientHeaders"),GE=o(function t(e,r){if(this.bucket.storage.retryOptions.autoRetry&&this.bucket.storage.retryOptions.retryableErrorFn(e)){throw e}else{r(e)}},"_XMLMultiPartUploadHelper_handleErrorResponse");var mM=class{static{o(this,"TransferManager")}constructor(e){this.bucket=e}async uploadManyFiles(e,r={}){var n;if(r.skipIfExists&&((n=r.passthroughOptions)===null||n===void 0?void 0:n.preconditionOpts)){r.passthroughOptions.preconditionOpts.ifGenerationMatch=0}else if(r.skipIfExists&&r.passthroughOptions===void 0){r.passthroughOptions={preconditionOpts:{ifGenerationMatch:0}}}const i=(0,zE.default)(r.concurrencyLimit||W3t);const s=[];let a=[];if(!Array.isArray(e)){for await(const u of this.getPathsFromDirectory(e)){a.push(u)}}else{a=e}for(const u of a){const l=await QT.promises.lstat(u);if(l.isDirectory()){continue}const c={...r.passthroughOptions,[fM.GCCL_GCS_CMD_KEY]:kg.UPLOAD_MANY};c.destination=u.split(kp.sep).join(kp.posix.sep);if(r.prefix){c.destination=kp.posix.join(...r.prefix.split(kp.sep),c.destination)}s.push(i(()=>this.bucket.upload(u,c)))}return Promise.all(s)}async downloadManyFiles(e,r={}){const n=(0,zE.default)(r.concurrencyLimit||J3t);const i=[];let s=[];if(!Array.isArray(e)){const l=await this.bucket.getFiles({prefix:e});s=l[0]}else{s=e.map(l=>{if(typeof l==="string"){return this.bucket.file(l)}return l})}const a=r.stripPrefix?`^${r.stripPrefix}`:t8t;const u=new RegExp(a,"g");for(const l of s){const c={...r.passthroughOptions,[fM.GCCL_GCS_CMD_KEY]:kg.DOWNLOAD_MANY};if(r.prefix){c.destination=kp.join(r.prefix||"",c.destination||"",l.name)}if(r.stripPrefix){c.destination=l.name.replace(u,"")}i.push(n(()=>l.download(c)))}return Promise.all(i)}async downloadFileInChunks(e,r={}){let n=r.chunkSizeBytes||Z3t;let i=(0,zE.default)(r.concurrencyLimit||Q3t);const s=[];const a=typeof e==="string"?this.bucket.file(e):e;const u=await a.get();const l=parseInt(u[0].metadata.size.toString());if(l<X3t){i=(0,zE.default)(1);n=l}let c=0;const d=r.destination||kp.basename(a.name);const p=await QT.promises.open(d,"w");while(c<l){const h=c;let m=c+n-1;m=m>l?l:m;s.push(i(async()=>{const g=await a.download({start:h,end:m,[fM.GCCL_GCS_CMD_KEY]:kg.DOWNLOAD_SHARDED});return p.write(g[0],0,g[0].length,h)}));c+=n}let f;try{const h=await Promise.all(s);f=h.map(m=>m.buffer);if(r.validation==="crc32c"){await H3t.CRC32C.fromFile(d)}return f}finally{p.close()}}async uploadFileInChunks(e,r={},n=r8t){const i=r.chunkSizeBytes||e8t;const s=(0,zE.default)(r.concurrencyLimit||X6e);const a=r.maxQueueSize||r.concurrencyLimit||X6e;const u=r.uploadName||kp.basename(e);const l=n(this.bucket,u,r.uploadId,r.partsMap);let c=1;let d=[];try{if(r.uploadId===void 0){await l.initiateUpload(r.headers)}const p=l.partsMap.size*i;const f=(0,QT.createReadStream)(e,{highWaterMark:i,start:p});for await(const h of f){if(d.length>=a){await Promise.all(d);d=[]}d.push(s(()=>l.uploadPart(c++,h,r.validation)))}await Promise.all(d);return await l.completeUpload()}catch(p){if((r.autoAbortFailure===void 0||r.autoAbortFailure)&&l.uploadId){try{await l.abortUpload();return}catch(f){throw new KE(f.message,l.uploadId,l.partsMap)}}throw new KE(p.message,l.uploadId,l.partsMap)}}async*getPathsFromDirectory(e){const r=await QT.promises.readdir(e,{withFileTypes:true});for(const n of r){const i=kp.join(e,n.name);n.isDirectory()?yield*this.getPathsFromDirectory(i):yield i}}};Es.TransferManager=mM});var rbe=_(fn=>{"use strict";var n8t=fn&&fn.__createBinding||(Object.create?function(t,e,r,n){if(n===void 0)n=r;var i=Object.getOwnPropertyDescriptor(e,r);if(!i||("get"in i?!e.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return e[r]}}}Object.defineProperty(t,n,i)}:function(t,e,r,n){if(n===void 0)n=r;t[n]=e[r]});var gM=fn&&fn.__exportStar||function(t,e){for(var r in t)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r))n8t(e,t,r)};Object.defineProperty(fn,"__esModule",{value:true});fn.Notification=fn.Iam=fn.HmacKey=fn.File=fn.Channel=fn.Bucket=fn.Storage=fn.IdempotencyStrategy=fn.ApiError=void 0;var i8t=Tp();Object.defineProperty(fn,"ApiError",{enumerable:true,get:function(){return i8t.ApiError}});var tbe=Rg();Object.defineProperty(fn,"IdempotencyStrategy",{enumerable:true,get:function(){return tbe.IdempotencyStrategy}});Object.defineProperty(fn,"Storage",{enumerable:true,get:function(){return tbe.Storage}});var s8t=UT();Object.defineProperty(fn,"Bucket",{enumerable:true,get:function(){return s8t.Bucket}});gM(qE(),fn);var a8t=eM();Object.defineProperty(fn,"Channel",{enumerable:true,get:function(){return a8t.Channel}});var o8t=jE();Object.defineProperty(fn,"File",{enumerable:true,get:function(){return o8t.File}});gM(HB(),fn);var u8t=tM();Object.defineProperty(fn,"HmacKey",{enumerable:true,get:function(){return u8t.HmacKey}});var l8t=WB();Object.defineProperty(fn,"Iam",{enumerable:true,get:function(){return l8t.Iam}});var c8t=JB();Object.defineProperty(fn,"Notification",{enumerable:true,get:function(){return c8t.Notification}});gM(ebe(),fn)});var vM=_(hr=>{"use strict";var yM=hr&&hr.__importDefault||function(t){return t&&t.__esModule?t:{"default":t}};Object.defineProperty(hr,"__esModule",{value:true});hr.deleteFolder=hr.untar=hr.tarFolderContent=hr.getParentDirFilename=hr.safePath=hr.UnsafePathError=hr.ensureDirectoryExists=hr.mkdirForFilePathIfNotExits=hr.mkdirIfNotExists=hr.listFolderContents=hr.listFolders=hr.isNotFileOrDirectory=hr.dirExists=hr.deleteFile=hr.fileExists=void 0;var nbe=yM(require("child_process"));var Lp=yM(require("fs/promises"));var $p=yM(require("path"));var ibe=[".git","node_modules",".yarn",".DS_Store"];async function d8t(t){try{const e=await Lp.default.stat(t);return e.isFile()}catch(e){return false}}o(d8t,"fileExists");hr.fileExists=d8t;async function p8t(t,e){return await Lp.default.rm(t,e)}o(p8t,"deleteFile");hr.deleteFile=p8t;async function t7(t){try{const e=await Lp.default.stat(t);return e.isDirectory()}catch(e){return false}}o(t7,"dirExists");hr.dirExists=t7;async function f8t(t){try{await Lp.default.stat(t);return false}catch(e){return true}}o(f8t,"isNotFileOrDirectory");hr.isNotFileOrDirectory=f8t;function h8t(t,e){const r=new RegExp(`(.*)(\\/${e})$|(.*)(${e}\\/)`);const n=t.match(r);if(!n){return""}const i=t.split(n[0]);return i[1]===""?"":`/${i[1]}`}o(h8t,"getParentDirectory");async function m8t(t){if(!await t7(t)){return[]}const e=await Lp.default.readdir(t,{withFileTypes:true});const r=[];for await(const n of e){if(!ibe.includes(n.name)){if(n.isDirectory()){r.push(n.name)}}}return r}o(m8t,"listFolders");hr.listFolders=m8t;async function sbe(t,e,r=true){const n=h8t(t,e);const i=await Lp.default.readdir(t,{withFileTypes:true});const s=[];for await(const a of i){if(!ibe.includes(a.name)||!r){if(a.isDirectory()){const u=await sbe($p.default.join(t,a.name),e,r);s.push(...u)}else{s.push($p.default.join(n,a.name))}}}return s}o(sbe,"listFolderContents");hr.listFolderContents=sbe;var g8t=o(async t=>{if(await t7(t)){return true}await Lp.default.mkdir(t,{recursive:true})},"mkdirIfNotExists");hr.mkdirIfNotExists=g8t;var y8t=o(async t=>{const e=$p.default.dirname(t);return(0,hr.mkdirIfNotExists)(e)},"mkdirForFilePathIfNotExits");hr.mkdirForFilePathIfNotExits=y8t;hr.ensureDirectoryExists=hr.mkdirForFilePathIfNotExits;var e7=class extends Error{static{o(this,"UnsafePathError")}constructor(e){super(e)}};hr.UnsafePathError=e7;function v8t(t){const e=o(r=>{if(!r.startsWith(t)){throw new e7(`Resolved path is not part of the project.`)}return r},"ensureSafePath");return{resolve:(...r)=>e($p.default.resolve(...r))}}o(v8t,"safePath");hr.safePath=v8t;function _8t(t){return`${$p.default.basename($p.default.dirname(t))}/${$p.default.basename(t)}`}o(_8t,"getParentDirFilename");hr.getParentDirFilename=_8t;function E8t(t,e,r,n){const i=$p.default.join(n,r);nbe.default.execSync(`tar --exclude='.git/' --exclude='dist/' -czf ${i} ${e}`,{cwd:t});return i}o(E8t,"tarFolderContent");hr.tarFolderContent=E8t;function b8t(t,e,r,n=false){nbe.default.execSync(`tar -xf ${e} ${n?"--strip-components=1 ":""}-C ${r}`,{cwd:t})}o(b8t,"untar");hr.untar=b8t;async function w8t(t){if(await t7(t)){return await Lp.default.rm(t,{recursive:true})}}o(w8t,"deleteFolder");hr.deleteFolder=w8t});var cbe=_(er=>{"use strict";var S8t=er&&er.__createBinding||(Object.create?function(t,e,r,n){if(n===void 0)n=r;var i=Object.getOwnPropertyDescriptor(e,r);if(!i||("get"in i?!e.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return e[r]}}}Object.defineProperty(t,n,i)}:function(t,e,r,n){if(n===void 0)n=r;t[n]=e[r]});var T8t=er&&er.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:true,value:e})}:function(t,e){t["default"]=e});var A8t=er&&er.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null){for(var r in t)if(r!=="default"&&Object.prototype.hasOwnProperty.call(t,r))S8t(e,t,r)}T8t(e,t);return e};var abe=er&&er.__importDefault||function(t){return t&&t.__esModule?t:{"default":t}};Object.defineProperty(er,"__esModule",{value:true});er.uploadFolderAndRemoveMissingSourceFiles=er.cleanGCPFilePaths=er.uploadFolder=er.deleteDirectory=er.deleteFile=er.listFolderContent=er.readFileStream=er.fileExists=er.getFileContents=er.downloadFile=er.uploadFromMemory=er.uploadFile=er.getBucket=er.BucketName=void 0;var x8t=rbe();var zc=abe(require("path"));var Tl=abe(Ca());var r7=A8t(vM());var om;(function(t){t[t["Archive"]=0]="Archive";t[t["Bundle"]=1]="Bundle";t[t["SourceCode"]=2]="SourceCode";t[t["Sources"]=3]="Sources";t[t["DevPortalBuild"]=4]="DevPortalBuild"})(om||(er.BucketName=om={}));function Al(t){let e;if(t===om.Archive){if(Tl.default.GCP_STORAGE_ARCHIVE_BUCKET_NAME===void 0){throw new Error(`Environment variable GCP_STORAGE_ARCHIVE_BUCKET_NAME must be set`)}e=Tl.default.GCP_STORAGE_ARCHIVE_BUCKET_NAME}else if(t===om.Bundle){if(Tl.default.GCP_STORAGE_BUNDLE_BUCKET_NAME===void 0){throw new Error(`Environment variable GCP_STORAGE_BUNDLE_BUCKET_NAME must be set`)}e=Tl.default.GCP_STORAGE_BUNDLE_BUCKET_NAME}else if(t===om.SourceCode){if(Tl.default.GCP_STORAGE_SOURCE_CODE_BUCKET_NAME===void 0){throw new Error(`Environment variable GCP_STORAGE_SOURCE_CODE_BUCKET_NAME must be set`)}e=Tl.default.GCP_STORAGE_SOURCE_CODE_BUCKET_NAME}else if(t===om.Sources){if(Tl.default.GCP_STORAGE_SOURCES_BUCKET_NAME===void 0){throw new Error(`Environment variable GCP_STORAGE_SOURCES_BUCKET_NAME must be set`)}e=Tl.default.GCP_STORAGE_SOURCES_BUCKET_NAME}else if(t===om.DevPortalBuild){if(Tl.default.GCP_STORAGE_DEV_PORTAL_BUILD_BUCKET_NAME===void 0){throw new Error(`Environment variable GCP_STORAGE_DEV_PORTAL_BUILD_BUCKET_NAME must be set`)}e=Tl.default.GCP_STORAGE_DEV_PORTAL_BUILD_BUCKET_NAME}else{throw new Error("Invalid value for argument 'bucketName'")}const r=new x8t.Storage;return r.bucket(e)}o(Al,"getBucket");er.getBucket=Al;async function _M(t,e,r,n,i){try{await Al(t).upload(e,{destination:r,metadata:i})}catch(s){n.info(`File upload for ${t}/${r} ran into an issue`);n.error(s)}}o(_M,"uploadFile");er.uploadFile=_M;async function C8t(t,e,r,n,i){try{await Al(t).file(r).save(e,i)}catch(s){n.info(`From Memory upload for ${t}/${r} ran into an issue`);n.error(s)}}o(C8t,"uploadFromMemory");er.uploadFromMemory=C8t;async function R8t(t,e,r,n){try{const i={destination:r};await Al(t).file(e).download(i);n.info(`File ${t}/${e} successfully downloaded to ${r}`)}catch(i){n.info(`Downloading file ${t}/${e} ran into an issue`);n.error(i)}}o(R8t,"downloadFile");er.downloadFile=R8t;async function O8t(t,e,r){try{const n=await Al(t).file(e).download();r.info(`File ${t}/${e} successfully downloaded to memory`);return n.toString()}catch(n){r.info(`Downloading file ${t}/${e} ran into an issue`);r.error(n)}}o(O8t,"getFileContents");er.getFileContents=O8t;async function N8t(t,e,r){try{r.info(`Check if file ${t}/${e} exists in storage`);const n=await Al(t).file(e).exists();return n[0]}catch(n){r.info(`Ran into an issue while checking if a file ${t}/${e} exists in storage`);r.error(n);return false}}o(N8t,"fileExists");er.fileExists=N8t;function I8t(t,e,r){r.info(`Reading file ${t}/${e} from storage`);return Al(t).file(e).createReadStream({decompress:true})}o(I8t,"readFileStream");er.readFileStream=I8t;async function obe(t,e,r){const n=new Set;try{const[i]=await Al(t).getFiles({prefix:e});for(let s=0;s<i.length;s++){const a=i[s];const u=a.name.replace(e,"");if(u===""){continue}const l=u.split("/");if(l.length>1){for(let c=0;c<l.length-1;c++){const d=`/${l[c]}`;if(!n.has(d)){n.add(d)}}}n.add(`/${u}`)}}catch(i){r.info(`Ran into an issue while listing files in ${t}/${e} storage path`);r.error(i)}return[...n]}o(obe,"listFolderContent");er.listFolderContent=obe;async function ube(t,e,r){try{r.info(`Deleting file ${t}/${e} from storage`);await Al(t).file(e).delete()}catch(n){r.warn(`Failed to delete file ${t}/${e} from storage`);r.error(n)}}o(ube,"deleteFile");er.deleteFile=ube;async function P8t(t,e,r){try{r.info(`Deleting directory ${t}/${e} from storage`);await Al(t).deleteFiles({prefix:e})}catch(n){r.info(`Failed to delete directory ${t}/${e} from storage`);r.error(n)}}o(P8t,"deleteDirectory");er.deleteDirectory=P8t;async function D8t(t,e,r,n,i){try{n.info(`Upload folder ${zc.default.basename(e)}`);if(await r7.dirExists(e)){const s=await r7.listFolderContents(e,zc.default.basename(e));if(s&&s.length>0){await Promise.all(s.map(async a=>{return await _M(t,zc.default.join(e,a),zc.default.join(r,a),n,i)}))}}}catch(s){n.warn(`Failed to upload directory ${e} to bucket ${t}`,s)}}o(D8t,"uploadFolder");er.uploadFolder=D8t;function lbe(t){const e=t.filter(r=>r!=="/").map(r=>r.replace(/^\/+/,""));return e}o(lbe,"cleanGCPFilePaths");er.cleanGCPFilePaths=lbe;async function k8t(t,e,r,n,i){try{n.info(`uploadFolderAndRemoveMissingSourceFiles: upload folder ${zc.default.basename(e)}`);if(await r7.dirExists(e)){const s=await obe(t,r,n);const a=lbe(s);const u=await r7.listFolderContents(e,zc.default.basename(e));const l=a.filter(c=>!u.includes(c)).map(c=>zc.default.join(r,c));await Promise.all(l.map(async c=>{return await ube(t,c,n)}));await Promise.all(u.map(async c=>{return await _M(t,zc.default.join(e,c),zc.default.join(r,c),n,i)}))}}catch(s){n.warn(`Failed to upload directory ${e} to bucket ${t}`,s)}}o(k8t,"uploadFolderAndRemoveMissingSourceFiles");er.uploadFolderAndRemoveMissingSourceFiles=k8t});var dbe=_(n7=>{"use strict";Object.defineProperty(n7,"__esModule",{value:true});n7.graphQL=void 0;var xl=Qs();async function $8t(t,e,r){const n=await fetch(`https://api.github.com/graphql`,{method:"POST",headers:{Authorization:`Bearer ${e}`},body:t});if(n.status===401){r.warn("Failed GitHub GraphQL query with status 401. User token might have been revoked directly in GitHub.");throw new xl.ApiError(xl.Problems.SOURCE_CONTROL_GH_APP_REVOKED_ACCESS)}if(n.status===403){r.warn("Failed GitHub GraphQL query with status 403. User token does not have correct permissions to query this GitHub API.");throw new xl.ApiError(xl.Problems.SOURCE_CONTROL_GH_APP_CONFIG_REQUIRED)}if(n.status===404){r.warn("Failed GitHub GraphQL query with status 404. User token has been revoked and can not query this GitHub API.");throw new xl.ApiError(xl.Problems.SOURCE_CONTROL_GH_APP_CONFIG_REQUIRED)}if(n.status===400){const i=await n.json();r.warn("Failed GitHub GraphQL query with status 400. A malformed query was ran against the GitHub API.",i);throw new xl.ApiError(xl.Problems.BAD_REQUEST)}if(n.status!==200&&n.status!==304){r.warn(`Failed GitHub GraphQL query with status ${n.status}. There was an unexpected error querying the GitHub API.`);throw new xl.ApiError(xl.Problems.SOURCE_CONTROL_GH_APP_CONFIG_REQUIRED)}return n}o($8t,"graphQL");n7.graphQL=$8t});var ybe=_(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:true});Ao.SourceControlProvider=Ao.PlanType=Ao.EnvironmentType=Ao.EnvironmentTarget=Ao.DeploymentState=void 0;var pbe;(function(t){t[t["IS_STARTING"]=0]="IS_STARTING";t[t["STARTED"]=1]="STARTED";t[t["STOPPED"]=2]="STOPPED";t[t["ERRORED"]=3]="ERRORED"})(pbe||(Ao.DeploymentState=pbe={}));var fbe;(function(t){t["CLOUDFLARE"]="CLOUDFLARE";t["KNATIVE"]="KNATIVE"})(fbe||(Ao.EnvironmentTarget=fbe={}));var hbe;(function(t){t["PRODUCTION"]="PRODUCTION";t["PREVIEW"]="PREVIEW";t["WORKING_COPY"]="WORKING_COPY"})(hbe||(Ao.EnvironmentType=hbe={}));var mbe;(function(t){t["FREE_V1"]="FREE_V1";t["BUILDER_V1"]="BUILDER_V1";t["BUSINESS_V1"]="BUSINESS_V1";t["CUSTOM"]="CUSTOM";t["EMPLOYEE"]="EMPLOYEE";t["CUSTOM_TRIAL_V1"]="CUSTOM_TRIAL_V1"})(mbe||(Ao.PlanType=mbe={}));var gbe;(function(t){t["GITHUB"]="GITHUB";t["GITLAB"]="GITLAB";t["BITBUCKET"]="BITBUCKET"})(gbe||(Ao.SourceControlProvider=gbe={}))});var _be=_(vbe=>{"use strict";Object.defineProperty(vbe,"__esModule",{value:true})});var Ebe=_(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:true});xo.INTERNAL_ROUTE_VENDOR_TAG=xo.ZUPLO_OPEN_API_ROUTE_KEY=xo.ZUPLO_OPEN_API_PATH_KEY=xo.ZUPLO_OPEN_API_VENDOR_PREFIX=void 0;xo.ZUPLO_OPEN_API_VENDOR_PREFIX="x-zuplo";xo.ZUPLO_OPEN_API_PATH_KEY=`${xo.ZUPLO_OPEN_API_VENDOR_PREFIX}-path`;xo.ZUPLO_OPEN_API_ROUTE_KEY=`${xo.ZUPLO_OPEN_API_VENDOR_PREFIX}-route`;xo.INTERNAL_ROUTE_VENDOR_TAG="x-internal"});var bbe=_((blr,L8t)=>{L8t.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/dev-portal.json",title:"Dev Portal Config",description:"",type:"object",required:[],additionalProperties:false,$defs:{ApiKeysConfig:{type:"object",additionalProperties:false,required:["bucketName"],properties:{bucketName:{type:"string"},apiKey:{type:"string"}}},DevPortalOAuthClientConfigLegacy:{type:"object",deprecated:true,additionalProperties:false,required:["clientId"],properties:{clientId:{type:"string"},audience:{type:"string",description:"The audience of the API (i.e. the Zup's URL)\nOkta: not required\nAuth0: https://my-api.example.com/"}}},DevPortalOAuthClientCredentialsConfig:{type:"object",$comment:"The OAuth management feature has been deprecated. This is no longer used.",deprecated:true,description:"This is the M2M configuration used to authenticate with OAuth provider in order to manage OAuth clients",required:["clientId","clientSecret"],additionalProperties:false,properties:{clientId:{type:"string"}}},DevPortalAPIKeyCredentialConfig:{type:"object",$comment:"The OAuth management feature has been deprecated. This is no longer used.",deprecated:true,description:"API Key credentials to access identity provider API",required:["apiKey"],additionalProperties:false,properties:{apiKey:{type:"string"}}},DevPortalOAuthConfigLegacy:{type:"object",$comment:"Use the new DevPortalOAuthConfig instead. This is only for backwards compatibility.",deprecated:true,description:"Settings for OAuth that is used to authenticate end-users to the developer portal and (optionally) for configuring issuing of OAuth Client Consumers using the identity provider",required:["provider","authority"],additionalProperties:false,properties:{provider:{type:"string",enum:["okta","auth0","azure-ad","clerk","oidc"]},authority:{type:"string",description:"This is the full URL of the authorization server.\nOkta: https://dev-1235.okta.com/oauth2/aus123152352342\nAuth0: https://my-account.us.auth0.com\nAzure Active Directory: https://login.microsoftonline.com/{tenant}/v2.0\nClerk: https://your-account-23.clerk.accounts.dev"},jwksUrl:{type:"string",description:"The url of of the JWKS"},devPortalClient:{description:"This is the client that is used to authenticate end-users to the Zuplo developer portal",$ref:"#/$defs/DevPortalOAuthClientConfigLegacy"},managementClient:{oneOf:[{$ref:"#/$defs/DevPortalOAuthClientCredentialsConfig"},{$ref:"#/$defs/DevPortalAPIKeyCredentialConfig"}]}}},DevPortalOAuthConfig:{type:"object",description:"Settings for OAuth that is used to authenticate end-users to the developer portal and (optionally) for configuring issuing of OAuth Client Consumers using the identity provider",required:["provider","issuer","clientId"],additionalProperties:false,properties:{provider:{type:"string",enum:["okta","auth0","azure-ad","clerk","oidc"]},issuer:{type:"string",description:"This is the full URL of the authorization server.\nOkta: https://dev-1235.okta.com/oauth2/aus123152352342\nAuth0: https://my-account.us.auth0.com\nAzure Active Directory: https://login.microsoftonline.com/{tenant}/v2.0\nClerk: https://your-account-23.clerk.accounts.dev"},clientId:{type:"string",description:"The client ID of the OAuth client that is used to authenticate end-users to the Zuplo developer portal"},clientSecret:{type:"string",description:"The client secret of the OAuth client that is used to authenticate end-users to the Zuplo developer portal"},audience:{type:"string",description:"The audience of the API (i.e. the Zup's URL)\nOkta: not required\nAuth0: https://my-api.example.com/"}}},DevPortalExternalAuthConfig:{type:"object",description:"Settings for external auth that is used to authenticate end-users to the developer portal",additionalProperties:false,required:["loginUrl","provider","logoutUrl"],properties:{provider:{type:"string",enum:["external"]},loginUrl:{type:"string",description:"The URL of your external login page"},logoutUrl:{type:"string",description:"The URL of your external logout endpoint"}}},DevPortalAuthConfig:{type:"object",oneOf:[{$ref:"#/$defs/DevPortalOAuthConfig"},{$ref:"#/$defs/DevPortalOAuthConfigLegacy"},{$ref:"#/$defs/DevPortalExternalAuthConfig"}]},DevPortalMonetizationConfig:{type:"object",description:"Settings for monetization features like self-serve checkout and subscription management",oneOf:[{$ref:"#/$defs/DevPortalStripeMonetizationConfig"}]},DevPortalStripeMonetizationConfig:{type:"object",description:"Settings used to configure Stripe for monetization features like self-serve checkout and subscription management",additionalProperties:false,required:["provider","publishableKey","pricingTableId","secretKey"],properties:{provider:{type:"string",enum:["stripe"]},publishableKey:{type:"string",description:"Your Stripe publishable key - found under Developers > API keys > Standard keys"},secretKey:{type:"string",description:"Your Stripe secret key - found under Developers > API keys > Standard keys"},pricingTableId:{type:"string",description:"The ID of the pricing table that will be used to display pricing information to end-users"},meteringBucketId:{type:"string",description:"The ID of the metering bucket that will be used to track usage of the API"}}}},properties:{$schema:{type:"string"},enabled:{description:"If the developer portal is enabled",type:"boolean",default:true},authentication:{description:"Authentication configuration",$ref:"#/$defs/DevPortalAuthConfig"},monetization:{description:"Monetization configuration",$ref:"#/$defs/DevPortalMonetizationConfig"},sitePathname:{type:"string",default:"/docs"},faviconUrl:{type:"string",description:"The favicon url"},pageTitle:{type:"string",description:"The default page title"},enableAuthentication:{type:"boolean",description:"If sign in to the developer portal is enabled."},enableMonetization:{type:"boolean",description:"If monetization features like self-serve checkout and subscription management are enabled."},enableMetering:{type:"boolean",description:"If monetization features like self-serve checkout and subscription management are enabled."},requireAuthentication:{type:"boolean",default:false,description:"If authentication is required to access the developer portal. If false, the developer portal will be publicly accessible."},authorizePathname:{type:"string",default:"/oauth/authorize",description:"The path that starts the OAuth flow for third-party-apps"},apiKeys:{description:"Api Keys Service Configuration",$ref:"#/$defs/ApiKeysConfig"},generateExamples:{type:"boolean",default:true,description:"If false, the developer portal will no longer generate examples for endpoints that do not have examples defined"}}}});var JE=_(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:true});qr.regexpCode=qr.getEsmExportName=qr.getProperty=qr.safeStringify=qr.stringify=qr.strConcat=qr.addCodeArg=qr.str=qr._=qr.nil=qr._Code=qr.Name=qr.IDENTIFIER=qr._CodeOrName=void 0;var YE=class{static{o(this,"_CodeOrName")}};qr._CodeOrName=YE;qr.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var um=class extends YE{static{o(this,"Name")}constructor(e){super();if(!qr.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return false}get names(){return{[this.str]:1}}};qr.Name=um;var Co=class extends YE{static{o(this,"_Code")}constructor(e){super();this._items=typeof e==="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return false;const e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,n)=>{if(n instanceof um)r[n.str]=(r[n.str]||0)+1;return r},{})}};qr._Code=Co;qr.nil=new Co("");function wbe(t,...e){const r=[t[0]];let n=0;while(n<e.length){bM(r,e[n]);r.push(t[++n])}return new Co(r)}o(wbe,"_");qr._=wbe;var EM=new Co("+");function Sbe(t,...e){const r=[WE(t[0])];let n=0;while(n<e.length){r.push(EM);bM(r,e[n]);r.push(EM,WE(t[++n]))}q8t(r);return new Co(r)}o(Sbe,"str");qr.str=Sbe;function bM(t,e){if(e instanceof Co)t.push(...e._items);else if(e instanceof um)t.push(e);else t.push(F8t(e))}o(bM,"addCodeArg");qr.addCodeArg=bM;function q8t(t){let e=1;while(e<t.length-1){if(t[e]===EM){const r=j8t(t[e-1],t[e+1]);if(r!==void 0){t.splice(e-1,3,r);continue}t[e++]="+"}e++}}o(q8t,"optimize");function j8t(t,e){if(e==='""')return t;if(t==='""')return e;if(typeof t=="string"){if(e instanceof um||t[t.length-1]!=='"')return;if(typeof e!="string")return`${t.slice(0,-1)}${e}"`;if(e[0]==='"')return t.slice(0,-1)+e.slice(1);return}if(typeof e=="string"&&e[0]==='"'&&!(t instanceof um))return`"${t}${e.slice(1)}`;return}o(j8t,"mergeExprItems");function U8t(t,e){return e.emptyStr()?t:t.emptyStr()?e:Sbe`${t}${e}`}o(U8t,"strConcat");qr.strConcat=U8t;function F8t(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:WE(Array.isArray(t)?t.join(","):t)}o(F8t,"interpolate");function B8t(t){return new Co(WE(t))}o(B8t,"stringify");qr.stringify=B8t;function WE(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}o(WE,"safeStringify");qr.safeStringify=WE;function M8t(t){return typeof t=="string"&&qr.IDENTIFIER.test(t)?new Co(`.${t}`):wbe`[${t}]`}o(M8t,"getProperty");qr.getProperty=M8t;function V8t(t){if(typeof t=="string"&&qr.IDENTIFIER.test(t)){return new Co(`${t}`)}throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}o(V8t,"getEsmExportName");qr.getEsmExportName=V8t;function H8t(t){return new Co(t.toString())}o(H8t,"regexpCode");qr.regexpCode=H8t});var AM=_(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:true});js.ValueScope=js.ValueScopeName=js.Scope=js.varKinds=js.UsedValueState=void 0;var ga=JE();var wM=class extends Error{static{o(this,"ValueError")}constructor(e){super(`CodeGen: "code" for ${e} not defined`);this.value=e.value}};var SM;(function(t){t[t["Started"]=0]="Started";t[t["Completed"]=1]="Completed"})(SM=js.UsedValueState||(js.UsedValueState={}));js.varKinds={const:new ga.Name("const"),let:new ga.Name("let"),var:new ga.Name("var")};var i7=class{static{o(this,"Scope")}constructor({prefixes:e,parent:r}={}){this._names={};this._prefixes=e;this._parent=r}toName(e){return e instanceof ga.Name?e:this.name(e)}name(e){return new ga.Name(this._newName(e))}_newName(e){const r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,n;if(((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e)){throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`)}return this._names[e]={prefix:e,index:0}}};js.Scope=i7;var s7=class extends ga.Name{static{o(this,"ValueScopeName")}constructor(e,r){super(r);this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e;this.scopePath=(0,ga._)`.${new ga.Name(r)}[${n}]`}};js.ValueScopeName=s7;var z8t=(0,ga._)`\n`;var TM=class extends i7{static{o(this,"ValueScope")}constructor(e){super(e);this._values={};this._scope=e.scope;this.opts={...e,_n:e.lines?z8t:ga.nil}}get(){return this._scope}name(e){return new s7(e,this._newName(e))}value(e,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const i=this.toName(e);const{prefix:s}=i;const a=(n=r.key)!==null&&n!==void 0?n:r.ref;let u=this._values[s];if(u){const d=u.get(a);if(d)return d}else{u=this._values[s]=new Map}u.set(a,i);const l=this._scope[s]||(this._scope[s]=[]);const c=l.length;l[c]=r.ref;i.setValue(r,{property:s,itemIndex:c});return i}getValue(e,r){const n=this._values[e];if(!n)return;return n.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,ga._)`${e}${n.scopePath}`})}scopeCode(e=this._values,r,n){return this._reduceValues(e,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(e,r,n={},i){let s=ga.nil;for(const a in e){const u=e[a];if(!u)continue;const l=n[a]=n[a]||new Map;u.forEach(c=>{if(l.has(c))return;l.set(c,SM.Started);let d=r(c);if(d){const p=this.opts.es5?js.varKinds.var:js.varKinds.const;s=(0,ga._)`${s}${p} ${c} = ${d};${this.opts._n}`}else if(d=i===null||i===void 0?void 0:i(c)){s=(0,ga._)`${s}${d}${this.opts._n}`}else{throw new wM(c)}l.set(c,SM.Completed)})}return s}};js.ValueScope=TM});var Pt=_(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:true});Yt.or=Yt.and=Yt.not=Yt.CodeGen=Yt.operators=Yt.varKinds=Yt.ValueScopeName=Yt.ValueScope=Yt.Scope=Yt.Name=Yt.regexpCode=Yt.stringify=Yt.getProperty=Yt.nil=Yt.strConcat=Yt.str=Yt._=void 0;var Er=JE();var Tu=AM();var qp=JE();Object.defineProperty(Yt,"_",{enumerable:true,get:function(){return qp._}});Object.defineProperty(Yt,"str",{enumerable:true,get:function(){return qp.str}});Object.defineProperty(Yt,"strConcat",{enumerable:true,get:function(){return qp.strConcat}});Object.defineProperty(Yt,"nil",{enumerable:true,get:function(){return qp.nil}});Object.defineProperty(Yt,"getProperty",{enumerable:true,get:function(){return qp.getProperty}});Object.defineProperty(Yt,"stringify",{enumerable:true,get:function(){return qp.stringify}});Object.defineProperty(Yt,"regexpCode",{enumerable:true,get:function(){return qp.regexpCode}});Object.defineProperty(Yt,"Name",{enumerable:true,get:function(){return qp.Name}});var l7=AM();Object.defineProperty(Yt,"Scope",{enumerable:true,get:function(){return l7.Scope}});Object.defineProperty(Yt,"ValueScope",{enumerable:true,get:function(){return l7.ValueScope}});Object.defineProperty(Yt,"ValueScopeName",{enumerable:true,get:function(){return l7.ValueScopeName}});Object.defineProperty(Yt,"varKinds",{enumerable:true,get:function(){return l7.varKinds}});Yt.operators={GT:new Er._Code(">"),GTE:new Er._Code(">="),LT:new Er._Code("<"),LTE:new Er._Code("<="),EQ:new Er._Code("==="),NEQ:new Er._Code("!=="),NOT:new Er._Code("!"),OR:new Er._Code("||"),AND:new Er._Code("&&"),ADD:new Er._Code("+")};var Gc=class{static{o(this,"Node")}optimizeNodes(){return this}optimizeNames(e,r){return this}};var xM=class extends Gc{static{o(this,"Def")}constructor(e,r,n){super();this.varKind=e;this.name=r;this.rhs=n}render({es5:e,_n:r}){const n=e?Tu.varKinds.var:this.varKind;const i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(e,r){if(!e[this.name.str])return;if(this.rhs)this.rhs=Lg(this.rhs,e,r);return this}get names(){return this.rhs instanceof Er._CodeOrName?this.rhs.names:{}}};var a7=class extends Gc{static{o(this,"Assign")}constructor(e,r,n){super();this.lhs=e;this.rhs=r;this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(this.lhs instanceof Er.Name&&!e[this.lhs.str]&&!this.sideEffects)return;this.rhs=Lg(this.rhs,e,r);return this}get names(){const e=this.lhs instanceof Er.Name?{}:{...this.lhs.names};return u7(e,this.rhs)}};var CM=class extends a7{static{o(this,"AssignOp")}constructor(e,r,n,i){super(e,n,i);this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}};var RM=class extends Gc{static{o(this,"Label")}constructor(e){super();this.label=e;this.names={}}render({_n:e}){return`${this.label}:`+e}};var OM=class extends Gc{static{o(this,"Break")}constructor(e){super();this.label=e;this.names={}}render({_n:e}){const r=this.label?` ${this.label}`:"";return`break${r};`+e}};var NM=class extends Gc{static{o(this,"Throw")}constructor(e){super();this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}};var IM=class extends Gc{static{o(this,"AnyCode")}constructor(e){super();this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){this.code=Lg(this.code,e,r);return this}get names(){return this.code instanceof Er._CodeOrName?this.code.names:{}}};var QE=class extends Gc{static{o(this,"ParentNode")}constructor(e=[]){super();this.nodes=e}render(e){return this.nodes.reduce((r,n)=>r+n.render(e),"")}optimizeNodes(){const{nodes:e}=this;let r=e.length;while(r--){const n=e[r].optimizeNodes();if(Array.isArray(n))e.splice(r,1,...n);else if(n)e[r]=n;else e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){const{nodes:n}=this;let i=n.length;while(i--){const s=n[i];if(s.optimizeNames(e,r))continue;G8t(e,s.names);n.splice(i,1)}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>dm(e,r.names),{})}};var Kc=class extends QE{static{o(this,"BlockNode")}render(e){return"{"+e._n+super.render(e)+"}"+e._n}};var PM=class extends QE{static{o(this,"Root")}};var $g=class extends Kc{static{o(this,"Else")}};$g.kind="else";var lm=class t extends Kc{static{o(this,"If")}constructor(e,r){super(r);this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);if(this.else)r+="else "+this.else.render(e);return r}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(e===true)return this.nodes;let r=this.else;if(r){const n=r.optimizeNodes();r=this.else=Array.isArray(n)?new $g(n):n}if(r){if(e===false)return r instanceof t?r:r.nodes;if(this.nodes.length)return this;return new t(Tbe(e),r instanceof t?[r]:r.nodes)}if(e===false||!this.nodes.length)return void 0;return this}optimizeNames(e,r){var n;this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(e,r);if(!(super.optimizeNames(e,r)||this.else))return;this.condition=Lg(this.condition,e,r);return this}get names(){const e=super.names;u7(e,this.condition);if(this.else)dm(e,this.else.names);return e}};lm.kind="if";var cm=class extends Kc{static{o(this,"For")}};cm.kind="for";var DM=class extends cm{static{o(this,"ForLoop")}constructor(e){super();this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(!super.optimizeNames(e,r))return;this.iteration=Lg(this.iteration,e,r);return this}get names(){return dm(super.names,this.iteration.names)}};var kM=class extends cm{static{o(this,"ForRange")}constructor(e,r,n,i){super();this.varKind=e;this.name=r;this.from=n;this.to=i}render(e){const r=e.es5?Tu.varKinds.var:this.varKind;const{name:n,from:i,to:s}=this;return`for(${r} ${n}=${i}; ${n}<${s}; ${n}++)`+super.render(e)}get names(){const e=u7(super.names,this.from);return u7(e,this.to)}};var o7=class extends cm{static{o(this,"ForIter")}constructor(e,r,n,i){super();this.loop=e;this.varKind=r;this.name=n;this.iterable=i}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(!super.optimizeNames(e,r))return;this.iterable=Lg(this.iterable,e,r);return this}get names(){return dm(super.names,this.iterable.names)}};var XE=class extends Kc{static{o(this,"Func")}constructor(e,r,n){super();this.name=e;this.args=r;this.async=n}render(e){const r=this.async?"async ":"";return`${r}function ${this.name}(${this.args})`+super.render(e)}};XE.kind="func";var ZE=class extends QE{static{o(this,"Return")}render(e){return"return "+super.render(e)}};ZE.kind="return";var $M=class extends Kc{static{o(this,"Try")}render(e){let r="try"+super.render(e);if(this.catch)r+=this.catch.render(e);if(this.finally)r+=this.finally.render(e);return r}optimizeNodes(){var e,r;super.optimizeNodes();(e=this.catch)===null||e===void 0?void 0:e.optimizeNodes();(r=this.finally)===null||r===void 0?void 0:r.optimizeNodes();return this}optimizeNames(e,r){var n,i;super.optimizeNames(e,r);(n=this.catch)===null||n===void 0?void 0:n.optimizeNames(e,r);(i=this.finally)===null||i===void 0?void 0:i.optimizeNames(e,r);return this}get names(){const e=super.names;if(this.catch)dm(e,this.catch.names);if(this.finally)dm(e,this.finally.names);return e}};var e6=class extends Kc{static{o(this,"Catch")}constructor(e){super();this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};e6.kind="catch";var t6=class extends Kc{static{o(this,"Finally")}render(e){return"finally"+super.render(e)}};t6.kind="finally";var LM=class{static{o(this,"CodeGen")}constructor(e,r={}){this._values={};this._blockStarts=[];this._constants={};this.opts={...r,_n:r.lines?"\n":""};this._extScope=e;this._scope=new Tu.Scope({parent:e});this._nodes=[new PM]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){const n=this._extScope.value(e,r);const i=this._values[n.prefix]||(this._values[n.prefix]=new Set);i.add(n);return n}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,n,i){const s=this._scope.toName(r);if(n!==void 0&&i)this._constants[s.str]=n;this._leafNode(new xM(e,s,n));return s}const(e,r,n){return this._def(Tu.varKinds.const,e,r,n)}let(e,r,n){return this._def(Tu.varKinds.let,e,r,n)}var(e,r,n){return this._def(Tu.varKinds.var,e,r,n)}assign(e,r,n){return this._leafNode(new a7(e,r,n))}add(e,r){return this._leafNode(new CM(e,Yt.operators.ADD,r))}code(e){if(typeof e=="function")e();else if(e!==Er.nil)this._leafNode(new IM(e));return this}object(...e){const r=["{"];for(const[n,i]of e){if(r.length>1)r.push(",");r.push(n);if(n!==i||this.opts.es5){r.push(":");(0,Er.addCodeArg)(r,i)}}r.push("}");return new Er._Code(r)}if(e,r,n){this._blockNode(new lm(e));if(r&&n){this.code(r).else().code(n).endIf()}else if(r){this.code(r).endIf()}else if(n){throw new Error('CodeGen: "else" body without "then" body')}return this}elseIf(e){return this._elseNode(new lm(e))}else(){return this._elseNode(new $g)}endIf(){return this._endBlockNode(lm,$g)}_for(e,r){this._blockNode(e);if(r)this.code(r).endFor();return this}for(e,r){return this._for(new DM(e),r)}forRange(e,r,n,i,s=this.opts.es5?Tu.varKinds.var:Tu.varKinds.let){const a=this._scope.toName(e);return this._for(new kM(s,a,r,n),()=>i(a))}forOf(e,r,n,i=Tu.varKinds.const){const s=this._scope.toName(e);if(this.opts.es5){const a=r instanceof Er.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,Er._)`${a}.length`,u=>{this.var(s,(0,Er._)`${a}[${u}]`);n(s)})}return this._for(new o7("of",i,s,r),()=>n(s))}forIn(e,r,n,i=this.opts.es5?Tu.varKinds.var:Tu.varKinds.const){if(this.opts.ownProperties){return this.forOf(e,(0,Er._)`Object.keys(${r})`,n)}const s=this._scope.toName(e);return this._for(new o7("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(cm)}label(e){return this._leafNode(new RM(e))}break(e){return this._leafNode(new OM(e))}return(e){const r=new ZE;this._blockNode(r);this.code(e);if(r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(ZE)}try(e,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const i=new $M;this._blockNode(i);this.code(e);if(r){const s=this.name("e");this._currNode=i.catch=new e6(s);r(s)}if(n){this._currNode=i.finally=new t6;this.code(n)}return this._endBlockNode(e6,t6)}throw(e){return this._leafNode(new NM(e))}block(e,r){this._blockStarts.push(this._nodes.length);if(e)this.code(e).endBlock(r);return this}endBlock(e){const r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-r;if(n<0||e!==void 0&&n!==e){throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`)}this._nodes.length=r;return this}func(e,r=Er.nil,n,i){this._blockNode(new XE(e,r,n));if(i)this.code(i).endFunc();return this}endFunc(){return this._endBlockNode(XE)}optimize(e=1){while(e-- >0){this._root.optimizeNodes();this._root.optimizeNames(this._root.names,this._constants)}}_leafNode(e){this._currNode.nodes.push(e);return this}_blockNode(e){this._currNode.nodes.push(e);this._nodes.push(e)}_endBlockNode(e,r){const n=this._currNode;if(n instanceof e||r&&n instanceof r){this._nodes.pop();return this}throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){const r=this._currNode;if(!(r instanceof lm)){throw new Error('CodeGen: "else" without "if"')}this._currNode=r.else=e;return this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const r=this._nodes;r[r.length-1]=e}};Yt.CodeGen=LM;function dm(t,e){for(const r in e)t[r]=(t[r]||0)+(e[r]||0);return t}o(dm,"addNames");function u7(t,e){return e instanceof Er._CodeOrName?dm(t,e.names):t}o(u7,"addExprNames");function Lg(t,e,r){if(t instanceof Er.Name)return n(t);if(!i(t))return t;return new Er._Code(t._items.reduce((s,a)=>{if(a instanceof Er.Name)a=n(a);if(a instanceof Er._Code)s.push(...a._items);else s.push(a);return s},[]));function n(s){const a=r[s.str];if(a===void 0||e[s.str]!==1)return s;delete e[s.str];return a}o(n,"replaceName");function i(s){return s instanceof Er._Code&&s._items.some(a=>a instanceof Er.Name&&e[a.str]===1&&r[a.str]!==void 0)}o(i,"canOptimize")}o(Lg,"optimizeExpr");function G8t(t,e){for(const r in e)t[r]=(t[r]||0)-(e[r]||0)}o(G8t,"subtractNames");function Tbe(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,Er._)`!${qM(t)}`}o(Tbe,"not");Yt.not=Tbe;var K8t=Abe(Yt.operators.AND);function Y8t(...t){return t.reduce(K8t)}o(Y8t,"and");Yt.and=Y8t;var W8t=Abe(Yt.operators.OR);function J8t(...t){return t.reduce(W8t)}o(J8t,"or");Yt.or=J8t;function Abe(t){return(e,r)=>e===Er.nil?r:r===Er.nil?e:(0,Er._)`${qM(e)} ${t} ${qM(r)}`}o(Abe,"mappend");function qM(t){return t instanceof Er.Name?t:(0,Er._)`(${t})`}o(qM,"par")});var sr=_(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.checkStrictMode=Wt.getErrorPath=Wt.Type=Wt.useFunc=Wt.setEvaluated=Wt.evaluatedPropsToName=Wt.mergeEvaluated=Wt.eachItem=Wt.unescapeJsonPointer=Wt.escapeJsonPointer=Wt.escapeFragment=Wt.unescapeFragment=Wt.schemaRefOrVal=Wt.schemaHasRulesButRef=Wt.schemaHasRules=Wt.checkUnknownRules=Wt.alwaysValidSchema=Wt.toHash=void 0;var hn=Pt();var Q8t=JE();function X8t(t){const e={};for(const r of t)e[r]=true;return e}o(X8t,"toHash");Wt.toHash=X8t;function Z8t(t,e){if(typeof e=="boolean")return e;if(Object.keys(e).length===0)return true;Rbe(t,e);return!Obe(e,t.self.RULES.all)}o(Z8t,"alwaysValidSchema");Wt.alwaysValidSchema=Z8t;function Rbe(t,e=t.schema){const{opts:r,self:n}=t;if(!r.strictSchema)return;if(typeof e==="boolean")return;const i=n.RULES.keywords;for(const s in e){if(!i[s])Dbe(t,`unknown keyword: "${s}"`)}}o(Rbe,"checkUnknownRules");Wt.checkUnknownRules=Rbe;function Obe(t,e){if(typeof t=="boolean")return!t;for(const r in t)if(e[r])return true;return false}o(Obe,"schemaHasRules");Wt.schemaHasRules=Obe;function e5t(t,e){if(typeof t=="boolean")return!t;for(const r in t)if(r!=="$ref"&&e.all[r])return true;return false}o(e5t,"schemaHasRulesButRef");Wt.schemaHasRulesButRef=e5t;function t5t({topSchemaRef:t,schemaPath:e},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,hn._)`${r}`}return(0,hn._)`${t}${e}${(0,hn.getProperty)(n)}`}o(t5t,"schemaRefOrVal");Wt.schemaRefOrVal=t5t;function r5t(t){return Nbe(decodeURIComponent(t))}o(r5t,"unescapeFragment");Wt.unescapeFragment=r5t;function n5t(t){return encodeURIComponent(jM(t))}o(n5t,"escapeFragment");Wt.escapeFragment=n5t;function jM(t){if(typeof t=="number")return`${t}`;return t.replace(/~/g,"~0").replace(/\//g,"~1")}o(jM,"escapeJsonPointer");Wt.escapeJsonPointer=jM;function Nbe(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}o(Nbe,"unescapeJsonPointer");Wt.unescapeJsonPointer=Nbe;function i5t(t,e){if(Array.isArray(t)){for(const r of t)e(r)}else{e(t)}}o(i5t,"eachItem");Wt.eachItem=i5t;function xbe({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:n}){return(i,s,a,u)=>{const l=a===void 0?s:a instanceof hn.Name?(s instanceof hn.Name?t(i,s,a):e(i,s,a),a):s instanceof hn.Name?(e(i,a,s),s):r(s,a);return u===hn.Name&&!(l instanceof hn.Name)?n(i,l):l}}o(xbe,"makeMergeEvaluated");Wt.mergeEvaluated={props:xbe({mergeNames:(t,e,r)=>t.if((0,hn._)`${r} !== true && ${e} !== undefined`,()=>{t.if((0,hn._)`${e} === true`,()=>t.assign(r,true),()=>t.assign(r,(0,hn._)`${r} || {}`).code((0,hn._)`Object.assign(${r}, ${e})`))}),mergeToName:(t,e,r)=>t.if((0,hn._)`${r} !== true`,()=>{if(e===true){t.assign(r,true)}else{t.assign(r,(0,hn._)`${r} || {}`);UM(t,r,e)}}),mergeValues:(t,e)=>t===true?true:{...t,...e},resultToName:Ibe}),items:xbe({mergeNames:(t,e,r)=>t.if((0,hn._)`${r} !== true && ${e} !== undefined`,()=>t.assign(r,(0,hn._)`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`)),mergeToName:(t,e,r)=>t.if((0,hn._)`${r} !== true`,()=>t.assign(r,e===true?true:(0,hn._)`${r} > ${e} ? ${r} : ${e}`)),mergeValues:(t,e)=>t===true?true:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function Ibe(t,e){if(e===true)return t.var("props",true);const r=t.var("props",(0,hn._)`{}`);if(e!==void 0)UM(t,r,e);return r}o(Ibe,"evaluatedPropsToName");Wt.evaluatedPropsToName=Ibe;function UM(t,e,r){Object.keys(r).forEach(n=>t.assign((0,hn._)`${e}${(0,hn.getProperty)(n)}`,true))}o(UM,"setEvaluated");Wt.setEvaluated=UM;var Cbe={};function s5t(t,e){return t.scopeValue("func",{ref:e,code:Cbe[e.code]||(Cbe[e.code]=new Q8t._Code(e.code))})}o(s5t,"useFunc");Wt.useFunc=s5t;var Pbe;(function(t){t[t["Num"]=0]="Num";t[t["Str"]=1]="Str"})(Pbe=Wt.Type||(Wt.Type={}));function a5t(t,e,r){if(t instanceof hn.Name){const n=e===Pbe.Num;return r?n?(0,hn._)`"[" + ${t} + "]"`:(0,hn._)`"['" + ${t} + "']"`:n?(0,hn._)`"/" + ${t}`:(0,hn._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,hn.getProperty)(t).toString():"/"+jM(t)}o(a5t,"getErrorPath");Wt.getErrorPath=a5t;function Dbe(t,e,r=t.opts.strictSchema){if(!r)return;e=`strict mode: ${e}`;if(r===true)throw new Error(e);t.self.logger.warn(e)}o(Dbe,"checkStrictMode");Wt.checkStrictMode=Dbe});var Ro=_(FM=>{"use strict";Object.defineProperty(FM,"__esModule",{value:true});var bs=Pt();var o5t={data:new bs.Name("data"),valCxt:new bs.Name("valCxt"),instancePath:new bs.Name("instancePath"),parentData:new bs.Name("parentData"),parentDataProperty:new bs.Name("parentDataProperty"),rootData:new bs.Name("rootData"),dynamicAnchors:new bs.Name("dynamicAnchors"),vErrors:new bs.Name("vErrors"),errors:new bs.Name("errors"),this:new bs.Name("this"),self:new bs.Name("self"),scope:new bs.Name("scope"),json:new bs.Name("json"),jsonPos:new bs.Name("jsonPos"),jsonLen:new bs.Name("jsonLen"),jsonPart:new bs.Name("jsonPart")};FM.default=o5t});var r6=_(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:true});ws.extendErrors=ws.resetErrorsCount=ws.reportExtraError=ws.reportError=ws.keyword$DataError=ws.keywordError=void 0;var Cr=Pt();var c7=sr();var Us=Ro();ws.keywordError={message:({keyword:t})=>(0,Cr.str)`must pass "${t}" keyword validation`};ws.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,Cr.str)`"${t}" keyword must be ${e} ($data)`:(0,Cr.str)`"${t}" keyword is invalid ($data)`};function u5t(t,e=ws.keywordError,r,n){const{it:i}=t;const{gen:s,compositeRule:a,allErrors:u}=i;const l=Lbe(t,e,r);if(n!==null&&n!==void 0?n:a||u){kbe(s,l)}else{$be(i,(0,Cr._)`[${l}]`)}}o(u5t,"reportError");ws.reportError=u5t;function l5t(t,e=ws.keywordError,r){const{it:n}=t;const{gen:i,compositeRule:s,allErrors:a}=n;const u=Lbe(t,e,r);kbe(i,u);if(!(s||a)){$be(n,Us.default.vErrors)}}o(l5t,"reportExtraError");ws.reportExtraError=l5t;function c5t(t,e){t.assign(Us.default.errors,e);t.if((0,Cr._)`${Us.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,Cr._)`${Us.default.vErrors}.length`,e),()=>t.assign(Us.default.vErrors,null)))}o(c5t,"resetErrorsCount");ws.resetErrorsCount=c5t;function d5t({gen:t,keyword:e,schemaValue:r,data:n,errsCount:i,it:s}){if(i===void 0)throw new Error("ajv implementation error");const a=t.name("err");t.forRange("i",i,Us.default.errors,u=>{t.const(a,(0,Cr._)`${Us.default.vErrors}[${u}]`);t.if((0,Cr._)`${a}.instancePath === undefined`,()=>t.assign((0,Cr._)`${a}.instancePath`,(0,Cr.strConcat)(Us.default.instancePath,s.errorPath)));t.assign((0,Cr._)`${a}.schemaPath`,(0,Cr.str)`${s.errSchemaPath}/${e}`);if(s.opts.verbose){t.assign((0,Cr._)`${a}.schema`,r);t.assign((0,Cr._)`${a}.data`,n)}})}o(d5t,"extendErrors");ws.extendErrors=d5t;function kbe(t,e){const r=t.const("err",e);t.if((0,Cr._)`${Us.default.vErrors} === null`,()=>t.assign(Us.default.vErrors,(0,Cr._)`[${r}]`),(0,Cr._)`${Us.default.vErrors}.push(${r})`);t.code((0,Cr._)`${Us.default.errors}++`)}o(kbe,"addError");function $be(t,e){const{gen:r,validateName:n,schemaEnv:i}=t;if(i.$async){r.throw((0,Cr._)`new ${t.ValidationError}(${e})`)}else{r.assign((0,Cr._)`${n}.errors`,e);r.return(false)}}o($be,"returnErrors");var pm={keyword:new Cr.Name("keyword"),schemaPath:new Cr.Name("schemaPath"),params:new Cr.Name("params"),propertyName:new Cr.Name("propertyName"),message:new Cr.Name("message"),schema:new Cr.Name("schema"),parentSchema:new Cr.Name("parentSchema")};function Lbe(t,e,r){const{createErrors:n}=t.it;if(n===false)return(0,Cr._)`{}`;return p5t(t,e,r)}o(Lbe,"errorObjectCode");function p5t(t,e,r={}){const{gen:n,it:i}=t;const s=[f5t(i,r),h5t(t,r)];m5t(t,e,s);return n.object(...s)}o(p5t,"errorObject");function f5t({errorPath:t},{instancePath:e}){const r=e?(0,Cr.str)`${t}${(0,c7.getErrorPath)(e,c7.Type.Str)}`:t;return[Us.default.instancePath,(0,Cr.strConcat)(Us.default.instancePath,r)]}o(f5t,"errorInstancePath");function h5t({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:n}){let i=n?e:(0,Cr.str)`${e}/${t}`;if(r){i=(0,Cr.str)`${i}${(0,c7.getErrorPath)(r,c7.Type.Str)}`}return[pm.schemaPath,i]}o(h5t,"errorSchemaPath");function m5t(t,{params:e,message:r},n){const{keyword:i,data:s,schemaValue:a,it:u}=t;const{opts:l,propertyName:c,topSchemaRef:d,schemaPath:p}=u;n.push([pm.keyword,i],[pm.params,typeof e=="function"?e(t):e||(0,Cr._)`{}`]);if(l.messages){n.push([pm.message,typeof r=="function"?r(t):r])}if(l.verbose){n.push([pm.schema,a],[pm.parentSchema,(0,Cr._)`${d}${p}`],[Us.default.data,s])}if(c)n.push([pm.propertyName,c])}o(m5t,"extraErrorProps")});var jbe=_(qg=>{"use strict";Object.defineProperty(qg,"__esModule",{value:true});qg.boolOrEmptySchema=qg.topBoolOrEmptySchema=void 0;var g5t=r6();var y5t=Pt();var v5t=Ro();var _5t={message:"boolean schema is false"};function E5t(t){const{gen:e,schema:r,validateName:n}=t;if(r===false){qbe(t,false)}else if(typeof r=="object"&&r.$async===true){e.return(v5t.default.data)}else{e.assign((0,y5t._)`${n}.errors`,null);e.return(true)}}o(E5t,"topBoolOrEmptySchema");qg.topBoolOrEmptySchema=E5t;function b5t(t,e){const{gen:r,schema:n}=t;if(n===false){r.var(e,false);qbe(t)}else{r.var(e,true)}}o(b5t,"boolOrEmptySchema");qg.boolOrEmptySchema=b5t;function qbe(t,e){const{gen:r,data:n}=t;const i={gen:r,keyword:"false schema",data:n,schema:false,schemaCode:false,schemaValue:false,params:{},it:t};(0,g5t.reportError)(i,_5t,void 0,e)}o(qbe,"falseSchemaError")});var BM=_(jg=>{"use strict";Object.defineProperty(jg,"__esModule",{value:true});jg.getRules=jg.isJSONType=void 0;var w5t=["string","number","integer","boolean","null","object","array"];var S5t=new Set(w5t);function T5t(t){return typeof t=="string"&&S5t.has(t)}o(T5t,"isJSONType");jg.isJSONType=T5t;function A5t(){const t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:true,boolean:true,null:true},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}o(A5t,"getRules");jg.getRules=A5t});var MM=_(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:true});jp.shouldUseRule=jp.shouldUseGroup=jp.schemaHasRulesForType=void 0;function x5t({schema:t,self:e},r){const n=e.RULES.types[r];return n&&n!==true&&Ube(t,n)}o(x5t,"schemaHasRulesForType");jp.schemaHasRulesForType=x5t;function Ube(t,e){return e.rules.some(r=>Fbe(t,r))}o(Ube,"shouldUseGroup");jp.shouldUseGroup=Ube;function Fbe(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.implements)===null||r===void 0?void 0:r.some(n=>t[n]!==void 0))}o(Fbe,"shouldUseRule");jp.shouldUseRule=Fbe});var i6=_(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:true});ts.reportTypeError=ts.checkDataTypes=ts.checkDataType=ts.coerceAndCheckDataType=ts.getJSONTypes=ts.getSchemaTypes=ts.DataType=void 0;var C5t=BM();var R5t=MM();var O5t=r6();var Lt=Pt();var Bbe=sr();var n6;(function(t){t[t["Correct"]=0]="Correct";t[t["Wrong"]=1]="Wrong"})(n6=ts.DataType||(ts.DataType={}));function N5t(t){const e=Mbe(t.type);const r=e.includes("null");if(r){if(t.nullable===false)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0){throw new Error('"nullable" cannot be used without "type"')}if(t.nullable===true)e.push("null")}return e}o(N5t,"getSchemaTypes");ts.getSchemaTypes=N5t;function Mbe(t){const e=Array.isArray(t)?t:t?[t]:[];if(e.every(C5t.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}o(Mbe,"getJSONTypes");ts.getJSONTypes=Mbe;function I5t(t,e){const{gen:r,data:n,opts:i}=t;const s=P5t(e,i.coerceTypes);const a=e.length>0&&!(s.length===0&&e.length===1&&(0,R5t.schemaHasRulesForType)(t,e[0]));if(a){const u=HM(e,n,i.strictNumbers,n6.Wrong);r.if(u,()=>{if(s.length)D5t(t,e,s);else zM(t)})}return a}o(I5t,"coerceAndCheckDataType");ts.coerceAndCheckDataType=I5t;var Vbe=new Set(["string","number","integer","boolean","null"]);function P5t(t,e){return e?t.filter(r=>Vbe.has(r)||e==="array"&&r==="array"):[]}o(P5t,"coerceToTypes");function D5t(t,e,r){const{gen:n,data:i,opts:s}=t;const a=n.let("dataType",(0,Lt._)`typeof ${i}`);const u=n.let("coerced",(0,Lt._)`undefined`);if(s.coerceTypes==="array"){n.if((0,Lt._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,Lt._)`${i}[0]`).assign(a,(0,Lt._)`typeof ${i}`).if(HM(e,i,s.strictNumbers),()=>n.assign(u,i)))}n.if((0,Lt._)`${u} !== undefined`);for(const c of r){if(Vbe.has(c)||c==="array"&&s.coerceTypes==="array"){l(c)}}n.else();zM(t);n.endIf();n.if((0,Lt._)`${u} !== undefined`,()=>{n.assign(i,u);k5t(t,u)});function l(c){switch(c){case"string":n.elseIf((0,Lt._)`${a} == "number" || ${a} == "boolean"`).assign(u,(0,Lt._)`"" + ${i}`).elseIf((0,Lt._)`${i} === null`).assign(u,(0,Lt._)`""`);return;case"number":n.elseIf((0,Lt._)`${a} == "boolean" || ${i} === null
395
+ `}).join("")}getCanonicalRequest(e,r,n,i,s,a){return[e,r,n,i,s,a||"UNSIGNED-PAYLOAD"].join("\n")}getCanonicalQueryParams(e){return(0,Rp.objectEntries)(e).map(([r,n])=>[(0,Rp.encodeURI)(r,true),(0,Rp.encodeURI)(n,true)]).sort((r,n)=>r[0]<n[0]?-1:1).map(([r,n])=>`${r}=${n}`).join("&")}getResourcePath(e,r,n){if(e){return"/"+(n||"")}else if(n){return`/${r}/${n}`}else{return`/${r}`}}parseExpires(e,r=new Date){const n=new Date(e).valueOf();if(isNaN(n)){throw new Error(JEe.ExceptionMessages.EXPIRATION_DATE_INVALID)}if(n<r.valueOf()){throw new Error(JEe.ExceptionMessages.EXPIRATION_DATE_PAST)}return Math.floor(n/1e3)}parseAccessibleAt(e){const r=new Date(e||new Date).valueOf();if(isNaN(r)){throw new Error($E.ACCESSIBLE_DATE_INVALID)}return Math.floor(r/1e3)}};Ni.URLSigner=UB;var LE=class extends Error{static{o(this,"SigningError")}constructor(){super(...arguments);this.name="SigningError"}};Ni.SigningError=LE});var qE=_(_s=>{"use strict";var ZEe=_s&&_s.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e==="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r};var DT=_s&&_s.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)};var Op;Object.defineProperty(_s,"__esModule",{value:true});_s.CRC32C_EXTENSION_TABLE=_s.CRC32C_EXTENSIONS=_s.CRC32C_EXCEPTION_MESSAGES=_s.CRC32C_DEFAULT_VALIDATOR_GENERATOR=_s.CRC32C=void 0;var H6t=require("fs");var BB=[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];_s.CRC32C_EXTENSIONS=BB;var e6e=new Int32Array(BB);_s.CRC32C_EXTENSION_TABLE=e6e;var z6t=o(()=>new Og,"CRC32C_DEFAULT_VALIDATOR_GENERATOR");_s.CRC32C_DEFAULT_VALIDATOR_GENERATOR=z6t;var kT={INVALID_INIT_BASE64_RANGE:t=>`base64-encoded data expected to equal 4 bytes, not ${t}`,INVALID_INIT_BUFFER_LENGTH:t=>`Buffer expected to equal 4 bytes, not ${t}`,INVALID_INIT_INTEGER:t=>`Number expected to be a safe, unsigned 32-bit integer, not ${t}`};_s.CRC32C_EXCEPTION_MESSAGES=kT;var Og=class t{static{o(this,"CRC32C")}constructor(e=0){Op.set(this,0);ZEe(this,Op,e,"f")}update(e){let r=DT(this,Op,"f")^4294967295;for(const n of e){const i=t.CRC32C_EXTENSION_TABLE[(n^r)&255];r=i^r>>>8}ZEe(this,Op,r^4294967295,"f")}validate(e){if(typeof e==="number"){return e===DT(this,Op,"f")}else if(typeof e==="string"){return e===this.toString()}else if(Buffer.isBuffer(e)){return Buffer.compare(e,this.toBuffer())===0}else{return e.toString()===this.toString()}}toBuffer(){const e=Buffer.alloc(4);e.writeInt32BE(DT(this,Op,"f"));return e}toJSON(){return this.toString()}toString(){return this.toBuffer().toString("base64")}valueOf(){return DT(this,Op,"f")}static fromBuffer(e){let r;if(Buffer.isBuffer(e)){r=e}else if("buffer"in e){r=Buffer.from(e.buffer)}else{r=Buffer.from(e)}if(r.byteLength!==4){throw new RangeError(kT.INVALID_INIT_BUFFER_LENGTH(r.byteLength))}return new t(r.readInt32BE())}static async fromFile(e){const r=new t;await new Promise((n,i)=>{(0,H6t.createReadStream)(e).on("data",s=>r.update(s)).on("end",n).on("error",i)});return r}static fromString(e){const r=Buffer.from(e,"base64");if(r.byteLength!==4){throw new RangeError(kT.INVALID_INIT_BASE64_RANGE(r.byteLength))}return this.fromBuffer(r)}static fromNumber(e){if(!Number.isSafeInteger(e)||e>2**32||e<-(2**32)){throw new RangeError(kT.INVALID_INIT_INTEGER(e))}return new t(e)}static from(e){if(typeof e==="number"){return this.fromNumber(e)}else if(typeof e==="string"){return this.fromString(e)}else if("byteLength"in e){return this.fromBuffer(e)}else{return this.fromString(e.toString())}}};_s.CRC32C=Og;Op=new WeakMap;Og.CRC32C_EXTENSIONS=BB;Og.CRC32C_EXTENSION_TABLE=e6e});var HB=_(Ip=>{"use strict";var MB=Ip&&Ip.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e==="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r};var bl=Ip&&Ip.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)};var im;var Np;var $T;Object.defineProperty(Ip,"__esModule",{value:true});Ip.HashStreamValidator=void 0;var G6t=require("crypto");var K6t=require("stream");var Y6t=qE();var t6e=jE();var VB=class extends K6t.Transform{static{o(this,"HashStreamValidator")}constructor(e={}){super();this.updateHashesOnly=false;im.set(this,void 0);Np.set(this,void 0);$T.set(this,"");this.crc32cEnabled=!!e.crc32c;this.md5Enabled=!!e.md5;this.updateHashesOnly=!!e.updateHashesOnly;this.crc32cExpected=e.crc32cExpected;this.md5Expected=e.md5Expected;if(this.crc32cEnabled){const r=e.crc32cGenerator||Y6t.CRC32C_DEFAULT_VALIDATOR_GENERATOR;MB(this,im,r(),"f")}if(this.md5Enabled){MB(this,Np,(0,G6t.createHash)("md5"),"f")}}_flush(e){if(bl(this,Np,"f")){MB(this,$T,bl(this,Np,"f").digest("base64"),"f")}if(this.updateHashesOnly){e();return}let r=this.crc32cEnabled||this.md5Enabled;if(this.crc32cEnabled&&this.crc32cExpected){r=!this.test("crc32c",this.crc32cExpected)}if(this.md5Enabled&&this.md5Expected){r=!this.test("md5",this.md5Expected)}if(r){const n=new t6e.RequestError(t6e.FileExceptionMessages.DOWNLOAD_MISMATCH);n.code="CONTENT_DOWNLOAD_MISMATCH";e(n)}else{e()}}_transform(e,r,n){this.push(e,r);try{if(bl(this,im,"f"))bl(this,im,"f").update(e);if(bl(this,Np,"f"))bl(this,Np,"f").update(e);n()}catch(i){n(i)}}test(e,r){const n=Buffer.isBuffer(r)?r.toString("base64"):r;if(e==="crc32c"&&bl(this,im,"f")){return bl(this,im,"f").validate(n)}if(e==="md5"&&bl(this,Np,"f")){return bl(this,$T,"f")===n}return false}};Ip.HashStreamValidator=VB;im=new WeakMap,Np=new WeakMap,$T=new WeakMap});var jE=_(Bn=>{"use strict";var W6t=Bn&&Bn.__createBinding||(Object.create?function(t,e,r,n){if(n===void 0)n=r;var i=Object.getOwnPropertyDescriptor(e,r);if(!i||("get"in i?!e.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return e[r]}}}Object.defineProperty(t,n,i)}:function(t,e,r,n){if(n===void 0)n=r;t[n]=e[r]});var J6t=Bn&&Bn.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:true,value:e})}:function(t,e){t["default"]=e});var qT=Bn&&Bn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null){for(var r in t)if(r!=="default"&&Object.prototype.hasOwnProperty.call(t,r))W6t(e,t,r)}J6t(e,t);return e};var Q6t=Bn&&Bn.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)};var jT=Bn&&Bn.__importDefault||function(t){return t&&t.__esModule?t:{"default":t}};var GB;var o6e;Object.defineProperty(Bn,"__esModule",{value:true});Bn.File=Bn.FileExceptionMessages=Bn.RequestError=Bn.STORAGE_POST_POLICY_BASE_URL=Bn.ActionToHTTPMethod=void 0;var Pp=Tp();var X6t=_l();var Z6t=jT(SEe());var ebt=qT(require("crypto"));var r6e=qT(require("fs"));var tbt=jT(IEe());var n6e=qT(YEe());var UE=require("stream");var i6e=qT(require("zlib"));var So=Rg();var FE=UT();var rbt=DB();var zB=FB();var Bc=tm();var nbt=jT(yB());var Mc=yl();var s6e=HB();var ibt=jT(CE());var KB;(function(t){t["read"]="GET";t["write"]="PUT";t["delete"]="DELETE";t["resumable"]="POST"})(KB||(Bn.ActionToHTTPMethod=KB={}));Bn.STORAGE_POST_POLICY_BASE_URL="https://storage.googleapis.com";var sbt=/^gs:\/\/([a-z0-9_.-]+)\/(.+)$/;var BE=class extends Error{static{o(this,"RequestError")}};Bn.RequestError=BE;var a6e=7*24*60*60;var To;(function(t){t["EXPIRATION_TIME_NA"]="An expiration time is not available.";t["DESTINATION_NO_NAME"]="Destination file should have a name.";t["INVALID_VALIDATION_FILE_RANGE"]="Cannot use validation with file ranges (start/end).";t["MD5_NOT_AVAILABLE"]="MD5 verification was specified, but is not available for the requested object. MD5 is not available for composite objects.";t["EQUALS_CONDITION_TWO_ELEMENTS"]="Equals condition must be an array of 2 elements.";t["STARTS_WITH_TWO_ELEMENTS"]="StartsWith condition must be an array of 2 elements.";t["CONTENT_LENGTH_RANGE_MIN_MAX"]="ContentLengthRange must have numeric min & max fields.";t["DOWNLOAD_MISMATCH"]="The downloaded data did not match the data from the server. To be sure the content is the same, you should download the file again.";t["UPLOAD_MISMATCH_DELETE_FAIL"]="The uploaded data did not match the data from the server.\n As a precaution, we attempted to delete the file, but it was not successful.\n To be sure the content is the same, you should try removing the file manually,\n then uploading the file again.\n \n\nThe delete attempt failed with this message:\n\n ";t["UPLOAD_MISMATCH"]="The uploaded data did not match the data from the server.\n As a precaution, the file has been deleted.\n To be sure the content is the same, you should try uploading the file again."})(To||(Bn.FileExceptionMessages=To={}));var LT=class t extends Pp.ServiceObject{static{o(this,"File")}constructor(e,r,n={}){var i,s;const a={};let u;if(n.generation!==null){if(typeof n.generation==="string"){u=Number(n.generation)}else{u=n.generation}if(!isNaN(u)){a.generation=u}}Object.assign(a,n.preconditionOpts);const l=n.userProject||e.userProject;if(typeof l==="string"){a.userProject=l}const c={delete:{reqOpts:{qs:a}},exists:{reqOpts:{qs:a}},get:{reqOpts:{qs:a}},getMetadata:{reqOpts:{qs:a}},setMetadata:{reqOpts:{qs:a}}};super({parent:e,baseUrl:"/o",id:encodeURIComponent(r),methods:c});GB.add(this);this.bucket=e;this.storage=e.parent;if(n.generation!==null){let d;if(typeof n.generation==="string"){d=Number(n.generation)}else{d=n.generation}if(!isNaN(d)){this.generation=d}}this.kmsKeyName=n.kmsKeyName;this.userProject=l;this.name=r;if(n.encryptionKey){this.setEncryptionKey(n.encryptionKey)}this.acl=new rbt.Acl({request:this.request.bind(this),pathPrefix:"/acl"});this.crc32cGenerator=n.crc32cGenerator||this.bucket.crc32cGenerator;this.instanceRetryValue=(s=(i=this.storage)===null||i===void 0?void 0:i.retryOptions)===null||s===void 0?void 0:s.autoRetry;this.instancePreconditionOpts=n===null||n===void 0?void 0:n.preconditionOpts}get cloudStorageURI(){const e=this.bucket.cloudStorageURI;e.pathname=this.name;return e}shouldRetryBasedOnPreconditionAndIdempotencyStrat(e){var r;return!((e===null||e===void 0?void 0:e.ifGenerationMatch)===void 0&&((r=this.instancePreconditionOpts)===null||r===void 0?void 0:r.ifGenerationMatch)===void 0&&this.storage.retryOptions.idempotencyStrategy===So.IdempotencyStrategy.RetryConditional||this.storage.retryOptions.idempotencyStrategy===So.IdempotencyStrategy.RetryNever)}copy(e,r,n){var i,s;const a=new Error(To.DESTINATION_NO_NAME);if(!e){throw a}let u={};if(typeof r==="function"){n=r}else if(r){u={...r}}n=n||Pp.util.noop;let l;let c;let d;if(typeof e==="string"){const h=sbt.exec(e);if(h!==null&&h.length===3){l=this.storage.bucket(h[1]);c=h[2]}else{l=this.bucket;c=e}}else if(e instanceof FE.Bucket){l=e;c=this.name}else if(e instanceof t){l=e.bucket;c=e.name;d=e}else{throw a}const p={};if(this.generation!==void 0){p.sourceGeneration=this.generation}if(u.token!==void 0){p.rewriteToken=u.token}if(u.userProject!==void 0){p.userProject=u.userProject;delete u.userProject}if(u.predefinedAcl!==void 0){p.destinationPredefinedAcl=u.predefinedAcl;delete u.predefinedAcl}d=d||l.file(c);const f={};if(this.encryptionKey!==void 0){f["x-goog-copy-source-encryption-algorithm"]="AES256";f["x-goog-copy-source-encryption-key"]=this.encryptionKeyBase64;f["x-goog-copy-source-encryption-key-sha256"]=this.encryptionKeyHash}if(d.encryptionKey!==void 0){this.setEncryptionKey(d.encryptionKey)}else if(u.destinationKmsKeyName!==void 0){p.destinationKmsKeyName=u.destinationKmsKeyName;delete u.destinationKmsKeyName}else if(d.kmsKeyName!==void 0){p.destinationKmsKeyName=d.kmsKeyName}if(p.destinationKmsKeyName){this.kmsKeyName=p.destinationKmsKeyName;const h=this.interceptors.indexOf(this.encryptionKeyInterceptor);if(h>-1){this.interceptors.splice(h,1)}}if(!this.shouldRetryBasedOnPreconditionAndIdempotencyStrat(u===null||u===void 0?void 0:u.preconditionOpts)){this.storage.retryOptions.autoRetry=false}if(((i=u.preconditionOpts)===null||i===void 0?void 0:i.ifGenerationMatch)!==void 0){p.ifGenerationMatch=(s=u.preconditionOpts)===null||s===void 0?void 0:s.ifGenerationMatch;delete u.preconditionOpts}this.request({method:"POST",uri:`/rewriteTo/b/${l.name}/o/${encodeURIComponent(d.name)}`,qs:p,json:u,headers:f},(h,m)=>{this.storage.retryOptions.autoRetry=this.instanceRetryValue;if(h){n(h,null,m);return}if(m.rewriteToken){const g={token:m.rewriteToken};if(p.userProject){g.userProject=p.userProject}if(p.destinationKmsKeyName){g.destinationKmsKeyName=p.destinationKmsKeyName}this.copy(d,g,n);return}n(null,d,m)})}createReadStream(e={}){e=Object.assign({decompress:true},e);const r=typeof e.start==="number"||typeof e.end==="number";const n=e.end<0;let i=void 0;let s=void 0;const a=new Mc.PassThroughShim;let u=true;let l=false;if(typeof e.validation==="string"){const h=e.validation.toLowerCase().trim();u=h==="crc32c";l=h==="md5"}else if(e.validation===false){u=false}const c=!r&&(u||l);if(r){if(typeof e.validation==="string"||e.validation===true){throw new Error(To.INVALID_VALIDATION_FILE_RANGE)}u=false;l=false}const d=o(h=>{if(h){if(s===null||s===void 0?void 0:s.agent){s.agent.destroy()}a.destroy(h)}},"onComplete");const p=o((h,m,g)=>{if(h){this.getBufferFromReadable(g).then(S=>{h.message=S.toString("utf8");a.destroy(h)});return}s=g.request;const y=g.toJSON().headers;const v=y["content-encoding"]==="gzip";const w={};const E=y["x-goog-stored-content-encoding"]==="gzip"&&v||y["x-goog-stored-content-encoding"]==="identity";const b=[];if(c){if(typeof y["x-goog-hash"]==="string"){y["x-goog-hash"].split(",").forEach(S=>{const T=S.indexOf("=");const x=S.substring(0,T);const O=S.substring(T+1);w[x]=O})}i=new s6e.HashStreamValidator({crc32c:u,md5:l,crc32cGenerator:this.crc32cGenerator,crc32cExpected:w.crc32c,md5Expected:w.md5})}if(l&&!w.md5){const S=new BE(To.MD5_NOT_AVAILABLE);S.code="MD5_NOT_AVAILABLE";a.destroy(S);return}if(E&&c&&i){b.push(i)}if(v&&e.decompress){b.push(i6e.createGunzip())}(0,UE.pipeline)(g,...b,a,d)},"onResponse");const f=o(()=>{const h={alt:"media"};if(this.generation){h.generation=this.generation}if(e.userProject){h.userProject=e.userProject}const m={"Accept-Encoding":"gzip","Cache-Control":"no-store"};if(r){const y=typeof e.start==="number"?e.start:"0";const v=typeof e.end==="number"?e.end:"";m.Range=`bytes=${n?v:`${y}-${v}`}`}const g={uri:"",headers:m,qs:h};if(e[Bc.GCCL_GCS_CMD_KEY]){g[Bc.GCCL_GCS_CMD_KEY]=e[Bc.GCCL_GCS_CMD_KEY]}this.requestStream(g).on("error",y=>{a.destroy(y)}).on("response",y=>{a.emit("response",y);Pp.util.handleResp(null,y,null,p)}).resume()},"makeRequest");a.on("reading",f);return a}createResumableUpload(e,r){var n,i;const s=typeof e==="object"?e:{};r=typeof e==="function"?e:r;const a=this.storage.retryOptions;if(((n=s===null||s===void 0?void 0:s.preconditionOpts)===null||n===void 0?void 0:n.ifGenerationMatch)===void 0&&((i=this.instancePreconditionOpts)===null||i===void 0?void 0:i.ifGenerationMatch)===void 0&&this.storage.retryOptions.idempotencyStrategy===So.IdempotencyStrategy.RetryConditional||this.storage.retryOptions.idempotencyStrategy===So.IdempotencyStrategy.RetryNever){a.autoRetry=false}n6e.createURI({authClient:this.storage.authClient,apiEndpoint:this.storage.apiEndpoint,bucket:this.bucket.name,customRequestOptions:this.getRequestInterceptors().reduce((u,l)=>l(u),{}),file:this.name,generation:this.generation,key:this.encryptionKey,kmsKeyName:this.kmsKeyName,metadata:s.metadata,offset:s.offset,origin:s.origin,predefinedAcl:s.predefinedAcl,private:s.private,public:s.public,userProject:s.userProject||this.userProject,retryOptions:a,params:(s===null||s===void 0?void 0:s.preconditionOpts)||this.instancePreconditionOpts,[Bc.GCCL_GCS_CMD_KEY]:s[Bc.GCCL_GCS_CMD_KEY]},r);this.storage.retryOptions.autoRetry=this.instanceRetryValue}createWriteStream(e={}){var r;(r=e.metadata)!==null&&r!==void 0?r:e.metadata={};if(e.contentType){e.metadata.contentType=e.contentType}if(!e.metadata.contentType||e.metadata.contentType==="auto"){const f=tbt.default.getType(this.name);if(f){e.metadata.contentType=f}}let n=e.gzip;if(n==="auto"){n=(0,Z6t.default)(e.metadata.contentType||"")}if(n){e.metadata.contentEncoding="gzip"}let i=true;let s=false;if(typeof e.validation==="string"){e.validation=e.validation.toLowerCase();i=e.validation==="crc32c";s=e.validation==="md5"}else if(e.validation===false){i=false}let a=o(f=>{u.destroy(f||void 0)},"pipelineCallback");const u=new UE.Writable({final(f){a=f;l.end()},write(f,h,m){l.write(f,h,m)}});const l=new Mc.PassThroughShim;const c=new s6e.HashStreamValidator({crc32c:i,md5:s,crc32cGenerator:this.crc32cGenerator,updateHashesOnly:true});const d=(0,nbt.default)();let p=false;l.on("reading",()=>u.emit("reading"));l.on("writing",()=>u.emit("writing"));d.on("progress",f=>u.emit("progress",f));d.on("response",f=>u.emit("response",f));d.once("metadata",()=>{p=true});u.on("writing",()=>{if(e.resumable===false){this.startSimpleUpload_(d,e)}else{this.startResumableUpload_(d,e)}(0,UE.pipeline)(l,n?i6e.createGzip():new UE.PassThrough,c,d,async f=>{if(f){return a(f)}if(!p){try{await new Promise((h,m)=>{d.once("metadata",h);d.once("error",m)})}catch(h){return a(h)}}try{await Q6t(this,GB,"m",o6e).call(this,c,{crc32c:i,md5:s});a()}catch(h){a(h)}})});return u}delete(e,r){const n=typeof e==="object"?e:{};r=typeof e==="function"?e:r;this.disableAutoRetryConditionallyIdempotent_(this.methods.delete,FE.AvailableServiceObjectMethods.delete,n);super.delete(n).then(i=>r(null,...i)).catch(r).finally(()=>{this.storage.retryOptions.autoRetry=this.instanceRetryValue})}download(e,r){let n;if(typeof e==="function"){r=e;n={}}else{n=e}let i=false;const s=o((...c)=>{if(!i)r(...c);i=true},"callback");const a=n.destination;delete n.destination;const u=this.createReadStream(n);let l=false;if(a){u.on("error",s).once("data",c=>{l=true;const d=r6e.createWriteStream(a);d.write(c);u.pipe(d).on("error",s).on("finish",s)}).on("end",()=>{if(!l){const c=Buffer.alloc(0);try{r6e.writeFileSync(a,c);s(null,c)}catch(d){s(d,c)}}})}else{this.getBufferFromReadable(u).then(c=>s===null||s===void 0?void 0:s(null,c)).catch(s)}}setEncryptionKey(e){this.encryptionKey=e;this.encryptionKeyBase64=Buffer.from(e).toString("base64");this.encryptionKeyHash=ebt.createHash("sha256").update(this.encryptionKeyBase64,"base64").digest("base64");this.encryptionKeyInterceptor={request:r=>{r.headers=r.headers||{};r.headers["x-goog-encryption-algorithm"]="AES256";r.headers["x-goog-encryption-key"]=this.encryptionKeyBase64;r.headers["x-goog-encryption-key-sha256"]=this.encryptionKeyHash;return r}};this.interceptors.push(this.encryptionKeyInterceptor);return this}getExpirationDate(e){this.getMetadata((r,n,i)=>{if(r){e(r,null,i);return}if(!n.retentionExpirationTime){const s=new Error(To.EXPIRATION_TIME_NA);e(s,null,i);return}e(null,new Date(n.retentionExpirationTime),i)})}generateSignedPostPolicyV2(e,r){const n=(0,Mc.normalize)(e,r);let i=n.options;const s=n.callback;const a=new Date(i.expires);if(isNaN(a.getTime())){throw new Error(So.ExceptionMessages.EXPIRATION_DATE_INVALID)}if(a.valueOf()<Date.now()){throw new Error(So.ExceptionMessages.EXPIRATION_DATE_PAST)}i=Object.assign({},i);const u=[["eq","$key",this.name],{bucket:this.bucket.name}];if(Array.isArray(i.equals)){if(!Array.isArray(i.equals[0])){i.equals=[i.equals]}i.equals.forEach(p=>{if(!Array.isArray(p)||p.length!==2){throw new Error(To.EQUALS_CONDITION_TWO_ELEMENTS)}u.push(["eq",p[0],p[1]])})}if(Array.isArray(i.startsWith)){if(!Array.isArray(i.startsWith[0])){i.startsWith=[i.startsWith]}i.startsWith.forEach(p=>{if(!Array.isArray(p)||p.length!==2){throw new Error(To.STARTS_WITH_TWO_ELEMENTS)}u.push(["starts-with",p[0],p[1]])})}if(i.acl){u.push({acl:i.acl})}if(i.successRedirect){u.push({success_action_redirect:i.successRedirect})}if(i.successStatus){u.push({success_action_status:i.successStatus})}if(i.contentLengthRange){const p=i.contentLengthRange.min;const f=i.contentLengthRange.max;if(typeof p!=="number"||typeof f!=="number"){throw new Error(To.CONTENT_LENGTH_RANGE_MIN_MAX)}u.push(["content-length-range",p,f])}const l={expiration:a.toISOString(),conditions:u};const c=JSON.stringify(l);const d=Buffer.from(c).toString("base64");this.storage.authClient.sign(d).then(p=>{s(null,{string:c,base64:d,signature:p})},p=>{s(new zB.SigningError(p.message))})}generateSignedPostPolicyV4(e,r){const n=(0,Mc.normalize)(e,r);let i=n.options;const s=n.callback;const a=new Date(i.expires);if(isNaN(a.getTime())){throw new Error(So.ExceptionMessages.EXPIRATION_DATE_INVALID)}if(a.valueOf()<Date.now()){throw new Error(So.ExceptionMessages.EXPIRATION_DATE_PAST)}if(a.valueOf()-Date.now()>a6e*1e3){throw new Error(`Max allowed expiration is seven days (${a6e} seconds).`)}i=Object.assign({},i);let u=Object.assign({},i.fields);const l=new Date;const c=(0,Mc.formatAsUTCISO)(l,true);const d=(0,Mc.formatAsUTCISO)(l);const p=o(async()=>{const{client_email:f}=await this.storage.authClient.getCredentials();const h=`${f}/${d}/auto/storage/goog4_request`;u={...u,bucket:this.bucket.name,key:this.name,"x-goog-date":c,"x-goog-credential":h,"x-goog-algorithm":"GOOG4-RSA-SHA256"};const m=i.conditions||[];Object.entries(u).forEach(([E,b])=>{if(!E.startsWith("x-ignore-")){m.push({[E]:b})}});delete u.bucket;const g=(0,Mc.formatAsUTCISO)(a,true,"-",":");const y={conditions:m,expiration:g};const v=(0,Mc.unicodeJSONStringify)(y);const w=Buffer.from(v).toString("base64");try{const E=await this.storage.authClient.sign(w);const b=Buffer.from(E,"base64").toString("hex");u["policy"]=w;u["x-goog-signature"]=b;let S;if(i.virtualHostedStyle){S=`https://${this.bucket.name}.storage.googleapis.com/`}else if(i.bucketBoundHostname){S=`${i.bucketBoundHostname}/`}else{S=`${Bn.STORAGE_POST_POLICY_BASE_URL}/${this.bucket.name}/`}return{url:S,fields:u}}catch(E){throw new zB.SigningError(E.message)}},"sign");p().then(f=>s(null,f),s)}getSignedUrl(e,r){const n=KB[e.action];const i=(0,Mc.objectKeyToLowercase)(e.extensionHeaders||{});if(e.action==="resumable"){i["x-goog-resumable"]="start"}const s=Object.assign({},e.queryParams);if(typeof e.responseType==="string"){s["response-content-type"]=e.responseType}if(typeof e.promptSaveAs==="string"){s["response-content-disposition"]='attachment; filename="'+e.promptSaveAs+'"'}if(typeof e.responseDisposition==="string"){s["response-content-disposition"]=e.responseDisposition}if(this.generation){s["generation"]=this.generation.toString()}const a={method:n,expires:e.expires,accessibleAt:e.accessibleAt,extensionHeaders:i,queryParams:s,contentMd5:e.contentMd5,contentType:e.contentType};if(e.cname){a.cname=e.cname}if(e.version){a.version=e.version}if(e.virtualHostedStyle){a.virtualHostedStyle=e.virtualHostedStyle}if(!this.signer){this.signer=new zB.URLSigner(this.storage.authClient,this.bucket,this)}this.signer.getSignedUrl(a).then(u=>r(null,u),r)}isPublic(e){var r;const n=((r=this.storage)===null||r===void 0?void 0:r.interceptors)||[];const i=this.interceptors||[];const s=n.concat(i);const a=s.reduce((u,l)=>{const c=l.request({uri:`${this.storage.apiEndpoint}/${this.bucket.name}/${encodeURIComponent(this.name)}`});Object.assign(u,c.headers);return u},{});Pp.util.makeRequest({method:"GET",uri:`${this.storage.apiEndpoint}/${this.bucket.name}/${encodeURIComponent(this.name)}`,headers:a},{retryOptions:this.storage.retryOptions},u=>{if(u){const l=u;if(l.code===403){e(null,false)}else{e(u)}}else{e(null,true)}})}makePrivate(e,r){var n,i;const s=typeof e==="object"?e:{};r=typeof e==="function"?e:r;const a={predefinedAcl:s.strict?"private":"projectPrivate"};if(((n=s.preconditionOpts)===null||n===void 0?void 0:n.ifMetagenerationMatch)!==void 0){a.ifMetagenerationMatch=(i=s.preconditionOpts)===null||i===void 0?void 0:i.ifMetagenerationMatch;delete s.preconditionOpts}if(s.userProject){a.userProject=s.userProject}const u={...s.metadata,acl:null};this.setMetadata(u,a,r)}makePublic(e){e=e||Pp.util.noop;this.acl.add({entity:"allUsers",role:"READER"},(r,n,i)=>{e(r,i)})}publicUrl(){return`${this.storage.apiEndpoint}/${this.bucket.name}/${encodeURIComponent(this.name)}`}move(e,r,n){const i=typeof r==="object"?r:{};n=typeof r==="function"?r:n;n=n||Pp.util.noop;this.copy(e,i,(s,a,u)=>{if(s){s.message="file#copy failed with an error - "+s.message;n(s,null,u);return}if(this.name!==a.name||this.bucket.name!==a.bucket.name){this.delete(i,(l,c)=>{if(l){l.message="file#delete failed with an error - "+l.message;n(l,a,c);return}n(null,a,u)})}else{n(null,a,u)}})}rename(e,r,n){const i=typeof r==="object"?r:{};n=typeof r==="function"?r:n;n=n||Pp.util.noop;this.move(e,i,n)}request(e,r){return this.parent.request.call(this,e,r)}rotateEncryptionKey(e,r){var n;r=typeof e==="function"?e:r;let i={};if(typeof e==="string"||e instanceof Buffer){i={encryptionKey:e}}else if(typeof e==="object"){i=e}const s=this.bucket.file(this.id,i);const a=((n=i.preconditionOpts)===null||n===void 0?void 0:n.ifGenerationMatch)!==void 0?{preconditionOpts:i.preconditionOpts}:{};this.copy(s,a,r)}save(e,r,n){n=typeof r==="function"?r:n;const i=typeof r==="object"?r:{};let s=this.storage.retryOptions.maxRetries;if(!this.shouldRetryBasedOnPreconditionAndIdempotencyStrat(i===null||i===void 0?void 0:i.preconditionOpts)){s=0}const a=(0,ibt.default)(async u=>{return new Promise((l,c)=>{if(s===0){this.storage.retryOptions.autoRetry=false}const d=this.createWriteStream(i);if(i.onUploadProgress){d.on("progress",i.onUploadProgress)}const p=o(f=>{if(this.storage.retryOptions.autoRetry&&this.storage.retryOptions.retryableErrorFn(f)){return c(f)}return u(f)},"handleError");if(typeof e==="string"||Buffer.isBuffer(e)){d.on("error",p).on("finish",()=>l()).end(e)}else{(0,UE.pipeline)(e,d,f=>{if(f){if(typeof e!=="function"){return u(f)}p(f)}else{l()}})}})},{retries:s,factor:this.storage.retryOptions.retryDelayMultiplier,maxTimeout:this.storage.retryOptions.maxRetryDelay*1e3,maxRetryTime:this.storage.retryOptions.totalTimeout*1e3});if(!n){return a}else{return a.then(()=>{if(n){return n()}}).catch(n)}}setMetadata(e,r,n){const i=typeof r==="object"?r:{};n=typeof r==="function"?r:n;this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,FE.AvailableServiceObjectMethods.setMetadata,i);super.setMetadata(e,i).then(s=>n(null,...s)).catch(n).finally(()=>{this.storage.retryOptions.autoRetry=this.instanceRetryValue})}setStorageClass(e,r,n){n=typeof r==="function"?r:n;const i=typeof r==="object"?r:{};const s={...i,storageClass:e.replace(/-/g,"_").replace(/([a-z])([A-Z])/g,(a,u,l)=>{return u+"_"+l}).toUpperCase()};this.copy(this,s,(a,u,l)=>{if(a){n(a,l);return}this.metadata=u.metadata;n(null,l)})}setUserProject(e){this.bucket.setUserProject.call(this,e)}startResumableUpload_(e,r={}){var n;(n=r.metadata)!==null&&n!==void 0?n:r.metadata={};const i=this.storage.retryOptions;if(!this.shouldRetryBasedOnPreconditionAndIdempotencyStrat(r.preconditionOpts)){i.autoRetry=false}const s=n6e.upload({authClient:this.storage.authClient,apiEndpoint:this.storage.apiEndpoint,bucket:this.bucket.name,customRequestOptions:this.getRequestInterceptors().reduce((a,u)=>u(a),{}),file:this.name,generation:this.generation,key:this.encryptionKey,kmsKeyName:this.kmsKeyName,metadata:r.metadata,offset:r.offset,predefinedAcl:r.predefinedAcl,private:r.private,public:r.public,uri:r.uri,userProject:r.userProject||this.userProject,retryOptions:{...i},params:(r===null||r===void 0?void 0:r.preconditionOpts)||this.instancePreconditionOpts,chunkSize:r===null||r===void 0?void 0:r.chunkSize,highWaterMark:r===null||r===void 0?void 0:r.highWaterMark,[Bc.GCCL_GCS_CMD_KEY]:r[Bc.GCCL_GCS_CMD_KEY]});s.on("response",a=>{e.emit("response",a)}).on("metadata",a=>{this.metadata=a;e.emit("metadata")}).on("finish",()=>{e.emit("complete")}).on("progress",a=>e.emit("progress",a));e.setWritable(s);this.storage.retryOptions.autoRetry=this.instanceRetryValue}startSimpleUpload_(e,r={}){var n;(n=r.metadata)!==null&&n!==void 0?n:r.metadata={};const i=this.storage.apiEndpoint;const s=this.bucket.name;const a=`${i}/upload/storage/v1/b/${s}/o`;const u={qs:{name:this.name},uri:a,[Bc.GCCL_GCS_CMD_KEY]:r[Bc.GCCL_GCS_CMD_KEY]};if(this.generation!==void 0){u.qs.ifGenerationMatch=this.generation}if(this.kmsKeyName!==void 0){u.qs.kmsKeyName=this.kmsKeyName}if(typeof r.timeout==="number"){u.timeout=r.timeout}if(r.userProject||this.userProject){u.qs.userProject=r.userProject||this.userProject}if(r.predefinedAcl){u.qs.predefinedAcl=r.predefinedAcl}else if(r.private){u.qs.predefinedAcl="private"}else if(r.public){u.qs.predefinedAcl="publicRead"}Object.assign(u.qs,this.instancePreconditionOpts,r.preconditionOpts);Pp.util.makeWritableStream(e,{makeAuthenticatedRequest:l=>{this.request(l,(c,d,p)=>{if(c){e.destroy(c);return}this.metadata=d;e.emit("metadata",d);e.emit("response",p);e.emit("complete")})},metadata:r.metadata,request:u})}disableAutoRetryConditionallyIdempotent_(e,r,n){var i,s,a,u;if(typeof e==="object"&&((s=(i=e===null||e===void 0?void 0:e.reqOpts)===null||i===void 0?void 0:i.qs)===null||s===void 0?void 0:s.ifGenerationMatch)===void 0&&(n===null||n===void 0?void 0:n.ifGenerationMatch)===void 0&&r===FE.AvailableServiceObjectMethods.delete&&this.storage.retryOptions.idempotencyStrategy===So.IdempotencyStrategy.RetryConditional||this.storage.retryOptions.idempotencyStrategy===So.IdempotencyStrategy.RetryNever){this.storage.retryOptions.autoRetry=false}if(typeof e==="object"&&((u=(a=e===null||e===void 0?void 0:e.reqOpts)===null||a===void 0?void 0:a.qs)===null||u===void 0?void 0:u.ifMetagenerationMatch)===void 0&&(n===null||n===void 0?void 0:n.ifMetagenerationMatch)===void 0&&r===FE.AvailableServiceObjectMethods.setMetadata&&this.storage.retryOptions.idempotencyStrategy===So.IdempotencyStrategy.RetryConditional||this.storage.retryOptions.idempotencyStrategy===So.IdempotencyStrategy.RetryNever){this.storage.retryOptions.autoRetry=false}}async getBufferFromReadable(e){const r=[];for await(const n of e){r.push(n)}return Buffer.concat(r)}};Bn.File=LT;GB=new WeakSet,o6e=o(async function t(e,r={}){const n=this.metadata;let i=!!(r.crc32c||r.md5);if(r.crc32c&&n.crc32c){i=!e.test("crc32c",n.crc32c)}if(r.md5&&n.md5Hash){i=!e.test("md5",n.md5Hash)}if(i){const s=[];let a="";let u="";try{await this.delete();if(r.md5&&!n.md5Hash){a="MD5_NOT_AVAILABLE";u=To.MD5_NOT_AVAILABLE}else{a="FILE_NO_UPLOAD";u=To.UPLOAD_MISMATCH}}catch(c){const d=c;a="FILE_NO_UPLOAD_DELETE";u=`${To.UPLOAD_MISMATCH_DELETE_FAIL}${d.message}`;s.push(d)}const l=new BE(u);l.code=a;l.errors=s;throw l}return true},"_File_validateIntegrity");(0,X6t.promisifyAll)(LT,{exclude:["cloudStorageURI","publicUrl","request","save","setEncryptionKey","shouldRetryBasedOnPreconditionAndIdempotencyStrat","getBufferFromReadable"]})});var WB=_(Ng=>{"use strict";Object.defineProperty(Ng,"__esModule",{value:true});Ng.Iam=Ng.IAMExceptionMessages=void 0;var abt=_l();var YB=yl();var FT;(function(t){t["POLICY_OBJECT_REQUIRED"]="A policy object is required.";t["PERMISSIONS_REQUIRED"]="Permissions are required."})(FT||(Ng.IAMExceptionMessages=FT={}));var BT=class{static{o(this,"Iam")}constructor(e){this.request_=e.request.bind(e);this.resourceId_="buckets/"+e.getId()}getPolicy(e,r){const{options:n,callback:i}=(0,YB.normalize)(e,r);const s={};if(n.userProject){s.userProject=n.userProject}if(n.requestedPolicyVersion!==null&&n.requestedPolicyVersion!==void 0){s.optionsRequestedPolicyVersion=n.requestedPolicyVersion}this.request_({uri:"/iam",qs:s},i)}setPolicy(e,r,n){if(e===null||typeof e!=="object"){throw new Error(FT.POLICY_OBJECT_REQUIRED)}const{options:i,callback:s}=(0,YB.normalize)(r,n);let a;if(e.etag===void 0){a=0}this.request_({method:"PUT",uri:"/iam",maxRetries:a,json:Object.assign({resourceId:this.resourceId_},e),qs:i},s)}testPermissions(e,r,n){if(!Array.isArray(e)&&typeof e!=="string"){throw new Error(FT.PERMISSIONS_REQUIRED)}const{options:i,callback:s}=(0,YB.normalize)(r,n);const a=Array.isArray(e)?e:[e];const u=Object.assign({permissions:a},i);this.request_({uri:"/iam/testPermissions",qs:u,useQuerystring:true},(l,c)=>{if(l){s(l,null,c);return}const d=Array.isArray(c.permissions)?c.permissions:[];const p=a.reduce((f,h)=>{f[h]=d.indexOf(h)>-1;return f},{});s(null,p,c)})}};Ng.Iam=BT;(0,abt.promisifyAll)(BT)});var JB=_(VT=>{"use strict";Object.defineProperty(VT,"__esModule",{value:true});VT.Notification=void 0;var obt=Tp();var ubt=_l();var MT=class extends obt.ServiceObject{static{o(this,"Notification")}constructor(e,r){const n={};const i={create:true,delete:{reqOpts:{qs:n}},get:{reqOpts:{qs:n}},getMetadata:{reqOpts:{qs:n}},exists:true};super({parent:e,baseUrl:"/notificationConfigs",id:r.toString(),createMethod:e.createNotification.bind(e),methods:i})}};VT.Notification=MT;(0,ubt.promisifyAll)(MT)});var UT=_(Ii=>{"use strict";var lbt=Ii&&Ii.__createBinding||(Object.create?function(t,e,r,n){if(n===void 0)n=r;var i=Object.getOwnPropertyDescriptor(e,r);if(!i||("get"in i?!e.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return e[r]}}}Object.defineProperty(t,n,i)}:function(t,e,r,n){if(n===void 0)n=r;t[n]=e[r]});var cbt=Ii&&Ii.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:true,value:e})}:function(t,e){t["default"]=e});var ZB=Ii&&Ii.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null){for(var r in t)if(r!=="default"&&Object.prototype.hasOwnProperty.call(t,r))lbt(e,t,r)}cbt(e,t);return e};var d6e=Ii&&Ii.__importDefault||function(t){return t&&t.__esModule?t:{"default":t}};Object.defineProperty(Ii,"__esModule",{value:true});Ii.Bucket=Ii.BucketExceptionMessages=Ii.AvailableServiceObjectMethods=Ii.BucketActionToHTTPMethod=void 0;var HT=Tp();var p6e=CB();var dbt=_l();var pbt=ZB(require("fs"));var fbt=ZB(OB());var hbt=ZB(require("path"));var u6e=d6e(PB());var l6e=require("util");var mbt=d6e(CE());var gbt=yl();var c6e=DB();var QB=jE();var ybt=WB();var vbt=JB();var Ig=Rg();var _bt=FB();var Ebt=require("stream");var bbt=require("url");var XB;(function(t){t["list"]="GET"})(XB||(Ii.BucketActionToHTTPMethod=XB={}));var Pg;(function(t){t[t["setMetadata"]=0]="setMetadata";t[t["delete"]=1]="delete"})(Pg||(Ii.AvailableServiceObjectMethods=Pg={}));var wl;(function(t){t["PROVIDE_SOURCE_FILE"]="You must provide at least one source file.";t["DESTINATION_FILE_NOT_SPECIFIED"]="A destination file must be specified.";t["CHANNEL_ID_REQUIRED"]="An ID is required to create a channel.";t["TOPIC_NAME_REQUIRED"]="A valid topic name is required.";t["CONFIGURATION_OBJECT_PREFIX_REQUIRED"]="A configuration object with a prefix is required.";t["SPECIFY_FILE_NAME"]="A file name must be specified.";t["METAGENERATION_NOT_PROVIDED"]="A metageneration must be provided.";t["SUPPLY_NOTIFICATION_ID"]="You must supply a notification ID."})(wl||(Ii.BucketExceptionMessages=wl={}));var ME=class t extends HT.ServiceObject{static{o(this,"Bucket")}getFilesStream(e){return new Ebt.Readable}constructor(e,r,n){var i,s,a,u;n=n||{};r=r.replace(/^gs:\/\//,"").replace(/\/+$/,"");const l={};if((i=n===null||n===void 0?void 0:n.preconditionOpts)===null||i===void 0?void 0:i.ifGenerationMatch){l.ifGenerationMatch=n.preconditionOpts.ifGenerationMatch}if((s=n===null||n===void 0?void 0:n.preconditionOpts)===null||s===void 0?void 0:s.ifGenerationNotMatch){l.ifGenerationNotMatch=n.preconditionOpts.ifGenerationNotMatch}if((a=n===null||n===void 0?void 0:n.preconditionOpts)===null||a===void 0?void 0:a.ifMetagenerationMatch){l.ifMetagenerationMatch=n.preconditionOpts.ifMetagenerationMatch}if((u=n===null||n===void 0?void 0:n.preconditionOpts)===null||u===void 0?void 0:u.ifMetagenerationNotMatch){l.ifMetagenerationNotMatch=n.preconditionOpts.ifMetagenerationNotMatch}const c=n.userProject;if(typeof c==="string"){l.userProject=c}const d={create:{reqOpts:{qs:l}},delete:{reqOpts:{qs:l}},exists:{reqOpts:{qs:l}},get:{reqOpts:{qs:l}},getMetadata:{reqOpts:{qs:l}},setMetadata:{reqOpts:{qs:l}}};super({parent:e,baseUrl:"/b",id:r,createMethod:e.createBucket.bind(e),methods:d});this.name=r;this.storage=e;this.userProject=n.userProject;this.acl=new c6e.Acl({request:this.request.bind(this),pathPrefix:"/acl"});this.acl.default=new c6e.Acl({request:this.request.bind(this),pathPrefix:"/defaultObjectAcl"});this.crc32cGenerator=n.crc32cGenerator||this.storage.crc32cGenerator;this.iam=new ybt.Iam(this);this.getFilesStream=p6e.paginator.streamify("getFiles");this.instanceRetryValue=e.retryOptions.autoRetry;this.instancePreconditionOpts=n===null||n===void 0?void 0:n.preconditionOpts}get cloudStorageURI(){const e=new bbt.URL("gs://");e.host=this.name;return e}addLifecycleRule(e,r,n){let i={};if(typeof r==="function"){n=r}else if(r){i=r}i=i||{};const s=Array.isArray(e)?e:[e];for(const a of s){if(a.condition.createdBefore instanceof Date){a.condition.createdBefore=a.condition.createdBefore.toISOString().replace(/T.+$/,"")}if(a.condition.customTimeBefore instanceof Date){a.condition.customTimeBefore=a.condition.customTimeBefore.toISOString().replace(/T.+$/,"")}if(a.condition.noncurrentTimeBefore instanceof Date){a.condition.noncurrentTimeBefore=a.condition.noncurrentTimeBefore.toISOString().replace(/T.+$/,"")}}if(i.append===false){this.setMetadata({lifecycle:{rule:s}},i,n);return}this.getMetadata((a,u)=>{var l,c;if(a){n(a);return}const d=Array.isArray((l=u.lifecycle)===null||l===void 0?void 0:l.rule)?(c=u.lifecycle)===null||c===void 0?void 0:c.rule:[];this.setMetadata({lifecycle:{rule:d.concat(s)}},i,n)})}combine(e,r,n,i){var s;if(!Array.isArray(e)||e.length===0){throw new Error(wl.PROVIDE_SOURCE_FILE)}if(!r){throw new Error(wl.DESTINATION_FILE_NOT_SPECIFIED)}let a={};if(typeof n==="function"){i=n}else if(n){a=n}this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,Pg.setMetadata,a);const u=o(d=>{if(d instanceof QB.File){return d}return this.file(d)},"convertToFile");e=e.map(u);const l=u(r);i=i||HT.util.noop;if(!l.metadata.contentType){const d=fbt.contentType(l.name);if(d){l.metadata.contentType=d}}let c=this.storage.retryOptions.maxRetries;if(((s=l===null||l===void 0?void 0:l.instancePreconditionOpts)===null||s===void 0?void 0:s.ifGenerationMatch)===void 0&&a.ifGenerationMatch===void 0&&this.storage.retryOptions.idempotencyStrategy===Ig.IdempotencyStrategy.RetryConditional||this.storage.retryOptions.idempotencyStrategy===Ig.IdempotencyStrategy.RetryNever){c=0}if(a.ifGenerationMatch===void 0){Object.assign(a,l.instancePreconditionOpts,a)}l.request({method:"POST",uri:"/compose",maxRetries:c,json:{destination:{contentType:l.metadata.contentType},sourceObjects:e.map(d=>{const p={name:d.name};if(d.metadata&&d.metadata.generation){p.generation=parseInt(d.metadata.generation.toString())}return p})},qs:a},(d,p)=>{this.storage.retryOptions.autoRetry=this.instanceRetryValue;if(d){i(d,null,p);return}i(null,l,p)})}createChannel(e,r,n,i){if(typeof e!=="string"){throw new Error(wl.CHANNEL_ID_REQUIRED)}let s={};if(typeof n==="function"){i=n}else if(n){s=n}this.request({method:"POST",uri:"/o/watch",json:Object.assign({id:e,type:"web_hook"},r),qs:s},(a,u)=>{if(a){i(a,null,u);return}const l=u.resourceId;const c=this.storage.channel(e,l);c.metadata=u;i(null,c,u)})}createNotification(e,r,n){let i={};if(typeof r==="function"){n=r}else if(r){i=r}const s=e!==null&&typeof e==="object";if(s&&HT.util.isCustomType(e,"pubsub/topic")){e=e.name}if(typeof e!=="string"){throw new Error(wl.TOPIC_NAME_REQUIRED)}const a=Object.assign({topic:e},i);if(a.topic.indexOf("projects")!==0){a.topic="projects/{{projectId}}/topics/"+a.topic}a.topic="//pubsub.googleapis.com/"+a.topic;if(!a.payloadFormat){a.payloadFormat="JSON_API_V1"}const u={};if(a.userProject){u.userProject=a.userProject;delete a.userProject}this.request({method:"POST",uri:"/notificationConfigs",json:(0,gbt.convertObjKeysToSnakeCase)(a),qs:u,maxRetries:0},(l,c)=>{if(l){n(l,null,c);return}const d=this.notification(c.id);d.metadata=c;n(null,d,c)})}deleteFiles(e,r){let n={};if(typeof e==="function"){r=e}else if(e){n=e}const i=10;const s=1e3;const a=[];const u=o(l=>{return l.delete(n).catch(c=>{if(!n.force){throw c}a.push(c)})},"deleteFile");(async()=>{try{let l=[];const c=(0,u6e.default)(i);const d=this.getFilesStream(n);for await(const p of d){if(l.length>=s){await Promise.all(l);l=[]}l.push(c(()=>u(p)).catch(f=>{d.destroy();throw f}))}await Promise.all(l);r(a.length>0?a:null)}catch(l){r(l);return}})()}deleteLabels(e,r,n){let i=new Array;let s={};if(typeof e==="function"){n=e}else if(typeof e==="string"){i=[e]}else if(Array.isArray(e)){i=e}else if(e){s=e}if(typeof r==="function"){n=r}else if(r){s=r}const a=o(u=>{const l=u.reduce((c,d)=>{c[d]=null;return c},{});if((s===null||s===void 0?void 0:s.ifMetagenerationMatch)!==void 0){this.setLabels(l,s,n)}else{this.setLabels(l,n)}},"deleteLabels");if(i.length===0){this.getLabels((u,l)=>{if(u){n(u);return}a(Object.keys(l))})}else{a(i)}}disableRequesterPays(e,r){let n={};if(typeof e==="function"){r=e}else if(e){n=e}this.setMetadata({billing:{requesterPays:false}},n,r)}enableLogging(e,r){if(!e||typeof e==="function"||typeof e.prefix==="undefined"){throw new Error(wl.CONFIGURATION_OBJECT_PREFIX_REQUIRED)}let n=this.id;if(e.bucket&&e.bucket instanceof t){n=e.bucket.id}else if(e.bucket&&typeof e.bucket==="string"){n=e.bucket}const i={};if(e===null||e===void 0?void 0:e.ifMetagenerationMatch){i.ifMetagenerationMatch=e.ifMetagenerationMatch}if(e===null||e===void 0?void 0:e.ifMetagenerationNotMatch){i.ifMetagenerationNotMatch=e.ifMetagenerationNotMatch}(async()=>{try{const[s]=await this.iam.getPolicy();s.bindings.push({members:["group:cloud-storage-analytics@google.com"],role:"roles/storage.objectCreator"});await this.iam.setPolicy(s);this.setMetadata({logging:{logBucket:n,logObjectPrefix:e.prefix}},i,r)}catch(s){r(s);return}})()}enableRequesterPays(e,r){let n={};if(typeof e==="function"){r=e}else if(e){n=e}this.setMetadata({billing:{requesterPays:true}},n,r)}file(e,r){if(!e){throw Error(wl.SPECIFY_FILE_NAME)}return new QB.File(this,e,r)}getFiles(e,r){let n=typeof e==="object"?e:{};if(!r){r=e}n=Object.assign({},n);this.request({uri:"/o",qs:n},(i,s)=>{if(i){r(i,null,null,s);return}const a=s.items?s.items:[];const u=a.map(c=>{const d={};if(n.versions){d.generation=c.generation}if(c.kmsKeyName){d.kmsKeyName=c.kmsKeyName}const p=this.file(c.name,d);p.metadata=c;return p});let l=null;if(s.nextPageToken){l=Object.assign({},n,{pageToken:s.nextPageToken})}r(null,u,l,s)})}getLabels(e,r){let n={};if(typeof e==="function"){r=e}else if(e){n=e}this.getMetadata(n,(i,s)=>{if(i){r(i,null);return}r(null,(s===null||s===void 0?void 0:s.labels)||{})})}getNotifications(e,r){let n={};if(typeof e==="function"){r=e}else if(e){n=e}this.request({uri:"/notificationConfigs",qs:n},(i,s)=>{if(i){r(i,null,s);return}const a=s.items?s.items:[];const u=a.map(l=>{const c=this.notification(l.id);c.metadata=l;return c});r(null,u,s)})}getSignedUrl(e,r){const n=XB[e.action];const i={method:n,expires:e.expires,version:e.version,cname:e.cname,extensionHeaders:e.extensionHeaders||{},queryParams:e.queryParams||{}};if(!this.signer){this.signer=new _bt.URLSigner(this.storage.authClient,this)}this.signer.getSignedUrl(i).then(s=>r(null,s),r)}lock(e,r){const n=typeof e;if(n!=="number"&&n!=="string"){throw new Error(wl.METAGENERATION_NOT_PROVIDED)}this.request({method:"POST",uri:"/lockRetentionPolicy",qs:{ifMetagenerationMatch:e}},r)}makePrivate(e,r){var n,i,s,a;const u=typeof e==="object"?e:{};r=typeof e==="function"?e:r;u.private=true;const l={predefinedAcl:"projectPrivate"};if(u.userProject){l.userProject=u.userProject}if((n=u.preconditionOpts)===null||n===void 0?void 0:n.ifGenerationMatch){l.ifGenerationMatch=u.preconditionOpts.ifGenerationMatch}if((i=u.preconditionOpts)===null||i===void 0?void 0:i.ifGenerationNotMatch){l.ifGenerationNotMatch=u.preconditionOpts.ifGenerationNotMatch}if((s=u.preconditionOpts)===null||s===void 0?void 0:s.ifMetagenerationMatch){l.ifMetagenerationMatch=u.preconditionOpts.ifMetagenerationMatch}if((a=u.preconditionOpts)===null||a===void 0?void 0:a.ifMetagenerationNotMatch){l.ifMetagenerationNotMatch=u.preconditionOpts.ifMetagenerationNotMatch}const c={...u.metadata,acl:null};this.setMetadata(c,l,d=>{if(d){r(d)}const p=o(()=>{if(u.includeFiles){return(0,l6e.promisify)(this.makeAllFilesPublicPrivate_).call(this,u)}return Promise.resolve([])},"internalCall");p().then(f=>r(null,f)).catch(r)})}makePublic(e,r){const n=typeof e==="object"?e:{};r=typeof e==="function"?e:r;const i={public:true,...n};this.acl.add({entity:"allUsers",role:"READER"}).then(()=>{return this.acl.default.add({entity:"allUsers",role:"READER"})}).then(()=>{if(i.includeFiles){return(0,l6e.promisify)(this.makeAllFilesPublicPrivate_).call(this,i)}return[]}).then(s=>r(null,s),r)}notification(e){if(!e){throw new Error(wl.SUPPLY_NOTIFICATION_ID)}return new vbt.Notification(this,e)}removeRetentionPeriod(e,r){const n=typeof e==="object"?e:{};r=typeof e==="function"?e:r;this.setMetadata({retentionPolicy:null},n,r)}request(e,r){if(this.userProject&&(!e.qs||!e.qs.userProject)){e.qs={...e.qs,userProject:this.userProject}}return super.request(e,r)}setLabels(e,r,n){const i=typeof r==="object"?r:{};n=typeof r==="function"?r:n;n=n||HT.util.noop;this.setMetadata({labels:e},i,n)}setMetadata(e,r,n){const i=typeof r==="object"?r:{};n=typeof r==="function"?r:n;this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,Pg.setMetadata,i);super.setMetadata(e,i).then(s=>n(null,...s)).catch(n).finally(()=>{this.storage.retryOptions.autoRetry=this.instanceRetryValue})}setRetentionPeriod(e,r,n){const i=typeof r==="object"?r:{};n=typeof r==="function"?r:n;this.setMetadata({retentionPolicy:{retentionPeriod:e.toString()}},i,n)}setCorsConfiguration(e,r,n){const i=typeof r==="object"?r:{};n=typeof r==="function"?r:n;this.setMetadata({cors:e},i,n)}setStorageClass(e,r,n){const i=typeof r==="object"?r:{};n=typeof r==="function"?r:n;e=e.replace(/-/g,"_").replace(/([a-z])([A-Z])/g,(s,a,u)=>{return a+"_"+u}).toUpperCase();this.setMetadata({storageClass:e},i,n)}setUserProject(e){this.userProject=e;const r=["create","delete","exists","get","getMetadata","setMetadata"];r.forEach(n=>{const i=this.methods[n];if(typeof i==="object"){if(typeof i.reqOpts==="object"){Object.assign(i.reqOpts.qs,{userProject:e})}else{i.reqOpts={qs:{userProject:e}}}}})}upload(e,r,n){var i,s;const a=o(d=>{const p=(0,mbt.default)(async f=>{await new Promise((h,m)=>{var g,y;if(d===0&&((y=(g=c===null||c===void 0?void 0:c.storage)===null||g===void 0?void 0:g.retryOptions)===null||y===void 0?void 0:y.autoRetry)){c.storage.retryOptions.autoRetry=false}const v=c.createWriteStream(u);if(u.onUploadProgress){v.on("progress",u.onUploadProgress)}pbt.createReadStream(e).on("error",f).pipe(v).on("error",w=>{if(this.storage.retryOptions.autoRetry&&this.storage.retryOptions.retryableErrorFn(w)){return m(w)}else{return f(w)}}).on("finish",()=>{return h()})})},{retries:d,factor:this.storage.retryOptions.retryDelayMultiplier,maxTimeout:this.storage.retryOptions.maxRetryDelay*1e3,maxRetryTime:this.storage.retryOptions.totalTimeout*1e3});if(!n){return p}else{return p.then(()=>{if(n){return n(null,c,c.metadata)}}).catch(n)}},"upload");if(global["GCLOUD_SANDBOX_ENV"]){return}let u=typeof r==="object"?r:{};n=typeof r==="function"?r:n;u=Object.assign({metadata:{}},u);let l=this.storage.retryOptions.maxRetries;if(((i=u===null||u===void 0?void 0:u.preconditionOpts)===null||i===void 0?void 0:i.ifGenerationMatch)===void 0&&((s=this.instancePreconditionOpts)===null||s===void 0?void 0:s.ifGenerationMatch)===void 0&&this.storage.retryOptions.idempotencyStrategy===Ig.IdempotencyStrategy.RetryConditional||this.storage.retryOptions.idempotencyStrategy===Ig.IdempotencyStrategy.RetryNever){l=0}let c;if(u.destination instanceof QB.File){c=u.destination}else if(u.destination!==null&&typeof u.destination==="string"){c=this.file(u.destination,{encryptionKey:u.encryptionKey,kmsKeyName:u.kmsKeyName,preconditionOpts:this.instancePreconditionOpts})}else{const d=hbt.basename(e);c=this.file(d,{encryptionKey:u.encryptionKey,kmsKeyName:u.kmsKeyName,preconditionOpts:this.instancePreconditionOpts})}a(l)}makeAllFilesPublicPrivate_(e,r){const n=10;const i=[];const s=[];const a=typeof e==="object"?e:{};r=typeof e==="function"?e:r;const u=o(async l=>{try{await(a.public?l.makePublic():l.makePrivate(a));s.push(l)}catch(c){if(!a.force){throw c}i.push(c)}},"processFile");this.getFiles(a).then(([l])=>{const c=(0,u6e.default)(n);const d=l.map(p=>{return c(()=>u(p))});return Promise.all(d)}).then(()=>r(i.length>0?i:null,s),l=>r(l,s))}getId(){return this.id}disableAutoRetryConditionallyIdempotent_(e,r,n){var i,s;if(typeof e==="object"&&((s=(i=e===null||e===void 0?void 0:e.reqOpts)===null||i===void 0?void 0:i.qs)===null||s===void 0?void 0:s.ifMetagenerationMatch)===void 0&&(n===null||n===void 0?void 0:n.ifMetagenerationMatch)===void 0&&(r===Pg.setMetadata||r===Pg.delete)&&this.storage.retryOptions.idempotencyStrategy===Ig.IdempotencyStrategy.RetryConditional){this.storage.retryOptions.autoRetry=false}else if(this.storage.retryOptions.idempotencyStrategy===Ig.IdempotencyStrategy.RetryNever){this.storage.retryOptions.autoRetry=false}}};Ii.Bucket=ME;p6e.paginator.extend(ME,"getFiles");(0,dbt.promisifyAll)(ME,{exclude:["cloudStorageURI","request","file","notification"]})});var eM=_(GT=>{"use strict";Object.defineProperty(GT,"__esModule",{value:true});GT.Channel=void 0;var f6e=Tp();var wbt=_l();var zT=class extends f6e.ServiceObject{static{o(this,"Channel")}constructor(e,r,n){const i={parent:e,baseUrl:"/channels",id:"",methods:{}};super(i);this.metadata.id=r;this.metadata.resourceId=n}stop(e){e=e||f6e.util.noop;this.request({method:"POST",uri:"/stop",json:this.metadata},(r,n)=>{e(r,n)})}};GT.Channel=zT;(0,wbt.promisifyAll)(zT)});var tM=_(YT=>{"use strict";Object.defineProperty(YT,"__esModule",{value:true});YT.HmacKey=void 0;var Sbt=Tp();var Tbt=Rg();var Abt=_l();var KT=class extends Sbt.ServiceObject{static{o(this,"HmacKey")}constructor(e,r,n){const i={delete:true,get:true,getMetadata:true,setMetadata:{reqOpts:{method:"PUT"}}};const s=n&&n.projectId||e.projectId;super({parent:e,id:r,baseUrl:`/projects/${s}/hmacKeys`,methods:i});this.storage=e;this.instanceRetryValue=e.retryOptions.autoRetry}setMetadata(e,r,n){if(this.storage.retryOptions.idempotencyStrategy!==Tbt.IdempotencyStrategy.RetryAlways){this.storage.retryOptions.autoRetry=false}const i=typeof r==="object"?r:{};n=typeof r==="function"?r:n;super.setMetadata(e,i).then(s=>n(null,...s)).catch(n).finally(()=>{this.storage.retryOptions.autoRetry=this.instanceRetryValue})}};YT.HmacKey=KT;(0,Abt.promisifyAll)(KT)});var Rg=_(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:true});Yr.Storage=Yr.RETRYABLE_ERR_FN_DEFAULT=Yr.MAX_RETRY_DELAY_DEFAULT=Yr.TOTAL_TIMEOUT_DEFAULT=Yr.RETRY_DELAY_MULTIPLIER_DEFAULT=Yr.MAX_RETRY_DEFAULT=Yr.AUTO_RETRY_DEFAULT=Yr.PROTOCOL_REGEX=Yr.StorageExceptionMessages=Yr.ExceptionMessages=Yr.IdempotencyStrategy=void 0;var xbt=Tp();var rM=CB();var Cbt=_l();var h6e=require("stream");var g6e=UT();var y6e=eM();var Rbt=jE();var WT=yl();var Obt=vg();var v6e=tM();var Nbt=qE();var nM;(function(t){t[t["RetryAlways"]=0]="RetryAlways";t[t["RetryConditional"]=1]="RetryConditional";t[t["RetryNever"]=2]="RetryNever"})(nM||(Yr.IdempotencyStrategy=nM={}));var m6e;(function(t){t["EXPIRATION_DATE_INVALID"]="The expiration date provided was invalid.";t["EXPIRATION_DATE_PAST"]="An expiration date cannot be in the past."})(m6e||(Yr.ExceptionMessages=m6e={}));var Dg;(function(t){t["BUCKET_NAME_REQUIRED"]="A bucket name is needed to use Cloud Storage.";t["BUCKET_NAME_REQUIRED_CREATE"]="A name is required to create a bucket.";t["HMAC_SERVICE_ACCOUNT"]="The first argument must be a service account email to create an HMAC key.";t["HMAC_ACCESS_ID"]="An access ID is needed to create an HmacKey object."})(Dg||(Yr.StorageExceptionMessages=Dg={}));Yr.PROTOCOL_REGEX=/^(\w*):\/\//;Yr.AUTO_RETRY_DEFAULT=true;Yr.MAX_RETRY_DEFAULT=3;Yr.RETRY_DELAY_MULTIPLIER_DEFAULT=2;Yr.TOTAL_TIMEOUT_DEFAULT=600;Yr.MAX_RETRY_DELAY_DEFAULT=64;var Ibt=nM.RetryConditional;var Pbt=o(function(t){var e;const r=o(n=>{return n.includes("eai_again")||n==="econnreset"||n==="unexpected connection closure"||n==="epipe"||n==="socket connection timeout"},"isConnectionProblem");if(t){if([408,429,500,502,503,504].indexOf(t.code)!==-1){return true}if(typeof t.code==="string"){if(["408","429","500","502","503","504"].indexOf(t.code)!==-1){return true}const n=t.code.toLowerCase();if(r(n)){return true}}if(t.errors){for(const n of t.errors){const i=(e=n===null||n===void 0?void 0:n.reason)===null||e===void 0?void 0:e.toString().toLowerCase();if(i&&r(i)){return true}}}}return false},"RETRYABLE_ERR_FN_DEFAULT");Yr.RETRYABLE_ERR_FN_DEFAULT=Pbt;var Sl=class t extends xbt.Service{static{o(this,"Storage")}getBucketsStream(){return new h6e.Readable}getHmacKeysStream(){return new h6e.Readable}constructor(e={}){var r,n,i,s,a,u,l,c,d,p,f,h,m,g;let y="https://storage.googleapis.com";let v=false;const w=process.env.STORAGE_EMULATOR_HOST;if(typeof w==="string"){y=t.sanitizeEndpoint(w);v=true}if(e.apiEndpoint){y=t.sanitizeEndpoint(e.apiEndpoint);v=true}e=Object.assign({},e,{apiEndpoint:y});const E=w||`${e.apiEndpoint}/storage/v1`;const b={apiEndpoint:e.apiEndpoint,retryOptions:{autoRetry:((r=e.retryOptions)===null||r===void 0?void 0:r.autoRetry)!==void 0?(n=e.retryOptions)===null||n===void 0?void 0:n.autoRetry:Yr.AUTO_RETRY_DEFAULT,maxRetries:((i=e.retryOptions)===null||i===void 0?void 0:i.maxRetries)?(s=e.retryOptions)===null||s===void 0?void 0:s.maxRetries:Yr.MAX_RETRY_DEFAULT,retryDelayMultiplier:((a=e.retryOptions)===null||a===void 0?void 0:a.retryDelayMultiplier)?(u=e.retryOptions)===null||u===void 0?void 0:u.retryDelayMultiplier:Yr.RETRY_DELAY_MULTIPLIER_DEFAULT,totalTimeout:((l=e.retryOptions)===null||l===void 0?void 0:l.totalTimeout)?(c=e.retryOptions)===null||c===void 0?void 0:c.totalTimeout:Yr.TOTAL_TIMEOUT_DEFAULT,maxRetryDelay:((d=e.retryOptions)===null||d===void 0?void 0:d.maxRetryDelay)?(p=e.retryOptions)===null||p===void 0?void 0:p.maxRetryDelay:Yr.MAX_RETRY_DELAY_DEFAULT,retryableErrorFn:((f=e.retryOptions)===null||f===void 0?void 0:f.retryableErrorFn)?(h=e.retryOptions)===null||h===void 0?void 0:h.retryableErrorFn:Yr.RETRYABLE_ERR_FN_DEFAULT,idempotencyStrategy:((m=e.retryOptions)===null||m===void 0?void 0:m.idempotencyStrategy)!==void 0?(g=e.retryOptions)===null||g===void 0?void 0:g.idempotencyStrategy:Ibt},baseUrl:E,customEndpoint:v,useAuthWithCustomEndpoint:e===null||e===void 0?void 0:e.useAuthWithCustomEndpoint,projectIdRequired:false,scopes:["https://www.googleapis.com/auth/iam","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/devstorage.full_control"],packageJson:(0,Obt.getPackageJSON)()};super(b,e);this.acl=t.acl;this.crc32cGenerator=e.crc32cGenerator||Nbt.CRC32C_DEFAULT_VALIDATOR_GENERATOR;this.retryOptions=b.retryOptions;this.getBucketsStream=rM.paginator.streamify("getBuckets");this.getHmacKeysStream=rM.paginator.streamify("getHmacKeys")}static sanitizeEndpoint(e){if(!Yr.PROTOCOL_REGEX.test(e)){e=`https://${e}`}return e.replace(/\/+$/,"")}bucket(e,r){if(!e){throw new Error(Dg.BUCKET_NAME_REQUIRED)}return new g6e.Bucket(this,e,r)}channel(e,r){return new y6e.Channel(this,e,r)}createBucket(e,r,n){if(!e){throw new Error(Dg.BUCKET_NAME_REQUIRED_CREATE)}let i;if(!n){n=r;i={}}else{i=r}const s={...i,name:e};const a={archive:"ARCHIVE",coldline:"COLDLINE",dra:"DURABLE_REDUCED_AVAILABILITY",multiRegional:"MULTI_REGIONAL",nearline:"NEARLINE",regional:"REGIONAL",standard:"STANDARD"};const u=Object.keys(a);for(const c of u){if(s[c]){if(i.storageClass&&i.storageClass!==c){throw new Error(`Both \`${c}\` and \`storageClass\` were provided.`)}s.storageClass=a[c];delete s[c]}}if(s.requesterPays){s.billing={requesterPays:s.requesterPays};delete s.requesterPays}const l={project:this.projectId};if(s.userProject){l.userProject=s.userProject;delete s.userProject}this.request({method:"POST",uri:"/b",qs:l,json:s},(c,d)=>{if(c){n(c,null,d);return}const p=this.bucket(e);p.metadata=d;n(null,p,d)})}createHmacKey(e,r,n){if(typeof e!=="string"){throw new Error(Dg.HMAC_SERVICE_ACCOUNT)}const{options:i,callback:s}=(0,WT.normalize)(r,n);const a=Object.assign({},i,{serviceAccountEmail:e});const u=a.projectId||this.projectId;delete a.projectId;this.request({method:"POST",uri:`/projects/${u}/hmacKeys`,qs:a,maxRetries:0},(l,c)=>{if(l){s(l,null,null,c);return}const d=c.metadata;const p=this.hmacKey(d.accessId,{projectId:d.projectId});p.metadata=c.metadata;s(null,p,c.secret,c)})}getBuckets(e,r){const{options:n,callback:i}=(0,WT.normalize)(e,r);n.project=n.project||this.projectId;this.request({uri:"/b",qs:n},(s,a)=>{if(s){i(s,null,null,a);return}const u=a.items?a.items:[];const l=u.map(d=>{const p=this.bucket(d.id);p.metadata=d;return p});const c=a.nextPageToken?Object.assign({},n,{pageToken:a.nextPageToken}):null;i(null,l,c,a)})}getHmacKeys(e,r){const{options:n,callback:i}=(0,WT.normalize)(e,r);const s=Object.assign({},n);const a=s.projectId||this.projectId;delete s.projectId;this.request({uri:`/projects/${a}/hmacKeys`,qs:s},(u,l)=>{if(u){i(u,null,null,l);return}const c=l.items?l.items:[];const d=c.map(f=>{const h=this.hmacKey(f.accessId,{projectId:f.projectId});h.metadata=f;return h});const p=l.nextPageToken?Object.assign({},n,{pageToken:l.nextPageToken}):null;i(null,d,p,l)})}getServiceAccount(e,r){const{options:n,callback:i}=(0,WT.normalize)(e,r);this.request({uri:`/projects/${this.projectId}/serviceAccount`,qs:n},(s,a)=>{if(s){i(s,null,a);return}const u={};for(const l in a){if(a.hasOwnProperty(l)){const c=l.replace(/_(\w)/g,(d,p)=>p.toUpperCase());u[c]=a[l]}}i(null,u,a)})}hmacKey(e,r){if(!e){throw new Error(Dg.HMAC_ACCESS_ID)}return new v6e.HmacKey(this,e,r)}};Yr.Storage=Sl;Sl.Bucket=g6e.Bucket;Sl.Channel=y6e.Channel;Sl.File=Rbt.File;Sl.HmacKey=v6e.HmacKey;Sl.acl={OWNER_ROLE:"OWNER",READER_ROLE:"READER",WRITER_ROLE:"WRITER"};rM.paginator.extend(Sl,["getBuckets","getHmacKeys"]);(0,Cbt.promisifyAll)(Sl,{exclude:["bucket","channel","hmacKey"]})});var JT=_(Vc=>{"use strict";var _6e=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";var Dbt=_6e+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040";var E6e="["+_6e+"]["+Dbt+"]*";var kbt=new RegExp("^"+E6e+"$");var $bt=o(function(t,e){const r=[];let n=e.exec(t);while(n){const i=[];i.startIndex=e.lastIndex-n[0].length;const s=n.length;for(let a=0;a<s;a++){i.push(n[a])}r.push(i);n=e.exec(t)}return r},"getAllMatches");var Lbt=o(function(t){const e=kbt.exec(t);return!(e===null||typeof e==="undefined")},"isName");Vc.isExist=function(t){return typeof t!=="undefined"};Vc.isEmptyObject=function(t){return Object.keys(t).length===0};Vc.merge=function(t,e,r){if(e){const n=Object.keys(e);const i=n.length;for(let s=0;s<i;s++){if(r==="strict"){t[n[s]]=[e[n[s]]]}else{t[n[s]]=e[n[s]]}}}};Vc.getValue=function(t){if(Vc.isExist(t)){return t}else{return""}};Vc.isName=Lbt;Vc.getAllMatches=$bt;Vc.nameRegexp=E6e});var sM=_(A6e=>{"use strict";var iM=JT();var qbt={allowBooleanAttributes:false,unpairedTags:[]};A6e.validate=function(t,e){e=Object.assign({},qbt,e);const r=[];let n=false;let i=false;if(t[0]==="\uFEFF"){t=t.substr(1)}for(let s=0;s<t.length;s++){if(t[s]==="<"&&t[s+1]==="?"){s+=2;s=w6e(t,s);if(s.err)return s}else if(t[s]==="<"){let a=s;s++;if(t[s]==="!"){s=S6e(t,s);continue}else{let u=false;if(t[s]==="/"){u=true;s++}let l="";for(;s<t.length&&t[s]!==">"&&t[s]!==" "&&t[s]!==" "&&t[s]!=="\n"&&t[s]!=="\r";s++){l+=t[s]}l=l.trim();if(l[l.length-1]==="/"){l=l.substring(0,l.length-1);s--}if(!zbt(l)){let p;if(l.trim().length===0){p="Invalid space after '<'."}else{p="Tag '"+l+"' is an invalid name."}return di("InvalidTag",p,ma(t,s))}const c=Fbt(t,s);if(c===false){return di("InvalidAttr","Attributes for '"+l+"' have open quote.",ma(t,s))}let d=c.value;s=c.index;if(d[d.length-1]==="/"){const p=s-d.length;d=d.substring(0,d.length-1);const f=T6e(d,e);if(f===true){n=true}else{return di(f.err.code,f.err.msg,ma(t,p+f.err.line))}}else if(u){if(!c.tagClosed){return di("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",ma(t,s))}else if(d.trim().length>0){return di("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",ma(t,a))}else{const p=r.pop();if(l!==p.tagName){let f=ma(t,p.tagStartPos);return di("InvalidTag","Expected closing tag '"+p.tagName+"' (opened in line "+f.line+", col "+f.col+") instead of closing tag '"+l+"'.",ma(t,a))}if(r.length==0){i=true}}}else{const p=T6e(d,e);if(p!==true){return di(p.err.code,p.err.msg,ma(t,s-d.length+p.err.line))}if(i===true){return di("InvalidXml","Multiple possible root nodes found.",ma(t,s))}else if(e.unpairedTags.indexOf(l)!==-1){}else{r.push({tagName:l,tagStartPos:a})}n=true}for(s++;s<t.length;s++){if(t[s]==="<"){if(t[s+1]==="!"){s++;s=S6e(t,s);continue}else if(t[s+1]==="?"){s=w6e(t,++s);if(s.err)return s}else{break}}else if(t[s]==="&"){const p=Vbt(t,s);if(p==-1)return di("InvalidChar","char '&' is not expected.",ma(t,s));s=p}else{if(i===true&&!b6e(t[s])){return di("InvalidXml","Extra text at the end",ma(t,s))}}}if(t[s]==="<"){s--}}}else{if(b6e(t[s])){continue}return di("InvalidChar","char '"+t[s]+"' is not expected.",ma(t,s))}}if(!n){return di("InvalidXml","Start tag expected.",1)}else if(r.length==1){return di("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ma(t,r[0].tagStartPos))}else if(r.length>0){return di("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}return true};function b6e(t){return t===" "||t===" "||t==="\n"||t==="\r"}o(b6e,"isWhiteSpace");function w6e(t,e){const r=e;for(;e<t.length;e++){if(t[e]=="?"||t[e]==" "){const n=t.substr(r,e-r);if(e>5&&n==="xml"){return di("InvalidXml","XML declaration allowed only at the start of the document.",ma(t,e))}else if(t[e]=="?"&&t[e+1]==">"){e++;break}else{continue}}}return e}o(w6e,"readPI");function S6e(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++){if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++){if(t[e]==="<"){r++}else if(t[e]===">"){r--;if(r===0){break}}}}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++){if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}}return e}o(S6e,"readCommentAndCDATA");var jbt='"';var Ubt="'";function Fbt(t,e){let r="";let n="";let i=false;for(;e<t.length;e++){if(t[e]===jbt||t[e]===Ubt){if(n===""){n=t[e]}else if(n!==t[e]){}else{n=""}}else if(t[e]===">"){if(n===""){i=true;break}}r+=t[e]}if(n!==""){return false}return{value:r,index:e,tagClosed:i}}o(Fbt,"readAttributeStr");var Bbt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function T6e(t,e){const r=iM.getAllMatches(t,Bbt);const n={};for(let i=0;i<r.length;i++){if(r[i][1].length===0){return di("InvalidAttr","Attribute '"+r[i][2]+"' has no space in starting.",VE(r[i]))}else if(r[i][3]!==void 0&&r[i][4]===void 0){return di("InvalidAttr","Attribute '"+r[i][2]+"' is without value.",VE(r[i]))}else if(r[i][3]===void 0&&!e.allowBooleanAttributes){return di("InvalidAttr","boolean attribute '"+r[i][2]+"' is not allowed.",VE(r[i]))}const s=r[i][2];if(!Hbt(s)){return di("InvalidAttr","Attribute '"+s+"' is an invalid name.",VE(r[i]))}if(!n.hasOwnProperty(s)){n[s]=1}else{return di("InvalidAttr","Attribute '"+s+"' is repeated.",VE(r[i]))}}return true}o(T6e,"validateAttributeString");function Mbt(t,e){let r=/\d/;if(t[e]==="x"){e++;r=/[\da-fA-F]/}for(;e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}o(Mbt,"validateNumberAmpersand");function Vbt(t,e){e++;if(t[e]===";")return-1;if(t[e]==="#"){e++;return Mbt(t,e)}let r=0;for(;e<t.length;e++,r++){if(t[e].match(/\w/)&&r<20)continue;if(t[e]===";")break;return-1}return e}o(Vbt,"validateAmpersand");function di(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(di,"getErrorObject");function Hbt(t){return iM.isName(t)}o(Hbt,"validateAttrName");function zbt(t){return iM.isName(t)}o(zbt,"validateTagName");function ma(t,e){const r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(ma,"getLineNumberForPosition");function VE(t){return t.startIndex+t[1].length}o(VE,"getPositionFromMatch")});var C6e=_(aM=>{var x6e={preserveOrder:false,attributeNamePrefix:"@_",attributesGroupName:false,textNodeName:"#text",ignoreAttributes:true,removeNSPrefix:false,allowBooleanAttributes:false,parseTagValue:true,parseAttributeValue:false,trimValues:true,cdataPropName:false,numberParseOptions:{hex:true,leadingZeros:true,eNotation:true},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:false,isArray:()=>false,commentPropName:false,unpairedTags:[],processEntities:true,htmlEntities:false,ignoreDeclaration:false,ignorePiTags:false,transformTagName:false,transformAttributeName:false,updateTag:function(t,e,r){return t}};var Gbt=o(function(t){return Object.assign({},x6e,t)},"buildOptions");aM.buildOptions=Gbt;aM.defaultOptions=x6e});var O6e=_((zur,R6e)=>{"use strict";var oM=class{static{o(this,"XmlNode")}constructor(e){this.tagname=e;this.child=[];this[":@"]={}}add(e,r){if(e==="__proto__")e="#__proto__";this.child.push({[e]:r})}addChild(e){if(e.tagname==="__proto__")e.tagname="#__proto__";if(e[":@"]&&Object.keys(e[":@"]).length>0){this.child.push({[e.tagname]:e.child,[":@"]:e[":@"]})}else{this.child.push({[e.tagname]:e.child})}}};R6e.exports=oM});var I6e=_((Kur,N6e)=>{var Kbt=JT();function Ybt(t,e){const r={};if(t[e+3]==="O"&&t[e+4]==="C"&&t[e+5]==="T"&&t[e+6]==="Y"&&t[e+7]==="P"&&t[e+8]==="E"){e=e+9;let n=1;let i=false,s=false;let a="";for(;e<t.length;e++){if(t[e]==="<"&&!s){if(i&&Qbt(t,e)){e+=7;[entityName,val,e]=Wbt(t,e+1);if(val.indexOf("&")===-1)r[t3t(entityName)]={regx:RegExp(`&${entityName};`,"g"),val}}else if(i&&Xbt(t,e))e+=8;else if(i&&Zbt(t,e))e+=8;else if(i&&e3t(t,e))e+=9;else if(Jbt)s=true;else throw new Error("Invalid DOCTYPE");n++;a=""}else if(t[e]===">"){if(s){if(t[e-1]==="-"&&t[e-2]==="-"){s=false;n--}}else{n--}if(n===0){break}}else if(t[e]==="["){i=true}else{a+=t[e]}}if(n!==0){throw new Error(`Unclosed DOCTYPE`)}}else{throw new Error(`Invalid Tag instead of DOCTYPE`)}return{entities:r,i:e}}o(Ybt,"readDocType");function Wbt(t,e){let r="";for(;e<t.length&&(t[e]!=="'"&&t[e]!=='"');e++){r+=t[e]}r=r.trim();if(r.indexOf(" ")!==-1)throw new Error("External entites are not supported");const n=t[e++];let i="";for(;e<t.length&&t[e]!==n;e++){i+=t[e]}return[r,i,e]}o(Wbt,"readEntityExp");function Jbt(t,e){if(t[e+1]==="!"&&t[e+2]==="-"&&t[e+3]==="-")return true;return false}o(Jbt,"isComment");function Qbt(t,e){if(t[e+1]==="!"&&t[e+2]==="E"&&t[e+3]==="N"&&t[e+4]==="T"&&t[e+5]==="I"&&t[e+6]==="T"&&t[e+7]==="Y")return true;return false}o(Qbt,"isEntity");function Xbt(t,e){if(t[e+1]==="!"&&t[e+2]==="E"&&t[e+3]==="L"&&t[e+4]==="E"&&t[e+5]==="M"&&t[e+6]==="E"&&t[e+7]==="N"&&t[e+8]==="T")return true;return false}o(Xbt,"isElement");function Zbt(t,e){if(t[e+1]==="!"&&t[e+2]==="A"&&t[e+3]==="T"&&t[e+4]==="T"&&t[e+5]==="L"&&t[e+6]==="I"&&t[e+7]==="S"&&t[e+8]==="T")return true;return false}o(Zbt,"isAttlist");function e3t(t,e){if(t[e+1]==="!"&&t[e+2]==="N"&&t[e+3]==="O"&&t[e+4]==="T"&&t[e+5]==="A"&&t[e+6]==="T"&&t[e+7]==="I"&&t[e+8]==="O"&&t[e+9]==="N")return true;return false}o(e3t,"isNotation");function t3t(t){if(Kbt.isName(t))return t;else throw new Error(`Invalid entity name ${t}`)}o(t3t,"validateEntityName");N6e.exports=Ybt});var D6e=_((Wur,P6e)=>{var r3t=/^[-+]?0x[a-fA-F0-9]+$/;var n3t=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;if(!Number.parseInt&&window.parseInt){Number.parseInt=window.parseInt}if(!Number.parseFloat&&window.parseFloat){Number.parseFloat=window.parseFloat}var i3t={hex:true,leadingZeros:true,decimalPoint:".",eNotation:true};function s3t(t,e={}){e=Object.assign({},i3t,e);if(!t||typeof t!=="string")return t;let r=t.trim();if(e.skipLike!==void 0&&e.skipLike.test(r))return t;else if(e.hex&&r3t.test(r)){return Number.parseInt(r,16)}else{const n=n3t.exec(r);if(n){const i=n[1];const s=n[2];let a=a3t(n[3]);const u=n[4]||n[6];if(!e.leadingZeros&&s.length>0&&i&&r[2]!==".")return t;else if(!e.leadingZeros&&s.length>0&&!i&&r[1]!==".")return t;else{const l=Number(r);const c=""+l;if(c.search(/[eE]/)!==-1){if(e.eNotation)return l;else return t}else if(u){if(e.eNotation)return l;else return t}else if(r.indexOf(".")!==-1){if(c==="0"&&a==="")return l;else if(c===a)return l;else if(i&&c==="-"+a)return l;else return t}if(s){if(a===c)return l;else if(i+a===c)return l;else return t}if(r===c)return l;else if(r===i+c)return l;return t}}else{return t}}}o(s3t,"toNumber");function a3t(t){if(t&&t.indexOf(".")!==-1){t=t.replace(/0+$/,"");if(t===".")t="0";else if(t[0]===".")t="0"+t;else if(t[t.length-1]===".")t=t.substr(0,t.length-1);return t}return t}o(a3t,"trimZeros");P6e.exports=s3t});var $6e=_((Xur,k6e)=>{"use strict";var dM=JT();var HE=O6e();var o3t=I6e();var u3t=D6e();var Qur="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,dM.nameRegexp);var uM=class{static{o(this,"OrderedObjParser")}constructor(e){this.options=e;this.currentNode=null;this.tagsNodeStack=[];this.docTypeEntities={};this.lastEntities={"apos":{regex:/&(apos|#39|#x27);/g,val:"'"},"gt":{regex:/&(gt|#62|#x3E);/g,val:">"},"lt":{regex:/&(lt|#60|#x3C);/g,val:"<"},"quot":{regex:/&(quot|#34|#x22);/g,val:'"'}};this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"};this.htmlEntities={"space":{regex:/&(nbsp|#160);/g,val:" "},"cent":{regex:/&(cent|#162);/g,val:"\xA2"},"pound":{regex:/&(pound|#163);/g,val:"\xA3"},"yen":{regex:/&(yen|#165);/g,val:"\xA5"},"euro":{regex:/&(euro|#8364);/g,val:"\u20AC"},"copyright":{regex:/&(copy|#169);/g,val:"\xA9"},"reg":{regex:/&(reg|#174);/g,val:"\xAE"},"inr":{regex:/&(inr|#8377);/g,val:"\u20B9"}};this.addExternalEntities=l3t;this.parseXml=h3t;this.parseTextData=c3t;this.resolveNameSpace=d3t;this.buildAttributesMap=f3t;this.isItStopNode=v3t;this.replaceEntitiesValue=g3t;this.readStopNodeData=E3t;this.saveTextToParentTag=y3t;this.addChild=m3t}};function l3t(t){const e=Object.keys(t);for(let r=0;r<e.length;r++){const n=e[r];this.lastEntities[n]={regex:new RegExp("&"+n+";","g"),val:t[n]}}}o(l3t,"addExternalEntities");function c3t(t,e,r,n,i,s,a){if(t!==void 0){if(this.options.trimValues&&!n){t=t.trim()}if(t.length>0){if(!a)t=this.replaceEntitiesValue(t);const u=this.options.tagValueProcessor(e,t,r,i,s);if(u===null||u===void 0){return t}else if(typeof u!==typeof t||u!==t){return u}else if(this.options.trimValues){return cM(t,this.options.parseTagValue,this.options.numberParseOptions)}else{const l=t.trim();if(l===t){return cM(t,this.options.parseTagValue,this.options.numberParseOptions)}else{return t}}}}}o(c3t,"parseTextData");function d3t(t){if(this.options.removeNSPrefix){const e=t.split(":");const r=t.charAt(0)==="/"?"/":"";if(e[0]==="xmlns"){return""}if(e.length===2){t=r+e[1]}}return t}o(d3t,"resolveNameSpace");var p3t=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function f3t(t,e,r){if(!this.options.ignoreAttributes&&typeof t==="string"){const n=dM.getAllMatches(t,p3t);const i=n.length;const s={};for(let a=0;a<i;a++){const u=this.resolveNameSpace(n[a][1]);let l=n[a][4];let c=this.options.attributeNamePrefix+u;if(u.length){if(this.options.transformAttributeName){c=this.options.transformAttributeName(c)}if(c==="__proto__")c="#__proto__";if(l!==void 0){if(this.options.trimValues){l=l.trim()}l=this.replaceEntitiesValue(l);const d=this.options.attributeValueProcessor(u,l,e);if(d===null||d===void 0){s[c]=l}else if(typeof d!==typeof l||d!==l){s[c]=d}else{s[c]=cM(l,this.options.parseAttributeValue,this.options.numberParseOptions)}}else if(this.options.allowBooleanAttributes){s[c]=true}}}if(!Object.keys(s).length){return}if(this.options.attributesGroupName){const a={};a[this.options.attributesGroupName]=s;return a}return s}}o(f3t,"buildAttributesMap");var h3t=o(function(t){t=t.replace(/\r\n?/g,"\n");const e=new HE("!xml");let r=e;let n="";let i="";for(let s=0;s<t.length;s++){const a=t[s];if(a==="<"){if(t[s+1]==="/"){const u=sm(t,">",s,"Closing Tag is not closed.");let l=t.substring(s+2,u).trim();if(this.options.removeNSPrefix){const p=l.indexOf(":");if(p!==-1){l=l.substr(p+1)}}if(this.options.transformTagName){l=this.options.transformTagName(l)}if(r){n=this.saveTextToParentTag(n,r,i)}const c=i.substring(i.lastIndexOf(".")+1);if(l&&this.options.unpairedTags.indexOf(l)!==-1){throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`)}let d=0;if(c&&this.options.unpairedTags.indexOf(c)!==-1){d=i.lastIndexOf(".",i.lastIndexOf(".")-1);this.tagsNodeStack.pop()}else{d=i.lastIndexOf(".")}i=i.substring(0,d);r=this.tagsNodeStack.pop();n="";s=u}else if(t[s+1]==="?"){let u=lM(t,s,false,"?>");if(!u)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,i);if(this.options.ignoreDeclaration&&u.tagName==="?xml"||this.options.ignorePiTags){}else{const l=new HE(u.tagName);l.add(this.options.textNodeName,"");if(u.tagName!==u.tagExp&&u.attrExpPresent){l[":@"]=this.buildAttributesMap(u.tagExp,i,u.tagName)}this.addChild(r,l,i)}s=u.closeIndex+1}else if(t.substr(s+1,3)==="!--"){const u=sm(t,"-->",s+4,"Comment is not closed.");if(this.options.commentPropName){const l=t.substring(s+4,u-2);n=this.saveTextToParentTag(n,r,i);r.add(this.options.commentPropName,[{[this.options.textNodeName]:l}])}s=u}else if(t.substr(s+1,2)==="!D"){const u=o3t(t,s);this.docTypeEntities=u.entities;s=u.i}else if(t.substr(s+1,2)==="!["){const u=sm(t,"]]>",s,"CDATA is not closed.")-2;const l=t.substring(s+9,u);n=this.saveTextToParentTag(n,r,i);if(this.options.cdataPropName){r.add(this.options.cdataPropName,[{[this.options.textNodeName]:l}])}else{let c=this.parseTextData(l,r.tagname,i,true,false,true);if(c==void 0)c="";r.add(this.options.textNodeName,c)}s=u+2}else{let u=lM(t,s,this.options.removeNSPrefix);let l=u.tagName;const c=u.rawTagName;let d=u.tagExp;let p=u.attrExpPresent;let f=u.closeIndex;if(this.options.transformTagName){l=this.options.transformTagName(l)}if(r&&n){if(r.tagname!=="!xml"){n=this.saveTextToParentTag(n,r,i,false)}}const h=r;if(h&&this.options.unpairedTags.indexOf(h.tagname)!==-1){r=this.tagsNodeStack.pop();i=i.substring(0,i.lastIndexOf("."))}if(l!==e.tagname){i+=i?"."+l:l}if(this.isItStopNode(this.options.stopNodes,i,l)){let m="";if(d.length>0&&d.lastIndexOf("/")===d.length-1){s=u.closeIndex}else if(this.options.unpairedTags.indexOf(l)!==-1){s=u.closeIndex}else{const y=this.readStopNodeData(t,c,f+1);if(!y)throw new Error(`Unexpected end of ${c}`);s=y.i;m=y.tagContent}const g=new HE(l);if(l!==d&&p){g[":@"]=this.buildAttributesMap(d,i,l)}if(m){m=this.parseTextData(m,l,i,true,p,true,true)}i=i.substr(0,i.lastIndexOf("."));g.add(this.options.textNodeName,m);this.addChild(r,g,i)}else{if(d.length>0&&d.lastIndexOf("/")===d.length-1){if(l[l.length-1]==="/"){l=l.substr(0,l.length-1);i=i.substr(0,i.length-1);d=l}else{d=d.substr(0,d.length-1)}if(this.options.transformTagName){l=this.options.transformTagName(l)}const m=new HE(l);if(l!==d&&p){m[":@"]=this.buildAttributesMap(d,i,l)}this.addChild(r,m,i);i=i.substr(0,i.lastIndexOf("."))}else{const m=new HE(l);this.tagsNodeStack.push(r);if(l!==d&&p){m[":@"]=this.buildAttributesMap(d,i,l)}this.addChild(r,m,i);r=m}n="";s=f}}}else{n+=t[s]}}return e.child},"parseXml");function m3t(t,e,r){const n=this.options.updateTag(e.tagname,r,e[":@"]);if(n===false){}else if(typeof n==="string"){e.tagname=n;t.addChild(e)}else{t.addChild(e)}}o(m3t,"addChild");var g3t=o(function(t){if(this.options.processEntities){for(let e in this.docTypeEntities){const r=this.docTypeEntities[e];t=t.replace(r.regx,r.val)}for(let e in this.lastEntities){const r=this.lastEntities[e];t=t.replace(r.regex,r.val)}if(this.options.htmlEntities){for(let e in this.htmlEntities){const r=this.htmlEntities[e];t=t.replace(r.regex,r.val)}}t=t.replace(this.ampEntity.regex,this.ampEntity.val)}return t},"replaceEntitiesValue");function y3t(t,e,r,n){if(t){if(n===void 0)n=Object.keys(e.child).length===0;t=this.parseTextData(t,e.tagname,r,false,e[":@"]?Object.keys(e[":@"]).length!==0:false,n);if(t!==void 0&&t!=="")e.add(this.options.textNodeName,t);t=""}return t}o(y3t,"saveTextToParentTag");function v3t(t,e,r){const n="*."+r;for(const i in t){const s=t[i];if(n===s||e===s)return true}return false}o(v3t,"isItStopNode");function _3t(t,e,r=">"){let n;let i="";for(let s=e;s<t.length;s++){let a=t[s];if(n){if(a===n)n=""}else if(a==='"'||a==="'"){n=a}else if(a===r[0]){if(r[1]){if(t[s+1]===r[1]){return{data:i,index:s}}}else{return{data:i,index:s}}}else if(a===" "){a=" "}i+=a}}o(_3t,"tagExpWithClosingIndex");function sm(t,e,r,n){const i=t.indexOf(e,r);if(i===-1){throw new Error(n)}else{return i+e.length-1}}o(sm,"findClosingIndex");function lM(t,e,r,n=">"){const i=_3t(t,e+1,n);if(!i)return;let s=i.data;const a=i.index;const u=s.search(/\s/);let l=s;let c=true;if(u!==-1){l=s.substr(0,u).replace(/\s\s*$/,"");s=s.substr(u+1)}const d=l;if(r){const p=l.indexOf(":");if(p!==-1){l=l.substr(p+1);c=l!==i.data.substr(p+1)}}return{tagName:l,tagExp:s,closeIndex:a,attrExpPresent:c,rawTagName:d}}o(lM,"readTagExp");function E3t(t,e,r){const n=r;let i=1;for(;r<t.length;r++){if(t[r]==="<"){if(t[r+1]==="/"){const s=sm(t,">",r,`${e} is not closed`);let a=t.substring(r+2,s).trim();if(a===e){i--;if(i===0){return{tagContent:t.substring(n,r),i:s}}}r=s}else if(t[r+1]==="?"){const s=sm(t,"?>",r+1,"StopNode is not closed.");r=s}else if(t.substr(r+1,3)==="!--"){const s=sm(t,"-->",r+3,"StopNode is not closed.");r=s}else if(t.substr(r+1,2)==="!["){const s=sm(t,"]]>",r,"StopNode is not closed.")-2;r=s}else{const s=lM(t,r,">");if(s){const a=s&&s.tagName;if(a===e&&s.tagExp[s.tagExp.length-1]!=="/"){i++}r=s.closeIndex}}}}}o(E3t,"readStopNodeData");function cM(t,e,r){if(e&&typeof t==="string"){const n=t.trim();if(n==="true")return true;else if(n==="false")return false;else return u3t(t,r)}else{if(dM.isExist(t)){return t}else{return""}}}o(cM,"parseValue");k6e.exports=uM});var j6e=_(q6e=>{"use strict";function b3t(t,e){return L6e(t,e)}o(b3t,"prettify");function L6e(t,e,r){let n;const i={};for(let s=0;s<t.length;s++){const a=t[s];const u=w3t(a);let l="";if(r===void 0)l=u;else l=r+"."+u;if(u===e.textNodeName){if(n===void 0)n=a[u];else n+=""+a[u]}else if(u===void 0){continue}else if(a[u]){let c=L6e(a[u],e,l);const d=T3t(c,e);if(a[":@"]){S3t(c,a[":@"],l,e)}else if(Object.keys(c).length===1&&c[e.textNodeName]!==void 0&&!e.alwaysCreateTextNode){c=c[e.textNodeName]}else if(Object.keys(c).length===0){if(e.alwaysCreateTextNode)c[e.textNodeName]="";else c=""}if(i[u]!==void 0&&i.hasOwnProperty(u)){if(!Array.isArray(i[u])){i[u]=[i[u]]}i[u].push(c)}else{if(e.isArray(u,l,d)){i[u]=[c]}else{i[u]=c}}}}if(typeof n==="string"){if(n.length>0)i[e.textNodeName]=n}else if(n!==void 0)i[e.textNodeName]=n;return i}o(L6e,"compress");function w3t(t){const e=Object.keys(t);for(let r=0;r<e.length;r++){const n=e[r];if(n!==":@")return n}}o(w3t,"propName");function S3t(t,e,r,n){if(e){const i=Object.keys(e);const s=i.length;for(let a=0;a<s;a++){const u=i[a];if(n.isArray(u,r+"."+u,true,true)){t[u]=[e[u]]}else{t[u]=e[u]}}}}o(S3t,"assignAttributes");function T3t(t,e){const{textNodeName:r}=e;const n=Object.keys(t).length;if(n===0){return true}if(n===1&&(t[r]||typeof t[r]==="boolean"||t[r]===0)){return true}return false}o(T3t,"isLeafTag");q6e.prettify=b3t});var F6e=_((rlr,U6e)=>{var{buildOptions:A3t}=C6e();var x3t=$6e();var{prettify:C3t}=j6e();var R3t=sM();var pM=class{static{o(this,"XMLParser")}constructor(e){this.externalEntities={};this.options=A3t(e)}parse(e,r){if(typeof e==="string"){}else if(e.toString){e=e.toString()}else{throw new Error("XML data is accepted in String or Bytes[] form.")}if(r){if(r===true)r={};const s=R3t.validate(e,r);if(s!==true){throw Error(`${s.err.msg}:${s.err.line}:${s.err.col}`)}}const n=new x3t(this.options);n.addExternalEntities(this.externalEntities);const i=n.parseXml(e);if(this.options.preserveOrder||i===void 0)return i;else return C3t(i,this.options)}addEntity(e,r){if(r.indexOf("&")!==-1){throw new Error("Entity value can't have '&'")}else if(e.indexOf("&")!==-1||e.indexOf(";")!==-1){throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'")}else if(r==="&"){throw new Error("An entity with value '&' is not permitted")}else{this.externalEntities[e]=r}}};U6e.exports=pM});var z6e=_((ilr,H6e)=>{var O3t="\n";function N3t(t,e){let r="";if(e.format&&e.indentBy.length>0){r=O3t}return M6e(t,e,"",r)}o(N3t,"toXml");function M6e(t,e,r,n){let i="";let s=false;for(let a=0;a<t.length;a++){const u=t[a];const l=I3t(u);if(l===void 0)continue;let c="";if(r.length===0)c=l;else c=`${r}.${l}`;if(l===e.textNodeName){let m=u[l];if(!P3t(c,e)){m=e.tagValueProcessor(l,m);m=V6e(m,e)}if(s){i+=n}i+=m;s=false;continue}else if(l===e.cdataPropName){if(s){i+=n}i+=`<![CDATA[${u[l][0][e.textNodeName]}]]>`;s=false;continue}else if(l===e.commentPropName){i+=n+`<!--${u[l][0][e.textNodeName]}-->`;s=true;continue}else if(l[0]==="?"){const m=B6e(u[":@"],e);const g=l==="?xml"?"":n;let y=u[l][0][e.textNodeName];y=y.length!==0?" "+y:"";i+=g+`<${l}${y}${m}?>`;s=true;continue}let d=n;if(d!==""){d+=e.indentBy}const p=B6e(u[":@"],e);const f=n+`<${l}${p}`;const h=M6e(u[l],e,c,d);if(e.unpairedTags.indexOf(l)!==-1){if(e.suppressUnpairedNode)i+=f+">";else i+=f+"/>"}else if((!h||h.length===0)&&e.suppressEmptyNode){i+=f+"/>"}else if(h&&h.endsWith(">")){i+=f+`>${h}${n}</${l}>`}else{i+=f+">";if(h&&n!==""&&(h.includes("/>")||h.includes("</"))){i+=n+e.indentBy+h+n}else{i+=h}i+=`</${l}>`}s=true}return i}o(M6e,"arrToStr");function I3t(t){const e=Object.keys(t);for(let r=0;r<e.length;r++){const n=e[r];if(!t.hasOwnProperty(n))continue;if(n!==":@")return n}}o(I3t,"propName");function B6e(t,e){let r="";if(t&&!e.ignoreAttributes){for(let n in t){if(!t.hasOwnProperty(n))continue;let i=e.attributeValueProcessor(n,t[n]);i=V6e(i,e);if(i===true&&e.suppressBooleanAttributes){r+=` ${n.substr(e.attributeNamePrefix.length)}`}else{r+=` ${n.substr(e.attributeNamePrefix.length)}="${i}"`}}}return r}o(B6e,"attr_to_str");function P3t(t,e){t=t.substr(0,t.length-e.textNodeName.length-1);let r=t.substr(t.lastIndexOf(".")+1);for(let n in e.stopNodes){if(e.stopNodes[n]===t||e.stopNodes[n]==="*."+r)return true}return false}o(P3t,"isStopNode");function V6e(t,e){if(t&&t.length>0&&e.processEntities){for(let r=0;r<e.entities.length;r++){const n=e.entities[r];t=t.replace(n.regex,n.val)}}return t}o(V6e,"replaceEntitiesValue");H6e.exports=N3t});var K6e=_((alr,G6e)=>{"use strict";var D3t=z6e();var k3t={attributeNamePrefix:"@_",attributesGroupName:false,textNodeName:"#text",ignoreAttributes:true,cdataPropName:false,format:false,indentBy:" ",suppressEmptyNode:false,suppressUnpairedNode:true,suppressBooleanAttributes:true,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:false,commentPropName:false,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:true,stopNodes:[],oneListGroup:false};function Dp(t){this.options=Object.assign({},k3t,t);if(this.options.ignoreAttributes||this.options.attributesGroupName){this.isAttribute=function(){return false}}else{this.attrPrefixLen=this.options.attributeNamePrefix.length;this.isAttribute=q3t}this.processTextOrObjNode=$3t;if(this.options.format){this.indentate=L3t;this.tagEndChar=">\n";this.newLine="\n"}else{this.indentate=function(){return""};this.tagEndChar=">";this.newLine=""}}o(Dp,"Builder");Dp.prototype.build=function(t){if(this.options.preserveOrder){return D3t(t,this.options)}else{if(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1){t={[this.options.arrayNodeName]:t}}return this.j2x(t,0).val}};Dp.prototype.j2x=function(t,e){let r="";let n="";for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;if(typeof t[i]==="undefined"){if(this.isAttribute(i)){n+=""}}else if(t[i]===null){if(this.isAttribute(i)){n+=""}else if(i[0]==="?"){n+=this.indentate(e)+"<"+i+"?"+this.tagEndChar}else{n+=this.indentate(e)+"<"+i+"/"+this.tagEndChar}}else if(t[i]instanceof Date){n+=this.buildTextValNode(t[i],i,"",e)}else if(typeof t[i]!=="object"){const s=this.isAttribute(i);if(s){r+=this.buildAttrPairStr(s,""+t[i])}else{if(i===this.options.textNodeName){let a=this.options.tagValueProcessor(i,""+t[i]);n+=this.replaceEntitiesValue(a)}else{n+=this.buildTextValNode(t[i],i,"",e)}}}else if(Array.isArray(t[i])){const s=t[i].length;let a="";for(let u=0;u<s;u++){const l=t[i][u];if(typeof l==="undefined"){}else if(l===null){if(i[0]==="?")n+=this.indentate(e)+"<"+i+"?"+this.tagEndChar;else n+=this.indentate(e)+"<"+i+"/"+this.tagEndChar}else if(typeof l==="object"){if(this.options.oneListGroup){a+=this.j2x(l,e+1).val}else{a+=this.processTextOrObjNode(l,i,e)}}else{a+=this.buildTextValNode(l,i,"",e)}}if(this.options.oneListGroup){a=this.buildObjectNode(a,i,"",e)}n+=a}else{if(this.options.attributesGroupName&&i===this.options.attributesGroupName){const s=Object.keys(t[i]);const a=s.length;for(let u=0;u<a;u++){r+=this.buildAttrPairStr(s[u],""+t[i][s[u]])}}else{n+=this.processTextOrObjNode(t[i],i,e)}}}return{attrStr:r,val:n}};Dp.prototype.buildAttrPairStr=function(t,e){e=this.options.attributeValueProcessor(t,""+e);e=this.replaceEntitiesValue(e);if(this.options.suppressBooleanAttributes&&e==="true"){return" "+t}else return" "+t+'="'+e+'"'};function $3t(t,e,r){const n=this.j2x(t,r+1);if(t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1){return this.buildTextValNode(t[this.options.textNodeName],e,n.attrStr,r)}else{return this.buildObjectNode(n.val,e,n.attrStr,r)}}o($3t,"processTextOrObjNode");Dp.prototype.buildObjectNode=function(t,e,r,n){if(t===""){if(e[0]==="?")return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;else{return this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar}}else{let i="</"+e+this.tagEndChar;let s="";if(e[0]==="?"){s="?";i=""}if((r||r==="")&&t.indexOf("<")===-1){return this.indentate(n)+"<"+e+r+s+">"+t+i}else if(this.options.commentPropName!==false&&e===this.options.commentPropName&&s.length===0){return this.indentate(n)+`<!--${t}-->`+this.newLine}else{return this.indentate(n)+"<"+e+r+s+this.tagEndChar+t+this.indentate(n)+i}}};Dp.prototype.closeTag=function(t){let e="";if(this.options.unpairedTags.indexOf(t)!==-1){if(!this.options.suppressUnpairedNode)e="/"}else if(this.options.suppressEmptyNode){e="/"}else{e=`></${t}`}return e};Dp.prototype.buildTextValNode=function(t,e,r,n){if(this.options.cdataPropName!==false&&e===this.options.cdataPropName){return this.indentate(n)+`<![CDATA[${t}]]>`+this.newLine}else if(this.options.commentPropName!==false&&e===this.options.commentPropName){return this.indentate(n)+`<!--${t}-->`+this.newLine}else if(e[0]==="?"){return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar}else{let i=this.options.tagValueProcessor(e,t);i=this.replaceEntitiesValue(i);if(i===""){return this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar}else{return this.indentate(n)+"<"+e+r+">"+i+"</"+e+this.tagEndChar}}};Dp.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities){for(let e=0;e<this.options.entities.length;e++){const r=this.options.entities[e];t=t.replace(r.regex,r.val)}}return t};function L3t(t){return this.options.indentBy.repeat(t)}o(L3t,"indentate");function q3t(t){if(t.startsWith(this.options.attributeNamePrefix)&&t!==this.options.textNodeName){return t.substr(this.attrPrefixLen)}else{return false}}o(q3t,"isAttribute");G6e.exports=Dp});var W6e=_((ulr,Y6e)=>{"use strict";var j3t=sM();var U3t=F6e();var F3t=K6e();Y6e.exports={XMLParser:U3t,XMLValidator:j3t,XMLBuilder:F3t}});var ebe=_(Es=>{"use strict";var B3t=Es&&Es.__createBinding||(Object.create?function(t,e,r,n){if(n===void 0)n=r;var i=Object.getOwnPropertyDescriptor(e,r);if(!i||("get"in i?!e.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return e[r]}}}Object.defineProperty(t,n,i)}:function(t,e,r,n){if(n===void 0)n=r;t[n]=e[r]});var M3t=Es&&Es.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:true,value:e})}:function(t,e){t["default"]=e});var V3t=Es&&Es.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null){for(var r in t)if(r!=="default"&&Object.prototype.hasOwnProperty.call(t,r))B3t(e,t,r)}M3t(e,t);return e};var am=Es&&Es.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)};var Z6e=Es&&Es.__importDefault||function(t){return t&&t.__esModule?t:{"default":t}};var Hc;var ZT;var GE;Object.defineProperty(Es,"__esModule",{value:true});Es.TransferManager=Es.MultiPartUploadError=void 0;var zE=Z6e(PB());var kp=V3t(require("path"));var QT=require("fs");var H3t=qE();var z3t=GS();var J6e=W6e();var XT=Z6e(CE());var G3t=require("crypto");var fM=tm();var Q6e=yl();var K3t=vg();var Y3t=(0,K3t.getPackageJSON)();var W3t=5;var J3t=5;var Q3t=5;var X3t=32*1024*1024;var Z3t=32*1024*1024;var e8t=32*1024*1024;var X6e=5;var t8t="(?:)";var kg={UPLOAD_MANY:"tm.upload_many",DOWNLOAD_MANY:"tm.download_many",UPLOAD_SHARDED:"tm.upload_sharded",DOWNLOAD_SHARDED:"tm.download_sharded"};var r8t=o((t,e,r,n)=>{return new hM(t,e,r,n)},"defaultMultiPartGenerator");var KE=class extends Error{static{o(this,"MultiPartUploadError")}constructor(e,r,n){super(e);this.uploadId=r;this.partsMap=n}};Es.MultiPartUploadError=KE;var hM=class{static{o(this,"XMLMultiPartUploadHelper")}constructor(e,r,n,i){Hc.add(this);this.authClient=e.storage.authClient||new z3t.GoogleAuth;this.uploadId=n||"";this.bucket=e;this.fileName=r;this.baseUrl=`https://${e.name}.${new URL(this.bucket.storage.apiEndpoint).hostname}/${r}`;this.xmlBuilder=new J6e.XMLBuilder({arrayNodeName:"Part"});this.xmlParser=new J6e.XMLParser;this.partsMap=i||new Map;this.retryOptions={retries:this.bucket.storage.retryOptions.maxRetries,factor:this.bucket.storage.retryOptions.retryDelayMultiplier,maxTimeout:this.bucket.storage.retryOptions.maxRetryDelay*1e3,maxRetryTime:this.bucket.storage.retryOptions.totalTimeout*1e3}}async initiateUpload(e={}){const r=`${this.baseUrl}?uploads`;return(0,XT.default)(async n=>{try{const i=await this.authClient.request({headers:am(this,Hc,"m",ZT).call(this,e),method:"POST",url:r});if(i.data&&i.data.error){throw i.data.error}const s=this.xmlParser.parse(i.data);this.uploadId=s.InitiateMultipartUploadResult.UploadId}catch(i){am(this,Hc,"m",GE).call(this,i,n)}},this.retryOptions)}async uploadPart(e,r,n){const i=`${this.baseUrl}?partNumber=${e}&uploadId=${this.uploadId}`;let s=am(this,Hc,"m",ZT).call(this);if(n==="md5"){const a=(0,G3t.createHash)("md5").update(r).digest("base64");s={"Content-MD5":a}}return(0,XT.default)(async a=>{try{const u=await this.authClient.request({url:i,method:"PUT",body:r,headers:s});if(u.data&&u.data.error){throw u.data.error}this.partsMap.set(e,u.headers["etag"])}catch(u){am(this,Hc,"m",GE).call(this,u,a)}},this.retryOptions)}async completeUpload(){const e=`${this.baseUrl}?uploadId=${this.uploadId}`;const r=new Map([...this.partsMap.entries()].sort((s,a)=>s[0]-a[0]));const n=[];for(const s of r.entries()){n.push({PartNumber:s[0],ETag:s[1]})}const i=`<CompleteMultipartUpload>${this.xmlBuilder.build(n)}</CompleteMultipartUpload>`;return(0,XT.default)(async s=>{try{const a=await this.authClient.request({headers:am(this,Hc,"m",ZT).call(this),url:e,method:"POST",body:i});if(a.data&&a.data.error){throw a.data.error}return a}catch(a){am(this,Hc,"m",GE).call(this,a,s);return}},this.retryOptions)}async abortUpload(){const e=`${this.baseUrl}?uploadId=${this.uploadId}`;return(0,XT.default)(async r=>{try{const n=await this.authClient.request({url:e,method:"DELETE"});if(n.data&&n.data.error){throw n.data.error}}catch(n){am(this,Hc,"m",GE).call(this,n,r);return}},this.retryOptions)}};Hc=new WeakSet,ZT=o(function t(e={}){let r=false;let n=false;for(const[i,s]of Object.entries(e)){if(i.toLocaleLowerCase().trim()==="x-goog-api-client"){r=true;if(!s.includes(kg.UPLOAD_SHARDED)){e[i]=`${s} gccl-gcs-cmd/${kg.UPLOAD_SHARDED}`}}else if(i.toLocaleLowerCase().trim()==="user-agent"){n=true}}if(!r){e["x-goog-api-client"]=`${(0,Q6e.getRuntimeTrackingString)()} gccl/${Y3t.version} gccl-gcs-cmd/${kg.UPLOAD_SHARDED}`}if(!n){e["User-Agent"]=(0,Q6e.getUserAgentString)()}return e},"_XMLMultiPartUploadHelper_setGoogApiClientHeaders"),GE=o(function t(e,r){if(this.bucket.storage.retryOptions.autoRetry&&this.bucket.storage.retryOptions.retryableErrorFn(e)){throw e}else{r(e)}},"_XMLMultiPartUploadHelper_handleErrorResponse");var mM=class{static{o(this,"TransferManager")}constructor(e){this.bucket=e}async uploadManyFiles(e,r={}){var n;if(r.skipIfExists&&((n=r.passthroughOptions)===null||n===void 0?void 0:n.preconditionOpts)){r.passthroughOptions.preconditionOpts.ifGenerationMatch=0}else if(r.skipIfExists&&r.passthroughOptions===void 0){r.passthroughOptions={preconditionOpts:{ifGenerationMatch:0}}}const i=(0,zE.default)(r.concurrencyLimit||W3t);const s=[];let a=[];if(!Array.isArray(e)){for await(const u of this.getPathsFromDirectory(e)){a.push(u)}}else{a=e}for(const u of a){const l=await QT.promises.lstat(u);if(l.isDirectory()){continue}const c={...r.passthroughOptions,[fM.GCCL_GCS_CMD_KEY]:kg.UPLOAD_MANY};c.destination=u.split(kp.sep).join(kp.posix.sep);if(r.prefix){c.destination=kp.posix.join(...r.prefix.split(kp.sep),c.destination)}s.push(i(()=>this.bucket.upload(u,c)))}return Promise.all(s)}async downloadManyFiles(e,r={}){const n=(0,zE.default)(r.concurrencyLimit||J3t);const i=[];let s=[];if(!Array.isArray(e)){const l=await this.bucket.getFiles({prefix:e});s=l[0]}else{s=e.map(l=>{if(typeof l==="string"){return this.bucket.file(l)}return l})}const a=r.stripPrefix?`^${r.stripPrefix}`:t8t;const u=new RegExp(a,"g");for(const l of s){const c={...r.passthroughOptions,[fM.GCCL_GCS_CMD_KEY]:kg.DOWNLOAD_MANY};if(r.prefix){c.destination=kp.join(r.prefix||"",c.destination||"",l.name)}if(r.stripPrefix){c.destination=l.name.replace(u,"")}i.push(n(()=>l.download(c)))}return Promise.all(i)}async downloadFileInChunks(e,r={}){let n=r.chunkSizeBytes||Z3t;let i=(0,zE.default)(r.concurrencyLimit||Q3t);const s=[];const a=typeof e==="string"?this.bucket.file(e):e;const u=await a.get();const l=parseInt(u[0].metadata.size.toString());if(l<X3t){i=(0,zE.default)(1);n=l}let c=0;const d=r.destination||kp.basename(a.name);const p=await QT.promises.open(d,"w");while(c<l){const h=c;let m=c+n-1;m=m>l?l:m;s.push(i(async()=>{const g=await a.download({start:h,end:m,[fM.GCCL_GCS_CMD_KEY]:kg.DOWNLOAD_SHARDED});return p.write(g[0],0,g[0].length,h)}));c+=n}let f;try{const h=await Promise.all(s);f=h.map(m=>m.buffer);if(r.validation==="crc32c"){await H3t.CRC32C.fromFile(d)}return f}finally{p.close()}}async uploadFileInChunks(e,r={},n=r8t){const i=r.chunkSizeBytes||e8t;const s=(0,zE.default)(r.concurrencyLimit||X6e);const a=r.maxQueueSize||r.concurrencyLimit||X6e;const u=r.uploadName||kp.basename(e);const l=n(this.bucket,u,r.uploadId,r.partsMap);let c=1;let d=[];try{if(r.uploadId===void 0){await l.initiateUpload(r.headers)}const p=l.partsMap.size*i;const f=(0,QT.createReadStream)(e,{highWaterMark:i,start:p});for await(const h of f){if(d.length>=a){await Promise.all(d);d=[]}d.push(s(()=>l.uploadPart(c++,h,r.validation)))}await Promise.all(d);return await l.completeUpload()}catch(p){if((r.autoAbortFailure===void 0||r.autoAbortFailure)&&l.uploadId){try{await l.abortUpload();return}catch(f){throw new KE(f.message,l.uploadId,l.partsMap)}}throw new KE(p.message,l.uploadId,l.partsMap)}}async*getPathsFromDirectory(e){const r=await QT.promises.readdir(e,{withFileTypes:true});for(const n of r){const i=kp.join(e,n.name);n.isDirectory()?yield*this.getPathsFromDirectory(i):yield i}}};Es.TransferManager=mM});var rbe=_(fn=>{"use strict";var n8t=fn&&fn.__createBinding||(Object.create?function(t,e,r,n){if(n===void 0)n=r;var i=Object.getOwnPropertyDescriptor(e,r);if(!i||("get"in i?!e.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return e[r]}}}Object.defineProperty(t,n,i)}:function(t,e,r,n){if(n===void 0)n=r;t[n]=e[r]});var gM=fn&&fn.__exportStar||function(t,e){for(var r in t)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r))n8t(e,t,r)};Object.defineProperty(fn,"__esModule",{value:true});fn.Notification=fn.Iam=fn.HmacKey=fn.File=fn.Channel=fn.Bucket=fn.Storage=fn.IdempotencyStrategy=fn.ApiError=void 0;var i8t=Tp();Object.defineProperty(fn,"ApiError",{enumerable:true,get:function(){return i8t.ApiError}});var tbe=Rg();Object.defineProperty(fn,"IdempotencyStrategy",{enumerable:true,get:function(){return tbe.IdempotencyStrategy}});Object.defineProperty(fn,"Storage",{enumerable:true,get:function(){return tbe.Storage}});var s8t=UT();Object.defineProperty(fn,"Bucket",{enumerable:true,get:function(){return s8t.Bucket}});gM(qE(),fn);var a8t=eM();Object.defineProperty(fn,"Channel",{enumerable:true,get:function(){return a8t.Channel}});var o8t=jE();Object.defineProperty(fn,"File",{enumerable:true,get:function(){return o8t.File}});gM(HB(),fn);var u8t=tM();Object.defineProperty(fn,"HmacKey",{enumerable:true,get:function(){return u8t.HmacKey}});var l8t=WB();Object.defineProperty(fn,"Iam",{enumerable:true,get:function(){return l8t.Iam}});var c8t=JB();Object.defineProperty(fn,"Notification",{enumerable:true,get:function(){return c8t.Notification}});gM(ebe(),fn)});var vM=_(hr=>{"use strict";var yM=hr&&hr.__importDefault||function(t){return t&&t.__esModule?t:{"default":t}};Object.defineProperty(hr,"__esModule",{value:true});hr.deleteFolder=hr.untar=hr.tarFolderContent=hr.getParentDirFilename=hr.safePath=hr.UnsafePathError=hr.ensureDirectoryExists=hr.mkdirForFilePathIfNotExits=hr.mkdirIfNotExists=hr.listFolderContents=hr.listFolders=hr.isNotFileOrDirectory=hr.dirExists=hr.deleteFile=hr.fileExists=void 0;var nbe=yM(require("child_process"));var Lp=yM(require("fs/promises"));var $p=yM(require("path"));var ibe=[".git","node_modules",".yarn",".DS_Store"];async function d8t(t){try{const e=await Lp.default.stat(t);return e.isFile()}catch(e){return false}}o(d8t,"fileExists");hr.fileExists=d8t;async function p8t(t,e){return await Lp.default.rm(t,e)}o(p8t,"deleteFile");hr.deleteFile=p8t;async function t7(t){try{const e=await Lp.default.stat(t);return e.isDirectory()}catch(e){return false}}o(t7,"dirExists");hr.dirExists=t7;async function f8t(t){try{await Lp.default.stat(t);return false}catch(e){return true}}o(f8t,"isNotFileOrDirectory");hr.isNotFileOrDirectory=f8t;function h8t(t,e){const r=new RegExp(`(.*)(\\/${e})$|(.*)(${e}\\/)`);const n=t.match(r);if(!n){return""}const i=t.split(n[0]);return i[1]===""?"":`/${i[1]}`}o(h8t,"getParentDirectory");async function m8t(t){if(!await t7(t)){return[]}const e=await Lp.default.readdir(t,{withFileTypes:true});const r=[];for await(const n of e){if(!ibe.includes(n.name)){if(n.isDirectory()){r.push(n.name)}}}return r}o(m8t,"listFolders");hr.listFolders=m8t;async function sbe(t,e,r=true){const n=h8t(t,e);const i=await Lp.default.readdir(t,{withFileTypes:true});const s=[];for await(const a of i){if(!ibe.includes(a.name)||!r){if(a.isDirectory()){const u=await sbe($p.default.join(t,a.name),e,r);s.push(...u)}else{s.push($p.default.join(n,a.name))}}}return s}o(sbe,"listFolderContents");hr.listFolderContents=sbe;var g8t=o(async t=>{if(await t7(t)){return true}await Lp.default.mkdir(t,{recursive:true})},"mkdirIfNotExists");hr.mkdirIfNotExists=g8t;var y8t=o(async t=>{const e=$p.default.dirname(t);return(0,hr.mkdirIfNotExists)(e)},"mkdirForFilePathIfNotExits");hr.mkdirForFilePathIfNotExits=y8t;hr.ensureDirectoryExists=hr.mkdirForFilePathIfNotExits;var e7=class extends Error{static{o(this,"UnsafePathError")}constructor(e){super(e)}};hr.UnsafePathError=e7;function v8t(t){const e=o(r=>{if(!r.startsWith(t)){throw new e7(`Resolved path is not part of the project.`)}return r},"ensureSafePath");return{resolve:(...r)=>e($p.default.resolve(...r))}}o(v8t,"safePath");hr.safePath=v8t;function _8t(t){return`${$p.default.basename($p.default.dirname(t))}/${$p.default.basename(t)}`}o(_8t,"getParentDirFilename");hr.getParentDirFilename=_8t;function E8t(t,e,r,n){const i=$p.default.join(n,r);nbe.default.execSync(`tar --exclude='.git/' --exclude='dist/' -czf ${i} ${e}`,{cwd:t});return i}o(E8t,"tarFolderContent");hr.tarFolderContent=E8t;function b8t(t,e,r,n=false){nbe.default.execSync(`tar -xf ${e} ${n?"--strip-components=1 ":""}-C ${r}`,{cwd:t})}o(b8t,"untar");hr.untar=b8t;async function w8t(t){if(await t7(t)){return await Lp.default.rm(t,{recursive:true})}}o(w8t,"deleteFolder");hr.deleteFolder=w8t});var cbe=_(er=>{"use strict";var S8t=er&&er.__createBinding||(Object.create?function(t,e,r,n){if(n===void 0)n=r;var i=Object.getOwnPropertyDescriptor(e,r);if(!i||("get"in i?!e.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return e[r]}}}Object.defineProperty(t,n,i)}:function(t,e,r,n){if(n===void 0)n=r;t[n]=e[r]});var T8t=er&&er.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:true,value:e})}:function(t,e){t["default"]=e});var A8t=er&&er.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null){for(var r in t)if(r!=="default"&&Object.prototype.hasOwnProperty.call(t,r))S8t(e,t,r)}T8t(e,t);return e};var abe=er&&er.__importDefault||function(t){return t&&t.__esModule?t:{"default":t}};Object.defineProperty(er,"__esModule",{value:true});er.uploadFolderAndRemoveMissingSourceFiles=er.cleanGCPFilePaths=er.uploadFolder=er.deleteDirectory=er.deleteFile=er.listFolderContent=er.readFileStream=er.fileExists=er.getFileContents=er.downloadFile=er.uploadFromMemory=er.uploadFile=er.getBucket=er.BucketName=void 0;var x8t=rbe();var zc=abe(require("path"));var Tl=abe(Ca());var r7=A8t(vM());var om;(function(t){t[t["Archive"]=0]="Archive";t[t["Bundle"]=1]="Bundle";t[t["SourceCode"]=2]="SourceCode";t[t["Sources"]=3]="Sources";t[t["DevPortalBuild"]=4]="DevPortalBuild"})(om||(er.BucketName=om={}));function Al(t){let e;if(t===om.Archive){if(Tl.default.GCP_STORAGE_ARCHIVE_BUCKET_NAME===void 0){throw new Error(`Environment variable GCP_STORAGE_ARCHIVE_BUCKET_NAME must be set`)}e=Tl.default.GCP_STORAGE_ARCHIVE_BUCKET_NAME}else if(t===om.Bundle){if(Tl.default.GCP_STORAGE_BUNDLE_BUCKET_NAME===void 0){throw new Error(`Environment variable GCP_STORAGE_BUNDLE_BUCKET_NAME must be set`)}e=Tl.default.GCP_STORAGE_BUNDLE_BUCKET_NAME}else if(t===om.SourceCode){if(Tl.default.GCP_STORAGE_SOURCE_CODE_BUCKET_NAME===void 0){throw new Error(`Environment variable GCP_STORAGE_SOURCE_CODE_BUCKET_NAME must be set`)}e=Tl.default.GCP_STORAGE_SOURCE_CODE_BUCKET_NAME}else if(t===om.Sources){if(Tl.default.GCP_STORAGE_SOURCES_BUCKET_NAME===void 0){throw new Error(`Environment variable GCP_STORAGE_SOURCES_BUCKET_NAME must be set`)}e=Tl.default.GCP_STORAGE_SOURCES_BUCKET_NAME}else if(t===om.DevPortalBuild){if(Tl.default.GCP_STORAGE_DEV_PORTAL_BUILD_BUCKET_NAME===void 0){throw new Error(`Environment variable GCP_STORAGE_DEV_PORTAL_BUILD_BUCKET_NAME must be set`)}e=Tl.default.GCP_STORAGE_DEV_PORTAL_BUILD_BUCKET_NAME}else{throw new Error("Invalid value for argument 'bucketName'")}const r=new x8t.Storage;return r.bucket(e)}o(Al,"getBucket");er.getBucket=Al;async function _M(t,e,r,n,i){try{await Al(t).upload(e,{destination:r,metadata:i})}catch(s){n.info(`File upload for ${t}/${r} ran into an issue`);n.error(s)}}o(_M,"uploadFile");er.uploadFile=_M;async function C8t(t,e,r,n,i){try{await Al(t).file(r).save(e,i)}catch(s){n.info(`From Memory upload for ${t}/${r} ran into an issue`);n.error(s)}}o(C8t,"uploadFromMemory");er.uploadFromMemory=C8t;async function R8t(t,e,r,n){try{const i={destination:r};await Al(t).file(e).download(i);n.info(`File ${t}/${e} successfully downloaded to ${r}`)}catch(i){n.info(`Downloading file ${t}/${e} ran into an issue`);n.error(i)}}o(R8t,"downloadFile");er.downloadFile=R8t;async function O8t(t,e,r){try{const n=await Al(t).file(e).download();r.info(`File ${t}/${e} successfully downloaded to memory`);return n.toString()}catch(n){r.info(`Downloading file ${t}/${e} ran into an issue`);r.error(n)}}o(O8t,"getFileContents");er.getFileContents=O8t;async function N8t(t,e,r){try{r.info(`Check if file ${t}/${e} exists in storage`);const n=await Al(t).file(e).exists();return n[0]}catch(n){r.info(`Ran into an issue while checking if a file ${t}/${e} exists in storage`);r.error(n);return false}}o(N8t,"fileExists");er.fileExists=N8t;function I8t(t,e,r){r.info(`Reading file ${t}/${e} from storage`);return Al(t).file(e).createReadStream({decompress:true})}o(I8t,"readFileStream");er.readFileStream=I8t;async function obe(t,e,r){const n=new Set;try{const[i]=await Al(t).getFiles({prefix:e});for(let s=0;s<i.length;s++){const a=i[s];const u=a.name.replace(e,"");if(u===""){continue}const l=u.split("/");if(l.length>1){for(let c=0;c<l.length-1;c++){const d=`/${l[c]}`;if(!n.has(d)){n.add(d)}}}n.add(`/${u}`)}}catch(i){r.info(`Ran into an issue while listing files in ${t}/${e} storage path`);r.error(i)}return[...n]}o(obe,"listFolderContent");er.listFolderContent=obe;async function ube(t,e,r){try{r.info(`Deleting file ${t}/${e} from storage`);await Al(t).file(e).delete()}catch(n){r.warn(`Failed to delete file ${t}/${e} from storage`);r.error(n)}}o(ube,"deleteFile");er.deleteFile=ube;async function P8t(t,e,r){try{r.info(`Deleting directory ${t}/${e} from storage`);await Al(t).deleteFiles({prefix:e})}catch(n){r.info(`Failed to delete directory ${t}/${e} from storage`);r.error(n)}}o(P8t,"deleteDirectory");er.deleteDirectory=P8t;async function D8t(t,e,r,n,i){try{n.info(`Upload folder ${zc.default.basename(e)}`);if(await r7.dirExists(e)){const s=await r7.listFolderContents(e,zc.default.basename(e));if(s&&s.length>0){await Promise.all(s.map(async a=>{return await _M(t,zc.default.join(e,a),zc.default.join(r,a),n,i)}))}}}catch(s){n.warn(`Failed to upload directory ${e} to bucket ${t}`,s)}}o(D8t,"uploadFolder");er.uploadFolder=D8t;function lbe(t){const e=t.filter(r=>r!=="/").map(r=>r.replace(/^\/+/,""));return e}o(lbe,"cleanGCPFilePaths");er.cleanGCPFilePaths=lbe;async function k8t(t,e,r,n,i){try{n.info(`uploadFolderAndRemoveMissingSourceFiles: upload folder ${zc.default.basename(e)}`);if(await r7.dirExists(e)){const s=await obe(t,r,n);const a=lbe(s);const u=await r7.listFolderContents(e,zc.default.basename(e));const l=a.filter(c=>!u.includes(c)).map(c=>zc.default.join(r,c));await Promise.all(l.map(async c=>{return await ube(t,c,n)}));await Promise.all(u.map(async c=>{return await _M(t,zc.default.join(e,c),zc.default.join(r,c),n,i)}))}}catch(s){n.warn(`Failed to upload directory ${e} to bucket ${t}`,s)}}o(k8t,"uploadFolderAndRemoveMissingSourceFiles");er.uploadFolderAndRemoveMissingSourceFiles=k8t});var dbe=_(n7=>{"use strict";Object.defineProperty(n7,"__esModule",{value:true});n7.graphQL=void 0;var xl=Qs();async function $8t(t,e,r){const n=await fetch(`https://api.github.com/graphql`,{method:"POST",headers:{Authorization:`Bearer ${e}`},body:t});if(n.status===401){r.warn("Failed GitHub GraphQL query with status 401. User token might have been revoked directly in GitHub.");throw new xl.ApiError(xl.Problems.SOURCE_CONTROL_GH_APP_REVOKED_ACCESS)}if(n.status===403){r.warn("Failed GitHub GraphQL query with status 403. User token does not have correct permissions to query this GitHub API.");throw new xl.ApiError(xl.Problems.SOURCE_CONTROL_GH_APP_CONFIG_REQUIRED)}if(n.status===404){r.warn("Failed GitHub GraphQL query with status 404. User token has been revoked and can not query this GitHub API.");throw new xl.ApiError(xl.Problems.SOURCE_CONTROL_GH_APP_CONFIG_REQUIRED)}if(n.status===400){const i=await n.json();r.warn("Failed GitHub GraphQL query with status 400. A malformed query was ran against the GitHub API.",i);throw new xl.ApiError(xl.Problems.BAD_REQUEST)}if(n.status!==200&&n.status!==304){r.warn(`Failed GitHub GraphQL query with status ${n.status}. There was an unexpected error querying the GitHub API.`);throw new xl.ApiError(xl.Problems.SOURCE_CONTROL_GH_APP_CONFIG_REQUIRED)}return n}o($8t,"graphQL");n7.graphQL=$8t});var ybe=_(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:true});Ao.SourceControlProvider=Ao.PlanType=Ao.EnvironmentType=Ao.EnvironmentTarget=Ao.DeploymentState=void 0;var pbe;(function(t){t[t["IS_STARTING"]=0]="IS_STARTING";t[t["STARTED"]=1]="STARTED";t[t["STOPPED"]=2]="STOPPED";t[t["ERRORED"]=3]="ERRORED"})(pbe||(Ao.DeploymentState=pbe={}));var fbe;(function(t){t["CLOUDFLARE"]="CLOUDFLARE";t["KNATIVE"]="KNATIVE"})(fbe||(Ao.EnvironmentTarget=fbe={}));var hbe;(function(t){t["PRODUCTION"]="PRODUCTION";t["PREVIEW"]="PREVIEW";t["WORKING_COPY"]="WORKING_COPY"})(hbe||(Ao.EnvironmentType=hbe={}));var mbe;(function(t){t["FREE_V1"]="FREE_V1";t["BUILDER_V1"]="BUILDER_V1";t["BUSINESS_V1"]="BUSINESS_V1";t["CUSTOM"]="CUSTOM";t["EMPLOYEE"]="EMPLOYEE";t["CUSTOM_TRIAL_V1"]="CUSTOM_TRIAL_V1"})(mbe||(Ao.PlanType=mbe={}));var gbe;(function(t){t["GITHUB"]="GITHUB";t["GITLAB"]="GITLAB";t["BITBUCKET"]="BITBUCKET"})(gbe||(Ao.SourceControlProvider=gbe={}))});var _be=_(vbe=>{"use strict";Object.defineProperty(vbe,"__esModule",{value:true})});var Ebe=_(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:true});xo.INTERNAL_ROUTE_VENDOR_TAG=xo.ZUPLO_OPEN_API_ROUTE_KEY=xo.ZUPLO_OPEN_API_PATH_KEY=xo.ZUPLO_OPEN_API_VENDOR_PREFIX=void 0;xo.ZUPLO_OPEN_API_VENDOR_PREFIX="x-zuplo";xo.ZUPLO_OPEN_API_PATH_KEY=`${xo.ZUPLO_OPEN_API_VENDOR_PREFIX}-path`;xo.ZUPLO_OPEN_API_ROUTE_KEY=`${xo.ZUPLO_OPEN_API_VENDOR_PREFIX}-route`;xo.INTERNAL_ROUTE_VENDOR_TAG="x-internal"});var bbe=_((blr,L8t)=>{L8t.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/dev-portal.json",title:"Dev Portal Config",description:"",type:"object",required:[],additionalProperties:false,$defs:{ApiKeysConfig:{type:"object",additionalProperties:false,required:["bucketName"],properties:{bucketName:{type:"string"},apiKey:{type:"string"}}},DevPortalOAuthClientConfigLegacy:{type:"object",deprecated:true,additionalProperties:false,required:["clientId"],properties:{clientId:{type:"string"},audience:{type:"string",description:"The audience of the API (i.e. the Zup's URL)\nOkta: not required\nAuth0: https://my-api.example.com/"}}},DevPortalOAuthClientCredentialsConfig:{type:"object",$comment:"The OAuth management feature has been deprecated. This is no longer used.",deprecated:true,description:"This is the M2M configuration used to authenticate with OAuth provider in order to manage OAuth clients",required:["clientId","clientSecret"],additionalProperties:false,properties:{clientId:{type:"string"}}},DevPortalAPIKeyCredentialConfig:{type:"object",$comment:"The OAuth management feature has been deprecated. This is no longer used.",deprecated:true,description:"API Key credentials to access identity provider API",required:["apiKey"],additionalProperties:false,properties:{apiKey:{type:"string"}}},DevPortalOAuthConfigLegacy:{type:"object",$comment:"Use the new DevPortalOAuthConfig instead. This is only for backwards compatibility.",deprecated:true,description:"Settings for OAuth that is used to authenticate end-users to the developer portal and (optionally) for configuring issuing of OAuth Client Consumers using the identity provider",required:["provider","authority"],additionalProperties:false,properties:{provider:{type:"string",enum:["okta","auth0","azure-ad","clerk","oidc"]},authority:{type:"string",description:"This is the full URL of the authorization server.\nOkta: https://dev-1235.okta.com/oauth2/aus123152352342\nAuth0: https://my-account.us.auth0.com\nAzure Active Directory: https://login.microsoftonline.com/{tenant}/v2.0\nClerk: https://your-account-23.clerk.accounts.dev"},jwksUrl:{type:"string",description:"The url of of the JWKS"},devPortalClient:{description:"This is the client that is used to authenticate end-users to the Zuplo developer portal",$ref:"#/$defs/DevPortalOAuthClientConfigLegacy"},managementClient:{oneOf:[{$ref:"#/$defs/DevPortalOAuthClientCredentialsConfig"},{$ref:"#/$defs/DevPortalAPIKeyCredentialConfig"}]}}},DevPortalOAuthConfig:{type:"object",description:"Settings for OAuth that is used to authenticate end-users to the developer portal and (optionally) for configuring issuing of OAuth Client Consumers using the identity provider.",required:["provider","issuer","clientId"],additionalProperties:false,properties:{provider:{type:"string",enum:["okta","auth0","azure-ad","clerk","oidc"]},issuer:{type:"string",description:"This is the full URL of the authorization server.\nOkta: https://dev-1235.okta.com/oauth2/aus123152352342\nAuth0: https://my-account.us.auth0.com\nAzure Active Directory: https://login.microsoftonline.com/{tenant}/v2.0\nClerk: https://your-account-23.clerk.accounts.dev"},clientId:{type:"string",description:"The client ID of the OAuth client that is used to authenticate end-users to the Zuplo developer portal."},clientSecret:{type:"string",description:"The client secret of the OAuth client that is used to authenticate end-users to the Zuplo developer portal."},audience:{type:"string",description:"The audience of the API (i.e. the Zup's URL)\nOkta: not required\nAuth0: https://my-api.example.com/"},scope:{type:"string",description:"The scope of the authorization request. This is typically not required and defaults to 'openid profile email'."}}},DevPortalExternalAuthConfig:{type:"object",description:"Settings for external auth that is used to authenticate end-users to the developer portal",additionalProperties:false,required:["loginUrl","provider","logoutUrl"],properties:{provider:{type:"string",enum:["external"]},loginUrl:{type:"string",description:"The URL of your external login page"},logoutUrl:{type:"string",description:"The URL of your external logout endpoint"}}},DevPortalAuthConfig:{type:"object",oneOf:[{$ref:"#/$defs/DevPortalOAuthConfig"},{$ref:"#/$defs/DevPortalOAuthConfigLegacy"},{$ref:"#/$defs/DevPortalExternalAuthConfig"}]},DevPortalMonetizationConfig:{type:"object",description:"Settings for monetization features like self-serve checkout and subscription management",oneOf:[{$ref:"#/$defs/DevPortalStripeMonetizationConfig"}]},DevPortalStripeMonetizationConfig:{type:"object",description:"Settings used to configure Stripe for monetization features like self-serve checkout and subscription management",additionalProperties:false,required:["provider","publishableKey","pricingTableId","secretKey"],properties:{provider:{type:"string",enum:["stripe"]},publishableKey:{type:"string",description:"Your Stripe publishable key - found under Developers > API keys > Standard keys"},secretKey:{type:"string",description:"Your Stripe secret key - found under Developers > API keys > Standard keys"},pricingTableId:{type:"string",description:"The ID of the pricing table that will be used to display pricing information to end-users"},meteringBucketId:{type:"string",description:"The ID of the metering bucket that will be used to track usage of the API"}}}},properties:{$schema:{type:"string"},enabled:{description:"If the developer portal is enabled",type:"boolean",default:true},authentication:{description:"Authentication configuration",$ref:"#/$defs/DevPortalAuthConfig"},monetization:{description:"Monetization configuration",$ref:"#/$defs/DevPortalMonetizationConfig"},sitePathname:{type:"string",default:"/docs"},faviconUrl:{type:"string",description:"The favicon url"},pageTitle:{type:"string",description:"The default page title"},enableAuthentication:{type:"boolean",description:"If sign in to the developer portal is enabled."},enableMonetization:{type:"boolean",description:"If monetization features like self-serve checkout and subscription management are enabled."},enableMetering:{type:"boolean",description:"If monetization features like self-serve checkout and subscription management are enabled."},requireAuthentication:{type:"boolean",default:false,description:"If authentication is required to access the developer portal. If false, the developer portal will be publicly accessible."},authorizePathname:{type:"string",default:"/oauth/authorize",description:"The path that starts the OAuth flow for third-party-apps"},apiKeys:{description:"Api Keys Service Configuration",$ref:"#/$defs/ApiKeysConfig"},generateExamples:{type:"boolean",default:true,description:"If false, the developer portal will no longer generate examples for endpoints that do not have examples defined"}}}});var JE=_(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:true});qr.regexpCode=qr.getEsmExportName=qr.getProperty=qr.safeStringify=qr.stringify=qr.strConcat=qr.addCodeArg=qr.str=qr._=qr.nil=qr._Code=qr.Name=qr.IDENTIFIER=qr._CodeOrName=void 0;var YE=class{static{o(this,"_CodeOrName")}};qr._CodeOrName=YE;qr.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var um=class extends YE{static{o(this,"Name")}constructor(e){super();if(!qr.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return false}get names(){return{[this.str]:1}}};qr.Name=um;var Co=class extends YE{static{o(this,"_Code")}constructor(e){super();this._items=typeof e==="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return false;const e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,n)=>{if(n instanceof um)r[n.str]=(r[n.str]||0)+1;return r},{})}};qr._Code=Co;qr.nil=new Co("");function wbe(t,...e){const r=[t[0]];let n=0;while(n<e.length){bM(r,e[n]);r.push(t[++n])}return new Co(r)}o(wbe,"_");qr._=wbe;var EM=new Co("+");function Sbe(t,...e){const r=[WE(t[0])];let n=0;while(n<e.length){r.push(EM);bM(r,e[n]);r.push(EM,WE(t[++n]))}q8t(r);return new Co(r)}o(Sbe,"str");qr.str=Sbe;function bM(t,e){if(e instanceof Co)t.push(...e._items);else if(e instanceof um)t.push(e);else t.push(F8t(e))}o(bM,"addCodeArg");qr.addCodeArg=bM;function q8t(t){let e=1;while(e<t.length-1){if(t[e]===EM){const r=j8t(t[e-1],t[e+1]);if(r!==void 0){t.splice(e-1,3,r);continue}t[e++]="+"}e++}}o(q8t,"optimize");function j8t(t,e){if(e==='""')return t;if(t==='""')return e;if(typeof t=="string"){if(e instanceof um||t[t.length-1]!=='"')return;if(typeof e!="string")return`${t.slice(0,-1)}${e}"`;if(e[0]==='"')return t.slice(0,-1)+e.slice(1);return}if(typeof e=="string"&&e[0]==='"'&&!(t instanceof um))return`"${t}${e.slice(1)}`;return}o(j8t,"mergeExprItems");function U8t(t,e){return e.emptyStr()?t:t.emptyStr()?e:Sbe`${t}${e}`}o(U8t,"strConcat");qr.strConcat=U8t;function F8t(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:WE(Array.isArray(t)?t.join(","):t)}o(F8t,"interpolate");function B8t(t){return new Co(WE(t))}o(B8t,"stringify");qr.stringify=B8t;function WE(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}o(WE,"safeStringify");qr.safeStringify=WE;function M8t(t){return typeof t=="string"&&qr.IDENTIFIER.test(t)?new Co(`.${t}`):wbe`[${t}]`}o(M8t,"getProperty");qr.getProperty=M8t;function V8t(t){if(typeof t=="string"&&qr.IDENTIFIER.test(t)){return new Co(`${t}`)}throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}o(V8t,"getEsmExportName");qr.getEsmExportName=V8t;function H8t(t){return new Co(t.toString())}o(H8t,"regexpCode");qr.regexpCode=H8t});var AM=_(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:true});js.ValueScope=js.ValueScopeName=js.Scope=js.varKinds=js.UsedValueState=void 0;var ga=JE();var wM=class extends Error{static{o(this,"ValueError")}constructor(e){super(`CodeGen: "code" for ${e} not defined`);this.value=e.value}};var SM;(function(t){t[t["Started"]=0]="Started";t[t["Completed"]=1]="Completed"})(SM=js.UsedValueState||(js.UsedValueState={}));js.varKinds={const:new ga.Name("const"),let:new ga.Name("let"),var:new ga.Name("var")};var i7=class{static{o(this,"Scope")}constructor({prefixes:e,parent:r}={}){this._names={};this._prefixes=e;this._parent=r}toName(e){return e instanceof ga.Name?e:this.name(e)}name(e){return new ga.Name(this._newName(e))}_newName(e){const r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,n;if(((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e)){throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`)}return this._names[e]={prefix:e,index:0}}};js.Scope=i7;var s7=class extends ga.Name{static{o(this,"ValueScopeName")}constructor(e,r){super(r);this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e;this.scopePath=(0,ga._)`.${new ga.Name(r)}[${n}]`}};js.ValueScopeName=s7;var z8t=(0,ga._)`\n`;var TM=class extends i7{static{o(this,"ValueScope")}constructor(e){super(e);this._values={};this._scope=e.scope;this.opts={...e,_n:e.lines?z8t:ga.nil}}get(){return this._scope}name(e){return new s7(e,this._newName(e))}value(e,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const i=this.toName(e);const{prefix:s}=i;const a=(n=r.key)!==null&&n!==void 0?n:r.ref;let u=this._values[s];if(u){const d=u.get(a);if(d)return d}else{u=this._values[s]=new Map}u.set(a,i);const l=this._scope[s]||(this._scope[s]=[]);const c=l.length;l[c]=r.ref;i.setValue(r,{property:s,itemIndex:c});return i}getValue(e,r){const n=this._values[e];if(!n)return;return n.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,ga._)`${e}${n.scopePath}`})}scopeCode(e=this._values,r,n){return this._reduceValues(e,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(e,r,n={},i){let s=ga.nil;for(const a in e){const u=e[a];if(!u)continue;const l=n[a]=n[a]||new Map;u.forEach(c=>{if(l.has(c))return;l.set(c,SM.Started);let d=r(c);if(d){const p=this.opts.es5?js.varKinds.var:js.varKinds.const;s=(0,ga._)`${s}${p} ${c} = ${d};${this.opts._n}`}else if(d=i===null||i===void 0?void 0:i(c)){s=(0,ga._)`${s}${d}${this.opts._n}`}else{throw new wM(c)}l.set(c,SM.Completed)})}return s}};js.ValueScope=TM});var Pt=_(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:true});Yt.or=Yt.and=Yt.not=Yt.CodeGen=Yt.operators=Yt.varKinds=Yt.ValueScopeName=Yt.ValueScope=Yt.Scope=Yt.Name=Yt.regexpCode=Yt.stringify=Yt.getProperty=Yt.nil=Yt.strConcat=Yt.str=Yt._=void 0;var Er=JE();var Tu=AM();var qp=JE();Object.defineProperty(Yt,"_",{enumerable:true,get:function(){return qp._}});Object.defineProperty(Yt,"str",{enumerable:true,get:function(){return qp.str}});Object.defineProperty(Yt,"strConcat",{enumerable:true,get:function(){return qp.strConcat}});Object.defineProperty(Yt,"nil",{enumerable:true,get:function(){return qp.nil}});Object.defineProperty(Yt,"getProperty",{enumerable:true,get:function(){return qp.getProperty}});Object.defineProperty(Yt,"stringify",{enumerable:true,get:function(){return qp.stringify}});Object.defineProperty(Yt,"regexpCode",{enumerable:true,get:function(){return qp.regexpCode}});Object.defineProperty(Yt,"Name",{enumerable:true,get:function(){return qp.Name}});var l7=AM();Object.defineProperty(Yt,"Scope",{enumerable:true,get:function(){return l7.Scope}});Object.defineProperty(Yt,"ValueScope",{enumerable:true,get:function(){return l7.ValueScope}});Object.defineProperty(Yt,"ValueScopeName",{enumerable:true,get:function(){return l7.ValueScopeName}});Object.defineProperty(Yt,"varKinds",{enumerable:true,get:function(){return l7.varKinds}});Yt.operators={GT:new Er._Code(">"),GTE:new Er._Code(">="),LT:new Er._Code("<"),LTE:new Er._Code("<="),EQ:new Er._Code("==="),NEQ:new Er._Code("!=="),NOT:new Er._Code("!"),OR:new Er._Code("||"),AND:new Er._Code("&&"),ADD:new Er._Code("+")};var Gc=class{static{o(this,"Node")}optimizeNodes(){return this}optimizeNames(e,r){return this}};var xM=class extends Gc{static{o(this,"Def")}constructor(e,r,n){super();this.varKind=e;this.name=r;this.rhs=n}render({es5:e,_n:r}){const n=e?Tu.varKinds.var:this.varKind;const i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(e,r){if(!e[this.name.str])return;if(this.rhs)this.rhs=Lg(this.rhs,e,r);return this}get names(){return this.rhs instanceof Er._CodeOrName?this.rhs.names:{}}};var a7=class extends Gc{static{o(this,"Assign")}constructor(e,r,n){super();this.lhs=e;this.rhs=r;this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(this.lhs instanceof Er.Name&&!e[this.lhs.str]&&!this.sideEffects)return;this.rhs=Lg(this.rhs,e,r);return this}get names(){const e=this.lhs instanceof Er.Name?{}:{...this.lhs.names};return u7(e,this.rhs)}};var CM=class extends a7{static{o(this,"AssignOp")}constructor(e,r,n,i){super(e,n,i);this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}};var RM=class extends Gc{static{o(this,"Label")}constructor(e){super();this.label=e;this.names={}}render({_n:e}){return`${this.label}:`+e}};var OM=class extends Gc{static{o(this,"Break")}constructor(e){super();this.label=e;this.names={}}render({_n:e}){const r=this.label?` ${this.label}`:"";return`break${r};`+e}};var NM=class extends Gc{static{o(this,"Throw")}constructor(e){super();this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}};var IM=class extends Gc{static{o(this,"AnyCode")}constructor(e){super();this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){this.code=Lg(this.code,e,r);return this}get names(){return this.code instanceof Er._CodeOrName?this.code.names:{}}};var QE=class extends Gc{static{o(this,"ParentNode")}constructor(e=[]){super();this.nodes=e}render(e){return this.nodes.reduce((r,n)=>r+n.render(e),"")}optimizeNodes(){const{nodes:e}=this;let r=e.length;while(r--){const n=e[r].optimizeNodes();if(Array.isArray(n))e.splice(r,1,...n);else if(n)e[r]=n;else e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){const{nodes:n}=this;let i=n.length;while(i--){const s=n[i];if(s.optimizeNames(e,r))continue;G8t(e,s.names);n.splice(i,1)}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>dm(e,r.names),{})}};var Kc=class extends QE{static{o(this,"BlockNode")}render(e){return"{"+e._n+super.render(e)+"}"+e._n}};var PM=class extends QE{static{o(this,"Root")}};var $g=class extends Kc{static{o(this,"Else")}};$g.kind="else";var lm=class t extends Kc{static{o(this,"If")}constructor(e,r){super(r);this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);if(this.else)r+="else "+this.else.render(e);return r}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(e===true)return this.nodes;let r=this.else;if(r){const n=r.optimizeNodes();r=this.else=Array.isArray(n)?new $g(n):n}if(r){if(e===false)return r instanceof t?r:r.nodes;if(this.nodes.length)return this;return new t(Tbe(e),r instanceof t?[r]:r.nodes)}if(e===false||!this.nodes.length)return void 0;return this}optimizeNames(e,r){var n;this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(e,r);if(!(super.optimizeNames(e,r)||this.else))return;this.condition=Lg(this.condition,e,r);return this}get names(){const e=super.names;u7(e,this.condition);if(this.else)dm(e,this.else.names);return e}};lm.kind="if";var cm=class extends Kc{static{o(this,"For")}};cm.kind="for";var DM=class extends cm{static{o(this,"ForLoop")}constructor(e){super();this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(!super.optimizeNames(e,r))return;this.iteration=Lg(this.iteration,e,r);return this}get names(){return dm(super.names,this.iteration.names)}};var kM=class extends cm{static{o(this,"ForRange")}constructor(e,r,n,i){super();this.varKind=e;this.name=r;this.from=n;this.to=i}render(e){const r=e.es5?Tu.varKinds.var:this.varKind;const{name:n,from:i,to:s}=this;return`for(${r} ${n}=${i}; ${n}<${s}; ${n}++)`+super.render(e)}get names(){const e=u7(super.names,this.from);return u7(e,this.to)}};var o7=class extends cm{static{o(this,"ForIter")}constructor(e,r,n,i){super();this.loop=e;this.varKind=r;this.name=n;this.iterable=i}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(!super.optimizeNames(e,r))return;this.iterable=Lg(this.iterable,e,r);return this}get names(){return dm(super.names,this.iterable.names)}};var XE=class extends Kc{static{o(this,"Func")}constructor(e,r,n){super();this.name=e;this.args=r;this.async=n}render(e){const r=this.async?"async ":"";return`${r}function ${this.name}(${this.args})`+super.render(e)}};XE.kind="func";var ZE=class extends QE{static{o(this,"Return")}render(e){return"return "+super.render(e)}};ZE.kind="return";var $M=class extends Kc{static{o(this,"Try")}render(e){let r="try"+super.render(e);if(this.catch)r+=this.catch.render(e);if(this.finally)r+=this.finally.render(e);return r}optimizeNodes(){var e,r;super.optimizeNodes();(e=this.catch)===null||e===void 0?void 0:e.optimizeNodes();(r=this.finally)===null||r===void 0?void 0:r.optimizeNodes();return this}optimizeNames(e,r){var n,i;super.optimizeNames(e,r);(n=this.catch)===null||n===void 0?void 0:n.optimizeNames(e,r);(i=this.finally)===null||i===void 0?void 0:i.optimizeNames(e,r);return this}get names(){const e=super.names;if(this.catch)dm(e,this.catch.names);if(this.finally)dm(e,this.finally.names);return e}};var e6=class extends Kc{static{o(this,"Catch")}constructor(e){super();this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};e6.kind="catch";var t6=class extends Kc{static{o(this,"Finally")}render(e){return"finally"+super.render(e)}};t6.kind="finally";var LM=class{static{o(this,"CodeGen")}constructor(e,r={}){this._values={};this._blockStarts=[];this._constants={};this.opts={...r,_n:r.lines?"\n":""};this._extScope=e;this._scope=new Tu.Scope({parent:e});this._nodes=[new PM]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){const n=this._extScope.value(e,r);const i=this._values[n.prefix]||(this._values[n.prefix]=new Set);i.add(n);return n}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,n,i){const s=this._scope.toName(r);if(n!==void 0&&i)this._constants[s.str]=n;this._leafNode(new xM(e,s,n));return s}const(e,r,n){return this._def(Tu.varKinds.const,e,r,n)}let(e,r,n){return this._def(Tu.varKinds.let,e,r,n)}var(e,r,n){return this._def(Tu.varKinds.var,e,r,n)}assign(e,r,n){return this._leafNode(new a7(e,r,n))}add(e,r){return this._leafNode(new CM(e,Yt.operators.ADD,r))}code(e){if(typeof e=="function")e();else if(e!==Er.nil)this._leafNode(new IM(e));return this}object(...e){const r=["{"];for(const[n,i]of e){if(r.length>1)r.push(",");r.push(n);if(n!==i||this.opts.es5){r.push(":");(0,Er.addCodeArg)(r,i)}}r.push("}");return new Er._Code(r)}if(e,r,n){this._blockNode(new lm(e));if(r&&n){this.code(r).else().code(n).endIf()}else if(r){this.code(r).endIf()}else if(n){throw new Error('CodeGen: "else" body without "then" body')}return this}elseIf(e){return this._elseNode(new lm(e))}else(){return this._elseNode(new $g)}endIf(){return this._endBlockNode(lm,$g)}_for(e,r){this._blockNode(e);if(r)this.code(r).endFor();return this}for(e,r){return this._for(new DM(e),r)}forRange(e,r,n,i,s=this.opts.es5?Tu.varKinds.var:Tu.varKinds.let){const a=this._scope.toName(e);return this._for(new kM(s,a,r,n),()=>i(a))}forOf(e,r,n,i=Tu.varKinds.const){const s=this._scope.toName(e);if(this.opts.es5){const a=r instanceof Er.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,Er._)`${a}.length`,u=>{this.var(s,(0,Er._)`${a}[${u}]`);n(s)})}return this._for(new o7("of",i,s,r),()=>n(s))}forIn(e,r,n,i=this.opts.es5?Tu.varKinds.var:Tu.varKinds.const){if(this.opts.ownProperties){return this.forOf(e,(0,Er._)`Object.keys(${r})`,n)}const s=this._scope.toName(e);return this._for(new o7("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(cm)}label(e){return this._leafNode(new RM(e))}break(e){return this._leafNode(new OM(e))}return(e){const r=new ZE;this._blockNode(r);this.code(e);if(r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(ZE)}try(e,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const i=new $M;this._blockNode(i);this.code(e);if(r){const s=this.name("e");this._currNode=i.catch=new e6(s);r(s)}if(n){this._currNode=i.finally=new t6;this.code(n)}return this._endBlockNode(e6,t6)}throw(e){return this._leafNode(new NM(e))}block(e,r){this._blockStarts.push(this._nodes.length);if(e)this.code(e).endBlock(r);return this}endBlock(e){const r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-r;if(n<0||e!==void 0&&n!==e){throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`)}this._nodes.length=r;return this}func(e,r=Er.nil,n,i){this._blockNode(new XE(e,r,n));if(i)this.code(i).endFunc();return this}endFunc(){return this._endBlockNode(XE)}optimize(e=1){while(e-- >0){this._root.optimizeNodes();this._root.optimizeNames(this._root.names,this._constants)}}_leafNode(e){this._currNode.nodes.push(e);return this}_blockNode(e){this._currNode.nodes.push(e);this._nodes.push(e)}_endBlockNode(e,r){const n=this._currNode;if(n instanceof e||r&&n instanceof r){this._nodes.pop();return this}throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){const r=this._currNode;if(!(r instanceof lm)){throw new Error('CodeGen: "else" without "if"')}this._currNode=r.else=e;return this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const r=this._nodes;r[r.length-1]=e}};Yt.CodeGen=LM;function dm(t,e){for(const r in e)t[r]=(t[r]||0)+(e[r]||0);return t}o(dm,"addNames");function u7(t,e){return e instanceof Er._CodeOrName?dm(t,e.names):t}o(u7,"addExprNames");function Lg(t,e,r){if(t instanceof Er.Name)return n(t);if(!i(t))return t;return new Er._Code(t._items.reduce((s,a)=>{if(a instanceof Er.Name)a=n(a);if(a instanceof Er._Code)s.push(...a._items);else s.push(a);return s},[]));function n(s){const a=r[s.str];if(a===void 0||e[s.str]!==1)return s;delete e[s.str];return a}o(n,"replaceName");function i(s){return s instanceof Er._Code&&s._items.some(a=>a instanceof Er.Name&&e[a.str]===1&&r[a.str]!==void 0)}o(i,"canOptimize")}o(Lg,"optimizeExpr");function G8t(t,e){for(const r in e)t[r]=(t[r]||0)-(e[r]||0)}o(G8t,"subtractNames");function Tbe(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,Er._)`!${qM(t)}`}o(Tbe,"not");Yt.not=Tbe;var K8t=Abe(Yt.operators.AND);function Y8t(...t){return t.reduce(K8t)}o(Y8t,"and");Yt.and=Y8t;var W8t=Abe(Yt.operators.OR);function J8t(...t){return t.reduce(W8t)}o(J8t,"or");Yt.or=J8t;function Abe(t){return(e,r)=>e===Er.nil?r:r===Er.nil?e:(0,Er._)`${qM(e)} ${t} ${qM(r)}`}o(Abe,"mappend");function qM(t){return t instanceof Er.Name?t:(0,Er._)`(${t})`}o(qM,"par")});var sr=_(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:true});Wt.checkStrictMode=Wt.getErrorPath=Wt.Type=Wt.useFunc=Wt.setEvaluated=Wt.evaluatedPropsToName=Wt.mergeEvaluated=Wt.eachItem=Wt.unescapeJsonPointer=Wt.escapeJsonPointer=Wt.escapeFragment=Wt.unescapeFragment=Wt.schemaRefOrVal=Wt.schemaHasRulesButRef=Wt.schemaHasRules=Wt.checkUnknownRules=Wt.alwaysValidSchema=Wt.toHash=void 0;var hn=Pt();var Q8t=JE();function X8t(t){const e={};for(const r of t)e[r]=true;return e}o(X8t,"toHash");Wt.toHash=X8t;function Z8t(t,e){if(typeof e=="boolean")return e;if(Object.keys(e).length===0)return true;Rbe(t,e);return!Obe(e,t.self.RULES.all)}o(Z8t,"alwaysValidSchema");Wt.alwaysValidSchema=Z8t;function Rbe(t,e=t.schema){const{opts:r,self:n}=t;if(!r.strictSchema)return;if(typeof e==="boolean")return;const i=n.RULES.keywords;for(const s in e){if(!i[s])Dbe(t,`unknown keyword: "${s}"`)}}o(Rbe,"checkUnknownRules");Wt.checkUnknownRules=Rbe;function Obe(t,e){if(typeof t=="boolean")return!t;for(const r in t)if(e[r])return true;return false}o(Obe,"schemaHasRules");Wt.schemaHasRules=Obe;function e5t(t,e){if(typeof t=="boolean")return!t;for(const r in t)if(r!=="$ref"&&e.all[r])return true;return false}o(e5t,"schemaHasRulesButRef");Wt.schemaHasRulesButRef=e5t;function t5t({topSchemaRef:t,schemaPath:e},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,hn._)`${r}`}return(0,hn._)`${t}${e}${(0,hn.getProperty)(n)}`}o(t5t,"schemaRefOrVal");Wt.schemaRefOrVal=t5t;function r5t(t){return Nbe(decodeURIComponent(t))}o(r5t,"unescapeFragment");Wt.unescapeFragment=r5t;function n5t(t){return encodeURIComponent(jM(t))}o(n5t,"escapeFragment");Wt.escapeFragment=n5t;function jM(t){if(typeof t=="number")return`${t}`;return t.replace(/~/g,"~0").replace(/\//g,"~1")}o(jM,"escapeJsonPointer");Wt.escapeJsonPointer=jM;function Nbe(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}o(Nbe,"unescapeJsonPointer");Wt.unescapeJsonPointer=Nbe;function i5t(t,e){if(Array.isArray(t)){for(const r of t)e(r)}else{e(t)}}o(i5t,"eachItem");Wt.eachItem=i5t;function xbe({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:n}){return(i,s,a,u)=>{const l=a===void 0?s:a instanceof hn.Name?(s instanceof hn.Name?t(i,s,a):e(i,s,a),a):s instanceof hn.Name?(e(i,a,s),s):r(s,a);return u===hn.Name&&!(l instanceof hn.Name)?n(i,l):l}}o(xbe,"makeMergeEvaluated");Wt.mergeEvaluated={props:xbe({mergeNames:(t,e,r)=>t.if((0,hn._)`${r} !== true && ${e} !== undefined`,()=>{t.if((0,hn._)`${e} === true`,()=>t.assign(r,true),()=>t.assign(r,(0,hn._)`${r} || {}`).code((0,hn._)`Object.assign(${r}, ${e})`))}),mergeToName:(t,e,r)=>t.if((0,hn._)`${r} !== true`,()=>{if(e===true){t.assign(r,true)}else{t.assign(r,(0,hn._)`${r} || {}`);UM(t,r,e)}}),mergeValues:(t,e)=>t===true?true:{...t,...e},resultToName:Ibe}),items:xbe({mergeNames:(t,e,r)=>t.if((0,hn._)`${r} !== true && ${e} !== undefined`,()=>t.assign(r,(0,hn._)`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`)),mergeToName:(t,e,r)=>t.if((0,hn._)`${r} !== true`,()=>t.assign(r,e===true?true:(0,hn._)`${r} > ${e} ? ${r} : ${e}`)),mergeValues:(t,e)=>t===true?true:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function Ibe(t,e){if(e===true)return t.var("props",true);const r=t.var("props",(0,hn._)`{}`);if(e!==void 0)UM(t,r,e);return r}o(Ibe,"evaluatedPropsToName");Wt.evaluatedPropsToName=Ibe;function UM(t,e,r){Object.keys(r).forEach(n=>t.assign((0,hn._)`${e}${(0,hn.getProperty)(n)}`,true))}o(UM,"setEvaluated");Wt.setEvaluated=UM;var Cbe={};function s5t(t,e){return t.scopeValue("func",{ref:e,code:Cbe[e.code]||(Cbe[e.code]=new Q8t._Code(e.code))})}o(s5t,"useFunc");Wt.useFunc=s5t;var Pbe;(function(t){t[t["Num"]=0]="Num";t[t["Str"]=1]="Str"})(Pbe=Wt.Type||(Wt.Type={}));function a5t(t,e,r){if(t instanceof hn.Name){const n=e===Pbe.Num;return r?n?(0,hn._)`"[" + ${t} + "]"`:(0,hn._)`"['" + ${t} + "']"`:n?(0,hn._)`"/" + ${t}`:(0,hn._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,hn.getProperty)(t).toString():"/"+jM(t)}o(a5t,"getErrorPath");Wt.getErrorPath=a5t;function Dbe(t,e,r=t.opts.strictSchema){if(!r)return;e=`strict mode: ${e}`;if(r===true)throw new Error(e);t.self.logger.warn(e)}o(Dbe,"checkStrictMode");Wt.checkStrictMode=Dbe});var Ro=_(FM=>{"use strict";Object.defineProperty(FM,"__esModule",{value:true});var bs=Pt();var o5t={data:new bs.Name("data"),valCxt:new bs.Name("valCxt"),instancePath:new bs.Name("instancePath"),parentData:new bs.Name("parentData"),parentDataProperty:new bs.Name("parentDataProperty"),rootData:new bs.Name("rootData"),dynamicAnchors:new bs.Name("dynamicAnchors"),vErrors:new bs.Name("vErrors"),errors:new bs.Name("errors"),this:new bs.Name("this"),self:new bs.Name("self"),scope:new bs.Name("scope"),json:new bs.Name("json"),jsonPos:new bs.Name("jsonPos"),jsonLen:new bs.Name("jsonLen"),jsonPart:new bs.Name("jsonPart")};FM.default=o5t});var r6=_(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:true});ws.extendErrors=ws.resetErrorsCount=ws.reportExtraError=ws.reportError=ws.keyword$DataError=ws.keywordError=void 0;var Cr=Pt();var c7=sr();var Us=Ro();ws.keywordError={message:({keyword:t})=>(0,Cr.str)`must pass "${t}" keyword validation`};ws.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,Cr.str)`"${t}" keyword must be ${e} ($data)`:(0,Cr.str)`"${t}" keyword is invalid ($data)`};function u5t(t,e=ws.keywordError,r,n){const{it:i}=t;const{gen:s,compositeRule:a,allErrors:u}=i;const l=Lbe(t,e,r);if(n!==null&&n!==void 0?n:a||u){kbe(s,l)}else{$be(i,(0,Cr._)`[${l}]`)}}o(u5t,"reportError");ws.reportError=u5t;function l5t(t,e=ws.keywordError,r){const{it:n}=t;const{gen:i,compositeRule:s,allErrors:a}=n;const u=Lbe(t,e,r);kbe(i,u);if(!(s||a)){$be(n,Us.default.vErrors)}}o(l5t,"reportExtraError");ws.reportExtraError=l5t;function c5t(t,e){t.assign(Us.default.errors,e);t.if((0,Cr._)`${Us.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,Cr._)`${Us.default.vErrors}.length`,e),()=>t.assign(Us.default.vErrors,null)))}o(c5t,"resetErrorsCount");ws.resetErrorsCount=c5t;function d5t({gen:t,keyword:e,schemaValue:r,data:n,errsCount:i,it:s}){if(i===void 0)throw new Error("ajv implementation error");const a=t.name("err");t.forRange("i",i,Us.default.errors,u=>{t.const(a,(0,Cr._)`${Us.default.vErrors}[${u}]`);t.if((0,Cr._)`${a}.instancePath === undefined`,()=>t.assign((0,Cr._)`${a}.instancePath`,(0,Cr.strConcat)(Us.default.instancePath,s.errorPath)));t.assign((0,Cr._)`${a}.schemaPath`,(0,Cr.str)`${s.errSchemaPath}/${e}`);if(s.opts.verbose){t.assign((0,Cr._)`${a}.schema`,r);t.assign((0,Cr._)`${a}.data`,n)}})}o(d5t,"extendErrors");ws.extendErrors=d5t;function kbe(t,e){const r=t.const("err",e);t.if((0,Cr._)`${Us.default.vErrors} === null`,()=>t.assign(Us.default.vErrors,(0,Cr._)`[${r}]`),(0,Cr._)`${Us.default.vErrors}.push(${r})`);t.code((0,Cr._)`${Us.default.errors}++`)}o(kbe,"addError");function $be(t,e){const{gen:r,validateName:n,schemaEnv:i}=t;if(i.$async){r.throw((0,Cr._)`new ${t.ValidationError}(${e})`)}else{r.assign((0,Cr._)`${n}.errors`,e);r.return(false)}}o($be,"returnErrors");var pm={keyword:new Cr.Name("keyword"),schemaPath:new Cr.Name("schemaPath"),params:new Cr.Name("params"),propertyName:new Cr.Name("propertyName"),message:new Cr.Name("message"),schema:new Cr.Name("schema"),parentSchema:new Cr.Name("parentSchema")};function Lbe(t,e,r){const{createErrors:n}=t.it;if(n===false)return(0,Cr._)`{}`;return p5t(t,e,r)}o(Lbe,"errorObjectCode");function p5t(t,e,r={}){const{gen:n,it:i}=t;const s=[f5t(i,r),h5t(t,r)];m5t(t,e,s);return n.object(...s)}o(p5t,"errorObject");function f5t({errorPath:t},{instancePath:e}){const r=e?(0,Cr.str)`${t}${(0,c7.getErrorPath)(e,c7.Type.Str)}`:t;return[Us.default.instancePath,(0,Cr.strConcat)(Us.default.instancePath,r)]}o(f5t,"errorInstancePath");function h5t({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:n}){let i=n?e:(0,Cr.str)`${e}/${t}`;if(r){i=(0,Cr.str)`${i}${(0,c7.getErrorPath)(r,c7.Type.Str)}`}return[pm.schemaPath,i]}o(h5t,"errorSchemaPath");function m5t(t,{params:e,message:r},n){const{keyword:i,data:s,schemaValue:a,it:u}=t;const{opts:l,propertyName:c,topSchemaRef:d,schemaPath:p}=u;n.push([pm.keyword,i],[pm.params,typeof e=="function"?e(t):e||(0,Cr._)`{}`]);if(l.messages){n.push([pm.message,typeof r=="function"?r(t):r])}if(l.verbose){n.push([pm.schema,a],[pm.parentSchema,(0,Cr._)`${d}${p}`],[Us.default.data,s])}if(c)n.push([pm.propertyName,c])}o(m5t,"extraErrorProps")});var jbe=_(qg=>{"use strict";Object.defineProperty(qg,"__esModule",{value:true});qg.boolOrEmptySchema=qg.topBoolOrEmptySchema=void 0;var g5t=r6();var y5t=Pt();var v5t=Ro();var _5t={message:"boolean schema is false"};function E5t(t){const{gen:e,schema:r,validateName:n}=t;if(r===false){qbe(t,false)}else if(typeof r=="object"&&r.$async===true){e.return(v5t.default.data)}else{e.assign((0,y5t._)`${n}.errors`,null);e.return(true)}}o(E5t,"topBoolOrEmptySchema");qg.topBoolOrEmptySchema=E5t;function b5t(t,e){const{gen:r,schema:n}=t;if(n===false){r.var(e,false);qbe(t)}else{r.var(e,true)}}o(b5t,"boolOrEmptySchema");qg.boolOrEmptySchema=b5t;function qbe(t,e){const{gen:r,data:n}=t;const i={gen:r,keyword:"false schema",data:n,schema:false,schemaCode:false,schemaValue:false,params:{},it:t};(0,g5t.reportError)(i,_5t,void 0,e)}o(qbe,"falseSchemaError")});var BM=_(jg=>{"use strict";Object.defineProperty(jg,"__esModule",{value:true});jg.getRules=jg.isJSONType=void 0;var w5t=["string","number","integer","boolean","null","object","array"];var S5t=new Set(w5t);function T5t(t){return typeof t=="string"&&S5t.has(t)}o(T5t,"isJSONType");jg.isJSONType=T5t;function A5t(){const t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:true,boolean:true,null:true},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}o(A5t,"getRules");jg.getRules=A5t});var MM=_(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:true});jp.shouldUseRule=jp.shouldUseGroup=jp.schemaHasRulesForType=void 0;function x5t({schema:t,self:e},r){const n=e.RULES.types[r];return n&&n!==true&&Ube(t,n)}o(x5t,"schemaHasRulesForType");jp.schemaHasRulesForType=x5t;function Ube(t,e){return e.rules.some(r=>Fbe(t,r))}o(Ube,"shouldUseGroup");jp.shouldUseGroup=Ube;function Fbe(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.implements)===null||r===void 0?void 0:r.some(n=>t[n]!==void 0))}o(Fbe,"shouldUseRule");jp.shouldUseRule=Fbe});var i6=_(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:true});ts.reportTypeError=ts.checkDataTypes=ts.checkDataType=ts.coerceAndCheckDataType=ts.getJSONTypes=ts.getSchemaTypes=ts.DataType=void 0;var C5t=BM();var R5t=MM();var O5t=r6();var Lt=Pt();var Bbe=sr();var n6;(function(t){t[t["Correct"]=0]="Correct";t[t["Wrong"]=1]="Wrong"})(n6=ts.DataType||(ts.DataType={}));function N5t(t){const e=Mbe(t.type);const r=e.includes("null");if(r){if(t.nullable===false)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0){throw new Error('"nullable" cannot be used without "type"')}if(t.nullable===true)e.push("null")}return e}o(N5t,"getSchemaTypes");ts.getSchemaTypes=N5t;function Mbe(t){const e=Array.isArray(t)?t:t?[t]:[];if(e.every(C5t.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}o(Mbe,"getJSONTypes");ts.getJSONTypes=Mbe;function I5t(t,e){const{gen:r,data:n,opts:i}=t;const s=P5t(e,i.coerceTypes);const a=e.length>0&&!(s.length===0&&e.length===1&&(0,R5t.schemaHasRulesForType)(t,e[0]));if(a){const u=HM(e,n,i.strictNumbers,n6.Wrong);r.if(u,()=>{if(s.length)D5t(t,e,s);else zM(t)})}return a}o(I5t,"coerceAndCheckDataType");ts.coerceAndCheckDataType=I5t;var Vbe=new Set(["string","number","integer","boolean","null"]);function P5t(t,e){return e?t.filter(r=>Vbe.has(r)||e==="array"&&r==="array"):[]}o(P5t,"coerceToTypes");function D5t(t,e,r){const{gen:n,data:i,opts:s}=t;const a=n.let("dataType",(0,Lt._)`typeof ${i}`);const u=n.let("coerced",(0,Lt._)`undefined`);if(s.coerceTypes==="array"){n.if((0,Lt._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,Lt._)`${i}[0]`).assign(a,(0,Lt._)`typeof ${i}`).if(HM(e,i,s.strictNumbers),()=>n.assign(u,i)))}n.if((0,Lt._)`${u} !== undefined`);for(const c of r){if(Vbe.has(c)||c==="array"&&s.coerceTypes==="array"){l(c)}}n.else();zM(t);n.endIf();n.if((0,Lt._)`${u} !== undefined`,()=>{n.assign(i,u);k5t(t,u)});function l(c){switch(c){case"string":n.elseIf((0,Lt._)`${a} == "number" || ${a} == "boolean"`).assign(u,(0,Lt._)`"" + ${i}`).elseIf((0,Lt._)`${i} === null`).assign(u,(0,Lt._)`""`);return;case"number":n.elseIf((0,Lt._)`${a} == "boolean" || ${i} === null
396
396
  || (${a} == "string" && ${i} && ${i} == +${i})`).assign(u,(0,Lt._)`+${i}`);return;case"integer":n.elseIf((0,Lt._)`${a} === "boolean" || ${i} === null
397
397
  || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(u,(0,Lt._)`+${i}`);return;case"boolean":n.elseIf((0,Lt._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(u,false).elseIf((0,Lt._)`${i} === "true" || ${i} === 1`).assign(u,true);return;case"null":n.elseIf((0,Lt._)`${i} === "" || ${i} === 0 || ${i} === false`);n.assign(u,null);return;case"array":n.elseIf((0,Lt._)`${a} === "string" || ${a} === "number"
398
398
  || ${a} === "boolean" || ${i} === null`).assign(u,(0,Lt._)`[${i}]`)}}o(l,"coerceSpecificType")}o(D5t,"coerceData");function k5t({gen:t,parentData:e,parentDataProperty:r},n){t.if((0,Lt._)`${e} !== undefined`,()=>t.assign((0,Lt._)`${e}[${r}]`,n))}o(k5t,"assignParentData");function VM(t,e,r,n=n6.Correct){const i=n===n6.Correct?Lt.operators.EQ:Lt.operators.NEQ;let s;switch(t){case"null":return(0,Lt._)`${e} ${i} null`;case"array":s=(0,Lt._)`Array.isArray(${e})`;break;case"object":s=(0,Lt._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":s=a((0,Lt._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":s=a();break;default:return(0,Lt._)`typeof ${e} ${i} ${t}`}return n===n6.Correct?s:(0,Lt.not)(s);function a(u=Lt.nil){return(0,Lt.and)((0,Lt._)`typeof ${e} == "number"`,u,r?(0,Lt._)`isFinite(${e})`:Lt.nil)}o(a,"numCond")}o(VM,"checkDataType");ts.checkDataType=VM;function HM(t,e,r,n){if(t.length===1){return VM(t[0],e,r,n)}let i;const s=(0,Bbe.toHash)(t);if(s.array&&s.object){const a=(0,Lt._)`typeof ${e} != "object"`;i=s.null?a:(0,Lt._)`!${e} || ${a}`;delete s.null;delete s.array;delete s.object}else{i=Lt.nil}if(s.number)delete s.integer;for(const a in s)i=(0,Lt.and)(i,VM(a,e,r,n));return i}o(HM,"checkDataTypes");ts.checkDataTypes=HM;var $5t={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,Lt._)`{type: ${t}}`:(0,Lt._)`{type: ${e}}`};function zM(t){const e=L5t(t);(0,O5t.reportError)(e,$5t)}o(zM,"reportTypeError");ts.reportTypeError=zM;function L5t(t){const{gen:e,data:r,schema:n}=t;const i=(0,Bbe.schemaRefOrVal)(t,n,"type");return{gen:e,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:t}}o(L5t,"getTypeErrorContext")});var zbe=_(d7=>{"use strict";Object.defineProperty(d7,"__esModule",{value:true});d7.assignDefaults=void 0;var Ug=Pt();var q5t=sr();function j5t(t,e){const{properties:r,items:n}=t.schema;if(e==="object"&&r){for(const i in r){Hbe(t,i,r[i].default)}}else if(e==="array"&&Array.isArray(n)){n.forEach((i,s)=>Hbe(t,s,i.default))}}o(j5t,"assignDefaults");d7.assignDefaults=j5t;function Hbe(t,e,r){const{gen:n,compositeRule:i,data:s,opts:a}=t;if(r===void 0)return;const u=(0,Ug._)`${s}${(0,Ug.getProperty)(e)}`;if(i){(0,q5t.checkStrictMode)(t,`default is ignored for: ${u}`);return}let l=(0,Ug._)`${u} === undefined`;if(a.useDefaults==="empty"){l=(0,Ug._)`${l} || ${u} === null || ${u} === ""`}n.if(l,(0,Ug._)`${u} = ${(0,Ug.stringify)(r)}`)}o(Hbe,"assignDefault")});var Oo=_(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:true});an.validateUnion=an.validateArray=an.usePattern=an.callValidateCode=an.schemaProperties=an.allSchemaProperties=an.noPropertyInData=an.propertyInData=an.isOwnProperty=an.hasPropFunc=an.reportMissingProp=an.checkMissingProp=an.checkReportMissingProp=void 0;var Nn=Pt();var GM=sr();var Up=Ro();var U5t=sr();function F5t(t,e){const{gen:r,data:n,it:i}=t;r.if(YM(r,n,e,i.opts.ownProperties),()=>{t.setParams({missingProperty:(0,Nn._)`${e}`},true);t.error()})}o(F5t,"checkReportMissingProp");an.checkReportMissingProp=F5t;function B5t({gen:t,data:e,it:{opts:r}},n,i){return(0,Nn.or)(...n.map(s=>(0,Nn.and)(YM(t,e,s,r.ownProperties),(0,Nn._)`${i} = ${s}`)))}o(B5t,"checkMissingProp");an.checkMissingProp=B5t;function M5t(t,e){t.setParams({missingProperty:e},true);t.error()}o(M5t,"reportMissingProp");an.reportMissingProp=M5t;function Gbe(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Nn._)`Object.prototype.hasOwnProperty`})}o(Gbe,"hasPropFunc");an.hasPropFunc=Gbe;function KM(t,e,r){return(0,Nn._)`${Gbe(t)}.call(${e}, ${r})`}o(KM,"isOwnProperty");an.isOwnProperty=KM;function V5t(t,e,r,n){const i=(0,Nn._)`${e}${(0,Nn.getProperty)(r)} !== undefined`;return n?(0,Nn._)`${i} && ${KM(t,e,r)}`:i}o(V5t,"propertyInData");an.propertyInData=V5t;function YM(t,e,r,n){const i=(0,Nn._)`${e}${(0,Nn.getProperty)(r)} === undefined`;return n?(0,Nn.or)(i,(0,Nn.not)(KM(t,e,r))):i}o(YM,"noPropertyInData");an.noPropertyInData=YM;function Kbe(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}o(Kbe,"allSchemaProperties");an.allSchemaProperties=Kbe;function H5t(t,e){return Kbe(e).filter(r=>!(0,GM.alwaysValidSchema)(t,e[r]))}o(H5t,"schemaProperties");an.schemaProperties=H5t;function z5t({schemaCode:t,data:e,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},u,l,c){const d=c?(0,Nn._)`${t}, ${e}, ${n}${i}`:e;const p=[[Up.default.instancePath,(0,Nn.strConcat)(Up.default.instancePath,s)],[Up.default.parentData,a.parentData],[Up.default.parentDataProperty,a.parentDataProperty],[Up.default.rootData,Up.default.rootData]];if(a.opts.dynamicRef)p.push([Up.default.dynamicAnchors,Up.default.dynamicAnchors]);const f=(0,Nn._)`${d}, ${r.object(...p)}`;return l!==Nn.nil?(0,Nn._)`${u}.call(${l}, ${f})`:(0,Nn._)`${u}(${f})`}o(z5t,"callValidateCode");an.callValidateCode=z5t;var G5t=(0,Nn._)`new RegExp`;function K5t({gen:t,it:{opts:e}},r){const n=e.unicodeRegExp?"u":"";const{regExp:i}=e.code;const s=i(r,n);return t.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,Nn._)`${i.code==="new RegExp"?G5t:(0,U5t.useFunc)(t,i)}(${r}, ${n})`})}o(K5t,"usePattern");an.usePattern=K5t;function Y5t(t){const{gen:e,data:r,keyword:n,it:i}=t;const s=e.name("valid");if(i.allErrors){const u=e.let("valid",true);a(()=>e.assign(u,false));return u}e.var(s,true);a(()=>e.break());return s;function a(u){const l=e.const("len",(0,Nn._)`${r}.length`);e.forRange("i",0,l,c=>{t.subschema({keyword:n,dataProp:c,dataPropType:GM.Type.Num},s);e.if((0,Nn.not)(s),u)})}o(a,"validateItems")}o(Y5t,"validateArray");an.validateArray=Y5t;function W5t(t){const{gen:e,schema:r,keyword:n,it:i}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");const s=r.some(l=>(0,GM.alwaysValidSchema)(i,l));if(s&&!i.opts.unevaluated)return;const a=e.let("valid",false);const u=e.name("_valid");e.block(()=>r.forEach((l,c)=>{const d=t.subschema({keyword:n,schemaProp:c,compositeRule:true},u);e.assign(a,(0,Nn._)`${a} || ${u}`);const p=t.mergeValidEvaluated(d,u);if(!p)e.if((0,Nn.not)(a))}));t.result(a,()=>t.reset(),()=>t.error(true))}o(W5t,"validateUnion");an.validateUnion=W5t});var Jbe=_(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:true});Cl.validateKeywordUsage=Cl.validSchemaType=Cl.funcKeywordCode=Cl.macroKeywordCode=void 0;var Fs=Pt();var fm=Ro();var J5t=Oo();var Q5t=r6();function X5t(t,e){const{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=t;const u=e.macro.call(a.self,i,s,a);const l=Wbe(r,n,u);if(a.opts.validateSchema!==false)a.self.validateSchema(u,true);const c=r.name("valid");t.subschema({schema:u,schemaPath:Fs.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:l,compositeRule:true},c);t.pass(c,()=>t.error(true))}o(X5t,"macroKeywordCode");Cl.macroKeywordCode=X5t;function Z5t(t,e){var r;const{gen:n,keyword:i,schema:s,parentSchema:a,$data:u,it:l}=t;twt(l,e);const c=!u&&e.compile?e.compile.call(l.self,s,a,l):e.validate;const d=Wbe(n,i,c);const p=n.let("valid");t.block$data(p,f);t.ok((r=e.valid)!==null&&r!==void 0?r:p);function f(){if(e.errors===false){g();if(e.modifying)Ybe(t);y(()=>t.error())}else{const v=e.async?h():m();if(e.modifying)Ybe(t);y(()=>ewt(t,v))}}o(f,"validateKeyword");function h(){const v=n.let("ruleErrs",null);n.try(()=>g((0,Fs._)`await `),w=>n.assign(p,false).if((0,Fs._)`${w} instanceof ${l.ValidationError}`,()=>n.assign(v,(0,Fs._)`${w}.errors`),()=>n.throw(w)));return v}o(h,"validateAsync");function m(){const v=(0,Fs._)`${d}.errors`;n.assign(v,null);g(Fs.nil);return v}o(m,"validateSync");function g(v=e.async?(0,Fs._)`await `:Fs.nil){const w=l.opts.passContext?fm.default.this:fm.default.self;const E=!("compile"in e&&!u||e.schema===false);n.assign(p,(0,Fs._)`${v}${(0,J5t.callValidateCode)(t,d,w,E)}`,e.modifying)}o(g,"assignValid");function y(v){var w;n.if((0,Fs.not)((w=e.valid)!==null&&w!==void 0?w:p),v)}o(y,"reportErrs")}o(Z5t,"funcKeywordCode");Cl.funcKeywordCode=Z5t;function Ybe(t){const{gen:e,data:r,it:n}=t;e.if(n.parentData,()=>e.assign(r,(0,Fs._)`${n.parentData}[${n.parentDataProperty}]`))}o(Ybe,"modifyData");function ewt(t,e){const{gen:r}=t;r.if((0,Fs._)`Array.isArray(${e})`,()=>{r.assign(fm.default.vErrors,(0,Fs._)`${fm.default.vErrors} === null ? ${e} : ${fm.default.vErrors}.concat(${e})`).assign(fm.default.errors,(0,Fs._)`${fm.default.vErrors}.length`);(0,Q5t.extendErrors)(t)},()=>t.error())}o(ewt,"addErrs");function twt({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}o(twt,"checkAsyncKeyword");function Wbe(t,e,r){if(r===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Fs.stringify)(r)})}o(Wbe,"useKeyword");function rwt(t,e,r=false){return!e.length||e.some(n=>n==="array"?Array.isArray(t):n==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==n||r&&typeof t=="undefined")}o(rwt,"validSchemaType");Cl.validSchemaType=rwt;function nwt({schema:t,opts:e,self:r,errSchemaPath:n},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s){throw new Error("ajv implementation error")}const a=i.dependencies;if(a===null||a===void 0?void 0:a.some(u=>!Object.prototype.hasOwnProperty.call(t,u))){throw new Error(`parent schema must have dependencies of ${s}: ${a.join(",")}`)}if(i.validateSchema){const u=i.validateSchema(t[s]);if(!u){const l=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(e.validateSchema==="log")r.logger.error(l);else throw new Error(l)}}}o(nwt,"validateKeywordUsage");Cl.validateKeywordUsage=nwt});var Xbe=_(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:true});Fp.extendSubschemaMode=Fp.extendSubschemaData=Fp.getSubschema=void 0;var Rl=Pt();var Qbe=sr();function iwt(t,{keyword:e,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:s,topSchemaRef:a}){if(e!==void 0&&n!==void 0){throw new Error('both "keyword" and "schema" passed, only one allowed')}if(e!==void 0){const u=t.schema[e];return r===void 0?{schema:u,schemaPath:(0,Rl._)`${t.schemaPath}${(0,Rl.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:u[r],schemaPath:(0,Rl._)`${t.schemaPath}${(0,Rl.getProperty)(e)}${(0,Rl.getProperty)(r)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,Qbe.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||s===void 0||a===void 0){throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"')}return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}o(iwt,"getSubschema");Fp.getSubschema=iwt;function swt(t,e,{dataProp:r,dataPropType:n,data:i,dataTypes:s,propertyName:a}){if(i!==void 0&&r!==void 0){throw new Error('both "data" and "dataProp" passed, only one allowed')}const{gen:u}=e;if(r!==void 0){const{errorPath:c,dataPathArr:d,opts:p}=e;const f=u.let("data",(0,Rl._)`${e.data}${(0,Rl.getProperty)(r)}`,true);l(f);t.errorPath=(0,Rl.str)`${c}${(0,Qbe.getErrorPath)(r,n,p.jsPropertySyntax)}`;t.parentDataProperty=(0,Rl._)`${r}`;t.dataPathArr=[...d,t.parentDataProperty]}if(i!==void 0){const c=i instanceof Rl.Name?i:u.let("data",i,true);l(c);if(a!==void 0)t.propertyName=a}if(s)t.dataTypes=s;function l(c){t.data=c;t.dataLevel=e.dataLevel+1;t.dataTypes=[];e.definedProperties=new Set;t.parentData=e.data;t.dataNames=[...e.dataNames,c]}o(l,"dataContextProps")}o(swt,"extendSubschemaData");Fp.extendSubschemaData=swt;function awt(t,{jtdDiscriminator:e,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:s}){if(n!==void 0)t.compositeRule=n;if(i!==void 0)t.createErrors=i;if(s!==void 0)t.allErrors=s;t.jtdDiscriminator=e;t.jtdMetadata=r}o(awt,"extendSubschemaMode");Fp.extendSubschemaMode=awt});var s6=_(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:true});ya.getSchemaRefs=ya.resolveUrl=ya.normalizeId=ya._getFullPath=ya.getFullPath=ya.inlineRef=void 0;var owt=sr();var uwt=ru();var lwt=Lv();var cwt=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function dwt(t,e=true){if(typeof t=="boolean")return true;if(e===true)return!WM(t);if(!e)return false;return Zbe(t)<=e}o(dwt,"inlineRef");ya.inlineRef=dwt;var pwt=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function WM(t){for(const e in t){if(pwt.has(e))return true;const r=t[e];if(Array.isArray(r)&&r.some(WM))return true;if(typeof r=="object"&&WM(r))return true}return false}o(WM,"hasRef");function Zbe(t){let e=0;for(const r in t){if(r==="$ref")return Infinity;e++;if(cwt.has(r))continue;if(typeof t[r]=="object"){(0,owt.eachItem)(t[r],n=>e+=Zbe(n))}if(e===Infinity)return Infinity}return e}o(Zbe,"countKeys");function e3e(t,e="",r){if(r!==false)e=Fg(e);const n=t.parse(e);return t3e(t,n)}o(e3e,"getFullPath");ya.getFullPath=e3e;function t3e(t,e){const r=t.serialize(e);return r.split("#")[0]+"#"}o(t3e,"_getFullPath");ya._getFullPath=t3e;var fwt=/#\/?$/;function Fg(t){return t?t.replace(fwt,""):""}o(Fg,"normalizeId");ya.normalizeId=Fg;function hwt(t,e,r){r=Fg(r);return t.resolve(e,r)}o(hwt,"resolveUrl");ya.resolveUrl=hwt;var mwt=/^[a-z_][-a-z0-9._]*$/i;function gwt(t,e){if(typeof t=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts;const i=Fg(t[r]||e);const s={"":i};const a=e3e(n,i,false);const u={};const l=new Set;lwt(t,{allKeys:true},(p,f,h,m)=>{if(m===void 0)return;const g=a+f;let y=s[m];if(typeof p[r]=="string")y=v.call(this,p[r]);w.call(this,p.$anchor);w.call(this,p.$dynamicAnchor);s[f]=y;function v(E){const b=this.opts.uriResolver.resolve;E=Fg(y?b(y,E):E);if(l.has(E))throw d(E);l.add(E);let S=this.refs[E];if(typeof S=="string")S=this.refs[S];if(typeof S=="object"){c(p,S.schema,E)}else if(E!==Fg(g)){if(E[0]==="#"){c(p,u[E],E);u[E]=p}else{this.refs[E]=g}}return E}o(v,"addRef");function w(E){if(typeof E=="string"){if(!mwt.test(E))throw new Error(`invalid anchor "${E}"`);v.call(this,`#${E}`)}}o(w,"addAnchor")});return u;function c(p,f,h){if(f!==void 0&&!uwt(p,f))throw d(h)}o(c,"checkAmbiguosRef");function d(p){return new Error(`reference "${p}" resolves to more than one schema`)}o(d,"ambiguos")}o(gwt,"getSchemaRefs");ya.getSchemaRefs=gwt});var u6=_(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:true});Bp.getData=Bp.KeywordCxt=Bp.validateFunctionCode=void 0;var a3e=jbe();var r3e=i6();var QM=MM();var p7=i6();var ywt=zbe();var o6=Jbe();var JM=Xbe();var ut=Pt();var Tt=Ro();var vwt=s6();var Yc=sr();var a6=r6();function _wt(t){if(l3e(t)){c3e(t);if(u3e(t)){wwt(t);return}}o3e(t,()=>(0,a3e.topBoolOrEmptySchema)(t))}o(_wt,"validateFunctionCode");Bp.validateFunctionCode=_wt;function o3e({gen:t,validateName:e,schema:r,schemaEnv:n,opts:i},s){if(i.code.es5){t.func(e,(0,ut._)`${Tt.default.data}, ${Tt.default.valCxt}`,n.$async,()=>{t.code((0,ut._)`"use strict"; ${n3e(r,i)}`);bwt(t,i);t.code(s)})}else{t.func(e,(0,ut._)`${Tt.default.data}, ${Ewt(i)}`,n.$async,()=>t.code(n3e(r,i)).code(s))}}o(o3e,"validateFunction");function Ewt(t){return(0,ut._)`{${Tt.default.instancePath}="", ${Tt.default.parentData}, ${Tt.default.parentDataProperty}, ${Tt.default.rootData}=${Tt.default.data}${t.dynamicRef?(0,ut._)`, ${Tt.default.dynamicAnchors}={}`:ut.nil}}={}`}o(Ewt,"destructureValCxt");function bwt(t,e){t.if(Tt.default.valCxt,()=>{t.var(Tt.default.instancePath,(0,ut._)`${Tt.default.valCxt}.${Tt.default.instancePath}`);t.var(Tt.default.parentData,(0,ut._)`${Tt.default.valCxt}.${Tt.default.parentData}`);t.var(Tt.default.parentDataProperty,(0,ut._)`${Tt.default.valCxt}.${Tt.default.parentDataProperty}`);t.var(Tt.default.rootData,(0,ut._)`${Tt.default.valCxt}.${Tt.default.rootData}`);if(e.dynamicRef)t.var(Tt.default.dynamicAnchors,(0,ut._)`${Tt.default.valCxt}.${Tt.default.dynamicAnchors}`)},()=>{t.var(Tt.default.instancePath,(0,ut._)`""`);t.var(Tt.default.parentData,(0,ut._)`undefined`);t.var(Tt.default.parentDataProperty,(0,ut._)`undefined`);t.var(Tt.default.rootData,Tt.default.data);if(e.dynamicRef)t.var(Tt.default.dynamicAnchors,(0,ut._)`{}`)})}o(bwt,"destructureValCxtES5");function wwt(t){const{schema:e,opts:r,gen:n}=t;o3e(t,()=>{if(r.$comment&&e.$comment)p3e(t);Cwt(t);n.let(Tt.default.vErrors,null);n.let(Tt.default.errors,0);if(r.unevaluated)Swt(t);d3e(t);Nwt(t)});return}o(wwt,"topSchemaObjCode");function Swt(t){const{gen:e,validateName:r}=t;t.evaluated=e.const("evaluated",(0,ut._)`${r}.evaluated`);e.if((0,ut._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,ut._)`${t.evaluated}.props`,(0,ut._)`undefined`));e.if((0,ut._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,ut._)`${t.evaluated}.items`,(0,ut._)`undefined`))}o(Swt,"resetEvaluated");function n3e(t,e){const r=typeof t=="object"&&t[e.schemaId];return r&&(e.code.source||e.code.process)?(0,ut._)`/*# sourceURL=${r} */`:ut.nil}o(n3e,"funcSourceUrl");function Twt(t,e){if(l3e(t)){c3e(t);if(u3e(t)){Awt(t,e);return}}(0,a3e.boolOrEmptySchema)(t,e)}o(Twt,"subschemaCode");function u3e({schema:t,self:e}){if(typeof t=="boolean")return!t;for(const r in t)if(e.RULES.all[r])return true;return false}o(u3e,"schemaCxtHasRules");function l3e(t){return typeof t.schema!="boolean"}o(l3e,"isSchemaObj");function Awt(t,e){const{schema:r,gen:n,opts:i}=t;if(i.$comment&&r.$comment)p3e(t);Rwt(t);Owt(t);const s=n.const("_errs",Tt.default.errors);d3e(t,s);n.var(e,(0,ut._)`${s} === ${Tt.default.errors}`)}o(Awt,"subSchemaObjCode");function c3e(t){(0,Yc.checkUnknownRules)(t);xwt(t)}o(c3e,"checkKeywords");function d3e(t,e){if(t.opts.jtd)return i3e(t,[],false,e);const r=(0,r3e.getSchemaTypes)(t.schema);const n=(0,r3e.coerceAndCheckDataType)(t,r);i3e(t,r,!n,e)}o(d3e,"typeAndKeywords");function xwt(t){const{schema:e,errSchemaPath:r,opts:n,self:i}=t;if(e.$ref&&n.ignoreKeywordsWithRef&&(0,Yc.schemaHasRulesButRef)(e,i.RULES)){i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}}o(xwt,"checkRefsAndKeywords");function Cwt(t){const{schema:e,opts:r}=t;if(e.default!==void 0&&r.useDefaults&&r.strictSchema){(0,Yc.checkStrictMode)(t,"default is ignored in the schema root")}}o(Cwt,"checkNoDefault");function Rwt(t){const e=t.schema[t.opts.schemaId];if(e)t.baseId=(0,vwt.resolveUrl)(t.opts.uriResolver,t.baseId,e)}o(Rwt,"updateContext");function Owt(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}o(Owt,"checkAsyncSchema");function p3e({gen:t,schemaEnv:e,schema:r,errSchemaPath:n,opts:i}){const s=r.$comment;if(i.$comment===true){t.code((0,ut._)`${Tt.default.self}.logger.log(${s})`)}else if(typeof i.$comment=="function"){const a=(0,ut.str)`${n}/$comment`;const u=t.scopeValue("root",{ref:e.root});t.code((0,ut._)`${Tt.default.self}.opts.$comment(${s}, ${a}, ${u}.schema)`)}}o(p3e,"commentKeyword");function Nwt(t){const{gen:e,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=t;if(r.$async){e.if((0,ut._)`${Tt.default.errors} === 0`,()=>e.return(Tt.default.data),()=>e.throw((0,ut._)`new ${i}(${Tt.default.vErrors})`))}else{e.assign((0,ut._)`${n}.errors`,Tt.default.vErrors);if(s.unevaluated)Iwt(t);e.return((0,ut._)`${Tt.default.errors} === 0`)}}o(Nwt,"returnResults");function Iwt({gen:t,evaluated:e,props:r,items:n}){if(r instanceof ut.Name)t.assign((0,ut._)`${e}.props`,r);if(n instanceof ut.Name)t.assign((0,ut._)`${e}.items`,n)}o(Iwt,"assignEvaluated");function i3e(t,e,r,n){const{gen:i,schema:s,data:a,allErrors:u,opts:l,self:c}=t;const{RULES:d}=c;if(s.$ref&&(l.ignoreKeywordsWithRef||!(0,Yc.schemaHasRulesButRef)(s,d))){i.block(()=>h3e(t,"$ref",d.all.$ref.definition));return}if(!l.jtd)Pwt(t,e);i.block(()=>{for(const f of d.rules)p(f);p(d.post)});function p(f){if(!(0,QM.shouldUseGroup)(s,f))return;if(f.type){i.if((0,p7.checkDataType)(f.type,a,l.strictNumbers));s3e(t,f);if(e.length===1&&e[0]===f.type&&r){i.else();(0,p7.reportTypeError)(t)}i.endIf()}else{s3e(t,f)}if(!u)i.if((0,ut._)`${Tt.default.errors} === ${n||0}`)}o(p,"groupKeywords")}o(i3e,"schemaKeywords");function s3e(t,e){const{gen:r,schema:n,opts:{useDefaults:i}}=t;if(i)(0,ywt.assignDefaults)(t,e.type);r.block(()=>{for(const s of e.rules){if((0,QM.shouldUseRule)(n,s)){h3e(t,s.keyword,s.definition,e.type)}}})}o(s3e,"iterateKeywords");function Pwt(t,e){if(t.schemaEnv.meta||!t.opts.strictTypes)return;Dwt(t,e);if(!t.opts.allowUnionTypes)kwt(t,e);$wt(t,t.dataTypes)}o(Pwt,"checkStrictTypes");function Dwt(t,e){if(!e.length)return;if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(r=>{if(!f3e(t.dataTypes,r)){XM(t,`type "${r}" not allowed by context "${t.dataTypes.join(",")}"`)}});qwt(t,e)}o(Dwt,"checkContextTypes");function kwt(t,e){if(e.length>1&&!(e.length===2&&e.includes("null"))){XM(t,"use allowUnionTypes to allow union type keyword")}}o(kwt,"checkMultipleTypes");function $wt(t,e){const r=t.self.RULES.all;for(const n in r){const i=r[n];if(typeof i=="object"&&(0,QM.shouldUseRule)(t.schema,i)){const{type:s}=i.definition;if(s.length&&!s.some(a=>Lwt(e,a))){XM(t,`missing type "${s.join(",")}" for keyword "${n}"`)}}}}o($wt,"checkKeywordTypes");function Lwt(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}o(Lwt,"hasApplicableType");function f3e(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}o(f3e,"includesType");function qwt(t,e){const r=[];for(const n of t.dataTypes){if(f3e(e,n))r.push(n);else if(e.includes("integer")&&n==="number")r.push("integer")}t.dataTypes=r}o(qwt,"narrowSchemaTypes");function XM(t,e){const r=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${r}" (strictTypes)`;(0,Yc.checkStrictMode)(t,e,t.opts.strictTypes)}o(XM,"strictTypesError");var f7=class{static{o(this,"KeywordCxt")}constructor(e,r,n){(0,o6.validateKeywordUsage)(e,r,n);this.gen=e.gen;this.allErrors=e.allErrors;this.keyword=n;this.data=e.data;this.schema=e.schema[n];this.$data=r.$data&&e.opts.$data&&this.schema&&this.schema.$data;this.schemaValue=(0,Yc.schemaRefOrVal)(e,this.schema,n,this.$data);this.schemaType=r.schemaType;this.parentSchema=e.schema;this.params={};this.it=e;this.def=r;if(this.$data){this.schemaCode=e.gen.const("vSchema",m3e(this.$data,e))}else{this.schemaCode=this.schemaValue;if(!(0,o6.validSchemaType)(this.schema,r.schemaType,r.allowUndefined)){throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`)}}if("code"in r?r.trackErrors:r.errors!==false){this.errsCount=e.gen.const("_errs",Tt.default.errors)}}result(e,r,n){this.failResult((0,ut.not)(e),r,n)}failResult(e,r,n){this.gen.if(e);if(n)n();else this.error();if(r){this.gen.else();r();if(this.allErrors)this.gen.endIf()}else{if(this.allErrors)this.gen.endIf();else this.gen.else()}}pass(e,r){this.failResult((0,ut.not)(e),void 0,r)}fail(e){if(e===void 0){this.error();if(!this.allErrors)this.gen.if(false);return}this.gen.if(e);this.error();if(this.allErrors)this.gen.endIf();else this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:r}=this;this.fail((0,ut._)`${r} !== undefined && (${(0,ut.or)(this.invalid$data(),e)})`)}error(e,r,n){if(r){this.setParams(r);this._error(e,n);this.setParams({});return}this._error(e,n)}_error(e,r){;(e?a6.reportExtraError:a6.reportError)(this,this.def.error,r)}$dataError(){(0,a6.reportError)(this,this.def.$dataError||a6.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,a6.resetErrorsCount)(this.gen,this.errsCount)}ok(e){if(!this.allErrors)this.gen.if(e)}setParams(e,r){if(r)Object.assign(this.params,e);else this.params=e}block$data(e,r,n=ut.nil){this.gen.block(()=>{this.check$data(e,n);r()})}check$data(e=ut.nil,r=ut.nil){if(!this.$data)return;const{gen:n,schemaCode:i,schemaType:s,def:a}=this;n.if((0,ut.or)((0,ut._)`${i} === undefined`,r));if(e!==ut.nil)n.assign(e,true);if(s.length||a.validateSchema){n.elseIf(this.invalid$data());this.$dataError();if(e!==ut.nil)n.assign(e,false)}n.else()}invalid$data(){const{gen:e,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,ut.or)(a(),u());function a(){if(n.length){if(!(r instanceof ut.Name))throw new Error("ajv implementation error");const l=Array.isArray(n)?n:[n];return(0,ut._)`${(0,p7.checkDataTypes)(l,r,s.opts.strictNumbers,p7.DataType.Wrong)}`}return ut.nil}o(a,"wrong$DataType");function u(){if(i.validateSchema){const l=e.scopeValue("validate$data",{ref:i.validateSchema});return(0,ut._)`!${l}(${r})`}return ut.nil}o(u,"invalid$DataSchema")}subschema(e,r){const n=(0,JM.getSubschema)(this.it,e);(0,JM.extendSubschemaData)(n,this.it,e);(0,JM.extendSubschemaMode)(n,e);const i={...this.it,...n,items:void 0,props:void 0};Twt(i,r);return i}mergeEvaluated(e,r){const{it:n,gen:i}=this;if(!n.opts.unevaluated)return;if(n.props!==true&&e.props!==void 0){n.props=Yc.mergeEvaluated.props(i,e.props,n.props,r)}if(n.items!==true&&e.items!==void 0){n.items=Yc.mergeEvaluated.items(i,e.items,n.items,r)}}mergeValidEvaluated(e,r){const{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==true||n.items!==true)){i.if(r,()=>this.mergeEvaluated(e,ut.Name));return true}}};Bp.KeywordCxt=f7;function h3e(t,e,r,n){const i=new f7(t,r,e);if("code"in r){r.code(i,n)}else if(i.$data&&r.validate){(0,o6.funcKeywordCode)(i,r)}else if("macro"in r){(0,o6.macroKeywordCode)(i,r)}else if(r.compile||r.validate){(0,o6.funcKeywordCode)(i,r)}}o(h3e,"keywordCode");var jwt=/^\/(?:[^~]|~0|~1)*$/;var Uwt=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function m3e(t,{dataLevel:e,dataNames:r,dataPathArr:n}){let i;let s;if(t==="")return Tt.default.rootData;if(t[0]==="/"){if(!jwt.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);i=t;s=Tt.default.rootData}else{const c=Uwt.exec(t);if(!c)throw new Error(`Invalid JSON-pointer: ${t}`);const d=+c[1];i=c[2];if(i==="#"){if(d>=e)throw new Error(l("property/index",d));return n[e-d]}if(d>e)throw new Error(l("data",d));s=r[e-d];if(!i)return s}let a=s;const u=i.split("/");for(const c of u){if(c){s=(0,ut._)`${s}${(0,ut.getProperty)((0,Yc.unescapeJsonPointer)(c))}`;a=(0,ut._)`${a} && ${s}`}}return a;function l(c,d){return`Cannot access ${c} ${d} levels up, current level is ${e}`}o(l,"errorMsg")}o(m3e,"getData");Bp.getData=m3e});var h7=_(eV=>{"use strict";Object.defineProperty(eV,"__esModule",{value:true});var ZM=class extends Error{static{o(this,"ValidationError")}constructor(e){super("validation failed");this.errors=e;this.ajv=this.validation=true}};eV.default=ZM});var m7=_(nV=>{"use strict";Object.defineProperty(nV,"__esModule",{value:true});var tV=s6();var rV=class extends Error{static{o(this,"MissingRefError")}constructor(e,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`);this.missingRef=(0,tV.resolveUrl)(e,r,n);this.missingSchema=(0,tV.normalizeId)((0,tV.getFullPath)(e,this.missingRef))}};nV.default=rV});var l6=_(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:true});No.resolveSchema=No.getCompilingSchema=No.resolveRef=No.compileSchema=No.SchemaEnv=void 0;var Au=Pt();var Fwt=h7();var hm=Ro();var xu=s6();var g3e=sr();var Bwt=u6();var Bg=class{static{o(this,"SchemaEnv")}constructor(e){var r;this.refs={};this.dynamicAnchors={};let n;if(typeof e.schema=="object")n=e.schema;this.schema=e.schema;this.schemaId=e.schemaId;this.root=e.root||this;this.baseId=(r=e.baseId)!==null&&r!==void 0?r:(0,xu.normalizeId)(n===null||n===void 0?void 0:n[e.schemaId||"$id"]);this.schemaPath=e.schemaPath;this.localRefs=e.localRefs;this.meta=e.meta;this.$async=n===null||n===void 0?void 0:n.$async;this.refs={}}};No.SchemaEnv=Bg;function sV(t){const e=y3e.call(this,t);if(e)return e;const r=(0,xu.getFullPath)(this.opts.uriResolver,t.root.baseId);const{es5:n,lines:i}=this.opts.code;const{ownProperties:s}=this.opts;const a=new Au.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s});let u;if(t.$async){u=a.scopeValue("Error",{ref:Fwt.default,code:(0,Au._)`require("ajv/dist/runtime/validation_error").default`})}const l=a.scopeName("validate");t.validateName=l;const c={gen:a,allErrors:this.opts.allErrors,data:hm.default.data,parentData:hm.default.parentData,parentDataProperty:hm.default.parentDataProperty,dataNames:[hm.default.data],dataPathArr:[Au.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===true?{ref:t.schema,code:(0,Au.stringify)(t.schema)}:{ref:t.schema}),validateName:l,ValidationError:u,schema:t.schema,schemaEnv:t,rootId:r,baseId:t.baseId||r,schemaPath:Au.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Au._)`""`,opts:this.opts,self:this};let d;try{this._compilations.add(t);(0,Bwt.validateFunctionCode)(c);a.optimize(this.opts.code.optimize);const p=a.toString();d=`${a.scopeRefs(hm.default.scope)}return ${p}`;if(this.opts.code.process)d=this.opts.code.process(d,t);const f=new Function(`${hm.default.self}`,`${hm.default.scope}`,d);const h=f(this,this.scope.get());this.scope.value(l,{ref:h});h.errors=null;h.schema=t.schema;h.schemaEnv=t;if(t.$async)h.$async=true;if(this.opts.code.source===true){h.source={validateName:l,validateCode:p,scopeValues:a._values}}if(this.opts.unevaluated){const{props:m,items:g}=c;h.evaluated={props:m instanceof Au.Name?void 0:m,items:g instanceof Au.Name?void 0:g,dynamicProps:m instanceof Au.Name,dynamicItems:g instanceof Au.Name};if(h.source)h.source.evaluated=(0,Au.stringify)(h.evaluated)}t.validate=h;return t}catch(p){delete t.validate;delete t.validateName;if(d)this.logger.error("Error compiling schema, function code:",d);throw p}finally{this._compilations.delete(t)}}o(sV,"compileSchema");No.compileSchema=sV;function Mwt(t,e,r){var n;r=(0,xu.resolveUrl)(this.opts.uriResolver,e,r);const i=t.refs[r];if(i)return i;let s=zwt.call(this,t,r);if(s===void 0){const a=(n=t.localRefs)===null||n===void 0?void 0:n[r];const{schemaId:u}=this.opts;if(a)s=new Bg({schema:a,schemaId:u,root:t,baseId:e})}if(s===void 0)return;return t.refs[r]=Vwt.call(this,s)}o(Mwt,"resolveRef");No.resolveRef=Mwt;function Vwt(t){if((0,xu.inlineRef)(t.schema,this.opts.inlineRefs))return t.schema;return t.validate?t:sV.call(this,t)}o(Vwt,"inlineOrCompile");function y3e(t){for(const e of this._compilations){if(Hwt(e,t))return e}}o(y3e,"getCompilingSchema");No.getCompilingSchema=y3e;function Hwt(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}o(Hwt,"sameSchemaEnv");function zwt(t,e){let r;while(typeof(r=this.refs[e])=="string")e=r;return r||this.schemas[e]||g7.call(this,t,e)}o(zwt,"resolve");function g7(t,e){const r=this.opts.uriResolver.parse(e);const n=(0,xu._getFullPath)(this.opts.uriResolver,r);let i=(0,xu.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&n===i){return iV.call(this,r,t)}const s=(0,xu.normalizeId)(n);const a=this.refs[s]||this.schemas[s];if(typeof a=="string"){const u=g7.call(this,t,a);if(typeof(u===null||u===void 0?void 0:u.schema)!=="object")return;return iV.call(this,r,u)}if(typeof(a===null||a===void 0?void 0:a.schema)!=="object")return;if(!a.validate)sV.call(this,a);if(s===(0,xu.normalizeId)(e)){const{schema:u}=a;const{schemaId:l}=this.opts;const c=u[l];if(c)i=(0,xu.resolveUrl)(this.opts.uriResolver,i,c);return new Bg({schema:u,schemaId:l,root:t,baseId:i})}return iV.call(this,r,a)}o(g7,"resolveSchema");No.resolveSchema=g7;var Gwt=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function iV(t,{baseId:e,schema:r,root:n}){var i;if(((i=t.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(const u of t.fragment.slice(1).split("/")){if(typeof r==="boolean")return;const l=r[(0,g3e.unescapeFragment)(u)];if(l===void 0)return;r=l;const c=typeof r==="object"&&r[this.opts.schemaId];if(!Gwt.has(u)&&c){e=(0,xu.resolveUrl)(this.opts.uriResolver,e,c)}}let s;if(typeof r!="boolean"&&r.$ref&&!(0,g3e.schemaHasRulesButRef)(r,this.RULES)){const u=(0,xu.resolveUrl)(this.opts.uriResolver,e,r.$ref);s=g7.call(this,n,u)}const{schemaId:a}=this.opts;s=s||new Bg({schema:r,schemaId:a,root:n,baseId:e});if(s.schema!==s.root.schema)return s;return void 0}o(iV,"getJsonPointer")});var v3e=_((scr,Kwt)=>{Kwt.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:false}});var E3e=_(aV=>{"use strict";Object.defineProperty(aV,"__esModule",{value:true});var _3e=c0();_3e.code='require("ajv/dist/runtime/uri").default';aV.default=_3e});var R3e=_(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:true});rs.CodeGen=rs.Name=rs.nil=rs.stringify=rs.str=rs._=rs.KeywordCxt=void 0;var Ywt=u6();Object.defineProperty(rs,"KeywordCxt",{enumerable:true,get:function(){return Ywt.KeywordCxt}});var Mg=Pt();Object.defineProperty(rs,"_",{enumerable:true,get:function(){return Mg._}});Object.defineProperty(rs,"str",{enumerable:true,get:function(){return Mg.str}});Object.defineProperty(rs,"stringify",{enumerable:true,get:function(){return Mg.stringify}});Object.defineProperty(rs,"nil",{enumerable:true,get:function(){return Mg.nil}});Object.defineProperty(rs,"Name",{enumerable:true,get:function(){return Mg.Name}});Object.defineProperty(rs,"CodeGen",{enumerable:true,get:function(){return Mg.CodeGen}});var Wwt=h7();var A3e=m7();var Jwt=BM();var c6=l6();var Qwt=Pt();var d6=s6();var y7=i6();var uV=sr();var b3e=v3e();var Xwt=E3e();var x3e=o((t,e)=>new RegExp(t,e),"defaultRegExp");x3e.code="new RegExp";var Zwt=["removeAdditional","useDefaults","coerceTypes"];var e9t=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]);var t9t={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."};var r9t={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};var w3e=200;function n9t(t){var e,r,n,i,s,a,u,l,c,d,p,f,h,m,g,y,v,w,E,b,S,T,x,O,N;const U=t.strict;const M=(e=t.code)===null||e===void 0?void 0:e.optimize;const j=M===true||M===void 0?1:M||0;const Q=(n=(r=t.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:x3e;const ue=(i=t.uriResolver)!==null&&i!==void 0?i:Xwt.default;return{strictSchema:(a=(s=t.strictSchema)!==null&&s!==void 0?s:U)!==null&&a!==void 0?a:true,strictNumbers:(l=(u=t.strictNumbers)!==null&&u!==void 0?u:U)!==null&&l!==void 0?l:true,strictTypes:(d=(c=t.strictTypes)!==null&&c!==void 0?c:U)!==null&&d!==void 0?d:"log",strictTuples:(f=(p=t.strictTuples)!==null&&p!==void 0?p:U)!==null&&f!==void 0?f:"log",strictRequired:(m=(h=t.strictRequired)!==null&&h!==void 0?h:U)!==null&&m!==void 0?m:false,code:t.code?{...t.code,optimize:j,regExp:Q}:{optimize:j,regExp:Q},loopRequired:(g=t.loopRequired)!==null&&g!==void 0?g:w3e,loopEnum:(y=t.loopEnum)!==null&&y!==void 0?y:w3e,meta:(v=t.meta)!==null&&v!==void 0?v:true,messages:(w=t.messages)!==null&&w!==void 0?w:true,inlineRefs:(E=t.inlineRefs)!==null&&E!==void 0?E:true,schemaId:(b=t.schemaId)!==null&&b!==void 0?b:"$id",addUsedSchema:(S=t.addUsedSchema)!==null&&S!==void 0?S:true,validateSchema:(T=t.validateSchema)!==null&&T!==void 0?T:true,validateFormats:(x=t.validateFormats)!==null&&x!==void 0?x:true,unicodeRegExp:(O=t.unicodeRegExp)!==null&&O!==void 0?O:true,int32range:(N=t.int32range)!==null&&N!==void 0?N:true,uriResolver:ue}}o(n9t,"requiredOptions");var p6=class{static{o(this,"Ajv")}constructor(e={}){this.schemas={};this.refs={};this.formats={};this._compilations=new Set;this._loading={};this._cache=new Map;e=this.opts={...e,...n9t(e)};const{es5:r,lines:n}=this.opts.code;this.scope=new Qwt.ValueScope({scope:{},prefixes:e9t,es5:r,lines:n});this.logger=l9t(e.logger);const i=e.validateFormats;e.validateFormats=false;this.RULES=(0,Jwt.getRules)();S3e.call(this,t9t,e,"NOT SUPPORTED");S3e.call(this,r9t,e,"DEPRECATED","warn");this._metaOpts=o9t.call(this);if(e.formats)s9t.call(this);this._addVocabularies();this._addDefaultMetaSchema();if(e.keywords)a9t.call(this,e.keywords);if(typeof e.meta=="object")this.addMetaSchema(e.meta);i9t.call(this);e.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:r,schemaId:n}=this.opts;let i=b3e;if(n==="id"){i={...b3e};i.id=i.$id;delete i.$id}if(r&&e)this.addMetaSchema(i,i[n],false)}defaultMeta(){const{meta:e,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[r]||e:void 0}validate(e,r){let n;if(typeof e=="string"){n=this.getSchema(e);if(!n)throw new Error(`no schema with key or ref "${e}"`)}else{n=this.compile(e)}const i=n(r);if(!("$async"in n))this.errors=n.errors;return i}compile(e,r){const n=this._addSchema(e,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,r){if(typeof this.opts.loadSchema!="function"){throw new Error("options.loadSchema should be a function")}const{loadSchema:n}=this.opts;return i.call(this,e,r);async function i(d,p){await s.call(this,d.$schema);const f=this._addSchema(d,p);return f.validate||a.call(this,f)}o(i,"runCompileAsync");async function s(d){if(d&&!this.getSchema(d)){await i.call(this,{$ref:d},true)}}o(s,"loadMetaSchema");async function a(d){try{return this._compileSchemaEnv(d)}catch(p){if(!(p instanceof A3e.default))throw p;u.call(this,p);await l.call(this,p.missingSchema);return a.call(this,d)}}o(a,"_compileAsync");function u({missingSchema:d,missingRef:p}){if(this.refs[d]){throw new Error(`AnySchema ${d} is loaded but ${p} cannot be resolved`)}}o(u,"checkLoaded");async function l(d){const p=await c.call(this,d);if(!this.refs[d])await s.call(this,p.$schema);if(!this.refs[d])this.addSchema(p,d,r)}o(l,"loadMissingSchema");async function c(d){const p=this._loading[d];if(p)return p;try{return await(this._loading[d]=n(d))}finally{delete this._loading[d]}}o(c,"_loadSchema")}addSchema(e,r,n,i=this.opts.validateSchema){if(Array.isArray(e)){for(const a of e)this.addSchema(a,void 0,n,i);return this}let s;if(typeof e==="object"){const{schemaId:a}=this.opts;s=e[a];if(s!==void 0&&typeof s!="string"){throw new Error(`schema ${a} must be string`)}}r=(0,d6.normalizeId)(r||s);this._checkUnique(r);this.schemas[r]=this._addSchema(e,n,r,i,true);return this}addMetaSchema(e,r,n=this.opts.validateSchema){this.addSchema(e,r,true,n);return this}validateSchema(e,r){if(typeof e=="boolean")return true;let n;n=e.$schema;if(n!==void 0&&typeof n!="string"){throw new Error("$schema must be a string")}n=n||this.opts.defaultMeta||this.defaultMeta();if(!n){this.logger.warn("meta-schema not available");this.errors=null;return true}const i=this.validate(n,e);if(!i&&r){const s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return i}getSchema(e){let r;while(typeof(r=T3e.call(this,e))=="string")e=r;if(r===void 0){const{schemaId:n}=this.opts;const i=new c6.SchemaEnv({schema:{},schemaId:n});r=c6.resolveSchema.call(this,i,e);if(!r)return;this.refs[e]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(e){if(e instanceof RegExp){this._removeAllSchemas(this.schemas,e);this._removeAllSchemas(this.refs,e);return this}switch(typeof e){case"undefined":this._removeAllSchemas(this.schemas);this._removeAllSchemas(this.refs);this._cache.clear();return this;case"string":{const r=T3e.call(this,e);if(typeof r=="object")this._cache.delete(r.schema);delete this.schemas[e];delete this.refs[e];return this}case"object":{const r=e;this._cache.delete(r);let n=e[this.opts.schemaId];if(n){n=(0,d6.normalizeId)(n);delete this.schemas[n];delete this.refs[n]}return this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const r of e)this.addKeyword(r);return this}addKeyword(e,r){let n;if(typeof e=="string"){n=e;if(typeof r=="object"){this.logger.warn("these parameters are deprecated, see docs for addKeyword");r.keyword=n}}else if(typeof e=="object"&&r===void 0){r=e;n=r.keyword;if(Array.isArray(n)&&!n.length){throw new Error("addKeywords: keyword must be string or non-empty array")}}else{throw new Error("invalid addKeywords parameters")}d9t.call(this,n,r);if(!r){(0,uV.eachItem)(n,s=>oV.call(this,s));return this}f9t.call(this,r);const i={...r,type:(0,y7.getJSONTypes)(r.type),schemaType:(0,y7.getJSONTypes)(r.schemaType)};(0,uV.eachItem)(n,i.type.length===0?s=>oV.call(this,s,i):s=>i.type.forEach(a=>oV.call(this,s,i,a)));return this}getKeyword(e){const r=this.RULES.all[e];return typeof r=="object"?r.definition:!!r}removeKeyword(e){const{RULES:r}=this;delete r.keywords[e];delete r.all[e];for(const n of r.rules){const i=n.rules.findIndex(s=>s.keyword===e);if(i>=0)n.rules.splice(i,1)}return this}addFormat(e,r){if(typeof r=="string")r=new RegExp(r);this.formats[e]=r;return this}errorsText(e=this.errors,{separator:r=", ",dataVar:n="data"}={}){if(!e||e.length===0)return"No errors";return e.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,s)=>i+r+s)}$dataMetaSchema(e,r){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const i of r){const s=i.split("/").slice(1);let a=e;for(const u of s)a=a[u];for(const u in n){const l=n[u];if(typeof l!="object")continue;const{$data:c}=l.definition;const d=a[u];if(c&&d)a[u]=C3e(d)}}return e}_removeAllSchemas(e,r){for(const n in e){const i=e[n];if(!r||r.test(n)){if(typeof i=="string"){delete e[n]}else if(i&&!i.meta){this._cache.delete(i.schema);delete e[n]}}}}_addSchema(e,r,n,i=this.opts.validateSchema,s=this.opts.addUsedSchema){let a;const{schemaId:u}=this.opts;if(typeof e=="object"){a=e[u]}else{if(this.opts.jtd)throw new Error("schema must be object");else if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let l=this._cache.get(e);if(l!==void 0)return l;n=(0,d6.normalizeId)(a||n);const c=d6.getSchemaRefs.call(this,e,n);l=new c6.SchemaEnv({schema:e,schemaId:u,meta:r,baseId:n,localRefs:c});this._cache.set(l.schema,l);if(s&&!n.startsWith("#")){if(n)this._checkUnique(n);this.refs[n]=l}if(i)this.validateSchema(e,true);return l}_checkUnique(e){if(this.schemas[e]||this.refs[e]){throw new Error(`schema with key or id "${e}" already exists`)}}_compileSchemaEnv(e){if(e.meta)this._compileMetaSchema(e);else c6.compileSchema.call(this,e);if(!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const r=this.opts;this.opts=this._metaOpts;try{c6.compileSchema.call(this,e)}finally{this.opts=r}}};rs.default=p6;p6.ValidationError=Wwt.default;p6.MissingRefError=A3e.default;function S3e(t,e,r,n="error"){for(const i in t){const s=i;if(s in e)this.logger[n](`${r}: option ${i}. ${t[s]}`)}}o(S3e,"checkOptions");function T3e(t){t=(0,d6.normalizeId)(t);return this.schemas[t]||this.refs[t]}o(T3e,"getSchEnv");function i9t(){const t=this.opts.schemas;if(!t)return;if(Array.isArray(t))this.addSchema(t);else for(const e in t)this.addSchema(t[e],e)}o(i9t,"addInitialSchemas");function s9t(){for(const t in this.opts.formats){const e=this.opts.formats[t];if(e)this.addFormat(t,e)}}o(s9t,"addInitialFormats");function a9t(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const e in t){const r=t[e];if(!r.keyword)r.keyword=e;this.addKeyword(r)}}o(a9t,"addInitialKeywords");function o9t(){const t={...this.opts};for(const e of Zwt)delete t[e];return t}o(o9t,"getMetaSchemaOptions");var u9t={log(){},warn(){},error(){}};function l9t(t){if(t===false)return u9t;if(t===void 0)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}o(l9t,"getLogger");var c9t=/^[a-z_$][a-z0-9_$:-]*$/i;function d9t(t,e){const{RULES:r}=this;(0,uV.eachItem)(t,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!c9t.test(n))throw new Error(`Keyword ${n} has invalid name`)});if(!e)return;if(e.$data&&!("code"in e||"validate"in e)){throw new Error('$data keyword must have "code" or "validate" function')}}o(d9t,"checkKeyword");function oV(t,e,r){var n;const i=e===null||e===void 0?void 0:e.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:s}=this;let a=i?s.post:s.rules.find(({type:l})=>l===r);if(!a){a={type:r,rules:[]};s.rules.push(a)}s.keywords[t]=true;if(!e)return;const u={keyword:t,definition:{...e,type:(0,y7.getJSONTypes)(e.type),schemaType:(0,y7.getJSONTypes)(e.schemaType)}};if(e.before)p9t.call(this,a,u,e.before);else a.rules.push(u);s.all[t]=u;(n=e.implements)===null||n===void 0?void 0:n.forEach(l=>this.addKeyword(l))}o(oV,"addRule");function p9t(t,e,r){const n=t.rules.findIndex(i=>i.keyword===r);if(n>=0){t.rules.splice(n,0,e)}else{t.rules.push(e);this.logger.warn(`rule ${r} is not defined`)}}o(p9t,"addBeforeRule");function f9t(t){let{metaSchema:e}=t;if(e===void 0)return;if(t.$data&&this.opts.$data)e=C3e(e);t.validateSchema=this.compile(e,true)}o(f9t,"keywordMetaschema");var h9t={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function C3e(t){return{anyOf:[t,h9t]}}o(C3e,"schemaOrData")});var O3e=_(lV=>{"use strict";Object.defineProperty(lV,"__esModule",{value:true});var m9t={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};lV.default=m9t});var E7=_(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:true});mm.callRef=mm.getValidate=void 0;var g9t=m7();var N3e=Oo();var va=Pt();var Vg=Ro();var I3e=l6();var v7=sr();var y9t={keyword:"$ref",schemaType:"string",code(t){const{gen:e,schema:r,it:n}=t;const{baseId:i,schemaEnv:s,validateName:a,opts:u,self:l}=n;const{root:c}=s;if((r==="#"||r==="#/")&&i===c.baseId)return p();const d=I3e.resolveRef.call(l,c,i,r);if(d===void 0)throw new g9t.default(n.opts.uriResolver,i,r);if(d instanceof I3e.SchemaEnv)return f(d);return h(d);function p(){if(s===c)return _7(t,a,s,s.$async);const m=e.scopeValue("root",{ref:c});return _7(t,(0,va._)`${m}.validate`,c,c.$async)}o(p,"callRootRef");function f(m){const g=P3e(t,m);_7(t,g,m,m.$async)}o(f,"callValidate");function h(m){const g=e.scopeValue("schema",u.code.source===true?{ref:m,code:(0,va.stringify)(m)}:{ref:m});const y=e.name("valid");const v=t.subschema({schema:m,dataTypes:[],schemaPath:va.nil,topSchemaRef:g,errSchemaPath:r},y);t.mergeEvaluated(v);t.ok(y)}o(h,"inlineRefSchema")}};function P3e(t,e){const{gen:r}=t;return e.validate?r.scopeValue("validate",{ref:e.validate}):(0,va._)`${r.scopeValue("wrapper",{ref:e})}.validate`}o(P3e,"getValidate");mm.getValidate=P3e;function _7(t,e,r,n){const{gen:i,it:s}=t;const{allErrors:a,schemaEnv:u,opts:l}=s;const c=l.passContext?Vg.default.this:va.nil;if(n)d();else p();function d(){if(!u.$async)throw new Error("async schema referenced by sync schema");const m=i.let("valid");i.try(()=>{i.code((0,va._)`await ${(0,N3e.callValidateCode)(t,e,c)}`);h(e);if(!a)i.assign(m,true)},g=>{i.if((0,va._)`!(${g} instanceof ${s.ValidationError})`,()=>i.throw(g));f(g);if(!a)i.assign(m,false)});t.ok(m)}o(d,"callAsyncRef");function p(){t.result((0,N3e.callValidateCode)(t,e,c),()=>h(e),()=>f(e))}o(p,"callSyncRef");function f(m){const g=(0,va._)`${m}.errors`;i.assign(Vg.default.vErrors,(0,va._)`${Vg.default.vErrors} === null ? ${g} : ${Vg.default.vErrors}.concat(${g})`);i.assign(Vg.default.errors,(0,va._)`${Vg.default.vErrors}.length`)}o(f,"addErrorsFrom");function h(m){var g;if(!s.opts.unevaluated)return;const y=(g=r===null||r===void 0?void 0:r.validate)===null||g===void 0?void 0:g.evaluated;if(s.props!==true){if(y&&!y.dynamicProps){if(y.props!==void 0){s.props=v7.mergeEvaluated.props(i,y.props,s.props)}}else{const v=i.var("props",(0,va._)`${m}.evaluated.props`);s.props=v7.mergeEvaluated.props(i,v,s.props,va.Name)}}if(s.items!==true){if(y&&!y.dynamicItems){if(y.items!==void 0){s.items=v7.mergeEvaluated.items(i,y.items,s.items)}}else{const v=i.var("items",(0,va._)`${m}.evaluated.items`);s.items=v7.mergeEvaluated.items(i,v,s.items,va.Name)}}}o(h,"addEvaluatedFrom")}o(_7,"callRef");mm.callRef=_7;mm.default=y9t});var D3e=_(cV=>{"use strict";Object.defineProperty(cV,"__esModule",{value:true});var v9t=O3e();var _9t=E7();var E9t=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",v9t.default,_9t.default];cV.default=E9t});var k3e=_(dV=>{"use strict";Object.defineProperty(dV,"__esModule",{value:true});var b7=Pt();var Mp=b7.operators;var w7={maximum:{okStr:"<=",ok:Mp.LTE,fail:Mp.GT},minimum:{okStr:">=",ok:Mp.GTE,fail:Mp.LT},exclusiveMaximum:{okStr:"<",ok:Mp.LT,fail:Mp.GTE},exclusiveMinimum:{okStr:">",ok:Mp.GT,fail:Mp.LTE}};var b9t={message:({keyword:t,schemaCode:e})=>(0,b7.str)`must be ${w7[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,b7._)`{comparison: ${w7[t].okStr}, limit: ${e}}`};var w9t={keyword:Object.keys(w7),type:"number",schemaType:"number",$data:true,error:b9t,code(t){const{keyword:e,data:r,schemaCode:n}=t;t.fail$data((0,b7._)`${r} ${w7[e].fail} ${n} || isNaN(${r})`)}};dV.default=w9t});var $3e=_(pV=>{"use strict";Object.defineProperty(pV,"__esModule",{value:true});var f6=Pt();var S9t={message:({schemaCode:t})=>(0,f6.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,f6._)`{multipleOf: ${t}}`};var T9t={keyword:"multipleOf",type:"number",schemaType:"number",$data:true,error:S9t,code(t){const{gen:e,data:r,schemaCode:n,it:i}=t;const s=i.opts.multipleOfPrecision;const a=e.let("res");const u=s?(0,f6._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,f6._)`${a} !== parseInt(${a})`;t.fail$data((0,f6._)`(${n} === 0 || (${a} = ${r}/${n}, ${u}))`)}};pV.default=T9t});var q3e=_(fV=>{"use strict";Object.defineProperty(fV,"__esModule",{value:true});function L3e(t){const e=t.length;let r=0;let n=0;let i;while(n<e){r++;i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<e){i=t.charCodeAt(n);if((i&64512)===56320)n++}}return r}o(L3e,"ucs2length");fV.default=L3e;L3e.code='require("ajv/dist/runtime/ucs2length").default'});var j3e=_(hV=>{"use strict";Object.defineProperty(hV,"__esModule",{value:true});var gm=Pt();var A9t=sr();var x9t=q3e();var C9t={message({keyword:t,schemaCode:e}){const r=t==="maxLength"?"more":"fewer";return(0,gm.str)`must NOT have ${r} than ${e} characters`},params:({schemaCode:t})=>(0,gm._)`{limit: ${t}}`};var R9t={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:true,error:C9t,code(t){const{keyword:e,data:r,schemaCode:n,it:i}=t;const s=e==="maxLength"?gm.operators.GT:gm.operators.LT;const a=i.opts.unicode===false?(0,gm._)`${r}.length`:(0,gm._)`${(0,A9t.useFunc)(t.gen,x9t.default)}(${r})`;t.fail$data((0,gm._)`${a} ${s} ${n}`)}};hV.default=R9t});var U3e=_(mV=>{"use strict";Object.defineProperty(mV,"__esModule",{value:true});var O9t=Oo();var S7=Pt();var N9t={message:({schemaCode:t})=>(0,S7.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,S7._)`{pattern: ${t}}`};var I9t={keyword:"pattern",type:"string",schemaType:"string",$data:true,error:N9t,code(t){const{data:e,$data:r,schema:n,schemaCode:i,it:s}=t;const a=s.opts.unicodeRegExp?"u":"";const u=r?(0,S7._)`(new RegExp(${i}, ${a}))`:(0,O9t.usePattern)(t,n);t.fail$data((0,S7._)`!${u}.test(${e})`)}};mV.default=I9t});var F3e=_(gV=>{"use strict";Object.defineProperty(gV,"__esModule",{value:true});var h6=Pt();var P9t={message({keyword:t,schemaCode:e}){const r=t==="maxProperties"?"more":"fewer";return(0,h6.str)`must NOT have ${r} than ${e} properties`},params:({schemaCode:t})=>(0,h6._)`{limit: ${t}}`};var D9t={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:true,error:P9t,code(t){const{keyword:e,data:r,schemaCode:n}=t;const i=e==="maxProperties"?h6.operators.GT:h6.operators.LT;t.fail$data((0,h6._)`Object.keys(${r}).length ${i} ${n}`)}};gV.default=D9t});var B3e=_(yV=>{"use strict";Object.defineProperty(yV,"__esModule",{value:true});var m6=Oo();var g6=Pt();var k9t=sr();var $9t={message:({params:{missingProperty:t}})=>(0,g6.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,g6._)`{missingProperty: ${t}}`};var L9t={keyword:"required",type:"object",schemaType:"array",$data:true,error:$9t,code(t){const{gen:e,schema:r,schemaCode:n,data:i,$data:s,it:a}=t;const{opts:u}=a;if(!s&&r.length===0)return;const l=r.length>=u.loopRequired;if(a.allErrors)c();else d();if(u.strictRequired){const h=t.parentSchema.properties;const{definedProperties:m}=t.it;for(const g of r){if((h===null||h===void 0?void 0:h[g])===void 0&&!m.has(g)){const y=a.schemaEnv.baseId+a.errSchemaPath;const v=`required property "${g}" is not defined at "${y}" (strictRequired)`;(0,k9t.checkStrictMode)(a,v,a.opts.strictRequired)}}}function c(){if(l||s){t.block$data(g6.nil,p)}else{for(const h of r){(0,m6.checkReportMissingProp)(t,h)}}}o(c,"allErrorsMode");function d(){const h=e.let("missing");if(l||s){const m=e.let("valid",true);t.block$data(m,()=>f(h,m));t.ok(m)}else{e.if((0,m6.checkMissingProp)(t,r,h));(0,m6.reportMissingProp)(t,h);e.else()}}o(d,"exitOnErrorMode");function p(){e.forOf("prop",n,h=>{t.setParams({missingProperty:h});e.if((0,m6.noPropertyInData)(e,i,h,u.ownProperties),()=>t.error())})}o(p,"loopAllRequired");function f(h,m){t.setParams({missingProperty:h});e.forOf(h,n,()=>{e.assign(m,(0,m6.propertyInData)(e,i,h,u.ownProperties));e.if((0,g6.not)(m),()=>{t.error();e.break()})},g6.nil)}o(f,"loopUntilMissing")}};yV.default=L9t});var M3e=_(vV=>{"use strict";Object.defineProperty(vV,"__esModule",{value:true});var y6=Pt();var q9t={message({keyword:t,schemaCode:e}){const r=t==="maxItems"?"more":"fewer";return(0,y6.str)`must NOT have ${r} than ${e} items`},params:({schemaCode:t})=>(0,y6._)`{limit: ${t}}`};var j9t={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:true,error:q9t,code(t){const{keyword:e,data:r,schemaCode:n}=t;const i=e==="maxItems"?y6.operators.GT:y6.operators.LT;t.fail$data((0,y6._)`${r}.length ${i} ${n}`)}};vV.default=j9t});var T7=_(_V=>{"use strict";Object.defineProperty(_V,"__esModule",{value:true});var V3e=ru();V3e.code='require("ajv/dist/runtime/equal").default';_V.default=V3e});var H3e=_(bV=>{"use strict";Object.defineProperty(bV,"__esModule",{value:true});var EV=i6();var ns=Pt();var U9t=sr();var F9t=T7();var B9t={message:({params:{i:t,j:e}})=>(0,ns.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,ns._)`{i: ${t}, j: ${e}}`};var M9t={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:true,error:B9t,code(t){const{gen:e,data:r,$data:n,schema:i,parentSchema:s,schemaCode:a,it:u}=t;if(!n&&!i)return;const l=e.let("valid");const c=s.items?(0,EV.getSchemaTypes)(s.items):[];t.block$data(l,d,(0,ns._)`${a} === false`);t.ok(l);function d(){const m=e.let("i",(0,ns._)`${r}.length`);const g=e.let("j");t.setParams({i:m,j:g});e.assign(l,true);e.if((0,ns._)`${m} > 1`,()=>(p()?f:h)(m,g))}o(d,"validateUniqueItems");function p(){return c.length>0&&!c.some(m=>m==="object"||m==="array")}o(p,"canOptimize");function f(m,g){const y=e.name("item");const v=(0,EV.checkDataTypes)(c,y,u.opts.strictNumbers,EV.DataType.Wrong);const w=e.const("indices",(0,ns._)`{}`);e.for((0,ns._)`;${m}--;`,()=>{e.let(y,(0,ns._)`${r}[${m}]`);e.if(v,(0,ns._)`continue`);if(c.length>1)e.if((0,ns._)`typeof ${y} == "string"`,(0,ns._)`${y} += "_"`);e.if((0,ns._)`typeof ${w}[${y}] == "number"`,()=>{e.assign(g,(0,ns._)`${w}[${y}]`);t.error();e.assign(l,false).break()}).code((0,ns._)`${w}[${y}] = ${m}`)})}o(f,"loopN");function h(m,g){const y=(0,U9t.useFunc)(e,F9t.default);const v=e.name("outer");e.label(v).for((0,ns._)`;${m}--;`,()=>e.for((0,ns._)`${g} = ${m}; ${g}--;`,()=>e.if((0,ns._)`${y}(${r}[${m}], ${r}[${g}])`,()=>{t.error();e.assign(l,false).break(v)})))}o(h,"loopN2")}};bV.default=M9t});var z3e=_(SV=>{"use strict";Object.defineProperty(SV,"__esModule",{value:true});var wV=Pt();var V9t=sr();var H9t=T7();var z9t={message:"must be equal to constant",params:({schemaCode:t})=>(0,wV._)`{allowedValue: ${t}}`};var G9t={keyword:"const",$data:true,error:z9t,code(t){const{gen:e,data:r,$data:n,schemaCode:i,schema:s}=t;if(n||s&&typeof s=="object"){t.fail$data((0,wV._)`!${(0,V9t.useFunc)(e,H9t.default)}(${r}, ${i})`)}else{t.fail((0,wV._)`${s} !== ${r}`)}}};SV.default=G9t});var G3e=_(TV=>{"use strict";Object.defineProperty(TV,"__esModule",{value:true});var v6=Pt();var K9t=sr();var Y9t=T7();var W9t={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,v6._)`{allowedValues: ${t}}`};var J9t={keyword:"enum",schemaType:"array",$data:true,error:W9t,code(t){const{gen:e,data:r,$data:n,schema:i,schemaCode:s,it:a}=t;if(!n&&i.length===0)throw new Error("enum must have non-empty array");const u=i.length>=a.opts.loopEnum;let l;const c=o(()=>l!==null&&l!==void 0?l:l=(0,K9t.useFunc)(e,Y9t.default),"getEql");let d;if(u||n){d=e.let("valid");t.block$data(d,p)}else{if(!Array.isArray(i))throw new Error("ajv implementation error");const h=e.const("vSchema",s);d=(0,v6.or)(...i.map((m,g)=>f(h,g)))}t.pass(d);function p(){e.assign(d,false);e.forOf("v",s,h=>e.if((0,v6._)`${c()}(${r}, ${h})`,()=>e.assign(d,true).break()))}o(p,"loopEnum");function f(h,m){const g=i[m];return typeof g==="object"&&g!==null?(0,v6._)`${c()}(${r}, ${h}[${m}])`:(0,v6._)`${r} === ${g}`}o(f,"equalCode")}};TV.default=J9t});var K3e=_(AV=>{"use strict";Object.defineProperty(AV,"__esModule",{value:true});var Q9t=k3e();var X9t=$3e();var Z9t=j3e();var eSt=U3e();var tSt=F3e();var rSt=B3e();var nSt=M3e();var iSt=H3e();var sSt=z3e();var aSt=G3e();var oSt=[Q9t.default,X9t.default,Z9t.default,eSt.default,tSt.default,rSt.default,nSt.default,iSt.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},sSt.default,aSt.default];AV.default=oSt});var CV=_(_6=>{"use strict";Object.defineProperty(_6,"__esModule",{value:true});_6.validateAdditionalItems=void 0;var ym=Pt();var xV=sr();var uSt={message:({params:{len:t}})=>(0,ym.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,ym._)`{limit: ${t}}`};var lSt={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:uSt,code(t){const{parentSchema:e,it:r}=t;const{items:n}=e;if(!Array.isArray(n)){(0,xV.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Y3e(t,n)}};function Y3e(t,e){const{gen:r,schema:n,data:i,keyword:s,it:a}=t;a.items=true;const u=r.const("len",(0,ym._)`${i}.length`);if(n===false){t.setParams({len:e.length});t.pass((0,ym._)`${u} <= ${e.length}`)}else if(typeof n=="object"&&!(0,xV.alwaysValidSchema)(a,n)){const c=r.var("valid",(0,ym._)`${u} <= ${e.length}`);r.if((0,ym.not)(c),()=>l(c));t.ok(c)}function l(c){r.forRange("i",e.length,u,d=>{t.subschema({keyword:s,dataProp:d,dataPropType:xV.Type.Num},c);if(!a.allErrors)r.if((0,ym.not)(c),()=>r.break())})}o(l,"validateItems")}o(Y3e,"validateAdditionalItems");_6.validateAdditionalItems=Y3e;_6.default=lSt});var RV=_(E6=>{"use strict";Object.defineProperty(E6,"__esModule",{value:true});E6.validateTuple=void 0;var W3e=Pt();var A7=sr();var cSt=Oo();var dSt={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){const{schema:e,it:r}=t;if(Array.isArray(e))return J3e(t,"additionalItems",e);r.items=true;if((0,A7.alwaysValidSchema)(r,e))return;t.ok((0,cSt.validateArray)(t))}};function J3e(t,e,r=t.schema){const{gen:n,parentSchema:i,data:s,keyword:a,it:u}=t;d(i);if(u.opts.unevaluated&&r.length&&u.items!==true){u.items=A7.mergeEvaluated.items(n,r.length,u.items)}const l=n.name("valid");const c=n.const("len",(0,W3e._)`${s}.length`);r.forEach((p,f)=>{if((0,A7.alwaysValidSchema)(u,p))return;n.if((0,W3e._)`${c} > ${f}`,()=>t.subschema({keyword:a,schemaProp:f,dataProp:f},l));t.ok(l)});function d(p){const{opts:f,errSchemaPath:h}=u;const m=r.length;const g=m===p.minItems&&(m===p.maxItems||p[e]===false);if(f.strictTuples&&!g){const y=`"${a}" is ${m}-tuple, but minItems or maxItems/${e} are not specified or different at path "${h}"`;(0,A7.checkStrictMode)(u,y,f.strictTuples)}}o(d,"checkStrictTuple")}o(J3e,"validateTuple");E6.validateTuple=J3e;E6.default=dSt});var Q3e=_(OV=>{"use strict";Object.defineProperty(OV,"__esModule",{value:true});var pSt=RV();var fSt={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,pSt.validateTuple)(t,"items")};OV.default=fSt});var Z3e=_(NV=>{"use strict";Object.defineProperty(NV,"__esModule",{value:true});var X3e=Pt();var hSt=sr();var mSt=Oo();var gSt=CV();var ySt={message:({params:{len:t}})=>(0,X3e.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,X3e._)`{limit: ${t}}`};var vSt={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:ySt,code(t){const{schema:e,parentSchema:r,it:n}=t;const{prefixItems:i}=r;n.items=true;if((0,hSt.alwaysValidSchema)(n,e))return;if(i)(0,gSt.validateAdditionalItems)(t,i);else t.ok((0,mSt.validateArray)(t))}};NV.default=vSt});var e8e=_(IV=>{"use strict";Object.defineProperty(IV,"__esModule",{value:true});var Io=Pt();var x7=sr();var _St={message:({params:{min:t,max:e}})=>e===void 0?(0,Io.str)`must contain at least ${t} valid item(s)`:(0,Io.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,Io._)`{minContains: ${t}}`:(0,Io._)`{minContains: ${t}, maxContains: ${e}}`};var ESt={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:true,error:_St,code(t){const{gen:e,schema:r,parentSchema:n,data:i,it:s}=t;let a;let u;const{minContains:l,maxContains:c}=n;if(s.opts.next){a=l===void 0?1:l;u=c}else{a=1}const d=e.const("len",(0,Io._)`${i}.length`);t.setParams({min:a,max:u});if(u===void 0&&a===0){(0,x7.checkStrictMode)(s,`"minContains" == 0 without "maxContains": "contains" keyword ignored`);return}if(u!==void 0&&a>u){(0,x7.checkStrictMode)(s,`"minContains" > "maxContains" is always invalid`);t.fail();return}if((0,x7.alwaysValidSchema)(s,r)){let g=(0,Io._)`${d} >= ${a}`;if(u!==void 0)g=(0,Io._)`${g} && ${d} <= ${u}`;t.pass(g);return}s.items=true;const p=e.name("valid");if(u===void 0&&a===1){h(p,()=>e.if(p,()=>e.break()))}else if(a===0){e.let(p,true);if(u!==void 0)e.if((0,Io._)`${i}.length > 0`,f)}else{e.let(p,false);f()}t.result(p,()=>t.reset());function f(){const g=e.name("_valid");const y=e.let("count",0);h(g,()=>e.if(g,()=>m(y)))}o(f,"validateItemsWithCount");function h(g,y){e.forRange("i",0,d,v=>{t.subschema({keyword:"contains",dataProp:v,dataPropType:x7.Type.Num,compositeRule:true},g);y()})}o(h,"validateItems");function m(g){e.code((0,Io._)`${g}++`);if(u===void 0){e.if((0,Io._)`${g} >= ${a}`,()=>e.assign(p,true).break())}else{e.if((0,Io._)`${g} > ${u}`,()=>e.assign(p,false).break());if(a===1)e.assign(p,true);else e.if((0,Io._)`${g} >= ${a}`,()=>e.assign(p,true))}}o(m,"checkLimits")}};IV.default=ESt});var C7=_(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:true});Ol.validateSchemaDeps=Ol.validatePropertyDeps=Ol.error=void 0;var PV=Pt();var bSt=sr();var b6=Oo();Ol.error={message:({params:{property:t,depsCount:e,deps:r}})=>{const n=e===1?"property":"properties";return(0,PV.str)`must have ${n} ${r} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:r,missingProperty:n}})=>(0,PV._)`{property: ${t},