soonjs 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/index.cjs +3 -2
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.js +4 -3
  4. package/dist/types.d.ts +4 -0
  5. package/dist/vite-plugin-soon-client.cjs +3 -3
  6. package/dist/vite-plugin-soon-client.js +15 -15
  7. package/dist/vite-plugin-soon-server.cjs +1 -1
  8. package/dist/vite-plugin-soon-server.js +1 -1
  9. package/package.json +1 -1
  10. /package/dist/deps/{acorn-jU-39Pbw5W-tlyikqxxb.js → acorn-jU-39Pbw5W-isnwge0yi.js} +0 -0
  11. /package/dist/deps/{acorn-jU-39Pbw5W-pyzr6thqf.js → acorn-jU-39Pbw5W-zn469rpvq.js} +0 -0
  12. /package/dist/deps/{angular-eXKcfordor-gjar1bk5h.js → angular-eXKcfordor-0jy8yhjxm.js} +0 -0
  13. /package/dist/deps/{angular-eXKcfordor-8f5xxksmt.js → angular-eXKcfordor-ien44f4id.js} +0 -0
  14. /package/dist/deps/{babel-QODt_XJZCU-aea7wd9s9.js → babel-QODt_XJZCU-3c9simfys.js} +0 -0
  15. /package/dist/deps/{babel-QODt_XJZCU-bsxnxqtkc.js → babel-QODt_XJZCU-o3ncoehtd.js} +0 -0
  16. /package/dist/deps/{estree-_Gcr3virjH-iw6fl1iik.js → estree-_Gcr3virjH-2pcbe2o5i.js} +0 -0
  17. /package/dist/deps/{estree-_Gcr3virjH-aj6etbdw2.js → estree-_Gcr3virjH-6gxzhbchv.js} +0 -0
  18. /package/dist/deps/{flow-VkrRJr6lFd-frj2khjn9.js → flow-VkrRJr6lFd-wvbkzyw6a.js} +0 -0
  19. /package/dist/deps/{flow-VkrRJr6lFd-nzn1st4yq.js → flow-VkrRJr6lFd-zhic86jlp.js} +0 -0
  20. /package/dist/deps/{glimmer-I6jyK4xw2I-18u5lqd62.js → glimmer-I6jyK4xw2I-gr65x71rm.js} +0 -0
  21. /package/dist/deps/{glimmer-I6jyK4xw2I-769lz4sr2.js → glimmer-I6jyK4xw2I-x8v4bda86.js} +0 -0
  22. /package/dist/deps/{graphql-F7JRnTC996-ayvu1usbu.js → graphql-F7JRnTC996-0btmgp8pk.js} +0 -0
  23. /package/dist/deps/{graphql-F7JRnTC996-e5p1nm12p.js → graphql-F7JRnTC996-2ojrutaeh.js} +0 -0
  24. /package/dist/deps/{html-C-ZYESkdqr-11a9koibr.js → html-C-ZYESkdqr-3ibhq96kt.js} +0 -0
  25. /package/dist/deps/{html-C-ZYESkdqr-8z224ckkh.js → html-C-ZYESkdqr-a7gr3w4g3.js} +0 -0
  26. /package/dist/deps/{markdown-4m9fGqwyBD-7ioemazbo.js → markdown-4m9fGqwyBD-eccsz36ow.js} +0 -0
  27. /package/dist/deps/{markdown-4m9fGqwyBD-cxujxs2rc.js → markdown-4m9fGqwyBD-lyymvhror.js} +0 -0
  28. /package/dist/deps/{meriyah-2XmgupY1jB-7njqx9g3a.js → meriyah-2XmgupY1jB-cng1d0k43.js} +0 -0
  29. /package/dist/deps/{meriyah-2XmgupY1jB-k4r4wqa1m.js → meriyah-2XmgupY1jB-d2axxybdr.js} +0 -0
  30. /package/dist/deps/{postcss-UtIjNac23s-7atpp9bv0.js → postcss-UtIjNac23s-diapgrdxr.js} +0 -0
  31. /package/dist/deps/{postcss-UtIjNac23s-llf22drl3.js → postcss-UtIjNac23s-tn25mdiq5.js} +0 -0
  32. /package/dist/deps/{soon-id-t25L9qRGGZ-ho0x5m1c3.js → soon-id-t25L9qRGGZ-1p453zvsh.js} +0 -0
  33. /package/dist/deps/{soon-id-t25L9qRGGZ-zb70pi9of.js → soon-id-t25L9qRGGZ-l3h6p65r6.js} +0 -0
  34. /package/dist/deps/{typescript-7W94NRN5-v-vmk97jc6x.js → typescript-7W94NRN5-v-f911biyrt.js} +0 -0
  35. /package/dist/deps/{typescript-7W94NRN5-v-dp5rdx11f.js → typescript-7W94NRN5-v-lpn9x54xj.js} +0 -0
  36. /package/dist/deps/{yaml-GTMY6ek0xu-zrnmxlhi1.js → yaml-GTMY6ek0xu-yiuaxdogf.js} +0 -0
  37. /package/dist/deps/{yaml-GTMY6ek0xu-pown9flit.js → yaml-GTMY6ek0xu-yjoiq2gej.js} +0 -0
package/dist/index.cjs CHANGED
@@ -1,7 +1,8 @@
1
- "use strict";var Kt=Object.defineProperty;var Vt=(r,e,t)=>e in r?Kt(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var P=(r,e,t)=>Vt(r,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Qt=require("stream"),Y=require("./deps/soon-id-t25L9qRGGZ-zb70pi9of.js"),Jt=require("util");var j={};Object.defineProperty(j,"__esModule",{value:!0});j.TokenData=void 0;j.parse=Ar;j.compile=tn;var Xt=j.match=on;j.pathToRegexp=pt;const ut="/",Er=r=>r,Yt=new RegExp("^\\p{XID_Continue}$","u"),ue="https://git.new/pathToRegexpError",Zt={"!":"!","@":"@",";":";",",":",","*":"*","+":"+","?":"?","{":"{","}":"}"};function en(r){const e=[...r],t=[];let n=0;for(;n<e.length;){const a=e[n],i=Zt[a];if(i){t.push({type:i,index:n++,value:a});continue}if(a==="\\"){t.push({type:"ESCAPED",index:n++,value:e[n++]});continue}if(a===":"){let o="";for(;Yt.test(e[++n]);)o+=e[n];if(!o)throw new TypeError(`Missing parameter name at ${n}`);t.push({type:"NAME",index:n,value:o});continue}if(a==="("){const o=n++;let u=1,l="";if(e[n]==="?")throw new TypeError(`Pattern cannot start with "?" at ${n}`);for(;n<e.length;){if(e[n]==="\\"){l+=e[n++]+e[n++];continue}if(e[n]===")"){if(u--,u===0){n++;break}}else if(e[n]==="("&&(u++,e[n+1]!=="?"))throw new TypeError(`Capturing groups are not allowed at ${n}`);l+=e[n++]}if(u)throw new TypeError(`Unbalanced pattern at ${o}`);if(!l)throw new TypeError(`Missing pattern at ${o}`);t.push({type:"PATTERN",index:n,value:l});continue}t.push({type:"CHAR",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),new rn(t)}class rn{constructor(e){this.tokens=e,this.index=0}peek(){return this.tokens[this.index]}tryConsume(e){const t=this.peek();if(t.type===e)return this.index++,t.value}consume(e){const t=this.tryConsume(e);if(t!==void 0)return t;const{type:n,index:a}=this.peek();throw new TypeError(`Unexpected ${n} at ${a}, expected ${e}: ${ue}`)}text(){let e="",t;for(;t=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)e+=t;return e}modifier(){return this.tryConsume("?")||this.tryConsume("*")||this.tryConsume("+")}}class De{constructor(e,t){this.tokens=e,this.delimiter=t}}j.TokenData=De;function Ar(r,e={}){const{encodePath:t=Er,delimiter:n=t(ut)}=e,a=[],i=en(r);let o=0;do{const u=i.text();u&&a.push(t(u));const l=i.tryConsume("NAME"),c=i.tryConsume("PATTERN");if(l||c){a.push({name:l||String(o++),pattern:c});const f=i.peek();if(f.type==="*")throw new TypeError(`Unexpected * at ${f.index}, you probably want \`/*\` or \`{/:foo}*\`: ${ue}`);continue}if(i.tryConsume("*")){a.push({name:String(o++),pattern:`(?:(?!${Z(n)}).)*`,modifier:"*",separator:n});continue}if(i.tryConsume("{")){const f=i.text(),d=i.tryConsume("NAME"),y=i.tryConsume("PATTERN"),h=i.text(),g=i.tryConsume(";")&&i.text();i.consume("}");const b=i.modifier();a.push({name:d||(y?String(o++):""),prefix:t(f),suffix:t(h),pattern:y,modifier:b,separator:g});continue}i.consume("END");break}while(!0);return new De(a,n)}function tn(r,e={}){const t=r instanceof De?r:Ar(r,e);return an(t,e)}function nn(r,e){if(typeof r=="string")return()=>r;const t=e||Er,n=r.modifier==="+"||r.modifier==="*",a=r.modifier==="?"||r.modifier==="*",{prefix:i="",suffix:o="",separator:u=o+i}=r;if(e&&n){const c=(p,f)=>{if(typeof p!="string")throw new TypeError(`Expected "${r.name}/${f}" to be a string`);return t(p)},s=p=>{if(!Array.isArray(p))throw new TypeError(`Expected "${r.name}" to be an array`);return p.length===0?"":i+p.map(c).join(u)+o};return a?p=>{const f=p[r.name];return f==null?"":f.length?s(f):""}:p=>{const f=p[r.name];return s(f)}}const l=c=>{if(typeof c!="string")throw new TypeError(`Expected "${r.name}" to be a string`);return i+t(c)+o};return a?c=>{const s=c[r.name];return s==null?"":l(s)}:c=>{const s=c[r.name];return l(s)}}function an(r,e){const{encode:t=encodeURIComponent,loose:n=!0,validate:a=!0,strict:i=!1}=e,o=ct(e),u=$r(n,r.delimiter),l=st(r,u,[],o,i),c=r.tokens.map((s,p)=>{const f=nn(s,t);if(!a||typeof s=="string")return f;const d=new RegExp(`^${l[p]}$`,o);return y=>{const h=f(y);if(!d.test(h))throw new TypeError(`Invalid value for "${s.name}": ${JSON.stringify(h)}`);return h}});return function(p={}){let f="";for(const d of c)f+=d(p);return f}}function on(r,e={}){const{decode:t=decodeURIComponent,loose:n=!0,delimiter:a=ut}=e,i=pt(r,e),o=$r(n,a),u=i.keys.map(l=>{if(t&&(l.modifier==="+"||l.modifier==="*")){const{prefix:c="",suffix:s="",separator:p=s+c}=l,f=new RegExp(o(p),"g");return d=>d.split(f).map(t)}return t||Er});return function(c){const s=i.exec(c);if(!s)return!1;const{0:p,index:f}=s,d=Object.create(null);for(let y=1;y<s.length;y++){if(s[y]===void 0)continue;const h=i.keys[y-1],g=u[y-1];d[h.name]=g(s[y])}return{path:p,index:f,params:d}}}function Z(r){return r.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function ln(r,e){const t=Z(r);return e?`(?:${t})+(?!${t})`:t}function $r(r,e){if(!r)return Z;const t=new RegExp(`(?:(?!${Z(e)}).)+|(.)`,"g");return n=>n.replace(t,ln)}function ct(r){return r.sensitive?"":"i"}function Dr(r,e,t,n){const a=r instanceof De?r:Ar(r,n),{trailing:i=!0,loose:o=!0,start:u=!0,end:l=!0,strict:c=!1}=n,s=$r(o,a.delimiter),p=st(a,s,e,t,c);let f=u?"^":"";return f+=p.join(""),i&&(f+=`(?:${s(a.delimiter)}$)?`),f+=l?"$":`(?=${Z(a.delimiter)}|$)`,f}function st(r,e,t,n,a){const i=`(?:(?!${Z(r.delimiter)}).)+?`;let o="",u=!0;return r.tokens.map(l=>{if(typeof l=="string")return o=l,e(l);const{prefix:c="",suffix:s="",separator:p=s+c,modifier:f=""}=l,d=e(c),y=e(s);if(l.name){const h=l.pattern?`(?:${l.pattern})`:i,g=fn(h,l.name,n);if(u||(u=He(g,c||o)),!u)throw new TypeError(`Ambiguous pattern for "${l.name}": ${ue}`);if(u=!a||He(g,s),o="",t.push(l),f==="+"||f==="*"){const b=f==="*"?"?":"",A=e(p);if(!A)throw new TypeError(`Missing separator for "${l.name}": ${ue}`);if(u||(u=!a||He(g,p)),!u)throw new TypeError(`Ambiguous pattern for "${l.name}" separator: ${ue}`);return u=!a,`(?:${d}(${h}(?:${A}${h})*)${y})${b}`}return`(?:${d}(${h})${y})${f}`}return`(?:${d}${y})${f}`})}function fn(r,e,t){try{return new RegExp(`^${r}$`,t)}catch(n){throw new TypeError(`Invalid pattern for "${e}": ${n.message}`)}}function He(r,e){return e?!r.test(e):!1}function pt(r,e={}){const t=[],n=ct(e);if(Array.isArray(r)){const i=r.map(o=>Dr(o,t,n,e));return Object.assign(new RegExp(i.join("|")),{keys:t})}const a=Dr(r,t,n,e);return Object.assign(new RegExp(a),{keys:t})}var Ne={};Object.defineProperty(Ne,"__esModule",{value:!0});Ne.Observable=void 0;const yt=r=>!!Symbol[r],Pr=r=>yt(r)?Symbol[r]:"@@"+r,un=Pr("iterator"),dr=Pr("observable"),dt=Pr("species");function Re(r,e){let t=r[e];if(t!=null){if(typeof t!="function")throw new TypeError(t+" is not a function");return t}}function oe(r){let e=r.constructor;return e!==void 0&&(e=e[dt],e===null&&(e=void 0)),e!==void 0?e:Le}function cn(r){return r instanceof Le}function ee(r){ee.log?ee.log(r):setTimeout(()=>{throw r})}function Ae(r){Promise.resolve().then(()=>{try{r()}catch(e){ee(e)}})}function ht(r){let e=r._cleanup;if(e!==void 0&&(r._cleanup=void 0,!!e))try{if(typeof e=="function")e();else{let t=Re(e,"unsubscribe");t&&t.call(e)}}catch(t){ee(t)}}function hr(r){r._observer=void 0,r._queue=void 0,r._state="closed"}function sn(r){let e=r._queue;if(e){r._queue=void 0,r._state="ready";for(let t=0;t<e.length&&(mt(r,e[t].type,e[t].value),r._state!=="closed");++t);}}function mt(r,e,t){r._state="running";let n=r._observer;try{let a=Re(n,e);switch(e){case"next":a&&a.call(n,t);break;case"error":if(hr(r),a)a.call(n,t);else throw t;break;case"complete":hr(r),a&&a.call(n);break}}catch(a){ee(a)}r._state==="closed"?ht(r):r._state==="running"&&(r._state="ready")}function ze(r,e,t){if(r._state!=="closed"){if(r._state==="buffering"){r._queue.push({type:e,value:t});return}if(r._state!=="ready"){r._state="buffering",r._queue=[{type:e,value:t}],Ae(()=>sn(r));return}mt(r,e,t)}}class pn{constructor(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";let n=this,a={get closed(){return n._state==="closed"},next(i){ze(n,"next",i)},error(i){ze(n,"error",i)},complete(){ze(n,"complete")}};try{this._cleanup=t.call(void 0,a)}catch(i){a.error(i)}this._state==="initializing"&&(this._state="ready")}get closed(){return this._state==="closed"}unsubscribe(){this._state!=="closed"&&(hr(this),ht(this))}}let Le=class $e{constructor(e){if(!(this instanceof $e))throw new TypeError("Observable cannot be called as a function");if(typeof e!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=e}subscribe(e){return(typeof e!="object"||e===null)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new pn(e,this._subscriber)}forEach(e){return new Promise((t,n)=>{if(typeof e!="function"){n(new TypeError(e+" is not a function"));return}function a(){i.unsubscribe(),t()}let i=this.subscribe({next(o){try{e(o,a)}catch(u){n(u),i.unsubscribe()}},error:n,complete:t})})}map(e){if(typeof e!="function")throw new TypeError(e+" is not a function");let t=oe(this);return new t(n=>this.subscribe({next(a){try{a=e(a)}catch(i){return n.error(i)}n.next(a)},error(a){n.error(a)},complete(){n.complete()}}))}filter(e){if(typeof e!="function")throw new TypeError(e+" is not a function");let t=oe(this);return new t(n=>this.subscribe({next(a){try{if(!e(a))return}catch(i){return n.error(i)}n.next(a)},error(a){n.error(a)},complete(){n.complete()}}))}reduce(e){if(typeof e!="function")throw new TypeError(e+" is not a function");let t=oe(this),n=arguments.length>1,a=!1,o=arguments[1];return new t(u=>this.subscribe({next(l){let c=!a;if(a=!0,!c||n)try{o=e(o,l)}catch(s){return u.error(s)}else o=l},error(l){u.error(l)},complete(){if(!a&&!n)return u.error(new TypeError("Cannot reduce an empty sequence"));u.next(o),u.complete()}}))}async all(){let e=[];return await this.forEach(t=>e.push(t)),e}concat(...e){let t=oe(this);return new t(n=>{let a,i=0;function o(u){a=u.subscribe({next(l){n.next(l)},error(l){n.error(l)},complete(){i===e.length?(a=void 0,n.complete()):o(t.from(e[i++]))}})}return o(this),()=>{a&&(a.unsubscribe(),a=void 0)}})}flatMap(e){if(typeof e!="function")throw new TypeError(e+" is not a function");let t=oe(this);return new t(n=>{let a=[],i=this.subscribe({next(u){if(e)try{u=e(u)}catch(c){return n.error(c)}let l=t.from(u).subscribe({next(c){n.next(c)},error(c){n.error(c)},complete(){let c=a.indexOf(l);c>=0&&a.splice(c,1),o()}});a.push(l)},error(u){n.error(u)},complete(){o()}});function o(){i.closed&&a.length===0&&n.complete()}return()=>{a.forEach(u=>u.unsubscribe()),i.unsubscribe()}})}[dr](){return this}static from(e){let t=typeof this=="function"?this:$e;if(e==null)throw new TypeError(e+" is not an object");let n=Re(e,dr);if(n){let a=n.call(e);if(Object(a)!==a)throw new TypeError(a+" is not an object");return cn(a)&&a.constructor===t?a:new t(i=>a.subscribe(i))}if(yt("iterator")&&(n=Re(e,un),n))return new t(a=>{Ae(()=>{if(!a.closed){for(let i of n.call(e))if(a.next(i),a.closed)return;a.complete()}})});if(Array.isArray(e))return new t(a=>{Ae(()=>{if(!a.closed){for(let i=0;i<e.length;++i)if(a.next(e[i]),a.closed)return;a.complete()}})});throw new TypeError(e+" is not observable")}static of(...e){let t=typeof this=="function"?this:$e;return new t(n=>{Ae(()=>{if(!n.closed){for(let a=0;a<e.length;++a)if(n.next(e[a]),n.closed)return;n.complete()}})})}static get[dt](){return this}};Ne.Observable=Le;Object.defineProperty(Le,Symbol("extensions"),{value:{symbol:dr,hostReportError:ee},configurable:!0});var yn=Ne.Observable;const xr=Y.getDefaultExportFromCjs(yn);var ne=TypeError,dn=Jt.inspect,Or=typeof Map=="function"&&Map.prototype,ke=Object.getOwnPropertyDescriptor&&Or?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,_e=Or&&ke&&typeof ke.get=="function"?ke.get:null,Nr=Or&&Map.prototype.forEach,Ir=typeof Set=="function"&&Set.prototype,Ke=Object.getOwnPropertyDescriptor&&Ir?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ce=Ir&&Ke&&typeof Ke.get=="function"?Ke.get:null,Lr=Ir&&Set.prototype.forEach,hn=typeof WeakMap=="function"&&WeakMap.prototype,ce=hn?WeakMap.prototype.has:null,mn=typeof WeakSet=="function"&&WeakSet.prototype,se=mn?WeakSet.prototype.has:null,vn=typeof WeakRef=="function"&&WeakRef.prototype,Br=vn?WeakRef.prototype.deref:null,gn=Boolean.prototype.valueOf,wn=Object.prototype.toString,Sn=Function.prototype.toString,bn=String.prototype.match,Rr=String.prototype.slice,L=String.prototype.replace,En=String.prototype.toUpperCase,Ur=String.prototype.toLowerCase,vt=RegExp.prototype.test,qr=Array.prototype.concat,R=Array.prototype.join,An=Array.prototype.slice,Wr=Math.floor,mr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ve=Object.getOwnPropertySymbols,vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,re=typeof Symbol=="function"&&typeof Symbol.iterator=="object",pe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===re||!0)?Symbol.toStringTag:null,gt=Object.prototype.propertyIsEnumerable,Fr=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function Gr(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||vt.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-Wr(-r):Wr(r);if(n!==r){var a=String(n),i=Rr.call(e,a.length+1);return L.call(a,t,"$&_")+"."+L.call(L.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return L.call(e,t,"$&_")}var gr=dn,jr=gr.custom,Hr=bt(jr)?jr:null,wt={__proto__:null,double:'"',single:"'"},$n={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Be=function r(e,t,n,a){var i=t||{};if(T(i,"quoteStyle")&&!T(wt,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(T(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=T(i,"customInspect")?i.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(T(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(T(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return At(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return u?Gr(e,l):l}if(typeof e=="bigint"){var c=String(e)+"n";return u?Gr(e,c):c}var s=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=s&&s>0&&typeof e=="object")return wr(e)?"[Array]":"[Object]";var p=Gn(i,n);if(typeof a>"u")a=[];else if(Et(a,e)>=0)return"[Circular]";function f(x,N,C){if(N&&(a=An.call(a),a.push(N)),C){var ie={depth:i.depth};return T(i,"quoteStyle")&&(ie.quoteStyle=i.quoteStyle),r(x,ie,n+1,a)}return r(x,i,n+1,a)}if(typeof e=="function"&&!zr(e)){var d=Mn(e),y=be(e,f);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(y.length>0?" { "+R.call(y,", ")+" }":"")}if(bt(e)){var h=re?L.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):vr.call(e);return typeof e=="object"&&!re?le(h):h}if(qn(e)){for(var g="<"+Ur.call(String(e.nodeName)),b=e.attributes||[],A=0;A<b.length;A++)g+=" "+b[A].name+"="+St(Pn(b[A].value),"double",i);return g+=">",e.childNodes&&e.childNodes.length&&(g+="..."),g+="</"+Ur.call(String(e.nodeName))+">",g}if(wr(e)){if(e.length===0)return"[]";var m=be(e,f);return p&&!Fn(m)?"["+Sr(m,p)+"]":"[ "+R.call(m,", ")+" ]"}if(On(e)){var M=be(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!gt.call(e,"cause")?"{ ["+String(e)+"] "+R.call(qr.call("[cause]: "+f(e.cause),M),", ")+" }":M.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+R.call(M,", ")+" }"}if(typeof e=="object"&&o){if(Hr&&typeof e[Hr]=="function"&&gr)return gr(e,{depth:s-n});if(o!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Dn(e)){var U=[];return Nr&&Nr.call(e,function(x,N){U.push(f(N,e,!0)+" => "+f(x,e))}),kr("Map",_e.call(e),U,p)}if(Bn(e)){var ae=[];return Lr&&Lr.call(e,function(x){ae.push(f(x,e))}),kr("Set",Ce.call(e),ae,p)}if(Nn(e))return Qe("WeakMap");if(Un(e))return Qe("WeakSet");if(Ln(e))return Qe("WeakRef");if(Rn(e))return le(f(Number(e)));if(Cn(e))return le(f(mr.call(e)));if(_n(e))return le(gn.call(e));if(In(e))return le(f(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof Y.commonjsGlobal<"u"&&e===Y.commonjsGlobal)return"{ [object globalThis] }";if(!xn(e)&&!zr(e)){var z=be(e,f),we=Fr?Fr(e)===Object.prototype:e instanceof Object||e.constructor===Object,q=e instanceof Object?"":"null prototype",D=!we&&pe&&Object(e)===e&&pe in e?Rr.call(B(e),8,-1):q?"Object":"",Se=we||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",k=Se+(D||q?"["+R.call(qr.call([],D||[],q||[]),": ")+"] ":"");return z.length===0?k+"{}":p?k+"{"+Sr(z,p)+"}":k+"{ "+R.call(z,", ")+" }"}return String(e)};function St(r,e,t){var n=t.quoteStyle||e,a=wt[n];return a+r+a}function Pn(r){return L.call(String(r),/"/g,"&quot;")}function H(r){return!pe||!(typeof r=="object"&&(pe in r||typeof r[pe]<"u"))}function wr(r){return B(r)==="[object Array]"&&H(r)}function xn(r){return B(r)==="[object Date]"&&H(r)}function zr(r){return B(r)==="[object RegExp]"&&H(r)}function On(r){return B(r)==="[object Error]"&&H(r)}function In(r){return B(r)==="[object String]"&&H(r)}function Rn(r){return B(r)==="[object Number]"&&H(r)}function _n(r){return B(r)==="[object Boolean]"&&H(r)}function bt(r){if(re)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!vr)return!1;try{return vr.call(r),!0}catch{}return!1}function Cn(r){if(!r||typeof r!="object"||!mr)return!1;try{return mr.call(r),!0}catch{}return!1}var Tn=Object.prototype.hasOwnProperty||function(r){return r in this};function T(r,e){return Tn.call(r,e)}function B(r){return wn.call(r)}function Mn(r){if(r.name)return r.name;var e=bn.call(Sn.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function Et(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}function Dn(r){if(!_e||!r||typeof r!="object")return!1;try{_e.call(r);try{Ce.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function Nn(r){if(!ce||!r||typeof r!="object")return!1;try{ce.call(r,ce);try{se.call(r,se)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function Ln(r){if(!Br||!r||typeof r!="object")return!1;try{return Br.call(r),!0}catch{}return!1}function Bn(r){if(!Ce||!r||typeof r!="object")return!1;try{Ce.call(r);try{_e.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function Un(r){if(!se||!r||typeof r!="object")return!1;try{se.call(r,se);try{ce.call(r,ce)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function qn(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function At(r,e){if(r.length>e.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return At(Rr.call(r,0,e.maxStringLength),e)+n}var a=$n[e.quoteStyle||"single"];a.lastIndex=0;var i=L.call(L.call(r,a,"\\$1"),/[\x00-\x1f]/g,Wn);return St(i,"single",e)}function Wn(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+En.call(e.toString(16))}function le(r){return"Object("+r+")"}function Qe(r){return r+" { ? }"}function kr(r,e,t,n){var a=n?Sr(t,n):R.call(t,", ");return r+" ("+e+") {"+a+"}"}function Fn(r){for(var e=0;e<r.length;e++)if(Et(r[e],`
1
+ "use strict";var Kt=Object.defineProperty;var Vt=(r,e,t)=>e in r?Kt(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var P=(r,e,t)=>Vt(r,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Qt=require("stream"),Y=require("./deps/soon-id-t25L9qRGGZ-l3h6p65r6.js"),Jt=require("util");var j={};Object.defineProperty(j,"__esModule",{value:!0});j.TokenData=void 0;j.parse=Ar;j.compile=tn;var Xt=j.match=on;j.pathToRegexp=pt;const ut="/",Er=r=>r,Yt=new RegExp("^\\p{XID_Continue}$","u"),ue="https://git.new/pathToRegexpError",Zt={"!":"!","@":"@",";":";",",":",","*":"*","+":"+","?":"?","{":"{","}":"}"};function en(r){const e=[...r],t=[];let n=0;for(;n<e.length;){const a=e[n],i=Zt[a];if(i){t.push({type:i,index:n++,value:a});continue}if(a==="\\"){t.push({type:"ESCAPED",index:n++,value:e[n++]});continue}if(a===":"){let o="";for(;Yt.test(e[++n]);)o+=e[n];if(!o)throw new TypeError(`Missing parameter name at ${n}`);t.push({type:"NAME",index:n,value:o});continue}if(a==="("){const o=n++;let u=1,l="";if(e[n]==="?")throw new TypeError(`Pattern cannot start with "?" at ${n}`);for(;n<e.length;){if(e[n]==="\\"){l+=e[n++]+e[n++];continue}if(e[n]===")"){if(u--,u===0){n++;break}}else if(e[n]==="("&&(u++,e[n+1]!=="?"))throw new TypeError(`Capturing groups are not allowed at ${n}`);l+=e[n++]}if(u)throw new TypeError(`Unbalanced pattern at ${o}`);if(!l)throw new TypeError(`Missing pattern at ${o}`);t.push({type:"PATTERN",index:n,value:l});continue}t.push({type:"CHAR",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),new rn(t)}class rn{constructor(e){this.tokens=e,this.index=0}peek(){return this.tokens[this.index]}tryConsume(e){const t=this.peek();if(t.type===e)return this.index++,t.value}consume(e){const t=this.tryConsume(e);if(t!==void 0)return t;const{type:n,index:a}=this.peek();throw new TypeError(`Unexpected ${n} at ${a}, expected ${e}: ${ue}`)}text(){let e="",t;for(;t=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)e+=t;return e}modifier(){return this.tryConsume("?")||this.tryConsume("*")||this.tryConsume("+")}}class De{constructor(e,t){this.tokens=e,this.delimiter=t}}j.TokenData=De;function Ar(r,e={}){const{encodePath:t=Er,delimiter:n=t(ut)}=e,a=[],i=en(r);let o=0;do{const u=i.text();u&&a.push(t(u));const l=i.tryConsume("NAME"),c=i.tryConsume("PATTERN");if(l||c){a.push({name:l||String(o++),pattern:c});const f=i.peek();if(f.type==="*")throw new TypeError(`Unexpected * at ${f.index}, you probably want \`/*\` or \`{/:foo}*\`: ${ue}`);continue}if(i.tryConsume("*")){a.push({name:String(o++),pattern:`(?:(?!${Z(n)}).)*`,modifier:"*",separator:n});continue}if(i.tryConsume("{")){const f=i.text(),d=i.tryConsume("NAME"),y=i.tryConsume("PATTERN"),h=i.text(),g=i.tryConsume(";")&&i.text();i.consume("}");const b=i.modifier();a.push({name:d||(y?String(o++):""),prefix:t(f),suffix:t(h),pattern:y,modifier:b,separator:g});continue}i.consume("END");break}while(!0);return new De(a,n)}function tn(r,e={}){const t=r instanceof De?r:Ar(r,e);return an(t,e)}function nn(r,e){if(typeof r=="string")return()=>r;const t=e||Er,n=r.modifier==="+"||r.modifier==="*",a=r.modifier==="?"||r.modifier==="*",{prefix:i="",suffix:o="",separator:u=o+i}=r;if(e&&n){const c=(p,f)=>{if(typeof p!="string")throw new TypeError(`Expected "${r.name}/${f}" to be a string`);return t(p)},s=p=>{if(!Array.isArray(p))throw new TypeError(`Expected "${r.name}" to be an array`);return p.length===0?"":i+p.map(c).join(u)+o};return a?p=>{const f=p[r.name];return f==null?"":f.length?s(f):""}:p=>{const f=p[r.name];return s(f)}}const l=c=>{if(typeof c!="string")throw new TypeError(`Expected "${r.name}" to be a string`);return i+t(c)+o};return a?c=>{const s=c[r.name];return s==null?"":l(s)}:c=>{const s=c[r.name];return l(s)}}function an(r,e){const{encode:t=encodeURIComponent,loose:n=!0,validate:a=!0,strict:i=!1}=e,o=ct(e),u=$r(n,r.delimiter),l=st(r,u,[],o,i),c=r.tokens.map((s,p)=>{const f=nn(s,t);if(!a||typeof s=="string")return f;const d=new RegExp(`^${l[p]}$`,o);return y=>{const h=f(y);if(!d.test(h))throw new TypeError(`Invalid value for "${s.name}": ${JSON.stringify(h)}`);return h}});return function(p={}){let f="";for(const d of c)f+=d(p);return f}}function on(r,e={}){const{decode:t=decodeURIComponent,loose:n=!0,delimiter:a=ut}=e,i=pt(r,e),o=$r(n,a),u=i.keys.map(l=>{if(t&&(l.modifier==="+"||l.modifier==="*")){const{prefix:c="",suffix:s="",separator:p=s+c}=l,f=new RegExp(o(p),"g");return d=>d.split(f).map(t)}return t||Er});return function(c){const s=i.exec(c);if(!s)return!1;const{0:p,index:f}=s,d=Object.create(null);for(let y=1;y<s.length;y++){if(s[y]===void 0)continue;const h=i.keys[y-1],g=u[y-1];d[h.name]=g(s[y])}return{path:p,index:f,params:d}}}function Z(r){return r.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function ln(r,e){const t=Z(r);return e?`(?:${t})+(?!${t})`:t}function $r(r,e){if(!r)return Z;const t=new RegExp(`(?:(?!${Z(e)}).)+|(.)`,"g");return n=>n.replace(t,ln)}function ct(r){return r.sensitive?"":"i"}function Dr(r,e,t,n){const a=r instanceof De?r:Ar(r,n),{trailing:i=!0,loose:o=!0,start:u=!0,end:l=!0,strict:c=!1}=n,s=$r(o,a.delimiter),p=st(a,s,e,t,c);let f=u?"^":"";return f+=p.join(""),i&&(f+=`(?:${s(a.delimiter)}$)?`),f+=l?"$":`(?=${Z(a.delimiter)}|$)`,f}function st(r,e,t,n,a){const i=`(?:(?!${Z(r.delimiter)}).)+?`;let o="",u=!0;return r.tokens.map(l=>{if(typeof l=="string")return o=l,e(l);const{prefix:c="",suffix:s="",separator:p=s+c,modifier:f=""}=l,d=e(c),y=e(s);if(l.name){const h=l.pattern?`(?:${l.pattern})`:i,g=fn(h,l.name,n);if(u||(u=He(g,c||o)),!u)throw new TypeError(`Ambiguous pattern for "${l.name}": ${ue}`);if(u=!a||He(g,s),o="",t.push(l),f==="+"||f==="*"){const b=f==="*"?"?":"",A=e(p);if(!A)throw new TypeError(`Missing separator for "${l.name}": ${ue}`);if(u||(u=!a||He(g,p)),!u)throw new TypeError(`Ambiguous pattern for "${l.name}" separator: ${ue}`);return u=!a,`(?:${d}(${h}(?:${A}${h})*)${y})${b}`}return`(?:${d}(${h})${y})${f}`}return`(?:${d}${y})${f}`})}function fn(r,e,t){try{return new RegExp(`^${r}$`,t)}catch(n){throw new TypeError(`Invalid pattern for "${e}": ${n.message}`)}}function He(r,e){return e?!r.test(e):!1}function pt(r,e={}){const t=[],n=ct(e);if(Array.isArray(r)){const i=r.map(o=>Dr(o,t,n,e));return Object.assign(new RegExp(i.join("|")),{keys:t})}const a=Dr(r,t,n,e);return Object.assign(new RegExp(a),{keys:t})}var Ne={};Object.defineProperty(Ne,"__esModule",{value:!0});Ne.Observable=void 0;const yt=r=>!!Symbol[r],Pr=r=>yt(r)?Symbol[r]:"@@"+r,un=Pr("iterator"),dr=Pr("observable"),dt=Pr("species");function Re(r,e){let t=r[e];if(t!=null){if(typeof t!="function")throw new TypeError(t+" is not a function");return t}}function oe(r){let e=r.constructor;return e!==void 0&&(e=e[dt],e===null&&(e=void 0)),e!==void 0?e:Le}function cn(r){return r instanceof Le}function ee(r){ee.log?ee.log(r):setTimeout(()=>{throw r})}function Ae(r){Promise.resolve().then(()=>{try{r()}catch(e){ee(e)}})}function ht(r){let e=r._cleanup;if(e!==void 0&&(r._cleanup=void 0,!!e))try{if(typeof e=="function")e();else{let t=Re(e,"unsubscribe");t&&t.call(e)}}catch(t){ee(t)}}function hr(r){r._observer=void 0,r._queue=void 0,r._state="closed"}function sn(r){let e=r._queue;if(e){r._queue=void 0,r._state="ready";for(let t=0;t<e.length&&(mt(r,e[t].type,e[t].value),r._state!=="closed");++t);}}function mt(r,e,t){r._state="running";let n=r._observer;try{let a=Re(n,e);switch(e){case"next":a&&a.call(n,t);break;case"error":if(hr(r),a)a.call(n,t);else throw t;break;case"complete":hr(r),a&&a.call(n);break}}catch(a){ee(a)}r._state==="closed"?ht(r):r._state==="running"&&(r._state="ready")}function ze(r,e,t){if(r._state!=="closed"){if(r._state==="buffering"){r._queue.push({type:e,value:t});return}if(r._state!=="ready"){r._state="buffering",r._queue=[{type:e,value:t}],Ae(()=>sn(r));return}mt(r,e,t)}}class pn{constructor(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";let n=this,a={get closed(){return n._state==="closed"},next(i){ze(n,"next",i)},error(i){ze(n,"error",i)},complete(){ze(n,"complete")}};try{this._cleanup=t.call(void 0,a)}catch(i){a.error(i)}this._state==="initializing"&&(this._state="ready")}get closed(){return this._state==="closed"}unsubscribe(){this._state!=="closed"&&(hr(this),ht(this))}}let Le=class $e{constructor(e){if(!(this instanceof $e))throw new TypeError("Observable cannot be called as a function");if(typeof e!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=e}subscribe(e){return(typeof e!="object"||e===null)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new pn(e,this._subscriber)}forEach(e){return new Promise((t,n)=>{if(typeof e!="function"){n(new TypeError(e+" is not a function"));return}function a(){i.unsubscribe(),t()}let i=this.subscribe({next(o){try{e(o,a)}catch(u){n(u),i.unsubscribe()}},error:n,complete:t})})}map(e){if(typeof e!="function")throw new TypeError(e+" is not a function");let t=oe(this);return new t(n=>this.subscribe({next(a){try{a=e(a)}catch(i){return n.error(i)}n.next(a)},error(a){n.error(a)},complete(){n.complete()}}))}filter(e){if(typeof e!="function")throw new TypeError(e+" is not a function");let t=oe(this);return new t(n=>this.subscribe({next(a){try{if(!e(a))return}catch(i){return n.error(i)}n.next(a)},error(a){n.error(a)},complete(){n.complete()}}))}reduce(e){if(typeof e!="function")throw new TypeError(e+" is not a function");let t=oe(this),n=arguments.length>1,a=!1,o=arguments[1];return new t(u=>this.subscribe({next(l){let c=!a;if(a=!0,!c||n)try{o=e(o,l)}catch(s){return u.error(s)}else o=l},error(l){u.error(l)},complete(){if(!a&&!n)return u.error(new TypeError("Cannot reduce an empty sequence"));u.next(o),u.complete()}}))}async all(){let e=[];return await this.forEach(t=>e.push(t)),e}concat(...e){let t=oe(this);return new t(n=>{let a,i=0;function o(u){a=u.subscribe({next(l){n.next(l)},error(l){n.error(l)},complete(){i===e.length?(a=void 0,n.complete()):o(t.from(e[i++]))}})}return o(this),()=>{a&&(a.unsubscribe(),a=void 0)}})}flatMap(e){if(typeof e!="function")throw new TypeError(e+" is not a function");let t=oe(this);return new t(n=>{let a=[],i=this.subscribe({next(u){if(e)try{u=e(u)}catch(c){return n.error(c)}let l=t.from(u).subscribe({next(c){n.next(c)},error(c){n.error(c)},complete(){let c=a.indexOf(l);c>=0&&a.splice(c,1),o()}});a.push(l)},error(u){n.error(u)},complete(){o()}});function o(){i.closed&&a.length===0&&n.complete()}return()=>{a.forEach(u=>u.unsubscribe()),i.unsubscribe()}})}[dr](){return this}static from(e){let t=typeof this=="function"?this:$e;if(e==null)throw new TypeError(e+" is not an object");let n=Re(e,dr);if(n){let a=n.call(e);if(Object(a)!==a)throw new TypeError(a+" is not an object");return cn(a)&&a.constructor===t?a:new t(i=>a.subscribe(i))}if(yt("iterator")&&(n=Re(e,un),n))return new t(a=>{Ae(()=>{if(!a.closed){for(let i of n.call(e))if(a.next(i),a.closed)return;a.complete()}})});if(Array.isArray(e))return new t(a=>{Ae(()=>{if(!a.closed){for(let i=0;i<e.length;++i)if(a.next(e[i]),a.closed)return;a.complete()}})});throw new TypeError(e+" is not observable")}static of(...e){let t=typeof this=="function"?this:$e;return new t(n=>{Ae(()=>{if(!n.closed){for(let a=0;a<e.length;++a)if(n.next(e[a]),n.closed)return;n.complete()}})})}static get[dt](){return this}};Ne.Observable=Le;Object.defineProperty(Le,Symbol("extensions"),{value:{symbol:dr,hostReportError:ee},configurable:!0});var yn=Ne.Observable;const xr=Y.getDefaultExportFromCjs(yn);var ne=TypeError,dn=Jt.inspect,Or=typeof Map=="function"&&Map.prototype,ke=Object.getOwnPropertyDescriptor&&Or?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,_e=Or&&ke&&typeof ke.get=="function"?ke.get:null,Nr=Or&&Map.prototype.forEach,Ir=typeof Set=="function"&&Set.prototype,Ke=Object.getOwnPropertyDescriptor&&Ir?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ce=Ir&&Ke&&typeof Ke.get=="function"?Ke.get:null,Lr=Ir&&Set.prototype.forEach,hn=typeof WeakMap=="function"&&WeakMap.prototype,ce=hn?WeakMap.prototype.has:null,mn=typeof WeakSet=="function"&&WeakSet.prototype,se=mn?WeakSet.prototype.has:null,vn=typeof WeakRef=="function"&&WeakRef.prototype,Ur=vn?WeakRef.prototype.deref:null,gn=Boolean.prototype.valueOf,wn=Object.prototype.toString,Sn=Function.prototype.toString,bn=String.prototype.match,Rr=String.prototype.slice,L=String.prototype.replace,En=String.prototype.toUpperCase,Br=String.prototype.toLowerCase,vt=RegExp.prototype.test,qr=Array.prototype.concat,R=Array.prototype.join,An=Array.prototype.slice,Wr=Math.floor,mr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ve=Object.getOwnPropertySymbols,vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,re=typeof Symbol=="function"&&typeof Symbol.iterator=="object",pe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===re||!0)?Symbol.toStringTag:null,gt=Object.prototype.propertyIsEnumerable,Fr=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function Gr(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||vt.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-Wr(-r):Wr(r);if(n!==r){var a=String(n),i=Rr.call(e,a.length+1);return L.call(a,t,"$&_")+"."+L.call(L.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return L.call(e,t,"$&_")}var gr=dn,jr=gr.custom,Hr=bt(jr)?jr:null,wt={__proto__:null,double:'"',single:"'"},$n={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Ue=function r(e,t,n,a){var i=t||{};if(T(i,"quoteStyle")&&!T(wt,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(T(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=T(i,"customInspect")?i.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(T(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(T(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return At(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return u?Gr(e,l):l}if(typeof e=="bigint"){var c=String(e)+"n";return u?Gr(e,c):c}var s=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=s&&s>0&&typeof e=="object")return wr(e)?"[Array]":"[Object]";var p=Gn(i,n);if(typeof a>"u")a=[];else if(Et(a,e)>=0)return"[Circular]";function f(x,N,C){if(N&&(a=An.call(a),a.push(N)),C){var ie={depth:i.depth};return T(i,"quoteStyle")&&(ie.quoteStyle=i.quoteStyle),r(x,ie,n+1,a)}return r(x,i,n+1,a)}if(typeof e=="function"&&!zr(e)){var d=Mn(e),y=be(e,f);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(y.length>0?" { "+R.call(y,", ")+" }":"")}if(bt(e)){var h=re?L.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):vr.call(e);return typeof e=="object"&&!re?le(h):h}if(qn(e)){for(var g="<"+Br.call(String(e.nodeName)),b=e.attributes||[],A=0;A<b.length;A++)g+=" "+b[A].name+"="+St(Pn(b[A].value),"double",i);return g+=">",e.childNodes&&e.childNodes.length&&(g+="..."),g+="</"+Br.call(String(e.nodeName))+">",g}if(wr(e)){if(e.length===0)return"[]";var m=be(e,f);return p&&!Fn(m)?"["+Sr(m,p)+"]":"[ "+R.call(m,", ")+" ]"}if(On(e)){var M=be(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!gt.call(e,"cause")?"{ ["+String(e)+"] "+R.call(qr.call("[cause]: "+f(e.cause),M),", ")+" }":M.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+R.call(M,", ")+" }"}if(typeof e=="object"&&o){if(Hr&&typeof e[Hr]=="function"&&gr)return gr(e,{depth:s-n});if(o!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Dn(e)){var B=[];return Nr&&Nr.call(e,function(x,N){B.push(f(N,e,!0)+" => "+f(x,e))}),kr("Map",_e.call(e),B,p)}if(Un(e)){var ae=[];return Lr&&Lr.call(e,function(x){ae.push(f(x,e))}),kr("Set",Ce.call(e),ae,p)}if(Nn(e))return Qe("WeakMap");if(Bn(e))return Qe("WeakSet");if(Ln(e))return Qe("WeakRef");if(Rn(e))return le(f(Number(e)));if(Cn(e))return le(f(mr.call(e)));if(_n(e))return le(gn.call(e));if(In(e))return le(f(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof Y.commonjsGlobal<"u"&&e===Y.commonjsGlobal)return"{ [object globalThis] }";if(!xn(e)&&!zr(e)){var z=be(e,f),we=Fr?Fr(e)===Object.prototype:e instanceof Object||e.constructor===Object,q=e instanceof Object?"":"null prototype",D=!we&&pe&&Object(e)===e&&pe in e?Rr.call(U(e),8,-1):q?"Object":"",Se=we||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",k=Se+(D||q?"["+R.call(qr.call([],D||[],q||[]),": ")+"] ":"");return z.length===0?k+"{}":p?k+"{"+Sr(z,p)+"}":k+"{ "+R.call(z,", ")+" }"}return String(e)};function St(r,e,t){var n=t.quoteStyle||e,a=wt[n];return a+r+a}function Pn(r){return L.call(String(r),/"/g,"&quot;")}function H(r){return!pe||!(typeof r=="object"&&(pe in r||typeof r[pe]<"u"))}function wr(r){return U(r)==="[object Array]"&&H(r)}function xn(r){return U(r)==="[object Date]"&&H(r)}function zr(r){return U(r)==="[object RegExp]"&&H(r)}function On(r){return U(r)==="[object Error]"&&H(r)}function In(r){return U(r)==="[object String]"&&H(r)}function Rn(r){return U(r)==="[object Number]"&&H(r)}function _n(r){return U(r)==="[object Boolean]"&&H(r)}function bt(r){if(re)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!vr)return!1;try{return vr.call(r),!0}catch{}return!1}function Cn(r){if(!r||typeof r!="object"||!mr)return!1;try{return mr.call(r),!0}catch{}return!1}var Tn=Object.prototype.hasOwnProperty||function(r){return r in this};function T(r,e){return Tn.call(r,e)}function U(r){return wn.call(r)}function Mn(r){if(r.name)return r.name;var e=bn.call(Sn.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function Et(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}function Dn(r){if(!_e||!r||typeof r!="object")return!1;try{_e.call(r);try{Ce.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function Nn(r){if(!ce||!r||typeof r!="object")return!1;try{ce.call(r,ce);try{se.call(r,se)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function Ln(r){if(!Ur||!r||typeof r!="object")return!1;try{return Ur.call(r),!0}catch{}return!1}function Un(r){if(!Ce||!r||typeof r!="object")return!1;try{Ce.call(r);try{_e.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function Bn(r){if(!se||!r||typeof r!="object")return!1;try{se.call(r,se);try{ce.call(r,ce)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function qn(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function At(r,e){if(r.length>e.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return At(Rr.call(r,0,e.maxStringLength),e)+n}var a=$n[e.quoteStyle||"single"];a.lastIndex=0;var i=L.call(L.call(r,a,"\\$1"),/[\x00-\x1f]/g,Wn);return St(i,"single",e)}function Wn(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+En.call(e.toString(16))}function le(r){return"Object("+r+")"}function Qe(r){return r+" { ? }"}function kr(r,e,t,n){var a=n?Sr(t,n):R.call(t,", ");return r+" ("+e+") {"+a+"}"}function Fn(r){for(var e=0;e<r.length;e++)if(Et(r[e],`
2
2
  `)>=0)return!1;return!0}function Gn(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=R.call(Array(r.indent+1)," ");else return null;return{base:t,prev:R.call(Array(e+1),t)}}function Sr(r,e){if(r.length===0)return"";var t=`
3
3
  `+e.prev+e.base;return t+R.call(r,","+t)+`
4
- `+e.prev}function be(r,e){var t=wr(r),n=[];if(t){n.length=r.length;for(var a=0;a<r.length;a++)n[a]=T(r,a)?e(r[a],r):""}var i=typeof Ve=="function"?Ve(r):[],o;if(re){o={};for(var u=0;u<i.length;u++)o["$"+i[u]]=i[u]}for(var l in r)T(r,l)&&(t&&String(Number(l))===l&&l<r.length||re&&o["$"+l]instanceof Symbol||(vt.call(/[^\w$]/,l)?n.push(e(l,r)+": "+e(r[l],r)):n.push(l+": "+e(r[l],r))));if(typeof Ve=="function")for(var c=0;c<i.length;c++)gt.call(r,i[c])&&n.push("["+e(i[c])+"]: "+e(r[i[c]],r));return n}var jn=Be,Hn=ne,Ue=function(r,e,t){for(var n=r,a;(a=n.next)!=null;n=a)if(a.key===e)return n.next=a.next,t||(a.next=r.next,r.next=a),a},zn=function(r,e){if(r){var t=Ue(r,e);return t&&t.value}},kn=function(r,e,t){var n=Ue(r,e);n?n.value=t:r.next={key:e,next:r.next,value:t}},Kn=function(r,e){return r?!!Ue(r,e):!1},Vn=function(r,e){if(r)return Ue(r,e,!0)},Qn=function(){var e,t={assert:function(n){if(!t.has(n))throw new Hn("Side channel does not contain "+jn(n))},delete:function(n){var a=e&&e.next,i=Vn(e,n);return i&&a&&a===i&&(e=void 0),!!i},get:function(n){return zn(e,n)},has:function(n){return Kn(e,n)},set:function(n,a){e||(e={next:void 0}),kn(e,n,a)}};return t},$t=Object,Jn=Error,Xn=EvalError,Yn=RangeError,Zn=ReferenceError,ea=SyntaxError,ra=URIError,ta=Math.abs,na=Math.floor,aa=Math.max,ia=Math.min,oa=Math.pow,la=Math.round,fa=Number.isNaN||function(e){return e!==e},ua=fa,ca=function(e){return ua(e)||e===0?e:e<0?-1:1},sa=Object.getOwnPropertyDescriptor,Pe=sa;if(Pe)try{Pe([],"length")}catch{Pe=null}var Pt=Pe,xe=Object.defineProperty||!1;if(xe)try{xe({},"a",{value:1})}catch{xe=!1}var pa=xe,Je,Kr;function ya(){return Kr||(Kr=1,Je=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;e[t]=a;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,t);if(u.value!==a||u.enumerable!==!0)return!1}return!0}),Je}var Xe,Vr;function da(){if(Vr)return Xe;Vr=1;var r=typeof Symbol<"u"&&Symbol,e=ya();return Xe=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Xe}var Ye,Qr;function xt(){return Qr||(Qr=1,Ye=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Ye}var Ze,Jr;function Ot(){if(Jr)return Ze;Jr=1;var r=$t;return Ze=r.getPrototypeOf||null,Ze}var er,Xr;function ha(){if(Xr)return er;Xr=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",a=function(l,c){for(var s=[],p=0;p<l.length;p+=1)s[p]=l[p];for(var f=0;f<c.length;f+=1)s[f+l.length]=c[f];return s},i=function(l,c){for(var s=[],p=c,f=0;p<l.length;p+=1,f+=1)s[f]=l[p];return s},o=function(u,l){for(var c="",s=0;s<u.length;s+=1)c+=u[s],s+1<u.length&&(c+=l);return c};return er=function(l){var c=this;if(typeof c!="function"||e.apply(c)!==n)throw new TypeError(r+c);for(var s=i(arguments,1),p,f=function(){if(this instanceof p){var b=c.apply(this,a(s,arguments));return Object(b)===b?b:this}return c.apply(l,a(s,arguments))},d=t(0,c.length-s.length),y=[],h=0;h<d;h++)y[h]="$"+h;if(p=Function("binder","return function ("+o(y,",")+"){ return binder.apply(this,arguments); }")(f),c.prototype){var g=function(){};g.prototype=c.prototype,p.prototype=new g,g.prototype=null}return p},er}var rr,Yr;function qe(){if(Yr)return rr;Yr=1;var r=ha();return rr=Function.prototype.bind||r,rr}var tr,Zr;function _r(){return Zr||(Zr=1,tr=Function.prototype.call),tr}var nr,et;function It(){return et||(et=1,nr=Function.prototype.apply),nr}var ma=typeof Reflect<"u"&&Reflect&&Reflect.apply,va=qe(),ga=It(),wa=_r(),Sa=ma,ba=Sa||va.call(wa,ga),Ea=qe(),Aa=ne,$a=_r(),Pa=ba,Rt=function(e){if(e.length<1||typeof e[0]!="function")throw new Aa("a function is required");return Pa(Ea,$a,e)},ar,rt;function xa(){if(rt)return ar;rt=1;var r=Rt,e=Pt,t;try{t=[].__proto__===Array.prototype}catch(o){if(!o||typeof o!="object"||!("code"in o)||o.code!=="ERR_PROTO_ACCESS")throw o}var n=!!t&&e&&e(Object.prototype,"__proto__"),a=Object,i=a.getPrototypeOf;return ar=n&&typeof n.get=="function"?r([n.get]):typeof i=="function"?function(u){return i(u==null?u:a(u))}:!1,ar}var ir,tt;function Oa(){if(tt)return ir;tt=1;var r=xt(),e=Ot(),t=xa();return ir=r?function(a){return r(a)}:e?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return e(a)}:t?function(a){return t(a)}:null,ir}var or,nt;function Ia(){if(nt)return or;nt=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=qe();return or=t.call(r,e),or}var v,Ra=$t,_a=Jn,Ca=Xn,Ta=Yn,Ma=Zn,te=ea,X=ne,Da=ra,Na=ta,La=na,Ba=aa,Ua=ia,qa=oa,Wa=la,Fa=ca,_t=Function,lr=function(r){try{return _t('"use strict"; return ('+r+").constructor;")()}catch{}},he=Pt,Ga=pa,fr=function(){throw new X},ja=he?function(){try{return arguments.callee,fr}catch{try{return he(arguments,"callee").get}catch{return fr}}}():fr,K=da()(),$=Oa(),Ha=Ot(),za=xt(),Ct=It(),me=_r(),Q={},ka=typeof Uint8Array>"u"||!$?v:$(Uint8Array),G={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?v:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?v:ArrayBuffer,"%ArrayIteratorPrototype%":K&&$?$([][Symbol.iterator]()):v,"%AsyncFromSyncIteratorPrototype%":v,"%AsyncFunction%":Q,"%AsyncGenerator%":Q,"%AsyncGeneratorFunction%":Q,"%AsyncIteratorPrototype%":Q,"%Atomics%":typeof Atomics>"u"?v:Atomics,"%BigInt%":typeof BigInt>"u"?v:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?v:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?v:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?v:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":_a,"%eval%":eval,"%EvalError%":Ca,"%Float16Array%":typeof Float16Array>"u"?v:Float16Array,"%Float32Array%":typeof Float32Array>"u"?v:Float32Array,"%Float64Array%":typeof Float64Array>"u"?v:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?v:FinalizationRegistry,"%Function%":_t,"%GeneratorFunction%":Q,"%Int8Array%":typeof Int8Array>"u"?v:Int8Array,"%Int16Array%":typeof Int16Array>"u"?v:Int16Array,"%Int32Array%":typeof Int32Array>"u"?v:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":K&&$?$($([][Symbol.iterator]())):v,"%JSON%":typeof JSON=="object"?JSON:v,"%Map%":typeof Map>"u"?v:Map,"%MapIteratorPrototype%":typeof Map>"u"||!K||!$?v:$(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Ra,"%Object.getOwnPropertyDescriptor%":he,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?v:Promise,"%Proxy%":typeof Proxy>"u"?v:Proxy,"%RangeError%":Ta,"%ReferenceError%":Ma,"%Reflect%":typeof Reflect>"u"?v:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?v:Set,"%SetIteratorPrototype%":typeof Set>"u"||!K||!$?v:$(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?v:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":K&&$?$(""[Symbol.iterator]()):v,"%Symbol%":K?Symbol:v,"%SyntaxError%":te,"%ThrowTypeError%":ja,"%TypedArray%":ka,"%TypeError%":X,"%Uint8Array%":typeof Uint8Array>"u"?v:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?v:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?v:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?v:Uint32Array,"%URIError%":Da,"%WeakMap%":typeof WeakMap>"u"?v:WeakMap,"%WeakRef%":typeof WeakRef>"u"?v:WeakRef,"%WeakSet%":typeof WeakSet>"u"?v:WeakSet,"%Function.prototype.call%":me,"%Function.prototype.apply%":Ct,"%Object.defineProperty%":Ga,"%Object.getPrototypeOf%":Ha,"%Math.abs%":Na,"%Math.floor%":La,"%Math.max%":Ba,"%Math.min%":Ua,"%Math.pow%":qa,"%Math.round%":Wa,"%Math.sign%":Fa,"%Reflect.getPrototypeOf%":za};if($)try{null.error}catch(r){var Ka=$($(r));G["%Error.prototype%"]=Ka}var Va=function r(e){var t;if(e==="%AsyncFunction%")t=lr("async function () {}");else if(e==="%GeneratorFunction%")t=lr("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=lr("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=r("%AsyncGenerator%");a&&$&&(t=$(a.prototype))}return G[e]=t,t},at={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ve=qe(),Te=Ia(),Qa=ve.call(me,Array.prototype.concat),Ja=ve.call(Ct,Array.prototype.splice),it=ve.call(me,String.prototype.replace),Me=ve.call(me,String.prototype.slice),Xa=ve.call(me,RegExp.prototype.exec),Ya=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Za=/\\(\\)?/g,ei=function(e){var t=Me(e,0,1),n=Me(e,-1);if(t==="%"&&n!=="%")throw new te("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new te("invalid intrinsic syntax, expected opening `%`");var a=[];return it(e,Ya,function(i,o,u,l){a[a.length]=u?it(l,Za,"$1"):o||i}),a},ri=function(e,t){var n=e,a;if(Te(at,n)&&(a=at[n],n="%"+a[0]+"%"),Te(G,n)){var i=G[n];if(i===Q&&(i=Va(n)),typeof i>"u"&&!t)throw new X("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:i}}throw new te("intrinsic "+e+" does not exist!")},Cr=function(e,t){if(typeof e!="string"||e.length===0)throw new X("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new X('"allowMissing" argument must be a boolean');if(Xa(/^%?[^%]*%?$/,e)===null)throw new te("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ei(e),a=n.length>0?n[0]:"",i=ri("%"+a+"%",t),o=i.name,u=i.value,l=!1,c=i.alias;c&&(a=c[0],Ja(n,Qa([0,1],c)));for(var s=1,p=!0;s<n.length;s+=1){var f=n[s],d=Me(f,0,1),y=Me(f,-1);if((d==='"'||d==="'"||d==="`"||y==='"'||y==="'"||y==="`")&&d!==y)throw new te("property names with quotes must have matching quotes");if((f==="constructor"||!p)&&(l=!0),a+="."+f,o="%"+a+"%",Te(G,o))u=G[o];else if(u!=null){if(!(f in u)){if(!t)throw new X("base intrinsic for "+e+" exists, but the property is not available.");return}if(he&&s+1>=n.length){var h=he(u,f);p=!!h,p&&"get"in h&&!("originalValue"in h.get)?u=h.get:u=u[f]}else p=Te(u,f),u=u[f];p&&!l&&(G[o]=u)}}return u},Tt=Cr,Mt=Rt,ti=Mt([Tt("%String.prototype.indexOf%")]),Dt=function(e,t){var n=Tt(e,!!t);return typeof n=="function"&&ti(e,".prototype.")>-1?Mt([n]):n},ni=Cr,ge=Dt,ai=Be,ii=ne,ot=ni("%Map%",!0),oi=ge("Map.prototype.get",!0),li=ge("Map.prototype.set",!0),fi=ge("Map.prototype.has",!0),ui=ge("Map.prototype.delete",!0),ci=ge("Map.prototype.size",!0),Nt=!!ot&&function(){var e,t={assert:function(n){if(!t.has(n))throw new ii("Side channel does not contain "+ai(n))},delete:function(n){if(e){var a=ui(e,n);return ci(e)===0&&(e=void 0),a}return!1},get:function(n){if(e)return oi(e,n)},has:function(n){return e?fi(e,n):!1},set:function(n,a){e||(e=new ot),li(e,n,a)}};return t},si=Cr,We=Dt,pi=Be,Ee=Nt,yi=ne,V=si("%WeakMap%",!0),di=We("WeakMap.prototype.get",!0),hi=We("WeakMap.prototype.set",!0),mi=We("WeakMap.prototype.has",!0),vi=We("WeakMap.prototype.delete",!0),gi=V?function(){var e,t,n={assert:function(a){if(!n.has(a))throw new yi("Side channel does not contain "+pi(a))},delete:function(a){if(V&&a&&(typeof a=="object"||typeof a=="function")){if(e)return vi(e,a)}else if(Ee&&t)return t.delete(a);return!1},get:function(a){return V&&a&&(typeof a=="object"||typeof a=="function")&&e?di(e,a):t&&t.get(a)},has:function(a){return V&&a&&(typeof a=="object"||typeof a=="function")&&e?mi(e,a):!!t&&t.has(a)},set:function(a,i){V&&a&&(typeof a=="object"||typeof a=="function")?(e||(e=new V),hi(e,a,i)):Ee&&(t||(t=Ee()),t.set(a,i))}};return n}:Ee,wi=ne,Si=Be,bi=Qn,Ei=Nt,Ai=gi,$i=Ai||Ei||bi,Lt=function(){var e,t={assert:function(n){if(!t.has(n))throw new wi("Side channel does not contain "+Si(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,a){e||(e=$i()),e.set(n,a)}};return t},Pi=String.prototype.replace,xi=/%20/g,ur={RFC1738:"RFC1738",RFC3986:"RFC3986"},Tr={default:ur.RFC3986,formatters:{RFC1738:function(r){return Pi.call(r,xi,"+")},RFC3986:function(r){return String(r)}},RFC1738:ur.RFC1738,RFC3986:ur.RFC3986},Oi=Tr,Ii=Lt,cr=Object.prototype.hasOwnProperty,W=Array.isArray,Fe=Ii(),J=function(e,t){return Fe.set(e,t),e},F=function(e){return Fe.has(e)},fe=function(e){return Fe.get(e)},br=function(e,t){Fe.set(e,t)},O=function(){for(var r=[],e=0;e<256;++e)r[r.length]="%"+((e<16?"0":"")+e.toString(16)).toUpperCase();return r}(),Ri=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(W(n)){for(var a=[],i=0;i<n.length;++i)typeof n[i]<"u"&&(a[a.length]=n[i]);t.obj[t.prop]=a}}},ye=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},a=0;a<e.length;++a)typeof e[a]<"u"&&(n[a]=e[a]);return n},_i=function r(e,t,n){if(!t)return e;if(typeof t!="object"&&typeof t!="function"){if(W(e)){var a=e.length;if(n&&typeof n.arrayLimit=="number"&&a>n.arrayLimit)return J(ye(e.concat(t),n),a);e[a]=t}else if(e&&typeof e=="object")if(F(e)){var i=fe(e)+1;e[i]=t,br(e,i)}else{if(n&&n.strictMerge)return[e,t];(n&&(n.plainObjects||n.allowPrototypes)||!cr.call(Object.prototype,t))&&(e[t]=!0)}else return[e,t];return e}if(!e||typeof e!="object"){if(F(t)){for(var o=Object.keys(t),u=n&&n.plainObjects?{__proto__:null,0:e}:{0:e},l=0;l<o.length;l++){var c=parseInt(o[l],10);u[c+1]=t[o[l]]}return J(u,fe(t)+1)}var s=[e].concat(t);return n&&typeof n.arrayLimit=="number"&&s.length>n.arrayLimit?J(ye(s,n),s.length-1):s}var p=e;return W(e)&&!W(t)&&(p=ye(e,n)),W(e)&&W(t)?(t.forEach(function(f,d){if(cr.call(e,d)){var y=e[d];y&&typeof y=="object"&&f&&typeof f=="object"?e[d]=r(y,f,n):e[e.length]=f}else e[d]=f}),e):Object.keys(t).reduce(function(f,d){var y=t[d];if(cr.call(f,d)?f[d]=r(f[d],y,n):f[d]=y,F(t)&&!F(f)&&J(f,fe(t)),F(f)){var h=parseInt(d,10);String(h)===d&&h>=0&&h>fe(f)&&br(f,h)}return f},p)},Ci=function(e,t){return Object.keys(t).reduce(function(n,a){return n[a]=t[a],n},e)},Ti=function(r,e,t){var n=r.replace(/\+/g," ");if(t==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},sr=1024,Mi=function(e,t,n,a,i){if(e.length===0)return e;var o=e;if(typeof e=="symbol"?o=Symbol.prototype.toString.call(e):typeof e!="string"&&(o=String(e)),n==="iso-8859-1")return escape(o).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var u="",l=0;l<o.length;l+=sr){for(var c=o.length>=sr?o.slice(l,l+sr):o,s=[],p=0;p<c.length;++p){var f=c.charCodeAt(p);if(f===45||f===46||f===95||f===126||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||i===Oi.RFC1738&&(f===40||f===41)){s[s.length]=c.charAt(p);continue}if(f<128){s[s.length]=O[f];continue}if(f<2048){s[s.length]=O[192|f>>6]+O[128|f&63];continue}if(f<55296||f>=57344){s[s.length]=O[224|f>>12]+O[128|f>>6&63]+O[128|f&63];continue}p+=1,f=65536+((f&1023)<<10|c.charCodeAt(p)&1023),s[s.length]=O[240|f>>18]+O[128|f>>12&63]+O[128|f>>6&63]+O[128|f&63]}u+=s.join("")}return u},Di=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],a=0;a<t.length;++a)for(var i=t[a],o=i.obj[i.prop],u=Object.keys(o),l=0;l<u.length;++l){var c=u[l],s=o[c];typeof s=="object"&&s!==null&&n.indexOf(s)===-1&&(t[t.length]={obj:o,prop:c},n[n.length]=s)}return Ri(t),e},Ni=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Li=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Bi=function(e,t,n,a){if(F(e)){var i=fe(e)+1;return e[i]=t,br(e,i),e}var o=[].concat(e,t);return o.length>n?J(ye(o,{plainObjects:a}),o.length-1):o},Ui=function(e,t){if(W(e)){for(var n=[],a=0;a<e.length;a+=1)n[n.length]=t(e[a]);return n}return t(e)},Bt={arrayToObject:ye,assign:Ci,combine:Bi,compact:Di,decode:Ti,encode:Mi,isBuffer:Li,isOverflow:F,isRegExp:Ni,markOverflow:J,maybeMap:Ui,merge:_i},Ut=Lt,Oe=Bt,de=Tr,qi=Object.prototype.hasOwnProperty,qt={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},I=Array.isArray,Wi=Array.prototype.push,Wt=function(r,e){Wi.apply(r,I(e)?e:[e])},Fi=Date.prototype.toISOString,lt=de.default,E={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Oe.encode,encodeValuesOnly:!1,filter:void 0,format:lt,formatter:de.formatters[lt],indices:!1,serializeDate:function(e){return Fi.call(e)},skipNulls:!1,strictNullHandling:!1},Gi=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},pr={},ji=function r(e,t,n,a,i,o,u,l,c,s,p,f,d,y,h,g,b,A){for(var m=e,M=A,U=0,ae=!1;(M=M.get(pr))!==void 0&&!ae;){var z=M.get(e);if(U+=1,typeof z<"u"){if(z===U)throw new RangeError("Cyclic object value");ae=!0}typeof M.get(pr)>"u"&&(U=0)}if(typeof s=="function"?m=s(t,m):m instanceof Date?m=d(m):n==="comma"&&I(m)&&(m=Oe.maybeMap(m,function(je){return je instanceof Date?d(je):je})),m===null){if(o)return c&&!g?c(t,E.encoder,b,"key",y):t;m=""}if(Gi(m)||Oe.isBuffer(m)){if(c){var we=g?t:c(t,E.encoder,b,"key",y);return[h(we)+"="+h(c(m,E.encoder,b,"value",y))]}return[h(t)+"="+h(String(m))]}var q=[];if(typeof m>"u")return q;var D;if(n==="comma"&&I(m))g&&c&&(m=Oe.maybeMap(m,c)),D=[{value:m.length>0?m.join(",")||null:void 0}];else if(I(s))D=s;else{var Se=Object.keys(m);D=p?Se.sort(p):Se}var k=l?String(t).replace(/\./g,"%2E"):String(t),x=a&&I(m)&&m.length===1?k+"[]":k;if(i&&I(m)&&m.length===0)return x+"[]";for(var N=0;N<D.length;++N){var C=D[N],ie=typeof C=="object"&&C&&typeof C.value<"u"?C.value:m[C];if(!(u&&ie===null)){var Ge=f&&l?String(C).replace(/\./g,"%2E"):String(C),kt=I(m)?typeof n=="function"?n(x,Ge):x:x+(f?"."+Ge:"["+Ge+"]");A.set(e,U);var Mr=Ut();Mr.set(pr,A),Wt(q,r(ie,kt,n,a,i,o,u,l,n==="comma"&&g&&I(m)?null:c,s,p,f,d,y,h,g,b,Mr))}}return q},Hi=function(e){if(!e)return E;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var t=e.charset||E.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=de.default;if(typeof e.format<"u"){if(!qi.call(de.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var a=de.formatters[n],i=E.filter;(typeof e.filter=="function"||I(e.filter))&&(i=e.filter);var o;if(e.arrayFormat in qt?o=e.arrayFormat:"indices"in e?o=e.indices?"indices":"repeat":o=E.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:E.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:E.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:E.allowEmptyArrays,arrayFormat:o,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:E.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?E.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:E.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:E.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:E.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:E.encodeValuesOnly,filter:i,format:n,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:E.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:E.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:E.strictNullHandling}},zi=function(r,e){var t=r,n=Hi(e),a,i;typeof n.filter=="function"?(i=n.filter,t=i("",t)):I(n.filter)&&(i=n.filter,a=i);var o=[];if(typeof t!="object"||t===null)return"";var u=qt[n.arrayFormat],l=u==="comma"&&n.commaRoundTrip;a||(a=Object.keys(t)),n.sort&&a.sort(n.sort);for(var c=Ut(),s=0;s<a.length;++s){var p=a[s],f=t[p];n.skipNulls&&f===null||Wt(o,ji(f,p,u,l,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,c))}var d=o.join(n.delimiter),y=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),d.length>0?y+d:""},_=Bt,Ie=Object.prototype.hasOwnProperty,yr=Array.isArray,S={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:_.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},ki=function(r){return r.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},Ft=function(r,e,t){if(r&&typeof r=="string"&&e.comma&&r.indexOf(",")>-1)return r.split(",");if(e.throwOnLimitExceeded&&t>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return r},Ki="utf8=%26%2310003%3B",Vi="utf8=%E2%9C%93",Qi=function(e,t){var n={__proto__:null},a=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;a=a.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=t.parameterLimit===1/0?void 0:t.parameterLimit,o=a.split(t.delimiter,t.throwOnLimitExceeded?i+1:i);if(t.throwOnLimitExceeded&&o.length>i)throw new RangeError("Parameter limit exceeded. Only "+i+" parameter"+(i===1?"":"s")+" allowed.");var u=-1,l,c=t.charset;if(t.charsetSentinel)for(l=0;l<o.length;++l)o[l].indexOf("utf8=")===0&&(o[l]===Vi?c="utf-8":o[l]===Ki&&(c="iso-8859-1"),u=l,l=o.length);for(l=0;l<o.length;++l)if(l!==u){var s=o[l],p=s.indexOf("]="),f=p===-1?s.indexOf("="):p+1,d,y;if(f===-1?(d=t.decoder(s,S.decoder,c,"key"),y=t.strictNullHandling?null:""):(d=t.decoder(s.slice(0,f),S.decoder,c,"key"),d!==null&&(y=_.maybeMap(Ft(s.slice(f+1),t,yr(n[d])?n[d].length:0),function(g){return t.decoder(g,S.decoder,c,"value")}))),y&&t.interpretNumericEntities&&c==="iso-8859-1"&&(y=ki(String(y))),s.indexOf("[]=")>-1&&(y=yr(y)?[y]:y),t.comma&&yr(y)&&y.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(t.arrayLimit===1?"":"s")+" allowed in an array.");y=_.combine([],y,t.arrayLimit,t.plainObjects)}if(d!==null){var h=Ie.call(n,d);h&&(t.duplicates==="combine"||s.indexOf("[]=")>-1)?n[d]=_.combine(n[d],y,t.arrayLimit,t.plainObjects):(!h||t.duplicates==="last")&&(n[d]=y)}}return n},Ji=function(r,e,t,n){var a=0;if(r.length>0&&r[r.length-1]==="[]"){var i=r.slice(0,-1).join("");a=Array.isArray(e)&&e[i]?e[i].length:0}for(var o=n?e:Ft(e,t,a),u=r.length-1;u>=0;--u){var l,c=r[u];if(c==="[]"&&t.parseArrays)_.isOverflow(o)?l=o:l=t.allowEmptyArrays&&(o===""||t.strictNullHandling&&o===null)?[]:_.combine([],o,t.arrayLimit,t.plainObjects);else{l=t.plainObjects?{__proto__:null}:{};var s=c.charAt(0)==="["&&c.charAt(c.length-1)==="]"?c.slice(1,-1):c,p=t.decodeDotInKeys?s.replace(/%2E/g,"."):s,f=parseInt(p,10),d=!isNaN(f)&&c!==p&&String(f)===p&&f>=0&&t.parseArrays;if(!t.parseArrays&&p==="")l={0:o};else if(d&&f<t.arrayLimit)l=[],l[f]=o;else{if(d&&t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(t.arrayLimit===1?"":"s")+" allowed in an array.");d?(l[f]=o,_.markOverflow(l,f)):p!=="__proto__"&&(l[p]=o)}}o=l}return o},Xi=function(e,t){var n=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0)return!t.plainObjects&&Ie.call(Object.prototype,n)&&!t.allowPrototypes?void 0:[n];var a=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,o=a.exec(n),u=o?n.slice(0,o.index):n,l=[];if(u){if(!t.plainObjects&&Ie.call(Object.prototype,u)&&!t.allowPrototypes)return;l[l.length]=u}for(var c=0;(o=i.exec(n))!==null&&c<t.depth;){c+=1;var s=o[1].slice(1,-1);if(!t.plainObjects&&Ie.call(Object.prototype,s)&&!t.allowPrototypes)return;l[l.length]=o[1]}if(o){if(t.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");l[l.length]="["+n.slice(o.index)+"]"}return l},Yi=function(e,t,n,a){if(e){var i=Xi(e,n);if(i)return Ji(i,t,n,a)}},Zi=function(e){if(!e)return S;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=typeof e.charset>"u"?S.charset:e.charset,n=typeof e.duplicates>"u"?S.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var a=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:S.allowDots:!!e.allowDots;return{allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:S.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:S.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:S.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:S.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:S.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:S.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:S.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:S.decoder,delimiter:typeof e.delimiter=="string"||_.isRegExp(e.delimiter)?e.delimiter:S.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:S.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:S.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:S.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:S.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:S.strictDepth,strictMerge:typeof e.strictMerge=="boolean"?!!e.strictMerge:S.strictMerge,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:S.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},eo=function(r,e){var t=Zi(e);if(r===""||r===null||typeof r>"u")return t.plainObjects?{__proto__:null}:{};for(var n=typeof r=="string"?Qi(r,t):r,a=t.plainObjects?{__proto__:null}:{},i=Object.keys(n),o=0;o<i.length;++o){var u=i[o],l=Yi(u,n[u],t,typeof r=="string");a=_.merge(a,l,t)}return t.allowSparse===!0?a:_.compact(a)},ro=zi,to=eo,no=Tr,ao={formats:no,parse:to,stringify:ro};const io=Y.getDefaultExportFromCjs(ao);function ft(r){if(!Array.isArray(r))throw new TypeError("Middleware stack must be an array!");for(const e of r)if(typeof e!="function")throw new TypeError("Middleware must be composed of functions!");return function(e,t){let n=-1;return a(0);function a(i){if(i<=n)return Promise.reject(new Error("next() called multiple times"));n=i;let o=r[i];if(i===r.length&&(o=t),!o)return Promise.resolve();try{return Promise.resolve(o(e,a.bind(null,i+1)))}catch(u){return Promise.reject(u)}}}}const w={app:null,appPending:!0,appCb:[],services:new Map,servicePending:new Map,serviceCb:new Map,config:null,configPending:!1,configCb:[]};async function oo(r){if(w.config)return w.config;if(w.configPending)return new Promise(t=>{w.configCb.push(n=>t(n))});w.configPending=!0;const e=await r();return w.config=e,w.configCb.forEach(t=>t(e)),w.configCb=[],w.configPending=!1,e}class Gt{constructor(e={},t){P(this,"options");P(this,"apis",[]);P(this,"middlewares",[]);P(this,"defaultMiddlewares",[async(e,t)=>{try{await t()}catch(n){e.res.body=n.message||""}}]);P(this,"api404");P(this,"fnMiddleware");P(this,"getId");P(this,"extensions",new Map);P(this,"onDestroyCbs",[]);P(this,"config");P(this,"apiList");this.options={...e,baseUrl:e.baseUrl??"/"},this.options.baseUrl=this.options.baseUrl.split("/").map(a=>encodeURIComponent(a)).join("/"),this.middlewares.push(...this.defaultMiddlewares),this.middlewares.push(...e.middlewares||[]);const n=((e==null?void 0:e.apis)??[]).sort((a,i)=>{const o=i.path.substr(-1,1),u=o==="*"?0:o==="/"?.1:.2,l=a.path.substr(-1,1),c=l==="*"?0:l==="/"?.1:.2;return i.path.split("/").length+u-(a.path.split("/").length+c)}).map(a=>({...a,method:a.method??(e==null?void 0:e.defaultMethod)??"post"}));this.apiList=n,this.apis=n.filter(a=>!a.disabled),this.api404={path:"*",method:"all",action:(a,i)=>{throw i.res.status=404,Error("Not Found")}},this.fnMiddleware=ft(this.middlewares),this.getId=Y.useSoonIdGen({workerId:e.workId}),this.init(t)}async init(e){var t,n,a,i;try{if(this.options.config){const o=await this.options.config();this.config=o}await((n=(t=this.options)==null?void 0:t.onInit)==null?void 0:n.call(t,this)),w.app=this,w.appPending=!1,w.appCb.forEach(o=>o(this)),await((i=(a=this.options)==null?void 0:a.onReady)==null?void 0:i.call(a,this)),e==null||e(null,this)}catch(o){e==null||e(o,this)}}async fetchRaw(e,t,n){var f,d;const a=(n==null?void 0:n.url)??e,i=new URL(a,"http://localhost"),o=this.getId(),u={baseUrl:this.options.baseUrl??"",headers:(n==null?void 0:n.headers)??{},method:(n==null?void 0:n.method)??this.options.defaultMethod??"post",body:(n==null?void 0:n.body)??t,params:{},path:i.pathname,queryString:n!=null&&n.query?"?"+io.stringify(n.query):i.search,query:(n==null?void 0:n.query)??Object.fromEntries(i.searchParams),url:a,reqId:o,requestId:o,ip:(n==null?void 0:n.ip)??"",namespace:(n==null?void 0:n.namespace)??"default"};let l=this.api404;for(let y=0;y<this.apis.length;y++){const h=this.apis[y];if((h.namespace??"default")===u.namespace&&(h.method==="all"||h.method===((d=(f=u.method)==null?void 0:f.toLowerCase)==null?void 0:d.call(f)))){const A=Xt((this.options.baseUrl??"")+h.path,{loose:!1,trailing:!1})(u.path);if(A){u.params=A.params,l=h;break}}}const c={body:void 0,headers:{},status:200},s={app:this,currentAPI:l,req:u,request:u,reqId:o,requestId:o,res:c,response:c,platform:n==null?void 0:n.platform,config:this.config,meta:l.meta??{},service:{}},p=async()=>{var g,b;let y=u.body;if(l.bodySchema)if((g=l.bodySchema)!=null&&g.parse)try{y=l.bodySchema.parse(u.body)}catch(A){c.status=400;const m=(b=A==null?void 0:A.issues)==null?void 0:b[0];throw m&&(m.message=(m.path??[]).join(".")+" "+m.message),m?{...m,code:0}:new Error("参数错误")}else throw c.status=500,new Error("bodySchema must be ZodType");const h=await l.action(y,s);h!==void 0&&(c.body=h)};if(l.middlewares&&l.middlewares.length>0){const y=ft(l.middlewares),h=async()=>await y(s,p);n!=null&&n.noPublicMiddleware?await h:await this.fnMiddleware(s,h)}else n!=null&&n.noPublicMiddleware?await p():await this.fnMiddleware(s,p);return s.res}async fetch(e,t,n){return(await this.fetchRaw(e,t,n)).body}async action(e,t,n){const a={...n??{},noPublicMiddleware:!0},i=(n==null?void 0:n.url)??`${this.baseUrl}${e}`;return await this.fetch(i,t,a)}mount(e,t){this.extensions.set(e,t)}get(e){return this.extensions.get(e)}onUnloadService(e){this.onDestroyCbs.push(e)}async unloadService(){return Promise.all(this.onDestroyCbs.map(e=>e==null?void 0:e()))}get baseUrl(){return this.options.baseUrl??""}}const jt=Symbol("soon-api");function lo(r){const e={...r};return e._soon_symbol=jt,e}const Ht=Symbol("soon-service");function fo(r){async function e(){var i;const t=r.service;let n=w.services.get(t);if(n)return n;if(w.servicePending.get(t)){let o=w.serviceCb.get(t);return o||(o=[],w.serviceCb.set(t,o)),new Promise(u=>{o.push(l=>u(l))})}return w.servicePending.set(t,!0),await new Promise(o=>{w.app?o(1):w.appCb.push(()=>o(1))}),n=await t(w.app),w.services.set(t,n),(i=w.serviceCb.get(t))==null||i.forEach(o=>o(n)),w.serviceCb.delete(t),w.servicePending.delete(t),n}return e._soon_symbol=Ht,e.serviceName=(r==null?void 0:r.serviceName)??"",e.autoInject=(r==null?void 0:r.autoInject)??!1,e.enableClient=(r==null?void 0:r.enableClient)??!1,e}function uo(r){return r}function co(r){return async function(){return await oo(r)}}async function so(r){return await new Promise((e,t)=>{new Gt(r,(n,a)=>{if(n){t(n);return}e(a)})})}class po extends Error{constructor(t,n){super(t);P(this,"code");this.code=n}}class yo extends Error{constructor(t,n){super(t);P(this,"status");this.status=n}}function ho({pingTime:r=0,action:e}){let t=()=>null;const n=new xr(a=>{let i;r>0&&(i=setInterval(()=>{u.closed?clearInterval(i):a.next({event:"ping",message:`: ping
4
+ `+e.prev}function be(r,e){var t=wr(r),n=[];if(t){n.length=r.length;for(var a=0;a<r.length;a++)n[a]=T(r,a)?e(r[a],r):""}var i=typeof Ve=="function"?Ve(r):[],o;if(re){o={};for(var u=0;u<i.length;u++)o["$"+i[u]]=i[u]}for(var l in r)T(r,l)&&(t&&String(Number(l))===l&&l<r.length||re&&o["$"+l]instanceof Symbol||(vt.call(/[^\w$]/,l)?n.push(e(l,r)+": "+e(r[l],r)):n.push(l+": "+e(r[l],r))));if(typeof Ve=="function")for(var c=0;c<i.length;c++)gt.call(r,i[c])&&n.push("["+e(i[c])+"]: "+e(r[i[c]],r));return n}var jn=Ue,Hn=ne,Be=function(r,e,t){for(var n=r,a;(a=n.next)!=null;n=a)if(a.key===e)return n.next=a.next,t||(a.next=r.next,r.next=a),a},zn=function(r,e){if(r){var t=Be(r,e);return t&&t.value}},kn=function(r,e,t){var n=Be(r,e);n?n.value=t:r.next={key:e,next:r.next,value:t}},Kn=function(r,e){return r?!!Be(r,e):!1},Vn=function(r,e){if(r)return Be(r,e,!0)},Qn=function(){var e,t={assert:function(n){if(!t.has(n))throw new Hn("Side channel does not contain "+jn(n))},delete:function(n){var a=e&&e.next,i=Vn(e,n);return i&&a&&a===i&&(e=void 0),!!i},get:function(n){return zn(e,n)},has:function(n){return Kn(e,n)},set:function(n,a){e||(e={next:void 0}),kn(e,n,a)}};return t},$t=Object,Jn=Error,Xn=EvalError,Yn=RangeError,Zn=ReferenceError,ea=SyntaxError,ra=URIError,ta=Math.abs,na=Math.floor,aa=Math.max,ia=Math.min,oa=Math.pow,la=Math.round,fa=Number.isNaN||function(e){return e!==e},ua=fa,ca=function(e){return ua(e)||e===0?e:e<0?-1:1},sa=Object.getOwnPropertyDescriptor,Pe=sa;if(Pe)try{Pe([],"length")}catch{Pe=null}var Pt=Pe,xe=Object.defineProperty||!1;if(xe)try{xe({},"a",{value:1})}catch{xe=!1}var pa=xe,Je,Kr;function ya(){return Kr||(Kr=1,Je=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;e[t]=a;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,t);if(u.value!==a||u.enumerable!==!0)return!1}return!0}),Je}var Xe,Vr;function da(){if(Vr)return Xe;Vr=1;var r=typeof Symbol<"u"&&Symbol,e=ya();return Xe=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Xe}var Ye,Qr;function xt(){return Qr||(Qr=1,Ye=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Ye}var Ze,Jr;function Ot(){if(Jr)return Ze;Jr=1;var r=$t;return Ze=r.getPrototypeOf||null,Ze}var er,Xr;function ha(){if(Xr)return er;Xr=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",a=function(l,c){for(var s=[],p=0;p<l.length;p+=1)s[p]=l[p];for(var f=0;f<c.length;f+=1)s[f+l.length]=c[f];return s},i=function(l,c){for(var s=[],p=c,f=0;p<l.length;p+=1,f+=1)s[f]=l[p];return s},o=function(u,l){for(var c="",s=0;s<u.length;s+=1)c+=u[s],s+1<u.length&&(c+=l);return c};return er=function(l){var c=this;if(typeof c!="function"||e.apply(c)!==n)throw new TypeError(r+c);for(var s=i(arguments,1),p,f=function(){if(this instanceof p){var b=c.apply(this,a(s,arguments));return Object(b)===b?b:this}return c.apply(l,a(s,arguments))},d=t(0,c.length-s.length),y=[],h=0;h<d;h++)y[h]="$"+h;if(p=Function("binder","return function ("+o(y,",")+"){ return binder.apply(this,arguments); }")(f),c.prototype){var g=function(){};g.prototype=c.prototype,p.prototype=new g,g.prototype=null}return p},er}var rr,Yr;function qe(){if(Yr)return rr;Yr=1;var r=ha();return rr=Function.prototype.bind||r,rr}var tr,Zr;function _r(){return Zr||(Zr=1,tr=Function.prototype.call),tr}var nr,et;function It(){return et||(et=1,nr=Function.prototype.apply),nr}var ma=typeof Reflect<"u"&&Reflect&&Reflect.apply,va=qe(),ga=It(),wa=_r(),Sa=ma,ba=Sa||va.call(wa,ga),Ea=qe(),Aa=ne,$a=_r(),Pa=ba,Rt=function(e){if(e.length<1||typeof e[0]!="function")throw new Aa("a function is required");return Pa(Ea,$a,e)},ar,rt;function xa(){if(rt)return ar;rt=1;var r=Rt,e=Pt,t;try{t=[].__proto__===Array.prototype}catch(o){if(!o||typeof o!="object"||!("code"in o)||o.code!=="ERR_PROTO_ACCESS")throw o}var n=!!t&&e&&e(Object.prototype,"__proto__"),a=Object,i=a.getPrototypeOf;return ar=n&&typeof n.get=="function"?r([n.get]):typeof i=="function"?function(u){return i(u==null?u:a(u))}:!1,ar}var ir,tt;function Oa(){if(tt)return ir;tt=1;var r=xt(),e=Ot(),t=xa();return ir=r?function(a){return r(a)}:e?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return e(a)}:t?function(a){return t(a)}:null,ir}var or,nt;function Ia(){if(nt)return or;nt=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=qe();return or=t.call(r,e),or}var v,Ra=$t,_a=Jn,Ca=Xn,Ta=Yn,Ma=Zn,te=ea,X=ne,Da=ra,Na=ta,La=na,Ua=aa,Ba=ia,qa=oa,Wa=la,Fa=ca,_t=Function,lr=function(r){try{return _t('"use strict"; return ('+r+").constructor;")()}catch{}},he=Pt,Ga=pa,fr=function(){throw new X},ja=he?function(){try{return arguments.callee,fr}catch{try{return he(arguments,"callee").get}catch{return fr}}}():fr,K=da()(),$=Oa(),Ha=Ot(),za=xt(),Ct=It(),me=_r(),Q={},ka=typeof Uint8Array>"u"||!$?v:$(Uint8Array),G={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?v:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?v:ArrayBuffer,"%ArrayIteratorPrototype%":K&&$?$([][Symbol.iterator]()):v,"%AsyncFromSyncIteratorPrototype%":v,"%AsyncFunction%":Q,"%AsyncGenerator%":Q,"%AsyncGeneratorFunction%":Q,"%AsyncIteratorPrototype%":Q,"%Atomics%":typeof Atomics>"u"?v:Atomics,"%BigInt%":typeof BigInt>"u"?v:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?v:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?v:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?v:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":_a,"%eval%":eval,"%EvalError%":Ca,"%Float16Array%":typeof Float16Array>"u"?v:Float16Array,"%Float32Array%":typeof Float32Array>"u"?v:Float32Array,"%Float64Array%":typeof Float64Array>"u"?v:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?v:FinalizationRegistry,"%Function%":_t,"%GeneratorFunction%":Q,"%Int8Array%":typeof Int8Array>"u"?v:Int8Array,"%Int16Array%":typeof Int16Array>"u"?v:Int16Array,"%Int32Array%":typeof Int32Array>"u"?v:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":K&&$?$($([][Symbol.iterator]())):v,"%JSON%":typeof JSON=="object"?JSON:v,"%Map%":typeof Map>"u"?v:Map,"%MapIteratorPrototype%":typeof Map>"u"||!K||!$?v:$(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Ra,"%Object.getOwnPropertyDescriptor%":he,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?v:Promise,"%Proxy%":typeof Proxy>"u"?v:Proxy,"%RangeError%":Ta,"%ReferenceError%":Ma,"%Reflect%":typeof Reflect>"u"?v:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?v:Set,"%SetIteratorPrototype%":typeof Set>"u"||!K||!$?v:$(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?v:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":K&&$?$(""[Symbol.iterator]()):v,"%Symbol%":K?Symbol:v,"%SyntaxError%":te,"%ThrowTypeError%":ja,"%TypedArray%":ka,"%TypeError%":X,"%Uint8Array%":typeof Uint8Array>"u"?v:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?v:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?v:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?v:Uint32Array,"%URIError%":Da,"%WeakMap%":typeof WeakMap>"u"?v:WeakMap,"%WeakRef%":typeof WeakRef>"u"?v:WeakRef,"%WeakSet%":typeof WeakSet>"u"?v:WeakSet,"%Function.prototype.call%":me,"%Function.prototype.apply%":Ct,"%Object.defineProperty%":Ga,"%Object.getPrototypeOf%":Ha,"%Math.abs%":Na,"%Math.floor%":La,"%Math.max%":Ua,"%Math.min%":Ba,"%Math.pow%":qa,"%Math.round%":Wa,"%Math.sign%":Fa,"%Reflect.getPrototypeOf%":za};if($)try{null.error}catch(r){var Ka=$($(r));G["%Error.prototype%"]=Ka}var Va=function r(e){var t;if(e==="%AsyncFunction%")t=lr("async function () {}");else if(e==="%GeneratorFunction%")t=lr("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=lr("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=r("%AsyncGenerator%");a&&$&&(t=$(a.prototype))}return G[e]=t,t},at={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ve=qe(),Te=Ia(),Qa=ve.call(me,Array.prototype.concat),Ja=ve.call(Ct,Array.prototype.splice),it=ve.call(me,String.prototype.replace),Me=ve.call(me,String.prototype.slice),Xa=ve.call(me,RegExp.prototype.exec),Ya=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Za=/\\(\\)?/g,ei=function(e){var t=Me(e,0,1),n=Me(e,-1);if(t==="%"&&n!=="%")throw new te("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new te("invalid intrinsic syntax, expected opening `%`");var a=[];return it(e,Ya,function(i,o,u,l){a[a.length]=u?it(l,Za,"$1"):o||i}),a},ri=function(e,t){var n=e,a;if(Te(at,n)&&(a=at[n],n="%"+a[0]+"%"),Te(G,n)){var i=G[n];if(i===Q&&(i=Va(n)),typeof i>"u"&&!t)throw new X("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:i}}throw new te("intrinsic "+e+" does not exist!")},Cr=function(e,t){if(typeof e!="string"||e.length===0)throw new X("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new X('"allowMissing" argument must be a boolean');if(Xa(/^%?[^%]*%?$/,e)===null)throw new te("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ei(e),a=n.length>0?n[0]:"",i=ri("%"+a+"%",t),o=i.name,u=i.value,l=!1,c=i.alias;c&&(a=c[0],Ja(n,Qa([0,1],c)));for(var s=1,p=!0;s<n.length;s+=1){var f=n[s],d=Me(f,0,1),y=Me(f,-1);if((d==='"'||d==="'"||d==="`"||y==='"'||y==="'"||y==="`")&&d!==y)throw new te("property names with quotes must have matching quotes");if((f==="constructor"||!p)&&(l=!0),a+="."+f,o="%"+a+"%",Te(G,o))u=G[o];else if(u!=null){if(!(f in u)){if(!t)throw new X("base intrinsic for "+e+" exists, but the property is not available.");return}if(he&&s+1>=n.length){var h=he(u,f);p=!!h,p&&"get"in h&&!("originalValue"in h.get)?u=h.get:u=u[f]}else p=Te(u,f),u=u[f];p&&!l&&(G[o]=u)}}return u},Tt=Cr,Mt=Rt,ti=Mt([Tt("%String.prototype.indexOf%")]),Dt=function(e,t){var n=Tt(e,!!t);return typeof n=="function"&&ti(e,".prototype.")>-1?Mt([n]):n},ni=Cr,ge=Dt,ai=Ue,ii=ne,ot=ni("%Map%",!0),oi=ge("Map.prototype.get",!0),li=ge("Map.prototype.set",!0),fi=ge("Map.prototype.has",!0),ui=ge("Map.prototype.delete",!0),ci=ge("Map.prototype.size",!0),Nt=!!ot&&function(){var e,t={assert:function(n){if(!t.has(n))throw new ii("Side channel does not contain "+ai(n))},delete:function(n){if(e){var a=ui(e,n);return ci(e)===0&&(e=void 0),a}return!1},get:function(n){if(e)return oi(e,n)},has:function(n){return e?fi(e,n):!1},set:function(n,a){e||(e=new ot),li(e,n,a)}};return t},si=Cr,We=Dt,pi=Ue,Ee=Nt,yi=ne,V=si("%WeakMap%",!0),di=We("WeakMap.prototype.get",!0),hi=We("WeakMap.prototype.set",!0),mi=We("WeakMap.prototype.has",!0),vi=We("WeakMap.prototype.delete",!0),gi=V?function(){var e,t,n={assert:function(a){if(!n.has(a))throw new yi("Side channel does not contain "+pi(a))},delete:function(a){if(V&&a&&(typeof a=="object"||typeof a=="function")){if(e)return vi(e,a)}else if(Ee&&t)return t.delete(a);return!1},get:function(a){return V&&a&&(typeof a=="object"||typeof a=="function")&&e?di(e,a):t&&t.get(a)},has:function(a){return V&&a&&(typeof a=="object"||typeof a=="function")&&e?mi(e,a):!!t&&t.has(a)},set:function(a,i){V&&a&&(typeof a=="object"||typeof a=="function")?(e||(e=new V),hi(e,a,i)):Ee&&(t||(t=Ee()),t.set(a,i))}};return n}:Ee,wi=ne,Si=Ue,bi=Qn,Ei=Nt,Ai=gi,$i=Ai||Ei||bi,Lt=function(){var e,t={assert:function(n){if(!t.has(n))throw new wi("Side channel does not contain "+Si(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,a){e||(e=$i()),e.set(n,a)}};return t},Pi=String.prototype.replace,xi=/%20/g,ur={RFC1738:"RFC1738",RFC3986:"RFC3986"},Tr={default:ur.RFC3986,formatters:{RFC1738:function(r){return Pi.call(r,xi,"+")},RFC3986:function(r){return String(r)}},RFC1738:ur.RFC1738,RFC3986:ur.RFC3986},Oi=Tr,Ii=Lt,cr=Object.prototype.hasOwnProperty,W=Array.isArray,Fe=Ii(),J=function(e,t){return Fe.set(e,t),e},F=function(e){return Fe.has(e)},fe=function(e){return Fe.get(e)},br=function(e,t){Fe.set(e,t)},O=function(){for(var r=[],e=0;e<256;++e)r[r.length]="%"+((e<16?"0":"")+e.toString(16)).toUpperCase();return r}(),Ri=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(W(n)){for(var a=[],i=0;i<n.length;++i)typeof n[i]<"u"&&(a[a.length]=n[i]);t.obj[t.prop]=a}}},ye=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},a=0;a<e.length;++a)typeof e[a]<"u"&&(n[a]=e[a]);return n},_i=function r(e,t,n){if(!t)return e;if(typeof t!="object"&&typeof t!="function"){if(W(e)){var a=e.length;if(n&&typeof n.arrayLimit=="number"&&a>n.arrayLimit)return J(ye(e.concat(t),n),a);e[a]=t}else if(e&&typeof e=="object")if(F(e)){var i=fe(e)+1;e[i]=t,br(e,i)}else{if(n&&n.strictMerge)return[e,t];(n&&(n.plainObjects||n.allowPrototypes)||!cr.call(Object.prototype,t))&&(e[t]=!0)}else return[e,t];return e}if(!e||typeof e!="object"){if(F(t)){for(var o=Object.keys(t),u=n&&n.plainObjects?{__proto__:null,0:e}:{0:e},l=0;l<o.length;l++){var c=parseInt(o[l],10);u[c+1]=t[o[l]]}return J(u,fe(t)+1)}var s=[e].concat(t);return n&&typeof n.arrayLimit=="number"&&s.length>n.arrayLimit?J(ye(s,n),s.length-1):s}var p=e;return W(e)&&!W(t)&&(p=ye(e,n)),W(e)&&W(t)?(t.forEach(function(f,d){if(cr.call(e,d)){var y=e[d];y&&typeof y=="object"&&f&&typeof f=="object"?e[d]=r(y,f,n):e[e.length]=f}else e[d]=f}),e):Object.keys(t).reduce(function(f,d){var y=t[d];if(cr.call(f,d)?f[d]=r(f[d],y,n):f[d]=y,F(t)&&!F(f)&&J(f,fe(t)),F(f)){var h=parseInt(d,10);String(h)===d&&h>=0&&h>fe(f)&&br(f,h)}return f},p)},Ci=function(e,t){return Object.keys(t).reduce(function(n,a){return n[a]=t[a],n},e)},Ti=function(r,e,t){var n=r.replace(/\+/g," ");if(t==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},sr=1024,Mi=function(e,t,n,a,i){if(e.length===0)return e;var o=e;if(typeof e=="symbol"?o=Symbol.prototype.toString.call(e):typeof e!="string"&&(o=String(e)),n==="iso-8859-1")return escape(o).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var u="",l=0;l<o.length;l+=sr){for(var c=o.length>=sr?o.slice(l,l+sr):o,s=[],p=0;p<c.length;++p){var f=c.charCodeAt(p);if(f===45||f===46||f===95||f===126||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||i===Oi.RFC1738&&(f===40||f===41)){s[s.length]=c.charAt(p);continue}if(f<128){s[s.length]=O[f];continue}if(f<2048){s[s.length]=O[192|f>>6]+O[128|f&63];continue}if(f<55296||f>=57344){s[s.length]=O[224|f>>12]+O[128|f>>6&63]+O[128|f&63];continue}p+=1,f=65536+((f&1023)<<10|c.charCodeAt(p)&1023),s[s.length]=O[240|f>>18]+O[128|f>>12&63]+O[128|f>>6&63]+O[128|f&63]}u+=s.join("")}return u},Di=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],a=0;a<t.length;++a)for(var i=t[a],o=i.obj[i.prop],u=Object.keys(o),l=0;l<u.length;++l){var c=u[l],s=o[c];typeof s=="object"&&s!==null&&n.indexOf(s)===-1&&(t[t.length]={obj:o,prop:c},n[n.length]=s)}return Ri(t),e},Ni=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Li=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Ui=function(e,t,n,a){if(F(e)){var i=fe(e)+1;return e[i]=t,br(e,i),e}var o=[].concat(e,t);return o.length>n?J(ye(o,{plainObjects:a}),o.length-1):o},Bi=function(e,t){if(W(e)){for(var n=[],a=0;a<e.length;a+=1)n[n.length]=t(e[a]);return n}return t(e)},Ut={arrayToObject:ye,assign:Ci,combine:Ui,compact:Di,decode:Ti,encode:Mi,isBuffer:Li,isOverflow:F,isRegExp:Ni,markOverflow:J,maybeMap:Bi,merge:_i},Bt=Lt,Oe=Ut,de=Tr,qi=Object.prototype.hasOwnProperty,qt={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},I=Array.isArray,Wi=Array.prototype.push,Wt=function(r,e){Wi.apply(r,I(e)?e:[e])},Fi=Date.prototype.toISOString,lt=de.default,E={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Oe.encode,encodeValuesOnly:!1,filter:void 0,format:lt,formatter:de.formatters[lt],indices:!1,serializeDate:function(e){return Fi.call(e)},skipNulls:!1,strictNullHandling:!1},Gi=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},pr={},ji=function r(e,t,n,a,i,o,u,l,c,s,p,f,d,y,h,g,b,A){for(var m=e,M=A,B=0,ae=!1;(M=M.get(pr))!==void 0&&!ae;){var z=M.get(e);if(B+=1,typeof z<"u"){if(z===B)throw new RangeError("Cyclic object value");ae=!0}typeof M.get(pr)>"u"&&(B=0)}if(typeof s=="function"?m=s(t,m):m instanceof Date?m=d(m):n==="comma"&&I(m)&&(m=Oe.maybeMap(m,function(je){return je instanceof Date?d(je):je})),m===null){if(o)return c&&!g?c(t,E.encoder,b,"key",y):t;m=""}if(Gi(m)||Oe.isBuffer(m)){if(c){var we=g?t:c(t,E.encoder,b,"key",y);return[h(we)+"="+h(c(m,E.encoder,b,"value",y))]}return[h(t)+"="+h(String(m))]}var q=[];if(typeof m>"u")return q;var D;if(n==="comma"&&I(m))g&&c&&(m=Oe.maybeMap(m,c)),D=[{value:m.length>0?m.join(",")||null:void 0}];else if(I(s))D=s;else{var Se=Object.keys(m);D=p?Se.sort(p):Se}var k=l?String(t).replace(/\./g,"%2E"):String(t),x=a&&I(m)&&m.length===1?k+"[]":k;if(i&&I(m)&&m.length===0)return x+"[]";for(var N=0;N<D.length;++N){var C=D[N],ie=typeof C=="object"&&C&&typeof C.value<"u"?C.value:m[C];if(!(u&&ie===null)){var Ge=f&&l?String(C).replace(/\./g,"%2E"):String(C),kt=I(m)?typeof n=="function"?n(x,Ge):x:x+(f?"."+Ge:"["+Ge+"]");A.set(e,B);var Mr=Bt();Mr.set(pr,A),Wt(q,r(ie,kt,n,a,i,o,u,l,n==="comma"&&g&&I(m)?null:c,s,p,f,d,y,h,g,b,Mr))}}return q},Hi=function(e){if(!e)return E;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var t=e.charset||E.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=de.default;if(typeof e.format<"u"){if(!qi.call(de.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var a=de.formatters[n],i=E.filter;(typeof e.filter=="function"||I(e.filter))&&(i=e.filter);var o;if(e.arrayFormat in qt?o=e.arrayFormat:"indices"in e?o=e.indices?"indices":"repeat":o=E.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:E.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:E.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:E.allowEmptyArrays,arrayFormat:o,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:E.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?E.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:E.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:E.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:E.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:E.encodeValuesOnly,filter:i,format:n,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:E.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:E.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:E.strictNullHandling}},zi=function(r,e){var t=r,n=Hi(e),a,i;typeof n.filter=="function"?(i=n.filter,t=i("",t)):I(n.filter)&&(i=n.filter,a=i);var o=[];if(typeof t!="object"||t===null)return"";var u=qt[n.arrayFormat],l=u==="comma"&&n.commaRoundTrip;a||(a=Object.keys(t)),n.sort&&a.sort(n.sort);for(var c=Bt(),s=0;s<a.length;++s){var p=a[s],f=t[p];n.skipNulls&&f===null||Wt(o,ji(f,p,u,l,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,c))}var d=o.join(n.delimiter),y=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),d.length>0?y+d:""},_=Ut,Ie=Object.prototype.hasOwnProperty,yr=Array.isArray,S={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:_.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},ki=function(r){return r.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},Ft=function(r,e,t){if(r&&typeof r=="string"&&e.comma&&r.indexOf(",")>-1)return r.split(",");if(e.throwOnLimitExceeded&&t>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return r},Ki="utf8=%26%2310003%3B",Vi="utf8=%E2%9C%93",Qi=function(e,t){var n={__proto__:null},a=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;a=a.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=t.parameterLimit===1/0?void 0:t.parameterLimit,o=a.split(t.delimiter,t.throwOnLimitExceeded?i+1:i);if(t.throwOnLimitExceeded&&o.length>i)throw new RangeError("Parameter limit exceeded. Only "+i+" parameter"+(i===1?"":"s")+" allowed.");var u=-1,l,c=t.charset;if(t.charsetSentinel)for(l=0;l<o.length;++l)o[l].indexOf("utf8=")===0&&(o[l]===Vi?c="utf-8":o[l]===Ki&&(c="iso-8859-1"),u=l,l=o.length);for(l=0;l<o.length;++l)if(l!==u){var s=o[l],p=s.indexOf("]="),f=p===-1?s.indexOf("="):p+1,d,y;if(f===-1?(d=t.decoder(s,S.decoder,c,"key"),y=t.strictNullHandling?null:""):(d=t.decoder(s.slice(0,f),S.decoder,c,"key"),d!==null&&(y=_.maybeMap(Ft(s.slice(f+1),t,yr(n[d])?n[d].length:0),function(g){return t.decoder(g,S.decoder,c,"value")}))),y&&t.interpretNumericEntities&&c==="iso-8859-1"&&(y=ki(String(y))),s.indexOf("[]=")>-1&&(y=yr(y)?[y]:y),t.comma&&yr(y)&&y.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(t.arrayLimit===1?"":"s")+" allowed in an array.");y=_.combine([],y,t.arrayLimit,t.plainObjects)}if(d!==null){var h=Ie.call(n,d);h&&(t.duplicates==="combine"||s.indexOf("[]=")>-1)?n[d]=_.combine(n[d],y,t.arrayLimit,t.plainObjects):(!h||t.duplicates==="last")&&(n[d]=y)}}return n},Ji=function(r,e,t,n){var a=0;if(r.length>0&&r[r.length-1]==="[]"){var i=r.slice(0,-1).join("");a=Array.isArray(e)&&e[i]?e[i].length:0}for(var o=n?e:Ft(e,t,a),u=r.length-1;u>=0;--u){var l,c=r[u];if(c==="[]"&&t.parseArrays)_.isOverflow(o)?l=o:l=t.allowEmptyArrays&&(o===""||t.strictNullHandling&&o===null)?[]:_.combine([],o,t.arrayLimit,t.plainObjects);else{l=t.plainObjects?{__proto__:null}:{};var s=c.charAt(0)==="["&&c.charAt(c.length-1)==="]"?c.slice(1,-1):c,p=t.decodeDotInKeys?s.replace(/%2E/g,"."):s,f=parseInt(p,10),d=!isNaN(f)&&c!==p&&String(f)===p&&f>=0&&t.parseArrays;if(!t.parseArrays&&p==="")l={0:o};else if(d&&f<t.arrayLimit)l=[],l[f]=o;else{if(d&&t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(t.arrayLimit===1?"":"s")+" allowed in an array.");d?(l[f]=o,_.markOverflow(l,f)):p!=="__proto__"&&(l[p]=o)}}o=l}return o},Xi=function(e,t){var n=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0)return!t.plainObjects&&Ie.call(Object.prototype,n)&&!t.allowPrototypes?void 0:[n];var a=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,o=a.exec(n),u=o?n.slice(0,o.index):n,l=[];if(u){if(!t.plainObjects&&Ie.call(Object.prototype,u)&&!t.allowPrototypes)return;l[l.length]=u}for(var c=0;(o=i.exec(n))!==null&&c<t.depth;){c+=1;var s=o[1].slice(1,-1);if(!t.plainObjects&&Ie.call(Object.prototype,s)&&!t.allowPrototypes)return;l[l.length]=o[1]}if(o){if(t.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");l[l.length]="["+n.slice(o.index)+"]"}return l},Yi=function(e,t,n,a){if(e){var i=Xi(e,n);if(i)return Ji(i,t,n,a)}},Zi=function(e){if(!e)return S;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=typeof e.charset>"u"?S.charset:e.charset,n=typeof e.duplicates>"u"?S.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var a=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:S.allowDots:!!e.allowDots;return{allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:S.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:S.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:S.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:S.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:S.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:S.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:S.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:S.decoder,delimiter:typeof e.delimiter=="string"||_.isRegExp(e.delimiter)?e.delimiter:S.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:S.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:S.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:S.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:S.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:S.strictDepth,strictMerge:typeof e.strictMerge=="boolean"?!!e.strictMerge:S.strictMerge,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:S.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},eo=function(r,e){var t=Zi(e);if(r===""||r===null||typeof r>"u")return t.plainObjects?{__proto__:null}:{};for(var n=typeof r=="string"?Qi(r,t):r,a=t.plainObjects?{__proto__:null}:{},i=Object.keys(n),o=0;o<i.length;++o){var u=i[o],l=Yi(u,n[u],t,typeof r=="string");a=_.merge(a,l,t)}return t.allowSparse===!0?a:_.compact(a)},ro=zi,to=eo,no=Tr,ao={formats:no,parse:to,stringify:ro};const io=Y.getDefaultExportFromCjs(ao);function ft(r){if(!Array.isArray(r))throw new TypeError("Middleware stack must be an array!");for(const e of r)if(typeof e!="function")throw new TypeError("Middleware must be composed of functions!");return function(e,t){let n=-1;return a(0);function a(i){if(i<=n)return Promise.reject(new Error("next() called multiple times"));n=i;let o=r[i];if(i===r.length&&(o=t),!o)return Promise.resolve();try{return Promise.resolve(o(e,a.bind(null,i+1)))}catch(u){return Promise.reject(u)}}}}const w={app:null,appPending:!0,appCb:[],services:new Map,servicePending:new Map,serviceCb:new Map,config:null,configPending:!1,configCb:[]};async function oo(r){if(w.config)return w.config;if(w.configPending)return new Promise(t=>{w.configCb.push(n=>t(n))});w.configPending=!0;const e=await r();return w.config=e,w.configCb.forEach(t=>t(e)),w.configCb=[],w.configPending=!1,e}class Gt{constructor(e={},t){P(this,"options");P(this,"apis",[]);P(this,"middlewares",[]);P(this,"defaultMiddlewares",[async(e,t)=>{try{await t()}catch(n){e.res.body=n.message||""}}]);P(this,"api404");P(this,"fnMiddleware");P(this,"getId");P(this,"extensions",new Map);P(this,"onDestroyCbs",[]);P(this,"config");P(this,"apiList");this.options={...e,baseUrl:e.baseUrl??"/"},this.options.baseUrl=this.options.baseUrl.split("/").map(a=>encodeURIComponent(a)).join("/"),this.middlewares.push(...this.defaultMiddlewares),this.middlewares.push(...e.middlewares||[]);const n=((e==null?void 0:e.apis)??[]).sort((a,i)=>{const o=i.path.substr(-1,1),u=o==="*"?0:o==="/"?.1:.2,l=a.path.substr(-1,1),c=l==="*"?0:l==="/"?.1:.2;return i.path.split("/").length+u-(a.path.split("/").length+c)}).map(a=>({...a,method:a.method??(e==null?void 0:e.defaultMethod)??"post"}));this.apiList=n,this.apis=n.filter(a=>!a.disabled),this.api404={path:"*",method:"all",action:(a,i)=>{throw i.res.status=404,Error("Not Found")}},this.fnMiddleware=ft(this.middlewares),this.getId=Y.useSoonIdGen({workerId:e.workId}),this.init(t)}async init(e){var t,n,a,i;try{if(this.options.config){const o=await this.options.config();this.config=o}await((n=(t=this.options)==null?void 0:t.onInit)==null?void 0:n.call(t,this)),w.app=this,w.appPending=!1,w.appCb.forEach(o=>o(this)),await((i=(a=this.options)==null?void 0:a.onReady)==null?void 0:i.call(a,this)),e==null||e(null,this)}catch(o){e==null||e(o,this)}}async fetchRaw(e,t,n){var f,d;const a=(n==null?void 0:n.url)??e,i=new URL(a,"http://localhost"),o=this.getId(),u={baseUrl:this.options.baseUrl??"",headers:(n==null?void 0:n.headers)??{},method:(n==null?void 0:n.method)??this.options.defaultMethod??"post",body:(n==null?void 0:n.body)??t,params:{},path:i.pathname,queryString:n!=null&&n.query?"?"+io.stringify(n.query):i.search,query:(n==null?void 0:n.query)??Object.fromEntries(i.searchParams),url:a,reqId:o,requestId:o,ip:(n==null?void 0:n.ip)??"",namespace:(n==null?void 0:n.namespace)??"default"};let l=this.api404;for(let y=0;y<this.apis.length;y++){const h=this.apis[y];if((h.namespace??"default")===u.namespace&&(h.method==="all"||h.method===((d=(f=u.method)==null?void 0:f.toLowerCase)==null?void 0:d.call(f)))){const A=Xt((h.baseUrl??this.options.baseUrl??"")+h.path,{loose:!1,trailing:!1})(u.path);if(A){u.params=A.params,l=h;break}}}const c={body:void 0,headers:{},status:200},s={app:this,currentAPI:l,req:u,request:u,reqId:o,requestId:o,res:c,response:c,platform:n==null?void 0:n.platform,config:this.config,meta:l.meta??{},service:{}},p=async()=>{var g,b;let y=u.body;if(l.bodySchema)if((g=l.bodySchema)!=null&&g.parse)try{y=l.bodySchema.parse(u.body)}catch(A){c.status=400;const m=(b=A==null?void 0:A.issues)==null?void 0:b[0];throw m&&(m.message=(m.path??[]).join(".")+" "+m.message),m?{...m,code:0}:new Error("参数错误")}else throw c.status=500,new Error("bodySchema must be ZodType");const h=await l.action(y,s);h!==void 0&&(c.body=h)};if(l.middlewares&&l.middlewares.length>0){const y=ft(l.middlewares),h=async()=>await y(s,p);n!=null&&n.noPublicMiddleware?await h:await this.fnMiddleware(s,h)}else n!=null&&n.noPublicMiddleware?await p():await this.fnMiddleware(s,p);return s.res}async fetch(e,t,n){return(await this.fetchRaw(e,t,n)).body}async action(e,t,n){const a={...n??{},noPublicMiddleware:!0},i=(n==null?void 0:n.url)??`${this.baseUrl}${e}`;return await this.fetch(i,t,a)}mount(e,t){this.extensions.set(e,t)}get(e){return this.extensions.get(e)}onUnloadService(e){this.onDestroyCbs.push(e)}async unloadService(){return Promise.all(this.onDestroyCbs.map(e=>e==null?void 0:e()))}get baseUrl(){return this.options.baseUrl??""}}const jt=Symbol("soon-api");function lo(r){const e={...r};return e._soon_symbol=jt,e}const Ht=Symbol("soon-service");function fo(r){async function e(){var i;const t=r.service;let n=w.services.get(t);if(n)return n;if(w.servicePending.get(t)){let o=w.serviceCb.get(t);return o||(o=[],w.serviceCb.set(t,o)),new Promise(u=>{o.push(l=>u(l))})}return w.servicePending.set(t,!0),await new Promise(o=>{w.app?o(1):w.appCb.push(()=>o(1))}),n=await t(w.app),w.services.set(t,n),(i=w.serviceCb.get(t))==null||i.forEach(o=>o(n)),w.serviceCb.delete(t),w.servicePending.delete(t),n}return e._soon_symbol=Ht,e.serviceName=(r==null?void 0:r.serviceName)??"",e.autoInject=(r==null?void 0:r.autoInject)??!1,e.enableClient=(r==null?void 0:r.enableClient)??!1,e}function uo(r){return r}function co(r){return async function(){return await oo(r)}}async function so(r){return await new Promise((e,t)=>{new Gt(r,(n,a)=>{if(n){t(n);return}e(a)})})}class po extends Error{constructor(t,n){super(t);P(this,"code");this.code=n}}class yo extends Error{constructor(t,n){super(t);P(this,"status");this.status=n}}function ho({pingTime:r=0,action:e}){let t=()=>null;const n=new xr(a=>{let i;r>0&&(i=setInterval(()=>{u.closed?clearInterval(i):a.next({event:"ping",message:`event: ping
5
+ data:
5
6
 
6
7
  `})},r));const o=[],u={send(l){try{a.next({...l,message:`${l.event?`event: ${l.event}
7
8
  `:""}data: ${typeof l.data=="string"?l.data:JSON.stringify(l.data)}
package/dist/index.d.ts CHANGED
@@ -66,6 +66,7 @@ export declare function defineApi<BodySchema extends ZodType<any, any, any>, Cus
66
66
  bodySchema?: BodySchema;
67
67
  }>) => Promise<Data> | Data;
68
68
  }): {
69
+ baseUrl?: string;
69
70
  path?: string;
70
71
  method?: "get" | "head" | "post" | "put" | "delete" | "options" | "patch" | "all";
71
72
  disabled?: boolean;
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ var jt = Object.defineProperty;
2
2
  var kt = (r, e, t) => e in r ? jt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
3
  var P = (r, e, t) => kt(r, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { PassThrough as zt } from "stream";
5
- import { g as ft, c as Tr, u as Kt } from "./deps/soon-id-t25L9qRGGZ-ho0x5m1c3.js";
5
+ import { g as ft, c as Tr, u as Kt } from "./deps/soon-id-t25L9qRGGZ-1p453zvsh.js";
6
6
  import Vt from "util";
7
7
  var H = {};
8
8
  Object.defineProperty(H, "__esModule", { value: !0 });
@@ -2228,7 +2228,7 @@ class io {
2228
2228
  for (let y = 0; y < this.apis.length; y++) {
2229
2229
  const h = this.apis[y];
2230
2230
  if ((h.namespace ?? "default") === u.namespace && (h.method === "all" || h.method === ((d = (f = u.method) == null ? void 0 : f.toLowerCase) == null ? void 0 : d.call(f)))) {
2231
- const A = Qt((this.options.baseUrl ?? "") + h.path, { loose: !1, trailing: !1 })(u.path);
2231
+ const A = Qt((h.baseUrl ?? this.options.baseUrl ?? "") + h.path, { loose: !1, trailing: !1 })(u.path);
2232
2232
  if (A) {
2233
2233
  u.params = A.params, l = h;
2234
2234
  break;
@@ -2369,7 +2369,8 @@ function bo({
2369
2369
  const n = new vt((a) => {
2370
2370
  let i;
2371
2371
  r > 0 && (i = setInterval(() => {
2372
- u.closed ? clearInterval(i) : a.next({ event: "ping", message: `: ping
2372
+ u.closed ? clearInterval(i) : a.next({ event: "ping", message: `event: ping
2373
+ data:
2373
2374
 
2374
2375
  ` });
2375
2376
  }, r));
package/dist/types.d.ts CHANGED
@@ -3,6 +3,10 @@ import { IncomingHttpHeaders, OutgoingHttpHeaders } from 'http';
3
3
 
4
4
  type Method = 'get' | 'head' | 'post' | 'put' | 'delete' | 'options' | 'patch' | 'all';
5
5
  export type APIOptionsBase = {
6
+ /**
7
+ * 基础路径,默认使用全局配置的 baseUrl
8
+ */
9
+ baseUrl?: string;
6
10
  /**
7
11
  * 访问路径,/开头是绝对路径,非绝对路径则仅是替换访问名称而不改变路径层级,可为''
8
12
  */
@@ -1,4 +1,4 @@
1
- "use strict";var dD=Object.defineProperty;var Ic=e=>{throw TypeError(e)};var mD=(e,t,r)=>t in e?dD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Wt=(e,t,r)=>mD(e,typeof t!="symbol"?t+"":t,r),Eo=(e,t,r)=>t.has(e)||Ic("Cannot "+r);var ot=(e,t,r)=>(Eo(e,t,"read from private field"),r?r.call(e):t.get(e)),Nt=(e,t,r)=>t.has(e)?Ic("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),St=(e,t,r,i)=>(Eo(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),xr=(e,t,r)=>(Eo(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Pt=require("fs"),at=require("path"),es=require("module"),Xe=require("url"),wh=require("fs/promises"),Rr=require("process"),er=require("assert"),yD=require("v8"),Hn=require("util"),ai=require("./deps/soon-id-t25L9qRGGZ-zb70pi9of.js"),Ih=require("tty"),DD=require("os"),gD=require("crypto");var Zi=typeof document<"u"?document.currentScript:null;function Lu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const en=Lu(at),Nh=Lu(Xe),Nc=Lu(wh);var ED=Object.defineProperty,TD=(e,t)=>{for(var r in t)ED(e,r,{get:t[r],enumerable:!0})},Oh={};TD(Oh,{builders:()=>fn,printer:()=>$u,utils:()=>Vu});var SD=1,Bh=(e,t)=>(r,i,...n)=>r|SD&&i==null?void 0:(t.call(i)??i[e]).apply(i,n);function bD(e){return this[e<0?this.length+e:e]}var vD=Bh("at",function(){if(Array.isArray(this)||typeof this=="string")return bD}),Mr=vD,AD=()=>{},CD=AD,Ri="string",Kr="array",Mi="cursor",li="indent",ci="align",pi="trim",tr="group",fi="fill",or="if-break",hi="indent-if-break",di="line-suffix",mi="line-suffix-boundary",jt="line",yi="label",Cr="break-parent",kh=new Set([Mi,li,ci,pi,tr,fi,or,hi,di,mi,jt,yi,Cr]);function PD(e){let t=e.length;for(;t>0&&(e[t-1]==="\r"||e[t-1]===`
1
+ "use strict";var dD=Object.defineProperty;var Ic=e=>{throw TypeError(e)};var mD=(e,t,r)=>t in e?dD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Wt=(e,t,r)=>mD(e,typeof t!="symbol"?t+"":t,r),Eo=(e,t,r)=>t.has(e)||Ic("Cannot "+r);var ot=(e,t,r)=>(Eo(e,t,"read from private field"),r?r.call(e):t.get(e)),Nt=(e,t,r)=>t.has(e)?Ic("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),St=(e,t,r,i)=>(Eo(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),xr=(e,t,r)=>(Eo(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Pt=require("fs"),at=require("path"),es=require("module"),Xe=require("url"),wh=require("fs/promises"),Rr=require("process"),er=require("assert"),yD=require("v8"),Hn=require("util"),ai=require("./deps/soon-id-t25L9qRGGZ-l3h6p65r6.js"),Ih=require("tty"),DD=require("os"),gD=require("crypto");var Zi=typeof document<"u"?document.currentScript:null;function Lu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const en=Lu(at),Nh=Lu(Xe),Nc=Lu(wh);var ED=Object.defineProperty,TD=(e,t)=>{for(var r in t)ED(e,r,{get:t[r],enumerable:!0})},Oh={};TD(Oh,{builders:()=>fn,printer:()=>$u,utils:()=>Vu});var SD=1,Bh=(e,t)=>(r,i,...n)=>r|SD&&i==null?void 0:(t.call(i)??i[e]).apply(i,n);function bD(e){return this[e<0?this.length+e:e]}var vD=Bh("at",function(){if(Array.isArray(this)||typeof this=="string")return bD}),Mr=vD,AD=()=>{},CD=AD,Ri="string",Kr="array",Mi="cursor",li="indent",ci="align",pi="trim",tr="group",fi="fill",or="if-break",hi="indent-if-break",di="line-suffix",mi="line-suffix-boundary",jt="line",yi="label",Cr="break-parent",kh=new Set([Mi,li,ci,pi,tr,fi,or,hi,di,mi,jt,yi,Cr]);function PD(e){let t=e.length;for(;t>0&&(e[t-1]==="\r"||e[t-1]===`
2
2
  `);)t--;return t<e.length?e.slice(0,t):e}function xD(e){if(typeof e=="string")return Ri;if(Array.isArray(e))return Kr;if(!e)return;const{type:t}=e;if(kh.has(t))return t}var ji=xD,FD=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function _D(e){const t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
3
3
  Expected it to be 'string' or 'object'.`;if(ji(e))throw new Error("doc is valid.");const r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;const i=FD([...kh].map(n=>`'${n}'`));return`Unexpected doc.type '${e.type}'.
4
4
  Expected it to be ${i}.`}var wD=class extends Error{constructor(t){super(_D(t));Wt(this,"name","InvalidDocError");this.doc=t}},ln=wD,Oc={};function ID(e,t,r,i){const n=[e];for(;n.length>0;){const s=n.pop();if(s===Oc){r(n.pop());continue}r&&n.push(s,Oc);const a=ji(s);if(!a)throw new ln(s);if((t==null?void 0:t(s))!==!1)switch(a){case Kr:case fi:{const o=a===Kr?s:s.parts;for(let u=o.length,l=u-1;l>=0;--l)n.push(o[l]);break}case or:n.push(s.flatContents,s.breakContents);break;case tr:if(i&&s.expandedStates)for(let o=s.expandedStates.length,u=o-1;u>=0;--u)n.push(s.expandedStates[u]);else n.push(s.contents);break;case ci:case li:case hi:case yi:case di:n.push(s.contents);break;case Ri:case Mi:case pi:case mi:case jt:case Cr:break;default:throw new ln(s)}}}var Ru=ID;function Ea(e,t){if(typeof e=="string")return t(e);const r=new Map;return i(e);function i(s){if(r.has(s))return r.get(s);const a=n(s);return r.set(s,a),a}function n(s){switch(ji(s)){case Kr:return t(s.map(i));case fi:return t({...s,parts:s.parts.map(i)});case or:return t({...s,breakContents:i(s.breakContents),flatContents:i(s.flatContents)});case tr:{let{expandedStates:a,contents:o}=s;return a?(a=a.map(i),o=a[0]):o=i(o),t({...s,contents:o,expandedStates:a})}case ci:case li:case hi:case yi:case di:return t({...s,contents:i(s.contents)});case Ri:case Mi:case pi:case mi:case jt:case Cr:return t(s);default:throw new ln(s)}}}function Mu(e,t,r){let i=r,n=!1;function s(a){if(n)return!1;const o=t(a);o!==void 0&&(n=!0,i=o)}return Ru(e,s),i}function ND(e){if(e.type===tr&&e.break||e.type===jt&&e.hard||e.type===Cr)return!0}function OD(e){return Mu(e,ND,!1)}function Bc(e){if(e.length>0){const t=Mr(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function BD(e){const t=new Set,r=[];function i(s){if(s.type===Cr&&Bc(r),s.type===tr){if(r.push(s),t.has(s))return!1;t.add(s)}}function n(s){s.type===tr&&r.pop().break&&Bc(r)}Ru(e,i,n,!0)}function kD(e){return e.type===jt&&!e.hard?e.soft?"":" ":e.type===or?e.flatContents:e}function LD(e){return Ea(e,kD)}function kc(e){for(e=[...e];e.length>=2&&Mr(0,e,-2).type===jt&&Mr(0,e,-1).type===Cr;)e.length-=2;if(e.length>0){const t=jn(Mr(0,e,-1));e[e.length-1]=t}return e}function jn(e){switch(ji(e)){case li:case hi:case tr:case di:case yi:{const t=jn(e.contents);return{...e,contents:t}}case or:return{...e,breakContents:jn(e.breakContents),flatContents:jn(e.flatContents)};case fi:return{...e,parts:kc(e.parts)};case Kr:return kc(e);case Ri:return PD(e);case ci:case Mi:case pi:case mi:case jt:case Cr:break;default:throw new ln(e)}return e}function RD(e){return jn(jD(e))}function MD(e){switch(ji(e)){case fi:if(e.parts.every(t=>t===""))return"";break;case tr:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===tr&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case ci:case li:case hi:case di:if(!e.contents)return"";break;case or:if(!e.flatContents&&!e.breakContents)return"";break;case Kr:{const t=[];for(const r of e){if(!r)continue;const[i,...n]=Array.isArray(r)?r:[r];typeof i=="string"&&typeof Mr(0,t,-1)=="string"?t[t.length-1]+=i:t.push(i),t.push(...n)}return t.length===0?"":t.length===1?t[0]:t}case Ri:case Mi:case pi:case mi:case jt:case yi:case Cr:break;default:throw new ln(e)}return e}function jD(e){return Ea(e,t=>MD(t))}function UD(e,t=jh){return Ea(e,r=>typeof r=="string"?Rh(t,r.split(`
@@ -74,7 +74,7 @@ ${s}`,r);Wt(this,"line");Wt(this,"column");Wt(this,"codeblock");this.line=i,this
74
74
  `)throw new rt("newlines are not allowed in inline tables",u);if(a==="#")throw new rt("inline tables cannot contain comments",u);if(a===",")throw new rt("expected key-value, found comma",u);if(a!==" "&&a!==" "){let l,c=n,p=!1,[f,h]=gu(e,t-1);for(let b=0;b<f.length;b++){if(b&&(c=p?c[l]:c[l]={}),l=f[b],(p=Object.hasOwn(c,l))&&(typeof c[l]!="object"||s.has(c[l])))throw new rt("trying to redefine an already defined value",{toml:e,ptr:t});!p&&l==="__proto__"&&Object.defineProperty(c,l,{enumerable:!0,configurable:!0,writable:!0})}if(p)throw new rt("trying to redefine an already defined value",{toml:e,ptr:t});let[d,y]=rl(e,h,"}",r-1,i);s.add(d),c[l]=d,t=y,o=e[t-1]===","?t-1:0}}if(o)throw new rt("trailing commas are not allowed in inline tables",{toml:e,ptr:o});if(!a)throw new rt("unfinished table encountered",{toml:e,ptr:t});return[n,t]}function GT(e,t,r,i){let n=[],s;for(t++;(s=e[t++])!=="]"&&s;){if(s===",")throw new rt("expected value, found comma",{toml:e,ptr:t-1});if(s==="#")t=tl(e,t);else if(s!==" "&&s!==" "&&s!==`
75
75
  `&&s!=="\r"){let a=rl(e,t-1,"]",r-1,i);n.push(a[0]),t=a[1]}}if(!s)throw new rt("unfinished array encountered",{toml:e,ptr:t});return[n,t]}function ep(e,t,r,i){var l,c;let n=t,s=r,a,o=!1,u;for(let p=0;p<e.length;p++){if(p){if(n=o?n[a]:n[a]={},s=(u=s[a]).c,i===0&&(u.t===1||u.t===2))return null;if(u.t===2){let f=n.length-1;n=n[f],s=s[f].c}}if(a=e[p],(o=Object.hasOwn(n,a))&&((l=s[a])==null?void 0:l.t)===0&&((c=s[a])!=null&&c.d))return null;o||(a==="__proto__"&&(Object.defineProperty(n,a,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(s,a,{enumerable:!0,configurable:!0,writable:!0})),s[a]={t:p<e.length-1&&i===2?3:i,d:!1,i:0,c:{}})}if(u=s[a],u.t!==i&&!(i===1&&u.t===3)||(i===2&&(u.d||(u.d=!0,n[a]=[]),n[a].push(n={}),u.c[u.i++]=u={t:1,d:!1,i:0,c:{}}),u.d))return null;if(u.d=!0,i===1)n=o?n[a]:n[a]={};else if(i===0&&o)return null;return[a,n,u.c]}function zT(e,{maxDepth:t=1e3,integersAsBigInt:r}={}){let i={},n={},s=i,a=n;for(let o=Ur(e,0);o<e.length;){if(e[o]==="["){let u=e[++o]==="[",l=gu(e,o+=+u,"]");if(u){if(e[l[1]-1]!=="]")throw new rt("expected end of table declaration",{toml:e,ptr:l[1]-1});l[1]++}let c=ep(l[0],i,n,u?2:1);if(!c)throw new rt("trying to redefine an already defined table or value",{toml:e,ptr:o});a=c[2],s=c[1],o=l[1]}else{let u=gu(e,o),l=ep(u[0],s,a,0);if(!l)throw new rt("trying to redefine an already defined table or value",{toml:e,ptr:o});let c=rl(e,u[1],void 0,t,r);l[1][l[0]]=c[0],o=c[1]}if(o=Ur(e,o,!0),e[o]&&e[o]!==`
76
76
  `&&e[o]!=="\r")throw new rt("each key-value declaration must be followed by an end-of-line",{toml:e,ptr:o});o=Ur(e,o)}return i}async function QT(e){Dd(e)&&(e=new URL(e));try{return await wh.readFile(e,"utf8")}catch(t){if(t.code==="ENOENT")return;throw new Error(`Unable to read '${e}': ${t.message}`)}}var rs=QT;async function il(e){const t=await rs(e);try{return LT(t)}catch(r){throw r.message=`JSON Error in ${e}:
77
- ${r.message}`,r}}async function _i(e){return(await import(Xe.pathToFileURL(e).href)).default}async function ZT(e){try{return await il(e)}catch(t){try{return await _i(e)}catch{}throw t}}var _d=process.versions.bun?async function(t){const{prettier:r}=await ZT(t);return r}:async function(t){const{prettier:r}=await il(t);return r};async function wd(e){const{prettier:t}=await Gs(e);return t}var Co;async function Gs(e){const t=await rs(e);Co||({__parsePrettierYamlConfig:Co}=await Promise.resolve().then(()=>require("./deps/yaml-GTMY6ek0xu-pown9flit.js")));try{return Co(t)}catch(r){throw r.message=`YAML Error in ${e}:
77
+ ${r.message}`,r}}async function _i(e){return(await import(Xe.pathToFileURL(e).href)).default}async function ZT(e){try{return await il(e)}catch(t){try{return await _i(e)}catch{}throw t}}var _d=process.versions.bun?async function(t){const{prettier:r}=await ZT(t);return r}:async function(t){const{prettier:r}=await il(t);return r};async function wd(e){const{prettier:t}=await Gs(e);return t}var Co;async function Gs(e){const t=await rs(e);Co||({__parsePrettierYamlConfig:Co}=await Promise.resolve().then(()=>require("./deps/yaml-GTMY6ek0xu-yjoiq2gej.js")));try{return Co(t)}catch(r){throw r.message=`YAML Error in ${e}:
78
78
  ${r.message}`,r}}async function eS(e){const t=await rs(e);try{return zT(t)}catch(r){throw r.message=`TOML Error in ${e}:
79
79
  ${r.message}`,r}}async function tS(e){const t=await rs(e);try{return dT.parse(t)}catch(r){throw r.message=`JSON5 Error in ${e}:
80
80
  ${r.message}`,r}}var rS={".toml":eS,".json5":tS,".json":il,".js":_i,".mjs":_i,".cjs":_i,".ts":_i,".mts":_i,".cts":_i,".yaml":Gs,".yml":Gs,"":Gs},iS=rS,nS=["package.json","package.yaml",".prettierrc",".prettierrc.json",".prettierrc.yml",".prettierrc.yaml",".prettierrc.json5",".prettierrc.js","prettier.config.js",".prettierrc.ts","prettier.config.ts",".prettierrc.mjs","prettier.config.mjs",".prettierrc.mts","prettier.config.mts",".prettierrc.cjs","prettier.config.cjs",".prettierrc.cts","prettier.config.cts",".prettierrc.toml"];async function sS({name:e,path:t}){if(e==="package.json")try{return!!await _d(t)}catch{return!1}if(e==="package.yaml")try{return!!await wd(t)}catch{return!1}return!0}function aS(e){return new YE(nS,{filter:sS,stopDirectory:e})}var oS=aS,uS={}.hasOwnProperty,lS=/^([A-Z][a-z\d]*)+$/,cS=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),wt={};function Po(e,t="and"){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}var Id=new Map,pS="__node_internal_",tp;wt.ERR_INVALID_ARG_TYPE=rr("ERR_INVALID_ARG_TYPE",(e,t,r)=>{er.ok(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let i="The ";if(e.endsWith(" argument"))i+=`${e} `;else{const o=e.includes(".")?"property":"argument";i+=`"${e}" ${o} `}i+="must be ";const n=[],s=[],a=[];for(const o of t)er.ok(typeof o=="string","All expected entries have to be of type string"),cS.has(o)?n.push(o.toLowerCase()):lS.exec(o)===null?(er.ok(o!=="object",'The value "object" should be written as "Object"'),a.push(o)):s.push(o);if(s.length>0){const o=n.indexOf("object");o!==-1&&(n.slice(o,1),s.push("Object"))}return n.length>0&&(i+=`${n.length>1?"one of type":"of type"} ${Po(n,"or")}`,(s.length>0||a.length>0)&&(i+=" or ")),s.length>0&&(i+=`an instance of ${Po(s,"or")}`,a.length>0&&(i+=" or ")),a.length>0&&(a.length>1?i+=`one of ${Po(a,"or")}`:(a[0].toLowerCase()!==a[0]&&(i+="an "),i+=`${a[0]}`)),i+=`. Received ${yS(r)}`,i},TypeError);wt.ERR_INVALID_MODULE_SPECIFIER=rr("ERR_INVALID_MODULE_SPECIFIER",(e,t,r=void 0)=>`Invalid module "${e}" ${t}${r?` imported from ${r}`:""}`,TypeError);wt.ERR_INVALID_PACKAGE_CONFIG=rr("ERR_INVALID_PACKAGE_CONFIG",(e,t,r)=>`Invalid package config ${e}${t?` while importing ${t}`:""}${r?`. ${r}`:""}`,Error);wt.ERR_INVALID_PACKAGE_TARGET=rr("ERR_INVALID_PACKAGE_TARGET",(e,t,r,i=!1,n=void 0)=>{const s=typeof r=="string"&&!i&&r.length>0&&!r.startsWith("./");return t==="."?(er.ok(i===!1),`Invalid "exports" main target ${JSON.stringify(r)} defined in the package config ${e}package.json${n?` imported from ${n}`:""}${s?'; targets must start with "./"':""}`):`Invalid "${i?"imports":"exports"}" target ${JSON.stringify(r)} defined for '${t}' in the package config ${e}package.json${n?` imported from ${n}`:""}${s?'; targets must start with "./"':""}`},Error);wt.ERR_MODULE_NOT_FOUND=rr("ERR_MODULE_NOT_FOUND",(e,t,r=!1)=>`Cannot find ${r?"module":"package"} '${e}' imported from ${t}`,Error);wt.ERR_NETWORK_IMPORT_DISALLOWED=rr("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error);wt.ERR_PACKAGE_IMPORT_NOT_DEFINED=rr("ERR_PACKAGE_IMPORT_NOT_DEFINED",(e,t,r)=>`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:""} imported from ${r}`,TypeError);wt.ERR_PACKAGE_PATH_NOT_EXPORTED=rr("ERR_PACKAGE_PATH_NOT_EXPORTED",(e,t,r=void 0)=>t==="."?`No "exports" main defined in ${e}package.json${r?` imported from ${r}`:""}`:`Package subpath '${t}' is not defined by "exports" in ${e}package.json${r?` imported from ${r}`:""}`,Error);wt.ERR_UNSUPPORTED_DIR_IMPORT=rr("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error);wt.ERR_UNSUPPORTED_RESOLVE_REQUEST=rr("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError);wt.ERR_UNKNOWN_FILE_EXTENSION=rr("ERR_UNKNOWN_FILE_EXTENSION",(e,t)=>`Unknown file extension "${e}" for ${t}`,TypeError);wt.ERR_INVALID_ARG_VALUE=rr("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let i=Hn.inspect(t);return i.length>128&&(i=`${i.slice(0,128)}...`),`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${i}`},TypeError);function rr(e,t,r){return Id.set(e,t),fS(r,e)}function fS(e,t){return r;function r(...i){const n=Error.stackTraceLimit;Eu()&&(Error.stackTraceLimit=0);const s=new e;Eu()&&(Error.stackTraceLimit=n);const a=mS(t,i,s);return Object.defineProperties(s,{message:{value:a,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),dS(s),s.code=t,s}}function Eu(){try{if(yD.startupSnapshot.isBuildingSnapshot())return!1}catch{}const e=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return e===void 0?Object.isExtensible(Error):uS.call(e,"writable")&&e.writable!==void 0?e.writable:e.set!==void 0}function hS(e){const t=pS+e.name;return Object.defineProperty(e,"name",{value:t}),e}var dS=hS(function(e){const t=Eu();return t&&(tp=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(e),t&&(Error.stackTraceLimit=tp),e});function mS(e,t,r){const i=Id.get(e);if(er.ok(i!==void 0,"expected `message` to be found"),typeof i=="function")return er.ok(i.length<=t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${i.length}).`),Reflect.apply(i,r,t);const n=/%[dfijoOs]/g;let s=0;for(;n.exec(i)!==null;)s++;return er.ok(s===t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${s}).`),t.length===0?i:(t.unshift(i),Reflect.apply(Hn.format,null,t))}function yS(e){if(e==null)return String(e);if(typeof e=="function"&&e.name)return`function ${e.name}`;if(typeof e=="object")return e.constructor&&e.constructor.name?`an instance of ${e.constructor.name}`:`${Hn.inspect(e,{depth:-1})}`;let t=Hn.inspect(e,{colors:!1});return t.length>28&&(t=`${t.slice(0,25)}...`),`type ${typeof e} (${t})`}var bn={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:DS}=wt,rp=new Map;function Nd(e,{base:t,specifier:r}){const i=rp.get(e);if(i)return i;let n;try{n=Pt.readFileSync(at.toNamespacedPath(e),"utf8")}catch(a){const o=a;if(o.code!=="ENOENT")throw o}const s={exists:!1,pjsonPath:e,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(n!==void 0){let a;try{a=JSON.parse(n)}catch(o){const u=o,l=new DS(e,(t?`"${r}" from `:"")+Xe.fileURLToPath(t||r),u.message);throw l.cause=u,l}s.exists=!0,bn.call(a,"name")&&typeof a.name=="string"&&(s.name=a.name),bn.call(a,"main")&&typeof a.main=="string"&&(s.main=a.main),bn.call(a,"exports")&&(s.exports=a.exports),bn.call(a,"imports")&&(s.imports=a.imports),bn.call(a,"type")&&(a.type==="commonjs"||a.type==="module")&&(s.type=a.type)}return rp.set(e,s),s}function nl(e){let t=new URL("package.json",e);for(;!t.pathname.endsWith("node_modules/package.json");){const n=Nd(Xe.fileURLToPath(t),{specifier:e});if(n.exists)return n;const s=t;if(t=new URL("../package.json",t),t.pathname===s.pathname)break}return{pjsonPath:Xe.fileURLToPath(t),exists:!1,type:"none"}}function ip(e){return nl(e).type}var{ERR_UNKNOWN_FILE_EXTENSION:gS}=wt,ES={}.hasOwnProperty,TS={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"};function SS(e){return e&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(e)?"module":e==="application/json"?"json":null}var np={__proto__:null,"data:":bS,"file:":AS,"http:":sp,"https:":sp,"node:"(){return"builtin"}};function bS(e){const{1:t}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e.pathname)||[null,null,null];return SS(t)}function vS(e){const t=e.pathname;let r=t.length;for(;r--;){const i=t.codePointAt(r);if(i===47)return"";if(i===46)return t.codePointAt(r-1)===47?"":t.slice(r)}return""}function AS(e,t,r){const i=vS(e);if(i===".js"){const a=ip(e);return a!=="none"?a:"commonjs"}if(i===""){const a=ip(e);return a==="none"||a==="commonjs"?"commonjs":"module"}const n=TS[i];if(n)return n;if(r)return;const s=Xe.fileURLToPath(e);throw new gS(i,s)}function sp(){}function Od(e,t){const r=e.protocol;return ES.call(np,r)&&np[r](e,t,!0)||null}var{ERR_INVALID_ARG_VALUE:CS}=wt,Bd=Object.freeze(["node","import"]),PS=new Set(Bd);function xS(){return Bd}function FS(){return PS}function kd(e){if(e!==void 0&&e!==xS()){if(!Array.isArray(e))throw new CS("conditions",e,"expected an array");return new Set(e)}return FS()}var Cs=RegExp.prototype[Symbol.replace],{ERR_NETWORK_IMPORT_DISALLOWED:xo,ERR_INVALID_MODULE_SPECIFIER:va,ERR_INVALID_PACKAGE_CONFIG:Ld,ERR_INVALID_PACKAGE_TARGET:_S,ERR_MODULE_NOT_FOUND:sl,ERR_PACKAGE_IMPORT_NOT_DEFINED:wS,ERR_PACKAGE_PATH_NOT_EXPORTED:IS,ERR_UNSUPPORTED_DIR_IMPORT:NS,ERR_UNSUPPORTED_RESOLVE_REQUEST:ap}=wt,Rd={}.hasOwnProperty,op=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,up=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,OS=/^\.|%|\\/,Ps=/\*/g,BS=/%2f|%5c/i,lp=new Set,kS=/[/\\]{2}/;function cp(e,t,r,i,n,s,a){if(Rr.noDeprecation)return;const o=Xe.fileURLToPath(i),u=kS.exec(a?e:t)!==null;Rr.emitWarning(`Use of deprecated ${u?"double slash":"leading or trailing slash matching"} resolving "${e}" for module request "${t}" ${t===r?"":`matched to "${r}" `}in the "${n?"imports":"exports"}" field module resolution of the package at ${o}${s?` imported from ${Xe.fileURLToPath(s)}`:""}.`,"DeprecationWarning","DEP0166")}function pp(e,t,r,i){if(Rr.noDeprecation||Od(e,{parentURL:r.href})!=="module")return;const s=Xe.fileURLToPath(e.href),a=Xe.fileURLToPath(new URL(".",t)),o=Xe.fileURLToPath(r);i?at.resolve(a,i)!==s&&Rr.emitWarning(`Package ${a} has a "main" field set to "${i}", excluding the full filename and extension to the resolved file at "${s.slice(a.length)}", imported from ${o}.
@@ -93,7 +93,7 @@ The range will extend backwards to the start of the first line containing the se
93
93
  `&&(f+=Jd(h.slice(0,f),`
94
94
  `)),h=Aa(0,h,`
95
95
  `,d)}return{formatted:h,cursorOffset:f,comments:c.comments}}function ko(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function Pp(e,t){let{cursorOffset:r,rangeStart:i,rangeEnd:n}=t;return r=ko(e,r,-1),i=ko(e,i,0),n=ko(e,n,e.length),{...t,cursorOffset:r,rangeStart:i,rangeEnd:n}}function bm(e,t){let{cursorOffset:r,rangeStart:i,rangeEnd:n,endOfLine:s}=Pp(e,t);const a=e.charAt(0)===Tm;if(a&&(e=e.slice(1),r--,i--,n--),s==="auto"&&(s=bb(e)),e.includes("\r")){const o=u=>Jd(e.slice(0,Math.max(u,0)),`\r
96
- `);r-=o(r),i-=o(i),n-=o(n),e=Cb(e)}return{hasBOM:a,text:e,options:Pp(e,{...t,cursorOffset:r,rangeStart:i,rangeEnd:n,endOfLine:s})}}async function xp(e,t){const r=await dl(t);return!r.hasPragma||r.hasPragma(e)}async function mA(e,t){var i;const r=await dl(t);return(i=r.hasIgnorePragma)==null?void 0:i.call(r,e)}async function vm(e,t){let{hasBOM:r,text:i,options:n}=bm(e,await yn(t));if(n.rangeStart>=n.rangeEnd&&i!==""||n.requirePragma&&!await xp(i,n)||n.checkIgnorePragma&&await mA(i,n))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let s;return n.rangeStart>0||n.rangeEnd<i.length?s=await dA(i,n):(!n.requirePragma&&n.insertPragma&&n.printer.insertPragma&&!await xp(i,n)&&(i=n.printer.insertPragma(i)),s=await Sm(i,n)),r&&(s.formatted=Tm+s.formatted,s.cursorOffset>=0&&s.cursorOffset++),s}async function yA(e,t,r){const{text:i,options:n}=bm(e,await yn(t)),s=await ss(i,n);return r&&(r.preprocessForPrint&&(s.ast=await Dm(s.ast,n)),r.massage&&(s.ast=rA(s.ast,n))),s}async function DA(e,t){t=await yn(t);const r=await Fa(e,t);return ml(r,t)}async function gA(e,t){const r=kb(e),{formatted:i}=await vm(r,{...t,parser:"__js_expression"});return i}async function EA(e,t){t=await yn(t);const{ast:r}=await ss(e,t);return t.cursorOffset>=0&&(t={...t,...gm(r,t)}),Fa(r,t)}async function TA(e,t){return ml(e,await yn(t))}var Am={};Ta(Am,{CATEGORY_CONFIG:()=>SA,CATEGORY_EDITOR:()=>bA,CATEGORY_FORMAT:()=>vA,CATEGORY_GLOBAL:()=>PA,CATEGORY_OTHER:()=>AA,CATEGORY_OUTPUT:()=>CA,CATEGORY_SPECIAL:()=>xA});var SA="Config",bA="Editor",vA="Format",AA="Other",CA="Output",PA="Global",xA="Special",FA=[{name:"CSS",type:"markup",aceMode:"css",extensions:[".css",".wxss"],tmScope:"source.css",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["css"],vscodeLanguageIds:["css"],linguistLanguageId:50},{name:"PostCSS",type:"markup",aceMode:"text",extensions:[".pcss",".postcss"],tmScope:"source.postcss",group:"CSS",parsers:["css"],vscodeLanguageIds:["postcss"],linguistLanguageId:262764437},{name:"Less",type:"markup",aceMode:"less",extensions:[".less"],tmScope:"source.css.less",aliases:["less-css"],codemirrorMode:"css",codemirrorMimeType:"text/x-less",parsers:["less"],vscodeLanguageIds:["less"],linguistLanguageId:198},{name:"SCSS",type:"markup",aceMode:"scss",extensions:[".scss"],tmScope:"source.css.scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",parsers:["scss"],vscodeLanguageIds:["scss"],linguistLanguageId:329}],Vt={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},_A={singleQuote:Vt.singleQuote},wA=_A,IA=[{name:"GraphQL",type:"data",aceMode:"graphqlschema",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",parsers:["graphql"],vscodeLanguageIds:["graphql"],linguistLanguageId:139}],NA={bracketSpacing:Vt.bracketSpacing},OA=NA,BA=[{name:"Handlebars",type:"markup",aceMode:"handlebars",extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aliases:["hbs","htmlbars"],parsers:["glimmer"],vscodeLanguageIds:["handlebars"],linguistLanguageId:155}],kA=[{name:"Angular",type:"markup",aceMode:"html",extensions:[".component.html"],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["angular"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"HTML",type:"markup",aceMode:"html",extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["html"],vscodeLanguageIds:["html"],linguistLanguageId:146},{name:"Lightning Web Components",type:"markup",aceMode:"html",extensions:[],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"MJML",type:"markup",aceMode:"html",extensions:[".mjml"],tmScope:"text.mjml.basic",aliases:["MJML","mjml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["mjml"],filenames:[],vscodeLanguageIds:["mjml"],linguistLanguageId:146},{name:"Vue",type:"markup",aceMode:"vue",extensions:[".vue"],tmScope:"source.vue",codemirrorMode:"vue",codemirrorMimeType:"text/x-vue",parsers:["vue"],vscodeLanguageIds:["vue"],linguistLanguageId:391}],Fp="HTML",LA={bracketSameLine:Vt.bracketSameLine,htmlWhitespaceSensitivity:{category:Fp,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:Vt.singleAttributePerLine,vueIndentScriptAndStyle:{category:Fp,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},RA=LA,MA=[{name:"JavaScript",type:"programming",aceMode:"javascript",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],filenames:["Jakefile","start.frag","end.frag"],tmScope:"source.js",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],linguistLanguageId:183},{name:"Flow",type:"programming",aceMode:"javascript",extensions:[".js.flow"],filenames:[],tmScope:"source.js",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",aceMode:"javascript",extensions:[".jsx"],filenames:void 0,tmScope:"source.js.jsx",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",aceMode:"typescript",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",aceMode:"tsx",extensions:[".tsx"],tmScope:"source.tsx",codemirrorMode:"jsx",codemirrorMimeType:"text/typescript-jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}],Xr="JavaScript",jA={arrowParens:{category:Xr,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:Vt.bracketSameLine,objectWrap:Vt.objectWrap,bracketSpacing:Vt.bracketSpacing,jsxBracketSameLine:{category:Xr,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:Xr,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:Xr,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:Xr,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:Vt.singleQuote,jsxSingleQuote:{category:Xr,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:Xr,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:Xr,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:Vt.singleAttributePerLine},UA=jA,$A=[{name:"JSON.stringify",type:"data",aceMode:"json",extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",aceMode:"json",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",aceMode:"javascript",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],tmScope:"source.json.comments",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",aceMode:"json5",extensions:[".json5"],tmScope:"source.js",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}],VA=[{name:"Markdown",type:"prose",aceMode:"markdown",extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,parsers:["markdown"],vscodeLanguageIds:["markdown"],linguistLanguageId:222},{name:"MDX",type:"prose",aceMode:"markdown",extensions:[".mdx"],filenames:[],tmScope:"text.md",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,parsers:["mdx"],vscodeLanguageIds:["mdx"],linguistLanguageId:222}],KA={proseWrap:Vt.proseWrap,singleQuote:Vt.singleQuote},qA=KA,WA=[{name:"YAML",type:"data",aceMode:"yaml",extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".clangd",".gemrc","CITATION.cff","glide.lock","pixi.lock",".prettierrc",".stylelintrc",".lintstagedrc"],tmScope:"source.yaml",aliases:["yml"],codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","dockercompose","github-actions-workflow","home-assistant"],linguistLanguageId:407}],HA={bracketSpacing:Vt.bracketSpacing,singleQuote:Vt.singleQuote,proseWrap:Vt.proseWrap},XA=HA;function Cm(e){const t=Object.create(null),r=Object.create(null);for(const{importPlugin:i,parsers:n=[],printers:s=[]}of e){const a=async()=>{const o=await i();return Object.assign(t,o.parsers),Object.assign(r,o.printers),o};for(const o of n)t[o]=async()=>(await a()).parsers[o];for(const o of s)r[o]=async()=>(await a()).printers[o]}return{parsers:t,printers:r}}var JA=Cm([{importPlugin:()=>Promise.resolve().then(()=>require("./deps/estree-_Gcr3virjH-aj6etbdw2.js")),printers:["estree","estree-json"]}]),YA={...wA,...OA,...RA,...UA,...qA,...XA},GA=[...FA,...IA,...BA,...kA,...MA,...$A,...VA,...WA],{parsers:zA,printers:QA}=Cm([{importPlugin:()=>Promise.resolve().then(()=>require("./deps/acorn-jU-39Pbw5W-pyzr6thqf.js")),parsers:["acorn","espree"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/angular-eXKcfordor-gjar1bk5h.js")),parsers:["__ng_action","__ng_binding","__ng_interpolation","__ng_directive"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/babel-QODt_XJZCU-bsxnxqtkc.js")),parsers:["babel","babel-flow","babel-ts","__js_expression","__ts_expression","__vue_expression","__vue_ts_expression","__vue_event_binding","__vue_ts_event_binding","__babel_estree","json","json5","jsonc","json-stringify"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/flow-VkrRJr6lFd-nzn1st4yq.js")),parsers:["flow"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/glimmer-I6jyK4xw2I-18u5lqd62.js")),parsers:["glimmer"],printers:["glimmer"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/graphql-F7JRnTC996-e5p1nm12p.js")),parsers:["graphql"],printers:["graphql"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/html-C-ZYESkdqr-8z224ckkh.js")),parsers:["html","angular","vue","lwc","mjml"],printers:["html"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/markdown-4m9fGqwyBD-7ioemazbo.js")),parsers:["markdown","mdx","remark"],printers:["mdast"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/meriyah-2XmgupY1jB-7njqx9g3a.js")),parsers:["meriyah"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/postcss-UtIjNac23s-llf22drl3.js")),parsers:["css","less","scss"],printers:["postcss"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/typescript-7W94NRN5-v-vmk97jc6x.js")),parsers:["typescript"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/yaml-GTMY6ek0xu-pown9flit.js")),parsers:["yaml"],printers:["yaml"]}]),ZA=[JA,{options:YA,languages:GA,parsers:zA,printers:QA}];function eC(){return ZA}var Pm=eC;function tC(e,t){return $d(e,at.join(t,"noop.js"))}var rC=tC;async function iC(e,t){if(dn(e))return import(e);if(at.isAbsolute(e))return import(Xe.pathToFileURL(e).href);try{return await import(Xe.pathToFileURL(at.resolve(e)).href)}catch{return rC(e,t)}}async function nC(e,t){const r=await iC(e,t),i=r.default??r;return{name:dn(e)?mn(e):e,...i}}var ta=new Map;function sC(e){if(typeof e!="string"&&!(e instanceof URL))return e;const t=process.cwd(),r=JSON.stringify({name:e,cwd:t});return ta.has(r)||ta.set(r,nC(e,t)),ta.get(r)}function aC(){ta.clear()}function oC(e=[]){return Promise.all(e.map(t=>sC(t)))}var xm=oC,uC=lr(Zg()),lC=at.sep==="\\"?e=>Aa(0,e,"\\","/"):e=>e;function cC(e,t){const r=mn(t),i=dn(e)?Xe.fileURLToPath(e):at.resolve(e);return at.relative(r?at.dirname(r):process.cwd(),i)}async function pC(e,t){let r="";if(e&&(r+=await rs(e)??""),t||(r+=`
96
+ `);r-=o(r),i-=o(i),n-=o(n),e=Cb(e)}return{hasBOM:a,text:e,options:Pp(e,{...t,cursorOffset:r,rangeStart:i,rangeEnd:n,endOfLine:s})}}async function xp(e,t){const r=await dl(t);return!r.hasPragma||r.hasPragma(e)}async function mA(e,t){var i;const r=await dl(t);return(i=r.hasIgnorePragma)==null?void 0:i.call(r,e)}async function vm(e,t){let{hasBOM:r,text:i,options:n}=bm(e,await yn(t));if(n.rangeStart>=n.rangeEnd&&i!==""||n.requirePragma&&!await xp(i,n)||n.checkIgnorePragma&&await mA(i,n))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let s;return n.rangeStart>0||n.rangeEnd<i.length?s=await dA(i,n):(!n.requirePragma&&n.insertPragma&&n.printer.insertPragma&&!await xp(i,n)&&(i=n.printer.insertPragma(i)),s=await Sm(i,n)),r&&(s.formatted=Tm+s.formatted,s.cursorOffset>=0&&s.cursorOffset++),s}async function yA(e,t,r){const{text:i,options:n}=bm(e,await yn(t)),s=await ss(i,n);return r&&(r.preprocessForPrint&&(s.ast=await Dm(s.ast,n)),r.massage&&(s.ast=rA(s.ast,n))),s}async function DA(e,t){t=await yn(t);const r=await Fa(e,t);return ml(r,t)}async function gA(e,t){const r=kb(e),{formatted:i}=await vm(r,{...t,parser:"__js_expression"});return i}async function EA(e,t){t=await yn(t);const{ast:r}=await ss(e,t);return t.cursorOffset>=0&&(t={...t,...gm(r,t)}),Fa(r,t)}async function TA(e,t){return ml(e,await yn(t))}var Am={};Ta(Am,{CATEGORY_CONFIG:()=>SA,CATEGORY_EDITOR:()=>bA,CATEGORY_FORMAT:()=>vA,CATEGORY_GLOBAL:()=>PA,CATEGORY_OTHER:()=>AA,CATEGORY_OUTPUT:()=>CA,CATEGORY_SPECIAL:()=>xA});var SA="Config",bA="Editor",vA="Format",AA="Other",CA="Output",PA="Global",xA="Special",FA=[{name:"CSS",type:"markup",aceMode:"css",extensions:[".css",".wxss"],tmScope:"source.css",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["css"],vscodeLanguageIds:["css"],linguistLanguageId:50},{name:"PostCSS",type:"markup",aceMode:"text",extensions:[".pcss",".postcss"],tmScope:"source.postcss",group:"CSS",parsers:["css"],vscodeLanguageIds:["postcss"],linguistLanguageId:262764437},{name:"Less",type:"markup",aceMode:"less",extensions:[".less"],tmScope:"source.css.less",aliases:["less-css"],codemirrorMode:"css",codemirrorMimeType:"text/x-less",parsers:["less"],vscodeLanguageIds:["less"],linguistLanguageId:198},{name:"SCSS",type:"markup",aceMode:"scss",extensions:[".scss"],tmScope:"source.css.scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",parsers:["scss"],vscodeLanguageIds:["scss"],linguistLanguageId:329}],Vt={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},_A={singleQuote:Vt.singleQuote},wA=_A,IA=[{name:"GraphQL",type:"data",aceMode:"graphqlschema",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",parsers:["graphql"],vscodeLanguageIds:["graphql"],linguistLanguageId:139}],NA={bracketSpacing:Vt.bracketSpacing},OA=NA,BA=[{name:"Handlebars",type:"markup",aceMode:"handlebars",extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aliases:["hbs","htmlbars"],parsers:["glimmer"],vscodeLanguageIds:["handlebars"],linguistLanguageId:155}],kA=[{name:"Angular",type:"markup",aceMode:"html",extensions:[".component.html"],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["angular"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"HTML",type:"markup",aceMode:"html",extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["html"],vscodeLanguageIds:["html"],linguistLanguageId:146},{name:"Lightning Web Components",type:"markup",aceMode:"html",extensions:[],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"MJML",type:"markup",aceMode:"html",extensions:[".mjml"],tmScope:"text.mjml.basic",aliases:["MJML","mjml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["mjml"],filenames:[],vscodeLanguageIds:["mjml"],linguistLanguageId:146},{name:"Vue",type:"markup",aceMode:"vue",extensions:[".vue"],tmScope:"source.vue",codemirrorMode:"vue",codemirrorMimeType:"text/x-vue",parsers:["vue"],vscodeLanguageIds:["vue"],linguistLanguageId:391}],Fp="HTML",LA={bracketSameLine:Vt.bracketSameLine,htmlWhitespaceSensitivity:{category:Fp,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:Vt.singleAttributePerLine,vueIndentScriptAndStyle:{category:Fp,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},RA=LA,MA=[{name:"JavaScript",type:"programming",aceMode:"javascript",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],filenames:["Jakefile","start.frag","end.frag"],tmScope:"source.js",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],linguistLanguageId:183},{name:"Flow",type:"programming",aceMode:"javascript",extensions:[".js.flow"],filenames:[],tmScope:"source.js",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",aceMode:"javascript",extensions:[".jsx"],filenames:void 0,tmScope:"source.js.jsx",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",aceMode:"typescript",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",aceMode:"tsx",extensions:[".tsx"],tmScope:"source.tsx",codemirrorMode:"jsx",codemirrorMimeType:"text/typescript-jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}],Xr="JavaScript",jA={arrowParens:{category:Xr,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:Vt.bracketSameLine,objectWrap:Vt.objectWrap,bracketSpacing:Vt.bracketSpacing,jsxBracketSameLine:{category:Xr,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:Xr,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:Xr,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:Xr,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:Vt.singleQuote,jsxSingleQuote:{category:Xr,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:Xr,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:Xr,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:Vt.singleAttributePerLine},UA=jA,$A=[{name:"JSON.stringify",type:"data",aceMode:"json",extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",aceMode:"json",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",aceMode:"javascript",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],tmScope:"source.json.comments",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",aceMode:"json5",extensions:[".json5"],tmScope:"source.js",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}],VA=[{name:"Markdown",type:"prose",aceMode:"markdown",extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,parsers:["markdown"],vscodeLanguageIds:["markdown"],linguistLanguageId:222},{name:"MDX",type:"prose",aceMode:"markdown",extensions:[".mdx"],filenames:[],tmScope:"text.md",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,parsers:["mdx"],vscodeLanguageIds:["mdx"],linguistLanguageId:222}],KA={proseWrap:Vt.proseWrap,singleQuote:Vt.singleQuote},qA=KA,WA=[{name:"YAML",type:"data",aceMode:"yaml",extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".clangd",".gemrc","CITATION.cff","glide.lock","pixi.lock",".prettierrc",".stylelintrc",".lintstagedrc"],tmScope:"source.yaml",aliases:["yml"],codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","dockercompose","github-actions-workflow","home-assistant"],linguistLanguageId:407}],HA={bracketSpacing:Vt.bracketSpacing,singleQuote:Vt.singleQuote,proseWrap:Vt.proseWrap},XA=HA;function Cm(e){const t=Object.create(null),r=Object.create(null);for(const{importPlugin:i,parsers:n=[],printers:s=[]}of e){const a=async()=>{const o=await i();return Object.assign(t,o.parsers),Object.assign(r,o.printers),o};for(const o of n)t[o]=async()=>(await a()).parsers[o];for(const o of s)r[o]=async()=>(await a()).printers[o]}return{parsers:t,printers:r}}var JA=Cm([{importPlugin:()=>Promise.resolve().then(()=>require("./deps/estree-_Gcr3virjH-6gxzhbchv.js")),printers:["estree","estree-json"]}]),YA={...wA,...OA,...RA,...UA,...qA,...XA},GA=[...FA,...IA,...BA,...kA,...MA,...$A,...VA,...WA],{parsers:zA,printers:QA}=Cm([{importPlugin:()=>Promise.resolve().then(()=>require("./deps/acorn-jU-39Pbw5W-zn469rpvq.js")),parsers:["acorn","espree"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/angular-eXKcfordor-0jy8yhjxm.js")),parsers:["__ng_action","__ng_binding","__ng_interpolation","__ng_directive"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/babel-QODt_XJZCU-o3ncoehtd.js")),parsers:["babel","babel-flow","babel-ts","__js_expression","__ts_expression","__vue_expression","__vue_ts_expression","__vue_event_binding","__vue_ts_event_binding","__babel_estree","json","json5","jsonc","json-stringify"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/flow-VkrRJr6lFd-zhic86jlp.js")),parsers:["flow"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/glimmer-I6jyK4xw2I-gr65x71rm.js")),parsers:["glimmer"],printers:["glimmer"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/graphql-F7JRnTC996-2ojrutaeh.js")),parsers:["graphql"],printers:["graphql"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/html-C-ZYESkdqr-a7gr3w4g3.js")),parsers:["html","angular","vue","lwc","mjml"],printers:["html"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/markdown-4m9fGqwyBD-eccsz36ow.js")),parsers:["markdown","mdx","remark"],printers:["mdast"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/meriyah-2XmgupY1jB-cng1d0k43.js")),parsers:["meriyah"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/postcss-UtIjNac23s-tn25mdiq5.js")),parsers:["css","less","scss"],printers:["postcss"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/typescript-7W94NRN5-v-f911biyrt.js")),parsers:["typescript"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/yaml-GTMY6ek0xu-yjoiq2gej.js")),parsers:["yaml"],printers:["yaml"]}]),ZA=[JA,{options:YA,languages:GA,parsers:zA,printers:QA}];function eC(){return ZA}var Pm=eC;function tC(e,t){return $d(e,at.join(t,"noop.js"))}var rC=tC;async function iC(e,t){if(dn(e))return import(e);if(at.isAbsolute(e))return import(Xe.pathToFileURL(e).href);try{return await import(Xe.pathToFileURL(at.resolve(e)).href)}catch{return rC(e,t)}}async function nC(e,t){const r=await iC(e,t),i=r.default??r;return{name:dn(e)?mn(e):e,...i}}var ta=new Map;function sC(e){if(typeof e!="string"&&!(e instanceof URL))return e;const t=process.cwd(),r=JSON.stringify({name:e,cwd:t});return ta.has(r)||ta.set(r,nC(e,t)),ta.get(r)}function aC(){ta.clear()}function oC(e=[]){return Promise.all(e.map(t=>sC(t)))}var xm=oC,uC=lr(Zg()),lC=at.sep==="\\"?e=>Aa(0,e,"\\","/"):e=>e;function cC(e,t){const r=mn(t),i=dn(e)?Xe.fileURLToPath(e):at.resolve(e);return at.relative(r?at.dirname(r):process.cwd(),i)}async function pC(e,t){let r="";if(e&&(r+=await rs(e)??""),t||(r+=`
97
97
  node_modules`),!r)return;const i=(0,uC.default)({allowRelativePaths:!0}).add(r);return n=>i.checkIgnore(lC(cC(n,e))).ignored}async function Fm(e,t){e.length===0&&!t&&(e=[void 0]);const r=(await Promise.all(e.map(i=>pC(i,t)))).filter(Boolean);return i=>r.some(n=>n(i))}async function fC(e,t){const{ignorePath:r,withNodeModules:i}=t;return(await Fm(r,i))(e)}function hC(e,t){return t=new Set(t),Object.fromEntries(Object.entries(e).filter(([r])=>!t.has(r)))}var dC=hC;async function mC(e,t={}){if(typeof e!="string"&&!(e instanceof URL))throw new TypeError(`expect \`file\` to be a string or URL, got \`${typeof e}\``);let{ignorePath:r,withNodeModules:i}=t;Array.isArray(r)||(r=[r]);const n=await fC(e,{ignorePath:r,withNodeModules:i});let s;return n||(s=t.parser??await yC(e,t)),{ignored:n,inferredParser:s??null}}async function yC(e,t){let r;if(t.resolveConfig!==!1&&(r=await Kd(e,{editorconfig:!1})),r!=null&&r.parser)return r.parser;let i=t.plugins??(r==null?void 0:r.plugins)??[];return i=(await Promise.all([Pm(),xm(i)])).flat(),xa({plugins:i},{physicalFile:e})}var DC=mC,gC="3.8.1",_m={};Ta(_m,{addDanglingComment:()=>wi,addLeadingComment:()=>$n,addTrailingComment:()=>Vn,getAlignmentSize:()=>ul,getIndentSize:()=>AC,getMaxContinuousCount:()=>xC,getNextNonSpaceNonCommentCharacter:()=>_C,getNextNonSpaceNonCommentCharacterIndex:()=>UC,getPreferredQuote:()=>BC,getStringWidth:()=>Kb,hasNewline:()=>ii,hasNewlineInRange:()=>LC,hasSpaces:()=>MC,isNextLineEmpty:()=>WC,isNextLineEmptyAfterIndex:()=>El,isPreviousLineEmpty:()=>VC,makeString:()=>qC,skip:()=>ns,skipEverythingButNewLine:()=>em,skipInlineComment:()=>yl,skipNewline:()=>Li,skipSpaces:()=>ui,skipToLineEnd:()=>Zd,skipTrailingComment:()=>Dl,skipWhitespace:()=>Jb});function EC(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r<e.length;++r)if(e.charAt(r)==="*"&&e.charAt(r+1)==="/")return r+2}return t}var yl=EC;function TC(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?em(e,t):t}var Dl=TC;function SC(e,t){let r=null,i=t;for(;i!==r;)r=i,i=ui(e,i),i=yl(e,i),i=Dl(e,i),i=Li(e,i);return i}var gl=SC;function bC(e,t){let r=null,i=t;for(;i!==r;)r=i,i=Zd(e,i),i=yl(e,i),i=ui(e,i);return i=Dl(e,i),i=Li(e,i),i!==!1&&ii(e,i)}var El=bC;function vC(e,t){const r=e.lastIndexOf(`
98
98
  `);return r===-1?0:ul(e.slice(r+1).match(/^[\t ]*/u)[0],t)}var AC=vC;function CC(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function PC(e,t){let r=e.matchAll(new RegExp(`(?:${CC(t)})+`,"gu"));return r.reduce||(r=[...r]),r.reduce((i,[n])=>Math.max(i,n.length),0)/t.length}var xC=PC;function FC(e,t){const r=gl(e,t);return r===!1?"":e.charAt(r)}var _C=FC,wm="'",wC='"',Im=Object.freeze({character:wm,codePoint:39}),Nm=Object.freeze({character:wC,codePoint:34}),IC=Object.freeze({preferred:Im,alternate:Nm}),NC=Object.freeze({preferred:Nm,alternate:Im});function OC(e,t){const{preferred:r,alternate:i}=t===!0||t===wm?IC:NC,{length:n}=e;let s=0,a=0;for(let o=0;o<n;o++){const u=e.charCodeAt(o);u===r.codePoint?s++:u===i.codePoint&&a++}return(s>a?i:r).character}var BC=OC;function kC(e,t,r){for(let i=t;i<r;++i)if(e.charAt(i)===`
99
99
  `)return!0;return!1}var LC=kC;function RC(e,t,r={}){return ui(e,r.backwards?t-1:t,r)!==t}var MC=RC;function jC(e,t,r){return gl(e,r(t))}function UC(e,t){return arguments.length===2||typeof t=="number"?gl(e,t):jC(...arguments)}function $C(e,t,r){return pl(e,r(t))}function VC(e,t){return arguments.length===2||typeof t=="number"?pl(e,t):$C(...arguments)}function KC(e,t,r){return El(e,r(t))}function qC(e,t,r){const i=t==='"'?"'":'"',s=Aa(0,e,/\\(.)|(["'])/gsu,(a,o,u)=>o===i?o:u===t?"\\"+u:u||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(o)?o:"\\"+o));return t+s+t}function WC(e,t){return arguments.length===2||typeof t=="number"?El(e,t):KC(...arguments)}function ti(e,t=1){return async(...r)=>{const i=r[t]??{},{plugins:n=[]}=i;return r[t]={...i,plugins:(await Promise.all([Pm(),xm(n)])).flat()},e(...r)}}var Om=ti(vm);async function Bm(e,t){const{formatted:r}=await Om(e,{...t,cursorOffset:-1});return r}async function HC(e,t){return await Bm(e,t)===e}async function XC(){cb(),aC()}var JC=ti(fl,0),YC=ti((e,t)=>xa(t,{physicalFile:e})),GC={errors:dd,optionCategories:Am,createIsIgnoredFunction:Fm,formatOptionsHiddenDefaults:Su,normalizeOptions:cm,getSupportInfoWithoutPlugins:fl,normalizeOptionSettings:um,inferParser:(e,t)=>Promise.resolve((t==null?void 0:t.parser)??YC(e,t)),vnopts:{ChoiceSchema:hd,apiDescriptor:Ni},fastGlob:uE.default,createTwoFilesPatch:aE,picocolors:lE.default,closetLevenshteinMatch:od,utilities:{omit:dC,createMockable:md}},zC={parse:ti(yA),formatAST:ti(DA),formatDoc:ti(gA),printToDoc:ti(EA),printDocToString:ti(TA),mockable:yd},Dn={};Object.defineProperty(Dn,"__esModule",{value:!0});function QC(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}class ni{constructor(t,r,i){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=r,this.index=i}}class pa{constructor(t,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=r}}function Mt(e,t){const{line:r,column:i,index:n}=e;return new ni(r,i+t,n+t)}const _p="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var ZC={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:_p},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:_p}};const wp={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},ra=e=>e.type==="UpdateExpression"?wp.UpdateExpression[`${e.prefix}`]:wp[e.type];var e1={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.
@@ -17,7 +17,7 @@ import kr from "process";
17
17
  import Lr, { ok as wD, strictEqual as Oc } from "assert";
18
18
  import ID from "v8";
19
19
  import ND, { format as OD, inspect as ou } from "util";
20
- import { c as on, g as BD, u as kD } from "./deps/soon-id-t25L9qRGGZ-ho0x5m1c3.js";
20
+ import { c as on, g as BD, u as kD } from "./deps/soon-id-t25L9qRGGZ-1p453zvsh.js";
21
21
  import Bh from "tty";
22
22
  import LD from "os";
23
23
  import { createHash as RD } from "crypto";
@@ -9103,7 +9103,7 @@ async function Nd(e) {
9103
9103
  var vo;
9104
9104
  async function Js(e) {
9105
9105
  const t = await es(e);
9106
- vo || ({ __parsePrettierYamlConfig: vo } = await import("./deps/yaml-GTMY6ek0xu-zrnmxlhi1.js"));
9106
+ vo || ({ __parsePrettierYamlConfig: vo } = await import("./deps/yaml-GTMY6ek0xu-yiuaxdogf.js"));
9107
9107
  try {
9108
9108
  return vo(t);
9109
9109
  } catch (r) {
@@ -13419,7 +13419,7 @@ function Pm(e) {
13419
13419
  }
13420
13420
  var hC = Pm([
13421
13421
  {
13422
- importPlugin: () => import("./deps/estree-_Gcr3virjH-iw6fl1iik.js"),
13422
+ importPlugin: () => import("./deps/estree-_Gcr3virjH-2pcbe2o5i.js"),
13423
13423
  printers: ["estree", "estree-json"]
13424
13424
  }
13425
13425
  ]), dC = {
@@ -13440,11 +13440,11 @@ var hC = Pm([
13440
13440
  ...cC
13441
13441
  ], { parsers: yC, printers: DC } = Pm([
13442
13442
  {
13443
- importPlugin: () => import("./deps/acorn-jU-39Pbw5W-tlyikqxxb.js"),
13443
+ importPlugin: () => import("./deps/acorn-jU-39Pbw5W-isnwge0yi.js"),
13444
13444
  parsers: ["acorn", "espree"]
13445
13445
  },
13446
13446
  {
13447
- importPlugin: () => import("./deps/angular-eXKcfordor-8f5xxksmt.js"),
13447
+ importPlugin: () => import("./deps/angular-eXKcfordor-ien44f4id.js"),
13448
13448
  parsers: [
13449
13449
  "__ng_action",
13450
13450
  "__ng_binding",
@@ -13453,7 +13453,7 @@ var hC = Pm([
13453
13453
  ]
13454
13454
  },
13455
13455
  {
13456
- importPlugin: () => import("./deps/babel-QODt_XJZCU-aea7wd9s9.js"),
13456
+ importPlugin: () => import("./deps/babel-QODt_XJZCU-3c9simfys.js"),
13457
13457
  parsers: [
13458
13458
  "babel",
13459
13459
  "babel-flow",
@@ -13472,44 +13472,44 @@ var hC = Pm([
13472
13472
  ]
13473
13473
  },
13474
13474
  {
13475
- importPlugin: () => import("./deps/flow-VkrRJr6lFd-frj2khjn9.js"),
13475
+ importPlugin: () => import("./deps/flow-VkrRJr6lFd-wvbkzyw6a.js"),
13476
13476
  parsers: ["flow"]
13477
13477
  },
13478
13478
  {
13479
- importPlugin: () => import("./deps/glimmer-I6jyK4xw2I-769lz4sr2.js"),
13479
+ importPlugin: () => import("./deps/glimmer-I6jyK4xw2I-x8v4bda86.js"),
13480
13480
  parsers: ["glimmer"],
13481
13481
  printers: ["glimmer"]
13482
13482
  },
13483
13483
  {
13484
- importPlugin: () => import("./deps/graphql-F7JRnTC996-ayvu1usbu.js"),
13484
+ importPlugin: () => import("./deps/graphql-F7JRnTC996-0btmgp8pk.js"),
13485
13485
  parsers: ["graphql"],
13486
13486
  printers: ["graphql"]
13487
13487
  },
13488
13488
  {
13489
- importPlugin: () => import("./deps/html-C-ZYESkdqr-11a9koibr.js"),
13489
+ importPlugin: () => import("./deps/html-C-ZYESkdqr-3ibhq96kt.js"),
13490
13490
  parsers: ["html", "angular", "vue", "lwc", "mjml"],
13491
13491
  printers: ["html"]
13492
13492
  },
13493
13493
  {
13494
- importPlugin: () => import("./deps/markdown-4m9fGqwyBD-cxujxs2rc.js"),
13494
+ importPlugin: () => import("./deps/markdown-4m9fGqwyBD-lyymvhror.js"),
13495
13495
  parsers: ["markdown", "mdx", "remark"],
13496
13496
  printers: ["mdast"]
13497
13497
  },
13498
13498
  {
13499
- importPlugin: () => import("./deps/meriyah-2XmgupY1jB-k4r4wqa1m.js"),
13499
+ importPlugin: () => import("./deps/meriyah-2XmgupY1jB-d2axxybdr.js"),
13500
13500
  parsers: ["meriyah"]
13501
13501
  },
13502
13502
  {
13503
- importPlugin: () => import("./deps/postcss-UtIjNac23s-7atpp9bv0.js"),
13503
+ importPlugin: () => import("./deps/postcss-UtIjNac23s-diapgrdxr.js"),
13504
13504
  parsers: ["css", "less", "scss"],
13505
13505
  printers: ["postcss"]
13506
13506
  },
13507
13507
  {
13508
- importPlugin: () => import("./deps/typescript-7W94NRN5-v-dp5rdx11f.js"),
13508
+ importPlugin: () => import("./deps/typescript-7W94NRN5-v-lpn9x54xj.js"),
13509
13509
  parsers: ["typescript"]
13510
13510
  },
13511
13511
  {
13512
- importPlugin: () => import("./deps/yaml-GTMY6ek0xu-zrnmxlhi1.js"),
13512
+ importPlugin: () => import("./deps/yaml-GTMY6ek0xu-yiuaxdogf.js"),
13513
13513
  parsers: ["yaml"],
13514
13514
  printers: ["yaml"]
13515
13515
  }
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Pe=require("fs"),F=require("path"),Mt=require("./deps/soon-id-t25L9qRGGZ-zb70pi9of.js"),It=require("os"),Ur=require("util"),Qe=require("stream"),Bn=require("events"),jn=require("crypto");var V={},j={},Se={};Object.defineProperty(Se,"__esModule",{value:!0});Se.splitWhen=Se.flatten=void 0;function Gn(t){return t.reduce((e,r)=>[].concat(e,r),[])}Se.flatten=Gn;function Un(t,e){const r=[[]];let n=0;for(const s of t)e(s)?(n++,r[n]=[]):r[n].push(s);return r}Se.splitWhen=Un;var Ye={};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.isEnoentCodeError=void 0;function Wn(t){return t.code==="ENOENT"}Ye.isEnoentCodeError=Wn;var Xe={};Object.defineProperty(Xe,"__esModule",{value:!0});Xe.createDirentFromStats=void 0;let qn=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function Vn(t,e){return new qn(t,e)}Xe.createDirentFromStats=Vn;var U={};Object.defineProperty(U,"__esModule",{value:!0});U.convertPosixPathToPattern=U.convertWindowsPathToPattern=U.convertPathToPattern=U.escapePosixPath=U.escapeWindowsPath=U.escape=U.removeLeadingDotSegment=U.makeAbsolute=U.unixify=void 0;const Kn=It,Qn=F,Wr=Kn.platform()==="win32",Yn=2,Xn=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,Zn=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,zn=/^\\\\([.?])/,Jn=/\\(?![!()+@[\]{}])/g;function es(t){return t.replace(/\\/g,"/")}U.unixify=es;function ts(t,e){return Qn.resolve(t,e)}U.makeAbsolute=ts;function rs(t){if(t.charAt(0)==="."){const e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(Yn)}return t}U.removeLeadingDotSegment=rs;U.escape=Wr?Ht:Nt;function Ht(t){return t.replace(Zn,"\\$2")}U.escapeWindowsPath=Ht;function Nt(t){return t.replace(Xn,"\\$2")}U.escapePosixPath=Nt;U.convertPathToPattern=Wr?qr:Vr;function qr(t){return Ht(t).replace(zn,"//$1").replace(Jn,"/")}U.convertWindowsPathToPattern=qr;function Vr(t){return Nt(t)}U.convertPosixPathToPattern=Vr;var A={};/*!
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Pe=require("fs"),F=require("path"),Mt=require("./deps/soon-id-t25L9qRGGZ-l3h6p65r6.js"),It=require("os"),Ur=require("util"),Qe=require("stream"),Bn=require("events"),jn=require("crypto");var V={},j={},Se={};Object.defineProperty(Se,"__esModule",{value:!0});Se.splitWhen=Se.flatten=void 0;function Gn(t){return t.reduce((e,r)=>[].concat(e,r),[])}Se.flatten=Gn;function Un(t,e){const r=[[]];let n=0;for(const s of t)e(s)?(n++,r[n]=[]):r[n].push(s);return r}Se.splitWhen=Un;var Ye={};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.isEnoentCodeError=void 0;function Wn(t){return t.code==="ENOENT"}Ye.isEnoentCodeError=Wn;var Xe={};Object.defineProperty(Xe,"__esModule",{value:!0});Xe.createDirentFromStats=void 0;let qn=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function Vn(t,e){return new qn(t,e)}Xe.createDirentFromStats=Vn;var U={};Object.defineProperty(U,"__esModule",{value:!0});U.convertPosixPathToPattern=U.convertWindowsPathToPattern=U.convertPathToPattern=U.escapePosixPath=U.escapeWindowsPath=U.escape=U.removeLeadingDotSegment=U.makeAbsolute=U.unixify=void 0;const Kn=It,Qn=F,Wr=Kn.platform()==="win32",Yn=2,Xn=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,Zn=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,zn=/^\\\\([.?])/,Jn=/\\(?![!()+@[\]{}])/g;function es(t){return t.replace(/\\/g,"/")}U.unixify=es;function ts(t,e){return Qn.resolve(t,e)}U.makeAbsolute=ts;function rs(t){if(t.charAt(0)==="."){const e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(Yn)}return t}U.removeLeadingDotSegment=rs;U.escape=Wr?Ht:Nt;function Ht(t){return t.replace(Zn,"\\$2")}U.escapeWindowsPath=Ht;function Nt(t){return t.replace(Xn,"\\$2")}U.escapePosixPath=Nt;U.convertPathToPattern=Wr?qr:Vr;function qr(t){return Ht(t).replace(zn,"//$1").replace(Jn,"/")}U.convertWindowsPathToPattern=qr;function Vr(t){return Nt(t)}U.convertPosixPathToPattern=Vr;var A={};/*!
2
2
  * is-extglob <https://github.com/jonschlinkert/is-extglob>
3
3
  *
4
4
  * Copyright (c) 2014-2016, Jon Schlinkert.
@@ -1,6 +1,6 @@
1
1
  import Dt, { existsSync as Fn, rmSync as Bn } from "fs";
2
2
  import F from "path";
3
- import { c as jn, g as Gn, u as Un } from "./deps/soon-id-t25L9qRGGZ-ho0x5m1c3.js";
3
+ import { c as jn, g as Gn, u as Un } from "./deps/soon-id-t25L9qRGGZ-1p453zvsh.js";
4
4
  import Mt from "os";
5
5
  import Gr from "util";
6
6
  import Ke from "stream";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "soonjs",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",