Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dappworks/urpc

Package Overview
Dependencies
Maintainers
4
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dappworks/urpc - npm Package Compare versions

Comparing version 0.0.16 to 0.0.17

5

dist/index.d.ts

@@ -42,3 +42,6 @@ // Generated by dts-bundle-generator v9.5.1

get: T;
patch?: (value: Operation[]) => PatchResult<any>;
patch?: ((value: Operation[]) => PatchResult<any>);
allow?: {
patch?: Boolean;
};
set?: R extends () => infer U ? (value: ReturnType<T>) => U : never;

@@ -45,0 +48,0 @@ uiConfig?: () => FormConfigType<Item<ReturnType<T>>>;

6

dist/index.js

@@ -1,9 +0,9 @@

var x$=Object.create;var{defineProperty:gU,getPrototypeOf:g$,getOwnPropertyNames:m$}=Object;var j$=Object.prototype.hasOwnProperty;var mU=(U,Z,$)=>{$=U!=null?x$(g$(U)):{};const Q=Z||!U||!U.__esModule?gU($,"default",{value:U,enumerable:!0}):$;for(let R of m$(U))if(!j$.call(Q,R))gU(Q,R,{get:()=>U[R],enumerable:!0});return Q};var jU=(U,Z)=>()=>(Z||U((Z={exports:{}}).exports,Z),Z.exports);var dU=(U,Z)=>{for(var $ in Z)gU(U,$,{get:Z[$],enumerable:!0,configurable:!0,set:(Q)=>Z[$]=()=>Q})};var TZ=jU((p8,PZ)=>{var t$=function(U,Z){return U==null?void 0:U[Z]},a$=function(U){var Z=!1;if(U!=null&&typeof U.toString!="function")try{Z=!!(U+"")}catch($){}return Z},f=function(U){var Z=-1,$=U?U.length:0;this.clear();while(++Z<$){var Q=U[Z];this.set(Q[0],Q[1])}},RQ=function(){this.__data__=l?l(null):{}},XQ=function(U){return this.has(U)&&delete this.__data__[U]},YQ=function(U){var Z=this.__data__;if(l){var $=Z[U];return $===_Z?void 0:$}return RU.call(Z,U)?Z[U]:void 0},BQ=function(U){var Z=this.__data__;return l?Z[U]!==void 0:RU.call(Z,U)},WQ=function(U,Z){var $=this.__data__;return $[U]=l&&Z===void 0?_Z:Z,this},k=function(U){var Z=-1,$=U?U.length:0;this.clear();while(++Z<$){var Q=U[Z];this.set(Q[0],Q[1])}},JQ=function(){this.__data__=[]},GQ=function(U){var Z=this.__data__,$=XU(Z,U);if($<0)return!1;var Q=Z.length-1;if($==Q)Z.pop();else $Q.call(Z,$,1);return!0},KQ=function(U){var Z=this.__data__,$=XU(Z,U);return $<0?void 0:Z[$][1]},qQ=function(U){return XU(this.__data__,U)>-1},wQ=function(U,Z){var $=this.__data__,Q=XU($,U);if(Q<0)$.push([U,Z]);else $[Q][1]=Z;return this},x=function(U){var Z=-1,$=U?U.length:0;this.clear();while(++Z<$){var Q=U[Z];this.set(Q[0],Q[1])}},NQ=function(){this.__data__={hash:new f,map:new(QQ||k),string:new f}},FQ=function(U){return YU(this,U).delete(U)},zQ=function(U){return YU(this,U).get(U)},LQ=function(U){return YU(this,U).has(U)},HQ=function(U,Z){return YU(this,U).set(U,Z),this},_Q=function(U,Z,$){var Q=U[Z];if(!(RU.call(U,Z)&&AZ(Q,$))||$===void 0&&!(Z in U))U[Z]=$},XU=function(U,Z){var $=U.length;while($--)if(AZ(U[$][0],Z))return $;return-1},SQ=function(U){if(!QU(U)||PQ(U))return!1;var Z=fQ(U)||a$(U)?ZQ:s$;return Z.test(VQ(U))},MQ=function(U,Z,$,Q){if(!QU(U))return U;Z=AQ(Z,U)?[Z]:EQ(Z);var R=-1,X=Z.length,Y=X-1,B=U;while(B!=null&&++R<X){var W=CQ(Z[R]),G=$;if(R!=Y){var J=B[W];if(G=Q?Q(J,W,B):void 0,G===void 0)G=QU(J)?J:IQ(Z[R+1])?[]:{}}_Q(B,W,G),B=B[W]}return U},DQ=function(U){if(typeof U=="string")return U;if(yU(U))return HZ?HZ.call(U):"";var Z=U+"";return Z=="0"&&1/U==-SZ?"-0":Z},EQ=function(U){return OZ(U)?U:TQ(U)},YU=function(U,Z){var $=U.__data__;return OQ(Z)?$[typeof Z=="string"?"string":"hash"]:$.map},IZ=function(U,Z){var $=t$(U,Z);return SQ($)?$:void 0},IQ=function(U,Z){return Z=Z==null?k$:Z,!!Z&&(typeof U=="number"||l$.test(U))&&(U>-1&&U%1==0&&U<Z)},AQ=function(U,Z){if(OZ(U))return!1;var $=typeof U;if($=="number"||$=="symbol"||$=="boolean"||U==null||yU(U))return!0;return b$.test(U)||!h$.test(U)||Z!=null&&U in Object(Z)},OQ=function(U){var Z=typeof U;return Z=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?U!=="__proto__":U===null},PQ=function(U){return!!FZ&&FZ in U},CQ=function(U){if(typeof U=="string"||yU(U))return U;var Z=U+"";return Z=="0"&&1/U==-SZ?"-0":Z},VQ=function(U){if(U!=null){try{return DZ.call(U)}catch(Z){}try{return U+""}catch(Z){}}return""},vU=function(U,Z){if(typeof U!="function"||Z&&typeof Z!="function")throw new TypeError(d$);var $=function(){var Q=arguments,R=Z?Z.apply(this,Q):Q[0],X=$.cache;if(X.has(R))return X.get(R);var Y=U.apply(this,Q);return $.cache=X.set(R,Y),Y};return $.cache=new(vU.Cache||x),$},AZ=function(U,Z){return U===Z||U!==U&&Z!==Z},fQ=function(U){var Z=QU(U)?EZ.call(U):"";return Z==p$||Z==v$},QU=function(U){var Z=typeof U;return!!U&&(Z=="object"||Z=="function")},xQ=function(U){return!!U&&typeof U=="object"},yU=function(U){return typeof U=="symbol"||xQ(U)&&EZ.call(U)==y$},gQ=function(U){return U==null?"":DQ(U)},mQ=function(U,Z,$){return U==null?U:MQ(U,Z,$)},d$="Expected a function",_Z="__lodash_hash_undefined__",SZ=Infinity,k$=9007199254740991,p$="[object Function]",v$="[object GeneratorFunction]",y$="[object Symbol]",h$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,b$=/^\w*$/,n$=/^\./,i$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c$=/[\\^$.*+?()[\]{}|]/g,u$=/\\(\\)?/g,s$=/^\[object .+?Constructor\]$/,l$=/^(?:0|[1-9]\d*)$/,r$=typeof global=="object"&&global&&global.Object===Object&&global,o$=typeof self=="object"&&self&&self.Object===Object&&self,pU=r$||o$||Function("return this")(),e$=Array.prototype,UQ=Function.prototype,MZ=Object.prototype,kU=pU["__core-js_shared__"],FZ=function(){var U=/[^.]+$/.exec(kU&&kU.keys&&kU.keys.IE_PROTO||"");return U?"Symbol(src)_1."+U:""}(),DZ=UQ.toString,RU=MZ.hasOwnProperty,EZ=MZ.toString,ZQ=RegExp("^"+DZ.call(RU).replace(c$,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zZ=pU.Symbol,$Q=e$.splice,QQ=IZ(pU,"Map"),l=IZ(Object,"create"),LZ=zZ?zZ.prototype:void 0,HZ=LZ?LZ.toString:void 0;f.prototype.clear=RQ;f.prototype.delete=XQ;f.prototype.get=YQ;f.prototype.has=BQ;f.prototype.set=WQ;k.prototype.clear=JQ;k.prototype.delete=GQ;k.prototype.get=KQ;k.prototype.has=qQ;k.prototype.set=wQ;x.prototype.clear=NQ;x.prototype.delete=FQ;x.prototype.get=zQ;x.prototype.has=LQ;x.prototype.set=HQ;var TQ=vU(function(U){U=gQ(U);var Z=[];if(n$.test(U))Z.push("");return U.replace(i$,function($,Q,R,X){Z.push(R?X.replace(u$,"$1"):Q||$)}),Z});vU.Cache=x;var OZ=Array.isArray;PZ.exports=mQ});var J$=jU((GU,v)=>{var Y1=function(U,Z,$,Q){var R=-1,X=U?U.length:0;while(++R<X){var Y=U[R];Z(Q,Y,$(Y),U)}return Q},B1=function(U,Z){var $=-1,Q=U?U.length:0;while(++$<Q)if(Z(U[$],$,U))return!0;return!1},W1=function(U){return function(Z){return Z==null?void 0:Z[U]}},J1=function(U,Z){var $=-1,Q=Array(U);while(++$<U)Q[$]=Z($);return Q},G1=function(U){return function(Z){return U(Z)}},K1=function(U,Z){return U==null?void 0:U[Z]},sU=function(U){var Z=!1;if(U!=null&&typeof U.toString!="function")try{Z=!!(U+"")}catch($){}return Z},q1=function(U){var Z=-1,$=Array(U.size);return U.forEach(function(Q,R){$[++Z]=[R,Q]}),$},w1=function(U,Z){return function($){return U(Z($))}},N1=function(U){var Z=-1,$=Array(U.size);return U.forEach(function(Q){$[++Z]=Q}),$},g=function(U){var Z=-1,$=U?U.length:0;this.clear();while(++Z<$){var Q=U[Z];this.set(Q[0],Q[1])}},O1=function(){this.__data__=o?o(null):{}},P1=function(U){return this.has(U)&&delete this.__data__[U]},T1=function(U){var Z=this.__data__;if(o){var $=Z[U];return $===aU?void 0:$}return D.call(Z,U)?Z[U]:void 0},C1=function(U){var Z=this.__data__;return o?Z[U]!==void 0:D.call(Z,U)},V1=function(U,Z){var $=this.__data__;return $[U]=o&&Z===void 0?aU:Z,this},E=function(U){var Z=-1,$=U?U.length:0;this.clear();while(++Z<$){var Q=U[Z];this.set(Q[0],Q[1])}},f1=function(){this.__data__=[]},x1=function(U){var Z=this.__data__,$=SU(Z,U);if($<0)return!1;var Q=Z.length-1;if($==Q)Z.pop();else _1.call(Z,$,1);return!0},g1=function(U){var Z=this.__data__,$=SU(Z,U);return $<0?void 0:Z[$][1]},m1=function(U){return SU(this.__data__,U)>-1},j1=function(U,Z){var $=this.__data__,Q=SU($,U);if(Q<0)$.push([U,Z]);else $[Q][1]=Z;return this},I=function(U){var Z=-1,$=U?U.length:0;this.clear();while(++Z<$){var Q=U[Z];this.set(Q[0],Q[1])}},d1=function(){this.__data__={hash:new g,map:new(r||E),string:new g}},k1=function(U){return MU(this,U).delete(U)},p1=function(U){return MU(this,U).get(U)},v1=function(U){return MU(this,U).has(U)},y1=function(U,Z){return MU(this,U).set(U,Z),this},zU=function(U){var Z=-1,$=U?U.length:0;this.__data__=new I;while(++Z<$)this.add(U[Z])},h1=function(U){return this.__data__.set(U,aU),this},b1=function(U){return this.__data__.has(U)},M=function(U){this.__data__=new E(U)},n1=function(){this.__data__=new E},i1=function(U){return this.__data__.delete(U)},c1=function(U){return this.__data__.get(U)},u1=function(U){return this.__data__.has(U)},s1=function(U,Z){var $=this.__data__;if($ instanceof E){var Q=$.__data__;if(!r||Q.length<pQ-1)return Q.push([U,Z]),this;$=this.__data__=new I(Q)}return $.set(U,Z),this},l1=function(U,Z){var $=P(U)||B$(U)?J1(U.length,String):[],Q=$.length,R=!!Q;for(var X in U)if((Z||D.call(U,X))&&!(R&&(X=="length"||Q$(X,Q))))$.push(X);return $},SU=function(U,Z){var $=U.length;while($--)if(Y$(U[$][0],Z))return $;return-1},r1=function(U,Z,$,Q){return o1(U,function(R,X,Y){Z(Q,R,$(R),Y)}),Q},a1=function(U,Z){return U&&t1(U,Z,LU)},U$=function(U,Z){Z=DU(Z,U)?[Z]:Z$(Z);var $=0,Q=Z.length;while(U!=null&&$<Q)U=U[EU(Z[$++])];return $&&$==Q?U:void 0},e1=function(U){return h.call(U)},U6=function(U,Z){return U!=null&&Z in Object(U)},eU=function(U,Z,$,Q,R){if(U===Z)return!0;if(U==null||Z==null||!IU(U)&&!AU(Z))return U!==U&&Z!==Z;return Z6(U,Z,eU,$,Q,R)},Z6=function(U,Z,$,Q,R,X){var Y=P(U),B=P(Z),W=cU,G=cU;if(!Y)W=O(U),W=W==KU?p:W;if(!B)G=O(Z),G=G==KU?p:G;var J=W==p&&!sU(U),w=G==p&&!sU(Z),K=W==G;if(K&&!J)return X||(X=new M),Y||I6(U)?$$(U,Z,$,Q,R,X):N6(U,Z,W,$,Q,R,X);if(!(R&y)){var q=J&&D.call(U,"__wrapped__"),H=w&&D.call(Z,"__wrapped__");if(q||H){var A=q?U.value():U,S=H?Z.value():Z;return X||(X=new M),$(A,S,Q,R,X)}}if(!K)return!1;return X||(X=new M),F6(U,Z,$,Q,R,X)},$6=function(U,Z,$,Q){var R=$.length,X=R,Y=!Q;if(U==null)return!X;U=Object(U);while(R--){var B=$[R];if(Y&&B[2]?B[1]!==U[B[0]]:!(B[0]in U))return!1}while(++R<X){B=$[R];var W=B[0],G=U[W],J=B[1];if(Y&&B[2]){if(G===void 0&&!(W in U))return!1}else{var w=new M;if(Q)var K=Q(G,J,W,U,Z,w);if(!(K===void 0?eU(J,G,Q,HU|y,w):K))return!1}}return!0},Q6=function(U){if(!IU(U)||_6(U))return!1;var Z=W$(U)||sU(U)?L1:$1;return Z.test(m(U))},R6=function(U){return AU(U)&&$Z(U.length)&&!!N[h.call(U)]},X6=function(U){if(typeof U=="function")return U;if(U==null)return T6;if(typeof U=="object")return P(U)?W6(U[0],U[1]):B6(U);return C6(U)},Y6=function(U){if(!S6(U))return S1(U);var Z=[];for(var $ in Object(U))if(D.call(U,$)&&$!="constructor")Z.push($);return Z},B6=function(U){var Z=z6(U);if(Z.length==1&&Z[0][2])return X$(Z[0][0],Z[0][1]);return function($){return $===U||$6($,U,Z)}},W6=function(U,Z){if(DU(U)&&R$(Z))return X$(EU(U),Z);return function($){var Q=O6($,U);return Q===void 0&&Q===Z?P6($,U):eU(Z,Q,void 0,HU|y)}},J6=function(U){return function(Z){return U$(Z,U)}},G6=function(U){if(typeof U=="string")return U;if(QZ(U))return vZ?vZ.call(U):"";var Z=U+"";return Z=="0"&&1/U==-yZ?"-0":Z},Z$=function(U){return P(U)?U:M6(U)},K6=function(U,Z){return function($,Q){var R=P($)?Y1:r1,X=Z?Z():{};return R($,U,X6(Q,2),X)}},q6=function(U,Z){return function($,Q){if($==null)return $;if(!ZZ($))return U($,Q);var R=$.length,X=Z?R:-1,Y=Object($);while(Z?X--:++X<R)if(Q(Y[X],X,Y)===!1)break;return $}},w6=function(U){return function(Z,$,Q){var R=-1,X=Object(Z),Y=Q(Z),B=Y.length;while(B--){var W=Y[U?B:++R];if($(X[W],W,X)===!1)break}return Z}},$$=function(U,Z,$,Q,R,X){var Y=R&y,B=U.length,W=Z.length;if(B!=W&&!(Y&&W>B))return!1;var G=X.get(U);if(G&&X.get(Z))return G==Z;var J=-1,w=!0,K=R&HU?new zU:void 0;X.set(U,Z),X.set(Z,U);while(++J<B){var q=U[J],H=Z[J];if(Q)var A=Y?Q(H,q,J,Z,U,X):Q(q,H,J,U,Z,X);if(A!==void 0){if(A)continue;w=!1;break}if(K){if(!B1(Z,function(S,V){if(!K.has(V)&&(q===S||$(q,S,Q,R,X)))return K.add(V)})){w=!1;break}}else if(!(q===H||$(q,H,Q,R,X))){w=!1;break}}return X.delete(U),X.delete(Z),w},N6=function(U,Z,$,Q,R,X,Y){switch($){case NU:if(U.byteLength!=Z.byteLength||U.byteOffset!=Z.byteOffset)return!1;U=U.buffer,Z=Z.buffer;case oZ:if(U.byteLength!=Z.byteLength||!Q(new pZ(U),new pZ(Z)))return!1;return!0;case bZ:case nZ:case uZ:return Y$(+U,+Z);case iZ:return U.name==Z.name&&U.message==Z.message;case sZ:case lZ:return U==Z+"";case qU:var B=q1;case wU:var W=X&y;if(B||(B=N1),U.size!=Z.size&&!W)return!1;var G=Y.get(U);if(G)return G==Z;X|=HU,Y.set(U,Z);var J=$$(B(U),B(Z),Q,R,X,Y);return Y.delete(U),J;case rZ:if(iU)return iU.call(U)==iU.call(Z)}return!1},F6=function(U,Z,$,Q,R,X){var Y=R&y,B=LU(U),W=B.length,G=LU(Z),J=G.length;if(W!=J&&!Y)return!1;var w=W;while(w--){var K=B[w];if(!(Y?K in Z:D.call(Z,K)))return!1}var q=X.get(U);if(q&&X.get(Z))return q==Z;var H=!0;X.set(U,Z),X.set(Z,U);var A=Y;while(++w<W){K=B[w];var S=U[K],V=Z[K];if(Q)var NZ=Y?Q(V,S,K,Z,U,X):Q(S,V,K,U,Z,X);if(!(NZ===void 0?S===V||$(S,V,Q,R,X):NZ)){H=!1;break}A||(A=K=="constructor")}if(H&&!A){var ZU=U.constructor,$U=Z.constructor;if(ZU!=$U&&(("constructor"in U)&&("constructor"in Z))&&!(typeof ZU=="function"&&ZU instanceof ZU&&typeof $U=="function"&&$U instanceof $U))H=!1}return X.delete(U),X.delete(Z),H},MU=function(U,Z){var $=U.__data__;return H6(Z)?$[typeof Z=="string"?"string":"hash"]:$.map},z6=function(U){var Z=LU(U),$=Z.length;while($--){var Q=Z[$],R=U[Q];Z[$]=[Q,R,R$(R)]}return Z},b=function(U,Z){var $=K1(U,Z);return Q6($)?$:void 0},L6=function(U,Z,$){Z=DU(Z,U)?[Z]:Z$(Z);var Q,R=-1,Y=Z.length;while(++R<Y){var X=EU(Z[R]);if(!(Q=U!=null&&$(U,X)))break;U=U[X]}if(Q)return Q;var Y=U?U.length:0;return!!Y&&$Z(Y)&&Q$(X,Y)&&(P(U)||B$(U))},Q$=function(U,Z){return Z=Z==null?hZ:Z,!!Z&&(typeof U=="number"||Q1.test(U))&&(U>-1&&U%1==0&&U<Z)},DU=function(U,Z){if(P(U))return!1;var $=typeof U;if($=="number"||$=="symbol"||$=="boolean"||U==null||QZ(U))return!0;return tQ.test(U)||!oQ.test(U)||Z!=null&&U in Object(Z)},H6=function(U){var Z=typeof U;return Z=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?U!=="__proto__":U===null},_6=function(U){return!!dZ&&dZ in U},S6=function(U){var Z=U&&U.constructor,$=typeof Z=="function"&&Z.prototype||_U;return U===$},R$=function(U){return U===U&&!IU(U)},X$=function(U,Z){return function($){if($==null)return!1;return $[U]===Z&&(Z!==void 0||(U in Object($)))}},EU=function(U){if(typeof U=="string"||QZ(U))return U;var Z=U+"";return Z=="0"&&1/U==-yZ?"-0":Z},m=function(U){if(U!=null){try{return eZ.call(U)}catch(Z){}try{return U+""}catch(Z){}}return""},UZ=function(U,Z){if(typeof U!="function"||Z&&typeof Z!="function")throw new TypeError(vQ);var $=function(){var Q=arguments,R=Z?Z.apply(this,Q):Q[0],X=$.cache;if(X.has(R))return X.get(R);var Y=U.apply(this,Q);return $.cache=X.set(R,Y),Y};return $.cache=new(UZ.Cache||I),$},Y$=function(U,Z){return U===Z||U!==U&&Z!==Z},B$=function(U){return E6(U)&&D.call(U,"callee")&&(!H1.call(U,"callee")||h.call(U)==KU)},ZZ=function(U){return U!=null&&$Z(U.length)&&!W$(U)},E6=function(U){return AU(U)&&ZZ(U)},W$=function(U){var Z=IU(U)?h.call(U):"";return Z==cZ||Z==yQ},$Z=function(U){return typeof U=="number"&&U>-1&&U%1==0&&U<=hZ},IU=function(U){var Z=typeof U;return!!U&&(Z=="object"||Z=="function")},AU=function(U){return!!U&&typeof U=="object"},QZ=function(U){return typeof U=="symbol"||AU(U)&&h.call(U)==rZ},A6=function(U){return U==null?"":G6(U)},O6=function(U,Z,$){var Q=U==null?void 0:U$(U,Z);return Q===void 0?$:Q},P6=function(U,Z){return U!=null&&L6(U,Z,U6)},LU=function(U){return ZZ(U)?l1(U):Y6(U)},T6=function(U){return U},C6=function(U){return DU(U)?W1(EU(U)):J6(U)},pQ=200,vQ="Expected a function",aU="__lodash_hash_undefined__",HU=1,y=2,yZ=Infinity,hZ=9007199254740991,KU="[object Arguments]",cU="[object Array]",bZ="[object Boolean]",nZ="[object Date]",iZ="[object Error]",cZ="[object Function]",yQ="[object GeneratorFunction]",qU="[object Map]",uZ="[object Number]",p="[object Object]",fZ="[object Promise]",sZ="[object RegExp]",wU="[object Set]",lZ="[object String]",rZ="[object Symbol]",uU="[object WeakMap]",oZ="[object ArrayBuffer]",NU="[object DataView]",hQ="[object Float32Array]",bQ="[object Float64Array]",nQ="[object Int8Array]",iQ="[object Int16Array]",cQ="[object Int32Array]",uQ="[object Uint8Array]",sQ="[object Uint8ClampedArray]",lQ="[object Uint16Array]",rQ="[object Uint32Array]",oQ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tQ=/^\w*$/,aQ=/^\./,eQ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,U1=/[\\^$.*+?()[\]{}|]/g,Z1=/\\(\\)?/g,$1=/^\[object .+?Constructor\]$/,Q1=/^(?:0|[1-9]\d*)$/,N={};N[hQ]=N[bQ]=N[nQ]=N[iQ]=N[cQ]=N[uQ]=N[sQ]=N[lQ]=N[rQ]=!0;N[KU]=N[cU]=N[oZ]=N[bZ]=N[NU]=N[nZ]=N[iZ]=N[cZ]=N[qU]=N[uZ]=N[p]=N[sZ]=N[wU]=N[lZ]=N[uU]=!1;var tZ=typeof global=="object"&&global&&global.Object===Object&&global,R1=typeof self=="object"&&self&&self.Object===Object&&self,T=tZ||R1||Function("return this")(),aZ=typeof GU=="object"&&GU&&!GU.nodeType&&GU,xZ=aZ&&typeof v=="object"&&v&&!v.nodeType&&v,X1=xZ&&xZ.exports===aZ,gZ=X1&&tZ.process,mZ=function(){try{return gZ&&gZ.binding("util")}catch(U){}}(),jZ=mZ&&mZ.isTypedArray,F1=Array.prototype,z1=Function.prototype,_U=Object.prototype,nU=T["__core-js_shared__"],dZ=function(){var U=/[^.]+$/.exec(nU&&nU.keys&&nU.keys.IE_PROTO||"");return U?"Symbol(src)_1."+U:""}(),eZ=z1.toString,D=_U.hasOwnProperty,h=_U.toString,L1=RegExp("^"+eZ.call(D).replace(U1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kZ=T.Symbol,pZ=T.Uint8Array,H1=_U.propertyIsEnumerable,_1=F1.splice,S1=w1(Object.keys,Object),lU=b(T,"DataView"),r=b(T,"Map"),rU=b(T,"Promise"),oU=b(T,"Set"),tU=b(T,"WeakMap"),o=b(Object,"create"),M1=m(lU),D1=m(r),E1=m(rU),I1=m(oU),A1=m(tU),FU=kZ?kZ.prototype:void 0,iU=FU?FU.valueOf:void 0,vZ=FU?FU.toString:void 0;g.prototype.clear=O1;g.prototype.delete=P1;g.prototype.get=T1;g.prototype.has=C1;g.prototype.set=V1;E.prototype.clear=f1;E.prototype.delete=x1;E.prototype.get=g1;E.prototype.has=m1;E.prototype.set=j1;I.prototype.clear=d1;I.prototype.delete=k1;I.prototype.get=p1;I.prototype.has=v1;I.prototype.set=y1;zU.prototype.add=zU.prototype.push=h1;zU.prototype.has=b1;M.prototype.clear=n1;M.prototype.delete=i1;M.prototype.get=c1;M.prototype.has=u1;M.prototype.set=s1;var o1=q6(a1),t1=w6(),O=e1;if(lU&&O(new lU(new ArrayBuffer(1)))!=NU||r&&O(new r)!=qU||rU&&O(rU.resolve())!=fZ||oU&&O(new oU)!=wU||tU&&O(new tU)!=uU)O=function(U){var Z=h.call(U),$=Z==p?U.constructor:void 0,Q=$?m($):void 0;if(Q)switch(Q){case M1:return NU;case D1:return qU;case E1:return fZ;case I1:return wU;case A1:return uU}return Z};var M6=UZ(function(U){U=A6(U);var Z=[];if(aQ.test(U))Z.push("");return U.replace(eQ,function($,Q,R,X){Z.push(R?X.replace(Z1,"$1"):Q||$)}),Z}),D6=K6(function(U,Z,$){U[$]=Z});UZ.Cache=I;var P=Array.isArray,I6=jZ?G1(jZ):R6;v.exports=D6});var I$=jU((e8,E$)=>{var i6=function(U,Z){return U==null?void 0:U[Z]},c6=function(U){var Z=!1;if(U!=null&&typeof U.toString!="function")try{Z=!!(U+"")}catch($){}return Z},j=function(U){var Z=-1,$=U?U.length:0;this.clear();while(++Z<$){var Q=U[Z];this.set(Q[0],Q[1])}},t6=function(){this.__data__=t?t(null):{}},a6=function(U){return this.has(U)&&delete this.__data__[U]},e6=function(U){var Z=this.__data__;if(t){var $=Z[U];return $===F$?void 0:$}return YZ.call(Z,U)?Z[U]:void 0},U8=function(U){var Z=this.__data__;return t?Z[U]!==void 0:YZ.call(Z,U)},Z8=function(U,Z){var $=this.__data__;return $[U]=t&&Z===void 0?F$:Z,this},n=function(U){var Z=-1,$=U?U.length:0;this.clear();while(++Z<$){var Q=U[Z];this.set(Q[0],Q[1])}},$8=function(){this.__data__=[]},Q8=function(U){var Z=this.__data__,$=OU(Z,U);if($<0)return!1;var Q=Z.length-1;if($==Q)Z.pop();else r6.call(Z,$,1);return!0},R8=function(U){var Z=this.__data__,$=OU(Z,U);return $<0?void 0:Z[$][1]},X8=function(U){return OU(this.__data__,U)>-1},Y8=function(U,Z){var $=this.__data__,Q=OU($,U);if(Q<0)$.push([U,Z]);else $[Q][1]=Z;return this},d=function(U){var Z=-1,$=U?U.length:0;this.clear();while(++Z<$){var Q=U[Z];this.set(Q[0],Q[1])}},B8=function(){this.__data__={hash:new j,map:new(o6||n),string:new j}},W8=function(U){return PU(this,U).delete(U)},J8=function(U){return PU(this,U).get(U)},G8=function(U){return PU(this,U).has(U)},K8=function(U,Z){return PU(this,U).set(U,Z),this},OU=function(U,Z){var $=U.length;while($--)if(D8(U[$][0],Z))return $;return-1},q8=function(U,Z){Z=z8(Z,U)?[Z]:F8(Z);var $=0,Q=Z.length;while(U!=null&&$<Q)U=U[S8(Z[$++])];return $&&$==Q?U:void 0},w8=function(U){if(!D$(U)||H8(U))return!1;var Z=E8(U)||c6(U)?l6:h6;return Z.test(M8(U))},N8=function(U){if(typeof U=="string")return U;if(WZ(U))return N$?N$.call(U):"";var Z=U+"";return Z=="0"&&1/U==-z$?"-0":Z},F8=function(U){return M$(U)?U:_8(U)},PU=function(U,Z){var $=U.__data__;return L8(Z)?$[typeof Z=="string"?"string":"hash"]:$.map},S$=function(U,Z){var $=i6(U,Z);return w8($)?$:void 0},z8=function(U,Z){if(M$(U))return!1;var $=typeof U;if($=="number"||$=="symbol"||$=="boolean"||U==null||WZ(U))return!0;return d6.test(U)||!j6.test(U)||Z!=null&&U in Object(Z)},L8=function(U){var Z=typeof U;return Z=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?U!=="__proto__":U===null},H8=function(U){return!!K$&&K$ in U},S8=function(U){if(typeof U=="string"||WZ(U))return U;var Z=U+"";return Z=="0"&&1/U==-z$?"-0":Z},M8=function(U){if(U!=null){try{return H$.call(U)}catch(Z){}try{return U+""}catch(Z){}}return""},BZ=function(U,Z){if(typeof U!="function"||Z&&typeof Z!="function")throw new TypeError(f6);var $=function(){var Q=arguments,R=Z?Z.apply(this,Q):Q[0],X=$.cache;if(X.has(R))return X.get(R);var Y=U.apply(this,Q);return $.cache=X.set(R,Y),Y};return $.cache=new(BZ.Cache||d),$},D8=function(U,Z){return U===Z||U!==U&&Z!==Z},E8=function(U){var Z=D$(U)?_$.call(U):"";return Z==x6||Z==g6},D$=function(U){var Z=typeof U;return!!U&&(Z=="object"||Z=="function")},I8=function(U){return!!U&&typeof U=="object"},WZ=function(U){return typeof U=="symbol"||I8(U)&&_$.call(U)==m6},A8=function(U){return U==null?"":N8(U)},O8=function(U,Z,$){var Q=U==null?void 0:q8(U,Z);return Q===void 0?$:Q},f6="Expected a function",F$="__lodash_hash_undefined__",z$=Infinity,x6="[object Function]",g6="[object GeneratorFunction]",m6="[object Symbol]",j6=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d6=/^\w*$/,k6=/^\./,p6=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,v6=/[\\^$.*+?()[\]{}|]/g,y6=/\\(\\)?/g,h6=/^\[object .+?Constructor\]$/,b6=typeof global=="object"&&global&&global.Object===Object&&global,n6=typeof self=="object"&&self&&self.Object===Object&&self,XZ=b6||n6||Function("return this")(),u6=Array.prototype,s6=Function.prototype,L$=Object.prototype,RZ=XZ["__core-js_shared__"],K$=function(){var U=/[^.]+$/.exec(RZ&&RZ.keys&&RZ.keys.IE_PROTO||"");return U?"Symbol(src)_1."+U:""}(),H$=s6.toString,YZ=L$.hasOwnProperty,_$=L$.toString,l6=RegExp("^"+H$.call(YZ).replace(v6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q$=XZ.Symbol,r6=u6.splice,o6=S$(XZ,"Map"),t=S$(Object,"create"),w$=q$?q$.prototype:void 0,N$=w$?w$.toString:void 0;j.prototype.clear=t6;j.prototype.delete=a6;j.prototype.get=e6;j.prototype.has=U8;j.prototype.set=Z8;n.prototype.clear=$8;n.prototype.delete=Q8;n.prototype.get=R8;n.prototype.has=X8;n.prototype.set=Y8;d.prototype.clear=B8;d.prototype.delete=W8;d.prototype.get=J8;d.prototype.has=G8;d.prototype.set=K8;var _8=BZ(function(U){U=A8(U);var Z=[];if(k6.test(U))Z.push("");return U.replace(p6,function($,Q,R,X){Z.push(R?X.replace(y6,"$1"):Q||$)}),Z});BZ.Cache=d;var M$=Array.isArray;E$.exports=O8});var CZ=mU(TZ(),1),BU={isNamespace:(U)=>U&&!U.type,flattenSchema(U,Z){return Object.entries(U).reduce(($,[Q,R])=>{const X=Z?`${Z}.${Q}`:Q;if(BU.isNamespace(R))$={...$,...BU.flattenSchema(R,X)};else Object.assign(R,{name:X}),$[X]=R;return $},{})},wrapSchema(U){return Object.values(U).reduce((Z,$)=>{return CZ.default(Z,$.path,$),Z},{})}};var WU,jQ=new Uint8Array(16);function hU(){if(!WU){if(WU=typeof crypto!=="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!WU)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}return WU(jQ)}function VZ(U,Z=0){return L[U[Z+0]]+L[U[Z+1]]+L[U[Z+2]]+L[U[Z+3]]+"-"+L[U[Z+4]]+L[U[Z+5]]+"-"+L[U[Z+6]]+L[U[Z+7]]+"-"+L[U[Z+8]]+L[U[Z+9]]+"-"+L[U[Z+10]]+L[U[Z+11]]+L[U[Z+12]]+L[U[Z+13]]+L[U[Z+14]]+L[U[Z+15]]}var L=[];for(let U=0;U<256;++U)L.push((U+256).toString(16).slice(1));var dQ=typeof crypto!=="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),bU={randomUUID:dQ};var kQ=function(U,Z,$){if(bU.randomUUID&&!Z&&!U)return bU.randomUUID();U=U||{};const Q=U.random||(U.rng||hU)();if(Q[6]=Q[6]&15|64,Q[8]=Q[8]&63|128,Z){$=$||0;for(let R=0;R<16;++R)Z[$+R]=Q[R];return Z}return VZ(Q)},JU=kQ;var G$=mU(J$(),1);class V6{schemas;falttenSchema;uidSchemas;static Var(U){return{...U,type:"var",uid:JU()}}static Func(U){return{...U,type:"func",uid:JU()}}constructor(U={}){Object.assign(this,U),this.falttenSchema=BU.flattenSchema(this.schemas),this.uidSchemas=G$.default(this.schemas,"uid")}loadFull(){return Object.entries(this.falttenSchema).map(([U,Z])=>{if(Z.type=="func"){const{uid:$,type:Q,input:R,name:X,uiConfig:Y}=Z;return{uid:$,type:Q,name:X,input:R,uiConfig:Y?Y():null}}if(Z.type=="var"){const{uid:$,type:Q,get:R,set:X,name:Y,uiConfig:B}=Z;return{uid:$,type:Q,name:Y,value:R(),uiConfig:B?B():null,set:!!X}}return{type:"unknown",name:U}})}loadVars(){return Object.entries(this.falttenSchema).filter(([U,Z])=>Z.type=="var").map(([U,Z])=>{const{get:$,name:Q}=Z;return{name:Q,value:$()}})}}var A$=mU(I$(),1),UR=(U)=>{return{schema:{async loadFull(){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"schema.loadFull"})}).then((Z)=>Z.json())},async loadVars(){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"schema.loadVars"})}).then((Z)=>Z.json())}},func:{async call(Z){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"func.call",params:Z})}).then(($)=>$.json())}},var:{async set(Z){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"var.set",params:Z})}).then(($)=>$.json())},async patch(Z){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"var.patch",params:Z})}).then(($)=>$.json())}}}},ZR=({urpc:U})=>{const Z={urpc:U,handle({name:$,params:Q}){const R=A$.default(Z,$);if(!R)throw new Error("invalid name");return R(Q)},schema:{async loadFull(){return U.loadFull()},async loadVars(){return U.loadVars()}},func:{async call($){const Q=U.uidSchemas[$.method]||U.falttenSchema[$.method];if(!Q)throw new Error("invalid func name");return Q.func({input:$.input})}},var:{async set($){const Q=U.uidSchemas[$.name]||U.falttenSchema[$.name];if(!Q)throw new Error("invalid var name");if(!Q.set)throw new Error("variable can't be set");return Q.set($.value)},async patch($){const Q=U.uidSchemas[$.name]||U.falttenSchema[$.name];if(!Q)throw new Error("invalid var name");if(!Q.patch)throw new Error("variable can't be set");return Q.patch($.ops).newDocument}}};return Z};var f$={};dU(f$,{validator:()=>{{return e}},validate:()=>{{return JZ}},unobserve:()=>{{return T$}},unescapePathComponent:()=>{{return i}},observe:()=>{{return C$}},getValueByPointer:()=>{{return a}},generate:()=>{{return xU}},escapePathComponent:()=>{{return _}},default:()=>{{return d8}},deepClone:()=>{{return z}},compare:()=>{{return V$}},applyReducer:()=>{{return P$}},applyPatch:()=>{{return UU}},applyOperation:()=>{{return C}},_areEquals:()=>{{return s}},JsonPatchError:()=>{{return c}}});var GZ={};dU(GZ,{validator:()=>{{return e}},validate:()=>{{return JZ}},getValueByPointer:()=>{{return a}},deepClone:()=>{{return C8}},applyReducer:()=>{{return P$}},applyPatch:()=>{{return UU}},applyOperation:()=>{{return C}},_areEquals:()=>{{return s}},JsonPatchError:()=>{{return F}}});function CU(U,Z){return T8.call(U,Z)}function VU(U){if(Array.isArray(U)){var Z=new Array(U.length);for(var $=0;$<Z.length;$++)Z[$]=""+$;return Z}if(Object.keys)return Object.keys(U);var Q=[];for(var R in U)if(CU(U,R))Q.push(R);return Q}function z(U){switch(typeof U){case"object":return JSON.parse(JSON.stringify(U));case"undefined":return null;default:return U}}function fU(U){var Z=0,$=U.length,Q;while(Z<$){if(Q=U.charCodeAt(Z),Q>=48&&Q<=57){Z++;continue}return!1}return!0}function _(U){if(U.indexOf("/")===-1&&U.indexOf("~")===-1)return U;return U.replace(/~/g,"~0").replace(/\//g,"~1")}function i(U){return U.replace(/~1/g,"/").replace(/~0/g,"~")}function TU(U){if(U===void 0)return!0;if(U){if(Array.isArray(U)){for(var Z=0,$=U.length;Z<$;Z++)if(TU(U[Z]))return!0}else if(typeof U==="object"){var Q=VU(U),R=Q.length;for(var X=0;X<R;X++)if(TU(U[Q[X]]))return!0}}return!1}var O$=function(U,Z){var $=[U];for(var Q in Z){var R=typeof Z[Q]==="object"?JSON.stringify(Z[Q],null,2):Z[Q];if(typeof R!=="undefined")$.push(Q+": "+R)}return $.join("\n")};/*!
var x$=Object.create;var{defineProperty:gU,getPrototypeOf:g$,getOwnPropertyNames:m$}=Object;var j$=Object.prototype.hasOwnProperty;var mU=(U,Z,$)=>{$=U!=null?x$(g$(U)):{};const Q=Z||!U||!U.__esModule?gU($,"default",{value:U,enumerable:!0}):$;for(let R of m$(U))if(!j$.call(Q,R))gU(Q,R,{get:()=>U[R],enumerable:!0});return Q};var jU=(U,Z)=>()=>(Z||U((Z={exports:{}}).exports,Z),Z.exports);var dU=(U,Z)=>{for(var $ in Z)gU(U,$,{get:Z[$],enumerable:!0,configurable:!0,set:(Q)=>Z[$]=()=>Q})};var TZ=jU((p8,PZ)=>{var t$=function(U,Z){return U==null?void 0:U[Z]},a$=function(U){var Z=!1;if(U!=null&&typeof U.toString!="function")try{Z=!!(U+"")}catch($){}return Z},f=function(U){var Z=-1,$=U?U.length:0;this.clear();while(++Z<$){var Q=U[Z];this.set(Q[0],Q[1])}},RQ=function(){this.__data__=r?r(null):{}},XQ=function(U){return this.has(U)&&delete this.__data__[U]},YQ=function(U){var Z=this.__data__;if(r){var $=Z[U];return $===_Z?void 0:$}return RU.call(Z,U)?Z[U]:void 0},BQ=function(U){var Z=this.__data__;return r?Z[U]!==void 0:RU.call(Z,U)},WQ=function(U,Z){var $=this.__data__;return $[U]=r&&Z===void 0?_Z:Z,this},p=function(U){var Z=-1,$=U?U.length:0;this.clear();while(++Z<$){var Q=U[Z];this.set(Q[0],Q[1])}},JQ=function(){this.__data__=[]},GQ=function(U){var Z=this.__data__,$=XU(Z,U);if($<0)return!1;var Q=Z.length-1;if($==Q)Z.pop();else $Q.call(Z,$,1);return!0},KQ=function(U){var Z=this.__data__,$=XU(Z,U);return $<0?void 0:Z[$][1]},qQ=function(U){return XU(this.__data__,U)>-1},wQ=function(U,Z){var $=this.__data__,Q=XU($,U);if(Q<0)$.push([U,Z]);else $[Q][1]=Z;return this},x=function(U){var Z=-1,$=U?U.length:0;this.clear();while(++Z<$){var Q=U[Z];this.set(Q[0],Q[1])}},NQ=function(){this.__data__={hash:new f,map:new(QQ||p),string:new f}},FQ=function(U){return YU(this,U).delete(U)},zQ=function(U){return YU(this,U).get(U)},LQ=function(U){return YU(this,U).has(U)},HQ=function(U,Z){return YU(this,U).set(U,Z),this},_Q=function(U,Z,$){var Q=U[Z];if(!(RU.call(U,Z)&&AZ(Q,$))||$===void 0&&!(Z in U))U[Z]=$},XU=function(U,Z){var $=U.length;while($--)if(AZ(U[$][0],Z))return $;return-1},SQ=function(U){if(!QU(U)||PQ(U))return!1;var Z=fQ(U)||a$(U)?ZQ:s$;return Z.test(VQ(U))},MQ=function(U,Z,$,Q){if(!QU(U))return U;Z=AQ(Z,U)?[Z]:EQ(Z);var R=-1,X=Z.length,Y=X-1,B=U;while(B!=null&&++R<X){var W=CQ(Z[R]),G=$;if(R!=Y){var J=B[W];if(G=Q?Q(J,W,B):void 0,G===void 0)G=QU(J)?J:IQ(Z[R+1])?[]:{}}_Q(B,W,G),B=B[W]}return U},DQ=function(U){if(typeof U=="string")return U;if(yU(U))return HZ?HZ.call(U):"";var Z=U+"";return Z=="0"&&1/U==-SZ?"-0":Z},EQ=function(U){return OZ(U)?U:TQ(U)},YU=function(U,Z){var $=U.__data__;return OQ(Z)?$[typeof Z=="string"?"string":"hash"]:$.map},IZ=function(U,Z){var $=t$(U,Z);return SQ($)?$:void 0},IQ=function(U,Z){return Z=Z==null?k$:Z,!!Z&&(typeof U=="number"||l$.test(U))&&(U>-1&&U%1==0&&U<Z)},AQ=function(U,Z){if(OZ(U))return!1;var $=typeof U;if($=="number"||$=="symbol"||$=="boolean"||U==null||yU(U))return!0;return b$.test(U)||!h$.test(U)||Z!=null&&U in Object(Z)},OQ=function(U){var Z=typeof U;return Z=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?U!=="__proto__":U===null},PQ=function(U){return!!FZ&&FZ in U},CQ=function(U){if(typeof U=="string"||yU(U))return U;var Z=U+"";return Z=="0"&&1/U==-SZ?"-0":Z},VQ=function(U){if(U!=null){try{return DZ.call(U)}catch(Z){}try{return U+""}catch(Z){}}return""},vU=function(U,Z){if(typeof U!="function"||Z&&typeof Z!="function")throw new TypeError(d$);var $=function(){var Q=arguments,R=Z?Z.apply(this,Q):Q[0],X=$.cache;if(X.has(R))return X.get(R);var Y=U.apply(this,Q);return $.cache=X.set(R,Y),Y};return $.cache=new(vU.Cache||x),$},AZ=function(U,Z){return U===Z||U!==U&&Z!==Z},fQ=function(U){var Z=QU(U)?EZ.call(U):"";return Z==p$||Z==v$},QU=function(U){var Z=typeof U;return!!U&&(Z=="object"||Z=="function")},xQ=function(U){return!!U&&typeof U=="object"},yU=function(U){return typeof U=="symbol"||xQ(U)&&EZ.call(U)==y$},gQ=function(U){return U==null?"":DQ(U)},mQ=function(U,Z,$){return U==null?U:MQ(U,Z,$)},d$="Expected a function",_Z="__lodash_hash_undefined__",SZ=Infinity,k$=9007199254740991,p$="[object Function]",v$="[object GeneratorFunction]",y$="[object Symbol]",h$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,b$=/^\w*$/,n$=/^\./,i$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c$=/[\\^$.*+?()[\]{}|]/g,u$=/\\(\\)?/g,s$=/^\[object .+?Constructor\]$/,l$=/^(?:0|[1-9]\d*)$/,r$=typeof global=="object"&&global&&global.Object===Object&&global,o$=typeof self=="object"&&self&&self.Object===Object&&self,pU=r$||o$||Function("return this")(),e$=Array.prototype,UQ=Function.prototype,MZ=Object.prototype,kU=pU["__core-js_shared__"],FZ=function(){var U=/[^.]+$/.exec(kU&&kU.keys&&kU.keys.IE_PROTO||"");return U?"Symbol(src)_1."+U:""}(),DZ=UQ.toString,RU=MZ.hasOwnProperty,EZ=MZ.toString,ZQ=RegExp("^"+DZ.call(RU).replace(c$,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zZ=pU.Symbol,$Q=e$.splice,QQ=IZ(pU,"Map"),r=IZ(Object,"create"),LZ=zZ?zZ.prototype:void 0,HZ=LZ?LZ.toString:void 0;f.prototype.clear=RQ;f.prototype.delete=XQ;f.prototype.get=YQ;f.prototype.has=BQ;f.prototype.set=WQ;p.prototype.clear=JQ;p.prototype.delete=GQ;p.prototype.get=KQ;p.prototype.has=qQ;p.prototype.set=wQ;x.prototype.clear=NQ;x.prototype.delete=FQ;x.prototype.get=zQ;x.prototype.has=LQ;x.prototype.set=HQ;var TQ=vU(function(U){U=gQ(U);var Z=[];if(n$.test(U))Z.push("");return U.replace(i$,function($,Q,R,X){Z.push(R?X.replace(u$,"$1"):Q||$)}),Z});vU.Cache=x;var OZ=Array.isArray;PZ.exports=mQ});var J$=jU((GU,y)=>{var Y1=function(U,Z,$,Q){var R=-1,X=U?U.length:0;while(++R<X){var Y=U[R];Z(Q,Y,$(Y),U)}return Q},B1=function(U,Z){var $=-1,Q=U?U.length:0;while(++$<Q)if(Z(U[$],$,U))return!0;return!1},W1=function(U){return function(Z){return Z==null?void 0:Z[U]}},J1=function(U,Z){var $=-1,Q=Array(U);while(++$<U)Q[$]=Z($);return Q},G1=function(U){return function(Z){return U(Z)}},K1=function(U,Z){return U==null?void 0:U[Z]},sU=function(U){var Z=!1;if(U!=null&&typeof U.toString!="function")try{Z=!!(U+"")}catch($){}return Z},q1=function(U){var Z=-1,$=Array(U.size);return U.forEach(function(Q,R){$[++Z]=[R,Q]}),$},w1=function(U,Z){return function($){return U(Z($))}},N1=function(U){var Z=-1,$=Array(U.size);return U.forEach(function(Q){$[++Z]=Q}),$},g=function(U){var Z=-1,$=U?U.length:0;this.clear();while(++Z<$){var Q=U[Z];this.set(Q[0],Q[1])}},O1=function(){this.__data__=t?t(null):{}},P1=function(U){return this.has(U)&&delete this.__data__[U]},T1=function(U){var Z=this.__data__;if(t){var $=Z[U];return $===aU?void 0:$}return D.call(Z,U)?Z[U]:void 0},C1=function(U){var Z=this.__data__;return t?Z[U]!==void 0:D.call(Z,U)},V1=function(U,Z){var $=this.__data__;return $[U]=t&&Z===void 0?aU:Z,this},E=function(U){var Z=-1,$=U?U.length:0;this.clear();while(++Z<$){var Q=U[Z];this.set(Q[0],Q[1])}},f1=function(){this.__data__=[]},x1=function(U){var Z=this.__data__,$=SU(Z,U);if($<0)return!1;var Q=Z.length-1;if($==Q)Z.pop();else _1.call(Z,$,1);return!0},g1=function(U){var Z=this.__data__,$=SU(Z,U);return $<0?void 0:Z[$][1]},m1=function(U){return SU(this.__data__,U)>-1},j1=function(U,Z){var $=this.__data__,Q=SU($,U);if(Q<0)$.push([U,Z]);else $[Q][1]=Z;return this},I=function(U){var Z=-1,$=U?U.length:0;this.clear();while(++Z<$){var Q=U[Z];this.set(Q[0],Q[1])}},d1=function(){this.__data__={hash:new g,map:new(o||E),string:new g}},k1=function(U){return MU(this,U).delete(U)},p1=function(U){return MU(this,U).get(U)},v1=function(U){return MU(this,U).has(U)},y1=function(U,Z){return MU(this,U).set(U,Z),this},zU=function(U){var Z=-1,$=U?U.length:0;this.__data__=new I;while(++Z<$)this.add(U[Z])},h1=function(U){return this.__data__.set(U,aU),this},b1=function(U){return this.__data__.has(U)},M=function(U){this.__data__=new E(U)},n1=function(){this.__data__=new E},i1=function(U){return this.__data__.delete(U)},c1=function(U){return this.__data__.get(U)},u1=function(U){return this.__data__.has(U)},s1=function(U,Z){var $=this.__data__;if($ instanceof E){var Q=$.__data__;if(!o||Q.length<pQ-1)return Q.push([U,Z]),this;$=this.__data__=new I(Q)}return $.set(U,Z),this},l1=function(U,Z){var $=P(U)||B$(U)?J1(U.length,String):[],Q=$.length,R=!!Q;for(var X in U)if((Z||D.call(U,X))&&!(R&&(X=="length"||Q$(X,Q))))$.push(X);return $},SU=function(U,Z){var $=U.length;while($--)if(Y$(U[$][0],Z))return $;return-1},r1=function(U,Z,$,Q){return o1(U,function(R,X,Y){Z(Q,R,$(R),Y)}),Q},a1=function(U,Z){return U&&t1(U,Z,LU)},U$=function(U,Z){Z=DU(Z,U)?[Z]:Z$(Z);var $=0,Q=Z.length;while(U!=null&&$<Q)U=U[EU(Z[$++])];return $&&$==Q?U:void 0},e1=function(U){return b.call(U)},U6=function(U,Z){return U!=null&&Z in Object(U)},eU=function(U,Z,$,Q,R){if(U===Z)return!0;if(U==null||Z==null||!IU(U)&&!AU(Z))return U!==U&&Z!==Z;return Z6(U,Z,eU,$,Q,R)},Z6=function(U,Z,$,Q,R,X){var Y=P(U),B=P(Z),W=cU,G=cU;if(!Y)W=O(U),W=W==KU?v:W;if(!B)G=O(Z),G=G==KU?v:G;var J=W==v&&!sU(U),w=G==v&&!sU(Z),K=W==G;if(K&&!J)return X||(X=new M),Y||I6(U)?$$(U,Z,$,Q,R,X):N6(U,Z,W,$,Q,R,X);if(!(R&h)){var q=J&&D.call(U,"__wrapped__"),H=w&&D.call(Z,"__wrapped__");if(q||H){var A=q?U.value():U,S=H?Z.value():Z;return X||(X=new M),$(A,S,Q,R,X)}}if(!K)return!1;return X||(X=new M),F6(U,Z,$,Q,R,X)},$6=function(U,Z,$,Q){var R=$.length,X=R,Y=!Q;if(U==null)return!X;U=Object(U);while(R--){var B=$[R];if(Y&&B[2]?B[1]!==U[B[0]]:!(B[0]in U))return!1}while(++R<X){B=$[R];var W=B[0],G=U[W],J=B[1];if(Y&&B[2]){if(G===void 0&&!(W in U))return!1}else{var w=new M;if(Q)var K=Q(G,J,W,U,Z,w);if(!(K===void 0?eU(J,G,Q,HU|h,w):K))return!1}}return!0},Q6=function(U){if(!IU(U)||_6(U))return!1;var Z=W$(U)||sU(U)?L1:$1;return Z.test(m(U))},R6=function(U){return AU(U)&&$Z(U.length)&&!!N[b.call(U)]},X6=function(U){if(typeof U=="function")return U;if(U==null)return T6;if(typeof U=="object")return P(U)?W6(U[0],U[1]):B6(U);return C6(U)},Y6=function(U){if(!S6(U))return S1(U);var Z=[];for(var $ in Object(U))if(D.call(U,$)&&$!="constructor")Z.push($);return Z},B6=function(U){var Z=z6(U);if(Z.length==1&&Z[0][2])return X$(Z[0][0],Z[0][1]);return function($){return $===U||$6($,U,Z)}},W6=function(U,Z){if(DU(U)&&R$(Z))return X$(EU(U),Z);return function($){var Q=O6($,U);return Q===void 0&&Q===Z?P6($,U):eU(Z,Q,void 0,HU|h)}},J6=function(U){return function(Z){return U$(Z,U)}},G6=function(U){if(typeof U=="string")return U;if(QZ(U))return vZ?vZ.call(U):"";var Z=U+"";return Z=="0"&&1/U==-yZ?"-0":Z},Z$=function(U){return P(U)?U:M6(U)},K6=function(U,Z){return function($,Q){var R=P($)?Y1:r1,X=Z?Z():{};return R($,U,X6(Q,2),X)}},q6=function(U,Z){return function($,Q){if($==null)return $;if(!ZZ($))return U($,Q);var R=$.length,X=Z?R:-1,Y=Object($);while(Z?X--:++X<R)if(Q(Y[X],X,Y)===!1)break;return $}},w6=function(U){return function(Z,$,Q){var R=-1,X=Object(Z),Y=Q(Z),B=Y.length;while(B--){var W=Y[U?B:++R];if($(X[W],W,X)===!1)break}return Z}},$$=function(U,Z,$,Q,R,X){var Y=R&h,B=U.length,W=Z.length;if(B!=W&&!(Y&&W>B))return!1;var G=X.get(U);if(G&&X.get(Z))return G==Z;var J=-1,w=!0,K=R&HU?new zU:void 0;X.set(U,Z),X.set(Z,U);while(++J<B){var q=U[J],H=Z[J];if(Q)var A=Y?Q(H,q,J,Z,U,X):Q(q,H,J,U,Z,X);if(A!==void 0){if(A)continue;w=!1;break}if(K){if(!B1(Z,function(S,V){if(!K.has(V)&&(q===S||$(q,S,Q,R,X)))return K.add(V)})){w=!1;break}}else if(!(q===H||$(q,H,Q,R,X))){w=!1;break}}return X.delete(U),X.delete(Z),w},N6=function(U,Z,$,Q,R,X,Y){switch($){case NU:if(U.byteLength!=Z.byteLength||U.byteOffset!=Z.byteOffset)return!1;U=U.buffer,Z=Z.buffer;case oZ:if(U.byteLength!=Z.byteLength||!Q(new pZ(U),new pZ(Z)))return!1;return!0;case bZ:case nZ:case uZ:return Y$(+U,+Z);case iZ:return U.name==Z.name&&U.message==Z.message;case sZ:case lZ:return U==Z+"";case qU:var B=q1;case wU:var W=X&h;if(B||(B=N1),U.size!=Z.size&&!W)return!1;var G=Y.get(U);if(G)return G==Z;X|=HU,Y.set(U,Z);var J=$$(B(U),B(Z),Q,R,X,Y);return Y.delete(U),J;case rZ:if(iU)return iU.call(U)==iU.call(Z)}return!1},F6=function(U,Z,$,Q,R,X){var Y=R&h,B=LU(U),W=B.length,G=LU(Z),J=G.length;if(W!=J&&!Y)return!1;var w=W;while(w--){var K=B[w];if(!(Y?K in Z:D.call(Z,K)))return!1}var q=X.get(U);if(q&&X.get(Z))return q==Z;var H=!0;X.set(U,Z),X.set(Z,U);var A=Y;while(++w<W){K=B[w];var S=U[K],V=Z[K];if(Q)var NZ=Y?Q(V,S,K,Z,U,X):Q(S,V,K,U,Z,X);if(!(NZ===void 0?S===V||$(S,V,Q,R,X):NZ)){H=!1;break}A||(A=K=="constructor")}if(H&&!A){var ZU=U.constructor,$U=Z.constructor;if(ZU!=$U&&(("constructor"in U)&&("constructor"in Z))&&!(typeof ZU=="function"&&ZU instanceof ZU&&typeof $U=="function"&&$U instanceof $U))H=!1}return X.delete(U),X.delete(Z),H},MU=function(U,Z){var $=U.__data__;return H6(Z)?$[typeof Z=="string"?"string":"hash"]:$.map},z6=function(U){var Z=LU(U),$=Z.length;while($--){var Q=Z[$],R=U[Q];Z[$]=[Q,R,R$(R)]}return Z},n=function(U,Z){var $=K1(U,Z);return Q6($)?$:void 0},L6=function(U,Z,$){Z=DU(Z,U)?[Z]:Z$(Z);var Q,R=-1,Y=Z.length;while(++R<Y){var X=EU(Z[R]);if(!(Q=U!=null&&$(U,X)))break;U=U[X]}if(Q)return Q;var Y=U?U.length:0;return!!Y&&$Z(Y)&&Q$(X,Y)&&(P(U)||B$(U))},Q$=function(U,Z){return Z=Z==null?hZ:Z,!!Z&&(typeof U=="number"||Q1.test(U))&&(U>-1&&U%1==0&&U<Z)},DU=function(U,Z){if(P(U))return!1;var $=typeof U;if($=="number"||$=="symbol"||$=="boolean"||U==null||QZ(U))return!0;return tQ.test(U)||!oQ.test(U)||Z!=null&&U in Object(Z)},H6=function(U){var Z=typeof U;return Z=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?U!=="__proto__":U===null},_6=function(U){return!!dZ&&dZ in U},S6=function(U){var Z=U&&U.constructor,$=typeof Z=="function"&&Z.prototype||_U;return U===$},R$=function(U){return U===U&&!IU(U)},X$=function(U,Z){return function($){if($==null)return!1;return $[U]===Z&&(Z!==void 0||(U in Object($)))}},EU=function(U){if(typeof U=="string"||QZ(U))return U;var Z=U+"";return Z=="0"&&1/U==-yZ?"-0":Z},m=function(U){if(U!=null){try{return eZ.call(U)}catch(Z){}try{return U+""}catch(Z){}}return""},UZ=function(U,Z){if(typeof U!="function"||Z&&typeof Z!="function")throw new TypeError(vQ);var $=function(){var Q=arguments,R=Z?Z.apply(this,Q):Q[0],X=$.cache;if(X.has(R))return X.get(R);var Y=U.apply(this,Q);return $.cache=X.set(R,Y),Y};return $.cache=new(UZ.Cache||I),$},Y$=function(U,Z){return U===Z||U!==U&&Z!==Z},B$=function(U){return E6(U)&&D.call(U,"callee")&&(!H1.call(U,"callee")||b.call(U)==KU)},ZZ=function(U){return U!=null&&$Z(U.length)&&!W$(U)},E6=function(U){return AU(U)&&ZZ(U)},W$=function(U){var Z=IU(U)?b.call(U):"";return Z==cZ||Z==yQ},$Z=function(U){return typeof U=="number"&&U>-1&&U%1==0&&U<=hZ},IU=function(U){var Z=typeof U;return!!U&&(Z=="object"||Z=="function")},AU=function(U){return!!U&&typeof U=="object"},QZ=function(U){return typeof U=="symbol"||AU(U)&&b.call(U)==rZ},A6=function(U){return U==null?"":G6(U)},O6=function(U,Z,$){var Q=U==null?void 0:U$(U,Z);return Q===void 0?$:Q},P6=function(U,Z){return U!=null&&L6(U,Z,U6)},LU=function(U){return ZZ(U)?l1(U):Y6(U)},T6=function(U){return U},C6=function(U){return DU(U)?W1(EU(U)):J6(U)},pQ=200,vQ="Expected a function",aU="__lodash_hash_undefined__",HU=1,h=2,yZ=Infinity,hZ=9007199254740991,KU="[object Arguments]",cU="[object Array]",bZ="[object Boolean]",nZ="[object Date]",iZ="[object Error]",cZ="[object Function]",yQ="[object GeneratorFunction]",qU="[object Map]",uZ="[object Number]",v="[object Object]",fZ="[object Promise]",sZ="[object RegExp]",wU="[object Set]",lZ="[object String]",rZ="[object Symbol]",uU="[object WeakMap]",oZ="[object ArrayBuffer]",NU="[object DataView]",hQ="[object Float32Array]",bQ="[object Float64Array]",nQ="[object Int8Array]",iQ="[object Int16Array]",cQ="[object Int32Array]",uQ="[object Uint8Array]",sQ="[object Uint8ClampedArray]",lQ="[object Uint16Array]",rQ="[object Uint32Array]",oQ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tQ=/^\w*$/,aQ=/^\./,eQ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,U1=/[\\^$.*+?()[\]{}|]/g,Z1=/\\(\\)?/g,$1=/^\[object .+?Constructor\]$/,Q1=/^(?:0|[1-9]\d*)$/,N={};N[hQ]=N[bQ]=N[nQ]=N[iQ]=N[cQ]=N[uQ]=N[sQ]=N[lQ]=N[rQ]=!0;N[KU]=N[cU]=N[oZ]=N[bZ]=N[NU]=N[nZ]=N[iZ]=N[cZ]=N[qU]=N[uZ]=N[v]=N[sZ]=N[wU]=N[lZ]=N[uU]=!1;var tZ=typeof global=="object"&&global&&global.Object===Object&&global,R1=typeof self=="object"&&self&&self.Object===Object&&self,T=tZ||R1||Function("return this")(),aZ=typeof GU=="object"&&GU&&!GU.nodeType&&GU,xZ=aZ&&typeof y=="object"&&y&&!y.nodeType&&y,X1=xZ&&xZ.exports===aZ,gZ=X1&&tZ.process,mZ=function(){try{return gZ&&gZ.binding("util")}catch(U){}}(),jZ=mZ&&mZ.isTypedArray,F1=Array.prototype,z1=Function.prototype,_U=Object.prototype,nU=T["__core-js_shared__"],dZ=function(){var U=/[^.]+$/.exec(nU&&nU.keys&&nU.keys.IE_PROTO||"");return U?"Symbol(src)_1."+U:""}(),eZ=z1.toString,D=_U.hasOwnProperty,b=_U.toString,L1=RegExp("^"+eZ.call(D).replace(U1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kZ=T.Symbol,pZ=T.Uint8Array,H1=_U.propertyIsEnumerable,_1=F1.splice,S1=w1(Object.keys,Object),lU=n(T,"DataView"),o=n(T,"Map"),rU=n(T,"Promise"),oU=n(T,"Set"),tU=n(T,"WeakMap"),t=n(Object,"create"),M1=m(lU),D1=m(o),E1=m(rU),I1=m(oU),A1=m(tU),FU=kZ?kZ.prototype:void 0,iU=FU?FU.valueOf:void 0,vZ=FU?FU.toString:void 0;g.prototype.clear=O1;g.prototype.delete=P1;g.prototype.get=T1;g.prototype.has=C1;g.prototype.set=V1;E.prototype.clear=f1;E.prototype.delete=x1;E.prototype.get=g1;E.prototype.has=m1;E.prototype.set=j1;I.prototype.clear=d1;I.prototype.delete=k1;I.prototype.get=p1;I.prototype.has=v1;I.prototype.set=y1;zU.prototype.add=zU.prototype.push=h1;zU.prototype.has=b1;M.prototype.clear=n1;M.prototype.delete=i1;M.prototype.get=c1;M.prototype.has=u1;M.prototype.set=s1;var o1=q6(a1),t1=w6(),O=e1;if(lU&&O(new lU(new ArrayBuffer(1)))!=NU||o&&O(new o)!=qU||rU&&O(rU.resolve())!=fZ||oU&&O(new oU)!=wU||tU&&O(new tU)!=uU)O=function(U){var Z=b.call(U),$=Z==v?U.constructor:void 0,Q=$?m($):void 0;if(Q)switch(Q){case M1:return NU;case D1:return qU;case E1:return fZ;case I1:return wU;case A1:return uU}return Z};var M6=UZ(function(U){U=A6(U);var Z=[];if(aQ.test(U))Z.push("");return U.replace(eQ,function($,Q,R,X){Z.push(R?X.replace(Z1,"$1"):Q||$)}),Z}),D6=K6(function(U,Z,$){U[$]=Z});UZ.Cache=I;var P=Array.isArray,I6=jZ?G1(jZ):R6;y.exports=D6});var V$=jU((WR,C$)=>{var U8=function(U,Z){return U==null?void 0:U[Z]},Z8=function(U){var Z=!1;if(U!=null&&typeof U.toString!="function")try{Z=!!(U+"")}catch($){}return Z},d=function(U){var Z=-1,$=U?U.length:0;this.clear();while(++Z<$){var Q=U[Z];this.set(Q[0],Q[1])}},B8=function(){this.__data__=UU?UU(null):{}},W8=function(U){return this.has(U)&&delete this.__data__[U]},J8=function(U){var Z=this.__data__;if(UU){var $=Z[U];return $===M$?void 0:$}return KZ.call(Z,U)?Z[U]:void 0},G8=function(U){var Z=this.__data__;return UU?Z[U]!==void 0:KZ.call(Z,U)},K8=function(U,Z){var $=this.__data__;return $[U]=UU&&Z===void 0?M$:Z,this},l=function(U){var Z=-1,$=U?U.length:0;this.clear();while(++Z<$){var Q=U[Z];this.set(Q[0],Q[1])}},q8=function(){this.__data__=[]},w8=function(U){var Z=this.__data__,$=fU(Z,U);if($<0)return!1;var Q=Z.length-1;if($==Q)Z.pop();else X8.call(Z,$,1);return!0},N8=function(U){var Z=this.__data__,$=fU(Z,U);return $<0?void 0:Z[$][1]},F8=function(U){return fU(this.__data__,U)>-1},z8=function(U,Z){var $=this.__data__,Q=fU($,U);if(Q<0)$.push([U,Z]);else $[Q][1]=Z;return this},k=function(U){var Z=-1,$=U?U.length:0;this.clear();while(++Z<$){var Q=U[Z];this.set(Q[0],Q[1])}},L8=function(){this.__data__={hash:new d,map:new(Y8||l),string:new d}},H8=function(U){return xU(this,U).delete(U)},_8=function(U){return xU(this,U).get(U)},S8=function(U){return xU(this,U).has(U)},M8=function(U,Z){return xU(this,U).set(U,Z),this},fU=function(U,Z){var $=U.length;while($--)if(x8(U[$][0],Z))return $;return-1},D8=function(U,Z){Z=O8(Z,U)?[Z]:A8(Z);var $=0,Q=Z.length;while(U!=null&&$<Q)U=U[V8(Z[$++])];return $&&$==Q?U:void 0},E8=function(U){if(!T$(U)||T8(U))return!1;var Z=g8(U)||Z8(U)?R8:t6;return Z.test(f8(U))},I8=function(U){if(typeof U=="string")return U;if(wZ(U))return S$?S$.call(U):"";var Z=U+"";return Z=="0"&&1/U==-D$?"-0":Z},A8=function(U){return P$(U)?U:C8(U)},xU=function(U,Z){var $=U.__data__;return P8(Z)?$[typeof Z=="string"?"string":"hash"]:$.map},O$=function(U,Z){var $=U8(U,Z);return E8($)?$:void 0},O8=function(U,Z){if(P$(U))return!1;var $=typeof U;if($=="number"||$=="symbol"||$=="boolean"||U==null||wZ(U))return!0;return u6.test(U)||!c6.test(U)||Z!=null&&U in Object(Z)},P8=function(U){var Z=typeof U;return Z=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?U!=="__proto__":U===null},T8=function(U){return!!L$&&L$ in U},V8=function(U){if(typeof U=="string"||wZ(U))return U;var Z=U+"";return Z=="0"&&1/U==-D$?"-0":Z},f8=function(U){if(U!=null){try{return I$.call(U)}catch(Z){}try{return U+""}catch(Z){}}return""},qZ=function(U,Z){if(typeof U!="function"||Z&&typeof Z!="function")throw new TypeError(h6);var $=function(){var Q=arguments,R=Z?Z.apply(this,Q):Q[0],X=$.cache;if(X.has(R))return X.get(R);var Y=U.apply(this,Q);return $.cache=X.set(R,Y),Y};return $.cache=new(qZ.Cache||k),$},x8=function(U,Z){return U===Z||U!==U&&Z!==Z},g8=function(U){var Z=T$(U)?A$.call(U):"";return Z==b6||Z==n6},T$=function(U){var Z=typeof U;return!!U&&(Z=="object"||Z=="function")},m8=function(U){return!!U&&typeof U=="object"},wZ=function(U){return typeof U=="symbol"||m8(U)&&A$.call(U)==i6},j8=function(U){return U==null?"":I8(U)},d8=function(U,Z,$){var Q=U==null?void 0:D8(U,Z);return Q===void 0?$:Q},h6="Expected a function",M$="__lodash_hash_undefined__",D$=Infinity,b6="[object Function]",n6="[object GeneratorFunction]",i6="[object Symbol]",c6=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u6=/^\w*$/,s6=/^\./,l6=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r6=/[\\^$.*+?()[\]{}|]/g,o6=/\\(\\)?/g,t6=/^\[object .+?Constructor\]$/,a6=typeof global=="object"&&global&&global.Object===Object&&global,e6=typeof self=="object"&&self&&self.Object===Object&&self,GZ=a6||e6||Function("return this")(),$8=Array.prototype,Q8=Function.prototype,E$=Object.prototype,JZ=GZ["__core-js_shared__"],L$=function(){var U=/[^.]+$/.exec(JZ&&JZ.keys&&JZ.keys.IE_PROTO||"");return U?"Symbol(src)_1."+U:""}(),I$=Q8.toString,KZ=E$.hasOwnProperty,A$=E$.toString,R8=RegExp("^"+I$.call(KZ).replace(r6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),H$=GZ.Symbol,X8=$8.splice,Y8=O$(GZ,"Map"),UU=O$(Object,"create"),_$=H$?H$.prototype:void 0,S$=_$?_$.toString:void 0;d.prototype.clear=B8;d.prototype.delete=W8;d.prototype.get=J8;d.prototype.has=G8;d.prototype.set=K8;l.prototype.clear=q8;l.prototype.delete=w8;l.prototype.get=N8;l.prototype.has=F8;l.prototype.set=z8;k.prototype.clear=L8;k.prototype.delete=H8;k.prototype.get=_8;k.prototype.has=S8;k.prototype.set=M8;var C8=qZ(function(U){U=j8(U);var Z=[];if(s6.test(U))Z.push("");return U.replace(l6,function($,Q,R,X){Z.push(R?X.replace(o6,"$1"):Q||$)}),Z});qZ.Cache=k;var P$=Array.isArray;C$.exports=d8});var CZ=mU(TZ(),1),BU={isNamespace:(U)=>U&&!U.type,flattenSchema(U,Z){return Object.entries(U).reduce(($,[Q,R])=>{const X=Z?`${Z}.${Q}`:Q;if(BU.isNamespace(R))$={...$,...BU.flattenSchema(R,X)};else Object.assign(R,{name:X}),$[X]=R;return $},{})},wrapSchema(U){return Object.values(U).reduce((Z,$)=>{return CZ.default(Z,$.path,$),Z},{})}};var WU,jQ=new Uint8Array(16);function hU(){if(!WU){if(WU=typeof crypto!=="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!WU)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}return WU(jQ)}function VZ(U,Z=0){return L[U[Z+0]]+L[U[Z+1]]+L[U[Z+2]]+L[U[Z+3]]+"-"+L[U[Z+4]]+L[U[Z+5]]+"-"+L[U[Z+6]]+L[U[Z+7]]+"-"+L[U[Z+8]]+L[U[Z+9]]+"-"+L[U[Z+10]]+L[U[Z+11]]+L[U[Z+12]]+L[U[Z+13]]+L[U[Z+14]]+L[U[Z+15]]}var L=[];for(let U=0;U<256;++U)L.push((U+256).toString(16).slice(1));var dQ=typeof crypto!=="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),bU={randomUUID:dQ};var kQ=function(U,Z,$){if(bU.randomUUID&&!Z&&!U)return bU.randomUUID();U=U||{};const Q=U.random||(U.rng||hU)();if(Q[6]=Q[6]&15|64,Q[8]=Q[8]&63|128,Z){$=$||0;for(let R=0;R<16;++R)Z[$+R]=Q[R];return Z}return VZ(Q)},JU=kQ;var z$=mU(J$(),1);var F$={};dU(F$,{validator:()=>{{return e}},validate:()=>{{return RZ}},unobserve:()=>{{return q$}},unescapePathComponent:()=>{{return i}},observe:()=>{{return w$}},getValueByPointer:()=>{{return a}},generate:()=>{{return VU}},escapePathComponent:()=>{{return _}},default:()=>{{return v6}},deepClone:()=>{{return z}},compare:()=>{{return N$}},applyReducer:()=>{{return K$}},applyPatch:()=>{{return j}},applyOperation:()=>{{return C}},_areEquals:()=>{{return s}},JsonPatchError:()=>{{return c}}});var XZ={};dU(XZ,{validator:()=>{{return e}},validate:()=>{{return RZ}},getValueByPointer:()=>{{return a}},deepClone:()=>{{return x6}},applyReducer:()=>{{return K$}},applyPatch:()=>{{return j}},applyOperation:()=>{{return C}},_areEquals:()=>{{return s}},JsonPatchError:()=>{{return F}}});function PU(U,Z){return f6.call(U,Z)}function TU(U){if(Array.isArray(U)){var Z=new Array(U.length);for(var $=0;$<Z.length;$++)Z[$]=""+$;return Z}if(Object.keys)return Object.keys(U);var Q=[];for(var R in U)if(PU(U,R))Q.push(R);return Q}function z(U){switch(typeof U){case"object":return JSON.parse(JSON.stringify(U));case"undefined":return null;default:return U}}function CU(U){var Z=0,$=U.length,Q;while(Z<$){if(Q=U.charCodeAt(Z),Q>=48&&Q<=57){Z++;continue}return!1}return!0}function _(U){if(U.indexOf("/")===-1&&U.indexOf("~")===-1)return U;return U.replace(/~/g,"~0").replace(/\//g,"~1")}function i(U){return U.replace(/~1/g,"/").replace(/~0/g,"~")}function OU(U){if(U===void 0)return!0;if(U){if(Array.isArray(U)){for(var Z=0,$=U.length;Z<$;Z++)if(OU(U[Z]))return!0}else if(typeof U==="object"){var Q=TU(U),R=Q.length;for(var X=0;X<R;X++)if(OU(U[Q[X]]))return!0}}return!1}var G$=function(U,Z){var $=[U];for(var Q in Z){var R=typeof Z[Q]==="object"?JSON.stringify(Z[Q],null,2):Z[Q];if(typeof R!=="undefined")$.push(Q+": "+R)}return $.join("\n")};/*!
* https://github.com/Starcounter-Jack/JSON-Patch
* (c) 2017-2022 Joachim Wester
* MIT licensed
*/var P8=function(){var U=function(Z,$){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,R){Q.__proto__=R}||function(Q,R){for(var X in R)if(R.hasOwnProperty(X))Q[X]=R[X]},U(Z,$)};return function(Z,$){U(Z,$);function Q(){this.constructor=Z}Z.prototype=$===null?Object.create($):(Q.prototype=$.prototype,new Q)}}(),T8=Object.prototype.hasOwnProperty,c=function(U){P8(Z,U);function Z($,Q,R,X,Y){var B=this.constructor,W=U.call(this,O$($,{name:Q,index:R,operation:X,tree:Y}))||this;return W.name=Q,W.index=R,W.operation=X,W.tree=Y,Object.setPrototypeOf(W,B.prototype),W.message=O$($,{name:Q,index:R,operation:X,tree:Y}),W}return Z}(Error);function a(U,Z){if(Z=="")return U;var $={op:"_get",path:Z};return C(U,$),$.value}function C(U,Z,$,Q,R,X){if($===void 0)$=!1;if(Q===void 0)Q=!0;if(R===void 0)R=!0;if(X===void 0)X=0;if($)if(typeof $=="function")$(Z,0,U,Z.path);else e(Z,0);if(Z.path===""){var Y={newDocument:U};if(Z.op==="add")return Y.newDocument=Z.value,Y;else if(Z.op==="replace")return Y.newDocument=Z.value,Y.removed=U,Y;else if(Z.op==="move"||Z.op==="copy"){if(Y.newDocument=a(U,Z.from),Z.op==="move")Y.removed=U;return Y}else if(Z.op==="test"){if(Y.test=s(U,Z.value),Y.test===!1)throw new F("Test operation failed","TEST_OPERATION_FAILED",X,Z,U);return Y.newDocument=U,Y}else if(Z.op==="remove")return Y.removed=U,Y.newDocument=null,Y;else if(Z.op==="_get")return Z.value=U,Y;else if($)throw new F("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",X,Z,U);else return Y}else{if(!Q)U=z(U);var B=Z.path||"",W=B.split("/"),G=U,J=1,w=W.length,K=void 0,q=void 0,H=void 0;if(typeof $=="function")H=$;else H=e;while(!0){if(q=W[J],q&&q.indexOf("~")!=-1)q=i(q);if(R&&(q=="__proto__"||q=="prototype"&&J>0&&W[J-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if($){if(K===void 0){if(G[q]===void 0)K=W.slice(0,J).join("/");else if(J==w-1)K=Z.path;if(K!==void 0)H(Z,0,U,K)}}if(J++,Array.isArray(G)){if(q==="-")q=G.length;else if($&&!fU(q))throw new F("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",X,Z,U);else if(fU(q))q=~~q;if(J>=w){if($&&Z.op==="add"&&q>G.length)throw new F("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",X,Z,U);var Y=V8[Z.op].call(Z,G,q,U);if(Y.test===!1)throw new F("Test operation failed","TEST_OPERATION_FAILED",X,Z,U);return Y}}else if(J>=w){var Y=u[Z.op].call(Z,G,q,U);if(Y.test===!1)throw new F("Test operation failed","TEST_OPERATION_FAILED",X,Z,U);return Y}if(G=G[q],$&&J<w&&(!G||typeof G!=="object"))throw new F("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",X,Z,U)}}}function UU(U,Z,$,Q,R){if(Q===void 0)Q=!0;if(R===void 0)R=!0;if($){if(!Array.isArray(Z))throw new F("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY")}if(!Q)U=z(U);var X=new Array(Z.length);for(var Y=0,B=Z.length;Y<B;Y++)X[Y]=C(U,Z[Y],$,!0,R,Y),U=X[Y].newDocument;return X.newDocument=U,X}function P$(U,Z,$){var Q=C(U,Z);if(Q.test===!1)throw new F("Test operation failed","TEST_OPERATION_FAILED",$,Z,U);return Q.newDocument}function e(U,Z,$,Q){if(typeof U!=="object"||U===null||Array.isArray(U))throw new F("Operation is not an object","OPERATION_NOT_AN_OBJECT",Z,U,$);else if(!u[U.op])throw new F("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",Z,U,$);else if(typeof U.path!=="string")throw new F("Operation `path` property is not a string","OPERATION_PATH_INVALID",Z,U,$);else if(U.path.indexOf("/")!==0&&U.path.length>0)throw new F('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",Z,U,$);else if((U.op==="move"||U.op==="copy")&&typeof U.from!=="string")throw new F("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",Z,U,$);else if((U.op==="add"||U.op==="replace"||U.op==="test")&&U.value===void 0)throw new F("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",Z,U,$);else if((U.op==="add"||U.op==="replace"||U.op==="test")&&TU(U.value))throw new F("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",Z,U,$);else if($){if(U.op=="add"){var R=U.path.split("/").length,X=Q.split("/").length;if(R!==X+1&&R!==X)throw new F("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",Z,U,$)}else if(U.op==="replace"||U.op==="remove"||U.op==="_get"){if(U.path!==Q)throw new F("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",Z,U,$)}else if(U.op==="move"||U.op==="copy"){var Y={op:"_get",path:U.from,value:void 0},B=JZ([Y],$);if(B&&B.name==="OPERATION_PATH_UNRESOLVABLE")throw new F("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",Z,U,$)}}}function JZ(U,Z,$){try{if(!Array.isArray(U))throw new F("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(Z)UU(z(Z),z(U),$||!0);else{$=$||e;for(var Q=0;Q<U.length;Q++)$(U[Q],Q,Z,void 0)}}catch(R){if(R instanceof F)return R;else throw R}}function s(U,Z){if(U===Z)return!0;if(U&&Z&&typeof U=="object"&&typeof Z=="object"){var $=Array.isArray(U),Q=Array.isArray(Z),R,X,Y;if($&&Q){if(X=U.length,X!=Z.length)return!1;for(R=X;R--!==0;)if(!s(U[R],Z[R]))return!1;return!0}if($!=Q)return!1;var B=Object.keys(U);if(X=B.length,X!==Object.keys(Z).length)return!1;for(R=X;R--!==0;)if(!Z.hasOwnProperty(B[R]))return!1;for(R=X;R--!==0;)if(Y=B[R],!s(U[Y],Z[Y]))return!1;return!0}return U!==U&&Z!==Z}var F=c,C8=z,u={add:function(U,Z,$){return U[Z]=this.value,{newDocument:$}},remove:function(U,Z,$){var Q=U[Z];return delete U[Z],{newDocument:$,removed:Q}},replace:function(U,Z,$){var Q=U[Z];return U[Z]=this.value,{newDocument:$,removed:Q}},move:function(U,Z,$){var Q=a($,this.path);if(Q)Q=z(Q);var R=C($,{op:"remove",path:this.from}).removed;return C($,{op:"add",path:this.path,value:R}),{newDocument:$,removed:Q}},copy:function(U,Z,$){var Q=a($,this.from);return C($,{op:"add",path:this.path,value:z(Q)}),{newDocument:$}},test:function(U,Z,$){return{newDocument:$,test:s(U[Z],this.value)}},_get:function(U,Z,$){return this.value=U[Z],{newDocument:$}}},V8={add:function(U,Z,$){if(fU(Z))U.splice(Z,0,this.value);else U[Z]=this.value;return{newDocument:$,index:Z}},remove:function(U,Z,$){var Q=U.splice(Z,1);return{newDocument:$,removed:Q[0]}},replace:function(U,Z,$){var Q=U[Z];return U[Z]=this.value,{newDocument:$,removed:Q}},move:u.move,copy:u.copy,test:u.test,_get:u._get};var wZ={};dU(wZ,{unobserve:()=>{{return T$}},observe:()=>{{return C$}},generate:()=>{{return xU}},compare:()=>{{return V$}}});var g8=function(U){return KZ.get(U)},m8=function(U,Z){return U.observers.get(Z)},j8=function(U,Z){U.observers.delete(Z.callback)};function T$(U,Z){Z.unobserve()}function C$(U,Z){var $=[],Q,R=g8(U);if(!R)R=new f8(U),KZ.set(U,R);else{var X=m8(R,Z);Q=X&&X.observer}if(Q)return Q;if(Q={},R.value=z(U),Z){Q.callback=Z,Q.next=null;var Y=function(){xU(Q)},B=function(){clearTimeout(Q.next),Q.next=setTimeout(Y)};if(typeof window!=="undefined")window.addEventListener("mouseup",B),window.addEventListener("keyup",B),window.addEventListener("mousedown",B),window.addEventListener("keydown",B),window.addEventListener("change",B)}return Q.patches=$,Q.object=U,Q.unobserve=function(){if(xU(Q),clearTimeout(Q.next),j8(R,Q),typeof window!=="undefined")window.removeEventListener("mouseup",B),window.removeEventListener("keyup",B),window.removeEventListener("mousedown",B),window.removeEventListener("keydown",B),window.removeEventListener("change",B)},R.observers.set(Z,new x8(Z,Q)),Q}function xU(U,Z){if(Z===void 0)Z=!1;var $=KZ.get(U.object);if(qZ($.value,U.object,U.patches,"",Z),U.patches.length)UU($.value,U.patches);var Q=U.patches;if(Q.length>0){if(U.patches=[],U.callback)U.callback(Q)}return Q}var qZ=function(U,Z,$,Q,R){if(Z===U)return;if(typeof Z.toJSON==="function")Z=Z.toJSON();var X=VU(Z),Y=VU(U),B=!1,W=!1;for(var G=Y.length-1;G>=0;G--){var J=Y[G],w=U[J];if(CU(Z,J)&&!(Z[J]===void 0&&w!==void 0&&Array.isArray(Z)===!1)){var K=Z[J];if(typeof w=="object"&&w!=null&&typeof K=="object"&&K!=null&&Array.isArray(w)===Array.isArray(K))qZ(w,K,$,Q+"/"+_(J),R);else if(w!==K){if(B=!0,R)$.push({op:"test",path:Q+"/"+_(J),value:z(w)});$.push({op:"replace",path:Q+"/"+_(J),value:z(K)})}}else if(Array.isArray(U)===Array.isArray(Z)){if(R)$.push({op:"test",path:Q+"/"+_(J),value:z(w)});$.push({op:"remove",path:Q+"/"+_(J)}),W=!0}else{if(R)$.push({op:"test",path:Q,value:U});$.push({op:"replace",path:Q,value:Z}),B=!0}}if(!W&&X.length==Y.length)return;for(var G=0;G<X.length;G++){var J=X[G];if(!CU(U,J)&&Z[J]!==void 0)$.push({op:"add",path:Q+"/"+_(J),value:z(Z[J])})}};function V$(U,Z,$){if($===void 0)$=!1;var Q=[];return qZ(U,Z,Q,"",$),Q}/*!
*/var V6=function(){var U=function(Z,$){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,R){Q.__proto__=R}||function(Q,R){for(var X in R)if(R.hasOwnProperty(X))Q[X]=R[X]},U(Z,$)};return function(Z,$){U(Z,$);function Q(){this.constructor=Z}Z.prototype=$===null?Object.create($):(Q.prototype=$.prototype,new Q)}}(),f6=Object.prototype.hasOwnProperty,c=function(U){V6(Z,U);function Z($,Q,R,X,Y){var B=this.constructor,W=U.call(this,G$($,{name:Q,index:R,operation:X,tree:Y}))||this;return W.name=Q,W.index=R,W.operation=X,W.tree=Y,Object.setPrototypeOf(W,B.prototype),W.message=G$($,{name:Q,index:R,operation:X,tree:Y}),W}return Z}(Error);function a(U,Z){if(Z=="")return U;var $={op:"_get",path:Z};return C(U,$),$.value}function C(U,Z,$,Q,R,X){if($===void 0)$=!1;if(Q===void 0)Q=!0;if(R===void 0)R=!0;if(X===void 0)X=0;if($)if(typeof $=="function")$(Z,0,U,Z.path);else e(Z,0);if(Z.path===""){var Y={newDocument:U};if(Z.op==="add")return Y.newDocument=Z.value,Y;else if(Z.op==="replace")return Y.newDocument=Z.value,Y.removed=U,Y;else if(Z.op==="move"||Z.op==="copy"){if(Y.newDocument=a(U,Z.from),Z.op==="move")Y.removed=U;return Y}else if(Z.op==="test"){if(Y.test=s(U,Z.value),Y.test===!1)throw new F("Test operation failed","TEST_OPERATION_FAILED",X,Z,U);return Y.newDocument=U,Y}else if(Z.op==="remove")return Y.removed=U,Y.newDocument=null,Y;else if(Z.op==="_get")return Z.value=U,Y;else if($)throw new F("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",X,Z,U);else return Y}else{if(!Q)U=z(U);var B=Z.path||"",W=B.split("/"),G=U,J=1,w=W.length,K=void 0,q=void 0,H=void 0;if(typeof $=="function")H=$;else H=e;while(!0){if(q=W[J],q&&q.indexOf("~")!=-1)q=i(q);if(R&&(q=="__proto__"||q=="prototype"&&J>0&&W[J-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if($){if(K===void 0){if(G[q]===void 0)K=W.slice(0,J).join("/");else if(J==w-1)K=Z.path;if(K!==void 0)H(Z,0,U,K)}}if(J++,Array.isArray(G)){if(q==="-")q=G.length;else if($&&!CU(q))throw new F("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",X,Z,U);else if(CU(q))q=~~q;if(J>=w){if($&&Z.op==="add"&&q>G.length)throw new F("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",X,Z,U);var Y=g6[Z.op].call(Z,G,q,U);if(Y.test===!1)throw new F("Test operation failed","TEST_OPERATION_FAILED",X,Z,U);return Y}}else if(J>=w){var Y=u[Z.op].call(Z,G,q,U);if(Y.test===!1)throw new F("Test operation failed","TEST_OPERATION_FAILED",X,Z,U);return Y}if(G=G[q],$&&J<w&&(!G||typeof G!=="object"))throw new F("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",X,Z,U)}}}function j(U,Z,$,Q,R){if(Q===void 0)Q=!0;if(R===void 0)R=!0;if($){if(!Array.isArray(Z))throw new F("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY")}if(!Q)U=z(U);var X=new Array(Z.length);for(var Y=0,B=Z.length;Y<B;Y++)X[Y]=C(U,Z[Y],$,!0,R,Y),U=X[Y].newDocument;return X.newDocument=U,X}function K$(U,Z,$){var Q=C(U,Z);if(Q.test===!1)throw new F("Test operation failed","TEST_OPERATION_FAILED",$,Z,U);return Q.newDocument}function e(U,Z,$,Q){if(typeof U!=="object"||U===null||Array.isArray(U))throw new F("Operation is not an object","OPERATION_NOT_AN_OBJECT",Z,U,$);else if(!u[U.op])throw new F("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",Z,U,$);else if(typeof U.path!=="string")throw new F("Operation `path` property is not a string","OPERATION_PATH_INVALID",Z,U,$);else if(U.path.indexOf("/")!==0&&U.path.length>0)throw new F('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",Z,U,$);else if((U.op==="move"||U.op==="copy")&&typeof U.from!=="string")throw new F("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",Z,U,$);else if((U.op==="add"||U.op==="replace"||U.op==="test")&&U.value===void 0)throw new F("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",Z,U,$);else if((U.op==="add"||U.op==="replace"||U.op==="test")&&OU(U.value))throw new F("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",Z,U,$);else if($){if(U.op=="add"){var R=U.path.split("/").length,X=Q.split("/").length;if(R!==X+1&&R!==X)throw new F("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",Z,U,$)}else if(U.op==="replace"||U.op==="remove"||U.op==="_get"){if(U.path!==Q)throw new F("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",Z,U,$)}else if(U.op==="move"||U.op==="copy"){var Y={op:"_get",path:U.from,value:void 0},B=RZ([Y],$);if(B&&B.name==="OPERATION_PATH_UNRESOLVABLE")throw new F("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",Z,U,$)}}}function RZ(U,Z,$){try{if(!Array.isArray(U))throw new F("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(Z)j(z(Z),z(U),$||!0);else{$=$||e;for(var Q=0;Q<U.length;Q++)$(U[Q],Q,Z,void 0)}}catch(R){if(R instanceof F)return R;else throw R}}function s(U,Z){if(U===Z)return!0;if(U&&Z&&typeof U=="object"&&typeof Z=="object"){var $=Array.isArray(U),Q=Array.isArray(Z),R,X,Y;if($&&Q){if(X=U.length,X!=Z.length)return!1;for(R=X;R--!==0;)if(!s(U[R],Z[R]))return!1;return!0}if($!=Q)return!1;var B=Object.keys(U);if(X=B.length,X!==Object.keys(Z).length)return!1;for(R=X;R--!==0;)if(!Z.hasOwnProperty(B[R]))return!1;for(R=X;R--!==0;)if(Y=B[R],!s(U[Y],Z[Y]))return!1;return!0}return U!==U&&Z!==Z}var F=c,x6=z,u={add:function(U,Z,$){return U[Z]=this.value,{newDocument:$}},remove:function(U,Z,$){var Q=U[Z];return delete U[Z],{newDocument:$,removed:Q}},replace:function(U,Z,$){var Q=U[Z];return U[Z]=this.value,{newDocument:$,removed:Q}},move:function(U,Z,$){var Q=a($,this.path);if(Q)Q=z(Q);var R=C($,{op:"remove",path:this.from}).removed;return C($,{op:"add",path:this.path,value:R}),{newDocument:$,removed:Q}},copy:function(U,Z,$){var Q=a($,this.from);return C($,{op:"add",path:this.path,value:z(Q)}),{newDocument:$}},test:function(U,Z,$){return{newDocument:$,test:s(U[Z],this.value)}},_get:function(U,Z,$){return this.value=U[Z],{newDocument:$}}},g6={add:function(U,Z,$){if(CU(Z))U.splice(Z,0,this.value);else U[Z]=this.value;return{newDocument:$,index:Z}},remove:function(U,Z,$){var Q=U.splice(Z,1);return{newDocument:$,removed:Q[0]}},replace:function(U,Z,$){var Q=U[Z];return U[Z]=this.value,{newDocument:$,removed:Q}},move:u.move,copy:u.copy,test:u.test,_get:u._get};var WZ={};dU(WZ,{unobserve:()=>{{return q$}},observe:()=>{{return w$}},generate:()=>{{return VU}},compare:()=>{{return N$}}});var d6=function(U){return YZ.get(U)},k6=function(U,Z){return U.observers.get(Z)},p6=function(U,Z){U.observers.delete(Z.callback)};function q$(U,Z){Z.unobserve()}function w$(U,Z){var $=[],Q,R=d6(U);if(!R)R=new m6(U),YZ.set(U,R);else{var X=k6(R,Z);Q=X&&X.observer}if(Q)return Q;if(Q={},R.value=z(U),Z){Q.callback=Z,Q.next=null;var Y=function(){VU(Q)},B=function(){clearTimeout(Q.next),Q.next=setTimeout(Y)};if(typeof window!=="undefined")window.addEventListener("mouseup",B),window.addEventListener("keyup",B),window.addEventListener("mousedown",B),window.addEventListener("keydown",B),window.addEventListener("change",B)}return Q.patches=$,Q.object=U,Q.unobserve=function(){if(VU(Q),clearTimeout(Q.next),p6(R,Q),typeof window!=="undefined")window.removeEventListener("mouseup",B),window.removeEventListener("keyup",B),window.removeEventListener("mousedown",B),window.removeEventListener("keydown",B),window.removeEventListener("change",B)},R.observers.set(Z,new j6(Z,Q)),Q}function VU(U,Z){if(Z===void 0)Z=!1;var $=YZ.get(U.object);if(BZ($.value,U.object,U.patches,"",Z),U.patches.length)j($.value,U.patches);var Q=U.patches;if(Q.length>0){if(U.patches=[],U.callback)U.callback(Q)}return Q}var BZ=function(U,Z,$,Q,R){if(Z===U)return;if(typeof Z.toJSON==="function")Z=Z.toJSON();var X=TU(Z),Y=TU(U),B=!1,W=!1;for(var G=Y.length-1;G>=0;G--){var J=Y[G],w=U[J];if(PU(Z,J)&&!(Z[J]===void 0&&w!==void 0&&Array.isArray(Z)===!1)){var K=Z[J];if(typeof w=="object"&&w!=null&&typeof K=="object"&&K!=null&&Array.isArray(w)===Array.isArray(K))BZ(w,K,$,Q+"/"+_(J),R);else if(w!==K){if(B=!0,R)$.push({op:"test",path:Q+"/"+_(J),value:z(w)});$.push({op:"replace",path:Q+"/"+_(J),value:z(K)})}}else if(Array.isArray(U)===Array.isArray(Z)){if(R)$.push({op:"test",path:Q+"/"+_(J),value:z(w)});$.push({op:"remove",path:Q+"/"+_(J)}),W=!0}else{if(R)$.push({op:"test",path:Q,value:U});$.push({op:"replace",path:Q,value:Z}),B=!0}}if(!W&&X.length==Y.length)return;for(var G=0;G<X.length;G++){var J=X[G];if(!PU(U,J)&&Z[J]!==void 0)$.push({op:"add",path:Q+"/"+_(J),value:z(Z[J])})}};function N$(U,Z,$){if($===void 0)$=!1;var Q=[];return BZ(U,Z,Q,"",$),Q}/*!
* https://github.com/Starcounter-Jack/JSON-Patch
* (c) 2017-2021 Joachim Wester
* MIT license
*/var KZ=new WeakMap,f8=function(){function U(Z){this.observers=new Map,this.obj=Z}return U}(),x8=function(){function U(Z,$){this.callback=Z,this.observer=$}return U}();var d8=Object.assign({},GZ,wZ,{JsonPatchError:c,deepClone:z,escapePathComponent:_,unescapePathComponent:i});export{BU as utils,f$ as jsonPatch,UR as createSimpleHttpClient,ZR as createServerClient,V6 as URPC};
*/var YZ=new WeakMap,m6=function(){function U(Z){this.observers=new Map,this.obj=Z}return U}(),j6=function(){function U(Z,$){this.callback=Z,this.observer=$}return U}();var v6=Object.assign({},XZ,WZ,{JsonPatchError:c,deepClone:z,escapePathComponent:_,unescapePathComponent:i});class y6{schemas;falttenSchema;uidSchemas;static Var(U){if(!U.patch)U.patch=(Z)=>{return j(U.get(),Z)};return{...U,type:"var",uid:JU()}}static Func(U){return{...U,type:"func",uid:JU()}}constructor(U={}){Object.assign(this,U),this.falttenSchema=BU.flattenSchema(this.schemas),this.uidSchemas=z$.default(this.schemas,"uid")}loadFull(){return Object.entries(this.falttenSchema).map(([U,Z])=>{if(Z.type=="func"){const{uid:$,type:Q,input:R,name:X,uiConfig:Y}=Z;return{uid:$,type:Q,name:X,input:R,uiConfig:Y?Y():null}}if(Z.type=="var"){const{uid:$,type:Q,get:R,set:X,name:Y,uiConfig:B}=Z;return{uid:$,type:Q,name:Y,value:R(),uiConfig:B?B():null,set:!!X}}return{type:"unknown",name:U}})}loadVars(){return Object.entries(this.falttenSchema).filter(([U,Z])=>Z.type=="var").map(([U,Z])=>{const{get:$,name:Q}=Z;return{name:Q,value:$()}})}}var f$=mU(V$(),1),JR=(U)=>{return{schema:{async loadFull(){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"schema.loadFull"})}).then((Z)=>Z.json())},async loadVars(){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"schema.loadVars"})}).then((Z)=>Z.json())}},func:{async call(Z){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"func.call",params:Z})}).then(($)=>$.json())}},var:{async set(Z){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"var.set",params:Z})}).then(($)=>$.json())},async patch(Z){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"var.patch",params:Z})}).then(($)=>$.json())}}}},GR=({urpc:U})=>{const Z={urpc:U,handle({name:$,params:Q}){const R=f$.default(Z,$);if(!R)throw new Error("invalid name");return R(Q)},schema:{async loadFull(){return U.loadFull()},async loadVars(){return U.loadVars()}},func:{async call($){const Q=U.uidSchemas[$.method]||U.falttenSchema[$.method];if(!Q)throw new Error("invalid func name");return Q.func({input:$.input})}},var:{async set($){const Q=U.uidSchemas[$.name]||U.falttenSchema[$.name];if(!Q)throw new Error("invalid var name");if(!Q.set)throw new Error("variable can't be set");return Q.set($.value)},async patch($){const Q=U.uidSchemas[$.name]||U.falttenSchema[$.name];if(!Q)throw new Error("invalid var name");if(!Q.patch)throw new Error("variable can't be set");return Q.patch($.ops).newDocument}}};return Z};export{BU as utils,F$ as jsonPatch,JR as createSimpleHttpClient,GR as createServerClient,y6 as URPC};
{
"name": "@dappworks/urpc",
"version": "0.0.16",
"version": "0.0.17",
"module": "index.ts",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc