@ws-ui/store 0.1.5 → 0.1.7
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/dist/hooks/store.d.ts +6 -56
- package/dist/index.cjs.js +54 -53
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +7547 -7351
- package/dist/index.es.js.map +1 -1
- package/dist/modules/catalog/thunks.d.ts +7 -0
- package/dist/modules/debugger/reducer.d.ts +19 -19
- package/dist/modules/debugger/thunks.d.ts +14 -0
- package/dist/modules/explorer/index.d.ts +1 -1
- package/dist/modules/explorer/reducer.d.ts +6 -6
- package/dist/modules/explorer/thunks.d.ts +158 -7
- package/dist/modules/index.d.ts +4 -19
- package/dist/modules/modals/reducer.d.ts +3 -3
- package/dist/modules/modals/thunks.d.ts +10 -1
- package/dist/modules/modals/types.d.ts +4 -4
- package/dist/modules/model/reducer.d.ts +1 -1
- package/dist/modules/model/thunks.d.ts +39 -8
- package/dist/modules/roles/index.d.ts +1 -16
- package/dist/modules/roles/reducer.d.ts +4 -19
- package/dist/modules/roles/thunks.d.ts +19 -0
- package/dist/modules/root/index.d.ts +1 -1
- package/dist/modules/root/reducer.d.ts +29 -17
- package/dist/modules/root/thunks.d.ts +106 -3
- package/dist/modules/root/types.d.ts +13 -1
- package/dist/modules/settings/reducer.d.ts +3 -3
- package/dist/modules/settings/thunks.d.ts +16 -1
- package/dist/modules/shared-css/index.d.ts +1 -1
- package/dist/modules/shared-css/reducer.d.ts +3 -3
- package/dist/modules/shared-css/thunks.d.ts +6 -0
- package/dist/modules/shared-datasources/reducer.d.ts +1 -1
- package/dist/modules/shared-datasources/thunks.d.ts +42 -1
- package/dist/modules/tabs/selectors.d.ts +8 -23
- package/dist/modules/webforms/datasources.adapter.d.ts +4 -19
- package/dist/modules/webforms/reducer.d.ts +5 -5
- package/dist/modules/webforms/thunks.d.ts +174 -9
- package/dist/provider.d.ts +2 -2
- package/dist/selectors/catalog.d.ts +30 -135
- package/dist/selectors/common.d.ts +16 -76
- package/dist/selectors/components.d.ts +5 -20
- package/dist/selectors/datasources.d.ts +25 -115
- package/dist/selectors/debugger.d.ts +88 -418
- package/dist/selectors/explorer.d.ts +146 -536
- package/dist/selectors/index.d.ts +1 -0
- package/dist/selectors/modals.d.ts +4 -19
- package/dist/selectors/roles.d.ts +56 -296
- package/dist/selectors/settings.d.ts +32 -152
- package/dist/selectors/states.d.ts +51 -0
- package/dist/selectors/styles.d.ts +26 -101
- package/dist/selectors/tabs.d.ts +8 -23
- package/dist/selectors/webforms.d.ts +45 -210
- package/dist/store.d.ts +42 -1
- package/dist/utils.d.ts +1 -0
- package/package.json +16 -7
package/dist/index.cjs.js
CHANGED
|
@@ -1,122 +1,121 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("@ws-ui/shared"),dt=require("react"),KE=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=aS[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)===oS}(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 rS&&e instanceof Map}function Ds(e){return nS&&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=JE),Object.freeze(e),n&&Kr(e,function(t,a){return mc(a,!0)},!0)),e}function JE(){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(XE),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 XE(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 ZE(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 QE(){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 eS(){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 tS(){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",rS=typeof Map<"u",nS=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",aS={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"},oS=""+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 sS=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=ZE(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 sS,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 iS(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 uS(e){var n=iS(e,"string");return ro(n)==="symbol"?n:String(n)}function cS(e,n,t){return n=uS(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){cS(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 lS(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(pS(e))return"date";if(dS(e))return"error";var t=fS(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 fS(e){return typeof e.constructor=="function"?e.constructor.name:null}function dS(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function pS(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=lS(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 hS(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 gS(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{gS(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=hS(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 vS(){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 yS(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 mS(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 bS=function(n,t){return n===t};function _S(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 ES(e,n){var t=typeof n=="object"?n:{equalityCheck:n},a=t.equalityCheck,s=a===void 0?bS:a,i=t.maxSize,c=i===void 0?1:i,l=t.resultEqualityCheck,d=_S(s),p=c===1?yS(d):mS(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 SS(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 wS(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=SS(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=wS(ES);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 TS=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)}}(),CS=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},xS=Object.defineProperty,RS=Object.defineProperties,OS=Object.getOwnPropertyDescriptors,Ud=Object.getOwnPropertySymbols,AS=Object.prototype.hasOwnProperty,PS=Object.prototype.propertyIsEnumerable,Hd=function(e,n,t){return n in e?xS(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t},hn=function(e,n){for(var t in n||(n={}))AS.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];PS.call(n,t)&&Hd(e,t,n[t])}return e},hu=function(e,n){return RS(e,OS(n))},DS=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())})},IS=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.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("@ws-ui/shared"),dt=require("react"),tE=require("react-dom");function ot(e){for(var r=arguments.length,t=Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];if(process.env.NODE_ENV!=="production"){var s=lE[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 Jr(e){return!!e&&!!e[Te]}function ur(e){var r;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)===fE}(e)||Array.isArray(e)||!!e[no]||!!(!((r=e.constructor)===null||r===void 0)&&r[no])||Ns(e)||Ls(e))}function Zr(e,r,t){t===void 0&&(t=!1),bn(e)===0?(t?Object.keys:pa)(e).forEach(function(a){t&&typeof a=="symbol"||r(a,e[a],e)}):e.forEach(function(a,s){return r(s,a,e)})}function bn(e){var r=e[Te];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:Ns(e)?2:Ls(e)?3:0}function vn(e,r){return bn(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function ps(e,r){return bn(e)===2?e.get(r):e[r]}function nh(e,r,t){var a=bn(e);a===2?e.set(r,t):a===3?e.add(t):e[r]=t}function ah(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function Ns(e){return uE&&e instanceof Map}function Ls(e){return cE&&e instanceof Set}function vt(e){return e.o||e.t}function Sc(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=oh(e);delete r[Te];for(var t=pa(r),a=0;a<t.length;a++){var s=t[a],i=r[s];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[s]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),r)}function Ec(e,r){return r===void 0&&(r=!1),wc(e)||Jr(e)||!ur(e)||(bn(e)>1&&(e.set=e.add=e.clear=e.delete=rE),Object.freeze(e),r&&Zr(e,function(t,a){return Ec(a,!0)},!0)),e}function rE(){ot(2)}function wc(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Or(e){var r=Yu[e];return r||ot(18,e),r}function Tc(e,r){Yu[e]||(Yu[e]=r)}function uo(){return process.env.NODE_ENV==="production"||ma||ot(0),ma}function gu(e,r){r&&(Or("Patches"),e.u=[],e.s=[],e.v=r)}function bs(e){qu(e),e.p.forEach(nE),e.p=null}function qu(e){e===ma&&(ma=e.l)}function Nd(e){return ma={p:[],l:ma,h:e,m:!0,_:0}}function nE(e){var r=e[Te];r.i===0||r.i===1?r.j():r.g=!0}function vu(e,r){r._=r.p.length;var t=r.p[0],a=e!==void 0&&e!==t;return r.h.O||Or("ES5").S(r,e,a),a?(t[Te].P&&(bs(r),ot(4)),ur(e)&&(e=_s(r,e),r.l||Ss(r,e)),r.u&&Or("Patches").M(t[Te].t,e,r.u,r.s)):e=_s(r,t,[]),bs(r),r.u&&r.v(r.u,r.s),e!==xc?e:void 0}function _s(e,r,t){if(wc(r))return r;var a=r[Te];if(!a)return Zr(r,function(l,d){return Ld(e,a,r,l,d,t)},!0),r;if(a.A!==e)return r;if(!a.P)return Ss(e,a.t,!0),a.t;if(!a.I){a.I=!0,a.A._--;var s=a.i===4||a.i===5?a.o=Sc(a.k):a.o,i=s,c=!1;a.i===3&&(i=new Set(s),s.clear(),c=!0),Zr(i,function(l,d){return Ld(e,a,s,l,d,t,c)}),Ss(e,s,!1),t&&e.u&&Or("Patches").N(a,t,e.u,e.s)}return a.o}function Ld(e,r,t,a,s,i,c){if(process.env.NODE_ENV!=="production"&&s===t&&ot(5),Jr(s)){var l=_s(e,s,i&&r&&r.i!==3&&!vn(r.R,a)?i.concat(a):void 0);if(nh(t,a,l),!Jr(l))return;e.m=!1}else c&&t.add(s);if(ur(s)&&!wc(s)){if(!e.h.D&&e._<1)return;_s(e,s),r&&r.A.l||Ss(e,s)}}function Ss(e,r,t){t===void 0&&(t=!1),!e.l&&e.h.D&&e.m&&Ec(r,t)}function yu(e,r){var t=e[Te];return(t?vt(t):e)[r]}function jd(e,r){if(r in e)for(var t=Object.getPrototypeOf(e);t;){var a=Object.getOwnPropertyDescriptor(t,r);if(a)return a;t=Object.getPrototypeOf(t)}}function Ht(e){e.P||(e.P=!0,e.l&&Ht(e.l))}function mu(e){e.o||(e.o=Sc(e.t))}function co(e,r,t){var a=Ns(r)?Or("MapSet").F(r,t):Ls(r)?Or("MapSet").T(r,t):e.O?function(s,i){var c=Array.isArray(s),l={i:c?1:0,A:i?i.A:uo(),P:!1,I:!1,R:{},l:i,t:s,k:null,o:null,j:null,C:!1},d=l,p=lo;c&&(d=[l],p=to);var h=Proxy.revocable(d,p),m=h.revoke,_=h.proxy;return l.k=_,l.j=m,_}(r,t):Or("ES5").J(r,t);return(t?t.A:uo()).p.push(a),a}function aE(e){return Jr(e)||ot(22,e),function r(t){if(!ur(t))return t;var a,s=t[Te],i=bn(t);if(s){if(!s.P&&(s.i<4||!Or("ES5").K(s)))return s.t;s.I=!0,a=kd(t,i),s.I=!1}else a=kd(t,i);return Zr(a,function(c,l){s&&ps(s.t,c)===l||nh(a,c,r(l))}),i===3?new Set(a):a}(e)}function kd(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return Sc(e)}function oE(){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[Te];return process.env.NODE_ENV!=="production"&&s(p),lo.get(p,c)},set:function(p){var h=this[Te];process.env.NODE_ENV!=="production"&&s(h),lo.set(h,c,p)}},d}function r(c){for(var l=c.length-1;l>=0;l--){var d=c[l][Te];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=pa(d),h=p.length-1;h>=0;h--){var m=p[h];if(m!==Te){var _=l[m];if(_===void 0&&!vn(l,m))return!0;var E=d[m],T=E&&E[Te];if(T?T.t!==_:!ah(E,_))return!0}}var C=!!l[Te];return p.length!==pa(l).length+(C?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&&ot(3,JSON.stringify(vt(c)))}var i={};Tc("ES5",{J:function(c,l){var d=Array.isArray(c),p=function(m,_){if(m){for(var E=Array(_.length),T=0;T<_.length;T++)Object.defineProperty(E,""+T,e(T,!0));return E}var C=oh(_);delete C[Te];for(var $=pa(C),D=0;D<$.length;D++){var I=$[D];C[I]=e(I,m||!!C[I].enumerable)}return Object.create(Object.getPrototypeOf(_),C)}(d,c),h={i:d?5:4,A:l?l.A:uo(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,Te,{value:h,writable:!0}),p},S:function(c,l,d){d?Jr(l)&&l[Te].A===c&&r(c.p):(c.u&&function p(h){if(h&&typeof h=="object"){var m=h[Te];if(m){var _=m.t,E=m.k,T=m.R,C=m.i;if(C===4)Zr(E,function(j){j!==Te&&(_[j]!==void 0||vn(_,j)?T[j]||p(E[j]):(T[j]=!0,Ht(m)))}),Zr(_,function(j){E[j]!==void 0||vn(E,j)||(T[j]=!1,Ht(m))});else if(C===5){if(a(m)&&(Ht(m),T.length=!0),E.length<_.length)for(var $=E.length;$<_.length;$++)T[$]=!1;else for(var D=_.length;D<E.length;D++)T[D]=!0;for(var I=Math.min(E.length,_.length),W=0;W<I;W++)E.hasOwnProperty(W)||(T[W]=!0),T[W]===void 0&&p(E[W])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?t(c):a(c)}})}function sE(){function e(a){if(!ur(a))return a;if(Array.isArray(a))return a.map(e);if(Ns(a))return new Map(Array.from(a.entries()).map(function(c){return[c[0],e(c[1])]}));if(Ls(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 vn(a,no)&&(s[no]=a[no]),s}function r(a){return Jr(a)?e(a):a}var t="add";Tc("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=bn(d),m=c[p];typeof m!="string"&&typeof m!="number"&&(m=""+m),h!==0&&h!==1||m!=="__proto__"&&m!=="constructor"||ot(24),typeof d=="function"&&m==="prototype"&&ot(24),typeof(d=ps(d,m))!="object"&&ot(15,c.join("/"))}var _=bn(d),E=e(i.value),T=c[c.length-1];switch(l){case"replace":switch(_){case 2:return d.set(T,E);case 3:ot(16);default:return d[T]=E}case t:switch(_){case 1:return T==="-"?d.push(E):d.splice(T,0,E);case 2:return d.set(T,E);case 3:return d.add(E);default:return d[T]=E}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:ot(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 m=l.t,_=l.o;Zr(l.R,function(E,T){var C=ps(m,E),$=ps(_,E),D=T?vn(m,E)?"replace":t:"remove";if(C!==$||D!=="replace"){var I=d.concat(E);p.push(D==="remove"?{op:D,path:I}:{op:D,path:I,value:$}),h.push(D===t?{op:"remove",path:I}:D==="remove"?{op:t,path:I,value:r(C)}:{op:"replace",path:I,value:r(C)})}})}(a,s,i,c);case 5:case 1:return function(l,d,p,h){var m=l.t,_=l.R,E=l.o;if(E.length<m.length){var T=[E,m];m=T[0],E=T[1];var C=[h,p];p=C[0],h=C[1]}for(var $=0;$<m.length;$++)if(_[$]&&E[$]!==m[$]){var D=d.concat([$]);p.push({op:"replace",path:D,value:r(E[$])}),h.push({op:"replace",path:D,value:r(m[$])})}for(var I=m.length;I<E.length;I++){var W=d.concat([I]);p.push({op:t,path:W,value:r(E[I])})}m.length<E.length&&h.push({op:"replace",path:d.concat(["length"]),value:m.length})}(a,s,i,c);case 3:return function(l,d,p,h){var m=l.t,_=l.o,E=0;m.forEach(function(T){if(!_.has(T)){var C=d.concat([E]);p.push({op:"remove",path:C,value:T}),h.unshift({op:t,path:C,value:T})}E++}),E=0,_.forEach(function(T){if(!m.has(T)){var C=d.concat([E]);p.push({op:t,path:C,value:T}),h.unshift({op:"remove",path:C,value:T})}E++})}(a,s,i,c)}},M:function(a,s,i,c){i.push({op:"replace",path:[],value:s===xc?void 0:s}),c.push({op:"replace",path:[],value:a})}})}function iE(){function e(l,d){function p(){this.constructor=l}s(l,d),l.prototype=(p.prototype=d.prototype,new p)}function r(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(ur(d)){var p=co(l.A.h,d,l);l.p.set(d,p),l.o.add(p)}else l.o.add(d)}))}function a(l){l.g&&ot(3,JSON.stringify(vt(l)))}var s=function(l,d){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,h){p.__proto__=h}||function(p,h){for(var m in h)h.hasOwnProperty(m)&&(p[m]=h[m])})(l,d)},i=function(){function l(p,h){return this[Te]={i:2,l:h,A:h?h.A:uo(),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 vt(this[Te]).size}}),d.has=function(p){return vt(this[Te]).has(p)},d.set=function(p,h){var m=this[Te];return a(m),vt(m).has(p)&&vt(m).get(p)===h||(r(m),Ht(m),m.R.set(p,!0),m.o.set(p,h),m.R.set(p,!0)),this},d.delete=function(p){if(!this.has(p))return!1;var h=this[Te];return a(h),r(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[Te];a(p),vt(p).size&&(r(p),Ht(p),p.R=new Map,Zr(p.t,function(h){p.R.set(h,!1)}),p.o.clear())},d.forEach=function(p,h){var m=this;vt(this[Te]).forEach(function(_,E){p.call(h,m.get(E),E,m)})},d.get=function(p){var h=this[Te];a(h);var m=vt(h).get(p);if(h.I||!ur(m)||m!==h.t.get(p))return m;var _=co(h.A.h,m,h);return r(h),h.o.set(p,_),_},d.keys=function(){return vt(this[Te]).keys()},d.values=function(){var p,h=this,m=this.keys();return(p={})[os]=function(){return h.values()},p.next=function(){var _=m.next();return _.done?_:{done:!1,value:h.get(_.value)}},p},d.entries=function(){var p,h=this,m=this.keys();return(p={})[os]=function(){return h.entries()},p.next=function(){var _=m.next();if(_.done)return _;var E=h.get(_.value);return{done:!1,value:[_.value,E]}},p},d[os]=function(){return this.entries()},l}(),c=function(){function l(p,h){return this[Te]={i:3,l:h,A:h?h.A:uo(),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 vt(this[Te]).size}}),d.has=function(p){var h=this[Te];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[Te];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[Te];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[Te];a(p),vt(p).size&&(t(p),Ht(p),p.o.clear())},d.values=function(){var p=this[Te];return a(p),t(p),p.o.values()},d.entries=function(){var p=this[Te];return a(p),t(p),p.o.entries()},d.keys=function(){return this.values()},d[os]=function(){return this.values()},d.forEach=function(p,h){for(var m=this.values(),_=m.next();!_.done;)p.call(h,_.value,_.value,this),_=m.next()},l}();Tc("MapSet",{F:function(l,d){return new i(l,d)},T:function(l,d){return new c(l,d)}})}var Bd,ma,Cc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",uE=typeof Map<"u",cE=typeof Set<"u",Wd=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",xc=Cc?Symbol.for("immer-nothing"):((Bd={})["immer-nothing"]=!0,Bd),no=Cc?Symbol.for("immer-draftable"):"__$immer_draftable",Te=Cc?Symbol.for("immer-state"):"__$immer_state",os=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",lE={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"},fE=""+Object.prototype.constructor,pa=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,oh=Object.getOwnPropertyDescriptors||function(e){var r={};return pa(e).forEach(function(t){r[t]=Object.getOwnPropertyDescriptor(e,t)}),r},Yu={},lo={get:function(e,r){if(r===Te)return e;var t=vt(e);if(!vn(t,r))return function(s,i,c){var l,d=jd(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,r);var a=t[r];return e.I||!ur(a)?a:a===yu(e.t,r)?(mu(e),e.o[r]=co(e.A.h,a,e)):a},has:function(e,r){return r in vt(e)},ownKeys:function(e){return Reflect.ownKeys(vt(e))},set:function(e,r,t){var a=jd(vt(e),r);if(a!=null&&a.set)return a.set.call(e.k,t),!0;if(!e.P){var s=yu(vt(e),r),i=s==null?void 0:s[Te];if(i&&i.t===t)return e.o[r]=t,e.R[r]=!1,!0;if(ah(t,s)&&(t!==void 0||vn(e.t,r)))return!0;mu(e),Ht(e)}return e.o[r]===t&&(t!==void 0||r in e.o)||Number.isNaN(t)&&Number.isNaN(e.o[r])||(e.o[r]=t,e.R[r]=!0),!0},deleteProperty:function(e,r){return yu(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,mu(e),Ht(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var t=vt(e),a=Reflect.getOwnPropertyDescriptor(t,r);return a&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:a.enumerable,value:t[r]}},defineProperty:function(){ot(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ot(12)}},to={};Zr(lo,function(e,r){to[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),to.deleteProperty=function(e,r){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(r))&&ot(13),to.set.call(this,e,r,void 0)},to.set=function(e,r,t){return process.env.NODE_ENV!=="production"&&r!=="length"&&isNaN(parseInt(r))&&ot(14),lo.set.call(this,e[0],r,t,e[0])};var dE=function(){function e(t){var a=this;this.O=Wd,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(C){var $=this;C===void 0&&(C=l);for(var D=arguments.length,I=Array(D>1?D-1:0),W=1;W<D;W++)I[W-1]=arguments[W];return d.produce(C,function(j){var O;return(O=i).call.apply(O,[$,j].concat(I))})}}var p;if(typeof i!="function"&&ot(6),c!==void 0&&typeof c!="function"&&ot(7),ur(s)){var h=Nd(a),m=co(a,s,void 0),_=!0;try{p=i(m),_=!1}finally{_?bs(h):qu(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(C){return gu(h,c),vu(C,h)},function(C){throw bs(h),C}):(gu(h,c),vu(p,h))}if(!s||typeof s!="object"){if((p=i(s))===void 0&&(p=s),p===xc&&(p=void 0),a.D&&Ec(p,!0),c){var E=[],T=[];Or("Patches").M(s,p,E,T),c(E,T)}return p}ot(21,s)},this.produceWithPatches=function(s,i){if(typeof s=="function")return function(p){for(var h=arguments.length,m=Array(h>1?h-1:0),_=1;_<h;_++)m[_-1]=arguments[_];return a.produceWithPatches(p,function(E){return s.apply(void 0,[E].concat(m))})};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 r=e.prototype;return r.createDraft=function(t){ur(t)||ot(8),Jr(t)&&(t=aE(t));var a=Nd(this),s=co(this,t,void 0);return s[Te].C=!0,qu(a),s},r.finishDraft=function(t,a){var s=t&&t[Te];process.env.NODE_ENV!=="production"&&(s&&s.C||ot(9),s.I&&ot(10));var i=s.A;return gu(i,a),vu(void 0,i)},r.setAutoFreeze=function(t){this.D=t},r.setUseProxies=function(t){t&&!Wd&&ot(20),this.O=t},r.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 Jr(t)?c(t,a):this.produce(t,function(l){return c(l,a)})},e}(),Qt=new dE,sh=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 fo(e){"@babel/helpers - typeof";return fo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},fo(e)}function pE(e,r){if(fo(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r||"default");if(fo(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function hE(e){var r=pE(e,"string");return fo(r)==="symbol"?r:String(r)}function gE(e,r,t){return r=hE(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Ud(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,a)}return t}function Hd(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Ud(Object(t),!0).forEach(function(a){gE(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ud(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 Gd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),bu=function(){return Math.random().toString(36).substring(7).split("").join(".")},Yn={INIT:"@@redux/INIT"+bu(),REPLACE:"@@redux/REPLACE"+bu(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+bu()}};function ih(e){if(typeof e!="object"||e===null)return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function vE(e){if(e===void 0)return"undefined";if(e===null)return"null";var r=typeof e;switch(r){case"boolean":case"string":case"number":case"symbol":case"function":return r}if(Array.isArray(e))return"array";if(bE(e))return"date";if(mE(e))return"error";var t=yE(e);switch(t){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return t}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")}function yE(e){return typeof e.constructor=="function"?e.constructor.name:null}function mE(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function bE(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function qn(e){var r=typeof e;return process.env.NODE_ENV!=="production"&&(r=vE(e)),r}function uh(e,r,t){var a;if(typeof r=="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 r=="function"&&typeof t>"u"&&(t=r,r=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: '"+qn(t)+"'");return t(uh)(e,r)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Pt(2):"Expected the root reducer to be a function. Instead, received: '"+qn(e)+"'");var s=e,i=r,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 m(C){if(typeof C!="function")throw new Error(process.env.NODE_ENV==="production"?Pt(4):"Expected the listener to be a function. Instead, received: '"+qn(C)+"'");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 $=!0;return p(),l.push(C),function(){if($){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.");$=!1,p();var I=l.indexOf(C);l.splice(I,1),c=null}}}function _(C){if(!ih(C))throw new Error(process.env.NODE_ENV==="production"?Pt(7):"Actions must be plain objects. Instead, the actual type was: '"+qn(C)+"'. 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 C.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,C)}finally{d=!1}for(var $=c=l,D=0;D<$.length;D++){var I=$[D];I()}return C}function E(C){if(typeof C!="function")throw new Error(process.env.NODE_ENV==="production"?Pt(10):"Expected the nextReducer to be a function. Instead, received: '"+qn(C));s=C,_({type:Yn.REPLACE})}function T(){var C,$=m;return C={subscribe:function(I){if(typeof I!="object"||I===null)throw new Error(process.env.NODE_ENV==="production"?Pt(11):"Expected the observer to be an object. Instead, received: '"+qn(I)+"'");function W(){I.next&&I.next(h())}W();var j=$(W);return{unsubscribe:j}}},C[Gd]=function(){return this},C}return _({type:Yn.INIT}),a={dispatch:_,subscribe:m,getState:h,replaceReducer:E},a[Gd]=T,a}function qd(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function _E(e,r,t,a){var s=Object.keys(r),i=t&&t.type===Yn.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(!ih(e))return"The "+i+' has unexpected type of "'+qn(e)+'". Expected argument to be an object with the following '+('keys: "'+s.join('", "')+'"');var c=Object.keys(e).filter(function(l){return!r.hasOwnProperty(l)&&!a[l]});if(c.forEach(function(l){a[l]=!0}),!(t&&t.type===Yn.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 SE(e){Object.keys(e).forEach(function(r){var t=e[r],a=t(void 0,{type:Yn.INIT});if(typeof a>"u")throw new Error(process.env.NODE_ENV==="production"?Pt(12):'The slice reducer for key "'+r+`" 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:Yn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?Pt(13):'The slice reducer for key "'+r+'" returned undefined when probed with a random type. '+("Don't try to handle '"+Yn.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 ch(e){for(var r=Object.keys(e),t={},a=0;a<r.length;a++){var s=r[a];process.env.NODE_ENV!=="production"&&typeof e[s]>"u"&&qd('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{SE(t)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(process.env.NODE_ENV!=="production"){var m=_E(p,t,h,c);m&&qd(m)}for(var _=!1,E={},T=0;T<i.length;T++){var C=i[T],$=t[C],D=p[C],I=$(D,h);if(typeof I>"u"){var W=h&&h.type;throw new Error(process.env.NODE_ENV==="production"?Pt(14):"When called with an action of type "+(W?'"'+String(W)+'"':"(unknown type)")+', the slice reducer for key "'+C+'" 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.')}E[C]=I,_=_||I!==D}return _=_||i.length!==Object.keys(p).length,_?E:p}}function Es(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.length===0?function(a){return a}:r.length===1?r[0]:r.reduce(function(a,s){return function(){return a(s.apply(void 0,arguments))}})}function EE(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[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=r.map(function(d){return d(c)});return i=Es.apply(void 0,l)(s.dispatch),Hd(Hd({},s),{},{dispatch:i})}}}var ws="NOT_FOUND";function wE(e){var r;return{get:function(a){return r&&e(r.key,a)?r.value:ws},put:function(a,s){r={key:a,value:s}},getEntries:function(){return r?[r]:[]},clear:function(){r=void 0}}}function TE(e,r){var t=[];function a(l){var d=t.findIndex(function(h){return r(l,h.key)});if(d>-1){var p=t[d];return d>0&&(t.splice(d,1),t.unshift(p)),p.value}return ws}function s(l,d){a(l)===ws&&(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 CE=function(r,t){return r===t};function xE(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 RE(e,r){var t=typeof r=="object"?r:{equalityCheck:r},a=t.equalityCheck,s=a===void 0?CE:a,i=t.maxSize,c=i===void 0?1:i,l=t.resultEqualityCheck,d=xE(s),p=c===1?wE(d):TE(c,d);function h(){var m=p.get(arguments);if(m===ws){if(m=e.apply(null,arguments),l){var _=p.getEntries(),E=_.find(function(T){return l(T.value,m)});E&&(m=E.value)}p.put(arguments,m)}return m}return h.clearCache=function(){return p.clear()},h}function OE(e){var r=Array.isArray(e[0])?e[0]:e;if(!r.every(function(a){return typeof a=="function"})){var t=r.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 r}function AE(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;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,m={memoizeOptions:void 0},_=l.pop();if(typeof _=="object"&&(m=_,_=l.pop()),typeof _!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof _+"]");var E=m,T=E.memoizeOptions,C=T===void 0?t:T,$=Array.isArray(C)?C:[C],D=OE(l),I=e.apply(void 0,[function(){return p++,_.apply(null,arguments)}].concat($)),W=e(function(){for(var O=[],K=D.length,Y=0;Y<K;Y++)O.push(D[Y].apply(null,arguments));return h=I.apply(null,O),h});return Object.assign(W,{resultFunc:_,memoizedResultFunc:I,dependencies:D,lastResult:function(){return h},recomputations:function(){return p},resetRecomputations:function(){return p=0}}),W};return s}var q=AE(RE);function lh(e){var r=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 r}var fh=lh();fh.withExtraArgument=lh;const Yd=fh;var dh=globalThis&&globalThis.__extends||function(){var e=function(r,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(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),PE=globalThis&&globalThis.__generator||function(e,r){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=r.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}}},ba=globalThis&&globalThis.__spreadArray||function(e,r){for(var t=0,a=r.length,s=e.length;t<a;t++,s++)e[s]=r[t];return e},DE=Object.defineProperty,IE=Object.defineProperties,FE=Object.getOwnPropertyDescriptors,zd=Object.getOwnPropertySymbols,$E=Object.prototype.hasOwnProperty,ME=Object.prototype.propertyIsEnumerable,Vd=function(e,r,t){return r in e?DE(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t},yn=function(e,r){for(var t in r||(r={}))$E.call(r,t)&&Vd(e,t,r[t]);if(zd)for(var a=0,s=zd(r);a<s.length;a++){var t=s[a];ME.call(r,t)&&Vd(e,t,r[t])}return e},_u=function(e,r){return IE(e,FE(r))},NE=function(e,r,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,r)).next())})},LE=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Es:Es.apply(null,arguments)};function ph(e){if(typeof e!="object"||e===null)return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return r===t}var hh=function(e){return e&&typeof e.match=="function"};function mn(e,r){function t(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];if(r){var i=r.apply(void 0,a);if(!i)throw new Error("prepareAction did not return an object");return yn(yn({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 jE(e){return typeof e=="function"&&"type"in e&&hh(e)}function kE(e){var r=e?(""+e).split("/"):[],t=r[r.length-1]||"actionCreator";return'Detected an action creator with type "'+(e||"unknown")+`" being dispatched.
|
|
2
|
+
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(`+t+"())` instead of `dispatch("+t+")`. This is necessary even if the action has no payload."}function BE(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(a){return function(s){return a(s)}}};var r=e.isActionCreator,t=r===void 0?jE:r;return function(){return function(a){return function(s){return t(s)&&console.warn(kE(s.type)),a(s)}}}}function gh(e,r){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(r+" took "+t+"ms, which is more than the warning threshold of "+e+`ms.
|
|
2
3
|
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
|
|
4
|
-
Take a look at the logic that dispatched this action: `,
|
|
4
|
+
It is disabled in production builds, so you don't need to worry about that.`)}}}var WE=function(e){dh(r,e);function r(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];var s=e.apply(this,t)||this;return Object.setPrototypeOf(s,r.prototype),s}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return e.prototype.concat.apply(this,t)},r.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(r.bind.apply(r,ba([void 0],t[0].concat(this)))):new(r.bind.apply(r,ba([void 0],t.concat(this))))},r}(Array),UE=function(e){dh(r,e);function r(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];var s=e.apply(this,t)||this;return Object.setPrototypeOf(s,r.prototype),s}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return e.prototype.concat.apply(this,t)},r.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(r.bind.apply(r,ba([void 0],t[0].concat(this)))):new(r.bind.apply(r,ba([void 0],t.concat(this))))},r}(Array);function zu(e){return ur(e)?sh(e,function(){}):e}var HE=process.env.NODE_ENV==="production",Kd="Invariant failed";function Jd(e,r){if(!e)throw HE?new Error(Kd):new Error(Kd+": "+(r||""))}function GE(e,r,t,a){return JSON.stringify(e,qE(r,a),t)}function qE(e,r){var t=[],a=[];return r||(r=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=r.call(this,s,i))}else t.push(i);return e==null?i:e.call(this,s,i)}}function YE(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function zE(e,r,t){var a=vh(e,r,t);return{detectMutations:function(){return yh(e,r,a,t)}}}function vh(e,r,t,a,s){r===void 0&&(r=[]),a===void 0&&(a=""),s===void 0&&(s=new Set);var i={value:t};if(!e(t)&&!s.has(t)){s.add(t),i.children={};for(var c in t){var l=a?a+"."+c:c;r.length&&r.indexOf(l)!==-1||(i.children[c]=vh(e,r,t[c],l))}}return i}function yh(e,r,t,a,s,i){r===void 0&&(r=[]),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;var h=r.length>0,m=function(E){var T=i?i+"."+E:E;if(h){var C=r.some(function(D){return D instanceof RegExp?D.test(T):T===D});if(C)return"continue"}var $=yh(e,r,t.children[E],a[E],l,T);if($.wasMutated)return{value:$}};for(var p in d){var _=m(p);if(typeof _=="object")return _.value}return{wasMutated:!1}}function VE(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(d){return function(p){return d(p)}}};var r=e.isImmutable,t=r===void 0?YE:r,a=e.ignoredPaths,s=e.warnAfter,i=s===void 0?32:s,c=e.ignore;a=a||c;var l=zE.bind(null,t,a);return function(d){var p=d.getState,h=p(),m=l(h),_;return function(E){return function(T){var C=gh(i,"ImmutableStateInvariantMiddleware");C.measureTime(function(){h=p(),_=m.detectMutations(),m=l(h),Jd(!_.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 $=E(T);return C.measureTime(function(){h=p(),_=m.detectMutations(),m=l(h),_.wasMutated&&Jd(!_.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(_.path||"")+". Take a look at the reducer(s) handling the action "+GE(T)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),C.warnIfExceeded(),$}}}}function mh(e){var r=typeof e;return e==null||r==="string"||r==="boolean"||r==="number"||Array.isArray(e)||ph(e)}function Vu(e,r,t,a,s,i){r===void 0&&(r=""),t===void 0&&(t=mh),s===void 0&&(s=[]);var c;if(!t(e))return{keyPath:r||"<root>",value:e};if(typeof e!="object"||e===null||i!=null&&i.has(e))return!1;for(var l=a!=null?a(e):Object.entries(e),d=s.length>0,p=function($,D){var I=r?r+"."+$:$;if(d){var W=s.some(function(j){return j instanceof RegExp?j.test(I):I===j});if(W)return"continue"}if(!t(D))return{value:{keyPath:I,value:D}};if(typeof D=="object"&&(c=Vu(D,I,t,a,s,i),c))return{value:c}},h=0,m=l;h<m.length;h++){var _=m[h],E=_[0],T=_[1],C=p(E,T);if(typeof C=="object")return C.value}return i&&bh(e)&&i.add(e),!1}function bh(e){if(!Object.isFrozen(e))return!1;for(var r=0,t=Object.values(e);r<t.length;r++){var a=t[r];if(!(typeof a!="object"||a===null)&&!bh(a))return!1}return!0}function KE(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(W){return function(j){return W(j)}}};var r=e.isSerializable,t=r===void 0?mh:r,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,m=h===void 0?32:h,_=e.ignoreState,E=_===void 0?!1:_,T=e.ignoreActions,C=T===void 0?!1:T,$=e.disableCache,D=$===void 0?!1:$,I=!D&&WeakSet?new WeakSet:void 0;return function(W){return function(j){return function(O){var K=j(O),Y=gh(m,"SerializableStateInvariantMiddleware");return!C&&!(i.length&&i.indexOf(O.type)!==-1)&&Y.measureTime(function(){var Q=Vu(O,"",t,a,l,I);if(Q){var ae=Q.keyPath,Ie=Q.value;console.error("A non-serializable value was detected in an action, in the path: `"+ae+"`. Value:",Ie,`
|
|
5
|
+
Take a look at the logic that dispatched this action: `,O,`
|
|
5
6
|
(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)`)}})
|
|
7
|
-
Take a look at the reducer(s) handling this action 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 WS(){return function(n){return US(n)}}function US(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 FS;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(kS(d))}if(c){var p={};gu(c)||(p=c),l.push(BS(p))}}return l}var vu=process.env.NODE_ENV==="production";function HS(e){var n=WS(),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=vS.apply(void 0,T),F=gs;d&&(F=IS(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 GS(e){return typeof e=="function"}function qS(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(GS(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 YS(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],_=YS(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 qS(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 zS="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",wc=function(e){e===void 0&&(e=21);for(var n="",t=e;t--;)n+=zS[Math.random()*64|0];return n},VS=["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}(),KS=function(e){if(typeof e=="object"&&e!==null){for(var n={},t=0,a=VS;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||KS)(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 DS(this,null,function(){var j,A,K,G,Y,ie;return CS(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:_}),XS(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(JS)}})}}return Object.assign(d,{pending:s,rejected:i,fulfilled:a,typePrefix:e})}function JS(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function XS(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var ZS=function(e){return e&&typeof e.match=="function"},QS=function(e,n){return ZS(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 QS(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])}QE();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 ew(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 tw(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var oo=tw,rw=typeof qr=="object"&&qr&&qr.Object===Object&&qr,hh=rw,nw=hh,aw=typeof self=="object"&&self&&self.Object===Object&&self,ow=nw||aw||Function("return this")(),Pr=ow,sw=Pr,iw=function(){return sw.Date.now()},uw=iw,cw=/\s/;function lw(e){for(var n=e.length;n--&&cw.test(e.charAt(n)););return n}var fw=lw,dw=fw,pw=/^\s+/;function hw(e){return e&&e.slice(0,dw(e)+1).replace(pw,"")}var gw=hw,vw=Pr,yw=vw.Symbol,xc=yw,zd=xc,gh=Object.prototype,mw=gh.hasOwnProperty,bw=gh.toString,Ha=zd?zd.toStringTag:void 0;function _w(e){var n=mw.call(e,Ha),t=e[Ha];try{e[Ha]=void 0;var a=!0}catch{}var s=bw.call(e);return a&&(n?e[Ha]=t:delete e[Ha]),s}var Ew=_w,Sw=Object.prototype,ww=Sw.toString;function Tw(e){return ww.call(e)}var Cw=Tw,Vd=xc,xw=Ew,Rw=Cw,Ow="[object Null]",Aw="[object Undefined]",Kd=Vd?Vd.toStringTag:void 0;function Pw(e){return e==null?e===void 0?Aw:Ow:Kd&&Kd in Object(e)?xw(e):Rw(e)}var Fs=Pw;function Dw(e){return e!=null&&typeof e=="object"}var Rc=Dw,Iw=Fs,Fw=Rc,$w="[object Symbol]";function Mw(e){return typeof e=="symbol"||Fw(e)&&Iw(e)==$w}var Nw=Mw,Lw=gw,Jd=oo,jw=Nw,Xd=0/0,kw=/^[-+]0x[0-9a-f]+$/i,Bw=/^0b[01]+$/i,Ww=/^0o[0-7]+$/i,Uw=parseInt;function Hw(e){if(typeof e=="number")return e;if(jw(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=Lw(e);var t=Bw.test(e);return t||Ww.test(e)?Uw(e.slice(2),t?2:8):kw.test(e)?Xd:+e}var Gw=Hw,qw=oo,mu=uw,Zd=Gw,Yw="Expected a function",zw=Math.max,Vw=Math.min;function Kw(e,n,t){var a,s,i,c,l,d,p=0,h=!1,b=!1,_=!0;if(typeof e!="function")throw new TypeError(Yw);n=Zd(n)||0,qw(t)&&(h=!!t.leading,b="maxWait"in t,i=b?zw(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?Vw(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 Jw=Kw,Xw=Jw,Zw=oo,Qw="Expected a function";function eT(e,n,t){var a=!0,s=!0;if(typeof e!="function")throw new TypeError(Qw);return Zw(t)&&(a="leading"in t?!!t.leading:a,s="trailing"in t?!!t.trailing:s),Xw(e,n,{leading:a,maxWait:n,trailing:s})}var tT=eT;const rT=Is(tT);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 nT(){this.__data__=[],this.size=0}var aT=nT;function oT(e,n){return e===n||e!==e&&n!==n}var sT=oT,iT=sT;function uT(e,n){for(var t=e.length;t--;)if(iT(e[t][0],n))return t;return-1}var Ns=uT,cT=Ns,lT=Array.prototype,fT=lT.splice;function dT(e){var n=this.__data__,t=cT(n,e);if(t<0)return!1;var a=n.length-1;return t==a?n.pop():fT.call(n,t,1),--this.size,!0}var pT=dT,hT=Ns;function gT(e){var n=this.__data__,t=hT(n,e);return t<0?void 0:n[t][1]}var vT=gT,yT=Ns;function mT(e){return yT(this.__data__,e)>-1}var bT=mT,_T=Ns;function ET(e,n){var t=this.__data__,a=_T(t,e);return a<0?(++this.size,t.push([e,n])):t[a][1]=n,this}var ST=ET,wT=aT,TT=pT,CT=vT,xT=bT,RT=ST;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=wT;ha.prototype.delete=TT;ha.prototype.get=CT;ha.prototype.has=xT;ha.prototype.set=RT;var Ls=ha,OT=Ls;function AT(){this.__data__=new OT,this.size=0}var PT=AT;function DT(e){var n=this.__data__,t=n.delete(e);return this.size=n.size,t}var IT=DT;function FT(e){return this.__data__.get(e)}var $T=FT;function MT(e){return this.__data__.has(e)}var NT=MT,LT=Fs,jT=oo,kT="[object AsyncFunction]",BT="[object Function]",WT="[object GeneratorFunction]",UT="[object Proxy]";function HT(e){if(!jT(e))return!1;var n=LT(e);return n==BT||n==WT||n==kT||n==UT}var GT=HT,qT=Pr,YT=qT["__core-js_shared__"],zT=YT,bu=zT,Qd=function(){var e=/[^.]+$/.exec(bu&&bu.keys&&bu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function VT(e){return!!Qd&&Qd in e}var KT=VT,JT=Function.prototype,XT=JT.toString;function ZT(e){if(e!=null){try{return XT.call(e)}catch{}try{return e+""}catch{}}return""}var xh=ZT,QT=GT,eC=KT,tC=oo,rC=xh,nC=/[\\^$.*+?()[\]{}|]/g,aC=/^\[object .+?Constructor\]$/,oC=Function.prototype,sC=Object.prototype,iC=oC.toString,uC=sC.hasOwnProperty,cC=RegExp("^"+iC.call(uC).replace(nC,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function lC(e){if(!tC(e)||eC(e))return!1;var n=QT(e)?cC:aC;return n.test(rC(e))}var fC=lC;function dC(e,n){return e==null?void 0:e[n]}var pC=dC,hC=fC,gC=pC;function vC(e,n){var t=gC(e,n);return hC(t)?t:void 0}var ga=vC,yC=ga,mC=Pr,bC=yC(mC,"Map"),Ac=bC,_C=ga,EC=_C(Object,"create"),js=EC,ep=js;function SC(){this.__data__=ep?ep(null):{},this.size=0}var wC=SC;function TC(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var CC=TC,xC=js,RC="__lodash_hash_undefined__",OC=Object.prototype,AC=OC.hasOwnProperty;function PC(e){var n=this.__data__;if(xC){var t=n[e];return t===RC?void 0:t}return AC.call(n,e)?n[e]:void 0}var DC=PC,IC=js,FC=Object.prototype,$C=FC.hasOwnProperty;function MC(e){var n=this.__data__;return IC?n[e]!==void 0:$C.call(n,e)}var NC=MC,LC=js,jC="__lodash_hash_undefined__";function kC(e,n){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=LC&&n===void 0?jC:n,this}var BC=kC,WC=wC,UC=CC,HC=DC,GC=NC,qC=BC;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=WC;va.prototype.delete=UC;va.prototype.get=HC;va.prototype.has=GC;va.prototype.set=qC;var YC=va,tp=YC,zC=Ls,VC=Ac;function KC(){this.size=0,this.__data__={hash:new tp,map:new(VC||zC),string:new tp}}var JC=KC;function XC(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}var ZC=XC,QC=ZC;function ex(e,n){var t=e.__data__;return QC(n)?t[typeof n=="string"?"string":"hash"]:t.map}var ks=ex,tx=ks;function rx(e){var n=tx(this,e).delete(e);return this.size-=n?1:0,n}var nx=rx,ax=ks;function ox(e){return ax(this,e).get(e)}var sx=ox,ix=ks;function ux(e){return ix(this,e).has(e)}var cx=ux,lx=ks;function fx(e,n){var t=lx(this,e),a=t.size;return t.set(e,n),this.size+=t.size==a?0:1,this}var dx=fx,px=JC,hx=nx,gx=sx,vx=cx,yx=dx;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=px;ya.prototype.delete=hx;ya.prototype.get=gx;ya.prototype.has=vx;ya.prototype.set=yx;var Rh=ya,mx=Ls,bx=Ac,_x=Rh,Ex=200;function Sx(e,n){var t=this.__data__;if(t instanceof mx){var a=t.__data__;if(!bx||a.length<Ex-1)return a.push([e,n]),this.size=++t.size,this;t=this.__data__=new _x(a)}return t.set(e,n),this.size=t.size,this}var wx=Sx,Tx=Ls,Cx=PT,xx=IT,Rx=$T,Ox=NT,Ax=wx;function so(e){var n=this.__data__=new Tx(e);this.size=n.size}so.prototype.clear=Cx;so.prototype.delete=xx;so.prototype.get=Rx;so.prototype.has=Ox;so.prototype.set=Ax;var Px="__lodash_hash_undefined__";function Dx(e){return this.__data__.set(e,Px),this}var Ix=Dx;function Fx(e){return this.__data__.has(e)}var $x=Fx,Mx=Rh,Nx=Ix,Lx=$x;function qu(e){var n=-1,t=e==null?0:e.length;for(this.__data__=new Mx;++n<t;)this.add(e[n])}qu.prototype.add=qu.prototype.push=Nx;qu.prototype.has=Lx;var jx=Pr;jx.Uint8Array;var rp=xc,np=rp?rp.prototype:void 0;np&&np.valueOf;var kx=Fs,Bx=Rc,Wx="[object Arguments]";function Ux(e){return Bx(e)&&kx(e)==Wx}var Hx=Ux,ap=Hx,Gx=Rc,Oh=Object.prototype,qx=Oh.hasOwnProperty,Yx=Oh.propertyIsEnumerable;ap(function(){return arguments}());var bs={exports:{}};function zx(){return!1}var Vx=zx;bs.exports;(function(e,n){var t=Pr,a=Vx,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 Kx=_s.exports,op=Kx;op&&op.isTypedArray;var Jx=ga,Xx=Pr,Zx=Jx(Xx,"DataView"),Qx=Zx,eR=ga,tR=Pr,rR=eR(tR,"Promise"),nR=rR,aR=ga,oR=Pr,sR=aR(oR,"Set"),iR=sR,uR=ga,cR=Pr,lR=uR(cR,"WeakMap"),fR=lR,Yu=Qx,zu=Ac,Vu=nR,Ku=iR,Ju=fR,Ah=Fs,ma=xh,sp="[object Map]",dR="[object Object]",ip="[object Promise]",up="[object Set]",cp="[object WeakMap]",lp="[object DataView]",pR=ma(Yu),hR=ma(zu),gR=ma(Vu),vR=ma(Ku),yR=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==dR?e.constructor:void 0,a=t?ma(t):"";if(a)switch(a){case pR:return lp;case hR:return sp;case gR:return ip;case vR:return up;case yR:return cp}return n});const mR="ROOT";tS(),eS();var fp;(function(e){e[e.HandlerDisabled=0]="HandlerDisabled",e[e.HandlerEnabled=1]="HandlerEnabled"})(fp||(fp={}));var Es={exports:{}};/**
|
|
7
|
+
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),E||(Y.measureTime(function(){var Q=W.getState(),ae=Vu(Q,"",t,a,p,I);if(ae){var Ie=ae.keyPath,Ce=ae.value;console.error("A non-serializable value was detected in the state, in the path: `"+Ie+"`. Value:",Ce,`
|
|
8
|
+
Take a look at the reducer(s) handling this action type: `+O.type+`.
|
|
9
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),Y.warnIfExceeded()),K}}}}function ss(e){return typeof e=="boolean"}function JE(){return function(r){return ZE(r)}}function ZE(e){e===void 0&&(e={});var r=e.thunk,t=r===void 0?!0:r,a=e.immutableCheck,s=a===void 0?!0:a,i=e.serializableCheck,c=i===void 0?!0:i,l=e.actionCreatorCheck,d=l===void 0?!0:l,p=new WE;if(t&&(ss(t)?p.push(Yd):p.push(Yd.withExtraArgument(t.extraArgument))),process.env.NODE_ENV!=="production"){if(s){var h={};ss(s)||(h=s),p.unshift(VE(h))}if(c){var m={};ss(c)||(m=c),p.push(KE(m))}if(d){var _={};ss(d)||(_=d),p.unshift(BE(_))}}return p}var Su=process.env.NODE_ENV==="production";function XE(e){var r=JE(),t=e||{},a=t.reducer,s=a===void 0?void 0:a,i=t.middleware,c=i===void 0?r():i,l=t.devTools,d=l===void 0?!0:l,p=t.preloadedState,h=p===void 0?void 0:p,m=t.enhancers,_=m===void 0?void 0:m,E;if(typeof s=="function")E=s;else if(ph(s))E=ch(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(r),!Su&&!Array.isArray(T)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Su&&T.some(function(j){return typeof j!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=EE.apply(void 0,T),$=Es;d&&($=LE(yn({trace:!Su},typeof d=="object"&&d)));var D=new UE(C),I=D;Array.isArray(_)?I=ba([C],_):typeof _=="function"&&(I=_(D));var W=$.apply(void 0,I);return uh(E,h,W)}function _h(e){var r={},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)throw new Error("`builder.addCase` cannot be called with an empty action type");if(l in r)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return r[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),[r,t,a]}function QE(e){return typeof e=="function"}var Zd=!1;function ew(e,r,t,a){t===void 0&&(t=[]),process.env.NODE_ENV!=="production"&&typeof r=="object"&&(Zd||(Zd=!0,console.warn("The object notation for `createReducer` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer")));var s=typeof r=="function"?_h(r):[r,t,a],i=s[0],c=s[1],l=s[2],d;if(QE(e))d=function(){return zu(e())};else{var p=zu(e);d=function(){return p}}function h(m,_){m===void 0&&(m=d());var E=ba([i[_.type]],c.filter(function(T){var C=T.matcher;return C(_)}).map(function(T){var C=T.reducer;return C}));return E.filter(function(T){return!!T}).length===0&&(E=[l]),E.reduce(function(T,C){if(C)if(Jr(T)){var $=T,D=C($,_);return D===void 0?T:D}else{if(ur(T))return sh(T,function(I){return C(I,_)});var D=C(T,_);if(D===void 0){if(T===null)return T;throw Error("A case reducer on a non-draftable value must not return undefined")}return D}return T},m)}return h.getInitialState=d,h}var Xd=!1;function tw(e,r){return e+"/"+r}function lr(e){var r=e.name;if(!r)throw new Error("`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&e.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");var t=typeof e.initialState=="function"?e.initialState:zu(e.initialState),a=e.reducers||{},s=Object.keys(a),i={},c={},l={};s.forEach(function(h){var m=a[h],_=tw(r,h),E,T;"reducer"in m?(E=m.reducer,T=m.prepare):E=m,i[h]=E,c[_]=E,l[h]=T?mn(_,T):mn(_)});function d(){process.env.NODE_ENV!=="production"&&typeof e.extraReducers=="object"&&(Xd||(Xd=!0,console.warn("The object notation for `createSlice.extraReducers` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice")));var h=typeof e.extraReducers=="function"?_h(e.extraReducers):[e.extraReducers],m=h[0],_=m===void 0?{}:m,E=h[1],T=E===void 0?[]:E,C=h[2],$=C===void 0?void 0:C,D=yn(yn({},_),c);return ew(t,function(I){for(var W in D)I.addCase(W,D[W]);for(var j=0,O=T;j<O.length;j++){var K=O[j];I.addMatcher(K.matcher,K.reducer)}$&&I.addDefaultCase($)})}var p;return{name:r,reducer:function(h,m){return p||(p=d()),p(h,m)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var rw="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Rc=function(e){e===void 0&&(e=21);for(var r="",t=e;t--;)r+=rw[Math.random()*64|0];return r},nw=["name","message","stack","code"],Eu=function(){function e(r,t){this.payload=r,this.meta=t}return e}(),Qd=function(){function e(r,t){this.payload=r,this.meta=t}return e}(),aw=function(e){if(typeof e=="object"&&e!==null){for(var r={},t=0,a=nw;t<a.length;t++){var s=a[t];typeof e[s]=="string"&&(r[s]=e[s])}return r}return{message:String(e)}},ne=function(){function e(r,t,a){var s=mn(r+"/fulfilled",function(h,m,_,E){return{payload:h,meta:_u(yn({},E||{}),{arg:_,requestId:m,requestStatus:"fulfilled"})}}),i=mn(r+"/pending",function(h,m,_){return{payload:void 0,meta:_u(yn({},_||{}),{arg:m,requestId:h,requestStatus:"pending"})}}),c=mn(r+"/rejected",function(h,m,_,E,T){return{payload:E,error:(a&&a.serializeError||aw)(h||"Rejected"),meta:_u(yn({},T||{}),{arg:_,requestId:m,rejectedWithValue:!!E,requestStatus:"rejected",aborted:(h==null?void 0:h.name)==="AbortError",condition:(h==null?void 0:h.name)==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){process.env.NODE_ENV!=="production"&&(l||(l=!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'.")))},h}();function p(h){return function(m,_,E){var T=a!=null&&a.idGenerator?a.idGenerator(h):Rc(),C=new d,$;function D(W){$=W,C.abort()}var I=function(){return NE(this,null,function(){var W,j,O,K,Y,Q,ae;return PE(this,function(Ie){switch(Ie.label){case 0:return Ie.trys.push([0,4,,5]),K=(W=a==null?void 0:a.condition)==null?void 0:W.call(a,h,{getState:_,extra:E}),sw(K)?[4,K]:[3,2];case 1:K=Ie.sent(),Ie.label=2;case 2:if(K===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return Y=new Promise(function(Ce,Xe){return C.signal.addEventListener("abort",function(){return Xe({name:"AbortError",message:$||"Aborted"})})}),m(i(T,h,(j=a==null?void 0:a.getPendingMeta)==null?void 0:j.call(a,{requestId:T,arg:h},{getState:_,extra:E}))),[4,Promise.race([Y,Promise.resolve(t(h,{dispatch:m,getState:_,extra:E,requestId:T,signal:C.signal,abort:D,rejectWithValue:function(Ce,Xe){return new Eu(Ce,Xe)},fulfillWithValue:function(Ce,Xe){return new Qd(Ce,Xe)}})).then(function(Ce){if(Ce instanceof Eu)throw Ce;return Ce instanceof Qd?s(Ce.payload,T,h,Ce.meta):s(Ce,T,h)})])];case 3:return O=Ie.sent(),[3,5];case 4:return Q=Ie.sent(),O=Q instanceof Eu?c(null,T,h,Q.payload,Q.meta):c(Q,T,h),[3,5];case 5:return ae=a&&!a.dispatchConditionRejection&&c.match(O)&&O.meta.condition,ae||m(O),[2,O]}})})}();return Object.assign(I,{abort:D,requestId:T,arg:h,unwrap:function(){return I.then(ow)}})}}return Object.assign(p,{pending:i,rejected:c,fulfilled:s,typePrefix:r})}return e.withTypes=function(){return e},e}();function ow(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function sw(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var iw=function(e,r){return hh(e)?e.match(r):e(r)};function Sr(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return function(t){return e.some(function(a){return iw(a,t)})}}function Oc(e,r){if(!e||!e.meta)return!1;var t=typeof e.meta.requestId=="string",a=r.indexOf(e.meta.requestStatus)>-1;return t&&a}function Ac(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function Sh(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return Oc(t,["pending"])}:Ac(e)?function(t){var a=e.map(function(i){return i.pending}),s=Sr.apply(void 0,a);return s(t)}:Sh()(e[0])}function Eh(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return Oc(t,["rejected"])}:Ac(e)?function(t){var a=e.map(function(i){return i.rejected}),s=Sr.apply(void 0,a);return s(t)}:Eh()(e[0])}function wh(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return Oc(t,["fulfilled"])}:Ac(e)?function(t){var a=e.map(function(i){return i.fulfilled}),s=Sr.apply(void 0,a);return s(t)}:wh()(e[0])}var Pc="listenerMiddleware";mn(Pc+"/add");mn(Pc+"/removeAll");mn(Pc+"/remove");var ep;typeof queueMicrotask=="function"&&queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis);oE();var zr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function js(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function uw(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var t=function a(){return this instanceof a?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.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 cw(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var go=cw,lw=typeof zr=="object"&&zr&&zr.Object===Object&&zr,Th=lw,fw=Th,dw=typeof self=="object"&&self&&self.Object===Object&&self,pw=fw||dw||Function("return this")(),Pr=pw,hw=Pr,gw=function(){return hw.Date.now()},vw=gw,yw=/\s/;function mw(e){for(var r=e.length;r--&&yw.test(e.charAt(r)););return r}var bw=mw,_w=bw,Sw=/^\s+/;function Ew(e){return e&&e.slice(0,_w(e)+1).replace(Sw,"")}var ww=Ew,Tw=Pr,Cw=Tw.Symbol,Dc=Cw,tp=Dc,Ch=Object.prototype,xw=Ch.hasOwnProperty,Rw=Ch.toString,Ja=tp?tp.toStringTag:void 0;function Ow(e){var r=xw.call(e,Ja),t=e[Ja];try{e[Ja]=void 0;var a=!0}catch{}var s=Rw.call(e);return a&&(r?e[Ja]=t:delete e[Ja]),s}var Aw=Ow,Pw=Object.prototype,Dw=Pw.toString;function Iw(e){return Dw.call(e)}var Fw=Iw,rp=Dc,$w=Aw,Mw=Fw,Nw="[object Null]",Lw="[object Undefined]",np=rp?rp.toStringTag:void 0;function jw(e){return e==null?e===void 0?Lw:Nw:np&&np in Object(e)?$w(e):Mw(e)}var ks=jw;function kw(e){return e!=null&&typeof e=="object"}var Ic=kw,Bw=ks,Ww=Ic,Uw="[object Symbol]";function Hw(e){return typeof e=="symbol"||Ww(e)&&Bw(e)==Uw}var Gw=Hw,qw=ww,ap=go,Yw=Gw,op=0/0,zw=/^[-+]0x[0-9a-f]+$/i,Vw=/^0b[01]+$/i,Kw=/^0o[0-7]+$/i,Jw=parseInt;function Zw(e){if(typeof e=="number")return e;if(Yw(e))return op;if(ap(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=ap(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=qw(e);var t=Vw.test(e);return t||Kw.test(e)?Jw(e.slice(2),t?2:8):zw.test(e)?op:+e}var Xw=Zw,Qw=go,wu=vw,sp=Xw,eT="Expected a function",tT=Math.max,rT=Math.min;function nT(e,r,t){var a,s,i,c,l,d,p=0,h=!1,m=!1,_=!0;if(typeof e!="function")throw new TypeError(eT);r=sp(r)||0,Qw(t)&&(h=!!t.leading,m="maxWait"in t,i=m?tT(sp(t.maxWait)||0,r):i,_="trailing"in t?!!t.trailing:_);function E(K){var Y=a,Q=s;return a=s=void 0,p=K,c=e.apply(Q,Y),c}function T(K){return p=K,l=setTimeout(D,r),h?E(K):c}function C(K){var Y=K-d,Q=K-p,ae=r-Y;return m?rT(ae,i-Q):ae}function $(K){var Y=K-d,Q=K-p;return d===void 0||Y>=r||Y<0||m&&Q>=i}function D(){var K=wu();if($(K))return I(K);l=setTimeout(D,C(K))}function I(K){return l=void 0,_&&a?E(K):(a=s=void 0,c)}function W(){l!==void 0&&clearTimeout(l),p=0,a=d=s=l=void 0}function j(){return l===void 0?c:I(wu())}function O(){var K=wu(),Y=$(K);if(a=arguments,s=this,d=K,Y){if(l===void 0)return T(d);if(m)return clearTimeout(l),l=setTimeout(D,r),E(d)}return l===void 0&&(l=setTimeout(D,r)),c}return O.cancel=W,O.flush=j,O}var aT=nT,oT=aT,sT=go,iT="Expected a function";function uT(e,r,t){var a=!0,s=!0;if(typeof e!="function")throw new TypeError(iT);return sT(t)&&(a="leading"in t?!!t.leading:a,s="trailing"in t?!!t.trailing:s),oT(e,r,{leading:a,maxWait:r,trailing:s})}var cT=uT;const lT=js(cT);var xh=(e=>(e[e.First=0]="First",e[e.Last=-1]="Last",e))(xh||{}),Yr=(e=>(e.ATTACHED="attached",e.DETACHED="detached",e.ERROR="error",e))(Yr||{}),Ts=(e=>(e.SOCKET_ERROR="socket-error",e.SOCKET_CLOSURE="socket-closure",e))(Ts||{}),Rh=(e=>(e.NOT_STARTED="remote debugger not started",e.ALREADY_IN_USE="already in use",e.TIMEOUT="timeout",e))(Rh||{});const Bs=2e3,Fc={tabs:[],activeTab:"",recent:[],roles:{roles:{},privileges:{},flags:{touched:!1},selectedTab:"roles",forceLogin:!1},sharedCSS:{state:"loading",styles:[]},debugger:{meta:{state:Yr.DETACHED},list:[],sessions:[],expressions:[]},webforms:{templates:{selectedGroup:"",data:[]},components:[],inspector:{css:{active:!1},datasource:{active:!1}},datasources:{theme:"grey"},flags:{"sidebar.section.resizable":!0}}},Oh="4DWS_PREFS",Ah=e=>`APP_STATE_${e}`,Ph=()=>{var e,r;return((r=(e=window==null?void 0:window.$$datastores)==null?void 0:e.ds)==null?void 0:r.getBaseID())||""};function Dh(e){try{const r=Ph(),t=JSON.stringify(e);localStorage.setItem(Ah(r),t)}catch(r){console.error(r)}}function Ih(e){try{const r=JSON.stringify(e);localStorage.setItem(Oh,r)}catch(r){console.error(r)}}function Fh(){try{const e=localStorage.getItem(Oh);if(e)return JSON.parse(e)}catch(e){console.error(e)}}function _a(){const e=Ph(),r=localStorage.getItem(Ah(e));if(r){const t=JSON.parse(r);return t.tabs=t.tabs.map(a=>({...a,flags:{...a.flags,enabled:!0}})),t}return Fc}function Ws(e){const{name:r,type:t,path:a}=e,s=a.split(".").at(-1);switch(t){case S.FileFolderType.WEBFORM:return`${r}.WebForm`;case S.FileFolderType.METHOD:case S.FileFolderType.CLASS:return s?`${r}.${s}`:r;case S.FileFolderType.ROLES:return r;default:return`${r}.${t}`}}const $h=e=>{if(!e)return[];const r=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};r.set(t.name,s)}),Array.from(r.values())};function Mh(e){return e?["json","4dmodel","webform","mform"].includes(e.toLowerCase()):!1}function Nh(e,r){return{...e,components:Object.entries(e.components||{}).reduce((t,[a,s])=>({...t,[a]:{...s,custom:Object.entries(s.custom).reduce((i,[c,l])=>c===`states:${r}`?i:{...i,[c]:l},{}),props:Object.entries(s.props).reduce((i,[c,l])=>{let d=l;return c==="events"&&(d=d.map(p=>{var h,m;return p.type==="simple-action"?{...p,state:{...p.state,states:(m=(h=p.state)==null?void 0:h.states)==null?void 0:m.filter(_=>_!==r)}}:p})),{...i,[c]:d}},{})}}),{}),metadata:{...e.metadata,states:e.metadata.states.filter(t=>t.id!==r)}}}function fT(){this.__data__=[],this.size=0}var dT=fT;function pT(e,r){return e===r||e!==e&&r!==r}var hT=pT,gT=hT;function vT(e,r){for(var t=e.length;t--;)if(gT(e[t][0],r))return t;return-1}var Us=vT,yT=Us,mT=Array.prototype,bT=mT.splice;function _T(e){var r=this.__data__,t=yT(r,e);if(t<0)return!1;var a=r.length-1;return t==a?r.pop():bT.call(r,t,1),--this.size,!0}var ST=_T,ET=Us;function wT(e){var r=this.__data__,t=ET(r,e);return t<0?void 0:r[t][1]}var TT=wT,CT=Us;function xT(e){return CT(this.__data__,e)>-1}var RT=xT,OT=Us;function AT(e,r){var t=this.__data__,a=OT(t,e);return a<0?(++this.size,t.push([e,r])):t[a][1]=r,this}var PT=AT,DT=dT,IT=ST,FT=TT,$T=RT,MT=PT;function Sa(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var a=e[r];this.set(a[0],a[1])}}Sa.prototype.clear=DT;Sa.prototype.delete=IT;Sa.prototype.get=FT;Sa.prototype.has=$T;Sa.prototype.set=MT;var Hs=Sa,NT=Hs;function LT(){this.__data__=new NT,this.size=0}var jT=LT;function kT(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}var BT=kT;function WT(e){return this.__data__.get(e)}var UT=WT;function HT(e){return this.__data__.has(e)}var GT=HT,qT=ks,YT=go,zT="[object AsyncFunction]",VT="[object Function]",KT="[object GeneratorFunction]",JT="[object Proxy]";function ZT(e){if(!YT(e))return!1;var r=qT(e);return r==VT||r==KT||r==zT||r==JT}var XT=ZT,QT=Pr,eC=QT["__core-js_shared__"],tC=eC,Tu=tC,ip=function(){var e=/[^.]+$/.exec(Tu&&Tu.keys&&Tu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function rC(e){return!!ip&&ip in e}var nC=rC,aC=Function.prototype,oC=aC.toString;function sC(e){if(e!=null){try{return oC.call(e)}catch{}try{return e+""}catch{}}return""}var Lh=sC,iC=XT,uC=nC,cC=go,lC=Lh,fC=/[\\^$.*+?()[\]{}|]/g,dC=/^\[object .+?Constructor\]$/,pC=Function.prototype,hC=Object.prototype,gC=pC.toString,vC=hC.hasOwnProperty,yC=RegExp("^"+gC.call(vC).replace(fC,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mC(e){if(!cC(e)||uC(e))return!1;var r=iC(e)?yC:dC;return r.test(lC(e))}var bC=mC;function _C(e,r){return e==null?void 0:e[r]}var SC=_C,EC=bC,wC=SC;function TC(e,r){var t=wC(e,r);return EC(t)?t:void 0}var Ea=TC,CC=Ea,xC=Pr,RC=CC(xC,"Map"),$c=RC,OC=Ea,AC=OC(Object,"create"),Gs=AC,up=Gs;function PC(){this.__data__=up?up(null):{},this.size=0}var DC=PC;function IC(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var FC=IC,$C=Gs,MC="__lodash_hash_undefined__",NC=Object.prototype,LC=NC.hasOwnProperty;function jC(e){var r=this.__data__;if($C){var t=r[e];return t===MC?void 0:t}return LC.call(r,e)?r[e]:void 0}var kC=jC,BC=Gs,WC=Object.prototype,UC=WC.hasOwnProperty;function HC(e){var r=this.__data__;return BC?r[e]!==void 0:UC.call(r,e)}var GC=HC,qC=Gs,YC="__lodash_hash_undefined__";function zC(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=qC&&r===void 0?YC:r,this}var VC=zC,KC=DC,JC=FC,ZC=kC,XC=GC,QC=VC;function wa(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var a=e[r];this.set(a[0],a[1])}}wa.prototype.clear=KC;wa.prototype.delete=JC;wa.prototype.get=ZC;wa.prototype.has=XC;wa.prototype.set=QC;var ex=wa,cp=ex,tx=Hs,rx=$c;function nx(){this.size=0,this.__data__={hash:new cp,map:new(rx||tx),string:new cp}}var ax=nx;function ox(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var sx=ox,ix=sx;function ux(e,r){var t=e.__data__;return ix(r)?t[typeof r=="string"?"string":"hash"]:t.map}var qs=ux,cx=qs;function lx(e){var r=cx(this,e).delete(e);return this.size-=r?1:0,r}var fx=lx,dx=qs;function px(e){return dx(this,e).get(e)}var hx=px,gx=qs;function vx(e){return gx(this,e).has(e)}var yx=vx,mx=qs;function bx(e,r){var t=mx(this,e),a=t.size;return t.set(e,r),this.size+=t.size==a?0:1,this}var _x=bx,Sx=ax,Ex=fx,wx=hx,Tx=yx,Cx=_x;function Ta(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var a=e[r];this.set(a[0],a[1])}}Ta.prototype.clear=Sx;Ta.prototype.delete=Ex;Ta.prototype.get=wx;Ta.prototype.has=Tx;Ta.prototype.set=Cx;var jh=Ta,xx=Hs,Rx=$c,Ox=jh,Ax=200;function Px(e,r){var t=this.__data__;if(t instanceof xx){var a=t.__data__;if(!Rx||a.length<Ax-1)return a.push([e,r]),this.size=++t.size,this;t=this.__data__=new Ox(a)}return t.set(e,r),this.size=t.size,this}var Dx=Px,Ix=Hs,Fx=jT,$x=BT,Mx=UT,Nx=GT,Lx=Dx;function vo(e){var r=this.__data__=new Ix(e);this.size=r.size}vo.prototype.clear=Fx;vo.prototype.delete=$x;vo.prototype.get=Mx;vo.prototype.has=Nx;vo.prototype.set=Lx;var jx="__lodash_hash_undefined__";function kx(e){return this.__data__.set(e,jx),this}var Bx=kx;function Wx(e){return this.__data__.has(e)}var Ux=Wx,Hx=jh,Gx=Bx,qx=Ux;function Ku(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new Hx;++r<t;)this.add(e[r])}Ku.prototype.add=Ku.prototype.push=Gx;Ku.prototype.has=qx;var Yx=Pr;Yx.Uint8Array;var lp=Dc,fp=lp?lp.prototype:void 0;fp&&fp.valueOf;var zx=ks,Vx=Ic,Kx="[object Arguments]";function Jx(e){return Vx(e)&&zx(e)==Kx}var Zx=Jx,dp=Zx,Xx=Ic,kh=Object.prototype,Qx=kh.hasOwnProperty,eR=kh.propertyIsEnumerable;dp(function(){return arguments}());var Cs={exports:{}};function tR(){return!1}var rR=tR;Cs.exports;(function(e,r){var t=Pr,a=rR,s=r&&!r.nodeType&&r,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})(Cs,Cs.exports);Cs.exports;var xs={exports:{}};xs.exports;(function(e,r){var t=Th,a=r&&!r.nodeType&&r,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})(xs,xs.exports);var nR=xs.exports,pp=nR;pp&&pp.isTypedArray;var aR=Ea,oR=Pr,sR=aR(oR,"DataView"),iR=sR,uR=Ea,cR=Pr,lR=uR(cR,"Promise"),fR=lR,dR=Ea,pR=Pr,hR=dR(pR,"Set"),gR=hR,vR=Ea,yR=Pr,mR=vR(yR,"WeakMap"),bR=mR,Ju=iR,Zu=$c,Xu=fR,Qu=gR,ec=bR,Bh=ks,Ca=Lh,hp="[object Map]",_R="[object Object]",gp="[object Promise]",vp="[object Set]",yp="[object WeakMap]",mp="[object DataView]",SR=Ca(Ju),ER=Ca(Zu),wR=Ca(Xu),TR=Ca(Qu),CR=Ca(ec),fa=Bh;(Ju&&fa(new Ju(new ArrayBuffer(1)))!=mp||Zu&&fa(new Zu)!=hp||Xu&&fa(Xu.resolve())!=gp||Qu&&fa(new Qu)!=vp||ec&&fa(new ec)!=yp)&&(fa=function(e){var r=Bh(e),t=r==_R?e.constructor:void 0,a=t?Ca(t):"";if(a)switch(a){case SR:return mp;case ER:return hp;case wR:return gp;case TR:return vp;case CR:return yp}return r});const xR="ROOT";iE(),sE();var bp;(function(e){e[e.HandlerDisabled=0]="HandlerDisabled",e[e.HandlerEnabled=1]="HandlerEnabled"})(bp||(bp={}));var Rs={exports:{}};/**
|
|
9
10
|
* @license
|
|
10
11
|
* Lodash <https://lodash.com/>
|
|
11
12
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
12
13
|
* Released under MIT license <https://lodash.com/license>
|
|
13
14
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
14
15
|
* 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\]$/,jv=/^0o[0-7]+$/i,kv=/^(?:0|[1-9]\d*)$/,Bv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,lo=/($^)/,Wv=/['\n\r\u2028\u2029\\]/g,fo="\\ud800-\\udfff",Uv="\\u0300-\\u036f",Hv="\\ufe20-\\ufe2f",Gv="\\u20d0-\\u20ff",ol=Uv+Hv+Gv,sl="\\u2700-\\u27bf",il="a-z\\xdf-\\xf6\\xf8-\\xff",qv="\\xac\\xb1\\xd7\\xf7",Yv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",zv="\\u2000-\\u206f",Vv=" \\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=qv+Yv+zv+Vv,Qs="['’]",Kv="["+fo+"]",fl="["+ll+"]",po="["+ol+"]",dl="\\d+",Jv="["+sl+"]",pl="["+il+"]",hl="[^"+fo+ll+dl+sl+il+ul+"]",ei="\\ud83c[\\udffb-\\udfff]",Xv="(?:"+po+"|"+ei+")",gl="[^"+fo+"]",ti="(?:\\ud83c[\\udde6-\\uddff]){2}",ri="[\\ud800-\\udbff][\\udc00-\\udfff]",Hn="["+ul+"]",vl="\\u200d",yl="(?:"+pl+"|"+hl+")",Zv="(?:"+Hn+"|"+hl+")",ml="(?:"+Qs+"(?:d|ll|m|re|s|t|ve))?",bl="(?:"+Qs+"(?:D|LL|M|RE|S|T|VE))?",_l=Xv+"?",El="["+cl+"]?",Qv="(?:"+vl+"(?:"+[gl,ti,ri].join("|")+")"+El+_l+")*",ey="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ty="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Sl=El+_l+Qv,ry="(?:"+[Jv,ti,ri].join("|")+")"+Sl,ny="(?:"+[gl+po+"?",po,ti,ri,Kv].join("|")+")",ay=RegExp(Qs,"g"),oy=RegExp(po,"g"),ni=RegExp(ei+"(?="+ei+")|"+ny+Sl,"g"),sy=RegExp([Hn+"?"+pl+"+"+ml+"(?="+[fl,Hn,"$"].join("|")+")",Zv+"+"+bl+"(?="+[fl,Hn+yl,"$"].join("|")+")",Hn+"?"+yl+"+"+ml,Hn+"+"+bl,ty,ey,dl,ry].join("|"),"g"),iy=RegExp("["+vl+fo+ol+cl+"]"),uy=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,cy=["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"],ly=-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 fy={À:"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"},dy={"&":"&","<":"<",">":">",'"':""","'":"'"},py={"&":"&","<":"<",">":">",""":'"',"'":"'"},hy={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},gy=parseFloat,vy=parseInt,wl=typeof qr=="object"&&qr&&qr.Object===Object&&qr,yy=typeof self=="object"&&self&&self.Object===Object&&self,Et=wl||yy||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 my(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 by(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 _y(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 Ey=ci("length");function Sy(O){return O.split("")}function wy(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?My(O,L,M):go(O,Fl,M)}function Ty(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 Cy(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 xy(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 Ry(O,L){for(var M=O.length,te=0;M--;)O[M]===L&&++te;return te}var Oy=li(fy),Ay=li(dy);function Py(O){return"\\"+hy[O]}function Dy(O,L){return O==null?t:O[L]}function qn(O){return iy.test(O)}function Iy(O){return uy.test(O)}function Fy(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 $y(O){var L=-1,M=Array(O.size);return O.forEach(function(te){M[++L]=[te,te]}),M}function My(O,L,M){for(var te=M-1,_e=O.length;++te<_e;)if(O[te]===L)return te;return-1}function Ny(O,L,M){for(var te=M+1;te--;)if(O[te]===L)return te;return te}function Yn(O){return qn(O)?jy(O):Ey(O)}function gr(O){return qn(O)?ky(O):Sy(O)}function Bl(O){for(var L=O.length;L--&&q.test(O.charAt(L)););return L}var Ly=li(py);function jy(O){for(var L=ni.lastIndex=0;ni.test(O);)++L;return L}function ky(O){return O.match(ni)||[]}function By(O){return O.match(sy)||[]}var Wy=function O(L){L=L==null?Et:zn.defaults(Et.Object(),L,zn.pick(Et,cy));var M=L.Array,te=L.Date,_e=L.Error,$e=L.Function,ht=L.Math,Ve=L.Object,gi=L.RegExp,Uy=L.String,nr=L.TypeError,yo=M.prototype,Hy=$e.prototype,Vn=Ve.prototype,mo=L["__core-js_shared__"],bo=Hy.toString,He=Vn.hasOwnProperty,Gy=0,Wl=function(){var r=/[^.]+$/.exec(mo&&mo.keys&&mo.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),_o=Vn.toString,qy=bo.call(Ve),Yy=Et._,zy=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{}}(),Vy=L.clearTimeout!==Et.clearTimeout&&L.clearTimeout,Ky=te&&te.now!==Et.Date.now&&te.now,Jy=L.setTimeout!==Et.setTimeout&&L.setTimeout,xo=ht.ceil,Ro=ht.floor,vi=Ve.getOwnPropertySymbols,Xy=Eo?Eo.isBuffer:t,Yl=L.isFinite,Zy=yo.join,Qy=kl(Ve.keys,Ve),gt=ht.max,Tt=ht.min,em=te.now,tm=L.parseInt,zl=ht.random,rm=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={},nm=$n(yi),am=$n(Pa),om=$n(mi),sm=$n(Kn),im=$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 um(){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 cm(){if(this.__filtered__){var r=new Pe(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function lm(){var r=this.__wrapped__.value(),o=this.__dir__,u=Se(r),f=o<0,v=u?r.length:0,m=S0(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 fm(){this.__data__=Ia?Ia(null):{},this.size=0}function dm(r){var o=this.has(r)&&delete this.__data__[r];return this.size-=o?1:0,o}function pm(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 hm(r){var o=this.__data__;return Ia?o[r]!==t:He.call(o,r)}function gm(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=fm,An.prototype.delete=dm,An.prototype.get=pm,An.prototype.has=hm,An.prototype.set=gm;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 vm(){this.__data__=[],this.size=0}function ym(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 mm(r){var o=this.__data__,u=Do(o,r);return u<0?t:o[u][1]}function bm(r){return Do(this.__data__,r)>-1}function _m(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=vm,Mr.prototype.delete=ym,Mr.prototype.get=mm,Mr.prototype.has=bm,Mr.prototype.set=_m;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 Em(){this.size=0,this.__data__={hash:new An,map:new(Pa||Mr),string:new An}}function Sm(r){var o=Ho(this,r).delete(r);return this.size-=o?1:0,o}function wm(r){return Ho(this,r).get(r)}function Tm(r){return Ho(this,r).has(r)}function Cm(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=Em,Nr.prototype.delete=Sm,Nr.prototype.get=wm,Nr.prototype.has=Tm,Nr.prototype.set=Cm;function Pn(r){var o=-1,u=r==null?0:r.length;for(this.__data__=new Nr;++o<u;)this.add(r[o])}function xm(r){return this.__data__.set(r,d),this}function Rm(r){return this.__data__.has(r)}Pn.prototype.add=Pn.prototype.push=xm,Pn.prototype.has=Rm;function vr(r){var o=this.__data__=new Mr(r);this.size=o.size}function Om(){this.__data__=new Mr,this.size=0}function Am(r){var o=this.__data__,u=o.delete(r);return this.size=o.size,u}function Pm(r){return this.__data__.get(r)}function Dm(r){return this.__data__.has(r)}function Im(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=Om,vr.prototype.delete=Am,vr.prototype.get=Pm,vr.prototype.has=Dm,vr.prototype.set=Im;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,Uy):[],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 Fm(r,o){return Go(kt(r),Dn(o,0,r.length))}function $m(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 Mm(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 Nm(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=T0(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?p0(r,Nm(w,r)):d0(r,Xl(w,r))}else{if(!Je[U])return v?r:{};w=C0(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 Lm(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 jm(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 km(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=R0),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)?E0(r):$0(r)}function wi(r,o){return r>o}function Bm(r,o){return r!=null&&He.call(r,o)}function Wm(r,o){return r!=null&&o in Ve(r)}function Um(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 Hm(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 Gm(r){return ot(r)&&$t(r)==Fr}function qm(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:Ym(r,o,u,f,La,v)}function Ym(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):b0(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),_0(r,o,u,f,v,m)):!1}function zm(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)||A0(r))return!1;var o=Wr(r)?zy:ut;return o.test($n(r))}function Vm(r){return ot(r)&&$t(r)==bt}function Km(r){return ot(r)&&Ct(r)==pt}function Jm(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 Qy(r);var o=[];for(var u in Ve(r))He.call(r,u)&&u!="constructor"&&o.push(u);return o}function Xm(r){if(!nt(r))return F0(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))Zm(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 Zm(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 Cy(v,function(m,w){return f0(m,w,u)})}function Qm(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 e0(r){return function(o){return In(o,r)}}function Oi(r,o,u,f){var v=f?Ty: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 t0(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 r0(r){return Jl(ra(r))}function n0(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,a0=Co?function(r,o){return Co(r,"toString",{configurable:!0,enumerable:!1,value:nu(o),writable:!0})}:Ut;function o0(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 s0(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:y0(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 i0=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=Vy||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 u0(r,o){var u=o?Ni(r.buffer):r.buffer;return new r.constructor(u,r.byteOffset,r.byteLength)}function c0(r){var o=new r.constructor(r.source,at.exec(r));return o.lastIndex=r.lastIndex,o}function l0(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 f0(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 d0(r,o){return xr(r,Hi(r),o)}function p0(r,o){return xr(r,kf(r),o)}function Lo(r,o){return function(u,f){var v=Se(u)?my:Mm,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 h0(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(ay,"")),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 g0(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=Ry(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=M0(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 Hm(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 v0(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),t0(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 y0=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?$y(o):xy(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&&I0(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=h0(r,o,u);else o==$||o==j?de=g0(r,o,C):(o==A||o==(F|A))&&!v.length?de=v0(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 m0(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 b0(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 _0(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 O0(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=Dy(r,o);return of(u)?u:t}function E0(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 nm:return Tr;case am:return qe;case om:return er;case sm:return pt;case im:return qt}return o});function S0(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 w0(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 T0(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 C0(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 u0(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 c0(r);case pt:return new f;case wr:return l0(r)}}function x0(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
|
+
*/Rs.exports;(function(e,r){(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__",m=1,_=2,E=4,T=1,C=2,$=1,D=2,I=4,W=8,j=16,O=32,K=64,Y=128,Q=256,ae=512,Ie=30,Ce="...",Xe=800,z=16,Pe=1,Qe=2,et=3,Ue=1/0,rt=9007199254740991,Dt=17976931348623157e292,H=0/0,V=4294967295,ve=V-1,he=V>>>1,le=[["ary",Y],["bind",$],["bindKey",D],["curry",W],["curryRight",j],["flip",ae],["partial",O],["partialRight",K],["rearg",Q]],ye="[object Arguments]",ie="[object Array]",fe="[object AsyncFunction]",ue="[object Boolean]",me="[object Date]",ge="[object DOMException]",J="[object Error]",N="[object Function]",Je="[object GeneratorFunction]",Ge="[object Map]",ut="[object Number]",dr="[object Null]",It="[object Object]",rn="[object Promise]",pr="[object Proxy]",Ir="[object RegExp]",Ft="[object Set]",qt="[object String]",nn="[object Symbol]",Oa="[object Undefined]",hr="[object WeakMap]",_n="[object WeakSet]",bt="[object ArrayBuffer]",wr="[object DataView]",Fr="[object Float32Array]",$r="[object Float64Array]",gr="[object Int8Array]",Sn="[object Int16Array]",En="[object Int32Array]",wn="[object Uint8Array]",Tn="[object Uint8ClampedArray]",Cn="[object Uint16Array]",xn="[object Uint32Array]",Aa=/\b__p \+= '';/g,Mr=/\b(__p \+=) '' \+/g,Rn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wt=/&(?:amp|lt|gt|quot|#39);/g,Tr=/[&<>"']/g,Nr=RegExp(wt.source),On=RegExp(Tr.source),Pa=/<%-([\s\S]+?)%>/g,An=/<%([\s\S]+?)%>/g,Jn=/<%=([\s\S]+?)%>/g,Pn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dn=/^\w*$/,Da=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,In=/[\\^$.*+?()[\]{}|]/g,Fn=RegExp(In.source),$n=/^\s+/,Ia=/\s/,Fa=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$a=/\{\n\/\* \[wrapped with (.+)\] \*/,g=/,? & /,R=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,F=/[()=,{}\[\]\/\s]/,G=/\\(\\)?/g,re=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,se=/\w*$/,ee=/^[-+]0x[0-9a-f]+$/i,X=/^0b[01]+$/i,Fe=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,Se=/^(?:0|[1-9]\d*)$/,ze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yt=/($^)/,Mn=/['\n\r\u2028\u2029\\]/g,nt="\\ud800-\\udfff",Vv="\\u0300-\\u036f",Kv="\\ufe20-\\ufe2f",Jv="\\u20d0-\\u20ff",ll=Vv+Kv+Jv,fl="\\u2700-\\u27bf",dl="a-z\\xdf-\\xf6\\xf8-\\xff",Zv="\\xac\\xb1\\xd7\\xf7",Xv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Qv="\\u2000-\\u206f",ey=" \\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",pl="A-Z\\xc0-\\xd6\\xd8-\\xde",hl="\\ufe0e\\ufe0f",gl=Zv+Xv+Qv+ey,oi="['’]",ty="["+nt+"]",vl="["+gl+"]",bo="["+ll+"]",yl="\\d+",ry="["+fl+"]",ml="["+dl+"]",bl="[^"+nt+gl+yl+fl+dl+pl+"]",si="\\ud83c[\\udffb-\\udfff]",ny="(?:"+bo+"|"+si+")",_l="[^"+nt+"]",ii="(?:\\ud83c[\\udde6-\\uddff]){2}",ui="[\\ud800-\\udbff][\\udc00-\\udfff]",Zn="["+pl+"]",Sl="\\u200d",El="(?:"+ml+"|"+bl+")",ay="(?:"+Zn+"|"+bl+")",wl="(?:"+oi+"(?:d|ll|m|re|s|t|ve))?",Tl="(?:"+oi+"(?:D|LL|M|RE|S|T|VE))?",Cl=ny+"?",xl="["+hl+"]?",oy="(?:"+Sl+"(?:"+[_l,ii,ui].join("|")+")"+xl+Cl+")*",sy="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",iy="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Rl=xl+Cl+oy,uy="(?:"+[ry,ii,ui].join("|")+")"+Rl,cy="(?:"+[_l+bo+"?",bo,ii,ui,ty].join("|")+")",ly=RegExp(oi,"g"),fy=RegExp(bo,"g"),ci=RegExp(si+"(?="+si+")|"+cy+Rl,"g"),dy=RegExp([Zn+"?"+ml+"+"+wl+"(?="+[vl,Zn,"$"].join("|")+")",ay+"+"+Tl+"(?="+[vl,Zn+El,"$"].join("|")+")",Zn+"?"+El+"+"+wl,Zn+"+"+Tl,iy,sy,yl,uy].join("|"),"g"),py=RegExp("["+Sl+nt+ll+hl+"]"),hy=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gy=["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"],vy=-1,tt={};tt[Fr]=tt[$r]=tt[gr]=tt[Sn]=tt[En]=tt[wn]=tt[Tn]=tt[Cn]=tt[xn]=!0,tt[ye]=tt[ie]=tt[bt]=tt[ue]=tt[wr]=tt[me]=tt[J]=tt[N]=tt[Ge]=tt[ut]=tt[It]=tt[Ir]=tt[Ft]=tt[qt]=tt[hr]=!1;var Ze={};Ze[ye]=Ze[ie]=Ze[bt]=Ze[wr]=Ze[ue]=Ze[me]=Ze[Fr]=Ze[$r]=Ze[gr]=Ze[Sn]=Ze[En]=Ze[Ge]=Ze[ut]=Ze[It]=Ze[Ir]=Ze[Ft]=Ze[qt]=Ze[nn]=Ze[wn]=Ze[Tn]=Ze[Cn]=Ze[xn]=!0,Ze[J]=Ze[N]=Ze[hr]=!1;var yy={À:"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"},my={"&":"&","<":"<",">":">",'"':""","'":"'"},by={"&":"&","<":"<",">":">",""":'"',"'":"'"},_y={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Sy=parseFloat,Ey=parseInt,Ol=typeof zr=="object"&&zr&&zr.Object===Object&&zr,wy=typeof self=="object"&&self&&self.Object===Object&&self,_t=Ol||wy||Function("return this")(),li=r&&!r.nodeType&&r,Nn=li&&!0&&e&&!e.nodeType&&e,Al=Nn&&Nn.exports===li,fi=Al&&Ol.process,er=function(){try{var A=Nn&&Nn.require&&Nn.require("util").types;return A||fi&&fi.binding&&fi.binding("util")}catch{}}(),Pl=er&&er.isArrayBuffer,Dl=er&&er.isDate,Il=er&&er.isMap,Fl=er&&er.isRegExp,$l=er&&er.isSet,Ml=er&&er.isTypedArray;function Yt(A,L,M){switch(M.length){case 0:return A.call(L);case 1:return A.call(L,M[0]);case 2:return A.call(L,M[0],M[1]);case 3:return A.call(L,M[0],M[1],M[2])}return A.apply(L,M)}function Ty(A,L,M,te){for(var _e=-1,Me=A==null?0:A.length;++_e<Me;){var pt=A[_e];L(te,pt,M(pt),A)}return te}function tr(A,L){for(var M=-1,te=A==null?0:A.length;++M<te&&L(A[M],M,A)!==!1;);return A}function Cy(A,L){for(var M=A==null?0:A.length;M--&&L(A[M],M,A)!==!1;);return A}function Nl(A,L){for(var M=-1,te=A==null?0:A.length;++M<te;)if(!L(A[M],M,A))return!1;return!0}function an(A,L){for(var M=-1,te=A==null?0:A.length,_e=0,Me=[];++M<te;){var pt=A[M];L(pt,M,A)&&(Me[_e++]=pt)}return Me}function _o(A,L){var M=A==null?0:A.length;return!!M&&Xn(A,L,0)>-1}function di(A,L,M){for(var te=-1,_e=A==null?0:A.length;++te<_e;)if(M(L,A[te]))return!0;return!1}function at(A,L){for(var M=-1,te=A==null?0:A.length,_e=Array(te);++M<te;)_e[M]=L(A[M],M,A);return _e}function on(A,L){for(var M=-1,te=L.length,_e=A.length;++M<te;)A[_e+M]=L[M];return A}function pi(A,L,M,te){var _e=-1,Me=A==null?0:A.length;for(te&&Me&&(M=A[++_e]);++_e<Me;)M=L(M,A[_e],_e,A);return M}function xy(A,L,M,te){var _e=A==null?0:A.length;for(te&&_e&&(M=A[--_e]);_e--;)M=L(M,A[_e],_e,A);return M}function hi(A,L){for(var M=-1,te=A==null?0:A.length;++M<te;)if(L(A[M],M,A))return!0;return!1}var Ry=gi("length");function Oy(A){return A.split("")}function Ay(A){return A.match(R)||[]}function Ll(A,L,M){var te;return M(A,function(_e,Me,pt){if(L(_e,Me,pt))return te=Me,!1}),te}function So(A,L,M,te){for(var _e=A.length,Me=M+(te?1:-1);te?Me--:++Me<_e;)if(L(A[Me],Me,A))return Me;return-1}function Xn(A,L,M){return L===L?Wy(A,L,M):So(A,jl,M)}function Py(A,L,M,te){for(var _e=M-1,Me=A.length;++_e<Me;)if(te(A[_e],L))return _e;return-1}function jl(A){return A!==A}function kl(A,L){var M=A==null?0:A.length;return M?yi(A,L)/M:H}function gi(A){return function(L){return L==null?t:L[A]}}function vi(A){return function(L){return A==null?t:A[L]}}function Bl(A,L,M,te,_e){return _e(A,function(Me,pt,Ve){M=te?(te=!1,Me):L(M,Me,pt,Ve)}),M}function Dy(A,L){var M=A.length;for(A.sort(L);M--;)A[M]=A[M].value;return A}function yi(A,L){for(var M,te=-1,_e=A.length;++te<_e;){var Me=L(A[te]);Me!==t&&(M=M===t?Me:M+Me)}return M}function mi(A,L){for(var M=-1,te=Array(A);++M<A;)te[M]=L(M);return te}function Iy(A,L){return at(L,function(M){return[M,A[M]]})}function Wl(A){return A&&A.slice(0,ql(A)+1).replace($n,"")}function zt(A){return function(L){return A(L)}}function bi(A,L){return at(L,function(M){return A[M]})}function Ma(A,L){return A.has(L)}function Ul(A,L){for(var M=-1,te=A.length;++M<te&&Xn(L,A[M],0)>-1;);return M}function Hl(A,L){for(var M=A.length;M--&&Xn(L,A[M],0)>-1;);return M}function Fy(A,L){for(var M=A.length,te=0;M--;)A[M]===L&&++te;return te}var $y=vi(yy),My=vi(my);function Ny(A){return"\\"+_y[A]}function Ly(A,L){return A==null?t:A[L]}function Qn(A){return py.test(A)}function jy(A){return hy.test(A)}function ky(A){for(var L,M=[];!(L=A.next()).done;)M.push(L.value);return M}function _i(A){var L=-1,M=Array(A.size);return A.forEach(function(te,_e){M[++L]=[_e,te]}),M}function Gl(A,L){return function(M){return A(L(M))}}function sn(A,L){for(var M=-1,te=A.length,_e=0,Me=[];++M<te;){var pt=A[M];(pt===L||pt===h)&&(A[M]=h,Me[_e++]=M)}return Me}function Eo(A){var L=-1,M=Array(A.size);return A.forEach(function(te){M[++L]=te}),M}function By(A){var L=-1,M=Array(A.size);return A.forEach(function(te){M[++L]=[te,te]}),M}function Wy(A,L,M){for(var te=M-1,_e=A.length;++te<_e;)if(A[te]===L)return te;return-1}function Uy(A,L,M){for(var te=M+1;te--;)if(A[te]===L)return te;return te}function ea(A){return Qn(A)?Gy(A):Ry(A)}function vr(A){return Qn(A)?qy(A):Oy(A)}function ql(A){for(var L=A.length;L--&&Ia.test(A.charAt(L)););return L}var Hy=vi(by);function Gy(A){for(var L=ci.lastIndex=0;ci.test(A);)++L;return L}function qy(A){return A.match(ci)||[]}function Yy(A){return A.match(dy)||[]}var zy=function A(L){L=L==null?_t:ta.defaults(_t.Object(),L,ta.pick(_t,gy));var M=L.Array,te=L.Date,_e=L.Error,Me=L.Function,pt=L.Math,Ve=L.Object,Si=L.RegExp,Vy=L.String,rr=L.TypeError,wo=M.prototype,Ky=Me.prototype,ra=Ve.prototype,To=L["__core-js_shared__"],Co=Ky.toString,He=ra.hasOwnProperty,Jy=0,Yl=function(){var n=/[^.]+$/.exec(To&&To.keys&&To.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),xo=ra.toString,Zy=Co.call(Ve),Xy=_t._,Qy=Si("^"+Co.call(He).replace(In,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ro=Al?L.Buffer:t,un=L.Symbol,Oo=L.Uint8Array,zl=Ro?Ro.allocUnsafe:t,Ao=Gl(Ve.getPrototypeOf,Ve),Vl=Ve.create,Kl=ra.propertyIsEnumerable,Po=wo.splice,Jl=un?un.isConcatSpreadable:t,Na=un?un.iterator:t,Ln=un?un.toStringTag:t,Do=function(){try{var n=Un(Ve,"defineProperty");return n({},"",{}),n}catch{}}(),em=L.clearTimeout!==_t.clearTimeout&&L.clearTimeout,tm=te&&te.now!==_t.Date.now&&te.now,rm=L.setTimeout!==_t.setTimeout&&L.setTimeout,Io=pt.ceil,Fo=pt.floor,Ei=Ve.getOwnPropertySymbols,nm=Ro?Ro.isBuffer:t,Zl=L.isFinite,am=wo.join,om=Gl(Ve.keys,Ve),ht=pt.max,Tt=pt.min,sm=te.now,im=L.parseInt,Xl=pt.random,um=wo.reverse,wi=Un(L,"DataView"),La=Un(L,"Map"),Ti=Un(L,"Promise"),na=Un(L,"Set"),ja=Un(L,"WeakMap"),ka=Un(Ve,"create"),$o=ja&&new ja,aa={},cm=Hn(wi),lm=Hn(La),fm=Hn(Ti),dm=Hn(na),pm=Hn(ja),Mo=un?un.prototype:t,Ba=Mo?Mo.valueOf:t,Ql=Mo?Mo.toString:t;function y(n){if(it(n)&&!Ee(n)&&!(n instanceof Ae)){if(n instanceof nr)return n;if(He.call(n,"__wrapped__"))return td(n)}return new nr(n)}var oa=function(){function n(){}return function(o){if(!st(o))return{};if(Vl)return Vl(o);n.prototype=o;var u=new n;return n.prototype=t,u}}();function No(){}function nr(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=t}y.templateSettings={escape:Pa,evaluate:An,interpolate:Jn,variable:"",imports:{_:y}},y.prototype=No.prototype,y.prototype.constructor=y,nr.prototype=oa(No.prototype),nr.prototype.constructor=nr;function Ae(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=V,this.__views__=[]}function hm(){var n=new Ae(this.__wrapped__);return n.__actions__=kt(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=kt(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=kt(this.__views__),n}function gm(){if(this.__filtered__){var n=new Ae(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function vm(){var n=this.__wrapped__.value(),o=this.__dir__,u=Ee(n),f=o<0,v=u?n.length:0,b=Ob(0,v,this.__views__),w=b.start,x=b.end,P=x-w,k=f?x:w-1,B=this.__iteratees__,U=B.length,Z=0,oe=Tt(P,this.__takeCount__);if(!u||!f&&v==P&&oe==P)return Tf(n,this.__actions__);var de=[];e:for(;P--&&Z<oe;){k+=o;for(var xe=-1,pe=n[k];++xe<U;){var Oe=B[xe],De=Oe.iteratee,Jt=Oe.type,Nt=De(pe);if(Jt==Qe)pe=Nt;else if(!Nt){if(Jt==Pe)continue e;break e}}de[Z++]=pe}return de}Ae.prototype=oa(No.prototype),Ae.prototype.constructor=Ae;function jn(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var f=n[o];this.set(f[0],f[1])}}function ym(){this.__data__=ka?ka(null):{},this.size=0}function mm(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function bm(n){var o=this.__data__;if(ka){var u=o[n];return u===d?t:u}return He.call(o,n)?o[n]:t}function _m(n){var o=this.__data__;return ka?o[n]!==t:He.call(o,n)}function Sm(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=ka&&o===t?d:o,this}jn.prototype.clear=ym,jn.prototype.delete=mm,jn.prototype.get=bm,jn.prototype.has=_m,jn.prototype.set=Sm;function Lr(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var f=n[o];this.set(f[0],f[1])}}function Em(){this.__data__=[],this.size=0}function wm(n){var o=this.__data__,u=Lo(o,n);if(u<0)return!1;var f=o.length-1;return u==f?o.pop():Po.call(o,u,1),--this.size,!0}function Tm(n){var o=this.__data__,u=Lo(o,n);return u<0?t:o[u][1]}function Cm(n){return Lo(this.__data__,n)>-1}function xm(n,o){var u=this.__data__,f=Lo(u,n);return f<0?(++this.size,u.push([n,o])):u[f][1]=o,this}Lr.prototype.clear=Em,Lr.prototype.delete=wm,Lr.prototype.get=Tm,Lr.prototype.has=Cm,Lr.prototype.set=xm;function jr(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var f=n[o];this.set(f[0],f[1])}}function Rm(){this.size=0,this.__data__={hash:new jn,map:new(La||Lr),string:new jn}}function Om(n){var o=Ko(this,n).delete(n);return this.size-=o?1:0,o}function Am(n){return Ko(this,n).get(n)}function Pm(n){return Ko(this,n).has(n)}function Dm(n,o){var u=Ko(this,n),f=u.size;return u.set(n,o),this.size+=u.size==f?0:1,this}jr.prototype.clear=Rm,jr.prototype.delete=Om,jr.prototype.get=Am,jr.prototype.has=Pm,jr.prototype.set=Dm;function kn(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new jr;++o<u;)this.add(n[o])}function Im(n){return this.__data__.set(n,d),this}function Fm(n){return this.__data__.has(n)}kn.prototype.add=kn.prototype.push=Im,kn.prototype.has=Fm;function yr(n){var o=this.__data__=new Lr(n);this.size=o.size}function $m(){this.__data__=new Lr,this.size=0}function Mm(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function Nm(n){return this.__data__.get(n)}function Lm(n){return this.__data__.has(n)}function jm(n,o){var u=this.__data__;if(u instanceof Lr){var f=u.__data__;if(!La||f.length<s-1)return f.push([n,o]),this.size=++u.size,this;u=this.__data__=new jr(f)}return u.set(n,o),this.size=u.size,this}yr.prototype.clear=$m,yr.prototype.delete=Mm,yr.prototype.get=Nm,yr.prototype.has=Lm,yr.prototype.set=jm;function ef(n,o){var u=Ee(n),f=!u&&Gn(n),v=!u&&!f&&pn(n),b=!u&&!f&&!v&&ca(n),w=u||f||v||b,x=w?mi(n.length,Vy):[],P=x.length;for(var k in n)(o||He.call(n,k))&&!(w&&(k=="length"||v&&(k=="offset"||k=="parent")||b&&(k=="buffer"||k=="byteLength"||k=="byteOffset")||Ur(k,P)))&&x.push(k);return x}function tf(n){var o=n.length;return o?n[Mi(0,o-1)]:t}function km(n,o){return Jo(kt(n),Bn(o,0,n.length))}function Bm(n){return Jo(kt(n))}function Ci(n,o,u){(u!==t&&!mr(n[o],u)||u===t&&!(o in n))&&kr(n,o,u)}function Wa(n,o,u){var f=n[o];(!(He.call(n,o)&&mr(f,u))||u===t&&!(o in n))&&kr(n,o,u)}function Lo(n,o){for(var u=n.length;u--;)if(mr(n[u][0],o))return u;return-1}function Wm(n,o,u,f){return cn(n,function(v,b,w){o(f,v,u(v),w)}),f}function rf(n,o){return n&&xr(o,mt(o),n)}function Um(n,o){return n&&xr(o,Wt(o),n)}function kr(n,o,u){o=="__proto__"&&Do?Do(n,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[o]=u}function xi(n,o){for(var u=-1,f=o.length,v=M(f),b=n==null;++u<f;)v[u]=b?t:su(n,o[u]);return v}function Bn(n,o,u){return n===n&&(u!==t&&(n=n<=u?n:u),o!==t&&(n=n>=o?n:o)),n}function ar(n,o,u,f,v,b){var w,x=o&m,P=o&_,k=o&E;if(u&&(w=v?u(n,f,v,b):u(n)),w!==t)return w;if(!st(n))return n;var B=Ee(n);if(B){if(w=Pb(n),!x)return kt(n,w)}else{var U=Ct(n),Z=U==N||U==Je;if(pn(n))return Rf(n,x);if(U==It||U==ye||Z&&!v){if(w=P||Z?{}:Yf(n),!x)return P?bb(n,Um(w,n)):mb(n,rf(w,n))}else{if(!Ze[U])return v?n:{};w=Db(n,U,x)}}b||(b=new yr);var oe=b.get(n);if(oe)return oe;b.set(n,w),Sd(n)?n.forEach(function(pe){w.add(ar(pe,o,u,pe,n,b))}):bd(n)&&n.forEach(function(pe,Oe){w.set(Oe,ar(pe,o,u,Oe,n,b))});var de=k?P?Yi:qi:P?Wt:mt,xe=B?t:de(n);return tr(xe||n,function(pe,Oe){xe&&(Oe=pe,pe=n[Oe]),Wa(w,Oe,ar(pe,o,u,Oe,n,b))}),w}function Hm(n){var o=mt(n);return function(u){return nf(u,n,o)}}function nf(n,o,u){var f=u.length;if(n==null)return!f;for(n=Ve(n);f--;){var v=u[f],b=o[v],w=n[v];if(w===t&&!(v in n)||!b(w))return!1}return!0}function af(n,o,u){if(typeof n!="function")throw new rr(c);return Va(function(){n.apply(t,u)},o)}function Ua(n,o,u,f){var v=-1,b=_o,w=!0,x=n.length,P=[],k=o.length;if(!x)return P;u&&(o=at(o,zt(u))),f?(b=di,w=!1):o.length>=s&&(b=Ma,w=!1,o=new kn(o));e:for(;++v<x;){var B=n[v],U=u==null?B:u(B);if(B=f||B!==0?B:0,w&&U===U){for(var Z=k;Z--;)if(o[Z]===U)continue e;P.push(B)}else b(o,U,f)||P.push(B)}return P}var cn=If(Cr),of=If(Oi,!0);function Gm(n,o){var u=!0;return cn(n,function(f,v,b){return u=!!o(f,v,b),u}),u}function jo(n,o,u){for(var f=-1,v=n.length;++f<v;){var b=n[f],w=o(b);if(w!=null&&(x===t?w===w&&!Kt(w):u(w,x)))var x=w,P=b}return P}function qm(n,o,u,f){var v=n.length;for(u=we(u),u<0&&(u=-u>v?0:v+u),f=f===t||f>v?v:we(f),f<0&&(f+=v),f=u>f?0:wd(f);u<f;)n[u++]=o;return n}function sf(n,o){var u=[];return cn(n,function(f,v,b){o(f,v,b)&&u.push(f)}),u}function St(n,o,u,f,v){var b=-1,w=n.length;for(u||(u=Fb),v||(v=[]);++b<w;){var x=n[b];o>0&&u(x)?o>1?St(x,o-1,u,f,v):on(v,x):f||(v[v.length]=x)}return v}var Ri=Ff(),uf=Ff(!0);function Cr(n,o){return n&&Ri(n,o,mt)}function Oi(n,o){return n&&uf(n,o,mt)}function ko(n,o){return an(o,function(u){return Hr(n[u])})}function Wn(n,o){o=fn(o,n);for(var u=0,f=o.length;n!=null&&u<f;)n=n[Rr(o[u++])];return u&&u==f?n:t}function cf(n,o,u){var f=o(n);return Ee(n)?f:on(f,u(n))}function $t(n){return n==null?n===t?Oa:dr:Ln&&Ln in Ve(n)?Rb(n):Bb(n)}function Ai(n,o){return n>o}function Ym(n,o){return n!=null&&He.call(n,o)}function zm(n,o){return n!=null&&o in Ve(n)}function Vm(n,o,u){return n>=Tt(o,u)&&n<ht(o,u)}function Pi(n,o,u){for(var f=u?di:_o,v=n[0].length,b=n.length,w=b,x=M(b),P=1/0,k=[];w--;){var B=n[w];w&&o&&(B=at(B,zt(o))),P=Tt(B.length,P),x[w]=!u&&(o||v>=120&&B.length>=120)?new kn(w&&B):t}B=n[0];var U=-1,Z=x[0];e:for(;++U<v&&k.length<P;){var oe=B[U],de=o?o(oe):oe;if(oe=u||oe!==0?oe:0,!(Z?Ma(Z,de):f(k,de,u))){for(w=b;--w;){var xe=x[w];if(!(xe?Ma(xe,de):f(n[w],de,u)))continue e}Z&&Z.push(de),k.push(oe)}}return k}function Km(n,o,u,f){return Cr(n,function(v,b,w){o(f,u(v),b,w)}),f}function Ha(n,o,u){o=fn(o,n),n=Jf(n,o);var f=n==null?n:n[Rr(sr(o))];return f==null?t:Yt(f,n,u)}function lf(n){return it(n)&&$t(n)==ye}function Jm(n){return it(n)&&$t(n)==bt}function Zm(n){return it(n)&&$t(n)==me}function Ga(n,o,u,f,v){return n===o?!0:n==null||o==null||!it(n)&&!it(o)?n!==n&&o!==o:Xm(n,o,u,f,Ga,v)}function Xm(n,o,u,f,v,b){var w=Ee(n),x=Ee(o),P=w?ie:Ct(n),k=x?ie:Ct(o);P=P==ye?It:P,k=k==ye?It:k;var B=P==It,U=k==It,Z=P==k;if(Z&&pn(n)){if(!pn(o))return!1;w=!0,B=!1}if(Z&&!B)return b||(b=new yr),w||ca(n)?Hf(n,o,u,f,v,b):Cb(n,o,P,u,f,v,b);if(!(u&T)){var oe=B&&He.call(n,"__wrapped__"),de=U&&He.call(o,"__wrapped__");if(oe||de){var xe=oe?n.value():n,pe=de?o.value():o;return b||(b=new yr),v(xe,pe,u,f,b)}}return Z?(b||(b=new yr),xb(n,o,u,f,v,b)):!1}function Qm(n){return it(n)&&Ct(n)==Ge}function Di(n,o,u,f){var v=u.length,b=v,w=!f;if(n==null)return!b;for(n=Ve(n);v--;){var x=u[v];if(w&&x[2]?x[1]!==n[x[0]]:!(x[0]in n))return!1}for(;++v<b;){x=u[v];var P=x[0],k=n[P],B=x[1];if(w&&x[2]){if(k===t&&!(P in n))return!1}else{var U=new yr;if(f)var Z=f(k,B,P,n,o,U);if(!(Z===t?Ga(B,k,T|C,f,U):Z))return!1}}return!0}function ff(n){if(!st(n)||Mb(n))return!1;var o=Hr(n)?Qy:Fe;return o.test(Hn(n))}function eb(n){return it(n)&&$t(n)==Ir}function tb(n){return it(n)&&Ct(n)==Ft}function rb(n){return it(n)&&rs(n.length)&&!!tt[$t(n)]}function df(n){return typeof n=="function"?n:n==null?Ut:typeof n=="object"?Ee(n)?gf(n[0],n[1]):hf(n):$d(n)}function Ii(n){if(!za(n))return om(n);var o=[];for(var u in Ve(n))He.call(n,u)&&u!="constructor"&&o.push(u);return o}function nb(n){if(!st(n))return kb(n);var o=za(n),u=[];for(var f in n)f=="constructor"&&(o||!He.call(n,f))||u.push(f);return u}function Fi(n,o){return n<o}function pf(n,o){var u=-1,f=Bt(n)?M(n.length):[];return cn(n,function(v,b,w){f[++u]=o(v,b,w)}),f}function hf(n){var o=Vi(n);return o.length==1&&o[0][2]?Vf(o[0][0],o[0][1]):function(u){return u===n||Di(u,n,o)}}function gf(n,o){return Ji(n)&&zf(o)?Vf(Rr(n),o):function(u){var f=su(u,n);return f===t&&f===o?iu(u,n):Ga(o,f,T|C)}}function Bo(n,o,u,f,v){n!==o&&Ri(o,function(b,w){if(v||(v=new yr),st(b))ab(n,o,w,u,Bo,f,v);else{var x=f?f(Xi(n,w),b,w+"",n,o,v):t;x===t&&(x=b),Ci(n,w,x)}},Wt)}function ab(n,o,u,f,v,b,w){var x=Xi(n,u),P=Xi(o,u),k=w.get(P);if(k){Ci(n,u,k);return}var B=b?b(x,P,u+"",n,o,w):t,U=B===t;if(U){var Z=Ee(P),oe=!Z&&pn(P),de=!Z&&!oe&&ca(P);B=P,Z||oe||de?Ee(x)?B=x:ct(x)?B=kt(x):oe?(U=!1,B=Rf(P,!0)):de?(U=!1,B=Of(P,!0)):B=[]:Ka(P)||Gn(P)?(B=x,Gn(x)?B=Td(x):(!st(x)||Hr(x))&&(B=Yf(P))):U=!1}U&&(w.set(P,B),v(B,P,f,b,w),w.delete(P)),Ci(n,u,B)}function vf(n,o){var u=n.length;if(u)return o+=o<0?u:0,Ur(o,u)?n[o]:t}function yf(n,o,u){o.length?o=at(o,function(b){return Ee(b)?function(w){return Wn(w,b.length===1?b[0]:b)}:b}):o=[Ut];var f=-1;o=at(o,zt(ce()));var v=pf(n,function(b,w,x){var P=at(o,function(k){return k(b)});return{criteria:P,index:++f,value:b}});return Dy(v,function(b,w){return yb(b,w,u)})}function ob(n,o){return mf(n,o,function(u,f){return iu(n,f)})}function mf(n,o,u){for(var f=-1,v=o.length,b={};++f<v;){var w=o[f],x=Wn(n,w);u(x,w)&&qa(b,fn(w,n),x)}return b}function sb(n){return function(o){return Wn(o,n)}}function $i(n,o,u,f){var v=f?Py:Xn,b=-1,w=o.length,x=n;for(n===o&&(o=kt(o)),u&&(x=at(n,zt(u)));++b<w;)for(var P=0,k=o[b],B=u?u(k):k;(P=v(x,B,P,f))>-1;)x!==n&&Po.call(x,P,1),Po.call(n,P,1);return n}function bf(n,o){for(var u=n?o.length:0,f=u-1;u--;){var v=o[u];if(u==f||v!==b){var b=v;Ur(v)?Po.call(n,v,1):ji(n,v)}}return n}function Mi(n,o){return n+Fo(Xl()*(o-n+1))}function ib(n,o,u,f){for(var v=-1,b=ht(Io((o-n)/(u||1)),0),w=M(b);b--;)w[f?b:++v]=n,n+=u;return w}function Ni(n,o){var u="";if(!n||o<1||o>rt)return u;do o%2&&(u+=n),o=Fo(o/2),o&&(n+=n);while(o);return u}function Re(n,o){return Qi(Kf(n,o,Ut),n+"")}function ub(n){return tf(la(n))}function cb(n,o){var u=la(n);return Jo(u,Bn(o,0,u.length))}function qa(n,o,u,f){if(!st(n))return n;o=fn(o,n);for(var v=-1,b=o.length,w=b-1,x=n;x!=null&&++v<b;){var P=Rr(o[v]),k=u;if(P==="__proto__"||P==="constructor"||P==="prototype")return n;if(v!=w){var B=x[P];k=f?f(B,P,x):t,k===t&&(k=st(B)?B:Ur(o[v+1])?[]:{})}Wa(x,P,k),x=x[P]}return n}var _f=$o?function(n,o){return $o.set(n,o),n}:Ut,lb=Do?function(n,o){return Do(n,"toString",{configurable:!0,enumerable:!1,value:cu(o),writable:!0})}:Ut;function fb(n){return Jo(la(n))}function or(n,o,u){var f=-1,v=n.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 b=M(v);++f<v;)b[f]=n[f+o];return b}function db(n,o){var u;return cn(n,function(f,v,b){return u=o(f,v,b),!u}),!!u}function Wo(n,o,u){var f=0,v=n==null?f:n.length;if(typeof o=="number"&&o===o&&v<=he){for(;f<v;){var b=f+v>>>1,w=n[b];w!==null&&!Kt(w)&&(u?w<=o:w<o)?f=b+1:v=b}return v}return Li(n,o,Ut,u)}function Li(n,o,u,f){var v=0,b=n==null?0:n.length;if(b===0)return 0;o=u(o);for(var w=o!==o,x=o===null,P=Kt(o),k=o===t;v<b;){var B=Fo((v+b)/2),U=u(n[B]),Z=U!==t,oe=U===null,de=U===U,xe=Kt(U);if(w)var pe=f||de;else k?pe=de&&(f||Z):x?pe=de&&Z&&(f||!oe):P?pe=de&&Z&&!oe&&(f||!xe):oe||xe?pe=!1:pe=f?U<=o:U<o;pe?v=B+1:b=B}return Tt(b,ve)}function Sf(n,o){for(var u=-1,f=n.length,v=0,b=[];++u<f;){var w=n[u],x=o?o(w):w;if(!u||!mr(x,P)){var P=x;b[v++]=w===0?0:w}}return b}function Ef(n){return typeof n=="number"?n:Kt(n)?H:+n}function Vt(n){if(typeof n=="string")return n;if(Ee(n))return at(n,Vt)+"";if(Kt(n))return Ql?Ql.call(n):"";var o=n+"";return o=="0"&&1/n==-Ue?"-0":o}function ln(n,o,u){var f=-1,v=_o,b=n.length,w=!0,x=[],P=x;if(u)w=!1,v=di;else if(b>=s){var k=o?null:wb(n);if(k)return Eo(k);w=!1,v=Ma,P=new kn}else P=o?[]:x;e:for(;++f<b;){var B=n[f],U=o?o(B):B;if(B=u||B!==0?B:0,w&&U===U){for(var Z=P.length;Z--;)if(P[Z]===U)continue e;o&&P.push(U),x.push(B)}else v(P,U,u)||(P!==x&&P.push(U),x.push(B))}return x}function ji(n,o){return o=fn(o,n),n=Jf(n,o),n==null||delete n[Rr(sr(o))]}function wf(n,o,u,f){return qa(n,o,u(Wn(n,o)),f)}function Uo(n,o,u,f){for(var v=n.length,b=f?v:-1;(f?b--:++b<v)&&o(n[b],b,n););return u?or(n,f?0:b,f?b+1:v):or(n,f?b+1:0,f?v:b)}function Tf(n,o){var u=n;return u instanceof Ae&&(u=u.value()),pi(o,function(f,v){return v.func.apply(v.thisArg,on([f],v.args))},u)}function ki(n,o,u){var f=n.length;if(f<2)return f?ln(n[0]):[];for(var v=-1,b=M(f);++v<f;)for(var w=n[v],x=-1;++x<f;)x!=v&&(b[v]=Ua(b[v]||w,n[x],o,u));return ln(St(b,1),o,u)}function Cf(n,o,u){for(var f=-1,v=n.length,b=o.length,w={};++f<v;){var x=f<b?o[f]:t;u(w,n[f],x)}return w}function Bi(n){return ct(n)?n:[]}function Wi(n){return typeof n=="function"?n:Ut}function fn(n,o){return Ee(n)?n:Ji(n,o)?[n]:ed(Le(n))}var pb=Re;function dn(n,o,u){var f=n.length;return u=u===t?f:u,!o&&u>=f?n:or(n,o,u)}var xf=em||function(n){return _t.clearTimeout(n)};function Rf(n,o){if(o)return n.slice();var u=n.length,f=zl?zl(u):new n.constructor(u);return n.copy(f),f}function Ui(n){var o=new n.constructor(n.byteLength);return new Oo(o).set(new Oo(n)),o}function hb(n,o){var u=o?Ui(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function gb(n){var o=new n.constructor(n.source,se.exec(n));return o.lastIndex=n.lastIndex,o}function vb(n){return Ba?Ve(Ba.call(n)):{}}function Of(n,o){var u=o?Ui(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function Af(n,o){if(n!==o){var u=n!==t,f=n===null,v=n===n,b=Kt(n),w=o!==t,x=o===null,P=o===o,k=Kt(o);if(!x&&!k&&!b&&n>o||b&&w&&P&&!x&&!k||f&&w&&P||!u&&P||!v)return 1;if(!f&&!b&&!k&&n<o||k&&u&&v&&!f&&!b||x&&u&&v||!w&&v||!P)return-1}return 0}function yb(n,o,u){for(var f=-1,v=n.criteria,b=o.criteria,w=v.length,x=u.length;++f<w;){var P=Af(v[f],b[f]);if(P){if(f>=x)return P;var k=u[f];return P*(k=="desc"?-1:1)}}return n.index-o.index}function Pf(n,o,u,f){for(var v=-1,b=n.length,w=u.length,x=-1,P=o.length,k=ht(b-w,0),B=M(P+k),U=!f;++x<P;)B[x]=o[x];for(;++v<w;)(U||v<b)&&(B[u[v]]=n[v]);for(;k--;)B[x++]=n[v++];return B}function Df(n,o,u,f){for(var v=-1,b=n.length,w=-1,x=u.length,P=-1,k=o.length,B=ht(b-x,0),U=M(B+k),Z=!f;++v<B;)U[v]=n[v];for(var oe=v;++P<k;)U[oe+P]=o[P];for(;++w<x;)(Z||v<b)&&(U[oe+u[w]]=n[v++]);return U}function kt(n,o){var u=-1,f=n.length;for(o||(o=M(f));++u<f;)o[u]=n[u];return o}function xr(n,o,u,f){var v=!u;u||(u={});for(var b=-1,w=o.length;++b<w;){var x=o[b],P=f?f(u[x],n[x],x,u,n):t;P===t&&(P=n[x]),v?kr(u,x,P):Wa(u,x,P)}return u}function mb(n,o){return xr(n,Ki(n),o)}function bb(n,o){return xr(n,Gf(n),o)}function Ho(n,o){return function(u,f){var v=Ee(u)?Ty:Wm,b=o?o():{};return v(u,n,ce(f,2),b)}}function sa(n){return Re(function(o,u){var f=-1,v=u.length,b=v>1?u[v-1]:t,w=v>2?u[2]:t;for(b=n.length>3&&typeof b=="function"?(v--,b):t,w&&Mt(u[0],u[1],w)&&(b=v<3?t:b,v=1),o=Ve(o);++f<v;){var x=u[f];x&&n(o,x,f,b)}return o})}function If(n,o){return function(u,f){if(u==null)return u;if(!Bt(u))return n(u,f);for(var v=u.length,b=o?v:-1,w=Ve(u);(o?b--:++b<v)&&f(w[b],b,w)!==!1;);return u}}function Ff(n){return function(o,u,f){for(var v=-1,b=Ve(o),w=f(o),x=w.length;x--;){var P=w[n?x:++v];if(u(b[P],P,b)===!1)break}return o}}function _b(n,o,u){var f=o&$,v=Ya(n);function b(){var w=this&&this!==_t&&this instanceof b?v:n;return w.apply(f?u:this,arguments)}return b}function $f(n){return function(o){o=Le(o);var u=Qn(o)?vr(o):t,f=u?u[0]:o.charAt(0),v=u?dn(u,1).join(""):o.slice(1);return f[n]()+v}}function ia(n){return function(o){return pi(Id(Dd(o).replace(ly,"")),n,"")}}function Ya(n){return function(){var o=arguments;switch(o.length){case 0:return new n;case 1:return new n(o[0]);case 2:return new n(o[0],o[1]);case 3:return new n(o[0],o[1],o[2]);case 4:return new n(o[0],o[1],o[2],o[3]);case 5:return new n(o[0],o[1],o[2],o[3],o[4]);case 6:return new n(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new n(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var u=oa(n.prototype),f=n.apply(u,o);return st(f)?f:u}}function Sb(n,o,u){var f=Ya(n);function v(){for(var b=arguments.length,w=M(b),x=b,P=ua(v);x--;)w[x]=arguments[x];var k=b<3&&w[0]!==P&&w[b-1]!==P?[]:sn(w,P);if(b-=k.length,b<u)return kf(n,o,Go,v.placeholder,t,w,k,t,t,u-b);var B=this&&this!==_t&&this instanceof v?f:n;return Yt(B,this,w)}return v}function Mf(n){return function(o,u,f){var v=Ve(o);if(!Bt(o)){var b=ce(u,3);o=mt(o),u=function(x){return b(v[x],x,v)}}var w=n(o,u,f);return w>-1?v[b?o[w]:w]:t}}function Nf(n){return Wr(function(o){var u=o.length,f=u,v=nr.prototype.thru;for(n&&o.reverse();f--;){var b=o[f];if(typeof b!="function")throw new rr(c);if(v&&!w&&Vo(b)=="wrapper")var w=new nr([],!0)}for(f=w?f:u;++f<u;){b=o[f];var x=Vo(b),P=x=="wrapper"?zi(b):t;P&&Zi(P[0])&&P[1]==(Y|W|O|Q)&&!P[4].length&&P[9]==1?w=w[Vo(P[0])].apply(w,P[3]):w=b.length==1&&Zi(b)?w[x]():w.thru(b)}return function(){var k=arguments,B=k[0];if(w&&k.length==1&&Ee(B))return w.plant(B).value();for(var U=0,Z=u?o[U].apply(this,k):B;++U<u;)Z=o[U].call(this,Z);return Z}})}function Go(n,o,u,f,v,b,w,x,P,k){var B=o&Y,U=o&$,Z=o&D,oe=o&(W|j),de=o&ae,xe=Z?t:Ya(n);function pe(){for(var Oe=arguments.length,De=M(Oe),Jt=Oe;Jt--;)De[Jt]=arguments[Jt];if(oe)var Nt=ua(pe),Zt=Fy(De,Nt);if(f&&(De=Pf(De,f,v,oe)),b&&(De=Df(De,b,w,oe)),Oe-=Zt,oe&&Oe<k){var lt=sn(De,Nt);return kf(n,o,Go,pe.placeholder,u,De,lt,x,P,k-Oe)}var br=U?u:this,qr=Z?br[n]:n;return Oe=De.length,x?De=Wb(De,x):de&&Oe>1&&De.reverse(),B&&P<Oe&&(De.length=P),this&&this!==_t&&this instanceof pe&&(qr=xe||Ya(qr)),qr.apply(br,De)}return pe}function Lf(n,o){return function(u,f){return Km(u,n,o(f),{})}}function qo(n,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=Ef(u),f=Ef(f)),v=n(u,f)}return v}}function Hi(n){return Wr(function(o){return o=at(o,zt(ce())),Re(function(u){var f=this;return n(o,function(v){return Yt(v,f,u)})})})}function Yo(n,o){o=o===t?" ":Vt(o);var u=o.length;if(u<2)return u?Ni(o,n):o;var f=Ni(o,Io(n/ea(o)));return Qn(o)?dn(vr(f),0,n).join(""):f.slice(0,n)}function Eb(n,o,u,f){var v=o&$,b=Ya(n);function w(){for(var x=-1,P=arguments.length,k=-1,B=f.length,U=M(B+P),Z=this&&this!==_t&&this instanceof w?b:n;++k<B;)U[k]=f[k];for(;P--;)U[k++]=arguments[++x];return Yt(Z,v?u:this,U)}return w}function jf(n){return function(o,u,f){return f&&typeof f!="number"&&Mt(o,u,f)&&(u=f=t),o=Gr(o),u===t?(u=o,o=0):u=Gr(u),f=f===t?o<u?1:-1:Gr(f),ib(o,u,f,n)}}function zo(n){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=ir(o),u=ir(u)),n(o,u)}}function kf(n,o,u,f,v,b,w,x,P,k){var B=o&W,U=B?w:t,Z=B?t:w,oe=B?b:t,de=B?t:b;o|=B?O:K,o&=~(B?K:O),o&I||(o&=~($|D));var xe=[n,o,v,oe,U,de,Z,x,P,k],pe=u.apply(t,xe);return Zi(n)&&Zf(pe,xe),pe.placeholder=f,Xf(pe,n,o)}function Gi(n){var o=pt[n];return function(u,f){if(u=ir(u),f=f==null?0:Tt(we(f),292),f&&Zl(u)){var v=(Le(u)+"e").split("e"),b=o(v[0]+"e"+(+v[1]+f));return v=(Le(b)+"e").split("e"),+(v[0]+"e"+(+v[1]-f))}return o(u)}}var wb=na&&1/Eo(new na([,-0]))[1]==Ue?function(n){return new na(n)}:du;function Bf(n){return function(o){var u=Ct(o);return u==Ge?_i(o):u==Ft?By(o):Iy(o,n(o))}}function Br(n,o,u,f,v,b,w,x){var P=o&D;if(!P&&typeof n!="function")throw new rr(c);var k=f?f.length:0;if(k||(o&=~(O|K),f=v=t),w=w===t?w:ht(we(w),0),x=x===t?x:we(x),k-=v?v.length:0,o&K){var B=f,U=v;f=v=t}var Z=P?t:zi(n),oe=[n,o,u,f,v,B,U,b,w,x];if(Z&&jb(oe,Z),n=oe[0],o=oe[1],u=oe[2],f=oe[3],v=oe[4],x=oe[9]=oe[9]===t?P?0:n.length:ht(oe[9]-k,0),!x&&o&(W|j)&&(o&=~(W|j)),!o||o==$)var de=_b(n,o,u);else o==W||o==j?de=Sb(n,o,x):(o==O||o==($|O))&&!v.length?de=Eb(n,o,u,f):de=Go.apply(t,oe);var xe=Z?_f:Zf;return Xf(xe(de,oe),n,o)}function Wf(n,o,u,f){return n===t||mr(n,ra[u])&&!He.call(f,u)?o:n}function Uf(n,o,u,f,v,b){return st(n)&&st(o)&&(b.set(o,n),Bo(n,o,t,Uf,b),b.delete(o)),n}function Tb(n){return Ka(n)?t:n}function Hf(n,o,u,f,v,b){var w=u&T,x=n.length,P=o.length;if(x!=P&&!(w&&P>x))return!1;var k=b.get(n),B=b.get(o);if(k&&B)return k==o&&B==n;var U=-1,Z=!0,oe=u&C?new kn:t;for(b.set(n,o),b.set(o,n);++U<x;){var de=n[U],xe=o[U];if(f)var pe=w?f(xe,de,U,o,n,b):f(de,xe,U,n,o,b);if(pe!==t){if(pe)continue;Z=!1;break}if(oe){if(!hi(o,function(Oe,De){if(!Ma(oe,De)&&(de===Oe||v(de,Oe,u,f,b)))return oe.push(De)})){Z=!1;break}}else if(!(de===xe||v(de,xe,u,f,b))){Z=!1;break}}return b.delete(n),b.delete(o),Z}function Cb(n,o,u,f,v,b,w){switch(u){case wr:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case bt:return!(n.byteLength!=o.byteLength||!b(new Oo(n),new Oo(o)));case ue:case me:case ut:return mr(+n,+o);case J:return n.name==o.name&&n.message==o.message;case Ir:case qt:return n==o+"";case Ge:var x=_i;case Ft:var P=f&T;if(x||(x=Eo),n.size!=o.size&&!P)return!1;var k=w.get(n);if(k)return k==o;f|=C,w.set(n,o);var B=Hf(x(n),x(o),f,v,b,w);return w.delete(n),B;case nn:if(Ba)return Ba.call(n)==Ba.call(o)}return!1}function xb(n,o,u,f,v,b){var w=u&T,x=qi(n),P=x.length,k=qi(o),B=k.length;if(P!=B&&!w)return!1;for(var U=P;U--;){var Z=x[U];if(!(w?Z in o:He.call(o,Z)))return!1}var oe=b.get(n),de=b.get(o);if(oe&&de)return oe==o&&de==n;var xe=!0;b.set(n,o),b.set(o,n);for(var pe=w;++U<P;){Z=x[U];var Oe=n[Z],De=o[Z];if(f)var Jt=w?f(De,Oe,Z,o,n,b):f(Oe,De,Z,n,o,b);if(!(Jt===t?Oe===De||v(Oe,De,u,f,b):Jt)){xe=!1;break}pe||(pe=Z=="constructor")}if(xe&&!pe){var Nt=n.constructor,Zt=o.constructor;Nt!=Zt&&"constructor"in n&&"constructor"in o&&!(typeof Nt=="function"&&Nt instanceof Nt&&typeof Zt=="function"&&Zt instanceof Zt)&&(xe=!1)}return b.delete(n),b.delete(o),xe}function Wr(n){return Qi(Kf(n,t,ad),n+"")}function qi(n){return cf(n,mt,Ki)}function Yi(n){return cf(n,Wt,Gf)}var zi=$o?function(n){return $o.get(n)}:du;function Vo(n){for(var o=n.name+"",u=aa[o],f=He.call(aa,o)?u.length:0;f--;){var v=u[f],b=v.func;if(b==null||b==n)return v.name}return o}function ua(n){var o=He.call(y,"placeholder")?y:n;return o.placeholder}function ce(){var n=y.iteratee||lu;return n=n===lu?df:n,arguments.length?n(arguments[0],arguments[1]):n}function Ko(n,o){var u=n.__data__;return $b(o)?u[typeof o=="string"?"string":"hash"]:u.map}function Vi(n){for(var o=mt(n),u=o.length;u--;){var f=o[u],v=n[f];o[u]=[f,v,zf(v)]}return o}function Un(n,o){var u=Ly(n,o);return ff(u)?u:t}function Rb(n){var o=He.call(n,Ln),u=n[Ln];try{n[Ln]=t;var f=!0}catch{}var v=xo.call(n);return f&&(o?n[Ln]=u:delete n[Ln]),v}var Ki=Ei?function(n){return n==null?[]:(n=Ve(n),an(Ei(n),function(o){return Kl.call(n,o)}))}:pu,Gf=Ei?function(n){for(var o=[];n;)on(o,Ki(n)),n=Ao(n);return o}:pu,Ct=$t;(wi&&Ct(new wi(new ArrayBuffer(1)))!=wr||La&&Ct(new La)!=Ge||Ti&&Ct(Ti.resolve())!=rn||na&&Ct(new na)!=Ft||ja&&Ct(new ja)!=hr)&&(Ct=function(n){var o=$t(n),u=o==It?n.constructor:t,f=u?Hn(u):"";if(f)switch(f){case cm:return wr;case lm:return Ge;case fm:return rn;case dm:return Ft;case pm:return hr}return o});function Ob(n,o,u){for(var f=-1,v=u.length;++f<v;){var b=u[f],w=b.size;switch(b.type){case"drop":n+=w;break;case"dropRight":o-=w;break;case"take":o=Tt(o,n+w);break;case"takeRight":n=ht(n,o-w);break}}return{start:n,end:o}}function Ab(n){var o=n.match($a);return o?o[1].split(g):[]}function qf(n,o,u){o=fn(o,n);for(var f=-1,v=o.length,b=!1;++f<v;){var w=Rr(o[f]);if(!(b=n!=null&&u(n,w)))break;n=n[w]}return b||++f!=v?b:(v=n==null?0:n.length,!!v&&rs(v)&&Ur(w,v)&&(Ee(n)||Gn(n)))}function Pb(n){var o=n.length,u=new n.constructor(o);return o&&typeof n[0]=="string"&&He.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function Yf(n){return typeof n.constructor=="function"&&!za(n)?oa(Ao(n)):{}}function Db(n,o,u){var f=n.constructor;switch(o){case bt:return Ui(n);case ue:case me:return new f(+n);case wr:return hb(n,u);case Fr:case $r:case gr:case Sn:case En:case wn:case Tn:case Cn:case xn:return Of(n,u);case Ge:return new f;case ut:case qt:return new f(n);case Ir:return gb(n);case Ft:return new f;case nn:return vb(n)}}function Ib(n,o){var u=o.length;if(!u)return n;var f=u-1;return o[f]=(u>1?"& ":"")+o[f],o=o.join(u>2?", ":" "),n.replace(Fa,`{
|
|
16
17
|
/* [wrapped with `+o+`] */
|
|
17
|
-
`)}function R0(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"&&kv.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 O0(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 A0(r){return!!Wl&&Wl in r}var P0=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 D0(r){var o=Vo(r,function(f){return u.size===p&&u.clear(),f}),u=o.cache;return o}function I0(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 F0(r){var o=[];if(r!=null)for(var u in Ve(r))o.push(u);return o}function $0(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 M0(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=Jy||function(r,o){return Et.setTimeout(r,o)},zi=Vf(a0);function zf(r,o,u){var f=o+"";return zi(r,x0(f,N0(w0(f),u)))}function Vf(r){var o=0,u=0;return function(){var f=em(),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=D0(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 N0(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 L0(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 j0(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 k0(){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 B0=Re(function(r,o){return ct(r)?Ma(r,St(o,1,ct,!0)):[]}),W0=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)):[]}),U0=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 H0(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 G0(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 q0(r,o){return r&&r.length?No(r,ce(o,3),!0,!0):[]}function Y0(r,o){return r&&r.length?No(r,ce(o,3),!0):[]}function z0(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),km(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 V0(r){var o=r==null?0:r.length;return o?St(r,Ue):[]}function K0(r,o){var u=r==null?0:r.length;return u?(o=o===t?1:Te(o),St(r,o)):[]}function J0(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 X0(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 Z0(r){var o=r==null?0:r.length;return o?sr(r,0,-1):[]}var Q0=Re(function(r){var o=tt(r,$i);return o.length&&o[0]===r[0]?Ti(o):[]}),eb=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)):[]}),tb=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 rb(r,o){return r==null?"":Zy.call(r,o)}function ir(r){var o=r==null?0:r.length;return o?r[o-1]:t}function nb(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?Ny(r,o,v):go(r,Fl,v,!0)}function ab(r,o){return r&&r.length?ff(r,Te(o)):t}var ob=Re(td);function td(r,o){return r&&r.length&&o&&o.length?Oi(r,o):r}function sb(r,o,u){return r&&r.length&&o&&o.length?Oi(r,o,ce(u,2)):r}function ib(r,o,u){return r&&r.length&&o&&o.length?Oi(r,o,t,u):r}var ub=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 cb(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:rm.call(r)}function lb(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 fb(r,o){return Mo(r,o)}function db(r,o,u){return Di(r,o,ce(u,2))}function pb(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 hb(r,o){return Mo(r,o,!0)}function gb(r,o,u){return Di(r,o,ce(u,2),!0)}function vb(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 yb(r){return r&&r.length?vf(r):[]}function mb(r,o){return r&&r.length?vf(r,ce(o,2)):[]}function bb(r){var o=r==null?0:r.length;return o?sr(r,1,o):[]}function _b(r,o,u){return r&&r.length?(o=u||o===t?1:Te(o),sr(r,0,o<0?0:o)):[]}function Eb(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 Sb(r,o){return r&&r.length?No(r,ce(o,3),!1,!0):[]}function wb(r,o){return r&&r.length?No(r,ce(o,3)):[]}var Tb=Re(function(r){return sn(St(r,1,ct,!0))}),Cb=Re(function(r){var o=ir(r);return ct(o)&&(o=t),sn(St(r,1,ct,!0),ce(o,2))}),xb=Re(function(r){var o=ir(r);return o=typeof o=="function"?o:t,sn(St(r,1,ct,!0),t,o)});function Rb(r){return r&&r.length?sn(r):[]}function Ob(r,o){return r&&r.length?sn(r,ce(o,2)):[]}function Ab(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 Pb=Re(function(r,o){return ct(r)?Ma(r,o):[]}),Db=Re(function(r){return Fi(tn(r,ct))}),Ib=Re(function(r){var o=ir(r);return ct(o)&&(o=t),Fi(tn(r,ct),ce(o,2))}),Fb=Re(function(r){var o=ir(r);return o=typeof o=="function"?o:t,Fi(tn(r,ct),t,o)}),$b=Re(Ki);function Mb(r,o){return _f(r||[],o||[],$a)}function Nb(r,o){return _f(r||[],o||[],ja)}var Lb=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 jb(r,o){return o(r),r}function qo(r,o){return o(r)}var kb=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 Bb(){return nd(this)}function Wb(){return new ar(this.value(),this.__chain__)}function Ub(){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 Hb(){return this}function Gb(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 qb(){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 Yb(){return bf(this.__wrapped__,this.__actions__)}var zb=Lo(function(r,o,u){He.call(r,u)?++r[u]:Lr(r,u,1)});function Vb(r,o,u){var f=Se(r)?Dl:jm;return u&&Mt(r,o,u)&&(o=t),f(r,ce(o,3))}function Kb(r,o){var u=Se(r)?tn:tf;return u(r,ce(o,3))}var Jb=Pf(Xf),Xb=Pf(Zf);function Zb(r,o){return St(Yo(r,o),1)}function Qb(r,o){return St(Yo(r,o),Ue)}function e_(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)?by:ef;return u(r,ce(o,3))}var t_=Lo(function(r,o,u){He.call(r,u)?r[u].push(o):Lr(r,u,[o])});function r_(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 n_=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}),a_=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 o_(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 s_=Lo(function(r,o,u){r[u?0:1].push(o)},function(){return[[],[]]});function i_(r,o,u){var f=Se(r)?ii:Ml,v=arguments.length<3;return f(r,ce(o,4),u,v,on)}function u_(r,o,u){var f=Se(r)?_y:Ml,v=arguments.length<3;return f(r,ce(o,4),u,v,ef)}function c_(r,o){var u=Se(r)?tn:tf;return u(r,Ko(ce(o,3)))}function l_(r){var o=Se(r)?Jl:r0;return o(r)}function f_(r,o,u){(u?Mt(r,o,u):o===t)?o=1:o=Te(o);var f=Se(r)?Fm:n0;return f(r,o)}function d_(r){var o=Se(r)?$m:o0;return o(r)}function p_(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 h_(r,o,u){var f=Se(r)?ui:s0;return u&&Mt(r,o,u)&&(o=t),f(r,ce(o,3))}var g_=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=Ky||function(){return Et.Date.now()};function v_(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 y_=Re(function(r,o){return Ql(r,1,o)}),m_=Re(function(r,o,u){return Ql(r,ur(o)||0,u)});function b_(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 __(r){return id(2,r)}var E_=i0(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)}),S_=kr(function(r,o){return jr(r,Y,t,t,t,o)});function w_(r,o){if(typeof r!="function")throw new nr(c);return o=o===t?o:Te(o),Re(r,o)}function T_(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 C_(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 x_(r){return sd(r,1)}function R_(r,o){return Xi(Mi(o),r)}function O_(){if(!arguments.length)return[];var r=arguments[0];return Se(r)?r:[r]}function A_(r){return or(r,S)}function P_(r,o){return o=typeof o=="function"?o:t,or(r,S,o)}function D_(r){return or(r,b|S)}function I_(r,o){return o=typeof o=="function"?o:t,or(r,b|S,o)}function F_(r,o){return o==null||Zl(r,o,mt(o))}function yr(r,o){return r===o||r!==r&&o!==o}var $_=Wo(wi),M_=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,N_=Cl?zt(Cl):Gm;function Bt(r){return r!=null&&Jo(r.length)&&!Wr(r)}function ct(r){return ot(r)&&Bt(r)}function L_(r){return r===!0||r===!1||ot(r)&&$t(r)==ue}var ln=Xy||uu,j_=xl?zt(xl):qm;function k_(r){return ot(r)&&r.nodeType===1&&!Ua(r)}function B_(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 W_(r,o){return La(r,o)}function U_(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 H_(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):zm;function G_(r,o){return r===o||Ci(r,o,Ui(o))}function q_(r,o,u){return u=typeof u=="function"?u:t,Ci(r,o,Ui(o),u)}function Y_(r){return gd(r)&&r!=+r}function z_(r){if(P0(r))throw new _e(i);return of(r)}function V_(r){return r===null}function K_(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)==qy}var Qi=Ol?zt(Ol):Vm;function J_(r){return pd(r)&&r>=-et&&r<=et}var vd=Al?zt(Al):Km;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):Jm;function X_(r){return r===t}function Z_(r){return ot(r)&&Ct(r)==qt}function Q_(r){return ot(r)&&$t(r)==Ea}var e1=Wo(Ri),t1=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 Fy(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||jv.test(r)?vy(r.slice(2),u?2:8):Ft.test(r)?H:+r}function bd(r){return xr(r,Wt(r))}function r1(r){return r?Dn(Te(r),-et,et):r===0?r:0}function Ne(r){return r==null?"":Vt(r)}var n1=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)}),a1=Zn(function(r,o,u,f){xr(o,mt(o),r,f)}),o1=kr(_i);function s1(r,o){var u=Xn(r);return o==null?u:Xl(u,o)}var i1=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}),u1=Re(function(r){return r.push(t,Lf),Yt(Ed,t,r)});function c1(r,o){return Il(r,ce(o,3),Cr)}function l1(r,o){return Il(r,ce(o,3),Si)}function f1(r,o){return r==null?r:Ei(r,ce(o,3),Wt)}function d1(r,o){return r==null?r:rf(r,ce(o,3),Wt)}function p1(r,o){return r&&Cr(r,ce(o,3))}function h1(r,o){return r&&Si(r,ce(o,3))}function g1(r){return r==null?[]:Fo(r,mt(r))}function v1(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 y1(r,o){return r!=null&&Bf(r,o,Bm)}function tu(r,o){return r!=null&&Bf(r,o,Wm)}var m1=If(function(r,o,u){o!=null&&typeof o.toString!="function"&&(o=_o.call(o)),r[o]=u},nu(Ut)),b1=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),_1=Re(Na);function mt(r){return Bt(r)?Kl(r):xi(r)}function Wt(r){return Bt(r)?Kl(r,!0):Xm(r)}function E1(r,o){var u={};return o=ce(o,3),Cr(r,function(f,v,m){Lr(u,o(f,v,m),f)}),u}function S1(r,o){var u={};return o=ce(o,3),Cr(r,function(f,v,m){Lr(u,v,o(f,v,m))}),u}var w1=Zn(function(r,o,u){$o(r,o,u)}),Ed=Zn(function(r,o,u,f){$o(r,o,u,f)}),T1=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,m0));for(var v=o.length;v--;)Ii(u,o[v]);return u});function C1(r,o){return Sd(r,Ko(ce(o)))}var x1=kr(function(r,o){return r==null?{}:Qm(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 R1(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 O1(r,o,u){return r==null?r:ja(r,o,u)}function A1(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 P1(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 D1(r,o){return r==null?!0:Ii(r,o)}function I1(r,o,u){return r==null?r:mf(r,o,Mi(u))}function F1(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 $1(r){return r==null?[]:pi(r,Wt(r))}function M1(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 N1(r,o,u){return o=Ur(o),u===t?(u=o,o=0):u=Ur(u),r=ur(r),Um(r,o,u)}function L1(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+gy("1e-"+((v+"").length-1))),o)}return Ai(r,o)}var j1=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(Bv,Oy).replace(oy,"")}function k1(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 B1(r){return r=Ne(r),r&&wa.test(r)?r.replace(en,Ay):r}function W1(r){return r=Ne(r),r&&R.test(r)?r.replace(g,"\\$&"):r}var U1=Qn(function(r,o,u){return r+(u?"-":"")+o.toLowerCase()}),H1=Qn(function(r,o,u){return r+(u?" ":"")+o.toLowerCase()}),G1=Af("toLowerCase");function q1(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 Y1(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 z1(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 V1(r,o,u){return u||o==null?o=0:o&&(o=+o),tm(Ne(r).replace(I,""),o||0)}function K1(r,o,u){return(u?Mt(r,o,u):o===t)?o=1:o=Te(o),Pi(Ne(r),o)}function J1(){var r=arguments,o=Ne(r[0]);return r.length<3?o:o.replace(r[1],r[2])}var X1=Qn(function(r,o,u){return r+(u?"_":"")+o.toLowerCase()});function Z1(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 Q1=Qn(function(r,o,u){return r+(u?" ":"")+ru(o)});function eE(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 tE(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["+ ++ly+"]")+`
|
|
18
|
-
`;
|
|
19
|
-
__e(`+
|
|
18
|
+
`)}function Fb(n){return Ee(n)||Gn(n)||!!(Jl&&n&&n[Jl])}function Ur(n,o){var u=typeof n;return o=o??rt,!!o&&(u=="number"||u!="symbol"&&Se.test(n))&&n>-1&&n%1==0&&n<o}function Mt(n,o,u){if(!st(u))return!1;var f=typeof o;return(f=="number"?Bt(u)&&Ur(o,u.length):f=="string"&&o in u)?mr(u[o],n):!1}function Ji(n,o){if(Ee(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||Kt(n)?!0:Dn.test(n)||!Pn.test(n)||o!=null&&n in Ve(o)}function $b(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function Zi(n){var o=Vo(n),u=y[o];if(typeof u!="function"||!(o in Ae.prototype))return!1;if(n===u)return!0;var f=zi(u);return!!f&&n===f[0]}function Mb(n){return!!Yl&&Yl in n}var Nb=To?Hr:hu;function za(n){var o=n&&n.constructor,u=typeof o=="function"&&o.prototype||ra;return n===u}function zf(n){return n===n&&!st(n)}function Vf(n,o){return function(u){return u==null?!1:u[n]===o&&(o!==t||n in Ve(u))}}function Lb(n){var o=es(n,function(f){return u.size===p&&u.clear(),f}),u=o.cache;return o}function jb(n,o){var u=n[1],f=o[1],v=u|f,b=v<($|D|Y),w=f==Y&&u==W||f==Y&&u==Q&&n[7].length<=o[8]||f==(Y|Q)&&o[7].length<=o[8]&&u==W;if(!(b||w))return n;f&$&&(n[2]=o[2],v|=u&$?0:I);var x=o[3];if(x){var P=n[3];n[3]=P?Pf(P,x,o[4]):x,n[4]=P?sn(n[3],h):o[4]}return x=o[5],x&&(P=n[5],n[5]=P?Df(P,x,o[6]):x,n[6]=P?sn(n[5],h):o[6]),x=o[7],x&&(n[7]=x),f&Y&&(n[8]=n[8]==null?o[8]:Tt(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=v,n}function kb(n){var o=[];if(n!=null)for(var u in Ve(n))o.push(u);return o}function Bb(n){return xo.call(n)}function Kf(n,o,u){return o=ht(o===t?n.length-1:o,0),function(){for(var f=arguments,v=-1,b=ht(f.length-o,0),w=M(b);++v<b;)w[v]=f[o+v];v=-1;for(var x=M(o+1);++v<o;)x[v]=f[v];return x[o]=u(w),Yt(n,this,x)}}function Jf(n,o){return o.length<2?n:Wn(n,or(o,0,-1))}function Wb(n,o){for(var u=n.length,f=Tt(o.length,u),v=kt(n);f--;){var b=o[f];n[f]=Ur(b,u)?v[b]:t}return n}function Xi(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var Zf=Qf(_f),Va=rm||function(n,o){return _t.setTimeout(n,o)},Qi=Qf(lb);function Xf(n,o,u){var f=o+"";return Qi(n,Ib(f,Ub(Ab(f),u)))}function Qf(n){var o=0,u=0;return function(){var f=sm(),v=z-(f-u);if(u=f,v>0){if(++o>=Xe)return arguments[0]}else o=0;return n.apply(t,arguments)}}function Jo(n,o){var u=-1,f=n.length,v=f-1;for(o=o===t?f:o;++u<o;){var b=Mi(u,v),w=n[b];n[b]=n[u],n[u]=w}return n.length=o,n}var ed=Lb(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(Da,function(u,f,v,b){o.push(v?b.replace(G,"$1"):f||u)}),o});function Rr(n){if(typeof n=="string"||Kt(n))return n;var o=n+"";return o=="0"&&1/n==-Ue?"-0":o}function Hn(n){if(n!=null){try{return Co.call(n)}catch{}try{return n+""}catch{}}return""}function Ub(n,o){return tr(le,function(u){var f="_."+u[0];o&u[1]&&!_o(n,f)&&n.push(f)}),n.sort()}function td(n){if(n instanceof Ae)return n.clone();var o=new nr(n.__wrapped__,n.__chain__);return o.__actions__=kt(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function Hb(n,o,u){(u?Mt(n,o,u):o===t)?o=1:o=ht(we(o),0);var f=n==null?0:n.length;if(!f||o<1)return[];for(var v=0,b=0,w=M(Io(f/o));v<f;)w[b++]=or(n,v,v+=o);return w}function Gb(n){for(var o=-1,u=n==null?0:n.length,f=0,v=[];++o<u;){var b=n[o];b&&(v[f++]=b)}return v}function qb(){var n=arguments.length;if(!n)return[];for(var o=M(n-1),u=arguments[0],f=n;f--;)o[f-1]=arguments[f];return on(Ee(u)?kt(u):[u],St(o,1))}var Yb=Re(function(n,o){return ct(n)?Ua(n,St(o,1,ct,!0)):[]}),zb=Re(function(n,o){var u=sr(o);return ct(u)&&(u=t),ct(n)?Ua(n,St(o,1,ct,!0),ce(u,2)):[]}),Vb=Re(function(n,o){var u=sr(o);return ct(u)&&(u=t),ct(n)?Ua(n,St(o,1,ct,!0),t,u):[]});function Kb(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===t?1:we(o),or(n,o<0?0:o,f)):[]}function Jb(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===t?1:we(o),o=f-o,or(n,0,o<0?0:o)):[]}function Zb(n,o){return n&&n.length?Uo(n,ce(o,3),!0,!0):[]}function Xb(n,o){return n&&n.length?Uo(n,ce(o,3),!0):[]}function Qb(n,o,u,f){var v=n==null?0:n.length;return v?(u&&typeof u!="number"&&Mt(n,o,u)&&(u=0,f=v),qm(n,o,u,f)):[]}function rd(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var v=u==null?0:we(u);return v<0&&(v=ht(f+v,0)),So(n,ce(o,3),v)}function nd(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var v=f-1;return u!==t&&(v=we(u),v=u<0?ht(f+v,0):Tt(v,f-1)),So(n,ce(o,3),v,!0)}function ad(n){var o=n==null?0:n.length;return o?St(n,1):[]}function e0(n){var o=n==null?0:n.length;return o?St(n,Ue):[]}function t0(n,o){var u=n==null?0:n.length;return u?(o=o===t?1:we(o),St(n,o)):[]}function r0(n){for(var o=-1,u=n==null?0:n.length,f={};++o<u;){var v=n[o];f[v[0]]=v[1]}return f}function od(n){return n&&n.length?n[0]:t}function n0(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var v=u==null?0:we(u);return v<0&&(v=ht(f+v,0)),Xn(n,o,v)}function a0(n){var o=n==null?0:n.length;return o?or(n,0,-1):[]}var o0=Re(function(n){var o=at(n,Bi);return o.length&&o[0]===n[0]?Pi(o):[]}),s0=Re(function(n){var o=sr(n),u=at(n,Bi);return o===sr(u)?o=t:u.pop(),u.length&&u[0]===n[0]?Pi(u,ce(o,2)):[]}),i0=Re(function(n){var o=sr(n),u=at(n,Bi);return o=typeof o=="function"?o:t,o&&u.pop(),u.length&&u[0]===n[0]?Pi(u,t,o):[]});function u0(n,o){return n==null?"":am.call(n,o)}function sr(n){var o=n==null?0:n.length;return o?n[o-1]:t}function c0(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var v=f;return u!==t&&(v=we(u),v=v<0?ht(f+v,0):Tt(v,f-1)),o===o?Uy(n,o,v):So(n,jl,v,!0)}function l0(n,o){return n&&n.length?vf(n,we(o)):t}var f0=Re(sd);function sd(n,o){return n&&n.length&&o&&o.length?$i(n,o):n}function d0(n,o,u){return n&&n.length&&o&&o.length?$i(n,o,ce(u,2)):n}function p0(n,o,u){return n&&n.length&&o&&o.length?$i(n,o,t,u):n}var h0=Wr(function(n,o){var u=n==null?0:n.length,f=xi(n,o);return bf(n,at(o,function(v){return Ur(v,u)?+v:v}).sort(Af)),f});function g0(n,o){var u=[];if(!(n&&n.length))return u;var f=-1,v=[],b=n.length;for(o=ce(o,3);++f<b;){var w=n[f];o(w,f,n)&&(u.push(w),v.push(f))}return bf(n,v),u}function eu(n){return n==null?n:um.call(n)}function v0(n,o,u){var f=n==null?0:n.length;return f?(u&&typeof u!="number"&&Mt(n,o,u)?(o=0,u=f):(o=o==null?0:we(o),u=u===t?f:we(u)),or(n,o,u)):[]}function y0(n,o){return Wo(n,o)}function m0(n,o,u){return Li(n,o,ce(u,2))}function b0(n,o){var u=n==null?0:n.length;if(u){var f=Wo(n,o);if(f<u&&mr(n[f],o))return f}return-1}function _0(n,o){return Wo(n,o,!0)}function S0(n,o,u){return Li(n,o,ce(u,2),!0)}function E0(n,o){var u=n==null?0:n.length;if(u){var f=Wo(n,o,!0)-1;if(mr(n[f],o))return f}return-1}function w0(n){return n&&n.length?Sf(n):[]}function T0(n,o){return n&&n.length?Sf(n,ce(o,2)):[]}function C0(n){var o=n==null?0:n.length;return o?or(n,1,o):[]}function x0(n,o,u){return n&&n.length?(o=u||o===t?1:we(o),or(n,0,o<0?0:o)):[]}function R0(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===t?1:we(o),o=f-o,or(n,o<0?0:o,f)):[]}function O0(n,o){return n&&n.length?Uo(n,ce(o,3),!1,!0):[]}function A0(n,o){return n&&n.length?Uo(n,ce(o,3)):[]}var P0=Re(function(n){return ln(St(n,1,ct,!0))}),D0=Re(function(n){var o=sr(n);return ct(o)&&(o=t),ln(St(n,1,ct,!0),ce(o,2))}),I0=Re(function(n){var o=sr(n);return o=typeof o=="function"?o:t,ln(St(n,1,ct,!0),t,o)});function F0(n){return n&&n.length?ln(n):[]}function $0(n,o){return n&&n.length?ln(n,ce(o,2)):[]}function M0(n,o){return o=typeof o=="function"?o:t,n&&n.length?ln(n,t,o):[]}function tu(n){if(!(n&&n.length))return[];var o=0;return n=an(n,function(u){if(ct(u))return o=ht(u.length,o),!0}),mi(o,function(u){return at(n,gi(u))})}function id(n,o){if(!(n&&n.length))return[];var u=tu(n);return o==null?u:at(u,function(f){return Yt(o,t,f)})}var N0=Re(function(n,o){return ct(n)?Ua(n,o):[]}),L0=Re(function(n){return ki(an(n,ct))}),j0=Re(function(n){var o=sr(n);return ct(o)&&(o=t),ki(an(n,ct),ce(o,2))}),k0=Re(function(n){var o=sr(n);return o=typeof o=="function"?o:t,ki(an(n,ct),t,o)}),B0=Re(tu);function W0(n,o){return Cf(n||[],o||[],Wa)}function U0(n,o){return Cf(n||[],o||[],qa)}var H0=Re(function(n){var o=n.length,u=o>1?n[o-1]:t;return u=typeof u=="function"?(n.pop(),u):t,id(n,u)});function ud(n){var o=y(n);return o.__chain__=!0,o}function G0(n,o){return o(n),n}function Zo(n,o){return o(n)}var q0=Wr(function(n){var o=n.length,u=o?n[0]:0,f=this.__wrapped__,v=function(b){return xi(b,n)};return o>1||this.__actions__.length||!(f instanceof Ae)||!Ur(u)?this.thru(v):(f=f.slice(u,+u+(o?1:0)),f.__actions__.push({func:Zo,args:[v],thisArg:t}),new nr(f,this.__chain__).thru(function(b){return o&&!b.length&&b.push(t),b}))});function Y0(){return ud(this)}function z0(){return new nr(this.value(),this.__chain__)}function V0(){this.__values__===t&&(this.__values__=Ed(this.value()));var n=this.__index__>=this.__values__.length,o=n?t:this.__values__[this.__index__++];return{done:n,value:o}}function K0(){return this}function J0(n){for(var o,u=this;u instanceof No;){var f=td(u);f.__index__=0,f.__values__=t,o?v.__wrapped__=f:o=f;var v=f;u=u.__wrapped__}return v.__wrapped__=n,o}function Z0(){var n=this.__wrapped__;if(n instanceof Ae){var o=n;return this.__actions__.length&&(o=new Ae(this)),o=o.reverse(),o.__actions__.push({func:Zo,args:[eu],thisArg:t}),new nr(o,this.__chain__)}return this.thru(eu)}function X0(){return Tf(this.__wrapped__,this.__actions__)}var Q0=Ho(function(n,o,u){He.call(n,u)?++n[u]:kr(n,u,1)});function e_(n,o,u){var f=Ee(n)?Nl:Gm;return u&&Mt(n,o,u)&&(o=t),f(n,ce(o,3))}function t_(n,o){var u=Ee(n)?an:sf;return u(n,ce(o,3))}var r_=Mf(rd),n_=Mf(nd);function a_(n,o){return St(Xo(n,o),1)}function o_(n,o){return St(Xo(n,o),Ue)}function s_(n,o,u){return u=u===t?1:we(u),St(Xo(n,o),u)}function cd(n,o){var u=Ee(n)?tr:cn;return u(n,ce(o,3))}function ld(n,o){var u=Ee(n)?Cy:of;return u(n,ce(o,3))}var i_=Ho(function(n,o,u){He.call(n,u)?n[u].push(o):kr(n,u,[o])});function u_(n,o,u,f){n=Bt(n)?n:la(n),u=u&&!f?we(u):0;var v=n.length;return u<0&&(u=ht(v+u,0)),ns(n)?u<=v&&n.indexOf(o,u)>-1:!!v&&Xn(n,o,u)>-1}var c_=Re(function(n,o,u){var f=-1,v=typeof o=="function",b=Bt(n)?M(n.length):[];return cn(n,function(w){b[++f]=v?Yt(o,w,u):Ha(w,o,u)}),b}),l_=Ho(function(n,o,u){kr(n,u,o)});function Xo(n,o){var u=Ee(n)?at:pf;return u(n,ce(o,3))}function f_(n,o,u,f){return n==null?[]:(Ee(o)||(o=o==null?[]:[o]),u=f?t:u,Ee(u)||(u=u==null?[]:[u]),yf(n,o,u))}var d_=Ho(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function p_(n,o,u){var f=Ee(n)?pi:Bl,v=arguments.length<3;return f(n,ce(o,4),u,v,cn)}function h_(n,o,u){var f=Ee(n)?xy:Bl,v=arguments.length<3;return f(n,ce(o,4),u,v,of)}function g_(n,o){var u=Ee(n)?an:sf;return u(n,ts(ce(o,3)))}function v_(n){var o=Ee(n)?tf:ub;return o(n)}function y_(n,o,u){(u?Mt(n,o,u):o===t)?o=1:o=we(o);var f=Ee(n)?km:cb;return f(n,o)}function m_(n){var o=Ee(n)?Bm:fb;return o(n)}function b_(n){if(n==null)return 0;if(Bt(n))return ns(n)?ea(n):n.length;var o=Ct(n);return o==Ge||o==Ft?n.size:Ii(n).length}function __(n,o,u){var f=Ee(n)?hi:db;return u&&Mt(n,o,u)&&(o=t),f(n,ce(o,3))}var S_=Re(function(n,o){if(n==null)return[];var u=o.length;return u>1&&Mt(n,o[0],o[1])?o=[]:u>2&&Mt(o[0],o[1],o[2])&&(o=[o[0]]),yf(n,St(o,1),[])}),Qo=tm||function(){return _t.Date.now()};function E_(n,o){if(typeof o!="function")throw new rr(c);return n=we(n),function(){if(--n<1)return o.apply(this,arguments)}}function fd(n,o,u){return o=u?t:o,o=n&&o==null?n.length:o,Br(n,Y,t,t,t,t,o)}function dd(n,o){var u;if(typeof o!="function")throw new rr(c);return n=we(n),function(){return--n>0&&(u=o.apply(this,arguments)),n<=1&&(o=t),u}}var ru=Re(function(n,o,u){var f=$;if(u.length){var v=sn(u,ua(ru));f|=O}return Br(n,f,o,u,v)}),pd=Re(function(n,o,u){var f=$|D;if(u.length){var v=sn(u,ua(pd));f|=O}return Br(o,f,n,u,v)});function hd(n,o,u){o=u?t:o;var f=Br(n,W,t,t,t,t,t,o);return f.placeholder=hd.placeholder,f}function gd(n,o,u){o=u?t:o;var f=Br(n,j,t,t,t,t,t,o);return f.placeholder=gd.placeholder,f}function vd(n,o,u){var f,v,b,w,x,P,k=0,B=!1,U=!1,Z=!0;if(typeof n!="function")throw new rr(c);o=ir(o)||0,st(u)&&(B=!!u.leading,U="maxWait"in u,b=U?ht(ir(u.maxWait)||0,o):b,Z="trailing"in u?!!u.trailing:Z);function oe(lt){var br=f,qr=v;return f=v=t,k=lt,w=n.apply(qr,br),w}function de(lt){return k=lt,x=Va(Oe,o),B?oe(lt):w}function xe(lt){var br=lt-P,qr=lt-k,Md=o-br;return U?Tt(Md,b-qr):Md}function pe(lt){var br=lt-P,qr=lt-k;return P===t||br>=o||br<0||U&&qr>=b}function Oe(){var lt=Qo();if(pe(lt))return De(lt);x=Va(Oe,xe(lt))}function De(lt){return x=t,Z&&f?oe(lt):(f=v=t,w)}function Jt(){x!==t&&xf(x),k=0,f=P=v=x=t}function Nt(){return x===t?w:De(Qo())}function Zt(){var lt=Qo(),br=pe(lt);if(f=arguments,v=this,P=lt,br){if(x===t)return de(P);if(U)return xf(x),x=Va(Oe,o),oe(P)}return x===t&&(x=Va(Oe,o)),w}return Zt.cancel=Jt,Zt.flush=Nt,Zt}var w_=Re(function(n,o){return af(n,1,o)}),T_=Re(function(n,o,u){return af(n,ir(o)||0,u)});function C_(n){return Br(n,ae)}function es(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new rr(c);var u=function(){var f=arguments,v=o?o.apply(this,f):f[0],b=u.cache;if(b.has(v))return b.get(v);var w=n.apply(this,f);return u.cache=b.set(v,w)||b,w};return u.cache=new(es.Cache||jr),u}es.Cache=jr;function ts(n){if(typeof n!="function")throw new rr(c);return function(){var o=arguments;switch(o.length){case 0:return!n.call(this);case 1:return!n.call(this,o[0]);case 2:return!n.call(this,o[0],o[1]);case 3:return!n.call(this,o[0],o[1],o[2])}return!n.apply(this,o)}}function x_(n){return dd(2,n)}var R_=pb(function(n,o){o=o.length==1&&Ee(o[0])?at(o[0],zt(ce())):at(St(o,1),zt(ce()));var u=o.length;return Re(function(f){for(var v=-1,b=Tt(f.length,u);++v<b;)f[v]=o[v].call(this,f[v]);return Yt(n,this,f)})}),nu=Re(function(n,o){var u=sn(o,ua(nu));return Br(n,O,t,o,u)}),yd=Re(function(n,o){var u=sn(o,ua(yd));return Br(n,K,t,o,u)}),O_=Wr(function(n,o){return Br(n,Q,t,t,t,o)});function A_(n,o){if(typeof n!="function")throw new rr(c);return o=o===t?o:we(o),Re(n,o)}function P_(n,o){if(typeof n!="function")throw new rr(c);return o=o==null?0:ht(we(o),0),Re(function(u){var f=u[o],v=dn(u,0,o);return f&&on(v,f),Yt(n,this,v)})}function D_(n,o,u){var f=!0,v=!0;if(typeof n!="function")throw new rr(c);return st(u)&&(f="leading"in u?!!u.leading:f,v="trailing"in u?!!u.trailing:v),vd(n,o,{leading:f,maxWait:o,trailing:v})}function I_(n){return fd(n,1)}function F_(n,o){return nu(Wi(o),n)}function $_(){if(!arguments.length)return[];var n=arguments[0];return Ee(n)?n:[n]}function M_(n){return ar(n,E)}function N_(n,o){return o=typeof o=="function"?o:t,ar(n,E,o)}function L_(n){return ar(n,m|E)}function j_(n,o){return o=typeof o=="function"?o:t,ar(n,m|E,o)}function k_(n,o){return o==null||nf(n,o,mt(o))}function mr(n,o){return n===o||n!==n&&o!==o}var B_=zo(Ai),W_=zo(function(n,o){return n>=o}),Gn=lf(function(){return arguments}())?lf:function(n){return it(n)&&He.call(n,"callee")&&!Kl.call(n,"callee")},Ee=M.isArray,U_=Pl?zt(Pl):Jm;function Bt(n){return n!=null&&rs(n.length)&&!Hr(n)}function ct(n){return it(n)&&Bt(n)}function H_(n){return n===!0||n===!1||it(n)&&$t(n)==ue}var pn=nm||hu,G_=Dl?zt(Dl):Zm;function q_(n){return it(n)&&n.nodeType===1&&!Ka(n)}function Y_(n){if(n==null)return!0;if(Bt(n)&&(Ee(n)||typeof n=="string"||typeof n.splice=="function"||pn(n)||ca(n)||Gn(n)))return!n.length;var o=Ct(n);if(o==Ge||o==Ft)return!n.size;if(za(n))return!Ii(n).length;for(var u in n)if(He.call(n,u))return!1;return!0}function z_(n,o){return Ga(n,o)}function V_(n,o,u){u=typeof u=="function"?u:t;var f=u?u(n,o):t;return f===t?Ga(n,o,t,u):!!f}function au(n){if(!it(n))return!1;var o=$t(n);return o==J||o==ge||typeof n.message=="string"&&typeof n.name=="string"&&!Ka(n)}function K_(n){return typeof n=="number"&&Zl(n)}function Hr(n){if(!st(n))return!1;var o=$t(n);return o==N||o==Je||o==fe||o==pr}function md(n){return typeof n=="number"&&n==we(n)}function rs(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=rt}function st(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function it(n){return n!=null&&typeof n=="object"}var bd=Il?zt(Il):Qm;function J_(n,o){return n===o||Di(n,o,Vi(o))}function Z_(n,o,u){return u=typeof u=="function"?u:t,Di(n,o,Vi(o),u)}function X_(n){return _d(n)&&n!=+n}function Q_(n){if(Nb(n))throw new _e(i);return ff(n)}function e1(n){return n===null}function t1(n){return n==null}function _d(n){return typeof n=="number"||it(n)&&$t(n)==ut}function Ka(n){if(!it(n)||$t(n)!=It)return!1;var o=Ao(n);if(o===null)return!0;var u=He.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&Co.call(u)==Zy}var ou=Fl?zt(Fl):eb;function r1(n){return md(n)&&n>=-rt&&n<=rt}var Sd=$l?zt($l):tb;function ns(n){return typeof n=="string"||!Ee(n)&&it(n)&&$t(n)==qt}function Kt(n){return typeof n=="symbol"||it(n)&&$t(n)==nn}var ca=Ml?zt(Ml):rb;function n1(n){return n===t}function a1(n){return it(n)&&Ct(n)==hr}function o1(n){return it(n)&&$t(n)==_n}var s1=zo(Fi),i1=zo(function(n,o){return n<=o});function Ed(n){if(!n)return[];if(Bt(n))return ns(n)?vr(n):kt(n);if(Na&&n[Na])return ky(n[Na]());var o=Ct(n),u=o==Ge?_i:o==Ft?Eo:la;return u(n)}function Gr(n){if(!n)return n===0?n:0;if(n=ir(n),n===Ue||n===-Ue){var o=n<0?-1:1;return o*Dt}return n===n?n:0}function we(n){var o=Gr(n),u=o%1;return o===o?u?o-u:o:0}function wd(n){return n?Bn(we(n),0,V):0}function ir(n){if(typeof n=="number")return n;if(Kt(n))return H;if(st(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=st(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=Wl(n);var u=X.test(n);return u||be.test(n)?Ey(n.slice(2),u?2:8):ee.test(n)?H:+n}function Td(n){return xr(n,Wt(n))}function u1(n){return n?Bn(we(n),-rt,rt):n===0?n:0}function Le(n){return n==null?"":Vt(n)}var c1=sa(function(n,o){if(za(o)||Bt(o)){xr(o,mt(o),n);return}for(var u in o)He.call(o,u)&&Wa(n,u,o[u])}),Cd=sa(function(n,o){xr(o,Wt(o),n)}),as=sa(function(n,o,u,f){xr(o,Wt(o),n,f)}),l1=sa(function(n,o,u,f){xr(o,mt(o),n,f)}),f1=Wr(xi);function d1(n,o){var u=oa(n);return o==null?u:rf(u,o)}var p1=Re(function(n,o){n=Ve(n);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 b=o[u],w=Wt(b),x=-1,P=w.length;++x<P;){var k=w[x],B=n[k];(B===t||mr(B,ra[k])&&!He.call(n,k))&&(n[k]=b[k])}return n}),h1=Re(function(n){return n.push(t,Uf),Yt(xd,t,n)});function g1(n,o){return Ll(n,ce(o,3),Cr)}function v1(n,o){return Ll(n,ce(o,3),Oi)}function y1(n,o){return n==null?n:Ri(n,ce(o,3),Wt)}function m1(n,o){return n==null?n:uf(n,ce(o,3),Wt)}function b1(n,o){return n&&Cr(n,ce(o,3))}function _1(n,o){return n&&Oi(n,ce(o,3))}function S1(n){return n==null?[]:ko(n,mt(n))}function E1(n){return n==null?[]:ko(n,Wt(n))}function su(n,o,u){var f=n==null?t:Wn(n,o);return f===t?u:f}function w1(n,o){return n!=null&&qf(n,o,Ym)}function iu(n,o){return n!=null&&qf(n,o,zm)}var T1=Lf(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=xo.call(o)),n[o]=u},cu(Ut)),C1=Lf(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=xo.call(o)),He.call(n,o)?n[o].push(u):n[o]=[u]},ce),x1=Re(Ha);function mt(n){return Bt(n)?ef(n):Ii(n)}function Wt(n){return Bt(n)?ef(n,!0):nb(n)}function R1(n,o){var u={};return o=ce(o,3),Cr(n,function(f,v,b){kr(u,o(f,v,b),f)}),u}function O1(n,o){var u={};return o=ce(o,3),Cr(n,function(f,v,b){kr(u,v,o(f,v,b))}),u}var A1=sa(function(n,o,u){Bo(n,o,u)}),xd=sa(function(n,o,u,f){Bo(n,o,u,f)}),P1=Wr(function(n,o){var u={};if(n==null)return u;var f=!1;o=at(o,function(b){return b=fn(b,n),f||(f=b.length>1),b}),xr(n,Yi(n),u),f&&(u=ar(u,m|_|E,Tb));for(var v=o.length;v--;)ji(u,o[v]);return u});function D1(n,o){return Rd(n,ts(ce(o)))}var I1=Wr(function(n,o){return n==null?{}:ob(n,o)});function Rd(n,o){if(n==null)return{};var u=at(Yi(n),function(f){return[f]});return o=ce(o),mf(n,u,function(f,v){return o(f,v[0])})}function F1(n,o,u){o=fn(o,n);var f=-1,v=o.length;for(v||(v=1,n=t);++f<v;){var b=n==null?t:n[Rr(o[f])];b===t&&(f=v,b=u),n=Hr(b)?b.call(n):b}return n}function $1(n,o,u){return n==null?n:qa(n,o,u)}function M1(n,o,u,f){return f=typeof f=="function"?f:t,n==null?n:qa(n,o,u,f)}var Od=Bf(mt),Ad=Bf(Wt);function N1(n,o,u){var f=Ee(n),v=f||pn(n)||ca(n);if(o=ce(o,4),u==null){var b=n&&n.constructor;v?u=f?new b:[]:st(n)?u=Hr(b)?oa(Ao(n)):{}:u={}}return(v?tr:Cr)(n,function(w,x,P){return o(u,w,x,P)}),u}function L1(n,o){return n==null?!0:ji(n,o)}function j1(n,o,u){return n==null?n:wf(n,o,Wi(u))}function k1(n,o,u,f){return f=typeof f=="function"?f:t,n==null?n:wf(n,o,Wi(u),f)}function la(n){return n==null?[]:bi(n,mt(n))}function B1(n){return n==null?[]:bi(n,Wt(n))}function W1(n,o,u){return u===t&&(u=o,o=t),u!==t&&(u=ir(u),u=u===u?u:0),o!==t&&(o=ir(o),o=o===o?o:0),Bn(ir(n),o,u)}function U1(n,o,u){return o=Gr(o),u===t?(u=o,o=0):u=Gr(u),n=ir(n),Vm(n,o,u)}function H1(n,o,u){if(u&&typeof u!="boolean"&&Mt(n,o,u)&&(o=u=t),u===t&&(typeof o=="boolean"?(u=o,o=t):typeof n=="boolean"&&(u=n,n=t)),n===t&&o===t?(n=0,o=1):(n=Gr(n),o===t?(o=n,n=0):o=Gr(o)),n>o){var f=n;n=o,o=f}if(u||n%1||o%1){var v=Xl();return Tt(n+v*(o-n+Sy("1e-"+((v+"").length-1))),o)}return Mi(n,o)}var G1=ia(function(n,o,u){return o=o.toLowerCase(),n+(u?Pd(o):o)});function Pd(n){return uu(Le(n).toLowerCase())}function Dd(n){return n=Le(n),n&&n.replace(ze,$y).replace(fy,"")}function q1(n,o,u){n=Le(n),o=Vt(o);var f=n.length;u=u===t?f:Bn(we(u),0,f);var v=u;return u-=o.length,u>=0&&n.slice(u,v)==o}function Y1(n){return n=Le(n),n&&On.test(n)?n.replace(Tr,My):n}function z1(n){return n=Le(n),n&&Fn.test(n)?n.replace(In,"\\$&"):n}var V1=ia(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),K1=ia(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),J1=$f("toLowerCase");function Z1(n,o,u){n=Le(n),o=we(o);var f=o?ea(n):0;if(!o||f>=o)return n;var v=(o-f)/2;return Yo(Fo(v),u)+n+Yo(Io(v),u)}function X1(n,o,u){n=Le(n),o=we(o);var f=o?ea(n):0;return o&&f<o?n+Yo(o-f,u):n}function Q1(n,o,u){n=Le(n),o=we(o);var f=o?ea(n):0;return o&&f<o?Yo(o-f,u)+n:n}function eS(n,o,u){return u||o==null?o=0:o&&(o=+o),im(Le(n).replace($n,""),o||0)}function tS(n,o,u){return(u?Mt(n,o,u):o===t)?o=1:o=we(o),Ni(Le(n),o)}function rS(){var n=arguments,o=Le(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var nS=ia(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function aS(n,o,u){return u&&typeof u!="number"&&Mt(n,o,u)&&(o=u=t),u=u===t?V:u>>>0,u?(n=Le(n),n&&(typeof o=="string"||o!=null&&!ou(o))&&(o=Vt(o),!o&&Qn(n))?dn(vr(n),0,u):n.split(o,u)):[]}var oS=ia(function(n,o,u){return n+(u?" ":"")+uu(o)});function sS(n,o,u){return n=Le(n),u=u==null?0:Bn(we(u),0,n.length),o=Vt(o),n.slice(u,u+o.length)==o}function iS(n,o,u){var f=y.templateSettings;u&&Mt(n,o,u)&&(o=t),n=Le(n),o=as({},o,f,Wf);var v=as({},o.imports,f.imports,Wf),b=mt(v),w=bi(v,b),x,P,k=0,B=o.interpolate||yt,U="__p += '",Z=Si((o.escape||yt).source+"|"+B.source+"|"+(B===Jn?re:yt).source+"|"+(o.evaluate||yt).source+"|$","g"),oe="//# sourceURL="+(He.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++vy+"]")+`
|
|
19
|
+
`;n.replace(Z,function(pe,Oe,De,Jt,Nt,Zt){return De||(De=Jt),U+=n.slice(k,Zt).replace(Mn,Ny),Oe&&(x=!0,U+=`' +
|
|
20
|
+
__e(`+Oe+`) +
|
|
20
21
|
'`),Nt&&(P=!0,U+=`';
|
|
21
22
|
`+Nt+`;
|
|
22
23
|
__p += '`),De&&(U+=`' +
|
|
23
24
|
((__t = (`+De+`)) == null ? '' : __t) +
|
|
24
|
-
'`),k=
|
|
25
|
+
'`),k=Zt+pe.length,pe}),U+=`';
|
|
25
26
|
`;var de=He.call(o,"variable")&&o.variable;if(!de)U=`with (obj) {
|
|
26
27
|
`+U+`
|
|
27
28
|
}
|
|
28
|
-
`;else if(
|
|
29
|
+
`;else if(F.test(de))throw new _e(l);U=(P?U.replace(Aa,""):U).replace(Mr,"$1").replace(Rn,"$1;"),U="function("+(de||"obj")+`) {
|
|
29
30
|
`+(de?"":`obj || (obj = {});
|
|
30
|
-
`)+"var __t, __p = ''"+(
|
|
31
|
+
`)+"var __t, __p = ''"+(x?", __e = _.escape":"")+(P?`, __j = Array.prototype.join;
|
|
31
32
|
function print() { __p += __j.call(arguments, '') }
|
|
32
33
|
`:`;
|
|
33
34
|
`)+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 rE(r){return Ne(r).toLowerCase()}function nE(r){return Ne(r).toUpperCase()}function aE(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 oE(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 sE(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 iE(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 uE(r){return r=Ne(r),r&&Tn.test(r)?r.replace(Wn,Ly):r}var cE=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?Iy(r)?By(r):wy(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)}}),lE=kr(function(r,o){return rr(o,function(u){u=Rr(u),Lr(r,u,Ji(r[u],r))}),r});function fE(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 dE(r){return Lm(or(r,b))}function nu(r){return function(){return r}}function pE(r,o){return r==null||r!==r?o:r}var hE=Df(),gE=Df(!0);function Ut(r){return r}function au(r){return sf(typeof r=="function"?r:or(r,b))}function vE(r){return cf(or(r,b))}function yE(r,o){return lf(r,or(o,b))}var mE=Re(function(r,o){return function(u){return Na(u,r,o)}}),bE=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 _E(){return Et._===this&&(Et._=Yy),this}function su(){}function EE(r){return r=Te(r),Re(function(o){return ff(o,r)})}var SE=Li(tt),wE=Li(Dl),TE=Li(ui);function Ad(r){return Gi(r)?ci(Rr(r)):e0(r)}function CE(r){return function(o){return r==null?t:In(r,o)}}var xE=Ff(),RE=Ff(!0);function iu(){return[]}function uu(){return!1}function OE(){return{}}function AE(){return""}function PE(){return!0}function DE(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 IE(r){return Se(r)?tt(r,Rr):Kt(r)?[r]:kt(Kf(Ne(r)))}function FE(r){var o=++Gy;return Ne(r)+o}var $E=ko(function(r,o){return r+o},0),ME=ji("ceil"),NE=ko(function(r,o){return r/o},1),LE=ji("floor");function jE(r){return r&&r.length?Io(r,Ut,wi):t}function kE(r,o){return r&&r.length?Io(r,ce(o,2),wi):t}function BE(r){return $l(r,Ut)}function WE(r,o){return $l(r,ce(o,2))}function UE(r){return r&&r.length?Io(r,Ut,Ri):t}function HE(r,o){return r&&r.length?Io(r,ce(o,2),Ri):t}var GE=ko(function(r,o){return r*o},1),qE=ji("round"),YE=ko(function(r,o){return r-o},0);function zE(r){return r&&r.length?fi(r,Ut):0}function VE(r,o){return r&&r.length?fi(r,ce(o,2)):0}return y.after=v_,y.ary=sd,y.assign=n1,y.assignIn=_d,y.assignInWith=Zo,y.assignWith=a1,y.at=o1,y.before=id,y.bind=Ji,y.bindAll=lE,y.bindKey=ud,y.castArray=O_,y.chain=nd,y.chunk=L0,y.compact=j0,y.concat=k0,y.cond=fE,y.conforms=dE,y.constant=nu,y.countBy=zb,y.create=s1,y.curry=cd,y.curryRight=ld,y.debounce=fd,y.defaults=i1,y.defaultsDeep=u1,y.defer=y_,y.delay=m_,y.difference=B0,y.differenceBy=W0,y.differenceWith=U0,y.drop=H0,y.dropRight=G0,y.dropRightWhile=q0,y.dropWhile=Y0,y.fill=z0,y.filter=Kb,y.flatMap=Zb,y.flatMapDeep=Qb,y.flatMapDepth=e_,y.flatten=Qf,y.flattenDeep=V0,y.flattenDepth=K0,y.flip=b_,y.flow=hE,y.flowRight=gE,y.fromPairs=J0,y.functions=g1,y.functionsIn=v1,y.groupBy=t_,y.initial=Z0,y.intersection=Q0,y.intersectionBy=eb,y.intersectionWith=tb,y.invert=m1,y.invertBy=b1,y.invokeMap=n_,y.iteratee=au,y.keyBy=a_,y.keys=mt,y.keysIn=Wt,y.map=Yo,y.mapKeys=E1,y.mapValues=S1,y.matches=vE,y.matchesProperty=yE,y.memoize=Vo,y.merge=w1,y.mergeWith=Ed,y.method=mE,y.methodOf=bE,y.mixin=ou,y.negate=Ko,y.nthArg=EE,y.omit=T1,y.omitBy=C1,y.once=__,y.orderBy=o_,y.over=SE,y.overArgs=E_,y.overEvery=wE,y.overSome=TE,y.partial=Xi,y.partialRight=dd,y.partition=s_,y.pick=x1,y.pickBy=Sd,y.property=Ad,y.propertyOf=CE,y.pull=ob,y.pullAll=td,y.pullAllBy=sb,y.pullAllWith=ib,y.pullAt=ub,y.range=xE,y.rangeRight=RE,y.rearg=S_,y.reject=c_,y.remove=cb,y.rest=w_,y.reverse=Vi,y.sampleSize=f_,y.set=O1,y.setWith=A1,y.shuffle=d_,y.slice=lb,y.sortBy=g_,y.sortedUniq=yb,y.sortedUniqBy=mb,y.split=Z1,y.spread=T_,y.tail=bb,y.take=_b,y.takeRight=Eb,y.takeRightWhile=Sb,y.takeWhile=wb,y.tap=jb,y.throttle=C_,y.thru=qo,y.toArray=yd,y.toPairs=wd,y.toPairsIn=Td,y.toPath=IE,y.toPlainObject=bd,y.transform=P1,y.unary=x_,y.union=Tb,y.unionBy=Cb,y.unionWith=xb,y.uniq=Rb,y.uniqBy=Ob,y.uniqWith=Ab,y.unset=D1,y.unzip=Ki,y.unzipWith=rd,y.update=I1,y.updateWith=F1,y.values=ra,y.valuesIn=$1,y.without=Pb,y.words=Rd,y.wrap=R_,y.xor=Db,y.xorBy=Ib,y.xorWith=Fb,y.zip=$b,y.zipObject=Mb,y.zipObjectDeep=Nb,y.zipWith=Lb,y.entries=wd,y.entriesIn=Td,y.extend=_d,y.extendWith=Zo,ou(y,y),y.add=$E,y.attempt=Od,y.camelCase=j1,y.capitalize=Cd,y.ceil=ME,y.clamp=M1,y.clone=A_,y.cloneDeep=D_,y.cloneDeepWith=I_,y.cloneWith=P_,y.conformsTo=F_,y.deburr=xd,y.defaultTo=pE,y.divide=NE,y.endsWith=k1,y.eq=yr,y.escape=B1,y.escapeRegExp=W1,y.every=Vb,y.find=Jb,y.findIndex=Xf,y.findKey=c1,y.findLast=Xb,y.findLastIndex=Zf,y.findLastKey=l1,y.floor=LE,y.forEach=ad,y.forEachRight=od,y.forIn=f1,y.forInRight=d1,y.forOwn=p1,y.forOwnRight=h1,y.get=eu,y.gt=$_,y.gte=M_,y.has=y1,y.hasIn=tu,y.head=ed,y.identity=Ut,y.includes=r_,y.indexOf=X0,y.inRange=N1,y.invoke=_1,y.isArguments=Mn,y.isArray=Se,y.isArrayBuffer=N_,y.isArrayLike=Bt,y.isArrayLikeObject=ct,y.isBoolean=L_,y.isBuffer=ln,y.isDate=j_,y.isElement=k_,y.isEmpty=B_,y.isEqual=W_,y.isEqualWith=U_,y.isError=Zi,y.isFinite=H_,y.isFunction=Wr,y.isInteger=pd,y.isLength=Jo,y.isMap=hd,y.isMatch=G_,y.isMatchWith=q_,y.isNaN=Y_,y.isNative=z_,y.isNil=K_,y.isNull=V_,y.isNumber=gd,y.isObject=nt,y.isObjectLike=ot,y.isPlainObject=Ua,y.isRegExp=Qi,y.isSafeInteger=J_,y.isSet=vd,y.isString=Xo,y.isSymbol=Kt,y.isTypedArray=ta,y.isUndefined=X_,y.isWeakMap=Z_,y.isWeakSet=Q_,y.join=rb,y.kebabCase=U1,y.last=ir,y.lastIndexOf=nb,y.lowerCase=H1,y.lowerFirst=G1,y.lt=e1,y.lte=t1,y.max=jE,y.maxBy=kE,y.mean=BE,y.meanBy=WE,y.min=UE,y.minBy=HE,y.stubArray=iu,y.stubFalse=uu,y.stubObject=OE,y.stubString=AE,y.stubTrue=PE,y.multiply=GE,y.nth=ab,y.noConflict=_E,y.noop=su,y.now=zo,y.pad=q1,y.padEnd=Y1,y.padStart=z1,y.parseInt=V1,y.random=L1,y.reduce=i_,y.reduceRight=u_,y.repeat=K1,y.replace=J1,y.result=R1,y.round=qE,y.runInContext=O,y.sample=l_,y.size=p_,y.snakeCase=X1,y.some=h_,y.sortedIndex=fb,y.sortedIndexBy=db,y.sortedIndexOf=pb,y.sortedLastIndex=hb,y.sortedLastIndexBy=gb,y.sortedLastIndexOf=vb,y.startCase=Q1,y.startsWith=eE,y.subtract=YE,y.sum=zE,y.sumBy=VE,y.template=tE,y.times=DE,y.toFinite=Ur,y.toInteger=Te,y.toLength=md,y.toLower=rE,y.toNumber=ur,y.toSafeInteger=r1,y.toString=Ne,y.toUpper=nE,y.trim=aE,y.trimEnd=oE,y.trimStart=sE,y.truncate=iE,y.unescape=uE,y.uniqueId=FE,y.upperCase=cE,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=um,Pe.prototype.reverse=cm,Pe.prototype.value=lm,y.prototype.at=kb,y.prototype.chain=Bb,y.prototype.commit=Wb,y.prototype.next=Ub,y.prototype.plant=Gb,y.prototype.reverse=qb,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=Yb,y.prototype.first=y.prototype.head,Aa&&(y.prototype[Aa]=Hb),y},zn=Wy();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 bR=typeof process=="object"&&process&&process.platform==="win32";var _R=bR?{sep:"\\"}:{sep:"/"},ER=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=ER,SR=CR,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 wR(e){return e.split("\\\\").join(Mh).split("\\{").join(Nh).split("\\}").join(Dc).split("\\,").join(Lh).split("\\.").join(jh)}function TR(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 CR(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Ya(wR(e),!0).map(TR)):[]}function xR(e){return"{"+e+"}"}function RR(e){return/^-?0\d/.test(e)}function OR(e,n){return e<=n}function AR(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(xR),_.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=OR,$=x<T;$&&(D*=-1,W=AR);var j=_.some(RR);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=_R;Zt.sep=Xu.sep;const br=Symbol("globstar **");Zt.GLOBSTAR=br;const PR=SR,pp={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Zu="[^/]",Eu=Zu+"*?",DR="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",IR="(?:(?!(?:\\/|^)\\.).)*?",Wh=e=>e.split("").reduce((n,t)=>(n[t]=!0,n),{}),hp=Wh("().*{}+?[]^$\\!"),FR=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]:PR(e)),$R=1024*64,Ss=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>$R)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 MR=e=>e.replace(/\\(.)/g,"$1"),NR=e=>e.replace(/\\([^-\]])/g,"$1"),LR=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),jR=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`,
|
|
36
|
-
>>> no match, partial?`,
|
|
37
|
-
%s`,
|
|
35
|
+
}`;var xe=Fd(function(){return Me(b,oe+"return "+U).apply(t,w)});if(xe.source=U,au(xe))throw xe;return xe}function uS(n){return Le(n).toLowerCase()}function cS(n){return Le(n).toUpperCase()}function lS(n,o,u){if(n=Le(n),n&&(u||o===t))return Wl(n);if(!n||!(o=Vt(o)))return n;var f=vr(n),v=vr(o),b=Ul(f,v),w=Hl(f,v)+1;return dn(f,b,w).join("")}function fS(n,o,u){if(n=Le(n),n&&(u||o===t))return n.slice(0,ql(n)+1);if(!n||!(o=Vt(o)))return n;var f=vr(n),v=Hl(f,vr(o))+1;return dn(f,0,v).join("")}function dS(n,o,u){if(n=Le(n),n&&(u||o===t))return n.replace($n,"");if(!n||!(o=Vt(o)))return n;var f=vr(n),v=Ul(f,vr(o));return dn(f,v).join("")}function pS(n,o){var u=Ie,f=Ce;if(st(o)){var v="separator"in o?o.separator:v;u="length"in o?we(o.length):u,f="omission"in o?Vt(o.omission):f}n=Le(n);var b=n.length;if(Qn(n)){var w=vr(n);b=w.length}if(u>=b)return n;var x=u-ea(f);if(x<1)return f;var P=w?dn(w,0,x).join(""):n.slice(0,x);if(v===t)return P+f;if(w&&(x+=P.length-x),ou(v)){if(n.slice(x).search(v)){var k,B=P;for(v.global||(v=Si(v.source,Le(se.exec(v))+"g")),v.lastIndex=0;k=v.exec(B);)var U=k.index;P=P.slice(0,U===t?x:U)}}else if(n.indexOf(Vt(v),x)!=x){var Z=P.lastIndexOf(v);Z>-1&&(P=P.slice(0,Z))}return P+f}function hS(n){return n=Le(n),n&&Nr.test(n)?n.replace(wt,Hy):n}var gS=ia(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),uu=$f("toUpperCase");function Id(n,o,u){return n=Le(n),o=u?t:o,o===t?jy(n)?Yy(n):Ay(n):n.match(o)||[]}var Fd=Re(function(n,o){try{return Yt(n,t,o)}catch(u){return au(u)?u:new _e(u)}}),vS=Wr(function(n,o){return tr(o,function(u){u=Rr(u),kr(n,u,ru(n[u],n))}),n});function yS(n){var o=n==null?0:n.length,u=ce();return n=o?at(n,function(f){if(typeof f[1]!="function")throw new rr(c);return[u(f[0]),f[1]]}):[],Re(function(f){for(var v=-1;++v<o;){var b=n[v];if(Yt(b[0],this,f))return Yt(b[1],this,f)}})}function mS(n){return Hm(ar(n,m))}function cu(n){return function(){return n}}function bS(n,o){return n==null||n!==n?o:n}var _S=Nf(),SS=Nf(!0);function Ut(n){return n}function lu(n){return df(typeof n=="function"?n:ar(n,m))}function ES(n){return hf(ar(n,m))}function wS(n,o){return gf(n,ar(o,m))}var TS=Re(function(n,o){return function(u){return Ha(u,n,o)}}),CS=Re(function(n,o){return function(u){return Ha(n,u,o)}});function fu(n,o,u){var f=mt(o),v=ko(o,f);u==null&&!(st(o)&&(v.length||!f.length))&&(u=o,o=n,n=this,v=ko(o,mt(o)));var b=!(st(u)&&"chain"in u)||!!u.chain,w=Hr(n);return tr(v,function(x){var P=o[x];n[x]=P,w&&(n.prototype[x]=function(){var k=this.__chain__;if(b||k){var B=n(this.__wrapped__),U=B.__actions__=kt(this.__actions__);return U.push({func:P,args:arguments,thisArg:n}),B.__chain__=k,B}return P.apply(n,on([this.value()],arguments))})}),n}function xS(){return _t._===this&&(_t._=Xy),this}function du(){}function RS(n){return n=we(n),Re(function(o){return vf(o,n)})}var OS=Hi(at),AS=Hi(Nl),PS=Hi(hi);function $d(n){return Ji(n)?gi(Rr(n)):sb(n)}function DS(n){return function(o){return n==null?t:Wn(n,o)}}var IS=jf(),FS=jf(!0);function pu(){return[]}function hu(){return!1}function $S(){return{}}function MS(){return""}function NS(){return!0}function LS(n,o){if(n=we(n),n<1||n>rt)return[];var u=V,f=Tt(n,V);o=ce(o),n-=V;for(var v=mi(f,o);++u<n;)o(u);return v}function jS(n){return Ee(n)?at(n,Rr):Kt(n)?[n]:kt(ed(Le(n)))}function kS(n){var o=++Jy;return Le(n)+o}var BS=qo(function(n,o){return n+o},0),WS=Gi("ceil"),US=qo(function(n,o){return n/o},1),HS=Gi("floor");function GS(n){return n&&n.length?jo(n,Ut,Ai):t}function qS(n,o){return n&&n.length?jo(n,ce(o,2),Ai):t}function YS(n){return kl(n,Ut)}function zS(n,o){return kl(n,ce(o,2))}function VS(n){return n&&n.length?jo(n,Ut,Fi):t}function KS(n,o){return n&&n.length?jo(n,ce(o,2),Fi):t}var JS=qo(function(n,o){return n*o},1),ZS=Gi("round"),XS=qo(function(n,o){return n-o},0);function QS(n){return n&&n.length?yi(n,Ut):0}function eE(n,o){return n&&n.length?yi(n,ce(o,2)):0}return y.after=E_,y.ary=fd,y.assign=c1,y.assignIn=Cd,y.assignInWith=as,y.assignWith=l1,y.at=f1,y.before=dd,y.bind=ru,y.bindAll=vS,y.bindKey=pd,y.castArray=$_,y.chain=ud,y.chunk=Hb,y.compact=Gb,y.concat=qb,y.cond=yS,y.conforms=mS,y.constant=cu,y.countBy=Q0,y.create=d1,y.curry=hd,y.curryRight=gd,y.debounce=vd,y.defaults=p1,y.defaultsDeep=h1,y.defer=w_,y.delay=T_,y.difference=Yb,y.differenceBy=zb,y.differenceWith=Vb,y.drop=Kb,y.dropRight=Jb,y.dropRightWhile=Zb,y.dropWhile=Xb,y.fill=Qb,y.filter=t_,y.flatMap=a_,y.flatMapDeep=o_,y.flatMapDepth=s_,y.flatten=ad,y.flattenDeep=e0,y.flattenDepth=t0,y.flip=C_,y.flow=_S,y.flowRight=SS,y.fromPairs=r0,y.functions=S1,y.functionsIn=E1,y.groupBy=i_,y.initial=a0,y.intersection=o0,y.intersectionBy=s0,y.intersectionWith=i0,y.invert=T1,y.invertBy=C1,y.invokeMap=c_,y.iteratee=lu,y.keyBy=l_,y.keys=mt,y.keysIn=Wt,y.map=Xo,y.mapKeys=R1,y.mapValues=O1,y.matches=ES,y.matchesProperty=wS,y.memoize=es,y.merge=A1,y.mergeWith=xd,y.method=TS,y.methodOf=CS,y.mixin=fu,y.negate=ts,y.nthArg=RS,y.omit=P1,y.omitBy=D1,y.once=x_,y.orderBy=f_,y.over=OS,y.overArgs=R_,y.overEvery=AS,y.overSome=PS,y.partial=nu,y.partialRight=yd,y.partition=d_,y.pick=I1,y.pickBy=Rd,y.property=$d,y.propertyOf=DS,y.pull=f0,y.pullAll=sd,y.pullAllBy=d0,y.pullAllWith=p0,y.pullAt=h0,y.range=IS,y.rangeRight=FS,y.rearg=O_,y.reject=g_,y.remove=g0,y.rest=A_,y.reverse=eu,y.sampleSize=y_,y.set=$1,y.setWith=M1,y.shuffle=m_,y.slice=v0,y.sortBy=S_,y.sortedUniq=w0,y.sortedUniqBy=T0,y.split=aS,y.spread=P_,y.tail=C0,y.take=x0,y.takeRight=R0,y.takeRightWhile=O0,y.takeWhile=A0,y.tap=G0,y.throttle=D_,y.thru=Zo,y.toArray=Ed,y.toPairs=Od,y.toPairsIn=Ad,y.toPath=jS,y.toPlainObject=Td,y.transform=N1,y.unary=I_,y.union=P0,y.unionBy=D0,y.unionWith=I0,y.uniq=F0,y.uniqBy=$0,y.uniqWith=M0,y.unset=L1,y.unzip=tu,y.unzipWith=id,y.update=j1,y.updateWith=k1,y.values=la,y.valuesIn=B1,y.without=N0,y.words=Id,y.wrap=F_,y.xor=L0,y.xorBy=j0,y.xorWith=k0,y.zip=B0,y.zipObject=W0,y.zipObjectDeep=U0,y.zipWith=H0,y.entries=Od,y.entriesIn=Ad,y.extend=Cd,y.extendWith=as,fu(y,y),y.add=BS,y.attempt=Fd,y.camelCase=G1,y.capitalize=Pd,y.ceil=WS,y.clamp=W1,y.clone=M_,y.cloneDeep=L_,y.cloneDeepWith=j_,y.cloneWith=N_,y.conformsTo=k_,y.deburr=Dd,y.defaultTo=bS,y.divide=US,y.endsWith=q1,y.eq=mr,y.escape=Y1,y.escapeRegExp=z1,y.every=e_,y.find=r_,y.findIndex=rd,y.findKey=g1,y.findLast=n_,y.findLastIndex=nd,y.findLastKey=v1,y.floor=HS,y.forEach=cd,y.forEachRight=ld,y.forIn=y1,y.forInRight=m1,y.forOwn=b1,y.forOwnRight=_1,y.get=su,y.gt=B_,y.gte=W_,y.has=w1,y.hasIn=iu,y.head=od,y.identity=Ut,y.includes=u_,y.indexOf=n0,y.inRange=U1,y.invoke=x1,y.isArguments=Gn,y.isArray=Ee,y.isArrayBuffer=U_,y.isArrayLike=Bt,y.isArrayLikeObject=ct,y.isBoolean=H_,y.isBuffer=pn,y.isDate=G_,y.isElement=q_,y.isEmpty=Y_,y.isEqual=z_,y.isEqualWith=V_,y.isError=au,y.isFinite=K_,y.isFunction=Hr,y.isInteger=md,y.isLength=rs,y.isMap=bd,y.isMatch=J_,y.isMatchWith=Z_,y.isNaN=X_,y.isNative=Q_,y.isNil=t1,y.isNull=e1,y.isNumber=_d,y.isObject=st,y.isObjectLike=it,y.isPlainObject=Ka,y.isRegExp=ou,y.isSafeInteger=r1,y.isSet=Sd,y.isString=ns,y.isSymbol=Kt,y.isTypedArray=ca,y.isUndefined=n1,y.isWeakMap=a1,y.isWeakSet=o1,y.join=u0,y.kebabCase=V1,y.last=sr,y.lastIndexOf=c0,y.lowerCase=K1,y.lowerFirst=J1,y.lt=s1,y.lte=i1,y.max=GS,y.maxBy=qS,y.mean=YS,y.meanBy=zS,y.min=VS,y.minBy=KS,y.stubArray=pu,y.stubFalse=hu,y.stubObject=$S,y.stubString=MS,y.stubTrue=NS,y.multiply=JS,y.nth=l0,y.noConflict=xS,y.noop=du,y.now=Qo,y.pad=Z1,y.padEnd=X1,y.padStart=Q1,y.parseInt=eS,y.random=H1,y.reduce=p_,y.reduceRight=h_,y.repeat=tS,y.replace=rS,y.result=F1,y.round=ZS,y.runInContext=A,y.sample=v_,y.size=b_,y.snakeCase=nS,y.some=__,y.sortedIndex=y0,y.sortedIndexBy=m0,y.sortedIndexOf=b0,y.sortedLastIndex=_0,y.sortedLastIndexBy=S0,y.sortedLastIndexOf=E0,y.startCase=oS,y.startsWith=sS,y.subtract=XS,y.sum=QS,y.sumBy=eE,y.template=iS,y.times=LS,y.toFinite=Gr,y.toInteger=we,y.toLength=wd,y.toLower=uS,y.toNumber=ir,y.toSafeInteger=u1,y.toString=Le,y.toUpper=cS,y.trim=lS,y.trimEnd=fS,y.trimStart=dS,y.truncate=pS,y.unescape=hS,y.uniqueId=kS,y.upperCase=gS,y.upperFirst=uu,y.each=cd,y.eachRight=ld,y.first=od,fu(y,function(){var n={};return Cr(y,function(o,u){He.call(y.prototype,u)||(n[u]=o)}),n}(),{chain:!1}),y.VERSION=a,tr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){y[n].placeholder=y}),tr(["drop","take"],function(n,o){Ae.prototype[n]=function(u){u=u===t?1:ht(we(u),0);var f=this.__filtered__&&!o?new Ae(this):this.clone();return f.__filtered__?f.__takeCount__=Tt(u,f.__takeCount__):f.__views__.push({size:Tt(u,V),type:n+(f.__dir__<0?"Right":"")}),f},Ae.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),tr(["filter","map","takeWhile"],function(n,o){var u=o+1,f=u==Pe||u==et;Ae.prototype[n]=function(v){var b=this.clone();return b.__iteratees__.push({iteratee:ce(v,3),type:u}),b.__filtered__=b.__filtered__||f,b}}),tr(["head","last"],function(n,o){var u="take"+(o?"Right":"");Ae.prototype[n]=function(){return this[u](1).value()[0]}}),tr(["initial","tail"],function(n,o){var u="drop"+(o?"":"Right");Ae.prototype[n]=function(){return this.__filtered__?new Ae(this):this[u](1)}}),Ae.prototype.compact=function(){return this.filter(Ut)},Ae.prototype.find=function(n){return this.filter(n).head()},Ae.prototype.findLast=function(n){return this.reverse().find(n)},Ae.prototype.invokeMap=Re(function(n,o){return typeof n=="function"?new Ae(this):this.map(function(u){return Ha(u,n,o)})}),Ae.prototype.reject=function(n){return this.filter(ts(ce(n)))},Ae.prototype.slice=function(n,o){n=we(n);var u=this;return u.__filtered__&&(n>0||o<0)?new Ae(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),o!==t&&(o=we(o),u=o<0?u.dropRight(-o):u.take(o-n)),u)},Ae.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Ae.prototype.toArray=function(){return this.take(V)},Cr(Ae.prototype,function(n,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),f=/^(?:head|last)$/.test(o),v=y[f?"take"+(o=="last"?"Right":""):o],b=f||/^find/.test(o);v&&(y.prototype[o]=function(){var w=this.__wrapped__,x=f?[1]:arguments,P=w instanceof Ae,k=x[0],B=P||Ee(w),U=function(Oe){var De=v.apply(y,on([Oe],x));return f&&Z?De[0]:De};B&&u&&typeof k=="function"&&k.length!=1&&(P=B=!1);var Z=this.__chain__,oe=!!this.__actions__.length,de=b&&!Z,xe=P&&!oe;if(!b&&B){w=xe?w:new Ae(this);var pe=n.apply(w,x);return pe.__actions__.push({func:Zo,args:[U],thisArg:t}),new nr(pe,Z)}return de&&xe?n.apply(this,x):(pe=this.thru(U),de?f?pe.value()[0]:pe.value():pe)})}),tr(["pop","push","shift","sort","splice","unshift"],function(n){var o=wo[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",f=/^(?:pop|shift)$/.test(n);y.prototype[n]=function(){var v=arguments;if(f&&!this.__chain__){var b=this.value();return o.apply(Ee(b)?b:[],v)}return this[u](function(w){return o.apply(Ee(w)?w:[],v)})}}),Cr(Ae.prototype,function(n,o){var u=y[o];if(u){var f=u.name+"";He.call(aa,f)||(aa[f]=[]),aa[f].push({name:o,func:u})}}),aa[Go(t,D).name]=[{name:"wrapper",func:t}],Ae.prototype.clone=hm,Ae.prototype.reverse=gm,Ae.prototype.value=vm,y.prototype.at=q0,y.prototype.chain=Y0,y.prototype.commit=z0,y.prototype.next=V0,y.prototype.plant=J0,y.prototype.reverse=Z0,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=X0,y.prototype.first=y.prototype.head,Na&&(y.prototype[Na]=K0),y},ta=zy();Nn?((Nn.exports=ta)._=ta,li._=ta):_t._=ta}).call(zr)})(Rs,Rs.exports);var Ke=Rs.exports;const Wh=js(Ke);function Mc(e){return`Debugger/${e}`}function Uh(e,r){var a;const t=(a=r.name)==null?void 0:a.replace(/\.(4dm|4qs)$/,"");return`#${e} ${t}`}const RR=typeof process=="object"&&process&&process.platform==="win32";var OR=RR?{sep:"\\"}:{sep:"/"},AR=Hh;function Hh(e,r,t){e instanceof RegExp&&(e=_p(e,t)),r instanceof RegExp&&(r=_p(r,t));var a=Gh(e,r,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]+r.length)}}function _p(e,r){var t=r.match(e);return t?t[0]:null}Hh.range=Gh;function Gh(e,r,t){var a,s,i,c,l,d=t.indexOf(e),p=t.indexOf(r,d+1),h=d;if(d>=0&&p>0){if(e===r)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(r,h+1)),h=d<p&&d>=0?d:p;a.length&&(l=[i,c])}return l}var qh=AR,PR=FR,Yh="\0SLASH"+Math.random()+"\0",zh="\0OPEN"+Math.random()+"\0",Nc="\0CLOSE"+Math.random()+"\0",Vh="\0COMMA"+Math.random()+"\0",Kh="\0PERIOD"+Math.random()+"\0";function Cu(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function DR(e){return e.split("\\\\").join(Yh).split("\\{").join(zh).split("\\}").join(Nc).split("\\,").join(Vh).split("\\.").join(Kh)}function IR(e){return e.split(Yh).join("\\").split(zh).join("{").split(Nc).join("}").split(Vh).join(",").split(Kh).join(".")}function Jh(e){if(!e)return[""];var r=[],t=qh("{","}",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=Jh(i);return i.length&&(c[c.length-1]+=l.shift(),c.push.apply(c,l)),r.push.apply(r,c),r}function FR(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),ro(DR(e),!0).map(IR)):[]}function $R(e){return"{"+e+"}"}function MR(e){return/^-?0\d/.test(e)}function NR(e,r){return e<=r}function LR(e,r){return e>=r}function ro(e,r){var t=[],a=qh("{","}",e);if(!a)return[e];var s=a.pre,i=a.post.length?ro(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,m=a.body.indexOf(",")>=0;if(!h&&!m)return a.post.match(/,.*\}/)?(e=a.pre+"{"+a.body+Nc+a.post,ro(e)):[e];var _;if(h)_=a.body.split(/\.\./);else if(_=Jh(a.body),_.length===1&&(_=ro(_[0],!1).map($R),_.length===1))return i.map(function(Ie){return a.pre+_[0]+Ie});var E;if(h){var T=Cu(_[0]),C=Cu(_[1]),$=Math.max(_[0].length,_[1].length),D=_.length==3?Math.abs(Cu(_[2])):1,I=NR,W=C<T;W&&(D*=-1,I=LR);var j=_.some(MR);E=[];for(var O=T;I(O,C);O+=D){var K;if(p)K=String.fromCharCode(O),K==="\\"&&(K="");else if(K=String(O),j){var Y=$-K.length;if(Y>0){var Q=new Array(Y+1).join("0");O<0?K="-"+Q+K.slice(1):K=Q+K}}E.push(K)}}else{E=[];for(var ae=0;ae<_.length;ae++)E.push.apply(E,ro(_[ae],!1))}for(var ae=0;ae<E.length;ae++)for(var c=0;c<i.length;c++){var l=s+E[ae]+i[c];(!r||h||l)&&t.push(l)}}return t}const Xt=Zh=(e,r,t={})=>(Os(r),!t.nocomment&&r.charAt(0)==="#"?!1:new Ys(r,t).match(e));var Zh=Xt;const tc=OR;Xt.sep=tc.sep;const _r=Symbol("globstar **");Xt.GLOBSTAR=_r;const jR=PR,Sp={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},rc="[^/]",xu=rc+"*?",kR="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",BR="(?:(?!(?:\\/|^)\\.).)*?",Xh=e=>e.split("").reduce((r,t)=>(r[t]=!0,r),{}),Ep=Xh("().*{}+?[]^$\\!"),WR=Xh("[.("),wp=/\/+/;Xt.filter=(e,r={})=>(t,a,s)=>Xt(t,e,r);const hn=(e,r={})=>{const t={};return Object.keys(e).forEach(a=>t[a]=e[a]),Object.keys(r).forEach(a=>t[a]=r[a]),t};Xt.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Xt;const r=Xt,t=(a,s,i)=>r(a,s,hn(e,i));return t.Minimatch=class extends r.Minimatch{constructor(s,i){super(s,hn(e,i))}},t.Minimatch.defaults=a=>r.defaults(hn(e,a)).Minimatch,t.filter=(a,s)=>r.filter(a,hn(e,s)),t.defaults=a=>r.defaults(hn(e,a)),t.makeRe=(a,s)=>r.makeRe(a,hn(e,s)),t.braceExpand=(a,s)=>r.braceExpand(a,hn(e,s)),t.match=(a,s,i)=>r.match(a,s,hn(e,i)),t};Xt.braceExpand=(e,r)=>Qh(e,r);const Qh=(e,r={})=>(Os(e),r.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:jR(e)),UR=1024*64,Os=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>UR)throw new TypeError("pattern is too long")},Ru=Symbol("subparse");Xt.makeRe=(e,r)=>new Ys(e,r||{}).makeRe();Xt.match=(e,r,t={})=>{const a=new Ys(r,t);return e=e.filter(s=>a.match(s)),a.options.nonull&&!e.length&&e.push(r),e};const HR=e=>e.replace(/\\(.)/g,"$1"),GR=e=>e.replace(/\\([^-\]])/g,"$1"),qR=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),YR=e=>e.replace(/[[\]\\]/g,"\\$&");class Ys{constructor(r,t){Os(r),t||(t={}),this.options=t,this.set=[],this.pattern=r,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 r=this.pattern,t=this.options;if(!t.nocomment&&r.charAt(0)==="#"){this.comment=!0;return}if(!r){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(wp)),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 r=this.pattern;let t=!1,a=0;for(let s=0;s<r.length&&r.charAt(s)==="!";s++)t=!t,a++;a&&(this.pattern=r.slice(a)),this.negate=t}matchOne(r,t,a){var s=this.options;this.debug("matchOne",{this:this,file:r,pattern:t}),this.debug("matchOne",r.length,t.length);for(var i=0,c=0,l=r.length,d=t.length;i<l&&c<d;i++,c++){this.debug("matchOne loop");var p=t[c],h=r[i];if(this.debug(t,p,h),p===!1)return!1;if(p===_r){this.debug("GLOBSTAR",[t,p,h]);var m=i,_=c+1;if(_===d){for(this.debug("** at the end");i<l;i++)if(r[i]==="."||r[i]===".."||!s.dot&&r[i].charAt(0)===".")return!1;return!0}for(;m<l;){var E=r[m];if(this.debug(`
|
|
36
|
+
globstar while`,r,m,t,_,E),this.matchOne(r.slice(m),t.slice(_),a))return this.debug("globstar found match!",m,l,E),!0;if(E==="."||E===".."||!s.dot&&E.charAt(0)==="."){this.debug("dot detected!",r,m,t,_);break}this.debug("globstar swallow a segment, and continue"),m++}return!!(a&&(this.debug(`
|
|
37
|
+
>>> no match, partial?`,r,m,t,_),m===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&&r[i]==="";throw new Error("wtf?")}braceExpand(){return Qh(this.pattern,this.options)}parse(r,t){Os(r);const a=this.options;if(r==="**")if(a.noglobstar)r="*";else return _r;if(r==="")return"";let s="",i=!1,c=!1;const l=[],d=[];let p,h=!1,m=-1,_=-1,E,T,C,$=r.charAt(0)===".",D=a.dot||$;const I=()=>$?"":D?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",W=Y=>Y.charAt(0)==="."?"":a.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",j=()=>{if(p){switch(p){case"*":s+=xu,i=!0;break;case"?":s+=rc,i=!0;break;default:s+="\\"+p;break}this.debug("clearStateChar %j %j",p,s),p=!1}};for(let Y=0,Q;Y<r.length&&(Q=r.charAt(Y));Y++){if(this.debug("%s %s %s %j",r,Y,s,Q),c){if(Q==="/")return!1;Ep[Q]&&(s+="\\"),s+=Q,c=!1;continue}switch(Q){case"/":return!1;case"\\":if(h&&r.charAt(Y+1)==="-"){s+=Q;continue}j(),c=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",r,Y,s,Q),h){this.debug(" in class"),Q==="!"&&Y===_+1&&(Q="^"),s+=Q;continue}this.debug("call clearStateChar %j",p),j(),p=Q,a.noext&&j();continue;case"(":{if(h){s+="(";continue}if(!p){s+="\\(";continue}const ae={type:p,start:Y-1,reStart:s.length,open:Sp[p].open,close:Sp[p].close};this.debug(this.pattern," ",ae),l.push(ae),s+=ae.open,ae.start===0&&ae.type!=="!"&&($=!0,s+=W(r.slice(Y+1))),this.debug("plType %j %j",p,s),p=!1;continue}case")":{const ae=l[l.length-1];if(h||!ae){s+="\\)";continue}l.pop(),j(),i=!0,T=ae,s+=T.close,T.type==="!"&&d.push(Object.assign(T,{reEnd:s.length}));continue}case"|":{const ae=l[l.length-1];if(h||!ae){s+="\\|";continue}j(),s+="|",ae.start===0&&ae.type!=="!"&&($=!0,s+=W(r.slice(Y+1)));continue}case"[":if(j(),h){s+="\\"+Q;continue}h=!0,_=Y,m=s.length,s+=Q;continue;case"]":if(Y===_+1||!h){s+="\\"+Q;continue}E=r.substring(_+1,Y);try{RegExp("["+YR(GR(E))+"]"),s+=Q}catch{s=s.substring(0,m)+"(?:$.)"}i=!0,h=!1;continue;default:j(),Ep[Q]&&!(Q==="^"&&h)&&(s+="\\"),s+=Q;break}}for(h&&(E=r.slice(_+1),C=this.parse(E,Ru),s=s.substring(0,m)+"\\["+C[0],i=i||C[1]),T=l.pop();T;T=l.pop()){let Y;Y=s.slice(T.reStart+T.open.length),this.debug("setting tail",s,T),Y=Y.replace(/((?:\\{2}){0,64})(\\?)\|/g,(ae,Ie,Ce)=>(Ce||(Ce="\\"),Ie+Ie+Ce+"|")),this.debug(`tail=%j
|
|
38
|
+
%s`,Y,Y,T,s);const Q=T.type==="*"?xu:T.type==="?"?rc:"\\"+T.type;i=!0,s=s.slice(0,T.reStart)+Q+"\\("+Y}j(),c&&(s+="\\\\");const O=WR[s.charAt(0)];for(let Y=d.length-1;Y>-1;Y--){const Q=d[Y],ae=s.slice(0,Q.reStart),Ie=s.slice(Q.reStart,Q.reEnd-8);let Ce=s.slice(Q.reEnd);const Xe=s.slice(Q.reEnd-8,Q.reEnd)+Ce,z=ae.split(")").length,Pe=ae.split("(").length-z;let Qe=Ce;for(let Ue=0;Ue<Pe;Ue++)Qe=Qe.replace(/\)[+*?]?/,"");Ce=Qe;const et=Ce===""&&t!==Ru?"(?:$|\\/)":"";s=ae+Ie+Ce+et+Xe}if(s!==""&&i&&(s="(?=.)"+s),O&&(s=I()+s),t===Ru)return[s,i];if(a.nocase&&!i&&(i=r.toUpperCase()!==r.toLowerCase()),!i)return HR(r);const K=a.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",K),{_glob:r,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const r=this.set;if(!r.length)return this.regexp=!1,this.regexp;const t=this.options,a=t.noglobstar?xu:t.dot?kR:BR,s=t.nocase?"i":"";let i=r.map(c=>(c=c.map(l=>typeof l=="string"?qR(l):l===_r?_r:l._src).reduce((l,d)=>(l[l.length-1]===_r&&d===_r||l.push(d),l),[]),c.forEach((l,d)=>{l!==_r||c[d-1]===_r||(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]=_r))}),c.filter(l=>l!==_r).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(r,t=this.partial){if(this.debug("match",r,this.pattern),this.comment)return!1;if(this.empty)return r==="";if(r==="/"&&t)return!0;const a=this.options;tc.sep!=="/"&&(r=r.split(tc.sep).join("/")),r=r.split(wp),this.debug(this.pattern,"split",r);const s=this.set;this.debug(this.pattern,"set",s);let i;for(let c=r.length-1;c>=0&&(i=r[c],!i);c--);for(let c=0;c<s.length;c++){const l=s[c];let d=r;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(r){return Xt.defaults(r).Minimatch}}Xt.Minimatch=Ys;const eg=js(Zh),tg=[{pattern:S.ROLES_TAB_PATH,editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:S.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"}}],rg=[{pattern:"**/*.+(json|4DModel|WebForm)",type:"json"},{pattern:"**/*.+(4dm|txt|json|4qs)",type:"text"}];function ng(e){const r=e.split("/");return r.pop(),r.join("/")}function Er(e){const r=tg.find(({pattern:t})=>eg(e,t,{nocase:!0}));return r||{pattern:"",editor:{key:"editors:unknown",config:{language:"text"}}}}function ag(e){const r=rg.find(({pattern:t})=>eg(e,t,{nocase:!0}));return r?r.type:"text"}var nc=function(e,r){return nc=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])},nc(e,r)};function zs(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");nc(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function ac(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],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(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function As(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var a=t.call(e),s,i=[],c;try{for(;(r===void 0||r-- >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 Ps(e,r,t){if(t||arguments.length===2)for(var a=0,s=r.length,i;a<s;a++)(i||!(a in r))&&(i||(i=Array.prototype.slice.call(r,0,a)),i[a]=r[a]);return e.concat(i||Array.prototype.slice.call(r))}function Vr(e){return typeof e=="function"}function og(e){var r=function(a){Error.call(a),a.stack=new Error().stack},t=e(r);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Ou=og(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
38
39
|
`+t.map(function(a,s){return s+1+") "+a.toString()}).join(`
|
|
39
|
-
`):"",this.name="UnsubscriptionError",this.errors=t}});function
|
|
40
|
+
`):"",this.name="UnsubscriptionError",this.errors=t}});function oc(e,r){if(e){var t=e.indexOf(r);0<=t&&e.splice(t,1)}}var Vs=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var r,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=ac(c),d=l.next();!d.done;d=l.next()){var p=d.value;p.remove(this)}}catch(C){r={error:C}}finally{try{d&&!d.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}else c.remove(this);var h=this.initialTeardown;if(Vr(h))try{h()}catch(C){i=C instanceof Ou?C.errors:[C]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var _=ac(m),E=_.next();!E.done;E=_.next()){var T=E.value;try{Tp(T)}catch(C){i=i??[],C instanceof Ou?i=Ps(Ps([],As(i)),As(C.errors)):i.push(C)}}}catch(C){a={error:C}}finally{try{E&&!E.done&&(s=_.return)&&s.call(_)}finally{if(a)throw a.error}}}if(i)throw new Ou(i)}},e.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)Tp(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(r)}},e.prototype._hasParent=function(r){var t=this._parentage;return t===r||Array.isArray(t)&&t.includes(r)},e.prototype._addParent=function(r){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(r),t):t?[t,r]:r},e.prototype._removeParent=function(r){var t=this._parentage;t===r?this._parentage=null:Array.isArray(t)&&oc(t,r)},e.prototype.remove=function(r){var t=this._finalizers;t&&oc(t,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}(),sg=Vs.EMPTY;function ig(e){return e instanceof Vs||e&&"closed"in e&&Vr(e.remove)&&Vr(e.add)&&Vr(e.unsubscribe)}function Tp(e){Vr(e)?e():e.unsubscribe()}var ug={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},sc={setTimeout:function(e,r){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];var s=sc.delegate;return s!=null&&s.setTimeout?s.setTimeout.apply(s,Ps([e,r],As(t))):setTimeout.apply(void 0,Ps([e,r],As(t)))},clearTimeout:function(e){var r=sc.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function zR(e){sc.setTimeout(function(){throw e})}function Cp(){}function hs(e){e()}var cg=function(e){zs(r,e);function r(t){var a=e.call(this)||this;return a.isStopped=!1,t?(a.destination=t,ig(t)&&t.add(a)):a.destination=ZR,a}return r.create=function(t,a,s){return new ic(t,a,s)},r.prototype.next=function(t){this.isStopped||this._next(t)},r.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(t){this.destination.next(t)},r.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(Vs),VR=Function.prototype.bind;function Au(e,r){return VR.call(e,r)}var KR=function(){function e(r){this.partialObserver=r}return e.prototype.next=function(r){var t=this.partialObserver;if(t.next)try{t.next(r)}catch(a){is(a)}},e.prototype.error=function(r){var t=this.partialObserver;if(t.error)try{t.error(r)}catch(a){is(a)}else is(r)},e.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(t){is(t)}},e}(),ic=function(e){zs(r,e);function r(t,a,s){var i=e.call(this)||this,c;if(Vr(t)||!t)c={next:t??void 0,error:a??void 0,complete:s??void 0};else{var l;i&&ug.useDeprecatedNextContext?(l=Object.create(t),l.unsubscribe=function(){return i.unsubscribe()},c={next:t.next&&Au(t.next,l),error:t.error&&Au(t.error,l),complete:t.complete&&Au(t.complete,l)}):c=t}return i.destination=new KR(c),i}return r}(cg);function is(e){zR(e)}function JR(e){throw e}var ZR={closed:!0,next:Cp,error:JR,complete:Cp},XR=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function QR(e){return e}function eO(e){return e.length===0?QR:e.length===1?e[0]:function(t){return e.reduce(function(a,s){return s(a)},t)}}var xp=function(){function e(r){r&&(this._subscribe=r)}return e.prototype.lift=function(r){var t=new e;return t.source=this,t.operator=r,t},e.prototype.subscribe=function(r,t,a){var s=this,i=rO(r)?r:new ic(r,t,a);return hs(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(r){try{return this._subscribe(r)}catch(t){r.error(t)}},e.prototype.forEach=function(r,t){var a=this;return t=Rp(t),new t(function(s,i){var c=new ic({next:function(l){try{r(l)}catch(d){i(d),c.unsubscribe()}},error:i,complete:s});a.subscribe(c)})},e.prototype._subscribe=function(r){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(r)},e.prototype[XR]=function(){return this},e.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return eO(r)(this)},e.prototype.toPromise=function(r){var t=this;return r=Rp(r),new r(function(a,s){var i;t.subscribe(function(c){return i=c},function(c){return s(c)},function(){return a(i)})})},e.create=function(r){return new e(r)},e}();function Rp(e){var r;return(r=e??ug.Promise)!==null&&r!==void 0?r:Promise}function tO(e){return e&&Vr(e.next)&&Vr(e.error)&&Vr(e.complete)}function rO(e){return e&&e instanceof cg||tO(e)&&ig(e)}var nO=og(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),lg=function(e){zs(r,e);function r(){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 r.prototype.lift=function(t){var a=new Op(this,this);return a.operator=t,a},r.prototype._throwIfClosed=function(){if(this.closed)throw new nO},r.prototype.next=function(t){var a=this;hs(function(){var s,i;if(a._throwIfClosed(),!a.isStopped){a.currentObservers||(a.currentObservers=Array.from(a.observers));try{for(var c=ac(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}}}})},r.prototype.error=function(t){var a=this;hs(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)}})},r.prototype.complete=function(){var t=this;hs(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var a=t.observers;a.length;)a.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},r.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},r.prototype._innerSubscribe=function(t){var a=this,s=this,i=s.hasError,c=s.isStopped,l=s.observers;return i||c?sg:(this.currentObservers=null,l.push(t),new Vs(function(){a.currentObservers=null,oc(l,t)}))},r.prototype._checkFinalizedStatuses=function(t){var a=this,s=a.hasError,i=a.thrownError,c=a.isStopped;s?t.error(i):c&&t.complete()},r.prototype.asObservable=function(){var t=new xp;return t.source=this,t},r.create=function(t,a){return new Op(t,a)},r}(xp),Op=function(e){zs(r,e);function r(t,a){var s=e.call(this)||this;return s.destination=t,s.source=a,s}return r.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)},r.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)},r.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)},r.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:sg},r}(lg);const fg=new lg;var uc={exports:{}},us={exports:{}},je={};/** @license React v16.13.1
|
|
40
41
|
* react-is.production.min.js
|
|
41
42
|
*
|
|
42
43
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
43
44
|
*
|
|
44
45
|
* This source code is licensed under the MIT license found in the
|
|
45
46
|
* LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/var
|
|
47
|
+
*/var Ap;function aO(){if(Ap)return je;Ap=1;var e=typeof Symbol=="function"&&Symbol.for,r=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,m=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function W(O){if(typeof O=="object"&&O!==null){var K=O.$$typeof;switch(K){case r:switch(O=O.type,O){case d:case p:case a:case i:case s:case m:return O;default:switch(O=O&&O.$$typeof,O){case l:case h:case T:case E:case c:return O;default:return K}}case t:return K}}}function j(O){return W(O)===p}return je.AsyncMode=d,je.ConcurrentMode=p,je.ContextConsumer=l,je.ContextProvider=c,je.Element=r,je.ForwardRef=h,je.Fragment=a,je.Lazy=T,je.Memo=E,je.Portal=t,je.Profiler=i,je.StrictMode=s,je.Suspense=m,je.isAsyncMode=function(O){return j(O)||W(O)===d},je.isConcurrentMode=j,je.isContextConsumer=function(O){return W(O)===l},je.isContextProvider=function(O){return W(O)===c},je.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===r},je.isForwardRef=function(O){return W(O)===h},je.isFragment=function(O){return W(O)===a},je.isLazy=function(O){return W(O)===T},je.isMemo=function(O){return W(O)===E},je.isPortal=function(O){return W(O)===t},je.isProfiler=function(O){return W(O)===i},je.isStrictMode=function(O){return W(O)===s},je.isSuspense=function(O){return W(O)===m},je.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===a||O===p||O===i||O===s||O===m||O===_||typeof O=="object"&&O!==null&&(O.$$typeof===T||O.$$typeof===E||O.$$typeof===c||O.$$typeof===l||O.$$typeof===h||O.$$typeof===$||O.$$typeof===D||O.$$typeof===I||O.$$typeof===C)},je.typeOf=W,je}var ke={};/** @license React v16.13.1
|
|
47
48
|
* react-is.development.js
|
|
48
49
|
*
|
|
49
50
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
50
51
|
*
|
|
51
52
|
* This source code is licensed under the MIT license found in the
|
|
52
53
|
* LICENSE file in the root directory of this source tree.
|
|
53
|
-
*/var
|
|
54
|
+
*/var Pp;function oO(){return Pp||(Pp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=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,m=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function W(N){return typeof N=="string"||typeof N=="function"||N===a||N===p||N===i||N===s||N===m||N===_||typeof N=="object"&&N!==null&&(N.$$typeof===T||N.$$typeof===E||N.$$typeof===c||N.$$typeof===l||N.$$typeof===h||N.$$typeof===$||N.$$typeof===D||N.$$typeof===I||N.$$typeof===C)}function j(N){if(typeof N=="object"&&N!==null){var Je=N.$$typeof;switch(Je){case r:var Ge=N.type;switch(Ge){case d:case p:case a:case i:case s:case m:return Ge;default:var ut=Ge&&Ge.$$typeof;switch(ut){case l:case h:case T:case E:case c:return ut;default:return Je}}case t:return Je}}}var O=d,K=p,Y=l,Q=c,ae=r,Ie=h,Ce=a,Xe=T,z=E,Pe=t,Qe=i,et=s,Ue=m,rt=!1;function Dt(N){return rt||(rt=!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===r}function le(N){return j(N)===h}function ye(N){return j(N)===a}function ie(N){return j(N)===T}function fe(N){return j(N)===E}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)===m}ke.AsyncMode=O,ke.ConcurrentMode=K,ke.ContextConsumer=Y,ke.ContextProvider=Q,ke.Element=ae,ke.ForwardRef=Ie,ke.Fragment=Ce,ke.Lazy=Xe,ke.Memo=z,ke.Portal=Pe,ke.Profiler=Qe,ke.StrictMode=et,ke.Suspense=Ue,ke.isAsyncMode=Dt,ke.isConcurrentMode=H,ke.isContextConsumer=V,ke.isContextProvider=ve,ke.isElement=he,ke.isForwardRef=le,ke.isFragment=ye,ke.isLazy=ie,ke.isMemo=fe,ke.isPortal=ue,ke.isProfiler=me,ke.isStrictMode=ge,ke.isSuspense=J,ke.isValidElementType=W,ke.typeOf=j}()),ke}var Dp;function dg(){return Dp||(Dp=1,process.env.NODE_ENV==="production"?us.exports=aO():us.exports=oO()),us.exports}/*
|
|
54
55
|
object-assign
|
|
55
56
|
(c) Sindre Sorhus
|
|
56
57
|
@license MIT
|
|
57
|
-
*/var
|
|
58
|
-
Valid keys: `+JSON.stringify(Object.keys(H),null," "));var N=J(fe,ge,le,ye,
|
|
58
|
+
*/var Pu,Ip;function sO(){if(Ip)return Pu;Ip=1;var e=Object.getOwnPropertySymbols,r=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 Pu=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 m in l)r.call(l,m)&&(d[m]=l[m]);if(e){p=e(l);for(var _=0;_<p.length;_++)t.call(l,p[_])&&(d[p[_]]=l[p[_]])}}return d},Pu}var Du,Fp;function Lc(){if(Fp)return Du;Fp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Du=e,Du}var Iu,$p;function pg(){return $p||($p=1,Iu=Function.call.bind(Object.prototype.hasOwnProperty)),Iu}var Fu,Mp;function iO(){if(Mp)return Fu;Mp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=Lc(),t={},a=pg();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 m;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",_}m=i[h](c,h,d,l,null,r)}catch(T){m=T}if(m&&!(m 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 m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in t)){t[m.message]=!0;var E=p?p():"";e("Failed "+l+" type: "+m.message+(E??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},Fu=s,Fu}var $u,Np;function uO(){if(Np)return $u;Np=1;var e=dg(),r=sO(),t=Lc(),a=pg(),s=iO(),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 $u=function(l,d){var p=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(H){var V=H&&(p&&H[p]||H[h]);if(typeof V=="function")return V}var _="<<anonymous>>",E={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:I(),arrayOf:W,element:j(),elementType:O(),instanceOf:K,node:Ie(),objectOf:Q,oneOf:Y,oneOfType:ae,shape:Xe,exact:z};function T(H,V){return H===V?H!==0||1/H===1/V:H!==H&&V!==V}function C(H,V){this.message=H,this.data=V&&typeof V=="object"?V:{},this.stack=""}C.prototype=Error.prototype;function $(H){if(process.env.NODE_ENV!=="production")var V={},ve=0;function he(ye,ie,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 Je=ue+":"+fe;!V[Je]&&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[Je]=!0,ve++)}}return ie[fe]==null?ye?ie[fe]===null?new C("The "+me+" `"+ge+"` is marked as required "+("in `"+ue+"`, but its value is `null`.")):new C("The "+me+" `"+ge+"` is marked as required in "+("`"+ue+"`, but its value is `undefined`.")):null:H(ie,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,ie,fe){var ue=ve[he],me=et(ue);if(me!==H){var ge=Ue(ue);return new C("Invalid "+ye+" `"+ie+"` of type "+("`"+ge+"` supplied to `"+le+"`, expected ")+("`"+H+"`."),{expectedType:H})}return null}return $(V)}function I(){return $(c)}function W(H){function V(ve,he,le,ye,ie){if(typeof H!="function")return new C("Property `"+ie+"` of component `"+le+"` has invalid PropType notation inside arrayOf.");var fe=ve[he];if(!Array.isArray(fe)){var ue=et(fe);return new C("Invalid "+ye+" `"+ie+"` of type "+("`"+ue+"` supplied to `"+le+"`, expected an array."))}for(var me=0;me<fe.length;me++){var ge=H(fe,me,le,ye,ie+"["+me+"]",t);if(ge instanceof Error)return ge}return null}return $(V)}function j(){function H(V,ve,he,le,ye){var ie=V[ve];if(!l(ie)){var fe=et(ie);return new C("Invalid "+le+" `"+ye+"` of type "+("`"+fe+"` supplied to `"+he+"`, expected a single ReactElement."))}return null}return $(H)}function O(){function H(V,ve,he,le,ye){var ie=V[ve];if(!e.isValidElementType(ie)){var fe=et(ie);return new C("Invalid "+le+" `"+ye+"` of type "+("`"+fe+"` supplied to `"+he+"`, expected a single ReactElement type."))}return null}return $(H)}function K(H){function V(ve,he,le,ye,ie){if(!(ve[he]instanceof H)){var fe=H.name||_,ue=Dt(ve[he]);return new C("Invalid "+ye+" `"+ie+"` of type "+("`"+ue+"` supplied to `"+le+"`, expected ")+("instance of `"+fe+"`."))}return null}return $(V)}function Y(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,ie){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 Je=Ue(N);return Je==="symbol"?String(N):N});return new C("Invalid "+ye+" `"+ie+"` of value `"+String(fe)+"` "+("supplied to `"+le+"`, expected one of "+me+"."))}return $(V)}function Q(H){function V(ve,he,le,ye,ie){if(typeof H!="function")return new C("Property `"+ie+"` of component `"+le+"` has invalid PropType notation inside objectOf.");var fe=ve[he],ue=et(fe);if(ue!=="object")return new C("Invalid "+ye+" `"+ie+"` 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,ie+"."+me,t);if(ge instanceof Error)return ge}return null}return $(V)}function ae(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 "+rt(ve)+" at index "+V+"."),c}function he(le,ye,ie,fe,ue){for(var me=[],ge=0;ge<H.length;ge++){var J=H[ge],N=J(le,ye,ie,fe,ue,t);if(N==null)return null;N.data&&a(N.data,"expectedType")&&me.push(N.data.expectedType)}var Je=me.length>0?", expected one of type ["+me.join(", ")+"]":"";return new C("Invalid "+fe+" `"+ue+"` supplied to "+("`"+ie+"`"+Je+"."))}return $(he)}function Ie(){function H(V,ve,he,le,ye){return Pe(V[ve])?null:new C("Invalid "+le+" `"+ye+"` supplied to "+("`"+he+"`, expected a ReactNode."))}return $(H)}function Ce(H,V,ve,he,le){return new C((H||"React class")+": "+V+" type `"+ve+"."+he+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+le+"`.")}function Xe(H){function V(ve,he,le,ye,ie){var fe=ve[he],ue=et(fe);if(ue!=="object")return new C("Invalid "+ye+" `"+ie+"` of type `"+ue+"` "+("supplied to `"+le+"`, expected `object`."));for(var me in H){var ge=H[me];if(typeof ge!="function")return Ce(le,ye,ie,me,Ue(ge));var J=ge(fe,me,le,ye,ie+"."+me,t);if(J)return J}return null}return $(V)}function z(H){function V(ve,he,le,ye,ie){var fe=ve[he],ue=et(fe);if(ue!=="object")return new C("Invalid "+ye+" `"+ie+"` of type `"+ue+"` "+("supplied to `"+le+"`, expected `object`."));var me=r({},ve[he],H);for(var ge in me){var J=H[ge];if(a(H,ge)&&typeof J!="function")return Ce(le,ye,ie,ge,Ue(J));if(!J)return new C("Invalid "+ye+" `"+ie+"` key `"+ge+"` supplied to `"+le+"`.\nBad object: "+JSON.stringify(ve[he],null," ")+`
|
|
59
|
+
Valid keys: `+JSON.stringify(Object.keys(H),null," "));var N=J(fe,ge,le,ye,ie+"."+ge,t);if(N)return N}return null}return $(V)}function Pe(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(Pe);if(H===null||l(H))return!0;var V=m(H);if(V){var ve=V.call(H),he;if(V!==H.entries){for(;!(he=ve.next()).done;)if(!Pe(he.value))return!1}else for(;!(he=ve.next()).done;){var le=he.value;if(le&&!Pe(le[1]))return!1}}else return!1;return!0;default:return!1}}function Qe(H,V){return H==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function et(H){var V=typeof H;return Array.isArray(H)?"array":H instanceof RegExp?"object":Qe(V,H)?"symbol":V}function Ue(H){if(typeof H>"u"||H===null)return""+H;var V=et(H);if(V==="object"){if(H instanceof Date)return"date";if(H instanceof RegExp)return"regexp"}return V}function rt(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 E.checkPropTypes=s,E.resetWarningCache=s.resetWarningCache,E.PropTypes=E,E},$u}var Mu,Lp;function cO(){if(Lp)return Mu;Lp=1;var e=Lc();function r(){}function t(){}return t.resetWarningCache=r,Mu=function(){function a(c,l,d,p,h,m){if(m!==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:r};return i.PropTypes=i,i},Mu}if(process.env.NODE_ENV!=="production"){var lO=dg(),fO=!0;uc.exports=uO()(lO.isElement,fO)}else uc.exports=cO()();var dO=uc.exports;const da=js(dO);var Xr=dt.createContext(null);process.env.NODE_ENV!=="production"&&(Xr.displayName="ReactRedux");function pO(e){e()}var hg=pO,hO=function(r){return hg=r},gO=function(){return hg};function vO(){var e=gO(),r=null,t=null;return{clear:function(){r=null,t=null},notify:function(){e(function(){for(var s=r;s;)s.callback(),s=s.next})},get:function(){for(var s=[],i=r;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:r=c,function(){!i||r===null||(i=!1,c.next?c.next.prev=c.prev:t=c.prev,c.prev?c.prev.next=c.next:r=c.next)}}}}var jp={notify:function(){},get:function(){return[]}};function gg(e,r){var t,a=jp;function s(m){return d(),a.subscribe(m)}function i(){a.notify()}function c(){h.onStateChange&&h.onStateChange()}function l(){return!!t}function d(){t||(t=r?r.addNestedSub(c):e.subscribe(c),a=vO())}function p(){t&&(t(),t=void 0,a.clear(),a=jp)}var h={addNestedSub:s,notifyNestedSubs:i,handleChangeWrapper:c,isSubscribed:l,trySubscribe:d,tryUnsubscribe:p,getListeners:function(){return a}};return h}var cc=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?dt.useLayoutEffect:dt.useEffect;function vg(e){var r=e.store,t=e.context,a=e.children,s=dt.useMemo(function(){var l=gg(r);return{store:r,subscription:l}},[r]),i=dt.useMemo(function(){return r.getState()},[r]);cc(function(){var l=s.subscription;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),i!==r.getState()&&l.notifyNestedSubs(),function(){l.tryUnsubscribe(),l.onStateChange=null}},[s,i]);var c=t||Xr;return dt.createElement(c.Provider,{value:s},a)}process.env.NODE_ENV!=="production"&&(vg.propTypes={store:da.shape({subscribe:da.func.isRequired,dispatch:da.func.isRequired,getState:da.func.isRequired}),context:da.object,children:da.any});var lc={exports:{}},Be={};/** @license React v16.13.1
|
|
59
60
|
* react-is.production.min.js
|
|
60
61
|
*
|
|
61
62
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
62
63
|
*
|
|
63
64
|
* This source code is licensed under the MIT license found in the
|
|
64
65
|
* LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/var
|
|
66
|
+
*/var kp;function yO(){if(kp)return Be;kp=1;var e=typeof Symbol=="function"&&Symbol.for,r=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,m=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function W(O){if(typeof O=="object"&&O!==null){var K=O.$$typeof;switch(K){case r:switch(O=O.type,O){case d:case p:case a:case i:case s:case m:return O;default:switch(O=O&&O.$$typeof,O){case l:case h:case T:case E:case c:return O;default:return K}}case t:return K}}}function j(O){return W(O)===p}return Be.AsyncMode=d,Be.ConcurrentMode=p,Be.ContextConsumer=l,Be.ContextProvider=c,Be.Element=r,Be.ForwardRef=h,Be.Fragment=a,Be.Lazy=T,Be.Memo=E,Be.Portal=t,Be.Profiler=i,Be.StrictMode=s,Be.Suspense=m,Be.isAsyncMode=function(O){return j(O)||W(O)===d},Be.isConcurrentMode=j,Be.isContextConsumer=function(O){return W(O)===l},Be.isContextProvider=function(O){return W(O)===c},Be.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===r},Be.isForwardRef=function(O){return W(O)===h},Be.isFragment=function(O){return W(O)===a},Be.isLazy=function(O){return W(O)===T},Be.isMemo=function(O){return W(O)===E},Be.isPortal=function(O){return W(O)===t},Be.isProfiler=function(O){return W(O)===i},Be.isStrictMode=function(O){return W(O)===s},Be.isSuspense=function(O){return W(O)===m},Be.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===a||O===p||O===i||O===s||O===m||O===_||typeof O=="object"&&O!==null&&(O.$$typeof===T||O.$$typeof===E||O.$$typeof===c||O.$$typeof===l||O.$$typeof===h||O.$$typeof===$||O.$$typeof===D||O.$$typeof===I||O.$$typeof===C)},Be.typeOf=W,Be}var We={};/** @license React v16.13.1
|
|
66
67
|
* react-is.development.js
|
|
67
68
|
*
|
|
68
69
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
69
70
|
*
|
|
70
71
|
* This source code is licensed under the MIT license found in the
|
|
71
72
|
* LICENSE file in the root directory of this source tree.
|
|
72
|
-
*/var
|
|
73
|
+
*/var Bp;function mO(){return Bp||(Bp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=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,m=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function W(N){return typeof N=="string"||typeof N=="function"||N===a||N===p||N===i||N===s||N===m||N===_||typeof N=="object"&&N!==null&&(N.$$typeof===T||N.$$typeof===E||N.$$typeof===c||N.$$typeof===l||N.$$typeof===h||N.$$typeof===$||N.$$typeof===D||N.$$typeof===I||N.$$typeof===C)}function j(N){if(typeof N=="object"&&N!==null){var Je=N.$$typeof;switch(Je){case r:var Ge=N.type;switch(Ge){case d:case p:case a:case i:case s:case m:return Ge;default:var ut=Ge&&Ge.$$typeof;switch(ut){case l:case h:case T:case E:case c:return ut;default:return Je}}case t:return Je}}}var O=d,K=p,Y=l,Q=c,ae=r,Ie=h,Ce=a,Xe=T,z=E,Pe=t,Qe=i,et=s,Ue=m,rt=!1;function Dt(N){return rt||(rt=!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===r}function le(N){return j(N)===h}function ye(N){return j(N)===a}function ie(N){return j(N)===T}function fe(N){return j(N)===E}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)===m}We.AsyncMode=O,We.ConcurrentMode=K,We.ContextConsumer=Y,We.ContextProvider=Q,We.Element=ae,We.ForwardRef=Ie,We.Fragment=Ce,We.Lazy=Xe,We.Memo=z,We.Portal=Pe,We.Profiler=Qe,We.StrictMode=et,We.Suspense=Ue,We.isAsyncMode=Dt,We.isConcurrentMode=H,We.isContextConsumer=V,We.isContextProvider=ve,We.isElement=he,We.isForwardRef=le,We.isFragment=ye,We.isLazy=ie,We.isMemo=fe,We.isPortal=ue,We.isProfiler=me,We.isStrictMode=ge,We.isSuspense=J,We.isValidElementType=W,We.typeOf=j}()),We}process.env.NODE_ENV==="production"?lc.exports=yO():lc.exports=mO();var bO=lc.exports,yg=bO,_O={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},SO={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},mg={};mg[yg.ForwardRef]=_O;mg[yg.Memo]=SO;var qe={};/** @license React v17.0.2
|
|
73
74
|
* react-is.production.min.js
|
|
74
75
|
*
|
|
75
76
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
76
77
|
*
|
|
77
78
|
* This source code is licensed under the MIT license found in the
|
|
78
79
|
* LICENSE file in the root directory of this source tree.
|
|
79
|
-
*/var
|
|
80
|
+
*/var Wp;function EO(){if(Wp)return qe;Wp=1;var e=60103,r=60106,t=60107,a=60108,s=60114,i=60109,c=60110,l=60112,d=60113,p=60120,h=60115,m=60116,_=60121,E=60122,T=60117,C=60129,$=60131;if(typeof Symbol=="function"&&Symbol.for){var D=Symbol.for;e=D("react.element"),r=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"),m=D("react.lazy"),_=D("react.block"),E=D("react.server.block"),T=D("react.fundamental"),C=D("react.debug_trace_mode"),$=D("react.legacy_hidden")}function I(z){if(typeof z=="object"&&z!==null){var Pe=z.$$typeof;switch(Pe){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 m:case h:case i:return z;default:return Pe}}case r:return Pe}}}var W=i,j=e,O=l,K=t,Y=m,Q=h,ae=r,Ie=s,Ce=a,Xe=d;return qe.ContextConsumer=c,qe.ContextProvider=W,qe.Element=j,qe.ForwardRef=O,qe.Fragment=K,qe.Lazy=Y,qe.Memo=Q,qe.Portal=ae,qe.Profiler=Ie,qe.StrictMode=Ce,qe.Suspense=Xe,qe.isAsyncMode=function(){return!1},qe.isConcurrentMode=function(){return!1},qe.isContextConsumer=function(z){return I(z)===c},qe.isContextProvider=function(z){return I(z)===i},qe.isElement=function(z){return typeof z=="object"&&z!==null&&z.$$typeof===e},qe.isForwardRef=function(z){return I(z)===l},qe.isFragment=function(z){return I(z)===t},qe.isLazy=function(z){return I(z)===m},qe.isMemo=function(z){return I(z)===h},qe.isPortal=function(z){return I(z)===r},qe.isProfiler=function(z){return I(z)===s},qe.isStrictMode=function(z){return I(z)===a},qe.isSuspense=function(z){return I(z)===d},qe.isValidElementType=function(z){return typeof z=="string"||typeof z=="function"||z===t||z===s||z===C||z===a||z===d||z===p||z===$||typeof z=="object"&&z!==null&&(z.$$typeof===m||z.$$typeof===h||z.$$typeof===i||z.$$typeof===c||z.$$typeof===l||z.$$typeof===T||z.$$typeof===_||z[0]===E)},qe.typeOf=I,qe}var Ye={};/** @license React v17.0.2
|
|
80
81
|
* react-is.development.js
|
|
81
82
|
*
|
|
82
83
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
83
84
|
*
|
|
84
85
|
* This source code is licensed under the MIT license found in the
|
|
85
86
|
* LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/var
|
|
87
|
+
*/var Up;function wO(){return Up||(Up=1,process.env.NODE_ENV!=="production"&&function(){var e=60103,r=60106,t=60107,a=60108,s=60114,i=60109,c=60110,l=60112,d=60113,p=60120,h=60115,m=60116,_=60121,E=60122,T=60117,C=60129,$=60131;if(typeof Symbol=="function"&&Symbol.for){var D=Symbol.for;e=D("react.element"),r=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"),m=D("react.lazy"),_=D("react.block"),E=D("react.server.block"),T=D("react.fundamental"),D("react.scope"),D("react.opaque.id"),C=D("react.debug_trace_mode"),D("react.offscreen"),$=D("react.legacy_hidden")}var I=!1;function W(J){return!!(typeof J=="string"||typeof J=="function"||J===t||J===s||J===C||J===a||J===d||J===p||J===$||I||typeof J=="object"&&J!==null&&(J.$$typeof===m||J.$$typeof===h||J.$$typeof===i||J.$$typeof===c||J.$$typeof===l||J.$$typeof===T||J.$$typeof===_||J[0]===E))}function j(J){if(typeof J=="object"&&J!==null){var N=J.$$typeof;switch(N){case e:var Je=J.type;switch(Je){case t:case s:case a:case d:case p:return Je;default:var Ge=Je&&Je.$$typeof;switch(Ge){case c:case l:case m:case h:case i:return Ge;default:return N}}case r:return N}}}var O=c,K=i,Y=e,Q=l,ae=t,Ie=m,Ce=h,Xe=r,z=s,Pe=a,Qe=d,et=!1,Ue=!1;function rt(J){return et||(et=!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)===m}function ie(J){return j(J)===h}function fe(J){return j(J)===r}function ue(J){return j(J)===s}function me(J){return j(J)===a}function ge(J){return j(J)===d}Ye.ContextConsumer=O,Ye.ContextProvider=K,Ye.Element=Y,Ye.ForwardRef=Q,Ye.Fragment=ae,Ye.Lazy=Ie,Ye.Memo=Ce,Ye.Portal=Xe,Ye.Profiler=z,Ye.StrictMode=Pe,Ye.Suspense=Qe,Ye.isAsyncMode=rt,Ye.isConcurrentMode=Dt,Ye.isContextConsumer=H,Ye.isContextProvider=V,Ye.isElement=ve,Ye.isForwardRef=he,Ye.isFragment=le,Ye.isLazy=ye,Ye.isMemo=ie,Ye.isPortal=fe,Ye.isProfiler=ue,Ye.isStrictMode=me,Ye.isSuspense=ge,Ye.isValidElementType=W,Ye.typeOf=j}()),Ye}process.env.NODE_ENV==="production"?EO():wO();function Hp(e,r){return e===r?e!==0||r!==0||1/e===1/r:e!==e&&r!==r}function bg(e,r){if(Hp(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;var t=Object.keys(e),a=Object.keys(r);if(t.length!==a.length)return!1;for(var s=0;s<t.length;s++)if(!Object.prototype.hasOwnProperty.call(r,t[s])||!Hp(e[t[s]],r[t[s]]))return!1;return!0}function _g(){var e=dt.useContext(Xr);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 Sg(e){e===void 0&&(e=Xr);var r=e===Xr?_g:function(){return dt.useContext(e)};return function(){var a=r(),s=a.store;return s}}var TO=Sg();function CO(e){e===void 0&&(e=Xr);var r=e===Xr?TO:Sg(e);return function(){var a=r();return a.dispatch}}var xO=CO(),RO=function(r,t){return r===t};function OO(e,r,t,a){var s=dt.useReducer(function(T){return T+1},0),i=s[1],c=dt.useMemo(function(){return gg(t,a)},[t,a]),l=dt.useRef(),d=dt.useRef(),p=dt.useRef(),h=dt.useRef(),m=t.getState(),_;try{if(e!==d.current||m!==p.current||l.current){var E=e(m);h.current===void 0||!r(E,h.current)?_=E:_=h.current}else _=h.current}catch(T){throw l.current&&(T.message+=`
|
|
87
88
|
The error may be correlated with this previous error:
|
|
88
89
|
`+l.current.stack+`
|
|
89
90
|
|
|
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 _O(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=mO),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=bO(a,s,c,l);return dt.useDebugValue(d),d}}var EO=_O();oO(KE.unstable_batchedUpdates);const SO=()=>yO(),Xr=EO,$c=z(e=>e,e=>e.catalog.state==="loaded"?e.catalog.model:null),wO=z(e=>e,({catalog:e})=>e.state),fg=z($c,e=>e?e.dataClasses:[]),TO=z(fg,e=>Object.values(e).filter(({virtual:n})=>n)),CO=z($c,e=>e?e.methods:[]),dg=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[]}}),xO=e=>Xr(dg(e),ug),RO=(e,n)=>z(dg(e),t=>t.find(a=>`${a.applyTo}.${a.name}`===n)),OO=(e,n,t)=>Xr(RO(e,`${t}.${n}`),ug),pg=z(e=>e,e=>e),AO=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]}))}),hg=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)||[]}),PO=(e,n,t)=>z(pg,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}}),gg=z(e=>e,e=>{var n;return((n=e.sharedDatasources)==null?void 0:n.sources)||[]}),DO=(e,n,t,a)=>z(hg(e),gg,(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}),IO=z(e=>e.debugger,e=>e.meta),Bn=z(e=>e.debugger,e=>e.list),jt=z(e=>e.debugger,e=>e.sessions),FO=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),vg=(e,n)=>e.find(t=>t.tabPath===n),$O=(e,n)=>z(Bn,t=>{var a;return((a=jn(t,e,n))==null?void 0:a.breakpoints.saved.locations)||[]}),MO=(e,n)=>z(Bn,t=>{var a;return((a=jn(t,e,n))==null?void 0:a.breakpoints.draft.locations)||[]}),NO=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)),LO=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)),jO=e=>z(jt,n=>{const t=ft(n,e);return t!=null&&t.stopped?t.highlightedLines:null}),kO=e=>z(jt,n=>{const t=ft(n,e);return t!=null&&t.stopped?t.activeLine:null}),BO=e=>z(jt,n=>{var t;return((t=ft(n,e))==null?void 0:t.expressions)||[]}),WO=e=>z(jt,n=>{var t;return((t=ft(n,e))==null?void 0:t.stopped)||!1}),UO=(e,n)=>z(Bn,t=>{var a;return(a=jn(t,e,n))==null?void 0:a.source}),HO=e=>z(jt,n=>{var t;return((t=vg(n,e))==null?void 0:t.threadId)||-1}),GO=e=>z(jt,n=>{var t,a;return(a=(t=ft(n,e))==null?void 0:t.currentStackFrame)==null?void 0:a.source}),qO=e=>z(jt,n=>{var t;return(t=ft(n,e))==null?void 0:t.currentStackFrame}),YO=z(jt,e=>e.map(({channelId:n,threadId:t})=>({id:n,threadId:t}))),zO=e=>z(jt,n=>{var t;return((t=ft(n,e))==null?void 0:t.stackFrames)||[]}),VO=e=>z(jt,n=>{var t,a;return((a=(t=ft(n,e))==null?void 0:t.variables)==null?void 0:a.callchain)||[]}),KO=e=>z(jt,n=>{var t,a;return((a=(t=ft(n,e))==null?void 0:t.variables)==null?void 0:a.expressions)||[]}),JO=(e,n="saved")=>z(Bn,t=>{const a=t.find(s=>s.filePath===e);return(a==null?void 0:a.breakpoints[n].offset)||0}),XO=(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),ZO=z(Zr,e=>e.activeTab),QO=z(Zr,e=>e.recent.filter(({type:n})=>n!==E.FileFolderType.DEBUGGER)),eA=z(Zr,({tabs:e,activeTab:n})=>e.find(({path:t})=>t===n)),tA=z(Zr,({tabs:e})=>e.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null)),rA=z(ba,e=>e.filter(({type:n,flags:t})=>n===E.FileFolderType.WEBFORM&&t.enabled===!1).map(({path:n})=>n)),nA=z(ba,e=>e.length>0),io=e=>z(Zr,n=>n.tabs.find(({path:t})=>t===e)),yg=(e,n="")=>z(io(e),t=>!t||!t.content||typeof t.content=="string"?t==null?void 0:t.content:Ke.get(t.content,n)),aA=e=>z(io(e),n=>n==null?void 0:n.extra),oA=(e,n=t=>t)=>z(yg(e,"components"),t=>n(t||{})),Mc=z(ba,e=>e.filter(n=>n.flags.touched)),sA=z(Mc,e=>e.length),iA=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}}))),uA=z(e=>e,e=>e.explorer||[]),mg=z(e=>e,e=>e.explorer.find(n=>n.path===E.FolderRootPath.WEBFORMS)),bg=z(e=>e,e=>e.explorer.find(n=>n.path===E.FolderRootPath.METHODS)),_g=z(e=>e,e=>e.explorer.find(n=>n.path===E.FolderRootPath.CLASSES)),cA=z(bg,e=>(e==null?void 0:e.children)||[]),lA=z(mg,e=>(e==null?void 0:e.children)||[]),fA=z(_g,e=>(e==null?void 0:e.children)||[]),dA=z(e=>e.modals,e=>e.list),pA=z(e=>e.roles,e=>Ks(e)),hA=z(e=>e.roles,({roles:e})=>e),gA=z(e=>e.roles,({privileges:e})=>e),vA=z(e=>e.roles,({privileges:e})=>Object.values(e).find(({privilege:n})=>n==="guest")),yA=z(e=>e.roles,({flags:e})=>e),mA=z(e=>e.roles,({selectedTab:e})=>e),bA=z(e=>e.roles,({forceLogin:e})=>e),_A=z(e=>e.roles,({date:e})=>e),Nc=z(e=>e.settings,e=>e.session),EA=(...e)=>z(Nc,n=>e.length>0?Ke.pick(n,e):n),SA=z(e=>e.settings,e=>e.project),wA=z(e=>e.settings,e=>e),Lc=z(e=>e.settings,e=>e.server),TA=z(Lc,e=>e.remoteDebuggerMode),CA=z(Lc,e=>e.qodly),xA=z(Nc,e=>e["monaco.zoom"]),Eg=["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"],Sg=Eg.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)||[]}),RA=(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 Sg;default:return[]}}).flat()),OA=e=>z(jc(e),n=>[...n.map(t=>({...t,scope:E.EWebFormStyleClassScope.LOCAL})),...Sg]),AA=z(e=>e,e=>{var n;return[...(((n=e.sharedCSS)==null?void 0:n.styles)||[]).map(t=>({...t,scope:E.EWebFormStyleClassScope.SHARED}))]}),PA=e=>z(io(e),n=>n==null?void 0:n.flags),uo=z(e=>e.webforms,e=>e),wg=z(uo,e=>(e==null?void 0:e.components)||[]),Hs=z(uo,e=>e.inspector),DA=z(Hs,e=>e.css),IA=z(Hs,e=>e.datasource),Tg=z(uo,e=>e.templates||{data:[]}),FA=z(Tg,e=>e.data||[]),$A=e=>z(wg,n=>n.find(t=>t.id===e)),MA=e=>z(Hs,n=>n[e]),NA=z(uo,e=>e.datasources.theme),LA=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,jA=new Uint8Array(16);function Cg(){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(jA)}const kA=/^(?:[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"&&kA.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 BA(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||Cg)();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 xg(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 WA(e){e=unescape(encodeURIComponent(e));for(var n=[],t=0;t<e.length;++t)n.push(e.charCodeAt(t));return n}var UA="6ba7b810-9dad-11d1-80b4-00c04fd430c8",HA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Rg(e,n,t){function a(s,i,c,l){if(typeof s=="string"&&(s=WA(s)),typeof i=="string"&&(i=xg(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=UA,a.URL=HA,a}function GA(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 qA(YA(zA(e),e.length*8))}function qA(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 Og(e){return(e+64>>>9<<4)+14+1}function YA(e,n){e[n>>5]|=128<<n%32,e[Og(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 zA(e){if(e.length===0)return[];for(var n=e.length*8,t=new Uint32Array(Og(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 VA(e,n){return e<<n|e>>>32-n}function Ys(e,n,t,a,s,i){return dn(VA(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 KA=Rg("v3",48,GA);const JA=KA;function XA(e,n,t){e=e||{};var a=e.random||(e.rng||Cg)();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 ZA(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 QA(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)+ZA(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 eP=Rg("v5",80,QA);const tP=eP,rP="00000000-0000-0000-0000-000000000000";function nP(e){if(!Gs(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const aP=Object.freeze(Object.defineProperty({__proto__:null,NIL:rP,parse:xg,stringify:qs,v1:BA,v3:JA,v4:XA,v5:tP,validate:Gs,version:nP},Symbol.toStringTag,{value:"Module"})),oP=ew(aP);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 sP=Wc,iP=sP;function co(e,n){var t=new iP(e,n);return function(a){return t.convert(a)}}co.BIN="01";co.OCT="01234567";co.DEC="0123456789";co.HEX="0123456789abcdef";var uP=co;const{v4:Nu}=oP,ns=uP,Lu="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",cP="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",lP={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)},fP=(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("-")},dP=e=>Math.ceil(Math.log(2**128)/Math.log(e));var Cs=(()=>{const e=(n,t)=>{const a=n||Lu,s={...lP,...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=dP(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=>fP(b,d),alphabet:a,maxLength:i};return Object.freeze(h),h};return e.constants={flickrBase58:Lu,cookieBase90:cP},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 pP=[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 Ag(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=Pg(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 Pg(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 hP(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 gP(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 vP(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 yP(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 Dg(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 mP(e,n,t,a,s){let i=Dg(e,s);const c=Object.entries(i).find(([,l])=>l.privilege===e);return c?(i=Mg(c[1].id,n,t,a,i),i):s}function bP(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 _P(e,n){return e.map(t=>Qr(t,n))}function Qr(e,n){return n[e]?n[e]:null}function Ig({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 Fg(e,n){const t=$g(n),a={};return e.filter(({type:s})=>pP.includes(s)).forEach(s=>{const i=Ig(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 $g(e){return Object.values(e).reduce((n,t)=>({...n,[t.privilege]:t}),{})}function Vs(e){var t;const n=Ag(e.privileges||[]);return{forceLogin:e==null?void 0:e.forceLogin,privileges:Fg(((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 EP(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 SP(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 wP(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 TP(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 Mg(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 CP(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 xP(e,n){var d;const t=Ng(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 Ng(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 RP=e=>e.reduce((n,t)=>({...n,[t.id]:{...t}}),{}),OP=(e,n)=>n[e]?Object.values(n).reduce((t,a)=>e===a.id||a.role===""?t:{...t,[a.id]:a},{}):n,AP=(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,PP=(e,n)=>{const t={id:e,role:"",privileges:[]};return{...n,[t.id]:t}},DP=(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},{})},IP={list:[]},jp=(e,n)=>e.list.filter(t=>t.id!==n),Lg=lr({name:"modals",initialState:IP,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:jg,removeModal:kg,closeModal:FP,editModal:$P}=Lg.actions;var uc={exports:{}},oa={};/*
|
|
91
|
-
|
|
92
|
-
(c) Sindre Sorhus
|
|
93
|
-
@license MIT
|
|
94
|
-
*/var ku,kp;function Bg(){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
|
|
91
|
+
`),T}return cc(function(){d.current=e,p.current=m,h.current=_,l.current=void 0}),cc(function(){function T(){try{var C=t.getState();if(C===p.current)return;var $=d.current(C);if(r($,h.current))return;h.current=$,p.current=C}catch(D){l.current=D}i()}return c.onStateChange=T,c.trySubscribe(),T(),function(){return c.tryUnsubscribe()}},[t,c]),_}function AO(e){e===void 0&&(e=Xr);var r=e===Xr?_g:function(){return dt.useContext(e)};return function(a,s){if(s===void 0&&(s=RO),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=r(),c=i.store,l=i.subscription,d=OO(a,s,c,l);return dt.useDebugValue(d),d}}var PO=AO();hO(tE.unstable_batchedUpdates);const DO=()=>xO(),Qr=PO,jc=q(e=>e,e=>e.catalog.state==="loaded"?e.catalog.model:null),IO=q(e=>e,({catalog:e})=>e.state),Eg=q(jc,e=>e?e.dataClasses:[]),FO=q(Eg,e=>Object.values(e).filter(({virtual:r})=>r)),$O=q(jc,e=>e?e.methods:[]),wg=e=>q(r=>r,r=>{switch(r.catalog.state){case"loaded":const t=e?r.catalog.model.dataClasses[e]:r.catalog.model;return(t==null?void 0:t.methods)||[];default:return[]}}),MO=e=>Qr(wg(e),bg),NO=(e,r)=>q(wg(e),t=>t.find(a=>`${a.applyTo}.${a.name}`===r)),LO=(e,r,t)=>Qr(NO(e,`${t}.${r}`),bg),Tg=q(e=>e,e=>e),jO=e=>q(en,r=>{var s;const t=r.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]}))}),Cg=e=>q(en,r=>{var a,s;const t=r.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)||[]}),kO=(e,r,t)=>q(Tg,a=>{var s,i;if(r){const c=a.sharedDatasources.sources[r];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}}),xg=q(e=>e,e=>{var r;return((r=e.sharedDatasources)==null?void 0:r.sources)||[]}),BO=(e,r,t,a)=>q(Cg(e),xg,(s,i)=>{const c=Ke.flatten(Ke.values(i)),l=[...r!=="private"?s:[],...r!=="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}),WO=q(e=>e.debugger,e=>e.meta),Kn=q(e=>e.debugger,e=>e.list),jt=q(e=>e.debugger,e=>e.sessions),UO=q(jt,e=>e.length),zn=(e,r,t,a)=>e.find(s=>s.filePath===r&&s.methodName===t&&(!a||s.className===a)),ft=(e,r)=>e.find(t=>t.threadId===r),Rg=(e,r)=>e.find(t=>t.tabPath===r),HO=(e,r)=>q(Kn,t=>{var a;return((a=zn(t,e,r))==null?void 0:a.breakpoints.saved.locations)||[]}),GO=(e,r)=>q(Kn,t=>{var a;return((a=zn(t,e,r))==null?void 0:a.breakpoints.draft.locations)||[]}),qO=e=>q(Kn,r=>r.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)),YO=e=>q(Kn,r=>r.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)),zO=e=>q(jt,r=>{const t=ft(r,e);return t!=null&&t.stopped?t.highlightedLines:null}),VO=e=>q(jt,r=>{const t=ft(r,e);return t!=null&&t.stopped?t.activeLine:null}),KO=e=>q(jt,r=>{var t;return((t=ft(r,e))==null?void 0:t.expressions)||[]}),JO=e=>q(jt,r=>{var t;return((t=ft(r,e))==null?void 0:t.stopped)||!1}),ZO=(e,r)=>q(Kn,t=>{var a;return(a=zn(t,e,r))==null?void 0:a.source}),XO=e=>q(jt,r=>{var t;return((t=Rg(r,e))==null?void 0:t.threadId)||-1}),QO=e=>q(jt,r=>{var t,a;return(a=(t=ft(r,e))==null?void 0:t.currentStackFrame)==null?void 0:a.source}),eA=e=>q(jt,r=>{var t;return(t=ft(r,e))==null?void 0:t.currentStackFrame}),tA=q(jt,e=>e.map(({channelId:r,threadId:t})=>({id:r,threadId:t}))),rA=e=>q(jt,r=>{var t;return((t=ft(r,e))==null?void 0:t.stackFrames)||[]}),nA=e=>q(jt,r=>{var t,a;return((a=(t=ft(r,e))==null?void 0:t.variables)==null?void 0:a.callchain)||[]}),aA=e=>q(jt,r=>{var t,a;return((a=(t=ft(r,e))==null?void 0:t.variables)==null?void 0:a.expressions)||[]}),oA=(e,r="saved")=>q(Kn,t=>{const a=t.find(s=>s.filePath===e);return(a==null?void 0:a.breakpoints[r].offset)||0}),sA=(e,r,t,a)=>q(jt,s=>{var p;const i=((p=ft(s,e))==null?void 0:p.exceptions)||[],c=r===S.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}))}),en=q(e=>e.root,e=>e),xa=q(en,e=>e.tabs),iA=q(en,e=>e.activeTab),uA=q(en,e=>e.recent.filter(({type:r})=>r!==S.FileFolderType.DEBUGGER)),cA=q(en,({tabs:e,activeTab:r})=>e.find(({path:t})=>t===r)),lA=q(en,({tabs:e})=>e.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null)),fA=q(xa,e=>e.filter(({type:r,flags:t})=>r===S.FileFolderType.WEBFORM&&t.enabled===!1).map(({path:r})=>r)),dA=q(xa,e=>e.length>0),Ra=e=>q(en,r=>r.tabs.find(({path:t})=>t===e)),Og=(e,r="")=>q(Ra(e),t=>!t||!t.content||typeof t.content=="string"?t==null?void 0:t.content:Ke.get(t.content,r)),pA=e=>q(Ra(e),r=>r==null?void 0:r.extra),hA=(e,r=t=>t)=>q(Og(e,"components"),t=>r(t||{})),kc=q(xa,e=>e.filter(r=>r.flags.touched)),gA=q(kc,e=>e.length),vA=q(jt,e=>e.map(({threadId:r,currentStackFrame:{source:t},tabPath:a})=>({name:Uh(r,t),path:a,type:S.FileFolderType.DEBUGGER,content:t==null?void 0:t.content,flags:{},extra:{source:t}}))),yA=q(e=>e,e=>e.explorer||[]),Ag=q(e=>e,e=>e.explorer.find(r=>r.path===S.FolderRootPath.WEBFORMS)),Pg=q(e=>e,e=>e.explorer.find(r=>r.path===S.FolderRootPath.METHODS)),Dg=q(e=>e,e=>e.explorer.find(r=>r.path===S.FolderRootPath.CLASSES)),mA=q(Pg,e=>(e==null?void 0:e.children)||[]),bA=q(Ag,e=>(e==null?void 0:e.children)||[]),_A=q(Dg,e=>(e==null?void 0:e.children)||[]),SA=q(e=>e.modals,e=>e.list),EA=q(e=>e.roles,e=>ti(e)),wA=q(e=>e.roles,({roles:e})=>e),TA=q(e=>e.roles,({privileges:e})=>e),CA=q(e=>e.roles,({privileges:e})=>Object.values(e).find(({privilege:r})=>r==="guest")),xA=q(e=>e.roles,({flags:e})=>e),RA=q(e=>e.roles,({selectedTab:e})=>e),OA=q(e=>e.roles,({forceLogin:e})=>e),AA=q(e=>e.roles,({date:e})=>e),Bc=q(e=>e.settings,e=>e.session),PA=(...e)=>q(Bc,r=>e.length>0?Ke.pick(r,e):r),DA=q(e=>e.settings,e=>e.project),IA=q(e=>e.settings,e=>e),Wc=q(e=>e.settings,e=>e.server),FA=q(Wc,e=>e.remoteDebuggerMode),$A=q(Wc,e=>e.qodly),MA=q(Bc,e=>e["monaco.zoom"]),Ig=["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"],Fg=Ig.map(e=>({id:Rc(),content:"",name:e,parentId:null,scope:S.EWebFormStyleClassScope.THEME})),Uc=e=>q(Ra(e),r=>{var t,a;return((a=(t=r==null?void 0:r.content)==null?void 0:t.metadata)==null?void 0:a.styles)||[]}),NA=(e,r)=>q(Uc(e),t=>r.map(a=>{switch(!0){case a===S.EWebFormStyleClassScope.LOCAL:return t.map(s=>({...s,scope:S.EWebFormStyleClassScope.LOCAL}));case a===S.EWebFormStyleClassScope.THEME:return Fg;default:return[]}}).flat()),LA=e=>q(Uc(e),r=>[...r.map(t=>({...t,scope:S.EWebFormStyleClassScope.LOCAL})),...Fg]),jA=q(e=>e,e=>{var r;return[...(((r=e.sharedCSS)==null?void 0:r.styles)||[]).map(t=>({...t,scope:S.EWebFormStyleClassScope.SHARED}))]}),kA=e=>q(Ra(e),r=>r==null?void 0:r.flags),yo=q(e=>e.webforms,e=>e),$g=q(yo,e=>(e==null?void 0:e.components)||[]),Ks=q(yo,e=>e.inspector),BA=q(Ks,e=>e.css),WA=q(Ks,e=>e.datasource),Mg=q(yo,e=>e.templates||{data:[]}),UA=q(Mg,e=>e.data||[]),HA=e=>q($g,r=>r.find(t=>t.id===e)),GA=e=>q(Ks,r=>r[e]),qA=q(yo,e=>e.datasources.theme),YA=q(e=>e.catalog,e=>e.sharedDatasources,e=>e.sharedCSS,(e,r,t)=>[e.state,r.state,t.state].every(a=>["loaded","error"].includes(a))),Hc={label:"Base",id:"root"},zA=e=>q(Ra(e),r=>{var t,a;return((a=(t=r==null?void 0:r.content)==null?void 0:t.metadata)==null?void 0:a.states)||[Hc]});var Gc=(e=>(e.SHOW_AFTER_TIMEOUT="show_after_timeout",e.HIDE_AFTER_TIMEOUT="hide_after_timeout",e))(Gc||{}),qc=(e=>(e.AIRY="airy",e.COMPACT="neutral",e))(qc||{}),cs,VA=new Uint8Array(16);function Ng(){if(!cs&&(cs=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!cs))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return cs(VA)}const KA=/^(?:[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 Js(e){return typeof e=="string"&&KA.test(e)}var Et=[];for(var Nu=0;Nu<256;++Nu)Et.push((Nu+256).toString(16).substr(1));function Zs(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(Et[e[r+0]]+Et[e[r+1]]+Et[e[r+2]]+Et[e[r+3]]+"-"+Et[e[r+4]]+Et[e[r+5]]+"-"+Et[e[r+6]]+Et[e[r+7]]+"-"+Et[e[r+8]]+Et[e[r+9]]+"-"+Et[e[r+10]]+Et[e[r+11]]+Et[e[r+12]]+Et[e[r+13]]+Et[e[r+14]]+Et[e[r+15]]).toLowerCase();if(!Js(t))throw TypeError("Stringified UUID is invalid");return t}var Gp,Lu,ju=0,ku=0;function JA(e,r,t){var a=r&&t||0,s=r||new Array(16);e=e||{};var i=e.node||Gp,c=e.clockseq!==void 0?e.clockseq:Lu;if(i==null||c==null){var l=e.random||(e.rng||Ng)();i==null&&(i=Gp=[l[0]|1,l[1],l[2],l[3],l[4],l[5]]),c==null&&(c=Lu=(l[6]<<8|l[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),p=e.nsecs!==void 0?e.nsecs:ku+1,h=d-ju+(p-ku)/1e4;if(h<0&&e.clockseq===void 0&&(c=c+1&16383),(h<0||d>ju)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");ju=d,ku=p,Lu=c,d+=122192928e5;var m=((d&268435455)*1e4+p)%4294967296;s[a++]=m>>>24&255,s[a++]=m>>>16&255,s[a++]=m>>>8&255,s[a++]=m&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 E=0;E<6;++E)s[a+E]=i[E];return r||Zs(s)}function Lg(e){if(!Js(e))throw TypeError("Invalid UUID");var r,t=new Uint8Array(16);return t[0]=(r=parseInt(e.slice(0,8),16))>>>24,t[1]=r>>>16&255,t[2]=r>>>8&255,t[3]=r&255,t[4]=(r=parseInt(e.slice(9,13),16))>>>8,t[5]=r&255,t[6]=(r=parseInt(e.slice(14,18),16))>>>8,t[7]=r&255,t[8]=(r=parseInt(e.slice(19,23),16))>>>8,t[9]=r&255,t[10]=(r=parseInt(e.slice(24,36),16))/1099511627776&255,t[11]=r/4294967296&255,t[12]=r>>>24&255,t[13]=r>>>16&255,t[14]=r>>>8&255,t[15]=r&255,t}function ZA(e){e=unescape(encodeURIComponent(e));for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t));return r}var XA="6ba7b810-9dad-11d1-80b4-00c04fd430c8",QA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function jg(e,r,t){function a(s,i,c,l){if(typeof s=="string"&&(s=ZA(s)),typeof i=="string"&&(i=Lg(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|r,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 Zs(d)}try{a.name=e}catch{}return a.DNS=XA,a.URL=QA,a}function eP(e){if(typeof e=="string"){var r=unescape(encodeURIComponent(e));e=new Uint8Array(r.length);for(var t=0;t<r.length;++t)e[t]=r.charCodeAt(t)}return tP(rP(nP(e),e.length*8))}function tP(e){for(var r=[],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);r.push(c)}return r}function kg(e){return(e+64>>>9<<4)+14+1}function rP(e,r){e[r>>5]|=128<<r%32,e[kg(r)-1]=r;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=gn(t,l),a=gn(a,d),s=gn(s,p),i=gn(i,h)}return[t,a,s,i]}function nP(e){if(e.length===0)return[];for(var r=e.length*8,t=new Uint32Array(kg(r)),a=0;a<r;a+=8)t[a>>5]|=(e[a/8]&255)<<a%32;return t}function gn(e,r){var t=(e&65535)+(r&65535),a=(e>>16)+(r>>16)+(t>>16);return a<<16|t&65535}function aP(e,r){return e<<r|e>>>32-r}function Xs(e,r,t,a,s,i){return gn(aP(gn(gn(r,e),gn(a,i)),s),t)}function xt(e,r,t,a,s,i,c){return Xs(r&t|~r&a,e,r,s,i,c)}function Rt(e,r,t,a,s,i,c){return Xs(r&a|t&~a,e,r,s,i,c)}function Ot(e,r,t,a,s,i,c){return Xs(r^t^a,e,r,s,i,c)}function At(e,r,t,a,s,i,c){return Xs(t^(r|~a),e,r,s,i,c)}var oP=jg("v3",48,eP);const sP=oP;function iP(e,r,t){e=e||{};var a=e.random||(e.rng||Ng)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,r){t=t||0;for(var s=0;s<16;++s)r[t+s]=a[s];return r}return Zs(a)}function uP(e,r,t,a){switch(e){case 0:return r&t^~r&a;case 1:return r^t^a;case 2:return r&t^r&a^t&a;case 3:return r^t^a}}function Bu(e,r){return e<<r|e>>>32-r}function cP(e){var r=[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 m=0;m<c;++m){for(var _=new Uint32Array(80),E=0;E<16;++E)_[E]=l[m][E];for(var T=16;T<80;++T)_[T]=Bu(_[T-3]^_[T-8]^_[T-14]^_[T-16],1);for(var C=t[0],$=t[1],D=t[2],I=t[3],W=t[4],j=0;j<80;++j){var O=Math.floor(j/20),K=Bu(C,5)+uP(O,$,D,I)+W+r[O]+_[j]>>>0;W=I,I=D,D=Bu($,30)>>>0,$=C,C=K}t[0]=t[0]+C>>>0,t[1]=t[1]+$>>>0,t[2]=t[2]+D>>>0,t[3]=t[3]+I>>>0,t[4]=t[4]+W>>>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 lP=jg("v5",80,cP);const fP=lP,dP="00000000-0000-0000-0000-000000000000";function pP(e){if(!Js(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const hP=Object.freeze(Object.defineProperty({__proto__:null,NIL:dP,parse:Lg,stringify:Zs,v1:JA,v3:sP,v4:iP,v5:fP,validate:Js,version:pP},Symbol.toStringTag,{value:"Module"})),gP=uw(hP);function Yc(e,r){if(!e||!r||!e.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=r}Yc.prototype.convert=function(e){var r,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(r=0;r<l;r++)s[r]=this.srcAlphabet.indexOf(e[r]);do{for(t=0,a=0,r=0;r<l;r++)t=t*i+s[r],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};Yc.prototype.isValid=function(e){for(var r=0;r<e.length;++r)if(this.srcAlphabet.indexOf(e[r])===-1)return!1;return!0};var vP=Yc,yP=vP;function mo(e,r){var t=new yP(e,r);return function(a){return t.convert(a)}}mo.BIN="01";mo.OCT="01234567";mo.DEC="0123456789";mo.HEX="0123456789abcdef";var mP=mo;const{v4:Wu}=gP,ls=mP,Uu="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",bP="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",_P={consistentLength:!0};let Hu;const qp=(e,r,t)=>{const a=r(e.toLowerCase().replace(/-/g,""));return!t||!t.consistentLength?a:a.padStart(t.shortIdLength,t.paddingChar)},SP=(e,r)=>{const a=r(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("-")},EP=e=>Math.ceil(Math.log(2**128)/Math.log(e));var Ds=(()=>{const e=(r,t)=>{const a=r||Uu,s={..._P,...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=EP(a.length),c={shortIdLength:i,consistentLength:s.consistentLength,paddingChar:a[0]},l=ls(ls.HEX,a),d=ls(a,ls.HEX),p=()=>qp(Wu(),l,c),h={new:p,generate:p,uuid:Wu,fromUUID:m=>qp(m,l,c),toUUID:m=>SP(m,d),alphabet:a,maxLength:i};return Object.freeze(h),h};return e.constants={flickrBase58:Uu,cookieBase90:bP},e.uuid=Wu,e.generate=()=>(Hu||(Hu=e(Uu).generate),Hu()),e})(),Ne=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e))(Ne||{});const wP=[Ne.DATASTORE,Ne.DATACLASS,Ne.ATTRIBUTE,Ne.METHOD],Is="guest",zc=[{key:"read",label:"Read",canApplyTo:[Ne.DATASTORE,Ne.DATACLASS,Ne.ATTRIBUTE]},{key:"create",label:"Create",canApplyTo:[Ne.DATASTORE,Ne.DATACLASS,Ne.ATTRIBUTE]},{key:"update",label:"Update",canApplyTo:[Ne.DATASTORE,Ne.DATACLASS,Ne.ATTRIBUTE]},{key:"drop",label:"Delete",canApplyTo:[Ne.DATASTORE,Ne.DATACLASS,Ne.ATTRIBUTE]},{key:"describe",label:"Describe",canApplyTo:[Ne.DATASTORE,Ne.DATACLASS,Ne.ATTRIBUTE,Ne.METHOD]},{key:"execute",label:"Execute",canApplyTo:[Ne.DATASTORE,Ne.DATACLASS,Ne.METHOD]},{key:"promote",label:"Promote",canApplyTo:[Ne.METHOD]}];function cr(e,...r){return Array.from(new Set([...e,...r]))}function Bg(e){const r={},t=new Map;e.forEach(d=>{const p=d.id||Ds.generate();r[p]={...d,id:p,parents:[],includes:cr(d.includes||[]),resources:[]},t.set(d.privilege,p)}),Object.entries(r).forEach(([d,p])=>{const h=p.includes.map(m=>{const _=t.get(m);return _?(r[_].parents=cr(r[_].parents,_),_):""}).filter(Boolean);r[d]={...p,includes:h}});const a=Wg(r),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=>r[p].parents.push(d.id))}),Object.values(r).find(({privilege:d})=>d===Is))return r;const l=Ds.generate();return{[l]:{id:l,privilege:Is,includes:[],parents:[],resources:[]},...r}}function Wg(e){return Object.values(e).sort((r,t)=>r.parents.length-t.parents.length)}function Qs(e,r){const t=r[e];let a=[];return t&&t.parents.forEach(s=>{a=cr(a,...Qs(s,r),s)}),a}function Fs(e,r){const t=r[e];let a=[];return t&&t.includes.forEach(s=>{a=cr(a,...Fs(s,r),s)}),a}function TP(e,r){const t=r[e];if(!t)return[];const a=[e,...Qs(e,r),...t.includes];return Object.keys(r).filter(s=>!a.includes(s))}function CP(e,r){return r[e]?Object.keys(r).reduce((a,s)=>s===e?a:{...a,[s]:{...r[s],parents:r[s].parents.filter(i=>i!==e),includes:r[s].includes.filter(i=>i!==e)}},{}):r}function xP(e,r,t){const a=t[e],s=t[r];return!a||!s?t:{...t,[e]:{...t[e],includes:cr(a.includes,r)},[r]:{...t[r],parents:cr(s.parents,e)}}}function RP(e,r,t){const a=t[e],s=t[r];return!a||!s?t:{...t,[e]:{...t[e],includes:t[e].includes.filter(i=>i!==r)},[r]:{...t[r],parents:t[r].parents.filter(i=>i!==e)}}}function Ug(e,r){S.validateName(e),Object.entries(r).forEach(([,{privilege:a}])=>{if(e.toLowerCase()===a.toLowerCase())throw new Error(`There's already a Privilege with the name ${e}`)});const t=Ds.generate();return{[t]:{id:t,privilege:e,includes:[],parents:[],resources:[]},...r}}function OP(e,r,t,a,s){let i=Ug(e,s);const c=Object.entries(i).find(([,l])=>l.privilege===e);return c?(i=Yg(c[1].id,r,t,a,i),i):s}function AP(e,r,t){if(!e)throw new Error("Please enter a name");if(!t[r])throw new Error("Invalid privilege");return Object.entries(t).forEach(([,{privilege:a,id:s}])=>{if(e.toLowerCase()===a.toLowerCase()&&r!==s)throw new Error(`There's already a Privilege with the name ${e}`)}),{...t,[r]:{...t[r],privilege:e}}}function PP(e,r){return e.map(t=>tn(t,r))}function tn(e,r){return r[e]?r[e]:null}function Hg({applyTo:e,type:r,...t}){return Object.entries(t).reduce((a,[s,i])=>{const c=Ke.find(zc,["key",s]);return!c||!c.canApplyTo.includes(r)||(typeof i=="string"?i.split(","):i).forEach(d=>{a[d]=cr(a[d]||[],s)}),a},{})}const fc=(e,r=!1)=>["read","create","update","delete"].includes(e.toLowerCase())?`All ${r?"dataclasses and ":""}attributes have the '${e.toLowerCase()}' permission`:e.toLowerCase()==="execute"?`All functions defined ${r?"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 ${r?"dataclasses, ":""}attributes and functions have the '${e.toLowerCase()}' permission`;function Vc(e){return{permissions:zc.filter(({canApplyTo:r})=>r.includes(e.type)).map(({key:r,label:t})=>{const a={name:r,from:[]};switch(e.type){case Ne.DATASTORE:return{...a,info:fc(t,!0)};case Ne.DATACLASS:return{...a,info:fc(t)};default:return a}}),resource:e.applyTo,type:e.type}}function Gg(e,r){const t=qg(r),a={};return e.filter(({type:s})=>wP.includes(s)).forEach(s=>{const i=Hg(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]||{...r[d]};let p=Ke.find(a[d].resources,{resource:s.applyTo,type:s.type});p||(p=Vc(s),a[d].resources.push(p)),p.permissions=p.permissions.map(m=>({...m,checked:m.checked||l.includes(m.name)}))})}),{...r,...a}}function qg(e){return Object.values(e).reduce((r,t)=>({...r,[t.privilege]:t}),{})}function ei(e){var t;const r=Bg(e.privileges||[]);return{forceLogin:e==null?void 0:e.forceLogin,privileges:Gg(((t=e.permissions)==null?void 0:t.allowed)||[],r),roles:(e.roles||[]).map(({id:a=Ds.generate(),role:s,privileges:i=[]})=>({id:a,role:s,privileges:cr(i).map(c=>{var l;return(l=Object.values(r).find(({privilege:d})=>d===c))==null?void 0:l.id}).filter(Boolean)})).reduce((a,s)=>({...a,[s.id]:{...s}}),{})}}function ti(e){const r=Object.values(e.privileges).filter(({includes:a})=>a.length===0).map(({id:a})=>a),t=[...r,...r.map(a=>Qs(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!==Is).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 DP(e,r){const t=r[e],a={children:[],links:[],parents:[],selected:e};if(!t)return a;function s(l,d,p=[]){const h=l.reduce((m,_)=>[...m,...r[_][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 m=l[h].filter(_=>d.includes(_)?!1:(d.push(_),!0));m.length>0&&p.unshift(cr(m))}return p}function c(l,d){const p=[];return l.reduce((h,m)=>(m.forEach(_=>{r[_][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 IP(e,r,t){const a=tn(e,t);if(!a||Ke.find(a.resources,{resource:r.applyTo,type:r.type}))return t;const s={...a,resources:[...a.resources,Vc(r)]};return{...t,[e]:s}}function FP(e,r,t){const a=tn(e,t);if(!a)return t;const s={...a,resources:a.resources.filter(({resource:i,type:c})=>i!==r.applyTo||c!==r.type)};return{...t,[e]:s}}function $P(e,r){const t=tn(e,r);if(!t)return r;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{...r,[e]:a}}function Yg(e,r,t,a,s){const i=tn(e,s);if(!i)return s;const l=Ke.find(i.resources,{type:t,resource:r})?{...i,resources:i.resources.map(d=>d.type===t&&d.resource===r?{...d,permissions:d.permissions.map(p=>p.name===a?{...p,checked:!p.checked,from:[]}:p)}:d)}:{...i,resources:[...i.resources,{type:t,resource:r,permissions:zc.filter(d=>d.canApplyTo.includes(t)).map(d=>({from:[],name:d.key,checked:d.key===a,info:fc(d.key,t===Ne.DATASTORE)}))}]};return{...s,[e]:l}}function MP(e,r,t,a){const s=tn(e,a);if(!s)return a;const c=Ke.find(s.resources,{type:r.type,resource:r.resource})?{...s,resources:s.resources.map(l=>l.type===r.type&&l.resource===r.resource?{...l,permissions:r.permissions.map(d=>d.name===t.name?{...d,checked:!d.checked,from:[]}:d)}:l)}:{...s,resources:[...s.resources,{...r,permissions:r.permissions.map(l=>({...l,checked:t.name===l.name,from:[]}))}]};return{...a,[e]:c}}function NP(e,r){var d;const t=zg(e,r)||[],a=((d=tn(e,r))==null?void 0:d.resources)||[],c=([...t,...a].filter(({type:p})=>p===Ne.METHOD)||[]).map(({resource:p})=>p);return Object.entries(r).reduce((p,[h,{resources:m}])=>(m.filter(({resource:_,type:E})=>E===Ne.METHOD&&c.includes(_)).forEach(({permissions:_,resource:E})=>{var C;((C=_.find(({name:$})=>$==="promote"))==null?void 0:C.checked)&&(p[E]=cr(p[E]||[],h))}),p),{})}function zg(e,r){var c;const t=tn(e,r);if(!t)return[];const a=(c=Object.values(r).find(l=>l.privilege===Is))==null?void 0:c.id;return(a&&a!==e?cr(Fs(e,r),a):Fs(e,r)).reduce((l,d)=>(r[d].resources.forEach(h=>{if(h.permissions.filter(({checked:E})=>E).length===0)return;const _=Ke.find(l,{type:h.type,resource:h.resource});if(!_){l.push({...h,permissions:h.permissions.map(E=>({...E,from:E.checked?[d]:[],checked:!1}))});return}_.permissions=_.permissions.map((E,T)=>{let{from:C=[]}=E;return h.permissions[T].checked&&!C.includes(d)&&(C=[...C,d]),{...E,from:C,checked:E.checked}})}),l),Ke.clone(t.resources.map(l=>({...l,permissions:l.permissions.map(({checked:d,...p})=>({...p,checked:!!d}))}))))}const LP=e=>e.reduce((r,t)=>({...r,[t.id]:{...t}}),{}),jP=(e,r)=>r[e]?Object.values(r).reduce((t,a)=>e===a.id||a.role===""?t:{...t,[a.id]:a},{}):r,kP=(e,r,t)=>t[e]?Object.values(t).reduce((a,s)=>e===s.id?{...a,[s.id]:{...s,name:r}}:{...a,[s.id]:s},{}):t,BP=(e,r)=>{const t={id:e,role:"",privileges:[]};return{...r,[t.id]:t}},WP=(e,r)=>{if(S.validateName(e.role),Object.values(r).find(a=>a.role===e.role))throw new Error(`a role with the name ${e.role} already exists`);return Object.values(r).reduce((a,s)=>e.id===s.id?{...a,[e.id]:e}:{...a,[s.id]:s},{})},UP={list:[]},Yp=(e,r)=>e.list.filter(t=>t.id!==r),Vg=lr({name:"modals",initialState:UP,reducers:{createModal:(e,r)=>{e.list.push(r.payload)},editModal:(e,r)=>{const{id:t,...a}=r.payload,s=e.list.find(S.byId(t));s&&Object.assign(s,{...a})},removeModal:(e,r)=>{const t=r.payload;e.list=Yp(e,t)},closeModal:(e,r)=>{const{id:t,reason:a}=r.payload;if(a){const s=e.list.find(i=>i.id===t);s&&(s.closeReason=a,s.isOpen=!1)}else e.list=Yp(e,t)}}}),{createModal:Kg,removeModal:Jg,closeModal:HP,editModal:GP}=Vg.actions;var dc={exports:{}},Za={};/**
|
|
92
|
+
* @license React
|
|
95
93
|
* react-jsx-runtime.production.min.js
|
|
96
94
|
*
|
|
97
95
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
98
96
|
*
|
|
99
97
|
* This source code is licensed under the MIT license found in the
|
|
100
98
|
* LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/var
|
|
99
|
+
*/var zp;function qP(){if(zp)return Za;zp=1;var e=dt,r=Symbol.for("react.element"),t=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function c(l,d,p){var h,m={},_=null,E=null;p!==void 0&&(_=""+p),d.key!==void 0&&(_=""+d.key),d.ref!==void 0&&(E=d.ref);for(h in d)a.call(d,h)&&!i.hasOwnProperty(h)&&(m[h]=d[h]);if(l&&l.defaultProps)for(h in d=l.defaultProps,d)m[h]===void 0&&(m[h]=d[h]);return{$$typeof:r,type:l,key:_,ref:E,props:m,_owner:s.current}}return Za.Fragment=t,Za.jsx=c,Za.jsxs=c,Za}var fs={};/**
|
|
100
|
+
* @license React
|
|
102
101
|
* react-jsx-runtime.development.js
|
|
103
102
|
*
|
|
104
103
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
105
104
|
*
|
|
106
105
|
* This source code is licensed under the MIT license found in the
|
|
107
106
|
* LICENSE file in the root directory of this source tree.
|
|
108
|
-
*/var
|
|
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
|
|
110
|
-
`),
|
|
111
|
-
`),be=
|
|
112
|
-
`+
|
|
107
|
+
*/var Vp;function YP(){return Vp||(Vp=1,process.env.NODE_ENV!=="production"&&function(){var e=dt,r=Symbol.for("react.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),T=Symbol.iterator,C="@@iterator";function $(g){if(g===null||typeof g!="object")return null;var R=T&&g[T]||g[C];return typeof R=="function"?R:null}var D=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function I(g){{for(var R=arguments.length,F=new Array(R>1?R-1:0),G=1;G<R;G++)F[G-1]=arguments[G];W("error",g,F)}}function W(g,R,F){{var G=D.ReactDebugCurrentFrame,re=G.getStackAddendum();re!==""&&(R+="%s",F=F.concat([re]));var se=F.map(function(ee){return String(ee)});se.unshift("Warning: "+R),Function.prototype.apply.call(console[g],console,se)}}var j=!1,O=!1,K=!1,Y=!1,Q=!1,ae;ae=Symbol.for("react.module.reference");function Ie(g){return!!(typeof g=="string"||typeof g=="function"||g===a||g===i||Q||g===s||g===p||g===h||Y||g===E||j||O||K||typeof g=="object"&&g!==null&&(g.$$typeof===_||g.$$typeof===m||g.$$typeof===c||g.$$typeof===l||g.$$typeof===d||g.$$typeof===ae||g.getModuleId!==void 0))}function Ce(g,R,F){var G=g.displayName;if(G)return G;var re=R.displayName||R.name||"";return re!==""?F+"("+re+")":F}function Xe(g){return g.displayName||"Context"}function z(g){if(g==null)return null;if(typeof g.tag=="number"&&I("Received an unexpected object in getComponentNameFromType(). 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 a:return"Fragment";case t:return"Portal";case i:return"Profiler";case s:return"StrictMode";case p:return"Suspense";case h:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case l:var R=g;return Xe(R)+".Consumer";case c:var F=g;return Xe(F._context)+".Provider";case d:return Ce(g,g.render,"ForwardRef");case m:var G=g.displayName||null;return G!==null?G:z(g.type)||"Memo";case _:{var re=g,se=re._payload,ee=re._init;try{return z(ee(se))}catch{return null}}}return null}var Pe=Object.assign,Qe=0,et,Ue,rt,Dt,H,V,ve;function he(){}he.__reactDisabledLog=!0;function le(){{if(Qe===0){et=console.log,Ue=console.info,rt=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})}Qe++}}function ye(){{if(Qe--,Qe===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Pe({},g,{value:et}),info:Pe({},g,{value:Ue}),warn:Pe({},g,{value:rt}),error:Pe({},g,{value:Dt}),group:Pe({},g,{value:H}),groupCollapsed:Pe({},g,{value:V}),groupEnd:Pe({},g,{value:ve})})}Qe<0&&I("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ie=D.ReactCurrentDispatcher,fe;function ue(g,R,F){{if(fe===void 0)try{throw Error()}catch(re){var G=re.stack.trim().match(/\n( *(at )?)/);fe=G&&G[1]||""}return`
|
|
108
|
+
`+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 F=ge.get(g);if(F!==void 0)return F}var G;me=!0;var re=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var se;se=ie.current,ie.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(nt){G=nt}Reflect.construct(g,[],ee)}else{try{ee.call()}catch(nt){G=nt}g.call(ee.prototype)}}else{try{throw Error()}catch(nt){G=nt}g()}}catch(nt){if(nt&&G&&typeof nt.stack=="string"){for(var X=nt.stack.split(`
|
|
109
|
+
`),Fe=G.stack.split(`
|
|
110
|
+
`),be=X.length-1,Se=Fe.length-1;be>=1&&Se>=0&&X[be]!==Fe[Se];)Se--;for(;be>=1&&Se>=0;be--,Se--)if(X[be]!==Fe[Se]){if(be!==1||Se!==1)do if(be--,Se--,Se<0||X[be]!==Fe[Se]){var ze=`
|
|
111
|
+
`+X[be].replace(" at new "," at ");return g.displayName&&ze.includes("<anonymous>")&&(ze=ze.replace("<anonymous>",g.displayName)),typeof g=="function"&&ge.set(g,ze),ze}while(be>=1&&Se>=0);break}}}finally{me=!1,ie.current=se,ye(),Error.prepareStackTrace=re}var yt=g?g.displayName||g.name:"",Mn=yt?ue(yt):"";return typeof g=="function"&&ge.set(g,Mn),Mn}function Je(g,R,F){return N(g,!1)}function Ge(g){var R=g.prototype;return!!(R&&R.isReactComponent)}function ut(g,R,F){if(g==null)return"";if(typeof g=="function")return N(g,Ge(g));if(typeof g=="string")return ue(g);switch(g){case p:return ue("Suspense");case h:return ue("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case d:return Je(g.render);case m:return ut(g.type,R,F);case _:{var G=g,re=G._payload,se=G._init;try{return ut(se(re),R,F)}catch{}}}return""}var dr=Object.prototype.hasOwnProperty,It={},rn=D.ReactDebugCurrentFrame;function pr(g){if(g){var R=g._owner,F=ut(g.type,g._source,R?R.type:null);rn.setExtraStackFrame(F)}else rn.setExtraStackFrame(null)}function Ir(g,R,F,G,re){{var se=Function.call.bind(dr);for(var ee in g)if(se(g,ee)){var X=void 0;try{if(typeof g[ee]!="function"){var Fe=Error((G||"React class")+": "+F+" 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 Fe.name="Invariant Violation",Fe}X=g[ee](R,ee,G,F,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(be){X=be}X&&!(X instanceof Error)&&(pr(re),I("%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).",G||"React class",F,ee,typeof X),pr(null)),X instanceof Error&&!(X.message in It)&&(It[X.message]=!0,pr(re),I("Failed %s type: %s",F,X.message),pr(null))}}}var Ft=Array.isArray;function qt(g){return Ft(g)}function nn(g){{var R=typeof Symbol=="function"&&Symbol.toStringTag,F=R&&g[Symbol.toStringTag]||g.constructor.name||"Object";return F}}function Oa(g){try{return hr(g),!1}catch{return!0}}function hr(g){return""+g}function _n(g){if(Oa(g))return I("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",nn(g)),hr(g)}var bt=D.ReactCurrentOwner,wr={key:!0,ref:!0,__self:!0,__source:!0},Fr,$r,gr;gr={};function Sn(g){if(dr.call(g,"ref")){var R=Object.getOwnPropertyDescriptor(g,"ref").get;if(R&&R.isReactWarning)return!1}return g.ref!==void 0}function En(g){if(dr.call(g,"key")){var R=Object.getOwnPropertyDescriptor(g,"key").get;if(R&&R.isReactWarning)return!1}return g.key!==void 0}function wn(g,R){if(typeof g.ref=="string"&&bt.current&&R&&bt.current.stateNode!==R){var F=z(bt.current.type);gr[F]||(I('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',z(bt.current.type),g.ref),gr[F]=!0)}}function Tn(g,R){{var F=function(){Fr||(Fr=!0,I("%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))};F.isReactWarning=!0,Object.defineProperty(g,"key",{get:F,configurable:!0})}}function Cn(g,R){{var F=function(){$r||($r=!0,I("%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))};F.isReactWarning=!0,Object.defineProperty(g,"ref",{get:F,configurable:!0})}}var xn=function(g,R,F,G,re,se,ee){var X={$$typeof:r,type:g,key:R,ref:F,props:ee,_owner:se};return X._store={},Object.defineProperty(X._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(X,"_self",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.defineProperty(X,"_source",{configurable:!1,enumerable:!1,writable:!1,value:re}),Object.freeze&&(Object.freeze(X.props),Object.freeze(X)),X};function Aa(g,R,F,G,re){{var se,ee={},X=null,Fe=null;F!==void 0&&(_n(F),X=""+F),En(R)&&(_n(R.key),X=""+R.key),Sn(R)&&(Fe=R.ref,wn(R,re));for(se in R)dr.call(R,se)&&!wr.hasOwnProperty(se)&&(ee[se]=R[se]);if(g&&g.defaultProps){var be=g.defaultProps;for(se in be)ee[se]===void 0&&(ee[se]=be[se])}if(X||Fe){var Se=typeof g=="function"?g.displayName||g.name||"Unknown":g;X&&Tn(ee,Se),Fe&&Cn(ee,Se)}return xn(g,X,Fe,re,G,bt.current,ee)}}var Mr=D.ReactCurrentOwner,Rn=D.ReactDebugCurrentFrame;function wt(g){if(g){var R=g._owner,F=ut(g.type,g._source,R?R.type:null);Rn.setExtraStackFrame(F)}else Rn.setExtraStackFrame(null)}var Tr;Tr=!1;function Nr(g){return typeof g=="object"&&g!==null&&g.$$typeof===r}function On(){{if(Mr.current){var g=z(Mr.current.type);if(g)return`
|
|
113
112
|
|
|
114
|
-
Check the render method of \``+g+"`."}return""}}function
|
|
113
|
+
Check the render method of \``+g+"`."}return""}}function Pa(g){{if(g!==void 0){var R=g.fileName.replace(/^.*[\\\/]/,""),F=g.lineNumber;return`
|
|
115
114
|
|
|
116
|
-
Check your code at `+R+":"+
|
|
115
|
+
Check your code at `+R+":"+F+"."}return""}}var An={};function Jn(g){{var R=On();if(!R){var F=typeof g=="string"?g:g.displayName||g.name;F&&(R=`
|
|
117
116
|
|
|
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=MP():uc.exports=NP();var zr=uc.exports;const LP=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"})}),jP=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"})]}),kP=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"})}),BP=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"})}),WP={FdSave:kP,FdWarningDanger:BP,FdInfoCircle:jP,FdInfoBold:LP};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=Lv()}=e,s=wc();switch(n(jg({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(kg(s)),c(),i({confirmed:h,options:b})}})});default:return{}}}),Wg=()=>E.getFileContent({name:E.ROLES_TAB_PATH}),Ug="Roles & Privileges",Os=re("roles/fetchRoles",async(e,{dispatch:n,rejectWithValue:t})=>{var i;let a;try{a=await Wg()}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:Ug,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)}}),Hg=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 Wg();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:Ug,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")}}),Gg=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(Hg.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:qg,updateRoles:Yg,setRolesContent:Yc,toggleTab:UP,toggleForceLogin:HP,updateRolesAndPrivileges:zc}=Gg.actions,GP=Gg.reducer,Vc=re("settings/fetch",async()=>await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:E.SETTINGS_TAB_PATH,content:!0,as:"json"})),zg=re("settings/app",E.getAppSettings),qP=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}},YP={...Hp,session:{...Hp.session,...qP},welcometour:{}},Vg=lr({name:"settings",initialState:YP,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(zg.fulfilled,(n,t)=>{n.server=t.payload,n.server.qodly&&(n.project["webforms.display-mode"]="airy")})}}),{setSetting:lc,setSettings:Js,setSettingsAsText:zP}=Vg.actions,VP=Vg.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),KP=[{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}],Kg=lr({name:"explorer",initialState:KP,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:JP,expandFolder:XP,openAddFileInput:ZP,addNewFile:Jg,refreshFile:QP,removeFile:dc,setFolderChildren:eD}=Kg.actions;function Xg(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
|
|
117
|
+
Check the top-level render call using <`+F+">.")}return R}}function Pn(g,R){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var F=Jn(R);if(An[F])return;An[F]=!0;var G="";g&&g._owner&&g._owner!==Mr.current&&(G=" It was passed a child from "+z(g._owner.type)+"."),wt(g),I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',F,G),wt(null)}}function Dn(g,R){{if(typeof g!="object")return;if(qt(g))for(var F=0;F<g.length;F++){var G=g[F];Nr(G)&&Pn(G,R)}else if(Nr(g))g._store&&(g._store.validated=!0);else if(g){var re=$(g);if(typeof re=="function"&&re!==g.entries)for(var se=re.call(g),ee;!(ee=se.next()).done;)Nr(ee.value)&&Pn(ee.value,R)}}}function Da(g){{var R=g.type;if(R==null||typeof R=="string")return;var F;if(typeof R=="function")F=R.propTypes;else if(typeof R=="object"&&(R.$$typeof===d||R.$$typeof===m))F=R.propTypes;else return;if(F){var G=z(R);Ir(F,g.props,"prop",G,g)}else if(R.PropTypes!==void 0&&!Tr){Tr=!0;var re=z(R);I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",re||"Unknown")}typeof R.getDefaultProps=="function"&&!R.getDefaultProps.isReactClassApproved&&I("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function In(g){{for(var R=Object.keys(g.props),F=0;F<R.length;F++){var G=R[F];if(G!=="children"&&G!=="key"){wt(g),I("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",G),wt(null);break}}g.ref!==null&&(wt(g),I("Invalid attribute `ref` supplied to `React.Fragment`."),wt(null))}}function Fn(g,R,F,G,re,se){{var ee=Ie(g);if(!ee){var X="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(X+=" 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 Fe=Pa(re);Fe?X+=Fe:X+=On();var be;g===null?be="null":qt(g)?be="array":g!==void 0&&g.$$typeof===r?(be="<"+(z(g.type)||"Unknown")+" />",X=" Did you accidentally export a JSX literal instead of a component?"):be=typeof g,I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",be,X)}var Se=Aa(g,R,F,re,se);if(Se==null)return Se;if(ee){var ze=R.children;if(ze!==void 0)if(G)if(qt(ze)){for(var yt=0;yt<ze.length;yt++)Dn(ze[yt],g);Object.freeze&&Object.freeze(ze)}else I("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 Dn(ze,g)}return g===a?In(Se):Da(Se),Se}}function $n(g,R,F){return Fn(g,R,F,!0)}function Ia(g,R,F){return Fn(g,R,F,!1)}var Fa=Ia,$a=$n;fs.Fragment=a,fs.jsx=Fa,fs.jsxs=$a}()),fs}process.env.NODE_ENV==="production"?dc.exports=qP():dc.exports=YP();var Kr=dc.exports;const zP=e=>Kr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:Kr.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"})}),VP=e=>Kr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[Kr.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"}),Kr.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"})]}),KP=e=>Kr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:Kr.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"})}),JP=e=>Kr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:Kr.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"})}),ZP={FdSave:KP,FdWarningDanger:JP,FdInfoCircle:VP,FdInfoBold:zP};var Gt=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(Gt||{}),Dr=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Dr||{}),Kc=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Kc||{});const fr=ne("modals/open",async(e,{dispatch:r})=>{const{type:t=Gt.ALERT,store:a=zv()}=e,s=Rc();switch(r(Kg({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===Kc.CONFIRMED,m=Ke.entries((p=d.views)==null?void 0:p.toggles).reduce((_,E)=>({..._,[E[0]]:E[1].value}),{});r(Jg(s)),c(),i({confirmed:h,options:m})}})});default:return{}}}),Zg=()=>S.getFileContent({name:S.ROLES_TAB_PATH}),Xg="Roles & Privileges",$s=ne("roles/fetchRoles",async(e,{dispatch:r,rejectWithValue:t})=>{var i;let a;try{a=await Zg()}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:S.ROLES_TAB_PATH,date:new Date().toISOString(),content:{permissions:{allowed:[]},privileges:[],roles:[]}}}const s={name:Xg,type:S.FileFolderType.ROLES,date:a.date,view:{panel:{isOpen:!1,type:"",current:""}},path:S.ROLES_TAB_PATH,flags:{},extra:{editor:{key:"editors:roles"}},content:{}};return r(Lt(s)),{...a,content:ei(a.content)}}),Qg=ne("roles/fetchRolesChanges",async(e,{getState:r})=>{const{tabs:t}=r().root;if(t.find(s=>s.path===S.ROLES_TAB_PATH)){const{date:s}=r().roles;if(s&&await Jc(s))return{old:!0}}return{}}),Jc=async e=>{if(!e)return!1;try{const r=await Zg();if(r.date){const t=new Date(e),a=new Date(r.date);if(t>a)return!0}}catch(r){if(!Array.isArray(r==null?void 0:r.data.__ERROR))throw r}return!1},pc=ne("roles/saveRoles",async(e,{getState:r,rejectWithValue:t,dispatch:a})=>{try{const{flags:s,date:i}=r().roles;if(s.old||await Jc(i)){const{confirmed:d}=await a(fr({title:Xg,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 S.setFileContent({name:S.ROLES_TAB_PATH,content:ti(e)})}catch{return t("Error while loading the roles")}}),ev=lr({name:"roles",initialState:()=>{const{roles:e}=_a(),{roles:r={},privileges:t={},flags:a={touched:!1},date:s,selectedTab:i="roles"}=e||{};return{flags:a,roles:r,privileges:t,date:s,selectedTab:i}},reducers:{updatePrivileges:(e,r)=>{e.privileges=r.payload,e.flags.touched=!0},updateRoles:(e,r)=>{e.roles=r.payload,e.flags.touched=!0},updateRolesAndPrivileges:(e,r)=>{e.roles=r.payload.roles,e.privileges=r.payload.privileges},toggleTab:(e,r)=>{e.selectedTab=r.payload},toggleForceLogin:(e,r)=>{e.forceLogin!==r.payload&&(e.forceLogin=r.payload,e.flags.touched=!0)},setRolesContent(e,r){const{content:t,flags:a={},...s}=r.payload,i=ei(t),c={...e.flags,...a};return{...e,...i,...s,flags:c}}},extraReducers(e){e.addCase($s.fulfilled,(r,t)=>{const{content:a,date:s}=t.payload;r={...r,...a,date:s}}).addCase($s.rejected,r=>({...r,roles:{},privileges:{},flags:{touched:!1},date:void 0})).addCase(pc.fulfilled,(r,t)=>({...r,flags:{...r.flags,confirmed:!0,touched:!1,old:!1},date:t.payload.date})).addCase(pc.rejected,(r,t)=>Wh.isString(t.payload)?r:{...r,flags:{...r.flags,...t.payload}}).addCase(Qg.fulfilled,(r,t)=>({...r,flags:{...r.flags,...t.payload}})).addCase(va.fulfilled,(r,t)=>{!t.payload||t.payload.path!==S.ROLES_TAB_PATH||(r.flags.touched=!1,r.flags.old=!1)}).addCase(nl.fulfilled,(r,t)=>{t.meta.arg!==S.ROLES_TAB_PATH||!t.payload||(r.flags.touched=!1,r.flags.old=!1)})}}),{updatePrivileges:tv,updateRoles:rv,setRolesContent:Zc,toggleTab:XP,toggleForceLogin:QP,updateRolesAndPrivileges:Xc}=ev.actions,eD=ev.reducer,Qc=ne("settings/fetch",async()=>await S.getNodeInfo({verb:S.DesignerRequestVerb.GET_INFO,path:S.SETTINGS_TAB_PATH,content:!0,as:"json"})),nv=ne("settings/app",S.getAppSettings),tD=Fh(),Kp={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":Gc.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:S.RemoteDebuggerMode.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:"",lsp:""},isRestActive:!0}},rD={...Kp,session:{...Kp.session,...tD},welcometour:{}},av=lr({name:"settings",initialState:rD,reducers:{setSetting(e,r){const{path:t,settingsKey:a,value:s}=r.payload;e[t][a]=s},setSettings(e,r){const{path:t,value:a}=r.payload;e[t]={...e[t],...a}},setSettingsAsText(e,r){const{path:t,settings:a}=r.payload;e[t]=a}},extraReducers(e){e.addCase(Qc.fulfilled,(r,t)=>{r.project={...r.project,...t.payload.content}}),e.addCase(nv.fulfilled,(r,t)=>{r.server=t.payload,r.server.qodly&&(r.project["webforms.display-mode"]="airy")})}}),{setSetting:hc,setSettings:ri,setSettingsAsText:nD}=av.actions,aD=av.reducer,gc=e=>{const r=["folder","file"];return e.sort((t,a)=>t.type===a.type?t.name.localeCompare(a.name):r.indexOf(t.type)-r.indexOf(a.type))},$e=(e,r)=>e.reduce((t,a)=>a.path===r.path&&a.type===r.type?[...t,r]:a.children?[...t,{...a,children:gc($e(a.children,r))}]:[...t,a],[]),gt=(e,r)=>e.reduce((t,a)=>t||(a.path===r?a:a.children?gt(a.children,r):null),null),oD=[{name:S.FolderRootPath.WEBFORMS,type:S.FileFolderType.FOLDER,children:[],path:S.FolderRootPath.WEBFORMS,error:null,flags:{expanded:!1,loading:!1,cached:!1},tipKey:"editors:webform:explorer:webforms",config:{},isRoot:!0},{name:S.FolderRootPath.METHODS,type:S.FileFolderType.FOLDER,children:[],path:S.FolderRootPath.METHODS,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:S.FolderRootPath.CLASSES,type:S.FileFolderType.FOLDER,children:[],path:S.FolderRootPath.CLASSES,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:S.FolderRootPath.SHARED,type:S.FileFolderType.FOLDER,children:[],path:S.FolderRootPath.SHARED,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:"Debugger",type:S.FileFolderType.FOLDER,children:[],path:"Debugger",error:null,flags:{expanded:!1,cached:!0},config:{},isRoot:!0},{name:"Roles And Privileges",type:S.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:S.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:S.FileFolderType.FILE,ext:"json",path:"qodlyApp",error:null,flags:{},config:{editor:{key:"editors:settings"}},isRoot:!0}],ov=lr({name:"explorer",initialState:oD,reducers:{toggleExpandFolder:(e,r)=>(e=$e(e,{...r.payload,flags:{...r.payload.flags,expanded:!r.payload.flags.expanded}}),e),expandFolder:(e,r)=>(e=$e(e,{...r.payload,flags:{...r.payload.flags,expanded:!0}}),e),openAddFileInput:(e,r)=>$e(e,{...r.payload,flags:{...r.payload.flags,adding:!0}}),addNewFile:(e,r)=>{const{parent:t,child:a}=r.payload;return $e(e,{...t,children:[a,...t.children||[]]})},removeFile:(e,r)=>{const{parent:t,child:a}=r.payload;return $e(e,{...t,children:t.children.filter(s=>s.path!==a.path)})},refreshFile:(e,r)=>{const{parent:t,child:a}=r.payload,s=(t.children||[]).filter(i=>i.path!==a.path&&!a.error);return $e(e,{...t,children:[a,...s]})},setFolderChildren:(e,r)=>{const t=gt(e,r.payload.parentPath);return t?$e(e,{...t,children:r.payload.children}):e}},extraReducers:e=>{e.addCase(ga.pending,(r,t)=>{const{file:a,newname:s}=t.meta.arg,i=gt(r,a.path);if(!i)return r;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":S.lspSubject.next({action:S.LspActions.WILL_RENAME,payload:{oldPath:l,newPath:d}});break}return $e(r,{...i,flags:{...i.flags,loading:!0}})}),e.addCase(ga.fulfilled,(r,t)=>{const{meta:{arg:{file:a}},payload:s}=t,i=gt(r,a.path);if(!i)return r;switch(s.old.ext){case"4dm":case"4qs":S.lspSubject.next({action:S.LspActions.DID_RENAME,payload:{oldPath:s.old.path,newPath:s.new.path}});break}return $e(r,{...i,flags:{...i.flags,loading:!1}})}),e.addCase(ga.rejected,(r,t)=>{const{file:a}=t.meta.arg,s=gt(r,a.path);return s?$e(r,{...s,flags:{...s.flags,loading:!1}}):r}),e.addCase(Ar.pending,(r,t)=>{const a=t.meta.arg,s=gt(r,a);return s?$e(r,{...s,flags:{...s.flags,loading:!0}}):r}),e.addCase(Ar.fulfilled,(r,t)=>{const a=t.meta.arg,s=gt(r,a);return s?$e(r,{...s,children:gc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!0},error:null}):r}),e.addCase(Ar.rejected,(r,t)=>{const a=t.meta.arg,s=gt(r,a);return s?$e(r,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!0}}):r}),e.addCase(ao.pending,(r,t)=>{const a=t.meta.arg,s=gt(r,a);return s?$e(r,{...s,flags:{...s.flags,loading:!0}}):r}),e.addCase(ao.fulfilled,(r,t)=>{const a=t.meta.arg,s=gt(r,a);return s?$e(r,{...s,children:gc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!1},error:null}):r}),e.addCase(ao.rejected,(r,t)=>{const a=t.meta.arg,s=gt(r,a);return s?$e(r,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!1}}):r}),e.addCase(gs.pending,(r,t)=>{const{fileName:a,parentNode:s,path:i,type:c}=t.meta.arg;return $e(r,{...s,children:[{name:a,path:`${i}/${a}`,type:c,error:null,flags:{loading:!0},config:{}},...s.children]})}),e.addCase(gs.fulfilled,(r,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg,c=S.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=Er(`${a}${c?`.${c.toLowerCase()}`:""}`);return $e(r,{name:s,path:`${a}/${s}`,type:i,error:null,flags:{loading:!1},config:{editor:l,supportedEditors:d}})}),e.addCase(gs.rejected,(r,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg;return $e(r,{name:s,path:`${a}/${s}`,type:i,error:{message:t.payload},flags:{loading:!1},config:{}})}),e.addCase(vs.pending,(r,t)=>{const{node:a,parentNode:s}=t.meta.arg;return $e(r,{...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(vs.fulfilled,(r,t)=>{const{node:a}=t.payload,{node:{path:s,ext:i}}=t.meta.arg,{editor:c,supportedEditors:l}=Er(`${s}${i?`.${i.toLowerCase()}`:""}`);return $e(r,{name:`${a.name}`,path:`${s}/${a.name}`,type:a.type,error:null,flags:{loading:!1},config:{editor:c,supportedEditors:l}})}),e.addCase(vs.rejected,(r,t)=>{const a=t.payload,{node:s}=t.meta.arg;return $e(r,{name:`${s.name}_copy`,path:`${s.path}/${s.name}_copy`,type:s.type,error:{message:a},flags:{loading:!1},config:{}})}),e.addCase(so.pending,(r,t)=>{}),e.addCase(so.fulfilled,(r,t)=>{var m;const{draggedNode:a,newLocation:s}=t.meta.arg,i=ng(a.path),c=gt(r,i),l=gt(r,s.path),d=(m=c==null?void 0:c.children)==null?void 0:m.filter(_=>_.path!==a.path),p=s.path.split("/").length,h=a.path.split("/").length;return p>=h?(r=$e(r,{...c,children:d}),r=$e(r,{...l,children:[{...a,path:`${l.path}/${a.name}`},...l!=null&&l.children?l==null?void 0:l.children:[]],flags:{...l.flags,expanded:!0}})):(r=$e(r,{...l,children:[{...a,path:`${l.path}/${a.name}`},...l!=null&&l.children?l==null?void 0:l.children:[]],flags:{...l.flags,expanded:!0}}),r=$e(r,{...c,children:d})),r}),e.addCase(so.rejected,(r,t)=>{S.toastSubject.next({message:"Error moving file",kind:"danger"})}),e.addCase(ha.pending,(r,t)=>{var C;const{fileName:a,parentNode:s,path:i,type:c,qodly:l}=t.meta.arg,d=S.getFileExtentionFromType(c,l),p=`${i}/${a}${d?`.${d.toLowerCase()}`:""}`,{editor:h,supportedEditors:m}=Er(p);switch(c){case S.FileFolderType.CLASS:case S.FileFolderType.METHOD:S.lspSubject.next({action:S.LspActions.WILL_CREATE,payload:{filePath:p}});break}const _=(C=s.children)==null?void 0:C.filter($=>$.path!==`${i}/${a}`),E=[{name:a,path:`${i}/${a}`,type:S.FileFolderType.FILE,error:null,flags:{loading:!0},config:{editor:h,supportedEditors:m},ext:d,date:new Date().toISOString()},..._],T=$e(r,{...s,children:E});return Wh.merge(r,T)}),e.addCase(ha.fulfilled,(r,t)=>{const{fileName:a,path:s,type:i,qodly:c}=t.meta.arg,l=S.getFileExtentionFromType(i,c),d=`${s}/${a}${l?`.${l.toLowerCase()}`:""}`,{editor:p,supportedEditors:h}=Er(d),m=$e(r,{name:a,path:`${s}/${a}`,type:S.FileFolderType.FILE,error:null,flags:{},config:{editor:p,supportedEditors:h},ext:l,date:new Date().toISOString()});switch(i){case S.FileFolderType.CLASS:case S.FileFolderType.METHOD:S.lspSubject.next({action:S.LspActions.DID_CREATE,payload:{filePath:d}});break}return r=m,r}),e.addCase(ha.rejected,(r,t)=>{const{fileName:a,path:s,type:i}=t.meta.arg,c=S.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=Er(`${s}${c?`.${c.toLowerCase()}`:""}`);return r=$e(r,{name:a,path:`${s}/${a}`,type:S.FileFolderType.FILE,error:{message:"Failed creating file"},flags:{},config:{editor:l,supportedEditors:d},ext:c,date:new Date().toISOString()}),r}),e.addMatcher(Sh(oo),(r,t)=>{const a=gt(r,t.meta.arg.file.path.split(".")[0]);return a&&(r=$e(r,{...a,flags:{...a.flags,loading:!0}})),r}),e.addMatcher(wh(oo),(r,t)=>{const a=gt(r,t.meta.arg.file.path.split(".")[0]);return a&&(r=$e(r,{...a,flags:{...a.flags,loading:!1}})),r}),e.addMatcher(Eh(oo),(r,t)=>{const a=gt(r,t.meta.arg.file.path.split(".")[0]);return a&&(r=$e(r,{...a,flags:{...a.flags,loading:!1}})),S.toastSubject.next({message:"Failed to open file, try again",kind:"danger"}),r})}}),{toggleExpandFolder:sD,expandFolder:iD,openAddFileInput:uD,addNewFile:sv,refreshFile:cD,removeFile:vc,setFolderChildren:lD}=ov.actions;function iv(e,r){switch(e){case S.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 r["webforms.display-mode"]===qc.AIRY&&(t.components.ROOT.props.airyMode=!0),t;case S.FileFolderType.METHODS:return`//%attributes = {}
|
|
118
|
+
`;default:return""}}function uv(e,r,t){switch(r){case S.FileFolderType.MOBILEFORM:return`${e}.MForm`;case S.FileFolderType.WEBFORM:return`${e}.WebForm`;case S.FileFolderType.METHOD:case S.FileFolderType.CLASS:return`${e}.${t?"4qs":"4dm"}`;default:return e}}function fD(e){switch(e){case S.FolderRootPath.WEBFORMS:return S.FileFolderType.WEBFORMS;case S.FolderRootPath.METHODS:return S.FileFolderType.METHODS;case S.FolderRootPath.CLASSES:return S.FileFolderType.CLASSES;case"Mobile":return S.FileFolderType.MOBILE;default:return e}}function cv(e){switch(e){case S.FileFolderType.WEBFORMS:return S.FileFolderType.WEBFORM;case S.FileFolderType.CLASSES:return S.FileFolderType.CLASS;case S.FileFolderType.METHODS:return S.FileFolderType.METHOD;case S.FileFolderType.FOLDER:return S.FileFolderType.FOLDER;case S.FileFolderType.MOBILE:return S.FileFolderType.MOBILEFORM;default:return e}}const dD=ne("files/tryEditMethod",async({method:e},{dispatch:r})=>{const t=e.filePath.split("/"),[a]=t[1].split("."),{editor:s}=Er(e.filePath);return await r(el({file:{name:a,path:e.filePath,date:new Date().toISOString(),type:S.FileFolderType.CLASS,editor:s},line:e.startingLine+1})).unwrap()}),yc=ne("explorer/createModelFiles",async(e,{dispatch:r,getState:t})=>{var m;const a=t(),s=S.FolderRootPath.CLASSES,i=a.settings.server.qodly,c=gt(a.explorer,s);if(!c)return;await r(Ar(s));const d=((m=t().explorer.find(_=>_.name===s))==null?void 0:m.children)||[];let p=[{content:"",name:""}];const h=_=>{switch(_){case"dataclass":return{name:e.type==="dataclass"?e.className:"DataStore",content:i?`extends DataClass
|
|
120
119
|
`:`Class extends DataClass
|
|
121
120
|
`};case"collection":return{name:e.type==="dataclass"?e.collectionName:"DataStore",content:i?`extends EntitySelection
|
|
122
121
|
`:`Class extends EntitySelection
|
|
@@ -124,34 +123,36 @@ Check the top-level render call using <`+I+">.")}return R}}function en(g,R){{if(
|
|
|
124
123
|
`:`Class extends Entity
|
|
125
124
|
`};case"model":return{name:"DataStore",content:i?`extends DataStoreImplementation
|
|
126
125
|
`:`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 nD(e){const n=e.split(".");return n.pop(),{name:n.join("."),ext:e.split(".")[e.split(".").length-1]}}const aD=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}}}),oD=re("explorer/uploadFile",async({file:e,path:n,parentNode:t},{dispatch:a})=>{const{editor:s,supportedEditors:i}=Er(n),{name:c,ext:l}=nD(e.name);a(Jg({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:Zg(e,n,d),content:s||Xg(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 ev(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 sD=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=ev(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?Av: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}),tv=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}`}}),rv=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:Qg(t),verb:E.DesignerRequestVerb.DROP,name:n,path:i.join("/")}),node:e}}),iD=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}}),uD=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")}}),cD=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")}}),lD=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)}),nv=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:"."}}))}),fD=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}),dD=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(xv(e))}),pD=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(Tv())}),hD=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(Cv(e))}),gD=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(Rv(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(wv({path:a,flags:{old:!0}})),null}}const l=await E.saveContent({verb:E.DesignerRequestVerb.SAVE_CONTENT,content:vD(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}]:[]}}),vD=(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}},av=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}),yD=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 ov=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(iv.fulfilled,n=>{n.sessions=[]})}}),{addBreakpointDecoration:mD,removeBreakpointDecoration:bD,setBreakpointsDecoration:_D,clearBreakpoints:ED,setActiveLine:SD,addExpression:wD,renameExpression:TD,removeExpression:CD,removeAllExpressions:xD,setExpression:RD,updateExpressionAt:OD,saveExpressions:AD,addSession:PD,updateSession:DD,removeSession:ID,removeSessionByIndex:FD,setSessions:sv,setCallChainVariables:$D,setExpressionVariables:MD,setSourceContent:ND,setDebuggerMeta:LD}=ov.actions,iv=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))}}),uv=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(sv(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")}}),jD=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())}),kD=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"},BD={model:{dataClasses:{},collections:{},extraProperties:{}},draft:{dataClasses:{},collections:{},extraProperties:{}},flags:{[no.DATACLASS_DELETE]:!0,[no.DATACLASS_DRAGGABLE]:!0}},cv=lr({name:"Models",initialState:BD,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:WD}=cv.actions;var lv=(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))(lv||{}),Zs=(e=>(e.STORAGE="storage",e.RELATEDENTITY="relatedEntity",e.RELATEDENTITIES="relatedEntities",e.CALCULATED="calculated",e.COMPOSITION="composition",e.ALIAS="alias",e))(Zs||{});const UD=e=>["string","uuid","number","long"].includes(e.type),HD=[{label:"Storage",value:"storage"},{label:"Calculated",value:"calculated"}],GD=[{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"}],qD=[{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"}],YD=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],zD=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],VD=[{label:"None",value:"none"},{label:"B-tree",value:"btree"},{label:"Cluster",value:"cluster"},{label:"Automatic",value:"auto"}],KD=(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 JD(e,n,t){const a=e;let s=0;for(;t[`${a}${s||""}`];)s++;return`${a}${s||""}`}const fv=e=>e.kind===Zs.RELATEDENTITY,dv=e=>e.kind===Zs.RELATEDENTITIES,XD=e=>dv(e)||fv(e),ZD=()=>Xr(e=>e.model.draft.dataClasses),QD=()=>Xr(e=>e.model.draft.collections),eI=e=>Xr(n=>n.model.draft.dataClasses[e]),tI=(e,n)=>Xr(t=>t.model.draft.dataClasses[e].attributes.find(E.by("name",n))),rI=()=>Xr(e=>e.model.draft.extraProperties),nI=()=>{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}},aI=cv.reducer;function Bu(e,n){const t=e.tabs.find(({path:a})=>a===E.SETTINGS_TAB_PATH);t&&(t.flags.touched=n)}const pv={SIDEBAR_SECTION_RESIZABLE:"sidebar.section.resizable"},hv={[pv.SIDEBAR_SECTION_RESIZABLE]:!0},gv=lr({name:"webforms",initialState:()=>{const{webforms:e}=pa();return{...e,templates:{data:[],selectedGroup:""},datasources:{...Oc.webforms.datasources,...e==null?void 0:e.datasources},flags:hv}},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(Ev.fulfilled,(n,t)=>{n.components=t.payload})}}),{toggleInspector:oI,inspect:sI,addComponent:vv,editComponent:yv,removeComponent:mv,setSelectedGroup:iI,setTemplatesData:bv,setTemplateData:_v,setDatasourcesTheme:uI,setWebformsFlag:cI}=gv.actions,lI=gv.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)}),fI=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(bv(c)),c}catch{return[]}}),dI=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(_v({group:e,components:c})),c}catch{return[]}}),Ev=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")}}),pI=re("webforms/addCraftedComponent",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 adding the crafted component")}}),hI=re("webforms/editCraftedComponent",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 editing the crafted component")}}),gI=re("webforms/removeCraftedComponent",async(e,{dispatch:n,rejectWithValue:t,getState:a})=>{try{n(mv(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}`)}}),vI=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(tv.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(`
|
|
126
|
+
`}}};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:E,ext:T})=>E===_.name&&T===(i?"4qs":"4dm"))),await Promise.all(p.map(async({name:_,content:E})=>{await r(ha({type:S.FileFolderType.CLASS,path:s,fileName:_,parentNode:c,content:E,qodly:a.settings.server.qodly}))})),await r(Ar(s))}),Ar=ne("explorer/fetchFolderContent",async(e,{rejectWithValue:r})=>{try{return(await S.getNodeInfo({verb:S.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 r("Failed loading file content please Reload")}},{getPendingMeta:()=>{}}),ao=ne("explorer/fetchFolderContentWithoutExpanding",async(e,{rejectWithValue:r})=>{try{return(await S.getNodeInfo({verb:S.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 r("Failed loading file content please Reload")}},{getPendingMeta:()=>{}});function pD(e){const r=e.split(".");return r.pop(),{name:r.join("."),ext:e.split(".")[e.split(".").length-1]}}const hD=ne("explorer/uploadFile",async e=>{const r=e.type.includes("image/")?"$rawPict=true":"$binary=true";try{const t=await fetch(`/rest/$upload?${r}`,{method:"POST",headers:{"Content-Type":e.type},body:e});return{status:t.status,data:await t.json()}}catch{return{status:500,data:null}}}),gD=ne("explorer/uploadFile",async({file:e,path:r,parentNode:t},{dispatch:a})=>{const{editor:s,supportedEditors:i}=Er(r),{name:c,ext:l}=pD(e.name);a(sv({parent:t,child:{name:c,path:`${r}/${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=${r}`,{method:"POST",headers:{"Content-Type":e.type},body:e});return d.status>=300?(a(vc({parent:t,child:{name:c,path:`${r}/${e.name}`,type:e.type,error:{message:"error uploading file"},flags:{},config:{editor:s,supportedEditors:i},ext:l}})),d.status!==413&&S.toastSubject.next({message:"error uploading file",kind:"danger"})):await a(Ar(t.path)),{status:d.status,fileName:e.name}}catch{return a(vc({parent:t,child:{name:c,path:`${r}/${e.name}`,type:e.type,error:{message:"error uploading file"},flags:{},config:{editor:s,supportedEditors:i},ext:l}})),S.toastSubject.next({message:"error uploading file",kind:"danger"}),{status:500,fileName:e.name}}}),ha=ne("explorer/createNewFile",async({fileName:e,type:r,path:t,parentNode:a,content:s},{dispatch:i,rejectWithValue:c,getState:l})=>{const{server:{qodly:d},project:p}=l().settings;try{const h=await S.setFileContent({name:uv(e,r,d),content:s||iv(r,p),path:t,asText:[S.FileFolderType.CLASS,S.FileFolderType.METHOD].includes(r)});return a.error&&(a.flags.expanded?await i(Ar(a.path)):await i(ao(a.path))),{qodly:d,file:h,parentNode:a}}catch{return c("failed to create folder")}});function lv(e,r){const{qodly:t=!0,withExtension:a=!0}=r||{},s=S.getFileExtentionFromType(e.type,t);let i="";switch(e.type){case S.FileFolderType.WEBFORM:i=`${S.FolderRootPath.WEBFORMS}/${e.name}`;break;case S.FileFolderType.METHOD:i=`${S.FolderRootPath.METHODS}/${e.name}`;break;case S.FileFolderType.CLASS:i=`${S.FolderRootPath.CLASSES}/${e.name}`;break;default:return""}return`${i}${a?`.${s}`:""}`}const vD=ne("explorer/createNewFileAndOpen",async(e,{dispatch:r,getState:t})=>{const a=await r(ha(e)).unwrap(),{qodly:s}=t().settings.server;if(a){const{file:i}=a,c=lv(i,{withExtension:!1,qodly:s}),{editor:l}=Er(c);await r(oo({file:{name:e.fileName,type:i.type,path:c,editor:l,date:new Date().toISOString()}}))}}),gs=ne("explorer/createNewNode",async({fileName:e,path:r,parentNode:t},{rejectWithValue:a})=>{try{return{file:await S.createFolder({verb:S.DesignerRequestVerb.CREATE_FOLDER,path:`${r}/${e}`,recursive:!0}),parentNode:t}}catch{return S.toastSubject.next({message:"failed to create folder",kind:"danger"}),a("failed to create folder")}}),ni=async(e,r={})=>{try{const t=e.path.split(".").at(-1),a=await S.getNodeInfo({verb:S.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:Mh(t)?"json":"text"}),s={editor:e.editor},i=S.getTypeFromExtension(e.path);i===S.FileFolderType.METHOD&&(s.attributes=S.parseAttributes(a.content),a.content=S.addAttributesToContent(a.content,{}));const{content:c,date:l,ext:d}=a;return r.confirmed===void 0&&(r.confirmed=!0),{date:l,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(d),confirmed:r.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===S.ERROR_CODES.FILE_NOT_FOUND))switch(e.path){case S.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:S.FileFolderType.ROLES,initialContent:s,content:s}}case S.SETTINGS_TAB_PATH:{const s={};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:settings"}},name:"Settings",path:e.path,type:S.FileFolderType.SETTINGS,initialContent:s,content:s}}}throw t}},oo=ne("explorer/openFile",async({file:e,inactive:r,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(E=>`Debugger/${E.threadId}`===e.path);if(_){const{source:{content:E},source:T}=_.currentStackFrame,C={name:e.name,type:S.FileFolderType.DEBUGGER,date:new Date().toISOString(),path:e.path,content:E,view:{panel:{isOpen:!1,type:"",current:""}},initialContent:E,flags:{confirmed:!0},extra:{source:T,editor:e.editor}};return i(Lt(C)),C}}let h=null;try{h=await ni(e,a)}catch(_){const{data:E}=_;if(E.__ERROR.find(T=>[S.ERROR_CODES.JSON_MALFORMED,S.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 C=await S.getNodeInfo({verb:S.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:"text"}),{content:$,date:D,ext:I}=C;h={date:D,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(I),confirmed:!0},extra:{editor:S.EDITOR.Code},name:e.name,path:e.path,type:S.getTypeFromExtension(e.path),initialContent:$,content:$}}}}return h&&(e.path===S.ROLES_TAB_PATH&&!l.flags.touched?i(Zc({content:h.content,date:h.date})):e.path===S.SETTINGS_TAB_PATH&&i(ri({path:"project",value:h.content})),i((r?kv:Lt)({...h,isNew:t})),h)}),el=ne("explorer/openFileAtLine",async({file:e},{getState:r,dispatch:t})=>{const{tabs:a}=r().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 ni(e);return t(Lt(i)),i}),fv=ne("explorer/injectContentAtLine",async(e,{getState:r,dispatch:t,rejectWithValue:a})=>{const s=r();e.path.split("/").pop();const c=gt(s.explorer,e.path);if(!c)return a(`Error while trying to inject content in file ${e.path}`);const l=await ni({name:c.name,date:c.date||new Date().toISOString(),path:`${c.path}.${c.ext}`,type:S.FileFolderType.CLASS,editor:c.config.editor});return await t(Lt(l)),{...e,path:`${c.path}.${c.ext}`}}),dv=ne("explorer/openFileAtSelection",async({file:e},{getState:r,dispatch:t})=>{const{tabs:a}=r().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 ni(e);return t(Lt(i)),i}),mc=ne("explorer/deleteFile",async e=>{const{name:r,type:t,path:a,flags:s}=e;if(s.error)return{deleted:!0,node:e};const i=a.split("/");return i.pop(),{deleted:await S.dropFile({root:S.FolderRootType.ROOT,type:cv(t),verb:S.DesignerRequestVerb.DROP,name:r,path:i.join("/")}),node:e}}),yD=ne("explorer/deleteFolder",async e=>{const{path:r,flags:t}=e;if(t.error)return{deleted:!0,node:e};const{deleted:a}=await S.removeItem({force:!0,path:r,verb:S.DesignerRequestVerb.REMOVE_ITEM});return{deleted:a,node:e}}),mD=ne("explorer/removeFileNode",async(e,{getState:r,dispatch:t})=>{const a=`${e.path}.${e.ext}`;if(await S.removeItem({verb:S.DesignerRequestVerb.REMOVE_ITEM,path:a,force:!0}),e.path==="Classes/DataStore"&&setTimeout(()=>{t(Vn())},Bs),e.ext){const{tabs:s}=r().root,i=s.findIndex(c=>c.path===a);i>=0&&t(ul(i))}return{deleted:!0,node:e}}),ga=ne("explorer/renameFile",async({file:e,newname:r})=>{if(e.type!=="folder"){const a=e.path.split("/");a.pop();const s=`${a.join("/")}/${e.name}.${e.ext}`,i=`${a.join("/")}/${r}.${e.ext}`;return await S.moveItem({verb:S.DesignerRequestVerb.MOVE_ITEM,path:s,newpath:i}),{old:{...e,path:s},new:{...e,name:r,path:i}}}const t=e.path.split("/");return t.pop(),await S.moveItem({verb:S.DesignerRequestVerb.MOVE_ITEM,path:`${t.join("/")}/${e.name}`,newpath:`${t.join("/")}/${r}`}),{old:e,new:{...e,name:r,path:`${t.join("/")}/${r}`}}}),so=ne("explorer/relocateNode",async({draggedNode:e,newLocation:r},{rejectWithValue:t})=>{try{await S.moveItem({verb:S.DesignerRequestVerb.MOVE_ITEM,path:`${e.path}.${e.ext}`,newpath:`${r.path}/${e.name}.${e.ext}`})}catch{return t("can't move item")}}),vs=ne("explorer/duplicateNode",async({node:e,duplicateName:r},{rejectWithValue:t,fulfillWithValue:a,getState:s})=>{const i=e.path.split("/");i.pop();try{const{tabs:c}=s().root,l=c.find(({path:m})=>m===`${e.path}${e.ext?`.${e.ext}`:""}`),d=["4dm","4qm","4qs"].includes(e.ext),{content:p}=l||await S.getNodeInfo({verb:S.DesignerRequestVerb.GET_INFO,path:`${e.path}.${e.ext}`,content:!0,as:d?"text":"json"}),h=await S.setFileContent({name:`${r}.${e.ext}`,content:p,path:i.join("/"),asText:d});return a({node:{...h,path:i.join("/")}})}catch{return t("failed to duplicate file")}}),bD=ne("explorer/executeMethod",async({methodName:e,params:r=[],resultingDataSource:t={},namespace:a=""},{rejectWithValue:s})=>{var i,c;try{const d=await window.Method4D.buildMethod({methodName:e,parameters:r,resultingDataSource:t},{namespace:a},null).callServerSide({id:"",serverSideRef:""},"onclick",{});return d!=null&&d.__NOTIFICATION?S.toastSubject.next({message:`${((i=d.__NOTIFICATION)==null?void 0:i.message)||""}`,kind:`${((c=d.__NOTIFICATION)==null?void 0:c.type)||"info"}`}):S.toastSubject.next({message:"Method executed Successfully",kind:"message"}),d}catch(l){return S.toastSubject.next({message:l.message||`Error executing the method "**${e}**"`,kind:"danger",markdown:!0}),s("can't execute method")}}),_D=ne("files/fetchFiles",async()=>S.getFolders(S.FolderRootType.WEBFORMS,S.FolderRootType.METHODS,S.FolderRootType.CLASSES)),tl=ne("tabs/renameDatasource",async(e,{dispatch:r,getState:t})=>{var E,T;const a=!!e.datasourceNamespace,{confirmed:s}=await r(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 m=[];if(a){const C=h.sharedDatasources.sources[l]||[];m.push(...C)}else if(p){const C=h.root.tabs.find(S.by("path",p));if(m=(T=(E=C==null?void 0:C.content)==null?void 0:E.metadata)==null?void 0:T.datasources,!m)return null}const _=new RegExp(`^${c}\\b`,"");if(m=m.map(C=>{const $=(S.isObjectDatasource(C)||!S.isSimpleDatasource(C))&&C.from&&_.test(C.from),D=C.events?C.events.map(I=>{var W,j,O,K;switch(I==null?void 0:I.type){case"method":{const Y=I;return Y.params?{...Y,params:Y.params.map(Q=>{var ae;return{...Q,datasource:(ae=Q.datasource)==null?void 0:ae.replace(new RegExp(`^${c}`,""),d)}}),returns:(W=Y.returns)!=null&&W.datasource?{...Y.returns,datasource:(j=Y.returns.datasource)==null?void 0:j.replace(new RegExp(`^${c}`,""),d)}:Y.returns}:Y}case"simple-action":{const Y=I;return Y.datasource?{...Y,datasource:{...Y.datasource,name:(O=Y.datasource.name)==null?void 0:O.replace(new RegExp(`^${c}`,""),d),from:(K=Y.datasource.from)==null?void 0:K.replace(new RegExp(`^${c}`,""),d)}}:Y}default:return I}}):C.events;return C.id===c?{...C,id:d,events:D}:$&&C.from?{...C,from:C.from.replace(new RegExp(`^${c}`,""),d),events:D}:{...C,events:D}}),i){const C=a?`${l}:${c}`:`${c}`,$=a?`${l}:${d}`:`${d}`;S.datasourcesSubject.next({path:p??"",action:S.DatasourcesActions.RENAME,old_reference:C,new_reference:$,is_shared:a})}return{path:p,namespace:l,datasources:m}}),rl=ne("tabs/edit-datasource",(e,{getState:r})=>{var i,c;const t=r();let a=[];if(e.namespace)a=t.sharedDatasources.sources[e.namespace];else{const l=t.root.tabs.find(S.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)}),pv=ne("tabs/fetchChanges",async(e,{getState:r})=>{const a=xa(r()).filter(s=>[S.FileFolderType.METHOD,S.FileFolderType.CLASS].includes(s.type));return S.getFilesInfo(...a.map(s=>{const[i]=s.path.split("/").filter(Boolean);return{name:s.name,type:s.type,root:i,path:"."}}))}),SD=ne("files/saveAll",async(e,{getState:r,dispatch:t})=>{const a=kc(r());for(const s of a)t(va({tab:s}))}),nl=ne("files/tryCloseTab",async(e,{getState:r,dispatch:t})=>{const{tabs:a}=r().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:Ws(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(ul(s)),i.path===S.ROLES_TAB_PATH&&i.flags.touched&&(async()=>{const l=await S.getNodeInfo({verb:S.DesignerRequestVerb.GET_INFO,path:S.ROLES_TAB_PATH,content:!0,as:"json"});t(Zc({content:l.content,date:l.date}))})(),!0}),ED=ne("files/tryCloseOtherTabs",async(e,{getState:r,dispatch:t})=>{const{tabs:a}=r().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(Nv(e))}),wD=ne("files/tryCloseAllTabs",async(e,{getState:r,dispatch:t})=>{const{tabs:a}=r().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($v())}),TD=ne("files/tryCloseRightTabs",async(e,{getState:r,dispatch:t})=>{const{tabs:a}=r().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(Mv(e))}),CD=ne("files/tryCloseLeftTabs",async(e,{getState:r,dispatch:t})=>{const{tabs:a}=r().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(Lv(e))}),bc=ne("files/reloadTab",async(e,{dispatch:r})=>{if(e.flags.touched){const{confirmed:s}=await r(fr({title:Ws(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=ag(e.path),a=await S.getNodeInfo({verb:S.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:t});if(e.path===S.ROLES_TAB_PATH){const{roles:s,privileges:i}=ei(a.content);r(Xc({roles:s,privileges:i}))}else if(e.path===S.SETTINGS_TAB_PATH){const{content:s}=a;r(ri({path:"project",value:s}))}else{const{content:s}=a;e.type===S.FileFolderType.WEBFORM?S.webformSubject.next({path:e.path,action:S.WebformActions.RELOAD,payload:s.components}):e.type===S.FileFolderType.MODEL&&fg.next({action:"reload",payload:s})}return a}),va=ne("files/saveTab",async({tab:e},{dispatch:r,getState:t})=>{const{path:a,content:s}=e;if(e.type===S.FileFolderType.DEBUGGER)return{...e,errors:[]};a.split("/").pop();const c=await S.getFilesInfo({path:a});if(c.files[0]){const h=new Date(e.date),m=new Date(c.files[0].date);if(h.getTime()<m.getTime()){const{confirmed:_}=await r(fr({title:Ws(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 r(Fv({path:a,flags:{old:!0}})),null}}const l=await S.saveContent({verb:S.DesignerRequestVerb.SAVE_CONTENT,content:xD(e,t()),path:a});(e.type===S.FileFolderType.CLASS||e.type===S.FileFolderType.MODEL)&&setTimeout(()=>{r(Vn())},Bs);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}]:[]}}),xD=(e,r)=>{switch(!0){case e.path==="settings.json":case e.path===S.SETTINGS_TAB_PATH:return r.settings.project;case e.type===S.FileFolderType.ROLES:return{...e.content,...ti(r.roles)};case e.type===S.FileFolderType.MODEL:return e.content||{toJSON:!0,dataClasses:[],extraProperties:{}};default:return e.content}},Jp=async e=>{if(e.type===S.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 r=e.path.split("/").filter(Boolean)[0],t=await S.getFile({root:r,type:e.type,verb:S.DesignerRequestVerb.GET,name:e.name}),a={};t.type===S.FileFolderType.METHOD&&(a.attributes=S.parseAttributes(t.content));const{date:s,name:i,type:c,content:l}=t;return{date:s,flags:{enabled:e.type===S.FileFolderType.WEBFORM},extra:a,view:{panel:{isOpen:!1,type:"",current:""}},name:i,path:e.path,type:c,initialContent:l,content:c===S.FileFolderType.MODEL?$h(l):l}},hv=ne("files/tryInjectMethod",async({type:e,dataclass:r},{getState:t,dispatch:a})=>{const{root:{tabs:s},settings:{server:{qodly:i}}}=t(),c=S.getFileExtentionFromType("class",i);let l="",d="",p=null;if(!r)l="DataStore",d=`Classes/DataStore.${c}`;else switch(e){case"dataclass":l=r,d=`Classes/${r}.${c}`;break;case"collection":l=`${r}Selection`,d=`Classes/${r}Selection.${c}`;break;case"entity":l=`${r}Entity`,d=`Classes/${r}Entity.${c}`;break;default:return p}const h=s.find(S.by("path",d));if(h)return a(Lt(h)),h;try{p=await Jp({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:S.FileFolderType.CLASS})}catch{r?await a(yc({type:"dataclass",className:r,collectionName:`${r}Selection`,toCreate:e})):await a(yc({type:"model"}))}return p=await Jp({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:S.FileFolderType.CLASS}),p.path=d,a(Lt(p)),p}),RD=ne("roles/open",async(e,{dispatch:r,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path===S.ROLES_TAB_PATH);if(s)return r(Lt(s)),s;r($s())});function Zp(e,r){const{line:t,offset:a,type:s="saved"}=r;e.breakpoints[s].locations.push({line:t}),Ke.isNumber(a)&&(e.breakpoints[s].offset=a)}function Xp(e,r,t,a){e.breakpoints[t].locations=r,Ke.isNumber(a)&&(e.breakpoints[t].offset=a)}function Qp({filePath:e,fileType:r,methodName:t,className:a,ext:s,source:i}){return{filePath:e,fileType:r,methodName:t,className:a,ext:s,source:i,breakpoints:{draft:{locations:[],offset:0},saved:{locations:[],offset:0}}}}function eh(e,r,t){let a=!1;const s=e.map(i=>i[t]!==r[t]?i:(a=!0,{...i,...r}));return a?s:[...s,r]}function ds(e){return e.map(({label:r})=>({label:r}))}const gv=lr({name:"debugger",initialState:()=>{var r,t;const{debugger:e={meta:{state:Yr.DETACHED},list:[],sessions:[],expressions:[]}}=_a();return{meta:{...e.meta,state:((r=e.meta)==null?void 0:r.state)===Yr.ATTACHED?(t=e.meta)==null?void 0:t.state:Yr.DETACHED},list:e.list||[],sessions:e.sessions||[],expressions:e.expressions||[]}},reducers:{addBreakpointDecoration(e,r){const{filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l,breakpoint:d}=r.payload,p=zn(e.list,t,s,i);if(p)Zp(p,d);else{if(a===S.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=Qp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});Zp(h,d),e.list.push(h)}},removeBreakpointDecoration(e,r){const{filePath:t,methodName:a,line:s,offset:i=0,type:c="saved"}=r.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(m=>m.line+h!==d),c==="saved"&&(p.breakpoints.draft.locations=p.breakpoints.draft.locations.filter(m=>m.line+h!==d))})}}else{const l=zn(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,r){const{filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l,breakpoints:d,offset:p,type:h="saved",clearDraft:m}=r.payload,_=zn(e.list,t,s);if(_)Xp(_,d,h,p),m&&h!=="draft"&&(_.breakpoints.draft.locations=[]);else{const E=Qp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});Xp(E,d,h,p),e.list.push(E)}},clearBreakpoints(e,r){const{filePath:t,type:a="saved"}=r.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,r){const{threadId:t,line:a,highlight:s}=r.payload,i=ft(e.sessions,t);i&&(i.activeLine=a,s&&(i.highlightedLines={start:a,end:a}))},addExpression(e,r){const{threadId:t,label:a,save:s}=r.payload,i=ft(e.sessions,t);i&&i.stopped&&(i.expressions=[...i.expressions||[],{label:a}],s&&(e.expressions=ds(i.expressions)))},removeExpression(e,r){const{threadId:t,index:a,save:s}=r.payload,i=ft(e.sessions,t);i&&(i.expressions=i.expressions.filter((c,l)=>l!==a),s&&(e.expressions=ds(i.expressions)))},removeAllExpressions(e,r){const{threadId:t,save:a}=r.payload,s=ft(e.sessions,t);s&&(s.expressions=[],a&&(e.expressions=[]))},renameExpression(e,r){const{threadId:t,index:a,replacement:s,save:i}=r.payload,c=ft(e.sessions,t);c&&c.expressions[a]&&(c.expressions[a].label=s,i&&(e.expressions=ds(c.expressions)))},setExpression(e,r){const{threadId:t,expression:a}=r.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,r){const{threadId:t,index:a,value:s}=r.payload,i=ft(e.sessions,t);if(i){const c=i.expressions[a];c&&(c.result=`"${s}"`,c.nakedResult=s)}},saveExpressions(e,r){const{expressions:t}=r.payload;e.expressions=ds(t)},addSession(e,r){const{threadId:t,channelId:a,stackFrames:s,exceptions:i=[]}=r.payload,c=ft(e.sessions,t),l=s[0],{expressions:d=[]}=e;if(c)c.expressions=d;else{const p=Mc(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,r){const{threadId:t,changes:a}=r.payload;e.sessions=e.sessions.map(s=>s.threadId===t?{...s,...a}:s)},removeSession(e,r){const{threadId:t}=r.payload;e.sessions=e.sessions.filter(a=>a.threadId!==t)},removeSessionByIndex(e,r){const t=r.payload;e.sessions.splice(t,1)},setSessions(e,r){const t=r.payload;e.sessions=t},setCallChainVariables(e,r){const{threadId:t,frameId:a,variables:s}=r.payload;e.sessions=e.sessions.map(i=>{var c;return i.threadId===t?{...i,variables:{...i.variables,callchain:eh((c=i.variables)==null?void 0:c.callchain,{frameId:a,items:s},"frameId")}}:i})},setExpressionVariables(e,r){const{threadId:t,variablesReference:a,variables:s}=r.payload;e.sessions=e.sessions.map(i=>{var c;return i.threadId===t?{...i,variables:{...i.variables,expressions:eh((c=i.variables)==null?void 0:c.expressions,{variablesReference:a,items:s},"variablesReference")}}:i})},setSourceContent(e,r){const{threadId:t,content:a}=r.payload,s=ft(e.sessions,t);s&&(s.currentStackFrame.source={...s.currentStackFrame.source,content:a})},setDebuggerMeta(e,r){if(r.payload.state===Yr.ERROR){e.meta.error={...e.meta.error,time:Date.now()};const{override:t,error:a={code:null,reason:"",type:Ts.SOCKET_ERROR}}=r.payload;if((t||e.meta.state!==Yr.ERROR)&&(e.meta.error={...e.meta.error,...a}),(a==null?void 0:a.type)===Ts.SOCKET_CLOSURE&&!(a!=null&&a.reason)&&e.meta.state===Yr.DETACHED)return}e.meta.state=r.payload.state}},extraReducers:e=>{e.addCase(yv.fulfilled,r=>{r.sessions=[]})}}),{addBreakpointDecoration:OD,removeBreakpointDecoration:AD,setBreakpointsDecoration:PD,clearBreakpoints:DD,setActiveLine:ID,addExpression:FD,renameExpression:$D,removeExpression:MD,removeAllExpressions:ND,setExpression:LD,updateExpressionAt:jD,saveExpressions:kD,addSession:BD,updateSession:WD,removeSession:UD,removeSessionByIndex:HD,setSessions:vv,setCallChainVariables:GD,setExpressionVariables:qD,setSourceContent:YD,setDebuggerMeta:zD}=gv.actions,yv=ne("files/wipeDebuggerSessions",async(e,{getState:r,dispatch:t})=>{const{sessions:a}=r().debugger;for(const{threadId:s}of a){const i=Mc(s);t(nl(i))}}),mv=ne("files/removeDebuggerSessionsNotIn",async(e,{getState:r,dispatch:t})=>{const{threadIds:a}=e,{sessions:s}=r().debugger,i=[],c=s.filter(l=>{const d=a.includes(l.threadId);return d||i.push(l.threadId),d});return t(vv(c)),{staleThreadIds:i}}),al=ne("models/fetch",async()=>{try{return(await S.http(S.API_PREFIX,{method:"POST",body:JSON.stringify({verb:S.DesignerRequestVerb.GET_INFO,path:S.MODEL_TAB_PATH,as:"json",content:!0}),headers:new Headers({"Content-Type":"application/json"})})).content}catch(e){return e.message}}),Ms=ne("models/save",async(e,{getState:r,dispatch:t,rejectWithValue:a})=>{const{tabs:s}=r().root,i=s.find(c=>c.path===S.MODEL_TAB_PATH);if(!i)return a("Error while saving the model");try{const c=await S.http(S.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(Vn())},Bs),{...c,path:i.path,content:e.content||{toJSON:!0,dataClasses:[],extraProperties:{}}}}catch{return a("Error while saving the model")}}),VD=ne("models/open",async(e,{dispatch:r,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path==="models/main");if(s)return r(Lt(s)),s;r(al())}),KD=ne("model/rename-dataclass",async(e,{getState:r,dispatch:t})=>{var m,_;const{dataclassId:a,selectionId:s,name:i}=e;let c=r();const l=c.explorer.find(E=>E.path===S.FolderRootPath.CLASSES);if(!l)throw new Error("Classes folder was not found!");await t(Ar(l.path)),c=r();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`}};(_=(m=c.explorer.find(E=>E.path===S.FolderRootPath.CLASSES))==null?void 0:m.children)==null||_.forEach(E=>{E.name===d.class.filename_update&&(d.class.newNameTaken=!0),E.name===d.entity.filename_update&&(d.entity.newNameTaken=!0),E.name===d.selection.filename_update&&(d.selection.newNameTaken=!0),E.name===a?(d.class.found=!0,d.class.file=E):E.name===`${a}Entity`?(d.entity.found=!0,d.entity.file=E):E.name===s&&(d.selection.found=!0,d.selection.file=E)});const p=Object.entries(d).reduce((E,T)=>{const[C,$]=T;return $.found?$.newNameTaken?[...E,{type:"error",message:`Cannot rename ${C} file to ${$.filename_update} because it already exists. The existing file will be used instead!`}]:E:[...E,{type:"warning",message:`${a} ${C} 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(E=>E.found&&E.file&&!E.newNameTaken);await Promise.all(h.map(async E=>await t(ga({file:E.file,newname:E.filename_update})))),h.length>0&&t(Ar("Classes"))}),po={DATACLASS_DELETE:"dataclass.delete",DATACLASS_DRAGGABLE:"dataclass.draggable"},JD={model:{dataClasses:{},collections:{},extraProperties:{}},draft:{dataClasses:{},collections:{},extraProperties:{}},flags:{[po.DATACLASS_DELETE]:!0,[po.DATACLASS_DRAGGABLE]:!0}},bv=lr({name:"Models",initialState:JD,reducers:{setModelFlag(e,r){e.flags={...e.flags,...r.payload}}},extraReducers(e){e.addCase(al.fulfilled,(r,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}),r.draft.dataClasses=a,r.draft.collections=s,r.draft.extraProperties=i,r.model.dataClasses=a,r.model.collections=s,r.model.extraProperties=i}),e.addCase(Ms.pending,()=>{}).addCase(Ms.fulfilled,(r,t)=>{const a={},s={},i=t.payload.content.extraProperties||{};t.payload.content.dataClasses.forEach(c=>{a[c.name]=c,s[c.collectionName]=c}),r.draft.dataClasses=a,r.draft.collections=s,r.draft.extraProperties=i,r.model.dataClasses=a,r.model.collections=s,r.model.extraProperties=i})}}),{setModelFlag:ZD}=bv.actions;var _v=(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))(_v||{}),ai=(e=>(e.STORAGE="storage",e.RELATEDENTITY="relatedEntity",e.RELATEDENTITIES="relatedEntities",e.CALCULATED="calculated",e.COMPOSITION="composition",e.ALIAS="alias",e))(ai||{});const XD=e=>["string","uuid","number","long"].includes(e.type),QD=[{label:"Storage",value:"storage"},{label:"Calculated",value:"calculated"}],eI=[{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"}],tI=[{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"}],rI=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],nI=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],aI=[{label:"None",value:"none"},{label:"B-tree",value:"btree"},{label:"Cluster",value:"cluster"},{label:"Automatic",value:"auto"}],oI=(e,r)=>({toJSON:!0,extraProperties:r,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 sI(e,r,t){const a=e;let s=0;for(;t[`${a}${s||""}`];)s++;return`${a}${s||""}`}const Sv=e=>e.kind===ai.RELATEDENTITY,Ev=e=>e.kind===ai.RELATEDENTITIES,iI=e=>Ev(e)||Sv(e),uI=()=>Qr(e=>e.model.draft.dataClasses),cI=()=>Qr(e=>e.model.draft.collections),lI=e=>Qr(r=>r.model.draft.dataClasses[e]),fI=(e,r)=>Qr(t=>t.model.draft.dataClasses[e].attributes.find(S.by("name",r))),dI=()=>Qr(e=>e.model.draft.extraProperties),pI=()=>{const e=Qr(s=>s.model.flags),r=s=>s in e?e[s]:void 0,t=r(po.DATACLASS_DELETE),a=r(po.DATACLASS_DRAGGABLE);return{deleteDataclass:t,draggableDataclass:a,flags:e}},hI=bv.reducer;function Gu(e,r){const t=e.tabs.find(({path:a})=>a===S.SETTINGS_TAB_PATH);t&&(t.flags.touched=r)}const wv={SIDEBAR_SECTION_RESIZABLE:"sidebar.section.resizable"},Tv={[wv.SIDEBAR_SECTION_RESIZABLE]:!0},Cv=lr({name:"webforms",initialState:()=>{const{webforms:e}=_a();return{...e,templates:{data:[],selectedGroup:""},datasources:{...Fc.webforms.datasources,...e==null?void 0:e.datasources},flags:Tv}},reducers:{toggleInspector:(e,r)=>{const{type:t}=r.payload;e.inspector[t].active=!e.inspector[t].active,e.inspector[t].active||(e.inspector[t].data=void 0)},inspect:(e,r)=>{const{type:t,data:a}=r.payload;e.inspector[t].active&&(e.inspector[t].data=a)},addComponent:(e,r)=>{e.components.push(r.payload)},editComponent:(e,r)=>{const{id:t,changes:a}=r.payload;e.components=e.components.map(s=>s.id===t?{...s,...a}:s)},removeComponent:(e,r)=>{const{payload:t}=r,a=e.components.findIndex(s=>s.id===t);a!==-1&&e.components.splice(a,1)},setSelectedGroup:(e,r)=>{e.templates.selectedGroup=r.payload.selectedGroup},setTemplatesData:(e,r)=>{e.templates.data=r.payload},setTemplateData:(e,r)=>{const{group:t,components:a}=r.payload,s=e.templates.data.find(i=>i.group===t);s&&(s.components=a)},setDatasourcesTheme:(e,r)=>{e.datasources.theme=r.payload},setWebformsFlag(e,r){e.flags={...e.flags,...r.payload}}},extraReducers(e){e.addCase(Dv.fulfilled,(r,t)=>{r.components=t.payload})}}),{toggleInspector:gI,inspect:vI,addComponent:xv,editComponent:Rv,removeComponent:Ov,setSelectedGroup:yI,setTemplatesData:Av,setTemplateData:Pv,setDatasourcesTheme:mI,setWebformsFlag:bI}=Cv.actions,_I=Cv.reducer,ol=Ke.curry((e,r)=>{var s,i;const t={...r.sharedDatasources.sources},a=(i=((s=r.root.tabs.find(S.by("path",e)))==null?void 0:s.content).metadata)==null?void 0:i.datasources;return a&&(t[e]=a),Ke.cloneDeep(t)}),SI=ne("webforms/fetchTemplates",async(e,{dispatch:r,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 r(Av(c)),c}catch{return[]}}),EI=ne("webforms/fetchTemplate",async({name:e},{dispatch:r,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 r(Pv({group:e,components:c})),c}catch{return[]}}),Dv=ne("webforms/fetchCraftedComponents",async(e,{rejectWithValue:r})=>{try{return(await S.getNodeInfo({path:"WebForms/crafted_components.json",verb:S.DesignerRequestVerb.GET_INFO,content:!0,as:"json"})).content}catch{return r("Error while loading the crafted components")}}),wI=ne("webforms/addCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(xv(e));const{webforms:{components:s}}=a();S.setCraftedComponents(s)}catch{return t("Error while adding the crafted component")}}),TI=ne("webforms/editCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(Rv(e));const{webforms:{components:s}}=a();S.setCraftedComponents(s)}catch{return t("Error while editing the crafted component")}}),CI=ne("webforms/removeCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(Ov(e));const{webforms:{components:s}}=a();S.setCraftedComponents(s)}catch{return t("Error while removing the crafted component")}}),sl=ne("datasources/add-datasource",async(e,{getState:r,rejectWithValue:t})=>{var a,s;try{const i=r(),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 S.setSharedSources(p)}else(((s=(a=i.root.tabs.find(S.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")}}),il=ne("datasources/edit-datasource",async(e,{getState:r,rejectWithValue:t})=>{try{const{namespace:a,path:s}=e,i=r(),c=!!e.namespace,l=ol(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 S.setSharedSources({...i.sharedDatasources.sources,[e.namespace]:d}),{list:d,path:e.path,namespace:e.namespace}}catch{t(`Error while editing datasource ${e.id}`)}}),xI=e=>e.type===ya.fulfilled.type,ya=ne("datasources/rename-datasource",async(e,{getState:r,rejectWithValue:t})=>{try{const a=r(),s=!!e.namespace,i=e.namespace||e.path,c=ol(e.path,a),l=Ke.defaultTo(c[i],[]),d=new RegExp(`^${e.id}\\b`,"");if(l.forEach(p=>{var m;const h=(S.isObjectDatasource(p)||!S.isSimpleDatasource(p))&&p.from&&d.test(p.from);e.updateRefs&&((m=p.events)==null||m.forEach(_=>{var E,T,C,$,D;switch(_.type){case"method":{const I=_;I.params.forEach(W=>{W.datasource&&Object.assign(W,{datasource:W.datasource.replace(new RegExp(`^${e.id}`,""),e.new_name)})}),I.returns&&Object.assign(I.returns,{datasource:(T=(E=I.returns)==null?void 0:E.datasource)==null?void 0:T.replace(new RegExp(`^${e.id}`,""),e.new_name)});return}case"simple-action":{const I=_;I.datasource&&Object.assign(I.datasource,{name:(C=I.datasource.name)==null?void 0:C.replace(new RegExp(`^${e.id}`,""),e.new_name),from:($=I.datasource.from)==null?void 0:$.replace(new RegExp(`^${e.id}`,""),e.new_name),target:(D=I.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=S.getDatasourceId({id:e.id,namespace:e.namespace}),h=S.getDatasourceId({id:e.new_name,namespace:e.namespace});S.datasourcesSubject.next({path:e.path??"",action:S.DatasourcesActions.RENAME,old_reference:p,new_reference:h,is_shared:s})}return s&&await S.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}`)}}),io=ne("datasources/delete-datasource",async(e,{getState:r,rejectWithValue:t})=>{try{const a=r(),s=!!e.namespace,i=e.namespace||e.path,l=ol(e.path,a)[i].filter(S.outById(e.id));return s&&await S.setSharedSources({...a.sharedDatasources.sources,[e.namespace]:l}),{list:l,path:e.path,namespace:e.namespace}}catch{return t(`Error while removing datasource ${e.id}`)}}),ho=lr({name:"root",initialState:()=>{const e=_a();return{filesLoading:!1,tabs:e.tabs||[],activeTab:e.activeTab,recent:e.recent||[]}},reducers:{setPanelState(e,r){const{path:t,...a}=r.payload;e.tabs.forEach(s=>{s.path===t&&(s.view||(s.view={panel:{isOpen:!1,type:"",current:""}}),Object.assign(s.view.panel,a))})},openSettingsTab(e){const r={date:new Date().toISOString(),flags:{confirmed:!0},view:{panel:{isOpen:!1,type:"",current:""}},extra:{editor:{key:"editors:settings"}},name:"Settings",path:S.SETTINGS_TAB_PATH,type:S.FileFolderType.SETTINGS,initialContent:{},content:{}};let t=e.tabs.find(a=>a.path===r.path);if(t||(e.tabs.push(r),t=e.tabs[e.tabs.length-1]),e.activeTab!==r.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=r.path,t.weight=((a==null?void 0:a.weight)||0)+1}},addDataSource(e,r){var i;const{payload:{path:t,datasourceDef:a}}=r,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}))},addWebformState(e,r){var i;const{payload:{path:t,stateDef:a}}=r,s=e.tabs.find(c=>c.path===t);s&&(s.content.metadata.states=s.content.metadata.states||[Hc],(i=s.content.metadata.states)!=null&&i.find(l=>l.id===a.id)||(s.content.metadata.states=[...s.content.metadata.states,a],s.flags={...s.flags,touched:!0,confirmed:!0}))},removeWebformState(e,r){const{path:t,id:a}=r.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:Nh(s.content,a)}:s)},editWebformState(e,r){const{path:t,state:a}=r.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,states:s.content.metadata.states.map(i=>i.id===a.id?a:i)}}}:s)},removeDataSource(e,r){const{path:t,datasourceID:a}=r.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,r){const{payload:{path:t,datasourceArr:a}}=r;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,r){e.tabs=r.payload},closeTab(e,r){const t=r.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,r){e.tabs=e.tabs.filter(t=>t.path===r.payload),e.activeTab=r.payload},closeAllTabs(e){e.tabs=[],e.activeTab=""},closeRightTabs(e,r){e.tabs.splice(r.payload+1),e.activeTab=e.tabs[r.payload].path},closeLeftTabs(e,r){e.tabs.splice(0,r.payload)},closeSavedTabs(e){e.tabs=e.tabs.filter(({flags:{touched:t}})=>t);const r=e.tabs.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null);e.activeTab=(r==null?void 0:r.path)||""},confirmTab(e,r){const t=e.tabs.find(({path:a})=>a===r.payload);t&&(t.flags.confirmed||ho.caseReducers.setTabFlags(e,{type:r.type,payload:{path:r.payload,flags:{confirmed:!0}}}))},selectTab(e,r){const t=e.tabs.find(({path:s})=>s===r.payload);if(!t||e.activeTab===r.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=r.payload},openTabUnselected(e,r){const t=r.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,r){const t=[S.FileFolderType.DEBUGGER],{isNew:a,...s}=r.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,r){const{path:t,content:a,contentPath:s}=r.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,r){const{path:t,flags:a}=r.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,...a}}:s)},setTabsFlags(e,r){const{tabs:t,flags:a}=r.payload;e.tabs=e.tabs.map(s=>t.includes(s.path)?{...s,flags:{...s.flags,...a}}:s)},setTabExtra(e,r){const{path:t,extra:a,flags:s}=r.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,r){const{path:t,styles:a=[]}=r.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,r){return e.tabs=e.tabs.map(t=>t.path===r.payload.path?r.payload:t),e}},extraReducers:e=>{e.addCase(hc,(r,t)=>{if(t.payload.settingsKey==="studio.enablePreview"&&t.payload.value===!1){const a=r.tabs.find(({flags:{confirmed:s}})=>s===!1);a&&ho.caseReducers.setTabFlags(r,{type:"",payload:{path:a.path,flags:{confirmed:!0}}})}}),e.addCase(fv.fulfilled,(r,t)=>{if(!t.payload)return;const{content:a,line:s,path:i}=t.payload,c=r.tabs.find(l=>l.path===i);if(c&&typeof c.content=="string"){const l=c.content.trim().split(`
|
|
128
127
|
`);l.splice(s,0,a),c.content=l.join(`
|
|
129
|
-
`)}}),e.addCase(
|
|
128
|
+
`)}}),e.addCase(va.pending,(r,t)=>{const{tab:a}=t.meta.arg;switch(a.type){case S.FileFolderType.CLASS:case S.FileFolderType.METHOD:S.lspSubject.next({action:S.LspActions.WILL_SAVE,payload:{filePath:a.path}});break}}),e.addCase(va.fulfilled,(r,t)=>{if(!t.payload)return;const a=r.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 S.FileFolderType.CLASS:case S.FileFolderType.METHOD:S.lspSubject.next({action:S.LspActions.DID_SAVE,payload:{filePath:a.path,content:a.content}});break}t.payload.errors.length>0&&S.toastSubject.next({kind:"error",message:t.payload.errors})}}),e.addCase(va.rejected,(r,t)=>{S.toastSubject.next({kind:"danger",message:"Cannot save file"})}),e.addCase(pv.fulfilled,(r,t)=>{const a=[...t.payload.files];r.tabs=r.tabs.map(s=>{if([S.FileFolderType.CLASS,S.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(bc.pending,(r,t)=>{r.tabs=r.tabs.map(a=>a.path===t.meta.arg.path?{...a,flags:{...a.flags,loading:!0}}:a)}),e.addCase(bc.fulfilled,(r,t)=>{const a=t.payload;if(a){const s=t.meta.arg;r.tabs=r.tabs.map(i=>{if(i.name===s.name&&i.type===s.type){const c=i.extra||{};return i.type===S.FileFolderType.METHOD?(c.attributes=S.parseAttributes(a.content),a.content=S.addAttributesToContent(a.content,{})):i.type===S.FileFolderType.SETTINGS&&(a.content={}),{...i,initialContent:a.content,content:a.content,date:a.date,flags:{enabled:i.flags.enabled,confirmed:i.flags.confirmed},extra:c}}return i})}}),e.addCase(el.fulfilled,(r,t)=>{if(!t.payload)return;const{line:a,offset:s}=t.meta.arg,i=r.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(dv.fulfilled,(r,t)=>{if(!t.payload)return;const{selection:a}=t.meta.arg,s=r.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(ga.fulfilled,(r,t)=>{t.payload.new!==t.payload.old&&(r.tabs=[...r.tabs].map(a=>a.path===t.payload.old.path?{...a,path:t.payload.new.path,name:t.payload.new.name}:a),r.activeTab===t.payload.old.path&&(r.activeTab=t.payload.new.path))}),e.addCase(mc.pending,(r,t)=>{const a=t.meta.arg,s=`${a.path}${a.ext?`.${a.ext}`:""}`;switch(a.ext){case"4dm":case"4qs":S.lspSubject.next({action:S.LspActions.WILL_DELETE,payload:{filePath:s}});break}}),e.addCase(mc.fulfilled,(r,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":S.lspSubject.next({action:S.LspActions.DID_DELETE,payload:{filePath:i}});break}if(r.tabs=r.tabs.filter(c=>c.path!==i),r.recent=r.recent.filter(({path:c})=>i!==c),r.tabs.length){r.activeTab=r.tabs[r.tabs.length-1].path;return}r.activeTab=""}),e.addCase(so.fulfilled,(r,t)=>{const{draggedNode:a,newLocation:s}=t.meta.arg;if(r.tabs.find(i=>i.path===`${a.path}${a.ext?`.${a.ext}`:""}`))return r.tabs=r.tabs.map(i=>i.path===`${a.path}${a.ext?`.${a.ext}`:""}`?{...i,path:`${s.path}/${a.name}.${a.ext}`}:i),r.recent=r.recent.map(i=>i.path===`${a.path}${a.ext?`.${a.ext}`:""}`?{...i,path:`${s.path}/${a.name}.${a.ext}`}:i),r.activeTab=`${s.path}/${a.name}.${a.ext}`,r}),e.addCase(Ms.fulfilled,(r,t)=>{const a=r.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(hv.fulfilled,(r,t)=>{var i;if(!((i=t.payload)!=null&&i.path))return;const a=r.tabs.find(S.by("path",t.payload.path));if(!a)return;a.content=a.content+`
|
|
130
129
|
exposed Function ${t.meta.arg.name}()
|
|
131
130
|
`,a.flags={...a.flags,touched:!0,confirmed:!0};const s=a.content.split(`
|
|
132
|
-
`);a.extra={...a.extra,editor:
|
|
131
|
+
`);a.extra={...a.extra,editor:S.EDITOR.Code,initialLineInfo:{line:s.length-1,lastModification:Date.now()}}}),e.addCase(tl.fulfilled,(r,t)=>{var i,c;if(!((i=t.payload)!=null&&i.path)||(c=t.payload)!=null&&c.namespace)return;const a=t.payload.path,s=r.tabs.find(S.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(rl.fulfilled,(r,t)=>{const{payload:a,meta:{arg:s}}=t;s.namespace||r.tabs.forEach(i=>{i.path===s.path&&Object.assign(i.content,{metadata:{...i.content.metadata,datasources:a}})})}),e.addCase(mv.fulfilled,(r,t)=>{const{staleThreadIds:a}=t.payload;if(a.length===0)return;const s=a.map(i=>`Debugger/${i}`);if(r.tabs=r.tabs.filter(i=>!s.includes(i.path)),r.recent=r.recent.filter(({path:i})=>!s.includes(i)),r.tabs.length){r.activeTab=r.tabs[r.tabs.length-1].path;return}r.activeTab=""}),e.addCase(Qc.pending,r=>Gu(r,!1)),e.addMatcher(Sr(hc),(r,t)=>{["project"].includes(t.payload.path)&&Gu(r,!0)}),e.addMatcher(Sr(ri),(r,t)=>{Gu(r,!1)}),e.addMatcher(Sr(jv,Lt),(r,t)=>{const{payload:a}=t;let s;typeof a=="string"?s=r.tabs.find(({path:i})=>a===i):s=a,s&&(r.recent=[s,...r.recent.filter(({path:i})=>![s.path,"settings"].includes(i))])}),e.addMatcher(Sr(rv,tv),(r,t)=>{r.tabs=r.tabs.map(a=>a.path===S.ROLES_TAB_PATH?{...a,flags:{...a.flags,confirmed:!0,touched:!0}}:a)}),e.addMatcher(Sr(Xc),(r,t)=>{r.tabs=r.tabs.map(a=>a.path===S.ROLES_TAB_PATH?{...a,flags:{...a.flags,touched:!1}}:a)}),e.addMatcher(Sr(sl.fulfilled,il.fulfilled,io.fulfilled,ya.fulfilled),(r,t)=>{var s,i,c;const a=r.tabs.find(S.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(Sr(io.fulfilled,ya.fulfilled),(r,t)=>{var l;const a=r.tabs.find(S.by("path",((l=t.payload)==null?void 0:l.path)||t.meta.arg.path));if(!a)return;const{panel:s}=a.view,i=S.getDatasourceId({id:t.meta.arg.id,namespace:t.meta.arg.namespace});if(s.type==="datasource"&&s.current===i)switch(t.type){case io.fulfilled.type:Object.assign(a.view.panel,{type:"component",current:xR});break;case ya.fulfilled.type:const d=S.getDatasourceId({id:t.meta.arg.new_name,namespace:t.meta.arg.namespace});Object.assign(a.view.panel,{type:"datasource",current:d});break}})}}),{setTabs:RI,closeTab:ul,setContent:Iv,setTabFlags:Fv,setTabsFlags:OI,setTabExtra:AI,closeAllTabs:$v,addDataSource:PI,closeRightTabs:Mv,closeOthers:Nv,closeLeftTabs:Lv,closeSavedTabs:DI,setDataSources:II,removeDataSource:FI,confirmTab:$I,selectTab:jv,selectTabByReference:Lt,openTabUnselected:kv,addWebFormStyles:MI,changeTabEditor:NI,openSettingsTab:LI,setPanelState:jI,addWebformState:kI,editWebformState:BI,removeWebformState:WI}=ho.actions,Bv=ho.reducer,UI=gv.reducer,Vn=ne("catalog/fetchCatalog",async(e,{rejectWithValue:r})=>{var t;try{const a=await S.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:S.generateUUID()}),l.attributes){const p=["storage","relatedEntity"];l.attributes=l.attributes.map(h=>(p.includes(h.kind)&&!h.uuid&&Object.assign(h,{uuid:S.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 r("Error while loading the catalog")}}),HI=lr({name:"catalog",initialState:{state:"loading"},reducers:{},extraReducers(e){e.addCase(Vn.pending,()=>({state:"loading"})).addCase(Vn.fulfilled,(r,{payload:t})=>({state:"loaded",model:t})).addCase(Vn.rejected,(r,t)=>({state:"error",error:t.payload||"Error while loading the catalog"}))}}),GI=HI.reducer,qI=Vg.reducer,ys=ne("shared_datasources/fetchSharedSources",async(e,{rejectWithValue:r})=>{try{return await S.getSharedDatasources()}catch{return r("Error while loading the shared datasources")}}),Wv=ne("shared_datasources/addSharedSource",async(e,{rejectWithValue:r,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 r("Namespace is required");return await S.setSharedSources(a.sources),a.sources}catch{return r("Error while saving the shared datasources")}}),Uv=ne("shared_datasources/editSharedSource",async(e,{rejectWithValue:r,getState:t})=>{try{const a=t().sharedDatasources;if(!e.namespace)return r("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 r("Namespace not found");return await S.setSharedSources(a.sources),a.sources}catch{return r("Error while saving the shared datasources")}}),Hv=ne("shared_datasources/deleteSharedSource",async(e,{rejectWithValue:r,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 S.setSharedSources(a.sources),a.sources}catch{return r("Error while saving the shared datasources")}}),cl=ne("shared_datasources/updateSharedDatasources",async(e,{rejectWithValue:r,getState:t})=>{try{const a={...t().sharedDatasources};for(const s of e){if(!s.namespace)return r("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 r("Namespace not found")}return await S.setSharedSources(a.sources),a.sources}catch{return r("Error while saving the shared datasources")}}),YI=ne("shared_datasources/setDatasourceEvents",async({tabPath:e,name:r,namespace:t,events:a},{getState:s,dispatch:i})=>{var E,T,C;const{root:{tabs:c},sharedDatasources:l}=s(),d=((C=(T=(E=c.find(({path:$})=>$===e))==null?void 0:E.content)==null?void 0:T.metadata)==null?void 0:C.datasources)||[],p={local:!1,shared:!1},h=($,D)=>$.id===r&&(!t&&!$.namespace||$.namespace===t)?(D==null||D(),{...$,events:a}):$,m=d.map($=>h($,()=>{p.local=!0})),_=Ke.flatten(Ke.values(l.sources)).map($=>h($,()=>{p.shared=!0}));p.local&&i(Iv({path:e,content:m,contentPath:"metadata.datasources"})),p.shared&&i(cl(_))}),Gv=lr({name:"shared-datasources",initialState:{},reducers:{addEmptyNamespace(e,r){e.sources[r.payload.name]=[]}},extraReducers(e){e.addCase(ys.pending,r=>({state:"loading",sources:{}})).addCase(ys.fulfilled,(r,t)=>({state:"loaded",sources:t.payload})).addCase(ys.rejected,(r,t)=>({state:"error",sources:{},error:t.payload||"Error while loading the shared datasources"})).addCase(cl.fulfilled,(r,t)=>({state:"loaded",sources:t.payload})).addCase(rl.fulfilled,(r,t)=>{const{payload:a,meta:{arg:s}}=t;s.namespace&&Object.assign(r.sources,{[s.namespace]:a})}).addCase(Wv.fulfilled,(r,t)=>({...r,sources:t.payload})).addCase(Hv.fulfilled,(r,t)=>({...r,sources:t.payload})).addCase(Uv.fulfilled,(r,t)=>({...r,sources:t.payload})).addCase(tl.fulfilled,(r,t)=>{if(!t.payload)return r;const{datasources:a,namespace:s}=t.payload;s&&r.sources[s]&&Object.assign(r.sources[s],{[s]:a})}).addMatcher(Sr(sl.fulfilled,io.fulfilled,il.fulfilled,ya.fulfilled),(r,t)=>{if(!t.payload)return;const{namespace:a,list:s}=t.payload;a&&Object.assign(r.sources,{[a]:s})})}}),{addEmptyNamespace:zI}=Gv.actions,VI=Gv.reducer,KI=ov.reducer,ms=ne("shared_css/fetchSharedCSS",async(e,{rejectWithValue:r})=>{try{const{classes:t}=await S.getSharedCSS();return t}catch{return r("Error while loading the shared CSS")}}),JI=S.queue();async function ZI(e){const r={verb:S.DesignerRequestVerb.SET_FILE_CONTENT,asText:!1,name:"shared_css.json",path:"",root:"shared",content:{classes:e.map(({scope:t,...a})=>({...a}))}};await JI(()=>S.http(S.API_PREFIX,{method:"POST",body:JSON.stringify(r),headers:new Headers({"Content-Type":"application/json"})}))}const qv=lr({name:"shared-css",initialState:()=>{const{sharedCSS:e}=_a();return e||{state:"loading",styles:[]}},reducers:{updateSharedCss:(e,r)=>(e.styles=r.payload.classes,ZI(r.payload.classes),e),initSharedCss:(e,r)=>(e.styles=r.payload.classes,e)},extraReducers(e){e.addCase(ms.pending,r=>({...r,state:"loading"})).addCase(ms.fulfilled,(r,{payload:t})=>({state:"loaded",styles:t})).addCase(ms.rejected,(r,t)=>({...r,state:"error",error:t.payload||"Error while loading the shared css"}))}}),{updateSharedCss:XI,initSharedCss:QI}=qv.actions,eF=qv.reducer,tF={},rF=lr({name:"tabs",initialState:tF,reducers:{}}),nF=e=>q(xa,r=>{var t,a;return(a=(t=r.find(s=>s.path===e))==null?void 0:t.view)==null?void 0:a.panel});rF.reducer;const Yv=ch({root:Bv,explorer:KI,debugger:UI,settings:aD,catalog:GI,roles:eD,sharedDatasources:VI,webforms:_I,modals:qI,sharedCSS:eF,model:hI});let Xa;const zv=()=>(Xa||(Xa=XE({reducer:Yv}),Xa.subscribe(lT(()=>{const{root:{activeTab:e,tabs:r,recent:t},roles:a,debugger:s,webforms:i,sharedCSS:c,settings:{session:l}}=Xa.getState();Ih({...l}),Dh({tabs:r,activeTab:e,recent:t,roles:a,debugger:s,webforms:i,sharedCSS:c})},1e3))),Xa);var _c={exports:{}},Qa={};/**
|
|
132
|
+
* @license React
|
|
133
133
|
* react-jsx-runtime.production.min.js
|
|
134
134
|
*
|
|
135
135
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
136
136
|
*
|
|
137
137
|
* This source code is licensed under the MIT license found in the
|
|
138
138
|
* LICENSE file in the root directory of this source tree.
|
|
139
|
-
*/var
|
|
139
|
+
*/var th;function aF(){if(th)return Qa;th=1;var e=dt,r=Symbol.for("react.element"),t=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function c(l,d,p){var h,m={},_=null,E=null;p!==void 0&&(_=""+p),d.key!==void 0&&(_=""+d.key),d.ref!==void 0&&(E=d.ref);for(h in d)a.call(d,h)&&!i.hasOwnProperty(h)&&(m[h]=d[h]);if(l&&l.defaultProps)for(h in d=l.defaultProps,d)m[h]===void 0&&(m[h]=d[h]);return{$$typeof:r,type:l,key:_,ref:E,props:m,_owner:s.current}}return Qa.Fragment=t,Qa.jsx=c,Qa.jsxs=c,Qa}var eo={};/**
|
|
140
|
+
* @license React
|
|
140
141
|
* react-jsx-runtime.development.js
|
|
141
142
|
*
|
|
142
143
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
143
144
|
*
|
|
144
145
|
* This source code is licensed under the MIT license found in the
|
|
145
146
|
* LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/var
|
|
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
|
|
148
|
-
`),
|
|
149
|
-
`),be=
|
|
150
|
-
`+
|
|
147
|
+
*/var rh;function oF(){return rh||(rh=1,process.env.NODE_ENV!=="production"&&function(){var e=dt,r=Symbol.for("react.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),T=Symbol.iterator,C="@@iterator";function $(g){if(g===null||typeof g!="object")return null;var R=T&&g[T]||g[C];return typeof R=="function"?R:null}var D=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function I(g){{for(var R=arguments.length,F=new Array(R>1?R-1:0),G=1;G<R;G++)F[G-1]=arguments[G];W("error",g,F)}}function W(g,R,F){{var G=D.ReactDebugCurrentFrame,re=G.getStackAddendum();re!==""&&(R+="%s",F=F.concat([re]));var se=F.map(function(ee){return String(ee)});se.unshift("Warning: "+R),Function.prototype.apply.call(console[g],console,se)}}var j=!1,O=!1,K=!1,Y=!1,Q=!1,ae;ae=Symbol.for("react.module.reference");function Ie(g){return!!(typeof g=="string"||typeof g=="function"||g===a||g===i||Q||g===s||g===p||g===h||Y||g===E||j||O||K||typeof g=="object"&&g!==null&&(g.$$typeof===_||g.$$typeof===m||g.$$typeof===c||g.$$typeof===l||g.$$typeof===d||g.$$typeof===ae||g.getModuleId!==void 0))}function Ce(g,R,F){var G=g.displayName;if(G)return G;var re=R.displayName||R.name||"";return re!==""?F+"("+re+")":F}function Xe(g){return g.displayName||"Context"}function z(g){if(g==null)return null;if(typeof g.tag=="number"&&I("Received an unexpected object in getComponentNameFromType(). 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 a:return"Fragment";case t:return"Portal";case i:return"Profiler";case s:return"StrictMode";case p:return"Suspense";case h:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case l:var R=g;return Xe(R)+".Consumer";case c:var F=g;return Xe(F._context)+".Provider";case d:return Ce(g,g.render,"ForwardRef");case m:var G=g.displayName||null;return G!==null?G:z(g.type)||"Memo";case _:{var re=g,se=re._payload,ee=re._init;try{return z(ee(se))}catch{return null}}}return null}var Pe=Object.assign,Qe=0,et,Ue,rt,Dt,H,V,ve;function he(){}he.__reactDisabledLog=!0;function le(){{if(Qe===0){et=console.log,Ue=console.info,rt=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})}Qe++}}function ye(){{if(Qe--,Qe===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Pe({},g,{value:et}),info:Pe({},g,{value:Ue}),warn:Pe({},g,{value:rt}),error:Pe({},g,{value:Dt}),group:Pe({},g,{value:H}),groupCollapsed:Pe({},g,{value:V}),groupEnd:Pe({},g,{value:ve})})}Qe<0&&I("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ie=D.ReactCurrentDispatcher,fe;function ue(g,R,F){{if(fe===void 0)try{throw Error()}catch(re){var G=re.stack.trim().match(/\n( *(at )?)/);fe=G&&G[1]||""}return`
|
|
148
|
+
`+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 F=ge.get(g);if(F!==void 0)return F}var G;me=!0;var re=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var se;se=ie.current,ie.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(nt){G=nt}Reflect.construct(g,[],ee)}else{try{ee.call()}catch(nt){G=nt}g.call(ee.prototype)}}else{try{throw Error()}catch(nt){G=nt}g()}}catch(nt){if(nt&&G&&typeof nt.stack=="string"){for(var X=nt.stack.split(`
|
|
149
|
+
`),Fe=G.stack.split(`
|
|
150
|
+
`),be=X.length-1,Se=Fe.length-1;be>=1&&Se>=0&&X[be]!==Fe[Se];)Se--;for(;be>=1&&Se>=0;be--,Se--)if(X[be]!==Fe[Se]){if(be!==1||Se!==1)do if(be--,Se--,Se<0||X[be]!==Fe[Se]){var ze=`
|
|
151
|
+
`+X[be].replace(" at new "," at ");return g.displayName&&ze.includes("<anonymous>")&&(ze=ze.replace("<anonymous>",g.displayName)),typeof g=="function"&&ge.set(g,ze),ze}while(be>=1&&Se>=0);break}}}finally{me=!1,ie.current=se,ye(),Error.prepareStackTrace=re}var yt=g?g.displayName||g.name:"",Mn=yt?ue(yt):"";return typeof g=="function"&&ge.set(g,Mn),Mn}function Je(g,R,F){return N(g,!1)}function Ge(g){var R=g.prototype;return!!(R&&R.isReactComponent)}function ut(g,R,F){if(g==null)return"";if(typeof g=="function")return N(g,Ge(g));if(typeof g=="string")return ue(g);switch(g){case p:return ue("Suspense");case h:return ue("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case d:return Je(g.render);case m:return ut(g.type,R,F);case _:{var G=g,re=G._payload,se=G._init;try{return ut(se(re),R,F)}catch{}}}return""}var dr=Object.prototype.hasOwnProperty,It={},rn=D.ReactDebugCurrentFrame;function pr(g){if(g){var R=g._owner,F=ut(g.type,g._source,R?R.type:null);rn.setExtraStackFrame(F)}else rn.setExtraStackFrame(null)}function Ir(g,R,F,G,re){{var se=Function.call.bind(dr);for(var ee in g)if(se(g,ee)){var X=void 0;try{if(typeof g[ee]!="function"){var Fe=Error((G||"React class")+": "+F+" 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 Fe.name="Invariant Violation",Fe}X=g[ee](R,ee,G,F,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(be){X=be}X&&!(X instanceof Error)&&(pr(re),I("%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).",G||"React class",F,ee,typeof X),pr(null)),X instanceof Error&&!(X.message in It)&&(It[X.message]=!0,pr(re),I("Failed %s type: %s",F,X.message),pr(null))}}}var Ft=Array.isArray;function qt(g){return Ft(g)}function nn(g){{var R=typeof Symbol=="function"&&Symbol.toStringTag,F=R&&g[Symbol.toStringTag]||g.constructor.name||"Object";return F}}function Oa(g){try{return hr(g),!1}catch{return!0}}function hr(g){return""+g}function _n(g){if(Oa(g))return I("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",nn(g)),hr(g)}var bt=D.ReactCurrentOwner,wr={key:!0,ref:!0,__self:!0,__source:!0},Fr,$r,gr;gr={};function Sn(g){if(dr.call(g,"ref")){var R=Object.getOwnPropertyDescriptor(g,"ref").get;if(R&&R.isReactWarning)return!1}return g.ref!==void 0}function En(g){if(dr.call(g,"key")){var R=Object.getOwnPropertyDescriptor(g,"key").get;if(R&&R.isReactWarning)return!1}return g.key!==void 0}function wn(g,R){if(typeof g.ref=="string"&&bt.current&&R&&bt.current.stateNode!==R){var F=z(bt.current.type);gr[F]||(I('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',z(bt.current.type),g.ref),gr[F]=!0)}}function Tn(g,R){{var F=function(){Fr||(Fr=!0,I("%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))};F.isReactWarning=!0,Object.defineProperty(g,"key",{get:F,configurable:!0})}}function Cn(g,R){{var F=function(){$r||($r=!0,I("%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))};F.isReactWarning=!0,Object.defineProperty(g,"ref",{get:F,configurable:!0})}}var xn=function(g,R,F,G,re,se,ee){var X={$$typeof:r,type:g,key:R,ref:F,props:ee,_owner:se};return X._store={},Object.defineProperty(X._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(X,"_self",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.defineProperty(X,"_source",{configurable:!1,enumerable:!1,writable:!1,value:re}),Object.freeze&&(Object.freeze(X.props),Object.freeze(X)),X};function Aa(g,R,F,G,re){{var se,ee={},X=null,Fe=null;F!==void 0&&(_n(F),X=""+F),En(R)&&(_n(R.key),X=""+R.key),Sn(R)&&(Fe=R.ref,wn(R,re));for(se in R)dr.call(R,se)&&!wr.hasOwnProperty(se)&&(ee[se]=R[se]);if(g&&g.defaultProps){var be=g.defaultProps;for(se in be)ee[se]===void 0&&(ee[se]=be[se])}if(X||Fe){var Se=typeof g=="function"?g.displayName||g.name||"Unknown":g;X&&Tn(ee,Se),Fe&&Cn(ee,Se)}return xn(g,X,Fe,re,G,bt.current,ee)}}var Mr=D.ReactCurrentOwner,Rn=D.ReactDebugCurrentFrame;function wt(g){if(g){var R=g._owner,F=ut(g.type,g._source,R?R.type:null);Rn.setExtraStackFrame(F)}else Rn.setExtraStackFrame(null)}var Tr;Tr=!1;function Nr(g){return typeof g=="object"&&g!==null&&g.$$typeof===r}function On(){{if(Mr.current){var g=z(Mr.current.type);if(g)return`
|
|
151
152
|
|
|
152
|
-
Check the render method of \``+g+"`."}return""}}function
|
|
153
|
+
Check the render method of \``+g+"`."}return""}}function Pa(g){{if(g!==void 0){var R=g.fileName.replace(/^.*[\\\/]/,""),F=g.lineNumber;return`
|
|
153
154
|
|
|
154
|
-
Check your code at `+R+":"+
|
|
155
|
+
Check your code at `+R+":"+F+"."}return""}}var An={};function Jn(g){{var R=On();if(!R){var F=typeof g=="string"?g:g.displayName||g.name;F&&(R=`
|
|
155
156
|
|
|
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=qI():vc.exports=YI();var zI=vc.exports;const VI=({children:e,store:n})=>zI.jsx(og,{store:n,children:e});exports.CATALOG_REFRESH_DELAY=$s;exports.DEFAULT_CACHE=Oc;exports.EAttributeKind=Zs;exports.EAttributeTypes=lv;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=hv;exports.FLAGS_KEYS=no;exports.ModalCloseReason=Gc;exports.ModalColor=Dr;exports.ModalIcons=WP;exports.ModalType=Gt;exports.ReduxProvider=VI;exports.THEME_CLASSES=Eg;exports.WT_FLAGS_KEYS=pv;exports.actionsToPrivs=Ig;exports.addBreakpointDecoration=mD;exports.addComponent=vv;exports.addCraftedComponent=pI;exports.addDataSource=_I;exports.addDatasource=tl;exports.addEmptyNamespace=$I;exports.addExpression=wD;exports.addIn=vP;exports.addNewFile=Jg;exports.addPermission=SP;exports.addSession=PD;exports.addSharedSource=Dv;exports.addWebFormStyles=CI;exports.allowed=hP;exports.attributeKinds=HD;exports.attributeScopes=zD;exports.attributeTypes=qD;exports.castToFileFolder=tD;exports.changeTabEditor=xI;exports.children=Rs;exports.clearBreakpoints=ED;exports.closeAllTabs=Tv;exports.closeLeftTabs=Rv;exports.closeModal=FP;exports.closeOthers=xv;exports.closeRightTabs=Cv;exports.closeSavedTabs=EI;exports.closeTab=nl;exports.confirmTab=TI;exports.create=Dg;exports.createModal=jg;exports.createModelFiles=pc;exports.createNewFile=ua;exports.createNewFileAndOpen=sD;exports.createNewNode=us;exports.createRole=PP;exports.createWithResource=mP;exports.dataclassScopes=YD;exports.deleteDatasource=Za;exports.deleteFile=hc;exports.deleteFolder=iD;exports.deleteSharedSource=Fv;exports.deserializeModel=Th;exports.duplicateNode=cs;exports.editComponent=yv;exports.editCraftedComponent=hI;exports.editDataSource=Xc;exports.editDatasource=rl;exports.editModal=$P;exports.editRole=AP;exports.editSharedSource=Iv;exports.editors=Gh;exports.executeMethod=cD;exports.expandFolder=XP;exports.extensions=qh;exports.fetchAppSettings=zg;exports.fetchCatalog=kn;exports.fetchChanges=nv;exports.fetchCraftedComponents=Ev;exports.fetchFiles=lD;exports.fetchFolderContent=Ar;exports.fetchFolderContentWithoutExpanding=Ka;exports.fetchModel=Qc;exports.fetchRoles=Os;exports.fetchRolesChanges=Hg;exports.fetchSettings=Vc;exports.fetchSharedCss=fs;exports.fetchSharedDatasources=ls;exports.fetchTemplate=dI;exports.fetchTemplates=fI;exports.findNodeByPath=vt;exports.findOne=jn;exports.findSession=ft;exports.findSessionByPath=vg;exports.getCachedState=pa;exports.getCashedPrefrences=wh;exports.getDebuggerTabName=Dh;exports.getDebuggerTabPath=Pc;exports.getDefaultContent=Xg;exports.getDefaultName=JD;exports.getDictByName=$g;exports.getEditors=Er;exports.getExtension=zh;exports.getFilePath=ev;exports.getFileType=Qg;exports.getFilenameFromType=Zg;exports.getGraphData=EP;exports.getInheritedResources=Ng;exports.getModalTitle=Ms;exports.getNodeRelativePath=Yh;exports.getPrivilegeById=Qr;exports.getPromotions=xP;exports.getResourceFromType=Hc;exports.getStore=Lv;exports.indexTypes=VD;exports.initSharedCss=BI;exports.injectContentAtLine=tv;exports.inspect=sI;exports.isJSON=Ch;exports.isRelatedAttr=XD;exports.isRelatedEntitiesAttr=dv;exports.isRelatedEntityAttr=fv;exports.isRenameDatasource=vI;exports.isRolesOutdated=qc;exports.isValidPrimaryKey=UD;exports.modelSubject=eg;exports.openAddFileInput=ZP;exports.openFile=Ja;exports.openFileAtLine=Kc;exports.openFileAtSelection=rv;exports.openModal=fr;exports.openModel=jD;exports.openRoles=yD;exports.openSettingsTab=RI;exports.openTabUnselected=Av;exports.parents=zs;exports.populateShallow=_P;exports.primaryKeyAttributes=GD;exports.refreshFile=QP;exports.reloadTab=gc;exports.relocateNode=Xa;exports.remove=gP;exports.removeAllExpressions=xD;exports.removeBreakpointDecoration=bD;exports.removeComponent=mv;exports.removeCraftedComponent=gI;exports.removeDataSource=wI;exports.removeDebuggerSessionsNotIn=uv;exports.removeExpression=CD;exports.removeFile=dc;exports.removeFileNode=uD;exports.removeFrom=yP;exports.removeModal=kg;exports.removePermission=wP;exports.removeRole=OP;exports.removeSession=ID;exports.removeSessionByIndex=FD;exports.rename=bP;exports.renameDataSource=Jc;exports.renameDatasource=fa;exports.renameExpression=TD;exports.renameFile=ca;exports.resetResources=TP;exports.rootReducer=Pv;exports.sanitize=Vs;exports.sanitizePermissions=Fg;exports.sanitizePrivileges=Ag;exports.saveAll=fD;exports.saveExpressions=AD;exports.saveModel=As;exports.savePrefrences=Sh;exports.saveRole=DP;exports.saveRoles=cc;exports.saveState=Eh;exports.saveTab=la;exports.selectActiveLine=kO;exports.selectActiveTab=ZO;exports.selectAllDatasourcesByPath=DO;exports.selectAppState=pg;exports.selectBreakpoints=$O;exports.selectCSSClassesByPath=OA;exports.selectCallChainVariables=VO;exports.selectCatalog=$c;exports.selectCatalogMethods=CO;exports.selectCatalogState=wO;exports.selectClassBreakpoints=NO;exports.selectClassOffset=JO;exports.selectClasses=fA;exports.selectClassesFolder=_g;exports.selectComponents=wg;exports.selectComponentsByPath=AO;exports.selectContentByPath=yg;exports.selectCraftedComponent=$A;exports.selectCurrentFrameByThreadId=qO;exports.selectCurrentTab=eA;exports.selectDataclasses=fg;exports.selectDatasource=PO;exports.selectDatasourcesByPath=hg;exports.selectDatasourcesTheme=NA;exports.selectDebuggerChannels=YO;exports.selectDebuggerData=Bn;exports.selectDebuggerMeta=IO;exports.selectDebuggerSessions=jt;exports.selectDebuggerSessionsCount=FO;exports.selectDebuggers=iA;exports.selectDraftBreakpoints=MO;exports.selectDraftClassBreakpoints=LO;exports.selectExceptions=XO;exports.selectExplorer=uA;exports.selectExpressions=BO;exports.selectExpressionsVariables=KO;exports.selectFlagsByPath=PA;exports.selectForceLogin=bA;exports.selectGuestPrivilege=vA;exports.selectHasTabs=nA;exports.selectHighlightedLines=jO;exports.selectInspectedCSSClass=DA;exports.selectInspectedDatasource=IA;exports.selectInspector=Hs;exports.selectInspectorStateByType=MA;exports.selectIsLoaded=LA;exports.selectMethods=cA;exports.selectMethodsFolder=bg;exports.selectModals=dA;exports.selectMonacoZoom=xA;exports.selectPanelByPath=GI;exports.selectPartialSessionSettings=EA;exports.selectPreferences=wA;exports.selectPreviewedWebformsPaths=rA;exports.selectPrivileges=gA;exports.selectProjectSettings=SA;exports.selectQodly=CA;exports.selectRecentFiles=QO;exports.selectRemoteDebuggerMode=TA;exports.selectRoles=hA;exports.selectRolesAndPrivileges=pA;exports.selectRolesDate=_A;exports.selectRolesFlags=yA;exports.selectRoot=Zr;exports.selectSelectedTab=mA;exports.selectServerSettings=Lc;exports.selectSessionSettings=Nc;exports.selectSharedCSS=AA;exports.selectSharedDatasources=gg;exports.selectSourceByPath=UO;exports.selectSourceByThreadId=GO;exports.selectStackFrames=zO;exports.selectStoppedFromDebugSession=WO;exports.selectStylesByPath=RA;exports.selectTab=Ov;exports.selectTabByPath=io;exports.selectTabByReference=Lt;exports.selectTabExtraByPath=aA;exports.selectTabMaxWeight=tA;exports.selectTabs=ba;exports.selectTemplates=Tg;exports.selectTemplatesData=FA;exports.selectThreadIdByPath=HO;exports.selectTouchedTabs=Mc;exports.selectTouchedTabsLength=sA;exports.selectVirtualDataClasses=TO;exports.selectWebForms=lA;exports.selectWebFormsFolder=mg;exports.selectWebformNodes=oA;exports.selectWebformStylesByPath=jc;exports.selectWebforms=uo;exports.serializeModel=KD;exports.setActiveLine=SD;exports.setBreakpointsDecoration=_D;exports.setCallChainVariables=$D;exports.setContent=Sv;exports.setDataSources=SI;exports.setDatasourceEvents=FI;exports.setDatasourcesTheme=uI;exports.setDebuggerMeta=LD;exports.setExpression=RD;exports.setExpressionVariables=MD;exports.setFolderChildren=eD;exports.setModelFlag=WD;exports.setPanelState=OI;exports.setRolesContent=Yc;exports.setSelectedGroup=iI;exports.setSessions=sv;exports.setSetting=lc;exports.setSettings=Js;exports.setSettingsAsText=zP;exports.setSourceContent=ND;exports.setTabExtra=bI;exports.setTabFlags=wv;exports.setTabs=yI;exports.setTabsFlags=mI;exports.setTemplateData=_v;exports.setTemplatesData=bv;exports.setWebformsFlag=cI;exports.sort=Pg;exports.stateReducer=Nv;exports.stateSlice=ao;exports.toAPI=Ks;exports.toState=RP;exports.toggleExpandFolder=JP;exports.toggleForceLogin=HP;exports.toggleInspector=oI;exports.togglePermission=CP;exports.togglePrivilegePermission=Mg;exports.toggleTab=UP;exports.tryCloseAllTabs=pD;exports.tryCloseLeftTabs=gD;exports.tryCloseOtherTabs=dD;exports.tryCloseRightTabs=hD;exports.tryCloseTab=Zc;exports.tryEditMethod=rD;exports.tryInjectMethod=av;exports.tryRenameDataclass=kD;exports.uniquePush=cr;exports.updateExpressionAt=OD;exports.updatePrivileges=qg;exports.updateRoles=Yg;exports.updateRolesAndPrivileges=zc;exports.updateSession=DD;exports.updateSharedCss=kI;exports.updateSharedDatasources=al;exports.uploadFile=oD;exports.uploadFileAndGetResponse=aD;exports.useAppDispatch=SO;exports.useAppSelector=Xr;exports.useAttribute=tI;exports.useCollections=QD;exports.useDataclass=eI;exports.useDataclasses=ZD;exports.useMethod=OO;exports.useMethods=xO;exports.useModelFlags=nI;exports.useModelProperties=rI;exports.wipeDebuggerSessions=iv;
|
|
157
|
+
Check the top-level render call using <`+F+">.")}return R}}function Pn(g,R){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var F=Jn(R);if(An[F])return;An[F]=!0;var G="";g&&g._owner&&g._owner!==Mr.current&&(G=" It was passed a child from "+z(g._owner.type)+"."),wt(g),I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',F,G),wt(null)}}function Dn(g,R){{if(typeof g!="object")return;if(qt(g))for(var F=0;F<g.length;F++){var G=g[F];Nr(G)&&Pn(G,R)}else if(Nr(g))g._store&&(g._store.validated=!0);else if(g){var re=$(g);if(typeof re=="function"&&re!==g.entries)for(var se=re.call(g),ee;!(ee=se.next()).done;)Nr(ee.value)&&Pn(ee.value,R)}}}function Da(g){{var R=g.type;if(R==null||typeof R=="string")return;var F;if(typeof R=="function")F=R.propTypes;else if(typeof R=="object"&&(R.$$typeof===d||R.$$typeof===m))F=R.propTypes;else return;if(F){var G=z(R);Ir(F,g.props,"prop",G,g)}else if(R.PropTypes!==void 0&&!Tr){Tr=!0;var re=z(R);I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",re||"Unknown")}typeof R.getDefaultProps=="function"&&!R.getDefaultProps.isReactClassApproved&&I("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function In(g){{for(var R=Object.keys(g.props),F=0;F<R.length;F++){var G=R[F];if(G!=="children"&&G!=="key"){wt(g),I("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",G),wt(null);break}}g.ref!==null&&(wt(g),I("Invalid attribute `ref` supplied to `React.Fragment`."),wt(null))}}function Fn(g,R,F,G,re,se){{var ee=Ie(g);if(!ee){var X="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(X+=" 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 Fe=Pa(re);Fe?X+=Fe:X+=On();var be;g===null?be="null":qt(g)?be="array":g!==void 0&&g.$$typeof===r?(be="<"+(z(g.type)||"Unknown")+" />",X=" Did you accidentally export a JSX literal instead of a component?"):be=typeof g,I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",be,X)}var Se=Aa(g,R,F,re,se);if(Se==null)return Se;if(ee){var ze=R.children;if(ze!==void 0)if(G)if(qt(ze)){for(var yt=0;yt<ze.length;yt++)Dn(ze[yt],g);Object.freeze&&Object.freeze(ze)}else I("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 Dn(ze,g)}return g===a?In(Se):Da(Se),Se}}function $n(g,R,F){return Fn(g,R,F,!0)}function Ia(g,R,F){return Fn(g,R,F,!1)}var Fa=Ia,$a=$n;eo.Fragment=a,eo.jsx=Fa,eo.jsxs=$a}()),eo}process.env.NODE_ENV==="production"?_c.exports=aF():_c.exports=oF();var sF=_c.exports;const iF=({children:e,store:r})=>sF.jsx(vg,{store:r,children:e});exports.CATALOG_REFRESH_DELAY=Bs;exports.DEFAULT_CACHE=Fc;exports.EAttributeKind=ai;exports.EAttributeTypes=_v;exports.EDebuggerErrorReason=Rh;exports.EDebuggerErrorType=Ts;exports.EDebuggerState=Yr;exports.EDisplayMode=qc;exports.EPermissionType=Ne;exports.ETooltipBehavior=Gc;exports.ExpressionIndex=xh;exports.FLAGS_INIT_STATE=Tv;exports.FLAGS_KEYS=po;exports.ModalCloseReason=Kc;exports.ModalColor=Dr;exports.ModalIcons=ZP;exports.ModalType=Gt;exports.ROOT_WEBFORM_STATE=Hc;exports.ReduxProvider=iF;exports.THEME_CLASSES=Ig;exports.WT_FLAGS_KEYS=wv;exports.actionsToPrivs=Hg;exports.addBreakpointDecoration=OD;exports.addComponent=xv;exports.addCraftedComponent=wI;exports.addDataSource=PI;exports.addDatasource=sl;exports.addEmptyNamespace=zI;exports.addExpression=FD;exports.addIn=xP;exports.addNewFile=sv;exports.addPermission=IP;exports.addSession=BD;exports.addSharedSource=Wv;exports.addWebFormStyles=MI;exports.addWebformState=kI;exports.allowed=TP;exports.attributeKinds=QD;exports.attributeScopes=nI;exports.attributeTypes=tI;exports.castToFileFolder=fD;exports.changeTabEditor=NI;exports.children=Fs;exports.clearBreakpoints=DD;exports.closeAllTabs=$v;exports.closeLeftTabs=Lv;exports.closeModal=HP;exports.closeOthers=Nv;exports.closeRightTabs=Mv;exports.closeSavedTabs=DI;exports.closeTab=ul;exports.confirmTab=$I;exports.create=Ug;exports.createModal=Kg;exports.createModelFiles=yc;exports.createNewFile=ha;exports.createNewFileAndOpen=vD;exports.createNewNode=gs;exports.createRole=BP;exports.createWithResource=OP;exports.dataclassScopes=rI;exports.deleteDatasource=io;exports.deleteFile=mc;exports.deleteFolder=yD;exports.deleteSharedSource=Hv;exports.deserializeModel=$h;exports.duplicateNode=vs;exports.editComponent=Rv;exports.editCraftedComponent=TI;exports.editDataSource=rl;exports.editDatasource=il;exports.editModal=GP;exports.editRole=kP;exports.editSharedSource=Uv;exports.editWebformState=BI;exports.editors=tg;exports.executeMethod=bD;exports.expandFolder=iD;exports.extensions=rg;exports.fetchAppSettings=nv;exports.fetchCatalog=Vn;exports.fetchChanges=pv;exports.fetchCraftedComponents=Dv;exports.fetchFiles=_D;exports.fetchFolderContent=Ar;exports.fetchFolderContentWithoutExpanding=ao;exports.fetchModel=al;exports.fetchRoles=$s;exports.fetchRolesChanges=Qg;exports.fetchSettings=Qc;exports.fetchSharedCss=ms;exports.fetchSharedDatasources=ys;exports.fetchTemplate=EI;exports.fetchTemplates=SI;exports.findNodeByPath=gt;exports.findOne=zn;exports.findSession=ft;exports.findSessionByPath=Rg;exports.getCachedState=_a;exports.getCashedPrefrences=Fh;exports.getDebuggerTabName=Uh;exports.getDebuggerTabPath=Mc;exports.getDefaultContent=iv;exports.getDefaultName=sI;exports.getDictByName=qg;exports.getEditors=Er;exports.getExtension=ag;exports.getFilePath=lv;exports.getFileType=cv;exports.getFilenameFromType=uv;exports.getGraphData=DP;exports.getInheritedResources=zg;exports.getModalTitle=Ws;exports.getNodeRelativePath=ng;exports.getPrivilegeById=tn;exports.getPromotions=NP;exports.getResourceFromType=Vc;exports.getStore=zv;exports.indexTypes=aI;exports.initSharedCss=QI;exports.injectContentAtLine=fv;exports.inspect=vI;exports.isJSON=Mh;exports.isRelatedAttr=iI;exports.isRelatedEntitiesAttr=Ev;exports.isRelatedEntityAttr=Sv;exports.isRenameDatasource=xI;exports.isRolesOutdated=Jc;exports.isValidPrimaryKey=XD;exports.modelSubject=fg;exports.openAddFileInput=uD;exports.openFile=oo;exports.openFileAtLine=el;exports.openFileAtSelection=dv;exports.openModal=fr;exports.openModel=VD;exports.openRoles=RD;exports.openSettingsTab=LI;exports.openTabUnselected=kv;exports.parents=Qs;exports.populateShallow=PP;exports.primaryKeyAttributes=eI;exports.refactorWebform=Nh;exports.refreshFile=cD;exports.reloadTab=bc;exports.relocateNode=so;exports.remove=CP;exports.removeAllExpressions=ND;exports.removeBreakpointDecoration=AD;exports.removeComponent=Ov;exports.removeCraftedComponent=CI;exports.removeDataSource=FI;exports.removeDebuggerSessionsNotIn=mv;exports.removeExpression=MD;exports.removeFile=vc;exports.removeFileNode=mD;exports.removeFrom=RP;exports.removeModal=Jg;exports.removePermission=FP;exports.removeRole=jP;exports.removeSession=UD;exports.removeSessionByIndex=HD;exports.removeWebformState=WI;exports.rename=AP;exports.renameDataSource=tl;exports.renameDatasource=ya;exports.renameExpression=$D;exports.renameFile=ga;exports.resetResources=$P;exports.rootReducer=Bv;exports.sanitize=ei;exports.sanitizePermissions=Gg;exports.sanitizePrivileges=Bg;exports.saveAll=SD;exports.saveExpressions=kD;exports.saveModel=Ms;exports.savePrefrences=Ih;exports.saveRole=WP;exports.saveRoles=pc;exports.saveState=Dh;exports.saveTab=va;exports.selectActiveLine=VO;exports.selectActiveTab=iA;exports.selectAllDatasourcesByPath=BO;exports.selectAppState=Tg;exports.selectBreakpoints=HO;exports.selectCSSClassesByPath=LA;exports.selectCallChainVariables=nA;exports.selectCatalog=jc;exports.selectCatalogMethods=$O;exports.selectCatalogState=IO;exports.selectClassBreakpoints=qO;exports.selectClassOffset=oA;exports.selectClasses=_A;exports.selectClassesFolder=Dg;exports.selectComponents=$g;exports.selectComponentsByPath=jO;exports.selectContentByPath=Og;exports.selectCraftedComponent=HA;exports.selectCurrentFrameByThreadId=eA;exports.selectCurrentTab=cA;exports.selectDataclasses=Eg;exports.selectDatasource=kO;exports.selectDatasourcesByPath=Cg;exports.selectDatasourcesTheme=qA;exports.selectDebuggerChannels=tA;exports.selectDebuggerData=Kn;exports.selectDebuggerMeta=WO;exports.selectDebuggerSessions=jt;exports.selectDebuggerSessionsCount=UO;exports.selectDebuggers=vA;exports.selectDraftBreakpoints=GO;exports.selectDraftClassBreakpoints=YO;exports.selectExceptions=sA;exports.selectExplorer=yA;exports.selectExpressions=KO;exports.selectExpressionsVariables=aA;exports.selectFlagsByPath=kA;exports.selectForceLogin=OA;exports.selectGuestPrivilege=CA;exports.selectHasTabs=dA;exports.selectHighlightedLines=zO;exports.selectInspectedCSSClass=BA;exports.selectInspectedDatasource=WA;exports.selectInspector=Ks;exports.selectInspectorStateByType=GA;exports.selectIsLoaded=YA;exports.selectMethods=mA;exports.selectMethodsFolder=Pg;exports.selectModals=SA;exports.selectMonacoZoom=MA;exports.selectPanelByPath=nF;exports.selectPartialSessionSettings=PA;exports.selectPreferences=IA;exports.selectPreviewedWebformsPaths=fA;exports.selectPrivileges=TA;exports.selectProjectSettings=DA;exports.selectQodly=$A;exports.selectRecentFiles=uA;exports.selectRemoteDebuggerMode=FA;exports.selectRoles=wA;exports.selectRolesAndPrivileges=EA;exports.selectRolesDate=AA;exports.selectRolesFlags=xA;exports.selectRoot=en;exports.selectSelectedTab=RA;exports.selectServerSettings=Wc;exports.selectSessionSettings=Bc;exports.selectSharedCSS=jA;exports.selectSharedDatasources=xg;exports.selectSourceByPath=ZO;exports.selectSourceByThreadId=QO;exports.selectStackFrames=rA;exports.selectStoppedFromDebugSession=JO;exports.selectStylesByPath=NA;exports.selectTab=jv;exports.selectTabByPath=Ra;exports.selectTabByReference=Lt;exports.selectTabExtraByPath=pA;exports.selectTabMaxWeight=lA;exports.selectTabs=xa;exports.selectTemplates=Mg;exports.selectTemplatesData=UA;exports.selectThreadIdByPath=XO;exports.selectTouchedTabs=kc;exports.selectTouchedTabsLength=gA;exports.selectVirtualDataClasses=FO;exports.selectWebForms=bA;exports.selectWebFormsFolder=Ag;exports.selectWebformNodes=hA;exports.selectWebformStatesByPath=zA;exports.selectWebformStylesByPath=Uc;exports.selectWebforms=yo;exports.serializeModel=oI;exports.setActiveLine=ID;exports.setBreakpointsDecoration=PD;exports.setCallChainVariables=GD;exports.setContent=Iv;exports.setDataSources=II;exports.setDatasourceEvents=YI;exports.setDatasourcesTheme=mI;exports.setDebuggerMeta=zD;exports.setExpression=LD;exports.setExpressionVariables=qD;exports.setFolderChildren=lD;exports.setModelFlag=ZD;exports.setPanelState=jI;exports.setRolesContent=Zc;exports.setSelectedGroup=yI;exports.setSessions=vv;exports.setSetting=hc;exports.setSettings=ri;exports.setSettingsAsText=nD;exports.setSourceContent=YD;exports.setTabExtra=AI;exports.setTabFlags=Fv;exports.setTabs=RI;exports.setTabsFlags=OI;exports.setTemplateData=Pv;exports.setTemplatesData=Av;exports.setWebformsFlag=bI;exports.sort=Wg;exports.stateReducer=Yv;exports.stateSlice=ho;exports.toAPI=ti;exports.toState=LP;exports.toggleExpandFolder=sD;exports.toggleForceLogin=QP;exports.toggleInspector=gI;exports.togglePermission=MP;exports.togglePrivilegePermission=Yg;exports.toggleTab=XP;exports.tryCloseAllTabs=wD;exports.tryCloseLeftTabs=CD;exports.tryCloseOtherTabs=ED;exports.tryCloseRightTabs=TD;exports.tryCloseTab=nl;exports.tryEditMethod=dD;exports.tryInjectMethod=hv;exports.tryRenameDataclass=KD;exports.uniquePush=cr;exports.updateExpressionAt=jD;exports.updatePrivileges=tv;exports.updateRoles=rv;exports.updateRolesAndPrivileges=Xc;exports.updateSession=WD;exports.updateSharedCss=XI;exports.updateSharedDatasources=cl;exports.uploadFile=gD;exports.uploadFileAndGetResponse=hD;exports.useAppDispatch=DO;exports.useAppSelector=Qr;exports.useAttribute=fI;exports.useCollections=cI;exports.useDataclass=lI;exports.useDataclasses=uI;exports.useMethod=LO;exports.useMethods=MO;exports.useModelFlags=pI;exports.useModelProperties=dI;exports.wipeDebuggerSessions=yv;
|
|
157
158
|
//# sourceMappingURL=index.cjs.js.map
|