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.26 to 0.0.27

34

dist/index.d.ts

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

}
export interface URPC_Variable<T extends () => any = () => any, R = any, V = any> {
export interface URPC_Variable<T extends () => any = () => any, G extends () => any | undefined = () => any> {
uid: string;

@@ -46,2 +46,12 @@ type?: "var";

get: T;
schema?: (val: ReturnType<T>) => {
[F in keyof Item<ReturnType<T>>]?: {
type?: string;
uiConfig?: FormConfigItem;
} | {
type: "action";
call(val: Item<ReturnType<G>>): any;
};
};
_schema?: ReturnType<Required<URPC_Variable<T, G>>["schema"]>;
actions?: ActionType<Item<ReturnType<T>>>;

@@ -58,5 +68,3 @@ patch?: {

};
set?: R extends () => infer U ? (value: ReturnType<T>) => U : never;
format?: R extends () => infer U ? (value: ReturnType<T>) => U : never;
uiConfig?: () => FormConfigType<Item<ReturnType<T>>>;
set?: (val: ReturnType<T>) => any;
}

@@ -71,3 +79,3 @@ export type URPC_Entity = URPC_Function<any, any> | URPC_Variable<any, any>;

uidSchemas: URPC_Schema;
static Var<T extends () => any, R = any>(args: Partial<URPC_Variable<T, R>>): URPC_Variable<T, R>;
static Var<T extends () => any>(args: Partial<URPC_Variable<T>>): URPC_Variable<T>;
static Func<T extends Object = {}, R = any>(args: Partial<URPC_Function<T, R>>): URPC_Function<T, R>;

@@ -90,4 +98,4 @@ constructor(args?: Partial<URPC<T>>);

value: any;
uiConfig: FormConfigType<any> | null;
actions: string[] | null;
actions: string[];
uiConfig: FormConfigType<any>;
set: boolean;

@@ -135,3 +143,3 @@ patch: {

var: {
set<R_1 extends keyof T, V extends T[R_1] extends URPC_Variable<infer Z_2 extends () => any, any, any> ? Z_2 : never>(params: {
set<R_1 extends keyof T, V extends T[R_1] extends URPC_Variable<infer Z_2 extends () => any, any> ? Z_2 : never>(params: {
name: R_1;

@@ -147,2 +155,3 @@ value: ReturnType<V>;

action: string;
value: any;
}): Promise<any>;

@@ -175,4 +184,4 @@ };

value: any;
uiConfig: FormConfigType<any> | null;
actions: string[] | null;
actions: string[];
uiConfig: FormConfigType<any>;
set: boolean;

@@ -216,3 +225,3 @@ patch: {

value: any;
}): Promise<unknown>;
}): Promise<any>;
patch(params: {

@@ -224,3 +233,4 @@ name: string;

name: string;
action;
action: string;
value: any;
}): Promise<any>;

@@ -227,0 +237,0 @@ };

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

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