@ws-ui/store 0.1.23 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hooks/store.d.ts +2 -2
- package/dist/index.cjs.js +36 -36
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +3083 -2975
- package/dist/index.es.js.map +1 -1
- package/dist/modules/index.d.ts +1 -1
- package/dist/modules/root/reducer.d.ts +10 -1
- package/dist/modules/root/types.d.ts +9 -0
- package/dist/modules/shared-conditions/index.d.ts +1 -1
- package/dist/modules/shared-conditions/reducer.d.ts +17 -15
- package/dist/modules/shared-conditions/thunks.d.ts +1 -1
- package/dist/modules/tabs/selectors.d.ts +1 -1
- package/dist/modules/webforms/datasources.adapter.d.ts +1 -1
- package/dist/selectors/catalog.d.ts +7 -7
- package/dist/selectors/common.d.ts +4 -4
- package/dist/selectors/components.d.ts +1 -1
- package/dist/selectors/datasources.d.ts +6 -6
- package/dist/selectors/debugger.d.ts +22 -22
- package/dist/selectors/explorer.d.ts +26 -26
- package/dist/selectors/modals.d.ts +1 -1
- package/dist/selectors/roles.d.ts +8 -8
- package/dist/selectors/settings.d.ts +10 -10
- package/dist/selectors/states.d.ts +67 -6
- package/dist/selectors/styles.d.ts +5 -5
- package/dist/selectors/tabs.d.ts +3 -3
- package/dist/selectors/webforms.d.ts +11 -11
- package/package.json +3 -3
package/dist/index.cjs.js
CHANGED
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("@ws-ui/shared"),pt=require("react"),zS=require("react-dom");function Je(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=rw[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 Mr(e){return!!e&&!!e[me]}function hr(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)===nw}(e)||Array.isArray(e)||!!e[Ra]||!!(!((r=e.constructor)===null||r===void 0)&&r[Ra])||Es(e)||Ss(e))}function Lr(e,r,t){t===void 0&&(t=!1),rn(e)===0?(t?Object.keys:qn)(e).forEach(function(a){t&&typeof a=="symbol"||r(a,e[a],e)}):e.forEach(function(a,s){return r(s,a,e)})}function rn(e){var r=e[me];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:Es(e)?2:Ss(e)?3:0}function en(e,r){return rn(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function Ko(e,r){return rn(e)===2?e.get(r):e[r]}function Yp(e,r,t){var a=rn(e);a===2?e.set(r,t):a===3?e.add(t):e[r]=t}function zp(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function Es(e){return ew&&e instanceof Map}function Ss(e){return tw&&e instanceof Set}function ft(e){return e.o||e.t}function gc(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=Vp(e);delete r[me];for(var t=qn(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 vc(e,r){return r===void 0&&(r=!1),yc(e)||Mr(e)||!hr(e)||(rn(e)>1&&(e.set=e.add=e.clear=e.delete=VS),Object.freeze(e),r&&Lr(e,function(t,a){return vc(a,!0)},!0)),e}function VS(){Je(2)}function yc(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function br(e){var r=Wu[e];return r||Je(18,e),r}function mc(e,r){Wu[e]||(Wu[e]=r)}function Fa(){return process.env.NODE_ENV==="production"||Kn||Je(0),Kn}function uu(e,r){r&&(br("Patches"),e.u=[],e.s=[],e.v=r)}function ns(e){Bu(e),e.p.forEach(KS),e.p=null}function Bu(e){e===Kn&&(Kn=e.l)}function Pd(e){return Kn={p:[],l:Kn,h:e,m:!0,_:0}}function KS(e){var r=e[me];r.i===0||r.i===1?r.j():r.g=!0}function cu(e,r){r._=r.p.length;var t=r.p[0],a=e!==void 0&&e!==t;return r.h.O||br("ES5").S(r,e,a),a?(t[me].P&&(ns(r),Je(4)),hr(e)&&(e=as(r,e),r.l||os(r,e)),r.u&&br("Patches").M(t[me].t,e,r.u,r.s)):e=as(r,t,[]),ns(r),r.u&&r.v(r.u,r.s),e!==_c?e:void 0}function as(e,r,t){if(yc(r))return r;var a=r[me];if(!a)return Lr(r,function(l,d){return Dd(e,a,r,l,d,t)},!0),r;if(a.A!==e)return r;if(!a.P)return os(e,a.t,!0),a.t;if(!a.I){a.I=!0,a.A._--;var s=a.i===4||a.i===5?a.o=gc(a.k):a.o,i=s,c=!1;a.i===3&&(i=new Set(s),s.clear(),c=!0),Lr(i,function(l,d){return Dd(e,a,s,l,d,t,c)}),os(e,s,!1),t&&e.u&&br("Patches").N(a,t,e.u,e.s)}return a.o}function Dd(e,r,t,a,s,i,c){if(process.env.NODE_ENV!=="production"&&s===t&&Je(5),Mr(s)){var l=as(e,s,i&&r&&r.i!==3&&!en(r.R,a)?i.concat(a):void 0);if(Yp(t,a,l),!Mr(l))return;e.m=!1}else c&&t.add(s);if(hr(s)&&!yc(s)){if(!e.h.D&&e._<1)return;as(e,s),r&&r.A.l||os(e,s)}}function os(e,r,t){t===void 0&&(t=!1),!e.l&&e.h.D&&e.m&&vc(r,t)}function lu(e,r){var t=e[me];return(t?ft(t):e)[r]}function Id(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 fu(e){e.o||(e.o=gc(e.t))}function $a(e,r,t){var a=Es(r)?br("MapSet").F(r,t):Ss(r)?br("MapSet").T(r,t):e.O?function(s,i){var c=Array.isArray(s),l={i:c?1:0,A:i?i.A:Fa(),P:!1,I:!1,R:{},l:i,t:s,k:null,o:null,j:null,C:!1},d=l,p=Ma;c&&(d=[l],p=Ca);var g=Proxy.revocable(d,p),b=g.revoke,_=g.proxy;return l.k=_,l.j=b,_}(r,t):br("ES5").J(r,t);return(t?t.A:Fa()).p.push(a),a}function JS(e){return Mr(e)||Je(22,e),function r(t){if(!hr(t))return t;var a,s=t[me],i=rn(t);if(s){if(!s.P&&(s.i<4||!br("ES5").K(s)))return s.t;s.I=!0,a=Fd(t,i),s.I=!1}else a=Fd(t,i);return Lr(a,function(c,l){s&&Ko(s.t,c)===l||Yp(a,c,r(l))}),i===3?new Set(a):a}(e)}function Fd(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return gc(e)}function XS(){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[me];return process.env.NODE_ENV!=="production"&&s(p),Ma.get(p,c)},set:function(p){var g=this[me];process.env.NODE_ENV!=="production"&&s(g),Ma.set(g,c,p)}},d}function r(c){for(var l=c.length-1;l>=0;l--){var d=c[l][me];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=qn(d),g=p.length-1;g>=0;g--){var b=p[g];if(b!==me){var _=l[b];if(_===void 0&&!en(l,b))return!0;var E=d[b],T=E&&E[me];if(T?T.t!==_:!zp(E,_))return!0}}var x=!!l[me];return p.length!==qn(l).length+(x?0:1)}function a(c){var l=c.k;if(l.length!==c.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function s(c){c.g&&Je(3,JSON.stringify(ft(c)))}var i={};mc("ES5",{J:function(c,l){var d=Array.isArray(c),p=function(b,_){if(b){for(var E=Array(_.length),T=0;T<_.length;T++)Object.defineProperty(E,""+T,e(T,!0));return E}var x=Vp(_);delete x[me];for(var D=qn(x),P=0;P<D.length;P++){var j=D[P];x[j]=e(j,b||!!x[j].enumerable)}return Object.create(Object.getPrototypeOf(_),x)}(d,c),g={i:d?5:4,A:l?l.A:Fa(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,me,{value:g,writable:!0}),p},S:function(c,l,d){d?Mr(l)&&l[me].A===c&&r(c.p):(c.u&&function p(g){if(g&&typeof g=="object"){var b=g[me];if(b){var _=b.t,E=b.k,T=b.R,x=b.i;if(x===4)Lr(E,function(k){k!==me&&(_[k]!==void 0||en(_,k)?T[k]||p(E[k]):(T[k]=!0,Lt(b)))}),Lr(_,function(k){E[k]!==void 0||en(E,k)||(T[k]=!1,Lt(b))});else if(x===5){if(a(b)&&(Lt(b),T.length=!0),E.length<_.length)for(var D=E.length;D<_.length;D++)T[D]=!1;else for(var P=_.length;P<E.length;P++)T[P]=!0;for(var j=Math.min(E.length,_.length),M=0;M<j;M++)E.hasOwnProperty(M)||(T[M]=!0),T[M]===void 0&&p(E[M])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?t(c):a(c)}})}function ZS(){function e(a){if(!hr(a))return a;if(Array.isArray(a))return a.map(e);if(Es(a))return new Map(Array.from(a.entries()).map(function(c){return[c[0],e(c[1])]}));if(Ss(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 en(a,Ra)&&(s[Ra]=a[Ra]),s}function r(a){return Mr(a)?e(a):a}var t="add";mc("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=rn(d),b=c[p];typeof b!="string"&&typeof b!="number"&&(b=""+b),g!==0&&g!==1||b!=="__proto__"&&b!=="constructor"||Je(24),typeof d=="function"&&b==="prototype"&&Je(24),typeof(d=Ko(d,b))!="object"&&Je(15,c.join("/"))}var _=rn(d),E=e(i.value),T=c[c.length-1];switch(l){case"replace":switch(_){case 2:return d.set(T,E);case 3:Je(16);default:return d[T]=E}case t:switch(_){case 1:return T==="-"?d.push(E):d.splice(T,0,E);case 2:return d.set(T,E);case 3:return d.add(E);default:return d[T]=E}case"remove":switch(_){case 1:return d.splice(T,1);case 2:return d.delete(T);case 3:return d.delete(i.value);default:return delete d[T]}default:Je(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 b=l.t,_=l.o;Lr(l.R,function(E,T){var x=Ko(b,E),D=Ko(_,E),P=T?en(b,E)?"replace":t:"remove";if(x!==D||P!=="replace"){var j=d.concat(E);p.push(P==="remove"?{op:P,path:j}:{op:P,path:j,value:D}),g.push(P===t?{op:"remove",path:j}:P==="remove"?{op:t,path:j,value:r(x)}:{op:"replace",path:j,value:r(x)})}})}(a,s,i,c);case 5:case 1:return function(l,d,p,g){var b=l.t,_=l.R,E=l.o;if(E.length<b.length){var T=[E,b];b=T[0],E=T[1];var x=[g,p];p=x[0],g=x[1]}for(var D=0;D<b.length;D++)if(_[D]&&E[D]!==b[D]){var P=d.concat([D]);p.push({op:"replace",path:P,value:r(E[D])}),g.push({op:"replace",path:P,value:r(b[D])})}for(var j=b.length;j<E.length;j++){var M=d.concat([j]);p.push({op:t,path:M,value:r(E[j])})}b.length<E.length&&g.push({op:"replace",path:d.concat(["length"]),value:b.length})}(a,s,i,c);case 3:return function(l,d,p,g){var b=l.t,_=l.o,E=0;b.forEach(function(T){if(!_.has(T)){var x=d.concat([E]);p.push({op:"remove",path:x,value:T}),g.unshift({op:t,path:x,value:T})}E++}),E=0,_.forEach(function(T){if(!b.has(T)){var x=d.concat([E]);p.push({op:t,path:x,value:T}),g.unshift({op:"remove",path:x,value:T})}E++})}(a,s,i,c)}},M:function(a,s,i,c){i.push({op:"replace",path:[],value:s===_c?void 0:s}),c.push({op:"replace",path:[],value:a})}})}function QS(){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(hr(d)){var p=$a(l.A.h,d,l);l.p.set(d,p),l.o.add(p)}else l.o.add(d)}))}function a(l){l.g&&Je(3,JSON.stringify(ft(l)))}var s=function(l,d){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var b in g)g.hasOwnProperty(b)&&(p[b]=g[b])})(l,d)},i=function(){function l(p,g){return this[me]={i:2,l:g,A:g?g.A:Fa(),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 ft(this[me]).size}}),d.has=function(p){return ft(this[me]).has(p)},d.set=function(p,g){var b=this[me];return a(b),ft(b).has(p)&&ft(b).get(p)===g||(r(b),Lt(b),b.R.set(p,!0),b.o.set(p,g),b.R.set(p,!0)),this},d.delete=function(p){if(!this.has(p))return!1;var g=this[me];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[me];a(p),ft(p).size&&(r(p),Lt(p),p.R=new Map,Lr(p.t,function(g){p.R.set(g,!1)}),p.o.clear())},d.forEach=function(p,g){var b=this;ft(this[me]).forEach(function(_,E){p.call(g,b.get(E),E,b)})},d.get=function(p){var g=this[me];a(g);var b=ft(g).get(p);if(g.I||!hr(b)||b!==g.t.get(p))return b;var _=$a(g.A.h,b,g);return r(g),g.o.set(p,_),_},d.keys=function(){return ft(this[me]).keys()},d.values=function(){var p,g=this,b=this.keys();return(p={})[Uo]=function(){return g.values()},p.next=function(){var _=b.next();return _.done?_:{done:!1,value:g.get(_.value)}},p},d.entries=function(){var p,g=this,b=this.keys();return(p={})[Uo]=function(){return g.entries()},p.next=function(){var _=b.next();if(_.done)return _;var E=g.get(_.value);return{done:!1,value:[_.value,E]}},p},d[Uo]=function(){return this.entries()},l}(),c=function(){function l(p,g){return this[me]={i:3,l:g,A:g?g.A:Fa(),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 ft(this[me]).size}}),d.has=function(p){var g=this[me];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[me];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[me];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[me];a(p),ft(p).size&&(t(p),Lt(p),p.o.clear())},d.values=function(){var p=this[me];return a(p),t(p),p.o.values()},d.entries=function(){var p=this[me];return a(p),t(p),p.o.entries()},d.keys=function(){return this.values()},d[Uo]=function(){return this.values()},d.forEach=function(p,g){for(var b=this.values(),_=b.next();!_.done;)p.call(g,_.value,_.value,this),_=b.next()},l}();mc("MapSet",{F:function(l,d){return new i(l,d)},T:function(l,d){return new c(l,d)}})}var $d,Kn,bc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ew=typeof Map<"u",tw=typeof Set<"u",Md=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",_c=bc?Symbol.for("immer-nothing"):(($d={})["immer-nothing"]=!0,$d),Ra=bc?Symbol.for("immer-draftable"):"__$immer_draftable",me=bc?Symbol.for("immer-state"):"__$immer_state",Uo=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",rw={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"},nw=""+Object.prototype.constructor,qn=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Vp=Object.getOwnPropertyDescriptors||function(e){var r={};return qn(e).forEach(function(t){r[t]=Object.getOwnPropertyDescriptor(e,t)}),r},Wu={},Ma={get:function(e,r){if(r===me)return e;var t=ft(e);if(!en(t,r))return function(s,i,c){var l,d=Id(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||!hr(a)?a:a===lu(e.t,r)?(fu(e),e.o[r]=$a(e.A.h,a,e)):a},has:function(e,r){return r in ft(e)},ownKeys:function(e){return Reflect.ownKeys(ft(e))},set:function(e,r,t){var a=Id(ft(e),r);if(a!=null&&a.set)return a.set.call(e.k,t),!0;if(!e.P){var s=lu(ft(e),r),i=s==null?void 0:s[me];if(i&&i.t===t)return e.o[r]=t,e.R[r]=!1,!0;if(zp(t,s)&&(t!==void 0||en(e.t,r)))return!0;fu(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 lu(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,fu(e),Lt(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var t=ft(e),a=Reflect.getOwnPropertyDescriptor(t,r);return a&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:a.enumerable,value:t[r]}},defineProperty:function(){Je(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Je(12)}},Ca={};Lr(Ma,function(e,r){Ca[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),Ca.deleteProperty=function(e,r){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(r))&&Je(13),Ca.set.call(this,e,r,void 0)},Ca.set=function(e,r,t){return process.env.NODE_ENV!=="production"&&r!=="length"&&isNaN(parseInt(r))&&Je(14),Ma.set.call(this,e[0],r,t,e[0])};var aw=function(){function e(t){var a=this;this.O=Md,this.D=!0,this.produce=function(s,i,c){if(typeof s=="function"&&typeof i!="function"){var l=i;i=s;var d=a;return function(x){var D=this;x===void 0&&(x=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(x,function(k){var O;return(O=i).call.apply(O,[D,k].concat(j))})}}var p;if(typeof i!="function"&&Je(6),c!==void 0&&typeof c!="function"&&Je(7),hr(s)){var g=Pd(a),b=$a(a,s,void 0),_=!0;try{p=i(b),_=!1}finally{_?ns(g):Bu(g)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(x){return uu(g,c),cu(x,g)},function(x){throw ns(g),x}):(uu(g,c),cu(p,g))}if(!s||typeof s!="object"){if((p=i(s))===void 0&&(p=s),p===_c&&(p=void 0),a.D&&vc(p,!0),c){var E=[],T=[];br("Patches").M(s,p,E,T),c(E,T)}return p}Je(21,s)},this.produceWithPatches=function(s,i){if(typeof s=="function")return function(p){for(var g=arguments.length,b=Array(g>1?g-1:0),_=1;_<g;_++)b[_-1]=arguments[_];return a.produceWithPatches(p,function(E){return s.apply(void 0,[E].concat(b))})};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){hr(t)||Je(8),Mr(t)&&(t=JS(t));var a=Pd(this),s=$a(this,t,void 0);return s[me].C=!0,Bu(a),s},r.finishDraft=function(t,a){var s=t&&t[me];process.env.NODE_ENV!=="production"&&(s&&s.C||Je(9),s.I&&Je(10));var i=s.A;return uu(i,a),cu(void 0,i)},r.setAutoFreeze=function(t){this.D=t},r.setUseProxies=function(t){t&&!Md&&Je(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=br("Patches").$;return Mr(t)?c(t,a):this.produce(t,function(l){return c(l,a)})},e}(),qt=new aw,Jo=qt.produce;qt.produceWithPatches.bind(qt);qt.setAutoFreeze.bind(qt);qt.setUseProxies.bind(qt);qt.applyPatches.bind(qt);qt.createDraft.bind(qt);qt.finishDraft.bind(qt);function La(e){"@babel/helpers - typeof";return La=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},La(e)}function ow(e,r){if(La(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r||"default");if(La(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function sw(e){var r=ow(e,"string");return La(r)==="symbol"?r:String(r)}function iw(e,r,t){return r=sw(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Ld(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 Nd(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Ld(Object(t),!0).forEach(function(a){iw(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ld(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function Ct(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var kd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),du=function(){return Math.random().toString(36).substring(7).split("").join(".")},En={INIT:"@@redux/INIT"+du(),REPLACE:"@@redux/REPLACE"+du(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+du()}};function Kp(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 uw(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(fw(e))return"date";if(lw(e))return"error";var t=cw(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 cw(e){return typeof e.constructor=="function"?e.constructor.name:null}function lw(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function fw(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function _n(e){var r=typeof e;return process.env.NODE_ENV!=="production"&&(r=uw(e)),r}function Jp(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"?Ct(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"?Ct(1):"Expected the enhancer to be a function. Instead, received: '"+_n(t)+"'");return t(Jp)(e,r)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Ct(2):"Expected the root reducer to be a function. Instead, received: '"+_n(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"?Ct(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function b(x){if(typeof x!="function")throw new Error(process.env.NODE_ENV==="production"?Ct(4):"Expected the listener to be a function. Instead, received: '"+_n(x)+"'");if(d)throw new Error(process.env.NODE_ENV==="production"?Ct(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 D=!0;return p(),l.push(x),function(){if(D){if(d)throw new Error(process.env.NODE_ENV==="production"?Ct(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.");D=!1,p();var j=l.indexOf(x);l.splice(j,1),c=null}}}function _(x){if(!Kp(x))throw new Error(process.env.NODE_ENV==="production"?Ct(7):"Actions must be plain objects. Instead, the actual type was: '"+_n(x)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof x.type>"u")throw new Error(process.env.NODE_ENV==="production"?Ct(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"?Ct(9):"Reducers may not dispatch actions.");try{d=!0,i=s(i,x)}finally{d=!1}for(var D=c=l,P=0;P<D.length;P++){var j=D[P];j()}return x}function E(x){if(typeof x!="function")throw new Error(process.env.NODE_ENV==="production"?Ct(10):"Expected the nextReducer to be a function. Instead, received: '"+_n(x));s=x,_({type:En.REPLACE})}function T(){var x,D=b;return x={subscribe:function(j){if(typeof j!="object"||j===null)throw new Error(process.env.NODE_ENV==="production"?Ct(11):"Expected the observer to be an object. Instead, received: '"+_n(j)+"'");function M(){j.next&&j.next(g())}M();var k=D(M);return{unsubscribe:k}}},x[kd]=function(){return this},x}return _({type:En.INIT}),a={dispatch:_,subscribe:b,getState:g,replaceReducer:E},a[kd]=T,a}function jd(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function dw(e,r,t,a){var s=Object.keys(r),i=t&&t.type===En.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(!Kp(e))return"The "+i+' has unexpected type of "'+_n(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===En.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 pw(e){Object.keys(e).forEach(function(r){var t=e[r],a=t(void 0,{type:En.INIT});if(typeof a>"u")throw new Error(process.env.NODE_ENV==="production"?Ct(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:En.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?Ct(13):'The slice reducer for key "'+r+'" returned undefined when probed with a random type. '+("Don't try to handle '"+En.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 Xp(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"&&jd('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{pw(t)}catch(d){l=d}return function(p,g){if(p===void 0&&(p={}),l)throw l;if(process.env.NODE_ENV!=="production"){var b=dw(p,t,g,c);b&&jd(b)}for(var _=!1,E={},T=0;T<i.length;T++){var x=i[T],D=t[x],P=p[x],j=D(P,g);if(typeof j>"u"){var M=g&&g.type;throw new Error(process.env.NODE_ENV==="production"?Ct(14):"When called with an action of type "+(M?'"'+String(M)+'"':"(unknown type)")+', the slice reducer for key "'+x+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}E[x]=j,_=_||j!==P}return _=_||i.length!==Object.keys(p).length,_?E:p}}function ss(){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 hw(){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"?Ct(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=ss.apply(void 0,l)(s.dispatch),Nd(Nd({},s),{},{dispatch:i})}}}var is="NOT_FOUND";function gw(e){var r;return{get:function(a){return r&&e(r.key,a)?r.value:is},put:function(a,s){r={key:a,value:s}},getEntries:function(){return r?[r]:[]},clear:function(){r=void 0}}}function vw(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 is}function s(l,d){a(l)===is&&(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 yw=function(r,t){return r===t};function mw(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 bw(e,r){var t=typeof r=="object"?r:{equalityCheck:r},a=t.equalityCheck,s=a===void 0?yw:a,i=t.maxSize,c=i===void 0?1:i,l=t.resultEqualityCheck,d=mw(s),p=c===1?gw(d):vw(c,d);function g(){var b=p.get(arguments);if(b===is){if(b=e.apply(null,arguments),l){var _=p.getEntries(),E=_.find(function(T){return l(T.value,b)});E&&(b=E.value)}p.put(arguments,b)}return b}return g.clearCache=function(){return p.clear()},g}function _w(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 Ew(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,b={memoizeOptions:void 0},_=l.pop();if(typeof _=="object"&&(b=_,_=l.pop()),typeof _!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof _+"]");var E=b,T=E.memoizeOptions,x=T===void 0?t:T,D=Array.isArray(x)?x:[x],P=_w(l),j=e.apply(void 0,[function(){return p++,_.apply(null,arguments)}].concat(D)),M=e(function(){for(var O=[],z=P.length,q=0;q<z;q++)O.push(P[q].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 U=Ew(bw);function Zp(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 Qp=Zp();Qp.withExtraArgument=Zp;const Bd=Qp;var Sw=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)}}(),ww=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}}},us=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},Tw=Object.defineProperty,Cw=Object.defineProperties,xw=Object.getOwnPropertyDescriptors,Wd=Object.getOwnPropertySymbols,Rw=Object.prototype.hasOwnProperty,Ow=Object.prototype.propertyIsEnumerable,Ud=function(e,r,t){return r in e?Tw(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t},tn=function(e,r){for(var t in r||(r={}))Rw.call(r,t)&&Ud(e,t,r[t]);if(Wd)for(var a=0,s=Wd(r);a<s.length;a++){var t=s[a];Ow.call(r,t)&&Ud(e,t,r[t])}return e},pu=function(e,r){return Cw(e,xw(r))},Aw=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())})},Pw=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ss:ss.apply(null,arguments)};function eh(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 th(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 m=require("@ws-ui/shared"),pt=require("react"),JE=require("react-dom");function Je(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=ow[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 Mr(e){return!!e&&!!e[me]}function hr(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)===sw}(e)||Array.isArray(e)||!!e[Ra]||!!(!((r=e.constructor)===null||r===void 0)&&r[Ra])||Ss(e)||Es(e))}function Lr(e,r,t){t===void 0&&(t=!1),rn(e)===0?(t?Object.keys:qn)(e).forEach(function(a){t&&typeof a=="symbol"||r(a,e[a],e)}):e.forEach(function(a,s){return r(s,a,e)})}function rn(e){var r=e[me];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:Ss(e)?2:Es(e)?3:0}function en(e,r){return rn(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function Jo(e,r){return rn(e)===2?e.get(r):e[r]}function Vp(e,r,t){var a=rn(e);a===2?e.set(r,t):a===3?e.add(t):e[r]=t}function Kp(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function Ss(e){return nw&&e instanceof Map}function Es(e){return aw&&e instanceof Set}function ft(e){return e.o||e.t}function yc(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=Jp(e);delete r[me];for(var t=qn(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 mc(e,r){return r===void 0&&(r=!1),bc(e)||Mr(e)||!hr(e)||(rn(e)>1&&(e.set=e.add=e.clear=e.delete=XE),Object.freeze(e),r&&Lr(e,function(t,a){return mc(a,!0)},!0)),e}function XE(){Je(2)}function bc(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function br(e){var r=Hu[e];return r||Je(18,e),r}function _c(e,r){Hu[e]||(Hu[e]=r)}function Fa(){return process.env.NODE_ENV==="production"||Kn||Je(0),Kn}function lu(e,r){r&&(br("Patches"),e.u=[],e.s=[],e.v=r)}function as(e){Uu(e),e.p.forEach(ZE),e.p=null}function Uu(e){e===Kn&&(Kn=e.l)}function Id(e){return Kn={p:[],l:Kn,h:e,m:!0,_:0}}function ZE(e){var r=e[me];r.i===0||r.i===1?r.j():r.g=!0}function fu(e,r){r._=r.p.length;var t=r.p[0],a=e!==void 0&&e!==t;return r.h.O||br("ES5").S(r,e,a),a?(t[me].P&&(as(r),Je(4)),hr(e)&&(e=os(r,e),r.l||ss(r,e)),r.u&&br("Patches").M(t[me].t,e,r.u,r.s)):e=os(r,t,[]),as(r),r.u&&r.v(r.u,r.s),e!==Ec?e:void 0}function os(e,r,t){if(bc(r))return r;var a=r[me];if(!a)return Lr(r,function(l,d){return Fd(e,a,r,l,d,t)},!0),r;if(a.A!==e)return r;if(!a.P)return ss(e,a.t,!0),a.t;if(!a.I){a.I=!0,a.A._--;var s=a.i===4||a.i===5?a.o=yc(a.k):a.o,i=s,c=!1;a.i===3&&(i=new Set(s),s.clear(),c=!0),Lr(i,function(l,d){return Fd(e,a,s,l,d,t,c)}),ss(e,s,!1),t&&e.u&&br("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&&Je(5),Mr(s)){var l=os(e,s,i&&r&&r.i!==3&&!en(r.R,a)?i.concat(a):void 0);if(Vp(t,a,l),!Mr(l))return;e.m=!1}else c&&t.add(s);if(hr(s)&&!bc(s)){if(!e.h.D&&e._<1)return;os(e,s),r&&r.A.l||ss(e,s)}}function ss(e,r,t){t===void 0&&(t=!1),!e.l&&e.h.D&&e.m&&mc(r,t)}function du(e,r){var t=e[me];return(t?ft(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 pu(e){e.o||(e.o=yc(e.t))}function $a(e,r,t){var a=Ss(r)?br("MapSet").F(r,t):Es(r)?br("MapSet").T(r,t):e.O?function(s,i){var c=Array.isArray(s),l={i:c?1:0,A:i?i.A:Fa(),P:!1,I:!1,R:{},l:i,t:s,k:null,o:null,j:null,C:!1},d=l,p=Ma;c&&(d=[l],p=Ca);var g=Proxy.revocable(d,p),b=g.revoke,_=g.proxy;return l.k=_,l.j=b,_}(r,t):br("ES5").J(r,t);return(t?t.A:Fa()).p.push(a),a}function QE(e){return Mr(e)||Je(22,e),function r(t){if(!hr(t))return t;var a,s=t[me],i=rn(t);if(s){if(!s.P&&(s.i<4||!br("ES5").K(s)))return s.t;s.I=!0,a=Md(t,i),s.I=!1}else a=Md(t,i);return Lr(a,function(c,l){s&&Jo(s.t,c)===l||Vp(a,c,r(l))}),i===3?new Set(a):a}(e)}function Md(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return yc(e)}function ew(){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[me];return process.env.NODE_ENV!=="production"&&s(p),Ma.get(p,c)},set:function(p){var g=this[me];process.env.NODE_ENV!=="production"&&s(g),Ma.set(g,c,p)}},d}function r(c){for(var l=c.length-1;l>=0;l--){var d=c[l][me];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=qn(d),g=p.length-1;g>=0;g--){var b=p[g];if(b!==me){var _=l[b];if(_===void 0&&!en(l,b))return!0;var S=d[b],T=S&&S[me];if(T?T.t!==_:!Kp(S,_))return!0}}var x=!!l[me];return p.length!==qn(l).length+(x?0:1)}function a(c){var l=c.k;if(l.length!==c.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function s(c){c.g&&Je(3,JSON.stringify(ft(c)))}var i={};_c("ES5",{J:function(c,l){var d=Array.isArray(c),p=function(b,_){if(b){for(var S=Array(_.length),T=0;T<_.length;T++)Object.defineProperty(S,""+T,e(T,!0));return S}var x=Jp(_);delete x[me];for(var D=qn(x),P=0;P<D.length;P++){var j=D[P];x[j]=e(j,b||!!x[j].enumerable)}return Object.create(Object.getPrototypeOf(_),x)}(d,c),g={i:d?5:4,A:l?l.A:Fa(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,me,{value:g,writable:!0}),p},S:function(c,l,d){d?Mr(l)&&l[me].A===c&&r(c.p):(c.u&&function p(g){if(g&&typeof g=="object"){var b=g[me];if(b){var _=b.t,S=b.k,T=b.R,x=b.i;if(x===4)Lr(S,function(k){k!==me&&(_[k]!==void 0||en(_,k)?T[k]||p(S[k]):(T[k]=!0,Lt(b)))}),Lr(_,function(k){S[k]!==void 0||en(S,k)||(T[k]=!1,Lt(b))});else if(x===5){if(a(b)&&(Lt(b),T.length=!0),S.length<_.length)for(var D=S.length;D<_.length;D++)T[D]=!1;else for(var P=_.length;P<S.length;P++)T[P]=!0;for(var j=Math.min(S.length,_.length),M=0;M<j;M++)S.hasOwnProperty(M)||(T[M]=!0),T[M]===void 0&&p(S[M])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?t(c):a(c)}})}function tw(){function e(a){if(!hr(a))return a;if(Array.isArray(a))return a.map(e);if(Ss(a))return new Map(Array.from(a.entries()).map(function(c){return[c[0],e(c[1])]}));if(Es(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 en(a,Ra)&&(s[Ra]=a[Ra]),s}function r(a){return Mr(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=rn(d),b=c[p];typeof b!="string"&&typeof b!="number"&&(b=""+b),g!==0&&g!==1||b!=="__proto__"&&b!=="constructor"||Je(24),typeof d=="function"&&b==="prototype"&&Je(24),typeof(d=Jo(d,b))!="object"&&Je(15,c.join("/"))}var _=rn(d),S=e(i.value),T=c[c.length-1];switch(l){case"replace":switch(_){case 2:return d.set(T,S);case 3:Je(16);default:return d[T]=S}case t:switch(_){case 1:return T==="-"?d.push(S):d.splice(T,0,S);case 2:return d.set(T,S);case 3:return d.add(S);default:return d[T]=S}case"remove":switch(_){case 1:return d.splice(T,1);case 2:return d.delete(T);case 3:return d.delete(i.value);default:return delete d[T]}default:Je(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 b=l.t,_=l.o;Lr(l.R,function(S,T){var x=Jo(b,S),D=Jo(_,S),P=T?en(b,S)?"replace":t:"remove";if(x!==D||P!=="replace"){var j=d.concat(S);p.push(P==="remove"?{op:P,path:j}:{op:P,path:j,value:D}),g.push(P===t?{op:"remove",path:j}:P==="remove"?{op:t,path:j,value:r(x)}:{op:"replace",path:j,value:r(x)})}})}(a,s,i,c);case 5:case 1:return function(l,d,p,g){var b=l.t,_=l.R,S=l.o;if(S.length<b.length){var T=[S,b];b=T[0],S=T[1];var x=[g,p];p=x[0],g=x[1]}for(var D=0;D<b.length;D++)if(_[D]&&S[D]!==b[D]){var P=d.concat([D]);p.push({op:"replace",path:P,value:r(S[D])}),g.push({op:"replace",path:P,value:r(b[D])})}for(var j=b.length;j<S.length;j++){var M=d.concat([j]);p.push({op:t,path:M,value:r(S[j])})}b.length<S.length&&g.push({op:"replace",path:d.concat(["length"]),value:b.length})}(a,s,i,c);case 3:return function(l,d,p,g){var b=l.t,_=l.o,S=0;b.forEach(function(T){if(!_.has(T)){var x=d.concat([S]);p.push({op:"remove",path:x,value:T}),g.unshift({op:t,path:x,value:T})}S++}),S=0,_.forEach(function(T){if(!b.has(T)){var x=d.concat([S]);p.push({op:t,path:x,value:T}),g.unshift({op:"remove",path:x,value:T})}S++})}(a,s,i,c)}},M:function(a,s,i,c){i.push({op:"replace",path:[],value:s===Ec?void 0:s}),c.push({op:"replace",path:[],value:a})}})}function rw(){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(hr(d)){var p=$a(l.A.h,d,l);l.p.set(d,p),l.o.add(p)}else l.o.add(d)}))}function a(l){l.g&&Je(3,JSON.stringify(ft(l)))}var s=function(l,d){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var b in g)g.hasOwnProperty(b)&&(p[b]=g[b])})(l,d)},i=function(){function l(p,g){return this[me]={i:2,l:g,A:g?g.A:Fa(),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 ft(this[me]).size}}),d.has=function(p){return ft(this[me]).has(p)},d.set=function(p,g){var b=this[me];return a(b),ft(b).has(p)&&ft(b).get(p)===g||(r(b),Lt(b),b.R.set(p,!0),b.o.set(p,g),b.R.set(p,!0)),this},d.delete=function(p){if(!this.has(p))return!1;var g=this[me];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[me];a(p),ft(p).size&&(r(p),Lt(p),p.R=new Map,Lr(p.t,function(g){p.R.set(g,!1)}),p.o.clear())},d.forEach=function(p,g){var b=this;ft(this[me]).forEach(function(_,S){p.call(g,b.get(S),S,b)})},d.get=function(p){var g=this[me];a(g);var b=ft(g).get(p);if(g.I||!hr(b)||b!==g.t.get(p))return b;var _=$a(g.A.h,b,g);return r(g),g.o.set(p,_),_},d.keys=function(){return ft(this[me]).keys()},d.values=function(){var p,g=this,b=this.keys();return(p={})[Ho]=function(){return g.values()},p.next=function(){var _=b.next();return _.done?_:{done:!1,value:g.get(_.value)}},p},d.entries=function(){var p,g=this,b=this.keys();return(p={})[Ho]=function(){return g.entries()},p.next=function(){var _=b.next();if(_.done)return _;var S=g.get(_.value);return{done:!1,value:[_.value,S]}},p},d[Ho]=function(){return this.entries()},l}(),c=function(){function l(p,g){return this[me]={i:3,l:g,A:g?g.A:Fa(),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 ft(this[me]).size}}),d.has=function(p){var g=this[me];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[me];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[me];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[me];a(p),ft(p).size&&(t(p),Lt(p),p.o.clear())},d.values=function(){var p=this[me];return a(p),t(p),p.o.values()},d.entries=function(){var p=this[me];return a(p),t(p),p.o.entries()},d.keys=function(){return this.values()},d[Ho]=function(){return this.values()},d.forEach=function(p,g){for(var b=this.values(),_=b.next();!_.done;)p.call(g,_.value,_.value,this),_=b.next()},l}();_c("MapSet",{F:function(l,d){return new i(l,d)},T:function(l,d){return new c(l,d)}})}var Ld,Kn,Sc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",nw=typeof Map<"u",aw=typeof Set<"u",Nd=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ec=Sc?Symbol.for("immer-nothing"):((Ld={})["immer-nothing"]=!0,Ld),Ra=Sc?Symbol.for("immer-draftable"):"__$immer_draftable",me=Sc?Symbol.for("immer-state"):"__$immer_state",Ho=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",ow={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"},sw=""+Object.prototype.constructor,qn=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Jp=Object.getOwnPropertyDescriptors||function(e){var r={};return qn(e).forEach(function(t){r[t]=Object.getOwnPropertyDescriptor(e,t)}),r},Hu={},Ma={get:function(e,r){if(r===me)return e;var t=ft(e);if(!en(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||!hr(a)?a:a===du(e.t,r)?(pu(e),e.o[r]=$a(e.A.h,a,e)):a},has:function(e,r){return r in ft(e)},ownKeys:function(e){return Reflect.ownKeys(ft(e))},set:function(e,r,t){var a=$d(ft(e),r);if(a!=null&&a.set)return a.set.call(e.k,t),!0;if(!e.P){var s=du(ft(e),r),i=s==null?void 0:s[me];if(i&&i.t===t)return e.o[r]=t,e.R[r]=!1,!0;if(Kp(t,s)&&(t!==void 0||en(e.t,r)))return!0;pu(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 du(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,pu(e),Lt(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var t=ft(e),a=Reflect.getOwnPropertyDescriptor(t,r);return a&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:a.enumerable,value:t[r]}},defineProperty:function(){Je(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Je(12)}},Ca={};Lr(Ma,function(e,r){Ca[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),Ca.deleteProperty=function(e,r){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(r))&&Je(13),Ca.set.call(this,e,r,void 0)},Ca.set=function(e,r,t){return process.env.NODE_ENV!=="production"&&r!=="length"&&isNaN(parseInt(r))&&Je(14),Ma.set.call(this,e[0],r,t,e[0])};var iw=function(){function e(t){var a=this;this.O=Nd,this.D=!0,this.produce=function(s,i,c){if(typeof s=="function"&&typeof i!="function"){var l=i;i=s;var d=a;return function(x){var D=this;x===void 0&&(x=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(x,function(k){var O;return(O=i).call.apply(O,[D,k].concat(j))})}}var p;if(typeof i!="function"&&Je(6),c!==void 0&&typeof c!="function"&&Je(7),hr(s)){var g=Id(a),b=$a(a,s,void 0),_=!0;try{p=i(b),_=!1}finally{_?as(g):Uu(g)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(x){return lu(g,c),fu(x,g)},function(x){throw as(g),x}):(lu(g,c),fu(p,g))}if(!s||typeof s!="object"){if((p=i(s))===void 0&&(p=s),p===Ec&&(p=void 0),a.D&&mc(p,!0),c){var S=[],T=[];br("Patches").M(s,p,S,T),c(S,T)}return p}Je(21,s)},this.produceWithPatches=function(s,i){if(typeof s=="function")return function(p){for(var g=arguments.length,b=Array(g>1?g-1:0),_=1;_<g;_++)b[_-1]=arguments[_];return a.produceWithPatches(p,function(S){return s.apply(void 0,[S].concat(b))})};var c,l,d=a.produce(s,i,function(p,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){hr(t)||Je(8),Mr(t)&&(t=QE(t));var a=Id(this),s=$a(this,t,void 0);return s[me].C=!0,Uu(a),s},r.finishDraft=function(t,a){var s=t&&t[me];process.env.NODE_ENV!=="production"&&(s&&s.C||Je(9),s.I&&Je(10));var i=s.A;return lu(i,a),fu(void 0,i)},r.setAutoFreeze=function(t){this.D=t},r.setUseProxies=function(t){t&&!Nd&&Je(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=br("Patches").$;return Mr(t)?c(t,a):this.produce(t,function(l){return c(l,a)})},e}(),qt=new iw,Xo=qt.produce;qt.produceWithPatches.bind(qt);qt.setAutoFreeze.bind(qt);qt.setUseProxies.bind(qt);qt.applyPatches.bind(qt);qt.createDraft.bind(qt);qt.finishDraft.bind(qt);function La(e){"@babel/helpers - typeof";return La=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},La(e)}function uw(e,r){if(La(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r||"default");if(La(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function cw(e){var r=uw(e,"string");return La(r)==="symbol"?r:String(r)}function lw(e,r,t){return r=cw(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function kd(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,a)}return t}function jd(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?kd(Object(t),!0).forEach(function(a){lw(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):kd(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function Ct(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"}(),hu=function(){return Math.random().toString(36).substring(7).split("").join(".")},En={INIT:"@@redux/INIT"+hu(),REPLACE:"@@redux/REPLACE"+hu(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+hu()}};function Xp(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 fw(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(hw(e))return"date";if(pw(e))return"error";var t=dw(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 dw(e){return typeof e.constructor=="function"?e.constructor.name:null}function pw(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function hw(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Sn(e){var r=typeof e;return process.env.NODE_ENV!=="production"&&(r=fw(e)),r}function Zp(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"?Ct(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"?Ct(1):"Expected the enhancer to be a function. Instead, received: '"+Sn(t)+"'");return t(Zp)(e,r)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Ct(2):"Expected the root reducer to be a function. Instead, received: '"+Sn(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"?Ct(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function b(x){if(typeof x!="function")throw new Error(process.env.NODE_ENV==="production"?Ct(4):"Expected the listener to be a function. Instead, received: '"+Sn(x)+"'");if(d)throw new Error(process.env.NODE_ENV==="production"?Ct(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 D=!0;return p(),l.push(x),function(){if(D){if(d)throw new Error(process.env.NODE_ENV==="production"?Ct(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.");D=!1,p();var j=l.indexOf(x);l.splice(j,1),c=null}}}function _(x){if(!Xp(x))throw new Error(process.env.NODE_ENV==="production"?Ct(7):"Actions must be plain objects. Instead, the actual type was: '"+Sn(x)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof x.type>"u")throw new Error(process.env.NODE_ENV==="production"?Ct(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"?Ct(9):"Reducers may not dispatch actions.");try{d=!0,i=s(i,x)}finally{d=!1}for(var D=c=l,P=0;P<D.length;P++){var j=D[P];j()}return x}function S(x){if(typeof x!="function")throw new Error(process.env.NODE_ENV==="production"?Ct(10):"Expected the nextReducer to be a function. Instead, received: '"+Sn(x));s=x,_({type:En.REPLACE})}function T(){var x,D=b;return x={subscribe:function(j){if(typeof j!="object"||j===null)throw new Error(process.env.NODE_ENV==="production"?Ct(11):"Expected the observer to be an object. Instead, received: '"+Sn(j)+"'");function M(){j.next&&j.next(g())}M();var k=D(M);return{unsubscribe:k}}},x[Bd]=function(){return this},x}return _({type:En.INIT}),a={dispatch:_,subscribe:b,getState:g,replaceReducer:S},a[Bd]=T,a}function Wd(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function gw(e,r,t,a){var s=Object.keys(r),i=t&&t.type===En.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(!Xp(e))return"The "+i+' has unexpected type of "'+Sn(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===En.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 vw(e){Object.keys(e).forEach(function(r){var t=e[r],a=t(void 0,{type:En.INIT});if(typeof a>"u")throw new Error(process.env.NODE_ENV==="production"?Ct(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:En.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?Ct(13):'The slice reducer for key "'+r+'" returned undefined when probed with a random type. '+("Don't try to handle '"+En.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 Qp(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{vw(t)}catch(d){l=d}return function(p,g){if(p===void 0&&(p={}),l)throw l;if(process.env.NODE_ENV!=="production"){var b=gw(p,t,g,c);b&&Wd(b)}for(var _=!1,S={},T=0;T<i.length;T++){var x=i[T],D=t[x],P=p[x],j=D(P,g);if(typeof j>"u"){var M=g&&g.type;throw new Error(process.env.NODE_ENV==="production"?Ct(14):"When called with an action of type "+(M?'"'+String(M)+'"':"(unknown type)")+', the slice reducer for key "'+x+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}S[x]=j,_=_||j!==P}return _=_||i.length!==Object.keys(p).length,_?S:p}}function is(){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 yw(){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"?Ct(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=is.apply(void 0,l)(s.dispatch),jd(jd({},s),{},{dispatch:i})}}}var us="NOT_FOUND";function mw(e){var r;return{get:function(a){return r&&e(r.key,a)?r.value:us},put:function(a,s){r={key:a,value:s}},getEntries:function(){return r?[r]:[]},clear:function(){r=void 0}}}function bw(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 us}function s(l,d){a(l)===us&&(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 _w=function(r,t){return r===t};function Sw(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 Ew(e,r){var t=typeof r=="object"?r:{equalityCheck:r},a=t.equalityCheck,s=a===void 0?_w:a,i=t.maxSize,c=i===void 0?1:i,l=t.resultEqualityCheck,d=Sw(s),p=c===1?mw(d):bw(c,d);function g(){var b=p.get(arguments);if(b===us){if(b=e.apply(null,arguments),l){var _=p.getEntries(),S=_.find(function(T){return l(T.value,b)});S&&(b=S.value)}p.put(arguments,b)}return b}return g.clearCache=function(){return p.clear()},g}function ww(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 Tw(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,b={memoizeOptions:void 0},_=l.pop();if(typeof _=="object"&&(b=_,_=l.pop()),typeof _!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof _+"]");var S=b,T=S.memoizeOptions,x=T===void 0?t:T,D=Array.isArray(x)?x:[x],P=ww(l),j=e.apply(void 0,[function(){return p++,_.apply(null,arguments)}].concat(D)),M=e(function(){for(var O=[],z=P.length,q=0;q<z;q++)O.push(P[q].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 U=Tw(Ew);function eh(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 th=eh();th.withExtraArgument=eh;const Ud=th;var Cw=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)}}(),xw=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}}},cs=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},Rw=Object.defineProperty,Ow=Object.defineProperties,Aw=Object.getOwnPropertyDescriptors,Hd=Object.getOwnPropertySymbols,Pw=Object.prototype.hasOwnProperty,Dw=Object.prototype.propertyIsEnumerable,qd=function(e,r,t){return r in e?Rw(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t},tn=function(e,r){for(var t in r||(r={}))Pw.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];Dw.call(r,t)&&qd(e,t,r[t])}return e},gu=function(e,r){return Ow(e,Aw(r))},Iw=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())})},Fw=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?is:is.apply(null,arguments)};function rh(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 nh(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 $w=function(e){Cw(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,cs([void 0],t[0].concat(this)))):new(r.bind.apply(r,cs([void 0],t.concat(this))))},r}(Array),Mw=process.env.NODE_ENV==="production",Gd="Invariant failed";function Yd(e,r){if(!e)throw Mw?new Error(Gd):new Error(Gd+": "+(r||""))}function Lw(e,r,t,a){return JSON.stringify(e,Nw(r,a),t)}function Nw(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 kw(e){return typeof e!="object"||e===null||typeof e>"u"||Object.isFrozen(e)}function jw(e,r,t){var a=ah(e,r,t);return{detectMutations:function(){return oh(e,r,a,t)}}}function ah(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]=ah(e,r,t[i],c))}}return s}function oh(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 b=oh(e,r,t.children[p],a[p],l,g);if(b.wasMutated)return b}}return{wasMutated:!1}}function Bw(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?kw:r,a=e.ignoredPaths,s=e.warnAfter,i=s===void 0?32:s,c=e.ignore;a=a||c;var l=jw.bind(null,t,a);return function(d){var p=d.getState,g=p(),b=l(g),_;return function(S){return function(T){var x=nh(i,"ImmutableStateInvariantMiddleware");x.measureTime(function(){g=p(),_=b.detectMutations(),b=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 D=S(T);return x.measureTime(function(){g=p(),_=b.detectMutations(),b=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 "+Lw(T)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),x.warnIfExceeded(),D}}}}function sh(e){var r=typeof e;return r==="undefined"||e===null||r==="string"||r==="boolean"||r==="number"||Array.isArray(e)||rh(e)}function qu(e,r,t,a,s){r===void 0&&(r=""),t===void 0&&(t=sh),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],b=g[0],_=g[1],S=r?r+"."+b:b;if(!(l&&s.indexOf(S)>=0)){if(!t(_))return{keyPath:S,value:_};if(typeof _=="object"&&(i=qu(_,S,t,a,s),i))return i}}return!1}function Ww(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(T){return function(x){return T(x)}}};var r=e.isSerializable,t=r===void 0?sh: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,b=g===void 0?32:g,_=e.ignoreState,S=_===void 0?!1:_;return function(T){return function(x){return function(D){if(i.length&&i.indexOf(D.type)!==-1)return x(D);var P=nh(b,"SerializableStateInvariantMiddleware");P.measureTime(function(){var M=qu(D,"",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: `,D,`
|
|
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 j=x(D);return
|
|
6
|
+
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}});var j=x(D);return S||(P.measureTime(function(){var M=T.getState(),k=qu(M,"",t,a,p);if(k){var O=k.keyPath,z=k.value;console.error("A non-serializable value was detected in the state, in the path: `"+O+"`. Value:",z,`
|
|
7
7
|
Take a look at the reducer(s) handling this action type: `+D.type+`.
|
|
8
|
-
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),P.warnIfExceeded()),j}}}}function hu(e){return typeof e=="boolean"}function jw(){return function(r){return Bw(r)}}function Bw(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 Dw;if(t&&(hu(t)?l.push(Bd):l.push(Bd.withExtraArgument(t.extraArgument))),process.env.NODE_ENV!=="production"){if(s){var d={};hu(s)||(d=s),l.unshift(Nw(d))}if(c){var p={};hu(c)||(p=c),l.push(kw(p))}}return l}var gu=process.env.NODE_ENV==="production";function Ww(e){var r=jw(),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,b=t.enhancers,_=b===void 0?void 0:b,E;if(typeof s=="function")E=s;else if(eh(s))E=Xp(s);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var T=c;if(typeof T=="function"&&(T=T(r),!gu&&!Array.isArray(T)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!gu&&T.some(function(M){return typeof M!="function"}))throw new Error("each middleware provided to configureStore must be a function");var x=hw.apply(void 0,T),D=ss;d&&(D=Pw(tn({trace:!gu},typeof d=="object"&&d)));var P=[x];Array.isArray(_)?P=us([x],_):typeof _=="function"&&(P=_(P));var j=D.apply(void 0,P);return Jp(E,g,j)}function Oa(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 tn(tn({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 oh(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 Uw(e){return typeof e=="function"}function Hw(e,r,t,a){t===void 0&&(t=[]);var s=typeof r=="function"?oh(r):[r,t,a],i=s[0],c=s[1],l=s[2],d;if(Uw(e))d=function(){return Jo(e(),function(){})};else{var p=Jo(e,function(){});d=function(){return p}}function g(b,_){b===void 0&&(b=d());var E=us([i[_.type]],c.filter(function(T){var x=T.matcher;return x(_)}).map(function(T){var x=T.reducer;return x}));return E.filter(function(T){return!!T}).length===0&&(E=[l]),E.reduce(function(T,x){if(x)if(Mr(T)){var D=T,P=x(D,_);return typeof P>"u"?T:P}else{if(hr(T))return Jo(T,function(j){return x(j,_)});var P=x(T,_);if(typeof P>"u"){if(T===null)return T;throw Error("A case reducer on a non-draftable value must not return undefined")}return P}return T},b)}return g.getInitialState=d,g}function qw(e,r){return e+"/"+r}function Gt(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:Jo(e.initialState,function(){}),a=e.reducers||{},s=Object.keys(a),i={},c={},l={};s.forEach(function(g){var b=a[g],_=qw(r,g),E,T;"reducer"in b?(E=b.reducer,T=b.prepare):E=b,i[g]=E,c[_]=E,l[g]=T?Oa(_,T):Oa(_)});function d(){var g=typeof e.extraReducers=="function"?oh(e.extraReducers):[e.extraReducers],b=g[0],_=b===void 0?{}:b,E=g[1],T=E===void 0?[]:E,x=g[2],D=x===void 0?void 0:x,P=tn(tn({},_),c);return Hw(t,P,T,D)}var p;return{name:r,reducer:function(g,b){return p||(p=d()),p(g,b)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Gw="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ec=function(e){e===void 0&&(e=21);for(var r="",t=e;t--;)r+=Gw[Math.random()*64|0];return r},Yw=["name","message","stack","code"],vu=function(){function e(r,t){this.payload=r,this.meta=t}return e}(),Gd=function(){function e(r,t){this.payload=r,this.meta=t}return e}(),zw=function(e){if(typeof e=="object"&&e!==null){for(var r={},t=0,a=Yw;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=Oa(e+"/fulfilled",function(p,g,b,_){return{payload:p,meta:pu(tn({},_||{}),{arg:b,requestId:g,requestStatus:"fulfilled"})}}),s=Oa(e+"/pending",function(p,g,b){return{payload:void 0,meta:pu(tn({},b||{}),{arg:g,requestId:p,requestStatus:"pending"})}}),i=Oa(e+"/rejected",function(p,g,b,_,E){return{payload:_,error:(t&&t.serializeError||zw)(p||"Rejected"),meta:pu(tn({},E||{}),{arg:b,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,b,_){var E=t!=null&&t.idGenerator?t.idGenerator(p):Ec(),T=new l,x,D=new Promise(function(k,O){return T.signal.addEventListener("abort",function(){return O({name:"AbortError",message:x||"Aborted"})})}),P=!1;function j(k){P&&(x=k,T.abort())}var M=function(){return Aw(this,null,function(){var k,O,z,q,Y,te;return ww(this,function(Ue){switch(Ue.label){case 0:return Ue.trys.push([0,4,,5]),q=(k=t==null?void 0:t.condition)==null?void 0:k.call(t,p,{getState:b,extra:_}),Kw(q)?[4,q]:[3,2];case 1:q=Ue.sent(),Ue.label=2;case 2:if(q===!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:b,extra:_}))),[4,Promise.race([D,Promise.resolve(r(p,{dispatch:g,getState:b,extra:_,requestId:E,signal:T.signal,rejectWithValue:function(Te,st){return new vu(Te,st)},fulfillWithValue:function(Te,st){return new Gd(Te,st)}})).then(function(Te){if(Te instanceof vu)throw Te;return Te instanceof Gd?a(Te.payload,E,p,Te.meta):a(Te,E,p)})])];case 3:return z=Ue.sent(),[3,5];case 4:return Y=Ue.sent(),z=Y instanceof vu?i(null,E,p,Y.payload,Y.meta):i(Y,E,p),[3,5];case 5:return te=t&&!t.dispatchConditionRejection&&i.match(z)&&z.meta.condition,te||g(z),[2,z]}})})}();return Object.assign(M,{abort:j,requestId:E,arg:p,unwrap:function(){return M.then(Vw)}})}}return Object.assign(d,{pending:s,rejected:i,fulfilled:a,typePrefix:e})}function Vw(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Kw(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Jw=function(e){return e&&typeof e.match=="function"},Xw=function(e,r){return Jw(e)?e.match(r):e(r)};function dr(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return function(t){return e.some(function(a){return Xw(a,t)})}}function Sc(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 wc(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function sh(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return Sc(t,["pending"])}:wc(e)?function(t){var a=e.map(function(i){return i.pending}),s=dr.apply(void 0,a);return s(t)}:sh()(e[0])}function ih(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return Sc(t,["rejected"])}:wc(e)?function(t){var a=e.map(function(i){return i.rejected}),s=dr.apply(void 0,a);return s(t)}:ih()(e[0])}function uh(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return Sc(t,["fulfilled"])}:wc(e)?function(t){var a=e.map(function(i){return i.fulfilled}),s=dr.apply(void 0,a);return s(t)}:uh()(e[0])}XS();var Fr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ws(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Zw(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 Qw(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var ja=Qw,eT=typeof Fr=="object"&&Fr&&Fr.Object===Object&&Fr,ch=eT,tT=ch,rT=typeof self=="object"&&self&&self.Object===Object&&self,nT=tT||rT||Function("return this")(),Er=nT,aT=Er,oT=function(){return aT.Date.now()},sT=oT,iT=/\s/;function uT(e){for(var r=e.length;r--&&iT.test(e.charAt(r)););return r}var cT=uT,lT=cT,fT=/^\s+/;function dT(e){return e&&e.slice(0,lT(e)+1).replace(fT,"")}var pT=dT,hT=Er,gT=hT.Symbol,Tc=gT,Yd=Tc,lh=Object.prototype,vT=lh.hasOwnProperty,yT=lh.toString,wa=Yd?Yd.toStringTag:void 0;function mT(e){var r=vT.call(e,wa),t=e[wa];try{e[wa]=void 0;var a=!0}catch{}var s=yT.call(e);return a&&(r?e[wa]=t:delete e[wa]),s}var bT=mT,_T=Object.prototype,ET=_T.toString;function ST(e){return ET.call(e)}var wT=ST,zd=Tc,TT=bT,CT=wT,xT="[object Null]",RT="[object Undefined]",Vd=zd?zd.toStringTag:void 0;function OT(e){return e==null?e===void 0?RT:xT:Vd&&Vd in Object(e)?TT(e):CT(e)}var Ts=OT;function AT(e){return e!=null&&typeof e=="object"}var Cc=AT,PT=Ts,DT=Cc,IT="[object Symbol]";function FT(e){return typeof e=="symbol"||DT(e)&&PT(e)==IT}var $T=FT,MT=pT,Kd=ja,LT=$T,Jd=0/0,NT=/^[-+]0x[0-9a-f]+$/i,kT=/^0b[01]+$/i,jT=/^0o[0-7]+$/i,BT=parseInt;function WT(e){if(typeof e=="number")return e;if(LT(e))return Jd;if(Kd(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=Kd(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=MT(e);var t=kT.test(e);return t||jT.test(e)?BT(e.slice(2),t?2:8):NT.test(e)?Jd:+e}var UT=WT,HT=ja,yu=sT,Xd=UT,qT="Expected a function",GT=Math.max,YT=Math.min;function zT(e,r,t){var a,s,i,c,l,d,p=0,g=!1,b=!1,_=!0;if(typeof e!="function")throw new TypeError(qT);r=Xd(r)||0,HT(t)&&(g=!!t.leading,b="maxWait"in t,i=b?GT(Xd(t.maxWait)||0,r):i,_="trailing"in t?!!t.trailing:_);function E(z){var q=a,Y=s;return a=s=void 0,p=z,c=e.apply(Y,q),c}function T(z){return p=z,l=setTimeout(P,r),g?E(z):c}function x(z){var q=z-d,Y=z-p,te=r-q;return b?YT(te,i-Y):te}function D(z){var q=z-d,Y=z-p;return d===void 0||q>=r||q<0||b&&Y>=i}function P(){var z=yu();if(D(z))return j(z);l=setTimeout(P,x(z))}function j(z){return l=void 0,_&&a?E(z):(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(yu())}function O(){var z=yu(),q=D(z);if(a=arguments,s=this,d=z,q){if(l===void 0)return T(d);if(b)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 VT=zT,KT=VT,JT=ja,XT="Expected a function";function ZT(e,r,t){var a=!0,s=!0;if(typeof e!="function")throw new TypeError(XT);return JT(t)&&(a="leading"in t?!!t.leading:a,s="trailing"in t?!!t.trailing:s),KT(e,r,{leading:a,maxWait:r,trailing:s})}var QT=ZT;const e1=ws(QT);var fh=(e=>(e[e.First=0]="First",e[e.Last=-1]="Last",e))(fh||{}),Ir=(e=>(e.ATTACHED="attached",e.DETACHED="detached",e.ERROR="error",e))(Ir||{}),cs=(e=>(e.SOCKET_ERROR="socket-error",e.SOCKET_CLOSURE="socket-closure",e))(cs||{}),dh=(e=>(e.NOT_STARTED="remote debugger not started",e.ALREADY_IN_USE="already in use",e.TIMEOUT="timeout",e))(dh||{});const Cs=2e3,xc={tabs:[],activeTab:"",recent:[],roles:{roles:{},privileges:{},flags:{touched:!1},selectedTab:"roles",forceLogin:!1},sharedCSS:{state:"loading",styles:[]},debugger:{meta:{state:Ir.DETACHED},list:[],sessions:[],expressions:[]},webforms:{templates:{selectedGroup:"",data:[]},components:[],inspector:{css:{active:!1},datasource:{active:!1}},datasources:{theme:"grey"},flags:{"sidebar.section.resizable":!0}}},ph="4DWS_PREFS",hh=e=>`APP_STATE_${e}`,gh=()=>{var e,r;return((r=(e=window==null?void 0:window.$$datastores)==null?void 0:e.ds)==null?void 0:r.getBaseID())||""};function vh(e){try{const r=gh(),t=JSON.stringify(e);localStorage.setItem(hh(r),t)}catch(r){console.error(r)}}function yh(e){try{const r=JSON.stringify(e);localStorage.setItem(ph,r)}catch(r){console.error(r)}}function mh(){try{const e=localStorage.getItem(ph);if(e)return JSON.parse(e)}catch(e){console.error(e)}}function Jn(){const e=gh(),r=localStorage.getItem(hh(e));if(r){const t=JSON.parse(r);return t.tabs=t.tabs.map(a=>({...a,flags:{...a.flags,enabled:!0}})),t}return xc}function xs(e){const{name:r,type:t,path:a}=e,s=a.split(".").at(-1);switch(t){case m.FileFolderType.WEBFORM:return`${r}.WebForm`;case m.FileFolderType.METHOD:case m.FileFolderType.CLASS:return s?`${r}.${s}`:r;case m.FileFolderType.ROLES:return r;default:return`${r}.${t}`}}const bh=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 _h(e){return e?["json","4dmodel","webform","mform"].includes(e.toLowerCase()):!1}function Eh(e,r){return{...e,components:Object.entries(e.components||{}).reduce((t,[a,s])=>({...t,[a]:{...s,custom:Object.entries(s.custom).reduce((i,[c,l])=>c===`states:${r}`?i:{...i,[c]:l},{}),props:Object.entries(s.props).reduce((i,[c,l])=>{let d=l;return c==="events"&&(d=d.map(p=>{var g,b;return p.type==="simple-action"?{...p,state:{...p.state,states:(b=(g=p.state)==null?void 0:g.states)==null?void 0:b.filter(_=>_!==r)}}:p})),{...i,[c]:d}},{})}}),{}),metadata:{...e.metadata,states:e.metadata.states.filter(t=>t.id!==r)}}}function t1(){this.__data__=[],this.size=0}var r1=t1;function n1(e,r){return e===r||e!==e&&r!==r}var a1=n1,o1=a1;function s1(e,r){for(var t=e.length;t--;)if(o1(e[t][0],r))return t;return-1}var Rs=s1,i1=Rs,u1=Array.prototype,c1=u1.splice;function l1(e){var r=this.__data__,t=i1(r,e);if(t<0)return!1;var a=r.length-1;return t==a?r.pop():c1.call(r,t,1),--this.size,!0}var f1=l1,d1=Rs;function p1(e){var r=this.__data__,t=d1(r,e);return t<0?void 0:r[t][1]}var h1=p1,g1=Rs;function v1(e){return g1(this.__data__,e)>-1}var y1=v1,m1=Rs;function b1(e,r){var t=this.__data__,a=m1(t,e);return a<0?(++this.size,t.push([e,r])):t[a][1]=r,this}var _1=b1,E1=r1,S1=f1,w1=h1,T1=y1,C1=_1;function Xn(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])}}Xn.prototype.clear=E1;Xn.prototype.delete=S1;Xn.prototype.get=w1;Xn.prototype.has=T1;Xn.prototype.set=C1;var Os=Xn,x1=Os;function R1(){this.__data__=new x1,this.size=0}var O1=R1;function A1(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}var P1=A1;function D1(e){return this.__data__.get(e)}var I1=D1;function F1(e){return this.__data__.has(e)}var $1=F1,M1=Ts,L1=ja,N1="[object AsyncFunction]",k1="[object Function]",j1="[object GeneratorFunction]",B1="[object Proxy]";function W1(e){if(!L1(e))return!1;var r=M1(e);return r==k1||r==j1||r==N1||r==B1}var U1=W1,H1=Er,q1=H1["__core-js_shared__"],G1=q1,mu=G1,Zd=function(){var e=/[^.]+$/.exec(mu&&mu.keys&&mu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Y1(e){return!!Zd&&Zd in e}var z1=Y1,V1=Function.prototype,K1=V1.toString;function J1(e){if(e!=null){try{return K1.call(e)}catch{}try{return e+""}catch{}}return""}var Sh=J1,X1=U1,Z1=z1,Q1=ja,eC=Sh,tC=/[\\^$.*+?()[\]{}|]/g,rC=/^\[object .+?Constructor\]$/,nC=Function.prototype,aC=Object.prototype,oC=nC.toString,sC=aC.hasOwnProperty,iC=RegExp("^"+oC.call(sC).replace(tC,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function uC(e){if(!Q1(e)||Z1(e))return!1;var r=X1(e)?iC:rC;return r.test(eC(e))}var cC=uC;function lC(e,r){return e==null?void 0:e[r]}var fC=lC,dC=cC,pC=fC;function hC(e,r){var t=pC(e,r);return dC(t)?t:void 0}var Zn=hC,gC=Zn,vC=Er,yC=gC(vC,"Map"),Rc=yC,mC=Zn,bC=mC(Object,"create"),As=bC,Qd=As;function _C(){this.__data__=Qd?Qd(null):{},this.size=0}var EC=_C;function SC(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var wC=SC,TC=As,CC="__lodash_hash_undefined__",xC=Object.prototype,RC=xC.hasOwnProperty;function OC(e){var r=this.__data__;if(TC){var t=r[e];return t===CC?void 0:t}return RC.call(r,e)?r[e]:void 0}var AC=OC,PC=As,DC=Object.prototype,IC=DC.hasOwnProperty;function FC(e){var r=this.__data__;return PC?r[e]!==void 0:IC.call(r,e)}var $C=FC,MC=As,LC="__lodash_hash_undefined__";function NC(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=MC&&r===void 0?LC:r,this}var kC=NC,jC=EC,BC=wC,WC=AC,UC=$C,HC=kC;function Qn(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])}}Qn.prototype.clear=jC;Qn.prototype.delete=BC;Qn.prototype.get=WC;Qn.prototype.has=UC;Qn.prototype.set=HC;var qC=Qn,ep=qC,GC=Os,YC=Rc;function zC(){this.size=0,this.__data__={hash:new ep,map:new(YC||GC),string:new ep}}var VC=zC;function KC(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var JC=KC,XC=JC;function ZC(e,r){var t=e.__data__;return XC(r)?t[typeof r=="string"?"string":"hash"]:t.map}var Ps=ZC,QC=Ps;function ex(e){var r=QC(this,e).delete(e);return this.size-=r?1:0,r}var tx=ex,rx=Ps;function nx(e){return rx(this,e).get(e)}var ax=nx,ox=Ps;function sx(e){return ox(this,e).has(e)}var ix=sx,ux=Ps;function cx(e,r){var t=ux(this,e),a=t.size;return t.set(e,r),this.size+=t.size==a?0:1,this}var lx=cx,fx=VC,dx=tx,px=ax,hx=ix,gx=lx;function ea(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])}}ea.prototype.clear=fx;ea.prototype.delete=dx;ea.prototype.get=px;ea.prototype.has=hx;ea.prototype.set=gx;var wh=ea,vx=Os,yx=Rc,mx=wh,bx=200;function _x(e,r){var t=this.__data__;if(t instanceof vx){var a=t.__data__;if(!yx||a.length<bx-1)return a.push([e,r]),this.size=++t.size,this;t=this.__data__=new mx(a)}return t.set(e,r),this.size=t.size,this}var Ex=_x,Sx=Os,wx=O1,Tx=P1,Cx=I1,xx=$1,Rx=Ex;function Ba(e){var r=this.__data__=new Sx(e);this.size=r.size}Ba.prototype.clear=wx;Ba.prototype.delete=Tx;Ba.prototype.get=Cx;Ba.prototype.has=xx;Ba.prototype.set=Rx;var Ox="__lodash_hash_undefined__";function Ax(e){return this.__data__.set(e,Ox),this}var Px=Ax;function Dx(e){return this.__data__.has(e)}var Ix=Dx,Fx=wh,$x=Px,Mx=Ix;function Hu(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new Fx;++r<t;)this.add(e[r])}Hu.prototype.add=Hu.prototype.push=$x;Hu.prototype.has=Mx;var Lx=Er;Lx.Uint8Array;var tp=Tc,rp=tp?tp.prototype:void 0;rp&&rp.valueOf;var Nx=Ts,kx=Cc,jx="[object Arguments]";function Bx(e){return kx(e)&&Nx(e)==jx}var Wx=Bx,np=Wx,Ux=Cc,Th=Object.prototype,Hx=Th.hasOwnProperty,qx=Th.propertyIsEnumerable;np(function(){return arguments}());var ls={exports:{}};function Gx(){return!1}var Yx=Gx;ls.exports;(function(e,r){var t=Er,a=Yx,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})(ls,ls.exports);ls.exports;var fs={exports:{}};fs.exports;(function(e,r){var t=ch,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})(fs,fs.exports);var zx=fs.exports,ap=zx;ap&&ap.isTypedArray;var Vx=Zn,Kx=Er,Jx=Vx(Kx,"DataView"),Xx=Jx,Zx=Zn,Qx=Er,eR=Zx(Qx,"Promise"),tR=eR,rR=Zn,nR=Er,aR=rR(nR,"Set"),oR=aR,sR=Zn,iR=Er,uR=sR(iR,"WeakMap"),cR=uR,qu=Xx,Gu=Rc,Yu=tR,zu=oR,Vu=cR,Ch=Ts,ta=Sh,op="[object Map]",lR="[object Object]",sp="[object Promise]",ip="[object Set]",up="[object WeakMap]",cp="[object DataView]",fR=ta(qu),dR=ta(Gu),pR=ta(Yu),hR=ta(zu),gR=ta(Vu),Wn=Ch;(qu&&Wn(new qu(new ArrayBuffer(1)))!=cp||Gu&&Wn(new Gu)!=op||Yu&&Wn(Yu.resolve())!=sp||zu&&Wn(new zu)!=ip||Vu&&Wn(new Vu)!=up)&&(Wn=function(e){var r=Ch(e),t=r==lR?e.constructor:void 0,a=t?ta(t):"";if(a)switch(a){case fR:return cp;case dR:return op;case pR:return sp;case hR:return ip;case gR:return up}return r});const vR="ROOT";QS(),ZS();var lp;(function(e){e[e.HandlerDisabled=0]="HandlerDisabled",e[e.HandlerEnabled=1]="HandlerEnabled"})(lp||(lp={}));var ds={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 vu(e){return typeof e=="boolean"}function Uw(){return function(r){return Hw(r)}}function Hw(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 $w;if(t&&(vu(t)?l.push(Ud):l.push(Ud.withExtraArgument(t.extraArgument))),process.env.NODE_ENV!=="production"){if(s){var d={};vu(s)||(d=s),l.unshift(Bw(d))}if(c){var p={};vu(c)||(p=c),l.push(Ww(p))}}return l}var yu=process.env.NODE_ENV==="production";function qw(e){var r=Uw(),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,b=t.enhancers,_=b===void 0?void 0:b,S;if(typeof s=="function")S=s;else if(rh(s))S=Qp(s);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var T=c;if(typeof T=="function"&&(T=T(r),!yu&&!Array.isArray(T)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!yu&&T.some(function(M){return typeof M!="function"}))throw new Error("each middleware provided to configureStore must be a function");var x=yw.apply(void 0,T),D=is;d&&(D=Fw(tn({trace:!yu},typeof d=="object"&&d)));var P=[x];Array.isArray(_)?P=cs([x],_):typeof _=="function"&&(P=_(P));var j=D.apply(void 0,P);return Zp(S,g,j)}function Oa(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 tn(tn({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 ih(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 Gw(e){return typeof e=="function"}function Yw(e,r,t,a){t===void 0&&(t=[]);var s=typeof r=="function"?ih(r):[r,t,a],i=s[0],c=s[1],l=s[2],d;if(Gw(e))d=function(){return Xo(e(),function(){})};else{var p=Xo(e,function(){});d=function(){return p}}function g(b,_){b===void 0&&(b=d());var S=cs([i[_.type]],c.filter(function(T){var x=T.matcher;return x(_)}).map(function(T){var x=T.reducer;return x}));return S.filter(function(T){return!!T}).length===0&&(S=[l]),S.reduce(function(T,x){if(x)if(Mr(T)){var D=T,P=x(D,_);return typeof P>"u"?T:P}else{if(hr(T))return Xo(T,function(j){return x(j,_)});var P=x(T,_);if(typeof P>"u"){if(T===null)return T;throw Error("A case reducer on a non-draftable value must not return undefined")}return P}return T},b)}return g.getInitialState=d,g}function zw(e,r){return e+"/"+r}function Gt(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:Xo(e.initialState,function(){}),a=e.reducers||{},s=Object.keys(a),i={},c={},l={};s.forEach(function(g){var b=a[g],_=zw(r,g),S,T;"reducer"in b?(S=b.reducer,T=b.prepare):S=b,i[g]=S,c[_]=S,l[g]=T?Oa(_,T):Oa(_)});function d(){var g=typeof e.extraReducers=="function"?ih(e.extraReducers):[e.extraReducers],b=g[0],_=b===void 0?{}:b,S=g[1],T=S===void 0?[]:S,x=g[2],D=x===void 0?void 0:x,P=tn(tn({},_),c);return Yw(t,P,T,D)}var p;return{name:r,reducer:function(g,b){return p||(p=d()),p(g,b)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Vw="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",wc=function(e){e===void 0&&(e=21);for(var r="",t=e;t--;)r+=Vw[Math.random()*64|0];return r},Kw=["name","message","stack","code"],mu=function(){function e(r,t){this.payload=r,this.meta=t}return e}(),zd=function(){function e(r,t){this.payload=r,this.meta=t}return e}(),Jw=function(e){if(typeof e=="object"&&e!==null){for(var r={},t=0,a=Kw;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=Oa(e+"/fulfilled",function(p,g,b,_){return{payload:p,meta:gu(tn({},_||{}),{arg:b,requestId:g,requestStatus:"fulfilled"})}}),s=Oa(e+"/pending",function(p,g,b){return{payload:void 0,meta:gu(tn({},b||{}),{arg:g,requestId:p,requestStatus:"pending"})}}),i=Oa(e+"/rejected",function(p,g,b,_,S){return{payload:_,error:(t&&t.serializeError||Jw)(p||"Rejected"),meta:gu(tn({},S||{}),{arg:b,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,b,_){var S=t!=null&&t.idGenerator?t.idGenerator(p):wc(),T=new l,x,D=new Promise(function(k,O){return T.signal.addEventListener("abort",function(){return O({name:"AbortError",message:x||"Aborted"})})}),P=!1;function j(k){P&&(x=k,T.abort())}var M=function(){return Iw(this,null,function(){var k,O,z,q,Y,te;return xw(this,function(Ue){switch(Ue.label){case 0:return Ue.trys.push([0,4,,5]),q=(k=t==null?void 0:t.condition)==null?void 0:k.call(t,p,{getState:b,extra:_}),Zw(q)?[4,q]:[3,2];case 1:q=Ue.sent(),Ue.label=2;case 2:if(q===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return P=!0,g(s(S,p,(O=t==null?void 0:t.getPendingMeta)==null?void 0:O.call(t,{requestId:S,arg:p},{getState:b,extra:_}))),[4,Promise.race([D,Promise.resolve(r(p,{dispatch:g,getState:b,extra:_,requestId:S,signal:T.signal,rejectWithValue:function(Te,st){return new mu(Te,st)},fulfillWithValue:function(Te,st){return new zd(Te,st)}})).then(function(Te){if(Te instanceof mu)throw Te;return Te instanceof zd?a(Te.payload,S,p,Te.meta):a(Te,S,p)})])];case 3:return z=Ue.sent(),[3,5];case 4:return Y=Ue.sent(),z=Y instanceof mu?i(null,S,p,Y.payload,Y.meta):i(Y,S,p),[3,5];case 5:return te=t&&!t.dispatchConditionRejection&&i.match(z)&&z.meta.condition,te||g(z),[2,z]}})})}();return Object.assign(M,{abort:j,requestId:S,arg:p,unwrap:function(){return M.then(Xw)}})}}return Object.assign(d,{pending:s,rejected:i,fulfilled:a,typePrefix:e})}function Xw(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Zw(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Qw=function(e){return e&&typeof e.match=="function"},eT=function(e,r){return Qw(e)?e.match(r):e(r)};function dr(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return function(t){return e.some(function(a){return eT(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 Cc(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function uh(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.length===0?function(t){return Tc(t,["pending"])}:Cc(e)?function(t){var a=e.map(function(i){return i.pending}),s=dr.apply(void 0,a);return s(t)}:uh()(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,["rejected"])}:Cc(e)?function(t){var a=e.map(function(i){return i.rejected}),s=dr.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,["fulfilled"])}:Cc(e)?function(t){var a=e.map(function(i){return i.fulfilled}),s=dr.apply(void 0,a);return s(t)}:lh()(e[0])}ew();var Fr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ws(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function tT(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 rT(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var Ba=rT,nT=typeof Fr=="object"&&Fr&&Fr.Object===Object&&Fr,fh=nT,aT=fh,oT=typeof self=="object"&&self&&self.Object===Object&&self,sT=aT||oT||Function("return this")(),Sr=sT,iT=Sr,uT=function(){return iT.Date.now()},cT=uT,lT=/\s/;function fT(e){for(var r=e.length;r--&&lT.test(e.charAt(r)););return r}var dT=fT,pT=dT,hT=/^\s+/;function gT(e){return e&&e.slice(0,pT(e)+1).replace(hT,"")}var vT=gT,yT=Sr,mT=yT.Symbol,xc=mT,Vd=xc,dh=Object.prototype,bT=dh.hasOwnProperty,_T=dh.toString,wa=Vd?Vd.toStringTag:void 0;function ST(e){var r=bT.call(e,wa),t=e[wa];try{e[wa]=void 0;var a=!0}catch{}var s=_T.call(e);return a&&(r?e[wa]=t:delete e[wa]),s}var ET=ST,wT=Object.prototype,TT=wT.toString;function CT(e){return TT.call(e)}var xT=CT,Kd=xc,RT=ET,OT=xT,AT="[object Null]",PT="[object Undefined]",Jd=Kd?Kd.toStringTag:void 0;function DT(e){return e==null?e===void 0?PT:AT:Jd&&Jd in Object(e)?RT(e):OT(e)}var Ts=DT;function IT(e){return e!=null&&typeof e=="object"}var Rc=IT,FT=Ts,$T=Rc,MT="[object Symbol]";function LT(e){return typeof e=="symbol"||$T(e)&&FT(e)==MT}var NT=LT,kT=vT,Xd=Ba,jT=NT,Zd=0/0,BT=/^[-+]0x[0-9a-f]+$/i,WT=/^0b[01]+$/i,UT=/^0o[0-7]+$/i,HT=parseInt;function qT(e){if(typeof e=="number")return e;if(jT(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=kT(e);var t=WT.test(e);return t||UT.test(e)?HT(e.slice(2),t?2:8):BT.test(e)?Zd:+e}var GT=qT,YT=Ba,bu=cT,Qd=GT,zT="Expected a function",VT=Math.max,KT=Math.min;function JT(e,r,t){var a,s,i,c,l,d,p=0,g=!1,b=!1,_=!0;if(typeof e!="function")throw new TypeError(zT);r=Qd(r)||0,YT(t)&&(g=!!t.leading,b="maxWait"in t,i=b?VT(Qd(t.maxWait)||0,r):i,_="trailing"in t?!!t.trailing:_);function S(z){var q=a,Y=s;return a=s=void 0,p=z,c=e.apply(Y,q),c}function T(z){return p=z,l=setTimeout(P,r),g?S(z):c}function x(z){var q=z-d,Y=z-p,te=r-q;return b?KT(te,i-Y):te}function D(z){var q=z-d,Y=z-p;return d===void 0||q>=r||q<0||b&&Y>=i}function P(){var z=bu();if(D(z))return j(z);l=setTimeout(P,x(z))}function j(z){return l=void 0,_&&a?S(z):(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(bu())}function O(){var z=bu(),q=D(z);if(a=arguments,s=this,d=z,q){if(l===void 0)return T(d);if(b)return clearTimeout(l),l=setTimeout(P,r),S(d)}return l===void 0&&(l=setTimeout(P,r)),c}return O.cancel=M,O.flush=k,O}var XT=JT,ZT=XT,QT=Ba,e1="Expected a function";function t1(e,r,t){var a=!0,s=!0;if(typeof e!="function")throw new TypeError(e1);return QT(t)&&(a="leading"in t?!!t.leading:a,s="trailing"in t?!!t.trailing:s),ZT(e,r,{leading:a,maxWait:r,trailing:s})}var r1=t1;const n1=ws(r1);var ph=(e=>(e[e.First=0]="First",e[e.Last=-1]="Last",e))(ph||{}),Ir=(e=>(e.ATTACHED="attached",e.DETACHED="detached",e.ERROR="error",e))(Ir||{}),ls=(e=>(e.SOCKET_ERROR="socket-error",e.SOCKET_CLOSURE="socket-closure",e))(ls||{}),hh=(e=>(e.NOT_STARTED="remote debugger not started",e.ALREADY_IN_USE="already in use",e.TIMEOUT="timeout",e))(hh||{});const Cs=2e3,Oc={tabs:[],activeTab:"",recent:[],roles:{roles:{},privileges:{},flags:{touched:!1},selectedTab:"roles",forceLogin:!1},sharedCSS:{state:"loading",styles:[]},debugger:{meta:{state:Ir.DETACHED},list:[],sessions:[],expressions:[]},webforms:{templates:{selectedGroup:"",data:[]},components:[],inspector:{css:{active:!1},datasource:{active:!1}},datasources:{theme:"grey"},flags:{"sidebar.section.resizable":!0}}},gh="4DWS_PREFS",vh=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 mh(e){try{const r=yh(),t=JSON.stringify(e);localStorage.setItem(vh(r),t)}catch(r){console.error(r)}}function bh(e){try{const r=JSON.stringify(e);localStorage.setItem(gh,r)}catch(r){console.error(r)}}function _h(){try{const e=localStorage.getItem(gh);if(e)return JSON.parse(e)}catch(e){console.error(e)}}function Jn(){const e=yh(),r=localStorage.getItem(vh(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 xs(e){const{name:r,type:t,path:a}=e,s=a.split(".").at(-1);switch(t){case m.FileFolderType.WEBFORM:return`${r}.WebForm`;case m.FileFolderType.METHOD:case m.FileFolderType.CLASS:return s?`${r}.${s}`:r;case m.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 Eh(e){return e?["json","4dmodel","webform","mform"].includes(e.toLowerCase()):!1}function wh(e,r){return{...e,components:Object.entries(e.components||{}).reduce((t,[a,s])=>({...t,[a]:{...s,custom:Object.entries(s.custom).reduce((i,[c,l])=>c===`states:${r}`?i:{...i,[c]:l},{}),props:Object.entries(s.props).reduce((i,[c,l])=>{let d=l;return c==="events"&&(d=d.map(p=>{var g,b;return p.type==="simple-action"?{...p,state:{...p.state,states:(b=(g=p.state)==null?void 0:g.states)==null?void 0:b.filter(_=>_!==r)}}:p})),{...i,[c]:d}},{})}}),{}),metadata:{...e.metadata,states:e.metadata.states.filter(t=>t.id!==r)}}}function a1(){this.__data__=[],this.size=0}var o1=a1;function s1(e,r){return e===r||e!==e&&r!==r}var i1=s1,u1=i1;function c1(e,r){for(var t=e.length;t--;)if(u1(e[t][0],r))return t;return-1}var Rs=c1,l1=Rs,f1=Array.prototype,d1=f1.splice;function p1(e){var r=this.__data__,t=l1(r,e);if(t<0)return!1;var a=r.length-1;return t==a?r.pop():d1.call(r,t,1),--this.size,!0}var h1=p1,g1=Rs;function v1(e){var r=this.__data__,t=g1(r,e);return t<0?void 0:r[t][1]}var y1=v1,m1=Rs;function b1(e){return m1(this.__data__,e)>-1}var _1=b1,S1=Rs;function E1(e,r){var t=this.__data__,a=S1(t,e);return a<0?(++this.size,t.push([e,r])):t[a][1]=r,this}var w1=E1,T1=o1,C1=h1,x1=y1,R1=_1,O1=w1;function Xn(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])}}Xn.prototype.clear=T1;Xn.prototype.delete=C1;Xn.prototype.get=x1;Xn.prototype.has=R1;Xn.prototype.set=O1;var Os=Xn,A1=Os;function P1(){this.__data__=new A1,this.size=0}var D1=P1;function I1(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}var F1=I1;function $1(e){return this.__data__.get(e)}var M1=$1;function L1(e){return this.__data__.has(e)}var N1=L1,k1=Ts,j1=Ba,B1="[object AsyncFunction]",W1="[object Function]",U1="[object GeneratorFunction]",H1="[object Proxy]";function q1(e){if(!j1(e))return!1;var r=k1(e);return r==W1||r==U1||r==B1||r==H1}var G1=q1,Y1=Sr,z1=Y1["__core-js_shared__"],V1=z1,_u=V1,ep=function(){var e=/[^.]+$/.exec(_u&&_u.keys&&_u.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function K1(e){return!!ep&&ep in e}var J1=K1,X1=Function.prototype,Z1=X1.toString;function Q1(e){if(e!=null){try{return Z1.call(e)}catch{}try{return e+""}catch{}}return""}var Th=Q1,eC=G1,tC=J1,rC=Ba,nC=Th,aC=/[\\^$.*+?()[\]{}|]/g,oC=/^\[object .+?Constructor\]$/,sC=Function.prototype,iC=Object.prototype,uC=sC.toString,cC=iC.hasOwnProperty,lC=RegExp("^"+uC.call(cC).replace(aC,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function fC(e){if(!rC(e)||tC(e))return!1;var r=eC(e)?lC:oC;return r.test(nC(e))}var dC=fC;function pC(e,r){return e==null?void 0:e[r]}var hC=pC,gC=dC,vC=hC;function yC(e,r){var t=vC(e,r);return gC(t)?t:void 0}var Zn=yC,mC=Zn,bC=Sr,_C=mC(bC,"Map"),Ac=_C,SC=Zn,EC=SC(Object,"create"),As=EC,tp=As;function wC(){this.__data__=tp?tp(null):{},this.size=0}var TC=wC;function CC(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var xC=CC,RC=As,OC="__lodash_hash_undefined__",AC=Object.prototype,PC=AC.hasOwnProperty;function DC(e){var r=this.__data__;if(RC){var t=r[e];return t===OC?void 0:t}return PC.call(r,e)?r[e]:void 0}var IC=DC,FC=As,$C=Object.prototype,MC=$C.hasOwnProperty;function LC(e){var r=this.__data__;return FC?r[e]!==void 0:MC.call(r,e)}var NC=LC,kC=As,jC="__lodash_hash_undefined__";function BC(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=kC&&r===void 0?jC:r,this}var WC=BC,UC=TC,HC=xC,qC=IC,GC=NC,YC=WC;function Qn(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])}}Qn.prototype.clear=UC;Qn.prototype.delete=HC;Qn.prototype.get=qC;Qn.prototype.has=GC;Qn.prototype.set=YC;var zC=Qn,rp=zC,VC=Os,KC=Ac;function JC(){this.size=0,this.__data__={hash:new rp,map:new(KC||VC),string:new rp}}var XC=JC;function ZC(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var QC=ZC,ex=QC;function tx(e,r){var t=e.__data__;return ex(r)?t[typeof r=="string"?"string":"hash"]:t.map}var Ps=tx,rx=Ps;function nx(e){var r=rx(this,e).delete(e);return this.size-=r?1:0,r}var ax=nx,ox=Ps;function sx(e){return ox(this,e).get(e)}var ix=sx,ux=Ps;function cx(e){return ux(this,e).has(e)}var lx=cx,fx=Ps;function dx(e,r){var t=fx(this,e),a=t.size;return t.set(e,r),this.size+=t.size==a?0:1,this}var px=dx,hx=XC,gx=ax,vx=ix,yx=lx,mx=px;function ea(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])}}ea.prototype.clear=hx;ea.prototype.delete=gx;ea.prototype.get=vx;ea.prototype.has=yx;ea.prototype.set=mx;var Ch=ea,bx=Os,_x=Ac,Sx=Ch,Ex=200;function wx(e,r){var t=this.__data__;if(t instanceof bx){var a=t.__data__;if(!_x||a.length<Ex-1)return a.push([e,r]),this.size=++t.size,this;t=this.__data__=new Sx(a)}return t.set(e,r),this.size=t.size,this}var Tx=wx,Cx=Os,xx=D1,Rx=F1,Ox=M1,Ax=N1,Px=Tx;function Wa(e){var r=this.__data__=new Cx(e);this.size=r.size}Wa.prototype.clear=xx;Wa.prototype.delete=Rx;Wa.prototype.get=Ox;Wa.prototype.has=Ax;Wa.prototype.set=Px;var Dx="__lodash_hash_undefined__";function Ix(e){return this.__data__.set(e,Dx),this}var Fx=Ix;function $x(e){return this.__data__.has(e)}var Mx=$x,Lx=Ch,Nx=Fx,kx=Mx;function Gu(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new Lx;++r<t;)this.add(e[r])}Gu.prototype.add=Gu.prototype.push=Nx;Gu.prototype.has=kx;var jx=Sr;jx.Uint8Array;var np=xc,ap=np?np.prototype:void 0;ap&&ap.valueOf;var Bx=Ts,Wx=Rc,Ux="[object Arguments]";function Hx(e){return Wx(e)&&Bx(e)==Ux}var qx=Hx,op=qx,Gx=Rc,xh=Object.prototype,Yx=xh.hasOwnProperty,zx=xh.propertyIsEnumerable;op(function(){return arguments}());var fs={exports:{}};function Vx(){return!1}var Kx=Vx;fs.exports;(function(e,r){var t=Sr,a=Kx,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})(fs,fs.exports);fs.exports;var ds={exports:{}};ds.exports;(function(e,r){var t=fh,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})(ds,ds.exports);var Jx=ds.exports,sp=Jx;sp&&sp.isTypedArray;var Xx=Zn,Zx=Sr,Qx=Xx(Zx,"DataView"),eR=Qx,tR=Zn,rR=Sr,nR=tR(rR,"Promise"),aR=nR,oR=Zn,sR=Sr,iR=oR(sR,"Set"),uR=iR,cR=Zn,lR=Sr,fR=cR(lR,"WeakMap"),dR=fR,Yu=eR,zu=Ac,Vu=aR,Ku=uR,Ju=dR,Rh=Ts,ta=Th,ip="[object Map]",pR="[object Object]",up="[object Promise]",cp="[object Set]",lp="[object WeakMap]",fp="[object DataView]",hR=ta(Yu),gR=ta(zu),vR=ta(Vu),yR=ta(Ku),mR=ta(Ju),Wn=Rh;(Yu&&Wn(new Yu(new ArrayBuffer(1)))!=fp||zu&&Wn(new zu)!=ip||Vu&&Wn(Vu.resolve())!=up||Ku&&Wn(new Ku)!=cp||Ju&&Wn(new Ju)!=lp)&&(Wn=function(e){var r=Rh(e),t=r==pR?e.constructor:void 0,a=t?ta(t):"";if(a)switch(a){case hR:return fp;case gR:return ip;case vR:return up;case yR:return cp;case mR:return lp}return r});const bR="ROOT";rw(),tw();var dp;(function(e){e[e.HandlerDisabled=0]="HandlerDisabled",e[e.HandlerEnabled=1]="HandlerEnabled"})(dp||(dp={}));var ps={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
|
-
*/ds.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__",b=1,_=2,E=4,T=1,x=2,D=1,P=2,j=4,M=8,k=16,O=32,z=64,q=128,Y=256,te=512,Ue=30,Te="...",st=800,X=16,Pe=1,it=2,Qe=3,qe=1/0,rt=9007199254740991,Yt=17976931348623157e292,W=0/0,G=4294967295,de=G-1,le=G>>>1,se=[["ary",q],["bind",D],["bindKey",P],["curry",M],["curryRight",k],["flip",te],["partial",O],["partialRight",z],["rearg",Y]],fe="[object Arguments]",ne="[object Array]",ce="[object AsyncFunction]",ue="[object Boolean]",he="[object Date]",ge="[object DOMException]",K="[object Error]",F="[object Function]",ze="[object GeneratorFunction]",Ge="[object Map]",mt="[object Number]",qa="[object Null]",zt="[object Object]",nn="[object Promise]",qs="[object Proxy]",or="[object RegExp]",xt="[object Set]",an="[object String]",on="[object Symbol]",Ga="[object Undefined]",Sr="[object WeakMap]",Gs="[object WeakSet]",sn="[object ArrayBuffer]",Wr="[object DataView]",na="[object Float32Array]",aa="[object Float64Array]",oa="[object Int8Array]",sa="[object Int16Array]",un="[object Int32Array]",xn="[object Uint8Array]",gr="[object Uint8ClampedArray]",cn="[object Uint16Array]",ln="[object Uint32Array]",Ya=/\b__p \+= '';/g,Ys=/\b(__p \+=) '' \+/g,za=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Va=/&(?:amp|lt|gt|quot|#39);/g,ia=/[&<>"']/g,Ka=RegExp(Va.source),zs=RegExp(ia.source),Vs=/<%-([\s\S]+?)%>/g,Ja=/<%([\s\S]+?)%>/g,Xa=/<%=([\s\S]+?)%>/g,Ks=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Js=/^\w*$/,Xs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w=/[\\^$.*+?()[\]{}|]/g,H=RegExp(w.source),J=/^\s+/,ie=/\s/,Le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ne=/\{\n\/\* \[wrapped with (.+)\] \*/,Ce=/,? & /,Ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ht=/[()=,{}\[\]\/\s]/,Xe=/\\(\\)?/g,et=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vt=/\w*$/,Ur=/^[-+]0x[0-9a-f]+$/i,Za=/^0b[01]+$/i,sr=/^\[object .+?Constructor\]$/,Lv=/^0o[0-7]+$/i,Nv=/^(?:0|[1-9]\d*)$/,kv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qa=/($^)/,jv=/['\n\r\u2028\u2029\\]/g,eo="\\ud800-\\udfff",Bv="\\u0300-\\u036f",Wv="\\ufe20-\\ufe2f",Uv="\\u20d0-\\u20ff",al=Bv+Wv+Uv,ol="\\u2700-\\u27bf",sl="a-z\\xdf-\\xf6\\xf8-\\xff",Hv="\\xac\\xb1\\xd7\\xf7",qv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Gv="\\u2000-\\u206f",Yv=" \\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",il="A-Z\\xc0-\\xd6\\xd8-\\xde",ul="\\ufe0e\\ufe0f",cl=Hv+qv+Gv+Yv,Zs="['’]",zv="["+eo+"]",ll="["+cl+"]",to="["+al+"]",fl="\\d+",Vv="["+ol+"]",dl="["+sl+"]",pl="[^"+eo+cl+fl+ol+sl+il+"]",Qs="\\ud83c[\\udffb-\\udfff]",Kv="(?:"+to+"|"+Qs+")",hl="[^"+eo+"]",ei="(?:\\ud83c[\\udde6-\\uddff]){2}",ti="[\\ud800-\\udbff][\\udc00-\\udfff]",Rn="["+il+"]",gl="\\u200d",vl="(?:"+dl+"|"+pl+")",Jv="(?:"+Rn+"|"+pl+")",yl="(?:"+Zs+"(?:d|ll|m|re|s|t|ve))?",ml="(?:"+Zs+"(?:D|LL|M|RE|S|T|VE))?",bl=Kv+"?",_l="["+ul+"]?",Xv="(?:"+gl+"(?:"+[hl,ei,ti].join("|")+")"+_l+bl+")*",Zv="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Qv="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",El=_l+bl+Xv,ey="(?:"+[Vv,ei,ti].join("|")+")"+El,ty="(?:"+[hl+to+"?",to,ei,ti,zv].join("|")+")",ry=RegExp(Zs,"g"),ny=RegExp(to,"g"),ri=RegExp(Qs+"(?="+Qs+")|"+ty+El,"g"),ay=RegExp([Rn+"?"+dl+"+"+yl+"(?="+[ll,Rn,"$"].join("|")+")",Jv+"+"+ml+"(?="+[ll,Rn+vl,"$"].join("|")+")",Rn+"?"+vl+"+"+yl,Rn+"+"+ml,Qv,Zv,fl,ey].join("|"),"g"),oy=RegExp("["+gl+eo+al+ul+"]"),sy=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,iy=["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"],uy=-1,Ve={};Ve[na]=Ve[aa]=Ve[oa]=Ve[sa]=Ve[un]=Ve[xn]=Ve[gr]=Ve[cn]=Ve[ln]=!0,Ve[fe]=Ve[ne]=Ve[sn]=Ve[ue]=Ve[Wr]=Ve[he]=Ve[K]=Ve[F]=Ve[Ge]=Ve[mt]=Ve[zt]=Ve[or]=Ve[xt]=Ve[an]=Ve[Sr]=!1;var Ye={};Ye[fe]=Ye[ne]=Ye[sn]=Ye[Wr]=Ye[ue]=Ye[he]=Ye[na]=Ye[aa]=Ye[oa]=Ye[sa]=Ye[un]=Ye[Ge]=Ye[mt]=Ye[zt]=Ye[or]=Ye[xt]=Ye[an]=Ye[on]=Ye[xn]=Ye[gr]=Ye[cn]=Ye[ln]=!0,Ye[K]=Ye[F]=Ye[Sr]=!1;var cy={À:"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"},ly={"&":"&","<":"<",">":">",'"':""","'":"'"},fy={"&":"&","<":"<",">":">",""":'"',"'":"'"},dy={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},py=parseFloat,hy=parseInt,Sl=typeof Fr=="object"&&Fr&&Fr.Object===Object&&Fr,gy=typeof self=="object"&&self&&self.Object===Object&&self,gt=Sl||gy||Function("return this")(),ni=r&&!r.nodeType&&r,fn=ni&&!0&&e&&!e.nodeType&&e,wl=fn&&fn.exports===ni,ai=wl&&Sl.process,Kt=function(){try{var R=fn&&fn.require&&fn.require("util").types;return R||ai&&ai.binding&&ai.binding("util")}catch{}}(),Tl=Kt&&Kt.isArrayBuffer,Cl=Kt&&Kt.isDate,xl=Kt&&Kt.isMap,Rl=Kt&&Kt.isRegExp,Ol=Kt&&Kt.isSet,Al=Kt&&Kt.isTypedArray;function Nt(R,$,I){switch(I.length){case 0:return R.call($);case 1:return R.call($,I[0]);case 2:return R.call($,I[0],I[1]);case 3:return R.call($,I[0],I[1],I[2])}return R.apply($,I)}function vy(R,$,I,Z){for(var pe=-1,Oe=R==null?0:R.length;++pe<Oe;){var ut=R[pe];$(Z,ut,I(ut),R)}return Z}function Jt(R,$){for(var I=-1,Z=R==null?0:R.length;++I<Z&&$(R[I],I,R)!==!1;);return R}function yy(R,$){for(var I=R==null?0:R.length;I--&&$(R[I],I,R)!==!1;);return R}function Pl(R,$){for(var I=-1,Z=R==null?0:R.length;++I<Z;)if(!$(R[I],I,R))return!1;return!0}function Hr(R,$){for(var I=-1,Z=R==null?0:R.length,pe=0,Oe=[];++I<Z;){var ut=R[I];$(ut,I,R)&&(Oe[pe++]=ut)}return Oe}function ro(R,$){var I=R==null?0:R.length;return!!I&&On(R,$,0)>-1}function oi(R,$,I){for(var Z=-1,pe=R==null?0:R.length;++Z<pe;)if(I($,R[Z]))return!0;return!1}function Ke(R,$){for(var I=-1,Z=R==null?0:R.length,pe=Array(Z);++I<Z;)pe[I]=$(R[I],I,R);return pe}function qr(R,$){for(var I=-1,Z=$.length,pe=R.length;++I<Z;)R[pe+I]=$[I];return R}function si(R,$,I,Z){var pe=-1,Oe=R==null?0:R.length;for(Z&&Oe&&(I=R[++pe]);++pe<Oe;)I=$(I,R[pe],pe,R);return I}function my(R,$,I,Z){var pe=R==null?0:R.length;for(Z&&pe&&(I=R[--pe]);pe--;)I=$(I,R[pe],pe,R);return I}function ii(R,$){for(var I=-1,Z=R==null?0:R.length;++I<Z;)if($(R[I],I,R))return!0;return!1}var by=ui("length");function _y(R){return R.split("")}function Ey(R){return R.match(Ee)||[]}function Dl(R,$,I){var Z;return I(R,function(pe,Oe,ut){if($(pe,Oe,ut))return Z=Oe,!1}),Z}function no(R,$,I,Z){for(var pe=R.length,Oe=I+(Z?1:-1);Z?Oe--:++Oe<pe;)if($(R[Oe],Oe,R))return Oe;return-1}function On(R,$,I){return $===$?Fy(R,$,I):no(R,Il,I)}function Sy(R,$,I,Z){for(var pe=I-1,Oe=R.length;++pe<Oe;)if(Z(R[pe],$))return pe;return-1}function Il(R){return R!==R}function Fl(R,$){var I=R==null?0:R.length;return I?li(R,$)/I:W}function ui(R){return function($){return $==null?t:$[R]}}function ci(R){return function($){return R==null?t:R[$]}}function $l(R,$,I,Z,pe){return pe(R,function(Oe,ut,He){I=Z?(Z=!1,Oe):$(I,Oe,ut,He)}),I}function wy(R,$){var I=R.length;for(R.sort($);I--;)R[I]=R[I].value;return R}function li(R,$){for(var I,Z=-1,pe=R.length;++Z<pe;){var Oe=$(R[Z]);Oe!==t&&(I=I===t?Oe:I+Oe)}return I}function fi(R,$){for(var I=-1,Z=Array(R);++I<R;)Z[I]=$(I);return Z}function Ty(R,$){return Ke($,function(I){return[I,R[I]]})}function Ml(R){return R&&R.slice(0,jl(R)+1).replace(J,"")}function kt(R){return function($){return R($)}}function di(R,$){return Ke($,function(I){return R[I]})}function ua(R,$){return R.has($)}function Ll(R,$){for(var I=-1,Z=R.length;++I<Z&&On($,R[I],0)>-1;);return I}function Nl(R,$){for(var I=R.length;I--&&On($,R[I],0)>-1;);return I}function Cy(R,$){for(var I=R.length,Z=0;I--;)R[I]===$&&++Z;return Z}var xy=ci(cy),Ry=ci(ly);function Oy(R){return"\\"+dy[R]}function Ay(R,$){return R==null?t:R[$]}function An(R){return oy.test(R)}function Py(R){return sy.test(R)}function Dy(R){for(var $,I=[];!($=R.next()).done;)I.push($.value);return I}function pi(R){var $=-1,I=Array(R.size);return R.forEach(function(Z,pe){I[++$]=[pe,Z]}),I}function kl(R,$){return function(I){return R($(I))}}function Gr(R,$){for(var I=-1,Z=R.length,pe=0,Oe=[];++I<Z;){var ut=R[I];(ut===$||ut===g)&&(R[I]=g,Oe[pe++]=I)}return Oe}function ao(R){var $=-1,I=Array(R.size);return R.forEach(function(Z){I[++$]=Z}),I}function Iy(R){var $=-1,I=Array(R.size);return R.forEach(function(Z){I[++$]=[Z,Z]}),I}function Fy(R,$,I){for(var Z=I-1,pe=R.length;++Z<pe;)if(R[Z]===$)return Z;return-1}function $y(R,$,I){for(var Z=I+1;Z--;)if(R[Z]===$)return Z;return Z}function Pn(R){return An(R)?Ly(R):by(R)}function ir(R){return An(R)?Ny(R):_y(R)}function jl(R){for(var $=R.length;$--&&ie.test(R.charAt($)););return $}var My=ci(fy);function Ly(R){for(var $=ri.lastIndex=0;ri.test(R);)++$;return $}function Ny(R){return R.match(ri)||[]}function ky(R){return R.match(ay)||[]}var jy=function R($){$=$==null?gt:Dn.defaults(gt.Object(),$,Dn.pick(gt,iy));var I=$.Array,Z=$.Date,pe=$.Error,Oe=$.Function,ut=$.Math,He=$.Object,hi=$.RegExp,By=$.String,Xt=$.TypeError,oo=I.prototype,Wy=Oe.prototype,In=He.prototype,so=$["__core-js_shared__"],io=Wy.toString,ke=In.hasOwnProperty,Uy=0,Bl=function(){var n=/[^.]+$/.exec(so&&so.keys&&so.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),uo=In.toString,Hy=io.call(He),qy=gt._,Gy=hi("^"+io.call(ke).replace(w,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),co=wl?$.Buffer:t,Yr=$.Symbol,lo=$.Uint8Array,Wl=co?co.allocUnsafe:t,fo=kl(He.getPrototypeOf,He),Ul=He.create,Hl=In.propertyIsEnumerable,po=oo.splice,ql=Yr?Yr.isConcatSpreadable:t,ca=Yr?Yr.iterator:t,dn=Yr?Yr.toStringTag:t,ho=function(){try{var n=yn(He,"defineProperty");return n({},"",{}),n}catch{}}(),Yy=$.clearTimeout!==gt.clearTimeout&&$.clearTimeout,zy=Z&&Z.now!==gt.Date.now&&Z.now,Vy=$.setTimeout!==gt.setTimeout&&$.setTimeout,go=ut.ceil,vo=ut.floor,gi=He.getOwnPropertySymbols,Ky=co?co.isBuffer:t,Gl=$.isFinite,Jy=oo.join,Xy=kl(He.keys,He),ct=ut.max,bt=ut.min,Zy=Z.now,Qy=$.parseInt,Yl=ut.random,em=oo.reverse,vi=yn($,"DataView"),la=yn($,"Map"),yi=yn($,"Promise"),Fn=yn($,"Set"),fa=yn($,"WeakMap"),da=yn(He,"create"),yo=fa&&new fa,$n={},tm=mn(vi),rm=mn(la),nm=mn(yi),am=mn(Fn),om=mn(fa),mo=Yr?Yr.prototype:t,pa=mo?mo.valueOf:t,zl=mo?mo.toString:t;function v(n){if(tt(n)&&!ve(n)&&!(n instanceof we)){if(n instanceof Zt)return n;if(ke.call(n,"__wrapped__"))return Kf(n)}return new Zt(n)}var Mn=function(){function n(){}return function(o){if(!Ze(o))return{};if(Ul)return Ul(o);n.prototype=o;var u=new n;return n.prototype=t,u}}();function bo(){}function Zt(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=t}v.templateSettings={escape:Vs,evaluate:Ja,interpolate:Xa,variable:"",imports:{_:v}},v.prototype=bo.prototype,v.prototype.constructor=v,Zt.prototype=Mn(bo.prototype),Zt.prototype.constructor=Zt;function we(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=G,this.__views__=[]}function sm(){var n=new we(this.__wrapped__);return n.__actions__=It(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=It(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=It(this.__views__),n}function im(){if(this.__filtered__){var n=new we(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function um(){var n=this.__wrapped__.value(),o=this.__dir__,u=ve(n),f=o<0,h=u?n.length:0,y=_b(0,h,this.__views__),S=y.start,C=y.end,A=C-S,L=f?C:S-1,N=this.__iteratees__,B=N.length,V=0,ee=bt(A,this.__takeCount__);if(!u||!f&&h==A&&ee==A)return mf(n,this.__actions__);var ae=[];e:for(;A--&&V<ee;){L+=o;for(var be=-1,oe=n[L];++be<B;){var Se=N[be],xe=Se.iteratee,Wt=Se.type,At=xe(oe);if(Wt==it)oe=At;else if(!At){if(Wt==Pe)continue e;break e}}ae[V++]=oe}return ae}we.prototype=Mn(bo.prototype),we.prototype.constructor=we;function pn(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 cm(){this.__data__=da?da(null):{},this.size=0}function lm(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function fm(n){var o=this.__data__;if(da){var u=o[n];return u===d?t:u}return ke.call(o,n)?o[n]:t}function dm(n){var o=this.__data__;return da?o[n]!==t:ke.call(o,n)}function pm(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=da&&o===t?d:o,this}pn.prototype.clear=cm,pn.prototype.delete=lm,pn.prototype.get=fm,pn.prototype.has=dm,pn.prototype.set=pm;function wr(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 hm(){this.__data__=[],this.size=0}function gm(n){var o=this.__data__,u=_o(o,n);if(u<0)return!1;var f=o.length-1;return u==f?o.pop():po.call(o,u,1),--this.size,!0}function vm(n){var o=this.__data__,u=_o(o,n);return u<0?t:o[u][1]}function ym(n){return _o(this.__data__,n)>-1}function mm(n,o){var u=this.__data__,f=_o(u,n);return f<0?(++this.size,u.push([n,o])):u[f][1]=o,this}wr.prototype.clear=hm,wr.prototype.delete=gm,wr.prototype.get=vm,wr.prototype.has=ym,wr.prototype.set=mm;function Tr(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 bm(){this.size=0,this.__data__={hash:new pn,map:new(la||wr),string:new pn}}function _m(n){var o=Io(this,n).delete(n);return this.size-=o?1:0,o}function Em(n){return Io(this,n).get(n)}function Sm(n){return Io(this,n).has(n)}function wm(n,o){var u=Io(this,n),f=u.size;return u.set(n,o),this.size+=u.size==f?0:1,this}Tr.prototype.clear=bm,Tr.prototype.delete=_m,Tr.prototype.get=Em,Tr.prototype.has=Sm,Tr.prototype.set=wm;function hn(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new Tr;++o<u;)this.add(n[o])}function Tm(n){return this.__data__.set(n,d),this}function Cm(n){return this.__data__.has(n)}hn.prototype.add=hn.prototype.push=Tm,hn.prototype.has=Cm;function ur(n){var o=this.__data__=new wr(n);this.size=o.size}function xm(){this.__data__=new wr,this.size=0}function Rm(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function Om(n){return this.__data__.get(n)}function Am(n){return this.__data__.has(n)}function Pm(n,o){var u=this.__data__;if(u instanceof wr){var f=u.__data__;if(!la||f.length<s-1)return f.push([n,o]),this.size=++u.size,this;u=this.__data__=new Tr(f)}return u.set(n,o),this.size=u.size,this}ur.prototype.clear=xm,ur.prototype.delete=Rm,ur.prototype.get=Om,ur.prototype.has=Am,ur.prototype.set=Pm;function Vl(n,o){var u=ve(n),f=!u&&bn(n),h=!u&&!f&&Xr(n),y=!u&&!f&&!h&&jn(n),S=u||f||h||y,C=S?fi(n.length,By):[],A=C.length;for(var L in n)(o||ke.call(n,L))&&!(S&&(L=="length"||h&&(L=="offset"||L=="parent")||y&&(L=="buffer"||L=="byteLength"||L=="byteOffset")||Or(L,A)))&&C.push(L);return C}function Kl(n){var o=n.length;return o?n[Oi(0,o-1)]:t}function Dm(n,o){return Fo(It(n),gn(o,0,n.length))}function Im(n){return Fo(It(n))}function mi(n,o,u){(u!==t&&!cr(n[o],u)||u===t&&!(o in n))&&Cr(n,o,u)}function ha(n,o,u){var f=n[o];(!(ke.call(n,o)&&cr(f,u))||u===t&&!(o in n))&&Cr(n,o,u)}function _o(n,o){for(var u=n.length;u--;)if(cr(n[u][0],o))return u;return-1}function Fm(n,o,u,f){return zr(n,function(h,y,S){o(f,h,u(h),S)}),f}function Jl(n,o){return n&&yr(o,dt(o),n)}function $m(n,o){return n&&yr(o,$t(o),n)}function Cr(n,o,u){o=="__proto__"&&ho?ho(n,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[o]=u}function bi(n,o){for(var u=-1,f=o.length,h=I(f),y=n==null;++u<f;)h[u]=y?t:Qi(n,o[u]);return h}function gn(n,o,u){return n===n&&(u!==t&&(n=n<=u?n:u),o!==t&&(n=n>=o?n:o)),n}function Qt(n,o,u,f,h,y){var S,C=o&b,A=o&_,L=o&E;if(u&&(S=h?u(n,f,h,y):u(n)),S!==t)return S;if(!Ze(n))return n;var N=ve(n);if(N){if(S=Sb(n),!C)return It(n,S)}else{var B=_t(n),V=B==F||B==ze;if(Xr(n))return Ef(n,C);if(B==zt||B==fe||V&&!h){if(S=A||V?{}:Bf(n),!C)return A?fb(n,$m(S,n)):lb(n,Jl(S,n))}else{if(!Ye[B])return h?n:{};S=wb(n,B,C)}}y||(y=new ur);var ee=y.get(n);if(ee)return ee;y.set(n,S),gd(n)?n.forEach(function(oe){S.add(Qt(oe,o,u,oe,n,y))}):pd(n)&&n.forEach(function(oe,Se){S.set(Se,Qt(oe,o,u,Se,n,y))});var ae=L?A?ji:ki:A?$t:dt,be=N?t:ae(n);return Jt(be||n,function(oe,Se){be&&(Se=oe,oe=n[Se]),ha(S,Se,Qt(oe,o,u,Se,n,y))}),S}function Mm(n){var o=dt(n);return function(u){return Xl(u,n,o)}}function Xl(n,o,u){var f=u.length;if(n==null)return!f;for(n=He(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 Zl(n,o,u){if(typeof n!="function")throw new Xt(c);return Ea(function(){n.apply(t,u)},o)}function ga(n,o,u,f){var h=-1,y=ro,S=!0,C=n.length,A=[],L=o.length;if(!C)return A;u&&(o=Ke(o,kt(u))),f?(y=oi,S=!1):o.length>=s&&(y=ua,S=!1,o=new hn(o));e:for(;++h<C;){var N=n[h],B=u==null?N:u(N);if(N=f||N!==0?N:0,S&&B===B){for(var V=L;V--;)if(o[V]===B)continue e;A.push(N)}else y(o,B,f)||A.push(N)}return A}var zr=xf(vr),Ql=xf(Ei,!0);function Lm(n,o){var u=!0;return zr(n,function(f,h,y){return u=!!o(f,h,y),u}),u}function Eo(n,o,u){for(var f=-1,h=n.length;++f<h;){var y=n[f],S=o(y);if(S!=null&&(C===t?S===S&&!Bt(S):u(S,C)))var C=S,A=y}return A}function Nm(n,o,u,f){var h=n.length;for(u=ye(u),u<0&&(u=-u>h?0:h+u),f=f===t||f>h?h:ye(f),f<0&&(f+=h),f=u>f?0:yd(f);u<f;)n[u++]=o;return n}function ef(n,o){var u=[];return zr(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=Cb),h||(h=[]);++y<S;){var C=n[y];o>0&&u(C)?o>1?vt(C,o-1,u,f,h):qr(h,C):f||(h[h.length]=C)}return h}var _i=Rf(),tf=Rf(!0);function vr(n,o){return n&&_i(n,o,dt)}function Ei(n,o){return n&&tf(n,o,dt)}function So(n,o){return Hr(o,function(u){return Ar(n[u])})}function vn(n,o){o=Kr(o,n);for(var u=0,f=o.length;n!=null&&u<f;)n=n[mr(o[u++])];return u&&u==f?n:t}function rf(n,o,u){var f=o(n);return ve(n)?f:qr(f,u(n))}function Rt(n){return n==null?n===t?Ga:qa:dn&&dn in He(n)?bb(n):Ib(n)}function Si(n,o){return n>o}function km(n,o){return n!=null&&ke.call(n,o)}function jm(n,o){return n!=null&&o in He(n)}function Bm(n,o,u){return n>=bt(o,u)&&n<ct(o,u)}function wi(n,o,u){for(var f=u?oi:ro,h=n[0].length,y=n.length,S=y,C=I(y),A=1/0,L=[];S--;){var N=n[S];S&&o&&(N=Ke(N,kt(o))),A=bt(N.length,A),C[S]=!u&&(o||h>=120&&N.length>=120)?new hn(S&&N):t}N=n[0];var B=-1,V=C[0];e:for(;++B<h&&L.length<A;){var ee=N[B],ae=o?o(ee):ee;if(ee=u||ee!==0?ee:0,!(V?ua(V,ae):f(L,ae,u))){for(S=y;--S;){var be=C[S];if(!(be?ua(be,ae):f(n[S],ae,u)))continue e}V&&V.push(ae),L.push(ee)}}return L}function Wm(n,o,u,f){return vr(n,function(h,y,S){o(f,u(h),y,S)}),f}function va(n,o,u){o=Kr(o,n),n=qf(n,o);var f=n==null?n:n[mr(tr(o))];return f==null?t:Nt(f,n,u)}function nf(n){return tt(n)&&Rt(n)==fe}function Um(n){return tt(n)&&Rt(n)==sn}function Hm(n){return tt(n)&&Rt(n)==he}function ya(n,o,u,f,h){return n===o?!0:n==null||o==null||!tt(n)&&!tt(o)?n!==n&&o!==o:qm(n,o,u,f,ya,h)}function qm(n,o,u,f,h,y){var S=ve(n),C=ve(o),A=S?ne:_t(n),L=C?ne:_t(o);A=A==fe?zt:A,L=L==fe?zt:L;var N=A==zt,B=L==zt,V=A==L;if(V&&Xr(n)){if(!Xr(o))return!1;S=!0,N=!1}if(V&&!N)return y||(y=new ur),S||jn(n)?Nf(n,o,u,f,h,y):yb(n,o,A,u,f,h,y);if(!(u&T)){var ee=N&&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 ur),h(be,oe,u,f,y)}}return V?(y||(y=new ur),mb(n,o,u,f,h,y)):!1}function Gm(n){return tt(n)&&_t(n)==Ge}function Ti(n,o,u,f){var h=u.length,y=h,S=!f;if(n==null)return!y;for(n=He(n);h--;){var C=u[h];if(S&&C[2]?C[1]!==n[C[0]]:!(C[0]in n))return!1}for(;++h<y;){C=u[h];var A=C[0],L=n[A],N=C[1];if(S&&C[2]){if(L===t&&!(A in n))return!1}else{var B=new ur;if(f)var V=f(L,N,A,n,o,B);if(!(V===t?ya(N,L,T|x,f,B):V))return!1}}return!0}function af(n){if(!Ze(n)||Rb(n))return!1;var o=Ar(n)?Gy:sr;return o.test(mn(n))}function Ym(n){return tt(n)&&Rt(n)==or}function zm(n){return tt(n)&&_t(n)==xt}function Vm(n){return tt(n)&&jo(n.length)&&!!Ve[Rt(n)]}function of(n){return typeof n=="function"?n:n==null?Mt:typeof n=="object"?ve(n)?cf(n[0],n[1]):uf(n):Od(n)}function Ci(n){if(!_a(n))return Xy(n);var o=[];for(var u in He(n))ke.call(n,u)&&u!="constructor"&&o.push(u);return o}function Km(n){if(!Ze(n))return Db(n);var o=_a(n),u=[];for(var f in n)f=="constructor"&&(o||!ke.call(n,f))||u.push(f);return u}function xi(n,o){return n<o}function sf(n,o){var u=-1,f=Ft(n)?I(n.length):[];return zr(n,function(h,y,S){f[++u]=o(h,y,S)}),f}function uf(n){var o=Wi(n);return o.length==1&&o[0][2]?Uf(o[0][0],o[0][1]):function(u){return u===n||Ti(u,n,o)}}function cf(n,o){return Hi(n)&&Wf(o)?Uf(mr(n),o):function(u){var f=Qi(u,n);return f===t&&f===o?eu(u,n):ya(o,f,T|x)}}function wo(n,o,u,f,h){n!==o&&_i(o,function(y,S){if(h||(h=new ur),Ze(y))Jm(n,o,S,u,wo,f,h);else{var C=f?f(Gi(n,S),y,S+"",n,o,h):t;C===t&&(C=y),mi(n,S,C)}},$t)}function Jm(n,o,u,f,h,y,S){var C=Gi(n,u),A=Gi(o,u),L=S.get(A);if(L){mi(n,u,L);return}var N=y?y(C,A,u+"",n,o,S):t,B=N===t;if(B){var V=ve(A),ee=!V&&Xr(A),ae=!V&&!ee&&jn(A);N=A,V||ee||ae?ve(C)?N=C:nt(C)?N=It(C):ee?(B=!1,N=Ef(A,!0)):ae?(B=!1,N=Sf(A,!0)):N=[]:Sa(A)||bn(A)?(N=C,bn(C)?N=md(C):(!Ze(C)||Ar(C))&&(N=Bf(A))):B=!1}B&&(S.set(A,N),h(N,A,f,y,S),S.delete(A)),mi(n,u,N)}function lf(n,o){var u=n.length;if(u)return o+=o<0?u:0,Or(o,u)?n[o]:t}function ff(n,o,u){o.length?o=Ke(o,function(y){return ve(y)?function(S){return vn(S,y.length===1?y[0]:y)}:y}):o=[Mt];var f=-1;o=Ke(o,kt(re()));var h=sf(n,function(y,S,C){var A=Ke(o,function(L){return L(y)});return{criteria:A,index:++f,value:y}});return wy(h,function(y,S){return cb(y,S,u)})}function Xm(n,o){return df(n,o,function(u,f){return eu(n,f)})}function df(n,o,u){for(var f=-1,h=o.length,y={};++f<h;){var S=o[f],C=vn(n,S);u(C,S)&&ma(y,Kr(S,n),C)}return y}function Zm(n){return function(o){return vn(o,n)}}function Ri(n,o,u,f){var h=f?Sy:On,y=-1,S=o.length,C=n;for(n===o&&(o=It(o)),u&&(C=Ke(n,kt(u)));++y<S;)for(var A=0,L=o[y],N=u?u(L):L;(A=h(C,N,A,f))>-1;)C!==n&&po.call(C,A,1),po.call(n,A,1);return n}function pf(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;Or(h)?po.call(n,h,1):Di(n,h)}}return n}function Oi(n,o){return n+vo(Yl()*(o-n+1))}function Qm(n,o,u,f){for(var h=-1,y=ct(go((o-n)/(u||1)),0),S=I(y);y--;)S[f?y:++h]=n,n+=u;return S}function Ai(n,o){var u="";if(!n||o<1||o>rt)return u;do o%2&&(u+=n),o=vo(o/2),o&&(n+=n);while(o);return u}function _e(n,o){return Yi(Hf(n,o,Mt),n+"")}function eb(n){return Kl(Bn(n))}function tb(n,o){var u=Bn(n);return Fo(u,gn(o,0,u.length))}function ma(n,o,u,f){if(!Ze(n))return n;o=Kr(o,n);for(var h=-1,y=o.length,S=y-1,C=n;C!=null&&++h<y;){var A=mr(o[h]),L=u;if(A==="__proto__"||A==="constructor"||A==="prototype")return n;if(h!=S){var N=C[A];L=f?f(N,A,C):t,L===t&&(L=Ze(N)?N:Or(o[h+1])?[]:{})}ha(C,A,L),C=C[A]}return n}var hf=yo?function(n,o){return yo.set(n,o),n}:Mt,rb=ho?function(n,o){return ho(n,"toString",{configurable:!0,enumerable:!1,value:ru(o),writable:!0})}:Mt;function nb(n){return Fo(Bn(n))}function er(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=I(h);++f<h;)y[f]=n[f+o];return y}function ab(n,o){var u;return zr(n,function(f,h,y){return u=o(f,h,y),!u}),!!u}function To(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&&!Bt(S)&&(u?S<=o:S<o)?f=y+1:h=y}return h}return Pi(n,o,Mt,u)}function Pi(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,C=o===null,A=Bt(o),L=o===t;h<y;){var N=vo((h+y)/2),B=u(n[N]),V=B!==t,ee=B===null,ae=B===B,be=Bt(B);if(S)var oe=f||ae;else L?oe=ae&&(f||V):C?oe=ae&&V&&(f||!ee):A?oe=ae&&V&&!ee&&(f||!be):ee||be?oe=!1:oe=f?B<=o:B<o;oe?h=N+1:y=N}return bt(y,de)}function gf(n,o){for(var u=-1,f=n.length,h=0,y=[];++u<f;){var S=n[u],C=o?o(S):S;if(!u||!cr(C,A)){var A=C;y[h++]=S===0?0:S}}return y}function vf(n){return typeof n=="number"?n:Bt(n)?W:+n}function jt(n){if(typeof n=="string")return n;if(ve(n))return Ke(n,jt)+"";if(Bt(n))return zl?zl.call(n):"";var o=n+"";return o=="0"&&1/n==-qe?"-0":o}function Vr(n,o,u){var f=-1,h=ro,y=n.length,S=!0,C=[],A=C;if(u)S=!1,h=oi;else if(y>=s){var L=o?null:gb(n);if(L)return ao(L);S=!1,h=ua,A=new hn}else A=o?[]:C;e:for(;++f<y;){var N=n[f],B=o?o(N):N;if(N=u||N!==0?N:0,S&&B===B){for(var V=A.length;V--;)if(A[V]===B)continue e;o&&A.push(B),C.push(N)}else h(A,B,u)||(A!==C&&A.push(B),C.push(N))}return C}function Di(n,o){return o=Kr(o,n),n=qf(n,o),n==null||delete n[mr(tr(o))]}function yf(n,o,u,f){return ma(n,o,u(vn(n,o)),f)}function Co(n,o,u,f){for(var h=n.length,y=f?h:-1;(f?y--:++y<h)&&o(n[y],y,n););return u?er(n,f?0:y,f?y+1:h):er(n,f?y+1:0,f?h:y)}function mf(n,o){var u=n;return u instanceof we&&(u=u.value()),si(o,function(f,h){return h.func.apply(h.thisArg,qr([f],h.args))},u)}function Ii(n,o,u){var f=n.length;if(f<2)return f?Vr(n[0]):[];for(var h=-1,y=I(f);++h<f;)for(var S=n[h],C=-1;++C<f;)C!=h&&(y[h]=ga(y[h]||S,n[C],o,u));return Vr(vt(y,1),o,u)}function bf(n,o,u){for(var f=-1,h=n.length,y=o.length,S={};++f<h;){var C=f<y?o[f]:t;u(S,n[f],C)}return S}function Fi(n){return nt(n)?n:[]}function $i(n){return typeof n=="function"?n:Mt}function Kr(n,o){return ve(n)?n:Hi(n,o)?[n]:Vf(De(n))}var ob=_e;function Jr(n,o,u){var f=n.length;return u=u===t?f:u,!o&&u>=f?n:er(n,o,u)}var _f=Yy||function(n){return gt.clearTimeout(n)};function Ef(n,o){if(o)return n.slice();var u=n.length,f=Wl?Wl(u):new n.constructor(u);return n.copy(f),f}function Mi(n){var o=new n.constructor(n.byteLength);return new lo(o).set(new lo(n)),o}function sb(n,o){var u=o?Mi(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function ib(n){var o=new n.constructor(n.source,Vt.exec(n));return o.lastIndex=n.lastIndex,o}function ub(n){return pa?He(pa.call(n)):{}}function Sf(n,o){var u=o?Mi(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function wf(n,o){if(n!==o){var u=n!==t,f=n===null,h=n===n,y=Bt(n),S=o!==t,C=o===null,A=o===o,L=Bt(o);if(!C&&!L&&!y&&n>o||y&&S&&A&&!C&&!L||f&&S&&A||!u&&A||!h)return 1;if(!f&&!y&&!L&&n<o||L&&u&&h&&!f&&!y||C&&u&&h||!S&&h||!A)return-1}return 0}function cb(n,o,u){for(var f=-1,h=n.criteria,y=o.criteria,S=h.length,C=u.length;++f<S;){var A=wf(h[f],y[f]);if(A){if(f>=C)return A;var L=u[f];return A*(L=="desc"?-1:1)}}return n.index-o.index}function Tf(n,o,u,f){for(var h=-1,y=n.length,S=u.length,C=-1,A=o.length,L=ct(y-S,0),N=I(A+L),B=!f;++C<A;)N[C]=o[C];for(;++h<S;)(B||h<y)&&(N[u[h]]=n[h]);for(;L--;)N[C++]=n[h++];return N}function Cf(n,o,u,f){for(var h=-1,y=n.length,S=-1,C=u.length,A=-1,L=o.length,N=ct(y-C,0),B=I(N+L),V=!f;++h<N;)B[h]=n[h];for(var ee=h;++A<L;)B[ee+A]=o[A];for(;++S<C;)(V||h<y)&&(B[ee+u[S]]=n[h++]);return B}function It(n,o){var u=-1,f=n.length;for(o||(o=I(f));++u<f;)o[u]=n[u];return o}function yr(n,o,u,f){var h=!u;u||(u={});for(var y=-1,S=o.length;++y<S;){var C=o[y],A=f?f(u[C],n[C],C,u,n):t;A===t&&(A=n[C]),h?Cr(u,C,A):ha(u,C,A)}return u}function lb(n,o){return yr(n,Ui(n),o)}function fb(n,o){return yr(n,kf(n),o)}function xo(n,o){return function(u,f){var h=ve(u)?vy:Fm,y=o?o():{};return h(u,n,re(f,2),y)}}function Ln(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=He(o);++f<h;){var C=u[f];C&&n(o,C,f,y)}return o})}function xf(n,o){return function(u,f){if(u==null)return u;if(!Ft(u))return n(u,f);for(var h=u.length,y=o?h:-1,S=He(u);(o?y--:++y<h)&&f(S[y],y,S)!==!1;);return u}}function Rf(n){return function(o,u,f){for(var h=-1,y=He(o),S=f(o),C=S.length;C--;){var A=S[n?C:++h];if(u(y[A],A,y)===!1)break}return o}}function db(n,o,u){var f=o&D,h=ba(n);function y(){var S=this&&this!==gt&&this instanceof y?h:n;return S.apply(f?u:this,arguments)}return y}function Of(n){return function(o){o=De(o);var u=An(o)?ir(o):t,f=u?u[0]:o.charAt(0),h=u?Jr(u,1).join(""):o.slice(1);return f[n]()+h}}function Nn(n){return function(o){return si(xd(Cd(o).replace(ry,"")),n,"")}}function ba(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=Mn(n.prototype),f=n.apply(u,o);return Ze(f)?f:u}}function pb(n,o,u){var f=ba(n);function h(){for(var y=arguments.length,S=I(y),C=y,A=kn(h);C--;)S[C]=arguments[C];var L=y<3&&S[0]!==A&&S[y-1]!==A?[]:Gr(S,A);if(y-=L.length,y<u)return Ff(n,o,Ro,h.placeholder,t,S,L,t,t,u-y);var N=this&&this!==gt&&this instanceof h?f:n;return Nt(N,this,S)}return h}function Af(n){return function(o,u,f){var h=He(o);if(!Ft(o)){var y=re(u,3);o=dt(o),u=function(C){return y(h[C],C,h)}}var S=n(o,u,f);return S>-1?h[y?o[S]:S]:t}}function Pf(n){return Rr(function(o){var u=o.length,f=u,h=Zt.prototype.thru;for(n&&o.reverse();f--;){var y=o[f];if(typeof y!="function")throw new Xt(c);if(h&&!S&&Do(y)=="wrapper")var S=new Zt([],!0)}for(f=S?f:u;++f<u;){y=o[f];var C=Do(y),A=C=="wrapper"?Bi(y):t;A&&qi(A[0])&&A[1]==(q|M|O|Y)&&!A[4].length&&A[9]==1?S=S[Do(A[0])].apply(S,A[3]):S=y.length==1&&qi(y)?S[C]():S.thru(y)}return function(){var L=arguments,N=L[0];if(S&&L.length==1&&ve(N))return S.plant(N).value();for(var B=0,V=u?o[B].apply(this,L):N;++B<u;)V=o[B].call(this,V);return V}})}function Ro(n,o,u,f,h,y,S,C,A,L){var N=o&q,B=o&D,V=o&P,ee=o&(M|k),ae=o&te,be=V?t:ba(n);function oe(){for(var Se=arguments.length,xe=I(Se),Wt=Se;Wt--;)xe[Wt]=arguments[Wt];if(ee)var At=kn(oe),Ut=Cy(xe,At);if(f&&(xe=Tf(xe,f,h,ee)),y&&(xe=Cf(xe,y,S,ee)),Se-=Ut,ee&&Se<L){var at=Gr(xe,At);return Ff(n,o,Ro,oe.placeholder,u,xe,at,C,A,L-Se)}var lr=B?u:this,Dr=V?lr[n]:n;return Se=xe.length,C?xe=Fb(xe,C):ae&&Se>1&&xe.reverse(),N&&A<Se&&(xe.length=A),this&&this!==gt&&this instanceof oe&&(Dr=be||ba(Dr)),Dr.apply(lr,xe)}return oe}function Df(n,o){return function(u,f){return Wm(u,n,o(f),{})}}function Oo(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=jt(u),f=jt(f)):(u=vf(u),f=vf(f)),h=n(u,f)}return h}}function Li(n){return Rr(function(o){return o=Ke(o,kt(re())),_e(function(u){var f=this;return n(o,function(h){return Nt(h,f,u)})})})}function Ao(n,o){o=o===t?" ":jt(o);var u=o.length;if(u<2)return u?Ai(o,n):o;var f=Ai(o,go(n/Pn(o)));return An(o)?Jr(ir(f),0,n).join(""):f.slice(0,n)}function hb(n,o,u,f){var h=o&D,y=ba(n);function S(){for(var C=-1,A=arguments.length,L=-1,N=f.length,B=I(N+A),V=this&&this!==gt&&this instanceof S?y:n;++L<N;)B[L]=f[L];for(;A--;)B[L++]=arguments[++C];return Nt(V,h?u:this,B)}return S}function If(n){return function(o,u,f){return f&&typeof f!="number"&&Ot(o,u,f)&&(u=f=t),o=Pr(o),u===t?(u=o,o=0):u=Pr(u),f=f===t?o<u?1:-1:Pr(f),Qm(o,u,f,n)}}function Po(n){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=rr(o),u=rr(u)),n(o,u)}}function Ff(n,o,u,f,h,y,S,C,A,L){var N=o&M,B=N?S:t,V=N?t:S,ee=N?y:t,ae=N?t:y;o|=N?O:z,o&=~(N?z:O),o&j||(o&=~(D|P));var be=[n,o,h,ee,B,ae,V,C,A,L],oe=u.apply(t,be);return qi(n)&&Gf(oe,be),oe.placeholder=f,Yf(oe,n,o)}function Ni(n){var o=ut[n];return function(u,f){if(u=rr(u),f=f==null?0:bt(ye(f),292),f&&Gl(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 gb=Fn&&1/ao(new Fn([,-0]))[1]==qe?function(n){return new Fn(n)}:ou;function $f(n){return function(o){var u=_t(o);return u==Ge?pi(o):u==xt?Iy(o):Ty(o,n(o))}}function xr(n,o,u,f,h,y,S,C){var A=o&P;if(!A&&typeof n!="function")throw new Xt(c);var L=f?f.length:0;if(L||(o&=~(O|z),f=h=t),S=S===t?S:ct(ye(S),0),C=C===t?C:ye(C),L-=h?h.length:0,o&z){var N=f,B=h;f=h=t}var V=A?t:Bi(n),ee=[n,o,u,f,h,N,B,y,S,C];if(V&&Pb(ee,V),n=ee[0],o=ee[1],u=ee[2],f=ee[3],h=ee[4],C=ee[9]=ee[9]===t?A?0:n.length:ct(ee[9]-L,0),!C&&o&(M|k)&&(o&=~(M|k)),!o||o==D)var ae=db(n,o,u);else o==M||o==k?ae=pb(n,o,C):(o==O||o==(D|O))&&!h.length?ae=hb(n,o,u,f):ae=Ro.apply(t,ee);var be=V?hf:Gf;return Yf(be(ae,ee),n,o)}function Mf(n,o,u,f){return n===t||cr(n,In[u])&&!ke.call(f,u)?o:n}function Lf(n,o,u,f,h,y){return Ze(n)&&Ze(o)&&(y.set(o,n),wo(n,o,t,Lf,y),y.delete(o)),n}function vb(n){return Sa(n)?t:n}function Nf(n,o,u,f,h,y){var S=u&T,C=n.length,A=o.length;if(C!=A&&!(S&&A>C))return!1;var L=y.get(n),N=y.get(o);if(L&&N)return L==o&&N==n;var B=-1,V=!0,ee=u&x?new hn:t;for(y.set(n,o),y.set(o,n);++B<C;){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(!ii(o,function(Se,xe){if(!ua(ee,xe)&&(ae===Se||h(ae,Se,u,f,y)))return ee.push(xe)})){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 yb(n,o,u,f,h,y,S){switch(u){case Wr:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case sn:return!(n.byteLength!=o.byteLength||!y(new lo(n),new lo(o)));case ue:case he:case mt:return cr(+n,+o);case K:return n.name==o.name&&n.message==o.message;case or:case an:return n==o+"";case Ge:var C=pi;case xt:var A=f&T;if(C||(C=ao),n.size!=o.size&&!A)return!1;var L=S.get(n);if(L)return L==o;f|=x,S.set(n,o);var N=Nf(C(n),C(o),f,h,y,S);return S.delete(n),N;case on:if(pa)return pa.call(n)==pa.call(o)}return!1}function mb(n,o,u,f,h,y){var S=u&T,C=ki(n),A=C.length,L=ki(o),N=L.length;if(A!=N&&!S)return!1;for(var B=A;B--;){var V=C[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=C[B];var Se=n[V],xe=o[V];if(f)var Wt=S?f(xe,Se,V,o,n,y):f(Se,xe,V,n,o,y);if(!(Wt===t?Se===xe||h(Se,xe,u,f,y):Wt)){be=!1;break}oe||(oe=V=="constructor")}if(be&&!oe){var At=n.constructor,Ut=o.constructor;At!=Ut&&"constructor"in n&&"constructor"in o&&!(typeof At=="function"&&At instanceof At&&typeof Ut=="function"&&Ut instanceof Ut)&&(be=!1)}return y.delete(n),y.delete(o),be}function Rr(n){return Yi(Hf(n,t,Zf),n+"")}function ki(n){return rf(n,dt,Ui)}function ji(n){return rf(n,$t,kf)}var Bi=yo?function(n){return yo.get(n)}:ou;function Do(n){for(var o=n.name+"",u=$n[o],f=ke.call($n,o)?u.length:0;f--;){var h=u[f],y=h.func;if(y==null||y==n)return h.name}return o}function kn(n){var o=ke.call(v,"placeholder")?v:n;return o.placeholder}function re(){var n=v.iteratee||nu;return n=n===nu?of:n,arguments.length?n(arguments[0],arguments[1]):n}function Io(n,o){var u=n.__data__;return xb(o)?u[typeof o=="string"?"string":"hash"]:u.map}function Wi(n){for(var o=dt(n),u=o.length;u--;){var f=o[u],h=n[f];o[u]=[f,h,Wf(h)]}return o}function yn(n,o){var u=Ay(n,o);return af(u)?u:t}function bb(n){var o=ke.call(n,dn),u=n[dn];try{n[dn]=t;var f=!0}catch{}var h=uo.call(n);return f&&(o?n[dn]=u:delete n[dn]),h}var Ui=gi?function(n){return n==null?[]:(n=He(n),Hr(gi(n),function(o){return Hl.call(n,o)}))}:su,kf=gi?function(n){for(var o=[];n;)qr(o,Ui(n)),n=fo(n);return o}:su,_t=Rt;(vi&&_t(new vi(new ArrayBuffer(1)))!=Wr||la&&_t(new la)!=Ge||yi&&_t(yi.resolve())!=nn||Fn&&_t(new Fn)!=xt||fa&&_t(new fa)!=Sr)&&(_t=function(n){var o=Rt(n),u=o==zt?n.constructor:t,f=u?mn(u):"";if(f)switch(f){case tm:return Wr;case rm:return Ge;case nm:return nn;case am:return xt;case om:return Sr}return o});function _b(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=ct(n,o-S);break}}return{start:n,end:o}}function Eb(n){var o=n.match(Ne);return o?o[1].split(Ce):[]}function jf(n,o,u){o=Kr(o,n);for(var f=-1,h=o.length,y=!1;++f<h;){var S=mr(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&&jo(h)&&Or(S,h)&&(ve(n)||bn(n)))}function Sb(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 Bf(n){return typeof n.constructor=="function"&&!_a(n)?Mn(fo(n)):{}}function wb(n,o,u){var f=n.constructor;switch(o){case sn:return Mi(n);case ue:case he:return new f(+n);case Wr:return sb(n,u);case na:case aa:case oa:case sa:case un:case xn:case gr:case cn:case ln:return Sf(n,u);case Ge:return new f;case mt:case an:return new f(n);case or:return ib(n);case xt:return new f;case on:return ub(n)}}function Tb(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(Le,`{
|
|
15
|
+
*/ps.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__",b=1,_=2,S=4,T=1,x=2,D=1,P=2,j=4,M=8,k=16,O=32,z=64,q=128,Y=256,te=512,Ue=30,Te="...",st=800,X=16,Pe=1,it=2,Qe=3,qe=1/0,rt=9007199254740991,Yt=17976931348623157e292,W=0/0,G=4294967295,de=G-1,le=G>>>1,se=[["ary",q],["bind",D],["bindKey",P],["curry",M],["curryRight",k],["flip",te],["partial",O],["partialRight",z],["rearg",Y]],fe="[object Arguments]",ne="[object Array]",ce="[object AsyncFunction]",ue="[object Boolean]",he="[object Date]",ge="[object DOMException]",K="[object Error]",F="[object Function]",ze="[object GeneratorFunction]",Ge="[object Map]",mt="[object Number]",Ga="[object Null]",zt="[object Object]",an="[object Promise]",Ys="[object Proxy]",or="[object RegExp]",xt="[object Set]",on="[object String]",sn="[object Symbol]",Ya="[object Undefined]",Er="[object WeakMap]",zs="[object WeakSet]",un="[object ArrayBuffer]",Wr="[object DataView]",na="[object Float32Array]",aa="[object Float64Array]",oa="[object Int8Array]",sa="[object Int16Array]",cn="[object Int32Array]",xn="[object Uint8Array]",gr="[object Uint8ClampedArray]",ln="[object Uint16Array]",fn="[object Uint32Array]",za=/\b__p \+= '';/g,Vs=/\b(__p \+=) '' \+/g,Va=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ka=/&(?:amp|lt|gt|quot|#39);/g,ia=/[&<>"']/g,Ja=RegExp(Ka.source),Ks=RegExp(ia.source),Js=/<%-([\s\S]+?)%>/g,Xa=/<%([\s\S]+?)%>/g,Za=/<%=([\s\S]+?)%>/g,Xs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zs=/^\w*$/,Qs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w=/[\\^$.*+?()[\]{}|]/g,H=RegExp(w.source),J=/^\s+/,ie=/\s/,Ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ke=/\{\n\/\* \[wrapped with (.+)\] \*/,Ce=/,? & /,Se=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ht=/[()=,{}\[\]\/\s]/,Xe=/\\(\\)?/g,et=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vt=/\w*$/,Ur=/^[-+]0x[0-9a-f]+$/i,Qa=/^0b[01]+$/i,sr=/^\[object .+?Constructor\]$/,jv=/^0o[0-7]+$/i,Bv=/^(?:0|[1-9]\d*)$/,Wv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,eo=/($^)/,Uv=/['\n\r\u2028\u2029\\]/g,to="\\ud800-\\udfff",Hv="\\u0300-\\u036f",qv="\\ufe20-\\ufe2f",Gv="\\u20d0-\\u20ff",sl=Hv+qv+Gv,il="\\u2700-\\u27bf",ul="a-z\\xdf-\\xf6\\xf8-\\xff",Yv="\\xac\\xb1\\xd7\\xf7",zv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Vv="\\u2000-\\u206f",Kv=" \\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=Yv+zv+Vv+Kv,ei="['’]",Jv="["+to+"]",dl="["+fl+"]",ro="["+sl+"]",pl="\\d+",Xv="["+il+"]",hl="["+ul+"]",gl="[^"+to+fl+pl+il+ul+cl+"]",ti="\\ud83c[\\udffb-\\udfff]",Zv="(?:"+ro+"|"+ti+")",vl="[^"+to+"]",ri="(?:\\ud83c[\\udde6-\\uddff]){2}",ni="[\\ud800-\\udbff][\\udc00-\\udfff]",Rn="["+cl+"]",yl="\\u200d",ml="(?:"+hl+"|"+gl+")",Qv="(?:"+Rn+"|"+gl+")",bl="(?:"+ei+"(?:d|ll|m|re|s|t|ve))?",_l="(?:"+ei+"(?:D|LL|M|RE|S|T|VE))?",Sl=Zv+"?",El="["+ll+"]?",ey="(?:"+yl+"(?:"+[vl,ri,ni].join("|")+")"+El+Sl+")*",ty="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ry="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",wl=El+Sl+ey,ny="(?:"+[Xv,ri,ni].join("|")+")"+wl,ay="(?:"+[vl+ro+"?",ro,ri,ni,Jv].join("|")+")",oy=RegExp(ei,"g"),sy=RegExp(ro,"g"),ai=RegExp(ti+"(?="+ti+")|"+ay+wl,"g"),iy=RegExp([Rn+"?"+hl+"+"+bl+"(?="+[dl,Rn,"$"].join("|")+")",Qv+"+"+_l+"(?="+[dl,Rn+ml,"$"].join("|")+")",Rn+"?"+ml+"+"+bl,Rn+"+"+_l,ry,ty,pl,ny].join("|"),"g"),uy=RegExp("["+yl+to+sl+ll+"]"),cy=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ly=["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"],fy=-1,Ve={};Ve[na]=Ve[aa]=Ve[oa]=Ve[sa]=Ve[cn]=Ve[xn]=Ve[gr]=Ve[ln]=Ve[fn]=!0,Ve[fe]=Ve[ne]=Ve[un]=Ve[ue]=Ve[Wr]=Ve[he]=Ve[K]=Ve[F]=Ve[Ge]=Ve[mt]=Ve[zt]=Ve[or]=Ve[xt]=Ve[on]=Ve[Er]=!1;var Ye={};Ye[fe]=Ye[ne]=Ye[un]=Ye[Wr]=Ye[ue]=Ye[he]=Ye[na]=Ye[aa]=Ye[oa]=Ye[sa]=Ye[cn]=Ye[Ge]=Ye[mt]=Ye[zt]=Ye[or]=Ye[xt]=Ye[on]=Ye[sn]=Ye[xn]=Ye[gr]=Ye[ln]=Ye[fn]=!0,Ye[K]=Ye[F]=Ye[Er]=!1;var dy={À:"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"},py={"&":"&","<":"<",">":">",'"':""","'":"'"},hy={"&":"&","<":"<",">":">",""":'"',"'":"'"},gy={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},vy=parseFloat,yy=parseInt,Tl=typeof Fr=="object"&&Fr&&Fr.Object===Object&&Fr,my=typeof self=="object"&&self&&self.Object===Object&&self,gt=Tl||my||Function("return this")(),oi=r&&!r.nodeType&&r,dn=oi&&!0&&e&&!e.nodeType&&e,Cl=dn&&dn.exports===oi,si=Cl&&Tl.process,Kt=function(){try{var R=dn&&dn.require&&dn.require("util").types;return R||si&&si.binding&&si.binding("util")}catch{}}(),xl=Kt&&Kt.isArrayBuffer,Rl=Kt&&Kt.isDate,Ol=Kt&&Kt.isMap,Al=Kt&&Kt.isRegExp,Pl=Kt&&Kt.isSet,Dl=Kt&&Kt.isTypedArray;function Nt(R,$,I){switch(I.length){case 0:return R.call($);case 1:return R.call($,I[0]);case 2:return R.call($,I[0],I[1]);case 3:return R.call($,I[0],I[1],I[2])}return R.apply($,I)}function by(R,$,I,Z){for(var pe=-1,Oe=R==null?0:R.length;++pe<Oe;){var ut=R[pe];$(Z,ut,I(ut),R)}return Z}function Jt(R,$){for(var I=-1,Z=R==null?0:R.length;++I<Z&&$(R[I],I,R)!==!1;);return R}function _y(R,$){for(var I=R==null?0:R.length;I--&&$(R[I],I,R)!==!1;);return R}function Il(R,$){for(var I=-1,Z=R==null?0:R.length;++I<Z;)if(!$(R[I],I,R))return!1;return!0}function Hr(R,$){for(var I=-1,Z=R==null?0:R.length,pe=0,Oe=[];++I<Z;){var ut=R[I];$(ut,I,R)&&(Oe[pe++]=ut)}return Oe}function no(R,$){var I=R==null?0:R.length;return!!I&&On(R,$,0)>-1}function ii(R,$,I){for(var Z=-1,pe=R==null?0:R.length;++Z<pe;)if(I($,R[Z]))return!0;return!1}function Ke(R,$){for(var I=-1,Z=R==null?0:R.length,pe=Array(Z);++I<Z;)pe[I]=$(R[I],I,R);return pe}function qr(R,$){for(var I=-1,Z=$.length,pe=R.length;++I<Z;)R[pe+I]=$[I];return R}function ui(R,$,I,Z){var pe=-1,Oe=R==null?0:R.length;for(Z&&Oe&&(I=R[++pe]);++pe<Oe;)I=$(I,R[pe],pe,R);return I}function Sy(R,$,I,Z){var pe=R==null?0:R.length;for(Z&&pe&&(I=R[--pe]);pe--;)I=$(I,R[pe],pe,R);return I}function ci(R,$){for(var I=-1,Z=R==null?0:R.length;++I<Z;)if($(R[I],I,R))return!0;return!1}var Ey=li("length");function wy(R){return R.split("")}function Ty(R){return R.match(Se)||[]}function Fl(R,$,I){var Z;return I(R,function(pe,Oe,ut){if($(pe,Oe,ut))return Z=Oe,!1}),Z}function ao(R,$,I,Z){for(var pe=R.length,Oe=I+(Z?1:-1);Z?Oe--:++Oe<pe;)if($(R[Oe],Oe,R))return Oe;return-1}function On(R,$,I){return $===$?Ly(R,$,I):ao(R,$l,I)}function Cy(R,$,I,Z){for(var pe=I-1,Oe=R.length;++pe<Oe;)if(Z(R[pe],$))return pe;return-1}function $l(R){return R!==R}function Ml(R,$){var I=R==null?0:R.length;return I?di(R,$)/I:W}function li(R){return function($){return $==null?t:$[R]}}function fi(R){return function($){return R==null?t:R[$]}}function Ll(R,$,I,Z,pe){return pe(R,function(Oe,ut,He){I=Z?(Z=!1,Oe):$(I,Oe,ut,He)}),I}function xy(R,$){var I=R.length;for(R.sort($);I--;)R[I]=R[I].value;return R}function di(R,$){for(var I,Z=-1,pe=R.length;++Z<pe;){var Oe=$(R[Z]);Oe!==t&&(I=I===t?Oe:I+Oe)}return I}function pi(R,$){for(var I=-1,Z=Array(R);++I<R;)Z[I]=$(I);return Z}function Ry(R,$){return Ke($,function(I){return[I,R[I]]})}function Nl(R){return R&&R.slice(0,Wl(R)+1).replace(J,"")}function kt(R){return function($){return R($)}}function hi(R,$){return Ke($,function(I){return R[I]})}function ua(R,$){return R.has($)}function kl(R,$){for(var I=-1,Z=R.length;++I<Z&&On($,R[I],0)>-1;);return I}function jl(R,$){for(var I=R.length;I--&&On($,R[I],0)>-1;);return I}function Oy(R,$){for(var I=R.length,Z=0;I--;)R[I]===$&&++Z;return Z}var Ay=fi(dy),Py=fi(py);function Dy(R){return"\\"+gy[R]}function Iy(R,$){return R==null?t:R[$]}function An(R){return uy.test(R)}function Fy(R){return cy.test(R)}function $y(R){for(var $,I=[];!($=R.next()).done;)I.push($.value);return I}function gi(R){var $=-1,I=Array(R.size);return R.forEach(function(Z,pe){I[++$]=[pe,Z]}),I}function Bl(R,$){return function(I){return R($(I))}}function Gr(R,$){for(var I=-1,Z=R.length,pe=0,Oe=[];++I<Z;){var ut=R[I];(ut===$||ut===g)&&(R[I]=g,Oe[pe++]=I)}return Oe}function oo(R){var $=-1,I=Array(R.size);return R.forEach(function(Z){I[++$]=Z}),I}function My(R){var $=-1,I=Array(R.size);return R.forEach(function(Z){I[++$]=[Z,Z]}),I}function Ly(R,$,I){for(var Z=I-1,pe=R.length;++Z<pe;)if(R[Z]===$)return Z;return-1}function Ny(R,$,I){for(var Z=I+1;Z--;)if(R[Z]===$)return Z;return Z}function Pn(R){return An(R)?jy(R):Ey(R)}function ir(R){return An(R)?By(R):wy(R)}function Wl(R){for(var $=R.length;$--&&ie.test(R.charAt($)););return $}var ky=fi(hy);function jy(R){for(var $=ai.lastIndex=0;ai.test(R);)++$;return $}function By(R){return R.match(ai)||[]}function Wy(R){return R.match(iy)||[]}var Uy=function R($){$=$==null?gt:Dn.defaults(gt.Object(),$,Dn.pick(gt,ly));var I=$.Array,Z=$.Date,pe=$.Error,Oe=$.Function,ut=$.Math,He=$.Object,vi=$.RegExp,Hy=$.String,Xt=$.TypeError,so=I.prototype,qy=Oe.prototype,In=He.prototype,io=$["__core-js_shared__"],uo=qy.toString,je=In.hasOwnProperty,Gy=0,Ul=function(){var n=/[^.]+$/.exec(io&&io.keys&&io.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),co=In.toString,Yy=uo.call(He),zy=gt._,Vy=vi("^"+uo.call(je).replace(w,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),lo=Cl?$.Buffer:t,Yr=$.Symbol,fo=$.Uint8Array,Hl=lo?lo.allocUnsafe:t,po=Bl(He.getPrototypeOf,He),ql=He.create,Gl=In.propertyIsEnumerable,ho=so.splice,Yl=Yr?Yr.isConcatSpreadable:t,ca=Yr?Yr.iterator:t,pn=Yr?Yr.toStringTag:t,go=function(){try{var n=mn(He,"defineProperty");return n({},"",{}),n}catch{}}(),Ky=$.clearTimeout!==gt.clearTimeout&&$.clearTimeout,Jy=Z&&Z.now!==gt.Date.now&&Z.now,Xy=$.setTimeout!==gt.setTimeout&&$.setTimeout,vo=ut.ceil,yo=ut.floor,yi=He.getOwnPropertySymbols,Zy=lo?lo.isBuffer:t,zl=$.isFinite,Qy=so.join,em=Bl(He.keys,He),ct=ut.max,bt=ut.min,tm=Z.now,rm=$.parseInt,Vl=ut.random,nm=so.reverse,mi=mn($,"DataView"),la=mn($,"Map"),bi=mn($,"Promise"),Fn=mn($,"Set"),fa=mn($,"WeakMap"),da=mn(He,"create"),mo=fa&&new fa,$n={},am=bn(mi),om=bn(la),sm=bn(bi),im=bn(Fn),um=bn(fa),bo=Yr?Yr.prototype:t,pa=bo?bo.valueOf:t,Kl=bo?bo.toString:t;function v(n){if(tt(n)&&!ve(n)&&!(n instanceof we)){if(n instanceof Zt)return n;if(je.call(n,"__wrapped__"))return Xf(n)}return new Zt(n)}var Mn=function(){function n(){}return function(o){if(!Ze(o))return{};if(ql)return ql(o);n.prototype=o;var u=new n;return n.prototype=t,u}}();function _o(){}function Zt(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=t}v.templateSettings={escape:Js,evaluate:Xa,interpolate:Za,variable:"",imports:{_:v}},v.prototype=_o.prototype,v.prototype.constructor=v,Zt.prototype=Mn(_o.prototype),Zt.prototype.constructor=Zt;function we(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=G,this.__views__=[]}function cm(){var n=new we(this.__wrapped__);return n.__actions__=It(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=It(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=It(this.__views__),n}function lm(){if(this.__filtered__){var n=new we(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function fm(){var n=this.__wrapped__.value(),o=this.__dir__,u=ve(n),f=o<0,h=u?n.length:0,y=wb(0,h,this.__views__),E=y.start,C=y.end,A=C-E,L=f?C:E-1,N=this.__iteratees__,B=N.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;){L+=o;for(var be=-1,oe=n[L];++be<B;){var Ee=N[be],xe=Ee.iteratee,Wt=Ee.type,At=xe(oe);if(Wt==it)oe=At;else if(!At){if(Wt==Pe)continue e;break e}}ae[V++]=oe}return ae}we.prototype=Mn(_o.prototype),we.prototype.constructor=we;function hn(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 dm(){this.__data__=da?da(null):{},this.size=0}function pm(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function hm(n){var o=this.__data__;if(da){var u=o[n];return u===d?t:u}return je.call(o,n)?o[n]:t}function gm(n){var o=this.__data__;return da?o[n]!==t:je.call(o,n)}function vm(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=da&&o===t?d:o,this}hn.prototype.clear=dm,hn.prototype.delete=pm,hn.prototype.get=hm,hn.prototype.has=gm,hn.prototype.set=vm;function wr(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var f=n[o];this.set(f[0],f[1])}}function ym(){this.__data__=[],this.size=0}function mm(n){var o=this.__data__,u=So(o,n);if(u<0)return!1;var f=o.length-1;return u==f?o.pop():ho.call(o,u,1),--this.size,!0}function bm(n){var o=this.__data__,u=So(o,n);return u<0?t:o[u][1]}function _m(n){return So(this.__data__,n)>-1}function Sm(n,o){var u=this.__data__,f=So(u,n);return f<0?(++this.size,u.push([n,o])):u[f][1]=o,this}wr.prototype.clear=ym,wr.prototype.delete=mm,wr.prototype.get=bm,wr.prototype.has=_m,wr.prototype.set=Sm;function Tr(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var f=n[o];this.set(f[0],f[1])}}function Em(){this.size=0,this.__data__={hash:new hn,map:new(la||wr),string:new hn}}function wm(n){var o=Fo(this,n).delete(n);return this.size-=o?1:0,o}function Tm(n){return Fo(this,n).get(n)}function Cm(n){return Fo(this,n).has(n)}function xm(n,o){var u=Fo(this,n),f=u.size;return u.set(n,o),this.size+=u.size==f?0:1,this}Tr.prototype.clear=Em,Tr.prototype.delete=wm,Tr.prototype.get=Tm,Tr.prototype.has=Cm,Tr.prototype.set=xm;function gn(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new Tr;++o<u;)this.add(n[o])}function Rm(n){return this.__data__.set(n,d),this}function Om(n){return this.__data__.has(n)}gn.prototype.add=gn.prototype.push=Rm,gn.prototype.has=Om;function ur(n){var o=this.__data__=new wr(n);this.size=o.size}function Am(){this.__data__=new wr,this.size=0}function Pm(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function Dm(n){return this.__data__.get(n)}function Im(n){return this.__data__.has(n)}function Fm(n,o){var u=this.__data__;if(u instanceof wr){var f=u.__data__;if(!la||f.length<s-1)return f.push([n,o]),this.size=++u.size,this;u=this.__data__=new Tr(f)}return u.set(n,o),this.size=u.size,this}ur.prototype.clear=Am,ur.prototype.delete=Pm,ur.prototype.get=Dm,ur.prototype.has=Im,ur.prototype.set=Fm;function Jl(n,o){var u=ve(n),f=!u&&_n(n),h=!u&&!f&&Xr(n),y=!u&&!f&&!h&&jn(n),E=u||f||h||y,C=E?pi(n.length,Hy):[],A=C.length;for(var L in n)(o||je.call(n,L))&&!(E&&(L=="length"||h&&(L=="offset"||L=="parent")||y&&(L=="buffer"||L=="byteLength"||L=="byteOffset")||Or(L,A)))&&C.push(L);return C}function Xl(n){var o=n.length;return o?n[Pi(0,o-1)]:t}function $m(n,o){return $o(It(n),vn(o,0,n.length))}function Mm(n){return $o(It(n))}function _i(n,o,u){(u!==t&&!cr(n[o],u)||u===t&&!(o in n))&&Cr(n,o,u)}function ha(n,o,u){var f=n[o];(!(je.call(n,o)&&cr(f,u))||u===t&&!(o in n))&&Cr(n,o,u)}function So(n,o){for(var u=n.length;u--;)if(cr(n[u][0],o))return u;return-1}function Lm(n,o,u,f){return zr(n,function(h,y,E){o(f,h,u(h),E)}),f}function Zl(n,o){return n&&yr(o,dt(o),n)}function Nm(n,o){return n&&yr(o,$t(o),n)}function Cr(n,o,u){o=="__proto__"&&go?go(n,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[o]=u}function Si(n,o){for(var u=-1,f=o.length,h=I(f),y=n==null;++u<f;)h[u]=y?t:tu(n,o[u]);return h}function vn(n,o,u){return n===n&&(u!==t&&(n=n<=u?n:u),o!==t&&(n=n>=o?n:o)),n}function Qt(n,o,u,f,h,y){var E,C=o&b,A=o&_,L=o&S;if(u&&(E=h?u(n,f,h,y):u(n)),E!==t)return E;if(!Ze(n))return n;var N=ve(n);if(N){if(E=Cb(n),!C)return It(n,E)}else{var B=_t(n),V=B==F||B==ze;if(Xr(n))return wf(n,C);if(B==zt||B==fe||V&&!h){if(E=A||V?{}:Uf(n),!C)return A?hb(n,Nm(E,n)):pb(n,Zl(E,n))}else{if(!Ye[B])return h?n:{};E=xb(n,B,C)}}y||(y=new ur);var ee=y.get(n);if(ee)return ee;y.set(n,E),yd(n)?n.forEach(function(oe){E.add(Qt(oe,o,u,oe,n,y))}):gd(n)&&n.forEach(function(oe,Ee){E.set(Ee,Qt(oe,o,u,Ee,n,y))});var ae=L?A?Wi:Bi:A?$t:dt,be=N?t:ae(n);return Jt(be||n,function(oe,Ee){be&&(Ee=oe,oe=n[Ee]),ha(E,Ee,Qt(oe,o,u,Ee,n,y))}),E}function km(n){var o=dt(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=He(n);f--;){var h=u[f],y=o[h],E=n[h];if(E===t&&!(h in n)||!y(E))return!1}return!0}function ef(n,o,u){if(typeof n!="function")throw new Xt(c);return Sa(function(){n.apply(t,u)},o)}function ga(n,o,u,f){var h=-1,y=no,E=!0,C=n.length,A=[],L=o.length;if(!C)return A;u&&(o=Ke(o,kt(u))),f?(y=ii,E=!1):o.length>=s&&(y=ua,E=!1,o=new gn(o));e:for(;++h<C;){var N=n[h],B=u==null?N:u(N);if(N=f||N!==0?N:0,E&&B===B){for(var V=L;V--;)if(o[V]===B)continue e;A.push(N)}else y(o,B,f)||A.push(N)}return A}var zr=Of(vr),tf=Of(wi,!0);function jm(n,o){var u=!0;return zr(n,function(f,h,y){return u=!!o(f,h,y),u}),u}function Eo(n,o,u){for(var f=-1,h=n.length;++f<h;){var y=n[f],E=o(y);if(E!=null&&(C===t?E===E&&!Bt(E):u(E,C)))var C=E,A=y}return A}function Bm(n,o,u,f){var h=n.length;for(u=ye(u),u<0&&(u=-u>h?0:h+u),f=f===t||f>h?h:ye(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 zr(n,function(f,h,y){o(f,h,y)&&u.push(f)}),u}function vt(n,o,u,f,h){var y=-1,E=n.length;for(u||(u=Ob),h||(h=[]);++y<E;){var C=n[y];o>0&&u(C)?o>1?vt(C,o-1,u,f,h):qr(h,C):f||(h[h.length]=C)}return h}var Ei=Af(),nf=Af(!0);function vr(n,o){return n&&Ei(n,o,dt)}function wi(n,o){return n&&nf(n,o,dt)}function wo(n,o){return Hr(o,function(u){return Ar(n[u])})}function yn(n,o){o=Kr(o,n);for(var u=0,f=o.length;n!=null&&u<f;)n=n[mr(o[u++])];return u&&u==f?n:t}function af(n,o,u){var f=o(n);return ve(n)?f:qr(f,u(n))}function Rt(n){return n==null?n===t?Ya:Ga:pn&&pn in He(n)?Eb(n):Mb(n)}function Ti(n,o){return n>o}function Wm(n,o){return n!=null&&je.call(n,o)}function Um(n,o){return n!=null&&o in He(n)}function Hm(n,o,u){return n>=bt(o,u)&&n<ct(o,u)}function Ci(n,o,u){for(var f=u?ii:no,h=n[0].length,y=n.length,E=y,C=I(y),A=1/0,L=[];E--;){var N=n[E];E&&o&&(N=Ke(N,kt(o))),A=bt(N.length,A),C[E]=!u&&(o||h>=120&&N.length>=120)?new gn(E&&N):t}N=n[0];var B=-1,V=C[0];e:for(;++B<h&&L.length<A;){var ee=N[B],ae=o?o(ee):ee;if(ee=u||ee!==0?ee:0,!(V?ua(V,ae):f(L,ae,u))){for(E=y;--E;){var be=C[E];if(!(be?ua(be,ae):f(n[E],ae,u)))continue e}V&&V.push(ae),L.push(ee)}}return L}function qm(n,o,u,f){return vr(n,function(h,y,E){o(f,u(h),y,E)}),f}function va(n,o,u){o=Kr(o,n),n=Yf(n,o);var f=n==null?n:n[mr(tr(o))];return f==null?t:Nt(f,n,u)}function of(n){return tt(n)&&Rt(n)==fe}function Gm(n){return tt(n)&&Rt(n)==un}function Ym(n){return tt(n)&&Rt(n)==he}function ya(n,o,u,f,h){return n===o?!0:n==null||o==null||!tt(n)&&!tt(o)?n!==n&&o!==o:zm(n,o,u,f,ya,h)}function zm(n,o,u,f,h,y){var E=ve(n),C=ve(o),A=E?ne:_t(n),L=C?ne:_t(o);A=A==fe?zt:A,L=L==fe?zt:L;var N=A==zt,B=L==zt,V=A==L;if(V&&Xr(n)){if(!Xr(o))return!1;E=!0,N=!1}if(V&&!N)return y||(y=new ur),E||jn(n)?jf(n,o,u,f,h,y):_b(n,o,A,u,f,h,y);if(!(u&T)){var ee=N&&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 ur),h(be,oe,u,f,y)}}return V?(y||(y=new ur),Sb(n,o,u,f,h,y)):!1}function Vm(n){return tt(n)&&_t(n)==Ge}function xi(n,o,u,f){var h=u.length,y=h,E=!f;if(n==null)return!y;for(n=He(n);h--;){var C=u[h];if(E&&C[2]?C[1]!==n[C[0]]:!(C[0]in n))return!1}for(;++h<y;){C=u[h];var A=C[0],L=n[A],N=C[1];if(E&&C[2]){if(L===t&&!(A in n))return!1}else{var B=new ur;if(f)var V=f(L,N,A,n,o,B);if(!(V===t?ya(N,L,T|x,f,B):V))return!1}}return!0}function sf(n){if(!Ze(n)||Pb(n))return!1;var o=Ar(n)?Vy:sr;return o.test(bn(n))}function Km(n){return tt(n)&&Rt(n)==or}function Jm(n){return tt(n)&&_t(n)==xt}function Xm(n){return tt(n)&&Bo(n.length)&&!!Ve[Rt(n)]}function uf(n){return typeof n=="function"?n:n==null?Mt:typeof n=="object"?ve(n)?ff(n[0],n[1]):lf(n):Pd(n)}function Ri(n){if(!_a(n))return em(n);var o=[];for(var u in He(n))je.call(n,u)&&u!="constructor"&&o.push(u);return o}function Zm(n){if(!Ze(n))return $b(n);var o=_a(n),u=[];for(var f in n)f=="constructor"&&(o||!je.call(n,f))||u.push(f);return u}function Oi(n,o){return n<o}function cf(n,o){var u=-1,f=Ft(n)?I(n.length):[];return zr(n,function(h,y,E){f[++u]=o(h,y,E)}),f}function lf(n){var o=Hi(n);return o.length==1&&o[0][2]?qf(o[0][0],o[0][1]):function(u){return u===n||xi(u,n,o)}}function ff(n,o){return Gi(n)&&Hf(o)?qf(mr(n),o):function(u){var f=tu(u,n);return f===t&&f===o?ru(u,n):ya(o,f,T|x)}}function To(n,o,u,f,h){n!==o&&Ei(o,function(y,E){if(h||(h=new ur),Ze(y))Qm(n,o,E,u,To,f,h);else{var C=f?f(zi(n,E),y,E+"",n,o,h):t;C===t&&(C=y),_i(n,E,C)}},$t)}function Qm(n,o,u,f,h,y,E){var C=zi(n,u),A=zi(o,u),L=E.get(A);if(L){_i(n,u,L);return}var N=y?y(C,A,u+"",n,o,E):t,B=N===t;if(B){var V=ve(A),ee=!V&&Xr(A),ae=!V&&!ee&&jn(A);N=A,V||ee||ae?ve(C)?N=C:nt(C)?N=It(C):ee?(B=!1,N=wf(A,!0)):ae?(B=!1,N=Tf(A,!0)):N=[]:Ea(A)||_n(A)?(N=C,_n(C)?N=_d(C):(!Ze(C)||Ar(C))&&(N=Uf(A))):B=!1}B&&(E.set(A,N),h(N,A,f,y,E),E.delete(A)),_i(n,u,N)}function df(n,o){var u=n.length;if(u)return o+=o<0?u:0,Or(o,u)?n[o]:t}function pf(n,o,u){o.length?o=Ke(o,function(y){return ve(y)?function(E){return yn(E,y.length===1?y[0]:y)}:y}):o=[Mt];var f=-1;o=Ke(o,kt(re()));var h=cf(n,function(y,E,C){var A=Ke(o,function(L){return L(y)});return{criteria:A,index:++f,value:y}});return xy(h,function(y,E){return db(y,E,u)})}function eb(n,o){return hf(n,o,function(u,f){return ru(n,f)})}function hf(n,o,u){for(var f=-1,h=o.length,y={};++f<h;){var E=o[f],C=yn(n,E);u(C,E)&&ma(y,Kr(E,n),C)}return y}function tb(n){return function(o){return yn(o,n)}}function Ai(n,o,u,f){var h=f?Cy:On,y=-1,E=o.length,C=n;for(n===o&&(o=It(o)),u&&(C=Ke(n,kt(u)));++y<E;)for(var A=0,L=o[y],N=u?u(L):L;(A=h(C,N,A,f))>-1;)C!==n&&ho.call(C,A,1),ho.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;Or(h)?ho.call(n,h,1):Fi(n,h)}}return n}function Pi(n,o){return n+yo(Vl()*(o-n+1))}function rb(n,o,u,f){for(var h=-1,y=ct(vo((o-n)/(u||1)),0),E=I(y);y--;)E[f?y:++h]=n,n+=u;return E}function Di(n,o){var u="";if(!n||o<1||o>rt)return u;do o%2&&(u+=n),o=yo(o/2),o&&(n+=n);while(o);return u}function _e(n,o){return Vi(Gf(n,o,Mt),n+"")}function nb(n){return Xl(Bn(n))}function ab(n,o){var u=Bn(n);return $o(u,vn(o,0,u.length))}function ma(n,o,u,f){if(!Ze(n))return n;o=Kr(o,n);for(var h=-1,y=o.length,E=y-1,C=n;C!=null&&++h<y;){var A=mr(o[h]),L=u;if(A==="__proto__"||A==="constructor"||A==="prototype")return n;if(h!=E){var N=C[A];L=f?f(N,A,C):t,L===t&&(L=Ze(N)?N:Or(o[h+1])?[]:{})}ha(C,A,L),C=C[A]}return n}var vf=mo?function(n,o){return mo.set(n,o),n}:Mt,ob=go?function(n,o){return go(n,"toString",{configurable:!0,enumerable:!1,value:au(o),writable:!0})}:Mt;function sb(n){return $o(Bn(n))}function er(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=I(h);++f<h;)y[f]=n[f+o];return y}function ib(n,o){var u;return zr(n,function(f,h,y){return u=o(f,h,y),!u}),!!u}function Co(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,E=n[y];E!==null&&!Bt(E)&&(u?E<=o:E<o)?f=y+1:h=y}return h}return Ii(n,o,Mt,u)}function Ii(n,o,u,f){var h=0,y=n==null?0:n.length;if(y===0)return 0;o=u(o);for(var E=o!==o,C=o===null,A=Bt(o),L=o===t;h<y;){var N=yo((h+y)/2),B=u(n[N]),V=B!==t,ee=B===null,ae=B===B,be=Bt(B);if(E)var oe=f||ae;else L?oe=ae&&(f||V):C?oe=ae&&V&&(f||!ee):A?oe=ae&&V&&!ee&&(f||!be):ee||be?oe=!1:oe=f?B<=o:B<o;oe?h=N+1:y=N}return bt(y,de)}function yf(n,o){for(var u=-1,f=n.length,h=0,y=[];++u<f;){var E=n[u],C=o?o(E):E;if(!u||!cr(C,A)){var A=C;y[h++]=E===0?0:E}}return y}function mf(n){return typeof n=="number"?n:Bt(n)?W:+n}function jt(n){if(typeof n=="string")return n;if(ve(n))return Ke(n,jt)+"";if(Bt(n))return Kl?Kl.call(n):"";var o=n+"";return o=="0"&&1/n==-qe?"-0":o}function Vr(n,o,u){var f=-1,h=no,y=n.length,E=!0,C=[],A=C;if(u)E=!1,h=ii;else if(y>=s){var L=o?null:mb(n);if(L)return oo(L);E=!1,h=ua,A=new gn}else A=o?[]:C;e:for(;++f<y;){var N=n[f],B=o?o(N):N;if(N=u||N!==0?N:0,E&&B===B){for(var V=A.length;V--;)if(A[V]===B)continue e;o&&A.push(B),C.push(N)}else h(A,B,u)||(A!==C&&A.push(B),C.push(N))}return C}function Fi(n,o){return o=Kr(o,n),n=Yf(n,o),n==null||delete n[mr(tr(o))]}function bf(n,o,u,f){return ma(n,o,u(yn(n,o)),f)}function xo(n,o,u,f){for(var h=n.length,y=f?h:-1;(f?y--:++y<h)&&o(n[y],y,n););return u?er(n,f?0:y,f?y+1:h):er(n,f?y+1:0,f?h:y)}function _f(n,o){var u=n;return u instanceof we&&(u=u.value()),ui(o,function(f,h){return h.func.apply(h.thisArg,qr([f],h.args))},u)}function $i(n,o,u){var f=n.length;if(f<2)return f?Vr(n[0]):[];for(var h=-1,y=I(f);++h<f;)for(var E=n[h],C=-1;++C<f;)C!=h&&(y[h]=ga(y[h]||E,n[C],o,u));return Vr(vt(y,1),o,u)}function Sf(n,o,u){for(var f=-1,h=n.length,y=o.length,E={};++f<h;){var C=f<y?o[f]:t;u(E,n[f],C)}return E}function Mi(n){return nt(n)?n:[]}function Li(n){return typeof n=="function"?n:Mt}function Kr(n,o){return ve(n)?n:Gi(n,o)?[n]:Jf(De(n))}var ub=_e;function Jr(n,o,u){var f=n.length;return u=u===t?f:u,!o&&u>=f?n:er(n,o,u)}var Ef=Ky||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 Ni(n){var o=new n.constructor(n.byteLength);return new fo(o).set(new fo(n)),o}function cb(n,o){var u=o?Ni(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function lb(n){var o=new n.constructor(n.source,Vt.exec(n));return o.lastIndex=n.lastIndex,o}function fb(n){return pa?He(pa.call(n)):{}}function Tf(n,o){var u=o?Ni(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=Bt(n),E=o!==t,C=o===null,A=o===o,L=Bt(o);if(!C&&!L&&!y&&n>o||y&&E&&A&&!C&&!L||f&&E&&A||!u&&A||!h)return 1;if(!f&&!y&&!L&&n<o||L&&u&&h&&!f&&!y||C&&u&&h||!E&&h||!A)return-1}return 0}function db(n,o,u){for(var f=-1,h=n.criteria,y=o.criteria,E=h.length,C=u.length;++f<E;){var A=Cf(h[f],y[f]);if(A){if(f>=C)return A;var L=u[f];return A*(L=="desc"?-1:1)}}return n.index-o.index}function xf(n,o,u,f){for(var h=-1,y=n.length,E=u.length,C=-1,A=o.length,L=ct(y-E,0),N=I(A+L),B=!f;++C<A;)N[C]=o[C];for(;++h<E;)(B||h<y)&&(N[u[h]]=n[h]);for(;L--;)N[C++]=n[h++];return N}function Rf(n,o,u,f){for(var h=-1,y=n.length,E=-1,C=u.length,A=-1,L=o.length,N=ct(y-C,0),B=I(N+L),V=!f;++h<N;)B[h]=n[h];for(var ee=h;++A<L;)B[ee+A]=o[A];for(;++E<C;)(V||h<y)&&(B[ee+u[E]]=n[h++]);return B}function It(n,o){var u=-1,f=n.length;for(o||(o=I(f));++u<f;)o[u]=n[u];return o}function yr(n,o,u,f){var h=!u;u||(u={});for(var y=-1,E=o.length;++y<E;){var C=o[y],A=f?f(u[C],n[C],C,u,n):t;A===t&&(A=n[C]),h?Cr(u,C,A):ha(u,C,A)}return u}function pb(n,o){return yr(n,qi(n),o)}function hb(n,o){return yr(n,Bf(n),o)}function Ro(n,o){return function(u,f){var h=ve(u)?by:Lm,y=o?o():{};return h(u,n,re(f,2),y)}}function Ln(n){return _e(function(o,u){var f=-1,h=u.length,y=h>1?u[h-1]:t,E=h>2?u[2]:t;for(y=n.length>3&&typeof y=="function"?(h--,y):t,E&&Ot(u[0],u[1],E)&&(y=h<3?t:y,h=1),o=He(o);++f<h;){var C=u[f];C&&n(o,C,f,y)}return o})}function Of(n,o){return function(u,f){if(u==null)return u;if(!Ft(u))return n(u,f);for(var h=u.length,y=o?h:-1,E=He(u);(o?y--:++y<h)&&f(E[y],y,E)!==!1;);return u}}function Af(n){return function(o,u,f){for(var h=-1,y=He(o),E=f(o),C=E.length;C--;){var A=E[n?C:++h];if(u(y[A],A,y)===!1)break}return o}}function gb(n,o,u){var f=o&D,h=ba(n);function y(){var E=this&&this!==gt&&this instanceof y?h:n;return E.apply(f?u:this,arguments)}return y}function Pf(n){return function(o){o=De(o);var u=An(o)?ir(o):t,f=u?u[0]:o.charAt(0),h=u?Jr(u,1).join(""):o.slice(1);return f[n]()+h}}function Nn(n){return function(o){return ui(Od(Rd(o).replace(oy,"")),n,"")}}function ba(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=Mn(n.prototype),f=n.apply(u,o);return Ze(f)?f:u}}function vb(n,o,u){var f=ba(n);function h(){for(var y=arguments.length,E=I(y),C=y,A=kn(h);C--;)E[C]=arguments[C];var L=y<3&&E[0]!==A&&E[y-1]!==A?[]:Gr(E,A);if(y-=L.length,y<u)return Mf(n,o,Oo,h.placeholder,t,E,L,t,t,u-y);var N=this&&this!==gt&&this instanceof h?f:n;return Nt(N,this,E)}return h}function Df(n){return function(o,u,f){var h=He(o);if(!Ft(o)){var y=re(u,3);o=dt(o),u=function(C){return y(h[C],C,h)}}var E=n(o,u,f);return E>-1?h[y?o[E]:E]:t}}function If(n){return Rr(function(o){var u=o.length,f=u,h=Zt.prototype.thru;for(n&&o.reverse();f--;){var y=o[f];if(typeof y!="function")throw new Xt(c);if(h&&!E&&Io(y)=="wrapper")var E=new Zt([],!0)}for(f=E?f:u;++f<u;){y=o[f];var C=Io(y),A=C=="wrapper"?Ui(y):t;A&&Yi(A[0])&&A[1]==(q|M|O|Y)&&!A[4].length&&A[9]==1?E=E[Io(A[0])].apply(E,A[3]):E=y.length==1&&Yi(y)?E[C]():E.thru(y)}return function(){var L=arguments,N=L[0];if(E&&L.length==1&&ve(N))return E.plant(N).value();for(var B=0,V=u?o[B].apply(this,L):N;++B<u;)V=o[B].call(this,V);return V}})}function Oo(n,o,u,f,h,y,E,C,A,L){var N=o&q,B=o&D,V=o&P,ee=o&(M|k),ae=o&te,be=V?t:ba(n);function oe(){for(var Ee=arguments.length,xe=I(Ee),Wt=Ee;Wt--;)xe[Wt]=arguments[Wt];if(ee)var At=kn(oe),Ut=Oy(xe,At);if(f&&(xe=xf(xe,f,h,ee)),y&&(xe=Rf(xe,y,E,ee)),Ee-=Ut,ee&&Ee<L){var at=Gr(xe,At);return Mf(n,o,Oo,oe.placeholder,u,xe,at,C,A,L-Ee)}var lr=B?u:this,Dr=V?lr[n]:n;return Ee=xe.length,C?xe=Lb(xe,C):ae&&Ee>1&&xe.reverse(),N&&A<Ee&&(xe.length=A),this&&this!==gt&&this instanceof oe&&(Dr=be||ba(Dr)),Dr.apply(lr,xe)}return oe}function Ff(n,o){return function(u,f){return qm(u,n,o(f),{})}}function Ao(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=jt(u),f=jt(f)):(u=mf(u),f=mf(f)),h=n(u,f)}return h}}function ki(n){return Rr(function(o){return o=Ke(o,kt(re())),_e(function(u){var f=this;return n(o,function(h){return Nt(h,f,u)})})})}function Po(n,o){o=o===t?" ":jt(o);var u=o.length;if(u<2)return u?Di(o,n):o;var f=Di(o,vo(n/Pn(o)));return An(o)?Jr(ir(f),0,n).join(""):f.slice(0,n)}function yb(n,o,u,f){var h=o&D,y=ba(n);function E(){for(var C=-1,A=arguments.length,L=-1,N=f.length,B=I(N+A),V=this&&this!==gt&&this instanceof E?y:n;++L<N;)B[L]=f[L];for(;A--;)B[L++]=arguments[++C];return Nt(V,h?u:this,B)}return E}function $f(n){return function(o,u,f){return f&&typeof f!="number"&&Ot(o,u,f)&&(u=f=t),o=Pr(o),u===t?(u=o,o=0):u=Pr(u),f=f===t?o<u?1:-1:Pr(f),rb(o,u,f,n)}}function Do(n){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=rr(o),u=rr(u)),n(o,u)}}function Mf(n,o,u,f,h,y,E,C,A,L){var N=o&M,B=N?E:t,V=N?t:E,ee=N?y:t,ae=N?t:y;o|=N?O:z,o&=~(N?z:O),o&j||(o&=~(D|P));var be=[n,o,h,ee,B,ae,V,C,A,L],oe=u.apply(t,be);return Yi(n)&&zf(oe,be),oe.placeholder=f,Vf(oe,n,o)}function ji(n){var o=ut[n];return function(u,f){if(u=rr(u),f=f==null?0:bt(ye(f),292),f&&zl(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 mb=Fn&&1/oo(new Fn([,-0]))[1]==qe?function(n){return new Fn(n)}:iu;function Lf(n){return function(o){var u=_t(o);return u==Ge?gi(o):u==xt?My(o):Ry(o,n(o))}}function xr(n,o,u,f,h,y,E,C){var A=o&P;if(!A&&typeof n!="function")throw new Xt(c);var L=f?f.length:0;if(L||(o&=~(O|z),f=h=t),E=E===t?E:ct(ye(E),0),C=C===t?C:ye(C),L-=h?h.length:0,o&z){var N=f,B=h;f=h=t}var V=A?t:Ui(n),ee=[n,o,u,f,h,N,B,y,E,C];if(V&&Fb(ee,V),n=ee[0],o=ee[1],u=ee[2],f=ee[3],h=ee[4],C=ee[9]=ee[9]===t?A?0:n.length:ct(ee[9]-L,0),!C&&o&(M|k)&&(o&=~(M|k)),!o||o==D)var ae=gb(n,o,u);else o==M||o==k?ae=vb(n,o,C):(o==O||o==(D|O))&&!h.length?ae=yb(n,o,u,f):ae=Oo.apply(t,ee);var be=V?vf:zf;return Vf(be(ae,ee),n,o)}function Nf(n,o,u,f){return n===t||cr(n,In[u])&&!je.call(f,u)?o:n}function kf(n,o,u,f,h,y){return Ze(n)&&Ze(o)&&(y.set(o,n),To(n,o,t,kf,y),y.delete(o)),n}function bb(n){return Ea(n)?t:n}function jf(n,o,u,f,h,y){var E=u&T,C=n.length,A=o.length;if(C!=A&&!(E&&A>C))return!1;var L=y.get(n),N=y.get(o);if(L&&N)return L==o&&N==n;var B=-1,V=!0,ee=u&x?new gn:t;for(y.set(n,o),y.set(o,n);++B<C;){var ae=n[B],be=o[B];if(f)var oe=E?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(!ci(o,function(Ee,xe){if(!ua(ee,xe)&&(ae===Ee||h(ae,Ee,u,f,y)))return ee.push(xe)})){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 _b(n,o,u,f,h,y,E){switch(u){case Wr:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case un:return!(n.byteLength!=o.byteLength||!y(new fo(n),new fo(o)));case ue:case he:case mt:return cr(+n,+o);case K:return n.name==o.name&&n.message==o.message;case or:case on:return n==o+"";case Ge:var C=gi;case xt:var A=f&T;if(C||(C=oo),n.size!=o.size&&!A)return!1;var L=E.get(n);if(L)return L==o;f|=x,E.set(n,o);var N=jf(C(n),C(o),f,h,y,E);return E.delete(n),N;case sn:if(pa)return pa.call(n)==pa.call(o)}return!1}function Sb(n,o,u,f,h,y){var E=u&T,C=Bi(n),A=C.length,L=Bi(o),N=L.length;if(A!=N&&!E)return!1;for(var B=A;B--;){var V=C[B];if(!(E?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=E;++B<A;){V=C[B];var Ee=n[V],xe=o[V];if(f)var Wt=E?f(xe,Ee,V,o,n,y):f(Ee,xe,V,n,o,y);if(!(Wt===t?Ee===xe||h(Ee,xe,u,f,y):Wt)){be=!1;break}oe||(oe=V=="constructor")}if(be&&!oe){var At=n.constructor,Ut=o.constructor;At!=Ut&&"constructor"in n&&"constructor"in o&&!(typeof At=="function"&&At instanceof At&&typeof Ut=="function"&&Ut instanceof Ut)&&(be=!1)}return y.delete(n),y.delete(o),be}function Rr(n){return Vi(Gf(n,t,ed),n+"")}function Bi(n){return af(n,dt,qi)}function Wi(n){return af(n,$t,Bf)}var Ui=mo?function(n){return mo.get(n)}:iu;function Io(n){for(var o=n.name+"",u=$n[o],f=je.call($n,o)?u.length:0;f--;){var h=u[f],y=h.func;if(y==null||y==n)return h.name}return o}function kn(n){var o=je.call(v,"placeholder")?v:n;return o.placeholder}function re(){var n=v.iteratee||ou;return n=n===ou?uf:n,arguments.length?n(arguments[0],arguments[1]):n}function Fo(n,o){var u=n.__data__;return Ab(o)?u[typeof o=="string"?"string":"hash"]:u.map}function Hi(n){for(var o=dt(n),u=o.length;u--;){var f=o[u],h=n[f];o[u]=[f,h,Hf(h)]}return o}function mn(n,o){var u=Iy(n,o);return sf(u)?u:t}function Eb(n){var o=je.call(n,pn),u=n[pn];try{n[pn]=t;var f=!0}catch{}var h=co.call(n);return f&&(o?n[pn]=u:delete n[pn]),h}var qi=yi?function(n){return n==null?[]:(n=He(n),Hr(yi(n),function(o){return Gl.call(n,o)}))}:uu,Bf=yi?function(n){for(var o=[];n;)qr(o,qi(n)),n=po(n);return o}:uu,_t=Rt;(mi&&_t(new mi(new ArrayBuffer(1)))!=Wr||la&&_t(new la)!=Ge||bi&&_t(bi.resolve())!=an||Fn&&_t(new Fn)!=xt||fa&&_t(new fa)!=Er)&&(_t=function(n){var o=Rt(n),u=o==zt?n.constructor:t,f=u?bn(u):"";if(f)switch(f){case am:return Wr;case om:return Ge;case sm:return an;case im:return xt;case um:return Er}return o});function wb(n,o,u){for(var f=-1,h=u.length;++f<h;){var y=u[f],E=y.size;switch(y.type){case"drop":n+=E;break;case"dropRight":o-=E;break;case"take":o=bt(o,n+E);break;case"takeRight":n=ct(n,o-E);break}}return{start:n,end:o}}function Tb(n){var o=n.match(ke);return o?o[1].split(Ce):[]}function Wf(n,o,u){o=Kr(o,n);for(var f=-1,h=o.length,y=!1;++f<h;){var E=mr(o[f]);if(!(y=n!=null&&u(n,E)))break;n=n[E]}return y||++f!=h?y:(h=n==null?0:n.length,!!h&&Bo(h)&&Or(E,h)&&(ve(n)||_n(n)))}function Cb(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"&&!_a(n)?Mn(po(n)):{}}function xb(n,o,u){var f=n.constructor;switch(o){case un:return Ni(n);case ue:case he:return new f(+n);case Wr:return cb(n,u);case na:case aa:case oa:case sa:case cn:case xn:case gr:case ln:case fn:return Tf(n,u);case Ge:return new f;case mt:case on:return new f(n);case or:return lb(n);case xt:return new f;case sn:return fb(n)}}function Rb(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 Cb(n){return ve(n)||bn(n)||!!(ql&&n&&n[ql])}function Or(n,o){var u=typeof n;return o=o??rt,!!o&&(u=="number"||u!="symbol"&&Nv.test(n))&&n>-1&&n%1==0&&n<o}function Ot(n,o,u){if(!Ze(u))return!1;var f=typeof o;return(f=="number"?Ft(u)&&Or(o,u.length):f=="string"&&o in u)?cr(u[o],n):!1}function Hi(n,o){if(ve(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||Bt(n)?!0:Js.test(n)||!Ks.test(n)||o!=null&&n in He(o)}function xb(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function qi(n){var o=Do(n),u=v[o];if(typeof u!="function"||!(o in we.prototype))return!1;if(n===u)return!0;var f=Bi(u);return!!f&&n===f[0]}function Rb(n){return!!Bl&&Bl in n}var Ob=so?Ar:iu;function _a(n){var o=n&&n.constructor,u=typeof o=="function"&&o.prototype||In;return n===u}function Wf(n){return n===n&&!Ze(n)}function Uf(n,o){return function(u){return u==null?!1:u[n]===o&&(o!==t||n in He(u))}}function Ab(n){var o=No(n,function(f){return u.size===p&&u.clear(),f}),u=o.cache;return o}function Pb(n,o){var u=n[1],f=o[1],h=u|f,y=h<(D|P|q),S=f==q&&u==M||f==q&&u==Y&&n[7].length<=o[8]||f==(q|Y)&&o[7].length<=o[8]&&u==M;if(!(y||S))return n;f&D&&(n[2]=o[2],h|=u&D?0:j);var C=o[3];if(C){var A=n[3];n[3]=A?Tf(A,C,o[4]):C,n[4]=A?Gr(n[3],g):o[4]}return C=o[5],C&&(A=n[5],n[5]=A?Cf(A,C,o[6]):C,n[6]=A?Gr(n[5],g):o[6]),C=o[7],C&&(n[7]=C),f&q&&(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 Db(n){var o=[];if(n!=null)for(var u in He(n))o.push(u);return o}function Ib(n){return uo.call(n)}function Hf(n,o,u){return o=ct(o===t?n.length-1:o,0),function(){for(var f=arguments,h=-1,y=ct(f.length-o,0),S=I(y);++h<y;)S[h]=f[o+h];h=-1;for(var C=I(o+1);++h<o;)C[h]=f[h];return C[o]=u(S),Nt(n,this,C)}}function qf(n,o){return o.length<2?n:vn(n,er(o,0,-1))}function Fb(n,o){for(var u=n.length,f=bt(o.length,u),h=It(n);f--;){var y=o[f];n[f]=Or(y,u)?h[y]:t}return n}function Gi(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var Gf=zf(hf),Ea=Vy||function(n,o){return gt.setTimeout(n,o)},Yi=zf(rb);function Yf(n,o,u){var f=o+"";return Yi(n,Tb(f,$b(Eb(f),u)))}function zf(n){var o=0,u=0;return function(){var f=Zy(),h=X-(f-u);if(u=f,h>0){if(++o>=st)return arguments[0]}else o=0;return n.apply(t,arguments)}}function Fo(n,o){var u=-1,f=n.length,h=f-1;for(o=o===t?f:o;++u<o;){var y=Oi(u,h),S=n[y];n[y]=n[u],n[u]=S}return n.length=o,n}var Vf=Ab(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(Xs,function(u,f,h,y){o.push(h?y.replace(Xe,"$1"):f||u)}),o});function mr(n){if(typeof n=="string"||Bt(n))return n;var o=n+"";return o=="0"&&1/n==-qe?"-0":o}function mn(n){if(n!=null){try{return io.call(n)}catch{}try{return n+""}catch{}}return""}function $b(n,o){return Jt(se,function(u){var f="_."+u[0];o&u[1]&&!ro(n,f)&&n.push(f)}),n.sort()}function Kf(n){if(n instanceof we)return n.clone();var o=new Zt(n.__wrapped__,n.__chain__);return o.__actions__=It(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function Mb(n,o,u){(u?Ot(n,o,u):o===t)?o=1:o=ct(ye(o),0);var f=n==null?0:n.length;if(!f||o<1)return[];for(var h=0,y=0,S=I(go(f/o));h<f;)S[y++]=er(n,h,h+=o);return S}function Lb(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 Nb(){var n=arguments.length;if(!n)return[];for(var o=I(n-1),u=arguments[0],f=n;f--;)o[f-1]=arguments[f];return qr(ve(u)?It(u):[u],vt(o,1))}var kb=_e(function(n,o){return nt(n)?ga(n,vt(o,1,nt,!0)):[]}),jb=_e(function(n,o){var u=tr(o);return nt(u)&&(u=t),nt(n)?ga(n,vt(o,1,nt,!0),re(u,2)):[]}),Bb=_e(function(n,o){var u=tr(o);return nt(u)&&(u=t),nt(n)?ga(n,vt(o,1,nt,!0),t,u):[]});function Wb(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===t?1:ye(o),er(n,o<0?0:o,f)):[]}function Ub(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===t?1:ye(o),o=f-o,er(n,0,o<0?0:o)):[]}function Hb(n,o){return n&&n.length?Co(n,re(o,3),!0,!0):[]}function qb(n,o){return n&&n.length?Co(n,re(o,3),!0):[]}function Gb(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),Nm(n,o,u,f)):[]}function Jf(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var h=u==null?0:ye(u);return h<0&&(h=ct(f+h,0)),no(n,re(o,3),h)}function Xf(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var h=f-1;return u!==t&&(h=ye(u),h=u<0?ct(f+h,0):bt(h,f-1)),no(n,re(o,3),h,!0)}function Zf(n){var o=n==null?0:n.length;return o?vt(n,1):[]}function Yb(n){var o=n==null?0:n.length;return o?vt(n,qe):[]}function zb(n,o){var u=n==null?0:n.length;return u?(o=o===t?1:ye(o),vt(n,o)):[]}function Vb(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 Qf(n){return n&&n.length?n[0]:t}function Kb(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var h=u==null?0:ye(u);return h<0&&(h=ct(f+h,0)),On(n,o,h)}function Jb(n){var o=n==null?0:n.length;return o?er(n,0,-1):[]}var Xb=_e(function(n){var o=Ke(n,Fi);return o.length&&o[0]===n[0]?wi(o):[]}),Zb=_e(function(n){var o=tr(n),u=Ke(n,Fi);return o===tr(u)?o=t:u.pop(),u.length&&u[0]===n[0]?wi(u,re(o,2)):[]}),Qb=_e(function(n){var o=tr(n),u=Ke(n,Fi);return o=typeof o=="function"?o:t,o&&u.pop(),u.length&&u[0]===n[0]?wi(u,t,o):[]});function e0(n,o){return n==null?"":Jy.call(n,o)}function tr(n){var o=n==null?0:n.length;return o?n[o-1]:t}function t0(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var h=f;return u!==t&&(h=ye(u),h=h<0?ct(f+h,0):bt(h,f-1)),o===o?$y(n,o,h):no(n,Il,h,!0)}function r0(n,o){return n&&n.length?lf(n,ye(o)):t}var n0=_e(ed);function ed(n,o){return n&&n.length&&o&&o.length?Ri(n,o):n}function a0(n,o,u){return n&&n.length&&o&&o.length?Ri(n,o,re(u,2)):n}function o0(n,o,u){return n&&n.length&&o&&o.length?Ri(n,o,t,u):n}var s0=Rr(function(n,o){var u=n==null?0:n.length,f=bi(n,o);return pf(n,Ke(o,function(h){return Or(h,u)?+h:h}).sort(wf)),f});function i0(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 pf(n,h),u}function zi(n){return n==null?n:em.call(n)}function u0(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:ye(o),u=u===t?f:ye(u)),er(n,o,u)):[]}function c0(n,o){return To(n,o)}function l0(n,o,u){return Pi(n,o,re(u,2))}function f0(n,o){var u=n==null?0:n.length;if(u){var f=To(n,o);if(f<u&&cr(n[f],o))return f}return-1}function d0(n,o){return To(n,o,!0)}function p0(n,o,u){return Pi(n,o,re(u,2),!0)}function h0(n,o){var u=n==null?0:n.length;if(u){var f=To(n,o,!0)-1;if(cr(n[f],o))return f}return-1}function g0(n){return n&&n.length?gf(n):[]}function v0(n,o){return n&&n.length?gf(n,re(o,2)):[]}function y0(n){var o=n==null?0:n.length;return o?er(n,1,o):[]}function m0(n,o,u){return n&&n.length?(o=u||o===t?1:ye(o),er(n,0,o<0?0:o)):[]}function b0(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===t?1:ye(o),o=f-o,er(n,o<0?0:o,f)):[]}function _0(n,o){return n&&n.length?Co(n,re(o,3),!1,!0):[]}function E0(n,o){return n&&n.length?Co(n,re(o,3)):[]}var S0=_e(function(n){return Vr(vt(n,1,nt,!0))}),w0=_e(function(n){var o=tr(n);return nt(o)&&(o=t),Vr(vt(n,1,nt,!0),re(o,2))}),T0=_e(function(n){var o=tr(n);return o=typeof o=="function"?o:t,Vr(vt(n,1,nt,!0),t,o)});function C0(n){return n&&n.length?Vr(n):[]}function x0(n,o){return n&&n.length?Vr(n,re(o,2)):[]}function R0(n,o){return o=typeof o=="function"?o:t,n&&n.length?Vr(n,t,o):[]}function Vi(n){if(!(n&&n.length))return[];var o=0;return n=Hr(n,function(u){if(nt(u))return o=ct(u.length,o),!0}),fi(o,function(u){return Ke(n,ui(u))})}function td(n,o){if(!(n&&n.length))return[];var u=Vi(n);return o==null?u:Ke(u,function(f){return Nt(o,t,f)})}var O0=_e(function(n,o){return nt(n)?ga(n,o):[]}),A0=_e(function(n){return Ii(Hr(n,nt))}),P0=_e(function(n){var o=tr(n);return nt(o)&&(o=t),Ii(Hr(n,nt),re(o,2))}),D0=_e(function(n){var o=tr(n);return o=typeof o=="function"?o:t,Ii(Hr(n,nt),t,o)}),I0=_e(Vi);function F0(n,o){return bf(n||[],o||[],ha)}function $0(n,o){return bf(n||[],o||[],ma)}var M0=_e(function(n){var o=n.length,u=o>1?n[o-1]:t;return u=typeof u=="function"?(n.pop(),u):t,td(n,u)});function rd(n){var o=v(n);return o.__chain__=!0,o}function L0(n,o){return o(n),n}function $o(n,o){return o(n)}var N0=Rr(function(n){var o=n.length,u=o?n[0]:0,f=this.__wrapped__,h=function(y){return bi(y,n)};return o>1||this.__actions__.length||!(f instanceof we)||!Or(u)?this.thru(h):(f=f.slice(u,+u+(o?1:0)),f.__actions__.push({func:$o,args:[h],thisArg:t}),new Zt(f,this.__chain__).thru(function(y){return o&&!y.length&&y.push(t),y}))});function k0(){return rd(this)}function j0(){return new Zt(this.value(),this.__chain__)}function B0(){this.__values__===t&&(this.__values__=vd(this.value()));var n=this.__index__>=this.__values__.length,o=n?t:this.__values__[this.__index__++];return{done:n,value:o}}function W0(){return this}function U0(n){for(var o,u=this;u instanceof bo;){var f=Kf(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 H0(){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:$o,args:[zi],thisArg:t}),new Zt(o,this.__chain__)}return this.thru(zi)}function q0(){return mf(this.__wrapped__,this.__actions__)}var G0=xo(function(n,o,u){ke.call(n,u)?++n[u]:Cr(n,u,1)});function Y0(n,o,u){var f=ve(n)?Pl:Lm;return u&&Ot(n,o,u)&&(o=t),f(n,re(o,3))}function z0(n,o){var u=ve(n)?Hr:ef;return u(n,re(o,3))}var V0=Af(Jf),K0=Af(Xf);function J0(n,o){return vt(Mo(n,o),1)}function X0(n,o){return vt(Mo(n,o),qe)}function Z0(n,o,u){return u=u===t?1:ye(u),vt(Mo(n,o),u)}function nd(n,o){var u=ve(n)?Jt:zr;return u(n,re(o,3))}function ad(n,o){var u=ve(n)?yy:Ql;return u(n,re(o,3))}var Q0=xo(function(n,o,u){ke.call(n,u)?n[u].push(o):Cr(n,u,[o])});function e_(n,o,u,f){n=Ft(n)?n:Bn(n),u=u&&!f?ye(u):0;var h=n.length;return u<0&&(u=ct(h+u,0)),Bo(n)?u<=h&&n.indexOf(o,u)>-1:!!h&&On(n,o,u)>-1}var t_=_e(function(n,o,u){var f=-1,h=typeof o=="function",y=Ft(n)?I(n.length):[];return zr(n,function(S){y[++f]=h?Nt(o,S,u):va(S,o,u)}),y}),r_=xo(function(n,o,u){Cr(n,u,o)});function Mo(n,o){var u=ve(n)?Ke:sf;return u(n,re(o,3))}function n_(n,o,u,f){return n==null?[]:(ve(o)||(o=o==null?[]:[o]),u=f?t:u,ve(u)||(u=u==null?[]:[u]),ff(n,o,u))}var a_=xo(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function o_(n,o,u){var f=ve(n)?si:$l,h=arguments.length<3;return f(n,re(o,4),u,h,zr)}function s_(n,o,u){var f=ve(n)?my:$l,h=arguments.length<3;return f(n,re(o,4),u,h,Ql)}function i_(n,o){var u=ve(n)?Hr:ef;return u(n,ko(re(o,3)))}function u_(n){var o=ve(n)?Kl:eb;return o(n)}function c_(n,o,u){(u?Ot(n,o,u):o===t)?o=1:o=ye(o);var f=ve(n)?Dm:tb;return f(n,o)}function l_(n){var o=ve(n)?Im:nb;return o(n)}function f_(n){if(n==null)return 0;if(Ft(n))return Bo(n)?Pn(n):n.length;var o=_t(n);return o==Ge||o==xt?n.size:Ci(n).length}function d_(n,o,u){var f=ve(n)?ii:ab;return u&&Ot(n,o,u)&&(o=t),f(n,re(o,3))}var p_=_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]]),ff(n,vt(o,1),[])}),Lo=zy||function(){return gt.Date.now()};function h_(n,o){if(typeof o!="function")throw new Xt(c);return n=ye(n),function(){if(--n<1)return o.apply(this,arguments)}}function od(n,o,u){return o=u?t:o,o=n&&o==null?n.length:o,xr(n,q,t,t,t,t,o)}function sd(n,o){var u;if(typeof o!="function")throw new Xt(c);return n=ye(n),function(){return--n>0&&(u=o.apply(this,arguments)),n<=1&&(o=t),u}}var Ki=_e(function(n,o,u){var f=D;if(u.length){var h=Gr(u,kn(Ki));f|=O}return xr(n,f,o,u,h)}),id=_e(function(n,o,u){var f=D|P;if(u.length){var h=Gr(u,kn(id));f|=O}return xr(o,f,n,u,h)});function ud(n,o,u){o=u?t:o;var f=xr(n,M,t,t,t,t,t,o);return f.placeholder=ud.placeholder,f}function cd(n,o,u){o=u?t:o;var f=xr(n,k,t,t,t,t,t,o);return f.placeholder=cd.placeholder,f}function ld(n,o,u){var f,h,y,S,C,A,L=0,N=!1,B=!1,V=!0;if(typeof n!="function")throw new Xt(c);o=rr(o)||0,Ze(u)&&(N=!!u.leading,B="maxWait"in u,y=B?ct(rr(u.maxWait)||0,o):y,V="trailing"in u?!!u.trailing:V);function ee(at){var lr=f,Dr=h;return f=h=t,L=at,S=n.apply(Dr,lr),S}function ae(at){return L=at,C=Ea(Se,o),N?ee(at):S}function be(at){var lr=at-A,Dr=at-L,Ad=o-lr;return B?bt(Ad,y-Dr):Ad}function oe(at){var lr=at-A,Dr=at-L;return A===t||lr>=o||lr<0||B&&Dr>=y}function Se(){var at=Lo();if(oe(at))return xe(at);C=Ea(Se,be(at))}function xe(at){return C=t,V&&f?ee(at):(f=h=t,S)}function Wt(){C!==t&&_f(C),L=0,f=A=h=C=t}function At(){return C===t?S:xe(Lo())}function Ut(){var at=Lo(),lr=oe(at);if(f=arguments,h=this,A=at,lr){if(C===t)return ae(A);if(B)return _f(C),C=Ea(Se,o),ee(A)}return C===t&&(C=Ea(Se,o)),S}return Ut.cancel=Wt,Ut.flush=At,Ut}var g_=_e(function(n,o){return Zl(n,1,o)}),v_=_e(function(n,o,u){return Zl(n,rr(o)||0,u)});function y_(n){return xr(n,te)}function No(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Xt(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(No.Cache||Tr),u}No.Cache=Tr;function ko(n){if(typeof n!="function")throw new Xt(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 m_(n){return sd(2,n)}var b_=ob(function(n,o){o=o.length==1&&ve(o[0])?Ke(o[0],kt(re())):Ke(vt(o,1),kt(re()));var u=o.length;return _e(function(f){for(var h=-1,y=bt(f.length,u);++h<y;)f[h]=o[h].call(this,f[h]);return Nt(n,this,f)})}),Ji=_e(function(n,o){var u=Gr(o,kn(Ji));return xr(n,O,t,o,u)}),fd=_e(function(n,o){var u=Gr(o,kn(fd));return xr(n,z,t,o,u)}),__=Rr(function(n,o){return xr(n,Y,t,t,t,o)});function E_(n,o){if(typeof n!="function")throw new Xt(c);return o=o===t?o:ye(o),_e(n,o)}function S_(n,o){if(typeof n!="function")throw new Xt(c);return o=o==null?0:ct(ye(o),0),_e(function(u){var f=u[o],h=Jr(u,0,o);return f&&qr(h,f),Nt(n,this,h)})}function w_(n,o,u){var f=!0,h=!0;if(typeof n!="function")throw new Xt(c);return Ze(u)&&(f="leading"in u?!!u.leading:f,h="trailing"in u?!!u.trailing:h),ld(n,o,{leading:f,maxWait:o,trailing:h})}function T_(n){return od(n,1)}function C_(n,o){return Ji($i(o),n)}function x_(){if(!arguments.length)return[];var n=arguments[0];return ve(n)?n:[n]}function R_(n){return Qt(n,E)}function O_(n,o){return o=typeof o=="function"?o:t,Qt(n,E,o)}function A_(n){return Qt(n,b|E)}function P_(n,o){return o=typeof o=="function"?o:t,Qt(n,b|E,o)}function D_(n,o){return o==null||Xl(n,o,dt(o))}function cr(n,o){return n===o||n!==n&&o!==o}var I_=Po(Si),F_=Po(function(n,o){return n>=o}),bn=nf(function(){return arguments}())?nf:function(n){return tt(n)&&ke.call(n,"callee")&&!Hl.call(n,"callee")},ve=I.isArray,$_=Tl?kt(Tl):Um;function Ft(n){return n!=null&&jo(n.length)&&!Ar(n)}function nt(n){return tt(n)&&Ft(n)}function M_(n){return n===!0||n===!1||tt(n)&&Rt(n)==ue}var Xr=Ky||iu,L_=Cl?kt(Cl):Hm;function N_(n){return tt(n)&&n.nodeType===1&&!Sa(n)}function k_(n){if(n==null)return!0;if(Ft(n)&&(ve(n)||typeof n=="string"||typeof n.splice=="function"||Xr(n)||jn(n)||bn(n)))return!n.length;var o=_t(n);if(o==Ge||o==xt)return!n.size;if(_a(n))return!Ci(n).length;for(var u in n)if(ke.call(n,u))return!1;return!0}function j_(n,o){return ya(n,o)}function B_(n,o,u){u=typeof u=="function"?u:t;var f=u?u(n,o):t;return f===t?ya(n,o,t,u):!!f}function Xi(n){if(!tt(n))return!1;var o=Rt(n);return o==K||o==ge||typeof n.message=="string"&&typeof n.name=="string"&&!Sa(n)}function W_(n){return typeof n=="number"&&Gl(n)}function Ar(n){if(!Ze(n))return!1;var o=Rt(n);return o==F||o==ze||o==ce||o==qs}function dd(n){return typeof n=="number"&&n==ye(n)}function jo(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=rt}function Ze(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function tt(n){return n!=null&&typeof n=="object"}var pd=xl?kt(xl):Gm;function U_(n,o){return n===o||Ti(n,o,Wi(o))}function H_(n,o,u){return u=typeof u=="function"?u:t,Ti(n,o,Wi(o),u)}function q_(n){return hd(n)&&n!=+n}function G_(n){if(Ob(n))throw new pe(i);return af(n)}function Y_(n){return n===null}function z_(n){return n==null}function hd(n){return typeof n=="number"||tt(n)&&Rt(n)==mt}function Sa(n){if(!tt(n)||Rt(n)!=zt)return!1;var o=fo(n);if(o===null)return!0;var u=ke.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&io.call(u)==Hy}var Zi=Rl?kt(Rl):Ym;function V_(n){return dd(n)&&n>=-rt&&n<=rt}var gd=Ol?kt(Ol):zm;function Bo(n){return typeof n=="string"||!ve(n)&&tt(n)&&Rt(n)==an}function Bt(n){return typeof n=="symbol"||tt(n)&&Rt(n)==on}var jn=Al?kt(Al):Vm;function K_(n){return n===t}function J_(n){return tt(n)&&_t(n)==Sr}function X_(n){return tt(n)&&Rt(n)==Gs}var Z_=Po(xi),Q_=Po(function(n,o){return n<=o});function vd(n){if(!n)return[];if(Ft(n))return Bo(n)?ir(n):It(n);if(ca&&n[ca])return Dy(n[ca]());var o=_t(n),u=o==Ge?pi:o==xt?ao:Bn;return u(n)}function Pr(n){if(!n)return n===0?n:0;if(n=rr(n),n===qe||n===-qe){var o=n<0?-1:1;return o*Yt}return n===n?n:0}function ye(n){var o=Pr(n),u=o%1;return o===o?u?o-u:o:0}function yd(n){return n?gn(ye(n),0,G):0}function rr(n){if(typeof n=="number")return n;if(Bt(n))return W;if(Ze(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Ze(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=Ml(n);var u=Za.test(n);return u||Lv.test(n)?hy(n.slice(2),u?2:8):Ur.test(n)?W:+n}function md(n){return yr(n,$t(n))}function eE(n){return n?gn(ye(n),-rt,rt):n===0?n:0}function De(n){return n==null?"":jt(n)}var tE=Ln(function(n,o){if(_a(o)||Ft(o)){yr(o,dt(o),n);return}for(var u in o)ke.call(o,u)&&ha(n,u,o[u])}),bd=Ln(function(n,o){yr(o,$t(o),n)}),Wo=Ln(function(n,o,u,f){yr(o,$t(o),n,f)}),rE=Ln(function(n,o,u,f){yr(o,dt(o),n,f)}),nE=Rr(bi);function aE(n,o){var u=Mn(n);return o==null?u:Jl(u,o)}var oE=_e(function(n,o){n=He(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=$t(y),C=-1,A=S.length;++C<A;){var L=S[C],N=n[L];(N===t||cr(N,In[L])&&!ke.call(n,L))&&(n[L]=y[L])}return n}),sE=_e(function(n){return n.push(t,Lf),Nt(_d,t,n)});function iE(n,o){return Dl(n,re(o,3),vr)}function uE(n,o){return Dl(n,re(o,3),Ei)}function cE(n,o){return n==null?n:_i(n,re(o,3),$t)}function lE(n,o){return n==null?n:tf(n,re(o,3),$t)}function fE(n,o){return n&&vr(n,re(o,3))}function dE(n,o){return n&&Ei(n,re(o,3))}function pE(n){return n==null?[]:So(n,dt(n))}function hE(n){return n==null?[]:So(n,$t(n))}function Qi(n,o,u){var f=n==null?t:vn(n,o);return f===t?u:f}function gE(n,o){return n!=null&&jf(n,o,km)}function eu(n,o){return n!=null&&jf(n,o,jm)}var vE=Df(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=uo.call(o)),n[o]=u},ru(Mt)),yE=Df(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=uo.call(o)),ke.call(n,o)?n[o].push(u):n[o]=[u]},re),mE=_e(va);function dt(n){return Ft(n)?Vl(n):Ci(n)}function $t(n){return Ft(n)?Vl(n,!0):Km(n)}function bE(n,o){var u={};return o=re(o,3),vr(n,function(f,h,y){Cr(u,o(f,h,y),f)}),u}function _E(n,o){var u={};return o=re(o,3),vr(n,function(f,h,y){Cr(u,h,o(f,h,y))}),u}var EE=Ln(function(n,o,u){wo(n,o,u)}),_d=Ln(function(n,o,u,f){wo(n,o,u,f)}),SE=Rr(function(n,o){var u={};if(n==null)return u;var f=!1;o=Ke(o,function(y){return y=Kr(y,n),f||(f=y.length>1),y}),yr(n,ji(n),u),f&&(u=Qt(u,b|_|E,vb));for(var h=o.length;h--;)Di(u,o[h]);return u});function wE(n,o){return Ed(n,ko(re(o)))}var TE=Rr(function(n,o){return n==null?{}:Xm(n,o)});function Ed(n,o){if(n==null)return{};var u=Ke(ji(n),function(f){return[f]});return o=re(o),df(n,u,function(f,h){return o(f,h[0])})}function CE(n,o,u){o=Kr(o,n);var f=-1,h=o.length;for(h||(h=1,n=t);++f<h;){var y=n==null?t:n[mr(o[f])];y===t&&(f=h,y=u),n=Ar(y)?y.call(n):y}return n}function xE(n,o,u){return n==null?n:ma(n,o,u)}function RE(n,o,u,f){return f=typeof f=="function"?f:t,n==null?n:ma(n,o,u,f)}var Sd=$f(dt),wd=$f($t);function OE(n,o,u){var f=ve(n),h=f||Xr(n)||jn(n);if(o=re(o,4),u==null){var y=n&&n.constructor;h?u=f?new y:[]:Ze(n)?u=Ar(y)?Mn(fo(n)):{}:u={}}return(h?Jt:vr)(n,function(S,C,A){return o(u,S,C,A)}),u}function AE(n,o){return n==null?!0:Di(n,o)}function PE(n,o,u){return n==null?n:yf(n,o,$i(u))}function DE(n,o,u,f){return f=typeof f=="function"?f:t,n==null?n:yf(n,o,$i(u),f)}function Bn(n){return n==null?[]:di(n,dt(n))}function IE(n){return n==null?[]:di(n,$t(n))}function FE(n,o,u){return u===t&&(u=o,o=t),u!==t&&(u=rr(u),u=u===u?u:0),o!==t&&(o=rr(o),o=o===o?o:0),gn(rr(n),o,u)}function $E(n,o,u){return o=Pr(o),u===t?(u=o,o=0):u=Pr(u),n=rr(n),Bm(n,o,u)}function ME(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=Pr(n),o===t?(o=n,n=0):o=Pr(o)),n>o){var f=n;n=o,o=f}if(u||n%1||o%1){var h=Yl();return bt(n+h*(o-n+py("1e-"+((h+"").length-1))),o)}return Oi(n,o)}var LE=Nn(function(n,o,u){return o=o.toLowerCase(),n+(u?Td(o):o)});function Td(n){return tu(De(n).toLowerCase())}function Cd(n){return n=De(n),n&&n.replace(kv,xy).replace(ny,"")}function NE(n,o,u){n=De(n),o=jt(o);var f=n.length;u=u===t?f:gn(ye(u),0,f);var h=u;return u-=o.length,u>=0&&n.slice(u,h)==o}function kE(n){return n=De(n),n&&zs.test(n)?n.replace(ia,Ry):n}function jE(n){return n=De(n),n&&H.test(n)?n.replace(w,"\\$&"):n}var BE=Nn(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),WE=Nn(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),UE=Of("toLowerCase");function HE(n,o,u){n=De(n),o=ye(o);var f=o?Pn(n):0;if(!o||f>=o)return n;var h=(o-f)/2;return Ao(vo(h),u)+n+Ao(go(h),u)}function qE(n,o,u){n=De(n),o=ye(o);var f=o?Pn(n):0;return o&&f<o?n+Ao(o-f,u):n}function GE(n,o,u){n=De(n),o=ye(o);var f=o?Pn(n):0;return o&&f<o?Ao(o-f,u)+n:n}function YE(n,o,u){return u||o==null?o=0:o&&(o=+o),Qy(De(n).replace(J,""),o||0)}function zE(n,o,u){return(u?Ot(n,o,u):o===t)?o=1:o=ye(o),Ai(De(n),o)}function VE(){var n=arguments,o=De(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var KE=Nn(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function JE(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&&!Zi(o))&&(o=jt(o),!o&&An(n))?Jr(ir(n),0,u):n.split(o,u)):[]}var XE=Nn(function(n,o,u){return n+(u?" ":"")+tu(o)});function ZE(n,o,u){return n=De(n),u=u==null?0:gn(ye(u),0,n.length),o=jt(o),n.slice(u,u+o.length)==o}function QE(n,o,u){var f=v.templateSettings;u&&Ot(n,o,u)&&(o=t),n=De(n),o=Wo({},o,f,Mf);var h=Wo({},o.imports,f.imports,Mf),y=dt(h),S=di(h,y),C,A,L=0,N=o.interpolate||Qa,B="__p += '",V=hi((o.escape||Qa).source+"|"+N.source+"|"+(N===Xa?et:Qa).source+"|"+(o.evaluate||Qa).source+"|$","g"),ee="//# sourceURL="+(ke.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++uy+"]")+`
|
|
18
|
-
`;n.replace(V,function(oe,
|
|
19
|
-
__e(`+
|
|
17
|
+
`)}function Ob(n){return ve(n)||_n(n)||!!(Yl&&n&&n[Yl])}function Or(n,o){var u=typeof n;return o=o??rt,!!o&&(u=="number"||u!="symbol"&&Bv.test(n))&&n>-1&&n%1==0&&n<o}function Ot(n,o,u){if(!Ze(u))return!1;var f=typeof o;return(f=="number"?Ft(u)&&Or(o,u.length):f=="string"&&o in u)?cr(u[o],n):!1}function Gi(n,o){if(ve(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||Bt(n)?!0:Zs.test(n)||!Xs.test(n)||o!=null&&n in He(o)}function Ab(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function Yi(n){var o=Io(n),u=v[o];if(typeof u!="function"||!(o in we.prototype))return!1;if(n===u)return!0;var f=Ui(u);return!!f&&n===f[0]}function Pb(n){return!!Ul&&Ul in n}var Db=io?Ar:cu;function _a(n){var o=n&&n.constructor,u=typeof o=="function"&&o.prototype||In;return n===u}function Hf(n){return n===n&&!Ze(n)}function qf(n,o){return function(u){return u==null?!1:u[n]===o&&(o!==t||n in He(u))}}function Ib(n){var o=ko(n,function(f){return u.size===p&&u.clear(),f}),u=o.cache;return o}function Fb(n,o){var u=n[1],f=o[1],h=u|f,y=h<(D|P|q),E=f==q&&u==M||f==q&&u==Y&&n[7].length<=o[8]||f==(q|Y)&&o[7].length<=o[8]&&u==M;if(!(y||E))return n;f&D&&(n[2]=o[2],h|=u&D?0:j);var C=o[3];if(C){var A=n[3];n[3]=A?xf(A,C,o[4]):C,n[4]=A?Gr(n[3],g):o[4]}return C=o[5],C&&(A=n[5],n[5]=A?Rf(A,C,o[6]):C,n[6]=A?Gr(n[5],g):o[6]),C=o[7],C&&(n[7]=C),f&q&&(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 $b(n){var o=[];if(n!=null)for(var u in He(n))o.push(u);return o}function Mb(n){return co.call(n)}function Gf(n,o,u){return o=ct(o===t?n.length-1:o,0),function(){for(var f=arguments,h=-1,y=ct(f.length-o,0),E=I(y);++h<y;)E[h]=f[o+h];h=-1;for(var C=I(o+1);++h<o;)C[h]=f[h];return C[o]=u(E),Nt(n,this,C)}}function Yf(n,o){return o.length<2?n:yn(n,er(o,0,-1))}function Lb(n,o){for(var u=n.length,f=bt(o.length,u),h=It(n);f--;){var y=o[f];n[f]=Or(y,u)?h[y]:t}return n}function zi(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var zf=Kf(vf),Sa=Xy||function(n,o){return gt.setTimeout(n,o)},Vi=Kf(ob);function Vf(n,o,u){var f=o+"";return Vi(n,Rb(f,Nb(Tb(f),u)))}function Kf(n){var o=0,u=0;return function(){var f=tm(),h=X-(f-u);if(u=f,h>0){if(++o>=st)return arguments[0]}else o=0;return n.apply(t,arguments)}}function $o(n,o){var u=-1,f=n.length,h=f-1;for(o=o===t?f:o;++u<o;){var y=Pi(u,h),E=n[y];n[y]=n[u],n[u]=E}return n.length=o,n}var Jf=Ib(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(Qs,function(u,f,h,y){o.push(h?y.replace(Xe,"$1"):f||u)}),o});function mr(n){if(typeof n=="string"||Bt(n))return n;var o=n+"";return o=="0"&&1/n==-qe?"-0":o}function bn(n){if(n!=null){try{return uo.call(n)}catch{}try{return n+""}catch{}}return""}function Nb(n,o){return Jt(se,function(u){var f="_."+u[0];o&u[1]&&!no(n,f)&&n.push(f)}),n.sort()}function Xf(n){if(n instanceof we)return n.clone();var o=new Zt(n.__wrapped__,n.__chain__);return o.__actions__=It(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function kb(n,o,u){(u?Ot(n,o,u):o===t)?o=1:o=ct(ye(o),0);var f=n==null?0:n.length;if(!f||o<1)return[];for(var h=0,y=0,E=I(vo(f/o));h<f;)E[y++]=er(n,h,h+=o);return E}function jb(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 Bb(){var n=arguments.length;if(!n)return[];for(var o=I(n-1),u=arguments[0],f=n;f--;)o[f-1]=arguments[f];return qr(ve(u)?It(u):[u],vt(o,1))}var Wb=_e(function(n,o){return nt(n)?ga(n,vt(o,1,nt,!0)):[]}),Ub=_e(function(n,o){var u=tr(o);return nt(u)&&(u=t),nt(n)?ga(n,vt(o,1,nt,!0),re(u,2)):[]}),Hb=_e(function(n,o){var u=tr(o);return nt(u)&&(u=t),nt(n)?ga(n,vt(o,1,nt,!0),t,u):[]});function qb(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===t?1:ye(o),er(n,o<0?0:o,f)):[]}function Gb(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===t?1:ye(o),o=f-o,er(n,0,o<0?0:o)):[]}function Yb(n,o){return n&&n.length?xo(n,re(o,3),!0,!0):[]}function zb(n,o){return n&&n.length?xo(n,re(o,3),!0):[]}function Vb(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),Bm(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:ye(u);return h<0&&(h=ct(f+h,0)),ao(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=ye(u),h=u<0?ct(f+h,0):bt(h,f-1)),ao(n,re(o,3),h,!0)}function ed(n){var o=n==null?0:n.length;return o?vt(n,1):[]}function Kb(n){var o=n==null?0:n.length;return o?vt(n,qe):[]}function Jb(n,o){var u=n==null?0:n.length;return u?(o=o===t?1:ye(o),vt(n,o)):[]}function Xb(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 Zb(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var h=u==null?0:ye(u);return h<0&&(h=ct(f+h,0)),On(n,o,h)}function Qb(n){var o=n==null?0:n.length;return o?er(n,0,-1):[]}var e0=_e(function(n){var o=Ke(n,Mi);return o.length&&o[0]===n[0]?Ci(o):[]}),t0=_e(function(n){var o=tr(n),u=Ke(n,Mi);return o===tr(u)?o=t:u.pop(),u.length&&u[0]===n[0]?Ci(u,re(o,2)):[]}),r0=_e(function(n){var o=tr(n),u=Ke(n,Mi);return o=typeof o=="function"?o:t,o&&u.pop(),u.length&&u[0]===n[0]?Ci(u,t,o):[]});function n0(n,o){return n==null?"":Qy.call(n,o)}function tr(n){var o=n==null?0:n.length;return o?n[o-1]:t}function a0(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var h=f;return u!==t&&(h=ye(u),h=h<0?ct(f+h,0):bt(h,f-1)),o===o?Ny(n,o,h):ao(n,$l,h,!0)}function o0(n,o){return n&&n.length?df(n,ye(o)):t}var s0=_e(rd);function rd(n,o){return n&&n.length&&o&&o.length?Ai(n,o):n}function i0(n,o,u){return n&&n.length&&o&&o.length?Ai(n,o,re(u,2)):n}function u0(n,o,u){return n&&n.length&&o&&o.length?Ai(n,o,t,u):n}var c0=Rr(function(n,o){var u=n==null?0:n.length,f=Si(n,o);return gf(n,Ke(o,function(h){return Or(h,u)?+h:h}).sort(Cf)),f});function l0(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 E=n[f];o(E,f,n)&&(u.push(E),h.push(f))}return gf(n,h),u}function Ki(n){return n==null?n:nm.call(n)}function f0(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:ye(o),u=u===t?f:ye(u)),er(n,o,u)):[]}function d0(n,o){return Co(n,o)}function p0(n,o,u){return Ii(n,o,re(u,2))}function h0(n,o){var u=n==null?0:n.length;if(u){var f=Co(n,o);if(f<u&&cr(n[f],o))return f}return-1}function g0(n,o){return Co(n,o,!0)}function v0(n,o,u){return Ii(n,o,re(u,2),!0)}function y0(n,o){var u=n==null?0:n.length;if(u){var f=Co(n,o,!0)-1;if(cr(n[f],o))return f}return-1}function m0(n){return n&&n.length?yf(n):[]}function b0(n,o){return n&&n.length?yf(n,re(o,2)):[]}function _0(n){var o=n==null?0:n.length;return o?er(n,1,o):[]}function S0(n,o,u){return n&&n.length?(o=u||o===t?1:ye(o),er(n,0,o<0?0:o)):[]}function E0(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===t?1:ye(o),o=f-o,er(n,o<0?0:o,f)):[]}function w0(n,o){return n&&n.length?xo(n,re(o,3),!1,!0):[]}function T0(n,o){return n&&n.length?xo(n,re(o,3)):[]}var C0=_e(function(n){return Vr(vt(n,1,nt,!0))}),x0=_e(function(n){var o=tr(n);return nt(o)&&(o=t),Vr(vt(n,1,nt,!0),re(o,2))}),R0=_e(function(n){var o=tr(n);return o=typeof o=="function"?o:t,Vr(vt(n,1,nt,!0),t,o)});function O0(n){return n&&n.length?Vr(n):[]}function A0(n,o){return n&&n.length?Vr(n,re(o,2)):[]}function P0(n,o){return o=typeof o=="function"?o:t,n&&n.length?Vr(n,t,o):[]}function Ji(n){if(!(n&&n.length))return[];var o=0;return n=Hr(n,function(u){if(nt(u))return o=ct(u.length,o),!0}),pi(o,function(u){return Ke(n,li(u))})}function nd(n,o){if(!(n&&n.length))return[];var u=Ji(n);return o==null?u:Ke(u,function(f){return Nt(o,t,f)})}var D0=_e(function(n,o){return nt(n)?ga(n,o):[]}),I0=_e(function(n){return $i(Hr(n,nt))}),F0=_e(function(n){var o=tr(n);return nt(o)&&(o=t),$i(Hr(n,nt),re(o,2))}),$0=_e(function(n){var o=tr(n);return o=typeof o=="function"?o:t,$i(Hr(n,nt),t,o)}),M0=_e(Ji);function L0(n,o){return Sf(n||[],o||[],ha)}function N0(n,o){return Sf(n||[],o||[],ma)}var k0=_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 j0(n,o){return o(n),n}function Mo(n,o){return o(n)}var B0=Rr(function(n){var o=n.length,u=o?n[0]:0,f=this.__wrapped__,h=function(y){return Si(y,n)};return o>1||this.__actions__.length||!(f instanceof we)||!Or(u)?this.thru(h):(f=f.slice(u,+u+(o?1:0)),f.__actions__.push({func:Mo,args:[h],thisArg:t}),new Zt(f,this.__chain__).thru(function(y){return o&&!y.length&&y.push(t),y}))});function W0(){return ad(this)}function U0(){return new Zt(this.value(),this.__chain__)}function H0(){this.__values__===t&&(this.__values__=md(this.value()));var n=this.__index__>=this.__values__.length,o=n?t:this.__values__[this.__index__++];return{done:n,value:o}}function q0(){return this}function G0(n){for(var o,u=this;u instanceof _o;){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 Y0(){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:Mo,args:[Ki],thisArg:t}),new Zt(o,this.__chain__)}return this.thru(Ki)}function z0(){return _f(this.__wrapped__,this.__actions__)}var V0=Ro(function(n,o,u){je.call(n,u)?++n[u]:Cr(n,u,1)});function K0(n,o,u){var f=ve(n)?Il:jm;return u&&Ot(n,o,u)&&(o=t),f(n,re(o,3))}function J0(n,o){var u=ve(n)?Hr:rf;return u(n,re(o,3))}var X0=Df(Zf),Z0=Df(Qf);function Q0(n,o){return vt(Lo(n,o),1)}function e_(n,o){return vt(Lo(n,o),qe)}function t_(n,o,u){return u=u===t?1:ye(u),vt(Lo(n,o),u)}function od(n,o){var u=ve(n)?Jt:zr;return u(n,re(o,3))}function sd(n,o){var u=ve(n)?_y:tf;return u(n,re(o,3))}var r_=Ro(function(n,o,u){je.call(n,u)?n[u].push(o):Cr(n,u,[o])});function n_(n,o,u,f){n=Ft(n)?n:Bn(n),u=u&&!f?ye(u):0;var h=n.length;return u<0&&(u=ct(h+u,0)),Wo(n)?u<=h&&n.indexOf(o,u)>-1:!!h&&On(n,o,u)>-1}var a_=_e(function(n,o,u){var f=-1,h=typeof o=="function",y=Ft(n)?I(n.length):[];return zr(n,function(E){y[++f]=h?Nt(o,E,u):va(E,o,u)}),y}),o_=Ro(function(n,o,u){Cr(n,u,o)});function Lo(n,o){var u=ve(n)?Ke:cf;return u(n,re(o,3))}function s_(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 i_=Ro(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function u_(n,o,u){var f=ve(n)?ui:Ll,h=arguments.length<3;return f(n,re(o,4),u,h,zr)}function c_(n,o,u){var f=ve(n)?Sy:Ll,h=arguments.length<3;return f(n,re(o,4),u,h,tf)}function l_(n,o){var u=ve(n)?Hr:rf;return u(n,jo(re(o,3)))}function f_(n){var o=ve(n)?Xl:nb;return o(n)}function d_(n,o,u){(u?Ot(n,o,u):o===t)?o=1:o=ye(o);var f=ve(n)?$m:ab;return f(n,o)}function p_(n){var o=ve(n)?Mm:sb;return o(n)}function h_(n){if(n==null)return 0;if(Ft(n))return Wo(n)?Pn(n):n.length;var o=_t(n);return o==Ge||o==xt?n.size:Ri(n).length}function g_(n,o,u){var f=ve(n)?ci:ib;return u&&Ot(n,o,u)&&(o=t),f(n,re(o,3))}var v_=_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),[])}),No=Jy||function(){return gt.Date.now()};function y_(n,o){if(typeof o!="function")throw new Xt(c);return n=ye(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,xr(n,q,t,t,t,t,o)}function ud(n,o){var u;if(typeof o!="function")throw new Xt(c);return n=ye(n),function(){return--n>0&&(u=o.apply(this,arguments)),n<=1&&(o=t),u}}var Xi=_e(function(n,o,u){var f=D;if(u.length){var h=Gr(u,kn(Xi));f|=O}return xr(n,f,o,u,h)}),cd=_e(function(n,o,u){var f=D|P;if(u.length){var h=Gr(u,kn(cd));f|=O}return xr(o,f,n,u,h)});function ld(n,o,u){o=u?t:o;var f=xr(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=xr(n,k,t,t,t,t,t,o);return f.placeholder=fd.placeholder,f}function dd(n,o,u){var f,h,y,E,C,A,L=0,N=!1,B=!1,V=!0;if(typeof n!="function")throw new Xt(c);o=rr(o)||0,Ze(u)&&(N=!!u.leading,B="maxWait"in u,y=B?ct(rr(u.maxWait)||0,o):y,V="trailing"in u?!!u.trailing:V);function ee(at){var lr=f,Dr=h;return f=h=t,L=at,E=n.apply(Dr,lr),E}function ae(at){return L=at,C=Sa(Ee,o),N?ee(at):E}function be(at){var lr=at-A,Dr=at-L,Dd=o-lr;return B?bt(Dd,y-Dr):Dd}function oe(at){var lr=at-A,Dr=at-L;return A===t||lr>=o||lr<0||B&&Dr>=y}function Ee(){var at=No();if(oe(at))return xe(at);C=Sa(Ee,be(at))}function xe(at){return C=t,V&&f?ee(at):(f=h=t,E)}function Wt(){C!==t&&Ef(C),L=0,f=A=h=C=t}function At(){return C===t?E:xe(No())}function Ut(){var at=No(),lr=oe(at);if(f=arguments,h=this,A=at,lr){if(C===t)return ae(A);if(B)return Ef(C),C=Sa(Ee,o),ee(A)}return C===t&&(C=Sa(Ee,o)),E}return Ut.cancel=Wt,Ut.flush=At,Ut}var m_=_e(function(n,o){return ef(n,1,o)}),b_=_e(function(n,o,u){return ef(n,rr(o)||0,u)});function __(n){return xr(n,te)}function ko(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Xt(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 E=n.apply(this,f);return u.cache=y.set(h,E)||y,E};return u.cache=new(ko.Cache||Tr),u}ko.Cache=Tr;function jo(n){if(typeof n!="function")throw new Xt(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 S_(n){return ud(2,n)}var E_=ub(function(n,o){o=o.length==1&&ve(o[0])?Ke(o[0],kt(re())):Ke(vt(o,1),kt(re()));var u=o.length;return _e(function(f){for(var h=-1,y=bt(f.length,u);++h<y;)f[h]=o[h].call(this,f[h]);return Nt(n,this,f)})}),Zi=_e(function(n,o){var u=Gr(o,kn(Zi));return xr(n,O,t,o,u)}),pd=_e(function(n,o){var u=Gr(o,kn(pd));return xr(n,z,t,o,u)}),w_=Rr(function(n,o){return xr(n,Y,t,t,t,o)});function T_(n,o){if(typeof n!="function")throw new Xt(c);return o=o===t?o:ye(o),_e(n,o)}function C_(n,o){if(typeof n!="function")throw new Xt(c);return o=o==null?0:ct(ye(o),0),_e(function(u){var f=u[o],h=Jr(u,0,o);return f&&qr(h,f),Nt(n,this,h)})}function x_(n,o,u){var f=!0,h=!0;if(typeof n!="function")throw new Xt(c);return Ze(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 R_(n){return id(n,1)}function O_(n,o){return Zi(Li(o),n)}function A_(){if(!arguments.length)return[];var n=arguments[0];return ve(n)?n:[n]}function P_(n){return Qt(n,S)}function D_(n,o){return o=typeof o=="function"?o:t,Qt(n,S,o)}function I_(n){return Qt(n,b|S)}function F_(n,o){return o=typeof o=="function"?o:t,Qt(n,b|S,o)}function $_(n,o){return o==null||Ql(n,o,dt(o))}function cr(n,o){return n===o||n!==n&&o!==o}var M_=Do(Ti),L_=Do(function(n,o){return n>=o}),_n=of(function(){return arguments}())?of:function(n){return tt(n)&&je.call(n,"callee")&&!Gl.call(n,"callee")},ve=I.isArray,N_=xl?kt(xl):Gm;function Ft(n){return n!=null&&Bo(n.length)&&!Ar(n)}function nt(n){return tt(n)&&Ft(n)}function k_(n){return n===!0||n===!1||tt(n)&&Rt(n)==ue}var Xr=Zy||cu,j_=Rl?kt(Rl):Ym;function B_(n){return tt(n)&&n.nodeType===1&&!Ea(n)}function W_(n){if(n==null)return!0;if(Ft(n)&&(ve(n)||typeof n=="string"||typeof n.splice=="function"||Xr(n)||jn(n)||_n(n)))return!n.length;var o=_t(n);if(o==Ge||o==xt)return!n.size;if(_a(n))return!Ri(n).length;for(var u in n)if(je.call(n,u))return!1;return!0}function U_(n,o){return ya(n,o)}function H_(n,o,u){u=typeof u=="function"?u:t;var f=u?u(n,o):t;return f===t?ya(n,o,t,u):!!f}function Qi(n){if(!tt(n))return!1;var o=Rt(n);return o==K||o==ge||typeof n.message=="string"&&typeof n.name=="string"&&!Ea(n)}function q_(n){return typeof n=="number"&&zl(n)}function Ar(n){if(!Ze(n))return!1;var o=Rt(n);return o==F||o==ze||o==ce||o==Ys}function hd(n){return typeof n=="number"&&n==ye(n)}function Bo(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=rt}function Ze(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function tt(n){return n!=null&&typeof n=="object"}var gd=Ol?kt(Ol):Vm;function G_(n,o){return n===o||xi(n,o,Hi(o))}function Y_(n,o,u){return u=typeof u=="function"?u:t,xi(n,o,Hi(o),u)}function z_(n){return vd(n)&&n!=+n}function V_(n){if(Db(n))throw new pe(i);return sf(n)}function K_(n){return n===null}function J_(n){return n==null}function vd(n){return typeof n=="number"||tt(n)&&Rt(n)==mt}function Ea(n){if(!tt(n)||Rt(n)!=zt)return!1;var o=po(n);if(o===null)return!0;var u=je.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&uo.call(u)==Yy}var eu=Al?kt(Al):Km;function X_(n){return hd(n)&&n>=-rt&&n<=rt}var yd=Pl?kt(Pl):Jm;function Wo(n){return typeof n=="string"||!ve(n)&&tt(n)&&Rt(n)==on}function Bt(n){return typeof n=="symbol"||tt(n)&&Rt(n)==sn}var jn=Dl?kt(Dl):Xm;function Z_(n){return n===t}function Q_(n){return tt(n)&&_t(n)==Er}function eS(n){return tt(n)&&Rt(n)==zs}var tS=Do(Oi),rS=Do(function(n,o){return n<=o});function md(n){if(!n)return[];if(Ft(n))return Wo(n)?ir(n):It(n);if(ca&&n[ca])return $y(n[ca]());var o=_t(n),u=o==Ge?gi:o==xt?oo:Bn;return u(n)}function Pr(n){if(!n)return n===0?n:0;if(n=rr(n),n===qe||n===-qe){var o=n<0?-1:1;return o*Yt}return n===n?n:0}function ye(n){var o=Pr(n),u=o%1;return o===o?u?o-u:o:0}function bd(n){return n?vn(ye(n),0,G):0}function rr(n){if(typeof n=="number")return n;if(Bt(n))return W;if(Ze(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Ze(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=Nl(n);var u=Qa.test(n);return u||jv.test(n)?yy(n.slice(2),u?2:8):Ur.test(n)?W:+n}function _d(n){return yr(n,$t(n))}function nS(n){return n?vn(ye(n),-rt,rt):n===0?n:0}function De(n){return n==null?"":jt(n)}var aS=Ln(function(n,o){if(_a(o)||Ft(o)){yr(o,dt(o),n);return}for(var u in o)je.call(o,u)&&ha(n,u,o[u])}),Sd=Ln(function(n,o){yr(o,$t(o),n)}),Uo=Ln(function(n,o,u,f){yr(o,$t(o),n,f)}),oS=Ln(function(n,o,u,f){yr(o,dt(o),n,f)}),sS=Rr(Si);function iS(n,o){var u=Mn(n);return o==null?u:Zl(u,o)}var uS=_e(function(n,o){n=He(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],E=$t(y),C=-1,A=E.length;++C<A;){var L=E[C],N=n[L];(N===t||cr(N,In[L])&&!je.call(n,L))&&(n[L]=y[L])}return n}),cS=_e(function(n){return n.push(t,kf),Nt(Ed,t,n)});function lS(n,o){return Fl(n,re(o,3),vr)}function fS(n,o){return Fl(n,re(o,3),wi)}function dS(n,o){return n==null?n:Ei(n,re(o,3),$t)}function pS(n,o){return n==null?n:nf(n,re(o,3),$t)}function hS(n,o){return n&&vr(n,re(o,3))}function gS(n,o){return n&&wi(n,re(o,3))}function vS(n){return n==null?[]:wo(n,dt(n))}function yS(n){return n==null?[]:wo(n,$t(n))}function tu(n,o,u){var f=n==null?t:yn(n,o);return f===t?u:f}function mS(n,o){return n!=null&&Wf(n,o,Wm)}function ru(n,o){return n!=null&&Wf(n,o,Um)}var bS=Ff(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=co.call(o)),n[o]=u},au(Mt)),_S=Ff(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=co.call(o)),je.call(n,o)?n[o].push(u):n[o]=[u]},re),SS=_e(va);function dt(n){return Ft(n)?Jl(n):Ri(n)}function $t(n){return Ft(n)?Jl(n,!0):Zm(n)}function ES(n,o){var u={};return o=re(o,3),vr(n,function(f,h,y){Cr(u,o(f,h,y),f)}),u}function wS(n,o){var u={};return o=re(o,3),vr(n,function(f,h,y){Cr(u,h,o(f,h,y))}),u}var TS=Ln(function(n,o,u){To(n,o,u)}),Ed=Ln(function(n,o,u,f){To(n,o,u,f)}),CS=Rr(function(n,o){var u={};if(n==null)return u;var f=!1;o=Ke(o,function(y){return y=Kr(y,n),f||(f=y.length>1),y}),yr(n,Wi(n),u),f&&(u=Qt(u,b|_|S,bb));for(var h=o.length;h--;)Fi(u,o[h]);return u});function xS(n,o){return wd(n,jo(re(o)))}var RS=Rr(function(n,o){return n==null?{}:eb(n,o)});function wd(n,o){if(n==null)return{};var u=Ke(Wi(n),function(f){return[f]});return o=re(o),hf(n,u,function(f,h){return o(f,h[0])})}function OS(n,o,u){o=Kr(o,n);var f=-1,h=o.length;for(h||(h=1,n=t);++f<h;){var y=n==null?t:n[mr(o[f])];y===t&&(f=h,y=u),n=Ar(y)?y.call(n):y}return n}function AS(n,o,u){return n==null?n:ma(n,o,u)}function PS(n,o,u,f){return f=typeof f=="function"?f:t,n==null?n:ma(n,o,u,f)}var Td=Lf(dt),Cd=Lf($t);function DS(n,o,u){var f=ve(n),h=f||Xr(n)||jn(n);if(o=re(o,4),u==null){var y=n&&n.constructor;h?u=f?new y:[]:Ze(n)?u=Ar(y)?Mn(po(n)):{}:u={}}return(h?Jt:vr)(n,function(E,C,A){return o(u,E,C,A)}),u}function IS(n,o){return n==null?!0:Fi(n,o)}function FS(n,o,u){return n==null?n:bf(n,o,Li(u))}function $S(n,o,u,f){return f=typeof f=="function"?f:t,n==null?n:bf(n,o,Li(u),f)}function Bn(n){return n==null?[]:hi(n,dt(n))}function MS(n){return n==null?[]:hi(n,$t(n))}function LS(n,o,u){return u===t&&(u=o,o=t),u!==t&&(u=rr(u),u=u===u?u:0),o!==t&&(o=rr(o),o=o===o?o:0),vn(rr(n),o,u)}function NS(n,o,u){return o=Pr(o),u===t?(u=o,o=0):u=Pr(u),n=rr(n),Hm(n,o,u)}function kS(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=Pr(n),o===t?(o=n,n=0):o=Pr(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+vy("1e-"+((h+"").length-1))),o)}return Pi(n,o)}var jS=Nn(function(n,o,u){return o=o.toLowerCase(),n+(u?xd(o):o)});function xd(n){return nu(De(n).toLowerCase())}function Rd(n){return n=De(n),n&&n.replace(Wv,Ay).replace(sy,"")}function BS(n,o,u){n=De(n),o=jt(o);var f=n.length;u=u===t?f:vn(ye(u),0,f);var h=u;return u-=o.length,u>=0&&n.slice(u,h)==o}function WS(n){return n=De(n),n&&Ks.test(n)?n.replace(ia,Py):n}function US(n){return n=De(n),n&&H.test(n)?n.replace(w,"\\$&"):n}var HS=Nn(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),qS=Nn(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),GS=Pf("toLowerCase");function YS(n,o,u){n=De(n),o=ye(o);var f=o?Pn(n):0;if(!o||f>=o)return n;var h=(o-f)/2;return Po(yo(h),u)+n+Po(vo(h),u)}function zS(n,o,u){n=De(n),o=ye(o);var f=o?Pn(n):0;return o&&f<o?n+Po(o-f,u):n}function VS(n,o,u){n=De(n),o=ye(o);var f=o?Pn(n):0;return o&&f<o?Po(o-f,u)+n:n}function KS(n,o,u){return u||o==null?o=0:o&&(o=+o),rm(De(n).replace(J,""),o||0)}function JS(n,o,u){return(u?Ot(n,o,u):o===t)?o=1:o=ye(o),Di(De(n),o)}function XS(){var n=arguments,o=De(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var ZS=Nn(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function QS(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&&!eu(o))&&(o=jt(o),!o&&An(n))?Jr(ir(n),0,u):n.split(o,u)):[]}var eE=Nn(function(n,o,u){return n+(u?" ":"")+nu(o)});function tE(n,o,u){return n=De(n),u=u==null?0:vn(ye(u),0,n.length),o=jt(o),n.slice(u,u+o.length)==o}function rE(n,o,u){var f=v.templateSettings;u&&Ot(n,o,u)&&(o=t),n=De(n),o=Uo({},o,f,Nf);var h=Uo({},o.imports,f.imports,Nf),y=dt(h),E=hi(h,y),C,A,L=0,N=o.interpolate||eo,B="__p += '",V=vi((o.escape||eo).source+"|"+N.source+"|"+(N===Za?et:eo).source+"|"+(o.evaluate||eo).source+"|$","g"),ee="//# sourceURL="+(je.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++fy+"]")+`
|
|
18
|
+
`;n.replace(V,function(oe,Ee,xe,Wt,At,Ut){return xe||(xe=Wt),B+=n.slice(L,Ut).replace(Uv,Dy),Ee&&(C=!0,B+=`' +
|
|
19
|
+
__e(`+Ee+`) +
|
|
20
20
|
'`),At&&(A=!0,B+=`';
|
|
21
21
|
`+At+`;
|
|
22
22
|
__p += '`),xe&&(B+=`' +
|
|
23
23
|
((__t = (`+xe+`)) == null ? '' : __t) +
|
|
24
24
|
'`),L=Ut+oe.length,oe}),B+=`';
|
|
25
|
-
`;var ae=
|
|
25
|
+
`;var ae=je.call(o,"variable")&&o.variable;if(!ae)B=`with (obj) {
|
|
26
26
|
`+B+`
|
|
27
27
|
}
|
|
28
|
-
`;else if(ht.test(ae))throw new pe(l);B=(A?B.replace(
|
|
28
|
+
`;else if(ht.test(ae))throw new pe(l);B=(A?B.replace(za,""):B).replace(Vs,"$1").replace(Va,"$1;"),B="function("+(ae||"obj")+`) {
|
|
29
29
|
`+(ae?"":`obj || (obj = {});
|
|
30
30
|
`)+"var __t, __p = ''"+(C?", __e = _.escape":"")+(A?`, __j = Array.prototype.join;
|
|
31
31
|
function print() { __p += __j.call(arguments, '') }
|
|
32
32
|
`:`;
|
|
33
33
|
`)+B+`return __p
|
|
34
|
-
}`;var be=Rd(function(){return Oe(y,ee+"return "+B).apply(t,S)});if(be.source=B,Xi(be))throw be;return be}function eS(n){return De(n).toLowerCase()}function tS(n){return De(n).toUpperCase()}function rS(n,o,u){if(n=De(n),n&&(u||o===t))return Ml(n);if(!n||!(o=jt(o)))return n;var f=ir(n),h=ir(o),y=Ll(f,h),S=Nl(f,h)+1;return Jr(f,y,S).join("")}function nS(n,o,u){if(n=De(n),n&&(u||o===t))return n.slice(0,jl(n)+1);if(!n||!(o=jt(o)))return n;var f=ir(n),h=Nl(f,ir(o))+1;return Jr(f,0,h).join("")}function aS(n,o,u){if(n=De(n),n&&(u||o===t))return n.replace(J,"");if(!n||!(o=jt(o)))return n;var f=ir(n),h=Ll(f,ir(o));return Jr(f,h).join("")}function oS(n,o){var u=Ue,f=Te;if(Ze(o)){var h="separator"in o?o.separator:h;u="length"in o?ye(o.length):u,f="omission"in o?jt(o.omission):f}n=De(n);var y=n.length;if(An(n)){var S=ir(n);y=S.length}if(u>=y)return n;var C=u-Pn(f);if(C<1)return f;var A=S?Jr(S,0,C).join(""):n.slice(0,C);if(h===t)return A+f;if(S&&(C+=A.length-C),Zi(h)){if(n.slice(C).search(h)){var L,N=A;for(h.global||(h=hi(h.source,De(Vt.exec(h))+"g")),h.lastIndex=0;L=h.exec(N);)var B=L.index;A=A.slice(0,B===t?C:B)}}else if(n.indexOf(jt(h),C)!=C){var V=A.lastIndexOf(h);V>-1&&(A=A.slice(0,V))}return A+f}function sS(n){return n=De(n),n&&Ka.test(n)?n.replace(Va,My):n}var iS=Nn(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),tu=Of("toUpperCase");function xd(n,o,u){return n=De(n),o=u?t:o,o===t?Py(n)?ky(n):Ey(n):n.match(o)||[]}var Rd=_e(function(n,o){try{return Nt(n,t,o)}catch(u){return Xi(u)?u:new pe(u)}}),uS=Rr(function(n,o){return Jt(o,function(u){u=mr(u),Cr(n,u,Ki(n[u],n))}),n});function cS(n){var o=n==null?0:n.length,u=re();return n=o?Ke(n,function(f){if(typeof f[1]!="function")throw new Xt(c);return[u(f[0]),f[1]]}):[],_e(function(f){for(var h=-1;++h<o;){var y=n[h];if(Nt(y[0],this,f))return Nt(y[1],this,f)}})}function lS(n){return Mm(Qt(n,b))}function ru(n){return function(){return n}}function fS(n,o){return n==null||n!==n?o:n}var dS=Pf(),pS=Pf(!0);function Mt(n){return n}function nu(n){return of(typeof n=="function"?n:Qt(n,b))}function hS(n){return uf(Qt(n,b))}function gS(n,o){return cf(n,Qt(o,b))}var vS=_e(function(n,o){return function(u){return va(u,n,o)}}),yS=_e(function(n,o){return function(u){return va(n,u,o)}});function au(n,o,u){var f=dt(o),h=So(o,f);u==null&&!(Ze(o)&&(h.length||!f.length))&&(u=o,o=n,n=this,h=So(o,dt(o)));var y=!(Ze(u)&&"chain"in u)||!!u.chain,S=Ar(n);return Jt(h,function(C){var A=o[C];n[C]=A,S&&(n.prototype[C]=function(){var L=this.__chain__;if(y||L){var N=n(this.__wrapped__),B=N.__actions__=It(this.__actions__);return B.push({func:A,args:arguments,thisArg:n}),N.__chain__=L,N}return A.apply(n,qr([this.value()],arguments))})}),n}function mS(){return gt._===this&&(gt._=qy),this}function ou(){}function bS(n){return n=ye(n),_e(function(o){return lf(o,n)})}var _S=Li(Ke),ES=Li(Pl),SS=Li(ii);function Od(n){return Hi(n)?ui(mr(n)):Zm(n)}function wS(n){return function(o){return n==null?t:vn(n,o)}}var TS=If(),CS=If(!0);function su(){return[]}function iu(){return!1}function xS(){return{}}function RS(){return""}function OS(){return!0}function AS(n,o){if(n=ye(n),n<1||n>rt)return[];var u=G,f=bt(n,G);o=re(o),n-=G;for(var h=fi(f,o);++u<n;)o(u);return h}function PS(n){return ve(n)?Ke(n,mr):Bt(n)?[n]:It(Vf(De(n)))}function DS(n){var o=++Uy;return De(n)+o}var IS=Oo(function(n,o){return n+o},0),FS=Ni("ceil"),$S=Oo(function(n,o){return n/o},1),MS=Ni("floor");function LS(n){return n&&n.length?Eo(n,Mt,Si):t}function NS(n,o){return n&&n.length?Eo(n,re(o,2),Si):t}function kS(n){return Fl(n,Mt)}function jS(n,o){return Fl(n,re(o,2))}function BS(n){return n&&n.length?Eo(n,Mt,xi):t}function WS(n,o){return n&&n.length?Eo(n,re(o,2),xi):t}var US=Oo(function(n,o){return n*o},1),HS=Ni("round"),qS=Oo(function(n,o){return n-o},0);function GS(n){return n&&n.length?li(n,Mt):0}function YS(n,o){return n&&n.length?li(n,re(o,2)):0}return v.after=h_,v.ary=od,v.assign=tE,v.assignIn=bd,v.assignInWith=Wo,v.assignWith=rE,v.at=nE,v.before=sd,v.bind=Ki,v.bindAll=uS,v.bindKey=id,v.castArray=x_,v.chain=rd,v.chunk=Mb,v.compact=Lb,v.concat=Nb,v.cond=cS,v.conforms=lS,v.constant=ru,v.countBy=G0,v.create=aE,v.curry=ud,v.curryRight=cd,v.debounce=ld,v.defaults=oE,v.defaultsDeep=sE,v.defer=g_,v.delay=v_,v.difference=kb,v.differenceBy=jb,v.differenceWith=Bb,v.drop=Wb,v.dropRight=Ub,v.dropRightWhile=Hb,v.dropWhile=qb,v.fill=Gb,v.filter=z0,v.flatMap=J0,v.flatMapDeep=X0,v.flatMapDepth=Z0,v.flatten=Zf,v.flattenDeep=Yb,v.flattenDepth=zb,v.flip=y_,v.flow=dS,v.flowRight=pS,v.fromPairs=Vb,v.functions=pE,v.functionsIn=hE,v.groupBy=Q0,v.initial=Jb,v.intersection=Xb,v.intersectionBy=Zb,v.intersectionWith=Qb,v.invert=vE,v.invertBy=yE,v.invokeMap=t_,v.iteratee=nu,v.keyBy=r_,v.keys=dt,v.keysIn=$t,v.map=Mo,v.mapKeys=bE,v.mapValues=_E,v.matches=hS,v.matchesProperty=gS,v.memoize=No,v.merge=EE,v.mergeWith=_d,v.method=vS,v.methodOf=yS,v.mixin=au,v.negate=ko,v.nthArg=bS,v.omit=SE,v.omitBy=wE,v.once=m_,v.orderBy=n_,v.over=_S,v.overArgs=b_,v.overEvery=ES,v.overSome=SS,v.partial=Ji,v.partialRight=fd,v.partition=a_,v.pick=TE,v.pickBy=Ed,v.property=Od,v.propertyOf=wS,v.pull=n0,v.pullAll=ed,v.pullAllBy=a0,v.pullAllWith=o0,v.pullAt=s0,v.range=TS,v.rangeRight=CS,v.rearg=__,v.reject=i_,v.remove=i0,v.rest=E_,v.reverse=zi,v.sampleSize=c_,v.set=xE,v.setWith=RE,v.shuffle=l_,v.slice=u0,v.sortBy=p_,v.sortedUniq=g0,v.sortedUniqBy=v0,v.split=JE,v.spread=S_,v.tail=y0,v.take=m0,v.takeRight=b0,v.takeRightWhile=_0,v.takeWhile=E0,v.tap=L0,v.throttle=w_,v.thru=$o,v.toArray=vd,v.toPairs=Sd,v.toPairsIn=wd,v.toPath=PS,v.toPlainObject=md,v.transform=OE,v.unary=T_,v.union=S0,v.unionBy=w0,v.unionWith=T0,v.uniq=C0,v.uniqBy=x0,v.uniqWith=R0,v.unset=AE,v.unzip=Vi,v.unzipWith=td,v.update=PE,v.updateWith=DE,v.values=Bn,v.valuesIn=IE,v.without=O0,v.words=xd,v.wrap=C_,v.xor=A0,v.xorBy=P0,v.xorWith=D0,v.zip=I0,v.zipObject=F0,v.zipObjectDeep=$0,v.zipWith=M0,v.entries=Sd,v.entriesIn=wd,v.extend=bd,v.extendWith=Wo,au(v,v),v.add=IS,v.attempt=Rd,v.camelCase=LE,v.capitalize=Td,v.ceil=FS,v.clamp=FE,v.clone=R_,v.cloneDeep=A_,v.cloneDeepWith=P_,v.cloneWith=O_,v.conformsTo=D_,v.deburr=Cd,v.defaultTo=fS,v.divide=$S,v.endsWith=NE,v.eq=cr,v.escape=kE,v.escapeRegExp=jE,v.every=Y0,v.find=V0,v.findIndex=Jf,v.findKey=iE,v.findLast=K0,v.findLastIndex=Xf,v.findLastKey=uE,v.floor=MS,v.forEach=nd,v.forEachRight=ad,v.forIn=cE,v.forInRight=lE,v.forOwn=fE,v.forOwnRight=dE,v.get=Qi,v.gt=I_,v.gte=F_,v.has=gE,v.hasIn=eu,v.head=Qf,v.identity=Mt,v.includes=e_,v.indexOf=Kb,v.inRange=$E,v.invoke=mE,v.isArguments=bn,v.isArray=ve,v.isArrayBuffer=$_,v.isArrayLike=Ft,v.isArrayLikeObject=nt,v.isBoolean=M_,v.isBuffer=Xr,v.isDate=L_,v.isElement=N_,v.isEmpty=k_,v.isEqual=j_,v.isEqualWith=B_,v.isError=Xi,v.isFinite=W_,v.isFunction=Ar,v.isInteger=dd,v.isLength=jo,v.isMap=pd,v.isMatch=U_,v.isMatchWith=H_,v.isNaN=q_,v.isNative=G_,v.isNil=z_,v.isNull=Y_,v.isNumber=hd,v.isObject=Ze,v.isObjectLike=tt,v.isPlainObject=Sa,v.isRegExp=Zi,v.isSafeInteger=V_,v.isSet=gd,v.isString=Bo,v.isSymbol=Bt,v.isTypedArray=jn,v.isUndefined=K_,v.isWeakMap=J_,v.isWeakSet=X_,v.join=e0,v.kebabCase=BE,v.last=tr,v.lastIndexOf=t0,v.lowerCase=WE,v.lowerFirst=UE,v.lt=Z_,v.lte=Q_,v.max=LS,v.maxBy=NS,v.mean=kS,v.meanBy=jS,v.min=BS,v.minBy=WS,v.stubArray=su,v.stubFalse=iu,v.stubObject=xS,v.stubString=RS,v.stubTrue=OS,v.multiply=US,v.nth=r0,v.noConflict=mS,v.noop=ou,v.now=Lo,v.pad=HE,v.padEnd=qE,v.padStart=GE,v.parseInt=YE,v.random=ME,v.reduce=o_,v.reduceRight=s_,v.repeat=zE,v.replace=VE,v.result=CE,v.round=HS,v.runInContext=R,v.sample=u_,v.size=f_,v.snakeCase=KE,v.some=d_,v.sortedIndex=c0,v.sortedIndexBy=l0,v.sortedIndexOf=f0,v.sortedLastIndex=d0,v.sortedLastIndexBy=p0,v.sortedLastIndexOf=h0,v.startCase=XE,v.startsWith=ZE,v.subtract=qS,v.sum=GS,v.sumBy=YS,v.template=QE,v.times=AS,v.toFinite=Pr,v.toInteger=ye,v.toLength=yd,v.toLower=eS,v.toNumber=rr,v.toSafeInteger=eE,v.toString=De,v.toUpper=tS,v.trim=rS,v.trimEnd=nS,v.trimStart=aS,v.truncate=oS,v.unescape=sS,v.uniqueId=DS,v.upperCase=iS,v.upperFirst=tu,v.each=nd,v.eachRight=ad,v.first=Qf,au(v,function(){var n={};return vr(v,function(o,u){ke.call(v.prototype,u)||(n[u]=o)}),n}(),{chain:!1}),v.VERSION=a,Jt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){v[n].placeholder=v}),Jt(["drop","take"],function(n,o){we.prototype[n]=function(u){u=u===t?1:ct(ye(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()}}),Jt(["filter","map","takeWhile"],function(n,o){var u=o+1,f=u==Pe||u==Qe;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}}),Jt(["head","last"],function(n,o){var u="take"+(o?"Right":"");we.prototype[n]=function(){return this[u](1).value()[0]}}),Jt(["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(Mt)},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 va(u,n,o)})}),we.prototype.reject=function(n){return this.filter(ko(re(n)))},we.prototype.slice=function(n,o){n=ye(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=ye(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)},vr(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__,C=f?[1]:arguments,A=S instanceof we,L=C[0],N=A||ve(S),B=function(Se){var xe=h.apply(v,qr([Se],C));return f&&V?xe[0]:xe};N&&u&&typeof L=="function"&&L.length!=1&&(A=N=!1);var V=this.__chain__,ee=!!this.__actions__.length,ae=y&&!V,be=A&&!ee;if(!y&&N){S=be?S:new we(this);var oe=n.apply(S,C);return oe.__actions__.push({func:$o,args:[B],thisArg:t}),new Zt(oe,V)}return ae&&be?n.apply(this,C):(oe=this.thru(B),ae?f?oe.value()[0]:oe.value():oe)})}),Jt(["pop","push","shift","sort","splice","unshift"],function(n){var o=oo[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)})}}),vr(we.prototype,function(n,o){var u=v[o];if(u){var f=u.name+"";ke.call($n,f)||($n[f]=[]),$n[f].push({name:o,func:u})}}),$n[Ro(t,P).name]=[{name:"wrapper",func:t}],we.prototype.clone=sm,we.prototype.reverse=im,we.prototype.value=um,v.prototype.at=N0,v.prototype.chain=k0,v.prototype.commit=j0,v.prototype.next=B0,v.prototype.plant=U0,v.prototype.reverse=H0,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=q0,v.prototype.first=v.prototype.head,ca&&(v.prototype[ca]=W0),v},Dn=jy();fn?((fn.exports=Dn)._=Dn,ni._=Dn):gt._=Dn}).call(Fr)})(ds,ds.exports);var We=ds.exports;const xh=ws(We);function Oc(e){return`Debugger/${e}`}function Rh(e,r){var a;const t=(a=r.name)==null?void 0:a.replace(/\.(4dm|4qs)$/,"");return`#${e} ${t}`}const yR=typeof process=="object"&&process&&process.platform==="win32";var mR=yR?{sep:"\\"}:{sep:"/"},bR=Oh;function Oh(e,r,t){e instanceof RegExp&&(e=fp(e,t)),r instanceof RegExp&&(r=fp(r,t));var a=Ah(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 fp(e,r){var t=r.match(e);return t?t[0]:null}Oh.range=Ah;function Ah(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 Ph=bR,_R=wR,Dh="\0SLASH"+Math.random()+"\0",Ih="\0OPEN"+Math.random()+"\0",Ac="\0CLOSE"+Math.random()+"\0",Fh="\0COMMA"+Math.random()+"\0",$h="\0PERIOD"+Math.random()+"\0";function bu(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function ER(e){return e.split("\\\\").join(Dh).split("\\{").join(Ih).split("\\}").join(Ac).split("\\,").join(Fh).split("\\.").join($h)}function SR(e){return e.split(Dh).join("\\").split(Ih).join("{").split(Ac).join("}").split(Fh).join(",").split($h).join(".")}function Mh(e){if(!e)return[""];var r=[],t=Ph("{","}",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=Mh(i);return i.length&&(c[c.length-1]+=l.shift(),c.push.apply(c,l)),r.push.apply(r,c),r}function wR(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),xa(ER(e),!0).map(SR)):[]}function TR(e){return"{"+e+"}"}function CR(e){return/^-?0\d/.test(e)}function xR(e,r){return e<=r}function RR(e,r){return e>=r}function xa(e,r){var t=[],a=Ph("{","}",e);if(!a)return[e];var s=a.pre,i=a.post.length?xa(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,b=a.body.indexOf(",")>=0;if(!g&&!b)return a.post.match(/,.*\}/)?(e=a.pre+"{"+a.body+Ac+a.post,xa(e)):[e];var _;if(g)_=a.body.split(/\.\./);else if(_=Mh(a.body),_.length===1&&(_=xa(_[0],!1).map(TR),_.length===1))return i.map(function(Ue){return a.pre+_[0]+Ue});var E;if(g){var T=bu(_[0]),x=bu(_[1]),D=Math.max(_[0].length,_[1].length),P=_.length==3?Math.abs(bu(_[2])):1,j=xR,M=x<T;M&&(P*=-1,j=RR);var k=_.some(CR);E=[];for(var O=T;j(O,x);O+=P){var z;if(p)z=String.fromCharCode(O),z==="\\"&&(z="");else if(z=String(O),k){var q=D-z.length;if(q>0){var Y=new Array(q+1).join("0");O<0?z="-"+Y+z.slice(1):z=Y+z}}E.push(z)}}else{E=[];for(var te=0;te<_.length;te++)E.push.apply(E,xa(_[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 Ht=Lh=(e,r,t={})=>(ps(r),!t.nocomment&&r.charAt(0)==="#"?!1:new Ds(r,t).match(e));var Lh=Ht;const Ku=mR;Ht.sep=Ku.sep;const fr=Symbol("globstar **");Ht.GLOBSTAR=fr;const OR=_R,dp={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Ju="[^/]",_u=Ju+"*?",AR="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",PR="(?:(?!(?:\\/|^)\\.).)*?",Nh=e=>e.split("").reduce((r,t)=>(r[t]=!0,r),{}),pp=Nh("().*{}+?[]^$\\!"),DR=Nh("[.("),hp=/\/+/;Ht.filter=(e,r={})=>(t,a,s)=>Ht(t,e,r);const Zr=(e,r={})=>{const t={};return Object.keys(e).forEach(a=>t[a]=e[a]),Object.keys(r).forEach(a=>t[a]=r[a]),t};Ht.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Ht;const r=Ht,t=(a,s,i)=>r(a,s,Zr(e,i));return t.Minimatch=class extends r.Minimatch{constructor(s,i){super(s,Zr(e,i))}},t.Minimatch.defaults=a=>r.defaults(Zr(e,a)).Minimatch,t.filter=(a,s)=>r.filter(a,Zr(e,s)),t.defaults=a=>r.defaults(Zr(e,a)),t.makeRe=(a,s)=>r.makeRe(a,Zr(e,s)),t.braceExpand=(a,s)=>r.braceExpand(a,Zr(e,s)),t.match=(a,s,i)=>r.match(a,s,Zr(e,i)),t};Ht.braceExpand=(e,r)=>kh(e,r);const kh=(e,r={})=>(ps(e),r.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:OR(e)),IR=1024*64,ps=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>IR)throw new TypeError("pattern is too long")},Eu=Symbol("subparse");Ht.makeRe=(e,r)=>new Ds(e,r||{}).makeRe();Ht.match=(e,r,t={})=>{const a=new Ds(r,t);return e=e.filter(s=>a.match(s)),a.options.nonull&&!e.length&&e.push(r),e};const FR=e=>e.replace(/\\(.)/g,"$1"),$R=e=>e.replace(/\\([^-\]])/g,"$1"),MR=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),LR=e=>e.replace(/[[\]\\]/g,"\\$&");class Ds{constructor(r,t){ps(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(hp)),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===fr){this.debug("GLOBSTAR",[t,p,g]);var b=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(;b<l;){var E=r[b];if(this.debug(`
|
|
35
|
-
globstar while`,r,b,t,_,
|
|
36
|
-
>>> no match, partial?`,r,b,t,_),b===l))}var T;if(typeof p=="string"?(T=g===p,this.debug("string match",p,g,T)):(T=g.match(p),this.debug("pattern match",p,g,T)),!T)return!1}if(i===l&&c===d)return!0;if(i===l)return a;if(c===d)return i===l-1&&r[i]==="";throw new Error("wtf?")}braceExpand(){return
|
|
37
|
-
%s`,q,q,T,s);const Y=T.type==="*"?
|
|
34
|
+
}`;var be=Ad(function(){return Oe(y,ee+"return "+B).apply(t,E)});if(be.source=B,Qi(be))throw be;return be}function nE(n){return De(n).toLowerCase()}function aE(n){return De(n).toUpperCase()}function oE(n,o,u){if(n=De(n),n&&(u||o===t))return Nl(n);if(!n||!(o=jt(o)))return n;var f=ir(n),h=ir(o),y=kl(f,h),E=jl(f,h)+1;return Jr(f,y,E).join("")}function sE(n,o,u){if(n=De(n),n&&(u||o===t))return n.slice(0,Wl(n)+1);if(!n||!(o=jt(o)))return n;var f=ir(n),h=jl(f,ir(o))+1;return Jr(f,0,h).join("")}function iE(n,o,u){if(n=De(n),n&&(u||o===t))return n.replace(J,"");if(!n||!(o=jt(o)))return n;var f=ir(n),h=kl(f,ir(o));return Jr(f,h).join("")}function uE(n,o){var u=Ue,f=Te;if(Ze(o)){var h="separator"in o?o.separator:h;u="length"in o?ye(o.length):u,f="omission"in o?jt(o.omission):f}n=De(n);var y=n.length;if(An(n)){var E=ir(n);y=E.length}if(u>=y)return n;var C=u-Pn(f);if(C<1)return f;var A=E?Jr(E,0,C).join(""):n.slice(0,C);if(h===t)return A+f;if(E&&(C+=A.length-C),eu(h)){if(n.slice(C).search(h)){var L,N=A;for(h.global||(h=vi(h.source,De(Vt.exec(h))+"g")),h.lastIndex=0;L=h.exec(N);)var B=L.index;A=A.slice(0,B===t?C:B)}}else if(n.indexOf(jt(h),C)!=C){var V=A.lastIndexOf(h);V>-1&&(A=A.slice(0,V))}return A+f}function cE(n){return n=De(n),n&&Ja.test(n)?n.replace(Ka,ky):n}var lE=Nn(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),nu=Pf("toUpperCase");function Od(n,o,u){return n=De(n),o=u?t:o,o===t?Fy(n)?Wy(n):Ty(n):n.match(o)||[]}var Ad=_e(function(n,o){try{return Nt(n,t,o)}catch(u){return Qi(u)?u:new pe(u)}}),fE=Rr(function(n,o){return Jt(o,function(u){u=mr(u),Cr(n,u,Xi(n[u],n))}),n});function dE(n){var o=n==null?0:n.length,u=re();return n=o?Ke(n,function(f){if(typeof f[1]!="function")throw new Xt(c);return[u(f[0]),f[1]]}):[],_e(function(f){for(var h=-1;++h<o;){var y=n[h];if(Nt(y[0],this,f))return Nt(y[1],this,f)}})}function pE(n){return km(Qt(n,b))}function au(n){return function(){return n}}function hE(n,o){return n==null||n!==n?o:n}var gE=If(),vE=If(!0);function Mt(n){return n}function ou(n){return uf(typeof n=="function"?n:Qt(n,b))}function yE(n){return lf(Qt(n,b))}function mE(n,o){return ff(n,Qt(o,b))}var bE=_e(function(n,o){return function(u){return va(u,n,o)}}),_E=_e(function(n,o){return function(u){return va(n,u,o)}});function su(n,o,u){var f=dt(o),h=wo(o,f);u==null&&!(Ze(o)&&(h.length||!f.length))&&(u=o,o=n,n=this,h=wo(o,dt(o)));var y=!(Ze(u)&&"chain"in u)||!!u.chain,E=Ar(n);return Jt(h,function(C){var A=o[C];n[C]=A,E&&(n.prototype[C]=function(){var L=this.__chain__;if(y||L){var N=n(this.__wrapped__),B=N.__actions__=It(this.__actions__);return B.push({func:A,args:arguments,thisArg:n}),N.__chain__=L,N}return A.apply(n,qr([this.value()],arguments))})}),n}function SE(){return gt._===this&&(gt._=zy),this}function iu(){}function EE(n){return n=ye(n),_e(function(o){return df(o,n)})}var wE=ki(Ke),TE=ki(Il),CE=ki(ci);function Pd(n){return Gi(n)?li(mr(n)):tb(n)}function xE(n){return function(o){return n==null?t:yn(n,o)}}var RE=$f(),OE=$f(!0);function uu(){return[]}function cu(){return!1}function AE(){return{}}function PE(){return""}function DE(){return!0}function IE(n,o){if(n=ye(n),n<1||n>rt)return[];var u=G,f=bt(n,G);o=re(o),n-=G;for(var h=pi(f,o);++u<n;)o(u);return h}function FE(n){return ve(n)?Ke(n,mr):Bt(n)?[n]:It(Jf(De(n)))}function $E(n){var o=++Gy;return De(n)+o}var ME=Ao(function(n,o){return n+o},0),LE=ji("ceil"),NE=Ao(function(n,o){return n/o},1),kE=ji("floor");function jE(n){return n&&n.length?Eo(n,Mt,Ti):t}function BE(n,o){return n&&n.length?Eo(n,re(o,2),Ti):t}function WE(n){return Ml(n,Mt)}function UE(n,o){return Ml(n,re(o,2))}function HE(n){return n&&n.length?Eo(n,Mt,Oi):t}function qE(n,o){return n&&n.length?Eo(n,re(o,2),Oi):t}var GE=Ao(function(n,o){return n*o},1),YE=ji("round"),zE=Ao(function(n,o){return n-o},0);function VE(n){return n&&n.length?di(n,Mt):0}function KE(n,o){return n&&n.length?di(n,re(o,2)):0}return v.after=y_,v.ary=id,v.assign=aS,v.assignIn=Sd,v.assignInWith=Uo,v.assignWith=oS,v.at=sS,v.before=ud,v.bind=Xi,v.bindAll=fE,v.bindKey=cd,v.castArray=A_,v.chain=ad,v.chunk=kb,v.compact=jb,v.concat=Bb,v.cond=dE,v.conforms=pE,v.constant=au,v.countBy=V0,v.create=iS,v.curry=ld,v.curryRight=fd,v.debounce=dd,v.defaults=uS,v.defaultsDeep=cS,v.defer=m_,v.delay=b_,v.difference=Wb,v.differenceBy=Ub,v.differenceWith=Hb,v.drop=qb,v.dropRight=Gb,v.dropRightWhile=Yb,v.dropWhile=zb,v.fill=Vb,v.filter=J0,v.flatMap=Q0,v.flatMapDeep=e_,v.flatMapDepth=t_,v.flatten=ed,v.flattenDeep=Kb,v.flattenDepth=Jb,v.flip=__,v.flow=gE,v.flowRight=vE,v.fromPairs=Xb,v.functions=vS,v.functionsIn=yS,v.groupBy=r_,v.initial=Qb,v.intersection=e0,v.intersectionBy=t0,v.intersectionWith=r0,v.invert=bS,v.invertBy=_S,v.invokeMap=a_,v.iteratee=ou,v.keyBy=o_,v.keys=dt,v.keysIn=$t,v.map=Lo,v.mapKeys=ES,v.mapValues=wS,v.matches=yE,v.matchesProperty=mE,v.memoize=ko,v.merge=TS,v.mergeWith=Ed,v.method=bE,v.methodOf=_E,v.mixin=su,v.negate=jo,v.nthArg=EE,v.omit=CS,v.omitBy=xS,v.once=S_,v.orderBy=s_,v.over=wE,v.overArgs=E_,v.overEvery=TE,v.overSome=CE,v.partial=Zi,v.partialRight=pd,v.partition=i_,v.pick=RS,v.pickBy=wd,v.property=Pd,v.propertyOf=xE,v.pull=s0,v.pullAll=rd,v.pullAllBy=i0,v.pullAllWith=u0,v.pullAt=c0,v.range=RE,v.rangeRight=OE,v.rearg=w_,v.reject=l_,v.remove=l0,v.rest=T_,v.reverse=Ki,v.sampleSize=d_,v.set=AS,v.setWith=PS,v.shuffle=p_,v.slice=f0,v.sortBy=v_,v.sortedUniq=m0,v.sortedUniqBy=b0,v.split=QS,v.spread=C_,v.tail=_0,v.take=S0,v.takeRight=E0,v.takeRightWhile=w0,v.takeWhile=T0,v.tap=j0,v.throttle=x_,v.thru=Mo,v.toArray=md,v.toPairs=Td,v.toPairsIn=Cd,v.toPath=FE,v.toPlainObject=_d,v.transform=DS,v.unary=R_,v.union=C0,v.unionBy=x0,v.unionWith=R0,v.uniq=O0,v.uniqBy=A0,v.uniqWith=P0,v.unset=IS,v.unzip=Ji,v.unzipWith=nd,v.update=FS,v.updateWith=$S,v.values=Bn,v.valuesIn=MS,v.without=D0,v.words=Od,v.wrap=O_,v.xor=I0,v.xorBy=F0,v.xorWith=$0,v.zip=M0,v.zipObject=L0,v.zipObjectDeep=N0,v.zipWith=k0,v.entries=Td,v.entriesIn=Cd,v.extend=Sd,v.extendWith=Uo,su(v,v),v.add=ME,v.attempt=Ad,v.camelCase=jS,v.capitalize=xd,v.ceil=LE,v.clamp=LS,v.clone=P_,v.cloneDeep=I_,v.cloneDeepWith=F_,v.cloneWith=D_,v.conformsTo=$_,v.deburr=Rd,v.defaultTo=hE,v.divide=NE,v.endsWith=BS,v.eq=cr,v.escape=WS,v.escapeRegExp=US,v.every=K0,v.find=X0,v.findIndex=Zf,v.findKey=lS,v.findLast=Z0,v.findLastIndex=Qf,v.findLastKey=fS,v.floor=kE,v.forEach=od,v.forEachRight=sd,v.forIn=dS,v.forInRight=pS,v.forOwn=hS,v.forOwnRight=gS,v.get=tu,v.gt=M_,v.gte=L_,v.has=mS,v.hasIn=ru,v.head=td,v.identity=Mt,v.includes=n_,v.indexOf=Zb,v.inRange=NS,v.invoke=SS,v.isArguments=_n,v.isArray=ve,v.isArrayBuffer=N_,v.isArrayLike=Ft,v.isArrayLikeObject=nt,v.isBoolean=k_,v.isBuffer=Xr,v.isDate=j_,v.isElement=B_,v.isEmpty=W_,v.isEqual=U_,v.isEqualWith=H_,v.isError=Qi,v.isFinite=q_,v.isFunction=Ar,v.isInteger=hd,v.isLength=Bo,v.isMap=gd,v.isMatch=G_,v.isMatchWith=Y_,v.isNaN=z_,v.isNative=V_,v.isNil=J_,v.isNull=K_,v.isNumber=vd,v.isObject=Ze,v.isObjectLike=tt,v.isPlainObject=Ea,v.isRegExp=eu,v.isSafeInteger=X_,v.isSet=yd,v.isString=Wo,v.isSymbol=Bt,v.isTypedArray=jn,v.isUndefined=Z_,v.isWeakMap=Q_,v.isWeakSet=eS,v.join=n0,v.kebabCase=HS,v.last=tr,v.lastIndexOf=a0,v.lowerCase=qS,v.lowerFirst=GS,v.lt=tS,v.lte=rS,v.max=jE,v.maxBy=BE,v.mean=WE,v.meanBy=UE,v.min=HE,v.minBy=qE,v.stubArray=uu,v.stubFalse=cu,v.stubObject=AE,v.stubString=PE,v.stubTrue=DE,v.multiply=GE,v.nth=o0,v.noConflict=SE,v.noop=iu,v.now=No,v.pad=YS,v.padEnd=zS,v.padStart=VS,v.parseInt=KS,v.random=kS,v.reduce=u_,v.reduceRight=c_,v.repeat=JS,v.replace=XS,v.result=OS,v.round=YE,v.runInContext=R,v.sample=f_,v.size=h_,v.snakeCase=ZS,v.some=g_,v.sortedIndex=d0,v.sortedIndexBy=p0,v.sortedIndexOf=h0,v.sortedLastIndex=g0,v.sortedLastIndexBy=v0,v.sortedLastIndexOf=y0,v.startCase=eE,v.startsWith=tE,v.subtract=zE,v.sum=VE,v.sumBy=KE,v.template=rE,v.times=IE,v.toFinite=Pr,v.toInteger=ye,v.toLength=bd,v.toLower=nE,v.toNumber=rr,v.toSafeInteger=nS,v.toString=De,v.toUpper=aE,v.trim=oE,v.trimEnd=sE,v.trimStart=iE,v.truncate=uE,v.unescape=cE,v.uniqueId=$E,v.upperCase=lE,v.upperFirst=nu,v.each=od,v.eachRight=sd,v.first=td,su(v,function(){var n={};return vr(v,function(o,u){je.call(v.prototype,u)||(n[u]=o)}),n}(),{chain:!1}),v.VERSION=a,Jt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){v[n].placeholder=v}),Jt(["drop","take"],function(n,o){we.prototype[n]=function(u){u=u===t?1:ct(ye(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()}}),Jt(["filter","map","takeWhile"],function(n,o){var u=o+1,f=u==Pe||u==Qe;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}}),Jt(["head","last"],function(n,o){var u="take"+(o?"Right":"");we.prototype[n]=function(){return this[u](1).value()[0]}}),Jt(["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(Mt)},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 va(u,n,o)})}),we.prototype.reject=function(n){return this.filter(jo(re(n)))},we.prototype.slice=function(n,o){n=ye(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=ye(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)},vr(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 E=this.__wrapped__,C=f?[1]:arguments,A=E instanceof we,L=C[0],N=A||ve(E),B=function(Ee){var xe=h.apply(v,qr([Ee],C));return f&&V?xe[0]:xe};N&&u&&typeof L=="function"&&L.length!=1&&(A=N=!1);var V=this.__chain__,ee=!!this.__actions__.length,ae=y&&!V,be=A&&!ee;if(!y&&N){E=be?E:new we(this);var oe=n.apply(E,C);return oe.__actions__.push({func:Mo,args:[B],thisArg:t}),new Zt(oe,V)}return ae&&be?n.apply(this,C):(oe=this.thru(B),ae?f?oe.value()[0]:oe.value():oe)})}),Jt(["pop","push","shift","sort","splice","unshift"],function(n){var o=so[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(E){return o.apply(ve(E)?E:[],h)})}}),vr(we.prototype,function(n,o){var u=v[o];if(u){var f=u.name+"";je.call($n,f)||($n[f]=[]),$n[f].push({name:o,func:u})}}),$n[Oo(t,P).name]=[{name:"wrapper",func:t}],we.prototype.clone=cm,we.prototype.reverse=lm,we.prototype.value=fm,v.prototype.at=B0,v.prototype.chain=W0,v.prototype.commit=U0,v.prototype.next=H0,v.prototype.plant=G0,v.prototype.reverse=Y0,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=z0,v.prototype.first=v.prototype.head,ca&&(v.prototype[ca]=q0),v},Dn=Uy();dn?((dn.exports=Dn)._=Dn,oi._=Dn):gt._=Dn}).call(Fr)})(ps,ps.exports);var Le=ps.exports;const Oh=ws(Le);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 _R=typeof process=="object"&&process&&process.platform==="win32";var SR=_R?{sep:"\\"}:{sep:"/"},ER=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=ER,wR=xR,Fh="\0SLASH"+Math.random()+"\0",$h="\0OPEN"+Math.random()+"\0",Dc="\0CLOSE"+Math.random()+"\0",Mh="\0COMMA"+Math.random()+"\0",Lh="\0PERIOD"+Math.random()+"\0";function Su(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function TR(e){return e.split("\\\\").join(Fh).split("\\{").join($h).split("\\}").join(Dc).split("\\,").join(Mh).split("\\.").join(Lh)}function CR(e){return e.split(Fh).join("\\").split($h).join("{").split(Dc).join("}").split(Mh).join(",").split(Lh).join(".")}function Nh(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=Nh(i);return i.length&&(c[c.length-1]+=l.shift(),c.push.apply(c,l)),r.push.apply(r,c),r}function xR(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),xa(TR(e),!0).map(CR)):[]}function RR(e){return"{"+e+"}"}function OR(e){return/^-?0\d/.test(e)}function AR(e,r){return e<=r}function PR(e,r){return e>=r}function xa(e,r){var t=[],a=Ih("{","}",e);if(!a)return[e];var s=a.pre,i=a.post.length?xa(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,b=a.body.indexOf(",")>=0;if(!g&&!b)return a.post.match(/,.*\}/)?(e=a.pre+"{"+a.body+Dc+a.post,xa(e)):[e];var _;if(g)_=a.body.split(/\.\./);else if(_=Nh(a.body),_.length===1&&(_=xa(_[0],!1).map(RR),_.length===1))return i.map(function(Ue){return a.pre+_[0]+Ue});var S;if(g){var T=Su(_[0]),x=Su(_[1]),D=Math.max(_[0].length,_[1].length),P=_.length==3?Math.abs(Su(_[2])):1,j=AR,M=x<T;M&&(P*=-1,j=PR);var k=_.some(OR);S=[];for(var O=T;j(O,x);O+=P){var z;if(p)z=String.fromCharCode(O),z==="\\"&&(z="");else if(z=String(O),k){var q=D-z.length;if(q>0){var Y=new Array(q+1).join("0");O<0?z="-"+Y+z.slice(1):z=Y+z}}S.push(z)}}else{S=[];for(var te=0;te<_.length;te++)S.push.apply(S,xa(_[te],!1))}for(var te=0;te<S.length;te++)for(var c=0;c<i.length;c++){var l=s+S[te]+i[c];(!r||g||l)&&t.push(l)}}return t}const Ht=kh=(e,r,t={})=>(hs(r),!t.nocomment&&r.charAt(0)==="#"?!1:new Ds(r,t).match(e));var kh=Ht;const Xu=SR;Ht.sep=Xu.sep;const fr=Symbol("globstar **");Ht.GLOBSTAR=fr;const DR=wR,hp={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Zu="[^/]",Eu=Zu+"*?",IR="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",FR="(?:(?!(?:\\/|^)\\.).)*?",jh=e=>e.split("").reduce((r,t)=>(r[t]=!0,r),{}),gp=jh("().*{}+?[]^$\\!"),$R=jh("[.("),vp=/\/+/;Ht.filter=(e,r={})=>(t,a,s)=>Ht(t,e,r);const Zr=(e,r={})=>{const t={};return Object.keys(e).forEach(a=>t[a]=e[a]),Object.keys(r).forEach(a=>t[a]=r[a]),t};Ht.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Ht;const r=Ht,t=(a,s,i)=>r(a,s,Zr(e,i));return t.Minimatch=class extends r.Minimatch{constructor(s,i){super(s,Zr(e,i))}},t.Minimatch.defaults=a=>r.defaults(Zr(e,a)).Minimatch,t.filter=(a,s)=>r.filter(a,Zr(e,s)),t.defaults=a=>r.defaults(Zr(e,a)),t.makeRe=(a,s)=>r.makeRe(a,Zr(e,s)),t.braceExpand=(a,s)=>r.braceExpand(a,Zr(e,s)),t.match=(a,s,i)=>r.match(a,s,Zr(e,i)),t};Ht.braceExpand=(e,r)=>Bh(e,r);const Bh=(e,r={})=>(hs(e),r.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:DR(e)),MR=1024*64,hs=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>MR)throw new TypeError("pattern is too long")},wu=Symbol("subparse");Ht.makeRe=(e,r)=>new Ds(e,r||{}).makeRe();Ht.match=(e,r,t={})=>{const a=new Ds(r,t);return e=e.filter(s=>a.match(s)),a.options.nonull&&!e.length&&e.push(r),e};const LR=e=>e.replace(/\\(.)/g,"$1"),NR=e=>e.replace(/\\([^-\]])/g,"$1"),kR=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),jR=e=>e.replace(/[[\]\\]/g,"\\$&");class Ds{constructor(r,t){hs(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===fr){this.debug("GLOBSTAR",[t,p,g]);var b=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(;b<l;){var S=r[b];if(this.debug(`
|
|
35
|
+
globstar while`,r,b,t,_,S),this.matchOne(r.slice(b),t.slice(_),a))return this.debug("globstar found match!",b,l,S),!0;if(S==="."||S===".."||!s.dot&&S.charAt(0)==="."){this.debug("dot detected!",r,b,t,_);break}this.debug("globstar swallow a segment, and continue"),b++}return!!(a&&(this.debug(`
|
|
36
|
+
>>> no match, partial?`,r,b,t,_),b===l))}var T;if(typeof p=="string"?(T=g===p,this.debug("string match",p,g,T)):(T=g.match(p),this.debug("pattern match",p,g,T)),!T)return!1}if(i===l&&c===d)return!0;if(i===l)return a;if(c===d)return i===l-1&&r[i]==="";throw new Error("wtf?")}braceExpand(){return Bh(this.pattern,this.options)}parse(r,t){hs(r);const a=this.options;if(r==="**")if(a.noglobstar)r="*";else return fr;if(r==="")return"";let s="",i=!1,c=!1;const l=[],d=[];let p,g=!1,b=-1,_=-1,S,T,x,D=r.charAt(0)===".",P=a.dot||D;const j=()=>D?"":P?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",M=q=>q.charAt(0)==="."?"":a.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",k=()=>{if(p){switch(p){case"*":s+=Eu,i=!0;break;case"?":s+=Zu,i=!0;break;default:s+="\\"+p;break}this.debug("clearStateChar %j %j",p,s),p=!1}};for(let q=0,Y;q<r.length&&(Y=r.charAt(q));q++){if(this.debug("%s %s %s %j",r,q,s,Y),c){if(Y==="/")return!1;gp[Y]&&(s+="\\"),s+=Y,c=!1;continue}switch(Y){case"/":return!1;case"\\":if(g&&r.charAt(q+1)==="-"){s+=Y;continue}k(),c=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",r,q,s,Y),g){this.debug(" in class"),Y==="!"&&q===_+1&&(Y="^"),s+=Y;continue}this.debug("call clearStateChar %j",p),k(),p=Y,a.noext&&k();continue;case"(":{if(g){s+="(";continue}if(!p){s+="\\(";continue}const te={type:p,start:q-1,reStart:s.length,open:hp[p].open,close:hp[p].close};this.debug(this.pattern," ",te),l.push(te),s+=te.open,te.start===0&&te.type!=="!"&&(D=!0,s+=M(r.slice(q+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,T=te,s+=T.close,T.type==="!"&&d.push(Object.assign(T,{reEnd:s.length}));continue}case"|":{const te=l[l.length-1];if(g||!te){s+="\\|";continue}k(),s+="|",te.start===0&&te.type!=="!"&&(D=!0,s+=M(r.slice(q+1)));continue}case"[":if(k(),g){s+="\\"+Y;continue}g=!0,_=q,b=s.length,s+=Y;continue;case"]":if(q===_+1||!g){s+="\\"+Y;continue}S=r.substring(_+1,q);try{RegExp("["+jR(NR(S))+"]"),s+=Y}catch{s=s.substring(0,b)+"(?:$.)"}i=!0,g=!1;continue;default:k(),gp[Y]&&!(Y==="^"&&g)&&(s+="\\"),s+=Y;break}}for(g&&(S=r.slice(_+1),x=this.parse(S,wu),s=s.substring(0,b)+"\\["+x[0],i=i||x[1]),T=l.pop();T;T=l.pop()){let q;q=s.slice(T.reStart+T.open.length),this.debug("setting tail",s,T),q=q.replace(/((?:\\{2}){0,64})(\\?)\|/g,(te,Ue,Te)=>(Te||(Te="\\"),Ue+Ue+Te+"|")),this.debug(`tail=%j
|
|
37
|
+
%s`,q,q,T,s);const Y=T.type==="*"?Eu:T.type==="?"?Zu:"\\"+T.type;i=!0,s=s.slice(0,T.reStart)+Y+"\\("+q}k(),c&&(s+="\\\\");const O=$R[s.charAt(0)];for(let q=d.length-1;q>-1;q--){const Y=d[q],te=s.slice(0,Y.reStart),Ue=s.slice(Y.reStart,Y.reEnd-8);let Te=s.slice(Y.reEnd);const st=s.slice(Y.reEnd-8,Y.reEnd)+Te,X=te.split(")").length,Pe=te.split("(").length-X;let it=Te;for(let qe=0;qe<Pe;qe++)it=it.replace(/\)[+*?]?/,"");Te=it;const Qe=Te===""&&t!==wu?"(?:$|\\/)":"";s=te+Ue+Te+Qe+st}if(s!==""&&i&&(s="(?=.)"+s),O&&(s=j()+s),t===wu)return[s,i];if(a.nocase&&!i&&(i=r.toUpperCase()!==r.toLowerCase()),!i)return LR(r);const z=a.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",z),{_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?Eu:t.dot?IR:FR,s=t.nocase?"i":"";let i=r.map(c=>(c=c.map(l=>typeof l=="string"?kR(l):l===fr?fr:l._src).reduce((l,d)=>(l[l.length-1]===fr&&d===fr||l.push(d),l),[]),c.forEach((l,d)=>{l!==fr||c[d-1]===fr||(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]=fr))}),c.filter(l=>l!==fr).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;Xu.sep!=="/"&&(r=r.split(Xu.sep).join("/")),r=r.split(vp),this.debug(this.pattern,"split",r);const s=this.set;this.debug(this.pattern,"set",s);let i;for(let c=r.length-1;c>=0&&(i=r[c],!i);c--);for(let c=0;c<s.length;c++){const l=s[c];let d=r;if(a.matchBase&&l.length===1&&(d=[i]),this.matchOne(d,l,t))return a.flipNegate?!0:!this.negate}return a.flipNegate?!1:this.negate}static defaults(r){return Ht.defaults(r).Minimatch}}Ht.Minimatch=Ds;const Wh=ws(kh),Uh=[{pattern:m.ROLES_TAB_PATH,editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:m.MODEL_TAB_PATH,editor:{key:"editors:model"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"**/*.webform",editor:{key:"editors:webforms"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"Methods/*.4dm",editor:{key:"editors:code:method",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Methods/*.4qs",editor:{key:"editors:code:method",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Classes/*.4dm",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Classes/*.4qs",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"**/*.+(json)",editor:{key:"editors:code",config:{language:"json"}}},{pattern:"**/*.+(js)",editor:{key:"editors:code",config:{language:"js"}}},{pattern:"**/*.+(css)",editor:{key:"editors:code",config:{language:"css"}}},{pattern:"**/*.+(txt)",editor:{key:"editors:code",config:{language:""}}},{pattern:"Debugger/*",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"**/*.+(png|jpeg|jpg|gif|svg)",editor:{key:"editors:img"}}],Hh=[{pattern:"**/*.+(json|4DModel|WebForm)",type:"json"},{pattern:"**/*.+(4dm|txt|json|4qs)",type:"text"}];function qh(e){const r=e.split("/");return r.pop(),r.join("/")}function pr(e){const r=Uh.find(({pattern:t})=>Wh(e,t,{nocase:!0}));return r||{pattern:"",editor:{key:"editors:unknown",config:{language:"text"}}}}function Gh(e){const r=Hh.find(({pattern:t})=>Wh(e,t,{nocase:!0}));return r?r.type:"text"}var Qu=function(e,r){return Qu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])},Qu(e,r)};function Is(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");Qu(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function ec(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 gs(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 vs(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 $r(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 Tu=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
|
|
39
|
+
`):"",this.name="UnsubscriptionError",this.errors=t}});function tc(e,r){if(e){var t=e.indexOf(r);0<=t&&e.splice(t,1)}}var Fs=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=ec(c),d=l.next();!d.done;d=l.next()){var p=d.value;p.remove(this)}}catch(x){r={error:x}}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($r(g))try{g()}catch(x){i=x instanceof Tu?x.errors:[x]}var b=this._finalizers;if(b){this._finalizers=null;try{for(var _=ec(b),S=_.next();!S.done;S=_.next()){var T=S.value;try{yp(T)}catch(x){i=i??[],x instanceof Tu?i=vs(vs([],gs(i)),gs(x.errors)):i.push(x)}}}catch(x){a={error:x}}finally{try{S&&!S.done&&(s=_.return)&&s.call(_)}finally{if(a)throw a.error}}}if(i)throw new Tu(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)&&tc(t,r)},e.prototype.remove=function(r){var t=this._finalizers;t&&tc(t,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}(),zh=Fs.EMPTY;function Vh(e){return e instanceof Fs||e&&"closed"in e&&$r(e.remove)&&$r(e.add)&&$r(e.unsubscribe)}function yp(e){$r(e)?e():e.unsubscribe()}var Kh={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},rc={setTimeout:function(e,r){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];var s=rc.delegate;return s!=null&&s.setTimeout?s.setTimeout.apply(s,vs([e,r],gs(t))):setTimeout.apply(void 0,vs([e,r],gs(t)))},clearTimeout:function(e){var r=rc.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function BR(e){rc.setTimeout(function(){throw e})}function mp(){}function Zo(e){e()}var Jh=function(e){Is(r,e);function r(t){var a=e.call(this)||this;return a.isStopped=!1,t?(a.destination=t,Vh(t)&&t.add(a)):a.destination=qR,a}return r.create=function(t,a,s){return new nc(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}(Fs),WR=Function.prototype.bind;function Cu(e,r){return WR.call(e,r)}var UR=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){qo(a)}},e.prototype.error=function(r){var t=this.partialObserver;if(t.error)try{t.error(r)}catch(a){qo(a)}else qo(r)},e.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(t){qo(t)}},e}(),nc=function(e){Is(r,e);function r(t,a,s){var i=e.call(this)||this,c;if($r(t)||!t)c={next:t??void 0,error:a??void 0,complete:s??void 0};else{var l;i&&Kh.useDeprecatedNextContext?(l=Object.create(t),l.unsubscribe=function(){return i.unsubscribe()},c={next:t.next&&Cu(t.next,l),error:t.error&&Cu(t.error,l),complete:t.complete&&Cu(t.complete,l)}):c=t}return i.destination=new UR(c),i}return r}(Jh);function qo(e){BR(e)}function HR(e){throw e}var qR={closed:!0,next:mp,error:HR,complete:mp},GR=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function YR(e){return e}function zR(e){return e.length===0?YR:e.length===1?e[0]:function(t){return e.reduce(function(a,s){return s(a)},t)}}var bp=function(){function e(r){r&&(this._subscribe=r)}return e.prototype.lift=function(r){var t=new e;return t.source=this,t.operator=r,t},e.prototype.subscribe=function(r,t,a){var s=this,i=KR(r)?r:new nc(r,t,a);return Zo(function(){var c=s,l=c.operator,d=c.source;i.add(l?l.call(i,d):d?s._subscribe(i):s._trySubscribe(i))}),i},e.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(t){r.error(t)}},e.prototype.forEach=function(r,t){var a=this;return t=_p(t),new t(function(s,i){var c=new nc({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[GR]=function(){return this},e.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return zR(r)(this)},e.prototype.toPromise=function(r){var t=this;return r=_p(r),new r(function(a,s){var i;t.subscribe(function(c){return i=c},function(c){return s(c)},function(){return a(i)})})},e.create=function(r){return new e(r)},e}();function _p(e){var r;return(r=e??Kh.Promise)!==null&&r!==void 0?r:Promise}function VR(e){return e&&$r(e.next)&&$r(e.error)&&$r(e.complete)}function KR(e){return e&&e instanceof Jh||VR(e)&&Vh(e)}var JR=Yh(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Xh=function(e){Is(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 JR},r.prototype.next=function(t){var a=this;Zo(function(){var s,i;if(a._throwIfClosed(),!a.isStopped){a.currentObservers||(a.currentObservers=Array.from(a.observers));try{for(var c=ec(a.currentObservers),l=c.next();!l.done;l=c.next()){var d=l.value;d.next(t)}}catch(p){s={error:p}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(s)throw s.error}}}})},r.prototype.error=function(t){var a=this;Zo(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;Zo(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?zh:(this.currentObservers=null,l.push(t),new Fs(function(){a.currentObservers=null,tc(l,t)}))},r.prototype._checkFinalizedStatuses=function(t){var a=this,s=a.hasError,i=a.thrownError,c=a.isStopped;s?t.error(i):c&&t.complete()},r.prototype.asObservable=function(){var t=new bp;return t.source=this,t},r.create=function(t,a){return new Sp(t,a)},r}(bp),Sp=function(e){Is(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:zh},r}(Xh);const Zh=new Xh;var ac={exports:{}},Go={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 Ep;function XR(){if(Ep)return Ie;Ep=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,b=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,D=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 z=O.$$typeof;switch(z){case r:switch(O=O.type,O){case d:case p:case a:case i:case s:case b:return O;default:switch(O=O&&O.$$typeof,O){case l:case g:case T:case S:case c:return O;default:return z}}case t:return z}}}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=T,Ie.Memo=S,Ie.Portal=t,Ie.Profiler=i,Ie.StrictMode=s,Ie.Suspense=b,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)===T},Ie.isMemo=function(O){return M(O)===S},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)===b},Ie.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===a||O===p||O===i||O===s||O===b||O===_||typeof O=="object"&&O!==null&&(O.$$typeof===T||O.$$typeof===S||O.$$typeof===c||O.$$typeof===l||O.$$typeof===g||O.$$typeof===D||O.$$typeof===P||O.$$typeof===j||O.$$typeof===x)},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 wp;function ZR(){return wp||(wp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,D=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===b||F===_||typeof F=="object"&&F!==null&&(F.$$typeof===T||F.$$typeof===S||F.$$typeof===c||F.$$typeof===l||F.$$typeof===g||F.$$typeof===D||F.$$typeof===P||F.$$typeof===j||F.$$typeof===x)}function k(F){if(typeof F=="object"&&F!==null){var ze=F.$$typeof;switch(ze){case r:var Ge=F.type;switch(Ge){case d:case p:case a:case i:case s:case b:return Ge;default:var mt=Ge&&Ge.$$typeof;switch(mt){case l:case g:case T:case S:case c:return mt;default:return ze}}case t:return ze}}}var O=d,z=p,q=l,Y=c,te=r,Ue=g,Te=a,st=T,X=S,Pe=t,it=i,Qe=s,qe=b,rt=!1;function Yt(F){return rt||(rt=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),W(F)||k(F)===d}function W(F){return k(F)===p}function G(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)===T}function ce(F){return k(F)===S}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)===b}Fe.AsyncMode=O,Fe.ConcurrentMode=z,Fe.ContextConsumer=q,Fe.ContextProvider=Y,Fe.Element=te,Fe.ForwardRef=Ue,Fe.Fragment=Te,Fe.Lazy=st,Fe.Memo=X,Fe.Portal=Pe,Fe.Profiler=it,Fe.StrictMode=Qe,Fe.Suspense=qe,Fe.isAsyncMode=Yt,Fe.isConcurrentMode=W,Fe.isContextConsumer=G,Fe.isContextProvider=de,Fe.isElement=le,Fe.isForwardRef=se,Fe.isFragment=fe,Fe.isLazy=ne,Fe.isMemo=ce,Fe.isPortal=ue,Fe.isProfiler=he,Fe.isStrictMode=ge,Fe.isSuspense=K,Fe.isValidElementType=M,Fe.typeOf=k}()),Fe}var Tp;function Qh(){return Tp||(Tp=1,process.env.NODE_ENV==="production"?Go.exports=XR():Go.exports=ZR()),Go.exports}/*
|
|
54
54
|
object-assign
|
|
55
55
|
(c) Sindre Sorhus
|
|
56
56
|
@license MIT
|
|
57
|
-
*/var
|
|
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 D(G)}function Pe(W){switch(typeof W){case"number":case"string":case"undefined":return!0;case"boolean":return!W;case"object":if(Array.isArray(W))return W.every(Pe);if(W===null||l(W))return!0;var G=b(W);if(G){var de=G.call(W),le;if(G!==W.entries){for(;!(le=de.next()).done;)if(!Pe(le.value))return!1}else for(;!(le=de.next()).done;){var se=le.value;if(se&&!Pe(se[1]))return!1}}else return!1;return!0;default:return!1}}function it(W,G){return W==="symbol"?!0:G?G["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&G instanceof Symbol:!1}function Qe(W){var G=typeof W;return Array.isArray(W)?"array":W instanceof RegExp?"object":it(G,W)?"symbol":G}function qe(W){if(typeof W>"u"||W===null)return""+W;var G=Qe(W);if(G==="object"){if(W instanceof Date)return"date";if(W instanceof RegExp)return"regexp"}return G}function rt(W){var G=qe(W);switch(G){case"array":case"object":return"an "+G;case"boolean":case"date":case"regexp":return"a "+G;default:return G}}function Yt(W){return!W.constructor||!W.constructor.name?_:W.constructor.name}return
|
|
57
|
+
*/var xu,Cp;function Ic(){if(Cp)return xu;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 xu=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 b in l)r.call(l,b)&&(d[b]=l[b]);if(e){p=e(l);for(var _=0;_<p.length;_++)t.call(l,p[_])&&(d[p[_]]=l[p[_]])}}return d},xu}var Ru,xp;function Fc(){if(xp)return Ru;xp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ru=e,Ru}var Ou,Rp;function eg(){return Rp||(Rp=1,Ou=Function.call.bind(Object.prototype.hasOwnProperty)),Ou}var Au,Op;function QR(){if(Op)return Au;Op=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=Fc(),t={},a=eg();e=function(i){var c="Warning: "+i;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}}}function s(i,c,l,d,p){if(process.env.NODE_ENV!=="production"){for(var g in i)if(a(i,g)){var b;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",_}b=i[g](c,g,d,l,null,r)}catch(T){b=T}if(b&&!(b 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 b+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),b instanceof Error&&!(b.message in t)){t[b.message]=!0;var S=p?p():"";e("Failed "+l+" type: "+b.message+(S??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},Au=s,Au}var Pu,Ap;function eO(){if(Ap)return Pu;Ap=1;var e=Qh(),r=Ic(),t=Fc(),a=eg(),s=QR(),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 Pu=function(l,d){var p=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function b(W){var G=W&&(p&&W[p]||W[g]);if(typeof G=="function")return G}var _="<<anonymous>>",S={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:z,node:Ue(),objectOf:Y,oneOf:q,oneOfType:te,shape:st,exact:X};function T(W,G){return W===G?W!==0||1/W===1/G:W!==W&&G!==G}function x(W,G){this.message=W,this.data=G&&typeof G=="object"?G:{},this.stack=""}x.prototype=Error.prototype;function D(W){if(process.env.NODE_ENV!=="production")var G={},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 ze=ue+":"+ce;!G[ze]&&de<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ge+"` prop on `"+ue+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),G[ze]=!0,de++)}}return ne[ce]==null?fe?ne[ce]===null?new x("The "+he+" `"+ge+"` is marked as required "+("in `"+ue+"`, but its value is `null`.")):new x("The "+he+" `"+ge+"` is marked as required in "+("`"+ue+"`, but its value is `undefined`.")):null:W(ne,ce,ue,he,ge)}var se=le.bind(null,!1);return se.isRequired=le.bind(null,!0),se}function P(W){function G(de,le,se,fe,ne,ce){var ue=de[le],he=Qe(ue);if(he!==W){var ge=qe(ue);return new x("Invalid "+fe+" `"+ne+"` of type "+("`"+ge+"` supplied to `"+se+"`, expected ")+("`"+W+"`."),{expectedType:W})}return null}return D(G)}function j(){return D(c)}function M(W){function G(de,le,se,fe,ne){if(typeof W!="function")return new x("Property `"+ne+"` of component `"+se+"` has invalid PropType notation inside arrayOf.");var ce=de[le];if(!Array.isArray(ce)){var ue=Qe(ce);return new x("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 D(G)}function k(){function W(G,de,le,se,fe){var ne=G[de];if(!l(ne)){var ce=Qe(ne);return new x("Invalid "+se+" `"+fe+"` of type "+("`"+ce+"` supplied to `"+le+"`, expected a single ReactElement."))}return null}return D(W)}function O(){function W(G,de,le,se,fe){var ne=G[de];if(!e.isValidElementType(ne)){var ce=Qe(ne);return new x("Invalid "+se+" `"+fe+"` of type "+("`"+ce+"` supplied to `"+le+"`, expected a single ReactElement type."))}return null}return D(W)}function z(W){function G(de,le,se,fe,ne){if(!(de[le]instanceof W)){var ce=W.name||_,ue=Yt(de[le]);return new x("Invalid "+fe+" `"+ne+"` of type "+("`"+ue+"` supplied to `"+se+"`, expected ")+("instance of `"+ce+"`."))}return null}return D(G)}function q(W){if(!Array.isArray(W))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),c;function G(de,le,se,fe,ne){for(var ce=de[le],ue=0;ue<W.length;ue++)if(T(ce,W[ue]))return null;var he=JSON.stringify(W,function(K,F){var ze=qe(F);return ze==="symbol"?String(F):F});return new x("Invalid "+fe+" `"+ne+"` of value `"+String(ce)+"` "+("supplied to `"+se+"`, expected one of "+he+"."))}return D(G)}function Y(W){function G(de,le,se,fe,ne){if(typeof W!="function")return new x("Property `"+ne+"` of component `"+se+"` has invalid PropType notation inside objectOf.");var ce=de[le],ue=Qe(ce);if(ue!=="object")return new x("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 D(G)}function te(W){if(!Array.isArray(W))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var G=0;G<W.length;G++){var de=W[G];if(typeof de!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+rt(de)+" at index "+G+"."),c}function le(se,fe,ne,ce,ue){for(var he=[],ge=0;ge<W.length;ge++){var K=W[ge],F=K(se,fe,ne,ce,ue,t);if(F==null)return null;F.data&&a(F.data,"expectedType")&&he.push(F.data.expectedType)}var ze=he.length>0?", expected one of type ["+he.join(", ")+"]":"";return new x("Invalid "+ce+" `"+ue+"` supplied to "+("`"+ne+"`"+ze+"."))}return D(le)}function Ue(){function W(G,de,le,se,fe){return Pe(G[de])?null:new x("Invalid "+se+" `"+fe+"` supplied to "+("`"+le+"`, expected a ReactNode."))}return D(W)}function Te(W,G,de,le,se){return new x((W||"React class")+": "+G+" type `"+de+"."+le+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+se+"`.")}function st(W){function G(de,le,se,fe,ne){var ce=de[le],ue=Qe(ce);if(ue!=="object")return new x("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,qe(ge));var K=ge(ce,he,se,fe,ne+"."+he,t);if(K)return K}return null}return D(G)}function X(W){function G(de,le,se,fe,ne){var ce=de[le],ue=Qe(ce);if(ue!=="object")return new x("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,qe(K));if(!K)return new x("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 D(G)}function Pe(W){switch(typeof W){case"number":case"string":case"undefined":return!0;case"boolean":return!W;case"object":if(Array.isArray(W))return W.every(Pe);if(W===null||l(W))return!0;var G=b(W);if(G){var de=G.call(W),le;if(G!==W.entries){for(;!(le=de.next()).done;)if(!Pe(le.value))return!1}else for(;!(le=de.next()).done;){var se=le.value;if(se&&!Pe(se[1]))return!1}}else return!1;return!0;default:return!1}}function it(W,G){return W==="symbol"?!0:G?G["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&G instanceof Symbol:!1}function Qe(W){var G=typeof W;return Array.isArray(W)?"array":W instanceof RegExp?"object":it(G,W)?"symbol":G}function qe(W){if(typeof W>"u"||W===null)return""+W;var G=Qe(W);if(G==="object"){if(W instanceof Date)return"date";if(W instanceof RegExp)return"regexp"}return G}function rt(W){var G=qe(W);switch(G){case"array":case"object":return"an "+G;case"boolean":case"date":case"regexp":return"a "+G;default:return G}}function Yt(W){return!W.constructor||!W.constructor.name?_:W.constructor.name}return S.checkPropTypes=s,S.resetWarningCache=s.resetWarningCache,S.PropTypes=S,S},Pu}var Du,Pp;function tO(){if(Pp)return Du;Pp=1;var e=Fc();function r(){}function t(){}return t.resetWarningCache=r,Du=function(){function a(c,l,d,p,g,b){if(b!==e){var _=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw _.name="Invariant Violation",_}}a.isRequired=a;function s(){return a}var i={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:s,element:a,elementType:a,instanceOf:s,node:a,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:t,resetWarningCache:r};return i.PropTypes=i,i},Du}if(process.env.NODE_ENV!=="production"){var rO=Qh(),nO=!0;ac.exports=eO()(rO.isElement,nO)}else ac.exports=tO()();var aO=ac.exports;const Un=ws(aO);var Nr=pt.createContext(null);process.env.NODE_ENV!=="production"&&(Nr.displayName="ReactRedux");function oO(e){e()}var tg=oO,sO=function(r){return tg=r},iO=function(){return tg};function uO(){var e=iO(),r=null,t=null;return{clear:function(){r=null,t=null},notify:function(){e(function(){for(var s=r;s;)s.callback(),s=s.next})},get:function(){for(var s=[],i=r;i;)s.push(i),i=i.next;return s},subscribe:function(s){var i=!0,c=t={callback:s,next:null,prev:t};return c.prev?c.prev.next=c:r=c,function(){!i||r===null||(i=!1,c.next?c.next.prev=c.prev:t=c.prev,c.prev?c.prev.next=c.next:r=c.next)}}}}var Dp={notify:function(){},get:function(){return[]}};function rg(e,r){var t,a=Dp;function s(b){return d(),a.subscribe(b)}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=uO())}function p(){t&&(t(),t=void 0,a.clear(),a=Dp)}var g={addNestedSub:s,notifyNestedSubs:i,handleChangeWrapper:c,isSubscribed:l,trySubscribe:d,tryUnsubscribe:p,getListeners:function(){return a}};return g}var oc=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?pt.useLayoutEffect:pt.useEffect;function ng(e){var r=e.store,t=e.context,a=e.children,s=pt.useMemo(function(){var l=rg(r);return{store:r,subscription:l}},[r]),i=pt.useMemo(function(){return r.getState()},[r]);oc(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||Nr;return pt.createElement(c.Provider,{value:s},a)}process.env.NODE_ENV!=="production"&&(ng.propTypes={store:Un.shape({subscribe:Un.func.isRequired,dispatch:Un.func.isRequired,getState:Un.func.isRequired}),context:Un.object,children:Un.any});var sc={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 Ip;function cO(){if(Ip)return $e;Ip=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,D=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 z=O.$$typeof;switch(z){case r:switch(O=O.type,O){case d:case p:case a:case i:case s:case b:return O;default:switch(O=O&&O.$$typeof,O){case l:case g:case T:case S:case c:return O;default:return z}}case t:return z}}}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=T,$e.Memo=S,$e.Portal=t,$e.Profiler=i,$e.StrictMode=s,$e.Suspense=b,$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)===T},$e.isMemo=function(O){return M(O)===S},$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)===b},$e.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===a||O===p||O===i||O===s||O===b||O===_||typeof O=="object"&&O!==null&&(O.$$typeof===T||O.$$typeof===S||O.$$typeof===c||O.$$typeof===l||O.$$typeof===g||O.$$typeof===D||O.$$typeof===P||O.$$typeof===j||O.$$typeof===x)},$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 Fp;function lO(){return Fp||(Fp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,D=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===b||F===_||typeof F=="object"&&F!==null&&(F.$$typeof===T||F.$$typeof===S||F.$$typeof===c||F.$$typeof===l||F.$$typeof===g||F.$$typeof===D||F.$$typeof===P||F.$$typeof===j||F.$$typeof===x)}function k(F){if(typeof F=="object"&&F!==null){var ze=F.$$typeof;switch(ze){case r:var Ge=F.type;switch(Ge){case d:case p:case a:case i:case s:case b:return Ge;default:var mt=Ge&&Ge.$$typeof;switch(mt){case l:case g:case T:case S:case c:return mt;default:return ze}}case t:return ze}}}var O=d,z=p,q=l,Y=c,te=r,Ue=g,Te=a,st=T,X=S,Pe=t,it=i,Qe=s,qe=b,rt=!1;function Yt(F){return rt||(rt=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),W(F)||k(F)===d}function W(F){return k(F)===p}function G(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)===T}function ce(F){return k(F)===S}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)===b}Me.AsyncMode=O,Me.ConcurrentMode=z,Me.ContextConsumer=q,Me.ContextProvider=Y,Me.Element=te,Me.ForwardRef=Ue,Me.Fragment=Te,Me.Lazy=st,Me.Memo=X,Me.Portal=Pe,Me.Profiler=it,Me.StrictMode=Qe,Me.Suspense=qe,Me.isAsyncMode=Yt,Me.isConcurrentMode=W,Me.isContextConsumer=G,Me.isContextProvider=de,Me.isElement=le,Me.isForwardRef=se,Me.isFragment=fe,Me.isLazy=ne,Me.isMemo=ce,Me.isPortal=ue,Me.isProfiler=he,Me.isStrictMode=ge,Me.isSuspense=K,Me.isValidElementType=M,Me.typeOf=k}()),Me}process.env.NODE_ENV==="production"?sc.exports=cO():sc.exports=lO();var fO=sc.exports,ag=fO,dO={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},pO={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},og={};og[ag.ForwardRef]=dO;og[ag.Memo]=pO;var Be={};/** @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 $p;function hO(){if($p)return Be;$p=1;var e=60103,r=60106,t=60107,a=60108,s=60114,i=60109,c=60110,l=60112,d=60113,p=60120,g=60115,b=60116,_=60121,S=60122,T=60117,x=60129,D=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"),b=P("react.lazy"),_=P("react.block"),S=P("react.server.block"),T=P("react.fundamental"),x=P("react.debug_trace_mode"),D=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 b:case g:case i:return X;default:return Pe}}case r:return Pe}}}var M=i,k=e,O=l,z=t,q=b,Y=g,te=r,Ue=s,Te=a,st=d;return Be.ContextConsumer=c,Be.ContextProvider=M,Be.Element=k,Be.ForwardRef=O,Be.Fragment=z,Be.Lazy=q,Be.Memo=Y,Be.Portal=te,Be.Profiler=Ue,Be.StrictMode=Te,Be.Suspense=st,Be.isAsyncMode=function(){return!1},Be.isConcurrentMode=function(){return!1},Be.isContextConsumer=function(X){return j(X)===c},Be.isContextProvider=function(X){return j(X)===i},Be.isElement=function(X){return typeof X=="object"&&X!==null&&X.$$typeof===e},Be.isForwardRef=function(X){return j(X)===l},Be.isFragment=function(X){return j(X)===t},Be.isLazy=function(X){return j(X)===b},Be.isMemo=function(X){return j(X)===g},Be.isPortal=function(X){return j(X)===r},Be.isProfiler=function(X){return j(X)===s},Be.isStrictMode=function(X){return j(X)===a},Be.isSuspense=function(X){return j(X)===d},Be.isValidElementType=function(X){return typeof X=="string"||typeof X=="function"||X===t||X===s||X===x||X===a||X===d||X===p||X===D||typeof X=="object"&&X!==null&&(X.$$typeof===b||X.$$typeof===g||X.$$typeof===i||X.$$typeof===c||X.$$typeof===l||X.$$typeof===T||X.$$typeof===_||X[0]===S)},Be.typeOf=j,Be}var We={};/** @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 Mp;function gO(){return Mp||(Mp=1,process.env.NODE_ENV!=="production"&&function(){var e=60103,r=60106,t=60107,a=60108,s=60114,i=60109,c=60110,l=60112,d=60113,p=60120,g=60115,b=60116,_=60121,S=60122,T=60117,x=60129,D=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"),b=P("react.lazy"),_=P("react.block"),S=P("react.server.block"),T=P("react.fundamental"),P("react.scope"),P("react.opaque.id"),x=P("react.debug_trace_mode"),P("react.offscreen"),D=P("react.legacy_hidden")}var j=!1;function M(K){return!!(typeof K=="string"||typeof K=="function"||K===t||K===s||K===x||K===a||K===d||K===p||K===D||j||typeof K=="object"&&K!==null&&(K.$$typeof===b||K.$$typeof===g||K.$$typeof===i||K.$$typeof===c||K.$$typeof===l||K.$$typeof===T||K.$$typeof===_||K[0]===S))}function k(K){if(typeof K=="object"&&K!==null){var F=K.$$typeof;switch(F){case e:var ze=K.type;switch(ze){case t:case s:case a:case d:case p:return ze;default:var Ge=ze&&ze.$$typeof;switch(Ge){case c:case l:case b:case g:case i:return Ge;default:return F}}case r:return F}}}var O=c,z=i,q=e,Y=l,te=t,Ue=b,Te=g,st=r,X=s,Pe=a,it=d,Qe=!1,qe=!1;function rt(K){return Qe||(Qe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Yt(K){return qe||(qe=!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 G(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)===b}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}We.ContextConsumer=O,We.ContextProvider=z,We.Element=q,We.ForwardRef=Y,We.Fragment=te,We.Lazy=Ue,We.Memo=Te,We.Portal=st,We.Profiler=X,We.StrictMode=Pe,We.Suspense=it,We.isAsyncMode=rt,We.isConcurrentMode=Yt,We.isContextConsumer=W,We.isContextProvider=G,We.isElement=de,We.isForwardRef=le,We.isFragment=se,We.isLazy=fe,We.isMemo=ne,We.isPortal=ce,We.isProfiler=ue,We.isStrictMode=he,We.isSuspense=ge,We.isValidElementType=M,We.typeOf=k}()),We}process.env.NODE_ENV==="production"?hO():gO();function Lp(e,r){return e===r?e!==0||r!==0||1/e===1/r:e!==e&&r!==r}function sg(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 ig(){var e=pt.useContext(Nr);if(process.env.NODE_ENV!=="production"&&!e)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return e}function ug(e){e===void 0&&(e=Nr);var r=e===Nr?ig:function(){return pt.useContext(e)};return function(){var a=r(),s=a.store;return s}}var vO=ug();function yO(e){e===void 0&&(e=Nr);var r=e===Nr?vO:ug(e);return function(){var a=r();return a.dispatch}}var mO=yO(),bO=function(r,t){return r===t};function _O(e,r,t,a){var s=pt.useReducer(function(T){return T+1},0),i=s[1],c=pt.useMemo(function(){return rg(t,a)},[t,a]),l=pt.useRef(),d=pt.useRef(),p=pt.useRef(),g=pt.useRef(),b=t.getState(),_;try{if(e!==d.current||b!==p.current||l.current){var S=e(b);g.current===void 0||!r(S,g.current)?_=S:_=g.current}else _=g.current}catch(T){throw l.current&&(T.message+=`
|
|
87
87
|
The error may be correlated with this previous error:
|
|
88
88
|
`+l.current.stack+`
|
|
89
89
|
|
|
90
|
-
`),T}return nc(function(){d.current=e,p.current=b,g.current=_,l.current=void 0}),nc(function(){function T(){try{var x=t.getState();if(x===p.current)return;var D=d.current(x);if(r(D,g.current))return;g.current=D,p.current=x}catch(P){l.current=P}i()}return c.onStateChange=T,c.trySubscribe(),T(),function(){return c.tryUnsubscribe()}},[t,c]),_}function mO(e){e===void 0&&(e=Nr);var r=e===Nr?og:function(){return pt.useContext(e)};return function(a,s){if(s===void 0&&(s=vO),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=yO(a,s,c,l);return pt.useDebugValue(d),d}}var bO=mO();nO(zS.unstable_batchedUpdates);const _O=()=>gO(),kr=bO,Ic=U(e=>e,e=>e.catalog.state==="loaded"?e.catalog.model:null),EO=U(e=>e,({catalog:e})=>e.state),ig=U(Ic,e=>e?e.dataClasses:[]),SO=U(ig,e=>Object.values(e).filter(({virtual:r})=>r)),wO=U(Ic,e=>e?e.methods:[]),ug=e=>U(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[]}}),TO=e=>kr(ug(e),ag),CO=(e,r)=>U(ug(e),t=>t.find(a=>`${a.applyTo}.${a.name}`===r)),xO=(e,r,t)=>kr(CO(e,`${t}.${r}`),ag),cg=U(e=>e,e=>e),RO=e=>U(jr,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]}))}),lg=e=>U(jr,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)||[]}),OO=(e,r,t)=>U(cg,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}}),fg=U(e=>e,e=>{var r;return((r=e.sharedDatasources)==null?void 0:r.sources)||[]}),AO=(e,r,t,a)=>U(lg(e),fg,(s,i)=>{const c=We.flatten(We.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}),PO=U(e=>e.debugger,e=>e.meta),Tn=U(e=>e.debugger,e=>e.list),Dt=U(e=>e.debugger,e=>e.sessions),DO=U(Dt,e=>e.length),Sn=(e,r,t,a)=>e.find(s=>s.filePath===r&&s.methodName===t&&(!a||s.className===a)),ot=(e,r)=>e.find(t=>t.threadId===r),dg=(e,r)=>e.find(t=>t.tabPath===r),IO=(e,r)=>U(Tn,t=>{var a;return((a=Sn(t,e,r))==null?void 0:a.breakpoints.saved.locations)||[]}),FO=(e,r)=>U(Tn,t=>{var a;return((a=Sn(t,e,r))==null?void 0:a.breakpoints.draft.locations)||[]}),$O=e=>U(Tn,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)),MO=e=>U(Tn,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)),LO=e=>U(Dt,r=>{const t=ot(r,e);return t!=null&&t.stopped?t.highlightedLines:null}),NO=e=>U(Dt,r=>{const t=ot(r,e);return t!=null&&t.stopped?t.activeLine:null}),kO=e=>U(Dt,r=>{var t;return((t=ot(r,e))==null?void 0:t.expressions)||[]}),jO=e=>U(Dt,r=>{var t;return((t=ot(r,e))==null?void 0:t.stopped)||!1}),BO=(e,r)=>U(Tn,t=>{var a;return(a=Sn(t,e,r))==null?void 0:a.source}),WO=e=>U(Dt,r=>{var t;return((t=dg(r,e))==null?void 0:t.threadId)||-1}),UO=e=>U(Dt,r=>{var t,a;return(a=(t=ot(r,e))==null?void 0:t.currentStackFrame)==null?void 0:a.source}),HO=e=>U(Dt,r=>{var t;return(t=ot(r,e))==null?void 0:t.currentStackFrame}),qO=U(Dt,e=>e.map(({channelId:r,threadId:t})=>({id:r,threadId:t}))),GO=e=>U(Dt,r=>{var t;return((t=ot(r,e))==null?void 0:t.stackFrames)||[]}),YO=e=>U(Dt,r=>{var t,a;return((a=(t=ot(r,e))==null?void 0:t.variables)==null?void 0:a.callchain)||[]}),zO=e=>U(Dt,r=>{var t,a;return((a=(t=ot(r,e))==null?void 0:t.variables)==null?void 0:a.expressions)||[]}),VO=(e,r="saved")=>U(Tn,t=>{const a=t.find(s=>s.filePath===e);return(a==null?void 0:a.breakpoints[r].offset)||0}),KO=(e,r,t,a)=>U(Dt,s=>{var p;const i=((p=ot(s,e))==null?void 0:p.exceptions)||[],c=r===m.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}))}),jr=U(e=>e.root,e=>e),ra=U(jr,e=>e.tabs),JO=U(jr,e=>e.activeTab),XO=U(jr,e=>e.recent.filter(({type:r})=>r!==m.FileFolderType.DEBUGGER)),pg=U(jr,({tabs:e,activeTab:r})=>e.find(({path:t})=>t===r)),ZO=U(jr,({tabs:e})=>e.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null)),QO=U(ra,e=>e.filter(({type:r,flags:t})=>r===m.FileFolderType.WEBFORM&&t.enabled===!1).map(({path:r})=>r)),eA=U(ra,e=>e.length>0),Cn=e=>U(jr,r=>r.tabs.find(({path:t})=>t===e)),hg=(e,r="")=>U(Cn(e),t=>!t||!t.content||typeof t.content=="string"?t==null?void 0:t.content:We.get(t.content,r)),tA=e=>U(Cn(e),r=>r==null?void 0:r.extra),rA=(e,r=t=>t)=>U(hg(e,"components"),t=>r(t||{})),Fc=U(ra,e=>e.filter(r=>r.flags.touched)),nA=U(Fc,e=>e.length),aA=U(Dt,e=>e.map(({threadId:r,currentStackFrame:{source:t},tabPath:a})=>({name:Rh(r,t),path:a,type:m.FileFolderType.DEBUGGER,content:t==null?void 0:t.content,flags:{},extra:{source:t}}))),oA=U(e=>e,e=>e.explorer||[]),gg=U(e=>e,e=>e.explorer.find(r=>r.path===m.FolderRootPath.WEBFORMS)),vg=U(e=>e,e=>e.explorer.find(r=>r.path===m.FolderRootPath.METHODS)),yg=U(e=>e,e=>e.explorer.find(r=>r.path===m.FolderRootPath.CLASSES)),sA=U(vg,e=>(e==null?void 0:e.children)||[]),iA=U(gg,e=>(e==null?void 0:e.children)||[]),uA=U(yg,e=>(e==null?void 0:e.children)||[]),cA=U(e=>e.modals,e=>e.list),lA=U(e=>e.roles,e=>Bs(e)),fA=U(e=>e.roles,({roles:e})=>e),dA=U(e=>e.roles,({privileges:e})=>e),pA=U(e=>e.roles,({privileges:e})=>Object.values(e).find(({privilege:r})=>r==="guest")),hA=U(e=>e.roles,({flags:e})=>e),gA=U(e=>e.roles,({selectedTab:e})=>e),vA=U(e=>e.roles,({forceLogin:e})=>e),yA=U(e=>e.roles,({date:e})=>e),Wa=U(e=>e.settings,e=>e.session),mA=(...e)=>U(Wa,r=>e.length>0?We.pick(r,e):r),bA=e=>U(Wa,r=>r[e]),_A=e=>U(Wa,r=>!!r[`features.experimental.${e}`]),EA=U(e=>e.settings,e=>e.project),SA=U(e=>e.settings,e=>e),$c=U(e=>e.settings,e=>e.server),wA=U($c,e=>e.remoteDebuggerMode),TA=U($c,e=>e.qodly),CA=U(Wa,e=>e["monaco.zoom"]),mg=["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"],bg=mg.map(e=>({id:Ec(),content:"",name:e,parentId:null,scope:m.EWebFormStyleClassScope.THEME})),Mc=e=>U(Cn(e),r=>{var t,a;return((a=(t=r==null?void 0:r.content)==null?void 0:t.metadata)==null?void 0:a.styles)||[]}),xA=(e,r)=>U(Mc(e),t=>r.map(a=>{switch(!0){case a===m.EWebFormStyleClassScope.LOCAL:return t.map(s=>({...s,scope:m.EWebFormStyleClassScope.LOCAL}));case a===m.EWebFormStyleClassScope.THEME:return bg;default:return[]}}).flat()),RA=e=>U(Mc(e),r=>[...r.map(t=>({...t,scope:m.EWebFormStyleClassScope.LOCAL})),...bg]),OA=U(e=>e,e=>{var r;return[...(((r=e.sharedCSS)==null?void 0:r.styles)||[]).map(t=>({...t,scope:m.EWebFormStyleClassScope.SHARED}))]}),AA=e=>U(Cn(e),r=>r==null?void 0:r.flags),PA=e=>U(Cn(e),r=>r==null?void 0:r.history),DA=U(pg,e=>{const r=e!=null&&e.history?e.history.active>0:!1,t=e!=null&&e.history?e.history.active<e.history.stack.length-1:!1;return{canUndo:r,canRedo:t}}),Ua=U(e=>e.webforms,e=>e),_g=U(Ua,e=>(e==null?void 0:e.components)||[]),$s=U(Ua,e=>e.inspector),IA=U($s,e=>e.css),FA=U($s,e=>e.datasource),Eg=U(Ua,e=>e.templates||{data:[]}),$A=U(Eg,e=>e.data||[]),MA=e=>U(_g,r=>r.find(t=>t.id===e)),LA=e=>U($s,r=>r[e]),NA=U(Ua,e=>e.datasources.theme),kA=U(e=>e.catalog,e=>e.sharedDatasources,e=>e.sharedCSS,(e,r,t)=>[e.state,r.state,t.state].every(a=>["loaded","error"].includes(a))),Lc={label:"Base",id:"root"},jA=e=>U(Cn(e),r=>{var t,a;return((a=(t=r==null?void 0:r.content)==null?void 0:t.metadata)==null?void 0:a.states)||[Lc]}),BA=U(e=>e,e=>{var r;return((r=e.sharedConditions)==null?void 0:r.conditions)||[]});var Nc=(e=>(e.SHOW_AFTER_TIMEOUT="show_after_timeout",e.HIDE_AFTER_TIMEOUT="hide_after_timeout",e))(Nc||{}),kc=(e=>(e.NONE="none",e.SAVE_ALL_AND_PROCEED="saved_all_and_proceed",e.PROCEED="proceed",e))(kc||{}),jc=(e=>(e.AIRY="airy",e.COMPACT="neutral",e))(jc||{}),Go,WA=new Uint8Array(16);function Sg(){if(!Go&&(Go=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Go))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Go(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 Ms(e){return typeof e=="string"&&UA.test(e)}var yt=[];for(var Pu=0;Pu<256;++Pu)yt.push((Pu+256).toString(16).substr(1));function Ls(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(yt[e[r+0]]+yt[e[r+1]]+yt[e[r+2]]+yt[e[r+3]]+"-"+yt[e[r+4]]+yt[e[r+5]]+"-"+yt[e[r+6]]+yt[e[r+7]]+"-"+yt[e[r+8]]+yt[e[r+9]]+"-"+yt[e[r+10]]+yt[e[r+11]]+yt[e[r+12]]+yt[e[r+13]]+yt[e[r+14]]+yt[e[r+15]]).toLowerCase();if(!Ms(t))throw TypeError("Stringified UUID is invalid");return t}var Mp,Du,Iu=0,Fu=0;function HA(e,r,t){var a=r&&t||0,s=r||new Array(16);e=e||{};var i=e.node||Mp,c=e.clockseq!==void 0?e.clockseq:Du;if(i==null||c==null){var l=e.random||(e.rng||Sg)();i==null&&(i=Mp=[l[0]|1,l[1],l[2],l[3],l[4],l[5]]),c==null&&(c=Du=(l[6]<<8|l[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),p=e.nsecs!==void 0?e.nsecs:Fu+1,g=d-Iu+(p-Fu)/1e4;if(g<0&&e.clockseq===void 0&&(c=c+1&16383),(g<0||d>Iu)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Iu=d,Fu=p,Du=c,d+=122192928e5;var b=((d&268435455)*1e4+p)%4294967296;s[a++]=b>>>24&255,s[a++]=b>>>16&255,s[a++]=b>>>8&255,s[a++]=b&255;var _=d/4294967296*1e4&268435455;s[a++]=_>>>8&255,s[a++]=_&255,s[a++]=_>>>24&15|16,s[a++]=_>>>16&255,s[a++]=c>>>8|128,s[a++]=c&255;for(var E=0;E<6;++E)s[a+E]=i[E];return r||Ls(s)}function wg(e){if(!Ms(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",YA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Tg(e,r,t){function a(s,i,c,l){if(typeof s=="string"&&(s=qA(s)),typeof i=="string"&&(i=wg(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 Ls(d)}try{a.name=e}catch{}return a.DNS=GA,a.URL=YA,a}function zA(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=Qr(t,l),a=Qr(a,d),s=Qr(s,p),i=Qr(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 Qr(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 Ns(e,r,t,a,s,i){return Qr(XA(Qr(Qr(r,e),Qr(a,i)),s),t)}function Et(e,r,t,a,s,i,c){return Ns(r&t|~r&a,e,r,s,i,c)}function St(e,r,t,a,s,i,c){return Ns(r&a|t&~a,e,r,s,i,c)}function wt(e,r,t,a,s,i,c){return Ns(r^t^a,e,r,s,i,c)}function Tt(e,r,t,a,s,i,c){return Ns(t^(r|~a),e,r,s,i,c)}var ZA=Tg("v3",48,zA);const QA=ZA;function eP(e,r,t){e=e||{};var a=e.random||(e.rng||Sg)();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 Ls(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 $u(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 b=0;b<c;++b){for(var _=new Uint32Array(80),E=0;E<16;++E)_[E]=l[b][E];for(var T=16;T<80;++T)_[T]=$u(_[T-3]^_[T-8]^_[T-14]^_[T-16],1);for(var x=t[0],D=t[1],P=t[2],j=t[3],M=t[4],k=0;k<80;++k){var O=Math.floor(k/20),z=$u(x,5)+tP(O,D,P,j)+M+r[O]+_[k]>>>0;M=j,j=P,P=$u(D,30)>>>0,D=x,x=z}t[0]=t[0]+x>>>0,t[1]=t[1]+D>>>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=Tg("v5",80,rP);const aP=nP,oP="00000000-0000-0000-0000-000000000000";function sP(e){if(!Ms(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const iP=Object.freeze(Object.defineProperty({__proto__:null,NIL:oP,parse:wg,stringify:Ls,v1:HA,v3:QA,v4:eP,v5:aP,validate:Ms,version:sP},Symbol.toStringTag,{value:"Module"})),uP=Zw(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 Ha(e,r){var t=new lP(e,r);return function(a){return t.convert(a)}}Ha.BIN="01";Ha.OCT="01234567";Ha.DEC="0123456789";Ha.HEX="0123456789abcdef";var fP=Ha;const{v4:Mu}=uP,Yo=fP,Lu="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",dP="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",pP={consistentLength:!0};let Nu;const Lp=(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 vs=(()=>{const e=(r,t)=>{const a=r||Lu,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=Yo(Yo.HEX,a),d=Yo(a,Yo.HEX),p=()=>Lp(Mu(),l,c),g={new:p,generate:p,uuid:Mu,fromUUID:b=>Lp(b,l,c),toUUID:b=>hP(b,d),alphabet:a,maxLength:i};return Object.freeze(g),g};return e.constants={flickrBase58:Lu,cookieBase90:dP},e.uuid=Mu,e.generate=()=>(Nu||(Nu=e(Lu).generate),Nu()),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],ys="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 nr(e,...r){return Array.from(new Set([...e,...r]))}function xg(e){const r={},t=new Map;e.forEach(d=>{const p=d.id||vs.generate();r[p]={...d,id:p,parents:[],includes:nr(d.includes||[]),resources:[]},t.set(d.privilege,p)}),Object.entries(r).forEach(([d,p])=>{const g=p.includes.map(b=>{const _=t.get(b);return _?(r[_].parents=nr(r[_].parents,_),_):""}).filter(Boolean);r[d]={...p,includes:g}});const a=Rg(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===ys))return r;const l=vs.generate();return{[l]:{id:l,privilege:ys,includes:[],parents:[],resources:[]},...r}}function Rg(e){return Object.values(e).sort((r,t)=>r.parents.length-t.parents.length)}function ks(e,r){const t=r[e];let a=[];return t&&t.parents.forEach(s=>{a=nr(a,...ks(s,r),s)}),a}function ms(e,r){const t=r[e];let a=[];return t&&t.includes.forEach(s=>{a=nr(a,...ms(s,r),s)}),a}function yP(e,r){const t=r[e];if(!t)return[];const a=[e,...ks(e,r),...t.includes];return Object.keys(r).filter(s=>!a.includes(s))}function mP(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:nr(a.includes,r)},[r]:{...t[r],parents:nr(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 Og(e,r){m.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=vs.generate();return{[t]:{id:t,privilege:e,includes:[],parents:[],resources:[]},...r}}function EP(e,r,t,a,s){let i=Og(e,s);const c=Object.entries(i).find(([,l])=>l.privilege===e);return c?(i=Ig(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=>Br(t,r))}function Br(e,r){return r[e]?r[e]:null}function Ag({applyTo:e,type:r,...t}){return Object.entries(t).reduce((a,[s,i])=>{const c=We.find(Wc,["key",s]);return!c||!c.canApplyTo.includes(r)||(typeof i=="string"?i.split(","):i).forEach(d=>{a[d]=nr(a[d]||[],s)}),a},{})}const oc=(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:oc(t,!0)};case Ae.DATACLASS:return{...a,info:oc(t)};default:return a}}),resource:e.applyTo,type:e.type}}function Pg(e,r){const t=Dg(r),a={};return e.filter(({type:s})=>vP.includes(s)).forEach(s=>{const i=Ag(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=We.find(a[d].resources,{resource:s.applyTo,type:s.type});p||(p=Uc(s),a[d].resources.push(p)),p.permissions=p.permissions.map(b=>({...b,checked:b.checked||l.includes(b.name)}))})}),{...r,...a}}function Dg(e){return Object.values(e).reduce((r,t)=>({...r,[t.privilege]:t}),{})}function js(e){var t;const r=xg(e.privileges||[]);return{forceLogin:e==null?void 0:e.forceLogin,privileges:Pg(((t=e.permissions)==null?void 0:t.allowed)||[],r),roles:(e.roles||[]).map(({id:a=vs.generate(),role:s,privileges:i=[]})=>({id:a,role:s,privileges:nr(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 Bs(e){const r=Object.values(e.privileges).filter(({includes:a})=>a.length===0).map(({id:a})=>a),t=[...r,...r.map(a=>ks(a,e.privileges).reverse())].flat().filter((a,s,i)=>i.indexOf(a)===s).map(a=>e.privileges[a]);return{forceLogin:e.forceLogin,permissions:{allowed:Object.values(e.privileges).reduce((a,s)=>(s.resources.forEach(({permissions:i,resource:c,type:l})=>{let d=We.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!==ys).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((b,_)=>[...b,...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 b=l[g].filter(_=>d.includes(_)?!1:(d.push(_),!0));b.length>0&&p.unshift(nr(b))}return p}function c(l,d){const p=[];return l.reduce((g,b)=>(b.forEach(_=>{r[_][d==="parents"?"includes":"parents"].forEach(T=>{p.includes(T)&&g.push(d==="parents"?{source:_,target:T}:{source:T,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 CP(e,r,t){const a=Br(e,t);if(!a||We.find(a.resources,{resource:r.applyTo,type:r.type}))return t;const s={...a,resources:[...a.resources,Uc(r)]};return{...t,[e]:s}}function xP(e,r,t){const a=Br(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=Br(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 Ig(e,r,t,a,s){const i=Br(e,s);if(!i)return s;const l=We.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:oc(d.key,t===Ae.DATASTORE)}))}]};return{...s,[e]:l}}function OP(e,r,t,a){const s=Br(e,a);if(!s)return a;const c=We.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=Fg(e,r)||[],a=((d=Br(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:b}])=>(b.filter(({resource:_,type:E})=>E===Ae.METHOD&&c.includes(_)).forEach(({permissions:_,resource:E})=>{var x;((x=_.find(({name:D})=>D==="promote"))==null?void 0:x.checked)&&(p[E]=nr(p[E]||[],g))}),p),{})}function Fg(e,r){var c;const t=Br(e,r);if(!t)return[];const a=(c=Object.values(r).find(l=>l.privilege===ys))==null?void 0:c.id;return(a&&a!==e?nr(ms(e,r),a):ms(e,r)).reduce((l,d)=>(r[d].resources.forEach(g=>{if(g.permissions.filter(({checked:E})=>E).length===0)return;const _=We.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,T)=>{let{from:x=[]}=E;return g.permissions[T].checked&&!x.includes(d)&&(x=[...x,d]),{...E,from:x,checked:E.checked}})}),l),We.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(m.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:[]},Np=(e,r)=>e.list.filter(t=>t.id!==r),$g=Gt({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(m.byId(t));s&&Object.assign(s,{...a})},removeModal:(e,r)=>{const t=r.payload;e.list=Np(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=Np(e,t)}}}),{createModal:Mg,removeModal:Lg,closeModal:LP,editModal:NP}=$g.actions,ar=Q("modals/open",async(e,{dispatch:r})=>{const t=Mv(),{type:a=m.ModalType.ALERT}=e,s=Ec();switch(r(Mg({id:s,type:a,isOpen:!0,...e})),a){case m.ModalType.CONFIRM:return new Promise(i=>{const c=t.subscribe(()=>{var p;const{modals:l}=t.getState(),d=l.list.find(g=>g.id===s);if(d&&!d.isOpen){const g=d.closeReason===m.ModalCloseReason.CONFIRMED,b=We.entries((p=d.views)==null?void 0:p.toggles).reduce((_,E)=>({..._,[E[0]]:E[1].value}),{});r(Lg(s)),c(),i({confirmed:g,options:b})}})});default:return{}}}),Ng=()=>m.getFileContent({name:m.ROLES_TAB_PATH}),kg="Roles & Privileges",bs=Q("roles/fetchRoles",async(e,{dispatch:r,rejectWithValue:t})=>{var i;let a;try{a=await Ng()}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:m.ROLES_TAB_PATH,date:new Date().toISOString(),content:{permissions:{allowed:[]},privileges:[],roles:[]}}}const s={name:kg,type:m.FileFolderType.ROLES,date:a.date,view:{panel:{isOpen:!1,type:"",current:""}},path:m.ROLES_TAB_PATH,flags:{},extra:{editor:{key:"editors:roles"}},content:{}};return r(Pt(s)),{...a,content:js(a.content)}}),jg=Q("roles/fetchRolesChanges",async(e,{getState:r})=>{const{tabs:t}=r().root;if(t.find(s=>s.path===m.ROLES_TAB_PATH)){const{date:s}=r().roles;if(s&&await Hc(s))return{old:!0}}return{}}),Hc=async e=>{if(!e)return!1;try{const r=await Ng();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},sc=Q("roles/saveRoles",async(e,{getState:r,rejectWithValue:t,dispatch:a})=>{try{const{flags:s,date:i}=r().roles;if(s.old||await Hc(i)){const{confirmed:d}=await a(ar({title:kg,message:"New content has been found on the server. Are you sure you want to continue?",type:m.ModalType.CONFIRM,icon:"FdSave"})).unwrap();if(!d)return t({old:!0})}return await m.setFileContent({name:m.ROLES_TAB_PATH,content:Bs(e)})}catch{return t("Error while loading the roles")}}),Bg=Gt({name:"roles",initialState:()=>{const{roles:e}=Jn(),{roles:r={},privileges:t={},flags:a={touched:!1},date:s,selectedTab:i="roles"}=e||{};return{flags:a,roles:r,privileges:t,date:s,selectedTab:i}},reducers:{updatePrivileges:(e,r)=>{e.privileges=r.payload,e.flags.touched=!0},updateRoles:(e,r)=>{e.roles=r.payload,e.flags.touched=!0},updateRolesAndPrivileges:(e,r)=>{e.roles=r.payload.roles,e.privileges=r.payload.privileges},toggleTab:(e,r)=>{e.selectedTab=r.payload},toggleForceLogin:(e,r)=>{e.forceLogin!==r.payload&&(e.forceLogin=r.payload,e.flags.touched=!0)},setRolesContent(e,r){const{content:t,flags:a={},...s}=r.payload,i=js(t),c={...e.flags,...a};return{...e,...i,...s,flags:c}}},extraReducers(e){e.addCase(bs.fulfilled,(r,t)=>{const{content:a,date:s}=t.payload;r={...r,...a,date:s}}).addCase(bs.rejected,r=>({...r,roles:{},privileges:{},flags:{touched:!1},date:void 0})).addCase(sc.fulfilled,(r,t)=>({...r,flags:{...r.flags,confirmed:!0,touched:!1,old:!1},date:t.payload.date})).addCase(sc.rejected,(r,t)=>xh.isString(t.payload)?r:{...r,flags:{...r.flags,...t.payload}}).addCase(jg.fulfilled,(r,t)=>({...r,flags:{...r.flags,...t.payload}})).addCase(zn.fulfilled,(r,t)=>{!t.payload||t.payload.path!==m.ROLES_TAB_PATH||(r.flags.touched=!1,r.flags.old=!1)}).addCase(Jc.fulfilled,(r,t)=>{t.meta.arg!==m.ROLES_TAB_PATH||!t.payload||(r.flags.touched=!1,r.flags.old=!1)})}}),{updatePrivileges:Wg,updateRoles:Ug,setRolesContent:qc,toggleTab:kP,toggleForceLogin:jP,updateRolesAndPrivileges:Gc}=Bg.actions,BP=Bg.reducer,Yc=Q("settings/fetch",async()=>await m.getNodeInfo({verb:m.DesignerRequestVerb.GET_INFO,path:m.SETTINGS_TAB_PATH,content:!0,as:"json"})),Hg=Q("settings/app",m.getAppSettings),WP=mh(),kp={session:{"studio.tips":!0,"studio.notifications":!0,"studio.enablePreview":!1,"studio.tipsBaseUrl":"https://raw.githubusercontent.com/4d/Web-studio-TIPS/gh-build","webforms.tooltip.behavior":Nc.SHOW_AFTER_TIMEOUT,"webforms.tooltip.timeout":3e3,"webforms.renderer.showPopOver":!0,"webforms.renderer.showUnsavedPopOver":!0,"webforms.renderer.unsavedPopOverChoice":kc.NONE,"welcometour.active":!0,"webforms.properties.advanced-mode":!1,"monaco.zoom":0},project:{"webforms.renderer.indexPage":"","webforms.display-mode":"neutral"},server:{projectOpened:!1,remoteDebuggerMode:m.RemoteDebuggerMode.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:"",lsp:""},isRestActive:!0}},UP={...kp,session:{...kp.session,...WP},welcometour:{}},qg=Gt({name:"settings",initialState:UP,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(Hg.fulfilled,(r,t)=>{r.server=t.payload,r.server.qodly&&(r.project["webforms.display-mode"]="airy")})}}),{setSetting:ic,setSettings:Ws,setSettingsAsText:HP}=qg.actions,qP=qg.reducer,uc=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:uc(Re(a.children,r))}]:[...t,a],[]),lt=(e,r)=>e.reduce((t,a)=>t||(a.path===r?a:a.children?lt(a.children,r):null),null),GP=[{name:m.FolderRootPath.WEBFORMS,type:m.FileFolderType.FOLDER,children:[],path:m.FolderRootPath.WEBFORMS,error:null,flags:{expanded:!1,loading:!1,cached:!1},tipKey:"editors:webform:explorer:webforms",config:{},isRoot:!0},{name:m.FolderRootPath.METHODS,type:m.FileFolderType.FOLDER,children:[],path:m.FolderRootPath.METHODS,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:m.FolderRootPath.CLASSES,type:m.FileFolderType.FOLDER,children:[],path:m.FolderRootPath.CLASSES,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:m.FolderRootPath.SHARED,type:m.FileFolderType.FOLDER,children:[],path:m.FolderRootPath.SHARED,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:"Debugger",type:m.FileFolderType.FOLDER,children:[],path:"Debugger",error:null,flags:{expanded:!1,cached:!0},config:{},isRoot:!0},{name:"Roles And Privileges",type:m.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:m.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:m.FileFolderType.FILE,ext:"json",path:"qodlyApp",error:null,flags:{},config:{editor:{key:"editors:settings"}},isRoot:!0}],Gg=Gt({name:"explorer",initialState:GP,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=lt(e,r.payload.parentPath);return t?Re(e,{...t,children:r.payload.children}):e}},extraReducers:e=>{e.addCase(Yn.pending,(r,t)=>{const{file:a,newname:s}=t.meta.arg,i=lt(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":m.lspSubject.next({action:m.LspActions.WILL_RENAME,payload:{oldPath:l,newPath:d}});break}return Re(r,{...i,flags:{...i.flags,loading:!0}})}),e.addCase(Yn.fulfilled,(r,t)=>{const{meta:{arg:{file:a}},payload:s}=t,i=lt(r,a.path);if(!i)return r;switch(s.old.ext){case"4dm":case"4qs":m.lspSubject.next({action:m.LspActions.DID_RENAME,payload:{oldPath:s.old.path,newPath:s.new.path}});break}return Re(r,{...i,flags:{...i.flags,loading:!1}})}),e.addCase(Yn.rejected,(r,t)=>{const{file:a}=t.meta.arg,s=lt(r,a.path);return s?Re(r,{...s,flags:{...s.flags,loading:!1}}):r}),e.addCase(_r.pending,(r,t)=>{const a=t.meta.arg,s=lt(r,a);return s?Re(r,{...s,flags:{...s.flags,loading:!0}}):r}),e.addCase(_r.fulfilled,(r,t)=>{const a=t.meta.arg,s=lt(r,a);return s?Re(r,{...s,children:uc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!0},error:null}):r}),e.addCase(_r.rejected,(r,t)=>{const a=t.meta.arg,s=lt(r,a);return s?Re(r,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!0}}):r}),e.addCase(Aa.pending,(r,t)=>{const a=t.meta.arg,s=lt(r,a);return s?Re(r,{...s,flags:{...s.flags,loading:!0}}):r}),e.addCase(Aa.fulfilled,(r,t)=>{const a=t.meta.arg,s=lt(r,a);return s?Re(r,{...s,children:uc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!1},error:null}):r}),e.addCase(Aa.rejected,(r,t)=>{const a=t.meta.arg,s=lt(r,a);return s?Re(r,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!1}}):r}),e.addCase(Zo.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(Zo.fulfilled,(r,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg,c=m.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=pr(`${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(Zo.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(Qo.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(Qo.fulfilled,(r,t)=>{const{node:a}=t.payload,{node:{path:s,ext:i}}=t.meta.arg,{editor:c,supportedEditors:l}=pr(`${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(Qo.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(Da.pending,(r,t)=>{}),e.addCase(Da.fulfilled,(r,t)=>{var b;const{draggedNode:a,newLocation:s}=t.meta.arg,i=Uh(a.path),c=lt(r,i),l=lt(r,s.path),d=(b=c==null?void 0:c.children)==null?void 0:b.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(Da.rejected,(r,t)=>{m.toastSubject.next({message:"Error moving file",kind:"danger"})}),e.addCase(Gn.pending,(r,t)=>{var x;const{fileName:a,parentNode:s,path:i,type:c,qodly:l}=t.meta.arg,d=m.getFileExtentionFromType(c,l),p=`${i}/${a}${d?`.${d.toLowerCase()}`:""}`,{editor:g,supportedEditors:b}=pr(p);switch(c){case m.FileFolderType.CLASS:case m.FileFolderType.METHOD:m.lspSubject.next({action:m.LspActions.WILL_CREATE,payload:{filePath:p}});break}const _=(x=s.children)==null?void 0:x.filter(D=>D.path!==`${i}/${a}`),E=[{name:a,path:`${i}/${a}`,type:m.FileFolderType.FILE,error:null,flags:{loading:!0},config:{editor:g,supportedEditors:b},ext:d,date:new Date().toISOString()},..._],T=Re(r,{...s,children:E});return xh.merge(r,T)}),e.addCase(Gn.fulfilled,(r,t)=>{const{fileName:a,path:s,type:i,qodly:c}=t.meta.arg,l=m.getFileExtentionFromType(i,c),d=`${s}/${a}${l?`.${l.toLowerCase()}`:""}`,{editor:p,supportedEditors:g}=pr(d),b=Re(r,{name:a,path:`${s}/${a}`,type:m.FileFolderType.FILE,error:null,flags:{},config:{editor:p,supportedEditors:g},ext:l,date:new Date().toISOString()});switch(i){case m.FileFolderType.CLASS:case m.FileFolderType.METHOD:m.lspSubject.next({action:m.LspActions.DID_CREATE,payload:{filePath:d}});break}return r=b,r}),e.addCase(Gn.rejected,(r,t)=>{const{fileName:a,path:s,type:i}=t.meta.arg,c=m.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=pr(`${s}${c?`.${c.toLowerCase()}`:""}`);return r=Re(r,{name:a,path:`${s}/${a}`,type:m.FileFolderType.FILE,error:{message:"Failed creating file"},flags:{},config:{editor:l,supportedEditors:d},ext:c,date:new Date().toISOString()}),r}),e.addMatcher(sh(Pa),(r,t)=>{const a=lt(r,t.meta.arg.file.path.split(".")[0]);return a&&(r=Re(r,{...a,flags:{...a.flags,loading:!0}})),r}),e.addMatcher(uh(Pa),(r,t)=>{const a=lt(r,t.meta.arg.file.path.split(".")[0]);return a&&(r=Re(r,{...a,flags:{...a.flags,loading:!1}})),r}),e.addMatcher(ih(Pa),(r,t)=>{const a=lt(r,t.meta.arg.file.path.split(".")[0]);return a&&(r=Re(r,{...a,flags:{...a.flags,loading:!1}})),m.toastSubject.next({message:"Failed to open file, try again",kind:"danger"}),r})}}),{toggleExpandFolder:YP,expandFolder:zP,openAddFileInput:VP,addNewFile:Yg,refreshFile:KP,removeFile:cc,setFolderChildren:JP}=Gg.actions;function zg(e,r){switch(e){case m.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"]===jc.AIRY&&(t.components.ROOT.props.airyMode=!0),t;case m.FileFolderType.METHODS:return`//%attributes = {}
|
|
91
|
-
`;default:return""}}function
|
|
90
|
+
`),T}return oc(function(){d.current=e,p.current=b,g.current=_,l.current=void 0}),oc(function(){function T(){try{var x=t.getState();if(x===p.current)return;var D=d.current(x);if(r(D,g.current))return;g.current=D,p.current=x}catch(P){l.current=P}i()}return c.onStateChange=T,c.trySubscribe(),T(),function(){return c.tryUnsubscribe()}},[t,c]),_}function SO(e){e===void 0&&(e=Nr);var r=e===Nr?ig:function(){return pt.useContext(e)};return function(a,s){if(s===void 0&&(s=bO),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=_O(a,s,c,l);return pt.useDebugValue(d),d}}var EO=SO();sO(JE.unstable_batchedUpdates);const wO=()=>mO(),kr=EO,$c=U(e=>e,e=>e.catalog.state==="loaded"?e.catalog.model:null),TO=U(e=>e,({catalog:e})=>e.state),cg=U($c,e=>e?e.dataClasses:[]),CO=U(cg,e=>Object.values(e).filter(({virtual:r})=>r)),xO=U($c,e=>e?e.methods:[]),lg=e=>U(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[]}}),RO=e=>kr(lg(e),sg),OO=(e,r)=>U(lg(e),t=>t.find(a=>`${a.applyTo}.${a.name}`===r)),AO=(e,r,t)=>kr(OO(e,`${t}.${r}`),sg),fg=U(e=>e,e=>e),PO=e=>U(jr,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=>U(jr,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)||[]}),DO=(e,r,t)=>U(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=U(e=>e,e=>{var r;return((r=e.sharedDatasources)==null?void 0:r.sources)||[]}),IO=(e,r,t,a)=>U(dg(e),pg,(s,i)=>{const c=Le.flatten(Le.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}),FO=U(e=>e.debugger,e=>e.meta),Cn=U(e=>e.debugger,e=>e.list),Dt=U(e=>e.debugger,e=>e.sessions),$O=U(Dt,e=>e.length),wn=(e,r,t,a)=>e.find(s=>s.filePath===r&&s.methodName===t&&(!a||s.className===a)),ot=(e,r)=>e.find(t=>t.threadId===r),hg=(e,r)=>e.find(t=>t.tabPath===r),MO=(e,r)=>U(Cn,t=>{var a;return((a=wn(t,e,r))==null?void 0:a.breakpoints.saved.locations)||[]}),LO=(e,r)=>U(Cn,t=>{var a;return((a=wn(t,e,r))==null?void 0:a.breakpoints.draft.locations)||[]}),NO=e=>U(Cn,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)),kO=e=>U(Cn,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)),jO=e=>U(Dt,r=>{const t=ot(r,e);return t!=null&&t.stopped?t.highlightedLines:null}),BO=e=>U(Dt,r=>{const t=ot(r,e);return t!=null&&t.stopped?t.activeLine:null}),WO=e=>U(Dt,r=>{var t;return((t=ot(r,e))==null?void 0:t.expressions)||[]}),UO=e=>U(Dt,r=>{var t;return((t=ot(r,e))==null?void 0:t.stopped)||!1}),HO=(e,r)=>U(Cn,t=>{var a;return(a=wn(t,e,r))==null?void 0:a.source}),qO=e=>U(Dt,r=>{var t;return((t=hg(r,e))==null?void 0:t.threadId)||-1}),GO=e=>U(Dt,r=>{var t,a;return(a=(t=ot(r,e))==null?void 0:t.currentStackFrame)==null?void 0:a.source}),YO=e=>U(Dt,r=>{var t;return(t=ot(r,e))==null?void 0:t.currentStackFrame}),zO=U(Dt,e=>e.map(({channelId:r,threadId:t})=>({id:r,threadId:t}))),VO=e=>U(Dt,r=>{var t;return((t=ot(r,e))==null?void 0:t.stackFrames)||[]}),KO=e=>U(Dt,r=>{var t,a;return((a=(t=ot(r,e))==null?void 0:t.variables)==null?void 0:a.callchain)||[]}),JO=e=>U(Dt,r=>{var t,a;return((a=(t=ot(r,e))==null?void 0:t.variables)==null?void 0:a.expressions)||[]}),XO=(e,r="saved")=>U(Cn,t=>{const a=t.find(s=>s.filePath===e);return(a==null?void 0:a.breakpoints[r].offset)||0}),ZO=(e,r,t,a)=>U(Dt,s=>{var p;const i=((p=ot(s,e))==null?void 0:p.exceptions)||[],c=r===m.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}))}),jr=U(e=>e.root,e=>e),ra=U(jr,e=>e.tabs),QO=U(jr,e=>e.activeTab),eA=U(jr,e=>e.recent.filter(({type:r})=>r!==m.FileFolderType.DEBUGGER)),gg=U(jr,({tabs:e,activeTab:r})=>e.find(({path:t})=>t===r)),tA=U(jr,({tabs:e})=>e.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null)),rA=U(ra,e=>e.filter(({type:r,flags:t})=>r===m.FileFolderType.WEBFORM&&t.enabled===!1).map(({path:r})=>r)),nA=U(ra,e=>e.length>0),nn=e=>U(jr,r=>r.tabs.find(({path:t})=>t===e)),vg=(e,r="")=>U(nn(e),t=>!t||!t.content||typeof t.content=="string"?t==null?void 0:t.content:Le.get(t.content,r)),aA=e=>U(nn(e),r=>r==null?void 0:r.extra),oA=(e,r=t=>t)=>U(vg(e,"components"),t=>r(t||{})),Mc=U(ra,e=>e.filter(r=>r.flags.touched)),sA=U(Mc,e=>e.length),iA=U(Dt,e=>e.map(({threadId:r,currentStackFrame:{source:t},tabPath:a})=>({name:Ah(r,t),path:a,type:m.FileFolderType.DEBUGGER,content:t==null?void 0:t.content,flags:{},extra:{source:t}}))),uA=U(e=>e,e=>e.explorer||[]),yg=U(e=>e,e=>e.explorer.find(r=>r.path===m.FolderRootPath.WEBFORMS)),mg=U(e=>e,e=>e.explorer.find(r=>r.path===m.FolderRootPath.METHODS)),bg=U(e=>e,e=>e.explorer.find(r=>r.path===m.FolderRootPath.CLASSES)),cA=U(mg,e=>(e==null?void 0:e.children)||[]),lA=U(yg,e=>(e==null?void 0:e.children)||[]),fA=U(bg,e=>(e==null?void 0:e.children)||[]),dA=U(e=>e.modals,e=>e.list),pA=U(e=>e.roles,e=>Bs(e)),hA=U(e=>e.roles,({roles:e})=>e),gA=U(e=>e.roles,({privileges:e})=>e),vA=U(e=>e.roles,({privileges:e})=>Object.values(e).find(({privilege:r})=>r==="guest")),yA=U(e=>e.roles,({flags:e})=>e),mA=U(e=>e.roles,({selectedTab:e})=>e),bA=U(e=>e.roles,({forceLogin:e})=>e),_A=U(e=>e.roles,({date:e})=>e),Ua=U(e=>e.settings,e=>e.session),SA=(...e)=>U(Ua,r=>e.length>0?Le.pick(r,e):r),EA=e=>U(Ua,r=>r[e]),wA=e=>U(Ua,r=>!!r[`features.experimental.${e}`]),TA=U(e=>e.settings,e=>e.project),CA=U(e=>e.settings,e=>e),Lc=U(e=>e.settings,e=>e.server),xA=U(Lc,e=>e.remoteDebuggerMode),RA=U(Lc,e=>e.qodly),OA=U(Ua,e=>e["monaco.zoom"]),_g=["rounded-full","rounded-lg","border-gray-400","border-2","bg-red-500","bg-blue-500","bg-indigo-500","bg-transparent","bg-primary-dark","bg-green-500","bg-yellow-400","text-gray-500","text-4xl","text-white","px-4","py-2","primary","info","secondary","success","warning","danger","w-10","w-20","w-40","w-60","w-80","mb-2","mb-3","shadow","shadow-lg","shadow-xl","shadow-2xl"],Sg=_g.map(e=>({id:wc(),content:"",name:e,parentId:null,scope:m.EWebFormStyleClassScope.THEME})),Nc=e=>U(nn(e),r=>{var t,a;return((a=(t=r==null?void 0:r.content)==null?void 0:t.metadata)==null?void 0:a.styles)||[]}),AA=(e,r)=>U(Nc(e),t=>r.map(a=>{switch(!0){case a===m.EWebFormStyleClassScope.LOCAL:return t.map(s=>({...s,scope:m.EWebFormStyleClassScope.LOCAL}));case a===m.EWebFormStyleClassScope.THEME:return Sg;default:return[]}}).flat()),PA=e=>U(Nc(e),r=>[...r.map(t=>({...t,scope:m.EWebFormStyleClassScope.LOCAL})),...Sg]),DA=U(e=>e,e=>{var r;return[...(((r=e.sharedCSS)==null?void 0:r.styles)||[]).map(t=>({...t,scope:m.EWebFormStyleClassScope.SHARED}))]}),IA=e=>U(nn(e),r=>r==null?void 0:r.flags),FA=e=>U(nn(e),r=>r==null?void 0:r.history),$A=U(gg,e=>{const r=e!=null&&e.history?e.history.active>0:!1,t=e!=null&&e.history?e.history.active<e.history.stack.length-1:!1;return{canUndo:r,canRedo:t}}),Ha=U(e=>e.webforms,e=>e),Eg=U(Ha,e=>(e==null?void 0:e.components)||[]),$s=U(Ha,e=>e.inspector),MA=U($s,e=>e.css),LA=U($s,e=>e.datasource),wg=U(Ha,e=>e.templates||{data:[]}),NA=U(wg,e=>e.data||[]),kA=e=>U(Eg,r=>r.find(t=>t.id===e)),jA=e=>U($s,r=>r[e]),BA=U(Ha,e=>e.datasources.theme),WA=U(e=>e.catalog,e=>e.sharedDatasources,e=>e.sharedCSS,(e,r,t)=>[e.state,r.state,t.state].every(a=>["loaded","error"].includes(a))),kc={label:"Base",id:"root"},UA=e=>U(nn(e),r=>{var t,a;return((a=(t=r==null?void 0:r.content)==null?void 0:t.metadata)==null?void 0:a.states)||[kc]}),HA=e=>U(nn(e),r=>{var t,a;return((a=(t=r==null?void 0:r.content)==null?void 0:t.metadata)==null?void 0:a.defaultStates)||[]}),qA=U(e=>e,e=>{var r;return((r=e.savedConditions)==null?void 0:r.conditions)||[]});var jc=(e=>(e.SHOW_AFTER_TIMEOUT="show_after_timeout",e.HIDE_AFTER_TIMEOUT="hide_after_timeout",e))(jc||{}),Bc=(e=>(e.NONE="none",e.SAVE_ALL_AND_PROCEED="saved_all_and_proceed",e.PROCEED="proceed",e))(Bc||{}),Wc=(e=>(e.AIRY="airy",e.COMPACT="neutral",e))(Wc||{}),Yo,GA=new Uint8Array(16);function Tg(){if(!Yo&&(Yo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Yo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Yo(GA)}const YA=/^(?:[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 Ms(e){return typeof e=="string"&&YA.test(e)}var yt=[];for(var Iu=0;Iu<256;++Iu)yt.push((Iu+256).toString(16).substr(1));function Ls(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(yt[e[r+0]]+yt[e[r+1]]+yt[e[r+2]]+yt[e[r+3]]+"-"+yt[e[r+4]]+yt[e[r+5]]+"-"+yt[e[r+6]]+yt[e[r+7]]+"-"+yt[e[r+8]]+yt[e[r+9]]+"-"+yt[e[r+10]]+yt[e[r+11]]+yt[e[r+12]]+yt[e[r+13]]+yt[e[r+14]]+yt[e[r+15]]).toLowerCase();if(!Ms(t))throw TypeError("Stringified UUID is invalid");return t}var Np,Fu,$u=0,Mu=0;function zA(e,r,t){var a=r&&t||0,s=r||new Array(16);e=e||{};var i=e.node||Np,c=e.clockseq!==void 0?e.clockseq:Fu;if(i==null||c==null){var l=e.random||(e.rng||Tg)();i==null&&(i=Np=[l[0]|1,l[1],l[2],l[3],l[4],l[5]]),c==null&&(c=Fu=(l[6]<<8|l[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),p=e.nsecs!==void 0?e.nsecs:Mu+1,g=d-$u+(p-Mu)/1e4;if(g<0&&e.clockseq===void 0&&(c=c+1&16383),(g<0||d>$u)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");$u=d,Mu=p,Fu=c,d+=122192928e5;var b=((d&268435455)*1e4+p)%4294967296;s[a++]=b>>>24&255,s[a++]=b>>>16&255,s[a++]=b>>>8&255,s[a++]=b&255;var _=d/4294967296*1e4&268435455;s[a++]=_>>>8&255,s[a++]=_&255,s[a++]=_>>>24&15|16,s[a++]=_>>>16&255,s[a++]=c>>>8|128,s[a++]=c&255;for(var S=0;S<6;++S)s[a+S]=i[S];return r||Ls(s)}function Cg(e){if(!Ms(e))throw TypeError("Invalid UUID");var r,t=new Uint8Array(16);return t[0]=(r=parseInt(e.slice(0,8),16))>>>24,t[1]=r>>>16&255,t[2]=r>>>8&255,t[3]=r&255,t[4]=(r=parseInt(e.slice(9,13),16))>>>8,t[5]=r&255,t[6]=(r=parseInt(e.slice(14,18),16))>>>8,t[7]=r&255,t[8]=(r=parseInt(e.slice(19,23),16))>>>8,t[9]=r&255,t[10]=(r=parseInt(e.slice(24,36),16))/1099511627776&255,t[11]=r/4294967296&255,t[12]=r>>>24&255,t[13]=r>>>16&255,t[14]=r>>>8&255,t[15]=r&255,t}function VA(e){e=unescape(encodeURIComponent(e));for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t));return r}var KA="6ba7b810-9dad-11d1-80b4-00c04fd430c8",JA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function xg(e,r,t){function a(s,i,c,l){if(typeof s=="string"&&(s=VA(s)),typeof i=="string"&&(i=Cg(i)),i.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var d=new Uint8Array(16+s.length);if(d.set(i),d.set(s,i.length),d=t(d),d[6]=d[6]&15|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 Ls(d)}try{a.name=e}catch{}return a.DNS=KA,a.URL=JA,a}function XA(e){if(typeof e=="string"){var r=unescape(encodeURIComponent(e));e=new Uint8Array(r.length);for(var t=0;t<r.length;++t)e[t]=r.charCodeAt(t)}return ZA(QA(eP(e),e.length*8))}function ZA(e){for(var r=[],t=e.length*32,a="0123456789abcdef",s=0;s<t;s+=8){var i=e[s>>5]>>>s%32&255,c=parseInt(a.charAt(i>>>4&15)+a.charAt(i&15),16);r.push(c)}return r}function Rg(e){return(e+64>>>9<<4)+14+1}function QA(e,r){e[r>>5]|=128<<r%32,e[Rg(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=St(t,a,s,i,e[c],7,-680876936),i=St(i,t,a,s,e[c+1],12,-389564586),s=St(s,i,t,a,e[c+2],17,606105819),a=St(a,s,i,t,e[c+3],22,-1044525330),t=St(t,a,s,i,e[c+4],7,-176418897),i=St(i,t,a,s,e[c+5],12,1200080426),s=St(s,i,t,a,e[c+6],17,-1473231341),a=St(a,s,i,t,e[c+7],22,-45705983),t=St(t,a,s,i,e[c+8],7,1770035416),i=St(i,t,a,s,e[c+9],12,-1958414417),s=St(s,i,t,a,e[c+10],17,-42063),a=St(a,s,i,t,e[c+11],22,-1990404162),t=St(t,a,s,i,e[c+12],7,1804603682),i=St(i,t,a,s,e[c+13],12,-40341101),s=St(s,i,t,a,e[c+14],17,-1502002290),a=St(a,s,i,t,e[c+15],22,1236535329),t=Et(t,a,s,i,e[c+1],5,-165796510),i=Et(i,t,a,s,e[c+6],9,-1069501632),s=Et(s,i,t,a,e[c+11],14,643717713),a=Et(a,s,i,t,e[c],20,-373897302),t=Et(t,a,s,i,e[c+5],5,-701558691),i=Et(i,t,a,s,e[c+10],9,38016083),s=Et(s,i,t,a,e[c+15],14,-660478335),a=Et(a,s,i,t,e[c+4],20,-405537848),t=Et(t,a,s,i,e[c+9],5,568446438),i=Et(i,t,a,s,e[c+14],9,-1019803690),s=Et(s,i,t,a,e[c+3],14,-187363961),a=Et(a,s,i,t,e[c+8],20,1163531501),t=Et(t,a,s,i,e[c+13],5,-1444681467),i=Et(i,t,a,s,e[c+2],9,-51403784),s=Et(s,i,t,a,e[c+7],14,1735328473),a=Et(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=Qr(t,l),a=Qr(a,d),s=Qr(s,p),i=Qr(i,g)}return[t,a,s,i]}function eP(e){if(e.length===0)return[];for(var r=e.length*8,t=new Uint32Array(Rg(r)),a=0;a<r;a+=8)t[a>>5]|=(e[a/8]&255)<<a%32;return t}function Qr(e,r){var t=(e&65535)+(r&65535),a=(e>>16)+(r>>16)+(t>>16);return a<<16|t&65535}function tP(e,r){return e<<r|e>>>32-r}function Ns(e,r,t,a,s,i){return Qr(tP(Qr(Qr(r,e),Qr(a,i)),s),t)}function St(e,r,t,a,s,i,c){return Ns(r&t|~r&a,e,r,s,i,c)}function Et(e,r,t,a,s,i,c){return Ns(r&a|t&~a,e,r,s,i,c)}function wt(e,r,t,a,s,i,c){return Ns(r^t^a,e,r,s,i,c)}function Tt(e,r,t,a,s,i,c){return Ns(t^(r|~a),e,r,s,i,c)}var rP=xg("v3",48,XA);const nP=rP;function aP(e,r,t){e=e||{};var a=e.random||(e.rng||Tg)();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 Ls(a)}function oP(e,r,t,a){switch(e){case 0:return r&t^~r&a;case 1:return r^t^a;case 2:return r&t^r&a^t&a;case 3:return r^t^a}}function Lu(e,r){return e<<r|e>>>32-r}function sP(e){var r=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var a=unescape(encodeURIComponent(e));e=[];for(var s=0;s<a.length;++s)e.push(a.charCodeAt(s))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,c=Math.ceil(i/16),l=new Array(c),d=0;d<c;++d){for(var p=new Uint32Array(16),g=0;g<16;++g)p[g]=e[d*64+g*4]<<24|e[d*64+g*4+1]<<16|e[d*64+g*4+2]<<8|e[d*64+g*4+3];l[d]=p}l[c-1][14]=(e.length-1)*8/Math.pow(2,32),l[c-1][14]=Math.floor(l[c-1][14]),l[c-1][15]=(e.length-1)*8&4294967295;for(var b=0;b<c;++b){for(var _=new Uint32Array(80),S=0;S<16;++S)_[S]=l[b][S];for(var T=16;T<80;++T)_[T]=Lu(_[T-3]^_[T-8]^_[T-14]^_[T-16],1);for(var x=t[0],D=t[1],P=t[2],j=t[3],M=t[4],k=0;k<80;++k){var O=Math.floor(k/20),z=Lu(x,5)+oP(O,D,P,j)+M+r[O]+_[k]>>>0;M=j,j=P,P=Lu(D,30)>>>0,D=x,x=z}t[0]=t[0]+x>>>0,t[1]=t[1]+D>>>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 iP=xg("v5",80,sP);const uP=iP,cP="00000000-0000-0000-0000-000000000000";function lP(e){if(!Ms(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const fP=Object.freeze(Object.defineProperty({__proto__:null,NIL:cP,parse:Cg,stringify:Ls,v1:zA,v3:nP,v4:aP,v5:uP,validate:Ms,version:lP},Symbol.toStringTag,{value:"Module"})),dP=tT(fP);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 pP=Uc,hP=pP;function qa(e,r){var t=new hP(e,r);return function(a){return t.convert(a)}}qa.BIN="01";qa.OCT="01234567";qa.DEC="0123456789";qa.HEX="0123456789abcdef";var gP=qa;const{v4:Nu}=dP,zo=gP,ku="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",vP="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",yP={consistentLength:!0};let ju;const kp=(e,r,t)=>{const a=r(e.toLowerCase().replace(/-/g,""));return!t||!t.consistentLength?a:a.padStart(t.shortIdLength,t.paddingChar)},mP=(e,r)=>{const a=r(e).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[a[1],a[2],a[3],a[4],a[5]].join("-")},bP=e=>Math.ceil(Math.log(2**128)/Math.log(e));var Na=(()=>{const e=(r,t)=>{const a=r||ku,s={...yP,...t};if([...new Set(Array.from(a))].length!==a.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const i=bP(a.length),c={shortIdLength:i,consistentLength:s.consistentLength,paddingChar:a[0]},l=zo(zo.HEX,a),d=zo(a,zo.HEX),p=()=>kp(Nu(),l,c),g={new:p,generate:p,uuid:Nu,fromUUID:b=>kp(b,l,c),toUUID:b=>mP(b,d),alphabet:a,maxLength:i};return Object.freeze(g),g};return e.constants={flickrBase58:ku,cookieBase90:vP},e.uuid=Nu,e.generate=()=>(ju||(ju=e(ku).generate),ju()),e})(),Ae=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e))(Ae||{});const _P=[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE,Ae.METHOD],ys="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 nr(e,...r){return Array.from(new Set([...e,...r]))}function Og(e){const r={},t=new Map;e.forEach(d=>{const p=d.id||Na.generate();r[p]={...d,id:p,parents:[],includes:nr(d.includes||[]),resources:[]},t.set(d.privilege,p)}),Object.entries(r).forEach(([d,p])=>{const g=p.includes.map(b=>{const _=t.get(b);return _?(r[_].parents=nr(r[_].parents,_),_):""}).filter(Boolean);r[d]={...p,includes:g}});const a=Ag(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===ys))return r;const l=Na.generate();return{[l]:{id:l,privilege:ys,includes:[],parents:[],resources:[]},...r}}function Ag(e){return Object.values(e).sort((r,t)=>r.parents.length-t.parents.length)}function ks(e,r){const t=r[e];let a=[];return t&&t.parents.forEach(s=>{a=nr(a,...ks(s,r),s)}),a}function ms(e,r){const t=r[e];let a=[];return t&&t.includes.forEach(s=>{a=nr(a,...ms(s,r),s)}),a}function SP(e,r){const t=r[e];if(!t)return[];const a=[e,...ks(e,r),...t.includes];return Object.keys(r).filter(s=>!a.includes(s))}function EP(e,r){return r[e]?Object.keys(r).reduce((a,s)=>s===e?a:{...a,[s]:{...r[s],parents:r[s].parents.filter(i=>i!==e),includes:r[s].includes.filter(i=>i!==e)}},{}):r}function wP(e,r,t){const a=t[e],s=t[r];return!a||!s?t:{...t,[e]:{...t[e],includes:nr(a.includes,r)},[r]:{...t[r],parents:nr(s.parents,e)}}}function TP(e,r,t){const a=t[e],s=t[r];return!a||!s?t:{...t,[e]:{...t[e],includes:t[e].includes.filter(i=>i!==r)},[r]:{...t[r],parents:t[r].parents.filter(i=>i!==e)}}}function Pg(e,r){m.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=Na.generate();return{[t]:{id:t,privilege:e,includes:[],parents:[],resources:[]},...r}}function CP(e,r,t,a,s){let i=Pg(e,s);const c=Object.entries(i).find(([,l])=>l.privilege===e);return c?(i=$g(c[1].id,r,t,a,i),i):s}function xP(e,r,t){if(!e)throw new Error("Please enter a name");if(!t[r])throw new Error("Invalid privilege");return Object.entries(t).forEach(([,{privilege:a,id:s}])=>{if(e.toLowerCase()===a.toLowerCase()&&r!==s)throw new Error(`There's already a Privilege with the name ${e}`)}),{...t,[r]:{...t[r],privilege:e}}}function RP(e,r){return e.map(t=>Br(t,r))}function Br(e,r){return r[e]?r[e]:null}function Dg({applyTo:e,type:r,...t}){return Object.entries(t).reduce((a,[s,i])=>{const c=Le.find(Hc,["key",s]);return!c||!c.canApplyTo.includes(r)||(typeof i=="string"?i.split(","):i).forEach(d=>{a[d]=nr(a[d]||[],s)}),a},{})}const ic=(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 qc(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:ic(t,!0)};case Ae.DATACLASS:return{...a,info:ic(t)};default:return a}}),resource:e.applyTo,type:e.type}}function Ig(e,r){const t=Fg(r),a={};return e.filter(({type:s})=>_P.includes(s)).forEach(s=>{const i=Dg(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=Le.find(a[d].resources,{resource:s.applyTo,type:s.type});p||(p=qc(s),a[d].resources.push(p)),p.permissions=p.permissions.map(b=>({...b,checked:b.checked||l.includes(b.name)}))})}),{...r,...a}}function Fg(e){return Object.values(e).reduce((r,t)=>({...r,[t.privilege]:t}),{})}function js(e){var t;const r=Og(e.privileges||[]);return{forceLogin:e==null?void 0:e.forceLogin,privileges:Ig(((t=e.permissions)==null?void 0:t.allowed)||[],r),roles:(e.roles||[]).map(({id:a=Na.generate(),role:s,privileges:i=[]})=>({id:a,role:s,privileges:nr(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 Bs(e){const r=Object.values(e.privileges).filter(({includes:a})=>a.length===0).map(({id:a})=>a),t=[...r,...r.map(a=>ks(a,e.privileges).reverse())].flat().filter((a,s,i)=>i.indexOf(a)===s).map(a=>e.privileges[a]);return{forceLogin:e.forceLogin,permissions:{allowed:Object.values(e.privileges).reduce((a,s)=>(s.resources.forEach(({permissions:i,resource:c,type:l})=>{let d=Le.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!==ys).map(({id:a,includes:s,privilege:i})=>({id:a,privilege:i,includes:s.map(c=>e.privileges[c].privilege)})),roles:Object.values(e.roles).map(a=>({...a,privileges:a.privileges.map(s=>{var i;return(i=e.privileges[s])==null?void 0:i.privilege}).filter(Boolean)}))}}function OP(e,r){const t=r[e],a={children:[],links:[],parents:[],selected:e};if(!t)return a;function s(l,d,p=[]){const g=l.reduce((b,_)=>[...b,...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 b=l[g].filter(_=>d.includes(_)?!1:(d.push(_),!0));b.length>0&&p.unshift(nr(b))}return p}function c(l,d){const p=[];return l.reduce((g,b)=>(b.forEach(_=>{r[_][d==="parents"?"includes":"parents"].forEach(T=>{p.includes(T)&&g.push(d==="parents"?{source:_,target:T}:{source:T,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 AP(e,r,t){const a=Br(e,t);if(!a||Le.find(a.resources,{resource:r.applyTo,type:r.type}))return t;const s={...a,resources:[...a.resources,qc(r)]};return{...t,[e]:s}}function PP(e,r,t){const a=Br(e,t);if(!a)return t;const s={...a,resources:a.resources.filter(({resource:i,type:c})=>i!==r.applyTo||c!==r.type)};return{...t,[e]:s}}function DP(e,r){const t=Br(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 $g(e,r,t,a,s){const i=Br(e,s);if(!i)return s;const l=Le.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:ic(d.key,t===Ae.DATASTORE)}))}]};return{...s,[e]:l}}function IP(e,r,t,a){const s=Br(e,a);if(!s)return a;const c=Le.find(s.resources,{type:r.type,resource:r.resource})?{...s,resources:s.resources.map(l=>l.type===r.type&&l.resource===r.resource?{...l,permissions:r.permissions.map(d=>d.name===t.name?{...d,checked:!d.checked,from:[]}:d)}:l)}:{...s,resources:[...s.resources,{...r,permissions:r.permissions.map(l=>({...l,checked:t.name===l.name,from:[]}))}]};return{...a,[e]:c}}function FP(e,r){var d;const t=Mg(e,r)||[],a=((d=Br(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:b}])=>(b.filter(({resource:_,type:S})=>S===Ae.METHOD&&c.includes(_)).forEach(({permissions:_,resource:S})=>{var x;((x=_.find(({name:D})=>D==="promote"))==null?void 0:x.checked)&&(p[S]=nr(p[S]||[],g))}),p),{})}function Mg(e,r){var c;const t=Br(e,r);if(!t)return[];const a=(c=Object.values(r).find(l=>l.privilege===ys))==null?void 0:c.id;return(a&&a!==e?nr(ms(e,r),a):ms(e,r)).reduce((l,d)=>(r[d].resources.forEach(g=>{if(g.permissions.filter(({checked:S})=>S).length===0)return;const _=Le.find(l,{type:g.type,resource:g.resource});if(!_){l.push({...g,permissions:g.permissions.map(S=>({...S,from:S.checked?[d]:[],checked:!1}))});return}_.permissions=_.permissions.map((S,T)=>{let{from:x=[]}=S;return g.permissions[T].checked&&!x.includes(d)&&(x=[...x,d]),{...S,from:x,checked:S.checked}})}),l),Le.clone(t.resources.map(l=>({...l,permissions:l.permissions.map(({checked:d,...p})=>({...p,checked:!!d}))}))))}const $P=e=>e.reduce((r,t)=>({...r,[t.id]:{...t}}),{}),MP=(e,r)=>r[e]?Object.values(r).reduce((t,a)=>e===a.id||a.role===""?t:{...t,[a.id]:a},{}):r,LP=(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,NP=(e,r)=>{const t={id:e,role:"",privileges:[]};return{...r,[t.id]:t}},kP=(e,r)=>{if(m.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},{})},jP={list:[]},jp=(e,r)=>e.list.filter(t=>t.id!==r),Lg=Gt({name:"modals",initialState:jP,reducers:{createModal:(e,r)=>{e.list.push(r.payload)},editModal:(e,r)=>{const{id:t,...a}=r.payload,s=e.list.find(m.byId(t));s&&Object.assign(s,{...a})},removeModal:(e,r)=>{const t=r.payload;e.list=jp(e,t)},closeModal:(e,r)=>{const{id:t,reason:a}=r.payload;if(a){const s=e.list.find(i=>i.id===t);s&&(s.closeReason=a,s.isOpen=!1)}else e.list=jp(e,t)}}}),{createModal:Ng,removeModal:kg,closeModal:BP,editModal:WP}=Lg.actions,ar=Q("modals/open",async(e,{dispatch:r})=>{const t=kv(),{type:a=m.ModalType.ALERT}=e,s=wc();switch(r(Ng({id:s,type:a,isOpen:!0,...e})),a){case m.ModalType.CONFIRM:return new Promise(i=>{const c=t.subscribe(()=>{var p;const{modals:l}=t.getState(),d=l.list.find(g=>g.id===s);if(d&&!d.isOpen){const g=d.closeReason===m.ModalCloseReason.CONFIRMED,b=Le.entries((p=d.views)==null?void 0:p.toggles).reduce((_,S)=>({..._,[S[0]]:S[1].value}),{});r(kg(s)),c(),i({confirmed:g,options:b})}})});default:return{}}}),jg=()=>m.getFileContent({name:m.ROLES_TAB_PATH}),Bg="Roles & Privileges",bs=Q("roles/fetchRoles",async(e,{dispatch:r,rejectWithValue:t})=>{var i;let a;try{a=await jg()}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:m.ROLES_TAB_PATH,date:new Date().toISOString(),content:{permissions:{allowed:[]},privileges:[],roles:[]}}}const s={name:Bg,type:m.FileFolderType.ROLES,date:a.date,view:{panel:{isOpen:!1,type:"",current:""}},path:m.ROLES_TAB_PATH,flags:{},extra:{editor:{key:"editors:roles"}},content:{}};return r(Pt(s)),{...a,content:js(a.content)}}),Wg=Q("roles/fetchRolesChanges",async(e,{getState:r})=>{const{tabs:t}=r().root;if(t.find(s=>s.path===m.ROLES_TAB_PATH)){const{date:s}=r().roles;if(s&&await Gc(s))return{old:!0}}return{}}),Gc=async e=>{if(!e)return!1;try{const r=await jg();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},uc=Q("roles/saveRoles",async(e,{getState:r,rejectWithValue:t,dispatch:a})=>{try{const{flags:s,date:i}=r().roles;if(s.old||await Gc(i)){const{confirmed:d}=await a(ar({title:Bg,message:"New content has been found on the server. Are you sure you want to continue?",type:m.ModalType.CONFIRM,icon:"FdSave"})).unwrap();if(!d)return t({old:!0})}return await m.setFileContent({name:m.ROLES_TAB_PATH,content:Bs(e)})}catch{return t("Error while loading the roles")}}),Ug=Gt({name:"roles",initialState:()=>{const{roles:e}=Jn(),{roles:r={},privileges:t={},flags:a={touched:!1},date:s,selectedTab:i="roles"}=e||{};return{flags:a,roles:r,privileges:t,date:s,selectedTab:i}},reducers:{updatePrivileges:(e,r)=>{e.privileges=r.payload,e.flags.touched=!0},updateRoles:(e,r)=>{e.roles=r.payload,e.flags.touched=!0},updateRolesAndPrivileges:(e,r)=>{e.roles=r.payload.roles,e.privileges=r.payload.privileges},toggleTab:(e,r)=>{e.selectedTab=r.payload},toggleForceLogin:(e,r)=>{e.forceLogin!==r.payload&&(e.forceLogin=r.payload,e.flags.touched=!0)},setRolesContent(e,r){const{content:t,flags:a={},...s}=r.payload,i=js(t),c={...e.flags,...a};return{...e,...i,...s,flags:c}}},extraReducers(e){e.addCase(bs.fulfilled,(r,t)=>{const{content:a,date:s}=t.payload;r={...r,...a,date:s}}).addCase(bs.rejected,r=>({...r,roles:{},privileges:{},flags:{touched:!1},date:void 0})).addCase(uc.fulfilled,(r,t)=>({...r,flags:{...r.flags,confirmed:!0,touched:!1,old:!1},date:t.payload.date})).addCase(uc.rejected,(r,t)=>Oh.isString(t.payload)?r:{...r,flags:{...r.flags,...t.payload}}).addCase(Wg.fulfilled,(r,t)=>({...r,flags:{...r.flags,...t.payload}})).addCase(zn.fulfilled,(r,t)=>{!t.payload||t.payload.path!==m.ROLES_TAB_PATH||(r.flags.touched=!1,r.flags.old=!1)}).addCase(Zc.fulfilled,(r,t)=>{t.meta.arg!==m.ROLES_TAB_PATH||!t.payload||(r.flags.touched=!1,r.flags.old=!1)})}}),{updatePrivileges:Hg,updateRoles:qg,setRolesContent:Yc,toggleTab:UP,toggleForceLogin:HP,updateRolesAndPrivileges:zc}=Ug.actions,qP=Ug.reducer,Vc=Q("settings/fetch",async()=>await m.getNodeInfo({verb:m.DesignerRequestVerb.GET_INFO,path:m.SETTINGS_TAB_PATH,content:!0,as:"json"})),Gg=Q("settings/app",m.getAppSettings),GP=_h(),Bp={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":jc.SHOW_AFTER_TIMEOUT,"webforms.tooltip.timeout":3e3,"webforms.renderer.showPopOver":!0,"webforms.renderer.showUnsavedPopOver":!0,"webforms.renderer.unsavedPopOverChoice":Bc.NONE,"welcometour.active":!0,"webforms.properties.advanced-mode":!1,"monaco.zoom":0},project:{"webforms.renderer.indexPage":"","webforms.display-mode":"neutral"},server:{projectOpened:!1,remoteDebuggerMode:m.RemoteDebuggerMode.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:"",lsp:""},isRestActive:!0}},YP={...Bp,session:{...Bp.session,...GP},welcometour:{}},Yg=Gt({name:"settings",initialState:YP,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(Vc.fulfilled,(r,t)=>{r.project={...r.project,...t.payload.content}}),e.addCase(Gg.fulfilled,(r,t)=>{r.server=t.payload,r.server.qodly&&(r.project["webforms.display-mode"]="airy")})}}),{setSetting:cc,setSettings:Ws,setSettingsAsText:zP}=Yg.actions,VP=Yg.reducer,lc=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:lc(Re(a.children,r))}]:[...t,a],[]),lt=(e,r)=>e.reduce((t,a)=>t||(a.path===r?a:a.children?lt(a.children,r):null),null),KP=[{name:m.FolderRootPath.WEBFORMS,type:m.FileFolderType.FOLDER,children:[],path:m.FolderRootPath.WEBFORMS,error:null,flags:{expanded:!1,loading:!1,cached:!1},tipKey:"editors:webform:explorer:webforms",config:{},isRoot:!0},{name:m.FolderRootPath.METHODS,type:m.FileFolderType.FOLDER,children:[],path:m.FolderRootPath.METHODS,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:m.FolderRootPath.CLASSES,type:m.FileFolderType.FOLDER,children:[],path:m.FolderRootPath.CLASSES,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:m.FolderRootPath.SHARED,type:m.FileFolderType.FOLDER,children:[],path:m.FolderRootPath.SHARED,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:"Debugger",type:m.FileFolderType.FOLDER,children:[],path:"Debugger",error:null,flags:{expanded:!1,cached:!0},config:{},isRoot:!0},{name:"Roles And Privileges",type:m.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:m.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:m.FileFolderType.FILE,ext:"json",path:"qodlyApp",error:null,flags:{},config:{editor:{key:"editors:settings"}},isRoot:!0}],zg=Gt({name:"explorer",initialState:KP,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=lt(e,r.payload.parentPath);return t?Re(e,{...t,children:r.payload.children}):e}},extraReducers:e=>{e.addCase(Yn.pending,(r,t)=>{const{file:a,newname:s}=t.meta.arg,i=lt(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":m.lspSubject.next({action:m.LspActions.WILL_RENAME,payload:{oldPath:l,newPath:d}});break}return Re(r,{...i,flags:{...i.flags,loading:!0}})}),e.addCase(Yn.fulfilled,(r,t)=>{const{meta:{arg:{file:a}},payload:s}=t,i=lt(r,a.path);if(!i)return r;switch(s.old.ext){case"4dm":case"4qs":m.lspSubject.next({action:m.LspActions.DID_RENAME,payload:{oldPath:s.old.path,newPath:s.new.path}});break}return Re(r,{...i,flags:{...i.flags,loading:!1}})}),e.addCase(Yn.rejected,(r,t)=>{const{file:a}=t.meta.arg,s=lt(r,a.path);return s?Re(r,{...s,flags:{...s.flags,loading:!1}}):r}),e.addCase(_r.pending,(r,t)=>{const a=t.meta.arg,s=lt(r,a);return s?Re(r,{...s,flags:{...s.flags,loading:!0}}):r}),e.addCase(_r.fulfilled,(r,t)=>{const a=t.meta.arg,s=lt(r,a);return s?Re(r,{...s,children:lc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!0},error:null}):r}),e.addCase(_r.rejected,(r,t)=>{const a=t.meta.arg,s=lt(r,a);return s?Re(r,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!0}}):r}),e.addCase(Aa.pending,(r,t)=>{const a=t.meta.arg,s=lt(r,a);return s?Re(r,{...s,flags:{...s.flags,loading:!0}}):r}),e.addCase(Aa.fulfilled,(r,t)=>{const a=t.meta.arg,s=lt(r,a);return s?Re(r,{...s,children:lc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!1},error:null}):r}),e.addCase(Aa.rejected,(r,t)=>{const a=t.meta.arg,s=lt(r,a);return s?Re(r,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!1}}):r}),e.addCase(Qo.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(Qo.fulfilled,(r,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg,c=m.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=pr(`${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(Qo.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(es.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(es.fulfilled,(r,t)=>{const{node:a}=t.payload,{node:{path:s,ext:i}}=t.meta.arg,{editor:c,supportedEditors:l}=pr(`${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(es.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(Da.pending,(r,t)=>{}),e.addCase(Da.fulfilled,(r,t)=>{var b;const{draggedNode:a,newLocation:s}=t.meta.arg,i=qh(a.path),c=lt(r,i),l=lt(r,s.path),d=(b=c==null?void 0:c.children)==null?void 0:b.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(Da.rejected,(r,t)=>{m.toastSubject.next({message:"Error moving file",kind:"danger"})}),e.addCase(Gn.pending,(r,t)=>{var x;const{fileName:a,parentNode:s,path:i,type:c,qodly:l}=t.meta.arg,d=m.getFileExtentionFromType(c,l),p=`${i}/${a}${d?`.${d.toLowerCase()}`:""}`,{editor:g,supportedEditors:b}=pr(p);switch(c){case m.FileFolderType.CLASS:case m.FileFolderType.METHOD:m.lspSubject.next({action:m.LspActions.WILL_CREATE,payload:{filePath:p}});break}const _=(x=s.children)==null?void 0:x.filter(D=>D.path!==`${i}/${a}`),S=[{name:a,path:`${i}/${a}`,type:m.FileFolderType.FILE,error:null,flags:{loading:!0},config:{editor:g,supportedEditors:b},ext:d,date:new Date().toISOString()},..._],T=Re(r,{...s,children:S});return Oh.merge(r,T)}),e.addCase(Gn.fulfilled,(r,t)=>{const{fileName:a,path:s,type:i,qodly:c}=t.meta.arg,l=m.getFileExtentionFromType(i,c),d=`${s}/${a}${l?`.${l.toLowerCase()}`:""}`,{editor:p,supportedEditors:g}=pr(d),b=Re(r,{name:a,path:`${s}/${a}`,type:m.FileFolderType.FILE,error:null,flags:{},config:{editor:p,supportedEditors:g},ext:l,date:new Date().toISOString()});switch(i){case m.FileFolderType.CLASS:case m.FileFolderType.METHOD:m.lspSubject.next({action:m.LspActions.DID_CREATE,payload:{filePath:d}});break}return r=b,r}),e.addCase(Gn.rejected,(r,t)=>{const{fileName:a,path:s,type:i}=t.meta.arg,c=m.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=pr(`${s}${c?`.${c.toLowerCase()}`:""}`);return r=Re(r,{name:a,path:`${s}/${a}`,type:m.FileFolderType.FILE,error:{message:"Failed creating file"},flags:{},config:{editor:l,supportedEditors:d},ext:c,date:new Date().toISOString()}),r}),e.addMatcher(uh(Pa),(r,t)=>{const a=lt(r,t.meta.arg.file.path.split(".")[0]);return a&&(r=Re(r,{...a,flags:{...a.flags,loading:!0}})),r}),e.addMatcher(lh(Pa),(r,t)=>{const a=lt(r,t.meta.arg.file.path.split(".")[0]);return a&&(r=Re(r,{...a,flags:{...a.flags,loading:!1}})),r}),e.addMatcher(ch(Pa),(r,t)=>{const a=lt(r,t.meta.arg.file.path.split(".")[0]);return a&&(r=Re(r,{...a,flags:{...a.flags,loading:!1}})),m.toastSubject.next({message:"Failed to open file, try again",kind:"danger"}),r})}}),{toggleExpandFolder:JP,expandFolder:XP,openAddFileInput:ZP,addNewFile:Vg,refreshFile:QP,removeFile:fc,setFolderChildren:eD}=zg.actions;function Kg(e,r){switch(e){case m.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 m.FileFolderType.METHODS:return`//%attributes = {}
|
|
91
|
+
`;default:return""}}function Jg(e,r,t){switch(r){case m.FileFolderType.MOBILEFORM:return`${e}.MForm`;case m.FileFolderType.WEBFORM:return`${e}.WebForm`;case m.FileFolderType.METHOD:case m.FileFolderType.CLASS:return`${e}.${t?"4qs":"4dm"}`;default:return e}}function tD(e){switch(e){case m.FolderRootPath.WEBFORMS:return m.FileFolderType.WEBFORMS;case m.FolderRootPath.METHODS:return m.FileFolderType.METHODS;case m.FolderRootPath.CLASSES:return m.FileFolderType.CLASSES;case"Mobile":return m.FileFolderType.MOBILE;default:return e}}function Xg(e){switch(e){case m.FileFolderType.WEBFORMS:return m.FileFolderType.WEBFORM;case m.FileFolderType.CLASSES:return m.FileFolderType.CLASS;case m.FileFolderType.METHODS:return m.FileFolderType.METHOD;case m.FileFolderType.FOLDER:return m.FileFolderType.FOLDER;case m.FileFolderType.MOBILE:return m.FileFolderType.MOBILEFORM;default:return e}}const rD=Q("files/tryEditMethod",async({method:e},{dispatch:r})=>{const t=e.filePath.split("/"),[a]=t[1].split("."),{editor:s}=pr(e.filePath);return await r(Kc({file:{name:a,path:e.filePath,date:new Date().toISOString(),type:m.FileFolderType.CLASS,editor:s},line:e.startingLine+1})).unwrap()}),dc=Q("explorer/createModelFiles",async(e,{dispatch:r,getState:t})=>{var b;const a=t(),s=m.FolderRootPath.CLASSES,i=a.settings.server.qodly,c=lt(a.explorer,s);if(!c)return;await r(_r(s));const d=((b=t().explorer.find(_=>_.name===s))==null?void 0:b.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,34 +96,34 @@ 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(_=>!d.find(({name:E,ext:T})=>E===_.name&&T===(i?"4qs":"4dm"))),await Promise.all(p.map(async({name:_,content:E})=>{await r(Gn({type:m.FileFolderType.CLASS,path:s,fileName:_,parentNode:c,content:E,qodly:a.settings.server.qodly}))})),await r(_r(s))}),_r=Q("explorer/fetchFolderContent",async(e,{rejectWithValue:r})=>{try{return(await m.getNodeInfo({verb:m.DesignerRequestVerb.GET_INFO,path:e})).map(a=>{const s=`${e}/${a.name}`,{editor:i,supportedEditors:c}=pr(`${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:()=>{}}),Aa=Q("explorer/fetchFolderContentWithoutExpanding",async(e,{rejectWithValue:r})=>{try{return(await m.getNodeInfo({verb:m.DesignerRequestVerb.GET_INFO,path:e})).map(a=>{const s=`${e}/${a.name}`,{editor:i,supportedEditors:c}=pr(`${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 QP(e){const r=e.split(".");return r.pop(),{name:r.join("."),ext:e.split(".")[e.split(".").length-1]}}const eD=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}}}),tD=Q("explorer/uploadFile",async({file:e,path:r,parentNode:t},{dispatch:a})=>{const{editor:s,supportedEditors:i}=pr(r),{name:c,ext:l}=QP(e.name);a(Yg({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(cc({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&&m.toastSubject.next({message:"error uploading file",kind:"danger"})):await a(_r(t.path)),{status:d.status,fileName:e.name}}catch{return a(cc({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}})),m.toastSubject.next({message:"error uploading file",kind:"danger"}),{status:500,fileName:e.name}}}),Gn=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 m.setFileContent({name:Vg(e,r,d),content:s||zg(r,p),path:t,asText:[m.FileFolderType.CLASS,m.FileFolderType.METHOD].includes(r)});return a.error&&(a.flags.expanded?await i(_r(a.path)):await i(Aa(a.path))),{qodly:d,file:g,parentNode:a}}catch{return c("failed to create folder")}});function Jg(e,r){const{qodly:t=!0,withExtension:a=!0}=r||{},s=m.getFileExtentionFromType(e.type,t);let i="";switch(e.type){case m.FileFolderType.WEBFORM:i=`${m.FolderRootPath.WEBFORMS}/${e.name}`;break;case m.FileFolderType.METHOD:i=`${m.FolderRootPath.METHODS}/${e.name}`;break;case m.FileFolderType.CLASS:i=`${m.FolderRootPath.CLASSES}/${e.name}`;break;default:return""}return`${i}${a?`.${s}`:""}`}const rD=Q("explorer/createNewFileAndOpen",async(e,{dispatch:r,getState:t})=>{const a=await r(Gn(e)).unwrap(),{qodly:s}=t().settings.server;if(a){const{file:i}=a,c=Jg(i,{withExtension:!1,qodly:s}),{editor:l}=pr(c);await r(Pa({file:{name:e.fileName,type:i.type,path:c,editor:l,date:new Date().toISOString()}}))}}),Zo=Q("explorer/createNewNode",async({fileName:e,path:r,parentNode:t},{rejectWithValue:a})=>{try{return{file:await m.createFolder({verb:m.DesignerRequestVerb.CREATE_FOLDER,path:`${r}/${e}`,recursive:!0}),parentNode:t}}catch{return m.toastSubject.next({message:"failed to create folder",kind:"danger"}),a("failed to create folder")}}),Us=async(e,r={})=>{try{const t=e.path.split(".").at(-1),a=await m.getNodeInfo({verb:m.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:_h(t)?"json":"text"}),s={editor:e.editor},i=m.getTypeFromExtension(e.path);i===m.FileFolderType.METHOD&&(s.attributes=m.parseAttributes(a.content),a.content=m.addAttributesToContent(a.content,{}));const{content:c,date:l,ext:d}=a;return r.confirmed===void 0&&(r.confirmed=!0),{date:l,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(d),confirmed:r.confirmed},extra:s,name:e.name,path:e.path,type:i,initialContent:c,content:c,history:{stack:[],active:-1,locked:!1}}}catch(t){const{data:a}=t;if(a.__ERROR.find(s=>s.errCode===m.ERROR_CODES.FILE_NOT_FOUND))switch(e.path){case m.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:m.FileFolderType.ROLES,initialContent:s,content:s}}case m.SETTINGS_TAB_PATH:{const s={};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:settings"}},name:"Settings",path:e.path,type:m.FileFolderType.SETTINGS,initialContent:s,content:s}}}throw t}},Pa=Q("explorer/openFile",async({file:e,inactive:r,isNew:t,flags:a={}},{getState:s,dispatch:i})=>{const{root:{tabs:c},roles:l,debugger:{sessions:d}}=s(),p=c.find(({path:_})=>e.path===_);if(p){const _={...p,extra:{...p==null?void 0:p.extra,editor:e.editor},flags:{...p==null?void 0:p.flags,...a}};return i(Pt(_)),_}if(e.path.startsWith("Debugger")){const _=d.find(E=>`Debugger/${E.threadId}`===e.path);if(_){const{source:{content:E},source:T}=_.currentStackFrame,x={name:e.name,type:m.FileFolderType.DEBUGGER,date:new Date().toISOString(),path:e.path,content:E,view:{panel:{isOpen:!1,type:"",current:""}},initialContent:E,flags:{confirmed:!0},extra:{source:T,editor:e.editor}};return i(Pt(x)),x}}let g=null;try{g=await Us(e,a)}catch(_){const{data:E}=_;if(E.__ERROR.find(T=>[m.ERROR_CODES.JSON_MALFORMED,m.ERROR_CODES.JSON_MALFORMED_AT_LINE].includes(T.errCode))){const{confirmed:T}=await i(ar({title:"Corrupt file",type:m.ModalType.CONFIRM,color:m.ModalColor.WARNING,message:"Open in code editor ?"})).unwrap();if(T){const x=await m.getNodeInfo({verb:m.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:"text"}),{content:D,date:P,ext:j}=x;g={date:P,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(j),confirmed:!0},extra:{editor:m.EDITOR.Code},name:e.name,path:e.path,type:m.getTypeFromExtension(e.path),initialContent:D,content:D,history:{stack:[],active:-1,locked:!1}}}}}return g&&(e.path===m.ROLES_TAB_PATH&&!l.flags.touched?i(qc({content:g.content,date:g.date})):e.path===m.SETTINGS_TAB_PATH&&i(Ws({path:"project",value:g.content})),i((r?Tv:Pt)({...g,isNew:t})),g)}),zc=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(Pt(c)),c}const i=await Us(e);return t(Pt(i)),i}),Xg=Q("explorer/injectContentAtLine",async(e,{getState:r,dispatch:t,rejectWithValue:a})=>{const s=r();e.path.split("/").pop();const c=lt(s.explorer,e.path);if(!c)return a(`Error while trying to inject content in file ${e.path}`);const l=await Us({name:c.name,date:c.date||new Date().toISOString(),path:`${c.path}.${c.ext}`,type:m.FileFolderType.CLASS,editor:c.config.editor});return await t(Pt(l)),{...e,path:`${c.path}.${c.ext}`}}),Zg=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(Pt(c)),c}const i=await Us(e);return t(Pt(i)),i}),fc=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 m.dropFile({root:m.FolderRootType.ROOT,type:Kg(t),verb:m.DesignerRequestVerb.DROP,name:r,path:i.join("/")}),node:e}}),nD=Q("explorer/deleteFolder",async e=>{const{path:r,flags:t}=e;if(t.error)return{deleted:!0,node:e};const{deleted:a}=await m.removeItem({force:!0,path:r,verb:m.DesignerRequestVerb.REMOVE_ITEM}).catch(console.error)||{deleted:!1};return{deleted:a,node:e}}),dc=Q("explorer/removeFileNode",async(e,{getState:r,dispatch:t})=>{const a=`${e.path}.${e.ext}`;if(await m.removeItem({verb:m.DesignerRequestVerb.REMOVE_ITEM,path:a,force:!0}).catch(console.error),e.path==="Classes/DataStore"&&setTimeout(()=>{t(wn())},Cs),e.ext){const{tabs:s}=r().root,i=s.findIndex(c=>c.path===a);i>=0&&t(tl(i))}return{deleted:!0,node:e}}),Yn=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 m.moveItem({verb:m.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 m.moveItem({verb:m.DesignerRequestVerb.MOVE_ITEM,path:`${t.join("/")}/${e.name}`,newpath:`${t.join("/")}/${r}`}),{old:e,new:{...e,name:r,path:`${t.join("/")}/${r}`}}}),Da=Q("explorer/relocateNode",async({draggedNode:e,newLocation:r},{rejectWithValue:t})=>{try{await m.moveItem({verb:m.DesignerRequestVerb.MOVE_ITEM,path:`${e.path}.${e.ext}`,newpath:`${r.path}/${e.name}.${e.ext}`})}catch{return t("can't move item")}}),Qo=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:b})=>b===`${e.path}${e.ext?`.${e.ext}`:""}`),d=["4dm","4qm","4qs"].includes(e.ext),{content:p}=l||await m.getNodeInfo({verb:m.DesignerRequestVerb.GET_INFO,path:`${e.path}.${e.ext}`,content:!0,as:d?"text":"json"}),g=await m.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")}}),aD=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?m.toastSubject.next({message:`${((i=d.__NOTIFICATION)==null?void 0:i.message)||""}`,kind:`${((c=d.__NOTIFICATION)==null?void 0:c.type)||"info"}`}):m.toastSubject.next({message:"Method executed Successfully",kind:"message"}),d}catch(l){return m.toastSubject.next({message:l.message||`Error executing the method "**${e}**"`,kind:"danger",markdown:!0}),s("can't execute method")}}),oD=e=>{const{dataClasses:r,...t}=e;return{...t,dataClasses:r==null?void 0:r.map(a=>{let s={...a};if(s.uuid||(s={...s,uuid:m.generateUUID()}),s.attributes){const i=["storage","relatedEntity"],c=s.attributes.map(l=>i.includes(l.kind)&&!l.uuid?{...l,uuid:m.generateUUID()}:l);s={...s,attributes:[...c]}}return s})}},sD=Q("files/fetchFiles",async()=>m.getFolders(m.FolderRootType.WEBFORMS,m.FolderRootType.METHODS,m.FolderRootType.CLASSES)),Vc=Q("tabs/renameDatasource",async(e,{dispatch:r,getState:t})=>{var E,T;const a=!!e.datasourceNamespace,{confirmed:s}=await r(ar({message:"Are you sure you want to rename the datasource?",title:"Rename Datasource",type:m.ModalType.CONFIRM,color:m.ModalColor.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 b=[];if(a){const x=g.sharedDatasources.sources[l]||[];b.push(...x)}else if(p){const x=g.root.tabs.find(m.by("path",p));if(b=(T=(E=x==null?void 0:x.content)==null?void 0:E.metadata)==null?void 0:T.datasources,!b)return null}const _=new RegExp(`^${c}\\b`,"");if(b=b.map(x=>{const D=(m.isObjectDatasource(x)||!m.isSimpleDatasource(x))&&x.from&&_.test(x.from),P=x.events?x.events.map(j=>{var M,k,O,z;switch(j==null?void 0:j.type){case"method":{const q=j;return q.params?{...q,params:q.params.map(Y=>{var te;return{...Y,datasource:(te=Y.datasource)==null?void 0:te.replace(new RegExp(`^${c}`,""),d)}}),returns:(M=q.returns)!=null&&M.datasource?{...q.returns,datasource:(k=q.returns.datasource)==null?void 0:k.replace(new RegExp(`^${c}`,""),d)}:q.returns}:q}case"simple-action":{const q=j;return q.datasource?{...q,datasource:{...q.datasource,name:(O=q.datasource.name)==null?void 0:O.replace(new RegExp(`^${c}`,""),d),from:(z=q.datasource.from)==null?void 0:z.replace(new RegExp(`^${c}`,""),d)}}:q}default:return j}}):x.events;return x.id===c?{...x,id:d,events:P}:D&&x.from?{...x,from:x.from.replace(new RegExp(`^${c}`,""),d),events:P}:{...x,events:P}}),i){const x=a?`${l}:${c}`:`${c}`,D=a?`${l}:${d}`:`${d}`;m.datasourcesSubject.next({path:p??"",action:m.DatasourcesActions.RENAME,old_reference:x,new_reference:D,is_shared:a})}return{path:p,namespace:l,datasources:b}}),Kc=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(m.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)}),Qg=Q("tabs/fetchChanges",async(e,{getState:r})=>{const a=ra(r()).filter(s=>[m.FileFolderType.METHOD,m.FileFolderType.CLASS].includes(s.type));return m.getFilesInfo(...a.map(s=>{const[i]=s.path.split("/").filter(Boolean);return{name:s.name,type:s.type,root:i,path:"."}}))}),iD=Q("files/saveAll",async(e,{getState:r,dispatch:t})=>{const a=Fc(r());for(const s of a)t(zn({tab:s}))}),Jc=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(ar({title:xs(i),message:"Your unsaved changes will be lost. Proceed anyway?",type:m.ModalType.CONFIRM,color:m.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!c)return!1}return t(tl(s)),i.path===m.ROLES_TAB_PATH&&i.flags.touched&&(async()=>{const l=await m.getNodeInfo({verb:m.DesignerRequestVerb.GET_INFO,path:m.ROLES_TAB_PATH,content:!0,as:"json"});t(qc({content:l.content,date:l.date}))})(),!0}),uD=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(ar({title:"Closing other tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:m.ModalType.CONFIRM,color:m.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(Ev(e))}),cD=Q("files/tryCloseAllTabs",async(e,{getState:r,dispatch:t})=>{const{tabs:a}=r().root;if(a.some(i=>i.flags.touched===!0)){const{confirmed:i}=await t(ar({title:"Closing all tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:m.ModalType.CONFIRM,color:m.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(bv())}),lD=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(ar({title:"Closing right tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:m.ModalType.CONFIRM,color:m.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(_v(e))}),fD=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(ar({title:"Closing left tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:m.ModalType.CONFIRM,color:m.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(Sv(e))}),pc=Q("files/reloadTab",async(e,{dispatch:r})=>{if(e.flags.touched){const{confirmed:s}=await r(ar({title:xs(e),message:"Changes made to the file will be lost. Continue?",type:m.ModalType.CONFIRM,color:m.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!s)return}const t=Hh(e.path),a=await m.getNodeInfo({verb:m.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:t});if(e.path===m.ROLES_TAB_PATH){const{roles:s,privileges:i}=js(a.content);r(Gc({roles:s,privileges:i}))}else if(e.path===m.SETTINGS_TAB_PATH){const{content:s}=a;r(Ws({path:"project",value:s}))}else{const{content:s}=a;e.type===m.FileFolderType.WEBFORM?m.webformSubject.next({path:e.path,action:m.WebformActions.RELOAD,payload:s.components}):e.type===m.FileFolderType.MODEL&&Jh.next({action:"reload",payload:s})}return a}),zn=Q("files/saveTab",async({tab:e},{dispatch:r,getState:t})=>{let{path:a,content:s}=e;if(e.type===m.FileFolderType.DEBUGGER)return{...e,errors:[]};a.split("/").pop();const c=await m.getFilesInfo({path:a});if(c.files[0]){const b=new Date(e.date),_=new Date(c.files[0].date);if(b.getTime()<_.getTime()){const{confirmed:E}=await r(ar({title:xs(e),message:"New content has been found on the server. Are you sure you want to continue?",type:m.ModalType.CONFIRM,icon:"FdSave"})).unwrap();if(!E)return r(mv({path:a,flags:{old:!0}})),null}}const l=dD(e,t()),d=await m.saveContent({verb:m.DesignerRequestVerb.SAVE_CONTENT,content:l,path:a});(e.type===m.FileFolderType.CLASS||e.type===m.FileFolderType.MODEL)&&setTimeout(()=>{r(wn())},Cs);const p=(d.modelErrors||[]).map(b=>b.message),g=(d.permissionsErrors||[]).map(b=>b.message);return m.FileFolderType.MODEL===e.type&&(s=l),{...e,content:s,date:d.date,initialContent:s,errors:p.length>0||g.length>0?[{title:"Model errors",messages:p},{title:"Permissions errors",messages:g}]:[]}}),dD=(e,r)=>{switch(!0){case e.path==="settings.json":case e.path===m.SETTINGS_TAB_PATH:return r.settings.project;case e.type===m.FileFolderType.ROLES:return{...e.content,...Bs(r.roles)};case e.type===m.FileFolderType.MODEL:{const t=e.content||{toJSON:!0,dataClasses:[],extraProperties:{}};return oD(t)}default:return e.content}},jp=async e=>{if(e.type===m.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 m.getFile({root:r,type:e.type,verb:m.DesignerRequestVerb.GET,name:e.name}),a={};t.type===m.FileFolderType.METHOD&&(a.attributes=m.parseAttributes(t.content));const{date:s,name:i,type:c,content:l}=t;return{date:s,flags:{enabled:e.type===m.FileFolderType.WEBFORM},extra:a,view:{panel:{isOpen:!1,type:"",current:""}},name:i,path:e.path,type:c,initialContent:l,content:c===m.FileFolderType.MODEL?bh(l):l,history:{stack:[],active:-1,locked:!1}}},pD=We.debounce((e,r)=>{r(Cv(e))},300),hD=Q("tabs/setTabContent",(e,{getState:r,dispatch:t})=>{var c;const{root:{tabs:a}}=r(),s=a.find(l=>l.path===e.path),i=!!((c=s==null?void 0:s.history)!=null&&c.locked);t(rl(e)),i?t(xv(e.path)):pD(e.path,t)}),ev=Q("files/tryInjectMethod",async({type:e,dataclass:r},{getState:t,dispatch:a})=>{const{root:{tabs:s},settings:{server:{qodly:i}}}=t(),c=m.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(m.by("path",d));if(g)return a(Pt(g)),g;try{p=await jp({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:m.FileFolderType.CLASS})}catch{r?await a(lc({type:"dataclass",className:r,collectionName:`${r}Selection`,toCreate:e})):await a(lc({type:"model"}))}return p=await jp({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:m.FileFolderType.CLASS}),p.path=d,a(Pt(p)),p}),gD=Q("roles/open",async(e,{dispatch:r,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path===m.ROLES_TAB_PATH);if(s)return r(Pt(s)),s;r(bs())});function Bp(e,r){const{line:t,offset:a,type:s="saved"}=r;e.breakpoints[s].locations.push({line:t}),We.isNumber(a)&&(e.breakpoints[s].offset=a)}function Wp(e,r,t,a){e.breakpoints[t].locations=r,We.isNumber(a)&&(e.breakpoints[t].offset=a)}function Up({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 Hp(e,r,t){let a=!1;const s=e.map(i=>i[t]!==r[t]?i:(a=!0,{...i,...r}));return a?s:[...s,r]}function zo(e){return e.map(({label:r})=>({label:r}))}const tv=Gt({name:"debugger",initialState:()=>{var r,t;const{debugger:e={meta:{state:Ir.DETACHED},list:[],sessions:[],expressions:[]}}=Jn();return{meta:{...e.meta,state:((r=e.meta)==null?void 0:r.state)===Ir.ATTACHED?(t=e.meta)==null?void 0:t.state:Ir.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=Sn(e.list,t,s,i);if(p)Bp(p,d);else{if(a===m.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=Up({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});Bp(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(b=>b.line+g!==d),c==="saved"&&(p.breakpoints.draft.locations=p.breakpoints.draft.locations.filter(b=>b.line+g!==d))})}}else{const l=Sn(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:b}=r.payload,_=Sn(e.list,t,s);if(_)Wp(_,d,g,p),b&&g!=="draft"&&(_.breakpoints.draft.locations=[]);else{const E=Up({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});Wp(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"||a==="any"?{locations:[],offset:0}:s.breakpoints.draft,saved:!a||a==="saved"||a==="any"?{locations:[],offset:0}:s.breakpoints.saved}:s.breakpoints}))},clearBreakpointsExcept(e,r){const{exceptedFilePath:t,type:a="saved"}=r.payload;e.list=e.list.map(s=>({...s,breakpoints:s.filePath!==t?{draft:!a||a==="draft"||a==="any"?{locations:[],offset:0}:s.breakpoints.draft,saved:!a||a==="saved"||a==="any"?{locations:[],offset:0}:s.breakpoints.saved}:s.breakpoints}))},clearAllBreakpoints(e){e.list=e.list.map(r=>({...r,breakpoints:{draft:{locations:[],offset:0},saved:{locations:[],offset:0}}}))},setActiveLine(e,r){const{threadId:t,line:a,highlight:s}=r.payload,i=ot(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=ot(e.sessions,t);i&&i.stopped&&(i.expressions=[...i.expressions||[],{label:a}],s&&(e.expressions=zo(i.expressions)))},removeExpression(e,r){const{threadId:t,index:a,save:s}=r.payload,i=ot(e.sessions,t);i&&(i.expressions=i.expressions.filter((c,l)=>l!==a),s&&(e.expressions=zo(i.expressions)))},removeAllExpressions(e,r){const{threadId:t,save:a}=r.payload,s=ot(e.sessions,t);s&&(s.expressions=[],a&&(e.expressions=[]))},renameExpression(e,r){const{threadId:t,index:a,replacement:s,save:i}=r.payload,c=ot(e.sessions,t);c&&c.expressions[a]&&(c.expressions[a].label=s,i&&(e.expressions=zo(c.expressions)))},setExpression(e,r){const{threadId:t,expression:a}=r.payload,s=ot(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=ot(e.sessions,t);if(i){const c=i.expressions[a];c&&(c.result=`"${s}"`,c.nakedResult=s)}},saveExpressions(e,r){const{expressions:t}=r.payload;e.expressions=zo(t)},addSession(e,r){const{threadId:t,channelId:a,stackFrames:s,exceptions:i=[]}=r.payload,c=ot(e.sessions,t),l=s[0],{expressions:d=[]}=e;if(c)c.expressions=d;else{const p=Oc(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:Hp((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:Hp((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=ot(e.sessions,t);s&&(s.currentStackFrame.source={...s.currentStackFrame.source,content:a})},setDebuggerMeta(e,r){if(r.payload.state===Ir.ERROR){e.meta.error={...e.meta.error,time:Date.now()};const{override:t,error:a={code:null,reason:"",type:cs.SOCKET_ERROR}}=r.payload;if((t||e.meta.state!==Ir.ERROR)&&(e.meta.error={...e.meta.error,...a}),(a==null?void 0:a.type)===cs.SOCKET_CLOSURE&&!(a!=null&&a.reason)&&e.meta.state===Ir.DETACHED)return}e.meta.state=r.payload.state}},extraReducers:e=>{e.addCase(nv.fulfilled,r=>{r.sessions=[]})}}),{addBreakpointDecoration:vD,removeBreakpointDecoration:yD,setBreakpointsDecoration:mD,clearBreakpoints:bD,clearBreakpointsExcept:_D,clearAllBreakpoints:ED,setActiveLine:SD,addExpression:wD,renameExpression:TD,removeExpression:CD,removeAllExpressions:xD,setExpression:RD,updateExpressionAt:OD,saveExpressions:AD,addSession:PD,updateSession:DD,removeSession:ID,removeSessionByIndex:FD,setSessions:rv,setCallChainVariables:$D,setExpressionVariables:MD,setSourceContent:LD,setDebuggerMeta:ND}=tv.actions,nv=Q("files/wipeDebuggerSessions",async(e,{getState:r,dispatch:t})=>{const{sessions:a}=r().debugger;for(const{threadId:s}of a){const i=Oc(s);t(Jc(i))}}),av=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(rv(c)),{staleThreadIds:i}}),Xc=Q("models/fetch",async()=>{try{return(await m.http(m.API_PREFIX,{method:"POST",body:JSON.stringify({verb:m.DesignerRequestVerb.GET_INFO,path:m.MODEL_TAB_PATH,as:"json",content:!0}),headers:new Headers({"Content-Type":"application/json"})})).content}catch(e){return e.message}}),_s=Q("models/save",async(e,{getState:r,dispatch:t,rejectWithValue:a})=>{const{tabs:s}=r().root,i=s.find(c=>c.path===m.MODEL_TAB_PATH);if(!i)return a("Error while saving the model");try{const c=await m.http(m.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(wn())},Cs),{...c,path:i.path,content:e.content||{toJSON:!0,dataClasses:[],extraProperties:{}}}}catch{return a("Error while saving the model")}}),kD=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(Pt(s)),s;r(Xc())}),jD=Q("model/rename-dataclass",async(e,{getState:r,dispatch:t})=>{var b,_;const{dataclassId:a,selectionId:s,name:i}=e;let c=r();const l=c.explorer.find(E=>E.path===m.FolderRootPath.CLASSES);if(!l)throw new Error("Classes folder was not found!");await t(_r(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=c.explorer.find(E=>E.path===m.FolderRootPath.CLASSES))==null?void 0:b.children)==null||_.forEach(E=>{E.name===d.class.filename_update&&(d.class.newNameTaken=!0),E.name===d.entity.filename_update&&(d.entity.newNameTaken=!0),E.name===d.selection.filename_update&&(d.selection.newNameTaken=!0),E.name===a?(d.class.found=!0,d.class.file=E):E.name===`${a}Entity`?(d.entity.found=!0,d.entity.file=E):E.name===s&&(d.selection.found=!0,d.selection.file=E)});const p=Object.entries(d).reduce((E,T)=>{const[x,D]=T;return D.found?D.newNameTaken?[...E,{type:"error",message:`Cannot rename ${x} file to ${D.filename_update} because it already exists. The existing file will be used instead!`}]:E:[...E,{type:"warning",message:`${a} ${x} file was not found`}]},[]);p.length>0&&t(ar({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(Yn({file:E.file,newname:E.filename_update})))),g.length>0&&t(_r("Classes"))}),Na={DATACLASS_DELETE:"dataclass.delete",DATACLASS_DRAGGABLE:"dataclass.draggable"},BD={model:{dataClasses:{},collections:{},extraProperties:{}},draft:{dataClasses:{},collections:{},extraProperties:{}},flags:{[Na.DATACLASS_DELETE]:!0,[Na.DATACLASS_DRAGGABLE]:!0}},ov=Gt({name:"Models",initialState:BD,reducers:{setModelFlag(e,r){e.flags={...e.flags,...r.payload}}},extraReducers(e){e.addCase(Xc.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(_s.pending,()=>{}).addCase(_s.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:WD}=ov.actions;var sv=(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))(sv||{}),Hs=(e=>(e.STORAGE="storage",e.RELATEDENTITY="relatedEntity",e.RELATEDENTITIES="relatedEntities",e.CALCULATED="calculated",e.COMPOSITION="composition",e.ALIAS="alias",e))(Hs||{});const UD=e=>["string","uuid","number","long"].includes(e.type),HD=[{label:"Storage",value:"storage"},{label:"Calculated",value:"calculated"}],qD=[{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"}],GD=[{title:"String",kind:"storage",value:"string",calculatedType:"string",calculatedKind:"storage"},{title:"Text",kind:"storage",value:"text",calculatedType:"text",calculatedKind:"storage"},{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Date",kind:"storage",value:"date",calculatedType:"date",calculatedKind:"storage"},{title:"Duration",kind:"storage",value:"duration",calculatedType:"duration",calculatedKind:"storage"},{title:"Bool",kind:"storage",value:"bool",calculatedType:"bool",calculatedKind:"storage"},{title:"Byte",kind:"storage",value:"byte",calculatedType:"byte",calculatedKind:"storage"},{title:"Word",kind:"storage",value:"word",calculatedType:"word",calculatedKind:"storage"},{title:"Number",kind:"storage",value:"number",calculatedType:"number",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"},{title:"Object",kind:"storage",value:"object",calculatedType:"object",calculatedKind:"storage"},{title:"Image",kind:"storage",value:"image",calculatedType:"image",calculatedKind:"storage"},{title:"Blob",kind:"storage",value:"blob",calculatedType:"blob",calculatedKind:"storage"}],YD=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],zD=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],VD=[{label:"None",value:"none"},{label:"B-tree",value:"btree"},{label:"Cluster",value:"cluster"},{label:"Automatic",value:"auto"}],KD=(e,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 JD(e,r,t){const a=e;let s=0;for(;t[`${a}${s||""}`];)s++;return`${a}${s||""}`}const iv=e=>e.kind===Hs.RELATEDENTITY,uv=e=>e.kind===Hs.RELATEDENTITIES,XD=e=>uv(e)||iv(e),ZD=()=>kr(e=>e.model.draft.dataClasses),QD=()=>kr(e=>e.model.draft.collections),eI=e=>kr(r=>r.model.draft.dataClasses[e]),tI=(e,r)=>kr(t=>t.model.draft.dataClasses[e].attributes.find(m.by("name",r))),rI=()=>kr(e=>e.model.draft.extraProperties),nI=()=>{const e=kr(s=>s.model.flags),r=s=>s in e?e[s]:void 0,t=r(Na.DATACLASS_DELETE),a=r(Na.DATACLASS_DRAGGABLE);return{deleteDataclass:t,draggableDataclass:a,flags:e}},aI=ov.reducer;function ku(e,r){const t=e.tabs.find(({path:a})=>a===m.SETTINGS_TAB_PATH);t&&(t.flags.touched=r)}const cv={SIDEBAR_SECTION_RESIZABLE:"sidebar.section.resizable"},lv={[cv.SIDEBAR_SECTION_RESIZABLE]:!0},fv=Gt({name:"webforms",initialState:()=>{const{webforms:e}=Jn();return{...e,templates:{data:[],selectedGroup:""},datasources:{...xc.webforms.datasources,...e==null?void 0:e.datasources},flags:lv}},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(yv.fulfilled,(r,t)=>{r.components=t.payload})}}),{toggleInspector:oI,inspect:sI,addComponent:dv,editComponent:pv,removeComponent:hv,setSelectedGroup:iI,setTemplatesData:gv,setTemplateData:vv,setDatasourcesTheme:uI,setWebformsFlag:cI}=fv.actions,lI=fv.reducer,Zc=We.curry((e,r)=>{var s,i;const t={...r.sharedDatasources.sources},a=(i=((s=r.root.tabs.find(m.by("path",e)))==null?void 0:s.content).metadata)==null?void 0:i.datasources;return a&&(t[e]=a),We.cloneDeep(t)}),fI=Q("webforms/fetchTemplates",async(e,{dispatch:r,getState:t})=>{const{data:a}=t().webforms.templates,s=t().settings.session["studio.tipsBaseUrl"]||"";if(!We.isEmpty(a))return a;try{const c=await(await fetch(`${s}/build/index.json?t=${Date.now()}`)).json();return r(gv(c)),c}catch{return[]}}),dI=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&&!We.isEmpty(s.components))return s.components;try{const c=await(await fetch(`${s==null?void 0:s.link}?t=${Date.now()}`)).json();return r(vv({group:e,components:c})),c}catch{return[]}}),yv=Q("webforms/fetchCraftedComponents",async(e,{rejectWithValue:r})=>{try{return(await m.getNodeInfo({path:"WebForms/crafted_components.json",verb:m.DesignerRequestVerb.GET_INFO,content:!0,as:"json"})).content}catch{return r("Error while loading the crafted components")}}),pI=Q("webforms/addCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(dv(e));const{webforms:{components:s}}=a();m.setCraftedComponents(s)}catch{return t("Error while adding the crafted component")}}),hI=Q("webforms/editCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(pv(e));const{webforms:{components:s}}=a();m.setCraftedComponents(s)}catch{return t("Error while editing the crafted component")}}),gI=Q("webforms/removeCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(hv(e));const{webforms:{components:s}}=a();m.setCraftedComponents(s)}catch{return t("Error while removing the crafted component")}}),Qc=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 m.setSharedSources(p)}else(((s=(a=i.root.tabs.find(m.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")}}),el=Q("datasources/edit-datasource",async(e,{getState:r,rejectWithValue:t})=>{try{const{namespace:a,path:s}=e,i=r(),c=!!e.namespace,l=Zc(s,i);let d=We.defaultTo(l[a||s],[]);return d=d.map(p=>p.id===e.id?{...p,[e.property]:e.value}:p),c&&await m.setSharedSources({...i.sharedDatasources.sources,[e.namespace]:d}),{list:d,path:e.path,namespace:e.namespace}}catch{t(`Error while editing datasource ${e.id}`)}}),vI=e=>e.type===Vn.fulfilled.type,Vn=Q("datasources/rename-datasource",async(e,{getState:r,rejectWithValue:t})=>{try{const a=r(),s=!!e.namespace,i=e.namespace||e.path,c=Zc(e.path,a),l=We.defaultTo(c[i],[]),d=new RegExp(`^${e.id}\\b`,"");if(l.forEach(p=>{var b;const g=(m.isObjectDatasource(p)||!m.isSimpleDatasource(p))&&p.from&&d.test(p.from);e.updateRefs&&((b=p.events)==null||b.forEach(_=>{var E,T,x,D,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:(T=(E=j.returns)==null?void 0:E.datasource)==null?void 0:T.replace(new RegExp(`^${e.id}`,""),e.new_name)});return}case"simple-action":{const j=_;j.datasource&&Object.assign(j.datasource,{name:(x=j.datasource.name)==null?void 0:x.replace(new RegExp(`^${e.id}`,""),e.new_name),from:(D=j.datasource.from)==null?void 0:D.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=m.getDatasourceId({id:e.id,namespace:e.namespace}),g=m.getDatasourceId({id:e.new_name,namespace:e.namespace});m.datasourcesSubject.next({path:e.path??"",action:m.DatasourcesActions.RENAME,old_reference:p,new_reference:g,is_shared:s})}return s&&await m.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}`)}}),Ia=Q("datasources/delete-datasource",async(e,{getState:r,rejectWithValue:t})=>{try{const a=r(),s=!!e.namespace,i=e.namespace||e.path,l=Zc(e.path,a)[i].filter(m.outById(e.id));return s&&await m.setSharedSources({...a.sharedDatasources.sources,[e.namespace]:l}),{list:l,path:e.path,namespace:e.namespace}}catch{return t(`Error while removing datasource ${e.id}`)}}),ka=Gt({name:"root",initialState:()=>{const e=Jn();return{filesLoading:!1,tabs:e.tabs||[],activeTab:e.activeTab,recent:e.recent||[]}},reducers:{setPanelState(e,r){const{path:t,...a}=r.payload;e.tabs.forEach(s=>{s.path===t&&(s.view||(s.view={panel:{isOpen:!1,type:"",current:""}}),Object.assign(s.view.panel,a))})},openSettingsTab(e){const r={date:new Date().toISOString(),flags:{confirmed:!0},view:{panel:{isOpen:!1,type:"",current:""}},extra:{editor:{key:"editors:settings"}},name:"Settings",path:m.SETTINGS_TAB_PATH,type:m.FileFolderType.SETTINGS,initialContent:{},content:{}};let t=e.tabs.find(a=>a.path===r.path);if(t||(e.tabs.push(r),t=e.tabs[e.tabs.length-1]),e.activeTab!==r.path){const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);e.activeTab=r.path,t.weight=((a==null?void 0:a.weight)||0)+1}},addDataSource(e,r){var i;const{payload:{path:t,datasourceDef:a}}=r,s=e.tabs.find(c=>c.path===t);s&&(s.content.metadata.datasources=s.content.metadata.datasources||[],(i=s.content.metadata.datasources)!=null&&i.find(l=>l.id===a.id)||(s.content.metadata.datasources=[...s.content.metadata.datasources,{...a,events:[]}],s.flags={...s.flags,touched:!0,confirmed:!0}))},addWebformState(e,r){var i;const{payload:{path:t,stateDef:a}}=r,s=e.tabs.find(c=>c.path===t);s&&(s.content.metadata.states=s.content.metadata.states||[Lc],(i=s.content.metadata.states)!=null&&i.find(l=>l.id===a.id)||(s.content.metadata.states=[...s.content.metadata.states,a],s.flags={...s.flags,touched:!0,confirmed:!0}))},removeWebformState(e,r){const{path:t,id:a}=r.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:Eh(s.content,a)}:s)},editWebformState(e,r){const{path:t,state:a}=r.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:{...s.content,metadata:{...s.content.metadata,states:s.content.metadata.states.map(i=>i.id===a.id?a:i)}}}:s)},removeDataSource(e,r){const{path:t,datasourceID:a}=r.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:{...s.content,metadata:{...s.content.metadata,datasources:s.content.metadata.datasources.filter(i=>i.id!==a)}}}:s)},setDataSources(e,r){const{payload:{path:t,datasourceArr:a}}=r;e.tabs=e.tabs.map(s=>{var i;return s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:{...s.content,metadata:{...(i=s.content)==null?void 0:i.metadata,datasources:a}}}:s})},setTabs(e,r){e.tabs=r.payload},closeTab(e,r){const t=r.payload;e.tabs.splice(t,1);const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);e.activeTab=(a==null?void 0:a.path)||""},closeOthers(e,r){e.tabs=e.tabs.filter(t=>t.path===r.payload),e.activeTab=r.payload},closeAllTabs(e){e.tabs=[],e.activeTab=""},closeRightTabs(e,r){e.tabs.splice(r.payload+1),e.activeTab=e.tabs[r.payload].path},closeLeftTabs(e,r){e.tabs.splice(0,r.payload)},closeSavedTabs(e){e.tabs=e.tabs.filter(({flags:{touched:t}})=>t);const r=e.tabs.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null);e.activeTab=(r==null?void 0:r.path)||""},confirmTab(e,r){const t=e.tabs.find(({path:a})=>a===r.payload);t&&(t.flags.confirmed||ka.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=[m.FileFolderType.DEBUGGER],{isNew:a,...s}=r.payload;let i=s,c=e.tabs.find(({path:l})=>i.path===l);if(i.history||(i.history={stack:[],active:-1,locked:!1}),(t.includes(i.type)||c!=null&&c.flags.confirmed)&&(i={...i,flags:{...i.flags,confirmed:!0}}),!c){const l=e.tabs.findIndex(({flags:{confirmed:d}})=>d===!1);l!==-1&&!t.includes(i.type)&&!a?e.activeTab===e.tabs[l].path?(e.tabs[l]=i,c=e.tabs[l]):(e.tabs.push(i),c=e.tabs[e.tabs.length-1],e.tabs.splice(l,1)):(e.tabs.push(i),c=e.tabs[e.tabs.length-1])}if(e.activeTab!==i.path){const l=e.tabs.reduce((d,p)=>(p==null?void 0:p.weight)>((d==null?void 0:d.weight)||0)?p:d,null);e.activeTab=i.path,c.weight=((l==null?void 0:l.weight)||0)+1}c.extra={...c.extra,...i.extra},c.flags={...c.flags||{},...i.flags||{}}},setContent(e,r){const{path:t,content:a,contentPath:s}=r.payload;e.tabs=e.tabs.map(i=>{if(i.path!==t)return i;let c=!1,l=i.flags.confirmed;if(typeof a=="string")c=i.initialContent!==a,l=!l&&c?!0:l;else{const d=JSON.stringify(We.get(i.initialContent,s||"",i.initialContent)),p=JSON.stringify(We.get(a,s||"",a));c=d!==p,l=!l&&c?!0:l}return a&&typeof a=="object"&&(s?We.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},setHistoryContent(e,r){const t=r.payload;e.tabs=e.tabs.map(a=>{var s;return a.path!==t?a:(a.history&&(a.history.stack=[...(s=a.history)==null?void 0:s.stack.slice(0,a.history.active+1),a.content],a.history.active=a.history.stack.length-1),{...a})})},unlockHistory(e,r){const t=r.payload;e.tabs=e.tabs.map(a=>a.path!==t?a:(a.history&&(a.history.locked=!1),{...a}))},undo(e){e.tabs=e.tabs.map(r=>r.path!==e.activeTab?r:(r.history&&r.history.active>0&&(r.history.locked=!0,r.history.active--,r.content=r.history.stack[r.history.active]),{...r}))},redo(e){e.tabs=e.tabs.map(r=>r.path!==e.activeTab?r:(r.history&&r.history.active<r.history.stack.length-1&&(r.history.locked=!0,r.history.active++,r.content=r.history.stack[r.history.active]),{...r}))}},extraReducers:e=>{e.addCase(ic,(r,t)=>{if(t.payload.settingsKey==="studio.enablePreview"&&t.payload.value===!1){const a=r.tabs.find(({flags:{confirmed:s}})=>s===!1);a&&ka.caseReducers.setTabFlags(r,{type:"",payload:{path:a.path,flags:{confirmed:!0}}})}}),e.addCase(Xg.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:S,ext:T})=>S===_.name&&T===(i?"4qs":"4dm"))),await Promise.all(p.map(async({name:_,content:S})=>{await r(Gn({type:m.FileFolderType.CLASS,path:s,fileName:_,parentNode:c,content:S,qodly:a.settings.server.qodly}))})),await r(_r(s))}),_r=Q("explorer/fetchFolderContent",async(e,{rejectWithValue:r})=>{try{return(await m.getNodeInfo({verb:m.DesignerRequestVerb.GET_INFO,path:e})).map(a=>{const s=`${e}/${a.name}`,{editor:i,supportedEditors:c}=pr(`${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:()=>{}}),Aa=Q("explorer/fetchFolderContentWithoutExpanding",async(e,{rejectWithValue:r})=>{try{return(await m.getNodeInfo({verb:m.DesignerRequestVerb.GET_INFO,path:e})).map(a=>{const s=`${e}/${a.name}`,{editor:i,supportedEditors:c}=pr(`${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 nD(e){const r=e.split(".");return r.pop(),{name:r.join("."),ext:e.split(".")[e.split(".").length-1]}}const aD=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}}}),oD=Q("explorer/uploadFile",async({file:e,path:r,parentNode:t},{dispatch:a})=>{const{editor:s,supportedEditors:i}=pr(r),{name:c,ext:l}=nD(e.name);a(Vg({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(fc({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&&m.toastSubject.next({message:"error uploading file",kind:"danger"})):await a(_r(t.path)),{status:d.status,fileName:e.name}}catch{return a(fc({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}})),m.toastSubject.next({message:"error uploading file",kind:"danger"}),{status:500,fileName:e.name}}}),Gn=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 m.setFileContent({name:Jg(e,r,d),content:s||Kg(r,p),path:t,asText:[m.FileFolderType.CLASS,m.FileFolderType.METHOD].includes(r)});return a.error&&(a.flags.expanded?await i(_r(a.path)):await i(Aa(a.path))),{qodly:d,file:g,parentNode:a}}catch{return c("failed to create folder")}});function Zg(e,r){const{qodly:t=!0,withExtension:a=!0}=r||{},s=m.getFileExtentionFromType(e.type,t);let i="";switch(e.type){case m.FileFolderType.WEBFORM:i=`${m.FolderRootPath.WEBFORMS}/${e.name}`;break;case m.FileFolderType.METHOD:i=`${m.FolderRootPath.METHODS}/${e.name}`;break;case m.FileFolderType.CLASS:i=`${m.FolderRootPath.CLASSES}/${e.name}`;break;default:return""}return`${i}${a?`.${s}`:""}`}const sD=Q("explorer/createNewFileAndOpen",async(e,{dispatch:r,getState:t})=>{const a=await r(Gn(e)).unwrap(),{qodly:s}=t().settings.server;if(a){const{file:i}=a,c=Zg(i,{withExtension:!1,qodly:s}),{editor:l}=pr(c);await r(Pa({file:{name:e.fileName,type:i.type,path:c,editor:l,date:new Date().toISOString()}}))}}),Qo=Q("explorer/createNewNode",async({fileName:e,path:r,parentNode:t},{rejectWithValue:a})=>{try{return{file:await m.createFolder({verb:m.DesignerRequestVerb.CREATE_FOLDER,path:`${r}/${e}`,recursive:!0}),parentNode:t}}catch{return m.toastSubject.next({message:"failed to create folder",kind:"danger"}),a("failed to create folder")}}),Us=async(e,r={})=>{try{const t=e.path.split(".").at(-1),a=await m.getNodeInfo({verb:m.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:Eh(t)?"json":"text"}),s={editor:e.editor},i=m.getTypeFromExtension(e.path);i===m.FileFolderType.METHOD&&(s.attributes=m.parseAttributes(a.content),a.content=m.addAttributesToContent(a.content,{}));const{content:c,date:l,ext:d}=a;return r.confirmed===void 0&&(r.confirmed=!0),{date:l,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(d),confirmed:r.confirmed},extra:s,name:e.name,path:e.path,type:i,initialContent:c,content:c,history:{stack:[],active:-1,locked:!1}}}catch(t){const{data:a}=t;if(a.__ERROR.find(s=>s.errCode===m.ERROR_CODES.FILE_NOT_FOUND))switch(e.path){case m.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:m.FileFolderType.ROLES,initialContent:s,content:s}}case m.SETTINGS_TAB_PATH:{const s={};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:settings"}},name:"Settings",path:e.path,type:m.FileFolderType.SETTINGS,initialContent:s,content:s}}}throw t}},Pa=Q("explorer/openFile",async({file:e,inactive:r,isNew:t,flags:a={}},{getState:s,dispatch:i})=>{const{root:{tabs:c},roles:l,debugger:{sessions:d}}=s(),p=c.find(({path:_})=>e.path===_);if(p){const _={...p,extra:{...p==null?void 0:p.extra,editor:e.editor},flags:{...p==null?void 0:p.flags,...a}};return i(Pt(_)),_}if(e.path.startsWith("Debugger")){const _=d.find(S=>`Debugger/${S.threadId}`===e.path);if(_){const{source:{content:S},source:T}=_.currentStackFrame,x={name:e.name,type:m.FileFolderType.DEBUGGER,date:new Date().toISOString(),path:e.path,content:S,view:{panel:{isOpen:!1,type:"",current:""}},initialContent:S,flags:{confirmed:!0},extra:{source:T,editor:e.editor}};return i(Pt(x)),x}}let g=null;try{g=await Us(e,a)}catch(_){const{data:S}=_;if(S.__ERROR.find(T=>[m.ERROR_CODES.JSON_MALFORMED,m.ERROR_CODES.JSON_MALFORMED_AT_LINE].includes(T.errCode))){const{confirmed:T}=await i(ar({title:"Corrupt file",type:m.ModalType.CONFIRM,color:m.ModalColor.WARNING,message:"Open in code editor ?"})).unwrap();if(T){const x=await m.getNodeInfo({verb:m.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:"text"}),{content:D,date:P,ext:j}=x;g={date:P,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(j),confirmed:!0},extra:{editor:m.EDITOR.Code},name:e.name,path:e.path,type:m.getTypeFromExtension(e.path),initialContent:D,content:D,history:{stack:[],active:-1,locked:!1}}}}}return g&&(e.path===m.ROLES_TAB_PATH&&!l.flags.touched?i(Yc({content:g.content,date:g.date})):e.path===m.SETTINGS_TAB_PATH&&i(Ws({path:"project",value:g.content})),i((r?Ov:Pt)({...g,isNew:t})),g)}),Kc=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(Pt(c)),c}const i=await Us(e);return t(Pt(i)),i}),Qg=Q("explorer/injectContentAtLine",async(e,{getState:r,dispatch:t,rejectWithValue:a})=>{const s=r();e.path.split("/").pop();const c=lt(s.explorer,e.path);if(!c)return a(`Error while trying to inject content in file ${e.path}`);const l=await Us({name:c.name,date:c.date||new Date().toISOString(),path:`${c.path}.${c.ext}`,type:m.FileFolderType.CLASS,editor:c.config.editor});return await t(Pt(l)),{...e,path:`${c.path}.${c.ext}`}}),ev=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(Pt(c)),c}const i=await Us(e);return t(Pt(i)),i}),pc=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 m.dropFile({root:m.FolderRootType.ROOT,type:Xg(t),verb:m.DesignerRequestVerb.DROP,name:r,path:i.join("/")}),node:e}}),iD=Q("explorer/deleteFolder",async e=>{const{path:r,flags:t}=e;if(t.error)return{deleted:!0,node:e};const{deleted:a}=await m.removeItem({force:!0,path:r,verb:m.DesignerRequestVerb.REMOVE_ITEM}).catch(console.error)||{deleted:!1};return{deleted:a,node:e}}),hc=Q("explorer/removeFileNode",async(e,{getState:r,dispatch:t})=>{const a=`${e.path}.${e.ext}`;if(await m.removeItem({verb:m.DesignerRequestVerb.REMOVE_ITEM,path:a,force:!0}).catch(console.error),e.path==="Classes/DataStore"&&setTimeout(()=>{t(Tn())},Cs),e.ext){const{tabs:s}=r().root,i=s.findIndex(c=>c.path===a);i>=0&&t(nl(i))}return{deleted:!0,node:e}}),Yn=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 m.moveItem({verb:m.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 m.moveItem({verb:m.DesignerRequestVerb.MOVE_ITEM,path:`${t.join("/")}/${e.name}`,newpath:`${t.join("/")}/${r}`}),{old:e,new:{...e,name:r,path:`${t.join("/")}/${r}`}}}),Da=Q("explorer/relocateNode",async({draggedNode:e,newLocation:r},{rejectWithValue:t})=>{try{await m.moveItem({verb:m.DesignerRequestVerb.MOVE_ITEM,path:`${e.path}.${e.ext}`,newpath:`${r.path}/${e.name}.${e.ext}`})}catch{return t("can't move item")}}),es=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:b})=>b===`${e.path}${e.ext?`.${e.ext}`:""}`),d=["4dm","4qm","4qs"].includes(e.ext),{content:p}=l||await m.getNodeInfo({verb:m.DesignerRequestVerb.GET_INFO,path:`${e.path}.${e.ext}`,content:!0,as:d?"text":"json"}),g=await m.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")}}),uD=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?m.toastSubject.next({message:`${((i=d.__NOTIFICATION)==null?void 0:i.message)||""}`,kind:`${((c=d.__NOTIFICATION)==null?void 0:c.type)||"info"}`}):m.toastSubject.next({message:"Method executed Successfully",kind:"message"}),d}catch(l){return m.toastSubject.next({message:l.message||`Error executing the method "**${e}**"`,kind:"danger",markdown:!0}),s("can't execute method")}}),cD=e=>{const{dataClasses:r,...t}=e;return{...t,dataClasses:r==null?void 0:r.map(a=>{let s={...a};if(s.uuid||(s={...s,uuid:m.generateUUID()}),s.attributes){const i=["storage","relatedEntity"],c=s.attributes.map(l=>i.includes(l.kind)&&!l.uuid?{...l,uuid:m.generateUUID()}:l);s={...s,attributes:[...c]}}return s})}},lD=Q("files/fetchFiles",async()=>m.getFolders(m.FolderRootType.WEBFORMS,m.FolderRootType.METHODS,m.FolderRootType.CLASSES)),Jc=Q("tabs/renameDatasource",async(e,{dispatch:r,getState:t})=>{var S,T;const a=!!e.datasourceNamespace,{confirmed:s}=await r(ar({message:"Are you sure you want to rename the datasource?",title:"Rename Datasource",type:m.ModalType.CONFIRM,color:m.ModalColor.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 b=[];if(a){const x=g.sharedDatasources.sources[l]||[];b.push(...x)}else if(p){const x=g.root.tabs.find(m.by("path",p));if(b=(T=(S=x==null?void 0:x.content)==null?void 0:S.metadata)==null?void 0:T.datasources,!b)return null}const _=new RegExp(`^${c}\\b`,"");if(b=b.map(x=>{const D=(m.isObjectDatasource(x)||!m.isSimpleDatasource(x))&&x.from&&_.test(x.from),P=x.events?x.events.map(j=>{var M,k,O,z;switch(j==null?void 0:j.type){case"method":{const q=j;return q.params?{...q,params:q.params.map(Y=>{var te;return{...Y,datasource:(te=Y.datasource)==null?void 0:te.replace(new RegExp(`^${c}`,""),d)}}),returns:(M=q.returns)!=null&&M.datasource?{...q.returns,datasource:(k=q.returns.datasource)==null?void 0:k.replace(new RegExp(`^${c}`,""),d)}:q.returns}:q}case"simple-action":{const q=j;return q.datasource?{...q,datasource:{...q.datasource,name:(O=q.datasource.name)==null?void 0:O.replace(new RegExp(`^${c}`,""),d),from:(z=q.datasource.from)==null?void 0:z.replace(new RegExp(`^${c}`,""),d)}}:q}default:return j}}):x.events;return x.id===c?{...x,id:d,events:P}:D&&x.from?{...x,from:x.from.replace(new RegExp(`^${c}`,""),d),events:P}:{...x,events:P}}),i){const x=a?`${l}:${c}`:`${c}`,D=a?`${l}:${d}`:`${d}`;m.datasourcesSubject.next({path:p??"",action:m.DatasourcesActions.RENAME,old_reference:x,new_reference:D,is_shared:a})}return{path:p,namespace:l,datasources:b}}),Xc=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(m.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)}),tv=Q("tabs/fetchChanges",async(e,{getState:r})=>{const a=ra(r()).filter(s=>[m.FileFolderType.METHOD,m.FileFolderType.CLASS].includes(s.type));return m.getFilesInfo(...a.map(s=>{const[i]=s.path.split("/").filter(Boolean);return{name:s.name,type:s.type,root:i,path:"."}}))}),fD=Q("files/saveAll",async(e,{getState:r,dispatch:t})=>{const a=Mc(r());for(const s of a)t(zn({tab:s}))}),Zc=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(ar({title:xs(i),message:"Your unsaved changes will be lost. Proceed anyway?",type:m.ModalType.CONFIRM,color:m.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!c)return!1}return t(nl(s)),i.path===m.ROLES_TAB_PATH&&i.flags.touched&&(async()=>{const l=await m.getNodeInfo({verb:m.DesignerRequestVerb.GET_INFO,path:m.ROLES_TAB_PATH,content:!0,as:"json"});t(Yc({content:l.content,date:l.date}))})(),!0}),dD=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(ar({title:"Closing other tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:m.ModalType.CONFIRM,color:m.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(Cv(e))}),pD=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(ar({title:"Closing all tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:m.ModalType.CONFIRM,color:m.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(wv())}),hD=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(ar({title:"Closing right tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:m.ModalType.CONFIRM,color:m.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(Tv(e))}),gD=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(ar({title:"Closing left tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:m.ModalType.CONFIRM,color:m.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(xv(e))}),gc=Q("files/reloadTab",async(e,{dispatch:r})=>{if(e.flags.touched){const{confirmed:s}=await r(ar({title:xs(e),message:"Changes made to the file will be lost. Continue?",type:m.ModalType.CONFIRM,color:m.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!s)return}const t=Gh(e.path),a=await m.getNodeInfo({verb:m.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:t});if(e.path===m.ROLES_TAB_PATH){const{roles:s,privileges:i}=js(a.content);r(zc({roles:s,privileges:i}))}else if(e.path===m.SETTINGS_TAB_PATH){const{content:s}=a;r(Ws({path:"project",value:s}))}else{const{content:s}=a;e.type===m.FileFolderType.WEBFORM?m.webformSubject.next({path:e.path,action:m.WebformActions.RELOAD,payload:s.components}):e.type===m.FileFolderType.MODEL&&Zh.next({action:"reload",payload:s})}return a}),zn=Q("files/saveTab",async({tab:e},{dispatch:r,getState:t})=>{let{path:a,content:s}=e;if(e.type===m.FileFolderType.DEBUGGER)return{...e,errors:[]};a.split("/").pop();const c=await m.getFilesInfo({path:a});if(c.files[0]){const b=new Date(e.date),_=new Date(c.files[0].date);if(b.getTime()<_.getTime()){const{confirmed:S}=await r(ar({title:xs(e),message:"New content has been found on the server. Are you sure you want to continue?",type:m.ModalType.CONFIRM,icon:"FdSave"})).unwrap();if(!S)return r(Ev({path:a,flags:{old:!0}})),null}}const l=vD(e,t()),d=await m.saveContent({verb:m.DesignerRequestVerb.SAVE_CONTENT,content:l,path:a});(e.type===m.FileFolderType.CLASS||e.type===m.FileFolderType.MODEL)&&setTimeout(()=>{r(Tn())},Cs);const p=(d.modelErrors||[]).map(b=>b.message),g=(d.permissionsErrors||[]).map(b=>b.message);return m.FileFolderType.MODEL===e.type&&(s=l),{...e,content:s,date:d.date,initialContent:s,errors:p.length>0||g.length>0?[{title:"Model errors",messages:p},{title:"Permissions errors",messages:g}]:[]}}),vD=(e,r)=>{switch(!0){case e.path==="settings.json":case e.path===m.SETTINGS_TAB_PATH:return r.settings.project;case e.type===m.FileFolderType.ROLES:return{...e.content,...Bs(r.roles)};case e.type===m.FileFolderType.MODEL:{const t=e.content||{toJSON:!0,dataClasses:[],extraProperties:{}};return cD(t)}default:return e.content}},Wp=async e=>{if(e.type===m.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 m.getFile({root:r,type:e.type,verb:m.DesignerRequestVerb.GET,name:e.name}),a={};t.type===m.FileFolderType.METHOD&&(a.attributes=m.parseAttributes(t.content));const{date:s,name:i,type:c,content:l}=t;return{date:s,flags:{enabled:e.type===m.FileFolderType.WEBFORM},extra:a,view:{panel:{isOpen:!1,type:"",current:""}},name:i,path:e.path,type:c,initialContent:l,content:c===m.FileFolderType.MODEL?Sh(l):l,history:{stack:[],active:-1,locked:!1}}},yD=Le.debounce((e,r)=>{r(Av(e))},300),mD=Q("tabs/setTabContent",(e,{getState:r,dispatch:t})=>{var c;const{root:{tabs:a}}=r(),s=a.find(l=>l.path===e.path),i=!!((c=s==null?void 0:s.history)!=null&&c.locked);t(al(e)),i?t(Pv(e.path)):yD(e.path,t)}),rv=Q("files/tryInjectMethod",async({type:e,dataclass:r},{getState:t,dispatch:a})=>{const{root:{tabs:s},settings:{server:{qodly:i}}}=t(),c=m.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(m.by("path",d));if(g)return a(Pt(g)),g;try{p=await Wp({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:m.FileFolderType.CLASS})}catch{r?await a(dc({type:"dataclass",className:r,collectionName:`${r}Selection`,toCreate:e})):await a(dc({type:"model"}))}return p=await Wp({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:m.FileFolderType.CLASS}),p.path=d,a(Pt(p)),p}),bD=Q("roles/open",async(e,{dispatch:r,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path===m.ROLES_TAB_PATH);if(s)return r(Pt(s)),s;r(bs())});function Up(e,r){const{line:t,offset:a,type:s="saved"}=r;e.breakpoints[s].locations.push({line:t}),Le.isNumber(a)&&(e.breakpoints[s].offset=a)}function Hp(e,r,t,a){e.breakpoints[t].locations=r,Le.isNumber(a)&&(e.breakpoints[t].offset=a)}function qp({filePath:e,fileType:r,methodName:t,className:a,ext:s,source:i}){return{filePath:e,fileType:r,methodName:t,className:a,ext:s,source:i,breakpoints:{draft:{locations:[],offset:0},saved:{locations:[],offset:0}}}}function Gp(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 Vo(e){return e.map(({label:r})=>({label:r}))}const nv=Gt({name:"debugger",initialState:()=>{var r,t;const{debugger:e={meta:{state:Ir.DETACHED},list:[],sessions:[],expressions:[]}}=Jn();return{meta:{...e.meta,state:((r=e.meta)==null?void 0:r.state)===Ir.ATTACHED?(t=e.meta)==null?void 0:t.state:Ir.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=wn(e.list,t,s,i);if(p)Up(p,d);else{if(a===m.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=qp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});Up(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(b=>b.line+g!==d),c==="saved"&&(p.breakpoints.draft.locations=p.breakpoints.draft.locations.filter(b=>b.line+g!==d))})}}else{const l=wn(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:b}=r.payload,_=wn(e.list,t,s);if(_)Hp(_,d,g,p),b&&g!=="draft"&&(_.breakpoints.draft.locations=[]);else{const S=qp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});Hp(S,d,g,p),e.list.push(S)}},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"||a==="any"?{locations:[],offset:0}:s.breakpoints.draft,saved:!a||a==="saved"||a==="any"?{locations:[],offset:0}:s.breakpoints.saved}:s.breakpoints}))},clearBreakpointsExcept(e,r){const{exceptedFilePath:t,type:a="saved"}=r.payload;e.list=e.list.map(s=>({...s,breakpoints:s.filePath!==t?{draft:!a||a==="draft"||a==="any"?{locations:[],offset:0}:s.breakpoints.draft,saved:!a||a==="saved"||a==="any"?{locations:[],offset:0}:s.breakpoints.saved}:s.breakpoints}))},clearAllBreakpoints(e){e.list=e.list.map(r=>({...r,breakpoints:{draft:{locations:[],offset:0},saved:{locations:[],offset:0}}}))},setActiveLine(e,r){const{threadId:t,line:a,highlight:s}=r.payload,i=ot(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=ot(e.sessions,t);i&&i.stopped&&(i.expressions=[...i.expressions||[],{label:a}],s&&(e.expressions=Vo(i.expressions)))},removeExpression(e,r){const{threadId:t,index:a,save:s}=r.payload,i=ot(e.sessions,t);i&&(i.expressions=i.expressions.filter((c,l)=>l!==a),s&&(e.expressions=Vo(i.expressions)))},removeAllExpressions(e,r){const{threadId:t,save:a}=r.payload,s=ot(e.sessions,t);s&&(s.expressions=[],a&&(e.expressions=[]))},renameExpression(e,r){const{threadId:t,index:a,replacement:s,save:i}=r.payload,c=ot(e.sessions,t);c&&c.expressions[a]&&(c.expressions[a].label=s,i&&(e.expressions=Vo(c.expressions)))},setExpression(e,r){const{threadId:t,expression:a}=r.payload,s=ot(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=ot(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=Vo(t)},addSession(e,r){const{threadId:t,channelId:a,stackFrames:s,exceptions:i=[]}=r.payload,c=ot(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:Gp((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:Gp((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=ot(e.sessions,t);s&&(s.currentStackFrame.source={...s.currentStackFrame.source,content:a})},setDebuggerMeta(e,r){if(r.payload.state===Ir.ERROR){e.meta.error={...e.meta.error,time:Date.now()};const{override:t,error:a={code:null,reason:"",type:ls.SOCKET_ERROR}}=r.payload;if((t||e.meta.state!==Ir.ERROR)&&(e.meta.error={...e.meta.error,...a}),(a==null?void 0:a.type)===ls.SOCKET_CLOSURE&&!(a!=null&&a.reason)&&e.meta.state===Ir.DETACHED)return}e.meta.state=r.payload.state}},extraReducers:e=>{e.addCase(ov.fulfilled,r=>{r.sessions=[]})}}),{addBreakpointDecoration:_D,removeBreakpointDecoration:SD,setBreakpointsDecoration:ED,clearBreakpoints:wD,clearBreakpointsExcept:TD,clearAllBreakpoints:CD,setActiveLine:xD,addExpression:RD,renameExpression:OD,removeExpression:AD,removeAllExpressions:PD,setExpression:DD,updateExpressionAt:ID,saveExpressions:FD,addSession:$D,updateSession:MD,removeSession:LD,removeSessionByIndex:ND,setSessions:av,setCallChainVariables:kD,setExpressionVariables:jD,setSourceContent:BD,setDebuggerMeta:WD}=nv.actions,ov=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(Zc(i))}}),sv=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(av(c)),{staleThreadIds:i}}),Qc=Q("models/fetch",async()=>{try{return(await m.http(m.API_PREFIX,{method:"POST",body:JSON.stringify({verb:m.DesignerRequestVerb.GET_INFO,path:m.MODEL_TAB_PATH,as:"json",content:!0}),headers:new Headers({"Content-Type":"application/json"})})).content}catch(e){return e.message}}),_s=Q("models/save",async(e,{getState:r,dispatch:t,rejectWithValue:a})=>{const{tabs:s}=r().root,i=s.find(c=>c.path===m.MODEL_TAB_PATH);if(!i)return a("Error while saving the model");try{const c=await m.http(m.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(Tn())},Cs),{...c,path:i.path,content:e.content||{toJSON:!0,dataClasses:[],extraProperties:{}}}}catch{return a("Error while saving the model")}}),UD=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(Pt(s)),s;r(Qc())}),HD=Q("model/rename-dataclass",async(e,{getState:r,dispatch:t})=>{var b,_;const{dataclassId:a,selectionId:s,name:i}=e;let c=r();const l=c.explorer.find(S=>S.path===m.FolderRootPath.CLASSES);if(!l)throw new Error("Classes folder was not found!");await t(_r(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=c.explorer.find(S=>S.path===m.FolderRootPath.CLASSES))==null?void 0:b.children)==null||_.forEach(S=>{S.name===d.class.filename_update&&(d.class.newNameTaken=!0),S.name===d.entity.filename_update&&(d.entity.newNameTaken=!0),S.name===d.selection.filename_update&&(d.selection.newNameTaken=!0),S.name===a?(d.class.found=!0,d.class.file=S):S.name===`${a}Entity`?(d.entity.found=!0,d.entity.file=S):S.name===s&&(d.selection.found=!0,d.selection.file=S)});const p=Object.entries(d).reduce((S,T)=>{const[x,D]=T;return D.found?D.newNameTaken?[...S,{type:"error",message:`Cannot rename ${x} file to ${D.filename_update} because it already exists. The existing file will be used instead!`}]:S:[...S,{type:"warning",message:`${a} ${x} file was not found`}]},[]);p.length>0&&t(ar({message:"The following errors were encountered during dataclass rename:",views:{tips:p}}));const g=Object.values(d).filter(S=>S.found&&S.file&&!S.newNameTaken);await Promise.all(g.map(async S=>await t(Yn({file:S.file,newname:S.filename_update})))),g.length>0&&t(_r("Classes"))}),ka={DATACLASS_DELETE:"dataclass.delete",DATACLASS_DRAGGABLE:"dataclass.draggable"},qD={model:{dataClasses:{},collections:{},extraProperties:{}},draft:{dataClasses:{},collections:{},extraProperties:{}},flags:{[ka.DATACLASS_DELETE]:!0,[ka.DATACLASS_DRAGGABLE]:!0}},iv=Gt({name:"Models",initialState:qD,reducers:{setModelFlag(e,r){e.flags={...e.flags,...r.payload}}},extraReducers(e){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(_s.pending,()=>{}).addCase(_s.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:GD}=iv.actions;var uv=(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))(uv||{}),Hs=(e=>(e.STORAGE="storage",e.RELATEDENTITY="relatedEntity",e.RELATEDENTITIES="relatedEntities",e.CALCULATED="calculated",e.COMPOSITION="composition",e.ALIAS="alias",e))(Hs||{});const YD=e=>["string","uuid","number","long"].includes(e.type),zD=[{label:"Storage",value:"storage"},{label:"Calculated",value:"calculated"}],VD=[{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"}],KD=[{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"}],JD=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],XD=[{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"}],QD=(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 eI(e,r,t){const a=e;let s=0;for(;t[`${a}${s||""}`];)s++;return`${a}${s||""}`}const cv=e=>e.kind===Hs.RELATEDENTITY,lv=e=>e.kind===Hs.RELATEDENTITIES,tI=e=>lv(e)||cv(e),rI=()=>kr(e=>e.model.draft.dataClasses),nI=()=>kr(e=>e.model.draft.collections),aI=e=>kr(r=>r.model.draft.dataClasses[e]),oI=(e,r)=>kr(t=>t.model.draft.dataClasses[e].attributes.find(m.by("name",r))),sI=()=>kr(e=>e.model.draft.extraProperties),iI=()=>{const e=kr(s=>s.model.flags),r=s=>s in e?e[s]:void 0,t=r(ka.DATACLASS_DELETE),a=r(ka.DATACLASS_DRAGGABLE);return{deleteDataclass:t,draggableDataclass:a,flags:e}},uI=iv.reducer;function Bu(e,r){const t=e.tabs.find(({path:a})=>a===m.SETTINGS_TAB_PATH);t&&(t.flags.touched=r)}const fv={SIDEBAR_SECTION_RESIZABLE:"sidebar.section.resizable"},dv={[fv.SIDEBAR_SECTION_RESIZABLE]:!0},pv=Gt({name:"webforms",initialState:()=>{const{webforms:e}=Jn();return{...e,templates:{data:[],selectedGroup:""},datasources:{...Oc.webforms.datasources,...e==null?void 0:e.datasources},flags:dv}},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(bv.fulfilled,(r,t)=>{r.components=t.payload})}}),{toggleInspector:cI,inspect:lI,addComponent:hv,editComponent:gv,removeComponent:vv,setSelectedGroup:fI,setTemplatesData:yv,setTemplateData:mv,setDatasourcesTheme:dI,setWebformsFlag:pI}=pv.actions,hI=pv.reducer,el=Le.curry((e,r)=>{var s,i;const t={...r.sharedDatasources.sources},a=(i=((s=r.root.tabs.find(m.by("path",e)))==null?void 0:s.content).metadata)==null?void 0:i.datasources;return a&&(t[e]=a),Le.cloneDeep(t)}),gI=Q("webforms/fetchTemplates",async(e,{dispatch:r,getState:t})=>{const{data:a}=t().webforms.templates,s=t().settings.session["studio.tipsBaseUrl"]||"";if(!Le.isEmpty(a))return a;try{const c=await(await fetch(`${s}/build/index.json?t=${Date.now()}`)).json();return r(yv(c)),c}catch{return[]}}),vI=Q("webforms/fetchTemplate",async({name:e},{dispatch:r,getState:t})=>{const{data:a}=t().webforms.templates,s=a.find(i=>i.group===e);if(s&&!Le.isEmpty(s.components))return s.components;try{const c=await(await fetch(`${s==null?void 0:s.link}?t=${Date.now()}`)).json();return r(mv({group:e,components:c})),c}catch{return[]}}),bv=Q("webforms/fetchCraftedComponents",async(e,{rejectWithValue:r})=>{try{return(await m.getNodeInfo({path:"WebForms/crafted_components.json",verb:m.DesignerRequestVerb.GET_INFO,content:!0,as:"json"})).content}catch{return r("Error while loading the crafted components")}}),yI=Q("webforms/addCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(hv(e));const{webforms:{components:s}}=a();m.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(gv(e));const{webforms:{components:s}}=a();m.setCraftedComponents(s)}catch{return t("Error while editing the crafted component")}}),bI=Q("webforms/removeCraftedComponent",async(e,{dispatch:r,rejectWithValue:t,getState:a})=>{try{r(vv(e));const{webforms:{components:s}}=a();m.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 m.setSharedSources(p)}else(((s=(a=i.root.tabs.find(m.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=Le.defaultTo(l[a||s],[]);return d=d.map(p=>p.id===e.id?{...p,[e.property]:e.value}:p),c&&await m.setSharedSources({...i.sharedDatasources.sources,[e.namespace]:d}),{list:d,path:e.path,namespace:e.namespace}}catch{t(`Error while editing datasource ${e.id}`)}}),_I=e=>e.type===Vn.fulfilled.type,Vn=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=Le.defaultTo(c[i],[]),d=new RegExp(`^${e.id}\\b`,"");if(l.forEach(p=>{var b;const g=(m.isObjectDatasource(p)||!m.isSimpleDatasource(p))&&p.from&&d.test(p.from);e.updateRefs&&((b=p.events)==null||b.forEach(_=>{var S,T,x,D,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:(T=(S=j.returns)==null?void 0:S.datasource)==null?void 0:T.replace(new RegExp(`^${e.id}`,""),e.new_name)});return}case"simple-action":{const j=_;j.datasource&&Object.assign(j.datasource,{name:(x=j.datasource.name)==null?void 0:x.replace(new RegExp(`^${e.id}`,""),e.new_name),from:(D=j.datasource.from)==null?void 0:D.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=m.getDatasourceId({id:e.id,namespace:e.namespace}),g=m.getDatasourceId({id:e.new_name,namespace:e.namespace});m.datasourcesSubject.next({path:e.path??"",action:m.DatasourcesActions.RENAME,old_reference:p,new_reference:g,is_shared:s})}return s&&await m.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}`)}}),Ia=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(m.outById(e.id));return s&&await m.setSharedSources({...a.sharedDatasources.sources,[e.namespace]:l}),{list:l,path:e.path,namespace:e.namespace}}catch{return t(`Error while removing datasource ${e.id}`)}}),ts=Q("saved_conditions/fetchSavedConditions",async(e,{rejectWithValue:r})=>{try{const{conditions:t}=await m.getSavedConditions();return t}catch{return r("Error while loading the shared conditions")}}),SI=m.queue();async function Ko(e){const r={verb:m.DesignerRequestVerb.SET_FILE_CONTENT,asText:!1,name:"saved_conditions.json",path:"",root:"shared",content:{conditions:e}};await SI(()=>m.http(m.API_PREFIX,{method:"POST",body:JSON.stringify(r),headers:new Headers({"Content-Type":"application/json"})}))}const qs=(e,r)=>{if(e.id===r)return null;if(e.type==="reference"&&e.ref===r)return null;if(e.type==="combination"&&e.conditions){const t=e.conditions.map(a=>qs(a,r)).filter(Boolean);return t.length===1?{...t[0],id:e.id}:{...e,conditions:t}}return e},Gs=e=>{if(e.id){if(e.type==="combination"&&e.conditions)return{...e,conditions:e.conditions.map(Gs)}}else return{...e,id:Na.generate()};return e},_v=Gt({name:"shared-conditions",initialState:{state:"unknown",conditions:[]},reducers:{updateSavedConditions:(e,r)=>(e.conditions=r.payload.conditions,Ko(r.payload.conditions),e),setSavedCondition:(e,r)=>{const{payload:t}=r;return e.conditions=e.conditions.map(a=>a.id===t.id?{...Gs(t.condition),id:a.id}:a),Ko(e.conditions),e},addSavedCondition:(e,r)=>(e.conditions=[...e.conditions,r.payload],Ko(e.conditions),e),removeSavedCondition:(e,r)=>{const{id:t}=r.payload;return e.conditions=e.conditions.map(a=>qs(a,t)).filter(Boolean),Ko(e.conditions),e},initSavedConditions:(e,r)=>(e.conditions=r.payload.conditions,e)},extraReducers(e){e.addCase(ts.pending,r=>({...r,state:"loading"})).addCase(ts.fulfilled,(r,{payload:t})=>({state:"loaded",conditions:t})).addCase(ts.rejected,(r,t)=>({...r,state:"error",error:t.payload||"Error while loading the shared conditions"}))}}),{updateSavedConditions:EI,setSavedCondition:wI,addSavedCondition:TI,removeSavedCondition:Sv,initSavedConditions:CI}=_v.actions,xI=_v.reducer,ja=Gt({name:"root",initialState:()=>{const e=Jn();return{filesLoading:!1,tabs:e.tabs||[],activeTab:e.activeTab,recent:e.recent||[]}},reducers:{setPanelState(e,r){const{path:t,...a}=r.payload;e.tabs.forEach(s=>{s.path===t&&(s.view||(s.view={panel:{isOpen:!1,type:"",current:""}}),Object.assign(s.view.panel,a))})},openSettingsTab(e){const r={date:new Date().toISOString(),flags:{confirmed:!0},view:{panel:{isOpen:!1,type:"",current:""}},extra:{editor:{key:"editors:settings"}},name:"Settings",path:m.SETTINGS_TAB_PATH,type:m.FileFolderType.SETTINGS,initialContent:{},content:{}};let t=e.tabs.find(a=>a.path===r.path);if(t||(e.tabs.push(r),t=e.tabs[e.tabs.length-1]),e.activeTab!==r.path){const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);e.activeTab=r.path,t.weight=((a==null?void 0:a.weight)||0)+1}},addDataSource(e,r){var i;const{payload:{path:t,datasourceDef:a}}=r,s=e.tabs.find(c=>c.path===t);s&&(s.content.metadata.datasources=s.content.metadata.datasources||[],(i=s.content.metadata.datasources)!=null&&i.find(l=>l.id===a.id)||(s.content.metadata.datasources=[...s.content.metadata.datasources,{...a,events:[]}],s.flags={...s.flags,touched:!0,confirmed:!0}))},addWebformState(e,r){var i;const{payload:{path:t,stateDef:a}}=r,s=e.tabs.find(c=>c.path===t);s&&(s.content.metadata.states=s.content.metadata.states||[kc],(i=s.content.metadata.states)!=null&&i.find(l=>l.id===a.id)||(s.content.metadata.states=[...s.content.metadata.states,a],s.flags={...s.flags,touched:!0,confirmed:!0}))},removeWebformState(e,r){const{path:t,id:a}=r.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:wh(s.content,a)}:s)},editWebformState(e,r){const{path:t,state:a}=r.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:{...s.content,metadata:{...s.content.metadata,states:s.content.metadata.states.map(i=>i.id===a.id?a.conditions?{...a,conditions:Gs(a.conditions)}:a:i)}}}:s)},resetComponentState(e,r){const{path:t,id:a,state:s}=r.payload;e.tabs=e.tabs.map(i=>i.path===t?{...i,flags:{...i.flags,touched:!0,confirmed:!0},content:{...i.content,components:{...i.content.components,[a]:{...i.content.components[a],custom:{...Le.omit(i.content.components[a].custom,`states:${s.id}`)}}}}}:i)},setDefaultWebformStates(e,r){const{path:t,states: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,defaultStates:a.map(({id:i})=>i)}}}:s)},removeDataSource(e,r){const{path:t,datasourceID:a}=r.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:{...s.content,metadata:{...s.content.metadata,datasources:s.content.metadata.datasources.filter(i=>i.id!==a)}}}:s)},setDataSources(e,r){const{payload:{path:t,datasourceArr:a}}=r;e.tabs=e.tabs.map(s=>{var i;return s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:{...s.content,metadata:{...(i=s.content)==null?void 0:i.metadata,datasources:a}}}:s})},setTabs(e,r){e.tabs=r.payload},closeTab(e,r){const t=r.payload;e.tabs.splice(t,1);const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);e.activeTab=(a==null?void 0:a.path)||""},closeOthers(e,r){e.tabs=e.tabs.filter(t=>t.path===r.payload),e.activeTab=r.payload},closeAllTabs(e){e.tabs=[],e.activeTab=""},closeRightTabs(e,r){e.tabs.splice(r.payload+1),e.activeTab=e.tabs[r.payload].path},closeLeftTabs(e,r){e.tabs.splice(0,r.payload)},closeSavedTabs(e){e.tabs=e.tabs.filter(({flags:{touched:t}})=>t);const r=e.tabs.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null);e.activeTab=(r==null?void 0:r.path)||""},confirmTab(e,r){const t=e.tabs.find(({path:a})=>a===r.payload);t&&(t.flags.confirmed||ja.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=[m.FileFolderType.DEBUGGER],{isNew:a,...s}=r.payload;let i=s,c=e.tabs.find(({path:l})=>i.path===l);if(i.history||(i.history={stack:[],active:-1,locked:!1}),(t.includes(i.type)||c!=null&&c.flags.confirmed)&&(i={...i,flags:{...i.flags,confirmed:!0}}),!c){const l=e.tabs.findIndex(({flags:{confirmed:d}})=>d===!1);l!==-1&&!t.includes(i.type)&&!a?e.activeTab===e.tabs[l].path?(e.tabs[l]=i,c=e.tabs[l]):(e.tabs.push(i),c=e.tabs[e.tabs.length-1],e.tabs.splice(l,1)):(e.tabs.push(i),c=e.tabs[e.tabs.length-1])}if(e.activeTab!==i.path){const l=e.tabs.reduce((d,p)=>(p==null?void 0:p.weight)>((d==null?void 0:d.weight)||0)?p:d,null);e.activeTab=i.path,c.weight=((l==null?void 0:l.weight)||0)+1}c.extra={...c.extra,...i.extra},c.flags={...c.flags||{},...i.flags||{}}},setContent(e,r){const{path:t,content:a,contentPath:s}=r.payload;e.tabs=e.tabs.map(i=>{if(i.path!==t)return i;let c=!1,l=i.flags.confirmed;if(typeof a=="string")c=i.initialContent!==a,l=!l&&c?!0:l;else{const d=JSON.stringify(Le.get(i.initialContent,s||"",i.initialContent)),p=JSON.stringify(Le.get(a,s||"",a));c=d!==p,l=!l&&c?!0:l}return a&&typeof a=="object"&&(s?Le.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},setHistoryContent(e,r){const t=r.payload;e.tabs=e.tabs.map(a=>{var s;return a.path!==t?a:(a.history&&(a.history.stack=[...(s=a.history)==null?void 0:s.stack.slice(0,a.history.active+1),a.content],a.history.active=a.history.stack.length-1),{...a})})},unlockHistory(e,r){const t=r.payload;e.tabs=e.tabs.map(a=>a.path!==t?a:(a.history&&(a.history.locked=!1),{...a}))},undo(e){e.tabs=e.tabs.map(r=>r.path!==e.activeTab?r:(r.history&&r.history.active>0&&(r.history.locked=!0,r.history.active--,r.content=r.history.stack[r.history.active]),{...r}))},redo(e){e.tabs=e.tabs.map(r=>r.path!==e.activeTab?r:(r.history&&r.history.active<r.history.stack.length-1&&(r.history.locked=!0,r.history.active++,r.content=r.history.stack[r.history.active]),{...r}))}},extraReducers:e=>{e.addCase(cc,(r,t)=>{if(t.payload.settingsKey==="studio.enablePreview"&&t.payload.value===!1){const a=r.tabs.find(({flags:{confirmed:s}})=>s===!1);a&&ja.caseReducers.setTabFlags(r,{type:"",payload:{path:a.path,flags:{confirmed:!0}}})}}),e.addCase(Qg.fulfilled,(r,t)=>{if(!t.payload)return;const{content:a,line:s,path:i}=t.payload,c=r.tabs.find(l=>l.path===i);if(c&&typeof c.content=="string"){const l=c.content.trim().split(`
|
|
100
100
|
`);l.splice(s,0,a),c.content=l.join(`
|
|
101
|
-
`)}}),e.addCase(zn.pending,(r,t)=>{const{tab:a}=t.meta.arg;switch(a.type){case m.FileFolderType.CLASS:case m.FileFolderType.METHOD:m.lspSubject.next({action:m.LspActions.WILL_SAVE,payload:{filePath:a.path}});break}}),e.addCase(zn.fulfilled,(r,t)=>{if(!t.payload)return;const a=r.tabs.find(({path:s})=>{var i;return s===((i=t.payload)==null?void 0:i.path)});if(a){switch(a.content=t.payload.content,a.date=t.payload.date,a.initialContent=t.payload.initialContent,a.flags.touched=!1,a.flags.confirmed=!0,a.flags.old=!1,a.type){case m.FileFolderType.CLASS:case m.FileFolderType.METHOD:m.lspSubject.next({action:m.LspActions.DID_SAVE,payload:{filePath:a.path,content:a.content}});break}t.payload.errors.length>0&&m.toastSubject.next({kind:"error",message:t.payload.errors})}}),e.addCase(zn.rejected,(
|
|
101
|
+
`)}}),e.addCase(zn.pending,(r,t)=>{const{tab:a}=t.meta.arg;switch(a.type){case m.FileFolderType.CLASS:case m.FileFolderType.METHOD:m.lspSubject.next({action:m.LspActions.WILL_SAVE,payload:{filePath:a.path}});break}}),e.addCase(zn.fulfilled,(r,t)=>{if(!t.payload)return;const a=r.tabs.find(({path:s})=>{var i;return s===((i=t.payload)==null?void 0:i.path)});if(a){switch(a.content=t.payload.content,a.date=t.payload.date,a.initialContent=t.payload.initialContent,a.flags.touched=!1,a.flags.confirmed=!0,a.flags.old=!1,a.type){case m.FileFolderType.CLASS:case m.FileFolderType.METHOD:m.lspSubject.next({action:m.LspActions.DID_SAVE,payload:{filePath:a.path,content:a.content}});break}t.payload.errors.length>0&&m.toastSubject.next({kind:"error",message:t.payload.errors})}}),e.addCase(zn.rejected,()=>{m.toastSubject.next({kind:"danger",message:"Cannot save file"})}),e.addCase(tv.fulfilled,(r,t)=>{const a=[...t.payload.files];r.tabs=r.tabs.map(s=>{if([m.FileFolderType.CLASS,m.FileFolderType.METHOD].includes(s.type)){const i=a.find(c=>c.name===s.name&&c.type===s.type);if(i){const c=new Date(s.date),l=new Date(i.date);if(c.getTime()!==l.getTime())return{...s,flags:{...s.flags,old:!0}}}}return s})}),e.addCase(gc.pending,(r,t)=>{r.tabs=r.tabs.map(a=>a.path===t.meta.arg.path?{...a,flags:{...a.flags,loading:!0}}:a)}),e.addCase(gc.fulfilled,(r,t)=>{const a=t.payload;if(a){const s=t.meta.arg;r.tabs=r.tabs.map(i=>{if(i.name===s.name&&i.type===s.type){const c=i.extra||{};return i.type===m.FileFolderType.METHOD?(c.attributes=m.parseAttributes(a.content),a.content=m.addAttributesToContent(a.content,{})):i.type===m.FileFolderType.SETTINGS&&(a.content={}),{...i,initialContent:a.content,content:a.content,date:a.date,flags:{enabled:i.flags.enabled,confirmed:i.flags.confirmed},extra:c}}return i})}}),e.addCase(Kc.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(ev.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(Yn.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(pc.pending,(r,t)=>{const a=t.meta.arg,s=`${a.path}${a.ext?`.${a.ext}`:""}`;switch(a.ext){case"4dm":case"4qs":m.lspSubject.next({action:m.LspActions.WILL_DELETE,payload:{filePath:s}});break}}),e.addCase(pc.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":m.lspSubject.next({action:m.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(hc.pending,(r,t)=>{const a=t.meta.arg,s=`${a.path}${a.ext?`.${a.ext}`:""}`;switch(a.ext){case"4dm":case"4qs":m.lspSubject.next({action:m.LspActions.WILL_DELETE,payload:{filePath:s}});break}}),e.addCase(hc.fulfilled,(r,t)=>{const{node:a}=t.payload,s=`${a.path}${a.ext?`.${a.ext}`:""}`;switch(a.ext){case"4dm":case"4qs":m.lspSubject.next({action:m.LspActions.DID_DELETE,payload:{filePath:s}});break}}),e.addCase(Da.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(_s.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(rv.fulfilled,(r,t)=>{var i;if(!((i=t.payload)!=null&&i.path))return;const a=r.tabs.find(m.by("path",t.payload.path));if(!a)return;a.content=a.content+`
|
|
102
102
|
exposed Function ${t.meta.arg.name}()
|
|
103
103
|
`,a.flags={...a.flags,touched:!0,confirmed:!0};const s=a.content.split(`
|
|
104
|
-
`);a.extra={...a.extra,editor:m.EDITOR.Code,initialLineInfo:{line:s.length-1,lastModification:Date.now()}}}),e.addCase(Vc.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(m.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(Kc.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(av.fulfilled,(r,t)=>{const{staleThreadIds:a}=t.payload;if(a.length===0)return;const s=a.map(i=>`Debugger/${i}`);if(r.tabs=r.tabs.filter(i=>!s.includes(i.path)),r.recent=r.recent.filter(({path:i})=>!s.includes(i)),r.tabs.length){r.activeTab=r.tabs[r.tabs.length-1].path;return}r.activeTab=""}),e.addCase(Yc.pending,r=>ku(r,!1)),e.addMatcher(dr(ic),(r,t)=>{["project"].includes(t.payload.path)&&ku(r,!0)}),e.addMatcher(dr(Ws),(r,t)=>{ku(r,!1)}),e.addMatcher(dr(wv,Pt),(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(dr(Ug,Wg),(r,t)=>{r.tabs=r.tabs.map(a=>a.path===m.ROLES_TAB_PATH?{...a,flags:{...a.flags,confirmed:!0,touched:!0}}:a)}),e.addMatcher(dr(Gc),(r,t)=>{r.tabs=r.tabs.map(a=>a.path===m.ROLES_TAB_PATH?{...a,flags:{...a.flags,touched:!1}}:a)}),e.addMatcher(dr(Qc.fulfilled,el.fulfilled,Ia.fulfilled,Vn.fulfilled),(r,t)=>{var s,i,c;const a=r.tabs.find(m.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(dr(Ia.fulfilled,Vn.fulfilled),(r,t)=>{var l;const a=r.tabs.find(m.by("path",((l=t.payload)==null?void 0:l.path)||t.meta.arg.path));if(!a)return;const{panel:s}=a.view,i=m.getDatasourceId({id:t.meta.arg.id,namespace:t.meta.arg.namespace});if(s.type==="datasource"&&s.current===i)switch(t.type){case Ia.fulfilled.type:Object.assign(a.view.panel,{type:"component",current:vR});break;case Vn.fulfilled.type:const d=m.getDatasourceId({id:t.meta.arg.new_name,namespace:t.meta.arg.namespace});Object.assign(a.view.panel,{type:"datasource",current:d});break}})}}),{setTabs:yI,closeTab:tl,setContent:rl,setTabFlags:mv,setTabsFlags:mI,setTabExtra:bI,closeAllTabs:bv,addDataSource:_I,closeRightTabs:_v,closeOthers:Ev,closeLeftTabs:Sv,closeSavedTabs:EI,setDataSources:SI,removeDataSource:wI,confirmTab:TI,selectTab:wv,selectTabByReference:Pt,openTabUnselected:Tv,addWebFormStyles:CI,changeTabEditor:xI,openSettingsTab:RI,setPanelState:OI,addWebformState:AI,editWebformState:PI,removeWebformState:DI,setHistoryContent:Cv,unlockHistory:xv,undo:II,redo:FI}=ka.actions,Rv=ka.reducer,$I=tv.reducer,wn=Q("catalog/fetchCatalog",async(e,{rejectWithValue:r})=>{var t;try{const a=await m.getCatalog(),s=new Map,i=new Map;return(t=a==null?void 0:a.dataClasses)==null||t.forEach(({methods:c=[],...l})=>{if(l.uuid||Object.assign(l,{uuid:m.generateUUID()}),l.attributes){const p=["storage","relatedEntity"];l.attributes=l.attributes.map(g=>(p.includes(g.kind)&&!g.uuid&&Object.assign(g,{uuid:m.generateUUID()}),g))}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")}}),MI=Gt({name:"catalog",initialState:{state:"loading"},reducers:{},extraReducers(e){e.addCase(wn.pending,()=>({state:"loading"})).addCase(wn.fulfilled,(r,{payload:t})=>({state:"loaded",model:t})).addCase(wn.rejected,(r,t)=>({state:"error",error:t.payload||"Error while loading the catalog"}))}}),LI=MI.reducer,NI=$g.reducer,es=Q("shared_datasources/fetchSharedSources",async(e,{rejectWithValue:r})=>{try{return await m.getSharedDatasources()}catch{return r("Error while loading the shared datasources")}}),Ov=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 m.setSharedSources(a.sources),a.sources}catch{return r("Error while saving the shared datasources")}}),Av=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 m.setSharedSources(a.sources),a.sources}catch{return r("Error while saving the shared datasources")}}),Pv=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 m.setSharedSources(a.sources),a.sources}catch{return r("Error while saving the shared datasources")}}),nl=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 m.setSharedSources(a.sources),a.sources}catch{return r("Error while saving the shared datasources")}}),kI=Q("shared_datasources/setDatasourceEvents",async({tabPath:e,name:r,namespace:t,events:a},{getState:s,dispatch:i})=>{var E,T,x;const{root:{tabs:c},sharedDatasources:l}=s(),d=((x=(T=(E=c.find(({path:D})=>D===e))==null?void 0:E.content)==null?void 0:T.metadata)==null?void 0:x.datasources)||[],p={local:!1,shared:!1},g=(D,P)=>D.id===r&&(!t&&!D.namespace||D.namespace===t)?(P==null||P(),{...D,events:a}):D,b=d.map(D=>g(D,()=>{p.local=!0})),_=We.flatten(We.values(l.sources)).map(D=>g(D,()=>{p.shared=!0}));p.local&&i(rl({path:e,content:b,contentPath:"metadata.datasources"})),p.shared&&i(nl(_))}),Dv=Gt({name:"shared-datasources",initialState:{},reducers:{addEmptyNamespace(e,r){e.sources[r.payload.name]=[]}},extraReducers(e){e.addCase(es.pending,r=>({state:"loading",sources:{}})).addCase(es.fulfilled,(r,t)=>({state:"loaded",sources:t.payload})).addCase(es.rejected,(r,t)=>({state:"error",sources:{},error:t.payload||"Error while loading the shared datasources"})).addCase(nl.fulfilled,(r,t)=>({state:"loaded",sources:t.payload})).addCase(Kc.fulfilled,(r,t)=>{const{payload:a,meta:{arg:s}}=t;s.namespace&&Object.assign(r.sources,{[s.namespace]:a})}).addCase(Ov.fulfilled,(r,t)=>({...r,sources:t.payload})).addCase(Pv.fulfilled,(r,t)=>({...r,sources:t.payload})).addCase(Av.fulfilled,(r,t)=>({...r,sources:t.payload})).addCase(Vc.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(dr(Qc.fulfilled,Ia.fulfilled,el.fulfilled,Vn.fulfilled),(r,t)=>{if(!t.payload)return;const{namespace:a,list:s}=t.payload;a&&Object.assign(r.sources,{[a]:s})})}}),{addEmptyNamespace:jI}=Dv.actions,BI=Dv.reducer,ts=Q("shared_conditions/fetchSharedConditions",async(e,{rejectWithValue:r})=>{try{const{conditions:t}=await m.getSharedConditions();return t}catch{return r("Error while loading the shared conditions")}}),WI=m.queue();async function Vo(e){const r={verb:m.DesignerRequestVerb.SET_FILE_CONTENT,asText:!1,name:"shared_conditions.json",path:"",root:"shared",content:{conditions:e}};await WI(()=>m.http(m.API_PREFIX,{method:"POST",body:JSON.stringify(r),headers:new Headers({"Content-Type":"application/json"})}))}const Iv=Gt({name:"shared-conditions",initialState:{state:"unknown",conditions:[]},reducers:{updateSharedConditions:(e,r)=>(e.conditions=r.payload.conditions,Vo(r.payload.conditions),e),setSharedCondition:(e,r)=>(e.conditions=e.conditions.map(t=>t.id===r.payload.id?{...r.payload.condition,id:t.id}:t),Vo(e.conditions),e),addSharedCondition:(e,r)=>(e.conditions=[...e.conditions,r.payload],Vo(e.conditions),e),removeSharedCondition:(e,r)=>(e.conditions=e.conditions.filter(t=>t.id!==r.payload.id),Vo(e.conditions),e),initSharedConditions:(e,r)=>(e.conditions=r.payload.conditions,e)},extraReducers(e){e.addCase(ts.pending,r=>({...r,state:"loading"})).addCase(ts.fulfilled,(r,{payload:t})=>({state:"loaded",conditions:t})).addCase(ts.rejected,(r,t)=>({...r,state:"error",error:t.payload||"Error while loading the shared conditions"}))}}),{updateSharedConditions:UI,setSharedCondition:HI,addSharedCondition:qI,removeSharedCondition:GI,initSharedConditions:YI}=Iv.actions,zI=Iv.reducer,VI=Gg.reducer,rs=Q("shared_css/fetchSharedCSS",async(e,{rejectWithValue:r})=>{try{const{classes:t}=await m.getSharedCSS();return t}catch{return r("Error while loading the shared CSS")}}),KI=m.queue();async function JI(e){const r={verb:m.DesignerRequestVerb.SET_FILE_CONTENT,asText:!1,name:"shared_css.json",path:"",root:"shared",content:{classes:e.map(({scope:t,...a})=>({...a}))}};await KI(()=>m.http(m.API_PREFIX,{method:"POST",body:JSON.stringify(r),headers:new Headers({"Content-Type":"application/json"})}))}const Fv=Gt({name:"shared-css",initialState:()=>{const{sharedCSS:e}=Jn();return e||{state:"loading",styles:[]}},reducers:{updateSharedCss:(e,r)=>(e.styles=r.payload.classes,JI(r.payload.classes),e),initSharedCss:(e,r)=>(e.styles=r.payload.classes,e)},extraReducers(e){e.addCase(rs.pending,r=>({...r,state:"loading"})).addCase(rs.fulfilled,(r,{payload:t})=>({state:"loaded",styles:t})).addCase(rs.rejected,(r,t)=>({...r,state:"error",error:t.payload||"Error while loading the shared css"}))}}),{updateSharedCss:XI,initSharedCss:ZI}=Fv.actions,QI=Fv.reducer,eF={},tF=Gt({name:"tabs",initialState:eF,reducers:{}}),rF=e=>U(ra,r=>{var t,a;return(a=(t=r.find(s=>s.path===e))==null?void 0:t.view)==null?void 0:a.panel});tF.reducer;const $v=Xp({root:Rv,explorer:VI,debugger:$I,settings:qP,catalog:LI,roles:BP,sharedDatasources:BI,sharedConditions:zI,webforms:lI,modals:NI,sharedCSS:QI,model:aI});let Ta;const Mv=()=>(Ta||(Ta=Ww({reducer:$v}),Ta.subscribe(e1(()=>{const{root:{activeTab:e,tabs:r,recent:t},roles:a,debugger:s,webforms:i,sharedCSS:c,settings:{session:l}}=Ta.getState();yh({...l}),vh({tabs:r,activeTab:e,recent:t,roles:a,debugger:s,webforms:i,sharedCSS:c})},1e3))),Ta);var hc={exports:{}},Hn={};/** @license React v17.0.2
|
|
104
|
+
`);a.extra={...a.extra,editor:m.EDITOR.Code,initialLineInfo:{line:s.length-1,lastModification:Date.now()}}}),e.addCase(Jc.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(m.by("path",a));!s||!s.content||!s.content.metadata||(Object.assign(s.content.metadata,{datasources:t.payload.datasources}),s.flags.touched=!0,s.flags.confirmed=!0)}),e.addCase(Xc.fulfilled,(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(sv.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(Vc.pending,r=>Bu(r,!1)),e.addCase(Sv,(r,t)=>{const{id:a}=t.payload;r.tabs=r.tabs.map(s=>({...s,content:{...s.content,metadata:{...s.content.metadata,states:(s.content.metadata.states||[]).map(i=>{if(i.conditions){const c=qs(i.conditions,a);return c?{...i,conditions:c}:Le.omit(i,"conditions")}return i})}}}))}),e.addMatcher(dr(cc),(r,t)=>{["project"].includes(t.payload.path)&&Bu(r,!0)}),e.addMatcher(dr(Ws),r=>{Bu(r,!1)}),e.addMatcher(dr(Rv,Pt),(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(dr(qg,Hg),r=>{r.tabs=r.tabs.map(t=>t.path===m.ROLES_TAB_PATH?{...t,flags:{...t.flags,confirmed:!0,touched:!0}}:t)}),e.addMatcher(dr(zc),r=>{r.tabs=r.tabs.map(t=>t.path===m.ROLES_TAB_PATH?{...t,flags:{...t.flags,touched:!1}}:t)}),e.addMatcher(dr(tl.fulfilled,rl.fulfilled,Ia.fulfilled,Vn.fulfilled),(r,t)=>{var s,i,c;const a=r.tabs.find(m.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(dr(Ia.fulfilled,Vn.fulfilled),(r,t)=>{var l;const a=r.tabs.find(m.by("path",((l=t.payload)==null?void 0:l.path)||t.meta.arg.path));if(!a)return;const{panel:s}=a.view,i=m.getDatasourceId({id:t.meta.arg.id,namespace:t.meta.arg.namespace});if(s.type==="datasource"&&s.current===i)switch(t.type){case Ia.fulfilled.type:Object.assign(a.view.panel,{type:"component",current:bR});break;case Vn.fulfilled.type:const d=m.getDatasourceId({id:t.meta.arg.new_name,namespace:t.meta.arg.namespace});Object.assign(a.view.panel,{type:"datasource",current:d});break}})}}),{setTabs:RI,closeTab:nl,setContent:al,setTabFlags:Ev,setTabsFlags:OI,setTabExtra:AI,closeAllTabs:wv,addDataSource:PI,closeRightTabs:Tv,closeOthers:Cv,closeLeftTabs:xv,closeSavedTabs:DI,setDataSources:II,removeDataSource:FI,confirmTab:$I,selectTab:Rv,selectTabByReference:Pt,openTabUnselected:Ov,addWebFormStyles:MI,changeTabEditor:LI,openSettingsTab:NI,setPanelState:kI,addWebformState:jI,editWebformState:BI,removeWebformState:WI,resetComponentState:UI,setDefaultWebformStates:HI,setHistoryContent:Av,unlockHistory:Pv,undo:qI,redo:GI}=ja.actions,Dv=ja.reducer,YI=nv.reducer,Tn=Q("catalog/fetchCatalog",async(e,{rejectWithValue:r})=>{var t;try{const a=await m.getCatalog(),s=new Map,i=new Map;return(t=a==null?void 0:a.dataClasses)==null||t.forEach(({methods:c=[],...l})=>{if(l.uuid||Object.assign(l,{uuid:m.generateUUID()}),l.attributes){const p=["storage","relatedEntity"];l.attributes=l.attributes.map(g=>(p.includes(g.kind)&&!g.uuid&&Object.assign(g,{uuid:m.generateUUID()}),g))}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")}}),zI=Gt({name:"catalog",initialState:{state:"loading"},reducers:{},extraReducers(e){e.addCase(Tn.pending,()=>({state:"loading"})).addCase(Tn.fulfilled,(r,{payload:t})=>({state:"loaded",model:t})).addCase(Tn.rejected,(r,t)=>({state:"error",error:t.payload||"Error while loading the catalog"}))}}),VI=zI.reducer,KI=Lg.reducer,rs=Q("shared_datasources/fetchSharedSources",async(e,{rejectWithValue:r})=>{try{return await m.getSharedDatasources()}catch{return r("Error while loading the shared datasources")}}),Iv=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 m.setSharedSources(a.sources),a.sources}catch{return r("Error while saving the shared datasources")}}),Fv=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 m.setSharedSources(a.sources),a.sources}catch{return r("Error while saving the shared datasources")}}),$v=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 m.setSharedSources(a.sources),a.sources}catch{return r("Error while saving the shared datasources")}}),ol=Q("shared_datasources/updateSharedDatasources",async(e,{rejectWithValue:r,getState:t})=>{try{const a={...t().sharedDatasources};for(const s of e){if(!s.namespace)return r("Namespace is required");if(a.sources[s.namespace])a.sources[s.namespace]=a.sources[s.namespace].map(i=>i.id===s.id?s:i);else return r("Namespace not found")}return await m.setSharedSources(a.sources),a.sources}catch{return r("Error while saving the shared datasources")}}),JI=Q("shared_datasources/setDatasourceEvents",async({tabPath:e,name:r,namespace:t,events:a},{getState:s,dispatch:i})=>{var S,T,x;const{root:{tabs:c},sharedDatasources:l}=s(),d=((x=(T=(S=c.find(({path:D})=>D===e))==null?void 0:S.content)==null?void 0:T.metadata)==null?void 0:x.datasources)||[],p={local:!1,shared:!1},g=(D,P)=>D.id===r&&(!t&&!D.namespace||D.namespace===t)?(P==null||P(),{...D,events:a}):D,b=d.map(D=>g(D,()=>{p.local=!0})),_=Le.flatten(Le.values(l.sources)).map(D=>g(D,()=>{p.shared=!0}));p.local&&i(al({path:e,content:b,contentPath:"metadata.datasources"})),p.shared&&i(ol(_))}),Mv=Gt({name:"shared-datasources",initialState:{},reducers:{addEmptyNamespace(e,r){e.sources[r.payload.name]=[]}},extraReducers(e){e.addCase(rs.pending,r=>({state:"loading",sources:{}})).addCase(rs.fulfilled,(r,t)=>({state:"loaded",sources:t.payload})).addCase(rs.rejected,(r,t)=>({state:"error",sources:{},error:t.payload||"Error while loading the shared datasources"})).addCase(ol.fulfilled,(r,t)=>({state:"loaded",sources:t.payload})).addCase(Xc.fulfilled,(r,t)=>{const{payload:a,meta:{arg:s}}=t;s.namespace&&Object.assign(r.sources,{[s.namespace]:a})}).addCase(Iv.fulfilled,(r,t)=>({...r,sources:t.payload})).addCase($v.fulfilled,(r,t)=>({...r,sources:t.payload})).addCase(Fv.fulfilled,(r,t)=>({...r,sources:t.payload})).addCase(Jc.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(dr(tl.fulfilled,Ia.fulfilled,rl.fulfilled,Vn.fulfilled),(r,t)=>{if(!t.payload)return;const{namespace:a,list:s}=t.payload;a&&Object.assign(r.sources,{[a]:s})})}}),{addEmptyNamespace:XI}=Mv.actions,ZI=Mv.reducer,QI=zg.reducer,ns=Q("shared_css/fetchSharedCSS",async(e,{rejectWithValue:r})=>{try{const{classes:t}=await m.getSharedCSS();return t}catch{return r("Error while loading the shared CSS")}}),eF=m.queue();async function tF(e){const r={verb:m.DesignerRequestVerb.SET_FILE_CONTENT,asText:!1,name:"shared_css.json",path:"",root:"shared",content:{classes:e.map(({scope:t,...a})=>({...a}))}};await eF(()=>m.http(m.API_PREFIX,{method:"POST",body:JSON.stringify(r),headers:new Headers({"Content-Type":"application/json"})}))}const Lv=Gt({name:"shared-css",initialState:()=>{const{sharedCSS:e}=Jn();return e||{state:"loading",styles:[]}},reducers:{updateSharedCss:(e,r)=>(e.styles=r.payload.classes,tF(r.payload.classes),e),initSharedCss:(e,r)=>(e.styles=r.payload.classes,e)},extraReducers(e){e.addCase(ns.pending,r=>({...r,state:"loading"})).addCase(ns.fulfilled,(r,{payload:t})=>({state:"loaded",styles:t})).addCase(ns.rejected,(r,t)=>({...r,state:"error",error:t.payload||"Error while loading the shared css"}))}}),{updateSharedCss:rF,initSharedCss:nF}=Lv.actions,aF=Lv.reducer,oF={},sF=Gt({name:"tabs",initialState:oF,reducers:{}}),iF=e=>U(ra,r=>{var t,a;return(a=(t=r.find(s=>s.path===e))==null?void 0:t.view)==null?void 0:a.panel});sF.reducer;const Nv=Qp({root:Dv,explorer:QI,debugger:YI,settings:VP,catalog:VI,roles:qP,sharedDatasources:ZI,savedConditions:xI,webforms:hI,modals:KI,sharedCSS:aF,model:uI});let Ta;const kv=()=>(Ta||(Ta=qw({reducer:Nv}),Ta.subscribe(n1(()=>{const{root:{activeTab:e,tabs:r,recent:t},roles:a,debugger:s,webforms:i,sharedCSS:c,settings:{session:l}}=Ta.getState();bh({...l}),mh({tabs:r,activeTab:e,recent:t,roles:a,debugger:s,webforms:i,sharedCSS:c})},1e3))),Ta);var vc={exports:{}},Hn={};/** @license React v17.0.2
|
|
105
105
|
* react-jsx-runtime.production.min.js
|
|
106
106
|
*
|
|
107
107
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
108
108
|
*
|
|
109
109
|
* This source code is licensed under the MIT license found in the
|
|
110
110
|
* LICENSE file in the root directory of this source tree.
|
|
111
|
-
*/var
|
|
111
|
+
*/var Yp;function uF(){if(Yp)return Hn;Yp=1,Ic();var e=pt,r=60103;if(Hn.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var t=Symbol.for;r=t("react.element"),Hn.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,b={},_=null,S=null;p!==void 0&&(_=""+p),d.key!==void 0&&(_=""+d.key),d.ref!==void 0&&(S=d.ref);for(g in d)s.call(d,g)&&!i.hasOwnProperty(g)&&(b[g]=d[g]);if(l&&l.defaultProps)for(g in d=l.defaultProps,d)b[g]===void 0&&(b[g]=d[g]);return{$$typeof:r,type:l,key:_,ref:S,props:b,_owner:a.current}}return Hn.jsx=c,Hn.jsxs=c,Hn}var Wu={};/** @license React v17.0.2
|
|
112
112
|
* react-jsx-runtime.development.js
|
|
113
113
|
*
|
|
114
114
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
115
115
|
*
|
|
116
116
|
* This source code is licensed under the MIT license found in the
|
|
117
117
|
* LICENSE file in the root directory of this source tree.
|
|
118
|
-
*/var
|
|
119
|
-
`+ce+w}}var he=!1,ge;{var K=typeof WeakMap=="function"?WeakMap:Map;ge=new K}function F(w,H){if(!w||he)return"";{var J=ge.get(w);if(J!==void 0)return J}var ie;he=!0;var
|
|
118
|
+
*/var zp;function cF(){return zp||(zp=1,function(e){process.env.NODE_ENV!=="production"&&function(){var r=pt,t=Ic(),a=60103,s=60106;e.Fragment=60107;var i=60108,c=60114,l=60109,d=60110,p=60112,g=60113,b=60120,_=60115,S=60116,T=60121,x=60122,D=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"),b=M("react.suspense_list"),_=M("react.memo"),S=M("react.lazy"),T=M("react.block"),x=M("react.server.block"),D=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 z(w){if(w===null||typeof w!="object")return null;var H=k&&w[k]||w[O];return typeof H=="function"?H:null}var q=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Y(w){{for(var H=arguments.length,J=new Array(H>1?H-1:0),ie=1;ie<H;ie++)J[ie-1]=arguments[ie];te("error",w,J)}}function te(w,H,J){{var ie=q.ReactDebugCurrentFrame,Ne=ie.getStackAddendum();Ne!==""&&(H+="%s",J=J.concat([Ne]));var ke=J.map(function(Ce){return""+Ce});ke.unshift("Warning: "+H),Function.prototype.apply.call(console[w],console,ke)}}var Ue=!1;function Te(w){return!!(typeof w=="string"||typeof w=="function"||w===e.Fragment||w===c||w===P||w===i||w===g||w===b||w===j||Ue||typeof w=="object"&&w!==null&&(w.$$typeof===S||w.$$typeof===_||w.$$typeof===l||w.$$typeof===d||w.$$typeof===p||w.$$typeof===D||w.$$typeof===T||w[0]===x))}function st(w,H,J){var ie=H.displayName||H.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"&&Y("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 b:return"SuspenseList"}if(typeof w=="object")switch(w.$$typeof){case d:var H=w;return X(H)+".Consumer";case l:var J=w;return X(J._context)+".Provider";case p:return st(w,w.render,"ForwardRef");case _:return Pe(w.type);case T:return Pe(w._render);case S:{var ie=w,Ne=ie._payload,ke=ie._init;try{return Pe(ke(Ne))}catch{return null}}}return null}var it=0,Qe,qe,rt,Yt,W,G,de;function le(){}le.__reactDisabledLog=!0;function se(){{if(it===0){Qe=console.log,qe=console.info,rt=console.warn,Yt=console.error,W=console.group,G=console.groupCollapsed,de=console.groupEnd;var w={configurable:!0,enumerable:!0,value:le,writable:!0};Object.defineProperties(console,{info:w,log:w,warn:w,error:w,group:w,groupCollapsed:w,groupEnd:w})}it++}}function fe(){{if(it--,it===0){var w={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:t({},w,{value:Qe}),info:t({},w,{value:qe}),warn:t({},w,{value:rt}),error:t({},w,{value:Yt}),group:t({},w,{value:W}),groupCollapsed:t({},w,{value:G}),groupEnd:t({},w,{value:de})})}it<0&&Y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ne=q.ReactCurrentDispatcher,ce;function ue(w,H,J){{if(ce===void 0)try{throw Error()}catch(Ne){var ie=Ne.stack.trim().match(/\n( *(at )?)/);ce=ie&&ie[1]||""}return`
|
|
119
|
+
`+ce+w}}var he=!1,ge;{var K=typeof WeakMap=="function"?WeakMap:Map;ge=new K}function F(w,H){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 ke;ke=ne.current,ne.current=null,se();try{if(H){var Ce=function(){throw Error()};if(Object.defineProperty(Ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ce,[])}catch(sr){ie=sr}Reflect.construct(w,[],Ce)}else{try{Ce.call()}catch(sr){ie=sr}w.call(Ce.prototype)}}else{try{throw Error()}catch(sr){ie=sr}w()}}catch(sr){if(sr&&ie&&typeof sr.stack=="string"){for(var Se=sr.stack.split(`
|
|
120
120
|
`),ht=ie.stack.split(`
|
|
121
|
-
`),Xe=
|
|
122
|
-
`+
|
|
121
|
+
`),Xe=Se.length-1,et=ht.length-1;Xe>=1&&et>=0&&Se[Xe]!==ht[et];)et--;for(;Xe>=1&&et>=0;Xe--,et--)if(Se[Xe]!==ht[et]){if(Xe!==1||et!==1)do if(Xe--,et--,et<0||Se[Xe]!==ht[et]){var Vt=`
|
|
122
|
+
`+Se[Xe].replace(" at new "," at ");return typeof w=="function"&&ge.set(w,Vt),Vt}while(Xe>=1&&et>=0);break}}}finally{he=!1,ne.current=ke,fe(),Error.prepareStackTrace=Ne}var Ur=w?w.displayName||w.name:"",Qa=Ur?ue(Ur):"";return typeof w=="function"&&ge.set(w,Qa),Qa}function ze(w,H,J){return F(w,!1)}function Ge(w){var H=w.prototype;return!!(H&&H.isReactComponent)}function mt(w,H,J){if(w==null)return"";if(typeof w=="function")return F(w,Ge(w));if(typeof w=="string")return ue(w);switch(w){case g:return ue("Suspense");case b:return ue("SuspenseList")}if(typeof w=="object")switch(w.$$typeof){case p:return ze(w.render);case _:return mt(w.type,H,J);case T:return ze(w._render);case S:{var ie=w,Ne=ie._payload,ke=ie._init;try{return mt(ke(Ne),H,J)}catch{}}}return""}var Ga={},zt=q.ReactDebugCurrentFrame;function an(w){if(w){var H=w._owner,J=mt(w.type,w._source,H?H.type:null);zt.setExtraStackFrame(J)}else zt.setExtraStackFrame(null)}function Ys(w,H,J,ie,Ne){{var ke=Function.call.bind(Object.prototype.hasOwnProperty);for(var Ce in w)if(ke(w,Ce)){var Se=void 0;try{if(typeof w[Ce]!="function"){var ht=Error((ie||"React class")+": "+J+" type `"+Ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof w[Ce]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ht.name="Invariant Violation",ht}Se=w[Ce](H,Ce,ie,J,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Xe){Se=Xe}Se&&!(Se instanceof Error)&&(an(Ne),Y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ie||"React class",J,Ce,typeof Se),an(null)),Se instanceof Error&&!(Se.message in Ga)&&(Ga[Se.message]=!0,an(Ne),Y("Failed %s type: %s",J,Se.message),an(null))}}}var or=q.ReactCurrentOwner,xt=Object.prototype.hasOwnProperty,on={key:!0,ref:!0,__self:!0,__source:!0},sn,Ya,Er;Er={};function zs(w){if(xt.call(w,"ref")){var H=Object.getOwnPropertyDescriptor(w,"ref").get;if(H&&H.isReactWarning)return!1}return w.ref!==void 0}function un(w){if(xt.call(w,"key")){var H=Object.getOwnPropertyDescriptor(w,"key").get;if(H&&H.isReactWarning)return!1}return w.key!==void 0}function Wr(w,H){if(typeof w.ref=="string"&&or.current&&H&&or.current.stateNode!==H){var J=Pe(or.current.type);Er[J]||(Y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Pe(or.current.type),w.ref),Er[J]=!0)}}function na(w,H){{var J=function(){sn||(sn=!0,Y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",H))};J.isReactWarning=!0,Object.defineProperty(w,"key",{get:J,configurable:!0})}}function aa(w,H){{var J=function(){Ya||(Ya=!0,Y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",H))};J.isReactWarning=!0,Object.defineProperty(w,"ref",{get:J,configurable:!0})}}var oa=function(w,H,J,ie,Ne,ke,Ce){var Se={$$typeof:a,type:w,key:H,ref:J,props:Ce,_owner:ke};return Se._store={},Object.defineProperty(Se._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Se,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ie}),Object.defineProperty(Se,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ne}),Object.freeze&&(Object.freeze(Se.props),Object.freeze(Se)),Se};function sa(w,H,J,ie,Ne){{var ke,Ce={},Se=null,ht=null;J!==void 0&&(Se=""+J),un(H)&&(Se=""+H.key),zs(H)&&(ht=H.ref,Wr(H,Ne));for(ke in H)xt.call(H,ke)&&!on.hasOwnProperty(ke)&&(Ce[ke]=H[ke]);if(w&&w.defaultProps){var Xe=w.defaultProps;for(ke in Xe)Ce[ke]===void 0&&(Ce[ke]=Xe[ke])}if(Se||ht){var et=typeof w=="function"?w.displayName||w.name||"Unknown":w;Se&&na(Ce,et),ht&&aa(Ce,et)}return oa(w,Se,ht,Ne,ie,or.current,Ce)}}var cn=q.ReactCurrentOwner,xn=q.ReactDebugCurrentFrame;function gr(w){if(w){var H=w._owner,J=mt(w.type,w._source,H?H.type:null);xn.setExtraStackFrame(J)}else xn.setExtraStackFrame(null)}var ln;ln=!1;function fn(w){return typeof w=="object"&&w!==null&&w.$$typeof===a}function za(){{if(cn.current){var w=Pe(cn.current.type);if(w)return`
|
|
123
123
|
|
|
124
|
-
Check the render method of \``+w+"`."}return""}}function
|
|
124
|
+
Check the render method of \``+w+"`."}return""}}function Vs(w){{if(w!==void 0){var H=w.fileName.replace(/^.*[\\\/]/,""),J=w.lineNumber;return`
|
|
125
125
|
|
|
126
|
-
Check your code at `+H+":"+J+"."}return""}}var
|
|
126
|
+
Check your code at `+H+":"+J+"."}return""}}var Va={};function Ka(w){{var H=za();if(!H){var J=typeof w=="string"?w:w.displayName||w.name;J&&(H=`
|
|
127
127
|
|
|
128
|
-
Check the top-level render call using <`+J+">.")}return H}}function ia(w,H){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var J=Va(H);if(za[J])return;za[J]=!0;var ie="";w&&w._owner&&w._owner!==un.current&&(ie=" It was passed a child from "+Pe(w._owner.type)+"."),gr(w),Y('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),gr(null)}}function Ka(w,H){{if(typeof w!="object")return;if(Array.isArray(w))for(var J=0;J<w.length;J++){var ie=w[J];ln(ie)&&ia(ie,H)}else if(ln(w))w._store&&(w._store.validated=!0);else if(w){var Le=z(w);if(typeof Le=="function"&&Le!==w.entries)for(var Ne=Le.call(w),Ce;!(Ce=Ne.next()).done;)ln(Ce.value)&&ia(Ce.value,H)}}}function zs(w){{var H=w.type;if(H==null||typeof H=="string")return;var J;if(typeof H=="function")J=H.propTypes;else if(typeof H=="object"&&(H.$$typeof===p||H.$$typeof===_))J=H.propTypes;else return;if(J){var ie=Pe(H);qs(J,w.props,"prop",ie,w)}else if(H.PropTypes!==void 0&&!cn){cn=!0;var Le=Pe(H);Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Le||"Unknown")}typeof H.getDefaultProps=="function"&&!H.getDefaultProps.isReactClassApproved&&Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Vs(w){{for(var H=Object.keys(w.props),J=0;J<H.length;J++){var ie=H[J];if(ie!=="children"&&ie!=="key"){gr(w),Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ie),gr(null);break}}w.ref!==null&&(gr(w),Y("Invalid attribute `ref` supplied to `React.Fragment`."),gr(null))}}function Ja(w,H,J,ie,Le,Ne){{var Ce=Te(w);if(!Ce){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=Ys(Le);ht?Ee+=ht:Ee+=Ya();var Xe;w===null?Xe="null":Array.isArray(w)?Xe="array":w!==void 0&&w.$$typeof===a?(Xe="<"+(Pe(w.type)||"Unknown")+" />",Ee=" Did you accidentally export a JSX literal instead of a component?"):Xe=typeof w,Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Xe,Ee)}var et=sa(w,H,J,Le,Ne);if(et==null)return et;if(Ce){var Vt=H.children;if(Vt!==void 0)if(ie)if(Array.isArray(Vt)){for(var Ur=0;Ur<Vt.length;Ur++)Ka(Vt[Ur],w);Object.freeze&&Object.freeze(Vt)}else Y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ka(Vt,w)}return w===e.Fragment?Vs(et):zs(et),et}}function Xa(w,H,J){return Ja(w,H,J,!0)}function Ks(w,H,J){return Ja(w,H,J,!1)}var Js=Ks,Xs=Xa;e.jsx=Js,e.jsxs=Xs}()}(ju)),ju}process.env.NODE_ENV==="production"?hc.exports=nF():hc.exports=aF();var oF=hc.exports;const sF=({children:e,store:r})=>oF.jsx(tg,{store:r,children:e});exports.CATALOG_REFRESH_DELAY=Cs;exports.DEFAULT_CACHE=xc;exports.EAttributeKind=Hs;exports.EAttributeTypes=sv;exports.EDebuggerErrorReason=dh;exports.EDebuggerErrorType=cs;exports.EDebuggerState=Ir;exports.EDisplayMode=jc;exports.EPermissionType=Ae;exports.ETooltipBehavior=Nc;exports.EUnsavedPopOverChoice=kc;exports.ExpressionIndex=fh;exports.FLAGS_INIT_STATE=lv;exports.FLAGS_KEYS=Na;exports.ROOT_WEBFORM_STATE=Lc;exports.ReduxProvider=sF;exports.THEME_CLASSES=mg;exports.WT_FLAGS_KEYS=cv;exports.actionsToPrivs=Ag;exports.addBreakpointDecoration=vD;exports.addComponent=dv;exports.addCraftedComponent=pI;exports.addDataSource=_I;exports.addDatasource=Qc;exports.addEmptyNamespace=jI;exports.addExpression=wD;exports.addIn=bP;exports.addNewFile=Yg;exports.addPermission=CP;exports.addSession=PD;exports.addSharedCondition=qI;exports.addSharedSource=Ov;exports.addWebFormStyles=CI;exports.addWebformState=AI;exports.allowed=yP;exports.attributeKinds=HD;exports.attributeScopes=zD;exports.attributeTypes=GD;exports.castToFileFolder=XP;exports.changeTabEditor=xI;exports.children=ms;exports.clearAllBreakpoints=ED;exports.clearBreakpoints=bD;exports.clearBreakpointsExcept=_D;exports.closeAllTabs=bv;exports.closeLeftTabs=Sv;exports.closeModal=LP;exports.closeOthers=Ev;exports.closeRightTabs=_v;exports.closeSavedTabs=EI;exports.closeTab=tl;exports.confirmTab=TI;exports.create=Og;exports.createModal=Mg;exports.createModelFiles=lc;exports.createNewFile=Gn;exports.createNewFileAndOpen=rD;exports.createNewNode=Zo;exports.createRole=FP;exports.createWithResource=EP;exports.dataclassScopes=YD;exports.deleteDatasource=Ia;exports.deleteFile=fc;exports.deleteFolder=nD;exports.deleteSharedSource=Pv;exports.deserializeModel=bh;exports.duplicateNode=Qo;exports.editComponent=pv;exports.editCraftedComponent=hI;exports.editDataSource=Kc;exports.editDatasource=el;exports.editModal=NP;exports.editRole=IP;exports.editSharedSource=Av;exports.editWebformState=PI;exports.editors=Bh;exports.executeMethod=aD;exports.expandFolder=zP;exports.extensions=Wh;exports.fetchAppSettings=Hg;exports.fetchCatalog=wn;exports.fetchChanges=Qg;exports.fetchCraftedComponents=yv;exports.fetchFiles=sD;exports.fetchFolderContent=_r;exports.fetchFolderContentWithoutExpanding=Aa;exports.fetchModel=Xc;exports.fetchRoles=bs;exports.fetchRolesChanges=jg;exports.fetchSettings=Yc;exports.fetchSharedConditions=ts;exports.fetchSharedCss=rs;exports.fetchSharedDatasources=es;exports.fetchTemplate=dI;exports.fetchTemplates=fI;exports.findNodeByPath=lt;exports.findOne=Sn;exports.findSession=ot;exports.findSessionByPath=dg;exports.getCachedState=Jn;exports.getCashedPrefrences=mh;exports.getDebuggerTabName=Rh;exports.getDebuggerTabPath=Oc;exports.getDefaultContent=zg;exports.getDefaultName=JD;exports.getDictByName=Dg;exports.getEditors=pr;exports.getExtension=Hh;exports.getFilePath=Jg;exports.getFileType=Kg;exports.getFilenameFromType=Vg;exports.getGraphData=TP;exports.getInheritedResources=Fg;exports.getModalTitle=xs;exports.getNodeRelativePath=Uh;exports.getPrivilegeById=Br;exports.getPromotions=AP;exports.getResourceFromType=Uc;exports.getStore=Mv;exports.indexTypes=VD;exports.initSharedConditions=YI;exports.initSharedCss=ZI;exports.injectContentAtLine=Xg;exports.inspect=sI;exports.isJSON=_h;exports.isRelatedAttr=XD;exports.isRelatedEntitiesAttr=uv;exports.isRelatedEntityAttr=iv;exports.isRenameDatasource=vI;exports.isRolesOutdated=Hc;exports.isValidPrimaryKey=UD;exports.modelSubject=Jh;exports.openAddFileInput=VP;exports.openFile=Pa;exports.openFileAtLine=zc;exports.openFileAtSelection=Zg;exports.openModal=ar;exports.openModel=kD;exports.openRoles=gD;exports.openSettingsTab=RI;exports.openTabUnselected=Tv;exports.parents=ks;exports.populateShallow=wP;exports.primaryKeyAttributes=qD;exports.redo=FI;exports.refactorWebform=Eh;exports.refreshFile=KP;exports.reloadTab=pc;exports.relocateNode=Da;exports.remove=mP;exports.removeAllExpressions=xD;exports.removeBreakpointDecoration=yD;exports.removeComponent=hv;exports.removeCraftedComponent=gI;exports.removeDataSource=wI;exports.removeDebuggerSessionsNotIn=av;exports.removeExpression=CD;exports.removeFile=cc;exports.removeFileNode=dc;exports.removeFrom=_P;exports.removeModal=Lg;exports.removePermission=xP;exports.removeRole=DP;exports.removeSession=ID;exports.removeSessionByIndex=FD;exports.removeSharedCondition=GI;exports.removeWebformState=DI;exports.rename=SP;exports.renameDataSource=Vc;exports.renameDatasource=Vn;exports.renameExpression=TD;exports.renameFile=Yn;exports.resetResources=RP;exports.rootReducer=Rv;exports.sanitize=js;exports.sanitizePermissions=Pg;exports.sanitizePrivileges=xg;exports.saveAll=iD;exports.saveExpressions=AD;exports.saveModel=_s;exports.savePrefrences=yh;exports.saveRole=$P;exports.saveRoles=sc;exports.saveState=vh;exports.saveTab=zn;exports.selectActiveLine=NO;exports.selectActiveTab=JO;exports.selectActiveTabHistoryActions=DA;exports.selectAllDatasourcesByPath=AO;exports.selectAppState=cg;exports.selectBreakpoints=IO;exports.selectCSSClassesByPath=RA;exports.selectCallChainVariables=YO;exports.selectCatalog=Ic;exports.selectCatalogMethods=wO;exports.selectCatalogState=EO;exports.selectClassBreakpoints=$O;exports.selectClassOffset=VO;exports.selectClasses=uA;exports.selectClassesFolder=yg;exports.selectComponents=_g;exports.selectComponentsByPath=RO;exports.selectContentByPath=hg;exports.selectCraftedComponent=MA;exports.selectCurrentFrameByThreadId=HO;exports.selectCurrentTab=pg;exports.selectDataclasses=ig;exports.selectDatasource=OO;exports.selectDatasourcesByPath=lg;exports.selectDatasourcesTheme=NA;exports.selectDebuggerChannels=qO;exports.selectDebuggerData=Tn;exports.selectDebuggerMeta=PO;exports.selectDebuggerSessions=Dt;exports.selectDebuggerSessionsCount=DO;exports.selectDebuggers=aA;exports.selectDraftBreakpoints=FO;exports.selectDraftClassBreakpoints=MO;exports.selectExceptions=KO;exports.selectExplorer=oA;exports.selectExpressions=kO;exports.selectExpressionsVariables=zO;exports.selectFeatureFlag=_A;exports.selectFlagsByPath=AA;exports.selectForceLogin=vA;exports.selectGuestPrivilege=pA;exports.selectHasTabs=eA;exports.selectHighlightedLines=LO;exports.selectHistoryByPath=PA;exports.selectInspectedCSSClass=IA;exports.selectInspectedDatasource=FA;exports.selectInspector=$s;exports.selectInspectorStateByType=LA;exports.selectIsLoaded=kA;exports.selectMethods=sA;exports.selectMethodsFolder=vg;exports.selectModals=cA;exports.selectMonacoZoom=CA;exports.selectPanelByPath=rF;exports.selectPartialSessionSettings=mA;exports.selectPreferences=SA;exports.selectPreviewedWebformsPaths=QO;exports.selectPrivileges=dA;exports.selectProjectSettings=EA;exports.selectQodly=TA;exports.selectRecentFiles=XO;exports.selectRemoteDebuggerMode=wA;exports.selectRoles=fA;exports.selectRolesAndPrivileges=lA;exports.selectRolesDate=yA;exports.selectRolesFlags=hA;exports.selectRoot=jr;exports.selectSelectedTab=gA;exports.selectServerSettings=$c;exports.selectSessionSetting=bA;exports.selectSessionSettings=Wa;exports.selectSharedCSS=OA;exports.selectSharedConditions=BA;exports.selectSharedDatasources=fg;exports.selectSourceByPath=BO;exports.selectSourceByThreadId=UO;exports.selectStackFrames=GO;exports.selectStoppedFromDebugSession=jO;exports.selectStylesByPath=xA;exports.selectTab=wv;exports.selectTabByPath=Cn;exports.selectTabByReference=Pt;exports.selectTabExtraByPath=tA;exports.selectTabMaxWeight=ZO;exports.selectTabs=ra;exports.selectTemplates=Eg;exports.selectTemplatesData=$A;exports.selectThreadIdByPath=WO;exports.selectTouchedTabs=Fc;exports.selectTouchedTabsLength=nA;exports.selectVirtualDataClasses=SO;exports.selectWebForms=iA;exports.selectWebFormsFolder=gg;exports.selectWebformNodes=rA;exports.selectWebformStatesByPath=jA;exports.selectWebformStylesByPath=Mc;exports.selectWebforms=Ua;exports.serializeModel=KD;exports.setActiveLine=SD;exports.setBreakpointsDecoration=mD;exports.setCallChainVariables=$D;exports.setContent=rl;exports.setDataSources=SI;exports.setDatasourceEvents=kI;exports.setDatasourcesTheme=uI;exports.setDebuggerMeta=ND;exports.setExpression=RD;exports.setExpressionVariables=MD;exports.setFolderChildren=JP;exports.setHistoryContent=Cv;exports.setModelFlag=WD;exports.setPanelState=OI;exports.setRolesContent=qc;exports.setSelectedGroup=iI;exports.setSessions=rv;exports.setSetting=ic;exports.setSettings=Ws;exports.setSettingsAsText=HP;exports.setSharedCondition=HI;exports.setSourceContent=LD;exports.setTabContent=hD;exports.setTabExtra=bI;exports.setTabFlags=mv;exports.setTabs=yI;exports.setTabsFlags=mI;exports.setTemplateData=vv;exports.setTemplatesData=gv;exports.setWebformsFlag=cI;exports.sort=Rg;exports.stateReducer=$v;exports.stateSlice=ka;exports.toAPI=Bs;exports.toState=PP;exports.toggleExpandFolder=YP;exports.toggleForceLogin=jP;exports.toggleInspector=oI;exports.togglePermission=OP;exports.togglePrivilegePermission=Ig;exports.toggleTab=kP;exports.tryCloseAllTabs=cD;exports.tryCloseLeftTabs=fD;exports.tryCloseOtherTabs=uD;exports.tryCloseRightTabs=lD;exports.tryCloseTab=Jc;exports.tryEditMethod=ZP;exports.tryInjectMethod=ev;exports.tryRenameDataclass=jD;exports.undo=II;exports.uniquePush=nr;exports.unlockHistory=xv;exports.updateExpressionAt=OD;exports.updatePrivileges=Wg;exports.updateRoles=Ug;exports.updateRolesAndPrivileges=Gc;exports.updateSession=DD;exports.updateSharedConditions=UI;exports.updateSharedCss=XI;exports.updateSharedDatasources=nl;exports.uploadFile=tD;exports.uploadFileAndGetResponse=eD;exports.useAppDispatch=_O;exports.useAppSelector=kr;exports.useAttribute=tI;exports.useCollections=QD;exports.useDataclass=eI;exports.useDataclasses=ZD;exports.useMethod=xO;exports.useMethods=TO;exports.useModelFlags=nI;exports.useModelProperties=rI;exports.wipeDebuggerSessions=nv;
|
|
128
|
+
Check the top-level render call using <`+J+">.")}return H}}function ia(w,H){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var J=Ka(H);if(Va[J])return;Va[J]=!0;var ie="";w&&w._owner&&w._owner!==cn.current&&(ie=" It was passed a child from "+Pe(w._owner.type)+"."),gr(w),Y('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),gr(null)}}function Ja(w,H){{if(typeof w!="object")return;if(Array.isArray(w))for(var J=0;J<w.length;J++){var ie=w[J];fn(ie)&&ia(ie,H)}else if(fn(w))w._store&&(w._store.validated=!0);else if(w){var Ne=z(w);if(typeof Ne=="function"&&Ne!==w.entries)for(var ke=Ne.call(w),Ce;!(Ce=ke.next()).done;)fn(Ce.value)&&ia(Ce.value,H)}}}function Ks(w){{var H=w.type;if(H==null||typeof H=="string")return;var J;if(typeof H=="function")J=H.propTypes;else if(typeof H=="object"&&(H.$$typeof===p||H.$$typeof===_))J=H.propTypes;else return;if(J){var ie=Pe(H);Ys(J,w.props,"prop",ie,w)}else if(H.PropTypes!==void 0&&!ln){ln=!0;var Ne=Pe(H);Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ne||"Unknown")}typeof H.getDefaultProps=="function"&&!H.getDefaultProps.isReactClassApproved&&Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Js(w){{for(var H=Object.keys(w.props),J=0;J<H.length;J++){var ie=H[J];if(ie!=="children"&&ie!=="key"){gr(w),Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ie),gr(null);break}}w.ref!==null&&(gr(w),Y("Invalid attribute `ref` supplied to `React.Fragment`."),gr(null))}}function Xa(w,H,J,ie,Ne,ke){{var Ce=Te(w);if(!Ce){var Se="";(w===void 0||typeof w=="object"&&w!==null&&Object.keys(w).length===0)&&(Se+=" 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=Vs(Ne);ht?Se+=ht:Se+=za();var Xe;w===null?Xe="null":Array.isArray(w)?Xe="array":w!==void 0&&w.$$typeof===a?(Xe="<"+(Pe(w.type)||"Unknown")+" />",Se=" Did you accidentally export a JSX literal instead of a component?"):Xe=typeof w,Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Xe,Se)}var et=sa(w,H,J,Ne,ke);if(et==null)return et;if(Ce){var Vt=H.children;if(Vt!==void 0)if(ie)if(Array.isArray(Vt)){for(var Ur=0;Ur<Vt.length;Ur++)Ja(Vt[Ur],w);Object.freeze&&Object.freeze(Vt)}else Y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ja(Vt,w)}return w===e.Fragment?Js(et):Ks(et),et}}function Za(w,H,J){return Xa(w,H,J,!0)}function Xs(w,H,J){return Xa(w,H,J,!1)}var Zs=Xs,Qs=Za;e.jsx=Zs,e.jsxs=Qs}()}(Wu)),Wu}process.env.NODE_ENV==="production"?vc.exports=uF():vc.exports=cF();var lF=vc.exports;const fF=({children:e,store:r})=>lF.jsx(ng,{store:r,children:e});exports.CATALOG_REFRESH_DELAY=Cs;exports.DEFAULT_CACHE=Oc;exports.EAttributeKind=Hs;exports.EAttributeTypes=uv;exports.EDebuggerErrorReason=hh;exports.EDebuggerErrorType=ls;exports.EDebuggerState=Ir;exports.EDisplayMode=Wc;exports.EPermissionType=Ae;exports.ETooltipBehavior=jc;exports.EUnsavedPopOverChoice=Bc;exports.ExpressionIndex=ph;exports.FLAGS_INIT_STATE=dv;exports.FLAGS_KEYS=ka;exports.ROOT_WEBFORM_STATE=kc;exports.ReduxProvider=fF;exports.THEME_CLASSES=_g;exports.WT_FLAGS_KEYS=fv;exports.actionsToPrivs=Dg;exports.addBreakpointDecoration=_D;exports.addComponent=hv;exports.addCraftedComponent=yI;exports.addDataSource=PI;exports.addDatasource=tl;exports.addEmptyNamespace=XI;exports.addExpression=RD;exports.addIn=wP;exports.addNewFile=Vg;exports.addPermission=AP;exports.addSavedCondition=TI;exports.addSession=$D;exports.addSharedSource=Iv;exports.addWebFormStyles=MI;exports.addWebformState=jI;exports.allowed=SP;exports.attributeKinds=zD;exports.attributeScopes=XD;exports.attributeTypes=KD;exports.castToFileFolder=tD;exports.changeTabEditor=LI;exports.children=ms;exports.clearAllBreakpoints=CD;exports.clearBreakpoints=wD;exports.clearBreakpointsExcept=TD;exports.closeAllTabs=wv;exports.closeLeftTabs=xv;exports.closeModal=BP;exports.closeOthers=Cv;exports.closeRightTabs=Tv;exports.closeSavedTabs=DI;exports.closeTab=nl;exports.confirmTab=$I;exports.create=Pg;exports.createModal=Ng;exports.createModelFiles=dc;exports.createNewFile=Gn;exports.createNewFileAndOpen=sD;exports.createNewNode=Qo;exports.createRole=NP;exports.createWithResource=CP;exports.dataclassScopes=JD;exports.deepDeleteCondition=qs;exports.deepSanitizeCondition=Gs;exports.deleteDatasource=Ia;exports.deleteFile=pc;exports.deleteFolder=iD;exports.deleteSharedSource=$v;exports.deserializeModel=Sh;exports.duplicateNode=es;exports.editComponent=gv;exports.editCraftedComponent=mI;exports.editDataSource=Xc;exports.editDatasource=rl;exports.editModal=WP;exports.editRole=LP;exports.editSharedSource=Fv;exports.editWebformState=BI;exports.editors=Uh;exports.executeMethod=uD;exports.expandFolder=XP;exports.extensions=Hh;exports.fetchAppSettings=Gg;exports.fetchCatalog=Tn;exports.fetchChanges=tv;exports.fetchCraftedComponents=bv;exports.fetchFiles=lD;exports.fetchFolderContent=_r;exports.fetchFolderContentWithoutExpanding=Aa;exports.fetchModel=Qc;exports.fetchRoles=bs;exports.fetchRolesChanges=Wg;exports.fetchSavedConditions=ts;exports.fetchSettings=Vc;exports.fetchSharedCss=ns;exports.fetchSharedDatasources=rs;exports.fetchTemplate=vI;exports.fetchTemplates=gI;exports.findNodeByPath=lt;exports.findOne=wn;exports.findSession=ot;exports.findSessionByPath=hg;exports.getCachedState=Jn;exports.getCashedPrefrences=_h;exports.getDebuggerTabName=Ah;exports.getDebuggerTabPath=Pc;exports.getDefaultContent=Kg;exports.getDefaultName=eI;exports.getDictByName=Fg;exports.getEditors=pr;exports.getExtension=Gh;exports.getFilePath=Zg;exports.getFileType=Xg;exports.getFilenameFromType=Jg;exports.getGraphData=OP;exports.getInheritedResources=Mg;exports.getModalTitle=xs;exports.getNodeRelativePath=qh;exports.getPrivilegeById=Br;exports.getPromotions=FP;exports.getResourceFromType=qc;exports.getStore=kv;exports.indexTypes=ZD;exports.initSavedConditions=CI;exports.initSharedCss=nF;exports.injectContentAtLine=Qg;exports.inspect=lI;exports.isJSON=Eh;exports.isRelatedAttr=tI;exports.isRelatedEntitiesAttr=lv;exports.isRelatedEntityAttr=cv;exports.isRenameDatasource=_I;exports.isRolesOutdated=Gc;exports.isValidPrimaryKey=YD;exports.modelSubject=Zh;exports.openAddFileInput=ZP;exports.openFile=Pa;exports.openFileAtLine=Kc;exports.openFileAtSelection=ev;exports.openModal=ar;exports.openModel=UD;exports.openRoles=bD;exports.openSettingsTab=NI;exports.openTabUnselected=Ov;exports.parents=ks;exports.populateShallow=RP;exports.primaryKeyAttributes=VD;exports.redo=GI;exports.refactorWebform=wh;exports.refreshFile=QP;exports.reloadTab=gc;exports.relocateNode=Da;exports.remove=EP;exports.removeAllExpressions=PD;exports.removeBreakpointDecoration=SD;exports.removeComponent=vv;exports.removeCraftedComponent=bI;exports.removeDataSource=FI;exports.removeDebuggerSessionsNotIn=sv;exports.removeExpression=AD;exports.removeFile=fc;exports.removeFileNode=hc;exports.removeFrom=TP;exports.removeModal=kg;exports.removePermission=PP;exports.removeRole=MP;exports.removeSavedCondition=Sv;exports.removeSession=LD;exports.removeSessionByIndex=ND;exports.removeWebformState=WI;exports.rename=xP;exports.renameDataSource=Jc;exports.renameDatasource=Vn;exports.renameExpression=OD;exports.renameFile=Yn;exports.resetComponentState=UI;exports.resetResources=DP;exports.rootReducer=Dv;exports.sanitize=js;exports.sanitizePermissions=Ig;exports.sanitizePrivileges=Og;exports.saveAll=fD;exports.saveExpressions=FD;exports.saveModel=_s;exports.savePrefrences=bh;exports.saveRole=kP;exports.saveRoles=uc;exports.saveState=mh;exports.saveTab=zn;exports.selectActiveLine=BO;exports.selectActiveTab=QO;exports.selectActiveTabHistoryActions=$A;exports.selectAllDatasourcesByPath=IO;exports.selectAppState=fg;exports.selectBreakpoints=MO;exports.selectCSSClassesByPath=PA;exports.selectCallChainVariables=KO;exports.selectCatalog=$c;exports.selectCatalogMethods=xO;exports.selectCatalogState=TO;exports.selectClassBreakpoints=NO;exports.selectClassOffset=XO;exports.selectClasses=fA;exports.selectClassesFolder=bg;exports.selectComponents=Eg;exports.selectComponentsByPath=PO;exports.selectContentByPath=vg;exports.selectCraftedComponent=kA;exports.selectCurrentFrameByThreadId=YO;exports.selectCurrentTab=gg;exports.selectDataclasses=cg;exports.selectDatasource=DO;exports.selectDatasourcesByPath=dg;exports.selectDatasourcesTheme=BA;exports.selectDebuggerChannels=zO;exports.selectDebuggerData=Cn;exports.selectDebuggerMeta=FO;exports.selectDebuggerSessions=Dt;exports.selectDebuggerSessionsCount=$O;exports.selectDebuggers=iA;exports.selectDefaultWebformStatesByPath=HA;exports.selectDraftBreakpoints=LO;exports.selectDraftClassBreakpoints=kO;exports.selectExceptions=ZO;exports.selectExplorer=uA;exports.selectExpressions=WO;exports.selectExpressionsVariables=JO;exports.selectFeatureFlag=wA;exports.selectFlagsByPath=IA;exports.selectForceLogin=bA;exports.selectGuestPrivilege=vA;exports.selectHasTabs=nA;exports.selectHighlightedLines=jO;exports.selectHistoryByPath=FA;exports.selectInspectedCSSClass=MA;exports.selectInspectedDatasource=LA;exports.selectInspector=$s;exports.selectInspectorStateByType=jA;exports.selectIsLoaded=WA;exports.selectMethods=cA;exports.selectMethodsFolder=mg;exports.selectModals=dA;exports.selectMonacoZoom=OA;exports.selectPanelByPath=iF;exports.selectPartialSessionSettings=SA;exports.selectPreferences=CA;exports.selectPreviewedWebformsPaths=rA;exports.selectPrivileges=gA;exports.selectProjectSettings=TA;exports.selectQodly=RA;exports.selectRecentFiles=eA;exports.selectRemoteDebuggerMode=xA;exports.selectRoles=hA;exports.selectRolesAndPrivileges=pA;exports.selectRolesDate=_A;exports.selectRolesFlags=yA;exports.selectRoot=jr;exports.selectSavedConditions=qA;exports.selectSelectedTab=mA;exports.selectServerSettings=Lc;exports.selectSessionSetting=EA;exports.selectSessionSettings=Ua;exports.selectSharedCSS=DA;exports.selectSharedDatasources=pg;exports.selectSourceByPath=HO;exports.selectSourceByThreadId=GO;exports.selectStackFrames=VO;exports.selectStoppedFromDebugSession=UO;exports.selectStylesByPath=AA;exports.selectTab=Rv;exports.selectTabByPath=nn;exports.selectTabByReference=Pt;exports.selectTabExtraByPath=aA;exports.selectTabMaxWeight=tA;exports.selectTabs=ra;exports.selectTemplates=wg;exports.selectTemplatesData=NA;exports.selectThreadIdByPath=qO;exports.selectTouchedTabs=Mc;exports.selectTouchedTabsLength=sA;exports.selectVirtualDataClasses=CO;exports.selectWebForms=lA;exports.selectWebFormsFolder=yg;exports.selectWebformNodes=oA;exports.selectWebformStatesByPath=UA;exports.selectWebformStylesByPath=Nc;exports.selectWebforms=Ha;exports.serializeModel=QD;exports.setActiveLine=xD;exports.setBreakpointsDecoration=ED;exports.setCallChainVariables=kD;exports.setContent=al;exports.setDataSources=II;exports.setDatasourceEvents=JI;exports.setDatasourcesTheme=dI;exports.setDebuggerMeta=WD;exports.setDefaultWebformStates=HI;exports.setExpression=DD;exports.setExpressionVariables=jD;exports.setFolderChildren=eD;exports.setHistoryContent=Av;exports.setModelFlag=GD;exports.setPanelState=kI;exports.setRolesContent=Yc;exports.setSavedCondition=wI;exports.setSelectedGroup=fI;exports.setSessions=av;exports.setSetting=cc;exports.setSettings=Ws;exports.setSettingsAsText=zP;exports.setSourceContent=BD;exports.setTabContent=mD;exports.setTabExtra=AI;exports.setTabFlags=Ev;exports.setTabs=RI;exports.setTabsFlags=OI;exports.setTemplateData=mv;exports.setTemplatesData=yv;exports.setWebformsFlag=pI;exports.sort=Ag;exports.stateReducer=Nv;exports.stateSlice=ja;exports.toAPI=Bs;exports.toState=$P;exports.toggleExpandFolder=JP;exports.toggleForceLogin=HP;exports.toggleInspector=cI;exports.togglePermission=IP;exports.togglePrivilegePermission=$g;exports.toggleTab=UP;exports.tryCloseAllTabs=pD;exports.tryCloseLeftTabs=gD;exports.tryCloseOtherTabs=dD;exports.tryCloseRightTabs=hD;exports.tryCloseTab=Zc;exports.tryEditMethod=rD;exports.tryInjectMethod=rv;exports.tryRenameDataclass=HD;exports.undo=qI;exports.uniquePush=nr;exports.unlockHistory=Pv;exports.updateExpressionAt=ID;exports.updatePrivileges=Hg;exports.updateRoles=qg;exports.updateRolesAndPrivileges=zc;exports.updateSavedConditions=EI;exports.updateSession=MD;exports.updateSharedCss=rF;exports.updateSharedDatasources=ol;exports.uploadFile=oD;exports.uploadFileAndGetResponse=aD;exports.useAppDispatch=wO;exports.useAppSelector=kr;exports.useAttribute=oI;exports.useCollections=nI;exports.useDataclass=aI;exports.useDataclasses=rI;exports.useMethod=AO;exports.useMethods=RO;exports.useModelFlags=iI;exports.useModelProperties=sI;exports.wipeDebuggerSessions=ov;
|
|
129
129
|
//# sourceMappingURL=index.cjs.js.map
|