@ws-ui/store 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/store.d.ts +94 -0
- package/dist/index.cjs.js +157 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +6 -86
- package/dist/index.es.js +15729 -0
- package/dist/index.es.js.map +1 -0
- package/dist/modules/catalog/index.d.ts +13 -0
- package/dist/modules/catalog/reducer.d.ts +20 -0
- package/dist/modules/catalog/thunks.d.ts +4 -0
- package/dist/modules/catalog/types.d.ts +1 -0
- package/dist/modules/debugger/index.d.ts +6 -0
- package/dist/modules/debugger/reducer.d.ts +121 -0
- package/dist/modules/debugger/thunks.d.ts +11 -0
- package/dist/modules/debugger/types.d.ts +226 -0
- package/dist/modules/debugger/utils.d.ts +3 -0
- package/dist/modules/explorer/index.d.ts +6 -0
- package/dist/modules/explorer/reducer.d.ts +38 -0
- package/dist/modules/explorer/thunks.d.ts +263 -0
- package/dist/modules/explorer/types.d.ts +56 -0
- package/dist/modules/explorer/utils.d.ts +4 -0
- package/dist/modules/index.d.ts +52 -0
- package/dist/modules/modals/index.d.ts +5 -0
- package/dist/modules/modals/reducer.d.ts +17 -0
- package/dist/modules/modals/thunks.d.ts +12 -0
- package/dist/modules/modals/types.d.ts +69 -0
- package/dist/modules/model/helpers.d.ts +12 -0
- package/dist/modules/model/index.d.ts +8 -0
- package/dist/modules/model/reducer.d.ts +33 -0
- package/dist/modules/model/selectors.d.ts +12 -0
- package/dist/modules/model/subjects.d.ts +6 -0
- package/dist/modules/model/thunks.d.ts +55 -0
- package/dist/modules/model/types.d.ts +97 -0
- package/dist/modules/roles/__tests__/adapter.test.d.ts +1 -0
- package/dist/modules/roles/adapter.d.ts +179 -0
- package/dist/modules/roles/index.d.ts +21 -0
- package/dist/modules/roles/reducer.d.ts +64 -0
- package/dist/modules/roles/thunks.d.ts +24 -0
- package/dist/modules/roles/types.d.ts +86 -0
- package/dist/modules/root/index.d.ts +5 -0
- package/dist/modules/root/reducer.d.ts +153 -0
- package/dist/modules/root/thunks.d.ts +117 -0
- package/dist/modules/root/types.d.ts +59 -0
- package/dist/modules/settings/index.d.ts +5 -0
- package/dist/modules/settings/reducer.d.ts +45 -0
- package/dist/modules/settings/thunks.d.ts +7 -0
- package/dist/modules/settings/types.d.ts +7 -0
- package/dist/modules/settings/utils.d.ts +2 -0
- package/dist/modules/shared-css/index.d.ts +5 -0
- package/dist/modules/shared-css/reducer.d.ts +21 -0
- package/dist/modules/shared-css/thunks.d.ts +6 -0
- package/dist/modules/shared-css/types.d.ts +1 -0
- package/dist/modules/shared-datasources/index.d.ts +5 -0
- package/dist/modules/shared-datasources/reducer.d.ts +18 -0
- package/dist/modules/shared-datasources/thunks.d.ts +32 -0
- package/dist/modules/shared-datasources/types.d.ts +1 -0
- package/dist/modules/tabs/index.d.ts +5 -0
- package/dist/modules/tabs/reducer.d.ts +4 -0
- package/dist/modules/tabs/selectors.d.ts +64 -0
- package/dist/modules/tabs/types.d.ts +1 -0
- package/dist/modules/webforms/datasources.adapter.d.ts +40 -0
- package/dist/modules/webforms/index.d.ts +6 -0
- package/dist/modules/webforms/private.d.ts +3 -0
- package/dist/modules/webforms/reducer.d.ts +53 -0
- package/dist/modules/webforms/thunks.d.ts +58 -0
- package/dist/modules/webforms/types.d.ts +71 -0
- package/dist/provider.d.ts +5 -0
- package/dist/selectors/catalog.d.ts +234 -0
- package/dist/selectors/common.d.ts +146 -0
- package/dist/selectors/components.d.ts +70 -0
- package/dist/selectors/datasources.d.ts +262 -0
- package/dist/selectors/debugger.d.ts +922 -0
- package/dist/selectors/explorer.d.ts +1352 -0
- package/dist/selectors/index.d.ts +12 -0
- package/dist/selectors/modals.d.ts +41 -0
- package/dist/selectors/roles.d.ts +471 -0
- package/dist/selectors/settings.d.ts +337 -0
- package/dist/selectors/styles.d.ts +234 -0
- package/dist/selectors/tabs.d.ts +72 -0
- package/dist/selectors/webforms.d.ts +450 -0
- package/dist/store.d.ts +10 -0
- package/dist/utils.d.ts +16 -0
- package/package.json +46 -19
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -168
- package/dist/index.js.map +0 -1
- package/dist/index.module.js +0 -167
- package/dist/index.module.js.map +0 -1
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("@ws-ui/shared"),dt=require("react"),VE=require("react-dom");function rt(e){for(var n=arguments.length,t=Array(n>1?n-1:0),a=1;a<n;a++)t[a-1]=arguments[a];if(process.env.NODE_ENV!=="production"){var s=nS[e],i=s?typeof s=="function"?s.apply(null,t):s:"unknown error nr: "+e;throw Error("[Immer] "+i)}throw Error("[Immer] minified error nr: "+e+(t.length?" "+t.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Vr(e){return!!e&&!!e[Ce]}function Sr(e){var n;return!!e&&(function(t){if(!t||typeof t!="object")return!1;var a=Object.getPrototypeOf(t);if(a===null)return!0;var s=Object.hasOwnProperty.call(a,"constructor")&&a.constructor;return s===Object||typeof s=="function"&&Function.toString.call(s)===aS}(e)||Array.isArray(e)||!!e[za]||!!(!((n=e.constructor)===null||n===void 0)&&n[za])||Ps(e)||Ds(e))}function Kr(e,n,t){t===void 0&&(t=!1),gn(e)===0?(t?Object.keys:ia)(e).forEach(function(a){t&&typeof a=="symbol"||n(a,e[a],e)}):e.forEach(function(a,s){return n(s,a,e)})}function gn(e){var n=e[Ce];return n?n.i>3?n.i-4:n.i:Array.isArray(e)?1:Ps(e)?2:Ds(e)?3:0}function pn(e,n){return gn(e)===2?e.has(n):Object.prototype.hasOwnProperty.call(e,n)}function os(e,n){return gn(e)===2?e.get(n):e[n]}function Xp(e,n,t){var a=gn(e);a===2?e.set(n,t):a===3?e.add(t):e[n]=t}function Zp(e,n){return e===n?e!==0||1/e==1/n:e!=e&&n!=n}function Ps(e){return tS&&e instanceof Map}function Ds(e){return rS&&e instanceof Set}function yt(e){return e.o||e.t}function yc(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var n=Qp(e);delete n[Ce];for(var t=ia(n),a=0;a<t.length;a++){var s=t[a],i=n[s];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(n[s]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),n)}function mc(e,n){return n===void 0&&(n=!1),bc(e)||Vr(e)||!Sr(e)||(gn(e)>1&&(e.set=e.add=e.clear=e.delete=KE),Object.freeze(e),n&&Kr(e,function(t,a){return mc(a,!0)},!0)),e}function KE(){rt(2)}function bc(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Or(e){var n=Hu[e];return n||rt(18,e),n}function _c(e,n){Hu[e]||(Hu[e]=n)}function Qa(){return process.env.NODE_ENV==="production"||da||rt(0),da}function cu(e,n){n&&(Or("Patches"),e.u=[],e.s=[],e.v=n)}function ds(e){Uu(e),e.p.forEach(JE),e.p=null}function Uu(e){e===da&&(da=e.l)}function Dd(e){return da={p:[],l:da,h:e,m:!0,_:0}}function JE(e){var n=e[Ce];n.i===0||n.i===1?n.j():n.g=!0}function lu(e,n){n._=n.p.length;var t=n.p[0],a=e!==void 0&&e!==t;return n.h.O||Or("ES5").S(n,e,a),a?(t[Ce].P&&(ds(n),rt(4)),Sr(e)&&(e=ps(n,e),n.l||hs(n,e)),n.u&&Or("Patches").M(t[Ce].t,e,n.u,n.s)):e=ps(n,t,[]),ds(n),n.u&&n.v(n.u,n.s),e!==Sc?e:void 0}function ps(e,n,t){if(bc(n))return n;var a=n[Ce];if(!a)return Kr(n,function(l,d){return Id(e,a,n,l,d,t)},!0),n;if(a.A!==e)return n;if(!a.P)return hs(e,a.t,!0),a.t;if(!a.I){a.I=!0,a.A._--;var s=a.i===4||a.i===5?a.o=yc(a.k):a.o,i=s,c=!1;a.i===3&&(i=new Set(s),s.clear(),c=!0),Kr(i,function(l,d){return Id(e,a,s,l,d,t,c)}),hs(e,s,!1),t&&e.u&&Or("Patches").N(a,t,e.u,e.s)}return a.o}function Id(e,n,t,a,s,i,c){if(process.env.NODE_ENV!=="production"&&s===t&&rt(5),Vr(s)){var l=ps(e,s,i&&n&&n.i!==3&&!pn(n.R,a)?i.concat(a):void 0);if(Xp(t,a,l),!Vr(l))return;e.m=!1}else c&&t.add(s);if(Sr(s)&&!bc(s)){if(!e.h.D&&e._<1)return;ps(e,s),n&&n.A.l||hs(e,s)}}function hs(e,n,t){t===void 0&&(t=!1),!e.l&&e.h.D&&e.m&&mc(n,t)}function fu(e,n){var t=e[Ce];return(t?yt(t):e)[n]}function Fd(e,n){if(n in e)for(var t=Object.getPrototypeOf(e);t;){var a=Object.getOwnPropertyDescriptor(t,n);if(a)return a;t=Object.getPrototypeOf(t)}}function Ht(e){e.P||(e.P=!0,e.l&&Ht(e.l))}function du(e){e.o||(e.o=yc(e.t))}function eo(e,n,t){var a=Ps(n)?Or("MapSet").F(n,t):Ds(n)?Or("MapSet").T(n,t):e.O?function(s,i){var c=Array.isArray(s),l={i:c?1:0,A:i?i.A:Qa(),P:!1,I:!1,R:{},l:i,t:s,k:null,o:null,j:null,C:!1},d=l,p=to;c&&(d=[l],p=qa);var h=Proxy.revocable(d,p),b=h.revoke,_=h.proxy;return l.k=_,l.j=b,_}(n,t):Or("ES5").J(n,t);return(t?t.A:Qa()).p.push(a),a}function XE(e){return Vr(e)||rt(22,e),function n(t){if(!Sr(t))return t;var a,s=t[Ce],i=gn(t);if(s){if(!s.P&&(s.i<4||!Or("ES5").K(s)))return s.t;s.I=!0,a=$d(t,i),s.I=!1}else a=$d(t,i);return Kr(a,function(c,l){s&&os(s.t,c)===l||Xp(a,c,n(l))}),i===3?new Set(a):a}(e)}function $d(e,n){switch(n){case 2:return new Map(e);case 3:return Array.from(e)}return yc(e)}function ZE(){function e(c,l){var d=i[c];return d?d.enumerable=l:i[c]=d={configurable:!0,enumerable:l,get:function(){var p=this[Ce];return process.env.NODE_ENV!=="production"&&s(p),to.get(p,c)},set:function(p){var h=this[Ce];process.env.NODE_ENV!=="production"&&s(h),to.set(h,c,p)}},d}function n(c){for(var l=c.length-1;l>=0;l--){var d=c[l][Ce];if(!d.P)switch(d.i){case 5:a(d)&&Ht(d);break;case 4:t(d)&&Ht(d)}}}function t(c){for(var l=c.t,d=c.k,p=ia(d),h=p.length-1;h>=0;h--){var b=p[h];if(b!==Ce){var _=l[b];if(_===void 0&&!pn(l,b))return!0;var S=d[b],T=S&&S[Ce];if(T?T.t!==_:!Zp(S,_))return!0}}var x=!!l[Ce];return p.length!==ia(l).length+(x?0:1)}function a(c){var l=c.k;if(l.length!==c.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function s(c){c.g&&rt(3,JSON.stringify(yt(c)))}var i={};_c("ES5",{J:function(c,l){var d=Array.isArray(c),p=function(b,_){if(b){for(var S=Array(_.length),T=0;T<_.length;T++)Object.defineProperty(S,""+T,e(T,!0));return S}var x=Qp(_);delete x[Ce];for(var F=ia(x),D=0;D<F.length;D++){var W=F[D];x[W]=e(W,b||!!x[W].enumerable)}return Object.create(Object.getPrototypeOf(_),x)}(d,c),h={i:d?5:4,A:l?l.A:Qa(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,Ce,{value:h,writable:!0}),p},S:function(c,l,d){d?Vr(l)&&l[Ce].A===c&&n(c.p):(c.u&&function p(h){if(h&&typeof h=="object"){var b=h[Ce];if(b){var _=b.t,S=b.k,T=b.R,x=b.i;if(x===4)Kr(S,function(j){j!==Ce&&(_[j]!==void 0||pn(_,j)?T[j]||p(S[j]):(T[j]=!0,Ht(b)))}),Kr(_,function(j){S[j]!==void 0||pn(S,j)||(T[j]=!1,Ht(b))});else if(x===5){if(a(b)&&(Ht(b),T.length=!0),S.length<_.length)for(var F=S.length;F<_.length;F++)T[F]=!1;else for(var D=_.length;D<S.length;D++)T[D]=!0;for(var W=Math.min(S.length,_.length),$=0;$<W;$++)S.hasOwnProperty($)||(T[$]=!0),T[$]===void 0&&p(S[$])}}}}(c.p[0]),n(c.p))},K:function(c){return c.i===4?t(c):a(c)}})}function QE(){function e(a){if(!Sr(a))return a;if(Array.isArray(a))return a.map(e);if(Ps(a))return new Map(Array.from(a.entries()).map(function(c){return[c[0],e(c[1])]}));if(Ds(a))return new Set(Array.from(a).map(e));var s=Object.create(Object.getPrototypeOf(a));for(var i in a)s[i]=e(a[i]);return pn(a,za)&&(s[za]=a[za]),s}function n(a){return Vr(a)?e(a):a}var t="add";_c("Patches",{$:function(a,s){return s.forEach(function(i){for(var c=i.path,l=i.op,d=a,p=0;p<c.length-1;p++){var h=gn(d),b=c[p];typeof b!="string"&&typeof b!="number"&&(b=""+b),h!==0&&h!==1||b!=="__proto__"&&b!=="constructor"||rt(24),typeof d=="function"&&b==="prototype"&&rt(24),typeof(d=os(d,b))!="object"&&rt(15,c.join("/"))}var _=gn(d),S=e(i.value),T=c[c.length-1];switch(l){case"replace":switch(_){case 2:return d.set(T,S);case 3:rt(16);default:return d[T]=S}case t:switch(_){case 1:return T==="-"?d.push(S):d.splice(T,0,S);case 2:return d.set(T,S);case 3:return d.add(S);default:return d[T]=S}case"remove":switch(_){case 1:return d.splice(T,1);case 2:return d.delete(T);case 3:return d.delete(i.value);default:return delete d[T]}default:rt(17,l)}}),a},N:function(a,s,i,c){switch(a.i){case 0:case 4:case 2:return function(l,d,p,h){var b=l.t,_=l.o;Kr(l.R,function(S,T){var x=os(b,S),F=os(_,S),D=T?pn(b,S)?"replace":t:"remove";if(x!==F||D!=="replace"){var W=d.concat(S);p.push(D==="remove"?{op:D,path:W}:{op:D,path:W,value:F}),h.push(D===t?{op:"remove",path:W}:D==="remove"?{op:t,path:W,value:n(x)}:{op:"replace",path:W,value:n(x)})}})}(a,s,i,c);case 5:case 1:return function(l,d,p,h){var b=l.t,_=l.R,S=l.o;if(S.length<b.length){var T=[S,b];b=T[0],S=T[1];var x=[h,p];p=x[0],h=x[1]}for(var F=0;F<b.length;F++)if(_[F]&&S[F]!==b[F]){var D=d.concat([F]);p.push({op:"replace",path:D,value:n(S[F])}),h.push({op:"replace",path:D,value:n(b[F])})}for(var W=b.length;W<S.length;W++){var $=d.concat([W]);p.push({op:t,path:$,value:n(S[W])})}b.length<S.length&&h.push({op:"replace",path:d.concat(["length"]),value:b.length})}(a,s,i,c);case 3:return function(l,d,p,h){var b=l.t,_=l.o,S=0;b.forEach(function(T){if(!_.has(T)){var x=d.concat([S]);p.push({op:"remove",path:x,value:T}),h.unshift({op:t,path:x,value:T})}S++}),S=0,_.forEach(function(T){if(!b.has(T)){var x=d.concat([S]);p.push({op:t,path:x,value:T}),h.unshift({op:"remove",path:x,value:T})}S++})}(a,s,i,c)}},M:function(a,s,i,c){i.push({op:"replace",path:[],value:s===Sc?void 0:s}),c.push({op:"replace",path:[],value:a})}})}function eS(){function e(l,d){function p(){this.constructor=l}s(l,d),l.prototype=(p.prototype=d.prototype,new p)}function n(l){l.o||(l.R=new Map,l.o=new Map(l.t))}function t(l){l.o||(l.o=new Set,l.t.forEach(function(d){if(Sr(d)){var p=eo(l.A.h,d,l);l.p.set(d,p),l.o.add(p)}else l.o.add(d)}))}function a(l){l.g&&rt(3,JSON.stringify(yt(l)))}var s=function(l,d){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,h){p.__proto__=h}||function(p,h){for(var b in h)h.hasOwnProperty(b)&&(p[b]=h[b])})(l,d)},i=function(){function l(p,h){return this[Ce]={i:2,l:h,A:h?h.A:Qa(),P:!1,I:!1,o:void 0,R:void 0,t:p,k:this,C:!1,g:!1},this}e(l,Map);var d=l.prototype;return Object.defineProperty(d,"size",{get:function(){return yt(this[Ce]).size}}),d.has=function(p){return yt(this[Ce]).has(p)},d.set=function(p,h){var b=this[Ce];return a(b),yt(b).has(p)&&yt(b).get(p)===h||(n(b),Ht(b),b.R.set(p,!0),b.o.set(p,h),b.R.set(p,!0)),this},d.delete=function(p){if(!this.has(p))return!1;var h=this[Ce];return a(h),n(h),Ht(h),h.t.has(p)?h.R.set(p,!1):h.R.delete(p),h.o.delete(p),!0},d.clear=function(){var p=this[Ce];a(p),yt(p).size&&(n(p),Ht(p),p.R=new Map,Kr(p.t,function(h){p.R.set(h,!1)}),p.o.clear())},d.forEach=function(p,h){var b=this;yt(this[Ce]).forEach(function(_,S){p.call(h,b.get(S),S,b)})},d.get=function(p){var h=this[Ce];a(h);var b=yt(h).get(p);if(h.I||!Sr(b)||b!==h.t.get(p))return b;var _=eo(h.A.h,b,h);return n(h),h.o.set(p,_),_},d.keys=function(){return yt(this[Ce]).keys()},d.values=function(){var p,h=this,b=this.keys();return(p={})[Qo]=function(){return h.values()},p.next=function(){var _=b.next();return _.done?_:{done:!1,value:h.get(_.value)}},p},d.entries=function(){var p,h=this,b=this.keys();return(p={})[Qo]=function(){return h.entries()},p.next=function(){var _=b.next();if(_.done)return _;var S=h.get(_.value);return{done:!1,value:[_.value,S]}},p},d[Qo]=function(){return this.entries()},l}(),c=function(){function l(p,h){return this[Ce]={i:3,l:h,A:h?h.A:Qa(),P:!1,I:!1,o:void 0,t:p,k:this,p:new Map,g:!1,C:!1},this}e(l,Set);var d=l.prototype;return Object.defineProperty(d,"size",{get:function(){return yt(this[Ce]).size}}),d.has=function(p){var h=this[Ce];return a(h),h.o?!!h.o.has(p)||!(!h.p.has(p)||!h.o.has(h.p.get(p))):h.t.has(p)},d.add=function(p){var h=this[Ce];return a(h),this.has(p)||(t(h),Ht(h),h.o.add(p)),this},d.delete=function(p){if(!this.has(p))return!1;var h=this[Ce];return a(h),t(h),Ht(h),h.o.delete(p)||!!h.p.has(p)&&h.o.delete(h.p.get(p))},d.clear=function(){var p=this[Ce];a(p),yt(p).size&&(t(p),Ht(p),p.o.clear())},d.values=function(){var p=this[Ce];return a(p),t(p),p.o.values()},d.entries=function(){var p=this[Ce];return a(p),t(p),p.o.entries()},d.keys=function(){return this.values()},d[Qo]=function(){return this.values()},d.forEach=function(p,h){for(var b=this.values(),_=b.next();!_.done;)p.call(h,_.value,_.value,this),_=b.next()},l}();_c("MapSet",{F:function(l,d){return new i(l,d)},T:function(l,d){return new c(l,d)}})}var Md,da,Ec=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",tS=typeof Map<"u",rS=typeof Set<"u",Nd=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Sc=Ec?Symbol.for("immer-nothing"):((Md={})["immer-nothing"]=!0,Md),za=Ec?Symbol.for("immer-draftable"):"__$immer_draftable",Ce=Ec?Symbol.for("immer-state"):"__$immer_state",Qo=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",nS={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},aS=""+Object.prototype.constructor,ia=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Qp=Object.getOwnPropertyDescriptors||function(e){var n={};return ia(e).forEach(function(t){n[t]=Object.getOwnPropertyDescriptor(e,t)}),n},Hu={},to={get:function(e,n){if(n===Ce)return e;var t=yt(e);if(!pn(t,n))return function(s,i,c){var l,d=Fd(i,c);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(s.k):void 0}(e,t,n);var a=t[n];return e.I||!Sr(a)?a:a===fu(e.t,n)?(du(e),e.o[n]=eo(e.A.h,a,e)):a},has:function(e,n){return n in yt(e)},ownKeys:function(e){return Reflect.ownKeys(yt(e))},set:function(e,n,t){var a=Fd(yt(e),n);if(a!=null&&a.set)return a.set.call(e.k,t),!0;if(!e.P){var s=fu(yt(e),n),i=s==null?void 0:s[Ce];if(i&&i.t===t)return e.o[n]=t,e.R[n]=!1,!0;if(Zp(t,s)&&(t!==void 0||pn(e.t,n)))return!0;du(e),Ht(e)}return e.o[n]===t&&(t!==void 0||n in e.o)||Number.isNaN(t)&&Number.isNaN(e.o[n])||(e.o[n]=t,e.R[n]=!0),!0},deleteProperty:function(e,n){return fu(e.t,n)!==void 0||n in e.t?(e.R[n]=!1,du(e),Ht(e)):delete e.R[n],e.o&&delete e.o[n],!0},getOwnPropertyDescriptor:function(e,n){var t=yt(e),a=Reflect.getOwnPropertyDescriptor(t,n);return a&&{writable:!0,configurable:e.i!==1||n!=="length",enumerable:a.enumerable,value:t[n]}},defineProperty:function(){rt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){rt(12)}},qa={};Kr(to,function(e,n){qa[e]=function(){return arguments[0]=arguments[0][0],n.apply(this,arguments)}}),qa.deleteProperty=function(e,n){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(n))&&rt(13),qa.set.call(this,e,n,void 0)},qa.set=function(e,n,t){return process.env.NODE_ENV!=="production"&&n!=="length"&&isNaN(parseInt(n))&&rt(14),to.set.call(this,e[0],n,t,e[0])};var oS=function(){function e(t){var a=this;this.O=Nd,this.D=!0,this.produce=function(s,i,c){if(typeof s=="function"&&typeof i!="function"){var l=i;i=s;var d=a;return function(x){var F=this;x===void 0&&(x=l);for(var D=arguments.length,W=Array(D>1?D-1:0),$=1;$<D;$++)W[$-1]=arguments[$];return d.produce(x,function(j){var A;return(A=i).call.apply(A,[F,j].concat(W))})}}var p;if(typeof i!="function"&&rt(6),c!==void 0&&typeof c!="function"&&rt(7),Sr(s)){var h=Dd(a),b=eo(a,s,void 0),_=!0;try{p=i(b),_=!1}finally{_?ds(h):Uu(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(x){return cu(h,c),lu(x,h)},function(x){throw ds(h),x}):(cu(h,c),lu(p,h))}if(!s||typeof s!="object"){if((p=i(s))===void 0&&(p=s),p===Sc&&(p=void 0),a.D&&mc(p,!0),c){var S=[],T=[];Or("Patches").M(s,p,S,T),c(S,T)}return p}rt(21,s)},this.produceWithPatches=function(s,i){if(typeof s=="function")return function(p){for(var h=arguments.length,b=Array(h>1?h-1:0),_=1;_<h;_++)b[_-1]=arguments[_];return a.produceWithPatches(p,function(S){return s.apply(void 0,[S].concat(b))})};var c,l,d=a.produce(s,i,function(p,h){c=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,c,l]}):[d,c,l]},typeof(t==null?void 0:t.useProxies)=="boolean"&&this.setUseProxies(t.useProxies),typeof(t==null?void 0:t.autoFreeze)=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var n=e.prototype;return n.createDraft=function(t){Sr(t)||rt(8),Vr(t)&&(t=XE(t));var a=Dd(this),s=eo(this,t,void 0);return s[Ce].C=!0,Uu(a),s},n.finishDraft=function(t,a){var s=t&&t[Ce];process.env.NODE_ENV!=="production"&&(s&&s.C||rt(9),s.I&&rt(10));var i=s.A;return cu(i,a),lu(void 0,i)},n.setAutoFreeze=function(t){this.D=t},n.setUseProxies=function(t){t&&!Nd&&rt(20),this.O=t},n.applyPatches=function(t,a){var s;for(s=a.length-1;s>=0;s--){var i=a[s];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}s>-1&&(a=a.slice(s+1));var c=Or("Patches").$;return Vr(t)?c(t,a):this.produce(t,function(l){return c(l,a)})},e}(),Qt=new oS,ss=Qt.produce;Qt.produceWithPatches.bind(Qt);Qt.setAutoFreeze.bind(Qt);Qt.setUseProxies.bind(Qt);Qt.applyPatches.bind(Qt);Qt.createDraft.bind(Qt);Qt.finishDraft.bind(Qt);function ro(e){"@babel/helpers - typeof";return ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ro(e)}function sS(e,n){if(ro(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,n||"default");if(ro(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function iS(e){var n=sS(e,"string");return ro(n)==="symbol"?n:String(n)}function uS(e,n,t){return n=iS(n),n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ld(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,a)}return t}function jd(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?Ld(Object(t),!0).forEach(function(a){uS(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ld(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function Pt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var kd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),pu=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ln={INIT:"@@redux/INIT"+pu(),REPLACE:"@@redux/REPLACE"+pu(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+pu()}};function eh(e){if(typeof e!="object"||e===null)return!1;for(var n=e;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}function cS(e){if(e===void 0)return"undefined";if(e===null)return"null";var n=typeof e;switch(n){case"boolean":case"string":case"number":case"symbol":case"function":return n}if(Array.isArray(e))return"array";if(dS(e))return"date";if(fS(e))return"error";var t=lS(e);switch(t){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return t}return n.slice(8,-1).toLowerCase().replace(/\s/g,"")}function lS(e){return typeof e.constructor=="function"?e.constructor.name:null}function fS(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function dS(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Nn(e){var n=typeof e;return process.env.NODE_ENV!=="production"&&(n=cS(e)),n}function th(e,n,t){var a;if(typeof n=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Pt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof n=="function"&&typeof t>"u"&&(t=n,n=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Pt(1):"Expected the enhancer to be a function. Instead, received: '"+Nn(t)+"'");return t(th)(e,n)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Pt(2):"Expected the root reducer to be a function. Instead, received: '"+Nn(e)+"'");var s=e,i=n,c=[],l=c,d=!1;function p(){l===c&&(l=c.slice())}function h(){if(d)throw new Error(process.env.NODE_ENV==="production"?Pt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function b(x){if(typeof x!="function")throw new Error(process.env.NODE_ENV==="production"?Pt(4):"Expected the listener to be a function. Instead, received: '"+Nn(x)+"'");if(d)throw new Error(process.env.NODE_ENV==="production"?Pt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var F=!0;return p(),l.push(x),function(){if(F){if(d)throw new Error(process.env.NODE_ENV==="production"?Pt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");F=!1,p();var W=l.indexOf(x);l.splice(W,1),c=null}}}function _(x){if(!eh(x))throw new Error(process.env.NODE_ENV==="production"?Pt(7):"Actions must be plain objects. Instead, the actual type was: '"+Nn(x)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof x.type>"u")throw new Error(process.env.NODE_ENV==="production"?Pt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(d)throw new Error(process.env.NODE_ENV==="production"?Pt(9):"Reducers may not dispatch actions.");try{d=!0,i=s(i,x)}finally{d=!1}for(var F=c=l,D=0;D<F.length;D++){var W=F[D];W()}return x}function S(x){if(typeof x!="function")throw new Error(process.env.NODE_ENV==="production"?Pt(10):"Expected the nextReducer to be a function. Instead, received: '"+Nn(x));s=x,_({type:Ln.REPLACE})}function T(){var x,F=b;return x={subscribe:function(W){if(typeof W!="object"||W===null)throw new Error(process.env.NODE_ENV==="production"?Pt(11):"Expected the observer to be an object. Instead, received: '"+Nn(W)+"'");function $(){W.next&&W.next(h())}$();var j=F($);return{unsubscribe:j}}},x[kd]=function(){return this},x}return _({type:Ln.INIT}),a={dispatch:_,subscribe:b,getState:h,replaceReducer:S},a[kd]=T,a}function Bd(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function pS(e,n,t,a){var s=Object.keys(n),i=t&&t.type===Ln.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(s.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!eh(e))return"The "+i+' has unexpected type of "'+Nn(e)+'". Expected argument to be an object with the following '+('keys: "'+s.join('", "')+'"');var c=Object.keys(e).filter(function(l){return!n.hasOwnProperty(l)&&!a[l]});if(c.forEach(function(l){a[l]=!0}),!(t&&t.type===Ln.REPLACE)&&c.length>0)return"Unexpected "+(c.length>1?"keys":"key")+" "+('"'+c.join('", "')+'" found in '+i+". ")+"Expected to find one of the known reducer keys instead: "+('"'+s.join('", "')+'". Unexpected keys will be ignored.')}function hS(e){Object.keys(e).forEach(function(n){var t=e[n],a=t(void 0,{type:Ln.INIT});if(typeof a>"u")throw new Error(process.env.NODE_ENV==="production"?Pt(12):'The slice reducer for key "'+n+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof t(void 0,{type:Ln.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?Pt(13):'The slice reducer for key "'+n+'" returned undefined when probed with a random type. '+("Don't try to handle '"+Ln.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function rh(e){for(var n=Object.keys(e),t={},a=0;a<n.length;a++){var s=n[a];process.env.NODE_ENV!=="production"&&typeof e[s]>"u"&&Bd('No reducer provided for key "'+s+'"'),typeof e[s]=="function"&&(t[s]=e[s])}var i=Object.keys(t),c;process.env.NODE_ENV!=="production"&&(c={});var l;try{hS(t)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(process.env.NODE_ENV!=="production"){var b=pS(p,t,h,c);b&&Bd(b)}for(var _=!1,S={},T=0;T<i.length;T++){var x=i[T],F=t[x],D=p[x],W=F(D,h);if(typeof W>"u"){var $=h&&h.type;throw new Error(process.env.NODE_ENV==="production"?Pt(14):"When called with an action of type "+($?'"'+String($)+'"':"(unknown type)")+', the slice reducer for key "'+x+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}S[x]=W,_=_||W!==D}return _=_||i.length!==Object.keys(p).length,_?S:p}}function gs(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.length===0?function(a){return a}:n.length===1?n[0]:n.reduce(function(a,s){return function(){return a(s.apply(void 0,arguments))}})}function gS(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return function(a){return function(){var s=a.apply(void 0,arguments),i=function(){throw new Error(process.env.NODE_ENV==="production"?Pt(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},c={getState:s.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=n.map(function(d){return d(c)});return i=gs.apply(void 0,l)(s.dispatch),jd(jd({},s),{},{dispatch:i})}}}var vs="NOT_FOUND";function vS(e){var n;return{get:function(a){return n&&e(n.key,a)?n.value:vs},put:function(a,s){n={key:a,value:s}},getEntries:function(){return n?[n]:[]},clear:function(){n=void 0}}}function yS(e,n){var t=[];function a(l){var d=t.findIndex(function(h){return n(l,h.key)});if(d>-1){var p=t[d];return d>0&&(t.splice(d,1),t.unshift(p)),p.value}return vs}function s(l,d){a(l)===vs&&(t.unshift({key:l,value:d}),t.length>e&&t.pop())}function i(){return t}function c(){t=[]}return{get:a,put:s,getEntries:i,clear:c}}var mS=function(n,t){return n===t};function bS(e){return function(t,a){if(t===null||a===null||t.length!==a.length)return!1;for(var s=t.length,i=0;i<s;i++)if(!e(t[i],a[i]))return!1;return!0}}function _S(e,n){var t=typeof n=="object"?n:{equalityCheck:n},a=t.equalityCheck,s=a===void 0?mS:a,i=t.maxSize,c=i===void 0?1:i,l=t.resultEqualityCheck,d=bS(s),p=c===1?vS(d):yS(c,d);function h(){var b=p.get(arguments);if(b===vs){if(b=e.apply(null,arguments),l){var _=p.getEntries(),S=_.find(function(T){return l(T.value,b)});S&&(b=S.value)}p.put(arguments,b)}return b}return h.clearCache=function(){return p.clear()},h}function ES(e){var n=Array.isArray(e[0])?e[0]:e;if(!n.every(function(a){return typeof a=="function"})){var t=n.map(function(a){return typeof a=="function"?"function "+(a.name||"unnamed")+"()":typeof a}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+t+"]")}return n}function SS(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),a=1;a<n;a++)t[a-1]=arguments[a];var s=function(){for(var c=arguments.length,l=new Array(c),d=0;d<c;d++)l[d]=arguments[d];var p=0,h,b={memoizeOptions:void 0},_=l.pop();if(typeof _=="object"&&(b=_,_=l.pop()),typeof _!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof _+"]");var S=b,T=S.memoizeOptions,x=T===void 0?t:T,F=Array.isArray(x)?x:[x],D=ES(l),W=e.apply(void 0,[function(){return p++,_.apply(null,arguments)}].concat(F)),$=e(function(){for(var A=[],K=D.length,G=0;G<K;G++)A.push(D[G].apply(null,arguments));return h=W.apply(null,A),h});return Object.assign($,{resultFunc:_,memoizedResultFunc:W,dependencies:D,lastResult:function(){return h},recomputations:function(){return p},resetRecomputations:function(){return p=0}}),$};return s}var z=SS(_S);function nh(e){var n=function(a){var s=a.dispatch,i=a.getState;return function(c){return function(l){return typeof l=="function"?l(s,i,e):c(l)}}};return n}var ah=nh();ah.withExtraArgument=nh;const Wd=ah;var wS=globalThis&&globalThis.__extends||function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(a[i]=s[i])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function a(){this.constructor=n}n.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),TS=globalThis&&globalThis.__generator||function(e,n){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,s,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(h){return d([p,h])}}function d(p){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,s&&(i=p[0]&2?s.return:p[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,p[1])).done)return i;switch(s=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return t.label++,{value:p[1],done:!1};case 5:t.label++,s=p[1],p=[0];continue;case 7:p=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){t=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){t.label=p[1];break}if(p[0]===6&&t.label<i[1]){t.label=i[1],i=p;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(p);break}i[2]&&t.ops.pop(),t.trys.pop();continue}p=n.call(e,t)}catch(h){p=[6,h],s=0}finally{a=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},ys=globalThis&&globalThis.__spreadArray||function(e,n){for(var t=0,a=n.length,s=e.length;t<a;t++,s++)e[s]=n[t];return e},CS=Object.defineProperty,xS=Object.defineProperties,RS=Object.getOwnPropertyDescriptors,Ud=Object.getOwnPropertySymbols,OS=Object.prototype.hasOwnProperty,AS=Object.prototype.propertyIsEnumerable,Hd=function(e,n,t){return n in e?CS(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t},hn=function(e,n){for(var t in n||(n={}))OS.call(n,t)&&Hd(e,t,n[t]);if(Ud)for(var a=0,s=Ud(n);a<s.length;a++){var t=s[a];AS.call(n,t)&&Hd(e,t,n[t])}return e},hu=function(e,n){return xS(e,RS(n))},PS=function(e,n,t){return new Promise(function(a,s){var i=function(d){try{l(t.next(d))}catch(p){s(p)}},c=function(d){try{l(t.throw(d))}catch(p){s(p)}},l=function(d){return d.done?a(d.value):Promise.resolve(d.value).then(i,c)};l((t=t.apply(e,n)).next())})},DS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?gs:gs.apply(null,arguments)};function oh(e){if(typeof e!="object"||e===null)return!1;var n=Object.getPrototypeOf(e);if(n===null)return!0;for(var t=n;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return n===t}function sh(e,n){var t=0;return{measureTime:function(a){var s=Date.now();try{return a()}finally{var i=Date.now();t+=i-s}},warnIfExceeded:function(){t>e&&console.warn(n+" took "+t+"ms, which is more than the warning threshold of "+e+`ms.
|
|
2
|
+
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
|
|
3
|
+
It is disabled in production builds, so you don't need to worry about that.`)}}}var IS=function(e){wS(n,e);function n(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];var s=e.apply(this,t)||this;return Object.setPrototypeOf(s,n.prototype),s}return Object.defineProperty(n,Symbol.species,{get:function(){return n},enumerable:!1,configurable:!0}),n.prototype.concat=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return e.prototype.concat.apply(this,t)},n.prototype.prepend=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return t.length===1&&Array.isArray(t[0])?new(n.bind.apply(n,ys([void 0],t[0].concat(this)))):new(n.bind.apply(n,ys([void 0],t.concat(this))))},n}(Array),FS=process.env.NODE_ENV==="production",Gd="Invariant failed";function qd(e,n){if(!e)throw FS?new Error(Gd):new Error(Gd+": "+(n||""))}function $S(e,n,t,a){return JSON.stringify(e,MS(n,a),t)}function MS(e,n){var t=[],a=[];return n||(n=function(s,i){return t[0]===i?"[Circular ~]":"[Circular ~."+a.slice(0,t.indexOf(i)).join(".")+"]"}),function(s,i){if(t.length>0){var c=t.indexOf(this);~c?t.splice(c+1):t.push(this),~c?a.splice(c,1/0,s):a.push(s),~t.indexOf(i)&&(i=n.call(this,s,i))}else t.push(i);return e==null?i:e.call(this,s,i)}}function NS(e){return typeof e!="object"||e===null||typeof e>"u"||Object.isFrozen(e)}function LS(e,n,t){var a=ih(e,n,t);return{detectMutations:function(){return uh(e,n,a,t)}}}function ih(e,n,t,a){n===void 0&&(n=[]),a===void 0&&(a="");var s={value:t};if(!e(t)){s.children={};for(var i in t){var c=a?a+"."+i:i;n.length&&n.indexOf(c)!==-1||(s.children[i]=ih(e,n,t[i],c))}}return s}function uh(e,n,t,a,s,i){n===void 0&&(n=[]),s===void 0&&(s=!1),i===void 0&&(i="");var c=t?t.value:void 0,l=c===a;if(s&&!l&&!Number.isNaN(a))return{wasMutated:!0,path:i};if(e(c)||e(a))return{wasMutated:!1};var d={};for(var p in t.children)d[p]=!0;for(var p in a)d[p]=!0;for(var p in d){var h=i?i+"."+p:p;if(!(n.length&&n.indexOf(h)!==-1)){var b=uh(e,n,t.children[p],a[p],l,h);if(b.wasMutated)return b}}return{wasMutated:!1}}function jS(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(d){return function(p){return d(p)}}};var n=e.isImmutable,t=n===void 0?NS:n,a=e.ignoredPaths,s=e.warnAfter,i=s===void 0?32:s,c=e.ignore;a=a||c;var l=LS.bind(null,t,a);return function(d){var p=d.getState,h=p(),b=l(h),_;return function(S){return function(T){var x=sh(i,"ImmutableStateInvariantMiddleware");x.measureTime(function(){h=p(),_=b.detectMutations(),b=l(h),qd(!_.wasMutated,"A state mutation was detected between dispatches, in the path '"+(_.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var F=S(T);return x.measureTime(function(){h=p(),_=b.detectMutations(),b=l(h),_.wasMutated&&qd(!_.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(_.path||"")+". Take a look at the reducer(s) handling the action "+$S(T)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),x.warnIfExceeded(),F}}}}function ch(e){var n=typeof e;return n==="undefined"||e===null||n==="string"||n==="boolean"||n==="number"||Array.isArray(e)||oh(e)}function Gu(e,n,t,a,s){n===void 0&&(n=""),t===void 0&&(t=ch),s===void 0&&(s=[]);var i;if(!t(e))return{keyPath:n||"<root>",value:e};if(typeof e!="object"||e===null)return!1;for(var c=a!=null?a(e):Object.entries(e),l=s.length>0,d=0,p=c;d<p.length;d++){var h=p[d],b=h[0],_=h[1],S=n?n+"."+b:b;if(!(l&&s.indexOf(S)>=0)){if(!t(_))return{keyPath:S,value:_};if(typeof _=="object"&&(i=Gu(_,S,t,a,s),i))return i}}return!1}function kS(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(T){return function(x){return T(x)}}};var n=e.isSerializable,t=n===void 0?ch:n,a=e.getEntries,s=e.ignoredActions,i=s===void 0?[]:s,c=e.ignoredActionPaths,l=c===void 0?["meta.arg","meta.baseQueryMeta"]:c,d=e.ignoredPaths,p=d===void 0?[]:d,h=e.warnAfter,b=h===void 0?32:h,_=e.ignoreState,S=_===void 0?!1:_;return function(T){return function(x){return function(F){if(i.length&&i.indexOf(F.type)!==-1)return x(F);var D=sh(b,"SerializableStateInvariantMiddleware");D.measureTime(function(){var $=Gu(F,"",t,a,l);if($){var j=$.keyPath,A=$.value;console.error("A non-serializable value was detected in an action, in the path: `"+j+"`. Value:",A,`
|
|
4
|
+
Take a look at the logic that dispatched this action: `,F,`
|
|
5
|
+
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
|
|
6
|
+
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}});var W=x(F);return S||(D.measureTime(function(){var $=T.getState(),j=Gu($,"",t,a,p);if(j){var A=j.keyPath,K=j.value;console.error("A non-serializable value was detected in the state, in the path: `"+A+"`. Value:",K,`
|
|
7
|
+
Take a look at the reducer(s) handling this action type: `+F.type+`.
|
|
8
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),D.warnIfExceeded()),W}}}}function gu(e){return typeof e=="boolean"}function BS(){return function(n){return WS(n)}}function WS(e){e===void 0&&(e={});var n=e.thunk,t=n===void 0?!0:n,a=e.immutableCheck,s=a===void 0?!0:a,i=e.serializableCheck,c=i===void 0?!0:i,l=new IS;if(t&&(gu(t)?l.push(Wd):l.push(Wd.withExtraArgument(t.extraArgument))),process.env.NODE_ENV!=="production"){if(s){var d={};gu(s)||(d=s),l.unshift(jS(d))}if(c){var p={};gu(c)||(p=c),l.push(kS(p))}}return l}var vu=process.env.NODE_ENV==="production";function US(e){var n=BS(),t=e||{},a=t.reducer,s=a===void 0?void 0:a,i=t.middleware,c=i===void 0?n():i,l=t.devTools,d=l===void 0?!0:l,p=t.preloadedState,h=p===void 0?void 0:p,b=t.enhancers,_=b===void 0?void 0:b,S;if(typeof s=="function")S=s;else if(oh(s))S=rh(s);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var T=c;if(typeof T=="function"&&(T=T(n),!vu&&!Array.isArray(T)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!vu&&T.some(function($){return typeof $!="function"}))throw new Error("each middleware provided to configureStore must be a function");var x=gS.apply(void 0,T),F=gs;d&&(F=DS(hn({trace:!vu},typeof d=="object"&&d)));var D=[x];Array.isArray(_)?D=ys([x],_):typeof _=="function"&&(D=_(D));var W=F.apply(void 0,D);return th(S,h,W)}function Va(e,n){function t(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];if(n){var i=n.apply(void 0,a);if(!i)throw new Error("prepareAction did not return an object");return hn(hn({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:a[0]}}return t.toString=function(){return""+e},t.type=e,t.match=function(a){return a.type===e},t}function lh(e){var n={},t=[],a,s={addCase:function(i,c){if(process.env.NODE_ENV!=="production"){if(t.length>0)throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");if(a)throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`")}var l=typeof i=="string"?i:i.type;if(l in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[l]=c,s},addMatcher:function(i,c){if(process.env.NODE_ENV!=="production"&&a)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return t.push({matcher:i,reducer:c}),s},addDefaultCase:function(i){if(process.env.NODE_ENV!=="production"&&a)throw new Error("`builder.addDefaultCase` can only be called once");return a=i,s}};return e(s),[n,t,a]}function HS(e){return typeof e=="function"}function GS(e,n,t,a){t===void 0&&(t=[]);var s=typeof n=="function"?lh(n):[n,t,a],i=s[0],c=s[1],l=s[2],d;if(HS(e))d=function(){return ss(e(),function(){})};else{var p=ss(e,function(){});d=function(){return p}}function h(b,_){b===void 0&&(b=d());var S=ys([i[_.type]],c.filter(function(T){var x=T.matcher;return x(_)}).map(function(T){var x=T.reducer;return x}));return S.filter(function(T){return!!T}).length===0&&(S=[l]),S.reduce(function(T,x){if(x)if(Vr(T)){var F=T,D=x(F,_);return typeof D>"u"?T:D}else{if(Sr(T))return ss(T,function(W){return x(W,_)});var D=x(T,_);if(typeof D>"u"){if(T===null)return T;throw Error("A case reducer on a non-draftable value must not return undefined")}return D}return T},b)}return h.getInitialState=d,h}function qS(e,n){return e+"/"+n}function lr(e){var n=e.name;if(!n)throw new Error("`name` is a required option for createSlice");var t=typeof e.initialState=="function"?e.initialState:ss(e.initialState,function(){}),a=e.reducers||{},s=Object.keys(a),i={},c={},l={};s.forEach(function(h){var b=a[h],_=qS(n,h),S,T;"reducer"in b?(S=b.reducer,T=b.prepare):S=b,i[h]=S,c[_]=S,l[h]=T?Va(_,T):Va(_)});function d(){var h=typeof e.extraReducers=="function"?lh(e.extraReducers):[e.extraReducers],b=h[0],_=b===void 0?{}:b,S=h[1],T=S===void 0?[]:S,x=h[2],F=x===void 0?void 0:x,D=hn(hn({},_),c);return GS(t,D,T,F)}var p;return{name:n,reducer:function(h,b){return p||(p=d()),p(h,b)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var YS="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",wc=function(e){e===void 0&&(e=21);for(var n="",t=e;t--;)n+=YS[Math.random()*64|0];return n},zS=["name","message","stack","code"],yu=function(){function e(n,t){this.payload=n,this.meta=t}return e}(),Yd=function(){function e(n,t){this.payload=n,this.meta=t}return e}(),VS=function(e){if(typeof e=="object"&&e!==null){for(var n={},t=0,a=zS;t<a.length;t++){var s=a[t];typeof e[s]=="string"&&(n[s]=e[s])}return n}return{message:String(e)}};function re(e,n,t){var a=Va(e+"/fulfilled",function(p,h,b,_){return{payload:p,meta:hu(hn({},_||{}),{arg:b,requestId:h,requestStatus:"fulfilled"})}}),s=Va(e+"/pending",function(p,h,b){return{payload:void 0,meta:hu(hn({},b||{}),{arg:h,requestId:p,requestStatus:"pending"})}}),i=Va(e+"/rejected",function(p,h,b,_,S){return{payload:_,error:(t&&t.serializeError||VS)(p||"Rejected"),meta:hu(hn({},S||{}),{arg:b,requestId:h,rejectedWithValue:!!_,requestStatus:"rejected",aborted:(p==null?void 0:p.name)==="AbortError",condition:(p==null?void 0:p.name)==="ConditionError"})}}),c=!1,l=typeof AbortController<"u"?AbortController:function(){function p(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){}}}return p.prototype.abort=function(){process.env.NODE_ENV!=="production"&&(c||(c=!0,console.info("This platform does not implement AbortController. \nIf you want to use the AbortController to react to `abort` events, please consider importing a polyfill like 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'.")))},p}();function d(p){return function(h,b,_){var S=t!=null&&t.idGenerator?t.idGenerator(p):wc(),T=new l,x,F=new Promise(function(j,A){return T.signal.addEventListener("abort",function(){return A({name:"AbortError",message:x||"Aborted"})})}),D=!1;function W(j){D&&(x=j,T.abort())}var $=function(){return PS(this,null,function(){var j,A,K,G,Y,ie;return TS(this,function(We){switch(We.label){case 0:return We.trys.push([0,4,,5]),G=(j=t==null?void 0:t.condition)==null?void 0:j.call(t,p,{getState:b,extra:_}),JS(G)?[4,G]:[3,2];case 1:G=We.sent(),We.label=2;case 2:if(G===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return D=!0,h(s(S,p,(A=t==null?void 0:t.getPendingMeta)==null?void 0:A.call(t,{requestId:S,arg:p},{getState:b,extra:_}))),[4,Promise.race([F,Promise.resolve(n(p,{dispatch:h,getState:b,extra:_,requestId:S,signal:T.signal,rejectWithValue:function(Oe,st){return new yu(Oe,st)},fulfillWithValue:function(Oe,st){return new Yd(Oe,st)}})).then(function(Oe){if(Oe instanceof yu)throw Oe;return Oe instanceof Yd?a(Oe.payload,S,p,Oe.meta):a(Oe,S,p)})])];case 3:return K=We.sent(),[3,5];case 4:return Y=We.sent(),K=Y instanceof yu?i(null,S,p,Y.payload,Y.meta):i(Y,S,p),[3,5];case 5:return ie=t&&!t.dispatchConditionRejection&&i.match(K)&&K.meta.condition,ie||h(K),[2,K]}})})}();return Object.assign($,{abort:W,requestId:S,arg:p,unwrap:function(){return $.then(KS)}})}}return Object.assign(d,{pending:s,rejected:i,fulfilled:a,typePrefix:e})}function KS(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function JS(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var XS=function(e){return e&&typeof e.match=="function"},ZS=function(e,n){return XS(e)?e.match(n):e(n)};function _r(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(t){return e.some(function(a){return ZS(a,t)})}}function Tc(e,n){if(!e||!e.meta)return!1;var t=typeof e.meta.requestId=="string",a=n.indexOf(e.meta.requestStatus)>-1;return t&&a}function Cc(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function fh(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===0?function(t){return Tc(t,["pending"])}:Cc(e)?function(t){var a=e.map(function(i){return i.pending}),s=_r.apply(void 0,a);return s(t)}:fh()(e[0])}function dh(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===0?function(t){return Tc(t,["rejected"])}:Cc(e)?function(t){var a=e.map(function(i){return i.rejected}),s=_r.apply(void 0,a);return s(t)}:dh()(e[0])}function ph(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===0?function(t){return Tc(t,["fulfilled"])}:Cc(e)?function(t){var a=e.map(function(i){return i.fulfilled}),s=_r.apply(void 0,a);return s(t)}:ph()(e[0])}ZE();var qr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Is(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function QS(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var t=function a(){return this instanceof a?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:function(){return e[a]}})}),t}function ew(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var oo=ew,tw=typeof qr=="object"&&qr&&qr.Object===Object&&qr,hh=tw,rw=hh,nw=typeof self=="object"&&self&&self.Object===Object&&self,aw=rw||nw||Function("return this")(),Pr=aw,ow=Pr,sw=function(){return ow.Date.now()},iw=sw,uw=/\s/;function cw(e){for(var n=e.length;n--&&uw.test(e.charAt(n)););return n}var lw=cw,fw=lw,dw=/^\s+/;function pw(e){return e&&e.slice(0,fw(e)+1).replace(dw,"")}var hw=pw,gw=Pr,vw=gw.Symbol,xc=vw,zd=xc,gh=Object.prototype,yw=gh.hasOwnProperty,mw=gh.toString,Ha=zd?zd.toStringTag:void 0;function bw(e){var n=yw.call(e,Ha),t=e[Ha];try{e[Ha]=void 0;var a=!0}catch{}var s=mw.call(e);return a&&(n?e[Ha]=t:delete e[Ha]),s}var _w=bw,Ew=Object.prototype,Sw=Ew.toString;function ww(e){return Sw.call(e)}var Tw=ww,Vd=xc,Cw=_w,xw=Tw,Rw="[object Null]",Ow="[object Undefined]",Kd=Vd?Vd.toStringTag:void 0;function Aw(e){return e==null?e===void 0?Ow:Rw:Kd&&Kd in Object(e)?Cw(e):xw(e)}var Fs=Aw;function Pw(e){return e!=null&&typeof e=="object"}var Rc=Pw,Dw=Fs,Iw=Rc,Fw="[object Symbol]";function $w(e){return typeof e=="symbol"||Iw(e)&&Dw(e)==Fw}var Mw=$w,Nw=hw,Jd=oo,Lw=Mw,Xd=0/0,jw=/^[-+]0x[0-9a-f]+$/i,kw=/^0b[01]+$/i,Bw=/^0o[0-7]+$/i,Ww=parseInt;function Uw(e){if(typeof e=="number")return e;if(Lw(e))return Xd;if(Jd(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=Jd(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=Nw(e);var t=kw.test(e);return t||Bw.test(e)?Ww(e.slice(2),t?2:8):jw.test(e)?Xd:+e}var Hw=Uw,Gw=oo,mu=iw,Zd=Hw,qw="Expected a function",Yw=Math.max,zw=Math.min;function Vw(e,n,t){var a,s,i,c,l,d,p=0,h=!1,b=!1,_=!0;if(typeof e!="function")throw new TypeError(qw);n=Zd(n)||0,Gw(t)&&(h=!!t.leading,b="maxWait"in t,i=b?Yw(Zd(t.maxWait)||0,n):i,_="trailing"in t?!!t.trailing:_);function S(K){var G=a,Y=s;return a=s=void 0,p=K,c=e.apply(Y,G),c}function T(K){return p=K,l=setTimeout(D,n),h?S(K):c}function x(K){var G=K-d,Y=K-p,ie=n-G;return b?zw(ie,i-Y):ie}function F(K){var G=K-d,Y=K-p;return d===void 0||G>=n||G<0||b&&Y>=i}function D(){var K=mu();if(F(K))return W(K);l=setTimeout(D,x(K))}function W(K){return l=void 0,_&&a?S(K):(a=s=void 0,c)}function $(){l!==void 0&&clearTimeout(l),p=0,a=d=s=l=void 0}function j(){return l===void 0?c:W(mu())}function A(){var K=mu(),G=F(K);if(a=arguments,s=this,d=K,G){if(l===void 0)return T(d);if(b)return clearTimeout(l),l=setTimeout(D,n),S(d)}return l===void 0&&(l=setTimeout(D,n)),c}return A.cancel=$,A.flush=j,A}var Kw=Vw,Jw=Kw,Xw=oo,Zw="Expected a function";function Qw(e,n,t){var a=!0,s=!0;if(typeof e!="function")throw new TypeError(Zw);return Xw(t)&&(a="leading"in t?!!t.leading:a,s="trailing"in t?!!t.trailing:s),Jw(e,n,{leading:a,maxWait:n,trailing:s})}var eT=Qw;const tT=Is(eT);var vh=(e=>(e[e.First=0]="First",e[e.Last=-1]="Last",e))(vh||{}),Gr=(e=>(e.ATTACHED="attached",e.DETACHED="detached",e.ERROR="error",e))(Gr||{}),ms=(e=>(e.SOCKET_ERROR="socket-error",e.SOCKET_CLOSURE="socket-closure",e))(ms||{}),yh=(e=>(e.NOT_STARTED="remote debugger not started",e.ALREADY_IN_USE="already in use",e.TIMEOUT="timeout",e))(yh||{});const $s=2e3,Oc={tabs:[],activeTab:"",recent:[],roles:{roles:{},privileges:{},flags:{touched:!1},selectedTab:"roles",forceLogin:!1},sharedCSS:{state:"loading",styles:[]},debugger:{meta:{state:Gr.DETACHED},list:[],sessions:[],expressions:[]},webforms:{templates:{selectedGroup:"",data:[]},components:[],inspector:{css:{active:!1},datasource:{active:!1}},datasources:{theme:"grey"},flags:{"sidebar.section.resizable":!0}}},mh="4DWS_PREFS",bh=e=>`APP_STATE_${e}`,_h=()=>{var e,n;return((n=(e=window==null?void 0:window.$$datastores)==null?void 0:e.ds)==null?void 0:n.getBaseID())||""};function Eh(e){try{const n=_h(),t=JSON.stringify(e);localStorage.setItem(bh(n),t)}catch(n){console.error(n)}}function Sh(e){try{const n=JSON.stringify(e);localStorage.setItem(mh,n)}catch(n){console.error(n)}}function wh(){try{const e=localStorage.getItem(mh);if(e)return JSON.parse(e)}catch(e){console.error(e)}}function pa(){const e=_h(),n=localStorage.getItem(bh(e));if(n){const t=JSON.parse(n);return t.tabs=t.tabs.map(a=>({...a,flags:{...a.flags,enabled:!0}})),t}return Oc}function Ms(e){const{name:n,type:t,path:a}=e,s=a.split(".").at(-1);switch(t){case E.FileFolderType.WEBFORM:return`${n}.WebForm`;case E.FileFolderType.METHOD:case E.FileFolderType.CLASS:return s?`${n}.${s}`:n;case E.FileFolderType.ROLES:return n;default:return`${n}.${t}`}}const Th=e=>{if(!e)return[];const n=new Map;return e.dataClasses.forEach(t=>{var i,c;const a=t.extraProperties||{},s={id:t.className,type:"table",position:{x:((i=a.position)==null?void 0:i.x)||0,y:((c=a.position)==null?void 0:c.y)||0},dragHandle:".custom-drag-handle",data:t};n.set(t.name,s)}),Array.from(n.values())};function Ch(e){return e?["json","4dmodel","webform","mform"].includes(e.toLowerCase()):!1}function rT(){this.__data__=[],this.size=0}var nT=rT;function aT(e,n){return e===n||e!==e&&n!==n}var oT=aT,sT=oT;function iT(e,n){for(var t=e.length;t--;)if(sT(e[t][0],n))return t;return-1}var Ns=iT,uT=Ns,cT=Array.prototype,lT=cT.splice;function fT(e){var n=this.__data__,t=uT(n,e);if(t<0)return!1;var a=n.length-1;return t==a?n.pop():lT.call(n,t,1),--this.size,!0}var dT=fT,pT=Ns;function hT(e){var n=this.__data__,t=pT(n,e);return t<0?void 0:n[t][1]}var gT=hT,vT=Ns;function yT(e){return vT(this.__data__,e)>-1}var mT=yT,bT=Ns;function _T(e,n){var t=this.__data__,a=bT(t,e);return a<0?(++this.size,t.push([e,n])):t[a][1]=n,this}var ET=_T,ST=nT,wT=dT,TT=gT,CT=mT,xT=ET;function ha(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}ha.prototype.clear=ST;ha.prototype.delete=wT;ha.prototype.get=TT;ha.prototype.has=CT;ha.prototype.set=xT;var Ls=ha,RT=Ls;function OT(){this.__data__=new RT,this.size=0}var AT=OT;function PT(e){var n=this.__data__,t=n.delete(e);return this.size=n.size,t}var DT=PT;function IT(e){return this.__data__.get(e)}var FT=IT;function $T(e){return this.__data__.has(e)}var MT=$T,NT=Fs,LT=oo,jT="[object AsyncFunction]",kT="[object Function]",BT="[object GeneratorFunction]",WT="[object Proxy]";function UT(e){if(!LT(e))return!1;var n=NT(e);return n==kT||n==BT||n==jT||n==WT}var HT=UT,GT=Pr,qT=GT["__core-js_shared__"],YT=qT,bu=YT,Qd=function(){var e=/[^.]+$/.exec(bu&&bu.keys&&bu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function zT(e){return!!Qd&&Qd in e}var VT=zT,KT=Function.prototype,JT=KT.toString;function XT(e){if(e!=null){try{return JT.call(e)}catch{}try{return e+""}catch{}}return""}var xh=XT,ZT=HT,QT=VT,eC=oo,tC=xh,rC=/[\\^$.*+?()[\]{}|]/g,nC=/^\[object .+?Constructor\]$/,aC=Function.prototype,oC=Object.prototype,sC=aC.toString,iC=oC.hasOwnProperty,uC=RegExp("^"+sC.call(iC).replace(rC,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function cC(e){if(!eC(e)||QT(e))return!1;var n=ZT(e)?uC:nC;return n.test(tC(e))}var lC=cC;function fC(e,n){return e==null?void 0:e[n]}var dC=fC,pC=lC,hC=dC;function gC(e,n){var t=hC(e,n);return pC(t)?t:void 0}var ga=gC,vC=ga,yC=Pr,mC=vC(yC,"Map"),Ac=mC,bC=ga,_C=bC(Object,"create"),js=_C,ep=js;function EC(){this.__data__=ep?ep(null):{},this.size=0}var SC=EC;function wC(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var TC=wC,CC=js,xC="__lodash_hash_undefined__",RC=Object.prototype,OC=RC.hasOwnProperty;function AC(e){var n=this.__data__;if(CC){var t=n[e];return t===xC?void 0:t}return OC.call(n,e)?n[e]:void 0}var PC=AC,DC=js,IC=Object.prototype,FC=IC.hasOwnProperty;function $C(e){var n=this.__data__;return DC?n[e]!==void 0:FC.call(n,e)}var MC=$C,NC=js,LC="__lodash_hash_undefined__";function jC(e,n){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=NC&&n===void 0?LC:n,this}var kC=jC,BC=SC,WC=TC,UC=PC,HC=MC,GC=kC;function va(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}va.prototype.clear=BC;va.prototype.delete=WC;va.prototype.get=UC;va.prototype.has=HC;va.prototype.set=GC;var qC=va,tp=qC,YC=Ls,zC=Ac;function VC(){this.size=0,this.__data__={hash:new tp,map:new(zC||YC),string:new tp}}var KC=VC;function JC(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}var XC=JC,ZC=XC;function QC(e,n){var t=e.__data__;return ZC(n)?t[typeof n=="string"?"string":"hash"]:t.map}var ks=QC,ex=ks;function tx(e){var n=ex(this,e).delete(e);return this.size-=n?1:0,n}var rx=tx,nx=ks;function ax(e){return nx(this,e).get(e)}var ox=ax,sx=ks;function ix(e){return sx(this,e).has(e)}var ux=ix,cx=ks;function lx(e,n){var t=cx(this,e),a=t.size;return t.set(e,n),this.size+=t.size==a?0:1,this}var fx=lx,dx=KC,px=rx,hx=ox,gx=ux,vx=fx;function ya(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}ya.prototype.clear=dx;ya.prototype.delete=px;ya.prototype.get=hx;ya.prototype.has=gx;ya.prototype.set=vx;var Rh=ya,yx=Ls,mx=Ac,bx=Rh,_x=200;function Ex(e,n){var t=this.__data__;if(t instanceof yx){var a=t.__data__;if(!mx||a.length<_x-1)return a.push([e,n]),this.size=++t.size,this;t=this.__data__=new bx(a)}return t.set(e,n),this.size=t.size,this}var Sx=Ex,wx=Ls,Tx=AT,Cx=DT,xx=FT,Rx=MT,Ox=Sx;function so(e){var n=this.__data__=new wx(e);this.size=n.size}so.prototype.clear=Tx;so.prototype.delete=Cx;so.prototype.get=xx;so.prototype.has=Rx;so.prototype.set=Ox;var Ax="__lodash_hash_undefined__";function Px(e){return this.__data__.set(e,Ax),this}var Dx=Px;function Ix(e){return this.__data__.has(e)}var Fx=Ix,$x=Rh,Mx=Dx,Nx=Fx;function qu(e){var n=-1,t=e==null?0:e.length;for(this.__data__=new $x;++n<t;)this.add(e[n])}qu.prototype.add=qu.prototype.push=Mx;qu.prototype.has=Nx;var Lx=Pr;Lx.Uint8Array;var rp=xc,np=rp?rp.prototype:void 0;np&&np.valueOf;var jx=Fs,kx=Rc,Bx="[object Arguments]";function Wx(e){return kx(e)&&jx(e)==Bx}var Ux=Wx,ap=Ux,Hx=Rc,Oh=Object.prototype,Gx=Oh.hasOwnProperty,qx=Oh.propertyIsEnumerable;ap(function(){return arguments}());var bs={exports:{}};function Yx(){return!1}var zx=Yx;bs.exports;(function(e,n){var t=Pr,a=zx,s=n&&!n.nodeType&&n,i=s&&!0&&e&&!e.nodeType&&e,c=i&&i.exports===s,l=c?t.Buffer:void 0,d=l?l.isBuffer:void 0,p=d||a;e.exports=p})(bs,bs.exports);bs.exports;var _s={exports:{}};_s.exports;(function(e,n){var t=hh,a=n&&!n.nodeType&&n,s=a&&!0&&e&&!e.nodeType&&e,i=s&&s.exports===a,c=i&&t.process,l=function(){try{var d=s&&s.require&&s.require("util").types;return d||c&&c.binding&&c.binding("util")}catch{}}();e.exports=l})(_s,_s.exports);var Vx=_s.exports,op=Vx;op&&op.isTypedArray;var Kx=ga,Jx=Pr,Xx=Kx(Jx,"DataView"),Zx=Xx,Qx=ga,eR=Pr,tR=Qx(eR,"Promise"),rR=tR,nR=ga,aR=Pr,oR=nR(aR,"Set"),sR=oR,iR=ga,uR=Pr,cR=iR(uR,"WeakMap"),lR=cR,Yu=Zx,zu=Ac,Vu=rR,Ku=sR,Ju=lR,Ah=Fs,ma=xh,sp="[object Map]",fR="[object Object]",ip="[object Promise]",up="[object Set]",cp="[object WeakMap]",lp="[object DataView]",dR=ma(Yu),pR=ma(zu),hR=ma(Vu),gR=ma(Ku),vR=ma(Ju),na=Ah;(Yu&&na(new Yu(new ArrayBuffer(1)))!=lp||zu&&na(new zu)!=sp||Vu&&na(Vu.resolve())!=ip||Ku&&na(new Ku)!=up||Ju&&na(new Ju)!=cp)&&(na=function(e){var n=Ah(e),t=n==fR?e.constructor:void 0,a=t?ma(t):"";if(a)switch(a){case dR:return lp;case pR:return sp;case hR:return ip;case gR:return up;case vR:return cp}return n});const yR="ROOT";eS(),QE();var fp;(function(e){e[e.HandlerDisabled=0]="HandlerDisabled",e[e.HandlerEnabled=1]="HandlerEnabled"})(fp||(fp={}));var Es={exports:{}};/**
|
|
9
|
+
* @license
|
|
10
|
+
* Lodash <https://lodash.com/>
|
|
11
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
12
|
+
* Released under MIT license <https://lodash.com/license>
|
|
13
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
14
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
15
|
+
*/Es.exports;(function(e,n){(function(){var t,a="4.17.21",s=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",l="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",p=500,h="__lodash_placeholder__",b=1,_=2,S=4,T=1,x=2,F=1,D=2,W=4,$=8,j=16,A=32,K=64,G=128,Y=256,ie=512,We=30,Oe="...",st=800,Z=16,we=1,Xe=2,Ze=3,Ue=1/0,et=9007199254740991,Dt=17976931348623157e292,H=0/0,V=4294967295,ve=V-1,he=V>>>1,le=[["ary",G],["bind",F],["bindKey",D],["curry",$],["curryRight",j],["flip",ie],["partial",A],["partialRight",K],["rearg",Y]],ye="[object Arguments]",se="[object Array]",fe="[object AsyncFunction]",ue="[object Boolean]",me="[object Date]",ge="[object DOMException]",J="[object Error]",N="[object Function]",Ge="[object GeneratorFunction]",qe="[object Map]",it="[object Number]",vn="[object Null]",It="[object Object]",er="[object Promise]",_a="[object Proxy]",bt="[object RegExp]",pt="[object Set]",Ir="[object String]",wr="[object Symbol]",yn="[object Undefined]",qt="[object WeakMap]",Ea="[object WeakSet]",Fr="[object ArrayBuffer]",Tr="[object DataView]",mn="[object Float32Array]",bn="[object Float64Array]",_n="[object Int8Array]",En="[object Int16Array]",dr="[object Int32Array]",$r="[object Uint8Array]",_t="[object Uint8ClampedArray]",pr="[object Uint16Array]",hr="[object Uint32Array]",Sn=/\b__p \+= '';/g,Sa=/\b(__p \+=) '' \+/g,wn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Wn=/&(?:amp|lt|gt|quot|#39);/g,en=/[&<>"']/g,Tn=RegExp(Wn.source),wa=RegExp(en.source),Ta=/<%-([\s\S]+?)%>/g,Cn=/<%([\s\S]+?)%>/g,Un=/<%=([\s\S]+?)%>/g,Ca=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xa=/^\w*$/,Ra=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,g=/[\\^$.*+?()[\]{}|]/g,R=RegExp(g.source),I=/^\s+/,q=/\s/,ae=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,ee=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ie=/[()=,{}\[\]\/\s]/,be=/\\(\\)?/g,Ee=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,at=/\w*$/,Ft=/^[-+]0x[0-9a-f]+$/i,xn=/^0b[01]+$/i,ut=/^\[object .+?Constructor\]$/,Lv=/^0o[0-7]+$/i,jv=/^(?:0|[1-9]\d*)$/,kv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,lo=/($^)/,Bv=/['\n\r\u2028\u2029\\]/g,fo="\\ud800-\\udfff",Wv="\\u0300-\\u036f",Uv="\\ufe20-\\ufe2f",Hv="\\u20d0-\\u20ff",ol=Wv+Uv+Hv,sl="\\u2700-\\u27bf",il="a-z\\xdf-\\xf6\\xf8-\\xff",Gv="\\xac\\xb1\\xd7\\xf7",qv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Yv="\\u2000-\\u206f",zv=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ul="A-Z\\xc0-\\xd6\\xd8-\\xde",cl="\\ufe0e\\ufe0f",ll=Gv+qv+Yv+zv,Qs="['’]",Vv="["+fo+"]",fl="["+ll+"]",po="["+ol+"]",dl="\\d+",Kv="["+sl+"]",pl="["+il+"]",hl="[^"+fo+ll+dl+sl+il+ul+"]",ei="\\ud83c[\\udffb-\\udfff]",Jv="(?:"+po+"|"+ei+")",gl="[^"+fo+"]",ti="(?:\\ud83c[\\udde6-\\uddff]){2}",ri="[\\ud800-\\udbff][\\udc00-\\udfff]",Hn="["+ul+"]",vl="\\u200d",yl="(?:"+pl+"|"+hl+")",Xv="(?:"+Hn+"|"+hl+")",ml="(?:"+Qs+"(?:d|ll|m|re|s|t|ve))?",bl="(?:"+Qs+"(?:D|LL|M|RE|S|T|VE))?",_l=Jv+"?",El="["+cl+"]?",Zv="(?:"+vl+"(?:"+[gl,ti,ri].join("|")+")"+El+_l+")*",Qv="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ey="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Sl=El+_l+Zv,ty="(?:"+[Kv,ti,ri].join("|")+")"+Sl,ry="(?:"+[gl+po+"?",po,ti,ri,Vv].join("|")+")",ny=RegExp(Qs,"g"),ay=RegExp(po,"g"),ni=RegExp(ei+"(?="+ei+")|"+ry+Sl,"g"),oy=RegExp([Hn+"?"+pl+"+"+ml+"(?="+[fl,Hn,"$"].join("|")+")",Xv+"+"+bl+"(?="+[fl,Hn+yl,"$"].join("|")+")",Hn+"?"+yl+"+"+ml,Hn+"+"+bl,ey,Qv,dl,ty].join("|"),"g"),sy=RegExp("["+vl+fo+ol+cl+"]"),iy=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,uy=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],cy=-1,Qe={};Qe[mn]=Qe[bn]=Qe[_n]=Qe[En]=Qe[dr]=Qe[$r]=Qe[_t]=Qe[pr]=Qe[hr]=!0,Qe[ye]=Qe[se]=Qe[Fr]=Qe[ue]=Qe[Tr]=Qe[me]=Qe[J]=Qe[N]=Qe[qe]=Qe[it]=Qe[It]=Qe[bt]=Qe[pt]=Qe[Ir]=Qe[qt]=!1;var Je={};Je[ye]=Je[se]=Je[Fr]=Je[Tr]=Je[ue]=Je[me]=Je[mn]=Je[bn]=Je[_n]=Je[En]=Je[dr]=Je[qe]=Je[it]=Je[It]=Je[bt]=Je[pt]=Je[Ir]=Je[wr]=Je[$r]=Je[_t]=Je[pr]=Je[hr]=!0,Je[J]=Je[N]=Je[qt]=!1;var ly={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},fy={"&":"&","<":"<",">":">",'"':""","'":"'"},dy={"&":"&","<":"<",">":">",""":'"',"'":"'"},py={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},hy=parseFloat,gy=parseInt,wl=typeof qr=="object"&&qr&&qr.Object===Object&&qr,vy=typeof self=="object"&&self&&self.Object===Object&&self,Et=wl||vy||Function("return this")(),ai=n&&!n.nodeType&&n,Rn=ai&&!0&&e&&!e.nodeType&&e,Tl=Rn&&Rn.exports===ai,oi=Tl&&wl.process,tr=function(){try{var O=Rn&&Rn.require&&Rn.require("util").types;return O||oi&&oi.binding&&oi.binding("util")}catch{}}(),Cl=tr&&tr.isArrayBuffer,xl=tr&&tr.isDate,Rl=tr&&tr.isMap,Ol=tr&&tr.isRegExp,Al=tr&&tr.isSet,Pl=tr&&tr.isTypedArray;function Yt(O,L,M){switch(M.length){case 0:return O.call(L);case 1:return O.call(L,M[0]);case 2:return O.call(L,M[0],M[1]);case 3:return O.call(L,M[0],M[1],M[2])}return O.apply(L,M)}function yy(O,L,M,te){for(var _e=-1,$e=O==null?0:O.length;++_e<$e;){var ht=O[_e];L(te,ht,M(ht),O)}return te}function rr(O,L){for(var M=-1,te=O==null?0:O.length;++M<te&&L(O[M],M,O)!==!1;);return O}function my(O,L){for(var M=O==null?0:O.length;M--&&L(O[M],M,O)!==!1;);return O}function Dl(O,L){for(var M=-1,te=O==null?0:O.length;++M<te;)if(!L(O[M],M,O))return!1;return!0}function tn(O,L){for(var M=-1,te=O==null?0:O.length,_e=0,$e=[];++M<te;){var ht=O[M];L(ht,M,O)&&($e[_e++]=ht)}return $e}function ho(O,L){var M=O==null?0:O.length;return!!M&&Gn(O,L,0)>-1}function si(O,L,M){for(var te=-1,_e=O==null?0:O.length;++te<_e;)if(M(L,O[te]))return!0;return!1}function tt(O,L){for(var M=-1,te=O==null?0:O.length,_e=Array(te);++M<te;)_e[M]=L(O[M],M,O);return _e}function rn(O,L){for(var M=-1,te=L.length,_e=O.length;++M<te;)O[_e+M]=L[M];return O}function ii(O,L,M,te){var _e=-1,$e=O==null?0:O.length;for(te&&$e&&(M=O[++_e]);++_e<$e;)M=L(M,O[_e],_e,O);return M}function by(O,L,M,te){var _e=O==null?0:O.length;for(te&&_e&&(M=O[--_e]);_e--;)M=L(M,O[_e],_e,O);return M}function ui(O,L){for(var M=-1,te=O==null?0:O.length;++M<te;)if(L(O[M],M,O))return!0;return!1}var _y=ci("length");function Ey(O){return O.split("")}function Sy(O){return O.match(Q)||[]}function Il(O,L,M){var te;return M(O,function(_e,$e,ht){if(L(_e,$e,ht))return te=$e,!1}),te}function go(O,L,M,te){for(var _e=O.length,$e=M+(te?1:-1);te?$e--:++$e<_e;)if(L(O[$e],$e,O))return $e;return-1}function Gn(O,L,M){return L===L?$y(O,L,M):go(O,Fl,M)}function wy(O,L,M,te){for(var _e=M-1,$e=O.length;++_e<$e;)if(te(O[_e],L))return _e;return-1}function Fl(O){return O!==O}function $l(O,L){var M=O==null?0:O.length;return M?fi(O,L)/M:H}function ci(O){return function(L){return L==null?t:L[O]}}function li(O){return function(L){return O==null?t:O[L]}}function Ml(O,L,M,te,_e){return _e(O,function($e,ht,Ve){M=te?(te=!1,$e):L(M,$e,ht,Ve)}),M}function Ty(O,L){var M=O.length;for(O.sort(L);M--;)O[M]=O[M].value;return O}function fi(O,L){for(var M,te=-1,_e=O.length;++te<_e;){var $e=L(O[te]);$e!==t&&(M=M===t?$e:M+$e)}return M}function di(O,L){for(var M=-1,te=Array(O);++M<O;)te[M]=L(M);return te}function Cy(O,L){return tt(L,function(M){return[M,O[M]]})}function Nl(O){return O&&O.slice(0,Bl(O)+1).replace(I,"")}function zt(O){return function(L){return O(L)}}function pi(O,L){return tt(L,function(M){return O[M]})}function Oa(O,L){return O.has(L)}function Ll(O,L){for(var M=-1,te=O.length;++M<te&&Gn(L,O[M],0)>-1;);return M}function jl(O,L){for(var M=O.length;M--&&Gn(L,O[M],0)>-1;);return M}function xy(O,L){for(var M=O.length,te=0;M--;)O[M]===L&&++te;return te}var Ry=li(ly),Oy=li(fy);function Ay(O){return"\\"+py[O]}function Py(O,L){return O==null?t:O[L]}function qn(O){return sy.test(O)}function Dy(O){return iy.test(O)}function Iy(O){for(var L,M=[];!(L=O.next()).done;)M.push(L.value);return M}function hi(O){var L=-1,M=Array(O.size);return O.forEach(function(te,_e){M[++L]=[_e,te]}),M}function kl(O,L){return function(M){return O(L(M))}}function nn(O,L){for(var M=-1,te=O.length,_e=0,$e=[];++M<te;){var ht=O[M];(ht===L||ht===h)&&(O[M]=h,$e[_e++]=M)}return $e}function vo(O){var L=-1,M=Array(O.size);return O.forEach(function(te){M[++L]=te}),M}function Fy(O){var L=-1,M=Array(O.size);return O.forEach(function(te){M[++L]=[te,te]}),M}function $y(O,L,M){for(var te=M-1,_e=O.length;++te<_e;)if(O[te]===L)return te;return-1}function My(O,L,M){for(var te=M+1;te--;)if(O[te]===L)return te;return te}function Yn(O){return qn(O)?Ly(O):_y(O)}function gr(O){return qn(O)?jy(O):Ey(O)}function Bl(O){for(var L=O.length;L--&&q.test(O.charAt(L)););return L}var Ny=li(dy);function Ly(O){for(var L=ni.lastIndex=0;ni.test(O);)++L;return L}function jy(O){return O.match(ni)||[]}function ky(O){return O.match(oy)||[]}var By=function O(L){L=L==null?Et:zn.defaults(Et.Object(),L,zn.pick(Et,uy));var M=L.Array,te=L.Date,_e=L.Error,$e=L.Function,ht=L.Math,Ve=L.Object,gi=L.RegExp,Wy=L.String,nr=L.TypeError,yo=M.prototype,Uy=$e.prototype,Vn=Ve.prototype,mo=L["__core-js_shared__"],bo=Uy.toString,He=Vn.hasOwnProperty,Hy=0,Wl=function(){var r=/[^.]+$/.exec(mo&&mo.keys&&mo.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),_o=Vn.toString,Gy=bo.call(Ve),qy=Et._,Yy=gi("^"+bo.call(He).replace(g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Eo=Tl?L.Buffer:t,an=L.Symbol,So=L.Uint8Array,Ul=Eo?Eo.allocUnsafe:t,wo=kl(Ve.getPrototypeOf,Ve),Hl=Ve.create,Gl=Vn.propertyIsEnumerable,To=yo.splice,ql=an?an.isConcatSpreadable:t,Aa=an?an.iterator:t,On=an?an.toStringTag:t,Co=function(){try{var r=Fn(Ve,"defineProperty");return r({},"",{}),r}catch{}}(),zy=L.clearTimeout!==Et.clearTimeout&&L.clearTimeout,Vy=te&&te.now!==Et.Date.now&&te.now,Ky=L.setTimeout!==Et.setTimeout&&L.setTimeout,xo=ht.ceil,Ro=ht.floor,vi=Ve.getOwnPropertySymbols,Jy=Eo?Eo.isBuffer:t,Yl=L.isFinite,Xy=yo.join,Zy=kl(Ve.keys,Ve),gt=ht.max,Tt=ht.min,Qy=te.now,em=L.parseInt,zl=ht.random,tm=yo.reverse,yi=Fn(L,"DataView"),Pa=Fn(L,"Map"),mi=Fn(L,"Promise"),Kn=Fn(L,"Set"),Da=Fn(L,"WeakMap"),Ia=Fn(Ve,"create"),Oo=Da&&new Da,Jn={},rm=$n(yi),nm=$n(Pa),am=$n(mi),om=$n(Kn),sm=$n(Da),Ao=an?an.prototype:t,Fa=Ao?Ao.valueOf:t,Vl=Ao?Ao.toString:t;function y(r){if(ot(r)&&!Se(r)&&!(r instanceof Pe)){if(r instanceof ar)return r;if(He.call(r,"__wrapped__"))return Jf(r)}return new ar(r)}var Xn=function(){function r(){}return function(o){if(!nt(o))return{};if(Hl)return Hl(o);r.prototype=o;var u=new r;return r.prototype=t,u}}();function Po(){}function ar(r,o){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=t}y.templateSettings={escape:Ta,evaluate:Cn,interpolate:Un,variable:"",imports:{_:y}},y.prototype=Po.prototype,y.prototype.constructor=y,ar.prototype=Xn(Po.prototype),ar.prototype.constructor=ar;function Pe(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=V,this.__views__=[]}function im(){var r=new Pe(this.__wrapped__);return r.__actions__=kt(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=kt(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=kt(this.__views__),r}function um(){if(this.__filtered__){var r=new Pe(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function cm(){var r=this.__wrapped__.value(),o=this.__dir__,u=Se(r),f=o<0,v=u?r.length:0,m=E0(0,v,this.__views__),w=m.start,C=m.end,P=C-w,k=f?C:w-1,B=this.__iteratees__,U=B.length,X=0,ne=Tt(P,this.__takeCount__);if(!u||!f&&v==P&&ne==P)return bf(r,this.__actions__);var de=[];e:for(;P--&&X<ne;){k+=o;for(var xe=-1,pe=r[k];++xe<U;){var Ae=B[xe],De=Ae.iteratee,Jt=Ae.type,Nt=De(pe);if(Jt==Xe)pe=Nt;else if(!Nt){if(Jt==we)continue e;break e}}de[X++]=pe}return de}Pe.prototype=Xn(Po.prototype),Pe.prototype.constructor=Pe;function An(r){var o=-1,u=r==null?0:r.length;for(this.clear();++o<u;){var f=r[o];this.set(f[0],f[1])}}function lm(){this.__data__=Ia?Ia(null):{},this.size=0}function fm(r){var o=this.has(r)&&delete this.__data__[r];return this.size-=o?1:0,o}function dm(r){var o=this.__data__;if(Ia){var u=o[r];return u===d?t:u}return He.call(o,r)?o[r]:t}function pm(r){var o=this.__data__;return Ia?o[r]!==t:He.call(o,r)}function hm(r,o){var u=this.__data__;return this.size+=this.has(r)?0:1,u[r]=Ia&&o===t?d:o,this}An.prototype.clear=lm,An.prototype.delete=fm,An.prototype.get=dm,An.prototype.has=pm,An.prototype.set=hm;function Mr(r){var o=-1,u=r==null?0:r.length;for(this.clear();++o<u;){var f=r[o];this.set(f[0],f[1])}}function gm(){this.__data__=[],this.size=0}function vm(r){var o=this.__data__,u=Do(o,r);if(u<0)return!1;var f=o.length-1;return u==f?o.pop():To.call(o,u,1),--this.size,!0}function ym(r){var o=this.__data__,u=Do(o,r);return u<0?t:o[u][1]}function mm(r){return Do(this.__data__,r)>-1}function bm(r,o){var u=this.__data__,f=Do(u,r);return f<0?(++this.size,u.push([r,o])):u[f][1]=o,this}Mr.prototype.clear=gm,Mr.prototype.delete=vm,Mr.prototype.get=ym,Mr.prototype.has=mm,Mr.prototype.set=bm;function Nr(r){var o=-1,u=r==null?0:r.length;for(this.clear();++o<u;){var f=r[o];this.set(f[0],f[1])}}function _m(){this.size=0,this.__data__={hash:new An,map:new(Pa||Mr),string:new An}}function Em(r){var o=Ho(this,r).delete(r);return this.size-=o?1:0,o}function Sm(r){return Ho(this,r).get(r)}function wm(r){return Ho(this,r).has(r)}function Tm(r,o){var u=Ho(this,r),f=u.size;return u.set(r,o),this.size+=u.size==f?0:1,this}Nr.prototype.clear=_m,Nr.prototype.delete=Em,Nr.prototype.get=Sm,Nr.prototype.has=wm,Nr.prototype.set=Tm;function Pn(r){var o=-1,u=r==null?0:r.length;for(this.__data__=new Nr;++o<u;)this.add(r[o])}function Cm(r){return this.__data__.set(r,d),this}function xm(r){return this.__data__.has(r)}Pn.prototype.add=Pn.prototype.push=Cm,Pn.prototype.has=xm;function vr(r){var o=this.__data__=new Mr(r);this.size=o.size}function Rm(){this.__data__=new Mr,this.size=0}function Om(r){var o=this.__data__,u=o.delete(r);return this.size=o.size,u}function Am(r){return this.__data__.get(r)}function Pm(r){return this.__data__.has(r)}function Dm(r,o){var u=this.__data__;if(u instanceof Mr){var f=u.__data__;if(!Pa||f.length<s-1)return f.push([r,o]),this.size=++u.size,this;u=this.__data__=new Nr(f)}return u.set(r,o),this.size=u.size,this}vr.prototype.clear=Rm,vr.prototype.delete=Om,vr.prototype.get=Am,vr.prototype.has=Pm,vr.prototype.set=Dm;function Kl(r,o){var u=Se(r),f=!u&&Mn(r),v=!u&&!f&&ln(r),m=!u&&!f&&!v&&ta(r),w=u||f||v||m,C=w?di(r.length,Wy):[],P=C.length;for(var k in r)(o||He.call(r,k))&&!(w&&(k=="length"||v&&(k=="offset"||k=="parent")||m&&(k=="buffer"||k=="byteLength"||k=="byteOffset")||Br(k,P)))&&C.push(k);return C}function Jl(r){var o=r.length;return o?r[Ai(0,o-1)]:t}function Im(r,o){return Go(kt(r),Dn(o,0,r.length))}function Fm(r){return Go(kt(r))}function bi(r,o,u){(u!==t&&!yr(r[o],u)||u===t&&!(o in r))&&Lr(r,o,u)}function $a(r,o,u){var f=r[o];(!(He.call(r,o)&&yr(f,u))||u===t&&!(o in r))&&Lr(r,o,u)}function Do(r,o){for(var u=r.length;u--;)if(yr(r[u][0],o))return u;return-1}function $m(r,o,u,f){return on(r,function(v,m,w){o(f,v,u(v),w)}),f}function Xl(r,o){return r&&xr(o,mt(o),r)}function Mm(r,o){return r&&xr(o,Wt(o),r)}function Lr(r,o,u){o=="__proto__"&&Co?Co(r,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):r[o]=u}function _i(r,o){for(var u=-1,f=o.length,v=M(f),m=r==null;++u<f;)v[u]=m?t:eu(r,o[u]);return v}function Dn(r,o,u){return r===r&&(u!==t&&(r=r<=u?r:u),o!==t&&(r=r>=o?r:o)),r}function or(r,o,u,f,v,m){var w,C=o&b,P=o&_,k=o&S;if(u&&(w=v?u(r,f,v,m):u(r)),w!==t)return w;if(!nt(r))return r;var B=Se(r);if(B){if(w=w0(r),!C)return kt(r,w)}else{var U=Ct(r),X=U==N||U==Ge;if(ln(r))return Sf(r,C);if(U==It||U==ye||X&&!v){if(w=P||X?{}:Wf(r),!C)return P?d0(r,Mm(w,r)):f0(r,Xl(w,r))}else{if(!Je[U])return v?r:{};w=T0(r,U,C)}}m||(m=new vr);var ne=m.get(r);if(ne)return ne;m.set(r,w),vd(r)?r.forEach(function(pe){w.add(or(pe,o,u,pe,r,m))}):hd(r)&&r.forEach(function(pe,Ae){w.set(Ae,or(pe,o,u,Ae,r,m))});var de=k?P?Bi:ki:P?Wt:mt,xe=B?t:de(r);return rr(xe||r,function(pe,Ae){xe&&(Ae=pe,pe=r[Ae]),$a(w,Ae,or(pe,o,u,Ae,r,m))}),w}function Nm(r){var o=mt(r);return function(u){return Zl(u,r,o)}}function Zl(r,o,u){var f=u.length;if(r==null)return!f;for(r=Ve(r);f--;){var v=u[f],m=o[v],w=r[v];if(w===t&&!(v in r)||!m(w))return!1}return!0}function Ql(r,o,u){if(typeof r!="function")throw new nr(c);return Wa(function(){r.apply(t,u)},o)}function Ma(r,o,u,f){var v=-1,m=ho,w=!0,C=r.length,P=[],k=o.length;if(!C)return P;u&&(o=tt(o,zt(u))),f?(m=si,w=!1):o.length>=s&&(m=Oa,w=!1,o=new Pn(o));e:for(;++v<C;){var B=r[v],U=u==null?B:u(B);if(B=f||B!==0?B:0,w&&U===U){for(var X=k;X--;)if(o[X]===U)continue e;P.push(B)}else m(o,U,f)||P.push(B)}return P}var on=Rf(Cr),ef=Rf(Si,!0);function Lm(r,o){var u=!0;return on(r,function(f,v,m){return u=!!o(f,v,m),u}),u}function Io(r,o,u){for(var f=-1,v=r.length;++f<v;){var m=r[f],w=o(m);if(w!=null&&(C===t?w===w&&!Kt(w):u(w,C)))var C=w,P=m}return P}function jm(r,o,u,f){var v=r.length;for(u=Te(u),u<0&&(u=-u>v?0:v+u),f=f===t||f>v?v:Te(f),f<0&&(f+=v),f=u>f?0:md(f);u<f;)r[u++]=o;return r}function tf(r,o){var u=[];return on(r,function(f,v,m){o(f,v,m)&&u.push(f)}),u}function St(r,o,u,f,v){var m=-1,w=r.length;for(u||(u=x0),v||(v=[]);++m<w;){var C=r[m];o>0&&u(C)?o>1?St(C,o-1,u,f,v):rn(v,C):f||(v[v.length]=C)}return v}var Ei=Of(),rf=Of(!0);function Cr(r,o){return r&&Ei(r,o,mt)}function Si(r,o){return r&&rf(r,o,mt)}function Fo(r,o){return tn(o,function(u){return Wr(r[u])})}function In(r,o){o=un(o,r);for(var u=0,f=o.length;r!=null&&u<f;)r=r[Rr(o[u++])];return u&&u==f?r:t}function nf(r,o,u){var f=o(r);return Se(r)?f:rn(f,u(r))}function $t(r){return r==null?r===t?yn:vn:On&&On in Ve(r)?_0(r):F0(r)}function wi(r,o){return r>o}function km(r,o){return r!=null&&He.call(r,o)}function Bm(r,o){return r!=null&&o in Ve(r)}function Wm(r,o,u){return r>=Tt(o,u)&&r<gt(o,u)}function Ti(r,o,u){for(var f=u?si:ho,v=r[0].length,m=r.length,w=m,C=M(m),P=1/0,k=[];w--;){var B=r[w];w&&o&&(B=tt(B,zt(o))),P=Tt(B.length,P),C[w]=!u&&(o||v>=120&&B.length>=120)?new Pn(w&&B):t}B=r[0];var U=-1,X=C[0];e:for(;++U<v&&k.length<P;){var ne=B[U],de=o?o(ne):ne;if(ne=u||ne!==0?ne:0,!(X?Oa(X,de):f(k,de,u))){for(w=m;--w;){var xe=C[w];if(!(xe?Oa(xe,de):f(r[w],de,u)))continue e}X&&X.push(de),k.push(ne)}}return k}function Um(r,o,u,f){return Cr(r,function(v,m,w){o(f,u(v),m,w)}),f}function Na(r,o,u){o=un(o,r),r=qf(r,o);var f=r==null?r:r[Rr(ir(o))];return f==null?t:Yt(f,r,u)}function af(r){return ot(r)&&$t(r)==ye}function Hm(r){return ot(r)&&$t(r)==Fr}function Gm(r){return ot(r)&&$t(r)==me}function La(r,o,u,f,v){return r===o?!0:r==null||o==null||!ot(r)&&!ot(o)?r!==r&&o!==o:qm(r,o,u,f,La,v)}function qm(r,o,u,f,v,m){var w=Se(r),C=Se(o),P=w?se:Ct(r),k=C?se:Ct(o);P=P==ye?It:P,k=k==ye?It:k;var B=P==It,U=k==It,X=P==k;if(X&&ln(r)){if(!ln(o))return!1;w=!0,B=!1}if(X&&!B)return m||(m=new vr),w||ta(r)?jf(r,o,u,f,v,m):m0(r,o,P,u,f,v,m);if(!(u&T)){var ne=B&&He.call(r,"__wrapped__"),de=U&&He.call(o,"__wrapped__");if(ne||de){var xe=ne?r.value():r,pe=de?o.value():o;return m||(m=new vr),v(xe,pe,u,f,m)}}return X?(m||(m=new vr),b0(r,o,u,f,v,m)):!1}function Ym(r){return ot(r)&&Ct(r)==qe}function Ci(r,o,u,f){var v=u.length,m=v,w=!f;if(r==null)return!m;for(r=Ve(r);v--;){var C=u[v];if(w&&C[2]?C[1]!==r[C[0]]:!(C[0]in r))return!1}for(;++v<m;){C=u[v];var P=C[0],k=r[P],B=C[1];if(w&&C[2]){if(k===t&&!(P in r))return!1}else{var U=new vr;if(f)var X=f(k,B,P,r,o,U);if(!(X===t?La(B,k,T|x,f,U):X))return!1}}return!0}function of(r){if(!nt(r)||O0(r))return!1;var o=Wr(r)?Yy:ut;return o.test($n(r))}function zm(r){return ot(r)&&$t(r)==bt}function Vm(r){return ot(r)&&Ct(r)==pt}function Km(r){return ot(r)&&Jo(r.length)&&!!Qe[$t(r)]}function sf(r){return typeof r=="function"?r:r==null?Ut:typeof r=="object"?Se(r)?lf(r[0],r[1]):cf(r):Ad(r)}function xi(r){if(!Ba(r))return Zy(r);var o=[];for(var u in Ve(r))He.call(r,u)&&u!="constructor"&&o.push(u);return o}function Jm(r){if(!nt(r))return I0(r);var o=Ba(r),u=[];for(var f in r)f=="constructor"&&(o||!He.call(r,f))||u.push(f);return u}function Ri(r,o){return r<o}function uf(r,o){var u=-1,f=Bt(r)?M(r.length):[];return on(r,function(v,m,w){f[++u]=o(v,m,w)}),f}function cf(r){var o=Ui(r);return o.length==1&&o[0][2]?Hf(o[0][0],o[0][1]):function(u){return u===r||Ci(u,r,o)}}function lf(r,o){return Gi(r)&&Uf(o)?Hf(Rr(r),o):function(u){var f=eu(u,r);return f===t&&f===o?tu(u,r):La(o,f,T|x)}}function $o(r,o,u,f,v){r!==o&&Ei(o,function(m,w){if(v||(v=new vr),nt(m))Xm(r,o,w,u,$o,f,v);else{var C=f?f(Yi(r,w),m,w+"",r,o,v):t;C===t&&(C=m),bi(r,w,C)}},Wt)}function Xm(r,o,u,f,v,m,w){var C=Yi(r,u),P=Yi(o,u),k=w.get(P);if(k){bi(r,u,k);return}var B=m?m(C,P,u+"",r,o,w):t,U=B===t;if(U){var X=Se(P),ne=!X&&ln(P),de=!X&&!ne&&ta(P);B=P,X||ne||de?Se(C)?B=C:ct(C)?B=kt(C):ne?(U=!1,B=Sf(P,!0)):de?(U=!1,B=wf(P,!0)):B=[]:Ua(P)||Mn(P)?(B=C,Mn(C)?B=bd(C):(!nt(C)||Wr(C))&&(B=Wf(P))):U=!1}U&&(w.set(P,B),v(B,P,f,m,w),w.delete(P)),bi(r,u,B)}function ff(r,o){var u=r.length;if(u)return o+=o<0?u:0,Br(o,u)?r[o]:t}function df(r,o,u){o.length?o=tt(o,function(m){return Se(m)?function(w){return In(w,m.length===1?m[0]:m)}:m}):o=[Ut];var f=-1;o=tt(o,zt(ce()));var v=uf(r,function(m,w,C){var P=tt(o,function(k){return k(m)});return{criteria:P,index:++f,value:m}});return Ty(v,function(m,w){return l0(m,w,u)})}function Zm(r,o){return pf(r,o,function(u,f){return tu(r,f)})}function pf(r,o,u){for(var f=-1,v=o.length,m={};++f<v;){var w=o[f],C=In(r,w);u(C,w)&&ja(m,un(w,r),C)}return m}function Qm(r){return function(o){return In(o,r)}}function Oi(r,o,u,f){var v=f?wy:Gn,m=-1,w=o.length,C=r;for(r===o&&(o=kt(o)),u&&(C=tt(r,zt(u)));++m<w;)for(var P=0,k=o[m],B=u?u(k):k;(P=v(C,B,P,f))>-1;)C!==r&&To.call(C,P,1),To.call(r,P,1);return r}function hf(r,o){for(var u=r?o.length:0,f=u-1;u--;){var v=o[u];if(u==f||v!==m){var m=v;Br(v)?To.call(r,v,1):Ii(r,v)}}return r}function Ai(r,o){return r+Ro(zl()*(o-r+1))}function e0(r,o,u,f){for(var v=-1,m=gt(xo((o-r)/(u||1)),0),w=M(m);m--;)w[f?m:++v]=r,r+=u;return w}function Pi(r,o){var u="";if(!r||o<1||o>et)return u;do o%2&&(u+=r),o=Ro(o/2),o&&(r+=r);while(o);return u}function Re(r,o){return zi(Gf(r,o,Ut),r+"")}function t0(r){return Jl(ra(r))}function r0(r,o){var u=ra(r);return Go(u,Dn(o,0,u.length))}function ja(r,o,u,f){if(!nt(r))return r;o=un(o,r);for(var v=-1,m=o.length,w=m-1,C=r;C!=null&&++v<m;){var P=Rr(o[v]),k=u;if(P==="__proto__"||P==="constructor"||P==="prototype")return r;if(v!=w){var B=C[P];k=f?f(B,P,C):t,k===t&&(k=nt(B)?B:Br(o[v+1])?[]:{})}$a(C,P,k),C=C[P]}return r}var gf=Oo?function(r,o){return Oo.set(r,o),r}:Ut,n0=Co?function(r,o){return Co(r,"toString",{configurable:!0,enumerable:!1,value:nu(o),writable:!0})}:Ut;function a0(r){return Go(ra(r))}function sr(r,o,u){var f=-1,v=r.length;o<0&&(o=-o>v?0:v+o),u=u>v?v:u,u<0&&(u+=v),v=o>u?0:u-o>>>0,o>>>=0;for(var m=M(v);++f<v;)m[f]=r[f+o];return m}function o0(r,o){var u;return on(r,function(f,v,m){return u=o(f,v,m),!u}),!!u}function Mo(r,o,u){var f=0,v=r==null?f:r.length;if(typeof o=="number"&&o===o&&v<=he){for(;f<v;){var m=f+v>>>1,w=r[m];w!==null&&!Kt(w)&&(u?w<=o:w<o)?f=m+1:v=m}return v}return Di(r,o,Ut,u)}function Di(r,o,u,f){var v=0,m=r==null?0:r.length;if(m===0)return 0;o=u(o);for(var w=o!==o,C=o===null,P=Kt(o),k=o===t;v<m;){var B=Ro((v+m)/2),U=u(r[B]),X=U!==t,ne=U===null,de=U===U,xe=Kt(U);if(w)var pe=f||de;else k?pe=de&&(f||X):C?pe=de&&X&&(f||!ne):P?pe=de&&X&&!ne&&(f||!xe):ne||xe?pe=!1:pe=f?U<=o:U<o;pe?v=B+1:m=B}return Tt(m,ve)}function vf(r,o){for(var u=-1,f=r.length,v=0,m=[];++u<f;){var w=r[u],C=o?o(w):w;if(!u||!yr(C,P)){var P=C;m[v++]=w===0?0:w}}return m}function yf(r){return typeof r=="number"?r:Kt(r)?H:+r}function Vt(r){if(typeof r=="string")return r;if(Se(r))return tt(r,Vt)+"";if(Kt(r))return Vl?Vl.call(r):"";var o=r+"";return o=="0"&&1/r==-Ue?"-0":o}function sn(r,o,u){var f=-1,v=ho,m=r.length,w=!0,C=[],P=C;if(u)w=!1,v=si;else if(m>=s){var k=o?null:v0(r);if(k)return vo(k);w=!1,v=Oa,P=new Pn}else P=o?[]:C;e:for(;++f<m;){var B=r[f],U=o?o(B):B;if(B=u||B!==0?B:0,w&&U===U){for(var X=P.length;X--;)if(P[X]===U)continue e;o&&P.push(U),C.push(B)}else v(P,U,u)||(P!==C&&P.push(U),C.push(B))}return C}function Ii(r,o){return o=un(o,r),r=qf(r,o),r==null||delete r[Rr(ir(o))]}function mf(r,o,u,f){return ja(r,o,u(In(r,o)),f)}function No(r,o,u,f){for(var v=r.length,m=f?v:-1;(f?m--:++m<v)&&o(r[m],m,r););return u?sr(r,f?0:m,f?m+1:v):sr(r,f?m+1:0,f?v:m)}function bf(r,o){var u=r;return u instanceof Pe&&(u=u.value()),ii(o,function(f,v){return v.func.apply(v.thisArg,rn([f],v.args))},u)}function Fi(r,o,u){var f=r.length;if(f<2)return f?sn(r[0]):[];for(var v=-1,m=M(f);++v<f;)for(var w=r[v],C=-1;++C<f;)C!=v&&(m[v]=Ma(m[v]||w,r[C],o,u));return sn(St(m,1),o,u)}function _f(r,o,u){for(var f=-1,v=r.length,m=o.length,w={};++f<v;){var C=f<m?o[f]:t;u(w,r[f],C)}return w}function $i(r){return ct(r)?r:[]}function Mi(r){return typeof r=="function"?r:Ut}function un(r,o){return Se(r)?r:Gi(r,o)?[r]:Kf(Ne(r))}var s0=Re;function cn(r,o,u){var f=r.length;return u=u===t?f:u,!o&&u>=f?r:sr(r,o,u)}var Ef=zy||function(r){return Et.clearTimeout(r)};function Sf(r,o){if(o)return r.slice();var u=r.length,f=Ul?Ul(u):new r.constructor(u);return r.copy(f),f}function Ni(r){var o=new r.constructor(r.byteLength);return new So(o).set(new So(r)),o}function i0(r,o){var u=o?Ni(r.buffer):r.buffer;return new r.constructor(u,r.byteOffset,r.byteLength)}function u0(r){var o=new r.constructor(r.source,at.exec(r));return o.lastIndex=r.lastIndex,o}function c0(r){return Fa?Ve(Fa.call(r)):{}}function wf(r,o){var u=o?Ni(r.buffer):r.buffer;return new r.constructor(u,r.byteOffset,r.length)}function Tf(r,o){if(r!==o){var u=r!==t,f=r===null,v=r===r,m=Kt(r),w=o!==t,C=o===null,P=o===o,k=Kt(o);if(!C&&!k&&!m&&r>o||m&&w&&P&&!C&&!k||f&&w&&P||!u&&P||!v)return 1;if(!f&&!m&&!k&&r<o||k&&u&&v&&!f&&!m||C&&u&&v||!w&&v||!P)return-1}return 0}function l0(r,o,u){for(var f=-1,v=r.criteria,m=o.criteria,w=v.length,C=u.length;++f<w;){var P=Tf(v[f],m[f]);if(P){if(f>=C)return P;var k=u[f];return P*(k=="desc"?-1:1)}}return r.index-o.index}function Cf(r,o,u,f){for(var v=-1,m=r.length,w=u.length,C=-1,P=o.length,k=gt(m-w,0),B=M(P+k),U=!f;++C<P;)B[C]=o[C];for(;++v<w;)(U||v<m)&&(B[u[v]]=r[v]);for(;k--;)B[C++]=r[v++];return B}function xf(r,o,u,f){for(var v=-1,m=r.length,w=-1,C=u.length,P=-1,k=o.length,B=gt(m-C,0),U=M(B+k),X=!f;++v<B;)U[v]=r[v];for(var ne=v;++P<k;)U[ne+P]=o[P];for(;++w<C;)(X||v<m)&&(U[ne+u[w]]=r[v++]);return U}function kt(r,o){var u=-1,f=r.length;for(o||(o=M(f));++u<f;)o[u]=r[u];return o}function xr(r,o,u,f){var v=!u;u||(u={});for(var m=-1,w=o.length;++m<w;){var C=o[m],P=f?f(u[C],r[C],C,u,r):t;P===t&&(P=r[C]),v?Lr(u,C,P):$a(u,C,P)}return u}function f0(r,o){return xr(r,Hi(r),o)}function d0(r,o){return xr(r,kf(r),o)}function Lo(r,o){return function(u,f){var v=Se(u)?yy:$m,m=o?o():{};return v(u,r,ce(f,2),m)}}function Zn(r){return Re(function(o,u){var f=-1,v=u.length,m=v>1?u[v-1]:t,w=v>2?u[2]:t;for(m=r.length>3&&typeof m=="function"?(v--,m):t,w&&Mt(u[0],u[1],w)&&(m=v<3?t:m,v=1),o=Ve(o);++f<v;){var C=u[f];C&&r(o,C,f,m)}return o})}function Rf(r,o){return function(u,f){if(u==null)return u;if(!Bt(u))return r(u,f);for(var v=u.length,m=o?v:-1,w=Ve(u);(o?m--:++m<v)&&f(w[m],m,w)!==!1;);return u}}function Of(r){return function(o,u,f){for(var v=-1,m=Ve(o),w=f(o),C=w.length;C--;){var P=w[r?C:++v];if(u(m[P],P,m)===!1)break}return o}}function p0(r,o,u){var f=o&F,v=ka(r);function m(){var w=this&&this!==Et&&this instanceof m?v:r;return w.apply(f?u:this,arguments)}return m}function Af(r){return function(o){o=Ne(o);var u=qn(o)?gr(o):t,f=u?u[0]:o.charAt(0),v=u?cn(u,1).join(""):o.slice(1);return f[r]()+v}}function Qn(r){return function(o){return ii(Rd(xd(o).replace(ny,"")),r,"")}}function ka(r){return function(){var o=arguments;switch(o.length){case 0:return new r;case 1:return new r(o[0]);case 2:return new r(o[0],o[1]);case 3:return new r(o[0],o[1],o[2]);case 4:return new r(o[0],o[1],o[2],o[3]);case 5:return new r(o[0],o[1],o[2],o[3],o[4]);case 6:return new r(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new r(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var u=Xn(r.prototype),f=r.apply(u,o);return nt(f)?f:u}}function h0(r,o,u){var f=ka(r);function v(){for(var m=arguments.length,w=M(m),C=m,P=ea(v);C--;)w[C]=arguments[C];var k=m<3&&w[0]!==P&&w[m-1]!==P?[]:nn(w,P);if(m-=k.length,m<u)return $f(r,o,jo,v.placeholder,t,w,k,t,t,u-m);var B=this&&this!==Et&&this instanceof v?f:r;return Yt(B,this,w)}return v}function Pf(r){return function(o,u,f){var v=Ve(o);if(!Bt(o)){var m=ce(u,3);o=mt(o),u=function(C){return m(v[C],C,v)}}var w=r(o,u,f);return w>-1?v[m?o[w]:w]:t}}function Df(r){return kr(function(o){var u=o.length,f=u,v=ar.prototype.thru;for(r&&o.reverse();f--;){var m=o[f];if(typeof m!="function")throw new nr(c);if(v&&!w&&Uo(m)=="wrapper")var w=new ar([],!0)}for(f=w?f:u;++f<u;){m=o[f];var C=Uo(m),P=C=="wrapper"?Wi(m):t;P&&qi(P[0])&&P[1]==(G|$|A|Y)&&!P[4].length&&P[9]==1?w=w[Uo(P[0])].apply(w,P[3]):w=m.length==1&&qi(m)?w[C]():w.thru(m)}return function(){var k=arguments,B=k[0];if(w&&k.length==1&&Se(B))return w.plant(B).value();for(var U=0,X=u?o[U].apply(this,k):B;++U<u;)X=o[U].call(this,X);return X}})}function jo(r,o,u,f,v,m,w,C,P,k){var B=o&G,U=o&F,X=o&D,ne=o&($|j),de=o&ie,xe=X?t:ka(r);function pe(){for(var Ae=arguments.length,De=M(Ae),Jt=Ae;Jt--;)De[Jt]=arguments[Jt];if(ne)var Nt=ea(pe),Xt=xy(De,Nt);if(f&&(De=Cf(De,f,v,ne)),m&&(De=xf(De,m,w,ne)),Ae-=Xt,ne&&Ae<k){var lt=nn(De,Nt);return $f(r,o,jo,pe.placeholder,u,De,lt,C,P,k-Ae)}var mr=U?u:this,Hr=X?mr[r]:r;return Ae=De.length,C?De=$0(De,C):de&&Ae>1&&De.reverse(),B&&P<Ae&&(De.length=P),this&&this!==Et&&this instanceof pe&&(Hr=xe||ka(Hr)),Hr.apply(mr,De)}return pe}function If(r,o){return function(u,f){return Um(u,r,o(f),{})}}function ko(r,o){return function(u,f){var v;if(u===t&&f===t)return o;if(u!==t&&(v=u),f!==t){if(v===t)return f;typeof u=="string"||typeof f=="string"?(u=Vt(u),f=Vt(f)):(u=yf(u),f=yf(f)),v=r(u,f)}return v}}function Li(r){return kr(function(o){return o=tt(o,zt(ce())),Re(function(u){var f=this;return r(o,function(v){return Yt(v,f,u)})})})}function Bo(r,o){o=o===t?" ":Vt(o);var u=o.length;if(u<2)return u?Pi(o,r):o;var f=Pi(o,xo(r/Yn(o)));return qn(o)?cn(gr(f),0,r).join(""):f.slice(0,r)}function g0(r,o,u,f){var v=o&F,m=ka(r);function w(){for(var C=-1,P=arguments.length,k=-1,B=f.length,U=M(B+P),X=this&&this!==Et&&this instanceof w?m:r;++k<B;)U[k]=f[k];for(;P--;)U[k++]=arguments[++C];return Yt(X,v?u:this,U)}return w}function Ff(r){return function(o,u,f){return f&&typeof f!="number"&&Mt(o,u,f)&&(u=f=t),o=Ur(o),u===t?(u=o,o=0):u=Ur(u),f=f===t?o<u?1:-1:Ur(f),e0(o,u,f,r)}}function Wo(r){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=ur(o),u=ur(u)),r(o,u)}}function $f(r,o,u,f,v,m,w,C,P,k){var B=o&$,U=B?w:t,X=B?t:w,ne=B?m:t,de=B?t:m;o|=B?A:K,o&=~(B?K:A),o&W||(o&=~(F|D));var xe=[r,o,v,ne,U,de,X,C,P,k],pe=u.apply(t,xe);return qi(r)&&Yf(pe,xe),pe.placeholder=f,zf(pe,r,o)}function ji(r){var o=ht[r];return function(u,f){if(u=ur(u),f=f==null?0:Tt(Te(f),292),f&&Yl(u)){var v=(Ne(u)+"e").split("e"),m=o(v[0]+"e"+(+v[1]+f));return v=(Ne(m)+"e").split("e"),+(v[0]+"e"+(+v[1]-f))}return o(u)}}var v0=Kn&&1/vo(new Kn([,-0]))[1]==Ue?function(r){return new Kn(r)}:su;function Mf(r){return function(o){var u=Ct(o);return u==qe?hi(o):u==pt?Fy(o):Cy(o,r(o))}}function jr(r,o,u,f,v,m,w,C){var P=o&D;if(!P&&typeof r!="function")throw new nr(c);var k=f?f.length:0;if(k||(o&=~(A|K),f=v=t),w=w===t?w:gt(Te(w),0),C=C===t?C:Te(C),k-=v?v.length:0,o&K){var B=f,U=v;f=v=t}var X=P?t:Wi(r),ne=[r,o,u,f,v,B,U,m,w,C];if(X&&D0(ne,X),r=ne[0],o=ne[1],u=ne[2],f=ne[3],v=ne[4],C=ne[9]=ne[9]===t?P?0:r.length:gt(ne[9]-k,0),!C&&o&($|j)&&(o&=~($|j)),!o||o==F)var de=p0(r,o,u);else o==$||o==j?de=h0(r,o,C):(o==A||o==(F|A))&&!v.length?de=g0(r,o,u,f):de=jo.apply(t,ne);var xe=X?gf:Yf;return zf(xe(de,ne),r,o)}function Nf(r,o,u,f){return r===t||yr(r,Vn[u])&&!He.call(f,u)?o:r}function Lf(r,o,u,f,v,m){return nt(r)&&nt(o)&&(m.set(o,r),$o(r,o,t,Lf,m),m.delete(o)),r}function y0(r){return Ua(r)?t:r}function jf(r,o,u,f,v,m){var w=u&T,C=r.length,P=o.length;if(C!=P&&!(w&&P>C))return!1;var k=m.get(r),B=m.get(o);if(k&&B)return k==o&&B==r;var U=-1,X=!0,ne=u&x?new Pn:t;for(m.set(r,o),m.set(o,r);++U<C;){var de=r[U],xe=o[U];if(f)var pe=w?f(xe,de,U,o,r,m):f(de,xe,U,r,o,m);if(pe!==t){if(pe)continue;X=!1;break}if(ne){if(!ui(o,function(Ae,De){if(!Oa(ne,De)&&(de===Ae||v(de,Ae,u,f,m)))return ne.push(De)})){X=!1;break}}else if(!(de===xe||v(de,xe,u,f,m))){X=!1;break}}return m.delete(r),m.delete(o),X}function m0(r,o,u,f,v,m,w){switch(u){case Tr:if(r.byteLength!=o.byteLength||r.byteOffset!=o.byteOffset)return!1;r=r.buffer,o=o.buffer;case Fr:return!(r.byteLength!=o.byteLength||!m(new So(r),new So(o)));case ue:case me:case it:return yr(+r,+o);case J:return r.name==o.name&&r.message==o.message;case bt:case Ir:return r==o+"";case qe:var C=hi;case pt:var P=f&T;if(C||(C=vo),r.size!=o.size&&!P)return!1;var k=w.get(r);if(k)return k==o;f|=x,w.set(r,o);var B=jf(C(r),C(o),f,v,m,w);return w.delete(r),B;case wr:if(Fa)return Fa.call(r)==Fa.call(o)}return!1}function b0(r,o,u,f,v,m){var w=u&T,C=ki(r),P=C.length,k=ki(o),B=k.length;if(P!=B&&!w)return!1;for(var U=P;U--;){var X=C[U];if(!(w?X in o:He.call(o,X)))return!1}var ne=m.get(r),de=m.get(o);if(ne&&de)return ne==o&&de==r;var xe=!0;m.set(r,o),m.set(o,r);for(var pe=w;++U<P;){X=C[U];var Ae=r[X],De=o[X];if(f)var Jt=w?f(De,Ae,X,o,r,m):f(Ae,De,X,r,o,m);if(!(Jt===t?Ae===De||v(Ae,De,u,f,m):Jt)){xe=!1;break}pe||(pe=X=="constructor")}if(xe&&!pe){var Nt=r.constructor,Xt=o.constructor;Nt!=Xt&&"constructor"in r&&"constructor"in o&&!(typeof Nt=="function"&&Nt instanceof Nt&&typeof Xt=="function"&&Xt instanceof Xt)&&(xe=!1)}return m.delete(r),m.delete(o),xe}function kr(r){return zi(Gf(r,t,Qf),r+"")}function ki(r){return nf(r,mt,Hi)}function Bi(r){return nf(r,Wt,kf)}var Wi=Oo?function(r){return Oo.get(r)}:su;function Uo(r){for(var o=r.name+"",u=Jn[o],f=He.call(Jn,o)?u.length:0;f--;){var v=u[f],m=v.func;if(m==null||m==r)return v.name}return o}function ea(r){var o=He.call(y,"placeholder")?y:r;return o.placeholder}function ce(){var r=y.iteratee||au;return r=r===au?sf:r,arguments.length?r(arguments[0],arguments[1]):r}function Ho(r,o){var u=r.__data__;return R0(o)?u[typeof o=="string"?"string":"hash"]:u.map}function Ui(r){for(var o=mt(r),u=o.length;u--;){var f=o[u],v=r[f];o[u]=[f,v,Uf(v)]}return o}function Fn(r,o){var u=Py(r,o);return of(u)?u:t}function _0(r){var o=He.call(r,On),u=r[On];try{r[On]=t;var f=!0}catch{}var v=_o.call(r);return f&&(o?r[On]=u:delete r[On]),v}var Hi=vi?function(r){return r==null?[]:(r=Ve(r),tn(vi(r),function(o){return Gl.call(r,o)}))}:iu,kf=vi?function(r){for(var o=[];r;)rn(o,Hi(r)),r=wo(r);return o}:iu,Ct=$t;(yi&&Ct(new yi(new ArrayBuffer(1)))!=Tr||Pa&&Ct(new Pa)!=qe||mi&&Ct(mi.resolve())!=er||Kn&&Ct(new Kn)!=pt||Da&&Ct(new Da)!=qt)&&(Ct=function(r){var o=$t(r),u=o==It?r.constructor:t,f=u?$n(u):"";if(f)switch(f){case rm:return Tr;case nm:return qe;case am:return er;case om:return pt;case sm:return qt}return o});function E0(r,o,u){for(var f=-1,v=u.length;++f<v;){var m=u[f],w=m.size;switch(m.type){case"drop":r+=w;break;case"dropRight":o-=w;break;case"take":o=Tt(o,r+w);break;case"takeRight":r=gt(r,o-w);break}}return{start:r,end:o}}function S0(r){var o=r.match(oe);return o?o[1].split(ee):[]}function Bf(r,o,u){o=un(o,r);for(var f=-1,v=o.length,m=!1;++f<v;){var w=Rr(o[f]);if(!(m=r!=null&&u(r,w)))break;r=r[w]}return m||++f!=v?m:(v=r==null?0:r.length,!!v&&Jo(v)&&Br(w,v)&&(Se(r)||Mn(r)))}function w0(r){var o=r.length,u=new r.constructor(o);return o&&typeof r[0]=="string"&&He.call(r,"index")&&(u.index=r.index,u.input=r.input),u}function Wf(r){return typeof r.constructor=="function"&&!Ba(r)?Xn(wo(r)):{}}function T0(r,o,u){var f=r.constructor;switch(o){case Fr:return Ni(r);case ue:case me:return new f(+r);case Tr:return i0(r,u);case mn:case bn:case _n:case En:case dr:case $r:case _t:case pr:case hr:return wf(r,u);case qe:return new f;case it:case Ir:return new f(r);case bt:return u0(r);case pt:return new f;case wr:return c0(r)}}function C0(r,o){var u=o.length;if(!u)return r;var f=u-1;return o[f]=(u>1?"& ":"")+o[f],o=o.join(u>2?", ":" "),r.replace(ae,`{
|
|
16
|
+
/* [wrapped with `+o+`] */
|
|
17
|
+
`)}function x0(r){return Se(r)||Mn(r)||!!(ql&&r&&r[ql])}function Br(r,o){var u=typeof r;return o=o??et,!!o&&(u=="number"||u!="symbol"&&jv.test(r))&&r>-1&&r%1==0&&r<o}function Mt(r,o,u){if(!nt(u))return!1;var f=typeof o;return(f=="number"?Bt(u)&&Br(o,u.length):f=="string"&&o in u)?yr(u[o],r):!1}function Gi(r,o){if(Se(r))return!1;var u=typeof r;return u=="number"||u=="symbol"||u=="boolean"||r==null||Kt(r)?!0:xa.test(r)||!Ca.test(r)||o!=null&&r in Ve(o)}function R0(r){var o=typeof r;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?r!=="__proto__":r===null}function qi(r){var o=Uo(r),u=y[o];if(typeof u!="function"||!(o in Pe.prototype))return!1;if(r===u)return!0;var f=Wi(u);return!!f&&r===f[0]}function O0(r){return!!Wl&&Wl in r}var A0=mo?Wr:uu;function Ba(r){var o=r&&r.constructor,u=typeof o=="function"&&o.prototype||Vn;return r===u}function Uf(r){return r===r&&!nt(r)}function Hf(r,o){return function(u){return u==null?!1:u[r]===o&&(o!==t||r in Ve(u))}}function P0(r){var o=Vo(r,function(f){return u.size===p&&u.clear(),f}),u=o.cache;return o}function D0(r,o){var u=r[1],f=o[1],v=u|f,m=v<(F|D|G),w=f==G&&u==$||f==G&&u==Y&&r[7].length<=o[8]||f==(G|Y)&&o[7].length<=o[8]&&u==$;if(!(m||w))return r;f&F&&(r[2]=o[2],v|=u&F?0:W);var C=o[3];if(C){var P=r[3];r[3]=P?Cf(P,C,o[4]):C,r[4]=P?nn(r[3],h):o[4]}return C=o[5],C&&(P=r[5],r[5]=P?xf(P,C,o[6]):C,r[6]=P?nn(r[5],h):o[6]),C=o[7],C&&(r[7]=C),f&G&&(r[8]=r[8]==null?o[8]:Tt(r[8],o[8])),r[9]==null&&(r[9]=o[9]),r[0]=o[0],r[1]=v,r}function I0(r){var o=[];if(r!=null)for(var u in Ve(r))o.push(u);return o}function F0(r){return _o.call(r)}function Gf(r,o,u){return o=gt(o===t?r.length-1:o,0),function(){for(var f=arguments,v=-1,m=gt(f.length-o,0),w=M(m);++v<m;)w[v]=f[o+v];v=-1;for(var C=M(o+1);++v<o;)C[v]=f[v];return C[o]=u(w),Yt(r,this,C)}}function qf(r,o){return o.length<2?r:In(r,sr(o,0,-1))}function $0(r,o){for(var u=r.length,f=Tt(o.length,u),v=kt(r);f--;){var m=o[f];r[f]=Br(m,u)?v[m]:t}return r}function Yi(r,o){if(!(o==="constructor"&&typeof r[o]=="function")&&o!="__proto__")return r[o]}var Yf=Vf(gf),Wa=Ky||function(r,o){return Et.setTimeout(r,o)},zi=Vf(n0);function zf(r,o,u){var f=o+"";return zi(r,C0(f,M0(S0(f),u)))}function Vf(r){var o=0,u=0;return function(){var f=Qy(),v=Z-(f-u);if(u=f,v>0){if(++o>=st)return arguments[0]}else o=0;return r.apply(t,arguments)}}function Go(r,o){var u=-1,f=r.length,v=f-1;for(o=o===t?f:o;++u<o;){var m=Ai(u,v),w=r[m];r[m]=r[u],r[u]=w}return r.length=o,r}var Kf=P0(function(r){var o=[];return r.charCodeAt(0)===46&&o.push(""),r.replace(Ra,function(u,f,v,m){o.push(v?m.replace(be,"$1"):f||u)}),o});function Rr(r){if(typeof r=="string"||Kt(r))return r;var o=r+"";return o=="0"&&1/r==-Ue?"-0":o}function $n(r){if(r!=null){try{return bo.call(r)}catch{}try{return r+""}catch{}}return""}function M0(r,o){return rr(le,function(u){var f="_."+u[0];o&u[1]&&!ho(r,f)&&r.push(f)}),r.sort()}function Jf(r){if(r instanceof Pe)return r.clone();var o=new ar(r.__wrapped__,r.__chain__);return o.__actions__=kt(r.__actions__),o.__index__=r.__index__,o.__values__=r.__values__,o}function N0(r,o,u){(u?Mt(r,o,u):o===t)?o=1:o=gt(Te(o),0);var f=r==null?0:r.length;if(!f||o<1)return[];for(var v=0,m=0,w=M(xo(f/o));v<f;)w[m++]=sr(r,v,v+=o);return w}function L0(r){for(var o=-1,u=r==null?0:r.length,f=0,v=[];++o<u;){var m=r[o];m&&(v[f++]=m)}return v}function j0(){var r=arguments.length;if(!r)return[];for(var o=M(r-1),u=arguments[0],f=r;f--;)o[f-1]=arguments[f];return rn(Se(u)?kt(u):[u],St(o,1))}var k0=Re(function(r,o){return ct(r)?Ma(r,St(o,1,ct,!0)):[]}),B0=Re(function(r,o){var u=ir(o);return ct(u)&&(u=t),ct(r)?Ma(r,St(o,1,ct,!0),ce(u,2)):[]}),W0=Re(function(r,o){var u=ir(o);return ct(u)&&(u=t),ct(r)?Ma(r,St(o,1,ct,!0),t,u):[]});function U0(r,o,u){var f=r==null?0:r.length;return f?(o=u||o===t?1:Te(o),sr(r,o<0?0:o,f)):[]}function H0(r,o,u){var f=r==null?0:r.length;return f?(o=u||o===t?1:Te(o),o=f-o,sr(r,0,o<0?0:o)):[]}function G0(r,o){return r&&r.length?No(r,ce(o,3),!0,!0):[]}function q0(r,o){return r&&r.length?No(r,ce(o,3),!0):[]}function Y0(r,o,u,f){var v=r==null?0:r.length;return v?(u&&typeof u!="number"&&Mt(r,o,u)&&(u=0,f=v),jm(r,o,u,f)):[]}function Xf(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var v=u==null?0:Te(u);return v<0&&(v=gt(f+v,0)),go(r,ce(o,3),v)}function Zf(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var v=f-1;return u!==t&&(v=Te(u),v=u<0?gt(f+v,0):Tt(v,f-1)),go(r,ce(o,3),v,!0)}function Qf(r){var o=r==null?0:r.length;return o?St(r,1):[]}function z0(r){var o=r==null?0:r.length;return o?St(r,Ue):[]}function V0(r,o){var u=r==null?0:r.length;return u?(o=o===t?1:Te(o),St(r,o)):[]}function K0(r){for(var o=-1,u=r==null?0:r.length,f={};++o<u;){var v=r[o];f[v[0]]=v[1]}return f}function ed(r){return r&&r.length?r[0]:t}function J0(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var v=u==null?0:Te(u);return v<0&&(v=gt(f+v,0)),Gn(r,o,v)}function X0(r){var o=r==null?0:r.length;return o?sr(r,0,-1):[]}var Z0=Re(function(r){var o=tt(r,$i);return o.length&&o[0]===r[0]?Ti(o):[]}),Q0=Re(function(r){var o=ir(r),u=tt(r,$i);return o===ir(u)?o=t:u.pop(),u.length&&u[0]===r[0]?Ti(u,ce(o,2)):[]}),eb=Re(function(r){var o=ir(r),u=tt(r,$i);return o=typeof o=="function"?o:t,o&&u.pop(),u.length&&u[0]===r[0]?Ti(u,t,o):[]});function tb(r,o){return r==null?"":Xy.call(r,o)}function ir(r){var o=r==null?0:r.length;return o?r[o-1]:t}function rb(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var v=f;return u!==t&&(v=Te(u),v=v<0?gt(f+v,0):Tt(v,f-1)),o===o?My(r,o,v):go(r,Fl,v,!0)}function nb(r,o){return r&&r.length?ff(r,Te(o)):t}var ab=Re(td);function td(r,o){return r&&r.length&&o&&o.length?Oi(r,o):r}function ob(r,o,u){return r&&r.length&&o&&o.length?Oi(r,o,ce(u,2)):r}function sb(r,o,u){return r&&r.length&&o&&o.length?Oi(r,o,t,u):r}var ib=kr(function(r,o){var u=r==null?0:r.length,f=_i(r,o);return hf(r,tt(o,function(v){return Br(v,u)?+v:v}).sort(Tf)),f});function ub(r,o){var u=[];if(!(r&&r.length))return u;var f=-1,v=[],m=r.length;for(o=ce(o,3);++f<m;){var w=r[f];o(w,f,r)&&(u.push(w),v.push(f))}return hf(r,v),u}function Vi(r){return r==null?r:tm.call(r)}function cb(r,o,u){var f=r==null?0:r.length;return f?(u&&typeof u!="number"&&Mt(r,o,u)?(o=0,u=f):(o=o==null?0:Te(o),u=u===t?f:Te(u)),sr(r,o,u)):[]}function lb(r,o){return Mo(r,o)}function fb(r,o,u){return Di(r,o,ce(u,2))}function db(r,o){var u=r==null?0:r.length;if(u){var f=Mo(r,o);if(f<u&&yr(r[f],o))return f}return-1}function pb(r,o){return Mo(r,o,!0)}function hb(r,o,u){return Di(r,o,ce(u,2),!0)}function gb(r,o){var u=r==null?0:r.length;if(u){var f=Mo(r,o,!0)-1;if(yr(r[f],o))return f}return-1}function vb(r){return r&&r.length?vf(r):[]}function yb(r,o){return r&&r.length?vf(r,ce(o,2)):[]}function mb(r){var o=r==null?0:r.length;return o?sr(r,1,o):[]}function bb(r,o,u){return r&&r.length?(o=u||o===t?1:Te(o),sr(r,0,o<0?0:o)):[]}function _b(r,o,u){var f=r==null?0:r.length;return f?(o=u||o===t?1:Te(o),o=f-o,sr(r,o<0?0:o,f)):[]}function Eb(r,o){return r&&r.length?No(r,ce(o,3),!1,!0):[]}function Sb(r,o){return r&&r.length?No(r,ce(o,3)):[]}var wb=Re(function(r){return sn(St(r,1,ct,!0))}),Tb=Re(function(r){var o=ir(r);return ct(o)&&(o=t),sn(St(r,1,ct,!0),ce(o,2))}),Cb=Re(function(r){var o=ir(r);return o=typeof o=="function"?o:t,sn(St(r,1,ct,!0),t,o)});function xb(r){return r&&r.length?sn(r):[]}function Rb(r,o){return r&&r.length?sn(r,ce(o,2)):[]}function Ob(r,o){return o=typeof o=="function"?o:t,r&&r.length?sn(r,t,o):[]}function Ki(r){if(!(r&&r.length))return[];var o=0;return r=tn(r,function(u){if(ct(u))return o=gt(u.length,o),!0}),di(o,function(u){return tt(r,ci(u))})}function rd(r,o){if(!(r&&r.length))return[];var u=Ki(r);return o==null?u:tt(u,function(f){return Yt(o,t,f)})}var Ab=Re(function(r,o){return ct(r)?Ma(r,o):[]}),Pb=Re(function(r){return Fi(tn(r,ct))}),Db=Re(function(r){var o=ir(r);return ct(o)&&(o=t),Fi(tn(r,ct),ce(o,2))}),Ib=Re(function(r){var o=ir(r);return o=typeof o=="function"?o:t,Fi(tn(r,ct),t,o)}),Fb=Re(Ki);function $b(r,o){return _f(r||[],o||[],$a)}function Mb(r,o){return _f(r||[],o||[],ja)}var Nb=Re(function(r){var o=r.length,u=o>1?r[o-1]:t;return u=typeof u=="function"?(r.pop(),u):t,rd(r,u)});function nd(r){var o=y(r);return o.__chain__=!0,o}function Lb(r,o){return o(r),r}function qo(r,o){return o(r)}var jb=kr(function(r){var o=r.length,u=o?r[0]:0,f=this.__wrapped__,v=function(m){return _i(m,r)};return o>1||this.__actions__.length||!(f instanceof Pe)||!Br(u)?this.thru(v):(f=f.slice(u,+u+(o?1:0)),f.__actions__.push({func:qo,args:[v],thisArg:t}),new ar(f,this.__chain__).thru(function(m){return o&&!m.length&&m.push(t),m}))});function kb(){return nd(this)}function Bb(){return new ar(this.value(),this.__chain__)}function Wb(){this.__values__===t&&(this.__values__=yd(this.value()));var r=this.__index__>=this.__values__.length,o=r?t:this.__values__[this.__index__++];return{done:r,value:o}}function Ub(){return this}function Hb(r){for(var o,u=this;u instanceof Po;){var f=Jf(u);f.__index__=0,f.__values__=t,o?v.__wrapped__=f:o=f;var v=f;u=u.__wrapped__}return v.__wrapped__=r,o}function Gb(){var r=this.__wrapped__;if(r instanceof Pe){var o=r;return this.__actions__.length&&(o=new Pe(this)),o=o.reverse(),o.__actions__.push({func:qo,args:[Vi],thisArg:t}),new ar(o,this.__chain__)}return this.thru(Vi)}function qb(){return bf(this.__wrapped__,this.__actions__)}var Yb=Lo(function(r,o,u){He.call(r,u)?++r[u]:Lr(r,u,1)});function zb(r,o,u){var f=Se(r)?Dl:Lm;return u&&Mt(r,o,u)&&(o=t),f(r,ce(o,3))}function Vb(r,o){var u=Se(r)?tn:tf;return u(r,ce(o,3))}var Kb=Pf(Xf),Jb=Pf(Zf);function Xb(r,o){return St(Yo(r,o),1)}function Zb(r,o){return St(Yo(r,o),Ue)}function Qb(r,o,u){return u=u===t?1:Te(u),St(Yo(r,o),u)}function ad(r,o){var u=Se(r)?rr:on;return u(r,ce(o,3))}function od(r,o){var u=Se(r)?my:ef;return u(r,ce(o,3))}var e_=Lo(function(r,o,u){He.call(r,u)?r[u].push(o):Lr(r,u,[o])});function t_(r,o,u,f){r=Bt(r)?r:ra(r),u=u&&!f?Te(u):0;var v=r.length;return u<0&&(u=gt(v+u,0)),Xo(r)?u<=v&&r.indexOf(o,u)>-1:!!v&&Gn(r,o,u)>-1}var r_=Re(function(r,o,u){var f=-1,v=typeof o=="function",m=Bt(r)?M(r.length):[];return on(r,function(w){m[++f]=v?Yt(o,w,u):Na(w,o,u)}),m}),n_=Lo(function(r,o,u){Lr(r,u,o)});function Yo(r,o){var u=Se(r)?tt:uf;return u(r,ce(o,3))}function a_(r,o,u,f){return r==null?[]:(Se(o)||(o=o==null?[]:[o]),u=f?t:u,Se(u)||(u=u==null?[]:[u]),df(r,o,u))}var o_=Lo(function(r,o,u){r[u?0:1].push(o)},function(){return[[],[]]});function s_(r,o,u){var f=Se(r)?ii:Ml,v=arguments.length<3;return f(r,ce(o,4),u,v,on)}function i_(r,o,u){var f=Se(r)?by:Ml,v=arguments.length<3;return f(r,ce(o,4),u,v,ef)}function u_(r,o){var u=Se(r)?tn:tf;return u(r,Ko(ce(o,3)))}function c_(r){var o=Se(r)?Jl:t0;return o(r)}function l_(r,o,u){(u?Mt(r,o,u):o===t)?o=1:o=Te(o);var f=Se(r)?Im:r0;return f(r,o)}function f_(r){var o=Se(r)?Fm:a0;return o(r)}function d_(r){if(r==null)return 0;if(Bt(r))return Xo(r)?Yn(r):r.length;var o=Ct(r);return o==qe||o==pt?r.size:xi(r).length}function p_(r,o,u){var f=Se(r)?ui:o0;return u&&Mt(r,o,u)&&(o=t),f(r,ce(o,3))}var h_=Re(function(r,o){if(r==null)return[];var u=o.length;return u>1&&Mt(r,o[0],o[1])?o=[]:u>2&&Mt(o[0],o[1],o[2])&&(o=[o[0]]),df(r,St(o,1),[])}),zo=Vy||function(){return Et.Date.now()};function g_(r,o){if(typeof o!="function")throw new nr(c);return r=Te(r),function(){if(--r<1)return o.apply(this,arguments)}}function sd(r,o,u){return o=u?t:o,o=r&&o==null?r.length:o,jr(r,G,t,t,t,t,o)}function id(r,o){var u;if(typeof o!="function")throw new nr(c);return r=Te(r),function(){return--r>0&&(u=o.apply(this,arguments)),r<=1&&(o=t),u}}var Ji=Re(function(r,o,u){var f=F;if(u.length){var v=nn(u,ea(Ji));f|=A}return jr(r,f,o,u,v)}),ud=Re(function(r,o,u){var f=F|D;if(u.length){var v=nn(u,ea(ud));f|=A}return jr(o,f,r,u,v)});function cd(r,o,u){o=u?t:o;var f=jr(r,$,t,t,t,t,t,o);return f.placeholder=cd.placeholder,f}function ld(r,o,u){o=u?t:o;var f=jr(r,j,t,t,t,t,t,o);return f.placeholder=ld.placeholder,f}function fd(r,o,u){var f,v,m,w,C,P,k=0,B=!1,U=!1,X=!0;if(typeof r!="function")throw new nr(c);o=ur(o)||0,nt(u)&&(B=!!u.leading,U="maxWait"in u,m=U?gt(ur(u.maxWait)||0,o):m,X="trailing"in u?!!u.trailing:X);function ne(lt){var mr=f,Hr=v;return f=v=t,k=lt,w=r.apply(Hr,mr),w}function de(lt){return k=lt,C=Wa(Ae,o),B?ne(lt):w}function xe(lt){var mr=lt-P,Hr=lt-k,Pd=o-mr;return U?Tt(Pd,m-Hr):Pd}function pe(lt){var mr=lt-P,Hr=lt-k;return P===t||mr>=o||mr<0||U&&Hr>=m}function Ae(){var lt=zo();if(pe(lt))return De(lt);C=Wa(Ae,xe(lt))}function De(lt){return C=t,X&&f?ne(lt):(f=v=t,w)}function Jt(){C!==t&&Ef(C),k=0,f=P=v=C=t}function Nt(){return C===t?w:De(zo())}function Xt(){var lt=zo(),mr=pe(lt);if(f=arguments,v=this,P=lt,mr){if(C===t)return de(P);if(U)return Ef(C),C=Wa(Ae,o),ne(P)}return C===t&&(C=Wa(Ae,o)),w}return Xt.cancel=Jt,Xt.flush=Nt,Xt}var v_=Re(function(r,o){return Ql(r,1,o)}),y_=Re(function(r,o,u){return Ql(r,ur(o)||0,u)});function m_(r){return jr(r,ie)}function Vo(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new nr(c);var u=function(){var f=arguments,v=o?o.apply(this,f):f[0],m=u.cache;if(m.has(v))return m.get(v);var w=r.apply(this,f);return u.cache=m.set(v,w)||m,w};return u.cache=new(Vo.Cache||Nr),u}Vo.Cache=Nr;function Ko(r){if(typeof r!="function")throw new nr(c);return function(){var o=arguments;switch(o.length){case 0:return!r.call(this);case 1:return!r.call(this,o[0]);case 2:return!r.call(this,o[0],o[1]);case 3:return!r.call(this,o[0],o[1],o[2])}return!r.apply(this,o)}}function b_(r){return id(2,r)}var __=s0(function(r,o){o=o.length==1&&Se(o[0])?tt(o[0],zt(ce())):tt(St(o,1),zt(ce()));var u=o.length;return Re(function(f){for(var v=-1,m=Tt(f.length,u);++v<m;)f[v]=o[v].call(this,f[v]);return Yt(r,this,f)})}),Xi=Re(function(r,o){var u=nn(o,ea(Xi));return jr(r,A,t,o,u)}),dd=Re(function(r,o){var u=nn(o,ea(dd));return jr(r,K,t,o,u)}),E_=kr(function(r,o){return jr(r,Y,t,t,t,o)});function S_(r,o){if(typeof r!="function")throw new nr(c);return o=o===t?o:Te(o),Re(r,o)}function w_(r,o){if(typeof r!="function")throw new nr(c);return o=o==null?0:gt(Te(o),0),Re(function(u){var f=u[o],v=cn(u,0,o);return f&&rn(v,f),Yt(r,this,v)})}function T_(r,o,u){var f=!0,v=!0;if(typeof r!="function")throw new nr(c);return nt(u)&&(f="leading"in u?!!u.leading:f,v="trailing"in u?!!u.trailing:v),fd(r,o,{leading:f,maxWait:o,trailing:v})}function C_(r){return sd(r,1)}function x_(r,o){return Xi(Mi(o),r)}function R_(){if(!arguments.length)return[];var r=arguments[0];return Se(r)?r:[r]}function O_(r){return or(r,S)}function A_(r,o){return o=typeof o=="function"?o:t,or(r,S,o)}function P_(r){return or(r,b|S)}function D_(r,o){return o=typeof o=="function"?o:t,or(r,b|S,o)}function I_(r,o){return o==null||Zl(r,o,mt(o))}function yr(r,o){return r===o||r!==r&&o!==o}var F_=Wo(wi),$_=Wo(function(r,o){return r>=o}),Mn=af(function(){return arguments}())?af:function(r){return ot(r)&&He.call(r,"callee")&&!Gl.call(r,"callee")},Se=M.isArray,M_=Cl?zt(Cl):Hm;function Bt(r){return r!=null&&Jo(r.length)&&!Wr(r)}function ct(r){return ot(r)&&Bt(r)}function N_(r){return r===!0||r===!1||ot(r)&&$t(r)==ue}var ln=Jy||uu,L_=xl?zt(xl):Gm;function j_(r){return ot(r)&&r.nodeType===1&&!Ua(r)}function k_(r){if(r==null)return!0;if(Bt(r)&&(Se(r)||typeof r=="string"||typeof r.splice=="function"||ln(r)||ta(r)||Mn(r)))return!r.length;var o=Ct(r);if(o==qe||o==pt)return!r.size;if(Ba(r))return!xi(r).length;for(var u in r)if(He.call(r,u))return!1;return!0}function B_(r,o){return La(r,o)}function W_(r,o,u){u=typeof u=="function"?u:t;var f=u?u(r,o):t;return f===t?La(r,o,t,u):!!f}function Zi(r){if(!ot(r))return!1;var o=$t(r);return o==J||o==ge||typeof r.message=="string"&&typeof r.name=="string"&&!Ua(r)}function U_(r){return typeof r=="number"&&Yl(r)}function Wr(r){if(!nt(r))return!1;var o=$t(r);return o==N||o==Ge||o==fe||o==_a}function pd(r){return typeof r=="number"&&r==Te(r)}function Jo(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=et}function nt(r){var o=typeof r;return r!=null&&(o=="object"||o=="function")}function ot(r){return r!=null&&typeof r=="object"}var hd=Rl?zt(Rl):Ym;function H_(r,o){return r===o||Ci(r,o,Ui(o))}function G_(r,o,u){return u=typeof u=="function"?u:t,Ci(r,o,Ui(o),u)}function q_(r){return gd(r)&&r!=+r}function Y_(r){if(A0(r))throw new _e(i);return of(r)}function z_(r){return r===null}function V_(r){return r==null}function gd(r){return typeof r=="number"||ot(r)&&$t(r)==it}function Ua(r){if(!ot(r)||$t(r)!=It)return!1;var o=wo(r);if(o===null)return!0;var u=He.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&bo.call(u)==Gy}var Qi=Ol?zt(Ol):zm;function K_(r){return pd(r)&&r>=-et&&r<=et}var vd=Al?zt(Al):Vm;function Xo(r){return typeof r=="string"||!Se(r)&&ot(r)&&$t(r)==Ir}function Kt(r){return typeof r=="symbol"||ot(r)&&$t(r)==wr}var ta=Pl?zt(Pl):Km;function J_(r){return r===t}function X_(r){return ot(r)&&Ct(r)==qt}function Z_(r){return ot(r)&&$t(r)==Ea}var Q_=Wo(Ri),e1=Wo(function(r,o){return r<=o});function yd(r){if(!r)return[];if(Bt(r))return Xo(r)?gr(r):kt(r);if(Aa&&r[Aa])return Iy(r[Aa]());var o=Ct(r),u=o==qe?hi:o==pt?vo:ra;return u(r)}function Ur(r){if(!r)return r===0?r:0;if(r=ur(r),r===Ue||r===-Ue){var o=r<0?-1:1;return o*Dt}return r===r?r:0}function Te(r){var o=Ur(r),u=o%1;return o===o?u?o-u:o:0}function md(r){return r?Dn(Te(r),0,V):0}function ur(r){if(typeof r=="number")return r;if(Kt(r))return H;if(nt(r)){var o=typeof r.valueOf=="function"?r.valueOf():r;r=nt(o)?o+"":o}if(typeof r!="string")return r===0?r:+r;r=Nl(r);var u=xn.test(r);return u||Lv.test(r)?gy(r.slice(2),u?2:8):Ft.test(r)?H:+r}function bd(r){return xr(r,Wt(r))}function t1(r){return r?Dn(Te(r),-et,et):r===0?r:0}function Ne(r){return r==null?"":Vt(r)}var r1=Zn(function(r,o){if(Ba(o)||Bt(o)){xr(o,mt(o),r);return}for(var u in o)He.call(o,u)&&$a(r,u,o[u])}),_d=Zn(function(r,o){xr(o,Wt(o),r)}),Zo=Zn(function(r,o,u,f){xr(o,Wt(o),r,f)}),n1=Zn(function(r,o,u,f){xr(o,mt(o),r,f)}),a1=kr(_i);function o1(r,o){var u=Xn(r);return o==null?u:Xl(u,o)}var s1=Re(function(r,o){r=Ve(r);var u=-1,f=o.length,v=f>2?o[2]:t;for(v&&Mt(o[0],o[1],v)&&(f=1);++u<f;)for(var m=o[u],w=Wt(m),C=-1,P=w.length;++C<P;){var k=w[C],B=r[k];(B===t||yr(B,Vn[k])&&!He.call(r,k))&&(r[k]=m[k])}return r}),i1=Re(function(r){return r.push(t,Lf),Yt(Ed,t,r)});function u1(r,o){return Il(r,ce(o,3),Cr)}function c1(r,o){return Il(r,ce(o,3),Si)}function l1(r,o){return r==null?r:Ei(r,ce(o,3),Wt)}function f1(r,o){return r==null?r:rf(r,ce(o,3),Wt)}function d1(r,o){return r&&Cr(r,ce(o,3))}function p1(r,o){return r&&Si(r,ce(o,3))}function h1(r){return r==null?[]:Fo(r,mt(r))}function g1(r){return r==null?[]:Fo(r,Wt(r))}function eu(r,o,u){var f=r==null?t:In(r,o);return f===t?u:f}function v1(r,o){return r!=null&&Bf(r,o,km)}function tu(r,o){return r!=null&&Bf(r,o,Bm)}var y1=If(function(r,o,u){o!=null&&typeof o.toString!="function"&&(o=_o.call(o)),r[o]=u},nu(Ut)),m1=If(function(r,o,u){o!=null&&typeof o.toString!="function"&&(o=_o.call(o)),He.call(r,o)?r[o].push(u):r[o]=[u]},ce),b1=Re(Na);function mt(r){return Bt(r)?Kl(r):xi(r)}function Wt(r){return Bt(r)?Kl(r,!0):Jm(r)}function _1(r,o){var u={};return o=ce(o,3),Cr(r,function(f,v,m){Lr(u,o(f,v,m),f)}),u}function E1(r,o){var u={};return o=ce(o,3),Cr(r,function(f,v,m){Lr(u,v,o(f,v,m))}),u}var S1=Zn(function(r,o,u){$o(r,o,u)}),Ed=Zn(function(r,o,u,f){$o(r,o,u,f)}),w1=kr(function(r,o){var u={};if(r==null)return u;var f=!1;o=tt(o,function(m){return m=un(m,r),f||(f=m.length>1),m}),xr(r,Bi(r),u),f&&(u=or(u,b|_|S,y0));for(var v=o.length;v--;)Ii(u,o[v]);return u});function T1(r,o){return Sd(r,Ko(ce(o)))}var C1=kr(function(r,o){return r==null?{}:Zm(r,o)});function Sd(r,o){if(r==null)return{};var u=tt(Bi(r),function(f){return[f]});return o=ce(o),pf(r,u,function(f,v){return o(f,v[0])})}function x1(r,o,u){o=un(o,r);var f=-1,v=o.length;for(v||(v=1,r=t);++f<v;){var m=r==null?t:r[Rr(o[f])];m===t&&(f=v,m=u),r=Wr(m)?m.call(r):m}return r}function R1(r,o,u){return r==null?r:ja(r,o,u)}function O1(r,o,u,f){return f=typeof f=="function"?f:t,r==null?r:ja(r,o,u,f)}var wd=Mf(mt),Td=Mf(Wt);function A1(r,o,u){var f=Se(r),v=f||ln(r)||ta(r);if(o=ce(o,4),u==null){var m=r&&r.constructor;v?u=f?new m:[]:nt(r)?u=Wr(m)?Xn(wo(r)):{}:u={}}return(v?rr:Cr)(r,function(w,C,P){return o(u,w,C,P)}),u}function P1(r,o){return r==null?!0:Ii(r,o)}function D1(r,o,u){return r==null?r:mf(r,o,Mi(u))}function I1(r,o,u,f){return f=typeof f=="function"?f:t,r==null?r:mf(r,o,Mi(u),f)}function ra(r){return r==null?[]:pi(r,mt(r))}function F1(r){return r==null?[]:pi(r,Wt(r))}function $1(r,o,u){return u===t&&(u=o,o=t),u!==t&&(u=ur(u),u=u===u?u:0),o!==t&&(o=ur(o),o=o===o?o:0),Dn(ur(r),o,u)}function M1(r,o,u){return o=Ur(o),u===t?(u=o,o=0):u=Ur(u),r=ur(r),Wm(r,o,u)}function N1(r,o,u){if(u&&typeof u!="boolean"&&Mt(r,o,u)&&(o=u=t),u===t&&(typeof o=="boolean"?(u=o,o=t):typeof r=="boolean"&&(u=r,r=t)),r===t&&o===t?(r=0,o=1):(r=Ur(r),o===t?(o=r,r=0):o=Ur(o)),r>o){var f=r;r=o,o=f}if(u||r%1||o%1){var v=zl();return Tt(r+v*(o-r+hy("1e-"+((v+"").length-1))),o)}return Ai(r,o)}var L1=Qn(function(r,o,u){return o=o.toLowerCase(),r+(u?Cd(o):o)});function Cd(r){return ru(Ne(r).toLowerCase())}function xd(r){return r=Ne(r),r&&r.replace(kv,Ry).replace(ay,"")}function j1(r,o,u){r=Ne(r),o=Vt(o);var f=r.length;u=u===t?f:Dn(Te(u),0,f);var v=u;return u-=o.length,u>=0&&r.slice(u,v)==o}function k1(r){return r=Ne(r),r&&wa.test(r)?r.replace(en,Oy):r}function B1(r){return r=Ne(r),r&&R.test(r)?r.replace(g,"\\$&"):r}var W1=Qn(function(r,o,u){return r+(u?"-":"")+o.toLowerCase()}),U1=Qn(function(r,o,u){return r+(u?" ":"")+o.toLowerCase()}),H1=Af("toLowerCase");function G1(r,o,u){r=Ne(r),o=Te(o);var f=o?Yn(r):0;if(!o||f>=o)return r;var v=(o-f)/2;return Bo(Ro(v),u)+r+Bo(xo(v),u)}function q1(r,o,u){r=Ne(r),o=Te(o);var f=o?Yn(r):0;return o&&f<o?r+Bo(o-f,u):r}function Y1(r,o,u){r=Ne(r),o=Te(o);var f=o?Yn(r):0;return o&&f<o?Bo(o-f,u)+r:r}function z1(r,o,u){return u||o==null?o=0:o&&(o=+o),em(Ne(r).replace(I,""),o||0)}function V1(r,o,u){return(u?Mt(r,o,u):o===t)?o=1:o=Te(o),Pi(Ne(r),o)}function K1(){var r=arguments,o=Ne(r[0]);return r.length<3?o:o.replace(r[1],r[2])}var J1=Qn(function(r,o,u){return r+(u?"_":"")+o.toLowerCase()});function X1(r,o,u){return u&&typeof u!="number"&&Mt(r,o,u)&&(o=u=t),u=u===t?V:u>>>0,u?(r=Ne(r),r&&(typeof o=="string"||o!=null&&!Qi(o))&&(o=Vt(o),!o&&qn(r))?cn(gr(r),0,u):r.split(o,u)):[]}var Z1=Qn(function(r,o,u){return r+(u?" ":"")+ru(o)});function Q1(r,o,u){return r=Ne(r),u=u==null?0:Dn(Te(u),0,r.length),o=Vt(o),r.slice(u,u+o.length)==o}function eE(r,o,u){var f=y.templateSettings;u&&Mt(r,o,u)&&(o=t),r=Ne(r),o=Zo({},o,f,Nf);var v=Zo({},o.imports,f.imports,Nf),m=mt(v),w=pi(v,m),C,P,k=0,B=o.interpolate||lo,U="__p += '",X=gi((o.escape||lo).source+"|"+B.source+"|"+(B===Un?Ee:lo).source+"|"+(o.evaluate||lo).source+"|$","g"),ne="//# sourceURL="+(He.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++cy+"]")+`
|
|
18
|
+
`;r.replace(X,function(pe,Ae,De,Jt,Nt,Xt){return De||(De=Jt),U+=r.slice(k,Xt).replace(Bv,Ay),Ae&&(C=!0,U+=`' +
|
|
19
|
+
__e(`+Ae+`) +
|
|
20
|
+
'`),Nt&&(P=!0,U+=`';
|
|
21
|
+
`+Nt+`;
|
|
22
|
+
__p += '`),De&&(U+=`' +
|
|
23
|
+
((__t = (`+De+`)) == null ? '' : __t) +
|
|
24
|
+
'`),k=Xt+pe.length,pe}),U+=`';
|
|
25
|
+
`;var de=He.call(o,"variable")&&o.variable;if(!de)U=`with (obj) {
|
|
26
|
+
`+U+`
|
|
27
|
+
}
|
|
28
|
+
`;else if(Ie.test(de))throw new _e(l);U=(P?U.replace(Sn,""):U).replace(Sa,"$1").replace(wn,"$1;"),U="function("+(de||"obj")+`) {
|
|
29
|
+
`+(de?"":`obj || (obj = {});
|
|
30
|
+
`)+"var __t, __p = ''"+(C?", __e = _.escape":"")+(P?`, __j = Array.prototype.join;
|
|
31
|
+
function print() { __p += __j.call(arguments, '') }
|
|
32
|
+
`:`;
|
|
33
|
+
`)+U+`return __p
|
|
34
|
+
}`;var xe=Od(function(){return $e(m,ne+"return "+U).apply(t,w)});if(xe.source=U,Zi(xe))throw xe;return xe}function tE(r){return Ne(r).toLowerCase()}function rE(r){return Ne(r).toUpperCase()}function nE(r,o,u){if(r=Ne(r),r&&(u||o===t))return Nl(r);if(!r||!(o=Vt(o)))return r;var f=gr(r),v=gr(o),m=Ll(f,v),w=jl(f,v)+1;return cn(f,m,w).join("")}function aE(r,o,u){if(r=Ne(r),r&&(u||o===t))return r.slice(0,Bl(r)+1);if(!r||!(o=Vt(o)))return r;var f=gr(r),v=jl(f,gr(o))+1;return cn(f,0,v).join("")}function oE(r,o,u){if(r=Ne(r),r&&(u||o===t))return r.replace(I,"");if(!r||!(o=Vt(o)))return r;var f=gr(r),v=Ll(f,gr(o));return cn(f,v).join("")}function sE(r,o){var u=We,f=Oe;if(nt(o)){var v="separator"in o?o.separator:v;u="length"in o?Te(o.length):u,f="omission"in o?Vt(o.omission):f}r=Ne(r);var m=r.length;if(qn(r)){var w=gr(r);m=w.length}if(u>=m)return r;var C=u-Yn(f);if(C<1)return f;var P=w?cn(w,0,C).join(""):r.slice(0,C);if(v===t)return P+f;if(w&&(C+=P.length-C),Qi(v)){if(r.slice(C).search(v)){var k,B=P;for(v.global||(v=gi(v.source,Ne(at.exec(v))+"g")),v.lastIndex=0;k=v.exec(B);)var U=k.index;P=P.slice(0,U===t?C:U)}}else if(r.indexOf(Vt(v),C)!=C){var X=P.lastIndexOf(v);X>-1&&(P=P.slice(0,X))}return P+f}function iE(r){return r=Ne(r),r&&Tn.test(r)?r.replace(Wn,Ny):r}var uE=Qn(function(r,o,u){return r+(u?" ":"")+o.toUpperCase()}),ru=Af("toUpperCase");function Rd(r,o,u){return r=Ne(r),o=u?t:o,o===t?Dy(r)?ky(r):Sy(r):r.match(o)||[]}var Od=Re(function(r,o){try{return Yt(r,t,o)}catch(u){return Zi(u)?u:new _e(u)}}),cE=kr(function(r,o){return rr(o,function(u){u=Rr(u),Lr(r,u,Ji(r[u],r))}),r});function lE(r){var o=r==null?0:r.length,u=ce();return r=o?tt(r,function(f){if(typeof f[1]!="function")throw new nr(c);return[u(f[0]),f[1]]}):[],Re(function(f){for(var v=-1;++v<o;){var m=r[v];if(Yt(m[0],this,f))return Yt(m[1],this,f)}})}function fE(r){return Nm(or(r,b))}function nu(r){return function(){return r}}function dE(r,o){return r==null||r!==r?o:r}var pE=Df(),hE=Df(!0);function Ut(r){return r}function au(r){return sf(typeof r=="function"?r:or(r,b))}function gE(r){return cf(or(r,b))}function vE(r,o){return lf(r,or(o,b))}var yE=Re(function(r,o){return function(u){return Na(u,r,o)}}),mE=Re(function(r,o){return function(u){return Na(r,u,o)}});function ou(r,o,u){var f=mt(o),v=Fo(o,f);u==null&&!(nt(o)&&(v.length||!f.length))&&(u=o,o=r,r=this,v=Fo(o,mt(o)));var m=!(nt(u)&&"chain"in u)||!!u.chain,w=Wr(r);return rr(v,function(C){var P=o[C];r[C]=P,w&&(r.prototype[C]=function(){var k=this.__chain__;if(m||k){var B=r(this.__wrapped__),U=B.__actions__=kt(this.__actions__);return U.push({func:P,args:arguments,thisArg:r}),B.__chain__=k,B}return P.apply(r,rn([this.value()],arguments))})}),r}function bE(){return Et._===this&&(Et._=qy),this}function su(){}function _E(r){return r=Te(r),Re(function(o){return ff(o,r)})}var EE=Li(tt),SE=Li(Dl),wE=Li(ui);function Ad(r){return Gi(r)?ci(Rr(r)):Qm(r)}function TE(r){return function(o){return r==null?t:In(r,o)}}var CE=Ff(),xE=Ff(!0);function iu(){return[]}function uu(){return!1}function RE(){return{}}function OE(){return""}function AE(){return!0}function PE(r,o){if(r=Te(r),r<1||r>et)return[];var u=V,f=Tt(r,V);o=ce(o),r-=V;for(var v=di(f,o);++u<r;)o(u);return v}function DE(r){return Se(r)?tt(r,Rr):Kt(r)?[r]:kt(Kf(Ne(r)))}function IE(r){var o=++Hy;return Ne(r)+o}var FE=ko(function(r,o){return r+o},0),$E=ji("ceil"),ME=ko(function(r,o){return r/o},1),NE=ji("floor");function LE(r){return r&&r.length?Io(r,Ut,wi):t}function jE(r,o){return r&&r.length?Io(r,ce(o,2),wi):t}function kE(r){return $l(r,Ut)}function BE(r,o){return $l(r,ce(o,2))}function WE(r){return r&&r.length?Io(r,Ut,Ri):t}function UE(r,o){return r&&r.length?Io(r,ce(o,2),Ri):t}var HE=ko(function(r,o){return r*o},1),GE=ji("round"),qE=ko(function(r,o){return r-o},0);function YE(r){return r&&r.length?fi(r,Ut):0}function zE(r,o){return r&&r.length?fi(r,ce(o,2)):0}return y.after=g_,y.ary=sd,y.assign=r1,y.assignIn=_d,y.assignInWith=Zo,y.assignWith=n1,y.at=a1,y.before=id,y.bind=Ji,y.bindAll=cE,y.bindKey=ud,y.castArray=R_,y.chain=nd,y.chunk=N0,y.compact=L0,y.concat=j0,y.cond=lE,y.conforms=fE,y.constant=nu,y.countBy=Yb,y.create=o1,y.curry=cd,y.curryRight=ld,y.debounce=fd,y.defaults=s1,y.defaultsDeep=i1,y.defer=v_,y.delay=y_,y.difference=k0,y.differenceBy=B0,y.differenceWith=W0,y.drop=U0,y.dropRight=H0,y.dropRightWhile=G0,y.dropWhile=q0,y.fill=Y0,y.filter=Vb,y.flatMap=Xb,y.flatMapDeep=Zb,y.flatMapDepth=Qb,y.flatten=Qf,y.flattenDeep=z0,y.flattenDepth=V0,y.flip=m_,y.flow=pE,y.flowRight=hE,y.fromPairs=K0,y.functions=h1,y.functionsIn=g1,y.groupBy=e_,y.initial=X0,y.intersection=Z0,y.intersectionBy=Q0,y.intersectionWith=eb,y.invert=y1,y.invertBy=m1,y.invokeMap=r_,y.iteratee=au,y.keyBy=n_,y.keys=mt,y.keysIn=Wt,y.map=Yo,y.mapKeys=_1,y.mapValues=E1,y.matches=gE,y.matchesProperty=vE,y.memoize=Vo,y.merge=S1,y.mergeWith=Ed,y.method=yE,y.methodOf=mE,y.mixin=ou,y.negate=Ko,y.nthArg=_E,y.omit=w1,y.omitBy=T1,y.once=b_,y.orderBy=a_,y.over=EE,y.overArgs=__,y.overEvery=SE,y.overSome=wE,y.partial=Xi,y.partialRight=dd,y.partition=o_,y.pick=C1,y.pickBy=Sd,y.property=Ad,y.propertyOf=TE,y.pull=ab,y.pullAll=td,y.pullAllBy=ob,y.pullAllWith=sb,y.pullAt=ib,y.range=CE,y.rangeRight=xE,y.rearg=E_,y.reject=u_,y.remove=ub,y.rest=S_,y.reverse=Vi,y.sampleSize=l_,y.set=R1,y.setWith=O1,y.shuffle=f_,y.slice=cb,y.sortBy=h_,y.sortedUniq=vb,y.sortedUniqBy=yb,y.split=X1,y.spread=w_,y.tail=mb,y.take=bb,y.takeRight=_b,y.takeRightWhile=Eb,y.takeWhile=Sb,y.tap=Lb,y.throttle=T_,y.thru=qo,y.toArray=yd,y.toPairs=wd,y.toPairsIn=Td,y.toPath=DE,y.toPlainObject=bd,y.transform=A1,y.unary=C_,y.union=wb,y.unionBy=Tb,y.unionWith=Cb,y.uniq=xb,y.uniqBy=Rb,y.uniqWith=Ob,y.unset=P1,y.unzip=Ki,y.unzipWith=rd,y.update=D1,y.updateWith=I1,y.values=ra,y.valuesIn=F1,y.without=Ab,y.words=Rd,y.wrap=x_,y.xor=Pb,y.xorBy=Db,y.xorWith=Ib,y.zip=Fb,y.zipObject=$b,y.zipObjectDeep=Mb,y.zipWith=Nb,y.entries=wd,y.entriesIn=Td,y.extend=_d,y.extendWith=Zo,ou(y,y),y.add=FE,y.attempt=Od,y.camelCase=L1,y.capitalize=Cd,y.ceil=$E,y.clamp=$1,y.clone=O_,y.cloneDeep=P_,y.cloneDeepWith=D_,y.cloneWith=A_,y.conformsTo=I_,y.deburr=xd,y.defaultTo=dE,y.divide=ME,y.endsWith=j1,y.eq=yr,y.escape=k1,y.escapeRegExp=B1,y.every=zb,y.find=Kb,y.findIndex=Xf,y.findKey=u1,y.findLast=Jb,y.findLastIndex=Zf,y.findLastKey=c1,y.floor=NE,y.forEach=ad,y.forEachRight=od,y.forIn=l1,y.forInRight=f1,y.forOwn=d1,y.forOwnRight=p1,y.get=eu,y.gt=F_,y.gte=$_,y.has=v1,y.hasIn=tu,y.head=ed,y.identity=Ut,y.includes=t_,y.indexOf=J0,y.inRange=M1,y.invoke=b1,y.isArguments=Mn,y.isArray=Se,y.isArrayBuffer=M_,y.isArrayLike=Bt,y.isArrayLikeObject=ct,y.isBoolean=N_,y.isBuffer=ln,y.isDate=L_,y.isElement=j_,y.isEmpty=k_,y.isEqual=B_,y.isEqualWith=W_,y.isError=Zi,y.isFinite=U_,y.isFunction=Wr,y.isInteger=pd,y.isLength=Jo,y.isMap=hd,y.isMatch=H_,y.isMatchWith=G_,y.isNaN=q_,y.isNative=Y_,y.isNil=V_,y.isNull=z_,y.isNumber=gd,y.isObject=nt,y.isObjectLike=ot,y.isPlainObject=Ua,y.isRegExp=Qi,y.isSafeInteger=K_,y.isSet=vd,y.isString=Xo,y.isSymbol=Kt,y.isTypedArray=ta,y.isUndefined=J_,y.isWeakMap=X_,y.isWeakSet=Z_,y.join=tb,y.kebabCase=W1,y.last=ir,y.lastIndexOf=rb,y.lowerCase=U1,y.lowerFirst=H1,y.lt=Q_,y.lte=e1,y.max=LE,y.maxBy=jE,y.mean=kE,y.meanBy=BE,y.min=WE,y.minBy=UE,y.stubArray=iu,y.stubFalse=uu,y.stubObject=RE,y.stubString=OE,y.stubTrue=AE,y.multiply=HE,y.nth=nb,y.noConflict=bE,y.noop=su,y.now=zo,y.pad=G1,y.padEnd=q1,y.padStart=Y1,y.parseInt=z1,y.random=N1,y.reduce=s_,y.reduceRight=i_,y.repeat=V1,y.replace=K1,y.result=x1,y.round=GE,y.runInContext=O,y.sample=c_,y.size=d_,y.snakeCase=J1,y.some=p_,y.sortedIndex=lb,y.sortedIndexBy=fb,y.sortedIndexOf=db,y.sortedLastIndex=pb,y.sortedLastIndexBy=hb,y.sortedLastIndexOf=gb,y.startCase=Z1,y.startsWith=Q1,y.subtract=qE,y.sum=YE,y.sumBy=zE,y.template=eE,y.times=PE,y.toFinite=Ur,y.toInteger=Te,y.toLength=md,y.toLower=tE,y.toNumber=ur,y.toSafeInteger=t1,y.toString=Ne,y.toUpper=rE,y.trim=nE,y.trimEnd=aE,y.trimStart=oE,y.truncate=sE,y.unescape=iE,y.uniqueId=IE,y.upperCase=uE,y.upperFirst=ru,y.each=ad,y.eachRight=od,y.first=ed,ou(y,function(){var r={};return Cr(y,function(o,u){He.call(y.prototype,u)||(r[u]=o)}),r}(),{chain:!1}),y.VERSION=a,rr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){y[r].placeholder=y}),rr(["drop","take"],function(r,o){Pe.prototype[r]=function(u){u=u===t?1:gt(Te(u),0);var f=this.__filtered__&&!o?new Pe(this):this.clone();return f.__filtered__?f.__takeCount__=Tt(u,f.__takeCount__):f.__views__.push({size:Tt(u,V),type:r+(f.__dir__<0?"Right":"")}),f},Pe.prototype[r+"Right"]=function(u){return this.reverse()[r](u).reverse()}}),rr(["filter","map","takeWhile"],function(r,o){var u=o+1,f=u==we||u==Ze;Pe.prototype[r]=function(v){var m=this.clone();return m.__iteratees__.push({iteratee:ce(v,3),type:u}),m.__filtered__=m.__filtered__||f,m}}),rr(["head","last"],function(r,o){var u="take"+(o?"Right":"");Pe.prototype[r]=function(){return this[u](1).value()[0]}}),rr(["initial","tail"],function(r,o){var u="drop"+(o?"":"Right");Pe.prototype[r]=function(){return this.__filtered__?new Pe(this):this[u](1)}}),Pe.prototype.compact=function(){return this.filter(Ut)},Pe.prototype.find=function(r){return this.filter(r).head()},Pe.prototype.findLast=function(r){return this.reverse().find(r)},Pe.prototype.invokeMap=Re(function(r,o){return typeof r=="function"?new Pe(this):this.map(function(u){return Na(u,r,o)})}),Pe.prototype.reject=function(r){return this.filter(Ko(ce(r)))},Pe.prototype.slice=function(r,o){r=Te(r);var u=this;return u.__filtered__&&(r>0||o<0)?new Pe(u):(r<0?u=u.takeRight(-r):r&&(u=u.drop(r)),o!==t&&(o=Te(o),u=o<0?u.dropRight(-o):u.take(o-r)),u)},Pe.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},Pe.prototype.toArray=function(){return this.take(V)},Cr(Pe.prototype,function(r,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),f=/^(?:head|last)$/.test(o),v=y[f?"take"+(o=="last"?"Right":""):o],m=f||/^find/.test(o);v&&(y.prototype[o]=function(){var w=this.__wrapped__,C=f?[1]:arguments,P=w instanceof Pe,k=C[0],B=P||Se(w),U=function(Ae){var De=v.apply(y,rn([Ae],C));return f&&X?De[0]:De};B&&u&&typeof k=="function"&&k.length!=1&&(P=B=!1);var X=this.__chain__,ne=!!this.__actions__.length,de=m&&!X,xe=P&&!ne;if(!m&&B){w=xe?w:new Pe(this);var pe=r.apply(w,C);return pe.__actions__.push({func:qo,args:[U],thisArg:t}),new ar(pe,X)}return de&&xe?r.apply(this,C):(pe=this.thru(U),de?f?pe.value()[0]:pe.value():pe)})}),rr(["pop","push","shift","sort","splice","unshift"],function(r){var o=yo[r],u=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",f=/^(?:pop|shift)$/.test(r);y.prototype[r]=function(){var v=arguments;if(f&&!this.__chain__){var m=this.value();return o.apply(Se(m)?m:[],v)}return this[u](function(w){return o.apply(Se(w)?w:[],v)})}}),Cr(Pe.prototype,function(r,o){var u=y[o];if(u){var f=u.name+"";He.call(Jn,f)||(Jn[f]=[]),Jn[f].push({name:o,func:u})}}),Jn[jo(t,D).name]=[{name:"wrapper",func:t}],Pe.prototype.clone=im,Pe.prototype.reverse=um,Pe.prototype.value=cm,y.prototype.at=jb,y.prototype.chain=kb,y.prototype.commit=Bb,y.prototype.next=Wb,y.prototype.plant=Hb,y.prototype.reverse=Gb,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=qb,y.prototype.first=y.prototype.head,Aa&&(y.prototype[Aa]=Ub),y},zn=By();Rn?((Rn.exports=zn)._=zn,ai._=zn):Et._=zn}).call(qr)})(Es,Es.exports);var Ke=Es.exports;const Ph=Is(Ke);function Pc(e){return`Debugger/${e}`}function Dh(e,n){var a;const t=(a=n.name)==null?void 0:a.replace(/\.(4dm|4qs)$/,"");return`#${e} ${t}`}const mR=typeof process=="object"&&process&&process.platform==="win32";var bR=mR?{sep:"\\"}:{sep:"/"},_R=Ih;function Ih(e,n,t){e instanceof RegExp&&(e=dp(e,t)),n instanceof RegExp&&(n=dp(n,t));var a=Fh(e,n,t);return a&&{start:a[0],end:a[1],pre:t.slice(0,a[0]),body:t.slice(a[0]+e.length,a[1]),post:t.slice(a[1]+n.length)}}function dp(e,n){var t=n.match(e);return t?t[0]:null}Ih.range=Fh;function Fh(e,n,t){var a,s,i,c,l,d=t.indexOf(e),p=t.indexOf(n,d+1),h=d;if(d>=0&&p>0){if(e===n)return[d,p];for(a=[],i=t.length;h>=0&&!l;)h==d?(a.push(h),d=t.indexOf(e,h+1)):a.length==1?l=[a.pop(),p]:(s=a.pop(),s<i&&(i=s,c=p),p=t.indexOf(n,h+1)),h=d<p&&d>=0?d:p;a.length&&(l=[i,c])}return l}var $h=_R,ER=TR,Mh="\0SLASH"+Math.random()+"\0",Nh="\0OPEN"+Math.random()+"\0",Dc="\0CLOSE"+Math.random()+"\0",Lh="\0COMMA"+Math.random()+"\0",jh="\0PERIOD"+Math.random()+"\0";function _u(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function SR(e){return e.split("\\\\").join(Mh).split("\\{").join(Nh).split("\\}").join(Dc).split("\\,").join(Lh).split("\\.").join(jh)}function wR(e){return e.split(Mh).join("\\").split(Nh).join("{").split(Dc).join("}").split(Lh).join(",").split(jh).join(".")}function kh(e){if(!e)return[""];var n=[],t=$h("{","}",e);if(!t)return e.split(",");var a=t.pre,s=t.body,i=t.post,c=a.split(",");c[c.length-1]+="{"+s+"}";var l=kh(i);return i.length&&(c[c.length-1]+=l.shift(),c.push.apply(c,l)),n.push.apply(n,c),n}function TR(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Ya(SR(e),!0).map(wR)):[]}function CR(e){return"{"+e+"}"}function xR(e){return/^-?0\d/.test(e)}function RR(e,n){return e<=n}function OR(e,n){return e>=n}function Ya(e,n){var t=[],a=$h("{","}",e);if(!a)return[e];var s=a.pre,i=a.post.length?Ya(a.post,!1):[""];if(/\$$/.test(a.pre))for(var c=0;c<i.length;c++){var l=s+"{"+a.body+"}"+i[c];t.push(l)}else{var d=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),p=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),h=d||p,b=a.body.indexOf(",")>=0;if(!h&&!b)return a.post.match(/,.*\}/)?(e=a.pre+"{"+a.body+Dc+a.post,Ya(e)):[e];var _;if(h)_=a.body.split(/\.\./);else if(_=kh(a.body),_.length===1&&(_=Ya(_[0],!1).map(CR),_.length===1))return i.map(function(We){return a.pre+_[0]+We});var S;if(h){var T=_u(_[0]),x=_u(_[1]),F=Math.max(_[0].length,_[1].length),D=_.length==3?Math.abs(_u(_[2])):1,W=RR,$=x<T;$&&(D*=-1,W=OR);var j=_.some(xR);S=[];for(var A=T;W(A,x);A+=D){var K;if(p)K=String.fromCharCode(A),K==="\\"&&(K="");else if(K=String(A),j){var G=F-K.length;if(G>0){var Y=new Array(G+1).join("0");A<0?K="-"+Y+K.slice(1):K=Y+K}}S.push(K)}}else{S=[];for(var ie=0;ie<_.length;ie++)S.push.apply(S,Ya(_[ie],!1))}for(var ie=0;ie<S.length;ie++)for(var c=0;c<i.length;c++){var l=s+S[ie]+i[c];(!n||h||l)&&t.push(l)}}return t}const Zt=Bh=(e,n,t={})=>(Ss(n),!t.nocomment&&n.charAt(0)==="#"?!1:new Bs(n,t).match(e));var Bh=Zt;const Xu=bR;Zt.sep=Xu.sep;const br=Symbol("globstar **");Zt.GLOBSTAR=br;const AR=ER,pp={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Zu="[^/]",Eu=Zu+"*?",PR="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",DR="(?:(?!(?:\\/|^)\\.).)*?",Wh=e=>e.split("").reduce((n,t)=>(n[t]=!0,n),{}),hp=Wh("().*{}+?[]^$\\!"),IR=Wh("[.("),gp=/\/+/;Zt.filter=(e,n={})=>(t,a,s)=>Zt(t,e,n);const fn=(e,n={})=>{const t={};return Object.keys(e).forEach(a=>t[a]=e[a]),Object.keys(n).forEach(a=>t[a]=n[a]),t};Zt.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Zt;const n=Zt,t=(a,s,i)=>n(a,s,fn(e,i));return t.Minimatch=class extends n.Minimatch{constructor(s,i){super(s,fn(e,i))}},t.Minimatch.defaults=a=>n.defaults(fn(e,a)).Minimatch,t.filter=(a,s)=>n.filter(a,fn(e,s)),t.defaults=a=>n.defaults(fn(e,a)),t.makeRe=(a,s)=>n.makeRe(a,fn(e,s)),t.braceExpand=(a,s)=>n.braceExpand(a,fn(e,s)),t.match=(a,s,i)=>n.match(a,s,fn(e,i)),t};Zt.braceExpand=(e,n)=>Uh(e,n);const Uh=(e,n={})=>(Ss(e),n.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:AR(e)),FR=1024*64,Ss=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>FR)throw new TypeError("pattern is too long")},Su=Symbol("subparse");Zt.makeRe=(e,n)=>new Bs(e,n||{}).makeRe();Zt.match=(e,n,t={})=>{const a=new Bs(n,t);return e=e.filter(s=>a.match(s)),a.options.nonull&&!e.length&&e.push(n),e};const $R=e=>e.replace(/\\(.)/g,"$1"),MR=e=>e.replace(/\\([^-\]])/g,"$1"),NR=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),LR=e=>e.replace(/[[\]\\]/g,"\\$&");class Bs{constructor(n,t){Ss(n),t||(t={}),this.options=t,this.set=[],this.pattern=n,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}debug(){}make(){const n=this.pattern,t=this.options;if(!t.nocomment&&n.charAt(0)==="#"){this.comment=!0;return}if(!n){this.empty=!0;return}this.parseNegate();let a=this.globSet=this.braceExpand();t.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,a),a=this.globParts=a.map(s=>s.split(gp)),this.debug(this.pattern,a),a=a.map((s,i,c)=>s.map(this.parse,this)),this.debug(this.pattern,a),a=a.filter(s=>s.indexOf(!1)===-1),this.debug(this.pattern,a),this.set=a}parseNegate(){if(this.options.nonegate)return;const n=this.pattern;let t=!1,a=0;for(let s=0;s<n.length&&n.charAt(s)==="!";s++)t=!t,a++;a&&(this.pattern=n.slice(a)),this.negate=t}matchOne(n,t,a){var s=this.options;this.debug("matchOne",{this:this,file:n,pattern:t}),this.debug("matchOne",n.length,t.length);for(var i=0,c=0,l=n.length,d=t.length;i<l&&c<d;i++,c++){this.debug("matchOne loop");var p=t[c],h=n[i];if(this.debug(t,p,h),p===!1)return!1;if(p===br){this.debug("GLOBSTAR",[t,p,h]);var b=i,_=c+1;if(_===d){for(this.debug("** at the end");i<l;i++)if(n[i]==="."||n[i]===".."||!s.dot&&n[i].charAt(0)===".")return!1;return!0}for(;b<l;){var S=n[b];if(this.debug(`
|
|
35
|
+
globstar while`,n,b,t,_,S),this.matchOne(n.slice(b),t.slice(_),a))return this.debug("globstar found match!",b,l,S),!0;if(S==="."||S===".."||!s.dot&&S.charAt(0)==="."){this.debug("dot detected!",n,b,t,_);break}this.debug("globstar swallow a segment, and continue"),b++}return!!(a&&(this.debug(`
|
|
36
|
+
>>> no match, partial?`,n,b,t,_),b===l))}var T;if(typeof p=="string"?(T=h===p,this.debug("string match",p,h,T)):(T=h.match(p),this.debug("pattern match",p,h,T)),!T)return!1}if(i===l&&c===d)return!0;if(i===l)return a;if(c===d)return i===l-1&&n[i]==="";throw new Error("wtf?")}braceExpand(){return Uh(this.pattern,this.options)}parse(n,t){Ss(n);const a=this.options;if(n==="**")if(a.noglobstar)n="*";else return br;if(n==="")return"";let s="",i=!1,c=!1;const l=[],d=[];let p,h=!1,b=-1,_=-1,S,T,x,F=n.charAt(0)===".",D=a.dot||F;const W=()=>F?"":D?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",$=G=>G.charAt(0)==="."?"":a.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",j=()=>{if(p){switch(p){case"*":s+=Eu,i=!0;break;case"?":s+=Zu,i=!0;break;default:s+="\\"+p;break}this.debug("clearStateChar %j %j",p,s),p=!1}};for(let G=0,Y;G<n.length&&(Y=n.charAt(G));G++){if(this.debug("%s %s %s %j",n,G,s,Y),c){if(Y==="/")return!1;hp[Y]&&(s+="\\"),s+=Y,c=!1;continue}switch(Y){case"/":return!1;case"\\":if(h&&n.charAt(G+1)==="-"){s+=Y;continue}j(),c=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",n,G,s,Y),h){this.debug(" in class"),Y==="!"&&G===_+1&&(Y="^"),s+=Y;continue}this.debug("call clearStateChar %j",p),j(),p=Y,a.noext&&j();continue;case"(":{if(h){s+="(";continue}if(!p){s+="\\(";continue}const ie={type:p,start:G-1,reStart:s.length,open:pp[p].open,close:pp[p].close};this.debug(this.pattern," ",ie),l.push(ie),s+=ie.open,ie.start===0&&ie.type!=="!"&&(F=!0,s+=$(n.slice(G+1))),this.debug("plType %j %j",p,s),p=!1;continue}case")":{const ie=l[l.length-1];if(h||!ie){s+="\\)";continue}l.pop(),j(),i=!0,T=ie,s+=T.close,T.type==="!"&&d.push(Object.assign(T,{reEnd:s.length}));continue}case"|":{const ie=l[l.length-1];if(h||!ie){s+="\\|";continue}j(),s+="|",ie.start===0&&ie.type!=="!"&&(F=!0,s+=$(n.slice(G+1)));continue}case"[":if(j(),h){s+="\\"+Y;continue}h=!0,_=G,b=s.length,s+=Y;continue;case"]":if(G===_+1||!h){s+="\\"+Y;continue}S=n.substring(_+1,G);try{RegExp("["+LR(MR(S))+"]"),s+=Y}catch{s=s.substring(0,b)+"(?:$.)"}i=!0,h=!1;continue;default:j(),hp[Y]&&!(Y==="^"&&h)&&(s+="\\"),s+=Y;break}}for(h&&(S=n.slice(_+1),x=this.parse(S,Su),s=s.substring(0,b)+"\\["+x[0],i=i||x[1]),T=l.pop();T;T=l.pop()){let G;G=s.slice(T.reStart+T.open.length),this.debug("setting tail",s,T),G=G.replace(/((?:\\{2}){0,64})(\\?)\|/g,(ie,We,Oe)=>(Oe||(Oe="\\"),We+We+Oe+"|")),this.debug(`tail=%j
|
|
37
|
+
%s`,G,G,T,s);const Y=T.type==="*"?Eu:T.type==="?"?Zu:"\\"+T.type;i=!0,s=s.slice(0,T.reStart)+Y+"\\("+G}j(),c&&(s+="\\\\");const A=IR[s.charAt(0)];for(let G=d.length-1;G>-1;G--){const Y=d[G],ie=s.slice(0,Y.reStart),We=s.slice(Y.reStart,Y.reEnd-8);let Oe=s.slice(Y.reEnd);const st=s.slice(Y.reEnd-8,Y.reEnd)+Oe,Z=ie.split(")").length,we=ie.split("(").length-Z;let Xe=Oe;for(let Ue=0;Ue<we;Ue++)Xe=Xe.replace(/\)[+*?]?/,"");Oe=Xe;const Ze=Oe===""&&t!==Su?"(?:$|\\/)":"";s=ie+We+Oe+Ze+st}if(s!==""&&i&&(s="(?=.)"+s),A&&(s=W()+s),t===Su)return[s,i];if(a.nocase&&!i&&(i=n.toUpperCase()!==n.toLowerCase()),!i)return $R(n);const K=a.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",K),{_glob:n,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const n=this.set;if(!n.length)return this.regexp=!1,this.regexp;const t=this.options,a=t.noglobstar?Eu:t.dot?PR:DR,s=t.nocase?"i":"";let i=n.map(c=>(c=c.map(l=>typeof l=="string"?NR(l):l===br?br:l._src).reduce((l,d)=>(l[l.length-1]===br&&d===br||l.push(d),l),[]),c.forEach((l,d)=>{l!==br||c[d-1]===br||(d===0?c.length>1?c[d+1]="(?:\\/|"+a+"\\/)?"+c[d+1]:c[d]=a:d===c.length-1?c[d-1]+="(?:\\/|"+a+")?":(c[d-1]+="(?:\\/|\\/"+a+"\\/)"+c[d+1],c[d+1]=br))}),c.filter(l=>l!==br).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(n,t=this.partial){if(this.debug("match",n,this.pattern),this.comment)return!1;if(this.empty)return n==="";if(n==="/"&&t)return!0;const a=this.options;Xu.sep!=="/"&&(n=n.split(Xu.sep).join("/")),n=n.split(gp),this.debug(this.pattern,"split",n);const s=this.set;this.debug(this.pattern,"set",s);let i;for(let c=n.length-1;c>=0&&(i=n[c],!i);c--);for(let c=0;c<s.length;c++){const l=s[c];let d=n;if(a.matchBase&&l.length===1&&(d=[i]),this.matchOne(d,l,t))return a.flipNegate?!0:!this.negate}return a.flipNegate?!1:this.negate}static defaults(n){return Zt.defaults(n).Minimatch}}Zt.Minimatch=Bs;const Hh=Is(Bh),Gh=[{pattern:E.ROLES_TAB_PATH,editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:E.MODEL_TAB_PATH,editor:{key:"editors:model"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"**/*.webform",editor:{key:"editors:webforms"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"Methods/*.4dm",editor:{key:"editors:code:method",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Methods/*.4qs",editor:{key:"editors:code:method",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Classes/*.4dm",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Classes/*.4qs",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"**/*.+(json)",editor:{key:"editors:code",config:{language:"json"}}},{pattern:"**/*.+(js)",editor:{key:"editors:code",config:{language:"js"}}},{pattern:"**/*.+(css)",editor:{key:"editors:code",config:{language:"css"}}},{pattern:"**/*.+(txt)",editor:{key:"editors:code",config:{language:""}}},{pattern:"Debugger/*",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"**/*.+(png|jpeg|jpg|gif|svg)",editor:{key:"editors:img"}}],qh=[{pattern:"**/*.+(json|4DModel|WebForm)",type:"json"},{pattern:"**/*.+(4dm|txt|json|4qs)",type:"text"}];function Yh(e){const n=e.split("/");return n.pop(),n.join("/")}function Er(e){const n=Gh.find(({pattern:t})=>Hh(e,t,{nocase:!0}));return n||{pattern:"",editor:{key:"editors:unknown",config:{language:"text"}}}}function zh(e){const n=qh.find(({pattern:t})=>Hh(e,t,{nocase:!0}));return n?n.type:"text"}var Qu=function(e,n){return Qu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])},Qu(e,n)};function Ws(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");Qu(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function ec(e){var n=typeof Symbol=="function"&&Symbol.iterator,t=n&&e[n],a=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function ws(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var a=t.call(e),s,i=[],c;try{for(;(n===void 0||n-- >0)&&!(s=a.next()).done;)i.push(s.value)}catch(l){c={error:l}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(c)throw c.error}}return i}function Ts(e,n,t){if(t||arguments.length===2)for(var a=0,s=n.length,i;a<s;a++)(i||!(a in n))&&(i||(i=Array.prototype.slice.call(n,0,a)),i[a]=n[a]);return e.concat(i||Array.prototype.slice.call(n))}function Yr(e){return typeof e=="function"}function Vh(e){var n=function(a){Error.call(a),a.stack=new Error().stack},t=e(n);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var wu=Vh(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
38
|
+
`+t.map(function(a,s){return s+1+") "+a.toString()}).join(`
|
|
39
|
+
`):"",this.name="UnsubscriptionError",this.errors=t}});function tc(e,n){if(e){var t=e.indexOf(n);0<=t&&e.splice(t,1)}}var Us=function(){function e(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var n,t,a,s,i;if(!this.closed){this.closed=!0;var c=this._parentage;if(c)if(this._parentage=null,Array.isArray(c))try{for(var l=ec(c),d=l.next();!d.done;d=l.next()){var p=d.value;p.remove(this)}}catch(x){n={error:x}}finally{try{d&&!d.done&&(t=l.return)&&t.call(l)}finally{if(n)throw n.error}}else c.remove(this);var h=this.initialTeardown;if(Yr(h))try{h()}catch(x){i=x instanceof wu?x.errors:[x]}var b=this._finalizers;if(b){this._finalizers=null;try{for(var _=ec(b),S=_.next();!S.done;S=_.next()){var T=S.value;try{vp(T)}catch(x){i=i??[],x instanceof wu?i=Ts(Ts([],ws(i)),ws(x.errors)):i.push(x)}}}catch(x){a={error:x}}finally{try{S&&!S.done&&(s=_.return)&&s.call(_)}finally{if(a)throw a.error}}}if(i)throw new wu(i)}},e.prototype.add=function(n){var t;if(n&&n!==this)if(this.closed)vp(n);else{if(n instanceof e){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(n)}},e.prototype._hasParent=function(n){var t=this._parentage;return t===n||Array.isArray(t)&&t.includes(n)},e.prototype._addParent=function(n){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n},e.prototype._removeParent=function(n){var t=this._parentage;t===n?this._parentage=null:Array.isArray(t)&&tc(t,n)},e.prototype.remove=function(n){var t=this._finalizers;t&&tc(t,n),n instanceof e&&n._removeParent(this)},e.EMPTY=function(){var n=new e;return n.closed=!0,n}(),e}(),Kh=Us.EMPTY;function Jh(e){return e instanceof Us||e&&"closed"in e&&Yr(e.remove)&&Yr(e.add)&&Yr(e.unsubscribe)}function vp(e){Yr(e)?e():e.unsubscribe()}var Xh={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},rc={setTimeout:function(e,n){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];var s=rc.delegate;return s!=null&&s.setTimeout?s.setTimeout.apply(s,Ts([e,n],ws(t))):setTimeout.apply(void 0,Ts([e,n],ws(t)))},clearTimeout:function(e){var n=rc.delegate;return((n==null?void 0:n.clearTimeout)||clearTimeout)(e)},delegate:void 0};function jR(e){rc.setTimeout(function(){throw e})}function yp(){}function is(e){e()}var Zh=function(e){Ws(n,e);function n(t){var a=e.call(this)||this;return a.isStopped=!1,t?(a.destination=t,Jh(t)&&t.add(a)):a.destination=UR,a}return n.create=function(t,a,s){return new nc(t,a,s)},n.prototype.next=function(t){this.isStopped||this._next(t)},n.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(t){this.destination.next(t)},n.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(Us),kR=Function.prototype.bind;function Tu(e,n){return kR.call(e,n)}var BR=function(){function e(n){this.partialObserver=n}return e.prototype.next=function(n){var t=this.partialObserver;if(t.next)try{t.next(n)}catch(a){es(a)}},e.prototype.error=function(n){var t=this.partialObserver;if(t.error)try{t.error(n)}catch(a){es(a)}else es(n)},e.prototype.complete=function(){var n=this.partialObserver;if(n.complete)try{n.complete()}catch(t){es(t)}},e}(),nc=function(e){Ws(n,e);function n(t,a,s){var i=e.call(this)||this,c;if(Yr(t)||!t)c={next:t??void 0,error:a??void 0,complete:s??void 0};else{var l;i&&Xh.useDeprecatedNextContext?(l=Object.create(t),l.unsubscribe=function(){return i.unsubscribe()},c={next:t.next&&Tu(t.next,l),error:t.error&&Tu(t.error,l),complete:t.complete&&Tu(t.complete,l)}):c=t}return i.destination=new BR(c),i}return n}(Zh);function es(e){jR(e)}function WR(e){throw e}var UR={closed:!0,next:yp,error:WR,complete:yp},HR=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function GR(e){return e}function qR(e){return e.length===0?GR:e.length===1?e[0]:function(t){return e.reduce(function(a,s){return s(a)},t)}}var mp=function(){function e(n){n&&(this._subscribe=n)}return e.prototype.lift=function(n){var t=new e;return t.source=this,t.operator=n,t},e.prototype.subscribe=function(n,t,a){var s=this,i=zR(n)?n:new nc(n,t,a);return is(function(){var c=s,l=c.operator,d=c.source;i.add(l?l.call(i,d):d?s._subscribe(i):s._trySubscribe(i))}),i},e.prototype._trySubscribe=function(n){try{return this._subscribe(n)}catch(t){n.error(t)}},e.prototype.forEach=function(n,t){var a=this;return t=bp(t),new t(function(s,i){var c=new nc({next:function(l){try{n(l)}catch(d){i(d),c.unsubscribe()}},error:i,complete:s});a.subscribe(c)})},e.prototype._subscribe=function(n){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(n)},e.prototype[HR]=function(){return this},e.prototype.pipe=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return qR(n)(this)},e.prototype.toPromise=function(n){var t=this;return n=bp(n),new n(function(a,s){var i;t.subscribe(function(c){return i=c},function(c){return s(c)},function(){return a(i)})})},e.create=function(n){return new e(n)},e}();function bp(e){var n;return(n=e??Xh.Promise)!==null&&n!==void 0?n:Promise}function YR(e){return e&&Yr(e.next)&&Yr(e.error)&&Yr(e.complete)}function zR(e){return e&&e instanceof Zh||YR(e)&&Jh(e)}var VR=Vh(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Qh=function(e){Ws(n,e);function n(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return n.prototype.lift=function(t){var a=new _p(this,this);return a.operator=t,a},n.prototype._throwIfClosed=function(){if(this.closed)throw new VR},n.prototype.next=function(t){var a=this;is(function(){var s,i;if(a._throwIfClosed(),!a.isStopped){a.currentObservers||(a.currentObservers=Array.from(a.observers));try{for(var c=ec(a.currentObservers),l=c.next();!l.done;l=c.next()){var d=l.value;d.next(t)}}catch(p){s={error:p}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(s)throw s.error}}}})},n.prototype.error=function(t){var a=this;is(function(){if(a._throwIfClosed(),!a.isStopped){a.hasError=a.isStopped=!0,a.thrownError=t;for(var s=a.observers;s.length;)s.shift().error(t)}})},n.prototype.complete=function(){var t=this;is(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var a=t.observers;a.length;)a.shift().complete()}})},n.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(n.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),n.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},n.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},n.prototype._innerSubscribe=function(t){var a=this,s=this,i=s.hasError,c=s.isStopped,l=s.observers;return i||c?Kh:(this.currentObservers=null,l.push(t),new Us(function(){a.currentObservers=null,tc(l,t)}))},n.prototype._checkFinalizedStatuses=function(t){var a=this,s=a.hasError,i=a.thrownError,c=a.isStopped;s?t.error(i):c&&t.complete()},n.prototype.asObservable=function(){var t=new mp;return t.source=this,t},n.create=function(t,a){return new _p(t,a)},n}(mp),_p=function(e){Ws(n,e);function n(t,a){var s=e.call(this)||this;return s.destination=t,s.source=a,s}return n.prototype.next=function(t){var a,s;(s=(a=this.destination)===null||a===void 0?void 0:a.next)===null||s===void 0||s.call(a,t)},n.prototype.error=function(t){var a,s;(s=(a=this.destination)===null||a===void 0?void 0:a.error)===null||s===void 0||s.call(a,t)},n.prototype.complete=function(){var t,a;(a=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||a===void 0||a.call(t)},n.prototype._subscribe=function(t){var a,s;return(s=(a=this.source)===null||a===void 0?void 0:a.subscribe(t))!==null&&s!==void 0?s:Kh},n}(Qh);const eg=new Qh;var ac={exports:{}},ts={exports:{}},Le={};/** @license React v16.13.1
|
|
40
|
+
* react-is.production.min.js
|
|
41
|
+
*
|
|
42
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the MIT license found in the
|
|
45
|
+
* LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/var Ep;function KR(){if(Ep)return Le;Ep=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,F=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,W=e?Symbol.for("react.scope"):60119;function $(A){if(typeof A=="object"&&A!==null){var K=A.$$typeof;switch(K){case n:switch(A=A.type,A){case d:case p:case a:case i:case s:case b:return A;default:switch(A=A&&A.$$typeof,A){case l:case h:case T:case S:case c:return A;default:return K}}case t:return K}}}function j(A){return $(A)===p}return Le.AsyncMode=d,Le.ConcurrentMode=p,Le.ContextConsumer=l,Le.ContextProvider=c,Le.Element=n,Le.ForwardRef=h,Le.Fragment=a,Le.Lazy=T,Le.Memo=S,Le.Portal=t,Le.Profiler=i,Le.StrictMode=s,Le.Suspense=b,Le.isAsyncMode=function(A){return j(A)||$(A)===d},Le.isConcurrentMode=j,Le.isContextConsumer=function(A){return $(A)===l},Le.isContextProvider=function(A){return $(A)===c},Le.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===n},Le.isForwardRef=function(A){return $(A)===h},Le.isFragment=function(A){return $(A)===a},Le.isLazy=function(A){return $(A)===T},Le.isMemo=function(A){return $(A)===S},Le.isPortal=function(A){return $(A)===t},Le.isProfiler=function(A){return $(A)===i},Le.isStrictMode=function(A){return $(A)===s},Le.isSuspense=function(A){return $(A)===b},Le.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===a||A===p||A===i||A===s||A===b||A===_||typeof A=="object"&&A!==null&&(A.$$typeof===T||A.$$typeof===S||A.$$typeof===c||A.$$typeof===l||A.$$typeof===h||A.$$typeof===F||A.$$typeof===D||A.$$typeof===W||A.$$typeof===x)},Le.typeOf=$,Le}var je={};/** @license React v16.13.1
|
|
47
|
+
* react-is.development.js
|
|
48
|
+
*
|
|
49
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
50
|
+
*
|
|
51
|
+
* This source code is licensed under the MIT license found in the
|
|
52
|
+
* LICENSE file in the root directory of this source tree.
|
|
53
|
+
*/var Sp;function JR(){return Sp||(Sp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,F=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,W=e?Symbol.for("react.scope"):60119;function $(N){return typeof N=="string"||typeof N=="function"||N===a||N===p||N===i||N===s||N===b||N===_||typeof N=="object"&&N!==null&&(N.$$typeof===T||N.$$typeof===S||N.$$typeof===c||N.$$typeof===l||N.$$typeof===h||N.$$typeof===F||N.$$typeof===D||N.$$typeof===W||N.$$typeof===x)}function j(N){if(typeof N=="object"&&N!==null){var Ge=N.$$typeof;switch(Ge){case n:var qe=N.type;switch(qe){case d:case p:case a:case i:case s:case b:return qe;default:var it=qe&&qe.$$typeof;switch(it){case l:case h:case T:case S:case c:return it;default:return Ge}}case t:return Ge}}}var A=d,K=p,G=l,Y=c,ie=n,We=h,Oe=a,st=T,Z=S,we=t,Xe=i,Ze=s,Ue=b,et=!1;function Dt(N){return et||(et=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),H(N)||j(N)===d}function H(N){return j(N)===p}function V(N){return j(N)===l}function ve(N){return j(N)===c}function he(N){return typeof N=="object"&&N!==null&&N.$$typeof===n}function le(N){return j(N)===h}function ye(N){return j(N)===a}function se(N){return j(N)===T}function fe(N){return j(N)===S}function ue(N){return j(N)===t}function me(N){return j(N)===i}function ge(N){return j(N)===s}function J(N){return j(N)===b}je.AsyncMode=A,je.ConcurrentMode=K,je.ContextConsumer=G,je.ContextProvider=Y,je.Element=ie,je.ForwardRef=We,je.Fragment=Oe,je.Lazy=st,je.Memo=Z,je.Portal=we,je.Profiler=Xe,je.StrictMode=Ze,je.Suspense=Ue,je.isAsyncMode=Dt,je.isConcurrentMode=H,je.isContextConsumer=V,je.isContextProvider=ve,je.isElement=he,je.isForwardRef=le,je.isFragment=ye,je.isLazy=se,je.isMemo=fe,je.isPortal=ue,je.isProfiler=me,je.isStrictMode=ge,je.isSuspense=J,je.isValidElementType=$,je.typeOf=j}()),je}var wp;function tg(){return wp||(wp=1,process.env.NODE_ENV==="production"?ts.exports=KR():ts.exports=JR()),ts.exports}/*
|
|
54
|
+
object-assign
|
|
55
|
+
(c) Sindre Sorhus
|
|
56
|
+
@license MIT
|
|
57
|
+
*/var Cu,Tp;function Ic(){if(Tp)return Cu;Tp=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function a(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function s(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var c={},l=0;l<10;l++)c["_"+String.fromCharCode(l)]=l;var d=Object.getOwnPropertyNames(c).map(function(h){return c[h]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(h){p[h]=h}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Cu=s()?Object.assign:function(i,c){for(var l,d=a(i),p,h=1;h<arguments.length;h++){l=Object(arguments[h]);for(var b in l)n.call(l,b)&&(d[b]=l[b]);if(e){p=e(l);for(var _=0;_<p.length;_++)t.call(l,p[_])&&(d[p[_]]=l[p[_]])}}return d},Cu}var xu,Cp;function Fc(){if(Cp)return xu;Cp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return xu=e,xu}var Ru,xp;function rg(){return xp||(xp=1,Ru=Function.call.bind(Object.prototype.hasOwnProperty)),Ru}var Ou,Rp;function XR(){if(Rp)return Ou;Rp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var n=Fc(),t={},a=rg();e=function(i){var c="Warning: "+i;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}}}function s(i,c,l,d,p){if(process.env.NODE_ENV!=="production"){for(var h in i)if(a(i,h)){var b;try{if(typeof i[h]!="function"){var _=Error((d||"React class")+": "+l+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}b=i[h](c,h,d,l,null,n)}catch(T){b=T}if(b&&!(b instanceof Error)&&e((d||"React class")+": type specification of "+l+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof b+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),b instanceof Error&&!(b.message in t)){t[b.message]=!0;var S=p?p():"";e("Failed "+l+" type: "+b.message+(S??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},Ou=s,Ou}var Au,Op;function ZR(){if(Op)return Au;Op=1;var e=tg(),n=Ic(),t=Fc(),a=rg(),s=XR(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var d="Warning: "+l;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function c(){return null}return Au=function(l,d){var p=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function b(H){var V=H&&(p&&H[p]||H[h]);if(typeof V=="function")return V}var _="<<anonymous>>",S={array:D("array"),bigint:D("bigint"),bool:D("boolean"),func:D("function"),number:D("number"),object:D("object"),string:D("string"),symbol:D("symbol"),any:W(),arrayOf:$,element:j(),elementType:A(),instanceOf:K,node:We(),objectOf:Y,oneOf:G,oneOfType:ie,shape:st,exact:Z};function T(H,V){return H===V?H!==0||1/H===1/V:H!==H&&V!==V}function x(H,V){this.message=H,this.data=V&&typeof V=="object"?V:{},this.stack=""}x.prototype=Error.prototype;function F(H){if(process.env.NODE_ENV!=="production")var V={},ve=0;function he(ye,se,fe,ue,me,ge,J){if(ue=ue||_,ge=ge||fe,J!==t){if(d){var N=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw N.name="Invariant Violation",N}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ge=ue+":"+fe;!V[Ge]&&ve<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ge+"` prop on `"+ue+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),V[Ge]=!0,ve++)}}return se[fe]==null?ye?se[fe]===null?new x("The "+me+" `"+ge+"` is marked as required "+("in `"+ue+"`, but its value is `null`.")):new x("The "+me+" `"+ge+"` is marked as required in "+("`"+ue+"`, but its value is `undefined`.")):null:H(se,fe,ue,me,ge)}var le=he.bind(null,!1);return le.isRequired=he.bind(null,!0),le}function D(H){function V(ve,he,le,ye,se,fe){var ue=ve[he],me=Ze(ue);if(me!==H){var ge=Ue(ue);return new x("Invalid "+ye+" `"+se+"` of type "+("`"+ge+"` supplied to `"+le+"`, expected ")+("`"+H+"`."),{expectedType:H})}return null}return F(V)}function W(){return F(c)}function $(H){function V(ve,he,le,ye,se){if(typeof H!="function")return new x("Property `"+se+"` of component `"+le+"` has invalid PropType notation inside arrayOf.");var fe=ve[he];if(!Array.isArray(fe)){var ue=Ze(fe);return new x("Invalid "+ye+" `"+se+"` of type "+("`"+ue+"` supplied to `"+le+"`, expected an array."))}for(var me=0;me<fe.length;me++){var ge=H(fe,me,le,ye,se+"["+me+"]",t);if(ge instanceof Error)return ge}return null}return F(V)}function j(){function H(V,ve,he,le,ye){var se=V[ve];if(!l(se)){var fe=Ze(se);return new x("Invalid "+le+" `"+ye+"` of type "+("`"+fe+"` supplied to `"+he+"`, expected a single ReactElement."))}return null}return F(H)}function A(){function H(V,ve,he,le,ye){var se=V[ve];if(!e.isValidElementType(se)){var fe=Ze(se);return new x("Invalid "+le+" `"+ye+"` of type "+("`"+fe+"` supplied to `"+he+"`, expected a single ReactElement type."))}return null}return F(H)}function K(H){function V(ve,he,le,ye,se){if(!(ve[he]instanceof H)){var fe=H.name||_,ue=Dt(ve[he]);return new x("Invalid "+ye+" `"+se+"` of type "+("`"+ue+"` supplied to `"+le+"`, expected ")+("instance of `"+fe+"`."))}return null}return F(V)}function G(H){if(!Array.isArray(H))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),c;function V(ve,he,le,ye,se){for(var fe=ve[he],ue=0;ue<H.length;ue++)if(T(fe,H[ue]))return null;var me=JSON.stringify(H,function(J,N){var Ge=Ue(N);return Ge==="symbol"?String(N):N});return new x("Invalid "+ye+" `"+se+"` of value `"+String(fe)+"` "+("supplied to `"+le+"`, expected one of "+me+"."))}return F(V)}function Y(H){function V(ve,he,le,ye,se){if(typeof H!="function")return new x("Property `"+se+"` of component `"+le+"` has invalid PropType notation inside objectOf.");var fe=ve[he],ue=Ze(fe);if(ue!=="object")return new x("Invalid "+ye+" `"+se+"` of type "+("`"+ue+"` supplied to `"+le+"`, expected an object."));for(var me in fe)if(a(fe,me)){var ge=H(fe,me,le,ye,se+"."+me,t);if(ge instanceof Error)return ge}return null}return F(V)}function ie(H){if(!Array.isArray(H))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var V=0;V<H.length;V++){var ve=H[V];if(typeof ve!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+et(ve)+" at index "+V+"."),c}function he(le,ye,se,fe,ue){for(var me=[],ge=0;ge<H.length;ge++){var J=H[ge],N=J(le,ye,se,fe,ue,t);if(N==null)return null;N.data&&a(N.data,"expectedType")&&me.push(N.data.expectedType)}var Ge=me.length>0?", expected one of type ["+me.join(", ")+"]":"";return new x("Invalid "+fe+" `"+ue+"` supplied to "+("`"+se+"`"+Ge+"."))}return F(he)}function We(){function H(V,ve,he,le,ye){return we(V[ve])?null:new x("Invalid "+le+" `"+ye+"` supplied to "+("`"+he+"`, expected a ReactNode."))}return F(H)}function Oe(H,V,ve,he,le){return new x((H||"React class")+": "+V+" type `"+ve+"."+he+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+le+"`.")}function st(H){function V(ve,he,le,ye,se){var fe=ve[he],ue=Ze(fe);if(ue!=="object")return new x("Invalid "+ye+" `"+se+"` of type `"+ue+"` "+("supplied to `"+le+"`, expected `object`."));for(var me in H){var ge=H[me];if(typeof ge!="function")return Oe(le,ye,se,me,Ue(ge));var J=ge(fe,me,le,ye,se+"."+me,t);if(J)return J}return null}return F(V)}function Z(H){function V(ve,he,le,ye,se){var fe=ve[he],ue=Ze(fe);if(ue!=="object")return new x("Invalid "+ye+" `"+se+"` of type `"+ue+"` "+("supplied to `"+le+"`, expected `object`."));var me=n({},ve[he],H);for(var ge in me){var J=H[ge];if(a(H,ge)&&typeof J!="function")return Oe(le,ye,se,ge,Ue(J));if(!J)return new x("Invalid "+ye+" `"+se+"` key `"+ge+"` supplied to `"+le+"`.\nBad object: "+JSON.stringify(ve[he],null," ")+`
|
|
58
|
+
Valid keys: `+JSON.stringify(Object.keys(H),null," "));var N=J(fe,ge,le,ye,se+"."+ge,t);if(N)return N}return null}return F(V)}function we(H){switch(typeof H){case"number":case"string":case"undefined":return!0;case"boolean":return!H;case"object":if(Array.isArray(H))return H.every(we);if(H===null||l(H))return!0;var V=b(H);if(V){var ve=V.call(H),he;if(V!==H.entries){for(;!(he=ve.next()).done;)if(!we(he.value))return!1}else for(;!(he=ve.next()).done;){var le=he.value;if(le&&!we(le[1]))return!1}}else return!1;return!0;default:return!1}}function Xe(H,V){return H==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function Ze(H){var V=typeof H;return Array.isArray(H)?"array":H instanceof RegExp?"object":Xe(V,H)?"symbol":V}function Ue(H){if(typeof H>"u"||H===null)return""+H;var V=Ze(H);if(V==="object"){if(H instanceof Date)return"date";if(H instanceof RegExp)return"regexp"}return V}function et(H){var V=Ue(H);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function Dt(H){return!H.constructor||!H.constructor.name?_:H.constructor.name}return S.checkPropTypes=s,S.resetWarningCache=s.resetWarningCache,S.PropTypes=S,S},Au}var Pu,Ap;function QR(){if(Ap)return Pu;Ap=1;var e=Fc();function n(){}function t(){}return t.resetWarningCache=n,Pu=function(){function a(c,l,d,p,h,b){if(b!==e){var _=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw _.name="Invariant Violation",_}}a.isRequired=a;function s(){return a}var i={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:s,element:a,elementType:a,instanceOf:s,node:a,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:t,resetWarningCache:n};return i.PropTypes=i,i},Pu}if(process.env.NODE_ENV!=="production"){var eO=tg(),tO=!0;ac.exports=ZR()(eO.isElement,tO)}else ac.exports=QR()();var rO=ac.exports;const aa=Is(rO);var Jr=dt.createContext(null);process.env.NODE_ENV!=="production"&&(Jr.displayName="ReactRedux");function nO(e){e()}var ng=nO,aO=function(n){return ng=n},oO=function(){return ng};function sO(){var e=oO(),n=null,t=null;return{clear:function(){n=null,t=null},notify:function(){e(function(){for(var s=n;s;)s.callback(),s=s.next})},get:function(){for(var s=[],i=n;i;)s.push(i),i=i.next;return s},subscribe:function(s){var i=!0,c=t={callback:s,next:null,prev:t};return c.prev?c.prev.next=c:n=c,function(){!i||n===null||(i=!1,c.next?c.next.prev=c.prev:t=c.prev,c.prev?c.prev.next=c.next:n=c.next)}}}}var Pp={notify:function(){},get:function(){return[]}};function ag(e,n){var t,a=Pp;function s(b){return d(),a.subscribe(b)}function i(){a.notify()}function c(){h.onStateChange&&h.onStateChange()}function l(){return!!t}function d(){t||(t=n?n.addNestedSub(c):e.subscribe(c),a=sO())}function p(){t&&(t(),t=void 0,a.clear(),a=Pp)}var h={addNestedSub:s,notifyNestedSubs:i,handleChangeWrapper:c,isSubscribed:l,trySubscribe:d,tryUnsubscribe:p,getListeners:function(){return a}};return h}var oc=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?dt.useLayoutEffect:dt.useEffect;function og(e){var n=e.store,t=e.context,a=e.children,s=dt.useMemo(function(){var l=ag(n);return{store:n,subscription:l}},[n]),i=dt.useMemo(function(){return n.getState()},[n]);oc(function(){var l=s.subscription;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),i!==n.getState()&&l.notifyNestedSubs(),function(){l.tryUnsubscribe(),l.onStateChange=null}},[s,i]);var c=t||Jr;return dt.createElement(c.Provider,{value:s},a)}process.env.NODE_ENV!=="production"&&(og.propTypes={store:aa.shape({subscribe:aa.func.isRequired,dispatch:aa.func.isRequired,getState:aa.func.isRequired}),context:aa.object,children:aa.any});var sc={exports:{}},ke={};/** @license React v16.13.1
|
|
59
|
+
* react-is.production.min.js
|
|
60
|
+
*
|
|
61
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the MIT license found in the
|
|
64
|
+
* LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/var Dp;function iO(){if(Dp)return ke;Dp=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,F=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,W=e?Symbol.for("react.scope"):60119;function $(A){if(typeof A=="object"&&A!==null){var K=A.$$typeof;switch(K){case n:switch(A=A.type,A){case d:case p:case a:case i:case s:case b:return A;default:switch(A=A&&A.$$typeof,A){case l:case h:case T:case S:case c:return A;default:return K}}case t:return K}}}function j(A){return $(A)===p}return ke.AsyncMode=d,ke.ConcurrentMode=p,ke.ContextConsumer=l,ke.ContextProvider=c,ke.Element=n,ke.ForwardRef=h,ke.Fragment=a,ke.Lazy=T,ke.Memo=S,ke.Portal=t,ke.Profiler=i,ke.StrictMode=s,ke.Suspense=b,ke.isAsyncMode=function(A){return j(A)||$(A)===d},ke.isConcurrentMode=j,ke.isContextConsumer=function(A){return $(A)===l},ke.isContextProvider=function(A){return $(A)===c},ke.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===n},ke.isForwardRef=function(A){return $(A)===h},ke.isFragment=function(A){return $(A)===a},ke.isLazy=function(A){return $(A)===T},ke.isMemo=function(A){return $(A)===S},ke.isPortal=function(A){return $(A)===t},ke.isProfiler=function(A){return $(A)===i},ke.isStrictMode=function(A){return $(A)===s},ke.isSuspense=function(A){return $(A)===b},ke.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===a||A===p||A===i||A===s||A===b||A===_||typeof A=="object"&&A!==null&&(A.$$typeof===T||A.$$typeof===S||A.$$typeof===c||A.$$typeof===l||A.$$typeof===h||A.$$typeof===F||A.$$typeof===D||A.$$typeof===W||A.$$typeof===x)},ke.typeOf=$,ke}var Be={};/** @license React v16.13.1
|
|
66
|
+
* react-is.development.js
|
|
67
|
+
*
|
|
68
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
69
|
+
*
|
|
70
|
+
* This source code is licensed under the MIT license found in the
|
|
71
|
+
* LICENSE file in the root directory of this source tree.
|
|
72
|
+
*/var Ip;function uO(){return Ip||(Ip=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,F=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,W=e?Symbol.for("react.scope"):60119;function $(N){return typeof N=="string"||typeof N=="function"||N===a||N===p||N===i||N===s||N===b||N===_||typeof N=="object"&&N!==null&&(N.$$typeof===T||N.$$typeof===S||N.$$typeof===c||N.$$typeof===l||N.$$typeof===h||N.$$typeof===F||N.$$typeof===D||N.$$typeof===W||N.$$typeof===x)}function j(N){if(typeof N=="object"&&N!==null){var Ge=N.$$typeof;switch(Ge){case n:var qe=N.type;switch(qe){case d:case p:case a:case i:case s:case b:return qe;default:var it=qe&&qe.$$typeof;switch(it){case l:case h:case T:case S:case c:return it;default:return Ge}}case t:return Ge}}}var A=d,K=p,G=l,Y=c,ie=n,We=h,Oe=a,st=T,Z=S,we=t,Xe=i,Ze=s,Ue=b,et=!1;function Dt(N){return et||(et=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),H(N)||j(N)===d}function H(N){return j(N)===p}function V(N){return j(N)===l}function ve(N){return j(N)===c}function he(N){return typeof N=="object"&&N!==null&&N.$$typeof===n}function le(N){return j(N)===h}function ye(N){return j(N)===a}function se(N){return j(N)===T}function fe(N){return j(N)===S}function ue(N){return j(N)===t}function me(N){return j(N)===i}function ge(N){return j(N)===s}function J(N){return j(N)===b}Be.AsyncMode=A,Be.ConcurrentMode=K,Be.ContextConsumer=G,Be.ContextProvider=Y,Be.Element=ie,Be.ForwardRef=We,Be.Fragment=Oe,Be.Lazy=st,Be.Memo=Z,Be.Portal=we,Be.Profiler=Xe,Be.StrictMode=Ze,Be.Suspense=Ue,Be.isAsyncMode=Dt,Be.isConcurrentMode=H,Be.isContextConsumer=V,Be.isContextProvider=ve,Be.isElement=he,Be.isForwardRef=le,Be.isFragment=ye,Be.isLazy=se,Be.isMemo=fe,Be.isPortal=ue,Be.isProfiler=me,Be.isStrictMode=ge,Be.isSuspense=J,Be.isValidElementType=$,Be.typeOf=j}()),Be}process.env.NODE_ENV==="production"?sc.exports=iO():sc.exports=uO();var cO=sc.exports,sg=cO,lO={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},fO={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ig={};ig[sg.ForwardRef]=lO;ig[sg.Memo]=fO;var Ye={};/** @license React v17.0.2
|
|
73
|
+
* react-is.production.min.js
|
|
74
|
+
*
|
|
75
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the MIT license found in the
|
|
78
|
+
* LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/var Fp;function dO(){if(Fp)return Ye;Fp=1;var e=60103,n=60106,t=60107,a=60108,s=60114,i=60109,c=60110,l=60112,d=60113,p=60120,h=60115,b=60116,_=60121,S=60122,T=60117,x=60129,F=60131;if(typeof Symbol=="function"&&Symbol.for){var D=Symbol.for;e=D("react.element"),n=D("react.portal"),t=D("react.fragment"),a=D("react.strict_mode"),s=D("react.profiler"),i=D("react.provider"),c=D("react.context"),l=D("react.forward_ref"),d=D("react.suspense"),p=D("react.suspense_list"),h=D("react.memo"),b=D("react.lazy"),_=D("react.block"),S=D("react.server.block"),T=D("react.fundamental"),x=D("react.debug_trace_mode"),F=D("react.legacy_hidden")}function W(Z){if(typeof Z=="object"&&Z!==null){var we=Z.$$typeof;switch(we){case e:switch(Z=Z.type,Z){case t:case s:case a:case d:case p:return Z;default:switch(Z=Z&&Z.$$typeof,Z){case c:case l:case b:case h:case i:return Z;default:return we}}case n:return we}}}var $=i,j=e,A=l,K=t,G=b,Y=h,ie=n,We=s,Oe=a,st=d;return Ye.ContextConsumer=c,Ye.ContextProvider=$,Ye.Element=j,Ye.ForwardRef=A,Ye.Fragment=K,Ye.Lazy=G,Ye.Memo=Y,Ye.Portal=ie,Ye.Profiler=We,Ye.StrictMode=Oe,Ye.Suspense=st,Ye.isAsyncMode=function(){return!1},Ye.isConcurrentMode=function(){return!1},Ye.isContextConsumer=function(Z){return W(Z)===c},Ye.isContextProvider=function(Z){return W(Z)===i},Ye.isElement=function(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===e},Ye.isForwardRef=function(Z){return W(Z)===l},Ye.isFragment=function(Z){return W(Z)===t},Ye.isLazy=function(Z){return W(Z)===b},Ye.isMemo=function(Z){return W(Z)===h},Ye.isPortal=function(Z){return W(Z)===n},Ye.isProfiler=function(Z){return W(Z)===s},Ye.isStrictMode=function(Z){return W(Z)===a},Ye.isSuspense=function(Z){return W(Z)===d},Ye.isValidElementType=function(Z){return typeof Z=="string"||typeof Z=="function"||Z===t||Z===s||Z===x||Z===a||Z===d||Z===p||Z===F||typeof Z=="object"&&Z!==null&&(Z.$$typeof===b||Z.$$typeof===h||Z.$$typeof===i||Z.$$typeof===c||Z.$$typeof===l||Z.$$typeof===T||Z.$$typeof===_||Z[0]===S)},Ye.typeOf=W,Ye}var ze={};/** @license React v17.0.2
|
|
80
|
+
* react-is.development.js
|
|
81
|
+
*
|
|
82
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the MIT license found in the
|
|
85
|
+
* LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/var $p;function pO(){return $p||($p=1,process.env.NODE_ENV!=="production"&&function(){var e=60103,n=60106,t=60107,a=60108,s=60114,i=60109,c=60110,l=60112,d=60113,p=60120,h=60115,b=60116,_=60121,S=60122,T=60117,x=60129,F=60131;if(typeof Symbol=="function"&&Symbol.for){var D=Symbol.for;e=D("react.element"),n=D("react.portal"),t=D("react.fragment"),a=D("react.strict_mode"),s=D("react.profiler"),i=D("react.provider"),c=D("react.context"),l=D("react.forward_ref"),d=D("react.suspense"),p=D("react.suspense_list"),h=D("react.memo"),b=D("react.lazy"),_=D("react.block"),S=D("react.server.block"),T=D("react.fundamental"),D("react.scope"),D("react.opaque.id"),x=D("react.debug_trace_mode"),D("react.offscreen"),F=D("react.legacy_hidden")}var W=!1;function $(J){return!!(typeof J=="string"||typeof J=="function"||J===t||J===s||J===x||J===a||J===d||J===p||J===F||W||typeof J=="object"&&J!==null&&(J.$$typeof===b||J.$$typeof===h||J.$$typeof===i||J.$$typeof===c||J.$$typeof===l||J.$$typeof===T||J.$$typeof===_||J[0]===S))}function j(J){if(typeof J=="object"&&J!==null){var N=J.$$typeof;switch(N){case e:var Ge=J.type;switch(Ge){case t:case s:case a:case d:case p:return Ge;default:var qe=Ge&&Ge.$$typeof;switch(qe){case c:case l:case b:case h:case i:return qe;default:return N}}case n:return N}}}var A=c,K=i,G=e,Y=l,ie=t,We=b,Oe=h,st=n,Z=s,we=a,Xe=d,Ze=!1,Ue=!1;function et(J){return Ze||(Ze=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Dt(J){return Ue||(Ue=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function H(J){return j(J)===c}function V(J){return j(J)===i}function ve(J){return typeof J=="object"&&J!==null&&J.$$typeof===e}function he(J){return j(J)===l}function le(J){return j(J)===t}function ye(J){return j(J)===b}function se(J){return j(J)===h}function fe(J){return j(J)===n}function ue(J){return j(J)===s}function me(J){return j(J)===a}function ge(J){return j(J)===d}ze.ContextConsumer=A,ze.ContextProvider=K,ze.Element=G,ze.ForwardRef=Y,ze.Fragment=ie,ze.Lazy=We,ze.Memo=Oe,ze.Portal=st,ze.Profiler=Z,ze.StrictMode=we,ze.Suspense=Xe,ze.isAsyncMode=et,ze.isConcurrentMode=Dt,ze.isContextConsumer=H,ze.isContextProvider=V,ze.isElement=ve,ze.isForwardRef=he,ze.isFragment=le,ze.isLazy=ye,ze.isMemo=se,ze.isPortal=fe,ze.isProfiler=ue,ze.isStrictMode=me,ze.isSuspense=ge,ze.isValidElementType=$,ze.typeOf=j}()),ze}process.env.NODE_ENV==="production"?dO():pO();function Mp(e,n){return e===n?e!==0||n!==0||1/e===1/n:e!==e&&n!==n}function ug(e,n){if(Mp(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var t=Object.keys(e),a=Object.keys(n);if(t.length!==a.length)return!1;for(var s=0;s<t.length;s++)if(!Object.prototype.hasOwnProperty.call(n,t[s])||!Mp(e[t[s]],n[t[s]]))return!1;return!0}function cg(){var e=dt.useContext(Jr);if(process.env.NODE_ENV!=="production"&&!e)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return e}function lg(e){e===void 0&&(e=Jr);var n=e===Jr?cg:function(){return dt.useContext(e)};return function(){var a=n(),s=a.store;return s}}var hO=lg();function gO(e){e===void 0&&(e=Jr);var n=e===Jr?hO:lg(e);return function(){var a=n();return a.dispatch}}var vO=gO(),yO=function(n,t){return n===t};function mO(e,n,t,a){var s=dt.useReducer(function(T){return T+1},0),i=s[1],c=dt.useMemo(function(){return ag(t,a)},[t,a]),l=dt.useRef(),d=dt.useRef(),p=dt.useRef(),h=dt.useRef(),b=t.getState(),_;try{if(e!==d.current||b!==p.current||l.current){var S=e(b);h.current===void 0||!n(S,h.current)?_=S:_=h.current}else _=h.current}catch(T){throw l.current&&(T.message+=`
|
|
87
|
+
The error may be correlated with this previous error:
|
|
88
|
+
`+l.current.stack+`
|
|
89
|
+
|
|
90
|
+
`),T}return oc(function(){d.current=e,p.current=b,h.current=_,l.current=void 0}),oc(function(){function T(){try{var x=t.getState();if(x===p.current)return;var F=d.current(x);if(n(F,h.current))return;h.current=F,p.current=x}catch(D){l.current=D}i()}return c.onStateChange=T,c.trySubscribe(),T(),function(){return c.tryUnsubscribe()}},[t,c]),_}function bO(e){e===void 0&&(e=Jr);var n=e===Jr?cg:function(){return dt.useContext(e)};return function(a,s){if(s===void 0&&(s=yO),process.env.NODE_ENV!=="production"){if(!a)throw new Error("You must pass a selector to useSelector");if(typeof a!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof s!="function")throw new Error("You must pass a function as an equality function to useSelector")}var i=n(),c=i.store,l=i.subscription,d=mO(a,s,c,l);return dt.useDebugValue(d),d}}var _O=bO();aO(VE.unstable_batchedUpdates);const EO=()=>vO(),Xr=_O,$c=z(e=>e,e=>e.catalog.state==="loaded"?e.catalog.model:null),SO=z(e=>e,({catalog:e})=>e.state),wO=z($c,e=>e?e.dataClasses:[]),TO=z($c,e=>e?e.methods:[]),fg=e=>z(n=>n,n=>{switch(n.catalog.state){case"loaded":const t=e?n.catalog.model.dataClasses[e]:n.catalog.model;return(t==null?void 0:t.methods)||[];default:return[]}}),CO=e=>Xr(fg(e),ug),xO=(e,n)=>z(fg(e),t=>t.find(a=>`${a.applyTo}.${a.name}`===n)),RO=(e,n,t)=>Xr(xO(e,`${t}.${n}`),ug),dg=z(e=>e,e=>e),OO=e=>z(Zr,n=>{var s;const t=n.tabs.find(({path:i})=>i===e),a=t==null?void 0:t.content.components;return!t||!a?[]:(s=Object.keys(a))==null?void 0:s.map(i=>({id:i,...a[i]}))}),pg=e=>z(Zr,n=>{var a,s;const t=n.tabs.find(({path:i})=>i===e);return((s=(a=t==null?void 0:t.content)==null?void 0:a.metadata)==null?void 0:s.datasources)||[]}),AO=(e,n,t)=>z(dg,a=>{var s,i;if(n){const c=a.sharedDatasources.sources[n];return c?c.find(l=>l.id===e):void 0}else{const c=a.root.tabs.find(d=>d.path===t);return c?(i=(s=c.content.metadata)==null?void 0:s.datasources)==null?void 0:i.find(d=>d.id===e):void 0}}),hg=z(e=>e,e=>{var n;return((n=e.sharedDatasources)==null?void 0:n.sources)||[]}),PO=(e,n,t,a)=>z(pg(e),hg,(s,i)=>{const c=Ke.flatten(Ke.values(i)),l=[...n!=="private"?s:[],...n!=="shared"?c:[]];return t?l.filter(d=>(!a||a.every(({id:p,namespace:h=""})=>d.id!==p||(d.namespace||"")!==h))&&(t.includes(d.type)||d.dataType&&(t.includes(d.dataType)||t.includes("objectFromArray")&&d.dataType==="object"&&d.from))):l}),DO=z(e=>e.debugger,e=>e.meta),Bn=z(e=>e.debugger,e=>e.list),jt=z(e=>e.debugger,e=>e.sessions),IO=z(jt,e=>e.length),jn=(e,n,t,a)=>e.find(s=>s.filePath===n&&s.methodName===t&&(!a||s.className===a)),ft=(e,n)=>e.find(t=>t.threadId===n),gg=(e,n)=>e.find(t=>t.tabPath===n),FO=(e,n)=>z(Bn,t=>{var a;return((a=jn(t,e,n))==null?void 0:a.breakpoints.saved.locations)||[]}),$O=(e,n)=>z(Bn,t=>{var a;return((a=jn(t,e,n))==null?void 0:a.breakpoints.draft.locations)||[]}),MO=e=>z(Bn,n=>n.filter(t=>t.filePath===e).reduce((t,a)=>[...t,...a.breakpoints.saved.locations.map(s=>({...s,line:s.line+(a.breakpoints.saved.offset||0)}))],[]).sort((t,a)=>t.line-a.line)),NO=e=>z(Bn,n=>n.filter(t=>t.filePath===e).reduce((t,a)=>[...t,...a.breakpoints.draft.locations.map(s=>({...s,line:s.line+(a.breakpoints.draft.offset||0)}))],[]).sort((t,a)=>t.line-a.line)),LO=e=>z(jt,n=>{const t=ft(n,e);return t!=null&&t.stopped?t.highlightedLines:null}),jO=e=>z(jt,n=>{const t=ft(n,e);return t!=null&&t.stopped?t.activeLine:null}),kO=e=>z(jt,n=>{var t;return((t=ft(n,e))==null?void 0:t.expressions)||[]}),BO=e=>z(jt,n=>{var t;return((t=ft(n,e))==null?void 0:t.stopped)||!1}),WO=(e,n)=>z(Bn,t=>{var a;return(a=jn(t,e,n))==null?void 0:a.source}),UO=e=>z(jt,n=>{var t;return((t=gg(n,e))==null?void 0:t.threadId)||-1}),HO=e=>z(jt,n=>{var t,a;return(a=(t=ft(n,e))==null?void 0:t.currentStackFrame)==null?void 0:a.source}),GO=e=>z(jt,n=>{var t;return(t=ft(n,e))==null?void 0:t.currentStackFrame}),qO=z(jt,e=>e.map(({channelId:n,threadId:t})=>({id:n,threadId:t}))),YO=e=>z(jt,n=>{var t;return((t=ft(n,e))==null?void 0:t.stackFrames)||[]}),zO=e=>z(jt,n=>{var t,a;return((a=(t=ft(n,e))==null?void 0:t.variables)==null?void 0:a.callchain)||[]}),VO=e=>z(jt,n=>{var t,a;return((a=(t=ft(n,e))==null?void 0:t.variables)==null?void 0:a.expressions)||[]}),KO=(e,n="saved")=>z(Bn,t=>{const a=t.find(s=>s.filePath===e);return(a==null?void 0:a.breakpoints[n].offset)||0}),JO=(e,n,t,a)=>z(jt,s=>{var p;const i=((p=ft(s,e))==null?void 0:p.exceptions)||[],c=n===E.FileFolderType.CLASS,l=c&&a?`${a}.${t}`:t;return(l?i.filter(h=>h.location===l):i).map(h=>({...h,locationLine:c?h.locationLine:h.locationLine+1}))}),Zr=z(e=>e.root,e=>e),ba=z(Zr,e=>e.tabs),XO=z(Zr,e=>e.activeTab),ZO=z(Zr,e=>e.recent.filter(({type:n})=>n!==E.FileFolderType.DEBUGGER)),QO=z(Zr,({tabs:e,activeTab:n})=>e.find(({path:t})=>t===n)),eA=z(Zr,({tabs:e})=>e.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null)),tA=z(ba,e=>e.filter(({type:n,flags:t})=>n===E.FileFolderType.WEBFORM&&t.enabled===!1).map(({path:n})=>n)),rA=z(ba,e=>e.length>0),io=e=>z(Zr,n=>n.tabs.find(({path:t})=>t===e)),vg=(e,n="")=>z(io(e),t=>!t||!t.content||typeof t.content=="string"?t==null?void 0:t.content:Ke.get(t.content,n)),nA=e=>z(io(e),n=>n==null?void 0:n.extra),aA=(e,n=t=>t)=>z(vg(e,"components"),t=>n(t||{})),Mc=z(ba,e=>e.filter(n=>n.flags.touched)),oA=z(Mc,e=>e.length),sA=z(jt,e=>e.map(({threadId:n,currentStackFrame:{source:t},tabPath:a})=>({name:Dh(n,t),path:a,type:E.FileFolderType.DEBUGGER,content:t==null?void 0:t.content,flags:{},extra:{source:t}}))),iA=z(e=>e,e=>e.explorer||[]),yg=z(e=>e,e=>e.explorer.find(n=>n.path===E.FolderRootPath.WEBFORMS)),mg=z(e=>e,e=>e.explorer.find(n=>n.path===E.FolderRootPath.METHODS)),bg=z(e=>e,e=>e.explorer.find(n=>n.path===E.FolderRootPath.CLASSES)),uA=z(mg,e=>(e==null?void 0:e.children)||[]),cA=z(yg,e=>(e==null?void 0:e.children)||[]),lA=z(bg,e=>(e==null?void 0:e.children)||[]),fA=z(e=>e.modals,e=>e.list),dA=z(e=>e.roles,e=>Ks(e)),pA=z(e=>e.roles,({roles:e})=>e),hA=z(e=>e.roles,({privileges:e})=>e),gA=z(e=>e.roles,({privileges:e})=>Object.values(e).find(({privilege:n})=>n==="guest")),vA=z(e=>e.roles,({flags:e})=>e),yA=z(e=>e.roles,({selectedTab:e})=>e),mA=z(e=>e.roles,({forceLogin:e})=>e),bA=z(e=>e.roles,({date:e})=>e),Nc=z(e=>e.settings,e=>e.session),_A=(...e)=>z(Nc,n=>e.length>0?Ke.pick(n,e):n),EA=z(e=>e.settings,e=>e.project),SA=z(e=>e.settings,e=>e),Lc=z(e=>e.settings,e=>e.server),wA=z(Lc,e=>e.remoteDebuggerMode),TA=z(Lc,e=>e.qodly),CA=z(Nc,e=>e["monaco.zoom"]),_g=["rounded-full","rounded-lg","border-gray-400","border-2","bg-red-500","bg-blue-500","bg-indigo-500","bg-transparent","bg-primary-dark","bg-green-500","bg-yellow-400","text-gray-500","text-4xl","text-white","px-4","py-2","primary","info","secondary","success","warning","danger","w-10","w-20","w-40","w-60","w-80","mb-2","mb-3","shadow","shadow-lg","shadow-xl","shadow-2xl"],Eg=_g.map(e=>({id:wc(),content:"",name:e,parentId:null,scope:E.EWebFormStyleClassScope.THEME})),jc=e=>z(io(e),n=>{var t,a;return((a=(t=n==null?void 0:n.content)==null?void 0:t.metadata)==null?void 0:a.styles)||[]}),xA=(e,n)=>z(jc(e),t=>n.map(a=>{switch(!0){case a===E.EWebFormStyleClassScope.LOCAL:return t.map(s=>({...s,scope:E.EWebFormStyleClassScope.LOCAL}));case a===E.EWebFormStyleClassScope.THEME:return Eg;default:return[]}}).flat()),RA=e=>z(jc(e),n=>[...n.map(t=>({...t,scope:E.EWebFormStyleClassScope.LOCAL})),...Eg]),OA=z(e=>e,e=>{var n;return[...(((n=e.sharedCSS)==null?void 0:n.styles)||[]).map(t=>({...t,scope:E.EWebFormStyleClassScope.SHARED}))]}),AA=e=>z(io(e),n=>n==null?void 0:n.flags),uo=z(e=>e.webforms,e=>e),Sg=z(uo,e=>(e==null?void 0:e.components)||[]),Hs=z(uo,e=>e.inspector),PA=z(Hs,e=>e.css),DA=z(Hs,e=>e.datasource),wg=z(uo,e=>e.templates||{data:[]}),IA=z(wg,e=>e.data||[]),FA=e=>z(Sg,n=>n.find(t=>t.id===e)),$A=e=>z(Hs,n=>n[e]),MA=z(uo,e=>e.datasources.theme),NA=z(e=>e.catalog,e=>e.sharedDatasources,e=>e.sharedCSS,(e,n,t)=>[e.state,n.state,t.state].every(a=>["loaded","error"].includes(a)));var kc=(e=>(e.SHOW_AFTER_TIMEOUT="show_after_timeout",e.HIDE_AFTER_TIMEOUT="hide_after_timeout",e))(kc||{}),Bc=(e=>(e.AIRY="airy",e.COMPACT="neutral",e))(Bc||{}),rs,LA=new Uint8Array(16);function Tg(){if(!rs&&(rs=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!rs))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return rs(LA)}const jA=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Gs(e){return typeof e=="string"&&jA.test(e)}var wt=[];for(var Du=0;Du<256;++Du)wt.push((Du+256).toString(16).substr(1));function qs(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(wt[e[n+0]]+wt[e[n+1]]+wt[e[n+2]]+wt[e[n+3]]+"-"+wt[e[n+4]]+wt[e[n+5]]+"-"+wt[e[n+6]]+wt[e[n+7]]+"-"+wt[e[n+8]]+wt[e[n+9]]+"-"+wt[e[n+10]]+wt[e[n+11]]+wt[e[n+12]]+wt[e[n+13]]+wt[e[n+14]]+wt[e[n+15]]).toLowerCase();if(!Gs(t))throw TypeError("Stringified UUID is invalid");return t}var Np,Iu,Fu=0,$u=0;function kA(e,n,t){var a=n&&t||0,s=n||new Array(16);e=e||{};var i=e.node||Np,c=e.clockseq!==void 0?e.clockseq:Iu;if(i==null||c==null){var l=e.random||(e.rng||Tg)();i==null&&(i=Np=[l[0]|1,l[1],l[2],l[3],l[4],l[5]]),c==null&&(c=Iu=(l[6]<<8|l[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),p=e.nsecs!==void 0?e.nsecs:$u+1,h=d-Fu+(p-$u)/1e4;if(h<0&&e.clockseq===void 0&&(c=c+1&16383),(h<0||d>Fu)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Fu=d,$u=p,Iu=c,d+=122192928e5;var b=((d&268435455)*1e4+p)%4294967296;s[a++]=b>>>24&255,s[a++]=b>>>16&255,s[a++]=b>>>8&255,s[a++]=b&255;var _=d/4294967296*1e4&268435455;s[a++]=_>>>8&255,s[a++]=_&255,s[a++]=_>>>24&15|16,s[a++]=_>>>16&255,s[a++]=c>>>8|128,s[a++]=c&255;for(var S=0;S<6;++S)s[a+S]=i[S];return n||qs(s)}function Cg(e){if(!Gs(e))throw TypeError("Invalid UUID");var n,t=new Uint8Array(16);return t[0]=(n=parseInt(e.slice(0,8),16))>>>24,t[1]=n>>>16&255,t[2]=n>>>8&255,t[3]=n&255,t[4]=(n=parseInt(e.slice(9,13),16))>>>8,t[5]=n&255,t[6]=(n=parseInt(e.slice(14,18),16))>>>8,t[7]=n&255,t[8]=(n=parseInt(e.slice(19,23),16))>>>8,t[9]=n&255,t[10]=(n=parseInt(e.slice(24,36),16))/1099511627776&255,t[11]=n/4294967296&255,t[12]=n>>>24&255,t[13]=n>>>16&255,t[14]=n>>>8&255,t[15]=n&255,t}function BA(e){e=unescape(encodeURIComponent(e));for(var n=[],t=0;t<e.length;++t)n.push(e.charCodeAt(t));return n}var WA="6ba7b810-9dad-11d1-80b4-00c04fd430c8",UA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function xg(e,n,t){function a(s,i,c,l){if(typeof s=="string"&&(s=BA(s)),typeof i=="string"&&(i=Cg(i)),i.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var d=new Uint8Array(16+s.length);if(d.set(i),d.set(s,i.length),d=t(d),d[6]=d[6]&15|n,d[8]=d[8]&63|128,c){l=l||0;for(var p=0;p<16;++p)c[l+p]=d[p];return c}return qs(d)}try{a.name=e}catch{}return a.DNS=WA,a.URL=UA,a}function HA(e){if(typeof e=="string"){var n=unescape(encodeURIComponent(e));e=new Uint8Array(n.length);for(var t=0;t<n.length;++t)e[t]=n.charCodeAt(t)}return GA(qA(YA(e),e.length*8))}function GA(e){for(var n=[],t=e.length*32,a="0123456789abcdef",s=0;s<t;s+=8){var i=e[s>>5]>>>s%32&255,c=parseInt(a.charAt(i>>>4&15)+a.charAt(i&15),16);n.push(c)}return n}function Rg(e){return(e+64>>>9<<4)+14+1}function qA(e,n){e[n>>5]|=128<<n%32,e[Rg(n)-1]=n;for(var t=1732584193,a=-271733879,s=-1732584194,i=271733878,c=0;c<e.length;c+=16){var l=t,d=a,p=s,h=i;t=xt(t,a,s,i,e[c],7,-680876936),i=xt(i,t,a,s,e[c+1],12,-389564586),s=xt(s,i,t,a,e[c+2],17,606105819),a=xt(a,s,i,t,e[c+3],22,-1044525330),t=xt(t,a,s,i,e[c+4],7,-176418897),i=xt(i,t,a,s,e[c+5],12,1200080426),s=xt(s,i,t,a,e[c+6],17,-1473231341),a=xt(a,s,i,t,e[c+7],22,-45705983),t=xt(t,a,s,i,e[c+8],7,1770035416),i=xt(i,t,a,s,e[c+9],12,-1958414417),s=xt(s,i,t,a,e[c+10],17,-42063),a=xt(a,s,i,t,e[c+11],22,-1990404162),t=xt(t,a,s,i,e[c+12],7,1804603682),i=xt(i,t,a,s,e[c+13],12,-40341101),s=xt(s,i,t,a,e[c+14],17,-1502002290),a=xt(a,s,i,t,e[c+15],22,1236535329),t=Rt(t,a,s,i,e[c+1],5,-165796510),i=Rt(i,t,a,s,e[c+6],9,-1069501632),s=Rt(s,i,t,a,e[c+11],14,643717713),a=Rt(a,s,i,t,e[c],20,-373897302),t=Rt(t,a,s,i,e[c+5],5,-701558691),i=Rt(i,t,a,s,e[c+10],9,38016083),s=Rt(s,i,t,a,e[c+15],14,-660478335),a=Rt(a,s,i,t,e[c+4],20,-405537848),t=Rt(t,a,s,i,e[c+9],5,568446438),i=Rt(i,t,a,s,e[c+14],9,-1019803690),s=Rt(s,i,t,a,e[c+3],14,-187363961),a=Rt(a,s,i,t,e[c+8],20,1163531501),t=Rt(t,a,s,i,e[c+13],5,-1444681467),i=Rt(i,t,a,s,e[c+2],9,-51403784),s=Rt(s,i,t,a,e[c+7],14,1735328473),a=Rt(a,s,i,t,e[c+12],20,-1926607734),t=Ot(t,a,s,i,e[c+5],4,-378558),i=Ot(i,t,a,s,e[c+8],11,-2022574463),s=Ot(s,i,t,a,e[c+11],16,1839030562),a=Ot(a,s,i,t,e[c+14],23,-35309556),t=Ot(t,a,s,i,e[c+1],4,-1530992060),i=Ot(i,t,a,s,e[c+4],11,1272893353),s=Ot(s,i,t,a,e[c+7],16,-155497632),a=Ot(a,s,i,t,e[c+10],23,-1094730640),t=Ot(t,a,s,i,e[c+13],4,681279174),i=Ot(i,t,a,s,e[c],11,-358537222),s=Ot(s,i,t,a,e[c+3],16,-722521979),a=Ot(a,s,i,t,e[c+6],23,76029189),t=Ot(t,a,s,i,e[c+9],4,-640364487),i=Ot(i,t,a,s,e[c+12],11,-421815835),s=Ot(s,i,t,a,e[c+15],16,530742520),a=Ot(a,s,i,t,e[c+2],23,-995338651),t=At(t,a,s,i,e[c],6,-198630844),i=At(i,t,a,s,e[c+7],10,1126891415),s=At(s,i,t,a,e[c+14],15,-1416354905),a=At(a,s,i,t,e[c+5],21,-57434055),t=At(t,a,s,i,e[c+12],6,1700485571),i=At(i,t,a,s,e[c+3],10,-1894986606),s=At(s,i,t,a,e[c+10],15,-1051523),a=At(a,s,i,t,e[c+1],21,-2054922799),t=At(t,a,s,i,e[c+8],6,1873313359),i=At(i,t,a,s,e[c+15],10,-30611744),s=At(s,i,t,a,e[c+6],15,-1560198380),a=At(a,s,i,t,e[c+13],21,1309151649),t=At(t,a,s,i,e[c+4],6,-145523070),i=At(i,t,a,s,e[c+11],10,-1120210379),s=At(s,i,t,a,e[c+2],15,718787259),a=At(a,s,i,t,e[c+9],21,-343485551),t=dn(t,l),a=dn(a,d),s=dn(s,p),i=dn(i,h)}return[t,a,s,i]}function YA(e){if(e.length===0)return[];for(var n=e.length*8,t=new Uint32Array(Rg(n)),a=0;a<n;a+=8)t[a>>5]|=(e[a/8]&255)<<a%32;return t}function dn(e,n){var t=(e&65535)+(n&65535),a=(e>>16)+(n>>16)+(t>>16);return a<<16|t&65535}function zA(e,n){return e<<n|e>>>32-n}function Ys(e,n,t,a,s,i){return dn(zA(dn(dn(n,e),dn(a,i)),s),t)}function xt(e,n,t,a,s,i,c){return Ys(n&t|~n&a,e,n,s,i,c)}function Rt(e,n,t,a,s,i,c){return Ys(n&a|t&~a,e,n,s,i,c)}function Ot(e,n,t,a,s,i,c){return Ys(n^t^a,e,n,s,i,c)}function At(e,n,t,a,s,i,c){return Ys(t^(n|~a),e,n,s,i,c)}var VA=xg("v3",48,HA);const KA=VA;function JA(e,n,t){e=e||{};var a=e.random||(e.rng||Tg)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,n){t=t||0;for(var s=0;s<16;++s)n[t+s]=a[s];return n}return qs(a)}function XA(e,n,t,a){switch(e){case 0:return n&t^~n&a;case 1:return n^t^a;case 2:return n&t^n&a^t&a;case 3:return n^t^a}}function Mu(e,n){return e<<n|e>>>32-n}function ZA(e){var n=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var a=unescape(encodeURIComponent(e));e=[];for(var s=0;s<a.length;++s)e.push(a.charCodeAt(s))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,c=Math.ceil(i/16),l=new Array(c),d=0;d<c;++d){for(var p=new Uint32Array(16),h=0;h<16;++h)p[h]=e[d*64+h*4]<<24|e[d*64+h*4+1]<<16|e[d*64+h*4+2]<<8|e[d*64+h*4+3];l[d]=p}l[c-1][14]=(e.length-1)*8/Math.pow(2,32),l[c-1][14]=Math.floor(l[c-1][14]),l[c-1][15]=(e.length-1)*8&4294967295;for(var b=0;b<c;++b){for(var _=new Uint32Array(80),S=0;S<16;++S)_[S]=l[b][S];for(var T=16;T<80;++T)_[T]=Mu(_[T-3]^_[T-8]^_[T-14]^_[T-16],1);for(var x=t[0],F=t[1],D=t[2],W=t[3],$=t[4],j=0;j<80;++j){var A=Math.floor(j/20),K=Mu(x,5)+XA(A,F,D,W)+$+n[A]+_[j]>>>0;$=W,W=D,D=Mu(F,30)>>>0,F=x,x=K}t[0]=t[0]+x>>>0,t[1]=t[1]+F>>>0,t[2]=t[2]+D>>>0,t[3]=t[3]+W>>>0,t[4]=t[4]+$>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,t[0]&255,t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,t[1]&255,t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,t[2]&255,t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,t[3]&255,t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,t[4]&255]}var QA=xg("v5",80,ZA);const eP=QA,tP="00000000-0000-0000-0000-000000000000";function rP(e){if(!Gs(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const nP=Object.freeze(Object.defineProperty({__proto__:null,NIL:tP,parse:Cg,stringify:qs,v1:kA,v3:KA,v4:JA,v5:eP,validate:Gs,version:rP},Symbol.toStringTag,{value:"Module"})),aP=QS(nP);function Wc(e,n){if(!e||!n||!e.length||!n.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=n}Wc.prototype.convert=function(e){var n,t,a,s={},i=this.srcAlphabet.length,c=this.dstAlphabet.length,l=e.length,d=typeof e=="string"?"":[];if(!this.isValid(e))throw new Error('Number "'+e+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return e;for(n=0;n<l;n++)s[n]=this.srcAlphabet.indexOf(e[n]);do{for(t=0,a=0,n=0;n<l;n++)t=t*i+s[n],t>=c?(s[a++]=parseInt(t/c,10),t=t%c):a>0&&(s[a++]=0);l=a,d=this.dstAlphabet.slice(t,t+1).concat(d)}while(a!==0);return d};Wc.prototype.isValid=function(e){for(var n=0;n<e.length;++n)if(this.srcAlphabet.indexOf(e[n])===-1)return!1;return!0};var oP=Wc,sP=oP;function co(e,n){var t=new sP(e,n);return function(a){return t.convert(a)}}co.BIN="01";co.OCT="01234567";co.DEC="0123456789";co.HEX="0123456789abcdef";var iP=co;const{v4:Nu}=aP,ns=iP,Lu="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uP="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",cP={consistentLength:!0};let ju;const Lp=(e,n,t)=>{const a=n(e.toLowerCase().replace(/-/g,""));return!t||!t.consistentLength?a:a.padStart(t.shortIdLength,t.paddingChar)},lP=(e,n)=>{const a=n(e).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[a[1],a[2],a[3],a[4],a[5]].join("-")},fP=e=>Math.ceil(Math.log(2**128)/Math.log(e));var Cs=(()=>{const e=(n,t)=>{const a=n||Lu,s={...cP,...t};if([...new Set(Array.from(a))].length!==a.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const i=fP(a.length),c={shortIdLength:i,consistentLength:s.consistentLength,paddingChar:a[0]},l=ns(ns.HEX,a),d=ns(a,ns.HEX),p=()=>Lp(Nu(),l,c),h={new:p,generate:p,uuid:Nu,fromUUID:b=>Lp(b,l,c),toUUID:b=>lP(b,d),alphabet:a,maxLength:i};return Object.freeze(h),h};return e.constants={flickrBase58:Lu,cookieBase90:uP},e.uuid=Nu,e.generate=()=>(ju||(ju=e(Lu).generate),ju()),e})(),Me=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e))(Me||{});const dP=[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE,Me.METHOD],xs="guest",Uc=[{key:"read",label:"Read",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE]},{key:"create",label:"Create",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE]},{key:"update",label:"Update",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE]},{key:"drop",label:"Delete",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE]},{key:"describe",label:"Describe",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE,Me.METHOD]},{key:"execute",label:"Execute",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.METHOD]},{key:"promote",label:"Promote",canApplyTo:[Me.METHOD]}];function cr(e,...n){return Array.from(new Set([...e,...n]))}function Og(e){const n={},t=new Map;e.forEach(d=>{const p=d.id||Cs.generate();n[p]={...d,id:p,parents:[],includes:cr(d.includes||[]),resources:[]},t.set(d.privilege,p)}),Object.entries(n).forEach(([d,p])=>{const h=p.includes.map(b=>{const _=t.get(b);return _?(n[_].parents=cr(n[_].parents,_),_):""}).filter(Boolean);n[d]={...p,includes:h}});const a=Ag(n),s=new Set;function i(d){s.add(d.id),d.includes=d.includes.filter(p=>!s.has(p))}if(a.forEach(i),a.forEach(d=>d.parents=[]),a.forEach(d=>{d.includes.forEach(p=>n[p].parents.push(d.id))}),Object.values(n).find(({privilege:d})=>d===xs))return n;const l=Cs.generate();return{[l]:{id:l,privilege:xs,includes:[],parents:[],resources:[]},...n}}function Ag(e){return Object.values(e).sort((n,t)=>n.parents.length-t.parents.length)}function zs(e,n){const t=n[e];let a=[];return t&&t.parents.forEach(s=>{a=cr(a,...zs(s,n),s)}),a}function Rs(e,n){const t=n[e];let a=[];return t&&t.includes.forEach(s=>{a=cr(a,...Rs(s,n),s)}),a}function pP(e,n){const t=n[e];if(!t)return[];const a=[e,...zs(e,n),...t.includes];return Object.keys(n).filter(s=>!a.includes(s))}function hP(e,n){return n[e]?Object.keys(n).reduce((a,s)=>s===e?a:{...a,[s]:{...n[s],parents:n[s].parents.filter(i=>i!==e),includes:n[s].includes.filter(i=>i!==e)}},{}):n}function gP(e,n,t){const a=t[e],s=t[n];return!a||!s?t:{...t,[e]:{...t[e],includes:cr(a.includes,n)},[n]:{...t[n],parents:cr(s.parents,e)}}}function vP(e,n,t){const a=t[e],s=t[n];return!a||!s?t:{...t,[e]:{...t[e],includes:t[e].includes.filter(i=>i!==n)},[n]:{...t[n],parents:t[n].parents.filter(i=>i!==e)}}}function Pg(e,n){E.validateName(e),Object.entries(n).forEach(([,{privilege:a}])=>{if(e.toLowerCase()===a.toLowerCase())throw new Error(`There's already a Privilege with the name ${e}`)});const t=Cs.generate();return{[t]:{id:t,privilege:e,includes:[],parents:[],resources:[]},...n}}function yP(e,n,t,a,s){let i=Pg(e,s);const c=Object.entries(i).find(([,l])=>l.privilege===e);return c?(i=$g(c[1].id,n,t,a,i),i):s}function mP(e,n,t){if(!e)throw new Error("Please enter a name");if(!t[n])throw new Error("Invalid privilege");return Object.entries(t).forEach(([,{privilege:a,id:s}])=>{if(e.toLowerCase()===a.toLowerCase()&&n!==s)throw new Error(`There's already a Privilege with the name ${e}`)}),{...t,[n]:{...t[n],privilege:e}}}function bP(e,n){return e.map(t=>Qr(t,n))}function Qr(e,n){return n[e]?n[e]:null}function Dg({applyTo:e,type:n,...t}){return Object.entries(t).reduce((a,[s,i])=>{const c=Ke.find(Uc,["key",s]);return!c||!c.canApplyTo.includes(n)||(typeof i=="string"?i.split(","):i).forEach(d=>{a[d]=cr(a[d]||[],s)}),a},{})}const ic=(e,n=!1)=>["read","create","update","delete"].includes(e.toLowerCase())?`All ${n?"dataclasses and ":""}attributes have the '${e.toLowerCase()}' permission`:e.toLowerCase()==="execute"?`All functions defined ${n?"through the model (DataStore, Dataclasses, Entity selections, Entities) have the execute permission":"on this Dataclass, Entity selection class, Entity class have the execute permission"}`:`All ${n?"dataclasses, ":""}attributes and functions have the '${e.toLowerCase()}' permission`;function Hc(e){return{permissions:Uc.filter(({canApplyTo:n})=>n.includes(e.type)).map(({key:n,label:t})=>{const a={name:n,from:[]};switch(e.type){case Me.DATASTORE:return{...a,info:ic(t,!0)};case Me.DATACLASS:return{...a,info:ic(t)};default:return a}}),resource:e.applyTo,type:e.type}}function Ig(e,n){const t=Fg(n),a={};return e.filter(({type:s})=>dP.includes(s)).forEach(s=>{const i=Dg(s);Object.entries(i).forEach(([c,l])=>{var h;const d=(h=t[c])==null?void 0:h.id;if(!d)return;a[d]=a[d]||{...n[d]};let p=Ke.find(a[d].resources,{resource:s.applyTo,type:s.type});p||(p=Hc(s),a[d].resources.push(p)),p.permissions=p.permissions.map(b=>({...b,checked:b.checked||l.includes(b.name)}))})}),{...n,...a}}function Fg(e){return Object.values(e).reduce((n,t)=>({...n,[t.privilege]:t}),{})}function Vs(e){var t;const n=Og(e.privileges||[]);return{forceLogin:e==null?void 0:e.forceLogin,privileges:Ig(((t=e.permissions)==null?void 0:t.allowed)||[],n),roles:(e.roles||[]).map(({id:a=Cs.generate(),role:s,privileges:i=[]})=>({id:a,role:s,privileges:cr(i).map(c=>{var l;return(l=Object.values(n).find(({privilege:d})=>d===c))==null?void 0:l.id}).filter(Boolean)})).reduce((a,s)=>({...a,[s.id]:{...s}}),{})}}function Ks(e){const n=Object.values(e.privileges).filter(({includes:a})=>a.length===0).map(({id:a})=>a),t=[...n,...n.map(a=>zs(a,e.privileges).reverse())].flat().filter((a,s,i)=>i.indexOf(a)===s).map(a=>e.privileges[a]);return{forceLogin:e.forceLogin,permissions:{allowed:Object.values(e.privileges).reduce((a,s)=>(s.resources.forEach(({permissions:i,resource:c,type:l})=>{let d=Ke.find(a,{applyTo:c,type:l});d||(d={applyTo:c,type:l},a.push(d)),i.forEach(({name:p,checked:h})=>{h&&d&&(d[p]=d[p]||[],d[p].push(s.privilege))})}),a),[])},privileges:t.filter(({privilege:a})=>a!==xs).map(({id:a,includes:s,privilege:i})=>({id:a,privilege:i,includes:s.map(c=>e.privileges[c].privilege)})),roles:Object.values(e.roles).map(a=>({...a,privileges:a.privileges.map(s=>{var i;return(i=e.privileges[s])==null?void 0:i.privilege}).filter(Boolean)}))}}function _P(e,n){const t=n[e],a={children:[],links:[],parents:[],selected:e};if(!t)return a;function s(l,d,p=[]){const h=l.reduce((b,_)=>[...b,...n[_][d]],[]);return h.length===0?p:(p.push(h),s(h,d,p))}function i(l){const d=[],p=[];for(let h=l.length-1;h>=0;h-=1){const b=l[h].filter(_=>d.includes(_)?!1:(d.push(_),!0));b.length>0&&p.unshift(cr(b))}return p}function c(l,d){const p=[];return l.reduce((h,b)=>(b.forEach(_=>{n[_][d==="parents"?"includes":"parents"].forEach(T=>{p.includes(T)&&h.push(d==="parents"?{source:_,target:T}:{source:T,target:_})}),p.push(_)}),h),[])}return a.children=s([e],"includes"),a.children=i(a.children),a.parents=s([e],"parents"),a.parents=i(a.parents),a.links=[...c([[e],...a.parents],"parents"),...c([[e],...a.children],"includes")],a}function EP(e,n,t){const a=Qr(e,t);if(!a||Ke.find(a.resources,{resource:n.applyTo,type:n.type}))return t;const s={...a,resources:[...a.resources,Hc(n)]};return{...t,[e]:s}}function SP(e,n,t){const a=Qr(e,t);if(!a)return t;const s={...a,resources:a.resources.filter(({resource:i,type:c})=>i!==n.applyTo||c!==n.type)};return{...t,[e]:s}}function wP(e,n){const t=Qr(e,n);if(!t)return n;const a={...t,resources:t.resources.filter(s=>s.permissions.some(i=>i.from.length)).map(s=>({...s,permissions:s.permissions.map(i=>({...i,checked:!1}))}))};return{...n,[e]:a}}function $g(e,n,t,a,s){const i=Qr(e,s);if(!i)return s;const l=Ke.find(i.resources,{type:t,resource:n})?{...i,resources:i.resources.map(d=>d.type===t&&d.resource===n?{...d,permissions:d.permissions.map(p=>p.name===a?{...p,checked:!p.checked,from:[]}:p)}:d)}:{...i,resources:[...i.resources,{type:t,resource:n,permissions:Uc.filter(d=>d.canApplyTo.includes(t)).map(d=>({from:[],name:d.key,checked:d.key===a,info:ic(d.key,t===Me.DATASTORE)}))}]};return{...s,[e]:l}}function TP(e,n,t,a){const s=Qr(e,a);if(!s)return a;const c=Ke.find(s.resources,{type:n.type,resource:n.resource})?{...s,resources:s.resources.map(l=>l.type===n.type&&l.resource===n.resource?{...l,permissions:n.permissions.map(d=>d.name===t.name?{...d,checked:!d.checked,from:[]}:d)}:l)}:{...s,resources:[...s.resources,{...n,permissions:n.permissions.map(l=>({...l,checked:t.name===l.name,from:[]}))}]};return{...a,[e]:c}}function CP(e,n){var d;const t=Mg(e,n)||[],a=((d=Qr(e,n))==null?void 0:d.resources)||[],c=([...t,...a].filter(({type:p})=>p===Me.METHOD)||[]).map(({resource:p})=>p);return Object.entries(n).reduce((p,[h,{resources:b}])=>(b.filter(({resource:_,type:S})=>S===Me.METHOD&&c.includes(_)).forEach(({permissions:_,resource:S})=>{var x;((x=_.find(({name:F})=>F==="promote"))==null?void 0:x.checked)&&(p[S]=cr(p[S]||[],h))}),p),{})}function Mg(e,n){var c;const t=Qr(e,n);if(!t)return[];const a=(c=Object.values(n).find(l=>l.privilege===xs))==null?void 0:c.id;return(a&&a!==e?cr(Rs(e,n),a):Rs(e,n)).reduce((l,d)=>(n[d].resources.forEach(h=>{if(h.permissions.filter(({checked:S})=>S).length===0)return;const _=Ke.find(l,{type:h.type,resource:h.resource});if(!_){l.push({...h,permissions:h.permissions.map(S=>({...S,from:S.checked?[d]:[],checked:!1}))});return}_.permissions=_.permissions.map((S,T)=>{let{from:x=[]}=S;return h.permissions[T].checked&&!x.includes(d)&&(x=[...x,d]),{...S,from:x,checked:S.checked}})}),l),Ke.clone(t.resources.map(l=>({...l,permissions:l.permissions.map(({checked:d,...p})=>({...p,checked:!!d}))}))))}const xP=e=>e.reduce((n,t)=>({...n,[t.id]:{...t}}),{}),RP=(e,n)=>n[e]?Object.values(n).reduce((t,a)=>e===a.id||a.role===""?t:{...t,[a.id]:a},{}):n,OP=(e,n,t)=>t[e]?Object.values(t).reduce((a,s)=>e===s.id?{...a,[s.id]:{...s,name:n}}:{...a,[s.id]:s},{}):t,AP=(e,n)=>{const t={id:e,role:"",privileges:[]};return{...n,[t.id]:t}},PP=(e,n)=>{if(E.validateName(e.role),Object.values(n).find(a=>a.role===e.role))throw new Error(`a role with the name ${e.role} already exists`);return Object.values(n).reduce((a,s)=>e.id===s.id?{...a,[e.id]:e}:{...a,[s.id]:s},{})},DP={list:[]},jp=(e,n)=>e.list.filter(t=>t.id!==n),Ng=lr({name:"modals",initialState:DP,reducers:{createModal:(e,n)=>{e.list.push(n.payload)},editModal:(e,n)=>{const{id:t,...a}=n.payload,s=e.list.find(E.byId(t));s&&Object.assign(s,{...a})},removeModal:(e,n)=>{const t=n.payload;e.list=jp(e,t)},closeModal:(e,n)=>{const{id:t,reason:a}=n.payload;if(a){const s=e.list.find(i=>i.id===t);s&&(s.closeReason=a,s.isOpen=!1)}else e.list=jp(e,t)}}}),{createModal:Lg,removeModal:jg,closeModal:IP,editModal:FP}=Ng.actions;var uc={exports:{}},oa={};/*
|
|
91
|
+
object-assign
|
|
92
|
+
(c) Sindre Sorhus
|
|
93
|
+
@license MIT
|
|
94
|
+
*/var ku,kp;function kg(){if(kp)return ku;kp=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function a(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function s(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var c={},l=0;l<10;l++)c["_"+String.fromCharCode(l)]=l;var d=Object.getOwnPropertyNames(c).map(function(h){return c[h]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(h){p[h]=h}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ku=s()?Object.assign:function(i,c){for(var l,d=a(i),p,h=1;h<arguments.length;h++){l=Object(arguments[h]);for(var b in l)n.call(l,b)&&(d[b]=l[b]);if(e){p=e(l);for(var _=0;_<p.length;_++)t.call(l,p[_])&&(d[p[_]]=l[p[_]])}}return d},ku}/** @license React v17.0.2
|
|
95
|
+
* react-jsx-runtime.production.min.js
|
|
96
|
+
*
|
|
97
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the MIT license found in the
|
|
100
|
+
* LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/var Bp;function $P(){if(Bp)return oa;Bp=1,kg();var e=dt,n=60103;if(oa.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var t=Symbol.for;n=t("react.element"),oa.Fragment=t("react.fragment")}var a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,i={key:!0,ref:!0,__self:!0,__source:!0};function c(l,d,p){var h,b={},_=null,S=null;p!==void 0&&(_=""+p),d.key!==void 0&&(_=""+d.key),d.ref!==void 0&&(S=d.ref);for(h in d)s.call(d,h)&&!i.hasOwnProperty(h)&&(b[h]=d[h]);if(l&&l.defaultProps)for(h in d=l.defaultProps,d)b[h]===void 0&&(b[h]=d[h]);return{$$typeof:n,type:l,key:_,ref:S,props:b,_owner:a.current}}return oa.jsx=c,oa.jsxs=c,oa}var Wp={};/** @license React v17.0.2
|
|
102
|
+
* react-jsx-runtime.development.js
|
|
103
|
+
*
|
|
104
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
105
|
+
*
|
|
106
|
+
* This source code is licensed under the MIT license found in the
|
|
107
|
+
* LICENSE file in the root directory of this source tree.
|
|
108
|
+
*/var Up;function MP(){return Up||(Up=1,function(e){process.env.NODE_ENV!=="production"&&function(){var n=dt,t=kg(),a=60103,s=60106;e.Fragment=60107;var i=60108,c=60114,l=60109,d=60110,p=60112,h=60113,b=60120,_=60115,S=60116,T=60121,x=60122,F=60117,D=60129,W=60131;if(typeof Symbol=="function"&&Symbol.for){var $=Symbol.for;a=$("react.element"),s=$("react.portal"),e.Fragment=$("react.fragment"),i=$("react.strict_mode"),c=$("react.profiler"),l=$("react.provider"),d=$("react.context"),p=$("react.forward_ref"),h=$("react.suspense"),b=$("react.suspense_list"),_=$("react.memo"),S=$("react.lazy"),T=$("react.block"),x=$("react.server.block"),F=$("react.fundamental"),$("react.scope"),$("react.opaque.id"),D=$("react.debug_trace_mode"),$("react.offscreen"),W=$("react.legacy_hidden")}var j=typeof Symbol=="function"&&Symbol.iterator,A="@@iterator";function K(g){if(g===null||typeof g!="object")return null;var R=j&&g[j]||g[A];return typeof R=="function"?R:null}var G=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Y(g){{for(var R=arguments.length,I=new Array(R>1?R-1:0),q=1;q<R;q++)I[q-1]=arguments[q];ie("error",g,I)}}function ie(g,R,I){{var q=G.ReactDebugCurrentFrame,ae=q.getStackAddendum();ae!==""&&(R+="%s",I=I.concat([ae]));var oe=I.map(function(ee){return""+ee});oe.unshift("Warning: "+R),Function.prototype.apply.call(console[g],console,oe)}}var We=!1;function Oe(g){return!!(typeof g=="string"||typeof g=="function"||g===e.Fragment||g===c||g===D||g===i||g===h||g===b||g===W||We||typeof g=="object"&&g!==null&&(g.$$typeof===S||g.$$typeof===_||g.$$typeof===l||g.$$typeof===d||g.$$typeof===p||g.$$typeof===F||g.$$typeof===T||g[0]===x))}function st(g,R,I){var q=R.displayName||R.name||"";return g.displayName||(q!==""?I+"("+q+")":I)}function Z(g){return g.displayName||"Context"}function we(g){if(g==null)return null;if(typeof g.tag=="number"&&Y("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case e.Fragment:return"Fragment";case s:return"Portal";case c:return"Profiler";case i:return"StrictMode";case h:return"Suspense";case b:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case d:var R=g;return Z(R)+".Consumer";case l:var I=g;return Z(I._context)+".Provider";case p:return st(g,g.render,"ForwardRef");case _:return we(g.type);case T:return we(g._render);case S:{var q=g,ae=q._payload,oe=q._init;try{return we(oe(ae))}catch{return null}}}return null}var Xe=0,Ze,Ue,et,Dt,H,V,ve;function he(){}he.__reactDisabledLog=!0;function le(){{if(Xe===0){Ze=console.log,Ue=console.info,et=console.warn,Dt=console.error,H=console.group,V=console.groupCollapsed,ve=console.groupEnd;var g={configurable:!0,enumerable:!0,value:he,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}Xe++}}function ye(){{if(Xe--,Xe===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:t({},g,{value:Ze}),info:t({},g,{value:Ue}),warn:t({},g,{value:et}),error:t({},g,{value:Dt}),group:t({},g,{value:H}),groupCollapsed:t({},g,{value:V}),groupEnd:t({},g,{value:ve})})}Xe<0&&Y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var se=G.ReactCurrentDispatcher,fe;function ue(g,R,I){{if(fe===void 0)try{throw Error()}catch(ae){var q=ae.stack.trim().match(/\n( *(at )?)/);fe=q&&q[1]||""}return`
|
|
109
|
+
`+fe+g}}var me=!1,ge;{var J=typeof WeakMap=="function"?WeakMap:Map;ge=new J}function N(g,R){if(!g||me)return"";{var I=ge.get(g);if(I!==void 0)return I}var q;me=!0;var ae=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var oe;oe=se.current,se.current=null,le();try{if(R){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(ut){q=ut}Reflect.construct(g,[],ee)}else{try{ee.call()}catch(ut){q=ut}g.call(ee.prototype)}}else{try{throw Error()}catch(ut){q=ut}g()}}catch(ut){if(ut&&q&&typeof ut.stack=="string"){for(var Q=ut.stack.split(`
|
|
110
|
+
`),Ie=q.stack.split(`
|
|
111
|
+
`),be=Q.length-1,Ee=Ie.length-1;be>=1&&Ee>=0&&Q[be]!==Ie[Ee];)Ee--;for(;be>=1&&Ee>=0;be--,Ee--)if(Q[be]!==Ie[Ee]){if(be!==1||Ee!==1)do if(be--,Ee--,Ee<0||Q[be]!==Ie[Ee]){var at=`
|
|
112
|
+
`+Q[be].replace(" at new "," at ");return typeof g=="function"&&ge.set(g,at),at}while(be>=1&&Ee>=0);break}}}finally{me=!1,se.current=oe,ye(),Error.prepareStackTrace=ae}var Ft=g?g.displayName||g.name:"",xn=Ft?ue(Ft):"";return typeof g=="function"&&ge.set(g,xn),xn}function Ge(g,R,I){return N(g,!1)}function qe(g){var R=g.prototype;return!!(R&&R.isReactComponent)}function it(g,R,I){if(g==null)return"";if(typeof g=="function")return N(g,qe(g));if(typeof g=="string")return ue(g);switch(g){case h:return ue("Suspense");case b:return ue("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case p:return Ge(g.render);case _:return it(g.type,R,I);case T:return Ge(g._render);case S:{var q=g,ae=q._payload,oe=q._init;try{return it(oe(ae),R,I)}catch{}}}return""}var vn={},It=G.ReactDebugCurrentFrame;function er(g){if(g){var R=g._owner,I=it(g.type,g._source,R?R.type:null);It.setExtraStackFrame(I)}else It.setExtraStackFrame(null)}function _a(g,R,I,q,ae){{var oe=Function.call.bind(Object.prototype.hasOwnProperty);for(var ee in g)if(oe(g,ee)){var Q=void 0;try{if(typeof g[ee]!="function"){var Ie=Error((q||"React class")+": "+I+" type `"+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[ee]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ie.name="Invariant Violation",Ie}Q=g[ee](R,ee,q,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(be){Q=be}Q&&!(Q instanceof Error)&&(er(ae),Y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",q||"React class",I,ee,typeof Q),er(null)),Q instanceof Error&&!(Q.message in vn)&&(vn[Q.message]=!0,er(ae),Y("Failed %s type: %s",I,Q.message),er(null))}}}var bt=G.ReactCurrentOwner,pt=Object.prototype.hasOwnProperty,Ir={key:!0,ref:!0,__self:!0,__source:!0},wr,yn,qt;qt={};function Ea(g){if(pt.call(g,"ref")){var R=Object.getOwnPropertyDescriptor(g,"ref").get;if(R&&R.isReactWarning)return!1}return g.ref!==void 0}function Fr(g){if(pt.call(g,"key")){var R=Object.getOwnPropertyDescriptor(g,"key").get;if(R&&R.isReactWarning)return!1}return g.key!==void 0}function Tr(g,R){if(typeof g.ref=="string"&&bt.current&&R&&bt.current.stateNode!==R){var I=we(bt.current.type);qt[I]||(Y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',we(bt.current.type),g.ref),qt[I]=!0)}}function mn(g,R){{var I=function(){wr||(wr=!0,Y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",R))};I.isReactWarning=!0,Object.defineProperty(g,"key",{get:I,configurable:!0})}}function bn(g,R){{var I=function(){yn||(yn=!0,Y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",R))};I.isReactWarning=!0,Object.defineProperty(g,"ref",{get:I,configurable:!0})}}var _n=function(g,R,I,q,ae,oe,ee){var Q={$$typeof:a,type:g,key:R,ref:I,props:ee,_owner:oe};return Q._store={},Object.defineProperty(Q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Q,"_self",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.defineProperty(Q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ae}),Object.freeze&&(Object.freeze(Q.props),Object.freeze(Q)),Q};function En(g,R,I,q,ae){{var oe,ee={},Q=null,Ie=null;I!==void 0&&(Q=""+I),Fr(R)&&(Q=""+R.key),Ea(R)&&(Ie=R.ref,Tr(R,ae));for(oe in R)pt.call(R,oe)&&!Ir.hasOwnProperty(oe)&&(ee[oe]=R[oe]);if(g&&g.defaultProps){var be=g.defaultProps;for(oe in be)ee[oe]===void 0&&(ee[oe]=be[oe])}if(Q||Ie){var Ee=typeof g=="function"?g.displayName||g.name||"Unknown":g;Q&&mn(ee,Ee),Ie&&bn(ee,Ee)}return _n(g,Q,Ie,ae,q,bt.current,ee)}}var dr=G.ReactCurrentOwner,$r=G.ReactDebugCurrentFrame;function _t(g){if(g){var R=g._owner,I=it(g.type,g._source,R?R.type:null);$r.setExtraStackFrame(I)}else $r.setExtraStackFrame(null)}var pr;pr=!1;function hr(g){return typeof g=="object"&&g!==null&&g.$$typeof===a}function Sn(){{if(dr.current){var g=we(dr.current.type);if(g)return`
|
|
113
|
+
|
|
114
|
+
Check the render method of \``+g+"`."}return""}}function Sa(g){{if(g!==void 0){var R=g.fileName.replace(/^.*[\\\/]/,""),I=g.lineNumber;return`
|
|
115
|
+
|
|
116
|
+
Check your code at `+R+":"+I+"."}return""}}var wn={};function Wn(g){{var R=Sn();if(!R){var I=typeof g=="string"?g:g.displayName||g.name;I&&(R=`
|
|
117
|
+
|
|
118
|
+
Check the top-level render call using <`+I+">.")}return R}}function en(g,R){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var I=Wn(R);if(wn[I])return;wn[I]=!0;var q="";g&&g._owner&&g._owner!==dr.current&&(q=" It was passed a child from "+we(g._owner.type)+"."),_t(g),Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,q),_t(null)}}function Tn(g,R){{if(typeof g!="object")return;if(Array.isArray(g))for(var I=0;I<g.length;I++){var q=g[I];hr(q)&&en(q,R)}else if(hr(g))g._store&&(g._store.validated=!0);else if(g){var ae=K(g);if(typeof ae=="function"&&ae!==g.entries)for(var oe=ae.call(g),ee;!(ee=oe.next()).done;)hr(ee.value)&&en(ee.value,R)}}}function wa(g){{var R=g.type;if(R==null||typeof R=="string")return;var I;if(typeof R=="function")I=R.propTypes;else if(typeof R=="object"&&(R.$$typeof===p||R.$$typeof===_))I=R.propTypes;else return;if(I){var q=we(R);_a(I,g.props,"prop",q,g)}else if(R.PropTypes!==void 0&&!pr){pr=!0;var ae=we(R);Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ae||"Unknown")}typeof R.getDefaultProps=="function"&&!R.getDefaultProps.isReactClassApproved&&Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ta(g){{for(var R=Object.keys(g.props),I=0;I<R.length;I++){var q=R[I];if(q!=="children"&&q!=="key"){_t(g),Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",q),_t(null);break}}g.ref!==null&&(_t(g),Y("Invalid attribute `ref` supplied to `React.Fragment`."),_t(null))}}function Cn(g,R,I,q,ae,oe){{var ee=Oe(g);if(!ee){var Q="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(Q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ie=Sa(ae);Ie?Q+=Ie:Q+=Sn();var be;g===null?be="null":Array.isArray(g)?be="array":g!==void 0&&g.$$typeof===a?(be="<"+(we(g.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):be=typeof g,Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",be,Q)}var Ee=En(g,R,I,ae,oe);if(Ee==null)return Ee;if(ee){var at=R.children;if(at!==void 0)if(q)if(Array.isArray(at)){for(var Ft=0;Ft<at.length;Ft++)Tn(at[Ft],g);Object.freeze&&Object.freeze(at)}else Y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Tn(at,g)}return g===e.Fragment?Ta(Ee):wa(Ee),Ee}}function Un(g,R,I){return Cn(g,R,I,!0)}function Ca(g,R,I){return Cn(g,R,I,!1)}var xa=Ca,Ra=Un;e.jsx=xa,e.jsxs=Ra}()}(Wp)),Wp}process.env.NODE_ENV==="production"?uc.exports=$P():uc.exports=MP();var zr=uc.exports;const NP=e=>zr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zr.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 21c5.523 0 10-4.477 10-10S16.523 1 11 1 1 5.477 1 11s4.477 10 10 10Zm0-14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 1.5a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h.5v4h-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5H12V8.5Z",fill:"currentColor"})}),LP=e=>zr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[zr.jsx("path",{d:"M13 17.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-8a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v8ZM12 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z",fill:"currentColor"}),zr.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z",fill:"currentColor"})]}),jP=e=>zr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zr.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.076 2.203a.5.5 0 0 0-.354-.146H3.001a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V8.335a.5.5 0 0 0-.147-.354l-5.778-5.778ZM12 19.057a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-8-14.5a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-4Z",fill:"currentColor"})}),kP=e=>zr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zr.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.953 3.53c-.393-.707-1.513-.707-1.906 0L2.114 19.612c-.354.638.16 1.388.953 1.388h17.866c.792 0 1.307-.75.953-1.388L12.953 3.53ZM11.508 8a.504.504 0 0 0-.507.531l.491 8A.505.505 0 0 0 12 17c.269 0 .49-.205.508-.469l.492-8A.504.504 0 0 0 12.492 8h-.984ZM12 20c.561 0 1.016-.448 1.016-1s-.455-1-1.016-1c-.561 0-1.016.448-1.016 1s.455 1 1.016 1Z",fill:"currentColor"})}),BP={FdSave:jP,FdWarningDanger:kP,FdInfoCircle:LP,FdInfoBold:NP};var Gt=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(Gt||{}),Dr=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Dr||{}),Gc=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Gc||{});const fr=re("modals/open",async(e,{dispatch:n})=>{const{type:t=Gt.ALERT,store:a=Nv()}=e,s=wc();switch(n(Lg({id:s,type:t,isOpen:!0,...e})),t){case Gt.CONFIRM:return new Promise(i=>{const c=a.subscribe(()=>{var p;const{modals:l}=a.getState(),d=l.list.find(h=>h.id===s);if(d&&!d.isOpen){const h=d.closeReason===Gc.CONFIRMED,b=Ke.entries((p=d.views)==null?void 0:p.toggles).reduce((_,S)=>({..._,[S[0]]:S[1].value}),{});n(jg(s)),c(),i({confirmed:h,options:b})}})});default:return{}}}),Bg=()=>E.getFileContent({name:E.ROLES_TAB_PATH}),Wg="Roles & Privileges",Os=re("roles/fetchRoles",async(e,{dispatch:n,rejectWithValue:t})=>{var i;let a;try{a=await Bg()}catch(c){if(!Array.isArray((i=c==null?void 0:c.data)==null?void 0:i.__ERROR))return t("Error while loading the roles");a={name:E.ROLES_TAB_PATH,date:new Date().toISOString(),content:{permissions:{allowed:[]},privileges:[],roles:[]}}}const s={name:Wg,type:E.FileFolderType.ROLES,date:a.date,view:{panel:{isOpen:!1,type:"",current:""}},path:E.ROLES_TAB_PATH,flags:{},extra:{editor:{key:"editors:roles"}},content:{}};return n(Lt(s)),{...a,content:Vs(a.content)}}),Ug=re("roles/fetchRolesChanges",async(e,{getState:n})=>{const{tabs:t}=n().root;if(t.find(s=>s.path===E.ROLES_TAB_PATH)){const{date:s}=n().roles;if(s&&await qc(s))return{old:!0}}return{}}),qc=async e=>{if(!e)return!1;try{const n=await Bg();if(n.date){const t=new Date(e),a=new Date(n.date);if(t>a)return!0}}catch(n){if(!Array.isArray(n==null?void 0:n.data.__ERROR))throw n}return!1},cc=re("roles/saveRoles",async(e,{getState:n,rejectWithValue:t,dispatch:a})=>{try{const{flags:s,date:i}=n().roles;if(s.old||await qc(i)){const{confirmed:d}=await a(fr({title:Wg,message:"New content has been found on the server. Are you sure you want to continue?",type:Gt.CONFIRM,icon:"FdSave"})).unwrap();if(!d)return t({old:!0})}return await E.setFileContent({name:E.ROLES_TAB_PATH,content:Ks(e)})}catch{return t("Error while loading the roles")}}),Hg=lr({name:"roles",initialState:()=>{const{roles:e}=pa(),{roles:n={},privileges:t={},flags:a={touched:!1},date:s,selectedTab:i="roles"}=e||{};return{flags:a,roles:n,privileges:t,date:s,selectedTab:i}},reducers:{updatePrivileges:(e,n)=>{e.privileges=n.payload,e.flags.touched=!0},updateRoles:(e,n)=>{e.roles=n.payload,e.flags.touched=!0},updateRolesAndPrivileges:(e,n)=>{e.roles=n.payload.roles,e.privileges=n.payload.privileges},toggleTab:(e,n)=>{e.selectedTab=n.payload},toggleForceLogin:(e,n)=>{e.forceLogin!==n.payload&&(e.forceLogin=n.payload,e.flags.touched=!0)},setRolesContent(e,n){const{content:t,flags:a={},...s}=n.payload,i=Vs(t),c={...e.flags,...a};return{...e,...i,...s,flags:c}}},extraReducers(e){e.addCase(Os.fulfilled,(n,t)=>{const{content:a,date:s}=t.payload;n={...n,...a,date:s}}).addCase(Os.rejected,n=>({...n,roles:{},privileges:{},flags:{touched:!1},date:void 0})).addCase(cc.fulfilled,(n,t)=>({...n,flags:{...n.flags,confirmed:!0,touched:!1,old:!1},date:t.payload.date})).addCase(cc.rejected,(n,t)=>Ph.isString(t.payload)?n:{...n,flags:{...n.flags,...t.payload}}).addCase(Ug.fulfilled,(n,t)=>({...n,flags:{...n.flags,...t.payload}})).addCase(la.fulfilled,(n,t)=>{!t.payload||t.payload.path!==E.ROLES_TAB_PATH||(n.flags.touched=!1,n.flags.old=!1)}).addCase(Zc.fulfilled,(n,t)=>{t.meta.arg!==E.ROLES_TAB_PATH||!t.payload||(n.flags.touched=!1,n.flags.old=!1)})}}),{updatePrivileges:Gg,updateRoles:qg,setRolesContent:Yc,toggleTab:WP,toggleForceLogin:UP,updateRolesAndPrivileges:zc}=Hg.actions,HP=Hg.reducer,Vc=re("settings/fetch",async()=>await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:E.SETTINGS_TAB_PATH,content:!0,as:"json"})),Yg=re("settings/app",E.getAppSettings),GP=wh(),Hp={session:{"studio.tips":!0,"studio.notifications":!0,"studio.enablePreview":!1,"studio.tipsBaseUrl":"https://raw.githubusercontent.com/4d/Web-studio-TIPS/gh-build","webforms.tooltip.behavior":kc.SHOW_AFTER_TIMEOUT,"webforms.tooltip.timeout":3e3,"webforms.renderer.showPopOver":!0,"webforms.renderer.showUnsavedPopOver":!0,"welcometour.active":!0,"webforms.properties.advanced-mode":!1,"monaco.zoom":0},project:{"webforms.renderer.indexPage":"","webforms.display-mode":"neutral"},server:{projectOpened:!1,remoteDebuggerMode:E.RemoteDebuggerMode.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:"",lsp:""},isRestActive:!0}},qP={...Hp,session:{...Hp.session,...GP},welcometour:{}},zg=lr({name:"settings",initialState:qP,reducers:{setSetting(e,n){const{path:t,settingsKey:a,value:s}=n.payload;e[t][a]=s},setSettings(e,n){const{path:t,value:a}=n.payload;e[t]={...e[t],...a}},setSettingsAsText(e,n){const{path:t,settings:a}=n.payload;e[t]=a}},extraReducers(e){e.addCase(Vc.fulfilled,(n,t)=>{n.project={...n.project,...t.payload.content}}),e.addCase(Yg.fulfilled,(n,t)=>{n.server=t.payload,n.server.qodly&&(n.project["webforms.display-mode"]="airy")})}}),{setSetting:lc,setSettings:Js,setSettingsAsText:YP}=zg.actions,zP=zg.reducer,fc=e=>{const n=["folder","file"];return e.sort((t,a)=>t.type===a.type?t.name.localeCompare(a.name):n.indexOf(t.type)-n.indexOf(a.type))},Fe=(e,n)=>e.reduce((t,a)=>a.path===n.path&&a.type===n.type?[...t,n]:a.children?[...t,{...a,children:fc(Fe(a.children,n))}]:[...t,a],[]),vt=(e,n)=>e.reduce((t,a)=>t||(a.path===n?a:a.children?vt(a.children,n):null),null),VP=[{name:E.FolderRootPath.WEBFORMS,type:E.FileFolderType.FOLDER,children:[],path:E.FolderRootPath.WEBFORMS,error:null,flags:{expanded:!1,loading:!1,cached:!1},tipKey:"editors:webform:explorer:webforms",config:{},isRoot:!0},{name:E.FolderRootPath.METHODS,type:E.FileFolderType.FOLDER,children:[],path:E.FolderRootPath.METHODS,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:E.FolderRootPath.CLASSES,type:E.FileFolderType.FOLDER,children:[],path:E.FolderRootPath.CLASSES,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:E.FolderRootPath.SHARED,type:E.FileFolderType.FOLDER,children:[],path:E.FolderRootPath.SHARED,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:"Debugger",type:E.FileFolderType.FOLDER,children:[],path:"Debugger",error:null,flags:{expanded:!1,cached:!0},config:{},isRoot:!0},{name:"Roles And Privileges",type:E.FileFolderType.FILE,ext:"json",path:"roles",error:null,flags:{},config:{editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},isRoot:!0},{name:"Model",type:E.FileFolderType.MODEL,ext:"4DModel",path:"model",error:null,flags:{},config:{editor:{key:"editors:model"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]}},{name:"Settings",type:E.FileFolderType.FILE,ext:"json",path:"qodlyApp",error:null,flags:{},config:{editor:{key:"editors:settings"}},isRoot:!0}],Vg=lr({name:"explorer",initialState:VP,reducers:{toggleExpandFolder:(e,n)=>(e=Fe(e,{...n.payload,flags:{...n.payload.flags,expanded:!n.payload.flags.expanded}}),e),expandFolder:(e,n)=>(e=Fe(e,{...n.payload,flags:{...n.payload.flags,expanded:!0}}),e),openAddFileInput:(e,n)=>Fe(e,{...n.payload,flags:{...n.payload.flags,adding:!0}}),addNewFile:(e,n)=>{const{parent:t,child:a}=n.payload;return Fe(e,{...t,children:[a,...t.children||[]]})},removeFile:(e,n)=>{const{parent:t,child:a}=n.payload;return Fe(e,{...t,children:t.children.filter(s=>s.path!==a.path)})},refreshFile:(e,n)=>{const{parent:t,child:a}=n.payload,s=(t.children||[]).filter(i=>i.path!==a.path&&!a.error);return Fe(e,{...t,children:[a,...s]})},setFolderChildren:(e,n)=>{const t=vt(e,n.payload.parentPath);return t?Fe(e,{...t,children:n.payload.children}):e}},extraReducers:e=>{e.addCase(ca.pending,(n,t)=>{const{file:a,newname:s}=t.meta.arg,i=vt(n,a.path);if(!i)return n;const c=a.path.split("/");c.pop();const l=`${c.join("/")}/${a.name}.${a.ext}`,d=`${c.join("/")}/${s}.${a.ext}`;switch(a.ext){case"4dm":case"4qs":E.lspSubject.next({action:E.LspActions.WILL_RENAME,payload:{oldPath:l,newPath:d}});break}return Fe(n,{...i,flags:{...i.flags,loading:!0}})}),e.addCase(ca.fulfilled,(n,t)=>{const{meta:{arg:{file:a}},payload:s}=t,i=vt(n,a.path);if(!i)return n;switch(s.old.ext){case"4dm":case"4qs":E.lspSubject.next({action:E.LspActions.DID_RENAME,payload:{oldPath:s.old.path,newPath:s.new.path}});break}return Fe(n,{...i,flags:{...i.flags,loading:!1}})}),e.addCase(ca.rejected,(n,t)=>{const{file:a}=t.meta.arg,s=vt(n,a.path);return s?Fe(n,{...s,flags:{...s.flags,loading:!1}}):n}),e.addCase(Ar.pending,(n,t)=>{const a=t.meta.arg,s=vt(n,a);return s?Fe(n,{...s,flags:{...s.flags,loading:!0}}):n}),e.addCase(Ar.fulfilled,(n,t)=>{const a=t.meta.arg,s=vt(n,a);return s?Fe(n,{...s,children:fc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!0},error:null}):n}),e.addCase(Ar.rejected,(n,t)=>{const a=t.meta.arg,s=vt(n,a);return s?Fe(n,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!0}}):n}),e.addCase(Ka.pending,(n,t)=>{const a=t.meta.arg,s=vt(n,a);return s?Fe(n,{...s,flags:{...s.flags,loading:!0}}):n}),e.addCase(Ka.fulfilled,(n,t)=>{const a=t.meta.arg,s=vt(n,a);return s?Fe(n,{...s,children:fc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!1},error:null}):n}),e.addCase(Ka.rejected,(n,t)=>{const a=t.meta.arg,s=vt(n,a);return s?Fe(n,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!1}}):n}),e.addCase(us.pending,(n,t)=>{const{fileName:a,parentNode:s,path:i,type:c}=t.meta.arg;return Fe(n,{...s,children:[{name:a,path:`${i}/${a}`,type:c,error:null,flags:{loading:!0},config:{}},...s.children]})}),e.addCase(us.fulfilled,(n,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg,c=E.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=Er(`${a}${c?`.${c.toLowerCase()}`:""}`);return Fe(n,{name:s,path:`${a}/${s}`,type:i,error:null,flags:{loading:!1},config:{editor:l,supportedEditors:d}})}),e.addCase(us.rejected,(n,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg;return Fe(n,{name:s,path:`${a}/${s}`,type:i,error:{message:t.payload},flags:{loading:!1},config:{}})}),e.addCase(cs.pending,(n,t)=>{const{node:a,parentNode:s}=t.meta.arg;return Fe(n,{...s,children:[{name:`${a.name}_copy`,path:`${a.path}/${a.name}_copy`,type:a.type,error:null,flags:{loading:!0},permissions:{canRename:!0,canDelete:!0}},...s.children]})}),e.addCase(cs.fulfilled,(n,t)=>{const{node:a}=t.payload,{node:{path:s,ext:i}}=t.meta.arg,{editor:c,supportedEditors:l}=Er(`${s}${i?`.${i.toLowerCase()}`:""}`);return Fe(n,{name:`${a.name}`,path:`${s}/${a.name}`,type:a.type,error:null,flags:{loading:!1},config:{editor:c,supportedEditors:l}})}),e.addCase(cs.rejected,(n,t)=>{const a=t.payload,{node:s}=t.meta.arg;return Fe(n,{name:`${s.name}_copy`,path:`${s.path}/${s.name}_copy`,type:s.type,error:{message:a},flags:{loading:!1},config:{}})}),e.addCase(Xa.pending,(n,t)=>{}),e.addCase(Xa.fulfilled,(n,t)=>{var b;const{draggedNode:a,newLocation:s}=t.meta.arg,i=Yh(a.path),c=vt(n,i),l=vt(n,s.path),d=(b=c==null?void 0:c.children)==null?void 0:b.filter(_=>_.path!==a.path),p=s.path.split("/").length,h=a.path.split("/").length;return p>=h?(n=Fe(n,{...c,children:d}),n=Fe(n,{...l,children:[{...a,path:`${l.path}/${a.name}`},...l!=null&&l.children?l==null?void 0:l.children:[]],flags:{...l.flags,expanded:!0}})):(n=Fe(n,{...l,children:[{...a,path:`${l.path}/${a.name}`},...l!=null&&l.children?l==null?void 0:l.children:[]],flags:{...l.flags,expanded:!0}}),n=Fe(n,{...c,children:d})),n}),e.addCase(Xa.rejected,(n,t)=>{E.toastSubject.next({message:"Error moving file",kind:"danger"})}),e.addCase(ua.pending,(n,t)=>{var x;const{fileName:a,parentNode:s,path:i,type:c,qodly:l}=t.meta.arg,d=E.getFileExtentionFromType(c,l),p=`${i}/${a}${d?`.${d.toLowerCase()}`:""}`,{editor:h,supportedEditors:b}=Er(p);switch(c){case E.FileFolderType.CLASS:case E.FileFolderType.METHOD:E.lspSubject.next({action:E.LspActions.WILL_CREATE,payload:{filePath:p}});break}const _=(x=s.children)==null?void 0:x.filter(F=>F.path!==`${i}/${a}`),S=[{name:a,path:`${i}/${a}`,type:E.FileFolderType.FILE,error:null,flags:{loading:!0},config:{editor:h,supportedEditors:b},ext:d,date:new Date().toISOString()},..._],T=Fe(n,{...s,children:S});return Ph.merge(n,T)}),e.addCase(ua.fulfilled,(n,t)=>{const{fileName:a,path:s,type:i,qodly:c}=t.meta.arg,l=E.getFileExtentionFromType(i,c),d=`${s}/${a}${l?`.${l.toLowerCase()}`:""}`,{editor:p,supportedEditors:h}=Er(d),b=Fe(n,{name:a,path:`${s}/${a}`,type:E.FileFolderType.FILE,error:null,flags:{},config:{editor:p,supportedEditors:h},ext:l,date:new Date().toISOString()});switch(i){case E.FileFolderType.CLASS:case E.FileFolderType.METHOD:E.lspSubject.next({action:E.LspActions.DID_CREATE,payload:{filePath:d}});break}return n=b,n}),e.addCase(ua.rejected,(n,t)=>{const{fileName:a,path:s,type:i}=t.meta.arg,c=E.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=Er(`${s}${c?`.${c.toLowerCase()}`:""}`);return n=Fe(n,{name:a,path:`${s}/${a}`,type:E.FileFolderType.FILE,error:{message:"Failed creating file"},flags:{},config:{editor:l,supportedEditors:d},ext:c,date:new Date().toISOString()}),n}),e.addMatcher(fh(Ja),(n,t)=>{const a=vt(n,t.meta.arg.file.path.split(".")[0]);return a&&(n=Fe(n,{...a,flags:{...a.flags,loading:!0}})),n}),e.addMatcher(ph(Ja),(n,t)=>{const a=vt(n,t.meta.arg.file.path.split(".")[0]);return a&&(n=Fe(n,{...a,flags:{...a.flags,loading:!1}})),n}),e.addMatcher(dh(Ja),(n,t)=>{const a=vt(n,t.meta.arg.file.path.split(".")[0]);return a&&(n=Fe(n,{...a,flags:{...a.flags,loading:!1}})),E.toastSubject.next({message:"Failed to open file, try again",kind:"danger"}),n})}}),{toggleExpandFolder:KP,expandFolder:JP,openAddFileInput:XP,addNewFile:Kg,refreshFile:ZP,removeFile:dc,setFolderChildren:QP}=Vg.actions;function Jg(e,n){switch(e){case E.FileFolderType.WEBFORMS:const t={metadata:{v:"1.0",datasources:[],styles:[]},components:{ROOT:{parent:"",type:{resolvedName:"Container"},isCanvas:!0,props:{airyMode:!1,className:"bg-white h-full w-full px-6",classNames:[],events:[]},displayName:"App",custom:{},hidden:!1,nodes:[],linkedNodes:{}}}};return n["webforms.display-mode"]===Bc.AIRY&&(t.components.ROOT.props.airyMode=!0),t;case E.FileFolderType.METHODS:return`//%attributes = {}
|
|
119
|
+
`;default:return""}}function Xg(e,n,t){switch(n){case E.FileFolderType.MOBILEFORM:return`${e}.MForm`;case E.FileFolderType.WEBFORM:return`${e}.WebForm`;case E.FileFolderType.METHOD:case E.FileFolderType.CLASS:return`${e}.${t?"4qs":"4dm"}`;default:return e}}function eD(e){switch(e){case E.FolderRootPath.WEBFORMS:return E.FileFolderType.WEBFORMS;case E.FolderRootPath.METHODS:return E.FileFolderType.METHODS;case E.FolderRootPath.CLASSES:return E.FileFolderType.CLASSES;case"Mobile":return E.FileFolderType.MOBILE;default:return e}}function Zg(e){switch(e){case E.FileFolderType.WEBFORMS:return E.FileFolderType.WEBFORM;case E.FileFolderType.CLASSES:return E.FileFolderType.CLASS;case E.FileFolderType.METHODS:return E.FileFolderType.METHOD;case E.FileFolderType.FOLDER:return E.FileFolderType.FOLDER;case E.FileFolderType.MOBILE:return E.FileFolderType.MOBILEFORM;default:return e}}const tD=re("files/tryEditMethod",async({method:e},{dispatch:n})=>{const t=e.filePath.split("/"),[a]=t[1].split("."),{editor:s}=Er(e.filePath);return await n(Kc({file:{name:a,path:e.filePath,date:new Date().toISOString(),type:E.FileFolderType.CLASS,editor:s},line:e.startingLine+1})).unwrap()}),pc=re("explorer/createModelFiles",async(e,{dispatch:n,getState:t})=>{var b;const a=t(),s=E.FolderRootPath.CLASSES,i=a.settings.server.qodly,c=vt(a.explorer,s);if(!c)return;await n(Ar(s));const d=((b=t().explorer.find(_=>_.name===s))==null?void 0:b.children)||[];let p=[{content:"",name:""}];const h=_=>{switch(_){case"dataclass":return{name:e.type==="dataclass"?e.className:"DataStore",content:i?`extends DataClass
|
|
120
|
+
`:`Class extends DataClass
|
|
121
|
+
`};case"collection":return{name:e.type==="dataclass"?e.collectionName:"DataStore",content:i?`extends EntitySelection
|
|
122
|
+
`:`Class extends EntitySelection
|
|
123
|
+
`};case"entity":return{name:e.type==="dataclass"?`${e.className}Entity`:"DataStore",content:i?`extends Entity
|
|
124
|
+
`:`Class extends Entity
|
|
125
|
+
`};case"model":return{name:"DataStore",content:i?`extends DataStoreImplementation
|
|
126
|
+
`:`Class extends DataStoreImplementation
|
|
127
|
+
`}}};e.type==="dataclass"&&!e.toCreate?p=[{...h("dataclass")},{...h("collection")},{...h("entity")}]:e.type==="dataclass"&&e.toCreate?p=[{...h(e.toCreate)}]:p=[{...h("model")}],p=p.filter(_=>!d.find(({name:S,ext:T})=>S===_.name&&T===(i?"4qs":"4dm"))),await Promise.all(p.map(async({name:_,content:S})=>{await n(ua({type:E.FileFolderType.CLASS,path:s,fileName:_,parentNode:c,content:S,qodly:a.settings.server.qodly}))})),await n(Ar(s))}),Ar=re("explorer/fetchFolderContent",async(e,{rejectWithValue:n})=>{try{return(await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:e})).map(a=>{const s=`${e}/${a.name}`,{editor:i,supportedEditors:c}=Er(`${s}${a.ext?`.${a.ext.toLowerCase()}`:""}`);return{name:a.name,size:a.size,type:a.type,date:`${a.date}`,flags:{},error:null,path:s,ext:a.ext,config:a.type==="folder"?{}:{editor:i,supportedEditors:c}}})}catch{return n("Failed loading file content please Reload")}},{getPendingMeta:()=>{}}),Ka=re("explorer/fetchFolderContentWithoutExpanding",async(e,{rejectWithValue:n})=>{try{return(await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:e})).map(a=>{const s=`${e}/${a.name}`,{editor:i,supportedEditors:c}=Er(`${s}${a.ext?`.${a.ext.toLowerCase()}`:""}`);return{name:a.name,size:a.size,type:a.type,date:`${a.date}`,flags:{},error:null,path:s,ext:a.ext,config:a.type==="folder"?{}:{editor:i,supportedEditors:c}}})}catch{return n("Failed loading file content please Reload")}},{getPendingMeta:()=>{}});function rD(e){const n=e.split(".");return n.pop(),{name:n.join("."),ext:e.split(".")[e.split(".").length-1]}}const nD=re("explorer/uploadFile",async e=>{const n=e.type.includes("image/")?"$rawPict=true":"$binary=true";try{const t=await fetch(`/rest/$upload?${n}`,{method:"POST",headers:{"Content-Type":e.type},body:e});return{status:t.status,data:await t.json()}}catch{return{status:500,data:null}}}),aD=re("explorer/uploadFile",async({file:e,path:n,parentNode:t},{dispatch:a})=>{const{editor:s,supportedEditors:i}=Er(n),{name:c,ext:l}=rD(e.name);a(Kg({parent:t,child:{name:c,path:`${n}/${e.name}?t=${Date.now()}`,type:e.type,error:null,flags:{loading:!0},config:{editor:s,supportedEditors:i},ext:l}}));try{const d=await fetch(`/rest/$upload?$sharedFolder=true&$filename=${e.name}&$path=${n}`,{method:"POST",headers:{"Content-Type":e.type},body:e});return d.status>=300?(a(dc({parent:t,child:{name:c,path:`${n}/${e.name}`,type:e.type,error:{message:"error uploading file"},flags:{},config:{editor:s,supportedEditors:i},ext:l}})),d.status!==413&&E.toastSubject.next({message:"error uploading file",kind:"danger"})):await a(Ar(t.path)),{status:d.status,fileName:e.name}}catch{return a(dc({parent:t,child:{name:c,path:`${n}/${e.name}`,type:e.type,error:{message:"error uploading file"},flags:{},config:{editor:s,supportedEditors:i},ext:l}})),E.toastSubject.next({message:"error uploading file",kind:"danger"}),{status:500,fileName:e.name}}}),ua=re("explorer/createNewFile",async({fileName:e,type:n,path:t,parentNode:a,content:s},{dispatch:i,rejectWithValue:c,getState:l})=>{const{server:{qodly:d},project:p}=l().settings;try{const h=await E.setFileContent({name:Xg(e,n,d),content:s||Jg(n,p),path:t,asText:[E.FileFolderType.CLASS,E.FileFolderType.METHOD].includes(n)});return a.error&&(a.flags.expanded?await i(Ar(a.path)):await i(Ka(a.path))),{qodly:d,file:h,parentNode:a}}catch{return c("failed to create folder")}});function Qg(e,n){const{qodly:t=!0,withExtension:a=!0}=n||{},s=E.getFileExtentionFromType(e.type,t);let i="";switch(e.type){case E.FileFolderType.WEBFORM:i=`${E.FolderRootPath.WEBFORMS}/${e.name}`;break;case E.FileFolderType.METHOD:i=`${E.FolderRootPath.METHODS}/${e.name}`;break;case E.FileFolderType.CLASS:i=`${E.FolderRootPath.CLASSES}/${e.name}`;break;default:return""}return`${i}${a?`.${s}`:""}`}const oD=re("explorer/createNewFileAndOpen",async(e,{dispatch:n,getState:t})=>{const a=await n(ua(e)).unwrap(),{qodly:s}=t().settings.server;if(a){const{file:i}=a,c=Qg(i,{withExtension:!1,qodly:s}),{editor:l}=Er(c);await n(Ja({file:{name:e.fileName,type:i.type,path:c,editor:l,date:new Date().toISOString()}}))}}),us=re("explorer/createNewNode",async({fileName:e,path:n,parentNode:t},{rejectWithValue:a})=>{try{return{file:await E.createFolder({verb:E.DesignerRequestVerb.CREATE_FOLDER,path:`${n}/${e}`,recursive:!0}),parentNode:t}}catch{return E.toastSubject.next({message:"failed to create folder",kind:"danger"}),a("failed to create folder")}}),Xs=async(e,n={})=>{try{const t=e.path.split(".").at(-1),a=await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:Ch(t)?"json":"text"}),s={editor:e.editor},i=E.getTypeFromExtension(e.path);i===E.FileFolderType.METHOD&&(s.attributes=E.parseAttributes(a.content),a.content=E.addAttributesToContent(a.content,{}));const{content:c,date:l,ext:d}=a;return n.confirmed===void 0&&(n.confirmed=!0),{date:l,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(d),confirmed:n.confirmed},extra:s,name:e.name,path:e.path,type:i,initialContent:c,content:c}}catch(t){const{data:a}=t;if(a.__ERROR.find(s=>s.errCode===E.ERROR_CODES.FILE_NOT_FOUND))switch(e.path){case E.ROLES_TAB_PATH:{const s={permissions:{allowed:[]},privileges:[],roles:[]};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:roles"}},name:"Roles & Privileges",path:e.path,type:E.FileFolderType.ROLES,initialContent:s,content:s}}case E.SETTINGS_TAB_PATH:{const s={};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:settings"}},name:"Settings",path:e.path,type:E.FileFolderType.SETTINGS,initialContent:s,content:s}}}throw t}},Ja=re("explorer/openFile",async({file:e,inactive:n,isNew:t,flags:a={}},{getState:s,dispatch:i})=>{const{root:{tabs:c},roles:l,debugger:{sessions:d}}=s(),p=c.find(({path:_})=>e.path===_);if(p){const _={...p,extra:{...p==null?void 0:p.extra,editor:e.editor},flags:{...p==null?void 0:p.flags,...a}};return i(Lt(_)),_}if(e.path.startsWith("Debugger")){const _=d.find(S=>`Debugger/${S.threadId}`===e.path);if(_){const{source:{content:S},source:T}=_.currentStackFrame,x={name:e.name,type:E.FileFolderType.DEBUGGER,date:new Date().toISOString(),path:e.path,content:S,view:{panel:{isOpen:!1,type:"",current:""}},initialContent:S,flags:{confirmed:!0},extra:{source:T,editor:e.editor}};return i(Lt(x)),x}}let h=null;try{h=await Xs(e,a)}catch(_){const{data:S}=_;if(S.__ERROR.find(T=>[E.ERROR_CODES.JSON_MALFORMED,E.ERROR_CODES.JSON_MALFORMED_AT_LINE].includes(T.errCode))){const{confirmed:T}=await i(fr({title:"Corrupt file",type:Gt.CONFIRM,color:Dr.WARNING,message:"Open in code editor ?"})).unwrap();if(T){const x=await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:"text"}),{content:F,date:D,ext:W}=x;h={date:D,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(W),confirmed:!0},extra:{editor:E.EDITOR.Code},name:e.name,path:e.path,type:E.getTypeFromExtension(e.path),initialContent:F,content:F}}}}return h&&(e.path===E.ROLES_TAB_PATH&&!l.flags.touched?i(Yc({content:h.content,date:h.date})):e.path===E.SETTINGS_TAB_PATH&&i(Js({path:"project",value:h.content})),i((n?Ov:Lt)({...h,isNew:t})),h)}),Kc=re("explorer/openFileAtLine",async({file:e},{getState:n,dispatch:t})=>{const{tabs:a}=n().root,s=a.find(({path:c})=>e.path===c);if(s){const c={...s,extra:{...s==null?void 0:s.extra,editor:e.editor}};return t(Lt(c)),c}const i=await Xs(e);return t(Lt(i)),i}),ev=re("explorer/injectContentAtLine",async(e,{getState:n,dispatch:t,rejectWithValue:a})=>{const s=n();e.path.split("/").pop();const c=vt(s.explorer,e.path);if(!c)return a(`Error while trying to inject content in file ${e.path}`);const l=await Xs({name:c.name,date:c.date||new Date().toISOString(),path:`${c.path}.${c.ext}`,type:E.FileFolderType.CLASS,editor:c.config.editor});return await t(Lt(l)),{...e,path:`${c.path}.${c.ext}`}}),tv=re("explorer/openFileAtSelection",async({file:e},{getState:n,dispatch:t})=>{const{tabs:a}=n().root,s=a.find(({path:c})=>e.path===c);if(s){const c={...s,extra:{...s==null?void 0:s.extra,editor:e.editor}};return t(Lt(c)),c}const i=await Xs(e);return t(Lt(i)),i}),hc=re("explorer/deleteFile",async e=>{const{name:n,type:t,path:a,flags:s}=e;if(s.error)return{deleted:!0,node:e};const i=a.split("/");return i.pop(),{deleted:await E.dropFile({root:E.FolderRootType.ROOT,type:Zg(t),verb:E.DesignerRequestVerb.DROP,name:n,path:i.join("/")}),node:e}}),sD=re("explorer/deleteFolder",async e=>{const{path:n,flags:t}=e;if(t.error)return{deleted:!0,node:e};const{deleted:a}=await E.removeItem({force:!0,path:n,verb:E.DesignerRequestVerb.REMOVE_ITEM});return{deleted:a,node:e}}),iD=re("explorer/removeFileNode",async(e,{getState:n,dispatch:t})=>{const a=`${e.path}.${e.ext}`;if(await E.removeItem({verb:E.DesignerRequestVerb.REMOVE_ITEM,path:a,force:!0}),e.path==="Classes/DataStore"&&setTimeout(()=>{t(kn())},$s),e.ext){const{tabs:s}=n().root,i=s.findIndex(c=>c.path===a);i>=0&&t(nl(i))}return{deleted:!0,node:e}}),ca=re("explorer/renameFile",async({file:e,newname:n})=>{if(e.type!=="folder"){const a=e.path.split("/");a.pop();const s=`${a.join("/")}/${e.name}.${e.ext}`,i=`${a.join("/")}/${n}.${e.ext}`;return await E.moveItem({verb:E.DesignerRequestVerb.MOVE_ITEM,path:s,newpath:i}),{old:{...e,path:s},new:{...e,name:n,path:i}}}const t=e.path.split("/");return t.pop(),await E.moveItem({verb:E.DesignerRequestVerb.MOVE_ITEM,path:`${t.join("/")}/${e.name}`,newpath:`${t.join("/")}/${n}`}),{old:e,new:{...e,name:n,path:`${t.join("/")}/${n}`}}}),Xa=re("explorer/relocateNode",async({draggedNode:e,newLocation:n},{rejectWithValue:t})=>{try{await E.moveItem({verb:E.DesignerRequestVerb.MOVE_ITEM,path:`${e.path}.${e.ext}`,newpath:`${n.path}/${e.name}.${e.ext}`})}catch{return t("can't move item")}}),cs=re("explorer/duplicateNode",async({node:e,duplicateName:n},{rejectWithValue:t,fulfillWithValue:a,getState:s})=>{const i=e.path.split("/");i.pop();try{const{tabs:c}=s().root,l=c.find(({path:b})=>b===`${e.path}${e.ext?`.${e.ext}`:""}`),d=["4dm","4qm","4qs"].includes(e.ext),{content:p}=l||await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:`${e.path}.${e.ext}`,content:!0,as:d?"text":"json"}),h=await E.setFileContent({name:`${n}.${e.ext}`,content:p,path:i.join("/"),asText:d});return a({node:{...h,path:i.join("/")}})}catch{return t("failed to duplicate file")}}),uD=re("explorer/executeMethod",async({methodName:e,params:n=[],resultingDataSource:t={},namespace:a=""},{rejectWithValue:s})=>{var i,c;try{const d=await window.Method4D.buildMethod({methodName:e,parameters:n,resultingDataSource:t},{namespace:a},null).callServerSide({id:"",serverSideRef:""},"onclick",{});return d!=null&&d.__NOTIFICATION?E.toastSubject.next({message:`${((i=d.__NOTIFICATION)==null?void 0:i.message)||""}`,kind:`${((c=d.__NOTIFICATION)==null?void 0:c.type)||"info"}`}):E.toastSubject.next({message:"Method executed Successfully",kind:"message"}),d}catch(l){return E.toastSubject.next({message:l.message||`Error executing the method "**${e}**"`,kind:"danger",markdown:!0}),s("can't execute method")}}),cD=re("files/fetchFiles",async()=>E.getFolders(E.FolderRootType.WEBFORMS,E.FolderRootType.METHODS,E.FolderRootType.CLASSES)),Jc=re("tabs/renameDatasource",async(e,{dispatch:n,getState:t})=>{var S,T;const a=!!e.datasourceNamespace,{confirmed:s}=await n(fr({message:"Are you sure you want to rename the datasource?",title:"Rename Datasource",type:Gt.CONFIRM,color:Dr.WARNING,views:{toggles:{},tips:a?[{type:"warning",message:"The datasource property of components bound with this datasource will also be updated on opened web forms only"},{type:"warning",message:"The origin of some other datasources might be also renamed (if this datasource is the origin of other datasources)"}]:[{type:"warning",message:"The datasource property of components bound with this datasource will also be updated"},{type:"warning",message:"The origin of some other datasources might be also renamed (if this datasource is the origin of other datasources)"}]}})).unwrap();if(!s)return null;const{autoUpdateReferences:i,datasourceId:c,datasourceNamespace:l,value:d,path:p}=e,h=t();let b=[];if(a){const x=h.sharedDatasources.sources[l]||[];b.push(...x)}else if(p){const x=h.root.tabs.find(E.by("path",p));if(b=(T=(S=x==null?void 0:x.content)==null?void 0:S.metadata)==null?void 0:T.datasources,!b)return null}const _=new RegExp(`^${c}\\b`,"");if(b=b.map(x=>{const F=(E.isObjectDatasource(x)||!E.isSimpleDatasource(x))&&x.from&&_.test(x.from),D=x.events?x.events.map(W=>{var $,j,A,K;switch(W==null?void 0:W.type){case"method":{const G=W;return G.params?{...G,params:G.params.map(Y=>{var ie;return{...Y,datasource:(ie=Y.datasource)==null?void 0:ie.replace(new RegExp(`^${c}`,""),d)}}),returns:($=G.returns)!=null&&$.datasource?{...G.returns,datasource:(j=G.returns.datasource)==null?void 0:j.replace(new RegExp(`^${c}`,""),d)}:G.returns}:G}case"simple-action":{const G=W;return G.datasource?{...G,datasource:{...G.datasource,name:(A=G.datasource.name)==null?void 0:A.replace(new RegExp(`^${c}`,""),d),from:(K=G.datasource.from)==null?void 0:K.replace(new RegExp(`^${c}`,""),d)}}:G}default:return W}}):x.events;return x.id===c?{...x,id:d,events:D}:F&&x.from?{...x,from:x.from.replace(new RegExp(`^${c}`,""),d),events:D}:{...x,events:D}}),i){const x=a?`${l}:${c}`:`${c}`,F=a?`${l}:${d}`:`${d}`;E.datasourcesSubject.next({path:p??"",action:E.DatasourcesActions.RENAME,old_reference:x,new_reference:F,is_shared:a})}return{path:p,namespace:l,datasources:b}}),Xc=re("tabs/edit-datasource",(e,{getState:n})=>{var i,c;const t=n();let a=[];if(e.namespace)a=t.sharedDatasources.sources[e.namespace];else{const l=t.root.tabs.find(E.by("path",e.path));l&&(a=((c=(i=l.content)==null?void 0:i.metadata)==null?void 0:c.datasources)||[])}return a.map(l=>l.id===e.datasourceId?Object.assign({},l,{[e.propertyKey]:e.value}):l)}),rv=re("tabs/fetchChanges",async(e,{getState:n})=>{const a=ba(n()).filter(s=>[E.FileFolderType.METHOD,E.FileFolderType.CLASS].includes(s.type));return E.getFilesInfo(...a.map(s=>{const[i]=s.path.split("/").filter(Boolean);return{name:s.name,type:s.type,root:i,path:"."}}))}),lD=re("files/saveAll",async(e,{getState:n,dispatch:t})=>{const a=Mc(n());for(const s of a)t(la({tab:s}))}),Zc=re("files/tryCloseTab",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root,s=a.findIndex(c=>c.path===e);if(s===-1)return!1;const i=a[s];if(i!=null&&i.flags.touched){const{confirmed:c}=await t(fr({title:Ms(i),message:"Your unsaved changes will be lost. Proceed anyway?",type:Gt.CONFIRM,color:Dr.WARNING,icon:"FdWarningDanger"})).unwrap();if(!c)return!1}return t(nl(s)),i.path===E.ROLES_TAB_PATH&&i.flags.touched&&(async()=>{const l=await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:E.ROLES_TAB_PATH,content:!0,as:"json"});t(Yc({content:l.content,date:l.date}))})(),!0}),fD=re("files/tryCloseOtherTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;if(a.some(i=>i.path!==e&&i.flags.touched===!0)){const{confirmed:i}=await t(fr({title:"Closing other tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:Gt.CONFIRM,color:Dr.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(Cv(e))}),dD=re("files/tryCloseAllTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;if(a.some(i=>i.flags.touched===!0)){const{confirmed:i}=await t(fr({title:"Closing all tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:Gt.CONFIRM,color:Dr.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(wv())}),pD=re("files/tryCloseRightTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;let s=!1;for(let i=a.length-1;i>e;i-=1)if(a[i].flags.touched){s=!0;break}if(s){const{confirmed:i}=await t(fr({title:"Closing right tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:Gt.CONFIRM,color:Dr.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(Tv(e))}),hD=re("files/tryCloseLeftTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;let s=!1;for(let i=0;i<e;i+=1)if(a[i].flags.touched){s=!0;break}if(s){const{confirmed:i}=await t(fr({title:"Closing left tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:Gt.CONFIRM,color:Dr.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(xv(e))}),gc=re("files/reloadTab",async(e,{dispatch:n})=>{if(e.flags.touched){const{confirmed:s}=await n(fr({title:Ms(e),message:"Changes made to the file will be lost. Continue?",type:Gt.CONFIRM,color:Dr.WARNING,icon:"FdWarningDanger"})).unwrap();if(!s)return}const t=zh(e.path),a=await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:t});if(e.path===E.ROLES_TAB_PATH){const{roles:s,privileges:i}=Vs(a.content);n(zc({roles:s,privileges:i}))}else if(e.path===E.SETTINGS_TAB_PATH){const{content:s}=a;n(Js({path:"project",value:s}))}else{const{content:s}=a;e.type===E.FileFolderType.WEBFORM?E.webformSubject.next({path:e.path,action:E.WebformActions.RELOAD,payload:s.components}):e.type===E.FileFolderType.MODEL&&eg.next({action:"reload",payload:s})}return a}),la=re("files/saveTab",async({tab:e},{dispatch:n,getState:t})=>{const{path:a,content:s}=e;if(e.type===E.FileFolderType.DEBUGGER)return{...e,errors:[]};a.split("/").pop();const c=await E.getFilesInfo({path:a});if(c.files[0]){const h=new Date(e.date),b=new Date(c.files[0].date);if(h.getTime()<b.getTime()){const{confirmed:_}=await n(fr({title:Ms(e),message:"New content has been found on the server. Are you sure you want to continue?",type:Gt.CONFIRM,icon:"FdSave"})).unwrap();if(!_)return n(Sv({path:a,flags:{old:!0}})),null}}const l=await E.saveContent({verb:E.DesignerRequestVerb.SAVE_CONTENT,content:gD(e,t()),path:a});(e.type===E.FileFolderType.CLASS||e.type===E.FileFolderType.MODEL)&&setTimeout(()=>{n(kn())},$s);const d=(l.modelErrors||[]).map(h=>h.message),p=(l.permissionsErrors||[]).map(h=>h.message);return{...e,content:s,date:l.date,initialContent:s,errors:d.length>0||p.length>0?[{title:"Model errors",messages:d},{title:"Permissions errors",messages:p}]:[]}}),gD=(e,n)=>{switch(!0){case e.path==="settings.json":case e.path===E.SETTINGS_TAB_PATH:return n.settings.project;case e.type===E.FileFolderType.ROLES:return{...e.content,...Ks(n.roles)};case e.type===E.FileFolderType.MODEL:return e.content||{toJSON:!0,dataClasses:[],extraProperties:{}};default:return e.content}},Gp=async e=>{if(e.type===E.FileFolderType.DATA_EXPLORER)return{name:"Data Explorer",path:e.path,flags:{},view:{panel:{isOpen:!1,type:"",current:""}},type:e.type,date:new Date().toISOString()};const n=e.path.split("/").filter(Boolean)[0],t=await E.getFile({root:n,type:e.type,verb:E.DesignerRequestVerb.GET,name:e.name}),a={};t.type===E.FileFolderType.METHOD&&(a.attributes=E.parseAttributes(t.content));const{date:s,name:i,type:c,content:l}=t;return{date:s,flags:{enabled:e.type===E.FileFolderType.WEBFORM},extra:a,view:{panel:{isOpen:!1,type:"",current:""}},name:i,path:e.path,type:c,initialContent:l,content:c===E.FileFolderType.MODEL?Th(l):l}},nv=re("files/tryInjectMethod",async({type:e,dataclass:n},{getState:t,dispatch:a})=>{const{root:{tabs:s},settings:{server:{qodly:i}}}=t(),c=E.getFileExtentionFromType("class",i);let l="",d="",p=null;if(!n)l="DataStore",d=`Classes/DataStore.${c}`;else switch(e){case"dataclass":l=n,d=`Classes/${n}.${c}`;break;case"collection":l=`${n}Selection`,d=`Classes/${n}Selection.${c}`;break;case"entity":l=`${n}Entity`,d=`Classes/${n}Entity.${c}`;break;default:return p}const h=s.find(E.by("path",d));if(h)return a(Lt(h)),h;try{p=await Gp({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:E.FileFolderType.CLASS})}catch{n?await a(pc({type:"dataclass",className:n,collectionName:`${n}Selection`,toCreate:e})):await a(pc({type:"model"}))}return p=await Gp({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:E.FileFolderType.CLASS}),p.path=d,a(Lt(p)),p}),vD=re("roles/open",async(e,{dispatch:n,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path===E.ROLES_TAB_PATH);if(s)return n(Lt(s)),s;n(Os())});function qp(e,n){const{line:t,offset:a,type:s="saved"}=n;e.breakpoints[s].locations.push({line:t}),Ke.isNumber(a)&&(e.breakpoints[s].offset=a)}function Yp(e,n,t,a){e.breakpoints[t].locations=n,Ke.isNumber(a)&&(e.breakpoints[t].offset=a)}function zp({filePath:e,fileType:n,methodName:t,className:a,ext:s,source:i}){return{filePath:e,fileType:n,methodName:t,className:a,ext:s,source:i,breakpoints:{draft:{locations:[],offset:0},saved:{locations:[],offset:0}}}}function Vp(e,n,t){let a=!1;const s=e.map(i=>i[t]!==n[t]?i:(a=!0,{...i,...n}));return a?s:[...s,n]}function as(e){return e.map(({label:n})=>({label:n}))}const av=lr({name:"debugger",initialState:()=>{var n,t;const{debugger:e={meta:{state:Gr.DETACHED},list:[],sessions:[],expressions:[]}}=pa();return{meta:{...e.meta,state:((n=e.meta)==null?void 0:n.state)===Gr.ATTACHED?(t=e.meta)==null?void 0:t.state:Gr.DETACHED},list:e.list||[],sessions:e.sessions||[],expressions:e.expressions||[]}},reducers:{addBreakpointDecoration(e,n){const{filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l,breakpoint:d}=n.payload,p=jn(e.list,t,s,i);if(p)qp(p,d);else{if(a===E.FileFolderType.CLASS&&d.offset===void 0)throw new Error(`Cannot add a breakpoint on a function without offset. Try editing the ${i} class.`);const h=zp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});qp(h,d),e.list.push(h)}},removeBreakpointDecoration(e,n){const{filePath:t,methodName:a,line:s,offset:i=0,type:c="saved"}=n.payload;if(t.startsWith("Classes/")){const l=e.list.filter(d=>d.filePath===t);if(l.length>0){const d=s+i;l.forEach(p=>{const h=p.breakpoints[c].offset||0;p.breakpoints[c].locations=p.breakpoints[c].locations.filter(b=>b.line+h!==d),c==="saved"&&(p.breakpoints.draft.locations=p.breakpoints.draft.locations.filter(b=>b.line+h!==d))})}}else{const l=jn(e.list,t,a);l&&(l.breakpoints[c].locations=l.breakpoints[c].locations.filter(d=>d.line!==s),c==="saved"&&(l.breakpoints.draft.locations=l.breakpoints.draft.locations.filter(d=>d.line!==s)))}},setBreakpointsDecoration(e,n){const{filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l,breakpoints:d,offset:p,type:h="saved",clearDraft:b}=n.payload,_=jn(e.list,t,s);if(_)Yp(_,d,h,p),b&&h!=="draft"&&(_.breakpoints.draft.locations=[]);else{const S=zp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});Yp(S,d,h,p),e.list.push(S)}},clearBreakpoints(e,n){const{filePath:t,type:a="saved"}=n.payload;e.list=e.list.map(s=>({...s,breakpoints:s.filePath===t?{draft:!a||a==="draft"?{locations:[],offset:0}:s.breakpoints.draft,saved:!a||a==="saved"?{locations:[],offset:0}:s.breakpoints.saved}:s.breakpoints}))},setActiveLine(e,n){const{threadId:t,line:a,highlight:s}=n.payload,i=ft(e.sessions,t);i&&(i.activeLine=a,s&&(i.highlightedLines={start:a,end:a}))},addExpression(e,n){const{threadId:t,label:a,save:s}=n.payload,i=ft(e.sessions,t);i&&i.stopped&&(i.expressions=[...i.expressions||[],{label:a}],s&&(e.expressions=as(i.expressions)))},removeExpression(e,n){const{threadId:t,index:a,save:s}=n.payload,i=ft(e.sessions,t);i&&(i.expressions=i.expressions.filter((c,l)=>l!==a),s&&(e.expressions=as(i.expressions)))},removeAllExpressions(e,n){const{threadId:t,save:a}=n.payload,s=ft(e.sessions,t);s&&(s.expressions=[],a&&(e.expressions=[]))},renameExpression(e,n){const{threadId:t,index:a,replacement:s,save:i}=n.payload,c=ft(e.sessions,t);c&&c.expressions[a]&&(c.expressions[a].label=s,i&&(e.expressions=as(c.expressions)))},setExpression(e,n){const{threadId:t,expression:a}=n.payload,s=ft(e.sessions,t);if(s){const i=a.index>=0?a.index:s.expressions.length>0?s.expressions.length-1:0,c=s.expressions[i];c?(c.result=a.result,c.nakedResult=a.nakedResult,c.variablesReference=a.variablesReference||0,c.presentationHint=a.presentationHint):s.expressions.push(a)}},updateExpressionAt(e,n){const{threadId:t,index:a,value:s}=n.payload,i=ft(e.sessions,t);if(i){const c=i.expressions[a];c&&(c.result=`"${s}"`,c.nakedResult=s)}},saveExpressions(e,n){const{expressions:t}=n.payload;e.expressions=as(t)},addSession(e,n){const{threadId:t,channelId:a,stackFrames:s,exceptions:i=[]}=n.payload,c=ft(e.sessions,t),l=s[0],{expressions:d=[]}=e;if(c)c.expressions=d;else{const p=Pc(t);e.sessions.push({tabPath:p,threadId:t,channelId:a,stackFrames:s,currentStackFrame:l,exceptions:i,expressions:d,variables:{callchain:[],expressions:[]},highlightedLines:null,activeLine:null,stopped:!0})}},updateSession(e,n){const{threadId:t,changes:a}=n.payload;e.sessions=e.sessions.map(s=>s.threadId===t?{...s,...a}:s)},removeSession(e,n){const{threadId:t}=n.payload;e.sessions=e.sessions.filter(a=>a.threadId!==t)},removeSessionByIndex(e,n){const t=n.payload;e.sessions.splice(t,1)},setSessions(e,n){const t=n.payload;e.sessions=t},setCallChainVariables(e,n){const{threadId:t,frameId:a,variables:s}=n.payload;e.sessions=e.sessions.map(i=>{var c;return i.threadId===t?{...i,variables:{...i.variables,callchain:Vp((c=i.variables)==null?void 0:c.callchain,{frameId:a,items:s},"frameId")}}:i})},setExpressionVariables(e,n){const{threadId:t,variablesReference:a,variables:s}=n.payload;e.sessions=e.sessions.map(i=>{var c;return i.threadId===t?{...i,variables:{...i.variables,expressions:Vp((c=i.variables)==null?void 0:c.expressions,{variablesReference:a,items:s},"variablesReference")}}:i})},setSourceContent(e,n){const{threadId:t,content:a}=n.payload,s=ft(e.sessions,t);s&&(s.currentStackFrame.source={...s.currentStackFrame.source,content:a})},setDebuggerMeta(e,n){if(n.payload.state===Gr.ERROR){e.meta.error={...e.meta.error,time:Date.now()};const{override:t,error:a={code:null,reason:"",type:ms.SOCKET_ERROR}}=n.payload;if((t||e.meta.state!==Gr.ERROR)&&(e.meta.error={...e.meta.error,...a}),(a==null?void 0:a.type)===ms.SOCKET_CLOSURE&&!(a!=null&&a.reason)&&e.meta.state===Gr.DETACHED)return}e.meta.state=n.payload.state}},extraReducers:e=>{e.addCase(sv.fulfilled,n=>{n.sessions=[]})}}),{addBreakpointDecoration:yD,removeBreakpointDecoration:mD,setBreakpointsDecoration:bD,clearBreakpoints:_D,setActiveLine:ED,addExpression:SD,renameExpression:wD,removeExpression:TD,removeAllExpressions:CD,setExpression:xD,updateExpressionAt:RD,saveExpressions:OD,addSession:AD,updateSession:PD,removeSession:DD,removeSessionByIndex:ID,setSessions:ov,setCallChainVariables:FD,setExpressionVariables:$D,setSourceContent:MD,setDebuggerMeta:ND}=av.actions,sv=re("files/wipeDebuggerSessions",async(e,{getState:n,dispatch:t})=>{const{sessions:a}=n().debugger;for(const{threadId:s}of a){const i=Pc(s);t(Zc(i))}}),iv=re("files/removeDebuggerSessionsNotIn",async(e,{getState:n,dispatch:t})=>{const{threadIds:a}=e,{sessions:s}=n().debugger,i=[],c=s.filter(l=>{const d=a.includes(l.threadId);return d||i.push(l.threadId),d});return t(ov(c)),{staleThreadIds:i}}),Qc=re("models/fetch",async()=>{try{return(await E.http(E.API_PREFIX,{method:"POST",body:JSON.stringify({verb:E.DesignerRequestVerb.GET_INFO,path:E.MODEL_TAB_PATH,as:"json",content:!0}),headers:new Headers({"Content-Type":"application/json"})})).content}catch(e){return e.message}}),As=re("models/save",async(e,{getState:n,dispatch:t,rejectWithValue:a})=>{const{tabs:s}=n().root,i=s.find(c=>c.path===E.MODEL_TAB_PATH);if(!i)return a("Error while saving the model");try{const c=await E.http(E.API_PREFIX,{method:"POST",body:JSON.stringify({verb:"save",path:i.path,content:i.content}),headers:new Headers({"Content-Type":"application/json"})});return setTimeout(()=>{t(kn())},$s),{...c,path:i.path,content:e.content||{toJSON:!0,dataClasses:[],extraProperties:{}}}}catch{return a("Error while saving the model")}}),LD=re("models/open",async(e,{dispatch:n,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path==="models/main");if(s)return n(Lt(s)),s;n(Qc())}),jD=re("model/rename-dataclass",async(e,{getState:n,dispatch:t})=>{var b,_;const{dataclassId:a,selectionId:s,name:i}=e;let c=n();const l=c.explorer.find(S=>S.path===E.FolderRootPath.CLASSES);if(!l)throw new Error("Classes folder was not found!");await t(Ar(l.path)),c=n();const d={class:{found:!1,newNameTaken:!1,file:null,filename_update:i},entity:{found:!1,newNameTaken:!1,file:null,filename_update:`${i}Entity`},selection:{found:!1,newNameTaken:!1,file:null,filename_update:`${i}Selection`}};(_=(b=c.explorer.find(S=>S.path===E.FolderRootPath.CLASSES))==null?void 0:b.children)==null||_.forEach(S=>{S.name===d.class.filename_update&&(d.class.newNameTaken=!0),S.name===d.entity.filename_update&&(d.entity.newNameTaken=!0),S.name===d.selection.filename_update&&(d.selection.newNameTaken=!0),S.name===a?(d.class.found=!0,d.class.file=S):S.name===`${a}Entity`?(d.entity.found=!0,d.entity.file=S):S.name===s&&(d.selection.found=!0,d.selection.file=S)});const p=Object.entries(d).reduce((S,T)=>{const[x,F]=T;return F.found?F.newNameTaken?[...S,{type:"error",message:`Cannot rename ${x} file to ${F.filename_update} because it already exists. The existing file will be used instead!`}]:S:[...S,{type:"warning",message:`${a} ${x} file was not found`}]},[]);p.length>0&&t(fr({message:"The following errors were encountered during dataclass rename:",views:{tips:p}}));const h=Object.values(d).filter(S=>S.found&&S.file&&!S.newNameTaken);await Promise.all(h.map(async S=>await t(ca({file:S.file,newname:S.filename_update})))),h.length>0&&t(Ar("Classes"))}),no={DATACLASS_DELETE:"dataclass.delete",DATACLASS_DRAGGABLE:"dataclass.draggable"},kD={model:{dataClasses:{},collections:{},extraProperties:{}},draft:{dataClasses:{},collections:{},extraProperties:{}},flags:{[no.DATACLASS_DELETE]:!0,[no.DATACLASS_DRAGGABLE]:!0}},uv=lr({name:"Models",initialState:kD,reducers:{setModelFlag(e,n){e.flags={...e.flags,...n.payload}}},extraReducers(e){e.addCase(Qc.fulfilled,(n,t)=>{var c;const a={},s={},i=t.payload.extraProperties||{};(c=t.payload.dataClasses)==null||c.forEach(l=>{a[l.name]=l,s[l.collectionName]=l}),n.draft.dataClasses=a,n.draft.collections=s,n.draft.extraProperties=i,n.model.dataClasses=a,n.model.collections=s,n.model.extraProperties=i}),e.addCase(As.pending,()=>{}).addCase(As.fulfilled,(n,t)=>{const a={},s={},i=t.payload.content.extraProperties||{};t.payload.content.dataClasses.forEach(c=>{a[c.name]=c,s[c.collectionName]=c}),n.draft.dataClasses=a,n.draft.collections=s,n.draft.extraProperties=i,n.model.dataClasses=a,n.model.collections=s,n.model.extraProperties=i})}}),{setModelFlag:BD}=uv.actions;var cv=(e=>(e.UUID="uuid",e.STRING="string",e.TEXT="text",e.DATE="date",e.TIME="duration",e.BOOLEAN="bool",e.BYTE="byte",e.INTEGER="word",e.LONG="long",e.LONG64="long64",e.FLOAT="number",e.BLOB="blob",e.IMAGE="image",e.OBJECT="object",e))(cv||{}),Zs=(e=>(e.STORAGE="storage",e.RELATEDENTITY="relatedEntity",e.RELATEDENTITIES="relatedEntities",e.CALCULATED="calculated",e.COMPOSITION="composition",e.ALIAS="alias",e))(Zs||{});const WD=e=>["string","uuid","number","long"].includes(e.type),UD=[{label:"Storage",value:"storage"},{label:"Calculated",value:"calculated"}],HD=[{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"}],GD=[{title:"String",kind:"storage",value:"string",calculatedType:"string",calculatedKind:"storage"},{title:"Text",kind:"storage",value:"text",calculatedType:"text",calculatedKind:"storage"},{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Date",kind:"storage",value:"date",calculatedType:"date",calculatedKind:"storage"},{title:"Duration",kind:"storage",value:"duration",calculatedType:"duration",calculatedKind:"storage"},{title:"Bool",kind:"storage",value:"bool",calculatedType:"bool",calculatedKind:"storage"},{title:"Byte",kind:"storage",value:"byte",calculatedType:"byte",calculatedKind:"storage"},{title:"Word",kind:"storage",value:"word",calculatedType:"word",calculatedKind:"storage"},{title:"Number",kind:"storage",value:"number",calculatedType:"number",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"},{title:"Object",kind:"storage",value:"object",calculatedType:"object",calculatedKind:"storage"},{title:"Image",kind:"storage",value:"image",calculatedType:"image",calculatedKind:"storage"},{title:"Blob",kind:"storage",value:"blob",calculatedType:"blob",calculatedKind:"storage"}],qD=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],YD=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],zD=[{label:"None",value:"none"},{label:"B-tree",value:"btree"},{label:"Cluster",value:"cluster"},{label:"Automatic",value:"auto"}],VD=(e,n)=>({toJSON:!0,extraProperties:n,dataClasses:e.map(t=>{var a;return{...t.data,extraProperties:{position:{x:t.position.x,y:t.position.y},panelColor:(a=t.data.extraProperties)==null?void 0:a.panelColor}}})});function KD(e,n,t){const a=e;let s=0;for(;t[`${a}${s||""}`];)s++;return`${a}${s||""}`}const lv=e=>e.kind===Zs.RELATEDENTITY,fv=e=>e.kind===Zs.RELATEDENTITIES,JD=e=>fv(e)||lv(e),XD=()=>Xr(e=>e.model.draft.dataClasses),ZD=()=>Xr(e=>e.model.draft.collections),QD=e=>Xr(n=>n.model.draft.dataClasses[e]),eI=(e,n)=>Xr(t=>t.model.draft.dataClasses[e].attributes.find(E.by("name",n))),tI=()=>Xr(e=>e.model.draft.extraProperties),rI=()=>{const e=Xr(s=>s.model.flags),n=s=>s in e?e[s]:void 0,t=n(no.DATACLASS_DELETE),a=n(no.DATACLASS_DRAGGABLE);return{deleteDataclass:t,draggableDataclass:a,flags:e}},nI=uv.reducer;function Bu(e,n){const t=e.tabs.find(({path:a})=>a===E.SETTINGS_TAB_PATH);t&&(t.flags.touched=n)}const dv={SIDEBAR_SECTION_RESIZABLE:"sidebar.section.resizable"},pv={[dv.SIDEBAR_SECTION_RESIZABLE]:!0},hv=lr({name:"webforms",initialState:()=>{const{webforms:e}=pa();return{...e,templates:{data:[],selectedGroup:""},datasources:{...Oc.webforms.datasources,...e==null?void 0:e.datasources},flags:pv}},reducers:{toggleInspector:(e,n)=>{const{type:t}=n.payload;e.inspector[t].active=!e.inspector[t].active,e.inspector[t].active||(e.inspector[t].data=void 0)},inspect:(e,n)=>{const{type:t,data:a}=n.payload;e.inspector[t].active&&(e.inspector[t].data=a)},addComponent:(e,n)=>{e.components.push(n.payload)},editComponent:(e,n)=>{const{id:t,changes:a}=n.payload;e.components=e.components.map(s=>s.id===t?{...s,...a}:s)},removeComponent:(e,n)=>{const{payload:t}=n,a=e.components.findIndex(s=>s.id===t);a!==-1&&e.components.splice(a,1)},setSelectedGroup:(e,n)=>{e.templates.selectedGroup=n.payload.selectedGroup},setTemplatesData:(e,n)=>{e.templates.data=n.payload},setTemplateData:(e,n)=>{const{group:t,components:a}=n.payload,s=e.templates.data.find(i=>i.group===t);s&&(s.components=a)},setDatasourcesTheme:(e,n)=>{e.datasources.theme=n.payload},setWebformsFlag(e,n){e.flags={...e.flags,...n.payload}}},extraReducers(e){e.addCase(_v.fulfilled,(n,t)=>{n.components=t.payload})}}),{toggleInspector:aI,inspect:oI,addComponent:gv,editComponent:vv,removeComponent:yv,setSelectedGroup:sI,setTemplatesData:mv,setTemplateData:bv,setDatasourcesTheme:iI,setWebformsFlag:uI}=hv.actions,cI=hv.reducer,el=Ke.curry((e,n)=>{var s,i;const t={...n.sharedDatasources.sources},a=(i=((s=n.root.tabs.find(E.by("path",e)))==null?void 0:s.content).metadata)==null?void 0:i.datasources;return a&&(t[e]=a),Ke.cloneDeep(t)}),lI=re("webforms/fetchTemplates",async(e,{dispatch:n,getState:t})=>{const{data:a}=t().webforms.templates,s=t().settings.session["studio.tipsBaseUrl"]||"";if(!Ke.isEmpty(a))return a;try{const c=await(await fetch(`${s}/build/index.json?t=${Date.now()}`)).json();return n(mv(c)),c}catch{return[]}}),fI=re("webforms/fetchTemplate",async({name:e},{dispatch:n,getState:t})=>{const{data:a}=t().webforms.templates,s=a.find(i=>i.group===e);if(s&&!Ke.isEmpty(s.components))return s.components;try{const c=await(await fetch(`${s==null?void 0:s.link}?t=${Date.now()}`)).json();return n(bv({group:e,components:c})),c}catch{return[]}}),_v=re("webforms/fetchCraftedComponents",async(e,{rejectWithValue:n})=>{try{return(await E.getNodeInfo({path:"WebForms/crafted_components.json",verb:E.DesignerRequestVerb.GET_INFO,content:!0,as:"json"})).content}catch{return n("Error while loading the crafted components")}}),dI=re("webforms/addCraftedComponent",async(e,{dispatch:n,rejectWithValue:t,getState:a})=>{try{n(gv(e));const{webforms:{components:s}}=a();E.setCraftedComponents(s)}catch{return t("Error while adding the crafted component")}}),pI=re("webforms/editCraftedComponent",async(e,{dispatch:n,rejectWithValue:t,getState:a})=>{try{n(vv(e));const{webforms:{components:s}}=a();E.setCraftedComponents(s)}catch{return t("Error while editing the crafted component")}}),hI=re("webforms/removeCraftedComponent",async(e,{dispatch:n,rejectWithValue:t,getState:a})=>{try{n(yv(e));const{webforms:{components:s}}=a();E.setCraftedComponents(s)}catch{return t("Error while removing the crafted component")}}),tl=re("datasources/add-datasource",async(e,{getState:n,rejectWithValue:t})=>{var a,s;try{const i=n(),c=e.datasource,l=!!c.namespace,d=[];if(l){const p={...i.sharedDatasources.sources,[c.namespace]:[...i.sharedDatasources.sources[c.namespace],c]};d.push(...p[c.namespace]),await E.setSharedSources(p)}else(((s=(a=i.root.tabs.find(E.by("path",e.path)).content)==null?void 0:a.metadata)==null?void 0:s.datasources)||[]).push(c);return{list:d,path:e.path,namespace:e.datasource.namespace}}catch{console.error("Error while adding the datasource",e.datasource.id),t("Error while adding the datasource")}}),rl=re("datasources/edit-datasource",async(e,{getState:n,rejectWithValue:t})=>{try{const{namespace:a,path:s}=e,i=n(),c=!!e.namespace,l=el(s,i);let d=Ke.defaultTo(l[a||s],[]);return d=d.map(p=>p.id===e.id?{...p,[e.property]:e.value}:p),c&&await E.setSharedSources({...i.sharedDatasources.sources,[e.namespace]:d}),{list:d,path:e.path,namespace:e.namespace}}catch{t(`Error while editing datasource ${e.id}`)}}),gI=e=>e.type===fa.fulfilled.type,fa=re("datasources/rename-datasource",async(e,{getState:n,rejectWithValue:t})=>{try{const a=n(),s=!!e.namespace,i=e.namespace||e.path,c=el(e.path,a),l=Ke.defaultTo(c[i],[]),d=new RegExp(`^${e.id}\\b`,"");if(l.forEach(p=>{var b;const h=(E.isObjectDatasource(p)||!E.isSimpleDatasource(p))&&p.from&&d.test(p.from);e.updateRefs&&((b=p.events)==null||b.forEach(_=>{var S,T,x,F,D;switch(_.type){case"method":{const W=_;W.params.forEach($=>{$.datasource&&Object.assign($,{datasource:$.datasource.replace(new RegExp(`^${e.id}`,""),e.new_name)})}),W.returns&&Object.assign(W.returns,{datasource:(T=(S=W.returns)==null?void 0:S.datasource)==null?void 0:T.replace(new RegExp(`^${e.id}`,""),e.new_name)});return}case"simple-action":{const W=_;W.datasource&&Object.assign(W.datasource,{name:(x=W.datasource.name)==null?void 0:x.replace(new RegExp(`^${e.id}`,""),e.new_name),from:(F=W.datasource.from)==null?void 0:F.replace(new RegExp(`^${e.id}`,""),e.new_name),target:(D=W.datasource.target)==null?void 0:D.replace(new RegExp(`^${e.id}`,""),e.new_name)});return}default:return}})),p.id===e.id?p.id=e.new_name:h&&p.from&&(p.from=p.from.replace(new RegExp(`^${e.id}`,""),e.new_name))}),e.updateRefs){const p=E.getDatasourceId({id:e.id,namespace:e.namespace}),h=E.getDatasourceId({id:e.new_name,namespace:e.namespace});E.datasourcesSubject.next({path:e.path??"",action:E.DatasourcesActions.RENAME,old_reference:p,new_reference:h,is_shared:s})}return s&&await E.setSharedSources({...a.sharedDatasources.sources,[e.namespace]:l}),{list:l,path:e.path,namespace:e.namespace}}catch{return t(`Error while renaming datasource ${e.namespace}:${e.id}`)}}),Za=re("datasources/delete-datasource",async(e,{getState:n,rejectWithValue:t})=>{try{const a=n(),s=!!e.namespace,i=e.namespace||e.path,l=el(e.path,a)[i].filter(E.outById(e.id));return s&&await E.setSharedSources({...a.sharedDatasources.sources,[e.namespace]:l}),{list:l,path:e.path,namespace:e.namespace}}catch{return t(`Error while removing datasource ${e.id}`)}}),ao=lr({name:"root",initialState:()=>{const e=pa();return{filesLoading:!1,tabs:e.tabs||[],activeTab:e.activeTab,recent:e.recent||[]}},reducers:{setPanelState(e,n){const{path:t,...a}=n.payload;e.tabs.forEach(s=>{s.path===t&&(s.view||(s.view={panel:{isOpen:!1,type:"",current:""}}),Object.assign(s.view.panel,a))})},addDataSource(e,n){var i;const{payload:{path:t,datasourceDef:a}}=n,s=e.tabs.find(c=>c.path===t);s&&(s.content.metadata.datasources=s.content.metadata.datasources||[],(i=s.content.metadata.datasources)!=null&&i.find(l=>l.id===a.id)||(s.content.metadata.datasources=[...s.content.metadata.datasources,{...a,events:[]}],s.flags={...s.flags,touched:!0,confirmed:!0}))},openSettingsTab(e){const n={date:new Date().toISOString(),flags:{confirmed:!0},view:{panel:{isOpen:!1,type:"",current:""}},extra:{editor:{key:"editors:settings"}},name:"Settings",path:E.SETTINGS_TAB_PATH,type:E.FileFolderType.SETTINGS,initialContent:{},content:{}};let t=e.tabs.find(a=>a.path===n.path);if(t||(e.tabs.push(n),t=e.tabs[e.tabs.length-1]),e.activeTab!==n.path){const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);e.activeTab=n.path,t.weight=((a==null?void 0:a.weight)||0)+1}},removeDataSource(e,n){const{path:t,datasourceID:a}=n.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:{...s.content,metadata:{...s.content.metadata,datasources:s.content.metadata.datasources.filter(i=>i.id!==a)}}}:s)},setDataSources(e,n){const{payload:{path:t,datasourceArr:a}}=n;e.tabs=e.tabs.map(s=>{var i;return s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:{...s.content,metadata:{...(i=s.content)==null?void 0:i.metadata,datasources:a}}}:s})},setTabs(e,n){e.tabs=n.payload},closeTab(e,n){const t=n.payload;e.tabs.splice(t,1);const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);e.activeTab=(a==null?void 0:a.path)||""},closeOthers(e,n){e.tabs=e.tabs.filter(t=>t.path===n.payload),e.activeTab=n.payload},closeAllTabs(e){e.tabs=[],e.activeTab=""},closeRightTabs(e,n){e.tabs.splice(n.payload+1),e.activeTab=e.tabs[n.payload].path},closeLeftTabs(e,n){e.tabs.splice(0,n.payload)},closeSavedTabs(e){e.tabs=e.tabs.filter(({flags:{touched:t}})=>t);const n=e.tabs.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null);e.activeTab=(n==null?void 0:n.path)||""},confirmTab(e,n){const t=e.tabs.find(({path:a})=>a===n.payload);t&&(t.flags.confirmed||ao.caseReducers.setTabFlags(e,{type:n.type,payload:{path:n.payload,flags:{confirmed:!0}}}))},selectTab(e,n){const t=e.tabs.find(({path:s})=>s===n.payload);if(!t||e.activeTab===n.payload)return;const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);t.weight=a?(a.weight||0)+1:1,e.activeTab=n.payload},openTabUnselected(e,n){const t=n.payload;let a=e.tabs.find(({path:i})=>t.path===i);a||(e.tabs.push(t),a=e.tabs[e.tabs.length-1]);const s=e.tabs.reduce((i,c)=>(c==null?void 0:c.weight)>((i==null?void 0:i.weight)||0)?c:i,null);a.weight=s?(s.weight||0)+1:1,a.extra={...a.extra,...t.extra}},selectTabByReference(e,n){const t=[E.FileFolderType.DEBUGGER],{isNew:a,...s}=n.payload;let i=s,c=e.tabs.find(({path:l})=>i.path===l);if((t.includes(i.type)||c!=null&&c.flags.confirmed)&&(i={...i,flags:{...i.flags,confirmed:!0}}),!c){const l=e.tabs.findIndex(({flags:{confirmed:d}})=>d===!1);l!==-1&&!t.includes(i.type)&&!a?e.activeTab===e.tabs[l].path?(e.tabs[l]=i,c=e.tabs[l]):(e.tabs.push(i),c=e.tabs[e.tabs.length-1],e.tabs.splice(l,1)):(e.tabs.push(i),c=e.tabs[e.tabs.length-1])}if(e.activeTab!==i.path){const l=e.tabs.reduce((d,p)=>(p==null?void 0:p.weight)>((d==null?void 0:d.weight)||0)?p:d,null);e.activeTab=i.path,c.weight=((l==null?void 0:l.weight)||0)+1}c.extra={...c.extra,...i.extra},c.flags={...c.flags||{},...i.flags||{}}},setContent(e,n){const{path:t,content:a,contentPath:s}=n.payload;e.tabs=e.tabs.map(i=>{if(i.path!==t)return i;let c=!1,l=i.flags.confirmed;if(typeof a=="string")c=i.initialContent!==a,l=!l&&c?!0:l;else{const d=JSON.stringify(Ke.get(i.initialContent,s||"",i.initialContent)),p=JSON.stringify(Ke.get(a,s||"",a));c=d!==p,l=!l&&c?!0:l}return a&&typeof a=="object"&&(s?Ke.set(i.content,s,a):i.content=a),typeof a=="string"&&(i.content=a),{...i,flags:{...i.flags,touched:c,confirmed:l}}})},setTabFlags(e,n){const{path:t,flags:a}=n.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,...a}}:s)},setTabsFlags(e,n){const{tabs:t,flags:a}=n.payload;e.tabs=e.tabs.map(s=>t.includes(s.path)?{...s,flags:{...s.flags,...a}}:s)},setTabExtra(e,n){const{path:t,extra:a,flags:s}=n.payload;e.tabs=e.tabs.map(i=>i.path===t?{...i,extra:{...i.extra,...a},flags:s?{...i.flags,...s}:i.flags}:i)},addWebFormStyles(e,n){const{path:t,styles:a=[]}=n.payload,s=e.tabs.find(i=>i.path===t);if(s){const i=s.content.metadata.styles.map(({name:l})=>l),c=a.filter(({name:l})=>!i.includes(l));s.content.metadata.styles=[...s.content.metadata.styles,...c].map(({scope:l,...d})=>({...d}))}},changeTabEditor(e,n){return e.tabs=e.tabs.map(t=>t.path===n.payload.path?n.payload:t),e}},extraReducers:e=>{e.addCase(lc,(n,t)=>{if(t.payload.settingsKey==="studio.enablePreview"&&t.payload.value===!1){const a=n.tabs.find(({flags:{confirmed:s}})=>s===!1);a&&ao.caseReducers.setTabFlags(n,{type:"",payload:{path:a.path,flags:{confirmed:!0}}})}}),e.addCase(ev.fulfilled,(n,t)=>{if(!t.payload)return;const{content:a,line:s,path:i}=t.payload,c=n.tabs.find(l=>l.path===i);if(c&&typeof c.content=="string"){const l=c.content.trim().split(`
|
|
128
|
+
`);l.splice(s,0,a),c.content=l.join(`
|
|
129
|
+
`)}}),e.addCase(la.pending,(n,t)=>{const{tab:a}=t.meta.arg;switch(a.type){case E.FileFolderType.CLASS:case E.FileFolderType.METHOD:E.lspSubject.next({action:E.LspActions.WILL_SAVE,payload:{filePath:a.path}});break}}),e.addCase(la.fulfilled,(n,t)=>{if(!t.payload)return;const a=n.tabs.find(({path:s})=>{var i;return s===((i=t.payload)==null?void 0:i.path)});if(a){switch(a.content=t.payload.content,a.date=t.payload.date,a.initialContent=t.payload.initialContent,a.flags.touched=!1,a.flags.confirmed=!0,a.flags.old=!1,a.type){case E.FileFolderType.CLASS:case E.FileFolderType.METHOD:E.lspSubject.next({action:E.LspActions.DID_SAVE,payload:{filePath:a.path,content:a.content}});break}t.payload.errors.length>0&&E.toastSubject.next({kind:"error",message:t.payload.errors})}}),e.addCase(la.rejected,(n,t)=>{E.toastSubject.next({kind:"danger",message:"Cannot save file"})}),e.addCase(rv.fulfilled,(n,t)=>{const a=[...t.payload.files];n.tabs=n.tabs.map(s=>{if([E.FileFolderType.CLASS,E.FileFolderType.METHOD].includes(s.type)){const i=a.find(c=>c.name===s.name&&c.type===s.type);if(i){const c=new Date(s.date),l=new Date(i.date);if(c.getTime()!==l.getTime())return{...s,flags:{...s.flags,old:!0}}}}return s})}),e.addCase(gc.pending,(n,t)=>{n.tabs=n.tabs.map(a=>a.path===t.meta.arg.path?{...a,flags:{...a.flags,loading:!0}}:a)}),e.addCase(gc.fulfilled,(n,t)=>{const a=t.payload;if(a){const s=t.meta.arg;n.tabs=n.tabs.map(i=>{if(i.name===s.name&&i.type===s.type){const c=i.extra||{};return i.type===E.FileFolderType.METHOD?(c.attributes=E.parseAttributes(a.content),a.content=E.addAttributesToContent(a.content,{})):i.type===E.FileFolderType.SETTINGS&&(a.content={}),{...i,initialContent:a.content,content:a.content,date:a.date,flags:{confirmed:i.flags.confirmed},extra:c}}return i})}}),e.addCase(Kc.fulfilled,(n,t)=>{if(!t.payload)return;const{line:a,offset:s}=t.meta.arg,i=n.tabs.find(({path:c})=>{var l;return c===((l=t.payload)==null?void 0:l.path)});i&&(i.extra={...i.extra,initialLineInfo:{line:a,offset:s,lastModification:Date.now()}})}),e.addCase(tv.fulfilled,(n,t)=>{if(!t.payload)return;const{selection:a}=t.meta.arg,s=n.tabs.find(({path:i})=>{var c;return i===((c=t.payload)==null?void 0:c.path)});s&&(s.extra={...s.extra,initialSelectionInfo:{selection:a,lastModification:Date.now()}})}),e.addCase(ca.fulfilled,(n,t)=>{t.payload.new!==t.payload.old&&(n.tabs=[...n.tabs].map(a=>a.path===t.payload.old.path?{...a,path:t.payload.new.path,name:t.payload.new.name}:a),n.activeTab===t.payload.old.path&&(n.activeTab=t.payload.new.path))}),e.addCase(hc.pending,(n,t)=>{const a=t.meta.arg,s=`${a.path}${a.ext?`.${a.ext}`:""}`;switch(a.ext){case"4dm":case"4qs":E.lspSubject.next({action:E.LspActions.WILL_DELETE,payload:{filePath:s}});break}}),e.addCase(hc.fulfilled,(n,t)=>{const{deleted:a,node:s}=t.payload;if(!a)return;const i=`${s.path}${s.ext?`.${s.ext}`:""}`;switch(s.ext){case"4dm":case"4qs":E.lspSubject.next({action:E.LspActions.DID_DELETE,payload:{filePath:i}});break}if(n.tabs=n.tabs.filter(c=>c.path!==i),n.recent=n.recent.filter(({path:c})=>i!==c),n.tabs.length){n.activeTab=n.tabs[n.tabs.length-1].path;return}n.activeTab=""}),e.addCase(Xa.fulfilled,(n,t)=>{const{draggedNode:a,newLocation:s}=t.meta.arg;if(n.tabs.find(i=>i.path===`${a.path}${a.ext?`.${a.ext}`:""}`))return n.tabs=n.tabs.map(i=>i.path===`${a.path}${a.ext?`.${a.ext}`:""}`?{...i,path:`${s.path}/${a.name}.${a.ext}`}:i),n.recent=n.recent.map(i=>i.path===`${a.path}${a.ext?`.${a.ext}`:""}`?{...i,path:`${s.path}/${a.name}.${a.ext}`}:i),n.activeTab=`${s.path}/${a.name}.${a.ext}`,n}),e.addCase(As.fulfilled,(n,t)=>{const a=n.tabs.find(s=>s.path===t.payload.path);a&&(a.flags.touched=!1,a.flags.confirmed=!0,a.date=t.payload.date,a.content=t.payload.content,a.initialContent=t.payload.content)}),e.addCase(nv.fulfilled,(n,t)=>{var i;if(!((i=t.payload)!=null&&i.path))return;const a=n.tabs.find(E.by("path",t.payload.path));if(!a)return;a.content=a.content+`
|
|
130
|
+
exposed Function ${t.meta.arg.name}()
|
|
131
|
+
`,a.flags={...a.flags,touched:!0,confirmed:!0};const s=a.content.split(`
|
|
132
|
+
`);a.extra={...a.extra,editor:E.EDITOR.Code,initialLineInfo:{line:s.length-1,lastModification:Date.now()}}}),e.addCase(Jc.fulfilled,(n,t)=>{var i,c;if(!((i=t.payload)!=null&&i.path)||(c=t.payload)!=null&&c.namespace)return;const a=t.payload.path,s=n.tabs.find(E.by("path",a));!s||!s.content||!s.content.metadata||(Object.assign(s.content.metadata,{datasources:t.payload.datasources}),s.flags.touched=!0,s.flags.confirmed=!0)}),e.addCase(Xc.fulfilled,(n,t)=>{const{payload:a,meta:{arg:s}}=t;s.namespace||n.tabs.forEach(i=>{i.path===s.path&&Object.assign(i.content,{metadata:{...i.content.metadata,datasources:a}})})}),e.addCase(iv.fulfilled,(n,t)=>{const{staleThreadIds:a}=t.payload;if(a.length===0)return;const s=a.map(i=>`Debugger/${i}`);if(n.tabs=n.tabs.filter(i=>!s.includes(i.path)),n.recent=n.recent.filter(({path:i})=>!s.includes(i)),n.tabs.length){n.activeTab=n.tabs[n.tabs.length-1].path;return}n.activeTab=""}),e.addCase(Vc.pending,n=>Bu(n,!1)),e.addMatcher(_r(lc),(n,t)=>{["project"].includes(t.payload.path)&&Bu(n,!0)}),e.addMatcher(_r(Js),(n,t)=>{Bu(n,!1)}),e.addMatcher(_r(Rv,Lt),(n,t)=>{const{payload:a}=t;let s;typeof a=="string"?s=n.tabs.find(({path:i})=>a===i):s=a,s&&(n.recent=[s,...n.recent.filter(({path:i})=>![s.path,"settings"].includes(i))])}),e.addMatcher(_r(qg,Gg),(n,t)=>{n.tabs=n.tabs.map(a=>a.path===E.ROLES_TAB_PATH?{...a,flags:{...a.flags,confirmed:!0,touched:!0}}:a)}),e.addMatcher(_r(zc),(n,t)=>{n.tabs=n.tabs.map(a=>a.path===E.ROLES_TAB_PATH?{...a,flags:{...a.flags,touched:!1}}:a)}),e.addMatcher(_r(tl.fulfilled,rl.fulfilled,Za.fulfilled,fa.fulfilled),(n,t)=>{var s,i,c;const a=n.tabs.find(E.by("path",((s=t.payload)==null?void 0:s.path)||t.meta.arg.path));!a||(i=t.payload)!=null&&i.namespace||(a.flags.touched=!0,a.flags.confirmed=!0,Object.assign(a.content,{metadata:{...a.content.metadata,datasources:(c=t.payload)==null?void 0:c.list}}))}),e.addMatcher(_r(Za.fulfilled,fa.fulfilled),(n,t)=>{var l;const a=n.tabs.find(E.by("path",((l=t.payload)==null?void 0:l.path)||t.meta.arg.path));if(!a)return;const{panel:s}=a.view,i=E.getDatasourceId({id:t.meta.arg.id,namespace:t.meta.arg.namespace});if(s.type==="datasource"&&s.current===i)switch(t.type){case Za.fulfilled.type:Object.assign(a.view.panel,{type:"component",current:yR});break;case fa.fulfilled.type:const d=E.getDatasourceId({id:t.meta.arg.new_name,namespace:t.meta.arg.namespace});Object.assign(a.view.panel,{type:"datasource",current:d});break}})}}),{setTabs:vI,closeTab:nl,setContent:Ev,setTabFlags:Sv,setTabsFlags:yI,setTabExtra:mI,closeAllTabs:wv,addDataSource:bI,closeRightTabs:Tv,closeOthers:Cv,closeLeftTabs:xv,closeSavedTabs:_I,setDataSources:EI,removeDataSource:SI,confirmTab:wI,selectTab:Rv,selectTabByReference:Lt,openTabUnselected:Ov,addWebFormStyles:TI,changeTabEditor:CI,openSettingsTab:xI,setPanelState:RI}=ao.actions,Av=ao.reducer,OI=av.reducer,kn=re("catalog/fetchCatalog",async(e,{rejectWithValue:n})=>{var t;try{const a=await E.getCatalog(),s=new Map,i=new Map;return(t=a==null?void 0:a.dataClasses)==null||t.forEach(({methods:c=[],...l})=>{if(l.uuid||Object.assign(l,{uuid:E.generateUUID()}),l.attributes){const p=["storage","relatedEntity"];l.attributes=l.attributes.map(h=>(p.includes(h.kind)&&!h.uuid&&Object.assign(h,{uuid:E.generateUUID()}),h))}const d={...l,methods:c};i.set(l.className,d),s.set(l.collectionName,d)}),{__BASEID:a.__BASEID,__UNIQID:a.__UNIQID,dataClassByCollectionName:Object.fromEntries(s.entries()),methods:a.methods||[],dataClasses:Object.fromEntries(i.entries())}}catch{return n("Error while loading the catalog")}}),AI=lr({name:"catalog",initialState:{state:"loading"},reducers:{},extraReducers(e){e.addCase(kn.pending,()=>({state:"loading"})).addCase(kn.fulfilled,(n,{payload:t})=>({state:"loaded",model:t})).addCase(kn.rejected,(n,t)=>({state:"error",error:t.payload||"Error while loading the catalog"}))}}),PI=AI.reducer,DI=Ng.reducer,ls=re("shared_datasources/fetchSharedSources",async(e,{rejectWithValue:n})=>{try{return await E.getSharedDatasources()}catch{return n("Error while loading the shared datasources")}}),Pv=re("shared_datasources/addSharedSource",async(e,{rejectWithValue:n,getState:t})=>{try{const a=JSON.parse(JSON.stringify(t().sharedDatasources));if(e.namespace)a.sources[e.namespace]?a.sources[e.namespace].push(e):a.sources[e.namespace]=[e];else return n("Namespace is required");return await E.setSharedSources(a.sources),a.sources}catch{return n("Error while saving the shared datasources")}}),Dv=re("shared_datasources/editSharedSource",async(e,{rejectWithValue:n,getState:t})=>{try{const a=t().sharedDatasources;if(!e.namespace)return n("Namespace is required");if(a.sources[e.namespace])a.sources[e.namespace]=a.sources[e.namespace].map(s=>s.id===e.id?{...e,id:s.id}:s);else return n("Namespace not found");return await E.setSharedSources(a.sources),a.sources}catch{return n("Error while saving the shared datasources")}}),Iv=re("shared_datasources/deleteSharedSource",async(e,{rejectWithValue:n,getState:t})=>{try{const a={...t().sharedDatasources};if(a.sources[e.namespace]){const s=a.sources[e.namespace].filter(i=>i.id!==e.id);if(s.length===0){const{[e.namespace]:i,...c}=a.sources;a.sources=c}else a.sources={...a.sources,[e.namespace]:s}}return await E.setSharedSources(a.sources),a.sources}catch{return n("Error while saving the shared datasources")}}),al=re("shared_datasources/updateSharedDatasources",async(e,{rejectWithValue:n,getState:t})=>{try{const a={...t().sharedDatasources};for(const s of e){if(!s.namespace)return n("Namespace is required");if(a.sources[s.namespace])a.sources[s.namespace]=a.sources[s.namespace].map(i=>i.id===s.id?s:i);else return n("Namespace not found")}return await E.setSharedSources(a.sources),a.sources}catch{return n("Error while saving the shared datasources")}}),II=re("shared_datasources/setDatasourceEvents",async({tabPath:e,name:n,namespace:t,events:a},{getState:s,dispatch:i})=>{var S,T,x;const{root:{tabs:c},sharedDatasources:l}=s(),d=((x=(T=(S=c.find(({path:F})=>F===e))==null?void 0:S.content)==null?void 0:T.metadata)==null?void 0:x.datasources)||[],p={local:!1,shared:!1},h=(F,D)=>F.id===n&&(!t&&!F.namespace||F.namespace===t)?(D==null||D(),{...F,events:a}):F,b=d.map(F=>h(F,()=>{p.local=!0})),_=Ke.flatten(Ke.values(l.sources)).map(F=>h(F,()=>{p.shared=!0}));p.local&&i(Ev({path:e,content:b,contentPath:"metadata.datasources"})),p.shared&&i(al(_))}),Fv=lr({name:"shared-datasources",initialState:{},reducers:{addEmptyNamespace(e,n){e.sources[n.payload.name]=[]}},extraReducers(e){e.addCase(ls.pending,n=>({state:"loading",sources:{}})).addCase(ls.fulfilled,(n,t)=>({state:"loaded",sources:t.payload})).addCase(ls.rejected,(n,t)=>({state:"error",sources:{},error:t.payload||"Error while loading the shared datasources"})).addCase(al.fulfilled,(n,t)=>({state:"loaded",sources:t.payload})).addCase(Xc.fulfilled,(n,t)=>{const{payload:a,meta:{arg:s}}=t;s.namespace&&Object.assign(n.sources,{[s.namespace]:a})}).addCase(Pv.fulfilled,(n,t)=>({...n,sources:t.payload})).addCase(Iv.fulfilled,(n,t)=>({...n,sources:t.payload})).addCase(Dv.fulfilled,(n,t)=>({...n,sources:t.payload})).addCase(Jc.fulfilled,(n,t)=>{if(!t.payload)return n;const{datasources:a,namespace:s}=t.payload;s&&n.sources[s]&&Object.assign(n.sources[s],{[s]:a})}).addMatcher(_r(tl.fulfilled,Za.fulfilled,rl.fulfilled,fa.fulfilled),(n,t)=>{if(!t.payload)return;const{namespace:a,list:s}=t.payload;a&&Object.assign(n.sources,{[a]:s})})}}),{addEmptyNamespace:FI}=Fv.actions,$I=Fv.reducer,MI=Vg.reducer,fs=re("shared_css/fetchSharedCSS",async(e,{rejectWithValue:n})=>{try{const{classes:t}=await E.getSharedCSS();return t}catch{return n("Error while loading the shared CSS")}}),NI=E.queue();async function LI(e){const n={verb:E.DesignerRequestVerb.SET_FILE_CONTENT,asText:!1,name:"shared_css.json",path:"",root:"shared",content:{classes:e.map(({scope:t,...a})=>({...a}))}};await NI(()=>E.http(E.API_PREFIX,{method:"POST",body:JSON.stringify(n),headers:new Headers({"Content-Type":"application/json"})}))}const $v=lr({name:"shared-css",initialState:()=>{const{sharedCSS:e}=pa();return e||{state:"loading",styles:[]}},reducers:{updateSharedCss:(e,n)=>(e.styles=n.payload.classes,LI(n.payload.classes),e),initSharedCss:(e,n)=>(e.styles=n.payload.classes,e)},extraReducers(e){e.addCase(fs.pending,n=>({...n,state:"loading"})).addCase(fs.fulfilled,(n,{payload:t})=>({state:"loaded",styles:t})).addCase(fs.rejected,(n,t)=>({...n,state:"error",error:t.payload||"Error while loading the shared css"}))}}),{updateSharedCss:jI,initSharedCss:kI}=$v.actions,BI=$v.reducer,WI={},UI=lr({name:"tabs",initialState:WI,reducers:{}}),HI=e=>z(ba,n=>{var t,a;return(a=(t=n.find(s=>s.path===e))==null?void 0:t.view)==null?void 0:a.panel});UI.reducer;const Mv=rh({root:Av,explorer:MI,debugger:OI,settings:zP,catalog:PI,roles:HP,sharedDatasources:$I,webforms:cI,modals:DI,sharedCSS:BI,model:nI});let Ga;const Nv=()=>(Ga||(Ga=US({reducer:Mv}),Ga.subscribe(tT(()=>{const{root:{activeTab:e,tabs:n,recent:t},roles:a,debugger:s,webforms:i,sharedCSS:c,settings:{session:l}}=Ga.getState();Sh({...l}),Eh({tabs:n,activeTab:e,recent:t,roles:a,debugger:s,webforms:i,sharedCSS:c})},1e3))),Ga);var vc={exports:{}},sa={};/** @license React v17.0.2
|
|
133
|
+
* react-jsx-runtime.production.min.js
|
|
134
|
+
*
|
|
135
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
136
|
+
*
|
|
137
|
+
* This source code is licensed under the MIT license found in the
|
|
138
|
+
* LICENSE file in the root directory of this source tree.
|
|
139
|
+
*/var Kp;function GI(){if(Kp)return sa;Kp=1,Ic();var e=dt,n=60103;if(sa.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var t=Symbol.for;n=t("react.element"),sa.Fragment=t("react.fragment")}var a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,i={key:!0,ref:!0,__self:!0,__source:!0};function c(l,d,p){var h,b={},_=null,S=null;p!==void 0&&(_=""+p),d.key!==void 0&&(_=""+d.key),d.ref!==void 0&&(S=d.ref);for(h in d)s.call(d,h)&&!i.hasOwnProperty(h)&&(b[h]=d[h]);if(l&&l.defaultProps)for(h in d=l.defaultProps,d)b[h]===void 0&&(b[h]=d[h]);return{$$typeof:n,type:l,key:_,ref:S,props:b,_owner:a.current}}return sa.jsx=c,sa.jsxs=c,sa}var Wu={};/** @license React v17.0.2
|
|
140
|
+
* react-jsx-runtime.development.js
|
|
141
|
+
*
|
|
142
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
143
|
+
*
|
|
144
|
+
* This source code is licensed under the MIT license found in the
|
|
145
|
+
* LICENSE file in the root directory of this source tree.
|
|
146
|
+
*/var Jp;function qI(){return Jp||(Jp=1,function(e){process.env.NODE_ENV!=="production"&&function(){var n=dt,t=Ic(),a=60103,s=60106;e.Fragment=60107;var i=60108,c=60114,l=60109,d=60110,p=60112,h=60113,b=60120,_=60115,S=60116,T=60121,x=60122,F=60117,D=60129,W=60131;if(typeof Symbol=="function"&&Symbol.for){var $=Symbol.for;a=$("react.element"),s=$("react.portal"),e.Fragment=$("react.fragment"),i=$("react.strict_mode"),c=$("react.profiler"),l=$("react.provider"),d=$("react.context"),p=$("react.forward_ref"),h=$("react.suspense"),b=$("react.suspense_list"),_=$("react.memo"),S=$("react.lazy"),T=$("react.block"),x=$("react.server.block"),F=$("react.fundamental"),$("react.scope"),$("react.opaque.id"),D=$("react.debug_trace_mode"),$("react.offscreen"),W=$("react.legacy_hidden")}var j=typeof Symbol=="function"&&Symbol.iterator,A="@@iterator";function K(g){if(g===null||typeof g!="object")return null;var R=j&&g[j]||g[A];return typeof R=="function"?R:null}var G=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Y(g){{for(var R=arguments.length,I=new Array(R>1?R-1:0),q=1;q<R;q++)I[q-1]=arguments[q];ie("error",g,I)}}function ie(g,R,I){{var q=G.ReactDebugCurrentFrame,ae=q.getStackAddendum();ae!==""&&(R+="%s",I=I.concat([ae]));var oe=I.map(function(ee){return""+ee});oe.unshift("Warning: "+R),Function.prototype.apply.call(console[g],console,oe)}}var We=!1;function Oe(g){return!!(typeof g=="string"||typeof g=="function"||g===e.Fragment||g===c||g===D||g===i||g===h||g===b||g===W||We||typeof g=="object"&&g!==null&&(g.$$typeof===S||g.$$typeof===_||g.$$typeof===l||g.$$typeof===d||g.$$typeof===p||g.$$typeof===F||g.$$typeof===T||g[0]===x))}function st(g,R,I){var q=R.displayName||R.name||"";return g.displayName||(q!==""?I+"("+q+")":I)}function Z(g){return g.displayName||"Context"}function we(g){if(g==null)return null;if(typeof g.tag=="number"&&Y("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case e.Fragment:return"Fragment";case s:return"Portal";case c:return"Profiler";case i:return"StrictMode";case h:return"Suspense";case b:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case d:var R=g;return Z(R)+".Consumer";case l:var I=g;return Z(I._context)+".Provider";case p:return st(g,g.render,"ForwardRef");case _:return we(g.type);case T:return we(g._render);case S:{var q=g,ae=q._payload,oe=q._init;try{return we(oe(ae))}catch{return null}}}return null}var Xe=0,Ze,Ue,et,Dt,H,V,ve;function he(){}he.__reactDisabledLog=!0;function le(){{if(Xe===0){Ze=console.log,Ue=console.info,et=console.warn,Dt=console.error,H=console.group,V=console.groupCollapsed,ve=console.groupEnd;var g={configurable:!0,enumerable:!0,value:he,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}Xe++}}function ye(){{if(Xe--,Xe===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:t({},g,{value:Ze}),info:t({},g,{value:Ue}),warn:t({},g,{value:et}),error:t({},g,{value:Dt}),group:t({},g,{value:H}),groupCollapsed:t({},g,{value:V}),groupEnd:t({},g,{value:ve})})}Xe<0&&Y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var se=G.ReactCurrentDispatcher,fe;function ue(g,R,I){{if(fe===void 0)try{throw Error()}catch(ae){var q=ae.stack.trim().match(/\n( *(at )?)/);fe=q&&q[1]||""}return`
|
|
147
|
+
`+fe+g}}var me=!1,ge;{var J=typeof WeakMap=="function"?WeakMap:Map;ge=new J}function N(g,R){if(!g||me)return"";{var I=ge.get(g);if(I!==void 0)return I}var q;me=!0;var ae=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var oe;oe=se.current,se.current=null,le();try{if(R){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(ut){q=ut}Reflect.construct(g,[],ee)}else{try{ee.call()}catch(ut){q=ut}g.call(ee.prototype)}}else{try{throw Error()}catch(ut){q=ut}g()}}catch(ut){if(ut&&q&&typeof ut.stack=="string"){for(var Q=ut.stack.split(`
|
|
148
|
+
`),Ie=q.stack.split(`
|
|
149
|
+
`),be=Q.length-1,Ee=Ie.length-1;be>=1&&Ee>=0&&Q[be]!==Ie[Ee];)Ee--;for(;be>=1&&Ee>=0;be--,Ee--)if(Q[be]!==Ie[Ee]){if(be!==1||Ee!==1)do if(be--,Ee--,Ee<0||Q[be]!==Ie[Ee]){var at=`
|
|
150
|
+
`+Q[be].replace(" at new "," at ");return typeof g=="function"&&ge.set(g,at),at}while(be>=1&&Ee>=0);break}}}finally{me=!1,se.current=oe,ye(),Error.prepareStackTrace=ae}var Ft=g?g.displayName||g.name:"",xn=Ft?ue(Ft):"";return typeof g=="function"&&ge.set(g,xn),xn}function Ge(g,R,I){return N(g,!1)}function qe(g){var R=g.prototype;return!!(R&&R.isReactComponent)}function it(g,R,I){if(g==null)return"";if(typeof g=="function")return N(g,qe(g));if(typeof g=="string")return ue(g);switch(g){case h:return ue("Suspense");case b:return ue("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case p:return Ge(g.render);case _:return it(g.type,R,I);case T:return Ge(g._render);case S:{var q=g,ae=q._payload,oe=q._init;try{return it(oe(ae),R,I)}catch{}}}return""}var vn={},It=G.ReactDebugCurrentFrame;function er(g){if(g){var R=g._owner,I=it(g.type,g._source,R?R.type:null);It.setExtraStackFrame(I)}else It.setExtraStackFrame(null)}function _a(g,R,I,q,ae){{var oe=Function.call.bind(Object.prototype.hasOwnProperty);for(var ee in g)if(oe(g,ee)){var Q=void 0;try{if(typeof g[ee]!="function"){var Ie=Error((q||"React class")+": "+I+" type `"+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[ee]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ie.name="Invariant Violation",Ie}Q=g[ee](R,ee,q,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(be){Q=be}Q&&!(Q instanceof Error)&&(er(ae),Y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",q||"React class",I,ee,typeof Q),er(null)),Q instanceof Error&&!(Q.message in vn)&&(vn[Q.message]=!0,er(ae),Y("Failed %s type: %s",I,Q.message),er(null))}}}var bt=G.ReactCurrentOwner,pt=Object.prototype.hasOwnProperty,Ir={key:!0,ref:!0,__self:!0,__source:!0},wr,yn,qt;qt={};function Ea(g){if(pt.call(g,"ref")){var R=Object.getOwnPropertyDescriptor(g,"ref").get;if(R&&R.isReactWarning)return!1}return g.ref!==void 0}function Fr(g){if(pt.call(g,"key")){var R=Object.getOwnPropertyDescriptor(g,"key").get;if(R&&R.isReactWarning)return!1}return g.key!==void 0}function Tr(g,R){if(typeof g.ref=="string"&&bt.current&&R&&bt.current.stateNode!==R){var I=we(bt.current.type);qt[I]||(Y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',we(bt.current.type),g.ref),qt[I]=!0)}}function mn(g,R){{var I=function(){wr||(wr=!0,Y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",R))};I.isReactWarning=!0,Object.defineProperty(g,"key",{get:I,configurable:!0})}}function bn(g,R){{var I=function(){yn||(yn=!0,Y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",R))};I.isReactWarning=!0,Object.defineProperty(g,"ref",{get:I,configurable:!0})}}var _n=function(g,R,I,q,ae,oe,ee){var Q={$$typeof:a,type:g,key:R,ref:I,props:ee,_owner:oe};return Q._store={},Object.defineProperty(Q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Q,"_self",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.defineProperty(Q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ae}),Object.freeze&&(Object.freeze(Q.props),Object.freeze(Q)),Q};function En(g,R,I,q,ae){{var oe,ee={},Q=null,Ie=null;I!==void 0&&(Q=""+I),Fr(R)&&(Q=""+R.key),Ea(R)&&(Ie=R.ref,Tr(R,ae));for(oe in R)pt.call(R,oe)&&!Ir.hasOwnProperty(oe)&&(ee[oe]=R[oe]);if(g&&g.defaultProps){var be=g.defaultProps;for(oe in be)ee[oe]===void 0&&(ee[oe]=be[oe])}if(Q||Ie){var Ee=typeof g=="function"?g.displayName||g.name||"Unknown":g;Q&&mn(ee,Ee),Ie&&bn(ee,Ee)}return _n(g,Q,Ie,ae,q,bt.current,ee)}}var dr=G.ReactCurrentOwner,$r=G.ReactDebugCurrentFrame;function _t(g){if(g){var R=g._owner,I=it(g.type,g._source,R?R.type:null);$r.setExtraStackFrame(I)}else $r.setExtraStackFrame(null)}var pr;pr=!1;function hr(g){return typeof g=="object"&&g!==null&&g.$$typeof===a}function Sn(){{if(dr.current){var g=we(dr.current.type);if(g)return`
|
|
151
|
+
|
|
152
|
+
Check the render method of \``+g+"`."}return""}}function Sa(g){{if(g!==void 0){var R=g.fileName.replace(/^.*[\\\/]/,""),I=g.lineNumber;return`
|
|
153
|
+
|
|
154
|
+
Check your code at `+R+":"+I+"."}return""}}var wn={};function Wn(g){{var R=Sn();if(!R){var I=typeof g=="string"?g:g.displayName||g.name;I&&(R=`
|
|
155
|
+
|
|
156
|
+
Check the top-level render call using <`+I+">.")}return R}}function en(g,R){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var I=Wn(R);if(wn[I])return;wn[I]=!0;var q="";g&&g._owner&&g._owner!==dr.current&&(q=" It was passed a child from "+we(g._owner.type)+"."),_t(g),Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,q),_t(null)}}function Tn(g,R){{if(typeof g!="object")return;if(Array.isArray(g))for(var I=0;I<g.length;I++){var q=g[I];hr(q)&&en(q,R)}else if(hr(g))g._store&&(g._store.validated=!0);else if(g){var ae=K(g);if(typeof ae=="function"&&ae!==g.entries)for(var oe=ae.call(g),ee;!(ee=oe.next()).done;)hr(ee.value)&&en(ee.value,R)}}}function wa(g){{var R=g.type;if(R==null||typeof R=="string")return;var I;if(typeof R=="function")I=R.propTypes;else if(typeof R=="object"&&(R.$$typeof===p||R.$$typeof===_))I=R.propTypes;else return;if(I){var q=we(R);_a(I,g.props,"prop",q,g)}else if(R.PropTypes!==void 0&&!pr){pr=!0;var ae=we(R);Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ae||"Unknown")}typeof R.getDefaultProps=="function"&&!R.getDefaultProps.isReactClassApproved&&Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ta(g){{for(var R=Object.keys(g.props),I=0;I<R.length;I++){var q=R[I];if(q!=="children"&&q!=="key"){_t(g),Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",q),_t(null);break}}g.ref!==null&&(_t(g),Y("Invalid attribute `ref` supplied to `React.Fragment`."),_t(null))}}function Cn(g,R,I,q,ae,oe){{var ee=Oe(g);if(!ee){var Q="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(Q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ie=Sa(ae);Ie?Q+=Ie:Q+=Sn();var be;g===null?be="null":Array.isArray(g)?be="array":g!==void 0&&g.$$typeof===a?(be="<"+(we(g.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):be=typeof g,Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",be,Q)}var Ee=En(g,R,I,ae,oe);if(Ee==null)return Ee;if(ee){var at=R.children;if(at!==void 0)if(q)if(Array.isArray(at)){for(var Ft=0;Ft<at.length;Ft++)Tn(at[Ft],g);Object.freeze&&Object.freeze(at)}else Y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Tn(at,g)}return g===e.Fragment?Ta(Ee):wa(Ee),Ee}}function Un(g,R,I){return Cn(g,R,I,!0)}function Ca(g,R,I){return Cn(g,R,I,!1)}var xa=Ca,Ra=Un;e.jsx=xa,e.jsxs=Ra}()}(Wu)),Wu}process.env.NODE_ENV==="production"?vc.exports=GI():vc.exports=qI();var YI=vc.exports;const zI=({children:e,store:n})=>YI.jsx(og,{store:n,children:e});exports.CATALOG_REFRESH_DELAY=$s;exports.DEFAULT_CACHE=Oc;exports.EAttributeKind=Zs;exports.EAttributeTypes=cv;exports.EDebuggerErrorReason=yh;exports.EDebuggerErrorType=ms;exports.EDebuggerState=Gr;exports.EDisplayMode=Bc;exports.EPermissionType=Me;exports.ETooltipBehavior=kc;exports.ExpressionIndex=vh;exports.FLAGS_INIT_STATE=pv;exports.FLAGS_KEYS=no;exports.ModalCloseReason=Gc;exports.ModalColor=Dr;exports.ModalIcons=BP;exports.ModalType=Gt;exports.ReduxProvider=zI;exports.THEME_CLASSES=_g;exports.WT_FLAGS_KEYS=dv;exports.actionsToPrivs=Dg;exports.addBreakpointDecoration=yD;exports.addComponent=gv;exports.addCraftedComponent=dI;exports.addDataSource=bI;exports.addDatasource=tl;exports.addEmptyNamespace=FI;exports.addExpression=SD;exports.addIn=gP;exports.addNewFile=Kg;exports.addPermission=EP;exports.addSession=AD;exports.addSharedSource=Pv;exports.addWebFormStyles=TI;exports.allowed=pP;exports.attributeKinds=UD;exports.attributeScopes=YD;exports.attributeTypes=GD;exports.castToFileFolder=eD;exports.changeTabEditor=CI;exports.children=Rs;exports.clearBreakpoints=_D;exports.closeAllTabs=wv;exports.closeLeftTabs=xv;exports.closeModal=IP;exports.closeOthers=Cv;exports.closeRightTabs=Tv;exports.closeSavedTabs=_I;exports.closeTab=nl;exports.confirmTab=wI;exports.create=Pg;exports.createModal=Lg;exports.createModelFiles=pc;exports.createNewFile=ua;exports.createNewFileAndOpen=oD;exports.createNewNode=us;exports.createRole=AP;exports.createWithResource=yP;exports.dataclassScopes=qD;exports.deleteDatasource=Za;exports.deleteFile=hc;exports.deleteFolder=sD;exports.deleteSharedSource=Iv;exports.deserializeModel=Th;exports.duplicateNode=cs;exports.editComponent=vv;exports.editCraftedComponent=pI;exports.editDataSource=Xc;exports.editDatasource=rl;exports.editModal=FP;exports.editRole=OP;exports.editSharedSource=Dv;exports.editors=Gh;exports.executeMethod=uD;exports.expandFolder=JP;exports.extensions=qh;exports.fetchAppSettings=Yg;exports.fetchCatalog=kn;exports.fetchChanges=rv;exports.fetchCraftedComponents=_v;exports.fetchFiles=cD;exports.fetchFolderContent=Ar;exports.fetchFolderContentWithoutExpanding=Ka;exports.fetchModel=Qc;exports.fetchRoles=Os;exports.fetchRolesChanges=Ug;exports.fetchSettings=Vc;exports.fetchSharedCss=fs;exports.fetchSharedDatasources=ls;exports.fetchTemplate=fI;exports.fetchTemplates=lI;exports.findNodeByPath=vt;exports.findOne=jn;exports.findSession=ft;exports.findSessionByPath=gg;exports.getCachedState=pa;exports.getCashedPrefrences=wh;exports.getDebuggerTabName=Dh;exports.getDebuggerTabPath=Pc;exports.getDefaultContent=Jg;exports.getDefaultName=KD;exports.getDictByName=Fg;exports.getEditors=Er;exports.getExtension=zh;exports.getFilePath=Qg;exports.getFileType=Zg;exports.getFilenameFromType=Xg;exports.getGraphData=_P;exports.getInheritedResources=Mg;exports.getModalTitle=Ms;exports.getNodeRelativePath=Yh;exports.getPrivilegeById=Qr;exports.getPromotions=CP;exports.getResourceFromType=Hc;exports.getStore=Nv;exports.indexTypes=zD;exports.initSharedCss=kI;exports.injectContentAtLine=ev;exports.inspect=oI;exports.isJSON=Ch;exports.isRelatedAttr=JD;exports.isRelatedEntitiesAttr=fv;exports.isRelatedEntityAttr=lv;exports.isRenameDatasource=gI;exports.isRolesOutdated=qc;exports.isValidPrimaryKey=WD;exports.modelSubject=eg;exports.openAddFileInput=XP;exports.openFile=Ja;exports.openFileAtLine=Kc;exports.openFileAtSelection=tv;exports.openModal=fr;exports.openModel=LD;exports.openRoles=vD;exports.openSettingsTab=xI;exports.openTabUnselected=Ov;exports.parents=zs;exports.populateShallow=bP;exports.primaryKeyAttributes=HD;exports.refreshFile=ZP;exports.reloadTab=gc;exports.relocateNode=Xa;exports.remove=hP;exports.removeAllExpressions=CD;exports.removeBreakpointDecoration=mD;exports.removeComponent=yv;exports.removeCraftedComponent=hI;exports.removeDataSource=SI;exports.removeDebuggerSessionsNotIn=iv;exports.removeExpression=TD;exports.removeFile=dc;exports.removeFileNode=iD;exports.removeFrom=vP;exports.removeModal=jg;exports.removePermission=SP;exports.removeRole=RP;exports.removeSession=DD;exports.removeSessionByIndex=ID;exports.rename=mP;exports.renameDataSource=Jc;exports.renameDatasource=fa;exports.renameExpression=wD;exports.renameFile=ca;exports.resetResources=wP;exports.rootReducer=Av;exports.sanitize=Vs;exports.sanitizePermissions=Ig;exports.sanitizePrivileges=Og;exports.saveAll=lD;exports.saveExpressions=OD;exports.saveModel=As;exports.savePrefrences=Sh;exports.saveRole=PP;exports.saveRoles=cc;exports.saveState=Eh;exports.saveTab=la;exports.selectActiveLine=jO;exports.selectActiveTab=XO;exports.selectAllDatasourcesByPath=PO;exports.selectAppState=dg;exports.selectBreakpoints=FO;exports.selectCSSClassesByPath=RA;exports.selectCallChainVariables=zO;exports.selectCatalog=$c;exports.selectCatalogMethods=TO;exports.selectCatalogState=SO;exports.selectClassBreakpoints=MO;exports.selectClassOffset=KO;exports.selectClasses=lA;exports.selectClassesFolder=bg;exports.selectComponents=Sg;exports.selectComponentsByPath=OO;exports.selectContentByPath=vg;exports.selectCraftedComponent=FA;exports.selectCurrentFrameByThreadId=GO;exports.selectCurrentTab=QO;exports.selectDataclasses=wO;exports.selectDatasource=AO;exports.selectDatasourcesByPath=pg;exports.selectDatasourcesTheme=MA;exports.selectDebuggerChannels=qO;exports.selectDebuggerData=Bn;exports.selectDebuggerMeta=DO;exports.selectDebuggerSessions=jt;exports.selectDebuggerSessionsCount=IO;exports.selectDebuggers=sA;exports.selectDraftBreakpoints=$O;exports.selectDraftClassBreakpoints=NO;exports.selectExceptions=JO;exports.selectExplorer=iA;exports.selectExpressions=kO;exports.selectExpressionsVariables=VO;exports.selectFlagsByPath=AA;exports.selectForceLogin=mA;exports.selectGuestPrivilege=gA;exports.selectHasTabs=rA;exports.selectHighlightedLines=LO;exports.selectInspectedCSSClass=PA;exports.selectInspectedDatasource=DA;exports.selectInspector=Hs;exports.selectInspectorStateByType=$A;exports.selectIsLoaded=NA;exports.selectMethods=uA;exports.selectMethodsFolder=mg;exports.selectModals=fA;exports.selectMonacoZoom=CA;exports.selectPanelByPath=HI;exports.selectPartialSessionSettings=_A;exports.selectPreferences=SA;exports.selectPreviewedWebformsPaths=tA;exports.selectPrivileges=hA;exports.selectProjectSettings=EA;exports.selectQodly=TA;exports.selectRecentFiles=ZO;exports.selectRemoteDebuggerMode=wA;exports.selectRoles=pA;exports.selectRolesAndPrivileges=dA;exports.selectRolesDate=bA;exports.selectRolesFlags=vA;exports.selectRoot=Zr;exports.selectSelectedTab=yA;exports.selectServerSettings=Lc;exports.selectSessionSettings=Nc;exports.selectSharedCSS=OA;exports.selectSharedDatasources=hg;exports.selectSourceByPath=WO;exports.selectSourceByThreadId=HO;exports.selectStackFrames=YO;exports.selectStoppedFromDebugSession=BO;exports.selectStylesByPath=xA;exports.selectTab=Rv;exports.selectTabByPath=io;exports.selectTabByReference=Lt;exports.selectTabExtraByPath=nA;exports.selectTabMaxWeight=eA;exports.selectTabs=ba;exports.selectTemplates=wg;exports.selectTemplatesData=IA;exports.selectThreadIdByPath=UO;exports.selectTouchedTabs=Mc;exports.selectTouchedTabsLength=oA;exports.selectWebForms=cA;exports.selectWebFormsFolder=yg;exports.selectWebformNodes=aA;exports.selectWebformStylesByPath=jc;exports.selectWebforms=uo;exports.serializeModel=VD;exports.setActiveLine=ED;exports.setBreakpointsDecoration=bD;exports.setCallChainVariables=FD;exports.setContent=Ev;exports.setDataSources=EI;exports.setDatasourceEvents=II;exports.setDatasourcesTheme=iI;exports.setDebuggerMeta=ND;exports.setExpression=xD;exports.setExpressionVariables=$D;exports.setFolderChildren=QP;exports.setModelFlag=BD;exports.setPanelState=RI;exports.setRolesContent=Yc;exports.setSelectedGroup=sI;exports.setSessions=ov;exports.setSetting=lc;exports.setSettings=Js;exports.setSettingsAsText=YP;exports.setSourceContent=MD;exports.setTabExtra=mI;exports.setTabFlags=Sv;exports.setTabs=vI;exports.setTabsFlags=yI;exports.setTemplateData=bv;exports.setTemplatesData=mv;exports.setWebformsFlag=uI;exports.sort=Ag;exports.stateReducer=Mv;exports.stateSlice=ao;exports.toAPI=Ks;exports.toState=xP;exports.toggleExpandFolder=KP;exports.toggleForceLogin=UP;exports.toggleInspector=aI;exports.togglePermission=TP;exports.togglePrivilegePermission=$g;exports.toggleTab=WP;exports.tryCloseAllTabs=dD;exports.tryCloseLeftTabs=hD;exports.tryCloseOtherTabs=fD;exports.tryCloseRightTabs=pD;exports.tryCloseTab=Zc;exports.tryEditMethod=tD;exports.tryInjectMethod=nv;exports.tryRenameDataclass=jD;exports.uniquePush=cr;exports.updateExpressionAt=RD;exports.updatePrivileges=Gg;exports.updateRoles=qg;exports.updateRolesAndPrivileges=zc;exports.updateSession=PD;exports.updateSharedCss=jI;exports.updateSharedDatasources=al;exports.uploadFile=aD;exports.uploadFileAndGetResponse=nD;exports.useAppDispatch=EO;exports.useAppSelector=Xr;exports.useAttribute=eI;exports.useCollections=ZD;exports.useDataclass=QD;exports.useDataclasses=XD;exports.useMethod=RO;exports.useMethods=CO;exports.useModelFlags=rI;exports.useModelProperties=tI;exports.wipeDebuggerSessions=sv;
|
|
157
|
+
//# sourceMappingURL=index.cjs.js.map
|