@ws-ui/store 0.0.21 → 0.0.23
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/index.d.ts +0 -1
- package/dist/index.cjs.js +34 -34
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +4608 -4610
- package/dist/index.es.js.map +1 -1
- package/dist/modules/explorer/thunks.d.ts +34 -9
- package/dist/modules/root/types.d.ts +1 -2
- package/dist/selectors/catalog.d.ts +72 -1
- package/dist/selectors/components.d.ts +2 -2
- package/dist/utils.d.ts +1 -0
- package/package.json +1 -1
- package/dist/hooks/use-catalog.d.ts +0 -18
package/dist/index.cjs.js
CHANGED
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("@ws-ui/shared"),Ke=require("react"),rS=require("react-dom");function Xe(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=fS[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[ye]}function vr(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)===dS}(e)||Array.isArray(e)||!!e[Ia]||!!(!((r=e.constructor)===null||r===void 0)&&r[Ia])||Cs(e)||Rs(e))}function Br(e,r,t){t===void 0&&(t=!1),un(e)===0?(t?Object.keys:Vn)(e).forEach(function(a){t&&typeof a=="symbol"||r(a,e[a],e)}):e.forEach(function(a,s){return r(s,a,e)})}function un(e){var r=e[ye];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:Cs(e)?2:Rs(e)?3:0}function an(e,r){return un(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function Qo(e,r){return un(e)===2?e.get(r):e[r]}function Kp(e,r,t){var a=un(e);a===2?e.set(r,t):a===3?e.add(t):e[r]=t}function Jp(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function Cs(e){return cS&&e instanceof Map}function Rs(e){return lS&&e instanceof Set}function dt(e){return e.o||e.t}function yc(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=Xp(e);delete r[ye];for(var t=Vn(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 bc(e,r){return r===void 0&&(r=!1),_c(e)||jr(e)||!vr(e)||(un(e)>1&&(e.set=e.add=e.clear=e.delete=nS),Object.freeze(e),r&&Br(e,function(t,a){return bc(a,!0)},!0)),e}function nS(){Xe(2)}function _c(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Er(e){var r=zu[e];return r||Xe(18,e),r}function Ec(e,r){zu[e]||(zu[e]=r)}function ka(){return process.env.NODE_ENV==="production"||ea||Xe(0),ea}function pu(e,r){r&&(Er("Patches"),e.u=[],e.s=[],e.v=r)}function is(e){Gu(e),e.p.forEach(aS),e.p=null}function Gu(e){e===ea&&(ea=e.l)}function Id(e){return ea={p:[],l:ea,h:e,m:!0,_:0}}function aS(e){var r=e[ye];r.i===0||r.i===1?r.j():r.g=!0}function hu(e,r){r._=r.p.length;var t=r.p[0],a=e!==void 0&&e!==t;return r.h.O||Er("ES5").S(r,e,a),a?(t[ye].P&&(is(r),Xe(4)),vr(e)&&(e=us(r,e),r.l||cs(r,e)),r.u&&Er("Patches").M(t[ye].t,e,r.u,r.s)):e=us(r,t,[]),is(r),r.u&&r.v(r.u,r.s),e!==wc?e:void 0}function us(e,r,t){if(_c(r))return r;var a=r[ye];if(!a)return Br(r,function(l,d){return Fd(e,a,r,l,d,t)},!0),r;if(a.A!==e)return r;if(!a.P)return cs(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),Br(i,function(l,d){return Fd(e,a,s,l,d,t,c)}),cs(e,s,!1),t&&e.u&&Er("Patches").N(a,t,e.u,e.s)}return a.o}function Fd(e,r,t,a,s,i,c){if(process.env.NODE_ENV!=="production"&&s===t&&Xe(5),jr(s)){var l=us(e,s,i&&r&&r.i!==3&&!an(r.R,a)?i.concat(a):void 0);if(Kp(t,a,l),!jr(l))return;e.m=!1}else c&&t.add(s);if(vr(s)&&!_c(s)){if(!e.h.D&&e._<1)return;us(e,s),r&&r.A.l||cs(e,s)}}function cs(e,r,t){t===void 0&&(t=!1),!e.l&&e.h.D&&e.m&&bc(r,t)}function gu(e,r){var t=e[ye];return(t?dt(t):e)[r]}function $d(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 Lt(e){e.P||(e.P=!0,e.l&&Lt(e.l))}function vu(e){e.o||(e.o=yc(e.t))}function ja(e,r,t){var a=Cs(r)?Er("MapSet").F(r,t):Rs(r)?Er("MapSet").T(r,t):e.O?function(s,i){var c=Array.isArray(s),l={i:c?1:0,A:i?i.A:ka(),P:!1,I:!1,R:{},l:i,t:s,k:null,o:null,j:null,C:!1},d=l,p=Ba;c&&(d=[l],p=Pa);var g=Proxy.revocable(d,p),m=g.revoke,b=g.proxy;return l.k=b,l.j=m,b}(r,t):Er("ES5").J(r,t);return(t?t.A:ka()).p.push(a),a}function oS(e){return jr(e)||Xe(22,e),function r(t){if(!vr(t))return t;var a,s=t[ye],i=un(t);if(s){if(!s.P&&(s.i<4||!Er("ES5").K(s)))return s.t;s.I=!0,a=Md(t,i),s.I=!1}else a=Md(t,i);return Br(a,function(c,l){s&&Qo(s.t,c)===l||Kp(a,c,r(l))}),i===3?new Set(a):a}(e)}function Md(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return yc(e)}function sS(){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[ye];return process.env.NODE_ENV!=="production"&&s(p),Ba.get(p,c)},set:function(p){var g=this[ye];process.env.NODE_ENV!=="production"&&s(g),Ba.set(g,c,p)}},d}function r(c){for(var l=c.length-1;l>=0;l--){var d=c[l][ye];if(!d.P)switch(d.i){case 5:a(d)&&Lt(d);break;case 4:t(d)&&Lt(d)}}}function t(c){for(var l=c.t,d=c.k,p=Vn(d),g=p.length-1;g>=0;g--){var m=p[g];if(m!==ye){var b=l[m];if(b===void 0&&!an(l,m))return!0;var E=d[m],x=E&&E[ye];if(x?x.t!==b:!Jp(E,b))return!0}}var C=!!l[ye];return p.length!==Vn(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&&Xe(3,JSON.stringify(dt(c)))}var i={};Ec("ES5",{J:function(c,l){var d=Array.isArray(c),p=function(m,b){if(m){for(var E=Array(b.length),x=0;x<b.length;x++)Object.defineProperty(E,""+x,e(x,!0));return E}var C=Xp(b);delete C[ye];for(var I=Vn(C),P=0;P<I.length;P++){var j=I[P];C[j]=e(j,m||!!C[j].enumerable)}return Object.create(Object.getPrototypeOf(b),C)}(d,c),g={i:d?5:4,A:l?l.A:ka(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,ye,{value:g,writable:!0}),p},S:function(c,l,d){d?jr(l)&&l[ye].A===c&&r(c.p):(c.u&&function p(g){if(g&&typeof g=="object"){var m=g[ye];if(m){var b=m.t,E=m.k,x=m.R,C=m.i;if(C===4)Br(E,function(k){k!==ye&&(b[k]!==void 0||an(b,k)?x[k]||p(E[k]):(x[k]=!0,Lt(m)))}),Br(b,function(k){E[k]!==void 0||an(E,k)||(x[k]=!1,Lt(m))});else if(C===5){if(a(m)&&(Lt(m),x.length=!0),E.length<b.length)for(var I=E.length;I<b.length;I++)x[I]=!1;else for(var P=b.length;P<E.length;P++)x[P]=!0;for(var j=Math.min(E.length,b.length),M=0;M<j;M++)E.hasOwnProperty(M)||(x[M]=!0),x[M]===void 0&&p(E[M])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?t(c):a(c)}})}function iS(){function e(a){if(!vr(a))return a;if(Array.isArray(a))return a.map(e);if(Cs(a))return new Map(Array.from(a.entries()).map(function(c){return[c[0],e(c[1])]}));if(Rs(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 an(a,Ia)&&(s[Ia]=a[Ia]),s}function r(a){return jr(a)?e(a):a}var t="add";Ec("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 g=un(d),m=c[p];typeof m!="string"&&typeof m!="number"&&(m=""+m),g!==0&&g!==1||m!=="__proto__"&&m!=="constructor"||Xe(24),typeof d=="function"&&m==="prototype"&&Xe(24),typeof(d=Qo(d,m))!="object"&&Xe(15,c.join("/"))}var b=un(d),E=e(i.value),x=c[c.length-1];switch(l){case"replace":switch(b){case 2:return d.set(x,E);case 3:Xe(16);default:return d[x]=E}case t:switch(b){case 1:return x==="-"?d.push(E):d.splice(x,0,E);case 2:return d.set(x,E);case 3:return d.add(E);default:return d[x]=E}case"remove":switch(b){case 1:return d.splice(x,1);case 2:return d.delete(x);case 3:return d.delete(i.value);default:return delete d[x]}default:Xe(17,l)}}),a},N:function(a,s,i,c){switch(a.i){case 0:case 4:case 2:return function(l,d,p,g){var m=l.t,b=l.o;Br(l.R,function(E,x){var C=Qo(m,E),I=Qo(b,E),P=x?an(m,E)?"replace":t:"remove";if(C!==I||P!=="replace"){var j=d.concat(E);p.push(P==="remove"?{op:P,path:j}:{op:P,path:j,value:I}),g.push(P===t?{op:"remove",path:j}:P==="remove"?{op:t,path:j,value:r(C)}:{op:"replace",path:j,value:r(C)})}})}(a,s,i,c);case 5:case 1:return function(l,d,p,g){var m=l.t,b=l.R,E=l.o;if(E.length<m.length){var x=[E,m];m=x[0],E=x[1];var C=[g,p];p=C[0],g=C[1]}for(var I=0;I<m.length;I++)if(b[I]&&E[I]!==m[I]){var P=d.concat([I]);p.push({op:"replace",path:P,value:r(E[I])}),g.push({op:"replace",path:P,value:r(m[I])})}for(var j=m.length;j<E.length;j++){var M=d.concat([j]);p.push({op:t,path:M,value:r(E[j])})}m.length<E.length&&g.push({op:"replace",path:d.concat(["length"]),value:m.length})}(a,s,i,c);case 3:return function(l,d,p,g){var m=l.t,b=l.o,E=0;m.forEach(function(x){if(!b.has(x)){var C=d.concat([E]);p.push({op:"remove",path:C,value:x}),g.unshift({op:t,path:C,value:x})}E++}),E=0,b.forEach(function(x){if(!m.has(x)){var C=d.concat([E]);p.push({op:t,path:C,value:x}),g.unshift({op:"remove",path:C,value:x})}E++})}(a,s,i,c)}},M:function(a,s,i,c){i.push({op:"replace",path:[],value:s===wc?void 0:s}),c.push({op:"replace",path:[],value:a})}})}function uS(){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(vr(d)){var p=ja(l.A.h,d,l);l.p.set(d,p),l.o.add(p)}else l.o.add(d)}))}function a(l){l.g&&Xe(3,JSON.stringify(dt(l)))}var s=function(l,d){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var m in g)g.hasOwnProperty(m)&&(p[m]=g[m])})(l,d)},i=function(){function l(p,g){return this[ye]={i:2,l:g,A:g?g.A:ka(),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 dt(this[ye]).size}}),d.has=function(p){return dt(this[ye]).has(p)},d.set=function(p,g){var m=this[ye];return a(m),dt(m).has(p)&&dt(m).get(p)===g||(r(m),Lt(m),m.R.set(p,!0),m.o.set(p,g),m.R.set(p,!0)),this},d.delete=function(p){if(!this.has(p))return!1;var g=this[ye];return a(g),r(g),Lt(g),g.t.has(p)?g.R.set(p,!1):g.R.delete(p),g.o.delete(p),!0},d.clear=function(){var p=this[ye];a(p),dt(p).size&&(r(p),Lt(p),p.R=new Map,Br(p.t,function(g){p.R.set(g,!1)}),p.o.clear())},d.forEach=function(p,g){var m=this;dt(this[ye]).forEach(function(b,E){p.call(g,m.get(E),E,m)})},d.get=function(p){var g=this[ye];a(g);var m=dt(g).get(p);if(g.I||!vr(m)||m!==g.t.get(p))return m;var b=ja(g.A.h,m,g);return r(g),g.o.set(p,b),b},d.keys=function(){return dt(this[ye]).keys()},d.values=function(){var p,g=this,m=this.keys();return(p={})[Yo]=function(){return g.values()},p.next=function(){var b=m.next();return b.done?b:{done:!1,value:g.get(b.value)}},p},d.entries=function(){var p,g=this,m=this.keys();return(p={})[Yo]=function(){return g.entries()},p.next=function(){var b=m.next();if(b.done)return b;var E=g.get(b.value);return{done:!1,value:[b.value,E]}},p},d[Yo]=function(){return this.entries()},l}(),c=function(){function l(p,g){return this[ye]={i:3,l:g,A:g?g.A:ka(),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 dt(this[ye]).size}}),d.has=function(p){var g=this[ye];return a(g),g.o?!!g.o.has(p)||!(!g.p.has(p)||!g.o.has(g.p.get(p))):g.t.has(p)},d.add=function(p){var g=this[ye];return a(g),this.has(p)||(t(g),Lt(g),g.o.add(p)),this},d.delete=function(p){if(!this.has(p))return!1;var g=this[ye];return a(g),t(g),Lt(g),g.o.delete(p)||!!g.p.has(p)&&g.o.delete(g.p.get(p))},d.clear=function(){var p=this[ye];a(p),dt(p).size&&(t(p),Lt(p),p.o.clear())},d.values=function(){var p=this[ye];return a(p),t(p),p.o.values()},d.entries=function(){var p=this[ye];return a(p),t(p),p.o.entries()},d.keys=function(){return this.values()},d[Yo]=function(){return this.values()},d.forEach=function(p,g){for(var m=this.values(),b=m.next();!b.done;)p.call(g,b.value,b.value,this),b=m.next()},l}();Ec("MapSet",{F:function(l,d){return new i(l,d)},T:function(l,d){return new c(l,d)}})}var Nd,ea,Sc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",cS=typeof Map<"u",lS=typeof Set<"u",Ld=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",wc=Sc?Symbol.for("immer-nothing"):((Nd={})["immer-nothing"]=!0,Nd),Ia=Sc?Symbol.for("immer-draftable"):"__$immer_draftable",ye=Sc?Symbol.for("immer-state"):"__$immer_state",Yo=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",fS={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"},dS=""+Object.prototype.constructor,Vn=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Xp=Object.getOwnPropertyDescriptors||function(e){var r={};return Vn(e).forEach(function(t){r[t]=Object.getOwnPropertyDescriptor(e,t)}),r},zu={},Ba={get:function(e,r){if(r===ye)return e;var t=dt(e);if(!an(t,r))return function(s,i,c){var l,d=$d(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||!vr(a)?a:a===gu(e.t,r)?(vu(e),e.o[r]=ja(e.A.h,a,e)):a},has:function(e,r){return r in dt(e)},ownKeys:function(e){return Reflect.ownKeys(dt(e))},set:function(e,r,t){var a=$d(dt(e),r);if(a!=null&&a.set)return a.set.call(e.k,t),!0;if(!e.P){var s=gu(dt(e),r),i=s==null?void 0:s[ye];if(i&&i.t===t)return e.o[r]=t,e.R[r]=!1,!0;if(Jp(t,s)&&(t!==void 0||an(e.t,r)))return!0;vu(e),Lt(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 gu(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,vu(e),Lt(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var t=dt(e),a=Reflect.getOwnPropertyDescriptor(t,r);return a&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:a.enumerable,value:t[r]}},defineProperty:function(){Xe(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Xe(12)}},Pa={};Br(Ba,function(e,r){Pa[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),Pa.deleteProperty=function(e,r){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(r))&&Xe(13),Pa.set.call(this,e,r,void 0)},Pa.set=function(e,r,t){return process.env.NODE_ENV!=="production"&&r!=="length"&&isNaN(parseInt(r))&&Xe(14),Ba.set.call(this,e[0],r,t,e[0])};var pS=function(){function e(t){var a=this;this.O=Ld,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 I=this;C===void 0&&(C=l);for(var P=arguments.length,j=Array(P>1?P-1:0),M=1;M<P;M++)j[M-1]=arguments[M];return d.produce(C,function(k){var O;return(O=i).call.apply(O,[I,k].concat(j))})}}var p;if(typeof i!="function"&&Xe(6),c!==void 0&&typeof c!="function"&&Xe(7),vr(s)){var g=Id(a),m=ja(a,s,void 0),b=!0;try{p=i(m),b=!1}finally{b?is(g):Gu(g)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(C){return pu(g,c),hu(C,g)},function(C){throw is(g),C}):(pu(g,c),hu(p,g))}if(!s||typeof s!="object"){if((p=i(s))===void 0&&(p=s),p===wc&&(p=void 0),a.D&&bc(p,!0),c){var E=[],x=[];Er("Patches").M(s,p,E,x),c(E,x)}return p}Xe(21,s)},this.produceWithPatches=function(s,i){if(typeof s=="function")return function(p){for(var g=arguments.length,m=Array(g>1?g-1:0),b=1;b<g;b++)m[b-1]=arguments[b];return a.produceWithPatches(p,function(E){return s.apply(void 0,[E].concat(m))})};var c,l,d=a.produce(s,i,function(p,g){c=p,l=g});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){vr(t)||Xe(8),jr(t)&&(t=oS(t));var a=Id(this),s=ja(this,t,void 0);return s[ye].C=!0,Gu(a),s},r.finishDraft=function(t,a){var s=t&&t[ye];process.env.NODE_ENV!=="production"&&(s&&s.C||Xe(9),s.I&&Xe(10));var i=s.A;return pu(i,a),hu(void 0,i)},r.setAutoFreeze=function(t){this.D=t},r.setUseProxies=function(t){t&&!Ld&&Xe(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=Er("Patches").$;return jr(t)?c(t,a):this.produce(t,function(l){return c(l,a)})},e}(),zt=new pS,es=zt.produce;zt.produceWithPatches.bind(zt);zt.setAutoFreeze.bind(zt);zt.setUseProxies.bind(zt);zt.applyPatches.bind(zt);zt.createDraft.bind(zt);zt.finishDraft.bind(zt);function Wa(e){"@babel/helpers - typeof";return Wa=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},Wa(e)}function hS(e,r){if(Wa(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r||"default");if(Wa(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function gS(e){var r=hS(e,"string");return Wa(r)==="symbol"?r:String(r)}function vS(e,r,t){return r=gS(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function kd(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 jd(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?kd(Object(t),!0).forEach(function(a){vS(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):kd(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function xt(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 Bd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),mu=function(){return Math.random().toString(36).substring(7).split("").join(".")},Rn={INIT:"@@redux/INIT"+mu(),REPLACE:"@@redux/REPLACE"+mu(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+mu()}};function Zp(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 mS(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(_S(e))return"date";if(bS(e))return"error";var t=yS(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 yS(e){return typeof e.constructor=="function"?e.constructor.name:null}function bS(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function _S(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Cn(e){var r=typeof e;return process.env.NODE_ENV!=="production"&&(r=mS(e)),r}function Qp(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"?xt(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"?xt(1):"Expected the enhancer to be a function. Instead, received: '"+Cn(t)+"'");return t(Qp)(e,r)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?xt(2):"Expected the root reducer to be a function. Instead, received: '"+Cn(e)+"'");var s=e,i=r,c=[],l=c,d=!1;function p(){l===c&&(l=c.slice())}function g(){if(d)throw new Error(process.env.NODE_ENV==="production"?xt(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"?xt(4):"Expected the listener to be a function. Instead, received: '"+Cn(C)+"'");if(d)throw new Error(process.env.NODE_ENV==="production"?xt(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 I=!0;return p(),l.push(C),function(){if(I){if(d)throw new Error(process.env.NODE_ENV==="production"?xt(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.");I=!1,p();var j=l.indexOf(C);l.splice(j,1),c=null}}}function b(C){if(!Zp(C))throw new Error(process.env.NODE_ENV==="production"?xt(7):"Actions must be plain objects. Instead, the actual type was: '"+Cn(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"?xt(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"?xt(9):"Reducers may not dispatch actions.");try{d=!0,i=s(i,C)}finally{d=!1}for(var I=c=l,P=0;P<I.length;P++){var j=I[P];j()}return C}function E(C){if(typeof C!="function")throw new Error(process.env.NODE_ENV==="production"?xt(10):"Expected the nextReducer to be a function. Instead, received: '"+Cn(C));s=C,b({type:Rn.REPLACE})}function x(){var C,I=m;return C={subscribe:function(j){if(typeof j!="object"||j===null)throw new Error(process.env.NODE_ENV==="production"?xt(11):"Expected the observer to be an object. Instead, received: '"+Cn(j)+"'");function M(){j.next&&j.next(g())}M();var k=I(M);return{unsubscribe:k}}},C[Bd]=function(){return this},C}return b({type:Rn.INIT}),a={dispatch:b,subscribe:m,getState:g,replaceReducer:E},a[Bd]=x,a}function Wd(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function ES(e,r,t,a){var s=Object.keys(r),i=t&&t.type===Rn.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(!Zp(e))return"The "+i+' has unexpected type of "'+Cn(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===Rn.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 SS(e){Object.keys(e).forEach(function(r){var t=e[r],a=t(void 0,{type:Rn.INIT});if(typeof a>"u")throw new Error(process.env.NODE_ENV==="production"?xt(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:Rn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?xt(13):'The slice reducer for key "'+r+'" returned undefined when probed with a random type. '+("Don't try to handle '"+Rn.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 eh(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"&&Wd('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{SS(t)}catch(d){l=d}return function(p,g){if(p===void 0&&(p={}),l)throw l;if(process.env.NODE_ENV!=="production"){var m=ES(p,t,g,c);m&&Wd(m)}for(var b=!1,E={},x=0;x<i.length;x++){var C=i[x],I=t[C],P=p[C],j=I(P,g);if(typeof j>"u"){var M=g&&g.type;throw new Error(process.env.NODE_ENV==="production"?xt(14):"When called with an action of type "+(M?'"'+String(M)+'"':"(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]=j,b=b||j!==P}return b=b||i.length!==Object.keys(p).length,b?E:p}}function ls(){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 wS(){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"?xt(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=ls.apply(void 0,l)(s.dispatch),jd(jd({},s),{},{dispatch:i})}}}var fs="NOT_FOUND";function TS(e){var r;return{get:function(a){return r&&e(r.key,a)?r.value:fs},put:function(a,s){r={key:a,value:s}},getEntries:function(){return r?[r]:[]},clear:function(){r=void 0}}}function xS(e,r){var t=[];function a(l){var d=t.findIndex(function(g){return r(l,g.key)});if(d>-1){var p=t[d];return d>0&&(t.splice(d,1),t.unshift(p)),p.value}return fs}function s(l,d){a(l)===fs&&(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 CS=function(r,t){return r===t};function RS(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 OS(e,r){var t=typeof r=="object"?r:{equalityCheck:r},a=t.equalityCheck,s=a===void 0?CS:a,i=t.maxSize,c=i===void 0?1:i,l=t.resultEqualityCheck,d=RS(s),p=c===1?TS(d):xS(c,d);function g(){var m=p.get(arguments);if(m===fs){if(m=e.apply(null,arguments),l){var b=p.getEntries(),E=b.find(function(x){return l(x.value,m)});E&&(m=E.value)}p.put(arguments,m)}return m}return g.clearCache=function(){return p.clear()},g}function AS(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 PS(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,g,m={memoizeOptions:void 0},b=l.pop();if(typeof b=="object"&&(m=b,b=l.pop()),typeof b!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof b+"]");var E=m,x=E.memoizeOptions,C=x===void 0?t:x,I=Array.isArray(C)?C:[C],P=AS(l),j=e.apply(void 0,[function(){return p++,b.apply(null,arguments)}].concat(I)),M=e(function(){for(var O=[],Y=P.length,H=0;H<Y;H++)O.push(P[H].apply(null,arguments));return g=j.apply(null,O),g});return Object.assign(M,{resultFunc:b,memoizedResultFunc:j,dependencies:P,lastResult:function(){return g},recomputations:function(){return p},resetRecomputations:function(){return p=0}}),M};return s}var q=PS(OS);function th(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 rh=th();rh.withExtraArgument=th;const Ud=rh;var DS=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)}}(),IS=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(g){return d([p,g])}}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(g){p=[6,g],s=0}finally{a=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},ds=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},FS=Object.defineProperty,$S=Object.defineProperties,MS=Object.getOwnPropertyDescriptors,Hd=Object.getOwnPropertySymbols,NS=Object.prototype.hasOwnProperty,LS=Object.prototype.propertyIsEnumerable,qd=function(e,r,t){return r in e?FS(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t},on=function(e,r){for(var t in r||(r={}))NS.call(r,t)&&qd(e,t,r[t]);if(Hd)for(var a=0,s=Hd(r);a<s.length;a++){var t=s[a];LS.call(r,t)&&qd(e,t,r[t])}return e},yu=function(e,r){return $S(e,MS(r))},kS=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())})},jS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ls:ls.apply(null,arguments)};function nh(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}function ah(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.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("@ws-ui/shared"),Ke=require("react"),eS=require("react-dom");function Xe(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=cS[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 kr(e){return!!e&&!!e[ye]}function vr(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)===lS}(e)||Array.isArray(e)||!!e[Ia]||!!(!((r=e.constructor)===null||r===void 0)&&r[Ia])||xs(e)||Cs(e))}function Br(e,r,t){t===void 0&&(t=!1),un(e)===0?(t?Object.keys:Kn)(e).forEach(function(a){t&&typeof a=="symbol"||r(a,e[a],e)}):e.forEach(function(a,s){return r(s,a,e)})}function un(e){var r=e[ye];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:xs(e)?2:Cs(e)?3:0}function an(e,r){return un(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function Zo(e,r){return un(e)===2?e.get(r):e[r]}function Kp(e,r,t){var a=un(e);a===2?e.set(r,t):a===3?e.add(t):e[r]=t}function Jp(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function xs(e){return iS&&e instanceof Map}function Cs(e){return uS&&e instanceof Set}function dt(e){return e.o||e.t}function mc(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=Xp(e);delete r[ye];for(var t=Kn(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 yc(e,r){return r===void 0&&(r=!1),bc(e)||kr(e)||!vr(e)||(un(e)>1&&(e.set=e.add=e.clear=e.delete=tS),Object.freeze(e),r&&Br(e,function(t,a){return yc(a,!0)},!0)),e}function tS(){Xe(2)}function bc(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Er(e){var r=Gu[e];return r||Xe(18,e),r}function _c(e,r){Gu[e]||(Gu[e]=r)}function ja(){return process.env.NODE_ENV==="production"||ea||Xe(0),ea}function du(e,r){r&&(Er("Patches"),e.u=[],e.s=[],e.v=r)}function ss(e){qu(e),e.p.forEach(rS),e.p=null}function qu(e){e===ea&&(ea=e.l)}function Id(e){return ea={p:[],l:ea,h:e,m:!0,_:0}}function rS(e){var r=e[ye];r.i===0||r.i===1?r.j():r.g=!0}function pu(e,r){r._=r.p.length;var t=r.p[0],a=e!==void 0&&e!==t;return r.h.O||Er("ES5").S(r,e,a),a?(t[ye].P&&(ss(r),Xe(4)),vr(e)&&(e=is(r,e),r.l||us(r,e)),r.u&&Er("Patches").M(t[ye].t,e,r.u,r.s)):e=is(r,t,[]),ss(r),r.u&&r.v(r.u,r.s),e!==Sc?e:void 0}function is(e,r,t){if(bc(r))return r;var a=r[ye];if(!a)return Br(r,function(l,d){return Fd(e,a,r,l,d,t)},!0),r;if(a.A!==e)return r;if(!a.P)return us(e,a.t,!0),a.t;if(!a.I){a.I=!0,a.A._--;var s=a.i===4||a.i===5?a.o=mc(a.k):a.o,i=s,c=!1;a.i===3&&(i=new Set(s),s.clear(),c=!0),Br(i,function(l,d){return Fd(e,a,s,l,d,t,c)}),us(e,s,!1),t&&e.u&&Er("Patches").N(a,t,e.u,e.s)}return a.o}function Fd(e,r,t,a,s,i,c){if(process.env.NODE_ENV!=="production"&&s===t&&Xe(5),kr(s)){var l=is(e,s,i&&r&&r.i!==3&&!an(r.R,a)?i.concat(a):void 0);if(Kp(t,a,l),!kr(l))return;e.m=!1}else c&&t.add(s);if(vr(s)&&!bc(s)){if(!e.h.D&&e._<1)return;is(e,s),r&&r.A.l||us(e,s)}}function us(e,r,t){t===void 0&&(t=!1),!e.l&&e.h.D&&e.m&&yc(r,t)}function hu(e,r){var t=e[ye];return(t?dt(t):e)[r]}function $d(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 Lt(e){e.P||(e.P=!0,e.l&&Lt(e.l))}function gu(e){e.o||(e.o=mc(e.t))}function ka(e,r,t){var a=xs(r)?Er("MapSet").F(r,t):Cs(r)?Er("MapSet").T(r,t):e.O?function(s,i){var c=Array.isArray(s),l={i:c?1:0,A:i?i.A:ja(),P:!1,I:!1,R:{},l:i,t:s,k:null,o:null,j:null,C:!1},d=l,p=Ba;c&&(d=[l],p=Pa);var g=Proxy.revocable(d,p),m=g.revoke,b=g.proxy;return l.k=b,l.j=m,b}(r,t):Er("ES5").J(r,t);return(t?t.A:ja()).p.push(a),a}function nS(e){return kr(e)||Xe(22,e),function r(t){if(!vr(t))return t;var a,s=t[ye],i=un(t);if(s){if(!s.P&&(s.i<4||!Er("ES5").K(s)))return s.t;s.I=!0,a=Md(t,i),s.I=!1}else a=Md(t,i);return Br(a,function(c,l){s&&Zo(s.t,c)===l||Kp(a,c,r(l))}),i===3?new Set(a):a}(e)}function Md(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return mc(e)}function aS(){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[ye];return process.env.NODE_ENV!=="production"&&s(p),Ba.get(p,c)},set:function(p){var g=this[ye];process.env.NODE_ENV!=="production"&&s(g),Ba.set(g,c,p)}},d}function r(c){for(var l=c.length-1;l>=0;l--){var d=c[l][ye];if(!d.P)switch(d.i){case 5:a(d)&&Lt(d);break;case 4:t(d)&&Lt(d)}}}function t(c){for(var l=c.t,d=c.k,p=Kn(d),g=p.length-1;g>=0;g--){var m=p[g];if(m!==ye){var b=l[m];if(b===void 0&&!an(l,m))return!0;var E=d[m],x=E&&E[ye];if(x?x.t!==b:!Jp(E,b))return!0}}var C=!!l[ye];return p.length!==Kn(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&&Xe(3,JSON.stringify(dt(c)))}var i={};_c("ES5",{J:function(c,l){var d=Array.isArray(c),p=function(m,b){if(m){for(var E=Array(b.length),x=0;x<b.length;x++)Object.defineProperty(E,""+x,e(x,!0));return E}var C=Xp(b);delete C[ye];for(var I=Kn(C),P=0;P<I.length;P++){var k=I[P];C[k]=e(k,m||!!C[k].enumerable)}return Object.create(Object.getPrototypeOf(b),C)}(d,c),g={i:d?5:4,A:l?l.A:ja(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,ye,{value:g,writable:!0}),p},S:function(c,l,d){d?kr(l)&&l[ye].A===c&&r(c.p):(c.u&&function p(g){if(g&&typeof g=="object"){var m=g[ye];if(m){var b=m.t,E=m.k,x=m.R,C=m.i;if(C===4)Br(E,function(j){j!==ye&&(b[j]!==void 0||an(b,j)?x[j]||p(E[j]):(x[j]=!0,Lt(m)))}),Br(b,function(j){E[j]!==void 0||an(E,j)||(x[j]=!1,Lt(m))});else if(C===5){if(a(m)&&(Lt(m),x.length=!0),E.length<b.length)for(var I=E.length;I<b.length;I++)x[I]=!1;else for(var P=b.length;P<E.length;P++)x[P]=!0;for(var k=Math.min(E.length,b.length),M=0;M<k;M++)E.hasOwnProperty(M)||(x[M]=!0),x[M]===void 0&&p(E[M])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?t(c):a(c)}})}function oS(){function e(a){if(!vr(a))return a;if(Array.isArray(a))return a.map(e);if(xs(a))return new Map(Array.from(a.entries()).map(function(c){return[c[0],e(c[1])]}));if(Cs(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 an(a,Ia)&&(s[Ia]=a[Ia]),s}function r(a){return kr(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 g=un(d),m=c[p];typeof m!="string"&&typeof m!="number"&&(m=""+m),g!==0&&g!==1||m!=="__proto__"&&m!=="constructor"||Xe(24),typeof d=="function"&&m==="prototype"&&Xe(24),typeof(d=Zo(d,m))!="object"&&Xe(15,c.join("/"))}var b=un(d),E=e(i.value),x=c[c.length-1];switch(l){case"replace":switch(b){case 2:return d.set(x,E);case 3:Xe(16);default:return d[x]=E}case t:switch(b){case 1:return x==="-"?d.push(E):d.splice(x,0,E);case 2:return d.set(x,E);case 3:return d.add(E);default:return d[x]=E}case"remove":switch(b){case 1:return d.splice(x,1);case 2:return d.delete(x);case 3:return d.delete(i.value);default:return delete d[x]}default:Xe(17,l)}}),a},N:function(a,s,i,c){switch(a.i){case 0:case 4:case 2:return function(l,d,p,g){var m=l.t,b=l.o;Br(l.R,function(E,x){var C=Zo(m,E),I=Zo(b,E),P=x?an(m,E)?"replace":t:"remove";if(C!==I||P!=="replace"){var k=d.concat(E);p.push(P==="remove"?{op:P,path:k}:{op:P,path:k,value:I}),g.push(P===t?{op:"remove",path:k}:P==="remove"?{op:t,path:k,value:r(C)}:{op:"replace",path:k,value:r(C)})}})}(a,s,i,c);case 5:case 1:return function(l,d,p,g){var m=l.t,b=l.R,E=l.o;if(E.length<m.length){var x=[E,m];m=x[0],E=x[1];var C=[g,p];p=C[0],g=C[1]}for(var I=0;I<m.length;I++)if(b[I]&&E[I]!==m[I]){var P=d.concat([I]);p.push({op:"replace",path:P,value:r(E[I])}),g.push({op:"replace",path:P,value:r(m[I])})}for(var k=m.length;k<E.length;k++){var M=d.concat([k]);p.push({op:t,path:M,value:r(E[k])})}m.length<E.length&&g.push({op:"replace",path:d.concat(["length"]),value:m.length})}(a,s,i,c);case 3:return function(l,d,p,g){var m=l.t,b=l.o,E=0;m.forEach(function(x){if(!b.has(x)){var C=d.concat([E]);p.push({op:"remove",path:C,value:x}),g.unshift({op:t,path:C,value:x})}E++}),E=0,b.forEach(function(x){if(!m.has(x)){var C=d.concat([E]);p.push({op:t,path:C,value:x}),g.unshift({op:"remove",path:C,value:x})}E++})}(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 sS(){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(vr(d)){var p=ka(l.A.h,d,l);l.p.set(d,p),l.o.add(p)}else l.o.add(d)}))}function a(l){l.g&&Xe(3,JSON.stringify(dt(l)))}var s=function(l,d){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var m in g)g.hasOwnProperty(m)&&(p[m]=g[m])})(l,d)},i=function(){function l(p,g){return this[ye]={i:2,l:g,A:g?g.A:ja(),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 dt(this[ye]).size}}),d.has=function(p){return dt(this[ye]).has(p)},d.set=function(p,g){var m=this[ye];return a(m),dt(m).has(p)&&dt(m).get(p)===g||(r(m),Lt(m),m.R.set(p,!0),m.o.set(p,g),m.R.set(p,!0)),this},d.delete=function(p){if(!this.has(p))return!1;var g=this[ye];return a(g),r(g),Lt(g),g.t.has(p)?g.R.set(p,!1):g.R.delete(p),g.o.delete(p),!0},d.clear=function(){var p=this[ye];a(p),dt(p).size&&(r(p),Lt(p),p.R=new Map,Br(p.t,function(g){p.R.set(g,!1)}),p.o.clear())},d.forEach=function(p,g){var m=this;dt(this[ye]).forEach(function(b,E){p.call(g,m.get(E),E,m)})},d.get=function(p){var g=this[ye];a(g);var m=dt(g).get(p);if(g.I||!vr(m)||m!==g.t.get(p))return m;var b=ka(g.A.h,m,g);return r(g),g.o.set(p,b),b},d.keys=function(){return dt(this[ye]).keys()},d.values=function(){var p,g=this,m=this.keys();return(p={})[zo]=function(){return g.values()},p.next=function(){var b=m.next();return b.done?b:{done:!1,value:g.get(b.value)}},p},d.entries=function(){var p,g=this,m=this.keys();return(p={})[zo]=function(){return g.entries()},p.next=function(){var b=m.next();if(b.done)return b;var E=g.get(b.value);return{done:!1,value:[b.value,E]}},p},d[zo]=function(){return this.entries()},l}(),c=function(){function l(p,g){return this[ye]={i:3,l:g,A:g?g.A:ja(),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 dt(this[ye]).size}}),d.has=function(p){var g=this[ye];return a(g),g.o?!!g.o.has(p)||!(!g.p.has(p)||!g.o.has(g.p.get(p))):g.t.has(p)},d.add=function(p){var g=this[ye];return a(g),this.has(p)||(t(g),Lt(g),g.o.add(p)),this},d.delete=function(p){if(!this.has(p))return!1;var g=this[ye];return a(g),t(g),Lt(g),g.o.delete(p)||!!g.p.has(p)&&g.o.delete(g.p.get(p))},d.clear=function(){var p=this[ye];a(p),dt(p).size&&(t(p),Lt(p),p.o.clear())},d.values=function(){var p=this[ye];return a(p),t(p),p.o.values()},d.entries=function(){var p=this[ye];return a(p),t(p),p.o.entries()},d.keys=function(){return this.values()},d[zo]=function(){return this.values()},d.forEach=function(p,g){for(var m=this.values(),b=m.next();!b.done;)p.call(g,b.value,b.value,this),b=m.next()},l}();_c("MapSet",{F:function(l,d){return new i(l,d)},T:function(l,d){return new c(l,d)}})}var Nd,ea,Ec=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",iS=typeof Map<"u",uS=typeof Set<"u",Ld=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Sc=Ec?Symbol.for("immer-nothing"):((Nd={})["immer-nothing"]=!0,Nd),Ia=Ec?Symbol.for("immer-draftable"):"__$immer_draftable",ye=Ec?Symbol.for("immer-state"):"__$immer_state",zo=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",cS={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"},lS=""+Object.prototype.constructor,Kn=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Xp=Object.getOwnPropertyDescriptors||function(e){var r={};return Kn(e).forEach(function(t){r[t]=Object.getOwnPropertyDescriptor(e,t)}),r},Gu={},Ba={get:function(e,r){if(r===ye)return e;var t=dt(e);if(!an(t,r))return function(s,i,c){var l,d=$d(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||!vr(a)?a:a===hu(e.t,r)?(gu(e),e.o[r]=ka(e.A.h,a,e)):a},has:function(e,r){return r in dt(e)},ownKeys:function(e){return Reflect.ownKeys(dt(e))},set:function(e,r,t){var a=$d(dt(e),r);if(a!=null&&a.set)return a.set.call(e.k,t),!0;if(!e.P){var s=hu(dt(e),r),i=s==null?void 0:s[ye];if(i&&i.t===t)return e.o[r]=t,e.R[r]=!1,!0;if(Jp(t,s)&&(t!==void 0||an(e.t,r)))return!0;gu(e),Lt(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 hu(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,gu(e),Lt(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var t=dt(e),a=Reflect.getOwnPropertyDescriptor(t,r);return a&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:a.enumerable,value:t[r]}},defineProperty:function(){Xe(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Xe(12)}},Pa={};Br(Ba,function(e,r){Pa[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),Pa.deleteProperty=function(e,r){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(r))&&Xe(13),Pa.set.call(this,e,r,void 0)},Pa.set=function(e,r,t){return process.env.NODE_ENV!=="production"&&r!=="length"&&isNaN(parseInt(r))&&Xe(14),Ba.set.call(this,e[0],r,t,e[0])};var fS=function(){function e(t){var a=this;this.O=Ld,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 I=this;C===void 0&&(C=l);for(var P=arguments.length,k=Array(P>1?P-1:0),M=1;M<P;M++)k[M-1]=arguments[M];return d.produce(C,function(j){var O;return(O=i).call.apply(O,[I,j].concat(k))})}}var p;if(typeof i!="function"&&Xe(6),c!==void 0&&typeof c!="function"&&Xe(7),vr(s)){var g=Id(a),m=ka(a,s,void 0),b=!0;try{p=i(m),b=!1}finally{b?ss(g):qu(g)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(C){return du(g,c),pu(C,g)},function(C){throw ss(g),C}):(du(g,c),pu(p,g))}if(!s||typeof s!="object"){if((p=i(s))===void 0&&(p=s),p===Sc&&(p=void 0),a.D&&yc(p,!0),c){var E=[],x=[];Er("Patches").M(s,p,E,x),c(E,x)}return p}Xe(21,s)},this.produceWithPatches=function(s,i){if(typeof s=="function")return function(p){for(var g=arguments.length,m=Array(g>1?g-1:0),b=1;b<g;b++)m[b-1]=arguments[b];return a.produceWithPatches(p,function(E){return s.apply(void 0,[E].concat(m))})};var c,l,d=a.produce(s,i,function(p,g){c=p,l=g});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){vr(t)||Xe(8),kr(t)&&(t=nS(t));var a=Id(this),s=ka(this,t,void 0);return s[ye].C=!0,qu(a),s},r.finishDraft=function(t,a){var s=t&&t[ye];process.env.NODE_ENV!=="production"&&(s&&s.C||Xe(9),s.I&&Xe(10));var i=s.A;return du(i,a),pu(void 0,i)},r.setAutoFreeze=function(t){this.D=t},r.setUseProxies=function(t){t&&!Ld&&Xe(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=Er("Patches").$;return kr(t)?c(t,a):this.produce(t,function(l){return c(l,a)})},e}(),zt=new fS,Qo=zt.produce;zt.produceWithPatches.bind(zt);zt.setAutoFreeze.bind(zt);zt.setUseProxies.bind(zt);zt.applyPatches.bind(zt);zt.createDraft.bind(zt);zt.finishDraft.bind(zt);function Wa(e){"@babel/helpers - typeof";return Wa=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},Wa(e)}function dS(e,r){if(Wa(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r||"default");if(Wa(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function pS(e){var r=dS(e,"string");return Wa(r)==="symbol"?r:String(r)}function hS(e,r,t){return r=pS(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function jd(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 kd(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?jd(Object(t),!0).forEach(function(a){hS(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):jd(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function xt(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 Bd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),vu=function(){return Math.random().toString(36).substring(7).split("").join(".")},Rn={INIT:"@@redux/INIT"+vu(),REPLACE:"@@redux/REPLACE"+vu(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+vu()}};function Zp(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 gS(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(yS(e))return"date";if(mS(e))return"error";var t=vS(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 vS(e){return typeof e.constructor=="function"?e.constructor.name:null}function mS(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function yS(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Cn(e){var r=typeof e;return process.env.NODE_ENV!=="production"&&(r=gS(e)),r}function Qp(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"?xt(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"?xt(1):"Expected the enhancer to be a function. Instead, received: '"+Cn(t)+"'");return t(Qp)(e,r)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?xt(2):"Expected the root reducer to be a function. Instead, received: '"+Cn(e)+"'");var s=e,i=r,c=[],l=c,d=!1;function p(){l===c&&(l=c.slice())}function g(){if(d)throw new Error(process.env.NODE_ENV==="production"?xt(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"?xt(4):"Expected the listener to be a function. Instead, received: '"+Cn(C)+"'");if(d)throw new Error(process.env.NODE_ENV==="production"?xt(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 I=!0;return p(),l.push(C),function(){if(I){if(d)throw new Error(process.env.NODE_ENV==="production"?xt(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.");I=!1,p();var k=l.indexOf(C);l.splice(k,1),c=null}}}function b(C){if(!Zp(C))throw new Error(process.env.NODE_ENV==="production"?xt(7):"Actions must be plain objects. Instead, the actual type was: '"+Cn(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"?xt(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"?xt(9):"Reducers may not dispatch actions.");try{d=!0,i=s(i,C)}finally{d=!1}for(var I=c=l,P=0;P<I.length;P++){var k=I[P];k()}return C}function E(C){if(typeof C!="function")throw new Error(process.env.NODE_ENV==="production"?xt(10):"Expected the nextReducer to be a function. Instead, received: '"+Cn(C));s=C,b({type:Rn.REPLACE})}function x(){var C,I=m;return C={subscribe:function(k){if(typeof k!="object"||k===null)throw new Error(process.env.NODE_ENV==="production"?xt(11):"Expected the observer to be an object. Instead, received: '"+Cn(k)+"'");function M(){k.next&&k.next(g())}M();var j=I(M);return{unsubscribe:j}}},C[Bd]=function(){return this},C}return b({type:Rn.INIT}),a={dispatch:b,subscribe:m,getState:g,replaceReducer:E},a[Bd]=x,a}function Wd(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function bS(e,r,t,a){var s=Object.keys(r),i=t&&t.type===Rn.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(!Zp(e))return"The "+i+' has unexpected type of "'+Cn(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===Rn.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 _S(e){Object.keys(e).forEach(function(r){var t=e[r],a=t(void 0,{type:Rn.INIT});if(typeof a>"u")throw new Error(process.env.NODE_ENV==="production"?xt(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:Rn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?xt(13):'The slice reducer for key "'+r+'" returned undefined when probed with a random type. '+("Don't try to handle '"+Rn.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 eh(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"&&Wd('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{_S(t)}catch(d){l=d}return function(p,g){if(p===void 0&&(p={}),l)throw l;if(process.env.NODE_ENV!=="production"){var m=bS(p,t,g,c);m&&Wd(m)}for(var b=!1,E={},x=0;x<i.length;x++){var C=i[x],I=t[C],P=p[C],k=I(P,g);if(typeof k>"u"){var M=g&&g.type;throw new Error(process.env.NODE_ENV==="production"?xt(14):"When called with an action of type "+(M?'"'+String(M)+'"':"(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]=k,b=b||k!==P}return b=b||i.length!==Object.keys(p).length,b?E:p}}function cs(){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 ES(){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"?xt(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=cs.apply(void 0,l)(s.dispatch),kd(kd({},s),{},{dispatch:i})}}}var ls="NOT_FOUND";function SS(e){var r;return{get:function(a){return r&&e(r.key,a)?r.value:ls},put:function(a,s){r={key:a,value:s}},getEntries:function(){return r?[r]:[]},clear:function(){r=void 0}}}function wS(e,r){var t=[];function a(l){var d=t.findIndex(function(g){return r(l,g.key)});if(d>-1){var p=t[d];return d>0&&(t.splice(d,1),t.unshift(p)),p.value}return ls}function s(l,d){a(l)===ls&&(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 TS=function(r,t){return r===t};function xS(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 CS(e,r){var t=typeof r=="object"?r:{equalityCheck:r},a=t.equalityCheck,s=a===void 0?TS:a,i=t.maxSize,c=i===void 0?1:i,l=t.resultEqualityCheck,d=xS(s),p=c===1?SS(d):wS(c,d);function g(){var m=p.get(arguments);if(m===ls){if(m=e.apply(null,arguments),l){var b=p.getEntries(),E=b.find(function(x){return l(x.value,m)});E&&(m=E.value)}p.put(arguments,m)}return m}return g.clearCache=function(){return p.clear()},g}function RS(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 OS(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,g,m={memoizeOptions:void 0},b=l.pop();if(typeof b=="object"&&(m=b,b=l.pop()),typeof b!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof b+"]");var E=m,x=E.memoizeOptions,C=x===void 0?t:x,I=Array.isArray(C)?C:[C],P=RS(l),k=e.apply(void 0,[function(){return p++,b.apply(null,arguments)}].concat(I)),M=e(function(){for(var O=[],Y=P.length,H=0;H<Y;H++)O.push(P[H].apply(null,arguments));return g=k.apply(null,O),g});return Object.assign(M,{resultFunc:b,memoizedResultFunc:k,dependencies:P,lastResult:function(){return g},recomputations:function(){return p},resetRecomputations:function(){return p=0}}),M};return s}var q=OS(CS);function th(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 rh=th();rh.withExtraArgument=th;const Ud=rh;var AS=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)}}(),PS=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(g){return d([p,g])}}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(g){p=[6,g],s=0}finally{a=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},fs=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},DS=Object.defineProperty,IS=Object.defineProperties,FS=Object.getOwnPropertyDescriptors,Hd=Object.getOwnPropertySymbols,$S=Object.prototype.hasOwnProperty,MS=Object.prototype.propertyIsEnumerable,qd=function(e,r,t){return r in e?DS(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t},on=function(e,r){for(var t in r||(r={}))$S.call(r,t)&&qd(e,t,r[t]);if(Hd)for(var a=0,s=Hd(r);a<s.length;a++){var t=s[a];MS.call(r,t)&&qd(e,t,r[t])}return e},mu=function(e,r){return IS(e,FS(r))},NS=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())})},LS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?cs:cs.apply(null,arguments)};function nh(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}function ah(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
2
|
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
|
|
3
|
-
It is disabled in production builds, so you don't need to worry about that.`)}}}var
|
|
3
|
+
It is disabled in production builds, so you don't need to worry about that.`)}}}var jS=function(e){AS(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,fs([void 0],t[0].concat(this)))):new(r.bind.apply(r,fs([void 0],t.concat(this))))},r}(Array),kS=process.env.NODE_ENV==="production",Gd="Invariant failed";function zd(e,r){if(!e)throw kS?new Error(Gd):new Error(Gd+": "+(r||""))}function BS(e,r,t,a){return JSON.stringify(e,WS(r,a),t)}function WS(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 US(e){return typeof e!="object"||e===null||typeof e>"u"||Object.isFrozen(e)}function HS(e,r,t){var a=oh(e,r,t);return{detectMutations:function(){return sh(e,r,a,t)}}}function oh(e,r,t,a){r===void 0&&(r=[]),a===void 0&&(a="");var s={value:t};if(!e(t)){s.children={};for(var i in t){var c=a?a+"."+i:i;r.length&&r.indexOf(c)!==-1||(s.children[i]=oh(e,r,t[i],c))}}return s}function sh(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;for(var p in d){var g=i?i+"."+p:p;if(!(r.length&&r.indexOf(g)!==-1)){var m=sh(e,r,t.children[p],a[p],l,g);if(m.wasMutated)return m}}return{wasMutated:!1}}function qS(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?US:r,a=e.ignoredPaths,s=e.warnAfter,i=s===void 0?32:s,c=e.ignore;a=a||c;var l=HS.bind(null,t,a);return function(d){var p=d.getState,g=p(),m=l(g),b;return function(E){return function(x){var C=ah(i,"ImmutableStateInvariantMiddleware");C.measureTime(function(){g=p(),b=m.detectMutations(),m=l(g),zd(!b.wasMutated,"A state mutation was detected between dispatches, in the path '"+(b.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var I=E(x);return C.measureTime(function(){g=p(),b=m.detectMutations(),m=l(g),b.wasMutated&&zd(!b.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(b.path||"")+". Take a look at the reducer(s) handling the action "+BS(x)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),C.warnIfExceeded(),I}}}}function ih(e){var r=typeof e;return r==="undefined"||e===null||r==="string"||r==="boolean"||r==="number"||Array.isArray(e)||nh(e)}function zu(e,r,t,a,s){r===void 0&&(r=""),t===void 0&&(t=ih),s===void 0&&(s=[]);var i;if(!t(e))return{keyPath:r||"<root>",value:e};if(typeof e!="object"||e===null)return!1;for(var c=a!=null?a(e):Object.entries(e),l=s.length>0,d=0,p=c;d<p.length;d++){var g=p[d],m=g[0],b=g[1],E=r?r+"."+m:m;if(!(l&&s.indexOf(E)>=0)){if(!t(b))return{keyPath:E,value:b};if(typeof b=="object"&&(i=zu(b,E,t,a,s),i))return i}}return!1}function GS(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(x){return function(C){return x(C)}}};var r=e.isSerializable,t=r===void 0?ih: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,g=e.warnAfter,m=g===void 0?32:g,b=e.ignoreState,E=b===void 0?!1:b;return function(x){return function(C){return function(I){if(i.length&&i.indexOf(I.type)!==-1)return C(I);var P=ah(m,"SerializableStateInvariantMiddleware");P.measureTime(function(){var M=zu(I,"",t,a,l);if(M){var j=M.keyPath,O=M.value;console.error("A non-serializable value was detected in an action, in the path: `"+j+"`. Value:",O,`
|
|
4
4
|
Take a look at the logic that dispatched this action: `,I,`
|
|
5
5
|
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
|
|
6
|
-
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}});var
|
|
6
|
+
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}});var k=C(I);return E||(P.measureTime(function(){var M=x.getState(),j=zu(M,"",t,a,p);if(j){var O=j.keyPath,Y=j.value;console.error("A non-serializable value was detected in the state, in the path: `"+O+"`. Value:",Y,`
|
|
7
7
|
Take a look at the reducer(s) handling this action type: `+I.type+`.
|
|
8
|
-
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),P.warnIfExceeded()),j}}}}function bu(e){return typeof e=="boolean"}function VS(){return function(r){return KS(r)}}function KS(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=new BS;if(t&&(bu(t)?l.push(Ud):l.push(Ud.withExtraArgument(t.extraArgument))),process.env.NODE_ENV!=="production"){if(s){var d={};bu(s)||(d=s),l.unshift(zS(d))}if(c){var p={};bu(c)||(p=c),l.push(YS(p))}}return l}var _u=process.env.NODE_ENV==="production";function JS(e){var r=VS(),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,g=p===void 0?void 0:p,m=t.enhancers,b=m===void 0?void 0:m,E;if(typeof s=="function")E=s;else if(nh(s))E=eh(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 x=c;if(typeof x=="function"&&(x=x(r),!_u&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!_u&&x.some(function(M){return typeof M!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=wS.apply(void 0,x),I=ls;d&&(I=jS(on({trace:!_u},typeof d=="object"&&d)));var P=[C];Array.isArray(b)?P=ds([C],b):typeof b=="function"&&(P=b(P));var j=I.apply(void 0,P);return Qp(E,g,j)}function Pt(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 on(on({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 uh(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 in r)throw new Error("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 XS(e){return typeof e=="function"}function ZS(e,r,t,a){t===void 0&&(t=[]);var s=typeof r=="function"?uh(r):[r,t,a],i=s[0],c=s[1],l=s[2],d;if(XS(e))d=function(){return es(e(),function(){})};else{var p=es(e,function(){});d=function(){return p}}function g(m,b){m===void 0&&(m=d());var E=ds([i[b.type]],c.filter(function(x){var C=x.matcher;return C(b)}).map(function(x){var C=x.reducer;return C}));return E.filter(function(x){return!!x}).length===0&&(E=[l]),E.reduce(function(x,C){if(C)if(jr(x)){var I=x,P=C(I,b);return typeof P>"u"?x:P}else{if(vr(x))return es(x,function(j){return C(j,b)});var P=C(x,b);if(typeof P>"u"){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return P}return x},m)}return g.getInitialState=d,g}function QS(e,r){return e+"/"+r}function or(e){var r=e.name;if(!r)throw new Error("`name` is a required option for createSlice");var t=typeof e.initialState=="function"?e.initialState:es(e.initialState,function(){}),a=e.reducers||{},s=Object.keys(a),i={},c={},l={};s.forEach(function(g){var m=a[g],b=QS(r,g),E,x;"reducer"in m?(E=m.reducer,x=m.prepare):E=m,i[g]=E,c[b]=E,l[g]=x?Pt(b,x):Pt(b)});function d(){var g=typeof e.extraReducers=="function"?uh(e.extraReducers):[e.extraReducers],m=g[0],b=m===void 0?{}:m,E=g[1],x=E===void 0?[]:E,C=g[2],I=C===void 0?void 0:C,P=on(on({},b),c);return ZS(t,P,x,I)}var p;return{name:r,reducer:function(g,m){return p||(p=d()),p(g,m)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var ew="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Tc=function(e){e===void 0&&(e=21);for(var r="",t=e;t--;)r+=ew[Math.random()*64|0];return r},tw=["name","message","stack","code"],Eu=function(){function e(r,t){this.payload=r,this.meta=t}return e}(),Yd=function(){function e(r,t){this.payload=r,this.meta=t}return e}(),rw=function(e){if(typeof e=="object"&&e!==null){for(var r={},t=0,a=tw;t<a.length;t++){var s=a[t];typeof e[s]=="string"&&(r[s]=e[s])}return r}return{message:String(e)}};function Q(e,r,t){var a=Pt(e+"/fulfilled",function(p,g,m,b){return{payload:p,meta:yu(on({},b||{}),{arg:m,requestId:g,requestStatus:"fulfilled"})}}),s=Pt(e+"/pending",function(p,g,m){return{payload:void 0,meta:yu(on({},m||{}),{arg:g,requestId:p,requestStatus:"pending"})}}),i=Pt(e+"/rejected",function(p,g,m,b,E){return{payload:b,error:(t&&t.serializeError||rw)(p||"Rejected"),meta:yu(on({},E||{}),{arg:m,requestId:g,rejectedWithValue:!!b,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(g,m,b){var E=t!=null&&t.idGenerator?t.idGenerator(p):Tc(),x=new l,C,I=new Promise(function(k,O){return x.signal.addEventListener("abort",function(){return O({name:"AbortError",message:C||"Aborted"})})}),P=!1;function j(k){P&&(C=k,x.abort())}var M=function(){return kS(this,null,function(){var k,O,Y,H,z,te;return IS(this,function(We){switch(We.label){case 0:return We.trys.push([0,4,,5]),H=(k=t==null?void 0:t.condition)==null?void 0:k.call(t,p,{getState:m,extra:b}),aw(H)?[4,H]:[3,2];case 1:H=We.sent(),We.label=2;case 2:if(H===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return P=!0,g(s(E,p,(O=t==null?void 0:t.getPendingMeta)==null?void 0:O.call(t,{requestId:E,arg:p},{getState:m,extra:b}))),[4,Promise.race([I,Promise.resolve(r(p,{dispatch:g,getState:m,extra:b,requestId:E,signal:x.signal,rejectWithValue:function(Te,it){return new Eu(Te,it)},fulfillWithValue:function(Te,it){return new Yd(Te,it)}})).then(function(Te){if(Te instanceof Eu)throw Te;return Te instanceof Yd?a(Te.payload,E,p,Te.meta):a(Te,E,p)})])];case 3:return Y=We.sent(),[3,5];case 4:return z=We.sent(),Y=z instanceof Eu?i(null,E,p,z.payload,z.meta):i(z,E,p),[3,5];case 5:return te=t&&!t.dispatchConditionRejection&&i.match(Y)&&Y.meta.condition,te||g(Y),[2,Y]}})})}();return Object.assign(M,{abort:j,requestId:E,arg:p,unwrap:function(){return M.then(nw)}})}}return Object.assign(d,{pending:s,rejected:i,fulfilled:a,typePrefix:e})}function nw(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function aw(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var ow=function(e){return e&&typeof e.match=="function"},sw=function(e,r){return ow(e)?e.match(r):e(r)};function hr(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return function(t){return e.some(function(a){return sw(a,t)})}}function xc(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 Cc(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function ch(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return xc(t,["pending"])}:Cc(e)?function(t){var a=e.map(function(i){return i.pending}),s=hr.apply(void 0,a);return s(t)}:ch()(e[0])}function lh(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return xc(t,["rejected"])}:Cc(e)?function(t){var a=e.map(function(i){return i.rejected}),s=hr.apply(void 0,a);return s(t)}:lh()(e[0])}function fh(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return xc(t,["fulfilled"])}:Cc(e)?function(t){var a=e.map(function(i){return i.fulfilled}),s=hr.apply(void 0,a);return s(t)}:fh()(e[0])}sS();var Nr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Os(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function iw(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 uw(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var Ha=uw,cw=typeof Nr=="object"&&Nr&&Nr.Object===Object&&Nr,dh=cw,lw=dh,fw=typeof self=="object"&&self&&self.Object===Object&&self,dw=lw||fw||Function("return this")(),wr=dw,pw=wr,hw=function(){return pw.Date.now()},gw=hw,vw=/\s/;function mw(e){for(var r=e.length;r--&&vw.test(e.charAt(r)););return r}var yw=mw,bw=yw,_w=/^\s+/;function Ew(e){return e&&e.slice(0,bw(e)+1).replace(_w,"")}var Sw=Ew,ww=wr,Tw=ww.Symbol,Rc=Tw,Vd=Rc,ph=Object.prototype,xw=ph.hasOwnProperty,Cw=ph.toString,Oa=Vd?Vd.toStringTag:void 0;function Rw(e){var r=xw.call(e,Oa),t=e[Oa];try{e[Oa]=void 0;var a=!0}catch{}var s=Cw.call(e);return a&&(r?e[Oa]=t:delete e[Oa]),s}var Ow=Rw,Aw=Object.prototype,Pw=Aw.toString;function Dw(e){return Pw.call(e)}var Iw=Dw,Kd=Rc,Fw=Ow,$w=Iw,Mw="[object Null]",Nw="[object Undefined]",Jd=Kd?Kd.toStringTag:void 0;function Lw(e){return e==null?e===void 0?Nw:Mw:Jd&&Jd in Object(e)?Fw(e):$w(e)}var As=Lw;function kw(e){return e!=null&&typeof e=="object"}var Oc=kw,jw=As,Bw=Oc,Ww="[object Symbol]";function Uw(e){return typeof e=="symbol"||Bw(e)&&jw(e)==Ww}var Hw=Uw,qw=Sw,Xd=Ha,Gw=Hw,Zd=0/0,zw=/^[-+]0x[0-9a-f]+$/i,Yw=/^0b[01]+$/i,Vw=/^0o[0-7]+$/i,Kw=parseInt;function Jw(e){if(typeof e=="number")return e;if(Gw(e))return Zd;if(Xd(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=Xd(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=qw(e);var t=Yw.test(e);return t||Vw.test(e)?Kw(e.slice(2),t?2:8):zw.test(e)?Zd:+e}var Xw=Jw,Zw=Ha,Su=gw,Qd=Xw,Qw="Expected a function",eT=Math.max,tT=Math.min;function rT(e,r,t){var a,s,i,c,l,d,p=0,g=!1,m=!1,b=!0;if(typeof e!="function")throw new TypeError(Qw);r=Qd(r)||0,Zw(t)&&(g=!!t.leading,m="maxWait"in t,i=m?eT(Qd(t.maxWait)||0,r):i,b="trailing"in t?!!t.trailing:b);function E(Y){var H=a,z=s;return a=s=void 0,p=Y,c=e.apply(z,H),c}function x(Y){return p=Y,l=setTimeout(P,r),g?E(Y):c}function C(Y){var H=Y-d,z=Y-p,te=r-H;return m?tT(te,i-z):te}function I(Y){var H=Y-d,z=Y-p;return d===void 0||H>=r||H<0||m&&z>=i}function P(){var Y=Su();if(I(Y))return j(Y);l=setTimeout(P,C(Y))}function j(Y){return l=void 0,b&&a?E(Y):(a=s=void 0,c)}function M(){l!==void 0&&clearTimeout(l),p=0,a=d=s=l=void 0}function k(){return l===void 0?c:j(Su())}function O(){var Y=Su(),H=I(Y);if(a=arguments,s=this,d=Y,H){if(l===void 0)return x(d);if(m)return clearTimeout(l),l=setTimeout(P,r),E(d)}return l===void 0&&(l=setTimeout(P,r)),c}return O.cancel=M,O.flush=k,O}var nT=rT,aT=nT,oT=Ha,sT="Expected a function";function iT(e,r,t){var a=!0,s=!0;if(typeof e!="function")throw new TypeError(sT);return oT(t)&&(a="leading"in t?!!t.leading:a,s="trailing"in t?!!t.trailing:s),aT(e,r,{leading:a,maxWait:r,trailing:s})}var uT=iT;const cT=Os(uT);var hh=(e=>(e[e.First=0]="First",e[e.Last=-1]="Last",e))(hh||{}),Mr=(e=>(e.ATTACHED="attached",e.DETACHED="detached",e.ERROR="error",e))(Mr||{}),ps=(e=>(e.SOCKET_ERROR="socket-error",e.SOCKET_CLOSURE="socket-closure",e))(ps||{}),gh=(e=>(e.NOT_STARTED="remote debugger not started",e.ALREADY_IN_USE="already in use",e.TIMEOUT="timeout",e))(gh||{});const Ac={tabs:[],activeTab:"",recent:[],roles:{roles:{},privileges:{},flags:{touched:!1},selectedTab:"roles"},sharedCSS:{state:"loading",styles:[]},debugger:{meta:{state:Mr.DETACHED},list:[],sessions:[],expressions:[]},webforms:{templates:{selectedGroup:"",data:[]},components:[],inspector:{css:{active:!1},datasource:{active:!1}},datasources:{theme:"grey"},flags:{"sidebar.section.resizable":!0}}},vh="4DWS_PREFS",mh=e=>`APP_STATE_${e}`,yh=()=>{var e,r;return((r=(e=window==null?void 0:window.$$datastores)==null?void 0:e.ds)==null?void 0:r.getBaseID())||""};function bh(e){try{const r=yh(),t=JSON.stringify(e);localStorage.setItem(mh(r),t)}catch(r){console.error(r)}}function _h(e){try{const r=JSON.stringify(e);localStorage.setItem(vh,r)}catch(r){console.error(r)}}function Eh(){try{const e=localStorage.getItem(vh);if(e)return JSON.parse(e)}catch(e){console.error(e)}}function ta(){const e=yh(),r=localStorage.getItem(mh(e));if(r){const t=JSON.parse(r);return t.tabs=t.tabs.map(a=>({...a,flags:{...a.flags,enabled:!0}})),t}return Ac}function Ps(e){const{name:r,type:t,path:a}=e,s=a.split(".").at(-1);switch(t){case _.FileFolderType.WEBFORM:return`${r}.WebForm`;case _.FileFolderType.METHOD:case _.FileFolderType.CLASS:return s?`${r}.${s}`:r;case _.FileFolderType.ROLES:return r;default:return`${r}.${t}`}}const Sh=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 wh(e){return e?["json","4dmodel","webform","mform"].includes(e.toLowerCase()):!1}function lT(){this.__data__=[],this.size=0}var fT=lT;function dT(e,r){return e===r||e!==e&&r!==r}var pT=dT,hT=pT;function gT(e,r){for(var t=e.length;t--;)if(hT(e[t][0],r))return t;return-1}var Ds=gT,vT=Ds,mT=Array.prototype,yT=mT.splice;function bT(e){var r=this.__data__,t=vT(r,e);if(t<0)return!1;var a=r.length-1;return t==a?r.pop():yT.call(r,t,1),--this.size,!0}var _T=bT,ET=Ds;function ST(e){var r=this.__data__,t=ET(r,e);return t<0?void 0:r[t][1]}var wT=ST,TT=Ds;function xT(e){return TT(this.__data__,e)>-1}var CT=xT,RT=Ds;function OT(e,r){var t=this.__data__,a=RT(t,e);return a<0?(++this.size,t.push([e,r])):t[a][1]=r,this}var AT=OT,PT=fT,DT=_T,IT=wT,FT=CT,$T=AT;function ra(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])}}ra.prototype.clear=PT;ra.prototype.delete=DT;ra.prototype.get=IT;ra.prototype.has=FT;ra.prototype.set=$T;var Is=ra,MT=Is;function NT(){this.__data__=new MT,this.size=0}var LT=NT;function kT(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}var jT=kT;function BT(e){return this.__data__.get(e)}var WT=BT;function UT(e){return this.__data__.has(e)}var HT=UT,qT=As,GT=Ha,zT="[object AsyncFunction]",YT="[object Function]",VT="[object GeneratorFunction]",KT="[object Proxy]";function JT(e){if(!GT(e))return!1;var r=qT(e);return r==YT||r==VT||r==zT||r==KT}var XT=JT,ZT=wr,QT=ZT["__core-js_shared__"],ex=QT,wu=ex,ep=function(){var e=/[^.]+$/.exec(wu&&wu.keys&&wu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function tx(e){return!!ep&&ep in e}var rx=tx,nx=Function.prototype,ax=nx.toString;function ox(e){if(e!=null){try{return ax.call(e)}catch{}try{return e+""}catch{}}return""}var Th=ox,sx=XT,ix=rx,ux=Ha,cx=Th,lx=/[\\^$.*+?()[\]{}|]/g,fx=/^\[object .+?Constructor\]$/,dx=Function.prototype,px=Object.prototype,hx=dx.toString,gx=px.hasOwnProperty,vx=RegExp("^"+hx.call(gx).replace(lx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mx(e){if(!ux(e)||ix(e))return!1;var r=sx(e)?vx:fx;return r.test(cx(e))}var yx=mx;function bx(e,r){return e==null?void 0:e[r]}var _x=bx,Ex=yx,Sx=_x;function wx(e,r){var t=Sx(e,r);return Ex(t)?t:void 0}var na=wx,Tx=na,xx=wr,Cx=Tx(xx,"Map"),Pc=Cx,Rx=na,Ox=Rx(Object,"create"),Fs=Ox,tp=Fs;function Ax(){this.__data__=tp?tp(null):{},this.size=0}var Px=Ax;function Dx(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var Ix=Dx,Fx=Fs,$x="__lodash_hash_undefined__",Mx=Object.prototype,Nx=Mx.hasOwnProperty;function Lx(e){var r=this.__data__;if(Fx){var t=r[e];return t===$x?void 0:t}return Nx.call(r,e)?r[e]:void 0}var kx=Lx,jx=Fs,Bx=Object.prototype,Wx=Bx.hasOwnProperty;function Ux(e){var r=this.__data__;return jx?r[e]!==void 0:Wx.call(r,e)}var Hx=Ux,qx=Fs,Gx="__lodash_hash_undefined__";function zx(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=qx&&r===void 0?Gx:r,this}var Yx=zx,Vx=Px,Kx=Ix,Jx=kx,Xx=Hx,Zx=Yx;function aa(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])}}aa.prototype.clear=Vx;aa.prototype.delete=Kx;aa.prototype.get=Jx;aa.prototype.has=Xx;aa.prototype.set=Zx;var Qx=aa,rp=Qx,eC=Is,tC=Pc;function rC(){this.size=0,this.__data__={hash:new rp,map:new(tC||eC),string:new rp}}var nC=rC;function aC(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var oC=aC,sC=oC;function iC(e,r){var t=e.__data__;return sC(r)?t[typeof r=="string"?"string":"hash"]:t.map}var $s=iC,uC=$s;function cC(e){var r=uC(this,e).delete(e);return this.size-=r?1:0,r}var lC=cC,fC=$s;function dC(e){return fC(this,e).get(e)}var pC=dC,hC=$s;function gC(e){return hC(this,e).has(e)}var vC=gC,mC=$s;function yC(e,r){var t=mC(this,e),a=t.size;return t.set(e,r),this.size+=t.size==a?0:1,this}var bC=yC,_C=nC,EC=lC,SC=pC,wC=vC,TC=bC;function oa(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])}}oa.prototype.clear=_C;oa.prototype.delete=EC;oa.prototype.get=SC;oa.prototype.has=wC;oa.prototype.set=TC;var xh=oa,xC=Is,CC=Pc,RC=xh,OC=200;function AC(e,r){var t=this.__data__;if(t instanceof xC){var a=t.__data__;if(!CC||a.length<OC-1)return a.push([e,r]),this.size=++t.size,this;t=this.__data__=new RC(a)}return t.set(e,r),this.size=t.size,this}var PC=AC,DC=Is,IC=LT,FC=jT,$C=WT,MC=HT,NC=PC;function qa(e){var r=this.__data__=new DC(e);this.size=r.size}qa.prototype.clear=IC;qa.prototype.delete=FC;qa.prototype.get=$C;qa.prototype.has=MC;qa.prototype.set=NC;var LC="__lodash_hash_undefined__";function kC(e){return this.__data__.set(e,LC),this}var jC=kC;function BC(e){return this.__data__.has(e)}var WC=BC,UC=xh,HC=jC,qC=WC;function Vu(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new UC;++r<t;)this.add(e[r])}Vu.prototype.add=Vu.prototype.push=HC;Vu.prototype.has=qC;var GC=wr;GC.Uint8Array;var np=Rc,ap=np?np.prototype:void 0;ap&&ap.valueOf;var zC=As,YC=Oc,VC="[object Arguments]";function KC(e){return YC(e)&&zC(e)==VC}var JC=KC,op=JC,XC=Oc,Ch=Object.prototype,ZC=Ch.hasOwnProperty,QC=Ch.propertyIsEnumerable;op(function(){return arguments}());var hs={exports:{}};function eR(){return!1}var tR=eR;hs.exports;(function(e,r){var t=wr,a=tR,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})(hs,hs.exports);hs.exports;var gs={exports:{}};gs.exports;(function(e,r){var t=dh,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})(gs,gs.exports);var rR=gs.exports,sp=rR;sp&&sp.isTypedArray;var nR=na,aR=wr,oR=nR(aR,"DataView"),sR=oR,iR=na,uR=wr,cR=iR(uR,"Promise"),lR=cR,fR=na,dR=wr,pR=fR(dR,"Set"),hR=pR,gR=na,vR=wr,mR=gR(vR,"WeakMap"),yR=mR,Ku=sR,Ju=Pc,Xu=lR,Zu=hR,Qu=yR,Rh=As,sa=Th,ip="[object Map]",bR="[object Object]",up="[object Promise]",cp="[object Set]",lp="[object WeakMap]",fp="[object DataView]",_R=sa(Ku),ER=sa(Ju),SR=sa(Xu),wR=sa(Zu),TR=sa(Qu),Gn=Rh;(Ku&&Gn(new Ku(new ArrayBuffer(1)))!=fp||Ju&&Gn(new Ju)!=ip||Xu&&Gn(Xu.resolve())!=up||Zu&&Gn(new Zu)!=cp||Qu&&Gn(new Qu)!=lp)&&(Gn=function(e){var r=Rh(e),t=r==bR?e.constructor:void 0,a=t?sa(t):"";if(a)switch(a){case _R:return fp;case ER:return ip;case SR:return up;case wR:return cp;case TR:return lp}return r});const xR="ROOT";uS(),iS();var dp;(function(e){e[e.HandlerDisabled=0]="HandlerDisabled",e[e.HandlerEnabled=1]="HandlerEnabled"})(dp||(dp={}));var vs={exports:{}};/**
|
|
8
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),P.warnIfExceeded()),k}}}}function yu(e){return typeof e=="boolean"}function zS(){return function(r){return YS(r)}}function YS(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=new jS;if(t&&(yu(t)?l.push(Ud):l.push(Ud.withExtraArgument(t.extraArgument))),process.env.NODE_ENV!=="production"){if(s){var d={};yu(s)||(d=s),l.unshift(qS(d))}if(c){var p={};yu(c)||(p=c),l.push(GS(p))}}return l}var bu=process.env.NODE_ENV==="production";function VS(e){var r=zS(),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,g=p===void 0?void 0:p,m=t.enhancers,b=m===void 0?void 0:m,E;if(typeof s=="function")E=s;else if(nh(s))E=eh(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 x=c;if(typeof x=="function"&&(x=x(r),!bu&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!bu&&x.some(function(M){return typeof M!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=ES.apply(void 0,x),I=cs;d&&(I=LS(on({trace:!bu},typeof d=="object"&&d)));var P=[C];Array.isArray(b)?P=fs([C],b):typeof b=="function"&&(P=b(P));var k=I.apply(void 0,P);return Qp(E,g,k)}function Pt(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 on(on({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 uh(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 in r)throw new Error("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 KS(e){return typeof e=="function"}function JS(e,r,t,a){t===void 0&&(t=[]);var s=typeof r=="function"?uh(r):[r,t,a],i=s[0],c=s[1],l=s[2],d;if(KS(e))d=function(){return Qo(e(),function(){})};else{var p=Qo(e,function(){});d=function(){return p}}function g(m,b){m===void 0&&(m=d());var E=fs([i[b.type]],c.filter(function(x){var C=x.matcher;return C(b)}).map(function(x){var C=x.reducer;return C}));return E.filter(function(x){return!!x}).length===0&&(E=[l]),E.reduce(function(x,C){if(C)if(kr(x)){var I=x,P=C(I,b);return typeof P>"u"?x:P}else{if(vr(x))return Qo(x,function(k){return C(k,b)});var P=C(x,b);if(typeof P>"u"){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return P}return x},m)}return g.getInitialState=d,g}function XS(e,r){return e+"/"+r}function or(e){var r=e.name;if(!r)throw new Error("`name` is a required option for createSlice");var t=typeof e.initialState=="function"?e.initialState:Qo(e.initialState,function(){}),a=e.reducers||{},s=Object.keys(a),i={},c={},l={};s.forEach(function(g){var m=a[g],b=XS(r,g),E,x;"reducer"in m?(E=m.reducer,x=m.prepare):E=m,i[g]=E,c[b]=E,l[g]=x?Pt(b,x):Pt(b)});function d(){var g=typeof e.extraReducers=="function"?uh(e.extraReducers):[e.extraReducers],m=g[0],b=m===void 0?{}:m,E=g[1],x=E===void 0?[]:E,C=g[2],I=C===void 0?void 0:C,P=on(on({},b),c);return JS(t,P,x,I)}var p;return{name:r,reducer:function(g,m){return p||(p=d()),p(g,m)},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 r="",t=e;t--;)r+=ZS[Math.random()*64|0];return r},QS=["name","message","stack","code"],_u=function(){function e(r,t){this.payload=r,this.meta=t}return e}(),Yd=function(){function e(r,t){this.payload=r,this.meta=t}return e}(),ew=function(e){if(typeof e=="object"&&e!==null){for(var r={},t=0,a=QS;t<a.length;t++){var s=a[t];typeof e[s]=="string"&&(r[s]=e[s])}return r}return{message:String(e)}};function Q(e,r,t){var a=Pt(e+"/fulfilled",function(p,g,m,b){return{payload:p,meta:mu(on({},b||{}),{arg:m,requestId:g,requestStatus:"fulfilled"})}}),s=Pt(e+"/pending",function(p,g,m){return{payload:void 0,meta:mu(on({},m||{}),{arg:g,requestId:p,requestStatus:"pending"})}}),i=Pt(e+"/rejected",function(p,g,m,b,E){return{payload:b,error:(t&&t.serializeError||ew)(p||"Rejected"),meta:mu(on({},E||{}),{arg:m,requestId:g,rejectedWithValue:!!b,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(g,m,b){var E=t!=null&&t.idGenerator?t.idGenerator(p):wc(),x=new l,C,I=new Promise(function(j,O){return x.signal.addEventListener("abort",function(){return O({name:"AbortError",message:C||"Aborted"})})}),P=!1;function k(j){P&&(C=j,x.abort())}var M=function(){return NS(this,null,function(){var j,O,Y,H,z,te;return PS(this,function(We){switch(We.label){case 0:return We.trys.push([0,4,,5]),H=(j=t==null?void 0:t.condition)==null?void 0:j.call(t,p,{getState:m,extra:b}),rw(H)?[4,H]:[3,2];case 1:H=We.sent(),We.label=2;case 2:if(H===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return P=!0,g(s(E,p,(O=t==null?void 0:t.getPendingMeta)==null?void 0:O.call(t,{requestId:E,arg:p},{getState:m,extra:b}))),[4,Promise.race([I,Promise.resolve(r(p,{dispatch:g,getState:m,extra:b,requestId:E,signal:x.signal,rejectWithValue:function(Te,it){return new _u(Te,it)},fulfillWithValue:function(Te,it){return new Yd(Te,it)}})).then(function(Te){if(Te instanceof _u)throw Te;return Te instanceof Yd?a(Te.payload,E,p,Te.meta):a(Te,E,p)})])];case 3:return Y=We.sent(),[3,5];case 4:return z=We.sent(),Y=z instanceof _u?i(null,E,p,z.payload,z.meta):i(z,E,p),[3,5];case 5:return te=t&&!t.dispatchConditionRejection&&i.match(Y)&&Y.meta.condition,te||g(Y),[2,Y]}})})}();return Object.assign(M,{abort:k,requestId:E,arg:p,unwrap:function(){return M.then(tw)}})}}return Object.assign(d,{pending:s,rejected:i,fulfilled:a,typePrefix:e})}function tw(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function rw(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var nw=function(e){return e&&typeof e.match=="function"},aw=function(e,r){return nw(e)?e.match(r):e(r)};function hr(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return function(t){return e.some(function(a){return aw(a,t)})}}function Tc(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 xc(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function ch(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return Tc(t,["pending"])}:xc(e)?function(t){var a=e.map(function(i){return i.pending}),s=hr.apply(void 0,a);return s(t)}:ch()(e[0])}function lh(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return Tc(t,["rejected"])}:xc(e)?function(t){var a=e.map(function(i){return i.rejected}),s=hr.apply(void 0,a);return s(t)}:lh()(e[0])}function fh(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return Tc(t,["fulfilled"])}:xc(e)?function(t){var a=e.map(function(i){return i.fulfilled}),s=hr.apply(void 0,a);return s(t)}:fh()(e[0])}aS();var Nr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ow(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 sw(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var Ha=sw,iw=typeof Nr=="object"&&Nr&&Nr.Object===Object&&Nr,dh=iw,uw=dh,cw=typeof self=="object"&&self&&self.Object===Object&&self,lw=uw||cw||Function("return this")(),wr=lw,fw=wr,dw=function(){return fw.Date.now()},pw=dw,hw=/\s/;function gw(e){for(var r=e.length;r--&&hw.test(e.charAt(r)););return r}var vw=gw,mw=vw,yw=/^\s+/;function bw(e){return e&&e.slice(0,mw(e)+1).replace(yw,"")}var _w=bw,Ew=wr,Sw=Ew.Symbol,Cc=Sw,Vd=Cc,ph=Object.prototype,ww=ph.hasOwnProperty,Tw=ph.toString,Oa=Vd?Vd.toStringTag:void 0;function xw(e){var r=ww.call(e,Oa),t=e[Oa];try{e[Oa]=void 0;var a=!0}catch{}var s=Tw.call(e);return a&&(r?e[Oa]=t:delete e[Oa]),s}var Cw=xw,Rw=Object.prototype,Ow=Rw.toString;function Aw(e){return Ow.call(e)}var Pw=Aw,Kd=Cc,Dw=Cw,Iw=Pw,Fw="[object Null]",$w="[object Undefined]",Jd=Kd?Kd.toStringTag:void 0;function Mw(e){return e==null?e===void 0?$w:Fw:Jd&&Jd in Object(e)?Dw(e):Iw(e)}var Os=Mw;function Nw(e){return e!=null&&typeof e=="object"}var Rc=Nw,Lw=Os,jw=Rc,kw="[object Symbol]";function Bw(e){return typeof e=="symbol"||jw(e)&&Lw(e)==kw}var Ww=Bw,Uw=_w,Xd=Ha,Hw=Ww,Zd=0/0,qw=/^[-+]0x[0-9a-f]+$/i,Gw=/^0b[01]+$/i,zw=/^0o[0-7]+$/i,Yw=parseInt;function Vw(e){if(typeof e=="number")return e;if(Hw(e))return Zd;if(Xd(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=Xd(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=Uw(e);var t=Gw.test(e);return t||zw.test(e)?Yw(e.slice(2),t?2:8):qw.test(e)?Zd:+e}var Kw=Vw,Jw=Ha,Eu=pw,Qd=Kw,Xw="Expected a function",Zw=Math.max,Qw=Math.min;function eT(e,r,t){var a,s,i,c,l,d,p=0,g=!1,m=!1,b=!0;if(typeof e!="function")throw new TypeError(Xw);r=Qd(r)||0,Jw(t)&&(g=!!t.leading,m="maxWait"in t,i=m?Zw(Qd(t.maxWait)||0,r):i,b="trailing"in t?!!t.trailing:b);function E(Y){var H=a,z=s;return a=s=void 0,p=Y,c=e.apply(z,H),c}function x(Y){return p=Y,l=setTimeout(P,r),g?E(Y):c}function C(Y){var H=Y-d,z=Y-p,te=r-H;return m?Qw(te,i-z):te}function I(Y){var H=Y-d,z=Y-p;return d===void 0||H>=r||H<0||m&&z>=i}function P(){var Y=Eu();if(I(Y))return k(Y);l=setTimeout(P,C(Y))}function k(Y){return l=void 0,b&&a?E(Y):(a=s=void 0,c)}function M(){l!==void 0&&clearTimeout(l),p=0,a=d=s=l=void 0}function j(){return l===void 0?c:k(Eu())}function O(){var Y=Eu(),H=I(Y);if(a=arguments,s=this,d=Y,H){if(l===void 0)return x(d);if(m)return clearTimeout(l),l=setTimeout(P,r),E(d)}return l===void 0&&(l=setTimeout(P,r)),c}return O.cancel=M,O.flush=j,O}var tT=eT,rT=tT,nT=Ha,aT="Expected a function";function oT(e,r,t){var a=!0,s=!0;if(typeof e!="function")throw new TypeError(aT);return nT(t)&&(a="leading"in t?!!t.leading:a,s="trailing"in t?!!t.trailing:s),rT(e,r,{leading:a,maxWait:r,trailing:s})}var sT=oT;const iT=Rs(sT);var hh=(e=>(e[e.First=0]="First",e[e.Last=-1]="Last",e))(hh||{}),Mr=(e=>(e.ATTACHED="attached",e.DETACHED="detached",e.ERROR="error",e))(Mr||{}),ds=(e=>(e.SOCKET_ERROR="socket-error",e.SOCKET_CLOSURE="socket-closure",e))(ds||{}),gh=(e=>(e.NOT_STARTED="remote debugger not started",e.ALREADY_IN_USE="already in use",e.TIMEOUT="timeout",e))(gh||{});const As=2e3,Oc={tabs:[],activeTab:"",recent:[],roles:{roles:{},privileges:{},flags:{touched:!1},selectedTab:"roles"},sharedCSS:{state:"loading",styles:[]},debugger:{meta:{state:Mr.DETACHED},list:[],sessions:[],expressions:[]},webforms:{templates:{selectedGroup:"",data:[]},components:[],inspector:{css:{active:!1},datasource:{active:!1}},datasources:{theme:"grey"},flags:{"sidebar.section.resizable":!0}}},vh="4DWS_PREFS",mh=e=>`APP_STATE_${e}`,yh=()=>{var e,r;return((r=(e=window==null?void 0:window.$$datastores)==null?void 0:e.ds)==null?void 0:r.getBaseID())||""};function bh(e){try{const r=yh(),t=JSON.stringify(e);localStorage.setItem(mh(r),t)}catch(r){console.error(r)}}function _h(e){try{const r=JSON.stringify(e);localStorage.setItem(vh,r)}catch(r){console.error(r)}}function Eh(){try{const e=localStorage.getItem(vh);if(e)return JSON.parse(e)}catch(e){console.error(e)}}function ta(){const e=yh(),r=localStorage.getItem(mh(e));if(r){const t=JSON.parse(r);return t.tabs=t.tabs.map(a=>({...a,flags:{...a.flags,enabled:!0}})),t}return Oc}function Ps(e){const{name:r,type:t,path:a}=e,s=a.split(".").at(-1);switch(t){case _.FileFolderType.WEBFORM:return`${r}.WebForm`;case _.FileFolderType.METHOD:case _.FileFolderType.CLASS:return s?`${r}.${s}`:r;case _.FileFolderType.ROLES:return r;default:return`${r}.${t}`}}const Sh=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 wh(e){return e?["json","4dmodel","webform","mform"].includes(e.toLowerCase()):!1}function uT(){this.__data__=[],this.size=0}var cT=uT;function lT(e,r){return e===r||e!==e&&r!==r}var fT=lT,dT=fT;function pT(e,r){for(var t=e.length;t--;)if(dT(e[t][0],r))return t;return-1}var Ds=pT,hT=Ds,gT=Array.prototype,vT=gT.splice;function mT(e){var r=this.__data__,t=hT(r,e);if(t<0)return!1;var a=r.length-1;return t==a?r.pop():vT.call(r,t,1),--this.size,!0}var yT=mT,bT=Ds;function _T(e){var r=this.__data__,t=bT(r,e);return t<0?void 0:r[t][1]}var ET=_T,ST=Ds;function wT(e){return ST(this.__data__,e)>-1}var TT=wT,xT=Ds;function CT(e,r){var t=this.__data__,a=xT(t,e);return a<0?(++this.size,t.push([e,r])):t[a][1]=r,this}var RT=CT,OT=cT,AT=yT,PT=ET,DT=TT,IT=RT;function ra(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])}}ra.prototype.clear=OT;ra.prototype.delete=AT;ra.prototype.get=PT;ra.prototype.has=DT;ra.prototype.set=IT;var Is=ra,FT=Is;function $T(){this.__data__=new FT,this.size=0}var MT=$T;function NT(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}var LT=NT;function jT(e){return this.__data__.get(e)}var kT=jT;function BT(e){return this.__data__.has(e)}var WT=BT,UT=Os,HT=Ha,qT="[object AsyncFunction]",GT="[object Function]",zT="[object GeneratorFunction]",YT="[object Proxy]";function VT(e){if(!HT(e))return!1;var r=UT(e);return r==GT||r==zT||r==qT||r==YT}var KT=VT,JT=wr,XT=JT["__core-js_shared__"],ZT=XT,Su=ZT,ep=function(){var e=/[^.]+$/.exec(Su&&Su.keys&&Su.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function QT(e){return!!ep&&ep in e}var ex=QT,tx=Function.prototype,rx=tx.toString;function nx(e){if(e!=null){try{return rx.call(e)}catch{}try{return e+""}catch{}}return""}var Th=nx,ax=KT,ox=ex,sx=Ha,ix=Th,ux=/[\\^$.*+?()[\]{}|]/g,cx=/^\[object .+?Constructor\]$/,lx=Function.prototype,fx=Object.prototype,dx=lx.toString,px=fx.hasOwnProperty,hx=RegExp("^"+dx.call(px).replace(ux,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function gx(e){if(!sx(e)||ox(e))return!1;var r=ax(e)?hx:cx;return r.test(ix(e))}var vx=gx;function mx(e,r){return e==null?void 0:e[r]}var yx=mx,bx=vx,_x=yx;function Ex(e,r){var t=_x(e,r);return bx(t)?t:void 0}var na=Ex,Sx=na,wx=wr,Tx=Sx(wx,"Map"),Ac=Tx,xx=na,Cx=xx(Object,"create"),Fs=Cx,tp=Fs;function Rx(){this.__data__=tp?tp(null):{},this.size=0}var Ox=Rx;function Ax(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var Px=Ax,Dx=Fs,Ix="__lodash_hash_undefined__",Fx=Object.prototype,$x=Fx.hasOwnProperty;function Mx(e){var r=this.__data__;if(Dx){var t=r[e];return t===Ix?void 0:t}return $x.call(r,e)?r[e]:void 0}var Nx=Mx,Lx=Fs,jx=Object.prototype,kx=jx.hasOwnProperty;function Bx(e){var r=this.__data__;return Lx?r[e]!==void 0:kx.call(r,e)}var Wx=Bx,Ux=Fs,Hx="__lodash_hash_undefined__";function qx(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=Ux&&r===void 0?Hx:r,this}var Gx=qx,zx=Ox,Yx=Px,Vx=Nx,Kx=Wx,Jx=Gx;function aa(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])}}aa.prototype.clear=zx;aa.prototype.delete=Yx;aa.prototype.get=Vx;aa.prototype.has=Kx;aa.prototype.set=Jx;var Xx=aa,rp=Xx,Zx=Is,Qx=Ac;function eC(){this.size=0,this.__data__={hash:new rp,map:new(Qx||Zx),string:new rp}}var tC=eC;function rC(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var nC=rC,aC=nC;function oC(e,r){var t=e.__data__;return aC(r)?t[typeof r=="string"?"string":"hash"]:t.map}var $s=oC,sC=$s;function iC(e){var r=sC(this,e).delete(e);return this.size-=r?1:0,r}var uC=iC,cC=$s;function lC(e){return cC(this,e).get(e)}var fC=lC,dC=$s;function pC(e){return dC(this,e).has(e)}var hC=pC,gC=$s;function vC(e,r){var t=gC(this,e),a=t.size;return t.set(e,r),this.size+=t.size==a?0:1,this}var mC=vC,yC=tC,bC=uC,_C=fC,EC=hC,SC=mC;function oa(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])}}oa.prototype.clear=yC;oa.prototype.delete=bC;oa.prototype.get=_C;oa.prototype.has=EC;oa.prototype.set=SC;var xh=oa,wC=Is,TC=Ac,xC=xh,CC=200;function RC(e,r){var t=this.__data__;if(t instanceof wC){var a=t.__data__;if(!TC||a.length<CC-1)return a.push([e,r]),this.size=++t.size,this;t=this.__data__=new xC(a)}return t.set(e,r),this.size=t.size,this}var OC=RC,AC=Is,PC=MT,DC=LT,IC=kT,FC=WT,$C=OC;function qa(e){var r=this.__data__=new AC(e);this.size=r.size}qa.prototype.clear=PC;qa.prototype.delete=DC;qa.prototype.get=IC;qa.prototype.has=FC;qa.prototype.set=$C;var MC="__lodash_hash_undefined__";function NC(e){return this.__data__.set(e,MC),this}var LC=NC;function jC(e){return this.__data__.has(e)}var kC=jC,BC=xh,WC=LC,UC=kC;function Yu(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new BC;++r<t;)this.add(e[r])}Yu.prototype.add=Yu.prototype.push=WC;Yu.prototype.has=UC;var HC=wr;HC.Uint8Array;var np=Cc,ap=np?np.prototype:void 0;ap&&ap.valueOf;var qC=Os,GC=Rc,zC="[object Arguments]";function YC(e){return GC(e)&&qC(e)==zC}var VC=YC,op=VC,KC=Rc,Ch=Object.prototype,JC=Ch.hasOwnProperty,XC=Ch.propertyIsEnumerable;op(function(){return arguments}());var ps={exports:{}};function ZC(){return!1}var QC=ZC;ps.exports;(function(e,r){var t=wr,a=QC,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})(ps,ps.exports);ps.exports;var hs={exports:{}};hs.exports;(function(e,r){var t=dh,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})(hs,hs.exports);var eR=hs.exports,sp=eR;sp&&sp.isTypedArray;var tR=na,rR=wr,nR=tR(rR,"DataView"),aR=nR,oR=na,sR=wr,iR=oR(sR,"Promise"),uR=iR,cR=na,lR=wr,fR=cR(lR,"Set"),dR=fR,pR=na,hR=wr,gR=pR(hR,"WeakMap"),vR=gR,Vu=aR,Ku=Ac,Ju=uR,Xu=dR,Zu=vR,Rh=Os,sa=Th,ip="[object Map]",mR="[object Object]",up="[object Promise]",cp="[object Set]",lp="[object WeakMap]",fp="[object DataView]",yR=sa(Vu),bR=sa(Ku),_R=sa(Ju),ER=sa(Xu),SR=sa(Zu),zn=Rh;(Vu&&zn(new Vu(new ArrayBuffer(1)))!=fp||Ku&&zn(new Ku)!=ip||Ju&&zn(Ju.resolve())!=up||Xu&&zn(new Xu)!=cp||Zu&&zn(new Zu)!=lp)&&(zn=function(e){var r=Rh(e),t=r==mR?e.constructor:void 0,a=t?sa(t):"";if(a)switch(a){case yR:return fp;case bR:return ip;case _R:return up;case ER:return cp;case SR:return lp}return r});const wR="ROOT";sS(),oS();var dp;(function(e){e[e.HandlerDisabled=0]="HandlerDisabled",e[e.HandlerEnabled=1]="HandlerEnabled"})(dp||(dp={}));var gs={exports:{}};/**
|
|
9
9
|
* @license
|
|
10
10
|
* Lodash <https://lodash.com/>
|
|
11
11
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
12
12
|
* Released under MIT license <https://lodash.com/license>
|
|
13
13
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
14
14
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
15
|
-
*/vs.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,g="__lodash_placeholder__",m=1,b=2,E=4,x=1,C=2,I=1,P=2,j=4,M=8,k=16,O=32,Y=64,H=128,z=256,te=512,We=30,Te="...",it=800,X=16,Pe=1,ut=2,et=3,He=1/0,nt=9007199254740991,Yt=17976931348623157e292,W=0/0,G=4294967295,de=G-1,le=G>>>1,se=[["ary",H],["bind",I],["bindKey",P],["curry",M],["curryRight",k],["flip",te],["partial",O],["partialRight",Y],["rearg",z]],fe="[object Arguments]",ne="[object Array]",ce="[object AsyncFunction]",ue="[object Boolean]",he="[object Date]",ge="[object DOMException]",K="[object Error]",F="[object Function]",Ye="[object GeneratorFunction]",qe="[object Map]",yt="[object Number]",Ka="[object Null]",Vt="[object Object]",ln="[object Promise]",Ks="[object Proxy]",ir="[object RegExp]",Ct="[object Set]",fn="[object String]",dn="[object Symbol]",Ja="[object Undefined]",xr="[object WeakMap]",Js="[object WeakSet]",pn="[object ArrayBuffer]",Gr="[object DataView]",ua="[object Float32Array]",ca="[object Float64Array]",la="[object Int8Array]",fa="[object Int16Array]",hn="[object Int32Array]",Pn="[object Uint8Array]",mr="[object Uint8ClampedArray]",gn="[object Uint16Array]",vn="[object Uint32Array]",Xa=/\b__p \+= '';/g,Xs=/\b(__p \+=) '' \+/g,Za=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qa=/&(?:amp|lt|gt|quot|#39);/g,da=/[&<>"']/g,eo=RegExp(Qa.source),Zs=RegExp(da.source),Qs=/<%-([\s\S]+?)%>/g,to=/<%([\s\S]+?)%>/g,ro=/<%=([\s\S]+?)%>/g,ei=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ti=/^\w*$/,ri=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w=/[\\^$.*+?()[\]{}|]/g,U=RegExp(w.source),J=/^\s+/,ie=/\s/,Ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Le=/\{\n\/\* \[wrapped with (.+)\] \*/,xe=/,? & /,Ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ht=/[()=,{}\[\]\/\s]/,Ze=/\\(\\)?/g,tt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Kt=/\w*$/,zr=/^[-+]0x[0-9a-f]+$/i,no=/^0b[01]+$/i,ur=/^\[object .+?Constructor\]$/,Gv=/^0o[0-7]+$/i,zv=/^(?:0|[1-9]\d*)$/,Yv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ao=/($^)/,Vv=/['\n\r\u2028\u2029\\]/g,oo="\\ud800-\\udfff",Kv="\\u0300-\\u036f",Jv="\\ufe20-\\ufe2f",Xv="\\u20d0-\\u20ff",sl=Kv+Jv+Xv,il="\\u2700-\\u27bf",ul="a-z\\xdf-\\xf6\\xf8-\\xff",Zv="\\xac\\xb1\\xd7\\xf7",Qv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",em="\\u2000-\\u206f",tm=" \\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",cl="A-Z\\xc0-\\xd6\\xd8-\\xde",ll="\\ufe0e\\ufe0f",fl=Zv+Qv+em+tm,ni="['’]",rm="["+oo+"]",dl="["+fl+"]",so="["+sl+"]",pl="\\d+",nm="["+il+"]",hl="["+ul+"]",gl="[^"+oo+fl+pl+il+ul+cl+"]",ai="\\ud83c[\\udffb-\\udfff]",am="(?:"+so+"|"+ai+")",vl="[^"+oo+"]",oi="(?:\\ud83c[\\udde6-\\uddff]){2}",si="[\\ud800-\\udbff][\\udc00-\\udfff]",Dn="["+cl+"]",ml="\\u200d",yl="(?:"+hl+"|"+gl+")",om="(?:"+Dn+"|"+gl+")",bl="(?:"+ni+"(?:d|ll|m|re|s|t|ve))?",_l="(?:"+ni+"(?:D|LL|M|RE|S|T|VE))?",El=am+"?",Sl="["+ll+"]?",sm="(?:"+ml+"(?:"+[vl,oi,si].join("|")+")"+Sl+El+")*",im="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",um="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",wl=Sl+El+sm,cm="(?:"+[nm,oi,si].join("|")+")"+wl,lm="(?:"+[vl+so+"?",so,oi,si,rm].join("|")+")",fm=RegExp(ni,"g"),dm=RegExp(so,"g"),ii=RegExp(ai+"(?="+ai+")|"+lm+wl,"g"),pm=RegExp([Dn+"?"+hl+"+"+bl+"(?="+[dl,Dn,"$"].join("|")+")",om+"+"+_l+"(?="+[dl,Dn+yl,"$"].join("|")+")",Dn+"?"+yl+"+"+bl,Dn+"+"+_l,um,im,pl,cm].join("|"),"g"),hm=RegExp("["+ml+oo+sl+ll+"]"),gm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,vm=["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"],mm=-1,Ve={};Ve[ua]=Ve[ca]=Ve[la]=Ve[fa]=Ve[hn]=Ve[Pn]=Ve[mr]=Ve[gn]=Ve[vn]=!0,Ve[fe]=Ve[ne]=Ve[pn]=Ve[ue]=Ve[Gr]=Ve[he]=Ve[K]=Ve[F]=Ve[qe]=Ve[yt]=Ve[Vt]=Ve[ir]=Ve[Ct]=Ve[fn]=Ve[xr]=!1;var Ge={};Ge[fe]=Ge[ne]=Ge[pn]=Ge[Gr]=Ge[ue]=Ge[he]=Ge[ua]=Ge[ca]=Ge[la]=Ge[fa]=Ge[hn]=Ge[qe]=Ge[yt]=Ge[Vt]=Ge[ir]=Ge[Ct]=Ge[fn]=Ge[dn]=Ge[Pn]=Ge[mr]=Ge[gn]=Ge[vn]=!0,Ge[K]=Ge[F]=Ge[xr]=!1;var ym={À:"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"},bm={"&":"&","<":"<",">":">",'"':""","'":"'"},_m={"&":"&","<":"<",">":">",""":'"',"'":"'"},Em={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Sm=parseFloat,wm=parseInt,Tl=typeof Nr=="object"&&Nr&&Nr.Object===Object&&Nr,Tm=typeof self=="object"&&self&&self.Object===Object&&self,gt=Tl||Tm||Function("return this")(),ui=r&&!r.nodeType&&r,mn=ui&&!0&&e&&!e.nodeType&&e,xl=mn&&mn.exports===ui,ci=xl&&Tl.process,Jt=function(){try{var R=mn&&mn.require&&mn.require("util").types;return R||ci&&ci.binding&&ci.binding("util")}catch{}}(),Cl=Jt&&Jt.isArrayBuffer,Rl=Jt&&Jt.isDate,Ol=Jt&&Jt.isMap,Al=Jt&&Jt.isRegExp,Pl=Jt&&Jt.isSet,Dl=Jt&&Jt.isTypedArray;function jt(R,$,D){switch(D.length){case 0:return R.call($);case 1:return R.call($,D[0]);case 2:return R.call($,D[0],D[1]);case 3:return R.call($,D[0],D[1],D[2])}return R.apply($,D)}function xm(R,$,D,Z){for(var pe=-1,Oe=R==null?0:R.length;++pe<Oe;){var ct=R[pe];$(Z,ct,D(ct),R)}return Z}function Xt(R,$){for(var D=-1,Z=R==null?0:R.length;++D<Z&&$(R[D],D,R)!==!1;);return R}function Cm(R,$){for(var D=R==null?0:R.length;D--&&$(R[D],D,R)!==!1;);return R}function Il(R,$){for(var D=-1,Z=R==null?0:R.length;++D<Z;)if(!$(R[D],D,R))return!1;return!0}function Yr(R,$){for(var D=-1,Z=R==null?0:R.length,pe=0,Oe=[];++D<Z;){var ct=R[D];$(ct,D,R)&&(Oe[pe++]=ct)}return Oe}function io(R,$){var D=R==null?0:R.length;return!!D&&In(R,$,0)>-1}function li(R,$,D){for(var Z=-1,pe=R==null?0:R.length;++Z<pe;)if(D($,R[Z]))return!0;return!1}function Je(R,$){for(var D=-1,Z=R==null?0:R.length,pe=Array(Z);++D<Z;)pe[D]=$(R[D],D,R);return pe}function Vr(R,$){for(var D=-1,Z=$.length,pe=R.length;++D<Z;)R[pe+D]=$[D];return R}function fi(R,$,D,Z){var pe=-1,Oe=R==null?0:R.length;for(Z&&Oe&&(D=R[++pe]);++pe<Oe;)D=$(D,R[pe],pe,R);return D}function Rm(R,$,D,Z){var pe=R==null?0:R.length;for(Z&&pe&&(D=R[--pe]);pe--;)D=$(D,R[pe],pe,R);return D}function di(R,$){for(var D=-1,Z=R==null?0:R.length;++D<Z;)if($(R[D],D,R))return!0;return!1}var Om=pi("length");function Am(R){return R.split("")}function Pm(R){return R.match(Ee)||[]}function Fl(R,$,D){var Z;return D(R,function(pe,Oe,ct){if($(pe,Oe,ct))return Z=Oe,!1}),Z}function uo(R,$,D,Z){for(var pe=R.length,Oe=D+(Z?1:-1);Z?Oe--:++Oe<pe;)if($(R[Oe],Oe,R))return Oe;return-1}function In(R,$,D){return $===$?Um(R,$,D):uo(R,$l,D)}function Dm(R,$,D,Z){for(var pe=D-1,Oe=R.length;++pe<Oe;)if(Z(R[pe],$))return pe;return-1}function $l(R){return R!==R}function Ml(R,$){var D=R==null?0:R.length;return D?gi(R,$)/D:W}function pi(R){return function($){return $==null?t:$[R]}}function hi(R){return function($){return R==null?t:R[$]}}function Nl(R,$,D,Z,pe){return pe(R,function(Oe,ct,Ue){D=Z?(Z=!1,Oe):$(D,Oe,ct,Ue)}),D}function Im(R,$){var D=R.length;for(R.sort($);D--;)R[D]=R[D].value;return R}function gi(R,$){for(var D,Z=-1,pe=R.length;++Z<pe;){var Oe=$(R[Z]);Oe!==t&&(D=D===t?Oe:D+Oe)}return D}function vi(R,$){for(var D=-1,Z=Array(R);++D<R;)Z[D]=$(D);return Z}function Fm(R,$){return Je($,function(D){return[D,R[D]]})}function Ll(R){return R&&R.slice(0,Wl(R)+1).replace(J,"")}function Bt(R){return function($){return R($)}}function mi(R,$){return Je($,function(D){return R[D]})}function pa(R,$){return R.has($)}function kl(R,$){for(var D=-1,Z=R.length;++D<Z&&In($,R[D],0)>-1;);return D}function jl(R,$){for(var D=R.length;D--&&In($,R[D],0)>-1;);return D}function $m(R,$){for(var D=R.length,Z=0;D--;)R[D]===$&&++Z;return Z}var Mm=hi(ym),Nm=hi(bm);function Lm(R){return"\\"+Em[R]}function km(R,$){return R==null?t:R[$]}function Fn(R){return hm.test(R)}function jm(R){return gm.test(R)}function Bm(R){for(var $,D=[];!($=R.next()).done;)D.push($.value);return D}function yi(R){var $=-1,D=Array(R.size);return R.forEach(function(Z,pe){D[++$]=[pe,Z]}),D}function Bl(R,$){return function(D){return R($(D))}}function Kr(R,$){for(var D=-1,Z=R.length,pe=0,Oe=[];++D<Z;){var ct=R[D];(ct===$||ct===g)&&(R[D]=g,Oe[pe++]=D)}return Oe}function co(R){var $=-1,D=Array(R.size);return R.forEach(function(Z){D[++$]=Z}),D}function Wm(R){var $=-1,D=Array(R.size);return R.forEach(function(Z){D[++$]=[Z,Z]}),D}function Um(R,$,D){for(var Z=D-1,pe=R.length;++Z<pe;)if(R[Z]===$)return Z;return-1}function Hm(R,$,D){for(var Z=D+1;Z--;)if(R[Z]===$)return Z;return Z}function $n(R){return Fn(R)?Gm(R):Om(R)}function cr(R){return Fn(R)?zm(R):Am(R)}function Wl(R){for(var $=R.length;$--&&ie.test(R.charAt($)););return $}var qm=hi(_m);function Gm(R){for(var $=ii.lastIndex=0;ii.test(R);)++$;return $}function zm(R){return R.match(ii)||[]}function Ym(R){return R.match(pm)||[]}var Vm=function R($){$=$==null?gt:Mn.defaults(gt.Object(),$,Mn.pick(gt,vm));var D=$.Array,Z=$.Date,pe=$.Error,Oe=$.Function,ct=$.Math,Ue=$.Object,bi=$.RegExp,Km=$.String,Zt=$.TypeError,lo=D.prototype,Jm=Oe.prototype,Nn=Ue.prototype,fo=$["__core-js_shared__"],po=Jm.toString,ke=Nn.hasOwnProperty,Xm=0,Ul=function(){var n=/[^.]+$/.exec(fo&&fo.keys&&fo.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),ho=Nn.toString,Zm=po.call(Ue),Qm=gt._,ey=bi("^"+po.call(ke).replace(w,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),go=xl?$.Buffer:t,Jr=$.Symbol,vo=$.Uint8Array,Hl=go?go.allocUnsafe:t,mo=Bl(Ue.getPrototypeOf,Ue),ql=Ue.create,Gl=Nn.propertyIsEnumerable,yo=lo.splice,zl=Jr?Jr.isConcatSpreadable:t,ha=Jr?Jr.iterator:t,yn=Jr?Jr.toStringTag:t,bo=function(){try{var n=wn(Ue,"defineProperty");return n({},"",{}),n}catch{}}(),ty=$.clearTimeout!==gt.clearTimeout&&$.clearTimeout,ry=Z&&Z.now!==gt.Date.now&&Z.now,ny=$.setTimeout!==gt.setTimeout&&$.setTimeout,_o=ct.ceil,Eo=ct.floor,_i=Ue.getOwnPropertySymbols,ay=go?go.isBuffer:t,Yl=$.isFinite,oy=lo.join,sy=Bl(Ue.keys,Ue),lt=ct.max,bt=ct.min,iy=Z.now,uy=$.parseInt,Vl=ct.random,cy=lo.reverse,Ei=wn($,"DataView"),ga=wn($,"Map"),Si=wn($,"Promise"),Ln=wn($,"Set"),va=wn($,"WeakMap"),ma=wn(Ue,"create"),So=va&&new va,kn={},ly=Tn(Ei),fy=Tn(ga),dy=Tn(Si),py=Tn(Ln),hy=Tn(va),wo=Jr?Jr.prototype:t,ya=wo?wo.valueOf:t,Kl=wo?wo.toString:t;function v(n){if(rt(n)&&!ve(n)&&!(n instanceof we)){if(n instanceof Qt)return n;if(ke.call(n,"__wrapped__"))return Xf(n)}return new Qt(n)}var jn=function(){function n(){}return function(o){if(!Qe(o))return{};if(ql)return ql(o);n.prototype=o;var u=new n;return n.prototype=t,u}}();function To(){}function Qt(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=t}v.templateSettings={escape:Qs,evaluate:to,interpolate:ro,variable:"",imports:{_:v}},v.prototype=To.prototype,v.prototype.constructor=v,Qt.prototype=jn(To.prototype),Qt.prototype.constructor=Qt;function we(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=G,this.__views__=[]}function gy(){var n=new we(this.__wrapped__);return n.__actions__=Ft(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Ft(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Ft(this.__views__),n}function vy(){if(this.__filtered__){var n=new we(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function my(){var n=this.__wrapped__.value(),o=this.__dir__,u=ve(n),f=o<0,h=u?n.length:0,y=A0(0,h,this.__views__),S=y.start,T=y.end,A=T-S,N=f?T:S-1,L=this.__iteratees__,B=L.length,V=0,ee=bt(A,this.__takeCount__);if(!u||!f&&h==A&&ee==A)return _f(n,this.__actions__);var ae=[];e:for(;A--&&V<ee;){N+=o;for(var be=-1,oe=n[N];++be<B;){var Se=L[be],Ce=Se.iteratee,Ht=Se.type,At=Ce(oe);if(Ht==ut)oe=At;else if(!At){if(Ht==Pe)continue e;break e}}ae[V++]=oe}return ae}we.prototype=jn(To.prototype),we.prototype.constructor=we;function bn(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 yy(){this.__data__=ma?ma(null):{},this.size=0}function by(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function _y(n){var o=this.__data__;if(ma){var u=o[n];return u===d?t:u}return ke.call(o,n)?o[n]:t}function Ey(n){var o=this.__data__;return ma?o[n]!==t:ke.call(o,n)}function Sy(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=ma&&o===t?d:o,this}bn.prototype.clear=yy,bn.prototype.delete=by,bn.prototype.get=_y,bn.prototype.has=Ey,bn.prototype.set=Sy;function Cr(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 wy(){this.__data__=[],this.size=0}function Ty(n){var o=this.__data__,u=xo(o,n);if(u<0)return!1;var f=o.length-1;return u==f?o.pop():yo.call(o,u,1),--this.size,!0}function xy(n){var o=this.__data__,u=xo(o,n);return u<0?t:o[u][1]}function Cy(n){return xo(this.__data__,n)>-1}function Ry(n,o){var u=this.__data__,f=xo(u,n);return f<0?(++this.size,u.push([n,o])):u[f][1]=o,this}Cr.prototype.clear=wy,Cr.prototype.delete=Ty,Cr.prototype.get=xy,Cr.prototype.has=Cy,Cr.prototype.set=Ry;function Rr(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 Oy(){this.size=0,this.__data__={hash:new bn,map:new(ga||Cr),string:new bn}}function Ay(n){var o=Lo(this,n).delete(n);return this.size-=o?1:0,o}function Py(n){return Lo(this,n).get(n)}function Dy(n){return Lo(this,n).has(n)}function Iy(n,o){var u=Lo(this,n),f=u.size;return u.set(n,o),this.size+=u.size==f?0:1,this}Rr.prototype.clear=Oy,Rr.prototype.delete=Ay,Rr.prototype.get=Py,Rr.prototype.has=Dy,Rr.prototype.set=Iy;function _n(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new Rr;++o<u;)this.add(n[o])}function Fy(n){return this.__data__.set(n,d),this}function $y(n){return this.__data__.has(n)}_n.prototype.add=_n.prototype.push=Fy,_n.prototype.has=$y;function lr(n){var o=this.__data__=new Cr(n);this.size=o.size}function My(){this.__data__=new Cr,this.size=0}function Ny(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function Ly(n){return this.__data__.get(n)}function ky(n){return this.__data__.has(n)}function jy(n,o){var u=this.__data__;if(u instanceof Cr){var f=u.__data__;if(!ga||f.length<s-1)return f.push([n,o]),this.size=++u.size,this;u=this.__data__=new Rr(f)}return u.set(n,o),this.size=u.size,this}lr.prototype.clear=My,lr.prototype.delete=Ny,lr.prototype.get=Ly,lr.prototype.has=ky,lr.prototype.set=jy;function Jl(n,o){var u=ve(n),f=!u&&xn(n),h=!u&&!f&&tn(n),y=!u&&!f&&!h&&Hn(n),S=u||f||h||y,T=S?vi(n.length,Km):[],A=T.length;for(var N in n)(o||ke.call(n,N))&&!(S&&(N=="length"||h&&(N=="offset"||N=="parent")||y&&(N=="buffer"||N=="byteLength"||N=="byteOffset")||Dr(N,A)))&&T.push(N);return T}function Xl(n){var o=n.length;return o?n[Fi(0,o-1)]:t}function By(n,o){return ko(Ft(n),En(o,0,n.length))}function Wy(n){return ko(Ft(n))}function wi(n,o,u){(u!==t&&!fr(n[o],u)||u===t&&!(o in n))&&Or(n,o,u)}function ba(n,o,u){var f=n[o];(!(ke.call(n,o)&&fr(f,u))||u===t&&!(o in n))&&Or(n,o,u)}function xo(n,o){for(var u=n.length;u--;)if(fr(n[u][0],o))return u;return-1}function Uy(n,o,u,f){return Xr(n,function(h,y,S){o(f,h,u(h),S)}),f}function Zl(n,o){return n&&br(o,pt(o),n)}function Hy(n,o){return n&&br(o,Mt(o),n)}function Or(n,o,u){o=="__proto__"&&bo?bo(n,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[o]=u}function Ti(n,o){for(var u=-1,f=o.length,h=D(f),y=n==null;++u<f;)h[u]=y?t:au(n,o[u]);return h}function En(n,o,u){return n===n&&(u!==t&&(n=n<=u?n:u),o!==t&&(n=n>=o?n:o)),n}function er(n,o,u,f,h,y){var S,T=o&m,A=o&b,N=o&E;if(u&&(S=h?u(n,f,h,y):u(n)),S!==t)return S;if(!Qe(n))return n;var L=ve(n);if(L){if(S=D0(n),!T)return Ft(n,S)}else{var B=_t(n),V=B==F||B==Ye;if(tn(n))return wf(n,T);if(B==Vt||B==fe||V&&!h){if(S=A||V?{}:Uf(n),!T)return A?_0(n,Hy(S,n)):b0(n,Zl(S,n))}else{if(!Ge[B])return h?n:{};S=I0(n,B,T)}}y||(y=new lr);var ee=y.get(n);if(ee)return ee;y.set(n,S),md(n)?n.forEach(function(oe){S.add(er(oe,o,u,oe,n,y))}):gd(n)&&n.forEach(function(oe,Se){S.set(Se,er(oe,o,u,Se,n,y))});var ae=N?A?qi:Hi:A?Mt:pt,be=L?t:ae(n);return Xt(be||n,function(oe,Se){be&&(Se=oe,oe=n[Se]),ba(S,Se,er(oe,o,u,Se,n,y))}),S}function qy(n){var o=pt(n);return function(u){return Ql(u,n,o)}}function Ql(n,o,u){var f=u.length;if(n==null)return!f;for(n=Ue(n);f--;){var h=u[f],y=o[h],S=n[h];if(S===t&&!(h in n)||!y(S))return!1}return!0}function ef(n,o,u){if(typeof n!="function")throw new Zt(c);return Ca(function(){n.apply(t,u)},o)}function _a(n,o,u,f){var h=-1,y=io,S=!0,T=n.length,A=[],N=o.length;if(!T)return A;u&&(o=Je(o,Bt(u))),f?(y=li,S=!1):o.length>=s&&(y=pa,S=!1,o=new _n(o));e:for(;++h<T;){var L=n[h],B=u==null?L:u(L);if(L=f||L!==0?L:0,S&&B===B){for(var V=N;V--;)if(o[V]===B)continue e;A.push(L)}else y(o,B,f)||A.push(L)}return A}var Xr=Of(yr),tf=Of(Ci,!0);function Gy(n,o){var u=!0;return Xr(n,function(f,h,y){return u=!!o(f,h,y),u}),u}function Co(n,o,u){for(var f=-1,h=n.length;++f<h;){var y=n[f],S=o(y);if(S!=null&&(T===t?S===S&&!Ut(S):u(S,T)))var T=S,A=y}return A}function zy(n,o,u,f){var h=n.length;for(u=me(u),u<0&&(u=-u>h?0:h+u),f=f===t||f>h?h:me(f),f<0&&(f+=h),f=u>f?0:bd(f);u<f;)n[u++]=o;return n}function rf(n,o){var u=[];return Xr(n,function(f,h,y){o(f,h,y)&&u.push(f)}),u}function vt(n,o,u,f,h){var y=-1,S=n.length;for(u||(u=$0),h||(h=[]);++y<S;){var T=n[y];o>0&&u(T)?o>1?vt(T,o-1,u,f,h):Vr(h,T):f||(h[h.length]=T)}return h}var xi=Af(),nf=Af(!0);function yr(n,o){return n&&xi(n,o,pt)}function Ci(n,o){return n&&nf(n,o,pt)}function Ro(n,o){return Yr(o,function(u){return Ir(n[u])})}function Sn(n,o){o=Qr(o,n);for(var u=0,f=o.length;n!=null&&u<f;)n=n[_r(o[u++])];return u&&u==f?n:t}function af(n,o,u){var f=o(n);return ve(n)?f:Vr(f,u(n))}function Rt(n){return n==null?n===t?Ja:Ka:yn&&yn in Ue(n)?O0(n):W0(n)}function Ri(n,o){return n>o}function Yy(n,o){return n!=null&&ke.call(n,o)}function Vy(n,o){return n!=null&&o in Ue(n)}function Ky(n,o,u){return n>=bt(o,u)&&n<lt(o,u)}function Oi(n,o,u){for(var f=u?li:io,h=n[0].length,y=n.length,S=y,T=D(y),A=1/0,N=[];S--;){var L=n[S];S&&o&&(L=Je(L,Bt(o))),A=bt(L.length,A),T[S]=!u&&(o||h>=120&&L.length>=120)?new _n(S&&L):t}L=n[0];var B=-1,V=T[0];e:for(;++B<h&&N.length<A;){var ee=L[B],ae=o?o(ee):ee;if(ee=u||ee!==0?ee:0,!(V?pa(V,ae):f(N,ae,u))){for(S=y;--S;){var be=T[S];if(!(be?pa(be,ae):f(n[S],ae,u)))continue e}V&&V.push(ae),N.push(ee)}}return N}function Jy(n,o,u,f){return yr(n,function(h,y,S){o(f,u(h),y,S)}),f}function Ea(n,o,u){o=Qr(o,n),n=zf(n,o);var f=n==null?n:n[_r(rr(o))];return f==null?t:jt(f,n,u)}function of(n){return rt(n)&&Rt(n)==fe}function Xy(n){return rt(n)&&Rt(n)==pn}function Zy(n){return rt(n)&&Rt(n)==he}function Sa(n,o,u,f,h){return n===o?!0:n==null||o==null||!rt(n)&&!rt(o)?n!==n&&o!==o:Qy(n,o,u,f,Sa,h)}function Qy(n,o,u,f,h,y){var S=ve(n),T=ve(o),A=S?ne:_t(n),N=T?ne:_t(o);A=A==fe?Vt:A,N=N==fe?Vt:N;var L=A==Vt,B=N==Vt,V=A==N;if(V&&tn(n)){if(!tn(o))return!1;S=!0,L=!1}if(V&&!L)return y||(y=new lr),S||Hn(n)?jf(n,o,u,f,h,y):C0(n,o,A,u,f,h,y);if(!(u&x)){var ee=L&&ke.call(n,"__wrapped__"),ae=B&&ke.call(o,"__wrapped__");if(ee||ae){var be=ee?n.value():n,oe=ae?o.value():o;return y||(y=new lr),h(be,oe,u,f,y)}}return V?(y||(y=new lr),R0(n,o,u,f,h,y)):!1}function e0(n){return rt(n)&&_t(n)==qe}function Ai(n,o,u,f){var h=u.length,y=h,S=!f;if(n==null)return!y;for(n=Ue(n);h--;){var T=u[h];if(S&&T[2]?T[1]!==n[T[0]]:!(T[0]in n))return!1}for(;++h<y;){T=u[h];var A=T[0],N=n[A],L=T[1];if(S&&T[2]){if(N===t&&!(A in n))return!1}else{var B=new lr;if(f)var V=f(N,L,A,n,o,B);if(!(V===t?Sa(L,N,x|C,f,B):V))return!1}}return!0}function sf(n){if(!Qe(n)||N0(n))return!1;var o=Ir(n)?ey:ur;return o.test(Tn(n))}function t0(n){return rt(n)&&Rt(n)==ir}function r0(n){return rt(n)&&_t(n)==Ct}function n0(n){return rt(n)&&qo(n.length)&&!!Ve[Rt(n)]}function uf(n){return typeof n=="function"?n:n==null?Nt:typeof n=="object"?ve(n)?ff(n[0],n[1]):lf(n):Pd(n)}function Pi(n){if(!xa(n))return sy(n);var o=[];for(var u in Ue(n))ke.call(n,u)&&u!="constructor"&&o.push(u);return o}function a0(n){if(!Qe(n))return B0(n);var o=xa(n),u=[];for(var f in n)f=="constructor"&&(o||!ke.call(n,f))||u.push(f);return u}function Di(n,o){return n<o}function cf(n,o){var u=-1,f=$t(n)?D(n.length):[];return Xr(n,function(h,y,S){f[++u]=o(h,y,S)}),f}function lf(n){var o=zi(n);return o.length==1&&o[0][2]?qf(o[0][0],o[0][1]):function(u){return u===n||Ai(u,n,o)}}function ff(n,o){return Vi(n)&&Hf(o)?qf(_r(n),o):function(u){var f=au(u,n);return f===t&&f===o?ou(u,n):Sa(o,f,x|C)}}function Oo(n,o,u,f,h){n!==o&&xi(o,function(y,S){if(h||(h=new lr),Qe(y))o0(n,o,S,u,Oo,f,h);else{var T=f?f(Ji(n,S),y,S+"",n,o,h):t;T===t&&(T=y),wi(n,S,T)}},Mt)}function o0(n,o,u,f,h,y,S){var T=Ji(n,u),A=Ji(o,u),N=S.get(A);if(N){wi(n,u,N);return}var L=y?y(T,A,u+"",n,o,S):t,B=L===t;if(B){var V=ve(A),ee=!V&&tn(A),ae=!V&&!ee&&Hn(A);L=A,V||ee||ae?ve(T)?L=T:at(T)?L=Ft(T):ee?(B=!1,L=wf(A,!0)):ae?(B=!1,L=Tf(A,!0)):L=[]:Ra(A)||xn(A)?(L=T,xn(T)?L=_d(T):(!Qe(T)||Ir(T))&&(L=Uf(A))):B=!1}B&&(S.set(A,L),h(L,A,f,y,S),S.delete(A)),wi(n,u,L)}function df(n,o){var u=n.length;if(u)return o+=o<0?u:0,Dr(o,u)?n[o]:t}function pf(n,o,u){o.length?o=Je(o,function(y){return ve(y)?function(S){return Sn(S,y.length===1?y[0]:y)}:y}):o=[Nt];var f=-1;o=Je(o,Bt(re()));var h=cf(n,function(y,S,T){var A=Je(o,function(N){return N(y)});return{criteria:A,index:++f,value:y}});return Im(h,function(y,S){return y0(y,S,u)})}function s0(n,o){return hf(n,o,function(u,f){return ou(n,f)})}function hf(n,o,u){for(var f=-1,h=o.length,y={};++f<h;){var S=o[f],T=Sn(n,S);u(T,S)&&wa(y,Qr(S,n),T)}return y}function i0(n){return function(o){return Sn(o,n)}}function Ii(n,o,u,f){var h=f?Dm:In,y=-1,S=o.length,T=n;for(n===o&&(o=Ft(o)),u&&(T=Je(n,Bt(u)));++y<S;)for(var A=0,N=o[y],L=u?u(N):N;(A=h(T,L,A,f))>-1;)T!==n&&yo.call(T,A,1),yo.call(n,A,1);return n}function gf(n,o){for(var u=n?o.length:0,f=u-1;u--;){var h=o[u];if(u==f||h!==y){var y=h;Dr(h)?yo.call(n,h,1):Ni(n,h)}}return n}function Fi(n,o){return n+Eo(Vl()*(o-n+1))}function u0(n,o,u,f){for(var h=-1,y=lt(_o((o-n)/(u||1)),0),S=D(y);y--;)S[f?y:++h]=n,n+=u;return S}function $i(n,o){var u="";if(!n||o<1||o>nt)return u;do o%2&&(u+=n),o=Eo(o/2),o&&(n+=n);while(o);return u}function _e(n,o){return Xi(Gf(n,o,Nt),n+"")}function c0(n){return Xl(qn(n))}function l0(n,o){var u=qn(n);return ko(u,En(o,0,u.length))}function wa(n,o,u,f){if(!Qe(n))return n;o=Qr(o,n);for(var h=-1,y=o.length,S=y-1,T=n;T!=null&&++h<y;){var A=_r(o[h]),N=u;if(A==="__proto__"||A==="constructor"||A==="prototype")return n;if(h!=S){var L=T[A];N=f?f(L,A,T):t,N===t&&(N=Qe(L)?L:Dr(o[h+1])?[]:{})}ba(T,A,N),T=T[A]}return n}var vf=So?function(n,o){return So.set(n,o),n}:Nt,f0=bo?function(n,o){return bo(n,"toString",{configurable:!0,enumerable:!1,value:iu(o),writable:!0})}:Nt;function d0(n){return ko(qn(n))}function tr(n,o,u){var f=-1,h=n.length;o<0&&(o=-o>h?0:h+o),u=u>h?h:u,u<0&&(u+=h),h=o>u?0:u-o>>>0,o>>>=0;for(var y=D(h);++f<h;)y[f]=n[f+o];return y}function p0(n,o){var u;return Xr(n,function(f,h,y){return u=o(f,h,y),!u}),!!u}function Ao(n,o,u){var f=0,h=n==null?f:n.length;if(typeof o=="number"&&o===o&&h<=le){for(;f<h;){var y=f+h>>>1,S=n[y];S!==null&&!Ut(S)&&(u?S<=o:S<o)?f=y+1:h=y}return h}return Mi(n,o,Nt,u)}function Mi(n,o,u,f){var h=0,y=n==null?0:n.length;if(y===0)return 0;o=u(o);for(var S=o!==o,T=o===null,A=Ut(o),N=o===t;h<y;){var L=Eo((h+y)/2),B=u(n[L]),V=B!==t,ee=B===null,ae=B===B,be=Ut(B);if(S)var oe=f||ae;else N?oe=ae&&(f||V):T?oe=ae&&V&&(f||!ee):A?oe=ae&&V&&!ee&&(f||!be):ee||be?oe=!1:oe=f?B<=o:B<o;oe?h=L+1:y=L}return bt(y,de)}function mf(n,o){for(var u=-1,f=n.length,h=0,y=[];++u<f;){var S=n[u],T=o?o(S):S;if(!u||!fr(T,A)){var A=T;y[h++]=S===0?0:S}}return y}function yf(n){return typeof n=="number"?n:Ut(n)?W:+n}function Wt(n){if(typeof n=="string")return n;if(ve(n))return Je(n,Wt)+"";if(Ut(n))return Kl?Kl.call(n):"";var o=n+"";return o=="0"&&1/n==-He?"-0":o}function Zr(n,o,u){var f=-1,h=io,y=n.length,S=!0,T=[],A=T;if(u)S=!1,h=li;else if(y>=s){var N=o?null:T0(n);if(N)return co(N);S=!1,h=pa,A=new _n}else A=o?[]:T;e:for(;++f<y;){var L=n[f],B=o?o(L):L;if(L=u||L!==0?L:0,S&&B===B){for(var V=A.length;V--;)if(A[V]===B)continue e;o&&A.push(B),T.push(L)}else h(A,B,u)||(A!==T&&A.push(B),T.push(L))}return T}function Ni(n,o){return o=Qr(o,n),n=zf(n,o),n==null||delete n[_r(rr(o))]}function bf(n,o,u,f){return wa(n,o,u(Sn(n,o)),f)}function Po(n,o,u,f){for(var h=n.length,y=f?h:-1;(f?y--:++y<h)&&o(n[y],y,n););return u?tr(n,f?0:y,f?y+1:h):tr(n,f?y+1:0,f?h:y)}function _f(n,o){var u=n;return u instanceof we&&(u=u.value()),fi(o,function(f,h){return h.func.apply(h.thisArg,Vr([f],h.args))},u)}function Li(n,o,u){var f=n.length;if(f<2)return f?Zr(n[0]):[];for(var h=-1,y=D(f);++h<f;)for(var S=n[h],T=-1;++T<f;)T!=h&&(y[h]=_a(y[h]||S,n[T],o,u));return Zr(vt(y,1),o,u)}function Ef(n,o,u){for(var f=-1,h=n.length,y=o.length,S={};++f<h;){var T=f<y?o[f]:t;u(S,n[f],T)}return S}function ki(n){return at(n)?n:[]}function ji(n){return typeof n=="function"?n:Nt}function Qr(n,o){return ve(n)?n:Vi(n,o)?[n]:Jf(De(n))}var h0=_e;function en(n,o,u){var f=n.length;return u=u===t?f:u,!o&&u>=f?n:tr(n,o,u)}var Sf=ty||function(n){return gt.clearTimeout(n)};function wf(n,o){if(o)return n.slice();var u=n.length,f=Hl?Hl(u):new n.constructor(u);return n.copy(f),f}function Bi(n){var o=new n.constructor(n.byteLength);return new vo(o).set(new vo(n)),o}function g0(n,o){var u=o?Bi(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function v0(n){var o=new n.constructor(n.source,Kt.exec(n));return o.lastIndex=n.lastIndex,o}function m0(n){return ya?Ue(ya.call(n)):{}}function Tf(n,o){var u=o?Bi(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function xf(n,o){if(n!==o){var u=n!==t,f=n===null,h=n===n,y=Ut(n),S=o!==t,T=o===null,A=o===o,N=Ut(o);if(!T&&!N&&!y&&n>o||y&&S&&A&&!T&&!N||f&&S&&A||!u&&A||!h)return 1;if(!f&&!y&&!N&&n<o||N&&u&&h&&!f&&!y||T&&u&&h||!S&&h||!A)return-1}return 0}function y0(n,o,u){for(var f=-1,h=n.criteria,y=o.criteria,S=h.length,T=u.length;++f<S;){var A=xf(h[f],y[f]);if(A){if(f>=T)return A;var N=u[f];return A*(N=="desc"?-1:1)}}return n.index-o.index}function Cf(n,o,u,f){for(var h=-1,y=n.length,S=u.length,T=-1,A=o.length,N=lt(y-S,0),L=D(A+N),B=!f;++T<A;)L[T]=o[T];for(;++h<S;)(B||h<y)&&(L[u[h]]=n[h]);for(;N--;)L[T++]=n[h++];return L}function Rf(n,o,u,f){for(var h=-1,y=n.length,S=-1,T=u.length,A=-1,N=o.length,L=lt(y-T,0),B=D(L+N),V=!f;++h<L;)B[h]=n[h];for(var ee=h;++A<N;)B[ee+A]=o[A];for(;++S<T;)(V||h<y)&&(B[ee+u[S]]=n[h++]);return B}function Ft(n,o){var u=-1,f=n.length;for(o||(o=D(f));++u<f;)o[u]=n[u];return o}function br(n,o,u,f){var h=!u;u||(u={});for(var y=-1,S=o.length;++y<S;){var T=o[y],A=f?f(u[T],n[T],T,u,n):t;A===t&&(A=n[T]),h?Or(u,T,A):ba(u,T,A)}return u}function b0(n,o){return br(n,Yi(n),o)}function _0(n,o){return br(n,Bf(n),o)}function Do(n,o){return function(u,f){var h=ve(u)?xm:Uy,y=o?o():{};return h(u,n,re(f,2),y)}}function Bn(n){return _e(function(o,u){var f=-1,h=u.length,y=h>1?u[h-1]:t,S=h>2?u[2]:t;for(y=n.length>3&&typeof y=="function"?(h--,y):t,S&&Ot(u[0],u[1],S)&&(y=h<3?t:y,h=1),o=Ue(o);++f<h;){var T=u[f];T&&n(o,T,f,y)}return o})}function Of(n,o){return function(u,f){if(u==null)return u;if(!$t(u))return n(u,f);for(var h=u.length,y=o?h:-1,S=Ue(u);(o?y--:++y<h)&&f(S[y],y,S)!==!1;);return u}}function Af(n){return function(o,u,f){for(var h=-1,y=Ue(o),S=f(o),T=S.length;T--;){var A=S[n?T:++h];if(u(y[A],A,y)===!1)break}return o}}function E0(n,o,u){var f=o&I,h=Ta(n);function y(){var S=this&&this!==gt&&this instanceof y?h:n;return S.apply(f?u:this,arguments)}return y}function Pf(n){return function(o){o=De(o);var u=Fn(o)?cr(o):t,f=u?u[0]:o.charAt(0),h=u?en(u,1).join(""):o.slice(1);return f[n]()+h}}function Wn(n){return function(o){return fi(Od(Rd(o).replace(fm,"")),n,"")}}function Ta(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=jn(n.prototype),f=n.apply(u,o);return Qe(f)?f:u}}function S0(n,o,u){var f=Ta(n);function h(){for(var y=arguments.length,S=D(y),T=y,A=Un(h);T--;)S[T]=arguments[T];var N=y<3&&S[0]!==A&&S[y-1]!==A?[]:Kr(S,A);if(y-=N.length,y<u)return Mf(n,o,Io,h.placeholder,t,S,N,t,t,u-y);var L=this&&this!==gt&&this instanceof h?f:n;return jt(L,this,S)}return h}function Df(n){return function(o,u,f){var h=Ue(o);if(!$t(o)){var y=re(u,3);o=pt(o),u=function(T){return y(h[T],T,h)}}var S=n(o,u,f);return S>-1?h[y?o[S]:S]:t}}function If(n){return Pr(function(o){var u=o.length,f=u,h=Qt.prototype.thru;for(n&&o.reverse();f--;){var y=o[f];if(typeof y!="function")throw new Zt(c);if(h&&!S&&No(y)=="wrapper")var S=new Qt([],!0)}for(f=S?f:u;++f<u;){y=o[f];var T=No(y),A=T=="wrapper"?Gi(y):t;A&&Ki(A[0])&&A[1]==(H|M|O|z)&&!A[4].length&&A[9]==1?S=S[No(A[0])].apply(S,A[3]):S=y.length==1&&Ki(y)?S[T]():S.thru(y)}return function(){var N=arguments,L=N[0];if(S&&N.length==1&&ve(L))return S.plant(L).value();for(var B=0,V=u?o[B].apply(this,N):L;++B<u;)V=o[B].call(this,V);return V}})}function Io(n,o,u,f,h,y,S,T,A,N){var L=o&H,B=o&I,V=o&P,ee=o&(M|k),ae=o&te,be=V?t:Ta(n);function oe(){for(var Se=arguments.length,Ce=D(Se),Ht=Se;Ht--;)Ce[Ht]=arguments[Ht];if(ee)var At=Un(oe),qt=$m(Ce,At);if(f&&(Ce=Cf(Ce,f,h,ee)),y&&(Ce=Rf(Ce,y,S,ee)),Se-=qt,ee&&Se<N){var ot=Kr(Ce,At);return Mf(n,o,Io,oe.placeholder,u,Ce,ot,T,A,N-Se)}var dr=B?u:this,$r=V?dr[n]:n;return Se=Ce.length,T?Ce=U0(Ce,T):ae&&Se>1&&Ce.reverse(),L&&A<Se&&(Ce.length=A),this&&this!==gt&&this instanceof oe&&($r=be||Ta($r)),$r.apply(dr,Ce)}return oe}function Ff(n,o){return function(u,f){return Jy(u,n,o(f),{})}}function Fo(n,o){return function(u,f){var h;if(u===t&&f===t)return o;if(u!==t&&(h=u),f!==t){if(h===t)return f;typeof u=="string"||typeof f=="string"?(u=Wt(u),f=Wt(f)):(u=yf(u),f=yf(f)),h=n(u,f)}return h}}function Wi(n){return Pr(function(o){return o=Je(o,Bt(re())),_e(function(u){var f=this;return n(o,function(h){return jt(h,f,u)})})})}function $o(n,o){o=o===t?" ":Wt(o);var u=o.length;if(u<2)return u?$i(o,n):o;var f=$i(o,_o(n/$n(o)));return Fn(o)?en(cr(f),0,n).join(""):f.slice(0,n)}function w0(n,o,u,f){var h=o&I,y=Ta(n);function S(){for(var T=-1,A=arguments.length,N=-1,L=f.length,B=D(L+A),V=this&&this!==gt&&this instanceof S?y:n;++N<L;)B[N]=f[N];for(;A--;)B[N++]=arguments[++T];return jt(V,h?u:this,B)}return S}function $f(n){return function(o,u,f){return f&&typeof f!="number"&&Ot(o,u,f)&&(u=f=t),o=Fr(o),u===t?(u=o,o=0):u=Fr(u),f=f===t?o<u?1:-1:Fr(f),u0(o,u,f,n)}}function Mo(n){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=nr(o),u=nr(u)),n(o,u)}}function Mf(n,o,u,f,h,y,S,T,A,N){var L=o&M,B=L?S:t,V=L?t:S,ee=L?y:t,ae=L?t:y;o|=L?O:Y,o&=~(L?Y:O),o&j||(o&=~(I|P));var be=[n,o,h,ee,B,ae,V,T,A,N],oe=u.apply(t,be);return Ki(n)&&Yf(oe,be),oe.placeholder=f,Vf(oe,n,o)}function Ui(n){var o=ct[n];return function(u,f){if(u=nr(u),f=f==null?0:bt(me(f),292),f&&Yl(u)){var h=(De(u)+"e").split("e"),y=o(h[0]+"e"+(+h[1]+f));return h=(De(y)+"e").split("e"),+(h[0]+"e"+(+h[1]-f))}return o(u)}}var T0=Ln&&1/co(new Ln([,-0]))[1]==He?function(n){return new Ln(n)}:lu;function Nf(n){return function(o){var u=_t(o);return u==qe?yi(o):u==Ct?Wm(o):Fm(o,n(o))}}function Ar(n,o,u,f,h,y,S,T){var A=o&P;if(!A&&typeof n!="function")throw new Zt(c);var N=f?f.length:0;if(N||(o&=~(O|Y),f=h=t),S=S===t?S:lt(me(S),0),T=T===t?T:me(T),N-=h?h.length:0,o&Y){var L=f,B=h;f=h=t}var V=A?t:Gi(n),ee=[n,o,u,f,h,L,B,y,S,T];if(V&&j0(ee,V),n=ee[0],o=ee[1],u=ee[2],f=ee[3],h=ee[4],T=ee[9]=ee[9]===t?A?0:n.length:lt(ee[9]-N,0),!T&&o&(M|k)&&(o&=~(M|k)),!o||o==I)var ae=E0(n,o,u);else o==M||o==k?ae=S0(n,o,T):(o==O||o==(I|O))&&!h.length?ae=w0(n,o,u,f):ae=Io.apply(t,ee);var be=V?vf:Yf;return Vf(be(ae,ee),n,o)}function Lf(n,o,u,f){return n===t||fr(n,Nn[u])&&!ke.call(f,u)?o:n}function kf(n,o,u,f,h,y){return Qe(n)&&Qe(o)&&(y.set(o,n),Oo(n,o,t,kf,y),y.delete(o)),n}function x0(n){return Ra(n)?t:n}function jf(n,o,u,f,h,y){var S=u&x,T=n.length,A=o.length;if(T!=A&&!(S&&A>T))return!1;var N=y.get(n),L=y.get(o);if(N&&L)return N==o&&L==n;var B=-1,V=!0,ee=u&C?new _n:t;for(y.set(n,o),y.set(o,n);++B<T;){var ae=n[B],be=o[B];if(f)var oe=S?f(be,ae,B,o,n,y):f(ae,be,B,n,o,y);if(oe!==t){if(oe)continue;V=!1;break}if(ee){if(!di(o,function(Se,Ce){if(!pa(ee,Ce)&&(ae===Se||h(ae,Se,u,f,y)))return ee.push(Ce)})){V=!1;break}}else if(!(ae===be||h(ae,be,u,f,y))){V=!1;break}}return y.delete(n),y.delete(o),V}function C0(n,o,u,f,h,y,S){switch(u){case Gr:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case pn:return!(n.byteLength!=o.byteLength||!y(new vo(n),new vo(o)));case ue:case he:case yt:return fr(+n,+o);case K:return n.name==o.name&&n.message==o.message;case ir:case fn:return n==o+"";case qe:var T=yi;case Ct:var A=f&x;if(T||(T=co),n.size!=o.size&&!A)return!1;var N=S.get(n);if(N)return N==o;f|=C,S.set(n,o);var L=jf(T(n),T(o),f,h,y,S);return S.delete(n),L;case dn:if(ya)return ya.call(n)==ya.call(o)}return!1}function R0(n,o,u,f,h,y){var S=u&x,T=Hi(n),A=T.length,N=Hi(o),L=N.length;if(A!=L&&!S)return!1;for(var B=A;B--;){var V=T[B];if(!(S?V in o:ke.call(o,V)))return!1}var ee=y.get(n),ae=y.get(o);if(ee&&ae)return ee==o&&ae==n;var be=!0;y.set(n,o),y.set(o,n);for(var oe=S;++B<A;){V=T[B];var Se=n[V],Ce=o[V];if(f)var Ht=S?f(Ce,Se,V,o,n,y):f(Se,Ce,V,n,o,y);if(!(Ht===t?Se===Ce||h(Se,Ce,u,f,y):Ht)){be=!1;break}oe||(oe=V=="constructor")}if(be&&!oe){var At=n.constructor,qt=o.constructor;At!=qt&&"constructor"in n&&"constructor"in o&&!(typeof At=="function"&&At instanceof At&&typeof qt=="function"&&qt instanceof qt)&&(be=!1)}return y.delete(n),y.delete(o),be}function Pr(n){return Xi(Gf(n,t,ed),n+"")}function Hi(n){return af(n,pt,Yi)}function qi(n){return af(n,Mt,Bf)}var Gi=So?function(n){return So.get(n)}:lu;function No(n){for(var o=n.name+"",u=kn[o],f=ke.call(kn,o)?u.length:0;f--;){var h=u[f],y=h.func;if(y==null||y==n)return h.name}return o}function Un(n){var o=ke.call(v,"placeholder")?v:n;return o.placeholder}function re(){var n=v.iteratee||uu;return n=n===uu?uf:n,arguments.length?n(arguments[0],arguments[1]):n}function Lo(n,o){var u=n.__data__;return M0(o)?u[typeof o=="string"?"string":"hash"]:u.map}function zi(n){for(var o=pt(n),u=o.length;u--;){var f=o[u],h=n[f];o[u]=[f,h,Hf(h)]}return o}function wn(n,o){var u=km(n,o);return sf(u)?u:t}function O0(n){var o=ke.call(n,yn),u=n[yn];try{n[yn]=t;var f=!0}catch{}var h=ho.call(n);return f&&(o?n[yn]=u:delete n[yn]),h}var Yi=_i?function(n){return n==null?[]:(n=Ue(n),Yr(_i(n),function(o){return Gl.call(n,o)}))}:fu,Bf=_i?function(n){for(var o=[];n;)Vr(o,Yi(n)),n=mo(n);return o}:fu,_t=Rt;(Ei&&_t(new Ei(new ArrayBuffer(1)))!=Gr||ga&&_t(new ga)!=qe||Si&&_t(Si.resolve())!=ln||Ln&&_t(new Ln)!=Ct||va&&_t(new va)!=xr)&&(_t=function(n){var o=Rt(n),u=o==Vt?n.constructor:t,f=u?Tn(u):"";if(f)switch(f){case ly:return Gr;case fy:return qe;case dy:return ln;case py:return Ct;case hy:return xr}return o});function A0(n,o,u){for(var f=-1,h=u.length;++f<h;){var y=u[f],S=y.size;switch(y.type){case"drop":n+=S;break;case"dropRight":o-=S;break;case"take":o=bt(o,n+S);break;case"takeRight":n=lt(n,o-S);break}}return{start:n,end:o}}function P0(n){var o=n.match(Le);return o?o[1].split(xe):[]}function Wf(n,o,u){o=Qr(o,n);for(var f=-1,h=o.length,y=!1;++f<h;){var S=_r(o[f]);if(!(y=n!=null&&u(n,S)))break;n=n[S]}return y||++f!=h?y:(h=n==null?0:n.length,!!h&&qo(h)&&Dr(S,h)&&(ve(n)||xn(n)))}function D0(n){var o=n.length,u=new n.constructor(o);return o&&typeof n[0]=="string"&&ke.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function Uf(n){return typeof n.constructor=="function"&&!xa(n)?jn(mo(n)):{}}function I0(n,o,u){var f=n.constructor;switch(o){case pn:return Bi(n);case ue:case he:return new f(+n);case Gr:return g0(n,u);case ua:case ca:case la:case fa:case hn:case Pn:case mr:case gn:case vn:return Tf(n,u);case qe:return new f;case yt:case fn:return new f(n);case ir:return v0(n);case Ct:return new f;case dn:return m0(n)}}function F0(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(Ne,`{
|
|
15
|
+
*/gs.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,g="__lodash_placeholder__",m=1,b=2,E=4,x=1,C=2,I=1,P=2,k=4,M=8,j=16,O=32,Y=64,H=128,z=256,te=512,We=30,Te="...",it=800,X=16,Pe=1,ut=2,et=3,He=1/0,nt=9007199254740991,Yt=17976931348623157e292,W=0/0,G=4294967295,de=G-1,le=G>>>1,se=[["ary",H],["bind",I],["bindKey",P],["curry",M],["curryRight",j],["flip",te],["partial",O],["partialRight",Y],["rearg",z]],fe="[object Arguments]",ne="[object Array]",ce="[object AsyncFunction]",ue="[object Boolean]",he="[object Date]",ge="[object DOMException]",K="[object Error]",F="[object Function]",Ye="[object GeneratorFunction]",qe="[object Map]",yt="[object Number]",Va="[object Null]",Vt="[object Object]",ln="[object Promise]",Vs="[object Proxy]",ir="[object RegExp]",Ct="[object Set]",fn="[object String]",dn="[object Symbol]",Ka="[object Undefined]",xr="[object WeakMap]",Ks="[object WeakSet]",pn="[object ArrayBuffer]",Gr="[object DataView]",ua="[object Float32Array]",ca="[object Float64Array]",la="[object Int8Array]",fa="[object Int16Array]",hn="[object Int32Array]",Dn="[object Uint8Array]",mr="[object Uint8ClampedArray]",gn="[object Uint16Array]",vn="[object Uint32Array]",Ja=/\b__p \+= '';/g,Js=/\b(__p \+=) '' \+/g,Xa=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Za=/&(?:amp|lt|gt|quot|#39);/g,da=/[&<>"']/g,Qa=RegExp(Za.source),Xs=RegExp(da.source),Zs=/<%-([\s\S]+?)%>/g,eo=/<%([\s\S]+?)%>/g,to=/<%=([\s\S]+?)%>/g,Qs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ei=/^\w*$/,ti=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w=/[\\^$.*+?()[\]{}|]/g,U=RegExp(w.source),J=/^\s+/,ie=/\s/,Ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Le=/\{\n\/\* \[wrapped with (.+)\] \*/,xe=/,? & /,Ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ht=/[()=,{}\[\]\/\s]/,Ze=/\\(\\)?/g,tt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Kt=/\w*$/,zr=/^[-+]0x[0-9a-f]+$/i,ro=/^0b[01]+$/i,ur=/^\[object .+?Constructor\]$/,Hv=/^0o[0-7]+$/i,qv=/^(?:0|[1-9]\d*)$/,Gv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,no=/($^)/,zv=/['\n\r\u2028\u2029\\]/g,ao="\\ud800-\\udfff",Yv="\\u0300-\\u036f",Vv="\\ufe20-\\ufe2f",Kv="\\u20d0-\\u20ff",sl=Yv+Vv+Kv,il="\\u2700-\\u27bf",ul="a-z\\xdf-\\xf6\\xf8-\\xff",Jv="\\xac\\xb1\\xd7\\xf7",Xv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Zv="\\u2000-\\u206f",Qv=" \\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",cl="A-Z\\xc0-\\xd6\\xd8-\\xde",ll="\\ufe0e\\ufe0f",fl=Jv+Xv+Zv+Qv,ri="['’]",em="["+ao+"]",dl="["+fl+"]",oo="["+sl+"]",pl="\\d+",tm="["+il+"]",hl="["+ul+"]",gl="[^"+ao+fl+pl+il+ul+cl+"]",ni="\\ud83c[\\udffb-\\udfff]",rm="(?:"+oo+"|"+ni+")",vl="[^"+ao+"]",ai="(?:\\ud83c[\\udde6-\\uddff]){2}",oi="[\\ud800-\\udbff][\\udc00-\\udfff]",In="["+cl+"]",ml="\\u200d",yl="(?:"+hl+"|"+gl+")",nm="(?:"+In+"|"+gl+")",bl="(?:"+ri+"(?:d|ll|m|re|s|t|ve))?",_l="(?:"+ri+"(?:D|LL|M|RE|S|T|VE))?",El=rm+"?",Sl="["+ll+"]?",am="(?:"+ml+"(?:"+[vl,ai,oi].join("|")+")"+Sl+El+")*",om="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",sm="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",wl=Sl+El+am,im="(?:"+[tm,ai,oi].join("|")+")"+wl,um="(?:"+[vl+oo+"?",oo,ai,oi,em].join("|")+")",cm=RegExp(ri,"g"),lm=RegExp(oo,"g"),si=RegExp(ni+"(?="+ni+")|"+um+wl,"g"),fm=RegExp([In+"?"+hl+"+"+bl+"(?="+[dl,In,"$"].join("|")+")",nm+"+"+_l+"(?="+[dl,In+yl,"$"].join("|")+")",In+"?"+yl+"+"+bl,In+"+"+_l,sm,om,pl,im].join("|"),"g"),dm=RegExp("["+ml+ao+sl+ll+"]"),pm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,hm=["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"],gm=-1,Ve={};Ve[ua]=Ve[ca]=Ve[la]=Ve[fa]=Ve[hn]=Ve[Dn]=Ve[mr]=Ve[gn]=Ve[vn]=!0,Ve[fe]=Ve[ne]=Ve[pn]=Ve[ue]=Ve[Gr]=Ve[he]=Ve[K]=Ve[F]=Ve[qe]=Ve[yt]=Ve[Vt]=Ve[ir]=Ve[Ct]=Ve[fn]=Ve[xr]=!1;var Ge={};Ge[fe]=Ge[ne]=Ge[pn]=Ge[Gr]=Ge[ue]=Ge[he]=Ge[ua]=Ge[ca]=Ge[la]=Ge[fa]=Ge[hn]=Ge[qe]=Ge[yt]=Ge[Vt]=Ge[ir]=Ge[Ct]=Ge[fn]=Ge[dn]=Ge[Dn]=Ge[mr]=Ge[gn]=Ge[vn]=!0,Ge[K]=Ge[F]=Ge[xr]=!1;var vm={À:"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"},mm={"&":"&","<":"<",">":">",'"':""","'":"'"},ym={"&":"&","<":"<",">":">",""":'"',"'":"'"},bm={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_m=parseFloat,Em=parseInt,Tl=typeof Nr=="object"&&Nr&&Nr.Object===Object&&Nr,Sm=typeof self=="object"&&self&&self.Object===Object&&self,gt=Tl||Sm||Function("return this")(),ii=r&&!r.nodeType&&r,mn=ii&&!0&&e&&!e.nodeType&&e,xl=mn&&mn.exports===ii,ui=xl&&Tl.process,Jt=function(){try{var R=mn&&mn.require&&mn.require("util").types;return R||ui&&ui.binding&&ui.binding("util")}catch{}}(),Cl=Jt&&Jt.isArrayBuffer,Rl=Jt&&Jt.isDate,Ol=Jt&&Jt.isMap,Al=Jt&&Jt.isRegExp,Pl=Jt&&Jt.isSet,Dl=Jt&&Jt.isTypedArray;function kt(R,$,D){switch(D.length){case 0:return R.call($);case 1:return R.call($,D[0]);case 2:return R.call($,D[0],D[1]);case 3:return R.call($,D[0],D[1],D[2])}return R.apply($,D)}function wm(R,$,D,Z){for(var pe=-1,Oe=R==null?0:R.length;++pe<Oe;){var ct=R[pe];$(Z,ct,D(ct),R)}return Z}function Xt(R,$){for(var D=-1,Z=R==null?0:R.length;++D<Z&&$(R[D],D,R)!==!1;);return R}function Tm(R,$){for(var D=R==null?0:R.length;D--&&$(R[D],D,R)!==!1;);return R}function Il(R,$){for(var D=-1,Z=R==null?0:R.length;++D<Z;)if(!$(R[D],D,R))return!1;return!0}function Yr(R,$){for(var D=-1,Z=R==null?0:R.length,pe=0,Oe=[];++D<Z;){var ct=R[D];$(ct,D,R)&&(Oe[pe++]=ct)}return Oe}function so(R,$){var D=R==null?0:R.length;return!!D&&Fn(R,$,0)>-1}function ci(R,$,D){for(var Z=-1,pe=R==null?0:R.length;++Z<pe;)if(D($,R[Z]))return!0;return!1}function Je(R,$){for(var D=-1,Z=R==null?0:R.length,pe=Array(Z);++D<Z;)pe[D]=$(R[D],D,R);return pe}function Vr(R,$){for(var D=-1,Z=$.length,pe=R.length;++D<Z;)R[pe+D]=$[D];return R}function li(R,$,D,Z){var pe=-1,Oe=R==null?0:R.length;for(Z&&Oe&&(D=R[++pe]);++pe<Oe;)D=$(D,R[pe],pe,R);return D}function xm(R,$,D,Z){var pe=R==null?0:R.length;for(Z&&pe&&(D=R[--pe]);pe--;)D=$(D,R[pe],pe,R);return D}function fi(R,$){for(var D=-1,Z=R==null?0:R.length;++D<Z;)if($(R[D],D,R))return!0;return!1}var Cm=di("length");function Rm(R){return R.split("")}function Om(R){return R.match(Ee)||[]}function Fl(R,$,D){var Z;return D(R,function(pe,Oe,ct){if($(pe,Oe,ct))return Z=Oe,!1}),Z}function io(R,$,D,Z){for(var pe=R.length,Oe=D+(Z?1:-1);Z?Oe--:++Oe<pe;)if($(R[Oe],Oe,R))return Oe;return-1}function Fn(R,$,D){return $===$?Bm(R,$,D):io(R,$l,D)}function Am(R,$,D,Z){for(var pe=D-1,Oe=R.length;++pe<Oe;)if(Z(R[pe],$))return pe;return-1}function $l(R){return R!==R}function Ml(R,$){var D=R==null?0:R.length;return D?hi(R,$)/D:W}function di(R){return function($){return $==null?t:$[R]}}function pi(R){return function($){return R==null?t:R[$]}}function Nl(R,$,D,Z,pe){return pe(R,function(Oe,ct,Ue){D=Z?(Z=!1,Oe):$(D,Oe,ct,Ue)}),D}function Pm(R,$){var D=R.length;for(R.sort($);D--;)R[D]=R[D].value;return R}function hi(R,$){for(var D,Z=-1,pe=R.length;++Z<pe;){var Oe=$(R[Z]);Oe!==t&&(D=D===t?Oe:D+Oe)}return D}function gi(R,$){for(var D=-1,Z=Array(R);++D<R;)Z[D]=$(D);return Z}function Dm(R,$){return Je($,function(D){return[D,R[D]]})}function Ll(R){return R&&R.slice(0,Wl(R)+1).replace(J,"")}function Bt(R){return function($){return R($)}}function vi(R,$){return Je($,function(D){return R[D]})}function pa(R,$){return R.has($)}function jl(R,$){for(var D=-1,Z=R.length;++D<Z&&Fn($,R[D],0)>-1;);return D}function kl(R,$){for(var D=R.length;D--&&Fn($,R[D],0)>-1;);return D}function Im(R,$){for(var D=R.length,Z=0;D--;)R[D]===$&&++Z;return Z}var Fm=pi(vm),$m=pi(mm);function Mm(R){return"\\"+bm[R]}function Nm(R,$){return R==null?t:R[$]}function $n(R){return dm.test(R)}function Lm(R){return pm.test(R)}function jm(R){for(var $,D=[];!($=R.next()).done;)D.push($.value);return D}function mi(R){var $=-1,D=Array(R.size);return R.forEach(function(Z,pe){D[++$]=[pe,Z]}),D}function Bl(R,$){return function(D){return R($(D))}}function Kr(R,$){for(var D=-1,Z=R.length,pe=0,Oe=[];++D<Z;){var ct=R[D];(ct===$||ct===g)&&(R[D]=g,Oe[pe++]=D)}return Oe}function uo(R){var $=-1,D=Array(R.size);return R.forEach(function(Z){D[++$]=Z}),D}function km(R){var $=-1,D=Array(R.size);return R.forEach(function(Z){D[++$]=[Z,Z]}),D}function Bm(R,$,D){for(var Z=D-1,pe=R.length;++Z<pe;)if(R[Z]===$)return Z;return-1}function Wm(R,$,D){for(var Z=D+1;Z--;)if(R[Z]===$)return Z;return Z}function Mn(R){return $n(R)?Hm(R):Cm(R)}function cr(R){return $n(R)?qm(R):Rm(R)}function Wl(R){for(var $=R.length;$--&&ie.test(R.charAt($)););return $}var Um=pi(ym);function Hm(R){for(var $=si.lastIndex=0;si.test(R);)++$;return $}function qm(R){return R.match(si)||[]}function Gm(R){return R.match(fm)||[]}var zm=function R($){$=$==null?gt:Nn.defaults(gt.Object(),$,Nn.pick(gt,hm));var D=$.Array,Z=$.Date,pe=$.Error,Oe=$.Function,ct=$.Math,Ue=$.Object,yi=$.RegExp,Ym=$.String,Zt=$.TypeError,co=D.prototype,Vm=Oe.prototype,Ln=Ue.prototype,lo=$["__core-js_shared__"],fo=Vm.toString,je=Ln.hasOwnProperty,Km=0,Ul=function(){var n=/[^.]+$/.exec(lo&&lo.keys&&lo.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),po=Ln.toString,Jm=fo.call(Ue),Xm=gt._,Zm=yi("^"+fo.call(je).replace(w,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ho=xl?$.Buffer:t,Jr=$.Symbol,go=$.Uint8Array,Hl=ho?ho.allocUnsafe:t,vo=Bl(Ue.getPrototypeOf,Ue),ql=Ue.create,Gl=Ln.propertyIsEnumerable,mo=co.splice,zl=Jr?Jr.isConcatSpreadable:t,ha=Jr?Jr.iterator:t,yn=Jr?Jr.toStringTag:t,yo=function(){try{var n=wn(Ue,"defineProperty");return n({},"",{}),n}catch{}}(),Qm=$.clearTimeout!==gt.clearTimeout&&$.clearTimeout,ey=Z&&Z.now!==gt.Date.now&&Z.now,ty=$.setTimeout!==gt.setTimeout&&$.setTimeout,bo=ct.ceil,_o=ct.floor,bi=Ue.getOwnPropertySymbols,ry=ho?ho.isBuffer:t,Yl=$.isFinite,ny=co.join,ay=Bl(Ue.keys,Ue),lt=ct.max,bt=ct.min,oy=Z.now,sy=$.parseInt,Vl=ct.random,iy=co.reverse,_i=wn($,"DataView"),ga=wn($,"Map"),Ei=wn($,"Promise"),jn=wn($,"Set"),va=wn($,"WeakMap"),ma=wn(Ue,"create"),Eo=va&&new va,kn={},uy=Tn(_i),cy=Tn(ga),ly=Tn(Ei),fy=Tn(jn),dy=Tn(va),So=Jr?Jr.prototype:t,ya=So?So.valueOf:t,Kl=So?So.toString:t;function v(n){if(rt(n)&&!ve(n)&&!(n instanceof we)){if(n instanceof Qt)return n;if(je.call(n,"__wrapped__"))return Xf(n)}return new Qt(n)}var Bn=function(){function n(){}return function(o){if(!Qe(o))return{};if(ql)return ql(o);n.prototype=o;var u=new n;return n.prototype=t,u}}();function wo(){}function Qt(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=t}v.templateSettings={escape:Zs,evaluate:eo,interpolate:to,variable:"",imports:{_:v}},v.prototype=wo.prototype,v.prototype.constructor=v,Qt.prototype=Bn(wo.prototype),Qt.prototype.constructor=Qt;function we(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=G,this.__views__=[]}function py(){var n=new we(this.__wrapped__);return n.__actions__=Ft(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Ft(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Ft(this.__views__),n}function hy(){if(this.__filtered__){var n=new we(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function gy(){var n=this.__wrapped__.value(),o=this.__dir__,u=ve(n),f=o<0,h=u?n.length:0,y=R0(0,h,this.__views__),S=y.start,T=y.end,A=T-S,N=f?T:S-1,L=this.__iteratees__,B=L.length,V=0,ee=bt(A,this.__takeCount__);if(!u||!f&&h==A&&ee==A)return _f(n,this.__actions__);var ae=[];e:for(;A--&&V<ee;){N+=o;for(var be=-1,oe=n[N];++be<B;){var Se=L[be],Ce=Se.iteratee,Ht=Se.type,At=Ce(oe);if(Ht==ut)oe=At;else if(!At){if(Ht==Pe)continue e;break e}}ae[V++]=oe}return ae}we.prototype=Bn(wo.prototype),we.prototype.constructor=we;function bn(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 vy(){this.__data__=ma?ma(null):{},this.size=0}function my(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function yy(n){var o=this.__data__;if(ma){var u=o[n];return u===d?t:u}return je.call(o,n)?o[n]:t}function by(n){var o=this.__data__;return ma?o[n]!==t:je.call(o,n)}function _y(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=ma&&o===t?d:o,this}bn.prototype.clear=vy,bn.prototype.delete=my,bn.prototype.get=yy,bn.prototype.has=by,bn.prototype.set=_y;function Cr(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 Ey(){this.__data__=[],this.size=0}function Sy(n){var o=this.__data__,u=To(o,n);if(u<0)return!1;var f=o.length-1;return u==f?o.pop():mo.call(o,u,1),--this.size,!0}function wy(n){var o=this.__data__,u=To(o,n);return u<0?t:o[u][1]}function Ty(n){return To(this.__data__,n)>-1}function xy(n,o){var u=this.__data__,f=To(u,n);return f<0?(++this.size,u.push([n,o])):u[f][1]=o,this}Cr.prototype.clear=Ey,Cr.prototype.delete=Sy,Cr.prototype.get=wy,Cr.prototype.has=Ty,Cr.prototype.set=xy;function Rr(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 Cy(){this.size=0,this.__data__={hash:new bn,map:new(ga||Cr),string:new bn}}function Ry(n){var o=No(this,n).delete(n);return this.size-=o?1:0,o}function Oy(n){return No(this,n).get(n)}function Ay(n){return No(this,n).has(n)}function Py(n,o){var u=No(this,n),f=u.size;return u.set(n,o),this.size+=u.size==f?0:1,this}Rr.prototype.clear=Cy,Rr.prototype.delete=Ry,Rr.prototype.get=Oy,Rr.prototype.has=Ay,Rr.prototype.set=Py;function _n(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new Rr;++o<u;)this.add(n[o])}function Dy(n){return this.__data__.set(n,d),this}function Iy(n){return this.__data__.has(n)}_n.prototype.add=_n.prototype.push=Dy,_n.prototype.has=Iy;function lr(n){var o=this.__data__=new Cr(n);this.size=o.size}function Fy(){this.__data__=new Cr,this.size=0}function $y(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function My(n){return this.__data__.get(n)}function Ny(n){return this.__data__.has(n)}function Ly(n,o){var u=this.__data__;if(u instanceof Cr){var f=u.__data__;if(!ga||f.length<s-1)return f.push([n,o]),this.size=++u.size,this;u=this.__data__=new Rr(f)}return u.set(n,o),this.size=u.size,this}lr.prototype.clear=Fy,lr.prototype.delete=$y,lr.prototype.get=My,lr.prototype.has=Ny,lr.prototype.set=Ly;function Jl(n,o){var u=ve(n),f=!u&&xn(n),h=!u&&!f&&tn(n),y=!u&&!f&&!h&&qn(n),S=u||f||h||y,T=S?gi(n.length,Ym):[],A=T.length;for(var N in n)(o||je.call(n,N))&&!(S&&(N=="length"||h&&(N=="offset"||N=="parent")||y&&(N=="buffer"||N=="byteLength"||N=="byteOffset")||Dr(N,A)))&&T.push(N);return T}function Xl(n){var o=n.length;return o?n[Ii(0,o-1)]:t}function jy(n,o){return Lo(Ft(n),En(o,0,n.length))}function ky(n){return Lo(Ft(n))}function Si(n,o,u){(u!==t&&!fr(n[o],u)||u===t&&!(o in n))&&Or(n,o,u)}function ba(n,o,u){var f=n[o];(!(je.call(n,o)&&fr(f,u))||u===t&&!(o in n))&&Or(n,o,u)}function To(n,o){for(var u=n.length;u--;)if(fr(n[u][0],o))return u;return-1}function By(n,o,u,f){return Xr(n,function(h,y,S){o(f,h,u(h),S)}),f}function Zl(n,o){return n&&br(o,pt(o),n)}function Wy(n,o){return n&&br(o,Mt(o),n)}function Or(n,o,u){o=="__proto__"&&yo?yo(n,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[o]=u}function wi(n,o){for(var u=-1,f=o.length,h=D(f),y=n==null;++u<f;)h[u]=y?t:nu(n,o[u]);return h}function En(n,o,u){return n===n&&(u!==t&&(n=n<=u?n:u),o!==t&&(n=n>=o?n:o)),n}function er(n,o,u,f,h,y){var S,T=o&m,A=o&b,N=o&E;if(u&&(S=h?u(n,f,h,y):u(n)),S!==t)return S;if(!Qe(n))return n;var L=ve(n);if(L){if(S=A0(n),!T)return Ft(n,S)}else{var B=_t(n),V=B==F||B==Ye;if(tn(n))return wf(n,T);if(B==Vt||B==fe||V&&!h){if(S=A||V?{}:Uf(n),!T)return A?y0(n,Wy(S,n)):m0(n,Zl(S,n))}else{if(!Ge[B])return h?n:{};S=P0(n,B,T)}}y||(y=new lr);var ee=y.get(n);if(ee)return ee;y.set(n,S),md(n)?n.forEach(function(oe){S.add(er(oe,o,u,oe,n,y))}):gd(n)&&n.forEach(function(oe,Se){S.set(Se,er(oe,o,u,Se,n,y))});var ae=N?A?Hi:Ui:A?Mt:pt,be=L?t:ae(n);return Xt(be||n,function(oe,Se){be&&(Se=oe,oe=n[Se]),ba(S,Se,er(oe,o,u,Se,n,y))}),S}function Uy(n){var o=pt(n);return function(u){return Ql(u,n,o)}}function Ql(n,o,u){var f=u.length;if(n==null)return!f;for(n=Ue(n);f--;){var h=u[f],y=o[h],S=n[h];if(S===t&&!(h in n)||!y(S))return!1}return!0}function ef(n,o,u){if(typeof n!="function")throw new Zt(c);return Ca(function(){n.apply(t,u)},o)}function _a(n,o,u,f){var h=-1,y=so,S=!0,T=n.length,A=[],N=o.length;if(!T)return A;u&&(o=Je(o,Bt(u))),f?(y=ci,S=!1):o.length>=s&&(y=pa,S=!1,o=new _n(o));e:for(;++h<T;){var L=n[h],B=u==null?L:u(L);if(L=f||L!==0?L:0,S&&B===B){for(var V=N;V--;)if(o[V]===B)continue e;A.push(L)}else y(o,B,f)||A.push(L)}return A}var Xr=Of(yr),tf=Of(xi,!0);function Hy(n,o){var u=!0;return Xr(n,function(f,h,y){return u=!!o(f,h,y),u}),u}function xo(n,o,u){for(var f=-1,h=n.length;++f<h;){var y=n[f],S=o(y);if(S!=null&&(T===t?S===S&&!Ut(S):u(S,T)))var T=S,A=y}return A}function qy(n,o,u,f){var h=n.length;for(u=me(u),u<0&&(u=-u>h?0:h+u),f=f===t||f>h?h:me(f),f<0&&(f+=h),f=u>f?0:bd(f);u<f;)n[u++]=o;return n}function rf(n,o){var u=[];return Xr(n,function(f,h,y){o(f,h,y)&&u.push(f)}),u}function vt(n,o,u,f,h){var y=-1,S=n.length;for(u||(u=I0),h||(h=[]);++y<S;){var T=n[y];o>0&&u(T)?o>1?vt(T,o-1,u,f,h):Vr(h,T):f||(h[h.length]=T)}return h}var Ti=Af(),nf=Af(!0);function yr(n,o){return n&&Ti(n,o,pt)}function xi(n,o){return n&&nf(n,o,pt)}function Co(n,o){return Yr(o,function(u){return Ir(n[u])})}function Sn(n,o){o=Qr(o,n);for(var u=0,f=o.length;n!=null&&u<f;)n=n[_r(o[u++])];return u&&u==f?n:t}function af(n,o,u){var f=o(n);return ve(n)?f:Vr(f,u(n))}function Rt(n){return n==null?n===t?Ka:Va:yn&&yn in Ue(n)?C0(n):k0(n)}function Ci(n,o){return n>o}function Gy(n,o){return n!=null&&je.call(n,o)}function zy(n,o){return n!=null&&o in Ue(n)}function Yy(n,o,u){return n>=bt(o,u)&&n<lt(o,u)}function Ri(n,o,u){for(var f=u?ci:so,h=n[0].length,y=n.length,S=y,T=D(y),A=1/0,N=[];S--;){var L=n[S];S&&o&&(L=Je(L,Bt(o))),A=bt(L.length,A),T[S]=!u&&(o||h>=120&&L.length>=120)?new _n(S&&L):t}L=n[0];var B=-1,V=T[0];e:for(;++B<h&&N.length<A;){var ee=L[B],ae=o?o(ee):ee;if(ee=u||ee!==0?ee:0,!(V?pa(V,ae):f(N,ae,u))){for(S=y;--S;){var be=T[S];if(!(be?pa(be,ae):f(n[S],ae,u)))continue e}V&&V.push(ae),N.push(ee)}}return N}function Vy(n,o,u,f){return yr(n,function(h,y,S){o(f,u(h),y,S)}),f}function Ea(n,o,u){o=Qr(o,n),n=zf(n,o);var f=n==null?n:n[_r(rr(o))];return f==null?t:kt(f,n,u)}function of(n){return rt(n)&&Rt(n)==fe}function Ky(n){return rt(n)&&Rt(n)==pn}function Jy(n){return rt(n)&&Rt(n)==he}function Sa(n,o,u,f,h){return n===o?!0:n==null||o==null||!rt(n)&&!rt(o)?n!==n&&o!==o:Xy(n,o,u,f,Sa,h)}function Xy(n,o,u,f,h,y){var S=ve(n),T=ve(o),A=S?ne:_t(n),N=T?ne:_t(o);A=A==fe?Vt:A,N=N==fe?Vt:N;var L=A==Vt,B=N==Vt,V=A==N;if(V&&tn(n)){if(!tn(o))return!1;S=!0,L=!1}if(V&&!L)return y||(y=new lr),S||qn(n)?kf(n,o,u,f,h,y):T0(n,o,A,u,f,h,y);if(!(u&x)){var ee=L&&je.call(n,"__wrapped__"),ae=B&&je.call(o,"__wrapped__");if(ee||ae){var be=ee?n.value():n,oe=ae?o.value():o;return y||(y=new lr),h(be,oe,u,f,y)}}return V?(y||(y=new lr),x0(n,o,u,f,h,y)):!1}function Zy(n){return rt(n)&&_t(n)==qe}function Oi(n,o,u,f){var h=u.length,y=h,S=!f;if(n==null)return!y;for(n=Ue(n);h--;){var T=u[h];if(S&&T[2]?T[1]!==n[T[0]]:!(T[0]in n))return!1}for(;++h<y;){T=u[h];var A=T[0],N=n[A],L=T[1];if(S&&T[2]){if(N===t&&!(A in n))return!1}else{var B=new lr;if(f)var V=f(N,L,A,n,o,B);if(!(V===t?Sa(L,N,x|C,f,B):V))return!1}}return!0}function sf(n){if(!Qe(n)||$0(n))return!1;var o=Ir(n)?Zm:ur;return o.test(Tn(n))}function Qy(n){return rt(n)&&Rt(n)==ir}function e0(n){return rt(n)&&_t(n)==Ct}function t0(n){return rt(n)&&Ho(n.length)&&!!Ve[Rt(n)]}function uf(n){return typeof n=="function"?n:n==null?Nt:typeof n=="object"?ve(n)?ff(n[0],n[1]):lf(n):Pd(n)}function Ai(n){if(!xa(n))return ay(n);var o=[];for(var u in Ue(n))je.call(n,u)&&u!="constructor"&&o.push(u);return o}function r0(n){if(!Qe(n))return j0(n);var o=xa(n),u=[];for(var f in n)f=="constructor"&&(o||!je.call(n,f))||u.push(f);return u}function Pi(n,o){return n<o}function cf(n,o){var u=-1,f=$t(n)?D(n.length):[];return Xr(n,function(h,y,S){f[++u]=o(h,y,S)}),f}function lf(n){var o=Gi(n);return o.length==1&&o[0][2]?qf(o[0][0],o[0][1]):function(u){return u===n||Oi(u,n,o)}}function ff(n,o){return Yi(n)&&Hf(o)?qf(_r(n),o):function(u){var f=nu(u,n);return f===t&&f===o?au(u,n):Sa(o,f,x|C)}}function Ro(n,o,u,f,h){n!==o&&Ti(o,function(y,S){if(h||(h=new lr),Qe(y))n0(n,o,S,u,Ro,f,h);else{var T=f?f(Ki(n,S),y,S+"",n,o,h):t;T===t&&(T=y),Si(n,S,T)}},Mt)}function n0(n,o,u,f,h,y,S){var T=Ki(n,u),A=Ki(o,u),N=S.get(A);if(N){Si(n,u,N);return}var L=y?y(T,A,u+"",n,o,S):t,B=L===t;if(B){var V=ve(A),ee=!V&&tn(A),ae=!V&&!ee&&qn(A);L=A,V||ee||ae?ve(T)?L=T:at(T)?L=Ft(T):ee?(B=!1,L=wf(A,!0)):ae?(B=!1,L=Tf(A,!0)):L=[]:Ra(A)||xn(A)?(L=T,xn(T)?L=_d(T):(!Qe(T)||Ir(T))&&(L=Uf(A))):B=!1}B&&(S.set(A,L),h(L,A,f,y,S),S.delete(A)),Si(n,u,L)}function df(n,o){var u=n.length;if(u)return o+=o<0?u:0,Dr(o,u)?n[o]:t}function pf(n,o,u){o.length?o=Je(o,function(y){return ve(y)?function(S){return Sn(S,y.length===1?y[0]:y)}:y}):o=[Nt];var f=-1;o=Je(o,Bt(re()));var h=cf(n,function(y,S,T){var A=Je(o,function(N){return N(y)});return{criteria:A,index:++f,value:y}});return Pm(h,function(y,S){return v0(y,S,u)})}function a0(n,o){return hf(n,o,function(u,f){return au(n,f)})}function hf(n,o,u){for(var f=-1,h=o.length,y={};++f<h;){var S=o[f],T=Sn(n,S);u(T,S)&&wa(y,Qr(S,n),T)}return y}function o0(n){return function(o){return Sn(o,n)}}function Di(n,o,u,f){var h=f?Am:Fn,y=-1,S=o.length,T=n;for(n===o&&(o=Ft(o)),u&&(T=Je(n,Bt(u)));++y<S;)for(var A=0,N=o[y],L=u?u(N):N;(A=h(T,L,A,f))>-1;)T!==n&&mo.call(T,A,1),mo.call(n,A,1);return n}function gf(n,o){for(var u=n?o.length:0,f=u-1;u--;){var h=o[u];if(u==f||h!==y){var y=h;Dr(h)?mo.call(n,h,1):Mi(n,h)}}return n}function Ii(n,o){return n+_o(Vl()*(o-n+1))}function s0(n,o,u,f){for(var h=-1,y=lt(bo((o-n)/(u||1)),0),S=D(y);y--;)S[f?y:++h]=n,n+=u;return S}function Fi(n,o){var u="";if(!n||o<1||o>nt)return u;do o%2&&(u+=n),o=_o(o/2),o&&(n+=n);while(o);return u}function _e(n,o){return Ji(Gf(n,o,Nt),n+"")}function i0(n){return Xl(Gn(n))}function u0(n,o){var u=Gn(n);return Lo(u,En(o,0,u.length))}function wa(n,o,u,f){if(!Qe(n))return n;o=Qr(o,n);for(var h=-1,y=o.length,S=y-1,T=n;T!=null&&++h<y;){var A=_r(o[h]),N=u;if(A==="__proto__"||A==="constructor"||A==="prototype")return n;if(h!=S){var L=T[A];N=f?f(L,A,T):t,N===t&&(N=Qe(L)?L:Dr(o[h+1])?[]:{})}ba(T,A,N),T=T[A]}return n}var vf=Eo?function(n,o){return Eo.set(n,o),n}:Nt,c0=yo?function(n,o){return yo(n,"toString",{configurable:!0,enumerable:!1,value:su(o),writable:!0})}:Nt;function l0(n){return Lo(Gn(n))}function tr(n,o,u){var f=-1,h=n.length;o<0&&(o=-o>h?0:h+o),u=u>h?h:u,u<0&&(u+=h),h=o>u?0:u-o>>>0,o>>>=0;for(var y=D(h);++f<h;)y[f]=n[f+o];return y}function f0(n,o){var u;return Xr(n,function(f,h,y){return u=o(f,h,y),!u}),!!u}function Oo(n,o,u){var f=0,h=n==null?f:n.length;if(typeof o=="number"&&o===o&&h<=le){for(;f<h;){var y=f+h>>>1,S=n[y];S!==null&&!Ut(S)&&(u?S<=o:S<o)?f=y+1:h=y}return h}return $i(n,o,Nt,u)}function $i(n,o,u,f){var h=0,y=n==null?0:n.length;if(y===0)return 0;o=u(o);for(var S=o!==o,T=o===null,A=Ut(o),N=o===t;h<y;){var L=_o((h+y)/2),B=u(n[L]),V=B!==t,ee=B===null,ae=B===B,be=Ut(B);if(S)var oe=f||ae;else N?oe=ae&&(f||V):T?oe=ae&&V&&(f||!ee):A?oe=ae&&V&&!ee&&(f||!be):ee||be?oe=!1:oe=f?B<=o:B<o;oe?h=L+1:y=L}return bt(y,de)}function mf(n,o){for(var u=-1,f=n.length,h=0,y=[];++u<f;){var S=n[u],T=o?o(S):S;if(!u||!fr(T,A)){var A=T;y[h++]=S===0?0:S}}return y}function yf(n){return typeof n=="number"?n:Ut(n)?W:+n}function Wt(n){if(typeof n=="string")return n;if(ve(n))return Je(n,Wt)+"";if(Ut(n))return Kl?Kl.call(n):"";var o=n+"";return o=="0"&&1/n==-He?"-0":o}function Zr(n,o,u){var f=-1,h=so,y=n.length,S=!0,T=[],A=T;if(u)S=!1,h=ci;else if(y>=s){var N=o?null:S0(n);if(N)return uo(N);S=!1,h=pa,A=new _n}else A=o?[]:T;e:for(;++f<y;){var L=n[f],B=o?o(L):L;if(L=u||L!==0?L:0,S&&B===B){for(var V=A.length;V--;)if(A[V]===B)continue e;o&&A.push(B),T.push(L)}else h(A,B,u)||(A!==T&&A.push(B),T.push(L))}return T}function Mi(n,o){return o=Qr(o,n),n=zf(n,o),n==null||delete n[_r(rr(o))]}function bf(n,o,u,f){return wa(n,o,u(Sn(n,o)),f)}function Ao(n,o,u,f){for(var h=n.length,y=f?h:-1;(f?y--:++y<h)&&o(n[y],y,n););return u?tr(n,f?0:y,f?y+1:h):tr(n,f?y+1:0,f?h:y)}function _f(n,o){var u=n;return u instanceof we&&(u=u.value()),li(o,function(f,h){return h.func.apply(h.thisArg,Vr([f],h.args))},u)}function Ni(n,o,u){var f=n.length;if(f<2)return f?Zr(n[0]):[];for(var h=-1,y=D(f);++h<f;)for(var S=n[h],T=-1;++T<f;)T!=h&&(y[h]=_a(y[h]||S,n[T],o,u));return Zr(vt(y,1),o,u)}function Ef(n,o,u){for(var f=-1,h=n.length,y=o.length,S={};++f<h;){var T=f<y?o[f]:t;u(S,n[f],T)}return S}function Li(n){return at(n)?n:[]}function ji(n){return typeof n=="function"?n:Nt}function Qr(n,o){return ve(n)?n:Yi(n,o)?[n]:Jf(De(n))}var d0=_e;function en(n,o,u){var f=n.length;return u=u===t?f:u,!o&&u>=f?n:tr(n,o,u)}var Sf=Qm||function(n){return gt.clearTimeout(n)};function wf(n,o){if(o)return n.slice();var u=n.length,f=Hl?Hl(u):new n.constructor(u);return n.copy(f),f}function ki(n){var o=new n.constructor(n.byteLength);return new go(o).set(new go(n)),o}function p0(n,o){var u=o?ki(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function h0(n){var o=new n.constructor(n.source,Kt.exec(n));return o.lastIndex=n.lastIndex,o}function g0(n){return ya?Ue(ya.call(n)):{}}function Tf(n,o){var u=o?ki(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function xf(n,o){if(n!==o){var u=n!==t,f=n===null,h=n===n,y=Ut(n),S=o!==t,T=o===null,A=o===o,N=Ut(o);if(!T&&!N&&!y&&n>o||y&&S&&A&&!T&&!N||f&&S&&A||!u&&A||!h)return 1;if(!f&&!y&&!N&&n<o||N&&u&&h&&!f&&!y||T&&u&&h||!S&&h||!A)return-1}return 0}function v0(n,o,u){for(var f=-1,h=n.criteria,y=o.criteria,S=h.length,T=u.length;++f<S;){var A=xf(h[f],y[f]);if(A){if(f>=T)return A;var N=u[f];return A*(N=="desc"?-1:1)}}return n.index-o.index}function Cf(n,o,u,f){for(var h=-1,y=n.length,S=u.length,T=-1,A=o.length,N=lt(y-S,0),L=D(A+N),B=!f;++T<A;)L[T]=o[T];for(;++h<S;)(B||h<y)&&(L[u[h]]=n[h]);for(;N--;)L[T++]=n[h++];return L}function Rf(n,o,u,f){for(var h=-1,y=n.length,S=-1,T=u.length,A=-1,N=o.length,L=lt(y-T,0),B=D(L+N),V=!f;++h<L;)B[h]=n[h];for(var ee=h;++A<N;)B[ee+A]=o[A];for(;++S<T;)(V||h<y)&&(B[ee+u[S]]=n[h++]);return B}function Ft(n,o){var u=-1,f=n.length;for(o||(o=D(f));++u<f;)o[u]=n[u];return o}function br(n,o,u,f){var h=!u;u||(u={});for(var y=-1,S=o.length;++y<S;){var T=o[y],A=f?f(u[T],n[T],T,u,n):t;A===t&&(A=n[T]),h?Or(u,T,A):ba(u,T,A)}return u}function m0(n,o){return br(n,zi(n),o)}function y0(n,o){return br(n,Bf(n),o)}function Po(n,o){return function(u,f){var h=ve(u)?wm:By,y=o?o():{};return h(u,n,re(f,2),y)}}function Wn(n){return _e(function(o,u){var f=-1,h=u.length,y=h>1?u[h-1]:t,S=h>2?u[2]:t;for(y=n.length>3&&typeof y=="function"?(h--,y):t,S&&Ot(u[0],u[1],S)&&(y=h<3?t:y,h=1),o=Ue(o);++f<h;){var T=u[f];T&&n(o,T,f,y)}return o})}function Of(n,o){return function(u,f){if(u==null)return u;if(!$t(u))return n(u,f);for(var h=u.length,y=o?h:-1,S=Ue(u);(o?y--:++y<h)&&f(S[y],y,S)!==!1;);return u}}function Af(n){return function(o,u,f){for(var h=-1,y=Ue(o),S=f(o),T=S.length;T--;){var A=S[n?T:++h];if(u(y[A],A,y)===!1)break}return o}}function b0(n,o,u){var f=o&I,h=Ta(n);function y(){var S=this&&this!==gt&&this instanceof y?h:n;return S.apply(f?u:this,arguments)}return y}function Pf(n){return function(o){o=De(o);var u=$n(o)?cr(o):t,f=u?u[0]:o.charAt(0),h=u?en(u,1).join(""):o.slice(1);return f[n]()+h}}function Un(n){return function(o){return li(Od(Rd(o).replace(cm,"")),n,"")}}function Ta(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=Bn(n.prototype),f=n.apply(u,o);return Qe(f)?f:u}}function _0(n,o,u){var f=Ta(n);function h(){for(var y=arguments.length,S=D(y),T=y,A=Hn(h);T--;)S[T]=arguments[T];var N=y<3&&S[0]!==A&&S[y-1]!==A?[]:Kr(S,A);if(y-=N.length,y<u)return Mf(n,o,Do,h.placeholder,t,S,N,t,t,u-y);var L=this&&this!==gt&&this instanceof h?f:n;return kt(L,this,S)}return h}function Df(n){return function(o,u,f){var h=Ue(o);if(!$t(o)){var y=re(u,3);o=pt(o),u=function(T){return y(h[T],T,h)}}var S=n(o,u,f);return S>-1?h[y?o[S]:S]:t}}function If(n){return Pr(function(o){var u=o.length,f=u,h=Qt.prototype.thru;for(n&&o.reverse();f--;){var y=o[f];if(typeof y!="function")throw new Zt(c);if(h&&!S&&Mo(y)=="wrapper")var S=new Qt([],!0)}for(f=S?f:u;++f<u;){y=o[f];var T=Mo(y),A=T=="wrapper"?qi(y):t;A&&Vi(A[0])&&A[1]==(H|M|O|z)&&!A[4].length&&A[9]==1?S=S[Mo(A[0])].apply(S,A[3]):S=y.length==1&&Vi(y)?S[T]():S.thru(y)}return function(){var N=arguments,L=N[0];if(S&&N.length==1&&ve(L))return S.plant(L).value();for(var B=0,V=u?o[B].apply(this,N):L;++B<u;)V=o[B].call(this,V);return V}})}function Do(n,o,u,f,h,y,S,T,A,N){var L=o&H,B=o&I,V=o&P,ee=o&(M|j),ae=o&te,be=V?t:Ta(n);function oe(){for(var Se=arguments.length,Ce=D(Se),Ht=Se;Ht--;)Ce[Ht]=arguments[Ht];if(ee)var At=Hn(oe),qt=Im(Ce,At);if(f&&(Ce=Cf(Ce,f,h,ee)),y&&(Ce=Rf(Ce,y,S,ee)),Se-=qt,ee&&Se<N){var ot=Kr(Ce,At);return Mf(n,o,Do,oe.placeholder,u,Ce,ot,T,A,N-Se)}var dr=B?u:this,$r=V?dr[n]:n;return Se=Ce.length,T?Ce=B0(Ce,T):ae&&Se>1&&Ce.reverse(),L&&A<Se&&(Ce.length=A),this&&this!==gt&&this instanceof oe&&($r=be||Ta($r)),$r.apply(dr,Ce)}return oe}function Ff(n,o){return function(u,f){return Vy(u,n,o(f),{})}}function Io(n,o){return function(u,f){var h;if(u===t&&f===t)return o;if(u!==t&&(h=u),f!==t){if(h===t)return f;typeof u=="string"||typeof f=="string"?(u=Wt(u),f=Wt(f)):(u=yf(u),f=yf(f)),h=n(u,f)}return h}}function Bi(n){return Pr(function(o){return o=Je(o,Bt(re())),_e(function(u){var f=this;return n(o,function(h){return kt(h,f,u)})})})}function Fo(n,o){o=o===t?" ":Wt(o);var u=o.length;if(u<2)return u?Fi(o,n):o;var f=Fi(o,bo(n/Mn(o)));return $n(o)?en(cr(f),0,n).join(""):f.slice(0,n)}function E0(n,o,u,f){var h=o&I,y=Ta(n);function S(){for(var T=-1,A=arguments.length,N=-1,L=f.length,B=D(L+A),V=this&&this!==gt&&this instanceof S?y:n;++N<L;)B[N]=f[N];for(;A--;)B[N++]=arguments[++T];return kt(V,h?u:this,B)}return S}function $f(n){return function(o,u,f){return f&&typeof f!="number"&&Ot(o,u,f)&&(u=f=t),o=Fr(o),u===t?(u=o,o=0):u=Fr(u),f=f===t?o<u?1:-1:Fr(f),s0(o,u,f,n)}}function $o(n){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=nr(o),u=nr(u)),n(o,u)}}function Mf(n,o,u,f,h,y,S,T,A,N){var L=o&M,B=L?S:t,V=L?t:S,ee=L?y:t,ae=L?t:y;o|=L?O:Y,o&=~(L?Y:O),o&k||(o&=~(I|P));var be=[n,o,h,ee,B,ae,V,T,A,N],oe=u.apply(t,be);return Vi(n)&&Yf(oe,be),oe.placeholder=f,Vf(oe,n,o)}function Wi(n){var o=ct[n];return function(u,f){if(u=nr(u),f=f==null?0:bt(me(f),292),f&&Yl(u)){var h=(De(u)+"e").split("e"),y=o(h[0]+"e"+(+h[1]+f));return h=(De(y)+"e").split("e"),+(h[0]+"e"+(+h[1]-f))}return o(u)}}var S0=jn&&1/uo(new jn([,-0]))[1]==He?function(n){return new jn(n)}:cu;function Nf(n){return function(o){var u=_t(o);return u==qe?mi(o):u==Ct?km(o):Dm(o,n(o))}}function Ar(n,o,u,f,h,y,S,T){var A=o&P;if(!A&&typeof n!="function")throw new Zt(c);var N=f?f.length:0;if(N||(o&=~(O|Y),f=h=t),S=S===t?S:lt(me(S),0),T=T===t?T:me(T),N-=h?h.length:0,o&Y){var L=f,B=h;f=h=t}var V=A?t:qi(n),ee=[n,o,u,f,h,L,B,y,S,T];if(V&&L0(ee,V),n=ee[0],o=ee[1],u=ee[2],f=ee[3],h=ee[4],T=ee[9]=ee[9]===t?A?0:n.length:lt(ee[9]-N,0),!T&&o&(M|j)&&(o&=~(M|j)),!o||o==I)var ae=b0(n,o,u);else o==M||o==j?ae=_0(n,o,T):(o==O||o==(I|O))&&!h.length?ae=E0(n,o,u,f):ae=Do.apply(t,ee);var be=V?vf:Yf;return Vf(be(ae,ee),n,o)}function Lf(n,o,u,f){return n===t||fr(n,Ln[u])&&!je.call(f,u)?o:n}function jf(n,o,u,f,h,y){return Qe(n)&&Qe(o)&&(y.set(o,n),Ro(n,o,t,jf,y),y.delete(o)),n}function w0(n){return Ra(n)?t:n}function kf(n,o,u,f,h,y){var S=u&x,T=n.length,A=o.length;if(T!=A&&!(S&&A>T))return!1;var N=y.get(n),L=y.get(o);if(N&&L)return N==o&&L==n;var B=-1,V=!0,ee=u&C?new _n:t;for(y.set(n,o),y.set(o,n);++B<T;){var ae=n[B],be=o[B];if(f)var oe=S?f(be,ae,B,o,n,y):f(ae,be,B,n,o,y);if(oe!==t){if(oe)continue;V=!1;break}if(ee){if(!fi(o,function(Se,Ce){if(!pa(ee,Ce)&&(ae===Se||h(ae,Se,u,f,y)))return ee.push(Ce)})){V=!1;break}}else if(!(ae===be||h(ae,be,u,f,y))){V=!1;break}}return y.delete(n),y.delete(o),V}function T0(n,o,u,f,h,y,S){switch(u){case Gr:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case pn:return!(n.byteLength!=o.byteLength||!y(new go(n),new go(o)));case ue:case he:case yt:return fr(+n,+o);case K:return n.name==o.name&&n.message==o.message;case ir:case fn:return n==o+"";case qe:var T=mi;case Ct:var A=f&x;if(T||(T=uo),n.size!=o.size&&!A)return!1;var N=S.get(n);if(N)return N==o;f|=C,S.set(n,o);var L=kf(T(n),T(o),f,h,y,S);return S.delete(n),L;case dn:if(ya)return ya.call(n)==ya.call(o)}return!1}function x0(n,o,u,f,h,y){var S=u&x,T=Ui(n),A=T.length,N=Ui(o),L=N.length;if(A!=L&&!S)return!1;for(var B=A;B--;){var V=T[B];if(!(S?V in o:je.call(o,V)))return!1}var ee=y.get(n),ae=y.get(o);if(ee&&ae)return ee==o&&ae==n;var be=!0;y.set(n,o),y.set(o,n);for(var oe=S;++B<A;){V=T[B];var Se=n[V],Ce=o[V];if(f)var Ht=S?f(Ce,Se,V,o,n,y):f(Se,Ce,V,n,o,y);if(!(Ht===t?Se===Ce||h(Se,Ce,u,f,y):Ht)){be=!1;break}oe||(oe=V=="constructor")}if(be&&!oe){var At=n.constructor,qt=o.constructor;At!=qt&&"constructor"in n&&"constructor"in o&&!(typeof At=="function"&&At instanceof At&&typeof qt=="function"&&qt instanceof qt)&&(be=!1)}return y.delete(n),y.delete(o),be}function Pr(n){return Ji(Gf(n,t,ed),n+"")}function Ui(n){return af(n,pt,zi)}function Hi(n){return af(n,Mt,Bf)}var qi=Eo?function(n){return Eo.get(n)}:cu;function Mo(n){for(var o=n.name+"",u=kn[o],f=je.call(kn,o)?u.length:0;f--;){var h=u[f],y=h.func;if(y==null||y==n)return h.name}return o}function Hn(n){var o=je.call(v,"placeholder")?v:n;return o.placeholder}function re(){var n=v.iteratee||iu;return n=n===iu?uf:n,arguments.length?n(arguments[0],arguments[1]):n}function No(n,o){var u=n.__data__;return F0(o)?u[typeof o=="string"?"string":"hash"]:u.map}function Gi(n){for(var o=pt(n),u=o.length;u--;){var f=o[u],h=n[f];o[u]=[f,h,Hf(h)]}return o}function wn(n,o){var u=Nm(n,o);return sf(u)?u:t}function C0(n){var o=je.call(n,yn),u=n[yn];try{n[yn]=t;var f=!0}catch{}var h=po.call(n);return f&&(o?n[yn]=u:delete n[yn]),h}var zi=bi?function(n){return n==null?[]:(n=Ue(n),Yr(bi(n),function(o){return Gl.call(n,o)}))}:lu,Bf=bi?function(n){for(var o=[];n;)Vr(o,zi(n)),n=vo(n);return o}:lu,_t=Rt;(_i&&_t(new _i(new ArrayBuffer(1)))!=Gr||ga&&_t(new ga)!=qe||Ei&&_t(Ei.resolve())!=ln||jn&&_t(new jn)!=Ct||va&&_t(new va)!=xr)&&(_t=function(n){var o=Rt(n),u=o==Vt?n.constructor:t,f=u?Tn(u):"";if(f)switch(f){case uy:return Gr;case cy:return qe;case ly:return ln;case fy:return Ct;case dy:return xr}return o});function R0(n,o,u){for(var f=-1,h=u.length;++f<h;){var y=u[f],S=y.size;switch(y.type){case"drop":n+=S;break;case"dropRight":o-=S;break;case"take":o=bt(o,n+S);break;case"takeRight":n=lt(n,o-S);break}}return{start:n,end:o}}function O0(n){var o=n.match(Le);return o?o[1].split(xe):[]}function Wf(n,o,u){o=Qr(o,n);for(var f=-1,h=o.length,y=!1;++f<h;){var S=_r(o[f]);if(!(y=n!=null&&u(n,S)))break;n=n[S]}return y||++f!=h?y:(h=n==null?0:n.length,!!h&&Ho(h)&&Dr(S,h)&&(ve(n)||xn(n)))}function A0(n){var o=n.length,u=new n.constructor(o);return o&&typeof n[0]=="string"&&je.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function Uf(n){return typeof n.constructor=="function"&&!xa(n)?Bn(vo(n)):{}}function P0(n,o,u){var f=n.constructor;switch(o){case pn:return ki(n);case ue:case he:return new f(+n);case Gr:return p0(n,u);case ua:case ca:case la:case fa:case hn:case Dn:case mr:case gn:case vn:return Tf(n,u);case qe:return new f;case yt:case fn:return new f(n);case ir:return h0(n);case Ct:return new f;case dn:return g0(n)}}function D0(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(Ne,`{
|
|
16
16
|
/* [wrapped with `+o+`] */
|
|
17
|
-
`)}function $0(n){return ve(n)||xn(n)||!!(zl&&n&&n[zl])}function Dr(n,o){var u=typeof n;return o=o??nt,!!o&&(u=="number"||u!="symbol"&&zv.test(n))&&n>-1&&n%1==0&&n<o}function Ot(n,o,u){if(!Qe(u))return!1;var f=typeof o;return(f=="number"?$t(u)&&Dr(o,u.length):f=="string"&&o in u)?fr(u[o],n):!1}function Vi(n,o){if(ve(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||Ut(n)?!0:ti.test(n)||!ei.test(n)||o!=null&&n in Ue(o)}function M0(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function Ki(n){var o=No(n),u=v[o];if(typeof u!="function"||!(o in we.prototype))return!1;if(n===u)return!0;var f=Gi(u);return!!f&&n===f[0]}function N0(n){return!!Ul&&Ul in n}var L0=fo?Ir:du;function xa(n){var o=n&&n.constructor,u=typeof o=="function"&&o.prototype||Nn;return n===u}function Hf(n){return n===n&&!Qe(n)}function qf(n,o){return function(u){return u==null?!1:u[n]===o&&(o!==t||n in Ue(u))}}function k0(n){var o=Uo(n,function(f){return u.size===p&&u.clear(),f}),u=o.cache;return o}function j0(n,o){var u=n[1],f=o[1],h=u|f,y=h<(I|P|H),S=f==H&&u==M||f==H&&u==z&&n[7].length<=o[8]||f==(H|z)&&o[7].length<=o[8]&&u==M;if(!(y||S))return n;f&I&&(n[2]=o[2],h|=u&I?0:j);var T=o[3];if(T){var A=n[3];n[3]=A?Cf(A,T,o[4]):T,n[4]=A?Kr(n[3],g):o[4]}return T=o[5],T&&(A=n[5],n[5]=A?Rf(A,T,o[6]):T,n[6]=A?Kr(n[5],g):o[6]),T=o[7],T&&(n[7]=T),f&H&&(n[8]=n[8]==null?o[8]:bt(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=h,n}function B0(n){var o=[];if(n!=null)for(var u in Ue(n))o.push(u);return o}function W0(n){return ho.call(n)}function Gf(n,o,u){return o=lt(o===t?n.length-1:o,0),function(){for(var f=arguments,h=-1,y=lt(f.length-o,0),S=D(y);++h<y;)S[h]=f[o+h];h=-1;for(var T=D(o+1);++h<o;)T[h]=f[h];return T[o]=u(S),jt(n,this,T)}}function zf(n,o){return o.length<2?n:Sn(n,tr(o,0,-1))}function U0(n,o){for(var u=n.length,f=bt(o.length,u),h=Ft(n);f--;){var y=o[f];n[f]=Dr(y,u)?h[y]:t}return n}function Ji(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var Yf=Kf(vf),Ca=ny||function(n,o){return gt.setTimeout(n,o)},Xi=Kf(f0);function Vf(n,o,u){var f=o+"";return Xi(n,F0(f,H0(P0(f),u)))}function Kf(n){var o=0,u=0;return function(){var f=iy(),h=X-(f-u);if(u=f,h>0){if(++o>=it)return arguments[0]}else o=0;return n.apply(t,arguments)}}function ko(n,o){var u=-1,f=n.length,h=f-1;for(o=o===t?f:o;++u<o;){var y=Fi(u,h),S=n[y];n[y]=n[u],n[u]=S}return n.length=o,n}var Jf=k0(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(ri,function(u,f,h,y){o.push(h?y.replace(Ze,"$1"):f||u)}),o});function _r(n){if(typeof n=="string"||Ut(n))return n;var o=n+"";return o=="0"&&1/n==-He?"-0":o}function Tn(n){if(n!=null){try{return po.call(n)}catch{}try{return n+""}catch{}}return""}function H0(n,o){return Xt(se,function(u){var f="_."+u[0];o&u[1]&&!io(n,f)&&n.push(f)}),n.sort()}function Xf(n){if(n instanceof we)return n.clone();var o=new Qt(n.__wrapped__,n.__chain__);return o.__actions__=Ft(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function q0(n,o,u){(u?Ot(n,o,u):o===t)?o=1:o=lt(me(o),0);var f=n==null?0:n.length;if(!f||o<1)return[];for(var h=0,y=0,S=D(_o(f/o));h<f;)S[y++]=tr(n,h,h+=o);return S}function G0(n){for(var o=-1,u=n==null?0:n.length,f=0,h=[];++o<u;){var y=n[o];y&&(h[f++]=y)}return h}function z0(){var n=arguments.length;if(!n)return[];for(var o=D(n-1),u=arguments[0],f=n;f--;)o[f-1]=arguments[f];return Vr(ve(u)?Ft(u):[u],vt(o,1))}var Y0=_e(function(n,o){return at(n)?_a(n,vt(o,1,at,!0)):[]}),V0=_e(function(n,o){var u=rr(o);return at(u)&&(u=t),at(n)?_a(n,vt(o,1,at,!0),re(u,2)):[]}),K0=_e(function(n,o){var u=rr(o);return at(u)&&(u=t),at(n)?_a(n,vt(o,1,at,!0),t,u):[]});function J0(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===t?1:me(o),tr(n,o<0?0:o,f)):[]}function X0(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===t?1:me(o),o=f-o,tr(n,0,o<0?0:o)):[]}function Z0(n,o){return n&&n.length?Po(n,re(o,3),!0,!0):[]}function Q0(n,o){return n&&n.length?Po(n,re(o,3),!0):[]}function eb(n,o,u,f){var h=n==null?0:n.length;return h?(u&&typeof u!="number"&&Ot(n,o,u)&&(u=0,f=h),zy(n,o,u,f)):[]}function Zf(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var h=u==null?0:me(u);return h<0&&(h=lt(f+h,0)),uo(n,re(o,3),h)}function Qf(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var h=f-1;return u!==t&&(h=me(u),h=u<0?lt(f+h,0):bt(h,f-1)),uo(n,re(o,3),h,!0)}function ed(n){var o=n==null?0:n.length;return o?vt(n,1):[]}function tb(n){var o=n==null?0:n.length;return o?vt(n,He):[]}function rb(n,o){var u=n==null?0:n.length;return u?(o=o===t?1:me(o),vt(n,o)):[]}function nb(n){for(var o=-1,u=n==null?0:n.length,f={};++o<u;){var h=n[o];f[h[0]]=h[1]}return f}function td(n){return n&&n.length?n[0]:t}function ab(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var h=u==null?0:me(u);return h<0&&(h=lt(f+h,0)),In(n,o,h)}function ob(n){var o=n==null?0:n.length;return o?tr(n,0,-1):[]}var sb=_e(function(n){var o=Je(n,ki);return o.length&&o[0]===n[0]?Oi(o):[]}),ib=_e(function(n){var o=rr(n),u=Je(n,ki);return o===rr(u)?o=t:u.pop(),u.length&&u[0]===n[0]?Oi(u,re(o,2)):[]}),ub=_e(function(n){var o=rr(n),u=Je(n,ki);return o=typeof o=="function"?o:t,o&&u.pop(),u.length&&u[0]===n[0]?Oi(u,t,o):[]});function cb(n,o){return n==null?"":oy.call(n,o)}function rr(n){var o=n==null?0:n.length;return o?n[o-1]:t}function lb(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var h=f;return u!==t&&(h=me(u),h=h<0?lt(f+h,0):bt(h,f-1)),o===o?Hm(n,o,h):uo(n,$l,h,!0)}function fb(n,o){return n&&n.length?df(n,me(o)):t}var db=_e(rd);function rd(n,o){return n&&n.length&&o&&o.length?Ii(n,o):n}function pb(n,o,u){return n&&n.length&&o&&o.length?Ii(n,o,re(u,2)):n}function hb(n,o,u){return n&&n.length&&o&&o.length?Ii(n,o,t,u):n}var gb=Pr(function(n,o){var u=n==null?0:n.length,f=Ti(n,o);return gf(n,Je(o,function(h){return Dr(h,u)?+h:h}).sort(xf)),f});function vb(n,o){var u=[];if(!(n&&n.length))return u;var f=-1,h=[],y=n.length;for(o=re(o,3);++f<y;){var S=n[f];o(S,f,n)&&(u.push(S),h.push(f))}return gf(n,h),u}function Zi(n){return n==null?n:cy.call(n)}function mb(n,o,u){var f=n==null?0:n.length;return f?(u&&typeof u!="number"&&Ot(n,o,u)?(o=0,u=f):(o=o==null?0:me(o),u=u===t?f:me(u)),tr(n,o,u)):[]}function yb(n,o){return Ao(n,o)}function bb(n,o,u){return Mi(n,o,re(u,2))}function _b(n,o){var u=n==null?0:n.length;if(u){var f=Ao(n,o);if(f<u&&fr(n[f],o))return f}return-1}function Eb(n,o){return Ao(n,o,!0)}function Sb(n,o,u){return Mi(n,o,re(u,2),!0)}function wb(n,o){var u=n==null?0:n.length;if(u){var f=Ao(n,o,!0)-1;if(fr(n[f],o))return f}return-1}function Tb(n){return n&&n.length?mf(n):[]}function xb(n,o){return n&&n.length?mf(n,re(o,2)):[]}function Cb(n){var o=n==null?0:n.length;return o?tr(n,1,o):[]}function Rb(n,o,u){return n&&n.length?(o=u||o===t?1:me(o),tr(n,0,o<0?0:o)):[]}function Ob(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===t?1:me(o),o=f-o,tr(n,o<0?0:o,f)):[]}function Ab(n,o){return n&&n.length?Po(n,re(o,3),!1,!0):[]}function Pb(n,o){return n&&n.length?Po(n,re(o,3)):[]}var Db=_e(function(n){return Zr(vt(n,1,at,!0))}),Ib=_e(function(n){var o=rr(n);return at(o)&&(o=t),Zr(vt(n,1,at,!0),re(o,2))}),Fb=_e(function(n){var o=rr(n);return o=typeof o=="function"?o:t,Zr(vt(n,1,at,!0),t,o)});function $b(n){return n&&n.length?Zr(n):[]}function Mb(n,o){return n&&n.length?Zr(n,re(o,2)):[]}function Nb(n,o){return o=typeof o=="function"?o:t,n&&n.length?Zr(n,t,o):[]}function Qi(n){if(!(n&&n.length))return[];var o=0;return n=Yr(n,function(u){if(at(u))return o=lt(u.length,o),!0}),vi(o,function(u){return Je(n,pi(u))})}function nd(n,o){if(!(n&&n.length))return[];var u=Qi(n);return o==null?u:Je(u,function(f){return jt(o,t,f)})}var Lb=_e(function(n,o){return at(n)?_a(n,o):[]}),kb=_e(function(n){return Li(Yr(n,at))}),jb=_e(function(n){var o=rr(n);return at(o)&&(o=t),Li(Yr(n,at),re(o,2))}),Bb=_e(function(n){var o=rr(n);return o=typeof o=="function"?o:t,Li(Yr(n,at),t,o)}),Wb=_e(Qi);function Ub(n,o){return Ef(n||[],o||[],ba)}function Hb(n,o){return Ef(n||[],o||[],wa)}var qb=_e(function(n){var o=n.length,u=o>1?n[o-1]:t;return u=typeof u=="function"?(n.pop(),u):t,nd(n,u)});function ad(n){var o=v(n);return o.__chain__=!0,o}function Gb(n,o){return o(n),n}function jo(n,o){return o(n)}var zb=Pr(function(n){var o=n.length,u=o?n[0]:0,f=this.__wrapped__,h=function(y){return Ti(y,n)};return o>1||this.__actions__.length||!(f instanceof we)||!Dr(u)?this.thru(h):(f=f.slice(u,+u+(o?1:0)),f.__actions__.push({func:jo,args:[h],thisArg:t}),new Qt(f,this.__chain__).thru(function(y){return o&&!y.length&&y.push(t),y}))});function Yb(){return ad(this)}function Vb(){return new Qt(this.value(),this.__chain__)}function Kb(){this.__values__===t&&(this.__values__=yd(this.value()));var n=this.__index__>=this.__values__.length,o=n?t:this.__values__[this.__index__++];return{done:n,value:o}}function Jb(){return this}function Xb(n){for(var o,u=this;u instanceof To;){var f=Xf(u);f.__index__=0,f.__values__=t,o?h.__wrapped__=f:o=f;var h=f;u=u.__wrapped__}return h.__wrapped__=n,o}function Zb(){var n=this.__wrapped__;if(n instanceof we){var o=n;return this.__actions__.length&&(o=new we(this)),o=o.reverse(),o.__actions__.push({func:jo,args:[Zi],thisArg:t}),new Qt(o,this.__chain__)}return this.thru(Zi)}function Qb(){return _f(this.__wrapped__,this.__actions__)}var e_=Do(function(n,o,u){ke.call(n,u)?++n[u]:Or(n,u,1)});function t_(n,o,u){var f=ve(n)?Il:Gy;return u&&Ot(n,o,u)&&(o=t),f(n,re(o,3))}function r_(n,o){var u=ve(n)?Yr:rf;return u(n,re(o,3))}var n_=Df(Zf),a_=Df(Qf);function o_(n,o){return vt(Bo(n,o),1)}function s_(n,o){return vt(Bo(n,o),He)}function i_(n,o,u){return u=u===t?1:me(u),vt(Bo(n,o),u)}function od(n,o){var u=ve(n)?Xt:Xr;return u(n,re(o,3))}function sd(n,o){var u=ve(n)?Cm:tf;return u(n,re(o,3))}var u_=Do(function(n,o,u){ke.call(n,u)?n[u].push(o):Or(n,u,[o])});function c_(n,o,u,f){n=$t(n)?n:qn(n),u=u&&!f?me(u):0;var h=n.length;return u<0&&(u=lt(h+u,0)),Go(n)?u<=h&&n.indexOf(o,u)>-1:!!h&&In(n,o,u)>-1}var l_=_e(function(n,o,u){var f=-1,h=typeof o=="function",y=$t(n)?D(n.length):[];return Xr(n,function(S){y[++f]=h?jt(o,S,u):Ea(S,o,u)}),y}),f_=Do(function(n,o,u){Or(n,u,o)});function Bo(n,o){var u=ve(n)?Je:cf;return u(n,re(o,3))}function d_(n,o,u,f){return n==null?[]:(ve(o)||(o=o==null?[]:[o]),u=f?t:u,ve(u)||(u=u==null?[]:[u]),pf(n,o,u))}var p_=Do(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function h_(n,o,u){var f=ve(n)?fi:Nl,h=arguments.length<3;return f(n,re(o,4),u,h,Xr)}function g_(n,o,u){var f=ve(n)?Rm:Nl,h=arguments.length<3;return f(n,re(o,4),u,h,tf)}function v_(n,o){var u=ve(n)?Yr:rf;return u(n,Ho(re(o,3)))}function m_(n){var o=ve(n)?Xl:c0;return o(n)}function y_(n,o,u){(u?Ot(n,o,u):o===t)?o=1:o=me(o);var f=ve(n)?By:l0;return f(n,o)}function b_(n){var o=ve(n)?Wy:d0;return o(n)}function __(n){if(n==null)return 0;if($t(n))return Go(n)?$n(n):n.length;var o=_t(n);return o==qe||o==Ct?n.size:Pi(n).length}function E_(n,o,u){var f=ve(n)?di:p0;return u&&Ot(n,o,u)&&(o=t),f(n,re(o,3))}var S_=_e(function(n,o){if(n==null)return[];var u=o.length;return u>1&&Ot(n,o[0],o[1])?o=[]:u>2&&Ot(o[0],o[1],o[2])&&(o=[o[0]]),pf(n,vt(o,1),[])}),Wo=ry||function(){return gt.Date.now()};function w_(n,o){if(typeof o!="function")throw new Zt(c);return n=me(n),function(){if(--n<1)return o.apply(this,arguments)}}function id(n,o,u){return o=u?t:o,o=n&&o==null?n.length:o,Ar(n,H,t,t,t,t,o)}function ud(n,o){var u;if(typeof o!="function")throw new Zt(c);return n=me(n),function(){return--n>0&&(u=o.apply(this,arguments)),n<=1&&(o=t),u}}var eu=_e(function(n,o,u){var f=I;if(u.length){var h=Kr(u,Un(eu));f|=O}return Ar(n,f,o,u,h)}),cd=_e(function(n,o,u){var f=I|P;if(u.length){var h=Kr(u,Un(cd));f|=O}return Ar(o,f,n,u,h)});function ld(n,o,u){o=u?t:o;var f=Ar(n,M,t,t,t,t,t,o);return f.placeholder=ld.placeholder,f}function fd(n,o,u){o=u?t:o;var f=Ar(n,k,t,t,t,t,t,o);return f.placeholder=fd.placeholder,f}function dd(n,o,u){var f,h,y,S,T,A,N=0,L=!1,B=!1,V=!0;if(typeof n!="function")throw new Zt(c);o=nr(o)||0,Qe(u)&&(L=!!u.leading,B="maxWait"in u,y=B?lt(nr(u.maxWait)||0,o):y,V="trailing"in u?!!u.trailing:V);function ee(ot){var dr=f,$r=h;return f=h=t,N=ot,S=n.apply($r,dr),S}function ae(ot){return N=ot,T=Ca(Se,o),L?ee(ot):S}function be(ot){var dr=ot-A,$r=ot-N,Dd=o-dr;return B?bt(Dd,y-$r):Dd}function oe(ot){var dr=ot-A,$r=ot-N;return A===t||dr>=o||dr<0||B&&$r>=y}function Se(){var ot=Wo();if(oe(ot))return Ce(ot);T=Ca(Se,be(ot))}function Ce(ot){return T=t,V&&f?ee(ot):(f=h=t,S)}function Ht(){T!==t&&Sf(T),N=0,f=A=h=T=t}function At(){return T===t?S:Ce(Wo())}function qt(){var ot=Wo(),dr=oe(ot);if(f=arguments,h=this,A=ot,dr){if(T===t)return ae(A);if(B)return Sf(T),T=Ca(Se,o),ee(A)}return T===t&&(T=Ca(Se,o)),S}return qt.cancel=Ht,qt.flush=At,qt}var T_=_e(function(n,o){return ef(n,1,o)}),x_=_e(function(n,o,u){return ef(n,nr(o)||0,u)});function C_(n){return Ar(n,te)}function Uo(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Zt(c);var u=function(){var f=arguments,h=o?o.apply(this,f):f[0],y=u.cache;if(y.has(h))return y.get(h);var S=n.apply(this,f);return u.cache=y.set(h,S)||y,S};return u.cache=new(Uo.Cache||Rr),u}Uo.Cache=Rr;function Ho(n){if(typeof n!="function")throw new Zt(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 R_(n){return ud(2,n)}var O_=h0(function(n,o){o=o.length==1&&ve(o[0])?Je(o[0],Bt(re())):Je(vt(o,1),Bt(re()));var u=o.length;return _e(function(f){for(var h=-1,y=bt(f.length,u);++h<y;)f[h]=o[h].call(this,f[h]);return jt(n,this,f)})}),tu=_e(function(n,o){var u=Kr(o,Un(tu));return Ar(n,O,t,o,u)}),pd=_e(function(n,o){var u=Kr(o,Un(pd));return Ar(n,Y,t,o,u)}),A_=Pr(function(n,o){return Ar(n,z,t,t,t,o)});function P_(n,o){if(typeof n!="function")throw new Zt(c);return o=o===t?o:me(o),_e(n,o)}function D_(n,o){if(typeof n!="function")throw new Zt(c);return o=o==null?0:lt(me(o),0),_e(function(u){var f=u[o],h=en(u,0,o);return f&&Vr(h,f),jt(n,this,h)})}function I_(n,o,u){var f=!0,h=!0;if(typeof n!="function")throw new Zt(c);return Qe(u)&&(f="leading"in u?!!u.leading:f,h="trailing"in u?!!u.trailing:h),dd(n,o,{leading:f,maxWait:o,trailing:h})}function F_(n){return id(n,1)}function $_(n,o){return tu(ji(o),n)}function M_(){if(!arguments.length)return[];var n=arguments[0];return ve(n)?n:[n]}function N_(n){return er(n,E)}function L_(n,o){return o=typeof o=="function"?o:t,er(n,E,o)}function k_(n){return er(n,m|E)}function j_(n,o){return o=typeof o=="function"?o:t,er(n,m|E,o)}function B_(n,o){return o==null||Ql(n,o,pt(o))}function fr(n,o){return n===o||n!==n&&o!==o}var W_=Mo(Ri),U_=Mo(function(n,o){return n>=o}),xn=of(function(){return arguments}())?of:function(n){return rt(n)&&ke.call(n,"callee")&&!Gl.call(n,"callee")},ve=D.isArray,H_=Cl?Bt(Cl):Xy;function $t(n){return n!=null&&qo(n.length)&&!Ir(n)}function at(n){return rt(n)&&$t(n)}function q_(n){return n===!0||n===!1||rt(n)&&Rt(n)==ue}var tn=ay||du,G_=Rl?Bt(Rl):Zy;function z_(n){return rt(n)&&n.nodeType===1&&!Ra(n)}function Y_(n){if(n==null)return!0;if($t(n)&&(ve(n)||typeof n=="string"||typeof n.splice=="function"||tn(n)||Hn(n)||xn(n)))return!n.length;var o=_t(n);if(o==qe||o==Ct)return!n.size;if(xa(n))return!Pi(n).length;for(var u in n)if(ke.call(n,u))return!1;return!0}function V_(n,o){return Sa(n,o)}function K_(n,o,u){u=typeof u=="function"?u:t;var f=u?u(n,o):t;return f===t?Sa(n,o,t,u):!!f}function ru(n){if(!rt(n))return!1;var o=Rt(n);return o==K||o==ge||typeof n.message=="string"&&typeof n.name=="string"&&!Ra(n)}function J_(n){return typeof n=="number"&&Yl(n)}function Ir(n){if(!Qe(n))return!1;var o=Rt(n);return o==F||o==Ye||o==ce||o==Ks}function hd(n){return typeof n=="number"&&n==me(n)}function qo(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=nt}function Qe(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function rt(n){return n!=null&&typeof n=="object"}var gd=Ol?Bt(Ol):e0;function X_(n,o){return n===o||Ai(n,o,zi(o))}function Z_(n,o,u){return u=typeof u=="function"?u:t,Ai(n,o,zi(o),u)}function Q_(n){return vd(n)&&n!=+n}function eE(n){if(L0(n))throw new pe(i);return sf(n)}function tE(n){return n===null}function rE(n){return n==null}function vd(n){return typeof n=="number"||rt(n)&&Rt(n)==yt}function Ra(n){if(!rt(n)||Rt(n)!=Vt)return!1;var o=mo(n);if(o===null)return!0;var u=ke.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&po.call(u)==Zm}var nu=Al?Bt(Al):t0;function nE(n){return hd(n)&&n>=-nt&&n<=nt}var md=Pl?Bt(Pl):r0;function Go(n){return typeof n=="string"||!ve(n)&&rt(n)&&Rt(n)==fn}function Ut(n){return typeof n=="symbol"||rt(n)&&Rt(n)==dn}var Hn=Dl?Bt(Dl):n0;function aE(n){return n===t}function oE(n){return rt(n)&&_t(n)==xr}function sE(n){return rt(n)&&Rt(n)==Js}var iE=Mo(Di),uE=Mo(function(n,o){return n<=o});function yd(n){if(!n)return[];if($t(n))return Go(n)?cr(n):Ft(n);if(ha&&n[ha])return Bm(n[ha]());var o=_t(n),u=o==qe?yi:o==Ct?co:qn;return u(n)}function Fr(n){if(!n)return n===0?n:0;if(n=nr(n),n===He||n===-He){var o=n<0?-1:1;return o*Yt}return n===n?n:0}function me(n){var o=Fr(n),u=o%1;return o===o?u?o-u:o:0}function bd(n){return n?En(me(n),0,G):0}function nr(n){if(typeof n=="number")return n;if(Ut(n))return W;if(Qe(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Qe(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=Ll(n);var u=no.test(n);return u||Gv.test(n)?wm(n.slice(2),u?2:8):zr.test(n)?W:+n}function _d(n){return br(n,Mt(n))}function cE(n){return n?En(me(n),-nt,nt):n===0?n:0}function De(n){return n==null?"":Wt(n)}var lE=Bn(function(n,o){if(xa(o)||$t(o)){br(o,pt(o),n);return}for(var u in o)ke.call(o,u)&&ba(n,u,o[u])}),Ed=Bn(function(n,o){br(o,Mt(o),n)}),zo=Bn(function(n,o,u,f){br(o,Mt(o),n,f)}),fE=Bn(function(n,o,u,f){br(o,pt(o),n,f)}),dE=Pr(Ti);function pE(n,o){var u=jn(n);return o==null?u:Zl(u,o)}var hE=_e(function(n,o){n=Ue(n);var u=-1,f=o.length,h=f>2?o[2]:t;for(h&&Ot(o[0],o[1],h)&&(f=1);++u<f;)for(var y=o[u],S=Mt(y),T=-1,A=S.length;++T<A;){var N=S[T],L=n[N];(L===t||fr(L,Nn[N])&&!ke.call(n,N))&&(n[N]=y[N])}return n}),gE=_e(function(n){return n.push(t,kf),jt(Sd,t,n)});function vE(n,o){return Fl(n,re(o,3),yr)}function mE(n,o){return Fl(n,re(o,3),Ci)}function yE(n,o){return n==null?n:xi(n,re(o,3),Mt)}function bE(n,o){return n==null?n:nf(n,re(o,3),Mt)}function _E(n,o){return n&&yr(n,re(o,3))}function EE(n,o){return n&&Ci(n,re(o,3))}function SE(n){return n==null?[]:Ro(n,pt(n))}function wE(n){return n==null?[]:Ro(n,Mt(n))}function au(n,o,u){var f=n==null?t:Sn(n,o);return f===t?u:f}function TE(n,o){return n!=null&&Wf(n,o,Yy)}function ou(n,o){return n!=null&&Wf(n,o,Vy)}var xE=Ff(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=ho.call(o)),n[o]=u},iu(Nt)),CE=Ff(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=ho.call(o)),ke.call(n,o)?n[o].push(u):n[o]=[u]},re),RE=_e(Ea);function pt(n){return $t(n)?Jl(n):Pi(n)}function Mt(n){return $t(n)?Jl(n,!0):a0(n)}function OE(n,o){var u={};return o=re(o,3),yr(n,function(f,h,y){Or(u,o(f,h,y),f)}),u}function AE(n,o){var u={};return o=re(o,3),yr(n,function(f,h,y){Or(u,h,o(f,h,y))}),u}var PE=Bn(function(n,o,u){Oo(n,o,u)}),Sd=Bn(function(n,o,u,f){Oo(n,o,u,f)}),DE=Pr(function(n,o){var u={};if(n==null)return u;var f=!1;o=Je(o,function(y){return y=Qr(y,n),f||(f=y.length>1),y}),br(n,qi(n),u),f&&(u=er(u,m|b|E,x0));for(var h=o.length;h--;)Ni(u,o[h]);return u});function IE(n,o){return wd(n,Ho(re(o)))}var FE=Pr(function(n,o){return n==null?{}:s0(n,o)});function wd(n,o){if(n==null)return{};var u=Je(qi(n),function(f){return[f]});return o=re(o),hf(n,u,function(f,h){return o(f,h[0])})}function $E(n,o,u){o=Qr(o,n);var f=-1,h=o.length;for(h||(h=1,n=t);++f<h;){var y=n==null?t:n[_r(o[f])];y===t&&(f=h,y=u),n=Ir(y)?y.call(n):y}return n}function ME(n,o,u){return n==null?n:wa(n,o,u)}function NE(n,o,u,f){return f=typeof f=="function"?f:t,n==null?n:wa(n,o,u,f)}var Td=Nf(pt),xd=Nf(Mt);function LE(n,o,u){var f=ve(n),h=f||tn(n)||Hn(n);if(o=re(o,4),u==null){var y=n&&n.constructor;h?u=f?new y:[]:Qe(n)?u=Ir(y)?jn(mo(n)):{}:u={}}return(h?Xt:yr)(n,function(S,T,A){return o(u,S,T,A)}),u}function kE(n,o){return n==null?!0:Ni(n,o)}function jE(n,o,u){return n==null?n:bf(n,o,ji(u))}function BE(n,o,u,f){return f=typeof f=="function"?f:t,n==null?n:bf(n,o,ji(u),f)}function qn(n){return n==null?[]:mi(n,pt(n))}function WE(n){return n==null?[]:mi(n,Mt(n))}function UE(n,o,u){return u===t&&(u=o,o=t),u!==t&&(u=nr(u),u=u===u?u:0),o!==t&&(o=nr(o),o=o===o?o:0),En(nr(n),o,u)}function HE(n,o,u){return o=Fr(o),u===t?(u=o,o=0):u=Fr(u),n=nr(n),Ky(n,o,u)}function qE(n,o,u){if(u&&typeof u!="boolean"&&Ot(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=Fr(n),o===t?(o=n,n=0):o=Fr(o)),n>o){var f=n;n=o,o=f}if(u||n%1||o%1){var h=Vl();return bt(n+h*(o-n+Sm("1e-"+((h+"").length-1))),o)}return Fi(n,o)}var GE=Wn(function(n,o,u){return o=o.toLowerCase(),n+(u?Cd(o):o)});function Cd(n){return su(De(n).toLowerCase())}function Rd(n){return n=De(n),n&&n.replace(Yv,Mm).replace(dm,"")}function zE(n,o,u){n=De(n),o=Wt(o);var f=n.length;u=u===t?f:En(me(u),0,f);var h=u;return u-=o.length,u>=0&&n.slice(u,h)==o}function YE(n){return n=De(n),n&&Zs.test(n)?n.replace(da,Nm):n}function VE(n){return n=De(n),n&&U.test(n)?n.replace(w,"\\$&"):n}var KE=Wn(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),JE=Wn(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),XE=Pf("toLowerCase");function ZE(n,o,u){n=De(n),o=me(o);var f=o?$n(n):0;if(!o||f>=o)return n;var h=(o-f)/2;return $o(Eo(h),u)+n+$o(_o(h),u)}function QE(n,o,u){n=De(n),o=me(o);var f=o?$n(n):0;return o&&f<o?n+$o(o-f,u):n}function e1(n,o,u){n=De(n),o=me(o);var f=o?$n(n):0;return o&&f<o?$o(o-f,u)+n:n}function t1(n,o,u){return u||o==null?o=0:o&&(o=+o),uy(De(n).replace(J,""),o||0)}function r1(n,o,u){return(u?Ot(n,o,u):o===t)?o=1:o=me(o),$i(De(n),o)}function n1(){var n=arguments,o=De(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var a1=Wn(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function o1(n,o,u){return u&&typeof u!="number"&&Ot(n,o,u)&&(o=u=t),u=u===t?G:u>>>0,u?(n=De(n),n&&(typeof o=="string"||o!=null&&!nu(o))&&(o=Wt(o),!o&&Fn(n))?en(cr(n),0,u):n.split(o,u)):[]}var s1=Wn(function(n,o,u){return n+(u?" ":"")+su(o)});function i1(n,o,u){return n=De(n),u=u==null?0:En(me(u),0,n.length),o=Wt(o),n.slice(u,u+o.length)==o}function u1(n,o,u){var f=v.templateSettings;u&&Ot(n,o,u)&&(o=t),n=De(n),o=zo({},o,f,Lf);var h=zo({},o.imports,f.imports,Lf),y=pt(h),S=mi(h,y),T,A,N=0,L=o.interpolate||ao,B="__p += '",V=bi((o.escape||ao).source+"|"+L.source+"|"+(L===ro?tt:ao).source+"|"+(o.evaluate||ao).source+"|$","g"),ee="//# sourceURL="+(ke.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++mm+"]")+`
|
|
18
|
-
`;n.replace(V,function(oe,Se,Ce,Ht,At,qt){return Ce||(Ce=Ht),B+=n.slice(N,qt).replace(
|
|
17
|
+
`)}function I0(n){return ve(n)||xn(n)||!!(zl&&n&&n[zl])}function Dr(n,o){var u=typeof n;return o=o??nt,!!o&&(u=="number"||u!="symbol"&&qv.test(n))&&n>-1&&n%1==0&&n<o}function Ot(n,o,u){if(!Qe(u))return!1;var f=typeof o;return(f=="number"?$t(u)&&Dr(o,u.length):f=="string"&&o in u)?fr(u[o],n):!1}function Yi(n,o){if(ve(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||Ut(n)?!0:ei.test(n)||!Qs.test(n)||o!=null&&n in Ue(o)}function F0(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function Vi(n){var o=Mo(n),u=v[o];if(typeof u!="function"||!(o in we.prototype))return!1;if(n===u)return!0;var f=qi(u);return!!f&&n===f[0]}function $0(n){return!!Ul&&Ul in n}var M0=lo?Ir:fu;function xa(n){var o=n&&n.constructor,u=typeof o=="function"&&o.prototype||Ln;return n===u}function Hf(n){return n===n&&!Qe(n)}function qf(n,o){return function(u){return u==null?!1:u[n]===o&&(o!==t||n in Ue(u))}}function N0(n){var o=Wo(n,function(f){return u.size===p&&u.clear(),f}),u=o.cache;return o}function L0(n,o){var u=n[1],f=o[1],h=u|f,y=h<(I|P|H),S=f==H&&u==M||f==H&&u==z&&n[7].length<=o[8]||f==(H|z)&&o[7].length<=o[8]&&u==M;if(!(y||S))return n;f&I&&(n[2]=o[2],h|=u&I?0:k);var T=o[3];if(T){var A=n[3];n[3]=A?Cf(A,T,o[4]):T,n[4]=A?Kr(n[3],g):o[4]}return T=o[5],T&&(A=n[5],n[5]=A?Rf(A,T,o[6]):T,n[6]=A?Kr(n[5],g):o[6]),T=o[7],T&&(n[7]=T),f&H&&(n[8]=n[8]==null?o[8]:bt(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=h,n}function j0(n){var o=[];if(n!=null)for(var u in Ue(n))o.push(u);return o}function k0(n){return po.call(n)}function Gf(n,o,u){return o=lt(o===t?n.length-1:o,0),function(){for(var f=arguments,h=-1,y=lt(f.length-o,0),S=D(y);++h<y;)S[h]=f[o+h];h=-1;for(var T=D(o+1);++h<o;)T[h]=f[h];return T[o]=u(S),kt(n,this,T)}}function zf(n,o){return o.length<2?n:Sn(n,tr(o,0,-1))}function B0(n,o){for(var u=n.length,f=bt(o.length,u),h=Ft(n);f--;){var y=o[f];n[f]=Dr(y,u)?h[y]:t}return n}function Ki(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var Yf=Kf(vf),Ca=ty||function(n,o){return gt.setTimeout(n,o)},Ji=Kf(c0);function Vf(n,o,u){var f=o+"";return Ji(n,D0(f,W0(O0(f),u)))}function Kf(n){var o=0,u=0;return function(){var f=oy(),h=X-(f-u);if(u=f,h>0){if(++o>=it)return arguments[0]}else o=0;return n.apply(t,arguments)}}function Lo(n,o){var u=-1,f=n.length,h=f-1;for(o=o===t?f:o;++u<o;){var y=Ii(u,h),S=n[y];n[y]=n[u],n[u]=S}return n.length=o,n}var Jf=N0(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(ti,function(u,f,h,y){o.push(h?y.replace(Ze,"$1"):f||u)}),o});function _r(n){if(typeof n=="string"||Ut(n))return n;var o=n+"";return o=="0"&&1/n==-He?"-0":o}function Tn(n){if(n!=null){try{return fo.call(n)}catch{}try{return n+""}catch{}}return""}function W0(n,o){return Xt(se,function(u){var f="_."+u[0];o&u[1]&&!so(n,f)&&n.push(f)}),n.sort()}function Xf(n){if(n instanceof we)return n.clone();var o=new Qt(n.__wrapped__,n.__chain__);return o.__actions__=Ft(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function U0(n,o,u){(u?Ot(n,o,u):o===t)?o=1:o=lt(me(o),0);var f=n==null?0:n.length;if(!f||o<1)return[];for(var h=0,y=0,S=D(bo(f/o));h<f;)S[y++]=tr(n,h,h+=o);return S}function H0(n){for(var o=-1,u=n==null?0:n.length,f=0,h=[];++o<u;){var y=n[o];y&&(h[f++]=y)}return h}function q0(){var n=arguments.length;if(!n)return[];for(var o=D(n-1),u=arguments[0],f=n;f--;)o[f-1]=arguments[f];return Vr(ve(u)?Ft(u):[u],vt(o,1))}var G0=_e(function(n,o){return at(n)?_a(n,vt(o,1,at,!0)):[]}),z0=_e(function(n,o){var u=rr(o);return at(u)&&(u=t),at(n)?_a(n,vt(o,1,at,!0),re(u,2)):[]}),Y0=_e(function(n,o){var u=rr(o);return at(u)&&(u=t),at(n)?_a(n,vt(o,1,at,!0),t,u):[]});function V0(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===t?1:me(o),tr(n,o<0?0:o,f)):[]}function K0(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===t?1:me(o),o=f-o,tr(n,0,o<0?0:o)):[]}function J0(n,o){return n&&n.length?Ao(n,re(o,3),!0,!0):[]}function X0(n,o){return n&&n.length?Ao(n,re(o,3),!0):[]}function Z0(n,o,u,f){var h=n==null?0:n.length;return h?(u&&typeof u!="number"&&Ot(n,o,u)&&(u=0,f=h),qy(n,o,u,f)):[]}function Zf(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var h=u==null?0:me(u);return h<0&&(h=lt(f+h,0)),io(n,re(o,3),h)}function Qf(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var h=f-1;return u!==t&&(h=me(u),h=u<0?lt(f+h,0):bt(h,f-1)),io(n,re(o,3),h,!0)}function ed(n){var o=n==null?0:n.length;return o?vt(n,1):[]}function Q0(n){var o=n==null?0:n.length;return o?vt(n,He):[]}function eb(n,o){var u=n==null?0:n.length;return u?(o=o===t?1:me(o),vt(n,o)):[]}function tb(n){for(var o=-1,u=n==null?0:n.length,f={};++o<u;){var h=n[o];f[h[0]]=h[1]}return f}function td(n){return n&&n.length?n[0]:t}function rb(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var h=u==null?0:me(u);return h<0&&(h=lt(f+h,0)),Fn(n,o,h)}function nb(n){var o=n==null?0:n.length;return o?tr(n,0,-1):[]}var ab=_e(function(n){var o=Je(n,Li);return o.length&&o[0]===n[0]?Ri(o):[]}),ob=_e(function(n){var o=rr(n),u=Je(n,Li);return o===rr(u)?o=t:u.pop(),u.length&&u[0]===n[0]?Ri(u,re(o,2)):[]}),sb=_e(function(n){var o=rr(n),u=Je(n,Li);return o=typeof o=="function"?o:t,o&&u.pop(),u.length&&u[0]===n[0]?Ri(u,t,o):[]});function ib(n,o){return n==null?"":ny.call(n,o)}function rr(n){var o=n==null?0:n.length;return o?n[o-1]:t}function ub(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var h=f;return u!==t&&(h=me(u),h=h<0?lt(f+h,0):bt(h,f-1)),o===o?Wm(n,o,h):io(n,$l,h,!0)}function cb(n,o){return n&&n.length?df(n,me(o)):t}var lb=_e(rd);function rd(n,o){return n&&n.length&&o&&o.length?Di(n,o):n}function fb(n,o,u){return n&&n.length&&o&&o.length?Di(n,o,re(u,2)):n}function db(n,o,u){return n&&n.length&&o&&o.length?Di(n,o,t,u):n}var pb=Pr(function(n,o){var u=n==null?0:n.length,f=wi(n,o);return gf(n,Je(o,function(h){return Dr(h,u)?+h:h}).sort(xf)),f});function hb(n,o){var u=[];if(!(n&&n.length))return u;var f=-1,h=[],y=n.length;for(o=re(o,3);++f<y;){var S=n[f];o(S,f,n)&&(u.push(S),h.push(f))}return gf(n,h),u}function Xi(n){return n==null?n:iy.call(n)}function gb(n,o,u){var f=n==null?0:n.length;return f?(u&&typeof u!="number"&&Ot(n,o,u)?(o=0,u=f):(o=o==null?0:me(o),u=u===t?f:me(u)),tr(n,o,u)):[]}function vb(n,o){return Oo(n,o)}function mb(n,o,u){return $i(n,o,re(u,2))}function yb(n,o){var u=n==null?0:n.length;if(u){var f=Oo(n,o);if(f<u&&fr(n[f],o))return f}return-1}function bb(n,o){return Oo(n,o,!0)}function _b(n,o,u){return $i(n,o,re(u,2),!0)}function Eb(n,o){var u=n==null?0:n.length;if(u){var f=Oo(n,o,!0)-1;if(fr(n[f],o))return f}return-1}function Sb(n){return n&&n.length?mf(n):[]}function wb(n,o){return n&&n.length?mf(n,re(o,2)):[]}function Tb(n){var o=n==null?0:n.length;return o?tr(n,1,o):[]}function xb(n,o,u){return n&&n.length?(o=u||o===t?1:me(o),tr(n,0,o<0?0:o)):[]}function Cb(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===t?1:me(o),o=f-o,tr(n,o<0?0:o,f)):[]}function Rb(n,o){return n&&n.length?Ao(n,re(o,3),!1,!0):[]}function Ob(n,o){return n&&n.length?Ao(n,re(o,3)):[]}var Ab=_e(function(n){return Zr(vt(n,1,at,!0))}),Pb=_e(function(n){var o=rr(n);return at(o)&&(o=t),Zr(vt(n,1,at,!0),re(o,2))}),Db=_e(function(n){var o=rr(n);return o=typeof o=="function"?o:t,Zr(vt(n,1,at,!0),t,o)});function Ib(n){return n&&n.length?Zr(n):[]}function Fb(n,o){return n&&n.length?Zr(n,re(o,2)):[]}function $b(n,o){return o=typeof o=="function"?o:t,n&&n.length?Zr(n,t,o):[]}function Zi(n){if(!(n&&n.length))return[];var o=0;return n=Yr(n,function(u){if(at(u))return o=lt(u.length,o),!0}),gi(o,function(u){return Je(n,di(u))})}function nd(n,o){if(!(n&&n.length))return[];var u=Zi(n);return o==null?u:Je(u,function(f){return kt(o,t,f)})}var Mb=_e(function(n,o){return at(n)?_a(n,o):[]}),Nb=_e(function(n){return Ni(Yr(n,at))}),Lb=_e(function(n){var o=rr(n);return at(o)&&(o=t),Ni(Yr(n,at),re(o,2))}),jb=_e(function(n){var o=rr(n);return o=typeof o=="function"?o:t,Ni(Yr(n,at),t,o)}),kb=_e(Zi);function Bb(n,o){return Ef(n||[],o||[],ba)}function Wb(n,o){return Ef(n||[],o||[],wa)}var Ub=_e(function(n){var o=n.length,u=o>1?n[o-1]:t;return u=typeof u=="function"?(n.pop(),u):t,nd(n,u)});function ad(n){var o=v(n);return o.__chain__=!0,o}function Hb(n,o){return o(n),n}function jo(n,o){return o(n)}var qb=Pr(function(n){var o=n.length,u=o?n[0]:0,f=this.__wrapped__,h=function(y){return wi(y,n)};return o>1||this.__actions__.length||!(f instanceof we)||!Dr(u)?this.thru(h):(f=f.slice(u,+u+(o?1:0)),f.__actions__.push({func:jo,args:[h],thisArg:t}),new Qt(f,this.__chain__).thru(function(y){return o&&!y.length&&y.push(t),y}))});function Gb(){return ad(this)}function zb(){return new Qt(this.value(),this.__chain__)}function Yb(){this.__values__===t&&(this.__values__=yd(this.value()));var n=this.__index__>=this.__values__.length,o=n?t:this.__values__[this.__index__++];return{done:n,value:o}}function Vb(){return this}function Kb(n){for(var o,u=this;u instanceof wo;){var f=Xf(u);f.__index__=0,f.__values__=t,o?h.__wrapped__=f:o=f;var h=f;u=u.__wrapped__}return h.__wrapped__=n,o}function Jb(){var n=this.__wrapped__;if(n instanceof we){var o=n;return this.__actions__.length&&(o=new we(this)),o=o.reverse(),o.__actions__.push({func:jo,args:[Xi],thisArg:t}),new Qt(o,this.__chain__)}return this.thru(Xi)}function Xb(){return _f(this.__wrapped__,this.__actions__)}var Zb=Po(function(n,o,u){je.call(n,u)?++n[u]:Or(n,u,1)});function Qb(n,o,u){var f=ve(n)?Il:Hy;return u&&Ot(n,o,u)&&(o=t),f(n,re(o,3))}function e_(n,o){var u=ve(n)?Yr:rf;return u(n,re(o,3))}var t_=Df(Zf),r_=Df(Qf);function n_(n,o){return vt(ko(n,o),1)}function a_(n,o){return vt(ko(n,o),He)}function o_(n,o,u){return u=u===t?1:me(u),vt(ko(n,o),u)}function od(n,o){var u=ve(n)?Xt:Xr;return u(n,re(o,3))}function sd(n,o){var u=ve(n)?Tm:tf;return u(n,re(o,3))}var s_=Po(function(n,o,u){je.call(n,u)?n[u].push(o):Or(n,u,[o])});function i_(n,o,u,f){n=$t(n)?n:Gn(n),u=u&&!f?me(u):0;var h=n.length;return u<0&&(u=lt(h+u,0)),qo(n)?u<=h&&n.indexOf(o,u)>-1:!!h&&Fn(n,o,u)>-1}var u_=_e(function(n,o,u){var f=-1,h=typeof o=="function",y=$t(n)?D(n.length):[];return Xr(n,function(S){y[++f]=h?kt(o,S,u):Ea(S,o,u)}),y}),c_=Po(function(n,o,u){Or(n,u,o)});function ko(n,o){var u=ve(n)?Je:cf;return u(n,re(o,3))}function l_(n,o,u,f){return n==null?[]:(ve(o)||(o=o==null?[]:[o]),u=f?t:u,ve(u)||(u=u==null?[]:[u]),pf(n,o,u))}var f_=Po(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function d_(n,o,u){var f=ve(n)?li:Nl,h=arguments.length<3;return f(n,re(o,4),u,h,Xr)}function p_(n,o,u){var f=ve(n)?xm:Nl,h=arguments.length<3;return f(n,re(o,4),u,h,tf)}function h_(n,o){var u=ve(n)?Yr:rf;return u(n,Uo(re(o,3)))}function g_(n){var o=ve(n)?Xl:i0;return o(n)}function v_(n,o,u){(u?Ot(n,o,u):o===t)?o=1:o=me(o);var f=ve(n)?jy:u0;return f(n,o)}function m_(n){var o=ve(n)?ky:l0;return o(n)}function y_(n){if(n==null)return 0;if($t(n))return qo(n)?Mn(n):n.length;var o=_t(n);return o==qe||o==Ct?n.size:Ai(n).length}function b_(n,o,u){var f=ve(n)?fi:f0;return u&&Ot(n,o,u)&&(o=t),f(n,re(o,3))}var __=_e(function(n,o){if(n==null)return[];var u=o.length;return u>1&&Ot(n,o[0],o[1])?o=[]:u>2&&Ot(o[0],o[1],o[2])&&(o=[o[0]]),pf(n,vt(o,1),[])}),Bo=ey||function(){return gt.Date.now()};function E_(n,o){if(typeof o!="function")throw new Zt(c);return n=me(n),function(){if(--n<1)return o.apply(this,arguments)}}function id(n,o,u){return o=u?t:o,o=n&&o==null?n.length:o,Ar(n,H,t,t,t,t,o)}function ud(n,o){var u;if(typeof o!="function")throw new Zt(c);return n=me(n),function(){return--n>0&&(u=o.apply(this,arguments)),n<=1&&(o=t),u}}var Qi=_e(function(n,o,u){var f=I;if(u.length){var h=Kr(u,Hn(Qi));f|=O}return Ar(n,f,o,u,h)}),cd=_e(function(n,o,u){var f=I|P;if(u.length){var h=Kr(u,Hn(cd));f|=O}return Ar(o,f,n,u,h)});function ld(n,o,u){o=u?t:o;var f=Ar(n,M,t,t,t,t,t,o);return f.placeholder=ld.placeholder,f}function fd(n,o,u){o=u?t:o;var f=Ar(n,j,t,t,t,t,t,o);return f.placeholder=fd.placeholder,f}function dd(n,o,u){var f,h,y,S,T,A,N=0,L=!1,B=!1,V=!0;if(typeof n!="function")throw new Zt(c);o=nr(o)||0,Qe(u)&&(L=!!u.leading,B="maxWait"in u,y=B?lt(nr(u.maxWait)||0,o):y,V="trailing"in u?!!u.trailing:V);function ee(ot){var dr=f,$r=h;return f=h=t,N=ot,S=n.apply($r,dr),S}function ae(ot){return N=ot,T=Ca(Se,o),L?ee(ot):S}function be(ot){var dr=ot-A,$r=ot-N,Dd=o-dr;return B?bt(Dd,y-$r):Dd}function oe(ot){var dr=ot-A,$r=ot-N;return A===t||dr>=o||dr<0||B&&$r>=y}function Se(){var ot=Bo();if(oe(ot))return Ce(ot);T=Ca(Se,be(ot))}function Ce(ot){return T=t,V&&f?ee(ot):(f=h=t,S)}function Ht(){T!==t&&Sf(T),N=0,f=A=h=T=t}function At(){return T===t?S:Ce(Bo())}function qt(){var ot=Bo(),dr=oe(ot);if(f=arguments,h=this,A=ot,dr){if(T===t)return ae(A);if(B)return Sf(T),T=Ca(Se,o),ee(A)}return T===t&&(T=Ca(Se,o)),S}return qt.cancel=Ht,qt.flush=At,qt}var S_=_e(function(n,o){return ef(n,1,o)}),w_=_e(function(n,o,u){return ef(n,nr(o)||0,u)});function T_(n){return Ar(n,te)}function Wo(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Zt(c);var u=function(){var f=arguments,h=o?o.apply(this,f):f[0],y=u.cache;if(y.has(h))return y.get(h);var S=n.apply(this,f);return u.cache=y.set(h,S)||y,S};return u.cache=new(Wo.Cache||Rr),u}Wo.Cache=Rr;function Uo(n){if(typeof n!="function")throw new Zt(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 ud(2,n)}var C_=d0(function(n,o){o=o.length==1&&ve(o[0])?Je(o[0],Bt(re())):Je(vt(o,1),Bt(re()));var u=o.length;return _e(function(f){for(var h=-1,y=bt(f.length,u);++h<y;)f[h]=o[h].call(this,f[h]);return kt(n,this,f)})}),eu=_e(function(n,o){var u=Kr(o,Hn(eu));return Ar(n,O,t,o,u)}),pd=_e(function(n,o){var u=Kr(o,Hn(pd));return Ar(n,Y,t,o,u)}),R_=Pr(function(n,o){return Ar(n,z,t,t,t,o)});function O_(n,o){if(typeof n!="function")throw new Zt(c);return o=o===t?o:me(o),_e(n,o)}function A_(n,o){if(typeof n!="function")throw new Zt(c);return o=o==null?0:lt(me(o),0),_e(function(u){var f=u[o],h=en(u,0,o);return f&&Vr(h,f),kt(n,this,h)})}function P_(n,o,u){var f=!0,h=!0;if(typeof n!="function")throw new Zt(c);return Qe(u)&&(f="leading"in u?!!u.leading:f,h="trailing"in u?!!u.trailing:h),dd(n,o,{leading:f,maxWait:o,trailing:h})}function D_(n){return id(n,1)}function I_(n,o){return eu(ji(o),n)}function F_(){if(!arguments.length)return[];var n=arguments[0];return ve(n)?n:[n]}function $_(n){return er(n,E)}function M_(n,o){return o=typeof o=="function"?o:t,er(n,E,o)}function N_(n){return er(n,m|E)}function L_(n,o){return o=typeof o=="function"?o:t,er(n,m|E,o)}function j_(n,o){return o==null||Ql(n,o,pt(o))}function fr(n,o){return n===o||n!==n&&o!==o}var k_=$o(Ci),B_=$o(function(n,o){return n>=o}),xn=of(function(){return arguments}())?of:function(n){return rt(n)&&je.call(n,"callee")&&!Gl.call(n,"callee")},ve=D.isArray,W_=Cl?Bt(Cl):Ky;function $t(n){return n!=null&&Ho(n.length)&&!Ir(n)}function at(n){return rt(n)&&$t(n)}function U_(n){return n===!0||n===!1||rt(n)&&Rt(n)==ue}var tn=ry||fu,H_=Rl?Bt(Rl):Jy;function q_(n){return rt(n)&&n.nodeType===1&&!Ra(n)}function G_(n){if(n==null)return!0;if($t(n)&&(ve(n)||typeof n=="string"||typeof n.splice=="function"||tn(n)||qn(n)||xn(n)))return!n.length;var o=_t(n);if(o==qe||o==Ct)return!n.size;if(xa(n))return!Ai(n).length;for(var u in n)if(je.call(n,u))return!1;return!0}function z_(n,o){return Sa(n,o)}function Y_(n,o,u){u=typeof u=="function"?u:t;var f=u?u(n,o):t;return f===t?Sa(n,o,t,u):!!f}function tu(n){if(!rt(n))return!1;var o=Rt(n);return o==K||o==ge||typeof n.message=="string"&&typeof n.name=="string"&&!Ra(n)}function V_(n){return typeof n=="number"&&Yl(n)}function Ir(n){if(!Qe(n))return!1;var o=Rt(n);return o==F||o==Ye||o==ce||o==Vs}function hd(n){return typeof n=="number"&&n==me(n)}function Ho(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=nt}function Qe(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function rt(n){return n!=null&&typeof n=="object"}var gd=Ol?Bt(Ol):Zy;function K_(n,o){return n===o||Oi(n,o,Gi(o))}function J_(n,o,u){return u=typeof u=="function"?u:t,Oi(n,o,Gi(o),u)}function X_(n){return vd(n)&&n!=+n}function Z_(n){if(M0(n))throw new pe(i);return sf(n)}function Q_(n){return n===null}function eE(n){return n==null}function vd(n){return typeof n=="number"||rt(n)&&Rt(n)==yt}function Ra(n){if(!rt(n)||Rt(n)!=Vt)return!1;var o=vo(n);if(o===null)return!0;var u=je.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&fo.call(u)==Jm}var ru=Al?Bt(Al):Qy;function tE(n){return hd(n)&&n>=-nt&&n<=nt}var md=Pl?Bt(Pl):e0;function qo(n){return typeof n=="string"||!ve(n)&&rt(n)&&Rt(n)==fn}function Ut(n){return typeof n=="symbol"||rt(n)&&Rt(n)==dn}var qn=Dl?Bt(Dl):t0;function rE(n){return n===t}function nE(n){return rt(n)&&_t(n)==xr}function aE(n){return rt(n)&&Rt(n)==Ks}var oE=$o(Pi),sE=$o(function(n,o){return n<=o});function yd(n){if(!n)return[];if($t(n))return qo(n)?cr(n):Ft(n);if(ha&&n[ha])return jm(n[ha]());var o=_t(n),u=o==qe?mi:o==Ct?uo:Gn;return u(n)}function Fr(n){if(!n)return n===0?n:0;if(n=nr(n),n===He||n===-He){var o=n<0?-1:1;return o*Yt}return n===n?n:0}function me(n){var o=Fr(n),u=o%1;return o===o?u?o-u:o:0}function bd(n){return n?En(me(n),0,G):0}function nr(n){if(typeof n=="number")return n;if(Ut(n))return W;if(Qe(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Qe(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=Ll(n);var u=ro.test(n);return u||Hv.test(n)?Em(n.slice(2),u?2:8):zr.test(n)?W:+n}function _d(n){return br(n,Mt(n))}function iE(n){return n?En(me(n),-nt,nt):n===0?n:0}function De(n){return n==null?"":Wt(n)}var uE=Wn(function(n,o){if(xa(o)||$t(o)){br(o,pt(o),n);return}for(var u in o)je.call(o,u)&&ba(n,u,o[u])}),Ed=Wn(function(n,o){br(o,Mt(o),n)}),Go=Wn(function(n,o,u,f){br(o,Mt(o),n,f)}),cE=Wn(function(n,o,u,f){br(o,pt(o),n,f)}),lE=Pr(wi);function fE(n,o){var u=Bn(n);return o==null?u:Zl(u,o)}var dE=_e(function(n,o){n=Ue(n);var u=-1,f=o.length,h=f>2?o[2]:t;for(h&&Ot(o[0],o[1],h)&&(f=1);++u<f;)for(var y=o[u],S=Mt(y),T=-1,A=S.length;++T<A;){var N=S[T],L=n[N];(L===t||fr(L,Ln[N])&&!je.call(n,N))&&(n[N]=y[N])}return n}),pE=_e(function(n){return n.push(t,jf),kt(Sd,t,n)});function hE(n,o){return Fl(n,re(o,3),yr)}function gE(n,o){return Fl(n,re(o,3),xi)}function vE(n,o){return n==null?n:Ti(n,re(o,3),Mt)}function mE(n,o){return n==null?n:nf(n,re(o,3),Mt)}function yE(n,o){return n&&yr(n,re(o,3))}function bE(n,o){return n&&xi(n,re(o,3))}function _E(n){return n==null?[]:Co(n,pt(n))}function EE(n){return n==null?[]:Co(n,Mt(n))}function nu(n,o,u){var f=n==null?t:Sn(n,o);return f===t?u:f}function SE(n,o){return n!=null&&Wf(n,o,Gy)}function au(n,o){return n!=null&&Wf(n,o,zy)}var wE=Ff(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=po.call(o)),n[o]=u},su(Nt)),TE=Ff(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=po.call(o)),je.call(n,o)?n[o].push(u):n[o]=[u]},re),xE=_e(Ea);function pt(n){return $t(n)?Jl(n):Ai(n)}function Mt(n){return $t(n)?Jl(n,!0):r0(n)}function CE(n,o){var u={};return o=re(o,3),yr(n,function(f,h,y){Or(u,o(f,h,y),f)}),u}function RE(n,o){var u={};return o=re(o,3),yr(n,function(f,h,y){Or(u,h,o(f,h,y))}),u}var OE=Wn(function(n,o,u){Ro(n,o,u)}),Sd=Wn(function(n,o,u,f){Ro(n,o,u,f)}),AE=Pr(function(n,o){var u={};if(n==null)return u;var f=!1;o=Je(o,function(y){return y=Qr(y,n),f||(f=y.length>1),y}),br(n,Hi(n),u),f&&(u=er(u,m|b|E,w0));for(var h=o.length;h--;)Mi(u,o[h]);return u});function PE(n,o){return wd(n,Uo(re(o)))}var DE=Pr(function(n,o){return n==null?{}:a0(n,o)});function wd(n,o){if(n==null)return{};var u=Je(Hi(n),function(f){return[f]});return o=re(o),hf(n,u,function(f,h){return o(f,h[0])})}function IE(n,o,u){o=Qr(o,n);var f=-1,h=o.length;for(h||(h=1,n=t);++f<h;){var y=n==null?t:n[_r(o[f])];y===t&&(f=h,y=u),n=Ir(y)?y.call(n):y}return n}function FE(n,o,u){return n==null?n:wa(n,o,u)}function $E(n,o,u,f){return f=typeof f=="function"?f:t,n==null?n:wa(n,o,u,f)}var Td=Nf(pt),xd=Nf(Mt);function ME(n,o,u){var f=ve(n),h=f||tn(n)||qn(n);if(o=re(o,4),u==null){var y=n&&n.constructor;h?u=f?new y:[]:Qe(n)?u=Ir(y)?Bn(vo(n)):{}:u={}}return(h?Xt:yr)(n,function(S,T,A){return o(u,S,T,A)}),u}function NE(n,o){return n==null?!0:Mi(n,o)}function LE(n,o,u){return n==null?n:bf(n,o,ji(u))}function jE(n,o,u,f){return f=typeof f=="function"?f:t,n==null?n:bf(n,o,ji(u),f)}function Gn(n){return n==null?[]:vi(n,pt(n))}function kE(n){return n==null?[]:vi(n,Mt(n))}function BE(n,o,u){return u===t&&(u=o,o=t),u!==t&&(u=nr(u),u=u===u?u:0),o!==t&&(o=nr(o),o=o===o?o:0),En(nr(n),o,u)}function WE(n,o,u){return o=Fr(o),u===t?(u=o,o=0):u=Fr(u),n=nr(n),Yy(n,o,u)}function UE(n,o,u){if(u&&typeof u!="boolean"&&Ot(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=Fr(n),o===t?(o=n,n=0):o=Fr(o)),n>o){var f=n;n=o,o=f}if(u||n%1||o%1){var h=Vl();return bt(n+h*(o-n+_m("1e-"+((h+"").length-1))),o)}return Ii(n,o)}var HE=Un(function(n,o,u){return o=o.toLowerCase(),n+(u?Cd(o):o)});function Cd(n){return ou(De(n).toLowerCase())}function Rd(n){return n=De(n),n&&n.replace(Gv,Fm).replace(lm,"")}function qE(n,o,u){n=De(n),o=Wt(o);var f=n.length;u=u===t?f:En(me(u),0,f);var h=u;return u-=o.length,u>=0&&n.slice(u,h)==o}function GE(n){return n=De(n),n&&Xs.test(n)?n.replace(da,$m):n}function zE(n){return n=De(n),n&&U.test(n)?n.replace(w,"\\$&"):n}var YE=Un(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),VE=Un(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),KE=Pf("toLowerCase");function JE(n,o,u){n=De(n),o=me(o);var f=o?Mn(n):0;if(!o||f>=o)return n;var h=(o-f)/2;return Fo(_o(h),u)+n+Fo(bo(h),u)}function XE(n,o,u){n=De(n),o=me(o);var f=o?Mn(n):0;return o&&f<o?n+Fo(o-f,u):n}function ZE(n,o,u){n=De(n),o=me(o);var f=o?Mn(n):0;return o&&f<o?Fo(o-f,u)+n:n}function QE(n,o,u){return u||o==null?o=0:o&&(o=+o),sy(De(n).replace(J,""),o||0)}function e1(n,o,u){return(u?Ot(n,o,u):o===t)?o=1:o=me(o),Fi(De(n),o)}function t1(){var n=arguments,o=De(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var r1=Un(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function n1(n,o,u){return u&&typeof u!="number"&&Ot(n,o,u)&&(o=u=t),u=u===t?G:u>>>0,u?(n=De(n),n&&(typeof o=="string"||o!=null&&!ru(o))&&(o=Wt(o),!o&&$n(n))?en(cr(n),0,u):n.split(o,u)):[]}var a1=Un(function(n,o,u){return n+(u?" ":"")+ou(o)});function o1(n,o,u){return n=De(n),u=u==null?0:En(me(u),0,n.length),o=Wt(o),n.slice(u,u+o.length)==o}function s1(n,o,u){var f=v.templateSettings;u&&Ot(n,o,u)&&(o=t),n=De(n),o=Go({},o,f,Lf);var h=Go({},o.imports,f.imports,Lf),y=pt(h),S=vi(h,y),T,A,N=0,L=o.interpolate||no,B="__p += '",V=yi((o.escape||no).source+"|"+L.source+"|"+(L===to?tt:no).source+"|"+(o.evaluate||no).source+"|$","g"),ee="//# sourceURL="+(je.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++gm+"]")+`
|
|
18
|
+
`;n.replace(V,function(oe,Se,Ce,Ht,At,qt){return Ce||(Ce=Ht),B+=n.slice(N,qt).replace(zv,Mm),Se&&(T=!0,B+=`' +
|
|
19
19
|
__e(`+Se+`) +
|
|
20
20
|
'`),At&&(A=!0,B+=`';
|
|
21
21
|
`+At+`;
|
|
22
22
|
__p += '`),Ce&&(B+=`' +
|
|
23
23
|
((__t = (`+Ce+`)) == null ? '' : __t) +
|
|
24
24
|
'`),N=qt+oe.length,oe}),B+=`';
|
|
25
|
-
`;var ae=
|
|
25
|
+
`;var ae=je.call(o,"variable")&&o.variable;if(!ae)B=`with (obj) {
|
|
26
26
|
`+B+`
|
|
27
27
|
}
|
|
28
|
-
`;else if(ht.test(ae))throw new pe(l);B=(A?B.replace(
|
|
28
|
+
`;else if(ht.test(ae))throw new pe(l);B=(A?B.replace(Ja,""):B).replace(Js,"$1").replace(Xa,"$1;"),B="function("+(ae||"obj")+`) {
|
|
29
29
|
`+(ae?"":`obj || (obj = {});
|
|
30
30
|
`)+"var __t, __p = ''"+(T?", __e = _.escape":"")+(A?`, __j = Array.prototype.join;
|
|
31
31
|
function print() { __p += __j.call(arguments, '') }
|
|
32
32
|
`:`;
|
|
33
33
|
`)+B+`return __p
|
|
34
|
-
}`;var be=Ad(function(){return Oe(y,ee+"return "+B).apply(t,S)});if(be.source=B,ru(be))throw be;return be}function c1(n){return De(n).toLowerCase()}function l1(n){return De(n).toUpperCase()}function f1(n,o,u){if(n=De(n),n&&(u||o===t))return Ll(n);if(!n||!(o=Wt(o)))return n;var f=cr(n),h=cr(o),y=kl(f,h),S=jl(f,h)+1;return en(f,y,S).join("")}function d1(n,o,u){if(n=De(n),n&&(u||o===t))return n.slice(0,Wl(n)+1);if(!n||!(o=Wt(o)))return n;var f=cr(n),h=jl(f,cr(o))+1;return en(f,0,h).join("")}function p1(n,o,u){if(n=De(n),n&&(u||o===t))return n.replace(J,"");if(!n||!(o=Wt(o)))return n;var f=cr(n),h=kl(f,cr(o));return en(f,h).join("")}function h1(n,o){var u=We,f=Te;if(Qe(o)){var h="separator"in o?o.separator:h;u="length"in o?me(o.length):u,f="omission"in o?Wt(o.omission):f}n=De(n);var y=n.length;if(Fn(n)){var S=cr(n);y=S.length}if(u>=y)return n;var T=u-$n(f);if(T<1)return f;var A=S?en(S,0,T).join(""):n.slice(0,T);if(h===t)return A+f;if(S&&(T+=A.length-T),nu(h)){if(n.slice(T).search(h)){var N,L=A;for(h.global||(h=bi(h.source,De(Kt.exec(h))+"g")),h.lastIndex=0;N=h.exec(L);)var B=N.index;A=A.slice(0,B===t?T:B)}}else if(n.indexOf(Wt(h),T)!=T){var V=A.lastIndexOf(h);V>-1&&(A=A.slice(0,V))}return A+f}function g1(n){return n=De(n),n&&eo.test(n)?n.replace(Qa,qm):n}var v1=Wn(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),su=Pf("toUpperCase");function Od(n,o,u){return n=De(n),o=u?t:o,o===t?jm(n)?Ym(n):Pm(n):n.match(o)||[]}var Ad=_e(function(n,o){try{return jt(n,t,o)}catch(u){return ru(u)?u:new pe(u)}}),m1=Pr(function(n,o){return Xt(o,function(u){u=_r(u),Or(n,u,eu(n[u],n))}),n});function y1(n){var o=n==null?0:n.length,u=re();return n=o?Je(n,function(f){if(typeof f[1]!="function")throw new Zt(c);return[u(f[0]),f[1]]}):[],_e(function(f){for(var h=-1;++h<o;){var y=n[h];if(jt(y[0],this,f))return jt(y[1],this,f)}})}function b1(n){return qy(er(n,m))}function iu(n){return function(){return n}}function _1(n,o){return n==null||n!==n?o:n}var E1=If(),S1=If(!0);function Nt(n){return n}function uu(n){return uf(typeof n=="function"?n:er(n,m))}function w1(n){return lf(er(n,m))}function T1(n,o){return ff(n,er(o,m))}var x1=_e(function(n,o){return function(u){return Ea(u,n,o)}}),C1=_e(function(n,o){return function(u){return Ea(n,u,o)}});function cu(n,o,u){var f=pt(o),h=Ro(o,f);u==null&&!(Qe(o)&&(h.length||!f.length))&&(u=o,o=n,n=this,h=Ro(o,pt(o)));var y=!(Qe(u)&&"chain"in u)||!!u.chain,S=Ir(n);return Xt(h,function(T){var A=o[T];n[T]=A,S&&(n.prototype[T]=function(){var N=this.__chain__;if(y||N){var L=n(this.__wrapped__),B=L.__actions__=Ft(this.__actions__);return B.push({func:A,args:arguments,thisArg:n}),L.__chain__=N,L}return A.apply(n,Vr([this.value()],arguments))})}),n}function R1(){return gt._===this&&(gt._=Qm),this}function lu(){}function O1(n){return n=me(n),_e(function(o){return df(o,n)})}var A1=Wi(Je),P1=Wi(Il),D1=Wi(di);function Pd(n){return Vi(n)?pi(_r(n)):i0(n)}function I1(n){return function(o){return n==null?t:Sn(n,o)}}var F1=$f(),$1=$f(!0);function fu(){return[]}function du(){return!1}function M1(){return{}}function N1(){return""}function L1(){return!0}function k1(n,o){if(n=me(n),n<1||n>nt)return[];var u=G,f=bt(n,G);o=re(o),n-=G;for(var h=vi(f,o);++u<n;)o(u);return h}function j1(n){return ve(n)?Je(n,_r):Ut(n)?[n]:Ft(Jf(De(n)))}function B1(n){var o=++Xm;return De(n)+o}var W1=Fo(function(n,o){return n+o},0),U1=Ui("ceil"),H1=Fo(function(n,o){return n/o},1),q1=Ui("floor");function G1(n){return n&&n.length?Co(n,Nt,Ri):t}function z1(n,o){return n&&n.length?Co(n,re(o,2),Ri):t}function Y1(n){return Ml(n,Nt)}function V1(n,o){return Ml(n,re(o,2))}function K1(n){return n&&n.length?Co(n,Nt,Di):t}function J1(n,o){return n&&n.length?Co(n,re(o,2),Di):t}var X1=Fo(function(n,o){return n*o},1),Z1=Ui("round"),Q1=Fo(function(n,o){return n-o},0);function eS(n){return n&&n.length?gi(n,Nt):0}function tS(n,o){return n&&n.length?gi(n,re(o,2)):0}return v.after=w_,v.ary=id,v.assign=lE,v.assignIn=Ed,v.assignInWith=zo,v.assignWith=fE,v.at=dE,v.before=ud,v.bind=eu,v.bindAll=m1,v.bindKey=cd,v.castArray=M_,v.chain=ad,v.chunk=q0,v.compact=G0,v.concat=z0,v.cond=y1,v.conforms=b1,v.constant=iu,v.countBy=e_,v.create=pE,v.curry=ld,v.curryRight=fd,v.debounce=dd,v.defaults=hE,v.defaultsDeep=gE,v.defer=T_,v.delay=x_,v.difference=Y0,v.differenceBy=V0,v.differenceWith=K0,v.drop=J0,v.dropRight=X0,v.dropRightWhile=Z0,v.dropWhile=Q0,v.fill=eb,v.filter=r_,v.flatMap=o_,v.flatMapDeep=s_,v.flatMapDepth=i_,v.flatten=ed,v.flattenDeep=tb,v.flattenDepth=rb,v.flip=C_,v.flow=E1,v.flowRight=S1,v.fromPairs=nb,v.functions=SE,v.functionsIn=wE,v.groupBy=u_,v.initial=ob,v.intersection=sb,v.intersectionBy=ib,v.intersectionWith=ub,v.invert=xE,v.invertBy=CE,v.invokeMap=l_,v.iteratee=uu,v.keyBy=f_,v.keys=pt,v.keysIn=Mt,v.map=Bo,v.mapKeys=OE,v.mapValues=AE,v.matches=w1,v.matchesProperty=T1,v.memoize=Uo,v.merge=PE,v.mergeWith=Sd,v.method=x1,v.methodOf=C1,v.mixin=cu,v.negate=Ho,v.nthArg=O1,v.omit=DE,v.omitBy=IE,v.once=R_,v.orderBy=d_,v.over=A1,v.overArgs=O_,v.overEvery=P1,v.overSome=D1,v.partial=tu,v.partialRight=pd,v.partition=p_,v.pick=FE,v.pickBy=wd,v.property=Pd,v.propertyOf=I1,v.pull=db,v.pullAll=rd,v.pullAllBy=pb,v.pullAllWith=hb,v.pullAt=gb,v.range=F1,v.rangeRight=$1,v.rearg=A_,v.reject=v_,v.remove=vb,v.rest=P_,v.reverse=Zi,v.sampleSize=y_,v.set=ME,v.setWith=NE,v.shuffle=b_,v.slice=mb,v.sortBy=S_,v.sortedUniq=Tb,v.sortedUniqBy=xb,v.split=o1,v.spread=D_,v.tail=Cb,v.take=Rb,v.takeRight=Ob,v.takeRightWhile=Ab,v.takeWhile=Pb,v.tap=Gb,v.throttle=I_,v.thru=jo,v.toArray=yd,v.toPairs=Td,v.toPairsIn=xd,v.toPath=j1,v.toPlainObject=_d,v.transform=LE,v.unary=F_,v.union=Db,v.unionBy=Ib,v.unionWith=Fb,v.uniq=$b,v.uniqBy=Mb,v.uniqWith=Nb,v.unset=kE,v.unzip=Qi,v.unzipWith=nd,v.update=jE,v.updateWith=BE,v.values=qn,v.valuesIn=WE,v.without=Lb,v.words=Od,v.wrap=$_,v.xor=kb,v.xorBy=jb,v.xorWith=Bb,v.zip=Wb,v.zipObject=Ub,v.zipObjectDeep=Hb,v.zipWith=qb,v.entries=Td,v.entriesIn=xd,v.extend=Ed,v.extendWith=zo,cu(v,v),v.add=W1,v.attempt=Ad,v.camelCase=GE,v.capitalize=Cd,v.ceil=U1,v.clamp=UE,v.clone=N_,v.cloneDeep=k_,v.cloneDeepWith=j_,v.cloneWith=L_,v.conformsTo=B_,v.deburr=Rd,v.defaultTo=_1,v.divide=H1,v.endsWith=zE,v.eq=fr,v.escape=YE,v.escapeRegExp=VE,v.every=t_,v.find=n_,v.findIndex=Zf,v.findKey=vE,v.findLast=a_,v.findLastIndex=Qf,v.findLastKey=mE,v.floor=q1,v.forEach=od,v.forEachRight=sd,v.forIn=yE,v.forInRight=bE,v.forOwn=_E,v.forOwnRight=EE,v.get=au,v.gt=W_,v.gte=U_,v.has=TE,v.hasIn=ou,v.head=td,v.identity=Nt,v.includes=c_,v.indexOf=ab,v.inRange=HE,v.invoke=RE,v.isArguments=xn,v.isArray=ve,v.isArrayBuffer=H_,v.isArrayLike=$t,v.isArrayLikeObject=at,v.isBoolean=q_,v.isBuffer=tn,v.isDate=G_,v.isElement=z_,v.isEmpty=Y_,v.isEqual=V_,v.isEqualWith=K_,v.isError=ru,v.isFinite=J_,v.isFunction=Ir,v.isInteger=hd,v.isLength=qo,v.isMap=gd,v.isMatch=X_,v.isMatchWith=Z_,v.isNaN=Q_,v.isNative=eE,v.isNil=rE,v.isNull=tE,v.isNumber=vd,v.isObject=Qe,v.isObjectLike=rt,v.isPlainObject=Ra,v.isRegExp=nu,v.isSafeInteger=nE,v.isSet=md,v.isString=Go,v.isSymbol=Ut,v.isTypedArray=Hn,v.isUndefined=aE,v.isWeakMap=oE,v.isWeakSet=sE,v.join=cb,v.kebabCase=KE,v.last=rr,v.lastIndexOf=lb,v.lowerCase=JE,v.lowerFirst=XE,v.lt=iE,v.lte=uE,v.max=G1,v.maxBy=z1,v.mean=Y1,v.meanBy=V1,v.min=K1,v.minBy=J1,v.stubArray=fu,v.stubFalse=du,v.stubObject=M1,v.stubString=N1,v.stubTrue=L1,v.multiply=X1,v.nth=fb,v.noConflict=R1,v.noop=lu,v.now=Wo,v.pad=ZE,v.padEnd=QE,v.padStart=e1,v.parseInt=t1,v.random=qE,v.reduce=h_,v.reduceRight=g_,v.repeat=r1,v.replace=n1,v.result=$E,v.round=Z1,v.runInContext=R,v.sample=m_,v.size=__,v.snakeCase=a1,v.some=E_,v.sortedIndex=yb,v.sortedIndexBy=bb,v.sortedIndexOf=_b,v.sortedLastIndex=Eb,v.sortedLastIndexBy=Sb,v.sortedLastIndexOf=wb,v.startCase=s1,v.startsWith=i1,v.subtract=Q1,v.sum=eS,v.sumBy=tS,v.template=u1,v.times=k1,v.toFinite=Fr,v.toInteger=me,v.toLength=bd,v.toLower=c1,v.toNumber=nr,v.toSafeInteger=cE,v.toString=De,v.toUpper=l1,v.trim=f1,v.trimEnd=d1,v.trimStart=p1,v.truncate=h1,v.unescape=g1,v.uniqueId=B1,v.upperCase=v1,v.upperFirst=su,v.each=od,v.eachRight=sd,v.first=td,cu(v,function(){var n={};return yr(v,function(o,u){ke.call(v.prototype,u)||(n[u]=o)}),n}(),{chain:!1}),v.VERSION=a,Xt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){v[n].placeholder=v}),Xt(["drop","take"],function(n,o){we.prototype[n]=function(u){u=u===t?1:lt(me(u),0);var f=this.__filtered__&&!o?new we(this):this.clone();return f.__filtered__?f.__takeCount__=bt(u,f.__takeCount__):f.__views__.push({size:bt(u,G),type:n+(f.__dir__<0?"Right":"")}),f},we.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),Xt(["filter","map","takeWhile"],function(n,o){var u=o+1,f=u==Pe||u==et;we.prototype[n]=function(h){var y=this.clone();return y.__iteratees__.push({iteratee:re(h,3),type:u}),y.__filtered__=y.__filtered__||f,y}}),Xt(["head","last"],function(n,o){var u="take"+(o?"Right":"");we.prototype[n]=function(){return this[u](1).value()[0]}}),Xt(["initial","tail"],function(n,o){var u="drop"+(o?"":"Right");we.prototype[n]=function(){return this.__filtered__?new we(this):this[u](1)}}),we.prototype.compact=function(){return this.filter(Nt)},we.prototype.find=function(n){return this.filter(n).head()},we.prototype.findLast=function(n){return this.reverse().find(n)},we.prototype.invokeMap=_e(function(n,o){return typeof n=="function"?new we(this):this.map(function(u){return Ea(u,n,o)})}),we.prototype.reject=function(n){return this.filter(Ho(re(n)))},we.prototype.slice=function(n,o){n=me(n);var u=this;return u.__filtered__&&(n>0||o<0)?new we(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),o!==t&&(o=me(o),u=o<0?u.dropRight(-o):u.take(o-n)),u)},we.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},we.prototype.toArray=function(){return this.take(G)},yr(we.prototype,function(n,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),f=/^(?:head|last)$/.test(o),h=v[f?"take"+(o=="last"?"Right":""):o],y=f||/^find/.test(o);h&&(v.prototype[o]=function(){var S=this.__wrapped__,T=f?[1]:arguments,A=S instanceof we,N=T[0],L=A||ve(S),B=function(Se){var Ce=h.apply(v,Vr([Se],T));return f&&V?Ce[0]:Ce};L&&u&&typeof N=="function"&&N.length!=1&&(A=L=!1);var V=this.__chain__,ee=!!this.__actions__.length,ae=y&&!V,be=A&&!ee;if(!y&&L){S=be?S:new we(this);var oe=n.apply(S,T);return oe.__actions__.push({func:jo,args:[B],thisArg:t}),new Qt(oe,V)}return ae&&be?n.apply(this,T):(oe=this.thru(B),ae?f?oe.value()[0]:oe.value():oe)})}),Xt(["pop","push","shift","sort","splice","unshift"],function(n){var o=lo[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",f=/^(?:pop|shift)$/.test(n);v.prototype[n]=function(){var h=arguments;if(f&&!this.__chain__){var y=this.value();return o.apply(ve(y)?y:[],h)}return this[u](function(S){return o.apply(ve(S)?S:[],h)})}}),yr(we.prototype,function(n,o){var u=v[o];if(u){var f=u.name+"";ke.call(kn,f)||(kn[f]=[]),kn[f].push({name:o,func:u})}}),kn[Io(t,P).name]=[{name:"wrapper",func:t}],we.prototype.clone=gy,we.prototype.reverse=vy,we.prototype.value=my,v.prototype.at=zb,v.prototype.chain=Yb,v.prototype.commit=Vb,v.prototype.next=Kb,v.prototype.plant=Xb,v.prototype.reverse=Zb,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=Qb,v.prototype.first=v.prototype.head,ha&&(v.prototype[ha]=Jb),v},Mn=Vm();mn?((mn.exports=Mn)._=Mn,ui._=Mn):gt._=Mn}).call(Nr)})(vs,vs.exports);var ze=vs.exports;const Oh=Os(ze);function Dc(e){return`Debugger/${e}`}function Ah(e,r){var a;const t=(a=r.name)==null?void 0:a.replace(/\.(4dm|4qs)$/,"");return`#${e} ${t}`}var ec={exports:{}},Vo={exports:{}},Ie={};/** @license React v16.13.1
|
|
34
|
+
}`;var be=Ad(function(){return Oe(y,ee+"return "+B).apply(t,S)});if(be.source=B,tu(be))throw be;return be}function i1(n){return De(n).toLowerCase()}function u1(n){return De(n).toUpperCase()}function c1(n,o,u){if(n=De(n),n&&(u||o===t))return Ll(n);if(!n||!(o=Wt(o)))return n;var f=cr(n),h=cr(o),y=jl(f,h),S=kl(f,h)+1;return en(f,y,S).join("")}function l1(n,o,u){if(n=De(n),n&&(u||o===t))return n.slice(0,Wl(n)+1);if(!n||!(o=Wt(o)))return n;var f=cr(n),h=kl(f,cr(o))+1;return en(f,0,h).join("")}function f1(n,o,u){if(n=De(n),n&&(u||o===t))return n.replace(J,"");if(!n||!(o=Wt(o)))return n;var f=cr(n),h=jl(f,cr(o));return en(f,h).join("")}function d1(n,o){var u=We,f=Te;if(Qe(o)){var h="separator"in o?o.separator:h;u="length"in o?me(o.length):u,f="omission"in o?Wt(o.omission):f}n=De(n);var y=n.length;if($n(n)){var S=cr(n);y=S.length}if(u>=y)return n;var T=u-Mn(f);if(T<1)return f;var A=S?en(S,0,T).join(""):n.slice(0,T);if(h===t)return A+f;if(S&&(T+=A.length-T),ru(h)){if(n.slice(T).search(h)){var N,L=A;for(h.global||(h=yi(h.source,De(Kt.exec(h))+"g")),h.lastIndex=0;N=h.exec(L);)var B=N.index;A=A.slice(0,B===t?T:B)}}else if(n.indexOf(Wt(h),T)!=T){var V=A.lastIndexOf(h);V>-1&&(A=A.slice(0,V))}return A+f}function p1(n){return n=De(n),n&&Qa.test(n)?n.replace(Za,Um):n}var h1=Un(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),ou=Pf("toUpperCase");function Od(n,o,u){return n=De(n),o=u?t:o,o===t?Lm(n)?Gm(n):Om(n):n.match(o)||[]}var Ad=_e(function(n,o){try{return kt(n,t,o)}catch(u){return tu(u)?u:new pe(u)}}),g1=Pr(function(n,o){return Xt(o,function(u){u=_r(u),Or(n,u,Qi(n[u],n))}),n});function v1(n){var o=n==null?0:n.length,u=re();return n=o?Je(n,function(f){if(typeof f[1]!="function")throw new Zt(c);return[u(f[0]),f[1]]}):[],_e(function(f){for(var h=-1;++h<o;){var y=n[h];if(kt(y[0],this,f))return kt(y[1],this,f)}})}function m1(n){return Uy(er(n,m))}function su(n){return function(){return n}}function y1(n,o){return n==null||n!==n?o:n}var b1=If(),_1=If(!0);function Nt(n){return n}function iu(n){return uf(typeof n=="function"?n:er(n,m))}function E1(n){return lf(er(n,m))}function S1(n,o){return ff(n,er(o,m))}var w1=_e(function(n,o){return function(u){return Ea(u,n,o)}}),T1=_e(function(n,o){return function(u){return Ea(n,u,o)}});function uu(n,o,u){var f=pt(o),h=Co(o,f);u==null&&!(Qe(o)&&(h.length||!f.length))&&(u=o,o=n,n=this,h=Co(o,pt(o)));var y=!(Qe(u)&&"chain"in u)||!!u.chain,S=Ir(n);return Xt(h,function(T){var A=o[T];n[T]=A,S&&(n.prototype[T]=function(){var N=this.__chain__;if(y||N){var L=n(this.__wrapped__),B=L.__actions__=Ft(this.__actions__);return B.push({func:A,args:arguments,thisArg:n}),L.__chain__=N,L}return A.apply(n,Vr([this.value()],arguments))})}),n}function x1(){return gt._===this&&(gt._=Xm),this}function cu(){}function C1(n){return n=me(n),_e(function(o){return df(o,n)})}var R1=Bi(Je),O1=Bi(Il),A1=Bi(fi);function Pd(n){return Yi(n)?di(_r(n)):o0(n)}function P1(n){return function(o){return n==null?t:Sn(n,o)}}var D1=$f(),I1=$f(!0);function lu(){return[]}function fu(){return!1}function F1(){return{}}function $1(){return""}function M1(){return!0}function N1(n,o){if(n=me(n),n<1||n>nt)return[];var u=G,f=bt(n,G);o=re(o),n-=G;for(var h=gi(f,o);++u<n;)o(u);return h}function L1(n){return ve(n)?Je(n,_r):Ut(n)?[n]:Ft(Jf(De(n)))}function j1(n){var o=++Km;return De(n)+o}var k1=Io(function(n,o){return n+o},0),B1=Wi("ceil"),W1=Io(function(n,o){return n/o},1),U1=Wi("floor");function H1(n){return n&&n.length?xo(n,Nt,Ci):t}function q1(n,o){return n&&n.length?xo(n,re(o,2),Ci):t}function G1(n){return Ml(n,Nt)}function z1(n,o){return Ml(n,re(o,2))}function Y1(n){return n&&n.length?xo(n,Nt,Pi):t}function V1(n,o){return n&&n.length?xo(n,re(o,2),Pi):t}var K1=Io(function(n,o){return n*o},1),J1=Wi("round"),X1=Io(function(n,o){return n-o},0);function Z1(n){return n&&n.length?hi(n,Nt):0}function Q1(n,o){return n&&n.length?hi(n,re(o,2)):0}return v.after=E_,v.ary=id,v.assign=uE,v.assignIn=Ed,v.assignInWith=Go,v.assignWith=cE,v.at=lE,v.before=ud,v.bind=Qi,v.bindAll=g1,v.bindKey=cd,v.castArray=F_,v.chain=ad,v.chunk=U0,v.compact=H0,v.concat=q0,v.cond=v1,v.conforms=m1,v.constant=su,v.countBy=Zb,v.create=fE,v.curry=ld,v.curryRight=fd,v.debounce=dd,v.defaults=dE,v.defaultsDeep=pE,v.defer=S_,v.delay=w_,v.difference=G0,v.differenceBy=z0,v.differenceWith=Y0,v.drop=V0,v.dropRight=K0,v.dropRightWhile=J0,v.dropWhile=X0,v.fill=Z0,v.filter=e_,v.flatMap=n_,v.flatMapDeep=a_,v.flatMapDepth=o_,v.flatten=ed,v.flattenDeep=Q0,v.flattenDepth=eb,v.flip=T_,v.flow=b1,v.flowRight=_1,v.fromPairs=tb,v.functions=_E,v.functionsIn=EE,v.groupBy=s_,v.initial=nb,v.intersection=ab,v.intersectionBy=ob,v.intersectionWith=sb,v.invert=wE,v.invertBy=TE,v.invokeMap=u_,v.iteratee=iu,v.keyBy=c_,v.keys=pt,v.keysIn=Mt,v.map=ko,v.mapKeys=CE,v.mapValues=RE,v.matches=E1,v.matchesProperty=S1,v.memoize=Wo,v.merge=OE,v.mergeWith=Sd,v.method=w1,v.methodOf=T1,v.mixin=uu,v.negate=Uo,v.nthArg=C1,v.omit=AE,v.omitBy=PE,v.once=x_,v.orderBy=l_,v.over=R1,v.overArgs=C_,v.overEvery=O1,v.overSome=A1,v.partial=eu,v.partialRight=pd,v.partition=f_,v.pick=DE,v.pickBy=wd,v.property=Pd,v.propertyOf=P1,v.pull=lb,v.pullAll=rd,v.pullAllBy=fb,v.pullAllWith=db,v.pullAt=pb,v.range=D1,v.rangeRight=I1,v.rearg=R_,v.reject=h_,v.remove=hb,v.rest=O_,v.reverse=Xi,v.sampleSize=v_,v.set=FE,v.setWith=$E,v.shuffle=m_,v.slice=gb,v.sortBy=__,v.sortedUniq=Sb,v.sortedUniqBy=wb,v.split=n1,v.spread=A_,v.tail=Tb,v.take=xb,v.takeRight=Cb,v.takeRightWhile=Rb,v.takeWhile=Ob,v.tap=Hb,v.throttle=P_,v.thru=jo,v.toArray=yd,v.toPairs=Td,v.toPairsIn=xd,v.toPath=L1,v.toPlainObject=_d,v.transform=ME,v.unary=D_,v.union=Ab,v.unionBy=Pb,v.unionWith=Db,v.uniq=Ib,v.uniqBy=Fb,v.uniqWith=$b,v.unset=NE,v.unzip=Zi,v.unzipWith=nd,v.update=LE,v.updateWith=jE,v.values=Gn,v.valuesIn=kE,v.without=Mb,v.words=Od,v.wrap=I_,v.xor=Nb,v.xorBy=Lb,v.xorWith=jb,v.zip=kb,v.zipObject=Bb,v.zipObjectDeep=Wb,v.zipWith=Ub,v.entries=Td,v.entriesIn=xd,v.extend=Ed,v.extendWith=Go,uu(v,v),v.add=k1,v.attempt=Ad,v.camelCase=HE,v.capitalize=Cd,v.ceil=B1,v.clamp=BE,v.clone=$_,v.cloneDeep=N_,v.cloneDeepWith=L_,v.cloneWith=M_,v.conformsTo=j_,v.deburr=Rd,v.defaultTo=y1,v.divide=W1,v.endsWith=qE,v.eq=fr,v.escape=GE,v.escapeRegExp=zE,v.every=Qb,v.find=t_,v.findIndex=Zf,v.findKey=hE,v.findLast=r_,v.findLastIndex=Qf,v.findLastKey=gE,v.floor=U1,v.forEach=od,v.forEachRight=sd,v.forIn=vE,v.forInRight=mE,v.forOwn=yE,v.forOwnRight=bE,v.get=nu,v.gt=k_,v.gte=B_,v.has=SE,v.hasIn=au,v.head=td,v.identity=Nt,v.includes=i_,v.indexOf=rb,v.inRange=WE,v.invoke=xE,v.isArguments=xn,v.isArray=ve,v.isArrayBuffer=W_,v.isArrayLike=$t,v.isArrayLikeObject=at,v.isBoolean=U_,v.isBuffer=tn,v.isDate=H_,v.isElement=q_,v.isEmpty=G_,v.isEqual=z_,v.isEqualWith=Y_,v.isError=tu,v.isFinite=V_,v.isFunction=Ir,v.isInteger=hd,v.isLength=Ho,v.isMap=gd,v.isMatch=K_,v.isMatchWith=J_,v.isNaN=X_,v.isNative=Z_,v.isNil=eE,v.isNull=Q_,v.isNumber=vd,v.isObject=Qe,v.isObjectLike=rt,v.isPlainObject=Ra,v.isRegExp=ru,v.isSafeInteger=tE,v.isSet=md,v.isString=qo,v.isSymbol=Ut,v.isTypedArray=qn,v.isUndefined=rE,v.isWeakMap=nE,v.isWeakSet=aE,v.join=ib,v.kebabCase=YE,v.last=rr,v.lastIndexOf=ub,v.lowerCase=VE,v.lowerFirst=KE,v.lt=oE,v.lte=sE,v.max=H1,v.maxBy=q1,v.mean=G1,v.meanBy=z1,v.min=Y1,v.minBy=V1,v.stubArray=lu,v.stubFalse=fu,v.stubObject=F1,v.stubString=$1,v.stubTrue=M1,v.multiply=K1,v.nth=cb,v.noConflict=x1,v.noop=cu,v.now=Bo,v.pad=JE,v.padEnd=XE,v.padStart=ZE,v.parseInt=QE,v.random=UE,v.reduce=d_,v.reduceRight=p_,v.repeat=e1,v.replace=t1,v.result=IE,v.round=J1,v.runInContext=R,v.sample=g_,v.size=y_,v.snakeCase=r1,v.some=b_,v.sortedIndex=vb,v.sortedIndexBy=mb,v.sortedIndexOf=yb,v.sortedLastIndex=bb,v.sortedLastIndexBy=_b,v.sortedLastIndexOf=Eb,v.startCase=a1,v.startsWith=o1,v.subtract=X1,v.sum=Z1,v.sumBy=Q1,v.template=s1,v.times=N1,v.toFinite=Fr,v.toInteger=me,v.toLength=bd,v.toLower=i1,v.toNumber=nr,v.toSafeInteger=iE,v.toString=De,v.toUpper=u1,v.trim=c1,v.trimEnd=l1,v.trimStart=f1,v.truncate=d1,v.unescape=p1,v.uniqueId=j1,v.upperCase=h1,v.upperFirst=ou,v.each=od,v.eachRight=sd,v.first=td,uu(v,function(){var n={};return yr(v,function(o,u){je.call(v.prototype,u)||(n[u]=o)}),n}(),{chain:!1}),v.VERSION=a,Xt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){v[n].placeholder=v}),Xt(["drop","take"],function(n,o){we.prototype[n]=function(u){u=u===t?1:lt(me(u),0);var f=this.__filtered__&&!o?new we(this):this.clone();return f.__filtered__?f.__takeCount__=bt(u,f.__takeCount__):f.__views__.push({size:bt(u,G),type:n+(f.__dir__<0?"Right":"")}),f},we.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),Xt(["filter","map","takeWhile"],function(n,o){var u=o+1,f=u==Pe||u==et;we.prototype[n]=function(h){var y=this.clone();return y.__iteratees__.push({iteratee:re(h,3),type:u}),y.__filtered__=y.__filtered__||f,y}}),Xt(["head","last"],function(n,o){var u="take"+(o?"Right":"");we.prototype[n]=function(){return this[u](1).value()[0]}}),Xt(["initial","tail"],function(n,o){var u="drop"+(o?"":"Right");we.prototype[n]=function(){return this.__filtered__?new we(this):this[u](1)}}),we.prototype.compact=function(){return this.filter(Nt)},we.prototype.find=function(n){return this.filter(n).head()},we.prototype.findLast=function(n){return this.reverse().find(n)},we.prototype.invokeMap=_e(function(n,o){return typeof n=="function"?new we(this):this.map(function(u){return Ea(u,n,o)})}),we.prototype.reject=function(n){return this.filter(Uo(re(n)))},we.prototype.slice=function(n,o){n=me(n);var u=this;return u.__filtered__&&(n>0||o<0)?new we(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),o!==t&&(o=me(o),u=o<0?u.dropRight(-o):u.take(o-n)),u)},we.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},we.prototype.toArray=function(){return this.take(G)},yr(we.prototype,function(n,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),f=/^(?:head|last)$/.test(o),h=v[f?"take"+(o=="last"?"Right":""):o],y=f||/^find/.test(o);h&&(v.prototype[o]=function(){var S=this.__wrapped__,T=f?[1]:arguments,A=S instanceof we,N=T[0],L=A||ve(S),B=function(Se){var Ce=h.apply(v,Vr([Se],T));return f&&V?Ce[0]:Ce};L&&u&&typeof N=="function"&&N.length!=1&&(A=L=!1);var V=this.__chain__,ee=!!this.__actions__.length,ae=y&&!V,be=A&&!ee;if(!y&&L){S=be?S:new we(this);var oe=n.apply(S,T);return oe.__actions__.push({func:jo,args:[B],thisArg:t}),new Qt(oe,V)}return ae&&be?n.apply(this,T):(oe=this.thru(B),ae?f?oe.value()[0]:oe.value():oe)})}),Xt(["pop","push","shift","sort","splice","unshift"],function(n){var o=co[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",f=/^(?:pop|shift)$/.test(n);v.prototype[n]=function(){var h=arguments;if(f&&!this.__chain__){var y=this.value();return o.apply(ve(y)?y:[],h)}return this[u](function(S){return o.apply(ve(S)?S:[],h)})}}),yr(we.prototype,function(n,o){var u=v[o];if(u){var f=u.name+"";je.call(kn,f)||(kn[f]=[]),kn[f].push({name:o,func:u})}}),kn[Do(t,P).name]=[{name:"wrapper",func:t}],we.prototype.clone=py,we.prototype.reverse=hy,we.prototype.value=gy,v.prototype.at=qb,v.prototype.chain=Gb,v.prototype.commit=zb,v.prototype.next=Yb,v.prototype.plant=Kb,v.prototype.reverse=Jb,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=Xb,v.prototype.first=v.prototype.head,ha&&(v.prototype[ha]=Vb),v},Nn=zm();mn?((mn.exports=Nn)._=Nn,ii._=Nn):gt._=Nn}).call(Nr)})(gs,gs.exports);var ze=gs.exports;const Oh=Rs(ze);function Pc(e){return`Debugger/${e}`}function Ah(e,r){var a;const t=(a=r.name)==null?void 0:a.replace(/\.(4dm|4qs)$/,"");return`#${e} ${t}`}const TR=typeof process=="object"&&process&&process.platform==="win32";var xR=TR?{sep:"\\"}:{sep:"/"},CR=Ph;function Ph(e,r,t){e instanceof RegExp&&(e=pp(e,t)),r instanceof RegExp&&(r=pp(r,t));var a=Dh(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 pp(e,r){var t=r.match(e);return t?t[0]:null}Ph.range=Dh;function Dh(e,r,t){var a,s,i,c,l,d=t.indexOf(e),p=t.indexOf(r,d+1),g=d;if(d>=0&&p>0){if(e===r)return[d,p];for(a=[],i=t.length;g>=0&&!l;)g==d?(a.push(g),d=t.indexOf(e,g+1)):a.length==1?l=[a.pop(),p]:(s=a.pop(),s<i&&(i=s,c=p),p=t.indexOf(r,g+1)),g=d<p&&d>=0?d:p;a.length&&(l=[i,c])}return l}var Ih=CR,RR=PR,Fh="\0SLASH"+Math.random()+"\0",$h="\0OPEN"+Math.random()+"\0",Dc="\0CLOSE"+Math.random()+"\0",Mh="\0COMMA"+Math.random()+"\0",Nh="\0PERIOD"+Math.random()+"\0";function wu(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function OR(e){return e.split("\\\\").join(Fh).split("\\{").join($h).split("\\}").join(Dc).split("\\,").join(Mh).split("\\.").join(Nh)}function AR(e){return e.split(Fh).join("\\").split($h).join("{").split(Dc).join("}").split(Mh).join(",").split(Nh).join(".")}function Lh(e){if(!e)return[""];var r=[],t=Ih("{","}",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=Lh(i);return i.length&&(c[c.length-1]+=l.shift(),c.push.apply(c,l)),r.push.apply(r,c),r}function PR(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Da(OR(e),!0).map(AR)):[]}function DR(e){return"{"+e+"}"}function IR(e){return/^-?0\d/.test(e)}function FR(e,r){return e<=r}function $R(e,r){return e>=r}function Da(e,r){var t=[],a=Ih("{","}",e);if(!a)return[e];var s=a.pre,i=a.post.length?Da(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),g=d||p,m=a.body.indexOf(",")>=0;if(!g&&!m)return a.post.match(/,.*\}/)?(e=a.pre+"{"+a.body+Dc+a.post,Da(e)):[e];var b;if(g)b=a.body.split(/\.\./);else if(b=Lh(a.body),b.length===1&&(b=Da(b[0],!1).map(DR),b.length===1))return i.map(function(We){return a.pre+b[0]+We});var E;if(g){var x=wu(b[0]),C=wu(b[1]),I=Math.max(b[0].length,b[1].length),P=b.length==3?Math.abs(wu(b[2])):1,k=FR,M=C<x;M&&(P*=-1,k=$R);var j=b.some(IR);E=[];for(var O=x;k(O,C);O+=P){var Y;if(p)Y=String.fromCharCode(O),Y==="\\"&&(Y="");else if(Y=String(O),j){var H=I-Y.length;if(H>0){var z=new Array(H+1).join("0");O<0?Y="-"+z+Y.slice(1):Y=z+Y}}E.push(Y)}}else{E=[];for(var te=0;te<b.length;te++)E.push.apply(E,Da(b[te],!1))}for(var te=0;te<E.length;te++)for(var c=0;c<i.length;c++){var l=s+E[te]+i[c];(!r||g||l)&&t.push(l)}}return t}const Gt=jh=(e,r,t={})=>(vs(r),!t.nocomment&&r.charAt(0)==="#"?!1:new Ms(r,t).match(e));var jh=Gt;const Qu=xR;Gt.sep=Qu.sep;const pr=Symbol("globstar **");Gt.GLOBSTAR=pr;const MR=RR,hp={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},ec="[^/]",Tu=ec+"*?",NR="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",LR="(?:(?!(?:\\/|^)\\.).)*?",kh=e=>e.split("").reduce((r,t)=>(r[t]=!0,r),{}),gp=kh("().*{}+?[]^$\\!"),jR=kh("[.("),vp=/\/+/;Gt.filter=(e,r={})=>(t,a,s)=>Gt(t,e,r);const rn=(e,r={})=>{const t={};return Object.keys(e).forEach(a=>t[a]=e[a]),Object.keys(r).forEach(a=>t[a]=r[a]),t};Gt.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Gt;const r=Gt,t=(a,s,i)=>r(a,s,rn(e,i));return t.Minimatch=class extends r.Minimatch{constructor(s,i){super(s,rn(e,i))}},t.Minimatch.defaults=a=>r.defaults(rn(e,a)).Minimatch,t.filter=(a,s)=>r.filter(a,rn(e,s)),t.defaults=a=>r.defaults(rn(e,a)),t.makeRe=(a,s)=>r.makeRe(a,rn(e,s)),t.braceExpand=(a,s)=>r.braceExpand(a,rn(e,s)),t.match=(a,s,i)=>r.match(a,s,rn(e,i)),t};Gt.braceExpand=(e,r)=>Bh(e,r);const Bh=(e,r={})=>(vs(e),r.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:MR(e)),kR=1024*64,vs=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>kR)throw new TypeError("pattern is too long")},xu=Symbol("subparse");Gt.makeRe=(e,r)=>new Ms(e,r||{}).makeRe();Gt.match=(e,r,t={})=>{const a=new Ms(r,t);return e=e.filter(s=>a.match(s)),a.options.nonull&&!e.length&&e.push(r),e};const BR=e=>e.replace(/\\(.)/g,"$1"),WR=e=>e.replace(/\\([^-\]])/g,"$1"),UR=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),HR=e=>e.replace(/[[\]\\]/g,"\\$&");class Ms{constructor(r,t){vs(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(vp)),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],g=r[i];if(this.debug(t,p,g),p===!1)return!1;if(p===pr){this.debug("GLOBSTAR",[t,p,g]);var m=i,b=c+1;if(b===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(`
|
|
35
|
+
globstar while`,r,m,t,b,E),this.matchOne(r.slice(m),t.slice(b),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,b);break}this.debug("globstar swallow a segment, and continue"),m++}return!!(a&&(this.debug(`
|
|
36
|
+
>>> no match, partial?`,r,m,t,b),m===l))}var x;if(typeof p=="string"?(x=g===p,this.debug("string match",p,g,x)):(x=g.match(p),this.debug("pattern match",p,g,x)),!x)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 Bh(this.pattern,this.options)}parse(r,t){vs(r);const a=this.options;if(r==="**")if(a.noglobstar)r="*";else return pr;if(r==="")return"";let s="",i=!1,c=!1;const l=[],d=[];let p,g=!1,m=-1,b=-1,E,x,C,I=r.charAt(0)===".",P=a.dot||I;const k=()=>I?"":P?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",M=H=>H.charAt(0)==="."?"":a.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",j=()=>{if(p){switch(p){case"*":s+=Tu,i=!0;break;case"?":s+=ec,i=!0;break;default:s+="\\"+p;break}this.debug("clearStateChar %j %j",p,s),p=!1}};for(let H=0,z;H<r.length&&(z=r.charAt(H));H++){if(this.debug("%s %s %s %j",r,H,s,z),c){if(z==="/")return!1;gp[z]&&(s+="\\"),s+=z,c=!1;continue}switch(z){case"/":return!1;case"\\":if(g&&r.charAt(H+1)==="-"){s+=z;continue}j(),c=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",r,H,s,z),g){this.debug(" in class"),z==="!"&&H===b+1&&(z="^"),s+=z;continue}this.debug("call clearStateChar %j",p),j(),p=z,a.noext&&j();continue;case"(":{if(g){s+="(";continue}if(!p){s+="\\(";continue}const te={type:p,start:H-1,reStart:s.length,open:hp[p].open,close:hp[p].close};this.debug(this.pattern," ",te),l.push(te),s+=te.open,te.start===0&&te.type!=="!"&&(I=!0,s+=M(r.slice(H+1))),this.debug("plType %j %j",p,s),p=!1;continue}case")":{const te=l[l.length-1];if(g||!te){s+="\\)";continue}l.pop(),j(),i=!0,x=te,s+=x.close,x.type==="!"&&d.push(Object.assign(x,{reEnd:s.length}));continue}case"|":{const te=l[l.length-1];if(g||!te){s+="\\|";continue}j(),s+="|",te.start===0&&te.type!=="!"&&(I=!0,s+=M(r.slice(H+1)));continue}case"[":if(j(),g){s+="\\"+z;continue}g=!0,b=H,m=s.length,s+=z;continue;case"]":if(H===b+1||!g){s+="\\"+z;continue}E=r.substring(b+1,H);try{RegExp("["+HR(WR(E))+"]"),s+=z}catch{s=s.substring(0,m)+"(?:$.)"}i=!0,g=!1;continue;default:j(),gp[z]&&!(z==="^"&&g)&&(s+="\\"),s+=z;break}}for(g&&(E=r.slice(b+1),C=this.parse(E,xu),s=s.substring(0,m)+"\\["+C[0],i=i||C[1]),x=l.pop();x;x=l.pop()){let H;H=s.slice(x.reStart+x.open.length),this.debug("setting tail",s,x),H=H.replace(/((?:\\{2}){0,64})(\\?)\|/g,(te,We,Te)=>(Te||(Te="\\"),We+We+Te+"|")),this.debug(`tail=%j
|
|
37
|
+
%s`,H,H,x,s);const z=x.type==="*"?Tu:x.type==="?"?ec:"\\"+x.type;i=!0,s=s.slice(0,x.reStart)+z+"\\("+H}j(),c&&(s+="\\\\");const O=jR[s.charAt(0)];for(let H=d.length-1;H>-1;H--){const z=d[H],te=s.slice(0,z.reStart),We=s.slice(z.reStart,z.reEnd-8);let Te=s.slice(z.reEnd);const it=s.slice(z.reEnd-8,z.reEnd)+Te,X=te.split(")").length,Pe=te.split("(").length-X;let ut=Te;for(let He=0;He<Pe;He++)ut=ut.replace(/\)[+*?]?/,"");Te=ut;const et=Te===""&&t!==xu?"(?:$|\\/)":"";s=te+We+Te+et+it}if(s!==""&&i&&(s="(?=.)"+s),O&&(s=k()+s),t===xu)return[s,i];if(a.nocase&&!i&&(i=r.toUpperCase()!==r.toLowerCase()),!i)return BR(r);const Y=a.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",Y),{_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?Tu:t.dot?NR:LR,s=t.nocase?"i":"";let i=r.map(c=>(c=c.map(l=>typeof l=="string"?UR(l):l===pr?pr:l._src).reduce((l,d)=>(l[l.length-1]===pr&&d===pr||l.push(d),l),[]),c.forEach((l,d)=>{l!==pr||c[d-1]===pr||(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]=pr))}),c.filter(l=>l!==pr).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;Qu.sep!=="/"&&(r=r.split(Qu.sep).join("/")),r=r.split(vp),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 Gt.defaults(r).Minimatch}}Gt.Minimatch=Ms;const Wh=Rs(jh),Uh=[{pattern:_.ROLES_TAB_PATH,editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:_.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"}}],Hh=[{pattern:"**/*.+(json|4DModel|WebForm)",type:"json"},{pattern:"**/*.+(4dm|txt|json|4qs)",type:"text"}];function qh(e){const r=e.split("/");return r.pop(),r.join("/")}function gr(e){const r=Uh.find(({pattern:t})=>Wh(e,t,{nocase:!0}));return r||{pattern:"",editor:{key:"editors:unknown",config:{language:"text"}}}}function Gh(e){const r=Hh.find(({pattern:t})=>Wh(e,t,{nocase:!0}));return r?r.type:"text"}var tc=function(e,r){return tc=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])},tc(e,r)};function Ns(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");tc(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function rc(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 ms(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 ys(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 jr(e){return typeof e=="function"}function zh(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 Cu=zh(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
38
|
+
`+t.map(function(a,s){return s+1+") "+a.toString()}).join(`
|
|
39
|
+
`):"",this.name="UnsubscriptionError",this.errors=t}});function nc(e,r){if(e){var t=e.indexOf(r);0<=t&&e.splice(t,1)}}var Ls=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=rc(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 g=this.initialTeardown;if(jr(g))try{g()}catch(C){i=C instanceof Cu?C.errors:[C]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var b=rc(m),E=b.next();!E.done;E=b.next()){var x=E.value;try{mp(x)}catch(C){i=i??[],C instanceof Cu?i=ys(ys([],ms(i)),ms(C.errors)):i.push(C)}}}catch(C){a={error:C}}finally{try{E&&!E.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}}if(i)throw new Cu(i)}},e.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)mp(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)&&nc(t,r)},e.prototype.remove=function(r){var t=this._finalizers;t&&nc(t,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}(),Yh=Ls.EMPTY;function Vh(e){return e instanceof Ls||e&&"closed"in e&&jr(e.remove)&&jr(e.add)&&jr(e.unsubscribe)}function mp(e){jr(e)?e():e.unsubscribe()}var Kh={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ac={setTimeout:function(e,r){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];var s=ac.delegate;return s!=null&&s.setTimeout?s.setTimeout.apply(s,ys([e,r],ms(t))):setTimeout.apply(void 0,ys([e,r],ms(t)))},clearTimeout:function(e){var r=ac.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function qR(e){ac.setTimeout(function(){throw e})}function yp(){}function es(e){e()}var Jh=function(e){Ns(r,e);function r(t){var a=e.call(this)||this;return a.isStopped=!1,t?(a.destination=t,Vh(t)&&t.add(a)):a.destination=VR,a}return r.create=function(t,a,s){return new oc(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}(Ls),GR=Function.prototype.bind;function Ru(e,r){return GR.call(e,r)}var zR=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){Yo(a)}},e.prototype.error=function(r){var t=this.partialObserver;if(t.error)try{t.error(r)}catch(a){Yo(a)}else Yo(r)},e.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(t){Yo(t)}},e}(),oc=function(e){Ns(r,e);function r(t,a,s){var i=e.call(this)||this,c;if(jr(t)||!t)c={next:t??void 0,error:a??void 0,complete:s??void 0};else{var l;i&&Kh.useDeprecatedNextContext?(l=Object.create(t),l.unsubscribe=function(){return i.unsubscribe()},c={next:t.next&&Ru(t.next,l),error:t.error&&Ru(t.error,l),complete:t.complete&&Ru(t.complete,l)}):c=t}return i.destination=new zR(c),i}return r}(Jh);function Yo(e){qR(e)}function YR(e){throw e}var VR={closed:!0,next:yp,error:YR,complete:yp},KR=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function JR(e){return e}function XR(e){return e.length===0?JR:e.length===1?e[0]:function(t){return e.reduce(function(a,s){return s(a)},t)}}var bp=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=QR(r)?r:new oc(r,t,a);return es(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=_p(t),new t(function(s,i){var c=new oc({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[KR]=function(){return this},e.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return XR(r)(this)},e.prototype.toPromise=function(r){var t=this;return r=_p(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 _p(e){var r;return(r=e??Kh.Promise)!==null&&r!==void 0?r:Promise}function ZR(e){return e&&jr(e.next)&&jr(e.error)&&jr(e.complete)}function QR(e){return e&&e instanceof Jh||ZR(e)&&Vh(e)}var eO=zh(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Xh=function(e){Ns(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 Ep(this,this);return a.operator=t,a},r.prototype._throwIfClosed=function(){if(this.closed)throw new eO},r.prototype.next=function(t){var a=this;es(function(){var s,i;if(a._throwIfClosed(),!a.isStopped){a.currentObservers||(a.currentObservers=Array.from(a.observers));try{for(var c=rc(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;es(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;es(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?Yh:(this.currentObservers=null,l.push(t),new Ls(function(){a.currentObservers=null,nc(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 bp;return t.source=this,t},r.create=function(t,a){return new Ep(t,a)},r}(bp),Ep=function(e){Ns(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:Yh},r}(Xh);const Zh=new Xh;var sc={exports:{}},Vo={exports:{}},Ie={};/** @license React v16.13.1
|
|
35
40
|
* react-is.production.min.js
|
|
36
41
|
*
|
|
37
42
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
38
43
|
*
|
|
39
44
|
* This source code is licensed under the MIT license found in the
|
|
40
45
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var
|
|
46
|
+
*/var Sp;function tO(){if(Sp)return Ie;Sp=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,g=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,I=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function M(O){if(typeof O=="object"&&O!==null){var Y=O.$$typeof;switch(Y){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 g:case x:case E:case c:return O;default:return Y}}case t:return Y}}}function j(O){return M(O)===p}return Ie.AsyncMode=d,Ie.ConcurrentMode=p,Ie.ContextConsumer=l,Ie.ContextProvider=c,Ie.Element=r,Ie.ForwardRef=g,Ie.Fragment=a,Ie.Lazy=x,Ie.Memo=E,Ie.Portal=t,Ie.Profiler=i,Ie.StrictMode=s,Ie.Suspense=m,Ie.isAsyncMode=function(O){return j(O)||M(O)===d},Ie.isConcurrentMode=j,Ie.isContextConsumer=function(O){return M(O)===l},Ie.isContextProvider=function(O){return M(O)===c},Ie.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===r},Ie.isForwardRef=function(O){return M(O)===g},Ie.isFragment=function(O){return M(O)===a},Ie.isLazy=function(O){return M(O)===x},Ie.isMemo=function(O){return M(O)===E},Ie.isPortal=function(O){return M(O)===t},Ie.isProfiler=function(O){return M(O)===i},Ie.isStrictMode=function(O){return M(O)===s},Ie.isSuspense=function(O){return M(O)===m},Ie.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===a||O===p||O===i||O===s||O===m||O===b||typeof O=="object"&&O!==null&&(O.$$typeof===x||O.$$typeof===E||O.$$typeof===c||O.$$typeof===l||O.$$typeof===g||O.$$typeof===I||O.$$typeof===P||O.$$typeof===k||O.$$typeof===C)},Ie.typeOf=M,Ie}var Fe={};/** @license React v16.13.1
|
|
42
47
|
* react-is.development.js
|
|
43
48
|
*
|
|
44
49
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
45
50
|
*
|
|
46
51
|
* This source code is licensed under the MIT license found in the
|
|
47
52
|
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var
|
|
53
|
+
*/var wp;function rO(){return wp||(wp=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,g=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,I=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function M(F){return typeof F=="string"||typeof F=="function"||F===a||F===p||F===i||F===s||F===m||F===b||typeof F=="object"&&F!==null&&(F.$$typeof===x||F.$$typeof===E||F.$$typeof===c||F.$$typeof===l||F.$$typeof===g||F.$$typeof===I||F.$$typeof===P||F.$$typeof===k||F.$$typeof===C)}function j(F){if(typeof F=="object"&&F!==null){var Ye=F.$$typeof;switch(Ye){case r:var qe=F.type;switch(qe){case d:case p:case a:case i:case s:case m:return qe;default:var yt=qe&&qe.$$typeof;switch(yt){case l:case g:case x:case E:case c:return yt;default:return Ye}}case t:return Ye}}}var O=d,Y=p,H=l,z=c,te=r,We=g,Te=a,it=x,X=E,Pe=t,ut=i,et=s,He=m,nt=!1;function Yt(F){return nt||(nt=!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.")),W(F)||j(F)===d}function W(F){return j(F)===p}function G(F){return j(F)===l}function de(F){return j(F)===c}function le(F){return typeof F=="object"&&F!==null&&F.$$typeof===r}function se(F){return j(F)===g}function fe(F){return j(F)===a}function ne(F){return j(F)===x}function ce(F){return j(F)===E}function ue(F){return j(F)===t}function he(F){return j(F)===i}function ge(F){return j(F)===s}function K(F){return j(F)===m}Fe.AsyncMode=O,Fe.ConcurrentMode=Y,Fe.ContextConsumer=H,Fe.ContextProvider=z,Fe.Element=te,Fe.ForwardRef=We,Fe.Fragment=Te,Fe.Lazy=it,Fe.Memo=X,Fe.Portal=Pe,Fe.Profiler=ut,Fe.StrictMode=et,Fe.Suspense=He,Fe.isAsyncMode=Yt,Fe.isConcurrentMode=W,Fe.isContextConsumer=G,Fe.isContextProvider=de,Fe.isElement=le,Fe.isForwardRef=se,Fe.isFragment=fe,Fe.isLazy=ne,Fe.isMemo=ce,Fe.isPortal=ue,Fe.isProfiler=he,Fe.isStrictMode=ge,Fe.isSuspense=K,Fe.isValidElementType=M,Fe.typeOf=j}()),Fe}var Tp;function Qh(){return Tp||(Tp=1,process.env.NODE_ENV==="production"?Vo.exports=tO():Vo.exports=rO()),Vo.exports}/*
|
|
49
54
|
object-assign
|
|
50
55
|
(c) Sindre Sorhus
|
|
51
56
|
@license MIT
|
|
52
|
-
*/var
|
|
53
|
-
Valid keys: `+JSON.stringify(Object.keys(W),null," "));var F=K(ce,ge,se,fe,ne+"."+ge,t);if(F)return F}return null}return I(G)}function Pe(W){switch(typeof W){case"number":case"string":case"undefined":return!0;case"boolean":return!W;case"object":if(Array.isArray(W))return W.every(Pe);if(W===null||l(W))return!0;var G=m(W);if(G){var de=G.call(W),le;if(G!==W.entries){for(;!(le=de.next()).done;)if(!Pe(le.value))return!1}else for(;!(le=de.next()).done;){var se=le.value;if(se&&!Pe(se[1]))return!1}}else return!1;return!0;default:return!1}}function ut(W,G){return W==="symbol"?!0:G?G["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&G instanceof Symbol:!1}function et(W){var G=typeof W;return Array.isArray(W)?"array":W instanceof RegExp?"object":ut(G,W)?"symbol":G}function He(W){if(typeof W>"u"||W===null)return""+W;var G=et(W);if(G==="object"){if(W instanceof Date)return"date";if(W instanceof RegExp)return"regexp"}return G}function nt(W){var G=He(W);switch(G){case"array":case"object":return"an "+G;case"boolean":case"date":case"regexp":return"a "+G;default:return G}}function Yt(W){return!W.constructor||!W.constructor.name?b:W.constructor.name}return E.checkPropTypes=s,E.resetWarningCache=s.resetWarningCache,E.PropTypes=E,E},
|
|
57
|
+
*/var Ou,xp;function Ic(){if(xp)return Ou;xp=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(g){return c[g]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(g){p[g]=g}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ou=s()?Object.assign:function(i,c){for(var l,d=a(i),p,g=1;g<arguments.length;g++){l=Object(arguments[g]);for(var m in l)r.call(l,m)&&(d[m]=l[m]);if(e){p=e(l);for(var b=0;b<p.length;b++)t.call(l,p[b])&&(d[p[b]]=l[p[b]])}}return d},Ou}var Au,Cp;function Fc(){if(Cp)return Au;Cp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Au=e,Au}var Pu,Rp;function eg(){return Rp||(Rp=1,Pu=Function.call.bind(Object.prototype.hasOwnProperty)),Pu}var Du,Op;function nO(){if(Op)return Du;Op=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=Fc(),t={},a=eg();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 g in i)if(a(i,g)){var m;try{if(typeof i[g]!="function"){var b=Error((d||"React class")+": "+l+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}m=i[g](c,g,d,l,null,r)}catch(x){m=x}if(m&&!(m instanceof Error)&&e((d||"React class")+": type specification of "+l+" `"+g+"` 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={})},Du=s,Du}var Iu,Ap;function aO(){if(Ap)return Iu;Ap=1;var e=Qh(),r=Ic(),t=Fc(),a=eg(),s=nO(),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 Iu=function(l,d){var p=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function m(W){var G=W&&(p&&W[p]||W[g]);if(typeof G=="function")return G}var b="<<anonymous>>",E={array:P("array"),bigint:P("bigint"),bool:P("boolean"),func:P("function"),number:P("number"),object:P("object"),string:P("string"),symbol:P("symbol"),any:k(),arrayOf:M,element:j(),elementType:O(),instanceOf:Y,node:We(),objectOf:z,oneOf:H,oneOfType:te,shape:it,exact:X};function x(W,G){return W===G?W!==0||1/W===1/G:W!==W&&G!==G}function C(W,G){this.message=W,this.data=G&&typeof G=="object"?G:{},this.stack=""}C.prototype=Error.prototype;function I(W){if(process.env.NODE_ENV!=="production")var G={},de=0;function le(fe,ne,ce,ue,he,ge,K){if(ue=ue||b,ge=ge||ce,K!==t){if(d){var F=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 F.name="Invariant Violation",F}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ye=ue+":"+ce;!G[Ye]&&de<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."),G[Ye]=!0,de++)}}return ne[ce]==null?fe?ne[ce]===null?new C("The "+he+" `"+ge+"` is marked as required "+("in `"+ue+"`, but its value is `null`.")):new C("The "+he+" `"+ge+"` is marked as required in "+("`"+ue+"`, but its value is `undefined`.")):null:W(ne,ce,ue,he,ge)}var se=le.bind(null,!1);return se.isRequired=le.bind(null,!0),se}function P(W){function G(de,le,se,fe,ne,ce){var ue=de[le],he=et(ue);if(he!==W){var ge=He(ue);return new C("Invalid "+fe+" `"+ne+"` of type "+("`"+ge+"` supplied to `"+se+"`, expected ")+("`"+W+"`."),{expectedType:W})}return null}return I(G)}function k(){return I(c)}function M(W){function G(de,le,se,fe,ne){if(typeof W!="function")return new C("Property `"+ne+"` of component `"+se+"` has invalid PropType notation inside arrayOf.");var ce=de[le];if(!Array.isArray(ce)){var ue=et(ce);return new C("Invalid "+fe+" `"+ne+"` of type "+("`"+ue+"` supplied to `"+se+"`, expected an array."))}for(var he=0;he<ce.length;he++){var ge=W(ce,he,se,fe,ne+"["+he+"]",t);if(ge instanceof Error)return ge}return null}return I(G)}function j(){function W(G,de,le,se,fe){var ne=G[de];if(!l(ne)){var ce=et(ne);return new C("Invalid "+se+" `"+fe+"` of type "+("`"+ce+"` supplied to `"+le+"`, expected a single ReactElement."))}return null}return I(W)}function O(){function W(G,de,le,se,fe){var ne=G[de];if(!e.isValidElementType(ne)){var ce=et(ne);return new C("Invalid "+se+" `"+fe+"` of type "+("`"+ce+"` supplied to `"+le+"`, expected a single ReactElement type."))}return null}return I(W)}function Y(W){function G(de,le,se,fe,ne){if(!(de[le]instanceof W)){var ce=W.name||b,ue=Yt(de[le]);return new C("Invalid "+fe+" `"+ne+"` of type "+("`"+ue+"` supplied to `"+se+"`, expected ")+("instance of `"+ce+"`."))}return null}return I(G)}function H(W){if(!Array.isArray(W))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 G(de,le,se,fe,ne){for(var ce=de[le],ue=0;ue<W.length;ue++)if(x(ce,W[ue]))return null;var he=JSON.stringify(W,function(K,F){var Ye=He(F);return Ye==="symbol"?String(F):F});return new C("Invalid "+fe+" `"+ne+"` of value `"+String(ce)+"` "+("supplied to `"+se+"`, expected one of "+he+"."))}return I(G)}function z(W){function G(de,le,se,fe,ne){if(typeof W!="function")return new C("Property `"+ne+"` of component `"+se+"` has invalid PropType notation inside objectOf.");var ce=de[le],ue=et(ce);if(ue!=="object")return new C("Invalid "+fe+" `"+ne+"` of type "+("`"+ue+"` supplied to `"+se+"`, expected an object."));for(var he in ce)if(a(ce,he)){var ge=W(ce,he,se,fe,ne+"."+he,t);if(ge instanceof Error)return ge}return null}return I(G)}function te(W){if(!Array.isArray(W))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var G=0;G<W.length;G++){var de=W[G];if(typeof de!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+nt(de)+" at index "+G+"."),c}function le(se,fe,ne,ce,ue){for(var he=[],ge=0;ge<W.length;ge++){var K=W[ge],F=K(se,fe,ne,ce,ue,t);if(F==null)return null;F.data&&a(F.data,"expectedType")&&he.push(F.data.expectedType)}var Ye=he.length>0?", expected one of type ["+he.join(", ")+"]":"";return new C("Invalid "+ce+" `"+ue+"` supplied to "+("`"+ne+"`"+Ye+"."))}return I(le)}function We(){function W(G,de,le,se,fe){return Pe(G[de])?null:new C("Invalid "+se+" `"+fe+"` supplied to "+("`"+le+"`, expected a ReactNode."))}return I(W)}function Te(W,G,de,le,se){return new C((W||"React class")+": "+G+" type `"+de+"."+le+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+se+"`.")}function it(W){function G(de,le,se,fe,ne){var ce=de[le],ue=et(ce);if(ue!=="object")return new C("Invalid "+fe+" `"+ne+"` of type `"+ue+"` "+("supplied to `"+se+"`, expected `object`."));for(var he in W){var ge=W[he];if(typeof ge!="function")return Te(se,fe,ne,he,He(ge));var K=ge(ce,he,se,fe,ne+"."+he,t);if(K)return K}return null}return I(G)}function X(W){function G(de,le,se,fe,ne){var ce=de[le],ue=et(ce);if(ue!=="object")return new C("Invalid "+fe+" `"+ne+"` of type `"+ue+"` "+("supplied to `"+se+"`, expected `object`."));var he=r({},de[le],W);for(var ge in he){var K=W[ge];if(a(W,ge)&&typeof K!="function")return Te(se,fe,ne,ge,He(K));if(!K)return new C("Invalid "+fe+" `"+ne+"` key `"+ge+"` supplied to `"+se+"`.\nBad object: "+JSON.stringify(de[le],null," ")+`
|
|
58
|
+
Valid keys: `+JSON.stringify(Object.keys(W),null," "));var F=K(ce,ge,se,fe,ne+"."+ge,t);if(F)return F}return null}return I(G)}function Pe(W){switch(typeof W){case"number":case"string":case"undefined":return!0;case"boolean":return!W;case"object":if(Array.isArray(W))return W.every(Pe);if(W===null||l(W))return!0;var G=m(W);if(G){var de=G.call(W),le;if(G!==W.entries){for(;!(le=de.next()).done;)if(!Pe(le.value))return!1}else for(;!(le=de.next()).done;){var se=le.value;if(se&&!Pe(se[1]))return!1}}else return!1;return!0;default:return!1}}function ut(W,G){return W==="symbol"?!0:G?G["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&G instanceof Symbol:!1}function et(W){var G=typeof W;return Array.isArray(W)?"array":W instanceof RegExp?"object":ut(G,W)?"symbol":G}function He(W){if(typeof W>"u"||W===null)return""+W;var G=et(W);if(G==="object"){if(W instanceof Date)return"date";if(W instanceof RegExp)return"regexp"}return G}function nt(W){var G=He(W);switch(G){case"array":case"object":return"an "+G;case"boolean":case"date":case"regexp":return"a "+G;default:return G}}function Yt(W){return!W.constructor||!W.constructor.name?b:W.constructor.name}return E.checkPropTypes=s,E.resetWarningCache=s.resetWarningCache,E.PropTypes=E,E},Iu}var Fu,Pp;function oO(){if(Pp)return Fu;Pp=1;var e=Fc();function r(){}function t(){}return t.resetWarningCache=r,Fu=function(){function a(c,l,d,p,g,m){if(m!==e){var b=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 b.name="Invariant Violation",b}}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},Fu}if(process.env.NODE_ENV!=="production"){var sO=Qh(),iO=!0;sc.exports=aO()(sO.isElement,iO)}else sc.exports=oO()();var uO=sc.exports;const Yn=Rs(uO);var Wr=Ke.createContext(null);process.env.NODE_ENV!=="production"&&(Wr.displayName="ReactRedux");function cO(e){e()}var tg=cO,lO=function(r){return tg=r},fO=function(){return tg};function dO(){var e=fO(),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 Dp={notify:function(){},get:function(){return[]}};function rg(e,r){var t,a=Dp;function s(m){return d(),a.subscribe(m)}function i(){a.notify()}function c(){g.onStateChange&&g.onStateChange()}function l(){return!!t}function d(){t||(t=r?r.addNestedSub(c):e.subscribe(c),a=dO())}function p(){t&&(t(),t=void 0,a.clear(),a=Dp)}var g={addNestedSub:s,notifyNestedSubs:i,handleChangeWrapper:c,isSubscribed:l,trySubscribe:d,tryUnsubscribe:p,getListeners:function(){return a}};return g}var ic=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Ke.useLayoutEffect:Ke.useEffect;function ng(e){var r=e.store,t=e.context,a=e.children,s=Ke.useMemo(function(){var l=rg(r);return{store:r,subscription:l}},[r]),i=Ke.useMemo(function(){return r.getState()},[r]);ic(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||Wr;return Ke.createElement(c.Provider,{value:s},a)}process.env.NODE_ENV!=="production"&&(ng.propTypes={store:Yn.shape({subscribe:Yn.func.isRequired,dispatch:Yn.func.isRequired,getState:Yn.func.isRequired}),context:Yn.object,children:Yn.any});var uc={exports:{}},$e={};/** @license React v16.13.1
|
|
54
59
|
* react-is.production.min.js
|
|
55
60
|
*
|
|
56
61
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
57
62
|
*
|
|
58
63
|
* This source code is licensed under the MIT license found in the
|
|
59
64
|
* LICENSE file in the root directory of this source tree.
|
|
60
|
-
*/var
|
|
65
|
+
*/var Ip;function pO(){if(Ip)return $e;Ip=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,g=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,I=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function M(O){if(typeof O=="object"&&O!==null){var Y=O.$$typeof;switch(Y){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 g:case x:case E:case c:return O;default:return Y}}case t:return Y}}}function j(O){return M(O)===p}return $e.AsyncMode=d,$e.ConcurrentMode=p,$e.ContextConsumer=l,$e.ContextProvider=c,$e.Element=r,$e.ForwardRef=g,$e.Fragment=a,$e.Lazy=x,$e.Memo=E,$e.Portal=t,$e.Profiler=i,$e.StrictMode=s,$e.Suspense=m,$e.isAsyncMode=function(O){return j(O)||M(O)===d},$e.isConcurrentMode=j,$e.isContextConsumer=function(O){return M(O)===l},$e.isContextProvider=function(O){return M(O)===c},$e.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===r},$e.isForwardRef=function(O){return M(O)===g},$e.isFragment=function(O){return M(O)===a},$e.isLazy=function(O){return M(O)===x},$e.isMemo=function(O){return M(O)===E},$e.isPortal=function(O){return M(O)===t},$e.isProfiler=function(O){return M(O)===i},$e.isStrictMode=function(O){return M(O)===s},$e.isSuspense=function(O){return M(O)===m},$e.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===a||O===p||O===i||O===s||O===m||O===b||typeof O=="object"&&O!==null&&(O.$$typeof===x||O.$$typeof===E||O.$$typeof===c||O.$$typeof===l||O.$$typeof===g||O.$$typeof===I||O.$$typeof===P||O.$$typeof===k||O.$$typeof===C)},$e.typeOf=M,$e}var Me={};/** @license React v16.13.1
|
|
61
66
|
* react-is.development.js
|
|
62
67
|
*
|
|
63
68
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
64
69
|
*
|
|
65
70
|
* This source code is licensed under the MIT license found in the
|
|
66
71
|
* LICENSE file in the root directory of this source tree.
|
|
67
|
-
*/var
|
|
72
|
+
*/var Fp;function hO(){return Fp||(Fp=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,g=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,I=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function M(F){return typeof F=="string"||typeof F=="function"||F===a||F===p||F===i||F===s||F===m||F===b||typeof F=="object"&&F!==null&&(F.$$typeof===x||F.$$typeof===E||F.$$typeof===c||F.$$typeof===l||F.$$typeof===g||F.$$typeof===I||F.$$typeof===P||F.$$typeof===k||F.$$typeof===C)}function j(F){if(typeof F=="object"&&F!==null){var Ye=F.$$typeof;switch(Ye){case r:var qe=F.type;switch(qe){case d:case p:case a:case i:case s:case m:return qe;default:var yt=qe&&qe.$$typeof;switch(yt){case l:case g:case x:case E:case c:return yt;default:return Ye}}case t:return Ye}}}var O=d,Y=p,H=l,z=c,te=r,We=g,Te=a,it=x,X=E,Pe=t,ut=i,et=s,He=m,nt=!1;function Yt(F){return nt||(nt=!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.")),W(F)||j(F)===d}function W(F){return j(F)===p}function G(F){return j(F)===l}function de(F){return j(F)===c}function le(F){return typeof F=="object"&&F!==null&&F.$$typeof===r}function se(F){return j(F)===g}function fe(F){return j(F)===a}function ne(F){return j(F)===x}function ce(F){return j(F)===E}function ue(F){return j(F)===t}function he(F){return j(F)===i}function ge(F){return j(F)===s}function K(F){return j(F)===m}Me.AsyncMode=O,Me.ConcurrentMode=Y,Me.ContextConsumer=H,Me.ContextProvider=z,Me.Element=te,Me.ForwardRef=We,Me.Fragment=Te,Me.Lazy=it,Me.Memo=X,Me.Portal=Pe,Me.Profiler=ut,Me.StrictMode=et,Me.Suspense=He,Me.isAsyncMode=Yt,Me.isConcurrentMode=W,Me.isContextConsumer=G,Me.isContextProvider=de,Me.isElement=le,Me.isForwardRef=se,Me.isFragment=fe,Me.isLazy=ne,Me.isMemo=ce,Me.isPortal=ue,Me.isProfiler=he,Me.isStrictMode=ge,Me.isSuspense=K,Me.isValidElementType=M,Me.typeOf=j}()),Me}process.env.NODE_ENV==="production"?uc.exports=pO():uc.exports=hO();var gO=uc.exports,ag=gO,vO={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},mO={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},og={};og[ag.ForwardRef]=vO;og[ag.Memo]=mO;var ke={};/** @license React v17.0.2
|
|
68
73
|
* react-is.production.min.js
|
|
69
74
|
*
|
|
70
75
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
71
76
|
*
|
|
72
77
|
* This source code is licensed under the MIT license found in the
|
|
73
78
|
* LICENSE file in the root directory of this source tree.
|
|
74
|
-
*/var
|
|
79
|
+
*/var $p;function yO(){if($p)return ke;$p=1;var e=60103,r=60106,t=60107,a=60108,s=60114,i=60109,c=60110,l=60112,d=60113,p=60120,g=60115,m=60116,b=60121,E=60122,x=60117,C=60129,I=60131;if(typeof Symbol=="function"&&Symbol.for){var P=Symbol.for;e=P("react.element"),r=P("react.portal"),t=P("react.fragment"),a=P("react.strict_mode"),s=P("react.profiler"),i=P("react.provider"),c=P("react.context"),l=P("react.forward_ref"),d=P("react.suspense"),p=P("react.suspense_list"),g=P("react.memo"),m=P("react.lazy"),b=P("react.block"),E=P("react.server.block"),x=P("react.fundamental"),C=P("react.debug_trace_mode"),I=P("react.legacy_hidden")}function k(X){if(typeof X=="object"&&X!==null){var Pe=X.$$typeof;switch(Pe){case e:switch(X=X.type,X){case t:case s:case a:case d:case p:return X;default:switch(X=X&&X.$$typeof,X){case c:case l:case m:case g:case i:return X;default:return Pe}}case r:return Pe}}}var M=i,j=e,O=l,Y=t,H=m,z=g,te=r,We=s,Te=a,it=d;return ke.ContextConsumer=c,ke.ContextProvider=M,ke.Element=j,ke.ForwardRef=O,ke.Fragment=Y,ke.Lazy=H,ke.Memo=z,ke.Portal=te,ke.Profiler=We,ke.StrictMode=Te,ke.Suspense=it,ke.isAsyncMode=function(){return!1},ke.isConcurrentMode=function(){return!1},ke.isContextConsumer=function(X){return k(X)===c},ke.isContextProvider=function(X){return k(X)===i},ke.isElement=function(X){return typeof X=="object"&&X!==null&&X.$$typeof===e},ke.isForwardRef=function(X){return k(X)===l},ke.isFragment=function(X){return k(X)===t},ke.isLazy=function(X){return k(X)===m},ke.isMemo=function(X){return k(X)===g},ke.isPortal=function(X){return k(X)===r},ke.isProfiler=function(X){return k(X)===s},ke.isStrictMode=function(X){return k(X)===a},ke.isSuspense=function(X){return k(X)===d},ke.isValidElementType=function(X){return typeof X=="string"||typeof X=="function"||X===t||X===s||X===C||X===a||X===d||X===p||X===I||typeof X=="object"&&X!==null&&(X.$$typeof===m||X.$$typeof===g||X.$$typeof===i||X.$$typeof===c||X.$$typeof===l||X.$$typeof===x||X.$$typeof===b||X[0]===E)},ke.typeOf=k,ke}var Be={};/** @license React v17.0.2
|
|
75
80
|
* react-is.development.js
|
|
76
81
|
*
|
|
77
82
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
78
83
|
*
|
|
79
84
|
* This source code is licensed under the MIT license found in the
|
|
80
85
|
* LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/var
|
|
86
|
+
*/var Mp;function bO(){return Mp||(Mp=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,g=60115,m=60116,b=60121,E=60122,x=60117,C=60129,I=60131;if(typeof Symbol=="function"&&Symbol.for){var P=Symbol.for;e=P("react.element"),r=P("react.portal"),t=P("react.fragment"),a=P("react.strict_mode"),s=P("react.profiler"),i=P("react.provider"),c=P("react.context"),l=P("react.forward_ref"),d=P("react.suspense"),p=P("react.suspense_list"),g=P("react.memo"),m=P("react.lazy"),b=P("react.block"),E=P("react.server.block"),x=P("react.fundamental"),P("react.scope"),P("react.opaque.id"),C=P("react.debug_trace_mode"),P("react.offscreen"),I=P("react.legacy_hidden")}var k=!1;function M(K){return!!(typeof K=="string"||typeof K=="function"||K===t||K===s||K===C||K===a||K===d||K===p||K===I||k||typeof K=="object"&&K!==null&&(K.$$typeof===m||K.$$typeof===g||K.$$typeof===i||K.$$typeof===c||K.$$typeof===l||K.$$typeof===x||K.$$typeof===b||K[0]===E))}function j(K){if(typeof K=="object"&&K!==null){var F=K.$$typeof;switch(F){case e:var Ye=K.type;switch(Ye){case t:case s:case a:case d:case p:return Ye;default:var qe=Ye&&Ye.$$typeof;switch(qe){case c:case l:case m:case g:case i:return qe;default:return F}}case r:return F}}}var O=c,Y=i,H=e,z=l,te=t,We=m,Te=g,it=r,X=s,Pe=a,ut=d,et=!1,He=!1;function nt(K){return et||(et=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Yt(K){return He||(He=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function W(K){return j(K)===c}function G(K){return j(K)===i}function de(K){return typeof K=="object"&&K!==null&&K.$$typeof===e}function le(K){return j(K)===l}function se(K){return j(K)===t}function fe(K){return j(K)===m}function ne(K){return j(K)===g}function ce(K){return j(K)===r}function ue(K){return j(K)===s}function he(K){return j(K)===a}function ge(K){return j(K)===d}Be.ContextConsumer=O,Be.ContextProvider=Y,Be.Element=H,Be.ForwardRef=z,Be.Fragment=te,Be.Lazy=We,Be.Memo=Te,Be.Portal=it,Be.Profiler=X,Be.StrictMode=Pe,Be.Suspense=ut,Be.isAsyncMode=nt,Be.isConcurrentMode=Yt,Be.isContextConsumer=W,Be.isContextProvider=G,Be.isElement=de,Be.isForwardRef=le,Be.isFragment=se,Be.isLazy=fe,Be.isMemo=ne,Be.isPortal=ce,Be.isProfiler=ue,Be.isStrictMode=he,Be.isSuspense=ge,Be.isValidElementType=M,Be.typeOf=j}()),Be}process.env.NODE_ENV==="production"?yO():bO();function Np(e,r){return e===r?e!==0||r!==0||1/e===1/r:e!==e&&r!==r}function sg(e,r){if(Np(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])||!Np(e[t[s]],r[t[s]]))return!1;return!0}function ig(){var e=Ke.useContext(Wr);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 ug(e){e===void 0&&(e=Wr);var r=e===Wr?ig:function(){return Ke.useContext(e)};return function(){var a=r(),s=a.store;return s}}var _O=ug();function EO(e){e===void 0&&(e=Wr);var r=e===Wr?_O:ug(e);return function(){var a=r();return a.dispatch}}var SO=EO(),wO=function(r,t){return r===t};function TO(e,r,t,a){var s=Ke.useReducer(function(x){return x+1},0),i=s[1],c=Ke.useMemo(function(){return rg(t,a)},[t,a]),l=Ke.useRef(),d=Ke.useRef(),p=Ke.useRef(),g=Ke.useRef(),m=t.getState(),b;try{if(e!==d.current||m!==p.current||l.current){var E=e(m);g.current===void 0||!r(E,g.current)?b=E:b=g.current}else b=g.current}catch(x){throw l.current&&(x.message+=`
|
|
82
87
|
The error may be correlated with this previous error:
|
|
83
88
|
`+l.current.stack+`
|
|
84
89
|
|
|
85
|
-
`),x}return tc(function(){d.current=e,p.current=m,g.current=b,l.current=void 0}),tc(function(){function x(){try{var C=t.getState();if(C===p.current)return;var I=d.current(C);if(r(I,g.current))return;g.current=I,p.current=C}catch(P){l.current=P}i()}return c.onStateChange=x,c.trySubscribe(),x(),function(){return c.tryUnsubscribe()}},[t,c]),b}function KR(e){e===void 0&&(e=Wr);var r=e===Wr?kh:function(){return Ke.useContext(e)};return function(a,s){if(s===void 0&&(s=YR),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=VR(a,s,c,l);return Ke.useDebugValue(d),d}}var JR=KR();MR(rS.unstable_batchedUpdates);const Kn=Q("catalog/fetchCatalog",async(e,{rejectWithValue:r})=>{var t;try{const a=await _.getCatalog(),s=new Map,i=new Map;return(t=a==null?void 0:a.dataClasses)==null||t.forEach(({methods:c=[],...l})=>{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")}});function XR(){const e=Bh();return{get:()=>Vs().getState().catalog,fetch:()=>e(Kn()),refresh:()=>Ga()}}function Ga(e=2e3){return setTimeout(()=>{Vs().dispatch(Kn())},e)}const ZR=typeof process=="object"&&process&&process.platform==="win32";var QR=ZR?{sep:"\\"}:{sep:"/"},eO=Wh;function Wh(e,r,t){e instanceof RegExp&&(e=Op(e,t)),r instanceof RegExp&&(r=Op(r,t));var a=Uh(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 Op(e,r){var t=r.match(e);return t?t[0]:null}Wh.range=Uh;function Uh(e,r,t){var a,s,i,c,l,d=t.indexOf(e),p=t.indexOf(r,d+1),g=d;if(d>=0&&p>0){if(e===r)return[d,p];for(a=[],i=t.length;g>=0&&!l;)g==d?(a.push(g),d=t.indexOf(e,g+1)):a.length==1?l=[a.pop(),p]:(s=a.pop(),s<i&&(i=s,c=p),p=t.indexOf(r,g+1)),g=d<p&&d>=0?d:p;a.length&&(l=[i,c])}return l}var Hh=eO,tO=aO,qh="\0SLASH"+Math.random()+"\0",Gh="\0OPEN"+Math.random()+"\0",$c="\0CLOSE"+Math.random()+"\0",zh="\0COMMA"+Math.random()+"\0",Yh="\0PERIOD"+Math.random()+"\0";function Pu(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function rO(e){return e.split("\\\\").join(qh).split("\\{").join(Gh).split("\\}").join($c).split("\\,").join(zh).split("\\.").join(Yh)}function nO(e){return e.split(qh).join("\\").split(Gh).join("{").split($c).join("}").split(zh).join(",").split(Yh).join(".")}function Vh(e){if(!e)return[""];var r=[],t=Hh("{","}",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=Vh(i);return i.length&&(c[c.length-1]+=l.shift(),c.push.apply(c,l)),r.push.apply(r,c),r}function aO(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Da(rO(e),!0).map(nO)):[]}function oO(e){return"{"+e+"}"}function sO(e){return/^-?0\d/.test(e)}function iO(e,r){return e<=r}function uO(e,r){return e>=r}function Da(e,r){var t=[],a=Hh("{","}",e);if(!a)return[e];var s=a.pre,i=a.post.length?Da(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),g=d||p,m=a.body.indexOf(",")>=0;if(!g&&!m)return a.post.match(/,.*\}/)?(e=a.pre+"{"+a.body+$c+a.post,Da(e)):[e];var b;if(g)b=a.body.split(/\.\./);else if(b=Vh(a.body),b.length===1&&(b=Da(b[0],!1).map(oO),b.length===1))return i.map(function(We){return a.pre+b[0]+We});var E;if(g){var x=Pu(b[0]),C=Pu(b[1]),I=Math.max(b[0].length,b[1].length),P=b.length==3?Math.abs(Pu(b[2])):1,j=iO,M=C<x;M&&(P*=-1,j=uO);var k=b.some(sO);E=[];for(var O=x;j(O,C);O+=P){var Y;if(p)Y=String.fromCharCode(O),Y==="\\"&&(Y="");else if(Y=String(O),k){var H=I-Y.length;if(H>0){var z=new Array(H+1).join("0");O<0?Y="-"+z+Y.slice(1):Y=z+Y}}E.push(Y)}}else{E=[];for(var te=0;te<b.length;te++)E.push.apply(E,Da(b[te],!1))}for(var te=0;te<E.length;te++)for(var c=0;c<i.length;c++){var l=s+E[te]+i[c];(!r||g||l)&&t.push(l)}}return t}const Gt=Kh=(e,r,t={})=>(ms(r),!t.nocomment&&r.charAt(0)==="#"?!1:new Ms(r,t).match(e));var Kh=Gt;const nc=QR;Gt.sep=nc.sep;const pr=Symbol("globstar **");Gt.GLOBSTAR=pr;const cO=tO,Ap={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},ac="[^/]",Du=ac+"*?",lO="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",fO="(?:(?!(?:\\/|^)\\.).)*?",Jh=e=>e.split("").reduce((r,t)=>(r[t]=!0,r),{}),Pp=Jh("().*{}+?[]^$\\!"),dO=Jh("[.("),Dp=/\/+/;Gt.filter=(e,r={})=>(t,a,s)=>Gt(t,e,r);const rn=(e,r={})=>{const t={};return Object.keys(e).forEach(a=>t[a]=e[a]),Object.keys(r).forEach(a=>t[a]=r[a]),t};Gt.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Gt;const r=Gt,t=(a,s,i)=>r(a,s,rn(e,i));return t.Minimatch=class extends r.Minimatch{constructor(s,i){super(s,rn(e,i))}},t.Minimatch.defaults=a=>r.defaults(rn(e,a)).Minimatch,t.filter=(a,s)=>r.filter(a,rn(e,s)),t.defaults=a=>r.defaults(rn(e,a)),t.makeRe=(a,s)=>r.makeRe(a,rn(e,s)),t.braceExpand=(a,s)=>r.braceExpand(a,rn(e,s)),t.match=(a,s,i)=>r.match(a,s,rn(e,i)),t};Gt.braceExpand=(e,r)=>Xh(e,r);const Xh=(e,r={})=>(ms(e),r.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:cO(e)),pO=1024*64,ms=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>pO)throw new TypeError("pattern is too long")},Iu=Symbol("subparse");Gt.makeRe=(e,r)=>new Ms(e,r||{}).makeRe();Gt.match=(e,r,t={})=>{const a=new Ms(r,t);return e=e.filter(s=>a.match(s)),a.options.nonull&&!e.length&&e.push(r),e};const hO=e=>e.replace(/\\(.)/g,"$1"),gO=e=>e.replace(/\\([^-\]])/g,"$1"),vO=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),mO=e=>e.replace(/[[\]\\]/g,"\\$&");class Ms{constructor(r,t){ms(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(Dp)),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],g=r[i];if(this.debug(t,p,g),p===!1)return!1;if(p===pr){this.debug("GLOBSTAR",[t,p,g]);var m=i,b=c+1;if(b===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(`
|
|
86
|
-
|
|
87
|
-
>>> no match, partial?`,r,m,t,b),m===l))}var x;if(typeof p=="string"?(x=g===p,this.debug("string match",p,g,x)):(x=g.match(p),this.debug("pattern match",p,g,x)),!x)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 Xh(this.pattern,this.options)}parse(r,t){ms(r);const a=this.options;if(r==="**")if(a.noglobstar)r="*";else return pr;if(r==="")return"";let s="",i=!1,c=!1;const l=[],d=[];let p,g=!1,m=-1,b=-1,E,x,C,I=r.charAt(0)===".",P=a.dot||I;const j=()=>I?"":P?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",M=H=>H.charAt(0)==="."?"":a.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",k=()=>{if(p){switch(p){case"*":s+=Du,i=!0;break;case"?":s+=ac,i=!0;break;default:s+="\\"+p;break}this.debug("clearStateChar %j %j",p,s),p=!1}};for(let H=0,z;H<r.length&&(z=r.charAt(H));H++){if(this.debug("%s %s %s %j",r,H,s,z),c){if(z==="/")return!1;Pp[z]&&(s+="\\"),s+=z,c=!1;continue}switch(z){case"/":return!1;case"\\":if(g&&r.charAt(H+1)==="-"){s+=z;continue}k(),c=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",r,H,s,z),g){this.debug(" in class"),z==="!"&&H===b+1&&(z="^"),s+=z;continue}this.debug("call clearStateChar %j",p),k(),p=z,a.noext&&k();continue;case"(":{if(g){s+="(";continue}if(!p){s+="\\(";continue}const te={type:p,start:H-1,reStart:s.length,open:Ap[p].open,close:Ap[p].close};this.debug(this.pattern," ",te),l.push(te),s+=te.open,te.start===0&&te.type!=="!"&&(I=!0,s+=M(r.slice(H+1))),this.debug("plType %j %j",p,s),p=!1;continue}case")":{const te=l[l.length-1];if(g||!te){s+="\\)";continue}l.pop(),k(),i=!0,x=te,s+=x.close,x.type==="!"&&d.push(Object.assign(x,{reEnd:s.length}));continue}case"|":{const te=l[l.length-1];if(g||!te){s+="\\|";continue}k(),s+="|",te.start===0&&te.type!=="!"&&(I=!0,s+=M(r.slice(H+1)));continue}case"[":if(k(),g){s+="\\"+z;continue}g=!0,b=H,m=s.length,s+=z;continue;case"]":if(H===b+1||!g){s+="\\"+z;continue}E=r.substring(b+1,H);try{RegExp("["+mO(gO(E))+"]"),s+=z}catch{s=s.substring(0,m)+"(?:$.)"}i=!0,g=!1;continue;default:k(),Pp[z]&&!(z==="^"&&g)&&(s+="\\"),s+=z;break}}for(g&&(E=r.slice(b+1),C=this.parse(E,Iu),s=s.substring(0,m)+"\\["+C[0],i=i||C[1]),x=l.pop();x;x=l.pop()){let H;H=s.slice(x.reStart+x.open.length),this.debug("setting tail",s,x),H=H.replace(/((?:\\{2}){0,64})(\\?)\|/g,(te,We,Te)=>(Te||(Te="\\"),We+We+Te+"|")),this.debug(`tail=%j
|
|
88
|
-
%s`,H,H,x,s);const z=x.type==="*"?Du:x.type==="?"?ac:"\\"+x.type;i=!0,s=s.slice(0,x.reStart)+z+"\\("+H}k(),c&&(s+="\\\\");const O=dO[s.charAt(0)];for(let H=d.length-1;H>-1;H--){const z=d[H],te=s.slice(0,z.reStart),We=s.slice(z.reStart,z.reEnd-8);let Te=s.slice(z.reEnd);const it=s.slice(z.reEnd-8,z.reEnd)+Te,X=te.split(")").length,Pe=te.split("(").length-X;let ut=Te;for(let He=0;He<Pe;He++)ut=ut.replace(/\)[+*?]?/,"");Te=ut;const et=Te===""&&t!==Iu?"(?:$|\\/)":"";s=te+We+Te+et+it}if(s!==""&&i&&(s="(?=.)"+s),O&&(s=j()+s),t===Iu)return[s,i];if(a.nocase&&!i&&(i=r.toUpperCase()!==r.toLowerCase()),!i)return hO(r);const Y=a.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",Y),{_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?Du:t.dot?lO:fO,s=t.nocase?"i":"";let i=r.map(c=>(c=c.map(l=>typeof l=="string"?vO(l):l===pr?pr:l._src).reduce((l,d)=>(l[l.length-1]===pr&&d===pr||l.push(d),l),[]),c.forEach((l,d)=>{l!==pr||c[d-1]===pr||(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]=pr))}),c.filter(l=>l!==pr).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;nc.sep!=="/"&&(r=r.split(nc.sep).join("/")),r=r.split(Dp),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 Gt.defaults(r).Minimatch}}Gt.Minimatch=Ms;const Zh=Os(Kh),Qh=[{pattern:_.ROLES_TAB_PATH,editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:_.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"}}],eg=[{pattern:"**/*.+(json|4DModel|WebForm)",type:"json"},{pattern:"**/*.+(4dm|txt|json|4qs)",type:"text"}];function tg(e){const r=e.split("/");return r.pop(),r.join("/")}function gr(e){const r=Qh.find(({pattern:t})=>Zh(e,t,{nocase:!0}));return r||{pattern:"",editor:{key:"editors:unknown",config:{language:"text"}}}}function rg(e){const r=eg.find(({pattern:t})=>Zh(e,t,{nocase:!0}));return r?r.type:"text"}var oc=function(e,r){return oc=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])},oc(e,r)};function Ns(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");oc(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function sc(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 ys(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 bs(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 kr(e){return typeof e=="function"}function ng(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 Fu=ng(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
89
|
-
`+t.map(function(a,s){return s+1+") "+a.toString()}).join(`
|
|
90
|
-
`):"",this.name="UnsubscriptionError",this.errors=t}});function ic(e,r){if(e){var t=e.indexOf(r);0<=t&&e.splice(t,1)}}var Ls=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=sc(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 g=this.initialTeardown;if(kr(g))try{g()}catch(C){i=C instanceof Fu?C.errors:[C]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var b=sc(m),E=b.next();!E.done;E=b.next()){var x=E.value;try{Ip(x)}catch(C){i=i??[],C instanceof Fu?i=bs(bs([],ys(i)),ys(C.errors)):i.push(C)}}}catch(C){a={error:C}}finally{try{E&&!E.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}}if(i)throw new Fu(i)}},e.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)Ip(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)&&ic(t,r)},e.prototype.remove=function(r){var t=this._finalizers;t&&ic(t,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}(),ag=Ls.EMPTY;function og(e){return e instanceof Ls||e&&"closed"in e&&kr(e.remove)&&kr(e.add)&&kr(e.unsubscribe)}function Ip(e){kr(e)?e():e.unsubscribe()}var sg={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},uc={setTimeout:function(e,r){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];var s=uc.delegate;return s!=null&&s.setTimeout?s.setTimeout.apply(s,bs([e,r],ys(t))):setTimeout.apply(void 0,bs([e,r],ys(t)))},clearTimeout:function(e){var r=uc.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function yO(e){uc.setTimeout(function(){throw e})}function Fp(){}function ts(e){e()}var ig=function(e){Ns(r,e);function r(t){var a=e.call(this)||this;return a.isStopped=!1,t?(a.destination=t,og(t)&&t.add(a)):a.destination=SO,a}return r.create=function(t,a,s){return new cc(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}(Ls),bO=Function.prototype.bind;function $u(e,r){return bO.call(e,r)}var _O=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){Ko(a)}},e.prototype.error=function(r){var t=this.partialObserver;if(t.error)try{t.error(r)}catch(a){Ko(a)}else Ko(r)},e.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(t){Ko(t)}},e}(),cc=function(e){Ns(r,e);function r(t,a,s){var i=e.call(this)||this,c;if(kr(t)||!t)c={next:t??void 0,error:a??void 0,complete:s??void 0};else{var l;i&&sg.useDeprecatedNextContext?(l=Object.create(t),l.unsubscribe=function(){return i.unsubscribe()},c={next:t.next&&$u(t.next,l),error:t.error&&$u(t.error,l),complete:t.complete&&$u(t.complete,l)}):c=t}return i.destination=new _O(c),i}return r}(ig);function Ko(e){yO(e)}function EO(e){throw e}var SO={closed:!0,next:Fp,error:EO,complete:Fp},wO=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function TO(e){return e}function xO(e){return e.length===0?TO:e.length===1?e[0]:function(t){return e.reduce(function(a,s){return s(a)},t)}}var $p=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 cc(r,t,a);return ts(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=Mp(t),new t(function(s,i){var c=new cc({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[wO]=function(){return this},e.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return xO(r)(this)},e.prototype.toPromise=function(r){var t=this;return r=Mp(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 Mp(e){var r;return(r=e??sg.Promise)!==null&&r!==void 0?r:Promise}function CO(e){return e&&kr(e.next)&&kr(e.error)&&kr(e.complete)}function RO(e){return e&&e instanceof ig||CO(e)&&og(e)}var OO=ng(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ug=function(e){Ns(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 Np(this,this);return a.operator=t,a},r.prototype._throwIfClosed=function(){if(this.closed)throw new OO},r.prototype.next=function(t){var a=this;ts(function(){var s,i;if(a._throwIfClosed(),!a.isStopped){a.currentObservers||(a.currentObservers=Array.from(a.observers));try{for(var c=sc(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;ts(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;ts(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?ag:(this.currentObservers=null,l.push(t),new Ls(function(){a.currentObservers=null,ic(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 $p;return t.source=this,t},r.create=function(t,a){return new Np(t,a)},r}($p),Np=function(e){Ns(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:ag},r}(ug);const cg=new ug,AO=()=>Bh(),Ur=JR,Mc=q(e=>e,e=>e.catalog.state==="loaded"?e.catalog.model:null),PO=q(Mc,e=>e?e.dataClasses:[]),DO=q(Mc,e=>e?e.methods:[]),lg=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[]}}),IO=e=>Ur(lg(e),Lh),FO=(e,r)=>q(lg(e),t=>t.find(a=>`${a.applyTo}.${a.name}`===r)),$O=(e,r,t)=>Ur(FO(e,`${t}.${r}`),Lh),fg=q(e=>e,e=>e),MO=e=>q(Hr,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]}))}),dg=e=>q(Hr,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)||[]}),NO=(e,r,t)=>q(fg,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}}),pg=q(e=>e,e=>{var r;return((r=e.sharedDatasources)==null?void 0:r.sources)||[]}),LO=(e,r,t,a)=>q(dg(e),pg,(s,i)=>{const c=ze.flatten(ze.values(i)),l=[...r!=="private"?s:[],...r!=="shared"?c:[]];return t?l.filter(d=>(!a||a.every(({id:p,namespace:g=""})=>d.id!==p||(d.namespace||"")!==g))&&(t.includes(d.type)||d.dataType&&(t.includes(d.dataType)||t.includes("objectFromArray")&&d.dataType==="object"&&d.from))):l}),kO=q(e=>e.debugger,e=>e.meta),An=q(e=>e.debugger,e=>e.list),It=q(e=>e.debugger,e=>e.sessions),jO=q(It,e=>e.length),On=(e,r,t,a)=>e.find(s=>s.filePath===r&&s.methodName===t&&(!a||s.className===a)),st=(e,r)=>e.find(t=>t.threadId===r),hg=(e,r)=>e.find(t=>t.tabPath===r),BO=(e,r)=>q(An,t=>{var a;return((a=On(t,e,r))==null?void 0:a.breakpoints.saved.locations)||[]}),WO=(e,r)=>q(An,t=>{var a;return((a=On(t,e,r))==null?void 0:a.breakpoints.draft.locations)||[]}),UO=e=>q(An,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)),HO=e=>q(An,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)),qO=e=>q(It,r=>{const t=st(r,e);return t!=null&&t.stopped?t.highlightedLines:null}),GO=e=>q(It,r=>{const t=st(r,e);return t!=null&&t.stopped?t.activeLine:null}),zO=e=>q(It,r=>{var t;return((t=st(r,e))==null?void 0:t.expressions)||[]}),YO=e=>q(It,r=>{var t;return((t=st(r,e))==null?void 0:t.stopped)||!1}),VO=(e,r)=>q(An,t=>{var a;return(a=On(t,e,r))==null?void 0:a.source}),KO=e=>q(It,r=>{var t;return((t=hg(r,e))==null?void 0:t.threadId)||-1}),JO=e=>q(It,r=>{var t,a;return(a=(t=st(r,e))==null?void 0:t.currentStackFrame)==null?void 0:a.source}),XO=e=>q(It,r=>{var t;return(t=st(r,e))==null?void 0:t.currentStackFrame}),ZO=q(It,e=>e.map(({channelId:r,threadId:t})=>({id:r,threadId:t}))),QO=e=>q(It,r=>{var t;return((t=st(r,e))==null?void 0:t.stackFrames)||[]}),eA=e=>q(It,r=>{var t,a;return((a=(t=st(r,e))==null?void 0:t.variables)==null?void 0:a.callchain)||[]}),tA=e=>q(It,r=>{var t,a;return((a=(t=st(r,e))==null?void 0:t.variables)==null?void 0:a.expressions)||[]}),rA=(e,r="saved")=>q(An,t=>{const a=t.find(s=>s.filePath===e);return(a==null?void 0:a.breakpoints[r].offset)||0}),nA=(e,r,t,a)=>q(It,s=>{var p;const i=((p=st(s,e))==null?void 0:p.exceptions)||[],c=r===_.FileFolderType.CLASS,l=c&&a?`${a}.${t}`:t;return(l?i.filter(g=>g.location===l):i).map(g=>({...g,locationLine:c?g.locationLine:g.locationLine+1}))}),Hr=q(e=>e.root,e=>e),ia=q(Hr,e=>e.tabs),aA=q(Hr,e=>e.activeTab),oA=q(Hr,e=>e.recent.filter(({type:r})=>r!==_.FileFolderType.DEBUGGER)),sA=q(Hr,({tabs:e,activeTab:r})=>e.find(({path:t})=>t===r)),iA=q(Hr,({tabs:e})=>e.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null)),uA=q(ia,e=>e.filter(({type:r,flags:t})=>r===_.FileFolderType.WEBFORM&&t.enabled===!1).map(({path:r})=>r)),cA=q(ia,e=>e.length>0),za=e=>q(Hr,r=>r.tabs.find(({path:t})=>t===e)),gg=(e,r="")=>q(za(e),t=>!t||!t.content||typeof t.content=="string"?t==null?void 0:t.content:ze.get(t.content,r)),lA=e=>q(za(e),r=>r==null?void 0:r.extra),fA=(e,r=t=>t)=>q(gg(e,"components"),t=>r(t||{})),Nc=q(ia,e=>e.filter(r=>r.flags.touched)),dA=q(Nc,e=>e.length),pA=q(It,e=>e.map(({threadId:r,currentStackFrame:{source:t},tabPath:a})=>({name:Ah(r,t),path:a,type:_.FileFolderType.DEBUGGER,content:t==null?void 0:t.content,flags:{},extra:{source:t}}))),hA=q(e=>e,e=>e.explorer||[]),vg=q(e=>e,e=>e.explorer.find(r=>r.path===_.FolderRootPath.WEBFORMS)),mg=q(e=>e,e=>e.explorer.find(r=>r.path===_.FolderRootPath.METHODS)),yg=q(e=>e,e=>e.explorer.find(r=>r.path===_.FolderRootPath.CLASSES)),gA=q(mg,e=>(e==null?void 0:e.children)||[]),vA=q(vg,e=>(e==null?void 0:e.children)||[]),mA=q(yg,e=>(e==null?void 0:e.children)||[]),yA=q(e=>e.modals,e=>e.list),bA=q(e=>e.roles,e=>qs(e)),_A=q(e=>e.roles,({roles:e})=>e),EA=q(e=>e.roles,({privileges:e})=>e),SA=q(e=>e.roles,({privileges:e})=>Object.values(e).find(({privilege:r})=>r==="guest")),wA=q(e=>e.roles,({flags:e})=>e),TA=q(e=>e.roles,({selectedTab:e})=>e),xA=q(e=>e.roles,({date:e})=>e),bg=q(e=>e.settings,e=>e.session),CA=q(e=>e.settings,e=>e.project),RA=q(e=>e.settings,e=>e),Lc=q(e=>e.settings,e=>e.server),OA=q(Lc,e=>e.remoteDebuggerMode),AA=q(Lc,e=>e.qodly),PA=q(bg,e=>e["monaco.zoom"]),_g=["rounded-full","rounded-lg","border-gray-400","border-2","bg-red-500","bg-blue-500","bg-indigo-500","bg-transparent","bg-primary-dark","bg-green-500","bg-yellow-400","text-gray-500","text-4xl","text-white","px-4","py-2","primary","info","secondary","success","warning","danger","w-10","w-20","w-40","w-60","w-80","mb-2","mb-3","shadow","shadow-lg","shadow-xl","shadow-2xl"],Eg=_g.map(e=>({id:Tc(),content:"",name:e,parentId:null,scope:_.EWebFormStyleClassScope.THEME})),kc=e=>q(za(e),r=>{var t,a;return((a=(t=r==null?void 0:r.content)==null?void 0:t.metadata)==null?void 0:a.styles)||[]}),DA=(e,r)=>q(kc(e),t=>r.map(a=>{switch(!0){case a===_.EWebFormStyleClassScope.LOCAL:return t.map(s=>({...s,scope:_.EWebFormStyleClassScope.LOCAL}));case a===_.EWebFormStyleClassScope.THEME:return Eg;default:return[]}}).flat()),IA=e=>q(kc(e),r=>[...r.map(t=>({...t,scope:_.EWebFormStyleClassScope.LOCAL})),...Eg]),FA=q(e=>e,e=>{var r;return[...(((r=e.sharedCSS)==null?void 0:r.styles)||[]).map(t=>({...t,scope:_.EWebFormStyleClassScope.SHARED}))]}),$A=e=>q(za(e),r=>r==null?void 0:r.flags),Ya=q(e=>e.webforms,e=>e),Sg=q(Ya,e=>(e==null?void 0:e.components)||[]),ks=q(Ya,e=>e.inspector),MA=q(ks,e=>e.css),NA=q(ks,e=>e.datasource),wg=q(Ya,e=>e.templates||{data:[]}),LA=q(wg,e=>e.data||[]),kA=e=>q(Sg,r=>r.find(t=>t.id===e)),jA=e=>q(ks,r=>r[e]),BA=q(Ya,e=>e.datasources.theme),WA=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)));var jc=(e=>(e.SHOW_AFTER_TIMEOUT="show_after_timeout",e.HIDE_AFTER_TIMEOUT="hide_after_timeout",e))(jc||{}),Tg=(e=>(e.AIRY="airy",e.COMPACT="neutral",e))(Tg||{});const xg={metadata:{v:"1.0",datasources:[],styles:[]},components:{ROOT:{parent:"",type:{resolvedName:"Container"},isCanvas:!0,props:{className:"bg-white h-full w-full px-6",classNames:[],events:[]},displayName:"App",custom:{},hidden:!1,nodes:[],linkedNodes:{}}}};var Jo,UA=new Uint8Array(16);function Cg(){if(!Jo&&(Jo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Jo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Jo(UA)}const HA=/^(?:[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"&&HA.test(e)}var mt=[];for(var Mu=0;Mu<256;++Mu)mt.push((Mu+256).toString(16).substr(1));function Bs(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(mt[e[r+0]]+mt[e[r+1]]+mt[e[r+2]]+mt[e[r+3]]+"-"+mt[e[r+4]]+mt[e[r+5]]+"-"+mt[e[r+6]]+mt[e[r+7]]+"-"+mt[e[r+8]]+mt[e[r+9]]+"-"+mt[e[r+10]]+mt[e[r+11]]+mt[e[r+12]]+mt[e[r+13]]+mt[e[r+14]]+mt[e[r+15]]).toLowerCase();if(!js(t))throw TypeError("Stringified UUID is invalid");return t}var Lp,Nu,Lu=0,ku=0;function qA(e,r,t){var a=r&&t||0,s=r||new Array(16);e=e||{};var i=e.node||Lp,c=e.clockseq!==void 0?e.clockseq:Nu;if(i==null||c==null){var l=e.random||(e.rng||Cg)();i==null&&(i=Lp=[l[0]|1,l[1],l[2],l[3],l[4],l[5]]),c==null&&(c=Nu=(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,g=d-Lu+(p-ku)/1e4;if(g<0&&e.clockseq===void 0&&(c=c+1&16383),(g<0||d>Lu)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Lu=d,ku=p,Nu=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 b=d/4294967296*1e4&268435455;s[a++]=b>>>8&255,s[a++]=b&255,s[a++]=b>>>24&15|16,s[a++]=b>>>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||Bs(s)}function Rg(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 GA(e){e=unescape(encodeURIComponent(e));for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t));return r}var zA="6ba7b810-9dad-11d1-80b4-00c04fd430c8",YA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Og(e,r,t){function a(s,i,c,l){if(typeof s=="string"&&(s=GA(s)),typeof i=="string"&&(i=Rg(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 Bs(d)}try{a.name=e}catch{}return a.DNS=zA,a.URL=YA,a}function VA(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 KA(JA(XA(e),e.length*8))}function KA(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 Ag(e){return(e+64>>>9<<4)+14+1}function JA(e,r){e[r>>5]|=128<<r%32,e[Ag(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,g=i;t=Et(t,a,s,i,e[c],7,-680876936),i=Et(i,t,a,s,e[c+1],12,-389564586),s=Et(s,i,t,a,e[c+2],17,606105819),a=Et(a,s,i,t,e[c+3],22,-1044525330),t=Et(t,a,s,i,e[c+4],7,-176418897),i=Et(i,t,a,s,e[c+5],12,1200080426),s=Et(s,i,t,a,e[c+6],17,-1473231341),a=Et(a,s,i,t,e[c+7],22,-45705983),t=Et(t,a,s,i,e[c+8],7,1770035416),i=Et(i,t,a,s,e[c+9],12,-1958414417),s=Et(s,i,t,a,e[c+10],17,-42063),a=Et(a,s,i,t,e[c+11],22,-1990404162),t=Et(t,a,s,i,e[c+12],7,1804603682),i=Et(i,t,a,s,e[c+13],12,-40341101),s=Et(s,i,t,a,e[c+14],17,-1502002290),a=Et(a,s,i,t,e[c+15],22,1236535329),t=St(t,a,s,i,e[c+1],5,-165796510),i=St(i,t,a,s,e[c+6],9,-1069501632),s=St(s,i,t,a,e[c+11],14,643717713),a=St(a,s,i,t,e[c],20,-373897302),t=St(t,a,s,i,e[c+5],5,-701558691),i=St(i,t,a,s,e[c+10],9,38016083),s=St(s,i,t,a,e[c+15],14,-660478335),a=St(a,s,i,t,e[c+4],20,-405537848),t=St(t,a,s,i,e[c+9],5,568446438),i=St(i,t,a,s,e[c+14],9,-1019803690),s=St(s,i,t,a,e[c+3],14,-187363961),a=St(a,s,i,t,e[c+8],20,1163531501),t=St(t,a,s,i,e[c+13],5,-1444681467),i=St(i,t,a,s,e[c+2],9,-51403784),s=St(s,i,t,a,e[c+7],14,1735328473),a=St(a,s,i,t,e[c+12],20,-1926607734),t=wt(t,a,s,i,e[c+5],4,-378558),i=wt(i,t,a,s,e[c+8],11,-2022574463),s=wt(s,i,t,a,e[c+11],16,1839030562),a=wt(a,s,i,t,e[c+14],23,-35309556),t=wt(t,a,s,i,e[c+1],4,-1530992060),i=wt(i,t,a,s,e[c+4],11,1272893353),s=wt(s,i,t,a,e[c+7],16,-155497632),a=wt(a,s,i,t,e[c+10],23,-1094730640),t=wt(t,a,s,i,e[c+13],4,681279174),i=wt(i,t,a,s,e[c],11,-358537222),s=wt(s,i,t,a,e[c+3],16,-722521979),a=wt(a,s,i,t,e[c+6],23,76029189),t=wt(t,a,s,i,e[c+9],4,-640364487),i=wt(i,t,a,s,e[c+12],11,-421815835),s=wt(s,i,t,a,e[c+15],16,530742520),a=wt(a,s,i,t,e[c+2],23,-995338651),t=Tt(t,a,s,i,e[c],6,-198630844),i=Tt(i,t,a,s,e[c+7],10,1126891415),s=Tt(s,i,t,a,e[c+14],15,-1416354905),a=Tt(a,s,i,t,e[c+5],21,-57434055),t=Tt(t,a,s,i,e[c+12],6,1700485571),i=Tt(i,t,a,s,e[c+3],10,-1894986606),s=Tt(s,i,t,a,e[c+10],15,-1051523),a=Tt(a,s,i,t,e[c+1],21,-2054922799),t=Tt(t,a,s,i,e[c+8],6,1873313359),i=Tt(i,t,a,s,e[c+15],10,-30611744),s=Tt(s,i,t,a,e[c+6],15,-1560198380),a=Tt(a,s,i,t,e[c+13],21,1309151649),t=Tt(t,a,s,i,e[c+4],6,-145523070),i=Tt(i,t,a,s,e[c+11],10,-1120210379),s=Tt(s,i,t,a,e[c+2],15,718787259),a=Tt(a,s,i,t,e[c+9],21,-343485551),t=nn(t,l),a=nn(a,d),s=nn(s,p),i=nn(i,g)}return[t,a,s,i]}function XA(e){if(e.length===0)return[];for(var r=e.length*8,t=new Uint32Array(Ag(r)),a=0;a<r;a+=8)t[a>>5]|=(e[a/8]&255)<<a%32;return t}function nn(e,r){var t=(e&65535)+(r&65535),a=(e>>16)+(r>>16)+(t>>16);return a<<16|t&65535}function ZA(e,r){return e<<r|e>>>32-r}function Ws(e,r,t,a,s,i){return nn(ZA(nn(nn(r,e),nn(a,i)),s),t)}function Et(e,r,t,a,s,i,c){return Ws(r&t|~r&a,e,r,s,i,c)}function St(e,r,t,a,s,i,c){return Ws(r&a|t&~a,e,r,s,i,c)}function wt(e,r,t,a,s,i,c){return Ws(r^t^a,e,r,s,i,c)}function Tt(e,r,t,a,s,i,c){return Ws(t^(r|~a),e,r,s,i,c)}var QA=Og("v3",48,VA);const eP=QA;function tP(e,r,t){e=e||{};var a=e.random||(e.rng||Cg)();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 Bs(a)}function rP(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 ju(e,r){return e<<r|e>>>32-r}function nP(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),g=0;g<16;++g)p[g]=e[d*64+g*4]<<24|e[d*64+g*4+1]<<16|e[d*64+g*4+2]<<8|e[d*64+g*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 b=new Uint32Array(80),E=0;E<16;++E)b[E]=l[m][E];for(var x=16;x<80;++x)b[x]=ju(b[x-3]^b[x-8]^b[x-14]^b[x-16],1);for(var C=t[0],I=t[1],P=t[2],j=t[3],M=t[4],k=0;k<80;++k){var O=Math.floor(k/20),Y=ju(C,5)+rP(O,I,P,j)+M+r[O]+b[k]>>>0;M=j,j=P,P=ju(I,30)>>>0,I=C,C=Y}t[0]=t[0]+C>>>0,t[1]=t[1]+I>>>0,t[2]=t[2]+P>>>0,t[3]=t[3]+j>>>0,t[4]=t[4]+M>>>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 aP=Og("v5",80,nP);const oP=aP,sP="00000000-0000-0000-0000-000000000000";function iP(e){if(!js(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const uP=Object.freeze(Object.defineProperty({__proto__:null,NIL:sP,parse:Rg,stringify:Bs,v1:qA,v3:eP,v4:tP,v5:oP,validate:js,version:iP},Symbol.toStringTag,{value:"Module"})),cP=iw(uP);function Bc(e,r){if(!e||!r||!e.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=r}Bc.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};Bc.prototype.isValid=function(e){for(var r=0;r<e.length;++r)if(this.srcAlphabet.indexOf(e[r])===-1)return!1;return!0};var lP=Bc,fP=lP;function Va(e,r){var t=new fP(e,r);return function(a){return t.convert(a)}}Va.BIN="01";Va.OCT="01234567";Va.DEC="0123456789";Va.HEX="0123456789abcdef";var dP=Va;const{v4:Bu}=cP,Xo=dP,Wu="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",pP="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",hP={consistentLength:!0};let Uu;const kp=(e,r,t)=>{const a=r(e.toLowerCase().replace(/-/g,""));return!t||!t.consistentLength?a:a.padStart(t.shortIdLength,t.paddingChar)},gP=(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("-")},vP=e=>Math.ceil(Math.log(2**128)/Math.log(e));var _s=(()=>{const e=(r,t)=>{const a=r||Wu,s={...hP,...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=vP(a.length),c={shortIdLength:i,consistentLength:s.consistentLength,paddingChar:a[0]},l=Xo(Xo.HEX,a),d=Xo(a,Xo.HEX),p=()=>kp(Bu(),l,c),g={new:p,generate:p,uuid:Bu,fromUUID:m=>kp(m,l,c),toUUID:m=>gP(m,d),alphabet:a,maxLength:i};return Object.freeze(g),g};return e.constants={flickrBase58:Wu,cookieBase90:pP},e.uuid=Bu,e.generate=()=>(Uu||(Uu=e(Wu).generate),Uu()),e})(),Ae=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e))(Ae||{});const mP=[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE,Ae.METHOD],Es="guest",Wc=[{key:"read",label:"Read",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"create",label:"Create",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"update",label:"Update",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"drop",label:"Delete",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"describe",label:"Describe",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE,Ae.METHOD]},{key:"execute",label:"Execute",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.METHOD]},{key:"promote",label:"Promote",canApplyTo:[Ae.METHOD]}];function ar(e,...r){return Array.from(new Set([...e,...r]))}function Pg(e){const r={},t=new Map;e.forEach(d=>{const p=d.id||_s.generate();r[p]={...d,id:p,parents:[],includes:ar(d.includes||[]),resources:[]},t.set(d.privilege,p)}),Object.entries(r).forEach(([d,p])=>{const g=p.includes.map(m=>{const b=t.get(m);return b?(r[b].parents=ar(r[b].parents,b),b):""}).filter(Boolean);r[d]={...p,includes:g}});const a=Dg(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===Es))return r;const l=_s.generate();return{[l]:{id:l,privilege:Es,includes:[],parents:[],resources:[]},...r}}function Dg(e){return Object.values(e).sort((r,t)=>r.parents.length-t.parents.length)}function Us(e,r){const t=r[e];let a=[];return t&&t.parents.forEach(s=>{a=ar(a,...Us(s,r),s)}),a}function Ss(e,r){const t=r[e];let a=[];return t&&t.includes.forEach(s=>{a=ar(a,...Ss(s,r),s)}),a}function yP(e,r){const t=r[e];if(!t)return[];const a=[e,...Us(e,r),...t.includes];return Object.keys(r).filter(s=>!a.includes(s))}function bP(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 _P(e,r,t){const a=t[e],s=t[r];return!a||!s?t:{...t,[e]:{...t[e],includes:ar(a.includes,r)},[r]:{...t[r],parents:ar(s.parents,e)}}}function EP(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 Ig(e,r){_.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=_s.generate();return{[t]:{id:t,privilege:e,includes:[],parents:[],resources:[]},...r}}function SP(e,r,t,a,s){let i=Ig(e,s);const c=Object.entries(i).find(([,l])=>l.privilege===e);return c?(i=Ng(c[1].id,r,t,a,i),i):s}function wP(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 TP(e,r){return e.map(t=>qr(t,r))}function qr(e,r){return r[e]?r[e]:null}function Fg({applyTo:e,type:r,...t}){return Object.entries(t).reduce((a,[s,i])=>{const c=ze.find(Wc,["key",s]);return!c||!c.canApplyTo.includes(r)||(typeof i=="string"?i.split(","):i).forEach(d=>{a[d]=ar(a[d]||[],s)}),a},{})}const lc=(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 Uc(e){return{permissions:Wc.filter(({canApplyTo:r})=>r.includes(e.type)).map(({key:r,label:t})=>{const a={name:r,from:[]};switch(e.type){case Ae.DATASTORE:return{...a,info:lc(t,!0)};case Ae.DATACLASS:return{...a,info:lc(t)};default:return a}}),resource:e.applyTo,type:e.type}}function $g(e,r){const t=Mg(r),a={};return e.filter(({type:s})=>mP.includes(s)).forEach(s=>{const i=Fg(s);Object.entries(i).forEach(([c,l])=>{var g;const d=(g=t[c])==null?void 0:g.id;if(!d)return;a[d]=a[d]||{...r[d]};let p=ze.find(a[d].resources,{resource:s.applyTo,type:s.type});p||(p=Uc(s),a[d].resources.push(p)),p.permissions=p.permissions.map(m=>({...m,checked:m.checked||l.includes(m.name)}))})}),{...r,...a}}function Mg(e){return Object.values(e).reduce((r,t)=>({...r,[t.privilege]:t}),{})}function Hs(e){var t;const r=Pg(e.privileges||[]);return{privileges:$g(((t=e.permissions)==null?void 0:t.allowed)||[],r),roles:(e.roles||[]).map(({id:a=_s.generate(),role:s,privileges:i=[]})=>({id:a,role:s,privileges:ar(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 qs(e){const r=Object.values(e.privileges).filter(({includes:a})=>a.length===0).map(({id:a})=>a),t=[...r,...r.map(a=>Us(a,e.privileges).reverse())].flat().filter((a,s,i)=>i.indexOf(a)===s).map(a=>e.privileges[a]);return{permissions:{allowed:Object.values(e.privileges).reduce((a,s)=>(s.resources.forEach(({permissions:i,resource:c,type:l})=>{let d=ze.find(a,{applyTo:c,type:l});d||(d={applyTo:c,type:l},a.push(d)),i.forEach(({name:p,checked:g})=>{g&&d&&(d[p]=d[p]||[],d[p].push(s.privilege))})}),a),[])},privileges:t.filter(({privilege:a})=>a!==Es).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 xP(e,r){const t=r[e],a={children:[],links:[],parents:[],selected:e};if(!t)return a;function s(l,d,p=[]){const g=l.reduce((m,b)=>[...m,...r[b][d]],[]);return g.length===0?p:(p.push(g),s(g,d,p))}function i(l){const d=[],p=[];for(let g=l.length-1;g>=0;g-=1){const m=l[g].filter(b=>d.includes(b)?!1:(d.push(b),!0));m.length>0&&p.unshift(ar(m))}return p}function c(l,d){const p=[];return l.reduce((g,m)=>(m.forEach(b=>{r[b][d==="parents"?"includes":"parents"].forEach(x=>{p.includes(x)&&g.push(d==="parents"?{source:b,target:x}:{source:x,target:b})}),p.push(b)}),g),[])}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 CP(e,r,t){const a=qr(e,t);if(!a||ze.find(a.resources,{resource:r.applyTo,type:r.type}))return t;const s={...a,resources:[...a.resources,Uc(r)]};return{...t,[e]:s}}function RP(e,r,t){const a=qr(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 OP(e,r){const t=qr(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 Ng(e,r,t,a,s){const i=qr(e,s);if(!i)return s;const l=ze.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:Wc.filter(d=>d.canApplyTo.includes(t)).map(d=>({from:[],name:d.key,checked:d.key===a,info:lc(d.key,t===Ae.DATASTORE)}))}]};return{...s,[e]:l}}function AP(e,r,t,a){const s=qr(e,a);if(!s)return a;const c=ze.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 PP(e,r){var d;const t=Lg(e,r)||[],a=((d=qr(e,r))==null?void 0:d.resources)||[],c=([...t,...a].filter(({type:p})=>p===Ae.METHOD)||[]).map(({resource:p})=>p);return Object.entries(r).reduce((p,[g,{resources:m}])=>(m.filter(({resource:b,type:E})=>E===Ae.METHOD&&c.includes(b)).forEach(({permissions:b,resource:E})=>{var C;((C=b.find(({name:I})=>I==="promote"))==null?void 0:C.checked)&&(p[E]=ar(p[E]||[],g))}),p),{})}function Lg(e,r){var c;const t=qr(e,r);if(!t)return[];const a=(c=Object.values(r).find(l=>l.privilege===Es))==null?void 0:c.id;return(a&&a!==e?ar(Ss(e,r),a):Ss(e,r)).reduce((l,d)=>(r[d].resources.forEach(g=>{if(g.permissions.filter(({checked:E})=>E).length===0)return;const b=ze.find(l,{type:g.type,resource:g.resource});if(!b){l.push({...g,permissions:g.permissions.map(E=>({...E,from:E.checked?[d]:[],checked:!1}))});return}b.permissions=b.permissions.map((E,x)=>{let{from:C=[]}=E;return g.permissions[x].checked&&!C.includes(d)&&(C=[...C,d]),{...E,from:C,checked:E.checked}})}),l),ze.clone(t.resources.map(l=>({...l,permissions:l.permissions.map(({checked:d,...p})=>({...p,checked:!!d}))}))))}const DP=e=>e.reduce((r,t)=>({...r,[t.id]:{...t}}),{}),IP=(e,r)=>r[e]?Object.values(r).reduce((t,a)=>e===a.id||a.role===""?t:{...t,[a.id]:a},{}):r,FP=(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,$P=(e,r)=>{const t={id:e,role:"",privileges:[]};return{...r,[t.id]:t}},MP=(e,r)=>{if(_.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},{})},NP={list:[]},jp=(e,r)=>e.list.filter(t=>t.id!==r),kg=or({name:"modals",initialState:NP,reducers:{createModal:(e,r)=>{e.list.push(r.payload)},editModal:(e,r)=>{const{id:t,...a}=r.payload,s=e.list.find(_.byId(t));s&&Object.assign(s,{...a})},removeModal:(e,r)=>{const t=r.payload;e.list=jp(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=jp(e,t)}}}),{createModal:jg,removeModal:Bg,closeModal:LP,editModal:kP}=kg.actions;var Wg={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Bp=Ke.createContext&&Ke.createContext(Wg),sn=globalThis&&globalThis.__assign||function(){return sn=Object.assign||function(e){for(var r,t=1,a=arguments.length;t<a;t++){r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},sn.apply(this,arguments)},jP=globalThis&&globalThis.__rest||function(e,r){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(e);s<a.length;s++)r.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(t[a[s]]=e[a[s]]);return t};function Ug(e){return e&&e.map(function(r,t){return Ke.createElement(r.tag,sn({key:t},r.attr),Ug(r.child))})}function Gs(e){return function(r){return Ke.createElement(BP,sn({attr:sn({},e.attr)},r),Ug(e.child))}}function BP(e){var r=function(t){var a=e.attr,s=e.size,i=e.title,c=jP(e,["attr","size","title"]),l=s||t.size||"1em",d;return t.className&&(d=t.className),e.className&&(d=(d?d+" ":"")+e.className),Ke.createElement("svg",sn({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,a,c,{className:d,style:sn(sn({color:e.color||t.color},t.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&Ke.createElement("title",null,i),e.children)};return Bp!==void 0?Ke.createElement(Bp.Consumer,null,function(t){return r(t)}):r(Wg)}function WP(e){return Gs({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z"}}]})(e)}function UP(e){return Gs({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"}}]})(e)}function HP(e){return Gs({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.953 2C6.465 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.493 2 11.953 2zM12 20c-4.411 0-8-3.589-8-8s3.567-8 7.953-8C16.391 4 20 7.589 20 12s-3.589 8-8 8z"}},{tag:"path",attr:{d:"M11 7h2v7h-2zm0 8h2v2h-2z"}}]})(e)}function qP(e){return Gs({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"}}]})(e)}const GP={FaSave:WP,AiFillWarning:qP,BiErrorCircle:HP,BsFillInfoCircleFill:UP};var kt=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(kt||{}),Tr=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Tr||{}),Hc=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Hc||{});const sr=Q("modals/open",async(e,{dispatch:r})=>{const{type:t=kt.ALERT,store:a=Vs()}=e,s=Tc();switch(r(jg({id:s,type:t,isOpen:!0,...e})),t){case kt.CONFIRM:return new Promise(i=>{const c=a.subscribe(()=>{var p;const{modals:l}=a.getState(),d=l.list.find(g=>g.id===s);if(d&&!d.isOpen){const g=d.closeReason===Hc.CONFIRMED,m=ze.entries((p=d.views)==null?void 0:p.toggles).reduce((b,E)=>({...b,[E[0]]:E[1].value}),{});r(Bg(s)),c(),i({confirmed:g,options:m})}})});default:return{}}}),Hg=()=>_.getFileContent({name:_.ROLES_TAB_PATH}),qg="Roles & Privileges",ws=Q("roles/fetchRoles",async(e,{dispatch:r,rejectWithValue:t})=>{var i;let a;try{a=await Hg()}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:_.ROLES_TAB_PATH,date:new Date().toISOString(),content:{permissions:{allowed:[]},privileges:[],roles:[]}}}const s={name:qg,type:_.FileFolderType.ROLES,date:a.date,view:{panel:{isOpen:!1,type:"",current:""}},path:_.ROLES_TAB_PATH,flags:{},extra:{editor:{key:"editors:roles"}},content:{}};return r(Dt(s)),{...a,content:Hs(a.content)}}),Gg=Q("roles/fetchRolesChanges",async(e,{getState:r})=>{const{tabs:t}=r().root;if(t.find(s=>s.path===_.ROLES_TAB_PATH)){const{date:s}=r().roles;if(s&&await qc(s))return{old:!0}}return{}}),qc=async e=>{if(!e)return!1;try{const r=await Hg();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},fc=Q("roles/saveRoles",async(e,{getState:r,rejectWithValue:t,dispatch:a})=>{try{const{flags:s,date:i}=r().roles;if(s.old||await qc(i)){const{confirmed:d}=await a(sr({title:qg,message:"New content has been found on the server. Are you sure you want to continue?",type:kt.CONFIRM,icon:"FaSave"})).unwrap();if(!d)return t({old:!0})}return await _.setFileContent({name:_.ROLES_TAB_PATH,content:qs(e)})}catch{return t("Error while loading the roles")}}),zg=or({name:"roles",initialState:()=>{const{roles:e}=ta(),{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},setRolesContent(e,r){const{content:t,flags:a={},...s}=r.payload,i=Hs(t),c={...e.flags,...a};return{...e,...i,...s,flags:c}}},extraReducers(e){e.addCase(ws.fulfilled,(r,t)=>{const{content:a,date:s}=t.payload;r={...r,...a,date:s}}).addCase(ws.rejected,r=>({...r,roles:{},privileges:{},flags:{touched:!1},date:void 0})).addCase(fc.fulfilled,(r,t)=>({...r,flags:{...r.flags,touched:!1,old:!1},date:t.payload.date})).addCase(fc.rejected,(r,t)=>Oh.isString(t.payload)?r:{...r,flags:{...r.flags,...t.payload}}).addCase(Gg.fulfilled,(r,t)=>({...r,flags:{...r.flags,...t.payload}})).addCase(Zn.fulfilled,(r,t)=>{!t.payload||t.payload.path!==_.ROLES_TAB_PATH||(r.flags.touched=!1,r.flags.old=!1)}).addCase(Xc.fulfilled,(r,t)=>{t.meta.arg!==_.ROLES_TAB_PATH||!t.payload||(r.flags.touched=!1,r.flags.old=!1)})}}),{updatePrivileges:Yg,updateRoles:Vg,setRolesContent:Gc,toggleTab:zP,updateRolesAndPrivileges:zc}=zg.actions,YP=zg.reducer,cn="qodlyApp.json",Yc=Q("settings/fetch",async()=>await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:cn,content:!0,as:"json"})),Kg=Q("settings/app",_.getAppSettings),VP=Eh(),Wp={session:{"studio.tips":!0,"studio.notifications":!0,"studio.tipsBaseUrl":"https://raw.githubusercontent.com/4d/Web-studio-TIPS/gh-build","webforms.tooltip.behavior":jc.SHOW_AFTER_TIMEOUT,"webforms.tooltip.timeout":3e3,"webforms.renderer.showPopOver":!0,"welcometour.active":!0,"webforms.properties.advanced-mode":!1,"monaco.zoom":0},project:{"webforms.renderer.indexPage":"","webforms.display-mode":"neutral"},server:{projectOpened:!1,remoteDebuggerMode:_.RemoteDebuggerMode.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:"",lsp:""},isRestActive:!0}},KP={...Wp,session:{...Wp.session,...VP},welcometour:{}},Jg=or({name:"settings",initialState:KP,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(Yc.fulfilled,(r,t)=>{r.project={...r.project,...t.payload.content}}),e.addCase(Kg.fulfilled,(r,t)=>{r.server=t.payload,r.server.qodly&&(r.project["webforms.display-mode"]="airy")})}}),{setSetting:Xg,setSettings:zs,setSettingsAsText:JP}=Jg.actions,XP=Jg.reducer,dc=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))},Re=(e,r)=>e.reduce((t,a)=>a.path===r.path&&a.type===r.type?[...t,r]:a.children?[...t,{...a,children:dc(Re(a.children,r))}]:[...t,a],[]),ft=(e,r)=>e.reduce((t,a)=>t||(a.path===r?a:a.children?ft(a.children,r):null),null),ZP=[{name:_.FolderRootPath.WEBFORMS,type:_.FileFolderType.FOLDER,children:[],path:_.FolderRootPath.WEBFORMS,error:null,flags:{expanded:!1,loading:!1,cached:!1},tipKey:"editors:webform:explorer:webforms",config:{},isRoot:!0},{name:_.FolderRootPath.METHODS,type:_.FileFolderType.FOLDER,children:[],path:_.FolderRootPath.METHODS,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:_.FolderRootPath.CLASSES,type:_.FileFolderType.FOLDER,children:[],path:_.FolderRootPath.CLASSES,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:_.FolderRootPath.SHARED,type:_.FileFolderType.FOLDER,children:[],path:_.FolderRootPath.SHARED,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:"Debugger",type:_.FileFolderType.FOLDER,children:[],path:"Debugger",error:null,flags:{expanded:!1,cached:!0},config:{},isRoot:!0},{name:"Roles And Privileges",type:_.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:_.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:_.FileFolderType.FILE,ext:"json",path:"qodlyApp",error:null,flags:{},config:{editor:{key:"editors:settings"}},isRoot:!0}],Zg=or({name:"explorer",initialState:ZP,reducers:{toggleExpandFolder:(e,r)=>(e=Re(e,{...r.payload,flags:{...r.payload.flags,expanded:!r.payload.flags.expanded}}),e),expandFolder:(e,r)=>(e=Re(e,{...r.payload,flags:{...r.payload.flags,expanded:!0}}),e),openAddFileInput:(e,r)=>Re(e,{...r.payload,flags:{...r.payload.flags,adding:!0}}),addNewFile:(e,r)=>{const{parent:t,child:a}=r.payload;return Re(e,{...t,children:[a,...t.children||[]]})},removeFile:(e,r)=>{const{parent:t,child:a}=r.payload;return Re(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 Re(e,{...t,children:[a,...s]})},setFolderChildren:(e,r)=>{const t=ft(e,r.payload.parentPath);return t?Re(e,{...t,children:r.payload.children}):e}},extraReducers:e=>{e.addCase(Xn.pending,(r,t)=>{const{file:a,newname:s}=t.meta.arg,i=ft(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":_.lspSubject.next({action:_.LspActions.WILL_RENAME,payload:{oldPath:l,newPath:d}});break}return Re(r,{...i,flags:{...i.flags,loading:!0}})}),e.addCase(Xn.fulfilled,(r,t)=>{const{meta:{arg:{file:a}},payload:s}=t,i=ft(r,a.path);if(!i)return r;switch(s.old.ext){case"4dm":case"4qs":_.lspSubject.next({action:_.LspActions.DID_RENAME,payload:{oldPath:s.old.path,newPath:s.new.path}});break}return Re(r,{...i,flags:{...i.flags,loading:!1}})}),e.addCase(Xn.rejected,(r,t)=>{const{file:a}=t.meta.arg,s=ft(r,a.path);return s?Re(r,{...s,flags:{...s.flags,loading:!1}}):r}),e.addCase(Sr.pending,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,flags:{...s.flags,loading:!0}}):r}),e.addCase(Sr.fulfilled,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,children:dc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!0},error:null}):r}),e.addCase(Sr.rejected,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!0}}):r}),e.addCase(Fa.pending,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,flags:{...s.flags,loading:!0}}):r}),e.addCase(Fa.fulfilled,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,children:dc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!1},error:null}):r}),e.addCase(Fa.rejected,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!1}}):r}),e.addCase(rs.pending,(r,t)=>{const{fileName:a,parentNode:s,path:i,type:c}=t.meta.arg;return Re(r,{...s,children:[{name:a,path:`${i}/${a}`,type:c,error:null,flags:{loading:!0},config:{}},...s.children]})}),e.addCase(rs.fulfilled,(r,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg,c=_.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=gr(`${a}${c?`.${c.toLowerCase()}`:""}`);return Re(r,{name:s,path:`${a}/${s}`,type:i,error:null,flags:{loading:!1},config:{editor:l,supportedEditors:d}})}),e.addCase(rs.rejected,(r,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg;return Re(r,{name:s,path:`${a}/${s}`,type:i,error:{message:t.payload},flags:{loading:!1},config:{}})}),e.addCase(ns.pending,(r,t)=>{const{node:a,parentNode:s}=t.meta.arg;return Re(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(ns.fulfilled,(r,t)=>{const{node:a}=t.payload,{node:{path:s,ext:i}}=t.meta.arg,{editor:c,supportedEditors:l}=gr(`${s}${i?`.${i.toLowerCase()}`:""}`);return Re(r,{name:`${a.name}`,path:`${s}/${a.name}`,type:a.type,error:null,flags:{loading:!1},config:{editor:c,supportedEditors:l}})}),e.addCase(ns.rejected,(r,t)=>{const a=t.payload,{node:s}=t.meta.arg;return Re(r,{name:`${s.name}_copy`,path:`${s.path}/${s.name}_copy`,type:s.type,error:{message:a},flags:{loading:!1},config:{}})}),e.addCase(Ma.pending,(r,t)=>{}),e.addCase(Ma.fulfilled,(r,t)=>{var m;const{draggedNode:a,newLocation:s}=t.meta.arg,i=tg(a.path),c=ft(r,i),l=ft(r,s.path),d=(m=c==null?void 0:c.children)==null?void 0:m.filter(b=>b.path!==a.path),p=s.path.split("/").length,g=a.path.split("/").length;return p>=g?(r=Re(r,{...c,children:d}),r=Re(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=Re(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=Re(r,{...c,children:d})),r}),e.addCase(Ma.rejected,(r,t)=>{_.toastSubject.next({message:"Error moving file",kind:"danger"})}),e.addCase(Jn.pending,(r,t)=>{var C;const{fileName:a,parentNode:s,path:i,type:c,qodly:l}=t.meta.arg,d=_.getFileExtentionFromType(c,l),p=`${i}/${a}${d?`.${d.toLowerCase()}`:""}`,{editor:g,supportedEditors:m}=gr(p);switch(c){case _.FileFolderType.CLASS:case _.FileFolderType.METHOD:_.lspSubject.next({action:_.LspActions.WILL_CREATE,payload:{filePath:p}});break}const b=(C=s.children)==null?void 0:C.filter(I=>I.path!==`${i}/${a}`),E=[{name:a,path:`${i}/${a}`,type:_.FileFolderType.FILE,error:null,flags:{loading:!0},config:{editor:g,supportedEditors:m},ext:d,date:new Date().toISOString()},...b],x=Re(r,{...s,children:E});return Oh.merge(r,x)}),e.addCase(Jn.fulfilled,(r,t)=>{const{fileName:a,path:s,type:i,qodly:c}=t.meta.arg,l=_.getFileExtentionFromType(i,c),d=`${s}/${a}${l?`.${l.toLowerCase()}`:""}`,{editor:p,supportedEditors:g}=gr(d),m=Re(r,{name:a,path:`${s}/${a}`,type:_.FileFolderType.FILE,error:null,flags:{},config:{editor:p,supportedEditors:g},ext:l,date:new Date().toISOString()});switch(i){case _.FileFolderType.CLASS:case _.FileFolderType.METHOD:_.lspSubject.next({action:_.LspActions.DID_CREATE,payload:{filePath:d}});break}return r=m,r}),e.addCase(Jn.rejected,(r,t)=>{const{fileName:a,path:s,type:i}=t.meta.arg,c=_.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=gr(`${s}${c?`.${c.toLowerCase()}`:""}`);return r=Re(r,{name:a,path:`${s}/${a}`,type:_.FileFolderType.FILE,error:{message:"Failed creating file"},flags:{},config:{editor:l,supportedEditors:d},ext:c,date:new Date().toISOString()}),r}),e.addMatcher(ch($a),(r,t)=>{const a=ft(r,t.meta.arg.file.path.split(".")[0]);return a&&(r=Re(r,{...a,flags:{...a.flags,loading:!0}})),r}),e.addMatcher(fh($a),(r,t)=>{const a=ft(r,t.meta.arg.file.path.split(".")[0]);return a&&(r=Re(r,{...a,flags:{...a.flags,loading:!1}})),r}),e.addMatcher(lh($a),(r,t)=>{const a=ft(r,t.meta.arg.file.path.split(".")[0]);return a&&(r=Re(r,{...a,flags:{...a.flags,loading:!1}})),_.toastSubject.next({message:"Failed to open file, try again",kind:"danger"}),r})}}),{toggleExpandFolder:QP,expandFolder:eD,openAddFileInput:tD,addNewFile:Qg,refreshFile:rD,removeFile:pc,setFolderChildren:nD}=Zg.actions;function ev(e){switch(e){case _.FileFolderType.WEBFORMS:return xg;case _.FileFolderType.METHODS:return`//%attributes = {}
|
|
91
|
-
`;default:return""}}function tv(e,r,t){switch(r){case _.FileFolderType.MOBILEFORM:return`${e}.MForm`;case _.FileFolderType.WEBFORM:return`${e}.WebForm`;case _.FileFolderType.METHOD:case _.FileFolderType.CLASS:return`${e}.${t?"4qs":"4dm"}`;default:return e}}function aD(e){switch(e){case _.FolderRootPath.WEBFORMS:return _.FileFolderType.WEBFORMS;case _.FolderRootPath.METHODS:return _.FileFolderType.METHODS;case _.FolderRootPath.CLASSES:return _.FileFolderType.CLASSES;case"Mobile":return _.FileFolderType.MOBILE;default:return e}}function rv(e){switch(e){case _.FileFolderType.WEBFORMS:return _.FileFolderType.WEBFORM;case _.FileFolderType.CLASSES:return _.FileFolderType.CLASS;case _.FileFolderType.METHODS:return _.FileFolderType.METHOD;case _.FileFolderType.FOLDER:return _.FileFolderType.FOLDER;case _.FileFolderType.MOBILE:return _.FileFolderType.MOBILEFORM;default:return e}}const oD=Q("files/tryEditMethod",async({method:e},{dispatch:r})=>{const t=e.filePath.split("/"),[a]=t[1].split("."),{editor:s}=gr(e.filePath);return await r(Vc({file:{name:a,path:e.filePath,date:new Date().toISOString(),type:_.FileFolderType.CLASS,editor:s},line:e.startingLine+1})).unwrap()}),hc=Q("explorer/createModelFiles",async(e,{dispatch:r,getState:t})=>{var m;const a=t(),s=_.FolderRootPath.CLASSES,i=a.settings.server.qodly,c=ft(a.explorer,s);if(!c)return;await r(Sr(s));const d=((m=t().explorer.find(b=>b.name===s))==null?void 0:m.children)||[];let p=[{content:"",name:""}];const g=b=>{switch(b){case"dataclass":return{name:e.type==="dataclass"?e.className:"DataStore",content:i?`extends DataClass
|
|
90
|
+
`),x}return ic(function(){d.current=e,p.current=m,g.current=b,l.current=void 0}),ic(function(){function x(){try{var C=t.getState();if(C===p.current)return;var I=d.current(C);if(r(I,g.current))return;g.current=I,p.current=C}catch(P){l.current=P}i()}return c.onStateChange=x,c.trySubscribe(),x(),function(){return c.tryUnsubscribe()}},[t,c]),b}function xO(e){e===void 0&&(e=Wr);var r=e===Wr?ig:function(){return Ke.useContext(e)};return function(a,s){if(s===void 0&&(s=wO),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=TO(a,s,c,l);return Ke.useDebugValue(d),d}}var CO=xO();lO(eS.unstable_batchedUpdates);const RO=()=>SO(),Ur=CO,$c=q(e=>e,e=>e.catalog.state==="loaded"?e.catalog.model:null),OO=q(e=>e,({catalog:e})=>e.state),AO=q($c,e=>e?e.dataClasses:[]),PO=q($c,e=>e?e.methods:[]),cg=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[]}}),DO=e=>Ur(cg(e),sg),IO=(e,r)=>q(cg(e),t=>t.find(a=>`${a.applyTo}.${a.name}`===r)),FO=(e,r,t)=>Ur(IO(e,`${t}.${r}`),sg),lg=q(e=>e,e=>e),$O=e=>q(Hr,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]}))}),fg=e=>q(Hr,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)||[]}),MO=(e,r,t)=>q(lg,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}}),dg=q(e=>e,e=>{var r;return((r=e.sharedDatasources)==null?void 0:r.sources)||[]}),NO=(e,r,t,a)=>q(fg(e),dg,(s,i)=>{const c=ze.flatten(ze.values(i)),l=[...r!=="private"?s:[],...r!=="shared"?c:[]];return t?l.filter(d=>(!a||a.every(({id:p,namespace:g=""})=>d.id!==p||(d.namespace||"")!==g))&&(t.includes(d.type)||d.dataType&&(t.includes(d.dataType)||t.includes("objectFromArray")&&d.dataType==="object"&&d.from))):l}),LO=q(e=>e.debugger,e=>e.meta),Pn=q(e=>e.debugger,e=>e.list),It=q(e=>e.debugger,e=>e.sessions),jO=q(It,e=>e.length),On=(e,r,t,a)=>e.find(s=>s.filePath===r&&s.methodName===t&&(!a||s.className===a)),st=(e,r)=>e.find(t=>t.threadId===r),pg=(e,r)=>e.find(t=>t.tabPath===r),kO=(e,r)=>q(Pn,t=>{var a;return((a=On(t,e,r))==null?void 0:a.breakpoints.saved.locations)||[]}),BO=(e,r)=>q(Pn,t=>{var a;return((a=On(t,e,r))==null?void 0:a.breakpoints.draft.locations)||[]}),WO=e=>q(Pn,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)),UO=e=>q(Pn,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)),HO=e=>q(It,r=>{const t=st(r,e);return t!=null&&t.stopped?t.highlightedLines:null}),qO=e=>q(It,r=>{const t=st(r,e);return t!=null&&t.stopped?t.activeLine:null}),GO=e=>q(It,r=>{var t;return((t=st(r,e))==null?void 0:t.expressions)||[]}),zO=e=>q(It,r=>{var t;return((t=st(r,e))==null?void 0:t.stopped)||!1}),YO=(e,r)=>q(Pn,t=>{var a;return(a=On(t,e,r))==null?void 0:a.source}),VO=e=>q(It,r=>{var t;return((t=pg(r,e))==null?void 0:t.threadId)||-1}),KO=e=>q(It,r=>{var t,a;return(a=(t=st(r,e))==null?void 0:t.currentStackFrame)==null?void 0:a.source}),JO=e=>q(It,r=>{var t;return(t=st(r,e))==null?void 0:t.currentStackFrame}),XO=q(It,e=>e.map(({channelId:r,threadId:t})=>({id:r,threadId:t}))),ZO=e=>q(It,r=>{var t;return((t=st(r,e))==null?void 0:t.stackFrames)||[]}),QO=e=>q(It,r=>{var t,a;return((a=(t=st(r,e))==null?void 0:t.variables)==null?void 0:a.callchain)||[]}),eA=e=>q(It,r=>{var t,a;return((a=(t=st(r,e))==null?void 0:t.variables)==null?void 0:a.expressions)||[]}),tA=(e,r="saved")=>q(Pn,t=>{const a=t.find(s=>s.filePath===e);return(a==null?void 0:a.breakpoints[r].offset)||0}),rA=(e,r,t,a)=>q(It,s=>{var p;const i=((p=st(s,e))==null?void 0:p.exceptions)||[],c=r===_.FileFolderType.CLASS,l=c&&a?`${a}.${t}`:t;return(l?i.filter(g=>g.location===l):i).map(g=>({...g,locationLine:c?g.locationLine:g.locationLine+1}))}),Hr=q(e=>e.root,e=>e),ia=q(Hr,e=>e.tabs),nA=q(Hr,e=>e.activeTab),aA=q(Hr,e=>e.recent.filter(({type:r})=>r!==_.FileFolderType.DEBUGGER)),oA=q(Hr,({tabs:e,activeTab:r})=>e.find(({path:t})=>t===r)),sA=q(Hr,({tabs:e})=>e.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null)),iA=q(ia,e=>e.filter(({type:r,flags:t})=>r===_.FileFolderType.WEBFORM&&t.enabled===!1).map(({path:r})=>r)),uA=q(ia,e=>e.length>0),Ga=e=>q(Hr,r=>r.tabs.find(({path:t})=>t===e)),hg=(e,r="")=>q(Ga(e),t=>!t||!t.content||typeof t.content=="string"?t==null?void 0:t.content:ze.get(t.content,r)),cA=e=>q(Ga(e),r=>r==null?void 0:r.extra),lA=(e,r=t=>t)=>q(hg(e,"components"),t=>r(t||{})),Mc=q(ia,e=>e.filter(r=>r.flags.touched)),fA=q(Mc,e=>e.length),dA=q(It,e=>e.map(({threadId:r,currentStackFrame:{source:t},tabPath:a})=>({name:Ah(r,t),path:a,type:_.FileFolderType.DEBUGGER,content:t==null?void 0:t.content,flags:{},extra:{source:t}}))),pA=q(e=>e,e=>e.explorer||[]),gg=q(e=>e,e=>e.explorer.find(r=>r.path===_.FolderRootPath.WEBFORMS)),vg=q(e=>e,e=>e.explorer.find(r=>r.path===_.FolderRootPath.METHODS)),mg=q(e=>e,e=>e.explorer.find(r=>r.path===_.FolderRootPath.CLASSES)),hA=q(vg,e=>(e==null?void 0:e.children)||[]),gA=q(gg,e=>(e==null?void 0:e.children)||[]),vA=q(mg,e=>(e==null?void 0:e.children)||[]),mA=q(e=>e.modals,e=>e.list),yA=q(e=>e.roles,e=>qs(e)),bA=q(e=>e.roles,({roles:e})=>e),_A=q(e=>e.roles,({privileges:e})=>e),EA=q(e=>e.roles,({privileges:e})=>Object.values(e).find(({privilege:r})=>r==="guest")),SA=q(e=>e.roles,({flags:e})=>e),wA=q(e=>e.roles,({selectedTab:e})=>e),TA=q(e=>e.roles,({date:e})=>e),yg=q(e=>e.settings,e=>e.session),xA=q(e=>e.settings,e=>e.project),CA=q(e=>e.settings,e=>e),Nc=q(e=>e.settings,e=>e.server),RA=q(Nc,e=>e.remoteDebuggerMode),OA=q(Nc,e=>e.qodly),AA=q(yg,e=>e["monaco.zoom"]),bg=["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"],_g=bg.map(e=>({id:wc(),content:"",name:e,parentId:null,scope:_.EWebFormStyleClassScope.THEME})),Lc=e=>q(Ga(e),r=>{var t,a;return((a=(t=r==null?void 0:r.content)==null?void 0:t.metadata)==null?void 0:a.styles)||[]}),PA=(e,r)=>q(Lc(e),t=>r.map(a=>{switch(!0){case a===_.EWebFormStyleClassScope.LOCAL:return t.map(s=>({...s,scope:_.EWebFormStyleClassScope.LOCAL}));case a===_.EWebFormStyleClassScope.THEME:return _g;default:return[]}}).flat()),DA=e=>q(Lc(e),r=>[...r.map(t=>({...t,scope:_.EWebFormStyleClassScope.LOCAL})),..._g]),IA=q(e=>e,e=>{var r;return[...(((r=e.sharedCSS)==null?void 0:r.styles)||[]).map(t=>({...t,scope:_.EWebFormStyleClassScope.SHARED}))]}),FA=e=>q(Ga(e),r=>r==null?void 0:r.flags),za=q(e=>e.webforms,e=>e),Eg=q(za,e=>(e==null?void 0:e.components)||[]),js=q(za,e=>e.inspector),$A=q(js,e=>e.css),MA=q(js,e=>e.datasource),Sg=q(za,e=>e.templates||{data:[]}),NA=q(Sg,e=>e.data||[]),LA=e=>q(Eg,r=>r.find(t=>t.id===e)),jA=e=>q(js,r=>r[e]),kA=q(za,e=>e.datasources.theme),BA=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)));var jc=(e=>(e.SHOW_AFTER_TIMEOUT="show_after_timeout",e.HIDE_AFTER_TIMEOUT="hide_after_timeout",e))(jc||{}),kc=(e=>(e.AIRY="airy",e.COMPACT="neutral",e))(kc||{}),Ko,WA=new Uint8Array(16);function wg(){if(!Ko&&(Ko=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Ko))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ko(WA)}const UA=/^(?:[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 ks(e){return typeof e=="string"&&UA.test(e)}var mt=[];for(var $u=0;$u<256;++$u)mt.push(($u+256).toString(16).substr(1));function Bs(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(mt[e[r+0]]+mt[e[r+1]]+mt[e[r+2]]+mt[e[r+3]]+"-"+mt[e[r+4]]+mt[e[r+5]]+"-"+mt[e[r+6]]+mt[e[r+7]]+"-"+mt[e[r+8]]+mt[e[r+9]]+"-"+mt[e[r+10]]+mt[e[r+11]]+mt[e[r+12]]+mt[e[r+13]]+mt[e[r+14]]+mt[e[r+15]]).toLowerCase();if(!ks(t))throw TypeError("Stringified UUID is invalid");return t}var Lp,Mu,Nu=0,Lu=0;function HA(e,r,t){var a=r&&t||0,s=r||new Array(16);e=e||{};var i=e.node||Lp,c=e.clockseq!==void 0?e.clockseq:Mu;if(i==null||c==null){var l=e.random||(e.rng||wg)();i==null&&(i=Lp=[l[0]|1,l[1],l[2],l[3],l[4],l[5]]),c==null&&(c=Mu=(l[6]<<8|l[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),p=e.nsecs!==void 0?e.nsecs:Lu+1,g=d-Nu+(p-Lu)/1e4;if(g<0&&e.clockseq===void 0&&(c=c+1&16383),(g<0||d>Nu)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Nu=d,Lu=p,Mu=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 b=d/4294967296*1e4&268435455;s[a++]=b>>>8&255,s[a++]=b&255,s[a++]=b>>>24&15|16,s[a++]=b>>>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||Bs(s)}function Tg(e){if(!ks(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 qA(e){e=unescape(encodeURIComponent(e));for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t));return r}var GA="6ba7b810-9dad-11d1-80b4-00c04fd430c8",zA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function xg(e,r,t){function a(s,i,c,l){if(typeof s=="string"&&(s=qA(s)),typeof i=="string"&&(i=Tg(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 Bs(d)}try{a.name=e}catch{}return a.DNS=GA,a.URL=zA,a}function YA(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 VA(KA(JA(e),e.length*8))}function VA(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 Cg(e){return(e+64>>>9<<4)+14+1}function KA(e,r){e[r>>5]|=128<<r%32,e[Cg(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,g=i;t=Et(t,a,s,i,e[c],7,-680876936),i=Et(i,t,a,s,e[c+1],12,-389564586),s=Et(s,i,t,a,e[c+2],17,606105819),a=Et(a,s,i,t,e[c+3],22,-1044525330),t=Et(t,a,s,i,e[c+4],7,-176418897),i=Et(i,t,a,s,e[c+5],12,1200080426),s=Et(s,i,t,a,e[c+6],17,-1473231341),a=Et(a,s,i,t,e[c+7],22,-45705983),t=Et(t,a,s,i,e[c+8],7,1770035416),i=Et(i,t,a,s,e[c+9],12,-1958414417),s=Et(s,i,t,a,e[c+10],17,-42063),a=Et(a,s,i,t,e[c+11],22,-1990404162),t=Et(t,a,s,i,e[c+12],7,1804603682),i=Et(i,t,a,s,e[c+13],12,-40341101),s=Et(s,i,t,a,e[c+14],17,-1502002290),a=Et(a,s,i,t,e[c+15],22,1236535329),t=St(t,a,s,i,e[c+1],5,-165796510),i=St(i,t,a,s,e[c+6],9,-1069501632),s=St(s,i,t,a,e[c+11],14,643717713),a=St(a,s,i,t,e[c],20,-373897302),t=St(t,a,s,i,e[c+5],5,-701558691),i=St(i,t,a,s,e[c+10],9,38016083),s=St(s,i,t,a,e[c+15],14,-660478335),a=St(a,s,i,t,e[c+4],20,-405537848),t=St(t,a,s,i,e[c+9],5,568446438),i=St(i,t,a,s,e[c+14],9,-1019803690),s=St(s,i,t,a,e[c+3],14,-187363961),a=St(a,s,i,t,e[c+8],20,1163531501),t=St(t,a,s,i,e[c+13],5,-1444681467),i=St(i,t,a,s,e[c+2],9,-51403784),s=St(s,i,t,a,e[c+7],14,1735328473),a=St(a,s,i,t,e[c+12],20,-1926607734),t=wt(t,a,s,i,e[c+5],4,-378558),i=wt(i,t,a,s,e[c+8],11,-2022574463),s=wt(s,i,t,a,e[c+11],16,1839030562),a=wt(a,s,i,t,e[c+14],23,-35309556),t=wt(t,a,s,i,e[c+1],4,-1530992060),i=wt(i,t,a,s,e[c+4],11,1272893353),s=wt(s,i,t,a,e[c+7],16,-155497632),a=wt(a,s,i,t,e[c+10],23,-1094730640),t=wt(t,a,s,i,e[c+13],4,681279174),i=wt(i,t,a,s,e[c],11,-358537222),s=wt(s,i,t,a,e[c+3],16,-722521979),a=wt(a,s,i,t,e[c+6],23,76029189),t=wt(t,a,s,i,e[c+9],4,-640364487),i=wt(i,t,a,s,e[c+12],11,-421815835),s=wt(s,i,t,a,e[c+15],16,530742520),a=wt(a,s,i,t,e[c+2],23,-995338651),t=Tt(t,a,s,i,e[c],6,-198630844),i=Tt(i,t,a,s,e[c+7],10,1126891415),s=Tt(s,i,t,a,e[c+14],15,-1416354905),a=Tt(a,s,i,t,e[c+5],21,-57434055),t=Tt(t,a,s,i,e[c+12],6,1700485571),i=Tt(i,t,a,s,e[c+3],10,-1894986606),s=Tt(s,i,t,a,e[c+10],15,-1051523),a=Tt(a,s,i,t,e[c+1],21,-2054922799),t=Tt(t,a,s,i,e[c+8],6,1873313359),i=Tt(i,t,a,s,e[c+15],10,-30611744),s=Tt(s,i,t,a,e[c+6],15,-1560198380),a=Tt(a,s,i,t,e[c+13],21,1309151649),t=Tt(t,a,s,i,e[c+4],6,-145523070),i=Tt(i,t,a,s,e[c+11],10,-1120210379),s=Tt(s,i,t,a,e[c+2],15,718787259),a=Tt(a,s,i,t,e[c+9],21,-343485551),t=nn(t,l),a=nn(a,d),s=nn(s,p),i=nn(i,g)}return[t,a,s,i]}function JA(e){if(e.length===0)return[];for(var r=e.length*8,t=new Uint32Array(Cg(r)),a=0;a<r;a+=8)t[a>>5]|=(e[a/8]&255)<<a%32;return t}function nn(e,r){var t=(e&65535)+(r&65535),a=(e>>16)+(r>>16)+(t>>16);return a<<16|t&65535}function XA(e,r){return e<<r|e>>>32-r}function Ws(e,r,t,a,s,i){return nn(XA(nn(nn(r,e),nn(a,i)),s),t)}function Et(e,r,t,a,s,i,c){return Ws(r&t|~r&a,e,r,s,i,c)}function St(e,r,t,a,s,i,c){return Ws(r&a|t&~a,e,r,s,i,c)}function wt(e,r,t,a,s,i,c){return Ws(r^t^a,e,r,s,i,c)}function Tt(e,r,t,a,s,i,c){return Ws(t^(r|~a),e,r,s,i,c)}var ZA=xg("v3",48,YA);const QA=ZA;function eP(e,r,t){e=e||{};var a=e.random||(e.rng||wg)();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 Bs(a)}function tP(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 ju(e,r){return e<<r|e>>>32-r}function rP(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),g=0;g<16;++g)p[g]=e[d*64+g*4]<<24|e[d*64+g*4+1]<<16|e[d*64+g*4+2]<<8|e[d*64+g*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 b=new Uint32Array(80),E=0;E<16;++E)b[E]=l[m][E];for(var x=16;x<80;++x)b[x]=ju(b[x-3]^b[x-8]^b[x-14]^b[x-16],1);for(var C=t[0],I=t[1],P=t[2],k=t[3],M=t[4],j=0;j<80;++j){var O=Math.floor(j/20),Y=ju(C,5)+tP(O,I,P,k)+M+r[O]+b[j]>>>0;M=k,k=P,P=ju(I,30)>>>0,I=C,C=Y}t[0]=t[0]+C>>>0,t[1]=t[1]+I>>>0,t[2]=t[2]+P>>>0,t[3]=t[3]+k>>>0,t[4]=t[4]+M>>>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 nP=xg("v5",80,rP);const aP=nP,oP="00000000-0000-0000-0000-000000000000";function sP(e){if(!ks(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const iP=Object.freeze(Object.defineProperty({__proto__:null,NIL:oP,parse:Tg,stringify:Bs,v1:HA,v3:QA,v4:eP,v5:aP,validate:ks,version:sP},Symbol.toStringTag,{value:"Module"})),uP=ow(iP);function Bc(e,r){if(!e||!r||!e.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=r}Bc.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};Bc.prototype.isValid=function(e){for(var r=0;r<e.length;++r)if(this.srcAlphabet.indexOf(e[r])===-1)return!1;return!0};var cP=Bc,lP=cP;function Ya(e,r){var t=new lP(e,r);return function(a){return t.convert(a)}}Ya.BIN="01";Ya.OCT="01234567";Ya.DEC="0123456789";Ya.HEX="0123456789abcdef";var fP=Ya;const{v4:ku}=uP,Jo=fP,Bu="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",dP="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",pP={consistentLength:!0};let Wu;const jp=(e,r,t)=>{const a=r(e.toLowerCase().replace(/-/g,""));return!t||!t.consistentLength?a:a.padStart(t.shortIdLength,t.paddingChar)},hP=(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("-")},gP=e=>Math.ceil(Math.log(2**128)/Math.log(e));var bs=(()=>{const e=(r,t)=>{const a=r||Bu,s={...pP,...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=gP(a.length),c={shortIdLength:i,consistentLength:s.consistentLength,paddingChar:a[0]},l=Jo(Jo.HEX,a),d=Jo(a,Jo.HEX),p=()=>jp(ku(),l,c),g={new:p,generate:p,uuid:ku,fromUUID:m=>jp(m,l,c),toUUID:m=>hP(m,d),alphabet:a,maxLength:i};return Object.freeze(g),g};return e.constants={flickrBase58:Bu,cookieBase90:dP},e.uuid=ku,e.generate=()=>(Wu||(Wu=e(Bu).generate),Wu()),e})(),Ae=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e))(Ae||{});const vP=[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE,Ae.METHOD],_s="guest",Wc=[{key:"read",label:"Read",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"create",label:"Create",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"update",label:"Update",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"drop",label:"Delete",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"describe",label:"Describe",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE,Ae.METHOD]},{key:"execute",label:"Execute",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.METHOD]},{key:"promote",label:"Promote",canApplyTo:[Ae.METHOD]}];function ar(e,...r){return Array.from(new Set([...e,...r]))}function Rg(e){const r={},t=new Map;e.forEach(d=>{const p=d.id||bs.generate();r[p]={...d,id:p,parents:[],includes:ar(d.includes||[]),resources:[]},t.set(d.privilege,p)}),Object.entries(r).forEach(([d,p])=>{const g=p.includes.map(m=>{const b=t.get(m);return b?(r[b].parents=ar(r[b].parents,b),b):""}).filter(Boolean);r[d]={...p,includes:g}});const a=Og(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===_s))return r;const l=bs.generate();return{[l]:{id:l,privilege:_s,includes:[],parents:[],resources:[]},...r}}function Og(e){return Object.values(e).sort((r,t)=>r.parents.length-t.parents.length)}function Us(e,r){const t=r[e];let a=[];return t&&t.parents.forEach(s=>{a=ar(a,...Us(s,r),s)}),a}function Es(e,r){const t=r[e];let a=[];return t&&t.includes.forEach(s=>{a=ar(a,...Es(s,r),s)}),a}function mP(e,r){const t=r[e];if(!t)return[];const a=[e,...Us(e,r),...t.includes];return Object.keys(r).filter(s=>!a.includes(s))}function yP(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 bP(e,r,t){const a=t[e],s=t[r];return!a||!s?t:{...t,[e]:{...t[e],includes:ar(a.includes,r)},[r]:{...t[r],parents:ar(s.parents,e)}}}function _P(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 Ag(e,r){_.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=bs.generate();return{[t]:{id:t,privilege:e,includes:[],parents:[],resources:[]},...r}}function EP(e,r,t,a,s){let i=Ag(e,s);const c=Object.entries(i).find(([,l])=>l.privilege===e);return c?(i=Fg(c[1].id,r,t,a,i),i):s}function SP(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 wP(e,r){return e.map(t=>qr(t,r))}function qr(e,r){return r[e]?r[e]:null}function Pg({applyTo:e,type:r,...t}){return Object.entries(t).reduce((a,[s,i])=>{const c=ze.find(Wc,["key",s]);return!c||!c.canApplyTo.includes(r)||(typeof i=="string"?i.split(","):i).forEach(d=>{a[d]=ar(a[d]||[],s)}),a},{})}const cc=(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 Uc(e){return{permissions:Wc.filter(({canApplyTo:r})=>r.includes(e.type)).map(({key:r,label:t})=>{const a={name:r,from:[]};switch(e.type){case Ae.DATASTORE:return{...a,info:cc(t,!0)};case Ae.DATACLASS:return{...a,info:cc(t)};default:return a}}),resource:e.applyTo,type:e.type}}function Dg(e,r){const t=Ig(r),a={};return e.filter(({type:s})=>vP.includes(s)).forEach(s=>{const i=Pg(s);Object.entries(i).forEach(([c,l])=>{var g;const d=(g=t[c])==null?void 0:g.id;if(!d)return;a[d]=a[d]||{...r[d]};let p=ze.find(a[d].resources,{resource:s.applyTo,type:s.type});p||(p=Uc(s),a[d].resources.push(p)),p.permissions=p.permissions.map(m=>({...m,checked:m.checked||l.includes(m.name)}))})}),{...r,...a}}function Ig(e){return Object.values(e).reduce((r,t)=>({...r,[t.privilege]:t}),{})}function Hs(e){var t;const r=Rg(e.privileges||[]);return{privileges:Dg(((t=e.permissions)==null?void 0:t.allowed)||[],r),roles:(e.roles||[]).map(({id:a=bs.generate(),role:s,privileges:i=[]})=>({id:a,role:s,privileges:ar(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 qs(e){const r=Object.values(e.privileges).filter(({includes:a})=>a.length===0).map(({id:a})=>a),t=[...r,...r.map(a=>Us(a,e.privileges).reverse())].flat().filter((a,s,i)=>i.indexOf(a)===s).map(a=>e.privileges[a]);return{permissions:{allowed:Object.values(e.privileges).reduce((a,s)=>(s.resources.forEach(({permissions:i,resource:c,type:l})=>{let d=ze.find(a,{applyTo:c,type:l});d||(d={applyTo:c,type:l},a.push(d)),i.forEach(({name:p,checked:g})=>{g&&d&&(d[p]=d[p]||[],d[p].push(s.privilege))})}),a),[])},privileges:t.filter(({privilege:a})=>a!==_s).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 TP(e,r){const t=r[e],a={children:[],links:[],parents:[],selected:e};if(!t)return a;function s(l,d,p=[]){const g=l.reduce((m,b)=>[...m,...r[b][d]],[]);return g.length===0?p:(p.push(g),s(g,d,p))}function i(l){const d=[],p=[];for(let g=l.length-1;g>=0;g-=1){const m=l[g].filter(b=>d.includes(b)?!1:(d.push(b),!0));m.length>0&&p.unshift(ar(m))}return p}function c(l,d){const p=[];return l.reduce((g,m)=>(m.forEach(b=>{r[b][d==="parents"?"includes":"parents"].forEach(x=>{p.includes(x)&&g.push(d==="parents"?{source:b,target:x}:{source:x,target:b})}),p.push(b)}),g),[])}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 xP(e,r,t){const a=qr(e,t);if(!a||ze.find(a.resources,{resource:r.applyTo,type:r.type}))return t;const s={...a,resources:[...a.resources,Uc(r)]};return{...t,[e]:s}}function CP(e,r,t){const a=qr(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 RP(e,r){const t=qr(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 Fg(e,r,t,a,s){const i=qr(e,s);if(!i)return s;const l=ze.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:Wc.filter(d=>d.canApplyTo.includes(t)).map(d=>({from:[],name:d.key,checked:d.key===a,info:cc(d.key,t===Ae.DATASTORE)}))}]};return{...s,[e]:l}}function OP(e,r,t,a){const s=qr(e,a);if(!s)return a;const c=ze.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 AP(e,r){var d;const t=$g(e,r)||[],a=((d=qr(e,r))==null?void 0:d.resources)||[],c=([...t,...a].filter(({type:p})=>p===Ae.METHOD)||[]).map(({resource:p})=>p);return Object.entries(r).reduce((p,[g,{resources:m}])=>(m.filter(({resource:b,type:E})=>E===Ae.METHOD&&c.includes(b)).forEach(({permissions:b,resource:E})=>{var C;((C=b.find(({name:I})=>I==="promote"))==null?void 0:C.checked)&&(p[E]=ar(p[E]||[],g))}),p),{})}function $g(e,r){var c;const t=qr(e,r);if(!t)return[];const a=(c=Object.values(r).find(l=>l.privilege===_s))==null?void 0:c.id;return(a&&a!==e?ar(Es(e,r),a):Es(e,r)).reduce((l,d)=>(r[d].resources.forEach(g=>{if(g.permissions.filter(({checked:E})=>E).length===0)return;const b=ze.find(l,{type:g.type,resource:g.resource});if(!b){l.push({...g,permissions:g.permissions.map(E=>({...E,from:E.checked?[d]:[],checked:!1}))});return}b.permissions=b.permissions.map((E,x)=>{let{from:C=[]}=E;return g.permissions[x].checked&&!C.includes(d)&&(C=[...C,d]),{...E,from:C,checked:E.checked}})}),l),ze.clone(t.resources.map(l=>({...l,permissions:l.permissions.map(({checked:d,...p})=>({...p,checked:!!d}))}))))}const PP=e=>e.reduce((r,t)=>({...r,[t.id]:{...t}}),{}),DP=(e,r)=>r[e]?Object.values(r).reduce((t,a)=>e===a.id||a.role===""?t:{...t,[a.id]:a},{}):r,IP=(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,FP=(e,r)=>{const t={id:e,role:"",privileges:[]};return{...r,[t.id]:t}},$P=(e,r)=>{if(_.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},{})},MP={list:[]},kp=(e,r)=>e.list.filter(t=>t.id!==r),Mg=or({name:"modals",initialState:MP,reducers:{createModal:(e,r)=>{e.list.push(r.payload)},editModal:(e,r)=>{const{id:t,...a}=r.payload,s=e.list.find(_.byId(t));s&&Object.assign(s,{...a})},removeModal:(e,r)=>{const t=r.payload;e.list=kp(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=kp(e,t)}}}),{createModal:Ng,removeModal:Lg,closeModal:NP,editModal:LP}=Mg.actions;var jg={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Bp=Ke.createContext&&Ke.createContext(jg),sn=globalThis&&globalThis.__assign||function(){return sn=Object.assign||function(e){for(var r,t=1,a=arguments.length;t<a;t++){r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},sn.apply(this,arguments)},jP=globalThis&&globalThis.__rest||function(e,r){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(e);s<a.length;s++)r.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(t[a[s]]=e[a[s]]);return t};function kg(e){return e&&e.map(function(r,t){return Ke.createElement(r.tag,sn({key:t},r.attr),kg(r.child))})}function Gs(e){return function(r){return Ke.createElement(kP,sn({attr:sn({},e.attr)},r),kg(e.child))}}function kP(e){var r=function(t){var a=e.attr,s=e.size,i=e.title,c=jP(e,["attr","size","title"]),l=s||t.size||"1em",d;return t.className&&(d=t.className),e.className&&(d=(d?d+" ":"")+e.className),Ke.createElement("svg",sn({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,a,c,{className:d,style:sn(sn({color:e.color||t.color},t.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&Ke.createElement("title",null,i),e.children)};return Bp!==void 0?Ke.createElement(Bp.Consumer,null,function(t){return r(t)}):r(jg)}function BP(e){return Gs({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z"}}]})(e)}function WP(e){return Gs({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"}}]})(e)}function UP(e){return Gs({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.953 2C6.465 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.493 2 11.953 2zM12 20c-4.411 0-8-3.589-8-8s3.567-8 7.953-8C16.391 4 20 7.589 20 12s-3.589 8-8 8z"}},{tag:"path",attr:{d:"M11 7h2v7h-2zm0 8h2v2h-2z"}}]})(e)}function HP(e){return Gs({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"}}]})(e)}const qP={FaSave:BP,AiFillWarning:HP,BiErrorCircle:UP,BsFillInfoCircleFill:WP};var jt=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(jt||{}),Tr=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Tr||{}),Hc=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Hc||{});const sr=Q("modals/open",async(e,{dispatch:r})=>{const{type:t=jt.ALERT,store:a=Uv()}=e,s=wc();switch(r(Ng({id:s,type:t,isOpen:!0,...e})),t){case jt.CONFIRM:return new Promise(i=>{const c=a.subscribe(()=>{var p;const{modals:l}=a.getState(),d=l.list.find(g=>g.id===s);if(d&&!d.isOpen){const g=d.closeReason===Hc.CONFIRMED,m=ze.entries((p=d.views)==null?void 0:p.toggles).reduce((b,E)=>({...b,[E[0]]:E[1].value}),{});r(Lg(s)),c(),i({confirmed:g,options:m})}})});default:return{}}}),Bg=()=>_.getFileContent({name:_.ROLES_TAB_PATH}),Wg="Roles & Privileges",Ss=Q("roles/fetchRoles",async(e,{dispatch:r,rejectWithValue:t})=>{var i;let a;try{a=await Bg()}catch(c){if(!Array.isArray((i=c==null?void 0:c.data)==null?void 0:i.__ERROR))return t("Error while loading the roles");a={name:_.ROLES_TAB_PATH,date:new Date().toISOString(),content:{permissions:{allowed:[]},privileges:[],roles:[]}}}const s={name:Wg,type:_.FileFolderType.ROLES,date:a.date,view:{panel:{isOpen:!1,type:"",current:""}},path:_.ROLES_TAB_PATH,flags:{},extra:{editor:{key:"editors:roles"}},content:{}};return r(Dt(s)),{...a,content:Hs(a.content)}}),Ug=Q("roles/fetchRolesChanges",async(e,{getState:r})=>{const{tabs:t}=r().root;if(t.find(s=>s.path===_.ROLES_TAB_PATH)){const{date:s}=r().roles;if(s&&await qc(s))return{old:!0}}return{}}),qc=async e=>{if(!e)return!1;try{const r=await Bg();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},lc=Q("roles/saveRoles",async(e,{getState:r,rejectWithValue:t,dispatch:a})=>{try{const{flags:s,date:i}=r().roles;if(s.old||await qc(i)){const{confirmed:d}=await a(sr({title:Wg,message:"New content has been found on the server. Are you sure you want to continue?",type:jt.CONFIRM,icon:"FaSave"})).unwrap();if(!d)return t({old:!0})}return await _.setFileContent({name:_.ROLES_TAB_PATH,content:qs(e)})}catch{return t("Error while loading the roles")}}),Hg=or({name:"roles",initialState:()=>{const{roles:e}=ta(),{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},setRolesContent(e,r){const{content:t,flags:a={},...s}=r.payload,i=Hs(t),c={...e.flags,...a};return{...e,...i,...s,flags:c}}},extraReducers(e){e.addCase(Ss.fulfilled,(r,t)=>{const{content:a,date:s}=t.payload;r={...r,...a,date:s}}).addCase(Ss.rejected,r=>({...r,roles:{},privileges:{},flags:{touched:!1},date:void 0})).addCase(lc.fulfilled,(r,t)=>({...r,flags:{...r.flags,touched:!1,old:!1},date:t.payload.date})).addCase(lc.rejected,(r,t)=>Oh.isString(t.payload)?r:{...r,flags:{...r.flags,...t.payload}}).addCase(Ug.fulfilled,(r,t)=>({...r,flags:{...r.flags,...t.payload}})).addCase(Zn.fulfilled,(r,t)=>{!t.payload||t.payload.path!==_.ROLES_TAB_PATH||(r.flags.touched=!1,r.flags.old=!1)}).addCase(Xc.fulfilled,(r,t)=>{t.meta.arg!==_.ROLES_TAB_PATH||!t.payload||(r.flags.touched=!1,r.flags.old=!1)})}}),{updatePrivileges:qg,updateRoles:Gg,setRolesContent:Gc,toggleTab:GP,updateRolesAndPrivileges:zc}=Hg.actions,zP=Hg.reducer,cn="qodlyApp.json",Yc=Q("settings/fetch",async()=>await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:cn,content:!0,as:"json"})),zg=Q("settings/app",_.getAppSettings),YP=Eh(),Wp={session:{"studio.tips":!0,"studio.notifications":!0,"studio.tipsBaseUrl":"https://raw.githubusercontent.com/4d/Web-studio-TIPS/gh-build","webforms.tooltip.behavior":jc.SHOW_AFTER_TIMEOUT,"webforms.tooltip.timeout":3e3,"webforms.renderer.showPopOver":!0,"welcometour.active":!0,"webforms.properties.advanced-mode":!1,"monaco.zoom":0},project:{"webforms.renderer.indexPage":"","webforms.display-mode":"neutral"},server:{projectOpened:!1,remoteDebuggerMode:_.RemoteDebuggerMode.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:"",lsp:""},isRestActive:!0}},VP={...Wp,session:{...Wp.session,...YP},welcometour:{}},Yg=or({name:"settings",initialState:VP,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(Yc.fulfilled,(r,t)=>{r.project={...r.project,...t.payload.content}}),e.addCase(zg.fulfilled,(r,t)=>{r.server=t.payload,r.server.qodly&&(r.project["webforms.display-mode"]="airy")})}}),{setSetting:Vg,setSettings:zs,setSettingsAsText:KP}=Yg.actions,JP=Yg.reducer,fc=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))},Re=(e,r)=>e.reduce((t,a)=>a.path===r.path&&a.type===r.type?[...t,r]:a.children?[...t,{...a,children:fc(Re(a.children,r))}]:[...t,a],[]),ft=(e,r)=>e.reduce((t,a)=>t||(a.path===r?a:a.children?ft(a.children,r):null),null),XP=[{name:_.FolderRootPath.WEBFORMS,type:_.FileFolderType.FOLDER,children:[],path:_.FolderRootPath.WEBFORMS,error:null,flags:{expanded:!1,loading:!1,cached:!1},tipKey:"editors:webform:explorer:webforms",config:{},isRoot:!0},{name:_.FolderRootPath.METHODS,type:_.FileFolderType.FOLDER,children:[],path:_.FolderRootPath.METHODS,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:_.FolderRootPath.CLASSES,type:_.FileFolderType.FOLDER,children:[],path:_.FolderRootPath.CLASSES,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:_.FolderRootPath.SHARED,type:_.FileFolderType.FOLDER,children:[],path:_.FolderRootPath.SHARED,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:"Debugger",type:_.FileFolderType.FOLDER,children:[],path:"Debugger",error:null,flags:{expanded:!1,cached:!0},config:{},isRoot:!0},{name:"Roles And Privileges",type:_.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:_.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:_.FileFolderType.FILE,ext:"json",path:"qodlyApp",error:null,flags:{},config:{editor:{key:"editors:settings"}},isRoot:!0}],Kg=or({name:"explorer",initialState:XP,reducers:{toggleExpandFolder:(e,r)=>(e=Re(e,{...r.payload,flags:{...r.payload.flags,expanded:!r.payload.flags.expanded}}),e),expandFolder:(e,r)=>(e=Re(e,{...r.payload,flags:{...r.payload.flags,expanded:!0}}),e),openAddFileInput:(e,r)=>Re(e,{...r.payload,flags:{...r.payload.flags,adding:!0}}),addNewFile:(e,r)=>{const{parent:t,child:a}=r.payload;return Re(e,{...t,children:[a,...t.children||[]]})},removeFile:(e,r)=>{const{parent:t,child:a}=r.payload;return Re(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 Re(e,{...t,children:[a,...s]})},setFolderChildren:(e,r)=>{const t=ft(e,r.payload.parentPath);return t?Re(e,{...t,children:r.payload.children}):e}},extraReducers:e=>{e.addCase(Xn.pending,(r,t)=>{const{file:a,newname:s}=t.meta.arg,i=ft(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":_.lspSubject.next({action:_.LspActions.WILL_RENAME,payload:{oldPath:l,newPath:d}});break}return Re(r,{...i,flags:{...i.flags,loading:!0}})}),e.addCase(Xn.fulfilled,(r,t)=>{const{meta:{arg:{file:a}},payload:s}=t,i=ft(r,a.path);if(!i)return r;switch(s.old.ext){case"4dm":case"4qs":_.lspSubject.next({action:_.LspActions.DID_RENAME,payload:{oldPath:s.old.path,newPath:s.new.path}});break}return Re(r,{...i,flags:{...i.flags,loading:!1}})}),e.addCase(Xn.rejected,(r,t)=>{const{file:a}=t.meta.arg,s=ft(r,a.path);return s?Re(r,{...s,flags:{...s.flags,loading:!1}}):r}),e.addCase(Sr.pending,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,flags:{...s.flags,loading:!0}}):r}),e.addCase(Sr.fulfilled,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,children:fc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!0},error:null}):r}),e.addCase(Sr.rejected,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!0}}):r}),e.addCase(Fa.pending,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,flags:{...s.flags,loading:!0}}):r}),e.addCase(Fa.fulfilled,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,children:fc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!1},error:null}):r}),e.addCase(Fa.rejected,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!1}}):r}),e.addCase(ts.pending,(r,t)=>{const{fileName:a,parentNode:s,path:i,type:c}=t.meta.arg;return Re(r,{...s,children:[{name:a,path:`${i}/${a}`,type:c,error:null,flags:{loading:!0},config:{}},...s.children]})}),e.addCase(ts.fulfilled,(r,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg,c=_.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=gr(`${a}${c?`.${c.toLowerCase()}`:""}`);return Re(r,{name:s,path:`${a}/${s}`,type:i,error:null,flags:{loading:!1},config:{editor:l,supportedEditors:d}})}),e.addCase(ts.rejected,(r,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg;return Re(r,{name:s,path:`${a}/${s}`,type:i,error:{message:t.payload},flags:{loading:!1},config:{}})}),e.addCase(rs.pending,(r,t)=>{const{node:a,parentNode:s}=t.meta.arg;return Re(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(rs.fulfilled,(r,t)=>{const{node:a}=t.payload,{node:{path:s,ext:i}}=t.meta.arg,{editor:c,supportedEditors:l}=gr(`${s}${i?`.${i.toLowerCase()}`:""}`);return Re(r,{name:`${a.name}`,path:`${s}/${a.name}`,type:a.type,error:null,flags:{loading:!1},config:{editor:c,supportedEditors:l}})}),e.addCase(rs.rejected,(r,t)=>{const a=t.payload,{node:s}=t.meta.arg;return Re(r,{name:`${s.name}_copy`,path:`${s.path}/${s.name}_copy`,type:s.type,error:{message:a},flags:{loading:!1},config:{}})}),e.addCase(Ma.pending,(r,t)=>{}),e.addCase(Ma.fulfilled,(r,t)=>{var m;const{draggedNode:a,newLocation:s}=t.meta.arg,i=qh(a.path),c=ft(r,i),l=ft(r,s.path),d=(m=c==null?void 0:c.children)==null?void 0:m.filter(b=>b.path!==a.path),p=s.path.split("/").length,g=a.path.split("/").length;return p>=g?(r=Re(r,{...c,children:d}),r=Re(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=Re(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=Re(r,{...c,children:d})),r}),e.addCase(Ma.rejected,(r,t)=>{_.toastSubject.next({message:"Error moving file",kind:"danger"})}),e.addCase(Jn.pending,(r,t)=>{var C;const{fileName:a,parentNode:s,path:i,type:c,qodly:l}=t.meta.arg,d=_.getFileExtentionFromType(c,l),p=`${i}/${a}${d?`.${d.toLowerCase()}`:""}`,{editor:g,supportedEditors:m}=gr(p);switch(c){case _.FileFolderType.CLASS:case _.FileFolderType.METHOD:_.lspSubject.next({action:_.LspActions.WILL_CREATE,payload:{filePath:p}});break}const b=(C=s.children)==null?void 0:C.filter(I=>I.path!==`${i}/${a}`),E=[{name:a,path:`${i}/${a}`,type:_.FileFolderType.FILE,error:null,flags:{loading:!0},config:{editor:g,supportedEditors:m},ext:d,date:new Date().toISOString()},...b],x=Re(r,{...s,children:E});return Oh.merge(r,x)}),e.addCase(Jn.fulfilled,(r,t)=>{const{fileName:a,path:s,type:i,qodly:c}=t.meta.arg,l=_.getFileExtentionFromType(i,c),d=`${s}/${a}${l?`.${l.toLowerCase()}`:""}`,{editor:p,supportedEditors:g}=gr(d),m=Re(r,{name:a,path:`${s}/${a}`,type:_.FileFolderType.FILE,error:null,flags:{},config:{editor:p,supportedEditors:g},ext:l,date:new Date().toISOString()});switch(i){case _.FileFolderType.CLASS:case _.FileFolderType.METHOD:_.lspSubject.next({action:_.LspActions.DID_CREATE,payload:{filePath:d}});break}return r=m,r}),e.addCase(Jn.rejected,(r,t)=>{const{fileName:a,path:s,type:i}=t.meta.arg,c=_.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=gr(`${s}${c?`.${c.toLowerCase()}`:""}`);return r=Re(r,{name:a,path:`${s}/${a}`,type:_.FileFolderType.FILE,error:{message:"Failed creating file"},flags:{},config:{editor:l,supportedEditors:d},ext:c,date:new Date().toISOString()}),r}),e.addMatcher(ch($a),(r,t)=>{const a=ft(r,t.meta.arg.file.path.split(".")[0]);return a&&(r=Re(r,{...a,flags:{...a.flags,loading:!0}})),r}),e.addMatcher(fh($a),(r,t)=>{const a=ft(r,t.meta.arg.file.path.split(".")[0]);return a&&(r=Re(r,{...a,flags:{...a.flags,loading:!1}})),r}),e.addMatcher(lh($a),(r,t)=>{const a=ft(r,t.meta.arg.file.path.split(".")[0]);return a&&(r=Re(r,{...a,flags:{...a.flags,loading:!1}})),_.toastSubject.next({message:"Failed to open file, try again",kind:"danger"}),r})}}),{toggleExpandFolder:ZP,expandFolder:QP,openAddFileInput:eD,addNewFile:Jg,refreshFile:tD,removeFile:dc,setFolderChildren:rD}=Kg.actions;function Xg(e,r){switch(e){case _.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"]===kc.AIRY&&(t.components.ROOT.props.airyMode=!0),t;case _.FileFolderType.METHODS:return`//%attributes = {}
|
|
91
|
+
`;default:return""}}function Zg(e,r,t){switch(r){case _.FileFolderType.MOBILEFORM:return`${e}.MForm`;case _.FileFolderType.WEBFORM:return`${e}.WebForm`;case _.FileFolderType.METHOD:case _.FileFolderType.CLASS:return`${e}.${t?"4qs":"4dm"}`;default:return e}}function nD(e){switch(e){case _.FolderRootPath.WEBFORMS:return _.FileFolderType.WEBFORMS;case _.FolderRootPath.METHODS:return _.FileFolderType.METHODS;case _.FolderRootPath.CLASSES:return _.FileFolderType.CLASSES;case"Mobile":return _.FileFolderType.MOBILE;default:return e}}function Qg(e){switch(e){case _.FileFolderType.WEBFORMS:return _.FileFolderType.WEBFORM;case _.FileFolderType.CLASSES:return _.FileFolderType.CLASS;case _.FileFolderType.METHODS:return _.FileFolderType.METHOD;case _.FileFolderType.FOLDER:return _.FileFolderType.FOLDER;case _.FileFolderType.MOBILE:return _.FileFolderType.MOBILEFORM;default:return e}}const aD=Q("files/tryEditMethod",async({method:e},{dispatch:r})=>{const t=e.filePath.split("/"),[a]=t[1].split("."),{editor:s}=gr(e.filePath);return await r(Vc({file:{name:a,path:e.filePath,date:new Date().toISOString(),type:_.FileFolderType.CLASS,editor:s},line:e.startingLine+1})).unwrap()}),pc=Q("explorer/createModelFiles",async(e,{dispatch:r,getState:t})=>{var m;const a=t(),s=_.FolderRootPath.CLASSES,i=a.settings.server.qodly,c=ft(a.explorer,s);if(!c)return;await r(Sr(s));const d=((m=t().explorer.find(b=>b.name===s))==null?void 0:m.children)||[];let p=[{content:"",name:""}];const g=b=>{switch(b){case"dataclass":return{name:e.type==="dataclass"?e.className:"DataStore",content:i?`extends DataClass
|
|
92
92
|
`:`Class extends DataClass
|
|
93
93
|
`};case"collection":return{name:e.type==="dataclass"?e.collectionName:"DataStore",content:i?`extends EntitySelection
|
|
94
94
|
`:`Class extends EntitySelection
|
|
@@ -96,35 +96,35 @@ globstar while`,r,m,t,b,E),this.matchOne(r.slice(m),t.slice(b),a))return this.de
|
|
|
96
96
|
`:`Class extends Entity
|
|
97
97
|
`};case"model":return{name:"DataStore",content:i?`extends DataStoreImplementation
|
|
98
98
|
`:`Class extends DataStoreImplementation
|
|
99
|
-
`}}};e.type==="dataclass"&&!e.toCreate?p=[{...g("dataclass")},{...g("collection")},{...g("entity")}]:e.type==="dataclass"&&e.toCreate?p=[{...g(e.toCreate)}]:p=[{...g("model")}],p=p.filter(b=>!d.find(({name:E,ext:x})=>E===b.name&&x===(i?"4qs":"4dm"))),await Promise.all(p.map(async({name:b,content:E})=>{await r(Jn({type:_.FileFolderType.CLASS,path:s,fileName:b,parentNode:c,content:E,qodly:a.settings.server.qodly}))})),await r(Sr(s))}),Sr=Q("explorer/fetchFolderContent",async(e,{rejectWithValue:r})=>{try{return(await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:e})).map(a=>{const s=`${e}/${a.name}`,{editor:i,supportedEditors:c}=gr(`${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:()=>{}}),Fa=Q("explorer/fetchFolderContentWithoutExpanding",async(e,{rejectWithValue:r})=>{try{return(await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:e})).map(a=>{const s=`${e}/${a.name}`,{editor:i,supportedEditors:c}=gr(`${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 sD(e){const r=e.split(".");return r.pop(),{name:r.join("."),ext:e.split(".")[e.split(".").length-1]}}const iD=Q("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}}}),uD=Q("explorer/uploadFile",async({file:e,path:r,parentNode:t},{dispatch:a})=>{const{editor:s,supportedEditors:i}=gr(r),{name:c,ext:l}=sD(e.name);a(Qg({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(pc({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&&_.toastSubject.next({message:"error uploading file",kind:"danger"})):await a(Sr(t.path)),{status:d.status,fileName:e.name}}catch{return a(pc({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}})),_.toastSubject.next({message:"error uploading file",kind:"danger"}),{status:500,fileName:e.name}}}),Jn=Q("explorer/createNewFile",async({fileName:e,type:r,path:t,parentNode:a,content:s},{dispatch:i,rejectWithValue:c,getState:l})=>{const{qodly:d}=l().settings.server;try{const p=await _.setFileContent({name:tv(e,r,d),content:s||ev(r),path:t,asText:[_.FileFolderType.CLASS,_.FileFolderType.METHOD].includes(r)});return a.error&&(a.flags.expanded?await i(Sr(a.path)):await i(Fa(a.path))),{qodly:d,file:p,parentNode:a}}catch{return c("failed to create folder")}});function nv(e,r){const{qodly:t=!0,withExtension:a=!0}=r||{},s=_.getFileExtentionFromType(e.type,t);let i="";switch(e.type){case _.FileFolderType.WEBFORM:i=`${_.FolderRootPath.WEBFORMS}/${e.name}`;break;case _.FileFolderType.METHOD:i=`${_.FolderRootPath.METHODS}/${e.name}`;break;case _.FileFolderType.CLASS:i=`${_.FolderRootPath.CLASSES}/${e.name}`;break;default:return""}return`${i}${a?`.${s}`:""}`}const cD=Q("explorer/createNewFileAndOpen",async(e,{dispatch:r,getState:t})=>{const a=await r(Jn(e)).unwrap(),{qodly:s}=t().settings.server;if(a){const{file:i}=a,c=nv(i,{withExtension:!1,qodly:s}),{editor:l}=gr(c);await r($a({file:{name:e.fileName,type:i.type,path:c,editor:l,date:new Date().toISOString()}}))}}),rs=Q("explorer/createNewNode",async({fileName:e,path:r,parentNode:t},{rejectWithValue:a})=>{try{return{file:await _.createFolder({verb:_.DesignerRequestVerb.CREATE_FOLDER,path:`${r}/${e}`,recursive:!0}),parentNode:t}}catch{return _.toastSubject.next({message:"failed to create folder",kind:"danger"}),a("failed to create folder")}}),Ys=async e=>{try{const r=e.path.split(".").at(-1),t=await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:wh(r)?"json":"text"}),a={editor:e.editor},s=_.getTypeFromExtension(e.path);s===_.FileFolderType.METHOD&&(a.attributes=_.parseAttributes(t.content),t.content=_.addAttributesToContent(t.content,{}));const{content:i,date:c,ext:l}=t;return{date:c,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(l)},extra:a,name:e.name,path:e.path,type:s,initialContent:i,content:i}}catch(r){const{data:t}=r;if(t.__ERROR.find(a=>a.errCode===_.ERROR_CODES.FILE_NOT_FOUND))switch(e.path){case _.ROLES_TAB_PATH:{const a={permissions:{allowed:[]},privileges:[],roles:[]};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:roles"}},name:"Roles & Privileges",path:e.path,type:_.FileFolderType.ROLES,initialContent:a,content:a}}case cn:{const a={};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:settings"}},name:"Settings",path:e.path,type:_.FileFolderType.SETTINGS,initialContent:a,content:a}}}throw r}},$a=Q("explorer/openFile",async({file:e,inactive:r,flags:t={}},{getState:a,dispatch:s})=>{const{root:{tabs:i},roles:c,debugger:{sessions:l}}=a(),d=i.find(({path:m})=>e.path===m);if(d){const m={...d,extra:{...d==null?void 0:d.extra,editor:e.editor},flags:{...d==null?void 0:d.flags,...t}};return s(Dt(m)),m}if(e.path.startsWith("Debugger")){const m=l.find(b=>`Debugger/${b.threadId}`===e.path);if(m){const{source:{content:b},source:E}=m.currentStackFrame,x={name:e.name,type:_.FileFolderType.DEBUGGER,date:new Date().toISOString(),path:e.path,content:b,view:{panel:{isOpen:!1,type:"",current:""}},initialContent:b,flags:{},extra:{source:E,editor:e.editor}};return s(Dt(x)),x}}let p=null;try{p=await Ys(e)}catch(m){const{data:b}=m;if(b.__ERROR.find(E=>[_.ERROR_CODES.JSON_MALFORMED,_.ERROR_CODES.JSON_MALFORMED_AT_LINE].includes(E.errCode))){const{confirmed:E}=await s(sr({title:"Corrupt file",type:kt.CONFIRM,color:Tr.WARNING,message:"Open in code editor ?"})).unwrap();if(E){const x=await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:"text"}),{content:C,date:I,ext:P}=x;p={date:I,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(P)},extra:{editor:_.EDITOR.Code},name:e.name,path:e.path,type:_.getTypeFromExtension(e.path),initialContent:C,content:C}}}}return p&&(e.path===_.ROLES_TAB_PATH&&!c.flags.touched?s(Gc({content:p.content,date:p.date})):e.path===cn&&s(zs({path:"project",value:p.content})),s((r?Lv:Dt)(p)),p)}),Vc=Q("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(Dt(c)),c}const i=await Ys(e);return t(Dt(i)),i}),av=Q("explorer/injectContentAtLine",async(e,{getState:r,dispatch:t,rejectWithValue:a})=>{const s=r();e.path.split("/").pop();const c=ft(s.explorer,e.path);if(!c)return a(`Error while trying to inject content in file ${e.path}`);const l=await Ys({name:c.name,date:c.date||new Date().toISOString(),path:`${c.path}.${c.ext}`,type:_.FileFolderType.CLASS,editor:c.config.editor});return await t(Dt(l)),{...e,path:`${c.path}.${c.ext}`}}),ov=Q("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(Dt(c)),c}const i=await Ys(e);return t(Dt(i)),i}),gc=Q("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 _.dropFile({root:_.FolderRootType.ROOT,type:rv(t),verb:_.DesignerRequestVerb.DROP,name:r,path:i.join("/")}),node:e}}),lD=Q("explorer/deleteFolder",async e=>{const{path:r,flags:t}=e;if(t.error)return{deleted:!0,node:e};const{deleted:a}=await _.removeItem({force:!0,path:r,verb:_.DesignerRequestVerb.REMOVE_ITEM});return{deleted:a,node:e}}),fD=Q("explorer/removeFileNode",async(e,{getState:r,dispatch:t})=>{const a=`${e.path}.${e.ext}`;if(await _.removeItem({verb:_.DesignerRequestVerb.REMOVE_ITEM,path:a,force:!0}),e.path==="Classes/DataStore"&&Ga(),e.ext){const{tabs:s}=r().root,i=s.findIndex(c=>c.path===a);i>=0&&t(al(i))}return{deleted:!0,node:e}}),Xn=Q("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 _.moveItem({verb:_.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 _.moveItem({verb:_.DesignerRequestVerb.MOVE_ITEM,path:`${t.join("/")}/${e.name}`,newpath:`${t.join("/")}/${r}`}),{old:e,new:{...e,name:r,path:`${t.join("/")}/${r}`}}}),Ma=Q("explorer/relocateNode",async({draggedNode:e,newLocation:r},{rejectWithValue:t})=>{try{await _.moveItem({verb:_.DesignerRequestVerb.MOVE_ITEM,path:`${e.path}.${e.ext}`,newpath:`${r.path}/${e.name}.${e.ext}`})}catch{return t("can't move item")}}),ns=Q("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 _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:`${e.path}.${e.ext}`,content:!0,as:d?"text":"json"}),g=await _.setFileContent({name:`${r}.${e.ext}`,content:p,path:i.join("/"),asText:d});return a({node:{...g,path:i.join("/")}})}catch{return t("failed to duplicate file")}}),dD=Q("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?_.toastSubject.next({message:`${((i=d.__NOTIFICATION)==null?void 0:i.message)||""}`,kind:`${((c=d.__NOTIFICATION)==null?void 0:c.type)||"info"}`}):_.toastSubject.next({message:"Method executed Successfully",kind:"message"}),d}catch(l){return _.toastSubject.next({message:l.message||`Error executing the method "**${e}**"`,kind:"danger",markdown:!0}),s("can't execute method")}}),pD=Q("files/fetchFiles",async()=>_.getFolders(_.FolderRootType.WEBFORMS,_.FolderRootType.METHODS,_.FolderRootType.CLASSES)),Kc=Q("tabs/renameDatasource",async(e,{dispatch:r,getState:t})=>{var E,x;const a=!!e.datasourceNamespace,{confirmed:s}=await r(sr({message:"Are you sure you want to rename the datasource?",title:"Rename Datasource",type:kt.CONFIRM,color:Tr.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,g=t();let m=[];if(a){const C=g.sharedDatasources.sources[l]||[];m.push(...C)}else if(p){const C=g.root.tabs.find(_.by("path",p));if(m=(x=(E=C==null?void 0:C.content)==null?void 0:E.metadata)==null?void 0:x.datasources,!m)return null}const b=new RegExp(`^${c}\\b`,"");if(m=m.map(C=>{const I=(_.isObjectDatasource(C)||!_.isSimpleDatasource(C))&&C.from&&b.test(C.from),P=C.events?C.events.map(j=>{var M,k,O,Y;switch(j==null?void 0:j.type){case"method":{const H=j;return H.params?{...H,params:H.params.map(z=>{var te;return{...z,datasource:(te=z.datasource)==null?void 0:te.replace(new RegExp(`^${c}`,""),d)}}),returns:(M=H.returns)!=null&&M.datasource?{...H.returns,datasource:(k=H.returns.datasource)==null?void 0:k.replace(new RegExp(`^${c}`,""),d)}:H.returns}:H}case"simple-action":{const H=j;return H.datasource?{...H,datasource:{...H.datasource,name:(O=H.datasource.name)==null?void 0:O.replace(new RegExp(`^${c}`,""),d),from:(Y=H.datasource.from)==null?void 0:Y.replace(new RegExp(`^${c}`,""),d)}}:H}default:return j}}):C.events;return C.id===c?{...C,id:d,events:P}:I&&C.from?{...C,from:C.from.replace(new RegExp(`^${c}`,""),d),events:P}:{...C,events:P}}),i){const C=a?`${l}:${c}`:`${c}`,I=a?`${l}:${d}`:`${d}`;_.datasourcesSubject.next({path:p??"",action:_.DatasourcesActions.RENAME,old_reference:C,new_reference:I,is_shared:a})}return{path:p,namespace:l,datasources:m}}),Jc=Q("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(_.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)}),sv=Q("tabs/fetchChanges",async(e,{getState:r})=>{const a=ia(r()).filter(s=>[_.FileFolderType.METHOD,_.FileFolderType.CLASS].includes(s.type));return _.getFilesInfo(...a.map(s=>{const[i]=s.path.split("/").filter(Boolean);return{name:s.name,type:s.type,root:i,path:"."}}))}),hD=Q("files/saveAll",async(e,{getState:r,dispatch:t})=>{const a=Nc(r());for(const s of a)t(Zn({tab:s}))}),Xc=Q("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(sr({title:Ps(i),message:"Your unsaved changes will be lost. Proceed anyway?",type:kt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!c)return!1}return t(al(s)),i.path===_.ROLES_TAB_PATH&&i.flags.touched&&(async()=>{const l=await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:_.ROLES_TAB_PATH,content:!0,as:"json"});t(Gc({content:l.content,date:l.date}))})(),!0}),gD=Q("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(sr({title:"Closing other tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:kt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t($v(e))}),vD=Q("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(sr({title:"Closing all tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:kt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(Iv())}),mD=Q("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(sr({title:"Closing right tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:kt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(Fv(e))}),yD=Q("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(sr({title:"Closing left tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:kt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(Mv(e))}),vc=Q("files/reloadTab",async(e,{dispatch:r})=>{if(e.flags.touched){const{confirmed:s}=await r(sr({title:Ps(e),message:"Changes made to the file will be lost. Continue?",type:kt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!s)return}const t=rg(e.path),a=await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:t});if(e.path===_.ROLES_TAB_PATH){const{roles:s,privileges:i}=Hs(a.content);r(zc({roles:s,privileges:i}))}else if(e.path===cn){const{content:s}=a;r(zs({path:"project",value:s}))}else{const{content:s}=a;e.type===_.FileFolderType.WEBFORM?_.webformSubject.next({path:e.path,action:_.WebformActions.RELOAD,payload:s.components}):e.type===_.FileFolderType.MODEL&&cg.next({action:"reload",payload:s})}return a}),Zn=Q("files/saveTab",async({tab:e},{dispatch:r,getState:t})=>{const{path:a,content:s}=e;if(e.type===_.FileFolderType.DEBUGGER)return{...e,errors:[]};a.split("/").pop();const c=await _.getFilesInfo({path:a});if(c.files[0]){const g=new Date(e.date),m=new Date(c.files[0].date);if(g.getTime()<m.getTime()){const{confirmed:b}=await r(sr({title:Ps(e),message:"New content has been found on the server. Are you sure you want to continue?",type:kt.CONFIRM,icon:"FaSave"})).unwrap();if(!b)return r(Dv({path:a,flags:{old:!0}})),null}}const l=await _.saveContent({verb:_.DesignerRequestVerb.SAVE_CONTENT,content:bD(e,t()),path:a});(e.type===_.FileFolderType.CLASS||e.type===_.FileFolderType.MODEL)&&Ga();const d=(l.modelErrors||[]).map(g=>g.message),p=(l.permissionsErrors||[]).map(g=>g.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}]:[]}}),bD=(e,r)=>{switch(!0){case e.path==="settings.json":case e.path===cn:return r.settings.project;case e.type===_.FileFolderType.ROLES:return qs(r.roles);case e.type===_.FileFolderType.MODEL:return e.content||{toJSON:!0,dataClasses:[],extraProperties:{}};default:return e.content}},Up=async e=>{if(e.type===_.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 _.getFile({root:r,type:e.type,verb:_.DesignerRequestVerb.GET,name:e.name}),a={};t.type===_.FileFolderType.METHOD&&(a.attributes=_.parseAttributes(t.content));const{date:s,name:i,type:c,content:l}=t;return{date:s,flags:{enabled:e.type===_.FileFolderType.WEBFORM},extra:a,view:{panel:{isOpen:!1,type:"",current:""}},name:i,path:e.path,type:c,initialContent:l,content:c===_.FileFolderType.MODEL?Sh(l):l}},iv=Q("files/tryInjectMethod",async({type:e,dataclass:r},{getState:t,dispatch:a})=>{const{root:{tabs:s},settings:{server:{qodly:i}}}=t(),c=_.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 g=s.find(_.by("path",d));if(g)return a(Dt(g)),g;try{p=await Up({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:_.FileFolderType.CLASS})}catch{r?await a(hc({type:"dataclass",className:r,collectionName:`${r}Selection`,toCreate:e})):await a(hc({type:"model"}))}return p=await Up({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:_.FileFolderType.CLASS}),p.path=d,a(Dt(p)),p}),_D=Q("roles/open",async(e,{dispatch:r,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path===_.ROLES_TAB_PATH);if(s)return r(Dt(s)),s;r(ws())});function Hp(e,r){const{line:t,offset:a,type:s="saved"}=r;e.breakpoints[s].locations.push({line:t}),ze.isNumber(a)&&(e.breakpoints[s].offset=a)}function qp(e,r,t,a){e.breakpoints[t].locations=r,ze.isNumber(a)&&(e.breakpoints[t].offset=a)}function Gp({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 zp(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 Zo(e){return e.map(({label:r})=>({label:r}))}const uv=or({name:"debugger",initialState:()=>{var r,t;const{debugger:e={meta:{state:Mr.DETACHED},list:[],sessions:[],expressions:[]}}=ta();return{meta:{...e.meta,state:((r=e.meta)==null?void 0:r.state)===Mr.ATTACHED?(t=e.meta)==null?void 0:t.state:Mr.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=On(e.list,t,s,i);if(p)Hp(p,d);else{if(a===_.FileFolderType.CLASS&&d.offset===void 0)throw new Error(`Cannot add a breakpoint on a function without offset. Try editing the ${i} class.`);const g=Gp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});Hp(g,d),e.list.push(g)}},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 g=p.breakpoints[c].offset||0;p.breakpoints[c].locations=p.breakpoints[c].locations.filter(m=>m.line+g!==d),c==="saved"&&(p.breakpoints.draft.locations=p.breakpoints.draft.locations.filter(m=>m.line+g!==d))})}}else{const l=On(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:g="saved",clearDraft:m}=r.payload,b=On(e.list,t,s);if(b)qp(b,d,g,p),m&&g!=="draft"&&(b.breakpoints.draft.locations=[]);else{const E=Gp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});qp(E,d,g,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=st(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=st(e.sessions,t);i&&i.stopped&&(i.expressions=[...i.expressions||[],{label:a}],s&&(e.expressions=Zo(i.expressions)))},removeExpression(e,r){const{threadId:t,index:a,save:s}=r.payload,i=st(e.sessions,t);i&&(i.expressions=i.expressions.filter((c,l)=>l!==a),s&&(e.expressions=Zo(i.expressions)))},removeAllExpressions(e,r){const{threadId:t,save:a}=r.payload,s=st(e.sessions,t);s&&(s.expressions=[],a&&(e.expressions=[]))},renameExpression(e,r){const{threadId:t,index:a,replacement:s,save:i}=r.payload,c=st(e.sessions,t);c&&c.expressions[a]&&(c.expressions[a].label=s,i&&(e.expressions=Zo(c.expressions)))},setExpression(e,r){const{threadId:t,expression:a}=r.payload,s=st(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=st(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=Zo(t)},addSession(e,r){const{threadId:t,channelId:a,stackFrames:s,exceptions:i=[]}=r.payload,c=st(e.sessions,t),l=s[0],{expressions:d=[]}=e;if(c)c.expressions=d;else{const p=Dc(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:zp((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:zp((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=st(e.sessions,t);s&&(s.currentStackFrame.source={...s.currentStackFrame.source,content:a})},setDebuggerMeta(e,r){if(r.payload.state===Mr.ERROR){e.meta.error={...e.meta.error,time:Date.now()};const{override:t,error:a={code:null,reason:"",type:ps.SOCKET_ERROR}}=r.payload;if((t||e.meta.state!==Mr.ERROR)&&(e.meta.error={...e.meta.error,...a}),(a==null?void 0:a.type)===ps.SOCKET_CLOSURE&&!(a!=null&&a.reason)&&e.meta.state===Mr.DETACHED)return}e.meta.state=r.payload.state}},extraReducers:e=>{e.addCase(lv.fulfilled,r=>{r.sessions=[]})}}),{addBreakpointDecoration:ED,removeBreakpointDecoration:SD,setBreakpointsDecoration:wD,clearBreakpoints:TD,setActiveLine:xD,addExpression:CD,renameExpression:RD,removeExpression:OD,removeAllExpressions:AD,setExpression:PD,updateExpressionAt:DD,saveExpressions:ID,addSession:FD,updateSession:$D,removeSession:MD,removeSessionByIndex:ND,setSessions:cv,setCallChainVariables:LD,setExpressionVariables:kD,setSourceContent:jD,setDebuggerMeta:BD}=uv.actions,lv=Q("files/wipeDebuggerSessions",async(e,{getState:r,dispatch:t})=>{const{sessions:a}=r().debugger;for(const{threadId:s}of a){const i=Dc(s);t(Xc(i))}}),fv=Q("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(cv(c)),{staleThreadIds:i}});var Zc=(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))(Zc||{}),Lr=(e=>(e.STORAGE="storage",e.RELATEDENTITY="relatedEntity",e.RELATEDENTITIES="relatedEntities",e.CALCULATED="calculated",e.COMPOSITION="composition",e.ALIAS="alias",e))(Lr||{});const WD=e=>["string","uuid","number","long"].includes(e.type),UD=[{label:"Storage",value:"storage"},{label:"Calculated",value:"calculated"}],HD=[{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"}],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"}],GD=[{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"}],YD=[{label:"None",value:"none"},{label:"B-tree",value:"btree"},{label:"Cluster",value:"cluster"},{label:"Automatic",value:"auto"}],dv=Pt("model/add-dataclass"),pv=Pt("model/rename-dataclass"),hv=Pt("model/remove-dataclass"),gv=Pt("model/add-attribute"),VD=Pt("model/edit-attribute-property"),vv=Pt("model/remove-attribute"),mv=Pt("model/rename-attribute"),yv=Pt("model/edit-primary-key"),KD=Pt("model/edit-dataclass-property"),bv=Pt("model/rename-collection"),JD=(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 as(e,r,t){const a=e;let s=0;for(;t[`${a}${s||""}`];)s++;return`${a}${s||""}`}const Na=e=>e.kind===Lr.RELATEDENTITY,Ts=e=>e.kind===Lr.RELATEDENTITIES,XD=e=>Ts(e)||Na(e),Qc=Q("models/fetch",async()=>{try{return(await _.http(_.API_PREFIX,{method:"POST",body:JSON.stringify({verb:_.DesignerRequestVerb.GET_INFO,path:_.MODEL_TAB_PATH,as:"json",content:!0}),headers:new Headers({"Content-Type":"application/json"})})).content}catch(e){return e.message}}),xs=Q("models/save",async(e,{getState:r,rejectWithValue:t})=>{const{tabs:a}=r().root,s=a.find(i=>i.path===_.MODEL_TAB_PATH);if(!s)return t("Error while saving the model");try{const i=await _.http(_.API_PREFIX,{method:"POST",body:JSON.stringify({verb:"save",path:s.path,content:s.content}),headers:new Headers({"Content-Type":"application/json"})});return Ga(),{...i,path:s.path,content:e.content||{toJSON:!0,dataClasses:[],extraProperties:{}}}}catch{return t("Error while saving the model")}}),ZD=Q("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(Dt(s)),s;r(Qc())}),QD=Q("model/rename-dataclass",async(e,{getState:r,dispatch:t})=>{var m,b;const{dataclassId:a,selectionId:s,name:i}=e;let c=r();const l=c.explorer.find(E=>E.path===_.FolderRootPath.CLASSES);if(!l)throw new Error("Classes folder was not found!");await t(Sr(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`}};(b=(m=c.explorer.find(E=>E.path===_.FolderRootPath.CLASSES))==null?void 0:m.children)==null||b.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,x)=>{const[C,I]=x;return I.found?I.newNameTaken?[...E,{type:"error",message:`Cannot rename ${C} file to ${I.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(sr({message:"The following errors were encountered during dataclass rename:",views:{tips:p}}));const g=Object.values(d).filter(E=>E.found&&E.file&&!E.newNameTaken);await Promise.all(g.map(async E=>await t(Xn({file:E.file,newname:E.filename_update})))),g.length>0&&t(Sr("Classes"))}),Ua={DATACLASS_DELETE:"dataclass.delete",DATACLASS_DRAGGABLE:"dataclass.draggable"},eI={model:{dataClasses:{},collections:{},extraProperties:{}},draft:{dataClasses:{},collections:{},extraProperties:{}},flags:{[Ua.DATACLASS_DELETE]:!0,[Ua.DATACLASS_DRAGGABLE]:!0}},_v=or({name:"Models",initialState:eI,reducers:{setModelFlag(e,r){e.flags={...e.flags,...r.payload}}},extraReducers(e){e.addCase(dv,({draft:{dataClasses:r}},t)=>{var c,l;const{dataclassID:a}=t.payload,s=as(a||"DataClass","className",r),i={className:s,collectionName:`${s}Selection`,attributes:[{name:"ID",kind:Lr.STORAGE,type:Zc.LONG,scope:"public",indexKind:"auto",unique:!0,primKey:!0,autosequence:!0}],name:s,scope:"public",extraProperties:{position:{x:((c=t.payload.position)==null?void 0:c.x)||0,y:((l=t.payload.position)==null?void 0:l.y)||0}}};r[i.name]=i}).addCase(hv,({draft:{dataClasses:r}},t)=>{const{dataclassID:a}=t.payload;r[a]&&(delete r[a],Object.values(r).forEach(i=>{i.attributes=i.attributes.filter(c=>c.type!==a&&c.type!==i.collectionName)}))}).addCase(pv,({draft:{dataClasses:r,collections:t}},a)=>{const{dataclassID:s,newName:i}=a.payload;if(!r[s]||r[i])return;const c=r[s].collectionName,l=as(`${i}Selection`,"collectionName",t);Object.values(r).forEach(d=>{d.className===s&&(d.className=i,d.name=i,d.collectionName=l),d.attributes.forEach(p=>{p.type===s?(p.type=i,p.path=i):p.type===c&&(p.type=l)})})}).addCase(gv,({draft:{dataClasses:r}},t)=>{const{dataclassID:a,attributeName:s,attributeType:i,attributeKind:c,target:l}=t.payload;if(!r[a]||_.exists("name",s,r[a].attributes))return;const p={name:s,kind:c,type:i,exposed:!0,scope:"public"};if(c===Lr.RELATEDENTITY){if(!r[i])return;p.path=i;const m={name:as(r[i].collectionName,"name",r[i].attributes),type:r[a].collectionName,kind:Lr.RELATEDENTITIES,reversePath:!0,path:s,scope:"public",exposed:!0};r[i].attributes.push(m)}else if(c===Lr.RELATEDENTITIES){const g=r[i];if(!g)return;const m=g.attributes.find(_.by("name",l));if(m){if(!Na(m)||m.type!==r[a].className)return}else{p.path=l,p.reversePath=!0,p.type=i;const b={name:l,kind:Lr.RELATEDENTITY,scope:"public",path:g.className,type:g.className,exposed:!0};g.attributes.push(b)}}r[a].attributes.push(p)}).addCase(mv,({draft:{dataClasses:r}},t)=>{const{dataclassID:a,attributeID:s,newName:i}=t.payload,c=r[a].attributes.find(_.by("name",s)),l=r[a].attributes.find(_.by("name",i));!c||l||Object.values(r).forEach(({collectionName:d,attributes:p,className:g})=>{p.forEach(m=>{Na(c)&&Ts(m)&&m.type===d&&m.path===s&&(m.path=i),g===a&&m.name===s&&(m.name=i)})})}).addCase(vv,({draft:{dataClasses:r}},t)=>{const{dataclassID:a,attributeID:s}=t.payload;if(!r[a])return;const i=r[a].attributes.find(_.by("name",s));i&&(Na(i)&&Object.values(r).forEach(c=>{c.attributes=c.attributes.filter(l=>!(Ts(l)&&l.type===c.collectionName&&l.path===i.name))}),r[a].attributes=r[a].attributes.filter(_.outBy("name",s)))}).addCase(bv,({draft:{dataClasses:r,collections:t}},a)=>{const{dataclassID:s,collectionName:i}=a.payload;if(!r[s])return;const c=r[s].collectionName;t[i]||(r[s].collectionName=i,t[i]=r[s],delete t[c],Object.values(r).forEach(l=>l.attributes.forEach(d=>{d.type===c&&(d.type=i)})))}).addCase(yv,({draft:{dataClasses:r}},t)=>{const{dataclassID:a,newPrimKey:s}=t.payload;r[a]&&r[a].attributes.forEach(i=>{i.name===s?i.primKey=!0:i.primKey=!1})}),e.addCase(Qc.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(xs.pending,()=>{}).addCase(xs.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:tI}=_v.actions,rI=()=>Ur(e=>e.model.draft.dataClasses),nI=()=>Ur(e=>e.model.draft.collections),aI=e=>Ur(r=>r.model.draft.dataClasses[e]),oI=(e,r)=>Ur(t=>t.model.draft.dataClasses[e].attributes.find(_.by("name",r))),sI=()=>Ur(e=>e.model.draft.extraProperties),iI=()=>{const e=Ur(s=>s.model.flags),r=s=>s in e?e[s]:void 0,t=r(Ua.DATACLASS_DELETE),a=r(Ua.DATACLASS_DRAGGABLE);return{deleteDataclass:t,draggableDataclass:a,flags:e}},uI=_v.reducer;function Hu(e,r){const t=e.tabs.find(({path:a})=>a===cn);t&&(t.flags.touched=r)}const Ev={SIDEBAR_SECTION_RESIZABLE:"sidebar.section.resizable"},Sv={[Ev.SIDEBAR_SECTION_RESIZABLE]:!0},wv=or({name:"webforms",initialState:()=>{const{webforms:e}=ta();return{...e,templates:{data:[],selectedGroup:""},datasources:{...Ac.webforms.datasources,...e==null?void 0:e.datasources},flags:Sv}},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(Av.fulfilled,(r,t)=>{r.components=t.payload})}}),{toggleInspector:cI,inspect:lI,addComponent:Tv,editComponent:xv,removeComponent:Cv,setSelectedGroup:fI,setTemplatesData:Rv,setTemplateData:Ov,setDatasourcesTheme:dI,setWebformsFlag:pI}=wv.actions,hI=wv.reducer,el=ze.curry((e,r)=>{var s,i;const t={...r.sharedDatasources.sources},a=(i=((s=r.root.tabs.find(_.by("path",e)))==null?void 0:s.content).metadata)==null?void 0:i.datasources;return a&&(t[e]=a),ze.cloneDeep(t)}),gI=Q("webforms/fetchTemplates",async(e,{dispatch:r,getState:t})=>{const{data:a}=t().webforms.templates,s=t().settings.session["studio.tipsBaseUrl"]||"";if(!ze.isEmpty(a))return a;try{const c=await(await fetch(`${s}/build/index.json?t=${Date.now()}`)).json();return r(Rv(c)),c}catch{return[]}}),vI=Q("webforms/fetchTemplate",async({name:e},{dispatch:r,getState:t})=>{const{data:a}=t().webforms.templates,s=a.find(i=>i.group===e);if(s&&!ze.isEmpty(s.components))return s.components;try{const c=await(await fetch(`${s==null?void 0:s.link}?t=${Date.now()}`)).json();return r(Ov({group:e,components:c})),c}catch{return[]}}),Av=Q("webforms/fetchCraftedComponents",async(e,{rejectWithValue:r})=>{try{return(await _.getNodeInfo({path:"WebForms/crafted_components.json",verb:_.DesignerRequestVerb.GET_INFO,content:!0,as:"json"})).content}catch{return r("Error while loading the crafted components")}}),mI=Q("webforms/addCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(Tv(e));const{webforms:{components:s}}=a();_.setCraftedComponents(s)}catch{return t("Error while adding the crafted component")}}),yI=Q("webforms/editCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(xv(e));const{webforms:{components:s}}=a();_.setCraftedComponents(s)}catch{return t("Error while editing the crafted component")}}),bI=Q("webforms/removeCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(Cv(e));const{webforms:{components:s}}=a();_.setCraftedComponents(s)}catch{return t("Error while removing the crafted component")}}),tl=Q("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 _.setSharedSources(p)}else(((s=(a=i.root.tabs.find(_.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=Q("datasources/edit-datasource",async(e,{getState:r,rejectWithValue:t})=>{try{const{namespace:a,path:s}=e,i=r(),c=!!e.namespace,l=el(s,i);let d=ze.defaultTo(l[a||s],[]);return d=d.map(p=>p.id===e.id?{...p,[e.property]:e.value}:p),c&&await _.setSharedSources({...i.sharedDatasources.sources,[e.namespace]:d}),{list:d,path:e.path,namespace:e.namespace}}catch{t(`Error while editing datasource ${e.id}`)}}),_I=e=>e.type===Qn.fulfilled.type,Qn=Q("datasources/rename-datasource",async(e,{getState:r,rejectWithValue:t})=>{try{const a=r(),s=!!e.namespace,i=e.namespace||e.path,c=el(e.path,a),l=ze.defaultTo(c[i],[]),d=new RegExp(`^${e.id}\\b`,"");if(l.forEach(p=>{var m;const g=(_.isObjectDatasource(p)||!_.isSimpleDatasource(p))&&p.from&&d.test(p.from);e.updateRefs&&((m=p.events)==null||m.forEach(b=>{var E,x,C,I,P;switch(b.type){case"method":{const j=b;j.params.forEach(M=>{M.datasource&&Object.assign(M,{datasource:M.datasource.replace(new RegExp(`^${e.id}`,""),e.new_name)})}),j.returns&&Object.assign(j.returns,{datasource:(x=(E=j.returns)==null?void 0:E.datasource)==null?void 0:x.replace(new RegExp(`^${e.id}`,""),e.new_name)});return}case"simple-action":{const j=b;j.datasource&&Object.assign(j.datasource,{name:(C=j.datasource.name)==null?void 0:C.replace(new RegExp(`^${e.id}`,""),e.new_name),from:(I=j.datasource.from)==null?void 0:I.replace(new RegExp(`^${e.id}`,""),e.new_name),target:(P=j.datasource.target)==null?void 0:P.replace(new RegExp(`^${e.id}`,""),e.new_name)});return}default:return}})),p.id===e.id?p.id=e.new_name:g&&p.from&&(p.from=p.from.replace(new RegExp(`^${e.id}`,""),e.new_name))}),e.updateRefs){const p=_.getDatasourceId({id:e.id,namespace:e.namespace}),g=_.getDatasourceId({id:e.new_name,namespace:e.namespace});_.datasourcesSubject.next({path:e.path??"",action:_.DatasourcesActions.RENAME,old_reference:p,new_reference:g,is_shared:s})}return s&&await _.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}`)}}),La=Q("datasources/delete-datasource",async(e,{getState:r,rejectWithValue:t})=>{try{const a=r(),s=!!e.namespace,i=e.namespace||e.path,l=el(e.path,a)[i].filter(_.outById(e.id));return s&&await _.setSharedSources({...a.sharedDatasources.sources,[e.namespace]:l}),{list:l,path:e.path,namespace:e.namespace}}catch{return t(`Error while removing datasource ${e.id}`)}}),nl=or({name:"root",initialState:()=>{const e=ta();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))})},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}))},openSettingsTab(e){const r={date:new Date().toISOString(),flags:{},view:{panel:{isOpen:!1,type:"",current:""}},extra:{editor:{key:"editors:settings"}},name:"Settings",path:cn,type:_.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}},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},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},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)||""},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=r.payload;let a=e.tabs.find(({path:s})=>t.path===s);if(a||(e.tabs.push(t),a=e.tabs[e.tabs.length-1]),e.activeTab!==t.path){const s=e.tabs.reduce((i,c)=>(c==null?void 0:c.weight)>((i==null?void 0:i.weight)||0)?c:i,null);e.activeTab=t.path,a.weight=((s==null?void 0:s.weight)||0)+1}a.extra={...a.extra,...t.extra},a.flags={...a.flags||{},...t.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;if(typeof a=="string")c=i.initialContent!==a;else{const l=JSON.stringify(ze.get(i.initialContent,s||"",i.initialContent)),d=JSON.stringify(ze.get(a,s||"",a));c=l!==d}return a&&typeof a=="object"&&(s?ze.set(i.content,s,a):i.content=a),typeof a=="string"&&(i.content=a),{...i,flags:{...i.flags,touched:c}}})},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(av.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(`
|
|
99
|
+
`}}};e.type==="dataclass"&&!e.toCreate?p=[{...g("dataclass")},{...g("collection")},{...g("entity")}]:e.type==="dataclass"&&e.toCreate?p=[{...g(e.toCreate)}]:p=[{...g("model")}],p=p.filter(b=>!d.find(({name:E,ext:x})=>E===b.name&&x===(i?"4qs":"4dm"))),await Promise.all(p.map(async({name:b,content:E})=>{await r(Jn({type:_.FileFolderType.CLASS,path:s,fileName:b,parentNode:c,content:E,qodly:a.settings.server.qodly}))})),await r(Sr(s))}),Sr=Q("explorer/fetchFolderContent",async(e,{rejectWithValue:r})=>{try{return(await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:e})).map(a=>{const s=`${e}/${a.name}`,{editor:i,supportedEditors:c}=gr(`${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:()=>{}}),Fa=Q("explorer/fetchFolderContentWithoutExpanding",async(e,{rejectWithValue:r})=>{try{return(await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:e})).map(a=>{const s=`${e}/${a.name}`,{editor:i,supportedEditors:c}=gr(`${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 oD(e){const r=e.split(".");return r.pop(),{name:r.join("."),ext:e.split(".")[e.split(".").length-1]}}const sD=Q("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}}}),iD=Q("explorer/uploadFile",async({file:e,path:r,parentNode:t},{dispatch:a})=>{const{editor:s,supportedEditors:i}=gr(r),{name:c,ext:l}=oD(e.name);a(Jg({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(dc({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&&_.toastSubject.next({message:"error uploading file",kind:"danger"})):await a(Sr(t.path)),{status:d.status,fileName:e.name}}catch{return a(dc({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}})),_.toastSubject.next({message:"error uploading file",kind:"danger"}),{status:500,fileName:e.name}}}),Jn=Q("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 g=await _.setFileContent({name:Zg(e,r,d),content:s||Xg(r,p),path:t,asText:[_.FileFolderType.CLASS,_.FileFolderType.METHOD].includes(r)});return a.error&&(a.flags.expanded?await i(Sr(a.path)):await i(Fa(a.path))),{qodly:d,file:g,parentNode:a}}catch{return c("failed to create folder")}});function ev(e,r){const{qodly:t=!0,withExtension:a=!0}=r||{},s=_.getFileExtentionFromType(e.type,t);let i="";switch(e.type){case _.FileFolderType.WEBFORM:i=`${_.FolderRootPath.WEBFORMS}/${e.name}`;break;case _.FileFolderType.METHOD:i=`${_.FolderRootPath.METHODS}/${e.name}`;break;case _.FileFolderType.CLASS:i=`${_.FolderRootPath.CLASSES}/${e.name}`;break;default:return""}return`${i}${a?`.${s}`:""}`}const uD=Q("explorer/createNewFileAndOpen",async(e,{dispatch:r,getState:t})=>{const a=await r(Jn(e)).unwrap(),{qodly:s}=t().settings.server;if(a){const{file:i}=a,c=ev(i,{withExtension:!1,qodly:s}),{editor:l}=gr(c);await r($a({file:{name:e.fileName,type:i.type,path:c,editor:l,date:new Date().toISOString()}}))}}),ts=Q("explorer/createNewNode",async({fileName:e,path:r,parentNode:t},{rejectWithValue:a})=>{try{return{file:await _.createFolder({verb:_.DesignerRequestVerb.CREATE_FOLDER,path:`${r}/${e}`,recursive:!0}),parentNode:t}}catch{return _.toastSubject.next({message:"failed to create folder",kind:"danger"}),a("failed to create folder")}}),Ys=async e=>{try{const r=e.path.split(".").at(-1),t=await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:wh(r)?"json":"text"}),a={editor:e.editor},s=_.getTypeFromExtension(e.path);s===_.FileFolderType.METHOD&&(a.attributes=_.parseAttributes(t.content),t.content=_.addAttributesToContent(t.content,{}));const{content:i,date:c,ext:l}=t;return{date:c,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(l)},extra:a,name:e.name,path:e.path,type:s,initialContent:i,content:i}}catch(r){const{data:t}=r;if(t.__ERROR.find(a=>a.errCode===_.ERROR_CODES.FILE_NOT_FOUND))switch(e.path){case _.ROLES_TAB_PATH:{const a={permissions:{allowed:[]},privileges:[],roles:[]};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:roles"}},name:"Roles & Privileges",path:e.path,type:_.FileFolderType.ROLES,initialContent:a,content:a}}case cn:{const a={};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:settings"}},name:"Settings",path:e.path,type:_.FileFolderType.SETTINGS,initialContent:a,content:a}}}throw r}},$a=Q("explorer/openFile",async({file:e,inactive:r,flags:t={}},{getState:a,dispatch:s})=>{const{root:{tabs:i},roles:c,debugger:{sessions:l}}=a(),d=i.find(({path:m})=>e.path===m);if(d){const m={...d,extra:{...d==null?void 0:d.extra,editor:e.editor},flags:{...d==null?void 0:d.flags,...t}};return s(Dt(m)),m}if(e.path.startsWith("Debugger")){const m=l.find(b=>`Debugger/${b.threadId}`===e.path);if(m){const{source:{content:b},source:E}=m.currentStackFrame,x={name:e.name,type:_.FileFolderType.DEBUGGER,date:new Date().toISOString(),path:e.path,content:b,view:{panel:{isOpen:!1,type:"",current:""}},initialContent:b,flags:{},extra:{source:E,editor:e.editor}};return s(Dt(x)),x}}let p=null;try{p=await Ys(e)}catch(m){const{data:b}=m;if(b.__ERROR.find(E=>[_.ERROR_CODES.JSON_MALFORMED,_.ERROR_CODES.JSON_MALFORMED_AT_LINE].includes(E.errCode))){const{confirmed:E}=await s(sr({title:"Corrupt file",type:jt.CONFIRM,color:Tr.WARNING,message:"Open in code editor ?"})).unwrap();if(E){const x=await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:"text"}),{content:C,date:I,ext:P}=x;p={date:I,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(P)},extra:{editor:_.EDITOR.Code},name:e.name,path:e.path,type:_.getTypeFromExtension(e.path),initialContent:C,content:C}}}}return p&&(e.path===_.ROLES_TAB_PATH&&!c.flags.touched?s(Gc({content:p.content,date:p.date})):e.path===cn&&s(zs({path:"project",value:p.content})),s((r?$v:Dt)(p)),p)}),Vc=Q("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(Dt(c)),c}const i=await Ys(e);return t(Dt(i)),i}),tv=Q("explorer/injectContentAtLine",async(e,{getState:r,dispatch:t,rejectWithValue:a})=>{const s=r();e.path.split("/").pop();const c=ft(s.explorer,e.path);if(!c)return a(`Error while trying to inject content in file ${e.path}`);const l=await Ys({name:c.name,date:c.date||new Date().toISOString(),path:`${c.path}.${c.ext}`,type:_.FileFolderType.CLASS,editor:c.config.editor});return await t(Dt(l)),{...e,path:`${c.path}.${c.ext}`}}),rv=Q("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(Dt(c)),c}const i=await Ys(e);return t(Dt(i)),i}),hc=Q("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 _.dropFile({root:_.FolderRootType.ROOT,type:Qg(t),verb:_.DesignerRequestVerb.DROP,name:r,path:i.join("/")}),node:e}}),cD=Q("explorer/deleteFolder",async e=>{const{path:r,flags:t}=e;if(t.error)return{deleted:!0,node:e};const{deleted:a}=await _.removeItem({force:!0,path:r,verb:_.DesignerRequestVerb.REMOVE_ITEM});return{deleted:a,node:e}}),lD=Q("explorer/removeFileNode",async(e,{getState:r,dispatch:t})=>{const a=`${e.path}.${e.ext}`;if(await _.removeItem({verb:_.DesignerRequestVerb.REMOVE_ITEM,path:a,force:!0}),e.path==="Classes/DataStore"&&setTimeout(()=>{t(An())},As),e.ext){const{tabs:s}=r().root,i=s.findIndex(c=>c.path===a);i>=0&&t(al(i))}return{deleted:!0,node:e}}),Xn=Q("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 _.moveItem({verb:_.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 _.moveItem({verb:_.DesignerRequestVerb.MOVE_ITEM,path:`${t.join("/")}/${e.name}`,newpath:`${t.join("/")}/${r}`}),{old:e,new:{...e,name:r,path:`${t.join("/")}/${r}`}}}),Ma=Q("explorer/relocateNode",async({draggedNode:e,newLocation:r},{rejectWithValue:t})=>{try{await _.moveItem({verb:_.DesignerRequestVerb.MOVE_ITEM,path:`${e.path}.${e.ext}`,newpath:`${r.path}/${e.name}.${e.ext}`})}catch{return t("can't move item")}}),rs=Q("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 _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:`${e.path}.${e.ext}`,content:!0,as:d?"text":"json"}),g=await _.setFileContent({name:`${r}.${e.ext}`,content:p,path:i.join("/"),asText:d});return a({node:{...g,path:i.join("/")}})}catch{return t("failed to duplicate file")}}),fD=Q("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?_.toastSubject.next({message:`${((i=d.__NOTIFICATION)==null?void 0:i.message)||""}`,kind:`${((c=d.__NOTIFICATION)==null?void 0:c.type)||"info"}`}):_.toastSubject.next({message:"Method executed Successfully",kind:"message"}),d}catch(l){return _.toastSubject.next({message:l.message||`Error executing the method "**${e}**"`,kind:"danger",markdown:!0}),s("can't execute method")}}),dD=Q("files/fetchFiles",async()=>_.getFolders(_.FolderRootType.WEBFORMS,_.FolderRootType.METHODS,_.FolderRootType.CLASSES)),Kc=Q("tabs/renameDatasource",async(e,{dispatch:r,getState:t})=>{var E,x;const a=!!e.datasourceNamespace,{confirmed:s}=await r(sr({message:"Are you sure you want to rename the datasource?",title:"Rename Datasource",type:jt.CONFIRM,color:Tr.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,g=t();let m=[];if(a){const C=g.sharedDatasources.sources[l]||[];m.push(...C)}else if(p){const C=g.root.tabs.find(_.by("path",p));if(m=(x=(E=C==null?void 0:C.content)==null?void 0:E.metadata)==null?void 0:x.datasources,!m)return null}const b=new RegExp(`^${c}\\b`,"");if(m=m.map(C=>{const I=(_.isObjectDatasource(C)||!_.isSimpleDatasource(C))&&C.from&&b.test(C.from),P=C.events?C.events.map(k=>{var M,j,O,Y;switch(k==null?void 0:k.type){case"method":{const H=k;return H.params?{...H,params:H.params.map(z=>{var te;return{...z,datasource:(te=z.datasource)==null?void 0:te.replace(new RegExp(`^${c}`,""),d)}}),returns:(M=H.returns)!=null&&M.datasource?{...H.returns,datasource:(j=H.returns.datasource)==null?void 0:j.replace(new RegExp(`^${c}`,""),d)}:H.returns}:H}case"simple-action":{const H=k;return H.datasource?{...H,datasource:{...H.datasource,name:(O=H.datasource.name)==null?void 0:O.replace(new RegExp(`^${c}`,""),d),from:(Y=H.datasource.from)==null?void 0:Y.replace(new RegExp(`^${c}`,""),d)}}:H}default:return k}}):C.events;return C.id===c?{...C,id:d,events:P}:I&&C.from?{...C,from:C.from.replace(new RegExp(`^${c}`,""),d),events:P}:{...C,events:P}}),i){const C=a?`${l}:${c}`:`${c}`,I=a?`${l}:${d}`:`${d}`;_.datasourcesSubject.next({path:p??"",action:_.DatasourcesActions.RENAME,old_reference:C,new_reference:I,is_shared:a})}return{path:p,namespace:l,datasources:m}}),Jc=Q("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(_.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=Q("tabs/fetchChanges",async(e,{getState:r})=>{const a=ia(r()).filter(s=>[_.FileFolderType.METHOD,_.FileFolderType.CLASS].includes(s.type));return _.getFilesInfo(...a.map(s=>{const[i]=s.path.split("/").filter(Boolean);return{name:s.name,type:s.type,root:i,path:"."}}))}),pD=Q("files/saveAll",async(e,{getState:r,dispatch:t})=>{const a=Mc(r());for(const s of a)t(Zn({tab:s}))}),Xc=Q("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(sr({title:Ps(i),message:"Your unsaved changes will be lost. Proceed anyway?",type:jt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!c)return!1}return t(al(s)),i.path===_.ROLES_TAB_PATH&&i.flags.touched&&(async()=>{const l=await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:_.ROLES_TAB_PATH,content:!0,as:"json"});t(Gc({content:l.content,date:l.date}))})(),!0}),hD=Q("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(sr({title:"Closing other tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:jt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(Dv(e))}),gD=Q("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(sr({title:"Closing all tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:jt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(Av())}),vD=Q("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(sr({title:"Closing right tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:jt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(Pv(e))}),mD=Q("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(sr({title:"Closing left tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:jt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(Iv(e))}),gc=Q("files/reloadTab",async(e,{dispatch:r})=>{if(e.flags.touched){const{confirmed:s}=await r(sr({title:Ps(e),message:"Changes made to the file will be lost. Continue?",type:jt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!s)return}const t=Gh(e.path),a=await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:t});if(e.path===_.ROLES_TAB_PATH){const{roles:s,privileges:i}=Hs(a.content);r(zc({roles:s,privileges:i}))}else if(e.path===cn){const{content:s}=a;r(zs({path:"project",value:s}))}else{const{content:s}=a;e.type===_.FileFolderType.WEBFORM?_.webformSubject.next({path:e.path,action:_.WebformActions.RELOAD,payload:s.components}):e.type===_.FileFolderType.MODEL&&Zh.next({action:"reload",payload:s})}return a}),Zn=Q("files/saveTab",async({tab:e},{dispatch:r,getState:t})=>{const{path:a,content:s}=e;if(e.type===_.FileFolderType.DEBUGGER)return{...e,errors:[]};a.split("/").pop();const c=await _.getFilesInfo({path:a});if(c.files[0]){const g=new Date(e.date),m=new Date(c.files[0].date);if(g.getTime()<m.getTime()){const{confirmed:b}=await r(sr({title:Ps(e),message:"New content has been found on the server. Are you sure you want to continue?",type:jt.CONFIRM,icon:"FaSave"})).unwrap();if(!b)return r(Ov({path:a,flags:{old:!0}})),null}}const l=await _.saveContent({verb:_.DesignerRequestVerb.SAVE_CONTENT,content:yD(e,t()),path:a});(e.type===_.FileFolderType.CLASS||e.type===_.FileFolderType.MODEL)&&setTimeout(()=>{r(An())},As);const d=(l.modelErrors||[]).map(g=>g.message),p=(l.permissionsErrors||[]).map(g=>g.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}]:[]}}),yD=(e,r)=>{switch(!0){case e.path==="settings.json":case e.path===cn:return r.settings.project;case e.type===_.FileFolderType.ROLES:return qs(r.roles);case e.type===_.FileFolderType.MODEL:return e.content||{toJSON:!0,dataClasses:[],extraProperties:{}};default:return e.content}},Up=async e=>{if(e.type===_.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 _.getFile({root:r,type:e.type,verb:_.DesignerRequestVerb.GET,name:e.name}),a={};t.type===_.FileFolderType.METHOD&&(a.attributes=_.parseAttributes(t.content));const{date:s,name:i,type:c,content:l}=t;return{date:s,flags:{enabled:e.type===_.FileFolderType.WEBFORM},extra:a,view:{panel:{isOpen:!1,type:"",current:""}},name:i,path:e.path,type:c,initialContent:l,content:c===_.FileFolderType.MODEL?Sh(l):l}},av=Q("files/tryInjectMethod",async({type:e,dataclass:r},{getState:t,dispatch:a})=>{const{root:{tabs:s},settings:{server:{qodly:i}}}=t(),c=_.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 g=s.find(_.by("path",d));if(g)return a(Dt(g)),g;try{p=await Up({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:_.FileFolderType.CLASS})}catch{r?await a(pc({type:"dataclass",className:r,collectionName:`${r}Selection`,toCreate:e})):await a(pc({type:"model"}))}return p=await Up({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:_.FileFolderType.CLASS}),p.path=d,a(Dt(p)),p}),bD=Q("roles/open",async(e,{dispatch:r,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path===_.ROLES_TAB_PATH);if(s)return r(Dt(s)),s;r(Ss())});function Hp(e,r){const{line:t,offset:a,type:s="saved"}=r;e.breakpoints[s].locations.push({line:t}),ze.isNumber(a)&&(e.breakpoints[s].offset=a)}function qp(e,r,t,a){e.breakpoints[t].locations=r,ze.isNumber(a)&&(e.breakpoints[t].offset=a)}function Gp({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 zp(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 Xo(e){return e.map(({label:r})=>({label:r}))}const ov=or({name:"debugger",initialState:()=>{var r,t;const{debugger:e={meta:{state:Mr.DETACHED},list:[],sessions:[],expressions:[]}}=ta();return{meta:{...e.meta,state:((r=e.meta)==null?void 0:r.state)===Mr.ATTACHED?(t=e.meta)==null?void 0:t.state:Mr.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=On(e.list,t,s,i);if(p)Hp(p,d);else{if(a===_.FileFolderType.CLASS&&d.offset===void 0)throw new Error(`Cannot add a breakpoint on a function without offset. Try editing the ${i} class.`);const g=Gp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});Hp(g,d),e.list.push(g)}},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 g=p.breakpoints[c].offset||0;p.breakpoints[c].locations=p.breakpoints[c].locations.filter(m=>m.line+g!==d),c==="saved"&&(p.breakpoints.draft.locations=p.breakpoints.draft.locations.filter(m=>m.line+g!==d))})}}else{const l=On(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:g="saved",clearDraft:m}=r.payload,b=On(e.list,t,s);if(b)qp(b,d,g,p),m&&g!=="draft"&&(b.breakpoints.draft.locations=[]);else{const E=Gp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});qp(E,d,g,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=st(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=st(e.sessions,t);i&&i.stopped&&(i.expressions=[...i.expressions||[],{label:a}],s&&(e.expressions=Xo(i.expressions)))},removeExpression(e,r){const{threadId:t,index:a,save:s}=r.payload,i=st(e.sessions,t);i&&(i.expressions=i.expressions.filter((c,l)=>l!==a),s&&(e.expressions=Xo(i.expressions)))},removeAllExpressions(e,r){const{threadId:t,save:a}=r.payload,s=st(e.sessions,t);s&&(s.expressions=[],a&&(e.expressions=[]))},renameExpression(e,r){const{threadId:t,index:a,replacement:s,save:i}=r.payload,c=st(e.sessions,t);c&&c.expressions[a]&&(c.expressions[a].label=s,i&&(e.expressions=Xo(c.expressions)))},setExpression(e,r){const{threadId:t,expression:a}=r.payload,s=st(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=st(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=Xo(t)},addSession(e,r){const{threadId:t,channelId:a,stackFrames:s,exceptions:i=[]}=r.payload,c=st(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,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:zp((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:zp((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=st(e.sessions,t);s&&(s.currentStackFrame.source={...s.currentStackFrame.source,content:a})},setDebuggerMeta(e,r){if(r.payload.state===Mr.ERROR){e.meta.error={...e.meta.error,time:Date.now()};const{override:t,error:a={code:null,reason:"",type:ds.SOCKET_ERROR}}=r.payload;if((t||e.meta.state!==Mr.ERROR)&&(e.meta.error={...e.meta.error,...a}),(a==null?void 0:a.type)===ds.SOCKET_CLOSURE&&!(a!=null&&a.reason)&&e.meta.state===Mr.DETACHED)return}e.meta.state=r.payload.state}},extraReducers:e=>{e.addCase(iv.fulfilled,r=>{r.sessions=[]})}}),{addBreakpointDecoration:_D,removeBreakpointDecoration:ED,setBreakpointsDecoration:SD,clearBreakpoints:wD,setActiveLine:TD,addExpression:xD,renameExpression:CD,removeExpression:RD,removeAllExpressions:OD,setExpression:AD,updateExpressionAt:PD,saveExpressions:DD,addSession:ID,updateSession:FD,removeSession:$D,removeSessionByIndex:MD,setSessions:sv,setCallChainVariables:ND,setExpressionVariables:LD,setSourceContent:jD,setDebuggerMeta:kD}=ov.actions,iv=Q("files/wipeDebuggerSessions",async(e,{getState:r,dispatch:t})=>{const{sessions:a}=r().debugger;for(const{threadId:s}of a){const i=Pc(s);t(Xc(i))}}),uv=Q("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(sv(c)),{staleThreadIds:i}});var Zc=(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))(Zc||{}),Lr=(e=>(e.STORAGE="storage",e.RELATEDENTITY="relatedEntity",e.RELATEDENTITIES="relatedEntities",e.CALCULATED="calculated",e.COMPOSITION="composition",e.ALIAS="alias",e))(Lr||{});const BD=e=>["string","uuid","number","long"].includes(e.type),WD=[{label:"Storage",value:"storage"},{label:"Calculated",value:"calculated"}],UD=[{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"}],HD=[{title:"String",kind:"storage",value:"string",calculatedType:"string",calculatedKind:"storage"},{title:"Text",kind:"storage",value:"text",calculatedType:"text",calculatedKind:"storage"},{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Date",kind:"storage",value:"date",calculatedType:"date",calculatedKind:"storage"},{title:"Duration",kind:"storage",value:"duration",calculatedType:"duration",calculatedKind:"storage"},{title:"Bool",kind:"storage",value:"bool",calculatedType:"bool",calculatedKind:"storage"},{title:"Byte",kind:"storage",value:"byte",calculatedType:"byte",calculatedKind:"storage"},{title:"Word",kind:"storage",value:"word",calculatedType:"word",calculatedKind:"storage"},{title:"Number",kind:"storage",value:"number",calculatedType:"number",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"},{title:"Object",kind:"storage",value:"object",calculatedType:"object",calculatedKind:"storage"},{title:"Image",kind:"storage",value:"image",calculatedType:"image",calculatedKind:"storage"},{title:"Blob",kind:"storage",value:"blob",calculatedType:"blob",calculatedKind:"storage"}],qD=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],GD=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],zD=[{label:"None",value:"none"},{label:"B-tree",value:"btree"},{label:"Cluster",value:"cluster"},{label:"Automatic",value:"auto"}],cv=Pt("model/add-dataclass"),lv=Pt("model/rename-dataclass"),fv=Pt("model/remove-dataclass"),dv=Pt("model/add-attribute"),YD=Pt("model/edit-attribute-property"),pv=Pt("model/remove-attribute"),hv=Pt("model/rename-attribute"),gv=Pt("model/edit-primary-key"),VD=Pt("model/edit-dataclass-property"),vv=Pt("model/rename-collection"),KD=(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 ns(e,r,t){const a=e;let s=0;for(;t[`${a}${s||""}`];)s++;return`${a}${s||""}`}const Na=e=>e.kind===Lr.RELATEDENTITY,ws=e=>e.kind===Lr.RELATEDENTITIES,JD=e=>ws(e)||Na(e),Qc=Q("models/fetch",async()=>{try{return(await _.http(_.API_PREFIX,{method:"POST",body:JSON.stringify({verb:_.DesignerRequestVerb.GET_INFO,path:_.MODEL_TAB_PATH,as:"json",content:!0}),headers:new Headers({"Content-Type":"application/json"})})).content}catch(e){return e.message}}),Ts=Q("models/save",async(e,{getState:r,dispatch:t,rejectWithValue:a})=>{const{tabs:s}=r().root,i=s.find(c=>c.path===_.MODEL_TAB_PATH);if(!i)return a("Error while saving the model");try{const c=await _.http(_.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(An())},As),{...c,path:i.path,content:e.content||{toJSON:!0,dataClasses:[],extraProperties:{}}}}catch{return a("Error while saving the model")}}),XD=Q("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(Dt(s)),s;r(Qc())}),ZD=Q("model/rename-dataclass",async(e,{getState:r,dispatch:t})=>{var m,b;const{dataclassId:a,selectionId:s,name:i}=e;let c=r();const l=c.explorer.find(E=>E.path===_.FolderRootPath.CLASSES);if(!l)throw new Error("Classes folder was not found!");await t(Sr(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`}};(b=(m=c.explorer.find(E=>E.path===_.FolderRootPath.CLASSES))==null?void 0:m.children)==null||b.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,x)=>{const[C,I]=x;return I.found?I.newNameTaken?[...E,{type:"error",message:`Cannot rename ${C} file to ${I.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(sr({message:"The following errors were encountered during dataclass rename:",views:{tips:p}}));const g=Object.values(d).filter(E=>E.found&&E.file&&!E.newNameTaken);await Promise.all(g.map(async E=>await t(Xn({file:E.file,newname:E.filename_update})))),g.length>0&&t(Sr("Classes"))}),Ua={DATACLASS_DELETE:"dataclass.delete",DATACLASS_DRAGGABLE:"dataclass.draggable"},QD={model:{dataClasses:{},collections:{},extraProperties:{}},draft:{dataClasses:{},collections:{},extraProperties:{}},flags:{[Ua.DATACLASS_DELETE]:!0,[Ua.DATACLASS_DRAGGABLE]:!0}},mv=or({name:"Models",initialState:QD,reducers:{setModelFlag(e,r){e.flags={...e.flags,...r.payload}}},extraReducers(e){e.addCase(cv,({draft:{dataClasses:r}},t)=>{var c,l;const{dataclassID:a}=t.payload,s=ns(a||"DataClass","className",r),i={className:s,collectionName:`${s}Selection`,attributes:[{name:"ID",kind:Lr.STORAGE,type:Zc.LONG,scope:"public",indexKind:"auto",unique:!0,primKey:!0,autosequence:!0}],name:s,scope:"public",extraProperties:{position:{x:((c=t.payload.position)==null?void 0:c.x)||0,y:((l=t.payload.position)==null?void 0:l.y)||0}}};r[i.name]=i}).addCase(fv,({draft:{dataClasses:r}},t)=>{const{dataclassID:a}=t.payload;r[a]&&(delete r[a],Object.values(r).forEach(i=>{i.attributes=i.attributes.filter(c=>c.type!==a&&c.type!==i.collectionName)}))}).addCase(lv,({draft:{dataClasses:r,collections:t}},a)=>{const{dataclassID:s,newName:i}=a.payload;if(!r[s]||r[i])return;const c=r[s].collectionName,l=ns(`${i}Selection`,"collectionName",t);Object.values(r).forEach(d=>{d.className===s&&(d.className=i,d.name=i,d.collectionName=l),d.attributes.forEach(p=>{p.type===s?(p.type=i,p.path=i):p.type===c&&(p.type=l)})})}).addCase(dv,({draft:{dataClasses:r}},t)=>{const{dataclassID:a,attributeName:s,attributeType:i,attributeKind:c,target:l}=t.payload;if(!r[a]||_.exists("name",s,r[a].attributes))return;const p={name:s,kind:c,type:i,exposed:!0,scope:"public"};if(c===Lr.RELATEDENTITY){if(!r[i])return;p.path=i;const m={name:ns(r[i].collectionName,"name",r[i].attributes),type:r[a].collectionName,kind:Lr.RELATEDENTITIES,reversePath:!0,path:s,scope:"public",exposed:!0};r[i].attributes.push(m)}else if(c===Lr.RELATEDENTITIES){const g=r[i];if(!g)return;const m=g.attributes.find(_.by("name",l));if(m){if(!Na(m)||m.type!==r[a].className)return}else{p.path=l,p.reversePath=!0,p.type=i;const b={name:l,kind:Lr.RELATEDENTITY,scope:"public",path:g.className,type:g.className,exposed:!0};g.attributes.push(b)}}r[a].attributes.push(p)}).addCase(hv,({draft:{dataClasses:r}},t)=>{const{dataclassID:a,attributeID:s,newName:i}=t.payload,c=r[a].attributes.find(_.by("name",s)),l=r[a].attributes.find(_.by("name",i));!c||l||Object.values(r).forEach(({collectionName:d,attributes:p,className:g})=>{p.forEach(m=>{Na(c)&&ws(m)&&m.type===d&&m.path===s&&(m.path=i),g===a&&m.name===s&&(m.name=i)})})}).addCase(pv,({draft:{dataClasses:r}},t)=>{const{dataclassID:a,attributeID:s}=t.payload;if(!r[a])return;const i=r[a].attributes.find(_.by("name",s));i&&(Na(i)&&Object.values(r).forEach(c=>{c.attributes=c.attributes.filter(l=>!(ws(l)&&l.type===c.collectionName&&l.path===i.name))}),r[a].attributes=r[a].attributes.filter(_.outBy("name",s)))}).addCase(vv,({draft:{dataClasses:r,collections:t}},a)=>{const{dataclassID:s,collectionName:i}=a.payload;if(!r[s])return;const c=r[s].collectionName;t[i]||(r[s].collectionName=i,t[i]=r[s],delete t[c],Object.values(r).forEach(l=>l.attributes.forEach(d=>{d.type===c&&(d.type=i)})))}).addCase(gv,({draft:{dataClasses:r}},t)=>{const{dataclassID:a,newPrimKey:s}=t.payload;r[a]&&r[a].attributes.forEach(i=>{i.name===s?i.primKey=!0:i.primKey=!1})}),e.addCase(Qc.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(Ts.pending,()=>{}).addCase(Ts.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:eI}=mv.actions,tI=()=>Ur(e=>e.model.draft.dataClasses),rI=()=>Ur(e=>e.model.draft.collections),nI=e=>Ur(r=>r.model.draft.dataClasses[e]),aI=(e,r)=>Ur(t=>t.model.draft.dataClasses[e].attributes.find(_.by("name",r))),oI=()=>Ur(e=>e.model.draft.extraProperties),sI=()=>{const e=Ur(s=>s.model.flags),r=s=>s in e?e[s]:void 0,t=r(Ua.DATACLASS_DELETE),a=r(Ua.DATACLASS_DRAGGABLE);return{deleteDataclass:t,draggableDataclass:a,flags:e}},iI=mv.reducer;function Uu(e,r){const t=e.tabs.find(({path:a})=>a===cn);t&&(t.flags.touched=r)}const yv={SIDEBAR_SECTION_RESIZABLE:"sidebar.section.resizable"},bv={[yv.SIDEBAR_SECTION_RESIZABLE]:!0},_v=or({name:"webforms",initialState:()=>{const{webforms:e}=ta();return{...e,templates:{data:[],selectedGroup:""},datasources:{...Oc.webforms.datasources,...e==null?void 0:e.datasources},flags:bv}},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(Cv.fulfilled,(r,t)=>{r.components=t.payload})}}),{toggleInspector:uI,inspect:cI,addComponent:Ev,editComponent:Sv,removeComponent:wv,setSelectedGroup:lI,setTemplatesData:Tv,setTemplateData:xv,setDatasourcesTheme:fI,setWebformsFlag:dI}=_v.actions,pI=_v.reducer,el=ze.curry((e,r)=>{var s,i;const t={...r.sharedDatasources.sources},a=(i=((s=r.root.tabs.find(_.by("path",e)))==null?void 0:s.content).metadata)==null?void 0:i.datasources;return a&&(t[e]=a),ze.cloneDeep(t)}),hI=Q("webforms/fetchTemplates",async(e,{dispatch:r,getState:t})=>{const{data:a}=t().webforms.templates,s=t().settings.session["studio.tipsBaseUrl"]||"";if(!ze.isEmpty(a))return a;try{const c=await(await fetch(`${s}/build/index.json?t=${Date.now()}`)).json();return r(Tv(c)),c}catch{return[]}}),gI=Q("webforms/fetchTemplate",async({name:e},{dispatch:r,getState:t})=>{const{data:a}=t().webforms.templates,s=a.find(i=>i.group===e);if(s&&!ze.isEmpty(s.components))return s.components;try{const c=await(await fetch(`${s==null?void 0:s.link}?t=${Date.now()}`)).json();return r(xv({group:e,components:c})),c}catch{return[]}}),Cv=Q("webforms/fetchCraftedComponents",async(e,{rejectWithValue:r})=>{try{return(await _.getNodeInfo({path:"WebForms/crafted_components.json",verb:_.DesignerRequestVerb.GET_INFO,content:!0,as:"json"})).content}catch{return r("Error while loading the crafted components")}}),vI=Q("webforms/addCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(Ev(e));const{webforms:{components:s}}=a();_.setCraftedComponents(s)}catch{return t("Error while adding the crafted component")}}),mI=Q("webforms/editCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(Sv(e));const{webforms:{components:s}}=a();_.setCraftedComponents(s)}catch{return t("Error while editing the crafted component")}}),yI=Q("webforms/removeCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(wv(e));const{webforms:{components:s}}=a();_.setCraftedComponents(s)}catch{return t("Error while removing the crafted component")}}),tl=Q("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 _.setSharedSources(p)}else(((s=(a=i.root.tabs.find(_.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=Q("datasources/edit-datasource",async(e,{getState:r,rejectWithValue:t})=>{try{const{namespace:a,path:s}=e,i=r(),c=!!e.namespace,l=el(s,i);let d=ze.defaultTo(l[a||s],[]);return d=d.map(p=>p.id===e.id?{...p,[e.property]:e.value}:p),c&&await _.setSharedSources({...i.sharedDatasources.sources,[e.namespace]:d}),{list:d,path:e.path,namespace:e.namespace}}catch{t(`Error while editing datasource ${e.id}`)}}),bI=e=>e.type===Qn.fulfilled.type,Qn=Q("datasources/rename-datasource",async(e,{getState:r,rejectWithValue:t})=>{try{const a=r(),s=!!e.namespace,i=e.namespace||e.path,c=el(e.path,a),l=ze.defaultTo(c[i],[]),d=new RegExp(`^${e.id}\\b`,"");if(l.forEach(p=>{var m;const g=(_.isObjectDatasource(p)||!_.isSimpleDatasource(p))&&p.from&&d.test(p.from);e.updateRefs&&((m=p.events)==null||m.forEach(b=>{var E,x,C,I,P;switch(b.type){case"method":{const k=b;k.params.forEach(M=>{M.datasource&&Object.assign(M,{datasource:M.datasource.replace(new RegExp(`^${e.id}`,""),e.new_name)})}),k.returns&&Object.assign(k.returns,{datasource:(x=(E=k.returns)==null?void 0:E.datasource)==null?void 0:x.replace(new RegExp(`^${e.id}`,""),e.new_name)});return}case"simple-action":{const k=b;k.datasource&&Object.assign(k.datasource,{name:(C=k.datasource.name)==null?void 0:C.replace(new RegExp(`^${e.id}`,""),e.new_name),from:(I=k.datasource.from)==null?void 0:I.replace(new RegExp(`^${e.id}`,""),e.new_name),target:(P=k.datasource.target)==null?void 0:P.replace(new RegExp(`^${e.id}`,""),e.new_name)});return}default:return}})),p.id===e.id?p.id=e.new_name:g&&p.from&&(p.from=p.from.replace(new RegExp(`^${e.id}`,""),e.new_name))}),e.updateRefs){const p=_.getDatasourceId({id:e.id,namespace:e.namespace}),g=_.getDatasourceId({id:e.new_name,namespace:e.namespace});_.datasourcesSubject.next({path:e.path??"",action:_.DatasourcesActions.RENAME,old_reference:p,new_reference:g,is_shared:s})}return s&&await _.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}`)}}),La=Q("datasources/delete-datasource",async(e,{getState:r,rejectWithValue:t})=>{try{const a=r(),s=!!e.namespace,i=e.namespace||e.path,l=el(e.path,a)[i].filter(_.outById(e.id));return s&&await _.setSharedSources({...a.sharedDatasources.sources,[e.namespace]:l}),{list:l,path:e.path,namespace:e.namespace}}catch{return t(`Error while removing datasource ${e.id}`)}}),nl=or({name:"root",initialState:()=>{const e=ta();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))})},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}))},openSettingsTab(e){const r={date:new Date().toISOString(),flags:{},view:{panel:{isOpen:!1,type:"",current:""}},extra:{editor:{key:"editors:settings"}},name:"Settings",path:cn,type:_.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}},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},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},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)||""},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=r.payload;let a=e.tabs.find(({path:s})=>t.path===s);if(a||(e.tabs.push(t),a=e.tabs[e.tabs.length-1]),e.activeTab!==t.path){const s=e.tabs.reduce((i,c)=>(c==null?void 0:c.weight)>((i==null?void 0:i.weight)||0)?c:i,null);e.activeTab=t.path,a.weight=((s==null?void 0:s.weight)||0)+1}a.extra={...a.extra,...t.extra},a.flags={...a.flags||{},...t.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;if(typeof a=="string")c=i.initialContent!==a;else{const l=JSON.stringify(ze.get(i.initialContent,s||"",i.initialContent)),d=JSON.stringify(ze.get(a,s||"",a));c=l!==d}return a&&typeof a=="object"&&(s?ze.set(i.content,s,a):i.content=a),typeof a=="string"&&(i.content=a),{...i,flags:{...i.flags,touched:c}}})},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(tv.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(`
|
|
100
100
|
`);l.splice(s,0,a),c.content=l.join(`
|
|
101
|
-
`)}}),e.addCase(Zn.pending,(r,t)=>{const{tab:a}=t.meta.arg;switch(a.type){case _.FileFolderType.CLASS:case _.FileFolderType.METHOD:_.lspSubject.next({action:_.LspActions.WILL_SAVE,payload:{filePath:a.path}});break}}),e.addCase(Zn.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.old=!1,a.type){case _.FileFolderType.CLASS:case _.FileFolderType.METHOD:_.lspSubject.next({action:_.LspActions.DID_SAVE,payload:{filePath:a.path,content:a.content}});break}t.payload.errors.length>0&&_.toastSubject.next({kind:"error",message:t.payload.errors})}}),e.addCase(Zn.rejected,(r,t)=>{_.toastSubject.next({kind:"danger",message:"Cannot save file"})}),e.addCase(
|
|
101
|
+
`)}}),e.addCase(Zn.pending,(r,t)=>{const{tab:a}=t.meta.arg;switch(a.type){case _.FileFolderType.CLASS:case _.FileFolderType.METHOD:_.lspSubject.next({action:_.LspActions.WILL_SAVE,payload:{filePath:a.path}});break}}),e.addCase(Zn.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.old=!1,a.type){case _.FileFolderType.CLASS:case _.FileFolderType.METHOD:_.lspSubject.next({action:_.LspActions.DID_SAVE,payload:{filePath:a.path,content:a.content}});break}t.payload.errors.length>0&&_.toastSubject.next({kind:"error",message:t.payload.errors})}}),e.addCase(Zn.rejected,(r,t)=>{_.toastSubject.next({kind:"danger",message:"Cannot save file"})}),e.addCase(nv.fulfilled,(r,t)=>{const a=[...t.payload.files];r.tabs=r.tabs.map(s=>{if([_.FileFolderType.CLASS,_.FileFolderType.METHOD].includes(s.type)){const i=a.find(c=>c.name===s.name&&c.type===s.type);if(i){const c=new Date(s.date),l=new Date(i.date);if(c.getTime()!==l.getTime())return{...s,flags:{...s.flags,old:!0}}}}return s})}),e.addCase(gc.pending,(r,t)=>{r.tabs=r.tabs.map(a=>a.path===t.meta.arg.path?{...a,flags:{...a.flags,loading:!0}}:a)}),e.addCase(gc.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===_.FileFolderType.METHOD?(c.attributes=_.parseAttributes(a.content),a.content=_.addAttributesToContent(a.content,{})):i.type===_.FileFolderType.SETTINGS&&(a.content={}),{...i,initialContent:a.content,content:a.content,date:a.date,flags:{},extra:c}}return i})}}),e.addCase(Vc.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(rv.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(Xn.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(hc.pending,(r,t)=>{const a=t.meta.arg,s=`${a.path}${a.ext?`.${a.ext}`:""}`;switch(a.ext){case"4dm":case"4qs":_.lspSubject.next({action:_.LspActions.WILL_DELETE,payload:{filePath:s}});break}}),e.addCase(hc.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":_.lspSubject.next({action:_.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(Ma.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(Ts.fulfilled,(r,t)=>{const a=r.tabs.find(s=>s.path===t.payload.path);a&&(a.flags.touched=!1,a.date=t.payload.date,a.content=t.payload.content,a.initialContent=t.payload.content)}),e.addCase(av.fulfilled,(r,t)=>{var i;if(!((i=t.payload)!=null&&i.path))return;const a=r.tabs.find(_.by("path",t.payload.path));if(!a)return;a.content=a.content+`
|
|
102
102
|
|
|
103
103
|
exposed Function ${t.meta.arg.name}()
|
|
104
104
|
`,a.flags={...a.flags,touched:!0};const s=a.content.split(`
|
|
105
|
-
`);a.extra={...a.extra,editor:_.EDITOR.Code,initialLineInfo:{line:s.length-2,lastModification:Date.now()}}}),e.addCase(Kc.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(_.by("path",a));!s||!s.content||!s.content.metadata||(Object.assign(s.content.metadata,{datasources:t.payload.datasources}),s.flags.touched=!0)}),e.addCase(Jc.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(
|
|
105
|
+
`);a.extra={...a.extra,editor:_.EDITOR.Code,initialLineInfo:{line:s.length-2,lastModification:Date.now()}}}),e.addCase(Kc.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(_.by("path",a));!s||!s.content||!s.content.metadata||(Object.assign(s.content.metadata,{datasources:t.payload.datasources}),s.flags.touched=!0)}),e.addCase(Jc.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(uv.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(Yc.pending,r=>Uu(r,!1)),e.addMatcher(hr(Vg),(r,t)=>{["project"].includes(t.payload.path)&&Uu(r,!0)}),e.addMatcher(hr(zs),(r,t)=>{Uu(r,!1)}),e.addMatcher(hr(Fv,Dt),(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(hr(Gg,qg),(r,t)=>{r.tabs=r.tabs.map(a=>a.path===_.ROLES_TAB_PATH?{...a,flags:{...a.flags,touched:!0}}:a)}),e.addMatcher(hr(zc),(r,t)=>{r.tabs=r.tabs.map(a=>a.path===_.ROLES_TAB_PATH?{...a,flags:{...a.flags,touched:!1}}:a)}),e.addMatcher(hr(tl.fulfilled,rl.fulfilled,La.fulfilled,Qn.fulfilled),(r,t)=>{var s,i,c;const a=r.tabs.find(_.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,Object.assign(a.content,{metadata:{...a.content.metadata,datasources:(c=t.payload)==null?void 0:c.list}}))}),e.addMatcher(hr(La.fulfilled,Qn.fulfilled),(r,t)=>{var l;const a=r.tabs.find(_.by("path",((l=t.payload)==null?void 0:l.path)||t.meta.arg.path));if(!a)return;const{panel:s}=a.view,i=_.getDatasourceId({id:t.meta.arg.id,namespace:t.meta.arg.namespace});if(s.type==="datasource"&&s.current===i)switch(t.type){case La.fulfilled.type:Object.assign(a.view.panel,{type:"component",current:wR});break;case Qn.fulfilled.type:const d=_.getDatasourceId({id:t.meta.arg.new_name,namespace:t.meta.arg.namespace});Object.assign(a.view.panel,{type:"datasource",current:d});break}})}}),{setTabs:_I,closeTab:al,setContent:Rv,setTabFlags:Ov,setTabsFlags:EI,setTabExtra:SI,closeAllTabs:Av,addDataSource:wI,closeRightTabs:Pv,closeOthers:Dv,closeLeftTabs:Iv,closeSavedTabs:TI,setDataSources:xI,removeDataSource:CI,selectTab:Fv,selectTabByReference:Dt,openTabUnselected:$v,addWebFormStyles:RI,changeTabEditor:OI,openSettingsTab:AI,setPanelState:PI}=nl.actions,Mv=nl.reducer,DI=ov.reducer,An=Q("catalog/fetchCatalog",async(e,{rejectWithValue:r})=>{var t;try{const a=await _.getCatalog(),s=new Map,i=new Map;return(t=a==null?void 0:a.dataClasses)==null||t.forEach(({methods:c=[],...l})=>{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")}}),II=or({name:"catalog",initialState:{state:"loading"},reducers:{},extraReducers(e){e.addCase(An.pending,r=>({state:"loading"})).addCase(An.fulfilled,(r,{payload:t})=>({state:"loaded",model:t})).addCase(An.rejected,(r,t)=>({state:"error",error:t.payload||"Error while loading the catalog"}))}}),FI=II.reducer,$I=Mg.reducer,as=Q("shared_datasources/fetchSharedSources",async(e,{rejectWithValue:r})=>{try{return await _.getSharedDatasources()}catch{return r("Error while loading the shared datasources")}}),Nv=Q("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 _.setSharedSources(a.sources),a.sources}catch{return r("Error while saving the shared datasources")}}),Lv=Q("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 _.setSharedSources(a.sources),a.sources}catch{return r("Error while saving the shared datasources")}}),jv=Q("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 _.setSharedSources(a.sources),a.sources}catch{return r("Error while saving the shared datasources")}}),ol=Q("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 _.setSharedSources(a.sources),a.sources}catch{return r("Error while saving the shared datasources")}}),MI=Q("shared_datasources/setDatasourceEvents",async({tabPath:e,name:r,namespace:t,events:a},{getState:s,dispatch:i})=>{var E,x,C;const{root:{tabs:c},sharedDatasources:l}=s(),d=((C=(x=(E=c.find(({path:I})=>I===e))==null?void 0:E.content)==null?void 0:x.metadata)==null?void 0:C.datasources)||[],p={local:!1,shared:!1},g=(I,P)=>I.id===r&&(!t&&!I.namespace||I.namespace===t)?(P==null||P(),{...I,events:a}):I,m=d.map(I=>g(I,()=>{p.local=!0})),b=ze.flatten(ze.values(l.sources)).map(I=>g(I,()=>{p.shared=!0}));p.local&&i(Rv({path:e,content:m,contentPath:"metadata.datasources"})),p.shared&&i(ol(b))}),kv=or({name:"shared-datasources",initialState:{},reducers:{addEmptyNamespace(e,r){e.sources[r.payload.name]=[]}},extraReducers(e){e.addCase(as.pending,r=>({state:"loading",sources:{}})).addCase(as.fulfilled,(r,t)=>({state:"loaded",sources:t.payload})).addCase(as.rejected,(r,t)=>({state:"error",sources:{},error:t.payload||"Error while loading the shared datasources"})).addCase(ol.fulfilled,(r,t)=>({state:"loaded",sources:t.payload})).addCase(Jc.fulfilled,(r,t)=>{const{payload:a,meta:{arg:s}}=t;s.namespace&&Object.assign(r.sources,{[s.namespace]:a})}).addCase(Nv.fulfilled,(r,t)=>({...r,sources:t.payload})).addCase(jv.fulfilled,(r,t)=>({...r,sources:t.payload})).addCase(Lv.fulfilled,(r,t)=>({...r,sources:t.payload})).addCase(Kc.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(hr(tl.fulfilled,La.fulfilled,rl.fulfilled,Qn.fulfilled),(r,t)=>{if(!t.payload)return;const{namespace:a,list:s}=t.payload;a&&Object.assign(r.sources,{[a]:s})})}}),{addEmptyNamespace:NI}=kv.actions,LI=kv.reducer,jI=Kg.reducer,os=Q("shared_css/fetchSharedCSS",async(e,{rejectWithValue:r})=>{try{const{classes:t}=await _.getSharedCSS();return t}catch{return r("Error while loading the shared CSS")}}),kI=_.queue();async function BI(e){const r={verb:_.DesignerRequestVerb.SET_FILE_CONTENT,asText:!1,name:"shared_css.json",path:"",root:"shared",content:{classes:e.map(({scope:t,...a})=>({...a}))}};await kI(()=>_.http(_.API_PREFIX,{method:"POST",body:JSON.stringify(r),headers:new Headers({"Content-Type":"application/json"})}))}const Bv=or({name:"shared-css",initialState:()=>{const{sharedCSS:e}=ta();return e||{state:"loading",styles:[]}},reducers:{updateSharedCss:(e,r)=>(e.styles=r.payload.classes,BI(r.payload.classes),e),initSharedCss:(e,r)=>(e.styles=r.payload.classes,e)},extraReducers(e){e.addCase(os.pending,r=>({...r,state:"loading"})).addCase(os.fulfilled,(r,{payload:t})=>({state:"loaded",styles:t})).addCase(os.rejected,(r,t)=>({...r,state:"error",error:t.payload||"Error while loading the shared css"}))}}),{updateSharedCss:WI,initSharedCss:UI}=Bv.actions,HI=Bv.reducer,qI={},GI=or({name:"tabs",initialState:qI,reducers:{}}),zI=e=>q(ia,r=>{var t,a;return(a=(t=r.find(s=>s.path===e))==null?void 0:t.view)==null?void 0:a.panel});GI.reducer;const Wv=eh({root:Mv,explorer:jI,debugger:DI,settings:JP,catalog:FI,roles:zP,sharedDatasources:LI,webforms:pI,modals:$I,sharedCSS:HI,model:iI});let Aa;const Uv=()=>(Aa||(Aa=VS({reducer:Wv}),Aa.subscribe(iT(()=>{const{root:{activeTab:e,tabs:r,recent:t},roles:a,debugger:s,webforms:i,sharedCSS:c,settings:{session:l}}=Aa.getState();_h({...l}),bh({tabs:r,activeTab:e,recent:t,roles:a,debugger:s,webforms:i,sharedCSS:c})},1e3))),Aa);var vc={exports:{}},Vn={};/** @license React v17.0.2
|
|
106
106
|
* react-jsx-runtime.production.min.js
|
|
107
107
|
*
|
|
108
108
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
109
109
|
*
|
|
110
110
|
* This source code is licensed under the MIT license found in the
|
|
111
111
|
* LICENSE file in the root directory of this source tree.
|
|
112
|
-
*/var Yp;function
|
|
112
|
+
*/var Yp;function YI(){if(Yp)return Vn;Yp=1,Ic();var e=Ke,r=60103;if(Vn.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var t=Symbol.for;r=t("react.element"),Vn.Fragment=t("react.fragment")}var a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,i={key:!0,ref:!0,__self:!0,__source:!0};function c(l,d,p){var g,m={},b=null,E=null;p!==void 0&&(b=""+p),d.key!==void 0&&(b=""+d.key),d.ref!==void 0&&(E=d.ref);for(g in d)s.call(d,g)&&!i.hasOwnProperty(g)&&(m[g]=d[g]);if(l&&l.defaultProps)for(g in d=l.defaultProps,d)m[g]===void 0&&(m[g]=d[g]);return{$$typeof:r,type:l,key:b,ref:E,props:m,_owner:a.current}}return Vn.jsx=c,Vn.jsxs=c,Vn}var Hu={};/** @license React v17.0.2
|
|
113
113
|
* react-jsx-runtime.development.js
|
|
114
114
|
*
|
|
115
115
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
116
116
|
*
|
|
117
117
|
* This source code is licensed under the MIT license found in the
|
|
118
118
|
* LICENSE file in the root directory of this source tree.
|
|
119
|
-
*/var Vp;function
|
|
119
|
+
*/var Vp;function VI(){return Vp||(Vp=1,function(e){process.env.NODE_ENV!=="production"&&function(){var r=Ke,t=Ic(),a=60103,s=60106;e.Fragment=60107;var i=60108,c=60114,l=60109,d=60110,p=60112,g=60113,m=60120,b=60115,E=60116,x=60121,C=60122,I=60117,P=60129,k=60131;if(typeof Symbol=="function"&&Symbol.for){var M=Symbol.for;a=M("react.element"),s=M("react.portal"),e.Fragment=M("react.fragment"),i=M("react.strict_mode"),c=M("react.profiler"),l=M("react.provider"),d=M("react.context"),p=M("react.forward_ref"),g=M("react.suspense"),m=M("react.suspense_list"),b=M("react.memo"),E=M("react.lazy"),x=M("react.block"),C=M("react.server.block"),I=M("react.fundamental"),M("react.scope"),M("react.opaque.id"),P=M("react.debug_trace_mode"),M("react.offscreen"),k=M("react.legacy_hidden")}var j=typeof Symbol=="function"&&Symbol.iterator,O="@@iterator";function Y(w){if(w===null||typeof w!="object")return null;var U=j&&w[j]||w[O];return typeof U=="function"?U:null}var H=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function z(w){{for(var U=arguments.length,J=new Array(U>1?U-1:0),ie=1;ie<U;ie++)J[ie-1]=arguments[ie];te("error",w,J)}}function te(w,U,J){{var ie=H.ReactDebugCurrentFrame,Ne=ie.getStackAddendum();Ne!==""&&(U+="%s",J=J.concat([Ne]));var Le=J.map(function(xe){return""+xe});Le.unshift("Warning: "+U),Function.prototype.apply.call(console[w],console,Le)}}var We=!1;function Te(w){return!!(typeof w=="string"||typeof w=="function"||w===e.Fragment||w===c||w===P||w===i||w===g||w===m||w===k||We||typeof w=="object"&&w!==null&&(w.$$typeof===E||w.$$typeof===b||w.$$typeof===l||w.$$typeof===d||w.$$typeof===p||w.$$typeof===I||w.$$typeof===x||w[0]===C))}function it(w,U,J){var ie=U.displayName||U.name||"";return w.displayName||(ie!==""?J+"("+ie+")":J)}function X(w){return w.displayName||"Context"}function Pe(w){if(w==null)return null;if(typeof w.tag=="number"&&z("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof w=="function")return w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case e.Fragment:return"Fragment";case s:return"Portal";case c:return"Profiler";case i:return"StrictMode";case g:return"Suspense";case m:return"SuspenseList"}if(typeof w=="object")switch(w.$$typeof){case d:var U=w;return X(U)+".Consumer";case l:var J=w;return X(J._context)+".Provider";case p:return it(w,w.render,"ForwardRef");case b:return Pe(w.type);case x:return Pe(w._render);case E:{var ie=w,Ne=ie._payload,Le=ie._init;try{return Pe(Le(Ne))}catch{return null}}}return null}var ut=0,et,He,nt,Yt,W,G,de;function le(){}le.__reactDisabledLog=!0;function se(){{if(ut===0){et=console.log,He=console.info,nt=console.warn,Yt=console.error,W=console.group,G=console.groupCollapsed,de=console.groupEnd;var w={configurable:!0,enumerable:!0,value:le,writable:!0};Object.defineProperties(console,{info:w,log:w,warn:w,error:w,group:w,groupCollapsed:w,groupEnd:w})}ut++}}function fe(){{if(ut--,ut===0){var w={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:t({},w,{value:et}),info:t({},w,{value:He}),warn:t({},w,{value:nt}),error:t({},w,{value:Yt}),group:t({},w,{value:W}),groupCollapsed:t({},w,{value:G}),groupEnd:t({},w,{value:de})})}ut<0&&z("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ne=H.ReactCurrentDispatcher,ce;function ue(w,U,J){{if(ce===void 0)try{throw Error()}catch(Ne){var ie=Ne.stack.trim().match(/\n( *(at )?)/);ce=ie&&ie[1]||""}return`
|
|
120
120
|
`+ce+w}}var he=!1,ge;{var K=typeof WeakMap=="function"?WeakMap:Map;ge=new K}function F(w,U){if(!w||he)return"";{var J=ge.get(w);if(J!==void 0)return J}var ie;he=!0;var Ne=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Le;Le=ne.current,ne.current=null,se();try{if(U){var xe=function(){throw Error()};if(Object.defineProperty(xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xe,[])}catch(ur){ie=ur}Reflect.construct(w,[],xe)}else{try{xe.call()}catch(ur){ie=ur}w.call(xe.prototype)}}else{try{throw Error()}catch(ur){ie=ur}w()}}catch(ur){if(ur&&ie&&typeof ur.stack=="string"){for(var Ee=ur.stack.split(`
|
|
121
121
|
`),ht=ie.stack.split(`
|
|
122
122
|
`),Ze=Ee.length-1,tt=ht.length-1;Ze>=1&&tt>=0&&Ee[Ze]!==ht[tt];)tt--;for(;Ze>=1&&tt>=0;Ze--,tt--)if(Ee[Ze]!==ht[tt]){if(Ze!==1||tt!==1)do if(Ze--,tt--,tt<0||Ee[Ze]!==ht[tt]){var Kt=`
|
|
123
|
-
`+Ee[Ze].replace(" at new "," at ");return typeof w=="function"&&ge.set(w,Kt),Kt}while(Ze>=1&&tt>=0);break}}}finally{he=!1,ne.current=Le,fe(),Error.prepareStackTrace=Ne}var zr=w?w.displayName||w.name:"",
|
|
123
|
+
`+Ee[Ze].replace(" at new "," at ");return typeof w=="function"&&ge.set(w,Kt),Kt}while(Ze>=1&&tt>=0);break}}}finally{he=!1,ne.current=Le,fe(),Error.prepareStackTrace=Ne}var zr=w?w.displayName||w.name:"",ro=zr?ue(zr):"";return typeof w=="function"&&ge.set(w,ro),ro}function Ye(w,U,J){return F(w,!1)}function qe(w){var U=w.prototype;return!!(U&&U.isReactComponent)}function yt(w,U,J){if(w==null)return"";if(typeof w=="function")return F(w,qe(w));if(typeof w=="string")return ue(w);switch(w){case g:return ue("Suspense");case m:return ue("SuspenseList")}if(typeof w=="object")switch(w.$$typeof){case p:return Ye(w.render);case b:return yt(w.type,U,J);case x:return Ye(w._render);case E:{var ie=w,Ne=ie._payload,Le=ie._init;try{return yt(Le(Ne),U,J)}catch{}}}return""}var Va={},Vt=H.ReactDebugCurrentFrame;function ln(w){if(w){var U=w._owner,J=yt(w.type,w._source,U?U.type:null);Vt.setExtraStackFrame(J)}else Vt.setExtraStackFrame(null)}function Vs(w,U,J,ie,Ne){{var Le=Function.call.bind(Object.prototype.hasOwnProperty);for(var xe in w)if(Le(w,xe)){var Ee=void 0;try{if(typeof w[xe]!="function"){var ht=Error((ie||"React class")+": "+J+" type `"+xe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof w[xe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ht.name="Invariant Violation",ht}Ee=w[xe](U,xe,ie,J,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ze){Ee=Ze}Ee&&!(Ee instanceof Error)&&(ln(Ne),z("%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).",ie||"React class",J,xe,typeof Ee),ln(null)),Ee instanceof Error&&!(Ee.message in Va)&&(Va[Ee.message]=!0,ln(Ne),z("Failed %s type: %s",J,Ee.message),ln(null))}}}var ir=H.ReactCurrentOwner,Ct=Object.prototype.hasOwnProperty,fn={key:!0,ref:!0,__self:!0,__source:!0},dn,Ka,xr;xr={};function Ks(w){if(Ct.call(w,"ref")){var U=Object.getOwnPropertyDescriptor(w,"ref").get;if(U&&U.isReactWarning)return!1}return w.ref!==void 0}function pn(w){if(Ct.call(w,"key")){var U=Object.getOwnPropertyDescriptor(w,"key").get;if(U&&U.isReactWarning)return!1}return w.key!==void 0}function Gr(w,U){if(typeof w.ref=="string"&&ir.current&&U&&ir.current.stateNode!==U){var J=Pe(ir.current.type);xr[J]||(z('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',Pe(ir.current.type),w.ref),xr[J]=!0)}}function ua(w,U){{var J=function(){dn||(dn=!0,z("%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)",U))};J.isReactWarning=!0,Object.defineProperty(w,"key",{get:J,configurable:!0})}}function ca(w,U){{var J=function(){Ka||(Ka=!0,z("%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)",U))};J.isReactWarning=!0,Object.defineProperty(w,"ref",{get:J,configurable:!0})}}var la=function(w,U,J,ie,Ne,Le,xe){var Ee={$$typeof:a,type:w,key:U,ref:J,props:xe,_owner:Le};return Ee._store={},Object.defineProperty(Ee._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ee,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ie}),Object.defineProperty(Ee,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ne}),Object.freeze&&(Object.freeze(Ee.props),Object.freeze(Ee)),Ee};function fa(w,U,J,ie,Ne){{var Le,xe={},Ee=null,ht=null;J!==void 0&&(Ee=""+J),pn(U)&&(Ee=""+U.key),Ks(U)&&(ht=U.ref,Gr(U,Ne));for(Le in U)Ct.call(U,Le)&&!fn.hasOwnProperty(Le)&&(xe[Le]=U[Le]);if(w&&w.defaultProps){var Ze=w.defaultProps;for(Le in Ze)xe[Le]===void 0&&(xe[Le]=Ze[Le])}if(Ee||ht){var tt=typeof w=="function"?w.displayName||w.name||"Unknown":w;Ee&&ua(xe,tt),ht&&ca(xe,tt)}return la(w,Ee,ht,Ne,ie,ir.current,xe)}}var hn=H.ReactCurrentOwner,Dn=H.ReactDebugCurrentFrame;function mr(w){if(w){var U=w._owner,J=yt(w.type,w._source,U?U.type:null);Dn.setExtraStackFrame(J)}else Dn.setExtraStackFrame(null)}var gn;gn=!1;function vn(w){return typeof w=="object"&&w!==null&&w.$$typeof===a}function Ja(){{if(hn.current){var w=Pe(hn.current.type);if(w)return`
|
|
124
124
|
|
|
125
|
-
Check the render method of \``+w+"`."}return""}}function
|
|
125
|
+
Check the render method of \``+w+"`."}return""}}function Js(w){{if(w!==void 0){var U=w.fileName.replace(/^.*[\\\/]/,""),J=w.lineNumber;return`
|
|
126
126
|
|
|
127
|
-
Check your code at `+U+":"+J+"."}return""}}var
|
|
127
|
+
Check your code at `+U+":"+J+"."}return""}}var Xa={};function Za(w){{var U=Ja();if(!U){var J=typeof w=="string"?w:w.displayName||w.name;J&&(U=`
|
|
128
128
|
|
|
129
|
-
Check the top-level render call using <`+J+">.")}return U}}function da(w,U){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var J=Qa(U);if(Za[J])return;Za[J]=!0;var ie="";w&&w._owner&&w._owner!==hn.current&&(ie=" It was passed a child from "+Pe(w._owner.type)+"."),mr(w),z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',J,ie),mr(null)}}function eo(w,U){{if(typeof w!="object")return;if(Array.isArray(w))for(var J=0;J<w.length;J++){var ie=w[J];vn(ie)&&da(ie,U)}else if(vn(w))w._store&&(w._store.validated=!0);else if(w){var Ne=Y(w);if(typeof Ne=="function"&&Ne!==w.entries)for(var Le=Ne.call(w),xe;!(xe=Le.next()).done;)vn(xe.value)&&da(xe.value,U)}}}function Zs(w){{var U=w.type;if(U==null||typeof U=="string")return;var J;if(typeof U=="function")J=U.propTypes;else if(typeof U=="object"&&(U.$$typeof===p||U.$$typeof===b))J=U.propTypes;else return;if(J){var ie=Pe(U);Ks(J,w.props,"prop",ie,w)}else if(U.PropTypes!==void 0&&!gn){gn=!0;var Ne=Pe(U);z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ne||"Unknown")}typeof U.getDefaultProps=="function"&&!U.getDefaultProps.isReactClassApproved&&z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Qs(w){{for(var U=Object.keys(w.props),J=0;J<U.length;J++){var ie=U[J];if(ie!=="children"&&ie!=="key"){mr(w),z("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ie),mr(null);break}}w.ref!==null&&(mr(w),z("Invalid attribute `ref` supplied to `React.Fragment`."),mr(null))}}function to(w,U,J,ie,Ne,Le){{var xe=Te(w);if(!xe){var Ee="";(w===void 0||typeof w=="object"&&w!==null&&Object.keys(w).length===0)&&(Ee+=" 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 ht=Xs(Ne);ht?Ee+=ht:Ee+=Xa();var Ze;w===null?Ze="null":Array.isArray(w)?Ze="array":w!==void 0&&w.$$typeof===a?(Ze="<"+(Pe(w.type)||"Unknown")+" />",Ee=" Did you accidentally export a JSX literal instead of a component?"):Ze=typeof w,z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ze,Ee)}var tt=fa(w,U,J,Ne,Le);if(tt==null)return tt;if(xe){var Kt=U.children;if(Kt!==void 0)if(ie)if(Array.isArray(Kt)){for(var zr=0;zr<Kt.length;zr++)eo(Kt[zr],w);Object.freeze&&Object.freeze(Kt)}else z("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 eo(Kt,w)}return w===e.Fragment?Qs(tt):Zs(tt),tt}}function ro(w,U,J){return to(w,U,J,!0)}function ei(w,U,J){return to(w,U,J,!1)}var ti=ei,ri=ro;e.jsx=ti,e.jsxs=ri}()}(qu)),qu}process.env.NODE_ENV==="production"?mc.exports=VI():mc.exports=KI();var JI=mc.exports;const XI=({children:e,store:r})=>JI.jsx($h,{store:r,children:e});exports.DEFAULT_CACHE=Ac;exports.EAttributeKind=Lr;exports.EAttributeTypes=Zc;exports.EDebuggerErrorReason=gh;exports.EDebuggerErrorType=ps;exports.EDebuggerState=Mr;exports.EDisplayMode=Tg;exports.EPermissionType=Ae;exports.ETooltipBehavior=jc;exports.ExpressionIndex=hh;exports.FLAGS_INIT_STATE=Sv;exports.FLAGS_KEYS=Ua;exports.ModalCloseReason=Hc;exports.ModalColor=Tr;exports.ModalIcons=GP;exports.ModalType=kt;exports.ReduxProvider=XI;exports.SETTINGS_TAB_PATH=cn;exports.THEME_CLASSES=_g;exports.WT_FLAGS_KEYS=Ev;exports.actionsToPrivs=Fg;exports.addAttribute=gv;exports.addBreakpointDecoration=ED;exports.addComponent=Tv;exports.addCraftedComponent=mI;exports.addDataSource=TI;exports.addDataclass=dv;exports.addDatasource=tl;exports.addEmptyNamespace=LI;exports.addExpression=CD;exports.addIn=_P;exports.addNewFile=Qg;exports.addPermission=CP;exports.addSession=FD;exports.addSharedSource=jv;exports.addWebFormStyles=OI;exports.allowed=yP;exports.attributeKinds=UD;exports.attributeScopes=zD;exports.attributeTypes=qD;exports.castToFileFolder=aD;exports.changeTabEditor=AI;exports.children=Ss;exports.clearBreakpoints=TD;exports.closeAllTabs=Iv;exports.closeLeftTabs=Mv;exports.closeModal=LP;exports.closeOthers=$v;exports.closeRightTabs=Fv;exports.closeSavedTabs=xI;exports.closeTab=al;exports.create=Ig;exports.createModal=jg;exports.createModelFiles=hc;exports.createNewFile=Jn;exports.createNewFileAndOpen=cD;exports.createNewNode=rs;exports.createRole=$P;exports.createWithResource=SP;exports.dataclassScopes=GD;exports.defaultWebformContent=xg;exports.deleteDatasource=La;exports.deleteFile=gc;exports.deleteFolder=lD;exports.deleteSharedSource=Wv;exports.deserializeModel=Sh;exports.duplicateNode=ns;exports.editAttributeProperty=VD;exports.editComponent=xv;exports.editCraftedComponent=yI;exports.editDataSource=Jc;exports.editDataclassPrimaryKey=yv;exports.editDataclassProperty=KD;exports.editDatasource=rl;exports.editModal=kP;exports.editRole=FP;exports.editSharedSource=Bv;exports.editors=Qh;exports.executeMethod=dD;exports.expandFolder=eD;exports.extensions=eg;exports.fetchAppSettings=Kg;exports.fetchCatalog=Kn;exports.fetchChanges=sv;exports.fetchCraftedComponents=Av;exports.fetchFiles=pD;exports.fetchFolderContent=Sr;exports.fetchFolderContentWithoutExpanding=Fa;exports.fetchModel=Qc;exports.fetchRoles=ws;exports.fetchRolesChanges=Gg;exports.fetchSettings=Yc;exports.fetchSharedCss=ss;exports.fetchSharedDatasources=os;exports.fetchTemplate=vI;exports.fetchTemplates=gI;exports.findNodeByPath=ft;exports.findOne=On;exports.findSession=st;exports.findSessionByPath=hg;exports.getCachedState=ta;exports.getCashedPrefrences=Eh;exports.getDebuggerTabName=Ah;exports.getDebuggerTabPath=Dc;exports.getDefaultContent=ev;exports.getDefaultName=as;exports.getDictByName=Mg;exports.getEditors=gr;exports.getExtension=rg;exports.getFilePath=nv;exports.getFileType=rv;exports.getFilenameFromType=tv;exports.getGraphData=xP;exports.getInheritedResources=Lg;exports.getModalTitle=Ps;exports.getNodeRelativePath=tg;exports.getPrivilegeById=qr;exports.getPromotions=PP;exports.getResourceFromType=Uc;exports.getStore=Vs;exports.indexTypes=YD;exports.initSharedCss=HI;exports.injectContentAtLine=av;exports.inspect=lI;exports.isJSON=wh;exports.isRelatedAttr=XD;exports.isRelatedEntitiesAttr=Ts;exports.isRelatedEntityAttr=Na;exports.isRenameDatasource=_I;exports.isRolesOutdated=qc;exports.isValidPrimaryKey=WD;exports.modelSubject=cg;exports.openAddFileInput=tD;exports.openFile=$a;exports.openFileAtLine=Vc;exports.openFileAtSelection=ov;exports.openModal=sr;exports.openModel=ZD;exports.openRoles=_D;exports.openSettingsTab=PI;exports.openTabUnselected=Lv;exports.parents=Us;exports.populateShallow=TP;exports.primaryKeyAttributes=HD;exports.refreshCatalog=Ga;exports.refreshFile=rD;exports.reloadTab=vc;exports.relocateNode=Ma;exports.remove=bP;exports.removeAllExpressions=AD;exports.removeAttribute=vv;exports.removeBreakpointDecoration=SD;exports.removeComponent=Cv;exports.removeCraftedComponent=bI;exports.removeDataSource=RI;exports.removeDataclass=hv;exports.removeDebuggerSessionsNotIn=fv;exports.removeExpression=OD;exports.removeFile=pc;exports.removeFileNode=fD;exports.removeFrom=EP;exports.removeModal=Bg;exports.removePermission=RP;exports.removeRole=IP;exports.removeSession=MD;exports.removeSessionByIndex=ND;exports.rename=wP;exports.renameAttribute=mv;exports.renameCollection=bv;exports.renameDataSource=Kc;exports.renameDataclass=pv;exports.renameDatasource=Qn;exports.renameExpression=RD;exports.renameFile=Xn;exports.resetResources=OP;exports.rootReducer=kv;exports.sanitize=Hs;exports.sanitizePermissions=$g;exports.sanitizePrivileges=Pg;exports.saveAll=hD;exports.saveExpressions=ID;exports.saveModel=xs;exports.savePrefrences=_h;exports.saveRole=MP;exports.saveRoles=fc;exports.saveState=bh;exports.saveTab=Zn;exports.selectActiveLine=GO;exports.selectActiveTab=aA;exports.selectAllDatasourcesByPath=LO;exports.selectAppState=fg;exports.selectBreakpoints=BO;exports.selectCSSClassesByPath=IA;exports.selectCallChainVariables=eA;exports.selectCatalog=Mc;exports.selectCatalogMethods=DO;exports.selectClassBreakpoints=UO;exports.selectClassOffset=rA;exports.selectClasses=mA;exports.selectClassesFolder=yg;exports.selectComponents=Sg;exports.selectComponentsByPath=MO;exports.selectContentByPath=gg;exports.selectCraftedComponent=kA;exports.selectCurrentFrameByThreadId=XO;exports.selectCurrentTab=sA;exports.selectDataclasses=PO;exports.selectDatasource=NO;exports.selectDatasourcesByPath=dg;exports.selectDatasourcesTheme=BA;exports.selectDebuggerChannels=ZO;exports.selectDebuggerData=An;exports.selectDebuggerMeta=kO;exports.selectDebuggerSessions=It;exports.selectDebuggerSessionsCount=jO;exports.selectDebuggers=pA;exports.selectDraftBreakpoints=WO;exports.selectDraftClassBreakpoints=HO;exports.selectExceptions=nA;exports.selectExplorer=hA;exports.selectExpressions=zO;exports.selectExpressionsVariables=tA;exports.selectFlagsByPath=$A;exports.selectGuestPrivilege=SA;exports.selectHasTabs=cA;exports.selectHighlightedLines=qO;exports.selectInspectedCSSClass=MA;exports.selectInspectedDatasource=NA;exports.selectInspector=ks;exports.selectInspectorStateByType=jA;exports.selectIsLoaded=WA;exports.selectMethods=gA;exports.selectMethodsFolder=mg;exports.selectModals=yA;exports.selectMonacoZoom=PA;exports.selectPanelByPath=YI;exports.selectPreferences=RA;exports.selectPreviewedWebformsPaths=uA;exports.selectPrivileges=EA;exports.selectProjectSettings=CA;exports.selectQodly=AA;exports.selectRecentFiles=oA;exports.selectRemoteDebuggerMode=OA;exports.selectRoles=_A;exports.selectRolesAndPrivileges=bA;exports.selectRolesDate=xA;exports.selectRolesFlags=wA;exports.selectRoot=Hr;exports.selectSelectedTab=TA;exports.selectServerSettings=Lc;exports.selectSessionSettings=bg;exports.selectSharedCSS=FA;exports.selectSharedDatasources=pg;exports.selectSourceByPath=VO;exports.selectSourceByThreadId=JO;exports.selectStackFrames=QO;exports.selectStoppedFromDebugSession=YO;exports.selectStylesByPath=DA;exports.selectTab=Nv;exports.selectTabByPath=za;exports.selectTabByReference=Dt;exports.selectTabExtraByPath=lA;exports.selectTabMaxWeight=iA;exports.selectTabs=ia;exports.selectTemplates=wg;exports.selectTemplatesData=LA;exports.selectThreadIdByPath=KO;exports.selectTouchedTabs=Nc;exports.selectTouchedTabsLength=dA;exports.selectWebForms=vA;exports.selectWebFormsFolder=vg;exports.selectWebformNodes=fA;exports.selectWebformStylesByPath=kc;exports.selectWebforms=Ya;exports.serializeModel=JD;exports.setActiveLine=xD;exports.setBreakpointsDecoration=wD;exports.setCallChainVariables=LD;exports.setContent=Pv;exports.setDataSources=CI;exports.setDatasourceEvents=NI;exports.setDatasourcesTheme=dI;exports.setDebuggerMeta=BD;exports.setExpression=PD;exports.setExpressionVariables=kD;exports.setFolderChildren=nD;exports.setModelFlag=tI;exports.setPanelState=DI;exports.setRolesContent=Gc;exports.setSelectedGroup=fI;exports.setSessions=cv;exports.setSetting=Xg;exports.setSettings=zs;exports.setSettingsAsText=JP;exports.setSourceContent=jD;exports.setTabExtra=wI;exports.setTabFlags=Dv;exports.setTabs=EI;exports.setTabsFlags=SI;exports.setTemplateData=Ov;exports.setTemplatesData=Rv;exports.setWebformsFlag=pI;exports.sort=Dg;exports.stateReducer=qv;exports.stateSlice=nl;exports.toAPI=qs;exports.toState=DP;exports.toggleExpandFolder=QP;exports.toggleInspector=cI;exports.togglePermission=AP;exports.togglePrivilegePermission=Ng;exports.toggleTab=zP;exports.tryCloseAllTabs=vD;exports.tryCloseLeftTabs=yD;exports.tryCloseOtherTabs=gD;exports.tryCloseRightTabs=mD;exports.tryCloseTab=Xc;exports.tryEditMethod=oD;exports.tryInjectMethod=iv;exports.tryRenameDataclass=QD;exports.uniquePush=ar;exports.updateExpressionAt=DD;exports.updatePrivileges=Yg;exports.updateRoles=Vg;exports.updateRolesAndPrivileges=zc;exports.updateSession=$D;exports.updateSharedCss=UI;exports.updateSharedDatasources=ol;exports.uploadFile=uD;exports.uploadFileAndGetResponse=iD;exports.useAppDispatch=AO;exports.useAppSelector=Ur;exports.useAttribute=oI;exports.useCatalog=XR;exports.useCollections=nI;exports.useDataclass=aI;exports.useDataclasses=rI;exports.useMethod=$O;exports.useMethods=IO;exports.useModelFlags=iI;exports.useModelProperties=sI;exports.wipeDebuggerSessions=lv;
|
|
129
|
+
Check the top-level render call using <`+J+">.")}return U}}function da(w,U){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var J=Za(U);if(Xa[J])return;Xa[J]=!0;var ie="";w&&w._owner&&w._owner!==hn.current&&(ie=" It was passed a child from "+Pe(w._owner.type)+"."),mr(w),z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',J,ie),mr(null)}}function Qa(w,U){{if(typeof w!="object")return;if(Array.isArray(w))for(var J=0;J<w.length;J++){var ie=w[J];vn(ie)&&da(ie,U)}else if(vn(w))w._store&&(w._store.validated=!0);else if(w){var Ne=Y(w);if(typeof Ne=="function"&&Ne!==w.entries)for(var Le=Ne.call(w),xe;!(xe=Le.next()).done;)vn(xe.value)&&da(xe.value,U)}}}function Xs(w){{var U=w.type;if(U==null||typeof U=="string")return;var J;if(typeof U=="function")J=U.propTypes;else if(typeof U=="object"&&(U.$$typeof===p||U.$$typeof===b))J=U.propTypes;else return;if(J){var ie=Pe(U);Vs(J,w.props,"prop",ie,w)}else if(U.PropTypes!==void 0&&!gn){gn=!0;var Ne=Pe(U);z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ne||"Unknown")}typeof U.getDefaultProps=="function"&&!U.getDefaultProps.isReactClassApproved&&z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Zs(w){{for(var U=Object.keys(w.props),J=0;J<U.length;J++){var ie=U[J];if(ie!=="children"&&ie!=="key"){mr(w),z("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ie),mr(null);break}}w.ref!==null&&(mr(w),z("Invalid attribute `ref` supplied to `React.Fragment`."),mr(null))}}function eo(w,U,J,ie,Ne,Le){{var xe=Te(w);if(!xe){var Ee="";(w===void 0||typeof w=="object"&&w!==null&&Object.keys(w).length===0)&&(Ee+=" 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 ht=Js(Ne);ht?Ee+=ht:Ee+=Ja();var Ze;w===null?Ze="null":Array.isArray(w)?Ze="array":w!==void 0&&w.$$typeof===a?(Ze="<"+(Pe(w.type)||"Unknown")+" />",Ee=" Did you accidentally export a JSX literal instead of a component?"):Ze=typeof w,z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ze,Ee)}var tt=fa(w,U,J,Ne,Le);if(tt==null)return tt;if(xe){var Kt=U.children;if(Kt!==void 0)if(ie)if(Array.isArray(Kt)){for(var zr=0;zr<Kt.length;zr++)Qa(Kt[zr],w);Object.freeze&&Object.freeze(Kt)}else z("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 Qa(Kt,w)}return w===e.Fragment?Zs(tt):Xs(tt),tt}}function to(w,U,J){return eo(w,U,J,!0)}function Qs(w,U,J){return eo(w,U,J,!1)}var ei=Qs,ti=to;e.jsx=ei,e.jsxs=ti}()}(Hu)),Hu}process.env.NODE_ENV==="production"?vc.exports=YI():vc.exports=VI();var KI=vc.exports;const JI=({children:e,store:r})=>KI.jsx(ng,{store:r,children:e});exports.CATALOG_REFRESH_DELAY=As;exports.DEFAULT_CACHE=Oc;exports.EAttributeKind=Lr;exports.EAttributeTypes=Zc;exports.EDebuggerErrorReason=gh;exports.EDebuggerErrorType=ds;exports.EDebuggerState=Mr;exports.EDisplayMode=kc;exports.EPermissionType=Ae;exports.ETooltipBehavior=jc;exports.ExpressionIndex=hh;exports.FLAGS_INIT_STATE=bv;exports.FLAGS_KEYS=Ua;exports.ModalCloseReason=Hc;exports.ModalColor=Tr;exports.ModalIcons=qP;exports.ModalType=jt;exports.ReduxProvider=JI;exports.SETTINGS_TAB_PATH=cn;exports.THEME_CLASSES=bg;exports.WT_FLAGS_KEYS=yv;exports.actionsToPrivs=Pg;exports.addAttribute=dv;exports.addBreakpointDecoration=_D;exports.addComponent=Ev;exports.addCraftedComponent=vI;exports.addDataSource=wI;exports.addDataclass=cv;exports.addDatasource=tl;exports.addEmptyNamespace=NI;exports.addExpression=xD;exports.addIn=bP;exports.addNewFile=Jg;exports.addPermission=xP;exports.addSession=ID;exports.addSharedSource=Nv;exports.addWebFormStyles=RI;exports.allowed=mP;exports.attributeKinds=WD;exports.attributeScopes=GD;exports.attributeTypes=HD;exports.castToFileFolder=nD;exports.changeTabEditor=OI;exports.children=Es;exports.clearBreakpoints=wD;exports.closeAllTabs=Av;exports.closeLeftTabs=Iv;exports.closeModal=NP;exports.closeOthers=Dv;exports.closeRightTabs=Pv;exports.closeSavedTabs=TI;exports.closeTab=al;exports.create=Ag;exports.createModal=Ng;exports.createModelFiles=pc;exports.createNewFile=Jn;exports.createNewFileAndOpen=uD;exports.createNewNode=ts;exports.createRole=FP;exports.createWithResource=EP;exports.dataclassScopes=qD;exports.deleteDatasource=La;exports.deleteFile=hc;exports.deleteFolder=cD;exports.deleteSharedSource=jv;exports.deserializeModel=Sh;exports.duplicateNode=rs;exports.editAttributeProperty=YD;exports.editComponent=Sv;exports.editCraftedComponent=mI;exports.editDataSource=Jc;exports.editDataclassPrimaryKey=gv;exports.editDataclassProperty=VD;exports.editDatasource=rl;exports.editModal=LP;exports.editRole=IP;exports.editSharedSource=Lv;exports.editors=Uh;exports.executeMethod=fD;exports.expandFolder=QP;exports.extensions=Hh;exports.fetchAppSettings=zg;exports.fetchCatalog=An;exports.fetchChanges=nv;exports.fetchCraftedComponents=Cv;exports.fetchFiles=dD;exports.fetchFolderContent=Sr;exports.fetchFolderContentWithoutExpanding=Fa;exports.fetchModel=Qc;exports.fetchRoles=Ss;exports.fetchRolesChanges=Ug;exports.fetchSettings=Yc;exports.fetchSharedCss=os;exports.fetchSharedDatasources=as;exports.fetchTemplate=gI;exports.fetchTemplates=hI;exports.findNodeByPath=ft;exports.findOne=On;exports.findSession=st;exports.findSessionByPath=pg;exports.getCachedState=ta;exports.getCashedPrefrences=Eh;exports.getDebuggerTabName=Ah;exports.getDebuggerTabPath=Pc;exports.getDefaultContent=Xg;exports.getDefaultName=ns;exports.getDictByName=Ig;exports.getEditors=gr;exports.getExtension=Gh;exports.getFilePath=ev;exports.getFileType=Qg;exports.getFilenameFromType=Zg;exports.getGraphData=TP;exports.getInheritedResources=$g;exports.getModalTitle=Ps;exports.getNodeRelativePath=qh;exports.getPrivilegeById=qr;exports.getPromotions=AP;exports.getResourceFromType=Uc;exports.getStore=Uv;exports.indexTypes=zD;exports.initSharedCss=UI;exports.injectContentAtLine=tv;exports.inspect=cI;exports.isJSON=wh;exports.isRelatedAttr=JD;exports.isRelatedEntitiesAttr=ws;exports.isRelatedEntityAttr=Na;exports.isRenameDatasource=bI;exports.isRolesOutdated=qc;exports.isValidPrimaryKey=BD;exports.modelSubject=Zh;exports.openAddFileInput=eD;exports.openFile=$a;exports.openFileAtLine=Vc;exports.openFileAtSelection=rv;exports.openModal=sr;exports.openModel=XD;exports.openRoles=bD;exports.openSettingsTab=AI;exports.openTabUnselected=$v;exports.parents=Us;exports.populateShallow=wP;exports.primaryKeyAttributes=UD;exports.refreshFile=tD;exports.reloadTab=gc;exports.relocateNode=Ma;exports.remove=yP;exports.removeAllExpressions=OD;exports.removeAttribute=pv;exports.removeBreakpointDecoration=ED;exports.removeComponent=wv;exports.removeCraftedComponent=yI;exports.removeDataSource=CI;exports.removeDataclass=fv;exports.removeDebuggerSessionsNotIn=uv;exports.removeExpression=RD;exports.removeFile=dc;exports.removeFileNode=lD;exports.removeFrom=_P;exports.removeModal=Lg;exports.removePermission=CP;exports.removeRole=DP;exports.removeSession=$D;exports.removeSessionByIndex=MD;exports.rename=SP;exports.renameAttribute=hv;exports.renameCollection=vv;exports.renameDataSource=Kc;exports.renameDataclass=lv;exports.renameDatasource=Qn;exports.renameExpression=CD;exports.renameFile=Xn;exports.resetResources=RP;exports.rootReducer=Mv;exports.sanitize=Hs;exports.sanitizePermissions=Dg;exports.sanitizePrivileges=Rg;exports.saveAll=pD;exports.saveExpressions=DD;exports.saveModel=Ts;exports.savePrefrences=_h;exports.saveRole=$P;exports.saveRoles=lc;exports.saveState=bh;exports.saveTab=Zn;exports.selectActiveLine=qO;exports.selectActiveTab=nA;exports.selectAllDatasourcesByPath=NO;exports.selectAppState=lg;exports.selectBreakpoints=kO;exports.selectCSSClassesByPath=DA;exports.selectCallChainVariables=QO;exports.selectCatalog=$c;exports.selectCatalogMethods=PO;exports.selectCatalogState=OO;exports.selectClassBreakpoints=WO;exports.selectClassOffset=tA;exports.selectClasses=vA;exports.selectClassesFolder=mg;exports.selectComponents=Eg;exports.selectComponentsByPath=$O;exports.selectContentByPath=hg;exports.selectCraftedComponent=LA;exports.selectCurrentFrameByThreadId=JO;exports.selectCurrentTab=oA;exports.selectDataclasses=AO;exports.selectDatasource=MO;exports.selectDatasourcesByPath=fg;exports.selectDatasourcesTheme=kA;exports.selectDebuggerChannels=XO;exports.selectDebuggerData=Pn;exports.selectDebuggerMeta=LO;exports.selectDebuggerSessions=It;exports.selectDebuggerSessionsCount=jO;exports.selectDebuggers=dA;exports.selectDraftBreakpoints=BO;exports.selectDraftClassBreakpoints=UO;exports.selectExceptions=rA;exports.selectExplorer=pA;exports.selectExpressions=GO;exports.selectExpressionsVariables=eA;exports.selectFlagsByPath=FA;exports.selectGuestPrivilege=EA;exports.selectHasTabs=uA;exports.selectHighlightedLines=HO;exports.selectInspectedCSSClass=$A;exports.selectInspectedDatasource=MA;exports.selectInspector=js;exports.selectInspectorStateByType=jA;exports.selectIsLoaded=BA;exports.selectMethods=hA;exports.selectMethodsFolder=vg;exports.selectModals=mA;exports.selectMonacoZoom=AA;exports.selectPanelByPath=zI;exports.selectPreferences=CA;exports.selectPreviewedWebformsPaths=iA;exports.selectPrivileges=_A;exports.selectProjectSettings=xA;exports.selectQodly=OA;exports.selectRecentFiles=aA;exports.selectRemoteDebuggerMode=RA;exports.selectRoles=bA;exports.selectRolesAndPrivileges=yA;exports.selectRolesDate=TA;exports.selectRolesFlags=SA;exports.selectRoot=Hr;exports.selectSelectedTab=wA;exports.selectServerSettings=Nc;exports.selectSessionSettings=yg;exports.selectSharedCSS=IA;exports.selectSharedDatasources=dg;exports.selectSourceByPath=YO;exports.selectSourceByThreadId=KO;exports.selectStackFrames=ZO;exports.selectStoppedFromDebugSession=zO;exports.selectStylesByPath=PA;exports.selectTab=Fv;exports.selectTabByPath=Ga;exports.selectTabByReference=Dt;exports.selectTabExtraByPath=cA;exports.selectTabMaxWeight=sA;exports.selectTabs=ia;exports.selectTemplates=Sg;exports.selectTemplatesData=NA;exports.selectThreadIdByPath=VO;exports.selectTouchedTabs=Mc;exports.selectTouchedTabsLength=fA;exports.selectWebForms=gA;exports.selectWebFormsFolder=gg;exports.selectWebformNodes=lA;exports.selectWebformStylesByPath=Lc;exports.selectWebforms=za;exports.serializeModel=KD;exports.setActiveLine=TD;exports.setBreakpointsDecoration=SD;exports.setCallChainVariables=ND;exports.setContent=Rv;exports.setDataSources=xI;exports.setDatasourceEvents=MI;exports.setDatasourcesTheme=fI;exports.setDebuggerMeta=kD;exports.setExpression=AD;exports.setExpressionVariables=LD;exports.setFolderChildren=rD;exports.setModelFlag=eI;exports.setPanelState=PI;exports.setRolesContent=Gc;exports.setSelectedGroup=lI;exports.setSessions=sv;exports.setSetting=Vg;exports.setSettings=zs;exports.setSettingsAsText=KP;exports.setSourceContent=jD;exports.setTabExtra=SI;exports.setTabFlags=Ov;exports.setTabs=_I;exports.setTabsFlags=EI;exports.setTemplateData=xv;exports.setTemplatesData=Tv;exports.setWebformsFlag=dI;exports.sort=Og;exports.stateReducer=Wv;exports.stateSlice=nl;exports.toAPI=qs;exports.toState=PP;exports.toggleExpandFolder=ZP;exports.toggleInspector=uI;exports.togglePermission=OP;exports.togglePrivilegePermission=Fg;exports.toggleTab=GP;exports.tryCloseAllTabs=gD;exports.tryCloseLeftTabs=mD;exports.tryCloseOtherTabs=hD;exports.tryCloseRightTabs=vD;exports.tryCloseTab=Xc;exports.tryEditMethod=aD;exports.tryInjectMethod=av;exports.tryRenameDataclass=ZD;exports.uniquePush=ar;exports.updateExpressionAt=PD;exports.updatePrivileges=qg;exports.updateRoles=Gg;exports.updateRolesAndPrivileges=zc;exports.updateSession=FD;exports.updateSharedCss=WI;exports.updateSharedDatasources=ol;exports.uploadFile=iD;exports.uploadFileAndGetResponse=sD;exports.useAppDispatch=RO;exports.useAppSelector=Ur;exports.useAttribute=aI;exports.useCollections=rI;exports.useDataclass=nI;exports.useDataclasses=tI;exports.useMethod=FO;exports.useMethods=DO;exports.useModelFlags=sI;exports.useModelProperties=oI;exports.wipeDebuggerSessions=iv;
|
|
130
130
|
//# sourceMappingURL=index.cjs.js.map
|