@ws-ui/store 0.0.28 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +32 -32
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2609 -2562
- package/dist/index.es.js.map +1 -1
- package/dist/modules/explorer/thunks.d.ts +1 -1
- package/dist/modules/root/reducer.d.ts +2 -1
- package/dist/modules/root/thunks.d.ts +1 -2
- package/dist/modules/settings/types.d.ts +0 -1
- package/dist/selectors/settings.d.ts +45 -0
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("@ws-ui/shared"),Ke=require("react"),eS=require("react-dom");function Xe(e){for(var r=arguments.length,t=Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];if(process.env.NODE_ENV!=="production"){var s=cS[e],i=s?typeof s=="function"?s.apply(null,t):s:"unknown error nr: "+e;throw Error("[Immer] "+i)}throw Error("[Immer] minified error nr: "+e+(t.length?" "+t.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function kr(e){return!!e&&!!e[ye]}function vr(e){var r;return!!e&&(function(t){if(!t||typeof t!="object")return!1;var a=Object.getPrototypeOf(t);if(a===null)return!0;var s=Object.hasOwnProperty.call(a,"constructor")&&a.constructor;return s===Object||typeof s=="function"&&Function.toString.call(s)===lS}(e)||Array.isArray(e)||!!e[Ia]||!!(!((r=e.constructor)===null||r===void 0)&&r[Ia])||xs(e)||Cs(e))}function Br(e,r,t){t===void 0&&(t=!1),un(e)===0?(t?Object.keys:Kn)(e).forEach(function(a){t&&typeof a=="symbol"||r(a,e[a],e)}):e.forEach(function(a,s){return r(s,a,e)})}function un(e){var r=e[ye];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:xs(e)?2:Cs(e)?3:0}function an(e,r){return un(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function Zo(e,r){return un(e)===2?e.get(r):e[r]}function Kp(e,r,t){var a=un(e);a===2?e.set(r,t):a===3?e.add(t):e[r]=t}function Jp(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function xs(e){return iS&&e instanceof Map}function Cs(e){return uS&&e instanceof Set}function dt(e){return e.o||e.t}function mc(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=Xp(e);delete r[ye];for(var t=Kn(r),a=0;a<t.length;a++){var s=t[a],i=r[s];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[s]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),r)}function yc(e,r){return r===void 0&&(r=!1),bc(e)||kr(e)||!vr(e)||(un(e)>1&&(e.set=e.add=e.clear=e.delete=tS),Object.freeze(e),r&&Br(e,function(t,a){return yc(a,!0)},!0)),e}function tS(){Xe(2)}function bc(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Er(e){var r=Gu[e];return r||Xe(18,e),r}function _c(e,r){Gu[e]||(Gu[e]=r)}function ja(){return process.env.NODE_ENV==="production"||ea||Xe(0),ea}function du(e,r){r&&(Er("Patches"),e.u=[],e.s=[],e.v=r)}function ss(e){qu(e),e.p.forEach(rS),e.p=null}function qu(e){e===ea&&(ea=e.l)}function Id(e){return ea={p:[],l:ea,h:e,m:!0,_:0}}function rS(e){var r=e[ye];r.i===0||r.i===1?r.j():r.g=!0}function pu(e,r){r._=r.p.length;var t=r.p[0],a=e!==void 0&&e!==t;return r.h.O||Er("ES5").S(r,e,a),a?(t[ye].P&&(ss(r),Xe(4)),vr(e)&&(e=is(r,e),r.l||us(r,e)),r.u&&Er("Patches").M(t[ye].t,e,r.u,r.s)):e=is(r,t,[]),ss(r),r.u&&r.v(r.u,r.s),e!==Sc?e:void 0}function is(e,r,t){if(bc(r))return r;var a=r[ye];if(!a)return Br(r,function(l,d){return Fd(e,a,r,l,d,t)},!0),r;if(a.A!==e)return r;if(!a.P)return us(e,a.t,!0),a.t;if(!a.I){a.I=!0,a.A._--;var s=a.i===4||a.i===5?a.o=mc(a.k):a.o,i=s,c=!1;a.i===3&&(i=new Set(s),s.clear(),c=!0),Br(i,function(l,d){return Fd(e,a,s,l,d,t,c)}),us(e,s,!1),t&&e.u&&Er("Patches").N(a,t,e.u,e.s)}return a.o}function Fd(e,r,t,a,s,i,c){if(process.env.NODE_ENV!=="production"&&s===t&&Xe(5),kr(s)){var l=is(e,s,i&&r&&r.i!==3&&!an(r.R,a)?i.concat(a):void 0);if(Kp(t,a,l),!kr(l))return;e.m=!1}else c&&t.add(s);if(vr(s)&&!bc(s)){if(!e.h.D&&e._<1)return;is(e,s),r&&r.A.l||us(e,s)}}function us(e,r,t){t===void 0&&(t=!1),!e.l&&e.h.D&&e.m&&yc(r,t)}function hu(e,r){var t=e[ye];return(t?dt(t):e)[r]}function $d(e,r){if(r in e)for(var t=Object.getPrototypeOf(e);t;){var a=Object.getOwnPropertyDescriptor(t,r);if(a)return a;t=Object.getPrototypeOf(t)}}function Lt(e){e.P||(e.P=!0,e.l&&Lt(e.l))}function gu(e){e.o||(e.o=mc(e.t))}function ka(e,r,t){var a=xs(r)?Er("MapSet").F(r,t):Cs(r)?Er("MapSet").T(r,t):e.O?function(s,i){var c=Array.isArray(s),l={i:c?1:0,A:i?i.A:ja(),P:!1,I:!1,R:{},l:i,t:s,k:null,o:null,j:null,C:!1},d=l,p=Ba;c&&(d=[l],p=Pa);var g=Proxy.revocable(d,p),m=g.revoke,b=g.proxy;return l.k=b,l.j=m,b}(r,t):Er("ES5").J(r,t);return(t?t.A:ja()).p.push(a),a}function nS(e){return kr(e)||Xe(22,e),function r(t){if(!vr(t))return t;var a,s=t[ye],i=un(t);if(s){if(!s.P&&(s.i<4||!Er("ES5").K(s)))return s.t;s.I=!0,a=Md(t,i),s.I=!1}else a=Md(t,i);return Br(a,function(c,l){s&&Zo(s.t,c)===l||Kp(a,c,r(l))}),i===3?new Set(a):a}(e)}function Md(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return mc(e)}function aS(){function e(c,l){var d=i[c];return d?d.enumerable=l:i[c]=d={configurable:!0,enumerable:l,get:function(){var p=this[ye];return process.env.NODE_ENV!=="production"&&s(p),Ba.get(p,c)},set:function(p){var g=this[ye];process.env.NODE_ENV!=="production"&&s(g),Ba.set(g,c,p)}},d}function r(c){for(var l=c.length-1;l>=0;l--){var d=c[l][ye];if(!d.P)switch(d.i){case 5:a(d)&&Lt(d);break;case 4:t(d)&&Lt(d)}}}function t(c){for(var l=c.t,d=c.k,p=Kn(d),g=p.length-1;g>=0;g--){var m=p[g];if(m!==ye){var b=l[m];if(b===void 0&&!an(l,m))return!0;var E=d[m],x=E&&E[ye];if(x?x.t!==b:!Jp(E,b))return!0}}var C=!!l[ye];return p.length!==Kn(l).length+(C?0:1)}function a(c){var l=c.k;if(l.length!==c.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function s(c){c.g&&Xe(3,JSON.stringify(dt(c)))}var i={};_c("ES5",{J:function(c,l){var d=Array.isArray(c),p=function(m,b){if(m){for(var E=Array(b.length),x=0;x<b.length;x++)Object.defineProperty(E,""+x,e(x,!0));return E}var C=Xp(b);delete C[ye];for(var I=Kn(C),P=0;P<I.length;P++){var k=I[P];C[k]=e(k,m||!!C[k].enumerable)}return Object.create(Object.getPrototypeOf(b),C)}(d,c),g={i:d?5:4,A:l?l.A:ja(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,ye,{value:g,writable:!0}),p},S:function(c,l,d){d?kr(l)&&l[ye].A===c&&r(c.p):(c.u&&function p(g){if(g&&typeof g=="object"){var m=g[ye];if(m){var b=m.t,E=m.k,x=m.R,C=m.i;if(C===4)Br(E,function(j){j!==ye&&(b[j]!==void 0||an(b,j)?x[j]||p(E[j]):(x[j]=!0,Lt(m)))}),Br(b,function(j){E[j]!==void 0||an(E,j)||(x[j]=!1,Lt(m))});else if(C===5){if(a(m)&&(Lt(m),x.length=!0),E.length<b.length)for(var I=E.length;I<b.length;I++)x[I]=!1;else for(var P=b.length;P<E.length;P++)x[P]=!0;for(var k=Math.min(E.length,b.length),M=0;M<k;M++)E.hasOwnProperty(M)||(x[M]=!0),x[M]===void 0&&p(E[M])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?t(c):a(c)}})}function oS(){function e(a){if(!vr(a))return a;if(Array.isArray(a))return a.map(e);if(xs(a))return new Map(Array.from(a.entries()).map(function(c){return[c[0],e(c[1])]}));if(Cs(a))return new Set(Array.from(a).map(e));var s=Object.create(Object.getPrototypeOf(a));for(var i in a)s[i]=e(a[i]);return an(a,Ia)&&(s[Ia]=a[Ia]),s}function r(a){return kr(a)?e(a):a}var t="add";_c("Patches",{$:function(a,s){return s.forEach(function(i){for(var c=i.path,l=i.op,d=a,p=0;p<c.length-1;p++){var g=un(d),m=c[p];typeof m!="string"&&typeof m!="number"&&(m=""+m),g!==0&&g!==1||m!=="__proto__"&&m!=="constructor"||Xe(24),typeof d=="function"&&m==="prototype"&&Xe(24),typeof(d=Zo(d,m))!="object"&&Xe(15,c.join("/"))}var b=un(d),E=e(i.value),x=c[c.length-1];switch(l){case"replace":switch(b){case 2:return d.set(x,E);case 3:Xe(16);default:return d[x]=E}case t:switch(b){case 1:return x==="-"?d.push(E):d.splice(x,0,E);case 2:return d.set(x,E);case 3:return d.add(E);default:return d[x]=E}case"remove":switch(b){case 1:return d.splice(x,1);case 2:return d.delete(x);case 3:return d.delete(i.value);default:return delete d[x]}default:Xe(17,l)}}),a},N:function(a,s,i,c){switch(a.i){case 0:case 4:case 2:return function(l,d,p,g){var m=l.t,b=l.o;Br(l.R,function(E,x){var C=Zo(m,E),I=Zo(b,E),P=x?an(m,E)?"replace":t:"remove";if(C!==I||P!=="replace"){var k=d.concat(E);p.push(P==="remove"?{op:P,path:k}:{op:P,path:k,value:I}),g.push(P===t?{op:"remove",path:k}:P==="remove"?{op:t,path:k,value:r(C)}:{op:"replace",path:k,value:r(C)})}})}(a,s,i,c);case 5:case 1:return function(l,d,p,g){var m=l.t,b=l.R,E=l.o;if(E.length<m.length){var x=[E,m];m=x[0],E=x[1];var C=[g,p];p=C[0],g=C[1]}for(var I=0;I<m.length;I++)if(b[I]&&E[I]!==m[I]){var P=d.concat([I]);p.push({op:"replace",path:P,value:r(E[I])}),g.push({op:"replace",path:P,value:r(m[I])})}for(var k=m.length;k<E.length;k++){var M=d.concat([k]);p.push({op:t,path:M,value:r(E[k])})}m.length<E.length&&g.push({op:"replace",path:d.concat(["length"]),value:m.length})}(a,s,i,c);case 3:return function(l,d,p,g){var m=l.t,b=l.o,E=0;m.forEach(function(x){if(!b.has(x)){var C=d.concat([E]);p.push({op:"remove",path:C,value:x}),g.unshift({op:t,path:C,value:x})}E++}),E=0,b.forEach(function(x){if(!m.has(x)){var C=d.concat([E]);p.push({op:t,path:C,value:x}),g.unshift({op:"remove",path:C,value:x})}E++})}(a,s,i,c)}},M:function(a,s,i,c){i.push({op:"replace",path:[],value:s===Sc?void 0:s}),c.push({op:"replace",path:[],value:a})}})}function sS(){function e(l,d){function p(){this.constructor=l}s(l,d),l.prototype=(p.prototype=d.prototype,new p)}function r(l){l.o||(l.R=new Map,l.o=new Map(l.t))}function t(l){l.o||(l.o=new Set,l.t.forEach(function(d){if(vr(d)){var p=ka(l.A.h,d,l);l.p.set(d,p),l.o.add(p)}else l.o.add(d)}))}function a(l){l.g&&Xe(3,JSON.stringify(dt(l)))}var s=function(l,d){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var m in g)g.hasOwnProperty(m)&&(p[m]=g[m])})(l,d)},i=function(){function l(p,g){return this[ye]={i:2,l:g,A:g?g.A:ja(),P:!1,I:!1,o:void 0,R:void 0,t:p,k:this,C:!1,g:!1},this}e(l,Map);var d=l.prototype;return Object.defineProperty(d,"size",{get:function(){return dt(this[ye]).size}}),d.has=function(p){return dt(this[ye]).has(p)},d.set=function(p,g){var m=this[ye];return a(m),dt(m).has(p)&&dt(m).get(p)===g||(r(m),Lt(m),m.R.set(p,!0),m.o.set(p,g),m.R.set(p,!0)),this},d.delete=function(p){if(!this.has(p))return!1;var g=this[ye];return a(g),r(g),Lt(g),g.t.has(p)?g.R.set(p,!1):g.R.delete(p),g.o.delete(p),!0},d.clear=function(){var p=this[ye];a(p),dt(p).size&&(r(p),Lt(p),p.R=new Map,Br(p.t,function(g){p.R.set(g,!1)}),p.o.clear())},d.forEach=function(p,g){var m=this;dt(this[ye]).forEach(function(b,E){p.call(g,m.get(E),E,m)})},d.get=function(p){var g=this[ye];a(g);var m=dt(g).get(p);if(g.I||!vr(m)||m!==g.t.get(p))return m;var b=ka(g.A.h,m,g);return r(g),g.o.set(p,b),b},d.keys=function(){return dt(this[ye]).keys()},d.values=function(){var p,g=this,m=this.keys();return(p={})[zo]=function(){return g.values()},p.next=function(){var b=m.next();return b.done?b:{done:!1,value:g.get(b.value)}},p},d.entries=function(){var p,g=this,m=this.keys();return(p={})[zo]=function(){return g.entries()},p.next=function(){var b=m.next();if(b.done)return b;var E=g.get(b.value);return{done:!1,value:[b.value,E]}},p},d[zo]=function(){return this.entries()},l}(),c=function(){function l(p,g){return this[ye]={i:3,l:g,A:g?g.A:ja(),P:!1,I:!1,o:void 0,t:p,k:this,p:new Map,g:!1,C:!1},this}e(l,Set);var d=l.prototype;return Object.defineProperty(d,"size",{get:function(){return dt(this[ye]).size}}),d.has=function(p){var g=this[ye];return a(g),g.o?!!g.o.has(p)||!(!g.p.has(p)||!g.o.has(g.p.get(p))):g.t.has(p)},d.add=function(p){var g=this[ye];return a(g),this.has(p)||(t(g),Lt(g),g.o.add(p)),this},d.delete=function(p){if(!this.has(p))return!1;var g=this[ye];return a(g),t(g),Lt(g),g.o.delete(p)||!!g.p.has(p)&&g.o.delete(g.p.get(p))},d.clear=function(){var p=this[ye];a(p),dt(p).size&&(t(p),Lt(p),p.o.clear())},d.values=function(){var p=this[ye];return a(p),t(p),p.o.values()},d.entries=function(){var p=this[ye];return a(p),t(p),p.o.entries()},d.keys=function(){return this.values()},d[zo]=function(){return this.values()},d.forEach=function(p,g){for(var m=this.values(),b=m.next();!b.done;)p.call(g,b.value,b.value,this),b=m.next()},l}();_c("MapSet",{F:function(l,d){return new i(l,d)},T:function(l,d){return new c(l,d)}})}var Nd,ea,Ec=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",iS=typeof Map<"u",uS=typeof Set<"u",Ld=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Sc=Ec?Symbol.for("immer-nothing"):((Nd={})["immer-nothing"]=!0,Nd),Ia=Ec?Symbol.for("immer-draftable"):"__$immer_draftable",ye=Ec?Symbol.for("immer-state"):"__$immer_state",zo=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",cS={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},lS=""+Object.prototype.constructor,Kn=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Xp=Object.getOwnPropertyDescriptors||function(e){var r={};return Kn(e).forEach(function(t){r[t]=Object.getOwnPropertyDescriptor(e,t)}),r},Gu={},Ba={get:function(e,r){if(r===ye)return e;var t=dt(e);if(!an(t,r))return function(s,i,c){var l,d=$d(i,c);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(s.k):void 0}(e,t,r);var a=t[r];return e.I||!vr(a)?a:a===hu(e.t,r)?(gu(e),e.o[r]=ka(e.A.h,a,e)):a},has:function(e,r){return r in dt(e)},ownKeys:function(e){return Reflect.ownKeys(dt(e))},set:function(e,r,t){var a=$d(dt(e),r);if(a!=null&&a.set)return a.set.call(e.k,t),!0;if(!e.P){var s=hu(dt(e),r),i=s==null?void 0:s[ye];if(i&&i.t===t)return e.o[r]=t,e.R[r]=!1,!0;if(Jp(t,s)&&(t!==void 0||an(e.t,r)))return!0;gu(e),Lt(e)}return e.o[r]===t&&(t!==void 0||r in e.o)||Number.isNaN(t)&&Number.isNaN(e.o[r])||(e.o[r]=t,e.R[r]=!0),!0},deleteProperty:function(e,r){return hu(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,gu(e),Lt(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var t=dt(e),a=Reflect.getOwnPropertyDescriptor(t,r);return a&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:a.enumerable,value:t[r]}},defineProperty:function(){Xe(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Xe(12)}},Pa={};Br(Ba,function(e,r){Pa[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),Pa.deleteProperty=function(e,r){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(r))&&Xe(13),Pa.set.call(this,e,r,void 0)},Pa.set=function(e,r,t){return process.env.NODE_ENV!=="production"&&r!=="length"&&isNaN(parseInt(r))&&Xe(14),Ba.set.call(this,e[0],r,t,e[0])};var fS=function(){function e(t){var a=this;this.O=Ld,this.D=!0,this.produce=function(s,i,c){if(typeof s=="function"&&typeof i!="function"){var l=i;i=s;var d=a;return function(C){var I=this;C===void 0&&(C=l);for(var P=arguments.length,k=Array(P>1?P-1:0),M=1;M<P;M++)k[M-1]=arguments[M];return d.produce(C,function(j){var O;return(O=i).call.apply(O,[I,j].concat(k))})}}var p;if(typeof i!="function"&&Xe(6),c!==void 0&&typeof c!="function"&&Xe(7),vr(s)){var g=Id(a),m=ka(a,s,void 0),b=!0;try{p=i(m),b=!1}finally{b?ss(g):qu(g)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(C){return du(g,c),pu(C,g)},function(C){throw ss(g),C}):(du(g,c),pu(p,g))}if(!s||typeof s!="object"){if((p=i(s))===void 0&&(p=s),p===Sc&&(p=void 0),a.D&&yc(p,!0),c){var E=[],x=[];Er("Patches").M(s,p,E,x),c(E,x)}return p}Xe(21,s)},this.produceWithPatches=function(s,i){if(typeof s=="function")return function(p){for(var g=arguments.length,m=Array(g>1?g-1:0),b=1;b<g;b++)m[b-1]=arguments[b];return a.produceWithPatches(p,function(E){return s.apply(void 0,[E].concat(m))})};var c,l,d=a.produce(s,i,function(p,g){c=p,l=g});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,c,l]}):[d,c,l]},typeof(t==null?void 0:t.useProxies)=="boolean"&&this.setUseProxies(t.useProxies),typeof(t==null?void 0:t.autoFreeze)=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var r=e.prototype;return r.createDraft=function(t){vr(t)||Xe(8),kr(t)&&(t=nS(t));var a=Id(this),s=ka(this,t,void 0);return s[ye].C=!0,qu(a),s},r.finishDraft=function(t,a){var s=t&&t[ye];process.env.NODE_ENV!=="production"&&(s&&s.C||Xe(9),s.I&&Xe(10));var i=s.A;return du(i,a),pu(void 0,i)},r.setAutoFreeze=function(t){this.D=t},r.setUseProxies=function(t){t&&!Ld&&Xe(20),this.O=t},r.applyPatches=function(t,a){var s;for(s=a.length-1;s>=0;s--){var i=a[s];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}s>-1&&(a=a.slice(s+1));var c=Er("Patches").$;return kr(t)?c(t,a):this.produce(t,function(l){return c(l,a)})},e}(),zt=new fS,Qo=zt.produce;zt.produceWithPatches.bind(zt);zt.setAutoFreeze.bind(zt);zt.setUseProxies.bind(zt);zt.applyPatches.bind(zt);zt.createDraft.bind(zt);zt.finishDraft.bind(zt);function Wa(e){"@babel/helpers - typeof";return Wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Wa(e)}function dS(e,r){if(Wa(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r||"default");if(Wa(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function pS(e){var r=dS(e,"string");return Wa(r)==="symbol"?r:String(r)}function hS(e,r,t){return r=pS(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function jd(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,a)}return t}function kd(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?jd(Object(t),!0).forEach(function(a){hS(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):jd(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function xt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Bd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),vu=function(){return Math.random().toString(36).substring(7).split("").join(".")},Rn={INIT:"@@redux/INIT"+vu(),REPLACE:"@@redux/REPLACE"+vu(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+vu()}};function Zp(e){if(typeof e!="object"||e===null)return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function gS(e){if(e===void 0)return"undefined";if(e===null)return"null";var r=typeof e;switch(r){case"boolean":case"string":case"number":case"symbol":case"function":return r}if(Array.isArray(e))return"array";if(yS(e))return"date";if(mS(e))return"error";var t=vS(e);switch(t){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return t}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")}function vS(e){return typeof e.constructor=="function"?e.constructor.name:null}function mS(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function yS(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Cn(e){var r=typeof e;return process.env.NODE_ENV!=="production"&&(r=gS(e)),r}function Qp(e,r,t){var a;if(typeof r=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?xt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof r=="function"&&typeof t>"u"&&(t=r,r=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?xt(1):"Expected the enhancer to be a function. Instead, received: '"+Cn(t)+"'");return t(Qp)(e,r)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?xt(2):"Expected the root reducer to be a function. Instead, received: '"+Cn(e)+"'");var s=e,i=r,c=[],l=c,d=!1;function p(){l===c&&(l=c.slice())}function g(){if(d)throw new Error(process.env.NODE_ENV==="production"?xt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function m(C){if(typeof C!="function")throw new Error(process.env.NODE_ENV==="production"?xt(4):"Expected the listener to be a function. Instead, received: '"+Cn(C)+"'");if(d)throw new Error(process.env.NODE_ENV==="production"?xt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var I=!0;return p(),l.push(C),function(){if(I){if(d)throw new Error(process.env.NODE_ENV==="production"?xt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");I=!1,p();var k=l.indexOf(C);l.splice(k,1),c=null}}}function b(C){if(!Zp(C))throw new Error(process.env.NODE_ENV==="production"?xt(7):"Actions must be plain objects. Instead, the actual type was: '"+Cn(C)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof C.type>"u")throw new Error(process.env.NODE_ENV==="production"?xt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(d)throw new Error(process.env.NODE_ENV==="production"?xt(9):"Reducers may not dispatch actions.");try{d=!0,i=s(i,C)}finally{d=!1}for(var I=c=l,P=0;P<I.length;P++){var k=I[P];k()}return C}function E(C){if(typeof C!="function")throw new Error(process.env.NODE_ENV==="production"?xt(10):"Expected the nextReducer to be a function. Instead, received: '"+Cn(C));s=C,b({type:Rn.REPLACE})}function x(){var C,I=m;return C={subscribe:function(k){if(typeof k!="object"||k===null)throw new Error(process.env.NODE_ENV==="production"?xt(11):"Expected the observer to be an object. Instead, received: '"+Cn(k)+"'");function M(){k.next&&k.next(g())}M();var j=I(M);return{unsubscribe:j}}},C[Bd]=function(){return this},C}return b({type:Rn.INIT}),a={dispatch:b,subscribe:m,getState:g,replaceReducer:E},a[Bd]=x,a}function Wd(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function bS(e,r,t,a){var s=Object.keys(r),i=t&&t.type===Rn.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(s.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Zp(e))return"The "+i+' has unexpected type of "'+Cn(e)+'". Expected argument to be an object with the following '+('keys: "'+s.join('", "')+'"');var c=Object.keys(e).filter(function(l){return!r.hasOwnProperty(l)&&!a[l]});if(c.forEach(function(l){a[l]=!0}),!(t&&t.type===Rn.REPLACE)&&c.length>0)return"Unexpected "+(c.length>1?"keys":"key")+" "+('"'+c.join('", "')+'" found in '+i+". ")+"Expected to find one of the known reducer keys instead: "+('"'+s.join('", "')+'". Unexpected keys will be ignored.')}function _S(e){Object.keys(e).forEach(function(r){var t=e[r],a=t(void 0,{type:Rn.INIT});if(typeof a>"u")throw new Error(process.env.NODE_ENV==="production"?xt(12):'The slice reducer for key "'+r+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof t(void 0,{type:Rn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?xt(13):'The slice reducer for key "'+r+'" returned undefined when probed with a random type. '+("Don't try to handle '"+Rn.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function eh(e){for(var r=Object.keys(e),t={},a=0;a<r.length;a++){var s=r[a];process.env.NODE_ENV!=="production"&&typeof e[s]>"u"&&Wd('No reducer provided for key "'+s+'"'),typeof e[s]=="function"&&(t[s]=e[s])}var i=Object.keys(t),c;process.env.NODE_ENV!=="production"&&(c={});var l;try{_S(t)}catch(d){l=d}return function(p,g){if(p===void 0&&(p={}),l)throw l;if(process.env.NODE_ENV!=="production"){var m=bS(p,t,g,c);m&&Wd(m)}for(var b=!1,E={},x=0;x<i.length;x++){var C=i[x],I=t[C],P=p[C],k=I(P,g);if(typeof k>"u"){var M=g&&g.type;throw new Error(process.env.NODE_ENV==="production"?xt(14):"When called with an action of type "+(M?'"'+String(M)+'"':"(unknown type)")+', the slice reducer for key "'+C+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}E[C]=k,b=b||k!==P}return b=b||i.length!==Object.keys(p).length,b?E:p}}function cs(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.length===0?function(a){return a}:r.length===1?r[0]:r.reduce(function(a,s){return function(){return a(s.apply(void 0,arguments))}})}function ES(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return function(a){return function(){var s=a.apply(void 0,arguments),i=function(){throw new Error(process.env.NODE_ENV==="production"?xt(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},c={getState:s.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=r.map(function(d){return d(c)});return i=cs.apply(void 0,l)(s.dispatch),kd(kd({},s),{},{dispatch:i})}}}var ls="NOT_FOUND";function SS(e){var r;return{get:function(a){return r&&e(r.key,a)?r.value:ls},put:function(a,s){r={key:a,value:s}},getEntries:function(){return r?[r]:[]},clear:function(){r=void 0}}}function wS(e,r){var t=[];function a(l){var d=t.findIndex(function(g){return r(l,g.key)});if(d>-1){var p=t[d];return d>0&&(t.splice(d,1),t.unshift(p)),p.value}return ls}function s(l,d){a(l)===ls&&(t.unshift({key:l,value:d}),t.length>e&&t.pop())}function i(){return t}function c(){t=[]}return{get:a,put:s,getEntries:i,clear:c}}var TS=function(r,t){return r===t};function xS(e){return function(t,a){if(t===null||a===null||t.length!==a.length)return!1;for(var s=t.length,i=0;i<s;i++)if(!e(t[i],a[i]))return!1;return!0}}function CS(e,r){var t=typeof r=="object"?r:{equalityCheck:r},a=t.equalityCheck,s=a===void 0?TS:a,i=t.maxSize,c=i===void 0?1:i,l=t.resultEqualityCheck,d=xS(s),p=c===1?SS(d):wS(c,d);function g(){var m=p.get(arguments);if(m===ls){if(m=e.apply(null,arguments),l){var b=p.getEntries(),E=b.find(function(x){return l(x.value,m)});E&&(m=E.value)}p.put(arguments,m)}return m}return g.clearCache=function(){return p.clear()},g}function RS(e){var r=Array.isArray(e[0])?e[0]:e;if(!r.every(function(a){return typeof a=="function"})){var t=r.map(function(a){return typeof a=="function"?"function "+(a.name||"unnamed")+"()":typeof a}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+t+"]")}return r}function OS(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];var s=function(){for(var c=arguments.length,l=new Array(c),d=0;d<c;d++)l[d]=arguments[d];var p=0,g,m={memoizeOptions:void 0},b=l.pop();if(typeof b=="object"&&(m=b,b=l.pop()),typeof b!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof b+"]");var E=m,x=E.memoizeOptions,C=x===void 0?t:x,I=Array.isArray(C)?C:[C],P=RS(l),k=e.apply(void 0,[function(){return p++,b.apply(null,arguments)}].concat(I)),M=e(function(){for(var O=[],Y=P.length,H=0;H<Y;H++)O.push(P[H].apply(null,arguments));return g=k.apply(null,O),g});return Object.assign(M,{resultFunc:b,memoizedResultFunc:k,dependencies:P,lastResult:function(){return g},recomputations:function(){return p},resetRecomputations:function(){return p=0}}),M};return s}var q=OS(CS);function th(e){var r=function(a){var s=a.dispatch,i=a.getState;return function(c){return function(l){return typeof l=="function"?l(s,i,e):c(l)}}};return r}var rh=th();rh.withExtraArgument=th;const Ud=rh;var AS=globalThis&&globalThis.__extends||function(){var e=function(r,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(a[i]=s[i])},e(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function a(){this.constructor=r}r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),PS=globalThis&&globalThis.__generator||function(e,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,s,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(g){return d([p,g])}}function d(p){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,s&&(i=p[0]&2?s.return:p[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,p[1])).done)return i;switch(s=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return t.label++,{value:p[1],done:!1};case 5:t.label++,s=p[1],p=[0];continue;case 7:p=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){t=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){t.label=p[1];break}if(p[0]===6&&t.label<i[1]){t.label=i[1],i=p;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(p);break}i[2]&&t.ops.pop(),t.trys.pop();continue}p=r.call(e,t)}catch(g){p=[6,g],s=0}finally{a=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},fs=globalThis&&globalThis.__spreadArray||function(e,r){for(var t=0,a=r.length,s=e.length;t<a;t++,s++)e[s]=r[t];return e},DS=Object.defineProperty,IS=Object.defineProperties,FS=Object.getOwnPropertyDescriptors,Hd=Object.getOwnPropertySymbols,$S=Object.prototype.hasOwnProperty,MS=Object.prototype.propertyIsEnumerable,qd=function(e,r,t){return r in e?DS(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t},on=function(e,r){for(var t in r||(r={}))$S.call(r,t)&&qd(e,t,r[t]);if(Hd)for(var a=0,s=Hd(r);a<s.length;a++){var t=s[a];MS.call(r,t)&&qd(e,t,r[t])}return e},mu=function(e,r){return IS(e,FS(r))},NS=function(e,r,t){return new Promise(function(a,s){var i=function(d){try{l(t.next(d))}catch(p){s(p)}},c=function(d){try{l(t.throw(d))}catch(p){s(p)}},l=function(d){return d.done?a(d.value):Promise.resolve(d.value).then(i,c)};l((t=t.apply(e,r)).next())})},LS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?cs:cs.apply(null,arguments)};function nh(e){if(typeof e!="object"||e===null)return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return r===t}function ah(e,r){var t=0;return{measureTime:function(a){var s=Date.now();try{return a()}finally{var i=Date.now();t+=i-s}},warnIfExceeded:function(){t>e&&console.warn(r+" took "+t+"ms, which is more than the warning threshold of "+e+`ms.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("@ws-ui/shared"),Ke=require("react"),QS=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=u1[e],i=s?typeof s=="function"?s.apply(null,t):s:"unknown error nr: "+e;throw Error("[Immer] "+i)}throw Error("[Immer] minified error nr: "+e+(t.length?" "+t.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function jr(e){return!!e&&!!e[ye]}function vr(e){var r;return!!e&&(function(t){if(!t||typeof t!="object")return!1;var a=Object.getPrototypeOf(t);if(a===null)return!0;var s=Object.hasOwnProperty.call(a,"constructor")&&a.constructor;return s===Object||typeof s=="function"&&Function.toString.call(s)===c1}(e)||Array.isArray(e)||!!e[Da]||!!(!((r=e.constructor)===null||r===void 0)&&r[Da])||xs(e)||Cs(e))}function Br(e,r,t){t===void 0&&(t=!1),un(e)===0?(t?Object.keys:Vn)(e).forEach(function(a){t&&typeof a=="symbol"||r(a,e[a],e)}):e.forEach(function(a,s){return r(s,a,e)})}function un(e){var r=e[ye];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:xs(e)?2:Cs(e)?3:0}function an(e,r){return un(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function Zo(e,r){return un(e)===2?e.get(r):e[r]}function Jp(e,r,t){var a=un(e);a===2?e.set(r,t):a===3?e.add(t):e[r]=t}function Xp(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function xs(e){return s1&&e instanceof Map}function Cs(e){return i1&&e instanceof Set}function dt(e){return e.o||e.t}function yc(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=Zp(e);delete r[ye];for(var t=Vn(r),a=0;a<t.length;a++){var s=t[a],i=r[s];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[s]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),r)}function bc(e,r){return r===void 0&&(r=!1),_c(e)||jr(e)||!vr(e)||(un(e)>1&&(e.set=e.add=e.clear=e.delete=e1),Object.freeze(e),r&&Br(e,function(t,a){return bc(a,!0)},!0)),e}function e1(){Xe(2)}function _c(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Er(e){var r=qu[e];return r||Xe(18,e),r}function Ec(e,r){qu[e]||(qu[e]=r)}function La(){return process.env.NODE_ENV==="production"||Qn||Xe(0),Qn}function du(e,r){r&&(Er("Patches"),e.u=[],e.s=[],e.v=r)}function ss(e){Gu(e),e.p.forEach(t1),e.p=null}function Gu(e){e===Qn&&(Qn=e.l)}function Fd(e){return Qn={p:[],l:Qn,h:e,m:!0,_:0}}function t1(e){var r=e[ye];r.i===0||r.i===1?r.j():r.g=!0}function pu(e,r){r._=r.p.length;var t=r.p[0],a=e!==void 0&&e!==t;return r.h.O||Er("ES5").S(r,e,a),a?(t[ye].P&&(ss(r),Xe(4)),vr(e)&&(e=is(r,e),r.l||us(r,e)),r.u&&Er("Patches").M(t[ye].t,e,r.u,r.s)):e=is(r,t,[]),ss(r),r.u&&r.v(r.u,r.s),e!==wc?e:void 0}function is(e,r,t){if(_c(r))return r;var a=r[ye];if(!a)return Br(r,function(l,d){return $d(e,a,r,l,d,t)},!0),r;if(a.A!==e)return r;if(!a.P)return us(e,a.t,!0),a.t;if(!a.I){a.I=!0,a.A._--;var s=a.i===4||a.i===5?a.o=yc(a.k):a.o,i=s,c=!1;a.i===3&&(i=new Set(s),s.clear(),c=!0),Br(i,function(l,d){return $d(e,a,s,l,d,t,c)}),us(e,s,!1),t&&e.u&&Er("Patches").N(a,t,e.u,e.s)}return a.o}function $d(e,r,t,a,s,i,c){if(process.env.NODE_ENV!=="production"&&s===t&&Xe(5),jr(s)){var l=is(e,s,i&&r&&r.i!==3&&!an(r.R,a)?i.concat(a):void 0);if(Jp(t,a,l),!jr(l))return;e.m=!1}else c&&t.add(s);if(vr(s)&&!_c(s)){if(!e.h.D&&e._<1)return;is(e,s),r&&r.A.l||us(e,s)}}function us(e,r,t){t===void 0&&(t=!1),!e.l&&e.h.D&&e.m&&bc(r,t)}function hu(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 gu(e){e.o||(e.o=yc(e.t))}function ka(e,r,t){var a=xs(r)?Er("MapSet").F(r,t):Cs(r)?Er("MapSet").T(r,t):e.O?function(s,i){var c=Array.isArray(s),l={i:c?1:0,A:i?i.A:La(),P:!1,I:!1,R:{},l:i,t:s,k:null,o:null,j:null,C:!1},d=l,p=ja;c&&(d=[l],p=Aa);var g=Proxy.revocable(d,p),m=g.revoke,_=g.proxy;return l.k=_,l.j=m,_}(r,t):Er("ES5").J(r,t);return(t?t.A:La()).p.push(a),a}function r1(e){return jr(e)||Xe(22,e),function r(t){if(!vr(t))return t;var a,s=t[ye],i=un(t);if(s){if(!s.P&&(s.i<4||!Er("ES5").K(s)))return s.t;s.I=!0,a=Nd(t,i),s.I=!1}else a=Nd(t,i);return Br(a,function(c,l){s&&Zo(s.t,c)===l||Jp(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 yc(e)}function n1(){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),ja.get(p,c)},set:function(p){var g=this[ye];process.env.NODE_ENV!=="production"&&s(g),ja.set(g,c,p)}},d}function r(c){for(var l=c.length-1;l>=0;l--){var d=c[l][ye];if(!d.P)switch(d.i){case 5:a(d)&&Lt(d);break;case 4:t(d)&&Lt(d)}}}function t(c){for(var l=c.t,d=c.k,p=Vn(d),g=p.length-1;g>=0;g--){var m=p[g];if(m!==ye){var _=l[m];if(_===void 0&&!an(l,m))return!0;var E=d[m],x=E&&E[ye];if(x?x.t!==_:!Xp(E,_))return!0}}var C=!!l[ye];return p.length!==Vn(l).length+(C?0:1)}function a(c){var l=c.k;if(l.length!==c.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function s(c){c.g&&Xe(3,JSON.stringify(dt(c)))}var i={};Ec("ES5",{J:function(c,l){var d=Array.isArray(c),p=function(m,_){if(m){for(var E=Array(_.length),x=0;x<_.length;x++)Object.defineProperty(E,""+x,e(x,!0));return E}var C=Zp(_);delete C[ye];for(var I=Vn(C),P=0;P<I.length;P++){var j=I[P];C[j]=e(j,m||!!C[j].enumerable)}return Object.create(Object.getPrototypeOf(_),C)}(d,c),g={i:d?5:4,A:l?l.A:La(),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 _=m.t,E=m.k,x=m.R,C=m.i;if(C===4)Br(E,function(k){k!==ye&&(_[k]!==void 0||an(_,k)?x[k]||p(E[k]):(x[k]=!0,Lt(m)))}),Br(_,function(k){E[k]!==void 0||an(E,k)||(x[k]=!1,Lt(m))});else if(C===5){if(a(m)&&(Lt(m),x.length=!0),E.length<_.length)for(var I=E.length;I<_.length;I++)x[I]=!1;else for(var P=_.length;P<E.length;P++)x[P]=!0;for(var j=Math.min(E.length,_.length),M=0;M<j;M++)E.hasOwnProperty(M)||(x[M]=!0),x[M]===void 0&&p(E[M])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?t(c):a(c)}})}function a1(){function e(a){if(!vr(a))return a;if(Array.isArray(a))return a.map(e);if(xs(a))return new Map(Array.from(a.entries()).map(function(c){return[c[0],e(c[1])]}));if(Cs(a))return new Set(Array.from(a).map(e));var s=Object.create(Object.getPrototypeOf(a));for(var i in a)s[i]=e(a[i]);return an(a,Da)&&(s[Da]=a[Da]),s}function r(a){return jr(a)?e(a):a}var t="add";Ec("Patches",{$:function(a,s){return s.forEach(function(i){for(var c=i.path,l=i.op,d=a,p=0;p<c.length-1;p++){var g=un(d),m=c[p];typeof m!="string"&&typeof m!="number"&&(m=""+m),g!==0&&g!==1||m!=="__proto__"&&m!=="constructor"||Xe(24),typeof d=="function"&&m==="prototype"&&Xe(24),typeof(d=Zo(d,m))!="object"&&Xe(15,c.join("/"))}var _=un(d),E=e(i.value),x=c[c.length-1];switch(l){case"replace":switch(_){case 2:return d.set(x,E);case 3:Xe(16);default:return d[x]=E}case t:switch(_){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(_){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,_=l.o;Br(l.R,function(E,x){var C=Zo(m,E),I=Zo(_,E),P=x?an(m,E)?"replace":t:"remove";if(C!==I||P!=="replace"){var j=d.concat(E);p.push(P==="remove"?{op:P,path:j}:{op:P,path:j,value:I}),g.push(P===t?{op:"remove",path:j}:P==="remove"?{op:t,path:j,value:r(C)}:{op:"replace",path:j,value:r(C)})}})}(a,s,i,c);case 5:case 1:return function(l,d,p,g){var m=l.t,_=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(_[I]&&E[I]!==m[I]){var P=d.concat([I]);p.push({op:"replace",path:P,value:r(E[I])}),g.push({op:"replace",path:P,value:r(m[I])})}for(var j=m.length;j<E.length;j++){var M=d.concat([j]);p.push({op:t,path:M,value:r(E[j])})}m.length<E.length&&g.push({op:"replace",path:d.concat(["length"]),value:m.length})}(a,s,i,c);case 3:return function(l,d,p,g){var m=l.t,_=l.o,E=0;m.forEach(function(x){if(!_.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,_.forEach(function(x){if(!m.has(x)){var C=d.concat([E]);p.push({op:t,path:C,value:x}),g.unshift({op:"remove",path:C,value:x})}E++})}(a,s,i,c)}},M:function(a,s,i,c){i.push({op:"replace",path:[],value:s===wc?void 0:s}),c.push({op:"replace",path:[],value:a})}})}function o1(){function e(l,d){function p(){this.constructor=l}s(l,d),l.prototype=(p.prototype=d.prototype,new p)}function r(l){l.o||(l.R=new Map,l.o=new Map(l.t))}function t(l){l.o||(l.o=new Set,l.t.forEach(function(d){if(vr(d)){var p=ka(l.A.h,d,l);l.p.set(d,p),l.o.add(p)}else l.o.add(d)}))}function a(l){l.g&&Xe(3,JSON.stringify(dt(l)))}var s=function(l,d){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var m in g)g.hasOwnProperty(m)&&(p[m]=g[m])})(l,d)},i=function(){function l(p,g){return this[ye]={i:2,l:g,A:g?g.A:La(),P:!1,I:!1,o:void 0,R:void 0,t:p,k:this,C:!1,g:!1},this}e(l,Map);var d=l.prototype;return Object.defineProperty(d,"size",{get:function(){return dt(this[ye]).size}}),d.has=function(p){return dt(this[ye]).has(p)},d.set=function(p,g){var m=this[ye];return a(m),dt(m).has(p)&&dt(m).get(p)===g||(r(m),Lt(m),m.R.set(p,!0),m.o.set(p,g),m.R.set(p,!0)),this},d.delete=function(p){if(!this.has(p))return!1;var g=this[ye];return a(g),r(g),Lt(g),g.t.has(p)?g.R.set(p,!1):g.R.delete(p),g.o.delete(p),!0},d.clear=function(){var p=this[ye];a(p),dt(p).size&&(r(p),Lt(p),p.R=new Map,Br(p.t,function(g){p.R.set(g,!1)}),p.o.clear())},d.forEach=function(p,g){var m=this;dt(this[ye]).forEach(function(_,E){p.call(g,m.get(E),E,m)})},d.get=function(p){var g=this[ye];a(g);var m=dt(g).get(p);if(g.I||!vr(m)||m!==g.t.get(p))return m;var _=ka(g.A.h,m,g);return r(g),g.o.set(p,_),_},d.keys=function(){return dt(this[ye]).keys()},d.values=function(){var p,g=this,m=this.keys();return(p={})[zo]=function(){return g.values()},p.next=function(){var _=m.next();return _.done?_:{done:!1,value:g.get(_.value)}},p},d.entries=function(){var p,g=this,m=this.keys();return(p={})[zo]=function(){return g.entries()},p.next=function(){var _=m.next();if(_.done)return _;var E=g.get(_.value);return{done:!1,value:[_.value,E]}},p},d[zo]=function(){return this.entries()},l}(),c=function(){function l(p,g){return this[ye]={i:3,l:g,A:g?g.A:La(),P:!1,I:!1,o:void 0,t:p,k:this,p:new Map,g:!1,C:!1},this}e(l,Set);var d=l.prototype;return Object.defineProperty(d,"size",{get:function(){return dt(this[ye]).size}}),d.has=function(p){var g=this[ye];return a(g),g.o?!!g.o.has(p)||!(!g.p.has(p)||!g.o.has(g.p.get(p))):g.t.has(p)},d.add=function(p){var g=this[ye];return a(g),this.has(p)||(t(g),Lt(g),g.o.add(p)),this},d.delete=function(p){if(!this.has(p))return!1;var g=this[ye];return a(g),t(g),Lt(g),g.o.delete(p)||!!g.p.has(p)&&g.o.delete(g.p.get(p))},d.clear=function(){var p=this[ye];a(p),dt(p).size&&(t(p),Lt(p),p.o.clear())},d.values=function(){var p=this[ye];return a(p),t(p),p.o.values()},d.entries=function(){var p=this[ye];return a(p),t(p),p.o.entries()},d.keys=function(){return this.values()},d[zo]=function(){return this.values()},d.forEach=function(p,g){for(var m=this.values(),_=m.next();!_.done;)p.call(g,_.value,_.value,this),_=m.next()},l}();Ec("MapSet",{F:function(l,d){return new i(l,d)},T:function(l,d){return new c(l,d)}})}var Ld,Qn,Sc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",s1=typeof Map<"u",i1=typeof Set<"u",kd=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",wc=Sc?Symbol.for("immer-nothing"):((Ld={})["immer-nothing"]=!0,Ld),Da=Sc?Symbol.for("immer-draftable"):"__$immer_draftable",ye=Sc?Symbol.for("immer-state"):"__$immer_state",zo=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",u1={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"},c1=""+Object.prototype.constructor,Vn=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Zp=Object.getOwnPropertyDescriptors||function(e){var r={};return Vn(e).forEach(function(t){r[t]=Object.getOwnPropertyDescriptor(e,t)}),r},qu={},ja={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||!vr(a)?a:a===hu(e.t,r)?(gu(e),e.o[r]=ka(e.A.h,a,e)):a},has:function(e,r){return r in dt(e)},ownKeys:function(e){return Reflect.ownKeys(dt(e))},set:function(e,r,t){var a=Md(dt(e),r);if(a!=null&&a.set)return a.set.call(e.k,t),!0;if(!e.P){var s=hu(dt(e),r),i=s==null?void 0:s[ye];if(i&&i.t===t)return e.o[r]=t,e.R[r]=!1,!0;if(Xp(t,s)&&(t!==void 0||an(e.t,r)))return!0;gu(e),Lt(e)}return e.o[r]===t&&(t!==void 0||r in e.o)||Number.isNaN(t)&&Number.isNaN(e.o[r])||(e.o[r]=t,e.R[r]=!0),!0},deleteProperty:function(e,r){return hu(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,gu(e),Lt(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var t=dt(e),a=Reflect.getOwnPropertyDescriptor(t,r);return a&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:a.enumerable,value:t[r]}},defineProperty:function(){Xe(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Xe(12)}},Aa={};Br(ja,function(e,r){Aa[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),Aa.deleteProperty=function(e,r){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(r))&&Xe(13),Aa.set.call(this,e,r,void 0)},Aa.set=function(e,r,t){return process.env.NODE_ENV!=="production"&&r!=="length"&&isNaN(parseInt(r))&&Xe(14),ja.set.call(this,e[0],r,t,e[0])};var l1=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,j=Array(P>1?P-1:0),M=1;M<P;M++)j[M-1]=arguments[M];return d.produce(C,function(k){var O;return(O=i).call.apply(O,[I,k].concat(j))})}}var p;if(typeof i!="function"&&Xe(6),c!==void 0&&typeof c!="function"&&Xe(7),vr(s)){var g=Fd(a),m=ka(a,s,void 0),_=!0;try{p=i(m),_=!1}finally{_?ss(g):Gu(g)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(C){return du(g,c),pu(C,g)},function(C){throw ss(g),C}):(du(g,c),pu(p,g))}if(!s||typeof s!="object"){if((p=i(s))===void 0&&(p=s),p===wc&&(p=void 0),a.D&&bc(p,!0),c){var E=[],x=[];Er("Patches").M(s,p,E,x),c(E,x)}return p}Xe(21,s)},this.produceWithPatches=function(s,i){if(typeof s=="function")return function(p){for(var g=arguments.length,m=Array(g>1?g-1:0),_=1;_<g;_++)m[_-1]=arguments[_];return a.produceWithPatches(p,function(E){return s.apply(void 0,[E].concat(m))})};var c,l,d=a.produce(s,i,function(p,g){c=p,l=g});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,c,l]}):[d,c,l]},typeof(t==null?void 0:t.useProxies)=="boolean"&&this.setUseProxies(t.useProxies),typeof(t==null?void 0:t.autoFreeze)=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var r=e.prototype;return r.createDraft=function(t){vr(t)||Xe(8),jr(t)&&(t=r1(t));var a=Fd(this),s=ka(this,t,void 0);return s[ye].C=!0,Gu(a),s},r.finishDraft=function(t,a){var s=t&&t[ye];process.env.NODE_ENV!=="production"&&(s&&s.C||Xe(9),s.I&&Xe(10));var i=s.A;return du(i,a),pu(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}(),zt=new l1,Qo=zt.produce;zt.produceWithPatches.bind(zt);zt.setAutoFreeze.bind(zt);zt.setUseProxies.bind(zt);zt.applyPatches.bind(zt);zt.createDraft.bind(zt);zt.finishDraft.bind(zt);function Ba(e){"@babel/helpers - typeof";return Ba=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},Ba(e)}function f1(e,r){if(Ba(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r||"default");if(Ba(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function d1(e){var r=f1(e,"string");return Ba(r)==="symbol"?r:String(r)}function p1(e,r,t){return r=d1(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function jd(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,a)}return t}function Bd(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?jd(Object(t),!0).forEach(function(a){p1(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):jd(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function xt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Wd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),vu=function(){return Math.random().toString(36).substring(7).split("").join(".")},Cn={INIT:"@@redux/INIT"+vu(),REPLACE:"@@redux/REPLACE"+vu(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+vu()}};function Qp(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 h1(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(m1(e))return"date";if(v1(e))return"error";var t=g1(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 g1(e){return typeof e.constructor=="function"?e.constructor.name:null}function v1(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function m1(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function xn(e){var r=typeof e;return process.env.NODE_ENV!=="production"&&(r=h1(e)),r}function eh(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: '"+xn(t)+"'");return t(eh)(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: '"+xn(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: '"+xn(C)+"'");if(d)throw new Error(process.env.NODE_ENV==="production"?xt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var I=!0;return p(),l.push(C),function(){if(I){if(d)throw new Error(process.env.NODE_ENV==="production"?xt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");I=!1,p();var j=l.indexOf(C);l.splice(j,1),c=null}}}function _(C){if(!Qp(C))throw new Error(process.env.NODE_ENV==="production"?xt(7):"Actions must be plain objects. Instead, the actual type was: '"+xn(C)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof C.type>"u")throw new Error(process.env.NODE_ENV==="production"?xt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(d)throw new Error(process.env.NODE_ENV==="production"?xt(9):"Reducers may not dispatch actions.");try{d=!0,i=s(i,C)}finally{d=!1}for(var I=c=l,P=0;P<I.length;P++){var j=I[P];j()}return C}function E(C){if(typeof C!="function")throw new Error(process.env.NODE_ENV==="production"?xt(10):"Expected the nextReducer to be a function. Instead, received: '"+xn(C));s=C,_({type:Cn.REPLACE})}function x(){var C,I=m;return C={subscribe:function(j){if(typeof j!="object"||j===null)throw new Error(process.env.NODE_ENV==="production"?xt(11):"Expected the observer to be an object. Instead, received: '"+xn(j)+"'");function M(){j.next&&j.next(g())}M();var k=I(M);return{unsubscribe:k}}},C[Wd]=function(){return this},C}return _({type:Cn.INIT}),a={dispatch:_,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 y1(e,r,t,a){var s=Object.keys(r),i=t&&t.type===Cn.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(!Qp(e))return"The "+i+' has unexpected type of "'+xn(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===Cn.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 b1(e){Object.keys(e).forEach(function(r){var t=e[r],a=t(void 0,{type:Cn.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:Cn.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 '"+Cn.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 th(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{b1(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=y1(p,t,g,c);m&&Ud(m)}for(var _=!1,E={},x=0;x<i.length;x++){var C=i[x],I=t[C],P=p[C],j=I(P,g);if(typeof j>"u"){var M=g&&g.type;throw new Error(process.env.NODE_ENV==="production"?xt(14):"When called with an action of type "+(M?'"'+String(M)+'"':"(unknown type)")+', the slice reducer for key "'+C+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}E[C]=j,_=_||j!==P}return _=_||i.length!==Object.keys(p).length,_?E:p}}function cs(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.length===0?function(a){return a}:r.length===1?r[0]:r.reduce(function(a,s){return function(){return a(s.apply(void 0,arguments))}})}function _1(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return function(a){return function(){var s=a.apply(void 0,arguments),i=function(){throw new Error(process.env.NODE_ENV==="production"?xt(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},c={getState:s.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=r.map(function(d){return d(c)});return i=cs.apply(void 0,l)(s.dispatch),Bd(Bd({},s),{},{dispatch:i})}}}var ls="NOT_FOUND";function E1(e){var r;return{get:function(a){return r&&e(r.key,a)?r.value:ls},put:function(a,s){r={key:a,value:s}},getEntries:function(){return r?[r]:[]},clear:function(){r=void 0}}}function S1(e,r){var t=[];function a(l){var d=t.findIndex(function(g){return r(l,g.key)});if(d>-1){var p=t[d];return d>0&&(t.splice(d,1),t.unshift(p)),p.value}return ls}function s(l,d){a(l)===ls&&(t.unshift({key:l,value:d}),t.length>e&&t.pop())}function i(){return t}function c(){t=[]}return{get:a,put:s,getEntries:i,clear:c}}var w1=function(r,t){return r===t};function T1(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 x1(e,r){var t=typeof r=="object"?r:{equalityCheck:r},a=t.equalityCheck,s=a===void 0?w1:a,i=t.maxSize,c=i===void 0?1:i,l=t.resultEqualityCheck,d=T1(s),p=c===1?E1(d):S1(c,d);function g(){var m=p.get(arguments);if(m===ls){if(m=e.apply(null,arguments),l){var _=p.getEntries(),E=_.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 C1(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 R1(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},_=l.pop();if(typeof _=="object"&&(m=_,_=l.pop()),typeof _!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof _+"]");var E=m,x=E.memoizeOptions,C=x===void 0?t:x,I=Array.isArray(C)?C:[C],P=C1(l),j=e.apply(void 0,[function(){return p++,_.apply(null,arguments)}].concat(I)),M=e(function(){for(var O=[],Y=P.length,H=0;H<Y;H++)O.push(P[H].apply(null,arguments));return g=j.apply(null,O),g});return Object.assign(M,{resultFunc:_,memoizedResultFunc:j,dependencies:P,lastResult:function(){return g},recomputations:function(){return p},resetRecomputations:function(){return p=0}}),M};return s}var G=R1(x1);function rh(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 nh=rh();nh.withExtraArgument=rh;const Hd=nh;var O1=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)}}(),A1=globalThis&&globalThis.__generator||function(e,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,s,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(g){return d([p,g])}}function d(p){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,s&&(i=p[0]&2?s.return:p[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,p[1])).done)return i;switch(s=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return t.label++,{value:p[1],done:!1};case 5:t.label++,s=p[1],p=[0];continue;case 7:p=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){t=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){t.label=p[1];break}if(p[0]===6&&t.label<i[1]){t.label=i[1],i=p;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(p);break}i[2]&&t.ops.pop(),t.trys.pop();continue}p=r.call(e,t)}catch(g){p=[6,g],s=0}finally{a=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},fs=globalThis&&globalThis.__spreadArray||function(e,r){for(var t=0,a=r.length,s=e.length;t<a;t++,s++)e[s]=r[t];return e},P1=Object.defineProperty,D1=Object.defineProperties,I1=Object.getOwnPropertyDescriptors,Gd=Object.getOwnPropertySymbols,F1=Object.prototype.hasOwnProperty,$1=Object.prototype.propertyIsEnumerable,qd=function(e,r,t){return r in e?P1(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t},on=function(e,r){for(var t in r||(r={}))F1.call(r,t)&&qd(e,t,r[t]);if(Gd)for(var a=0,s=Gd(r);a<s.length;a++){var t=s[a];$1.call(r,t)&&qd(e,t,r[t])}return e},mu=function(e,r){return D1(e,I1(r))},M1=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())})},N1=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?cs:cs.apply(null,arguments)};function ah(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 oh(e,r){var t=0;return{measureTime:function(a){var s=Date.now();try{return a()}finally{var i=Date.now();t+=i-s}},warnIfExceeded:function(){t>e&&console.warn(r+" took "+t+"ms, which is more than the warning threshold of "+e+`ms.
|
|
2
2
|
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
|
|
3
|
-
It is disabled in production builds, so you don't need to worry about that.`)}}}var
|
|
3
|
+
It is disabled in production builds, so you don't need to worry about that.`)}}}var L1=function(e){O1(r,e);function r(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];var s=e.apply(this,t)||this;return Object.setPrototypeOf(s,r.prototype),s}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return e.prototype.concat.apply(this,t)},r.prototype.prepend=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return t.length===1&&Array.isArray(t[0])?new(r.bind.apply(r,fs([void 0],t[0].concat(this)))):new(r.bind.apply(r,fs([void 0],t.concat(this))))},r}(Array),k1=process.env.NODE_ENV==="production",zd="Invariant failed";function Yd(e,r){if(!e)throw k1?new Error(zd):new Error(zd+": "+(r||""))}function j1(e,r,t,a){return JSON.stringify(e,B1(r,a),t)}function B1(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 W1(e){return typeof e!="object"||e===null||typeof e>"u"||Object.isFrozen(e)}function U1(e,r,t){var a=sh(e,r,t);return{detectMutations:function(){return ih(e,r,a,t)}}}function sh(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]=sh(e,r,t[i],c))}}return s}function ih(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=ih(e,r,t.children[p],a[p],l,g);if(m.wasMutated)return m}}return{wasMutated:!1}}function H1(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?W1:r,a=e.ignoredPaths,s=e.warnAfter,i=s===void 0?32:s,c=e.ignore;a=a||c;var l=U1.bind(null,t,a);return function(d){var p=d.getState,g=p(),m=l(g),_;return function(E){return function(x){var C=oh(i,"ImmutableStateInvariantMiddleware");C.measureTime(function(){g=p(),_=m.detectMutations(),m=l(g),Yd(!_.wasMutated,"A state mutation was detected between dispatches, in the path '"+(_.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var I=E(x);return C.measureTime(function(){g=p(),_=m.detectMutations(),m=l(g),_.wasMutated&&Yd(!_.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(_.path||"")+". Take a look at the reducer(s) handling the action "+j1(x)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),C.warnIfExceeded(),I}}}}function uh(e){var r=typeof e;return r==="undefined"||e===null||r==="string"||r==="boolean"||r==="number"||Array.isArray(e)||ah(e)}function zu(e,r,t,a,s){r===void 0&&(r=""),t===void 0&&(t=uh),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],_=g[1],E=r?r+"."+m:m;if(!(l&&s.indexOf(E)>=0)){if(!t(_))return{keyPath:E,value:_};if(typeof _=="object"&&(i=zu(_,E,t,a,s),i))return i}}return!1}function G1(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?uh: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,_=e.ignoreState,E=_===void 0?!1:_;return function(x){return function(C){return function(I){if(i.length&&i.indexOf(I.type)!==-1)return C(I);var P=oh(m,"SerializableStateInvariantMiddleware");P.measureTime(function(){var M=zu(I,"",t,a,l);if(M){var k=M.keyPath,O=M.value;console.error("A non-serializable value was detected in an action, in the path: `"+k+"`. Value:",O,`
|
|
4
4
|
Take a look at the logic that dispatched this action: `,I,`
|
|
5
5
|
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
|
|
6
|
-
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}});var
|
|
6
|
+
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}});var j=C(I);return E||(P.measureTime(function(){var M=x.getState(),k=zu(M,"",t,a,p);if(k){var O=k.keyPath,Y=k.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 yu(e){return typeof e=="boolean"}function zS(){return function(r){return YS(r)}}function YS(e){e===void 0&&(e={});var r=e.thunk,t=r===void 0?!0:r,a=e.immutableCheck,s=a===void 0?!0:a,i=e.serializableCheck,c=i===void 0?!0:i,l=new jS;if(t&&(yu(t)?l.push(Ud):l.push(Ud.withExtraArgument(t.extraArgument))),process.env.NODE_ENV!=="production"){if(s){var d={};yu(s)||(d=s),l.unshift(qS(d))}if(c){var p={};yu(c)||(p=c),l.push(GS(p))}}return l}var bu=process.env.NODE_ENV==="production";function VS(e){var r=zS(),t=e||{},a=t.reducer,s=a===void 0?void 0:a,i=t.middleware,c=i===void 0?r():i,l=t.devTools,d=l===void 0?!0:l,p=t.preloadedState,g=p===void 0?void 0:p,m=t.enhancers,b=m===void 0?void 0:m,E;if(typeof s=="function")E=s;else if(nh(s))E=eh(s);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=c;if(typeof x=="function"&&(x=x(r),!bu&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!bu&&x.some(function(M){return typeof M!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=ES.apply(void 0,x),I=cs;d&&(I=LS(on({trace:!bu},typeof d=="object"&&d)));var P=[C];Array.isArray(b)?P=fs([C],b):typeof b=="function"&&(P=b(P));var k=I.apply(void 0,P);return Qp(E,g,k)}function Pt(e,r){function t(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];if(r){var i=r.apply(void 0,a);if(!i)throw new Error("prepareAction did not return an object");return on(on({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:a[0]}}return t.toString=function(){return""+e},t.type=e,t.match=function(a){return a.type===e},t}function uh(e){var r={},t=[],a,s={addCase:function(i,c){if(process.env.NODE_ENV!=="production"){if(t.length>0)throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");if(a)throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`")}var l=typeof i=="string"?i:i.type;if(l in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[l]=c,s},addMatcher:function(i,c){if(process.env.NODE_ENV!=="production"&&a)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return t.push({matcher:i,reducer:c}),s},addDefaultCase:function(i){if(process.env.NODE_ENV!=="production"&&a)throw new Error("`builder.addDefaultCase` can only be called once");return a=i,s}};return e(s),[r,t,a]}function KS(e){return typeof e=="function"}function JS(e,r,t,a){t===void 0&&(t=[]);var s=typeof r=="function"?uh(r):[r,t,a],i=s[0],c=s[1],l=s[2],d;if(KS(e))d=function(){return Qo(e(),function(){})};else{var p=Qo(e,function(){});d=function(){return p}}function g(m,b){m===void 0&&(m=d());var E=fs([i[b.type]],c.filter(function(x){var C=x.matcher;return C(b)}).map(function(x){var C=x.reducer;return C}));return E.filter(function(x){return!!x}).length===0&&(E=[l]),E.reduce(function(x,C){if(C)if(kr(x)){var I=x,P=C(I,b);return typeof P>"u"?x:P}else{if(vr(x))return Qo(x,function(k){return C(k,b)});var P=C(x,b);if(typeof P>"u"){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return P}return x},m)}return g.getInitialState=d,g}function XS(e,r){return e+"/"+r}function or(e){var r=e.name;if(!r)throw new Error("`name` is a required option for createSlice");var t=typeof e.initialState=="function"?e.initialState:Qo(e.initialState,function(){}),a=e.reducers||{},s=Object.keys(a),i={},c={},l={};s.forEach(function(g){var m=a[g],b=XS(r,g),E,x;"reducer"in m?(E=m.reducer,x=m.prepare):E=m,i[g]=E,c[b]=E,l[g]=x?Pt(b,x):Pt(b)});function d(){var g=typeof e.extraReducers=="function"?uh(e.extraReducers):[e.extraReducers],m=g[0],b=m===void 0?{}:m,E=g[1],x=E===void 0?[]:E,C=g[2],I=C===void 0?void 0:C,P=on(on({},b),c);return JS(t,P,x,I)}var p;return{name:r,reducer:function(g,m){return p||(p=d()),p(g,m)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var ZS="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",wc=function(e){e===void 0&&(e=21);for(var r="",t=e;t--;)r+=ZS[Math.random()*64|0];return r},QS=["name","message","stack","code"],_u=function(){function e(r,t){this.payload=r,this.meta=t}return e}(),Yd=function(){function e(r,t){this.payload=r,this.meta=t}return e}(),ew=function(e){if(typeof e=="object"&&e!==null){for(var r={},t=0,a=QS;t<a.length;t++){var s=a[t];typeof e[s]=="string"&&(r[s]=e[s])}return r}return{message:String(e)}};function Q(e,r,t){var a=Pt(e+"/fulfilled",function(p,g,m,b){return{payload:p,meta:mu(on({},b||{}),{arg:m,requestId:g,requestStatus:"fulfilled"})}}),s=Pt(e+"/pending",function(p,g,m){return{payload:void 0,meta:mu(on({},m||{}),{arg:g,requestId:p,requestStatus:"pending"})}}),i=Pt(e+"/rejected",function(p,g,m,b,E){return{payload:b,error:(t&&t.serializeError||ew)(p||"Rejected"),meta:mu(on({},E||{}),{arg:m,requestId:g,rejectedWithValue:!!b,requestStatus:"rejected",aborted:(p==null?void 0:p.name)==="AbortError",condition:(p==null?void 0:p.name)==="ConditionError"})}}),c=!1,l=typeof AbortController<"u"?AbortController:function(){function p(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){}}}return p.prototype.abort=function(){process.env.NODE_ENV!=="production"&&(c||(c=!0,console.info("This platform does not implement AbortController. \nIf you want to use the AbortController to react to `abort` events, please consider importing a polyfill like 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'.")))},p}();function d(p){return function(g,m,b){var E=t!=null&&t.idGenerator?t.idGenerator(p):wc(),x=new l,C,I=new Promise(function(j,O){return x.signal.addEventListener("abort",function(){return O({name:"AbortError",message:C||"Aborted"})})}),P=!1;function k(j){P&&(C=j,x.abort())}var M=function(){return NS(this,null,function(){var j,O,Y,H,z,te;return PS(this,function(We){switch(We.label){case 0:return We.trys.push([0,4,,5]),H=(j=t==null?void 0:t.condition)==null?void 0:j.call(t,p,{getState:m,extra:b}),rw(H)?[4,H]:[3,2];case 1:H=We.sent(),We.label=2;case 2:if(H===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return P=!0,g(s(E,p,(O=t==null?void 0:t.getPendingMeta)==null?void 0:O.call(t,{requestId:E,arg:p},{getState:m,extra:b}))),[4,Promise.race([I,Promise.resolve(r(p,{dispatch:g,getState:m,extra:b,requestId:E,signal:x.signal,rejectWithValue:function(Te,it){return new _u(Te,it)},fulfillWithValue:function(Te,it){return new Yd(Te,it)}})).then(function(Te){if(Te instanceof _u)throw Te;return Te instanceof Yd?a(Te.payload,E,p,Te.meta):a(Te,E,p)})])];case 3:return Y=We.sent(),[3,5];case 4:return z=We.sent(),Y=z instanceof _u?i(null,E,p,z.payload,z.meta):i(z,E,p),[3,5];case 5:return te=t&&!t.dispatchConditionRejection&&i.match(Y)&&Y.meta.condition,te||g(Y),[2,Y]}})})}();return Object.assign(M,{abort:k,requestId:E,arg:p,unwrap:function(){return M.then(tw)}})}}return Object.assign(d,{pending:s,rejected:i,fulfilled:a,typePrefix:e})}function tw(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function rw(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var nw=function(e){return e&&typeof e.match=="function"},aw=function(e,r){return nw(e)?e.match(r):e(r)};function hr(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return function(t){return e.some(function(a){return aw(a,t)})}}function Tc(e,r){if(!e||!e.meta)return!1;var t=typeof e.meta.requestId=="string",a=r.indexOf(e.meta.requestStatus)>-1;return t&&a}function xc(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function ch(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return Tc(t,["pending"])}:xc(e)?function(t){var a=e.map(function(i){return i.pending}),s=hr.apply(void 0,a);return s(t)}:ch()(e[0])}function lh(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return Tc(t,["rejected"])}:xc(e)?function(t){var a=e.map(function(i){return i.rejected}),s=hr.apply(void 0,a);return s(t)}:lh()(e[0])}function fh(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return Tc(t,["fulfilled"])}:xc(e)?function(t){var a=e.map(function(i){return i.fulfilled}),s=hr.apply(void 0,a);return s(t)}:fh()(e[0])}aS();var Nr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ow(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var t=function a(){return this instanceof a?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:function(){return e[a]}})}),t}function sw(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var Ha=sw,iw=typeof Nr=="object"&&Nr&&Nr.Object===Object&&Nr,dh=iw,uw=dh,cw=typeof self=="object"&&self&&self.Object===Object&&self,lw=uw||cw||Function("return this")(),wr=lw,fw=wr,dw=function(){return fw.Date.now()},pw=dw,hw=/\s/;function gw(e){for(var r=e.length;r--&&hw.test(e.charAt(r)););return r}var vw=gw,mw=vw,yw=/^\s+/;function bw(e){return e&&e.slice(0,mw(e)+1).replace(yw,"")}var _w=bw,Ew=wr,Sw=Ew.Symbol,Cc=Sw,Vd=Cc,ph=Object.prototype,ww=ph.hasOwnProperty,Tw=ph.toString,Oa=Vd?Vd.toStringTag:void 0;function xw(e){var r=ww.call(e,Oa),t=e[Oa];try{e[Oa]=void 0;var a=!0}catch{}var s=Tw.call(e);return a&&(r?e[Oa]=t:delete e[Oa]),s}var Cw=xw,Rw=Object.prototype,Ow=Rw.toString;function Aw(e){return Ow.call(e)}var Pw=Aw,Kd=Cc,Dw=Cw,Iw=Pw,Fw="[object Null]",$w="[object Undefined]",Jd=Kd?Kd.toStringTag:void 0;function Mw(e){return e==null?e===void 0?$w:Fw:Jd&&Jd in Object(e)?Dw(e):Iw(e)}var Os=Mw;function Nw(e){return e!=null&&typeof e=="object"}var Rc=Nw,Lw=Os,jw=Rc,kw="[object Symbol]";function Bw(e){return typeof e=="symbol"||jw(e)&&Lw(e)==kw}var Ww=Bw,Uw=_w,Xd=Ha,Hw=Ww,Zd=0/0,qw=/^[-+]0x[0-9a-f]+$/i,Gw=/^0b[01]+$/i,zw=/^0o[0-7]+$/i,Yw=parseInt;function Vw(e){if(typeof e=="number")return e;if(Hw(e))return Zd;if(Xd(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=Xd(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=Uw(e);var t=Gw.test(e);return t||zw.test(e)?Yw(e.slice(2),t?2:8):qw.test(e)?Zd:+e}var Kw=Vw,Jw=Ha,Eu=pw,Qd=Kw,Xw="Expected a function",Zw=Math.max,Qw=Math.min;function eT(e,r,t){var a,s,i,c,l,d,p=0,g=!1,m=!1,b=!0;if(typeof e!="function")throw new TypeError(Xw);r=Qd(r)||0,Jw(t)&&(g=!!t.leading,m="maxWait"in t,i=m?Zw(Qd(t.maxWait)||0,r):i,b="trailing"in t?!!t.trailing:b);function E(Y){var H=a,z=s;return a=s=void 0,p=Y,c=e.apply(z,H),c}function x(Y){return p=Y,l=setTimeout(P,r),g?E(Y):c}function C(Y){var H=Y-d,z=Y-p,te=r-H;return m?Qw(te,i-z):te}function I(Y){var H=Y-d,z=Y-p;return d===void 0||H>=r||H<0||m&&z>=i}function P(){var Y=Eu();if(I(Y))return k(Y);l=setTimeout(P,C(Y))}function k(Y){return l=void 0,b&&a?E(Y):(a=s=void 0,c)}function M(){l!==void 0&&clearTimeout(l),p=0,a=d=s=l=void 0}function j(){return l===void 0?c:k(Eu())}function O(){var Y=Eu(),H=I(Y);if(a=arguments,s=this,d=Y,H){if(l===void 0)return x(d);if(m)return clearTimeout(l),l=setTimeout(P,r),E(d)}return l===void 0&&(l=setTimeout(P,r)),c}return O.cancel=M,O.flush=j,O}var tT=eT,rT=tT,nT=Ha,aT="Expected a function";function oT(e,r,t){var a=!0,s=!0;if(typeof e!="function")throw new TypeError(aT);return nT(t)&&(a="leading"in t?!!t.leading:a,s="trailing"in t?!!t.trailing:s),rT(e,r,{leading:a,maxWait:r,trailing:s})}var sT=oT;const iT=Rs(sT);var hh=(e=>(e[e.First=0]="First",e[e.Last=-1]="Last",e))(hh||{}),Mr=(e=>(e.ATTACHED="attached",e.DETACHED="detached",e.ERROR="error",e))(Mr||{}),ds=(e=>(e.SOCKET_ERROR="socket-error",e.SOCKET_CLOSURE="socket-closure",e))(ds||{}),gh=(e=>(e.NOT_STARTED="remote debugger not started",e.ALREADY_IN_USE="already in use",e.TIMEOUT="timeout",e))(gh||{});const As=2e3,Oc={tabs:[],activeTab:"",recent:[],roles:{roles:{},privileges:{},flags:{touched:!1},selectedTab:"roles"},sharedCSS:{state:"loading",styles:[]},debugger:{meta:{state:Mr.DETACHED},list:[],sessions:[],expressions:[]},webforms:{templates:{selectedGroup:"",data:[]},components:[],inspector:{css:{active:!1},datasource:{active:!1}},datasources:{theme:"grey"},flags:{"sidebar.section.resizable":!0}}},vh="4DWS_PREFS",mh=e=>`APP_STATE_${e}`,yh=()=>{var e,r;return((r=(e=window==null?void 0:window.$$datastores)==null?void 0:e.ds)==null?void 0:r.getBaseID())||""};function bh(e){try{const r=yh(),t=JSON.stringify(e);localStorage.setItem(mh(r),t)}catch(r){console.error(r)}}function _h(e){try{const r=JSON.stringify(e);localStorage.setItem(vh,r)}catch(r){console.error(r)}}function Eh(){try{const e=localStorage.getItem(vh);if(e)return JSON.parse(e)}catch(e){console.error(e)}}function ta(){const e=yh(),r=localStorage.getItem(mh(e));if(r){const t=JSON.parse(r);return t.tabs=t.tabs.map(a=>({...a,flags:{...a.flags,enabled:!0}})),t}return Oc}function Ps(e){const{name:r,type:t,path:a}=e,s=a.split(".").at(-1);switch(t){case _.FileFolderType.WEBFORM:return`${r}.WebForm`;case _.FileFolderType.METHOD:case _.FileFolderType.CLASS:return s?`${r}.${s}`:r;case _.FileFolderType.ROLES:return r;default:return`${r}.${t}`}}const Sh=e=>{if(!e)return[];const r=new Map;return e.dataClasses.forEach(t=>{var i,c;const a=t.extraProperties||{},s={id:t.className,type:"table",position:{x:((i=a.position)==null?void 0:i.x)||0,y:((c=a.position)==null?void 0:c.y)||0},dragHandle:".custom-drag-handle",data:t};r.set(t.name,s)}),Array.from(r.values())};function wh(e){return e?["json","4dmodel","webform","mform"].includes(e.toLowerCase()):!1}function uT(){this.__data__=[],this.size=0}var cT=uT;function lT(e,r){return e===r||e!==e&&r!==r}var fT=lT,dT=fT;function pT(e,r){for(var t=e.length;t--;)if(dT(e[t][0],r))return t;return-1}var Ds=pT,hT=Ds,gT=Array.prototype,vT=gT.splice;function mT(e){var r=this.__data__,t=hT(r,e);if(t<0)return!1;var a=r.length-1;return t==a?r.pop():vT.call(r,t,1),--this.size,!0}var yT=mT,bT=Ds;function _T(e){var r=this.__data__,t=bT(r,e);return t<0?void 0:r[t][1]}var ET=_T,ST=Ds;function wT(e){return ST(this.__data__,e)>-1}var TT=wT,xT=Ds;function CT(e,r){var t=this.__data__,a=xT(t,e);return a<0?(++this.size,t.push([e,r])):t[a][1]=r,this}var RT=CT,OT=cT,AT=yT,PT=ET,DT=TT,IT=RT;function ra(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var a=e[r];this.set(a[0],a[1])}}ra.prototype.clear=OT;ra.prototype.delete=AT;ra.prototype.get=PT;ra.prototype.has=DT;ra.prototype.set=IT;var Is=ra,FT=Is;function $T(){this.__data__=new FT,this.size=0}var MT=$T;function NT(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}var LT=NT;function jT(e){return this.__data__.get(e)}var kT=jT;function BT(e){return this.__data__.has(e)}var WT=BT,UT=Os,HT=Ha,qT="[object AsyncFunction]",GT="[object Function]",zT="[object GeneratorFunction]",YT="[object Proxy]";function VT(e){if(!HT(e))return!1;var r=UT(e);return r==GT||r==zT||r==qT||r==YT}var KT=VT,JT=wr,XT=JT["__core-js_shared__"],ZT=XT,Su=ZT,ep=function(){var e=/[^.]+$/.exec(Su&&Su.keys&&Su.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function QT(e){return!!ep&&ep in e}var ex=QT,tx=Function.prototype,rx=tx.toString;function nx(e){if(e!=null){try{return rx.call(e)}catch{}try{return e+""}catch{}}return""}var Th=nx,ax=KT,ox=ex,sx=Ha,ix=Th,ux=/[\\^$.*+?()[\]{}|]/g,cx=/^\[object .+?Constructor\]$/,lx=Function.prototype,fx=Object.prototype,dx=lx.toString,px=fx.hasOwnProperty,hx=RegExp("^"+dx.call(px).replace(ux,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function gx(e){if(!sx(e)||ox(e))return!1;var r=ax(e)?hx:cx;return r.test(ix(e))}var vx=gx;function mx(e,r){return e==null?void 0:e[r]}var yx=mx,bx=vx,_x=yx;function Ex(e,r){var t=_x(e,r);return bx(t)?t:void 0}var na=Ex,Sx=na,wx=wr,Tx=Sx(wx,"Map"),Ac=Tx,xx=na,Cx=xx(Object,"create"),Fs=Cx,tp=Fs;function Rx(){this.__data__=tp?tp(null):{},this.size=0}var Ox=Rx;function Ax(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var Px=Ax,Dx=Fs,Ix="__lodash_hash_undefined__",Fx=Object.prototype,$x=Fx.hasOwnProperty;function Mx(e){var r=this.__data__;if(Dx){var t=r[e];return t===Ix?void 0:t}return $x.call(r,e)?r[e]:void 0}var Nx=Mx,Lx=Fs,jx=Object.prototype,kx=jx.hasOwnProperty;function Bx(e){var r=this.__data__;return Lx?r[e]!==void 0:kx.call(r,e)}var Wx=Bx,Ux=Fs,Hx="__lodash_hash_undefined__";function qx(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=Ux&&r===void 0?Hx:r,this}var Gx=qx,zx=Ox,Yx=Px,Vx=Nx,Kx=Wx,Jx=Gx;function aa(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var a=e[r];this.set(a[0],a[1])}}aa.prototype.clear=zx;aa.prototype.delete=Yx;aa.prototype.get=Vx;aa.prototype.has=Kx;aa.prototype.set=Jx;var Xx=aa,rp=Xx,Zx=Is,Qx=Ac;function eC(){this.size=0,this.__data__={hash:new rp,map:new(Qx||Zx),string:new rp}}var tC=eC;function rC(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var nC=rC,aC=nC;function oC(e,r){var t=e.__data__;return aC(r)?t[typeof r=="string"?"string":"hash"]:t.map}var $s=oC,sC=$s;function iC(e){var r=sC(this,e).delete(e);return this.size-=r?1:0,r}var uC=iC,cC=$s;function lC(e){return cC(this,e).get(e)}var fC=lC,dC=$s;function pC(e){return dC(this,e).has(e)}var hC=pC,gC=$s;function vC(e,r){var t=gC(this,e),a=t.size;return t.set(e,r),this.size+=t.size==a?0:1,this}var mC=vC,yC=tC,bC=uC,_C=fC,EC=hC,SC=mC;function oa(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var a=e[r];this.set(a[0],a[1])}}oa.prototype.clear=yC;oa.prototype.delete=bC;oa.prototype.get=_C;oa.prototype.has=EC;oa.prototype.set=SC;var xh=oa,wC=Is,TC=Ac,xC=xh,CC=200;function RC(e,r){var t=this.__data__;if(t instanceof wC){var a=t.__data__;if(!TC||a.length<CC-1)return a.push([e,r]),this.size=++t.size,this;t=this.__data__=new xC(a)}return t.set(e,r),this.size=t.size,this}var OC=RC,AC=Is,PC=MT,DC=LT,IC=kT,FC=WT,$C=OC;function qa(e){var r=this.__data__=new AC(e);this.size=r.size}qa.prototype.clear=PC;qa.prototype.delete=DC;qa.prototype.get=IC;qa.prototype.has=FC;qa.prototype.set=$C;var MC="__lodash_hash_undefined__";function NC(e){return this.__data__.set(e,MC),this}var LC=NC;function jC(e){return this.__data__.has(e)}var kC=jC,BC=xh,WC=LC,UC=kC;function Yu(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new BC;++r<t;)this.add(e[r])}Yu.prototype.add=Yu.prototype.push=WC;Yu.prototype.has=UC;var HC=wr;HC.Uint8Array;var np=Cc,ap=np?np.prototype:void 0;ap&&ap.valueOf;var qC=Os,GC=Rc,zC="[object Arguments]";function YC(e){return GC(e)&&qC(e)==zC}var VC=YC,op=VC,KC=Rc,Ch=Object.prototype,JC=Ch.hasOwnProperty,XC=Ch.propertyIsEnumerable;op(function(){return arguments}());var ps={exports:{}};function ZC(){return!1}var QC=ZC;ps.exports;(function(e,r){var t=wr,a=QC,s=r&&!r.nodeType&&r,i=s&&!0&&e&&!e.nodeType&&e,c=i&&i.exports===s,l=c?t.Buffer:void 0,d=l?l.isBuffer:void 0,p=d||a;e.exports=p})(ps,ps.exports);ps.exports;var hs={exports:{}};hs.exports;(function(e,r){var t=dh,a=r&&!r.nodeType&&r,s=a&&!0&&e&&!e.nodeType&&e,i=s&&s.exports===a,c=i&&t.process,l=function(){try{var d=s&&s.require&&s.require("util").types;return d||c&&c.binding&&c.binding("util")}catch{}}();e.exports=l})(hs,hs.exports);var eR=hs.exports,sp=eR;sp&&sp.isTypedArray;var tR=na,rR=wr,nR=tR(rR,"DataView"),aR=nR,oR=na,sR=wr,iR=oR(sR,"Promise"),uR=iR,cR=na,lR=wr,fR=cR(lR,"Set"),dR=fR,pR=na,hR=wr,gR=pR(hR,"WeakMap"),vR=gR,Vu=aR,Ku=Ac,Ju=uR,Xu=dR,Zu=vR,Rh=Os,sa=Th,ip="[object Map]",mR="[object Object]",up="[object Promise]",cp="[object Set]",lp="[object WeakMap]",fp="[object DataView]",yR=sa(Vu),bR=sa(Ku),_R=sa(Ju),ER=sa(Xu),SR=sa(Zu),zn=Rh;(Vu&&zn(new Vu(new ArrayBuffer(1)))!=fp||Ku&&zn(new Ku)!=ip||Ju&&zn(Ju.resolve())!=up||Xu&&zn(new Xu)!=cp||Zu&&zn(new Zu)!=lp)&&(zn=function(e){var r=Rh(e),t=r==mR?e.constructor:void 0,a=t?sa(t):"";if(a)switch(a){case yR:return fp;case bR:return ip;case _R:return up;case ER:return cp;case SR:return lp}return r});const wR="ROOT";sS(),oS();var dp;(function(e){e[e.HandlerDisabled=0]="HandlerDisabled",e[e.HandlerEnabled=1]="HandlerEnabled"})(dp||(dp={}));var gs={exports:{}};/**
|
|
8
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),P.warnIfExceeded()),j}}}}function yu(e){return typeof e=="boolean"}function q1(){return function(r){return z1(r)}}function z1(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 L1;if(t&&(yu(t)?l.push(Hd):l.push(Hd.withExtraArgument(t.extraArgument))),process.env.NODE_ENV!=="production"){if(s){var d={};yu(s)||(d=s),l.unshift(H1(d))}if(c){var p={};yu(c)||(p=c),l.push(G1(p))}}return l}var bu=process.env.NODE_ENV==="production";function Y1(e){var r=q1(),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,_=m===void 0?void 0:m,E;if(typeof s=="function")E=s;else if(ah(s))E=th(s);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=c;if(typeof x=="function"&&(x=x(r),!bu&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!bu&&x.some(function(M){return typeof M!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=_1.apply(void 0,x),I=cs;d&&(I=N1(on({trace:!bu},typeof d=="object"&&d)));var P=[C];Array.isArray(_)?P=fs([C],_):typeof _=="function"&&(P=_(P));var j=I.apply(void 0,P);return eh(E,g,j)}function Pt(e,r){function t(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];if(r){var i=r.apply(void 0,a);if(!i)throw new Error("prepareAction did not return an object");return on(on({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:a[0]}}return t.toString=function(){return""+e},t.type=e,t.match=function(a){return a.type===e},t}function ch(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 V1(e){return typeof e=="function"}function K1(e,r,t,a){t===void 0&&(t=[]);var s=typeof r=="function"?ch(r):[r,t,a],i=s[0],c=s[1],l=s[2],d;if(V1(e))d=function(){return Qo(e(),function(){})};else{var p=Qo(e,function(){});d=function(){return p}}function g(m,_){m===void 0&&(m=d());var E=fs([i[_.type]],c.filter(function(x){var C=x.matcher;return C(_)}).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,_);return typeof P>"u"?x:P}else{if(vr(x))return Qo(x,function(j){return C(j,_)});var P=C(x,_);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 J1(e,r){return e+"/"+r}function or(e){var r=e.name;if(!r)throw new Error("`name` is a required option for createSlice");var t=typeof e.initialState=="function"?e.initialState:Qo(e.initialState,function(){}),a=e.reducers||{},s=Object.keys(a),i={},c={},l={};s.forEach(function(g){var m=a[g],_=J1(r,g),E,x;"reducer"in m?(E=m.reducer,x=m.prepare):E=m,i[g]=E,c[_]=E,l[g]=x?Pt(_,x):Pt(_)});function d(){var g=typeof e.extraReducers=="function"?ch(e.extraReducers):[e.extraReducers],m=g[0],_=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({},_),c);return K1(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 X1="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Tc=function(e){e===void 0&&(e=21);for(var r="",t=e;t--;)r+=X1[Math.random()*64|0];return r},Z1=["name","message","stack","code"],_u=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}(),Q1=function(e){if(typeof e=="object"&&e!==null){for(var r={},t=0,a=Z1;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,_){return{payload:p,meta:mu(on({},_||{}),{arg:m,requestId:g,requestStatus:"fulfilled"})}}),s=Pt(e+"/pending",function(p,g,m){return{payload:void 0,meta:mu(on({},m||{}),{arg:g,requestId:p,requestStatus:"pending"})}}),i=Pt(e+"/rejected",function(p,g,m,_,E){return{payload:_,error:(t&&t.serializeError||Q1)(p||"Rejected"),meta:mu(on({},E||{}),{arg:m,requestId:g,rejectedWithValue:!!_,requestStatus:"rejected",aborted:(p==null?void 0:p.name)==="AbortError",condition:(p==null?void 0:p.name)==="ConditionError"})}}),c=!1,l=typeof AbortController<"u"?AbortController:function(){function p(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){}}}return p.prototype.abort=function(){process.env.NODE_ENV!=="production"&&(c||(c=!0,console.info("This platform does not implement AbortController. \nIf you want to use the AbortController to react to `abort` events, please consider importing a polyfill like 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'.")))},p}();function d(p){return function(g,m,_){var E=t!=null&&t.idGenerator?t.idGenerator(p):Tc(),x=new l,C,I=new Promise(function(k,O){return x.signal.addEventListener("abort",function(){return O({name:"AbortError",message:C||"Aborted"})})}),P=!1;function j(k){P&&(C=k,x.abort())}var M=function(){return M1(this,null,function(){var k,O,Y,H,z,te;return A1(this,function(We){switch(We.label){case 0:return We.trys.push([0,4,,5]),H=(k=t==null?void 0:t.condition)==null?void 0:k.call(t,p,{getState:m,extra:_}),tw(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:_}))),[4,Promise.race([I,Promise.resolve(r(p,{dispatch:g,getState:m,extra:_,requestId:E,signal:x.signal,rejectWithValue:function(Te,it){return new _u(Te,it)},fulfillWithValue:function(Te,it){return new Vd(Te,it)}})).then(function(Te){if(Te instanceof _u)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 _u?i(null,E,p,z.payload,z.meta):i(z,E,p),[3,5];case 5:return te=t&&!t.dispatchConditionRejection&&i.match(Y)&&Y.meta.condition,te||g(Y),[2,Y]}})})}();return Object.assign(M,{abort:j,requestId:E,arg:p,unwrap:function(){return M.then(ew)}})}}return Object.assign(d,{pending:s,rejected:i,fulfilled:a,typePrefix:e})}function ew(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function tw(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var rw=function(e){return e&&typeof e.match=="function"},nw=function(e,r){return rw(e)?e.match(r):e(r)};function hr(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return function(t){return e.some(function(a){return nw(a,t)})}}function xc(e,r){if(!e||!e.meta)return!1;var t=typeof e.meta.requestId=="string",a=r.indexOf(e.meta.requestStatus)>-1;return t&&a}function Cc(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function lh(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return xc(t,["pending"])}:Cc(e)?function(t){var a=e.map(function(i){return i.pending}),s=hr.apply(void 0,a);return s(t)}:lh()(e[0])}function fh(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return xc(t,["rejected"])}:Cc(e)?function(t){var a=e.map(function(i){return i.rejected}),s=hr.apply(void 0,a);return s(t)}:fh()(e[0])}function dh(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return xc(t,["fulfilled"])}:Cc(e)?function(t){var a=e.map(function(i){return i.fulfilled}),s=hr.apply(void 0,a);return s(t)}:dh()(e[0])}n1();var Nr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function aw(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 ow(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var Ha=ow,sw=typeof Nr=="object"&&Nr&&Nr.Object===Object&&Nr,ph=sw,iw=ph,uw=typeof self=="object"&&self&&self.Object===Object&&self,cw=iw||uw||Function("return this")(),wr=cw,lw=wr,fw=function(){return lw.Date.now()},dw=fw,pw=/\s/;function hw(e){for(var r=e.length;r--&&pw.test(e.charAt(r)););return r}var gw=hw,vw=gw,mw=/^\s+/;function yw(e){return e&&e.slice(0,vw(e)+1).replace(mw,"")}var bw=yw,_w=wr,Ew=_w.Symbol,Rc=Ew,Kd=Rc,hh=Object.prototype,Sw=hh.hasOwnProperty,ww=hh.toString,Ra=Kd?Kd.toStringTag:void 0;function Tw(e){var r=Sw.call(e,Ra),t=e[Ra];try{e[Ra]=void 0;var a=!0}catch{}var s=ww.call(e);return a&&(r?e[Ra]=t:delete e[Ra]),s}var xw=Tw,Cw=Object.prototype,Rw=Cw.toString;function Ow(e){return Rw.call(e)}var Aw=Ow,Jd=Rc,Pw=xw,Dw=Aw,Iw="[object Null]",Fw="[object Undefined]",Xd=Jd?Jd.toStringTag:void 0;function $w(e){return e==null?e===void 0?Fw:Iw:Xd&&Xd in Object(e)?Pw(e):Dw(e)}var Os=$w;function Mw(e){return e!=null&&typeof e=="object"}var Oc=Mw,Nw=Os,Lw=Oc,kw="[object Symbol]";function jw(e){return typeof e=="symbol"||Lw(e)&&Nw(e)==kw}var Bw=jw,Ww=bw,Zd=Ha,Uw=Bw,Qd=0/0,Hw=/^[-+]0x[0-9a-f]+$/i,Gw=/^0b[01]+$/i,qw=/^0o[0-7]+$/i,zw=parseInt;function Yw(e){if(typeof e=="number")return e;if(Uw(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=Ww(e);var t=Gw.test(e);return t||qw.test(e)?zw(e.slice(2),t?2:8):Hw.test(e)?Qd:+e}var Vw=Yw,Kw=Ha,Eu=dw,ep=Vw,Jw="Expected a function",Xw=Math.max,Zw=Math.min;function Qw(e,r,t){var a,s,i,c,l,d,p=0,g=!1,m=!1,_=!0;if(typeof e!="function")throw new TypeError(Jw);r=ep(r)||0,Kw(t)&&(g=!!t.leading,m="maxWait"in t,i=m?Xw(ep(t.maxWait)||0,r):i,_="trailing"in t?!!t.trailing:_);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?Zw(te,i-z):te}function I(Y){var H=Y-d,z=Y-p;return d===void 0||H>=r||H<0||m&&z>=i}function P(){var Y=Eu();if(I(Y))return j(Y);l=setTimeout(P,C(Y))}function j(Y){return l=void 0,_&&a?E(Y):(a=s=void 0,c)}function M(){l!==void 0&&clearTimeout(l),p=0,a=d=s=l=void 0}function k(){return l===void 0?c:j(Eu())}function O(){var Y=Eu(),H=I(Y);if(a=arguments,s=this,d=Y,H){if(l===void 0)return x(d);if(m)return clearTimeout(l),l=setTimeout(P,r),E(d)}return l===void 0&&(l=setTimeout(P,r)),c}return O.cancel=M,O.flush=k,O}var eT=Qw,tT=eT,rT=Ha,nT="Expected a function";function aT(e,r,t){var a=!0,s=!0;if(typeof e!="function")throw new TypeError(nT);return rT(t)&&(a="leading"in t?!!t.leading:a,s="trailing"in t?!!t.trailing:s),tT(e,r,{leading:a,maxWait:r,trailing:s})}var oT=aT;const sT=Rs(oT);var gh=(e=>(e[e.First=0]="First",e[e.Last=-1]="Last",e))(gh||{}),Mr=(e=>(e.ATTACHED="attached",e.DETACHED="detached",e.ERROR="error",e))(Mr||{}),ds=(e=>(e.SOCKET_ERROR="socket-error",e.SOCKET_CLOSURE="socket-closure",e))(ds||{}),vh=(e=>(e.NOT_STARTED="remote debugger not started",e.ALREADY_IN_USE="already in use",e.TIMEOUT="timeout",e))(vh||{});const As=2e3,Ac={tabs:[],activeTab:"",recent:[],roles:{roles:{},privileges:{},flags:{touched:!1},selectedTab:"roles"},sharedCSS:{state:"loading",styles:[]},debugger:{meta:{state:Mr.DETACHED},list:[],sessions:[],expressions:[]},webforms:{templates:{selectedGroup:"",data:[]},components:[],inspector:{css:{active:!1},datasource:{active:!1}},datasources:{theme:"grey"},flags:{"sidebar.section.resizable":!0}}},mh="4DWS_PREFS",yh=e=>`APP_STATE_${e}`,bh=()=>{var e,r;return((r=(e=window==null?void 0:window.$$datastores)==null?void 0:e.ds)==null?void 0:r.getBaseID())||""};function _h(e){try{const r=bh(),t=JSON.stringify(e);localStorage.setItem(yh(r),t)}catch(r){console.error(r)}}function Eh(e){try{const r=JSON.stringify(e);localStorage.setItem(mh,r)}catch(r){console.error(r)}}function Sh(){try{const e=localStorage.getItem(mh);if(e)return JSON.parse(e)}catch(e){console.error(e)}}function ea(){const e=bh(),r=localStorage.getItem(yh(e));if(r){const t=JSON.parse(r);return t.tabs=t.tabs.map(a=>({...a,flags:{...a.flags,enabled:!0}})),t}return Ac}function Ps(e){const{name:r,type:t,path:a}=e,s=a.split(".").at(-1);switch(t){case b.FileFolderType.WEBFORM:return`${r}.WebForm`;case b.FileFolderType.METHOD:case b.FileFolderType.CLASS:return s?`${r}.${s}`:r;case b.FileFolderType.ROLES:return r;default:return`${r}.${t}`}}const wh=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 Th(e){return e?["json","4dmodel","webform","mform"].includes(e.toLowerCase()):!1}function iT(){this.__data__=[],this.size=0}var uT=iT;function cT(e,r){return e===r||e!==e&&r!==r}var lT=cT,fT=lT;function dT(e,r){for(var t=e.length;t--;)if(fT(e[t][0],r))return t;return-1}var Ds=dT,pT=Ds,hT=Array.prototype,gT=hT.splice;function vT(e){var r=this.__data__,t=pT(r,e);if(t<0)return!1;var a=r.length-1;return t==a?r.pop():gT.call(r,t,1),--this.size,!0}var mT=vT,yT=Ds;function bT(e){var r=this.__data__,t=yT(r,e);return t<0?void 0:r[t][1]}var _T=bT,ET=Ds;function ST(e){return ET(this.__data__,e)>-1}var wT=ST,TT=Ds;function xT(e,r){var t=this.__data__,a=TT(t,e);return a<0?(++this.size,t.push([e,r])):t[a][1]=r,this}var CT=xT,RT=uT,OT=mT,AT=_T,PT=wT,DT=CT;function ta(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var a=e[r];this.set(a[0],a[1])}}ta.prototype.clear=RT;ta.prototype.delete=OT;ta.prototype.get=AT;ta.prototype.has=PT;ta.prototype.set=DT;var Is=ta,IT=Is;function FT(){this.__data__=new IT,this.size=0}var $T=FT;function MT(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}var NT=MT;function LT(e){return this.__data__.get(e)}var kT=LT;function jT(e){return this.__data__.has(e)}var BT=jT,WT=Os,UT=Ha,HT="[object AsyncFunction]",GT="[object Function]",qT="[object GeneratorFunction]",zT="[object Proxy]";function YT(e){if(!UT(e))return!1;var r=WT(e);return r==GT||r==qT||r==HT||r==zT}var VT=YT,KT=wr,JT=KT["__core-js_shared__"],XT=JT,Su=XT,tp=function(){var e=/[^.]+$/.exec(Su&&Su.keys&&Su.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ZT(e){return!!tp&&tp in e}var QT=ZT,ex=Function.prototype,tx=ex.toString;function rx(e){if(e!=null){try{return tx.call(e)}catch{}try{return e+""}catch{}}return""}var xh=rx,nx=VT,ax=QT,ox=Ha,sx=xh,ix=/[\\^$.*+?()[\]{}|]/g,ux=/^\[object .+?Constructor\]$/,cx=Function.prototype,lx=Object.prototype,fx=cx.toString,dx=lx.hasOwnProperty,px=RegExp("^"+fx.call(dx).replace(ix,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function hx(e){if(!ox(e)||ax(e))return!1;var r=nx(e)?px:ux;return r.test(sx(e))}var gx=hx;function vx(e,r){return e==null?void 0:e[r]}var mx=vx,yx=gx,bx=mx;function _x(e,r){var t=bx(e,r);return yx(t)?t:void 0}var ra=_x,Ex=ra,Sx=wr,wx=Ex(Sx,"Map"),Pc=wx,Tx=ra,xx=Tx(Object,"create"),Fs=xx,rp=Fs;function Cx(){this.__data__=rp?rp(null):{},this.size=0}var Rx=Cx;function Ox(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var Ax=Ox,Px=Fs,Dx="__lodash_hash_undefined__",Ix=Object.prototype,Fx=Ix.hasOwnProperty;function $x(e){var r=this.__data__;if(Px){var t=r[e];return t===Dx?void 0:t}return Fx.call(r,e)?r[e]:void 0}var Mx=$x,Nx=Fs,Lx=Object.prototype,kx=Lx.hasOwnProperty;function jx(e){var r=this.__data__;return Nx?r[e]!==void 0:kx.call(r,e)}var Bx=jx,Wx=Fs,Ux="__lodash_hash_undefined__";function Hx(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=Wx&&r===void 0?Ux:r,this}var Gx=Hx,qx=Rx,zx=Ax,Yx=Mx,Vx=Bx,Kx=Gx;function na(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])}}na.prototype.clear=qx;na.prototype.delete=zx;na.prototype.get=Yx;na.prototype.has=Vx;na.prototype.set=Kx;var Jx=na,np=Jx,Xx=Is,Zx=Pc;function Qx(){this.size=0,this.__data__={hash:new np,map:new(Zx||Xx),string:new np}}var eC=Qx;function tC(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var rC=tC,nC=rC;function aC(e,r){var t=e.__data__;return nC(r)?t[typeof r=="string"?"string":"hash"]:t.map}var $s=aC,oC=$s;function sC(e){var r=oC(this,e).delete(e);return this.size-=r?1:0,r}var iC=sC,uC=$s;function cC(e){return uC(this,e).get(e)}var lC=cC,fC=$s;function dC(e){return fC(this,e).has(e)}var pC=dC,hC=$s;function gC(e,r){var t=hC(this,e),a=t.size;return t.set(e,r),this.size+=t.size==a?0:1,this}var vC=gC,mC=eC,yC=iC,bC=lC,_C=pC,EC=vC;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=mC;aa.prototype.delete=yC;aa.prototype.get=bC;aa.prototype.has=_C;aa.prototype.set=EC;var Ch=aa,SC=Is,wC=Pc,TC=Ch,xC=200;function CC(e,r){var t=this.__data__;if(t instanceof SC){var a=t.__data__;if(!wC||a.length<xC-1)return a.push([e,r]),this.size=++t.size,this;t=this.__data__=new TC(a)}return t.set(e,r),this.size=t.size,this}var RC=CC,OC=Is,AC=$T,PC=NT,DC=kT,IC=BT,FC=RC;function Ga(e){var r=this.__data__=new OC(e);this.size=r.size}Ga.prototype.clear=AC;Ga.prototype.delete=PC;Ga.prototype.get=DC;Ga.prototype.has=IC;Ga.prototype.set=FC;var $C="__lodash_hash_undefined__";function MC(e){return this.__data__.set(e,$C),this}var NC=MC;function LC(e){return this.__data__.has(e)}var kC=LC,jC=Ch,BC=NC,WC=kC;function Yu(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new jC;++r<t;)this.add(e[r])}Yu.prototype.add=Yu.prototype.push=BC;Yu.prototype.has=WC;var UC=wr;UC.Uint8Array;var ap=Rc,op=ap?ap.prototype:void 0;op&&op.valueOf;var HC=Os,GC=Oc,qC="[object Arguments]";function zC(e){return GC(e)&&HC(e)==qC}var YC=zC,sp=YC,VC=Oc,Rh=Object.prototype,KC=Rh.hasOwnProperty,JC=Rh.propertyIsEnumerable;sp(function(){return arguments}());var ps={exports:{}};function XC(){return!1}var ZC=XC;ps.exports;(function(e,r){var t=wr,a=ZC,s=r&&!r.nodeType&&r,i=s&&!0&&e&&!e.nodeType&&e,c=i&&i.exports===s,l=c?t.Buffer:void 0,d=l?l.isBuffer:void 0,p=d||a;e.exports=p})(ps,ps.exports);ps.exports;var hs={exports:{}};hs.exports;(function(e,r){var t=ph,a=r&&!r.nodeType&&r,s=a&&!0&&e&&!e.nodeType&&e,i=s&&s.exports===a,c=i&&t.process,l=function(){try{var d=s&&s.require&&s.require("util").types;return d||c&&c.binding&&c.binding("util")}catch{}}();e.exports=l})(hs,hs.exports);var QC=hs.exports,ip=QC;ip&&ip.isTypedArray;var eR=ra,tR=wr,rR=eR(tR,"DataView"),nR=rR,aR=ra,oR=wr,sR=aR(oR,"Promise"),iR=sR,uR=ra,cR=wr,lR=uR(cR,"Set"),fR=lR,dR=ra,pR=wr,hR=dR(pR,"WeakMap"),gR=hR,Vu=nR,Ku=Pc,Ju=iR,Xu=fR,Zu=gR,Oh=Os,oa=xh,up="[object Map]",vR="[object Object]",cp="[object Promise]",lp="[object Set]",fp="[object WeakMap]",dp="[object DataView]",mR=oa(Vu),yR=oa(Ku),bR=oa(Ju),_R=oa(Xu),ER=oa(Zu),qn=Oh;(Vu&&qn(new Vu(new ArrayBuffer(1)))!=dp||Ku&&qn(new Ku)!=up||Ju&&qn(Ju.resolve())!=cp||Xu&&qn(new Xu)!=lp||Zu&&qn(new Zu)!=fp)&&(qn=function(e){var r=Oh(e),t=r==vR?e.constructor:void 0,a=t?oa(t):"";if(a)switch(a){case mR:return dp;case yR:return up;case bR:return cp;case _R:return lp;case ER:return fp}return r});const SR="ROOT";o1(),a1();var pp;(function(e){e[e.HandlerDisabled=0]="HandlerDisabled",e[e.HandlerEnabled=1]="HandlerEnabled"})(pp||(pp={}));var gs={exports:{}};/**
|
|
9
9
|
* @license
|
|
10
10
|
* Lodash <https://lodash.com/>
|
|
11
11
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
12
12
|
* Released under MIT license <https://lodash.com/license>
|
|
13
13
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
14
14
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
15
|
-
*/gs.exports;(function(e,r){(function(){var t,a="4.17.21",s=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",l="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",p=500,g="__lodash_placeholder__",m=1,b=2,E=4,x=1,C=2,I=1,P=2,k=4,M=8,j=16,O=32,Y=64,H=128,z=256,te=512,We=30,Te="...",it=800,X=16,Pe=1,ut=2,et=3,He=1/0,nt=9007199254740991,Yt=17976931348623157e292,W=0/0,G=4294967295,de=G-1,le=G>>>1,se=[["ary",H],["bind",I],["bindKey",P],["curry",M],["curryRight",j],["flip",te],["partial",O],["partialRight",Y],["rearg",z]],fe="[object Arguments]",ne="[object Array]",ce="[object AsyncFunction]",ue="[object Boolean]",he="[object Date]",ge="[object DOMException]",K="[object Error]",F="[object Function]",Ye="[object GeneratorFunction]",qe="[object Map]",yt="[object Number]",Va="[object Null]",Vt="[object Object]",ln="[object Promise]",Vs="[object Proxy]",ir="[object RegExp]",Ct="[object Set]",fn="[object String]",dn="[object Symbol]",Ka="[object Undefined]",xr="[object WeakMap]",Ks="[object WeakSet]",pn="[object ArrayBuffer]",Gr="[object DataView]",ua="[object Float32Array]",ca="[object Float64Array]",la="[object Int8Array]",fa="[object Int16Array]",hn="[object Int32Array]",Dn="[object Uint8Array]",mr="[object Uint8ClampedArray]",gn="[object Uint16Array]",vn="[object Uint32Array]",Ja=/\b__p \+= '';/g,Js=/\b(__p \+=) '' \+/g,Xa=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Za=/&(?:amp|lt|gt|quot|#39);/g,da=/[&<>"']/g,Qa=RegExp(Za.source),Xs=RegExp(da.source),Zs=/<%-([\s\S]+?)%>/g,eo=/<%([\s\S]+?)%>/g,to=/<%=([\s\S]+?)%>/g,Qs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ei=/^\w*$/,ti=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w=/[\\^$.*+?()[\]{}|]/g,U=RegExp(w.source),J=/^\s+/,ie=/\s/,Ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Le=/\{\n\/\* \[wrapped with (.+)\] \*/,xe=/,? & /,Ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ht=/[()=,{}\[\]\/\s]/,Ze=/\\(\\)?/g,tt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Kt=/\w*$/,zr=/^[-+]0x[0-9a-f]+$/i,ro=/^0b[01]+$/i,ur=/^\[object .+?Constructor\]$/,Hv=/^0o[0-7]+$/i,qv=/^(?:0|[1-9]\d*)$/,Gv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,no=/($^)/,zv=/['\n\r\u2028\u2029\\]/g,ao="\\ud800-\\udfff",Yv="\\u0300-\\u036f",Vv="\\ufe20-\\ufe2f",Kv="\\u20d0-\\u20ff",sl=Yv+Vv+Kv,il="\\u2700-\\u27bf",ul="a-z\\xdf-\\xf6\\xf8-\\xff",Jv="\\xac\\xb1\\xd7\\xf7",Xv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Zv="\\u2000-\\u206f",Qv=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",cl="A-Z\\xc0-\\xd6\\xd8-\\xde",ll="\\ufe0e\\ufe0f",fl=Jv+Xv+Zv+Qv,ri="['’]",em="["+ao+"]",dl="["+fl+"]",oo="["+sl+"]",pl="\\d+",tm="["+il+"]",hl="["+ul+"]",gl="[^"+ao+fl+pl+il+ul+cl+"]",ni="\\ud83c[\\udffb-\\udfff]",rm="(?:"+oo+"|"+ni+")",vl="[^"+ao+"]",ai="(?:\\ud83c[\\udde6-\\uddff]){2}",oi="[\\ud800-\\udbff][\\udc00-\\udfff]",In="["+cl+"]",ml="\\u200d",yl="(?:"+hl+"|"+gl+")",nm="(?:"+In+"|"+gl+")",bl="(?:"+ri+"(?:d|ll|m|re|s|t|ve))?",_l="(?:"+ri+"(?:D|LL|M|RE|S|T|VE))?",El=rm+"?",Sl="["+ll+"]?",am="(?:"+ml+"(?:"+[vl,ai,oi].join("|")+")"+Sl+El+")*",om="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",sm="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",wl=Sl+El+am,im="(?:"+[tm,ai,oi].join("|")+")"+wl,um="(?:"+[vl+oo+"?",oo,ai,oi,em].join("|")+")",cm=RegExp(ri,"g"),lm=RegExp(oo,"g"),si=RegExp(ni+"(?="+ni+")|"+um+wl,"g"),fm=RegExp([In+"?"+hl+"+"+bl+"(?="+[dl,In,"$"].join("|")+")",nm+"+"+_l+"(?="+[dl,In+yl,"$"].join("|")+")",In+"?"+yl+"+"+bl,In+"+"+_l,sm,om,pl,im].join("|"),"g"),dm=RegExp("["+ml+ao+sl+ll+"]"),pm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,hm=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],gm=-1,Ve={};Ve[ua]=Ve[ca]=Ve[la]=Ve[fa]=Ve[hn]=Ve[Dn]=Ve[mr]=Ve[gn]=Ve[vn]=!0,Ve[fe]=Ve[ne]=Ve[pn]=Ve[ue]=Ve[Gr]=Ve[he]=Ve[K]=Ve[F]=Ve[qe]=Ve[yt]=Ve[Vt]=Ve[ir]=Ve[Ct]=Ve[fn]=Ve[xr]=!1;var Ge={};Ge[fe]=Ge[ne]=Ge[pn]=Ge[Gr]=Ge[ue]=Ge[he]=Ge[ua]=Ge[ca]=Ge[la]=Ge[fa]=Ge[hn]=Ge[qe]=Ge[yt]=Ge[Vt]=Ge[ir]=Ge[Ct]=Ge[fn]=Ge[dn]=Ge[Dn]=Ge[mr]=Ge[gn]=Ge[vn]=!0,Ge[K]=Ge[F]=Ge[xr]=!1;var vm={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},mm={"&":"&","<":"<",">":">",'"':""","'":"'"},ym={"&":"&","<":"<",">":">",""":'"',"'":"'"},bm={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_m=parseFloat,Em=parseInt,Tl=typeof Nr=="object"&&Nr&&Nr.Object===Object&&Nr,Sm=typeof self=="object"&&self&&self.Object===Object&&self,gt=Tl||Sm||Function("return this")(),ii=r&&!r.nodeType&&r,mn=ii&&!0&&e&&!e.nodeType&&e,xl=mn&&mn.exports===ii,ui=xl&&Tl.process,Jt=function(){try{var R=mn&&mn.require&&mn.require("util").types;return R||ui&&ui.binding&&ui.binding("util")}catch{}}(),Cl=Jt&&Jt.isArrayBuffer,Rl=Jt&&Jt.isDate,Ol=Jt&&Jt.isMap,Al=Jt&&Jt.isRegExp,Pl=Jt&&Jt.isSet,Dl=Jt&&Jt.isTypedArray;function kt(R,$,D){switch(D.length){case 0:return R.call($);case 1:return R.call($,D[0]);case 2:return R.call($,D[0],D[1]);case 3:return R.call($,D[0],D[1],D[2])}return R.apply($,D)}function wm(R,$,D,Z){for(var pe=-1,Oe=R==null?0:R.length;++pe<Oe;){var ct=R[pe];$(Z,ct,D(ct),R)}return Z}function Xt(R,$){for(var D=-1,Z=R==null?0:R.length;++D<Z&&$(R[D],D,R)!==!1;);return R}function Tm(R,$){for(var D=R==null?0:R.length;D--&&$(R[D],D,R)!==!1;);return R}function Il(R,$){for(var D=-1,Z=R==null?0:R.length;++D<Z;)if(!$(R[D],D,R))return!1;return!0}function Yr(R,$){for(var D=-1,Z=R==null?0:R.length,pe=0,Oe=[];++D<Z;){var ct=R[D];$(ct,D,R)&&(Oe[pe++]=ct)}return Oe}function so(R,$){var D=R==null?0:R.length;return!!D&&Fn(R,$,0)>-1}function ci(R,$,D){for(var Z=-1,pe=R==null?0:R.length;++Z<pe;)if(D($,R[Z]))return!0;return!1}function Je(R,$){for(var D=-1,Z=R==null?0:R.length,pe=Array(Z);++D<Z;)pe[D]=$(R[D],D,R);return pe}function Vr(R,$){for(var D=-1,Z=$.length,pe=R.length;++D<Z;)R[pe+D]=$[D];return R}function li(R,$,D,Z){var pe=-1,Oe=R==null?0:R.length;for(Z&&Oe&&(D=R[++pe]);++pe<Oe;)D=$(D,R[pe],pe,R);return D}function xm(R,$,D,Z){var pe=R==null?0:R.length;for(Z&&pe&&(D=R[--pe]);pe--;)D=$(D,R[pe],pe,R);return D}function fi(R,$){for(var D=-1,Z=R==null?0:R.length;++D<Z;)if($(R[D],D,R))return!0;return!1}var Cm=di("length");function Rm(R){return R.split("")}function Om(R){return R.match(Ee)||[]}function Fl(R,$,D){var Z;return D(R,function(pe,Oe,ct){if($(pe,Oe,ct))return Z=Oe,!1}),Z}function io(R,$,D,Z){for(var pe=R.length,Oe=D+(Z?1:-1);Z?Oe--:++Oe<pe;)if($(R[Oe],Oe,R))return Oe;return-1}function Fn(R,$,D){return $===$?Bm(R,$,D):io(R,$l,D)}function Am(R,$,D,Z){for(var pe=D-1,Oe=R.length;++pe<Oe;)if(Z(R[pe],$))return pe;return-1}function $l(R){return R!==R}function Ml(R,$){var D=R==null?0:R.length;return D?hi(R,$)/D:W}function di(R){return function($){return $==null?t:$[R]}}function pi(R){return function($){return R==null?t:R[$]}}function Nl(R,$,D,Z,pe){return pe(R,function(Oe,ct,Ue){D=Z?(Z=!1,Oe):$(D,Oe,ct,Ue)}),D}function Pm(R,$){var D=R.length;for(R.sort($);D--;)R[D]=R[D].value;return R}function hi(R,$){for(var D,Z=-1,pe=R.length;++Z<pe;){var Oe=$(R[Z]);Oe!==t&&(D=D===t?Oe:D+Oe)}return D}function gi(R,$){for(var D=-1,Z=Array(R);++D<R;)Z[D]=$(D);return Z}function Dm(R,$){return Je($,function(D){return[D,R[D]]})}function Ll(R){return R&&R.slice(0,Wl(R)+1).replace(J,"")}function Bt(R){return function($){return R($)}}function vi(R,$){return Je($,function(D){return R[D]})}function pa(R,$){return R.has($)}function jl(R,$){for(var D=-1,Z=R.length;++D<Z&&Fn($,R[D],0)>-1;);return D}function kl(R,$){for(var D=R.length;D--&&Fn($,R[D],0)>-1;);return D}function Im(R,$){for(var D=R.length,Z=0;D--;)R[D]===$&&++Z;return Z}var Fm=pi(vm),$m=pi(mm);function Mm(R){return"\\"+bm[R]}function Nm(R,$){return R==null?t:R[$]}function $n(R){return dm.test(R)}function Lm(R){return pm.test(R)}function jm(R){for(var $,D=[];!($=R.next()).done;)D.push($.value);return D}function mi(R){var $=-1,D=Array(R.size);return R.forEach(function(Z,pe){D[++$]=[pe,Z]}),D}function Bl(R,$){return function(D){return R($(D))}}function Kr(R,$){for(var D=-1,Z=R.length,pe=0,Oe=[];++D<Z;){var ct=R[D];(ct===$||ct===g)&&(R[D]=g,Oe[pe++]=D)}return Oe}function uo(R){var $=-1,D=Array(R.size);return R.forEach(function(Z){D[++$]=Z}),D}function km(R){var $=-1,D=Array(R.size);return R.forEach(function(Z){D[++$]=[Z,Z]}),D}function Bm(R,$,D){for(var Z=D-1,pe=R.length;++Z<pe;)if(R[Z]===$)return Z;return-1}function Wm(R,$,D){for(var Z=D+1;Z--;)if(R[Z]===$)return Z;return Z}function Mn(R){return $n(R)?Hm(R):Cm(R)}function cr(R){return $n(R)?qm(R):Rm(R)}function Wl(R){for(var $=R.length;$--&&ie.test(R.charAt($)););return $}var Um=pi(ym);function Hm(R){for(var $=si.lastIndex=0;si.test(R);)++$;return $}function qm(R){return R.match(si)||[]}function Gm(R){return R.match(fm)||[]}var zm=function R($){$=$==null?gt:Nn.defaults(gt.Object(),$,Nn.pick(gt,hm));var D=$.Array,Z=$.Date,pe=$.Error,Oe=$.Function,ct=$.Math,Ue=$.Object,yi=$.RegExp,Ym=$.String,Zt=$.TypeError,co=D.prototype,Vm=Oe.prototype,Ln=Ue.prototype,lo=$["__core-js_shared__"],fo=Vm.toString,je=Ln.hasOwnProperty,Km=0,Ul=function(){var n=/[^.]+$/.exec(lo&&lo.keys&&lo.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),po=Ln.toString,Jm=fo.call(Ue),Xm=gt._,Zm=yi("^"+fo.call(je).replace(w,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ho=xl?$.Buffer:t,Jr=$.Symbol,go=$.Uint8Array,Hl=ho?ho.allocUnsafe:t,vo=Bl(Ue.getPrototypeOf,Ue),ql=Ue.create,Gl=Ln.propertyIsEnumerable,mo=co.splice,zl=Jr?Jr.isConcatSpreadable:t,ha=Jr?Jr.iterator:t,yn=Jr?Jr.toStringTag:t,yo=function(){try{var n=wn(Ue,"defineProperty");return n({},"",{}),n}catch{}}(),Qm=$.clearTimeout!==gt.clearTimeout&&$.clearTimeout,ey=Z&&Z.now!==gt.Date.now&&Z.now,ty=$.setTimeout!==gt.setTimeout&&$.setTimeout,bo=ct.ceil,_o=ct.floor,bi=Ue.getOwnPropertySymbols,ry=ho?ho.isBuffer:t,Yl=$.isFinite,ny=co.join,ay=Bl(Ue.keys,Ue),lt=ct.max,bt=ct.min,oy=Z.now,sy=$.parseInt,Vl=ct.random,iy=co.reverse,_i=wn($,"DataView"),ga=wn($,"Map"),Ei=wn($,"Promise"),jn=wn($,"Set"),va=wn($,"WeakMap"),ma=wn(Ue,"create"),Eo=va&&new va,kn={},uy=Tn(_i),cy=Tn(ga),ly=Tn(Ei),fy=Tn(jn),dy=Tn(va),So=Jr?Jr.prototype:t,ya=So?So.valueOf:t,Kl=So?So.toString:t;function v(n){if(rt(n)&&!ve(n)&&!(n instanceof we)){if(n instanceof Qt)return n;if(je.call(n,"__wrapped__"))return Xf(n)}return new Qt(n)}var Bn=function(){function n(){}return function(o){if(!Qe(o))return{};if(ql)return ql(o);n.prototype=o;var u=new n;return n.prototype=t,u}}();function wo(){}function Qt(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=t}v.templateSettings={escape:Zs,evaluate:eo,interpolate:to,variable:"",imports:{_:v}},v.prototype=wo.prototype,v.prototype.constructor=v,Qt.prototype=Bn(wo.prototype),Qt.prototype.constructor=Qt;function we(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=G,this.__views__=[]}function py(){var n=new we(this.__wrapped__);return n.__actions__=Ft(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Ft(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Ft(this.__views__),n}function hy(){if(this.__filtered__){var n=new we(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function gy(){var n=this.__wrapped__.value(),o=this.__dir__,u=ve(n),f=o<0,h=u?n.length:0,y=R0(0,h,this.__views__),S=y.start,T=y.end,A=T-S,N=f?T:S-1,L=this.__iteratees__,B=L.length,V=0,ee=bt(A,this.__takeCount__);if(!u||!f&&h==A&&ee==A)return _f(n,this.__actions__);var ae=[];e:for(;A--&&V<ee;){N+=o;for(var be=-1,oe=n[N];++be<B;){var Se=L[be],Ce=Se.iteratee,Ht=Se.type,At=Ce(oe);if(Ht==ut)oe=At;else if(!At){if(Ht==Pe)continue e;break e}}ae[V++]=oe}return ae}we.prototype=Bn(wo.prototype),we.prototype.constructor=we;function bn(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var f=n[o];this.set(f[0],f[1])}}function vy(){this.__data__=ma?ma(null):{},this.size=0}function my(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function yy(n){var o=this.__data__;if(ma){var u=o[n];return u===d?t:u}return je.call(o,n)?o[n]:t}function by(n){var o=this.__data__;return ma?o[n]!==t:je.call(o,n)}function _y(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=ma&&o===t?d:o,this}bn.prototype.clear=vy,bn.prototype.delete=my,bn.prototype.get=yy,bn.prototype.has=by,bn.prototype.set=_y;function Cr(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var f=n[o];this.set(f[0],f[1])}}function Ey(){this.__data__=[],this.size=0}function Sy(n){var o=this.__data__,u=To(o,n);if(u<0)return!1;var f=o.length-1;return u==f?o.pop():mo.call(o,u,1),--this.size,!0}function wy(n){var o=this.__data__,u=To(o,n);return u<0?t:o[u][1]}function Ty(n){return To(this.__data__,n)>-1}function xy(n,o){var u=this.__data__,f=To(u,n);return f<0?(++this.size,u.push([n,o])):u[f][1]=o,this}Cr.prototype.clear=Ey,Cr.prototype.delete=Sy,Cr.prototype.get=wy,Cr.prototype.has=Ty,Cr.prototype.set=xy;function Rr(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var f=n[o];this.set(f[0],f[1])}}function Cy(){this.size=0,this.__data__={hash:new bn,map:new(ga||Cr),string:new bn}}function Ry(n){var o=No(this,n).delete(n);return this.size-=o?1:0,o}function Oy(n){return No(this,n).get(n)}function Ay(n){return No(this,n).has(n)}function Py(n,o){var u=No(this,n),f=u.size;return u.set(n,o),this.size+=u.size==f?0:1,this}Rr.prototype.clear=Cy,Rr.prototype.delete=Ry,Rr.prototype.get=Oy,Rr.prototype.has=Ay,Rr.prototype.set=Py;function _n(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new Rr;++o<u;)this.add(n[o])}function Dy(n){return this.__data__.set(n,d),this}function Iy(n){return this.__data__.has(n)}_n.prototype.add=_n.prototype.push=Dy,_n.prototype.has=Iy;function lr(n){var o=this.__data__=new Cr(n);this.size=o.size}function Fy(){this.__data__=new Cr,this.size=0}function $y(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function My(n){return this.__data__.get(n)}function Ny(n){return this.__data__.has(n)}function Ly(n,o){var u=this.__data__;if(u instanceof Cr){var f=u.__data__;if(!ga||f.length<s-1)return f.push([n,o]),this.size=++u.size,this;u=this.__data__=new Rr(f)}return u.set(n,o),this.size=u.size,this}lr.prototype.clear=Fy,lr.prototype.delete=$y,lr.prototype.get=My,lr.prototype.has=Ny,lr.prototype.set=Ly;function Jl(n,o){var u=ve(n),f=!u&&xn(n),h=!u&&!f&&tn(n),y=!u&&!f&&!h&&qn(n),S=u||f||h||y,T=S?gi(n.length,Ym):[],A=T.length;for(var N in n)(o||je.call(n,N))&&!(S&&(N=="length"||h&&(N=="offset"||N=="parent")||y&&(N=="buffer"||N=="byteLength"||N=="byteOffset")||Dr(N,A)))&&T.push(N);return T}function Xl(n){var o=n.length;return o?n[Ii(0,o-1)]:t}function jy(n,o){return Lo(Ft(n),En(o,0,n.length))}function ky(n){return Lo(Ft(n))}function Si(n,o,u){(u!==t&&!fr(n[o],u)||u===t&&!(o in n))&&Or(n,o,u)}function ba(n,o,u){var f=n[o];(!(je.call(n,o)&&fr(f,u))||u===t&&!(o in n))&&Or(n,o,u)}function To(n,o){for(var u=n.length;u--;)if(fr(n[u][0],o))return u;return-1}function By(n,o,u,f){return Xr(n,function(h,y,S){o(f,h,u(h),S)}),f}function Zl(n,o){return n&&br(o,pt(o),n)}function Wy(n,o){return n&&br(o,Mt(o),n)}function Or(n,o,u){o=="__proto__"&&yo?yo(n,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[o]=u}function wi(n,o){for(var u=-1,f=o.length,h=D(f),y=n==null;++u<f;)h[u]=y?t:nu(n,o[u]);return h}function En(n,o,u){return n===n&&(u!==t&&(n=n<=u?n:u),o!==t&&(n=n>=o?n:o)),n}function er(n,o,u,f,h,y){var S,T=o&m,A=o&b,N=o&E;if(u&&(S=h?u(n,f,h,y):u(n)),S!==t)return S;if(!Qe(n))return n;var L=ve(n);if(L){if(S=A0(n),!T)return Ft(n,S)}else{var B=_t(n),V=B==F||B==Ye;if(tn(n))return wf(n,T);if(B==Vt||B==fe||V&&!h){if(S=A||V?{}:Uf(n),!T)return A?y0(n,Wy(S,n)):m0(n,Zl(S,n))}else{if(!Ge[B])return h?n:{};S=P0(n,B,T)}}y||(y=new lr);var ee=y.get(n);if(ee)return ee;y.set(n,S),md(n)?n.forEach(function(oe){S.add(er(oe,o,u,oe,n,y))}):gd(n)&&n.forEach(function(oe,Se){S.set(Se,er(oe,o,u,Se,n,y))});var ae=N?A?Hi:Ui:A?Mt:pt,be=L?t:ae(n);return Xt(be||n,function(oe,Se){be&&(Se=oe,oe=n[Se]),ba(S,Se,er(oe,o,u,Se,n,y))}),S}function Uy(n){var o=pt(n);return function(u){return Ql(u,n,o)}}function Ql(n,o,u){var f=u.length;if(n==null)return!f;for(n=Ue(n);f--;){var h=u[f],y=o[h],S=n[h];if(S===t&&!(h in n)||!y(S))return!1}return!0}function ef(n,o,u){if(typeof n!="function")throw new Zt(c);return Ca(function(){n.apply(t,u)},o)}function _a(n,o,u,f){var h=-1,y=so,S=!0,T=n.length,A=[],N=o.length;if(!T)return A;u&&(o=Je(o,Bt(u))),f?(y=ci,S=!1):o.length>=s&&(y=pa,S=!1,o=new _n(o));e:for(;++h<T;){var L=n[h],B=u==null?L:u(L);if(L=f||L!==0?L:0,S&&B===B){for(var V=N;V--;)if(o[V]===B)continue e;A.push(L)}else y(o,B,f)||A.push(L)}return A}var Xr=Of(yr),tf=Of(xi,!0);function Hy(n,o){var u=!0;return Xr(n,function(f,h,y){return u=!!o(f,h,y),u}),u}function xo(n,o,u){for(var f=-1,h=n.length;++f<h;){var y=n[f],S=o(y);if(S!=null&&(T===t?S===S&&!Ut(S):u(S,T)))var T=S,A=y}return A}function qy(n,o,u,f){var h=n.length;for(u=me(u),u<0&&(u=-u>h?0:h+u),f=f===t||f>h?h:me(f),f<0&&(f+=h),f=u>f?0:bd(f);u<f;)n[u++]=o;return n}function rf(n,o){var u=[];return Xr(n,function(f,h,y){o(f,h,y)&&u.push(f)}),u}function vt(n,o,u,f,h){var y=-1,S=n.length;for(u||(u=I0),h||(h=[]);++y<S;){var T=n[y];o>0&&u(T)?o>1?vt(T,o-1,u,f,h):Vr(h,T):f||(h[h.length]=T)}return h}var Ti=Af(),nf=Af(!0);function yr(n,o){return n&&Ti(n,o,pt)}function xi(n,o){return n&&nf(n,o,pt)}function Co(n,o){return Yr(o,function(u){return Ir(n[u])})}function Sn(n,o){o=Qr(o,n);for(var u=0,f=o.length;n!=null&&u<f;)n=n[_r(o[u++])];return u&&u==f?n:t}function af(n,o,u){var f=o(n);return ve(n)?f:Vr(f,u(n))}function Rt(n){return n==null?n===t?Ka:Va:yn&&yn in Ue(n)?C0(n):k0(n)}function Ci(n,o){return n>o}function Gy(n,o){return n!=null&&je.call(n,o)}function zy(n,o){return n!=null&&o in Ue(n)}function Yy(n,o,u){return n>=bt(o,u)&&n<lt(o,u)}function Ri(n,o,u){for(var f=u?ci:so,h=n[0].length,y=n.length,S=y,T=D(y),A=1/0,N=[];S--;){var L=n[S];S&&o&&(L=Je(L,Bt(o))),A=bt(L.length,A),T[S]=!u&&(o||h>=120&&L.length>=120)?new _n(S&&L):t}L=n[0];var B=-1,V=T[0];e:for(;++B<h&&N.length<A;){var ee=L[B],ae=o?o(ee):ee;if(ee=u||ee!==0?ee:0,!(V?pa(V,ae):f(N,ae,u))){for(S=y;--S;){var be=T[S];if(!(be?pa(be,ae):f(n[S],ae,u)))continue e}V&&V.push(ae),N.push(ee)}}return N}function Vy(n,o,u,f){return yr(n,function(h,y,S){o(f,u(h),y,S)}),f}function Ea(n,o,u){o=Qr(o,n),n=zf(n,o);var f=n==null?n:n[_r(rr(o))];return f==null?t:kt(f,n,u)}function of(n){return rt(n)&&Rt(n)==fe}function Ky(n){return rt(n)&&Rt(n)==pn}function Jy(n){return rt(n)&&Rt(n)==he}function Sa(n,o,u,f,h){return n===o?!0:n==null||o==null||!rt(n)&&!rt(o)?n!==n&&o!==o:Xy(n,o,u,f,Sa,h)}function Xy(n,o,u,f,h,y){var S=ve(n),T=ve(o),A=S?ne:_t(n),N=T?ne:_t(o);A=A==fe?Vt:A,N=N==fe?Vt:N;var L=A==Vt,B=N==Vt,V=A==N;if(V&&tn(n)){if(!tn(o))return!1;S=!0,L=!1}if(V&&!L)return y||(y=new lr),S||qn(n)?kf(n,o,u,f,h,y):T0(n,o,A,u,f,h,y);if(!(u&x)){var ee=L&&je.call(n,"__wrapped__"),ae=B&&je.call(o,"__wrapped__");if(ee||ae){var be=ee?n.value():n,oe=ae?o.value():o;return y||(y=new lr),h(be,oe,u,f,y)}}return V?(y||(y=new lr),x0(n,o,u,f,h,y)):!1}function Zy(n){return rt(n)&&_t(n)==qe}function Oi(n,o,u,f){var h=u.length,y=h,S=!f;if(n==null)return!y;for(n=Ue(n);h--;){var T=u[h];if(S&&T[2]?T[1]!==n[T[0]]:!(T[0]in n))return!1}for(;++h<y;){T=u[h];var A=T[0],N=n[A],L=T[1];if(S&&T[2]){if(N===t&&!(A in n))return!1}else{var B=new lr;if(f)var V=f(N,L,A,n,o,B);if(!(V===t?Sa(L,N,x|C,f,B):V))return!1}}return!0}function sf(n){if(!Qe(n)||$0(n))return!1;var o=Ir(n)?Zm:ur;return o.test(Tn(n))}function Qy(n){return rt(n)&&Rt(n)==ir}function e0(n){return rt(n)&&_t(n)==Ct}function t0(n){return rt(n)&&Ho(n.length)&&!!Ve[Rt(n)]}function uf(n){return typeof n=="function"?n:n==null?Nt:typeof n=="object"?ve(n)?ff(n[0],n[1]):lf(n):Pd(n)}function Ai(n){if(!xa(n))return ay(n);var o=[];for(var u in Ue(n))je.call(n,u)&&u!="constructor"&&o.push(u);return o}function r0(n){if(!Qe(n))return j0(n);var o=xa(n),u=[];for(var f in n)f=="constructor"&&(o||!je.call(n,f))||u.push(f);return u}function Pi(n,o){return n<o}function cf(n,o){var u=-1,f=$t(n)?D(n.length):[];return Xr(n,function(h,y,S){f[++u]=o(h,y,S)}),f}function lf(n){var o=Gi(n);return o.length==1&&o[0][2]?qf(o[0][0],o[0][1]):function(u){return u===n||Oi(u,n,o)}}function ff(n,o){return Yi(n)&&Hf(o)?qf(_r(n),o):function(u){var f=nu(u,n);return f===t&&f===o?au(u,n):Sa(o,f,x|C)}}function Ro(n,o,u,f,h){n!==o&&Ti(o,function(y,S){if(h||(h=new lr),Qe(y))n0(n,o,S,u,Ro,f,h);else{var T=f?f(Ki(n,S),y,S+"",n,o,h):t;T===t&&(T=y),Si(n,S,T)}},Mt)}function n0(n,o,u,f,h,y,S){var T=Ki(n,u),A=Ki(o,u),N=S.get(A);if(N){Si(n,u,N);return}var L=y?y(T,A,u+"",n,o,S):t,B=L===t;if(B){var V=ve(A),ee=!V&&tn(A),ae=!V&&!ee&&qn(A);L=A,V||ee||ae?ve(T)?L=T:at(T)?L=Ft(T):ee?(B=!1,L=wf(A,!0)):ae?(B=!1,L=Tf(A,!0)):L=[]:Ra(A)||xn(A)?(L=T,xn(T)?L=_d(T):(!Qe(T)||Ir(T))&&(L=Uf(A))):B=!1}B&&(S.set(A,L),h(L,A,f,y,S),S.delete(A)),Si(n,u,L)}function df(n,o){var u=n.length;if(u)return o+=o<0?u:0,Dr(o,u)?n[o]:t}function pf(n,o,u){o.length?o=Je(o,function(y){return ve(y)?function(S){return Sn(S,y.length===1?y[0]:y)}:y}):o=[Nt];var f=-1;o=Je(o,Bt(re()));var h=cf(n,function(y,S,T){var A=Je(o,function(N){return N(y)});return{criteria:A,index:++f,value:y}});return Pm(h,function(y,S){return v0(y,S,u)})}function a0(n,o){return hf(n,o,function(u,f){return au(n,f)})}function hf(n,o,u){for(var f=-1,h=o.length,y={};++f<h;){var S=o[f],T=Sn(n,S);u(T,S)&&wa(y,Qr(S,n),T)}return y}function o0(n){return function(o){return Sn(o,n)}}function Di(n,o,u,f){var h=f?Am:Fn,y=-1,S=o.length,T=n;for(n===o&&(o=Ft(o)),u&&(T=Je(n,Bt(u)));++y<S;)for(var A=0,N=o[y],L=u?u(N):N;(A=h(T,L,A,f))>-1;)T!==n&&mo.call(T,A,1),mo.call(n,A,1);return n}function gf(n,o){for(var u=n?o.length:0,f=u-1;u--;){var h=o[u];if(u==f||h!==y){var y=h;Dr(h)?mo.call(n,h,1):Mi(n,h)}}return n}function Ii(n,o){return n+_o(Vl()*(o-n+1))}function s0(n,o,u,f){for(var h=-1,y=lt(bo((o-n)/(u||1)),0),S=D(y);y--;)S[f?y:++h]=n,n+=u;return S}function Fi(n,o){var u="";if(!n||o<1||o>nt)return u;do o%2&&(u+=n),o=_o(o/2),o&&(n+=n);while(o);return u}function _e(n,o){return Ji(Gf(n,o,Nt),n+"")}function i0(n){return Xl(Gn(n))}function u0(n,o){var u=Gn(n);return Lo(u,En(o,0,u.length))}function wa(n,o,u,f){if(!Qe(n))return n;o=Qr(o,n);for(var h=-1,y=o.length,S=y-1,T=n;T!=null&&++h<y;){var A=_r(o[h]),N=u;if(A==="__proto__"||A==="constructor"||A==="prototype")return n;if(h!=S){var L=T[A];N=f?f(L,A,T):t,N===t&&(N=Qe(L)?L:Dr(o[h+1])?[]:{})}ba(T,A,N),T=T[A]}return n}var vf=Eo?function(n,o){return Eo.set(n,o),n}:Nt,c0=yo?function(n,o){return yo(n,"toString",{configurable:!0,enumerable:!1,value:su(o),writable:!0})}:Nt;function l0(n){return Lo(Gn(n))}function tr(n,o,u){var f=-1,h=n.length;o<0&&(o=-o>h?0:h+o),u=u>h?h:u,u<0&&(u+=h),h=o>u?0:u-o>>>0,o>>>=0;for(var y=D(h);++f<h;)y[f]=n[f+o];return y}function f0(n,o){var u;return Xr(n,function(f,h,y){return u=o(f,h,y),!u}),!!u}function Oo(n,o,u){var f=0,h=n==null?f:n.length;if(typeof o=="number"&&o===o&&h<=le){for(;f<h;){var y=f+h>>>1,S=n[y];S!==null&&!Ut(S)&&(u?S<=o:S<o)?f=y+1:h=y}return h}return $i(n,o,Nt,u)}function $i(n,o,u,f){var h=0,y=n==null?0:n.length;if(y===0)return 0;o=u(o);for(var S=o!==o,T=o===null,A=Ut(o),N=o===t;h<y;){var L=_o((h+y)/2),B=u(n[L]),V=B!==t,ee=B===null,ae=B===B,be=Ut(B);if(S)var oe=f||ae;else N?oe=ae&&(f||V):T?oe=ae&&V&&(f||!ee):A?oe=ae&&V&&!ee&&(f||!be):ee||be?oe=!1:oe=f?B<=o:B<o;oe?h=L+1:y=L}return bt(y,de)}function mf(n,o){for(var u=-1,f=n.length,h=0,y=[];++u<f;){var S=n[u],T=o?o(S):S;if(!u||!fr(T,A)){var A=T;y[h++]=S===0?0:S}}return y}function yf(n){return typeof n=="number"?n:Ut(n)?W:+n}function Wt(n){if(typeof n=="string")return n;if(ve(n))return Je(n,Wt)+"";if(Ut(n))return Kl?Kl.call(n):"";var o=n+"";return o=="0"&&1/n==-He?"-0":o}function Zr(n,o,u){var f=-1,h=so,y=n.length,S=!0,T=[],A=T;if(u)S=!1,h=ci;else if(y>=s){var N=o?null:S0(n);if(N)return uo(N);S=!1,h=pa,A=new _n}else A=o?[]:T;e:for(;++f<y;){var L=n[f],B=o?o(L):L;if(L=u||L!==0?L:0,S&&B===B){for(var V=A.length;V--;)if(A[V]===B)continue e;o&&A.push(B),T.push(L)}else h(A,B,u)||(A!==T&&A.push(B),T.push(L))}return T}function Mi(n,o){return o=Qr(o,n),n=zf(n,o),n==null||delete n[_r(rr(o))]}function bf(n,o,u,f){return wa(n,o,u(Sn(n,o)),f)}function Ao(n,o,u,f){for(var h=n.length,y=f?h:-1;(f?y--:++y<h)&&o(n[y],y,n););return u?tr(n,f?0:y,f?y+1:h):tr(n,f?y+1:0,f?h:y)}function _f(n,o){var u=n;return u instanceof we&&(u=u.value()),li(o,function(f,h){return h.func.apply(h.thisArg,Vr([f],h.args))},u)}function Ni(n,o,u){var f=n.length;if(f<2)return f?Zr(n[0]):[];for(var h=-1,y=D(f);++h<f;)for(var S=n[h],T=-1;++T<f;)T!=h&&(y[h]=_a(y[h]||S,n[T],o,u));return Zr(vt(y,1),o,u)}function Ef(n,o,u){for(var f=-1,h=n.length,y=o.length,S={};++f<h;){var T=f<y?o[f]:t;u(S,n[f],T)}return S}function Li(n){return at(n)?n:[]}function ji(n){return typeof n=="function"?n:Nt}function Qr(n,o){return ve(n)?n:Yi(n,o)?[n]:Jf(De(n))}var d0=_e;function en(n,o,u){var f=n.length;return u=u===t?f:u,!o&&u>=f?n:tr(n,o,u)}var Sf=Qm||function(n){return gt.clearTimeout(n)};function wf(n,o){if(o)return n.slice();var u=n.length,f=Hl?Hl(u):new n.constructor(u);return n.copy(f),f}function ki(n){var o=new n.constructor(n.byteLength);return new go(o).set(new go(n)),o}function p0(n,o){var u=o?ki(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function h0(n){var o=new n.constructor(n.source,Kt.exec(n));return o.lastIndex=n.lastIndex,o}function g0(n){return ya?Ue(ya.call(n)):{}}function Tf(n,o){var u=o?ki(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function xf(n,o){if(n!==o){var u=n!==t,f=n===null,h=n===n,y=Ut(n),S=o!==t,T=o===null,A=o===o,N=Ut(o);if(!T&&!N&&!y&&n>o||y&&S&&A&&!T&&!N||f&&S&&A||!u&&A||!h)return 1;if(!f&&!y&&!N&&n<o||N&&u&&h&&!f&&!y||T&&u&&h||!S&&h||!A)return-1}return 0}function v0(n,o,u){for(var f=-1,h=n.criteria,y=o.criteria,S=h.length,T=u.length;++f<S;){var A=xf(h[f],y[f]);if(A){if(f>=T)return A;var N=u[f];return A*(N=="desc"?-1:1)}}return n.index-o.index}function Cf(n,o,u,f){for(var h=-1,y=n.length,S=u.length,T=-1,A=o.length,N=lt(y-S,0),L=D(A+N),B=!f;++T<A;)L[T]=o[T];for(;++h<S;)(B||h<y)&&(L[u[h]]=n[h]);for(;N--;)L[T++]=n[h++];return L}function Rf(n,o,u,f){for(var h=-1,y=n.length,S=-1,T=u.length,A=-1,N=o.length,L=lt(y-T,0),B=D(L+N),V=!f;++h<L;)B[h]=n[h];for(var ee=h;++A<N;)B[ee+A]=o[A];for(;++S<T;)(V||h<y)&&(B[ee+u[S]]=n[h++]);return B}function Ft(n,o){var u=-1,f=n.length;for(o||(o=D(f));++u<f;)o[u]=n[u];return o}function br(n,o,u,f){var h=!u;u||(u={});for(var y=-1,S=o.length;++y<S;){var T=o[y],A=f?f(u[T],n[T],T,u,n):t;A===t&&(A=n[T]),h?Or(u,T,A):ba(u,T,A)}return u}function m0(n,o){return br(n,zi(n),o)}function y0(n,o){return br(n,Bf(n),o)}function Po(n,o){return function(u,f){var h=ve(u)?wm:By,y=o?o():{};return h(u,n,re(f,2),y)}}function Wn(n){return _e(function(o,u){var f=-1,h=u.length,y=h>1?u[h-1]:t,S=h>2?u[2]:t;for(y=n.length>3&&typeof y=="function"?(h--,y):t,S&&Ot(u[0],u[1],S)&&(y=h<3?t:y,h=1),o=Ue(o);++f<h;){var T=u[f];T&&n(o,T,f,y)}return o})}function Of(n,o){return function(u,f){if(u==null)return u;if(!$t(u))return n(u,f);for(var h=u.length,y=o?h:-1,S=Ue(u);(o?y--:++y<h)&&f(S[y],y,S)!==!1;);return u}}function Af(n){return function(o,u,f){for(var h=-1,y=Ue(o),S=f(o),T=S.length;T--;){var A=S[n?T:++h];if(u(y[A],A,y)===!1)break}return o}}function b0(n,o,u){var f=o&I,h=Ta(n);function y(){var S=this&&this!==gt&&this instanceof y?h:n;return S.apply(f?u:this,arguments)}return y}function Pf(n){return function(o){o=De(o);var u=$n(o)?cr(o):t,f=u?u[0]:o.charAt(0),h=u?en(u,1).join(""):o.slice(1);return f[n]()+h}}function Un(n){return function(o){return li(Od(Rd(o).replace(cm,"")),n,"")}}function Ta(n){return function(){var o=arguments;switch(o.length){case 0:return new n;case 1:return new n(o[0]);case 2:return new n(o[0],o[1]);case 3:return new n(o[0],o[1],o[2]);case 4:return new n(o[0],o[1],o[2],o[3]);case 5:return new n(o[0],o[1],o[2],o[3],o[4]);case 6:return new n(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new n(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var u=Bn(n.prototype),f=n.apply(u,o);return Qe(f)?f:u}}function _0(n,o,u){var f=Ta(n);function h(){for(var y=arguments.length,S=D(y),T=y,A=Hn(h);T--;)S[T]=arguments[T];var N=y<3&&S[0]!==A&&S[y-1]!==A?[]:Kr(S,A);if(y-=N.length,y<u)return Mf(n,o,Do,h.placeholder,t,S,N,t,t,u-y);var L=this&&this!==gt&&this instanceof h?f:n;return kt(L,this,S)}return h}function Df(n){return function(o,u,f){var h=Ue(o);if(!$t(o)){var y=re(u,3);o=pt(o),u=function(T){return y(h[T],T,h)}}var S=n(o,u,f);return S>-1?h[y?o[S]:S]:t}}function If(n){return Pr(function(o){var u=o.length,f=u,h=Qt.prototype.thru;for(n&&o.reverse();f--;){var y=o[f];if(typeof y!="function")throw new Zt(c);if(h&&!S&&Mo(y)=="wrapper")var S=new Qt([],!0)}for(f=S?f:u;++f<u;){y=o[f];var T=Mo(y),A=T=="wrapper"?qi(y):t;A&&Vi(A[0])&&A[1]==(H|M|O|z)&&!A[4].length&&A[9]==1?S=S[Mo(A[0])].apply(S,A[3]):S=y.length==1&&Vi(y)?S[T]():S.thru(y)}return function(){var N=arguments,L=N[0];if(S&&N.length==1&&ve(L))return S.plant(L).value();for(var B=0,V=u?o[B].apply(this,N):L;++B<u;)V=o[B].call(this,V);return V}})}function Do(n,o,u,f,h,y,S,T,A,N){var L=o&H,B=o&I,V=o&P,ee=o&(M|j),ae=o&te,be=V?t:Ta(n);function oe(){for(var Se=arguments.length,Ce=D(Se),Ht=Se;Ht--;)Ce[Ht]=arguments[Ht];if(ee)var At=Hn(oe),qt=Im(Ce,At);if(f&&(Ce=Cf(Ce,f,h,ee)),y&&(Ce=Rf(Ce,y,S,ee)),Se-=qt,ee&&Se<N){var ot=Kr(Ce,At);return Mf(n,o,Do,oe.placeholder,u,Ce,ot,T,A,N-Se)}var dr=B?u:this,$r=V?dr[n]:n;return Se=Ce.length,T?Ce=B0(Ce,T):ae&&Se>1&&Ce.reverse(),L&&A<Se&&(Ce.length=A),this&&this!==gt&&this instanceof oe&&($r=be||Ta($r)),$r.apply(dr,Ce)}return oe}function Ff(n,o){return function(u,f){return Vy(u,n,o(f),{})}}function Io(n,o){return function(u,f){var h;if(u===t&&f===t)return o;if(u!==t&&(h=u),f!==t){if(h===t)return f;typeof u=="string"||typeof f=="string"?(u=Wt(u),f=Wt(f)):(u=yf(u),f=yf(f)),h=n(u,f)}return h}}function Bi(n){return Pr(function(o){return o=Je(o,Bt(re())),_e(function(u){var f=this;return n(o,function(h){return kt(h,f,u)})})})}function Fo(n,o){o=o===t?" ":Wt(o);var u=o.length;if(u<2)return u?Fi(o,n):o;var f=Fi(o,bo(n/Mn(o)));return $n(o)?en(cr(f),0,n).join(""):f.slice(0,n)}function E0(n,o,u,f){var h=o&I,y=Ta(n);function S(){for(var T=-1,A=arguments.length,N=-1,L=f.length,B=D(L+A),V=this&&this!==gt&&this instanceof S?y:n;++N<L;)B[N]=f[N];for(;A--;)B[N++]=arguments[++T];return kt(V,h?u:this,B)}return S}function $f(n){return function(o,u,f){return f&&typeof f!="number"&&Ot(o,u,f)&&(u=f=t),o=Fr(o),u===t?(u=o,o=0):u=Fr(u),f=f===t?o<u?1:-1:Fr(f),s0(o,u,f,n)}}function $o(n){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=nr(o),u=nr(u)),n(o,u)}}function Mf(n,o,u,f,h,y,S,T,A,N){var L=o&M,B=L?S:t,V=L?t:S,ee=L?y:t,ae=L?t:y;o|=L?O:Y,o&=~(L?Y:O),o&k||(o&=~(I|P));var be=[n,o,h,ee,B,ae,V,T,A,N],oe=u.apply(t,be);return Vi(n)&&Yf(oe,be),oe.placeholder=f,Vf(oe,n,o)}function Wi(n){var o=ct[n];return function(u,f){if(u=nr(u),f=f==null?0:bt(me(f),292),f&&Yl(u)){var h=(De(u)+"e").split("e"),y=o(h[0]+"e"+(+h[1]+f));return h=(De(y)+"e").split("e"),+(h[0]+"e"+(+h[1]-f))}return o(u)}}var S0=jn&&1/uo(new jn([,-0]))[1]==He?function(n){return new jn(n)}:cu;function Nf(n){return function(o){var u=_t(o);return u==qe?mi(o):u==Ct?km(o):Dm(o,n(o))}}function Ar(n,o,u,f,h,y,S,T){var A=o&P;if(!A&&typeof n!="function")throw new Zt(c);var N=f?f.length:0;if(N||(o&=~(O|Y),f=h=t),S=S===t?S:lt(me(S),0),T=T===t?T:me(T),N-=h?h.length:0,o&Y){var L=f,B=h;f=h=t}var V=A?t:qi(n),ee=[n,o,u,f,h,L,B,y,S,T];if(V&&L0(ee,V),n=ee[0],o=ee[1],u=ee[2],f=ee[3],h=ee[4],T=ee[9]=ee[9]===t?A?0:n.length:lt(ee[9]-N,0),!T&&o&(M|j)&&(o&=~(M|j)),!o||o==I)var ae=b0(n,o,u);else o==M||o==j?ae=_0(n,o,T):(o==O||o==(I|O))&&!h.length?ae=E0(n,o,u,f):ae=Do.apply(t,ee);var be=V?vf:Yf;return Vf(be(ae,ee),n,o)}function Lf(n,o,u,f){return n===t||fr(n,Ln[u])&&!je.call(f,u)?o:n}function jf(n,o,u,f,h,y){return Qe(n)&&Qe(o)&&(y.set(o,n),Ro(n,o,t,jf,y),y.delete(o)),n}function w0(n){return Ra(n)?t:n}function kf(n,o,u,f,h,y){var S=u&x,T=n.length,A=o.length;if(T!=A&&!(S&&A>T))return!1;var N=y.get(n),L=y.get(o);if(N&&L)return N==o&&L==n;var B=-1,V=!0,ee=u&C?new _n:t;for(y.set(n,o),y.set(o,n);++B<T;){var ae=n[B],be=o[B];if(f)var oe=S?f(be,ae,B,o,n,y):f(ae,be,B,n,o,y);if(oe!==t){if(oe)continue;V=!1;break}if(ee){if(!fi(o,function(Se,Ce){if(!pa(ee,Ce)&&(ae===Se||h(ae,Se,u,f,y)))return ee.push(Ce)})){V=!1;break}}else if(!(ae===be||h(ae,be,u,f,y))){V=!1;break}}return y.delete(n),y.delete(o),V}function T0(n,o,u,f,h,y,S){switch(u){case Gr:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case pn:return!(n.byteLength!=o.byteLength||!y(new go(n),new go(o)));case ue:case he:case yt:return fr(+n,+o);case K:return n.name==o.name&&n.message==o.message;case ir:case fn:return n==o+"";case qe:var T=mi;case Ct:var A=f&x;if(T||(T=uo),n.size!=o.size&&!A)return!1;var N=S.get(n);if(N)return N==o;f|=C,S.set(n,o);var L=kf(T(n),T(o),f,h,y,S);return S.delete(n),L;case dn:if(ya)return ya.call(n)==ya.call(o)}return!1}function x0(n,o,u,f,h,y){var S=u&x,T=Ui(n),A=T.length,N=Ui(o),L=N.length;if(A!=L&&!S)return!1;for(var B=A;B--;){var V=T[B];if(!(S?V in o:je.call(o,V)))return!1}var ee=y.get(n),ae=y.get(o);if(ee&&ae)return ee==o&&ae==n;var be=!0;y.set(n,o),y.set(o,n);for(var oe=S;++B<A;){V=T[B];var Se=n[V],Ce=o[V];if(f)var Ht=S?f(Ce,Se,V,o,n,y):f(Se,Ce,V,n,o,y);if(!(Ht===t?Se===Ce||h(Se,Ce,u,f,y):Ht)){be=!1;break}oe||(oe=V=="constructor")}if(be&&!oe){var At=n.constructor,qt=o.constructor;At!=qt&&"constructor"in n&&"constructor"in o&&!(typeof At=="function"&&At instanceof At&&typeof qt=="function"&&qt instanceof qt)&&(be=!1)}return y.delete(n),y.delete(o),be}function Pr(n){return Ji(Gf(n,t,ed),n+"")}function Ui(n){return af(n,pt,zi)}function Hi(n){return af(n,Mt,Bf)}var qi=Eo?function(n){return Eo.get(n)}:cu;function Mo(n){for(var o=n.name+"",u=kn[o],f=je.call(kn,o)?u.length:0;f--;){var h=u[f],y=h.func;if(y==null||y==n)return h.name}return o}function Hn(n){var o=je.call(v,"placeholder")?v:n;return o.placeholder}function re(){var n=v.iteratee||iu;return n=n===iu?uf:n,arguments.length?n(arguments[0],arguments[1]):n}function No(n,o){var u=n.__data__;return F0(o)?u[typeof o=="string"?"string":"hash"]:u.map}function Gi(n){for(var o=pt(n),u=o.length;u--;){var f=o[u],h=n[f];o[u]=[f,h,Hf(h)]}return o}function wn(n,o){var u=Nm(n,o);return sf(u)?u:t}function C0(n){var o=je.call(n,yn),u=n[yn];try{n[yn]=t;var f=!0}catch{}var h=po.call(n);return f&&(o?n[yn]=u:delete n[yn]),h}var zi=bi?function(n){return n==null?[]:(n=Ue(n),Yr(bi(n),function(o){return Gl.call(n,o)}))}:lu,Bf=bi?function(n){for(var o=[];n;)Vr(o,zi(n)),n=vo(n);return o}:lu,_t=Rt;(_i&&_t(new _i(new ArrayBuffer(1)))!=Gr||ga&&_t(new ga)!=qe||Ei&&_t(Ei.resolve())!=ln||jn&&_t(new jn)!=Ct||va&&_t(new va)!=xr)&&(_t=function(n){var o=Rt(n),u=o==Vt?n.constructor:t,f=u?Tn(u):"";if(f)switch(f){case uy:return Gr;case cy:return qe;case ly:return ln;case fy:return Ct;case dy:return xr}return o});function R0(n,o,u){for(var f=-1,h=u.length;++f<h;){var y=u[f],S=y.size;switch(y.type){case"drop":n+=S;break;case"dropRight":o-=S;break;case"take":o=bt(o,n+S);break;case"takeRight":n=lt(n,o-S);break}}return{start:n,end:o}}function O0(n){var o=n.match(Le);return o?o[1].split(xe):[]}function Wf(n,o,u){o=Qr(o,n);for(var f=-1,h=o.length,y=!1;++f<h;){var S=_r(o[f]);if(!(y=n!=null&&u(n,S)))break;n=n[S]}return y||++f!=h?y:(h=n==null?0:n.length,!!h&&Ho(h)&&Dr(S,h)&&(ve(n)||xn(n)))}function A0(n){var o=n.length,u=new n.constructor(o);return o&&typeof n[0]=="string"&&je.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function Uf(n){return typeof n.constructor=="function"&&!xa(n)?Bn(vo(n)):{}}function P0(n,o,u){var f=n.constructor;switch(o){case pn:return ki(n);case ue:case he:return new f(+n);case Gr:return p0(n,u);case ua:case ca:case la:case fa:case hn:case Dn:case mr:case gn:case vn:return Tf(n,u);case qe:return new f;case yt:case fn:return new f(n);case ir:return h0(n);case Ct:return new f;case dn:return g0(n)}}function D0(n,o){var u=o.length;if(!u)return n;var f=u-1;return o[f]=(u>1?"& ":"")+o[f],o=o.join(u>2?", ":" "),n.replace(Ne,`{
|
|
15
|
+
*/gs.exports;(function(e,r){(function(){var t,a="4.17.21",s=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",l="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",p=500,g="__lodash_placeholder__",m=1,_=2,E=4,x=1,C=2,I=1,P=2,j=4,M=8,k=16,O=32,Y=64,H=128,z=256,te=512,We=30,Te="...",it=800,X=16,Pe=1,ut=2,et=3,Ge=1/0,nt=9007199254740991,Yt=17976931348623157e292,W=0/0,q=4294967295,de=q-1,le=q>>>1,se=[["ary",H],["bind",I],["bindKey",P],["curry",M],["curryRight",k],["flip",te],["partial",O],["partialRight",Y],["rearg",z]],fe="[object Arguments]",ne="[object Array]",ce="[object AsyncFunction]",ue="[object Boolean]",he="[object Date]",ge="[object DOMException]",K="[object Error]",F="[object Function]",Ye="[object GeneratorFunction]",qe="[object Map]",yt="[object Number]",Va="[object Null]",Vt="[object Object]",cn="[object Promise]",Vs="[object Proxy]",ir="[object RegExp]",Ct="[object Set]",ln="[object String]",fn="[object Symbol]",Ka="[object Undefined]",xr="[object WeakMap]",Ks="[object WeakSet]",dn="[object ArrayBuffer]",qr="[object DataView]",ia="[object Float32Array]",ua="[object Float64Array]",ca="[object Int8Array]",la="[object Int16Array]",pn="[object Int32Array]",Pn="[object Uint8Array]",mr="[object Uint8ClampedArray]",hn="[object Uint16Array]",gn="[object Uint32Array]",Ja=/\b__p \+= '';/g,Js=/\b(__p \+=) '' \+/g,Xa=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Za=/&(?:amp|lt|gt|quot|#39);/g,fa=/[&<>"']/g,Qa=RegExp(Za.source),Xs=RegExp(fa.source),Zs=/<%-([\s\S]+?)%>/g,eo=/<%([\s\S]+?)%>/g,to=/<%=([\s\S]+?)%>/g,Qs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ei=/^\w*$/,ti=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w=/[\\^$.*+?()[\]{}|]/g,U=RegExp(w.source),J=/^\s+/,ie=/\s/,Ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Le=/\{\n\/\* \[wrapped with (.+)\] \*/,xe=/,? & /,Ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ht=/[()=,{}\[\]\/\s]/,Ze=/\\(\\)?/g,tt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Kt=/\w*$/,zr=/^[-+]0x[0-9a-f]+$/i,ro=/^0b[01]+$/i,ur=/^\[object .+?Constructor\]$/,Uv=/^0o[0-7]+$/i,Hv=/^(?:0|[1-9]\d*)$/,Gv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,no=/($^)/,qv=/['\n\r\u2028\u2029\\]/g,ao="\\ud800-\\udfff",zv="\\u0300-\\u036f",Yv="\\ufe20-\\ufe2f",Vv="\\u20d0-\\u20ff",il=zv+Yv+Vv,ul="\\u2700-\\u27bf",cl="a-z\\xdf-\\xf6\\xf8-\\xff",Kv="\\xac\\xb1\\xd7\\xf7",Jv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Xv="\\u2000-\\u206f",Zv=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ll="A-Z\\xc0-\\xd6\\xd8-\\xde",fl="\\ufe0e\\ufe0f",dl=Kv+Jv+Xv+Zv,ri="['’]",Qv="["+ao+"]",pl="["+dl+"]",oo="["+il+"]",hl="\\d+",em="["+ul+"]",gl="["+cl+"]",vl="[^"+ao+dl+hl+ul+cl+ll+"]",ni="\\ud83c[\\udffb-\\udfff]",tm="(?:"+oo+"|"+ni+")",ml="[^"+ao+"]",ai="(?:\\ud83c[\\udde6-\\uddff]){2}",oi="[\\ud800-\\udbff][\\udc00-\\udfff]",Dn="["+ll+"]",yl="\\u200d",bl="(?:"+gl+"|"+vl+")",rm="(?:"+Dn+"|"+vl+")",_l="(?:"+ri+"(?:d|ll|m|re|s|t|ve))?",El="(?:"+ri+"(?:D|LL|M|RE|S|T|VE))?",Sl=tm+"?",wl="["+fl+"]?",nm="(?:"+yl+"(?:"+[ml,ai,oi].join("|")+")"+wl+Sl+")*",am="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",om="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Tl=wl+Sl+nm,sm="(?:"+[em,ai,oi].join("|")+")"+Tl,im="(?:"+[ml+oo+"?",oo,ai,oi,Qv].join("|")+")",um=RegExp(ri,"g"),cm=RegExp(oo,"g"),si=RegExp(ni+"(?="+ni+")|"+im+Tl,"g"),lm=RegExp([Dn+"?"+gl+"+"+_l+"(?="+[pl,Dn,"$"].join("|")+")",rm+"+"+El+"(?="+[pl,Dn+bl,"$"].join("|")+")",Dn+"?"+bl+"+"+_l,Dn+"+"+El,om,am,hl,sm].join("|"),"g"),fm=RegExp("["+yl+ao+il+fl+"]"),dm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,pm=["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"],hm=-1,Ve={};Ve[ia]=Ve[ua]=Ve[ca]=Ve[la]=Ve[pn]=Ve[Pn]=Ve[mr]=Ve[hn]=Ve[gn]=!0,Ve[fe]=Ve[ne]=Ve[dn]=Ve[ue]=Ve[qr]=Ve[he]=Ve[K]=Ve[F]=Ve[qe]=Ve[yt]=Ve[Vt]=Ve[ir]=Ve[Ct]=Ve[ln]=Ve[xr]=!1;var ze={};ze[fe]=ze[ne]=ze[dn]=ze[qr]=ze[ue]=ze[he]=ze[ia]=ze[ua]=ze[ca]=ze[la]=ze[pn]=ze[qe]=ze[yt]=ze[Vt]=ze[ir]=ze[Ct]=ze[ln]=ze[fn]=ze[Pn]=ze[mr]=ze[hn]=ze[gn]=!0,ze[K]=ze[F]=ze[xr]=!1;var gm={À:"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"},vm={"&":"&","<":"<",">":">",'"':""","'":"'"},mm={"&":"&","<":"<",">":">",""":'"',"'":"'"},ym={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},bm=parseFloat,_m=parseInt,xl=typeof Nr=="object"&&Nr&&Nr.Object===Object&&Nr,Em=typeof self=="object"&&self&&self.Object===Object&&self,gt=xl||Em||Function("return this")(),ii=r&&!r.nodeType&&r,vn=ii&&!0&&e&&!e.nodeType&&e,Cl=vn&&vn.exports===ii,ui=Cl&&xl.process,Jt=function(){try{var R=vn&&vn.require&&vn.require("util").types;return R||ui&&ui.binding&&ui.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 Sm(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 wm(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 so(R,$){var D=R==null?0:R.length;return!!D&&In(R,$,0)>-1}function ci(R,$,D){for(var Z=-1,pe=R==null?0:R.length;++Z<pe;)if(D($,R[Z]))return!0;return!1}function Je(R,$){for(var D=-1,Z=R==null?0:R.length,pe=Array(Z);++D<Z;)pe[D]=$(R[D],D,R);return pe}function Vr(R,$){for(var D=-1,Z=$.length,pe=R.length;++D<Z;)R[pe+D]=$[D];return R}function li(R,$,D,Z){var pe=-1,Oe=R==null?0:R.length;for(Z&&Oe&&(D=R[++pe]);++pe<Oe;)D=$(D,R[pe],pe,R);return D}function Tm(R,$,D,Z){var pe=R==null?0:R.length;for(Z&&pe&&(D=R[--pe]);pe--;)D=$(D,R[pe],pe,R);return D}function fi(R,$){for(var D=-1,Z=R==null?0:R.length;++D<Z;)if($(R[D],D,R))return!0;return!1}var xm=di("length");function Cm(R){return R.split("")}function Rm(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 io(R,$,D,Z){for(var pe=R.length,Oe=D+(Z?1:-1);Z?Oe--:++Oe<pe;)if($(R[Oe],Oe,R))return Oe;return-1}function In(R,$,D){return $===$?jm(R,$,D):io(R,Ml,D)}function Om(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?hi(R,$)/D:W}function di(R){return function($){return $==null?t:$[R]}}function pi(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 Am(R,$){var D=R.length;for(R.sort($);D--;)R[D]=R[D].value;return R}function hi(R,$){for(var D,Z=-1,pe=R.length;++Z<pe;){var Oe=$(R[Z]);Oe!==t&&(D=D===t?Oe:D+Oe)}return D}function gi(R,$){for(var D=-1,Z=Array(R);++D<R;)Z[D]=$(D);return Z}function Pm(R,$){return Je($,function(D){return[D,R[D]]})}function kl(R){return R&&R.slice(0,Ul(R)+1).replace(J,"")}function Bt(R){return function($){return R($)}}function vi(R,$){return Je($,function(D){return R[D]})}function da(R,$){return R.has($)}function jl(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 Dm(R,$){for(var D=R.length,Z=0;D--;)R[D]===$&&++Z;return Z}var Im=pi(gm),Fm=pi(vm);function $m(R){return"\\"+ym[R]}function Mm(R,$){return R==null?t:R[$]}function Fn(R){return fm.test(R)}function Nm(R){return dm.test(R)}function Lm(R){for(var $,D=[];!($=R.next()).done;)D.push($.value);return D}function mi(R){var $=-1,D=Array(R.size);return R.forEach(function(Z,pe){D[++$]=[pe,Z]}),D}function 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 uo(R){var $=-1,D=Array(R.size);return R.forEach(function(Z){D[++$]=Z}),D}function km(R){var $=-1,D=Array(R.size);return R.forEach(function(Z){D[++$]=[Z,Z]}),D}function jm(R,$,D){for(var Z=D-1,pe=R.length;++Z<pe;)if(R[Z]===$)return Z;return-1}function Bm(R,$,D){for(var Z=D+1;Z--;)if(R[Z]===$)return Z;return Z}function $n(R){return Fn(R)?Um(R):xm(R)}function cr(R){return Fn(R)?Hm(R):Cm(R)}function Ul(R){for(var $=R.length;$--&&ie.test(R.charAt($)););return $}var Wm=pi(mm);function Um(R){for(var $=si.lastIndex=0;si.test(R);)++$;return $}function Hm(R){return R.match(si)||[]}function Gm(R){return R.match(lm)||[]}var qm=function R($){$=$==null?gt:Mn.defaults(gt.Object(),$,Mn.pick(gt,pm));var D=$.Array,Z=$.Date,pe=$.Error,Oe=$.Function,ct=$.Math,Ue=$.Object,yi=$.RegExp,zm=$.String,Zt=$.TypeError,co=D.prototype,Ym=Oe.prototype,Nn=Ue.prototype,lo=$["__core-js_shared__"],fo=Ym.toString,ke=Nn.hasOwnProperty,Vm=0,Hl=function(){var n=/[^.]+$/.exec(lo&&lo.keys&&lo.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),po=Nn.toString,Km=fo.call(Ue),Jm=gt._,Xm=yi("^"+fo.call(ke).replace(w,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ho=Cl?$.Buffer:t,Jr=$.Symbol,go=$.Uint8Array,Gl=ho?ho.allocUnsafe:t,vo=Wl(Ue.getPrototypeOf,Ue),ql=Ue.create,zl=Nn.propertyIsEnumerable,mo=co.splice,Yl=Jr?Jr.isConcatSpreadable:t,pa=Jr?Jr.iterator:t,mn=Jr?Jr.toStringTag:t,yo=function(){try{var n=Sn(Ue,"defineProperty");return n({},"",{}),n}catch{}}(),Zm=$.clearTimeout!==gt.clearTimeout&&$.clearTimeout,Qm=Z&&Z.now!==gt.Date.now&&Z.now,ey=$.setTimeout!==gt.setTimeout&&$.setTimeout,bo=ct.ceil,_o=ct.floor,bi=Ue.getOwnPropertySymbols,ty=ho?ho.isBuffer:t,Vl=$.isFinite,ry=co.join,ny=Wl(Ue.keys,Ue),lt=ct.max,bt=ct.min,ay=Z.now,oy=$.parseInt,Kl=ct.random,sy=co.reverse,_i=Sn($,"DataView"),ha=Sn($,"Map"),Ei=Sn($,"Promise"),Ln=Sn($,"Set"),ga=Sn($,"WeakMap"),va=Sn(Ue,"create"),Eo=ga&&new ga,kn={},iy=wn(_i),uy=wn(ha),cy=wn(Ei),ly=wn(Ln),fy=wn(ga),So=Jr?Jr.prototype:t,ma=So?So.valueOf:t,Jl=So?So.toString:t;function v(n){if(rt(n)&&!ve(n)&&!(n instanceof we)){if(n instanceof Qt)return n;if(ke.call(n,"__wrapped__"))return Zf(n)}return new Qt(n)}var jn=function(){function n(){}return function(o){if(!Qe(o))return{};if(ql)return ql(o);n.prototype=o;var u=new n;return n.prototype=t,u}}();function wo(){}function Qt(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=t}v.templateSettings={escape:Zs,evaluate:eo,interpolate:to,variable:"",imports:{_:v}},v.prototype=wo.prototype,v.prototype.constructor=v,Qt.prototype=jn(wo.prototype),Qt.prototype.constructor=Qt;function we(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function dy(){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 py(){if(this.__filtered__){var n=new we(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function hy(){var n=this.__wrapped__.value(),o=this.__dir__,u=ve(n),f=o<0,h=u?n.length:0,y=Cb(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,Ht=Se.type,At=Ce(oe);if(Ht==ut)oe=At;else if(!At){if(Ht==Pe)continue e;break e}}ae[V++]=oe}return ae}we.prototype=jn(wo.prototype),we.prototype.constructor=we;function yn(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 gy(){this.__data__=va?va(null):{},this.size=0}function vy(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function my(n){var o=this.__data__;if(va){var u=o[n];return u===d?t:u}return ke.call(o,n)?o[n]:t}function yy(n){var o=this.__data__;return va?o[n]!==t:ke.call(o,n)}function by(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=va&&o===t?d:o,this}yn.prototype.clear=gy,yn.prototype.delete=vy,yn.prototype.get=my,yn.prototype.has=yy,yn.prototype.set=by;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 _y(){this.__data__=[],this.size=0}function Ey(n){var o=this.__data__,u=To(o,n);if(u<0)return!1;var f=o.length-1;return u==f?o.pop():mo.call(o,u,1),--this.size,!0}function Sy(n){var o=this.__data__,u=To(o,n);return u<0?t:o[u][1]}function wy(n){return To(this.__data__,n)>-1}function Ty(n,o){var u=this.__data__,f=To(u,n);return f<0?(++this.size,u.push([n,o])):u[f][1]=o,this}Cr.prototype.clear=_y,Cr.prototype.delete=Ey,Cr.prototype.get=Sy,Cr.prototype.has=wy,Cr.prototype.set=Ty;function Rr(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var f=n[o];this.set(f[0],f[1])}}function xy(){this.size=0,this.__data__={hash:new yn,map:new(ha||Cr),string:new yn}}function Cy(n){var o=No(this,n).delete(n);return this.size-=o?1:0,o}function Ry(n){return No(this,n).get(n)}function Oy(n){return No(this,n).has(n)}function Ay(n,o){var u=No(this,n),f=u.size;return u.set(n,o),this.size+=u.size==f?0:1,this}Rr.prototype.clear=xy,Rr.prototype.delete=Cy,Rr.prototype.get=Ry,Rr.prototype.has=Oy,Rr.prototype.set=Ay;function bn(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new Rr;++o<u;)this.add(n[o])}function Py(n){return this.__data__.set(n,d),this}function Dy(n){return this.__data__.has(n)}bn.prototype.add=bn.prototype.push=Py,bn.prototype.has=Dy;function lr(n){var o=this.__data__=new Cr(n);this.size=o.size}function Iy(){this.__data__=new Cr,this.size=0}function Fy(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function $y(n){return this.__data__.get(n)}function My(n){return this.__data__.has(n)}function Ny(n,o){var u=this.__data__;if(u instanceof Cr){var f=u.__data__;if(!ha||f.length<s-1)return f.push([n,o]),this.size=++u.size,this;u=this.__data__=new Rr(f)}return u.set(n,o),this.size=u.size,this}lr.prototype.clear=Iy,lr.prototype.delete=Fy,lr.prototype.get=$y,lr.prototype.has=My,lr.prototype.set=Ny;function Xl(n,o){var u=ve(n),f=!u&&Tn(n),h=!u&&!f&&tn(n),y=!u&&!f&&!h&&Hn(n),S=u||f||h||y,T=S?gi(n.length,zm):[],A=T.length;for(var N in n)(o||ke.call(n,N))&&!(S&&(N=="length"||h&&(N=="offset"||N=="parent")||y&&(N=="buffer"||N=="byteLength"||N=="byteOffset")||Dr(N,A)))&&T.push(N);return T}function Zl(n){var o=n.length;return o?n[Ii(0,o-1)]:t}function Ly(n,o){return Lo(Ft(n),_n(o,0,n.length))}function ky(n){return Lo(Ft(n))}function Si(n,o,u){(u!==t&&!fr(n[o],u)||u===t&&!(o in n))&&Or(n,o,u)}function ya(n,o,u){var f=n[o];(!(ke.call(n,o)&&fr(f,u))||u===t&&!(o in n))&&Or(n,o,u)}function To(n,o){for(var u=n.length;u--;)if(fr(n[u][0],o))return u;return-1}function jy(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 By(n,o){return n&&br(o,Mt(o),n)}function Or(n,o,u){o=="__proto__"&&yo?yo(n,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[o]=u}function wi(n,o){for(var u=-1,f=o.length,h=D(f),y=n==null;++u<f;)h[u]=y?t:nu(n,o[u]);return h}function _n(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&_,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=Ob(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?mb(n,By(S,n)):vb(n,Ql(S,n))}else{if(!ze[B])return h?n:{};S=Ab(n,B,T)}}y||(y=new lr);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?Hi:Ui:A?Mt:pt,be=L?t:ae(n);return Xt(be||n,function(oe,Se){be&&(Se=oe,oe=n[Se]),ya(S,Se,er(oe,o,u,Se,n,y))}),S}function Wy(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 xa(function(){n.apply(t,u)},o)}function ba(n,o,u,f){var h=-1,y=so,S=!0,T=n.length,A=[],N=o.length;if(!T)return A;u&&(o=Je(o,Bt(u))),f?(y=ci,S=!1):o.length>=s&&(y=da,S=!1,o=new bn(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(xi,!0);function Uy(n,o){var u=!0;return Xr(n,function(f,h,y){return u=!!o(f,h,y),u}),u}function xo(n,o,u){for(var f=-1,h=n.length;++f<h;){var y=n[f],S=o(y);if(S!=null&&(T===t?S===S&&!Ut(S):u(S,T)))var T=S,A=y}return A}function Hy(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=Db),h||(h=[]);++y<S;){var T=n[y];o>0&&u(T)?o>1?vt(T,o-1,u,f,h):Vr(h,T):f||(h[h.length]=T)}return h}var Ti=Pf(),af=Pf(!0);function yr(n,o){return n&&Ti(n,o,pt)}function xi(n,o){return n&&af(n,o,pt)}function Co(n,o){return Yr(o,function(u){return Ir(n[u])})}function En(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?Ka:Va:mn&&mn in Ue(n)?xb(n):kb(n)}function Ci(n,o){return n>o}function Gy(n,o){return n!=null&&ke.call(n,o)}function qy(n,o){return n!=null&&o in Ue(n)}function zy(n,o,u){return n>=bt(o,u)&&n<lt(o,u)}function Ri(n,o,u){for(var f=u?ci:so,h=n[0].length,y=n.length,S=y,T=D(y),A=1/0,N=[];S--;){var L=n[S];S&&o&&(L=Je(L,Bt(o))),A=bt(L.length,A),T[S]=!u&&(o||h>=120&&L.length>=120)?new bn(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?da(V,ae):f(N,ae,u))){for(S=y;--S;){var be=T[S];if(!(be?da(be,ae):f(n[S],ae,u)))continue e}V&&V.push(ae),N.push(ee)}}return N}function Yy(n,o,u,f){return yr(n,function(h,y,S){o(f,u(h),y,S)}),f}function _a(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 Vy(n){return rt(n)&&Rt(n)==dn}function Ky(n){return rt(n)&&Rt(n)==he}function Ea(n,o,u,f,h){return n===o?!0:n==null||o==null||!rt(n)&&!rt(o)?n!==n&&o!==o:Jy(n,o,u,f,Ea,h)}function Jy(n,o,u,f,h,y){var S=ve(n),T=ve(o),A=S?ne:_t(n),N=T?ne:_t(o);A=A==fe?Vt:A,N=N==fe?Vt:N;var L=A==Vt,B=N==Vt,V=A==N;if(V&&tn(n)){if(!tn(o))return!1;S=!0,L=!1}if(V&&!L)return y||(y=new lr),S||Hn(n)?Bf(n,o,u,f,h,y):wb(n,o,A,u,f,h,y);if(!(u&x)){var ee=L&&ke.call(n,"__wrapped__"),ae=B&&ke.call(o,"__wrapped__");if(ee||ae){var be=ee?n.value():n,oe=ae?o.value():o;return y||(y=new lr),h(be,oe,u,f,y)}}return V?(y||(y=new lr),Tb(n,o,u,f,h,y)):!1}function Xy(n){return rt(n)&&_t(n)==qe}function Oi(n,o,u,f){var h=u.length,y=h,S=!f;if(n==null)return!y;for(n=Ue(n);h--;){var T=u[h];if(S&&T[2]?T[1]!==n[T[0]]:!(T[0]in n))return!1}for(;++h<y;){T=u[h];var A=T[0],N=n[A],L=T[1];if(S&&T[2]){if(N===t&&!(A in n))return!1}else{var B=new lr;if(f)var V=f(N,L,A,n,o,B);if(!(V===t?Ea(L,N,x|C,f,B):V))return!1}}return!0}function uf(n){if(!Qe(n)||Fb(n))return!1;var o=Ir(n)?Xm:ur;return o.test(wn(n))}function Zy(n){return rt(n)&&Rt(n)==ir}function Qy(n){return rt(n)&&_t(n)==Ct}function eb(n){return rt(n)&&Ho(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 Ai(n){if(!Ta(n))return ny(n);var o=[];for(var u in Ue(n))ke.call(n,u)&&u!="constructor"&&o.push(u);return o}function tb(n){if(!Qe(n))return Lb(n);var o=Ta(n),u=[];for(var f in n)f=="constructor"&&(o||!ke.call(n,f))||u.push(f);return u}function Pi(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=qi(n);return o.length==1&&o[0][2]?qf(o[0][0],o[0][1]):function(u){return u===n||Oi(u,n,o)}}function df(n,o){return Yi(n)&&Gf(o)?qf(_r(n),o):function(u){var f=nu(u,n);return f===t&&f===o?au(u,n):Ea(o,f,x|C)}}function Ro(n,o,u,f,h){n!==o&&Ti(o,function(y,S){if(h||(h=new lr),Qe(y))rb(n,o,S,u,Ro,f,h);else{var T=f?f(Ki(n,S),y,S+"",n,o,h):t;T===t&&(T=y),Si(n,S,T)}},Mt)}function rb(n,o,u,f,h,y,S){var T=Ki(n,u),A=Ki(o,u),N=S.get(A);if(N){Si(n,u,N);return}var L=y?y(T,A,u+"",n,o,S):t,B=L===t;if(B){var V=ve(A),ee=!V&&tn(A),ae=!V&&!ee&&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=[]:Ca(A)||Tn(A)?(L=T,Tn(T)?L=Ed(T):(!Qe(T)||Ir(T))&&(L=Hf(A))):B=!1}B&&(S.set(A,L),h(L,A,f,y,S),S.delete(A)),Si(n,u,L)}function pf(n,o){var u=n.length;if(u)return o+=o<0?u:0,Dr(o,u)?n[o]:t}function hf(n,o,u){o.length?o=Je(o,function(y){return ve(y)?function(S){return En(S,y.length===1?y[0]:y)}:y}):o=[Nt];var f=-1;o=Je(o,Bt(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 Am(h,function(y,S){return gb(y,S,u)})}function nb(n,o){return gf(n,o,function(u,f){return au(n,f)})}function gf(n,o,u){for(var f=-1,h=o.length,y={};++f<h;){var S=o[f],T=En(n,S);u(T,S)&&Sa(y,Qr(S,n),T)}return y}function ab(n){return function(o){return En(o,n)}}function Di(n,o,u,f){var h=f?Om:In,y=-1,S=o.length,T=n;for(n===o&&(o=Ft(o)),u&&(T=Je(n,Bt(u)));++y<S;)for(var A=0,N=o[y],L=u?u(N):N;(A=h(T,L,A,f))>-1;)T!==n&&mo.call(T,A,1),mo.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;Dr(h)?mo.call(n,h,1):Mi(n,h)}}return n}function Ii(n,o){return n+_o(Kl()*(o-n+1))}function ob(n,o,u,f){for(var h=-1,y=lt(bo((o-n)/(u||1)),0),S=D(y);y--;)S[f?y:++h]=n,n+=u;return S}function Fi(n,o){var u="";if(!n||o<1||o>nt)return u;do o%2&&(u+=n),o=_o(o/2),o&&(n+=n);while(o);return u}function _e(n,o){return Ji(zf(n,o,Nt),n+"")}function sb(n){return Zl(Gn(n))}function ib(n,o){var u=Gn(n);return Lo(u,_n(o,0,u.length))}function Sa(n,o,u,f){if(!Qe(n))return n;o=Qr(o,n);for(var h=-1,y=o.length,S=y-1,T=n;T!=null&&++h<y;){var A=_r(o[h]),N=u;if(A==="__proto__"||A==="constructor"||A==="prototype")return n;if(h!=S){var L=T[A];N=f?f(L,A,T):t,N===t&&(N=Qe(L)?L:Dr(o[h+1])?[]:{})}ya(T,A,N),T=T[A]}return n}var mf=Eo?function(n,o){return Eo.set(n,o),n}:Nt,ub=yo?function(n,o){return yo(n,"toString",{configurable:!0,enumerable:!1,value:su(o),writable:!0})}:Nt;function cb(n){return Lo(Gn(n))}function tr(n,o,u){var f=-1,h=n.length;o<0&&(o=-o>h?0:h+o),u=u>h?h:u,u<0&&(u+=h),h=o>u?0:u-o>>>0,o>>>=0;for(var y=D(h);++f<h;)y[f]=n[f+o];return y}function lb(n,o){var u;return Xr(n,function(f,h,y){return u=o(f,h,y),!u}),!!u}function Oo(n,o,u){var f=0,h=n==null?f:n.length;if(typeof o=="number"&&o===o&&h<=le){for(;f<h;){var y=f+h>>>1,S=n[y];S!==null&&!Ut(S)&&(u?S<=o:S<o)?f=y+1:h=y}return h}return $i(n,o,Nt,u)}function $i(n,o,u,f){var h=0,y=n==null?0:n.length;if(y===0)return 0;o=u(o);for(var S=o!==o,T=o===null,A=Ut(o),N=o===t;h<y;){var L=_o((h+y)/2),B=u(n[L]),V=B!==t,ee=B===null,ae=B===B,be=Ut(B);if(S)var oe=f||ae;else N?oe=ae&&(f||V):T?oe=ae&&V&&(f||!ee):A?oe=ae&&V&&!ee&&(f||!be):ee||be?oe=!1:oe=f?B<=o:B<o;oe?h=L+1:y=L}return bt(y,de)}function 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||!fr(T,A)){var A=T;y[h++]=S===0?0:S}}return y}function bf(n){return typeof n=="number"?n:Ut(n)?W:+n}function Wt(n){if(typeof n=="string")return n;if(ve(n))return Je(n,Wt)+"";if(Ut(n))return Jl?Jl.call(n):"";var o=n+"";return o=="0"&&1/n==-Ge?"-0":o}function Zr(n,o,u){var f=-1,h=so,y=n.length,S=!0,T=[],A=T;if(u)S=!1,h=ci;else if(y>=s){var N=o?null:Eb(n);if(N)return uo(N);S=!1,h=da,A=new bn}else A=o?[]:T;e:for(;++f<y;){var L=n[f],B=o?o(L):L;if(L=u||L!==0?L:0,S&&B===B){for(var V=A.length;V--;)if(A[V]===B)continue e;o&&A.push(B),T.push(L)}else h(A,B,u)||(A!==T&&A.push(B),T.push(L))}return T}function Mi(n,o){return o=Qr(o,n),n=Yf(n,o),n==null||delete n[_r(rr(o))]}function _f(n,o,u,f){return Sa(n,o,u(En(n,o)),f)}function Ao(n,o,u,f){for(var h=n.length,y=f?h:-1;(f?y--:++y<h)&&o(n[y],y,n););return u?tr(n,f?0:y,f?y+1:h):tr(n,f?y+1:0,f?h:y)}function Ef(n,o){var u=n;return u instanceof we&&(u=u.value()),li(o,function(f,h){return h.func.apply(h.thisArg,Vr([f],h.args))},u)}function Ni(n,o,u){var f=n.length;if(f<2)return f?Zr(n[0]):[];for(var h=-1,y=D(f);++h<f;)for(var S=n[h],T=-1;++T<f;)T!=h&&(y[h]=ba(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 Li(n){return at(n)?n:[]}function ki(n){return typeof n=="function"?n:Nt}function Qr(n,o){return ve(n)?n:Yi(n,o)?[n]:Xf(De(n))}var fb=_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=Zm||function(n){return gt.clearTimeout(n)};function Tf(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 ji(n){var o=new n.constructor(n.byteLength);return new go(o).set(new go(n)),o}function db(n,o){var u=o?ji(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function pb(n){var o=new n.constructor(n.source,Kt.exec(n));return o.lastIndex=n.lastIndex,o}function hb(n){return ma?Ue(ma.call(n)):{}}function xf(n,o){var u=o?ji(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=Ut(n),S=o!==t,T=o===null,A=o===o,N=Ut(o);if(!T&&!N&&!y&&n>o||y&&S&&A&&!T&&!N||f&&S&&A||!u&&A||!h)return 1;if(!f&&!y&&!N&&n<o||N&&u&&h&&!f&&!y||T&&u&&h||!S&&h||!A)return-1}return 0}function gb(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?Or(u,T,A):ya(u,T,A)}return u}function vb(n,o){return br(n,zi(n),o)}function mb(n,o){return br(n,Wf(n),o)}function Po(n,o){return function(u,f){var h=ve(u)?Sm:jy,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 yb(n,o,u){var f=o&I,h=wa(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)?cr(o):t,f=u?u[0]:o.charAt(0),h=u?en(u,1).join(""):o.slice(1);return f[n]()+h}}function Wn(n){return function(o){return li(Ad(Od(o).replace(um,"")),n,"")}}function wa(n){return function(){var o=arguments;switch(o.length){case 0:return new n;case 1:return new n(o[0]);case 2:return new n(o[0],o[1]);case 3:return new n(o[0],o[1],o[2]);case 4:return new n(o[0],o[1],o[2],o[3]);case 5:return new n(o[0],o[1],o[2],o[3],o[4]);case 6:return new n(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new n(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var u=jn(n.prototype),f=n.apply(u,o);return Qe(f)?f:u}}function bb(n,o,u){var f=wa(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,Do,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 Pr(function(o){var u=o.length,f=u,h=Qt.prototype.thru;for(n&&o.reverse();f--;){var y=o[f];if(typeof y!="function")throw new Zt(c);if(h&&!S&&Mo(y)=="wrapper")var S=new Qt([],!0)}for(f=S?f:u;++f<u;){y=o[f];var T=Mo(y),A=T=="wrapper"?Gi(y):t;A&&Vi(A[0])&&A[1]==(H|M|O|z)&&!A[4].length&&A[9]==1?S=S[Mo(A[0])].apply(S,A[3]):S=y.length==1&&Vi(y)?S[T]():S.thru(y)}return function(){var N=arguments,L=N[0];if(S&&N.length==1&&ve(L))return S.plant(L).value();for(var B=0,V=u?o[B].apply(this,N):L;++B<u;)V=o[B].call(this,V);return V}})}function Do(n,o,u,f,h,y,S,T,A,N){var L=o&H,B=o&I,V=o&P,ee=o&(M|k),ae=o&te,be=V?t:wa(n);function oe(){for(var Se=arguments.length,Ce=D(Se),Ht=Se;Ht--;)Ce[Ht]=arguments[Ht];if(ee)var At=Un(oe),Gt=Dm(Ce,At);if(f&&(Ce=Rf(Ce,f,h,ee)),y&&(Ce=Of(Ce,y,S,ee)),Se-=Gt,ee&&Se<N){var ot=Kr(Ce,At);return Nf(n,o,Do,oe.placeholder,u,Ce,ot,T,A,N-Se)}var dr=B?u:this,$r=V?dr[n]:n;return Se=Ce.length,T?Ce=jb(Ce,T):ae&&Se>1&&Ce.reverse(),L&&A<Se&&(Ce.length=A),this&&this!==gt&&this instanceof oe&&($r=be||wa($r)),$r.apply(dr,Ce)}return oe}function $f(n,o){return function(u,f){return Yy(u,n,o(f),{})}}function Io(n,o){return function(u,f){var h;if(u===t&&f===t)return o;if(u!==t&&(h=u),f!==t){if(h===t)return f;typeof u=="string"||typeof f=="string"?(u=Wt(u),f=Wt(f)):(u=bf(u),f=bf(f)),h=n(u,f)}return h}}function Bi(n){return Pr(function(o){return o=Je(o,Bt(re())),_e(function(u){var f=this;return n(o,function(h){return jt(h,f,u)})})})}function Fo(n,o){o=o===t?" ":Wt(o);var u=o.length;if(u<2)return u?Fi(o,n):o;var f=Fi(o,bo(n/$n(o)));return Fn(o)?en(cr(f),0,n).join(""):f.slice(0,n)}function _b(n,o,u,f){var h=o&I,y=wa(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=Fr(o),u===t?(u=o,o=0):u=Fr(u),f=f===t?o<u?1:-1:Fr(f),ob(o,u,f,n)}}function $o(n){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=nr(o),u=nr(u)),n(o,u)}}function 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&j||(o&=~(I|P));var be=[n,o,h,ee,B,ae,V,T,A,N],oe=u.apply(t,be);return Vi(n)&&Vf(oe,be),oe.placeholder=f,Kf(oe,n,o)}function Wi(n){var o=ct[n];return function(u,f){if(u=nr(u),f=f==null?0:bt(me(f),292),f&&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 Eb=Ln&&1/uo(new Ln([,-0]))[1]==Ge?function(n){return new Ln(n)}:cu;function Lf(n){return function(o){var u=_t(o);return u==qe?mi(o):u==Ct?km(o):Pm(o,n(o))}}function Ar(n,o,u,f,h,y,S,T){var A=o&P;if(!A&&typeof n!="function")throw new Zt(c);var N=f?f.length:0;if(N||(o&=~(O|Y),f=h=t),S=S===t?S:lt(me(S),0),T=T===t?T:me(T),N-=h?h.length:0,o&Y){var L=f,B=h;f=h=t}var V=A?t:Gi(n),ee=[n,o,u,f,h,L,B,y,S,T];if(V&&Nb(ee,V),n=ee[0],o=ee[1],u=ee[2],f=ee[3],h=ee[4],T=ee[9]=ee[9]===t?A?0:n.length:lt(ee[9]-N,0),!T&&o&(M|k)&&(o&=~(M|k)),!o||o==I)var ae=yb(n,o,u);else o==M||o==k?ae=bb(n,o,T):(o==O||o==(I|O))&&!h.length?ae=_b(n,o,u,f):ae=Do.apply(t,ee);var be=V?mf:Vf;return Kf(be(ae,ee),n,o)}function kf(n,o,u,f){return n===t||fr(n,Nn[u])&&!ke.call(f,u)?o:n}function jf(n,o,u,f,h,y){return Qe(n)&&Qe(o)&&(y.set(o,n),Ro(n,o,t,jf,y),y.delete(o)),n}function Sb(n){return Ca(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 bn:t;for(y.set(n,o),y.set(o,n);++B<T;){var ae=n[B],be=o[B];if(f)var oe=S?f(be,ae,B,o,n,y):f(ae,be,B,n,o,y);if(oe!==t){if(oe)continue;V=!1;break}if(ee){if(!fi(o,function(Se,Ce){if(!da(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 wb(n,o,u,f,h,y,S){switch(u){case qr:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case dn:return!(n.byteLength!=o.byteLength||!y(new go(n),new go(o)));case ue:case he:case yt:return fr(+n,+o);case K:return n.name==o.name&&n.message==o.message;case ir:case ln:return n==o+"";case qe:var T=mi;case Ct:var A=f&x;if(T||(T=uo),n.size!=o.size&&!A)return!1;var N=S.get(n);if(N)return N==o;f|=C,S.set(n,o);var L=Bf(T(n),T(o),f,h,y,S);return S.delete(n),L;case fn:if(ma)return ma.call(n)==ma.call(o)}return!1}function Tb(n,o,u,f,h,y){var S=u&x,T=Ui(n),A=T.length,N=Ui(o),L=N.length;if(A!=L&&!S)return!1;for(var B=A;B--;){var V=T[B];if(!(S?V in o:ke.call(o,V)))return!1}var ee=y.get(n),ae=y.get(o);if(ee&&ae)return ee==o&&ae==n;var be=!0;y.set(n,o),y.set(o,n);for(var oe=S;++B<A;){V=T[B];var Se=n[V],Ce=o[V];if(f)var Ht=S?f(Ce,Se,V,o,n,y):f(Se,Ce,V,n,o,y);if(!(Ht===t?Se===Ce||h(Se,Ce,u,f,y):Ht)){be=!1;break}oe||(oe=V=="constructor")}if(be&&!oe){var At=n.constructor,Gt=o.constructor;At!=Gt&&"constructor"in n&&"constructor"in o&&!(typeof At=="function"&&At instanceof At&&typeof Gt=="function"&&Gt instanceof Gt)&&(be=!1)}return y.delete(n),y.delete(o),be}function Pr(n){return Ji(zf(n,t,td),n+"")}function Ui(n){return of(n,pt,zi)}function Hi(n){return of(n,Mt,Wf)}var Gi=Eo?function(n){return Eo.get(n)}:cu;function Mo(n){for(var o=n.name+"",u=kn[o],f=ke.call(kn,o)?u.length:0;f--;){var h=u[f],y=h.func;if(y==null||y==n)return h.name}return o}function Un(n){var o=ke.call(v,"placeholder")?v:n;return o.placeholder}function re(){var n=v.iteratee||iu;return n=n===iu?cf:n,arguments.length?n(arguments[0],arguments[1]):n}function No(n,o){var u=n.__data__;return Ib(o)?u[typeof o=="string"?"string":"hash"]:u.map}function qi(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 Sn(n,o){var u=Mm(n,o);return uf(u)?u:t}function xb(n){var o=ke.call(n,mn),u=n[mn];try{n[mn]=t;var f=!0}catch{}var h=po.call(n);return f&&(o?n[mn]=u:delete n[mn]),h}var zi=bi?function(n){return n==null?[]:(n=Ue(n),Yr(bi(n),function(o){return zl.call(n,o)}))}:lu,Wf=bi?function(n){for(var o=[];n;)Vr(o,zi(n)),n=vo(n);return o}:lu,_t=Rt;(_i&&_t(new _i(new ArrayBuffer(1)))!=qr||ha&&_t(new ha)!=qe||Ei&&_t(Ei.resolve())!=cn||Ln&&_t(new Ln)!=Ct||ga&&_t(new ga)!=xr)&&(_t=function(n){var o=Rt(n),u=o==Vt?n.constructor:t,f=u?wn(u):"";if(f)switch(f){case iy:return qr;case uy:return qe;case cy:return cn;case ly:return Ct;case fy:return xr}return o});function Cb(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 Rb(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&&Ho(h)&&Dr(S,h)&&(ve(n)||Tn(n)))}function Ob(n){var o=n.length,u=new n.constructor(o);return o&&typeof n[0]=="string"&&ke.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function Hf(n){return typeof n.constructor=="function"&&!Ta(n)?jn(vo(n)):{}}function Ab(n,o,u){var f=n.constructor;switch(o){case dn:return ji(n);case ue:case he:return new f(+n);case qr:return db(n,u);case ia:case ua:case ca:case la:case pn:case Pn:case mr:case hn:case gn:return xf(n,u);case qe:return new f;case yt:case ln:return new f(n);case ir:return pb(n);case Ct:return new f;case fn:return hb(n)}}function Pb(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 I0(n){return ve(n)||xn(n)||!!(zl&&n&&n[zl])}function Dr(n,o){var u=typeof n;return o=o??nt,!!o&&(u=="number"||u!="symbol"&&qv.test(n))&&n>-1&&n%1==0&&n<o}function Ot(n,o,u){if(!Qe(u))return!1;var f=typeof o;return(f=="number"?$t(u)&&Dr(o,u.length):f=="string"&&o in u)?fr(u[o],n):!1}function Yi(n,o){if(ve(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||Ut(n)?!0:ei.test(n)||!Qs.test(n)||o!=null&&n in Ue(o)}function F0(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function Vi(n){var o=Mo(n),u=v[o];if(typeof u!="function"||!(o in we.prototype))return!1;if(n===u)return!0;var f=qi(u);return!!f&&n===f[0]}function $0(n){return!!Ul&&Ul in n}var M0=lo?Ir:fu;function xa(n){var o=n&&n.constructor,u=typeof o=="function"&&o.prototype||Ln;return n===u}function Hf(n){return n===n&&!Qe(n)}function qf(n,o){return function(u){return u==null?!1:u[n]===o&&(o!==t||n in Ue(u))}}function N0(n){var o=Wo(n,function(f){return u.size===p&&u.clear(),f}),u=o.cache;return o}function L0(n,o){var u=n[1],f=o[1],h=u|f,y=h<(I|P|H),S=f==H&&u==M||f==H&&u==z&&n[7].length<=o[8]||f==(H|z)&&o[7].length<=o[8]&&u==M;if(!(y||S))return n;f&I&&(n[2]=o[2],h|=u&I?0:k);var T=o[3];if(T){var A=n[3];n[3]=A?Cf(A,T,o[4]):T,n[4]=A?Kr(n[3],g):o[4]}return T=o[5],T&&(A=n[5],n[5]=A?Rf(A,T,o[6]):T,n[6]=A?Kr(n[5],g):o[6]),T=o[7],T&&(n[7]=T),f&H&&(n[8]=n[8]==null?o[8]:bt(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=h,n}function j0(n){var o=[];if(n!=null)for(var u in Ue(n))o.push(u);return o}function k0(n){return po.call(n)}function Gf(n,o,u){return o=lt(o===t?n.length-1:o,0),function(){for(var f=arguments,h=-1,y=lt(f.length-o,0),S=D(y);++h<y;)S[h]=f[o+h];h=-1;for(var T=D(o+1);++h<o;)T[h]=f[h];return T[o]=u(S),kt(n,this,T)}}function zf(n,o){return o.length<2?n:Sn(n,tr(o,0,-1))}function B0(n,o){for(var u=n.length,f=bt(o.length,u),h=Ft(n);f--;){var y=o[f];n[f]=Dr(y,u)?h[y]:t}return n}function Ki(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var Yf=Kf(vf),Ca=ty||function(n,o){return gt.setTimeout(n,o)},Ji=Kf(c0);function Vf(n,o,u){var f=o+"";return Ji(n,D0(f,W0(O0(f),u)))}function Kf(n){var o=0,u=0;return function(){var f=oy(),h=X-(f-u);if(u=f,h>0){if(++o>=it)return arguments[0]}else o=0;return n.apply(t,arguments)}}function Lo(n,o){var u=-1,f=n.length,h=f-1;for(o=o===t?f:o;++u<o;){var y=Ii(u,h),S=n[y];n[y]=n[u],n[u]=S}return n.length=o,n}var Jf=N0(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(ti,function(u,f,h,y){o.push(h?y.replace(Ze,"$1"):f||u)}),o});function _r(n){if(typeof n=="string"||Ut(n))return n;var o=n+"";return o=="0"&&1/n==-He?"-0":o}function Tn(n){if(n!=null){try{return fo.call(n)}catch{}try{return n+""}catch{}}return""}function W0(n,o){return Xt(se,function(u){var f="_."+u[0];o&u[1]&&!so(n,f)&&n.push(f)}),n.sort()}function Xf(n){if(n instanceof we)return n.clone();var o=new Qt(n.__wrapped__,n.__chain__);return o.__actions__=Ft(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function U0(n,o,u){(u?Ot(n,o,u):o===t)?o=1:o=lt(me(o),0);var f=n==null?0:n.length;if(!f||o<1)return[];for(var h=0,y=0,S=D(bo(f/o));h<f;)S[y++]=tr(n,h,h+=o);return S}function H0(n){for(var o=-1,u=n==null?0:n.length,f=0,h=[];++o<u;){var y=n[o];y&&(h[f++]=y)}return h}function q0(){var n=arguments.length;if(!n)return[];for(var o=D(n-1),u=arguments[0],f=n;f--;)o[f-1]=arguments[f];return Vr(ve(u)?Ft(u):[u],vt(o,1))}var G0=_e(function(n,o){return at(n)?_a(n,vt(o,1,at,!0)):[]}),z0=_e(function(n,o){var u=rr(o);return at(u)&&(u=t),at(n)?_a(n,vt(o,1,at,!0),re(u,2)):[]}),Y0=_e(function(n,o){var u=rr(o);return at(u)&&(u=t),at(n)?_a(n,vt(o,1,at,!0),t,u):[]});function V0(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===t?1:me(o),tr(n,o<0?0:o,f)):[]}function K0(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===t?1:me(o),o=f-o,tr(n,0,o<0?0:o)):[]}function J0(n,o){return n&&n.length?Ao(n,re(o,3),!0,!0):[]}function X0(n,o){return n&&n.length?Ao(n,re(o,3),!0):[]}function Z0(n,o,u,f){var h=n==null?0:n.length;return h?(u&&typeof u!="number"&&Ot(n,o,u)&&(u=0,f=h),qy(n,o,u,f)):[]}function Zf(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var h=u==null?0:me(u);return h<0&&(h=lt(f+h,0)),io(n,re(o,3),h)}function Qf(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var h=f-1;return u!==t&&(h=me(u),h=u<0?lt(f+h,0):bt(h,f-1)),io(n,re(o,3),h,!0)}function ed(n){var o=n==null?0:n.length;return o?vt(n,1):[]}function Q0(n){var o=n==null?0:n.length;return o?vt(n,He):[]}function eb(n,o){var u=n==null?0:n.length;return u?(o=o===t?1:me(o),vt(n,o)):[]}function tb(n){for(var o=-1,u=n==null?0:n.length,f={};++o<u;){var h=n[o];f[h[0]]=h[1]}return f}function td(n){return n&&n.length?n[0]:t}function rb(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var h=u==null?0:me(u);return h<0&&(h=lt(f+h,0)),Fn(n,o,h)}function nb(n){var o=n==null?0:n.length;return o?tr(n,0,-1):[]}var ab=_e(function(n){var o=Je(n,Li);return o.length&&o[0]===n[0]?Ri(o):[]}),ob=_e(function(n){var o=rr(n),u=Je(n,Li);return o===rr(u)?o=t:u.pop(),u.length&&u[0]===n[0]?Ri(u,re(o,2)):[]}),sb=_e(function(n){var o=rr(n),u=Je(n,Li);return o=typeof o=="function"?o:t,o&&u.pop(),u.length&&u[0]===n[0]?Ri(u,t,o):[]});function ib(n,o){return n==null?"":ny.call(n,o)}function rr(n){var o=n==null?0:n.length;return o?n[o-1]:t}function ub(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var h=f;return u!==t&&(h=me(u),h=h<0?lt(f+h,0):bt(h,f-1)),o===o?Wm(n,o,h):io(n,$l,h,!0)}function cb(n,o){return n&&n.length?df(n,me(o)):t}var lb=_e(rd);function rd(n,o){return n&&n.length&&o&&o.length?Di(n,o):n}function fb(n,o,u){return n&&n.length&&o&&o.length?Di(n,o,re(u,2)):n}function db(n,o,u){return n&&n.length&&o&&o.length?Di(n,o,t,u):n}var pb=Pr(function(n,o){var u=n==null?0:n.length,f=wi(n,o);return gf(n,Je(o,function(h){return Dr(h,u)?+h:h}).sort(xf)),f});function hb(n,o){var u=[];if(!(n&&n.length))return u;var f=-1,h=[],y=n.length;for(o=re(o,3);++f<y;){var S=n[f];o(S,f,n)&&(u.push(S),h.push(f))}return gf(n,h),u}function Xi(n){return n==null?n:iy.call(n)}function gb(n,o,u){var f=n==null?0:n.length;return f?(u&&typeof u!="number"&&Ot(n,o,u)?(o=0,u=f):(o=o==null?0:me(o),u=u===t?f:me(u)),tr(n,o,u)):[]}function vb(n,o){return Oo(n,o)}function mb(n,o,u){return $i(n,o,re(u,2))}function yb(n,o){var u=n==null?0:n.length;if(u){var f=Oo(n,o);if(f<u&&fr(n[f],o))return f}return-1}function bb(n,o){return Oo(n,o,!0)}function _b(n,o,u){return $i(n,o,re(u,2),!0)}function Eb(n,o){var u=n==null?0:n.length;if(u){var f=Oo(n,o,!0)-1;if(fr(n[f],o))return f}return-1}function Sb(n){return n&&n.length?mf(n):[]}function wb(n,o){return n&&n.length?mf(n,re(o,2)):[]}function Tb(n){var o=n==null?0:n.length;return o?tr(n,1,o):[]}function xb(n,o,u){return n&&n.length?(o=u||o===t?1:me(o),tr(n,0,o<0?0:o)):[]}function Cb(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===t?1:me(o),o=f-o,tr(n,o<0?0:o,f)):[]}function Rb(n,o){return n&&n.length?Ao(n,re(o,3),!1,!0):[]}function Ob(n,o){return n&&n.length?Ao(n,re(o,3)):[]}var Ab=_e(function(n){return Zr(vt(n,1,at,!0))}),Pb=_e(function(n){var o=rr(n);return at(o)&&(o=t),Zr(vt(n,1,at,!0),re(o,2))}),Db=_e(function(n){var o=rr(n);return o=typeof o=="function"?o:t,Zr(vt(n,1,at,!0),t,o)});function Ib(n){return n&&n.length?Zr(n):[]}function Fb(n,o){return n&&n.length?Zr(n,re(o,2)):[]}function $b(n,o){return o=typeof o=="function"?o:t,n&&n.length?Zr(n,t,o):[]}function Zi(n){if(!(n&&n.length))return[];var o=0;return n=Yr(n,function(u){if(at(u))return o=lt(u.length,o),!0}),gi(o,function(u){return Je(n,di(u))})}function nd(n,o){if(!(n&&n.length))return[];var u=Zi(n);return o==null?u:Je(u,function(f){return kt(o,t,f)})}var Mb=_e(function(n,o){return at(n)?_a(n,o):[]}),Nb=_e(function(n){return Ni(Yr(n,at))}),Lb=_e(function(n){var o=rr(n);return at(o)&&(o=t),Ni(Yr(n,at),re(o,2))}),jb=_e(function(n){var o=rr(n);return o=typeof o=="function"?o:t,Ni(Yr(n,at),t,o)}),kb=_e(Zi);function Bb(n,o){return Ef(n||[],o||[],ba)}function Wb(n,o){return Ef(n||[],o||[],wa)}var Ub=_e(function(n){var o=n.length,u=o>1?n[o-1]:t;return u=typeof u=="function"?(n.pop(),u):t,nd(n,u)});function ad(n){var o=v(n);return o.__chain__=!0,o}function Hb(n,o){return o(n),n}function jo(n,o){return o(n)}var qb=Pr(function(n){var o=n.length,u=o?n[0]:0,f=this.__wrapped__,h=function(y){return wi(y,n)};return o>1||this.__actions__.length||!(f instanceof we)||!Dr(u)?this.thru(h):(f=f.slice(u,+u+(o?1:0)),f.__actions__.push({func:jo,args:[h],thisArg:t}),new Qt(f,this.__chain__).thru(function(y){return o&&!y.length&&y.push(t),y}))});function Gb(){return ad(this)}function zb(){return new Qt(this.value(),this.__chain__)}function Yb(){this.__values__===t&&(this.__values__=yd(this.value()));var n=this.__index__>=this.__values__.length,o=n?t:this.__values__[this.__index__++];return{done:n,value:o}}function Vb(){return this}function Kb(n){for(var o,u=this;u instanceof wo;){var f=Xf(u);f.__index__=0,f.__values__=t,o?h.__wrapped__=f:o=f;var h=f;u=u.__wrapped__}return h.__wrapped__=n,o}function Jb(){var n=this.__wrapped__;if(n instanceof we){var o=n;return this.__actions__.length&&(o=new we(this)),o=o.reverse(),o.__actions__.push({func:jo,args:[Xi],thisArg:t}),new Qt(o,this.__chain__)}return this.thru(Xi)}function Xb(){return _f(this.__wrapped__,this.__actions__)}var Zb=Po(function(n,o,u){je.call(n,u)?++n[u]:Or(n,u,1)});function Qb(n,o,u){var f=ve(n)?Il:Hy;return u&&Ot(n,o,u)&&(o=t),f(n,re(o,3))}function e_(n,o){var u=ve(n)?Yr:rf;return u(n,re(o,3))}var t_=Df(Zf),r_=Df(Qf);function n_(n,o){return vt(ko(n,o),1)}function a_(n,o){return vt(ko(n,o),He)}function o_(n,o,u){return u=u===t?1:me(u),vt(ko(n,o),u)}function od(n,o){var u=ve(n)?Xt:Xr;return u(n,re(o,3))}function sd(n,o){var u=ve(n)?Tm:tf;return u(n,re(o,3))}var s_=Po(function(n,o,u){je.call(n,u)?n[u].push(o):Or(n,u,[o])});function i_(n,o,u,f){n=$t(n)?n:Gn(n),u=u&&!f?me(u):0;var h=n.length;return u<0&&(u=lt(h+u,0)),qo(n)?u<=h&&n.indexOf(o,u)>-1:!!h&&Fn(n,o,u)>-1}var u_=_e(function(n,o,u){var f=-1,h=typeof o=="function",y=$t(n)?D(n.length):[];return Xr(n,function(S){y[++f]=h?kt(o,S,u):Ea(S,o,u)}),y}),c_=Po(function(n,o,u){Or(n,u,o)});function ko(n,o){var u=ve(n)?Je:cf;return u(n,re(o,3))}function l_(n,o,u,f){return n==null?[]:(ve(o)||(o=o==null?[]:[o]),u=f?t:u,ve(u)||(u=u==null?[]:[u]),pf(n,o,u))}var f_=Po(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function d_(n,o,u){var f=ve(n)?li:Nl,h=arguments.length<3;return f(n,re(o,4),u,h,Xr)}function p_(n,o,u){var f=ve(n)?xm:Nl,h=arguments.length<3;return f(n,re(o,4),u,h,tf)}function h_(n,o){var u=ve(n)?Yr:rf;return u(n,Uo(re(o,3)))}function g_(n){var o=ve(n)?Xl:i0;return o(n)}function v_(n,o,u){(u?Ot(n,o,u):o===t)?o=1:o=me(o);var f=ve(n)?jy:u0;return f(n,o)}function m_(n){var o=ve(n)?ky:l0;return o(n)}function y_(n){if(n==null)return 0;if($t(n))return qo(n)?Mn(n):n.length;var o=_t(n);return o==qe||o==Ct?n.size:Ai(n).length}function b_(n,o,u){var f=ve(n)?fi:f0;return u&&Ot(n,o,u)&&(o=t),f(n,re(o,3))}var __=_e(function(n,o){if(n==null)return[];var u=o.length;return u>1&&Ot(n,o[0],o[1])?o=[]:u>2&&Ot(o[0],o[1],o[2])&&(o=[o[0]]),pf(n,vt(o,1),[])}),Bo=ey||function(){return gt.Date.now()};function E_(n,o){if(typeof o!="function")throw new Zt(c);return n=me(n),function(){if(--n<1)return o.apply(this,arguments)}}function id(n,o,u){return o=u?t:o,o=n&&o==null?n.length:o,Ar(n,H,t,t,t,t,o)}function ud(n,o){var u;if(typeof o!="function")throw new Zt(c);return n=me(n),function(){return--n>0&&(u=o.apply(this,arguments)),n<=1&&(o=t),u}}var Qi=_e(function(n,o,u){var f=I;if(u.length){var h=Kr(u,Hn(Qi));f|=O}return Ar(n,f,o,u,h)}),cd=_e(function(n,o,u){var f=I|P;if(u.length){var h=Kr(u,Hn(cd));f|=O}return Ar(o,f,n,u,h)});function ld(n,o,u){o=u?t:o;var f=Ar(n,M,t,t,t,t,t,o);return f.placeholder=ld.placeholder,f}function fd(n,o,u){o=u?t:o;var f=Ar(n,j,t,t,t,t,t,o);return f.placeholder=fd.placeholder,f}function dd(n,o,u){var f,h,y,S,T,A,N=0,L=!1,B=!1,V=!0;if(typeof n!="function")throw new Zt(c);o=nr(o)||0,Qe(u)&&(L=!!u.leading,B="maxWait"in u,y=B?lt(nr(u.maxWait)||0,o):y,V="trailing"in u?!!u.trailing:V);function ee(ot){var dr=f,$r=h;return f=h=t,N=ot,S=n.apply($r,dr),S}function ae(ot){return N=ot,T=Ca(Se,o),L?ee(ot):S}function be(ot){var dr=ot-A,$r=ot-N,Dd=o-dr;return B?bt(Dd,y-$r):Dd}function oe(ot){var dr=ot-A,$r=ot-N;return A===t||dr>=o||dr<0||B&&$r>=y}function Se(){var ot=Bo();if(oe(ot))return Ce(ot);T=Ca(Se,be(ot))}function Ce(ot){return T=t,V&&f?ee(ot):(f=h=t,S)}function Ht(){T!==t&&Sf(T),N=0,f=A=h=T=t}function At(){return T===t?S:Ce(Bo())}function qt(){var ot=Bo(),dr=oe(ot);if(f=arguments,h=this,A=ot,dr){if(T===t)return ae(A);if(B)return Sf(T),T=Ca(Se,o),ee(A)}return T===t&&(T=Ca(Se,o)),S}return qt.cancel=Ht,qt.flush=At,qt}var S_=_e(function(n,o){return ef(n,1,o)}),w_=_e(function(n,o,u){return ef(n,nr(o)||0,u)});function T_(n){return Ar(n,te)}function Wo(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Zt(c);var u=function(){var f=arguments,h=o?o.apply(this,f):f[0],y=u.cache;if(y.has(h))return y.get(h);var S=n.apply(this,f);return u.cache=y.set(h,S)||y,S};return u.cache=new(Wo.Cache||Rr),u}Wo.Cache=Rr;function Uo(n){if(typeof n!="function")throw new Zt(c);return function(){var o=arguments;switch(o.length){case 0:return!n.call(this);case 1:return!n.call(this,o[0]);case 2:return!n.call(this,o[0],o[1]);case 3:return!n.call(this,o[0],o[1],o[2])}return!n.apply(this,o)}}function x_(n){return ud(2,n)}var C_=d0(function(n,o){o=o.length==1&&ve(o[0])?Je(o[0],Bt(re())):Je(vt(o,1),Bt(re()));var u=o.length;return _e(function(f){for(var h=-1,y=bt(f.length,u);++h<y;)f[h]=o[h].call(this,f[h]);return kt(n,this,f)})}),eu=_e(function(n,o){var u=Kr(o,Hn(eu));return Ar(n,O,t,o,u)}),pd=_e(function(n,o){var u=Kr(o,Hn(pd));return Ar(n,Y,t,o,u)}),R_=Pr(function(n,o){return Ar(n,z,t,t,t,o)});function O_(n,o){if(typeof n!="function")throw new Zt(c);return o=o===t?o:me(o),_e(n,o)}function A_(n,o){if(typeof n!="function")throw new Zt(c);return o=o==null?0:lt(me(o),0),_e(function(u){var f=u[o],h=en(u,0,o);return f&&Vr(h,f),kt(n,this,h)})}function P_(n,o,u){var f=!0,h=!0;if(typeof n!="function")throw new Zt(c);return Qe(u)&&(f="leading"in u?!!u.leading:f,h="trailing"in u?!!u.trailing:h),dd(n,o,{leading:f,maxWait:o,trailing:h})}function D_(n){return id(n,1)}function I_(n,o){return eu(ji(o),n)}function F_(){if(!arguments.length)return[];var n=arguments[0];return ve(n)?n:[n]}function $_(n){return er(n,E)}function M_(n,o){return o=typeof o=="function"?o:t,er(n,E,o)}function N_(n){return er(n,m|E)}function L_(n,o){return o=typeof o=="function"?o:t,er(n,m|E,o)}function j_(n,o){return o==null||Ql(n,o,pt(o))}function fr(n,o){return n===o||n!==n&&o!==o}var k_=$o(Ci),B_=$o(function(n,o){return n>=o}),xn=of(function(){return arguments}())?of:function(n){return rt(n)&&je.call(n,"callee")&&!Gl.call(n,"callee")},ve=D.isArray,W_=Cl?Bt(Cl):Ky;function $t(n){return n!=null&&Ho(n.length)&&!Ir(n)}function at(n){return rt(n)&&$t(n)}function U_(n){return n===!0||n===!1||rt(n)&&Rt(n)==ue}var tn=ry||fu,H_=Rl?Bt(Rl):Jy;function q_(n){return rt(n)&&n.nodeType===1&&!Ra(n)}function G_(n){if(n==null)return!0;if($t(n)&&(ve(n)||typeof n=="string"||typeof n.splice=="function"||tn(n)||qn(n)||xn(n)))return!n.length;var o=_t(n);if(o==qe||o==Ct)return!n.size;if(xa(n))return!Ai(n).length;for(var u in n)if(je.call(n,u))return!1;return!0}function z_(n,o){return Sa(n,o)}function Y_(n,o,u){u=typeof u=="function"?u:t;var f=u?u(n,o):t;return f===t?Sa(n,o,t,u):!!f}function tu(n){if(!rt(n))return!1;var o=Rt(n);return o==K||o==ge||typeof n.message=="string"&&typeof n.name=="string"&&!Ra(n)}function V_(n){return typeof n=="number"&&Yl(n)}function Ir(n){if(!Qe(n))return!1;var o=Rt(n);return o==F||o==Ye||o==ce||o==Vs}function hd(n){return typeof n=="number"&&n==me(n)}function Ho(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=nt}function Qe(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function rt(n){return n!=null&&typeof n=="object"}var gd=Ol?Bt(Ol):Zy;function K_(n,o){return n===o||Oi(n,o,Gi(o))}function J_(n,o,u){return u=typeof u=="function"?u:t,Oi(n,o,Gi(o),u)}function X_(n){return vd(n)&&n!=+n}function Z_(n){if(M0(n))throw new pe(i);return sf(n)}function Q_(n){return n===null}function eE(n){return n==null}function vd(n){return typeof n=="number"||rt(n)&&Rt(n)==yt}function Ra(n){if(!rt(n)||Rt(n)!=Vt)return!1;var o=vo(n);if(o===null)return!0;var u=je.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&fo.call(u)==Jm}var ru=Al?Bt(Al):Qy;function tE(n){return hd(n)&&n>=-nt&&n<=nt}var md=Pl?Bt(Pl):e0;function qo(n){return typeof n=="string"||!ve(n)&&rt(n)&&Rt(n)==fn}function Ut(n){return typeof n=="symbol"||rt(n)&&Rt(n)==dn}var qn=Dl?Bt(Dl):t0;function rE(n){return n===t}function nE(n){return rt(n)&&_t(n)==xr}function aE(n){return rt(n)&&Rt(n)==Ks}var oE=$o(Pi),sE=$o(function(n,o){return n<=o});function yd(n){if(!n)return[];if($t(n))return qo(n)?cr(n):Ft(n);if(ha&&n[ha])return jm(n[ha]());var o=_t(n),u=o==qe?mi:o==Ct?uo:Gn;return u(n)}function Fr(n){if(!n)return n===0?n:0;if(n=nr(n),n===He||n===-He){var o=n<0?-1:1;return o*Yt}return n===n?n:0}function me(n){var o=Fr(n),u=o%1;return o===o?u?o-u:o:0}function bd(n){return n?En(me(n),0,G):0}function nr(n){if(typeof n=="number")return n;if(Ut(n))return W;if(Qe(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Qe(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=Ll(n);var u=ro.test(n);return u||Hv.test(n)?Em(n.slice(2),u?2:8):zr.test(n)?W:+n}function _d(n){return br(n,Mt(n))}function iE(n){return n?En(me(n),-nt,nt):n===0?n:0}function De(n){return n==null?"":Wt(n)}var uE=Wn(function(n,o){if(xa(o)||$t(o)){br(o,pt(o),n);return}for(var u in o)je.call(o,u)&&ba(n,u,o[u])}),Ed=Wn(function(n,o){br(o,Mt(o),n)}),Go=Wn(function(n,o,u,f){br(o,Mt(o),n,f)}),cE=Wn(function(n,o,u,f){br(o,pt(o),n,f)}),lE=Pr(wi);function fE(n,o){var u=Bn(n);return o==null?u:Zl(u,o)}var dE=_e(function(n,o){n=Ue(n);var u=-1,f=o.length,h=f>2?o[2]:t;for(h&&Ot(o[0],o[1],h)&&(f=1);++u<f;)for(var y=o[u],S=Mt(y),T=-1,A=S.length;++T<A;){var N=S[T],L=n[N];(L===t||fr(L,Ln[N])&&!je.call(n,N))&&(n[N]=y[N])}return n}),pE=_e(function(n){return n.push(t,jf),kt(Sd,t,n)});function hE(n,o){return Fl(n,re(o,3),yr)}function gE(n,o){return Fl(n,re(o,3),xi)}function vE(n,o){return n==null?n:Ti(n,re(o,3),Mt)}function mE(n,o){return n==null?n:nf(n,re(o,3),Mt)}function yE(n,o){return n&&yr(n,re(o,3))}function bE(n,o){return n&&xi(n,re(o,3))}function _E(n){return n==null?[]:Co(n,pt(n))}function EE(n){return n==null?[]:Co(n,Mt(n))}function nu(n,o,u){var f=n==null?t:Sn(n,o);return f===t?u:f}function SE(n,o){return n!=null&&Wf(n,o,Gy)}function au(n,o){return n!=null&&Wf(n,o,zy)}var wE=Ff(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=po.call(o)),n[o]=u},su(Nt)),TE=Ff(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=po.call(o)),je.call(n,o)?n[o].push(u):n[o]=[u]},re),xE=_e(Ea);function pt(n){return $t(n)?Jl(n):Ai(n)}function Mt(n){return $t(n)?Jl(n,!0):r0(n)}function CE(n,o){var u={};return o=re(o,3),yr(n,function(f,h,y){Or(u,o(f,h,y),f)}),u}function RE(n,o){var u={};return o=re(o,3),yr(n,function(f,h,y){Or(u,h,o(f,h,y))}),u}var OE=Wn(function(n,o,u){Ro(n,o,u)}),Sd=Wn(function(n,o,u,f){Ro(n,o,u,f)}),AE=Pr(function(n,o){var u={};if(n==null)return u;var f=!1;o=Je(o,function(y){return y=Qr(y,n),f||(f=y.length>1),y}),br(n,Hi(n),u),f&&(u=er(u,m|b|E,w0));for(var h=o.length;h--;)Mi(u,o[h]);return u});function PE(n,o){return wd(n,Uo(re(o)))}var DE=Pr(function(n,o){return n==null?{}:a0(n,o)});function wd(n,o){if(n==null)return{};var u=Je(Hi(n),function(f){return[f]});return o=re(o),hf(n,u,function(f,h){return o(f,h[0])})}function IE(n,o,u){o=Qr(o,n);var f=-1,h=o.length;for(h||(h=1,n=t);++f<h;){var y=n==null?t:n[_r(o[f])];y===t&&(f=h,y=u),n=Ir(y)?y.call(n):y}return n}function FE(n,o,u){return n==null?n:wa(n,o,u)}function $E(n,o,u,f){return f=typeof f=="function"?f:t,n==null?n:wa(n,o,u,f)}var Td=Nf(pt),xd=Nf(Mt);function ME(n,o,u){var f=ve(n),h=f||tn(n)||qn(n);if(o=re(o,4),u==null){var y=n&&n.constructor;h?u=f?new y:[]:Qe(n)?u=Ir(y)?Bn(vo(n)):{}:u={}}return(h?Xt:yr)(n,function(S,T,A){return o(u,S,T,A)}),u}function NE(n,o){return n==null?!0:Mi(n,o)}function LE(n,o,u){return n==null?n:bf(n,o,ji(u))}function jE(n,o,u,f){return f=typeof f=="function"?f:t,n==null?n:bf(n,o,ji(u),f)}function Gn(n){return n==null?[]:vi(n,pt(n))}function kE(n){return n==null?[]:vi(n,Mt(n))}function BE(n,o,u){return u===t&&(u=o,o=t),u!==t&&(u=nr(u),u=u===u?u:0),o!==t&&(o=nr(o),o=o===o?o:0),En(nr(n),o,u)}function WE(n,o,u){return o=Fr(o),u===t?(u=o,o=0):u=Fr(u),n=nr(n),Yy(n,o,u)}function UE(n,o,u){if(u&&typeof u!="boolean"&&Ot(n,o,u)&&(o=u=t),u===t&&(typeof o=="boolean"?(u=o,o=t):typeof n=="boolean"&&(u=n,n=t)),n===t&&o===t?(n=0,o=1):(n=Fr(n),o===t?(o=n,n=0):o=Fr(o)),n>o){var f=n;n=o,o=f}if(u||n%1||o%1){var h=Vl();return bt(n+h*(o-n+_m("1e-"+((h+"").length-1))),o)}return Ii(n,o)}var HE=Un(function(n,o,u){return o=o.toLowerCase(),n+(u?Cd(o):o)});function Cd(n){return ou(De(n).toLowerCase())}function Rd(n){return n=De(n),n&&n.replace(Gv,Fm).replace(lm,"")}function qE(n,o,u){n=De(n),o=Wt(o);var f=n.length;u=u===t?f:En(me(u),0,f);var h=u;return u-=o.length,u>=0&&n.slice(u,h)==o}function GE(n){return n=De(n),n&&Xs.test(n)?n.replace(da,$m):n}function zE(n){return n=De(n),n&&U.test(n)?n.replace(w,"\\$&"):n}var YE=Un(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),VE=Un(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),KE=Pf("toLowerCase");function JE(n,o,u){n=De(n),o=me(o);var f=o?Mn(n):0;if(!o||f>=o)return n;var h=(o-f)/2;return Fo(_o(h),u)+n+Fo(bo(h),u)}function XE(n,o,u){n=De(n),o=me(o);var f=o?Mn(n):0;return o&&f<o?n+Fo(o-f,u):n}function ZE(n,o,u){n=De(n),o=me(o);var f=o?Mn(n):0;return o&&f<o?Fo(o-f,u)+n:n}function QE(n,o,u){return u||o==null?o=0:o&&(o=+o),sy(De(n).replace(J,""),o||0)}function e1(n,o,u){return(u?Ot(n,o,u):o===t)?o=1:o=me(o),Fi(De(n),o)}function t1(){var n=arguments,o=De(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var r1=Un(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function n1(n,o,u){return u&&typeof u!="number"&&Ot(n,o,u)&&(o=u=t),u=u===t?G:u>>>0,u?(n=De(n),n&&(typeof o=="string"||o!=null&&!ru(o))&&(o=Wt(o),!o&&$n(n))?en(cr(n),0,u):n.split(o,u)):[]}var a1=Un(function(n,o,u){return n+(u?" ":"")+ou(o)});function o1(n,o,u){return n=De(n),u=u==null?0:En(me(u),0,n.length),o=Wt(o),n.slice(u,u+o.length)==o}function s1(n,o,u){var f=v.templateSettings;u&&Ot(n,o,u)&&(o=t),n=De(n),o=Go({},o,f,Lf);var h=Go({},o.imports,f.imports,Lf),y=pt(h),S=vi(h,y),T,A,N=0,L=o.interpolate||no,B="__p += '",V=yi((o.escape||no).source+"|"+L.source+"|"+(L===to?tt:no).source+"|"+(o.evaluate||no).source+"|$","g"),ee="//# sourceURL="+(je.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++gm+"]")+`
|
|
18
|
-
`;n.replace(V,function(oe,Se,Ce,Ht,At,
|
|
17
|
+
`)}function Db(n){return ve(n)||Tn(n)||!!(Yl&&n&&n[Yl])}function Dr(n,o){var u=typeof n;return o=o??nt,!!o&&(u=="number"||u!="symbol"&&Hv.test(n))&&n>-1&&n%1==0&&n<o}function Ot(n,o,u){if(!Qe(u))return!1;var f=typeof o;return(f=="number"?$t(u)&&Dr(o,u.length):f=="string"&&o in u)?fr(u[o],n):!1}function Yi(n,o){if(ve(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||Ut(n)?!0:ei.test(n)||!Qs.test(n)||o!=null&&n in Ue(o)}function Ib(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function Vi(n){var o=Mo(n),u=v[o];if(typeof u!="function"||!(o in we.prototype))return!1;if(n===u)return!0;var f=Gi(u);return!!f&&n===f[0]}function Fb(n){return!!Hl&&Hl in n}var $b=lo?Ir:fu;function Ta(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 qf(n,o){return function(u){return u==null?!1:u[n]===o&&(o!==t||n in Ue(u))}}function Mb(n){var o=Wo(n,function(f){return u.size===p&&u.clear(),f}),u=o.cache;return o}function Nb(n,o){var u=n[1],f=o[1],h=u|f,y=h<(I|P|H),S=f==H&&u==M||f==H&&u==z&&n[7].length<=o[8]||f==(H|z)&&o[7].length<=o[8]&&u==M;if(!(y||S))return n;f&I&&(n[2]=o[2],h|=u&I?0:j);var T=o[3];if(T){var A=n[3];n[3]=A?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 Lb(n){var o=[];if(n!=null)for(var u in Ue(n))o.push(u);return o}function kb(n){return po.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:En(n,tr(o,0,-1))}function jb(n,o){for(var u=n.length,f=bt(o.length,u),h=Ft(n);f--;){var y=o[f];n[f]=Dr(y,u)?h[y]:t}return n}function Ki(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var Vf=Jf(mf),xa=ey||function(n,o){return gt.setTimeout(n,o)},Ji=Jf(ub);function Kf(n,o,u){var f=o+"";return Ji(n,Pb(f,Bb(Rb(f),u)))}function Jf(n){var o=0,u=0;return function(){var f=ay(),h=X-(f-u);if(u=f,h>0){if(++o>=it)return arguments[0]}else o=0;return n.apply(t,arguments)}}function Lo(n,o){var u=-1,f=n.length,h=f-1;for(o=o===t?f:o;++u<o;){var y=Ii(u,h),S=n[y];n[y]=n[u],n[u]=S}return n.length=o,n}var Xf=Mb(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(ti,function(u,f,h,y){o.push(h?y.replace(Ze,"$1"):f||u)}),o});function _r(n){if(typeof n=="string"||Ut(n))return n;var o=n+"";return o=="0"&&1/n==-Ge?"-0":o}function wn(n){if(n!=null){try{return fo.call(n)}catch{}try{return n+""}catch{}}return""}function Bb(n,o){return Xt(se,function(u){var f="_."+u[0];o&u[1]&&!so(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 Wb(n,o,u){(u?Ot(n,o,u):o===t)?o=1:o=lt(me(o),0);var f=n==null?0:n.length;if(!f||o<1)return[];for(var h=0,y=0,S=D(bo(f/o));h<f;)S[y++]=tr(n,h,h+=o);return S}function Ub(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 Hb(){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 Gb=_e(function(n,o){return at(n)?ba(n,vt(o,1,at,!0)):[]}),qb=_e(function(n,o){var u=rr(o);return at(u)&&(u=t),at(n)?ba(n,vt(o,1,at,!0),re(u,2)):[]}),zb=_e(function(n,o){var u=rr(o);return at(u)&&(u=t),at(n)?ba(n,vt(o,1,at,!0),t,u):[]});function Yb(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 Vb(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 Kb(n,o){return n&&n.length?Ao(n,re(o,3),!0,!0):[]}function Jb(n,o){return n&&n.length?Ao(n,re(o,3),!0):[]}function Xb(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),Hy(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)),io(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)),io(n,re(o,3),h,!0)}function td(n){var o=n==null?0:n.length;return o?vt(n,1):[]}function Zb(n){var o=n==null?0:n.length;return o?vt(n,Ge):[]}function Qb(n,o){var u=n==null?0:n.length;return u?(o=o===t?1:me(o),vt(n,o)):[]}function e0(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 t0(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 r0(n){var o=n==null?0:n.length;return o?tr(n,0,-1):[]}var n0=_e(function(n){var o=Je(n,Li);return o.length&&o[0]===n[0]?Ri(o):[]}),a0=_e(function(n){var o=rr(n),u=Je(n,Li);return o===rr(u)?o=t:u.pop(),u.length&&u[0]===n[0]?Ri(u,re(o,2)):[]}),o0=_e(function(n){var o=rr(n),u=Je(n,Li);return o=typeof o=="function"?o:t,o&&u.pop(),u.length&&u[0]===n[0]?Ri(u,t,o):[]});function s0(n,o){return n==null?"":ry.call(n,o)}function rr(n){var o=n==null?0:n.length;return o?n[o-1]:t}function i0(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?Bm(n,o,h):io(n,Ml,h,!0)}function u0(n,o){return n&&n.length?pf(n,me(o)):t}var c0=_e(nd);function nd(n,o){return n&&n.length&&o&&o.length?Di(n,o):n}function l0(n,o,u){return n&&n.length&&o&&o.length?Di(n,o,re(u,2)):n}function f0(n,o,u){return n&&n.length&&o&&o.length?Di(n,o,t,u):n}var d0=Pr(function(n,o){var u=n==null?0:n.length,f=wi(n,o);return vf(n,Je(o,function(h){return Dr(h,u)?+h:h}).sort(Cf)),f});function p0(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 Xi(n){return n==null?n:sy.call(n)}function h0(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 g0(n,o){return Oo(n,o)}function v0(n,o,u){return $i(n,o,re(u,2))}function m0(n,o){var u=n==null?0:n.length;if(u){var f=Oo(n,o);if(f<u&&fr(n[f],o))return f}return-1}function y0(n,o){return Oo(n,o,!0)}function b0(n,o,u){return $i(n,o,re(u,2),!0)}function _0(n,o){var u=n==null?0:n.length;if(u){var f=Oo(n,o,!0)-1;if(fr(n[f],o))return f}return-1}function E0(n){return n&&n.length?yf(n):[]}function S0(n,o){return n&&n.length?yf(n,re(o,2)):[]}function w0(n){var o=n==null?0:n.length;return o?tr(n,1,o):[]}function T0(n,o,u){return n&&n.length?(o=u||o===t?1:me(o),tr(n,0,o<0?0:o)):[]}function x0(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===t?1:me(o),o=f-o,tr(n,o<0?0:o,f)):[]}function C0(n,o){return n&&n.length?Ao(n,re(o,3),!1,!0):[]}function R0(n,o){return n&&n.length?Ao(n,re(o,3)):[]}var O0=_e(function(n){return Zr(vt(n,1,at,!0))}),A0=_e(function(n){var o=rr(n);return at(o)&&(o=t),Zr(vt(n,1,at,!0),re(o,2))}),P0=_e(function(n){var o=rr(n);return o=typeof o=="function"?o:t,Zr(vt(n,1,at,!0),t,o)});function D0(n){return n&&n.length?Zr(n):[]}function I0(n,o){return n&&n.length?Zr(n,re(o,2)):[]}function F0(n,o){return o=typeof o=="function"?o:t,n&&n.length?Zr(n,t,o):[]}function Zi(n){if(!(n&&n.length))return[];var o=0;return n=Yr(n,function(u){if(at(u))return o=lt(u.length,o),!0}),gi(o,function(u){return Je(n,di(u))})}function ad(n,o){if(!(n&&n.length))return[];var u=Zi(n);return o==null?u:Je(u,function(f){return jt(o,t,f)})}var $0=_e(function(n,o){return at(n)?ba(n,o):[]}),M0=_e(function(n){return Ni(Yr(n,at))}),N0=_e(function(n){var o=rr(n);return at(o)&&(o=t),Ni(Yr(n,at),re(o,2))}),L0=_e(function(n){var o=rr(n);return o=typeof o=="function"?o:t,Ni(Yr(n,at),t,o)}),k0=_e(Zi);function j0(n,o){return Sf(n||[],o||[],ya)}function B0(n,o){return Sf(n||[],o||[],Sa)}var W0=_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 U0(n,o){return o(n),n}function ko(n,o){return o(n)}var H0=Pr(function(n){var o=n.length,u=o?n[0]:0,f=this.__wrapped__,h=function(y){return wi(y,n)};return o>1||this.__actions__.length||!(f instanceof we)||!Dr(u)?this.thru(h):(f=f.slice(u,+u+(o?1:0)),f.__actions__.push({func:ko,args:[h],thisArg:t}),new Qt(f,this.__chain__).thru(function(y){return o&&!y.length&&y.push(t),y}))});function G0(){return od(this)}function q0(){return new Qt(this.value(),this.__chain__)}function z0(){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 Y0(){return this}function V0(n){for(var o,u=this;u instanceof wo;){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 K0(){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:ko,args:[Xi],thisArg:t}),new Qt(o,this.__chain__)}return this.thru(Xi)}function J0(){return Ef(this.__wrapped__,this.__actions__)}var X0=Po(function(n,o,u){ke.call(n,u)?++n[u]:Or(n,u,1)});function Z0(n,o,u){var f=ve(n)?Fl:Uy;return u&&Ot(n,o,u)&&(o=t),f(n,re(o,3))}function Q0(n,o){var u=ve(n)?Yr:nf;return u(n,re(o,3))}var e_=If(Qf),t_=If(ed);function r_(n,o){return vt(jo(n,o),1)}function n_(n,o){return vt(jo(n,o),Ge)}function a_(n,o,u){return u=u===t?1:me(u),vt(jo(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)?wm:rf;return u(n,re(o,3))}var o_=Po(function(n,o,u){ke.call(n,u)?n[u].push(o):Or(n,u,[o])});function s_(n,o,u,f){n=$t(n)?n:Gn(n),u=u&&!f?me(u):0;var h=n.length;return u<0&&(u=lt(h+u,0)),Go(n)?u<=h&&n.indexOf(o,u)>-1:!!h&&In(n,o,u)>-1}var i_=_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):_a(S,o,u)}),y}),u_=Po(function(n,o,u){Or(n,u,o)});function jo(n,o){var u=ve(n)?Je:lf;return u(n,re(o,3))}function c_(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 l_=Po(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function f_(n,o,u){var f=ve(n)?li:Ll,h=arguments.length<3;return f(n,re(o,4),u,h,Xr)}function d_(n,o,u){var f=ve(n)?Tm:Ll,h=arguments.length<3;return f(n,re(o,4),u,h,rf)}function p_(n,o){var u=ve(n)?Yr:nf;return u(n,Uo(re(o,3)))}function h_(n){var o=ve(n)?Zl:sb;return o(n)}function g_(n,o,u){(u?Ot(n,o,u):o===t)?o=1:o=me(o);var f=ve(n)?Ly:ib;return f(n,o)}function v_(n){var o=ve(n)?ky:cb;return o(n)}function m_(n){if(n==null)return 0;if($t(n))return Go(n)?$n(n):n.length;var o=_t(n);return o==qe||o==Ct?n.size:Ai(n).length}function y_(n,o,u){var f=ve(n)?fi:lb;return u&&Ot(n,o,u)&&(o=t),f(n,re(o,3))}var b_=_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),[])}),Bo=Qm||function(){return gt.Date.now()};function __(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,Ar(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 Qi=_e(function(n,o,u){var f=I;if(u.length){var h=Kr(u,Un(Qi));f|=O}return Ar(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 Ar(o,f,n,u,h)});function fd(n,o,u){o=u?t:o;var f=Ar(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=Ar(n,k,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 dr=f,$r=h;return f=h=t,N=ot,S=n.apply($r,dr),S}function ae(ot){return N=ot,T=xa(Se,o),L?ee(ot):S}function be(ot){var dr=ot-A,$r=ot-N,Id=o-dr;return B?bt(Id,y-$r):Id}function oe(ot){var dr=ot-A,$r=ot-N;return A===t||dr>=o||dr<0||B&&$r>=y}function Se(){var ot=Bo();if(oe(ot))return Ce(ot);T=xa(Se,be(ot))}function Ce(ot){return T=t,V&&f?ee(ot):(f=h=t,S)}function Ht(){T!==t&&wf(T),N=0,f=A=h=T=t}function At(){return T===t?S:Ce(Bo())}function Gt(){var ot=Bo(),dr=oe(ot);if(f=arguments,h=this,A=ot,dr){if(T===t)return ae(A);if(B)return wf(T),T=xa(Se,o),ee(A)}return T===t&&(T=xa(Se,o)),S}return Gt.cancel=Ht,Gt.flush=At,Gt}var E_=_e(function(n,o){return tf(n,1,o)}),S_=_e(function(n,o,u){return tf(n,nr(o)||0,u)});function w_(n){return Ar(n,te)}function Wo(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Zt(c);var u=function(){var f=arguments,h=o?o.apply(this,f):f[0],y=u.cache;if(y.has(h))return y.get(h);var S=n.apply(this,f);return u.cache=y.set(h,S)||y,S};return u.cache=new(Wo.Cache||Rr),u}Wo.Cache=Rr;function Uo(n){if(typeof n!="function")throw new Zt(c);return function(){var o=arguments;switch(o.length){case 0:return!n.call(this);case 1:return!n.call(this,o[0]);case 2:return!n.call(this,o[0],o[1]);case 3:return!n.call(this,o[0],o[1],o[2])}return!n.apply(this,o)}}function T_(n){return cd(2,n)}var x_=fb(function(n,o){o=o.length==1&&ve(o[0])?Je(o[0],Bt(re())):Je(vt(o,1),Bt(re()));var u=o.length;return _e(function(f){for(var h=-1,y=bt(f.length,u);++h<y;)f[h]=o[h].call(this,f[h]);return jt(n,this,f)})}),eu=_e(function(n,o){var u=Kr(o,Un(eu));return Ar(n,O,t,o,u)}),hd=_e(function(n,o){var u=Kr(o,Un(hd));return Ar(n,Y,t,o,u)}),C_=Pr(function(n,o){return Ar(n,z,t,t,t,o)});function R_(n,o){if(typeof n!="function")throw new Zt(c);return o=o===t?o:me(o),_e(n,o)}function O_(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 A_(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 P_(n){return ud(n,1)}function D_(n,o){return eu(ki(o),n)}function I_(){if(!arguments.length)return[];var n=arguments[0];return ve(n)?n:[n]}function F_(n){return er(n,E)}function $_(n,o){return o=typeof o=="function"?o:t,er(n,E,o)}function M_(n){return er(n,m|E)}function N_(n,o){return o=typeof o=="function"?o:t,er(n,m|E,o)}function L_(n,o){return o==null||ef(n,o,pt(o))}function fr(n,o){return n===o||n!==n&&o!==o}var k_=$o(Ci),j_=$o(function(n,o){return n>=o}),Tn=sf(function(){return arguments}())?sf:function(n){return rt(n)&&ke.call(n,"callee")&&!zl.call(n,"callee")},ve=D.isArray,B_=Rl?Bt(Rl):Vy;function $t(n){return n!=null&&Ho(n.length)&&!Ir(n)}function at(n){return rt(n)&&$t(n)}function W_(n){return n===!0||n===!1||rt(n)&&Rt(n)==ue}var tn=ty||fu,U_=Ol?Bt(Ol):Ky;function H_(n){return rt(n)&&n.nodeType===1&&!Ca(n)}function G_(n){if(n==null)return!0;if($t(n)&&(ve(n)||typeof n=="string"||typeof n.splice=="function"||tn(n)||Hn(n)||Tn(n)))return!n.length;var o=_t(n);if(o==qe||o==Ct)return!n.size;if(Ta(n))return!Ai(n).length;for(var u in n)if(ke.call(n,u))return!1;return!0}function q_(n,o){return Ea(n,o)}function z_(n,o,u){u=typeof u=="function"?u:t;var f=u?u(n,o):t;return f===t?Ea(n,o,t,u):!!f}function tu(n){if(!rt(n))return!1;var o=Rt(n);return o==K||o==ge||typeof n.message=="string"&&typeof n.name=="string"&&!Ca(n)}function Y_(n){return typeof n=="number"&&Vl(n)}function Ir(n){if(!Qe(n))return!1;var o=Rt(n);return o==F||o==Ye||o==ce||o==Vs}function gd(n){return typeof n=="number"&&n==me(n)}function Ho(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=nt}function Qe(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function rt(n){return n!=null&&typeof n=="object"}var vd=Al?Bt(Al):Xy;function V_(n,o){return n===o||Oi(n,o,qi(o))}function K_(n,o,u){return u=typeof u=="function"?u:t,Oi(n,o,qi(o),u)}function J_(n){return md(n)&&n!=+n}function X_(n){if($b(n))throw new pe(i);return uf(n)}function Z_(n){return n===null}function Q_(n){return n==null}function md(n){return typeof n=="number"||rt(n)&&Rt(n)==yt}function Ca(n){if(!rt(n)||Rt(n)!=Vt)return!1;var o=vo(n);if(o===null)return!0;var u=ke.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&fo.call(u)==Km}var ru=Pl?Bt(Pl):Zy;function eE(n){return gd(n)&&n>=-nt&&n<=nt}var yd=Dl?Bt(Dl):Qy;function Go(n){return typeof n=="string"||!ve(n)&&rt(n)&&Rt(n)==ln}function Ut(n){return typeof n=="symbol"||rt(n)&&Rt(n)==fn}var Hn=Il?Bt(Il):eb;function tE(n){return n===t}function rE(n){return rt(n)&&_t(n)==xr}function nE(n){return rt(n)&&Rt(n)==Ks}var aE=$o(Pi),oE=$o(function(n,o){return n<=o});function bd(n){if(!n)return[];if($t(n))return Go(n)?cr(n):Ft(n);if(pa&&n[pa])return Lm(n[pa]());var o=_t(n),u=o==qe?mi:o==Ct?uo:Gn;return u(n)}function Fr(n){if(!n)return n===0?n:0;if(n=nr(n),n===Ge||n===-Ge){var o=n<0?-1:1;return o*Yt}return n===n?n:0}function me(n){var o=Fr(n),u=o%1;return o===o?u?o-u:o:0}function _d(n){return n?_n(me(n),0,q):0}function nr(n){if(typeof n=="number")return n;if(Ut(n))return W;if(Qe(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Qe(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=kl(n);var u=ro.test(n);return u||Uv.test(n)?_m(n.slice(2),u?2:8):zr.test(n)?W:+n}function Ed(n){return br(n,Mt(n))}function sE(n){return n?_n(me(n),-nt,nt):n===0?n:0}function De(n){return n==null?"":Wt(n)}var iE=Bn(function(n,o){if(Ta(o)||$t(o)){br(o,pt(o),n);return}for(var u in o)ke.call(o,u)&&ya(n,u,o[u])}),Sd=Bn(function(n,o){br(o,Mt(o),n)}),qo=Bn(function(n,o,u,f){br(o,Mt(o),n,f)}),uE=Bn(function(n,o,u,f){br(o,pt(o),n,f)}),cE=Pr(wi);function lE(n,o){var u=jn(n);return o==null?u:Ql(u,o)}var fE=_e(function(n,o){n=Ue(n);var u=-1,f=o.length,h=f>2?o[2]:t;for(h&&Ot(o[0],o[1],h)&&(f=1);++u<f;)for(var y=o[u],S=Mt(y),T=-1,A=S.length;++T<A;){var N=S[T],L=n[N];(L===t||fr(L,Nn[N])&&!ke.call(n,N))&&(n[N]=y[N])}return n}),dE=_e(function(n){return n.push(t,jf),jt(wd,t,n)});function pE(n,o){return $l(n,re(o,3),yr)}function hE(n,o){return $l(n,re(o,3),xi)}function gE(n,o){return n==null?n:Ti(n,re(o,3),Mt)}function vE(n,o){return n==null?n:af(n,re(o,3),Mt)}function mE(n,o){return n&&yr(n,re(o,3))}function yE(n,o){return n&&xi(n,re(o,3))}function bE(n){return n==null?[]:Co(n,pt(n))}function _E(n){return n==null?[]:Co(n,Mt(n))}function nu(n,o,u){var f=n==null?t:En(n,o);return f===t?u:f}function EE(n,o){return n!=null&&Uf(n,o,Gy)}function au(n,o){return n!=null&&Uf(n,o,qy)}var SE=$f(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=po.call(o)),n[o]=u},su(Nt)),wE=$f(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=po.call(o)),ke.call(n,o)?n[o].push(u):n[o]=[u]},re),TE=_e(_a);function pt(n){return $t(n)?Xl(n):Ai(n)}function Mt(n){return $t(n)?Xl(n,!0):tb(n)}function xE(n,o){var u={};return o=re(o,3),yr(n,function(f,h,y){Or(u,o(f,h,y),f)}),u}function CE(n,o){var u={};return o=re(o,3),yr(n,function(f,h,y){Or(u,h,o(f,h,y))}),u}var RE=Bn(function(n,o,u){Ro(n,o,u)}),wd=Bn(function(n,o,u,f){Ro(n,o,u,f)}),OE=Pr(function(n,o){var u={};if(n==null)return u;var f=!1;o=Je(o,function(y){return y=Qr(y,n),f||(f=y.length>1),y}),br(n,Hi(n),u),f&&(u=er(u,m|_|E,Sb));for(var h=o.length;h--;)Mi(u,o[h]);return u});function AE(n,o){return Td(n,Uo(re(o)))}var PE=Pr(function(n,o){return n==null?{}:nb(n,o)});function Td(n,o){if(n==null)return{};var u=Je(Hi(n),function(f){return[f]});return o=re(o),gf(n,u,function(f,h){return o(f,h[0])})}function DE(n,o,u){o=Qr(o,n);var f=-1,h=o.length;for(h||(h=1,n=t);++f<h;){var y=n==null?t:n[_r(o[f])];y===t&&(f=h,y=u),n=Ir(y)?y.call(n):y}return n}function IE(n,o,u){return n==null?n:Sa(n,o,u)}function FE(n,o,u,f){return f=typeof f=="function"?f:t,n==null?n:Sa(n,o,u,f)}var xd=Lf(pt),Cd=Lf(Mt);function $E(n,o,u){var f=ve(n),h=f||tn(n)||Hn(n);if(o=re(o,4),u==null){var y=n&&n.constructor;h?u=f?new y:[]:Qe(n)?u=Ir(y)?jn(vo(n)):{}:u={}}return(h?Xt:yr)(n,function(S,T,A){return o(u,S,T,A)}),u}function ME(n,o){return n==null?!0:Mi(n,o)}function NE(n,o,u){return n==null?n:_f(n,o,ki(u))}function LE(n,o,u,f){return f=typeof f=="function"?f:t,n==null?n:_f(n,o,ki(u),f)}function Gn(n){return n==null?[]:vi(n,pt(n))}function kE(n){return n==null?[]:vi(n,Mt(n))}function jE(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),_n(nr(n),o,u)}function BE(n,o,u){return o=Fr(o),u===t?(u=o,o=0):u=Fr(u),n=nr(n),zy(n,o,u)}function WE(n,o,u){if(u&&typeof u!="boolean"&&Ot(n,o,u)&&(o=u=t),u===t&&(typeof o=="boolean"?(u=o,o=t):typeof n=="boolean"&&(u=n,n=t)),n===t&&o===t?(n=0,o=1):(n=Fr(n),o===t?(o=n,n=0):o=Fr(o)),n>o){var f=n;n=o,o=f}if(u||n%1||o%1){var h=Kl();return bt(n+h*(o-n+bm("1e-"+((h+"").length-1))),o)}return Ii(n,o)}var UE=Wn(function(n,o,u){return o=o.toLowerCase(),n+(u?Rd(o):o)});function Rd(n){return ou(De(n).toLowerCase())}function Od(n){return n=De(n),n&&n.replace(Gv,Im).replace(cm,"")}function HE(n,o,u){n=De(n),o=Wt(o);var f=n.length;u=u===t?f:_n(me(u),0,f);var h=u;return u-=o.length,u>=0&&n.slice(u,h)==o}function GE(n){return n=De(n),n&&Xs.test(n)?n.replace(fa,Fm):n}function qE(n){return n=De(n),n&&U.test(n)?n.replace(w,"\\$&"):n}var zE=Wn(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),YE=Wn(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),VE=Df("toLowerCase");function KE(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 Fo(_o(h),u)+n+Fo(bo(h),u)}function JE(n,o,u){n=De(n),o=me(o);var f=o?$n(n):0;return o&&f<o?n+Fo(o-f,u):n}function XE(n,o,u){n=De(n),o=me(o);var f=o?$n(n):0;return o&&f<o?Fo(o-f,u)+n:n}function ZE(n,o,u){return u||o==null?o=0:o&&(o=+o),oy(De(n).replace(J,""),o||0)}function QE(n,o,u){return(u?Ot(n,o,u):o===t)?o=1:o=me(o),Fi(De(n),o)}function eS(){var n=arguments,o=De(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var tS=Wn(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function rS(n,o,u){return u&&typeof u!="number"&&Ot(n,o,u)&&(o=u=t),u=u===t?q:u>>>0,u?(n=De(n),n&&(typeof o=="string"||o!=null&&!ru(o))&&(o=Wt(o),!o&&Fn(n))?en(cr(n),0,u):n.split(o,u)):[]}var nS=Wn(function(n,o,u){return n+(u?" ":"")+ou(o)});function aS(n,o,u){return n=De(n),u=u==null?0:_n(me(u),0,n.length),o=Wt(o),n.slice(u,u+o.length)==o}function oS(n,o,u){var f=v.templateSettings;u&&Ot(n,o,u)&&(o=t),n=De(n),o=qo({},o,f,kf);var h=qo({},o.imports,f.imports,kf),y=pt(h),S=vi(h,y),T,A,N=0,L=o.interpolate||no,B="__p += '",V=yi((o.escape||no).source+"|"+L.source+"|"+(L===to?tt:no).source+"|"+(o.evaluate||no).source+"|$","g"),ee="//# sourceURL="+(ke.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++hm+"]")+`
|
|
18
|
+
`;n.replace(V,function(oe,Se,Ce,Ht,At,Gt){return Ce||(Ce=Ht),B+=n.slice(N,Gt).replace(qv,$m),Se&&(T=!0,B+=`' +
|
|
19
19
|
__e(`+Se+`) +
|
|
20
20
|
'`),At&&(A=!0,B+=`';
|
|
21
21
|
`+At+`;
|
|
22
22
|
__p += '`),Ce&&(B+=`' +
|
|
23
23
|
((__t = (`+Ce+`)) == null ? '' : __t) +
|
|
24
|
-
'`),N=
|
|
25
|
-
`;var ae=
|
|
24
|
+
'`),N=Gt+oe.length,oe}),B+=`';
|
|
25
|
+
`;var ae=ke.call(o,"variable")&&o.variable;if(!ae)B=`with (obj) {
|
|
26
26
|
`+B+`
|
|
27
27
|
}
|
|
28
28
|
`;else if(ht.test(ae))throw new pe(l);B=(A?B.replace(Ja,""):B).replace(Js,"$1").replace(Xa,"$1;"),B="function("+(ae||"obj")+`) {
|
|
@@ -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=Ad(function(){return Oe(y,ee+"return "+B).apply(t,S)});if(be.source=B,tu(be))throw be;return be}function i1(n){return De(n).toLowerCase()}function u1(n){return De(n).toUpperCase()}function c1(n,o,u){if(n=De(n),n&&(u||o===t))return Ll(n);if(!n||!(o=Wt(o)))return n;var f=cr(n),h=cr(o),y=jl(f,h),S=kl(f,h)+1;return en(f,y,S).join("")}function l1(n,o,u){if(n=De(n),n&&(u||o===t))return n.slice(0,Wl(n)+1);if(!n||!(o=Wt(o)))return n;var f=cr(n),h=kl(f,cr(o))+1;return en(f,0,h).join("")}function f1(n,o,u){if(n=De(n),n&&(u||o===t))return n.replace(J,"");if(!n||!(o=Wt(o)))return n;var f=cr(n),h=jl(f,cr(o));return en(f,h).join("")}function d1(n,o){var u=We,f=Te;if(Qe(o)){var h="separator"in o?o.separator:h;u="length"in o?me(o.length):u,f="omission"in o?Wt(o.omission):f}n=De(n);var y=n.length;if($n(n)){var S=cr(n);y=S.length}if(u>=y)return n;var T=u-Mn(f);if(T<1)return f;var A=S?en(S,0,T).join(""):n.slice(0,T);if(h===t)return A+f;if(S&&(T+=A.length-T),ru(h)){if(n.slice(T).search(h)){var N,L=A;for(h.global||(h=yi(h.source,De(Kt.exec(h))+"g")),h.lastIndex=0;N=h.exec(L);)var B=N.index;A=A.slice(0,B===t?T:B)}}else if(n.indexOf(Wt(h),T)!=T){var V=A.lastIndexOf(h);V>-1&&(A=A.slice(0,V))}return A+f}function p1(n){return n=De(n),n&&Qa.test(n)?n.replace(Za,Um):n}var h1=Un(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),ou=Pf("toUpperCase");function Od(n,o,u){return n=De(n),o=u?t:o,o===t?Lm(n)?Gm(n):Om(n):n.match(o)||[]}var Ad=_e(function(n,o){try{return kt(n,t,o)}catch(u){return tu(u)?u:new pe(u)}}),g1=Pr(function(n,o){return Xt(o,function(u){u=_r(u),Or(n,u,Qi(n[u],n))}),n});function v1(n){var o=n==null?0:n.length,u=re();return n=o?Je(n,function(f){if(typeof f[1]!="function")throw new Zt(c);return[u(f[0]),f[1]]}):[],_e(function(f){for(var h=-1;++h<o;){var y=n[h];if(kt(y[0],this,f))return kt(y[1],this,f)}})}function m1(n){return Uy(er(n,m))}function su(n){return function(){return n}}function y1(n,o){return n==null||n!==n?o:n}var b1=If(),_1=If(!0);function Nt(n){return n}function iu(n){return uf(typeof n=="function"?n:er(n,m))}function E1(n){return lf(er(n,m))}function S1(n,o){return ff(n,er(o,m))}var w1=_e(function(n,o){return function(u){return Ea(u,n,o)}}),T1=_e(function(n,o){return function(u){return Ea(n,u,o)}});function uu(n,o,u){var f=pt(o),h=Co(o,f);u==null&&!(Qe(o)&&(h.length||!f.length))&&(u=o,o=n,n=this,h=Co(o,pt(o)));var y=!(Qe(u)&&"chain"in u)||!!u.chain,S=Ir(n);return Xt(h,function(T){var A=o[T];n[T]=A,S&&(n.prototype[T]=function(){var N=this.__chain__;if(y||N){var L=n(this.__wrapped__),B=L.__actions__=Ft(this.__actions__);return B.push({func:A,args:arguments,thisArg:n}),L.__chain__=N,L}return A.apply(n,Vr([this.value()],arguments))})}),n}function x1(){return gt._===this&&(gt._=Xm),this}function cu(){}function C1(n){return n=me(n),_e(function(o){return df(o,n)})}var R1=Bi(Je),O1=Bi(Il),A1=Bi(fi);function Pd(n){return Yi(n)?di(_r(n)):o0(n)}function P1(n){return function(o){return n==null?t:Sn(n,o)}}var D1=$f(),I1=$f(!0);function lu(){return[]}function fu(){return!1}function F1(){return{}}function $1(){return""}function M1(){return!0}function N1(n,o){if(n=me(n),n<1||n>nt)return[];var u=G,f=bt(n,G);o=re(o),n-=G;for(var h=gi(f,o);++u<n;)o(u);return h}function L1(n){return ve(n)?Je(n,_r):Ut(n)?[n]:Ft(Jf(De(n)))}function j1(n){var o=++Km;return De(n)+o}var k1=Io(function(n,o){return n+o},0),B1=Wi("ceil"),W1=Io(function(n,o){return n/o},1),U1=Wi("floor");function H1(n){return n&&n.length?xo(n,Nt,Ci):t}function q1(n,o){return n&&n.length?xo(n,re(o,2),Ci):t}function G1(n){return Ml(n,Nt)}function z1(n,o){return Ml(n,re(o,2))}function Y1(n){return n&&n.length?xo(n,Nt,Pi):t}function V1(n,o){return n&&n.length?xo(n,re(o,2),Pi):t}var K1=Io(function(n,o){return n*o},1),J1=Wi("round"),X1=Io(function(n,o){return n-o},0);function Z1(n){return n&&n.length?hi(n,Nt):0}function Q1(n,o){return n&&n.length?hi(n,re(o,2)):0}return v.after=E_,v.ary=id,v.assign=uE,v.assignIn=Ed,v.assignInWith=Go,v.assignWith=cE,v.at=lE,v.before=ud,v.bind=Qi,v.bindAll=g1,v.bindKey=cd,v.castArray=F_,v.chain=ad,v.chunk=U0,v.compact=H0,v.concat=q0,v.cond=v1,v.conforms=m1,v.constant=su,v.countBy=Zb,v.create=fE,v.curry=ld,v.curryRight=fd,v.debounce=dd,v.defaults=dE,v.defaultsDeep=pE,v.defer=S_,v.delay=w_,v.difference=G0,v.differenceBy=z0,v.differenceWith=Y0,v.drop=V0,v.dropRight=K0,v.dropRightWhile=J0,v.dropWhile=X0,v.fill=Z0,v.filter=e_,v.flatMap=n_,v.flatMapDeep=a_,v.flatMapDepth=o_,v.flatten=ed,v.flattenDeep=Q0,v.flattenDepth=eb,v.flip=T_,v.flow=b1,v.flowRight=_1,v.fromPairs=tb,v.functions=_E,v.functionsIn=EE,v.groupBy=s_,v.initial=nb,v.intersection=ab,v.intersectionBy=ob,v.intersectionWith=sb,v.invert=wE,v.invertBy=TE,v.invokeMap=u_,v.iteratee=iu,v.keyBy=c_,v.keys=pt,v.keysIn=Mt,v.map=ko,v.mapKeys=CE,v.mapValues=RE,v.matches=E1,v.matchesProperty=S1,v.memoize=Wo,v.merge=OE,v.mergeWith=Sd,v.method=w1,v.methodOf=T1,v.mixin=uu,v.negate=Uo,v.nthArg=C1,v.omit=AE,v.omitBy=PE,v.once=x_,v.orderBy=l_,v.over=R1,v.overArgs=C_,v.overEvery=O1,v.overSome=A1,v.partial=eu,v.partialRight=pd,v.partition=f_,v.pick=DE,v.pickBy=wd,v.property=Pd,v.propertyOf=P1,v.pull=lb,v.pullAll=rd,v.pullAllBy=fb,v.pullAllWith=db,v.pullAt=pb,v.range=D1,v.rangeRight=I1,v.rearg=R_,v.reject=h_,v.remove=hb,v.rest=O_,v.reverse=Xi,v.sampleSize=v_,v.set=FE,v.setWith=$E,v.shuffle=m_,v.slice=gb,v.sortBy=__,v.sortedUniq=Sb,v.sortedUniqBy=wb,v.split=n1,v.spread=A_,v.tail=Tb,v.take=xb,v.takeRight=Cb,v.takeRightWhile=Rb,v.takeWhile=Ob,v.tap=Hb,v.throttle=P_,v.thru=jo,v.toArray=yd,v.toPairs=Td,v.toPairsIn=xd,v.toPath=L1,v.toPlainObject=_d,v.transform=ME,v.unary=D_,v.union=Ab,v.unionBy=Pb,v.unionWith=Db,v.uniq=Ib,v.uniqBy=Fb,v.uniqWith=$b,v.unset=NE,v.unzip=Zi,v.unzipWith=nd,v.update=LE,v.updateWith=jE,v.values=Gn,v.valuesIn=kE,v.without=Mb,v.words=Od,v.wrap=I_,v.xor=Nb,v.xorBy=Lb,v.xorWith=jb,v.zip=kb,v.zipObject=Bb,v.zipObjectDeep=Wb,v.zipWith=Ub,v.entries=Td,v.entriesIn=xd,v.extend=Ed,v.extendWith=Go,uu(v,v),v.add=k1,v.attempt=Ad,v.camelCase=HE,v.capitalize=Cd,v.ceil=B1,v.clamp=BE,v.clone=$_,v.cloneDeep=N_,v.cloneDeepWith=L_,v.cloneWith=M_,v.conformsTo=j_,v.deburr=Rd,v.defaultTo=y1,v.divide=W1,v.endsWith=qE,v.eq=fr,v.escape=GE,v.escapeRegExp=zE,v.every=Qb,v.find=t_,v.findIndex=Zf,v.findKey=hE,v.findLast=r_,v.findLastIndex=Qf,v.findLastKey=gE,v.floor=U1,v.forEach=od,v.forEachRight=sd,v.forIn=vE,v.forInRight=mE,v.forOwn=yE,v.forOwnRight=bE,v.get=nu,v.gt=k_,v.gte=B_,v.has=SE,v.hasIn=au,v.head=td,v.identity=Nt,v.includes=i_,v.indexOf=rb,v.inRange=WE,v.invoke=xE,v.isArguments=xn,v.isArray=ve,v.isArrayBuffer=W_,v.isArrayLike=$t,v.isArrayLikeObject=at,v.isBoolean=U_,v.isBuffer=tn,v.isDate=H_,v.isElement=q_,v.isEmpty=G_,v.isEqual=z_,v.isEqualWith=Y_,v.isError=tu,v.isFinite=V_,v.isFunction=Ir,v.isInteger=hd,v.isLength=Ho,v.isMap=gd,v.isMatch=K_,v.isMatchWith=J_,v.isNaN=X_,v.isNative=Z_,v.isNil=eE,v.isNull=Q_,v.isNumber=vd,v.isObject=Qe,v.isObjectLike=rt,v.isPlainObject=Ra,v.isRegExp=ru,v.isSafeInteger=tE,v.isSet=md,v.isString=qo,v.isSymbol=Ut,v.isTypedArray=qn,v.isUndefined=rE,v.isWeakMap=nE,v.isWeakSet=aE,v.join=ib,v.kebabCase=YE,v.last=rr,v.lastIndexOf=ub,v.lowerCase=VE,v.lowerFirst=KE,v.lt=oE,v.lte=sE,v.max=H1,v.maxBy=q1,v.mean=G1,v.meanBy=z1,v.min=Y1,v.minBy=V1,v.stubArray=lu,v.stubFalse=fu,v.stubObject=F1,v.stubString=$1,v.stubTrue=M1,v.multiply=K1,v.nth=cb,v.noConflict=x1,v.noop=cu,v.now=Bo,v.pad=JE,v.padEnd=XE,v.padStart=ZE,v.parseInt=QE,v.random=UE,v.reduce=d_,v.reduceRight=p_,v.repeat=e1,v.replace=t1,v.result=IE,v.round=J1,v.runInContext=R,v.sample=g_,v.size=y_,v.snakeCase=r1,v.some=b_,v.sortedIndex=vb,v.sortedIndexBy=mb,v.sortedIndexOf=yb,v.sortedLastIndex=bb,v.sortedLastIndexBy=_b,v.sortedLastIndexOf=Eb,v.startCase=a1,v.startsWith=o1,v.subtract=X1,v.sum=Z1,v.sumBy=Q1,v.template=s1,v.times=N1,v.toFinite=Fr,v.toInteger=me,v.toLength=bd,v.toLower=i1,v.toNumber=nr,v.toSafeInteger=iE,v.toString=De,v.toUpper=u1,v.trim=c1,v.trimEnd=l1,v.trimStart=f1,v.truncate=d1,v.unescape=p1,v.uniqueId=j1,v.upperCase=h1,v.upperFirst=ou,v.each=od,v.eachRight=sd,v.first=td,uu(v,function(){var n={};return yr(v,function(o,u){je.call(v.prototype,u)||(n[u]=o)}),n}(),{chain:!1}),v.VERSION=a,Xt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){v[n].placeholder=v}),Xt(["drop","take"],function(n,o){we.prototype[n]=function(u){u=u===t?1:lt(me(u),0);var f=this.__filtered__&&!o?new we(this):this.clone();return f.__filtered__?f.__takeCount__=bt(u,f.__takeCount__):f.__views__.push({size:bt(u,G),type:n+(f.__dir__<0?"Right":"")}),f},we.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),Xt(["filter","map","takeWhile"],function(n,o){var u=o+1,f=u==Pe||u==et;we.prototype[n]=function(h){var y=this.clone();return y.__iteratees__.push({iteratee:re(h,3),type:u}),y.__filtered__=y.__filtered__||f,y}}),Xt(["head","last"],function(n,o){var u="take"+(o?"Right":"");we.prototype[n]=function(){return this[u](1).value()[0]}}),Xt(["initial","tail"],function(n,o){var u="drop"+(o?"":"Right");we.prototype[n]=function(){return this.__filtered__?new we(this):this[u](1)}}),we.prototype.compact=function(){return this.filter(Nt)},we.prototype.find=function(n){return this.filter(n).head()},we.prototype.findLast=function(n){return this.reverse().find(n)},we.prototype.invokeMap=_e(function(n,o){return typeof n=="function"?new we(this):this.map(function(u){return Ea(u,n,o)})}),we.prototype.reject=function(n){return this.filter(Uo(re(n)))},we.prototype.slice=function(n,o){n=me(n);var u=this;return u.__filtered__&&(n>0||o<0)?new we(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),o!==t&&(o=me(o),u=o<0?u.dropRight(-o):u.take(o-n)),u)},we.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},we.prototype.toArray=function(){return this.take(G)},yr(we.prototype,function(n,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),f=/^(?:head|last)$/.test(o),h=v[f?"take"+(o=="last"?"Right":""):o],y=f||/^find/.test(o);h&&(v.prototype[o]=function(){var S=this.__wrapped__,T=f?[1]:arguments,A=S instanceof we,N=T[0],L=A||ve(S),B=function(Se){var Ce=h.apply(v,Vr([Se],T));return f&&V?Ce[0]:Ce};L&&u&&typeof N=="function"&&N.length!=1&&(A=L=!1);var V=this.__chain__,ee=!!this.__actions__.length,ae=y&&!V,be=A&&!ee;if(!y&&L){S=be?S:new we(this);var oe=n.apply(S,T);return oe.__actions__.push({func:jo,args:[B],thisArg:t}),new Qt(oe,V)}return ae&&be?n.apply(this,T):(oe=this.thru(B),ae?f?oe.value()[0]:oe.value():oe)})}),Xt(["pop","push","shift","sort","splice","unshift"],function(n){var o=co[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",f=/^(?:pop|shift)$/.test(n);v.prototype[n]=function(){var h=arguments;if(f&&!this.__chain__){var y=this.value();return o.apply(ve(y)?y:[],h)}return this[u](function(S){return o.apply(ve(S)?S:[],h)})}}),yr(we.prototype,function(n,o){var u=v[o];if(u){var f=u.name+"";je.call(kn,f)||(kn[f]=[]),kn[f].push({name:o,func:u})}}),kn[Do(t,P).name]=[{name:"wrapper",func:t}],we.prototype.clone=py,we.prototype.reverse=hy,we.prototype.value=gy,v.prototype.at=qb,v.prototype.chain=Gb,v.prototype.commit=zb,v.prototype.next=Yb,v.prototype.plant=Kb,v.prototype.reverse=Jb,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=Xb,v.prototype.first=v.prototype.head,ha&&(v.prototype[ha]=Vb),v},Nn=zm();mn?((mn.exports=Nn)._=Nn,ii._=Nn):gt._=Nn}).call(Nr)})(gs,gs.exports);var ze=gs.exports;const Oh=Rs(ze);function Pc(e){return`Debugger/${e}`}function Ah(e,r){var a;const t=(a=r.name)==null?void 0:a.replace(/\.(4dm|4qs)$/,"");return`#${e} ${t}`}const TR=typeof process=="object"&&process&&process.platform==="win32";var xR=TR?{sep:"\\"}:{sep:"/"},CR=Ph;function Ph(e,r,t){e instanceof RegExp&&(e=pp(e,t)),r instanceof RegExp&&(r=pp(r,t));var a=Dh(e,r,t);return a&&{start:a[0],end:a[1],pre:t.slice(0,a[0]),body:t.slice(a[0]+e.length,a[1]),post:t.slice(a[1]+r.length)}}function pp(e,r){var t=r.match(e);return t?t[0]:null}Ph.range=Dh;function Dh(e,r,t){var a,s,i,c,l,d=t.indexOf(e),p=t.indexOf(r,d+1),g=d;if(d>=0&&p>0){if(e===r)return[d,p];for(a=[],i=t.length;g>=0&&!l;)g==d?(a.push(g),d=t.indexOf(e,g+1)):a.length==1?l=[a.pop(),p]:(s=a.pop(),s<i&&(i=s,c=p),p=t.indexOf(r,g+1)),g=d<p&&d>=0?d:p;a.length&&(l=[i,c])}return l}var Ih=CR,RR=PR,Fh="\0SLASH"+Math.random()+"\0",$h="\0OPEN"+Math.random()+"\0",Dc="\0CLOSE"+Math.random()+"\0",Mh="\0COMMA"+Math.random()+"\0",Nh="\0PERIOD"+Math.random()+"\0";function wu(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function OR(e){return e.split("\\\\").join(Fh).split("\\{").join($h).split("\\}").join(Dc).split("\\,").join(Mh).split("\\.").join(Nh)}function AR(e){return e.split(Fh).join("\\").split($h).join("{").split(Dc).join("}").split(Mh).join(",").split(Nh).join(".")}function Lh(e){if(!e)return[""];var r=[],t=Ih("{","}",e);if(!t)return e.split(",");var a=t.pre,s=t.body,i=t.post,c=a.split(",");c[c.length-1]+="{"+s+"}";var l=Lh(i);return i.length&&(c[c.length-1]+=l.shift(),c.push.apply(c,l)),r.push.apply(r,c),r}function PR(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Da(OR(e),!0).map(AR)):[]}function DR(e){return"{"+e+"}"}function IR(e){return/^-?0\d/.test(e)}function FR(e,r){return e<=r}function $R(e,r){return e>=r}function Da(e,r){var t=[],a=Ih("{","}",e);if(!a)return[e];var s=a.pre,i=a.post.length?Da(a.post,!1):[""];if(/\$$/.test(a.pre))for(var c=0;c<i.length;c++){var l=s+"{"+a.body+"}"+i[c];t.push(l)}else{var d=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),p=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),g=d||p,m=a.body.indexOf(",")>=0;if(!g&&!m)return a.post.match(/,.*\}/)?(e=a.pre+"{"+a.body+Dc+a.post,Da(e)):[e];var b;if(g)b=a.body.split(/\.\./);else if(b=Lh(a.body),b.length===1&&(b=Da(b[0],!1).map(DR),b.length===1))return i.map(function(We){return a.pre+b[0]+We});var E;if(g){var x=wu(b[0]),C=wu(b[1]),I=Math.max(b[0].length,b[1].length),P=b.length==3?Math.abs(wu(b[2])):1,k=FR,M=C<x;M&&(P*=-1,k=$R);var j=b.some(IR);E=[];for(var O=x;k(O,C);O+=P){var Y;if(p)Y=String.fromCharCode(O),Y==="\\"&&(Y="");else if(Y=String(O),j){var H=I-Y.length;if(H>0){var z=new Array(H+1).join("0");O<0?Y="-"+z+Y.slice(1):Y=z+Y}}E.push(Y)}}else{E=[];for(var te=0;te<b.length;te++)E.push.apply(E,Da(b[te],!1))}for(var te=0;te<E.length;te++)for(var c=0;c<i.length;c++){var l=s+E[te]+i[c];(!r||g||l)&&t.push(l)}}return t}const Gt=jh=(e,r,t={})=>(vs(r),!t.nocomment&&r.charAt(0)==="#"?!1:new Ms(r,t).match(e));var jh=Gt;const Qu=xR;Gt.sep=Qu.sep;const pr=Symbol("globstar **");Gt.GLOBSTAR=pr;const MR=RR,hp={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},ec="[^/]",Tu=ec+"*?",NR="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",LR="(?:(?!(?:\\/|^)\\.).)*?",kh=e=>e.split("").reduce((r,t)=>(r[t]=!0,r),{}),gp=kh("().*{}+?[]^$\\!"),jR=kh("[.("),vp=/\/+/;Gt.filter=(e,r={})=>(t,a,s)=>Gt(t,e,r);const rn=(e,r={})=>{const t={};return Object.keys(e).forEach(a=>t[a]=e[a]),Object.keys(r).forEach(a=>t[a]=r[a]),t};Gt.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Gt;const r=Gt,t=(a,s,i)=>r(a,s,rn(e,i));return t.Minimatch=class extends r.Minimatch{constructor(s,i){super(s,rn(e,i))}},t.Minimatch.defaults=a=>r.defaults(rn(e,a)).Minimatch,t.filter=(a,s)=>r.filter(a,rn(e,s)),t.defaults=a=>r.defaults(rn(e,a)),t.makeRe=(a,s)=>r.makeRe(a,rn(e,s)),t.braceExpand=(a,s)=>r.braceExpand(a,rn(e,s)),t.match=(a,s,i)=>r.match(a,s,rn(e,i)),t};Gt.braceExpand=(e,r)=>Bh(e,r);const Bh=(e,r={})=>(vs(e),r.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:MR(e)),kR=1024*64,vs=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>kR)throw new TypeError("pattern is too long")},xu=Symbol("subparse");Gt.makeRe=(e,r)=>new Ms(e,r||{}).makeRe();Gt.match=(e,r,t={})=>{const a=new Ms(r,t);return e=e.filter(s=>a.match(s)),a.options.nonull&&!e.length&&e.push(r),e};const BR=e=>e.replace(/\\(.)/g,"$1"),WR=e=>e.replace(/\\([^-\]])/g,"$1"),UR=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),HR=e=>e.replace(/[[\]\\]/g,"\\$&");class Ms{constructor(r,t){vs(r),t||(t={}),this.options=t,this.set=[],this.pattern=r,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}debug(){}make(){const r=this.pattern,t=this.options;if(!t.nocomment&&r.charAt(0)==="#"){this.comment=!0;return}if(!r){this.empty=!0;return}this.parseNegate();let a=this.globSet=this.braceExpand();t.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,a),a=this.globParts=a.map(s=>s.split(vp)),this.debug(this.pattern,a),a=a.map((s,i,c)=>s.map(this.parse,this)),this.debug(this.pattern,a),a=a.filter(s=>s.indexOf(!1)===-1),this.debug(this.pattern,a),this.set=a}parseNegate(){if(this.options.nonegate)return;const r=this.pattern;let t=!1,a=0;for(let s=0;s<r.length&&r.charAt(s)==="!";s++)t=!t,a++;a&&(this.pattern=r.slice(a)),this.negate=t}matchOne(r,t,a){var s=this.options;this.debug("matchOne",{this:this,file:r,pattern:t}),this.debug("matchOne",r.length,t.length);for(var i=0,c=0,l=r.length,d=t.length;i<l&&c<d;i++,c++){this.debug("matchOne loop");var p=t[c],g=r[i];if(this.debug(t,p,g),p===!1)return!1;if(p===pr){this.debug("GLOBSTAR",[t,p,g]);var m=i,b=c+1;if(b===d){for(this.debug("** at the end");i<l;i++)if(r[i]==="."||r[i]===".."||!s.dot&&r[i].charAt(0)===".")return!1;return!0}for(;m<l;){var E=r[m];if(this.debug(`
|
|
35
|
-
globstar while`,r,m,t,
|
|
36
|
-
>>> no match, partial?`,r,m,t,
|
|
37
|
-
%s`,H,H,x,s);const z=x.type==="*"?Tu:x.type==="?"?ec:"\\"+x.type;i=!0,s=s.slice(0,x.reStart)+z+"\\("+H}
|
|
34
|
+
}`;var be=Pd(function(){return Oe(y,ee+"return "+B).apply(t,S)});if(be.source=B,tu(be))throw be;return be}function sS(n){return De(n).toLowerCase()}function iS(n){return De(n).toUpperCase()}function uS(n,o,u){if(n=De(n),n&&(u||o===t))return kl(n);if(!n||!(o=Wt(o)))return n;var f=cr(n),h=cr(o),y=jl(f,h),S=Bl(f,h)+1;return en(f,y,S).join("")}function cS(n,o,u){if(n=De(n),n&&(u||o===t))return n.slice(0,Ul(n)+1);if(!n||!(o=Wt(o)))return n;var f=cr(n),h=Bl(f,cr(o))+1;return en(f,0,h).join("")}function lS(n,o,u){if(n=De(n),n&&(u||o===t))return n.replace(J,"");if(!n||!(o=Wt(o)))return n;var f=cr(n),h=jl(f,cr(o));return en(f,h).join("")}function fS(n,o){var u=We,f=Te;if(Qe(o)){var h="separator"in o?o.separator:h;u="length"in o?me(o.length):u,f="omission"in o?Wt(o.omission):f}n=De(n);var y=n.length;if(Fn(n)){var S=cr(n);y=S.length}if(u>=y)return n;var T=u-$n(f);if(T<1)return f;var A=S?en(S,0,T).join(""):n.slice(0,T);if(h===t)return A+f;if(S&&(T+=A.length-T),ru(h)){if(n.slice(T).search(h)){var N,L=A;for(h.global||(h=yi(h.source,De(Kt.exec(h))+"g")),h.lastIndex=0;N=h.exec(L);)var B=N.index;A=A.slice(0,B===t?T:B)}}else if(n.indexOf(Wt(h),T)!=T){var V=A.lastIndexOf(h);V>-1&&(A=A.slice(0,V))}return A+f}function dS(n){return n=De(n),n&&Qa.test(n)?n.replace(Za,Wm):n}var pS=Wn(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),ou=Df("toUpperCase");function Ad(n,o,u){return n=De(n),o=u?t:o,o===t?Nm(n)?Gm(n):Rm(n):n.match(o)||[]}var Pd=_e(function(n,o){try{return jt(n,t,o)}catch(u){return tu(u)?u:new pe(u)}}),hS=Pr(function(n,o){return Xt(o,function(u){u=_r(u),Or(n,u,Qi(n[u],n))}),n});function gS(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 vS(n){return Wy(er(n,m))}function su(n){return function(){return n}}function mS(n,o){return n==null||n!==n?o:n}var yS=Ff(),bS=Ff(!0);function Nt(n){return n}function iu(n){return cf(typeof n=="function"?n:er(n,m))}function _S(n){return ff(er(n,m))}function ES(n,o){return df(n,er(o,m))}var SS=_e(function(n,o){return function(u){return _a(u,n,o)}}),wS=_e(function(n,o){return function(u){return _a(n,u,o)}});function uu(n,o,u){var f=pt(o),h=Co(o,f);u==null&&!(Qe(o)&&(h.length||!f.length))&&(u=o,o=n,n=this,h=Co(o,pt(o)));var y=!(Qe(u)&&"chain"in u)||!!u.chain,S=Ir(n);return Xt(h,function(T){var A=o[T];n[T]=A,S&&(n.prototype[T]=function(){var N=this.__chain__;if(y||N){var L=n(this.__wrapped__),B=L.__actions__=Ft(this.__actions__);return B.push({func:A,args:arguments,thisArg:n}),L.__chain__=N,L}return A.apply(n,Vr([this.value()],arguments))})}),n}function TS(){return gt._===this&&(gt._=Jm),this}function cu(){}function xS(n){return n=me(n),_e(function(o){return pf(o,n)})}var CS=Bi(Je),RS=Bi(Fl),OS=Bi(fi);function Dd(n){return Yi(n)?di(_r(n)):ab(n)}function AS(n){return function(o){return n==null?t:En(n,o)}}var PS=Mf(),DS=Mf(!0);function lu(){return[]}function fu(){return!1}function IS(){return{}}function FS(){return""}function $S(){return!0}function MS(n,o){if(n=me(n),n<1||n>nt)return[];var u=q,f=bt(n,q);o=re(o),n-=q;for(var h=gi(f,o);++u<n;)o(u);return h}function NS(n){return ve(n)?Je(n,_r):Ut(n)?[n]:Ft(Xf(De(n)))}function LS(n){var o=++Vm;return De(n)+o}var kS=Io(function(n,o){return n+o},0),jS=Wi("ceil"),BS=Io(function(n,o){return n/o},1),WS=Wi("floor");function US(n){return n&&n.length?xo(n,Nt,Ci):t}function HS(n,o){return n&&n.length?xo(n,re(o,2),Ci):t}function GS(n){return Nl(n,Nt)}function qS(n,o){return Nl(n,re(o,2))}function zS(n){return n&&n.length?xo(n,Nt,Pi):t}function YS(n,o){return n&&n.length?xo(n,re(o,2),Pi):t}var VS=Io(function(n,o){return n*o},1),KS=Wi("round"),JS=Io(function(n,o){return n-o},0);function XS(n){return n&&n.length?hi(n,Nt):0}function ZS(n,o){return n&&n.length?hi(n,re(o,2)):0}return v.after=__,v.ary=ud,v.assign=iE,v.assignIn=Sd,v.assignInWith=qo,v.assignWith=uE,v.at=cE,v.before=cd,v.bind=Qi,v.bindAll=hS,v.bindKey=ld,v.castArray=I_,v.chain=od,v.chunk=Wb,v.compact=Ub,v.concat=Hb,v.cond=gS,v.conforms=vS,v.constant=su,v.countBy=X0,v.create=lE,v.curry=fd,v.curryRight=dd,v.debounce=pd,v.defaults=fE,v.defaultsDeep=dE,v.defer=E_,v.delay=S_,v.difference=Gb,v.differenceBy=qb,v.differenceWith=zb,v.drop=Yb,v.dropRight=Vb,v.dropRightWhile=Kb,v.dropWhile=Jb,v.fill=Xb,v.filter=Q0,v.flatMap=r_,v.flatMapDeep=n_,v.flatMapDepth=a_,v.flatten=td,v.flattenDeep=Zb,v.flattenDepth=Qb,v.flip=w_,v.flow=yS,v.flowRight=bS,v.fromPairs=e0,v.functions=bE,v.functionsIn=_E,v.groupBy=o_,v.initial=r0,v.intersection=n0,v.intersectionBy=a0,v.intersectionWith=o0,v.invert=SE,v.invertBy=wE,v.invokeMap=i_,v.iteratee=iu,v.keyBy=u_,v.keys=pt,v.keysIn=Mt,v.map=jo,v.mapKeys=xE,v.mapValues=CE,v.matches=_S,v.matchesProperty=ES,v.memoize=Wo,v.merge=RE,v.mergeWith=wd,v.method=SS,v.methodOf=wS,v.mixin=uu,v.negate=Uo,v.nthArg=xS,v.omit=OE,v.omitBy=AE,v.once=T_,v.orderBy=c_,v.over=CS,v.overArgs=x_,v.overEvery=RS,v.overSome=OS,v.partial=eu,v.partialRight=hd,v.partition=l_,v.pick=PE,v.pickBy=Td,v.property=Dd,v.propertyOf=AS,v.pull=c0,v.pullAll=nd,v.pullAllBy=l0,v.pullAllWith=f0,v.pullAt=d0,v.range=PS,v.rangeRight=DS,v.rearg=C_,v.reject=p_,v.remove=p0,v.rest=R_,v.reverse=Xi,v.sampleSize=g_,v.set=IE,v.setWith=FE,v.shuffle=v_,v.slice=h0,v.sortBy=b_,v.sortedUniq=E0,v.sortedUniqBy=S0,v.split=rS,v.spread=O_,v.tail=w0,v.take=T0,v.takeRight=x0,v.takeRightWhile=C0,v.takeWhile=R0,v.tap=U0,v.throttle=A_,v.thru=ko,v.toArray=bd,v.toPairs=xd,v.toPairsIn=Cd,v.toPath=NS,v.toPlainObject=Ed,v.transform=$E,v.unary=P_,v.union=O0,v.unionBy=A0,v.unionWith=P0,v.uniq=D0,v.uniqBy=I0,v.uniqWith=F0,v.unset=ME,v.unzip=Zi,v.unzipWith=ad,v.update=NE,v.updateWith=LE,v.values=Gn,v.valuesIn=kE,v.without=$0,v.words=Ad,v.wrap=D_,v.xor=M0,v.xorBy=N0,v.xorWith=L0,v.zip=k0,v.zipObject=j0,v.zipObjectDeep=B0,v.zipWith=W0,v.entries=xd,v.entriesIn=Cd,v.extend=Sd,v.extendWith=qo,uu(v,v),v.add=kS,v.attempt=Pd,v.camelCase=UE,v.capitalize=Rd,v.ceil=jS,v.clamp=jE,v.clone=F_,v.cloneDeep=M_,v.cloneDeepWith=N_,v.cloneWith=$_,v.conformsTo=L_,v.deburr=Od,v.defaultTo=mS,v.divide=BS,v.endsWith=HE,v.eq=fr,v.escape=GE,v.escapeRegExp=qE,v.every=Z0,v.find=e_,v.findIndex=Qf,v.findKey=pE,v.findLast=t_,v.findLastIndex=ed,v.findLastKey=hE,v.floor=WS,v.forEach=sd,v.forEachRight=id,v.forIn=gE,v.forInRight=vE,v.forOwn=mE,v.forOwnRight=yE,v.get=nu,v.gt=k_,v.gte=j_,v.has=EE,v.hasIn=au,v.head=rd,v.identity=Nt,v.includes=s_,v.indexOf=t0,v.inRange=BE,v.invoke=TE,v.isArguments=Tn,v.isArray=ve,v.isArrayBuffer=B_,v.isArrayLike=$t,v.isArrayLikeObject=at,v.isBoolean=W_,v.isBuffer=tn,v.isDate=U_,v.isElement=H_,v.isEmpty=G_,v.isEqual=q_,v.isEqualWith=z_,v.isError=tu,v.isFinite=Y_,v.isFunction=Ir,v.isInteger=gd,v.isLength=Ho,v.isMap=vd,v.isMatch=V_,v.isMatchWith=K_,v.isNaN=J_,v.isNative=X_,v.isNil=Q_,v.isNull=Z_,v.isNumber=md,v.isObject=Qe,v.isObjectLike=rt,v.isPlainObject=Ca,v.isRegExp=ru,v.isSafeInteger=eE,v.isSet=yd,v.isString=Go,v.isSymbol=Ut,v.isTypedArray=Hn,v.isUndefined=tE,v.isWeakMap=rE,v.isWeakSet=nE,v.join=s0,v.kebabCase=zE,v.last=rr,v.lastIndexOf=i0,v.lowerCase=YE,v.lowerFirst=VE,v.lt=aE,v.lte=oE,v.max=US,v.maxBy=HS,v.mean=GS,v.meanBy=qS,v.min=zS,v.minBy=YS,v.stubArray=lu,v.stubFalse=fu,v.stubObject=IS,v.stubString=FS,v.stubTrue=$S,v.multiply=VS,v.nth=u0,v.noConflict=TS,v.noop=cu,v.now=Bo,v.pad=KE,v.padEnd=JE,v.padStart=XE,v.parseInt=ZE,v.random=WE,v.reduce=f_,v.reduceRight=d_,v.repeat=QE,v.replace=eS,v.result=DE,v.round=KS,v.runInContext=R,v.sample=h_,v.size=m_,v.snakeCase=tS,v.some=y_,v.sortedIndex=g0,v.sortedIndexBy=v0,v.sortedIndexOf=m0,v.sortedLastIndex=y0,v.sortedLastIndexBy=b0,v.sortedLastIndexOf=_0,v.startCase=nS,v.startsWith=aS,v.subtract=JS,v.sum=XS,v.sumBy=ZS,v.template=oS,v.times=MS,v.toFinite=Fr,v.toInteger=me,v.toLength=_d,v.toLower=sS,v.toNumber=nr,v.toSafeInteger=sE,v.toString=De,v.toUpper=iS,v.trim=uS,v.trimEnd=cS,v.trimStart=lS,v.truncate=fS,v.unescape=dS,v.uniqueId=LS,v.upperCase=pS,v.upperFirst=ou,v.each=sd,v.eachRight=id,v.first=rd,uu(v,function(){var n={};return yr(v,function(o,u){ke.call(v.prototype,u)||(n[u]=o)}),n}(),{chain:!1}),v.VERSION=a,Xt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){v[n].placeholder=v}),Xt(["drop","take"],function(n,o){we.prototype[n]=function(u){u=u===t?1:lt(me(u),0);var f=this.__filtered__&&!o?new we(this):this.clone();return f.__filtered__?f.__takeCount__=bt(u,f.__takeCount__):f.__views__.push({size:bt(u,q),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 _a(u,n,o)})}),we.prototype.reject=function(n){return this.filter(Uo(re(n)))},we.prototype.slice=function(n,o){n=me(n);var u=this;return u.__filtered__&&(n>0||o<0)?new we(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),o!==t&&(o=me(o),u=o<0?u.dropRight(-o):u.take(o-n)),u)},we.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},we.prototype.toArray=function(){return this.take(q)},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:ko,args:[B],thisArg:t}),new Qt(oe,V)}return ae&&be?n.apply(this,T):(oe=this.thru(B),ae?f?oe.value()[0]:oe.value():oe)})}),Xt(["pop","push","shift","sort","splice","unshift"],function(n){var o=co[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",f=/^(?:pop|shift)$/.test(n);v.prototype[n]=function(){var h=arguments;if(f&&!this.__chain__){var y=this.value();return o.apply(ve(y)?y:[],h)}return this[u](function(S){return o.apply(ve(S)?S:[],h)})}}),yr(we.prototype,function(n,o){var u=v[o];if(u){var f=u.name+"";ke.call(kn,f)||(kn[f]=[]),kn[f].push({name:o,func:u})}}),kn[Do(t,P).name]=[{name:"wrapper",func:t}],we.prototype.clone=dy,we.prototype.reverse=py,we.prototype.value=hy,v.prototype.at=H0,v.prototype.chain=G0,v.prototype.commit=q0,v.prototype.next=z0,v.prototype.plant=V0,v.prototype.reverse=K0,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=J0,v.prototype.first=v.prototype.head,pa&&(v.prototype[pa]=Y0),v},Mn=qm();vn?((vn.exports=Mn)._=Mn,ii._=Mn):gt._=Mn}).call(Nr)})(gs,gs.exports);var He=gs.exports;const Ah=Rs(He);function Dc(e){return`Debugger/${e}`}function Ph(e,r){var a;const t=(a=r.name)==null?void 0:a.replace(/\.(4dm|4qs)$/,"");return`#${e} ${t}`}const wR=typeof process=="object"&&process&&process.platform==="win32";var TR=wR?{sep:"\\"}:{sep:"/"},xR=Dh;function Dh(e,r,t){e instanceof RegExp&&(e=hp(e,t)),r instanceof RegExp&&(r=hp(r,t));var a=Ih(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 hp(e,r){var t=r.match(e);return t?t[0]:null}Dh.range=Ih;function Ih(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 Fh=xR,CR=AR,$h="\0SLASH"+Math.random()+"\0",Mh="\0OPEN"+Math.random()+"\0",Ic="\0CLOSE"+Math.random()+"\0",Nh="\0COMMA"+Math.random()+"\0",Lh="\0PERIOD"+Math.random()+"\0";function wu(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function RR(e){return e.split("\\\\").join($h).split("\\{").join(Mh).split("\\}").join(Ic).split("\\,").join(Nh).split("\\.").join(Lh)}function OR(e){return e.split($h).join("\\").split(Mh).join("{").split(Ic).join("}").split(Nh).join(",").split(Lh).join(".")}function kh(e){if(!e)return[""];var r=[],t=Fh("{","}",e);if(!t)return e.split(",");var a=t.pre,s=t.body,i=t.post,c=a.split(",");c[c.length-1]+="{"+s+"}";var l=kh(i);return i.length&&(c[c.length-1]+=l.shift(),c.push.apply(c,l)),r.push.apply(r,c),r}function AR(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Pa(RR(e),!0).map(OR)):[]}function PR(e){return"{"+e+"}"}function DR(e){return/^-?0\d/.test(e)}function IR(e,r){return e<=r}function FR(e,r){return e>=r}function Pa(e,r){var t=[],a=Fh("{","}",e);if(!a)return[e];var s=a.pre,i=a.post.length?Pa(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+Ic+a.post,Pa(e)):[e];var _;if(g)_=a.body.split(/\.\./);else if(_=kh(a.body),_.length===1&&(_=Pa(_[0],!1).map(PR),_.length===1))return i.map(function(We){return a.pre+_[0]+We});var E;if(g){var x=wu(_[0]),C=wu(_[1]),I=Math.max(_[0].length,_[1].length),P=_.length==3?Math.abs(wu(_[2])):1,j=IR,M=C<x;M&&(P*=-1,j=FR);var k=_.some(DR);E=[];for(var O=x;j(O,C);O+=P){var Y;if(p)Y=String.fromCharCode(O),Y==="\\"&&(Y="");else if(Y=String(O),k){var H=I-Y.length;if(H>0){var z=new Array(H+1).join("0");O<0?Y="-"+z+Y.slice(1):Y=z+Y}}E.push(Y)}}else{E=[];for(var te=0;te<_.length;te++)E.push.apply(E,Pa(_[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=jh=(e,r,t={})=>(vs(r),!t.nocomment&&r.charAt(0)==="#"?!1:new Ms(r,t).match(e));var jh=qt;const Qu=TR;qt.sep=Qu.sep;const pr=Symbol("globstar **");qt.GLOBSTAR=pr;const $R=CR,gp={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},ec="[^/]",Tu=ec+"*?",MR="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",NR="(?:(?!(?:\\/|^)\\.).)*?",Bh=e=>e.split("").reduce((r,t)=>(r[t]=!0,r),{}),vp=Bh("().*{}+?[]^$\\!"),LR=Bh("[.("),mp=/\/+/;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)=>Wh(e,r);const Wh=(e,r={})=>(vs(e),r.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:$R(e)),kR=1024*64,vs=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>kR)throw new TypeError("pattern is too long")},xu=Symbol("subparse");qt.makeRe=(e,r)=>new Ms(e,r||{}).makeRe();qt.match=(e,r,t={})=>{const a=new Ms(r,t);return e=e.filter(s=>a.match(s)),a.options.nonull&&!e.length&&e.push(r),e};const jR=e=>e.replace(/\\(.)/g,"$1"),BR=e=>e.replace(/\\([^-\]])/g,"$1"),WR=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),UR=e=>e.replace(/[[\]\\]/g,"\\$&");class Ms{constructor(r,t){vs(r),t||(t={}),this.options=t,this.set=[],this.pattern=r,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}debug(){}make(){const r=this.pattern,t=this.options;if(!t.nocomment&&r.charAt(0)==="#"){this.comment=!0;return}if(!r){this.empty=!0;return}this.parseNegate();let a=this.globSet=this.braceExpand();t.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,a),a=this.globParts=a.map(s=>s.split(mp)),this.debug(this.pattern,a),a=a.map((s,i,c)=>s.map(this.parse,this)),this.debug(this.pattern,a),a=a.filter(s=>s.indexOf(!1)===-1),this.debug(this.pattern,a),this.set=a}parseNegate(){if(this.options.nonegate)return;const r=this.pattern;let t=!1,a=0;for(let s=0;s<r.length&&r.charAt(s)==="!";s++)t=!t,a++;a&&(this.pattern=r.slice(a)),this.negate=t}matchOne(r,t,a){var s=this.options;this.debug("matchOne",{this:this,file:r,pattern:t}),this.debug("matchOne",r.length,t.length);for(var i=0,c=0,l=r.length,d=t.length;i<l&&c<d;i++,c++){this.debug("matchOne loop");var p=t[c],g=r[i];if(this.debug(t,p,g),p===!1)return!1;if(p===pr){this.debug("GLOBSTAR",[t,p,g]);var m=i,_=c+1;if(_===d){for(this.debug("** at the end");i<l;i++)if(r[i]==="."||r[i]===".."||!s.dot&&r[i].charAt(0)===".")return!1;return!0}for(;m<l;){var E=r[m];if(this.debug(`
|
|
35
|
+
globstar while`,r,m,t,_,E),this.matchOne(r.slice(m),t.slice(_),a))return this.debug("globstar found match!",m,l,E),!0;if(E==="."||E===".."||!s.dot&&E.charAt(0)==="."){this.debug("dot detected!",r,m,t,_);break}this.debug("globstar swallow a segment, and continue"),m++}return!!(a&&(this.debug(`
|
|
36
|
+
>>> no match, partial?`,r,m,t,_),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 Wh(this.pattern,this.options)}parse(r,t){vs(r);const a=this.options;if(r==="**")if(a.noglobstar)r="*";else return pr;if(r==="")return"";let s="",i=!1,c=!1;const l=[],d=[];let p,g=!1,m=-1,_=-1,E,x,C,I=r.charAt(0)===".",P=a.dot||I;const j=()=>I?"":P?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",M=H=>H.charAt(0)==="."?"":a.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",k=()=>{if(p){switch(p){case"*":s+=Tu,i=!0;break;case"?":s+=ec,i=!0;break;default:s+="\\"+p;break}this.debug("clearStateChar %j %j",p,s),p=!1}};for(let H=0,z;H<r.length&&(z=r.charAt(H));H++){if(this.debug("%s %s %s %j",r,H,s,z),c){if(z==="/")return!1;vp[z]&&(s+="\\"),s+=z,c=!1;continue}switch(z){case"/":return!1;case"\\":if(g&&r.charAt(H+1)==="-"){s+=z;continue}k(),c=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",r,H,s,z),g){this.debug(" in class"),z==="!"&&H===_+1&&(z="^"),s+=z;continue}this.debug("call clearStateChar %j",p),k(),p=z,a.noext&&k();continue;case"(":{if(g){s+="(";continue}if(!p){s+="\\(";continue}const te={type:p,start:H-1,reStart:s.length,open:gp[p].open,close:gp[p].close};this.debug(this.pattern," ",te),l.push(te),s+=te.open,te.start===0&&te.type!=="!"&&(I=!0,s+=M(r.slice(H+1))),this.debug("plType %j %j",p,s),p=!1;continue}case")":{const te=l[l.length-1];if(g||!te){s+="\\)";continue}l.pop(),k(),i=!0,x=te,s+=x.close,x.type==="!"&&d.push(Object.assign(x,{reEnd:s.length}));continue}case"|":{const te=l[l.length-1];if(g||!te){s+="\\|";continue}k(),s+="|",te.start===0&&te.type!=="!"&&(I=!0,s+=M(r.slice(H+1)));continue}case"[":if(k(),g){s+="\\"+z;continue}g=!0,_=H,m=s.length,s+=z;continue;case"]":if(H===_+1||!g){s+="\\"+z;continue}E=r.substring(_+1,H);try{RegExp("["+UR(BR(E))+"]"),s+=z}catch{s=s.substring(0,m)+"(?:$.)"}i=!0,g=!1;continue;default:k(),vp[z]&&!(z==="^"&&g)&&(s+="\\"),s+=z;break}}for(g&&(E=r.slice(_+1),C=this.parse(E,xu),s=s.substring(0,m)+"\\["+C[0],i=i||C[1]),x=l.pop();x;x=l.pop()){let H;H=s.slice(x.reStart+x.open.length),this.debug("setting tail",s,x),H=H.replace(/((?:\\{2}){0,64})(\\?)\|/g,(te,We,Te)=>(Te||(Te="\\"),We+We+Te+"|")),this.debug(`tail=%j
|
|
37
|
+
%s`,H,H,x,s);const z=x.type==="*"?Tu:x.type==="?"?ec:"\\"+x.type;i=!0,s=s.slice(0,x.reStart)+z+"\\("+H}k(),c&&(s+="\\\\");const O=LR[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 Ge=0;Ge<Pe;Ge++)ut=ut.replace(/\)[+*?]?/,"");Te=ut;const et=Te===""&&t!==xu?"(?:$|\\/)":"";s=te+We+Te+et+it}if(s!==""&&i&&(s="(?=.)"+s),O&&(s=j()+s),t===xu)return[s,i];if(a.nocase&&!i&&(i=r.toUpperCase()!==r.toLowerCase()),!i)return jR(r);const Y=a.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",Y),{_glob:r,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const r=this.set;if(!r.length)return this.regexp=!1,this.regexp;const t=this.options,a=t.noglobstar?Tu:t.dot?MR:NR,s=t.nocase?"i":"";let i=r.map(c=>(c=c.map(l=>typeof l=="string"?WR(l):l===pr?pr:l._src).reduce((l,d)=>(l[l.length-1]===pr&&d===pr||l.push(d),l),[]),c.forEach((l,d)=>{l!==pr||c[d-1]===pr||(d===0?c.length>1?c[d+1]="(?:\\/|"+a+"\\/)?"+c[d+1]:c[d]=a:d===c.length-1?c[d-1]+="(?:\\/|"+a+")?":(c[d-1]+="(?:\\/|\\/"+a+"\\/)"+c[d+1],c[d+1]=pr))}),c.filter(l=>l!==pr).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(r,t=this.partial){if(this.debug("match",r,this.pattern),this.comment)return!1;if(this.empty)return r==="";if(r==="/"&&t)return!0;const a=this.options;Qu.sep!=="/"&&(r=r.split(Qu.sep).join("/")),r=r.split(mp),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=Ms;const Uh=Rs(jh),Hh=[{pattern:b.ROLES_TAB_PATH,editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:b.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"}}],Gh=[{pattern:"**/*.+(json|4DModel|WebForm)",type:"json"},{pattern:"**/*.+(4dm|txt|json|4qs)",type:"text"}];function qh(e){const r=e.split("/");return r.pop(),r.join("/")}function gr(e){const r=Hh.find(({pattern:t})=>Uh(e,t,{nocase:!0}));return r||{pattern:"",editor:{key:"editors:unknown",config:{language:"text"}}}}function zh(e){const r=Gh.find(({pattern:t})=>Uh(e,t,{nocase:!0}));return r?r.type:"text"}var tc=function(e,r){return tc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])},tc(e,r)};function Ns(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");tc(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function rc(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],a=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function ms(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var a=t.call(e),s,i=[],c;try{for(;(r===void 0||r-- >0)&&!(s=a.next()).done;)i.push(s.value)}catch(l){c={error:l}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(c)throw c.error}}return i}function ys(e,r,t){if(t||arguments.length===2)for(var a=0,s=r.length,i;a<s;a++)(i||!(a in r))&&(i||(i=Array.prototype.slice.call(r,0,a)),i[a]=r[a]);return e.concat(i||Array.prototype.slice.call(r))}function kr(e){return typeof e=="function"}function Yh(e){var r=function(a){Error.call(a),a.stack=new Error().stack},t=e(r);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Cu=Yh(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
38
38
|
`+t.map(function(a,s){return s+1+") "+a.toString()}).join(`
|
|
39
|
-
`):"",this.name="UnsubscriptionError",this.errors=t}});function nc(e,r){if(e){var t=e.indexOf(r);0<=t&&e.splice(t,1)}}var Ls=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var r,t,a,s,i;if(!this.closed){this.closed=!0;var c=this._parentage;if(c)if(this._parentage=null,Array.isArray(c))try{for(var l=rc(c),d=l.next();!d.done;d=l.next()){var p=d.value;p.remove(this)}}catch(C){r={error:C}}finally{try{d&&!d.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}else c.remove(this);var g=this.initialTeardown;if(
|
|
39
|
+
`):"",this.name="UnsubscriptionError",this.errors=t}});function nc(e,r){if(e){var t=e.indexOf(r);0<=t&&e.splice(t,1)}}var Ls=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var r,t,a,s,i;if(!this.closed){this.closed=!0;var c=this._parentage;if(c)if(this._parentage=null,Array.isArray(c))try{for(var l=rc(c),d=l.next();!d.done;d=l.next()){var p=d.value;p.remove(this)}}catch(C){r={error:C}}finally{try{d&&!d.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}else c.remove(this);var g=this.initialTeardown;if(kr(g))try{g()}catch(C){i=C instanceof Cu?C.errors:[C]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var _=rc(m),E=_.next();!E.done;E=_.next()){var x=E.value;try{yp(x)}catch(C){i=i??[],C instanceof Cu?i=ys(ys([],ms(i)),ms(C.errors)):i.push(C)}}}catch(C){a={error:C}}finally{try{E&&!E.done&&(s=_.return)&&s.call(_)}finally{if(a)throw a.error}}}if(i)throw new Cu(i)}},e.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)yp(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(r)}},e.prototype._hasParent=function(r){var t=this._parentage;return t===r||Array.isArray(t)&&t.includes(r)},e.prototype._addParent=function(r){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(r),t):t?[t,r]:r},e.prototype._removeParent=function(r){var t=this._parentage;t===r?this._parentage=null:Array.isArray(t)&&nc(t,r)},e.prototype.remove=function(r){var t=this._finalizers;t&&nc(t,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}(),Vh=Ls.EMPTY;function Kh(e){return e instanceof Ls||e&&"closed"in e&&kr(e.remove)&&kr(e.add)&&kr(e.unsubscribe)}function yp(e){kr(e)?e():e.unsubscribe()}var Jh={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ac={setTimeout:function(e,r){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];var s=ac.delegate;return s!=null&&s.setTimeout?s.setTimeout.apply(s,ys([e,r],ms(t))):setTimeout.apply(void 0,ys([e,r],ms(t)))},clearTimeout:function(e){var r=ac.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function HR(e){ac.setTimeout(function(){throw e})}function bp(){}function es(e){e()}var Xh=function(e){Ns(r,e);function r(t){var a=e.call(this)||this;return a.isStopped=!1,t?(a.destination=t,Kh(t)&&t.add(a)):a.destination=YR,a}return r.create=function(t,a,s){return new oc(t,a,s)},r.prototype.next=function(t){this.isStopped||this._next(t)},r.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(t){this.destination.next(t)},r.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(Ls),GR=Function.prototype.bind;function Ru(e,r){return GR.call(e,r)}var qR=function(){function e(r){this.partialObserver=r}return e.prototype.next=function(r){var t=this.partialObserver;if(t.next)try{t.next(r)}catch(a){Yo(a)}},e.prototype.error=function(r){var t=this.partialObserver;if(t.error)try{t.error(r)}catch(a){Yo(a)}else Yo(r)},e.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(t){Yo(t)}},e}(),oc=function(e){Ns(r,e);function r(t,a,s){var i=e.call(this)||this,c;if(kr(t)||!t)c={next:t??void 0,error:a??void 0,complete:s??void 0};else{var l;i&&Jh.useDeprecatedNextContext?(l=Object.create(t),l.unsubscribe=function(){return i.unsubscribe()},c={next:t.next&&Ru(t.next,l),error:t.error&&Ru(t.error,l),complete:t.complete&&Ru(t.complete,l)}):c=t}return i.destination=new qR(c),i}return r}(Xh);function Yo(e){HR(e)}function zR(e){throw e}var YR={closed:!0,next:bp,error:zR,complete:bp},VR=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function KR(e){return e}function JR(e){return e.length===0?KR:e.length===1?e[0]:function(t){return e.reduce(function(a,s){return s(a)},t)}}var _p=function(){function e(r){r&&(this._subscribe=r)}return e.prototype.lift=function(r){var t=new e;return t.source=this,t.operator=r,t},e.prototype.subscribe=function(r,t,a){var s=this,i=ZR(r)?r:new oc(r,t,a);return es(function(){var c=s,l=c.operator,d=c.source;i.add(l?l.call(i,d):d?s._subscribe(i):s._trySubscribe(i))}),i},e.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(t){r.error(t)}},e.prototype.forEach=function(r,t){var a=this;return t=Ep(t),new t(function(s,i){var c=new oc({next:function(l){try{r(l)}catch(d){i(d),c.unsubscribe()}},error:i,complete:s});a.subscribe(c)})},e.prototype._subscribe=function(r){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(r)},e.prototype[VR]=function(){return this},e.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return JR(r)(this)},e.prototype.toPromise=function(r){var t=this;return r=Ep(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 Ep(e){var r;return(r=e??Jh.Promise)!==null&&r!==void 0?r:Promise}function XR(e){return e&&kr(e.next)&&kr(e.error)&&kr(e.complete)}function ZR(e){return e&&e instanceof Xh||XR(e)&&Kh(e)}var QR=Yh(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Zh=function(e){Ns(r,e);function r(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r.prototype.lift=function(t){var a=new Sp(this,this);return a.operator=t,a},r.prototype._throwIfClosed=function(){if(this.closed)throw new QR},r.prototype.next=function(t){var a=this;es(function(){var s,i;if(a._throwIfClosed(),!a.isStopped){a.currentObservers||(a.currentObservers=Array.from(a.observers));try{for(var c=rc(a.currentObservers),l=c.next();!l.done;l=c.next()){var d=l.value;d.next(t)}}catch(p){s={error:p}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(s)throw s.error}}}})},r.prototype.error=function(t){var a=this;es(function(){if(a._throwIfClosed(),!a.isStopped){a.hasError=a.isStopped=!0,a.thrownError=t;for(var s=a.observers;s.length;)s.shift().error(t)}})},r.prototype.complete=function(){var t=this;es(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var a=t.observers;a.length;)a.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},r.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},r.prototype._innerSubscribe=function(t){var a=this,s=this,i=s.hasError,c=s.isStopped,l=s.observers;return i||c?Vh:(this.currentObservers=null,l.push(t),new Ls(function(){a.currentObservers=null,nc(l,t)}))},r.prototype._checkFinalizedStatuses=function(t){var a=this,s=a.hasError,i=a.thrownError,c=a.isStopped;s?t.error(i):c&&t.complete()},r.prototype.asObservable=function(){var t=new _p;return t.source=this,t},r.create=function(t,a){return new Sp(t,a)},r}(_p),Sp=function(e){Ns(r,e);function r(t,a){var s=e.call(this)||this;return s.destination=t,s.source=a,s}return r.prototype.next=function(t){var a,s;(s=(a=this.destination)===null||a===void 0?void 0:a.next)===null||s===void 0||s.call(a,t)},r.prototype.error=function(t){var a,s;(s=(a=this.destination)===null||a===void 0?void 0:a.error)===null||s===void 0||s.call(a,t)},r.prototype.complete=function(){var t,a;(a=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||a===void 0||a.call(t)},r.prototype._subscribe=function(t){var a,s;return(s=(a=this.source)===null||a===void 0?void 0:a.subscribe(t))!==null&&s!==void 0?s:Vh},r}(Zh);const Qh=new Zh;var sc={exports:{}},Vo={exports:{}},Ie={};/** @license React v16.13.1
|
|
40
40
|
* react-is.production.min.js
|
|
41
41
|
*
|
|
42
42
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
43
43
|
*
|
|
44
44
|
* This source code is licensed under the MIT license found in the
|
|
45
45
|
* LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/var
|
|
46
|
+
*/var wp;function eO(){if(wp)return Ie;wp=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,_=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,j=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 k(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 k(O)||M(O)===d},Ie.isConcurrentMode=k,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===_||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===j||O.$$typeof===C)},Ie.typeOf=M,Ie}var Fe={};/** @license React v16.13.1
|
|
47
47
|
* react-is.development.js
|
|
48
48
|
*
|
|
49
49
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
50
50
|
*
|
|
51
51
|
* This source code is licensed under the MIT license found in the
|
|
52
52
|
* LICENSE file in the root directory of this source tree.
|
|
53
|
-
*/var
|
|
53
|
+
*/var Tp;function tO(){return Tp||(Tp=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,_=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,j=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===_||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===j||F.$$typeof===C)}function k(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,Ge=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)||k(F)===d}function W(F){return k(F)===p}function q(F){return k(F)===l}function de(F){return k(F)===c}function le(F){return typeof F=="object"&&F!==null&&F.$$typeof===r}function se(F){return k(F)===g}function fe(F){return k(F)===a}function ne(F){return k(F)===x}function ce(F){return k(F)===E}function ue(F){return k(F)===t}function he(F){return k(F)===i}function ge(F){return k(F)===s}function K(F){return k(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=Ge,Fe.isAsyncMode=Yt,Fe.isConcurrentMode=W,Fe.isContextConsumer=q,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=k}()),Fe}var xp;function eg(){return xp||(xp=1,process.env.NODE_ENV==="production"?Vo.exports=eO():Vo.exports=tO()),Vo.exports}/*
|
|
54
54
|
object-assign
|
|
55
55
|
(c) Sindre Sorhus
|
|
56
56
|
@license MIT
|
|
57
|
-
*/var Ou,
|
|
58
|
-
Valid keys: `+JSON.stringify(Object.keys(W),null," "));var F=K(ce,ge,se,fe,ne+"."+ge,t);if(F)return F}return null}return I(
|
|
57
|
+
*/var Ou,Cp;function Fc(){if(Cp)return Ou;Cp=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function a(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function s(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var c={},l=0;l<10;l++)c["_"+String.fromCharCode(l)]=l;var d=Object.getOwnPropertyNames(c).map(function(g){return c[g]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(g){p[g]=g}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ou=s()?Object.assign:function(i,c){for(var l,d=a(i),p,g=1;g<arguments.length;g++){l=Object(arguments[g]);for(var m in l)r.call(l,m)&&(d[m]=l[m]);if(e){p=e(l);for(var _=0;_<p.length;_++)t.call(l,p[_])&&(d[p[_]]=l[p[_]])}}return d},Ou}var Au,Rp;function $c(){if(Rp)return Au;Rp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Au=e,Au}var Pu,Op;function tg(){return Op||(Op=1,Pu=Function.call.bind(Object.prototype.hasOwnProperty)),Pu}var Du,Ap;function rO(){if(Ap)return Du;Ap=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=$c(),t={},a=tg();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 _=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 _.name="Invariant Violation",_}m=i[g](c,g,d,l,null,r)}catch(x){m=x}if(m&&!(m instanceof Error)&&e((d||"React class")+": type specification of "+l+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in t)){t[m.message]=!0;var E=p?p():"";e("Failed "+l+" type: "+m.message+(E??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},Du=s,Du}var Iu,Pp;function nO(){if(Pp)return Iu;Pp=1;var e=eg(),r=Fc(),t=$c(),a=tg(),s=rO(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var d="Warning: "+l;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function c(){return null}return Iu=function(l,d){var p=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function m(W){var q=W&&(p&&W[p]||W[g]);if(typeof q=="function")return q}var _="<<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:j(),arrayOf:M,element:k(),elementType:O(),instanceOf:Y,node:We(),objectOf:z,oneOf:H,oneOfType:te,shape:it,exact:X};function x(W,q){return W===q?W!==0||1/W===1/q:W!==W&&q!==q}function C(W,q){this.message=W,this.data=q&&typeof q=="object"?q:{},this.stack=""}C.prototype=Error.prototype;function I(W){if(process.env.NODE_ENV!=="production")var q={},de=0;function le(fe,ne,ce,ue,he,ge,K){if(ue=ue||_,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;!q[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."),q[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 q(de,le,se,fe,ne,ce){var ue=de[le],he=et(ue);if(he!==W){var ge=Ge(ue);return new C("Invalid "+fe+" `"+ne+"` of type "+("`"+ge+"` supplied to `"+se+"`, expected ")+("`"+W+"`."),{expectedType:W})}return null}return I(q)}function j(){return I(c)}function M(W){function q(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(q)}function k(){function W(q,de,le,se,fe){var ne=q[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(q,de,le,se,fe){var ne=q[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 q(de,le,se,fe,ne){if(!(de[le]instanceof W)){var ce=W.name||_,ue=Yt(de[le]);return new C("Invalid "+fe+" `"+ne+"` of type "+("`"+ue+"` supplied to `"+se+"`, expected ")+("instance of `"+ce+"`."))}return null}return I(q)}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 q(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=Ge(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(q)}function z(W){function q(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(q)}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 q=0;q<W.length;q++){var de=W[q];if(typeof de!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+nt(de)+" at index "+q+"."),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(q,de,le,se,fe){return Pe(q[de])?null:new C("Invalid "+se+" `"+fe+"` supplied to "+("`"+le+"`, expected a ReactNode."))}return I(W)}function Te(W,q,de,le,se){return new C((W||"React class")+": "+q+" type `"+de+"."+le+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+se+"`.")}function it(W){function q(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,Ge(ge));var K=ge(ce,he,se,fe,ne+"."+he,t);if(K)return K}return null}return I(q)}function X(W){function q(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,Ge(K));if(!K)return new C("Invalid "+fe+" `"+ne+"` key `"+ge+"` supplied to `"+se+"`.\nBad object: "+JSON.stringify(de[le],null," ")+`
|
|
58
|
+
Valid keys: `+JSON.stringify(Object.keys(W),null," "));var F=K(ce,ge,se,fe,ne+"."+ge,t);if(F)return F}return null}return I(q)}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 q=m(W);if(q){var de=q.call(W),le;if(q!==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,q){return W==="symbol"?!0:q?q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&q instanceof Symbol:!1}function et(W){var q=typeof W;return Array.isArray(W)?"array":W instanceof RegExp?"object":ut(q,W)?"symbol":q}function Ge(W){if(typeof W>"u"||W===null)return""+W;var q=et(W);if(q==="object"){if(W instanceof Date)return"date";if(W instanceof RegExp)return"regexp"}return q}function nt(W){var q=Ge(W);switch(q){case"array":case"object":return"an "+q;case"boolean":case"date":case"regexp":return"a "+q;default:return q}}function Yt(W){return!W.constructor||!W.constructor.name?_:W.constructor.name}return E.checkPropTypes=s,E.resetWarningCache=s.resetWarningCache,E.PropTypes=E,E},Iu}var Fu,Dp;function aO(){if(Dp)return Fu;Dp=1;var e=$c();function r(){}function t(){}return t.resetWarningCache=r,Fu=function(){function a(c,l,d,p,g,m){if(m!==e){var _=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw _.name="Invariant Violation",_}}a.isRequired=a;function s(){return a}var i={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:s,element:a,elementType:a,instanceOf:s,node:a,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:t,resetWarningCache:r};return i.PropTypes=i,i},Fu}if(process.env.NODE_ENV!=="production"){var oO=eg(),sO=!0;sc.exports=nO()(oO.isElement,sO)}else sc.exports=aO()();var iO=sc.exports;const zn=Rs(iO);var Wr=Ke.createContext(null);process.env.NODE_ENV!=="production"&&(Wr.displayName="ReactRedux");function uO(e){e()}var rg=uO,cO=function(r){return rg=r},lO=function(){return rg};function fO(){var e=lO(),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 Ip={notify:function(){},get:function(){return[]}};function ng(e,r){var t,a=Ip;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=fO())}function p(){t&&(t(),t=void 0,a.clear(),a=Ip)}var g={addNestedSub:s,notifyNestedSubs:i,handleChangeWrapper:c,isSubscribed:l,trySubscribe:d,tryUnsubscribe:p,getListeners:function(){return a}};return g}var ic=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Ke.useLayoutEffect:Ke.useEffect;function ag(e){var r=e.store,t=e.context,a=e.children,s=Ke.useMemo(function(){var l=ng(r);return{store:r,subscription:l}},[r]),i=Ke.useMemo(function(){return r.getState()},[r]);ic(function(){var l=s.subscription;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),i!==r.getState()&&l.notifyNestedSubs(),function(){l.tryUnsubscribe(),l.onStateChange=null}},[s,i]);var c=t||Wr;return Ke.createElement(c.Provider,{value:s},a)}process.env.NODE_ENV!=="production"&&(ag.propTypes={store:zn.shape({subscribe:zn.func.isRequired,dispatch:zn.func.isRequired,getState:zn.func.isRequired}),context:zn.object,children:zn.any});var uc={exports:{}},$e={};/** @license React v16.13.1
|
|
59
59
|
* react-is.production.min.js
|
|
60
60
|
*
|
|
61
61
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
62
62
|
*
|
|
63
63
|
* This source code is licensed under the MIT license found in the
|
|
64
64
|
* LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/var
|
|
65
|
+
*/var Fp;function dO(){if(Fp)return $e;Fp=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,_=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,j=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 k(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 k(O)||M(O)===d},$e.isConcurrentMode=k,$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===_||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===j||O.$$typeof===C)},$e.typeOf=M,$e}var Me={};/** @license React v16.13.1
|
|
66
66
|
* react-is.development.js
|
|
67
67
|
*
|
|
68
68
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
69
69
|
*
|
|
70
70
|
* This source code is licensed under the MIT license found in the
|
|
71
71
|
* LICENSE file in the root directory of this source tree.
|
|
72
|
-
*/var
|
|
72
|
+
*/var $p;function pO(){return $p||($p=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,_=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,j=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===_||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===j||F.$$typeof===C)}function k(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,Ge=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)||k(F)===d}function W(F){return k(F)===p}function q(F){return k(F)===l}function de(F){return k(F)===c}function le(F){return typeof F=="object"&&F!==null&&F.$$typeof===r}function se(F){return k(F)===g}function fe(F){return k(F)===a}function ne(F){return k(F)===x}function ce(F){return k(F)===E}function ue(F){return k(F)===t}function he(F){return k(F)===i}function ge(F){return k(F)===s}function K(F){return k(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=Ge,Me.isAsyncMode=Yt,Me.isConcurrentMode=W,Me.isContextConsumer=q,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=k}()),Me}process.env.NODE_ENV==="production"?uc.exports=dO():uc.exports=pO();var hO=uc.exports,og=hO,gO={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},vO={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},sg={};sg[og.ForwardRef]=gO;sg[og.Memo]=vO;var je={};/** @license React v17.0.2
|
|
73
73
|
* react-is.production.min.js
|
|
74
74
|
*
|
|
75
75
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
76
76
|
*
|
|
77
77
|
* This source code is licensed under the MIT license found in the
|
|
78
78
|
* LICENSE file in the root directory of this source tree.
|
|
79
|
-
*/var
|
|
79
|
+
*/var Mp;function mO(){if(Mp)return je;Mp=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,_=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"),_=P("react.block"),E=P("react.server.block"),x=P("react.fundamental"),C=P("react.debug_trace_mode"),I=P("react.legacy_hidden")}function j(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,k=e,O=l,Y=t,H=m,z=g,te=r,We=s,Te=a,it=d;return je.ContextConsumer=c,je.ContextProvider=M,je.Element=k,je.ForwardRef=O,je.Fragment=Y,je.Lazy=H,je.Memo=z,je.Portal=te,je.Profiler=We,je.StrictMode=Te,je.Suspense=it,je.isAsyncMode=function(){return!1},je.isConcurrentMode=function(){return!1},je.isContextConsumer=function(X){return j(X)===c},je.isContextProvider=function(X){return j(X)===i},je.isElement=function(X){return typeof X=="object"&&X!==null&&X.$$typeof===e},je.isForwardRef=function(X){return j(X)===l},je.isFragment=function(X){return j(X)===t},je.isLazy=function(X){return j(X)===m},je.isMemo=function(X){return j(X)===g},je.isPortal=function(X){return j(X)===r},je.isProfiler=function(X){return j(X)===s},je.isStrictMode=function(X){return j(X)===a},je.isSuspense=function(X){return j(X)===d},je.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===_||X[0]===E)},je.typeOf=j,je}var Be={};/** @license React v17.0.2
|
|
80
80
|
* react-is.development.js
|
|
81
81
|
*
|
|
82
82
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
83
83
|
*
|
|
84
84
|
* This source code is licensed under the MIT license found in the
|
|
85
85
|
* LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/var
|
|
86
|
+
*/var Np;function yO(){return Np||(Np=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,_=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"),_=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 j=!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||j||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===_||K[0]===E))}function k(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,Ge=!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 Ge||(Ge=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function W(K){return k(K)===c}function q(K){return k(K)===i}function de(K){return typeof K=="object"&&K!==null&&K.$$typeof===e}function le(K){return k(K)===l}function se(K){return k(K)===t}function fe(K){return k(K)===m}function ne(K){return k(K)===g}function ce(K){return k(K)===r}function ue(K){return k(K)===s}function he(K){return k(K)===a}function ge(K){return k(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=q,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=k}()),Be}process.env.NODE_ENV==="production"?mO():yO();function Lp(e,r){return e===r?e!==0||r!==0||1/e===1/r:e!==e&&r!==r}function ig(e,r){if(Lp(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])||!Lp(e[t[s]],r[t[s]]))return!1;return!0}function ug(){var e=Ke.useContext(Wr);if(process.env.NODE_ENV!=="production"&&!e)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return e}function cg(e){e===void 0&&(e=Wr);var r=e===Wr?ug:function(){return Ke.useContext(e)};return function(){var a=r(),s=a.store;return s}}var bO=cg();function _O(e){e===void 0&&(e=Wr);var r=e===Wr?bO:cg(e);return function(){var a=r();return a.dispatch}}var EO=_O(),SO=function(r,t){return r===t};function wO(e,r,t,a){var s=Ke.useReducer(function(x){return x+1},0),i=s[1],c=Ke.useMemo(function(){return ng(t,a)},[t,a]),l=Ke.useRef(),d=Ke.useRef(),p=Ke.useRef(),g=Ke.useRef(),m=t.getState(),_;try{if(e!==d.current||m!==p.current||l.current){var E=e(m);g.current===void 0||!r(E,g.current)?_=E:_=g.current}else _=g.current}catch(x){throw l.current&&(x.message+=`
|
|
87
87
|
The error may be correlated with this previous error:
|
|
88
88
|
`+l.current.stack+`
|
|
89
89
|
|
|
90
|
-
`),x}return ic(function(){d.current=e,p.current=m,g.current=b,l.current=void 0}),ic(function(){function x(){try{var C=t.getState();if(C===p.current)return;var I=d.current(C);if(r(I,g.current))return;g.current=I,p.current=C}catch(P){l.current=P}i()}return c.onStateChange=x,c.trySubscribe(),x(),function(){return c.tryUnsubscribe()}},[t,c]),b}function xO(e){e===void 0&&(e=Wr);var r=e===Wr?ig:function(){return Ke.useContext(e)};return function(a,s){if(s===void 0&&(s=wO),process.env.NODE_ENV!=="production"){if(!a)throw new Error("You must pass a selector to useSelector");if(typeof a!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof s!="function")throw new Error("You must pass a function as an equality function to useSelector")}var i=r(),c=i.store,l=i.subscription,d=TO(a,s,c,l);return Ke.useDebugValue(d),d}}var CO=xO();lO(eS.unstable_batchedUpdates);const RO=()=>SO(),Ur=CO,$c=q(e=>e,e=>e.catalog.state==="loaded"?e.catalog.model:null),OO=q(e=>e,({catalog:e})=>e.state),AO=q($c,e=>e?e.dataClasses:[]),PO=q($c,e=>e?e.methods:[]),cg=e=>q(r=>r,r=>{switch(r.catalog.state){case"loaded":const t=e?r.catalog.model.dataClasses[e]:r.catalog.model;return(t==null?void 0:t.methods)||[];default:return[]}}),DO=e=>Ur(cg(e),sg),IO=(e,r)=>q(cg(e),t=>t.find(a=>`${a.applyTo}.${a.name}`===r)),FO=(e,r,t)=>Ur(IO(e,`${t}.${r}`),sg),lg=q(e=>e,e=>e),$O=e=>q(Hr,r=>{var s;const t=r.tabs.find(({path:i})=>i===e),a=t==null?void 0:t.content.components;return!t||!a?[]:(s=Object.keys(a))==null?void 0:s.map(i=>({id:i,...a[i]}))}),fg=e=>q(Hr,r=>{var a,s;const t=r.tabs.find(({path:i})=>i===e);return((s=(a=t==null?void 0:t.content)==null?void 0:a.metadata)==null?void 0:s.datasources)||[]}),MO=(e,r,t)=>q(lg,a=>{var s,i;if(r){const c=a.sharedDatasources.sources[r];return c?c.find(l=>l.id===e):void 0}else{const c=a.root.tabs.find(d=>d.path===t);return c?(i=(s=c.content.metadata)==null?void 0:s.datasources)==null?void 0:i.find(d=>d.id===e):void 0}}),dg=q(e=>e,e=>{var r;return((r=e.sharedDatasources)==null?void 0:r.sources)||[]}),NO=(e,r,t,a)=>q(fg(e),dg,(s,i)=>{const c=ze.flatten(ze.values(i)),l=[...r!=="private"?s:[],...r!=="shared"?c:[]];return t?l.filter(d=>(!a||a.every(({id:p,namespace:g=""})=>d.id!==p||(d.namespace||"")!==g))&&(t.includes(d.type)||d.dataType&&(t.includes(d.dataType)||t.includes("objectFromArray")&&d.dataType==="object"&&d.from))):l}),LO=q(e=>e.debugger,e=>e.meta),Pn=q(e=>e.debugger,e=>e.list),It=q(e=>e.debugger,e=>e.sessions),jO=q(It,e=>e.length),On=(e,r,t,a)=>e.find(s=>s.filePath===r&&s.methodName===t&&(!a||s.className===a)),st=(e,r)=>e.find(t=>t.threadId===r),pg=(e,r)=>e.find(t=>t.tabPath===r),kO=(e,r)=>q(Pn,t=>{var a;return((a=On(t,e,r))==null?void 0:a.breakpoints.saved.locations)||[]}),BO=(e,r)=>q(Pn,t=>{var a;return((a=On(t,e,r))==null?void 0:a.breakpoints.draft.locations)||[]}),WO=e=>q(Pn,r=>r.filter(t=>t.filePath===e).reduce((t,a)=>[...t,...a.breakpoints.saved.locations.map(s=>({...s,line:s.line+(a.breakpoints.saved.offset||0)}))],[]).sort((t,a)=>t.line-a.line)),UO=e=>q(Pn,r=>r.filter(t=>t.filePath===e).reduce((t,a)=>[...t,...a.breakpoints.draft.locations.map(s=>({...s,line:s.line+(a.breakpoints.draft.offset||0)}))],[]).sort((t,a)=>t.line-a.line)),HO=e=>q(It,r=>{const t=st(r,e);return t!=null&&t.stopped?t.highlightedLines:null}),qO=e=>q(It,r=>{const t=st(r,e);return t!=null&&t.stopped?t.activeLine:null}),GO=e=>q(It,r=>{var t;return((t=st(r,e))==null?void 0:t.expressions)||[]}),zO=e=>q(It,r=>{var t;return((t=st(r,e))==null?void 0:t.stopped)||!1}),YO=(e,r)=>q(Pn,t=>{var a;return(a=On(t,e,r))==null?void 0:a.source}),VO=e=>q(It,r=>{var t;return((t=pg(r,e))==null?void 0:t.threadId)||-1}),KO=e=>q(It,r=>{var t,a;return(a=(t=st(r,e))==null?void 0:t.currentStackFrame)==null?void 0:a.source}),JO=e=>q(It,r=>{var t;return(t=st(r,e))==null?void 0:t.currentStackFrame}),XO=q(It,e=>e.map(({channelId:r,threadId:t})=>({id:r,threadId:t}))),ZO=e=>q(It,r=>{var t;return((t=st(r,e))==null?void 0:t.stackFrames)||[]}),QO=e=>q(It,r=>{var t,a;return((a=(t=st(r,e))==null?void 0:t.variables)==null?void 0:a.callchain)||[]}),eA=e=>q(It,r=>{var t,a;return((a=(t=st(r,e))==null?void 0:t.variables)==null?void 0:a.expressions)||[]}),tA=(e,r="saved")=>q(Pn,t=>{const a=t.find(s=>s.filePath===e);return(a==null?void 0:a.breakpoints[r].offset)||0}),rA=(e,r,t,a)=>q(It,s=>{var p;const i=((p=st(s,e))==null?void 0:p.exceptions)||[],c=r===_.FileFolderType.CLASS,l=c&&a?`${a}.${t}`:t;return(l?i.filter(g=>g.location===l):i).map(g=>({...g,locationLine:c?g.locationLine:g.locationLine+1}))}),Hr=q(e=>e.root,e=>e),ia=q(Hr,e=>e.tabs),nA=q(Hr,e=>e.activeTab),aA=q(Hr,e=>e.recent.filter(({type:r})=>r!==_.FileFolderType.DEBUGGER)),oA=q(Hr,({tabs:e,activeTab:r})=>e.find(({path:t})=>t===r)),sA=q(Hr,({tabs:e})=>e.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null)),iA=q(ia,e=>e.filter(({type:r,flags:t})=>r===_.FileFolderType.WEBFORM&&t.enabled===!1).map(({path:r})=>r)),uA=q(ia,e=>e.length>0),Ga=e=>q(Hr,r=>r.tabs.find(({path:t})=>t===e)),hg=(e,r="")=>q(Ga(e),t=>!t||!t.content||typeof t.content=="string"?t==null?void 0:t.content:ze.get(t.content,r)),cA=e=>q(Ga(e),r=>r==null?void 0:r.extra),lA=(e,r=t=>t)=>q(hg(e,"components"),t=>r(t||{})),Mc=q(ia,e=>e.filter(r=>r.flags.touched)),fA=q(Mc,e=>e.length),dA=q(It,e=>e.map(({threadId:r,currentStackFrame:{source:t},tabPath:a})=>({name:Ah(r,t),path:a,type:_.FileFolderType.DEBUGGER,content:t==null?void 0:t.content,flags:{},extra:{source:t}}))),pA=q(e=>e,e=>e.explorer||[]),gg=q(e=>e,e=>e.explorer.find(r=>r.path===_.FolderRootPath.WEBFORMS)),vg=q(e=>e,e=>e.explorer.find(r=>r.path===_.FolderRootPath.METHODS)),mg=q(e=>e,e=>e.explorer.find(r=>r.path===_.FolderRootPath.CLASSES)),hA=q(vg,e=>(e==null?void 0:e.children)||[]),gA=q(gg,e=>(e==null?void 0:e.children)||[]),vA=q(mg,e=>(e==null?void 0:e.children)||[]),mA=q(e=>e.modals,e=>e.list),yA=q(e=>e.roles,e=>qs(e)),bA=q(e=>e.roles,({roles:e})=>e),_A=q(e=>e.roles,({privileges:e})=>e),EA=q(e=>e.roles,({privileges:e})=>Object.values(e).find(({privilege:r})=>r==="guest")),SA=q(e=>e.roles,({flags:e})=>e),wA=q(e=>e.roles,({selectedTab:e})=>e),TA=q(e=>e.roles,({date:e})=>e),yg=q(e=>e.settings,e=>e.session),xA=q(e=>e.settings,e=>e.project),CA=q(e=>e.settings,e=>e),Nc=q(e=>e.settings,e=>e.server),RA=q(Nc,e=>e.remoteDebuggerMode),OA=q(Nc,e=>e.qodly),AA=q(yg,e=>e["monaco.zoom"]),bg=["rounded-full","rounded-lg","border-gray-400","border-2","bg-red-500","bg-blue-500","bg-indigo-500","bg-transparent","bg-primary-dark","bg-green-500","bg-yellow-400","text-gray-500","text-4xl","text-white","px-4","py-2","primary","info","secondary","success","warning","danger","w-10","w-20","w-40","w-60","w-80","mb-2","mb-3","shadow","shadow-lg","shadow-xl","shadow-2xl"],_g=bg.map(e=>({id:wc(),content:"",name:e,parentId:null,scope:_.EWebFormStyleClassScope.THEME})),Lc=e=>q(Ga(e),r=>{var t,a;return((a=(t=r==null?void 0:r.content)==null?void 0:t.metadata)==null?void 0:a.styles)||[]}),PA=(e,r)=>q(Lc(e),t=>r.map(a=>{switch(!0){case a===_.EWebFormStyleClassScope.LOCAL:return t.map(s=>({...s,scope:_.EWebFormStyleClassScope.LOCAL}));case a===_.EWebFormStyleClassScope.THEME:return _g;default:return[]}}).flat()),DA=e=>q(Lc(e),r=>[...r.map(t=>({...t,scope:_.EWebFormStyleClassScope.LOCAL})),..._g]),IA=q(e=>e,e=>{var r;return[...(((r=e.sharedCSS)==null?void 0:r.styles)||[]).map(t=>({...t,scope:_.EWebFormStyleClassScope.SHARED}))]}),FA=e=>q(Ga(e),r=>r==null?void 0:r.flags),za=q(e=>e.webforms,e=>e),Eg=q(za,e=>(e==null?void 0:e.components)||[]),js=q(za,e=>e.inspector),$A=q(js,e=>e.css),MA=q(js,e=>e.datasource),Sg=q(za,e=>e.templates||{data:[]}),NA=q(Sg,e=>e.data||[]),LA=e=>q(Eg,r=>r.find(t=>t.id===e)),jA=e=>q(js,r=>r[e]),kA=q(za,e=>e.datasources.theme),BA=q(e=>e.catalog,e=>e.sharedDatasources,e=>e.sharedCSS,(e,r,t)=>[e.state,r.state,t.state].every(a=>["loaded","error"].includes(a)));var jc=(e=>(e.SHOW_AFTER_TIMEOUT="show_after_timeout",e.HIDE_AFTER_TIMEOUT="hide_after_timeout",e))(jc||{}),kc=(e=>(e.AIRY="airy",e.COMPACT="neutral",e))(kc||{}),Ko,WA=new Uint8Array(16);function wg(){if(!Ko&&(Ko=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Ko))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ko(WA)}const UA=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function ks(e){return typeof e=="string"&&UA.test(e)}var mt=[];for(var $u=0;$u<256;++$u)mt.push(($u+256).toString(16).substr(1));function Bs(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(mt[e[r+0]]+mt[e[r+1]]+mt[e[r+2]]+mt[e[r+3]]+"-"+mt[e[r+4]]+mt[e[r+5]]+"-"+mt[e[r+6]]+mt[e[r+7]]+"-"+mt[e[r+8]]+mt[e[r+9]]+"-"+mt[e[r+10]]+mt[e[r+11]]+mt[e[r+12]]+mt[e[r+13]]+mt[e[r+14]]+mt[e[r+15]]).toLowerCase();if(!ks(t))throw TypeError("Stringified UUID is invalid");return t}var Lp,Mu,Nu=0,Lu=0;function HA(e,r,t){var a=r&&t||0,s=r||new Array(16);e=e||{};var i=e.node||Lp,c=e.clockseq!==void 0?e.clockseq:Mu;if(i==null||c==null){var l=e.random||(e.rng||wg)();i==null&&(i=Lp=[l[0]|1,l[1],l[2],l[3],l[4],l[5]]),c==null&&(c=Mu=(l[6]<<8|l[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),p=e.nsecs!==void 0?e.nsecs:Lu+1,g=d-Nu+(p-Lu)/1e4;if(g<0&&e.clockseq===void 0&&(c=c+1&16383),(g<0||d>Nu)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Nu=d,Lu=p,Mu=c,d+=122192928e5;var m=((d&268435455)*1e4+p)%4294967296;s[a++]=m>>>24&255,s[a++]=m>>>16&255,s[a++]=m>>>8&255,s[a++]=m&255;var b=d/4294967296*1e4&268435455;s[a++]=b>>>8&255,s[a++]=b&255,s[a++]=b>>>24&15|16,s[a++]=b>>>16&255,s[a++]=c>>>8|128,s[a++]=c&255;for(var E=0;E<6;++E)s[a+E]=i[E];return r||Bs(s)}function Tg(e){if(!ks(e))throw TypeError("Invalid UUID");var r,t=new Uint8Array(16);return t[0]=(r=parseInt(e.slice(0,8),16))>>>24,t[1]=r>>>16&255,t[2]=r>>>8&255,t[3]=r&255,t[4]=(r=parseInt(e.slice(9,13),16))>>>8,t[5]=r&255,t[6]=(r=parseInt(e.slice(14,18),16))>>>8,t[7]=r&255,t[8]=(r=parseInt(e.slice(19,23),16))>>>8,t[9]=r&255,t[10]=(r=parseInt(e.slice(24,36),16))/1099511627776&255,t[11]=r/4294967296&255,t[12]=r>>>24&255,t[13]=r>>>16&255,t[14]=r>>>8&255,t[15]=r&255,t}function qA(e){e=unescape(encodeURIComponent(e));for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t));return r}var GA="6ba7b810-9dad-11d1-80b4-00c04fd430c8",zA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function xg(e,r,t){function a(s,i,c,l){if(typeof s=="string"&&(s=qA(s)),typeof i=="string"&&(i=Tg(i)),i.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var d=new Uint8Array(16+s.length);if(d.set(i),d.set(s,i.length),d=t(d),d[6]=d[6]&15|r,d[8]=d[8]&63|128,c){l=l||0;for(var p=0;p<16;++p)c[l+p]=d[p];return c}return Bs(d)}try{a.name=e}catch{}return a.DNS=GA,a.URL=zA,a}function YA(e){if(typeof e=="string"){var r=unescape(encodeURIComponent(e));e=new Uint8Array(r.length);for(var t=0;t<r.length;++t)e[t]=r.charCodeAt(t)}return VA(KA(JA(e),e.length*8))}function VA(e){for(var r=[],t=e.length*32,a="0123456789abcdef",s=0;s<t;s+=8){var i=e[s>>5]>>>s%32&255,c=parseInt(a.charAt(i>>>4&15)+a.charAt(i&15),16);r.push(c)}return r}function Cg(e){return(e+64>>>9<<4)+14+1}function KA(e,r){e[r>>5]|=128<<r%32,e[Cg(r)-1]=r;for(var t=1732584193,a=-271733879,s=-1732584194,i=271733878,c=0;c<e.length;c+=16){var l=t,d=a,p=s,g=i;t=Et(t,a,s,i,e[c],7,-680876936),i=Et(i,t,a,s,e[c+1],12,-389564586),s=Et(s,i,t,a,e[c+2],17,606105819),a=Et(a,s,i,t,e[c+3],22,-1044525330),t=Et(t,a,s,i,e[c+4],7,-176418897),i=Et(i,t,a,s,e[c+5],12,1200080426),s=Et(s,i,t,a,e[c+6],17,-1473231341),a=Et(a,s,i,t,e[c+7],22,-45705983),t=Et(t,a,s,i,e[c+8],7,1770035416),i=Et(i,t,a,s,e[c+9],12,-1958414417),s=Et(s,i,t,a,e[c+10],17,-42063),a=Et(a,s,i,t,e[c+11],22,-1990404162),t=Et(t,a,s,i,e[c+12],7,1804603682),i=Et(i,t,a,s,e[c+13],12,-40341101),s=Et(s,i,t,a,e[c+14],17,-1502002290),a=Et(a,s,i,t,e[c+15],22,1236535329),t=St(t,a,s,i,e[c+1],5,-165796510),i=St(i,t,a,s,e[c+6],9,-1069501632),s=St(s,i,t,a,e[c+11],14,643717713),a=St(a,s,i,t,e[c],20,-373897302),t=St(t,a,s,i,e[c+5],5,-701558691),i=St(i,t,a,s,e[c+10],9,38016083),s=St(s,i,t,a,e[c+15],14,-660478335),a=St(a,s,i,t,e[c+4],20,-405537848),t=St(t,a,s,i,e[c+9],5,568446438),i=St(i,t,a,s,e[c+14],9,-1019803690),s=St(s,i,t,a,e[c+3],14,-187363961),a=St(a,s,i,t,e[c+8],20,1163531501),t=St(t,a,s,i,e[c+13],5,-1444681467),i=St(i,t,a,s,e[c+2],9,-51403784),s=St(s,i,t,a,e[c+7],14,1735328473),a=St(a,s,i,t,e[c+12],20,-1926607734),t=wt(t,a,s,i,e[c+5],4,-378558),i=wt(i,t,a,s,e[c+8],11,-2022574463),s=wt(s,i,t,a,e[c+11],16,1839030562),a=wt(a,s,i,t,e[c+14],23,-35309556),t=wt(t,a,s,i,e[c+1],4,-1530992060),i=wt(i,t,a,s,e[c+4],11,1272893353),s=wt(s,i,t,a,e[c+7],16,-155497632),a=wt(a,s,i,t,e[c+10],23,-1094730640),t=wt(t,a,s,i,e[c+13],4,681279174),i=wt(i,t,a,s,e[c],11,-358537222),s=wt(s,i,t,a,e[c+3],16,-722521979),a=wt(a,s,i,t,e[c+6],23,76029189),t=wt(t,a,s,i,e[c+9],4,-640364487),i=wt(i,t,a,s,e[c+12],11,-421815835),s=wt(s,i,t,a,e[c+15],16,530742520),a=wt(a,s,i,t,e[c+2],23,-995338651),t=Tt(t,a,s,i,e[c],6,-198630844),i=Tt(i,t,a,s,e[c+7],10,1126891415),s=Tt(s,i,t,a,e[c+14],15,-1416354905),a=Tt(a,s,i,t,e[c+5],21,-57434055),t=Tt(t,a,s,i,e[c+12],6,1700485571),i=Tt(i,t,a,s,e[c+3],10,-1894986606),s=Tt(s,i,t,a,e[c+10],15,-1051523),a=Tt(a,s,i,t,e[c+1],21,-2054922799),t=Tt(t,a,s,i,e[c+8],6,1873313359),i=Tt(i,t,a,s,e[c+15],10,-30611744),s=Tt(s,i,t,a,e[c+6],15,-1560198380),a=Tt(a,s,i,t,e[c+13],21,1309151649),t=Tt(t,a,s,i,e[c+4],6,-145523070),i=Tt(i,t,a,s,e[c+11],10,-1120210379),s=Tt(s,i,t,a,e[c+2],15,718787259),a=Tt(a,s,i,t,e[c+9],21,-343485551),t=nn(t,l),a=nn(a,d),s=nn(s,p),i=nn(i,g)}return[t,a,s,i]}function JA(e){if(e.length===0)return[];for(var r=e.length*8,t=new Uint32Array(Cg(r)),a=0;a<r;a+=8)t[a>>5]|=(e[a/8]&255)<<a%32;return t}function nn(e,r){var t=(e&65535)+(r&65535),a=(e>>16)+(r>>16)+(t>>16);return a<<16|t&65535}function XA(e,r){return e<<r|e>>>32-r}function Ws(e,r,t,a,s,i){return nn(XA(nn(nn(r,e),nn(a,i)),s),t)}function Et(e,r,t,a,s,i,c){return Ws(r&t|~r&a,e,r,s,i,c)}function St(e,r,t,a,s,i,c){return Ws(r&a|t&~a,e,r,s,i,c)}function wt(e,r,t,a,s,i,c){return Ws(r^t^a,e,r,s,i,c)}function Tt(e,r,t,a,s,i,c){return Ws(t^(r|~a),e,r,s,i,c)}var ZA=xg("v3",48,YA);const QA=ZA;function eP(e,r,t){e=e||{};var a=e.random||(e.rng||wg)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,r){t=t||0;for(var s=0;s<16;++s)r[t+s]=a[s];return r}return Bs(a)}function tP(e,r,t,a){switch(e){case 0:return r&t^~r&a;case 1:return r^t^a;case 2:return r&t^r&a^t&a;case 3:return r^t^a}}function ju(e,r){return e<<r|e>>>32-r}function rP(e){var r=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var a=unescape(encodeURIComponent(e));e=[];for(var s=0;s<a.length;++s)e.push(a.charCodeAt(s))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,c=Math.ceil(i/16),l=new Array(c),d=0;d<c;++d){for(var p=new Uint32Array(16),g=0;g<16;++g)p[g]=e[d*64+g*4]<<24|e[d*64+g*4+1]<<16|e[d*64+g*4+2]<<8|e[d*64+g*4+3];l[d]=p}l[c-1][14]=(e.length-1)*8/Math.pow(2,32),l[c-1][14]=Math.floor(l[c-1][14]),l[c-1][15]=(e.length-1)*8&4294967295;for(var m=0;m<c;++m){for(var b=new Uint32Array(80),E=0;E<16;++E)b[E]=l[m][E];for(var x=16;x<80;++x)b[x]=ju(b[x-3]^b[x-8]^b[x-14]^b[x-16],1);for(var C=t[0],I=t[1],P=t[2],k=t[3],M=t[4],j=0;j<80;++j){var O=Math.floor(j/20),Y=ju(C,5)+tP(O,I,P,k)+M+r[O]+b[j]>>>0;M=k,k=P,P=ju(I,30)>>>0,I=C,C=Y}t[0]=t[0]+C>>>0,t[1]=t[1]+I>>>0,t[2]=t[2]+P>>>0,t[3]=t[3]+k>>>0,t[4]=t[4]+M>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,t[0]&255,t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,t[1]&255,t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,t[2]&255,t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,t[3]&255,t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,t[4]&255]}var nP=xg("v5",80,rP);const aP=nP,oP="00000000-0000-0000-0000-000000000000";function sP(e){if(!ks(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const iP=Object.freeze(Object.defineProperty({__proto__:null,NIL:oP,parse:Tg,stringify:Bs,v1:HA,v3:QA,v4:eP,v5:aP,validate:ks,version:sP},Symbol.toStringTag,{value:"Module"})),uP=ow(iP);function Bc(e,r){if(!e||!r||!e.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=r}Bc.prototype.convert=function(e){var r,t,a,s={},i=this.srcAlphabet.length,c=this.dstAlphabet.length,l=e.length,d=typeof e=="string"?"":[];if(!this.isValid(e))throw new Error('Number "'+e+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return e;for(r=0;r<l;r++)s[r]=this.srcAlphabet.indexOf(e[r]);do{for(t=0,a=0,r=0;r<l;r++)t=t*i+s[r],t>=c?(s[a++]=parseInt(t/c,10),t=t%c):a>0&&(s[a++]=0);l=a,d=this.dstAlphabet.slice(t,t+1).concat(d)}while(a!==0);return d};Bc.prototype.isValid=function(e){for(var r=0;r<e.length;++r)if(this.srcAlphabet.indexOf(e[r])===-1)return!1;return!0};var cP=Bc,lP=cP;function Ya(e,r){var t=new lP(e,r);return function(a){return t.convert(a)}}Ya.BIN="01";Ya.OCT="01234567";Ya.DEC="0123456789";Ya.HEX="0123456789abcdef";var fP=Ya;const{v4:ku}=uP,Jo=fP,Bu="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",dP="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",pP={consistentLength:!0};let Wu;const jp=(e,r,t)=>{const a=r(e.toLowerCase().replace(/-/g,""));return!t||!t.consistentLength?a:a.padStart(t.shortIdLength,t.paddingChar)},hP=(e,r)=>{const a=r(e).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[a[1],a[2],a[3],a[4],a[5]].join("-")},gP=e=>Math.ceil(Math.log(2**128)/Math.log(e));var bs=(()=>{const e=(r,t)=>{const a=r||Bu,s={...pP,...t};if([...new Set(Array.from(a))].length!==a.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const i=gP(a.length),c={shortIdLength:i,consistentLength:s.consistentLength,paddingChar:a[0]},l=Jo(Jo.HEX,a),d=Jo(a,Jo.HEX),p=()=>jp(ku(),l,c),g={new:p,generate:p,uuid:ku,fromUUID:m=>jp(m,l,c),toUUID:m=>hP(m,d),alphabet:a,maxLength:i};return Object.freeze(g),g};return e.constants={flickrBase58:Bu,cookieBase90:dP},e.uuid=ku,e.generate=()=>(Wu||(Wu=e(Bu).generate),Wu()),e})(),Ae=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e))(Ae||{});const vP=[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE,Ae.METHOD],_s="guest",Wc=[{key:"read",label:"Read",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"create",label:"Create",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"update",label:"Update",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"drop",label:"Delete",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"describe",label:"Describe",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE,Ae.METHOD]},{key:"execute",label:"Execute",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.METHOD]},{key:"promote",label:"Promote",canApplyTo:[Ae.METHOD]}];function ar(e,...r){return Array.from(new Set([...e,...r]))}function Rg(e){const r={},t=new Map;e.forEach(d=>{const p=d.id||bs.generate();r[p]={...d,id:p,parents:[],includes:ar(d.includes||[]),resources:[]},t.set(d.privilege,p)}),Object.entries(r).forEach(([d,p])=>{const g=p.includes.map(m=>{const b=t.get(m);return b?(r[b].parents=ar(r[b].parents,b),b):""}).filter(Boolean);r[d]={...p,includes:g}});const a=Og(r),s=new Set;function i(d){s.add(d.id),d.includes=d.includes.filter(p=>!s.has(p))}if(a.forEach(i),a.forEach(d=>d.parents=[]),a.forEach(d=>{d.includes.forEach(p=>r[p].parents.push(d.id))}),Object.values(r).find(({privilege:d})=>d===_s))return r;const l=bs.generate();return{[l]:{id:l,privilege:_s,includes:[],parents:[],resources:[]},...r}}function Og(e){return Object.values(e).sort((r,t)=>r.parents.length-t.parents.length)}function Us(e,r){const t=r[e];let a=[];return t&&t.parents.forEach(s=>{a=ar(a,...Us(s,r),s)}),a}function Es(e,r){const t=r[e];let a=[];return t&&t.includes.forEach(s=>{a=ar(a,...Es(s,r),s)}),a}function mP(e,r){const t=r[e];if(!t)return[];const a=[e,...Us(e,r),...t.includes];return Object.keys(r).filter(s=>!a.includes(s))}function yP(e,r){return r[e]?Object.keys(r).reduce((a,s)=>s===e?a:{...a,[s]:{...r[s],parents:r[s].parents.filter(i=>i!==e),includes:r[s].includes.filter(i=>i!==e)}},{}):r}function bP(e,r,t){const a=t[e],s=t[r];return!a||!s?t:{...t,[e]:{...t[e],includes:ar(a.includes,r)},[r]:{...t[r],parents:ar(s.parents,e)}}}function _P(e,r,t){const a=t[e],s=t[r];return!a||!s?t:{...t,[e]:{...t[e],includes:t[e].includes.filter(i=>i!==r)},[r]:{...t[r],parents:t[r].parents.filter(i=>i!==e)}}}function Ag(e,r){_.validateName(e),Object.entries(r).forEach(([,{privilege:a}])=>{if(e.toLowerCase()===a.toLowerCase())throw new Error(`There's already a Privilege with the name ${e}`)});const t=bs.generate();return{[t]:{id:t,privilege:e,includes:[],parents:[],resources:[]},...r}}function EP(e,r,t,a,s){let i=Ag(e,s);const c=Object.entries(i).find(([,l])=>l.privilege===e);return c?(i=Fg(c[1].id,r,t,a,i),i):s}function SP(e,r,t){if(!e)throw new Error("Please enter a name");if(!t[r])throw new Error("Invalid privilege");return Object.entries(t).forEach(([,{privilege:a,id:s}])=>{if(e.toLowerCase()===a.toLowerCase()&&r!==s)throw new Error(`There's already a Privilege with the name ${e}`)}),{...t,[r]:{...t[r],privilege:e}}}function wP(e,r){return e.map(t=>qr(t,r))}function qr(e,r){return r[e]?r[e]:null}function Pg({applyTo:e,type:r,...t}){return Object.entries(t).reduce((a,[s,i])=>{const c=ze.find(Wc,["key",s]);return!c||!c.canApplyTo.includes(r)||(typeof i=="string"?i.split(","):i).forEach(d=>{a[d]=ar(a[d]||[],s)}),a},{})}const cc=(e,r=!1)=>["read","create","update","delete"].includes(e.toLowerCase())?`All ${r?"dataclasses and ":""}attributes have the '${e.toLowerCase()}' permission`:e.toLowerCase()==="execute"?`All functions defined ${r?"through the model (DataStore, Dataclasses, Entity selections, Entities) have the execute permission":"on this Dataclass, Entity selection class, Entity class have the execute permission"}`:`All ${r?"dataclasses, ":""}attributes and functions have the '${e.toLowerCase()}' permission`;function Uc(e){return{permissions:Wc.filter(({canApplyTo:r})=>r.includes(e.type)).map(({key:r,label:t})=>{const a={name:r,from:[]};switch(e.type){case Ae.DATASTORE:return{...a,info:cc(t,!0)};case Ae.DATACLASS:return{...a,info:cc(t)};default:return a}}),resource:e.applyTo,type:e.type}}function Dg(e,r){const t=Ig(r),a={};return e.filter(({type:s})=>vP.includes(s)).forEach(s=>{const i=Pg(s);Object.entries(i).forEach(([c,l])=>{var g;const d=(g=t[c])==null?void 0:g.id;if(!d)return;a[d]=a[d]||{...r[d]};let p=ze.find(a[d].resources,{resource:s.applyTo,type:s.type});p||(p=Uc(s),a[d].resources.push(p)),p.permissions=p.permissions.map(m=>({...m,checked:m.checked||l.includes(m.name)}))})}),{...r,...a}}function Ig(e){return Object.values(e).reduce((r,t)=>({...r,[t.privilege]:t}),{})}function Hs(e){var t;const r=Rg(e.privileges||[]);return{privileges:Dg(((t=e.permissions)==null?void 0:t.allowed)||[],r),roles:(e.roles||[]).map(({id:a=bs.generate(),role:s,privileges:i=[]})=>({id:a,role:s,privileges:ar(i).map(c=>{var l;return(l=Object.values(r).find(({privilege:d})=>d===c))==null?void 0:l.id}).filter(Boolean)})).reduce((a,s)=>({...a,[s.id]:{...s}}),{})}}function qs(e){const r=Object.values(e.privileges).filter(({includes:a})=>a.length===0).map(({id:a})=>a),t=[...r,...r.map(a=>Us(a,e.privileges).reverse())].flat().filter((a,s,i)=>i.indexOf(a)===s).map(a=>e.privileges[a]);return{permissions:{allowed:Object.values(e.privileges).reduce((a,s)=>(s.resources.forEach(({permissions:i,resource:c,type:l})=>{let d=ze.find(a,{applyTo:c,type:l});d||(d={applyTo:c,type:l},a.push(d)),i.forEach(({name:p,checked:g})=>{g&&d&&(d[p]=d[p]||[],d[p].push(s.privilege))})}),a),[])},privileges:t.filter(({privilege:a})=>a!==_s).map(({id:a,includes:s,privilege:i})=>({id:a,privilege:i,includes:s.map(c=>e.privileges[c].privilege)})),roles:Object.values(e.roles).map(a=>({...a,privileges:a.privileges.map(s=>{var i;return(i=e.privileges[s])==null?void 0:i.privilege}).filter(Boolean)}))}}function TP(e,r){const t=r[e],a={children:[],links:[],parents:[],selected:e};if(!t)return a;function s(l,d,p=[]){const g=l.reduce((m,b)=>[...m,...r[b][d]],[]);return g.length===0?p:(p.push(g),s(g,d,p))}function i(l){const d=[],p=[];for(let g=l.length-1;g>=0;g-=1){const m=l[g].filter(b=>d.includes(b)?!1:(d.push(b),!0));m.length>0&&p.unshift(ar(m))}return p}function c(l,d){const p=[];return l.reduce((g,m)=>(m.forEach(b=>{r[b][d==="parents"?"includes":"parents"].forEach(x=>{p.includes(x)&&g.push(d==="parents"?{source:b,target:x}:{source:x,target:b})}),p.push(b)}),g),[])}return a.children=s([e],"includes"),a.children=i(a.children),a.parents=s([e],"parents"),a.parents=i(a.parents),a.links=[...c([[e],...a.parents],"parents"),...c([[e],...a.children],"includes")],a}function xP(e,r,t){const a=qr(e,t);if(!a||ze.find(a.resources,{resource:r.applyTo,type:r.type}))return t;const s={...a,resources:[...a.resources,Uc(r)]};return{...t,[e]:s}}function CP(e,r,t){const a=qr(e,t);if(!a)return t;const s={...a,resources:a.resources.filter(({resource:i,type:c})=>i!==r.applyTo||c!==r.type)};return{...t,[e]:s}}function RP(e,r){const t=qr(e,r);if(!t)return r;const a={...t,resources:t.resources.filter(s=>s.permissions.some(i=>i.from.length)).map(s=>({...s,permissions:s.permissions.map(i=>({...i,checked:!1}))}))};return{...r,[e]:a}}function Fg(e,r,t,a,s){const i=qr(e,s);if(!i)return s;const l=ze.find(i.resources,{type:t,resource:r})?{...i,resources:i.resources.map(d=>d.type===t&&d.resource===r?{...d,permissions:d.permissions.map(p=>p.name===a?{...p,checked:!p.checked,from:[]}:p)}:d)}:{...i,resources:[...i.resources,{type:t,resource:r,permissions:Wc.filter(d=>d.canApplyTo.includes(t)).map(d=>({from:[],name:d.key,checked:d.key===a,info:cc(d.key,t===Ae.DATASTORE)}))}]};return{...s,[e]:l}}function OP(e,r,t,a){const s=qr(e,a);if(!s)return a;const c=ze.find(s.resources,{type:r.type,resource:r.resource})?{...s,resources:s.resources.map(l=>l.type===r.type&&l.resource===r.resource?{...l,permissions:r.permissions.map(d=>d.name===t.name?{...d,checked:!d.checked,from:[]}:d)}:l)}:{...s,resources:[...s.resources,{...r,permissions:r.permissions.map(l=>({...l,checked:t.name===l.name,from:[]}))}]};return{...a,[e]:c}}function AP(e,r){var d;const t=$g(e,r)||[],a=((d=qr(e,r))==null?void 0:d.resources)||[],c=([...t,...a].filter(({type:p})=>p===Ae.METHOD)||[]).map(({resource:p})=>p);return Object.entries(r).reduce((p,[g,{resources:m}])=>(m.filter(({resource:b,type:E})=>E===Ae.METHOD&&c.includes(b)).forEach(({permissions:b,resource:E})=>{var C;((C=b.find(({name:I})=>I==="promote"))==null?void 0:C.checked)&&(p[E]=ar(p[E]||[],g))}),p),{})}function $g(e,r){var c;const t=qr(e,r);if(!t)return[];const a=(c=Object.values(r).find(l=>l.privilege===_s))==null?void 0:c.id;return(a&&a!==e?ar(Es(e,r),a):Es(e,r)).reduce((l,d)=>(r[d].resources.forEach(g=>{if(g.permissions.filter(({checked:E})=>E).length===0)return;const b=ze.find(l,{type:g.type,resource:g.resource});if(!b){l.push({...g,permissions:g.permissions.map(E=>({...E,from:E.checked?[d]:[],checked:!1}))});return}b.permissions=b.permissions.map((E,x)=>{let{from:C=[]}=E;return g.permissions[x].checked&&!C.includes(d)&&(C=[...C,d]),{...E,from:C,checked:E.checked}})}),l),ze.clone(t.resources.map(l=>({...l,permissions:l.permissions.map(({checked:d,...p})=>({...p,checked:!!d}))}))))}const PP=e=>e.reduce((r,t)=>({...r,[t.id]:{...t}}),{}),DP=(e,r)=>r[e]?Object.values(r).reduce((t,a)=>e===a.id||a.role===""?t:{...t,[a.id]:a},{}):r,IP=(e,r,t)=>t[e]?Object.values(t).reduce((a,s)=>e===s.id?{...a,[s.id]:{...s,name:r}}:{...a,[s.id]:s},{}):t,FP=(e,r)=>{const t={id:e,role:"",privileges:[]};return{...r,[t.id]:t}},$P=(e,r)=>{if(_.validateName(e.role),Object.values(r).find(a=>a.role===e.role))throw new Error(`a role with the name ${e.role} already exists`);return Object.values(r).reduce((a,s)=>e.id===s.id?{...a,[e.id]:e}:{...a,[s.id]:s},{})},MP={list:[]},kp=(e,r)=>e.list.filter(t=>t.id!==r),Mg=or({name:"modals",initialState:MP,reducers:{createModal:(e,r)=>{e.list.push(r.payload)},editModal:(e,r)=>{const{id:t,...a}=r.payload,s=e.list.find(_.byId(t));s&&Object.assign(s,{...a})},removeModal:(e,r)=>{const t=r.payload;e.list=kp(e,t)},closeModal:(e,r)=>{const{id:t,reason:a}=r.payload;if(a){const s=e.list.find(i=>i.id===t);s&&(s.closeReason=a,s.isOpen=!1)}else e.list=kp(e,t)}}}),{createModal:Ng,removeModal:Lg,closeModal:NP,editModal:LP}=Mg.actions;var jg={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Bp=Ke.createContext&&Ke.createContext(jg),sn=globalThis&&globalThis.__assign||function(){return sn=Object.assign||function(e){for(var r,t=1,a=arguments.length;t<a;t++){r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},sn.apply(this,arguments)},jP=globalThis&&globalThis.__rest||function(e,r){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(e);s<a.length;s++)r.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(t[a[s]]=e[a[s]]);return t};function kg(e){return e&&e.map(function(r,t){return Ke.createElement(r.tag,sn({key:t},r.attr),kg(r.child))})}function Gs(e){return function(r){return Ke.createElement(kP,sn({attr:sn({},e.attr)},r),kg(e.child))}}function kP(e){var r=function(t){var a=e.attr,s=e.size,i=e.title,c=jP(e,["attr","size","title"]),l=s||t.size||"1em",d;return t.className&&(d=t.className),e.className&&(d=(d?d+" ":"")+e.className),Ke.createElement("svg",sn({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,a,c,{className:d,style:sn(sn({color:e.color||t.color},t.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&Ke.createElement("title",null,i),e.children)};return Bp!==void 0?Ke.createElement(Bp.Consumer,null,function(t){return r(t)}):r(jg)}function BP(e){return Gs({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z"}}]})(e)}function WP(e){return Gs({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"}}]})(e)}function UP(e){return Gs({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.953 2C6.465 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.493 2 11.953 2zM12 20c-4.411 0-8-3.589-8-8s3.567-8 7.953-8C16.391 4 20 7.589 20 12s-3.589 8-8 8z"}},{tag:"path",attr:{d:"M11 7h2v7h-2zm0 8h2v2h-2z"}}]})(e)}function HP(e){return Gs({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"}}]})(e)}const qP={FaSave:BP,AiFillWarning:HP,BiErrorCircle:UP,BsFillInfoCircleFill:WP};var jt=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(jt||{}),Tr=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Tr||{}),Hc=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Hc||{});const sr=Q("modals/open",async(e,{dispatch:r})=>{const{type:t=jt.ALERT,store:a=Uv()}=e,s=wc();switch(r(Ng({id:s,type:t,isOpen:!0,...e})),t){case jt.CONFIRM:return new Promise(i=>{const c=a.subscribe(()=>{var p;const{modals:l}=a.getState(),d=l.list.find(g=>g.id===s);if(d&&!d.isOpen){const g=d.closeReason===Hc.CONFIRMED,m=ze.entries((p=d.views)==null?void 0:p.toggles).reduce((b,E)=>({...b,[E[0]]:E[1].value}),{});r(Lg(s)),c(),i({confirmed:g,options:m})}})});default:return{}}}),Bg=()=>_.getFileContent({name:_.ROLES_TAB_PATH}),Wg="Roles & Privileges",Ss=Q("roles/fetchRoles",async(e,{dispatch:r,rejectWithValue:t})=>{var i;let a;try{a=await Bg()}catch(c){if(!Array.isArray((i=c==null?void 0:c.data)==null?void 0:i.__ERROR))return t("Error while loading the roles");a={name:_.ROLES_TAB_PATH,date:new Date().toISOString(),content:{permissions:{allowed:[]},privileges:[],roles:[]}}}const s={name:Wg,type:_.FileFolderType.ROLES,date:a.date,view:{panel:{isOpen:!1,type:"",current:""}},path:_.ROLES_TAB_PATH,flags:{},extra:{editor:{key:"editors:roles"}},content:{}};return r(Dt(s)),{...a,content:Hs(a.content)}}),Ug=Q("roles/fetchRolesChanges",async(e,{getState:r})=>{const{tabs:t}=r().root;if(t.find(s=>s.path===_.ROLES_TAB_PATH)){const{date:s}=r().roles;if(s&&await qc(s))return{old:!0}}return{}}),qc=async e=>{if(!e)return!1;try{const r=await Bg();if(r.date){const t=new Date(e),a=new Date(r.date);if(t>a)return!0}}catch(r){if(!Array.isArray(r==null?void 0:r.data.__ERROR))throw r}return!1},lc=Q("roles/saveRoles",async(e,{getState:r,rejectWithValue:t,dispatch:a})=>{try{const{flags:s,date:i}=r().roles;if(s.old||await qc(i)){const{confirmed:d}=await a(sr({title:Wg,message:"New content has been found on the server. Are you sure you want to continue?",type:jt.CONFIRM,icon:"FaSave"})).unwrap();if(!d)return t({old:!0})}return await _.setFileContent({name:_.ROLES_TAB_PATH,content:qs(e)})}catch{return t("Error while loading the roles")}}),Hg=or({name:"roles",initialState:()=>{const{roles:e}=ta(),{roles:r={},privileges:t={},flags:a={touched:!1},date:s,selectedTab:i="roles"}=e||{};return{flags:a,roles:r,privileges:t,date:s,selectedTab:i}},reducers:{updatePrivileges:(e,r)=>{e.privileges=r.payload,e.flags.touched=!0},updateRoles:(e,r)=>{e.roles=r.payload,e.flags.touched=!0},updateRolesAndPrivileges:(e,r)=>{e.roles=r.payload.roles,e.privileges=r.payload.privileges},toggleTab:(e,r)=>{e.selectedTab=r.payload},setRolesContent(e,r){const{content:t,flags:a={},...s}=r.payload,i=Hs(t),c={...e.flags,...a};return{...e,...i,...s,flags:c}}},extraReducers(e){e.addCase(Ss.fulfilled,(r,t)=>{const{content:a,date:s}=t.payload;r={...r,...a,date:s}}).addCase(Ss.rejected,r=>({...r,roles:{},privileges:{},flags:{touched:!1},date:void 0})).addCase(lc.fulfilled,(r,t)=>({...r,flags:{...r.flags,touched:!1,old:!1},date:t.payload.date})).addCase(lc.rejected,(r,t)=>Oh.isString(t.payload)?r:{...r,flags:{...r.flags,...t.payload}}).addCase(Ug.fulfilled,(r,t)=>({...r,flags:{...r.flags,...t.payload}})).addCase(Zn.fulfilled,(r,t)=>{!t.payload||t.payload.path!==_.ROLES_TAB_PATH||(r.flags.touched=!1,r.flags.old=!1)}).addCase(Xc.fulfilled,(r,t)=>{t.meta.arg!==_.ROLES_TAB_PATH||!t.payload||(r.flags.touched=!1,r.flags.old=!1)})}}),{updatePrivileges:qg,updateRoles:Gg,setRolesContent:Gc,toggleTab:GP,updateRolesAndPrivileges:zc}=Hg.actions,zP=Hg.reducer,cn="qodlyApp.json",Yc=Q("settings/fetch",async()=>await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:cn,content:!0,as:"json"})),zg=Q("settings/app",_.getAppSettings),YP=Eh(),Wp={session:{"studio.tips":!0,"studio.notifications":!0,"studio.tipsBaseUrl":"https://raw.githubusercontent.com/4d/Web-studio-TIPS/gh-build","webforms.tooltip.behavior":jc.SHOW_AFTER_TIMEOUT,"webforms.tooltip.timeout":3e3,"webforms.renderer.showPopOver":!0,"welcometour.active":!0,"webforms.properties.advanced-mode":!1,"monaco.zoom":0},project:{"webforms.renderer.indexPage":"","webforms.display-mode":"neutral"},server:{projectOpened:!1,remoteDebuggerMode:_.RemoteDebuggerMode.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:"",lsp:""},isRestActive:!0}},VP={...Wp,session:{...Wp.session,...YP},welcometour:{}},Yg=or({name:"settings",initialState:VP,reducers:{setSetting(e,r){const{path:t,settingsKey:a,value:s}=r.payload;e[t][a]=s},setSettings(e,r){const{path:t,value:a}=r.payload;e[t]={...e[t],...a}},setSettingsAsText(e,r){const{path:t,settings:a}=r.payload;e[t]=a}},extraReducers(e){e.addCase(Yc.fulfilled,(r,t)=>{r.project={...r.project,...t.payload.content}}),e.addCase(zg.fulfilled,(r,t)=>{r.server=t.payload,r.server.qodly&&(r.project["webforms.display-mode"]="airy")})}}),{setSetting:Vg,setSettings:zs,setSettingsAsText:KP}=Yg.actions,JP=Yg.reducer,fc=e=>{const r=["folder","file"];return e.sort((t,a)=>t.type===a.type?t.name.localeCompare(a.name):r.indexOf(t.type)-r.indexOf(a.type))},Re=(e,r)=>e.reduce((t,a)=>a.path===r.path&&a.type===r.type?[...t,r]:a.children?[...t,{...a,children:fc(Re(a.children,r))}]:[...t,a],[]),ft=(e,r)=>e.reduce((t,a)=>t||(a.path===r?a:a.children?ft(a.children,r):null),null),XP=[{name:_.FolderRootPath.WEBFORMS,type:_.FileFolderType.FOLDER,children:[],path:_.FolderRootPath.WEBFORMS,error:null,flags:{expanded:!1,loading:!1,cached:!1},tipKey:"editors:webform:explorer:webforms",config:{},isRoot:!0},{name:_.FolderRootPath.METHODS,type:_.FileFolderType.FOLDER,children:[],path:_.FolderRootPath.METHODS,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:_.FolderRootPath.CLASSES,type:_.FileFolderType.FOLDER,children:[],path:_.FolderRootPath.CLASSES,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:_.FolderRootPath.SHARED,type:_.FileFolderType.FOLDER,children:[],path:_.FolderRootPath.SHARED,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:"Debugger",type:_.FileFolderType.FOLDER,children:[],path:"Debugger",error:null,flags:{expanded:!1,cached:!0},config:{},isRoot:!0},{name:"Roles And Privileges",type:_.FileFolderType.FILE,ext:"json",path:"roles",error:null,flags:{},config:{editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},isRoot:!0},{name:"Model",type:_.FileFolderType.MODEL,ext:"4DModel",path:"model",error:null,flags:{},config:{editor:{key:"editors:model"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]}},{name:"Settings",type:_.FileFolderType.FILE,ext:"json",path:"qodlyApp",error:null,flags:{},config:{editor:{key:"editors:settings"}},isRoot:!0}],Kg=or({name:"explorer",initialState:XP,reducers:{toggleExpandFolder:(e,r)=>(e=Re(e,{...r.payload,flags:{...r.payload.flags,expanded:!r.payload.flags.expanded}}),e),expandFolder:(e,r)=>(e=Re(e,{...r.payload,flags:{...r.payload.flags,expanded:!0}}),e),openAddFileInput:(e,r)=>Re(e,{...r.payload,flags:{...r.payload.flags,adding:!0}}),addNewFile:(e,r)=>{const{parent:t,child:a}=r.payload;return Re(e,{...t,children:[a,...t.children||[]]})},removeFile:(e,r)=>{const{parent:t,child:a}=r.payload;return Re(e,{...t,children:t.children.filter(s=>s.path!==a.path)})},refreshFile:(e,r)=>{const{parent:t,child:a}=r.payload,s=(t.children||[]).filter(i=>i.path!==a.path&&!a.error);return Re(e,{...t,children:[a,...s]})},setFolderChildren:(e,r)=>{const t=ft(e,r.payload.parentPath);return t?Re(e,{...t,children:r.payload.children}):e}},extraReducers:e=>{e.addCase(Xn.pending,(r,t)=>{const{file:a,newname:s}=t.meta.arg,i=ft(r,a.path);if(!i)return r;const c=a.path.split("/");c.pop();const l=`${c.join("/")}/${a.name}.${a.ext}`,d=`${c.join("/")}/${s}.${a.ext}`;switch(a.ext){case"4dm":case"4qs":_.lspSubject.next({action:_.LspActions.WILL_RENAME,payload:{oldPath:l,newPath:d}});break}return Re(r,{...i,flags:{...i.flags,loading:!0}})}),e.addCase(Xn.fulfilled,(r,t)=>{const{meta:{arg:{file:a}},payload:s}=t,i=ft(r,a.path);if(!i)return r;switch(s.old.ext){case"4dm":case"4qs":_.lspSubject.next({action:_.LspActions.DID_RENAME,payload:{oldPath:s.old.path,newPath:s.new.path}});break}return Re(r,{...i,flags:{...i.flags,loading:!1}})}),e.addCase(Xn.rejected,(r,t)=>{const{file:a}=t.meta.arg,s=ft(r,a.path);return s?Re(r,{...s,flags:{...s.flags,loading:!1}}):r}),e.addCase(Sr.pending,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,flags:{...s.flags,loading:!0}}):r}),e.addCase(Sr.fulfilled,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,children:fc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!0},error:null}):r}),e.addCase(Sr.rejected,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!0}}):r}),e.addCase(Fa.pending,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,flags:{...s.flags,loading:!0}}):r}),e.addCase(Fa.fulfilled,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,children:fc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!1},error:null}):r}),e.addCase(Fa.rejected,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!1}}):r}),e.addCase(ts.pending,(r,t)=>{const{fileName:a,parentNode:s,path:i,type:c}=t.meta.arg;return Re(r,{...s,children:[{name:a,path:`${i}/${a}`,type:c,error:null,flags:{loading:!0},config:{}},...s.children]})}),e.addCase(ts.fulfilled,(r,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg,c=_.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=gr(`${a}${c?`.${c.toLowerCase()}`:""}`);return Re(r,{name:s,path:`${a}/${s}`,type:i,error:null,flags:{loading:!1},config:{editor:l,supportedEditors:d}})}),e.addCase(ts.rejected,(r,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg;return Re(r,{name:s,path:`${a}/${s}`,type:i,error:{message:t.payload},flags:{loading:!1},config:{}})}),e.addCase(rs.pending,(r,t)=>{const{node:a,parentNode:s}=t.meta.arg;return Re(r,{...s,children:[{name:`${a.name}_copy`,path:`${a.path}/${a.name}_copy`,type:a.type,error:null,flags:{loading:!0},permissions:{canRename:!0,canDelete:!0}},...s.children]})}),e.addCase(rs.fulfilled,(r,t)=>{const{node:a}=t.payload,{node:{path:s,ext:i}}=t.meta.arg,{editor:c,supportedEditors:l}=gr(`${s}${i?`.${i.toLowerCase()}`:""}`);return Re(r,{name:`${a.name}`,path:`${s}/${a.name}`,type:a.type,error:null,flags:{loading:!1},config:{editor:c,supportedEditors:l}})}),e.addCase(rs.rejected,(r,t)=>{const a=t.payload,{node:s}=t.meta.arg;return Re(r,{name:`${s.name}_copy`,path:`${s.path}/${s.name}_copy`,type:s.type,error:{message:a},flags:{loading:!1},config:{}})}),e.addCase(Ma.pending,(r,t)=>{}),e.addCase(Ma.fulfilled,(r,t)=>{var m;const{draggedNode:a,newLocation:s}=t.meta.arg,i=qh(a.path),c=ft(r,i),l=ft(r,s.path),d=(m=c==null?void 0:c.children)==null?void 0:m.filter(b=>b.path!==a.path),p=s.path.split("/").length,g=a.path.split("/").length;return p>=g?(r=Re(r,{...c,children:d}),r=Re(r,{...l,children:[{...a,path:`${l.path}/${a.name}`},...l!=null&&l.children?l==null?void 0:l.children:[]],flags:{...l.flags,expanded:!0}})):(r=Re(r,{...l,children:[{...a,path:`${l.path}/${a.name}`},...l!=null&&l.children?l==null?void 0:l.children:[]],flags:{...l.flags,expanded:!0}}),r=Re(r,{...c,children:d})),r}),e.addCase(Ma.rejected,(r,t)=>{_.toastSubject.next({message:"Error moving file",kind:"danger"})}),e.addCase(Jn.pending,(r,t)=>{var C;const{fileName:a,parentNode:s,path:i,type:c,qodly:l}=t.meta.arg,d=_.getFileExtentionFromType(c,l),p=`${i}/${a}${d?`.${d.toLowerCase()}`:""}`,{editor:g,supportedEditors:m}=gr(p);switch(c){case _.FileFolderType.CLASS:case _.FileFolderType.METHOD:_.lspSubject.next({action:_.LspActions.WILL_CREATE,payload:{filePath:p}});break}const b=(C=s.children)==null?void 0:C.filter(I=>I.path!==`${i}/${a}`),E=[{name:a,path:`${i}/${a}`,type:_.FileFolderType.FILE,error:null,flags:{loading:!0},config:{editor:g,supportedEditors:m},ext:d,date:new Date().toISOString()},...b],x=Re(r,{...s,children:E});return Oh.merge(r,x)}),e.addCase(Jn.fulfilled,(r,t)=>{const{fileName:a,path:s,type:i,qodly:c}=t.meta.arg,l=_.getFileExtentionFromType(i,c),d=`${s}/${a}${l?`.${l.toLowerCase()}`:""}`,{editor:p,supportedEditors:g}=gr(d),m=Re(r,{name:a,path:`${s}/${a}`,type:_.FileFolderType.FILE,error:null,flags:{},config:{editor:p,supportedEditors:g},ext:l,date:new Date().toISOString()});switch(i){case _.FileFolderType.CLASS:case _.FileFolderType.METHOD:_.lspSubject.next({action:_.LspActions.DID_CREATE,payload:{filePath:d}});break}return r=m,r}),e.addCase(Jn.rejected,(r,t)=>{const{fileName:a,path:s,type:i}=t.meta.arg,c=_.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=gr(`${s}${c?`.${c.toLowerCase()}`:""}`);return r=Re(r,{name:a,path:`${s}/${a}`,type:_.FileFolderType.FILE,error:{message:"Failed creating file"},flags:{},config:{editor:l,supportedEditors:d},ext:c,date:new Date().toISOString()}),r}),e.addMatcher(ch($a),(r,t)=>{const a=ft(r,t.meta.arg.file.path.split(".")[0]);return a&&(r=Re(r,{...a,flags:{...a.flags,loading:!0}})),r}),e.addMatcher(fh($a),(r,t)=>{const a=ft(r,t.meta.arg.file.path.split(".")[0]);return a&&(r=Re(r,{...a,flags:{...a.flags,loading:!1}})),r}),e.addMatcher(lh($a),(r,t)=>{const a=ft(r,t.meta.arg.file.path.split(".")[0]);return a&&(r=Re(r,{...a,flags:{...a.flags,loading:!1}})),_.toastSubject.next({message:"Failed to open file, try again",kind:"danger"}),r})}}),{toggleExpandFolder:ZP,expandFolder:QP,openAddFileInput:eD,addNewFile:Jg,refreshFile:tD,removeFile:dc,setFolderChildren:rD}=Kg.actions;function Xg(e,r){switch(e){case _.FileFolderType.WEBFORMS:const t={metadata:{v:"1.0",datasources:[],styles:[]},components:{ROOT:{parent:"",type:{resolvedName:"Container"},isCanvas:!0,props:{airyMode:!1,className:"bg-white h-full w-full px-6",classNames:[],events:[]},displayName:"App",custom:{},hidden:!1,nodes:[],linkedNodes:{}}}};return r["webforms.display-mode"]===kc.AIRY&&(t.components.ROOT.props.airyMode=!0),t;case _.FileFolderType.METHODS:return`//%attributes = {}
|
|
91
|
-
`;default:return""}}function
|
|
90
|
+
`),x}return ic(function(){d.current=e,p.current=m,g.current=_,l.current=void 0}),ic(function(){function x(){try{var C=t.getState();if(C===p.current)return;var I=d.current(C);if(r(I,g.current))return;g.current=I,p.current=C}catch(P){l.current=P}i()}return c.onStateChange=x,c.trySubscribe(),x(),function(){return c.tryUnsubscribe()}},[t,c]),_}function TO(e){e===void 0&&(e=Wr);var r=e===Wr?ug:function(){return Ke.useContext(e)};return function(a,s){if(s===void 0&&(s=SO),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=wO(a,s,c,l);return Ke.useDebugValue(d),d}}var xO=TO();cO(QS.unstable_batchedUpdates);const CO=()=>EO(),Ur=xO,Mc=G(e=>e,e=>e.catalog.state==="loaded"?e.catalog.model:null),RO=G(e=>e,({catalog:e})=>e.state),OO=G(Mc,e=>e?e.dataClasses:[]),AO=G(Mc,e=>e?e.methods:[]),lg=e=>G(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[]}}),PO=e=>Ur(lg(e),ig),DO=(e,r)=>G(lg(e),t=>t.find(a=>`${a.applyTo}.${a.name}`===r)),IO=(e,r,t)=>Ur(DO(e,`${t}.${r}`),ig),fg=G(e=>e,e=>e),FO=e=>G(Hr,r=>{var s;const t=r.tabs.find(({path:i})=>i===e),a=t==null?void 0:t.content.components;return!t||!a?[]:(s=Object.keys(a))==null?void 0:s.map(i=>({id:i,...a[i]}))}),dg=e=>G(Hr,r=>{var a,s;const t=r.tabs.find(({path:i})=>i===e);return((s=(a=t==null?void 0:t.content)==null?void 0:a.metadata)==null?void 0:s.datasources)||[]}),$O=(e,r,t)=>G(fg,a=>{var s,i;if(r){const c=a.sharedDatasources.sources[r];return c?c.find(l=>l.id===e):void 0}else{const c=a.root.tabs.find(d=>d.path===t);return c?(i=(s=c.content.metadata)==null?void 0:s.datasources)==null?void 0:i.find(d=>d.id===e):void 0}}),pg=G(e=>e,e=>{var r;return((r=e.sharedDatasources)==null?void 0:r.sources)||[]}),MO=(e,r,t,a)=>G(dg(e),pg,(s,i)=>{const c=He.flatten(He.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}),NO=G(e=>e.debugger,e=>e.meta),An=G(e=>e.debugger,e=>e.list),It=G(e=>e.debugger,e=>e.sessions),LO=G(It,e=>e.length),Rn=(e,r,t,a)=>e.find(s=>s.filePath===r&&s.methodName===t&&(!a||s.className===a)),st=(e,r)=>e.find(t=>t.threadId===r),hg=(e,r)=>e.find(t=>t.tabPath===r),kO=(e,r)=>G(An,t=>{var a;return((a=Rn(t,e,r))==null?void 0:a.breakpoints.saved.locations)||[]}),jO=(e,r)=>G(An,t=>{var a;return((a=Rn(t,e,r))==null?void 0:a.breakpoints.draft.locations)||[]}),BO=e=>G(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)),WO=e=>G(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)),UO=e=>G(It,r=>{const t=st(r,e);return t!=null&&t.stopped?t.highlightedLines:null}),HO=e=>G(It,r=>{const t=st(r,e);return t!=null&&t.stopped?t.activeLine:null}),GO=e=>G(It,r=>{var t;return((t=st(r,e))==null?void 0:t.expressions)||[]}),qO=e=>G(It,r=>{var t;return((t=st(r,e))==null?void 0:t.stopped)||!1}),zO=(e,r)=>G(An,t=>{var a;return(a=Rn(t,e,r))==null?void 0:a.source}),YO=e=>G(It,r=>{var t;return((t=hg(r,e))==null?void 0:t.threadId)||-1}),VO=e=>G(It,r=>{var t,a;return(a=(t=st(r,e))==null?void 0:t.currentStackFrame)==null?void 0:a.source}),KO=e=>G(It,r=>{var t;return(t=st(r,e))==null?void 0:t.currentStackFrame}),JO=G(It,e=>e.map(({channelId:r,threadId:t})=>({id:r,threadId:t}))),XO=e=>G(It,r=>{var t;return((t=st(r,e))==null?void 0:t.stackFrames)||[]}),ZO=e=>G(It,r=>{var t,a;return((a=(t=st(r,e))==null?void 0:t.variables)==null?void 0:a.callchain)||[]}),QO=e=>G(It,r=>{var t,a;return((a=(t=st(r,e))==null?void 0:t.variables)==null?void 0:a.expressions)||[]}),eA=(e,r="saved")=>G(An,t=>{const a=t.find(s=>s.filePath===e);return(a==null?void 0:a.breakpoints[r].offset)||0}),tA=(e,r,t,a)=>G(It,s=>{var p;const i=((p=st(s,e))==null?void 0:p.exceptions)||[],c=r===b.FileFolderType.CLASS,l=c&&a?`${a}.${t}`:t;return(l?i.filter(g=>g.location===l):i).map(g=>({...g,locationLine:c?g.locationLine:g.locationLine+1}))}),Hr=G(e=>e.root,e=>e),sa=G(Hr,e=>e.tabs),rA=G(Hr,e=>e.activeTab),nA=G(Hr,e=>e.recent.filter(({type:r})=>r!==b.FileFolderType.DEBUGGER)),aA=G(Hr,({tabs:e,activeTab:r})=>e.find(({path:t})=>t===r)),oA=G(Hr,({tabs:e})=>e.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null)),sA=G(sa,e=>e.filter(({type:r,flags:t})=>r===b.FileFolderType.WEBFORM&&t.enabled===!1).map(({path:r})=>r)),iA=G(sa,e=>e.length>0),qa=e=>G(Hr,r=>r.tabs.find(({path:t})=>t===e)),gg=(e,r="")=>G(qa(e),t=>!t||!t.content||typeof t.content=="string"?t==null?void 0:t.content:He.get(t.content,r)),uA=e=>G(qa(e),r=>r==null?void 0:r.extra),cA=(e,r=t=>t)=>G(gg(e,"components"),t=>r(t||{})),Nc=G(sa,e=>e.filter(r=>r.flags.touched)),lA=G(Nc,e=>e.length),fA=G(It,e=>e.map(({threadId:r,currentStackFrame:{source:t},tabPath:a})=>({name:Ph(r,t),path:a,type:b.FileFolderType.DEBUGGER,content:t==null?void 0:t.content,flags:{},extra:{source:t}}))),dA=G(e=>e,e=>e.explorer||[]),vg=G(e=>e,e=>e.explorer.find(r=>r.path===b.FolderRootPath.WEBFORMS)),mg=G(e=>e,e=>e.explorer.find(r=>r.path===b.FolderRootPath.METHODS)),yg=G(e=>e,e=>e.explorer.find(r=>r.path===b.FolderRootPath.CLASSES)),pA=G(mg,e=>(e==null?void 0:e.children)||[]),hA=G(vg,e=>(e==null?void 0:e.children)||[]),gA=G(yg,e=>(e==null?void 0:e.children)||[]),vA=G(e=>e.modals,e=>e.list),mA=G(e=>e.roles,e=>Gs(e)),yA=G(e=>e.roles,({roles:e})=>e),bA=G(e=>e.roles,({privileges:e})=>e),_A=G(e=>e.roles,({privileges:e})=>Object.values(e).find(({privilege:r})=>r==="guest")),EA=G(e=>e.roles,({flags:e})=>e),SA=G(e=>e.roles,({selectedTab:e})=>e),wA=G(e=>e.roles,({date:e})=>e),Lc=G(e=>e.settings,e=>e.session),TA=(...e)=>G(Lc,r=>e.length>0?He.pick(r,e):r),xA=G(e=>e.settings,e=>e.project),CA=G(e=>e.settings,e=>e),kc=G(e=>e.settings,e=>e.server),RA=G(kc,e=>e.remoteDebuggerMode),OA=G(kc,e=>e.qodly),AA=G(Lc,e=>e["monaco.zoom"]),bg=["rounded-full","rounded-lg","border-gray-400","border-2","bg-red-500","bg-blue-500","bg-indigo-500","bg-transparent","bg-primary-dark","bg-green-500","bg-yellow-400","text-gray-500","text-4xl","text-white","px-4","py-2","primary","info","secondary","success","warning","danger","w-10","w-20","w-40","w-60","w-80","mb-2","mb-3","shadow","shadow-lg","shadow-xl","shadow-2xl"],_g=bg.map(e=>({id:Tc(),content:"",name:e,parentId:null,scope:b.EWebFormStyleClassScope.THEME})),jc=e=>G(qa(e),r=>{var t,a;return((a=(t=r==null?void 0:r.content)==null?void 0:t.metadata)==null?void 0:a.styles)||[]}),PA=(e,r)=>G(jc(e),t=>r.map(a=>{switch(!0){case a===b.EWebFormStyleClassScope.LOCAL:return t.map(s=>({...s,scope:b.EWebFormStyleClassScope.LOCAL}));case a===b.EWebFormStyleClassScope.THEME:return _g;default:return[]}}).flat()),DA=e=>G(jc(e),r=>[...r.map(t=>({...t,scope:b.EWebFormStyleClassScope.LOCAL})),..._g]),IA=G(e=>e,e=>{var r;return[...(((r=e.sharedCSS)==null?void 0:r.styles)||[]).map(t=>({...t,scope:b.EWebFormStyleClassScope.SHARED}))]}),FA=e=>G(qa(e),r=>r==null?void 0:r.flags),za=G(e=>e.webforms,e=>e),Eg=G(za,e=>(e==null?void 0:e.components)||[]),ks=G(za,e=>e.inspector),$A=G(ks,e=>e.css),MA=G(ks,e=>e.datasource),Sg=G(za,e=>e.templates||{data:[]}),NA=G(Sg,e=>e.data||[]),LA=e=>G(Eg,r=>r.find(t=>t.id===e)),kA=e=>G(ks,r=>r[e]),jA=G(za,e=>e.datasources.theme),BA=G(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||{}),Wc=(e=>(e.AIRY="airy",e.COMPACT="neutral",e))(Wc||{}),Ko,WA=new Uint8Array(16);function wg(){if(!Ko&&(Ko=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Ko))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ko(WA)}const UA=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function js(e){return typeof e=="string"&&UA.test(e)}var mt=[];for(var $u=0;$u<256;++$u)mt.push(($u+256).toString(16).substr(1));function Bs(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(mt[e[r+0]]+mt[e[r+1]]+mt[e[r+2]]+mt[e[r+3]]+"-"+mt[e[r+4]]+mt[e[r+5]]+"-"+mt[e[r+6]]+mt[e[r+7]]+"-"+mt[e[r+8]]+mt[e[r+9]]+"-"+mt[e[r+10]]+mt[e[r+11]]+mt[e[r+12]]+mt[e[r+13]]+mt[e[r+14]]+mt[e[r+15]]).toLowerCase();if(!js(t))throw TypeError("Stringified UUID is invalid");return t}var kp,Mu,Nu=0,Lu=0;function HA(e,r,t){var a=r&&t||0,s=r||new Array(16);e=e||{};var i=e.node||kp,c=e.clockseq!==void 0?e.clockseq:Mu;if(i==null||c==null){var l=e.random||(e.rng||wg)();i==null&&(i=kp=[l[0]|1,l[1],l[2],l[3],l[4],l[5]]),c==null&&(c=Mu=(l[6]<<8|l[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),p=e.nsecs!==void 0?e.nsecs:Lu+1,g=d-Nu+(p-Lu)/1e4;if(g<0&&e.clockseq===void 0&&(c=c+1&16383),(g<0||d>Nu)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Nu=d,Lu=p,Mu=c,d+=122192928e5;var m=((d&268435455)*1e4+p)%4294967296;s[a++]=m>>>24&255,s[a++]=m>>>16&255,s[a++]=m>>>8&255,s[a++]=m&255;var _=d/4294967296*1e4&268435455;s[a++]=_>>>8&255,s[a++]=_&255,s[a++]=_>>>24&15|16,s[a++]=_>>>16&255,s[a++]=c>>>8|128,s[a++]=c&255;for(var E=0;E<6;++E)s[a+E]=i[E];return r||Bs(s)}function Tg(e){if(!js(e))throw TypeError("Invalid UUID");var r,t=new Uint8Array(16);return t[0]=(r=parseInt(e.slice(0,8),16))>>>24,t[1]=r>>>16&255,t[2]=r>>>8&255,t[3]=r&255,t[4]=(r=parseInt(e.slice(9,13),16))>>>8,t[5]=r&255,t[6]=(r=parseInt(e.slice(14,18),16))>>>8,t[7]=r&255,t[8]=(r=parseInt(e.slice(19,23),16))>>>8,t[9]=r&255,t[10]=(r=parseInt(e.slice(24,36),16))/1099511627776&255,t[11]=r/4294967296&255,t[12]=r>>>24&255,t[13]=r>>>16&255,t[14]=r>>>8&255,t[15]=r&255,t}function GA(e){e=unescape(encodeURIComponent(e));for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t));return r}var qA="6ba7b810-9dad-11d1-80b4-00c04fd430c8",zA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function xg(e,r,t){function a(s,i,c,l){if(typeof s=="string"&&(s=GA(s)),typeof i=="string"&&(i=Tg(i)),i.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var d=new Uint8Array(16+s.length);if(d.set(i),d.set(s,i.length),d=t(d),d[6]=d[6]&15|r,d[8]=d[8]&63|128,c){l=l||0;for(var p=0;p<16;++p)c[l+p]=d[p];return c}return Bs(d)}try{a.name=e}catch{}return a.DNS=qA,a.URL=zA,a}function YA(e){if(typeof e=="string"){var r=unescape(encodeURIComponent(e));e=new Uint8Array(r.length);for(var t=0;t<r.length;++t)e[t]=r.charCodeAt(t)}return VA(KA(JA(e),e.length*8))}function VA(e){for(var r=[],t=e.length*32,a="0123456789abcdef",s=0;s<t;s+=8){var i=e[s>>5]>>>s%32&255,c=parseInt(a.charAt(i>>>4&15)+a.charAt(i&15),16);r.push(c)}return r}function Cg(e){return(e+64>>>9<<4)+14+1}function KA(e,r){e[r>>5]|=128<<r%32,e[Cg(r)-1]=r;for(var t=1732584193,a=-271733879,s=-1732584194,i=271733878,c=0;c<e.length;c+=16){var l=t,d=a,p=s,g=i;t=Et(t,a,s,i,e[c],7,-680876936),i=Et(i,t,a,s,e[c+1],12,-389564586),s=Et(s,i,t,a,e[c+2],17,606105819),a=Et(a,s,i,t,e[c+3],22,-1044525330),t=Et(t,a,s,i,e[c+4],7,-176418897),i=Et(i,t,a,s,e[c+5],12,1200080426),s=Et(s,i,t,a,e[c+6],17,-1473231341),a=Et(a,s,i,t,e[c+7],22,-45705983),t=Et(t,a,s,i,e[c+8],7,1770035416),i=Et(i,t,a,s,e[c+9],12,-1958414417),s=Et(s,i,t,a,e[c+10],17,-42063),a=Et(a,s,i,t,e[c+11],22,-1990404162),t=Et(t,a,s,i,e[c+12],7,1804603682),i=Et(i,t,a,s,e[c+13],12,-40341101),s=Et(s,i,t,a,e[c+14],17,-1502002290),a=Et(a,s,i,t,e[c+15],22,1236535329),t=St(t,a,s,i,e[c+1],5,-165796510),i=St(i,t,a,s,e[c+6],9,-1069501632),s=St(s,i,t,a,e[c+11],14,643717713),a=St(a,s,i,t,e[c],20,-373897302),t=St(t,a,s,i,e[c+5],5,-701558691),i=St(i,t,a,s,e[c+10],9,38016083),s=St(s,i,t,a,e[c+15],14,-660478335),a=St(a,s,i,t,e[c+4],20,-405537848),t=St(t,a,s,i,e[c+9],5,568446438),i=St(i,t,a,s,e[c+14],9,-1019803690),s=St(s,i,t,a,e[c+3],14,-187363961),a=St(a,s,i,t,e[c+8],20,1163531501),t=St(t,a,s,i,e[c+13],5,-1444681467),i=St(i,t,a,s,e[c+2],9,-51403784),s=St(s,i,t,a,e[c+7],14,1735328473),a=St(a,s,i,t,e[c+12],20,-1926607734),t=wt(t,a,s,i,e[c+5],4,-378558),i=wt(i,t,a,s,e[c+8],11,-2022574463),s=wt(s,i,t,a,e[c+11],16,1839030562),a=wt(a,s,i,t,e[c+14],23,-35309556),t=wt(t,a,s,i,e[c+1],4,-1530992060),i=wt(i,t,a,s,e[c+4],11,1272893353),s=wt(s,i,t,a,e[c+7],16,-155497632),a=wt(a,s,i,t,e[c+10],23,-1094730640),t=wt(t,a,s,i,e[c+13],4,681279174),i=wt(i,t,a,s,e[c],11,-358537222),s=wt(s,i,t,a,e[c+3],16,-722521979),a=wt(a,s,i,t,e[c+6],23,76029189),t=wt(t,a,s,i,e[c+9],4,-640364487),i=wt(i,t,a,s,e[c+12],11,-421815835),s=wt(s,i,t,a,e[c+15],16,530742520),a=wt(a,s,i,t,e[c+2],23,-995338651),t=Tt(t,a,s,i,e[c],6,-198630844),i=Tt(i,t,a,s,e[c+7],10,1126891415),s=Tt(s,i,t,a,e[c+14],15,-1416354905),a=Tt(a,s,i,t,e[c+5],21,-57434055),t=Tt(t,a,s,i,e[c+12],6,1700485571),i=Tt(i,t,a,s,e[c+3],10,-1894986606),s=Tt(s,i,t,a,e[c+10],15,-1051523),a=Tt(a,s,i,t,e[c+1],21,-2054922799),t=Tt(t,a,s,i,e[c+8],6,1873313359),i=Tt(i,t,a,s,e[c+15],10,-30611744),s=Tt(s,i,t,a,e[c+6],15,-1560198380),a=Tt(a,s,i,t,e[c+13],21,1309151649),t=Tt(t,a,s,i,e[c+4],6,-145523070),i=Tt(i,t,a,s,e[c+11],10,-1120210379),s=Tt(s,i,t,a,e[c+2],15,718787259),a=Tt(a,s,i,t,e[c+9],21,-343485551),t=nn(t,l),a=nn(a,d),s=nn(s,p),i=nn(i,g)}return[t,a,s,i]}function JA(e){if(e.length===0)return[];for(var r=e.length*8,t=new Uint32Array(Cg(r)),a=0;a<r;a+=8)t[a>>5]|=(e[a/8]&255)<<a%32;return t}function nn(e,r){var t=(e&65535)+(r&65535),a=(e>>16)+(r>>16)+(t>>16);return a<<16|t&65535}function XA(e,r){return e<<r|e>>>32-r}function Ws(e,r,t,a,s,i){return nn(XA(nn(nn(r,e),nn(a,i)),s),t)}function Et(e,r,t,a,s,i,c){return Ws(r&t|~r&a,e,r,s,i,c)}function St(e,r,t,a,s,i,c){return Ws(r&a|t&~a,e,r,s,i,c)}function wt(e,r,t,a,s,i,c){return Ws(r^t^a,e,r,s,i,c)}function Tt(e,r,t,a,s,i,c){return Ws(t^(r|~a),e,r,s,i,c)}var ZA=xg("v3",48,YA);const QA=ZA;function eP(e,r,t){e=e||{};var a=e.random||(e.rng||wg)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,r){t=t||0;for(var s=0;s<16;++s)r[t+s]=a[s];return r}return Bs(a)}function tP(e,r,t,a){switch(e){case 0:return r&t^~r&a;case 1:return r^t^a;case 2:return r&t^r&a^t&a;case 3:return r^t^a}}function ku(e,r){return e<<r|e>>>32-r}function rP(e){var r=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var a=unescape(encodeURIComponent(e));e=[];for(var s=0;s<a.length;++s)e.push(a.charCodeAt(s))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,c=Math.ceil(i/16),l=new Array(c),d=0;d<c;++d){for(var p=new Uint32Array(16),g=0;g<16;++g)p[g]=e[d*64+g*4]<<24|e[d*64+g*4+1]<<16|e[d*64+g*4+2]<<8|e[d*64+g*4+3];l[d]=p}l[c-1][14]=(e.length-1)*8/Math.pow(2,32),l[c-1][14]=Math.floor(l[c-1][14]),l[c-1][15]=(e.length-1)*8&4294967295;for(var m=0;m<c;++m){for(var _=new Uint32Array(80),E=0;E<16;++E)_[E]=l[m][E];for(var x=16;x<80;++x)_[x]=ku(_[x-3]^_[x-8]^_[x-14]^_[x-16],1);for(var C=t[0],I=t[1],P=t[2],j=t[3],M=t[4],k=0;k<80;++k){var O=Math.floor(k/20),Y=ku(C,5)+tP(O,I,P,j)+M+r[O]+_[k]>>>0;M=j,j=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]+j>>>0,t[4]=t[4]+M>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,t[0]&255,t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,t[1]&255,t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,t[2]&255,t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,t[3]&255,t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,t[4]&255]}var nP=xg("v5",80,rP);const aP=nP,oP="00000000-0000-0000-0000-000000000000";function sP(e){if(!js(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const iP=Object.freeze(Object.defineProperty({__proto__:null,NIL:oP,parse:Tg,stringify:Bs,v1:HA,v3:QA,v4:eP,v5:aP,validate:js,version:sP},Symbol.toStringTag,{value:"Module"})),uP=aw(iP);function Uc(e,r){if(!e||!r||!e.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=r}Uc.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};Uc.prototype.isValid=function(e){for(var r=0;r<e.length;++r)if(this.srcAlphabet.indexOf(e[r])===-1)return!1;return!0};var cP=Uc,lP=cP;function Ya(e,r){var t=new lP(e,r);return function(a){return t.convert(a)}}Ya.BIN="01";Ya.OCT="01234567";Ya.DEC="0123456789";Ya.HEX="0123456789abcdef";var fP=Ya;const{v4:ju}=uP,Jo=fP,Bu="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",dP="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",pP={consistentLength:!0};let Wu;const jp=(e,r,t)=>{const a=r(e.toLowerCase().replace(/-/g,""));return!t||!t.consistentLength?a:a.padStart(t.shortIdLength,t.paddingChar)},hP=(e,r)=>{const a=r(e).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[a[1],a[2],a[3],a[4],a[5]].join("-")},gP=e=>Math.ceil(Math.log(2**128)/Math.log(e));var bs=(()=>{const e=(r,t)=>{const a=r||Bu,s={...pP,...t};if([...new Set(Array.from(a))].length!==a.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const i=gP(a.length),c={shortIdLength:i,consistentLength:s.consistentLength,paddingChar:a[0]},l=Jo(Jo.HEX,a),d=Jo(a,Jo.HEX),p=()=>jp(ju(),l,c),g={new:p,generate:p,uuid:ju,fromUUID:m=>jp(m,l,c),toUUID:m=>hP(m,d),alphabet:a,maxLength:i};return Object.freeze(g),g};return e.constants={flickrBase58:Bu,cookieBase90:dP},e.uuid=ju,e.generate=()=>(Wu||(Wu=e(Bu).generate),Wu()),e})(),Ae=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e))(Ae||{});const vP=[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE,Ae.METHOD],_s="guest",Hc=[{key:"read",label:"Read",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"create",label:"Create",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"update",label:"Update",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"drop",label:"Delete",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"describe",label:"Describe",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE,Ae.METHOD]},{key:"execute",label:"Execute",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.METHOD]},{key:"promote",label:"Promote",canApplyTo:[Ae.METHOD]}];function ar(e,...r){return Array.from(new Set([...e,...r]))}function Rg(e){const r={},t=new Map;e.forEach(d=>{const p=d.id||bs.generate();r[p]={...d,id:p,parents:[],includes:ar(d.includes||[]),resources:[]},t.set(d.privilege,p)}),Object.entries(r).forEach(([d,p])=>{const g=p.includes.map(m=>{const _=t.get(m);return _?(r[_].parents=ar(r[_].parents,_),_):""}).filter(Boolean);r[d]={...p,includes:g}});const a=Og(r),s=new Set;function i(d){s.add(d.id),d.includes=d.includes.filter(p=>!s.has(p))}if(a.forEach(i),a.forEach(d=>d.parents=[]),a.forEach(d=>{d.includes.forEach(p=>r[p].parents.push(d.id))}),Object.values(r).find(({privilege:d})=>d===_s))return r;const l=bs.generate();return{[l]:{id:l,privilege:_s,includes:[],parents:[],resources:[]},...r}}function Og(e){return Object.values(e).sort((r,t)=>r.parents.length-t.parents.length)}function Us(e,r){const t=r[e];let a=[];return t&&t.parents.forEach(s=>{a=ar(a,...Us(s,r),s)}),a}function Es(e,r){const t=r[e];let a=[];return t&&t.includes.forEach(s=>{a=ar(a,...Es(s,r),s)}),a}function mP(e,r){const t=r[e];if(!t)return[];const a=[e,...Us(e,r),...t.includes];return Object.keys(r).filter(s=>!a.includes(s))}function yP(e,r){return r[e]?Object.keys(r).reduce((a,s)=>s===e?a:{...a,[s]:{...r[s],parents:r[s].parents.filter(i=>i!==e),includes:r[s].includes.filter(i=>i!==e)}},{}):r}function bP(e,r,t){const a=t[e],s=t[r];return!a||!s?t:{...t,[e]:{...t[e],includes:ar(a.includes,r)},[r]:{...t[r],parents:ar(s.parents,e)}}}function _P(e,r,t){const a=t[e],s=t[r];return!a||!s?t:{...t,[e]:{...t[e],includes:t[e].includes.filter(i=>i!==r)},[r]:{...t[r],parents:t[r].parents.filter(i=>i!==e)}}}function Ag(e,r){b.validateName(e),Object.entries(r).forEach(([,{privilege:a}])=>{if(e.toLowerCase()===a.toLowerCase())throw new Error(`There's already a Privilege with the name ${e}`)});const t=bs.generate();return{[t]:{id:t,privilege:e,includes:[],parents:[],resources:[]},...r}}function EP(e,r,t,a,s){let i=Ag(e,s);const c=Object.entries(i).find(([,l])=>l.privilege===e);return c?(i=Fg(c[1].id,r,t,a,i),i):s}function SP(e,r,t){if(!e)throw new Error("Please enter a name");if(!t[r])throw new Error("Invalid privilege");return Object.entries(t).forEach(([,{privilege:a,id:s}])=>{if(e.toLowerCase()===a.toLowerCase()&&r!==s)throw new Error(`There's already a Privilege with the name ${e}`)}),{...t,[r]:{...t[r],privilege:e}}}function wP(e,r){return e.map(t=>Gr(t,r))}function Gr(e,r){return r[e]?r[e]:null}function Pg({applyTo:e,type:r,...t}){return Object.entries(t).reduce((a,[s,i])=>{const c=He.find(Hc,["key",s]);return!c||!c.canApplyTo.includes(r)||(typeof i=="string"?i.split(","):i).forEach(d=>{a[d]=ar(a[d]||[],s)}),a},{})}const cc=(e,r=!1)=>["read","create","update","delete"].includes(e.toLowerCase())?`All ${r?"dataclasses and ":""}attributes have the '${e.toLowerCase()}' permission`:e.toLowerCase()==="execute"?`All functions defined ${r?"through the model (DataStore, Dataclasses, Entity selections, Entities) have the execute permission":"on this Dataclass, Entity selection class, Entity class have the execute permission"}`:`All ${r?"dataclasses, ":""}attributes and functions have the '${e.toLowerCase()}' permission`;function Gc(e){return{permissions:Hc.filter(({canApplyTo:r})=>r.includes(e.type)).map(({key:r,label:t})=>{const a={name:r,from:[]};switch(e.type){case Ae.DATASTORE:return{...a,info:cc(t,!0)};case Ae.DATACLASS:return{...a,info:cc(t)};default:return a}}),resource:e.applyTo,type:e.type}}function Dg(e,r){const t=Ig(r),a={};return e.filter(({type:s})=>vP.includes(s)).forEach(s=>{const i=Pg(s);Object.entries(i).forEach(([c,l])=>{var g;const d=(g=t[c])==null?void 0:g.id;if(!d)return;a[d]=a[d]||{...r[d]};let p=He.find(a[d].resources,{resource:s.applyTo,type:s.type});p||(p=Gc(s),a[d].resources.push(p)),p.permissions=p.permissions.map(m=>({...m,checked:m.checked||l.includes(m.name)}))})}),{...r,...a}}function Ig(e){return Object.values(e).reduce((r,t)=>({...r,[t.privilege]:t}),{})}function Hs(e){var t;const r=Rg(e.privileges||[]);return{privileges:Dg(((t=e.permissions)==null?void 0:t.allowed)||[],r),roles:(e.roles||[]).map(({id:a=bs.generate(),role:s,privileges:i=[]})=>({id:a,role:s,privileges:ar(i).map(c=>{var l;return(l=Object.values(r).find(({privilege:d})=>d===c))==null?void 0:l.id}).filter(Boolean)})).reduce((a,s)=>({...a,[s.id]:{...s}}),{})}}function Gs(e){const r=Object.values(e.privileges).filter(({includes:a})=>a.length===0).map(({id:a})=>a),t=[...r,...r.map(a=>Us(a,e.privileges).reverse())].flat().filter((a,s,i)=>i.indexOf(a)===s).map(a=>e.privileges[a]);return{permissions:{allowed:Object.values(e.privileges).reduce((a,s)=>(s.resources.forEach(({permissions:i,resource:c,type:l})=>{let d=He.find(a,{applyTo:c,type:l});d||(d={applyTo:c,type:l},a.push(d)),i.forEach(({name:p,checked:g})=>{g&&d&&(d[p]=d[p]||[],d[p].push(s.privilege))})}),a),[])},privileges:t.filter(({privilege:a})=>a!==_s).map(({id:a,includes:s,privilege:i})=>({id:a,privilege:i,includes:s.map(c=>e.privileges[c].privilege)})),roles:Object.values(e.roles).map(a=>({...a,privileges:a.privileges.map(s=>{var i;return(i=e.privileges[s])==null?void 0:i.privilege}).filter(Boolean)}))}}function TP(e,r){const t=r[e],a={children:[],links:[],parents:[],selected:e};if(!t)return a;function s(l,d,p=[]){const g=l.reduce((m,_)=>[...m,...r[_][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(_=>d.includes(_)?!1:(d.push(_),!0));m.length>0&&p.unshift(ar(m))}return p}function c(l,d){const p=[];return l.reduce((g,m)=>(m.forEach(_=>{r[_][d==="parents"?"includes":"parents"].forEach(x=>{p.includes(x)&&g.push(d==="parents"?{source:_,target:x}:{source:x,target:_})}),p.push(_)}),g),[])}return a.children=s([e],"includes"),a.children=i(a.children),a.parents=s([e],"parents"),a.parents=i(a.parents),a.links=[...c([[e],...a.parents],"parents"),...c([[e],...a.children],"includes")],a}function xP(e,r,t){const a=Gr(e,t);if(!a||He.find(a.resources,{resource:r.applyTo,type:r.type}))return t;const s={...a,resources:[...a.resources,Gc(r)]};return{...t,[e]:s}}function CP(e,r,t){const a=Gr(e,t);if(!a)return t;const s={...a,resources:a.resources.filter(({resource:i,type:c})=>i!==r.applyTo||c!==r.type)};return{...t,[e]:s}}function RP(e,r){const t=Gr(e,r);if(!t)return r;const a={...t,resources:t.resources.filter(s=>s.permissions.some(i=>i.from.length)).map(s=>({...s,permissions:s.permissions.map(i=>({...i,checked:!1}))}))};return{...r,[e]:a}}function Fg(e,r,t,a,s){const i=Gr(e,s);if(!i)return s;const l=He.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:Hc.filter(d=>d.canApplyTo.includes(t)).map(d=>({from:[],name:d.key,checked:d.key===a,info:cc(d.key,t===Ae.DATASTORE)}))}]};return{...s,[e]:l}}function OP(e,r,t,a){const s=Gr(e,a);if(!s)return a;const c=He.find(s.resources,{type:r.type,resource:r.resource})?{...s,resources:s.resources.map(l=>l.type===r.type&&l.resource===r.resource?{...l,permissions:r.permissions.map(d=>d.name===t.name?{...d,checked:!d.checked,from:[]}:d)}:l)}:{...s,resources:[...s.resources,{...r,permissions:r.permissions.map(l=>({...l,checked:t.name===l.name,from:[]}))}]};return{...a,[e]:c}}function AP(e,r){var d;const t=$g(e,r)||[],a=((d=Gr(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:_,type:E})=>E===Ae.METHOD&&c.includes(_)).forEach(({permissions:_,resource:E})=>{var C;((C=_.find(({name:I})=>I==="promote"))==null?void 0:C.checked)&&(p[E]=ar(p[E]||[],g))}),p),{})}function $g(e,r){var c;const t=Gr(e,r);if(!t)return[];const a=(c=Object.values(r).find(l=>l.privilege===_s))==null?void 0:c.id;return(a&&a!==e?ar(Es(e,r),a):Es(e,r)).reduce((l,d)=>(r[d].resources.forEach(g=>{if(g.permissions.filter(({checked:E})=>E).length===0)return;const _=He.find(l,{type:g.type,resource:g.resource});if(!_){l.push({...g,permissions:g.permissions.map(E=>({...E,from:E.checked?[d]:[],checked:!1}))});return}_.permissions=_.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),He.clone(t.resources.map(l=>({...l,permissions:l.permissions.map(({checked:d,...p})=>({...p,checked:!!d}))}))))}const PP=e=>e.reduce((r,t)=>({...r,[t.id]:{...t}}),{}),DP=(e,r)=>r[e]?Object.values(r).reduce((t,a)=>e===a.id||a.role===""?t:{...t,[a.id]:a},{}):r,IP=(e,r,t)=>t[e]?Object.values(t).reduce((a,s)=>e===s.id?{...a,[s.id]:{...s,name:r}}:{...a,[s.id]:s},{}):t,FP=(e,r)=>{const t={id:e,role:"",privileges:[]};return{...r,[t.id]:t}},$P=(e,r)=>{if(b.validateName(e.role),Object.values(r).find(a=>a.role===e.role))throw new Error(`a role with the name ${e.role} already exists`);return Object.values(r).reduce((a,s)=>e.id===s.id?{...a,[e.id]:e}:{...a,[s.id]:s},{})},MP={list:[]},Bp=(e,r)=>e.list.filter(t=>t.id!==r),Mg=or({name:"modals",initialState:MP,reducers:{createModal:(e,r)=>{e.list.push(r.payload)},editModal:(e,r)=>{const{id:t,...a}=r.payload,s=e.list.find(b.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:Ng,removeModal:Lg,closeModal:NP,editModal:LP}=Mg.actions;var kg={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Wp=Ke.createContext&&Ke.createContext(kg),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)},kP=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 jg(e){return e&&e.map(function(r,t){return Ke.createElement(r.tag,sn({key:t},r.attr),jg(r.child))})}function qs(e){return function(r){return Ke.createElement(jP,sn({attr:sn({},e.attr)},r),jg(e.child))}}function jP(e){var r=function(t){var a=e.attr,s=e.size,i=e.title,c=kP(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(kg)}function BP(e){return qs({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z"}}]})(e)}function WP(e){return qs({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"}}]})(e)}function UP(e){return qs({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.953 2C6.465 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.493 2 11.953 2zM12 20c-4.411 0-8-3.589-8-8s3.567-8 7.953-8C16.391 4 20 7.589 20 12s-3.589 8-8 8z"}},{tag:"path",attr:{d:"M11 7h2v7h-2zm0 8h2v2h-2z"}}]})(e)}function HP(e){return qs({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"}}]})(e)}const GP={FaSave:BP,AiFillWarning:HP,BiErrorCircle:UP,BsFillInfoCircleFill:WP};var kt=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(kt||{}),Tr=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Tr||{}),qc=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(qc||{});const sr=Q("modals/open",async(e,{dispatch:r})=>{const{type:t=kt.ALERT,store:a=Wv()}=e,s=Tc();switch(r(Ng({id:s,type:t,isOpen:!0,...e})),t){case kt.CONFIRM:return new Promise(i=>{const c=a.subscribe(()=>{var p;const{modals:l}=a.getState(),d=l.list.find(g=>g.id===s);if(d&&!d.isOpen){const g=d.closeReason===qc.CONFIRMED,m=He.entries((p=d.views)==null?void 0:p.toggles).reduce((_,E)=>({..._,[E[0]]:E[1].value}),{});r(Lg(s)),c(),i({confirmed:g,options:m})}})});default:return{}}}),Bg=()=>b.getFileContent({name:b.ROLES_TAB_PATH}),Wg="Roles & Privileges",Ss=Q("roles/fetchRoles",async(e,{dispatch:r,rejectWithValue:t})=>{var i;let a;try{a=await Bg()}catch(c){if(!Array.isArray((i=c==null?void 0:c.data)==null?void 0:i.__ERROR))return t("Error while loading the roles");a={name:b.ROLES_TAB_PATH,date:new Date().toISOString(),content:{permissions:{allowed:[]},privileges:[],roles:[]}}}const s={name:Wg,type:b.FileFolderType.ROLES,date:a.date,view:{panel:{isOpen:!1,type:"",current:""}},path:b.ROLES_TAB_PATH,flags:{},extra:{editor:{key:"editors:roles"}},content:{}};return r(Dt(s)),{...a,content:Hs(a.content)}}),Ug=Q("roles/fetchRolesChanges",async(e,{getState:r})=>{const{tabs:t}=r().root;if(t.find(s=>s.path===b.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 Bg();if(r.date){const t=new Date(e),a=new Date(r.date);if(t>a)return!0}}catch(r){if(!Array.isArray(r==null?void 0:r.data.__ERROR))throw r}return!1},lc=Q("roles/saveRoles",async(e,{getState:r,rejectWithValue:t,dispatch:a})=>{try{const{flags:s,date:i}=r().roles;if(s.old||await zc(i)){const{confirmed:d}=await a(sr({title:Wg,message:"New content has been found on the server. Are you sure you want to continue?",type:kt.CONFIRM,icon:"FaSave"})).unwrap();if(!d)return t({old:!0})}return await b.setFileContent({name:b.ROLES_TAB_PATH,content:Gs(e)})}catch{return t("Error while loading the roles")}}),Hg=or({name:"roles",initialState:()=>{const{roles:e}=ea(),{roles:r={},privileges:t={},flags:a={touched:!1},date:s,selectedTab:i="roles"}=e||{};return{flags:a,roles:r,privileges:t,date:s,selectedTab:i}},reducers:{updatePrivileges:(e,r)=>{e.privileges=r.payload,e.flags.touched=!0},updateRoles:(e,r)=>{e.roles=r.payload,e.flags.touched=!0},updateRolesAndPrivileges:(e,r)=>{e.roles=r.payload.roles,e.privileges=r.payload.privileges},toggleTab:(e,r)=>{e.selectedTab=r.payload},setRolesContent(e,r){const{content:t,flags:a={},...s}=r.payload,i=Hs(t),c={...e.flags,...a};return{...e,...i,...s,flags:c}}},extraReducers(e){e.addCase(Ss.fulfilled,(r,t)=>{const{content:a,date:s}=t.payload;r={...r,...a,date:s}}).addCase(Ss.rejected,r=>({...r,roles:{},privileges:{},flags:{touched:!1},date:void 0})).addCase(lc.fulfilled,(r,t)=>({...r,flags:{...r.flags,confirmed:!0,touched:!1,old:!1},date:t.payload.date})).addCase(lc.rejected,(r,t)=>Ah.isString(t.payload)?r:{...r,flags:{...r.flags,...t.payload}}).addCase(Ug.fulfilled,(r,t)=>({...r,flags:{...r.flags,...t.payload}})).addCase(Xn.fulfilled,(r,t)=>{!t.payload||t.payload.path!==b.ROLES_TAB_PATH||(r.flags.touched=!1,r.flags.old=!1)}).addCase(Qc.fulfilled,(r,t)=>{t.meta.arg!==b.ROLES_TAB_PATH||!t.payload||(r.flags.touched=!1,r.flags.old=!1)})}}),{updatePrivileges:Gg,updateRoles:qg,setRolesContent:Yc,toggleTab:qP,updateRolesAndPrivileges:Vc}=Hg.actions,zP=Hg.reducer,Kc=Q("settings/fetch",async()=>await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:b.SETTINGS_TAB_PATH,content:!0,as:"json"})),zg=Q("settings/app",b.getAppSettings),YP=Sh(),Up={session:{"studio.tips":!0,"studio.notifications":!0,"studio.enablePreview":!1,"studio.tipsBaseUrl":"https://raw.githubusercontent.com/4d/Web-studio-TIPS/gh-build","webforms.tooltip.behavior":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:b.RemoteDebuggerMode.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:"",lsp:""},isRestActive:!0}},VP={...Up,session:{...Up.session,...YP},welcometour:{}},Yg=or({name:"settings",initialState:VP,reducers:{setSetting(e,r){const{path:t,settingsKey:a,value:s}=r.payload;e[t][a]=s},setSettings(e,r){const{path:t,value:a}=r.payload;e[t]={...e[t],...a}},setSettingsAsText(e,r){const{path:t,settings:a}=r.payload;e[t]=a}},extraReducers(e){e.addCase(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:fc,setSettings:zs,setSettingsAsText:KP}=Yg.actions,JP=Yg.reducer,dc=e=>{const r=["folder","file"];return e.sort((t,a)=>t.type===a.type?t.name.localeCompare(a.name):r.indexOf(t.type)-r.indexOf(a.type))},Re=(e,r)=>e.reduce((t,a)=>a.path===r.path&&a.type===r.type?[...t,r]:a.children?[...t,{...a,children:dc(Re(a.children,r))}]:[...t,a],[]),ft=(e,r)=>e.reduce((t,a)=>t||(a.path===r?a:a.children?ft(a.children,r):null),null),XP=[{name:b.FolderRootPath.WEBFORMS,type:b.FileFolderType.FOLDER,children:[],path:b.FolderRootPath.WEBFORMS,error:null,flags:{expanded:!1,loading:!1,cached:!1},tipKey:"editors:webform:explorer:webforms",config:{},isRoot:!0},{name:b.FolderRootPath.METHODS,type:b.FileFolderType.FOLDER,children:[],path:b.FolderRootPath.METHODS,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:b.FolderRootPath.CLASSES,type:b.FileFolderType.FOLDER,children:[],path:b.FolderRootPath.CLASSES,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:b.FolderRootPath.SHARED,type:b.FileFolderType.FOLDER,children:[],path:b.FolderRootPath.SHARED,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:"Debugger",type:b.FileFolderType.FOLDER,children:[],path:"Debugger",error:null,flags:{expanded:!1,cached:!0},config:{},isRoot:!0},{name:"Roles And Privileges",type:b.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:b.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:b.FileFolderType.FILE,ext:"json",path:"qodlyApp",error:null,flags:{},config:{editor:{key:"editors:settings"}},isRoot:!0}],Vg=or({name:"explorer",initialState:XP,reducers:{toggleExpandFolder:(e,r)=>(e=Re(e,{...r.payload,flags:{...r.payload.flags,expanded:!r.payload.flags.expanded}}),e),expandFolder:(e,r)=>(e=Re(e,{...r.payload,flags:{...r.payload.flags,expanded:!0}}),e),openAddFileInput:(e,r)=>Re(e,{...r.payload,flags:{...r.payload.flags,adding:!0}}),addNewFile:(e,r)=>{const{parent:t,child:a}=r.payload;return Re(e,{...t,children:[a,...t.children||[]]})},removeFile:(e,r)=>{const{parent:t,child:a}=r.payload;return Re(e,{...t,children:t.children.filter(s=>s.path!==a.path)})},refreshFile:(e,r)=>{const{parent:t,child:a}=r.payload,s=(t.children||[]).filter(i=>i.path!==a.path&&!a.error);return Re(e,{...t,children:[a,...s]})},setFolderChildren:(e,r)=>{const t=ft(e,r.payload.parentPath);return t?Re(e,{...t,children:r.payload.children}):e}},extraReducers:e=>{e.addCase(Jn.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":b.lspSubject.next({action:b.LspActions.WILL_RENAME,payload:{oldPath:l,newPath:d}});break}return Re(r,{...i,flags:{...i.flags,loading:!0}})}),e.addCase(Jn.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":b.lspSubject.next({action:b.LspActions.DID_RENAME,payload:{oldPath:s.old.path,newPath:s.new.path}});break}return Re(r,{...i,flags:{...i.flags,loading:!1}})}),e.addCase(Jn.rejected,(r,t)=>{const{file:a}=t.meta.arg,s=ft(r,a.path);return s?Re(r,{...s,flags:{...s.flags,loading:!1}}):r}),e.addCase(Sr.pending,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,flags:{...s.flags,loading:!0}}):r}),e.addCase(Sr.fulfilled,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,children:dc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!0},error:null}):r}),e.addCase(Sr.rejected,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!0}}):r}),e.addCase(Ia.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(Ia.fulfilled,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,children:dc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!1},error:null}):r}),e.addCase(Ia.rejected,(r,t)=>{const a=t.meta.arg,s=ft(r,a);return s?Re(r,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!1}}):r}),e.addCase(ts.pending,(r,t)=>{const{fileName:a,parentNode:s,path:i,type:c}=t.meta.arg;return Re(r,{...s,children:[{name:a,path:`${i}/${a}`,type:c,error:null,flags:{loading:!0},config:{}},...s.children]})}),e.addCase(ts.fulfilled,(r,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg,c=b.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=gr(`${a}${c?`.${c.toLowerCase()}`:""}`);return Re(r,{name:s,path:`${a}/${s}`,type:i,error:null,flags:{loading:!1},config:{editor:l,supportedEditors:d}})}),e.addCase(ts.rejected,(r,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg;return Re(r,{name:s,path:`${a}/${s}`,type:i,error:{message:t.payload},flags:{loading:!1},config:{}})}),e.addCase(rs.pending,(r,t)=>{const{node:a,parentNode:s}=t.meta.arg;return Re(r,{...s,children:[{name:`${a.name}_copy`,path:`${a.path}/${a.name}_copy`,type:a.type,error:null,flags:{loading:!0},permissions:{canRename:!0,canDelete:!0}},...s.children]})}),e.addCase(rs.fulfilled,(r,t)=>{const{node:a}=t.payload,{node:{path:s,ext:i}}=t.meta.arg,{editor:c,supportedEditors:l}=gr(`${s}${i?`.${i.toLowerCase()}`:""}`);return Re(r,{name:`${a.name}`,path:`${s}/${a.name}`,type:a.type,error:null,flags:{loading:!1},config:{editor:c,supportedEditors:l}})}),e.addCase(rs.rejected,(r,t)=>{const a=t.payload,{node:s}=t.meta.arg;return Re(r,{name:`${s.name}_copy`,path:`${s.path}/${s.name}_copy`,type:s.type,error:{message:a},flags:{loading:!1},config:{}})}),e.addCase($a.pending,(r,t)=>{}),e.addCase($a.fulfilled,(r,t)=>{var m;const{draggedNode:a,newLocation:s}=t.meta.arg,i=qh(a.path),c=ft(r,i),l=ft(r,s.path),d=(m=c==null?void 0:c.children)==null?void 0:m.filter(_=>_.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($a.rejected,(r,t)=>{b.toastSubject.next({message:"Error moving file",kind:"danger"})}),e.addCase(Kn.pending,(r,t)=>{var C;const{fileName:a,parentNode:s,path:i,type:c,qodly:l}=t.meta.arg,d=b.getFileExtentionFromType(c,l),p=`${i}/${a}${d?`.${d.toLowerCase()}`:""}`,{editor:g,supportedEditors:m}=gr(p);switch(c){case b.FileFolderType.CLASS:case b.FileFolderType.METHOD:b.lspSubject.next({action:b.LspActions.WILL_CREATE,payload:{filePath:p}});break}const _=(C=s.children)==null?void 0:C.filter(I=>I.path!==`${i}/${a}`),E=[{name:a,path:`${i}/${a}`,type:b.FileFolderType.FILE,error:null,flags:{loading:!0},config:{editor:g,supportedEditors:m},ext:d,date:new Date().toISOString()},..._],x=Re(r,{...s,children:E});return Ah.merge(r,x)}),e.addCase(Kn.fulfilled,(r,t)=>{const{fileName:a,path:s,type:i,qodly:c}=t.meta.arg,l=b.getFileExtentionFromType(i,c),d=`${s}/${a}${l?`.${l.toLowerCase()}`:""}`,{editor:p,supportedEditors:g}=gr(d),m=Re(r,{name:a,path:`${s}/${a}`,type:b.FileFolderType.FILE,error:null,flags:{},config:{editor:p,supportedEditors:g},ext:l,date:new Date().toISOString()});switch(i){case b.FileFolderType.CLASS:case b.FileFolderType.METHOD:b.lspSubject.next({action:b.LspActions.DID_CREATE,payload:{filePath:d}});break}return r=m,r}),e.addCase(Kn.rejected,(r,t)=>{const{fileName:a,path:s,type:i}=t.meta.arg,c=b.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=gr(`${s}${c?`.${c.toLowerCase()}`:""}`);return r=Re(r,{name:a,path:`${s}/${a}`,type:b.FileFolderType.FILE,error:{message:"Failed creating file"},flags:{},config:{editor:l,supportedEditors:d},ext:c,date:new Date().toISOString()}),r}),e.addMatcher(lh(Fa),(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(dh(Fa),(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(fh(Fa),(r,t)=>{const a=ft(r,t.meta.arg.file.path.split(".")[0]);return a&&(r=Re(r,{...a,flags:{...a.flags,loading:!1}})),b.toastSubject.next({message:"Failed to open file, try again",kind:"danger"}),r})}}),{toggleExpandFolder:ZP,expandFolder:QP,openAddFileInput:eD,addNewFile:Kg,refreshFile:tD,removeFile:pc,setFolderChildren:rD}=Vg.actions;function Jg(e,r){switch(e){case b.FileFolderType.WEBFORMS:const t={metadata:{v:"1.0",datasources:[],styles:[]},components:{ROOT:{parent:"",type:{resolvedName:"Container"},isCanvas:!0,props:{airyMode:!1,className:"bg-white h-full w-full px-6",classNames:[],events:[]},displayName:"App",custom:{},hidden:!1,nodes:[],linkedNodes:{}}}};return r["webforms.display-mode"]===Wc.AIRY&&(t.components.ROOT.props.airyMode=!0),t;case b.FileFolderType.METHODS:return`//%attributes = {}
|
|
91
|
+
`;default:return""}}function Xg(e,r,t){switch(r){case b.FileFolderType.MOBILEFORM:return`${e}.MForm`;case b.FileFolderType.WEBFORM:return`${e}.WebForm`;case b.FileFolderType.METHOD:case b.FileFolderType.CLASS:return`${e}.${t?"4qs":"4dm"}`;default:return e}}function nD(e){switch(e){case b.FolderRootPath.WEBFORMS:return b.FileFolderType.WEBFORMS;case b.FolderRootPath.METHODS:return b.FileFolderType.METHODS;case b.FolderRootPath.CLASSES:return b.FileFolderType.CLASSES;case"Mobile":return b.FileFolderType.MOBILE;default:return e}}function Zg(e){switch(e){case b.FileFolderType.WEBFORMS:return b.FileFolderType.WEBFORM;case b.FileFolderType.CLASSES:return b.FileFolderType.CLASS;case b.FileFolderType.METHODS:return b.FileFolderType.METHOD;case b.FileFolderType.FOLDER:return b.FileFolderType.FOLDER;case b.FileFolderType.MOBILE:return b.FileFolderType.MOBILEFORM;default:return e}}const aD=Q("files/tryEditMethod",async({method:e},{dispatch:r})=>{const t=e.filePath.split("/"),[a]=t[1].split("."),{editor:s}=gr(e.filePath);return await r(Jc({file:{name:a,path:e.filePath,date:new Date().toISOString(),type:b.FileFolderType.CLASS,editor:s},line:e.startingLine+1})).unwrap()}),hc=Q("explorer/createModelFiles",async(e,{dispatch:r,getState:t})=>{var m;const a=t(),s=b.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(_=>_.name===s))==null?void 0:m.children)||[];let p=[{content:"",name:""}];const g=_=>{switch(_){case"dataclass":return{name:e.type==="dataclass"?e.className:"DataStore",content:i?`extends DataClass
|
|
92
92
|
`:`Class extends DataClass
|
|
93
93
|
`};case"collection":return{name:e.type==="dataclass"?e.collectionName:"DataStore",content:i?`extends EntitySelection
|
|
94
94
|
`:`Class extends EntitySelection
|
|
@@ -96,35 +96,35 @@ The error may be correlated with this previous error:
|
|
|
96
96
|
`:`Class extends Entity
|
|
97
97
|
`};case"model":return{name:"DataStore",content:i?`extends DataStoreImplementation
|
|
98
98
|
`:`Class extends DataStoreImplementation
|
|
99
|
-
`}}};e.type==="dataclass"&&!e.toCreate?p=[{...g("dataclass")},{...g("collection")},{...g("entity")}]:e.type==="dataclass"&&e.toCreate?p=[{...g(e.toCreate)}]:p=[{...g("model")}],p=p.filter(b=>!d.find(({name:E,ext:x})=>E===b.name&&x===(i?"4qs":"4dm"))),await Promise.all(p.map(async({name:b,content:E})=>{await r(Jn({type:_.FileFolderType.CLASS,path:s,fileName:b,parentNode:c,content:E,qodly:a.settings.server.qodly}))})),await r(Sr(s))}),Sr=Q("explorer/fetchFolderContent",async(e,{rejectWithValue:r})=>{try{return(await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:e})).map(a=>{const s=`${e}/${a.name}`,{editor:i,supportedEditors:c}=gr(`${s}${a.ext?`.${a.ext.toLowerCase()}`:""}`);return{name:a.name,size:a.size,type:a.type,date:`${a.date}`,flags:{},error:null,path:s,ext:a.ext,config:a.type==="folder"?{}:{editor:i,supportedEditors:c}}})}catch{return r("Failed loading file content please Reload")}},{getPendingMeta:()=>{}}),Fa=Q("explorer/fetchFolderContentWithoutExpanding",async(e,{rejectWithValue:r})=>{try{return(await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:e})).map(a=>{const s=`${e}/${a.name}`,{editor:i,supportedEditors:c}=gr(`${s}${a.ext?`.${a.ext.toLowerCase()}`:""}`);return{name:a.name,size:a.size,type:a.type,date:`${a.date}`,flags:{},error:null,path:s,ext:a.ext,config:a.type==="folder"?{}:{editor:i,supportedEditors:c}}})}catch{return r("Failed loading file content please Reload")}},{getPendingMeta:()=>{}});function oD(e){const r=e.split(".");return r.pop(),{name:r.join("."),ext:e.split(".")[e.split(".").length-1]}}const sD=Q("explorer/uploadFile",async e=>{const r=e.type.includes("image/")?"$rawPict=true":"$binary=true";try{const t=await fetch(`/rest/$upload?${r}`,{method:"POST",headers:{"Content-Type":e.type},body:e});return{status:t.status,data:await t.json()}}catch{return{status:500,data:null}}}),iD=Q("explorer/uploadFile",async({file:e,path:r,parentNode:t},{dispatch:a})=>{const{editor:s,supportedEditors:i}=gr(r),{name:c,ext:l}=oD(e.name);a(Jg({parent:t,child:{name:c,path:`${r}/${e.name}?t=${Date.now()}`,type:e.type,error:null,flags:{loading:!0},config:{editor:s,supportedEditors:i},ext:l}}));try{const d=await fetch(`/rest/$upload?$sharedFolder=true&$filename=${e.name}&$path=${r}`,{method:"POST",headers:{"Content-Type":e.type},body:e});return d.status>=300?(a(dc({parent:t,child:{name:c,path:`${r}/${e.name}`,type:e.type,error:{message:"error uploading file"},flags:{},config:{editor:s,supportedEditors:i},ext:l}})),d.status!==413&&_.toastSubject.next({message:"error uploading file",kind:"danger"})):await a(Sr(t.path)),{status:d.status,fileName:e.name}}catch{return a(dc({parent:t,child:{name:c,path:`${r}/${e.name}`,type:e.type,error:{message:"error uploading file"},flags:{},config:{editor:s,supportedEditors:i},ext:l}})),_.toastSubject.next({message:"error uploading file",kind:"danger"}),{status:500,fileName:e.name}}}),Jn=Q("explorer/createNewFile",async({fileName:e,type:r,path:t,parentNode:a,content:s},{dispatch:i,rejectWithValue:c,getState:l})=>{const{server:{qodly:d},project:p}=l().settings;try{const g=await _.setFileContent({name:Zg(e,r,d),content:s||Xg(r,p),path:t,asText:[_.FileFolderType.CLASS,_.FileFolderType.METHOD].includes(r)});return a.error&&(a.flags.expanded?await i(Sr(a.path)):await i(Fa(a.path))),{qodly:d,file:g,parentNode:a}}catch{return c("failed to create folder")}});function ev(e,r){const{qodly:t=!0,withExtension:a=!0}=r||{},s=_.getFileExtentionFromType(e.type,t);let i="";switch(e.type){case _.FileFolderType.WEBFORM:i=`${_.FolderRootPath.WEBFORMS}/${e.name}`;break;case _.FileFolderType.METHOD:i=`${_.FolderRootPath.METHODS}/${e.name}`;break;case _.FileFolderType.CLASS:i=`${_.FolderRootPath.CLASSES}/${e.name}`;break;default:return""}return`${i}${a?`.${s}`:""}`}const uD=Q("explorer/createNewFileAndOpen",async(e,{dispatch:r,getState:t})=>{const a=await r(Jn(e)).unwrap(),{qodly:s}=t().settings.server;if(a){const{file:i}=a,c=ev(i,{withExtension:!1,qodly:s}),{editor:l}=gr(c);await r($a({file:{name:e.fileName,type:i.type,path:c,editor:l,date:new Date().toISOString()}}))}}),ts=Q("explorer/createNewNode",async({fileName:e,path:r,parentNode:t},{rejectWithValue:a})=>{try{return{file:await _.createFolder({verb:_.DesignerRequestVerb.CREATE_FOLDER,path:`${r}/${e}`,recursive:!0}),parentNode:t}}catch{return _.toastSubject.next({message:"failed to create folder",kind:"danger"}),a("failed to create folder")}}),Ys=async e=>{try{const r=e.path.split(".").at(-1),t=await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:wh(r)?"json":"text"}),a={editor:e.editor},s=_.getTypeFromExtension(e.path);s===_.FileFolderType.METHOD&&(a.attributes=_.parseAttributes(t.content),t.content=_.addAttributesToContent(t.content,{}));const{content:i,date:c,ext:l}=t;return{date:c,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(l)},extra:a,name:e.name,path:e.path,type:s,initialContent:i,content:i}}catch(r){const{data:t}=r;if(t.__ERROR.find(a=>a.errCode===_.ERROR_CODES.FILE_NOT_FOUND))switch(e.path){case _.ROLES_TAB_PATH:{const a={permissions:{allowed:[]},privileges:[],roles:[]};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:roles"}},name:"Roles & Privileges",path:e.path,type:_.FileFolderType.ROLES,initialContent:a,content:a}}case cn:{const a={};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:settings"}},name:"Settings",path:e.path,type:_.FileFolderType.SETTINGS,initialContent:a,content:a}}}throw r}},$a=Q("explorer/openFile",async({file:e,inactive:r,flags:t={}},{getState:a,dispatch:s})=>{const{root:{tabs:i},roles:c,debugger:{sessions:l}}=a(),d=i.find(({path:m})=>e.path===m);if(d){const m={...d,extra:{...d==null?void 0:d.extra,editor:e.editor},flags:{...d==null?void 0:d.flags,...t}};return s(Dt(m)),m}if(e.path.startsWith("Debugger")){const m=l.find(b=>`Debugger/${b.threadId}`===e.path);if(m){const{source:{content:b},source:E}=m.currentStackFrame,x={name:e.name,type:_.FileFolderType.DEBUGGER,date:new Date().toISOString(),path:e.path,content:b,view:{panel:{isOpen:!1,type:"",current:""}},initialContent:b,flags:{},extra:{source:E,editor:e.editor}};return s(Dt(x)),x}}let p=null;try{p=await Ys(e)}catch(m){const{data:b}=m;if(b.__ERROR.find(E=>[_.ERROR_CODES.JSON_MALFORMED,_.ERROR_CODES.JSON_MALFORMED_AT_LINE].includes(E.errCode))){const{confirmed:E}=await s(sr({title:"Corrupt file",type:jt.CONFIRM,color:Tr.WARNING,message:"Open in code editor ?"})).unwrap();if(E){const x=await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:"text"}),{content:C,date:I,ext:P}=x;p={date:I,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(P)},extra:{editor:_.EDITOR.Code},name:e.name,path:e.path,type:_.getTypeFromExtension(e.path),initialContent:C,content:C}}}}return p&&(e.path===_.ROLES_TAB_PATH&&!c.flags.touched?s(Gc({content:p.content,date:p.date})):e.path===cn&&s(zs({path:"project",value:p.content})),s((r?$v:Dt)(p)),p)}),Vc=Q("explorer/openFileAtLine",async({file:e},{getState:r,dispatch:t})=>{const{tabs:a}=r().root,s=a.find(({path:c})=>e.path===c);if(s){const c={...s,extra:{...s==null?void 0:s.extra,editor:e.editor}};return t(Dt(c)),c}const i=await Ys(e);return t(Dt(i)),i}),tv=Q("explorer/injectContentAtLine",async(e,{getState:r,dispatch:t,rejectWithValue:a})=>{const s=r();e.path.split("/").pop();const c=ft(s.explorer,e.path);if(!c)return a(`Error while trying to inject content in file ${e.path}`);const l=await Ys({name:c.name,date:c.date||new Date().toISOString(),path:`${c.path}.${c.ext}`,type:_.FileFolderType.CLASS,editor:c.config.editor});return await t(Dt(l)),{...e,path:`${c.path}.${c.ext}`}}),rv=Q("explorer/openFileAtSelection",async({file:e},{getState:r,dispatch:t})=>{const{tabs:a}=r().root,s=a.find(({path:c})=>e.path===c);if(s){const c={...s,extra:{...s==null?void 0:s.extra,editor:e.editor}};return t(Dt(c)),c}const i=await Ys(e);return t(Dt(i)),i}),hc=Q("explorer/deleteFile",async e=>{const{name:r,type:t,path:a,flags:s}=e;if(s.error)return{deleted:!0,node:e};const i=a.split("/");return i.pop(),{deleted:await _.dropFile({root:_.FolderRootType.ROOT,type:Qg(t),verb:_.DesignerRequestVerb.DROP,name:r,path:i.join("/")}),node:e}}),cD=Q("explorer/deleteFolder",async e=>{const{path:r,flags:t}=e;if(t.error)return{deleted:!0,node:e};const{deleted:a}=await _.removeItem({force:!0,path:r,verb:_.DesignerRequestVerb.REMOVE_ITEM});return{deleted:a,node:e}}),lD=Q("explorer/removeFileNode",async(e,{getState:r,dispatch:t})=>{const a=`${e.path}.${e.ext}`;if(await _.removeItem({verb:_.DesignerRequestVerb.REMOVE_ITEM,path:a,force:!0}),e.path==="Classes/DataStore"&&setTimeout(()=>{t(An())},As),e.ext){const{tabs:s}=r().root,i=s.findIndex(c=>c.path===a);i>=0&&t(al(i))}return{deleted:!0,node:e}}),Xn=Q("explorer/renameFile",async({file:e,newname:r})=>{if(e.type!=="folder"){const a=e.path.split("/");a.pop();const s=`${a.join("/")}/${e.name}.${e.ext}`,i=`${a.join("/")}/${r}.${e.ext}`;return await _.moveItem({verb:_.DesignerRequestVerb.MOVE_ITEM,path:s,newpath:i}),{old:{...e,path:s},new:{...e,name:r,path:i}}}const t=e.path.split("/");return t.pop(),await _.moveItem({verb:_.DesignerRequestVerb.MOVE_ITEM,path:`${t.join("/")}/${e.name}`,newpath:`${t.join("/")}/${r}`}),{old:e,new:{...e,name:r,path:`${t.join("/")}/${r}`}}}),Ma=Q("explorer/relocateNode",async({draggedNode:e,newLocation:r},{rejectWithValue:t})=>{try{await _.moveItem({verb:_.DesignerRequestVerb.MOVE_ITEM,path:`${e.path}.${e.ext}`,newpath:`${r.path}/${e.name}.${e.ext}`})}catch{return t("can't move item")}}),rs=Q("explorer/duplicateNode",async({node:e,duplicateName:r},{rejectWithValue:t,fulfillWithValue:a,getState:s})=>{const i=e.path.split("/");i.pop();try{const{tabs:c}=s().root,l=c.find(({path:m})=>m===`${e.path}${e.ext?`.${e.ext}`:""}`),d=["4dm","4qm","4qs"].includes(e.ext),{content:p}=l||await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:`${e.path}.${e.ext}`,content:!0,as:d?"text":"json"}),g=await _.setFileContent({name:`${r}.${e.ext}`,content:p,path:i.join("/"),asText:d});return a({node:{...g,path:i.join("/")}})}catch{return t("failed to duplicate file")}}),fD=Q("explorer/executeMethod",async({methodName:e,params:r=[],resultingDataSource:t={},namespace:a=""},{rejectWithValue:s})=>{var i,c;try{const d=await window.Method4D.buildMethod({methodName:e,parameters:r,resultingDataSource:t},{namespace:a},null).callServerSide({id:"",serverSideRef:""},"onclick",{});return d!=null&&d.__NOTIFICATION?_.toastSubject.next({message:`${((i=d.__NOTIFICATION)==null?void 0:i.message)||""}`,kind:`${((c=d.__NOTIFICATION)==null?void 0:c.type)||"info"}`}):_.toastSubject.next({message:"Method executed Successfully",kind:"message"}),d}catch(l){return _.toastSubject.next({message:l.message||`Error executing the method "**${e}**"`,kind:"danger",markdown:!0}),s("can't execute method")}}),dD=Q("files/fetchFiles",async()=>_.getFolders(_.FolderRootType.WEBFORMS,_.FolderRootType.METHODS,_.FolderRootType.CLASSES)),Kc=Q("tabs/renameDatasource",async(e,{dispatch:r,getState:t})=>{var E,x;const a=!!e.datasourceNamespace,{confirmed:s}=await r(sr({message:"Are you sure you want to rename the datasource?",title:"Rename Datasource",type:jt.CONFIRM,color:Tr.WARNING,views:{toggles:{},tips:a?[{type:"warning",message:"The datasource property of components bound with this datasource will also be updated on opened web forms only"},{type:"warning",message:"The origin of some other datasources might be also renamed (if this datasource is the origin of other datasources)"}]:[{type:"warning",message:"The datasource property of components bound with this datasource will also be updated"},{type:"warning",message:"The origin of some other datasources might be also renamed (if this datasource is the origin of other datasources)"}]}})).unwrap();if(!s)return null;const{autoUpdateReferences:i,datasourceId:c,datasourceNamespace:l,value:d,path:p}=e,g=t();let m=[];if(a){const C=g.sharedDatasources.sources[l]||[];m.push(...C)}else if(p){const C=g.root.tabs.find(_.by("path",p));if(m=(x=(E=C==null?void 0:C.content)==null?void 0:E.metadata)==null?void 0:x.datasources,!m)return null}const b=new RegExp(`^${c}\\b`,"");if(m=m.map(C=>{const I=(_.isObjectDatasource(C)||!_.isSimpleDatasource(C))&&C.from&&b.test(C.from),P=C.events?C.events.map(k=>{var M,j,O,Y;switch(k==null?void 0:k.type){case"method":{const H=k;return H.params?{...H,params:H.params.map(z=>{var te;return{...z,datasource:(te=z.datasource)==null?void 0:te.replace(new RegExp(`^${c}`,""),d)}}),returns:(M=H.returns)!=null&&M.datasource?{...H.returns,datasource:(j=H.returns.datasource)==null?void 0:j.replace(new RegExp(`^${c}`,""),d)}:H.returns}:H}case"simple-action":{const H=k;return H.datasource?{...H,datasource:{...H.datasource,name:(O=H.datasource.name)==null?void 0:O.replace(new RegExp(`^${c}`,""),d),from:(Y=H.datasource.from)==null?void 0:Y.replace(new RegExp(`^${c}`,""),d)}}:H}default:return k}}):C.events;return C.id===c?{...C,id:d,events:P}:I&&C.from?{...C,from:C.from.replace(new RegExp(`^${c}`,""),d),events:P}:{...C,events:P}}),i){const C=a?`${l}:${c}`:`${c}`,I=a?`${l}:${d}`:`${d}`;_.datasourcesSubject.next({path:p??"",action:_.DatasourcesActions.RENAME,old_reference:C,new_reference:I,is_shared:a})}return{path:p,namespace:l,datasources:m}}),Jc=Q("tabs/edit-datasource",(e,{getState:r})=>{var i,c;const t=r();let a=[];if(e.namespace)a=t.sharedDatasources.sources[e.namespace];else{const l=t.root.tabs.find(_.by("path",e.path));l&&(a=((c=(i=l.content)==null?void 0:i.metadata)==null?void 0:c.datasources)||[])}return a.map(l=>l.id===e.datasourceId?Object.assign({},l,{[e.propertyKey]:e.value}):l)}),nv=Q("tabs/fetchChanges",async(e,{getState:r})=>{const a=ia(r()).filter(s=>[_.FileFolderType.METHOD,_.FileFolderType.CLASS].includes(s.type));return _.getFilesInfo(...a.map(s=>{const[i]=s.path.split("/").filter(Boolean);return{name:s.name,type:s.type,root:i,path:"."}}))}),pD=Q("files/saveAll",async(e,{getState:r,dispatch:t})=>{const a=Mc(r());for(const s of a)t(Zn({tab:s}))}),Xc=Q("files/tryCloseTab",async(e,{getState:r,dispatch:t})=>{const{tabs:a}=r().root,s=a.findIndex(c=>c.path===e);if(s===-1)return!1;const i=a[s];if(i!=null&&i.flags.touched){const{confirmed:c}=await t(sr({title:Ps(i),message:"Your unsaved changes will be lost. Proceed anyway?",type:jt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!c)return!1}return t(al(s)),i.path===_.ROLES_TAB_PATH&&i.flags.touched&&(async()=>{const l=await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:_.ROLES_TAB_PATH,content:!0,as:"json"});t(Gc({content:l.content,date:l.date}))})(),!0}),hD=Q("files/tryCloseOtherTabs",async(e,{getState:r,dispatch:t})=>{const{tabs:a}=r().root;if(a.some(i=>i.path!==e&&i.flags.touched===!0)){const{confirmed:i}=await t(sr({title:"Closing other tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:jt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(Dv(e))}),gD=Q("files/tryCloseAllTabs",async(e,{getState:r,dispatch:t})=>{const{tabs:a}=r().root;if(a.some(i=>i.flags.touched===!0)){const{confirmed:i}=await t(sr({title:"Closing all tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:jt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(Av())}),vD=Q("files/tryCloseRightTabs",async(e,{getState:r,dispatch:t})=>{const{tabs:a}=r().root;let s=!1;for(let i=a.length-1;i>e;i-=1)if(a[i].flags.touched){s=!0;break}if(s){const{confirmed:i}=await t(sr({title:"Closing right tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:jt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(Pv(e))}),mD=Q("files/tryCloseLeftTabs",async(e,{getState:r,dispatch:t})=>{const{tabs:a}=r().root;let s=!1;for(let i=0;i<e;i+=1)if(a[i].flags.touched){s=!0;break}if(s){const{confirmed:i}=await t(sr({title:"Closing left tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:jt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(Iv(e))}),gc=Q("files/reloadTab",async(e,{dispatch:r})=>{if(e.flags.touched){const{confirmed:s}=await r(sr({title:Ps(e),message:"Changes made to the file will be lost. Continue?",type:jt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!s)return}const t=Gh(e.path),a=await _.getNodeInfo({verb:_.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:t});if(e.path===_.ROLES_TAB_PATH){const{roles:s,privileges:i}=Hs(a.content);r(zc({roles:s,privileges:i}))}else if(e.path===cn){const{content:s}=a;r(zs({path:"project",value:s}))}else{const{content:s}=a;e.type===_.FileFolderType.WEBFORM?_.webformSubject.next({path:e.path,action:_.WebformActions.RELOAD,payload:s.components}):e.type===_.FileFolderType.MODEL&&Zh.next({action:"reload",payload:s})}return a}),Zn=Q("files/saveTab",async({tab:e},{dispatch:r,getState:t})=>{const{path:a,content:s}=e;if(e.type===_.FileFolderType.DEBUGGER)return{...e,errors:[]};a.split("/").pop();const c=await _.getFilesInfo({path:a});if(c.files[0]){const g=new Date(e.date),m=new Date(c.files[0].date);if(g.getTime()<m.getTime()){const{confirmed:b}=await r(sr({title:Ps(e),message:"New content has been found on the server. Are you sure you want to continue?",type:jt.CONFIRM,icon:"FaSave"})).unwrap();if(!b)return r(Ov({path:a,flags:{old:!0}})),null}}const l=await _.saveContent({verb:_.DesignerRequestVerb.SAVE_CONTENT,content:yD(e,t()),path:a});(e.type===_.FileFolderType.CLASS||e.type===_.FileFolderType.MODEL)&&setTimeout(()=>{r(An())},As);const d=(l.modelErrors||[]).map(g=>g.message),p=(l.permissionsErrors||[]).map(g=>g.message);return{...e,content:s,date:l.date,initialContent:s,errors:d.length>0||p.length>0?[{title:"Model errors",messages:d},{title:"Permissions errors",messages:p}]:[]}}),yD=(e,r)=>{switch(!0){case e.path==="settings.json":case e.path===cn:return r.settings.project;case e.type===_.FileFolderType.ROLES:return qs(r.roles);case e.type===_.FileFolderType.MODEL:return e.content||{toJSON:!0,dataClasses:[],extraProperties:{}};default:return e.content}},Up=async e=>{if(e.type===_.FileFolderType.DATA_EXPLORER)return{name:"Data Explorer",path:e.path,flags:{},view:{panel:{isOpen:!1,type:"",current:""}},type:e.type,date:new Date().toISOString()};const r=e.path.split("/").filter(Boolean)[0],t=await _.getFile({root:r,type:e.type,verb:_.DesignerRequestVerb.GET,name:e.name}),a={};t.type===_.FileFolderType.METHOD&&(a.attributes=_.parseAttributes(t.content));const{date:s,name:i,type:c,content:l}=t;return{date:s,flags:{enabled:e.type===_.FileFolderType.WEBFORM},extra:a,view:{panel:{isOpen:!1,type:"",current:""}},name:i,path:e.path,type:c,initialContent:l,content:c===_.FileFolderType.MODEL?Sh(l):l}},av=Q("files/tryInjectMethod",async({type:e,dataclass:r},{getState:t,dispatch:a})=>{const{root:{tabs:s},settings:{server:{qodly:i}}}=t(),c=_.getFileExtentionFromType("class",i);let l="",d="",p=null;if(!r)l="DataStore",d=`Classes/DataStore.${c}`;else switch(e){case"dataclass":l=r,d=`Classes/${r}.${c}`;break;case"collection":l=`${r}Selection`,d=`Classes/${r}Selection.${c}`;break;case"entity":l=`${r}Entity`,d=`Classes/${r}Entity.${c}`;break;default:return p}const g=s.find(_.by("path",d));if(g)return a(Dt(g)),g;try{p=await Up({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:_.FileFolderType.CLASS})}catch{r?await a(pc({type:"dataclass",className:r,collectionName:`${r}Selection`,toCreate:e})):await a(pc({type:"model"}))}return p=await Up({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:_.FileFolderType.CLASS}),p.path=d,a(Dt(p)),p}),bD=Q("roles/open",async(e,{dispatch:r,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path===_.ROLES_TAB_PATH);if(s)return r(Dt(s)),s;r(Ss())});function Hp(e,r){const{line:t,offset:a,type:s="saved"}=r;e.breakpoints[s].locations.push({line:t}),ze.isNumber(a)&&(e.breakpoints[s].offset=a)}function qp(e,r,t,a){e.breakpoints[t].locations=r,ze.isNumber(a)&&(e.breakpoints[t].offset=a)}function Gp({filePath:e,fileType:r,methodName:t,className:a,ext:s,source:i}){return{filePath:e,fileType:r,methodName:t,className:a,ext:s,source:i,breakpoints:{draft:{locations:[],offset:0},saved:{locations:[],offset:0}}}}function zp(e,r,t){let a=!1;const s=e.map(i=>i[t]!==r[t]?i:(a=!0,{...i,...r}));return a?s:[...s,r]}function Xo(e){return e.map(({label:r})=>({label:r}))}const ov=or({name:"debugger",initialState:()=>{var r,t;const{debugger:e={meta:{state:Mr.DETACHED},list:[],sessions:[],expressions:[]}}=ta();return{meta:{...e.meta,state:((r=e.meta)==null?void 0:r.state)===Mr.ATTACHED?(t=e.meta)==null?void 0:t.state:Mr.DETACHED},list:e.list||[],sessions:e.sessions||[],expressions:e.expressions||[]}},reducers:{addBreakpointDecoration(e,r){const{filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l,breakpoint:d}=r.payload,p=On(e.list,t,s,i);if(p)Hp(p,d);else{if(a===_.FileFolderType.CLASS&&d.offset===void 0)throw new Error(`Cannot add a breakpoint on a function without offset. Try editing the ${i} class.`);const g=Gp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});Hp(g,d),e.list.push(g)}},removeBreakpointDecoration(e,r){const{filePath:t,methodName:a,line:s,offset:i=0,type:c="saved"}=r.payload;if(t.startsWith("Classes/")){const l=e.list.filter(d=>d.filePath===t);if(l.length>0){const d=s+i;l.forEach(p=>{const g=p.breakpoints[c].offset||0;p.breakpoints[c].locations=p.breakpoints[c].locations.filter(m=>m.line+g!==d),c==="saved"&&(p.breakpoints.draft.locations=p.breakpoints.draft.locations.filter(m=>m.line+g!==d))})}}else{const l=On(e.list,t,a);l&&(l.breakpoints[c].locations=l.breakpoints[c].locations.filter(d=>d.line!==s),c==="saved"&&(l.breakpoints.draft.locations=l.breakpoints.draft.locations.filter(d=>d.line!==s)))}},setBreakpointsDecoration(e,r){const{filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l,breakpoints:d,offset:p,type:g="saved",clearDraft:m}=r.payload,b=On(e.list,t,s);if(b)qp(b,d,g,p),m&&g!=="draft"&&(b.breakpoints.draft.locations=[]);else{const E=Gp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});qp(E,d,g,p),e.list.push(E)}},clearBreakpoints(e,r){const{filePath:t,type:a="saved"}=r.payload;e.list=e.list.map(s=>({...s,breakpoints:s.filePath===t?{draft:!a||a==="draft"?{locations:[],offset:0}:s.breakpoints.draft,saved:!a||a==="saved"?{locations:[],offset:0}:s.breakpoints.saved}:s.breakpoints}))},setActiveLine(e,r){const{threadId:t,line:a,highlight:s}=r.payload,i=st(e.sessions,t);i&&(i.activeLine=a,s&&(i.highlightedLines={start:a,end:a}))},addExpression(e,r){const{threadId:t,label:a,save:s}=r.payload,i=st(e.sessions,t);i&&i.stopped&&(i.expressions=[...i.expressions||[],{label:a}],s&&(e.expressions=Xo(i.expressions)))},removeExpression(e,r){const{threadId:t,index:a,save:s}=r.payload,i=st(e.sessions,t);i&&(i.expressions=i.expressions.filter((c,l)=>l!==a),s&&(e.expressions=Xo(i.expressions)))},removeAllExpressions(e,r){const{threadId:t,save:a}=r.payload,s=st(e.sessions,t);s&&(s.expressions=[],a&&(e.expressions=[]))},renameExpression(e,r){const{threadId:t,index:a,replacement:s,save:i}=r.payload,c=st(e.sessions,t);c&&c.expressions[a]&&(c.expressions[a].label=s,i&&(e.expressions=Xo(c.expressions)))},setExpression(e,r){const{threadId:t,expression:a}=r.payload,s=st(e.sessions,t);if(s){const i=a.index>=0?a.index:s.expressions.length>0?s.expressions.length-1:0,c=s.expressions[i];c?(c.result=a.result,c.nakedResult=a.nakedResult,c.variablesReference=a.variablesReference||0,c.presentationHint=a.presentationHint):s.expressions.push(a)}},updateExpressionAt(e,r){const{threadId:t,index:a,value:s}=r.payload,i=st(e.sessions,t);if(i){const c=i.expressions[a];c&&(c.result=`"${s}"`,c.nakedResult=s)}},saveExpressions(e,r){const{expressions:t}=r.payload;e.expressions=Xo(t)},addSession(e,r){const{threadId:t,channelId:a,stackFrames:s,exceptions:i=[]}=r.payload,c=st(e.sessions,t),l=s[0],{expressions:d=[]}=e;if(c)c.expressions=d;else{const p=Pc(t);e.sessions.push({tabPath:p,threadId:t,channelId:a,stackFrames:s,currentStackFrame:l,exceptions:i,expressions:d,variables:{callchain:[],expressions:[]},highlightedLines:null,activeLine:null,stopped:!0})}},updateSession(e,r){const{threadId:t,changes:a}=r.payload;e.sessions=e.sessions.map(s=>s.threadId===t?{...s,...a}:s)},removeSession(e,r){const{threadId:t}=r.payload;e.sessions=e.sessions.filter(a=>a.threadId!==t)},removeSessionByIndex(e,r){const t=r.payload;e.sessions.splice(t,1)},setSessions(e,r){const t=r.payload;e.sessions=t},setCallChainVariables(e,r){const{threadId:t,frameId:a,variables:s}=r.payload;e.sessions=e.sessions.map(i=>{var c;return i.threadId===t?{...i,variables:{...i.variables,callchain:zp((c=i.variables)==null?void 0:c.callchain,{frameId:a,items:s},"frameId")}}:i})},setExpressionVariables(e,r){const{threadId:t,variablesReference:a,variables:s}=r.payload;e.sessions=e.sessions.map(i=>{var c;return i.threadId===t?{...i,variables:{...i.variables,expressions:zp((c=i.variables)==null?void 0:c.expressions,{variablesReference:a,items:s},"variablesReference")}}:i})},setSourceContent(e,r){const{threadId:t,content:a}=r.payload,s=st(e.sessions,t);s&&(s.currentStackFrame.source={...s.currentStackFrame.source,content:a})},setDebuggerMeta(e,r){if(r.payload.state===Mr.ERROR){e.meta.error={...e.meta.error,time:Date.now()};const{override:t,error:a={code:null,reason:"",type:ds.SOCKET_ERROR}}=r.payload;if((t||e.meta.state!==Mr.ERROR)&&(e.meta.error={...e.meta.error,...a}),(a==null?void 0:a.type)===ds.SOCKET_CLOSURE&&!(a!=null&&a.reason)&&e.meta.state===Mr.DETACHED)return}e.meta.state=r.payload.state}},extraReducers:e=>{e.addCase(iv.fulfilled,r=>{r.sessions=[]})}}),{addBreakpointDecoration:_D,removeBreakpointDecoration:ED,setBreakpointsDecoration:SD,clearBreakpoints:wD,setActiveLine:TD,addExpression:xD,renameExpression:CD,removeExpression:RD,removeAllExpressions:OD,setExpression:AD,updateExpressionAt:PD,saveExpressions:DD,addSession:ID,updateSession:FD,removeSession:$D,removeSessionByIndex:MD,setSessions:sv,setCallChainVariables:ND,setExpressionVariables:LD,setSourceContent:jD,setDebuggerMeta:kD}=ov.actions,iv=Q("files/wipeDebuggerSessions",async(e,{getState:r,dispatch:t})=>{const{sessions:a}=r().debugger;for(const{threadId:s}of a){const i=Pc(s);t(Xc(i))}}),uv=Q("files/removeDebuggerSessionsNotIn",async(e,{getState:r,dispatch:t})=>{const{threadIds:a}=e,{sessions:s}=r().debugger,i=[],c=s.filter(l=>{const d=a.includes(l.threadId);return d||i.push(l.threadId),d});return t(sv(c)),{staleThreadIds:i}});var Zc=(e=>(e.UUID="uuid",e.STRING="string",e.TEXT="text",e.DATE="date",e.TIME="duration",e.BOOLEAN="bool",e.BYTE="byte",e.INTEGER="word",e.LONG="long",e.LONG64="long64",e.FLOAT="number",e.BLOB="blob",e.IMAGE="image",e.OBJECT="object",e))(Zc||{}),Lr=(e=>(e.STORAGE="storage",e.RELATEDENTITY="relatedEntity",e.RELATEDENTITIES="relatedEntities",e.CALCULATED="calculated",e.COMPOSITION="composition",e.ALIAS="alias",e))(Lr||{});const BD=e=>["string","uuid","number","long"].includes(e.type),WD=[{label:"Storage",value:"storage"},{label:"Calculated",value:"calculated"}],UD=[{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"}],HD=[{title:"String",kind:"storage",value:"string",calculatedType:"string",calculatedKind:"storage"},{title:"Text",kind:"storage",value:"text",calculatedType:"text",calculatedKind:"storage"},{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Date",kind:"storage",value:"date",calculatedType:"date",calculatedKind:"storage"},{title:"Duration",kind:"storage",value:"duration",calculatedType:"duration",calculatedKind:"storage"},{title:"Bool",kind:"storage",value:"bool",calculatedType:"bool",calculatedKind:"storage"},{title:"Byte",kind:"storage",value:"byte",calculatedType:"byte",calculatedKind:"storage"},{title:"Word",kind:"storage",value:"word",calculatedType:"word",calculatedKind:"storage"},{title:"Number",kind:"storage",value:"number",calculatedType:"number",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"},{title:"Object",kind:"storage",value:"object",calculatedType:"object",calculatedKind:"storage"},{title:"Image",kind:"storage",value:"image",calculatedType:"image",calculatedKind:"storage"},{title:"Blob",kind:"storage",value:"blob",calculatedType:"blob",calculatedKind:"storage"}],qD=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],GD=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],zD=[{label:"None",value:"none"},{label:"B-tree",value:"btree"},{label:"Cluster",value:"cluster"},{label:"Automatic",value:"auto"}],cv=Pt("model/add-dataclass"),lv=Pt("model/rename-dataclass"),fv=Pt("model/remove-dataclass"),dv=Pt("model/add-attribute"),YD=Pt("model/edit-attribute-property"),pv=Pt("model/remove-attribute"),hv=Pt("model/rename-attribute"),gv=Pt("model/edit-primary-key"),VD=Pt("model/edit-dataclass-property"),vv=Pt("model/rename-collection"),KD=(e,r)=>({toJSON:!0,extraProperties:r,dataClasses:e.map(t=>{var a;return{...t.data,extraProperties:{position:{x:t.position.x,y:t.position.y},panelColor:(a=t.data.extraProperties)==null?void 0:a.panelColor}}})});function ns(e,r,t){const a=e;let s=0;for(;t[`${a}${s||""}`];)s++;return`${a}${s||""}`}const Na=e=>e.kind===Lr.RELATEDENTITY,ws=e=>e.kind===Lr.RELATEDENTITIES,JD=e=>ws(e)||Na(e),Qc=Q("models/fetch",async()=>{try{return(await _.http(_.API_PREFIX,{method:"POST",body:JSON.stringify({verb:_.DesignerRequestVerb.GET_INFO,path:_.MODEL_TAB_PATH,as:"json",content:!0}),headers:new Headers({"Content-Type":"application/json"})})).content}catch(e){return e.message}}),Ts=Q("models/save",async(e,{getState:r,dispatch:t,rejectWithValue:a})=>{const{tabs:s}=r().root,i=s.find(c=>c.path===_.MODEL_TAB_PATH);if(!i)return a("Error while saving the model");try{const c=await _.http(_.API_PREFIX,{method:"POST",body:JSON.stringify({verb:"save",path:i.path,content:i.content}),headers:new Headers({"Content-Type":"application/json"})});return setTimeout(()=>{t(An())},As),{...c,path:i.path,content:e.content||{toJSON:!0,dataClasses:[],extraProperties:{}}}}catch{return a("Error while saving the model")}}),XD=Q("models/open",async(e,{dispatch:r,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path==="models/main");if(s)return r(Dt(s)),s;r(Qc())}),ZD=Q("model/rename-dataclass",async(e,{getState:r,dispatch:t})=>{var m,b;const{dataclassId:a,selectionId:s,name:i}=e;let c=r();const l=c.explorer.find(E=>E.path===_.FolderRootPath.CLASSES);if(!l)throw new Error("Classes folder was not found!");await t(Sr(l.path)),c=r();const d={class:{found:!1,newNameTaken:!1,file:null,filename_update:i},entity:{found:!1,newNameTaken:!1,file:null,filename_update:`${i}Entity`},selection:{found:!1,newNameTaken:!1,file:null,filename_update:`${i}Selection`}};(b=(m=c.explorer.find(E=>E.path===_.FolderRootPath.CLASSES))==null?void 0:m.children)==null||b.forEach(E=>{E.name===d.class.filename_update&&(d.class.newNameTaken=!0),E.name===d.entity.filename_update&&(d.entity.newNameTaken=!0),E.name===d.selection.filename_update&&(d.selection.newNameTaken=!0),E.name===a?(d.class.found=!0,d.class.file=E):E.name===`${a}Entity`?(d.entity.found=!0,d.entity.file=E):E.name===s&&(d.selection.found=!0,d.selection.file=E)});const p=Object.entries(d).reduce((E,x)=>{const[C,I]=x;return I.found?I.newNameTaken?[...E,{type:"error",message:`Cannot rename ${C} file to ${I.filename_update} because it already exists. The existing file will be used instead!`}]:E:[...E,{type:"warning",message:`${a} ${C} file was not found`}]},[]);p.length>0&&t(sr({message:"The following errors were encountered during dataclass rename:",views:{tips:p}}));const g=Object.values(d).filter(E=>E.found&&E.file&&!E.newNameTaken);await Promise.all(g.map(async E=>await t(Xn({file:E.file,newname:E.filename_update})))),g.length>0&&t(Sr("Classes"))}),Ua={DATACLASS_DELETE:"dataclass.delete",DATACLASS_DRAGGABLE:"dataclass.draggable"},QD={model:{dataClasses:{},collections:{},extraProperties:{}},draft:{dataClasses:{},collections:{},extraProperties:{}},flags:{[Ua.DATACLASS_DELETE]:!0,[Ua.DATACLASS_DRAGGABLE]:!0}},mv=or({name:"Models",initialState:QD,reducers:{setModelFlag(e,r){e.flags={...e.flags,...r.payload}}},extraReducers(e){e.addCase(cv,({draft:{dataClasses:r}},t)=>{var c,l;const{dataclassID:a}=t.payload,s=ns(a||"DataClass","className",r),i={className:s,collectionName:`${s}Selection`,attributes:[{name:"ID",kind:Lr.STORAGE,type:Zc.LONG,scope:"public",indexKind:"auto",unique:!0,primKey:!0,autosequence:!0}],name:s,scope:"public",extraProperties:{position:{x:((c=t.payload.position)==null?void 0:c.x)||0,y:((l=t.payload.position)==null?void 0:l.y)||0}}};r[i.name]=i}).addCase(fv,({draft:{dataClasses:r}},t)=>{const{dataclassID:a}=t.payload;r[a]&&(delete r[a],Object.values(r).forEach(i=>{i.attributes=i.attributes.filter(c=>c.type!==a&&c.type!==i.collectionName)}))}).addCase(lv,({draft:{dataClasses:r,collections:t}},a)=>{const{dataclassID:s,newName:i}=a.payload;if(!r[s]||r[i])return;const c=r[s].collectionName,l=ns(`${i}Selection`,"collectionName",t);Object.values(r).forEach(d=>{d.className===s&&(d.className=i,d.name=i,d.collectionName=l),d.attributes.forEach(p=>{p.type===s?(p.type=i,p.path=i):p.type===c&&(p.type=l)})})}).addCase(dv,({draft:{dataClasses:r}},t)=>{const{dataclassID:a,attributeName:s,attributeType:i,attributeKind:c,target:l}=t.payload;if(!r[a]||_.exists("name",s,r[a].attributes))return;const p={name:s,kind:c,type:i,exposed:!0,scope:"public"};if(c===Lr.RELATEDENTITY){if(!r[i])return;p.path=i;const m={name:ns(r[i].collectionName,"name",r[i].attributes),type:r[a].collectionName,kind:Lr.RELATEDENTITIES,reversePath:!0,path:s,scope:"public",exposed:!0};r[i].attributes.push(m)}else if(c===Lr.RELATEDENTITIES){const g=r[i];if(!g)return;const m=g.attributes.find(_.by("name",l));if(m){if(!Na(m)||m.type!==r[a].className)return}else{p.path=l,p.reversePath=!0,p.type=i;const b={name:l,kind:Lr.RELATEDENTITY,scope:"public",path:g.className,type:g.className,exposed:!0};g.attributes.push(b)}}r[a].attributes.push(p)}).addCase(hv,({draft:{dataClasses:r}},t)=>{const{dataclassID:a,attributeID:s,newName:i}=t.payload,c=r[a].attributes.find(_.by("name",s)),l=r[a].attributes.find(_.by("name",i));!c||l||Object.values(r).forEach(({collectionName:d,attributes:p,className:g})=>{p.forEach(m=>{Na(c)&&ws(m)&&m.type===d&&m.path===s&&(m.path=i),g===a&&m.name===s&&(m.name=i)})})}).addCase(pv,({draft:{dataClasses:r}},t)=>{const{dataclassID:a,attributeID:s}=t.payload;if(!r[a])return;const i=r[a].attributes.find(_.by("name",s));i&&(Na(i)&&Object.values(r).forEach(c=>{c.attributes=c.attributes.filter(l=>!(ws(l)&&l.type===c.collectionName&&l.path===i.name))}),r[a].attributes=r[a].attributes.filter(_.outBy("name",s)))}).addCase(vv,({draft:{dataClasses:r,collections:t}},a)=>{const{dataclassID:s,collectionName:i}=a.payload;if(!r[s])return;const c=r[s].collectionName;t[i]||(r[s].collectionName=i,t[i]=r[s],delete t[c],Object.values(r).forEach(l=>l.attributes.forEach(d=>{d.type===c&&(d.type=i)})))}).addCase(gv,({draft:{dataClasses:r}},t)=>{const{dataclassID:a,newPrimKey:s}=t.payload;r[a]&&r[a].attributes.forEach(i=>{i.name===s?i.primKey=!0:i.primKey=!1})}),e.addCase(Qc.fulfilled,(r,t)=>{var c;const a={},s={},i=t.payload.extraProperties||{};(c=t.payload.dataClasses)==null||c.forEach(l=>{a[l.name]=l,s[l.collectionName]=l}),r.draft.dataClasses=a,r.draft.collections=s,r.draft.extraProperties=i,r.model.dataClasses=a,r.model.collections=s,r.model.extraProperties=i}),e.addCase(Ts.pending,()=>{}).addCase(Ts.fulfilled,(r,t)=>{const a={},s={},i=t.payload.content.extraProperties||{};t.payload.content.dataClasses.forEach(c=>{a[c.name]=c,s[c.collectionName]=c}),r.draft.dataClasses=a,r.draft.collections=s,r.draft.extraProperties=i,r.model.dataClasses=a,r.model.collections=s,r.model.extraProperties=i})}}),{setModelFlag:eI}=mv.actions,tI=()=>Ur(e=>e.model.draft.dataClasses),rI=()=>Ur(e=>e.model.draft.collections),nI=e=>Ur(r=>r.model.draft.dataClasses[e]),aI=(e,r)=>Ur(t=>t.model.draft.dataClasses[e].attributes.find(_.by("name",r))),oI=()=>Ur(e=>e.model.draft.extraProperties),sI=()=>{const e=Ur(s=>s.model.flags),r=s=>s in e?e[s]:void 0,t=r(Ua.DATACLASS_DELETE),a=r(Ua.DATACLASS_DRAGGABLE);return{deleteDataclass:t,draggableDataclass:a,flags:e}},iI=mv.reducer;function Uu(e,r){const t=e.tabs.find(({path:a})=>a===cn);t&&(t.flags.touched=r)}const yv={SIDEBAR_SECTION_RESIZABLE:"sidebar.section.resizable"},bv={[yv.SIDEBAR_SECTION_RESIZABLE]:!0},_v=or({name:"webforms",initialState:()=>{const{webforms:e}=ta();return{...e,templates:{data:[],selectedGroup:""},datasources:{...Oc.webforms.datasources,...e==null?void 0:e.datasources},flags:bv}},reducers:{toggleInspector:(e,r)=>{const{type:t}=r.payload;e.inspector[t].active=!e.inspector[t].active,e.inspector[t].active||(e.inspector[t].data=void 0)},inspect:(e,r)=>{const{type:t,data:a}=r.payload;e.inspector[t].active&&(e.inspector[t].data=a)},addComponent:(e,r)=>{e.components.push(r.payload)},editComponent:(e,r)=>{const{id:t,changes:a}=r.payload;e.components=e.components.map(s=>s.id===t?{...s,...a}:s)},removeComponent:(e,r)=>{const{payload:t}=r,a=e.components.findIndex(s=>s.id===t);a!==-1&&e.components.splice(a,1)},setSelectedGroup:(e,r)=>{e.templates.selectedGroup=r.payload.selectedGroup},setTemplatesData:(e,r)=>{e.templates.data=r.payload},setTemplateData:(e,r)=>{const{group:t,components:a}=r.payload,s=e.templates.data.find(i=>i.group===t);s&&(s.components=a)},setDatasourcesTheme:(e,r)=>{e.datasources.theme=r.payload},setWebformsFlag(e,r){e.flags={...e.flags,...r.payload}}},extraReducers(e){e.addCase(Cv.fulfilled,(r,t)=>{r.components=t.payload})}}),{toggleInspector:uI,inspect:cI,addComponent:Ev,editComponent:Sv,removeComponent:wv,setSelectedGroup:lI,setTemplatesData:Tv,setTemplateData:xv,setDatasourcesTheme:fI,setWebformsFlag:dI}=_v.actions,pI=_v.reducer,el=ze.curry((e,r)=>{var s,i;const t={...r.sharedDatasources.sources},a=(i=((s=r.root.tabs.find(_.by("path",e)))==null?void 0:s.content).metadata)==null?void 0:i.datasources;return a&&(t[e]=a),ze.cloneDeep(t)}),hI=Q("webforms/fetchTemplates",async(e,{dispatch:r,getState:t})=>{const{data:a}=t().webforms.templates,s=t().settings.session["studio.tipsBaseUrl"]||"";if(!ze.isEmpty(a))return a;try{const c=await(await fetch(`${s}/build/index.json?t=${Date.now()}`)).json();return r(Tv(c)),c}catch{return[]}}),gI=Q("webforms/fetchTemplate",async({name:e},{dispatch:r,getState:t})=>{const{data:a}=t().webforms.templates,s=a.find(i=>i.group===e);if(s&&!ze.isEmpty(s.components))return s.components;try{const c=await(await fetch(`${s==null?void 0:s.link}?t=${Date.now()}`)).json();return r(xv({group:e,components:c})),c}catch{return[]}}),Cv=Q("webforms/fetchCraftedComponents",async(e,{rejectWithValue:r})=>{try{return(await _.getNodeInfo({path:"WebForms/crafted_components.json",verb:_.DesignerRequestVerb.GET_INFO,content:!0,as:"json"})).content}catch{return r("Error while loading the crafted components")}}),vI=Q("webforms/addCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(Ev(e));const{webforms:{components:s}}=a();_.setCraftedComponents(s)}catch{return t("Error while adding the crafted component")}}),mI=Q("webforms/editCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(Sv(e));const{webforms:{components:s}}=a();_.setCraftedComponents(s)}catch{return t("Error while editing the crafted component")}}),yI=Q("webforms/removeCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(wv(e));const{webforms:{components:s}}=a();_.setCraftedComponents(s)}catch{return t("Error while removing the crafted component")}}),tl=Q("datasources/add-datasource",async(e,{getState:r,rejectWithValue:t})=>{var a,s;try{const i=r(),c=e.datasource,l=!!c.namespace,d=[];if(l){const p={...i.sharedDatasources.sources,[c.namespace]:[...i.sharedDatasources.sources[c.namespace],c]};d.push(...p[c.namespace]),await _.setSharedSources(p)}else(((s=(a=i.root.tabs.find(_.by("path",e.path)).content)==null?void 0:a.metadata)==null?void 0:s.datasources)||[]).push(c);return{list:d,path:e.path,namespace:e.datasource.namespace}}catch{console.error("Error while adding the datasource",e.datasource.id),t("Error while adding the datasource")}}),rl=Q("datasources/edit-datasource",async(e,{getState:r,rejectWithValue:t})=>{try{const{namespace:a,path:s}=e,i=r(),c=!!e.namespace,l=el(s,i);let d=ze.defaultTo(l[a||s],[]);return d=d.map(p=>p.id===e.id?{...p,[e.property]:e.value}:p),c&&await _.setSharedSources({...i.sharedDatasources.sources,[e.namespace]:d}),{list:d,path:e.path,namespace:e.namespace}}catch{t(`Error while editing datasource ${e.id}`)}}),bI=e=>e.type===Qn.fulfilled.type,Qn=Q("datasources/rename-datasource",async(e,{getState:r,rejectWithValue:t})=>{try{const a=r(),s=!!e.namespace,i=e.namespace||e.path,c=el(e.path,a),l=ze.defaultTo(c[i],[]),d=new RegExp(`^${e.id}\\b`,"");if(l.forEach(p=>{var m;const g=(_.isObjectDatasource(p)||!_.isSimpleDatasource(p))&&p.from&&d.test(p.from);e.updateRefs&&((m=p.events)==null||m.forEach(b=>{var E,x,C,I,P;switch(b.type){case"method":{const k=b;k.params.forEach(M=>{M.datasource&&Object.assign(M,{datasource:M.datasource.replace(new RegExp(`^${e.id}`,""),e.new_name)})}),k.returns&&Object.assign(k.returns,{datasource:(x=(E=k.returns)==null?void 0:E.datasource)==null?void 0:x.replace(new RegExp(`^${e.id}`,""),e.new_name)});return}case"simple-action":{const k=b;k.datasource&&Object.assign(k.datasource,{name:(C=k.datasource.name)==null?void 0:C.replace(new RegExp(`^${e.id}`,""),e.new_name),from:(I=k.datasource.from)==null?void 0:I.replace(new RegExp(`^${e.id}`,""),e.new_name),target:(P=k.datasource.target)==null?void 0:P.replace(new RegExp(`^${e.id}`,""),e.new_name)});return}default:return}})),p.id===e.id?p.id=e.new_name:g&&p.from&&(p.from=p.from.replace(new RegExp(`^${e.id}`,""),e.new_name))}),e.updateRefs){const p=_.getDatasourceId({id:e.id,namespace:e.namespace}),g=_.getDatasourceId({id:e.new_name,namespace:e.namespace});_.datasourcesSubject.next({path:e.path??"",action:_.DatasourcesActions.RENAME,old_reference:p,new_reference:g,is_shared:s})}return s&&await _.setSharedSources({...a.sharedDatasources.sources,[e.namespace]:l}),{list:l,path:e.path,namespace:e.namespace}}catch{return t(`Error while renaming datasource ${e.namespace}:${e.id}`)}}),La=Q("datasources/delete-datasource",async(e,{getState:r,rejectWithValue:t})=>{try{const a=r(),s=!!e.namespace,i=e.namespace||e.path,l=el(e.path,a)[i].filter(_.outById(e.id));return s&&await _.setSharedSources({...a.sharedDatasources.sources,[e.namespace]:l}),{list:l,path:e.path,namespace:e.namespace}}catch{return t(`Error while removing datasource ${e.id}`)}}),nl=or({name:"root",initialState:()=>{const e=ta();return{filesLoading:!1,tabs:e.tabs||[],activeTab:e.activeTab,recent:e.recent||[]}},reducers:{setPanelState(e,r){const{path:t,...a}=r.payload;e.tabs.forEach(s=>{s.path===t&&(s.view||(s.view={panel:{isOpen:!1,type:"",current:""}}),Object.assign(s.view.panel,a))})},addDataSource(e,r){var i;const{payload:{path:t,datasourceDef:a}}=r,s=e.tabs.find(c=>c.path===t);s&&(s.content.metadata.datasources=s.content.metadata.datasources||[],(i=s.content.metadata.datasources)!=null&&i.find(l=>l.id===a.id)||(s.content.metadata.datasources=[...s.content.metadata.datasources,{...a,events:[]}],s.flags={...s.flags,touched:!0}))},openSettingsTab(e){const r={date:new Date().toISOString(),flags:{},view:{panel:{isOpen:!1,type:"",current:""}},extra:{editor:{key:"editors:settings"}},name:"Settings",path:cn,type:_.FileFolderType.SETTINGS,initialContent:{},content:{}};let t=e.tabs.find(a=>a.path===r.path);if(t||(e.tabs.push(r),t=e.tabs[e.tabs.length-1]),e.activeTab!==r.path){const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);e.activeTab=r.path,t.weight=((a==null?void 0:a.weight)||0)+1}},removeDataSource(e,r){const{path:t,datasourceID:a}=r.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0},content:{...s.content,metadata:{...s.content.metadata,datasources:s.content.metadata.datasources.filter(i=>i.id!==a)}}}:s)},setDataSources(e,r){const{payload:{path:t,datasourceArr:a}}=r;e.tabs=e.tabs.map(s=>{var i;return s.path===t?{...s,flags:{...s.flags,touched:!0},content:{...s.content,metadata:{...(i=s.content)==null?void 0:i.metadata,datasources:a}}}:s})},setTabs(e,r){e.tabs=r.payload},closeTab(e,r){const t=r.payload;e.tabs.splice(t,1);const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);e.activeTab=(a==null?void 0:a.path)||""},closeOthers(e,r){e.tabs=e.tabs.filter(t=>t.path===r.payload),e.activeTab=r.payload},closeAllTabs(e){e.tabs=[],e.activeTab=""},closeRightTabs(e,r){e.tabs.splice(r.payload+1),e.activeTab=e.tabs[r.payload].path},closeLeftTabs(e,r){e.tabs.splice(0,r.payload)},closeSavedTabs(e){e.tabs=e.tabs.filter(({flags:{touched:t}})=>t);const r=e.tabs.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null);e.activeTab=(r==null?void 0:r.path)||""},selectTab(e,r){const t=e.tabs.find(({path:s})=>s===r.payload);if(!t||e.activeTab===r.payload)return;const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);t.weight=a?(a.weight||0)+1:1,e.activeTab=r.payload},openTabUnselected(e,r){const t=r.payload;let a=e.tabs.find(({path:i})=>t.path===i);a||(e.tabs.push(t),a=e.tabs[e.tabs.length-1]);const s=e.tabs.reduce((i,c)=>(c==null?void 0:c.weight)>((i==null?void 0:i.weight)||0)?c:i,null);a.weight=s?(s.weight||0)+1:1,a.extra={...a.extra,...t.extra}},selectTabByReference(e,r){const t=r.payload;let a=e.tabs.find(({path:s})=>t.path===s);if(a||(e.tabs.push(t),a=e.tabs[e.tabs.length-1]),e.activeTab!==t.path){const s=e.tabs.reduce((i,c)=>(c==null?void 0:c.weight)>((i==null?void 0:i.weight)||0)?c:i,null);e.activeTab=t.path,a.weight=((s==null?void 0:s.weight)||0)+1}a.extra={...a.extra,...t.extra},a.flags={...a.flags||{},...t.flags||{}}},setContent(e,r){const{path:t,content:a,contentPath:s}=r.payload;e.tabs=e.tabs.map(i=>{if(i.path!==t)return i;let c=!1;if(typeof a=="string")c=i.initialContent!==a;else{const l=JSON.stringify(ze.get(i.initialContent,s||"",i.initialContent)),d=JSON.stringify(ze.get(a,s||"",a));c=l!==d}return a&&typeof a=="object"&&(s?ze.set(i.content,s,a):i.content=a),typeof a=="string"&&(i.content=a),{...i,flags:{...i.flags,touched:c}}})},setTabFlags(e,r){const{path:t,flags:a}=r.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,...a}}:s)},setTabsFlags(e,r){const{tabs:t,flags:a}=r.payload;e.tabs=e.tabs.map(s=>t.includes(s.path)?{...s,flags:{...s.flags,...a}}:s)},setTabExtra(e,r){const{path:t,extra:a,flags:s}=r.payload;e.tabs=e.tabs.map(i=>i.path===t?{...i,extra:{...i.extra,...a},flags:s?{...i.flags,...s}:i.flags}:i)},addWebFormStyles(e,r){const{path:t,styles:a=[]}=r.payload,s=e.tabs.find(i=>i.path===t);if(s){const i=s.content.metadata.styles.map(({name:l})=>l),c=a.filter(({name:l})=>!i.includes(l));s.content.metadata.styles=[...s.content.metadata.styles,...c].map(({scope:l,...d})=>({...d}))}},changeTabEditor(e,r){return e.tabs=e.tabs.map(t=>t.path===r.payload.path?r.payload:t),e}},extraReducers:e=>{e.addCase(tv.fulfilled,(r,t)=>{if(!t.payload)return;const{content:a,line:s,path:i}=t.payload,c=r.tabs.find(l=>l.path===i);if(c&&typeof c.content=="string"){const l=c.content.trim().split(`
|
|
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(_=>!d.find(({name:E,ext:x})=>E===_.name&&x===(i?"4qs":"4dm"))),await Promise.all(p.map(async({name:_,content:E})=>{await r(Kn({type:b.FileFolderType.CLASS,path:s,fileName:_,parentNode:c,content:E,qodly:a.settings.server.qodly}))})),await r(Sr(s))}),Sr=Q("explorer/fetchFolderContent",async(e,{rejectWithValue:r})=>{try{return(await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:e})).map(a=>{const s=`${e}/${a.name}`,{editor:i,supportedEditors:c}=gr(`${s}${a.ext?`.${a.ext.toLowerCase()}`:""}`);return{name:a.name,size:a.size,type:a.type,date:`${a.date}`,flags:{},error:null,path:s,ext:a.ext,config:a.type==="folder"?{}:{editor:i,supportedEditors:c}}})}catch{return r("Failed loading file content please Reload")}},{getPendingMeta:()=>{}}),Ia=Q("explorer/fetchFolderContentWithoutExpanding",async(e,{rejectWithValue:r})=>{try{return(await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:e})).map(a=>{const s=`${e}/${a.name}`,{editor:i,supportedEditors:c}=gr(`${s}${a.ext?`.${a.ext.toLowerCase()}`:""}`);return{name:a.name,size:a.size,type:a.type,date:`${a.date}`,flags:{},error:null,path:s,ext:a.ext,config:a.type==="folder"?{}:{editor:i,supportedEditors:c}}})}catch{return r("Failed loading file content please Reload")}},{getPendingMeta:()=>{}});function oD(e){const r=e.split(".");return r.pop(),{name:r.join("."),ext:e.split(".")[e.split(".").length-1]}}const sD=Q("explorer/uploadFile",async e=>{const r=e.type.includes("image/")?"$rawPict=true":"$binary=true";try{const t=await fetch(`/rest/$upload?${r}`,{method:"POST",headers:{"Content-Type":e.type},body:e});return{status:t.status,data:await t.json()}}catch{return{status:500,data:null}}}),iD=Q("explorer/uploadFile",async({file:e,path:r,parentNode:t},{dispatch:a})=>{const{editor:s,supportedEditors:i}=gr(r),{name:c,ext:l}=oD(e.name);a(Kg({parent:t,child:{name:c,path:`${r}/${e.name}?t=${Date.now()}`,type:e.type,error:null,flags:{loading:!0},config:{editor:s,supportedEditors:i},ext:l}}));try{const d=await fetch(`/rest/$upload?$sharedFolder=true&$filename=${e.name}&$path=${r}`,{method:"POST",headers:{"Content-Type":e.type},body:e});return d.status>=300?(a(pc({parent:t,child:{name:c,path:`${r}/${e.name}`,type:e.type,error:{message:"error uploading file"},flags:{},config:{editor:s,supportedEditors:i},ext:l}})),d.status!==413&&b.toastSubject.next({message:"error uploading file",kind:"danger"})):await a(Sr(t.path)),{status:d.status,fileName:e.name}}catch{return a(pc({parent:t,child:{name:c,path:`${r}/${e.name}`,type:e.type,error:{message:"error uploading file"},flags:{},config:{editor:s,supportedEditors:i},ext:l}})),b.toastSubject.next({message:"error uploading file",kind:"danger"}),{status:500,fileName:e.name}}}),Kn=Q("explorer/createNewFile",async({fileName:e,type:r,path:t,parentNode:a,content:s},{dispatch:i,rejectWithValue:c,getState:l})=>{const{server:{qodly:d},project:p}=l().settings;try{const g=await b.setFileContent({name:Xg(e,r,d),content:s||Jg(r,p),path:t,asText:[b.FileFolderType.CLASS,b.FileFolderType.METHOD].includes(r)});return a.error&&(a.flags.expanded?await i(Sr(a.path)):await i(Ia(a.path))),{qodly:d,file:g,parentNode:a}}catch{return c("failed to create folder")}});function Qg(e,r){const{qodly:t=!0,withExtension:a=!0}=r||{},s=b.getFileExtentionFromType(e.type,t);let i="";switch(e.type){case b.FileFolderType.WEBFORM:i=`${b.FolderRootPath.WEBFORMS}/${e.name}`;break;case b.FileFolderType.METHOD:i=`${b.FolderRootPath.METHODS}/${e.name}`;break;case b.FileFolderType.CLASS:i=`${b.FolderRootPath.CLASSES}/${e.name}`;break;default:return""}return`${i}${a?`.${s}`:""}`}const uD=Q("explorer/createNewFileAndOpen",async(e,{dispatch:r,getState:t})=>{const a=await r(Kn(e)).unwrap(),{qodly:s}=t().settings.server;if(a){const{file:i}=a,c=Qg(i,{withExtension:!1,qodly:s}),{editor:l}=gr(c);await r(Fa({file:{name:e.fileName,type:i.type,path:c,editor:l,date:new Date().toISOString()}}))}}),ts=Q("explorer/createNewNode",async({fileName:e,path:r,parentNode:t},{rejectWithValue:a})=>{try{return{file:await b.createFolder({verb:b.DesignerRequestVerb.CREATE_FOLDER,path:`${r}/${e}`,recursive:!0}),parentNode:t}}catch{return b.toastSubject.next({message:"failed to create folder",kind:"danger"}),a("failed to create folder")}}),Ys=async(e,r=!0)=>{try{const t=e.path.split(".").at(-1),a=await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:Th(t)?"json":"text"}),s={editor:e.editor},i=b.getTypeFromExtension(e.path);i===b.FileFolderType.METHOD&&(s.attributes=b.parseAttributes(a.content),a.content=b.addAttributesToContent(a.content,{}));const{content:c,date:l,ext:d}=a;return{date:l,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(d),confirmed:r},extra:s,name:e.name,path:e.path,type:i,initialContent:c,content:c}}catch(t){const{data:a}=t;if(a.__ERROR.find(s=>s.errCode===b.ERROR_CODES.FILE_NOT_FOUND))switch(e.path){case b.ROLES_TAB_PATH:{const s={permissions:{allowed:[]},privileges:[],roles:[]};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:roles"}},name:"Roles & Privileges",path:e.path,type:b.FileFolderType.ROLES,initialContent:s,content:s}}case b.SETTINGS_TAB_PATH:{const s={};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:settings"}},name:"Settings",path:e.path,type:b.FileFolderType.SETTINGS,initialContent:s,content:s}}}throw t}},Fa=Q("explorer/openFile",async({file:e,inactive:r,flags:t={}},{getState:a,dispatch:s})=>{const{root:{tabs:i},roles:c,debugger:{sessions:l}}=a(),d=i.find(({path:m})=>e.path===m);if(d){const m={...d,extra:{...d==null?void 0:d.extra,editor:e.editor},flags:{...d==null?void 0:d.flags,...t}};return s(Dt(m)),m}if(e.path.startsWith("Debugger")){const m=l.find(_=>`Debugger/${_.threadId}`===e.path);if(m){const{source:{content:_},source:E}=m.currentStackFrame,x={name:e.name,type:b.FileFolderType.DEBUGGER,date:new Date().toISOString(),path:e.path,content:_,view:{panel:{isOpen:!1,type:"",current:""}},initialContent:_,flags:{confirmed:!0},extra:{source:E,editor:e.editor}};return s(Dt(x)),x}}let p=null;try{p=await Ys(e,t.confirmed)}catch(m){const{data:_}=m;if(_.__ERROR.find(E=>[b.ERROR_CODES.JSON_MALFORMED,b.ERROR_CODES.JSON_MALFORMED_AT_LINE].includes(E.errCode))){const{confirmed:E}=await s(sr({title:"Corrupt file",type:kt.CONFIRM,color:Tr.WARNING,message:"Open in code editor ?"})).unwrap();if(E){const x=await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:"text"}),{content:C,date:I,ext:P}=x;p={date:I,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(P),confirmed:!0},extra:{editor:b.EDITOR.Code},name:e.name,path:e.path,type:b.getTypeFromExtension(e.path),initialContent:C,content:C}}}}return p&&(e.path===b.ROLES_TAB_PATH&&!c.flags.touched?s(Yc({content:p.content,date:p.date})):e.path===b.SETTINGS_TAB_PATH&&s(zs({path:"project",value:p.content})),s((r?Fv:Dt)(p)),p)}),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 Ys(e);return t(Dt(i)),i}),ev=Q("explorer/injectContentAtLine",async(e,{getState:r,dispatch:t,rejectWithValue:a})=>{const s=r();e.path.split("/").pop();const c=ft(s.explorer,e.path);if(!c)return a(`Error while trying to inject content in file ${e.path}`);const l=await Ys({name:c.name,date:c.date||new Date().toISOString(),path:`${c.path}.${c.ext}`,type:b.FileFolderType.CLASS,editor:c.config.editor});return await t(Dt(l)),{...e,path:`${c.path}.${c.ext}`}}),tv=Q("explorer/openFileAtSelection",async({file:e},{getState:r,dispatch:t})=>{const{tabs:a}=r().root,s=a.find(({path:c})=>e.path===c);if(s){const c={...s,extra:{...s==null?void 0:s.extra,editor:e.editor}};return t(Dt(c)),c}const i=await Ys(e);return t(Dt(i)),i}),gc=Q("explorer/deleteFile",async e=>{const{name:r,type:t,path:a,flags:s}=e;if(s.error)return{deleted:!0,node:e};const i=a.split("/");return i.pop(),{deleted:await b.dropFile({root:b.FolderRootType.ROOT,type:Zg(t),verb:b.DesignerRequestVerb.DROP,name:r,path:i.join("/")}),node:e}}),cD=Q("explorer/deleteFolder",async e=>{const{path:r,flags:t}=e;if(t.error)return{deleted:!0,node:e};const{deleted:a}=await b.removeItem({force:!0,path:r,verb:b.DesignerRequestVerb.REMOVE_ITEM});return{deleted:a,node:e}}),lD=Q("explorer/removeFileNode",async(e,{getState:r,dispatch:t})=>{const a=`${e.path}.${e.ext}`;if(await b.removeItem({verb:b.DesignerRequestVerb.REMOVE_ITEM,path:a,force:!0}),e.path==="Classes/DataStore"&&setTimeout(()=>{t(On())},As),e.ext){const{tabs:s}=r().root,i=s.findIndex(c=>c.path===a);i>=0&&t(ol(i))}return{deleted:!0,node:e}}),Jn=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 b.moveItem({verb:b.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 b.moveItem({verb:b.DesignerRequestVerb.MOVE_ITEM,path:`${t.join("/")}/${e.name}`,newpath:`${t.join("/")}/${r}`}),{old:e,new:{...e,name:r,path:`${t.join("/")}/${r}`}}}),$a=Q("explorer/relocateNode",async({draggedNode:e,newLocation:r},{rejectWithValue:t})=>{try{await b.moveItem({verb:b.DesignerRequestVerb.MOVE_ITEM,path:`${e.path}.${e.ext}`,newpath:`${r.path}/${e.name}.${e.ext}`})}catch{return t("can't move item")}}),rs=Q("explorer/duplicateNode",async({node:e,duplicateName:r},{rejectWithValue:t,fulfillWithValue:a,getState:s})=>{const i=e.path.split("/");i.pop();try{const{tabs:c}=s().root,l=c.find(({path:m})=>m===`${e.path}${e.ext?`.${e.ext}`:""}`),d=["4dm","4qm","4qs"].includes(e.ext),{content:p}=l||await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:`${e.path}.${e.ext}`,content:!0,as:d?"text":"json"}),g=await b.setFileContent({name:`${r}.${e.ext}`,content:p,path:i.join("/"),asText:d});return a({node:{...g,path:i.join("/")}})}catch{return t("failed to duplicate file")}}),fD=Q("explorer/executeMethod",async({methodName:e,params:r=[],resultingDataSource:t={},namespace:a=""},{rejectWithValue:s})=>{var i,c;try{const d=await window.Method4D.buildMethod({methodName:e,parameters:r,resultingDataSource:t},{namespace:a},null).callServerSide({id:"",serverSideRef:""},"onclick",{});return d!=null&&d.__NOTIFICATION?b.toastSubject.next({message:`${((i=d.__NOTIFICATION)==null?void 0:i.message)||""}`,kind:`${((c=d.__NOTIFICATION)==null?void 0:c.type)||"info"}`}):b.toastSubject.next({message:"Method executed Successfully",kind:"message"}),d}catch(l){return b.toastSubject.next({message:l.message||`Error executing the method "**${e}**"`,kind:"danger",markdown:!0}),s("can't execute method")}}),dD=Q("files/fetchFiles",async()=>b.getFolders(b.FolderRootType.WEBFORMS,b.FolderRootType.METHODS,b.FolderRootType.CLASSES)),Xc=Q("tabs/renameDatasource",async(e,{dispatch:r,getState:t})=>{var E,x;const a=!!e.datasourceNamespace,{confirmed:s}=await r(sr({message:"Are you sure you want to rename the datasource?",title:"Rename Datasource",type:kt.CONFIRM,color:Tr.WARNING,views:{toggles:{},tips:a?[{type:"warning",message:"The datasource property of components bound with this datasource will also be updated on opened web forms only"},{type:"warning",message:"The origin of some other datasources might be also renamed (if this datasource is the origin of other datasources)"}]:[{type:"warning",message:"The datasource property of components bound with this datasource will also be updated"},{type:"warning",message:"The origin of some other datasources might be also renamed (if this datasource is the origin of other datasources)"}]}})).unwrap();if(!s)return null;const{autoUpdateReferences:i,datasourceId:c,datasourceNamespace:l,value:d,path:p}=e,g=t();let m=[];if(a){const C=g.sharedDatasources.sources[l]||[];m.push(...C)}else if(p){const C=g.root.tabs.find(b.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 _=new RegExp(`^${c}\\b`,"");if(m=m.map(C=>{const I=(b.isObjectDatasource(C)||!b.isSimpleDatasource(C))&&C.from&&_.test(C.from),P=C.events?C.events.map(j=>{var M,k,O,Y;switch(j==null?void 0:j.type){case"method":{const H=j;return H.params?{...H,params:H.params.map(z=>{var te;return{...z,datasource:(te=z.datasource)==null?void 0:te.replace(new RegExp(`^${c}`,""),d)}}),returns:(M=H.returns)!=null&&M.datasource?{...H.returns,datasource:(k=H.returns.datasource)==null?void 0:k.replace(new RegExp(`^${c}`,""),d)}:H.returns}:H}case"simple-action":{const H=j;return H.datasource?{...H,datasource:{...H.datasource,name:(O=H.datasource.name)==null?void 0:O.replace(new RegExp(`^${c}`,""),d),from:(Y=H.datasource.from)==null?void 0:Y.replace(new RegExp(`^${c}`,""),d)}}:H}default:return j}}):C.events;return C.id===c?{...C,id:d,events:P}:I&&C.from?{...C,from:C.from.replace(new RegExp(`^${c}`,""),d),events:P}:{...C,events:P}}),i){const C=a?`${l}:${c}`:`${c}`,I=a?`${l}:${d}`:`${d}`;b.datasourcesSubject.next({path:p??"",action:b.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(b.by("path",e.path));l&&(a=((c=(i=l.content)==null?void 0:i.metadata)==null?void 0:c.datasources)||[])}return a.map(l=>l.id===e.datasourceId?Object.assign({},l,{[e.propertyKey]:e.value}):l)}),rv=Q("tabs/fetchChanges",async(e,{getState:r})=>{const a=sa(r()).filter(s=>[b.FileFolderType.METHOD,b.FileFolderType.CLASS].includes(s.type));return b.getFilesInfo(...a.map(s=>{const[i]=s.path.split("/").filter(Boolean);return{name:s.name,type:s.type,root:i,path:"."}}))}),pD=Q("files/saveAll",async(e,{getState:r,dispatch:t})=>{const a=Nc(r());for(const s of a)t(Xn({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(sr({title:Ps(i),message:"Your unsaved changes will be lost. Proceed anyway?",type:kt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!c)return!1}return t(ol(s)),i.path===b.ROLES_TAB_PATH&&i.flags.touched&&(async()=>{const l=await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:b.ROLES_TAB_PATH,content:!0,as:"json"});t(Yc({content:l.content,date:l.date}))})(),!0}),hD=Q("files/tryCloseOtherTabs",async(e,{getState:r,dispatch:t})=>{const{tabs:a}=r().root;if(a.some(i=>i.path!==e&&i.flags.touched===!0)){const{confirmed:i}=await t(sr({title:"Closing other tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:kt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(Pv(e))}),gD=Q("files/tryCloseAllTabs",async(e,{getState:r,dispatch:t})=>{const{tabs:a}=r().root;if(a.some(i=>i.flags.touched===!0)){const{confirmed:i}=await t(sr({title:"Closing all tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:kt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(Ov())}),vD=Q("files/tryCloseRightTabs",async(e,{getState:r,dispatch:t})=>{const{tabs:a}=r().root;let s=!1;for(let i=a.length-1;i>e;i-=1)if(a[i].flags.touched){s=!0;break}if(s){const{confirmed:i}=await t(sr({title:"Closing right tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:kt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(Av(e))}),mD=Q("files/tryCloseLeftTabs",async(e,{getState:r,dispatch:t})=>{const{tabs:a}=r().root;let s=!1;for(let i=0;i<e;i+=1)if(a[i].flags.touched){s=!0;break}if(s){const{confirmed:i}=await t(sr({title:"Closing left tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:kt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!i)return}t(Dv(e))}),vc=Q("files/reloadTab",async(e,{dispatch:r})=>{if(e.flags.touched){const{confirmed:s}=await r(sr({title:Ps(e),message:"Changes made to the file will be lost. Continue?",type:kt.CONFIRM,color:Tr.WARNING,icon:"AiFillWarning"})).unwrap();if(!s)return}const t=zh(e.path),a=await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:t});if(e.path===b.ROLES_TAB_PATH){const{roles:s,privileges:i}=Hs(a.content);r(Vc({roles:s,privileges:i}))}else if(e.path===b.SETTINGS_TAB_PATH){const{content:s}=a;r(zs({path:"project",value:s}))}else{const{content:s}=a;e.type===b.FileFolderType.WEBFORM?b.webformSubject.next({path:e.path,action:b.WebformActions.RELOAD,payload:s.components}):e.type===b.FileFolderType.MODEL&&Qh.next({action:"reload",payload:s})}return a}),Xn=Q("files/saveTab",async({tab:e},{dispatch:r,getState:t})=>{const{path:a,content:s}=e;if(e.type===b.FileFolderType.DEBUGGER)return{...e,errors:[]};a.split("/").pop();const c=await b.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:_}=await r(sr({title:Ps(e),message:"New content has been found on the server. Are you sure you want to continue?",type:kt.CONFIRM,icon:"FaSave"})).unwrap();if(!_)return r(Rv({path:a,flags:{old:!0}})),null}}const l=await b.saveContent({verb:b.DesignerRequestVerb.SAVE_CONTENT,content:yD(e,t()),path:a});(e.type===b.FileFolderType.CLASS||e.type===b.FileFolderType.MODEL)&&setTimeout(()=>{r(On())},As);const d=(l.modelErrors||[]).map(g=>g.message),p=(l.permissionsErrors||[]).map(g=>g.message);return{...e,content:s,date:l.date,initialContent:s,errors:d.length>0||p.length>0?[{title:"Model errors",messages:d},{title:"Permissions errors",messages:p}]:[]}}),yD=(e,r)=>{switch(!0){case e.path==="settings.json":case e.path===b.SETTINGS_TAB_PATH:return r.settings.project;case e.type===b.FileFolderType.ROLES:return Gs(r.roles);case e.type===b.FileFolderType.MODEL:return e.content||{toJSON:!0,dataClasses:[],extraProperties:{}};default:return e.content}},Hp=async e=>{if(e.type===b.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 b.getFile({root:r,type:e.type,verb:b.DesignerRequestVerb.GET,name:e.name}),a={};t.type===b.FileFolderType.METHOD&&(a.attributes=b.parseAttributes(t.content));const{date:s,name:i,type:c,content:l}=t;return{date:s,flags:{enabled:e.type===b.FileFolderType.WEBFORM},extra:a,view:{panel:{isOpen:!1,type:"",current:""}},name:i,path:e.path,type:c,initialContent:l,content:c===b.FileFolderType.MODEL?wh(l):l}},nv=Q("files/tryInjectMethod",async({type:e,dataclass:r},{getState:t,dispatch:a})=>{const{root:{tabs:s},settings:{server:{qodly:i}}}=t(),c=b.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(b.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:b.FileFolderType.CLASS})}catch{r?await a(hc({type:"dataclass",className:r,collectionName:`${r}Selection`,toCreate:e})):await a(hc({type:"model"}))}return p=await Hp({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:b.FileFolderType.CLASS}),p.path=d,a(Dt(p)),p}),bD=Q("roles/open",async(e,{dispatch:r,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path===b.ROLES_TAB_PATH);if(s)return r(Dt(s)),s;r(Ss())});function Gp(e,r){const{line:t,offset:a,type:s="saved"}=r;e.breakpoints[s].locations.push({line:t}),He.isNumber(a)&&(e.breakpoints[s].offset=a)}function qp(e,r,t,a){e.breakpoints[t].locations=r,He.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 Xo(e){return e.map(({label:r})=>({label:r}))}const av=or({name:"debugger",initialState:()=>{var r,t;const{debugger:e={meta:{state:Mr.DETACHED},list:[],sessions:[],expressions:[]}}=ea();return{meta:{...e.meta,state:((r=e.meta)==null?void 0:r.state)===Mr.ATTACHED?(t=e.meta)==null?void 0:t.state:Mr.DETACHED},list:e.list||[],sessions:e.sessions||[],expressions:e.expressions||[]}},reducers:{addBreakpointDecoration(e,r){const{filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l,breakpoint:d}=r.payload,p=Rn(e.list,t,s,i);if(p)Gp(p,d);else{if(a===b.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});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=Rn(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,_=Rn(e.list,t,s);if(_)qp(_,d,g,p),m&&g!=="draft"&&(_.breakpoints.draft.locations=[]);else{const E=zp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});qp(E,d,g,p),e.list.push(E)}},clearBreakpoints(e,r){const{filePath:t,type:a="saved"}=r.payload;e.list=e.list.map(s=>({...s,breakpoints:s.filePath===t?{draft:!a||a==="draft"?{locations:[],offset:0}:s.breakpoints.draft,saved:!a||a==="saved"?{locations:[],offset:0}:s.breakpoints.saved}:s.breakpoints}))},setActiveLine(e,r){const{threadId:t,line:a,highlight:s}=r.payload,i=st(e.sessions,t);i&&(i.activeLine=a,s&&(i.highlightedLines={start:a,end:a}))},addExpression(e,r){const{threadId:t,label:a,save:s}=r.payload,i=st(e.sessions,t);i&&i.stopped&&(i.expressions=[...i.expressions||[],{label:a}],s&&(e.expressions=Xo(i.expressions)))},removeExpression(e,r){const{threadId:t,index:a,save:s}=r.payload,i=st(e.sessions,t);i&&(i.expressions=i.expressions.filter((c,l)=>l!==a),s&&(e.expressions=Xo(i.expressions)))},removeAllExpressions(e,r){const{threadId:t,save:a}=r.payload,s=st(e.sessions,t);s&&(s.expressions=[],a&&(e.expressions=[]))},renameExpression(e,r){const{threadId:t,index:a,replacement:s,save:i}=r.payload,c=st(e.sessions,t);c&&c.expressions[a]&&(c.expressions[a].label=s,i&&(e.expressions=Xo(c.expressions)))},setExpression(e,r){const{threadId:t,expression:a}=r.payload,s=st(e.sessions,t);if(s){const i=a.index>=0?a.index:s.expressions.length>0?s.expressions.length-1:0,c=s.expressions[i];c?(c.result=a.result,c.nakedResult=a.nakedResult,c.variablesReference=a.variablesReference||0,c.presentationHint=a.presentationHint):s.expressions.push(a)}},updateExpressionAt(e,r){const{threadId:t,index:a,value:s}=r.payload,i=st(e.sessions,t);if(i){const c=i.expressions[a];c&&(c.result=`"${s}"`,c.nakedResult=s)}},saveExpressions(e,r){const{expressions:t}=r.payload;e.expressions=Xo(t)},addSession(e,r){const{threadId:t,channelId:a,stackFrames:s,exceptions:i=[]}=r.payload,c=st(e.sessions,t),l=s[0],{expressions:d=[]}=e;if(c)c.expressions=d;else{const p=Dc(t);e.sessions.push({tabPath:p,threadId:t,channelId:a,stackFrames:s,currentStackFrame:l,exceptions:i,expressions:d,variables:{callchain:[],expressions:[]},highlightedLines:null,activeLine:null,stopped:!0})}},updateSession(e,r){const{threadId:t,changes:a}=r.payload;e.sessions=e.sessions.map(s=>s.threadId===t?{...s,...a}:s)},removeSession(e,r){const{threadId:t}=r.payload;e.sessions=e.sessions.filter(a=>a.threadId!==t)},removeSessionByIndex(e,r){const t=r.payload;e.sessions.splice(t,1)},setSessions(e,r){const t=r.payload;e.sessions=t},setCallChainVariables(e,r){const{threadId:t,frameId:a,variables:s}=r.payload;e.sessions=e.sessions.map(i=>{var c;return i.threadId===t?{...i,variables:{...i.variables,callchain: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===Mr.ERROR){e.meta.error={...e.meta.error,time:Date.now()};const{override:t,error:a={code:null,reason:"",type:ds.SOCKET_ERROR}}=r.payload;if((t||e.meta.state!==Mr.ERROR)&&(e.meta.error={...e.meta.error,...a}),(a==null?void 0:a.type)===ds.SOCKET_CLOSURE&&!(a!=null&&a.reason)&&e.meta.state===Mr.DETACHED)return}e.meta.state=r.payload.state}},extraReducers:e=>{e.addCase(sv.fulfilled,r=>{r.sessions=[]})}}),{addBreakpointDecoration:_D,removeBreakpointDecoration:ED,setBreakpointsDecoration:SD,clearBreakpoints:wD,setActiveLine:TD,addExpression:xD,renameExpression:CD,removeExpression:RD,removeAllExpressions:OD,setExpression:AD,updateExpressionAt:PD,saveExpressions:DD,addSession:ID,updateSession:FD,removeSession:$D,removeSessionByIndex:MD,setSessions:ov,setCallChainVariables:ND,setExpressionVariables:LD,setSourceContent:kD,setDebuggerMeta:jD}=av.actions,sv=Q("files/wipeDebuggerSessions",async(e,{getState:r,dispatch:t})=>{const{sessions:a}=r().debugger;for(const{threadId:s}of a){const i=Dc(s);t(Qc(i))}}),iv=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(ov(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||{}),Lr=(e=>(e.STORAGE="storage",e.RELATEDENTITY="relatedEntity",e.RELATEDENTITIES="relatedEntities",e.CALCULATED="calculated",e.COMPOSITION="composition",e.ALIAS="alias",e))(Lr||{});const BD=e=>["string","uuid","number","long"].includes(e.type),WD=[{label:"Storage",value:"storage"},{label:"Calculated",value:"calculated"}],UD=[{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"}],HD=[{title:"String",kind:"storage",value:"string",calculatedType:"string",calculatedKind:"storage"},{title:"Text",kind:"storage",value:"text",calculatedType:"text",calculatedKind:"storage"},{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Date",kind:"storage",value:"date",calculatedType:"date",calculatedKind:"storage"},{title:"Duration",kind:"storage",value:"duration",calculatedType:"duration",calculatedKind:"storage"},{title:"Bool",kind:"storage",value:"bool",calculatedType:"bool",calculatedKind:"storage"},{title:"Byte",kind:"storage",value:"byte",calculatedType:"byte",calculatedKind:"storage"},{title:"Word",kind:"storage",value:"word",calculatedType:"word",calculatedKind:"storage"},{title:"Number",kind:"storage",value:"number",calculatedType:"number",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"},{title:"Object",kind:"storage",value:"object",calculatedType:"object",calculatedKind:"storage"},{title:"Image",kind:"storage",value:"image",calculatedType:"image",calculatedKind:"storage"},{title:"Blob",kind:"storage",value:"blob",calculatedType:"blob",calculatedKind:"storage"}],GD=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],qD=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],zD=[{label:"None",value:"none"},{label:"B-tree",value:"btree"},{label:"Cluster",value:"cluster"},{label:"Automatic",value:"auto"}],uv=Pt("model/add-dataclass"),cv=Pt("model/rename-dataclass"),lv=Pt("model/remove-dataclass"),fv=Pt("model/add-attribute"),YD=Pt("model/edit-attribute-property"),dv=Pt("model/remove-attribute"),pv=Pt("model/rename-attribute"),hv=Pt("model/edit-primary-key"),VD=Pt("model/edit-dataclass-property"),gv=Pt("model/rename-collection"),KD=(e,r)=>({toJSON:!0,extraProperties:r,dataClasses:e.map(t=>{var a;return{...t.data,extraProperties:{position:{x:t.position.x,y:t.position.y},panelColor:(a=t.data.extraProperties)==null?void 0:a.panelColor}}})});function ns(e,r,t){const a=e;let s=0;for(;t[`${a}${s||""}`];)s++;return`${a}${s||""}`}const Ma=e=>e.kind===Lr.RELATEDENTITY,ws=e=>e.kind===Lr.RELATEDENTITIES,JD=e=>ws(e)||Ma(e),tl=Q("models/fetch",async()=>{try{return(await b.http(b.API_PREFIX,{method:"POST",body:JSON.stringify({verb:b.DesignerRequestVerb.GET_INFO,path:b.MODEL_TAB_PATH,as:"json",content:!0}),headers:new Headers({"Content-Type":"application/json"})})).content}catch(e){return e.message}}),Ts=Q("models/save",async(e,{getState:r,dispatch:t,rejectWithValue:a})=>{const{tabs:s}=r().root,i=s.find(c=>c.path===b.MODEL_TAB_PATH);if(!i)return a("Error while saving the model");try{const c=await b.http(b.API_PREFIX,{method:"POST",body:JSON.stringify({verb:"save",path:i.path,content:i.content}),headers:new Headers({"Content-Type":"application/json"})});return setTimeout(()=>{t(On())},As),{...c,path:i.path,content:e.content||{toJSON:!0,dataClasses:[],extraProperties:{}}}}catch{return a("Error while saving the model")}}),XD=Q("models/open",async(e,{dispatch:r,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path==="models/main");if(s)return r(Dt(s)),s;r(tl())}),ZD=Q("model/rename-dataclass",async(e,{getState:r,dispatch:t})=>{var m,_;const{dataclassId:a,selectionId:s,name:i}=e;let c=r();const l=c.explorer.find(E=>E.path===b.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`}};(_=(m=c.explorer.find(E=>E.path===b.FolderRootPath.CLASSES))==null?void 0:m.children)==null||_.forEach(E=>{E.name===d.class.filename_update&&(d.class.newNameTaken=!0),E.name===d.entity.filename_update&&(d.entity.newNameTaken=!0),E.name===d.selection.filename_update&&(d.selection.newNameTaken=!0),E.name===a?(d.class.found=!0,d.class.file=E):E.name===`${a}Entity`?(d.entity.found=!0,d.entity.file=E):E.name===s&&(d.selection.found=!0,d.selection.file=E)});const p=Object.entries(d).reduce((E,x)=>{const[C,I]=x;return I.found?I.newNameTaken?[...E,{type:"error",message:`Cannot rename ${C} file to ${I.filename_update} because it already exists. The existing file will be used instead!`}]:E:[...E,{type:"warning",message:`${a} ${C} file was not found`}]},[]);p.length>0&&t(sr({message:"The following errors were encountered during dataclass rename:",views:{tips:p}}));const g=Object.values(d).filter(E=>E.found&&E.file&&!E.newNameTaken);await Promise.all(g.map(async E=>await t(Jn({file:E.file,newname:E.filename_update})))),g.length>0&&t(Sr("Classes"))}),Wa={DATACLASS_DELETE:"dataclass.delete",DATACLASS_DRAGGABLE:"dataclass.draggable"},QD={model:{dataClasses:{},collections:{},extraProperties:{}},draft:{dataClasses:{},collections:{},extraProperties:{}},flags:{[Wa.DATACLASS_DELETE]:!0,[Wa.DATACLASS_DRAGGABLE]:!0}},vv=or({name:"Models",initialState:QD,reducers:{setModelFlag(e,r){e.flags={...e.flags,...r.payload}}},extraReducers(e){e.addCase(uv,({draft:{dataClasses:r}},t)=>{var c,l;const{dataclassID:a}=t.payload,s=ns(a||"DataClass","className",r),i={className:s,collectionName:`${s}Selection`,attributes:[{name:"ID",kind:Lr.STORAGE,type: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(lv,({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(cv,({draft:{dataClasses:r,collections:t}},a)=>{const{dataclassID:s,newName:i}=a.payload;if(!r[s]||r[i])return;const c=r[s].collectionName,l=ns(`${i}Selection`,"collectionName",t);Object.values(r).forEach(d=>{d.className===s&&(d.className=i,d.name=i,d.collectionName=l),d.attributes.forEach(p=>{p.type===s?(p.type=i,p.path=i):p.type===c&&(p.type=l)})})}).addCase(fv,({draft:{dataClasses:r}},t)=>{const{dataclassID:a,attributeName:s,attributeType:i,attributeKind:c,target:l}=t.payload;if(!r[a]||b.exists("name",s,r[a].attributes))return;const p={name:s,kind:c,type:i,exposed:!0,scope:"public"};if(c===Lr.RELATEDENTITY){if(!r[i])return;p.path=i;const m={name:ns(r[i].collectionName,"name",r[i].attributes),type:r[a].collectionName,kind:Lr.RELATEDENTITIES,reversePath:!0,path:s,scope:"public",exposed:!0};r[i].attributes.push(m)}else if(c===Lr.RELATEDENTITIES){const g=r[i];if(!g)return;const m=g.attributes.find(b.by("name",l));if(m){if(!Ma(m)||m.type!==r[a].className)return}else{p.path=l,p.reversePath=!0,p.type=i;const _={name:l,kind:Lr.RELATEDENTITY,scope:"public",path:g.className,type:g.className,exposed:!0};g.attributes.push(_)}}r[a].attributes.push(p)}).addCase(pv,({draft:{dataClasses:r}},t)=>{const{dataclassID:a,attributeID:s,newName:i}=t.payload,c=r[a].attributes.find(b.by("name",s)),l=r[a].attributes.find(b.by("name",i));!c||l||Object.values(r).forEach(({collectionName:d,attributes:p,className:g})=>{p.forEach(m=>{Ma(c)&&ws(m)&&m.type===d&&m.path===s&&(m.path=i),g===a&&m.name===s&&(m.name=i)})})}).addCase(dv,({draft:{dataClasses:r}},t)=>{const{dataclassID:a,attributeID:s}=t.payload;if(!r[a])return;const i=r[a].attributes.find(b.by("name",s));i&&(Ma(i)&&Object.values(r).forEach(c=>{c.attributes=c.attributes.filter(l=>!(ws(l)&&l.type===c.collectionName&&l.path===i.name))}),r[a].attributes=r[a].attributes.filter(b.outBy("name",s)))}).addCase(gv,({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(hv,({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(Ts.pending,()=>{}).addCase(Ts.fulfilled,(r,t)=>{const a={},s={},i=t.payload.content.extraProperties||{};t.payload.content.dataClasses.forEach(c=>{a[c.name]=c,s[c.collectionName]=c}),r.draft.dataClasses=a,r.draft.collections=s,r.draft.extraProperties=i,r.model.dataClasses=a,r.model.collections=s,r.model.extraProperties=i})}}),{setModelFlag:eI}=vv.actions,tI=()=>Ur(e=>e.model.draft.dataClasses),rI=()=>Ur(e=>e.model.draft.collections),nI=e=>Ur(r=>r.model.draft.dataClasses[e]),aI=(e,r)=>Ur(t=>t.model.draft.dataClasses[e].attributes.find(b.by("name",r))),oI=()=>Ur(e=>e.model.draft.extraProperties),sI=()=>{const e=Ur(s=>s.model.flags),r=s=>s in e?e[s]:void 0,t=r(Wa.DATACLASS_DELETE),a=r(Wa.DATACLASS_DRAGGABLE);return{deleteDataclass:t,draggableDataclass:a,flags:e}},iI=vv.reducer;function Uu(e,r){const t=e.tabs.find(({path:a})=>a===b.SETTINGS_TAB_PATH);t&&(t.flags.touched=r)}const mv={SIDEBAR_SECTION_RESIZABLE:"sidebar.section.resizable"},yv={[mv.SIDEBAR_SECTION_RESIZABLE]:!0},bv=or({name:"webforms",initialState:()=>{const{webforms:e}=ea();return{...e,templates:{data:[],selectedGroup:""},datasources:{...Ac.webforms.datasources,...e==null?void 0:e.datasources},flags:yv}},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(xv.fulfilled,(r,t)=>{r.components=t.payload})}}),{toggleInspector:uI,inspect:cI,addComponent:_v,editComponent:Ev,removeComponent:Sv,setSelectedGroup:lI,setTemplatesData:wv,setTemplateData:Tv,setDatasourcesTheme:fI,setWebformsFlag:dI}=bv.actions,pI=bv.reducer,rl=He.curry((e,r)=>{var s,i;const t={...r.sharedDatasources.sources},a=(i=((s=r.root.tabs.find(b.by("path",e)))==null?void 0:s.content).metadata)==null?void 0:i.datasources;return a&&(t[e]=a),He.cloneDeep(t)}),hI=Q("webforms/fetchTemplates",async(e,{dispatch:r,getState:t})=>{const{data:a}=t().webforms.templates,s=t().settings.session["studio.tipsBaseUrl"]||"";if(!He.isEmpty(a))return a;try{const c=await(await fetch(`${s}/build/index.json?t=${Date.now()}`)).json();return r(wv(c)),c}catch{return[]}}),gI=Q("webforms/fetchTemplate",async({name:e},{dispatch:r,getState:t})=>{const{data:a}=t().webforms.templates,s=a.find(i=>i.group===e);if(s&&!He.isEmpty(s.components))return s.components;try{const c=await(await fetch(`${s==null?void 0:s.link}?t=${Date.now()}`)).json();return r(Tv({group:e,components:c})),c}catch{return[]}}),xv=Q("webforms/fetchCraftedComponents",async(e,{rejectWithValue:r})=>{try{return(await b.getNodeInfo({path:"WebForms/crafted_components.json",verb:b.DesignerRequestVerb.GET_INFO,content:!0,as:"json"})).content}catch{return r("Error while loading the crafted components")}}),vI=Q("webforms/addCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(_v(e));const{webforms:{components:s}}=a();b.setCraftedComponents(s)}catch{return t("Error while adding the crafted component")}}),mI=Q("webforms/editCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(Ev(e));const{webforms:{components:s}}=a();b.setCraftedComponents(s)}catch{return t("Error while editing the crafted component")}}),yI=Q("webforms/removeCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(Sv(e));const{webforms:{components:s}}=a();b.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 b.setSharedSources(p)}else(((s=(a=i.root.tabs.find(b.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=He.defaultTo(l[a||s],[]);return d=d.map(p=>p.id===e.id?{...p,[e.property]:e.value}:p),c&&await b.setSharedSources({...i.sharedDatasources.sources,[e.namespace]:d}),{list:d,path:e.path,namespace:e.namespace}}catch{t(`Error while editing datasource ${e.id}`)}}),bI=e=>e.type===Zn.fulfilled.type,Zn=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=He.defaultTo(c[i],[]),d=new RegExp(`^${e.id}\\b`,"");if(l.forEach(p=>{var m;const g=(b.isObjectDatasource(p)||!b.isSimpleDatasource(p))&&p.from&&d.test(p.from);e.updateRefs&&((m=p.events)==null||m.forEach(_=>{var E,x,C,I,P;switch(_.type){case"method":{const j=_;j.params.forEach(M=>{M.datasource&&Object.assign(M,{datasource:M.datasource.replace(new RegExp(`^${e.id}`,""),e.new_name)})}),j.returns&&Object.assign(j.returns,{datasource:(x=(E=j.returns)==null?void 0:E.datasource)==null?void 0:x.replace(new RegExp(`^${e.id}`,""),e.new_name)});return}case"simple-action":{const j=_;j.datasource&&Object.assign(j.datasource,{name:(C=j.datasource.name)==null?void 0:C.replace(new RegExp(`^${e.id}`,""),e.new_name),from:(I=j.datasource.from)==null?void 0:I.replace(new RegExp(`^${e.id}`,""),e.new_name),target:(P=j.datasource.target)==null?void 0:P.replace(new RegExp(`^${e.id}`,""),e.new_name)});return}default:return}})),p.id===e.id?p.id=e.new_name:g&&p.from&&(p.from=p.from.replace(new RegExp(`^${e.id}`,""),e.new_name))}),e.updateRefs){const p=b.getDatasourceId({id:e.id,namespace:e.namespace}),g=b.getDatasourceId({id:e.new_name,namespace:e.namespace});b.datasourcesSubject.next({path:e.path??"",action:b.DatasourcesActions.RENAME,old_reference:p,new_reference:g,is_shared:s})}return s&&await b.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}`)}}),Na=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(b.outById(e.id));return s&&await b.setSharedSources({...a.sharedDatasources.sources,[e.namespace]:l}),{list:l,path:e.path,namespace:e.namespace}}catch{return t(`Error while removing datasource ${e.id}`)}}),Ua=or({name:"root",initialState:()=>{const e=ea();return{filesLoading:!1,tabs:e.tabs||[],activeTab:e.activeTab,recent:e.recent||[]}},reducers:{setPanelState(e,r){const{path:t,...a}=r.payload;e.tabs.forEach(s=>{s.path===t&&(s.view||(s.view={panel:{isOpen:!1,type:"",current:""}}),Object.assign(s.view.panel,a))})},addDataSource(e,r){var i;const{payload:{path:t,datasourceDef:a}}=r,s=e.tabs.find(c=>c.path===t);s&&(s.content.metadata.datasources=s.content.metadata.datasources||[],(i=s.content.metadata.datasources)!=null&&i.find(l=>l.id===a.id)||(s.content.metadata.datasources=[...s.content.metadata.datasources,{...a,events:[]}],s.flags={...s.flags,touched:!0,confirmed:!0}))},openSettingsTab(e){const r={date:new Date().toISOString(),flags:{confirmed:!0},view:{panel:{isOpen:!1,type:"",current:""}},extra:{editor:{key:"editors:settings"}},name:"Settings",path:b.SETTINGS_TAB_PATH,type:b.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,confirmed:!0},content:{...s.content,metadata:{...s.content.metadata,datasources:s.content.metadata.datasources.filter(i=>i.id!==a)}}}:s)},setDataSources(e,r){const{payload:{path:t,datasourceArr:a}}=r;e.tabs=e.tabs.map(s=>{var i;return s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:{...s.content,metadata:{...(i=s.content)==null?void 0:i.metadata,datasources:a}}}:s})},setTabs(e,r){e.tabs=r.payload},closeTab(e,r){const t=r.payload;e.tabs.splice(t,1);const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);e.activeTab=(a==null?void 0:a.path)||""},closeOthers(e,r){e.tabs=e.tabs.filter(t=>t.path===r.payload),e.activeTab=r.payload},closeAllTabs(e){e.tabs=[],e.activeTab=""},closeRightTabs(e,r){e.tabs.splice(r.payload+1),e.activeTab=e.tabs[r.payload].path},closeLeftTabs(e,r){e.tabs.splice(0,r.payload)},closeSavedTabs(e){e.tabs=e.tabs.filter(({flags:{touched:t}})=>t);const r=e.tabs.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null);e.activeTab=(r==null?void 0:r.path)||""},confirmTab(e,r){const t=e.tabs.find(({path:a})=>a===r.payload);t&&(t.flags.confirmed||Ua.caseReducers.setTabFlags(e,{type:r.type,payload:{path:r.payload,flags:{confirmed:!0}}}))},selectTab(e,r){const t=e.tabs.find(({path:s})=>s===r.payload);if(!t||e.activeTab===r.payload)return;const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);t.weight=a?(a.weight||0)+1:1,e.activeTab=r.payload},openTabUnselected(e,r){const t=r.payload;let a=e.tabs.find(({path:i})=>t.path===i);a||(e.tabs.push(t),a=e.tabs[e.tabs.length-1]);const s=e.tabs.reduce((i,c)=>(c==null?void 0:c.weight)>((i==null?void 0:i.weight)||0)?c:i,null);a.weight=s?(s.weight||0)+1:1,a.extra={...a.extra,...t.extra}},selectTabByReference(e,r){const t=[b.FileFolderType.SETTINGS,b.FileFolderType.DEBUGGER],a=r.payload;let s=e.tabs.find(({path:i})=>a.path===i);if((t.includes(a.type)||s!=null&&s.flags.confirmed)&&(a.flags.confirmed=!0),!s){const i=e.tabs.findIndex(({flags:{confirmed:c}})=>c===!1);i!==-1&&!t.includes(a.type)?e.activeTab===e.tabs[i].path?(e.tabs[i]=a,s=e.tabs[i]):(e.tabs.push(a),s=e.tabs[e.tabs.length-1],e.tabs.splice(i,1)):(e.tabs.push(a),s=e.tabs[e.tabs.length-1])}if(e.activeTab!==a.path){const i=e.tabs.reduce((c,l)=>(l==null?void 0:l.weight)>((c==null?void 0:c.weight)||0)?l:c,null);e.activeTab=a.path,s.weight=((i==null?void 0:i.weight)||0)+1}s.extra={...s.extra,...a.extra},s.flags={...s.flags||{},...a.flags||{}}},setContent(e,r){const{path:t,content:a,contentPath:s}=r.payload;e.tabs=e.tabs.map(i=>{if(i.path!==t)return i;let c=!1,l=i.flags.confirmed;if(typeof a=="string")c=i.initialContent!==a,l=!l&&c?!0:l;else{const d=JSON.stringify(He.get(i.initialContent,s||"",i.initialContent)),p=JSON.stringify(He.get(a,s||"",a));c=d!==p,l=!l&&c?!0:l}return a&&typeof a=="object"&&(s?He.set(i.content,s,a):i.content=a),typeof a=="string"&&(i.content=a),{...i,flags:{...i.flags,touched:c,confirmed:l}}})},setTabFlags(e,r){const{path:t,flags:a}=r.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,...a}}:s)},setTabsFlags(e,r){const{tabs:t,flags:a}=r.payload;e.tabs=e.tabs.map(s=>t.includes(s.path)?{...s,flags:{...s.flags,...a}}:s)},setTabExtra(e,r){const{path:t,extra:a,flags:s}=r.payload;e.tabs=e.tabs.map(i=>i.path===t?{...i,extra:{...i.extra,...a},flags:s?{...i.flags,...s}:i.flags}:i)},addWebFormStyles(e,r){const{path:t,styles:a=[]}=r.payload,s=e.tabs.find(i=>i.path===t);if(s){const i=s.content.metadata.styles.map(({name:l})=>l),c=a.filter(({name:l})=>!i.includes(l));s.content.metadata.styles=[...s.content.metadata.styles,...c].map(({scope:l,...d})=>({...d}))}},changeTabEditor(e,r){return e.tabs=e.tabs.map(t=>t.path===r.payload.path?r.payload:t),e}},extraReducers:e=>{e.addCase(fc,(r,t)=>{if(t.payload.settingsKey==="studio.enablePreview"&&t.payload.value===!1){const a=r.tabs.find(({flags:{confirmed:s}})=>s===!1);a&&Ua.caseReducers.setTabFlags(r,{type:"",payload:{path:a.path,flags:{confirmed:!0}}})}}),e.addCase(ev.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(
|
|
101
|
+
`)}}),e.addCase(Xn.pending,(r,t)=>{const{tab:a}=t.meta.arg;switch(a.type){case b.FileFolderType.CLASS:case b.FileFolderType.METHOD:b.lspSubject.next({action:b.LspActions.WILL_SAVE,payload:{filePath:a.path}});break}}),e.addCase(Xn.fulfilled,(r,t)=>{if(!t.payload)return;const a=r.tabs.find(({path:s})=>{var i;return s===((i=t.payload)==null?void 0:i.path)});if(a){switch(a.content=t.payload.content,a.date=t.payload.date,a.initialContent=t.payload.initialContent,a.flags.touched=!1,a.flags.confirmed=!0,a.flags.old=!1,a.type){case b.FileFolderType.CLASS:case b.FileFolderType.METHOD:b.lspSubject.next({action:b.LspActions.DID_SAVE,payload:{filePath:a.path,content:a.content}});break}t.payload.errors.length>0&&b.toastSubject.next({kind:"error",message:t.payload.errors})}}),e.addCase(Xn.rejected,(r,t)=>{b.toastSubject.next({kind:"danger",message:"Cannot save file"})}),e.addCase(rv.fulfilled,(r,t)=>{const a=[...t.payload.files];r.tabs=r.tabs.map(s=>{if([b.FileFolderType.CLASS,b.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(vc.pending,(r,t)=>{r.tabs=r.tabs.map(a=>a.path===t.meta.arg.path?{...a,flags:{...a.flags,loading:!0}}:a)}),e.addCase(vc.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===b.FileFolderType.METHOD?(c.attributes=b.parseAttributes(a.content),a.content=b.addAttributesToContent(a.content,{})):i.type===b.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(tv.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(Jn.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(gc.pending,(r,t)=>{const a=t.meta.arg,s=`${a.path}${a.ext?`.${a.ext}`:""}`;switch(a.ext){case"4dm":case"4qs":b.lspSubject.next({action:b.LspActions.WILL_DELETE,payload:{filePath:s}});break}}),e.addCase(gc.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":b.lspSubject.next({action:b.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($a.fulfilled,(r,t)=>{const{draggedNode:a,newLocation:s}=t.meta.arg;if(r.tabs.find(i=>i.path===`${a.path}${a.ext?`.${a.ext}`:""}`))return r.tabs=r.tabs.map(i=>i.path===`${a.path}${a.ext?`.${a.ext}`:""}`?{...i,path:`${s.path}/${a.name}.${a.ext}`}:i),r.recent=r.recent.map(i=>i.path===`${a.path}${a.ext?`.${a.ext}`:""}`?{...i,path:`${s.path}/${a.name}.${a.ext}`}:i),r.activeTab=`${s.path}/${a.name}.${a.ext}`,r}),e.addCase(Ts.fulfilled,(r,t)=>{const a=r.tabs.find(s=>s.path===t.payload.path);a&&(a.flags.touched=!1,a.flags.confirmed=!0,a.date=t.payload.date,a.content=t.payload.content,a.initialContent=t.payload.content)}),e.addCase(nv.fulfilled,(r,t)=>{var i;if(!((i=t.payload)!=null&&i.path))return;const a=r.tabs.find(b.by("path",t.payload.path));if(!a)return;a.content=a.content+`
|
|
102
102
|
|
|
103
103
|
exposed Function ${t.meta.arg.name}()
|
|
104
|
-
`,a.flags={...a.flags,touched:!0};const s=a.content.split(`
|
|
105
|
-
`);a.extra={...a.extra,editor:
|
|
104
|
+
`,a.flags={...a.flags,touched:!0,confirmed:!0};const s=a.content.split(`
|
|
105
|
+
`);a.extra={...a.extra,editor:b.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(b.by("path",a));!s||!s.content||!s.content.metadata||(Object.assign(s.content.metadata,{datasources:t.payload.datasources}),s.flags.touched=!0,s.flags.confirmed=!0)}),e.addCase(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(iv.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=>Uu(r,!1)),e.addMatcher(hr(fc),(r,t)=>{["project"].includes(t.payload.path)&&Uu(r,!0)}),e.addMatcher(hr(zs),(r,t)=>{Uu(r,!1)}),e.addMatcher(hr(Iv,Dt),(r,t)=>{const{payload:a}=t;let s;typeof a=="string"?s=r.tabs.find(({path:i})=>a===i):s=a,s&&(r.recent=[s,...r.recent.filter(({path:i})=>![s.path,"settings"].includes(i))])}),e.addMatcher(hr(qg,Gg),(r,t)=>{r.tabs=r.tabs.map(a=>a.path===b.ROLES_TAB_PATH?{...a,flags:{...a.flags,confirmed:!0,touched:!0}}:a)}),e.addMatcher(hr(Vc),(r,t)=>{r.tabs=r.tabs.map(a=>a.path===b.ROLES_TAB_PATH?{...a,flags:{...a.flags,touched:!1}}:a)}),e.addMatcher(hr(nl.fulfilled,al.fulfilled,Na.fulfilled,Zn.fulfilled),(r,t)=>{var s,i,c;const a=r.tabs.find(b.by("path",((s=t.payload)==null?void 0:s.path)||t.meta.arg.path));!a||(i=t.payload)!=null&&i.namespace||(a.flags.touched=!0,a.flags.confirmed=!0,Object.assign(a.content,{metadata:{...a.content.metadata,datasources:(c=t.payload)==null?void 0:c.list}}))}),e.addMatcher(hr(Na.fulfilled,Zn.fulfilled),(r,t)=>{var l;const a=r.tabs.find(b.by("path",((l=t.payload)==null?void 0:l.path)||t.meta.arg.path));if(!a)return;const{panel:s}=a.view,i=b.getDatasourceId({id:t.meta.arg.id,namespace:t.meta.arg.namespace});if(s.type==="datasource"&&s.current===i)switch(t.type){case Na.fulfilled.type:Object.assign(a.view.panel,{type:"component",current:SR});break;case Zn.fulfilled.type:const d=b.getDatasourceId({id:t.meta.arg.new_name,namespace:t.meta.arg.namespace});Object.assign(a.view.panel,{type:"datasource",current:d});break}})}}),{setTabs:_I,closeTab:ol,setContent:Cv,setTabFlags:Rv,setTabsFlags:EI,setTabExtra:SI,closeAllTabs:Ov,addDataSource:wI,closeRightTabs:Av,closeOthers:Pv,closeLeftTabs:Dv,closeSavedTabs:TI,setDataSources:xI,removeDataSource:CI,confirmTab:RI,selectTab:Iv,selectTabByReference:Dt,openTabUnselected:Fv,addWebFormStyles:OI,changeTabEditor:AI,openSettingsTab:PI,setPanelState:DI}=Ua.actions,$v=Ua.reducer,II=av.reducer,On=Q("catalog/fetchCatalog",async(e,{rejectWithValue:r})=>{var t;try{const a=await b.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")}}),FI=or({name:"catalog",initialState:{state:"loading"},reducers:{},extraReducers(e){e.addCase(On.pending,r=>({state:"loading"})).addCase(On.fulfilled,(r,{payload:t})=>({state:"loaded",model:t})).addCase(On.rejected,(r,t)=>({state:"error",error:t.payload||"Error while loading the catalog"}))}}),$I=FI.reducer,MI=Mg.reducer,as=Q("shared_datasources/fetchSharedSources",async(e,{rejectWithValue:r})=>{try{return await b.getSharedDatasources()}catch{return r("Error while loading the shared datasources")}}),Mv=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 b.setSharedSources(a.sources),a.sources}catch{return r("Error while saving the shared datasources")}}),Nv=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 b.setSharedSources(a.sources),a.sources}catch{return r("Error while saving the shared datasources")}}),Lv=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 b.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 b.setSharedSources(a.sources),a.sources}catch{return r("Error while saving the shared datasources")}}),NI=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})),_=He.flatten(He.values(l.sources)).map(I=>g(I,()=>{p.shared=!0}));p.local&&i(Cv({path:e,content:m,contentPath:"metadata.datasources"})),p.shared&&i(sl(_))}),kv=or({name:"shared-datasources",initialState:{},reducers:{addEmptyNamespace(e,r){e.sources[r.payload.name]=[]}},extraReducers(e){e.addCase(as.pending,r=>({state:"loading",sources:{}})).addCase(as.fulfilled,(r,t)=>({state:"loaded",sources:t.payload})).addCase(as.rejected,(r,t)=>({state:"error",sources:{},error:t.payload||"Error while loading the shared datasources"})).addCase(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(Mv.fulfilled,(r,t)=>({...r,sources:t.payload})).addCase(Lv.fulfilled,(r,t)=>({...r,sources:t.payload})).addCase(Nv.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(hr(nl.fulfilled,Na.fulfilled,al.fulfilled,Zn.fulfilled),(r,t)=>{if(!t.payload)return;const{namespace:a,list:s}=t.payload;a&&Object.assign(r.sources,{[a]:s})})}}),{addEmptyNamespace:LI}=kv.actions,kI=kv.reducer,jI=Vg.reducer,os=Q("shared_css/fetchSharedCSS",async(e,{rejectWithValue:r})=>{try{const{classes:t}=await b.getSharedCSS();return t}catch{return r("Error while loading the shared CSS")}}),BI=b.queue();async function WI(e){const r={verb:b.DesignerRequestVerb.SET_FILE_CONTENT,asText:!1,name:"shared_css.json",path:"",root:"shared",content:{classes:e.map(({scope:t,...a})=>({...a}))}};await BI(()=>b.http(b.API_PREFIX,{method:"POST",body:JSON.stringify(r),headers:new Headers({"Content-Type":"application/json"})}))}const jv=or({name:"shared-css",initialState:()=>{const{sharedCSS:e}=ea();return e||{state:"loading",styles:[]}},reducers:{updateSharedCss:(e,r)=>(e.styles=r.payload.classes,WI(r.payload.classes),e),initSharedCss:(e,r)=>(e.styles=r.payload.classes,e)},extraReducers(e){e.addCase(os.pending,r=>({...r,state:"loading"})).addCase(os.fulfilled,(r,{payload:t})=>({state:"loaded",styles:t})).addCase(os.rejected,(r,t)=>({...r,state:"error",error:t.payload||"Error while loading the shared css"}))}}),{updateSharedCss:UI,initSharedCss:HI}=jv.actions,GI=jv.reducer,qI={},zI=or({name:"tabs",initialState:qI,reducers:{}}),YI=e=>G(sa,r=>{var t,a;return(a=(t=r.find(s=>s.path===e))==null?void 0:t.view)==null?void 0:a.panel});zI.reducer;const Bv=th({root:$v,explorer:jI,debugger:II,settings:JP,catalog:$I,roles:zP,sharedDatasources:kI,webforms:pI,modals:MI,sharedCSS:GI,model:iI});let Oa;const Wv=()=>(Oa||(Oa=Y1({reducer:Bv}),Oa.subscribe(sT(()=>{const{root:{activeTab:e,tabs:r,recent:t},roles:a,debugger:s,webforms:i,sharedCSS:c,settings:{session:l}}=Oa.getState();Eh({...l}),_h({tabs:r,activeTab:e,recent:t,roles:a,debugger:s,webforms:i,sharedCSS:c})},1e3))),Oa);var mc={exports:{}},Yn={};/** @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 VI(){if(Vp)return Yn;Vp=1,Fc();var e=Ke,r=60103;if(Yn.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var t=Symbol.for;r=t("react.element"),Yn.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={},_=null,E=null;p!==void 0&&(_=""+p),d.key!==void 0&&(_=""+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:_,ref:E,props:m,_owner:a.current}}return Yn.jsx=c,Yn.jsxs=c,Yn}var Hu={};/** @license React v17.0.2
|
|
113
113
|
* react-jsx-runtime.development.js
|
|
114
114
|
*
|
|
115
115
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
116
116
|
*
|
|
117
117
|
* This source code is licensed under the MIT license found in the
|
|
118
118
|
* LICENSE file in the root directory of this source tree.
|
|
119
|
-
*/var
|
|
119
|
+
*/var Kp;function KI(){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,_=60115,E=60116,x=60121,C=60122,I=60117,P=60129,j=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"),_=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"),j=M("react.legacy_hidden")}var k=typeof Symbol=="function"&&Symbol.iterator,O="@@iterator";function Y(w){if(w===null||typeof w!="object")return null;var U=k&&w[k]||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===j||We||typeof w=="object"&&w!==null&&(w.$$typeof===E||w.$$typeof===_||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 _: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,Ge,nt,Yt,W,q,de;function le(){}le.__reactDisabledLog=!0;function se(){{if(ut===0){et=console.log,Ge=console.info,nt=console.warn,Yt=console.error,W=console.group,q=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:Ge}),warn:t({},w,{value:nt}),error:t({},w,{value:Yt}),group:t({},w,{value:W}),groupCollapsed:t({},w,{value:q}),groupEnd:t({},w,{value:de})})}ut<0&&z("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ne=H.ReactCurrentDispatcher,ce;function ue(w,U,J){{if(ce===void 0)try{throw Error()}catch(Ne){var ie=Ne.stack.trim().match(/\n( *(at )?)/);ce=ie&&ie[1]||""}return`
|
|
120
120
|
`+ce+w}}var he=!1,ge;{var K=typeof WeakMap=="function"?WeakMap:Map;ge=new K}function F(w,U){if(!w||he)return"";{var J=ge.get(w);if(J!==void 0)return J}var ie;he=!0;var Ne=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Le;Le=ne.current,ne.current=null,se();try{if(U){var xe=function(){throw Error()};if(Object.defineProperty(xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xe,[])}catch(ur){ie=ur}Reflect.construct(w,[],xe)}else{try{xe.call()}catch(ur){ie=ur}w.call(xe.prototype)}}else{try{throw Error()}catch(ur){ie=ur}w()}}catch(ur){if(ur&&ie&&typeof ur.stack=="string"){for(var Ee=ur.stack.split(`
|
|
121
121
|
`),ht=ie.stack.split(`
|
|
122
122
|
`),Ze=Ee.length-1,tt=ht.length-1;Ze>=1&&tt>=0&&Ee[Ze]!==ht[tt];)tt--;for(;Ze>=1&&tt>=0;Ze--,tt--)if(Ee[Ze]!==ht[tt]){if(Ze!==1||tt!==1)do if(Ze--,tt--,tt<0||Ee[Ze]!==ht[tt]){var Kt=`
|
|
123
|
-
`+Ee[Ze].replace(" at new "," at ");return typeof w=="function"&&ge.set(w,Kt),Kt}while(Ze>=1&&tt>=0);break}}}finally{he=!1,ne.current=Le,fe(),Error.prepareStackTrace=Ne}var zr=w?w.displayName||w.name:"",ro=zr?ue(zr):"";return typeof w=="function"&&ge.set(w,ro),ro}function Ye(w,U,J){return F(w,!1)}function qe(w){var U=w.prototype;return!!(U&&U.isReactComponent)}function yt(w,U,J){if(w==null)return"";if(typeof w=="function")return F(w,qe(w));if(typeof w=="string")return ue(w);switch(w){case g:return ue("Suspense");case m:return ue("SuspenseList")}if(typeof w=="object")switch(w.$$typeof){case p:return Ye(w.render);case
|
|
123
|
+
`+Ee[Ze].replace(" at new "," at ");return typeof w=="function"&&ge.set(w,Kt),Kt}while(Ze>=1&&tt>=0);break}}}finally{he=!1,ne.current=Le,fe(),Error.prepareStackTrace=Ne}var zr=w?w.displayName||w.name:"",ro=zr?ue(zr):"";return typeof w=="function"&&ge.set(w,ro),ro}function Ye(w,U,J){return F(w,!1)}function qe(w){var U=w.prototype;return!!(U&&U.isReactComponent)}function yt(w,U,J){if(w==null)return"";if(typeof w=="function")return F(w,qe(w));if(typeof w=="string")return ue(w);switch(w){case g:return ue("Suspense");case m:return ue("SuspenseList")}if(typeof w=="object")switch(w.$$typeof){case p:return Ye(w.render);case _:return yt(w.type,U,J);case x:return Ye(w._render);case E:{var ie=w,Ne=ie._payload,Le=ie._init;try{return yt(Le(Ne),U,J)}catch{}}}return""}var Va={},Vt=H.ReactDebugCurrentFrame;function cn(w){if(w){var U=w._owner,J=yt(w.type,w._source,U?U.type:null);Vt.setExtraStackFrame(J)}else Vt.setExtraStackFrame(null)}function Vs(w,U,J,ie,Ne){{var Le=Function.call.bind(Object.prototype.hasOwnProperty);for(var xe in w)if(Le(w,xe)){var Ee=void 0;try{if(typeof w[xe]!="function"){var ht=Error((ie||"React class")+": "+J+" type `"+xe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof w[xe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ht.name="Invariant Violation",ht}Ee=w[xe](U,xe,ie,J,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ze){Ee=Ze}Ee&&!(Ee instanceof Error)&&(cn(Ne),z("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ie||"React class",J,xe,typeof Ee),cn(null)),Ee instanceof Error&&!(Ee.message in Va)&&(Va[Ee.message]=!0,cn(Ne),z("Failed %s type: %s",J,Ee.message),cn(null))}}}var ir=H.ReactCurrentOwner,Ct=Object.prototype.hasOwnProperty,ln={key:!0,ref:!0,__self:!0,__source:!0},fn,Ka,xr;xr={};function Ks(w){if(Ct.call(w,"ref")){var U=Object.getOwnPropertyDescriptor(w,"ref").get;if(U&&U.isReactWarning)return!1}return w.ref!==void 0}function dn(w){if(Ct.call(w,"key")){var U=Object.getOwnPropertyDescriptor(w,"key").get;if(U&&U.isReactWarning)return!1}return w.key!==void 0}function qr(w,U){if(typeof w.ref=="string"&&ir.current&&U&&ir.current.stateNode!==U){var J=Pe(ir.current.type);xr[J]||(z('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Pe(ir.current.type),w.ref),xr[J]=!0)}}function ia(w,U){{var J=function(){fn||(fn=!0,z("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",U))};J.isReactWarning=!0,Object.defineProperty(w,"key",{get:J,configurable:!0})}}function ua(w,U){{var J=function(){Ka||(Ka=!0,z("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",U))};J.isReactWarning=!0,Object.defineProperty(w,"ref",{get:J,configurable:!0})}}var ca=function(w,U,J,ie,Ne,Le,xe){var Ee={$$typeof:a,type:w,key:U,ref:J,props:xe,_owner:Le};return Ee._store={},Object.defineProperty(Ee._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ee,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ie}),Object.defineProperty(Ee,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ne}),Object.freeze&&(Object.freeze(Ee.props),Object.freeze(Ee)),Ee};function la(w,U,J,ie,Ne){{var Le,xe={},Ee=null,ht=null;J!==void 0&&(Ee=""+J),dn(U)&&(Ee=""+U.key),Ks(U)&&(ht=U.ref,qr(U,Ne));for(Le in U)Ct.call(U,Le)&&!ln.hasOwnProperty(Le)&&(xe[Le]=U[Le]);if(w&&w.defaultProps){var Ze=w.defaultProps;for(Le in Ze)xe[Le]===void 0&&(xe[Le]=Ze[Le])}if(Ee||ht){var tt=typeof w=="function"?w.displayName||w.name||"Unknown":w;Ee&&ia(xe,tt),ht&&ua(xe,tt)}return ca(w,Ee,ht,Ne,ie,ir.current,xe)}}var pn=H.ReactCurrentOwner,Pn=H.ReactDebugCurrentFrame;function mr(w){if(w){var U=w._owner,J=yt(w.type,w._source,U?U.type:null);Pn.setExtraStackFrame(J)}else Pn.setExtraStackFrame(null)}var hn;hn=!1;function gn(w){return typeof w=="object"&&w!==null&&w.$$typeof===a}function Ja(){{if(pn.current){var w=Pe(pn.current.type);if(w)return`
|
|
124
124
|
|
|
125
125
|
Check the render method of \``+w+"`."}return""}}function Js(w){{if(w!==void 0){var U=w.fileName.replace(/^.*[\\\/]/,""),J=w.lineNumber;return`
|
|
126
126
|
|
|
127
127
|
Check your code at `+U+":"+J+"."}return""}}var Xa={};function Za(w){{var U=Ja();if(!U){var J=typeof w=="string"?w:w.displayName||w.name;J&&(U=`
|
|
128
128
|
|
|
129
|
-
Check the top-level render call using <`+J+">.")}return U}}function da(w,U){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var J=Za(U);if(Xa[J])return;Xa[J]=!0;var ie="";w&&w._owner&&w._owner!==hn.current&&(ie=" It was passed a child from "+Pe(w._owner.type)+"."),mr(w),z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',J,ie),mr(null)}}function Qa(w,U){{if(typeof w!="object")return;if(Array.isArray(w))for(var J=0;J<w.length;J++){var ie=w[J];vn(ie)&&da(ie,U)}else if(vn(w))w._store&&(w._store.validated=!0);else if(w){var Ne=Y(w);if(typeof Ne=="function"&&Ne!==w.entries)for(var Le=Ne.call(w),xe;!(xe=Le.next()).done;)vn(xe.value)&&da(xe.value,U)}}}function Xs(w){{var U=w.type;if(U==null||typeof U=="string")return;var J;if(typeof U=="function")J=U.propTypes;else if(typeof U=="object"&&(U.$$typeof===p||U.$$typeof===b))J=U.propTypes;else return;if(J){var ie=Pe(U);Vs(J,w.props,"prop",ie,w)}else if(U.PropTypes!==void 0&&!gn){gn=!0;var Ne=Pe(U);z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ne||"Unknown")}typeof U.getDefaultProps=="function"&&!U.getDefaultProps.isReactClassApproved&&z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Zs(w){{for(var U=Object.keys(w.props),J=0;J<U.length;J++){var ie=U[J];if(ie!=="children"&&ie!=="key"){mr(w),z("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ie),mr(null);break}}w.ref!==null&&(mr(w),z("Invalid attribute `ref` supplied to `React.Fragment`."),mr(null))}}function eo(w,U,J,ie,Ne,Le){{var xe=Te(w);if(!xe){var Ee="";(w===void 0||typeof w=="object"&&w!==null&&Object.keys(w).length===0)&&(Ee+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ht=Js(Ne);ht?Ee+=ht:Ee+=Ja();var Ze;w===null?Ze="null":Array.isArray(w)?Ze="array":w!==void 0&&w.$$typeof===a?(Ze="<"+(Pe(w.type)||"Unknown")+" />",Ee=" Did you accidentally export a JSX literal instead of a component?"):Ze=typeof w,z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ze,Ee)}var tt=fa(w,U,J,Ne,Le);if(tt==null)return tt;if(xe){var Kt=U.children;if(Kt!==void 0)if(ie)if(Array.isArray(Kt)){for(var zr=0;zr<Kt.length;zr++)Qa(Kt[zr],w);Object.freeze&&Object.freeze(Kt)}else z("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Qa(Kt,w)}return w===e.Fragment?Zs(tt):Xs(tt),tt}}function to(w,U,J){return eo(w,U,J,!0)}function Qs(w,U,J){return eo(w,U,J,!1)}var ei=Qs,ti=to;e.jsx=ei,e.jsxs=ti}()}(Hu)),Hu}process.env.NODE_ENV==="production"?vc.exports=YI():vc.exports=VI();var KI=vc.exports;const JI=({children:e,store:r})=>KI.jsx(ng,{store:r,children:e});exports.CATALOG_REFRESH_DELAY=As;exports.DEFAULT_CACHE=Oc;exports.EAttributeKind=Lr;exports.EAttributeTypes=Zc;exports.EDebuggerErrorReason=gh;exports.EDebuggerErrorType=ds;exports.EDebuggerState=Mr;exports.EDisplayMode=kc;exports.EPermissionType=Ae;exports.ETooltipBehavior=jc;exports.ExpressionIndex=hh;exports.FLAGS_INIT_STATE=bv;exports.FLAGS_KEYS=Ua;exports.ModalCloseReason=Hc;exports.ModalColor=Tr;exports.ModalIcons=qP;exports.ModalType=jt;exports.ReduxProvider=JI;exports.SETTINGS_TAB_PATH=cn;exports.THEME_CLASSES=bg;exports.WT_FLAGS_KEYS=yv;exports.actionsToPrivs=Pg;exports.addAttribute=dv;exports.addBreakpointDecoration=_D;exports.addComponent=Ev;exports.addCraftedComponent=vI;exports.addDataSource=wI;exports.addDataclass=cv;exports.addDatasource=tl;exports.addEmptyNamespace=NI;exports.addExpression=xD;exports.addIn=bP;exports.addNewFile=Jg;exports.addPermission=xP;exports.addSession=ID;exports.addSharedSource=Nv;exports.addWebFormStyles=RI;exports.allowed=mP;exports.attributeKinds=WD;exports.attributeScopes=GD;exports.attributeTypes=HD;exports.castToFileFolder=nD;exports.changeTabEditor=OI;exports.children=Es;exports.clearBreakpoints=wD;exports.closeAllTabs=Av;exports.closeLeftTabs=Iv;exports.closeModal=NP;exports.closeOthers=Dv;exports.closeRightTabs=Pv;exports.closeSavedTabs=TI;exports.closeTab=al;exports.create=Ag;exports.createModal=Ng;exports.createModelFiles=pc;exports.createNewFile=Jn;exports.createNewFileAndOpen=uD;exports.createNewNode=ts;exports.createRole=FP;exports.createWithResource=EP;exports.dataclassScopes=qD;exports.deleteDatasource=La;exports.deleteFile=hc;exports.deleteFolder=cD;exports.deleteSharedSource=jv;exports.deserializeModel=Sh;exports.duplicateNode=rs;exports.editAttributeProperty=YD;exports.editComponent=Sv;exports.editCraftedComponent=mI;exports.editDataSource=Jc;exports.editDataclassPrimaryKey=gv;exports.editDataclassProperty=VD;exports.editDatasource=rl;exports.editModal=LP;exports.editRole=IP;exports.editSharedSource=Lv;exports.editors=Uh;exports.executeMethod=fD;exports.expandFolder=QP;exports.extensions=Hh;exports.fetchAppSettings=zg;exports.fetchCatalog=An;exports.fetchChanges=nv;exports.fetchCraftedComponents=Cv;exports.fetchFiles=dD;exports.fetchFolderContent=Sr;exports.fetchFolderContentWithoutExpanding=Fa;exports.fetchModel=Qc;exports.fetchRoles=Ss;exports.fetchRolesChanges=Ug;exports.fetchSettings=Yc;exports.fetchSharedCss=os;exports.fetchSharedDatasources=as;exports.fetchTemplate=gI;exports.fetchTemplates=hI;exports.findNodeByPath=ft;exports.findOne=On;exports.findSession=st;exports.findSessionByPath=pg;exports.getCachedState=ta;exports.getCashedPrefrences=Eh;exports.getDebuggerTabName=Ah;exports.getDebuggerTabPath=Pc;exports.getDefaultContent=Xg;exports.getDefaultName=ns;exports.getDictByName=Ig;exports.getEditors=gr;exports.getExtension=Gh;exports.getFilePath=ev;exports.getFileType=Qg;exports.getFilenameFromType=Zg;exports.getGraphData=TP;exports.getInheritedResources=$g;exports.getModalTitle=Ps;exports.getNodeRelativePath=qh;exports.getPrivilegeById=qr;exports.getPromotions=AP;exports.getResourceFromType=Uc;exports.getStore=Uv;exports.indexTypes=zD;exports.initSharedCss=UI;exports.injectContentAtLine=tv;exports.inspect=cI;exports.isJSON=wh;exports.isRelatedAttr=JD;exports.isRelatedEntitiesAttr=ws;exports.isRelatedEntityAttr=Na;exports.isRenameDatasource=bI;exports.isRolesOutdated=qc;exports.isValidPrimaryKey=BD;exports.modelSubject=Zh;exports.openAddFileInput=eD;exports.openFile=$a;exports.openFileAtLine=Vc;exports.openFileAtSelection=rv;exports.openModal=sr;exports.openModel=XD;exports.openRoles=bD;exports.openSettingsTab=AI;exports.openTabUnselected=$v;exports.parents=Us;exports.populateShallow=wP;exports.primaryKeyAttributes=UD;exports.refreshFile=tD;exports.reloadTab=gc;exports.relocateNode=Ma;exports.remove=yP;exports.removeAllExpressions=OD;exports.removeAttribute=pv;exports.removeBreakpointDecoration=ED;exports.removeComponent=wv;exports.removeCraftedComponent=yI;exports.removeDataSource=CI;exports.removeDataclass=fv;exports.removeDebuggerSessionsNotIn=uv;exports.removeExpression=RD;exports.removeFile=dc;exports.removeFileNode=lD;exports.removeFrom=_P;exports.removeModal=Lg;exports.removePermission=CP;exports.removeRole=DP;exports.removeSession=$D;exports.removeSessionByIndex=MD;exports.rename=SP;exports.renameAttribute=hv;exports.renameCollection=vv;exports.renameDataSource=Kc;exports.renameDataclass=lv;exports.renameDatasource=Qn;exports.renameExpression=CD;exports.renameFile=Xn;exports.resetResources=RP;exports.rootReducer=Mv;exports.sanitize=Hs;exports.sanitizePermissions=Dg;exports.sanitizePrivileges=Rg;exports.saveAll=pD;exports.saveExpressions=DD;exports.saveModel=Ts;exports.savePrefrences=_h;exports.saveRole=$P;exports.saveRoles=lc;exports.saveState=bh;exports.saveTab=Zn;exports.selectActiveLine=qO;exports.selectActiveTab=nA;exports.selectAllDatasourcesByPath=NO;exports.selectAppState=lg;exports.selectBreakpoints=kO;exports.selectCSSClassesByPath=DA;exports.selectCallChainVariables=QO;exports.selectCatalog=$c;exports.selectCatalogMethods=PO;exports.selectCatalogState=OO;exports.selectClassBreakpoints=WO;exports.selectClassOffset=tA;exports.selectClasses=vA;exports.selectClassesFolder=mg;exports.selectComponents=Eg;exports.selectComponentsByPath=$O;exports.selectContentByPath=hg;exports.selectCraftedComponent=LA;exports.selectCurrentFrameByThreadId=JO;exports.selectCurrentTab=oA;exports.selectDataclasses=AO;exports.selectDatasource=MO;exports.selectDatasourcesByPath=fg;exports.selectDatasourcesTheme=kA;exports.selectDebuggerChannels=XO;exports.selectDebuggerData=Pn;exports.selectDebuggerMeta=LO;exports.selectDebuggerSessions=It;exports.selectDebuggerSessionsCount=jO;exports.selectDebuggers=dA;exports.selectDraftBreakpoints=BO;exports.selectDraftClassBreakpoints=UO;exports.selectExceptions=rA;exports.selectExplorer=pA;exports.selectExpressions=GO;exports.selectExpressionsVariables=eA;exports.selectFlagsByPath=FA;exports.selectGuestPrivilege=EA;exports.selectHasTabs=uA;exports.selectHighlightedLines=HO;exports.selectInspectedCSSClass=$A;exports.selectInspectedDatasource=MA;exports.selectInspector=js;exports.selectInspectorStateByType=jA;exports.selectIsLoaded=BA;exports.selectMethods=hA;exports.selectMethodsFolder=vg;exports.selectModals=mA;exports.selectMonacoZoom=AA;exports.selectPanelByPath=zI;exports.selectPreferences=CA;exports.selectPreviewedWebformsPaths=iA;exports.selectPrivileges=_A;exports.selectProjectSettings=xA;exports.selectQodly=OA;exports.selectRecentFiles=aA;exports.selectRemoteDebuggerMode=RA;exports.selectRoles=bA;exports.selectRolesAndPrivileges=yA;exports.selectRolesDate=TA;exports.selectRolesFlags=SA;exports.selectRoot=Hr;exports.selectSelectedTab=wA;exports.selectServerSettings=Nc;exports.selectSessionSettings=yg;exports.selectSharedCSS=IA;exports.selectSharedDatasources=dg;exports.selectSourceByPath=YO;exports.selectSourceByThreadId=KO;exports.selectStackFrames=ZO;exports.selectStoppedFromDebugSession=zO;exports.selectStylesByPath=PA;exports.selectTab=Fv;exports.selectTabByPath=Ga;exports.selectTabByReference=Dt;exports.selectTabExtraByPath=cA;exports.selectTabMaxWeight=sA;exports.selectTabs=ia;exports.selectTemplates=Sg;exports.selectTemplatesData=NA;exports.selectThreadIdByPath=VO;exports.selectTouchedTabs=Mc;exports.selectTouchedTabsLength=fA;exports.selectWebForms=gA;exports.selectWebFormsFolder=gg;exports.selectWebformNodes=lA;exports.selectWebformStylesByPath=Lc;exports.selectWebforms=za;exports.serializeModel=KD;exports.setActiveLine=TD;exports.setBreakpointsDecoration=SD;exports.setCallChainVariables=ND;exports.setContent=Rv;exports.setDataSources=xI;exports.setDatasourceEvents=MI;exports.setDatasourcesTheme=fI;exports.setDebuggerMeta=kD;exports.setExpression=AD;exports.setExpressionVariables=LD;exports.setFolderChildren=rD;exports.setModelFlag=eI;exports.setPanelState=PI;exports.setRolesContent=Gc;exports.setSelectedGroup=lI;exports.setSessions=sv;exports.setSetting=Vg;exports.setSettings=zs;exports.setSettingsAsText=KP;exports.setSourceContent=jD;exports.setTabExtra=SI;exports.setTabFlags=Ov;exports.setTabs=_I;exports.setTabsFlags=EI;exports.setTemplateData=xv;exports.setTemplatesData=Tv;exports.setWebformsFlag=dI;exports.sort=Og;exports.stateReducer=Wv;exports.stateSlice=nl;exports.toAPI=qs;exports.toState=PP;exports.toggleExpandFolder=ZP;exports.toggleInspector=uI;exports.togglePermission=OP;exports.togglePrivilegePermission=Fg;exports.toggleTab=GP;exports.tryCloseAllTabs=gD;exports.tryCloseLeftTabs=mD;exports.tryCloseOtherTabs=hD;exports.tryCloseRightTabs=vD;exports.tryCloseTab=Xc;exports.tryEditMethod=aD;exports.tryInjectMethod=av;exports.tryRenameDataclass=ZD;exports.uniquePush=ar;exports.updateExpressionAt=PD;exports.updatePrivileges=qg;exports.updateRoles=Gg;exports.updateRolesAndPrivileges=zc;exports.updateSession=FD;exports.updateSharedCss=WI;exports.updateSharedDatasources=ol;exports.uploadFile=iD;exports.uploadFileAndGetResponse=sD;exports.useAppDispatch=RO;exports.useAppSelector=Ur;exports.useAttribute=aI;exports.useCollections=rI;exports.useDataclass=nI;exports.useDataclasses=tI;exports.useMethod=FO;exports.useMethods=DO;exports.useModelFlags=sI;exports.useModelProperties=oI;exports.wipeDebuggerSessions=iv;
|
|
129
|
+
Check the top-level render call using <`+J+">.")}return U}}function fa(w,U){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var J=Za(U);if(Xa[J])return;Xa[J]=!0;var ie="";w&&w._owner&&w._owner!==pn.current&&(ie=" It was passed a child from "+Pe(w._owner.type)+"."),mr(w),z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',J,ie),mr(null)}}function Qa(w,U){{if(typeof w!="object")return;if(Array.isArray(w))for(var J=0;J<w.length;J++){var ie=w[J];gn(ie)&&fa(ie,U)}else if(gn(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;)gn(xe.value)&&fa(xe.value,U)}}}function Xs(w){{var U=w.type;if(U==null||typeof U=="string")return;var J;if(typeof U=="function")J=U.propTypes;else if(typeof U=="object"&&(U.$$typeof===p||U.$$typeof===_))J=U.propTypes;else return;if(J){var ie=Pe(U);Vs(J,w.props,"prop",ie,w)}else if(U.PropTypes!==void 0&&!hn){hn=!0;var Ne=Pe(U);z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ne||"Unknown")}typeof U.getDefaultProps=="function"&&!U.getDefaultProps.isReactClassApproved&&z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Zs(w){{for(var U=Object.keys(w.props),J=0;J<U.length;J++){var ie=U[J];if(ie!=="children"&&ie!=="key"){mr(w),z("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ie),mr(null);break}}w.ref!==null&&(mr(w),z("Invalid attribute `ref` supplied to `React.Fragment`."),mr(null))}}function eo(w,U,J,ie,Ne,Le){{var xe=Te(w);if(!xe){var Ee="";(w===void 0||typeof w=="object"&&w!==null&&Object.keys(w).length===0)&&(Ee+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ht=Js(Ne);ht?Ee+=ht:Ee+=Ja();var Ze;w===null?Ze="null":Array.isArray(w)?Ze="array":w!==void 0&&w.$$typeof===a?(Ze="<"+(Pe(w.type)||"Unknown")+" />",Ee=" Did you accidentally export a JSX literal instead of a component?"):Ze=typeof w,z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ze,Ee)}var tt=la(w,U,J,Ne,Le);if(tt==null)return tt;if(xe){var Kt=U.children;if(Kt!==void 0)if(ie)if(Array.isArray(Kt)){for(var zr=0;zr<Kt.length;zr++)Qa(Kt[zr],w);Object.freeze&&Object.freeze(Kt)}else z("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Qa(Kt,w)}return w===e.Fragment?Zs(tt):Xs(tt),tt}}function to(w,U,J){return eo(w,U,J,!0)}function Qs(w,U,J){return eo(w,U,J,!1)}var ei=Qs,ti=to;e.jsx=ei,e.jsxs=ti}()}(Hu)),Hu}process.env.NODE_ENV==="production"?mc.exports=VI():mc.exports=KI();var JI=mc.exports;const XI=({children:e,store:r})=>JI.jsx(ag,{store:r,children:e});exports.CATALOG_REFRESH_DELAY=As;exports.DEFAULT_CACHE=Ac;exports.EAttributeKind=Lr;exports.EAttributeTypes=el;exports.EDebuggerErrorReason=vh;exports.EDebuggerErrorType=ds;exports.EDebuggerState=Mr;exports.EDisplayMode=Wc;exports.EPermissionType=Ae;exports.ETooltipBehavior=Bc;exports.ExpressionIndex=gh;exports.FLAGS_INIT_STATE=yv;exports.FLAGS_KEYS=Wa;exports.ModalCloseReason=qc;exports.ModalColor=Tr;exports.ModalIcons=GP;exports.ModalType=kt;exports.ReduxProvider=XI;exports.THEME_CLASSES=bg;exports.WT_FLAGS_KEYS=mv;exports.actionsToPrivs=Pg;exports.addAttribute=fv;exports.addBreakpointDecoration=_D;exports.addComponent=_v;exports.addCraftedComponent=vI;exports.addDataSource=wI;exports.addDataclass=uv;exports.addDatasource=nl;exports.addEmptyNamespace=LI;exports.addExpression=xD;exports.addIn=bP;exports.addNewFile=Kg;exports.addPermission=xP;exports.addSession=ID;exports.addSharedSource=Mv;exports.addWebFormStyles=OI;exports.allowed=mP;exports.attributeKinds=WD;exports.attributeScopes=qD;exports.attributeTypes=HD;exports.castToFileFolder=nD;exports.changeTabEditor=AI;exports.children=Es;exports.clearBreakpoints=wD;exports.closeAllTabs=Ov;exports.closeLeftTabs=Dv;exports.closeModal=NP;exports.closeOthers=Pv;exports.closeRightTabs=Av;exports.closeSavedTabs=TI;exports.closeTab=ol;exports.confirmTab=RI;exports.create=Ag;exports.createModal=Ng;exports.createModelFiles=hc;exports.createNewFile=Kn;exports.createNewFileAndOpen=uD;exports.createNewNode=ts;exports.createRole=FP;exports.createWithResource=EP;exports.dataclassScopes=GD;exports.deleteDatasource=Na;exports.deleteFile=gc;exports.deleteFolder=cD;exports.deleteSharedSource=Lv;exports.deserializeModel=wh;exports.duplicateNode=rs;exports.editAttributeProperty=YD;exports.editComponent=Ev;exports.editCraftedComponent=mI;exports.editDataSource=Zc;exports.editDataclassPrimaryKey=hv;exports.editDataclassProperty=VD;exports.editDatasource=al;exports.editModal=LP;exports.editRole=IP;exports.editSharedSource=Nv;exports.editors=Hh;exports.executeMethod=fD;exports.expandFolder=QP;exports.extensions=Gh;exports.fetchAppSettings=zg;exports.fetchCatalog=On;exports.fetchChanges=rv;exports.fetchCraftedComponents=xv;exports.fetchFiles=dD;exports.fetchFolderContent=Sr;exports.fetchFolderContentWithoutExpanding=Ia;exports.fetchModel=tl;exports.fetchRoles=Ss;exports.fetchRolesChanges=Ug;exports.fetchSettings=Kc;exports.fetchSharedCss=os;exports.fetchSharedDatasources=as;exports.fetchTemplate=gI;exports.fetchTemplates=hI;exports.findNodeByPath=ft;exports.findOne=Rn;exports.findSession=st;exports.findSessionByPath=hg;exports.getCachedState=ea;exports.getCashedPrefrences=Sh;exports.getDebuggerTabName=Ph;exports.getDebuggerTabPath=Dc;exports.getDefaultContent=Jg;exports.getDefaultName=ns;exports.getDictByName=Ig;exports.getEditors=gr;exports.getExtension=zh;exports.getFilePath=Qg;exports.getFileType=Zg;exports.getFilenameFromType=Xg;exports.getGraphData=TP;exports.getInheritedResources=$g;exports.getModalTitle=Ps;exports.getNodeRelativePath=qh;exports.getPrivilegeById=Gr;exports.getPromotions=AP;exports.getResourceFromType=Gc;exports.getStore=Wv;exports.indexTypes=zD;exports.initSharedCss=HI;exports.injectContentAtLine=ev;exports.inspect=cI;exports.isJSON=Th;exports.isRelatedAttr=JD;exports.isRelatedEntitiesAttr=ws;exports.isRelatedEntityAttr=Ma;exports.isRenameDatasource=bI;exports.isRolesOutdated=zc;exports.isValidPrimaryKey=BD;exports.modelSubject=Qh;exports.openAddFileInput=eD;exports.openFile=Fa;exports.openFileAtLine=Jc;exports.openFileAtSelection=tv;exports.openModal=sr;exports.openModel=XD;exports.openRoles=bD;exports.openSettingsTab=PI;exports.openTabUnselected=Fv;exports.parents=Us;exports.populateShallow=wP;exports.primaryKeyAttributes=UD;exports.refreshFile=tD;exports.reloadTab=vc;exports.relocateNode=$a;exports.remove=yP;exports.removeAllExpressions=OD;exports.removeAttribute=dv;exports.removeBreakpointDecoration=ED;exports.removeComponent=Sv;exports.removeCraftedComponent=yI;exports.removeDataSource=CI;exports.removeDataclass=lv;exports.removeDebuggerSessionsNotIn=iv;exports.removeExpression=RD;exports.removeFile=pc;exports.removeFileNode=lD;exports.removeFrom=_P;exports.removeModal=Lg;exports.removePermission=CP;exports.removeRole=DP;exports.removeSession=$D;exports.removeSessionByIndex=MD;exports.rename=SP;exports.renameAttribute=pv;exports.renameCollection=gv;exports.renameDataSource=Xc;exports.renameDataclass=cv;exports.renameDatasource=Zn;exports.renameExpression=CD;exports.renameFile=Jn;exports.resetResources=RP;exports.rootReducer=$v;exports.sanitize=Hs;exports.sanitizePermissions=Dg;exports.sanitizePrivileges=Rg;exports.saveAll=pD;exports.saveExpressions=DD;exports.saveModel=Ts;exports.savePrefrences=Eh;exports.saveRole=$P;exports.saveRoles=lc;exports.saveState=_h;exports.saveTab=Xn;exports.selectActiveLine=HO;exports.selectActiveTab=rA;exports.selectAllDatasourcesByPath=MO;exports.selectAppState=fg;exports.selectBreakpoints=kO;exports.selectCSSClassesByPath=DA;exports.selectCallChainVariables=ZO;exports.selectCatalog=Mc;exports.selectCatalogMethods=AO;exports.selectCatalogState=RO;exports.selectClassBreakpoints=BO;exports.selectClassOffset=eA;exports.selectClasses=gA;exports.selectClassesFolder=yg;exports.selectComponents=Eg;exports.selectComponentsByPath=FO;exports.selectContentByPath=gg;exports.selectCraftedComponent=LA;exports.selectCurrentFrameByThreadId=KO;exports.selectCurrentTab=aA;exports.selectDataclasses=OO;exports.selectDatasource=$O;exports.selectDatasourcesByPath=dg;exports.selectDatasourcesTheme=jA;exports.selectDebuggerChannels=JO;exports.selectDebuggerData=An;exports.selectDebuggerMeta=NO;exports.selectDebuggerSessions=It;exports.selectDebuggerSessionsCount=LO;exports.selectDebuggers=fA;exports.selectDraftBreakpoints=jO;exports.selectDraftClassBreakpoints=WO;exports.selectExceptions=tA;exports.selectExplorer=dA;exports.selectExpressions=GO;exports.selectExpressionsVariables=QO;exports.selectFlagsByPath=FA;exports.selectGuestPrivilege=_A;exports.selectHasTabs=iA;exports.selectHighlightedLines=UO;exports.selectInspectedCSSClass=$A;exports.selectInspectedDatasource=MA;exports.selectInspector=ks;exports.selectInspectorStateByType=kA;exports.selectIsLoaded=BA;exports.selectMethods=pA;exports.selectMethodsFolder=mg;exports.selectModals=vA;exports.selectMonacoZoom=AA;exports.selectPanelByPath=YI;exports.selectPartialSessionSettings=TA;exports.selectPreferences=CA;exports.selectPreviewedWebformsPaths=sA;exports.selectPrivileges=bA;exports.selectProjectSettings=xA;exports.selectQodly=OA;exports.selectRecentFiles=nA;exports.selectRemoteDebuggerMode=RA;exports.selectRoles=yA;exports.selectRolesAndPrivileges=mA;exports.selectRolesDate=wA;exports.selectRolesFlags=EA;exports.selectRoot=Hr;exports.selectSelectedTab=SA;exports.selectServerSettings=kc;exports.selectSessionSettings=Lc;exports.selectSharedCSS=IA;exports.selectSharedDatasources=pg;exports.selectSourceByPath=zO;exports.selectSourceByThreadId=VO;exports.selectStackFrames=XO;exports.selectStoppedFromDebugSession=qO;exports.selectStylesByPath=PA;exports.selectTab=Iv;exports.selectTabByPath=qa;exports.selectTabByReference=Dt;exports.selectTabExtraByPath=uA;exports.selectTabMaxWeight=oA;exports.selectTabs=sa;exports.selectTemplates=Sg;exports.selectTemplatesData=NA;exports.selectThreadIdByPath=YO;exports.selectTouchedTabs=Nc;exports.selectTouchedTabsLength=lA;exports.selectWebForms=hA;exports.selectWebFormsFolder=vg;exports.selectWebformNodes=cA;exports.selectWebformStylesByPath=jc;exports.selectWebforms=za;exports.serializeModel=KD;exports.setActiveLine=TD;exports.setBreakpointsDecoration=SD;exports.setCallChainVariables=ND;exports.setContent=Cv;exports.setDataSources=xI;exports.setDatasourceEvents=NI;exports.setDatasourcesTheme=fI;exports.setDebuggerMeta=jD;exports.setExpression=AD;exports.setExpressionVariables=LD;exports.setFolderChildren=rD;exports.setModelFlag=eI;exports.setPanelState=DI;exports.setRolesContent=Yc;exports.setSelectedGroup=lI;exports.setSessions=ov;exports.setSetting=fc;exports.setSettings=zs;exports.setSettingsAsText=KP;exports.setSourceContent=kD;exports.setTabExtra=SI;exports.setTabFlags=Rv;exports.setTabs=_I;exports.setTabsFlags=EI;exports.setTemplateData=Tv;exports.setTemplatesData=wv;exports.setWebformsFlag=dI;exports.sort=Og;exports.stateReducer=Bv;exports.stateSlice=Ua;exports.toAPI=Gs;exports.toState=PP;exports.toggleExpandFolder=ZP;exports.toggleInspector=uI;exports.togglePermission=OP;exports.togglePrivilegePermission=Fg;exports.toggleTab=qP;exports.tryCloseAllTabs=gD;exports.tryCloseLeftTabs=mD;exports.tryCloseOtherTabs=hD;exports.tryCloseRightTabs=vD;exports.tryCloseTab=Qc;exports.tryEditMethod=aD;exports.tryInjectMethod=nv;exports.tryRenameDataclass=ZD;exports.uniquePush=ar;exports.updateExpressionAt=PD;exports.updatePrivileges=Gg;exports.updateRoles=qg;exports.updateRolesAndPrivileges=Vc;exports.updateSession=FD;exports.updateSharedCss=UI;exports.updateSharedDatasources=sl;exports.uploadFile=iD;exports.uploadFileAndGetResponse=sD;exports.useAppDispatch=CO;exports.useAppSelector=Ur;exports.useAttribute=aI;exports.useCollections=rI;exports.useDataclass=nI;exports.useDataclasses=tI;exports.useMethod=IO;exports.useMethods=PO;exports.useModelFlags=sI;exports.useModelProperties=oI;exports.wipeDebuggerSessions=sv;
|
|
130
130
|
//# sourceMappingURL=index.cjs.js.map
|