@ws-ui/store 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/index.cjs.js +25 -25
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1299 -1305
- package/dist/index.es.js.map +1 -1
- package/package.json +55 -55
package/dist/index.cjs.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("@ws-ui/shared"),Ke=require("react"),sS=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=gS[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 gr(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)===vS}(e)||Array.isArray(e)||!!e[Fa]||!!(!((r=e.constructor)===null||r===void 0)&&r[Fa])||Os(e)||As(e))}function kr(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:Os(e)?2:As(e)?3:0}function an(e,r){return un(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function ts(e,r){return un(e)===2?e.get(r):e[r]}function Qp(e,r,t){var a=un(e);a===2?e.set(r,t):a===3?e.add(t):e[r]=t}function eh(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function Os(e){return pS&&e instanceof Map}function As(e){return hS&&e instanceof Set}function dt(e){return e.o||e.t}function bc(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=th(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 _c(e,r){return r===void 0&&(r=!1),Ec(e)||jr(e)||!gr(e)||(un(e)>1&&(e.set=e.add=e.clear=e.delete=iS),Object.freeze(e),r&&kr(e,function(t,a){return _c(a,!0)},!0)),e}function iS(){Xe(2)}function Ec(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Er(e){var r=Yu[e];return r||Xe(18,e),r}function Sc(e,r){Yu[e]||(Yu[e]=r)}function ka(){return process.env.NODE_ENV==="production"||ta||Xe(0),ta}function pu(e,r){r&&(Er("Patches"),e.u=[],e.s=[],e.v=r)}function cs(e){zu(e),e.p.forEach(uS),e.p=null}function zu(e){e===ta&&(ta=e.l)}function $d(e){return ta={p:[],l:ta,h:e,m:!0,_:0}}function uS(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&&(cs(r),Xe(4)),gr(e)&&(e=ls(r,e),r.l||fs(r,e)),r.u&&Er("Patches").M(t[ye].t,e,r.u,r.s)):e=ls(r,t,[]),cs(r),r.u&&r.v(r.u,r.s),e!==Tc?e:void 0}function ls(e,r,t){if(Ec(r))return r;var a=r[ye];if(!a)return kr(r,function(l,d){return Md(e,a,r,l,d,t)},!0),r;if(a.A!==e)return r;if(!a.P)return fs(e,a.t,!0),a.t;if(!a.I){a.I=!0,a.A._--;var s=a.i===4||a.i===5?a.o=bc(a.k):a.o,i=s,c=!1;a.i===3&&(i=new Set(s),s.clear(),c=!0),kr(i,function(l,d){return Md(e,a,s,l,d,t,c)}),fs(e,s,!1),t&&e.u&&Er("Patches").N(a,t,e.u,e.s)}return a.o}function Md(e,r,t,a,s,i,c){if(process.env.NODE_ENV!=="production"&&s===t&&Xe(5),jr(s)){var l=ls(e,s,i&&r&&r.i!==3&&!an(r.R,a)?i.concat(a):void 0);if(Qp(t,a,l),!jr(l))return;e.m=!1}else c&&t.add(s);if(gr(s)&&!Ec(s)){if(!e.h.D&&e._<1)return;ls(e,s),r&&r.A.l||fs(e,s)}}function fs(e,r,t){t===void 0&&(t=!1),!e.l&&e.h.D&&e.m&&_c(r,t)}function gu(e,r){var t=e[ye];return(t?dt(t):e)[r]}function Nd(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=bc(e.t))}function Ba(e,r,t){var a=Os(r)?Er("MapSet").F(r,t):As(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=Wa;c&&(d=[l],p=Da);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 cS(e){return jr(e)||Xe(22,e),function r(t){if(!gr(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=Ld(t,i),s.I=!1}else a=Ld(t,i);return kr(a,function(c,l){s&&ts(s.t,c)===l||Qp(a,c,r(l))}),i===3?new Set(a):a}(e)}function Ld(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return bc(e)}function lS(){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),Wa.get(p,c)},set:function(p){var g=this[ye];process.env.NODE_ENV!=="production"&&s(g),Wa.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:!eh(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={};Sc("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=th(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: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)kr(E,function(j){j!==ye&&(b[j]!==void 0||an(b,j)?x[j]||p(E[j]):(x[j]=!0,Lt(m)))}),kr(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 fS(){function e(a){if(!gr(a))return a;if(Array.isArray(a))return a.map(e);if(Os(a))return new Map(Array.from(a.entries()).map(function(c){return[c[0],e(c[1])]}));if(As(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,Fa)&&(s[Fa]=a[Fa]),s}function r(a){return jr(a)?e(a):a}var t="add";Sc("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=ts(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;kr(l.R,function(E,x){var C=ts(m,E),I=ts(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===Tc?void 0:s}),c.push({op:"replace",path:[],value:a})}})}function dS(){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(gr(d)){var p=Ba(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,kr(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||!gr(m)||m!==g.t.get(p))return m;var b=Ba(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={})[Vo]=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={})[Vo]=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[Vo]=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[Vo]=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}();Sc("MapSet",{F:function(l,d){return new i(l,d)},T:function(l,d){return new c(l,d)}})}var jd,ta,wc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",pS=typeof Map<"u",hS=typeof Set<"u",kd=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Tc=wc?Symbol.for("immer-nothing"):((jd={})["immer-nothing"]=!0,jd),Fa=wc?Symbol.for("immer-draftable"):"__$immer_draftable",ye=wc?Symbol.for("immer-state"):"__$immer_state",Vo=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",gS={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"},vS=""+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,th=Object.getOwnPropertyDescriptors||function(e){var r={};return Kn(e).forEach(function(t){r[t]=Object.getOwnPropertyDescriptor(e,t)}),r},Yu={},Wa={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=Nd(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||!gr(a)?a:a===gu(e.t,r)?(vu(e),e.o[r]=Ba(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=Nd(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(eh(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)}},Da={};kr(Wa,function(e,r){Da[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),Da.deleteProperty=function(e,r){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(r))&&Xe(13),Da.set.call(this,e,r,void 0)},Da.set=function(e,r,t){return process.env.NODE_ENV!=="production"&&r!=="length"&&isNaN(parseInt(r))&&Xe(14),Wa.set.call(this,e[0],r,t,e[0])};var mS=function(){function e(t){var a=this;this.O=kd,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),gr(s)){var g=$d(a),m=Ba(a,s,void 0),b=!0;try{p=i(m),b=!1}finally{b?cs(g):zu(g)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(C){return pu(g,c),hu(C,g)},function(C){throw cs(g),C}):(pu(g,c),hu(p,g))}if(!s||typeof s!="object"){if((p=i(s))===void 0&&(p=s),p===Tc&&(p=void 0),a.D&&_c(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){gr(t)||Xe(8),jr(t)&&(t=cS(t));var a=$d(this),s=Ba(this,t,void 0);return s[ye].C=!0,zu(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&&!kd&&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}(),Gt=new mS,rs=Gt.produce;Gt.produceWithPatches.bind(Gt);Gt.setAutoFreeze.bind(Gt);Gt.setUseProxies.bind(Gt);Gt.applyPatches.bind(Gt);Gt.createDraft.bind(Gt);Gt.finishDraft.bind(Gt);function Ua(e){"@babel/helpers - typeof";return Ua=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},Ua(e)}function yS(e,r){if(Ua(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r||"default");if(Ua(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function bS(e){var r=yS(e,"string");return Ua(r)==="symbol"?r:String(r)}function _S(e,r,t){return r=bS(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Bd(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 Wd(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Bd(Object(t),!0).forEach(function(a){_S(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Bd(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 Ud=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 rh(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 ES(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(TS(e))return"date";if(wS(e))return"error";var t=SS(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 SS(e){return typeof e.constructor=="function"?e.constructor.name:null}function wS(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function TS(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=ES(e)),r}function nh(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(nh)(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(!rh(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[Ud]=function(){return this},C}return b({type:Rn.INIT}),a={dispatch:b,subscribe:m,getState:g,replaceReducer:E},a[Ud]=x,a}function Hd(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function xS(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(!rh(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 CS(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 ah(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"&&Hd('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{CS(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=xS(p,t,g,c);m&&Hd(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 ds(){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 RS(){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=ds.apply(void 0,l)(s.dispatch),Wd(Wd({},s),{},{dispatch:i})}}}var ps="NOT_FOUND";function OS(e){var r;return{get:function(a){return r&&e(r.key,a)?r.value:ps},put:function(a,s){r={key:a,value:s}},getEntries:function(){return r?[r]:[]},clear:function(){r=void 0}}}function AS(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 ps}function s(l,d){a(l)===ps&&(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 PS=function(r,t){return r===t};function DS(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 IS(e,r){var t=typeof r=="object"?r:{equalityCheck:r},a=t.equalityCheck,s=a===void 0?PS:a,i=t.maxSize,c=i===void 0?1:i,l=t.resultEqualityCheck,d=DS(s),p=c===1?OS(d):AS(c,d);function g(){var m=p.get(arguments);if(m===ps){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 FS(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 $S(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=FS(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=$S(IS);function oh(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 sh=oh();sh.withExtraArgument=oh;const qd=sh;var MS=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)}}(),NS=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}}},hs=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},LS=Object.defineProperty,jS=Object.defineProperties,kS=Object.getOwnPropertyDescriptors,Gd=Object.getOwnPropertySymbols,BS=Object.prototype.hasOwnProperty,WS=Object.prototype.propertyIsEnumerable,zd=function(e,r,t){return r in e?LS(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t},on=function(e,r){for(var t in r||(r={}))BS.call(r,t)&&zd(e,t,r[t]);if(Gd)for(var a=0,s=Gd(r);a<s.length;a++){var t=s[a];WS.call(r,t)&&zd(e,t,r[t])}return e},yu=function(e,r){return jS(e,kS(r))},US=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())})},HS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ds:ds.apply(null,arguments)};function ih(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 uh(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"),sS=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=gS[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 gr(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)===vS}(e)||Array.isArray(e)||!!e[Fa]||!!(!((r=e.constructor)===null||r===void 0)&&r[Fa])||Os(e)||As(e))}function kr(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:Os(e)?2:As(e)?3:0}function an(e,r){return un(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function ts(e,r){return un(e)===2?e.get(r):e[r]}function Zp(e,r,t){var a=un(e);a===2?e.set(r,t):a===3?e.add(t):e[r]=t}function Qp(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function Os(e){return pS&&e instanceof Map}function As(e){return hS&&e instanceof Set}function dt(e){return e.o||e.t}function bc(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=eh(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 _c(e,r){return r===void 0&&(r=!1),Ec(e)||jr(e)||!gr(e)||(un(e)>1&&(e.set=e.add=e.clear=e.delete=iS),Object.freeze(e),r&&kr(e,function(t,a){return _c(a,!0)},!0)),e}function iS(){Xe(2)}function Ec(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Er(e){var r=Yu[e];return r||Xe(18,e),r}function Sc(e,r){Yu[e]||(Yu[e]=r)}function ka(){return process.env.NODE_ENV==="production"||ta||Xe(0),ta}function pu(e,r){r&&(Er("Patches"),e.u=[],e.s=[],e.v=r)}function cs(e){zu(e),e.p.forEach(uS),e.p=null}function zu(e){e===ta&&(ta=e.l)}function Fd(e){return ta={p:[],l:ta,h:e,m:!0,_:0}}function uS(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&&(cs(r),Xe(4)),gr(e)&&(e=ls(r,e),r.l||fs(r,e)),r.u&&Er("Patches").M(t[ye].t,e,r.u,r.s)):e=ls(r,t,[]),cs(r),r.u&&r.v(r.u,r.s),e!==Tc?e:void 0}function ls(e,r,t){if(Ec(r))return r;var a=r[ye];if(!a)return kr(r,function(l,d){return $d(e,a,r,l,d,t)},!0),r;if(a.A!==e)return r;if(!a.P)return fs(e,a.t,!0),a.t;if(!a.I){a.I=!0,a.A._--;var s=a.i===4||a.i===5?a.o=bc(a.k):a.o,i=s,c=!1;a.i===3&&(i=new Set(s),s.clear(),c=!0),kr(i,function(l,d){return $d(e,a,s,l,d,t,c)}),fs(e,s,!1),t&&e.u&&Er("Patches").N(a,t,e.u,e.s)}return a.o}function $d(e,r,t,a,s,i,c){if(process.env.NODE_ENV!=="production"&&s===t&&Xe(5),jr(s)){var l=ls(e,s,i&&r&&r.i!==3&&!an(r.R,a)?i.concat(a):void 0);if(Zp(t,a,l),!jr(l))return;e.m=!1}else c&&t.add(s);if(gr(s)&&!Ec(s)){if(!e.h.D&&e._<1)return;ls(e,s),r&&r.A.l||fs(e,s)}}function fs(e,r,t){t===void 0&&(t=!1),!e.l&&e.h.D&&e.m&&_c(r,t)}function gu(e,r){var t=e[ye];return(t?dt(t):e)[r]}function Md(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=bc(e.t))}function Ba(e,r,t){var a=Os(r)?Er("MapSet").F(r,t):As(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=Wa;c&&(d=[l],p=Da);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 cS(e){return jr(e)||Xe(22,e),function r(t){if(!gr(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=Nd(t,i),s.I=!1}else a=Nd(t,i);return kr(a,function(c,l){s&&ts(s.t,c)===l||Zp(a,c,r(l))}),i===3?new Set(a):a}(e)}function Nd(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return bc(e)}function lS(){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),Wa.get(p,c)},set:function(p){var g=this[ye];process.env.NODE_ENV!=="production"&&s(g),Wa.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:!Qp(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={};Sc("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=eh(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: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)kr(E,function(j){j!==ye&&(b[j]!==void 0||an(b,j)?x[j]||p(E[j]):(x[j]=!0,Lt(m)))}),kr(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 fS(){function e(a){if(!gr(a))return a;if(Array.isArray(a))return a.map(e);if(Os(a))return new Map(Array.from(a.entries()).map(function(c){return[c[0],e(c[1])]}));if(As(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,Fa)&&(s[Fa]=a[Fa]),s}function r(a){return jr(a)?e(a):a}var t="add";Sc("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=ts(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;kr(l.R,function(E,x){var C=ts(m,E),I=ts(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===Tc?void 0:s}),c.push({op:"replace",path:[],value:a})}})}function dS(){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(gr(d)){var p=Ba(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,kr(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||!gr(m)||m!==g.t.get(p))return m;var b=Ba(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={})[Vo]=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={})[Vo]=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[Vo]=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[Vo]=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}();Sc("MapSet",{F:function(l,d){return new i(l,d)},T:function(l,d){return new c(l,d)}})}var Ld,ta,wc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",pS=typeof Map<"u",hS=typeof Set<"u",jd=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Tc=wc?Symbol.for("immer-nothing"):((Ld={})["immer-nothing"]=!0,Ld),Fa=wc?Symbol.for("immer-draftable"):"__$immer_draftable",ye=wc?Symbol.for("immer-state"):"__$immer_state",Vo=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",gS={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"},vS=""+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,eh=Object.getOwnPropertyDescriptors||function(e){var r={};return Kn(e).forEach(function(t){r[t]=Object.getOwnPropertyDescriptor(e,t)}),r},Yu={},Wa={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=Md(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||!gr(a)?a:a===gu(e.t,r)?(vu(e),e.o[r]=Ba(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=Md(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(Qp(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)}},Da={};kr(Wa,function(e,r){Da[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),Da.deleteProperty=function(e,r){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(r))&&Xe(13),Da.set.call(this,e,r,void 0)},Da.set=function(e,r,t){return process.env.NODE_ENV!=="production"&&r!=="length"&&isNaN(parseInt(r))&&Xe(14),Wa.set.call(this,e[0],r,t,e[0])};var mS=function(){function e(t){var a=this;this.O=jd,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),gr(s)){var g=Fd(a),m=Ba(a,s,void 0),b=!0;try{p=i(m),b=!1}finally{b?cs(g):zu(g)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(C){return pu(g,c),hu(C,g)},function(C){throw cs(g),C}):(pu(g,c),hu(p,g))}if(!s||typeof s!="object"){if((p=i(s))===void 0&&(p=s),p===Tc&&(p=void 0),a.D&&_c(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){gr(t)||Xe(8),jr(t)&&(t=cS(t));var a=Fd(this),s=Ba(this,t,void 0);return s[ye].C=!0,zu(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&&!jd&&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}(),Gt=new mS,rs=Gt.produce;Gt.produceWithPatches.bind(Gt);Gt.setAutoFreeze.bind(Gt);Gt.setUseProxies.bind(Gt);Gt.applyPatches.bind(Gt);Gt.createDraft.bind(Gt);Gt.finishDraft.bind(Gt);function Ua(e){"@babel/helpers - typeof";return Ua=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},Ua(e)}function yS(e,r){if(Ua(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r||"default");if(Ua(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function bS(e){var r=yS(e,"string");return Ua(r)==="symbol"?r:String(r)}function _S(e,r,t){return r=bS(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 Bd(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){_S(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 Wd=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 th(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 ES(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(TS(e))return"date";if(wS(e))return"error";var t=SS(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 SS(e){return typeof e.constructor=="function"?e.constructor.name:null}function wS(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function TS(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=ES(e)),r}function rh(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(rh)(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(!th(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[Wd]=function(){return this},C}return b({type:Rn.INIT}),a={dispatch:b,subscribe:m,getState:g,replaceReducer:E},a[Wd]=x,a}function Ud(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function xS(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(!th(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 CS(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 nh(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"&&Ud('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{CS(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=xS(p,t,g,c);m&&Ud(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 ds(){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 RS(){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=ds.apply(void 0,l)(s.dispatch),Bd(Bd({},s),{},{dispatch:i})}}}var ps="NOT_FOUND";function OS(e){var r;return{get:function(a){return r&&e(r.key,a)?r.value:ps},put:function(a,s){r={key:a,value:s}},getEntries:function(){return r?[r]:[]},clear:function(){r=void 0}}}function AS(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 ps}function s(l,d){a(l)===ps&&(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 PS=function(r,t){return r===t};function DS(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 IS(e,r){var t=typeof r=="object"?r:{equalityCheck:r},a=t.equalityCheck,s=a===void 0?PS:a,i=t.maxSize,c=i===void 0?1:i,l=t.resultEqualityCheck,d=DS(s),p=c===1?OS(d):AS(c,d);function g(){var m=p.get(arguments);if(m===ps){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 FS(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 $S(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=FS(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=$S(IS);function ah(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 oh=ah();oh.withExtraArgument=ah;const Hd=oh;var MS=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)}}(),NS=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}}},hs=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},LS=Object.defineProperty,jS=Object.defineProperties,kS=Object.getOwnPropertyDescriptors,qd=Object.getOwnPropertySymbols,BS=Object.prototype.hasOwnProperty,WS=Object.prototype.propertyIsEnumerable,Gd=function(e,r,t){return r in e?LS(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t},on=function(e,r){for(var t in r||(r={}))BS.call(r,t)&&Gd(e,t,r[t]);if(qd)for(var a=0,s=qd(r);a<s.length;a++){var t=s[a];WS.call(r,t)&&Gd(e,t,r[t])}return e},yu=function(e,r){return jS(e,kS(r))},US=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())})},HS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ds:ds.apply(null,arguments)};function sh(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 ih(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 qS=function(e){MS(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,hs([void 0],t[0].concat(this)))):new(r.bind.apply(r,hs([void 0],t.concat(this))))},r}(Array),GS=process.env.NODE_ENV==="production",
|
|
3
|
+
It is disabled in production builds, so you don't need to worry about that.`)}}}var qS=function(e){MS(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,hs([void 0],t[0].concat(this)))):new(r.bind.apply(r,hs([void 0],t.concat(this))))},r}(Array),GS=process.env.NODE_ENV==="production",zd="Invariant failed";function Yd(e,r){if(!e)throw GS?new Error(zd):new Error(zd+": "+(r||""))}function zS(e,r,t,a){return JSON.stringify(e,YS(r,a),t)}function YS(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 VS(e){return typeof e!="object"||e===null||typeof e>"u"||Object.isFrozen(e)}function KS(e,r,t){var a=uh(e,r,t);return{detectMutations:function(){return ch(e,r,a,t)}}}function uh(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]=uh(e,r,t[i],c))}}return s}function ch(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=ch(e,r,t.children[p],a[p],l,g);if(m.wasMutated)return m}}return{wasMutated:!1}}function JS(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(d){return function(p){return d(p)}}};var r=e.isImmutable,t=r===void 0?VS:r,a=e.ignoredPaths,s=e.warnAfter,i=s===void 0?32:s,c=e.ignore;a=a||c;var l=KS.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=ih(i,"ImmutableStateInvariantMiddleware");C.measureTime(function(){g=p(),b=m.detectMutations(),m=l(g),Yd(!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&&Yd(!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 "+zS(x)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),C.warnIfExceeded(),I}}}}function lh(e){var r=typeof e;return r==="undefined"||e===null||r==="string"||r==="boolean"||r==="number"||Array.isArray(e)||sh(e)}function Vu(e,r,t,a,s){r===void 0&&(r=""),t===void 0&&(t=lh),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=Vu(b,E,t,a,s),i))return i}}return!1}function XS(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?lh: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=ih(m,"SerializableStateInvariantMiddleware");P.measureTime(function(){var M=Vu(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
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=Vu(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()),k}}}}function bu(e){return typeof e=="boolean"}function ZS(){return function(r){return QS(r)}}function QS(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 qS;if(t&&(bu(t)?l.push(qd):l.push(qd.withExtraArgument(t.extraArgument))),process.env.NODE_ENV!=="production"){if(s){var d={};bu(s)||(d=s),l.unshift(JS(d))}if(c){var p={};bu(c)||(p=c),l.push(XS(p))}}return l}var _u=process.env.NODE_ENV==="production";function ew(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(ih(s))E=ah(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=RS.apply(void 0,x),I=ds;d&&(I=HS(on({trace:!_u},typeof d=="object"&&d)));var P=[C];Array.isArray(b)?P=hs([C],b):typeof b=="function"&&(P=b(P));var k=I.apply(void 0,P);return nh(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 dh(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 tw(e){return typeof e=="function"}function rw(e,r,t,a){t===void 0&&(t=[]);var s=typeof r=="function"?dh(r):[r,t,a],i=s[0],c=s[1],l=s[2],d;if(tw(e))d=function(){return rs(e(),function(){})};else{var p=rs(e,function(){});d=function(){return p}}function g(m,b){m===void 0&&(m=d());var E=hs([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(gr(x))return rs(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 nw(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:rs(e.initialState,function(){}),a=e.reducers||{},s=Object.keys(a),i={},c={},l={};s.forEach(function(g){var m=a[g],b=nw(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"?dh(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 rw(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 aw="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",xc=function(e){e===void 0&&(e=21);for(var r="",t=e;t--;)r+=aw[Math.random()*64|0];return r},ow=["name","message","stack","code"],Eu=function(){function e(r,t){this.payload=r,this.meta=t}return e}(),Kd=function(){function e(r,t){this.payload=r,this.meta=t}return e}(),sw=function(e){if(typeof e=="object"&&e!==null){for(var r={},t=0,a=ow;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||sw)(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):xc(),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 US(this,null,function(){var j,O,Y,H,z,te;return NS(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}),uw(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 Kd(Te,it)}})).then(function(Te){if(Te instanceof Eu)throw Te;return Te instanceof Kd?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:k,requestId:E,arg:p,unwrap:function(){return M.then(iw)}})}}return Object.assign(d,{pending:s,rejected:i,fulfilled:a,typePrefix:e})}function iw(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function uw(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var cw=function(e){return e&&typeof e.match=="function"},lw=function(e,r){return cw(e)?e.match(r):e(r)};function pr(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return function(t){return e.some(function(a){return lw(a,t)})}}function Cc(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 Rc(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function ph(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return Cc(t,["pending"])}:Rc(e)?function(t){var a=e.map(function(i){return i.pending}),s=pr.apply(void 0,a);return s(t)}:ph()(e[0])}function hh(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return Cc(t,["rejected"])}:Rc(e)?function(t){var a=e.map(function(i){return i.rejected}),s=pr.apply(void 0,a);return s(t)}:hh()(e[0])}function gh(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return Cc(t,["fulfilled"])}:Rc(e)?function(t){var a=e.map(function(i){return i.fulfilled}),s=pr.apply(void 0,a);return s(t)}:gh()(e[0])}lS();var $r=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ps(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function fw(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 dw(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var qa=dw,pw=typeof $r=="object"&&$r&&$r.Object===Object&&$r,vh=pw,hw=vh,gw=typeof self=="object"&&self&&self.Object===Object&&self,vw=hw||gw||Function("return this")(),wr=vw,mw=wr,yw=function(){return mw.Date.now()},bw=yw,_w=/\s/;function Ew(e){for(var r=e.length;r--&&_w.test(e.charAt(r)););return r}var Sw=Ew,ww=Sw,Tw=/^\s+/;function xw(e){return e&&e.slice(0,ww(e)+1).replace(Tw,"")}var Cw=xw,Rw=wr,Ow=Rw.Symbol,Oc=Ow,Jd=Oc,mh=Object.prototype,Aw=mh.hasOwnProperty,Pw=mh.toString,Pa=Jd?Jd.toStringTag:void 0;function Dw(e){var r=Aw.call(e,Pa),t=e[Pa];try{e[Pa]=void 0;var a=!0}catch{}var s=Pw.call(e);return a&&(r?e[Pa]=t:delete e[Pa]),s}var Iw=Dw,Fw=Object.prototype,$w=Fw.toString;function Mw(e){return $w.call(e)}var Nw=Mw,Xd=Oc,Lw=Iw,jw=Nw,kw="[object Null]",Bw="[object Undefined]",Zd=Xd?Xd.toStringTag:void 0;function Ww(e){return e==null?e===void 0?Bw:kw:Zd&&Zd in Object(e)?Lw(e):jw(e)}var Ds=Ww;function Uw(e){return e!=null&&typeof e=="object"}var Ac=Uw,Hw=Ds,qw=Ac,Gw="[object Symbol]";function zw(e){return typeof e=="symbol"||qw(e)&&Hw(e)==Gw}var Yw=zw,Vw=Cw,Qd=qa,Kw=Yw,ep=0/0,Jw=/^[-+]0x[0-9a-f]+$/i,Xw=/^0b[01]+$/i,Zw=/^0o[0-7]+$/i,Qw=parseInt;function eT(e){if(typeof e=="number")return e;if(Kw(e))return ep;if(Qd(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=Qd(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=Vw(e);var t=Xw.test(e);return t||Zw.test(e)?Qw(e.slice(2),t?2:8):Jw.test(e)?ep:+e}var tT=eT,rT=qa,Su=bw,tp=tT,nT="Expected a function",aT=Math.max,oT=Math.min;function sT(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(nT);r=tp(r)||0,rT(t)&&(g=!!t.leading,m="maxWait"in t,i=m?aT(tp(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?oT(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 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(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=j,O}var iT=sT,uT=iT,cT=qa,lT="Expected a function";function fT(e,r,t){var a=!0,s=!0;if(typeof e!="function")throw new TypeError(lT);return cT(t)&&(a="leading"in t?!!t.leading:a,s="trailing"in t?!!t.trailing:s),uT(e,r,{leading:a,maxWait:r,trailing:s})}var dT=fT;const pT=Ps(dT);var yh=(e=>(e[e.First=0]="First",e[e.Last=-1]="Last",e))(yh||{}),Nr=(e=>(e.ATTACHED="attached",e.DETACHED="detached",e.ERROR="error",e))(Nr||{}),gs=(e=>(e.SOCKET_ERROR="socket-error",e.SOCKET_CLOSURE="socket-closure",e))(gs||{}),bh=(e=>(e.NOT_STARTED="remote debugger not started",e.ALREADY_IN_USE="already in use",e.TIMEOUT="timeout",e))(bh||{});const Pc={tabs:[],activeTab:"",recent:[],roles:{roles:{},privileges:{},flags:{touched:!1},selectedTab:"roles"},sharedCSS:{state:"loading",styles:[]},debugger:{meta:{state:Nr.DETACHED},list:[],sessions:[],expressions:[]},webforms:{templates:{selectedGroup:"",data:[]},components:[],inspector:{css:{active:!1},datasource:{active:!1}},datasources:{theme:"grey"},flags:{"sidebar.section.resizable":!0}}},_h="4DWS_PREFS",Eh=e=>`APP_STATE_${e}`;function Sh(e){var r,t;try{const a=((t=(r=window==null?void 0:window.$$datastores)==null?void 0:r.ds)==null?void 0:t.getBaseID())||"",s=JSON.stringify(e);localStorage.setItem(Eh(a),s)}catch(a){console.error(a)}}function wh(e){try{const r=JSON.stringify(e);localStorage.setItem(_h,r)}catch(r){console.error(r)}}function Th(){try{const e=localStorage.getItem(_h);if(e)return JSON.parse(e)}catch(e){console.error(e)}}function na(){var t,a;const e=((a=(t=window==null?void 0:window.$$datastores)==null?void 0:t.ds)==null?void 0:a.getBaseID())||"",r=localStorage.getItem(Eh(e));if(r){const s=JSON.parse(r);return s.tabs=s.tabs.map(i=>({...i,flags:{...i.flags,enabled:!0}})),s}return Pc}function Is(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 xh=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 Ch(e){return e?["json","4dmodel","webform","mform"].includes(e.toLowerCase()):!1}function hT(){this.__data__=[],this.size=0}var gT=hT;function vT(e,r){return e===r||e!==e&&r!==r}var mT=vT,yT=mT;function bT(e,r){for(var t=e.length;t--;)if(yT(e[t][0],r))return t;return-1}var Fs=bT,_T=Fs,ET=Array.prototype,ST=ET.splice;function wT(e){var r=this.__data__,t=_T(r,e);if(t<0)return!1;var a=r.length-1;return t==a?r.pop():ST.call(r,t,1),--this.size,!0}var TT=wT,xT=Fs;function CT(e){var r=this.__data__,t=xT(r,e);return t<0?void 0:r[t][1]}var RT=CT,OT=Fs;function AT(e){return OT(this.__data__,e)>-1}var PT=AT,DT=Fs;function IT(e,r){var t=this.__data__,a=DT(t,e);return a<0?(++this.size,t.push([e,r])):t[a][1]=r,this}var FT=IT,$T=gT,MT=TT,NT=RT,LT=PT,jT=FT;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=$T;aa.prototype.delete=MT;aa.prototype.get=NT;aa.prototype.has=LT;aa.prototype.set=jT;var $s=aa,kT=$s;function BT(){this.__data__=new kT,this.size=0}var WT=BT;function UT(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}var HT=UT;function qT(e){return this.__data__.get(e)}var GT=qT;function zT(e){return this.__data__.has(e)}var YT=zT,VT=Ds,KT=qa,JT="[object AsyncFunction]",XT="[object Function]",ZT="[object GeneratorFunction]",QT="[object Proxy]";function ex(e){if(!KT(e))return!1;var r=VT(e);return r==XT||r==ZT||r==JT||r==QT}var tx=ex,rx=wr,nx=rx["__core-js_shared__"],ax=nx,wu=ax,rp=function(){var e=/[^.]+$/.exec(wu&&wu.keys&&wu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ox(e){return!!rp&&rp in e}var sx=ox,ix=Function.prototype,ux=ix.toString;function cx(e){if(e!=null){try{return ux.call(e)}catch{}try{return e+""}catch{}}return""}var Rh=cx,lx=tx,fx=sx,dx=qa,px=Rh,hx=/[\\^$.*+?()[\]{}|]/g,gx=/^\[object .+?Constructor\]$/,vx=Function.prototype,mx=Object.prototype,yx=vx.toString,bx=mx.hasOwnProperty,_x=RegExp("^"+yx.call(bx).replace(hx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ex(e){if(!dx(e)||fx(e))return!1;var r=lx(e)?_x:gx;return r.test(px(e))}var Sx=Ex;function wx(e,r){return e==null?void 0:e[r]}var Tx=wx,xx=Sx,Cx=Tx;function Rx(e,r){var t=Cx(e,r);return xx(t)?t:void 0}var oa=Rx,Ox=oa,Ax=wr,Px=Ox(Ax,"Map"),Dc=Px,Dx=oa,Ix=Dx(Object,"create"),Ms=Ix,np=Ms;function Fx(){this.__data__=np?np(null):{},this.size=0}var $x=Fx;function Mx(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var Nx=Mx,Lx=Ms,jx="__lodash_hash_undefined__",kx=Object.prototype,Bx=kx.hasOwnProperty;function Wx(e){var r=this.__data__;if(Lx){var t=r[e];return t===jx?void 0:t}return Bx.call(r,e)?r[e]:void 0}var Ux=Wx,Hx=Ms,qx=Object.prototype,Gx=qx.hasOwnProperty;function zx(e){var r=this.__data__;return Hx?r[e]!==void 0:Gx.call(r,e)}var Yx=zx,Vx=Ms,Kx="__lodash_hash_undefined__";function Jx(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=Vx&&r===void 0?Kx:r,this}var Xx=Jx,Zx=$x,Qx=Nx,eC=Ux,tC=Yx,rC=Xx;function sa(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var a=e[r];this.set(a[0],a[1])}}sa.prototype.clear=Zx;sa.prototype.delete=Qx;sa.prototype.get=eC;sa.prototype.has=tC;sa.prototype.set=rC;var nC=sa,ap=nC,aC=$s,oC=Dc;function sC(){this.size=0,this.__data__={hash:new ap,map:new(oC||aC),string:new ap}}var iC=sC;function uC(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var cC=uC,lC=cC;function fC(e,r){var t=e.__data__;return lC(r)?t[typeof r=="string"?"string":"hash"]:t.map}var Ns=fC,dC=Ns;function pC(e){var r=dC(this,e).delete(e);return this.size-=r?1:0,r}var hC=pC,gC=Ns;function vC(e){return gC(this,e).get(e)}var mC=vC,yC=Ns;function bC(e){return yC(this,e).has(e)}var _C=bC,EC=Ns;function SC(e,r){var t=EC(this,e),a=t.size;return t.set(e,r),this.size+=t.size==a?0:1,this}var wC=SC,TC=iC,xC=hC,CC=mC,RC=_C,OC=wC;function ia(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])}}ia.prototype.clear=TC;ia.prototype.delete=xC;ia.prototype.get=CC;ia.prototype.has=RC;ia.prototype.set=OC;var Oh=ia,AC=$s,PC=Dc,DC=Oh,IC=200;function FC(e,r){var t=this.__data__;if(t instanceof AC){var a=t.__data__;if(!PC||a.length<IC-1)return a.push([e,r]),this.size=++t.size,this;t=this.__data__=new DC(a)}return t.set(e,r),this.size=t.size,this}var $C=FC,MC=$s,NC=WT,LC=HT,jC=GT,kC=YT,BC=$C;function Ga(e){var r=this.__data__=new MC(e);this.size=r.size}Ga.prototype.clear=NC;Ga.prototype.delete=LC;Ga.prototype.get=jC;Ga.prototype.has=kC;Ga.prototype.set=BC;var WC="__lodash_hash_undefined__";function UC(e){return this.__data__.set(e,WC),this}var HC=UC;function qC(e){return this.__data__.has(e)}var GC=qC,zC=Oh,YC=HC,VC=GC;function Ku(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new zC;++r<t;)this.add(e[r])}Ku.prototype.add=Ku.prototype.push=YC;Ku.prototype.has=VC;var KC=wr;KC.Uint8Array;var op=Oc,sp=op?op.prototype:void 0;sp&&sp.valueOf;var JC=Ds,XC=Ac,ZC="[object Arguments]";function QC(e){return XC(e)&&JC(e)==ZC}var eR=QC,ip=eR,tR=Ac,Ah=Object.prototype,rR=Ah.hasOwnProperty,nR=Ah.propertyIsEnumerable;ip(function(){return arguments}());var vs={exports:{}};function aR(){return!1}var oR=aR;vs.exports;(function(e,r){var t=wr,a=oR,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})(vs,vs.exports);vs.exports;var ms={exports:{}};ms.exports;(function(e,r){var t=vh,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})(ms,ms.exports);var sR=ms.exports,up=sR;up&&up.isTypedArray;var iR=oa,uR=wr,cR=iR(uR,"DataView"),lR=cR,fR=oa,dR=wr,pR=fR(dR,"Promise"),hR=pR,gR=oa,vR=wr,mR=gR(vR,"Set"),yR=mR,bR=oa,_R=wr,ER=bR(_R,"WeakMap"),SR=ER,Ju=lR,Xu=Dc,Zu=hR,Qu=yR,ec=SR,Ph=Ds,ua=Rh,cp="[object Map]",wR="[object Object]",lp="[object Promise]",fp="[object Set]",dp="[object WeakMap]",pp="[object DataView]",TR=ua(Ju),xR=ua(Xu),CR=ua(Zu),RR=ua(Qu),OR=ua(ec),Gn=Ph;(Ju&&Gn(new Ju(new ArrayBuffer(1)))!=pp||Xu&&Gn(new Xu)!=cp||Zu&&Gn(Zu.resolve())!=lp||Qu&&Gn(new Qu)!=fp||ec&&Gn(new ec)!=dp)&&(Gn=function(e){var r=Ph(e),t=r==wR?e.constructor:void 0,a=t?ua(t):"";if(a)switch(a){case TR:return pp;case xR:return cp;case CR:return lp;case RR:return fp;case OR:return dp}return r});const AR="ROOT";dS(),fS();var hp;(function(e){e[e.HandlerDisabled=0]="HandlerDisabled",e[e.HandlerEnabled=1]="HandlerEnabled"})(hp||(hp={}));var ys={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 bu(e){return typeof e=="boolean"}function ZS(){return function(r){return QS(r)}}function QS(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 qS;if(t&&(bu(t)?l.push(Hd):l.push(Hd.withExtraArgument(t.extraArgument))),process.env.NODE_ENV!=="production"){if(s){var d={};bu(s)||(d=s),l.unshift(JS(d))}if(c){var p={};bu(c)||(p=c),l.push(XS(p))}}return l}var _u=process.env.NODE_ENV==="production";function ew(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(sh(s))E=nh(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=RS.apply(void 0,x),I=ds;d&&(I=HS(on({trace:!_u},typeof d=="object"&&d)));var P=[C];Array.isArray(b)?P=hs([C],b):typeof b=="function"&&(P=b(P));var k=I.apply(void 0,P);return rh(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 fh(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 tw(e){return typeof e=="function"}function rw(e,r,t,a){t===void 0&&(t=[]);var s=typeof r=="function"?fh(r):[r,t,a],i=s[0],c=s[1],l=s[2],d;if(tw(e))d=function(){return rs(e(),function(){})};else{var p=rs(e,function(){});d=function(){return p}}function g(m,b){m===void 0&&(m=d());var E=hs([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(gr(x))return rs(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 nw(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:rs(e.initialState,function(){}),a=e.reducers||{},s=Object.keys(a),i={},c={},l={};s.forEach(function(g){var m=a[g],b=nw(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"?fh(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 rw(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 aw="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",xc=function(e){e===void 0&&(e=21);for(var r="",t=e;t--;)r+=aw[Math.random()*64|0];return r},ow=["name","message","stack","code"],Eu=function(){function e(r,t){this.payload=r,this.meta=t}return e}(),Vd=function(){function e(r,t){this.payload=r,this.meta=t}return e}(),sw=function(e){if(typeof e=="object"&&e!==null){for(var r={},t=0,a=ow;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||sw)(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):xc(),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 US(this,null,function(){var j,O,Y,H,z,te;return NS(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}),uw(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 Vd(Te,it)}})).then(function(Te){if(Te instanceof Eu)throw Te;return Te instanceof Vd?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:k,requestId:E,arg:p,unwrap:function(){return M.then(iw)}})}}return Object.assign(d,{pending:s,rejected:i,fulfilled:a,typePrefix:e})}function iw(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function uw(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var cw=function(e){return e&&typeof e.match=="function"},lw=function(e,r){return cw(e)?e.match(r):e(r)};function pr(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return function(t){return e.some(function(a){return lw(a,t)})}}function Cc(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 Rc(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function dh(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return Cc(t,["pending"])}:Rc(e)?function(t){var a=e.map(function(i){return i.pending}),s=pr.apply(void 0,a);return s(t)}:dh()(e[0])}function ph(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return Cc(t,["rejected"])}:Rc(e)?function(t){var a=e.map(function(i){return i.rejected}),s=pr.apply(void 0,a);return s(t)}:ph()(e[0])}function hh(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return Cc(t,["fulfilled"])}:Rc(e)?function(t){var a=e.map(function(i){return i.fulfilled}),s=pr.apply(void 0,a);return s(t)}:hh()(e[0])}lS();var $r=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ps(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function fw(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 dw(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var qa=dw,pw=typeof $r=="object"&&$r&&$r.Object===Object&&$r,gh=pw,hw=gh,gw=typeof self=="object"&&self&&self.Object===Object&&self,vw=hw||gw||Function("return this")(),wr=vw,mw=wr,yw=function(){return mw.Date.now()},bw=yw,_w=/\s/;function Ew(e){for(var r=e.length;r--&&_w.test(e.charAt(r)););return r}var Sw=Ew,ww=Sw,Tw=/^\s+/;function xw(e){return e&&e.slice(0,ww(e)+1).replace(Tw,"")}var Cw=xw,Rw=wr,Ow=Rw.Symbol,Oc=Ow,Kd=Oc,vh=Object.prototype,Aw=vh.hasOwnProperty,Pw=vh.toString,Pa=Kd?Kd.toStringTag:void 0;function Dw(e){var r=Aw.call(e,Pa),t=e[Pa];try{e[Pa]=void 0;var a=!0}catch{}var s=Pw.call(e);return a&&(r?e[Pa]=t:delete e[Pa]),s}var Iw=Dw,Fw=Object.prototype,$w=Fw.toString;function Mw(e){return $w.call(e)}var Nw=Mw,Jd=Oc,Lw=Iw,jw=Nw,kw="[object Null]",Bw="[object Undefined]",Xd=Jd?Jd.toStringTag:void 0;function Ww(e){return e==null?e===void 0?Bw:kw:Xd&&Xd in Object(e)?Lw(e):jw(e)}var Ds=Ww;function Uw(e){return e!=null&&typeof e=="object"}var Ac=Uw,Hw=Ds,qw=Ac,Gw="[object Symbol]";function zw(e){return typeof e=="symbol"||qw(e)&&Hw(e)==Gw}var Yw=zw,Vw=Cw,Zd=qa,Kw=Yw,Qd=0/0,Jw=/^[-+]0x[0-9a-f]+$/i,Xw=/^0b[01]+$/i,Zw=/^0o[0-7]+$/i,Qw=parseInt;function eT(e){if(typeof e=="number")return e;if(Kw(e))return Qd;if(Zd(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=Zd(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=Vw(e);var t=Xw.test(e);return t||Zw.test(e)?Qw(e.slice(2),t?2:8):Jw.test(e)?Qd:+e}var tT=eT,rT=qa,Su=bw,ep=tT,nT="Expected a function",aT=Math.max,oT=Math.min;function sT(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(nT);r=ep(r)||0,rT(t)&&(g=!!t.leading,m="maxWait"in t,i=m?aT(ep(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?oT(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 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(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=j,O}var iT=sT,uT=iT,cT=qa,lT="Expected a function";function fT(e,r,t){var a=!0,s=!0;if(typeof e!="function")throw new TypeError(lT);return cT(t)&&(a="leading"in t?!!t.leading:a,s="trailing"in t?!!t.trailing:s),uT(e,r,{leading:a,maxWait:r,trailing:s})}var dT=fT;const pT=Ps(dT);var mh=(e=>(e[e.First=0]="First",e[e.Last=-1]="Last",e))(mh||{}),Nr=(e=>(e.ATTACHED="attached",e.DETACHED="detached",e.ERROR="error",e))(Nr||{}),gs=(e=>(e.SOCKET_ERROR="socket-error",e.SOCKET_CLOSURE="socket-closure",e))(gs||{}),yh=(e=>(e.NOT_STARTED="remote debugger not started",e.ALREADY_IN_USE="already in use",e.TIMEOUT="timeout",e))(yh||{});const Pc={tabs:[],activeTab:"",recent:[],roles:{roles:{},privileges:{},flags:{touched:!1},selectedTab:"roles"},sharedCSS:{state:"loading",styles:[]},debugger:{meta:{state:Nr.DETACHED},list:[],sessions:[],expressions:[]},webforms:{templates:{selectedGroup:"",data:[]},components:[],inspector:{css:{active:!1},datasource:{active:!1}},datasources:{theme:"grey"},flags:{"sidebar.section.resizable":!0}}},bh="4DWS_PREFS",_h=e=>`APP_STATE_${e}`;function Eh(e){var r,t;try{const a=((t=(r=window==null?void 0:window.$$datastores)==null?void 0:r.ds)==null?void 0:t.getBaseID())||"",s=JSON.stringify(e);localStorage.setItem(_h(a),s)}catch(a){console.error(a)}}function Sh(e){try{const r=JSON.stringify(e);localStorage.setItem(bh,r)}catch(r){console.error(r)}}function wh(){try{const e=localStorage.getItem(bh);if(e)return JSON.parse(e)}catch(e){console.error(e)}}function na(){var t,a;const e=((a=(t=window==null?void 0:window.$$datastores)==null?void 0:t.ds)==null?void 0:a.getBaseID())||"",r=localStorage.getItem(_h(e));if(r){const s=JSON.parse(r);return s.tabs=s.tabs.map(i=>({...i,flags:{...i.flags,enabled:!0}})),s}return Pc}function Is(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 Th=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 xh(e){return e?["json","4dmodel","webform","mform"].includes(e.toLowerCase()):!1}function hT(){this.__data__=[],this.size=0}var gT=hT;function vT(e,r){return e===r||e!==e&&r!==r}var mT=vT,yT=mT;function bT(e,r){for(var t=e.length;t--;)if(yT(e[t][0],r))return t;return-1}var Fs=bT,_T=Fs,ET=Array.prototype,ST=ET.splice;function wT(e){var r=this.__data__,t=_T(r,e);if(t<0)return!1;var a=r.length-1;return t==a?r.pop():ST.call(r,t,1),--this.size,!0}var TT=wT,xT=Fs;function CT(e){var r=this.__data__,t=xT(r,e);return t<0?void 0:r[t][1]}var RT=CT,OT=Fs;function AT(e){return OT(this.__data__,e)>-1}var PT=AT,DT=Fs;function IT(e,r){var t=this.__data__,a=DT(t,e);return a<0?(++this.size,t.push([e,r])):t[a][1]=r,this}var FT=IT,$T=gT,MT=TT,NT=RT,LT=PT,jT=FT;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=$T;aa.prototype.delete=MT;aa.prototype.get=NT;aa.prototype.has=LT;aa.prototype.set=jT;var $s=aa,kT=$s;function BT(){this.__data__=new kT,this.size=0}var WT=BT;function UT(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}var HT=UT;function qT(e){return this.__data__.get(e)}var GT=qT;function zT(e){return this.__data__.has(e)}var YT=zT,VT=Ds,KT=qa,JT="[object AsyncFunction]",XT="[object Function]",ZT="[object GeneratorFunction]",QT="[object Proxy]";function ex(e){if(!KT(e))return!1;var r=VT(e);return r==XT||r==ZT||r==JT||r==QT}var tx=ex,rx=wr,nx=rx["__core-js_shared__"],ax=nx,wu=ax,tp=function(){var e=/[^.]+$/.exec(wu&&wu.keys&&wu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ox(e){return!!tp&&tp in e}var sx=ox,ix=Function.prototype,ux=ix.toString;function cx(e){if(e!=null){try{return ux.call(e)}catch{}try{return e+""}catch{}}return""}var Ch=cx,lx=tx,fx=sx,dx=qa,px=Ch,hx=/[\\^$.*+?()[\]{}|]/g,gx=/^\[object .+?Constructor\]$/,vx=Function.prototype,mx=Object.prototype,yx=vx.toString,bx=mx.hasOwnProperty,_x=RegExp("^"+yx.call(bx).replace(hx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ex(e){if(!dx(e)||fx(e))return!1;var r=lx(e)?_x:gx;return r.test(px(e))}var Sx=Ex;function wx(e,r){return e==null?void 0:e[r]}var Tx=wx,xx=Sx,Cx=Tx;function Rx(e,r){var t=Cx(e,r);return xx(t)?t:void 0}var oa=Rx,Ox=oa,Ax=wr,Px=Ox(Ax,"Map"),Dc=Px,Dx=oa,Ix=Dx(Object,"create"),Ms=Ix,rp=Ms;function Fx(){this.__data__=rp?rp(null):{},this.size=0}var $x=Fx;function Mx(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var Nx=Mx,Lx=Ms,jx="__lodash_hash_undefined__",kx=Object.prototype,Bx=kx.hasOwnProperty;function Wx(e){var r=this.__data__;if(Lx){var t=r[e];return t===jx?void 0:t}return Bx.call(r,e)?r[e]:void 0}var Ux=Wx,Hx=Ms,qx=Object.prototype,Gx=qx.hasOwnProperty;function zx(e){var r=this.__data__;return Hx?r[e]!==void 0:Gx.call(r,e)}var Yx=zx,Vx=Ms,Kx="__lodash_hash_undefined__";function Jx(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=Vx&&r===void 0?Kx:r,this}var Xx=Jx,Zx=$x,Qx=Nx,eC=Ux,tC=Yx,rC=Xx;function sa(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var a=e[r];this.set(a[0],a[1])}}sa.prototype.clear=Zx;sa.prototype.delete=Qx;sa.prototype.get=eC;sa.prototype.has=tC;sa.prototype.set=rC;var nC=sa,np=nC,aC=$s,oC=Dc;function sC(){this.size=0,this.__data__={hash:new np,map:new(oC||aC),string:new np}}var iC=sC;function uC(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var cC=uC,lC=cC;function fC(e,r){var t=e.__data__;return lC(r)?t[typeof r=="string"?"string":"hash"]:t.map}var Ns=fC,dC=Ns;function pC(e){var r=dC(this,e).delete(e);return this.size-=r?1:0,r}var hC=pC,gC=Ns;function vC(e){return gC(this,e).get(e)}var mC=vC,yC=Ns;function bC(e){return yC(this,e).has(e)}var _C=bC,EC=Ns;function SC(e,r){var t=EC(this,e),a=t.size;return t.set(e,r),this.size+=t.size==a?0:1,this}var wC=SC,TC=iC,xC=hC,CC=mC,RC=_C,OC=wC;function ia(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])}}ia.prototype.clear=TC;ia.prototype.delete=xC;ia.prototype.get=CC;ia.prototype.has=RC;ia.prototype.set=OC;var Rh=ia,AC=$s,PC=Dc,DC=Rh,IC=200;function FC(e,r){var t=this.__data__;if(t instanceof AC){var a=t.__data__;if(!PC||a.length<IC-1)return a.push([e,r]),this.size=++t.size,this;t=this.__data__=new DC(a)}return t.set(e,r),this.size=t.size,this}var $C=FC,MC=$s,NC=WT,LC=HT,jC=GT,kC=YT,BC=$C;function Ga(e){var r=this.__data__=new MC(e);this.size=r.size}Ga.prototype.clear=NC;Ga.prototype.delete=LC;Ga.prototype.get=jC;Ga.prototype.has=kC;Ga.prototype.set=BC;var WC="__lodash_hash_undefined__";function UC(e){return this.__data__.set(e,WC),this}var HC=UC;function qC(e){return this.__data__.has(e)}var GC=qC,zC=Rh,YC=HC,VC=GC;function Ku(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new zC;++r<t;)this.add(e[r])}Ku.prototype.add=Ku.prototype.push=YC;Ku.prototype.has=VC;var KC=wr;KC.Uint8Array;var ap=Oc,op=ap?ap.prototype:void 0;op&&op.valueOf;var JC=Ds,XC=Ac,ZC="[object Arguments]";function QC(e){return XC(e)&&JC(e)==ZC}var eR=QC,sp=eR,tR=Ac,Oh=Object.prototype,rR=Oh.hasOwnProperty,nR=Oh.propertyIsEnumerable;sp(function(){return arguments}());var vs={exports:{}};function aR(){return!1}var oR=aR;vs.exports;(function(e,r){var t=wr,a=oR,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})(vs,vs.exports);vs.exports;var ms={exports:{}};ms.exports;(function(e,r){var t=gh,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})(ms,ms.exports);var sR=ms.exports,ip=sR;ip&&ip.isTypedArray;var iR=oa,uR=wr,cR=iR(uR,"DataView"),lR=cR,fR=oa,dR=wr,pR=fR(dR,"Promise"),hR=pR,gR=oa,vR=wr,mR=gR(vR,"Set"),yR=mR,bR=oa,_R=wr,ER=bR(_R,"WeakMap"),SR=ER,Ju=lR,Xu=Dc,Zu=hR,Qu=yR,ec=SR,Ah=Ds,ua=Ch,up="[object Map]",wR="[object Object]",cp="[object Promise]",lp="[object Set]",fp="[object WeakMap]",dp="[object DataView]",TR=ua(Ju),xR=ua(Xu),CR=ua(Zu),RR=ua(Qu),OR=ua(ec),Gn=Ah;(Ju&&Gn(new Ju(new ArrayBuffer(1)))!=dp||Xu&&Gn(new Xu)!=up||Zu&&Gn(Zu.resolve())!=cp||Qu&&Gn(new Qu)!=lp||ec&&Gn(new ec)!=fp)&&(Gn=function(e){var r=Ah(e),t=r==wR?e.constructor:void 0,a=t?ua(t):"";if(a)switch(a){case TR:return dp;case xR:return up;case CR:return cp;case RR:return lp;case OR:return fp}return r});const AR="ROOT";dS(),fS();var pp;(function(e){e[e.HandlerDisabled=0]="HandlerDisabled",e[e.HandlerEnabled=1]="HandlerEnabled"})(pp||(pp={}));var ys={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
|
-
*/ys.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]",Ja="[object Null]",Vt="[object Object]",ln="[object Promise]",Ks="[object Proxy]",sr="[object RegExp]",Ct="[object Set]",fn="[object String]",dn="[object Symbol]",Xa="[object Undefined]",Tr="[object WeakMap]",Js="[object WeakSet]",pn="[object ArrayBuffer]",Gr="[object DataView]",la="[object Float32Array]",fa="[object Float64Array]",da="[object Int8Array]",pa="[object Int16Array]",hn="[object Int32Array]",Pn="[object Uint8Array]",mr="[object Uint8ClampedArray]",gn="[object Uint16Array]",vn="[object Uint32Array]",Za=/\b__p \+= '';/g,Xs=/\b(__p \+=) '' \+/g,Qa=/(__e\(.*?\)|\b__t\)) \+\n'';/g,eo=/&(?:amp|lt|gt|quot|#39);/g,ha=/[&<>"']/g,to=RegExp(eo.source),Zs=RegExp(ha.source),Qs=/<%-([\s\S]+?)%>/g,ro=/<%([\s\S]+?)%>/g,no=/<%=([\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,ao=/^0b[01]+$/i,ir=/^\[object .+?Constructor\]$/,Kv=/^0o[0-7]+$/i,Jv=/^(?:0|[1-9]\d*)$/,Xv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,oo=/($^)/,Zv=/['\n\r\u2028\u2029\\]/g,so="\\ud800-\\udfff",Qv="\\u0300-\\u036f",em="\\ufe20-\\ufe2f",tm="\\u20d0-\\u20ff",ul=Qv+em+tm,cl="\\u2700-\\u27bf",ll="a-z\\xdf-\\xf6\\xf8-\\xff",rm="\\xac\\xb1\\xd7\\xf7",nm="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",am="\\u2000-\\u206f",om=" \\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",fl="A-Z\\xc0-\\xd6\\xd8-\\xde",dl="\\ufe0e\\ufe0f",pl=rm+nm+am+om,ni="['’]",sm="["+so+"]",hl="["+pl+"]",io="["+ul+"]",gl="\\d+",im="["+cl+"]",vl="["+ll+"]",ml="[^"+so+pl+gl+cl+ll+fl+"]",ai="\\ud83c[\\udffb-\\udfff]",um="(?:"+io+"|"+ai+")",yl="[^"+so+"]",oi="(?:\\ud83c[\\udde6-\\uddff]){2}",si="[\\ud800-\\udbff][\\udc00-\\udfff]",Dn="["+fl+"]",bl="\\u200d",_l="(?:"+vl+"|"+ml+")",cm="(?:"+Dn+"|"+ml+")",El="(?:"+ni+"(?:d|ll|m|re|s|t|ve))?",Sl="(?:"+ni+"(?:D|LL|M|RE|S|T|VE))?",wl=um+"?",Tl="["+dl+"]?",lm="(?:"+bl+"(?:"+[yl,oi,si].join("|")+")"+Tl+wl+")*",fm="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",dm="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",xl=Tl+wl+lm,pm="(?:"+[im,oi,si].join("|")+")"+xl,hm="(?:"+[yl+io+"?",io,oi,si,sm].join("|")+")",gm=RegExp(ni,"g"),vm=RegExp(io,"g"),ii=RegExp(ai+"(?="+ai+")|"+hm+xl,"g"),mm=RegExp([Dn+"?"+vl+"+"+El+"(?="+[hl,Dn,"$"].join("|")+")",cm+"+"+Sl+"(?="+[hl,Dn+_l,"$"].join("|")+")",Dn+"?"+_l+"+"+El,Dn+"+"+Sl,dm,fm,gl,pm].join("|"),"g"),ym=RegExp("["+bl+so+ul+dl+"]"),bm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_m=["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"],Em=-1,Ve={};Ve[la]=Ve[fa]=Ve[da]=Ve[pa]=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[sr]=Ve[Ct]=Ve[fn]=Ve[Tr]=!1;var Ge={};Ge[fe]=Ge[ne]=Ge[pn]=Ge[Gr]=Ge[ue]=Ge[he]=Ge[la]=Ge[fa]=Ge[da]=Ge[pa]=Ge[hn]=Ge[qe]=Ge[yt]=Ge[Vt]=Ge[sr]=Ge[Ct]=Ge[fn]=Ge[dn]=Ge[Pn]=Ge[mr]=Ge[gn]=Ge[vn]=!0,Ge[K]=Ge[F]=Ge[Tr]=!1;var Sm={À:"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"},wm={"&":"&","<":"<",">":">",'"':""","'":"'"},Tm={"&":"&","<":"<",">":">",""":'"',"'":"'"},xm={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cm=parseFloat,Rm=parseInt,Cl=typeof $r=="object"&&$r&&$r.Object===Object&&$r,Om=typeof self=="object"&&self&&self.Object===Object&&self,gt=Cl||Om||Function("return this")(),ui=r&&!r.nodeType&&r,mn=ui&&!0&&e&&!e.nodeType&&e,Rl=mn&&mn.exports===ui,ci=Rl&&Cl.process,Jt=function(){try{var R=mn&&mn.require&&mn.require("util").types;return R||ci&&ci.binding&&ci.binding("util")}catch{}}(),Ol=Jt&&Jt.isArrayBuffer,Al=Jt&&Jt.isDate,Pl=Jt&&Jt.isMap,Dl=Jt&&Jt.isRegExp,Il=Jt&&Jt.isSet,Fl=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 Am(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 Pm(R,$){for(var D=R==null?0:R.length;D--&&$(R[D],D,R)!==!1;);return R}function $l(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 uo(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 Dm(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 Im=pi("length");function Fm(R){return R.split("")}function $m(R){return R.match(Ee)||[]}function Ml(R,$,D){var Z;return D(R,function(pe,Oe,ct){if($(pe,Oe,ct))return Z=Oe,!1}),Z}function co(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 $===$?zm(R,$,D):co(R,Nl,D)}function Mm(R,$,D,Z){for(var pe=D-1,Oe=R.length;++pe<Oe;)if(Z(R[pe],$))return pe;return-1}function Nl(R){return R!==R}function Ll(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 jl(R,$,D,Z,pe){return pe(R,function(Oe,ct,Ue){D=Z?(Z=!1,Oe):$(D,Oe,ct,Ue)}),D}function Nm(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 Lm(R,$){return Je($,function(D){return[D,R[D]]})}function kl(R){return R&&R.slice(0,Hl(R)+1).replace(J,"")}function kt(R){return function($){return R($)}}function mi(R,$){return Je($,function(D){return R[D]})}function ga(R,$){return R.has($)}function Bl(R,$){for(var D=-1,Z=R.length;++D<Z&&In($,R[D],0)>-1;);return D}function Wl(R,$){for(var D=R.length;D--&&In($,R[D],0)>-1;);return D}function jm(R,$){for(var D=R.length,Z=0;D--;)R[D]===$&&++Z;return Z}var km=hi(Sm),Bm=hi(wm);function Wm(R){return"\\"+xm[R]}function Um(R,$){return R==null?t:R[$]}function Fn(R){return ym.test(R)}function Hm(R){return bm.test(R)}function qm(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 Ul(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 lo(R){var $=-1,D=Array(R.size);return R.forEach(function(Z){D[++$]=Z}),D}function Gm(R){var $=-1,D=Array(R.size);return R.forEach(function(Z){D[++$]=[Z,Z]}),D}function zm(R,$,D){for(var Z=D-1,pe=R.length;++Z<pe;)if(R[Z]===$)return Z;return-1}function Ym(R,$,D){for(var Z=D+1;Z--;)if(R[Z]===$)return Z;return Z}function $n(R){return Fn(R)?Km(R):Im(R)}function ur(R){return Fn(R)?Jm(R):Fm(R)}function Hl(R){for(var $=R.length;$--&&ie.test(R.charAt($)););return $}var Vm=hi(Tm);function Km(R){for(var $=ii.lastIndex=0;ii.test(R);)++$;return $}function Jm(R){return R.match(ii)||[]}function Xm(R){return R.match(mm)||[]}var Zm=function R($){$=$==null?gt:Mn.defaults(gt.Object(),$,Mn.pick(gt,_m));var D=$.Array,Z=$.Date,pe=$.Error,Oe=$.Function,ct=$.Math,Ue=$.Object,bi=$.RegExp,Qm=$.String,Zt=$.TypeError,fo=D.prototype,ey=Oe.prototype,Nn=Ue.prototype,po=$["__core-js_shared__"],ho=ey.toString,je=Nn.hasOwnProperty,ty=0,ql=function(){var n=/[^.]+$/.exec(po&&po.keys&&po.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),go=Nn.toString,ry=ho.call(Ue),ny=gt._,ay=bi("^"+ho.call(je).replace(w,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vo=Rl?$.Buffer:t,Jr=$.Symbol,mo=$.Uint8Array,Gl=vo?vo.allocUnsafe:t,yo=Ul(Ue.getPrototypeOf,Ue),zl=Ue.create,Yl=Nn.propertyIsEnumerable,bo=fo.splice,Vl=Jr?Jr.isConcatSpreadable:t,va=Jr?Jr.iterator:t,yn=Jr?Jr.toStringTag:t,_o=function(){try{var n=wn(Ue,"defineProperty");return n({},"",{}),n}catch{}}(),oy=$.clearTimeout!==gt.clearTimeout&&$.clearTimeout,sy=Z&&Z.now!==gt.Date.now&&Z.now,iy=$.setTimeout!==gt.setTimeout&&$.setTimeout,Eo=ct.ceil,So=ct.floor,_i=Ue.getOwnPropertySymbols,uy=vo?vo.isBuffer:t,Kl=$.isFinite,cy=fo.join,ly=Ul(Ue.keys,Ue),lt=ct.max,bt=ct.min,fy=Z.now,dy=$.parseInt,Jl=ct.random,py=fo.reverse,Ei=wn($,"DataView"),ma=wn($,"Map"),Si=wn($,"Promise"),Ln=wn($,"Set"),ya=wn($,"WeakMap"),ba=wn(Ue,"create"),wo=ya&&new ya,jn={},hy=Tn(Ei),gy=Tn(ma),vy=Tn(Si),my=Tn(Ln),yy=Tn(ya),To=Jr?Jr.prototype:t,_a=To?To.valueOf:t,Xl=To?To.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 Qf(n)}return new Qt(n)}var kn=function(){function n(){}return function(o){if(!Qe(o))return{};if(zl)return zl(o);n.prototype=o;var u=new n;return n.prototype=t,u}}();function xo(){}function Qt(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=t}v.templateSettings={escape:Qs,evaluate:ro,interpolate:no,variable:"",imports:{_:v}},v.prototype=xo.prototype,v.prototype.constructor=v,Qt.prototype=kn(xo.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 by(){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 _y(){if(this.__filtered__){var n=new we(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function Ey(){var n=this.__wrapped__.value(),o=this.__dir__,u=ve(n),f=o<0,h=u?n.length:0,y=F0(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 Sf(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,Ut=Se.type,At=Ce(oe);if(Ut==ut)oe=At;else if(!At){if(Ut==Pe)continue e;break e}}ae[V++]=oe}return ae}we.prototype=kn(xo.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 Sy(){this.__data__=ba?ba(null):{},this.size=0}function wy(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function Ty(n){var o=this.__data__;if(ba){var u=o[n];return u===d?t:u}return je.call(o,n)?o[n]:t}function xy(n){var o=this.__data__;return ba?o[n]!==t:je.call(o,n)}function Cy(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=ba&&o===t?d:o,this}bn.prototype.clear=Sy,bn.prototype.delete=wy,bn.prototype.get=Ty,bn.prototype.has=xy,bn.prototype.set=Cy;function xr(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 Ry(){this.__data__=[],this.size=0}function Oy(n){var o=this.__data__,u=Co(o,n);if(u<0)return!1;var f=o.length-1;return u==f?o.pop():bo.call(o,u,1),--this.size,!0}function Ay(n){var o=this.__data__,u=Co(o,n);return u<0?t:o[u][1]}function Py(n){return Co(this.__data__,n)>-1}function Dy(n,o){var u=this.__data__,f=Co(u,n);return f<0?(++this.size,u.push([n,o])):u[f][1]=o,this}xr.prototype.clear=Ry,xr.prototype.delete=Oy,xr.prototype.get=Ay,xr.prototype.has=Py,xr.prototype.set=Dy;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 Iy(){this.size=0,this.__data__={hash:new bn,map:new(ma||xr),string:new bn}}function Fy(n){var o=jo(this,n).delete(n);return this.size-=o?1:0,o}function $y(n){return jo(this,n).get(n)}function My(n){return jo(this,n).has(n)}function Ny(n,o){var u=jo(this,n),f=u.size;return u.set(n,o),this.size+=u.size==f?0:1,this}Cr.prototype.clear=Iy,Cr.prototype.delete=Fy,Cr.prototype.get=$y,Cr.prototype.has=My,Cr.prototype.set=Ny;function _n(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new Cr;++o<u;)this.add(n[o])}function Ly(n){return this.__data__.set(n,d),this}function jy(n){return this.__data__.has(n)}_n.prototype.add=_n.prototype.push=Ly,_n.prototype.has=jy;function cr(n){var o=this.__data__=new xr(n);this.size=o.size}function ky(){this.__data__=new xr,this.size=0}function By(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function Wy(n){return this.__data__.get(n)}function Uy(n){return this.__data__.has(n)}function Hy(n,o){var u=this.__data__;if(u instanceof xr){var f=u.__data__;if(!ma||f.length<s-1)return f.push([n,o]),this.size=++u.size,this;u=this.__data__=new Cr(f)}return u.set(n,o),this.size=u.size,this}cr.prototype.clear=ky,cr.prototype.delete=By,cr.prototype.get=Wy,cr.prototype.has=Uy,cr.prototype.set=Hy;function Zl(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,Qm):[],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")||Pr(N,A)))&&T.push(N);return T}function Ql(n){var o=n.length;return o?n[Fi(0,o-1)]:t}function qy(n,o){return ko(Ft(n),En(o,0,n.length))}function Gy(n){return ko(Ft(n))}function wi(n,o,u){(u!==t&&!lr(n[o],u)||u===t&&!(o in n))&&Rr(n,o,u)}function Ea(n,o,u){var f=n[o];(!(je.call(n,o)&&lr(f,u))||u===t&&!(o in n))&&Rr(n,o,u)}function Co(n,o){for(var u=n.length;u--;)if(lr(n[u][0],o))return u;return-1}function zy(n,o,u,f){return Xr(n,function(h,y,S){o(f,h,u(h),S)}),f}function ef(n,o){return n&&br(o,pt(o),n)}function Yy(n,o){return n&&br(o,Mt(o),n)}function Rr(n,o,u){o=="__proto__"&&_o?_o(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=M0(n),!T)return Ft(n,S)}else{var B=_t(n),V=B==F||B==Ye;if(tn(n))return xf(n,T);if(B==Vt||B==fe||V&&!h){if(S=A||V?{}:qf(n),!T)return A?T0(n,Yy(S,n)):w0(n,ef(S,n))}else{if(!Ge[B])return h?n:{};S=N0(n,B,T)}}y||(y=new cr);var ee=y.get(n);if(ee)return ee;y.set(n,S),bd(n)?n.forEach(function(oe){S.add(er(oe,o,u,oe,n,y))}):md(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]),Ea(S,Se,er(oe,o,u,Se,n,y))}),S}function Vy(n){var o=pt(n);return function(u){return tf(u,n,o)}}function tf(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 rf(n,o,u){if(typeof n!="function")throw new Zt(c);return Oa(function(){n.apply(t,u)},o)}function Sa(n,o,u,f){var h=-1,y=uo,S=!0,T=n.length,A=[],N=o.length;if(!T)return A;u&&(o=Je(o,kt(u))),f?(y=li,S=!1):o.length>=s&&(y=ga,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=Pf(yr),nf=Pf(Ci,!0);function Ky(n,o){var u=!0;return Xr(n,function(f,h,y){return u=!!o(f,h,y),u}),u}function Ro(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&&!Wt(S):u(S,T)))var T=S,A=y}return A}function Jy(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:Ed(f);u<f;)n[u++]=o;return n}function af(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=j0),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=Df(),of=Df(!0);function yr(n,o){return n&&xi(n,o,pt)}function Ci(n,o){return n&&of(n,o,pt)}function Oo(n,o){return Yr(o,function(u){return Dr(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 sf(n,o,u){var f=o(n);return ve(n)?f:Vr(f,u(n))}function Rt(n){return n==null?n===t?Xa:Ja:yn&&yn in Ue(n)?I0(n):G0(n)}function Ri(n,o){return n>o}function Xy(n,o){return n!=null&&je.call(n,o)}function Zy(n,o){return n!=null&&o in Ue(n)}function Qy(n,o,u){return n>=bt(o,u)&&n<lt(o,u)}function Oi(n,o,u){for(var f=u?li:uo,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,kt(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?ga(V,ae):f(N,ae,u))){for(S=y;--S;){var be=T[S];if(!(be?ga(be,ae):f(n[S],ae,u)))continue e}V&&V.push(ae),N.push(ee)}}return N}function e0(n,o,u,f){return yr(n,function(h,y,S){o(f,u(h),y,S)}),f}function wa(n,o,u){o=Qr(o,n),n=Vf(n,o);var f=n==null?n:n[_r(rr(o))];return f==null?t:jt(f,n,u)}function uf(n){return rt(n)&&Rt(n)==fe}function t0(n){return rt(n)&&Rt(n)==pn}function r0(n){return rt(n)&&Rt(n)==he}function Ta(n,o,u,f,h){return n===o?!0:n==null||o==null||!rt(n)&&!rt(o)?n!==n&&o!==o:n0(n,o,u,f,Ta,h)}function n0(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 cr),S||Hn(n)?Wf(n,o,u,f,h,y):P0(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 cr),h(be,oe,u,f,y)}}return V?(y||(y=new cr),D0(n,o,u,f,h,y)):!1}function a0(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 cr;if(f)var V=f(N,L,A,n,o,B);if(!(V===t?Ta(L,N,x|C,f,B):V))return!1}}return!0}function cf(n){if(!Qe(n)||B0(n))return!1;var o=Dr(n)?ay:ir;return o.test(Tn(n))}function o0(n){return rt(n)&&Rt(n)==sr}function s0(n){return rt(n)&&_t(n)==Ct}function i0(n){return rt(n)&&Go(n.length)&&!!Ve[Rt(n)]}function lf(n){return typeof n=="function"?n:n==null?Nt:typeof n=="object"?ve(n)?pf(n[0],n[1]):df(n):Id(n)}function Pi(n){if(!Ra(n))return ly(n);var o=[];for(var u in Ue(n))je.call(n,u)&&u!="constructor"&&o.push(u);return o}function u0(n){if(!Qe(n))return q0(n);var o=Ra(n),u=[];for(var f in n)f=="constructor"&&(o||!je.call(n,f))||u.push(f);return u}function Di(n,o){return n<o}function ff(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 df(n){var o=zi(n);return o.length==1&&o[0][2]?zf(o[0][0],o[0][1]):function(u){return u===n||Ai(u,n,o)}}function pf(n,o){return Vi(n)&&Gf(o)?zf(_r(n),o):function(u){var f=au(u,n);return f===t&&f===o?ou(u,n):Ta(o,f,x|C)}}function Ao(n,o,u,f,h){n!==o&&xi(o,function(y,S){if(h||(h=new cr),Qe(y))c0(n,o,S,u,Ao,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 c0(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=xf(A,!0)):ae?(B=!1,L=Cf(A,!0)):L=[]:Aa(A)||xn(A)?(L=T,xn(T)?L=Sd(T):(!Qe(T)||Dr(T))&&(L=qf(A))):B=!1}B&&(S.set(A,L),h(L,A,f,y,S),S.delete(A)),wi(n,u,L)}function hf(n,o){var u=n.length;if(u)return o+=o<0?u:0,Pr(o,u)?n[o]:t}function gf(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,kt(re()));var h=ff(n,function(y,S,T){var A=Je(o,function(N){return N(y)});return{criteria:A,index:++f,value:y}});return Nm(h,function(y,S){return S0(y,S,u)})}function l0(n,o){return vf(n,o,function(u,f){return ou(n,f)})}function vf(n,o,u){for(var f=-1,h=o.length,y={};++f<h;){var S=o[f],T=Sn(n,S);u(T,S)&&xa(y,Qr(S,n),T)}return y}function f0(n){return function(o){return Sn(o,n)}}function Ii(n,o,u,f){var h=f?Mm:In,y=-1,S=o.length,T=n;for(n===o&&(o=Ft(o)),u&&(T=Je(n,kt(u)));++y<S;)for(var A=0,N=o[y],L=u?u(N):N;(A=h(T,L,A,f))>-1;)T!==n&&bo.call(T,A,1),bo.call(n,A,1);return n}function mf(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;Pr(h)?bo.call(n,h,1):Ni(n,h)}}return n}function Fi(n,o){return n+So(Jl()*(o-n+1))}function d0(n,o,u,f){for(var h=-1,y=lt(Eo((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=So(o/2),o&&(n+=n);while(o);return u}function _e(n,o){return Xi(Yf(n,o,Nt),n+"")}function p0(n){return Ql(qn(n))}function h0(n,o){var u=qn(n);return ko(u,En(o,0,u.length))}function xa(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:Pr(o[h+1])?[]:{})}Ea(T,A,N),T=T[A]}return n}var yf=wo?function(n,o){return wo.set(n,o),n}:Nt,g0=_o?function(n,o){return _o(n,"toString",{configurable:!0,enumerable:!1,value:iu(o),writable:!0})}:Nt;function v0(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 m0(n,o){var u;return Xr(n,function(f,h,y){return u=o(f,h,y),!u}),!!u}function Po(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&&!Wt(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=Wt(o),N=o===t;h<y;){var L=So((h+y)/2),B=u(n[L]),V=B!==t,ee=B===null,ae=B===B,be=Wt(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 bf(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||!lr(T,A)){var A=T;y[h++]=S===0?0:S}}return y}function _f(n){return typeof n=="number"?n:Wt(n)?W:+n}function Bt(n){if(typeof n=="string")return n;if(ve(n))return Je(n,Bt)+"";if(Wt(n))return Xl?Xl.call(n):"";var o=n+"";return o=="0"&&1/n==-He?"-0":o}function Zr(n,o,u){var f=-1,h=uo,y=n.length,S=!0,T=[],A=T;if(u)S=!1,h=li;else if(y>=s){var N=o?null:O0(n);if(N)return lo(N);S=!1,h=ga,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=Vf(n,o),n==null||delete n[_r(rr(o))]}function Ef(n,o,u,f){return xa(n,o,u(Sn(n,o)),f)}function Do(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 Sf(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]=Sa(y[h]||S,n[T],o,u));return Zr(vt(y,1),o,u)}function wf(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 ji(n){return at(n)?n:[]}function ki(n){return typeof n=="function"?n:Nt}function Qr(n,o){return ve(n)?n:Vi(n,o)?[n]:Zf(De(n))}var y0=_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 Tf=oy||function(n){return gt.clearTimeout(n)};function xf(n,o){if(o)return n.slice();var u=n.length,f=Gl?Gl(u):new n.constructor(u);return n.copy(f),f}function Bi(n){var o=new n.constructor(n.byteLength);return new mo(o).set(new mo(n)),o}function b0(n,o){var u=o?Bi(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function _0(n){var o=new n.constructor(n.source,Kt.exec(n));return o.lastIndex=n.lastIndex,o}function E0(n){return _a?Ue(_a.call(n)):{}}function Cf(n,o){var u=o?Bi(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function Rf(n,o){if(n!==o){var u=n!==t,f=n===null,h=n===n,y=Wt(n),S=o!==t,T=o===null,A=o===o,N=Wt(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 S0(n,o,u){for(var f=-1,h=n.criteria,y=o.criteria,S=h.length,T=u.length;++f<S;){var A=Rf(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 Of(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 Af(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?Rr(u,T,A):Ea(u,T,A)}return u}function w0(n,o){return br(n,Yi(n),o)}function T0(n,o){return br(n,Uf(n),o)}function Io(n,o){return function(u,f){var h=ve(u)?Am:zy,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 Pf(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 Df(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 x0(n,o,u){var f=o&I,h=Ca(n);function y(){var S=this&&this!==gt&&this instanceof y?h:n;return S.apply(f?u:this,arguments)}return y}function If(n){return function(o){o=De(o);var u=Fn(o)?ur(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(Pd(Ad(o).replace(gm,"")),n,"")}}function Ca(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=kn(n.prototype),f=n.apply(u,o);return Qe(f)?f:u}}function C0(n,o,u){var f=Ca(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 Lf(n,o,Fo,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 Ff(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 $f(n){return Ar(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&&Lo(y)=="wrapper")var S=new Qt([],!0)}for(f=S?f:u;++f<u;){y=o[f];var T=Lo(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[Lo(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 Fo(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:Ca(n);function oe(){for(var Se=arguments.length,Ce=D(Se),Ut=Se;Ut--;)Ce[Ut]=arguments[Ut];if(ee)var At=Un(oe),Ht=jm(Ce,At);if(f&&(Ce=Of(Ce,f,h,ee)),y&&(Ce=Af(Ce,y,S,ee)),Se-=Ht,ee&&Se<N){var ot=Kr(Ce,At);return Lf(n,o,Fo,oe.placeholder,u,Ce,ot,T,A,N-Se)}var fr=B?u:this,Fr=V?fr[n]:n;return Se=Ce.length,T?Ce=z0(Ce,T):ae&&Se>1&&Ce.reverse(),L&&A<Se&&(Ce.length=A),this&&this!==gt&&this instanceof oe&&(Fr=be||Ca(Fr)),Fr.apply(fr,Ce)}return oe}function Mf(n,o){return function(u,f){return e0(u,n,o(f),{})}}function $o(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=Bt(u),f=Bt(f)):(u=_f(u),f=_f(f)),h=n(u,f)}return h}}function Wi(n){return Ar(function(o){return o=Je(o,kt(re())),_e(function(u){var f=this;return n(o,function(h){return jt(h,f,u)})})})}function Mo(n,o){o=o===t?" ":Bt(o);var u=o.length;if(u<2)return u?$i(o,n):o;var f=$i(o,Eo(n/$n(o)));return Fn(o)?en(ur(f),0,n).join(""):f.slice(0,n)}function R0(n,o,u,f){var h=o&I,y=Ca(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 Nf(n){return function(o,u,f){return f&&typeof f!="number"&&Ot(o,u,f)&&(u=f=t),o=Ir(o),u===t?(u=o,o=0):u=Ir(u),f=f===t?o<u?1:-1:Ir(f),d0(o,u,f,n)}}function No(n){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=nr(o),u=nr(u)),n(o,u)}}function Lf(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 Ki(n)&&Kf(oe,be),oe.placeholder=f,Jf(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&&Kl(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 O0=Ln&&1/lo(new Ln([,-0]))[1]==He?function(n){return new Ln(n)}:lu;function jf(n){return function(o){var u=_t(o);return u==qe?yi(o):u==Ct?Gm(o):Lm(o,n(o))}}function Or(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&&H0(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=x0(n,o,u);else o==M||o==j?ae=C0(n,o,T):(o==O||o==(I|O))&&!h.length?ae=R0(n,o,u,f):ae=Fo.apply(t,ee);var be=V?yf:Kf;return Jf(be(ae,ee),n,o)}function kf(n,o,u,f){return n===t||lr(n,Nn[u])&&!je.call(f,u)?o:n}function Bf(n,o,u,f,h,y){return Qe(n)&&Qe(o)&&(y.set(o,n),Ao(n,o,t,Bf,y),y.delete(o)),n}function A0(n){return Aa(n)?t:n}function Wf(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(!ga(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 P0(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 mo(n),new mo(o)));case ue:case he:case yt:return lr(+n,+o);case K:return n.name==o.name&&n.message==o.message;case sr:case fn:return n==o+"";case qe:var T=yi;case Ct:var A=f&x;if(T||(T=lo),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=Wf(T(n),T(o),f,h,y,S);return S.delete(n),L;case dn:if(_a)return _a.call(n)==_a.call(o)}return!1}function D0(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: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 Ut=S?f(Ce,Se,V,o,n,y):f(Se,Ce,V,n,o,y);if(!(Ut===t?Se===Ce||h(Se,Ce,u,f,y):Ut)){be=!1;break}oe||(oe=V=="constructor")}if(be&&!oe){var At=n.constructor,Ht=o.constructor;At!=Ht&&"constructor"in n&&"constructor"in o&&!(typeof At=="function"&&At instanceof At&&typeof Ht=="function"&&Ht instanceof Ht)&&(be=!1)}return y.delete(n),y.delete(o),be}function Ar(n){return Xi(Yf(n,t,rd),n+"")}function Hi(n){return sf(n,pt,Yi)}function qi(n){return sf(n,Mt,Uf)}var Gi=wo?function(n){return wo.get(n)}:lu;function Lo(n){for(var o=n.name+"",u=jn[o],f=je.call(jn,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=je.call(v,"placeholder")?v:n;return o.placeholder}function re(){var n=v.iteratee||uu;return n=n===uu?lf:n,arguments.length?n(arguments[0],arguments[1]):n}function jo(n,o){var u=n.__data__;return k0(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,Gf(h)]}return o}function wn(n,o){var u=Um(n,o);return cf(u)?u:t}function I0(n){var o=je.call(n,yn),u=n[yn];try{n[yn]=t;var f=!0}catch{}var h=go.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 Yl.call(n,o)}))}:fu,Uf=_i?function(n){for(var o=[];n;)Vr(o,Yi(n)),n=yo(n);return o}:fu,_t=Rt;(Ei&&_t(new Ei(new ArrayBuffer(1)))!=Gr||ma&&_t(new ma)!=qe||Si&&_t(Si.resolve())!=ln||Ln&&_t(new Ln)!=Ct||ya&&_t(new ya)!=Tr)&&(_t=function(n){var o=Rt(n),u=o==Vt?n.constructor:t,f=u?Tn(u):"";if(f)switch(f){case hy:return Gr;case gy:return qe;case vy:return ln;case my:return Ct;case yy:return Tr}return o});function F0(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 $0(n){var o=n.match(Le);return o?o[1].split(xe):[]}function Hf(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&&Go(h)&&Pr(S,h)&&(ve(n)||xn(n)))}function M0(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 qf(n){return typeof n.constructor=="function"&&!Ra(n)?kn(yo(n)):{}}function N0(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 b0(n,u);case la:case fa:case da:case pa:case hn:case Pn:case mr:case gn:case vn:return Cf(n,u);case qe:return new f;case yt:case fn:return new f(n);case sr:return _0(n);case Ct:return new f;case dn:return E0(n)}}function L0(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
|
+
*/ys.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]",Ja="[object Null]",Vt="[object Object]",ln="[object Promise]",Ks="[object Proxy]",sr="[object RegExp]",Ct="[object Set]",fn="[object String]",dn="[object Symbol]",Xa="[object Undefined]",Tr="[object WeakMap]",Js="[object WeakSet]",pn="[object ArrayBuffer]",Gr="[object DataView]",la="[object Float32Array]",fa="[object Float64Array]",da="[object Int8Array]",pa="[object Int16Array]",hn="[object Int32Array]",Pn="[object Uint8Array]",mr="[object Uint8ClampedArray]",gn="[object Uint16Array]",vn="[object Uint32Array]",Za=/\b__p \+= '';/g,Xs=/\b(__p \+=) '' \+/g,Qa=/(__e\(.*?\)|\b__t\)) \+\n'';/g,eo=/&(?:amp|lt|gt|quot|#39);/g,ha=/[&<>"']/g,to=RegExp(eo.source),Zs=RegExp(ha.source),Qs=/<%-([\s\S]+?)%>/g,ro=/<%([\s\S]+?)%>/g,no=/<%=([\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,ao=/^0b[01]+$/i,ir=/^\[object .+?Constructor\]$/,Kv=/^0o[0-7]+$/i,Jv=/^(?:0|[1-9]\d*)$/,Xv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,oo=/($^)/,Zv=/['\n\r\u2028\u2029\\]/g,so="\\ud800-\\udfff",Qv="\\u0300-\\u036f",em="\\ufe20-\\ufe2f",tm="\\u20d0-\\u20ff",il=Qv+em+tm,ul="\\u2700-\\u27bf",cl="a-z\\xdf-\\xf6\\xf8-\\xff",rm="\\xac\\xb1\\xd7\\xf7",nm="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",am="\\u2000-\\u206f",om=" \\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",ll="A-Z\\xc0-\\xd6\\xd8-\\xde",fl="\\ufe0e\\ufe0f",dl=rm+nm+am+om,ni="['’]",sm="["+so+"]",pl="["+dl+"]",io="["+il+"]",hl="\\d+",im="["+ul+"]",gl="["+cl+"]",vl="[^"+so+dl+hl+ul+cl+ll+"]",ai="\\ud83c[\\udffb-\\udfff]",um="(?:"+io+"|"+ai+")",ml="[^"+so+"]",oi="(?:\\ud83c[\\udde6-\\uddff]){2}",si="[\\ud800-\\udbff][\\udc00-\\udfff]",Dn="["+ll+"]",yl="\\u200d",bl="(?:"+gl+"|"+vl+")",cm="(?:"+Dn+"|"+vl+")",_l="(?:"+ni+"(?:d|ll|m|re|s|t|ve))?",El="(?:"+ni+"(?:D|LL|M|RE|S|T|VE))?",Sl=um+"?",wl="["+fl+"]?",lm="(?:"+yl+"(?:"+[ml,oi,si].join("|")+")"+wl+Sl+")*",fm="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",dm="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Tl=wl+Sl+lm,pm="(?:"+[im,oi,si].join("|")+")"+Tl,hm="(?:"+[ml+io+"?",io,oi,si,sm].join("|")+")",gm=RegExp(ni,"g"),vm=RegExp(io,"g"),ii=RegExp(ai+"(?="+ai+")|"+hm+Tl,"g"),mm=RegExp([Dn+"?"+gl+"+"+_l+"(?="+[pl,Dn,"$"].join("|")+")",cm+"+"+El+"(?="+[pl,Dn+bl,"$"].join("|")+")",Dn+"?"+bl+"+"+_l,Dn+"+"+El,dm,fm,hl,pm].join("|"),"g"),ym=RegExp("["+yl+so+il+fl+"]"),bm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_m=["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"],Em=-1,Ve={};Ve[la]=Ve[fa]=Ve[da]=Ve[pa]=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[sr]=Ve[Ct]=Ve[fn]=Ve[Tr]=!1;var Ge={};Ge[fe]=Ge[ne]=Ge[pn]=Ge[Gr]=Ge[ue]=Ge[he]=Ge[la]=Ge[fa]=Ge[da]=Ge[pa]=Ge[hn]=Ge[qe]=Ge[yt]=Ge[Vt]=Ge[sr]=Ge[Ct]=Ge[fn]=Ge[dn]=Ge[Pn]=Ge[mr]=Ge[gn]=Ge[vn]=!0,Ge[K]=Ge[F]=Ge[Tr]=!1;var Sm={À:"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"},wm={"&":"&","<":"<",">":">",'"':""","'":"'"},Tm={"&":"&","<":"<",">":">",""":'"',"'":"'"},xm={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cm=parseFloat,Rm=parseInt,xl=typeof $r=="object"&&$r&&$r.Object===Object&&$r,Om=typeof self=="object"&&self&&self.Object===Object&&self,gt=xl||Om||Function("return this")(),ui=r&&!r.nodeType&&r,mn=ui&&!0&&e&&!e.nodeType&&e,Cl=mn&&mn.exports===ui,ci=Cl&&xl.process,Jt=function(){try{var R=mn&&mn.require&&mn.require("util").types;return R||ci&&ci.binding&&ci.binding("util")}catch{}}(),Rl=Jt&&Jt.isArrayBuffer,Ol=Jt&&Jt.isDate,Al=Jt&&Jt.isMap,Pl=Jt&&Jt.isRegExp,Dl=Jt&&Jt.isSet,Il=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 Am(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 Pm(R,$){for(var D=R==null?0:R.length;D--&&$(R[D],D,R)!==!1;);return R}function Fl(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 uo(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 Dm(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 Im=pi("length");function Fm(R){return R.split("")}function $m(R){return R.match(Ee)||[]}function $l(R,$,D){var Z;return D(R,function(pe,Oe,ct){if($(pe,Oe,ct))return Z=Oe,!1}),Z}function co(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 $===$?zm(R,$,D):co(R,Ml,D)}function Mm(R,$,D,Z){for(var pe=D-1,Oe=R.length;++pe<Oe;)if(Z(R[pe],$))return pe;return-1}function Ml(R){return R!==R}function Nl(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 Ll(R,$,D,Z,pe){return pe(R,function(Oe,ct,Ue){D=Z?(Z=!1,Oe):$(D,Oe,ct,Ue)}),D}function Nm(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 Lm(R,$){return Je($,function(D){return[D,R[D]]})}function jl(R){return R&&R.slice(0,Ul(R)+1).replace(J,"")}function kt(R){return function($){return R($)}}function mi(R,$){return Je($,function(D){return R[D]})}function ga(R,$){return R.has($)}function kl(R,$){for(var D=-1,Z=R.length;++D<Z&&In($,R[D],0)>-1;);return D}function Bl(R,$){for(var D=R.length;D--&&In($,R[D],0)>-1;);return D}function jm(R,$){for(var D=R.length,Z=0;D--;)R[D]===$&&++Z;return Z}var km=hi(Sm),Bm=hi(wm);function Wm(R){return"\\"+xm[R]}function Um(R,$){return R==null?t:R[$]}function Fn(R){return ym.test(R)}function Hm(R){return bm.test(R)}function qm(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 Wl(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 lo(R){var $=-1,D=Array(R.size);return R.forEach(function(Z){D[++$]=Z}),D}function Gm(R){var $=-1,D=Array(R.size);return R.forEach(function(Z){D[++$]=[Z,Z]}),D}function zm(R,$,D){for(var Z=D-1,pe=R.length;++Z<pe;)if(R[Z]===$)return Z;return-1}function Ym(R,$,D){for(var Z=D+1;Z--;)if(R[Z]===$)return Z;return Z}function $n(R){return Fn(R)?Km(R):Im(R)}function ur(R){return Fn(R)?Jm(R):Fm(R)}function Ul(R){for(var $=R.length;$--&&ie.test(R.charAt($)););return $}var Vm=hi(Tm);function Km(R){for(var $=ii.lastIndex=0;ii.test(R);)++$;return $}function Jm(R){return R.match(ii)||[]}function Xm(R){return R.match(mm)||[]}var Zm=function R($){$=$==null?gt:Mn.defaults(gt.Object(),$,Mn.pick(gt,_m));var D=$.Array,Z=$.Date,pe=$.Error,Oe=$.Function,ct=$.Math,Ue=$.Object,bi=$.RegExp,Qm=$.String,Zt=$.TypeError,fo=D.prototype,ey=Oe.prototype,Nn=Ue.prototype,po=$["__core-js_shared__"],ho=ey.toString,je=Nn.hasOwnProperty,ty=0,Hl=function(){var n=/[^.]+$/.exec(po&&po.keys&&po.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),go=Nn.toString,ry=ho.call(Ue),ny=gt._,ay=bi("^"+ho.call(je).replace(w,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vo=Cl?$.Buffer:t,Jr=$.Symbol,mo=$.Uint8Array,ql=vo?vo.allocUnsafe:t,yo=Wl(Ue.getPrototypeOf,Ue),Gl=Ue.create,zl=Nn.propertyIsEnumerable,bo=fo.splice,Yl=Jr?Jr.isConcatSpreadable:t,va=Jr?Jr.iterator:t,yn=Jr?Jr.toStringTag:t,_o=function(){try{var n=wn(Ue,"defineProperty");return n({},"",{}),n}catch{}}(),oy=$.clearTimeout!==gt.clearTimeout&&$.clearTimeout,sy=Z&&Z.now!==gt.Date.now&&Z.now,iy=$.setTimeout!==gt.setTimeout&&$.setTimeout,Eo=ct.ceil,So=ct.floor,_i=Ue.getOwnPropertySymbols,uy=vo?vo.isBuffer:t,Vl=$.isFinite,cy=fo.join,ly=Wl(Ue.keys,Ue),lt=ct.max,bt=ct.min,fy=Z.now,dy=$.parseInt,Kl=ct.random,py=fo.reverse,Ei=wn($,"DataView"),ma=wn($,"Map"),Si=wn($,"Promise"),Ln=wn($,"Set"),ya=wn($,"WeakMap"),ba=wn(Ue,"create"),wo=ya&&new ya,jn={},hy=Tn(Ei),gy=Tn(ma),vy=Tn(Si),my=Tn(Ln),yy=Tn(ya),To=Jr?Jr.prototype:t,_a=To?To.valueOf:t,Jl=To?To.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 Zf(n)}return new Qt(n)}var kn=function(){function n(){}return function(o){if(!Qe(o))return{};if(Gl)return Gl(o);n.prototype=o;var u=new n;return n.prototype=t,u}}();function xo(){}function Qt(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=t}v.templateSettings={escape:Qs,evaluate:ro,interpolate:no,variable:"",imports:{_:v}},v.prototype=xo.prototype,v.prototype.constructor=v,Qt.prototype=kn(xo.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 by(){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 _y(){if(this.__filtered__){var n=new we(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function Ey(){var n=this.__wrapped__.value(),o=this.__dir__,u=ve(n),f=o<0,h=u?n.length:0,y=F0(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 Ef(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,Ut=Se.type,At=Ce(oe);if(Ut==ut)oe=At;else if(!At){if(Ut==Pe)continue e;break e}}ae[V++]=oe}return ae}we.prototype=kn(xo.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 Sy(){this.__data__=ba?ba(null):{},this.size=0}function wy(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function Ty(n){var o=this.__data__;if(ba){var u=o[n];return u===d?t:u}return je.call(o,n)?o[n]:t}function xy(n){var o=this.__data__;return ba?o[n]!==t:je.call(o,n)}function Cy(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=ba&&o===t?d:o,this}bn.prototype.clear=Sy,bn.prototype.delete=wy,bn.prototype.get=Ty,bn.prototype.has=xy,bn.prototype.set=Cy;function xr(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 Ry(){this.__data__=[],this.size=0}function Oy(n){var o=this.__data__,u=Co(o,n);if(u<0)return!1;var f=o.length-1;return u==f?o.pop():bo.call(o,u,1),--this.size,!0}function Ay(n){var o=this.__data__,u=Co(o,n);return u<0?t:o[u][1]}function Py(n){return Co(this.__data__,n)>-1}function Dy(n,o){var u=this.__data__,f=Co(u,n);return f<0?(++this.size,u.push([n,o])):u[f][1]=o,this}xr.prototype.clear=Ry,xr.prototype.delete=Oy,xr.prototype.get=Ay,xr.prototype.has=Py,xr.prototype.set=Dy;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 Iy(){this.size=0,this.__data__={hash:new bn,map:new(ma||xr),string:new bn}}function Fy(n){var o=jo(this,n).delete(n);return this.size-=o?1:0,o}function $y(n){return jo(this,n).get(n)}function My(n){return jo(this,n).has(n)}function Ny(n,o){var u=jo(this,n),f=u.size;return u.set(n,o),this.size+=u.size==f?0:1,this}Cr.prototype.clear=Iy,Cr.prototype.delete=Fy,Cr.prototype.get=$y,Cr.prototype.has=My,Cr.prototype.set=Ny;function _n(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new Cr;++o<u;)this.add(n[o])}function Ly(n){return this.__data__.set(n,d),this}function jy(n){return this.__data__.has(n)}_n.prototype.add=_n.prototype.push=Ly,_n.prototype.has=jy;function cr(n){var o=this.__data__=new xr(n);this.size=o.size}function ky(){this.__data__=new xr,this.size=0}function By(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function Wy(n){return this.__data__.get(n)}function Uy(n){return this.__data__.has(n)}function Hy(n,o){var u=this.__data__;if(u instanceof xr){var f=u.__data__;if(!ma||f.length<s-1)return f.push([n,o]),this.size=++u.size,this;u=this.__data__=new Cr(f)}return u.set(n,o),this.size=u.size,this}cr.prototype.clear=ky,cr.prototype.delete=By,cr.prototype.get=Wy,cr.prototype.has=Uy,cr.prototype.set=Hy;function Xl(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,Qm):[],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")||Pr(N,A)))&&T.push(N);return T}function Zl(n){var o=n.length;return o?n[Fi(0,o-1)]:t}function qy(n,o){return ko(Ft(n),En(o,0,n.length))}function Gy(n){return ko(Ft(n))}function wi(n,o,u){(u!==t&&!lr(n[o],u)||u===t&&!(o in n))&&Rr(n,o,u)}function Ea(n,o,u){var f=n[o];(!(je.call(n,o)&&lr(f,u))||u===t&&!(o in n))&&Rr(n,o,u)}function Co(n,o){for(var u=n.length;u--;)if(lr(n[u][0],o))return u;return-1}function zy(n,o,u,f){return Xr(n,function(h,y,S){o(f,h,u(h),S)}),f}function Ql(n,o){return n&&br(o,pt(o),n)}function Yy(n,o){return n&&br(o,Mt(o),n)}function Rr(n,o,u){o=="__proto__"&&_o?_o(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=M0(n),!T)return Ft(n,S)}else{var B=_t(n),V=B==F||B==Ye;if(tn(n))return Tf(n,T);if(B==Vt||B==fe||V&&!h){if(S=A||V?{}:Hf(n),!T)return A?T0(n,Yy(S,n)):w0(n,Ql(S,n))}else{if(!Ge[B])return h?n:{};S=N0(n,B,T)}}y||(y=new cr);var ee=y.get(n);if(ee)return ee;y.set(n,S),yd(n)?n.forEach(function(oe){S.add(er(oe,o,u,oe,n,y))}):vd(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]),Ea(S,Se,er(oe,o,u,Se,n,y))}),S}function Vy(n){var o=pt(n);return function(u){return ef(u,n,o)}}function ef(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 tf(n,o,u){if(typeof n!="function")throw new Zt(c);return Oa(function(){n.apply(t,u)},o)}function Sa(n,o,u,f){var h=-1,y=uo,S=!0,T=n.length,A=[],N=o.length;if(!T)return A;u&&(o=Je(o,kt(u))),f?(y=li,S=!1):o.length>=s&&(y=ga,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=Af(yr),rf=Af(Ci,!0);function Ky(n,o){var u=!0;return Xr(n,function(f,h,y){return u=!!o(f,h,y),u}),u}function Ro(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&&!Wt(S):u(S,T)))var T=S,A=y}return A}function Jy(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:_d(f);u<f;)n[u++]=o;return n}function nf(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=j0),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=Pf(),af=Pf(!0);function yr(n,o){return n&&xi(n,o,pt)}function Ci(n,o){return n&&af(n,o,pt)}function Oo(n,o){return Yr(o,function(u){return Dr(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 of(n,o,u){var f=o(n);return ve(n)?f:Vr(f,u(n))}function Rt(n){return n==null?n===t?Xa:Ja:yn&&yn in Ue(n)?I0(n):G0(n)}function Ri(n,o){return n>o}function Xy(n,o){return n!=null&&je.call(n,o)}function Zy(n,o){return n!=null&&o in Ue(n)}function Qy(n,o,u){return n>=bt(o,u)&&n<lt(o,u)}function Oi(n,o,u){for(var f=u?li:uo,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,kt(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?ga(V,ae):f(N,ae,u))){for(S=y;--S;){var be=T[S];if(!(be?ga(be,ae):f(n[S],ae,u)))continue e}V&&V.push(ae),N.push(ee)}}return N}function e0(n,o,u,f){return yr(n,function(h,y,S){o(f,u(h),y,S)}),f}function wa(n,o,u){o=Qr(o,n),n=Yf(n,o);var f=n==null?n:n[_r(rr(o))];return f==null?t:jt(f,n,u)}function sf(n){return rt(n)&&Rt(n)==fe}function t0(n){return rt(n)&&Rt(n)==pn}function r0(n){return rt(n)&&Rt(n)==he}function Ta(n,o,u,f,h){return n===o?!0:n==null||o==null||!rt(n)&&!rt(o)?n!==n&&o!==o:n0(n,o,u,f,Ta,h)}function n0(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 cr),S||Hn(n)?Bf(n,o,u,f,h,y):P0(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 cr),h(be,oe,u,f,y)}}return V?(y||(y=new cr),D0(n,o,u,f,h,y)):!1}function a0(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 cr;if(f)var V=f(N,L,A,n,o,B);if(!(V===t?Ta(L,N,x|C,f,B):V))return!1}}return!0}function uf(n){if(!Qe(n)||B0(n))return!1;var o=Dr(n)?ay:ir;return o.test(Tn(n))}function o0(n){return rt(n)&&Rt(n)==sr}function s0(n){return rt(n)&&_t(n)==Ct}function i0(n){return rt(n)&&Go(n.length)&&!!Ve[Rt(n)]}function cf(n){return typeof n=="function"?n:n==null?Nt:typeof n=="object"?ve(n)?df(n[0],n[1]):ff(n):Dd(n)}function Pi(n){if(!Ra(n))return ly(n);var o=[];for(var u in Ue(n))je.call(n,u)&&u!="constructor"&&o.push(u);return o}function u0(n){if(!Qe(n))return q0(n);var o=Ra(n),u=[];for(var f in n)f=="constructor"&&(o||!je.call(n,f))||u.push(f);return u}function Di(n,o){return n<o}function lf(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 ff(n){var o=zi(n);return o.length==1&&o[0][2]?Gf(o[0][0],o[0][1]):function(u){return u===n||Ai(u,n,o)}}function df(n,o){return Vi(n)&&qf(o)?Gf(_r(n),o):function(u){var f=au(u,n);return f===t&&f===o?ou(u,n):Ta(o,f,x|C)}}function Ao(n,o,u,f,h){n!==o&&xi(o,function(y,S){if(h||(h=new cr),Qe(y))c0(n,o,S,u,Ao,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 c0(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=Tf(A,!0)):ae?(B=!1,L=xf(A,!0)):L=[]:Aa(A)||xn(A)?(L=T,xn(T)?L=Ed(T):(!Qe(T)||Dr(T))&&(L=Hf(A))):B=!1}B&&(S.set(A,L),h(L,A,f,y,S),S.delete(A)),wi(n,u,L)}function pf(n,o){var u=n.length;if(u)return o+=o<0?u:0,Pr(o,u)?n[o]:t}function hf(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,kt(re()));var h=lf(n,function(y,S,T){var A=Je(o,function(N){return N(y)});return{criteria:A,index:++f,value:y}});return Nm(h,function(y,S){return S0(y,S,u)})}function l0(n,o){return gf(n,o,function(u,f){return ou(n,f)})}function gf(n,o,u){for(var f=-1,h=o.length,y={};++f<h;){var S=o[f],T=Sn(n,S);u(T,S)&&xa(y,Qr(S,n),T)}return y}function f0(n){return function(o){return Sn(o,n)}}function Ii(n,o,u,f){var h=f?Mm:In,y=-1,S=o.length,T=n;for(n===o&&(o=Ft(o)),u&&(T=Je(n,kt(u)));++y<S;)for(var A=0,N=o[y],L=u?u(N):N;(A=h(T,L,A,f))>-1;)T!==n&&bo.call(T,A,1),bo.call(n,A,1);return n}function vf(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;Pr(h)?bo.call(n,h,1):Ni(n,h)}}return n}function Fi(n,o){return n+So(Kl()*(o-n+1))}function d0(n,o,u,f){for(var h=-1,y=lt(Eo((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=So(o/2),o&&(n+=n);while(o);return u}function _e(n,o){return Xi(zf(n,o,Nt),n+"")}function p0(n){return Zl(qn(n))}function h0(n,o){var u=qn(n);return ko(u,En(o,0,u.length))}function xa(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:Pr(o[h+1])?[]:{})}Ea(T,A,N),T=T[A]}return n}var mf=wo?function(n,o){return wo.set(n,o),n}:Nt,g0=_o?function(n,o){return _o(n,"toString",{configurable:!0,enumerable:!1,value:iu(o),writable:!0})}:Nt;function v0(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 m0(n,o){var u;return Xr(n,function(f,h,y){return u=o(f,h,y),!u}),!!u}function Po(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&&!Wt(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=Wt(o),N=o===t;h<y;){var L=So((h+y)/2),B=u(n[L]),V=B!==t,ee=B===null,ae=B===B,be=Wt(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 yf(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||!lr(T,A)){var A=T;y[h++]=S===0?0:S}}return y}function bf(n){return typeof n=="number"?n:Wt(n)?W:+n}function Bt(n){if(typeof n=="string")return n;if(ve(n))return Je(n,Bt)+"";if(Wt(n))return Jl?Jl.call(n):"";var o=n+"";return o=="0"&&1/n==-He?"-0":o}function Zr(n,o,u){var f=-1,h=uo,y=n.length,S=!0,T=[],A=T;if(u)S=!1,h=li;else if(y>=s){var N=o?null:O0(n);if(N)return lo(N);S=!1,h=ga,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=Yf(n,o),n==null||delete n[_r(rr(o))]}function _f(n,o,u,f){return xa(n,o,u(Sn(n,o)),f)}function Do(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 Ef(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]=Sa(y[h]||S,n[T],o,u));return Zr(vt(y,1),o,u)}function Sf(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 ji(n){return at(n)?n:[]}function ki(n){return typeof n=="function"?n:Nt}function Qr(n,o){return ve(n)?n:Vi(n,o)?[n]:Xf(De(n))}var y0=_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 wf=oy||function(n){return gt.clearTimeout(n)};function Tf(n,o){if(o)return n.slice();var u=n.length,f=ql?ql(u):new n.constructor(u);return n.copy(f),f}function Bi(n){var o=new n.constructor(n.byteLength);return new mo(o).set(new mo(n)),o}function b0(n,o){var u=o?Bi(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function _0(n){var o=new n.constructor(n.source,Kt.exec(n));return o.lastIndex=n.lastIndex,o}function E0(n){return _a?Ue(_a.call(n)):{}}function xf(n,o){var u=o?Bi(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function Cf(n,o){if(n!==o){var u=n!==t,f=n===null,h=n===n,y=Wt(n),S=o!==t,T=o===null,A=o===o,N=Wt(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 S0(n,o,u){for(var f=-1,h=n.criteria,y=o.criteria,S=h.length,T=u.length;++f<S;){var A=Cf(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 Rf(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 Of(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?Rr(u,T,A):Ea(u,T,A)}return u}function w0(n,o){return br(n,Yi(n),o)}function T0(n,o){return br(n,Wf(n),o)}function Io(n,o){return function(u,f){var h=ve(u)?Am:zy,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 Af(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 Pf(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 x0(n,o,u){var f=o&I,h=Ca(n);function y(){var S=this&&this!==gt&&this instanceof y?h:n;return S.apply(f?u:this,arguments)}return y}function Df(n){return function(o){o=De(o);var u=Fn(o)?ur(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(Ad(Od(o).replace(gm,"")),n,"")}}function Ca(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=kn(n.prototype),f=n.apply(u,o);return Qe(f)?f:u}}function C0(n,o,u){var f=Ca(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 Nf(n,o,Fo,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 If(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 Ff(n){return Ar(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&&Lo(y)=="wrapper")var S=new Qt([],!0)}for(f=S?f:u;++f<u;){y=o[f];var T=Lo(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[Lo(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 Fo(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:Ca(n);function oe(){for(var Se=arguments.length,Ce=D(Se),Ut=Se;Ut--;)Ce[Ut]=arguments[Ut];if(ee)var At=Un(oe),Ht=jm(Ce,At);if(f&&(Ce=Rf(Ce,f,h,ee)),y&&(Ce=Of(Ce,y,S,ee)),Se-=Ht,ee&&Se<N){var ot=Kr(Ce,At);return Nf(n,o,Fo,oe.placeholder,u,Ce,ot,T,A,N-Se)}var fr=B?u:this,Fr=V?fr[n]:n;return Se=Ce.length,T?Ce=z0(Ce,T):ae&&Se>1&&Ce.reverse(),L&&A<Se&&(Ce.length=A),this&&this!==gt&&this instanceof oe&&(Fr=be||Ca(Fr)),Fr.apply(fr,Ce)}return oe}function $f(n,o){return function(u,f){return e0(u,n,o(f),{})}}function $o(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=Bt(u),f=Bt(f)):(u=bf(u),f=bf(f)),h=n(u,f)}return h}}function Wi(n){return Ar(function(o){return o=Je(o,kt(re())),_e(function(u){var f=this;return n(o,function(h){return jt(h,f,u)})})})}function Mo(n,o){o=o===t?" ":Bt(o);var u=o.length;if(u<2)return u?$i(o,n):o;var f=$i(o,Eo(n/$n(o)));return Fn(o)?en(ur(f),0,n).join(""):f.slice(0,n)}function R0(n,o,u,f){var h=o&I,y=Ca(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 Mf(n){return function(o,u,f){return f&&typeof f!="number"&&Ot(o,u,f)&&(u=f=t),o=Ir(o),u===t?(u=o,o=0):u=Ir(u),f=f===t?o<u?1:-1:Ir(f),d0(o,u,f,n)}}function No(n){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=nr(o),u=nr(u)),n(o,u)}}function Nf(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 Ki(n)&&Vf(oe,be),oe.placeholder=f,Kf(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&&Vl(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 O0=Ln&&1/lo(new Ln([,-0]))[1]==He?function(n){return new Ln(n)}:lu;function Lf(n){return function(o){var u=_t(o);return u==qe?yi(o):u==Ct?Gm(o):Lm(o,n(o))}}function Or(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&&H0(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=x0(n,o,u);else o==M||o==j?ae=C0(n,o,T):(o==O||o==(I|O))&&!h.length?ae=R0(n,o,u,f):ae=Fo.apply(t,ee);var be=V?mf:Vf;return Kf(be(ae,ee),n,o)}function jf(n,o,u,f){return n===t||lr(n,Nn[u])&&!je.call(f,u)?o:n}function kf(n,o,u,f,h,y){return Qe(n)&&Qe(o)&&(y.set(o,n),Ao(n,o,t,kf,y),y.delete(o)),n}function A0(n){return Aa(n)?t:n}function Bf(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(!ga(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 P0(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 mo(n),new mo(o)));case ue:case he:case yt:return lr(+n,+o);case K:return n.name==o.name&&n.message==o.message;case sr:case fn:return n==o+"";case qe:var T=yi;case Ct:var A=f&x;if(T||(T=lo),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=Bf(T(n),T(o),f,h,y,S);return S.delete(n),L;case dn:if(_a)return _a.call(n)==_a.call(o)}return!1}function D0(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: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 Ut=S?f(Ce,Se,V,o,n,y):f(Se,Ce,V,n,o,y);if(!(Ut===t?Se===Ce||h(Se,Ce,u,f,y):Ut)){be=!1;break}oe||(oe=V=="constructor")}if(be&&!oe){var At=n.constructor,Ht=o.constructor;At!=Ht&&"constructor"in n&&"constructor"in o&&!(typeof At=="function"&&At instanceof At&&typeof Ht=="function"&&Ht instanceof Ht)&&(be=!1)}return y.delete(n),y.delete(o),be}function Ar(n){return Xi(zf(n,t,td),n+"")}function Hi(n){return of(n,pt,Yi)}function qi(n){return of(n,Mt,Wf)}var Gi=wo?function(n){return wo.get(n)}:lu;function Lo(n){for(var o=n.name+"",u=jn[o],f=je.call(jn,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=je.call(v,"placeholder")?v:n;return o.placeholder}function re(){var n=v.iteratee||uu;return n=n===uu?cf:n,arguments.length?n(arguments[0],arguments[1]):n}function jo(n,o){var u=n.__data__;return k0(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,qf(h)]}return o}function wn(n,o){var u=Um(n,o);return uf(u)?u:t}function I0(n){var o=je.call(n,yn),u=n[yn];try{n[yn]=t;var f=!0}catch{}var h=go.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 zl.call(n,o)}))}:fu,Wf=_i?function(n){for(var o=[];n;)Vr(o,Yi(n)),n=yo(n);return o}:fu,_t=Rt;(Ei&&_t(new Ei(new ArrayBuffer(1)))!=Gr||ma&&_t(new ma)!=qe||Si&&_t(Si.resolve())!=ln||Ln&&_t(new Ln)!=Ct||ya&&_t(new ya)!=Tr)&&(_t=function(n){var o=Rt(n),u=o==Vt?n.constructor:t,f=u?Tn(u):"";if(f)switch(f){case hy:return Gr;case gy:return qe;case vy:return ln;case my:return Ct;case yy:return Tr}return o});function F0(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 $0(n){var o=n.match(Le);return o?o[1].split(xe):[]}function Uf(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&&Go(h)&&Pr(S,h)&&(ve(n)||xn(n)))}function M0(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 Hf(n){return typeof n.constructor=="function"&&!Ra(n)?kn(yo(n)):{}}function N0(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 b0(n,u);case la:case fa:case da:case pa:case hn:case Pn:case mr:case gn:case vn:return xf(n,u);case qe:return new f;case yt:case fn:return new f(n);case sr:return _0(n);case Ct:return new f;case dn:return E0(n)}}function L0(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 j0(n){return ve(n)||xn(n)||!!(Vl&&n&&n[Vl])}function Pr(n,o){var u=typeof n;return o=o??nt,!!o&&(u=="number"||u!="symbol"&&Jv.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)&&Pr(o,u.length):f=="string"&&o in u)?lr(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||Wt(n)?!0:ti.test(n)||!ei.test(n)||o!=null&&n in Ue(o)}function k0(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function Ki(n){var o=Lo(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 B0(n){return!!ql&&ql in n}var W0=po?Dr:du;function Ra(n){var o=n&&n.constructor,u=typeof o=="function"&&o.prototype||Nn;return n===u}function Gf(n){return n===n&&!Qe(n)}function zf(n,o){return function(u){return u==null?!1:u[n]===o&&(o!==t||n in Ue(u))}}function U0(n){var o=Ho(n,function(f){return u.size===p&&u.clear(),f}),u=o.cache;return o}function H0(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?Of(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?Af(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 q0(n){var o=[];if(n!=null)for(var u in Ue(n))o.push(u);return o}function G0(n){return go.call(n)}function Yf(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 Vf(n,o){return o.length<2?n:Sn(n,tr(o,0,-1))}function z0(n,o){for(var u=n.length,f=bt(o.length,u),h=Ft(n);f--;){var y=o[f];n[f]=Pr(y,u)?h[y]:t}return n}function Ji(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var Kf=Xf(yf),Oa=iy||function(n,o){return gt.setTimeout(n,o)},Xi=Xf(g0);function Jf(n,o,u){var f=o+"";return Xi(n,L0(f,Y0($0(f),u)))}function Xf(n){var o=0,u=0;return function(){var f=fy(),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 Zf=U0(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"||Wt(n))return n;var o=n+"";return o=="0"&&1/n==-He?"-0":o}function Tn(n){if(n!=null){try{return ho.call(n)}catch{}try{return n+""}catch{}}return""}function Y0(n,o){return Xt(se,function(u){var f="_."+u[0];o&u[1]&&!uo(n,f)&&n.push(f)}),n.sort()}function Qf(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 V0(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(Eo(f/o));h<f;)S[y++]=tr(n,h,h+=o);return S}function K0(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 J0(){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 X0=_e(function(n,o){return at(n)?Sa(n,vt(o,1,at,!0)):[]}),Z0=_e(function(n,o){var u=rr(o);return at(u)&&(u=t),at(n)?Sa(n,vt(o,1,at,!0),re(u,2)):[]}),Q0=_e(function(n,o){var u=rr(o);return at(u)&&(u=t),at(n)?Sa(n,vt(o,1,at,!0),t,u):[]});function eb(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 tb(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 rb(n,o){return n&&n.length?Do(n,re(o,3),!0,!0):[]}function nb(n,o){return n&&n.length?Do(n,re(o,3),!0):[]}function ab(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),Jy(n,o,u,f)):[]}function ed(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)),co(n,re(o,3),h)}function td(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)),co(n,re(o,3),h,!0)}function rd(n){var o=n==null?0:n.length;return o?vt(n,1):[]}function ob(n){var o=n==null?0:n.length;return o?vt(n,He):[]}function sb(n,o){var u=n==null?0:n.length;return u?(o=o===t?1:me(o),vt(n,o)):[]}function ib(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 nd(n){return n&&n.length?n[0]:t}function ub(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 cb(n){var o=n==null?0:n.length;return o?tr(n,0,-1):[]}var lb=_e(function(n){var o=Je(n,ji);return o.length&&o[0]===n[0]?Oi(o):[]}),fb=_e(function(n){var o=rr(n),u=Je(n,ji);return o===rr(u)?o=t:u.pop(),u.length&&u[0]===n[0]?Oi(u,re(o,2)):[]}),db=_e(function(n){var o=rr(n),u=Je(n,ji);return o=typeof o=="function"?o:t,o&&u.pop(),u.length&&u[0]===n[0]?Oi(u,t,o):[]});function pb(n,o){return n==null?"":cy.call(n,o)}function rr(n){var o=n==null?0:n.length;return o?n[o-1]:t}function hb(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?Ym(n,o,h):co(n,Nl,h,!0)}function gb(n,o){return n&&n.length?hf(n,me(o)):t}var vb=_e(ad);function ad(n,o){return n&&n.length&&o&&o.length?Ii(n,o):n}function mb(n,o,u){return n&&n.length&&o&&o.length?Ii(n,o,re(u,2)):n}function yb(n,o,u){return n&&n.length&&o&&o.length?Ii(n,o,t,u):n}var bb=Ar(function(n,o){var u=n==null?0:n.length,f=Ti(n,o);return mf(n,Je(o,function(h){return Pr(h,u)?+h:h}).sort(Rf)),f});function _b(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 mf(n,h),u}function Zi(n){return n==null?n:py.call(n)}function Eb(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 Sb(n,o){return Po(n,o)}function wb(n,o,u){return Mi(n,o,re(u,2))}function Tb(n,o){var u=n==null?0:n.length;if(u){var f=Po(n,o);if(f<u&&lr(n[f],o))return f}return-1}function xb(n,o){return Po(n,o,!0)}function Cb(n,o,u){return Mi(n,o,re(u,2),!0)}function Rb(n,o){var u=n==null?0:n.length;if(u){var f=Po(n,o,!0)-1;if(lr(n[f],o))return f}return-1}function Ob(n){return n&&n.length?bf(n):[]}function Ab(n,o){return n&&n.length?bf(n,re(o,2)):[]}function Pb(n){var o=n==null?0:n.length;return o?tr(n,1,o):[]}function Db(n,o,u){return n&&n.length?(o=u||o===t?1:me(o),tr(n,0,o<0?0:o)):[]}function Ib(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 Fb(n,o){return n&&n.length?Do(n,re(o,3),!1,!0):[]}function $b(n,o){return n&&n.length?Do(n,re(o,3)):[]}var Mb=_e(function(n){return Zr(vt(n,1,at,!0))}),Nb=_e(function(n){var o=rr(n);return at(o)&&(o=t),Zr(vt(n,1,at,!0),re(o,2))}),Lb=_e(function(n){var o=rr(n);return o=typeof o=="function"?o:t,Zr(vt(n,1,at,!0),t,o)});function jb(n){return n&&n.length?Zr(n):[]}function kb(n,o){return n&&n.length?Zr(n,re(o,2)):[]}function Bb(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 od(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 Wb=_e(function(n,o){return at(n)?Sa(n,o):[]}),Ub=_e(function(n){return Li(Yr(n,at))}),Hb=_e(function(n){var o=rr(n);return at(o)&&(o=t),Li(Yr(n,at),re(o,2))}),qb=_e(function(n){var o=rr(n);return o=typeof o=="function"?o:t,Li(Yr(n,at),t,o)}),Gb=_e(Qi);function zb(n,o){return wf(n||[],o||[],Ea)}function Yb(n,o){return wf(n||[],o||[],xa)}var Vb=_e(function(n){var o=n.length,u=o>1?n[o-1]:t;return u=typeof u=="function"?(n.pop(),u):t,od(n,u)});function sd(n){var o=v(n);return o.__chain__=!0,o}function Kb(n,o){return o(n),n}function Bo(n,o){return o(n)}var Jb=Ar(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)||!Pr(u)?this.thru(h):(f=f.slice(u,+u+(o?1:0)),f.__actions__.push({func:Bo,args:[h],thisArg:t}),new Qt(f,this.__chain__).thru(function(y){return o&&!y.length&&y.push(t),y}))});function Xb(){return sd(this)}function Zb(){return new Qt(this.value(),this.__chain__)}function Qb(){this.__values__===t&&(this.__values__=_d(this.value()));var n=this.__index__>=this.__values__.length,o=n?t:this.__values__[this.__index__++];return{done:n,value:o}}function e_(){return this}function t_(n){for(var o,u=this;u instanceof xo;){var f=Qf(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 r_(){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:Bo,args:[Zi],thisArg:t}),new Qt(o,this.__chain__)}return this.thru(Zi)}function n_(){return Sf(this.__wrapped__,this.__actions__)}var a_=Io(function(n,o,u){je.call(n,u)?++n[u]:Rr(n,u,1)});function o_(n,o,u){var f=ve(n)?$l:Ky;return u&&Ot(n,o,u)&&(o=t),f(n,re(o,3))}function s_(n,o){var u=ve(n)?Yr:af;return u(n,re(o,3))}var i_=Ff(ed),u_=Ff(td);function c_(n,o){return vt(Wo(n,o),1)}function l_(n,o){return vt(Wo(n,o),He)}function f_(n,o,u){return u=u===t?1:me(u),vt(Wo(n,o),u)}function id(n,o){var u=ve(n)?Xt:Xr;return u(n,re(o,3))}function ud(n,o){var u=ve(n)?Pm:nf;return u(n,re(o,3))}var d_=Io(function(n,o,u){je.call(n,u)?n[u].push(o):Rr(n,u,[o])});function p_(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)),zo(n)?u<=h&&n.indexOf(o,u)>-1:!!h&&In(n,o,u)>-1}var h_=_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):wa(S,o,u)}),y}),g_=Io(function(n,o,u){Rr(n,u,o)});function Wo(n,o){var u=ve(n)?Je:ff;return u(n,re(o,3))}function v_(n,o,u,f){return n==null?[]:(ve(o)||(o=o==null?[]:[o]),u=f?t:u,ve(u)||(u=u==null?[]:[u]),gf(n,o,u))}var m_=Io(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function y_(n,o,u){var f=ve(n)?fi:jl,h=arguments.length<3;return f(n,re(o,4),u,h,Xr)}function b_(n,o,u){var f=ve(n)?Dm:jl,h=arguments.length<3;return f(n,re(o,4),u,h,nf)}function __(n,o){var u=ve(n)?Yr:af;return u(n,qo(re(o,3)))}function E_(n){var o=ve(n)?Ql:p0;return o(n)}function S_(n,o,u){(u?Ot(n,o,u):o===t)?o=1:o=me(o);var f=ve(n)?qy:h0;return f(n,o)}function w_(n){var o=ve(n)?Gy:v0;return o(n)}function T_(n){if(n==null)return 0;if($t(n))return zo(n)?$n(n):n.length;var o=_t(n);return o==qe||o==Ct?n.size:Pi(n).length}function x_(n,o,u){var f=ve(n)?di:m0;return u&&Ot(n,o,u)&&(o=t),f(n,re(o,3))}var C_=_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]]),gf(n,vt(o,1),[])}),Uo=sy||function(){return gt.Date.now()};function R_(n,o){if(typeof o!="function")throw new Zt(c);return n=me(n),function(){if(--n<1)return o.apply(this,arguments)}}function cd(n,o,u){return o=u?t:o,o=n&&o==null?n.length:o,Or(n,H,t,t,t,t,o)}function ld(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 Or(n,f,o,u,h)}),fd=_e(function(n,o,u){var f=I|P;if(u.length){var h=Kr(u,Un(fd));f|=O}return Or(o,f,n,u,h)});function dd(n,o,u){o=u?t:o;var f=Or(n,M,t,t,t,t,t,o);return f.placeholder=dd.placeholder,f}function pd(n,o,u){o=u?t:o;var f=Or(n,j,t,t,t,t,t,o);return f.placeholder=pd.placeholder,f}function hd(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 fr=f,Fr=h;return f=h=t,N=ot,S=n.apply(Fr,fr),S}function ae(ot){return N=ot,T=Oa(Se,o),L?ee(ot):S}function be(ot){var fr=ot-A,Fr=ot-N,Fd=o-fr;return B?bt(Fd,y-Fr):Fd}function oe(ot){var fr=ot-A,Fr=ot-N;return A===t||fr>=o||fr<0||B&&Fr>=y}function Se(){var ot=Uo();if(oe(ot))return Ce(ot);T=Oa(Se,be(ot))}function Ce(ot){return T=t,V&&f?ee(ot):(f=h=t,S)}function Ut(){T!==t&&Tf(T),N=0,f=A=h=T=t}function At(){return T===t?S:Ce(Uo())}function Ht(){var ot=Uo(),fr=oe(ot);if(f=arguments,h=this,A=ot,fr){if(T===t)return ae(A);if(B)return Tf(T),T=Oa(Se,o),ee(A)}return T===t&&(T=Oa(Se,o)),S}return Ht.cancel=Ut,Ht.flush=At,Ht}var O_=_e(function(n,o){return rf(n,1,o)}),A_=_e(function(n,o,u){return rf(n,nr(o)||0,u)});function P_(n){return Or(n,te)}function Ho(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(Ho.Cache||Cr),u}Ho.Cache=Cr;function qo(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 D_(n){return ld(2,n)}var I_=y0(function(n,o){o=o.length==1&&ve(o[0])?Je(o[0],kt(re())):Je(vt(o,1),kt(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 Or(n,O,t,o,u)}),gd=_e(function(n,o){var u=Kr(o,Un(gd));return Or(n,Y,t,o,u)}),F_=Ar(function(n,o){return Or(n,z,t,t,t,o)});function $_(n,o){if(typeof n!="function")throw new Zt(c);return o=o===t?o:me(o),_e(n,o)}function M_(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 N_(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),hd(n,o,{leading:f,maxWait:o,trailing:h})}function L_(n){return cd(n,1)}function j_(n,o){return tu(ki(o),n)}function k_(){if(!arguments.length)return[];var n=arguments[0];return ve(n)?n:[n]}function B_(n){return er(n,E)}function W_(n,o){return o=typeof o=="function"?o:t,er(n,E,o)}function U_(n){return er(n,m|E)}function H_(n,o){return o=typeof o=="function"?o:t,er(n,m|E,o)}function q_(n,o){return o==null||tf(n,o,pt(o))}function lr(n,o){return n===o||n!==n&&o!==o}var G_=No(Ri),z_=No(function(n,o){return n>=o}),xn=uf(function(){return arguments}())?uf:function(n){return rt(n)&&je.call(n,"callee")&&!Yl.call(n,"callee")},ve=D.isArray,Y_=Ol?kt(Ol):t0;function $t(n){return n!=null&&Go(n.length)&&!Dr(n)}function at(n){return rt(n)&&$t(n)}function V_(n){return n===!0||n===!1||rt(n)&&Rt(n)==ue}var tn=uy||du,K_=Al?kt(Al):r0;function J_(n){return rt(n)&&n.nodeType===1&&!Aa(n)}function X_(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(Ra(n))return!Pi(n).length;for(var u in n)if(je.call(n,u))return!1;return!0}function Z_(n,o){return Ta(n,o)}function Q_(n,o,u){u=typeof u=="function"?u:t;var f=u?u(n,o):t;return f===t?Ta(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"&&!Aa(n)}function eE(n){return typeof n=="number"&&Kl(n)}function Dr(n){if(!Qe(n))return!1;var o=Rt(n);return o==F||o==Ye||o==ce||o==Ks}function vd(n){return typeof n=="number"&&n==me(n)}function Go(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 md=Pl?kt(Pl):a0;function tE(n,o){return n===o||Ai(n,o,zi(o))}function rE(n,o,u){return u=typeof u=="function"?u:t,Ai(n,o,zi(o),u)}function nE(n){return yd(n)&&n!=+n}function aE(n){if(W0(n))throw new pe(i);return cf(n)}function oE(n){return n===null}function sE(n){return n==null}function yd(n){return typeof n=="number"||rt(n)&&Rt(n)==yt}function Aa(n){if(!rt(n)||Rt(n)!=Vt)return!1;var o=yo(n);if(o===null)return!0;var u=je.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&ho.call(u)==ry}var nu=Dl?kt(Dl):o0;function iE(n){return vd(n)&&n>=-nt&&n<=nt}var bd=Il?kt(Il):s0;function zo(n){return typeof n=="string"||!ve(n)&&rt(n)&&Rt(n)==fn}function Wt(n){return typeof n=="symbol"||rt(n)&&Rt(n)==dn}var Hn=Fl?kt(Fl):i0;function uE(n){return n===t}function cE(n){return rt(n)&&_t(n)==Tr}function lE(n){return rt(n)&&Rt(n)==Js}var fE=No(Di),dE=No(function(n,o){return n<=o});function _d(n){if(!n)return[];if($t(n))return zo(n)?ur(n):Ft(n);if(va&&n[va])return qm(n[va]());var o=_t(n),u=o==qe?yi:o==Ct?lo:qn;return u(n)}function Ir(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=Ir(n),u=o%1;return o===o?u?o-u:o:0}function Ed(n){return n?En(me(n),0,G):0}function nr(n){if(typeof n=="number")return n;if(Wt(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=kl(n);var u=ao.test(n);return u||Kv.test(n)?Rm(n.slice(2),u?2:8):zr.test(n)?W:+n}function Sd(n){return br(n,Mt(n))}function pE(n){return n?En(me(n),-nt,nt):n===0?n:0}function De(n){return n==null?"":Bt(n)}var hE=Bn(function(n,o){if(Ra(o)||$t(o)){br(o,pt(o),n);return}for(var u in o)je.call(o,u)&&Ea(n,u,o[u])}),wd=Bn(function(n,o){br(o,Mt(o),n)}),Yo=Bn(function(n,o,u,f){br(o,Mt(o),n,f)}),gE=Bn(function(n,o,u,f){br(o,pt(o),n,f)}),vE=Ar(Ti);function mE(n,o){var u=kn(n);return o==null?u:ef(u,o)}var yE=_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||lr(L,Nn[N])&&!je.call(n,N))&&(n[N]=y[N])}return n}),bE=_e(function(n){return n.push(t,Bf),jt(Td,t,n)});function _E(n,o){return Ml(n,re(o,3),yr)}function EE(n,o){return Ml(n,re(o,3),Ci)}function SE(n,o){return n==null?n:xi(n,re(o,3),Mt)}function wE(n,o){return n==null?n:of(n,re(o,3),Mt)}function TE(n,o){return n&&yr(n,re(o,3))}function xE(n,o){return n&&Ci(n,re(o,3))}function CE(n){return n==null?[]:Oo(n,pt(n))}function RE(n){return n==null?[]:Oo(n,Mt(n))}function au(n,o,u){var f=n==null?t:Sn(n,o);return f===t?u:f}function OE(n,o){return n!=null&&Hf(n,o,Xy)}function ou(n,o){return n!=null&&Hf(n,o,Zy)}var AE=Mf(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=go.call(o)),n[o]=u},iu(Nt)),PE=Mf(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=go.call(o)),je.call(n,o)?n[o].push(u):n[o]=[u]},re),DE=_e(wa);function pt(n){return $t(n)?Zl(n):Pi(n)}function Mt(n){return $t(n)?Zl(n,!0):u0(n)}function IE(n,o){var u={};return o=re(o,3),yr(n,function(f,h,y){Rr(u,o(f,h,y),f)}),u}function FE(n,o){var u={};return o=re(o,3),yr(n,function(f,h,y){Rr(u,h,o(f,h,y))}),u}var $E=Bn(function(n,o,u){Ao(n,o,u)}),Td=Bn(function(n,o,u,f){Ao(n,o,u,f)}),ME=Ar(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,A0));for(var h=o.length;h--;)Ni(u,o[h]);return u});function NE(n,o){return xd(n,qo(re(o)))}var LE=Ar(function(n,o){return n==null?{}:l0(n,o)});function xd(n,o){if(n==null)return{};var u=Je(qi(n),function(f){return[f]});return o=re(o),vf(n,u,function(f,h){return o(f,h[0])})}function jE(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=Dr(y)?y.call(n):y}return n}function kE(n,o,u){return n==null?n:xa(n,o,u)}function BE(n,o,u,f){return f=typeof f=="function"?f:t,n==null?n:xa(n,o,u,f)}var Cd=jf(pt),Rd=jf(Mt);function WE(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=Dr(y)?kn(yo(n)):{}:u={}}return(h?Xt:yr)(n,function(S,T,A){return o(u,S,T,A)}),u}function UE(n,o){return n==null?!0:Ni(n,o)}function HE(n,o,u){return n==null?n:Ef(n,o,ki(u))}function qE(n,o,u,f){return f=typeof f=="function"?f:t,n==null?n:Ef(n,o,ki(u),f)}function qn(n){return n==null?[]:mi(n,pt(n))}function GE(n){return n==null?[]:mi(n,Mt(n))}function zE(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 YE(n,o,u){return o=Ir(o),u===t?(u=o,o=0):u=Ir(u),n=nr(n),Qy(n,o,u)}function VE(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=Ir(n),o===t?(o=n,n=0):o=Ir(o)),n>o){var f=n;n=o,o=f}if(u||n%1||o%1){var h=Jl();return bt(n+h*(o-n+Cm("1e-"+((h+"").length-1))),o)}return Fi(n,o)}var KE=Wn(function(n,o,u){return o=o.toLowerCase(),n+(u?Od(o):o)});function Od(n){return su(De(n).toLowerCase())}function Ad(n){return n=De(n),n&&n.replace(Xv,km).replace(vm,"")}function JE(n,o,u){n=De(n),o=Bt(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 XE(n){return n=De(n),n&&Zs.test(n)?n.replace(ha,Bm):n}function ZE(n){return n=De(n),n&&U.test(n)?n.replace(w,"\\$&"):n}var QE=Wn(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),e1=Wn(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),t1=If("toLowerCase");function r1(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 Mo(So(h),u)+n+Mo(Eo(h),u)}function n1(n,o,u){n=De(n),o=me(o);var f=o?$n(n):0;return o&&f<o?n+Mo(o-f,u):n}function a1(n,o,u){n=De(n),o=me(o);var f=o?$n(n):0;return o&&f<o?Mo(o-f,u)+n:n}function o1(n,o,u){return u||o==null?o=0:o&&(o=+o),dy(De(n).replace(J,""),o||0)}function s1(n,o,u){return(u?Ot(n,o,u):o===t)?o=1:o=me(o),$i(De(n),o)}function i1(){var n=arguments,o=De(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var u1=Wn(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function c1(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=Bt(o),!o&&Fn(n))?en(ur(n),0,u):n.split(o,u)):[]}var l1=Wn(function(n,o,u){return n+(u?" ":"")+su(o)});function f1(n,o,u){return n=De(n),u=u==null?0:En(me(u),0,n.length),o=Bt(o),n.slice(u,u+o.length)==o}function d1(n,o,u){var f=v.templateSettings;u&&Ot(n,o,u)&&(o=t),n=De(n),o=Yo({},o,f,kf);var h=Yo({},o.imports,f.imports,kf),y=pt(h),S=mi(h,y),T,A,N=0,L=o.interpolate||oo,B="__p += '",V=bi((o.escape||oo).source+"|"+L.source+"|"+(L===no?tt:oo).source+"|"+(o.evaluate||oo).source+"|$","g"),ee="//# sourceURL="+(je.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Em+"]")+`
|
|
17
|
+
`)}function j0(n){return ve(n)||xn(n)||!!(Yl&&n&&n[Yl])}function Pr(n,o){var u=typeof n;return o=o??nt,!!o&&(u=="number"||u!="symbol"&&Jv.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)&&Pr(o,u.length):f=="string"&&o in u)?lr(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||Wt(n)?!0:ti.test(n)||!ei.test(n)||o!=null&&n in Ue(o)}function k0(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function Ki(n){var o=Lo(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 B0(n){return!!Hl&&Hl in n}var W0=po?Dr:du;function Ra(n){var o=n&&n.constructor,u=typeof o=="function"&&o.prototype||Nn;return n===u}function qf(n){return n===n&&!Qe(n)}function Gf(n,o){return function(u){return u==null?!1:u[n]===o&&(o!==t||n in Ue(u))}}function U0(n){var o=Ho(n,function(f){return u.size===p&&u.clear(),f}),u=o.cache;return o}function H0(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?Rf(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?Of(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 q0(n){var o=[];if(n!=null)for(var u in Ue(n))o.push(u);return o}function G0(n){return go.call(n)}function zf(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 Yf(n,o){return o.length<2?n:Sn(n,tr(o,0,-1))}function z0(n,o){for(var u=n.length,f=bt(o.length,u),h=Ft(n);f--;){var y=o[f];n[f]=Pr(y,u)?h[y]:t}return n}function Ji(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var Vf=Jf(mf),Oa=iy||function(n,o){return gt.setTimeout(n,o)},Xi=Jf(g0);function Kf(n,o,u){var f=o+"";return Xi(n,L0(f,Y0($0(f),u)))}function Jf(n){var o=0,u=0;return function(){var f=fy(),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 Xf=U0(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"||Wt(n))return n;var o=n+"";return o=="0"&&1/n==-He?"-0":o}function Tn(n){if(n!=null){try{return ho.call(n)}catch{}try{return n+""}catch{}}return""}function Y0(n,o){return Xt(se,function(u){var f="_."+u[0];o&u[1]&&!uo(n,f)&&n.push(f)}),n.sort()}function Zf(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 V0(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(Eo(f/o));h<f;)S[y++]=tr(n,h,h+=o);return S}function K0(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 J0(){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 X0=_e(function(n,o){return at(n)?Sa(n,vt(o,1,at,!0)):[]}),Z0=_e(function(n,o){var u=rr(o);return at(u)&&(u=t),at(n)?Sa(n,vt(o,1,at,!0),re(u,2)):[]}),Q0=_e(function(n,o){var u=rr(o);return at(u)&&(u=t),at(n)?Sa(n,vt(o,1,at,!0),t,u):[]});function eb(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 tb(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 rb(n,o){return n&&n.length?Do(n,re(o,3),!0,!0):[]}function nb(n,o){return n&&n.length?Do(n,re(o,3),!0):[]}function ab(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),Jy(n,o,u,f)):[]}function Qf(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)),co(n,re(o,3),h)}function ed(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)),co(n,re(o,3),h,!0)}function td(n){var o=n==null?0:n.length;return o?vt(n,1):[]}function ob(n){var o=n==null?0:n.length;return o?vt(n,He):[]}function sb(n,o){var u=n==null?0:n.length;return u?(o=o===t?1:me(o),vt(n,o)):[]}function ib(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 rd(n){return n&&n.length?n[0]:t}function ub(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 cb(n){var o=n==null?0:n.length;return o?tr(n,0,-1):[]}var lb=_e(function(n){var o=Je(n,ji);return o.length&&o[0]===n[0]?Oi(o):[]}),fb=_e(function(n){var o=rr(n),u=Je(n,ji);return o===rr(u)?o=t:u.pop(),u.length&&u[0]===n[0]?Oi(u,re(o,2)):[]}),db=_e(function(n){var o=rr(n),u=Je(n,ji);return o=typeof o=="function"?o:t,o&&u.pop(),u.length&&u[0]===n[0]?Oi(u,t,o):[]});function pb(n,o){return n==null?"":cy.call(n,o)}function rr(n){var o=n==null?0:n.length;return o?n[o-1]:t}function hb(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?Ym(n,o,h):co(n,Ml,h,!0)}function gb(n,o){return n&&n.length?pf(n,me(o)):t}var vb=_e(nd);function nd(n,o){return n&&n.length&&o&&o.length?Ii(n,o):n}function mb(n,o,u){return n&&n.length&&o&&o.length?Ii(n,o,re(u,2)):n}function yb(n,o,u){return n&&n.length&&o&&o.length?Ii(n,o,t,u):n}var bb=Ar(function(n,o){var u=n==null?0:n.length,f=Ti(n,o);return vf(n,Je(o,function(h){return Pr(h,u)?+h:h}).sort(Cf)),f});function _b(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 vf(n,h),u}function Zi(n){return n==null?n:py.call(n)}function Eb(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 Sb(n,o){return Po(n,o)}function wb(n,o,u){return Mi(n,o,re(u,2))}function Tb(n,o){var u=n==null?0:n.length;if(u){var f=Po(n,o);if(f<u&&lr(n[f],o))return f}return-1}function xb(n,o){return Po(n,o,!0)}function Cb(n,o,u){return Mi(n,o,re(u,2),!0)}function Rb(n,o){var u=n==null?0:n.length;if(u){var f=Po(n,o,!0)-1;if(lr(n[f],o))return f}return-1}function Ob(n){return n&&n.length?yf(n):[]}function Ab(n,o){return n&&n.length?yf(n,re(o,2)):[]}function Pb(n){var o=n==null?0:n.length;return o?tr(n,1,o):[]}function Db(n,o,u){return n&&n.length?(o=u||o===t?1:me(o),tr(n,0,o<0?0:o)):[]}function Ib(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 Fb(n,o){return n&&n.length?Do(n,re(o,3),!1,!0):[]}function $b(n,o){return n&&n.length?Do(n,re(o,3)):[]}var Mb=_e(function(n){return Zr(vt(n,1,at,!0))}),Nb=_e(function(n){var o=rr(n);return at(o)&&(o=t),Zr(vt(n,1,at,!0),re(o,2))}),Lb=_e(function(n){var o=rr(n);return o=typeof o=="function"?o:t,Zr(vt(n,1,at,!0),t,o)});function jb(n){return n&&n.length?Zr(n):[]}function kb(n,o){return n&&n.length?Zr(n,re(o,2)):[]}function Bb(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 ad(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 Wb=_e(function(n,o){return at(n)?Sa(n,o):[]}),Ub=_e(function(n){return Li(Yr(n,at))}),Hb=_e(function(n){var o=rr(n);return at(o)&&(o=t),Li(Yr(n,at),re(o,2))}),qb=_e(function(n){var o=rr(n);return o=typeof o=="function"?o:t,Li(Yr(n,at),t,o)}),Gb=_e(Qi);function zb(n,o){return Sf(n||[],o||[],Ea)}function Yb(n,o){return Sf(n||[],o||[],xa)}var Vb=_e(function(n){var o=n.length,u=o>1?n[o-1]:t;return u=typeof u=="function"?(n.pop(),u):t,ad(n,u)});function od(n){var o=v(n);return o.__chain__=!0,o}function Kb(n,o){return o(n),n}function Bo(n,o){return o(n)}var Jb=Ar(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)||!Pr(u)?this.thru(h):(f=f.slice(u,+u+(o?1:0)),f.__actions__.push({func:Bo,args:[h],thisArg:t}),new Qt(f,this.__chain__).thru(function(y){return o&&!y.length&&y.push(t),y}))});function Xb(){return od(this)}function Zb(){return new Qt(this.value(),this.__chain__)}function Qb(){this.__values__===t&&(this.__values__=bd(this.value()));var n=this.__index__>=this.__values__.length,o=n?t:this.__values__[this.__index__++];return{done:n,value:o}}function e_(){return this}function t_(n){for(var o,u=this;u instanceof xo;){var f=Zf(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 r_(){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:Bo,args:[Zi],thisArg:t}),new Qt(o,this.__chain__)}return this.thru(Zi)}function n_(){return Ef(this.__wrapped__,this.__actions__)}var a_=Io(function(n,o,u){je.call(n,u)?++n[u]:Rr(n,u,1)});function o_(n,o,u){var f=ve(n)?Fl:Ky;return u&&Ot(n,o,u)&&(o=t),f(n,re(o,3))}function s_(n,o){var u=ve(n)?Yr:nf;return u(n,re(o,3))}var i_=If(Qf),u_=If(ed);function c_(n,o){return vt(Wo(n,o),1)}function l_(n,o){return vt(Wo(n,o),He)}function f_(n,o,u){return u=u===t?1:me(u),vt(Wo(n,o),u)}function sd(n,o){var u=ve(n)?Xt:Xr;return u(n,re(o,3))}function id(n,o){var u=ve(n)?Pm:rf;return u(n,re(o,3))}var d_=Io(function(n,o,u){je.call(n,u)?n[u].push(o):Rr(n,u,[o])});function p_(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)),zo(n)?u<=h&&n.indexOf(o,u)>-1:!!h&&In(n,o,u)>-1}var h_=_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):wa(S,o,u)}),y}),g_=Io(function(n,o,u){Rr(n,u,o)});function Wo(n,o){var u=ve(n)?Je:lf;return u(n,re(o,3))}function v_(n,o,u,f){return n==null?[]:(ve(o)||(o=o==null?[]:[o]),u=f?t:u,ve(u)||(u=u==null?[]:[u]),hf(n,o,u))}var m_=Io(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function y_(n,o,u){var f=ve(n)?fi:Ll,h=arguments.length<3;return f(n,re(o,4),u,h,Xr)}function b_(n,o,u){var f=ve(n)?Dm:Ll,h=arguments.length<3;return f(n,re(o,4),u,h,rf)}function __(n,o){var u=ve(n)?Yr:nf;return u(n,qo(re(o,3)))}function E_(n){var o=ve(n)?Zl:p0;return o(n)}function S_(n,o,u){(u?Ot(n,o,u):o===t)?o=1:o=me(o);var f=ve(n)?qy:h0;return f(n,o)}function w_(n){var o=ve(n)?Gy:v0;return o(n)}function T_(n){if(n==null)return 0;if($t(n))return zo(n)?$n(n):n.length;var o=_t(n);return o==qe||o==Ct?n.size:Pi(n).length}function x_(n,o,u){var f=ve(n)?di:m0;return u&&Ot(n,o,u)&&(o=t),f(n,re(o,3))}var C_=_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]]),hf(n,vt(o,1),[])}),Uo=sy||function(){return gt.Date.now()};function R_(n,o){if(typeof o!="function")throw new Zt(c);return n=me(n),function(){if(--n<1)return o.apply(this,arguments)}}function ud(n,o,u){return o=u?t:o,o=n&&o==null?n.length:o,Or(n,H,t,t,t,t,o)}function cd(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 Or(n,f,o,u,h)}),ld=_e(function(n,o,u){var f=I|P;if(u.length){var h=Kr(u,Un(ld));f|=O}return Or(o,f,n,u,h)});function fd(n,o,u){o=u?t:o;var f=Or(n,M,t,t,t,t,t,o);return f.placeholder=fd.placeholder,f}function dd(n,o,u){o=u?t:o;var f=Or(n,j,t,t,t,t,t,o);return f.placeholder=dd.placeholder,f}function pd(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 fr=f,Fr=h;return f=h=t,N=ot,S=n.apply(Fr,fr),S}function ae(ot){return N=ot,T=Oa(Se,o),L?ee(ot):S}function be(ot){var fr=ot-A,Fr=ot-N,Id=o-fr;return B?bt(Id,y-Fr):Id}function oe(ot){var fr=ot-A,Fr=ot-N;return A===t||fr>=o||fr<0||B&&Fr>=y}function Se(){var ot=Uo();if(oe(ot))return Ce(ot);T=Oa(Se,be(ot))}function Ce(ot){return T=t,V&&f?ee(ot):(f=h=t,S)}function Ut(){T!==t&&wf(T),N=0,f=A=h=T=t}function At(){return T===t?S:Ce(Uo())}function Ht(){var ot=Uo(),fr=oe(ot);if(f=arguments,h=this,A=ot,fr){if(T===t)return ae(A);if(B)return wf(T),T=Oa(Se,o),ee(A)}return T===t&&(T=Oa(Se,o)),S}return Ht.cancel=Ut,Ht.flush=At,Ht}var O_=_e(function(n,o){return tf(n,1,o)}),A_=_e(function(n,o,u){return tf(n,nr(o)||0,u)});function P_(n){return Or(n,te)}function Ho(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(Ho.Cache||Cr),u}Ho.Cache=Cr;function qo(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 D_(n){return cd(2,n)}var I_=y0(function(n,o){o=o.length==1&&ve(o[0])?Je(o[0],kt(re())):Je(vt(o,1),kt(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 Or(n,O,t,o,u)}),hd=_e(function(n,o){var u=Kr(o,Un(hd));return Or(n,Y,t,o,u)}),F_=Ar(function(n,o){return Or(n,z,t,t,t,o)});function $_(n,o){if(typeof n!="function")throw new Zt(c);return o=o===t?o:me(o),_e(n,o)}function M_(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 N_(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),pd(n,o,{leading:f,maxWait:o,trailing:h})}function L_(n){return ud(n,1)}function j_(n,o){return tu(ki(o),n)}function k_(){if(!arguments.length)return[];var n=arguments[0];return ve(n)?n:[n]}function B_(n){return er(n,E)}function W_(n,o){return o=typeof o=="function"?o:t,er(n,E,o)}function U_(n){return er(n,m|E)}function H_(n,o){return o=typeof o=="function"?o:t,er(n,m|E,o)}function q_(n,o){return o==null||ef(n,o,pt(o))}function lr(n,o){return n===o||n!==n&&o!==o}var G_=No(Ri),z_=No(function(n,o){return n>=o}),xn=sf(function(){return arguments}())?sf:function(n){return rt(n)&&je.call(n,"callee")&&!zl.call(n,"callee")},ve=D.isArray,Y_=Rl?kt(Rl):t0;function $t(n){return n!=null&&Go(n.length)&&!Dr(n)}function at(n){return rt(n)&&$t(n)}function V_(n){return n===!0||n===!1||rt(n)&&Rt(n)==ue}var tn=uy||du,K_=Ol?kt(Ol):r0;function J_(n){return rt(n)&&n.nodeType===1&&!Aa(n)}function X_(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(Ra(n))return!Pi(n).length;for(var u in n)if(je.call(n,u))return!1;return!0}function Z_(n,o){return Ta(n,o)}function Q_(n,o,u){u=typeof u=="function"?u:t;var f=u?u(n,o):t;return f===t?Ta(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"&&!Aa(n)}function eE(n){return typeof n=="number"&&Vl(n)}function Dr(n){if(!Qe(n))return!1;var o=Rt(n);return o==F||o==Ye||o==ce||o==Ks}function gd(n){return typeof n=="number"&&n==me(n)}function Go(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 vd=Al?kt(Al):a0;function tE(n,o){return n===o||Ai(n,o,zi(o))}function rE(n,o,u){return u=typeof u=="function"?u:t,Ai(n,o,zi(o),u)}function nE(n){return md(n)&&n!=+n}function aE(n){if(W0(n))throw new pe(i);return uf(n)}function oE(n){return n===null}function sE(n){return n==null}function md(n){return typeof n=="number"||rt(n)&&Rt(n)==yt}function Aa(n){if(!rt(n)||Rt(n)!=Vt)return!1;var o=yo(n);if(o===null)return!0;var u=je.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&ho.call(u)==ry}var nu=Pl?kt(Pl):o0;function iE(n){return gd(n)&&n>=-nt&&n<=nt}var yd=Dl?kt(Dl):s0;function zo(n){return typeof n=="string"||!ve(n)&&rt(n)&&Rt(n)==fn}function Wt(n){return typeof n=="symbol"||rt(n)&&Rt(n)==dn}var Hn=Il?kt(Il):i0;function uE(n){return n===t}function cE(n){return rt(n)&&_t(n)==Tr}function lE(n){return rt(n)&&Rt(n)==Js}var fE=No(Di),dE=No(function(n,o){return n<=o});function bd(n){if(!n)return[];if($t(n))return zo(n)?ur(n):Ft(n);if(va&&n[va])return qm(n[va]());var o=_t(n),u=o==qe?yi:o==Ct?lo:qn;return u(n)}function Ir(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=Ir(n),u=o%1;return o===o?u?o-u:o:0}function _d(n){return n?En(me(n),0,G):0}function nr(n){if(typeof n=="number")return n;if(Wt(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=jl(n);var u=ao.test(n);return u||Kv.test(n)?Rm(n.slice(2),u?2:8):zr.test(n)?W:+n}function Ed(n){return br(n,Mt(n))}function pE(n){return n?En(me(n),-nt,nt):n===0?n:0}function De(n){return n==null?"":Bt(n)}var hE=Bn(function(n,o){if(Ra(o)||$t(o)){br(o,pt(o),n);return}for(var u in o)je.call(o,u)&&Ea(n,u,o[u])}),Sd=Bn(function(n,o){br(o,Mt(o),n)}),Yo=Bn(function(n,o,u,f){br(o,Mt(o),n,f)}),gE=Bn(function(n,o,u,f){br(o,pt(o),n,f)}),vE=Ar(Ti);function mE(n,o){var u=kn(n);return o==null?u:Ql(u,o)}var yE=_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||lr(L,Nn[N])&&!je.call(n,N))&&(n[N]=y[N])}return n}),bE=_e(function(n){return n.push(t,kf),jt(wd,t,n)});function _E(n,o){return $l(n,re(o,3),yr)}function EE(n,o){return $l(n,re(o,3),Ci)}function SE(n,o){return n==null?n:xi(n,re(o,3),Mt)}function wE(n,o){return n==null?n:af(n,re(o,3),Mt)}function TE(n,o){return n&&yr(n,re(o,3))}function xE(n,o){return n&&Ci(n,re(o,3))}function CE(n){return n==null?[]:Oo(n,pt(n))}function RE(n){return n==null?[]:Oo(n,Mt(n))}function au(n,o,u){var f=n==null?t:Sn(n,o);return f===t?u:f}function OE(n,o){return n!=null&&Uf(n,o,Xy)}function ou(n,o){return n!=null&&Uf(n,o,Zy)}var AE=$f(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=go.call(o)),n[o]=u},iu(Nt)),PE=$f(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=go.call(o)),je.call(n,o)?n[o].push(u):n[o]=[u]},re),DE=_e(wa);function pt(n){return $t(n)?Xl(n):Pi(n)}function Mt(n){return $t(n)?Xl(n,!0):u0(n)}function IE(n,o){var u={};return o=re(o,3),yr(n,function(f,h,y){Rr(u,o(f,h,y),f)}),u}function FE(n,o){var u={};return o=re(o,3),yr(n,function(f,h,y){Rr(u,h,o(f,h,y))}),u}var $E=Bn(function(n,o,u){Ao(n,o,u)}),wd=Bn(function(n,o,u,f){Ao(n,o,u,f)}),ME=Ar(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,A0));for(var h=o.length;h--;)Ni(u,o[h]);return u});function NE(n,o){return Td(n,qo(re(o)))}var LE=Ar(function(n,o){return n==null?{}:l0(n,o)});function Td(n,o){if(n==null)return{};var u=Je(qi(n),function(f){return[f]});return o=re(o),gf(n,u,function(f,h){return o(f,h[0])})}function jE(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=Dr(y)?y.call(n):y}return n}function kE(n,o,u){return n==null?n:xa(n,o,u)}function BE(n,o,u,f){return f=typeof f=="function"?f:t,n==null?n:xa(n,o,u,f)}var xd=Lf(pt),Cd=Lf(Mt);function WE(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=Dr(y)?kn(yo(n)):{}:u={}}return(h?Xt:yr)(n,function(S,T,A){return o(u,S,T,A)}),u}function UE(n,o){return n==null?!0:Ni(n,o)}function HE(n,o,u){return n==null?n:_f(n,o,ki(u))}function qE(n,o,u,f){return f=typeof f=="function"?f:t,n==null?n:_f(n,o,ki(u),f)}function qn(n){return n==null?[]:mi(n,pt(n))}function GE(n){return n==null?[]:mi(n,Mt(n))}function zE(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 YE(n,o,u){return o=Ir(o),u===t?(u=o,o=0):u=Ir(u),n=nr(n),Qy(n,o,u)}function VE(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=Ir(n),o===t?(o=n,n=0):o=Ir(o)),n>o){var f=n;n=o,o=f}if(u||n%1||o%1){var h=Kl();return bt(n+h*(o-n+Cm("1e-"+((h+"").length-1))),o)}return Fi(n,o)}var KE=Wn(function(n,o,u){return o=o.toLowerCase(),n+(u?Rd(o):o)});function Rd(n){return su(De(n).toLowerCase())}function Od(n){return n=De(n),n&&n.replace(Xv,km).replace(vm,"")}function JE(n,o,u){n=De(n),o=Bt(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 XE(n){return n=De(n),n&&Zs.test(n)?n.replace(ha,Bm):n}function ZE(n){return n=De(n),n&&U.test(n)?n.replace(w,"\\$&"):n}var QE=Wn(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),e1=Wn(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),t1=Df("toLowerCase");function r1(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 Mo(So(h),u)+n+Mo(Eo(h),u)}function n1(n,o,u){n=De(n),o=me(o);var f=o?$n(n):0;return o&&f<o?n+Mo(o-f,u):n}function a1(n,o,u){n=De(n),o=me(o);var f=o?$n(n):0;return o&&f<o?Mo(o-f,u)+n:n}function o1(n,o,u){return u||o==null?o=0:o&&(o=+o),dy(De(n).replace(J,""),o||0)}function s1(n,o,u){return(u?Ot(n,o,u):o===t)?o=1:o=me(o),$i(De(n),o)}function i1(){var n=arguments,o=De(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var u1=Wn(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function c1(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=Bt(o),!o&&Fn(n))?en(ur(n),0,u):n.split(o,u)):[]}var l1=Wn(function(n,o,u){return n+(u?" ":"")+su(o)});function f1(n,o,u){return n=De(n),u=u==null?0:En(me(u),0,n.length),o=Bt(o),n.slice(u,u+o.length)==o}function d1(n,o,u){var f=v.templateSettings;u&&Ot(n,o,u)&&(o=t),n=De(n),o=Yo({},o,f,jf);var h=Yo({},o.imports,f.imports,jf),y=pt(h),S=mi(h,y),T,A,N=0,L=o.interpolate||oo,B="__p += '",V=bi((o.escape||oo).source+"|"+L.source+"|"+(L===no?tt:oo).source+"|"+(o.evaluate||oo).source+"|$","g"),ee="//# sourceURL="+(je.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Em+"]")+`
|
|
18
18
|
`;n.replace(V,function(oe,Se,Ce,Ut,At,Ht){return Ce||(Ce=Ut),B+=n.slice(N,Ht).replace(Zv,Wm),Se&&(T=!0,B+=`' +
|
|
19
19
|
__e(`+Se+`) +
|
|
20
20
|
'`),At&&(A=!0,B+=`';
|
|
@@ -31,64 +31,64 @@ __p += '`),Ce&&(B+=`' +
|
|
|
31
31
|
function print() { __p += __j.call(arguments, '') }
|
|
32
32
|
`:`;
|
|
33
33
|
`)+B+`return __p
|
|
34
|
-
}`;var be=Dd(function(){return Oe(y,ee+"return "+B).apply(t,S)});if(be.source=B,ru(be))throw be;return be}function p1(n){return De(n).toLowerCase()}function h1(n){return De(n).toUpperCase()}function g1(n,o,u){if(n=De(n),n&&(u||o===t))return kl(n);if(!n||!(o=Bt(o)))return n;var f=ur(n),h=ur(o),y=Bl(f,h),S=Wl(f,h)+1;return en(f,y,S).join("")}function v1(n,o,u){if(n=De(n),n&&(u||o===t))return n.slice(0,Hl(n)+1);if(!n||!(o=Bt(o)))return n;var f=ur(n),h=Wl(f,ur(o))+1;return en(f,0,h).join("")}function m1(n,o,u){if(n=De(n),n&&(u||o===t))return n.replace(J,"");if(!n||!(o=Bt(o)))return n;var f=ur(n),h=Bl(f,ur(o));return en(f,h).join("")}function y1(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?Bt(o.omission):f}n=De(n);var y=n.length;if(Fn(n)){var S=ur(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(Bt(h),T)!=T){var V=A.lastIndexOf(h);V>-1&&(A=A.slice(0,V))}return A+f}function b1(n){return n=De(n),n&&to.test(n)?n.replace(eo,Vm):n}var _1=Wn(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),su=If("toUpperCase");function Pd(n,o,u){return n=De(n),o=u?t:o,o===t?Hm(n)?Xm(n):$m(n):n.match(o)||[]}var Dd=_e(function(n,o){try{return jt(n,t,o)}catch(u){return ru(u)?u:new pe(u)}}),E1=Ar(function(n,o){return Xt(o,function(u){u=_r(u),Rr(n,u,eu(n[u],n))}),n});function S1(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 w1(n){return Vy(er(n,m))}function iu(n){return function(){return n}}function T1(n,o){return n==null||n!==n?o:n}var x1=$f(),C1=$f(!0);function Nt(n){return n}function uu(n){return lf(typeof n=="function"?n:er(n,m))}function R1(n){return df(er(n,m))}function O1(n,o){return pf(n,er(o,m))}var A1=_e(function(n,o){return function(u){return wa(u,n,o)}}),P1=_e(function(n,o){return function(u){return wa(n,u,o)}});function cu(n,o,u){var f=pt(o),h=Oo(o,f);u==null&&!(Qe(o)&&(h.length||!f.length))&&(u=o,o=n,n=this,h=Oo(o,pt(o)));var y=!(Qe(u)&&"chain"in u)||!!u.chain,S=Dr(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 D1(){return gt._===this&&(gt._=ny),this}function lu(){}function I1(n){return n=me(n),_e(function(o){return hf(o,n)})}var F1=Wi(Je),$1=Wi($l),M1=Wi(di);function Id(n){return Vi(n)?pi(_r(n)):f0(n)}function N1(n){return function(o){return n==null?t:Sn(n,o)}}var L1=Nf(),j1=Nf(!0);function fu(){return[]}function du(){return!1}function k1(){return{}}function B1(){return""}function W1(){return!0}function U1(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 H1(n){return ve(n)?Je(n,_r):Wt(n)?[n]:Ft(Zf(De(n)))}function q1(n){var o=++ty;return De(n)+o}var G1=$o(function(n,o){return n+o},0),z1=Ui("ceil"),Y1=$o(function(n,o){return n/o},1),V1=Ui("floor");function K1(n){return n&&n.length?Ro(n,Nt,Ri):t}function J1(n,o){return n&&n.length?Ro(n,re(o,2),Ri):t}function X1(n){return Ll(n,Nt)}function Z1(n,o){return Ll(n,re(o,2))}function Q1(n){return n&&n.length?Ro(n,Nt,Di):t}function eS(n,o){return n&&n.length?Ro(n,re(o,2),Di):t}var tS=$o(function(n,o){return n*o},1),rS=Ui("round"),nS=$o(function(n,o){return n-o},0);function aS(n){return n&&n.length?gi(n,Nt):0}function oS(n,o){return n&&n.length?gi(n,re(o,2)):0}return v.after=R_,v.ary=cd,v.assign=hE,v.assignIn=wd,v.assignInWith=Yo,v.assignWith=gE,v.at=vE,v.before=ld,v.bind=eu,v.bindAll=E1,v.bindKey=fd,v.castArray=k_,v.chain=sd,v.chunk=V0,v.compact=K0,v.concat=J0,v.cond=S1,v.conforms=w1,v.constant=iu,v.countBy=a_,v.create=mE,v.curry=dd,v.curryRight=pd,v.debounce=hd,v.defaults=yE,v.defaultsDeep=bE,v.defer=O_,v.delay=A_,v.difference=X0,v.differenceBy=Z0,v.differenceWith=Q0,v.drop=eb,v.dropRight=tb,v.dropRightWhile=rb,v.dropWhile=nb,v.fill=ab,v.filter=s_,v.flatMap=c_,v.flatMapDeep=l_,v.flatMapDepth=f_,v.flatten=rd,v.flattenDeep=ob,v.flattenDepth=sb,v.flip=P_,v.flow=x1,v.flowRight=C1,v.fromPairs=ib,v.functions=CE,v.functionsIn=RE,v.groupBy=d_,v.initial=cb,v.intersection=lb,v.intersectionBy=fb,v.intersectionWith=db,v.invert=AE,v.invertBy=PE,v.invokeMap=h_,v.iteratee=uu,v.keyBy=g_,v.keys=pt,v.keysIn=Mt,v.map=Wo,v.mapKeys=IE,v.mapValues=FE,v.matches=R1,v.matchesProperty=O1,v.memoize=Ho,v.merge=$E,v.mergeWith=Td,v.method=A1,v.methodOf=P1,v.mixin=cu,v.negate=qo,v.nthArg=I1,v.omit=ME,v.omitBy=NE,v.once=D_,v.orderBy=v_,v.over=F1,v.overArgs=I_,v.overEvery=$1,v.overSome=M1,v.partial=tu,v.partialRight=gd,v.partition=m_,v.pick=LE,v.pickBy=xd,v.property=Id,v.propertyOf=N1,v.pull=vb,v.pullAll=ad,v.pullAllBy=mb,v.pullAllWith=yb,v.pullAt=bb,v.range=L1,v.rangeRight=j1,v.rearg=F_,v.reject=__,v.remove=_b,v.rest=$_,v.reverse=Zi,v.sampleSize=S_,v.set=kE,v.setWith=BE,v.shuffle=w_,v.slice=Eb,v.sortBy=C_,v.sortedUniq=Ob,v.sortedUniqBy=Ab,v.split=c1,v.spread=M_,v.tail=Pb,v.take=Db,v.takeRight=Ib,v.takeRightWhile=Fb,v.takeWhile=$b,v.tap=Kb,v.throttle=N_,v.thru=Bo,v.toArray=_d,v.toPairs=Cd,v.toPairsIn=Rd,v.toPath=H1,v.toPlainObject=Sd,v.transform=WE,v.unary=L_,v.union=Mb,v.unionBy=Nb,v.unionWith=Lb,v.uniq=jb,v.uniqBy=kb,v.uniqWith=Bb,v.unset=UE,v.unzip=Qi,v.unzipWith=od,v.update=HE,v.updateWith=qE,v.values=qn,v.valuesIn=GE,v.without=Wb,v.words=Pd,v.wrap=j_,v.xor=Ub,v.xorBy=Hb,v.xorWith=qb,v.zip=Gb,v.zipObject=zb,v.zipObjectDeep=Yb,v.zipWith=Vb,v.entries=Cd,v.entriesIn=Rd,v.extend=wd,v.extendWith=Yo,cu(v,v),v.add=G1,v.attempt=Dd,v.camelCase=KE,v.capitalize=Od,v.ceil=z1,v.clamp=zE,v.clone=B_,v.cloneDeep=U_,v.cloneDeepWith=H_,v.cloneWith=W_,v.conformsTo=q_,v.deburr=Ad,v.defaultTo=T1,v.divide=Y1,v.endsWith=JE,v.eq=lr,v.escape=XE,v.escapeRegExp=ZE,v.every=o_,v.find=i_,v.findIndex=ed,v.findKey=_E,v.findLast=u_,v.findLastIndex=td,v.findLastKey=EE,v.floor=V1,v.forEach=id,v.forEachRight=ud,v.forIn=SE,v.forInRight=wE,v.forOwn=TE,v.forOwnRight=xE,v.get=au,v.gt=G_,v.gte=z_,v.has=OE,v.hasIn=ou,v.head=nd,v.identity=Nt,v.includes=p_,v.indexOf=ub,v.inRange=YE,v.invoke=DE,v.isArguments=xn,v.isArray=ve,v.isArrayBuffer=Y_,v.isArrayLike=$t,v.isArrayLikeObject=at,v.isBoolean=V_,v.isBuffer=tn,v.isDate=K_,v.isElement=J_,v.isEmpty=X_,v.isEqual=Z_,v.isEqualWith=Q_,v.isError=ru,v.isFinite=eE,v.isFunction=Dr,v.isInteger=vd,v.isLength=Go,v.isMap=md,v.isMatch=tE,v.isMatchWith=rE,v.isNaN=nE,v.isNative=aE,v.isNil=sE,v.isNull=oE,v.isNumber=yd,v.isObject=Qe,v.isObjectLike=rt,v.isPlainObject=Aa,v.isRegExp=nu,v.isSafeInteger=iE,v.isSet=bd,v.isString=zo,v.isSymbol=Wt,v.isTypedArray=Hn,v.isUndefined=uE,v.isWeakMap=cE,v.isWeakSet=lE,v.join=pb,v.kebabCase=QE,v.last=rr,v.lastIndexOf=hb,v.lowerCase=e1,v.lowerFirst=t1,v.lt=fE,v.lte=dE,v.max=K1,v.maxBy=J1,v.mean=X1,v.meanBy=Z1,v.min=Q1,v.minBy=eS,v.stubArray=fu,v.stubFalse=du,v.stubObject=k1,v.stubString=B1,v.stubTrue=W1,v.multiply=tS,v.nth=gb,v.noConflict=D1,v.noop=lu,v.now=Uo,v.pad=r1,v.padEnd=n1,v.padStart=a1,v.parseInt=o1,v.random=VE,v.reduce=y_,v.reduceRight=b_,v.repeat=s1,v.replace=i1,v.result=jE,v.round=rS,v.runInContext=R,v.sample=E_,v.size=T_,v.snakeCase=u1,v.some=x_,v.sortedIndex=Sb,v.sortedIndexBy=wb,v.sortedIndexOf=Tb,v.sortedLastIndex=xb,v.sortedLastIndexBy=Cb,v.sortedLastIndexOf=Rb,v.startCase=l1,v.startsWith=f1,v.subtract=nS,v.sum=aS,v.sumBy=oS,v.template=d1,v.times=U1,v.toFinite=Ir,v.toInteger=me,v.toLength=Ed,v.toLower=p1,v.toNumber=nr,v.toSafeInteger=pE,v.toString=De,v.toUpper=h1,v.trim=g1,v.trimEnd=v1,v.trimStart=m1,v.truncate=y1,v.unescape=b1,v.uniqueId=q1,v.upperCase=_1,v.upperFirst=su,v.each=id,v.eachRight=ud,v.first=nd,cu(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 wa(u,n,o)})}),we.prototype.reject=function(n){return this.filter(qo(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:Bo,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=fo[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(jn,f)||(jn[f]=[]),jn[f].push({name:o,func:u})}}),jn[Fo(t,P).name]=[{name:"wrapper",func:t}],we.prototype.clone=by,we.prototype.reverse=_y,we.prototype.value=Ey,v.prototype.at=Jb,v.prototype.chain=Xb,v.prototype.commit=Zb,v.prototype.next=Qb,v.prototype.plant=t_,v.prototype.reverse=r_,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=n_,v.prototype.first=v.prototype.head,va&&(v.prototype[va]=e_),v},Mn=Zm();mn?((mn.exports=Mn)._=Mn,ui._=Mn):gt._=Mn}).call($r)})(ys,ys.exports);var ze=ys.exports;const Dh=Ps(ze);function Ic(e){return`Debugger/${e}`}function Ih(e,r){var a;const t=(a=r.name)==null?void 0:a.replace(/\.(4dm|4qs)$/,"");return`#${e} ${t}`}var tc={exports:{}},Ko={exports:{}},Ie={};/** @license React v16.13.1
|
|
34
|
+
}`;var be=Pd(function(){return Oe(y,ee+"return "+B).apply(t,S)});if(be.source=B,ru(be))throw be;return be}function p1(n){return De(n).toLowerCase()}function h1(n){return De(n).toUpperCase()}function g1(n,o,u){if(n=De(n),n&&(u||o===t))return jl(n);if(!n||!(o=Bt(o)))return n;var f=ur(n),h=ur(o),y=kl(f,h),S=Bl(f,h)+1;return en(f,y,S).join("")}function v1(n,o,u){if(n=De(n),n&&(u||o===t))return n.slice(0,Ul(n)+1);if(!n||!(o=Bt(o)))return n;var f=ur(n),h=Bl(f,ur(o))+1;return en(f,0,h).join("")}function m1(n,o,u){if(n=De(n),n&&(u||o===t))return n.replace(J,"");if(!n||!(o=Bt(o)))return n;var f=ur(n),h=kl(f,ur(o));return en(f,h).join("")}function y1(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?Bt(o.omission):f}n=De(n);var y=n.length;if(Fn(n)){var S=ur(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(Bt(h),T)!=T){var V=A.lastIndexOf(h);V>-1&&(A=A.slice(0,V))}return A+f}function b1(n){return n=De(n),n&&to.test(n)?n.replace(eo,Vm):n}var _1=Wn(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),su=Df("toUpperCase");function Ad(n,o,u){return n=De(n),o=u?t:o,o===t?Hm(n)?Xm(n):$m(n):n.match(o)||[]}var Pd=_e(function(n,o){try{return jt(n,t,o)}catch(u){return ru(u)?u:new pe(u)}}),E1=Ar(function(n,o){return Xt(o,function(u){u=_r(u),Rr(n,u,eu(n[u],n))}),n});function S1(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 w1(n){return Vy(er(n,m))}function iu(n){return function(){return n}}function T1(n,o){return n==null||n!==n?o:n}var x1=Ff(),C1=Ff(!0);function Nt(n){return n}function uu(n){return cf(typeof n=="function"?n:er(n,m))}function R1(n){return ff(er(n,m))}function O1(n,o){return df(n,er(o,m))}var A1=_e(function(n,o){return function(u){return wa(u,n,o)}}),P1=_e(function(n,o){return function(u){return wa(n,u,o)}});function cu(n,o,u){var f=pt(o),h=Oo(o,f);u==null&&!(Qe(o)&&(h.length||!f.length))&&(u=o,o=n,n=this,h=Oo(o,pt(o)));var y=!(Qe(u)&&"chain"in u)||!!u.chain,S=Dr(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 D1(){return gt._===this&&(gt._=ny),this}function lu(){}function I1(n){return n=me(n),_e(function(o){return pf(o,n)})}var F1=Wi(Je),$1=Wi(Fl),M1=Wi(di);function Dd(n){return Vi(n)?pi(_r(n)):f0(n)}function N1(n){return function(o){return n==null?t:Sn(n,o)}}var L1=Mf(),j1=Mf(!0);function fu(){return[]}function du(){return!1}function k1(){return{}}function B1(){return""}function W1(){return!0}function U1(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 H1(n){return ve(n)?Je(n,_r):Wt(n)?[n]:Ft(Xf(De(n)))}function q1(n){var o=++ty;return De(n)+o}var G1=$o(function(n,o){return n+o},0),z1=Ui("ceil"),Y1=$o(function(n,o){return n/o},1),V1=Ui("floor");function K1(n){return n&&n.length?Ro(n,Nt,Ri):t}function J1(n,o){return n&&n.length?Ro(n,re(o,2),Ri):t}function X1(n){return Nl(n,Nt)}function Z1(n,o){return Nl(n,re(o,2))}function Q1(n){return n&&n.length?Ro(n,Nt,Di):t}function eS(n,o){return n&&n.length?Ro(n,re(o,2),Di):t}var tS=$o(function(n,o){return n*o},1),rS=Ui("round"),nS=$o(function(n,o){return n-o},0);function aS(n){return n&&n.length?gi(n,Nt):0}function oS(n,o){return n&&n.length?gi(n,re(o,2)):0}return v.after=R_,v.ary=ud,v.assign=hE,v.assignIn=Sd,v.assignInWith=Yo,v.assignWith=gE,v.at=vE,v.before=cd,v.bind=eu,v.bindAll=E1,v.bindKey=ld,v.castArray=k_,v.chain=od,v.chunk=V0,v.compact=K0,v.concat=J0,v.cond=S1,v.conforms=w1,v.constant=iu,v.countBy=a_,v.create=mE,v.curry=fd,v.curryRight=dd,v.debounce=pd,v.defaults=yE,v.defaultsDeep=bE,v.defer=O_,v.delay=A_,v.difference=X0,v.differenceBy=Z0,v.differenceWith=Q0,v.drop=eb,v.dropRight=tb,v.dropRightWhile=rb,v.dropWhile=nb,v.fill=ab,v.filter=s_,v.flatMap=c_,v.flatMapDeep=l_,v.flatMapDepth=f_,v.flatten=td,v.flattenDeep=ob,v.flattenDepth=sb,v.flip=P_,v.flow=x1,v.flowRight=C1,v.fromPairs=ib,v.functions=CE,v.functionsIn=RE,v.groupBy=d_,v.initial=cb,v.intersection=lb,v.intersectionBy=fb,v.intersectionWith=db,v.invert=AE,v.invertBy=PE,v.invokeMap=h_,v.iteratee=uu,v.keyBy=g_,v.keys=pt,v.keysIn=Mt,v.map=Wo,v.mapKeys=IE,v.mapValues=FE,v.matches=R1,v.matchesProperty=O1,v.memoize=Ho,v.merge=$E,v.mergeWith=wd,v.method=A1,v.methodOf=P1,v.mixin=cu,v.negate=qo,v.nthArg=I1,v.omit=ME,v.omitBy=NE,v.once=D_,v.orderBy=v_,v.over=F1,v.overArgs=I_,v.overEvery=$1,v.overSome=M1,v.partial=tu,v.partialRight=hd,v.partition=m_,v.pick=LE,v.pickBy=Td,v.property=Dd,v.propertyOf=N1,v.pull=vb,v.pullAll=nd,v.pullAllBy=mb,v.pullAllWith=yb,v.pullAt=bb,v.range=L1,v.rangeRight=j1,v.rearg=F_,v.reject=__,v.remove=_b,v.rest=$_,v.reverse=Zi,v.sampleSize=S_,v.set=kE,v.setWith=BE,v.shuffle=w_,v.slice=Eb,v.sortBy=C_,v.sortedUniq=Ob,v.sortedUniqBy=Ab,v.split=c1,v.spread=M_,v.tail=Pb,v.take=Db,v.takeRight=Ib,v.takeRightWhile=Fb,v.takeWhile=$b,v.tap=Kb,v.throttle=N_,v.thru=Bo,v.toArray=bd,v.toPairs=xd,v.toPairsIn=Cd,v.toPath=H1,v.toPlainObject=Ed,v.transform=WE,v.unary=L_,v.union=Mb,v.unionBy=Nb,v.unionWith=Lb,v.uniq=jb,v.uniqBy=kb,v.uniqWith=Bb,v.unset=UE,v.unzip=Qi,v.unzipWith=ad,v.update=HE,v.updateWith=qE,v.values=qn,v.valuesIn=GE,v.without=Wb,v.words=Ad,v.wrap=j_,v.xor=Ub,v.xorBy=Hb,v.xorWith=qb,v.zip=Gb,v.zipObject=zb,v.zipObjectDeep=Yb,v.zipWith=Vb,v.entries=xd,v.entriesIn=Cd,v.extend=Sd,v.extendWith=Yo,cu(v,v),v.add=G1,v.attempt=Pd,v.camelCase=KE,v.capitalize=Rd,v.ceil=z1,v.clamp=zE,v.clone=B_,v.cloneDeep=U_,v.cloneDeepWith=H_,v.cloneWith=W_,v.conformsTo=q_,v.deburr=Od,v.defaultTo=T1,v.divide=Y1,v.endsWith=JE,v.eq=lr,v.escape=XE,v.escapeRegExp=ZE,v.every=o_,v.find=i_,v.findIndex=Qf,v.findKey=_E,v.findLast=u_,v.findLastIndex=ed,v.findLastKey=EE,v.floor=V1,v.forEach=sd,v.forEachRight=id,v.forIn=SE,v.forInRight=wE,v.forOwn=TE,v.forOwnRight=xE,v.get=au,v.gt=G_,v.gte=z_,v.has=OE,v.hasIn=ou,v.head=rd,v.identity=Nt,v.includes=p_,v.indexOf=ub,v.inRange=YE,v.invoke=DE,v.isArguments=xn,v.isArray=ve,v.isArrayBuffer=Y_,v.isArrayLike=$t,v.isArrayLikeObject=at,v.isBoolean=V_,v.isBuffer=tn,v.isDate=K_,v.isElement=J_,v.isEmpty=X_,v.isEqual=Z_,v.isEqualWith=Q_,v.isError=ru,v.isFinite=eE,v.isFunction=Dr,v.isInteger=gd,v.isLength=Go,v.isMap=vd,v.isMatch=tE,v.isMatchWith=rE,v.isNaN=nE,v.isNative=aE,v.isNil=sE,v.isNull=oE,v.isNumber=md,v.isObject=Qe,v.isObjectLike=rt,v.isPlainObject=Aa,v.isRegExp=nu,v.isSafeInteger=iE,v.isSet=yd,v.isString=zo,v.isSymbol=Wt,v.isTypedArray=Hn,v.isUndefined=uE,v.isWeakMap=cE,v.isWeakSet=lE,v.join=pb,v.kebabCase=QE,v.last=rr,v.lastIndexOf=hb,v.lowerCase=e1,v.lowerFirst=t1,v.lt=fE,v.lte=dE,v.max=K1,v.maxBy=J1,v.mean=X1,v.meanBy=Z1,v.min=Q1,v.minBy=eS,v.stubArray=fu,v.stubFalse=du,v.stubObject=k1,v.stubString=B1,v.stubTrue=W1,v.multiply=tS,v.nth=gb,v.noConflict=D1,v.noop=lu,v.now=Uo,v.pad=r1,v.padEnd=n1,v.padStart=a1,v.parseInt=o1,v.random=VE,v.reduce=y_,v.reduceRight=b_,v.repeat=s1,v.replace=i1,v.result=jE,v.round=rS,v.runInContext=R,v.sample=E_,v.size=T_,v.snakeCase=u1,v.some=x_,v.sortedIndex=Sb,v.sortedIndexBy=wb,v.sortedIndexOf=Tb,v.sortedLastIndex=xb,v.sortedLastIndexBy=Cb,v.sortedLastIndexOf=Rb,v.startCase=l1,v.startsWith=f1,v.subtract=nS,v.sum=aS,v.sumBy=oS,v.template=d1,v.times=U1,v.toFinite=Ir,v.toInteger=me,v.toLength=_d,v.toLower=p1,v.toNumber=nr,v.toSafeInteger=pE,v.toString=De,v.toUpper=h1,v.trim=g1,v.trimEnd=v1,v.trimStart=m1,v.truncate=y1,v.unescape=b1,v.uniqueId=q1,v.upperCase=_1,v.upperFirst=su,v.each=sd,v.eachRight=id,v.first=rd,cu(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 wa(u,n,o)})}),we.prototype.reject=function(n){return this.filter(qo(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:Bo,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=fo[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(jn,f)||(jn[f]=[]),jn[f].push({name:o,func:u})}}),jn[Fo(t,P).name]=[{name:"wrapper",func:t}],we.prototype.clone=by,we.prototype.reverse=_y,we.prototype.value=Ey,v.prototype.at=Jb,v.prototype.chain=Xb,v.prototype.commit=Zb,v.prototype.next=Qb,v.prototype.plant=t_,v.prototype.reverse=r_,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=n_,v.prototype.first=v.prototype.head,va&&(v.prototype[va]=e_),v},Mn=Zm();mn?((mn.exports=Mn)._=Mn,ui._=Mn):gt._=Mn}).call($r)})(ys,ys.exports);var ze=ys.exports;const Ph=Ps(ze);function Ic(e){return`Debugger/${e}`}function Dh(e,r){var a;const t=(a=r.name)==null?void 0:a.replace(/\.(4dm|4qs)$/,"");return`#${e} ${t}`}var tc={exports:{}},Ko={exports:{}},Ie={};/** @license React v16.13.1
|
|
35
35
|
* react-is.production.min.js
|
|
36
36
|
*
|
|
37
37
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var
|
|
41
|
+
*/var hp;function PR(){if(hp)return Ie;hp=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
42
|
* react-is.development.js
|
|
43
43
|
*
|
|
44
44
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
45
45
|
*
|
|
46
46
|
* This source code is licensed under the MIT license found in the
|
|
47
47
|
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var
|
|
48
|
+
*/var gp;function DR(){return gp||(gp=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 vp;function Ih(){return vp||(vp=1,process.env.NODE_ENV==="production"?Ko.exports=PR():Ko.exports=DR()),Ko.exports}/*
|
|
49
49
|
object-assign
|
|
50
50
|
(c) Sindre Sorhus
|
|
51
51
|
@license MIT
|
|
52
|
-
*/var Tu,
|
|
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},Ou}var Au,
|
|
52
|
+
*/var Tu,mp;function Fc(){if(mp)return Tu;mp=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 Tu=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},Tu}var xu,yp;function $c(){if(yp)return xu;yp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return xu=e,xu}var Cu,bp;function Fh(){return bp||(bp=1,Cu=Function.call.bind(Object.prototype.hasOwnProperty)),Cu}var Ru,_p;function IR(){if(_p)return Ru;_p=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=$c(),t={},a=Fh();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={})},Ru=s,Ru}var Ou,Ep;function FR(){if(Ep)return Ou;Ep=1;var e=Ih(),r=Fc(),t=$c(),a=Fh(),s=IR(),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 Ou=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," ")+`
|
|
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},Ou}var Au,Sp;function $R(){if(Sp)return Au;Sp=1;var e=$c();function r(){}function t(){}return t.resetWarningCache=r,Au=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},Au}if(process.env.NODE_ENV!=="production"){var MR=Ih(),NR=!0;tc.exports=FR()(MR.isElement,NR)}else tc.exports=$R()();var LR=tc.exports;const zn=Ps(LR);var Br=Ke.createContext(null);process.env.NODE_ENV!=="production"&&(Br.displayName="ReactRedux");function jR(e){e()}var $h=jR,kR=function(r){return $h=r},BR=function(){return $h};function WR(){var e=BR(),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 wp={notify:function(){},get:function(){return[]}};function Mh(e,r){var t,a=wp;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=WR())}function p(){t&&(t(),t=void 0,a.clear(),a=wp)}var g={addNestedSub:s,notifyNestedSubs:i,handleChangeWrapper:c,isSubscribed:l,trySubscribe:d,tryUnsubscribe:p,getListeners:function(){return a}};return g}var rc=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Ke.useLayoutEffect:Ke.useEffect;function Nh(e){var r=e.store,t=e.context,a=e.children,s=Ke.useMemo(function(){var l=Mh(r);return{store:r,subscription:l}},[r]),i=Ke.useMemo(function(){return r.getState()},[r]);rc(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||Br;return Ke.createElement(c.Provider,{value:s},a)}process.env.NODE_ENV!=="production"&&(Nh.propTypes={store:zn.shape({subscribe:zn.func.isRequired,dispatch:zn.func.isRequired,getState:zn.func.isRequired}),context:zn.object,children:zn.any});var nc={exports:{}},$e={};/** @license React v16.13.1
|
|
54
54
|
* react-is.production.min.js
|
|
55
55
|
*
|
|
56
56
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
57
57
|
*
|
|
58
58
|
* This source code is licensed under the MIT license found in the
|
|
59
59
|
* LICENSE file in the root directory of this source tree.
|
|
60
|
-
*/var
|
|
60
|
+
*/var Tp;function UR(){if(Tp)return $e;Tp=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
61
|
* react-is.development.js
|
|
62
62
|
*
|
|
63
63
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
64
64
|
*
|
|
65
65
|
* This source code is licensed under the MIT license found in the
|
|
66
66
|
* LICENSE file in the root directory of this source tree.
|
|
67
|
-
*/var
|
|
67
|
+
*/var xp;function HR(){return xp||(xp=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"?nc.exports=UR():nc.exports=HR();var qR=nc.exports,Lh=qR,GR={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},zR={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},jh={};jh[Lh.ForwardRef]=GR;jh[Lh.Memo]=zR;var ke={};/** @license React v17.0.2
|
|
68
68
|
* react-is.production.min.js
|
|
69
69
|
*
|
|
70
70
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
71
71
|
*
|
|
72
72
|
* This source code is licensed under the MIT license found in the
|
|
73
73
|
* LICENSE file in the root directory of this source tree.
|
|
74
|
-
*/var
|
|
74
|
+
*/var Cp;function YR(){if(Cp)return ke;Cp=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
75
|
* react-is.development.js
|
|
76
76
|
*
|
|
77
77
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
78
78
|
*
|
|
79
79
|
* This source code is licensed under the MIT license found in the
|
|
80
80
|
* LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/var
|
|
81
|
+
*/var Rp;function VR(){return Rp||(Rp=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"?YR():VR();function Op(e,r){return e===r?e!==0||r!==0||1/e===1/r:e!==e&&r!==r}function kh(e,r){if(Op(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])||!Op(e[t[s]],r[t[s]]))return!1;return!0}function Bh(){var e=Ke.useContext(Br);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 Wh(e){e===void 0&&(e=Br);var r=e===Br?Bh:function(){return Ke.useContext(e)};return function(){var a=r(),s=a.store;return s}}var KR=Wh();function JR(e){e===void 0&&(e=Br);var r=e===Br?KR:Wh(e);return function(){var a=r();return a.dispatch}}var Uh=JR(),XR=function(r,t){return r===t};function ZR(e,r,t,a){var s=Ke.useReducer(function(x){return x+1},0),i=s[1],c=Ke.useMemo(function(){return Mh(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
82
|
The error may be correlated with this previous error:
|
|
83
83
|
`+l.current.stack+`
|
|
84
84
|
|
|
85
|
-
`),x}return rc(function(){d.current=e,p.current=m,g.current=b,l.current=void 0}),rc(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 QR(e){e===void 0&&(e=Br);var r=e===Br?
|
|
85
|
+
`),x}return rc(function(){d.current=e,p.current=m,g.current=b,l.current=void 0}),rc(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 QR(e){e===void 0&&(e=Br);var r=e===Br?Bh:function(){return Ke.useContext(e)};return function(a,s){if(s===void 0&&(s=XR),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=ZR(a,s,c,l);return Ke.useDebugValue(d),d}}var eO=QR();kR(sS.unstable_batchedUpdates);const Jn=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 tO(){const e=Uh();return{get:()=>ra.getState().catalog,fetch:()=>e(Jn()),refresh:()=>za()}}function za(e=2e3){return setTimeout(()=>{ra.dispatch(Jn())},e)}const rO=typeof process=="object"&&process&&process.platform==="win32";var nO=rO?{sep:"\\"}:{sep:"/"},aO=Hh;function Hh(e,r,t){e instanceof RegExp&&(e=Ap(e,t)),r instanceof RegExp&&(r=Ap(r,t));var a=qh(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 Ap(e,r){var t=r.match(e);return t?t[0]:null}Hh.range=qh;function qh(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 Gh=aO,oO=uO,zh="\0SLASH"+Math.random()+"\0",Yh="\0OPEN"+Math.random()+"\0",Mc="\0CLOSE"+Math.random()+"\0",Vh="\0COMMA"+Math.random()+"\0",Kh="\0PERIOD"+Math.random()+"\0";function Pu(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function sO(e){return e.split("\\\\").join(zh).split("\\{").join(Yh).split("\\}").join(Mc).split("\\,").join(Vh).split("\\.").join(Kh)}function iO(e){return e.split(zh).join("\\").split(Yh).join("{").split(Mc).join("}").split(Vh).join(",").split(Kh).join(".")}function Jh(e){if(!e)return[""];var r=[],t=Gh("{","}",e);if(!t)return e.split(",");var a=t.pre,s=t.body,i=t.post,c=a.split(",");c[c.length-1]+="{"+s+"}";var l=Jh(i);return i.length&&(c[c.length-1]+=l.shift(),c.push.apply(c,l)),r.push.apply(r,c),r}function uO(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Ia(sO(e),!0).map(iO)):[]}function cO(e){return"{"+e+"}"}function lO(e){return/^-?0\d/.test(e)}function fO(e,r){return e<=r}function dO(e,r){return e>=r}function Ia(e,r){var t=[],a=Gh("{","}",e);if(!a)return[e];var s=a.pre,i=a.post.length?Ia(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+Mc+a.post,Ia(e)):[e];var b;if(g)b=a.body.split(/\.\./);else if(b=Jh(a.body),b.length===1&&(b=Ia(b[0],!1).map(cO),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,k=fO,M=C<x;M&&(P*=-1,k=dO);var j=b.some(lO);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,Ia(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 qt=Xh=(e,r,t={})=>(bs(r),!t.nocomment&&r.charAt(0)==="#"?!1:new Ls(r,t).match(e));var Xh=qt;const ac=nO;qt.sep=ac.sep;const dr=Symbol("globstar **");qt.GLOBSTAR=dr;const pO=oO,Pp={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},oc="[^/]",Du=oc+"*?",hO="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",gO="(?:(?!(?:\\/|^)\\.).)*?",Zh=e=>e.split("").reduce((r,t)=>(r[t]=!0,r),{}),Dp=Zh("().*{}+?[]^$\\!"),vO=Zh("[.("),Ip=/\/+/;qt.filter=(e,r={})=>(t,a,s)=>qt(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};qt.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return qt;const r=qt,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};qt.braceExpand=(e,r)=>Qh(e,r);const Qh=(e,r={})=>(bs(e),r.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:pO(e)),mO=1024*64,bs=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>mO)throw new TypeError("pattern is too long")},Iu=Symbol("subparse");qt.makeRe=(e,r)=>new Ls(e,r||{}).makeRe();qt.match=(e,r,t={})=>{const a=new Ls(r,t);return e=e.filter(s=>a.match(s)),a.options.nonull&&!e.length&&e.push(r),e};const yO=e=>e.replace(/\\(.)/g,"$1"),bO=e=>e.replace(/\\([^-\]])/g,"$1"),_O=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),EO=e=>e.replace(/[[\]\\]/g,"\\$&");class Ls{constructor(r,t){bs(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(Ip)),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===dr){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
86
|
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(`
|
|
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
|
|
88
|
-
%s`,H,H,x,s);const z=x.type==="*"?Du:x.type==="?"?oc:"\\"+x.type;i=!0,s=s.slice(0,x.reStart)+z+"\\("+H}j(),c&&(s+="\\\\");const O=vO[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=k()+s),t===Iu)return[s,i];if(a.nocase&&!i&&(i=r.toUpperCase()!==r.toLowerCase()),!i)return yO(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?hO:gO,s=t.nocase?"i":"";let i=r.map(c=>(c=c.map(l=>typeof l=="string"?_O(l):l===dr?dr:l._src).reduce((l,d)=>(l[l.length-1]===dr&&d===dr||l.push(d),l),[]),c.forEach((l,d)=>{l!==dr||c[d-1]===dr||(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]=dr))}),c.filter(l=>l!==dr).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;ac.sep!=="/"&&(r=r.split(ac.sep).join("/")),r=r.split(
|
|
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 Qh(this.pattern,this.options)}parse(r,t){bs(r);const a=this.options;if(r==="**")if(a.noglobstar)r="*";else return dr;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+=Du,i=!0;break;case"?":s+=oc,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;Dp[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:Pp[p].open,close:Pp[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("["+EO(bO(E))+"]"),s+=z}catch{s=s.substring(0,m)+"(?:$.)"}i=!0,g=!1;continue;default:j(),Dp[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==="?"?oc:"\\"+x.type;i=!0,s=s.slice(0,x.reStart)+z+"\\("+H}j(),c&&(s+="\\\\");const O=vO[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=k()+s),t===Iu)return[s,i];if(a.nocase&&!i&&(i=r.toUpperCase()!==r.toLowerCase()),!i)return yO(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?hO:gO,s=t.nocase?"i":"";let i=r.map(c=>(c=c.map(l=>typeof l=="string"?_O(l):l===dr?dr:l._src).reduce((l,d)=>(l[l.length-1]===dr&&d===dr||l.push(d),l),[]),c.forEach((l,d)=>{l!==dr||c[d-1]===dr||(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]=dr))}),c.filter(l=>l!==dr).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;ac.sep!=="/"&&(r=r.split(ac.sep).join("/")),r=r.split(Ip),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 qt.defaults(r).Minimatch}}qt.Minimatch=Ls;const eg=Ps(Xh),tg=[{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"}}],rg=[{pattern:"**/*.+(json|4DModel|WebForm)",type:"json"},{pattern:"**/*.+(4dm|txt|json|4qs)",type:"text"}];function ng(e){const r=e.split("/");return r.pop(),r.join("/")}function hr(e){const r=tg.find(({pattern:t})=>eg(e,t,{nocase:!0}));return r||{pattern:"",editor:{key:"editors:unknown",config:{language:"text"}}}}function ag(e){const r=rg.find(({pattern:t})=>eg(e,t,{nocase:!0}));return r?r.type:"text"}var sc=function(e,r){return sc=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])},sc(e,r)};function js(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");sc(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function ic(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 _s(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 Es(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 Lr(e){return typeof e=="function"}function og(e){var r=function(a){Error.call(a),a.stack=new Error().stack},t=e(r);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Fu=og(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
89
89
|
`+t.map(function(a,s){return s+1+") "+a.toString()}).join(`
|
|
90
|
-
`):"",this.name="UnsubscriptionError",this.errors=t}});function uc(e,r){if(e){var t=e.indexOf(r);0<=t&&e.splice(t,1)}}var ks=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=ic(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(Lr(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=ic(m),E=b.next();!E.done;E=b.next()){var x=E.value;try{$p(x)}catch(C){i=i??[],C instanceof Fu?i=Es(Es([],_s(i)),_s(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)$p(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)&&uc(t,r)},e.prototype.remove=function(r){var t=this._finalizers;t&&uc(t,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}(),ig=ks.EMPTY;function ug(e){return e instanceof ks||e&&"closed"in e&&Lr(e.remove)&&Lr(e.add)&&Lr(e.unsubscribe)}function $p(e){Lr(e)?e():e.unsubscribe()}var cg={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},cc={setTimeout:function(e,r){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];var s=cc.delegate;return s!=null&&s.setTimeout?s.setTimeout.apply(s,Es([e,r],_s(t))):setTimeout.apply(void 0,Es([e,r],_s(t)))},clearTimeout:function(e){var r=cc.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function SO(e){cc.setTimeout(function(){throw e})}function Mp(){}function ns(e){e()}var lg=function(e){js(r,e);function r(t){var a=e.call(this)||this;return a.isStopped=!1,t?(a.destination=t,ug(t)&&t.add(a)):a.destination=CO,a}return r.create=function(t,a,s){return new lc(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}(ks),wO=Function.prototype.bind;function $u(e,r){return wO.call(e,r)}var TO=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){Jo(a)}},e.prototype.error=function(r){var t=this.partialObserver;if(t.error)try{t.error(r)}catch(a){Jo(a)}else Jo(r)},e.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(t){Jo(t)}},e}(),lc=function(e){js(r,e);function r(t,a,s){var i=e.call(this)||this,c;if(Lr(t)||!t)c={next:t??void 0,error:a??void 0,complete:s??void 0};else{var l;i&&cg.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 TO(c),i}return r}(lg);function Jo(e){SO(e)}function xO(e){throw e}var CO={closed:!0,next:Mp,error:xO,complete:Mp},RO=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function OO(e){return e}function AO(e){return e.length===0?OO:e.length===1?e[0]:function(t){return e.reduce(function(a,s){return s(a)},t)}}var Np=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=DO(r)?r:new lc(r,t,a);return ns(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=Lp(t),new t(function(s,i){var c=new lc({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[RO]=function(){return this},e.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return AO(r)(this)},e.prototype.toPromise=function(r){var t=this;return r=Lp(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 Lp(e){var r;return(r=e??cg.Promise)!==null&&r!==void 0?r:Promise}function PO(e){return e&&Lr(e.next)&&Lr(e.error)&&Lr(e.complete)}function DO(e){return e&&e instanceof lg||PO(e)&&ug(e)}var IO=sg(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),fg=function(e){js(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 jp(this,this);return a.operator=t,a},r.prototype._throwIfClosed=function(){if(this.closed)throw new IO},r.prototype.next=function(t){var a=this;ns(function(){var s,i;if(a._throwIfClosed(),!a.isStopped){a.currentObservers||(a.currentObservers=Array.from(a.observers));try{for(var c=ic(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;ns(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;ns(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?ig:(this.currentObservers=null,l.push(t),new ks(function(){a.currentObservers=null,uc(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 Np;return t.source=this,t},r.create=function(t,a){return new jp(t,a)},r}(Np),jp=function(e){js(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:ig},r}(fg);const dg=new fg,FO=()=>Hh(),Wr=eO,Nc=q(e=>e,e=>e.catalog.state==="loaded"?e.catalog.model:null),$O=q(Nc,e=>e?e.dataClasses:[]),MO=q(Nc,e=>e?e.methods:[]),pg=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[]}}),NO=e=>Wr(pg(e),Bh),LO=(e,r)=>q(pg(e),t=>t.find(a=>`${a.applyTo}.${a.name}`===r)),jO=(e,r,t)=>Wr(LO(e,`${t}.${r}`),Bh),hg=q(e=>e,e=>e),kO=e=>q(Ur,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]}))}),gg=e=>q(Ur,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)||[]}),BO=(e,r,t)=>q(hg,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}}),vg=q(e=>e,e=>{var r;return((r=e.sharedDatasources)==null?void 0:r.sources)||[]}),WO=(e,r,t,a)=>q(gg(e),vg,(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}),UO=q(e=>e.debugger,e=>e.meta),An=q(e=>e.debugger,e=>e.list),It=q(e=>e.debugger,e=>e.sessions),HO=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),mg=(e,r)=>e.find(t=>t.tabPath===r),qO=(e,r)=>q(An,t=>{var a;return((a=On(t,e,r))==null?void 0:a.breakpoints.saved.locations)||[]}),GO=(e,r)=>q(An,t=>{var a;return((a=On(t,e,r))==null?void 0:a.breakpoints.draft.locations)||[]}),zO=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)),YO=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)),VO=e=>q(It,r=>{const t=st(r,e);return t!=null&&t.stopped?t.highlightedLines:null}),KO=e=>q(It,r=>{const t=st(r,e);return t!=null&&t.stopped?t.activeLine:null}),JO=e=>q(It,r=>{var t;return((t=st(r,e))==null?void 0:t.expressions)||[]}),XO=e=>q(It,r=>{var t;return((t=st(r,e))==null?void 0:t.stopped)||!1}),ZO=(e,r)=>q(An,t=>{var a;return(a=On(t,e,r))==null?void 0:a.source}),QO=e=>q(It,r=>{var t;return((t=mg(r,e))==null?void 0:t.threadId)||-1}),eA=e=>q(It,r=>{var t,a;return(a=(t=st(r,e))==null?void 0:t.currentStackFrame)==null?void 0:a.source}),tA=e=>q(It,r=>{var t;return(t=st(r,e))==null?void 0:t.currentStackFrame}),rA=q(It,e=>e.map(({channelId:r,threadId:t})=>({id:r,threadId:t}))),nA=e=>q(It,r=>{var t;return((t=st(r,e))==null?void 0:t.stackFrames)||[]}),aA=e=>q(It,r=>{var t,a;return((a=(t=st(r,e))==null?void 0:t.variables)==null?void 0:a.callchain)||[]}),oA=e=>q(It,r=>{var t,a;return((a=(t=st(r,e))==null?void 0:t.variables)==null?void 0:a.expressions)||[]}),sA=(e,r="saved")=>q(An,t=>{const a=t.find(s=>s.filePath===e);return(a==null?void 0:a.breakpoints[r].offset)||0}),iA=(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}))}),Ur=q(e=>e.root,e=>e),ca=q(Ur,e=>e.tabs),uA=q(Ur,e=>e.activeTab),cA=q(Ur,e=>e.recent.filter(({type:r})=>r!==_.FileFolderType.DEBUGGER)),lA=q(Ur,({tabs:e,activeTab:r})=>e.find(({path:t})=>t===r)),fA=q(Ur,({tabs:e})=>e.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null)),dA=q(ca,e=>e.filter(({type:r,flags:t})=>r===_.FileFolderType.WEBFORM&&t.enabled===!1).map(({path:r})=>r)),pA=q(ca,e=>e.length>0),Ya=e=>q(Ur,r=>r.tabs.find(({path:t})=>t===e)),yg=(e,r="")=>q(Ya(e),t=>!t||!t.content||typeof t.content=="string"?t==null?void 0:t.content:ze.get(t.content,r)),hA=e=>q(Ya(e),r=>r==null?void 0:r.extra),gA=(e,r=t=>t)=>q(yg(e,"components"),t=>r(t||{})),Lc=q(ca,e=>e.filter(r=>r.flags.touched)),vA=q(Lc,e=>e.length),mA=q(It,e=>e.map(({threadId:r,currentStackFrame:{source:t},tabPath:a})=>({name:Ih(r,t),path:a,type:_.FileFolderType.DEBUGGER,content:t==null?void 0:t.content,flags:{},extra:{source:t}}))),yA=q(e=>e,e=>e.explorer||[]),bg=q(e=>e,e=>e.explorer.find(r=>r.path===_.FolderRootPath.WEBFORMS)),_g=q(e=>e,e=>e.explorer.find(r=>r.path===_.FolderRootPath.METHODS)),Eg=q(e=>e,e=>e.explorer.find(r=>r.path===_.FolderRootPath.CLASSES)),bA=q(_g,e=>(e==null?void 0:e.children)||[]),_A=q(bg,e=>(e==null?void 0:e.children)||[]),EA=q(Eg,e=>(e==null?void 0:e.children)||[]),SA=q(e=>e.modals,e=>e.list),wA=q(e=>e.roles,({roles:e})=>e),TA=q(e=>e.roles,({privileges:e})=>e),xA=q(e=>e.roles,({privileges:e})=>Object.values(e).find(({privilege:r})=>r==="guest")),CA=q(e=>e.roles,({flags:e})=>e),RA=q(e=>e.roles,({selectedTab:e})=>e),OA=q(e=>e.roles,({date:e})=>e),Sg=q(e=>e.settings,e=>e.session),AA=q(e=>e.settings,e=>e.project),PA=q(e=>e.settings,e=>e),jc=q(e=>e.settings,e=>e.server),DA=q(jc,e=>e.remoteDebuggerMode),IA=q(jc,e=>e.qodly),FA=q(Sg,e=>e["monaco.zoom"]),wg=["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"],Tg=wg.map(e=>({id:xc(),content:"",name:e,parentId:null,scope:_.EWebFormStyleClassScope.THEME})),kc=e=>q(Ya(e),r=>{var t,a;return((a=(t=r==null?void 0:r.content)==null?void 0:t.metadata)==null?void 0:a.styles)||[]}),$A=(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 Tg;default:return[]}}).flat()),MA=e=>q(kc(e),r=>[...r.map(t=>({...t,scope:_.EWebFormStyleClassScope.LOCAL})),...Tg]),NA=q(e=>e,e=>{var r;return[...(((r=e.sharedCSS)==null?void 0:r.styles)||[]).map(t=>({...t,scope:_.EWebFormStyleClassScope.SHARED}))]}),LA=e=>q(Ya(e),r=>r==null?void 0:r.flags),Va=q(e=>e.webforms,e=>e),xg=q(Va,e=>(e==null?void 0:e.components)||[]),Bs=q(Va,e=>e.inspector),jA=q(Bs,e=>e.css),kA=q(Bs,e=>e.datasource),Cg=q(Va,e=>e.templates||{data:[]}),BA=q(Cg,e=>e.data||[]),WA=e=>q(xg,r=>r.find(t=>t.id===e)),UA=e=>q(Bs,r=>r[e]),HA=q(Va,e=>e.datasources.theme),qA=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 Bc=(e=>(e.SHOW_AFTER_TIMEOUT="show_after_timeout",e.HIDE_AFTER_TIMEOUT="hide_after_timeout",e))(Bc||{}),Rg=(e=>(e.AIRY="airy",e.COMPACT="neutral",e))(Rg||{});const Og={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:[],airyMode:!1},displayName:"App",custom:{},hidden:!1,nodes:[],linkedNodes:{}}}};var Xo,GA=new Uint8Array(16);function Ag(){if(!Xo&&(Xo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Xo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Xo(GA)}const zA=/^(?:[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 Ws(e){return typeof e=="string"&&zA.test(e)}var mt=[];for(var Mu=0;Mu<256;++Mu)mt.push((Mu+256).toString(16).substr(1));function Us(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(!Ws(t))throw TypeError("Stringified UUID is invalid");return t}var kp,Nu,Lu=0,ju=0;function YA(e,r,t){var a=r&&t||0,s=r||new Array(16);e=e||{};var i=e.node||kp,c=e.clockseq!==void 0?e.clockseq:Nu;if(i==null||c==null){var l=e.random||(e.rng||Ag)();i==null&&(i=kp=[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:ju+1,g=d-Lu+(p-ju)/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,ju=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||Us(s)}function Pg(e){if(!Ws(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 VA(e){e=unescape(encodeURIComponent(e));for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t));return r}var KA="6ba7b810-9dad-11d1-80b4-00c04fd430c8",JA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Dg(e,r,t){function a(s,i,c,l){if(typeof s=="string"&&(s=VA(s)),typeof i=="string"&&(i=Pg(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 Us(d)}try{a.name=e}catch{}return a.DNS=KA,a.URL=JA,a}function XA(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 ZA(QA(eP(e),e.length*8))}function ZA(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 Ig(e){return(e+64>>>9<<4)+14+1}function QA(e,r){e[r>>5]|=128<<r%32,e[Ig(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 eP(e){if(e.length===0)return[];for(var r=e.length*8,t=new Uint32Array(Ig(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 tP(e,r){return e<<r|e>>>32-r}function Hs(e,r,t,a,s,i){return nn(tP(nn(nn(r,e),nn(a,i)),s),t)}function Et(e,r,t,a,s,i,c){return Hs(r&t|~r&a,e,r,s,i,c)}function St(e,r,t,a,s,i,c){return Hs(r&a|t&~a,e,r,s,i,c)}function wt(e,r,t,a,s,i,c){return Hs(r^t^a,e,r,s,i,c)}function Tt(e,r,t,a,s,i,c){return Hs(t^(r|~a),e,r,s,i,c)}var rP=Dg("v3",48,XA);const nP=rP;function aP(e,r,t){e=e||{};var a=e.random||(e.rng||Ag)();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 Us(a)}function oP(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 ku(e,r){return e<<r|e>>>32-r}function sP(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]=ku(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=ku(C,5)+oP(O,I,P,k)+M+r[O]+b[j]>>>0;M=k,k=P,P=ku(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 iP=Dg("v5",80,sP);const uP=iP,cP="00000000-0000-0000-0000-000000000000";function lP(e){if(!Ws(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const fP=Object.freeze(Object.defineProperty({__proto__:null,NIL:cP,parse:Pg,stringify:Us,v1:YA,v3:nP,v4:aP,v5:uP,validate:Ws,version:lP},Symbol.toStringTag,{value:"Module"})),dP=fw(fP);function Wc(e,r){if(!e||!r||!e.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=r}Wc.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};Wc.prototype.isValid=function(e){for(var r=0;r<e.length;++r)if(this.srcAlphabet.indexOf(e[r])===-1)return!1;return!0};var pP=Wc,hP=pP;function Ka(e,r){var t=new hP(e,r);return function(a){return t.convert(a)}}Ka.BIN="01";Ka.OCT="01234567";Ka.DEC="0123456789";Ka.HEX="0123456789abcdef";var gP=Ka;const{v4:Bu}=dP,Zo=gP,Wu="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",vP="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",mP={consistentLength:!0};let Uu;const Bp=(e,r,t)=>{const a=r(e.toLowerCase().replace(/-/g,""));return!t||!t.consistentLength?a:a.padStart(t.shortIdLength,t.paddingChar)},yP=(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("-")},bP=e=>Math.ceil(Math.log(2**128)/Math.log(e));var Ss=(()=>{const e=(r,t)=>{const a=r||Wu,s={...mP,...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=bP(a.length),c={shortIdLength:i,consistentLength:s.consistentLength,paddingChar:a[0]},l=Zo(Zo.HEX,a),d=Zo(a,Zo.HEX),p=()=>Bp(Bu(),l,c),g={new:p,generate:p,uuid:Bu,fromUUID:m=>Bp(m,l,c),toUUID:m=>yP(m,d),alphabet:a,maxLength:i};return Object.freeze(g),g};return e.constants={flickrBase58:Wu,cookieBase90:vP},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 _P=[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE,Ae.METHOD],ws="guest",Uc=[{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 Fg(e){const r={},t=new Map;e.forEach(d=>{const p=d.id||Ss.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=$g(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===ws))return r;const l=Ss.generate();return{[l]:{id:l,privilege:ws,includes:[],parents:[],resources:[]},...r}}function $g(e){return Object.values(e).sort((r,t)=>r.parents.length-t.parents.length)}function qs(e,r){const t=r[e];let a=[];return t&&t.parents.forEach(s=>{a=ar(a,...qs(s,r),s)}),a}function Ts(e,r){const t=r[e];let a=[];return t&&t.includes.forEach(s=>{a=ar(a,...Ts(s,r),s)}),a}function EP(e,r){const t=r[e];if(!t)return[];const a=[e,...qs(e,r),...t.includes];return Object.keys(r).filter(s=>!a.includes(s))}function SP(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 wP(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 TP(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 Mg(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=Ss.generate();return{[t]:{id:t,privilege:e,includes:[],parents:[],resources:[]},...r}}function xP(e,r,t,a,s){let i=Mg(e,s);const c=Object.entries(i).find(([,l])=>l.privilege===e);return c?(i=kg(c[1].id,r,t,a,i),i):s}function CP(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 RP(e,r){return e.map(t=>Hr(t,r))}function Hr(e,r){return r[e]?r[e]:null}function Ng({applyTo:e,type:r,...t}){return Object.entries(t).reduce((a,[s,i])=>{const c=ze.find(Uc,["key",s]);return!c||!c.canApplyTo.includes(r)||(typeof i=="string"?i.split(","):i).forEach(d=>{a[d]=ar(a[d]||[],s)}),a},{})}const fc=(e,r=!1)=>["read","create","update","delete"].includes(e.toLowerCase())?`All ${r?"dataclasses and ":""}attributes have the '${e.toLowerCase()}' permission`:e.toLowerCase()==="execute"?`All functions defined ${r?"through the model (DataStore, Dataclasses, Entity selections, Entities) have the execute permission":"on this Dataclass, Entity selection class, Entity class have the execute permission"}`:`All ${r?"dataclasses, ":""}attributes and functions have the '${e.toLowerCase()}' permission`;function Hc(e){return{permissions:Uc.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:fc(t,!0)};case Ae.DATACLASS:return{...a,info:fc(t)};default:return a}}),resource:e.applyTo,type:e.type}}function Lg(e,r){const t=jg(r),a={};return e.filter(({type:s})=>_P.includes(s)).forEach(s=>{const i=Ng(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=Hc(s),a[d].resources.push(p)),p.permissions=p.permissions.map(m=>({...m,checked:m.checked||l.includes(m.name)}))})}),{...r,...a}}function jg(e){return Object.values(e).reduce((r,t)=>({...r,[t.privilege]:t}),{})}function Gs(e){var t;const r=Fg(e.privileges||[]);return{privileges:Lg(((t=e.permissions)==null?void 0:t.allowed)||[],r),roles:(e.roles||[]).map(({id:a=Ss.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 qc(e){const r=Object.values(e.privileges).filter(({includes:a})=>a.length===0).map(({id:a})=>a),t=[...r,...r.map(a=>qs(a,e.privileges).reverse())].flat().filter((a,s,i)=>i.indexOf(a)===s).map(a=>e.privileges[a]);return{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!==ws).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 OP(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 AP(e,r,t){const a=Hr(e,t);if(!a||ze.find(a.resources,{resource:r.applyTo,type:r.type}))return t;const s={...a,resources:[...a.resources,Hc(r)]};return{...t,[e]:s}}function PP(e,r,t){const a=Hr(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 DP(e,r){const t=Hr(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 kg(e,r,t,a,s){const i=Hr(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:Uc.filter(d=>d.canApplyTo.includes(t)).map(d=>({from:[],name:d.key,checked:d.key===a,info:fc(d.key,t===Ae.DATASTORE)}))}]};return{...s,[e]:l}}function IP(e,r,t,a){const s=Hr(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 FP(e,r){var d;const t=Bg(e,r)||[],a=((d=Hr(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 Bg(e,r){var c;const t=Hr(e,r);if(!t)return[];const a=(c=Object.values(r).find(l=>l.privilege===ws))==null?void 0:c.id;return(a&&a!==e?ar(Ts(e,r),a):Ts(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 $P=e=>e.reduce((r,t)=>({...r,[t.id]:{...t}}),{}),MP=(e,r)=>r[e]?Object.values(r).reduce((t,a)=>e===a.id||a.role===""?t:{...t,[a.id]:a},{}):r,NP=(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,LP=(e,r)=>{const t={id:e,role:"",privileges:[]};return{...r,[t.id]:t}},jP=(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},{})},kP={list:[]},Wp=(e,r)=>e.list.filter(t=>t.id!==r),Wg=or({name:"modals",initialState:kP,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=Wp(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=Wp(e,t)}}}),{createModal:Ug,removeModal:Hg,closeModal:BP,editModal:WP}=Wg.actions;var qg={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Up=Ke.createContext&&Ke.createContext(qg),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)},UP=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 Gg(e){return e&&e.map(function(r,t){return Ke.createElement(r.tag,sn({key:t},r.attr),Gg(r.child))})}function zs(e){return function(r){return Ke.createElement(HP,sn({attr:sn({},e.attr)},r),Gg(e.child))}}function HP(e){var r=function(t){var a=e.attr,s=e.size,i=e.title,c=UP(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 Up!==void 0?Ke.createElement(Up.Consumer,null,function(t){return r(t)}):r(qg)}function qP(e){return zs({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 GP(e){return zs({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 zP(e){return zs({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 YP(e){return zs({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 VP={FaSave:qP,AiFillWarning:YP,BiErrorCircle:zP,BsFillInfoCircleFill:GP};var zt=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(zt||{}),qr=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(qr||{}),Gc=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Gc||{});const vr=Q("modals/open",async(e,{dispatch:r})=>{const{type:t=zt.ALERT,store:a=ra}=e,s=xc();switch(r(Ug({id:s,type:t,isOpen:!0,...e})),t){case zt.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===Gc.CONFIRMED,m=ze.entries((p=d.views)==null?void 0:p.toggles).reduce((b,E)=>({...b,[E[0]]:E[1].value}),{});r(Hg(s)),c(),i({confirmed:g,options:m})}})});default:return{}}}),zg=()=>_.getFileContent({name:_.ROLES_TAB_PATH}),Yg="Roles & Privileges",xs=Q("roles/fetchRoles",async(e,{dispatch:r,rejectWithValue:t})=>{var i;let a;try{a=await zg()}catch(c){if(!Array.isArray((i=c==null?void 0:c.data)==null?void 0:i.__ERROR))return t("Error while loading the roles");a={name:_.ROLES_TAB_PATH,date:new Date().toISOString(),content:{permissions:{allowed:[]},privileges:[],roles:[]}}}const s={name:Yg,type:_.FileFolderType.ROLES,date:a.date,view:{panel:{isOpen:!1,type:"",current:""}},path:_.ROLES_TAB_PATH,flags:{},content:{}};return r(Dt(s)),{...a,content:Gs(a.content)}}),Vg=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 zc(s))return{old:!0}}return{}}),zc=async e=>{if(!e)return!1;try{const r=await zg();if(r.date){const t=new Date(e),a=new Date(r.date);if(t>a)return!0}}catch(r){if(!Array.isArray(r==null?void 0:r.data.__ERROR))throw r}return!1},dc=Q("roles/saveRoles",async(e,{getState:r,rejectWithValue:t,dispatch:a})=>{try{const{flags:s,date:i}=r().roles;if(s.old||await zc(i)){const{confirmed:d}=await a(vr({title:Yg,message:"New content has been found on the server. Are you sure you want to continue?",type:zt.CONFIRM,icon:"FaSave"})).unwrap();if(!d)return t({old:!0})}return await _.setFileContent({name:_.ROLES_TAB_PATH,content:qc(e)})}catch{return t("Error while loading the roles")}}),KP=na().roles,{roles:JP={},privileges:XP={},flags:ZP={touched:!1},date:QP,selectedTab:eD="roles"}=KP||{},tD={flags:ZP,roles:JP,privileges:XP,date:QP,selectedTab:eD},Kg=or({name:"roles",initialState:tD,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,date:a}=r.payload,s=Gs(t);return{...e,...s,date:a}}},extraReducers(e){e.addCase(xs.fulfilled,(r,t)=>{const{content:a,date:s}=t.payload;r={...r,...a,date:s}}).addCase(xs.rejected,r=>({...r,roles:{},privileges:{},flags:{touched:!1},date:void 0})).addCase(dc.fulfilled,(r,t)=>({...r,flags:{...r.flags,touched:!1,old:!1},date:t.payload.date})).addCase(dc.rejected,(r,t)=>Dh.isString(t.payload)?r:{...r,flags:{...r.flags,...t.payload}}).addCase(Vg.fulfilled,(r,t)=>({...r,flags:{...r.flags,...t.payload}})).addCase(Qn.fulfilled,(r,t)=>{!t.payload||t.payload.path!==_.ROLES_TAB_PATH||(r.flags.touched=!1,r.flags.old=!1)}).addCase(Qc.fulfilled,(r,t)=>{t.meta.arg!==_.ROLES_TAB_PATH||!t.payload||(r.flags.touched=!1,r.flags.old=!1)})}}),{updatePrivileges:Jg,updateRoles:Xg,setRolesContent:Yc,toggleTab:rD,updateRolesAndPrivileges:Vc}=Kg.actions,nD=Kg.reducer,cn="qodlyApp.json",Kc=Q("settings/fetch",async()=>await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:cn,content:!0,as:"json"})),Zg=Q("settings/app",_.getAppSettings),aD=Th(),Hp={session:{"studio.tips":!0,"studio.notifications":!0,"webforms.tooltip.behavior":Bc.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}},oD={...Hp,session:{...Hp.session,...aD},welcometour:{}},Qg=or({name:"settings",initialState:oD,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(Kc.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:ev,setSettings:Ys,setSettingsAsText:sD}=Qg.actions,iD=Qg.reducer,pc=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:pc(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),uD=[{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}],tv=or({name:"explorer",initialState:uD,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(Zn.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(Zn.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(Zn.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:pc(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($a.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($a.fulfilled,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,children:pc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!1},error:null}):r}),e.addCase($a.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(as.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(as.fulfilled,(r,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg,c=_.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=hr(`${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(as.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(os.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(os.fulfilled,(r,t)=>{const{node:a}=t.payload,{node:{path:s,ext:i}}=t.meta.arg,{editor:c,supportedEditors:l}=hr(`${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(os.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(Na.pending,(r,t)=>{}),e.addCase(Na.fulfilled,(r,t)=>{var m;const{draggedNode:a,newLocation:s}=t.meta.arg,i=ag(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(Na.rejected,(r,t)=>{_.toastSubject.next({message:"Error moving file",kind:"danger"})}),e.addCase(Xn.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}=hr(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 Dh.merge(r,x)}),e.addCase(Xn.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}=hr(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(Xn.rejected,(r,t)=>{const{fileName:a,path:s,type:i}=t.meta.arg,c=_.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=hr(`${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(ph(Ma),(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(gh(Ma),(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(hh(Ma),(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:cD,expandFolder:lD,openAddFileInput:fD,addNewFile:rv,refreshFile:dD,removeFile:hc,setFolderChildren:pD}=tv.actions;function nv(e){switch(e){case _.FileFolderType.WEBFORMS:return Og;case _.FileFolderType.METHODS:return`//%attributes = {}
|
|
91
|
-
`;default:return""}}function
|
|
90
|
+
`):"",this.name="UnsubscriptionError",this.errors=t}});function uc(e,r){if(e){var t=e.indexOf(r);0<=t&&e.splice(t,1)}}var ks=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=ic(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(Lr(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=ic(m),E=b.next();!E.done;E=b.next()){var x=E.value;try{Fp(x)}catch(C){i=i??[],C instanceof Fu?i=Es(Es([],_s(i)),_s(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)Fp(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)&&uc(t,r)},e.prototype.remove=function(r){var t=this._finalizers;t&&uc(t,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}(),sg=ks.EMPTY;function ig(e){return e instanceof ks||e&&"closed"in e&&Lr(e.remove)&&Lr(e.add)&&Lr(e.unsubscribe)}function Fp(e){Lr(e)?e():e.unsubscribe()}var ug={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},cc={setTimeout:function(e,r){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];var s=cc.delegate;return s!=null&&s.setTimeout?s.setTimeout.apply(s,Es([e,r],_s(t))):setTimeout.apply(void 0,Es([e,r],_s(t)))},clearTimeout:function(e){var r=cc.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function SO(e){cc.setTimeout(function(){throw e})}function $p(){}function ns(e){e()}var cg=function(e){js(r,e);function r(t){var a=e.call(this)||this;return a.isStopped=!1,t?(a.destination=t,ig(t)&&t.add(a)):a.destination=CO,a}return r.create=function(t,a,s){return new lc(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}(ks),wO=Function.prototype.bind;function $u(e,r){return wO.call(e,r)}var TO=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){Jo(a)}},e.prototype.error=function(r){var t=this.partialObserver;if(t.error)try{t.error(r)}catch(a){Jo(a)}else Jo(r)},e.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(t){Jo(t)}},e}(),lc=function(e){js(r,e);function r(t,a,s){var i=e.call(this)||this,c;if(Lr(t)||!t)c={next:t??void 0,error:a??void 0,complete:s??void 0};else{var l;i&&ug.useDeprecatedNextContext?(l=Object.create(t),l.unsubscribe=function(){return i.unsubscribe()},c={next:t.next&&$u(t.next,l),error:t.error&&$u(t.error,l),complete:t.complete&&$u(t.complete,l)}):c=t}return i.destination=new TO(c),i}return r}(cg);function Jo(e){SO(e)}function xO(e){throw e}var CO={closed:!0,next:$p,error:xO,complete:$p},RO=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function OO(e){return e}function AO(e){return e.length===0?OO:e.length===1?e[0]:function(t){return e.reduce(function(a,s){return s(a)},t)}}var Mp=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=DO(r)?r:new lc(r,t,a);return ns(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=Np(t),new t(function(s,i){var c=new lc({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[RO]=function(){return this},e.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return AO(r)(this)},e.prototype.toPromise=function(r){var t=this;return r=Np(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 Np(e){var r;return(r=e??ug.Promise)!==null&&r!==void 0?r:Promise}function PO(e){return e&&Lr(e.next)&&Lr(e.error)&&Lr(e.complete)}function DO(e){return e&&e instanceof cg||PO(e)&&ig(e)}var IO=og(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),lg=function(e){js(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 Lp(this,this);return a.operator=t,a},r.prototype._throwIfClosed=function(){if(this.closed)throw new IO},r.prototype.next=function(t){var a=this;ns(function(){var s,i;if(a._throwIfClosed(),!a.isStopped){a.currentObservers||(a.currentObservers=Array.from(a.observers));try{for(var c=ic(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;ns(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;ns(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var a=t.observers;a.length;)a.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},r.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},r.prototype._innerSubscribe=function(t){var a=this,s=this,i=s.hasError,c=s.isStopped,l=s.observers;return i||c?sg:(this.currentObservers=null,l.push(t),new ks(function(){a.currentObservers=null,uc(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 Mp;return t.source=this,t},r.create=function(t,a){return new Lp(t,a)},r}(Mp),Lp=function(e){js(r,e);function r(t,a){var s=e.call(this)||this;return s.destination=t,s.source=a,s}return r.prototype.next=function(t){var a,s;(s=(a=this.destination)===null||a===void 0?void 0:a.next)===null||s===void 0||s.call(a,t)},r.prototype.error=function(t){var a,s;(s=(a=this.destination)===null||a===void 0?void 0:a.error)===null||s===void 0||s.call(a,t)},r.prototype.complete=function(){var t,a;(a=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||a===void 0||a.call(t)},r.prototype._subscribe=function(t){var a,s;return(s=(a=this.source)===null||a===void 0?void 0:a.subscribe(t))!==null&&s!==void 0?s:sg},r}(lg);const fg=new lg,FO=()=>Uh(),Wr=eO,Nc=q(e=>e,e=>e.catalog.state==="loaded"?e.catalog.model:null),$O=q(Nc,e=>e?e.dataClasses:[]),MO=q(Nc,e=>e?e.methods:[]),dg=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[]}}),NO=e=>Wr(dg(e),kh),LO=(e,r)=>q(dg(e),t=>t.find(a=>`${a.applyTo}.${a.name}`===r)),jO=(e,r,t)=>Wr(LO(e,`${t}.${r}`),kh),pg=q(e=>e,e=>e),kO=e=>q(Ur,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]}))}),hg=e=>q(Ur,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)||[]}),BO=(e,r,t)=>q(pg,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}}),gg=q(e=>e,e=>{var r;return((r=e.sharedDatasources)==null?void 0:r.sources)||[]}),WO=(e,r,t,a)=>q(hg(e),gg,(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}),UO=q(e=>e.debugger,e=>e.meta),An=q(e=>e.debugger,e=>e.list),It=q(e=>e.debugger,e=>e.sessions),HO=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),vg=(e,r)=>e.find(t=>t.tabPath===r),qO=(e,r)=>q(An,t=>{var a;return((a=On(t,e,r))==null?void 0:a.breakpoints.saved.locations)||[]}),GO=(e,r)=>q(An,t=>{var a;return((a=On(t,e,r))==null?void 0:a.breakpoints.draft.locations)||[]}),zO=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)),YO=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)),VO=e=>q(It,r=>{const t=st(r,e);return t!=null&&t.stopped?t.highlightedLines:null}),KO=e=>q(It,r=>{const t=st(r,e);return t!=null&&t.stopped?t.activeLine:null}),JO=e=>q(It,r=>{var t;return((t=st(r,e))==null?void 0:t.expressions)||[]}),XO=e=>q(It,r=>{var t;return((t=st(r,e))==null?void 0:t.stopped)||!1}),ZO=(e,r)=>q(An,t=>{var a;return(a=On(t,e,r))==null?void 0:a.source}),QO=e=>q(It,r=>{var t;return((t=vg(r,e))==null?void 0:t.threadId)||-1}),eA=e=>q(It,r=>{var t,a;return(a=(t=st(r,e))==null?void 0:t.currentStackFrame)==null?void 0:a.source}),tA=e=>q(It,r=>{var t;return(t=st(r,e))==null?void 0:t.currentStackFrame}),rA=q(It,e=>e.map(({channelId:r,threadId:t})=>({id:r,threadId:t}))),nA=e=>q(It,r=>{var t;return((t=st(r,e))==null?void 0:t.stackFrames)||[]}),aA=e=>q(It,r=>{var t,a;return((a=(t=st(r,e))==null?void 0:t.variables)==null?void 0:a.callchain)||[]}),oA=e=>q(It,r=>{var t,a;return((a=(t=st(r,e))==null?void 0:t.variables)==null?void 0:a.expressions)||[]}),sA=(e,r="saved")=>q(An,t=>{const a=t.find(s=>s.filePath===e);return(a==null?void 0:a.breakpoints[r].offset)||0}),iA=(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}))}),Ur=q(e=>e.root,e=>e),ca=q(Ur,e=>e.tabs),uA=q(Ur,e=>e.activeTab),cA=q(Ur,e=>e.recent.filter(({type:r})=>r!==_.FileFolderType.DEBUGGER)),lA=q(Ur,({tabs:e,activeTab:r})=>e.find(({path:t})=>t===r)),fA=q(Ur,({tabs:e})=>e.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null)),dA=q(ca,e=>e.filter(({type:r,flags:t})=>r===_.FileFolderType.WEBFORM&&t.enabled===!1).map(({path:r})=>r)),pA=q(ca,e=>e.length>0),Ya=e=>q(Ur,r=>r.tabs.find(({path:t})=>t===e)),mg=(e,r="")=>q(Ya(e),t=>!t||!t.content||typeof t.content=="string"?t==null?void 0:t.content:ze.get(t.content,r)),hA=e=>q(Ya(e),r=>r==null?void 0:r.extra),gA=(e,r=t=>t)=>q(mg(e,"components"),t=>r(t||{})),Lc=q(ca,e=>e.filter(r=>r.flags.touched)),vA=q(Lc,e=>e.length),mA=q(It,e=>e.map(({threadId:r,currentStackFrame:{source:t},tabPath:a})=>({name:Dh(r,t),path:a,type:_.FileFolderType.DEBUGGER,content:t==null?void 0:t.content,flags:{},extra:{source:t}}))),yA=q(e=>e,e=>e.explorer||[]),yg=q(e=>e,e=>e.explorer.find(r=>r.path===_.FolderRootPath.WEBFORMS)),bg=q(e=>e,e=>e.explorer.find(r=>r.path===_.FolderRootPath.METHODS)),_g=q(e=>e,e=>e.explorer.find(r=>r.path===_.FolderRootPath.CLASSES)),bA=q(bg,e=>(e==null?void 0:e.children)||[]),_A=q(yg,e=>(e==null?void 0:e.children)||[]),EA=q(_g,e=>(e==null?void 0:e.children)||[]),SA=q(e=>e.modals,e=>e.list),wA=q(e=>e.roles,({roles:e})=>e),TA=q(e=>e.roles,({privileges:e})=>e),xA=q(e=>e.roles,({privileges:e})=>Object.values(e).find(({privilege:r})=>r==="guest")),CA=q(e=>e.roles,({flags:e})=>e),RA=q(e=>e.roles,({selectedTab:e})=>e),OA=q(e=>e.roles,({date:e})=>e),Eg=q(e=>e.settings,e=>e.session),AA=q(e=>e.settings,e=>e.project),PA=q(e=>e.settings,e=>e),jc=q(e=>e.settings,e=>e.server),DA=q(jc,e=>e.remoteDebuggerMode),IA=q(jc,e=>e.qodly),FA=q(Eg,e=>e["monaco.zoom"]),Sg=["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"],wg=Sg.map(e=>({id:xc(),content:"",name:e,parentId:null,scope:_.EWebFormStyleClassScope.THEME})),kc=e=>q(Ya(e),r=>{var t,a;return((a=(t=r==null?void 0:r.content)==null?void 0:t.metadata)==null?void 0:a.styles)||[]}),$A=(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 wg;default:return[]}}).flat()),MA=e=>q(kc(e),r=>[...r.map(t=>({...t,scope:_.EWebFormStyleClassScope.LOCAL})),...wg]),NA=q(e=>e,e=>{var r;return[...(((r=e.sharedCSS)==null?void 0:r.styles)||[]).map(t=>({...t,scope:_.EWebFormStyleClassScope.SHARED}))]}),LA=e=>q(Ya(e),r=>r==null?void 0:r.flags),Va=q(e=>e.webforms,e=>e),Tg=q(Va,e=>(e==null?void 0:e.components)||[]),Bs=q(Va,e=>e.inspector),jA=q(Bs,e=>e.css),kA=q(Bs,e=>e.datasource),xg=q(Va,e=>e.templates||{data:[]}),BA=q(xg,e=>e.data||[]),WA=e=>q(Tg,r=>r.find(t=>t.id===e)),UA=e=>q(Bs,r=>r[e]),HA=q(Va,e=>e.datasources.theme),qA=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 Bc=(e=>(e.SHOW_AFTER_TIMEOUT="show_after_timeout",e.HIDE_AFTER_TIMEOUT="hide_after_timeout",e))(Bc||{}),Cg=(e=>(e.AIRY="airy",e.COMPACT="neutral",e))(Cg||{});const Rg={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:[],airyMode:!1},displayName:"App",custom:{},hidden:!1,nodes:[],linkedNodes:{}}}};var Xo,GA=new Uint8Array(16);function Og(){if(!Xo&&(Xo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Xo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Xo(GA)}const zA=/^(?:[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 Ws(e){return typeof e=="string"&&zA.test(e)}var mt=[];for(var Mu=0;Mu<256;++Mu)mt.push((Mu+256).toString(16).substr(1));function Us(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(!Ws(t))throw TypeError("Stringified UUID is invalid");return t}var jp,Nu,Lu=0,ju=0;function YA(e,r,t){var a=r&&t||0,s=r||new Array(16);e=e||{};var i=e.node||jp,c=e.clockseq!==void 0?e.clockseq:Nu;if(i==null||c==null){var l=e.random||(e.rng||Og)();i==null&&(i=jp=[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:ju+1,g=d-Lu+(p-ju)/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,ju=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||Us(s)}function Ag(e){if(!Ws(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 VA(e){e=unescape(encodeURIComponent(e));for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t));return r}var KA="6ba7b810-9dad-11d1-80b4-00c04fd430c8",JA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Pg(e,r,t){function a(s,i,c,l){if(typeof s=="string"&&(s=VA(s)),typeof i=="string"&&(i=Ag(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 Us(d)}try{a.name=e}catch{}return a.DNS=KA,a.URL=JA,a}function XA(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 ZA(QA(eP(e),e.length*8))}function ZA(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 Dg(e){return(e+64>>>9<<4)+14+1}function QA(e,r){e[r>>5]|=128<<r%32,e[Dg(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 eP(e){if(e.length===0)return[];for(var r=e.length*8,t=new Uint32Array(Dg(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 tP(e,r){return e<<r|e>>>32-r}function Hs(e,r,t,a,s,i){return nn(tP(nn(nn(r,e),nn(a,i)),s),t)}function Et(e,r,t,a,s,i,c){return Hs(r&t|~r&a,e,r,s,i,c)}function St(e,r,t,a,s,i,c){return Hs(r&a|t&~a,e,r,s,i,c)}function wt(e,r,t,a,s,i,c){return Hs(r^t^a,e,r,s,i,c)}function Tt(e,r,t,a,s,i,c){return Hs(t^(r|~a),e,r,s,i,c)}var rP=Pg("v3",48,XA);const nP=rP;function aP(e,r,t){e=e||{};var a=e.random||(e.rng||Og)();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 Us(a)}function oP(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 ku(e,r){return e<<r|e>>>32-r}function sP(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]=ku(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=ku(C,5)+oP(O,I,P,k)+M+r[O]+b[j]>>>0;M=k,k=P,P=ku(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 iP=Pg("v5",80,sP);const uP=iP,cP="00000000-0000-0000-0000-000000000000";function lP(e){if(!Ws(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const fP=Object.freeze(Object.defineProperty({__proto__:null,NIL:cP,parse:Ag,stringify:Us,v1:YA,v3:nP,v4:aP,v5:uP,validate:Ws,version:lP},Symbol.toStringTag,{value:"Module"})),dP=fw(fP);function Wc(e,r){if(!e||!r||!e.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=r}Wc.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};Wc.prototype.isValid=function(e){for(var r=0;r<e.length;++r)if(this.srcAlphabet.indexOf(e[r])===-1)return!1;return!0};var pP=Wc,hP=pP;function Ka(e,r){var t=new hP(e,r);return function(a){return t.convert(a)}}Ka.BIN="01";Ka.OCT="01234567";Ka.DEC="0123456789";Ka.HEX="0123456789abcdef";var gP=Ka;const{v4:Bu}=dP,Zo=gP,Wu="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",vP="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",mP={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)},yP=(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("-")},bP=e=>Math.ceil(Math.log(2**128)/Math.log(e));var Ss=(()=>{const e=(r,t)=>{const a=r||Wu,s={...mP,...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=bP(a.length),c={shortIdLength:i,consistentLength:s.consistentLength,paddingChar:a[0]},l=Zo(Zo.HEX,a),d=Zo(a,Zo.HEX),p=()=>kp(Bu(),l,c),g={new:p,generate:p,uuid:Bu,fromUUID:m=>kp(m,l,c),toUUID:m=>yP(m,d),alphabet:a,maxLength:i};return Object.freeze(g),g};return e.constants={flickrBase58:Wu,cookieBase90:vP},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 _P=[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE,Ae.METHOD],ws="guest",Uc=[{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 Ig(e){const r={},t=new Map;e.forEach(d=>{const p=d.id||Ss.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=Fg(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===ws))return r;const l=Ss.generate();return{[l]:{id:l,privilege:ws,includes:[],parents:[],resources:[]},...r}}function Fg(e){return Object.values(e).sort((r,t)=>r.parents.length-t.parents.length)}function qs(e,r){const t=r[e];let a=[];return t&&t.parents.forEach(s=>{a=ar(a,...qs(s,r),s)}),a}function Ts(e,r){const t=r[e];let a=[];return t&&t.includes.forEach(s=>{a=ar(a,...Ts(s,r),s)}),a}function EP(e,r){const t=r[e];if(!t)return[];const a=[e,...qs(e,r),...t.includes];return Object.keys(r).filter(s=>!a.includes(s))}function SP(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 wP(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 TP(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 $g(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=Ss.generate();return{[t]:{id:t,privilege:e,includes:[],parents:[],resources:[]},...r}}function xP(e,r,t,a,s){let i=$g(e,s);const c=Object.entries(i).find(([,l])=>l.privilege===e);return c?(i=jg(c[1].id,r,t,a,i),i):s}function CP(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 RP(e,r){return e.map(t=>Hr(t,r))}function Hr(e,r){return r[e]?r[e]:null}function Mg({applyTo:e,type:r,...t}){return Object.entries(t).reduce((a,[s,i])=>{const c=ze.find(Uc,["key",s]);return!c||!c.canApplyTo.includes(r)||(typeof i=="string"?i.split(","):i).forEach(d=>{a[d]=ar(a[d]||[],s)}),a},{})}const fc=(e,r=!1)=>["read","create","update","delete"].includes(e.toLowerCase())?`All ${r?"dataclasses and ":""}attributes have the '${e.toLowerCase()}' permission`:e.toLowerCase()==="execute"?`All functions defined ${r?"through the model (DataStore, Dataclasses, Entity selections, Entities) have the execute permission":"on this Dataclass, Entity selection class, Entity class have the execute permission"}`:`All ${r?"dataclasses, ":""}attributes and functions have the '${e.toLowerCase()}' permission`;function Hc(e){return{permissions:Uc.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:fc(t,!0)};case Ae.DATACLASS:return{...a,info:fc(t)};default:return a}}),resource:e.applyTo,type:e.type}}function Ng(e,r){const t=Lg(r),a={};return e.filter(({type:s})=>_P.includes(s)).forEach(s=>{const i=Mg(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=Hc(s),a[d].resources.push(p)),p.permissions=p.permissions.map(m=>({...m,checked:m.checked||l.includes(m.name)}))})}),{...r,...a}}function Lg(e){return Object.values(e).reduce((r,t)=>({...r,[t.privilege]:t}),{})}function Gs(e){var t;const r=Ig(e.privileges||[]);return{privileges:Ng(((t=e.permissions)==null?void 0:t.allowed)||[],r),roles:(e.roles||[]).map(({id:a=Ss.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 qc(e){const r=Object.values(e.privileges).filter(({includes:a})=>a.length===0).map(({id:a})=>a),t=[...r,...r.map(a=>qs(a,e.privileges).reverse())].flat().filter((a,s,i)=>i.indexOf(a)===s).map(a=>e.privileges[a]);return{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!==ws).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 OP(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 AP(e,r,t){const a=Hr(e,t);if(!a||ze.find(a.resources,{resource:r.applyTo,type:r.type}))return t;const s={...a,resources:[...a.resources,Hc(r)]};return{...t,[e]:s}}function PP(e,r,t){const a=Hr(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 DP(e,r){const t=Hr(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 jg(e,r,t,a,s){const i=Hr(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:Uc.filter(d=>d.canApplyTo.includes(t)).map(d=>({from:[],name:d.key,checked:d.key===a,info:fc(d.key,t===Ae.DATASTORE)}))}]};return{...s,[e]:l}}function IP(e,r,t,a){const s=Hr(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 FP(e,r){var d;const t=kg(e,r)||[],a=((d=Hr(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 kg(e,r){var c;const t=Hr(e,r);if(!t)return[];const a=(c=Object.values(r).find(l=>l.privilege===ws))==null?void 0:c.id;return(a&&a!==e?ar(Ts(e,r),a):Ts(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 $P=e=>e.reduce((r,t)=>({...r,[t.id]:{...t}}),{}),MP=(e,r)=>r[e]?Object.values(r).reduce((t,a)=>e===a.id||a.role===""?t:{...t,[a.id]:a},{}):r,NP=(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,LP=(e,r)=>{const t={id:e,role:"",privileges:[]};return{...r,[t.id]:t}},jP=(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},{})},kP={list:[]},Bp=(e,r)=>e.list.filter(t=>t.id!==r),Bg=or({name:"modals",initialState:kP,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=Bp(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=Bp(e,t)}}}),{createModal:Wg,removeModal:Ug,closeModal:BP,editModal:WP}=Bg.actions;var Hg={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Wp=Ke.createContext&&Ke.createContext(Hg),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)},UP=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 qg(e){return e&&e.map(function(r,t){return Ke.createElement(r.tag,sn({key:t},r.attr),qg(r.child))})}function zs(e){return function(r){return Ke.createElement(HP,sn({attr:sn({},e.attr)},r),qg(e.child))}}function HP(e){var r=function(t){var a=e.attr,s=e.size,i=e.title,c=UP(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 Wp!==void 0?Ke.createElement(Wp.Consumer,null,function(t){return r(t)}):r(Hg)}function qP(e){return zs({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 GP(e){return zs({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 zP(e){return zs({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 YP(e){return zs({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 VP={FaSave:qP,AiFillWarning:YP,BiErrorCircle:zP,BsFillInfoCircleFill:GP};var zt=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(zt||{}),qr=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(qr||{}),Gc=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Gc||{});const vr=Q("modals/open",async(e,{dispatch:r})=>{const{type:t=zt.ALERT,store:a=ra}=e,s=xc();switch(r(Wg({id:s,type:t,isOpen:!0,...e})),t){case zt.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===Gc.CONFIRMED,m=ze.entries((p=d.views)==null?void 0:p.toggles).reduce((b,E)=>({...b,[E[0]]:E[1].value}),{});r(Ug(s)),c(),i({confirmed:g,options:m})}})});default:return{}}}),Gg=()=>_.getFileContent({name:_.ROLES_TAB_PATH}),zg="Roles & Privileges",xs=Q("roles/fetchRoles",async(e,{dispatch:r,rejectWithValue:t})=>{var i;let a;try{a=await Gg()}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:zg,type:_.FileFolderType.ROLES,date:a.date,view:{panel:{isOpen:!1,type:"",current:""}},path:_.ROLES_TAB_PATH,flags:{},content:{}};return r(Dt(s)),{...a,content:Gs(a.content)}}),Yg=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 zc(s))return{old:!0}}return{}}),zc=async e=>{if(!e)return!1;try{const r=await Gg();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},dc=Q("roles/saveRoles",async(e,{getState:r,rejectWithValue:t,dispatch:a})=>{try{const{flags:s,date:i}=r().roles;if(s.old||await zc(i)){const{confirmed:d}=await a(vr({title:zg,message:"New content has been found on the server. Are you sure you want to continue?",type:zt.CONFIRM,icon:"FaSave"})).unwrap();if(!d)return t({old:!0})}return await _.setFileContent({name:_.ROLES_TAB_PATH,content:qc(e)})}catch{return t("Error while loading the roles")}}),KP=na().roles,{roles:JP={},privileges:XP={},flags:ZP={touched:!1},date:QP,selectedTab:eD="roles"}=KP||{},tD={flags:ZP,roles:JP,privileges:XP,date:QP,selectedTab:eD},Vg=or({name:"roles",initialState:tD,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,date:a}=r.payload,s=Gs(t);return{...e,...s,date:a}}},extraReducers(e){e.addCase(xs.fulfilled,(r,t)=>{const{content:a,date:s}=t.payload;r={...r,...a,date:s}}).addCase(xs.rejected,r=>({...r,roles:{},privileges:{},flags:{touched:!1},date:void 0})).addCase(dc.fulfilled,(r,t)=>({...r,flags:{...r.flags,touched:!1,old:!1},date:t.payload.date})).addCase(dc.rejected,(r,t)=>Ph.isString(t.payload)?r:{...r,flags:{...r.flags,...t.payload}}).addCase(Yg.fulfilled,(r,t)=>({...r,flags:{...r.flags,...t.payload}})).addCase(Qn.fulfilled,(r,t)=>{!t.payload||t.payload.path!==_.ROLES_TAB_PATH||(r.flags.touched=!1,r.flags.old=!1)}).addCase(Qc.fulfilled,(r,t)=>{t.meta.arg!==_.ROLES_TAB_PATH||!t.payload||(r.flags.touched=!1,r.flags.old=!1)})}}),{updatePrivileges:Kg,updateRoles:Jg,setRolesContent:Yc,toggleTab:rD,updateRolesAndPrivileges:Vc}=Vg.actions,nD=Vg.reducer,cn="qodlyApp.json",Kc=Q("settings/fetch",async()=>await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:cn,content:!0,as:"json"})),Xg=Q("settings/app",_.getAppSettings),aD=wh(),Up={session:{"studio.tips":!0,"studio.notifications":!0,"webforms.tooltip.behavior":Bc.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}},oD={...Up,session:{...Up.session,...aD},welcometour:{}},Zg=or({name:"settings",initialState:oD,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(Kc.fulfilled,(r,t)=>{r.project={...r.project,...t.payload.content}}),e.addCase(Xg.fulfilled,(r,t)=>{r.server=t.payload,r.server.qodly&&(r.project["webforms.display-mode"]="airy")})}}),{setSetting:Qg,setSettings:Ys,setSettingsAsText:sD}=Zg.actions,iD=Zg.reducer,pc=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:pc(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),uD=[{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}],ev=or({name:"explorer",initialState:uD,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(Zn.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(Zn.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(Zn.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:pc(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($a.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($a.fulfilled,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,children:pc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!1},error:null}):r}),e.addCase($a.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(as.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(as.fulfilled,(r,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg,c=_.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=hr(`${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(as.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(os.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(os.fulfilled,(r,t)=>{const{node:a}=t.payload,{node:{path:s,ext:i}}=t.meta.arg,{editor:c,supportedEditors:l}=hr(`${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(os.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(Na.pending,(r,t)=>{}),e.addCase(Na.fulfilled,(r,t)=>{var m;const{draggedNode:a,newLocation:s}=t.meta.arg,i=ng(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(Na.rejected,(r,t)=>{_.toastSubject.next({message:"Error moving file",kind:"danger"})}),e.addCase(Xn.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}=hr(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 Ph.merge(r,x)}),e.addCase(Xn.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}=hr(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(Xn.rejected,(r,t)=>{const{fileName:a,path:s,type:i}=t.meta.arg,c=_.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=hr(`${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(dh(Ma),(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(hh(Ma),(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(ph(Ma),(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:cD,expandFolder:lD,openAddFileInput:fD,addNewFile:tv,refreshFile:dD,removeFile:hc,setFolderChildren:pD}=ev.actions;function rv(e){switch(e){case _.FileFolderType.WEBFORMS:return Rg;case _.FileFolderType.METHODS:return`//%attributes = {}
|
|
91
|
+
`;default:return""}}function nv(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 hD(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 av(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 gD=Q("files/tryEditMethod",async({method:e},{dispatch:r})=>{const t=e.filePath.split("/"),[a]=t[1].split("."),{editor:s}=hr(e.filePath);return await r(Jc({file:{name:a,path:e.filePath,date:new Date().toISOString(),type:_.FileFolderType.CLASS,editor:s},line:e.startingLine+1})).unwrap()}),gc=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,27 +96,27 @@ 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(Xn({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}=hr(`${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:()=>{}}),$a=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}=hr(`${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 vD(e){const r=e.split(".");return r.pop(),{name:r.join("."),ext:e.split(".")[e.split(".").length-1]}}const mD=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}}}),yD=Q("explorer/uploadFile",async({file:e,path:r,parentNode:t},{dispatch:a})=>{const{editor:s,supportedEditors:i}=hr(r),{name:c,ext:l}=vD(e.name);a(rv({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(hc({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(hc({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}}}),Xn=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:av(e,r,d),content:s||nv(r),path:t,asText:[_.FileFolderType.CLASS,_.FileFolderType.METHOD].includes(r)});return a.error&&(a.flags.expanded?await i(Sr(a.path)):await i($a(a.path))),{qodly:d,file:p,parentNode:a}}catch{return c("failed to create folder")}});function sv(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 bD=Q("explorer/createNewFileAndOpen",async(e,{dispatch:r,getState:t})=>{const a=await r(Xn(e)).unwrap(),{qodly:s}=t().settings.server;if(a){const{file:i}=a,c=sv(i,{withExtension:!1,qodly:s}),{editor:l}=hr(c);await r(Ma({file:{name:e.fileName,type:i.type,path:c,editor:l,date:new Date().toISOString()}}))}}),as=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")}}),Vs=async e=>{try{const r=e.path.split(".").at(-1),t=await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:Ch(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}},Ma=Q("explorer/openFile",async({file:e,inactive:r,flags:t={}},{getState:a,dispatch:s})=>{const{root:{tabs:i},roles:c}=a(),l=i.find(({path:g})=>e.path===g);if(l){const g={...l,extra:{...l==null?void 0:l.extra,editor:e.editor},flags:{...l==null?void 0:l.flags,...t}};return s(Dt(g)),g}if(e.path.startsWith("Debugger")){const g=a().debugger.sessions.find(m=>`Debugger/${m.threadId}`===e.path);if(g){const{source:{content:m},source:b}=g.currentStackFrame,E={name:e.name,type:_.FileFolderType.DEBUGGER,date:new Date().toISOString(),path:e.path,content:m,view:{panel:{isOpen:!1,type:"",current:""}},initialContent:m,flags:{},extra:{source:b,editor:e.editor}};return s(Dt(E)),E}}const d=await Vs(e);return e.path===_.ROLES_TAB_PATH&&!c.flags.touched?s(Yc({content:d.content,date:d.date})):e.path===cn&&s(Ys({path:"project",value:d.content})),s((r?Wv:Dt)(d)),d}),Jc=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 Vs(e);return t(Dt(i)),i}),iv=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 Vs({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}`}}),uv=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 Vs(e);return t(Dt(i)),i}),vc=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:ov(t),verb:_.DesignerRequestVerb.DROP,name:r,path:i.join("/")}),node:e}}),_D=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}}),ED=Q("explorer/removeFileNode",async e=>{const{ext:r,path:t}=e;return await _.removeItem({verb:_.DesignerRequestVerb.REMOVE_ITEM,path:`${t}.${r}`,force:!0}),t==="Classes/DataStore"&&za(),{deleted:!0,node:e}}),Zn=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}`}}}),Na=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")}}),os=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")}}),SD=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")}}),wD=Q("files/fetchFiles",async()=>_.getFolders(_.FolderRootType.WEBFORMS,_.FolderRootType.METHODS,_.FolderRootType.CLASSES)),Xc=Q("tabs/renameDatasource",async(e,{dispatch:r,getState:t})=>{var E,x;const a=!!e.datasourceNamespace,{confirmed:s}=await r(vr({message:"Are you sure you want to rename the datasource?",title:"Rename Datasource",type:zt.CONFIRM,color:qr.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}}),Zc=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)}),cv=Q("tabs/fetchChanges",async(e,{getState:r})=>{const a=ca(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:"."}}))}),TD=Q("files/saveAll",async(e,{getState:r,dispatch:t})=>{const a=Lc(r());for(const s of a)t(Qn({tab:s}))}),Qc=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(vr({title:Is(i),message:"Your unsaved changes will be lost. Proceed anyway?",type:zt.CONFIRM,color:qr.WARNING,icon:"AiFillWarning"})).unwrap();if(!c)return!1}return t($v(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(Yc({content:l.content,date:l.date}))})(),!0}),xD=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(vr({title:"Closing other tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:zt.CONFIRM,color:qr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(jv(e))}),CD=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(vr({title:"Closing all tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:zt.CONFIRM,color:qr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(Nv())}),RD=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(vr({title:"Closing right tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:zt.CONFIRM,color:qr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(Lv(e))}),OD=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(vr({title:"Closing left tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:zt.CONFIRM,color:qr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(kv(e))}),mc=Q("files/reloadTab",async(e,{dispatch:r})=>{if(e.flags.touched){const{confirmed:s}=await r(vr({title:Is(e),message:"Changes made to the file will be lost. Continue?",type:zt.CONFIRM,color:qr.WARNING,icon:"AiFillWarning"})).unwrap();if(!s)return}const t=og(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}=Gs(a.content);r(Vc({roles:s,privileges:i})),r(sl({path:e.path,flags:{old:!1}}))}else if(e.path===cn){const{content:s}=a;r(Ys({path:"project",value:s}))}else{const{content:s}=a;return e.type===_.FileFolderType.WEBFORM?_.webformSubject.next({path:e.path,action:_.WebformActions.RELOAD,payload:s.components}):e.type===_.FileFolderType.MODEL&&dg.next({action:"reload",payload:s}),a}}),Qn=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(vr({title:Is(e),message:"New content has been found on the server. Are you sure you want to continue?",type:zt.CONFIRM,icon:"FaSave"})).unwrap();if(!b)return r(sl({path:a,flags:{old:!0}})),null}}const l=await _.saveContent({verb:_.DesignerRequestVerb.SAVE_CONTENT,content:AD(e,t()),path:a});(e.type===_.FileFolderType.CLASS||e.type===_.FileFolderType.MODEL)&&za();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}]:[]}}),AD=(e,r)=>{switch(!0){case e.path==="settings.json":case e.path===cn:return r.settings.project;case e.type===_.FileFolderType.ROLES:return qc(r.roles);case e.type===_.FileFolderType.MODEL:return e.content||{toJSON:!0,dataClasses:[],extraProperties:{}};default:return e.content}},qp=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?xh(l):l}},lv=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 qp({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:_.FileFolderType.CLASS})}catch{r?await a(gc({type:"dataclass",className:r,collectionName:`${r}Selection`,toCreate:e})):await a(gc({type:"model"}))}return p=await qp({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:_.FileFolderType.CLASS}),p.path=d,a(Dt(p)),p}),PD=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(xs())}),{debugger:Yn={meta:{state:Nr.DETACHED},list:[],sessions:[],expressions:[]}}=na();var Xp,Zp;const DD={meta:{...Yn.meta,state:((Xp=Yn.meta)==null?void 0:Xp.state)===Nr.ATTACHED?(Zp=Yn.meta)==null?void 0:Zp.state:Nr.DETACHED},list:Yn.list||[],sessions:Yn.sessions||[],expressions:Yn.expressions||[]};function Gp(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 zp(e,r,t,a){e.breakpoints[t].locations=r,ze.isNumber(a)&&(e.breakpoints[t].offset=a)}function Yp({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 Vp(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 Qo(e){return e.map(({label:r})=>({label:r}))}const fv=or({name:"debugger",initialState:DD,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)Gp(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=Yp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});Gp(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)zp(b,d,g,p),m&&g!=="draft"&&(b.breakpoints.draft.locations=[]);else{const E=Yp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});zp(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=Qo(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=Qo(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=Qo(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=Qo(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=Ic(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:Vp((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:Vp((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===Nr.ERROR){e.meta.error={...e.meta.error,time:Date.now()};const{override:t,error:a={code:null,reason:"",type:gs.SOCKET_ERROR}}=r.payload;if((t||e.meta.state!==Nr.ERROR)&&(e.meta.error={...e.meta.error,...a}),(a==null?void 0:a.type)===gs.SOCKET_CLOSURE&&!(a!=null&&a.reason)&&e.meta.state===Nr.DETACHED)return}e.meta.state=r.payload.state}},extraReducers:e=>{e.addCase(pv.fulfilled,r=>{r.sessions=[]})}}),{addBreakpointDecoration:ID,removeBreakpointDecoration:FD,setBreakpointsDecoration:$D,clearBreakpoints:MD,setActiveLine:ND,addExpression:LD,renameExpression:jD,removeExpression:kD,removeAllExpressions:BD,setExpression:WD,updateExpressionAt:UD,saveExpressions:HD,addSession:qD,updateSession:GD,removeSession:zD,removeSessionByIndex:YD,setSessions:dv,setCallChainVariables:VD,setExpressionVariables:KD,setSourceContent:JD,setDebuggerMeta:XD}=fv.actions,pv=Q("files/wipeDebuggerSessions",async(e,{getState:r,dispatch:t})=>{const{sessions:a}=r().debugger;for(const{threadId:s}of a){const i=Ic(s);t(Qc(i))}}),hv=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(dv(c)),{staleThreadIds:i}});var el=(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))(el||{}),Mr=(e=>(e.STORAGE="storage",e.RELATEDENTITY="relatedEntity",e.RELATEDENTITIES="relatedEntities",e.CALCULATED="calculated",e.COMPOSITION="composition",e.ALIAS="alias",e))(Mr||{});const ZD=e=>["string","uuid","number","long"].includes(e.type),QD=[{label:"Storage",value:"storage"},{label:"Calculated",value:"calculated"}],eI=[{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"}],tI=[{title:"String",kind:"storage",value:"string",calculatedType:"string",calculatedKind:"storage"},{title:"Text",kind:"storage",value:"text",calculatedType:"text",calculatedKind:"storage"},{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Date",kind:"storage",value:"date",calculatedType:"date",calculatedKind:"storage"},{title:"Duration",kind:"storage",value:"duration",calculatedType:"duration",calculatedKind:"storage"},{title:"Bool",kind:"storage",value:"bool",calculatedType:"bool",calculatedKind:"storage"},{title:"Byte",kind:"storage",value:"byte",calculatedType:"byte",calculatedKind:"storage"},{title:"Word",kind:"storage",value:"word",calculatedType:"word",calculatedKind:"storage"},{title:"Number",kind:"storage",value:"number",calculatedType:"number",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"},{title:"Object",kind:"storage",value:"object",calculatedType:"object",calculatedKind:"storage"},{title:"Image",kind:"storage",value:"image",calculatedType:"image",calculatedKind:"storage"},{title:"Blob",kind:"storage",value:"blob",calculatedType:"blob",calculatedKind:"storage"}],rI=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],nI=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],aI=[{label:"None",value:"none"},{label:"B-tree",value:"btree"},{label:"Cluster",value:"cluster"},{label:"Automatic",value:"auto"}],gv=Pt("model/add-dataclass"),vv=Pt("model/rename-dataclass"),mv=Pt("model/remove-dataclass"),yv=Pt("model/add-attribute"),oI=Pt("model/edit-attribute-property"),bv=Pt("model/remove-attribute"),_v=Pt("model/rename-attribute"),Ev=Pt("model/edit-primary-key"),sI=Pt("model/edit-dataclass-property"),Sv=Pt("model/rename-collection"),iI=(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 ss(e,r,t){const a=e;let s=0;for(;t[`${a}${s||""}`];)s++;return`${a}${s||""}`}const La=e=>e.kind===Mr.RELATEDENTITY,Cs=e=>e.kind===Mr.RELATEDENTITIES,uI=e=>Cs(e)||La(e),tl=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}}),Rs=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 za(),{...i,path:s.path,content:e.content||{toJSON:!0,dataClasses:[],extraProperties:{}}}}catch{return t("Error while saving the model")}}),cI=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(tl())}),lI=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(vr({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(Zn({file:E.file,newname:E.filename_update})))),g.length>0&&t(Sr("Classes"))}),Ha={DATACLASS_DELETE:"dataclass.delete",DATACLASS_DRAGGABLE:"dataclass.draggable"},fI={model:{dataClasses:{},collections:{},extraProperties:{}},draft:{dataClasses:{},collections:{},extraProperties:{}},flags:{[Ha.DATACLASS_DELETE]:!0,[Ha.DATACLASS_DRAGGABLE]:!0}},wv=or({name:"Models",initialState:fI,reducers:{setModelFlag(e,r){e.flags={...e.flags,...r.payload}}},extraReducers(e){e.addCase(gv,({draft:{dataClasses:r}},t)=>{var c,l;const{dataclassID:a}=t.payload,s=ss(a||"DataClass","className",r),i={className:s,collectionName:`${s}Selection`,attributes:[{name:"ID",kind:Mr.STORAGE,type:el.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(mv,({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(vv,({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=ss(`${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(yv,({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===Mr.RELATEDENTITY){if(!r[i])return;p.path=i;const m={name:ss(r[i].collectionName,"name",r[i].attributes),type:r[a].collectionName,kind:Mr.RELATEDENTITIES,reversePath:!0,path:s,scope:"public",exposed:!0};r[i].attributes.push(m)}else if(c===Mr.RELATEDENTITIES){const g=r[i];if(!g)return;const m=g.attributes.find(_.by("name",l));if(m){if(!La(m)||m.type!==r[a].className)return}else{p.path=l,p.reversePath=!0,p.type=i;const b={name:l,kind:Mr.RELATEDENTITY,scope:"public",path:g.className,type:g.className,exposed:!0};g.attributes.push(b)}}r[a].attributes.push(p)}).addCase(_v,({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=>{La(c)&&Cs(m)&&m.type===d&&m.path===s&&(m.path=i),g===a&&m.name===s&&(m.name=i)})})}).addCase(bv,({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&&(La(i)&&Object.values(r).forEach(c=>{c.attributes=c.attributes.filter(l=>!(Cs(l)&&l.type===c.collectionName&&l.path===i.name))}),r[a].attributes=r[a].attributes.filter(_.outBy("name",s)))}).addCase(Sv,({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(Ev,({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(tl.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(Rs.pending,()=>{}).addCase(Rs.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:dI}=wv.actions,pI=()=>Wr(e=>e.model.draft.dataClasses),hI=()=>Wr(e=>e.model.draft.collections),gI=e=>Wr(r=>r.model.draft.dataClasses[e]),vI=(e,r)=>Wr(t=>t.model.draft.dataClasses[e].attributes.find(_.by("name",r))),mI=()=>Wr(e=>e.model.draft.extraProperties),yI=()=>{const e=Wr(s=>s.model.flags),r=s=>s in e?e[s]:void 0,t=r(Ha.DATACLASS_DELETE),a=r(Ha.DATACLASS_DRAGGABLE);return{deleteDataclass:t,draggableDataclass:a,flags:e}},bI=wv.reducer;function Hu(e,r){const t=e.tabs.find(({path:a})=>a===cn);t&&(t.flags.touched=r)}const Tv={SIDEBAR_SECTION_RESIZABLE:"sidebar.section.resizable"},{webforms:es}=na(),xv={[Tv.SIDEBAR_SECTION_RESIZABLE]:!0},Cv={...es,templates:{data:[],selectedGroup:""},datasources:{...Pc.webforms.datasources,...es==null?void 0:es.datasources},flags:xv},Rv=or({name:"webforms",initialState:Cv,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(Fv.fulfilled,(r,t)=>{r.components=t.payload})}}),{toggleInspector:_I,inspect:EI,addComponent:Ov,editComponent:Av,removeComponent:Pv,setSelectedGroup:SI,setTemplatesData:Dv,setTemplateData:Iv,setDatasourcesTheme:wI,setWebformsFlag:TI}=Rv.actions,xI=Rv.reducer,rl=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)}),CI=Q("webforms/fetchTemplates",async(e,{dispatch:r,getState:t})=>{const{data:a}=t().webforms.templates;if(!ze.isEmpty(a))return a;try{const i=await(await fetch(`https://raw.githubusercontent.com/4d/Web-studio-TIPS/gh-build/build/index.json?t=${Date.now()}`)).json();return r(Dv(i)),i}catch{return[]}}),RI=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(Iv({group:e,components:c})),c}catch{return[]}}),Fv=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")}}),OI=Q("webforms/addCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(Ov(e));const{webforms:{components:s}}=a();_.setCraftedComponents(s)}catch{return t("Error while adding the crafted component")}}),AI=Q("webforms/editCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(Av(e));const{webforms:{components:s}}=a();_.setCraftedComponents(s)}catch{return t("Error while editing the crafted component")}}),PI=Q("webforms/removeCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(Pv(e));const{webforms:{components:s}}=a();_.setCraftedComponents(s)}catch{return t("Error while removing the crafted component")}}),nl=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")}}),al=Q("datasources/edit-datasource",async(e,{getState:r,rejectWithValue:t})=>{try{const{namespace:a,path:s}=e,i=r(),c=!!e.namespace,l=rl(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}`)}}),DI=e=>e.type===ea.fulfilled.type,ea=Q("datasources/rename-datasource",async(e,{getState:r,rejectWithValue:t})=>{try{const a=r(),s=!!e.namespace,i=e.namespace||e.path,c=rl(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}`)}}),ja=Q("datasources/delete-datasource",async(e,{getState:r,rejectWithValue:t})=>{try{const a=r(),s=!!e.namespace,i=e.namespace||e.path,l=rl(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}`)}}),qu=na(),II={filesLoading:!1,tabs:qu.tabs||[],activeTab:qu.activeTab,recent:qu.recent||[]},ol=or({name:"root",initialState:II,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(iv.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(Xn({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}=hr(`${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:()=>{}}),$a=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}=hr(`${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 vD(e){const r=e.split(".");return r.pop(),{name:r.join("."),ext:e.split(".")[e.split(".").length-1]}}const mD=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}}}),yD=Q("explorer/uploadFile",async({file:e,path:r,parentNode:t},{dispatch:a})=>{const{editor:s,supportedEditors:i}=hr(r),{name:c,ext:l}=vD(e.name);a(tv({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(hc({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(hc({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}}}),Xn=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:nv(e,r,d),content:s||rv(r),path:t,asText:[_.FileFolderType.CLASS,_.FileFolderType.METHOD].includes(r)});return a.error&&(a.flags.expanded?await i(Sr(a.path)):await i($a(a.path))),{qodly:d,file:p,parentNode:a}}catch{return c("failed to create folder")}});function ov(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 bD=Q("explorer/createNewFileAndOpen",async(e,{dispatch:r,getState:t})=>{const a=await r(Xn(e)).unwrap(),{qodly:s}=t().settings.server;if(a){const{file:i}=a,c=ov(i,{withExtension:!1,qodly:s}),{editor:l}=hr(c);await r(Ma({file:{name:e.fileName,type:i.type,path:c,editor:l,date:new Date().toISOString()}}))}}),as=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")}}),Vs=async e=>{try{const r=e.path.split(".").at(-1),t=await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:xh(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}},Ma=Q("explorer/openFile",async({file:e,inactive:r,flags:t={}},{getState:a,dispatch:s})=>{const{root:{tabs:i},roles:c}=a(),l=i.find(({path:g})=>e.path===g);if(l){const g={...l,extra:{...l==null?void 0:l.extra,editor:e.editor},flags:{...l==null?void 0:l.flags,...t}};return s(Dt(g)),g}if(e.path.startsWith("Debugger")){const g=a().debugger.sessions.find(m=>`Debugger/${m.threadId}`===e.path);if(g){const{source:{content:m},source:b}=g.currentStackFrame,E={name:e.name,type:_.FileFolderType.DEBUGGER,date:new Date().toISOString(),path:e.path,content:m,view:{panel:{isOpen:!1,type:"",current:""}},initialContent:m,flags:{},extra:{source:b,editor:e.editor}};return s(Dt(E)),E}}const d=await Vs(e);return e.path===_.ROLES_TAB_PATH&&!c.flags.touched?s(Yc({content:d.content,date:d.date})):e.path===cn&&s(Ys({path:"project",value:d.content})),s((r?Wv:Dt)(d)),d}),Jc=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 Vs(e);return t(Dt(i)),i}),sv=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 Vs({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}`}}),iv=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 Vs(e);return t(Dt(i)),i}),vc=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:av(t),verb:_.DesignerRequestVerb.DROP,name:r,path:i.join("/")}),node:e}}),_D=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}}),ED=Q("explorer/removeFileNode",async e=>{const{ext:r,path:t}=e;return await _.removeItem({verb:_.DesignerRequestVerb.REMOVE_ITEM,path:`${t}.${r}`,force:!0}),t==="Classes/DataStore"&&za(),{deleted:!0,node:e}}),Zn=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}`}}}),Na=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")}}),os=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")}}),SD=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")}}),wD=Q("files/fetchFiles",async()=>_.getFolders(_.FolderRootType.WEBFORMS,_.FolderRootType.METHODS,_.FolderRootType.CLASSES)),Xc=Q("tabs/renameDatasource",async(e,{dispatch:r,getState:t})=>{var E,x;const a=!!e.datasourceNamespace,{confirmed:s}=await r(vr({message:"Are you sure you want to rename the datasource?",title:"Rename Datasource",type:zt.CONFIRM,color:qr.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}}),Zc=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)}),uv=Q("tabs/fetchChanges",async(e,{getState:r})=>{const a=ca(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:"."}}))}),TD=Q("files/saveAll",async(e,{getState:r,dispatch:t})=>{const a=Lc(r());for(const s of a)t(Qn({tab:s}))}),Qc=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(vr({title:Is(i),message:"Your unsaved changes will be lost. Proceed anyway?",type:zt.CONFIRM,color:qr.WARNING,icon:"AiFillWarning"})).unwrap();if(!c)return!1}return t(Fv(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(Yc({content:l.content,date:l.date}))})(),!0}),xD=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(vr({title:"Closing other tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:zt.CONFIRM,color:qr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(jv(e))}),CD=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(vr({title:"Closing all tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:zt.CONFIRM,color:qr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(Nv())}),RD=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(vr({title:"Closing right tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:zt.CONFIRM,color:qr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(Lv(e))}),OD=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(vr({title:"Closing left tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:zt.CONFIRM,color:qr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(kv(e))}),mc=Q("files/reloadTab",async(e,{dispatch:r})=>{if(e.flags.touched){const{confirmed:s}=await r(vr({title:Is(e),message:"Changes made to the file will be lost. Continue?",type:zt.CONFIRM,color:qr.WARNING,icon:"AiFillWarning"})).unwrap();if(!s)return}const t=ag(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}=Gs(a.content);r(Vc({roles:s,privileges:i}))}else if(e.path===cn){const{content:s}=a;r(Ys({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&&fg.next({action:"reload",payload:s})}return a}),Qn=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(vr({title:Is(e),message:"New content has been found on the server. Are you sure you want to continue?",type:zt.CONFIRM,icon:"FaSave"})).unwrap();if(!b)return r(Mv({path:a,flags:{old:!0}})),null}}const l=await _.saveContent({verb:_.DesignerRequestVerb.SAVE_CONTENT,content:AD(e,t()),path:a});(e.type===_.FileFolderType.CLASS||e.type===_.FileFolderType.MODEL)&&za();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}]:[]}}),AD=(e,r)=>{switch(!0){case e.path==="settings.json":case e.path===cn:return r.settings.project;case e.type===_.FileFolderType.ROLES:return qc(r.roles);case e.type===_.FileFolderType.MODEL:return e.content||{toJSON:!0,dataClasses:[],extraProperties:{}};default:return e.content}},Hp=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?Th(l):l}},cv=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 Hp({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:_.FileFolderType.CLASS})}catch{r?await a(gc({type:"dataclass",className:r,collectionName:`${r}Selection`,toCreate:e})):await a(gc({type:"model"}))}return p=await Hp({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:_.FileFolderType.CLASS}),p.path=d,a(Dt(p)),p}),PD=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(xs())}),{debugger:Yn={meta:{state:Nr.DETACHED},list:[],sessions:[],expressions:[]}}=na();var Jp,Xp;const DD={meta:{...Yn.meta,state:((Jp=Yn.meta)==null?void 0:Jp.state)===Nr.ATTACHED?(Xp=Yn.meta)==null?void 0:Xp.state:Nr.DETACHED},list:Yn.list||[],sessions:Yn.sessions||[],expressions:Yn.expressions||[]};function qp(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 Gp(e,r,t,a){e.breakpoints[t].locations=r,ze.isNumber(a)&&(e.breakpoints[t].offset=a)}function zp({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 Yp(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 Qo(e){return e.map(({label:r})=>({label:r}))}const lv=or({name:"debugger",initialState:DD,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)qp(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=zp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});qp(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)Gp(b,d,g,p),m&&g!=="draft"&&(b.breakpoints.draft.locations=[]);else{const E=zp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});Gp(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=Qo(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=Qo(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=Qo(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=Qo(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=Ic(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:Yp((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:Yp((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===Nr.ERROR){e.meta.error={...e.meta.error,time:Date.now()};const{override:t,error:a={code:null,reason:"",type:gs.SOCKET_ERROR}}=r.payload;if((t||e.meta.state!==Nr.ERROR)&&(e.meta.error={...e.meta.error,...a}),(a==null?void 0:a.type)===gs.SOCKET_CLOSURE&&!(a!=null&&a.reason)&&e.meta.state===Nr.DETACHED)return}e.meta.state=r.payload.state}},extraReducers:e=>{e.addCase(dv.fulfilled,r=>{r.sessions=[]})}}),{addBreakpointDecoration:ID,removeBreakpointDecoration:FD,setBreakpointsDecoration:$D,clearBreakpoints:MD,setActiveLine:ND,addExpression:LD,renameExpression:jD,removeExpression:kD,removeAllExpressions:BD,setExpression:WD,updateExpressionAt:UD,saveExpressions:HD,addSession:qD,updateSession:GD,removeSession:zD,removeSessionByIndex:YD,setSessions:fv,setCallChainVariables:VD,setExpressionVariables:KD,setSourceContent:JD,setDebuggerMeta:XD}=lv.actions,dv=Q("files/wipeDebuggerSessions",async(e,{getState:r,dispatch:t})=>{const{sessions:a}=r().debugger;for(const{threadId:s}of a){const i=Ic(s);t(Qc(i))}}),pv=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(fv(c)),{staleThreadIds:i}});var el=(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))(el||{}),Mr=(e=>(e.STORAGE="storage",e.RELATEDENTITY="relatedEntity",e.RELATEDENTITIES="relatedEntities",e.CALCULATED="calculated",e.COMPOSITION="composition",e.ALIAS="alias",e))(Mr||{});const ZD=e=>["string","uuid","number","long"].includes(e.type),QD=[{label:"Storage",value:"storage"},{label:"Calculated",value:"calculated"}],eI=[{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"}],tI=[{title:"String",kind:"storage",value:"string",calculatedType:"string",calculatedKind:"storage"},{title:"Text",kind:"storage",value:"text",calculatedType:"text",calculatedKind:"storage"},{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Date",kind:"storage",value:"date",calculatedType:"date",calculatedKind:"storage"},{title:"Duration",kind:"storage",value:"duration",calculatedType:"duration",calculatedKind:"storage"},{title:"Bool",kind:"storage",value:"bool",calculatedType:"bool",calculatedKind:"storage"},{title:"Byte",kind:"storage",value:"byte",calculatedType:"byte",calculatedKind:"storage"},{title:"Word",kind:"storage",value:"word",calculatedType:"word",calculatedKind:"storage"},{title:"Number",kind:"storage",value:"number",calculatedType:"number",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"},{title:"Object",kind:"storage",value:"object",calculatedType:"object",calculatedKind:"storage"},{title:"Image",kind:"storage",value:"image",calculatedType:"image",calculatedKind:"storage"},{title:"Blob",kind:"storage",value:"blob",calculatedType:"blob",calculatedKind:"storage"}],rI=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],nI=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],aI=[{label:"None",value:"none"},{label:"B-tree",value:"btree"},{label:"Cluster",value:"cluster"},{label:"Automatic",value:"auto"}],hv=Pt("model/add-dataclass"),gv=Pt("model/rename-dataclass"),vv=Pt("model/remove-dataclass"),mv=Pt("model/add-attribute"),oI=Pt("model/edit-attribute-property"),yv=Pt("model/remove-attribute"),bv=Pt("model/rename-attribute"),_v=Pt("model/edit-primary-key"),sI=Pt("model/edit-dataclass-property"),Ev=Pt("model/rename-collection"),iI=(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 ss(e,r,t){const a=e;let s=0;for(;t[`${a}${s||""}`];)s++;return`${a}${s||""}`}const La=e=>e.kind===Mr.RELATEDENTITY,Cs=e=>e.kind===Mr.RELATEDENTITIES,uI=e=>Cs(e)||La(e),tl=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}}),Rs=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 za(),{...i,path:s.path,content:e.content||{toJSON:!0,dataClasses:[],extraProperties:{}}}}catch{return t("Error while saving the model")}}),cI=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(tl())}),lI=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(vr({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(Zn({file:E.file,newname:E.filename_update})))),g.length>0&&t(Sr("Classes"))}),Ha={DATACLASS_DELETE:"dataclass.delete",DATACLASS_DRAGGABLE:"dataclass.draggable"},fI={model:{dataClasses:{},collections:{},extraProperties:{}},draft:{dataClasses:{},collections:{},extraProperties:{}},flags:{[Ha.DATACLASS_DELETE]:!0,[Ha.DATACLASS_DRAGGABLE]:!0}},Sv=or({name:"Models",initialState:fI,reducers:{setModelFlag(e,r){e.flags={...e.flags,...r.payload}}},extraReducers(e){e.addCase(hv,({draft:{dataClasses:r}},t)=>{var c,l;const{dataclassID:a}=t.payload,s=ss(a||"DataClass","className",r),i={className:s,collectionName:`${s}Selection`,attributes:[{name:"ID",kind:Mr.STORAGE,type:el.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(vv,({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(gv,({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=ss(`${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(mv,({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===Mr.RELATEDENTITY){if(!r[i])return;p.path=i;const m={name:ss(r[i].collectionName,"name",r[i].attributes),type:r[a].collectionName,kind:Mr.RELATEDENTITIES,reversePath:!0,path:s,scope:"public",exposed:!0};r[i].attributes.push(m)}else if(c===Mr.RELATEDENTITIES){const g=r[i];if(!g)return;const m=g.attributes.find(_.by("name",l));if(m){if(!La(m)||m.type!==r[a].className)return}else{p.path=l,p.reversePath=!0,p.type=i;const b={name:l,kind:Mr.RELATEDENTITY,scope:"public",path:g.className,type:g.className,exposed:!0};g.attributes.push(b)}}r[a].attributes.push(p)}).addCase(bv,({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=>{La(c)&&Cs(m)&&m.type===d&&m.path===s&&(m.path=i),g===a&&m.name===s&&(m.name=i)})})}).addCase(yv,({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&&(La(i)&&Object.values(r).forEach(c=>{c.attributes=c.attributes.filter(l=>!(Cs(l)&&l.type===c.collectionName&&l.path===i.name))}),r[a].attributes=r[a].attributes.filter(_.outBy("name",s)))}).addCase(Ev,({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(_v,({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(tl.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(Rs.pending,()=>{}).addCase(Rs.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:dI}=Sv.actions,pI=()=>Wr(e=>e.model.draft.dataClasses),hI=()=>Wr(e=>e.model.draft.collections),gI=e=>Wr(r=>r.model.draft.dataClasses[e]),vI=(e,r)=>Wr(t=>t.model.draft.dataClasses[e].attributes.find(_.by("name",r))),mI=()=>Wr(e=>e.model.draft.extraProperties),yI=()=>{const e=Wr(s=>s.model.flags),r=s=>s in e?e[s]:void 0,t=r(Ha.DATACLASS_DELETE),a=r(Ha.DATACLASS_DRAGGABLE);return{deleteDataclass:t,draggableDataclass:a,flags:e}},bI=Sv.reducer;function Hu(e,r){const t=e.tabs.find(({path:a})=>a===cn);t&&(t.flags.touched=r)}const wv={SIDEBAR_SECTION_RESIZABLE:"sidebar.section.resizable"},{webforms:es}=na(),Tv={[wv.SIDEBAR_SECTION_RESIZABLE]:!0},xv={...es,templates:{data:[],selectedGroup:""},datasources:{...Pc.webforms.datasources,...es==null?void 0:es.datasources},flags:Tv},Cv=or({name:"webforms",initialState:xv,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(Iv.fulfilled,(r,t)=>{r.components=t.payload})}}),{toggleInspector:_I,inspect:EI,addComponent:Rv,editComponent:Ov,removeComponent:Av,setSelectedGroup:SI,setTemplatesData:Pv,setTemplateData:Dv,setDatasourcesTheme:wI,setWebformsFlag:TI}=Cv.actions,xI=Cv.reducer,rl=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)}),CI=Q("webforms/fetchTemplates",async(e,{dispatch:r,getState:t})=>{const{data:a}=t().webforms.templates;if(!ze.isEmpty(a))return a;try{const i=await(await fetch(`https://raw.githubusercontent.com/4d/Web-studio-TIPS/gh-build/build/index.json?t=${Date.now()}`)).json();return r(Pv(i)),i}catch{return[]}}),RI=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(Dv({group:e,components:c})),c}catch{return[]}}),Iv=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")}}),OI=Q("webforms/addCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(Rv(e));const{webforms:{components:s}}=a();_.setCraftedComponents(s)}catch{return t("Error while adding the crafted component")}}),AI=Q("webforms/editCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(Ov(e));const{webforms:{components:s}}=a();_.setCraftedComponents(s)}catch{return t("Error while editing the crafted component")}}),PI=Q("webforms/removeCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(Av(e));const{webforms:{components:s}}=a();_.setCraftedComponents(s)}catch{return t("Error while removing the crafted component")}}),nl=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")}}),al=Q("datasources/edit-datasource",async(e,{getState:r,rejectWithValue:t})=>{try{const{namespace:a,path:s}=e,i=r(),c=!!e.namespace,l=rl(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}`)}}),DI=e=>e.type===ea.fulfilled.type,ea=Q("datasources/rename-datasource",async(e,{getState:r,rejectWithValue:t})=>{try{const a=r(),s=!!e.namespace,i=e.namespace||e.path,c=rl(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}`)}}),ja=Q("datasources/delete-datasource",async(e,{getState:r,rejectWithValue:t})=>{try{const a=r(),s=!!e.namespace,i=e.namespace||e.path,l=rl(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}`)}}),qu=na(),II={filesLoading:!1,tabs:qu.tabs||[],activeTab:qu.activeTab,recent:qu.recent||[]},ol=or({name:"root",initialState:II,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(sv.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(Qn.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(Qn.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(Qn.rejected,(r,t)=>{_.toastSubject.next({kind:"danger",message:"Cannot save file"})}),e.addCase(
|
|
101
|
+
`)}}),e.addCase(Qn.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(Qn.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(Qn.rejected,(r,t)=>{_.toastSubject.next({kind:"danger",message:"Cannot save file"})}),e.addCase(uv.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(mc.pending,(r,t)=>{r.tabs=r.tabs.map(a=>a.path===t.meta.arg.path?{...a,flags:{...a.flags,loading:!0}}:a)}),e.addCase(mc.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(Jc.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(iv.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(Zn.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(vc.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(vc.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(Na.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(Rs.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(cv.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(Xc.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(Zc.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(Xc.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(Zc.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(pv.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(Kc.pending,r=>Hu(r,!1)),e.addMatcher(pr(Qg),(r,t)=>{["project"].includes(t.payload.path)&&Hu(r,!0)}),e.addMatcher(pr(Ys),(r,t)=>{Hu(r,!1)}),e.addMatcher(pr(Bv,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(pr(Jg,Kg),(r,t)=>{r.tabs=r.tabs.map(a=>a.path===_.ROLES_TAB_PATH?{...a,flags:{...a.flags,touched:!0}}:a)}),e.addMatcher(pr(Vc),(r,t)=>{r.tabs=r.tabs.map(a=>a.path===_.ROLES_TAB_PATH?{...a,flags:{...a.flags,touched:!1}}:a)}),e.addMatcher(pr(nl.fulfilled,al.fulfilled,ja.fulfilled,ea.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(pr(ja.fulfilled,ea.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 ja.fulfilled.type:Object.assign(a.view.panel,{type:"component",id:AR});break;case ea.fulfilled.type:const d=_.getDatasourceId({id:t.meta.arg.new_name,namespace:t.meta.arg.namespace});Object.assign(a.view.panel,{type:"datasource",id:d});break}})}}),{setTabs:FI,closeTab:Fv,setContent:$v,setTabFlags:Mv,setTabsFlags:$I,setTabExtra:MI,closeAllTabs:Nv,addDataSource:NI,closeRightTabs:Lv,closeOthers:jv,closeLeftTabs:kv,closeSavedTabs:LI,setDataSources:jI,removeDataSource:kI,selectTab:Bv,selectTabByReference:Dt,openTabUnselected:Wv,addWebFormStyles:BI,changeTabEditor:WI,openSettingsTab:UI,setPanelState:HI}=ol.actions,Uv=ol.reducer,qI=lv.reducer,GI=or({name:"catalog",initialState:{state:"loading"},reducers:{},extraReducers(e){e.addCase(Jn.pending,r=>({state:"loading"})).addCase(Jn.fulfilled,(r,{payload:t})=>({state:"loaded",model:t})).addCase(Jn.rejected,(r,t)=>({state:"error",error:t.payload||"Error while loading the catalog"}))}}),zI=GI.reducer,YI=Bg.reducer,is=Q("shared_datasources/fetchSharedSources",async(e,{rejectWithValue:r})=>{try{return await _.getSharedDatasources()}catch{return r("Error while loading the shared datasources")}}),Hv=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")}}),qv=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")}}),Gv=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")}}),sl=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")}}),VI=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($v({path:e,content:m,contentPath:"metadata.datasources"})),p.shared&&i(sl(b))}),zv=or({name:"shared-datasources",initialState:{},reducers:{addEmptyNamespace(e,r){e.sources[r.payload.name]=[]}},extraReducers(e){e.addCase(is.pending,r=>({state:"loading",sources:{}})).addCase(is.fulfilled,(r,t)=>({state:"loaded",sources:t.payload})).addCase(is.rejected,(r,t)=>({state:"error",sources:{},error:t.payload||"Error while loading the shared datasources"})).addCase(sl.fulfilled,(r,t)=>({state:"loaded",sources:t.payload})).addCase(Zc.fulfilled,(r,t)=>{const{payload:a,meta:{arg:s}}=t;s.namespace&&Object.assign(r.sources,{[s.namespace]:a})}).addCase(Hv.fulfilled,(r,t)=>({...r,sources:t.payload})).addCase(Gv.fulfilled,(r,t)=>({...r,sources:t.payload})).addCase(qv.fulfilled,(r,t)=>({...r,sources:t.payload})).addCase(Xc.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(pr(nl.fulfilled,ja.fulfilled,al.fulfilled,ea.fulfilled),(r,t)=>{if(!t.payload)return;const{namespace:a,list:s}=t.payload;a&&Object.assign(r.sources,{[a]:s})})}}),{addEmptyNamespace:KI}=zv.actions,JI=zv.reducer,XI=ev.reducer,us=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")}}),ZI=na().sharedCSS||{state:"loading",styles:[]},QI=_.queue();async function eF(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 QI(()=>_.http(_.API_PREFIX,{method:"POST",body:JSON.stringify(r),headers:new Headers({"Content-Type":"application/json"})}))}const Yv=or({name:"shared-css",initialState:ZI,reducers:{updateSharedCss:(e,r)=>(e.styles=r.payload.classes,eF(r.payload.classes),e),initSharedCss:(e,r)=>(e.styles=r.payload.classes,e)},extraReducers(e){e.addCase(us.pending,r=>({...r,state:"loading"})).addCase(us.fulfilled,(r,{payload:t})=>({state:"loaded",styles:t})).addCase(us.rejected,(r,t)=>({...r,state:"error",error:t.payload||"Error while loading the shared css"}))}}),{updateSharedCss:tF,initSharedCss:rF}=Yv.actions,nF=Yv.reducer,aF={},oF=or({name:"tabs",initialState:aF,reducers:{}}),sF=e=>q(ca,r=>{var t,a;return(a=(t=r.find(s=>s.path===e))==null?void 0:t.view)==null?void 0:a.panel});oF.reducer;const Vv=nh({root:Uv,explorer:XI,debugger:qI,settings:iD,catalog:zI,roles:nD,sharedDatasources:JI,webforms:xI,modals:YI,sharedCSS:nF,model:bI}),ra=ew({reducer:Vv});ra.subscribe(pT(()=>{const{root:{activeTab:e,tabs:r,recent:t},roles:a,debugger:s,webforms:i,sharedCSS:c,settings:{session:l}}=ra.getState();Sh({...l}),Eh({tabs:r,activeTab:e,recent:t,roles:a,debugger:s,webforms:i,sharedCSS:c})},1e3));var yc={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
|
|
112
|
+
*/var Vp;function iF(){if(Vp)return Vn;Vp=1,Fc();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 Gu={};/** @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
|
|
119
|
+
*/var Kp;function uF(){return Kp||(Kp=1,function(e){process.env.NODE_ENV!=="production"&&function(){var r=Ke,t=Fc(),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(ir){ie=ir}Reflect.construct(w,[],xe)}else{try{xe.call()}catch(ir){ie=ir}w.call(xe.prototype)}}else{try{throw Error()}catch(ir){ie=ir}w()}}catch(ir){if(ir&&ie&&typeof ir.stack=="string"){for(var Ee=ir.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=`
|
|
@@ -126,5 +126,5 @@ Check the render method of \``+w+"`."}return""}}function Xs(w){{if(w!==void 0){v
|
|
|
126
126
|
|
|
127
127
|
Check your code at `+U+":"+J+"."}return""}}var Qa={};function eo(w){{var U=Za();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 ha(w,U){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var J=eo(U);if(Qa[J])return;Qa[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 to(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)&&ha(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)&&ha(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 ro(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+=Za();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=pa(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++)to(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 to(Kt,w)}return w===e.Fragment?Qs(tt):Zs(tt),tt}}function no(w,U,J){return ro(w,U,J,!0)}function ei(w,U,J){return ro(w,U,J,!1)}var ti=ei,ri=no;e.jsx=ti,e.jsxs=ri}()}(Gu)),Gu}process.env.NODE_ENV==="production"?yc.exports=iF():yc.exports=uF();var cF=yc.exports;const lF=({children:e,store:r})=>cF.jsx(Lh,{store:r,children:e});exports.DEFAULT_CACHE=Pc;exports.EAttributeKind=Mr;exports.EAttributeTypes=el;exports.EDebuggerErrorReason=bh;exports.EDebuggerErrorType=gs;exports.EDebuggerState=Nr;exports.EDisplayMode=Rg;exports.EPermissionType=Ae;exports.ETooltipBehavior=Bc;exports.ExpressionIndex=yh;exports.FLAGS_INIT_STATE=xv;exports.FLAGS_KEYS=Ha;exports.ModalCloseReason=Gc;exports.ModalColor=qr;exports.ModalIcons=VP;exports.ModalType=zt;exports.ReduxProvider=lF;exports.SETTINGS_TAB_PATH=cn;exports.THEME_CLASSES=wg;exports.WEBFORMS_INITIAL_STATE=Cv;exports.WT_FLAGS_KEYS=Tv;exports.actionsToPrivs=Ng;exports.addAttribute=yv;exports.addBreakpointDecoration=ID;exports.addComponent=Ov;exports.addCraftedComponent=OI;exports.addDataSource=NI;exports.addDataclass=gv;exports.addDatasource=nl;exports.addEmptyNamespace=KI;exports.addExpression=LD;exports.addIn=wP;exports.addNewFile=rv;exports.addPermission=AP;exports.addSession=qD;exports.addSharedSource=Hv;exports.addWebFormStyles=BI;exports.allowed=EP;exports.attributeKinds=QD;exports.attributeScopes=nI;exports.attributeTypes=tI;exports.castToFileFolder=hD;exports.changeTabEditor=WI;exports.children=Ts;exports.clearBreakpoints=MD;exports.closeAllTabs=Nv;exports.closeLeftTabs=kv;exports.closeModal=BP;exports.closeOthers=jv;exports.closeRightTabs=Lv;exports.closeSavedTabs=LI;exports.closeTab=$v;exports.create=Mg;exports.createModal=Ug;exports.createModelFiles=gc;exports.createNewFile=Xn;exports.createNewFileAndOpen=bD;exports.createNewNode=as;exports.createRole=LP;exports.createWithResource=xP;exports.dataclassScopes=rI;exports.defaultWebformContent=Og;exports.deleteDatasource=ja;exports.deleteFile=vc;exports.deleteFolder=_D;exports.deleteSharedSource=Gv;exports.deserializeModel=xh;exports.duplicateNode=os;exports.editAttributeProperty=oI;exports.editComponent=Av;exports.editCraftedComponent=AI;exports.editDataSource=Zc;exports.editDataclassPrimaryKey=Ev;exports.editDataclassProperty=sI;exports.editDatasource=al;exports.editModal=WP;exports.editRole=NP;exports.editSharedSource=qv;exports.editors=rg;exports.executeMethod=SD;exports.expandFolder=lD;exports.extensions=ng;exports.fetchAppSettings=Zg;exports.fetchCatalog=Jn;exports.fetchChanges=cv;exports.fetchCraftedComponents=Fv;exports.fetchFiles=wD;exports.fetchFolderContent=Sr;exports.fetchFolderContentWithoutExpanding=$a;exports.fetchModel=tl;exports.fetchRoles=xs;exports.fetchRolesChanges=Vg;exports.fetchSettings=Kc;exports.fetchSharedCss=us;exports.fetchSharedDatasources=is;exports.fetchTemplate=RI;exports.fetchTemplates=CI;exports.findNodeByPath=ft;exports.findOne=On;exports.findSession=st;exports.findSessionByPath=mg;exports.getCachedState=na;exports.getCashedPrefrences=Th;exports.getDebuggerTabName=Ih;exports.getDebuggerTabPath=Ic;exports.getDefaultContent=nv;exports.getDefaultName=ss;exports.getDictByName=jg;exports.getEditors=hr;exports.getExtension=og;exports.getFilePath=sv;exports.getFileType=ov;exports.getFilenameFromType=av;exports.getGraphData=OP;exports.getInheritedResources=Bg;exports.getModalTitle=Is;exports.getNodeRelativePath=ag;exports.getPrivilegeById=Hr;exports.getPromotions=FP;exports.getResourceFromType=Hc;exports.indexTypes=aI;exports.initSharedCss=rF;exports.injectContentAtLine=iv;exports.inspect=EI;exports.isJSON=Ch;exports.isRelatedAttr=uI;exports.isRelatedEntitiesAttr=Cs;exports.isRelatedEntityAttr=La;exports.isRenameDatasource=DI;exports.isRolesOutdated=zc;exports.isValidPrimaryKey=ZD;exports.modelSubject=dg;exports.openAddFileInput=fD;exports.openFile=Ma;exports.openFileAtLine=Jc;exports.openFileAtSelection=uv;exports.openModal=vr;exports.openModel=cI;exports.openRoles=PD;exports.openSettingsTab=UI;exports.openTabUnselected=Wv;exports.parents=qs;exports.populateShallow=RP;exports.primaryKeyAttributes=eI;exports.refreshCatalog=za;exports.refreshFile=dD;exports.reloadTab=mc;exports.relocateNode=Na;exports.remove=SP;exports.removeAllExpressions=BD;exports.removeAttribute=bv;exports.removeBreakpointDecoration=FD;exports.removeComponent=Pv;exports.removeCraftedComponent=PI;exports.removeDataSource=kI;exports.removeDataclass=mv;exports.removeDebuggerSessionsNotIn=hv;exports.removeExpression=kD;exports.removeFile=hc;exports.removeFileNode=ED;exports.removeFrom=TP;exports.removeModal=Hg;exports.removePermission=PP;exports.removeRole=MP;exports.removeSession=zD;exports.removeSessionByIndex=YD;exports.rename=CP;exports.renameAttribute=_v;exports.renameCollection=Sv;exports.renameDataSource=Xc;exports.renameDataclass=vv;exports.renameDatasource=ea;exports.renameExpression=jD;exports.renameFile=Zn;exports.resetResources=DP;exports.rootReducer=Uv;exports.sanitize=Gs;exports.sanitizePermissions=Lg;exports.sanitizePrivileges=Fg;exports.saveAll=TD;exports.saveExpressions=HD;exports.saveModel=Rs;exports.savePrefrences=wh;exports.saveRole=jP;exports.saveRoles=dc;exports.saveState=Sh;exports.saveTab=Qn;exports.selectActiveLine=KO;exports.selectActiveTab=uA;exports.selectAllDatasourcesByPath=WO;exports.selectAppState=hg;exports.selectBreakpoints=qO;exports.selectCSSClassesByPath=MA;exports.selectCallChainVariables=aA;exports.selectCatalog=Nc;exports.selectCatalogMethods=MO;exports.selectClassBreakpoints=zO;exports.selectClassOffset=sA;exports.selectClasses=EA;exports.selectClassesFolder=Eg;exports.selectComponents=xg;exports.selectComponentsByPath=kO;exports.selectContentByPath=yg;exports.selectCraftedComponent=WA;exports.selectCurrentFrameByThreadId=tA;exports.selectCurrentTab=lA;exports.selectDataclasses=$O;exports.selectDatasource=BO;exports.selectDatasourcesByPath=gg;exports.selectDatasourcesTheme=HA;exports.selectDebuggerChannels=rA;exports.selectDebuggerData=An;exports.selectDebuggerMeta=UO;exports.selectDebuggerSessions=It;exports.selectDebuggerSessionsCount=HO;exports.selectDebuggers=mA;exports.selectDraftBreakpoints=GO;exports.selectDraftClassBreakpoints=YO;exports.selectExceptions=iA;exports.selectExplorer=yA;exports.selectExpressions=JO;exports.selectExpressionsVariables=oA;exports.selectFlagsByPath=LA;exports.selectGuestPrivilege=xA;exports.selectHasTabs=pA;exports.selectHighlightedLines=VO;exports.selectInspectedCSSClass=jA;exports.selectInspectedDatasource=kA;exports.selectInspector=Bs;exports.selectInspectorStateByType=UA;exports.selectIsLoaded=qA;exports.selectMethods=bA;exports.selectMethodsFolder=_g;exports.selectModals=SA;exports.selectMonacoZoom=FA;exports.selectPanelByPath=sF;exports.selectPreferences=PA;exports.selectPreviewedWebformsPaths=dA;exports.selectPrivileges=TA;exports.selectProjectSettings=AA;exports.selectQodly=IA;exports.selectRecentFiles=cA;exports.selectRemoteDebuggerMode=DA;exports.selectRoles=wA;exports.selectRolesDate=OA;exports.selectRolesFlags=CA;exports.selectRoot=Ur;exports.selectSelectedTab=RA;exports.selectServerSettings=jc;exports.selectSessionSettings=Sg;exports.selectSharedCSS=NA;exports.selectSharedDatasources=vg;exports.selectSourceByPath=ZO;exports.selectSourceByThreadId=eA;exports.selectStackFrames=nA;exports.selectStoppedFromDebugSession=XO;exports.selectStylesByPath=$A;exports.selectTab=Bv;exports.selectTabByPath=Ya;exports.selectTabByReference=Dt;exports.selectTabExtraByPath=hA;exports.selectTabMaxWeight=fA;exports.selectTabs=ca;exports.selectTemplates=Cg;exports.selectTemplatesData=BA;exports.selectThreadIdByPath=QO;exports.selectTouchedTabs=Lc;exports.selectTouchedTabsLength=vA;exports.selectWebForms=_A;exports.selectWebFormsFolder=bg;exports.selectWebformNodes=gA;exports.selectWebformStylesByPath=kc;exports.selectWebforms=Va;exports.serializeModel=iI;exports.setActiveLine=ND;exports.setBreakpointsDecoration=$D;exports.setCallChainVariables=VD;exports.setContent=Mv;exports.setDataSources=jI;exports.setDatasourceEvents=VI;exports.setDatasourcesTheme=wI;exports.setDebuggerMeta=XD;exports.setExpression=WD;exports.setExpressionVariables=KD;exports.setFolderChildren=pD;exports.setModelFlag=dI;exports.setPanelState=HI;exports.setRolesContent=Yc;exports.setSelectedGroup=SI;exports.setSessions=dv;exports.setSetting=ev;exports.setSettings=Ys;exports.setSettingsAsText=sD;exports.setSourceContent=JD;exports.setTabExtra=MI;exports.setTabFlags=sl;exports.setTabs=FI;exports.setTabsFlags=$I;exports.setTemplateData=Iv;exports.setTemplatesData=Dv;exports.setWebformsFlag=TI;exports.sort=$g;exports.stateReducer=Vv;exports.stateSlice=ol;exports.store=ra;exports.toAPI=qc;exports.toState=$P;exports.toggleExpandFolder=cD;exports.toggleInspector=_I;exports.togglePermission=IP;exports.togglePrivilegePermission=kg;exports.toggleTab=rD;exports.tryCloseAllTabs=CD;exports.tryCloseLeftTabs=OD;exports.tryCloseOtherTabs=xD;exports.tryCloseRightTabs=RD;exports.tryCloseTab=Qc;exports.tryEditMethod=gD;exports.tryInjectMethod=lv;exports.tryRenameDataclass=lI;exports.uniquePush=ar;exports.updateExpressionAt=UD;exports.updatePrivileges=Jg;exports.updateRoles=Xg;exports.updateRolesAndPrivileges=Vc;exports.updateSession=GD;exports.updateSharedCss=tF;exports.updateSharedDatasources=il;exports.uploadFile=yD;exports.uploadFileAndGetResponse=mD;exports.useAppDispatch=FO;exports.useAppSelector=Wr;exports.useAttribute=vI;exports.useCatalog=tO;exports.useCollections=hI;exports.useDataclass=gI;exports.useDataclasses=pI;exports.useMethod=jO;exports.useMethods=NO;exports.useModelFlags=yI;exports.useModelProperties=mI;exports.wipeDebuggerSessions=pv;
|
|
129
|
+
Check the top-level render call using <`+J+">.")}return U}}function ha(w,U){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var J=eo(U);if(Qa[J])return;Qa[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 to(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)&&ha(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)&&ha(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 ro(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+=Za();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=pa(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++)to(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 to(Kt,w)}return w===e.Fragment?Qs(tt):Zs(tt),tt}}function no(w,U,J){return ro(w,U,J,!0)}function ei(w,U,J){return ro(w,U,J,!1)}var ti=ei,ri=no;e.jsx=ti,e.jsxs=ri}()}(Gu)),Gu}process.env.NODE_ENV==="production"?yc.exports=iF():yc.exports=uF();var cF=yc.exports;const lF=({children:e,store:r})=>cF.jsx(Nh,{store:r,children:e});exports.DEFAULT_CACHE=Pc;exports.EAttributeKind=Mr;exports.EAttributeTypes=el;exports.EDebuggerErrorReason=yh;exports.EDebuggerErrorType=gs;exports.EDebuggerState=Nr;exports.EDisplayMode=Cg;exports.EPermissionType=Ae;exports.ETooltipBehavior=Bc;exports.ExpressionIndex=mh;exports.FLAGS_INIT_STATE=Tv;exports.FLAGS_KEYS=Ha;exports.ModalCloseReason=Gc;exports.ModalColor=qr;exports.ModalIcons=VP;exports.ModalType=zt;exports.ReduxProvider=lF;exports.SETTINGS_TAB_PATH=cn;exports.THEME_CLASSES=Sg;exports.WEBFORMS_INITIAL_STATE=xv;exports.WT_FLAGS_KEYS=wv;exports.actionsToPrivs=Mg;exports.addAttribute=mv;exports.addBreakpointDecoration=ID;exports.addComponent=Rv;exports.addCraftedComponent=OI;exports.addDataSource=NI;exports.addDataclass=hv;exports.addDatasource=nl;exports.addEmptyNamespace=KI;exports.addExpression=LD;exports.addIn=wP;exports.addNewFile=tv;exports.addPermission=AP;exports.addSession=qD;exports.addSharedSource=Hv;exports.addWebFormStyles=BI;exports.allowed=EP;exports.attributeKinds=QD;exports.attributeScopes=nI;exports.attributeTypes=tI;exports.castToFileFolder=hD;exports.changeTabEditor=WI;exports.children=Ts;exports.clearBreakpoints=MD;exports.closeAllTabs=Nv;exports.closeLeftTabs=kv;exports.closeModal=BP;exports.closeOthers=jv;exports.closeRightTabs=Lv;exports.closeSavedTabs=LI;exports.closeTab=Fv;exports.create=$g;exports.createModal=Wg;exports.createModelFiles=gc;exports.createNewFile=Xn;exports.createNewFileAndOpen=bD;exports.createNewNode=as;exports.createRole=LP;exports.createWithResource=xP;exports.dataclassScopes=rI;exports.defaultWebformContent=Rg;exports.deleteDatasource=ja;exports.deleteFile=vc;exports.deleteFolder=_D;exports.deleteSharedSource=Gv;exports.deserializeModel=Th;exports.duplicateNode=os;exports.editAttributeProperty=oI;exports.editComponent=Ov;exports.editCraftedComponent=AI;exports.editDataSource=Zc;exports.editDataclassPrimaryKey=_v;exports.editDataclassProperty=sI;exports.editDatasource=al;exports.editModal=WP;exports.editRole=NP;exports.editSharedSource=qv;exports.editors=tg;exports.executeMethod=SD;exports.expandFolder=lD;exports.extensions=rg;exports.fetchAppSettings=Xg;exports.fetchCatalog=Jn;exports.fetchChanges=uv;exports.fetchCraftedComponents=Iv;exports.fetchFiles=wD;exports.fetchFolderContent=Sr;exports.fetchFolderContentWithoutExpanding=$a;exports.fetchModel=tl;exports.fetchRoles=xs;exports.fetchRolesChanges=Yg;exports.fetchSettings=Kc;exports.fetchSharedCss=us;exports.fetchSharedDatasources=is;exports.fetchTemplate=RI;exports.fetchTemplates=CI;exports.findNodeByPath=ft;exports.findOne=On;exports.findSession=st;exports.findSessionByPath=vg;exports.getCachedState=na;exports.getCashedPrefrences=wh;exports.getDebuggerTabName=Dh;exports.getDebuggerTabPath=Ic;exports.getDefaultContent=rv;exports.getDefaultName=ss;exports.getDictByName=Lg;exports.getEditors=hr;exports.getExtension=ag;exports.getFilePath=ov;exports.getFileType=av;exports.getFilenameFromType=nv;exports.getGraphData=OP;exports.getInheritedResources=kg;exports.getModalTitle=Is;exports.getNodeRelativePath=ng;exports.getPrivilegeById=Hr;exports.getPromotions=FP;exports.getResourceFromType=Hc;exports.indexTypes=aI;exports.initSharedCss=rF;exports.injectContentAtLine=sv;exports.inspect=EI;exports.isJSON=xh;exports.isRelatedAttr=uI;exports.isRelatedEntitiesAttr=Cs;exports.isRelatedEntityAttr=La;exports.isRenameDatasource=DI;exports.isRolesOutdated=zc;exports.isValidPrimaryKey=ZD;exports.modelSubject=fg;exports.openAddFileInput=fD;exports.openFile=Ma;exports.openFileAtLine=Jc;exports.openFileAtSelection=iv;exports.openModal=vr;exports.openModel=cI;exports.openRoles=PD;exports.openSettingsTab=UI;exports.openTabUnselected=Wv;exports.parents=qs;exports.populateShallow=RP;exports.primaryKeyAttributes=eI;exports.refreshCatalog=za;exports.refreshFile=dD;exports.reloadTab=mc;exports.relocateNode=Na;exports.remove=SP;exports.removeAllExpressions=BD;exports.removeAttribute=yv;exports.removeBreakpointDecoration=FD;exports.removeComponent=Av;exports.removeCraftedComponent=PI;exports.removeDataSource=kI;exports.removeDataclass=vv;exports.removeDebuggerSessionsNotIn=pv;exports.removeExpression=kD;exports.removeFile=hc;exports.removeFileNode=ED;exports.removeFrom=TP;exports.removeModal=Ug;exports.removePermission=PP;exports.removeRole=MP;exports.removeSession=zD;exports.removeSessionByIndex=YD;exports.rename=CP;exports.renameAttribute=bv;exports.renameCollection=Ev;exports.renameDataSource=Xc;exports.renameDataclass=gv;exports.renameDatasource=ea;exports.renameExpression=jD;exports.renameFile=Zn;exports.resetResources=DP;exports.rootReducer=Uv;exports.sanitize=Gs;exports.sanitizePermissions=Ng;exports.sanitizePrivileges=Ig;exports.saveAll=TD;exports.saveExpressions=HD;exports.saveModel=Rs;exports.savePrefrences=Sh;exports.saveRole=jP;exports.saveRoles=dc;exports.saveState=Eh;exports.saveTab=Qn;exports.selectActiveLine=KO;exports.selectActiveTab=uA;exports.selectAllDatasourcesByPath=WO;exports.selectAppState=pg;exports.selectBreakpoints=qO;exports.selectCSSClassesByPath=MA;exports.selectCallChainVariables=aA;exports.selectCatalog=Nc;exports.selectCatalogMethods=MO;exports.selectClassBreakpoints=zO;exports.selectClassOffset=sA;exports.selectClasses=EA;exports.selectClassesFolder=_g;exports.selectComponents=Tg;exports.selectComponentsByPath=kO;exports.selectContentByPath=mg;exports.selectCraftedComponent=WA;exports.selectCurrentFrameByThreadId=tA;exports.selectCurrentTab=lA;exports.selectDataclasses=$O;exports.selectDatasource=BO;exports.selectDatasourcesByPath=hg;exports.selectDatasourcesTheme=HA;exports.selectDebuggerChannels=rA;exports.selectDebuggerData=An;exports.selectDebuggerMeta=UO;exports.selectDebuggerSessions=It;exports.selectDebuggerSessionsCount=HO;exports.selectDebuggers=mA;exports.selectDraftBreakpoints=GO;exports.selectDraftClassBreakpoints=YO;exports.selectExceptions=iA;exports.selectExplorer=yA;exports.selectExpressions=JO;exports.selectExpressionsVariables=oA;exports.selectFlagsByPath=LA;exports.selectGuestPrivilege=xA;exports.selectHasTabs=pA;exports.selectHighlightedLines=VO;exports.selectInspectedCSSClass=jA;exports.selectInspectedDatasource=kA;exports.selectInspector=Bs;exports.selectInspectorStateByType=UA;exports.selectIsLoaded=qA;exports.selectMethods=bA;exports.selectMethodsFolder=bg;exports.selectModals=SA;exports.selectMonacoZoom=FA;exports.selectPanelByPath=sF;exports.selectPreferences=PA;exports.selectPreviewedWebformsPaths=dA;exports.selectPrivileges=TA;exports.selectProjectSettings=AA;exports.selectQodly=IA;exports.selectRecentFiles=cA;exports.selectRemoteDebuggerMode=DA;exports.selectRoles=wA;exports.selectRolesDate=OA;exports.selectRolesFlags=CA;exports.selectRoot=Ur;exports.selectSelectedTab=RA;exports.selectServerSettings=jc;exports.selectSessionSettings=Eg;exports.selectSharedCSS=NA;exports.selectSharedDatasources=gg;exports.selectSourceByPath=ZO;exports.selectSourceByThreadId=eA;exports.selectStackFrames=nA;exports.selectStoppedFromDebugSession=XO;exports.selectStylesByPath=$A;exports.selectTab=Bv;exports.selectTabByPath=Ya;exports.selectTabByReference=Dt;exports.selectTabExtraByPath=hA;exports.selectTabMaxWeight=fA;exports.selectTabs=ca;exports.selectTemplates=xg;exports.selectTemplatesData=BA;exports.selectThreadIdByPath=QO;exports.selectTouchedTabs=Lc;exports.selectTouchedTabsLength=vA;exports.selectWebForms=_A;exports.selectWebFormsFolder=yg;exports.selectWebformNodes=gA;exports.selectWebformStylesByPath=kc;exports.selectWebforms=Va;exports.serializeModel=iI;exports.setActiveLine=ND;exports.setBreakpointsDecoration=$D;exports.setCallChainVariables=VD;exports.setContent=$v;exports.setDataSources=jI;exports.setDatasourceEvents=VI;exports.setDatasourcesTheme=wI;exports.setDebuggerMeta=XD;exports.setExpression=WD;exports.setExpressionVariables=KD;exports.setFolderChildren=pD;exports.setModelFlag=dI;exports.setPanelState=HI;exports.setRolesContent=Yc;exports.setSelectedGroup=SI;exports.setSessions=fv;exports.setSetting=Qg;exports.setSettings=Ys;exports.setSettingsAsText=sD;exports.setSourceContent=JD;exports.setTabExtra=MI;exports.setTabFlags=Mv;exports.setTabs=FI;exports.setTabsFlags=$I;exports.setTemplateData=Dv;exports.setTemplatesData=Pv;exports.setWebformsFlag=TI;exports.sort=Fg;exports.stateReducer=Vv;exports.stateSlice=ol;exports.store=ra;exports.toAPI=qc;exports.toState=$P;exports.toggleExpandFolder=cD;exports.toggleInspector=_I;exports.togglePermission=IP;exports.togglePrivilegePermission=jg;exports.toggleTab=rD;exports.tryCloseAllTabs=CD;exports.tryCloseLeftTabs=OD;exports.tryCloseOtherTabs=xD;exports.tryCloseRightTabs=RD;exports.tryCloseTab=Qc;exports.tryEditMethod=gD;exports.tryInjectMethod=cv;exports.tryRenameDataclass=lI;exports.uniquePush=ar;exports.updateExpressionAt=UD;exports.updatePrivileges=Kg;exports.updateRoles=Jg;exports.updateRolesAndPrivileges=Vc;exports.updateSession=GD;exports.updateSharedCss=tF;exports.updateSharedDatasources=sl;exports.uploadFile=yD;exports.uploadFileAndGetResponse=mD;exports.useAppDispatch=FO;exports.useAppSelector=Wr;exports.useAttribute=vI;exports.useCatalog=tO;exports.useCollections=hI;exports.useDataclass=gI;exports.useDataclasses=pI;exports.useMethod=jO;exports.useMethods=NO;exports.useModelFlags=yI;exports.useModelProperties=mI;exports.wipeDebuggerSessions=dv;
|
|
130
130
|
//# sourceMappingURL=index.cjs.js.map
|