5 lines
31 KiB
JavaScript
5 lines
31 KiB
JavaScript
import{K as yr}from"./index.038313d9.js";var sr=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 o=42;e[t]=o;for(t 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 a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(e,t);if(i.value!==o||i.enumerable!==!0)return!1}return!0},We=typeof Symbol!="undefined"&&Symbol,vr=sr,dr=function(){return typeof We!="function"||typeof Symbol!="function"||typeof We("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:vr()},mr="Function.prototype.bind called on incompatible ",se=Array.prototype.slice,gr=Object.prototype.toString,hr="[object Function]",Sr=function(e){var t=this;if(typeof t!="function"||gr.call(t)!==hr)throw new TypeError(mr+t);for(var n=se.call(arguments,1),o,a=function(){if(this instanceof o){var c=t.apply(this,n.concat(se.call(arguments)));return Object(c)===c?c:this}else return t.apply(e,n.concat(se.call(arguments)))},i=Math.max(0,t.length-n.length),f=[],u=0;u<i;u++)f.push("$"+u);if(o=Function("binder","return function ("+f.join(",")+"){ return binder.apply(this,arguments); }")(a),t.prototype){var l=function(){};l.prototype=t.prototype,o.prototype=new l,l.prototype=null}return o},br=Sr,Re=Function.prototype.bind||br,Or=Re,Ar=Or.call(Function.call,Object.prototype.hasOwnProperty),y,re=SyntaxError,Ye=Function,z=TypeError,ve=function(r){try{return Ye('"use strict"; return ('+r+").constructor;")()}catch{}},_=Object.getOwnPropertyDescriptor;if(_)try{_({},"")}catch{_=null}var de=function(){throw new z},wr=_?function(){try{return arguments.callee,de}catch{try{return _(arguments,"callee").get}catch{return de}}}():de,G=dr(),$=Object.getPrototypeOf||function(r){return r.__proto__},k={},Pr=typeof Uint8Array=="undefined"?y:$(Uint8Array),H={"%AggregateError%":typeof AggregateError=="undefined"?y:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?y:ArrayBuffer,"%ArrayIteratorPrototype%":G?$([][Symbol.iterator]()):y,"%AsyncFromSyncIteratorPrototype%":y,"%AsyncFunction%":k,"%AsyncGenerator%":k,"%AsyncGeneratorFunction%":k,"%AsyncIteratorPrototype%":k,"%Atomics%":typeof Atomics=="undefined"?y:Atomics,"%BigInt%":typeof BigInt=="undefined"?y:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?y:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?y:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?y:FinalizationRegistry,"%Function%":Ye,"%GeneratorFunction%":k,"%Int8Array%":typeof Int8Array=="undefined"?y:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?y:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?y:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":G?$($([][Symbol.iterator]())):y,"%JSON%":typeof JSON=="object"?JSON:y,"%Map%":typeof Map=="undefined"?y:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!G?y:$(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?y:Promise,"%Proxy%":typeof Proxy=="undefined"?y:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?y:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?y:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!G?y:$(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?y:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":G?$(""[Symbol.iterator]()):y,"%Symbol%":G?Symbol:y,"%SyntaxError%":re,"%ThrowTypeError%":wr,"%TypedArray%":Pr,"%TypeError%":z,"%Uint8Array%":typeof Uint8Array=="undefined"?y:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?y:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?y:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?y:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?y:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?y:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?y:WeakSet},Er=function r(e){var t;if(e==="%AsyncFunction%")t=ve("async function () {}");else if(e==="%GeneratorFunction%")t=ve("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=ve("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=r("%AsyncGenerator%");o&&(t=$(o.prototype))}return H[e]=t,t},Le={"%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"]},ce=Re,ie=Ar,xr=ce.call(Function.call,Array.prototype.concat),$r=ce.call(Function.apply,Array.prototype.splice),Ge=ce.call(Function.call,String.prototype.replace),fe=ce.call(Function.call,String.prototype.slice),Fr=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ir=/\\(\\)?/g,Nr=function(e){var t=fe(e,0,1),n=fe(e,-1);if(t==="%"&&n!=="%")throw new re("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new re("invalid intrinsic syntax, expected opening `%`");var o=[];return Ge(e,Fr,function(a,i,f,u){o[o.length]=f?Ge(u,Ir,"$1"):i||a}),o},Rr=function(e,t){var n=e,o;if(ie(Le,n)&&(o=Le[n],n="%"+o[0]+"%"),ie(H,n)){var a=H[n];if(a===k&&(a=Er(n)),typeof a=="undefined"&&!t)throw new z("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new re("intrinsic "+e+" does not exist!")},Me=function(e,t){if(typeof e!="string"||e.length===0)throw new z("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new z('"allowMissing" argument must be a boolean');var n=Nr(e),o=n.length>0?n[0]:"",a=Rr("%"+o+"%",t),i=a.name,f=a.value,u=!1,l=a.alias;l&&(o=l[0],$r(n,xr([0,1],l)));for(var c=1,s=!0;c<n.length;c+=1){var p=n[c],d=fe(p,0,1),m=fe(p,-1);if((d==='"'||d==="'"||d==="`"||m==='"'||m==="'"||m==="`")&&d!==m)throw new re("property names with quotes must have matching quotes");if((p==="constructor"||!s)&&(u=!0),o+="."+p,i="%"+o+"%",ie(H,i))f=H[i];else if(f!=null){if(!(p in f)){if(!t)throw new z("base intrinsic for "+e+" exists, but the property is not available.");return}if(_&&c+1>=n.length){var O=_(f,p);s=!!O,s&&"get"in O&&!("originalValue"in O.get)?f=O.get:f=f[p]}else s=ie(f,p),f=f[p];s&&!u&&(H[i]=f)}}return f},Xe={exports:{}};(function(r){var e=Re,t=Me,n=t("%Function.prototype.apply%"),o=t("%Function.prototype.call%"),a=t("%Reflect.apply%",!0)||e.call(o,n),i=t("%Object.getOwnPropertyDescriptor%",!0),f=t("%Object.defineProperty%",!0),u=t("%Math.max%");if(f)try{f({},"a",{value:1})}catch{f=null}r.exports=function(s){var p=a(e,o,arguments);if(i&&f){var d=i(p,"length");d.configurable&&f(p,"length",{value:1+u(0,s.length-(arguments.length-1))})}return p};var l=function(){return a(e,n,arguments)};f?f(r.exports,"apply",{value:l}):r.exports.apply=l})(Xe);var Ze=Me,er=Xe.exports,Mr=er(Ze("String.prototype.indexOf")),Dr=function(e,t){var n=Ze(e,!!t);return typeof n=="function"&&Mr(e,".prototype.")>-1?er(n):n},Tr={},Br=Object.freeze(Object.defineProperty({__proto__:null,default:Tr},Symbol.toStringTag,{value:"Module"})),Cr=yr(Br),De=typeof Map=="function"&&Map.prototype,me=Object.getOwnPropertyDescriptor&&De?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,le=De&&me&&typeof me.get=="function"?me.get:null,_r=De&&Map.prototype.forEach,Te=typeof Set=="function"&&Set.prototype,ge=Object.getOwnPropertyDescriptor&&Te?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ue=Te&&ge&&typeof ge.get=="function"?ge.get:null,Ur=Te&&Set.prototype.forEach,Wr=typeof WeakMap=="function"&&WeakMap.prototype,X=Wr?WeakMap.prototype.has:null,Lr=typeof WeakSet=="function"&&WeakSet.prototype,Z=Lr?WeakSet.prototype.has:null,Gr=typeof WeakRef=="function"&&WeakRef.prototype,ke=Gr?WeakRef.prototype.deref:null,kr=Boolean.prototype.valueOf,zr=Object.prototype.toString,Hr=Function.prototype.toString,Qr=String.prototype.match,Be=String.prototype.slice,I=String.prototype.replace,Vr=String.prototype.toUpperCase,ze=String.prototype.toLowerCase,rr=RegExp.prototype.test,He=Array.prototype.concat,w=Array.prototype.join,qr=Array.prototype.slice,Qe=Math.floor,Ee=typeof BigInt=="function"?BigInt.prototype.valueOf:null,he=Object.getOwnPropertySymbols,xe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Q=typeof Symbol=="function"&&typeof Symbol.iterator=="object",S=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Q?"object":"symbol")?Symbol.toStringTag:null,tr=Object.prototype.propertyIsEnumerable,Ve=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function qe(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||rr.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-Qe(-r):Qe(r);if(n!==r){var o=String(n),a=Be.call(e,o.length+1);return I.call(o,t,"$&_")+"."+I.call(I.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return I.call(e,t,"$&_")}var Se=Cr.custom,be=Se&&ar(Se)?Se:null,Jr=function r(e,t,n,o){var a=t||{};if(F(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(F(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=F(a,"customInspect")?a.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(F(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(F(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=a.numericSeparator;if(typeof e=="undefined")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return ir(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var u=String(e);return f?qe(e,u):u}if(typeof e=="bigint"){var l=String(e)+"n";return f?qe(e,l):l}var c=typeof a.depth=="undefined"?5:a.depth;if(typeof n=="undefined"&&(n=0),n>=c&&c>0&&typeof e=="object")return $e(e)?"[Array]":"[Object]";var s=st(a,n);if(typeof o=="undefined")o=[];else if(or(o,e)>=0)return"[Circular]";function p(b,T,pe){if(T&&(o=qr.call(o),o.push(T)),pe){var j={depth:a.depth};return F(a,"quoteStyle")&&(j.quoteStyle=a.quoteStyle),r(b,j,n+1,o)}return r(b,a,n+1,o)}if(typeof e=="function"){var d=at(e),m=ne(e,p);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(m.length>0?" { "+w.call(m,", ")+" }":"")}if(ar(e)){var O=Q?I.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):xe.call(e);return typeof e=="object"&&!Q?Y(O):O}if(ct(e)){for(var v="<"+ze.call(String(e.nodeName)),E=e.attributes||[],P=0;P<E.length;P++)v+=" "+E[P].name+"="+nr(Kr(E[P].value),"double",a);return v+=">",e.childNodes&&e.childNodes.length&&(v+="..."),v+="</"+ze.call(String(e.nodeName))+">",v}if($e(e)){if(e.length===0)return"[]";var U=ne(e,p);return s&&!yt(U)?"["+Fe(U,s)+"]":"[ "+w.call(U,", ")+" ]"}if(Xr(e)){var W=ne(e,p);return"cause"in e&&!tr.call(e,"cause")?"{ ["+String(e)+"] "+w.call(He.call("[cause]: "+p(e.cause),W),", ")+" }":W.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+w.call(W,", ")+" }"}if(typeof e=="object"&&i){if(be&&typeof e[be]=="function")return e[be]();if(i!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(ot(e)){var J=[];return _r.call(e,function(b,T){J.push(p(T,e,!0)+" => "+p(b,e))}),Je("Map",le.call(e),J,s)}if(lt(e)){var K=[];return Ur.call(e,function(b){K.push(p(b,e))}),Je("Set",ue.call(e),K,s)}if(it(e))return Oe("WeakMap");if(ut(e))return Oe("WeakSet");if(ft(e))return Oe("WeakRef");if(et(e))return Y(p(Number(e)));if(tt(e))return Y(p(Ee.call(e)));if(rt(e))return Y(kr.call(e));if(Zr(e))return Y(p(String(e)));if(!jr(e)&&!Yr(e)){var L=ne(e,p),R=Ve?Ve(e)===Object.prototype:e instanceof Object||e.constructor===Object,M=e instanceof Object?"":"null prototype",x=!R&&S&&Object(e)===e&&S in e?Be.call(N(e),8,-1):M?"Object":"",te=R||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",D=te+(x||M?"["+w.call(He.call([],x||[],M||[]),": ")+"] ":"");return L.length===0?D+"{}":s?D+"{"+Fe(L,s)+"}":D+"{ "+w.call(L,", ")+" }"}return String(e)};function nr(r,e,t){var n=(t.quoteStyle||e)==="double"?'"':"'";return n+r+n}function Kr(r){return I.call(String(r),/"/g,""")}function $e(r){return N(r)==="[object Array]"&&(!S||!(typeof r=="object"&&S in r))}function jr(r){return N(r)==="[object Date]"&&(!S||!(typeof r=="object"&&S in r))}function Yr(r){return N(r)==="[object RegExp]"&&(!S||!(typeof r=="object"&&S in r))}function Xr(r){return N(r)==="[object Error]"&&(!S||!(typeof r=="object"&&S in r))}function Zr(r){return N(r)==="[object String]"&&(!S||!(typeof r=="object"&&S in r))}function et(r){return N(r)==="[object Number]"&&(!S||!(typeof r=="object"&&S in r))}function rt(r){return N(r)==="[object Boolean]"&&(!S||!(typeof r=="object"&&S in r))}function ar(r){if(Q)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!xe)return!1;try{return xe.call(r),!0}catch{}return!1}function tt(r){if(!r||typeof r!="object"||!Ee)return!1;try{return Ee.call(r),!0}catch{}return!1}var nt=Object.prototype.hasOwnProperty||function(r){return r in this};function F(r,e){return nt.call(r,e)}function N(r){return zr.call(r)}function at(r){if(r.name)return r.name;var e=Qr.call(Hr.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function or(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 ot(r){if(!le||!r||typeof r!="object")return!1;try{le.call(r);try{ue.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function it(r){if(!X||!r||typeof r!="object")return!1;try{X.call(r,X);try{Z.call(r,Z)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function ft(r){if(!ke||!r||typeof r!="object")return!1;try{return ke.call(r),!0}catch{}return!1}function lt(r){if(!ue||!r||typeof r!="object")return!1;try{ue.call(r);try{le.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function ut(r){if(!Z||!r||typeof r!="object")return!1;try{Z.call(r,Z);try{X.call(r,X)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function ct(r){return!r||typeof r!="object"?!1:typeof HTMLElement!="undefined"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function ir(r,e){if(r.length>e.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return ir(Be.call(r,0,e.maxStringLength),e)+n}var o=I.call(I.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,pt);return nr(o,"single",e)}function pt(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":"")+Vr.call(e.toString(16))}function Y(r){return"Object("+r+")"}function Oe(r){return r+" { ? }"}function Je(r,e,t,n){var o=n?Fe(t,n):w.call(t,", ");return r+" ("+e+") {"+o+"}"}function yt(r){for(var e=0;e<r.length;e++)if(or(r[e],`
|
|
`)>=0)return!1;return!0}function st(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=w.call(Array(r.indent+1)," ");else return null;return{base:t,prev:w.call(Array(e+1),t)}}function Fe(r,e){if(r.length===0)return"";var t=`
|
|
`+e.prev+e.base;return t+w.call(r,","+t)+`
|
|
`+e.prev}function ne(r,e){var t=$e(r),n=[];if(t){n.length=r.length;for(var o=0;o<r.length;o++)n[o]=F(r,o)?e(r[o],r):""}var a=typeof he=="function"?he(r):[],i;if(Q){i={};for(var f=0;f<a.length;f++)i["$"+a[f]]=a[f]}for(var u in r)!F(r,u)||t&&String(Number(u))===u&&u<r.length||Q&&i["$"+u]instanceof Symbol||(rr.call(/[^\w$]/,u)?n.push(e(u,r)+": "+e(r[u],r)):n.push(u+": "+e(r[u],r)));if(typeof he=="function")for(var l=0;l<a.length;l++)tr.call(r,a[l])&&n.push("["+e(a[l])+"]: "+e(r[a[l]],r));return n}var Ce=Me,q=Dr,vt=Jr,dt=Ce("%TypeError%"),ae=Ce("%WeakMap%",!0),oe=Ce("%Map%",!0),mt=q("WeakMap.prototype.get",!0),gt=q("WeakMap.prototype.set",!0),ht=q("WeakMap.prototype.has",!0),St=q("Map.prototype.get",!0),bt=q("Map.prototype.set",!0),Ot=q("Map.prototype.has",!0),_e=function(r,e){for(var t=r,n;(n=t.next)!==null;t=n)if(n.key===e)return t.next=n.next,n.next=r.next,r.next=n,n},At=function(r,e){var t=_e(r,e);return t&&t.value},wt=function(r,e,t){var n=_e(r,e);n?n.value=t:r.next={key:e,next:r.next,value:t}},Pt=function(r,e){return!!_e(r,e)},Et=function(){var e,t,n,o={assert:function(a){if(!o.has(a))throw new dt("Side channel does not contain "+vt(a))},get:function(a){if(ae&&a&&(typeof a=="object"||typeof a=="function")){if(e)return mt(e,a)}else if(oe){if(t)return St(t,a)}else if(n)return At(n,a)},has:function(a){if(ae&&a&&(typeof a=="object"||typeof a=="function")){if(e)return ht(e,a)}else if(oe){if(t)return Ot(t,a)}else if(n)return Pt(n,a);return!1},set:function(a,i){ae&&a&&(typeof a=="object"||typeof a=="function")?(e||(e=new ae),gt(e,a,i)):oe?(t||(t=new oe),bt(t,a,i)):(n||(n={key:{},next:null}),wt(n,a,i))}};return o},xt=String.prototype.replace,$t=/%20/g,Ae={RFC1738:"RFC1738",RFC3986:"RFC3986"},Ue={default:Ae.RFC3986,formatters:{RFC1738:function(r){return xt.call(r,$t,"+")},RFC3986:function(r){return String(r)}},RFC1738:Ae.RFC1738,RFC3986:Ae.RFC3986},Ft=Ue,we=Object.prototype.hasOwnProperty,B=Array.isArray,A=function(){for(var r=[],e=0;e<256;++e)r.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return r}(),It=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(B(n)){for(var o=[],a=0;a<n.length;++a)typeof n[a]!="undefined"&&o.push(n[a]);t.obj[t.prop]=o}}},fr=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)typeof e[o]!="undefined"&&(n[o]=e[o]);return n},Nt=function r(e,t,n){if(!t)return e;if(typeof t!="object"){if(B(e))e.push(t);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!we.call(Object.prototype,t))&&(e[t]=!0);else return[e,t];return e}if(!e||typeof e!="object")return[e].concat(t);var o=e;return B(e)&&!B(t)&&(o=fr(e,n)),B(e)&&B(t)?(t.forEach(function(a,i){if(we.call(e,i)){var f=e[i];f&&typeof f=="object"&&a&&typeof a=="object"?e[i]=r(f,a,n):e.push(a)}else e[i]=a}),e):Object.keys(t).reduce(function(a,i){var f=t[i];return we.call(a,i)?a[i]=r(a[i],f,n):a[i]=f,a},o)},Rt=function(e,t){return Object.keys(t).reduce(function(n,o){return n[o]=t[o],n},e)},Mt=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}},Dt=function(e,t,n,o,a){if(e.length===0)return e;var i=e;if(typeof e=="symbol"?i=Symbol.prototype.toString.call(e):typeof e!="string"&&(i=String(e)),n==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(c){return"%26%23"+parseInt(c.slice(2),16)+"%3B"});for(var f="",u=0;u<i.length;++u){var l=i.charCodeAt(u);if(l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||a===Ft.RFC1738&&(l===40||l===41)){f+=i.charAt(u);continue}if(l<128){f=f+A[l];continue}if(l<2048){f=f+(A[192|l>>6]+A[128|l&63]);continue}if(l<55296||l>=57344){f=f+(A[224|l>>12]+A[128|l>>6&63]+A[128|l&63]);continue}u+=1,l=65536+((l&1023)<<10|i.charCodeAt(u)&1023),f+=A[240|l>>18]+A[128|l>>12&63]+A[128|l>>6&63]+A[128|l&63]}return f},Tt=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var a=t[o],i=a.obj[a.prop],f=Object.keys(i),u=0;u<f.length;++u){var l=f[u],c=i[l];typeof c=="object"&&c!==null&&n.indexOf(c)===-1&&(t.push({obj:i,prop:l}),n.push(c))}return It(t),e},Bt=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Ct=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},_t=function(e,t){return[].concat(e,t)},Ut=function(e,t){if(B(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(t(e[o]));return n}return t(e)},lr={arrayToObject:fr,assign:Rt,combine:_t,compact:Tt,decode:Mt,encode:Dt,isBuffer:Ct,isRegExp:Bt,maybeMap:Ut,merge:Nt},ur=Et,Ie=lr,ee=Ue,Wt=Object.prototype.hasOwnProperty,Ke={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},C=Array.isArray,Lt=String.prototype.split,Gt=Array.prototype.push,cr=function(r,e){Gt.apply(r,C(e)?e:[e])},kt=Date.prototype.toISOString,je=ee.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Ie.encode,encodeValuesOnly:!1,format:je,formatter:ee.formatters[je],indices:!1,serializeDate:function(e){return kt.call(e)},skipNulls:!1,strictNullHandling:!1},zt=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Pe={},Ht=function r(e,t,n,o,a,i,f,u,l,c,s,p,d,m,O){for(var v=e,E=O,P=0,U=!1;(E=E.get(Pe))!==void 0&&!U;){var W=E.get(e);if(P+=1,typeof W!="undefined"){if(W===P)throw new RangeError("Cyclic object value");U=!0}typeof E.get(Pe)=="undefined"&&(P=0)}if(typeof f=="function"?v=f(t,v):v instanceof Date?v=c(v):n==="comma"&&C(v)&&(v=Ie.maybeMap(v,function(ye){return ye instanceof Date?c(ye):ye})),v===null){if(o)return i&&!d?i(t,h.encoder,m,"key",s):t;v=""}if(zt(v)||Ie.isBuffer(v)){if(i){var J=d?t:i(t,h.encoder,m,"key",s);if(n==="comma"&&d){for(var K=Lt.call(String(v),","),L="",R=0;R<K.length;++R)L+=(R===0?"":",")+p(i(K[R],h.encoder,m,"value",s));return[p(J)+"="+L]}return[p(J)+"="+p(i(v,h.encoder,m,"value",s))]}return[p(t)+"="+p(String(v))]}var M=[];if(typeof v=="undefined")return M;var x;if(n==="comma"&&C(v))x=[{value:v.length>0?v.join(",")||null:void 0}];else if(C(f))x=f;else{var te=Object.keys(v);x=u?te.sort(u):te}for(var D=0;D<x.length;++D){var b=x[D],T=typeof b=="object"&&typeof b.value!="undefined"?b.value:v[b];if(!(a&&T===null)){var pe=C(v)?typeof n=="function"?n(t,b):t:t+(l?"."+b:"["+b+"]");O.set(e,P);var j=ur();j.set(Pe,O),cr(M,r(T,pe,n,o,a,i,f,u,l,c,s,p,d,m,j))}}return M},Qt=function(e){if(!e)return h;if(e.encoder!==null&&typeof e.encoder!="undefined"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if(typeof e.charset!="undefined"&&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=ee.default;if(typeof e.format!="undefined"){if(!Wt.call(ee.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=ee.formatters[n],a=h.filter;return(typeof e.filter=="function"||C(e.filter))&&(a=e.filter),{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:h.addQueryPrefix,allowDots:typeof e.allowDots=="undefined"?h.allowDots:!!e.allowDots,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:h.charsetSentinel,delimiter:typeof e.delimiter=="undefined"?h.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:h.encode,encoder:typeof e.encoder=="function"?e.encoder:h.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:h.encodeValuesOnly,filter:a,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:h.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:h.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:h.strictNullHandling}},Vt=function(r,e){var t=r,n=Qt(e),o,a;typeof n.filter=="function"?(a=n.filter,t=a("",t)):C(n.filter)&&(a=n.filter,o=a);var i=[];if(typeof t!="object"||t===null)return"";var f;e&&e.arrayFormat in Ke?f=e.arrayFormat:e&&"indices"in e?f=e.indices?"indices":"repeat":f="indices";var u=Ke[f];o||(o=Object.keys(t)),n.sort&&o.sort(n.sort);for(var l=ur(),c=0;c<o.length;++c){var s=o[c];n.skipNulls&&t[s]===null||cr(i,Ht(t[s],s,u,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,l))}var p=i.join(n.delimiter),d=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),p.length>0?d+p:""},V=lr,Ne=Object.prototype.hasOwnProperty,qt=Array.isArray,g={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:V.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Jt=function(r){return r.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},pr=function(r,e){return r&&typeof r=="string"&&e.comma&&r.indexOf(",")>-1?r.split(","):r},Kt="utf8=%26%2310003%3B",jt="utf8=%E2%9C%93",Yt=function(e,t){var n={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=t.parameterLimit===1/0?void 0:t.parameterLimit,i=o.split(t.delimiter,a),f=-1,u,l=t.charset;if(t.charsetSentinel)for(u=0;u<i.length;++u)i[u].indexOf("utf8=")===0&&(i[u]===jt?l="utf-8":i[u]===Kt&&(l="iso-8859-1"),f=u,u=i.length);for(u=0;u<i.length;++u)if(u!==f){var c=i[u],s=c.indexOf("]="),p=s===-1?c.indexOf("="):s+1,d,m;p===-1?(d=t.decoder(c,g.decoder,l,"key"),m=t.strictNullHandling?null:""):(d=t.decoder(c.slice(0,p),g.decoder,l,"key"),m=V.maybeMap(pr(c.slice(p+1),t),function(O){return t.decoder(O,g.decoder,l,"value")})),m&&t.interpretNumericEntities&&l==="iso-8859-1"&&(m=Jt(m)),c.indexOf("[]=")>-1&&(m=qt(m)?[m]:m),Ne.call(n,d)?n[d]=V.combine(n[d],m):n[d]=m}return n},Xt=function(r,e,t,n){for(var o=n?e:pr(e,t),a=r.length-1;a>=0;--a){var i,f=r[a];if(f==="[]"&&t.parseArrays)i=[].concat(o);else{i=t.plainObjects?Object.create(null):{};var u=f.charAt(0)==="["&&f.charAt(f.length-1)==="]"?f.slice(1,-1):f,l=parseInt(u,10);!t.parseArrays&&u===""?i={0:o}:!isNaN(l)&&f!==u&&String(l)===u&&l>=0&&t.parseArrays&&l<=t.arrayLimit?(i=[],i[l]=o):u!=="__proto__"&&(i[u]=o)}o=i}return o},Zt=function(e,t,n,o){if(!!e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,f=/(\[[^[\]]*])/g,u=n.depth>0&&i.exec(a),l=u?a.slice(0,u.index):a,c=[];if(l){if(!n.plainObjects&&Ne.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var s=0;n.depth>0&&(u=f.exec(a))!==null&&s<n.depth;){if(s+=1,!n.plainObjects&&Ne.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(u[1])}return u&&c.push("["+a.slice(u.index)+"]"),Xt(c,t,n,o)}},en=function(e){if(!e)return g;if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset!="undefined"&&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 t=typeof e.charset=="undefined"?g.charset:e.charset;return{allowDots:typeof e.allowDots=="undefined"?g.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:g.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:g.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:g.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:g.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:g.comma,decoder:typeof e.decoder=="function"?e.decoder:g.decoder,delimiter:typeof e.delimiter=="string"||V.isRegExp(e.delimiter)?e.delimiter:g.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:g.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:g.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:g.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:g.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:g.strictNullHandling}},rn=function(r,e){var t=en(e);if(r===""||r===null||typeof r=="undefined")return t.plainObjects?Object.create(null):{};for(var n=typeof r=="string"?Yt(r,t):r,o=t.plainObjects?Object.create(null):{},a=Object.keys(n),i=0;i<a.length;++i){var f=a[i],u=Zt(f,n[f],t,typeof r=="string");o=V.merge(o,u,t)}return t.allowSparse===!0?o:V.compact(o)},tn=Vt,nn=rn,an=Ue,fn={formats:an,parse:nn,stringify:tn};export{fn as l};
|