@leancodepl/hook-pipe-client 9.7.4 → 10.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1 @@
1
- (function(Sr,fr){typeof exports=="object"&&typeof module<"u"?fr(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],fr):(Sr=typeof globalThis<"u"?globalThis:Sr||self,fr(Sr["@leancodepl/hook-pipe-client"]={},Sr.react))})(this,(function(Sr,fr){"use strict";var Nr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Li(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Ui(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var t=r.default;if(typeof t=="function"){var e=function n(){var o=!1;try{o=this instanceof n}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};e.prototype=t.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return r[n]}})}),e}var oe,pn;function yn(){if(pn)return oe;pn=1;var r=Object.prototype.toString;return oe=function(e){var n=r.call(e),o=n==="[object Arguments]";return o||(o=n!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&r.call(e.callee)==="[object Function]"),o},oe}var ie,vn;function Gi(){if(vn)return ie;vn=1;var r;if(!Object.keys){var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,n=yn(),o=Object.prototype.propertyIsEnumerable,i=!o.call({toString:null},"toString"),a=o.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(v){var h=v.constructor;return h&&h.prototype===v},s={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},y=(function(){if(typeof window>"u")return!1;for(var v in window)try{if(!s["$"+v]&&t.call(window,v)&&window[v]!==null&&typeof window[v]=="object")try{f(window[v])}catch{return!0}}catch{return!0}return!1})(),p=function(v){if(typeof window>"u"||!y)return f(v);try{return f(v)}catch{return!1}};r=function(h){var g=h!==null&&typeof h=="object",S=e.call(h)==="[object Function]",A=n(h),O=g&&e.call(h)==="[object String]",I=[];if(!g&&!S&&!A)throw new TypeError("Object.keys called on a non-object");var b=a&&S;if(O&&h.length>0&&!t.call(h,0))for(var T=0;T<h.length;++T)I.push(String(T));if(A&&h.length>0)for(var H=0;H<h.length;++H)I.push(String(H));else for(var W in h)!(b&&W==="prototype")&&t.call(h,W)&&I.push(String(W));if(i)for(var F=p(h),C=0;C<u.length;++C)!(F&&u[C]==="constructor")&&t.call(h,u[C])&&I.push(u[C]);return I}}return ie=r,ie}var ae,hn;function ue(){if(hn)return ae;hn=1;var r=Array.prototype.slice,t=yn(),e=Object.keys,n=e?function(a){return e(a)}:Gi(),o=Object.keys;return n.shim=function(){if(Object.keys){var a=(function(){var u=Object.keys(arguments);return u&&u.length===arguments.length})(1,2);a||(Object.keys=function(f){return t(f)?o(r.call(f)):o(f)})}else Object.keys=n;return Object.keys||n},ae=n,ae}var fe,dn;function Lr(){if(dn)return fe;dn=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return fe=r,fe}var se,gn;function ce(){return gn||(gn=1,se=SyntaxError),se}var le,mn;function nr(){return mn||(mn=1,le=TypeError),le}var pe,bn;function Hi(){return bn||(bn=1,pe=Object.getOwnPropertyDescriptor),pe}var ye,Sn;function wr(){if(Sn)return ye;Sn=1;var r=Hi();if(r)try{r([],"length")}catch{r=null}return ye=r,ye}var ve,wn;function he(){if(wn)return ve;wn=1;var r=Lr(),t=ce(),e=nr(),n=wr();return ve=function(i,a,u){if(!i||typeof i!="object"&&typeof i!="function")throw new e("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new e("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new e("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new e("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new e("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new e("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,y=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,v=!!n&&n(i,a);if(r)r(i,a,{configurable:y===null&&v?v.configurable:!y,enumerable:f===null&&v?v.enumerable:!f,value:u,writable:s===null&&v?v.writable:!s});else if(p||!f&&!s&&!y)i[a]=u;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},ve}var de,An;function ge(){if(An)return de;An=1;var r=Lr(),t=function(){return!!r};return t.hasArrayLengthDefineBug=function(){if(!r)return null;try{return r([],"length",{value:1}).length!==1}catch{return!0}},de=t,de}var me,On;function Ar(){if(On)return me;On=1;var r=ue(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",e=Object.prototype.toString,n=Array.prototype.concat,o=he(),i=function(s){return typeof s=="function"&&e.call(s)==="[object Function]"},a=ge()(),u=function(s,y,p,v){if(y in s){if(v===!0){if(s[y]===p)return}else if(!i(v)||!v())return}a?o(s,y,p,!0):o(s,y,p)},f=function(s,y){var p=arguments.length>2?arguments[2]:{},v=r(y);t&&(v=n.call(v,Object.getOwnPropertySymbols(y)));for(var h=0;h<v.length;h+=1)u(s,v[h],y[v[h]],p[v[h]])};return f.supportsDescriptors=!!a,me=f,me}var be={exports:{}},Se,Pn;function we(){return Pn||(Pn=1,Se=Object),Se}var Ae,In;function En(){return In||(In=1,Ae=Error),Ae}var Oe,qn;function zi(){return qn||(qn=1,Oe=EvalError),Oe}var Pe,Rn;function Vi(){return Rn||(Rn=1,Pe=RangeError),Pe}var Ie,$n;function Ji(){return $n||($n=1,Ie=ReferenceError),Ie}var Ee,Bn;function Yi(){return Bn||(Bn=1,Ee=URIError),Ee}var qe,_n;function Ki(){return _n||(_n=1,qe=Math.abs),qe}var Re,xn;function Xi(){return xn||(xn=1,Re=Math.floor),Re}var $e,Tn;function Zi(){return Tn||(Tn=1,$e=Math.max),$e}var Be,jn;function Qi(){return jn||(jn=1,Be=Math.min),Be}var _e,Mn;function ra(){return Mn||(Mn=1,_e=Math.pow),_e}var xe,Cn;function ea(){return Cn||(Cn=1,xe=Math.round),xe}var Te,Fn;function ta(){return Fn||(Fn=1,Te=Number.isNaN||function(t){return t!==t}),Te}var je,Dn;function na(){if(Dn)return je;Dn=1;var r=ta();return je=function(e){return r(e)||e===0?e:e<0?-1:1},je}var Me,Wn;function Ur(){return Wn||(Wn=1,Me=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},e=Symbol("test"),n=Object(e);if(typeof e=="string"||Object.prototype.toString.call(e)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[e]=o;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,e);if(u.value!==o||u.enumerable!==!0)return!1}return!0}),Me}var Ce,kn;function Fe(){if(kn)return Ce;kn=1;var r=typeof Symbol<"u"&&Symbol,t=Ur();return Ce=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Ce}var De,Nn;function Ln(){return Nn||(Nn=1,De=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),De}var We,Un;function Gn(){if(Un)return We;Un=1;var r=we();return We=r.getPrototypeOf||null,We}var ke,Hn;function oa(){if(Hn)return ke;Hn=1;var r="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,e=Math.max,n="[object Function]",o=function(f,s){for(var y=[],p=0;p<f.length;p+=1)y[p]=f[p];for(var v=0;v<s.length;v+=1)y[v+f.length]=s[v];return y},i=function(f,s){for(var y=[],p=s,v=0;p<f.length;p+=1,v+=1)y[v]=f[p];return y},a=function(u,f){for(var s="",y=0;y<u.length;y+=1)s+=u[y],y+1<u.length&&(s+=f);return s};return ke=function(f){var s=this;if(typeof s!="function"||t.apply(s)!==n)throw new TypeError(r+s);for(var y=i(arguments,1),p,v=function(){if(this instanceof p){var O=s.apply(this,o(y,arguments));return Object(O)===O?O:this}return s.apply(f,o(y,arguments))},h=e(0,s.length-y.length),g=[],S=0;S<h;S++)g[S]="$"+S;if(p=Function("binder","return function ("+a(g,",")+"){ return binder.apply(this,arguments); }")(v),s.prototype){var A=function(){};A.prototype=s.prototype,p.prototype=new A,A.prototype=null}return p},ke}var Ne,zn;function Cr(){if(zn)return Ne;zn=1;var r=oa();return Ne=Function.prototype.bind||r,Ne}var Le,Vn;function Ue(){return Vn||(Vn=1,Le=Function.prototype.call),Le}var Ge,Jn;function He(){return Jn||(Jn=1,Ge=Function.prototype.apply),Ge}var ze,Yn;function ia(){return Yn||(Yn=1,ze=typeof Reflect<"u"&&Reflect&&Reflect.apply),ze}var Ve,Kn;function Xn(){if(Kn)return Ve;Kn=1;var r=Cr(),t=He(),e=Ue(),n=ia();return Ve=n||r.call(e,t),Ve}var Je,Zn;function Ye(){if(Zn)return Je;Zn=1;var r=Cr(),t=nr(),e=Ue(),n=Xn();return Je=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(r,e,i)},Je}var Ke,Qn;function aa(){if(Qn)return Ke;Qn=1;var r=Ye(),t=wr(),e;try{e=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!e&&t&&t(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return Ke=n&&typeof n.get=="function"?r([n.get]):typeof i=="function"?function(u){return i(u==null?u:o(u))}:!1,Ke}var Xe,ro;function Ze(){if(ro)return Xe;ro=1;var r=Ln(),t=Gn(),e=aa();return Xe=r?function(o){return r(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:e?function(o){return e(o)}:null,Xe}var Qe,eo;function rt(){if(eo)return Qe;eo=1;var r=Function.prototype.call,t=Object.prototype.hasOwnProperty,e=Cr();return Qe=e.call(r,t),Qe}var et,to;function sr(){if(to)return et;to=1;var r,t=we(),e=En(),n=zi(),o=Vi(),i=Ji(),a=ce(),u=nr(),f=Yi(),s=Ki(),y=Xi(),p=Zi(),v=Qi(),h=ra(),g=ea(),S=na(),A=Function,O=function(j){try{return A('"use strict"; return ('+j+").constructor;")()}catch{}},I=wr(),b=Lr(),T=function(){throw new u},H=I?(function(){try{return arguments.callee,T}catch{try{return I(arguments,"callee").get}catch{return T}}})():T,W=Fe()(),F=Ze(),C=Gn(),E=Ln(),D=He(),U=Ue(),k={},G=typeof Uint8Array>"u"||!F?r:F(Uint8Array),J={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":W&&F?F([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":k,"%AsyncGenerator%":k,"%AsyncGeneratorFunction%":k,"%AsyncIteratorPrototype%":k,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":e,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":A,"%GeneratorFunction%":k,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":W&&F?F(F([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!W||!F?r:F(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":I,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!W||!F?r:F(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":W&&F?F(""[Symbol.iterator]()):r,"%Symbol%":W?Symbol:r,"%SyntaxError%":a,"%ThrowTypeError%":H,"%TypedArray%":G,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":f,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":U,"%Function.prototype.apply%":D,"%Object.defineProperty%":b,"%Object.getPrototypeOf%":C,"%Math.abs%":s,"%Math.floor%":y,"%Math.max%":p,"%Math.min%":v,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":S,"%Reflect.getPrototypeOf%":E};if(F)try{null.error}catch(j){var ur=F(F(j));J["%Error.prototype%"]=ur}var _r=function j(P){var q;if(P==="%AsyncFunction%")q=O("async function () {}");else if(P==="%GeneratorFunction%")q=O("function* () {}");else if(P==="%AsyncGeneratorFunction%")q=O("async function* () {}");else if(P==="%AsyncGenerator%"){var w=j("%AsyncGeneratorFunction%");w&&(q=w.prototype)}else if(P==="%AsyncIteratorPrototype%"){var B=j("%AsyncGenerator%");B&&F&&(q=F(B.prototype))}return J[P]=q,q},Pr={__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"]},or=Cr(),z=rt(),Ir=or.call(U,Array.prototype.concat),xr=or.call(D,Array.prototype.splice),Er=or.call(U,String.prototype.replace),hr=or.call(U,String.prototype.slice),d=or.call(U,RegExp.prototype.exec),m=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$=/\\(\\)?/g,R=function(P){var q=hr(P,0,1),w=hr(P,-1);if(q==="%"&&w!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(w==="%"&&q!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var B=[];return Er(P,m,function(V,Y,K,X){B[B.length]=K?Er(X,$,"$1"):Y||V}),B},x=function(P,q){var w=P,B;if(z(Pr,w)&&(B=Pr[w],w="%"+B[0]+"%"),z(J,w)){var V=J[w];if(V===k&&(V=_r(w)),typeof V>"u"&&!q)throw new u("intrinsic "+P+" exists, but is not available. Please file an issue!");return{alias:B,name:w,value:V}}throw new a("intrinsic "+P+" does not exist!")};return et=function(P,q){if(typeof P!="string"||P.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof q!="boolean")throw new u('"allowMissing" argument must be a boolean');if(d(/^%?[^%]*%?$/,P)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var w=R(P),B=w.length>0?w[0]:"",V=x("%"+B+"%",q),Y=V.name,K=V.value,X=!1,rr=V.alias;rr&&(B=rr[0],xr(w,Ir([0,1],rr)));for(var cr=1,ir=!0;cr<w.length;cr+=1){var er=w[cr],lr=hr(er,0,1),pr=hr(er,-1);if((lr==='"'||lr==="'"||lr==="`"||pr==='"'||pr==="'"||pr==="`")&&lr!==pr)throw new a("property names with quotes must have matching quotes");if((er==="constructor"||!ir)&&(X=!0),B+="."+er,Y="%"+B+"%",z(J,Y))K=J[Y];else if(K!=null){if(!(er in K)){if(!q)throw new u("base intrinsic for "+P+" exists, but the property is not available.");return}if(I&&cr+1>=w.length){var yr=I(K,er);ir=!!yr,ir&&"get"in yr&&!("originalValue"in yr.get)?K=yr.get:K=K[er]}else ir=z(K,er),K=K[er];ir&&!X&&(J[Y]=K)}}return K},et}var tt,no;function ua(){if(no)return tt;no=1;var r=sr(),t=he(),e=ge()(),n=wr(),o=nr(),i=r("%Math.floor%");return tt=function(u,f){if(typeof u!="function")throw new o("`fn` is not a function");if(typeof f!="number"||f<0||f>4294967295||i(f)!==f)throw new o("`length` must be a positive 32-bit integer");var s=arguments.length>2&&!!arguments[2],y=!0,p=!0;if("length"in u&&n){var v=n(u,"length");v&&!v.configurable&&(y=!1),v&&!v.writable&&(p=!1)}return(y||p||!s)&&(e?t(u,"length",f,!0,!0):t(u,"length",f)),u},tt}var nt,oo;function fa(){if(oo)return nt;oo=1;var r=Cr(),t=He(),e=Xn();return nt=function(){return e(r,t,arguments)},nt}var io;function Rr(){return io||(io=1,(function(r){var t=ua(),e=Lr(),n=Ye(),o=fa();r.exports=function(a){var u=n(arguments),f=a.length-(arguments.length-1);return t(u,1+(f>0?f:0),!0)},e?e(r.exports,"apply",{value:o}):r.exports.apply=o})(be)),be.exports}var ot,ao;function Z(){if(ao)return ot;ao=1;var r=sr(),t=Ye(),e=t([r("%String.prototype.indexOf%")]);return ot=function(o,i){var a=r(o,!!i);return typeof a=="function"&&e(o,".prototype.")>-1?t([a]):a},ot}var it,uo;function fo(){if(uo)return it;uo=1;var r=ue(),t=Ur()(),e=Z(),n=we(),o=e("Array.prototype.push"),i=e("Object.prototype.propertyIsEnumerable"),a=t?n.getOwnPropertySymbols:null;return it=function(f,s){if(f==null)throw new TypeError("target must be an object");var y=n(f);if(arguments.length===1)return y;for(var p=1;p<arguments.length;++p){var v=n(arguments[p]),h=r(v),g=t&&(n.getOwnPropertySymbols||a);if(g)for(var S=g(v),A=0;A<S.length;++A){var O=S[A];i(v,O)&&o(h,O)}for(var I=0;I<h.length;++I){var b=h[I];if(i(v,b)){var T=v[b];y[b]=T}}}return y},it}var at,so;function co(){if(so)return at;so=1;var r=fo(),t=function(){if(!Object.assign)return!1;for(var n="abcdefghijklmnopqrst",o=n.split(""),i={},a=0;a<o.length;++a)i[o[a]]=o[a];var u=Object.assign({},i),f="";for(var s in u)f+=s;return n!==f},e=function(){if(!Object.assign||!Object.preventExtensions)return!1;var n=Object.preventExtensions({1:2});try{Object.assign(n,"xy")}catch{return n[1]==="y"}return!1};return at=function(){return!Object.assign||t()||e()?r:Object.assign},at}var ut,lo;function sa(){if(lo)return ut;lo=1;var r=Ar(),t=co();return ut=function(){var n=t();return r(Object,{assign:n},{assign:function(){return Object.assign!==n}}),n},ut}var ft,po;function ca(){if(po)return ft;po=1;var r=Ar(),t=Rr(),e=fo(),n=co(),o=sa(),i=t.apply(n()),a=function(f,s){return i(Object,arguments)};return r(a,{getPolyfill:n,implementation:e,shim:o}),ft=a,ft}var st,yo;function vo(){if(yo)return st;yo=1;var r=sr(),t=Rr(),e=t(r("String.prototype.indexOf"));return st=function(o,i){var a=r(o,!!i);return typeof a=="function"&&e(o,".prototype.")>-1?t(a):a},st}var ct,ho;function la(){if(ho)return ct;ho=1;var r=function(){return typeof(function(){}).name=="string"},t=Object.getOwnPropertyDescriptor;if(t)try{t([],"length")}catch{t=null}r.functionsHaveConfigurableNames=function(){if(!r()||!t)return!1;var o=t(function(){},"name");return!!o&&!!o.configurable};var e=Function.prototype.bind;return r.boundFunctionsHaveNames=function(){return r()&&typeof e=="function"&&(function(){}).bind().name!==""},ct=r,ct}var lt,go;function pa(){if(go)return lt;go=1;var r=he(),t=ge()(),e=la().functionsHaveConfigurableNames(),n=nr();return lt=function(i,a){if(typeof i!="function")throw new n("`fn` is not a function");var u=arguments.length>2&&!!arguments[2];return(!u||e)&&(t?r(i,"name",a,!0,!0):r(i,"name",a)),i},lt}var pt,mo;function bo(){if(mo)return pt;mo=1;var r=pa(),t=nr(),e=Object;return pt=r(function(){if(this==null||this!==e(this))throw new t("RegExp.prototype.flags getter called on non-object");var o="";return this.hasIndices&&(o+="d"),this.global&&(o+="g"),this.ignoreCase&&(o+="i"),this.multiline&&(o+="m"),this.dotAll&&(o+="s"),this.unicode&&(o+="u"),this.unicodeSets&&(o+="v"),this.sticky&&(o+="y"),o},"get flags",!0),pt}var yt,So;function wo(){if(So)return yt;So=1;var r=bo(),t=Ar().supportsDescriptors,e=Object.getOwnPropertyDescriptor;return yt=function(){if(t&&/a/mig.flags==="gim"){var o=e(RegExp.prototype,"flags");if(o&&typeof o.get=="function"&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var i="",a={};if(Object.defineProperty(a,"hasIndices",{get:function(){i+="d"}}),Object.defineProperty(a,"sticky",{get:function(){i+="y"}}),o.get.call(a),i==="dy")return o.get}}return r},yt}var vt,Ao;function ya(){if(Ao)return vt;Ao=1;var r=Ar().supportsDescriptors,t=wo(),e=wr(),n=Object.defineProperty,o=En(),i=Ze(),a=/a/;return vt=function(){if(!r||!i)throw new o("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var f=t(),s=i(a),y=e(s,"flags");return(!y||y.get!==f)&&n(s,"flags",{configurable:!0,enumerable:!1,get:f}),f},vt}var ht,Oo;function va(){if(Oo)return ht;Oo=1;var r=Ar(),t=Rr(),e=bo(),n=wo(),o=ya(),i=t(n());return r(i,{getPolyfill:n,implementation:e,shim:o}),ht=i,ht}var Fr={exports:{}},dt,Po;function Or(){if(Po)return dt;Po=1;var r=Ur();return dt=function(){return r()&&!!Symbol.toStringTag},dt}var gt,Io;function Eo(){if(Io)return gt;Io=1;var r=Or()(),t=Z(),e=t("Object.prototype.toString"),n=function(u){return r&&u&&typeof u=="object"&&Symbol.toStringTag in u?!1:e(u)==="[object Arguments]"},o=function(u){return n(u)?!0:u!==null&&typeof u=="object"&&"length"in u&&typeof u.length=="number"&&u.length>=0&&e(u)!=="[object Array]"&&"callee"in u&&e(u.callee)==="[object Function]"},i=(function(){return n(arguments)})();return n.isLegacyArguments=o,gt=i?n:o,gt}const ha=Ui(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var mt,qo;function Gr(){if(qo)return mt;qo=1;var r=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,e=r&&t&&typeof t.get=="function"?t.get:null,n=r&&Map.prototype.forEach,o=typeof Set=="function"&&Set.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,a=o&&i&&typeof i.get=="function"?i.get:null,u=o&&Set.prototype.forEach,f=typeof WeakMap=="function"&&WeakMap.prototype,s=f?WeakMap.prototype.has:null,y=typeof WeakSet=="function"&&WeakSet.prototype,p=y?WeakSet.prototype.has:null,v=typeof WeakRef=="function"&&WeakRef.prototype,h=v?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,S=Object.prototype.toString,A=Function.prototype.toString,O=String.prototype.match,I=String.prototype.slice,b=String.prototype.replace,T=String.prototype.toUpperCase,H=String.prototype.toLowerCase,W=RegExp.prototype.test,F=Array.prototype.concat,C=Array.prototype.join,E=Array.prototype.slice,D=Math.floor,U=typeof BigInt=="function"?BigInt.prototype.valueOf:null,k=Object.getOwnPropertySymbols,G=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,J=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ur=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===J||!0)?Symbol.toStringTag:null,_r=Object.prototype.propertyIsEnumerable,Pr=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(c){return c.__proto__}:null);function or(c,l){if(c===1/0||c===-1/0||c!==c||c&&c>-1e3&&c<1e3||W.call(/e/,l))return l;var M=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof c=="number"){var N=c<0?-D(-c):D(c);if(N!==c){var L=String(N),_=I.call(l,L.length+1);return b.call(L,M,"$&_")+"."+b.call(b.call(_,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(l,M,"$&_")}var z=ha,Ir=z.custom,xr=V(Ir)?Ir:null,Er={__proto__:null,double:'"',single:"'"},hr={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};mt=function c(l,M,N,L){var _=M||{};if(X(_,"quoteStyle")&&!X(Er,_.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(X(_,"maxStringLength")&&(typeof _.maxStringLength=="number"?_.maxStringLength<0&&_.maxStringLength!==1/0:_.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var mr=X(_,"customInspect")?_.customInspect:!0;if(typeof mr!="boolean"&&mr!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(X(_,"indent")&&_.indent!==null&&_.indent!==" "&&!(parseInt(_.indent,10)===_.indent&&_.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(X(_,"numericSeparator")&&typeof _.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var qr=_.numericSeparator;if(typeof l>"u")return"undefined";if(l===null)return"null";if(typeof l=="boolean")return l?"true":"false";if(typeof l=="string")return Tr(l,_);if(typeof l=="number"){if(l===0)return 1/0/l>0?"0":"-0";var tr=String(l);return qr?or(l,tr):tr}if(typeof l=="bigint"){var br=String(l)+"n";return qr?or(l,br):br}var on=typeof _.depth>"u"?5:_.depth;if(typeof N>"u"&&(N=0),N>=on&&on>0&&typeof l=="object")return R(l)?"[Array]":"[Object]";var jr=Pu(_,N);if(typeof L>"u")L=[];else if(ir(L,l)>=0)return"[Circular]";function ar(Mr,ne,Eu){if(ne&&(L=E.call(L),L.push(ne)),Eu){var Ni={depth:_.depth};return X(_,"quoteStyle")&&(Ni.quoteStyle=_.quoteStyle),c(Mr,Ni,N+1,L)}return c(Mr,_,N+1,L)}if(typeof l=="function"&&!j(l)){var ji=cr(l),Mi=ee(l,ar);return"[Function"+(ji?": "+ji:" (anonymous)")+"]"+(Mi.length>0?" { "+C.call(Mi,", ")+" }":"")}if(V(l)){var Ci=J?b.call(String(l),/^(Symbol\(.*\))_[^)]*$/,"$1"):G.call(l);return typeof l=="object"&&!J?gr(Ci):Ci}if(dr(l)){for(var kr="<"+H.call(String(l.nodeName)),an=l.attributes||[],te=0;te<an.length;te++)kr+=" "+an[te].name+"="+d(m(an[te].value),"double",_);return kr+=">",l.childNodes&&l.childNodes.length&&(kr+="..."),kr+="</"+H.call(String(l.nodeName))+">",kr}if(R(l)){if(l.length===0)return"[]";var un=ee(l,ar);return jr&&!Ou(un)?"["+nn(un,jr)+"]":"[ "+C.call(un,", ")+" ]"}if(P(l)){var fn=ee(l,ar);return!("cause"in Error.prototype)&&"cause"in l&&!_r.call(l,"cause")?"{ ["+String(l)+"] "+C.call(F.call("[cause]: "+ar(l.cause),fn),", ")+" }":fn.length===0?"["+String(l)+"]":"{ ["+String(l)+"] "+C.call(fn,", ")+" }"}if(typeof l=="object"&&mr){if(xr&&typeof l[xr]=="function"&&z)return z(l,{depth:on-N});if(mr!=="symbol"&&typeof l.inspect=="function")return l.inspect()}if(er(l)){var Fi=[];return n&&n.call(l,function(Mr,ne){Fi.push(ar(ne,l,!0)+" => "+ar(Mr,l))}),Ti("Map",e.call(l),Fi,jr)}if(yr(l)){var Di=[];return u&&u.call(l,function(Mr){Di.push(ar(Mr,l))}),Ti("Set",a.call(l),Di,jr)}if(lr(l))return tn("WeakMap");if(re(l))return tn("WeakSet");if(pr(l))return tn("WeakRef");if(w(l))return gr(ar(Number(l)));if(Y(l))return gr(ar(U.call(l)));if(B(l))return gr(g.call(l));if(q(l))return gr(ar(String(l)));if(typeof window<"u"&&l===window)return"{ [object Window] }";if(typeof globalThis<"u"&&l===globalThis||typeof Nr<"u"&&l===Nr)return"{ [object globalThis] }";if(!x(l)&&!j(l)){var sn=ee(l,ar),Wi=Pr?Pr(l)===Object.prototype:l instanceof Object||l.constructor===Object,cn=l instanceof Object?"":"null prototype",ki=!Wi&&ur&&Object(l)===l&&ur in l?I.call(rr(l),8,-1):cn?"Object":"",Iu=Wi||typeof l.constructor!="function"?"":l.constructor.name?l.constructor.name+" ":"",ln=Iu+(ki||cn?"["+C.call(F.call([],ki||[],cn||[]),": ")+"] ":"");return sn.length===0?ln+"{}":jr?ln+"{"+nn(sn,jr)+"}":ln+"{ "+C.call(sn,", ")+" }"}return String(l)};function d(c,l,M){var N=M.quoteStyle||l,L=Er[N];return L+c+L}function m(c){return b.call(String(c),/"/g,"&quot;")}function $(c){return!ur||!(typeof c=="object"&&(ur in c||typeof c[ur]<"u"))}function R(c){return rr(c)==="[object Array]"&&$(c)}function x(c){return rr(c)==="[object Date]"&&$(c)}function j(c){return rr(c)==="[object RegExp]"&&$(c)}function P(c){return rr(c)==="[object Error]"&&$(c)}function q(c){return rr(c)==="[object String]"&&$(c)}function w(c){return rr(c)==="[object Number]"&&$(c)}function B(c){return rr(c)==="[object Boolean]"&&$(c)}function V(c){if(J)return c&&typeof c=="object"&&c instanceof Symbol;if(typeof c=="symbol")return!0;if(!c||typeof c!="object"||!G)return!1;try{return G.call(c),!0}catch{}return!1}function Y(c){if(!c||typeof c!="object"||!U)return!1;try{return U.call(c),!0}catch{}return!1}var K=Object.prototype.hasOwnProperty||function(c){return c in this};function X(c,l){return K.call(c,l)}function rr(c){return S.call(c)}function cr(c){if(c.name)return c.name;var l=O.call(A.call(c),/^function\s*([\w$]+)/);return l?l[1]:null}function ir(c,l){if(c.indexOf)return c.indexOf(l);for(var M=0,N=c.length;M<N;M++)if(c[M]===l)return M;return-1}function er(c){if(!e||!c||typeof c!="object")return!1;try{e.call(c);try{a.call(c)}catch{return!0}return c instanceof Map}catch{}return!1}function lr(c){if(!s||!c||typeof c!="object")return!1;try{s.call(c,s);try{p.call(c,p)}catch{return!0}return c instanceof WeakMap}catch{}return!1}function pr(c){if(!h||!c||typeof c!="object")return!1;try{return h.call(c),!0}catch{}return!1}function yr(c){if(!a||!c||typeof c!="object")return!1;try{a.call(c);try{e.call(c)}catch{return!0}return c instanceof Set}catch{}return!1}function re(c){if(!p||!c||typeof c!="object")return!1;try{p.call(c,p);try{s.call(c,s)}catch{return!0}return c instanceof WeakSet}catch{}return!1}function dr(c){return!c||typeof c!="object"?!1:typeof HTMLElement<"u"&&c instanceof HTMLElement?!0:typeof c.nodeName=="string"&&typeof c.getAttribute=="function"}function Tr(c,l){if(c.length>l.maxStringLength){var M=c.length-l.maxStringLength,N="... "+M+" more character"+(M>1?"s":"");return Tr(I.call(c,0,l.maxStringLength),l)+N}var L=hr[l.quoteStyle||"single"];L.lastIndex=0;var _=b.call(b.call(c,L,"\\$1"),/[\x00-\x1f]/g,Wr);return d(_,"single",l)}function Wr(c){var l=c.charCodeAt(0),M={8:"b",9:"t",10:"n",12:"f",13:"r"}[l];return M?"\\"+M:"\\x"+(l<16?"0":"")+T.call(l.toString(16))}function gr(c){return"Object("+c+")"}function tn(c){return c+" { ? }"}function Ti(c,l,M,N){var L=N?nn(M,N):C.call(M,", ");return c+" ("+l+") {"+L+"}"}function Ou(c){for(var l=0;l<c.length;l++)if(ir(c[l],`
2
- `)>=0)return!1;return!0}function Pu(c,l){var M;if(c.indent===" ")M=" ";else if(typeof c.indent=="number"&&c.indent>0)M=C.call(Array(c.indent+1)," ");else return null;return{base:M,prev:C.call(Array(l+1),M)}}function nn(c,l){if(c.length===0)return"";var M=`
3
- `+l.prev+l.base;return M+C.call(c,","+M)+`
4
- `+l.prev}function ee(c,l){var M=R(c),N=[];if(M){N.length=c.length;for(var L=0;L<c.length;L++)N[L]=X(c,L)?l(c[L],c):""}var _=typeof k=="function"?k(c):[],mr;if(J){mr={};for(var qr=0;qr<_.length;qr++)mr["$"+_[qr]]=_[qr]}for(var tr in c)X(c,tr)&&(M&&String(Number(tr))===tr&&tr<c.length||J&&mr["$"+tr]instanceof Symbol||(W.call(/[^\w$]/,tr)?N.push(l(tr,c)+": "+l(c[tr],c)):N.push(tr+": "+l(c[tr],c))));if(typeof k=="function")for(var br=0;br<_.length;br++)_r.call(c,_[br])&&N.push("["+l(_[br])+"]: "+l(c[_[br]],c));return N}return mt}var bt,Ro;function da(){if(Ro)return bt;Ro=1;var r=Gr(),t=nr(),e=function(u,f,s){for(var y=u,p;(p=y.next)!=null;y=p)if(p.key===f)return y.next=p.next,s||(p.next=u.next,u.next=p),p},n=function(u,f){if(u){var s=e(u,f);return s&&s.value}},o=function(u,f,s){var y=e(u,f);y?y.value=s:u.next={key:f,next:u.next,value:s}},i=function(u,f){return u?!!e(u,f):!1},a=function(u,f){if(u)return e(u,f,!0)};return bt=function(){var f,s={assert:function(y){if(!s.has(y))throw new t("Side channel does not contain "+r(y))},delete:function(y){var p=f&&f.next,v=a(f,y);return v&&p&&p===v&&(f=void 0),!!v},get:function(y){return n(f,y)},has:function(y){return i(f,y)},set:function(y,p){f||(f={next:void 0}),o(f,y,p)}};return s},bt}var St,$o;function Bo(){if($o)return St;$o=1;var r=sr(),t=Z(),e=Gr(),n=nr(),o=r("%Map%",!0),i=t("Map.prototype.get",!0),a=t("Map.prototype.set",!0),u=t("Map.prototype.has",!0),f=t("Map.prototype.delete",!0),s=t("Map.prototype.size",!0);return St=!!o&&function(){var p,v={assert:function(h){if(!v.has(h))throw new n("Side channel does not contain "+e(h))},delete:function(h){if(p){var g=f(p,h);return s(p)===0&&(p=void 0),g}return!1},get:function(h){if(p)return i(p,h)},has:function(h){return p?u(p,h):!1},set:function(h,g){p||(p=new o),a(p,h,g)}};return v},St}var wt,_o;function ga(){if(_o)return wt;_o=1;var r=sr(),t=Z(),e=Gr(),n=Bo(),o=nr(),i=r("%WeakMap%",!0),a=t("WeakMap.prototype.get",!0),u=t("WeakMap.prototype.set",!0),f=t("WeakMap.prototype.has",!0),s=t("WeakMap.prototype.delete",!0);return wt=i?function(){var p,v,h={assert:function(g){if(!h.has(g))throw new o("Side channel does not contain "+e(g))},delete:function(g){if(i&&g&&(typeof g=="object"||typeof g=="function")){if(p)return s(p,g)}else if(n&&v)return v.delete(g);return!1},get:function(g){return i&&g&&(typeof g=="object"||typeof g=="function")&&p?a(p,g):v&&v.get(g)},has:function(g){return i&&g&&(typeof g=="object"||typeof g=="function")&&p?f(p,g):!!v&&v.has(g)},set:function(g,S){i&&g&&(typeof g=="object"||typeof g=="function")?(p||(p=new i),u(p,g,S)):n&&(v||(v=n()),v.set(g,S))}};return h}:n,wt}var At,xo;function To(){if(xo)return At;xo=1;var r=nr(),t=Gr(),e=da(),n=Bo(),o=ga(),i=o||n||e;return At=function(){var u,f={assert:function(s){if(!f.has(s))throw new r("Side channel does not contain "+t(s))},delete:function(s){return!!u&&u.delete(s)},get:function(s){return u&&u.get(s)},has:function(s){return!!u&&u.has(s)},set:function(s,y){u||(u=i()),u.set(s,y)}};return f},At}var Ot,jo;function ma(){if(jo)return Ot;jo=1;var r=rt(),t=To()(),e=nr(),n={assert:function(o,i){if(!o||typeof o!="object"&&typeof o!="function")throw new e("`O` is not an object");if(typeof i!="string")throw new e("`slot` must be a string");if(t.assert(o),!n.has(o,i))throw new e("`"+i+"` is not present on `O`")},get:function(o,i){if(!o||typeof o!="object"&&typeof o!="function")throw new e("`O` is not an object");if(typeof i!="string")throw new e("`slot` must be a string");var a=t.get(o);return a&&a["$"+i]},has:function(o,i){if(!o||typeof o!="object"&&typeof o!="function")throw new e("`O` is not an object");if(typeof i!="string")throw new e("`slot` must be a string");var a=t.get(o);return!!a&&r(a,"$"+i)},set:function(o,i,a){if(!o||typeof o!="object"&&typeof o!="function")throw new e("`O` is not an object");if(typeof i!="string")throw new e("`slot` must be a string");var u=t.get(o);u||(u={},t.set(o,u)),u["$"+i]=a}};return Object.freeze&&Object.freeze(n),Ot=n,Ot}var Pt,Mo;function ba(){if(Mo)return Pt;Mo=1;var r=ma(),t=ce(),e=typeof StopIteration=="object"?StopIteration:null;return Pt=function(o){if(!e)throw new t("this environment lacks StopIteration");r.set(o,"[[Done]]",!1);var i={next:function(){var u=r.get(this,"[[Iterator]]"),f=!!r.get(u,"[[Done]]");try{return{done:f,value:f?void 0:u.next()}}catch(s){if(r.set(u,"[[Done]]",!0),s!==e)throw s;return{done:!0,value:void 0}}}};return r.set(i,"[[Iterator]]",o),i},Pt}var It,Co;function Fo(){if(Co)return It;Co=1;var r={}.toString;return It=Array.isArray||function(t){return r.call(t)=="[object Array]"},It}var Et,Do;function Wo(){if(Do)return Et;Do=1;var r=Z(),t=r("String.prototype.valueOf"),e=function(u){try{return t(u),!0}catch{return!1}},n=r("Object.prototype.toString"),o="[object String]",i=Or()();return Et=function(u){return typeof u=="string"?!0:!u||typeof u!="object"?!1:i?e(u):n(u)===o},Et}var qt,ko;function No(){if(ko)return qt;ko=1;var r=typeof Map=="function"&&Map.prototype?Map:null,t=typeof Set=="function"&&Set.prototype?Set:null,e;r||(e=function(a){return!1});var n=r?Map.prototype.has:null,o=t?Set.prototype.has:null;return!e&&!n&&(e=function(a){return!1}),qt=e||function(a){if(!a||typeof a!="object")return!1;try{if(n.call(a),o)try{o.call(a)}catch{return!0}return a instanceof r}catch{}return!1},qt}var Rt,Lo;function Uo(){if(Lo)return Rt;Lo=1;var r=typeof Map=="function"&&Map.prototype?Map:null,t=typeof Set=="function"&&Set.prototype?Set:null,e;t||(e=function(a){return!1});var n=r?Map.prototype.has:null,o=t?Set.prototype.has:null;return!e&&!o&&(e=function(a){return!1}),Rt=e||function(a){if(!a||typeof a!="object")return!1;try{if(o.call(a),n)try{n.call(a)}catch{return!0}return a instanceof t}catch{}return!1},Rt}var Go;function Sa(){if(Go)return Fr.exports;Go=1;var r=Eo(),t=ba();if(Fe()()||Ur()()){var e=Symbol.iterator;Fr.exports=function(E){if(E!=null&&typeof E[e]<"u")return E[e]();if(r(E))return Array.prototype[e].call(E)}}else{var n=Fo(),o=Wo(),i=sr(),a=i("%Map%",!0),u=i("%Set%",!0),f=vo(),s=f("Array.prototype.push"),y=f("String.prototype.charCodeAt"),p=f("String.prototype.slice"),v=function(E,D){var U=E.length;if(D+1>=U)return D+1;var k=y(E,D);if(k<55296||k>56319)return D+1;var G=y(E,D+1);return G<56320||G>57343?D+1:D+2},h=function(E){var D=0;return{next:function(){var k=D>=E.length,G;return k||(G=E[D],D+=1),{done:k,value:G}}}},g=function(E,D){if(n(E)||r(E))return h(E);if(o(E)){var U=0;return{next:function(){var G=v(E,U),J=p(E,U,G);return U=G,{done:G>E.length,value:J}}}}if(D&&typeof E["_es6-shim iterator_"]<"u")return E["_es6-shim iterator_"]()};if(!a&&!u)Fr.exports=function(E){if(E!=null)return g(E,!0)};else{var S=No(),A=Uo(),O=f("Map.prototype.forEach",!0),I=f("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var b=f("Map.prototype.iterator",!0),T=f("Set.prototype.iterator",!0);var H=f("Map.prototype.@@iterator",!0)||f("Map.prototype._es6-shim iterator_",!0),W=f("Set.prototype.@@iterator",!0)||f("Set.prototype._es6-shim iterator_",!0),F=function(E){if(S(E)){if(b)return t(b(E));if(H)return H(E);if(O){var D=[];return O(E,function(k,G){s(D,[G,k])}),h(D)}}if(A(E)){if(T)return t(T(E));if(W)return W(E);if(I){var U=[];return I(E,function(k){s(U,k)}),h(U)}}};Fr.exports=function(E){return F(E)||g(E)}}}return Fr.exports}var $t,Ho;function zo(){if(Ho)return $t;Ho=1;var r=function(t){return t!==t};return $t=function(e,n){return e===0&&n===0?1/e===1/n:!!(e===n||r(e)&&r(n))},$t}var Bt,Vo;function Jo(){if(Vo)return Bt;Vo=1;var r=zo();return Bt=function(){return typeof Object.is=="function"?Object.is:r},Bt}var _t,Yo;function wa(){if(Yo)return _t;Yo=1;var r=Jo(),t=Ar();return _t=function(){var n=r();return t(Object,{is:n},{is:function(){return Object.is!==n}}),n},_t}var xt,Ko;function Aa(){if(Ko)return xt;Ko=1;var r=Ar(),t=Rr(),e=zo(),n=Jo(),o=wa(),i=t(n(),Object);return r(i,{getPolyfill:n,implementation:e,shim:o}),xt=i,xt}var Tt,Xo;function Zo(){if(Xo)return Tt;Xo=1;var r=Rr(),t=Z(),e=sr(),n=e("%ArrayBuffer%",!0),o=t("ArrayBuffer.prototype.byteLength",!0),i=t("Object.prototype.toString"),a=!!n&&!o&&new n(0).slice,u=!!a&&r(a);return Tt=o||u?function(s){if(!s||typeof s!="object")return!1;try{return o?o(s):u(s,0),!0}catch{return!1}}:n?function(s){return i(s)==="[object ArrayBuffer]"}:function(s){return!1},Tt}var jt,Qo;function Oa(){if(Qo)return jt;Qo=1;var r=Z(),t=r("Date.prototype.getDay"),e=function(u){try{return t(u),!0}catch{return!1}},n=r("Object.prototype.toString"),o="[object Date]",i=Or()();return jt=function(u){return typeof u!="object"||u===null?!1:i?e(u):n(u)===o},jt}var Mt,ri;function ei(){if(ri)return Mt;ri=1;var r=Z(),t=Or()(),e=rt(),n=wr(),o;if(t){var i=r("RegExp.prototype.exec"),a={},u=function(){throw a},f={toString:u,valueOf:u};typeof Symbol.toPrimitive=="symbol"&&(f[Symbol.toPrimitive]=u),o=function(v){if(!v||typeof v!="object")return!1;var h=n(v,"lastIndex"),g=h&&e(h,"value");if(!g)return!1;try{i(v,f)}catch(S){return S===a}}}else{var s=r("Object.prototype.toString"),y="[object RegExp]";o=function(v){return!v||typeof v!="object"&&typeof v!="function"?!1:s(v)===y}}return Mt=o,Mt}var Ct,ti;function Pa(){if(ti)return Ct;ti=1;var r=Z(),t=r("SharedArrayBuffer.prototype.byteLength",!0);return Ct=t?function(n){if(!n||typeof n!="object")return!1;try{return t(n),!0}catch{return!1}}:function(n){return!1},Ct}var Ft,ni;function Ia(){if(ni)return Ft;ni=1;var r=Z(),t=r("Number.prototype.toString"),e=function(u){try{return t(u),!0}catch{return!1}},n=r("Object.prototype.toString"),o="[object Number]",i=Or()();return Ft=function(u){return typeof u=="number"?!0:!u||typeof u!="object"?!1:i?e(u):n(u)===o},Ft}var Dt,oi;function Ea(){if(oi)return Dt;oi=1;var r=Z(),t=r("Boolean.prototype.toString"),e=r("Object.prototype.toString"),n=function(u){try{return t(u),!0}catch{return!1}},o="[object Boolean]",i=Or()();return Dt=function(u){return typeof u=="boolean"?!0:u===null||typeof u!="object"?!1:i?n(u):e(u)===o},Dt}var Hr={exports:{}},Wt,ii;function qa(){if(ii)return Wt;ii=1;var r=Z(),t=ei(),e=r("RegExp.prototype.exec"),n=nr();return Wt=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(u){return e(i,u)!==null}},Wt}var ai;function Ra(){if(ai)return Hr.exports;ai=1;var r=Z(),t=r("Object.prototype.toString"),e=Fe()(),n=qa();if(e){var o=r("Symbol.prototype.toString"),i=n(/^Symbol\(.*\)$/),a=function(f){return typeof f.valueOf()!="symbol"?!1:i(o(f))};Hr.exports=function(f){if(typeof f=="symbol")return!0;if(!f||typeof f!="object"||t(f)!=="[object Symbol]")return!1;try{return a(f)}catch{return!1}}}else Hr.exports=function(f){return!1};return Hr.exports}var zr={exports:{}},kt,ui;function $a(){if(ui)return kt;ui=1;var r=typeof BigInt<"u"&&BigInt;return kt=function(){return typeof r=="function"&&typeof BigInt=="function"&&typeof r(42)=="bigint"&&typeof BigInt(42)=="bigint"},kt}var fi;function Ba(){if(fi)return zr.exports;fi=1;var r=$a()();if(r){var t=BigInt.prototype.valueOf,e=function(o){try{return t.call(o),!0}catch{}return!1};zr.exports=function(o){return o===null||typeof o>"u"||typeof o=="boolean"||typeof o=="string"||typeof o=="number"||typeof o=="symbol"||typeof o=="function"?!1:typeof o=="bigint"?!0:e(o)}}else zr.exports=function(o){return!1};return zr.exports}var Nt,si;function _a(){if(si)return Nt;si=1;var r=Wo(),t=Ia(),e=Ea(),n=Ra(),o=Ba();return Nt=function(a){if(a==null||typeof a!="object"&&typeof a!="function")return null;if(r(a))return"String";if(t(a))return"Number";if(e(a))return"Boolean";if(n(a))return"Symbol";if(o(a))return"BigInt"},Nt}var Lt,ci;function xa(){if(ci)return Lt;ci=1;var r=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,t=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,e;r||(e=function(a){return!1});var n=r?r.prototype.has:null,o=t?t.prototype.has:null;return!e&&!n&&(e=function(a){return!1}),Lt=e||function(a){if(!a||typeof a!="object")return!1;try{if(n.call(a,n),o)try{o.call(a,o)}catch{return!0}return a instanceof r}catch{}return!1},Lt}var Vr={exports:{}},li;function Ta(){if(li)return Vr.exports;li=1;var r=sr(),t=Z(),e=r("%WeakSet%",!0),n=t("WeakSet.prototype.has",!0);if(n){var o=t("WeakMap.prototype.has",!0);Vr.exports=function(a){if(!a||typeof a!="object")return!1;try{if(n(a,n),o)try{o(a,o)}catch{return!0}return a instanceof e}catch{}return!1}}else Vr.exports=function(a){return!1};return Vr.exports}var Ut,pi;function ja(){if(pi)return Ut;pi=1;var r=No(),t=Uo(),e=xa(),n=Ta();return Ut=function(i){if(i&&typeof i=="object"){if(r(i))return"Map";if(t(i))return"Set";if(e(i))return"WeakMap";if(n(i))return"WeakSet"}return!1},Ut}var Gt,yi;function Ma(){if(yi)return Gt;yi=1;var r=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,e,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{e=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,e)}catch(I){I!==n&&(t=null)}else t=null;var o=/^\s*class\b/,i=function(b){try{var T=r.call(b);return o.test(T)}catch{return!1}},a=function(b){try{return i(b)?!1:(r.call(b),!0)}catch{return!1}},u=Object.prototype.toString,f="[object Object]",s="[object Function]",y="[object GeneratorFunction]",p="[object HTMLAllCollection]",v="[object HTML document.all class]",h="[object HTMLCollection]",g=typeof Symbol=="function"&&!!Symbol.toStringTag,S=!(0 in[,]),A=function(){return!1};if(typeof document=="object"){var O=document.all;u.call(O)===u.call(document.all)&&(A=function(b){if((S||!b)&&(typeof b>"u"||typeof b=="object"))try{var T=u.call(b);return(T===p||T===v||T===h||T===f)&&b("")==null}catch{}return!1})}return Gt=t?function(b){if(A(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;try{t(b,null,e)}catch(T){if(T!==n)return!1}return!i(b)&&a(b)}:function(b){if(A(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;if(g)return a(b);if(i(b))return!1;var T=u.call(b);return T!==s&&T!==y&&!/^\[object HTML/.test(T)?!1:a(b)},Gt}var Ht,vi;function Ca(){if(vi)return Ht;vi=1;var r=Ma(),t=Object.prototype.toString,e=Object.prototype.hasOwnProperty,n=function(f,s,y){for(var p=0,v=f.length;p<v;p++)e.call(f,p)&&(y==null?s(f[p],p,f):s.call(y,f[p],p,f))},o=function(f,s,y){for(var p=0,v=f.length;p<v;p++)y==null?s(f.charAt(p),p,f):s.call(y,f.charAt(p),p,f)},i=function(f,s,y){for(var p in f)e.call(f,p)&&(y==null?s(f[p],p,f):s.call(y,f[p],p,f))};function a(u){return t.call(u)==="[object Array]"}return Ht=function(f,s,y){if(!r(s))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=y),a(f)?n(f,s,p):typeof f=="string"?o(f,s,p):i(f,s,p)},Ht}var zt,hi;function Fa(){return hi||(hi=1,zt=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),zt}var Vt,di;function Da(){if(di)return Vt;di=1;var r=Fa(),t=typeof globalThis>"u"?Nr:globalThis;return Vt=function(){for(var n=[],o=0;o<r.length;o++)typeof t[r[o]]=="function"&&(n[n.length]=r[o]);return n},Vt}var Jt,gi;function Wa(){if(gi)return Jt;gi=1;var r=Ca(),t=Da(),e=Rr(),n=Z(),o=wr(),i=Ze(),a=n("Object.prototype.toString"),u=Or()(),f=typeof globalThis>"u"?Nr:globalThis,s=t(),y=n("String.prototype.slice"),p=n("Array.prototype.indexOf",!0)||function(A,O){for(var I=0;I<A.length;I+=1)if(A[I]===O)return I;return-1},v={__proto__:null};u&&o&&i?r(s,function(S){var A=new f[S];if(Symbol.toStringTag in A&&i){var O=i(A),I=o(O,Symbol.toStringTag);if(!I&&O){var b=i(O);I=o(b,Symbol.toStringTag)}v["$"+S]=e(I.get)}}):r(s,function(S){var A=new f[S],O=A.slice||A.set;O&&(v["$"+S]=e(O))});var h=function(A){var O=!1;return r(v,function(I,b){if(!O)try{"$"+I(A)===b&&(O=y(b,1))}catch{}}),O},g=function(A){var O=!1;return r(v,function(I,b){if(!O)try{I(A),O=y(b,1)}catch{}}),O};return Jt=function(A){if(!A||typeof A!="object")return!1;if(!u){var O=y(a(A),8,-1);return p(s,O)>-1?O:O!=="Object"?!1:g(A)}return o?h(A):null},Jt}var Yt,mi;function ka(){if(mi)return Yt;mi=1;var r=Z(),t=r("ArrayBuffer.prototype.byteLength",!0),e=Zo();return Yt=function(o){return e(o)?t?t(o):o.byteLength:NaN},Yt}var Kt,bi;function Na(){if(bi)return Kt;bi=1;var r=ca(),t=vo(),e=va(),n=sr(),o=Sa(),i=To(),a=Aa(),u=Eo(),f=Fo(),s=Zo(),y=Oa(),p=ei(),v=Pa(),h=ue(),g=_a(),S=ja(),A=Wa(),O=ka(),I=t("SharedArrayBuffer.prototype.byteLength",!0),b=t("Date.prototype.getTime"),T=Object.getPrototypeOf,H=t("Object.prototype.toString"),W=n("%Set%",!0),F=t("Map.prototype.has",!0),C=t("Map.prototype.get",!0),E=t("Map.prototype.size",!0),D=t("Set.prototype.add",!0),U=t("Set.prototype.delete",!0),k=t("Set.prototype.has",!0),G=t("Set.prototype.size",!0);function J(d,m,$,R){for(var x=o(d),j;(j=x.next())&&!j.done;)if(z(m,j.value,$,R))return U(d,j.value),!0;return!1}function ur(d){if(typeof d>"u")return null;if(typeof d!="object")return typeof d=="symbol"?!1:typeof d=="string"||typeof d=="number"?+d==+d:!0}function _r(d,m,$,R,x,j){var P=ur($);if(P!=null)return P;var q=C(m,P),w=r({},x,{strict:!1});return typeof q>"u"&&!F(m,P)||!z(R,q,w,j)?!1:!F(d,P)&&z(R,q,w,j)}function Pr(d,m,$){var R=ur($);return R??(k(m,R)&&!k(d,R))}function or(d,m,$,R,x,j){for(var P=o(d),q,w;(q=P.next())&&!q.done;)if(w=q.value,z($,w,x,j)&&z(R,C(m,w),x,j))return U(d,w),!0;return!1}function z(d,m,$,R){var x=$||{};if(x.strict?a(d,m):d===m)return!0;var j=g(d),P=g(m);if(j!==P)return!1;if(!d||!m||typeof d!="object"&&typeof m!="object")return x.strict?a(d,m):d==m;var q=R.has(d),w=R.has(m),B;if(q&&w){if(R.get(d)===R.get(m))return!0}else B={};return q||R.set(d,B),w||R.set(m,B),hr(d,m,x,R)}function Ir(d){return!d||typeof d!="object"||typeof d.length!="number"||typeof d.copy!="function"||typeof d.slice!="function"||d.length>0&&typeof d[0]!="number"?!1:!!(d.constructor&&d.constructor.isBuffer&&d.constructor.isBuffer(d))}function xr(d,m,$,R){if(G(d)!==G(m))return!1;for(var x=o(d),j=o(m),P,q,w;(P=x.next())&&!P.done;)if(P.value&&typeof P.value=="object")w||(w=new W),D(w,P.value);else if(!k(m,P.value)){if($.strict||!Pr(d,m,P.value))return!1;w||(w=new W),D(w,P.value)}if(w){for(;(q=j.next())&&!q.done;)if(q.value&&typeof q.value=="object"){if(!J(w,q.value,$.strict,R))return!1}else if(!$.strict&&!k(d,q.value)&&!J(w,q.value,$.strict,R))return!1;return G(w)===0}return!0}function Er(d,m,$,R){if(E(d)!==E(m))return!1;for(var x=o(d),j=o(m),P,q,w,B,V,Y;(P=x.next())&&!P.done;)if(B=P.value[0],V=P.value[1],B&&typeof B=="object")w||(w=new W),D(w,B);else if(Y=C(m,B),typeof Y>"u"&&!F(m,B)||!z(V,Y,$,R)){if($.strict||!_r(d,m,B,V,$,R))return!1;w||(w=new W),D(w,B)}if(w){for(;(q=j.next())&&!q.done;)if(B=q.value[0],Y=q.value[1],B&&typeof B=="object"){if(!or(w,d,B,Y,$,R))return!1}else if(!$.strict&&(!d.has(B)||!z(C(d,B),Y,$,R))&&!or(w,d,B,Y,r({},$,{strict:!1}),R))return!1;return G(w)===0}return!0}function hr(d,m,$,R){var x,j;if(typeof d!=typeof m||d==null||m==null||H(d)!==H(m)||u(d)!==u(m))return!1;var P=f(d),q=f(m);if(P!==q)return!1;var w=d instanceof Error,B=m instanceof Error;if(w!==B||(w||B)&&(d.name!==m.name||d.message!==m.message))return!1;var V=p(d),Y=p(m);if(V!==Y||(V||Y)&&(d.source!==m.source||e(d)!==e(m)))return!1;var K=y(d),X=y(m);if(K!==X||(K||X)&&b(d)!==b(m)||$.strict&&T&&T(d)!==T(m))return!1;var rr=A(d),cr=A(m);if(rr!==cr)return!1;if(rr||cr){if(d.length!==m.length)return!1;for(x=0;x<d.length;x++)if(d[x]!==m[x])return!1;return!0}var ir=Ir(d),er=Ir(m);if(ir!==er)return!1;if(ir||er){if(d.length!==m.length)return!1;for(x=0;x<d.length;x++)if(d[x]!==m[x])return!1;return!0}var lr=s(d),pr=s(m);if(lr!==pr)return!1;if(lr||pr)return O(d)!==O(m)?!1:typeof Uint8Array=="function"&&z(new Uint8Array(d),new Uint8Array(m),$,R);var yr=v(d),re=v(m);if(yr!==re)return!1;if(yr||re)return I(d)!==I(m)?!1:typeof Uint8Array=="function"&&z(new Uint8Array(d),new Uint8Array(m),$,R);if(typeof d!=typeof m)return!1;var dr=h(d),Tr=h(m);if(dr.length!==Tr.length)return!1;for(dr.sort(),Tr.sort(),x=dr.length-1;x>=0;x--)if(dr[x]!=Tr[x])return!1;for(x=dr.length-1;x>=0;x--)if(j=dr[x],!z(d[j],m[j],$,R))return!1;var Wr=S(d),gr=S(m);return Wr!==gr?!1:Wr==="Set"||gr==="Set"?xr(d,m,$,R):Wr==="Map"?Er(d,m,$,R):!0}return Kt=function(m,$,R){return z(m,$,R,i())},Kt}var La=Na();const Ua=Li(La);var Xt=function(r,t){return Xt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},Xt(r,t)};function Jr(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Xt(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function Ga(r,t,e,n){function o(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function u(y){try{s(n.next(y))}catch(p){a(p)}}function f(y){try{s(n.throw(y))}catch(p){a(p)}}function s(y){y.done?i(y.value):o(y.value).then(u,f)}s((n=n.apply(r,t||[])).next())})}function Si(r,t){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(s){return function(y){return f([s,y])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(e=0)),e;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,o=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1],i=s;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(s);break}i[2]&&e.ops.pop(),e.trys.pop();continue}s=t.call(r,e)}catch(y){s=[6,y],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function $r(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Yr(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(u){a={error:u}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(a)throw a.error}}return i}function Kr(r,t,e){if(e||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return r.concat(i||Array.prototype.slice.call(t))}function Br(r){return this instanceof Br?(this.v=r,this):new Br(r)}function Ha(r,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(r,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",a),o[Symbol.asyncIterator]=function(){return this},o;function a(h){return function(g){return Promise.resolve(g).then(h,p)}}function u(h,g){n[h]&&(o[h]=function(S){return new Promise(function(A,O){i.push([h,S,A,O])>1||f(h,S)})},g&&(o[h]=g(o[h])))}function f(h,g){try{s(n[h](g))}catch(S){v(i[0][3],S)}}function s(h){h.value instanceof Br?Promise.resolve(h.value.v).then(y,p):v(i[0][2],h)}function y(h){f("next",h)}function p(h){f("throw",h)}function v(h,g){h(g),i.shift(),i.length&&f(i[0][0],i[0][1])}}function za(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=r[Symbol.asyncIterator],e;return t?t.call(r):(r=typeof $r=="function"?$r(r):r[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(i){e[i]=r[i]&&function(a){return new Promise(function(u,f){a=r[i](a),o(u,f,a.done,a.value)})}}function o(i,a,u,f){Promise.resolve(f).then(function(s){i({value:s,done:u})},a)}}typeof SuppressedError=="function"&&SuppressedError;function Q(r){return typeof r=="function"}function wi(r){var t=function(n){Error.call(n),n.stack=new Error().stack},e=r(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Zt=wi(function(r){return function(e){r(this),this.message=e?e.length+` errors occurred during unsubscription:
5
- `+e.map(function(n,o){return o+1+") "+n.toString()}).join(`
6
- `):"",this.name="UnsubscriptionError",this.errors=e}});function Qt(r,t){if(r){var e=r.indexOf(t);0<=e&&r.splice(e,1)}}var Xr=(function(){function r(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var t,e,n,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var u=$r(a),f=u.next();!f.done;f=u.next()){var s=f.value;s.remove(this)}}catch(S){t={error:S}}finally{try{f&&!f.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}else a.remove(this);var y=this.initialTeardown;if(Q(y))try{y()}catch(S){i=S instanceof Zt?S.errors:[S]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var v=$r(p),h=v.next();!h.done;h=v.next()){var g=h.value;try{Pi(g)}catch(S){i=i??[],S instanceof Zt?i=Kr(Kr([],Yr(i)),Yr(S.errors)):i.push(S)}}}catch(S){n={error:S}}finally{try{h&&!h.done&&(o=v.return)&&o.call(v)}finally{if(n)throw n.error}}}if(i)throw new Zt(i)}},r.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Pi(t);else{if(t instanceof r){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},r.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},r.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},r.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Qt(e,t)},r.prototype.remove=function(t){var e=this._finalizers;e&&Qt(e,t),t instanceof r&&t._removeParent(this)},r.EMPTY=(function(){var t=new r;return t.closed=!0,t})(),r})(),Ai=Xr.EMPTY;function Oi(r){return r instanceof Xr||r&&"closed"in r&&Q(r.remove)&&Q(r.add)&&Q(r.unsubscribe)}function Pi(r){Q(r)?r():r.unsubscribe()}var Va={Promise:void 0},Ja={setTimeout:function(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return setTimeout.apply(void 0,Kr([r,t],Yr(e)))},clearTimeout:function(r){return clearTimeout(r)},delegate:void 0};function Ii(r){Ja.setTimeout(function(){throw r})}function Ei(){}function Zr(r){r()}var qi=(function(r){Jr(t,r);function t(e){var n=r.call(this)||this;return n.isStopped=!1,e?(n.destination=e,Oi(e)&&e.add(n)):n.destination=Xa,n}return t.create=function(e,n,o){return new Dr(e,n,o)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(Xr),Ya=(function(){function r(t){this.partialObserver=t}return r.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(n){Qr(n)}},r.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(n){Qr(n)}else Qr(t)},r.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){Qr(e)}},r})(),Dr=(function(r){Jr(t,r);function t(e,n,o){var i=r.call(this)||this,a;return Q(e)||!e?a={next:e??void 0,error:n??void 0,complete:o??void 0}:a=e,i.destination=new Ya(a),i}return t})(qi);function Qr(r){Ii(r)}function Ka(r){throw r}var Xa={closed:!0,next:Ei,error:Ka,complete:Ei},rn=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function Za(r){return r}function Qa(r){return r.length===0?Za:r.length===1?r[0]:function(e){return r.reduce(function(n,o){return o(n)},e)}}var vr=(function(){function r(t){t&&(this._subscribe=t)}return r.prototype.lift=function(t){var e=new r;return e.source=this,e.operator=t,e},r.prototype.subscribe=function(t,e,n){var o=this,i=eu(t)?t:new Dr(t,e,n);return Zr(function(){var a=o,u=a.operator,f=a.source;i.add(u?u.call(i,f):f?o._subscribe(i):o._trySubscribe(i))}),i},r.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},r.prototype.forEach=function(t,e){var n=this;return e=Ri(e),new e(function(o,i){var a=new Dr({next:function(u){try{t(u)}catch(f){i(f),a.unsubscribe()}},error:i,complete:o});n.subscribe(a)})},r.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},r.prototype[rn]=function(){return this},r.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Qa(t)(this)},r.prototype.toPromise=function(t){var e=this;return t=Ri(t),new t(function(n,o){var i;e.subscribe(function(a){return i=a},function(a){return o(a)},function(){return n(i)})})},r.create=function(t){return new r(t)},r})();function Ri(r){var t;return(t=r??Va.Promise)!==null&&t!==void 0?t:Promise}function ru(r){return r&&Q(r.next)&&Q(r.error)&&Q(r.complete)}function eu(r){return r&&r instanceof qi||ru(r)&&Oi(r)}function tu(r){return Q(r?.lift)}function nu(r){return function(t){if(tu(t))return t.lift(function(e){try{return r(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}var ou=wi(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),$i=(function(r){Jr(t,r);function t(){var e=r.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var n=new Bi(this,this);return n.operator=e,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new ou},t.prototype.next=function(e){var n=this;Zr(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=$r(n.currentObservers),u=a.next();!u.done;u=a.next()){var f=u.value;f.next(e)}}catch(s){o={error:s}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}}})},t.prototype.error=function(e){var n=this;Zr(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=e;for(var o=n.observers;o.length;)o.shift().error(e)}})},t.prototype.complete=function(){var e=this;Zr(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var n=e.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var n=this,o=this,i=o.hasError,a=o.isStopped,u=o.observers;return i||a?Ai:(this.currentObservers=null,u.push(e),new Xr(function(){n.currentObservers=null,Qt(u,e)}))},t.prototype._checkFinalizedStatuses=function(e){var n=this,o=n.hasError,i=n.thrownError,a=n.isStopped;o?e.error(i):a&&e.complete()},t.prototype.asObservable=function(){var e=new vr;return e.source=this,e},t.create=function(e,n){return new Bi(e,n)},t})(vr),Bi=(function(r){Jr(t,r);function t(e,n){var o=r.call(this)||this;return o.destination=e,o.source=n,o}return t.prototype.next=function(e){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,e)},t.prototype.error=function(e){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,e)},t.prototype.complete=function(){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||n===void 0||n.call(e)},t.prototype._subscribe=function(e){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(e))!==null&&o!==void 0?o:Ai},t})($i),iu=(function(r){return r&&typeof r.length=="number"&&typeof r!="function"});function au(r){return Q(r?.then)}function uu(r){return Q(r[rn])}function fu(r){return Symbol.asyncIterator&&Q(r?.[Symbol.asyncIterator])}function su(r){return new TypeError("You provided "+(r!==null&&typeof r=="object"?"an invalid object":"'"+r+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function cu(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var lu=cu();function pu(r){return Q(r?.[lu])}function yu(r){return Ha(this,arguments,function(){var e,n,o,i;return Si(this,function(a){switch(a.label){case 0:e=r.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,Br(e.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,Br(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,Br(o)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function vu(r){return Q(r?.getReader)}function _i(r){if(r instanceof vr)return r;if(r!=null){if(uu(r))return hu(r);if(iu(r))return du(r);if(au(r))return gu(r);if(fu(r))return xi(r);if(pu(r))return mu(r);if(vu(r))return bu(r)}throw su(r)}function hu(r){return new vr(function(t){var e=r[rn]();if(Q(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function du(r){return new vr(function(t){for(var e=0;e<r.length&&!t.closed;e++)t.next(r[e]);t.complete()})}function gu(r){return new vr(function(t){r.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,Ii)})}function mu(r){return new vr(function(t){var e,n;try{for(var o=$r(r),i=o.next();!i.done;i=o.next()){var a=i.value;if(t.next(a),t.closed)return}}catch(u){e={error:u}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}t.complete()})}function xi(r){return new vr(function(t){Su(r,t).catch(function(e){return t.error(e)})})}function bu(r){return xi(yu(r))}function Su(r,t){var e,n,o,i;return Ga(this,void 0,void 0,function(){var a,u;return Si(this,function(f){switch(f.label){case 0:f.trys.push([0,5,6,11]),e=za(r),f.label=1;case 1:return[4,e.next()];case 2:if(n=f.sent(),!!n.done)return[3,4];if(a=n.value,t.next(a),t.closed)return[2];f.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return u=f.sent(),o={error:u},[3,11];case 6:return f.trys.push([6,,9,10]),n&&!n.done&&(i=e.return)?[4,i.call(e)]:[3,8];case 7:f.sent(),f.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function wu(r){r===void 0&&(r={});var t=r.connector,e=t===void 0?function(){return new $i}:t,n=r.resetOnError,o=n===void 0?!0:n,i=r.resetOnComplete,a=i===void 0?!0:i,u=r.resetOnRefCountZero,f=u===void 0?!0:u;return function(s){var y,p,v,h=0,g=!1,S=!1,A=function(){p?.unsubscribe(),p=void 0},O=function(){A(),y=v=void 0,g=S=!1},I=function(){var b=y;O(),b?.unsubscribe()};return nu(function(b,T){h++,!S&&!g&&A();var H=v=v??e();T.add(function(){h--,h===0&&!S&&!g&&(p=en(I,f))}),H.subscribe(T),!y&&h>0&&(y=new Dr({next:function(W){return H.next(W)},error:function(W){S=!0,A(),p=en(O,o,W),H.error(W)},complete:function(){g=!0,A(),p=en(O,a),H.complete()}}),_i(b).subscribe(y))})(s)}}function en(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];if(t===!0){r();return}if(t!==!1){var o=new Dr({next:function(){o.unsubscribe(),r()}});return _i(t.apply(void 0,Kr([],Yr(e)))).subscribe(o)}}function Au({pipe:r}){return{createTopic(t){function e(n,{onData:o,...i}){const[a,u]=fr.useState(),f=fr.useRef(o),s=fr.useRef(i);f.current=o,s.current=i;const y=fr.useRef(null);return(y.current===null||!Ua(y.current,n))&&(y.current=n),fr.useEffect(()=>{const v=r.topic(t,y.current).pipe(wu()).subscribe(h=>{u(h),f.current?.(h);const[g,S]=h;s.current[g]?.(S)});return()=>v.unsubscribe()},[y.current]),{data:a}}return e.topic=n=>r.topic(t,n),e}}}Sr.mkPipeClient=Au,Object.defineProperty(Sr,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("react"),require("deep-equal"),require("rxjs")):typeof define=="function"&&define.amd?define(["exports","react","deep-equal","rxjs"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e["@leancodepl/hook-pipe-client"]={},e.react,e.deepEqual,e.rxjs))})(this,(function(e,t,l,a){"use strict";function m({pipe:i}){return{createTopic(c){function s(r,{onData:o,...f}){const[q,b]=t.useState(),p=t.useRef(o),d=t.useRef(f);p.current=o,d.current=f;const n=t.useRef(null);return(n.current===null||!l(n.current,r))&&(n.current=r),t.useEffect(()=>{const h=i.topic(c,n.current).pipe(a.share()).subscribe(u=>{b(u),p.current?.(u);const[j,x]=u;d.current[j]?.(x)});return()=>h.unsubscribe()},[n.current]),{data:q}}return s.topic=r=>i.topic(c,r),s}}}e.mkPipeClient=m,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leancodepl/hook-pipe-client",
3
- "version": "9.7.4",
3
+ "version": "10.0.1",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",