@ws-ui/store 0.1.14 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +26 -26
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1891 -1865
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("@ws-ui/shared"),pt=require("react"),BS=require("react-dom");function Je(e){for(var n=arguments.length,t=Array(n>1?n-1:0),a=1;a<n;a++)t[a-1]=arguments[a];if(process.env.NODE_ENV!=="production"){var s=KS[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[ye]}function hr(e){var n;return!!e&&(function(t){if(!t||typeof t!="object")return!1;var a=Object.getPrototypeOf(t);if(a===null)return!0;var s=Object.hasOwnProperty.call(a,"constructor")&&a.constructor;return s===Object||typeof s=="function"&&Function.toString.call(s)===JS}(e)||Array.isArray(e)||!!e[Ra]||!!(!((n=e.constructor)===null||n===void 0)&&n[Ra])||ys(e)||bs(e))}function Lr(e,n,t){t===void 0&&(t=!1),rn(e)===0?(t?Object.keys:Hn)(e).forEach(function(a){t&&typeof a=="symbol"||n(a,e[a],e)}):e.forEach(function(a,s){return n(s,a,e)})}function rn(e){var n=e[ye];return n?n.i>3?n.i-4:n.i:Array.isArray(e)?1:ys(e)?2:bs(e)?3:0}function en(e,n){return rn(e)===2?e.has(n):Object.prototype.hasOwnProperty.call(e,n)}function zo(e,n){return rn(e)===2?e.get(n):e[n]}function Up(e,n,t){var a=rn(e);a===2?e.set(n,t):a===3?e.add(t):e[n]=t}function Hp(e,n){return e===n?e!==0||1/e==1/n:e!=e&&n!=n}function ys(e){return zS&&e instanceof Map}function bs(e){return VS&&e instanceof Set}function ft(e){return e.o||e.t}function fc(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var n=Gp(e);delete n[ye];for(var t=Hn(n),a=0;a<t.length;a++){var s=t[a],i=n[s];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(n[s]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),n)}function dc(e,n){return n===void 0&&(n=!1),pc(e)||Mr(e)||!hr(e)||(rn(e)>1&&(e.set=e.add=e.clear=e.delete=WS),Object.freeze(e),n&&Lr(e,function(t,a){return dc(a,!0)},!0)),e}function WS(){Je(2)}function pc(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function br(e){var n=ku[e];return n||Je(18,e),n}function hc(e,n){ku[e]||(ku[e]=n)}function Fa(){return process.env.NODE_ENV==="production"||Vn||Je(0),Vn}function ou(e,n){n&&(br("Patches"),e.u=[],e.s=[],e.v=n)}function es(e){Nu(e),e.p.forEach(US),e.p=null}function Nu(e){e===Vn&&(Vn=e.l)}function xd(e){return Vn={p:[],l:Vn,h:e,m:!0,_:0}}function US(e){var n=e[ye];n.i===0||n.i===1?n.j():n.g=!0}function su(e,n){n._=n.p.length;var t=n.p[0],a=e!==void 0&&e!==t;return n.h.O||br("ES5").S(n,e,a),a?(t[ye].P&&(es(n),Je(4)),hr(e)&&(e=ts(n,e),n.l||rs(n,e)),n.u&&br("Patches").M(t[ye].t,e,n.u,n.s)):e=ts(n,t,[]),es(n),n.u&&n.v(n.u,n.s),e!==vc?e:void 0}function ts(e,n,t){if(pc(n))return n;var a=n[ye];if(!a)return Lr(n,function(l,d){return Rd(e,a,n,l,d,t)},!0),n;if(a.A!==e)return n;if(!a.P)return rs(e,a.t,!0),a.t;if(!a.I){a.I=!0,a.A._--;var s=a.i===4||a.i===5?a.o=fc(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 Rd(e,a,s,l,d,t,c)}),rs(e,s,!1),t&&e.u&&br("Patches").N(a,t,e.u,e.s)}return a.o}function Rd(e,n,t,a,s,i,c){if(process.env.NODE_ENV!=="production"&&s===t&&Je(5),Mr(s)){var l=ts(e,s,i&&n&&n.i!==3&&!en(n.R,a)?i.concat(a):void 0);if(Up(t,a,l),!Mr(l))return;e.m=!1}else c&&t.add(s);if(hr(s)&&!pc(s)){if(!e.h.D&&e._<1)return;ts(e,s),n&&n.A.l||rs(e,s)}}function rs(e,n,t){t===void 0&&(t=!1),!e.l&&e.h.D&&e.m&&dc(n,t)}function iu(e,n){var t=e[ye];return(t?ft(t):e)[n]}function Od(e,n){if(n in e)for(var t=Object.getPrototypeOf(e);t;){var a=Object.getOwnPropertyDescriptor(t,n);if(a)return a;t=Object.getPrototypeOf(t)}}function Lt(e){e.P||(e.P=!0,e.l&&Lt(e.l))}function uu(e){e.o||(e.o=fc(e.t))}function $a(e,n,t){var a=ys(n)?br("MapSet").F(n,t):bs(n)?br("MapSet").T(n,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 h=Proxy.revocable(d,p),y=h.revoke,_=h.proxy;return l.k=_,l.j=y,_}(n,t):br("ES5").J(n,t);return(t?t.A:Fa()).p.push(a),a}function HS(e){return Mr(e)||Je(22,e),function n(t){if(!hr(t))return t;var a,s=t[ye],i=rn(t);if(s){if(!s.P&&(s.i<4||!br("ES5").K(s)))return s.t;s.I=!0,a=Ad(t,i),s.I=!1}else a=Ad(t,i);return Lr(a,function(c,l){s&&zo(s.t,c)===l||Up(a,c,n(l))}),i===3?new Set(a):a}(e)}function Ad(e,n){switch(n){case 2:return new Map(e);case 3:return Array.from(e)}return fc(e)}function GS(){function e(c,l){var d=i[c];return d?d.enumerable=l:i[c]=d={configurable:!0,enumerable:l,get:function(){var p=this[ye];return process.env.NODE_ENV!=="production"&&s(p),Ma.get(p,c)},set:function(p){var h=this[ye];process.env.NODE_ENV!=="production"&&s(h),Ma.set(h,c,p)}},d}function n(c){for(var l=c.length-1;l>=0;l--){var d=c[l][ye];if(!d.P)switch(d.i){case 5:a(d)&&Lt(d);break;case 4:t(d)&&Lt(d)}}}function t(c){for(var l=c.t,d=c.k,p=Hn(d),h=p.length-1;h>=0;h--){var y=p[h];if(y!==ye){var _=l[y];if(_===void 0&&!en(l,y))return!0;var E=d[y],T=E&&E[ye];if(T?T.t!==_:!Hp(E,_))return!0}}var x=!!l[ye];return p.length!==Hn(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={};hc("ES5",{J:function(c,l){var d=Array.isArray(c),p=function(y,_){if(y){for(var E=Array(_.length),T=0;T<_.length;T++)Object.defineProperty(E,""+T,e(T,!0));return E}var x=Gp(_);delete x[ye];for(var D=Hn(x),P=0;P<D.length;P++){var j=D[P];x[j]=e(j,y||!!x[j].enumerable)}return Object.create(Object.getPrototypeOf(_),x)}(d,c),h={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,ye,{value:h,writable:!0}),p},S:function(c,l,d){d?Mr(l)&&l[ye].A===c&&n(c.p):(c.u&&function p(h){if(h&&typeof h=="object"){var y=h[ye];if(y){var _=y.t,E=y.k,T=y.R,x=y.i;if(x===4)Lr(E,function(k){k!==ye&&(_[k]!==void 0||en(_,k)?T[k]||p(E[k]):(T[k]=!0,Lt(y)))}),Lr(_,function(k){E[k]!==void 0||en(E,k)||(T[k]=!1,Lt(y))});else if(x===5){if(a(y)&&(Lt(y),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]),n(c.p))},K:function(c){return c.i===4?t(c):a(c)}})}function qS(){function e(a){if(!hr(a))return a;if(Array.isArray(a))return a.map(e);if(ys(a))return new Map(Array.from(a.entries()).map(function(c){return[c[0],e(c[1])]}));if(bs(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 n(a){return Mr(a)?e(a):a}var t="add";hc("Patches",{$:function(a,s){return s.forEach(function(i){for(var c=i.path,l=i.op,d=a,p=0;p<c.length-1;p++){var h=rn(d),y=c[p];typeof y!="string"&&typeof y!="number"&&(y=""+y),h!==0&&h!==1||y!=="__proto__"&&y!=="constructor"||Je(24),typeof d=="function"&&y==="prototype"&&Je(24),typeof(d=zo(d,y))!="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,h){var y=l.t,_=l.o;Lr(l.R,function(E,T){var x=zo(y,E),D=zo(_,E),P=T?en(y,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}),h.push(P===t?{op:"remove",path:j}:P==="remove"?{op:t,path:j,value:n(x)}:{op:"replace",path:j,value:n(x)})}})}(a,s,i,c);case 5:case 1:return function(l,d,p,h){var y=l.t,_=l.R,E=l.o;if(E.length<y.length){var T=[E,y];y=T[0],E=T[1];var x=[h,p];p=x[0],h=x[1]}for(var D=0;D<y.length;D++)if(_[D]&&E[D]!==y[D]){var P=d.concat([D]);p.push({op:"replace",path:P,value:n(E[D])}),h.push({op:"replace",path:P,value:n(y[D])})}for(var j=y.length;j<E.length;j++){var M=d.concat([j]);p.push({op:t,path:M,value:n(E[j])})}y.length<E.length&&h.push({op:"replace",path:d.concat(["length"]),value:y.length})}(a,s,i,c);case 3:return function(l,d,p,h){var y=l.t,_=l.o,E=0;y.forEach(function(T){if(!_.has(T)){var x=d.concat([E]);p.push({op:"remove",path:x,value:T}),h.unshift({op:t,path:x,value:T})}E++}),E=0,_.forEach(function(T){if(!y.has(T)){var x=d.concat([E]);p.push({op:t,path:x,value:T}),h.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===vc?void 0:s}),c.push({op:"replace",path:[],value:a})}})}function YS(){function e(l,d){function p(){this.constructor=l}s(l,d),l.prototype=(p.prototype=d.prototype,new p)}function n(l){l.o||(l.R=new Map,l.o=new Map(l.t))}function t(l){l.o||(l.o=new Set,l.t.forEach(function(d){if(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,h){p.__proto__=h}||function(p,h){for(var y in h)h.hasOwnProperty(y)&&(p[y]=h[y])})(l,d)},i=function(){function l(p,h){return this[ye]={i:2,l:h,A:h?h.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[ye]).size}}),d.has=function(p){return ft(this[ye]).has(p)},d.set=function(p,h){var y=this[ye];return a(y),ft(y).has(p)&&ft(y).get(p)===h||(n(y),Lt(y),y.R.set(p,!0),y.o.set(p,h),y.R.set(p,!0)),this},d.delete=function(p){if(!this.has(p))return!1;var h=this[ye];return a(h),n(h),Lt(h),h.t.has(p)?h.R.set(p,!1):h.R.delete(p),h.o.delete(p),!0},d.clear=function(){var p=this[ye];a(p),ft(p).size&&(n(p),Lt(p),p.R=new Map,Lr(p.t,function(h){p.R.set(h,!1)}),p.o.clear())},d.forEach=function(p,h){var y=this;ft(this[ye]).forEach(function(_,E){p.call(h,y.get(E),E,y)})},d.get=function(p){var h=this[ye];a(h);var y=ft(h).get(p);if(h.I||!hr(y)||y!==h.t.get(p))return y;var _=$a(h.A.h,y,h);return n(h),h.o.set(p,_),_},d.keys=function(){return ft(this[ye]).keys()},d.values=function(){var p,h=this,y=this.keys();return(p={})[Wo]=function(){return h.values()},p.next=function(){var _=y.next();return _.done?_:{done:!1,value:h.get(_.value)}},p},d.entries=function(){var p,h=this,y=this.keys();return(p={})[Wo]=function(){return h.entries()},p.next=function(){var _=y.next();if(_.done)return _;var E=h.get(_.value);return{done:!1,value:[_.value,E]}},p},d[Wo]=function(){return this.entries()},l}(),c=function(){function l(p,h){return this[ye]={i:3,l:h,A:h?h.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[ye]).size}}),d.has=function(p){var h=this[ye];return a(h),h.o?!!h.o.has(p)||!(!h.p.has(p)||!h.o.has(h.p.get(p))):h.t.has(p)},d.add=function(p){var h=this[ye];return a(h),this.has(p)||(t(h),Lt(h),h.o.add(p)),this},d.delete=function(p){if(!this.has(p))return!1;var h=this[ye];return a(h),t(h),Lt(h),h.o.delete(p)||!!h.p.has(p)&&h.o.delete(h.p.get(p))},d.clear=function(){var p=this[ye];a(p),ft(p).size&&(t(p),Lt(p),p.o.clear())},d.values=function(){var p=this[ye];return a(p),t(p),p.o.values()},d.entries=function(){var p=this[ye];return a(p),t(p),p.o.entries()},d.keys=function(){return this.values()},d[Wo]=function(){return this.values()},d.forEach=function(p,h){for(var y=this.values(),_=y.next();!_.done;)p.call(h,_.value,_.value,this),_=y.next()},l}();hc("MapSet",{F:function(l,d){return new i(l,d)},T:function(l,d){return new c(l,d)}})}var Pd,Vn,gc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",zS=typeof Map<"u",VS=typeof Set<"u",Dd=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",vc=gc?Symbol.for("immer-nothing"):((Pd={})["immer-nothing"]=!0,Pd),Ra=gc?Symbol.for("immer-draftable"):"__$immer_draftable",ye=gc?Symbol.for("immer-state"):"__$immer_state",Wo=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",KS={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"},JS=""+Object.prototype.constructor,Hn=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Gp=Object.getOwnPropertyDescriptors||function(e){var n={};return Hn(e).forEach(function(t){n[t]=Object.getOwnPropertyDescriptor(e,t)}),n},ku={},Ma={get:function(e,n){if(n===ye)return e;var t=ft(e);if(!en(t,n))return function(s,i,c){var l,d=Od(i,c);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(s.k):void 0}(e,t,n);var a=t[n];return e.I||!hr(a)?a:a===iu(e.t,n)?(uu(e),e.o[n]=$a(e.A.h,a,e)):a},has:function(e,n){return n in ft(e)},ownKeys:function(e){return Reflect.ownKeys(ft(e))},set:function(e,n,t){var a=Od(ft(e),n);if(a!=null&&a.set)return a.set.call(e.k,t),!0;if(!e.P){var s=iu(ft(e),n),i=s==null?void 0:s[ye];if(i&&i.t===t)return e.o[n]=t,e.R[n]=!1,!0;if(Hp(t,s)&&(t!==void 0||en(e.t,n)))return!0;uu(e),Lt(e)}return e.o[n]===t&&(t!==void 0||n in e.o)||Number.isNaN(t)&&Number.isNaN(e.o[n])||(e.o[n]=t,e.R[n]=!0),!0},deleteProperty:function(e,n){return iu(e.t,n)!==void 0||n in e.t?(e.R[n]=!1,uu(e),Lt(e)):delete e.R[n],e.o&&delete e.o[n],!0},getOwnPropertyDescriptor:function(e,n){var t=ft(e),a=Reflect.getOwnPropertyDescriptor(t,n);return a&&{writable:!0,configurable:e.i!==1||n!=="length",enumerable:a.enumerable,value:t[n]}},defineProperty:function(){Je(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Je(12)}},Ca={};Lr(Ma,function(e,n){Ca[e]=function(){return arguments[0]=arguments[0][0],n.apply(this,arguments)}}),Ca.deleteProperty=function(e,n){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(n))&&Je(13),Ca.set.call(this,e,n,void 0)},Ca.set=function(e,n,t){return process.env.NODE_ENV!=="production"&&n!=="length"&&isNaN(parseInt(n))&&Je(14),Ma.set.call(this,e[0],n,t,e[0])};var XS=function(){function e(t){var a=this;this.O=Dd,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 h=xd(a),y=$a(a,s,void 0),_=!0;try{p=i(y),_=!1}finally{_?es(h):Nu(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(x){return ou(h,c),su(x,h)},function(x){throw es(h),x}):(ou(h,c),su(p,h))}if(!s||typeof s!="object"){if((p=i(s))===void 0&&(p=s),p===vc&&(p=void 0),a.D&&dc(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 h=arguments.length,y=Array(h>1?h-1:0),_=1;_<h;_++)y[_-1]=arguments[_];return a.produceWithPatches(p,function(E){return s.apply(void 0,[E].concat(y))})};var c,l,d=a.produce(s,i,function(p,h){c=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,c,l]}):[d,c,l]},typeof(t==null?void 0:t.useProxies)=="boolean"&&this.setUseProxies(t.useProxies),typeof(t==null?void 0:t.autoFreeze)=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var n=e.prototype;return n.createDraft=function(t){hr(t)||Je(8),Mr(t)&&(t=HS(t));var a=xd(this),s=$a(this,t,void 0);return s[ye].C=!0,Nu(a),s},n.finishDraft=function(t,a){var s=t&&t[ye];process.env.NODE_ENV!=="production"&&(s&&s.C||Je(9),s.I&&Je(10));var i=s.A;return ou(i,a),su(void 0,i)},n.setAutoFreeze=function(t){this.D=t},n.setUseProxies=function(t){t&&!Dd&&Je(20),this.O=t},n.applyPatches=function(t,a){var s;for(s=a.length-1;s>=0;s--){var i=a[s];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}s>-1&&(a=a.slice(s+1));var c=br("Patches").$;return Mr(t)?c(t,a):this.produce(t,function(l){return c(l,a)})},e}(),Gt=new XS,Vo=Gt.produce;Gt.produceWithPatches.bind(Gt);Gt.setAutoFreeze.bind(Gt);Gt.setUseProxies.bind(Gt);Gt.applyPatches.bind(Gt);Gt.createDraft.bind(Gt);Gt.finishDraft.bind(Gt);function La(e){"@babel/helpers - typeof";return La=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},La(e)}function ZS(e,n){if(La(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,n||"default");if(La(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function QS(e){var n=ZS(e,"string");return La(n)==="symbol"?n:String(n)}function ew(e,n,t){return n=QS(n),n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Id(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,a)}return t}function Fd(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?Id(Object(t),!0).forEach(function(a){ew(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Id(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 $d=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),cu=function(){return Math.random().toString(36).substring(7).split("").join(".")},En={INIT:"@@redux/INIT"+cu(),REPLACE:"@@redux/REPLACE"+cu(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+cu()}};function qp(e){if(typeof e!="object"||e===null)return!1;for(var n=e;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}function tw(e){if(e===void 0)return"undefined";if(e===null)return"null";var n=typeof e;switch(n){case"boolean":case"string":case"number":case"symbol":case"function":return n}if(Array.isArray(e))return"array";if(aw(e))return"date";if(nw(e))return"error";var t=rw(e);switch(t){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return t}return n.slice(8,-1).toLowerCase().replace(/\s/g,"")}function rw(e){return typeof e.constructor=="function"?e.constructor.name:null}function nw(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function aw(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function _n(e){var n=typeof e;return process.env.NODE_ENV!=="production"&&(n=tw(e)),n}function Yp(e,n,t){var a;if(typeof n=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?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 n=="function"&&typeof t>"u"&&(t=n,n=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Ct(1):"Expected the enhancer to be a function. Instead, received: '"+_n(t)+"'");return t(Yp)(e,n)}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=n,c=[],l=c,d=!1;function p(){l===c&&(l=c.slice())}function h(){if(d)throw new Error(process.env.NODE_ENV==="production"?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 y(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(!qp(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=y;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(h())}M();var k=D(M);return{unsubscribe:k}}},x[$d]=function(){return this},x}return _({type:En.INIT}),a={dispatch:_,subscribe:y,getState:h,replaceReducer:E},a[$d]=T,a}function Md(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function ow(e,n,t,a){var s=Object.keys(n),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(!qp(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!n.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 sw(e){Object.keys(e).forEach(function(n){var t=e[n],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 "'+n+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof t(void 0,{type:En.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?Ct(13):'The slice reducer for key "'+n+'" 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 zp(e){for(var n=Object.keys(e),t={},a=0;a<n.length;a++){var s=n[a];process.env.NODE_ENV!=="production"&&typeof e[s]>"u"&&Md('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{sw(t)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(process.env.NODE_ENV!=="production"){var y=ow(p,t,h,c);y&&Md(y)}for(var _=!1,E={},T=0;T<i.length;T++){var x=i[T],D=t[x],P=p[x],j=D(P,h);if(typeof j>"u"){var M=h&&h.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 ns(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.length===0?function(a){return a}:n.length===1?n[0]:n.reduce(function(a,s){return function(){return a(s.apply(void 0,arguments))}})}function iw(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return function(a){return function(){var s=a.apply(void 0,arguments),i=function(){throw new Error(process.env.NODE_ENV==="production"?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=n.map(function(d){return d(c)});return i=ns.apply(void 0,l)(s.dispatch),Fd(Fd({},s),{},{dispatch:i})}}}var as="NOT_FOUND";function uw(e){var n;return{get:function(a){return n&&e(n.key,a)?n.value:as},put:function(a,s){n={key:a,value:s}},getEntries:function(){return n?[n]:[]},clear:function(){n=void 0}}}function cw(e,n){var t=[];function a(l){var d=t.findIndex(function(h){return n(l,h.key)});if(d>-1){var p=t[d];return d>0&&(t.splice(d,1),t.unshift(p)),p.value}return as}function s(l,d){a(l)===as&&(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 lw=function(n,t){return n===t};function fw(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 dw(e,n){var t=typeof n=="object"?n:{equalityCheck:n},a=t.equalityCheck,s=a===void 0?lw:a,i=t.maxSize,c=i===void 0?1:i,l=t.resultEqualityCheck,d=fw(s),p=c===1?uw(d):cw(c,d);function h(){var y=p.get(arguments);if(y===as){if(y=e.apply(null,arguments),l){var _=p.getEntries(),E=_.find(function(T){return l(T.value,y)});E&&(y=E.value)}p.put(arguments,y)}return y}return h.clearCache=function(){return p.clear()},h}function pw(e){var n=Array.isArray(e[0])?e[0]:e;if(!n.every(function(a){return typeof a=="function"})){var t=n.map(function(a){return typeof a=="function"?"function "+(a.name||"unnamed")+"()":typeof a}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+t+"]")}return n}function hw(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),a=1;a<n;a++)t[a-1]=arguments[a];var s=function(){for(var c=arguments.length,l=new Array(c),d=0;d<c;d++)l[d]=arguments[d];var p=0,h,y={memoizeOptions:void 0},_=l.pop();if(typeof _=="object"&&(y=_,_=l.pop()),typeof _!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof _+"]");var E=y,T=E.memoizeOptions,x=T===void 0?t:T,D=Array.isArray(x)?x:[x],P=pw(l),j=e.apply(void 0,[function(){return p++,_.apply(null,arguments)}].concat(D)),M=e(function(){for(var O=[],z=P.length,H=0;H<z;H++)O.push(P[H].apply(null,arguments));return h=j.apply(null,O),h});return Object.assign(M,{resultFunc:_,memoizedResultFunc:j,dependencies:P,lastResult:function(){return h},recomputations:function(){return p},resetRecomputations:function(){return p=0}}),M};return s}var G=hw(dw);function Vp(e){var n=function(a){var s=a.dispatch,i=a.getState;return function(c){return function(l){return typeof l=="function"?l(s,i,e):c(l)}}};return n}var Kp=Vp();Kp.withExtraArgument=Vp;const Ld=Kp;var gw=globalThis&&globalThis.__extends||function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(a[i]=s[i])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function a(){this.constructor=n}n.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),vw=globalThis&&globalThis.__generator||function(e,n){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,s,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(h){return d([p,h])}}function d(p){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,s&&(i=p[0]&2?s.return:p[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,p[1])).done)return i;switch(s=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return t.label++,{value:p[1],done:!1};case 5:t.label++,s=p[1],p=[0];continue;case 7:p=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){t=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){t.label=p[1];break}if(p[0]===6&&t.label<i[1]){t.label=i[1],i=p;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(p);break}i[2]&&t.ops.pop(),t.trys.pop();continue}p=n.call(e,t)}catch(h){p=[6,h],s=0}finally{a=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},os=globalThis&&globalThis.__spreadArray||function(e,n){for(var t=0,a=n.length,s=e.length;t<a;t++,s++)e[s]=n[t];return e},mw=Object.defineProperty,yw=Object.defineProperties,bw=Object.getOwnPropertyDescriptors,Nd=Object.getOwnPropertySymbols,_w=Object.prototype.hasOwnProperty,Ew=Object.prototype.propertyIsEnumerable,kd=function(e,n,t){return n in e?mw(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t},tn=function(e,n){for(var t in n||(n={}))_w.call(n,t)&&kd(e,t,n[t]);if(Nd)for(var a=0,s=Nd(n);a<s.length;a++){var t=s[a];Ew.call(n,t)&&kd(e,t,n[t])}return e},lu=function(e,n){return yw(e,bw(n))},Sw=function(e,n,t){return new Promise(function(a,s){var i=function(d){try{l(t.next(d))}catch(p){s(p)}},c=function(d){try{l(t.throw(d))}catch(p){s(p)}},l=function(d){return d.done?a(d.value):Promise.resolve(d.value).then(i,c)};l((t=t.apply(e,n)).next())})},ww=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ns:ns.apply(null,arguments)};function Jp(e){if(typeof e!="object"||e===null)return!1;var n=Object.getPrototypeOf(e);if(n===null)return!0;for(var t=n;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return n===t}function Xp(e,n){var t=0;return{measureTime:function(a){var s=Date.now();try{return a()}finally{var i=Date.now();t+=i-s}},warnIfExceeded:function(){t>e&&console.warn(n+" took "+t+"ms, which is more than the warning threshold of "+e+`ms.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("@ws-ui/shared"),pt=require("react"),WS=require("react-dom");function Je(e){for(var n=arguments.length,t=Array(n>1?n-1:0),a=1;a<n;a++)t[a-1]=arguments[a];if(process.env.NODE_ENV!=="production"){var s=JS[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[ye]}function hr(e){var n;return!!e&&(function(t){if(!t||typeof t!="object")return!1;var a=Object.getPrototypeOf(t);if(a===null)return!0;var s=Object.hasOwnProperty.call(a,"constructor")&&a.constructor;return s===Object||typeof s=="function"&&Function.toString.call(s)===XS}(e)||Array.isArray(e)||!!e[Ra]||!!(!((n=e.constructor)===null||n===void 0)&&n[Ra])||ys(e)||bs(e))}function Lr(e,n,t){t===void 0&&(t=!1),rn(e)===0?(t?Object.keys:Hn)(e).forEach(function(a){t&&typeof a=="symbol"||n(a,e[a],e)}):e.forEach(function(a,s){return n(s,a,e)})}function rn(e){var n=e[ye];return n?n.i>3?n.i-4:n.i:Array.isArray(e)?1:ys(e)?2:bs(e)?3:0}function en(e,n){return rn(e)===2?e.has(n):Object.prototype.hasOwnProperty.call(e,n)}function zo(e,n){return rn(e)===2?e.get(n):e[n]}function Hp(e,n,t){var a=rn(e);a===2?e.set(n,t):a===3?e.add(t):e[n]=t}function Gp(e,n){return e===n?e!==0||1/e==1/n:e!=e&&n!=n}function ys(e){return VS&&e instanceof Map}function bs(e){return KS&&e instanceof Set}function ft(e){return e.o||e.t}function dc(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var n=qp(e);delete n[ye];for(var t=Hn(n),a=0;a<t.length;a++){var s=t[a],i=n[s];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(n[s]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),n)}function pc(e,n){return n===void 0&&(n=!1),hc(e)||Mr(e)||!hr(e)||(rn(e)>1&&(e.set=e.add=e.clear=e.delete=US),Object.freeze(e),n&&Lr(e,function(t,a){return pc(a,!0)},!0)),e}function US(){Je(2)}function hc(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function br(e){var n=ku[e];return n||Je(18,e),n}function gc(e,n){ku[e]||(ku[e]=n)}function Fa(){return process.env.NODE_ENV==="production"||Vn||Je(0),Vn}function ou(e,n){n&&(br("Patches"),e.u=[],e.s=[],e.v=n)}function es(e){Nu(e),e.p.forEach(HS),e.p=null}function Nu(e){e===Vn&&(Vn=e.l)}function Rd(e){return Vn={p:[],l:Vn,h:e,m:!0,_:0}}function HS(e){var n=e[ye];n.i===0||n.i===1?n.j():n.g=!0}function su(e,n){n._=n.p.length;var t=n.p[0],a=e!==void 0&&e!==t;return n.h.O||br("ES5").S(n,e,a),a?(t[ye].P&&(es(n),Je(4)),hr(e)&&(e=ts(n,e),n.l||rs(n,e)),n.u&&br("Patches").M(t[ye].t,e,n.u,n.s)):e=ts(n,t,[]),es(n),n.u&&n.v(n.u,n.s),e!==mc?e:void 0}function ts(e,n,t){if(hc(n))return n;var a=n[ye];if(!a)return Lr(n,function(l,d){return Od(e,a,n,l,d,t)},!0),n;if(a.A!==e)return n;if(!a.P)return rs(e,a.t,!0),a.t;if(!a.I){a.I=!0,a.A._--;var s=a.i===4||a.i===5?a.o=dc(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 Od(e,a,s,l,d,t,c)}),rs(e,s,!1),t&&e.u&&br("Patches").N(a,t,e.u,e.s)}return a.o}function Od(e,n,t,a,s,i,c){if(process.env.NODE_ENV!=="production"&&s===t&&Je(5),Mr(s)){var l=ts(e,s,i&&n&&n.i!==3&&!en(n.R,a)?i.concat(a):void 0);if(Hp(t,a,l),!Mr(l))return;e.m=!1}else c&&t.add(s);if(hr(s)&&!hc(s)){if(!e.h.D&&e._<1)return;ts(e,s),n&&n.A.l||rs(e,s)}}function rs(e,n,t){t===void 0&&(t=!1),!e.l&&e.h.D&&e.m&&pc(n,t)}function iu(e,n){var t=e[ye];return(t?ft(t):e)[n]}function Ad(e,n){if(n in e)for(var t=Object.getPrototypeOf(e);t;){var a=Object.getOwnPropertyDescriptor(t,n);if(a)return a;t=Object.getPrototypeOf(t)}}function Lt(e){e.P||(e.P=!0,e.l&&Lt(e.l))}function uu(e){e.o||(e.o=dc(e.t))}function $a(e,n,t){var a=ys(n)?br("MapSet").F(n,t):bs(n)?br("MapSet").T(n,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 h=Proxy.revocable(d,p),y=h.revoke,_=h.proxy;return l.k=_,l.j=y,_}(n,t):br("ES5").J(n,t);return(t?t.A:Fa()).p.push(a),a}function GS(e){return Mr(e)||Je(22,e),function n(t){if(!hr(t))return t;var a,s=t[ye],i=rn(t);if(s){if(!s.P&&(s.i<4||!br("ES5").K(s)))return s.t;s.I=!0,a=Pd(t,i),s.I=!1}else a=Pd(t,i);return Lr(a,function(c,l){s&&zo(s.t,c)===l||Hp(a,c,n(l))}),i===3?new Set(a):a}(e)}function Pd(e,n){switch(n){case 2:return new Map(e);case 3:return Array.from(e)}return dc(e)}function qS(){function e(c,l){var d=i[c];return d?d.enumerable=l:i[c]=d={configurable:!0,enumerable:l,get:function(){var p=this[ye];return process.env.NODE_ENV!=="production"&&s(p),Ma.get(p,c)},set:function(p){var h=this[ye];process.env.NODE_ENV!=="production"&&s(h),Ma.set(h,c,p)}},d}function n(c){for(var l=c.length-1;l>=0;l--){var d=c[l][ye];if(!d.P)switch(d.i){case 5:a(d)&&Lt(d);break;case 4:t(d)&&Lt(d)}}}function t(c){for(var l=c.t,d=c.k,p=Hn(d),h=p.length-1;h>=0;h--){var y=p[h];if(y!==ye){var _=l[y];if(_===void 0&&!en(l,y))return!0;var E=d[y],T=E&&E[ye];if(T?T.t!==_:!Gp(E,_))return!0}}var x=!!l[ye];return p.length!==Hn(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={};gc("ES5",{J:function(c,l){var d=Array.isArray(c),p=function(y,_){if(y){for(var E=Array(_.length),T=0;T<_.length;T++)Object.defineProperty(E,""+T,e(T,!0));return E}var x=qp(_);delete x[ye];for(var D=Hn(x),P=0;P<D.length;P++){var j=D[P];x[j]=e(j,y||!!x[j].enumerable)}return Object.create(Object.getPrototypeOf(_),x)}(d,c),h={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,ye,{value:h,writable:!0}),p},S:function(c,l,d){d?Mr(l)&&l[ye].A===c&&n(c.p):(c.u&&function p(h){if(h&&typeof h=="object"){var y=h[ye];if(y){var _=y.t,E=y.k,T=y.R,x=y.i;if(x===4)Lr(E,function(k){k!==ye&&(_[k]!==void 0||en(_,k)?T[k]||p(E[k]):(T[k]=!0,Lt(y)))}),Lr(_,function(k){E[k]!==void 0||en(E,k)||(T[k]=!1,Lt(y))});else if(x===5){if(a(y)&&(Lt(y),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]),n(c.p))},K:function(c){return c.i===4?t(c):a(c)}})}function YS(){function e(a){if(!hr(a))return a;if(Array.isArray(a))return a.map(e);if(ys(a))return new Map(Array.from(a.entries()).map(function(c){return[c[0],e(c[1])]}));if(bs(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 n(a){return Mr(a)?e(a):a}var t="add";gc("Patches",{$:function(a,s){return s.forEach(function(i){for(var c=i.path,l=i.op,d=a,p=0;p<c.length-1;p++){var h=rn(d),y=c[p];typeof y!="string"&&typeof y!="number"&&(y=""+y),h!==0&&h!==1||y!=="__proto__"&&y!=="constructor"||Je(24),typeof d=="function"&&y==="prototype"&&Je(24),typeof(d=zo(d,y))!="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,h){var y=l.t,_=l.o;Lr(l.R,function(E,T){var x=zo(y,E),D=zo(_,E),P=T?en(y,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}),h.push(P===t?{op:"remove",path:j}:P==="remove"?{op:t,path:j,value:n(x)}:{op:"replace",path:j,value:n(x)})}})}(a,s,i,c);case 5:case 1:return function(l,d,p,h){var y=l.t,_=l.R,E=l.o;if(E.length<y.length){var T=[E,y];y=T[0],E=T[1];var x=[h,p];p=x[0],h=x[1]}for(var D=0;D<y.length;D++)if(_[D]&&E[D]!==y[D]){var P=d.concat([D]);p.push({op:"replace",path:P,value:n(E[D])}),h.push({op:"replace",path:P,value:n(y[D])})}for(var j=y.length;j<E.length;j++){var M=d.concat([j]);p.push({op:t,path:M,value:n(E[j])})}y.length<E.length&&h.push({op:"replace",path:d.concat(["length"]),value:y.length})}(a,s,i,c);case 3:return function(l,d,p,h){var y=l.t,_=l.o,E=0;y.forEach(function(T){if(!_.has(T)){var x=d.concat([E]);p.push({op:"remove",path:x,value:T}),h.unshift({op:t,path:x,value:T})}E++}),E=0,_.forEach(function(T){if(!y.has(T)){var x=d.concat([E]);p.push({op:t,path:x,value:T}),h.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===mc?void 0:s}),c.push({op:"replace",path:[],value:a})}})}function zS(){function e(l,d){function p(){this.constructor=l}s(l,d),l.prototype=(p.prototype=d.prototype,new p)}function n(l){l.o||(l.R=new Map,l.o=new Map(l.t))}function t(l){l.o||(l.o=new Set,l.t.forEach(function(d){if(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,h){p.__proto__=h}||function(p,h){for(var y in h)h.hasOwnProperty(y)&&(p[y]=h[y])})(l,d)},i=function(){function l(p,h){return this[ye]={i:2,l:h,A:h?h.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[ye]).size}}),d.has=function(p){return ft(this[ye]).has(p)},d.set=function(p,h){var y=this[ye];return a(y),ft(y).has(p)&&ft(y).get(p)===h||(n(y),Lt(y),y.R.set(p,!0),y.o.set(p,h),y.R.set(p,!0)),this},d.delete=function(p){if(!this.has(p))return!1;var h=this[ye];return a(h),n(h),Lt(h),h.t.has(p)?h.R.set(p,!1):h.R.delete(p),h.o.delete(p),!0},d.clear=function(){var p=this[ye];a(p),ft(p).size&&(n(p),Lt(p),p.R=new Map,Lr(p.t,function(h){p.R.set(h,!1)}),p.o.clear())},d.forEach=function(p,h){var y=this;ft(this[ye]).forEach(function(_,E){p.call(h,y.get(E),E,y)})},d.get=function(p){var h=this[ye];a(h);var y=ft(h).get(p);if(h.I||!hr(y)||y!==h.t.get(p))return y;var _=$a(h.A.h,y,h);return n(h),h.o.set(p,_),_},d.keys=function(){return ft(this[ye]).keys()},d.values=function(){var p,h=this,y=this.keys();return(p={})[Wo]=function(){return h.values()},p.next=function(){var _=y.next();return _.done?_:{done:!1,value:h.get(_.value)}},p},d.entries=function(){var p,h=this,y=this.keys();return(p={})[Wo]=function(){return h.entries()},p.next=function(){var _=y.next();if(_.done)return _;var E=h.get(_.value);return{done:!1,value:[_.value,E]}},p},d[Wo]=function(){return this.entries()},l}(),c=function(){function l(p,h){return this[ye]={i:3,l:h,A:h?h.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[ye]).size}}),d.has=function(p){var h=this[ye];return a(h),h.o?!!h.o.has(p)||!(!h.p.has(p)||!h.o.has(h.p.get(p))):h.t.has(p)},d.add=function(p){var h=this[ye];return a(h),this.has(p)||(t(h),Lt(h),h.o.add(p)),this},d.delete=function(p){if(!this.has(p))return!1;var h=this[ye];return a(h),t(h),Lt(h),h.o.delete(p)||!!h.p.has(p)&&h.o.delete(h.p.get(p))},d.clear=function(){var p=this[ye];a(p),ft(p).size&&(t(p),Lt(p),p.o.clear())},d.values=function(){var p=this[ye];return a(p),t(p),p.o.values()},d.entries=function(){var p=this[ye];return a(p),t(p),p.o.entries()},d.keys=function(){return this.values()},d[Wo]=function(){return this.values()},d.forEach=function(p,h){for(var y=this.values(),_=y.next();!_.done;)p.call(h,_.value,_.value,this),_=y.next()},l}();gc("MapSet",{F:function(l,d){return new i(l,d)},T:function(l,d){return new c(l,d)}})}var Dd,Vn,vc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",VS=typeof Map<"u",KS=typeof Set<"u",Id=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",mc=vc?Symbol.for("immer-nothing"):((Dd={})["immer-nothing"]=!0,Dd),Ra=vc?Symbol.for("immer-draftable"):"__$immer_draftable",ye=vc?Symbol.for("immer-state"):"__$immer_state",Wo=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",JS={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"},XS=""+Object.prototype.constructor,Hn=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,qp=Object.getOwnPropertyDescriptors||function(e){var n={};return Hn(e).forEach(function(t){n[t]=Object.getOwnPropertyDescriptor(e,t)}),n},ku={},Ma={get:function(e,n){if(n===ye)return e;var t=ft(e);if(!en(t,n))return function(s,i,c){var l,d=Ad(i,c);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(s.k):void 0}(e,t,n);var a=t[n];return e.I||!hr(a)?a:a===iu(e.t,n)?(uu(e),e.o[n]=$a(e.A.h,a,e)):a},has:function(e,n){return n in ft(e)},ownKeys:function(e){return Reflect.ownKeys(ft(e))},set:function(e,n,t){var a=Ad(ft(e),n);if(a!=null&&a.set)return a.set.call(e.k,t),!0;if(!e.P){var s=iu(ft(e),n),i=s==null?void 0:s[ye];if(i&&i.t===t)return e.o[n]=t,e.R[n]=!1,!0;if(Gp(t,s)&&(t!==void 0||en(e.t,n)))return!0;uu(e),Lt(e)}return e.o[n]===t&&(t!==void 0||n in e.o)||Number.isNaN(t)&&Number.isNaN(e.o[n])||(e.o[n]=t,e.R[n]=!0),!0},deleteProperty:function(e,n){return iu(e.t,n)!==void 0||n in e.t?(e.R[n]=!1,uu(e),Lt(e)):delete e.R[n],e.o&&delete e.o[n],!0},getOwnPropertyDescriptor:function(e,n){var t=ft(e),a=Reflect.getOwnPropertyDescriptor(t,n);return a&&{writable:!0,configurable:e.i!==1||n!=="length",enumerable:a.enumerable,value:t[n]}},defineProperty:function(){Je(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Je(12)}},Ca={};Lr(Ma,function(e,n){Ca[e]=function(){return arguments[0]=arguments[0][0],n.apply(this,arguments)}}),Ca.deleteProperty=function(e,n){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(n))&&Je(13),Ca.set.call(this,e,n,void 0)},Ca.set=function(e,n,t){return process.env.NODE_ENV!=="production"&&n!=="length"&&isNaN(parseInt(n))&&Je(14),Ma.set.call(this,e[0],n,t,e[0])};var ZS=function(){function e(t){var a=this;this.O=Id,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 h=Rd(a),y=$a(a,s,void 0),_=!0;try{p=i(y),_=!1}finally{_?es(h):Nu(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(x){return ou(h,c),su(x,h)},function(x){throw es(h),x}):(ou(h,c),su(p,h))}if(!s||typeof s!="object"){if((p=i(s))===void 0&&(p=s),p===mc&&(p=void 0),a.D&&pc(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 h=arguments.length,y=Array(h>1?h-1:0),_=1;_<h;_++)y[_-1]=arguments[_];return a.produceWithPatches(p,function(E){return s.apply(void 0,[E].concat(y))})};var c,l,d=a.produce(s,i,function(p,h){c=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,c,l]}):[d,c,l]},typeof(t==null?void 0:t.useProxies)=="boolean"&&this.setUseProxies(t.useProxies),typeof(t==null?void 0:t.autoFreeze)=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var n=e.prototype;return n.createDraft=function(t){hr(t)||Je(8),Mr(t)&&(t=GS(t));var a=Rd(this),s=$a(this,t,void 0);return s[ye].C=!0,Nu(a),s},n.finishDraft=function(t,a){var s=t&&t[ye];process.env.NODE_ENV!=="production"&&(s&&s.C||Je(9),s.I&&Je(10));var i=s.A;return ou(i,a),su(void 0,i)},n.setAutoFreeze=function(t){this.D=t},n.setUseProxies=function(t){t&&!Id&&Je(20),this.O=t},n.applyPatches=function(t,a){var s;for(s=a.length-1;s>=0;s--){var i=a[s];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}s>-1&&(a=a.slice(s+1));var c=br("Patches").$;return Mr(t)?c(t,a):this.produce(t,function(l){return c(l,a)})},e}(),Gt=new ZS,Vo=Gt.produce;Gt.produceWithPatches.bind(Gt);Gt.setAutoFreeze.bind(Gt);Gt.setUseProxies.bind(Gt);Gt.applyPatches.bind(Gt);Gt.createDraft.bind(Gt);Gt.finishDraft.bind(Gt);function La(e){"@babel/helpers - typeof";return La=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},La(e)}function QS(e,n){if(La(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,n||"default");if(La(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function ew(e){var n=QS(e,"string");return La(n)==="symbol"?n:String(n)}function tw(e,n,t){return n=ew(n),n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Fd(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,a)}return t}function $d(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?Fd(Object(t),!0).forEach(function(a){tw(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Fd(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 Md=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),cu=function(){return Math.random().toString(36).substring(7).split("").join(".")},En={INIT:"@@redux/INIT"+cu(),REPLACE:"@@redux/REPLACE"+cu(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+cu()}};function Yp(e){if(typeof e!="object"||e===null)return!1;for(var n=e;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}function rw(e){if(e===void 0)return"undefined";if(e===null)return"null";var n=typeof e;switch(n){case"boolean":case"string":case"number":case"symbol":case"function":return n}if(Array.isArray(e))return"array";if(ow(e))return"date";if(aw(e))return"error";var t=nw(e);switch(t){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return t}return n.slice(8,-1).toLowerCase().replace(/\s/g,"")}function nw(e){return typeof e.constructor=="function"?e.constructor.name:null}function aw(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function ow(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function _n(e){var n=typeof e;return process.env.NODE_ENV!=="production"&&(n=rw(e)),n}function zp(e,n,t){var a;if(typeof n=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?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 n=="function"&&typeof t>"u"&&(t=n,n=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Ct(1):"Expected the enhancer to be a function. Instead, received: '"+_n(t)+"'");return t(zp)(e,n)}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=n,c=[],l=c,d=!1;function p(){l===c&&(l=c.slice())}function h(){if(d)throw new Error(process.env.NODE_ENV==="production"?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 y(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(!Yp(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=y;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(h())}M();var k=D(M);return{unsubscribe:k}}},x[Md]=function(){return this},x}return _({type:En.INIT}),a={dispatch:_,subscribe:y,getState:h,replaceReducer:E},a[Md]=T,a}function Ld(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function sw(e,n,t,a){var s=Object.keys(n),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(!Yp(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!n.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 iw(e){Object.keys(e).forEach(function(n){var t=e[n],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 "'+n+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof t(void 0,{type:En.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?Ct(13):'The slice reducer for key "'+n+'" 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 Vp(e){for(var n=Object.keys(e),t={},a=0;a<n.length;a++){var s=n[a];process.env.NODE_ENV!=="production"&&typeof e[s]>"u"&&Ld('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{iw(t)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(process.env.NODE_ENV!=="production"){var y=sw(p,t,h,c);y&&Ld(y)}for(var _=!1,E={},T=0;T<i.length;T++){var x=i[T],D=t[x],P=p[x],j=D(P,h);if(typeof j>"u"){var M=h&&h.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 ns(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.length===0?function(a){return a}:n.length===1?n[0]:n.reduce(function(a,s){return function(){return a(s.apply(void 0,arguments))}})}function uw(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return function(a){return function(){var s=a.apply(void 0,arguments),i=function(){throw new Error(process.env.NODE_ENV==="production"?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=n.map(function(d){return d(c)});return i=ns.apply(void 0,l)(s.dispatch),$d($d({},s),{},{dispatch:i})}}}var as="NOT_FOUND";function cw(e){var n;return{get:function(a){return n&&e(n.key,a)?n.value:as},put:function(a,s){n={key:a,value:s}},getEntries:function(){return n?[n]:[]},clear:function(){n=void 0}}}function lw(e,n){var t=[];function a(l){var d=t.findIndex(function(h){return n(l,h.key)});if(d>-1){var p=t[d];return d>0&&(t.splice(d,1),t.unshift(p)),p.value}return as}function s(l,d){a(l)===as&&(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 fw=function(n,t){return n===t};function dw(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 pw(e,n){var t=typeof n=="object"?n:{equalityCheck:n},a=t.equalityCheck,s=a===void 0?fw:a,i=t.maxSize,c=i===void 0?1:i,l=t.resultEqualityCheck,d=dw(s),p=c===1?cw(d):lw(c,d);function h(){var y=p.get(arguments);if(y===as){if(y=e.apply(null,arguments),l){var _=p.getEntries(),E=_.find(function(T){return l(T.value,y)});E&&(y=E.value)}p.put(arguments,y)}return y}return h.clearCache=function(){return p.clear()},h}function hw(e){var n=Array.isArray(e[0])?e[0]:e;if(!n.every(function(a){return typeof a=="function"})){var t=n.map(function(a){return typeof a=="function"?"function "+(a.name||"unnamed")+"()":typeof a}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+t+"]")}return n}function gw(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),a=1;a<n;a++)t[a-1]=arguments[a];var s=function(){for(var c=arguments.length,l=new Array(c),d=0;d<c;d++)l[d]=arguments[d];var p=0,h,y={memoizeOptions:void 0},_=l.pop();if(typeof _=="object"&&(y=_,_=l.pop()),typeof _!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof _+"]");var E=y,T=E.memoizeOptions,x=T===void 0?t:T,D=Array.isArray(x)?x:[x],P=hw(l),j=e.apply(void 0,[function(){return p++,_.apply(null,arguments)}].concat(D)),M=e(function(){for(var O=[],z=P.length,H=0;H<z;H++)O.push(P[H].apply(null,arguments));return h=j.apply(null,O),h});return Object.assign(M,{resultFunc:_,memoizedResultFunc:j,dependencies:P,lastResult:function(){return h},recomputations:function(){return p},resetRecomputations:function(){return p=0}}),M};return s}var G=gw(pw);function Kp(e){var n=function(a){var s=a.dispatch,i=a.getState;return function(c){return function(l){return typeof l=="function"?l(s,i,e):c(l)}}};return n}var Jp=Kp();Jp.withExtraArgument=Kp;const Nd=Jp;var vw=globalThis&&globalThis.__extends||function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(a[i]=s[i])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function a(){this.constructor=n}n.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),mw=globalThis&&globalThis.__generator||function(e,n){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,s,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(h){return d([p,h])}}function d(p){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,s&&(i=p[0]&2?s.return:p[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,p[1])).done)return i;switch(s=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return t.label++,{value:p[1],done:!1};case 5:t.label++,s=p[1],p=[0];continue;case 7:p=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){t=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){t.label=p[1];break}if(p[0]===6&&t.label<i[1]){t.label=i[1],i=p;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(p);break}i[2]&&t.ops.pop(),t.trys.pop();continue}p=n.call(e,t)}catch(h){p=[6,h],s=0}finally{a=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},os=globalThis&&globalThis.__spreadArray||function(e,n){for(var t=0,a=n.length,s=e.length;t<a;t++,s++)e[s]=n[t];return e},yw=Object.defineProperty,bw=Object.defineProperties,_w=Object.getOwnPropertyDescriptors,kd=Object.getOwnPropertySymbols,Ew=Object.prototype.hasOwnProperty,Sw=Object.prototype.propertyIsEnumerable,jd=function(e,n,t){return n in e?yw(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t},tn=function(e,n){for(var t in n||(n={}))Ew.call(n,t)&&jd(e,t,n[t]);if(kd)for(var a=0,s=kd(n);a<s.length;a++){var t=s[a];Sw.call(n,t)&&jd(e,t,n[t])}return e},lu=function(e,n){return bw(e,_w(n))},ww=function(e,n,t){return new Promise(function(a,s){var i=function(d){try{l(t.next(d))}catch(p){s(p)}},c=function(d){try{l(t.throw(d))}catch(p){s(p)}},l=function(d){return d.done?a(d.value):Promise.resolve(d.value).then(i,c)};l((t=t.apply(e,n)).next())})},Tw=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ns:ns.apply(null,arguments)};function Xp(e){if(typeof e!="object"||e===null)return!1;var n=Object.getPrototypeOf(e);if(n===null)return!0;for(var t=n;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return n===t}function Zp(e,n){var t=0;return{measureTime:function(a){var s=Date.now();try{return a()}finally{var i=Date.now();t+=i-s}},warnIfExceeded:function(){t>e&&console.warn(n+" took "+t+"ms, which is more than the warning threshold of "+e+`ms.
|
|
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 Cw=function(e){vw(n,e);function n(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];var s=e.apply(this,t)||this;return Object.setPrototypeOf(s,n.prototype),s}return Object.defineProperty(n,Symbol.species,{get:function(){return n},enumerable:!1,configurable:!0}),n.prototype.concat=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return e.prototype.concat.apply(this,t)},n.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(n.bind.apply(n,os([void 0],t[0].concat(this)))):new(n.bind.apply(n,os([void 0],t.concat(this))))},n}(Array),xw=process.env.NODE_ENV==="production",Bd="Invariant failed";function Wd(e,n){if(!e)throw xw?new Error(Bd):new Error(Bd+": "+(n||""))}function Rw(e,n,t,a){return JSON.stringify(e,Ow(n,a),t)}function Ow(e,n){var t=[],a=[];return n||(n=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=n.call(this,s,i))}else t.push(i);return e==null?i:e.call(this,s,i)}}function Aw(e){return typeof e!="object"||e===null||typeof e>"u"||Object.isFrozen(e)}function Pw(e,n,t){var a=Qp(e,n,t);return{detectMutations:function(){return eh(e,n,a,t)}}}function Qp(e,n,t,a){n===void 0&&(n=[]),a===void 0&&(a="");var s={value:t};if(!e(t)){s.children={};for(var i in t){var c=a?a+"."+i:i;n.length&&n.indexOf(c)!==-1||(s.children[i]=Qp(e,n,t[i],c))}}return s}function eh(e,n,t,a,s,i){n===void 0&&(n=[]),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 h=i?i+"."+p:p;if(!(n.length&&n.indexOf(h)!==-1)){var y=eh(e,n,t.children[p],a[p],l,h);if(y.wasMutated)return y}}return{wasMutated:!1}}function Dw(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(d){return function(p){return d(p)}}};var n=e.isImmutable,t=n===void 0?Aw:n,a=e.ignoredPaths,s=e.warnAfter,i=s===void 0?32:s,c=e.ignore;a=a||c;var l=Pw.bind(null,t,a);return function(d){var p=d.getState,h=p(),y=l(h),_;return function(E){return function(T){var x=Zp(i,"ImmutableStateInvariantMiddleware");x.measureTime(function(){h=p(),_=y.detectMutations(),y=l(h),Wd(!_.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=E(T);return x.measureTime(function(){h=p(),_=y.detectMutations(),y=l(h),_.wasMutated&&Wd(!_.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(_.path||"")+". Take a look at the reducer(s) handling the action "+Rw(T)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),x.warnIfExceeded(),D}}}}function th(e){var n=typeof e;return n==="undefined"||e===null||n==="string"||n==="boolean"||n==="number"||Array.isArray(e)||Xp(e)}function ju(e,n,t,a,s){n===void 0&&(n=""),t===void 0&&(t=th),s===void 0&&(s=[]);var i;if(!t(e))return{keyPath:n||"<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 h=p[d],y=h[0],_=h[1],E=n?n+"."+y:y;if(!(l&&s.indexOf(E)>=0)){if(!t(_))return{keyPath:E,value:_};if(typeof _=="object"&&(i=ju(_,E,t,a,s),i))return i}}return!1}function Iw(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(T){return function(x){return T(x)}}};var n=e.isSerializable,t=n===void 0?th:n,a=e.getEntries,s=e.ignoredActions,i=s===void 0?[]:s,c=e.ignoredActionPaths,l=c===void 0?["meta.arg","meta.baseQueryMeta"]:c,d=e.ignoredPaths,p=d===void 0?[]:d,h=e.warnAfter,y=h===void 0?32:h,_=e.ignoreState,E=_===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=Zp(y,"SerializableStateInvariantMiddleware");P.measureTime(function(){var M=ju(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
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 E||(P.measureTime(function(){var M=T.getState(),k=ju(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 fu(e){return typeof e=="boolean"}function Iw(){return function(n){return Fw(n)}}function Fw(e){e===void 0&&(e={});var n=e.thunk,t=n===void 0?!0:n,a=e.immutableCheck,s=a===void 0?!0:a,i=e.serializableCheck,c=i===void 0?!0:i,l=new Tw;if(t&&(fu(t)?l.push(Ld):l.push(Ld.withExtraArgument(t.extraArgument))),process.env.NODE_ENV!=="production"){if(s){var d={};fu(s)||(d=s),l.unshift(Pw(d))}if(c){var p={};fu(c)||(p=c),l.push(Dw(p))}}return l}var du=process.env.NODE_ENV==="production";function $w(e){var n=Iw(),t=e||{},a=t.reducer,s=a===void 0?void 0:a,i=t.middleware,c=i===void 0?n():i,l=t.devTools,d=l===void 0?!0:l,p=t.preloadedState,h=p===void 0?void 0:p,y=t.enhancers,_=y===void 0?void 0:y,E;if(typeof s=="function")E=s;else if(Jp(s))E=zp(s);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var T=c;if(typeof T=="function"&&(T=T(n),!du&&!Array.isArray(T)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!du&&T.some(function(M){return typeof M!="function"}))throw new Error("each middleware provided to configureStore must be a function");var x=iw.apply(void 0,T),D=ns;d&&(D=ww(tn({trace:!du},typeof d=="object"&&d)));var P=[x];Array.isArray(_)?P=os([x],_):typeof _=="function"&&(P=_(P));var j=D.apply(void 0,P);return Yp(E,h,j)}function Oa(e,n){function t(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];if(n){var i=n.apply(void 0,a);if(!i)throw new Error("prepareAction did not return an object");return 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 th(e){var n={},t=[],a,s={addCase:function(i,c){if(process.env.NODE_ENV!=="production"){if(t.length>0)throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");if(a)throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`")}var l=typeof i=="string"?i:i.type;if(l in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[l]=c,s},addMatcher:function(i,c){if(process.env.NODE_ENV!=="production"&&a)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return t.push({matcher:i,reducer:c}),s},addDefaultCase:function(i){if(process.env.NODE_ENV!=="production"&&a)throw new Error("`builder.addDefaultCase` can only be called once");return a=i,s}};return e(s),[n,t,a]}function Mw(e){return typeof e=="function"}function Lw(e,n,t,a){t===void 0&&(t=[]);var s=typeof n=="function"?th(n):[n,t,a],i=s[0],c=s[1],l=s[2],d;if(Mw(e))d=function(){return Vo(e(),function(){})};else{var p=Vo(e,function(){});d=function(){return p}}function h(y,_){y===void 0&&(y=d());var E=os([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 Vo(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},y)}return h.getInitialState=d,h}function Nw(e,n){return e+"/"+n}function nr(e){var n=e.name;if(!n)throw new Error("`name` is a required option for createSlice");var t=typeof e.initialState=="function"?e.initialState:Vo(e.initialState,function(){}),a=e.reducers||{},s=Object.keys(a),i={},c={},l={};s.forEach(function(h){var y=a[h],_=Nw(n,h),E,T;"reducer"in y?(E=y.reducer,T=y.prepare):E=y,i[h]=E,c[_]=E,l[h]=T?Oa(_,T):Oa(_)});function d(){var h=typeof e.extraReducers=="function"?th(e.extraReducers):[e.extraReducers],y=h[0],_=y===void 0?{}:y,E=h[1],T=E===void 0?[]:E,x=h[2],D=x===void 0?void 0:x,P=tn(tn({},_),c);return Lw(t,P,T,D)}var p;return{name:n,reducer:function(h,y){return p||(p=d()),p(h,y)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var kw="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",mc=function(e){e===void 0&&(e=21);for(var n="",t=e;t--;)n+=kw[Math.random()*64|0];return n},jw=["name","message","stack","code"],pu=function(){function e(n,t){this.payload=n,this.meta=t}return e}(),Wd=function(){function e(n,t){this.payload=n,this.meta=t}return e}(),Bw=function(e){if(typeof e=="object"&&e!==null){for(var n={},t=0,a=jw;t<a.length;t++){var s=a[t];typeof e[s]=="string"&&(n[s]=e[s])}return n}return{message:String(e)}};function Q(e,n,t){var a=Oa(e+"/fulfilled",function(p,h,y,_){return{payload:p,meta:lu(tn({},_||{}),{arg:y,requestId:h,requestStatus:"fulfilled"})}}),s=Oa(e+"/pending",function(p,h,y){return{payload:void 0,meta:lu(tn({},y||{}),{arg:h,requestId:p,requestStatus:"pending"})}}),i=Oa(e+"/rejected",function(p,h,y,_,E){return{payload:_,error:(t&&t.serializeError||Bw)(p||"Rejected"),meta:lu(tn({},E||{}),{arg:y,requestId:h,rejectedWithValue:!!_,requestStatus:"rejected",aborted:(p==null?void 0:p.name)==="AbortError",condition:(p==null?void 0:p.name)==="ConditionError"})}}),c=!1,l=typeof AbortController<"u"?AbortController:function(){function p(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){}}}return p.prototype.abort=function(){process.env.NODE_ENV!=="production"&&(c||(c=!0,console.info("This platform does not implement AbortController. \nIf you want to use the AbortController to react to `abort` events, please consider importing a polyfill like 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'.")))},p}();function d(p){return function(h,y,_){var E=t!=null&&t.idGenerator?t.idGenerator(p):mc(),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 Sw(this,null,function(){var k,O,z,H,Y,te;return vw(this,function(We){switch(We.label){case 0:return We.trys.push([0,4,,5]),H=(k=t==null?void 0:t.condition)==null?void 0:k.call(t,p,{getState:y,extra:_}),Uw(H)?[4,H]:[3,2];case 1:H=We.sent(),We.label=2;case 2:if(H===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return P=!0,h(s(E,p,(O=t==null?void 0:t.getPendingMeta)==null?void 0:O.call(t,{requestId:E,arg:p},{getState:y,extra:_}))),[4,Promise.race([D,Promise.resolve(n(p,{dispatch:h,getState:y,extra:_,requestId:E,signal:T.signal,rejectWithValue:function(Te,st){return new pu(Te,st)},fulfillWithValue:function(Te,st){return new Wd(Te,st)}})).then(function(Te){if(Te instanceof pu)throw Te;return Te instanceof Wd?a(Te.payload,E,p,Te.meta):a(Te,E,p)})])];case 3:return z=We.sent(),[3,5];case 4:return Y=We.sent(),z=Y instanceof pu?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||h(z),[2,z]}})})}();return Object.assign(M,{abort:j,requestId:E,arg:p,unwrap:function(){return M.then(Ww)}})}}return Object.assign(d,{pending:s,rejected:i,fulfilled:a,typePrefix:e})}function Ww(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Uw(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Hw=function(e){return e&&typeof e.match=="function"},Gw=function(e,n){return Hw(e)?e.match(n):e(n)};function dr(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(t){return e.some(function(a){return Gw(a,t)})}}function yc(e,n){if(!e||!e.meta)return!1;var t=typeof e.meta.requestId=="string",a=n.indexOf(e.meta.requestStatus)>-1;return t&&a}function bc(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function rh(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===0?function(t){return yc(t,["pending"])}:bc(e)?function(t){var a=e.map(function(i){return i.pending}),s=dr.apply(void 0,a);return s(t)}:rh()(e[0])}function nh(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===0?function(t){return yc(t,["rejected"])}:bc(e)?function(t){var a=e.map(function(i){return i.rejected}),s=dr.apply(void 0,a);return s(t)}:nh()(e[0])}function ah(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===0?function(t){return yc(t,["fulfilled"])}:bc(e)?function(t){var a=e.map(function(i){return i.fulfilled}),s=dr.apply(void 0,a);return s(t)}:ah()(e[0])}GS();var Fr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qw(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var t=function a(){return this instanceof a?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:function(){return e[a]}})}),t}function Yw(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var ja=Yw,zw=typeof Fr=="object"&&Fr&&Fr.Object===Object&&Fr,oh=zw,Vw=oh,Kw=typeof self=="object"&&self&&self.Object===Object&&self,Jw=Vw||Kw||Function("return this")(),Er=Jw,Xw=Er,Zw=function(){return Xw.Date.now()},Qw=Zw,eT=/\s/;function tT(e){for(var n=e.length;n--&&eT.test(e.charAt(n)););return n}var rT=tT,nT=rT,aT=/^\s+/;function oT(e){return e&&e.slice(0,nT(e)+1).replace(aT,"")}var sT=oT,iT=Er,uT=iT.Symbol,_c=uT,Ud=_c,sh=Object.prototype,cT=sh.hasOwnProperty,lT=sh.toString,wa=Ud?Ud.toStringTag:void 0;function fT(e){var n=cT.call(e,wa),t=e[wa];try{e[wa]=void 0;var a=!0}catch{}var s=lT.call(e);return a&&(n?e[wa]=t:delete e[wa]),s}var dT=fT,pT=Object.prototype,hT=pT.toString;function gT(e){return hT.call(e)}var vT=gT,Hd=_c,mT=dT,yT=vT,bT="[object Null]",_T="[object Undefined]",Gd=Hd?Hd.toStringTag:void 0;function ET(e){return e==null?e===void 0?_T:bT:Gd&&Gd in Object(e)?mT(e):yT(e)}var Es=ET;function ST(e){return e!=null&&typeof e=="object"}var Ec=ST,wT=Es,TT=Ec,CT="[object Symbol]";function xT(e){return typeof e=="symbol"||TT(e)&&wT(e)==CT}var RT=xT,OT=sT,qd=ja,AT=RT,Yd=0/0,PT=/^[-+]0x[0-9a-f]+$/i,DT=/^0b[01]+$/i,IT=/^0o[0-7]+$/i,FT=parseInt;function $T(e){if(typeof e=="number")return e;if(AT(e))return Yd;if(qd(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=qd(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=OT(e);var t=DT.test(e);return t||IT.test(e)?FT(e.slice(2),t?2:8):PT.test(e)?Yd:+e}var MT=$T,LT=ja,hu=Qw,zd=MT,NT="Expected a function",kT=Math.max,jT=Math.min;function BT(e,n,t){var a,s,i,c,l,d,p=0,h=!1,y=!1,_=!0;if(typeof e!="function")throw new TypeError(NT);n=zd(n)||0,LT(t)&&(h=!!t.leading,y="maxWait"in t,i=y?kT(zd(t.maxWait)||0,n):i,_="trailing"in t?!!t.trailing:_);function E(z){var H=a,Y=s;return a=s=void 0,p=z,c=e.apply(Y,H),c}function T(z){return p=z,l=setTimeout(P,n),h?E(z):c}function x(z){var H=z-d,Y=z-p,te=n-H;return y?jT(te,i-Y):te}function D(z){var H=z-d,Y=z-p;return d===void 0||H>=n||H<0||y&&Y>=i}function P(){var z=hu();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(hu())}function O(){var z=hu(),H=D(z);if(a=arguments,s=this,d=z,H){if(l===void 0)return T(d);if(y)return clearTimeout(l),l=setTimeout(P,n),E(d)}return l===void 0&&(l=setTimeout(P,n)),c}return O.cancel=M,O.flush=k,O}var WT=BT,UT=WT,HT=ja,GT="Expected a function";function qT(e,n,t){var a=!0,s=!0;if(typeof e!="function")throw new TypeError(GT);return HT(t)&&(a="leading"in t?!!t.leading:a,s="trailing"in t?!!t.trailing:s),UT(e,n,{leading:a,maxWait:n,trailing:s})}var YT=qT;const zT=_s(YT);var ih=(e=>(e[e.First=0]="First",e[e.Last=-1]="Last",e))(ih||{}),Ir=(e=>(e.ATTACHED="attached",e.DETACHED="detached",e.ERROR="error",e))(Ir||{}),ss=(e=>(e.SOCKET_ERROR="socket-error",e.SOCKET_CLOSURE="socket-closure",e))(ss||{}),uh=(e=>(e.NOT_STARTED="remote debugger not started",e.ALREADY_IN_USE="already in use",e.TIMEOUT="timeout",e))(uh||{});const Ss=2e3,Sc={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}}},ch="4DWS_PREFS",lh=e=>`APP_STATE_${e}`,fh=()=>{var e,n;return((n=(e=window==null?void 0:window.$$datastores)==null?void 0:e.ds)==null?void 0:n.getBaseID())||""};function dh(e){try{const n=fh(),t=JSON.stringify(e);localStorage.setItem(lh(n),t)}catch(n){console.error(n)}}function ph(e){try{const n=JSON.stringify(e);localStorage.setItem(ch,n)}catch(n){console.error(n)}}function hh(){try{const e=localStorage.getItem(ch);if(e)return JSON.parse(e)}catch(e){console.error(e)}}function Kn(){const e=fh(),n=localStorage.getItem(lh(e));if(n){const t=JSON.parse(n);return t.tabs=t.tabs.map(a=>({...a,flags:{...a.flags,enabled:!0}})),t}return Sc}function ws(e){const{name:n,type:t,path:a}=e,s=a.split(".").at(-1);switch(t){case b.FileFolderType.WEBFORM:return`${n}.WebForm`;case b.FileFolderType.METHOD:case b.FileFolderType.CLASS:return s?`${n}.${s}`:n;case b.FileFolderType.ROLES:return n;default:return`${n}.${t}`}}const gh=e=>{if(!e)return[];const n=new Map;return e.dataClasses.forEach(t=>{var i,c;const a=t.extraProperties||{},s={id:t.className,type:"table",position:{x:((i=a.position)==null?void 0:i.x)||0,y:((c=a.position)==null?void 0:c.y)||0},dragHandle:".custom-drag-handle",data:t};n.set(t.name,s)}),Array.from(n.values())};function vh(e){return e?["json","4dmodel","webform","mform"].includes(e.toLowerCase()):!1}function mh(e,n){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:${n}`?i:{...i,[c]:l},{}),props:Object.entries(s.props).reduce((i,[c,l])=>{let d=l;return c==="events"&&(d=d.map(p=>{var h,y;return p.type==="simple-action"?{...p,state:{...p.state,states:(y=(h=p.state)==null?void 0:h.states)==null?void 0:y.filter(_=>_!==n)}}:p})),{...i,[c]:d}},{})}}),{}),metadata:{...e.metadata,states:e.metadata.states.filter(t=>t.id!==n)}}}function VT(){this.__data__=[],this.size=0}var KT=VT;function JT(e,n){return e===n||e!==e&&n!==n}var XT=JT,ZT=XT;function QT(e,n){for(var t=e.length;t--;)if(ZT(e[t][0],n))return t;return-1}var Ts=QT,e1=Ts,t1=Array.prototype,r1=t1.splice;function n1(e){var n=this.__data__,t=e1(n,e);if(t<0)return!1;var a=n.length-1;return t==a?n.pop():r1.call(n,t,1),--this.size,!0}var a1=n1,o1=Ts;function s1(e){var n=this.__data__,t=o1(n,e);return t<0?void 0:n[t][1]}var i1=s1,u1=Ts;function c1(e){return u1(this.__data__,e)>-1}var l1=c1,f1=Ts;function d1(e,n){var t=this.__data__,a=f1(t,e);return a<0?(++this.size,t.push([e,n])):t[a][1]=n,this}var p1=d1,h1=KT,g1=a1,v1=i1,m1=l1,y1=p1;function Jn(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}Jn.prototype.clear=h1;Jn.prototype.delete=g1;Jn.prototype.get=v1;Jn.prototype.has=m1;Jn.prototype.set=y1;var Cs=Jn,b1=Cs;function _1(){this.__data__=new b1,this.size=0}var E1=_1;function S1(e){var n=this.__data__,t=n.delete(e);return this.size=n.size,t}var w1=S1;function T1(e){return this.__data__.get(e)}var C1=T1;function x1(e){return this.__data__.has(e)}var R1=x1,O1=Es,A1=ja,P1="[object AsyncFunction]",D1="[object Function]",I1="[object GeneratorFunction]",F1="[object Proxy]";function $1(e){if(!A1(e))return!1;var n=O1(e);return n==D1||n==I1||n==P1||n==F1}var M1=$1,L1=Er,N1=L1["__core-js_shared__"],k1=N1,gu=k1,Vd=function(){var e=/[^.]+$/.exec(gu&&gu.keys&&gu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function j1(e){return!!Vd&&Vd in e}var B1=j1,W1=Function.prototype,U1=W1.toString;function H1(e){if(e!=null){try{return U1.call(e)}catch{}try{return e+""}catch{}}return""}var yh=H1,G1=M1,q1=B1,Y1=ja,z1=yh,V1=/[\\^$.*+?()[\]{}|]/g,K1=/^\[object .+?Constructor\]$/,J1=Function.prototype,X1=Object.prototype,Z1=J1.toString,Q1=X1.hasOwnProperty,eC=RegExp("^"+Z1.call(Q1).replace(V1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tC(e){if(!Y1(e)||q1(e))return!1;var n=G1(e)?eC:K1;return n.test(z1(e))}var rC=tC;function nC(e,n){return e==null?void 0:e[n]}var aC=nC,oC=rC,sC=aC;function iC(e,n){var t=sC(e,n);return oC(t)?t:void 0}var Xn=iC,uC=Xn,cC=Er,lC=uC(cC,"Map"),wc=lC,fC=Xn,dC=fC(Object,"create"),xs=dC,Kd=xs;function pC(){this.__data__=Kd?Kd(null):{},this.size=0}var hC=pC;function gC(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var vC=gC,mC=xs,yC="__lodash_hash_undefined__",bC=Object.prototype,_C=bC.hasOwnProperty;function EC(e){var n=this.__data__;if(mC){var t=n[e];return t===yC?void 0:t}return _C.call(n,e)?n[e]:void 0}var SC=EC,wC=xs,TC=Object.prototype,CC=TC.hasOwnProperty;function xC(e){var n=this.__data__;return wC?n[e]!==void 0:CC.call(n,e)}var RC=xC,OC=xs,AC="__lodash_hash_undefined__";function PC(e,n){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=OC&&n===void 0?AC:n,this}var DC=PC,IC=hC,FC=vC,$C=SC,MC=RC,LC=DC;function Zn(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}Zn.prototype.clear=IC;Zn.prototype.delete=FC;Zn.prototype.get=$C;Zn.prototype.has=MC;Zn.prototype.set=LC;var NC=Zn,Jd=NC,kC=Cs,jC=wc;function BC(){this.size=0,this.__data__={hash:new Jd,map:new(jC||kC),string:new Jd}}var WC=BC;function UC(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}var HC=UC,GC=HC;function qC(e,n){var t=e.__data__;return GC(n)?t[typeof n=="string"?"string":"hash"]:t.map}var Rs=qC,YC=Rs;function zC(e){var n=YC(this,e).delete(e);return this.size-=n?1:0,n}var VC=zC,KC=Rs;function JC(e){return KC(this,e).get(e)}var XC=JC,ZC=Rs;function QC(e){return ZC(this,e).has(e)}var ex=QC,tx=Rs;function rx(e,n){var t=tx(this,e),a=t.size;return t.set(e,n),this.size+=t.size==a?0:1,this}var nx=rx,ax=WC,ox=VC,sx=XC,ix=ex,ux=nx;function Qn(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}Qn.prototype.clear=ax;Qn.prototype.delete=ox;Qn.prototype.get=sx;Qn.prototype.has=ix;Qn.prototype.set=ux;var bh=Qn,cx=Cs,lx=wc,fx=bh,dx=200;function px(e,n){var t=this.__data__;if(t instanceof cx){var a=t.__data__;if(!lx||a.length<dx-1)return a.push([e,n]),this.size=++t.size,this;t=this.__data__=new fx(a)}return t.set(e,n),this.size=t.size,this}var hx=px,gx=Cs,vx=E1,mx=w1,yx=C1,bx=R1,_x=hx;function Ba(e){var n=this.__data__=new gx(e);this.size=n.size}Ba.prototype.clear=vx;Ba.prototype.delete=mx;Ba.prototype.get=yx;Ba.prototype.has=bx;Ba.prototype.set=_x;var Ex="__lodash_hash_undefined__";function Sx(e){return this.__data__.set(e,Ex),this}var wx=Sx;function Tx(e){return this.__data__.has(e)}var Cx=Tx,xx=bh,Rx=wx,Ox=Cx;function Bu(e){var n=-1,t=e==null?0:e.length;for(this.__data__=new xx;++n<t;)this.add(e[n])}Bu.prototype.add=Bu.prototype.push=Rx;Bu.prototype.has=Ox;var Ax=Er;Ax.Uint8Array;var Xd=_c,Zd=Xd?Xd.prototype:void 0;Zd&&Zd.valueOf;var Px=Es,Dx=Ec,Ix="[object Arguments]";function Fx(e){return Dx(e)&&Px(e)==Ix}var $x=Fx,Qd=$x,Mx=Ec,_h=Object.prototype,Lx=_h.hasOwnProperty,Nx=_h.propertyIsEnumerable;Qd(function(){return arguments}());var is={exports:{}};function kx(){return!1}var jx=kx;is.exports;(function(e,n){var t=Er,a=jx,s=n&&!n.nodeType&&n,i=s&&!0&&e&&!e.nodeType&&e,c=i&&i.exports===s,l=c?t.Buffer:void 0,d=l?l.isBuffer:void 0,p=d||a;e.exports=p})(is,is.exports);is.exports;var us={exports:{}};us.exports;(function(e,n){var t=oh,a=n&&!n.nodeType&&n,s=a&&!0&&e&&!e.nodeType&&e,i=s&&s.exports===a,c=i&&t.process,l=function(){try{var d=s&&s.require&&s.require("util").types;return d||c&&c.binding&&c.binding("util")}catch{}}();e.exports=l})(us,us.exports);var Bx=us.exports,ep=Bx;ep&&ep.isTypedArray;var Wx=Xn,Ux=Er,Hx=Wx(Ux,"DataView"),Gx=Hx,qx=Xn,Yx=Er,zx=qx(Yx,"Promise"),Vx=zx,Kx=Xn,Jx=Er,Xx=Kx(Jx,"Set"),Zx=Xx,Qx=Xn,eR=Er,tR=Qx(eR,"WeakMap"),rR=tR,Wu=Gx,Uu=wc,Hu=Vx,Gu=Zx,qu=rR,Eh=Es,ea=yh,tp="[object Map]",nR="[object Object]",rp="[object Promise]",np="[object Set]",ap="[object WeakMap]",op="[object DataView]",aR=ea(Wu),oR=ea(Uu),sR=ea(Hu),iR=ea(Gu),uR=ea(qu),Bn=Eh;(Wu&&Bn(new Wu(new ArrayBuffer(1)))!=op||Uu&&Bn(new Uu)!=tp||Hu&&Bn(Hu.resolve())!=rp||Gu&&Bn(new Gu)!=np||qu&&Bn(new qu)!=ap)&&(Bn=function(e){var n=Eh(e),t=n==nR?e.constructor:void 0,a=t?ea(t):"";if(a)switch(a){case aR:return op;case oR:return tp;case sR:return rp;case iR:return np;case uR:return ap}return n});const cR="ROOT";YS(),qS();var sp;(function(e){e[e.HandlerDisabled=0]="HandlerDisabled",e[e.HandlerEnabled=1]="HandlerEnabled"})(sp||(sp={}));var cs={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 fu(e){return typeof e=="boolean"}function Fw(){return function(n){return $w(n)}}function $w(e){e===void 0&&(e={});var n=e.thunk,t=n===void 0?!0:n,a=e.immutableCheck,s=a===void 0?!0:a,i=e.serializableCheck,c=i===void 0?!0:i,l=new Cw;if(t&&(fu(t)?l.push(Nd):l.push(Nd.withExtraArgument(t.extraArgument))),process.env.NODE_ENV!=="production"){if(s){var d={};fu(s)||(d=s),l.unshift(Dw(d))}if(c){var p={};fu(c)||(p=c),l.push(Iw(p))}}return l}var du=process.env.NODE_ENV==="production";function Mw(e){var n=Fw(),t=e||{},a=t.reducer,s=a===void 0?void 0:a,i=t.middleware,c=i===void 0?n():i,l=t.devTools,d=l===void 0?!0:l,p=t.preloadedState,h=p===void 0?void 0:p,y=t.enhancers,_=y===void 0?void 0:y,E;if(typeof s=="function")E=s;else if(Xp(s))E=Vp(s);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var T=c;if(typeof T=="function"&&(T=T(n),!du&&!Array.isArray(T)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!du&&T.some(function(M){return typeof M!="function"}))throw new Error("each middleware provided to configureStore must be a function");var x=uw.apply(void 0,T),D=ns;d&&(D=Tw(tn({trace:!du},typeof d=="object"&&d)));var P=[x];Array.isArray(_)?P=os([x],_):typeof _=="function"&&(P=_(P));var j=D.apply(void 0,P);return zp(E,h,j)}function Oa(e,n){function t(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];if(n){var i=n.apply(void 0,a);if(!i)throw new Error("prepareAction did not return an object");return 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 rh(e){var n={},t=[],a,s={addCase:function(i,c){if(process.env.NODE_ENV!=="production"){if(t.length>0)throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");if(a)throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`")}var l=typeof i=="string"?i:i.type;if(l in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[l]=c,s},addMatcher:function(i,c){if(process.env.NODE_ENV!=="production"&&a)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return t.push({matcher:i,reducer:c}),s},addDefaultCase:function(i){if(process.env.NODE_ENV!=="production"&&a)throw new Error("`builder.addDefaultCase` can only be called once");return a=i,s}};return e(s),[n,t,a]}function Lw(e){return typeof e=="function"}function Nw(e,n,t,a){t===void 0&&(t=[]);var s=typeof n=="function"?rh(n):[n,t,a],i=s[0],c=s[1],l=s[2],d;if(Lw(e))d=function(){return Vo(e(),function(){})};else{var p=Vo(e,function(){});d=function(){return p}}function h(y,_){y===void 0&&(y=d());var E=os([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 Vo(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},y)}return h.getInitialState=d,h}function kw(e,n){return e+"/"+n}function nr(e){var n=e.name;if(!n)throw new Error("`name` is a required option for createSlice");var t=typeof e.initialState=="function"?e.initialState:Vo(e.initialState,function(){}),a=e.reducers||{},s=Object.keys(a),i={},c={},l={};s.forEach(function(h){var y=a[h],_=kw(n,h),E,T;"reducer"in y?(E=y.reducer,T=y.prepare):E=y,i[h]=E,c[_]=E,l[h]=T?Oa(_,T):Oa(_)});function d(){var h=typeof e.extraReducers=="function"?rh(e.extraReducers):[e.extraReducers],y=h[0],_=y===void 0?{}:y,E=h[1],T=E===void 0?[]:E,x=h[2],D=x===void 0?void 0:x,P=tn(tn({},_),c);return Nw(t,P,T,D)}var p;return{name:n,reducer:function(h,y){return p||(p=d()),p(h,y)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var jw="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",yc=function(e){e===void 0&&(e=21);for(var n="",t=e;t--;)n+=jw[Math.random()*64|0];return n},Bw=["name","message","stack","code"],pu=function(){function e(n,t){this.payload=n,this.meta=t}return e}(),Ud=function(){function e(n,t){this.payload=n,this.meta=t}return e}(),Ww=function(e){if(typeof e=="object"&&e!==null){for(var n={},t=0,a=Bw;t<a.length;t++){var s=a[t];typeof e[s]=="string"&&(n[s]=e[s])}return n}return{message:String(e)}};function Q(e,n,t){var a=Oa(e+"/fulfilled",function(p,h,y,_){return{payload:p,meta:lu(tn({},_||{}),{arg:y,requestId:h,requestStatus:"fulfilled"})}}),s=Oa(e+"/pending",function(p,h,y){return{payload:void 0,meta:lu(tn({},y||{}),{arg:h,requestId:p,requestStatus:"pending"})}}),i=Oa(e+"/rejected",function(p,h,y,_,E){return{payload:_,error:(t&&t.serializeError||Ww)(p||"Rejected"),meta:lu(tn({},E||{}),{arg:y,requestId:h,rejectedWithValue:!!_,requestStatus:"rejected",aborted:(p==null?void 0:p.name)==="AbortError",condition:(p==null?void 0:p.name)==="ConditionError"})}}),c=!1,l=typeof AbortController<"u"?AbortController:function(){function p(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){}}}return p.prototype.abort=function(){process.env.NODE_ENV!=="production"&&(c||(c=!0,console.info("This platform does not implement AbortController. \nIf you want to use the AbortController to react to `abort` events, please consider importing a polyfill like 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'.")))},p}();function d(p){return function(h,y,_){var E=t!=null&&t.idGenerator?t.idGenerator(p):yc(),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 ww(this,null,function(){var k,O,z,H,Y,te;return mw(this,function(We){switch(We.label){case 0:return We.trys.push([0,4,,5]),H=(k=t==null?void 0:t.condition)==null?void 0:k.call(t,p,{getState:y,extra:_}),Hw(H)?[4,H]:[3,2];case 1:H=We.sent(),We.label=2;case 2:if(H===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return P=!0,h(s(E,p,(O=t==null?void 0:t.getPendingMeta)==null?void 0:O.call(t,{requestId:E,arg:p},{getState:y,extra:_}))),[4,Promise.race([D,Promise.resolve(n(p,{dispatch:h,getState:y,extra:_,requestId:E,signal:T.signal,rejectWithValue:function(Te,st){return new pu(Te,st)},fulfillWithValue:function(Te,st){return new Ud(Te,st)}})).then(function(Te){if(Te instanceof pu)throw Te;return Te instanceof Ud?a(Te.payload,E,p,Te.meta):a(Te,E,p)})])];case 3:return z=We.sent(),[3,5];case 4:return Y=We.sent(),z=Y instanceof pu?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||h(z),[2,z]}})})}();return Object.assign(M,{abort:j,requestId:E,arg:p,unwrap:function(){return M.then(Uw)}})}}return Object.assign(d,{pending:s,rejected:i,fulfilled:a,typePrefix:e})}function Uw(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Hw(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Gw=function(e){return e&&typeof e.match=="function"},qw=function(e,n){return Gw(e)?e.match(n):e(n)};function dr(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(t){return e.some(function(a){return qw(a,t)})}}function bc(e,n){if(!e||!e.meta)return!1;var t=typeof e.meta.requestId=="string",a=n.indexOf(e.meta.requestStatus)>-1;return t&&a}function _c(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function nh(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===0?function(t){return bc(t,["pending"])}:_c(e)?function(t){var a=e.map(function(i){return i.pending}),s=dr.apply(void 0,a);return s(t)}:nh()(e[0])}function ah(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===0?function(t){return bc(t,["rejected"])}:_c(e)?function(t){var a=e.map(function(i){return i.rejected}),s=dr.apply(void 0,a);return s(t)}:ah()(e[0])}function oh(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===0?function(t){return bc(t,["fulfilled"])}:_c(e)?function(t){var a=e.map(function(i){return i.fulfilled}),s=dr.apply(void 0,a);return s(t)}:oh()(e[0])}qS();var Fr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Yw(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var t=function a(){return this instanceof a?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:function(){return e[a]}})}),t}function zw(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var ja=zw,Vw=typeof Fr=="object"&&Fr&&Fr.Object===Object&&Fr,sh=Vw,Kw=sh,Jw=typeof self=="object"&&self&&self.Object===Object&&self,Xw=Kw||Jw||Function("return this")(),Er=Xw,Zw=Er,Qw=function(){return Zw.Date.now()},eT=Qw,tT=/\s/;function rT(e){for(var n=e.length;n--&&tT.test(e.charAt(n)););return n}var nT=rT,aT=nT,oT=/^\s+/;function sT(e){return e&&e.slice(0,aT(e)+1).replace(oT,"")}var iT=sT,uT=Er,cT=uT.Symbol,Ec=cT,Hd=Ec,ih=Object.prototype,lT=ih.hasOwnProperty,fT=ih.toString,wa=Hd?Hd.toStringTag:void 0;function dT(e){var n=lT.call(e,wa),t=e[wa];try{e[wa]=void 0;var a=!0}catch{}var s=fT.call(e);return a&&(n?e[wa]=t:delete e[wa]),s}var pT=dT,hT=Object.prototype,gT=hT.toString;function vT(e){return gT.call(e)}var mT=vT,Gd=Ec,yT=pT,bT=mT,_T="[object Null]",ET="[object Undefined]",qd=Gd?Gd.toStringTag:void 0;function ST(e){return e==null?e===void 0?ET:_T:qd&&qd in Object(e)?yT(e):bT(e)}var Es=ST;function wT(e){return e!=null&&typeof e=="object"}var Sc=wT,TT=Es,CT=Sc,xT="[object Symbol]";function RT(e){return typeof e=="symbol"||CT(e)&&TT(e)==xT}var OT=RT,AT=iT,Yd=ja,PT=OT,zd=0/0,DT=/^[-+]0x[0-9a-f]+$/i,IT=/^0b[01]+$/i,FT=/^0o[0-7]+$/i,$T=parseInt;function MT(e){if(typeof e=="number")return e;if(PT(e))return zd;if(Yd(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=Yd(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=AT(e);var t=IT.test(e);return t||FT.test(e)?$T(e.slice(2),t?2:8):DT.test(e)?zd:+e}var LT=MT,NT=ja,hu=eT,Vd=LT,kT="Expected a function",jT=Math.max,BT=Math.min;function WT(e,n,t){var a,s,i,c,l,d,p=0,h=!1,y=!1,_=!0;if(typeof e!="function")throw new TypeError(kT);n=Vd(n)||0,NT(t)&&(h=!!t.leading,y="maxWait"in t,i=y?jT(Vd(t.maxWait)||0,n):i,_="trailing"in t?!!t.trailing:_);function E(z){var H=a,Y=s;return a=s=void 0,p=z,c=e.apply(Y,H),c}function T(z){return p=z,l=setTimeout(P,n),h?E(z):c}function x(z){var H=z-d,Y=z-p,te=n-H;return y?BT(te,i-Y):te}function D(z){var H=z-d,Y=z-p;return d===void 0||H>=n||H<0||y&&Y>=i}function P(){var z=hu();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(hu())}function O(){var z=hu(),H=D(z);if(a=arguments,s=this,d=z,H){if(l===void 0)return T(d);if(y)return clearTimeout(l),l=setTimeout(P,n),E(d)}return l===void 0&&(l=setTimeout(P,n)),c}return O.cancel=M,O.flush=k,O}var UT=WT,HT=UT,GT=ja,qT="Expected a function";function YT(e,n,t){var a=!0,s=!0;if(typeof e!="function")throw new TypeError(qT);return GT(t)&&(a="leading"in t?!!t.leading:a,s="trailing"in t?!!t.trailing:s),HT(e,n,{leading:a,maxWait:n,trailing:s})}var zT=YT;const VT=_s(zT);var uh=(e=>(e[e.First=0]="First",e[e.Last=-1]="Last",e))(uh||{}),Ir=(e=>(e.ATTACHED="attached",e.DETACHED="detached",e.ERROR="error",e))(Ir||{}),ss=(e=>(e.SOCKET_ERROR="socket-error",e.SOCKET_CLOSURE="socket-closure",e))(ss||{}),ch=(e=>(e.NOT_STARTED="remote debugger not started",e.ALREADY_IN_USE="already in use",e.TIMEOUT="timeout",e))(ch||{});const Ss=2e3,wc={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}}},lh="4DWS_PREFS",fh=e=>`APP_STATE_${e}`,dh=()=>{var e,n;return((n=(e=window==null?void 0:window.$$datastores)==null?void 0:e.ds)==null?void 0:n.getBaseID())||""};function ph(e){try{const n=dh(),t=JSON.stringify(e);localStorage.setItem(fh(n),t)}catch(n){console.error(n)}}function hh(e){try{const n=JSON.stringify(e);localStorage.setItem(lh,n)}catch(n){console.error(n)}}function gh(){try{const e=localStorage.getItem(lh);if(e)return JSON.parse(e)}catch(e){console.error(e)}}function Kn(){const e=dh(),n=localStorage.getItem(fh(e));if(n){const t=JSON.parse(n);return t.tabs=t.tabs.map(a=>({...a,flags:{...a.flags,enabled:!0}})),t}return wc}function ws(e){const{name:n,type:t,path:a}=e,s=a.split(".").at(-1);switch(t){case b.FileFolderType.WEBFORM:return`${n}.WebForm`;case b.FileFolderType.METHOD:case b.FileFolderType.CLASS:return s?`${n}.${s}`:n;case b.FileFolderType.ROLES:return n;default:return`${n}.${t}`}}const vh=e=>{if(!e)return[];const n=new Map;return e.dataClasses.forEach(t=>{var i,c;const a=t.extraProperties||{},s={id:t.className,type:"table",position:{x:((i=a.position)==null?void 0:i.x)||0,y:((c=a.position)==null?void 0:c.y)||0},dragHandle:".custom-drag-handle",data:t};n.set(t.name,s)}),Array.from(n.values())};function mh(e){return e?["json","4dmodel","webform","mform"].includes(e.toLowerCase()):!1}function yh(e,n){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:${n}`?i:{...i,[c]:l},{}),props:Object.entries(s.props).reduce((i,[c,l])=>{let d=l;return c==="events"&&(d=d.map(p=>{var h,y;return p.type==="simple-action"?{...p,state:{...p.state,states:(y=(h=p.state)==null?void 0:h.states)==null?void 0:y.filter(_=>_!==n)}}:p})),{...i,[c]:d}},{})}}),{}),metadata:{...e.metadata,states:e.metadata.states.filter(t=>t.id!==n)}}}function KT(){this.__data__=[],this.size=0}var JT=KT;function XT(e,n){return e===n||e!==e&&n!==n}var ZT=XT,QT=ZT;function e1(e,n){for(var t=e.length;t--;)if(QT(e[t][0],n))return t;return-1}var Ts=e1,t1=Ts,r1=Array.prototype,n1=r1.splice;function a1(e){var n=this.__data__,t=t1(n,e);if(t<0)return!1;var a=n.length-1;return t==a?n.pop():n1.call(n,t,1),--this.size,!0}var o1=a1,s1=Ts;function i1(e){var n=this.__data__,t=s1(n,e);return t<0?void 0:n[t][1]}var u1=i1,c1=Ts;function l1(e){return c1(this.__data__,e)>-1}var f1=l1,d1=Ts;function p1(e,n){var t=this.__data__,a=d1(t,e);return a<0?(++this.size,t.push([e,n])):t[a][1]=n,this}var h1=p1,g1=JT,v1=o1,m1=u1,y1=f1,b1=h1;function Jn(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}Jn.prototype.clear=g1;Jn.prototype.delete=v1;Jn.prototype.get=m1;Jn.prototype.has=y1;Jn.prototype.set=b1;var Cs=Jn,_1=Cs;function E1(){this.__data__=new _1,this.size=0}var S1=E1;function w1(e){var n=this.__data__,t=n.delete(e);return this.size=n.size,t}var T1=w1;function C1(e){return this.__data__.get(e)}var x1=C1;function R1(e){return this.__data__.has(e)}var O1=R1,A1=Es,P1=ja,D1="[object AsyncFunction]",I1="[object Function]",F1="[object GeneratorFunction]",$1="[object Proxy]";function M1(e){if(!P1(e))return!1;var n=A1(e);return n==I1||n==F1||n==D1||n==$1}var L1=M1,N1=Er,k1=N1["__core-js_shared__"],j1=k1,gu=j1,Kd=function(){var e=/[^.]+$/.exec(gu&&gu.keys&&gu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function B1(e){return!!Kd&&Kd in e}var W1=B1,U1=Function.prototype,H1=U1.toString;function G1(e){if(e!=null){try{return H1.call(e)}catch{}try{return e+""}catch{}}return""}var bh=G1,q1=L1,Y1=W1,z1=ja,V1=bh,K1=/[\\^$.*+?()[\]{}|]/g,J1=/^\[object .+?Constructor\]$/,X1=Function.prototype,Z1=Object.prototype,Q1=X1.toString,eC=Z1.hasOwnProperty,tC=RegExp("^"+Q1.call(eC).replace(K1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function rC(e){if(!z1(e)||Y1(e))return!1;var n=q1(e)?tC:J1;return n.test(V1(e))}var nC=rC;function aC(e,n){return e==null?void 0:e[n]}var oC=aC,sC=nC,iC=oC;function uC(e,n){var t=iC(e,n);return sC(t)?t:void 0}var Xn=uC,cC=Xn,lC=Er,fC=cC(lC,"Map"),Tc=fC,dC=Xn,pC=dC(Object,"create"),xs=pC,Jd=xs;function hC(){this.__data__=Jd?Jd(null):{},this.size=0}var gC=hC;function vC(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var mC=vC,yC=xs,bC="__lodash_hash_undefined__",_C=Object.prototype,EC=_C.hasOwnProperty;function SC(e){var n=this.__data__;if(yC){var t=n[e];return t===bC?void 0:t}return EC.call(n,e)?n[e]:void 0}var wC=SC,TC=xs,CC=Object.prototype,xC=CC.hasOwnProperty;function RC(e){var n=this.__data__;return TC?n[e]!==void 0:xC.call(n,e)}var OC=RC,AC=xs,PC="__lodash_hash_undefined__";function DC(e,n){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=AC&&n===void 0?PC:n,this}var IC=DC,FC=gC,$C=mC,MC=wC,LC=OC,NC=IC;function Zn(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}Zn.prototype.clear=FC;Zn.prototype.delete=$C;Zn.prototype.get=MC;Zn.prototype.has=LC;Zn.prototype.set=NC;var kC=Zn,Xd=kC,jC=Cs,BC=Tc;function WC(){this.size=0,this.__data__={hash:new Xd,map:new(BC||jC),string:new Xd}}var UC=WC;function HC(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}var GC=HC,qC=GC;function YC(e,n){var t=e.__data__;return qC(n)?t[typeof n=="string"?"string":"hash"]:t.map}var Rs=YC,zC=Rs;function VC(e){var n=zC(this,e).delete(e);return this.size-=n?1:0,n}var KC=VC,JC=Rs;function XC(e){return JC(this,e).get(e)}var ZC=XC,QC=Rs;function ex(e){return QC(this,e).has(e)}var tx=ex,rx=Rs;function nx(e,n){var t=rx(this,e),a=t.size;return t.set(e,n),this.size+=t.size==a?0:1,this}var ax=nx,ox=UC,sx=KC,ix=ZC,ux=tx,cx=ax;function Qn(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}Qn.prototype.clear=ox;Qn.prototype.delete=sx;Qn.prototype.get=ix;Qn.prototype.has=ux;Qn.prototype.set=cx;var _h=Qn,lx=Cs,fx=Tc,dx=_h,px=200;function hx(e,n){var t=this.__data__;if(t instanceof lx){var a=t.__data__;if(!fx||a.length<px-1)return a.push([e,n]),this.size=++t.size,this;t=this.__data__=new dx(a)}return t.set(e,n),this.size=t.size,this}var gx=hx,vx=Cs,mx=S1,yx=T1,bx=x1,_x=O1,Ex=gx;function Ba(e){var n=this.__data__=new vx(e);this.size=n.size}Ba.prototype.clear=mx;Ba.prototype.delete=yx;Ba.prototype.get=bx;Ba.prototype.has=_x;Ba.prototype.set=Ex;var Sx="__lodash_hash_undefined__";function wx(e){return this.__data__.set(e,Sx),this}var Tx=wx;function Cx(e){return this.__data__.has(e)}var xx=Cx,Rx=_h,Ox=Tx,Ax=xx;function Bu(e){var n=-1,t=e==null?0:e.length;for(this.__data__=new Rx;++n<t;)this.add(e[n])}Bu.prototype.add=Bu.prototype.push=Ox;Bu.prototype.has=Ax;var Px=Er;Px.Uint8Array;var Zd=Ec,Qd=Zd?Zd.prototype:void 0;Qd&&Qd.valueOf;var Dx=Es,Ix=Sc,Fx="[object Arguments]";function $x(e){return Ix(e)&&Dx(e)==Fx}var Mx=$x,ep=Mx,Lx=Sc,Eh=Object.prototype,Nx=Eh.hasOwnProperty,kx=Eh.propertyIsEnumerable;ep(function(){return arguments}());var is={exports:{}};function jx(){return!1}var Bx=jx;is.exports;(function(e,n){var t=Er,a=Bx,s=n&&!n.nodeType&&n,i=s&&!0&&e&&!e.nodeType&&e,c=i&&i.exports===s,l=c?t.Buffer:void 0,d=l?l.isBuffer:void 0,p=d||a;e.exports=p})(is,is.exports);is.exports;var us={exports:{}};us.exports;(function(e,n){var t=sh,a=n&&!n.nodeType&&n,s=a&&!0&&e&&!e.nodeType&&e,i=s&&s.exports===a,c=i&&t.process,l=function(){try{var d=s&&s.require&&s.require("util").types;return d||c&&c.binding&&c.binding("util")}catch{}}();e.exports=l})(us,us.exports);var Wx=us.exports,tp=Wx;tp&&tp.isTypedArray;var Ux=Xn,Hx=Er,Gx=Ux(Hx,"DataView"),qx=Gx,Yx=Xn,zx=Er,Vx=Yx(zx,"Promise"),Kx=Vx,Jx=Xn,Xx=Er,Zx=Jx(Xx,"Set"),Qx=Zx,eR=Xn,tR=Er,rR=eR(tR,"WeakMap"),nR=rR,Wu=qx,Uu=Tc,Hu=Kx,Gu=Qx,qu=nR,Sh=Es,ea=bh,rp="[object Map]",aR="[object Object]",np="[object Promise]",ap="[object Set]",op="[object WeakMap]",sp="[object DataView]",oR=ea(Wu),sR=ea(Uu),iR=ea(Hu),uR=ea(Gu),cR=ea(qu),Bn=Sh;(Wu&&Bn(new Wu(new ArrayBuffer(1)))!=sp||Uu&&Bn(new Uu)!=rp||Hu&&Bn(Hu.resolve())!=np||Gu&&Bn(new Gu)!=ap||qu&&Bn(new qu)!=op)&&(Bn=function(e){var n=Sh(e),t=n==aR?e.constructor:void 0,a=t?ea(t):"";if(a)switch(a){case oR:return sp;case sR:return rp;case iR:return np;case uR:return ap;case cR:return op}return n});const lR="ROOT";zS(),YS();var ip;(function(e){e[e.HandlerDisabled=0]="HandlerDisabled",e[e.HandlerEnabled=1]="HandlerEnabled"})(ip||(ip={}));var cs={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
|
-
*/cs.exports;(function(e,n){(function(){var t,a="4.17.21",s=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",l="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",p=500,h="__lodash_placeholder__",y=1,_=2,E=4,T=1,x=2,D=1,P=2,j=4,M=8,k=16,O=32,z=64,H=128,Y=256,te=512,We=30,Te="...",st=800,X=16,Pe=1,it=2,Qe=3,Ge=1/0,rt=9007199254740991,qt=17976931348623157e292,W=0/0,q=4294967295,de=q-1,le=q>>>1,se=[["ary",H],["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]",qe="[object Map]",yt="[object Number]",Ha="[object Null]",Yt="[object Object]",nn="[object Promise]",Ws="[object Proxy]",or="[object RegExp]",xt="[object Set]",an="[object String]",on="[object Symbol]",Ga="[object Undefined]",Sr="[object WeakMap]",Us="[object WeakSet]",sn="[object ArrayBuffer]",Wr="[object DataView]",na="[object Float32Array]",aa="[object Float64Array]",oa="[object Int8Array]",sa="[object Int16Array]",un="[object Int32Array]",Cn="[object Uint8Array]",gr="[object Uint8ClampedArray]",cn="[object Uint16Array]",ln="[object Uint32Array]",qa=/\b__p \+= '';/g,Hs=/\b(__p \+=) '' \+/g,Ya=/(__e\(.*?\)|\b__t\)) \+\n'';/g,za=/&(?:amp|lt|gt|quot|#39);/g,ia=/[&<>"']/g,Va=RegExp(za.source),Gs=RegExp(ia.source),qs=/<%-([\s\S]+?)%>/g,Ka=/<%([\s\S]+?)%>/g,Ja=/<%=([\s\S]+?)%>/g,Ys=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zs=/^\w*$/,Vs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w=/[\\^$.*+?()[\]{}|]/g,U=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,zt=/\w*$/,Ur=/^[-+]0x[0-9a-f]+$/i,Xa=/^0b[01]+$/i,sr=/^\[object .+?Constructor\]$/,Av=/^0o[0-7]+$/i,Pv=/^(?:0|[1-9]\d*)$/,Dv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Za=/($^)/,Iv=/['\n\r\u2028\u2029\\]/g,Qa="\\ud800-\\udfff",Fv="\\u0300-\\u036f",$v="\\ufe20-\\ufe2f",Mv="\\u20d0-\\u20ff",el=Fv+$v+Mv,tl="\\u2700-\\u27bf",rl="a-z\\xdf-\\xf6\\xf8-\\xff",Lv="\\xac\\xb1\\xd7\\xf7",Nv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",kv="\\u2000-\\u206f",jv=" \\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",nl="A-Z\\xc0-\\xd6\\xd8-\\xde",al="\\ufe0e\\ufe0f",ol=Lv+Nv+kv+jv,Ks="['’]",Bv="["+Qa+"]",sl="["+ol+"]",eo="["+el+"]",il="\\d+",Wv="["+tl+"]",ul="["+rl+"]",cl="[^"+Qa+ol+il+tl+rl+nl+"]",Js="\\ud83c[\\udffb-\\udfff]",Uv="(?:"+eo+"|"+Js+")",ll="[^"+Qa+"]",Xs="(?:\\ud83c[\\udde6-\\uddff]){2}",Zs="[\\ud800-\\udbff][\\udc00-\\udfff]",xn="["+nl+"]",fl="\\u200d",dl="(?:"+ul+"|"+cl+")",Hv="(?:"+xn+"|"+cl+")",pl="(?:"+Ks+"(?:d|ll|m|re|s|t|ve))?",hl="(?:"+Ks+"(?:D|LL|M|RE|S|T|VE))?",gl=Uv+"?",vl="["+al+"]?",Gv="(?:"+fl+"(?:"+[ll,Xs,Zs].join("|")+")"+vl+gl+")*",qv="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Yv="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ml=vl+gl+Gv,zv="(?:"+[Wv,Xs,Zs].join("|")+")"+ml,Vv="(?:"+[ll+eo+"?",eo,Xs,Zs,Bv].join("|")+")",Kv=RegExp(Ks,"g"),Jv=RegExp(eo,"g"),Qs=RegExp(Js+"(?="+Js+")|"+Vv+ml,"g"),Xv=RegExp([xn+"?"+ul+"+"+pl+"(?="+[sl,xn,"$"].join("|")+")",Hv+"+"+hl+"(?="+[sl,xn+dl,"$"].join("|")+")",xn+"?"+dl+"+"+pl,xn+"+"+hl,Yv,qv,il,zv].join("|"),"g"),Zv=RegExp("["+fl+Qa+el+al+"]"),Qv=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,em=["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"],tm=-1,Ve={};Ve[na]=Ve[aa]=Ve[oa]=Ve[sa]=Ve[un]=Ve[Cn]=Ve[gr]=Ve[cn]=Ve[ln]=!0,Ve[fe]=Ve[ne]=Ve[sn]=Ve[ue]=Ve[Wr]=Ve[he]=Ve[K]=Ve[F]=Ve[qe]=Ve[yt]=Ve[Yt]=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[qe]=Ye[yt]=Ye[Yt]=Ye[or]=Ye[xt]=Ye[an]=Ye[on]=Ye[Cn]=Ye[gr]=Ye[cn]=Ye[ln]=!0,Ye[K]=Ye[F]=Ye[Sr]=!1;var rm={À:"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"},nm={"&":"&","<":"<",">":">",'"':""","'":"'"},am={"&":"&","<":"<",">":">",""":'"',"'":"'"},om={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},sm=parseFloat,im=parseInt,yl=typeof Fr=="object"&&Fr&&Fr.Object===Object&&Fr,um=typeof self=="object"&&self&&self.Object===Object&&self,gt=yl||um||Function("return this")(),ei=n&&!n.nodeType&&n,fn=ei&&!0&&e&&!e.nodeType&&e,bl=fn&&fn.exports===ei,ti=bl&&yl.process,Vt=function(){try{var R=fn&&fn.require&&fn.require("util").types;return R||ti&&ti.binding&&ti.binding("util")}catch{}}(),_l=Vt&&Vt.isArrayBuffer,El=Vt&&Vt.isDate,Sl=Vt&&Vt.isMap,wl=Vt&&Vt.isRegExp,Tl=Vt&&Vt.isSet,Cl=Vt&&Vt.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 cm(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 Kt(R,$){for(var I=-1,Z=R==null?0:R.length;++I<Z&&$(R[I],I,R)!==!1;);return R}function lm(R,$){for(var I=R==null?0:R.length;I--&&$(R[I],I,R)!==!1;);return R}function xl(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 to(R,$){var I=R==null?0:R.length;return!!I&&Rn(R,$,0)>-1}function ri(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 Gr(R,$){for(var I=-1,Z=$.length,pe=R.length;++I<Z;)R[pe+I]=$[I];return R}function ni(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 fm(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 ai(R,$){for(var I=-1,Z=R==null?0:R.length;++I<Z;)if($(R[I],I,R))return!0;return!1}var dm=oi("length");function pm(R){return R.split("")}function hm(R){return R.match(Ee)||[]}function Rl(R,$,I){var Z;return I(R,function(pe,Oe,ut){if($(pe,Oe,ut))return Z=Oe,!1}),Z}function ro(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 Rn(R,$,I){return $===$?xm(R,$,I):ro(R,Ol,I)}function gm(R,$,I,Z){for(var pe=I-1,Oe=R.length;++pe<Oe;)if(Z(R[pe],$))return pe;return-1}function Ol(R){return R!==R}function Al(R,$){var I=R==null?0:R.length;return I?ii(R,$)/I:W}function oi(R){return function($){return $==null?t:$[R]}}function si(R){return function($){return R==null?t:R[$]}}function Pl(R,$,I,Z,pe){return pe(R,function(Oe,ut,Ue){I=Z?(Z=!1,Oe):$(I,Oe,ut,Ue)}),I}function vm(R,$){var I=R.length;for(R.sort($);I--;)R[I]=R[I].value;return R}function ii(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 ui(R,$){for(var I=-1,Z=Array(R);++I<R;)Z[I]=$(I);return Z}function mm(R,$){return Ke($,function(I){return[I,R[I]]})}function Dl(R){return R&&R.slice(0,Ml(R)+1).replace(J,"")}function kt(R){return function($){return R($)}}function ci(R,$){return Ke($,function(I){return R[I]})}function ua(R,$){return R.has($)}function Il(R,$){for(var I=-1,Z=R.length;++I<Z&&Rn($,R[I],0)>-1;);return I}function Fl(R,$){for(var I=R.length;I--&&Rn($,R[I],0)>-1;);return I}function ym(R,$){for(var I=R.length,Z=0;I--;)R[I]===$&&++Z;return Z}var bm=si(rm),_m=si(nm);function Em(R){return"\\"+om[R]}function Sm(R,$){return R==null?t:R[$]}function On(R){return Zv.test(R)}function wm(R){return Qv.test(R)}function Tm(R){for(var $,I=[];!($=R.next()).done;)I.push($.value);return I}function li(R){var $=-1,I=Array(R.size);return R.forEach(function(Z,pe){I[++$]=[pe,Z]}),I}function $l(R,$){return function(I){return R($(I))}}function qr(R,$){for(var I=-1,Z=R.length,pe=0,Oe=[];++I<Z;){var ut=R[I];(ut===$||ut===h)&&(R[I]=h,Oe[pe++]=I)}return Oe}function no(R){var $=-1,I=Array(R.size);return R.forEach(function(Z){I[++$]=Z}),I}function Cm(R){var $=-1,I=Array(R.size);return R.forEach(function(Z){I[++$]=[Z,Z]}),I}function xm(R,$,I){for(var Z=I-1,pe=R.length;++Z<pe;)if(R[Z]===$)return Z;return-1}function Rm(R,$,I){for(var Z=I+1;Z--;)if(R[Z]===$)return Z;return Z}function An(R){return On(R)?Am(R):dm(R)}function ir(R){return On(R)?Pm(R):pm(R)}function Ml(R){for(var $=R.length;$--&&ie.test(R.charAt($)););return $}var Om=si(am);function Am(R){for(var $=Qs.lastIndex=0;Qs.test(R);)++$;return $}function Pm(R){return R.match(Qs)||[]}function Dm(R){return R.match(Xv)||[]}var Im=function R($){$=$==null?gt:Pn.defaults(gt.Object(),$,Pn.pick(gt,em));var I=$.Array,Z=$.Date,pe=$.Error,Oe=$.Function,ut=$.Math,Ue=$.Object,fi=$.RegExp,Fm=$.String,Jt=$.TypeError,ao=I.prototype,$m=Oe.prototype,Dn=Ue.prototype,oo=$["__core-js_shared__"],so=$m.toString,ke=Dn.hasOwnProperty,Mm=0,Ll=function(){var r=/[^.]+$/.exec(oo&&oo.keys&&oo.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),io=Dn.toString,Lm=so.call(Ue),Nm=gt._,km=fi("^"+so.call(ke).replace(w,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),uo=bl?$.Buffer:t,Yr=$.Symbol,co=$.Uint8Array,Nl=uo?uo.allocUnsafe:t,lo=$l(Ue.getPrototypeOf,Ue),kl=Ue.create,jl=Dn.propertyIsEnumerable,fo=ao.splice,Bl=Yr?Yr.isConcatSpreadable:t,ca=Yr?Yr.iterator:t,dn=Yr?Yr.toStringTag:t,po=function(){try{var r=mn(Ue,"defineProperty");return r({},"",{}),r}catch{}}(),jm=$.clearTimeout!==gt.clearTimeout&&$.clearTimeout,Bm=Z&&Z.now!==gt.Date.now&&Z.now,Wm=$.setTimeout!==gt.setTimeout&&$.setTimeout,ho=ut.ceil,go=ut.floor,di=Ue.getOwnPropertySymbols,Um=uo?uo.isBuffer:t,Wl=$.isFinite,Hm=ao.join,Gm=$l(Ue.keys,Ue),ct=ut.max,bt=ut.min,qm=Z.now,Ym=$.parseInt,Ul=ut.random,zm=ao.reverse,pi=mn($,"DataView"),la=mn($,"Map"),hi=mn($,"Promise"),In=mn($,"Set"),fa=mn($,"WeakMap"),da=mn(Ue,"create"),vo=fa&&new fa,Fn={},Vm=yn(pi),Km=yn(la),Jm=yn(hi),Xm=yn(In),Zm=yn(fa),mo=Yr?Yr.prototype:t,pa=mo?mo.valueOf:t,Hl=mo?mo.toString:t;function v(r){if(tt(r)&&!ve(r)&&!(r instanceof we)){if(r instanceof Xt)return r;if(ke.call(r,"__wrapped__"))return qf(r)}return new Xt(r)}var $n=function(){function r(){}return function(o){if(!Ze(o))return{};if(kl)return kl(o);r.prototype=o;var u=new r;return r.prototype=t,u}}();function yo(){}function Xt(r,o){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=t}v.templateSettings={escape:qs,evaluate:Ka,interpolate:Ja,variable:"",imports:{_:v}},v.prototype=yo.prototype,v.prototype.constructor=v,Xt.prototype=$n(yo.prototype),Xt.prototype.constructor=Xt;function we(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function Qm(){var r=new we(this.__wrapped__);return r.__actions__=It(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=It(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=It(this.__views__),r}function ey(){if(this.__filtered__){var r=new we(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function ty(){var r=this.__wrapped__.value(),o=this.__dir__,u=ve(r),f=o<0,g=u?r.length:0,m=pb(0,g,this.__views__),S=m.start,C=m.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&&g==A&&ee==A)return hf(r,this.__actions__);var ae=[];e:for(;A--&&V<ee;){L+=o;for(var be=-1,oe=r[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=$n(yo.prototype),we.prototype.constructor=we;function pn(r){var o=-1,u=r==null?0:r.length;for(this.clear();++o<u;){var f=r[o];this.set(f[0],f[1])}}function ry(){this.__data__=da?da(null):{},this.size=0}function ny(r){var o=this.has(r)&&delete this.__data__[r];return this.size-=o?1:0,o}function ay(r){var o=this.__data__;if(da){var u=o[r];return u===d?t:u}return ke.call(o,r)?o[r]:t}function oy(r){var o=this.__data__;return da?o[r]!==t:ke.call(o,r)}function sy(r,o){var u=this.__data__;return this.size+=this.has(r)?0:1,u[r]=da&&o===t?d:o,this}pn.prototype.clear=ry,pn.prototype.delete=ny,pn.prototype.get=ay,pn.prototype.has=oy,pn.prototype.set=sy;function wr(r){var o=-1,u=r==null?0:r.length;for(this.clear();++o<u;){var f=r[o];this.set(f[0],f[1])}}function iy(){this.__data__=[],this.size=0}function uy(r){var o=this.__data__,u=bo(o,r);if(u<0)return!1;var f=o.length-1;return u==f?o.pop():fo.call(o,u,1),--this.size,!0}function cy(r){var o=this.__data__,u=bo(o,r);return u<0?t:o[u][1]}function ly(r){return bo(this.__data__,r)>-1}function fy(r,o){var u=this.__data__,f=bo(u,r);return f<0?(++this.size,u.push([r,o])):u[f][1]=o,this}wr.prototype.clear=iy,wr.prototype.delete=uy,wr.prototype.get=cy,wr.prototype.has=ly,wr.prototype.set=fy;function Tr(r){var o=-1,u=r==null?0:r.length;for(this.clear();++o<u;){var f=r[o];this.set(f[0],f[1])}}function dy(){this.size=0,this.__data__={hash:new pn,map:new(la||wr),string:new pn}}function py(r){var o=Do(this,r).delete(r);return this.size-=o?1:0,o}function hy(r){return Do(this,r).get(r)}function gy(r){return Do(this,r).has(r)}function vy(r,o){var u=Do(this,r),f=u.size;return u.set(r,o),this.size+=u.size==f?0:1,this}Tr.prototype.clear=dy,Tr.prototype.delete=py,Tr.prototype.get=hy,Tr.prototype.has=gy,Tr.prototype.set=vy;function hn(r){var o=-1,u=r==null?0:r.length;for(this.__data__=new Tr;++o<u;)this.add(r[o])}function my(r){return this.__data__.set(r,d),this}function yy(r){return this.__data__.has(r)}hn.prototype.add=hn.prototype.push=my,hn.prototype.has=yy;function ur(r){var o=this.__data__=new wr(r);this.size=o.size}function by(){this.__data__=new wr,this.size=0}function _y(r){var o=this.__data__,u=o.delete(r);return this.size=o.size,u}function Ey(r){return this.__data__.get(r)}function Sy(r){return this.__data__.has(r)}function wy(r,o){var u=this.__data__;if(u instanceof wr){var f=u.__data__;if(!la||f.length<s-1)return f.push([r,o]),this.size=++u.size,this;u=this.__data__=new Tr(f)}return u.set(r,o),this.size=u.size,this}ur.prototype.clear=by,ur.prototype.delete=_y,ur.prototype.get=Ey,ur.prototype.has=Sy,ur.prototype.set=wy;function Gl(r,o){var u=ve(r),f=!u&&bn(r),g=!u&&!f&&Xr(r),m=!u&&!f&&!g&&kn(r),S=u||f||g||m,C=S?ui(r.length,Fm):[],A=C.length;for(var L in r)(o||ke.call(r,L))&&!(S&&(L=="length"||g&&(L=="offset"||L=="parent")||m&&(L=="buffer"||L=="byteLength"||L=="byteOffset")||Or(L,A)))&&C.push(L);return C}function ql(r){var o=r.length;return o?r[Ci(0,o-1)]:t}function Ty(r,o){return Io(It(r),gn(o,0,r.length))}function Cy(r){return Io(It(r))}function gi(r,o,u){(u!==t&&!cr(r[o],u)||u===t&&!(o in r))&&Cr(r,o,u)}function ha(r,o,u){var f=r[o];(!(ke.call(r,o)&&cr(f,u))||u===t&&!(o in r))&&Cr(r,o,u)}function bo(r,o){for(var u=r.length;u--;)if(cr(r[u][0],o))return u;return-1}function xy(r,o,u,f){return zr(r,function(g,m,S){o(f,g,u(g),S)}),f}function Yl(r,o){return r&&mr(o,dt(o),r)}function Ry(r,o){return r&&mr(o,$t(o),r)}function Cr(r,o,u){o=="__proto__"&&po?po(r,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):r[o]=u}function vi(r,o){for(var u=-1,f=o.length,g=I(f),m=r==null;++u<f;)g[u]=m?t:Ji(r,o[u]);return g}function gn(r,o,u){return r===r&&(u!==t&&(r=r<=u?r:u),o!==t&&(r=r>=o?r:o)),r}function Zt(r,o,u,f,g,m){var S,C=o&y,A=o&_,L=o&E;if(u&&(S=g?u(r,f,g,m):u(r)),S!==t)return S;if(!Ze(r))return r;var N=ve(r);if(N){if(S=gb(r),!C)return It(r,S)}else{var B=_t(r),V=B==F||B==ze;if(Xr(r))return mf(r,C);if(B==Yt||B==fe||V&&!g){if(S=A||V?{}:Lf(r),!C)return A?ab(r,Ry(S,r)):nb(r,Yl(S,r))}else{if(!Ye[B])return g?r:{};S=vb(r,B,C)}}m||(m=new ur);var ee=m.get(r);if(ee)return ee;m.set(r,S),fd(r)?r.forEach(function(oe){S.add(Zt(oe,o,u,oe,r,m))}):cd(r)&&r.forEach(function(oe,Se){S.set(Se,Zt(oe,o,u,Se,r,m))});var ae=L?A?Li:Mi:A?$t:dt,be=N?t:ae(r);return Kt(be||r,function(oe,Se){be&&(Se=oe,oe=r[Se]),ha(S,Se,Zt(oe,o,u,Se,r,m))}),S}function Oy(r){var o=dt(r);return function(u){return zl(u,r,o)}}function zl(r,o,u){var f=u.length;if(r==null)return!f;for(r=Ue(r);f--;){var g=u[f],m=o[g],S=r[g];if(S===t&&!(g in r)||!m(S))return!1}return!0}function Vl(r,o,u){if(typeof r!="function")throw new Jt(c);return Ea(function(){r.apply(t,u)},o)}function ga(r,o,u,f){var g=-1,m=to,S=!0,C=r.length,A=[],L=o.length;if(!C)return A;u&&(o=Ke(o,kt(u))),f?(m=ri,S=!1):o.length>=s&&(m=ua,S=!1,o=new hn(o));e:for(;++g<C;){var N=r[g],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 m(o,B,f)||A.push(N)}return A}var zr=Sf(vr),Kl=Sf(yi,!0);function Ay(r,o){var u=!0;return zr(r,function(f,g,m){return u=!!o(f,g,m),u}),u}function _o(r,o,u){for(var f=-1,g=r.length;++f<g;){var m=r[f],S=o(m);if(S!=null&&(C===t?S===S&&!Bt(S):u(S,C)))var C=S,A=m}return A}function Py(r,o,u,f){var g=r.length;for(u=me(u),u<0&&(u=-u>g?0:g+u),f=f===t||f>g?g:me(f),f<0&&(f+=g),f=u>f?0:pd(f);u<f;)r[u++]=o;return r}function Jl(r,o){var u=[];return zr(r,function(f,g,m){o(f,g,m)&&u.push(f)}),u}function vt(r,o,u,f,g){var m=-1,S=r.length;for(u||(u=yb),g||(g=[]);++m<S;){var C=r[m];o>0&&u(C)?o>1?vt(C,o-1,u,f,g):Gr(g,C):f||(g[g.length]=C)}return g}var mi=wf(),Xl=wf(!0);function vr(r,o){return r&&mi(r,o,dt)}function yi(r,o){return r&&Xl(r,o,dt)}function Eo(r,o){return Hr(o,function(u){return Ar(r[u])})}function vn(r,o){o=Kr(o,r);for(var u=0,f=o.length;r!=null&&u<f;)r=r[yr(o[u++])];return u&&u==f?r:t}function Zl(r,o,u){var f=o(r);return ve(r)?f:Gr(f,u(r))}function Rt(r){return r==null?r===t?Ga:Ha:dn&&dn in Ue(r)?db(r):Cb(r)}function bi(r,o){return r>o}function Dy(r,o){return r!=null&&ke.call(r,o)}function Iy(r,o){return r!=null&&o in Ue(r)}function Fy(r,o,u){return r>=bt(o,u)&&r<ct(o,u)}function _i(r,o,u){for(var f=u?ri:to,g=r[0].length,m=r.length,S=m,C=I(m),A=1/0,L=[];S--;){var N=r[S];S&&o&&(N=Ke(N,kt(o))),A=bt(N.length,A),C[S]=!u&&(o||g>=120&&N.length>=120)?new hn(S&&N):t}N=r[0];var B=-1,V=C[0];e:for(;++B<g&&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=m;--S;){var be=C[S];if(!(be?ua(be,ae):f(r[S],ae,u)))continue e}V&&V.push(ae),L.push(ee)}}return L}function $y(r,o,u,f){return vr(r,function(g,m,S){o(f,u(g),m,S)}),f}function va(r,o,u){o=Kr(o,r),r=Bf(r,o);var f=r==null?r:r[yr(er(o))];return f==null?t:Nt(f,r,u)}function Ql(r){return tt(r)&&Rt(r)==fe}function My(r){return tt(r)&&Rt(r)==sn}function Ly(r){return tt(r)&&Rt(r)==he}function ma(r,o,u,f,g){return r===o?!0:r==null||o==null||!tt(r)&&!tt(o)?r!==r&&o!==o:Ny(r,o,u,f,ma,g)}function Ny(r,o,u,f,g,m){var S=ve(r),C=ve(o),A=S?ne:_t(r),L=C?ne:_t(o);A=A==fe?Yt:A,L=L==fe?Yt:L;var N=A==Yt,B=L==Yt,V=A==L;if(V&&Xr(r)){if(!Xr(o))return!1;S=!0,N=!1}if(V&&!N)return m||(m=new ur),S||kn(r)?Ff(r,o,u,f,g,m):lb(r,o,A,u,f,g,m);if(!(u&T)){var ee=N&&ke.call(r,"__wrapped__"),ae=B&&ke.call(o,"__wrapped__");if(ee||ae){var be=ee?r.value():r,oe=ae?o.value():o;return m||(m=new ur),g(be,oe,u,f,m)}}return V?(m||(m=new ur),fb(r,o,u,f,g,m)):!1}function ky(r){return tt(r)&&_t(r)==qe}function Ei(r,o,u,f){var g=u.length,m=g,S=!f;if(r==null)return!m;for(r=Ue(r);g--;){var C=u[g];if(S&&C[2]?C[1]!==r[C[0]]:!(C[0]in r))return!1}for(;++g<m;){C=u[g];var A=C[0],L=r[A],N=C[1];if(S&&C[2]){if(L===t&&!(A in r))return!1}else{var B=new ur;if(f)var V=f(L,N,A,r,o,B);if(!(V===t?ma(N,L,T|x,f,B):V))return!1}}return!0}function ef(r){if(!Ze(r)||_b(r))return!1;var o=Ar(r)?km:sr;return o.test(yn(r))}function jy(r){return tt(r)&&Rt(r)==or}function By(r){return tt(r)&&_t(r)==xt}function Wy(r){return tt(r)&&ko(r.length)&&!!Ve[Rt(r)]}function tf(r){return typeof r=="function"?r:r==null?Mt:typeof r=="object"?ve(r)?af(r[0],r[1]):nf(r):Td(r)}function Si(r){if(!_a(r))return Gm(r);var o=[];for(var u in Ue(r))ke.call(r,u)&&u!="constructor"&&o.push(u);return o}function Uy(r){if(!Ze(r))return Tb(r);var o=_a(r),u=[];for(var f in r)f=="constructor"&&(o||!ke.call(r,f))||u.push(f);return u}function wi(r,o){return r<o}function rf(r,o){var u=-1,f=Ft(r)?I(r.length):[];return zr(r,function(g,m,S){f[++u]=o(g,m,S)}),f}function nf(r){var o=ki(r);return o.length==1&&o[0][2]?kf(o[0][0],o[0][1]):function(u){return u===r||Ei(u,r,o)}}function af(r,o){return Bi(r)&&Nf(o)?kf(yr(r),o):function(u){var f=Ji(u,r);return f===t&&f===o?Xi(u,r):ma(o,f,T|x)}}function So(r,o,u,f,g){r!==o&&mi(o,function(m,S){if(g||(g=new ur),Ze(m))Hy(r,o,S,u,So,f,g);else{var C=f?f(Ui(r,S),m,S+"",r,o,g):t;C===t&&(C=m),gi(r,S,C)}},$t)}function Hy(r,o,u,f,g,m,S){var C=Ui(r,u),A=Ui(o,u),L=S.get(A);if(L){gi(r,u,L);return}var N=m?m(C,A,u+"",r,o,S):t,B=N===t;if(B){var V=ve(A),ee=!V&&Xr(A),ae=!V&&!ee&&kn(A);N=A,V||ee||ae?ve(C)?N=C:nt(C)?N=It(C):ee?(B=!1,N=mf(A,!0)):ae?(B=!1,N=yf(A,!0)):N=[]:Sa(A)||bn(A)?(N=C,bn(C)?N=hd(C):(!Ze(C)||Ar(C))&&(N=Lf(A))):B=!1}B&&(S.set(A,N),g(N,A,f,m,S),S.delete(A)),gi(r,u,N)}function of(r,o){var u=r.length;if(u)return o+=o<0?u:0,Or(o,u)?r[o]:t}function sf(r,o,u){o.length?o=Ke(o,function(m){return ve(m)?function(S){return vn(S,m.length===1?m[0]:m)}:m}):o=[Mt];var f=-1;o=Ke(o,kt(re()));var g=rf(r,function(m,S,C){var A=Ke(o,function(L){return L(m)});return{criteria:A,index:++f,value:m}});return vm(g,function(m,S){return rb(m,S,u)})}function Gy(r,o){return uf(r,o,function(u,f){return Xi(r,f)})}function uf(r,o,u){for(var f=-1,g=o.length,m={};++f<g;){var S=o[f],C=vn(r,S);u(C,S)&&ya(m,Kr(S,r),C)}return m}function qy(r){return function(o){return vn(o,r)}}function Ti(r,o,u,f){var g=f?gm:Rn,m=-1,S=o.length,C=r;for(r===o&&(o=It(o)),u&&(C=Ke(r,kt(u)));++m<S;)for(var A=0,L=o[m],N=u?u(L):L;(A=g(C,N,A,f))>-1;)C!==r&&fo.call(C,A,1),fo.call(r,A,1);return r}function cf(r,o){for(var u=r?o.length:0,f=u-1;u--;){var g=o[u];if(u==f||g!==m){var m=g;Or(g)?fo.call(r,g,1):Oi(r,g)}}return r}function Ci(r,o){return r+go(Ul()*(o-r+1))}function Yy(r,o,u,f){for(var g=-1,m=ct(ho((o-r)/(u||1)),0),S=I(m);m--;)S[f?m:++g]=r,r+=u;return S}function xi(r,o){var u="";if(!r||o<1||o>rt)return u;do o%2&&(u+=r),o=go(o/2),o&&(r+=r);while(o);return u}function _e(r,o){return Hi(jf(r,o,Mt),r+"")}function zy(r){return ql(jn(r))}function Vy(r,o){var u=jn(r);return Io(u,gn(o,0,u.length))}function ya(r,o,u,f){if(!Ze(r))return r;o=Kr(o,r);for(var g=-1,m=o.length,S=m-1,C=r;C!=null&&++g<m;){var A=yr(o[g]),L=u;if(A==="__proto__"||A==="constructor"||A==="prototype")return r;if(g!=S){var N=C[A];L=f?f(N,A,C):t,L===t&&(L=Ze(N)?N:Or(o[g+1])?[]:{})}ha(C,A,L),C=C[A]}return r}var lf=vo?function(r,o){return vo.set(r,o),r}:Mt,Ky=po?function(r,o){return po(r,"toString",{configurable:!0,enumerable:!1,value:Qi(o),writable:!0})}:Mt;function Jy(r){return Io(jn(r))}function Qt(r,o,u){var f=-1,g=r.length;o<0&&(o=-o>g?0:g+o),u=u>g?g:u,u<0&&(u+=g),g=o>u?0:u-o>>>0,o>>>=0;for(var m=I(g);++f<g;)m[f]=r[f+o];return m}function Xy(r,o){var u;return zr(r,function(f,g,m){return u=o(f,g,m),!u}),!!u}function wo(r,o,u){var f=0,g=r==null?f:r.length;if(typeof o=="number"&&o===o&&g<=le){for(;f<g;){var m=f+g>>>1,S=r[m];S!==null&&!Bt(S)&&(u?S<=o:S<o)?f=m+1:g=m}return g}return Ri(r,o,Mt,u)}function Ri(r,o,u,f){var g=0,m=r==null?0:r.length;if(m===0)return 0;o=u(o);for(var S=o!==o,C=o===null,A=Bt(o),L=o===t;g<m;){var N=go((g+m)/2),B=u(r[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?g=N+1:m=N}return bt(m,de)}function ff(r,o){for(var u=-1,f=r.length,g=0,m=[];++u<f;){var S=r[u],C=o?o(S):S;if(!u||!cr(C,A)){var A=C;m[g++]=S===0?0:S}}return m}function df(r){return typeof r=="number"?r:Bt(r)?W:+r}function jt(r){if(typeof r=="string")return r;if(ve(r))return Ke(r,jt)+"";if(Bt(r))return Hl?Hl.call(r):"";var o=r+"";return o=="0"&&1/r==-Ge?"-0":o}function Vr(r,o,u){var f=-1,g=to,m=r.length,S=!0,C=[],A=C;if(u)S=!1,g=ri;else if(m>=s){var L=o?null:ub(r);if(L)return no(L);S=!1,g=ua,A=new hn}else A=o?[]:C;e:for(;++f<m;){var N=r[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 g(A,B,u)||(A!==C&&A.push(B),C.push(N))}return C}function Oi(r,o){return o=Kr(o,r),r=Bf(r,o),r==null||delete r[yr(er(o))]}function pf(r,o,u,f){return ya(r,o,u(vn(r,o)),f)}function To(r,o,u,f){for(var g=r.length,m=f?g:-1;(f?m--:++m<g)&&o(r[m],m,r););return u?Qt(r,f?0:m,f?m+1:g):Qt(r,f?m+1:0,f?g:m)}function hf(r,o){var u=r;return u instanceof we&&(u=u.value()),ni(o,function(f,g){return g.func.apply(g.thisArg,Gr([f],g.args))},u)}function Ai(r,o,u){var f=r.length;if(f<2)return f?Vr(r[0]):[];for(var g=-1,m=I(f);++g<f;)for(var S=r[g],C=-1;++C<f;)C!=g&&(m[g]=ga(m[g]||S,r[C],o,u));return Vr(vt(m,1),o,u)}function gf(r,o,u){for(var f=-1,g=r.length,m=o.length,S={};++f<g;){var C=f<m?o[f]:t;u(S,r[f],C)}return S}function Pi(r){return nt(r)?r:[]}function Di(r){return typeof r=="function"?r:Mt}function Kr(r,o){return ve(r)?r:Bi(r,o)?[r]:Gf(De(r))}var Zy=_e;function Jr(r,o,u){var f=r.length;return u=u===t?f:u,!o&&u>=f?r:Qt(r,o,u)}var vf=jm||function(r){return gt.clearTimeout(r)};function mf(r,o){if(o)return r.slice();var u=r.length,f=Nl?Nl(u):new r.constructor(u);return r.copy(f),f}function Ii(r){var o=new r.constructor(r.byteLength);return new co(o).set(new co(r)),o}function Qy(r,o){var u=o?Ii(r.buffer):r.buffer;return new r.constructor(u,r.byteOffset,r.byteLength)}function eb(r){var o=new r.constructor(r.source,zt.exec(r));return o.lastIndex=r.lastIndex,o}function tb(r){return pa?Ue(pa.call(r)):{}}function yf(r,o){var u=o?Ii(r.buffer):r.buffer;return new r.constructor(u,r.byteOffset,r.length)}function bf(r,o){if(r!==o){var u=r!==t,f=r===null,g=r===r,m=Bt(r),S=o!==t,C=o===null,A=o===o,L=Bt(o);if(!C&&!L&&!m&&r>o||m&&S&&A&&!C&&!L||f&&S&&A||!u&&A||!g)return 1;if(!f&&!m&&!L&&r<o||L&&u&&g&&!f&&!m||C&&u&&g||!S&&g||!A)return-1}return 0}function rb(r,o,u){for(var f=-1,g=r.criteria,m=o.criteria,S=g.length,C=u.length;++f<S;){var A=bf(g[f],m[f]);if(A){if(f>=C)return A;var L=u[f];return A*(L=="desc"?-1:1)}}return r.index-o.index}function _f(r,o,u,f){for(var g=-1,m=r.length,S=u.length,C=-1,A=o.length,L=ct(m-S,0),N=I(A+L),B=!f;++C<A;)N[C]=o[C];for(;++g<S;)(B||g<m)&&(N[u[g]]=r[g]);for(;L--;)N[C++]=r[g++];return N}function Ef(r,o,u,f){for(var g=-1,m=r.length,S=-1,C=u.length,A=-1,L=o.length,N=ct(m-C,0),B=I(N+L),V=!f;++g<N;)B[g]=r[g];for(var ee=g;++A<L;)B[ee+A]=o[A];for(;++S<C;)(V||g<m)&&(B[ee+u[S]]=r[g++]);return B}function It(r,o){var u=-1,f=r.length;for(o||(o=I(f));++u<f;)o[u]=r[u];return o}function mr(r,o,u,f){var g=!u;u||(u={});for(var m=-1,S=o.length;++m<S;){var C=o[m],A=f?f(u[C],r[C],C,u,r):t;A===t&&(A=r[C]),g?Cr(u,C,A):ha(u,C,A)}return u}function nb(r,o){return mr(r,ji(r),o)}function ab(r,o){return mr(r,$f(r),o)}function Co(r,o){return function(u,f){var g=ve(u)?cm:xy,m=o?o():{};return g(u,r,re(f,2),m)}}function Mn(r){return _e(function(o,u){var f=-1,g=u.length,m=g>1?u[g-1]:t,S=g>2?u[2]:t;for(m=r.length>3&&typeof m=="function"?(g--,m):t,S&&Ot(u[0],u[1],S)&&(m=g<3?t:m,g=1),o=Ue(o);++f<g;){var C=u[f];C&&r(o,C,f,m)}return o})}function Sf(r,o){return function(u,f){if(u==null)return u;if(!Ft(u))return r(u,f);for(var g=u.length,m=o?g:-1,S=Ue(u);(o?m--:++m<g)&&f(S[m],m,S)!==!1;);return u}}function wf(r){return function(o,u,f){for(var g=-1,m=Ue(o),S=f(o),C=S.length;C--;){var A=S[r?C:++g];if(u(m[A],A,m)===!1)break}return o}}function ob(r,o,u){var f=o&D,g=ba(r);function m(){var S=this&&this!==gt&&this instanceof m?g:r;return S.apply(f?u:this,arguments)}return m}function Tf(r){return function(o){o=De(o);var u=On(o)?ir(o):t,f=u?u[0]:o.charAt(0),g=u?Jr(u,1).join(""):o.slice(1);return f[r]()+g}}function Ln(r){return function(o){return ni(Sd(Ed(o).replace(Kv,"")),r,"")}}function ba(r){return function(){var o=arguments;switch(o.length){case 0:return new r;case 1:return new r(o[0]);case 2:return new r(o[0],o[1]);case 3:return new r(o[0],o[1],o[2]);case 4:return new r(o[0],o[1],o[2],o[3]);case 5:return new r(o[0],o[1],o[2],o[3],o[4]);case 6:return new r(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new r(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var u=$n(r.prototype),f=r.apply(u,o);return Ze(f)?f:u}}function sb(r,o,u){var f=ba(r);function g(){for(var m=arguments.length,S=I(m),C=m,A=Nn(g);C--;)S[C]=arguments[C];var L=m<3&&S[0]!==A&&S[m-1]!==A?[]:qr(S,A);if(m-=L.length,m<u)return Af(r,o,xo,g.placeholder,t,S,L,t,t,u-m);var N=this&&this!==gt&&this instanceof g?f:r;return Nt(N,this,S)}return g}function Cf(r){return function(o,u,f){var g=Ue(o);if(!Ft(o)){var m=re(u,3);o=dt(o),u=function(C){return m(g[C],C,g)}}var S=r(o,u,f);return S>-1?g[m?o[S]:S]:t}}function xf(r){return Rr(function(o){var u=o.length,f=u,g=Xt.prototype.thru;for(r&&o.reverse();f--;){var m=o[f];if(typeof m!="function")throw new Jt(c);if(g&&!S&&Po(m)=="wrapper")var S=new Xt([],!0)}for(f=S?f:u;++f<u;){m=o[f];var C=Po(m),A=C=="wrapper"?Ni(m):t;A&&Wi(A[0])&&A[1]==(H|M|O|Y)&&!A[4].length&&A[9]==1?S=S[Po(A[0])].apply(S,A[3]):S=m.length==1&&Wi(m)?S[C]():S.thru(m)}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 xo(r,o,u,f,g,m,S,C,A,L){var N=o&H,B=o&D,V=o&P,ee=o&(M|k),ae=o&te,be=V?t:ba(r);function oe(){for(var Se=arguments.length,xe=I(Se),Wt=Se;Wt--;)xe[Wt]=arguments[Wt];if(ee)var At=Nn(oe),Ut=ym(xe,At);if(f&&(xe=_f(xe,f,g,ee)),m&&(xe=Ef(xe,m,S,ee)),Se-=Ut,ee&&Se<L){var at=qr(xe,At);return Af(r,o,xo,oe.placeholder,u,xe,at,C,A,L-Se)}var lr=B?u:this,Dr=V?lr[r]:r;return Se=xe.length,C?xe=xb(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 Rf(r,o){return function(u,f){return $y(u,r,o(f),{})}}function Ro(r,o){return function(u,f){var g;if(u===t&&f===t)return o;if(u!==t&&(g=u),f!==t){if(g===t)return f;typeof u=="string"||typeof f=="string"?(u=jt(u),f=jt(f)):(u=df(u),f=df(f)),g=r(u,f)}return g}}function Fi(r){return Rr(function(o){return o=Ke(o,kt(re())),_e(function(u){var f=this;return r(o,function(g){return Nt(g,f,u)})})})}function Oo(r,o){o=o===t?" ":jt(o);var u=o.length;if(u<2)return u?xi(o,r):o;var f=xi(o,ho(r/An(o)));return On(o)?Jr(ir(f),0,r).join(""):f.slice(0,r)}function ib(r,o,u,f){var g=o&D,m=ba(r);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?m:r;++L<N;)B[L]=f[L];for(;A--;)B[L++]=arguments[++C];return Nt(V,g?u:this,B)}return S}function Of(r){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),Yy(o,u,f,r)}}function Ao(r){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=tr(o),u=tr(u)),r(o,u)}}function Af(r,o,u,f,g,m,S,C,A,L){var N=o&M,B=N?S:t,V=N?t:S,ee=N?m:t,ae=N?t:m;o|=N?O:z,o&=~(N?z:O),o&j||(o&=~(D|P));var be=[r,o,g,ee,B,ae,V,C,A,L],oe=u.apply(t,be);return Wi(r)&&Wf(oe,be),oe.placeholder=f,Uf(oe,r,o)}function $i(r){var o=ut[r];return function(u,f){if(u=tr(u),f=f==null?0:bt(me(f),292),f&&Wl(u)){var g=(De(u)+"e").split("e"),m=o(g[0]+"e"+(+g[1]+f));return g=(De(m)+"e").split("e"),+(g[0]+"e"+(+g[1]-f))}return o(u)}}var ub=In&&1/no(new In([,-0]))[1]==Ge?function(r){return new In(r)}:ru;function Pf(r){return function(o){var u=_t(o);return u==qe?li(o):u==xt?Cm(o):mm(o,r(o))}}function xr(r,o,u,f,g,m,S,C){var A=o&P;if(!A&&typeof r!="function")throw new Jt(c);var L=f?f.length:0;if(L||(o&=~(O|z),f=g=t),S=S===t?S:ct(me(S),0),C=C===t?C:me(C),L-=g?g.length:0,o&z){var N=f,B=g;f=g=t}var V=A?t:Ni(r),ee=[r,o,u,f,g,N,B,m,S,C];if(V&&wb(ee,V),r=ee[0],o=ee[1],u=ee[2],f=ee[3],g=ee[4],C=ee[9]=ee[9]===t?A?0:r.length:ct(ee[9]-L,0),!C&&o&(M|k)&&(o&=~(M|k)),!o||o==D)var ae=ob(r,o,u);else o==M||o==k?ae=sb(r,o,C):(o==O||o==(D|O))&&!g.length?ae=ib(r,o,u,f):ae=xo.apply(t,ee);var be=V?lf:Wf;return Uf(be(ae,ee),r,o)}function Df(r,o,u,f){return r===t||cr(r,Dn[u])&&!ke.call(f,u)?o:r}function If(r,o,u,f,g,m){return Ze(r)&&Ze(o)&&(m.set(o,r),So(r,o,t,If,m),m.delete(o)),r}function cb(r){return Sa(r)?t:r}function Ff(r,o,u,f,g,m){var S=u&T,C=r.length,A=o.length;if(C!=A&&!(S&&A>C))return!1;var L=m.get(r),N=m.get(o);if(L&&N)return L==o&&N==r;var B=-1,V=!0,ee=u&x?new hn:t;for(m.set(r,o),m.set(o,r);++B<C;){var ae=r[B],be=o[B];if(f)var oe=S?f(be,ae,B,o,r,m):f(ae,be,B,r,o,m);if(oe!==t){if(oe)continue;V=!1;break}if(ee){if(!ai(o,function(Se,xe){if(!ua(ee,xe)&&(ae===Se||g(ae,Se,u,f,m)))return ee.push(xe)})){V=!1;break}}else if(!(ae===be||g(ae,be,u,f,m))){V=!1;break}}return m.delete(r),m.delete(o),V}function lb(r,o,u,f,g,m,S){switch(u){case Wr:if(r.byteLength!=o.byteLength||r.byteOffset!=o.byteOffset)return!1;r=r.buffer,o=o.buffer;case sn:return!(r.byteLength!=o.byteLength||!m(new co(r),new co(o)));case ue:case he:case yt:return cr(+r,+o);case K:return r.name==o.name&&r.message==o.message;case or:case an:return r==o+"";case qe:var C=li;case xt:var A=f&T;if(C||(C=no),r.size!=o.size&&!A)return!1;var L=S.get(r);if(L)return L==o;f|=x,S.set(r,o);var N=Ff(C(r),C(o),f,g,m,S);return S.delete(r),N;case on:if(pa)return pa.call(r)==pa.call(o)}return!1}function fb(r,o,u,f,g,m){var S=u&T,C=Mi(r),A=C.length,L=Mi(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=m.get(r),ae=m.get(o);if(ee&&ae)return ee==o&&ae==r;var be=!0;m.set(r,o),m.set(o,r);for(var oe=S;++B<A;){V=C[B];var Se=r[V],xe=o[V];if(f)var Wt=S?f(xe,Se,V,o,r,m):f(Se,xe,V,r,o,m);if(!(Wt===t?Se===xe||g(Se,xe,u,f,m):Wt)){be=!1;break}oe||(oe=V=="constructor")}if(be&&!oe){var At=r.constructor,Ut=o.constructor;At!=Ut&&"constructor"in r&&"constructor"in o&&!(typeof At=="function"&&At instanceof At&&typeof Ut=="function"&&Ut instanceof Ut)&&(be=!1)}return m.delete(r),m.delete(o),be}function Rr(r){return Hi(jf(r,t,Vf),r+"")}function Mi(r){return Zl(r,dt,ji)}function Li(r){return Zl(r,$t,$f)}var Ni=vo?function(r){return vo.get(r)}:ru;function Po(r){for(var o=r.name+"",u=Fn[o],f=ke.call(Fn,o)?u.length:0;f--;){var g=u[f],m=g.func;if(m==null||m==r)return g.name}return o}function Nn(r){var o=ke.call(v,"placeholder")?v:r;return o.placeholder}function re(){var r=v.iteratee||eu;return r=r===eu?tf:r,arguments.length?r(arguments[0],arguments[1]):r}function Do(r,o){var u=r.__data__;return bb(o)?u[typeof o=="string"?"string":"hash"]:u.map}function ki(r){for(var o=dt(r),u=o.length;u--;){var f=o[u],g=r[f];o[u]=[f,g,Nf(g)]}return o}function mn(r,o){var u=Sm(r,o);return ef(u)?u:t}function db(r){var o=ke.call(r,dn),u=r[dn];try{r[dn]=t;var f=!0}catch{}var g=io.call(r);return f&&(o?r[dn]=u:delete r[dn]),g}var ji=di?function(r){return r==null?[]:(r=Ue(r),Hr(di(r),function(o){return jl.call(r,o)}))}:nu,$f=di?function(r){for(var o=[];r;)Gr(o,ji(r)),r=lo(r);return o}:nu,_t=Rt;(pi&&_t(new pi(new ArrayBuffer(1)))!=Wr||la&&_t(new la)!=qe||hi&&_t(hi.resolve())!=nn||In&&_t(new In)!=xt||fa&&_t(new fa)!=Sr)&&(_t=function(r){var o=Rt(r),u=o==Yt?r.constructor:t,f=u?yn(u):"";if(f)switch(f){case Vm:return Wr;case Km:return qe;case Jm:return nn;case Xm:return xt;case Zm:return Sr}return o});function pb(r,o,u){for(var f=-1,g=u.length;++f<g;){var m=u[f],S=m.size;switch(m.type){case"drop":r+=S;break;case"dropRight":o-=S;break;case"take":o=bt(o,r+S);break;case"takeRight":r=ct(r,o-S);break}}return{start:r,end:o}}function hb(r){var o=r.match(Ne);return o?o[1].split(Ce):[]}function Mf(r,o,u){o=Kr(o,r);for(var f=-1,g=o.length,m=!1;++f<g;){var S=yr(o[f]);if(!(m=r!=null&&u(r,S)))break;r=r[S]}return m||++f!=g?m:(g=r==null?0:r.length,!!g&&ko(g)&&Or(S,g)&&(ve(r)||bn(r)))}function gb(r){var o=r.length,u=new r.constructor(o);return o&&typeof r[0]=="string"&&ke.call(r,"index")&&(u.index=r.index,u.input=r.input),u}function Lf(r){return typeof r.constructor=="function"&&!_a(r)?$n(lo(r)):{}}function vb(r,o,u){var f=r.constructor;switch(o){case sn:return Ii(r);case ue:case he:return new f(+r);case Wr:return Qy(r,u);case na:case aa:case oa:case sa:case un:case Cn:case gr:case cn:case ln:return yf(r,u);case qe:return new f;case yt:case an:return new f(r);case or:return eb(r);case xt:return new f;case on:return tb(r)}}function mb(r,o){var u=o.length;if(!u)return r;var f=u-1;return o[f]=(u>1?"& ":"")+o[f],o=o.join(u>2?", ":" "),r.replace(Le,`{
|
|
15
|
+
*/cs.exports;(function(e,n){(function(){var t,a="4.17.21",s=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",l="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",p=500,h="__lodash_placeholder__",y=1,_=2,E=4,T=1,x=2,D=1,P=2,j=4,M=8,k=16,O=32,z=64,H=128,Y=256,te=512,We=30,Te="...",st=800,X=16,Pe=1,it=2,Qe=3,Ge=1/0,rt=9007199254740991,qt=17976931348623157e292,W=0/0,q=4294967295,de=q-1,le=q>>>1,se=[["ary",H],["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]",qe="[object Map]",yt="[object Number]",Ha="[object Null]",Yt="[object Object]",nn="[object Promise]",Ws="[object Proxy]",or="[object RegExp]",xt="[object Set]",an="[object String]",on="[object Symbol]",Ga="[object Undefined]",Sr="[object WeakMap]",Us="[object WeakSet]",sn="[object ArrayBuffer]",Wr="[object DataView]",na="[object Float32Array]",aa="[object Float64Array]",oa="[object Int8Array]",sa="[object Int16Array]",un="[object Int32Array]",Cn="[object Uint8Array]",gr="[object Uint8ClampedArray]",cn="[object Uint16Array]",ln="[object Uint32Array]",qa=/\b__p \+= '';/g,Hs=/\b(__p \+=) '' \+/g,Ya=/(__e\(.*?\)|\b__t\)) \+\n'';/g,za=/&(?:amp|lt|gt|quot|#39);/g,ia=/[&<>"']/g,Va=RegExp(za.source),Gs=RegExp(ia.source),qs=/<%-([\s\S]+?)%>/g,Ka=/<%([\s\S]+?)%>/g,Ja=/<%=([\s\S]+?)%>/g,Ys=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zs=/^\w*$/,Vs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w=/[\\^$.*+?()[\]{}|]/g,U=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,zt=/\w*$/,Ur=/^[-+]0x[0-9a-f]+$/i,Xa=/^0b[01]+$/i,sr=/^\[object .+?Constructor\]$/,Pv=/^0o[0-7]+$/i,Dv=/^(?:0|[1-9]\d*)$/,Iv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Za=/($^)/,Fv=/['\n\r\u2028\u2029\\]/g,Qa="\\ud800-\\udfff",$v="\\u0300-\\u036f",Mv="\\ufe20-\\ufe2f",Lv="\\u20d0-\\u20ff",tl=$v+Mv+Lv,rl="\\u2700-\\u27bf",nl="a-z\\xdf-\\xf6\\xf8-\\xff",Nv="\\xac\\xb1\\xd7\\xf7",kv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jv="\\u2000-\\u206f",Bv=" \\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",al="A-Z\\xc0-\\xd6\\xd8-\\xde",ol="\\ufe0e\\ufe0f",sl=Nv+kv+jv+Bv,Ks="['’]",Wv="["+Qa+"]",il="["+sl+"]",eo="["+tl+"]",ul="\\d+",Uv="["+rl+"]",cl="["+nl+"]",ll="[^"+Qa+sl+ul+rl+nl+al+"]",Js="\\ud83c[\\udffb-\\udfff]",Hv="(?:"+eo+"|"+Js+")",fl="[^"+Qa+"]",Xs="(?:\\ud83c[\\udde6-\\uddff]){2}",Zs="[\\ud800-\\udbff][\\udc00-\\udfff]",xn="["+al+"]",dl="\\u200d",pl="(?:"+cl+"|"+ll+")",Gv="(?:"+xn+"|"+ll+")",hl="(?:"+Ks+"(?:d|ll|m|re|s|t|ve))?",gl="(?:"+Ks+"(?:D|LL|M|RE|S|T|VE))?",vl=Hv+"?",ml="["+ol+"]?",qv="(?:"+dl+"(?:"+[fl,Xs,Zs].join("|")+")"+ml+vl+")*",Yv="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",zv="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",yl=ml+vl+qv,Vv="(?:"+[Uv,Xs,Zs].join("|")+")"+yl,Kv="(?:"+[fl+eo+"?",eo,Xs,Zs,Wv].join("|")+")",Jv=RegExp(Ks,"g"),Xv=RegExp(eo,"g"),Qs=RegExp(Js+"(?="+Js+")|"+Kv+yl,"g"),Zv=RegExp([xn+"?"+cl+"+"+hl+"(?="+[il,xn,"$"].join("|")+")",Gv+"+"+gl+"(?="+[il,xn+pl,"$"].join("|")+")",xn+"?"+pl+"+"+hl,xn+"+"+gl,zv,Yv,ul,Vv].join("|"),"g"),Qv=RegExp("["+dl+Qa+tl+ol+"]"),em=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tm=["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"],rm=-1,Ve={};Ve[na]=Ve[aa]=Ve[oa]=Ve[sa]=Ve[un]=Ve[Cn]=Ve[gr]=Ve[cn]=Ve[ln]=!0,Ve[fe]=Ve[ne]=Ve[sn]=Ve[ue]=Ve[Wr]=Ve[he]=Ve[K]=Ve[F]=Ve[qe]=Ve[yt]=Ve[Yt]=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[qe]=Ye[yt]=Ye[Yt]=Ye[or]=Ye[xt]=Ye[an]=Ye[on]=Ye[Cn]=Ye[gr]=Ye[cn]=Ye[ln]=!0,Ye[K]=Ye[F]=Ye[Sr]=!1;var nm={À:"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"},am={"&":"&","<":"<",">":">",'"':""","'":"'"},om={"&":"&","<":"<",">":">",""":'"',"'":"'"},sm={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},im=parseFloat,um=parseInt,bl=typeof Fr=="object"&&Fr&&Fr.Object===Object&&Fr,cm=typeof self=="object"&&self&&self.Object===Object&&self,gt=bl||cm||Function("return this")(),ei=n&&!n.nodeType&&n,fn=ei&&!0&&e&&!e.nodeType&&e,_l=fn&&fn.exports===ei,ti=_l&&bl.process,Vt=function(){try{var R=fn&&fn.require&&fn.require("util").types;return R||ti&&ti.binding&&ti.binding("util")}catch{}}(),El=Vt&&Vt.isArrayBuffer,Sl=Vt&&Vt.isDate,wl=Vt&&Vt.isMap,Tl=Vt&&Vt.isRegExp,Cl=Vt&&Vt.isSet,xl=Vt&&Vt.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 lm(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 Kt(R,$){for(var I=-1,Z=R==null?0:R.length;++I<Z&&$(R[I],I,R)!==!1;);return R}function fm(R,$){for(var I=R==null?0:R.length;I--&&$(R[I],I,R)!==!1;);return R}function Rl(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 to(R,$){var I=R==null?0:R.length;return!!I&&Rn(R,$,0)>-1}function ri(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 Gr(R,$){for(var I=-1,Z=$.length,pe=R.length;++I<Z;)R[pe+I]=$[I];return R}function ni(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 dm(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 ai(R,$){for(var I=-1,Z=R==null?0:R.length;++I<Z;)if($(R[I],I,R))return!0;return!1}var pm=oi("length");function hm(R){return R.split("")}function gm(R){return R.match(Ee)||[]}function Ol(R,$,I){var Z;return I(R,function(pe,Oe,ut){if($(pe,Oe,ut))return Z=Oe,!1}),Z}function ro(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 Rn(R,$,I){return $===$?Rm(R,$,I):ro(R,Al,I)}function vm(R,$,I,Z){for(var pe=I-1,Oe=R.length;++pe<Oe;)if(Z(R[pe],$))return pe;return-1}function Al(R){return R!==R}function Pl(R,$){var I=R==null?0:R.length;return I?ii(R,$)/I:W}function oi(R){return function($){return $==null?t:$[R]}}function si(R){return function($){return R==null?t:R[$]}}function Dl(R,$,I,Z,pe){return pe(R,function(Oe,ut,Ue){I=Z?(Z=!1,Oe):$(I,Oe,ut,Ue)}),I}function mm(R,$){var I=R.length;for(R.sort($);I--;)R[I]=R[I].value;return R}function ii(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 ui(R,$){for(var I=-1,Z=Array(R);++I<R;)Z[I]=$(I);return Z}function ym(R,$){return Ke($,function(I){return[I,R[I]]})}function Il(R){return R&&R.slice(0,Ll(R)+1).replace(J,"")}function kt(R){return function($){return R($)}}function ci(R,$){return Ke($,function(I){return R[I]})}function ua(R,$){return R.has($)}function Fl(R,$){for(var I=-1,Z=R.length;++I<Z&&Rn($,R[I],0)>-1;);return I}function $l(R,$){for(var I=R.length;I--&&Rn($,R[I],0)>-1;);return I}function bm(R,$){for(var I=R.length,Z=0;I--;)R[I]===$&&++Z;return Z}var _m=si(nm),Em=si(am);function Sm(R){return"\\"+sm[R]}function wm(R,$){return R==null?t:R[$]}function On(R){return Qv.test(R)}function Tm(R){return em.test(R)}function Cm(R){for(var $,I=[];!($=R.next()).done;)I.push($.value);return I}function li(R){var $=-1,I=Array(R.size);return R.forEach(function(Z,pe){I[++$]=[pe,Z]}),I}function Ml(R,$){return function(I){return R($(I))}}function qr(R,$){for(var I=-1,Z=R.length,pe=0,Oe=[];++I<Z;){var ut=R[I];(ut===$||ut===h)&&(R[I]=h,Oe[pe++]=I)}return Oe}function no(R){var $=-1,I=Array(R.size);return R.forEach(function(Z){I[++$]=Z}),I}function xm(R){var $=-1,I=Array(R.size);return R.forEach(function(Z){I[++$]=[Z,Z]}),I}function Rm(R,$,I){for(var Z=I-1,pe=R.length;++Z<pe;)if(R[Z]===$)return Z;return-1}function Om(R,$,I){for(var Z=I+1;Z--;)if(R[Z]===$)return Z;return Z}function An(R){return On(R)?Pm(R):pm(R)}function ir(R){return On(R)?Dm(R):hm(R)}function Ll(R){for(var $=R.length;$--&&ie.test(R.charAt($)););return $}var Am=si(om);function Pm(R){for(var $=Qs.lastIndex=0;Qs.test(R);)++$;return $}function Dm(R){return R.match(Qs)||[]}function Im(R){return R.match(Zv)||[]}var Fm=function R($){$=$==null?gt:Pn.defaults(gt.Object(),$,Pn.pick(gt,tm));var I=$.Array,Z=$.Date,pe=$.Error,Oe=$.Function,ut=$.Math,Ue=$.Object,fi=$.RegExp,$m=$.String,Jt=$.TypeError,ao=I.prototype,Mm=Oe.prototype,Dn=Ue.prototype,oo=$["__core-js_shared__"],so=Mm.toString,ke=Dn.hasOwnProperty,Lm=0,Nl=function(){var r=/[^.]+$/.exec(oo&&oo.keys&&oo.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),io=Dn.toString,Nm=so.call(Ue),km=gt._,jm=fi("^"+so.call(ke).replace(w,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),uo=_l?$.Buffer:t,Yr=$.Symbol,co=$.Uint8Array,kl=uo?uo.allocUnsafe:t,lo=Ml(Ue.getPrototypeOf,Ue),jl=Ue.create,Bl=Dn.propertyIsEnumerable,fo=ao.splice,Wl=Yr?Yr.isConcatSpreadable:t,ca=Yr?Yr.iterator:t,dn=Yr?Yr.toStringTag:t,po=function(){try{var r=mn(Ue,"defineProperty");return r({},"",{}),r}catch{}}(),Bm=$.clearTimeout!==gt.clearTimeout&&$.clearTimeout,Wm=Z&&Z.now!==gt.Date.now&&Z.now,Um=$.setTimeout!==gt.setTimeout&&$.setTimeout,ho=ut.ceil,go=ut.floor,di=Ue.getOwnPropertySymbols,Hm=uo?uo.isBuffer:t,Ul=$.isFinite,Gm=ao.join,qm=Ml(Ue.keys,Ue),ct=ut.max,bt=ut.min,Ym=Z.now,zm=$.parseInt,Hl=ut.random,Vm=ao.reverse,pi=mn($,"DataView"),la=mn($,"Map"),hi=mn($,"Promise"),In=mn($,"Set"),fa=mn($,"WeakMap"),da=mn(Ue,"create"),vo=fa&&new fa,Fn={},Km=yn(pi),Jm=yn(la),Xm=yn(hi),Zm=yn(In),Qm=yn(fa),mo=Yr?Yr.prototype:t,pa=mo?mo.valueOf:t,Gl=mo?mo.toString:t;function v(r){if(tt(r)&&!ve(r)&&!(r instanceof we)){if(r instanceof Xt)return r;if(ke.call(r,"__wrapped__"))return Yf(r)}return new Xt(r)}var $n=function(){function r(){}return function(o){if(!Ze(o))return{};if(jl)return jl(o);r.prototype=o;var u=new r;return r.prototype=t,u}}();function yo(){}function Xt(r,o){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=t}v.templateSettings={escape:qs,evaluate:Ka,interpolate:Ja,variable:"",imports:{_:v}},v.prototype=yo.prototype,v.prototype.constructor=v,Xt.prototype=$n(yo.prototype),Xt.prototype.constructor=Xt;function we(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function ey(){var r=new we(this.__wrapped__);return r.__actions__=It(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=It(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=It(this.__views__),r}function ty(){if(this.__filtered__){var r=new we(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function ry(){var r=this.__wrapped__.value(),o=this.__dir__,u=ve(r),f=o<0,g=u?r.length:0,m=hb(0,g,this.__views__),S=m.start,C=m.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&&g==A&&ee==A)return gf(r,this.__actions__);var ae=[];e:for(;A--&&V<ee;){L+=o;for(var be=-1,oe=r[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=$n(yo.prototype),we.prototype.constructor=we;function pn(r){var o=-1,u=r==null?0:r.length;for(this.clear();++o<u;){var f=r[o];this.set(f[0],f[1])}}function ny(){this.__data__=da?da(null):{},this.size=0}function ay(r){var o=this.has(r)&&delete this.__data__[r];return this.size-=o?1:0,o}function oy(r){var o=this.__data__;if(da){var u=o[r];return u===d?t:u}return ke.call(o,r)?o[r]:t}function sy(r){var o=this.__data__;return da?o[r]!==t:ke.call(o,r)}function iy(r,o){var u=this.__data__;return this.size+=this.has(r)?0:1,u[r]=da&&o===t?d:o,this}pn.prototype.clear=ny,pn.prototype.delete=ay,pn.prototype.get=oy,pn.prototype.has=sy,pn.prototype.set=iy;function wr(r){var o=-1,u=r==null?0:r.length;for(this.clear();++o<u;){var f=r[o];this.set(f[0],f[1])}}function uy(){this.__data__=[],this.size=0}function cy(r){var o=this.__data__,u=bo(o,r);if(u<0)return!1;var f=o.length-1;return u==f?o.pop():fo.call(o,u,1),--this.size,!0}function ly(r){var o=this.__data__,u=bo(o,r);return u<0?t:o[u][1]}function fy(r){return bo(this.__data__,r)>-1}function dy(r,o){var u=this.__data__,f=bo(u,r);return f<0?(++this.size,u.push([r,o])):u[f][1]=o,this}wr.prototype.clear=uy,wr.prototype.delete=cy,wr.prototype.get=ly,wr.prototype.has=fy,wr.prototype.set=dy;function Tr(r){var o=-1,u=r==null?0:r.length;for(this.clear();++o<u;){var f=r[o];this.set(f[0],f[1])}}function py(){this.size=0,this.__data__={hash:new pn,map:new(la||wr),string:new pn}}function hy(r){var o=Do(this,r).delete(r);return this.size-=o?1:0,o}function gy(r){return Do(this,r).get(r)}function vy(r){return Do(this,r).has(r)}function my(r,o){var u=Do(this,r),f=u.size;return u.set(r,o),this.size+=u.size==f?0:1,this}Tr.prototype.clear=py,Tr.prototype.delete=hy,Tr.prototype.get=gy,Tr.prototype.has=vy,Tr.prototype.set=my;function hn(r){var o=-1,u=r==null?0:r.length;for(this.__data__=new Tr;++o<u;)this.add(r[o])}function yy(r){return this.__data__.set(r,d),this}function by(r){return this.__data__.has(r)}hn.prototype.add=hn.prototype.push=yy,hn.prototype.has=by;function ur(r){var o=this.__data__=new wr(r);this.size=o.size}function _y(){this.__data__=new wr,this.size=0}function Ey(r){var o=this.__data__,u=o.delete(r);return this.size=o.size,u}function Sy(r){return this.__data__.get(r)}function wy(r){return this.__data__.has(r)}function Ty(r,o){var u=this.__data__;if(u instanceof wr){var f=u.__data__;if(!la||f.length<s-1)return f.push([r,o]),this.size=++u.size,this;u=this.__data__=new Tr(f)}return u.set(r,o),this.size=u.size,this}ur.prototype.clear=_y,ur.prototype.delete=Ey,ur.prototype.get=Sy,ur.prototype.has=wy,ur.prototype.set=Ty;function ql(r,o){var u=ve(r),f=!u&&bn(r),g=!u&&!f&&Xr(r),m=!u&&!f&&!g&&kn(r),S=u||f||g||m,C=S?ui(r.length,$m):[],A=C.length;for(var L in r)(o||ke.call(r,L))&&!(S&&(L=="length"||g&&(L=="offset"||L=="parent")||m&&(L=="buffer"||L=="byteLength"||L=="byteOffset")||Or(L,A)))&&C.push(L);return C}function Yl(r){var o=r.length;return o?r[Ci(0,o-1)]:t}function Cy(r,o){return Io(It(r),gn(o,0,r.length))}function xy(r){return Io(It(r))}function gi(r,o,u){(u!==t&&!cr(r[o],u)||u===t&&!(o in r))&&Cr(r,o,u)}function ha(r,o,u){var f=r[o];(!(ke.call(r,o)&&cr(f,u))||u===t&&!(o in r))&&Cr(r,o,u)}function bo(r,o){for(var u=r.length;u--;)if(cr(r[u][0],o))return u;return-1}function Ry(r,o,u,f){return zr(r,function(g,m,S){o(f,g,u(g),S)}),f}function zl(r,o){return r&&mr(o,dt(o),r)}function Oy(r,o){return r&&mr(o,$t(o),r)}function Cr(r,o,u){o=="__proto__"&&po?po(r,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):r[o]=u}function vi(r,o){for(var u=-1,f=o.length,g=I(f),m=r==null;++u<f;)g[u]=m?t:Ji(r,o[u]);return g}function gn(r,o,u){return r===r&&(u!==t&&(r=r<=u?r:u),o!==t&&(r=r>=o?r:o)),r}function Zt(r,o,u,f,g,m){var S,C=o&y,A=o&_,L=o&E;if(u&&(S=g?u(r,f,g,m):u(r)),S!==t)return S;if(!Ze(r))return r;var N=ve(r);if(N){if(S=vb(r),!C)return It(r,S)}else{var B=_t(r),V=B==F||B==ze;if(Xr(r))return yf(r,C);if(B==Yt||B==fe||V&&!g){if(S=A||V?{}:Nf(r),!C)return A?ob(r,Oy(S,r)):ab(r,zl(S,r))}else{if(!Ye[B])return g?r:{};S=mb(r,B,C)}}m||(m=new ur);var ee=m.get(r);if(ee)return ee;m.set(r,S),dd(r)?r.forEach(function(oe){S.add(Zt(oe,o,u,oe,r,m))}):ld(r)&&r.forEach(function(oe,Se){S.set(Se,Zt(oe,o,u,Se,r,m))});var ae=L?A?Li:Mi:A?$t:dt,be=N?t:ae(r);return Kt(be||r,function(oe,Se){be&&(Se=oe,oe=r[Se]),ha(S,Se,Zt(oe,o,u,Se,r,m))}),S}function Ay(r){var o=dt(r);return function(u){return Vl(u,r,o)}}function Vl(r,o,u){var f=u.length;if(r==null)return!f;for(r=Ue(r);f--;){var g=u[f],m=o[g],S=r[g];if(S===t&&!(g in r)||!m(S))return!1}return!0}function Kl(r,o,u){if(typeof r!="function")throw new Jt(c);return Ea(function(){r.apply(t,u)},o)}function ga(r,o,u,f){var g=-1,m=to,S=!0,C=r.length,A=[],L=o.length;if(!C)return A;u&&(o=Ke(o,kt(u))),f?(m=ri,S=!1):o.length>=s&&(m=ua,S=!1,o=new hn(o));e:for(;++g<C;){var N=r[g],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 m(o,B,f)||A.push(N)}return A}var zr=wf(vr),Jl=wf(yi,!0);function Py(r,o){var u=!0;return zr(r,function(f,g,m){return u=!!o(f,g,m),u}),u}function _o(r,o,u){for(var f=-1,g=r.length;++f<g;){var m=r[f],S=o(m);if(S!=null&&(C===t?S===S&&!Bt(S):u(S,C)))var C=S,A=m}return A}function Dy(r,o,u,f){var g=r.length;for(u=me(u),u<0&&(u=-u>g?0:g+u),f=f===t||f>g?g:me(f),f<0&&(f+=g),f=u>f?0:hd(f);u<f;)r[u++]=o;return r}function Xl(r,o){var u=[];return zr(r,function(f,g,m){o(f,g,m)&&u.push(f)}),u}function vt(r,o,u,f,g){var m=-1,S=r.length;for(u||(u=bb),g||(g=[]);++m<S;){var C=r[m];o>0&&u(C)?o>1?vt(C,o-1,u,f,g):Gr(g,C):f||(g[g.length]=C)}return g}var mi=Tf(),Zl=Tf(!0);function vr(r,o){return r&&mi(r,o,dt)}function yi(r,o){return r&&Zl(r,o,dt)}function Eo(r,o){return Hr(o,function(u){return Ar(r[u])})}function vn(r,o){o=Kr(o,r);for(var u=0,f=o.length;r!=null&&u<f;)r=r[yr(o[u++])];return u&&u==f?r:t}function Ql(r,o,u){var f=o(r);return ve(r)?f:Gr(f,u(r))}function Rt(r){return r==null?r===t?Ga:Ha:dn&&dn in Ue(r)?pb(r):xb(r)}function bi(r,o){return r>o}function Iy(r,o){return r!=null&&ke.call(r,o)}function Fy(r,o){return r!=null&&o in Ue(r)}function $y(r,o,u){return r>=bt(o,u)&&r<ct(o,u)}function _i(r,o,u){for(var f=u?ri:to,g=r[0].length,m=r.length,S=m,C=I(m),A=1/0,L=[];S--;){var N=r[S];S&&o&&(N=Ke(N,kt(o))),A=bt(N.length,A),C[S]=!u&&(o||g>=120&&N.length>=120)?new hn(S&&N):t}N=r[0];var B=-1,V=C[0];e:for(;++B<g&&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=m;--S;){var be=C[S];if(!(be?ua(be,ae):f(r[S],ae,u)))continue e}V&&V.push(ae),L.push(ee)}}return L}function My(r,o,u,f){return vr(r,function(g,m,S){o(f,u(g),m,S)}),f}function va(r,o,u){o=Kr(o,r),r=Wf(r,o);var f=r==null?r:r[yr(er(o))];return f==null?t:Nt(f,r,u)}function ef(r){return tt(r)&&Rt(r)==fe}function Ly(r){return tt(r)&&Rt(r)==sn}function Ny(r){return tt(r)&&Rt(r)==he}function ma(r,o,u,f,g){return r===o?!0:r==null||o==null||!tt(r)&&!tt(o)?r!==r&&o!==o:ky(r,o,u,f,ma,g)}function ky(r,o,u,f,g,m){var S=ve(r),C=ve(o),A=S?ne:_t(r),L=C?ne:_t(o);A=A==fe?Yt:A,L=L==fe?Yt:L;var N=A==Yt,B=L==Yt,V=A==L;if(V&&Xr(r)){if(!Xr(o))return!1;S=!0,N=!1}if(V&&!N)return m||(m=new ur),S||kn(r)?$f(r,o,u,f,g,m):fb(r,o,A,u,f,g,m);if(!(u&T)){var ee=N&&ke.call(r,"__wrapped__"),ae=B&&ke.call(o,"__wrapped__");if(ee||ae){var be=ee?r.value():r,oe=ae?o.value():o;return m||(m=new ur),g(be,oe,u,f,m)}}return V?(m||(m=new ur),db(r,o,u,f,g,m)):!1}function jy(r){return tt(r)&&_t(r)==qe}function Ei(r,o,u,f){var g=u.length,m=g,S=!f;if(r==null)return!m;for(r=Ue(r);g--;){var C=u[g];if(S&&C[2]?C[1]!==r[C[0]]:!(C[0]in r))return!1}for(;++g<m;){C=u[g];var A=C[0],L=r[A],N=C[1];if(S&&C[2]){if(L===t&&!(A in r))return!1}else{var B=new ur;if(f)var V=f(L,N,A,r,o,B);if(!(V===t?ma(N,L,T|x,f,B):V))return!1}}return!0}function tf(r){if(!Ze(r)||Eb(r))return!1;var o=Ar(r)?jm:sr;return o.test(yn(r))}function By(r){return tt(r)&&Rt(r)==or}function Wy(r){return tt(r)&&_t(r)==xt}function Uy(r){return tt(r)&&ko(r.length)&&!!Ve[Rt(r)]}function rf(r){return typeof r=="function"?r:r==null?Mt:typeof r=="object"?ve(r)?of(r[0],r[1]):af(r):Cd(r)}function Si(r){if(!_a(r))return qm(r);var o=[];for(var u in Ue(r))ke.call(r,u)&&u!="constructor"&&o.push(u);return o}function Hy(r){if(!Ze(r))return Cb(r);var o=_a(r),u=[];for(var f in r)f=="constructor"&&(o||!ke.call(r,f))||u.push(f);return u}function wi(r,o){return r<o}function nf(r,o){var u=-1,f=Ft(r)?I(r.length):[];return zr(r,function(g,m,S){f[++u]=o(g,m,S)}),f}function af(r){var o=ki(r);return o.length==1&&o[0][2]?jf(o[0][0],o[0][1]):function(u){return u===r||Ei(u,r,o)}}function of(r,o){return Bi(r)&&kf(o)?jf(yr(r),o):function(u){var f=Ji(u,r);return f===t&&f===o?Xi(u,r):ma(o,f,T|x)}}function So(r,o,u,f,g){r!==o&&mi(o,function(m,S){if(g||(g=new ur),Ze(m))Gy(r,o,S,u,So,f,g);else{var C=f?f(Ui(r,S),m,S+"",r,o,g):t;C===t&&(C=m),gi(r,S,C)}},$t)}function Gy(r,o,u,f,g,m,S){var C=Ui(r,u),A=Ui(o,u),L=S.get(A);if(L){gi(r,u,L);return}var N=m?m(C,A,u+"",r,o,S):t,B=N===t;if(B){var V=ve(A),ee=!V&&Xr(A),ae=!V&&!ee&&kn(A);N=A,V||ee||ae?ve(C)?N=C:nt(C)?N=It(C):ee?(B=!1,N=yf(A,!0)):ae?(B=!1,N=bf(A,!0)):N=[]:Sa(A)||bn(A)?(N=C,bn(C)?N=gd(C):(!Ze(C)||Ar(C))&&(N=Nf(A))):B=!1}B&&(S.set(A,N),g(N,A,f,m,S),S.delete(A)),gi(r,u,N)}function sf(r,o){var u=r.length;if(u)return o+=o<0?u:0,Or(o,u)?r[o]:t}function uf(r,o,u){o.length?o=Ke(o,function(m){return ve(m)?function(S){return vn(S,m.length===1?m[0]:m)}:m}):o=[Mt];var f=-1;o=Ke(o,kt(re()));var g=nf(r,function(m,S,C){var A=Ke(o,function(L){return L(m)});return{criteria:A,index:++f,value:m}});return mm(g,function(m,S){return nb(m,S,u)})}function qy(r,o){return cf(r,o,function(u,f){return Xi(r,f)})}function cf(r,o,u){for(var f=-1,g=o.length,m={};++f<g;){var S=o[f],C=vn(r,S);u(C,S)&&ya(m,Kr(S,r),C)}return m}function Yy(r){return function(o){return vn(o,r)}}function Ti(r,o,u,f){var g=f?vm:Rn,m=-1,S=o.length,C=r;for(r===o&&(o=It(o)),u&&(C=Ke(r,kt(u)));++m<S;)for(var A=0,L=o[m],N=u?u(L):L;(A=g(C,N,A,f))>-1;)C!==r&&fo.call(C,A,1),fo.call(r,A,1);return r}function lf(r,o){for(var u=r?o.length:0,f=u-1;u--;){var g=o[u];if(u==f||g!==m){var m=g;Or(g)?fo.call(r,g,1):Oi(r,g)}}return r}function Ci(r,o){return r+go(Hl()*(o-r+1))}function zy(r,o,u,f){for(var g=-1,m=ct(ho((o-r)/(u||1)),0),S=I(m);m--;)S[f?m:++g]=r,r+=u;return S}function xi(r,o){var u="";if(!r||o<1||o>rt)return u;do o%2&&(u+=r),o=go(o/2),o&&(r+=r);while(o);return u}function _e(r,o){return Hi(Bf(r,o,Mt),r+"")}function Vy(r){return Yl(jn(r))}function Ky(r,o){var u=jn(r);return Io(u,gn(o,0,u.length))}function ya(r,o,u,f){if(!Ze(r))return r;o=Kr(o,r);for(var g=-1,m=o.length,S=m-1,C=r;C!=null&&++g<m;){var A=yr(o[g]),L=u;if(A==="__proto__"||A==="constructor"||A==="prototype")return r;if(g!=S){var N=C[A];L=f?f(N,A,C):t,L===t&&(L=Ze(N)?N:Or(o[g+1])?[]:{})}ha(C,A,L),C=C[A]}return r}var ff=vo?function(r,o){return vo.set(r,o),r}:Mt,Jy=po?function(r,o){return po(r,"toString",{configurable:!0,enumerable:!1,value:Qi(o),writable:!0})}:Mt;function Xy(r){return Io(jn(r))}function Qt(r,o,u){var f=-1,g=r.length;o<0&&(o=-o>g?0:g+o),u=u>g?g:u,u<0&&(u+=g),g=o>u?0:u-o>>>0,o>>>=0;for(var m=I(g);++f<g;)m[f]=r[f+o];return m}function Zy(r,o){var u;return zr(r,function(f,g,m){return u=o(f,g,m),!u}),!!u}function wo(r,o,u){var f=0,g=r==null?f:r.length;if(typeof o=="number"&&o===o&&g<=le){for(;f<g;){var m=f+g>>>1,S=r[m];S!==null&&!Bt(S)&&(u?S<=o:S<o)?f=m+1:g=m}return g}return Ri(r,o,Mt,u)}function Ri(r,o,u,f){var g=0,m=r==null?0:r.length;if(m===0)return 0;o=u(o);for(var S=o!==o,C=o===null,A=Bt(o),L=o===t;g<m;){var N=go((g+m)/2),B=u(r[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?g=N+1:m=N}return bt(m,de)}function df(r,o){for(var u=-1,f=r.length,g=0,m=[];++u<f;){var S=r[u],C=o?o(S):S;if(!u||!cr(C,A)){var A=C;m[g++]=S===0?0:S}}return m}function pf(r){return typeof r=="number"?r:Bt(r)?W:+r}function jt(r){if(typeof r=="string")return r;if(ve(r))return Ke(r,jt)+"";if(Bt(r))return Gl?Gl.call(r):"";var o=r+"";return o=="0"&&1/r==-Ge?"-0":o}function Vr(r,o,u){var f=-1,g=to,m=r.length,S=!0,C=[],A=C;if(u)S=!1,g=ri;else if(m>=s){var L=o?null:cb(r);if(L)return no(L);S=!1,g=ua,A=new hn}else A=o?[]:C;e:for(;++f<m;){var N=r[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 g(A,B,u)||(A!==C&&A.push(B),C.push(N))}return C}function Oi(r,o){return o=Kr(o,r),r=Wf(r,o),r==null||delete r[yr(er(o))]}function hf(r,o,u,f){return ya(r,o,u(vn(r,o)),f)}function To(r,o,u,f){for(var g=r.length,m=f?g:-1;(f?m--:++m<g)&&o(r[m],m,r););return u?Qt(r,f?0:m,f?m+1:g):Qt(r,f?m+1:0,f?g:m)}function gf(r,o){var u=r;return u instanceof we&&(u=u.value()),ni(o,function(f,g){return g.func.apply(g.thisArg,Gr([f],g.args))},u)}function Ai(r,o,u){var f=r.length;if(f<2)return f?Vr(r[0]):[];for(var g=-1,m=I(f);++g<f;)for(var S=r[g],C=-1;++C<f;)C!=g&&(m[g]=ga(m[g]||S,r[C],o,u));return Vr(vt(m,1),o,u)}function vf(r,o,u){for(var f=-1,g=r.length,m=o.length,S={};++f<g;){var C=f<m?o[f]:t;u(S,r[f],C)}return S}function Pi(r){return nt(r)?r:[]}function Di(r){return typeof r=="function"?r:Mt}function Kr(r,o){return ve(r)?r:Bi(r,o)?[r]:qf(De(r))}var Qy=_e;function Jr(r,o,u){var f=r.length;return u=u===t?f:u,!o&&u>=f?r:Qt(r,o,u)}var mf=Bm||function(r){return gt.clearTimeout(r)};function yf(r,o){if(o)return r.slice();var u=r.length,f=kl?kl(u):new r.constructor(u);return r.copy(f),f}function Ii(r){var o=new r.constructor(r.byteLength);return new co(o).set(new co(r)),o}function eb(r,o){var u=o?Ii(r.buffer):r.buffer;return new r.constructor(u,r.byteOffset,r.byteLength)}function tb(r){var o=new r.constructor(r.source,zt.exec(r));return o.lastIndex=r.lastIndex,o}function rb(r){return pa?Ue(pa.call(r)):{}}function bf(r,o){var u=o?Ii(r.buffer):r.buffer;return new r.constructor(u,r.byteOffset,r.length)}function _f(r,o){if(r!==o){var u=r!==t,f=r===null,g=r===r,m=Bt(r),S=o!==t,C=o===null,A=o===o,L=Bt(o);if(!C&&!L&&!m&&r>o||m&&S&&A&&!C&&!L||f&&S&&A||!u&&A||!g)return 1;if(!f&&!m&&!L&&r<o||L&&u&&g&&!f&&!m||C&&u&&g||!S&&g||!A)return-1}return 0}function nb(r,o,u){for(var f=-1,g=r.criteria,m=o.criteria,S=g.length,C=u.length;++f<S;){var A=_f(g[f],m[f]);if(A){if(f>=C)return A;var L=u[f];return A*(L=="desc"?-1:1)}}return r.index-o.index}function Ef(r,o,u,f){for(var g=-1,m=r.length,S=u.length,C=-1,A=o.length,L=ct(m-S,0),N=I(A+L),B=!f;++C<A;)N[C]=o[C];for(;++g<S;)(B||g<m)&&(N[u[g]]=r[g]);for(;L--;)N[C++]=r[g++];return N}function Sf(r,o,u,f){for(var g=-1,m=r.length,S=-1,C=u.length,A=-1,L=o.length,N=ct(m-C,0),B=I(N+L),V=!f;++g<N;)B[g]=r[g];for(var ee=g;++A<L;)B[ee+A]=o[A];for(;++S<C;)(V||g<m)&&(B[ee+u[S]]=r[g++]);return B}function It(r,o){var u=-1,f=r.length;for(o||(o=I(f));++u<f;)o[u]=r[u];return o}function mr(r,o,u,f){var g=!u;u||(u={});for(var m=-1,S=o.length;++m<S;){var C=o[m],A=f?f(u[C],r[C],C,u,r):t;A===t&&(A=r[C]),g?Cr(u,C,A):ha(u,C,A)}return u}function ab(r,o){return mr(r,ji(r),o)}function ob(r,o){return mr(r,Mf(r),o)}function Co(r,o){return function(u,f){var g=ve(u)?lm:Ry,m=o?o():{};return g(u,r,re(f,2),m)}}function Mn(r){return _e(function(o,u){var f=-1,g=u.length,m=g>1?u[g-1]:t,S=g>2?u[2]:t;for(m=r.length>3&&typeof m=="function"?(g--,m):t,S&&Ot(u[0],u[1],S)&&(m=g<3?t:m,g=1),o=Ue(o);++f<g;){var C=u[f];C&&r(o,C,f,m)}return o})}function wf(r,o){return function(u,f){if(u==null)return u;if(!Ft(u))return r(u,f);for(var g=u.length,m=o?g:-1,S=Ue(u);(o?m--:++m<g)&&f(S[m],m,S)!==!1;);return u}}function Tf(r){return function(o,u,f){for(var g=-1,m=Ue(o),S=f(o),C=S.length;C--;){var A=S[r?C:++g];if(u(m[A],A,m)===!1)break}return o}}function sb(r,o,u){var f=o&D,g=ba(r);function m(){var S=this&&this!==gt&&this instanceof m?g:r;return S.apply(f?u:this,arguments)}return m}function Cf(r){return function(o){o=De(o);var u=On(o)?ir(o):t,f=u?u[0]:o.charAt(0),g=u?Jr(u,1).join(""):o.slice(1);return f[r]()+g}}function Ln(r){return function(o){return ni(wd(Sd(o).replace(Jv,"")),r,"")}}function ba(r){return function(){var o=arguments;switch(o.length){case 0:return new r;case 1:return new r(o[0]);case 2:return new r(o[0],o[1]);case 3:return new r(o[0],o[1],o[2]);case 4:return new r(o[0],o[1],o[2],o[3]);case 5:return new r(o[0],o[1],o[2],o[3],o[4]);case 6:return new r(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new r(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var u=$n(r.prototype),f=r.apply(u,o);return Ze(f)?f:u}}function ib(r,o,u){var f=ba(r);function g(){for(var m=arguments.length,S=I(m),C=m,A=Nn(g);C--;)S[C]=arguments[C];var L=m<3&&S[0]!==A&&S[m-1]!==A?[]:qr(S,A);if(m-=L.length,m<u)return Pf(r,o,xo,g.placeholder,t,S,L,t,t,u-m);var N=this&&this!==gt&&this instanceof g?f:r;return Nt(N,this,S)}return g}function xf(r){return function(o,u,f){var g=Ue(o);if(!Ft(o)){var m=re(u,3);o=dt(o),u=function(C){return m(g[C],C,g)}}var S=r(o,u,f);return S>-1?g[m?o[S]:S]:t}}function Rf(r){return Rr(function(o){var u=o.length,f=u,g=Xt.prototype.thru;for(r&&o.reverse();f--;){var m=o[f];if(typeof m!="function")throw new Jt(c);if(g&&!S&&Po(m)=="wrapper")var S=new Xt([],!0)}for(f=S?f:u;++f<u;){m=o[f];var C=Po(m),A=C=="wrapper"?Ni(m):t;A&&Wi(A[0])&&A[1]==(H|M|O|Y)&&!A[4].length&&A[9]==1?S=S[Po(A[0])].apply(S,A[3]):S=m.length==1&&Wi(m)?S[C]():S.thru(m)}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 xo(r,o,u,f,g,m,S,C,A,L){var N=o&H,B=o&D,V=o&P,ee=o&(M|k),ae=o&te,be=V?t:ba(r);function oe(){for(var Se=arguments.length,xe=I(Se),Wt=Se;Wt--;)xe[Wt]=arguments[Wt];if(ee)var At=Nn(oe),Ut=bm(xe,At);if(f&&(xe=Ef(xe,f,g,ee)),m&&(xe=Sf(xe,m,S,ee)),Se-=Ut,ee&&Se<L){var at=qr(xe,At);return Pf(r,o,xo,oe.placeholder,u,xe,at,C,A,L-Se)}var lr=B?u:this,Dr=V?lr[r]:r;return Se=xe.length,C?xe=Rb(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 Of(r,o){return function(u,f){return My(u,r,o(f),{})}}function Ro(r,o){return function(u,f){var g;if(u===t&&f===t)return o;if(u!==t&&(g=u),f!==t){if(g===t)return f;typeof u=="string"||typeof f=="string"?(u=jt(u),f=jt(f)):(u=pf(u),f=pf(f)),g=r(u,f)}return g}}function Fi(r){return Rr(function(o){return o=Ke(o,kt(re())),_e(function(u){var f=this;return r(o,function(g){return Nt(g,f,u)})})})}function Oo(r,o){o=o===t?" ":jt(o);var u=o.length;if(u<2)return u?xi(o,r):o;var f=xi(o,ho(r/An(o)));return On(o)?Jr(ir(f),0,r).join(""):f.slice(0,r)}function ub(r,o,u,f){var g=o&D,m=ba(r);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?m:r;++L<N;)B[L]=f[L];for(;A--;)B[L++]=arguments[++C];return Nt(V,g?u:this,B)}return S}function Af(r){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),zy(o,u,f,r)}}function Ao(r){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=tr(o),u=tr(u)),r(o,u)}}function Pf(r,o,u,f,g,m,S,C,A,L){var N=o&M,B=N?S:t,V=N?t:S,ee=N?m:t,ae=N?t:m;o|=N?O:z,o&=~(N?z:O),o&j||(o&=~(D|P));var be=[r,o,g,ee,B,ae,V,C,A,L],oe=u.apply(t,be);return Wi(r)&&Uf(oe,be),oe.placeholder=f,Hf(oe,r,o)}function $i(r){var o=ut[r];return function(u,f){if(u=tr(u),f=f==null?0:bt(me(f),292),f&&Ul(u)){var g=(De(u)+"e").split("e"),m=o(g[0]+"e"+(+g[1]+f));return g=(De(m)+"e").split("e"),+(g[0]+"e"+(+g[1]-f))}return o(u)}}var cb=In&&1/no(new In([,-0]))[1]==Ge?function(r){return new In(r)}:ru;function Df(r){return function(o){var u=_t(o);return u==qe?li(o):u==xt?xm(o):ym(o,r(o))}}function xr(r,o,u,f,g,m,S,C){var A=o&P;if(!A&&typeof r!="function")throw new Jt(c);var L=f?f.length:0;if(L||(o&=~(O|z),f=g=t),S=S===t?S:ct(me(S),0),C=C===t?C:me(C),L-=g?g.length:0,o&z){var N=f,B=g;f=g=t}var V=A?t:Ni(r),ee=[r,o,u,f,g,N,B,m,S,C];if(V&&Tb(ee,V),r=ee[0],o=ee[1],u=ee[2],f=ee[3],g=ee[4],C=ee[9]=ee[9]===t?A?0:r.length:ct(ee[9]-L,0),!C&&o&(M|k)&&(o&=~(M|k)),!o||o==D)var ae=sb(r,o,u);else o==M||o==k?ae=ib(r,o,C):(o==O||o==(D|O))&&!g.length?ae=ub(r,o,u,f):ae=xo.apply(t,ee);var be=V?ff:Uf;return Hf(be(ae,ee),r,o)}function If(r,o,u,f){return r===t||cr(r,Dn[u])&&!ke.call(f,u)?o:r}function Ff(r,o,u,f,g,m){return Ze(r)&&Ze(o)&&(m.set(o,r),So(r,o,t,Ff,m),m.delete(o)),r}function lb(r){return Sa(r)?t:r}function $f(r,o,u,f,g,m){var S=u&T,C=r.length,A=o.length;if(C!=A&&!(S&&A>C))return!1;var L=m.get(r),N=m.get(o);if(L&&N)return L==o&&N==r;var B=-1,V=!0,ee=u&x?new hn:t;for(m.set(r,o),m.set(o,r);++B<C;){var ae=r[B],be=o[B];if(f)var oe=S?f(be,ae,B,o,r,m):f(ae,be,B,r,o,m);if(oe!==t){if(oe)continue;V=!1;break}if(ee){if(!ai(o,function(Se,xe){if(!ua(ee,xe)&&(ae===Se||g(ae,Se,u,f,m)))return ee.push(xe)})){V=!1;break}}else if(!(ae===be||g(ae,be,u,f,m))){V=!1;break}}return m.delete(r),m.delete(o),V}function fb(r,o,u,f,g,m,S){switch(u){case Wr:if(r.byteLength!=o.byteLength||r.byteOffset!=o.byteOffset)return!1;r=r.buffer,o=o.buffer;case sn:return!(r.byteLength!=o.byteLength||!m(new co(r),new co(o)));case ue:case he:case yt:return cr(+r,+o);case K:return r.name==o.name&&r.message==o.message;case or:case an:return r==o+"";case qe:var C=li;case xt:var A=f&T;if(C||(C=no),r.size!=o.size&&!A)return!1;var L=S.get(r);if(L)return L==o;f|=x,S.set(r,o);var N=$f(C(r),C(o),f,g,m,S);return S.delete(r),N;case on:if(pa)return pa.call(r)==pa.call(o)}return!1}function db(r,o,u,f,g,m){var S=u&T,C=Mi(r),A=C.length,L=Mi(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=m.get(r),ae=m.get(o);if(ee&&ae)return ee==o&&ae==r;var be=!0;m.set(r,o),m.set(o,r);for(var oe=S;++B<A;){V=C[B];var Se=r[V],xe=o[V];if(f)var Wt=S?f(xe,Se,V,o,r,m):f(Se,xe,V,r,o,m);if(!(Wt===t?Se===xe||g(Se,xe,u,f,m):Wt)){be=!1;break}oe||(oe=V=="constructor")}if(be&&!oe){var At=r.constructor,Ut=o.constructor;At!=Ut&&"constructor"in r&&"constructor"in o&&!(typeof At=="function"&&At instanceof At&&typeof Ut=="function"&&Ut instanceof Ut)&&(be=!1)}return m.delete(r),m.delete(o),be}function Rr(r){return Hi(Bf(r,t,Kf),r+"")}function Mi(r){return Ql(r,dt,ji)}function Li(r){return Ql(r,$t,Mf)}var Ni=vo?function(r){return vo.get(r)}:ru;function Po(r){for(var o=r.name+"",u=Fn[o],f=ke.call(Fn,o)?u.length:0;f--;){var g=u[f],m=g.func;if(m==null||m==r)return g.name}return o}function Nn(r){var o=ke.call(v,"placeholder")?v:r;return o.placeholder}function re(){var r=v.iteratee||eu;return r=r===eu?rf:r,arguments.length?r(arguments[0],arguments[1]):r}function Do(r,o){var u=r.__data__;return _b(o)?u[typeof o=="string"?"string":"hash"]:u.map}function ki(r){for(var o=dt(r),u=o.length;u--;){var f=o[u],g=r[f];o[u]=[f,g,kf(g)]}return o}function mn(r,o){var u=wm(r,o);return tf(u)?u:t}function pb(r){var o=ke.call(r,dn),u=r[dn];try{r[dn]=t;var f=!0}catch{}var g=io.call(r);return f&&(o?r[dn]=u:delete r[dn]),g}var ji=di?function(r){return r==null?[]:(r=Ue(r),Hr(di(r),function(o){return Bl.call(r,o)}))}:nu,Mf=di?function(r){for(var o=[];r;)Gr(o,ji(r)),r=lo(r);return o}:nu,_t=Rt;(pi&&_t(new pi(new ArrayBuffer(1)))!=Wr||la&&_t(new la)!=qe||hi&&_t(hi.resolve())!=nn||In&&_t(new In)!=xt||fa&&_t(new fa)!=Sr)&&(_t=function(r){var o=Rt(r),u=o==Yt?r.constructor:t,f=u?yn(u):"";if(f)switch(f){case Km:return Wr;case Jm:return qe;case Xm:return nn;case Zm:return xt;case Qm:return Sr}return o});function hb(r,o,u){for(var f=-1,g=u.length;++f<g;){var m=u[f],S=m.size;switch(m.type){case"drop":r+=S;break;case"dropRight":o-=S;break;case"take":o=bt(o,r+S);break;case"takeRight":r=ct(r,o-S);break}}return{start:r,end:o}}function gb(r){var o=r.match(Ne);return o?o[1].split(Ce):[]}function Lf(r,o,u){o=Kr(o,r);for(var f=-1,g=o.length,m=!1;++f<g;){var S=yr(o[f]);if(!(m=r!=null&&u(r,S)))break;r=r[S]}return m||++f!=g?m:(g=r==null?0:r.length,!!g&&ko(g)&&Or(S,g)&&(ve(r)||bn(r)))}function vb(r){var o=r.length,u=new r.constructor(o);return o&&typeof r[0]=="string"&&ke.call(r,"index")&&(u.index=r.index,u.input=r.input),u}function Nf(r){return typeof r.constructor=="function"&&!_a(r)?$n(lo(r)):{}}function mb(r,o,u){var f=r.constructor;switch(o){case sn:return Ii(r);case ue:case he:return new f(+r);case Wr:return eb(r,u);case na:case aa:case oa:case sa:case un:case Cn:case gr:case cn:case ln:return bf(r,u);case qe:return new f;case yt:case an:return new f(r);case or:return tb(r);case xt:return new f;case on:return rb(r)}}function yb(r,o){var u=o.length;if(!u)return r;var f=u-1;return o[f]=(u>1?"& ":"")+o[f],o=o.join(u>2?", ":" "),r.replace(Le,`{
|
|
16
16
|
/* [wrapped with `+o+`] */
|
|
17
|
-
`)}function yb(r){return ve(r)||bn(r)||!!(Bl&&r&&r[Bl])}function Or(r,o){var u=typeof r;return o=o??rt,!!o&&(u=="number"||u!="symbol"&&Pv.test(r))&&r>-1&&r%1==0&&r<o}function Ot(r,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],r):!1}function Bi(r,o){if(ve(r))return!1;var u=typeof r;return u=="number"||u=="symbol"||u=="boolean"||r==null||Bt(r)?!0:zs.test(r)||!Ys.test(r)||o!=null&&r in Ue(o)}function bb(r){var o=typeof r;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?r!=="__proto__":r===null}function Wi(r){var o=Po(r),u=v[o];if(typeof u!="function"||!(o in we.prototype))return!1;if(r===u)return!0;var f=Ni(u);return!!f&&r===f[0]}function _b(r){return!!Ll&&Ll in r}var Eb=oo?Ar:au;function _a(r){var o=r&&r.constructor,u=typeof o=="function"&&o.prototype||Dn;return r===u}function Nf(r){return r===r&&!Ze(r)}function kf(r,o){return function(u){return u==null?!1:u[r]===o&&(o!==t||r in Ue(u))}}function Sb(r){var o=Lo(r,function(f){return u.size===p&&u.clear(),f}),u=o.cache;return o}function wb(r,o){var u=r[1],f=o[1],g=u|f,m=g<(D|P|H),S=f==H&&u==M||f==H&&u==Y&&r[7].length<=o[8]||f==(H|Y)&&o[7].length<=o[8]&&u==M;if(!(m||S))return r;f&D&&(r[2]=o[2],g|=u&D?0:j);var C=o[3];if(C){var A=r[3];r[3]=A?_f(A,C,o[4]):C,r[4]=A?qr(r[3],h):o[4]}return C=o[5],C&&(A=r[5],r[5]=A?Ef(A,C,o[6]):C,r[6]=A?qr(r[5],h):o[6]),C=o[7],C&&(r[7]=C),f&H&&(r[8]=r[8]==null?o[8]:bt(r[8],o[8])),r[9]==null&&(r[9]=o[9]),r[0]=o[0],r[1]=g,r}function Tb(r){var o=[];if(r!=null)for(var u in Ue(r))o.push(u);return o}function Cb(r){return io.call(r)}function jf(r,o,u){return o=ct(o===t?r.length-1:o,0),function(){for(var f=arguments,g=-1,m=ct(f.length-o,0),S=I(m);++g<m;)S[g]=f[o+g];g=-1;for(var C=I(o+1);++g<o;)C[g]=f[g];return C[o]=u(S),Nt(r,this,C)}}function Bf(r,o){return o.length<2?r:vn(r,Qt(o,0,-1))}function xb(r,o){for(var u=r.length,f=bt(o.length,u),g=It(r);f--;){var m=o[f];r[f]=Or(m,u)?g[m]:t}return r}function Ui(r,o){if(!(o==="constructor"&&typeof r[o]=="function")&&o!="__proto__")return r[o]}var Wf=Hf(lf),Ea=Wm||function(r,o){return gt.setTimeout(r,o)},Hi=Hf(Ky);function Uf(r,o,u){var f=o+"";return Hi(r,mb(f,Rb(hb(f),u)))}function Hf(r){var o=0,u=0;return function(){var f=qm(),g=X-(f-u);if(u=f,g>0){if(++o>=st)return arguments[0]}else o=0;return r.apply(t,arguments)}}function Io(r,o){var u=-1,f=r.length,g=f-1;for(o=o===t?f:o;++u<o;){var m=Ci(u,g),S=r[m];r[m]=r[u],r[u]=S}return r.length=o,r}var Gf=Sb(function(r){var o=[];return r.charCodeAt(0)===46&&o.push(""),r.replace(Vs,function(u,f,g,m){o.push(g?m.replace(Xe,"$1"):f||u)}),o});function yr(r){if(typeof r=="string"||Bt(r))return r;var o=r+"";return o=="0"&&1/r==-Ge?"-0":o}function yn(r){if(r!=null){try{return so.call(r)}catch{}try{return r+""}catch{}}return""}function Rb(r,o){return Kt(se,function(u){var f="_."+u[0];o&u[1]&&!to(r,f)&&r.push(f)}),r.sort()}function qf(r){if(r instanceof we)return r.clone();var o=new Xt(r.__wrapped__,r.__chain__);return o.__actions__=It(r.__actions__),o.__index__=r.__index__,o.__values__=r.__values__,o}function Ob(r,o,u){(u?Ot(r,o,u):o===t)?o=1:o=ct(me(o),0);var f=r==null?0:r.length;if(!f||o<1)return[];for(var g=0,m=0,S=I(ho(f/o));g<f;)S[m++]=Qt(r,g,g+=o);return S}function Ab(r){for(var o=-1,u=r==null?0:r.length,f=0,g=[];++o<u;){var m=r[o];m&&(g[f++]=m)}return g}function Pb(){var r=arguments.length;if(!r)return[];for(var o=I(r-1),u=arguments[0],f=r;f--;)o[f-1]=arguments[f];return Gr(ve(u)?It(u):[u],vt(o,1))}var Db=_e(function(r,o){return nt(r)?ga(r,vt(o,1,nt,!0)):[]}),Ib=_e(function(r,o){var u=er(o);return nt(u)&&(u=t),nt(r)?ga(r,vt(o,1,nt,!0),re(u,2)):[]}),Fb=_e(function(r,o){var u=er(o);return nt(u)&&(u=t),nt(r)?ga(r,vt(o,1,nt,!0),t,u):[]});function $b(r,o,u){var f=r==null?0:r.length;return f?(o=u||o===t?1:me(o),Qt(r,o<0?0:o,f)):[]}function Mb(r,o,u){var f=r==null?0:r.length;return f?(o=u||o===t?1:me(o),o=f-o,Qt(r,0,o<0?0:o)):[]}function Lb(r,o){return r&&r.length?To(r,re(o,3),!0,!0):[]}function Nb(r,o){return r&&r.length?To(r,re(o,3),!0):[]}function kb(r,o,u,f){var g=r==null?0:r.length;return g?(u&&typeof u!="number"&&Ot(r,o,u)&&(u=0,f=g),Py(r,o,u,f)):[]}function Yf(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var g=u==null?0:me(u);return g<0&&(g=ct(f+g,0)),ro(r,re(o,3),g)}function zf(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var g=f-1;return u!==t&&(g=me(u),g=u<0?ct(f+g,0):bt(g,f-1)),ro(r,re(o,3),g,!0)}function Vf(r){var o=r==null?0:r.length;return o?vt(r,1):[]}function jb(r){var o=r==null?0:r.length;return o?vt(r,Ge):[]}function Bb(r,o){var u=r==null?0:r.length;return u?(o=o===t?1:me(o),vt(r,o)):[]}function Wb(r){for(var o=-1,u=r==null?0:r.length,f={};++o<u;){var g=r[o];f[g[0]]=g[1]}return f}function Kf(r){return r&&r.length?r[0]:t}function Ub(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var g=u==null?0:me(u);return g<0&&(g=ct(f+g,0)),Rn(r,o,g)}function Hb(r){var o=r==null?0:r.length;return o?Qt(r,0,-1):[]}var Gb=_e(function(r){var o=Ke(r,Pi);return o.length&&o[0]===r[0]?_i(o):[]}),qb=_e(function(r){var o=er(r),u=Ke(r,Pi);return o===er(u)?o=t:u.pop(),u.length&&u[0]===r[0]?_i(u,re(o,2)):[]}),Yb=_e(function(r){var o=er(r),u=Ke(r,Pi);return o=typeof o=="function"?o:t,o&&u.pop(),u.length&&u[0]===r[0]?_i(u,t,o):[]});function zb(r,o){return r==null?"":Hm.call(r,o)}function er(r){var o=r==null?0:r.length;return o?r[o-1]:t}function Vb(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var g=f;return u!==t&&(g=me(u),g=g<0?ct(f+g,0):bt(g,f-1)),o===o?Rm(r,o,g):ro(r,Ol,g,!0)}function Kb(r,o){return r&&r.length?of(r,me(o)):t}var Jb=_e(Jf);function Jf(r,o){return r&&r.length&&o&&o.length?Ti(r,o):r}function Xb(r,o,u){return r&&r.length&&o&&o.length?Ti(r,o,re(u,2)):r}function Zb(r,o,u){return r&&r.length&&o&&o.length?Ti(r,o,t,u):r}var Qb=Rr(function(r,o){var u=r==null?0:r.length,f=vi(r,o);return cf(r,Ke(o,function(g){return Or(g,u)?+g:g}).sort(bf)),f});function e0(r,o){var u=[];if(!(r&&r.length))return u;var f=-1,g=[],m=r.length;for(o=re(o,3);++f<m;){var S=r[f];o(S,f,r)&&(u.push(S),g.push(f))}return cf(r,g),u}function Gi(r){return r==null?r:zm.call(r)}function t0(r,o,u){var f=r==null?0:r.length;return f?(u&&typeof u!="number"&&Ot(r,o,u)?(o=0,u=f):(o=o==null?0:me(o),u=u===t?f:me(u)),Qt(r,o,u)):[]}function r0(r,o){return wo(r,o)}function n0(r,o,u){return Ri(r,o,re(u,2))}function a0(r,o){var u=r==null?0:r.length;if(u){var f=wo(r,o);if(f<u&&cr(r[f],o))return f}return-1}function o0(r,o){return wo(r,o,!0)}function s0(r,o,u){return Ri(r,o,re(u,2),!0)}function i0(r,o){var u=r==null?0:r.length;if(u){var f=wo(r,o,!0)-1;if(cr(r[f],o))return f}return-1}function u0(r){return r&&r.length?ff(r):[]}function c0(r,o){return r&&r.length?ff(r,re(o,2)):[]}function l0(r){var o=r==null?0:r.length;return o?Qt(r,1,o):[]}function f0(r,o,u){return r&&r.length?(o=u||o===t?1:me(o),Qt(r,0,o<0?0:o)):[]}function d0(r,o,u){var f=r==null?0:r.length;return f?(o=u||o===t?1:me(o),o=f-o,Qt(r,o<0?0:o,f)):[]}function p0(r,o){return r&&r.length?To(r,re(o,3),!1,!0):[]}function h0(r,o){return r&&r.length?To(r,re(o,3)):[]}var g0=_e(function(r){return Vr(vt(r,1,nt,!0))}),v0=_e(function(r){var o=er(r);return nt(o)&&(o=t),Vr(vt(r,1,nt,!0),re(o,2))}),m0=_e(function(r){var o=er(r);return o=typeof o=="function"?o:t,Vr(vt(r,1,nt,!0),t,o)});function y0(r){return r&&r.length?Vr(r):[]}function b0(r,o){return r&&r.length?Vr(r,re(o,2)):[]}function _0(r,o){return o=typeof o=="function"?o:t,r&&r.length?Vr(r,t,o):[]}function qi(r){if(!(r&&r.length))return[];var o=0;return r=Hr(r,function(u){if(nt(u))return o=ct(u.length,o),!0}),ui(o,function(u){return Ke(r,oi(u))})}function Xf(r,o){if(!(r&&r.length))return[];var u=qi(r);return o==null?u:Ke(u,function(f){return Nt(o,t,f)})}var E0=_e(function(r,o){return nt(r)?ga(r,o):[]}),S0=_e(function(r){return Ai(Hr(r,nt))}),w0=_e(function(r){var o=er(r);return nt(o)&&(o=t),Ai(Hr(r,nt),re(o,2))}),T0=_e(function(r){var o=er(r);return o=typeof o=="function"?o:t,Ai(Hr(r,nt),t,o)}),C0=_e(qi);function x0(r,o){return gf(r||[],o||[],ha)}function R0(r,o){return gf(r||[],o||[],ya)}var O0=_e(function(r){var o=r.length,u=o>1?r[o-1]:t;return u=typeof u=="function"?(r.pop(),u):t,Xf(r,u)});function Zf(r){var o=v(r);return o.__chain__=!0,o}function A0(r,o){return o(r),r}function Fo(r,o){return o(r)}var P0=Rr(function(r){var o=r.length,u=o?r[0]:0,f=this.__wrapped__,g=function(m){return vi(m,r)};return o>1||this.__actions__.length||!(f instanceof we)||!Or(u)?this.thru(g):(f=f.slice(u,+u+(o?1:0)),f.__actions__.push({func:Fo,args:[g],thisArg:t}),new Xt(f,this.__chain__).thru(function(m){return o&&!m.length&&m.push(t),m}))});function D0(){return Zf(this)}function I0(){return new Xt(this.value(),this.__chain__)}function F0(){this.__values__===t&&(this.__values__=dd(this.value()));var r=this.__index__>=this.__values__.length,o=r?t:this.__values__[this.__index__++];return{done:r,value:o}}function $0(){return this}function M0(r){for(var o,u=this;u instanceof yo;){var f=qf(u);f.__index__=0,f.__values__=t,o?g.__wrapped__=f:o=f;var g=f;u=u.__wrapped__}return g.__wrapped__=r,o}function L0(){var r=this.__wrapped__;if(r instanceof we){var o=r;return this.__actions__.length&&(o=new we(this)),o=o.reverse(),o.__actions__.push({func:Fo,args:[Gi],thisArg:t}),new Xt(o,this.__chain__)}return this.thru(Gi)}function N0(){return hf(this.__wrapped__,this.__actions__)}var k0=Co(function(r,o,u){ke.call(r,u)?++r[u]:Cr(r,u,1)});function j0(r,o,u){var f=ve(r)?xl:Ay;return u&&Ot(r,o,u)&&(o=t),f(r,re(o,3))}function B0(r,o){var u=ve(r)?Hr:Jl;return u(r,re(o,3))}var W0=Cf(Yf),U0=Cf(zf);function H0(r,o){return vt($o(r,o),1)}function G0(r,o){return vt($o(r,o),Ge)}function q0(r,o,u){return u=u===t?1:me(u),vt($o(r,o),u)}function Qf(r,o){var u=ve(r)?Kt:zr;return u(r,re(o,3))}function ed(r,o){var u=ve(r)?lm:Kl;return u(r,re(o,3))}var Y0=Co(function(r,o,u){ke.call(r,u)?r[u].push(o):Cr(r,u,[o])});function z0(r,o,u,f){r=Ft(r)?r:jn(r),u=u&&!f?me(u):0;var g=r.length;return u<0&&(u=ct(g+u,0)),jo(r)?u<=g&&r.indexOf(o,u)>-1:!!g&&Rn(r,o,u)>-1}var V0=_e(function(r,o,u){var f=-1,g=typeof o=="function",m=Ft(r)?I(r.length):[];return zr(r,function(S){m[++f]=g?Nt(o,S,u):va(S,o,u)}),m}),K0=Co(function(r,o,u){Cr(r,u,o)});function $o(r,o){var u=ve(r)?Ke:rf;return u(r,re(o,3))}function J0(r,o,u,f){return r==null?[]:(ve(o)||(o=o==null?[]:[o]),u=f?t:u,ve(u)||(u=u==null?[]:[u]),sf(r,o,u))}var X0=Co(function(r,o,u){r[u?0:1].push(o)},function(){return[[],[]]});function Z0(r,o,u){var f=ve(r)?ni:Pl,g=arguments.length<3;return f(r,re(o,4),u,g,zr)}function Q0(r,o,u){var f=ve(r)?fm:Pl,g=arguments.length<3;return f(r,re(o,4),u,g,Kl)}function e_(r,o){var u=ve(r)?Hr:Jl;return u(r,No(re(o,3)))}function t_(r){var o=ve(r)?ql:zy;return o(r)}function r_(r,o,u){(u?Ot(r,o,u):o===t)?o=1:o=me(o);var f=ve(r)?Ty:Vy;return f(r,o)}function n_(r){var o=ve(r)?Cy:Jy;return o(r)}function a_(r){if(r==null)return 0;if(Ft(r))return jo(r)?An(r):r.length;var o=_t(r);return o==qe||o==xt?r.size:Si(r).length}function o_(r,o,u){var f=ve(r)?ai:Xy;return u&&Ot(r,o,u)&&(o=t),f(r,re(o,3))}var s_=_e(function(r,o){if(r==null)return[];var u=o.length;return u>1&&Ot(r,o[0],o[1])?o=[]:u>2&&Ot(o[0],o[1],o[2])&&(o=[o[0]]),sf(r,vt(o,1),[])}),Mo=Bm||function(){return gt.Date.now()};function i_(r,o){if(typeof o!="function")throw new Jt(c);return r=me(r),function(){if(--r<1)return o.apply(this,arguments)}}function td(r,o,u){return o=u?t:o,o=r&&o==null?r.length:o,xr(r,H,t,t,t,t,o)}function rd(r,o){var u;if(typeof o!="function")throw new Jt(c);return r=me(r),function(){return--r>0&&(u=o.apply(this,arguments)),r<=1&&(o=t),u}}var Yi=_e(function(r,o,u){var f=D;if(u.length){var g=qr(u,Nn(Yi));f|=O}return xr(r,f,o,u,g)}),nd=_e(function(r,o,u){var f=D|P;if(u.length){var g=qr(u,Nn(nd));f|=O}return xr(o,f,r,u,g)});function ad(r,o,u){o=u?t:o;var f=xr(r,M,t,t,t,t,t,o);return f.placeholder=ad.placeholder,f}function od(r,o,u){o=u?t:o;var f=xr(r,k,t,t,t,t,t,o);return f.placeholder=od.placeholder,f}function sd(r,o,u){var f,g,m,S,C,A,L=0,N=!1,B=!1,V=!0;if(typeof r!="function")throw new Jt(c);o=tr(o)||0,Ze(u)&&(N=!!u.leading,B="maxWait"in u,m=B?ct(tr(u.maxWait)||0,o):m,V="trailing"in u?!!u.trailing:V);function ee(at){var lr=f,Dr=g;return f=g=t,L=at,S=r.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,Cd=o-lr;return B?bt(Cd,m-Dr):Cd}function oe(at){var lr=at-A,Dr=at-L;return A===t||lr>=o||lr<0||B&&Dr>=m}function Se(){var at=Mo();if(oe(at))return xe(at);C=Ea(Se,be(at))}function xe(at){return C=t,V&&f?ee(at):(f=g=t,S)}function Wt(){C!==t&&vf(C),L=0,f=A=g=C=t}function At(){return C===t?S:xe(Mo())}function Ut(){var at=Mo(),lr=oe(at);if(f=arguments,g=this,A=at,lr){if(C===t)return ae(A);if(B)return vf(C),C=Ea(Se,o),ee(A)}return C===t&&(C=Ea(Se,o)),S}return Ut.cancel=Wt,Ut.flush=At,Ut}var u_=_e(function(r,o){return Vl(r,1,o)}),c_=_e(function(r,o,u){return Vl(r,tr(o)||0,u)});function l_(r){return xr(r,te)}function Lo(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new Jt(c);var u=function(){var f=arguments,g=o?o.apply(this,f):f[0],m=u.cache;if(m.has(g))return m.get(g);var S=r.apply(this,f);return u.cache=m.set(g,S)||m,S};return u.cache=new(Lo.Cache||Tr),u}Lo.Cache=Tr;function No(r){if(typeof r!="function")throw new Jt(c);return function(){var o=arguments;switch(o.length){case 0:return!r.call(this);case 1:return!r.call(this,o[0]);case 2:return!r.call(this,o[0],o[1]);case 3:return!r.call(this,o[0],o[1],o[2])}return!r.apply(this,o)}}function f_(r){return rd(2,r)}var d_=Zy(function(r,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 g=-1,m=bt(f.length,u);++g<m;)f[g]=o[g].call(this,f[g]);return Nt(r,this,f)})}),zi=_e(function(r,o){var u=qr(o,Nn(zi));return xr(r,O,t,o,u)}),id=_e(function(r,o){var u=qr(o,Nn(id));return xr(r,z,t,o,u)}),p_=Rr(function(r,o){return xr(r,Y,t,t,t,o)});function h_(r,o){if(typeof r!="function")throw new Jt(c);return o=o===t?o:me(o),_e(r,o)}function g_(r,o){if(typeof r!="function")throw new Jt(c);return o=o==null?0:ct(me(o),0),_e(function(u){var f=u[o],g=Jr(u,0,o);return f&&Gr(g,f),Nt(r,this,g)})}function v_(r,o,u){var f=!0,g=!0;if(typeof r!="function")throw new Jt(c);return Ze(u)&&(f="leading"in u?!!u.leading:f,g="trailing"in u?!!u.trailing:g),sd(r,o,{leading:f,maxWait:o,trailing:g})}function m_(r){return td(r,1)}function y_(r,o){return zi(Di(o),r)}function b_(){if(!arguments.length)return[];var r=arguments[0];return ve(r)?r:[r]}function __(r){return Zt(r,E)}function E_(r,o){return o=typeof o=="function"?o:t,Zt(r,E,o)}function S_(r){return Zt(r,y|E)}function w_(r,o){return o=typeof o=="function"?o:t,Zt(r,y|E,o)}function T_(r,o){return o==null||zl(r,o,dt(o))}function cr(r,o){return r===o||r!==r&&o!==o}var C_=Ao(bi),x_=Ao(function(r,o){return r>=o}),bn=Ql(function(){return arguments}())?Ql:function(r){return tt(r)&&ke.call(r,"callee")&&!jl.call(r,"callee")},ve=I.isArray,R_=_l?kt(_l):My;function Ft(r){return r!=null&&ko(r.length)&&!Ar(r)}function nt(r){return tt(r)&&Ft(r)}function O_(r){return r===!0||r===!1||tt(r)&&Rt(r)==ue}var Xr=Um||au,A_=El?kt(El):Ly;function P_(r){return tt(r)&&r.nodeType===1&&!Sa(r)}function D_(r){if(r==null)return!0;if(Ft(r)&&(ve(r)||typeof r=="string"||typeof r.splice=="function"||Xr(r)||kn(r)||bn(r)))return!r.length;var o=_t(r);if(o==qe||o==xt)return!r.size;if(_a(r))return!Si(r).length;for(var u in r)if(ke.call(r,u))return!1;return!0}function I_(r,o){return ma(r,o)}function F_(r,o,u){u=typeof u=="function"?u:t;var f=u?u(r,o):t;return f===t?ma(r,o,t,u):!!f}function Vi(r){if(!tt(r))return!1;var o=Rt(r);return o==K||o==ge||typeof r.message=="string"&&typeof r.name=="string"&&!Sa(r)}function $_(r){return typeof r=="number"&&Wl(r)}function Ar(r){if(!Ze(r))return!1;var o=Rt(r);return o==F||o==ze||o==ce||o==Ws}function ud(r){return typeof r=="number"&&r==me(r)}function ko(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=rt}function Ze(r){var o=typeof r;return r!=null&&(o=="object"||o=="function")}function tt(r){return r!=null&&typeof r=="object"}var cd=Sl?kt(Sl):ky;function M_(r,o){return r===o||Ei(r,o,ki(o))}function L_(r,o,u){return u=typeof u=="function"?u:t,Ei(r,o,ki(o),u)}function N_(r){return ld(r)&&r!=+r}function k_(r){if(Eb(r))throw new pe(i);return ef(r)}function j_(r){return r===null}function B_(r){return r==null}function ld(r){return typeof r=="number"||tt(r)&&Rt(r)==yt}function Sa(r){if(!tt(r)||Rt(r)!=Yt)return!1;var o=lo(r);if(o===null)return!0;var u=ke.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&so.call(u)==Lm}var Ki=wl?kt(wl):jy;function W_(r){return ud(r)&&r>=-rt&&r<=rt}var fd=Tl?kt(Tl):By;function jo(r){return typeof r=="string"||!ve(r)&&tt(r)&&Rt(r)==an}function Bt(r){return typeof r=="symbol"||tt(r)&&Rt(r)==on}var kn=Cl?kt(Cl):Wy;function U_(r){return r===t}function H_(r){return tt(r)&&_t(r)==Sr}function G_(r){return tt(r)&&Rt(r)==Us}var q_=Ao(wi),Y_=Ao(function(r,o){return r<=o});function dd(r){if(!r)return[];if(Ft(r))return jo(r)?ir(r):It(r);if(ca&&r[ca])return Tm(r[ca]());var o=_t(r),u=o==qe?li:o==xt?no:jn;return u(r)}function Pr(r){if(!r)return r===0?r:0;if(r=tr(r),r===Ge||r===-Ge){var o=r<0?-1:1;return o*qt}return r===r?r:0}function me(r){var o=Pr(r),u=o%1;return o===o?u?o-u:o:0}function pd(r){return r?gn(me(r),0,q):0}function tr(r){if(typeof r=="number")return r;if(Bt(r))return W;if(Ze(r)){var o=typeof r.valueOf=="function"?r.valueOf():r;r=Ze(o)?o+"":o}if(typeof r!="string")return r===0?r:+r;r=Dl(r);var u=Xa.test(r);return u||Av.test(r)?im(r.slice(2),u?2:8):Ur.test(r)?W:+r}function hd(r){return mr(r,$t(r))}function z_(r){return r?gn(me(r),-rt,rt):r===0?r:0}function De(r){return r==null?"":jt(r)}var V_=Mn(function(r,o){if(_a(o)||Ft(o)){mr(o,dt(o),r);return}for(var u in o)ke.call(o,u)&&ha(r,u,o[u])}),gd=Mn(function(r,o){mr(o,$t(o),r)}),Bo=Mn(function(r,o,u,f){mr(o,$t(o),r,f)}),K_=Mn(function(r,o,u,f){mr(o,dt(o),r,f)}),J_=Rr(vi);function X_(r,o){var u=$n(r);return o==null?u:Yl(u,o)}var Z_=_e(function(r,o){r=Ue(r);var u=-1,f=o.length,g=f>2?o[2]:t;for(g&&Ot(o[0],o[1],g)&&(f=1);++u<f;)for(var m=o[u],S=$t(m),C=-1,A=S.length;++C<A;){var L=S[C],N=r[L];(N===t||cr(N,Dn[L])&&!ke.call(r,L))&&(r[L]=m[L])}return r}),Q_=_e(function(r){return r.push(t,If),Nt(vd,t,r)});function eE(r,o){return Rl(r,re(o,3),vr)}function tE(r,o){return Rl(r,re(o,3),yi)}function rE(r,o){return r==null?r:mi(r,re(o,3),$t)}function nE(r,o){return r==null?r:Xl(r,re(o,3),$t)}function aE(r,o){return r&&vr(r,re(o,3))}function oE(r,o){return r&&yi(r,re(o,3))}function sE(r){return r==null?[]:Eo(r,dt(r))}function iE(r){return r==null?[]:Eo(r,$t(r))}function Ji(r,o,u){var f=r==null?t:vn(r,o);return f===t?u:f}function uE(r,o){return r!=null&&Mf(r,o,Dy)}function Xi(r,o){return r!=null&&Mf(r,o,Iy)}var cE=Rf(function(r,o,u){o!=null&&typeof o.toString!="function"&&(o=io.call(o)),r[o]=u},Qi(Mt)),lE=Rf(function(r,o,u){o!=null&&typeof o.toString!="function"&&(o=io.call(o)),ke.call(r,o)?r[o].push(u):r[o]=[u]},re),fE=_e(va);function dt(r){return Ft(r)?Gl(r):Si(r)}function $t(r){return Ft(r)?Gl(r,!0):Uy(r)}function dE(r,o){var u={};return o=re(o,3),vr(r,function(f,g,m){Cr(u,o(f,g,m),f)}),u}function pE(r,o){var u={};return o=re(o,3),vr(r,function(f,g,m){Cr(u,g,o(f,g,m))}),u}var hE=Mn(function(r,o,u){So(r,o,u)}),vd=Mn(function(r,o,u,f){So(r,o,u,f)}),gE=Rr(function(r,o){var u={};if(r==null)return u;var f=!1;o=Ke(o,function(m){return m=Kr(m,r),f||(f=m.length>1),m}),mr(r,Li(r),u),f&&(u=Zt(u,y|_|E,cb));for(var g=o.length;g--;)Oi(u,o[g]);return u});function vE(r,o){return md(r,No(re(o)))}var mE=Rr(function(r,o){return r==null?{}:Gy(r,o)});function md(r,o){if(r==null)return{};var u=Ke(Li(r),function(f){return[f]});return o=re(o),uf(r,u,function(f,g){return o(f,g[0])})}function yE(r,o,u){o=Kr(o,r);var f=-1,g=o.length;for(g||(g=1,r=t);++f<g;){var m=r==null?t:r[yr(o[f])];m===t&&(f=g,m=u),r=Ar(m)?m.call(r):m}return r}function bE(r,o,u){return r==null?r:ya(r,o,u)}function _E(r,o,u,f){return f=typeof f=="function"?f:t,r==null?r:ya(r,o,u,f)}var yd=Pf(dt),bd=Pf($t);function EE(r,o,u){var f=ve(r),g=f||Xr(r)||kn(r);if(o=re(o,4),u==null){var m=r&&r.constructor;g?u=f?new m:[]:Ze(r)?u=Ar(m)?$n(lo(r)):{}:u={}}return(g?Kt:vr)(r,function(S,C,A){return o(u,S,C,A)}),u}function SE(r,o){return r==null?!0:Oi(r,o)}function wE(r,o,u){return r==null?r:pf(r,o,Di(u))}function TE(r,o,u,f){return f=typeof f=="function"?f:t,r==null?r:pf(r,o,Di(u),f)}function jn(r){return r==null?[]:ci(r,dt(r))}function CE(r){return r==null?[]:ci(r,$t(r))}function xE(r,o,u){return u===t&&(u=o,o=t),u!==t&&(u=tr(u),u=u===u?u:0),o!==t&&(o=tr(o),o=o===o?o:0),gn(tr(r),o,u)}function RE(r,o,u){return o=Pr(o),u===t?(u=o,o=0):u=Pr(u),r=tr(r),Fy(r,o,u)}function OE(r,o,u){if(u&&typeof u!="boolean"&&Ot(r,o,u)&&(o=u=t),u===t&&(typeof o=="boolean"?(u=o,o=t):typeof r=="boolean"&&(u=r,r=t)),r===t&&o===t?(r=0,o=1):(r=Pr(r),o===t?(o=r,r=0):o=Pr(o)),r>o){var f=r;r=o,o=f}if(u||r%1||o%1){var g=Ul();return bt(r+g*(o-r+sm("1e-"+((g+"").length-1))),o)}return Ci(r,o)}var AE=Ln(function(r,o,u){return o=o.toLowerCase(),r+(u?_d(o):o)});function _d(r){return Zi(De(r).toLowerCase())}function Ed(r){return r=De(r),r&&r.replace(Dv,bm).replace(Jv,"")}function PE(r,o,u){r=De(r),o=jt(o);var f=r.length;u=u===t?f:gn(me(u),0,f);var g=u;return u-=o.length,u>=0&&r.slice(u,g)==o}function DE(r){return r=De(r),r&&Gs.test(r)?r.replace(ia,_m):r}function IE(r){return r=De(r),r&&U.test(r)?r.replace(w,"\\$&"):r}var FE=Ln(function(r,o,u){return r+(u?"-":"")+o.toLowerCase()}),$E=Ln(function(r,o,u){return r+(u?" ":"")+o.toLowerCase()}),ME=Tf("toLowerCase");function LE(r,o,u){r=De(r),o=me(o);var f=o?An(r):0;if(!o||f>=o)return r;var g=(o-f)/2;return Oo(go(g),u)+r+Oo(ho(g),u)}function NE(r,o,u){r=De(r),o=me(o);var f=o?An(r):0;return o&&f<o?r+Oo(o-f,u):r}function kE(r,o,u){r=De(r),o=me(o);var f=o?An(r):0;return o&&f<o?Oo(o-f,u)+r:r}function jE(r,o,u){return u||o==null?o=0:o&&(o=+o),Ym(De(r).replace(J,""),o||0)}function BE(r,o,u){return(u?Ot(r,o,u):o===t)?o=1:o=me(o),xi(De(r),o)}function WE(){var r=arguments,o=De(r[0]);return r.length<3?o:o.replace(r[1],r[2])}var UE=Ln(function(r,o,u){return r+(u?"_":"")+o.toLowerCase()});function HE(r,o,u){return u&&typeof u!="number"&&Ot(r,o,u)&&(o=u=t),u=u===t?q:u>>>0,u?(r=De(r),r&&(typeof o=="string"||o!=null&&!Ki(o))&&(o=jt(o),!o&&On(r))?Jr(ir(r),0,u):r.split(o,u)):[]}var GE=Ln(function(r,o,u){return r+(u?" ":"")+Zi(o)});function qE(r,o,u){return r=De(r),u=u==null?0:gn(me(u),0,r.length),o=jt(o),r.slice(u,u+o.length)==o}function YE(r,o,u){var f=v.templateSettings;u&&Ot(r,o,u)&&(o=t),r=De(r),o=Bo({},o,f,Df);var g=Bo({},o.imports,f.imports,Df),m=dt(g),S=ci(g,m),C,A,L=0,N=o.interpolate||Za,B="__p += '",V=fi((o.escape||Za).source+"|"+N.source+"|"+(N===Ja?et:Za).source+"|"+(o.evaluate||Za).source+"|$","g"),ee="//# sourceURL="+(ke.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++tm+"]")+`
|
|
18
|
-
`;r.replace(V,function(oe,Se,xe,Wt,At,Ut){return xe||(xe=Wt),B+=r.slice(L,Ut).replace(
|
|
17
|
+
`)}function bb(r){return ve(r)||bn(r)||!!(Wl&&r&&r[Wl])}function Or(r,o){var u=typeof r;return o=o??rt,!!o&&(u=="number"||u!="symbol"&&Dv.test(r))&&r>-1&&r%1==0&&r<o}function Ot(r,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],r):!1}function Bi(r,o){if(ve(r))return!1;var u=typeof r;return u=="number"||u=="symbol"||u=="boolean"||r==null||Bt(r)?!0:zs.test(r)||!Ys.test(r)||o!=null&&r in Ue(o)}function _b(r){var o=typeof r;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?r!=="__proto__":r===null}function Wi(r){var o=Po(r),u=v[o];if(typeof u!="function"||!(o in we.prototype))return!1;if(r===u)return!0;var f=Ni(u);return!!f&&r===f[0]}function Eb(r){return!!Nl&&Nl in r}var Sb=oo?Ar:au;function _a(r){var o=r&&r.constructor,u=typeof o=="function"&&o.prototype||Dn;return r===u}function kf(r){return r===r&&!Ze(r)}function jf(r,o){return function(u){return u==null?!1:u[r]===o&&(o!==t||r in Ue(u))}}function wb(r){var o=Lo(r,function(f){return u.size===p&&u.clear(),f}),u=o.cache;return o}function Tb(r,o){var u=r[1],f=o[1],g=u|f,m=g<(D|P|H),S=f==H&&u==M||f==H&&u==Y&&r[7].length<=o[8]||f==(H|Y)&&o[7].length<=o[8]&&u==M;if(!(m||S))return r;f&D&&(r[2]=o[2],g|=u&D?0:j);var C=o[3];if(C){var A=r[3];r[3]=A?Ef(A,C,o[4]):C,r[4]=A?qr(r[3],h):o[4]}return C=o[5],C&&(A=r[5],r[5]=A?Sf(A,C,o[6]):C,r[6]=A?qr(r[5],h):o[6]),C=o[7],C&&(r[7]=C),f&H&&(r[8]=r[8]==null?o[8]:bt(r[8],o[8])),r[9]==null&&(r[9]=o[9]),r[0]=o[0],r[1]=g,r}function Cb(r){var o=[];if(r!=null)for(var u in Ue(r))o.push(u);return o}function xb(r){return io.call(r)}function Bf(r,o,u){return o=ct(o===t?r.length-1:o,0),function(){for(var f=arguments,g=-1,m=ct(f.length-o,0),S=I(m);++g<m;)S[g]=f[o+g];g=-1;for(var C=I(o+1);++g<o;)C[g]=f[g];return C[o]=u(S),Nt(r,this,C)}}function Wf(r,o){return o.length<2?r:vn(r,Qt(o,0,-1))}function Rb(r,o){for(var u=r.length,f=bt(o.length,u),g=It(r);f--;){var m=o[f];r[f]=Or(m,u)?g[m]:t}return r}function Ui(r,o){if(!(o==="constructor"&&typeof r[o]=="function")&&o!="__proto__")return r[o]}var Uf=Gf(ff),Ea=Um||function(r,o){return gt.setTimeout(r,o)},Hi=Gf(Jy);function Hf(r,o,u){var f=o+"";return Hi(r,yb(f,Ob(gb(f),u)))}function Gf(r){var o=0,u=0;return function(){var f=Ym(),g=X-(f-u);if(u=f,g>0){if(++o>=st)return arguments[0]}else o=0;return r.apply(t,arguments)}}function Io(r,o){var u=-1,f=r.length,g=f-1;for(o=o===t?f:o;++u<o;){var m=Ci(u,g),S=r[m];r[m]=r[u],r[u]=S}return r.length=o,r}var qf=wb(function(r){var o=[];return r.charCodeAt(0)===46&&o.push(""),r.replace(Vs,function(u,f,g,m){o.push(g?m.replace(Xe,"$1"):f||u)}),o});function yr(r){if(typeof r=="string"||Bt(r))return r;var o=r+"";return o=="0"&&1/r==-Ge?"-0":o}function yn(r){if(r!=null){try{return so.call(r)}catch{}try{return r+""}catch{}}return""}function Ob(r,o){return Kt(se,function(u){var f="_."+u[0];o&u[1]&&!to(r,f)&&r.push(f)}),r.sort()}function Yf(r){if(r instanceof we)return r.clone();var o=new Xt(r.__wrapped__,r.__chain__);return o.__actions__=It(r.__actions__),o.__index__=r.__index__,o.__values__=r.__values__,o}function Ab(r,o,u){(u?Ot(r,o,u):o===t)?o=1:o=ct(me(o),0);var f=r==null?0:r.length;if(!f||o<1)return[];for(var g=0,m=0,S=I(ho(f/o));g<f;)S[m++]=Qt(r,g,g+=o);return S}function Pb(r){for(var o=-1,u=r==null?0:r.length,f=0,g=[];++o<u;){var m=r[o];m&&(g[f++]=m)}return g}function Db(){var r=arguments.length;if(!r)return[];for(var o=I(r-1),u=arguments[0],f=r;f--;)o[f-1]=arguments[f];return Gr(ve(u)?It(u):[u],vt(o,1))}var Ib=_e(function(r,o){return nt(r)?ga(r,vt(o,1,nt,!0)):[]}),Fb=_e(function(r,o){var u=er(o);return nt(u)&&(u=t),nt(r)?ga(r,vt(o,1,nt,!0),re(u,2)):[]}),$b=_e(function(r,o){var u=er(o);return nt(u)&&(u=t),nt(r)?ga(r,vt(o,1,nt,!0),t,u):[]});function Mb(r,o,u){var f=r==null?0:r.length;return f?(o=u||o===t?1:me(o),Qt(r,o<0?0:o,f)):[]}function Lb(r,o,u){var f=r==null?0:r.length;return f?(o=u||o===t?1:me(o),o=f-o,Qt(r,0,o<0?0:o)):[]}function Nb(r,o){return r&&r.length?To(r,re(o,3),!0,!0):[]}function kb(r,o){return r&&r.length?To(r,re(o,3),!0):[]}function jb(r,o,u,f){var g=r==null?0:r.length;return g?(u&&typeof u!="number"&&Ot(r,o,u)&&(u=0,f=g),Dy(r,o,u,f)):[]}function zf(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var g=u==null?0:me(u);return g<0&&(g=ct(f+g,0)),ro(r,re(o,3),g)}function Vf(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var g=f-1;return u!==t&&(g=me(u),g=u<0?ct(f+g,0):bt(g,f-1)),ro(r,re(o,3),g,!0)}function Kf(r){var o=r==null?0:r.length;return o?vt(r,1):[]}function Bb(r){var o=r==null?0:r.length;return o?vt(r,Ge):[]}function Wb(r,o){var u=r==null?0:r.length;return u?(o=o===t?1:me(o),vt(r,o)):[]}function Ub(r){for(var o=-1,u=r==null?0:r.length,f={};++o<u;){var g=r[o];f[g[0]]=g[1]}return f}function Jf(r){return r&&r.length?r[0]:t}function Hb(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var g=u==null?0:me(u);return g<0&&(g=ct(f+g,0)),Rn(r,o,g)}function Gb(r){var o=r==null?0:r.length;return o?Qt(r,0,-1):[]}var qb=_e(function(r){var o=Ke(r,Pi);return o.length&&o[0]===r[0]?_i(o):[]}),Yb=_e(function(r){var o=er(r),u=Ke(r,Pi);return o===er(u)?o=t:u.pop(),u.length&&u[0]===r[0]?_i(u,re(o,2)):[]}),zb=_e(function(r){var o=er(r),u=Ke(r,Pi);return o=typeof o=="function"?o:t,o&&u.pop(),u.length&&u[0]===r[0]?_i(u,t,o):[]});function Vb(r,o){return r==null?"":Gm.call(r,o)}function er(r){var o=r==null?0:r.length;return o?r[o-1]:t}function Kb(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var g=f;return u!==t&&(g=me(u),g=g<0?ct(f+g,0):bt(g,f-1)),o===o?Om(r,o,g):ro(r,Al,g,!0)}function Jb(r,o){return r&&r.length?sf(r,me(o)):t}var Xb=_e(Xf);function Xf(r,o){return r&&r.length&&o&&o.length?Ti(r,o):r}function Zb(r,o,u){return r&&r.length&&o&&o.length?Ti(r,o,re(u,2)):r}function Qb(r,o,u){return r&&r.length&&o&&o.length?Ti(r,o,t,u):r}var e0=Rr(function(r,o){var u=r==null?0:r.length,f=vi(r,o);return lf(r,Ke(o,function(g){return Or(g,u)?+g:g}).sort(_f)),f});function t0(r,o){var u=[];if(!(r&&r.length))return u;var f=-1,g=[],m=r.length;for(o=re(o,3);++f<m;){var S=r[f];o(S,f,r)&&(u.push(S),g.push(f))}return lf(r,g),u}function Gi(r){return r==null?r:Vm.call(r)}function r0(r,o,u){var f=r==null?0:r.length;return f?(u&&typeof u!="number"&&Ot(r,o,u)?(o=0,u=f):(o=o==null?0:me(o),u=u===t?f:me(u)),Qt(r,o,u)):[]}function n0(r,o){return wo(r,o)}function a0(r,o,u){return Ri(r,o,re(u,2))}function o0(r,o){var u=r==null?0:r.length;if(u){var f=wo(r,o);if(f<u&&cr(r[f],o))return f}return-1}function s0(r,o){return wo(r,o,!0)}function i0(r,o,u){return Ri(r,o,re(u,2),!0)}function u0(r,o){var u=r==null?0:r.length;if(u){var f=wo(r,o,!0)-1;if(cr(r[f],o))return f}return-1}function c0(r){return r&&r.length?df(r):[]}function l0(r,o){return r&&r.length?df(r,re(o,2)):[]}function f0(r){var o=r==null?0:r.length;return o?Qt(r,1,o):[]}function d0(r,o,u){return r&&r.length?(o=u||o===t?1:me(o),Qt(r,0,o<0?0:o)):[]}function p0(r,o,u){var f=r==null?0:r.length;return f?(o=u||o===t?1:me(o),o=f-o,Qt(r,o<0?0:o,f)):[]}function h0(r,o){return r&&r.length?To(r,re(o,3),!1,!0):[]}function g0(r,o){return r&&r.length?To(r,re(o,3)):[]}var v0=_e(function(r){return Vr(vt(r,1,nt,!0))}),m0=_e(function(r){var o=er(r);return nt(o)&&(o=t),Vr(vt(r,1,nt,!0),re(o,2))}),y0=_e(function(r){var o=er(r);return o=typeof o=="function"?o:t,Vr(vt(r,1,nt,!0),t,o)});function b0(r){return r&&r.length?Vr(r):[]}function _0(r,o){return r&&r.length?Vr(r,re(o,2)):[]}function E0(r,o){return o=typeof o=="function"?o:t,r&&r.length?Vr(r,t,o):[]}function qi(r){if(!(r&&r.length))return[];var o=0;return r=Hr(r,function(u){if(nt(u))return o=ct(u.length,o),!0}),ui(o,function(u){return Ke(r,oi(u))})}function Zf(r,o){if(!(r&&r.length))return[];var u=qi(r);return o==null?u:Ke(u,function(f){return Nt(o,t,f)})}var S0=_e(function(r,o){return nt(r)?ga(r,o):[]}),w0=_e(function(r){return Ai(Hr(r,nt))}),T0=_e(function(r){var o=er(r);return nt(o)&&(o=t),Ai(Hr(r,nt),re(o,2))}),C0=_e(function(r){var o=er(r);return o=typeof o=="function"?o:t,Ai(Hr(r,nt),t,o)}),x0=_e(qi);function R0(r,o){return vf(r||[],o||[],ha)}function O0(r,o){return vf(r||[],o||[],ya)}var A0=_e(function(r){var o=r.length,u=o>1?r[o-1]:t;return u=typeof u=="function"?(r.pop(),u):t,Zf(r,u)});function Qf(r){var o=v(r);return o.__chain__=!0,o}function P0(r,o){return o(r),r}function Fo(r,o){return o(r)}var D0=Rr(function(r){var o=r.length,u=o?r[0]:0,f=this.__wrapped__,g=function(m){return vi(m,r)};return o>1||this.__actions__.length||!(f instanceof we)||!Or(u)?this.thru(g):(f=f.slice(u,+u+(o?1:0)),f.__actions__.push({func:Fo,args:[g],thisArg:t}),new Xt(f,this.__chain__).thru(function(m){return o&&!m.length&&m.push(t),m}))});function I0(){return Qf(this)}function F0(){return new Xt(this.value(),this.__chain__)}function $0(){this.__values__===t&&(this.__values__=pd(this.value()));var r=this.__index__>=this.__values__.length,o=r?t:this.__values__[this.__index__++];return{done:r,value:o}}function M0(){return this}function L0(r){for(var o,u=this;u instanceof yo;){var f=Yf(u);f.__index__=0,f.__values__=t,o?g.__wrapped__=f:o=f;var g=f;u=u.__wrapped__}return g.__wrapped__=r,o}function N0(){var r=this.__wrapped__;if(r instanceof we){var o=r;return this.__actions__.length&&(o=new we(this)),o=o.reverse(),o.__actions__.push({func:Fo,args:[Gi],thisArg:t}),new Xt(o,this.__chain__)}return this.thru(Gi)}function k0(){return gf(this.__wrapped__,this.__actions__)}var j0=Co(function(r,o,u){ke.call(r,u)?++r[u]:Cr(r,u,1)});function B0(r,o,u){var f=ve(r)?Rl:Py;return u&&Ot(r,o,u)&&(o=t),f(r,re(o,3))}function W0(r,o){var u=ve(r)?Hr:Xl;return u(r,re(o,3))}var U0=xf(zf),H0=xf(Vf);function G0(r,o){return vt($o(r,o),1)}function q0(r,o){return vt($o(r,o),Ge)}function Y0(r,o,u){return u=u===t?1:me(u),vt($o(r,o),u)}function ed(r,o){var u=ve(r)?Kt:zr;return u(r,re(o,3))}function td(r,o){var u=ve(r)?fm:Jl;return u(r,re(o,3))}var z0=Co(function(r,o,u){ke.call(r,u)?r[u].push(o):Cr(r,u,[o])});function V0(r,o,u,f){r=Ft(r)?r:jn(r),u=u&&!f?me(u):0;var g=r.length;return u<0&&(u=ct(g+u,0)),jo(r)?u<=g&&r.indexOf(o,u)>-1:!!g&&Rn(r,o,u)>-1}var K0=_e(function(r,o,u){var f=-1,g=typeof o=="function",m=Ft(r)?I(r.length):[];return zr(r,function(S){m[++f]=g?Nt(o,S,u):va(S,o,u)}),m}),J0=Co(function(r,o,u){Cr(r,u,o)});function $o(r,o){var u=ve(r)?Ke:nf;return u(r,re(o,3))}function X0(r,o,u,f){return r==null?[]:(ve(o)||(o=o==null?[]:[o]),u=f?t:u,ve(u)||(u=u==null?[]:[u]),uf(r,o,u))}var Z0=Co(function(r,o,u){r[u?0:1].push(o)},function(){return[[],[]]});function Q0(r,o,u){var f=ve(r)?ni:Dl,g=arguments.length<3;return f(r,re(o,4),u,g,zr)}function e_(r,o,u){var f=ve(r)?dm:Dl,g=arguments.length<3;return f(r,re(o,4),u,g,Jl)}function t_(r,o){var u=ve(r)?Hr:Xl;return u(r,No(re(o,3)))}function r_(r){var o=ve(r)?Yl:Vy;return o(r)}function n_(r,o,u){(u?Ot(r,o,u):o===t)?o=1:o=me(o);var f=ve(r)?Cy:Ky;return f(r,o)}function a_(r){var o=ve(r)?xy:Xy;return o(r)}function o_(r){if(r==null)return 0;if(Ft(r))return jo(r)?An(r):r.length;var o=_t(r);return o==qe||o==xt?r.size:Si(r).length}function s_(r,o,u){var f=ve(r)?ai:Zy;return u&&Ot(r,o,u)&&(o=t),f(r,re(o,3))}var i_=_e(function(r,o){if(r==null)return[];var u=o.length;return u>1&&Ot(r,o[0],o[1])?o=[]:u>2&&Ot(o[0],o[1],o[2])&&(o=[o[0]]),uf(r,vt(o,1),[])}),Mo=Wm||function(){return gt.Date.now()};function u_(r,o){if(typeof o!="function")throw new Jt(c);return r=me(r),function(){if(--r<1)return o.apply(this,arguments)}}function rd(r,o,u){return o=u?t:o,o=r&&o==null?r.length:o,xr(r,H,t,t,t,t,o)}function nd(r,o){var u;if(typeof o!="function")throw new Jt(c);return r=me(r),function(){return--r>0&&(u=o.apply(this,arguments)),r<=1&&(o=t),u}}var Yi=_e(function(r,o,u){var f=D;if(u.length){var g=qr(u,Nn(Yi));f|=O}return xr(r,f,o,u,g)}),ad=_e(function(r,o,u){var f=D|P;if(u.length){var g=qr(u,Nn(ad));f|=O}return xr(o,f,r,u,g)});function od(r,o,u){o=u?t:o;var f=xr(r,M,t,t,t,t,t,o);return f.placeholder=od.placeholder,f}function sd(r,o,u){o=u?t:o;var f=xr(r,k,t,t,t,t,t,o);return f.placeholder=sd.placeholder,f}function id(r,o,u){var f,g,m,S,C,A,L=0,N=!1,B=!1,V=!0;if(typeof r!="function")throw new Jt(c);o=tr(o)||0,Ze(u)&&(N=!!u.leading,B="maxWait"in u,m=B?ct(tr(u.maxWait)||0,o):m,V="trailing"in u?!!u.trailing:V);function ee(at){var lr=f,Dr=g;return f=g=t,L=at,S=r.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,xd=o-lr;return B?bt(xd,m-Dr):xd}function oe(at){var lr=at-A,Dr=at-L;return A===t||lr>=o||lr<0||B&&Dr>=m}function Se(){var at=Mo();if(oe(at))return xe(at);C=Ea(Se,be(at))}function xe(at){return C=t,V&&f?ee(at):(f=g=t,S)}function Wt(){C!==t&&mf(C),L=0,f=A=g=C=t}function At(){return C===t?S:xe(Mo())}function Ut(){var at=Mo(),lr=oe(at);if(f=arguments,g=this,A=at,lr){if(C===t)return ae(A);if(B)return mf(C),C=Ea(Se,o),ee(A)}return C===t&&(C=Ea(Se,o)),S}return Ut.cancel=Wt,Ut.flush=At,Ut}var c_=_e(function(r,o){return Kl(r,1,o)}),l_=_e(function(r,o,u){return Kl(r,tr(o)||0,u)});function f_(r){return xr(r,te)}function Lo(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new Jt(c);var u=function(){var f=arguments,g=o?o.apply(this,f):f[0],m=u.cache;if(m.has(g))return m.get(g);var S=r.apply(this,f);return u.cache=m.set(g,S)||m,S};return u.cache=new(Lo.Cache||Tr),u}Lo.Cache=Tr;function No(r){if(typeof r!="function")throw new Jt(c);return function(){var o=arguments;switch(o.length){case 0:return!r.call(this);case 1:return!r.call(this,o[0]);case 2:return!r.call(this,o[0],o[1]);case 3:return!r.call(this,o[0],o[1],o[2])}return!r.apply(this,o)}}function d_(r){return nd(2,r)}var p_=Qy(function(r,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 g=-1,m=bt(f.length,u);++g<m;)f[g]=o[g].call(this,f[g]);return Nt(r,this,f)})}),zi=_e(function(r,o){var u=qr(o,Nn(zi));return xr(r,O,t,o,u)}),ud=_e(function(r,o){var u=qr(o,Nn(ud));return xr(r,z,t,o,u)}),h_=Rr(function(r,o){return xr(r,Y,t,t,t,o)});function g_(r,o){if(typeof r!="function")throw new Jt(c);return o=o===t?o:me(o),_e(r,o)}function v_(r,o){if(typeof r!="function")throw new Jt(c);return o=o==null?0:ct(me(o),0),_e(function(u){var f=u[o],g=Jr(u,0,o);return f&&Gr(g,f),Nt(r,this,g)})}function m_(r,o,u){var f=!0,g=!0;if(typeof r!="function")throw new Jt(c);return Ze(u)&&(f="leading"in u?!!u.leading:f,g="trailing"in u?!!u.trailing:g),id(r,o,{leading:f,maxWait:o,trailing:g})}function y_(r){return rd(r,1)}function b_(r,o){return zi(Di(o),r)}function __(){if(!arguments.length)return[];var r=arguments[0];return ve(r)?r:[r]}function E_(r){return Zt(r,E)}function S_(r,o){return o=typeof o=="function"?o:t,Zt(r,E,o)}function w_(r){return Zt(r,y|E)}function T_(r,o){return o=typeof o=="function"?o:t,Zt(r,y|E,o)}function C_(r,o){return o==null||Vl(r,o,dt(o))}function cr(r,o){return r===o||r!==r&&o!==o}var x_=Ao(bi),R_=Ao(function(r,o){return r>=o}),bn=ef(function(){return arguments}())?ef:function(r){return tt(r)&&ke.call(r,"callee")&&!Bl.call(r,"callee")},ve=I.isArray,O_=El?kt(El):Ly;function Ft(r){return r!=null&&ko(r.length)&&!Ar(r)}function nt(r){return tt(r)&&Ft(r)}function A_(r){return r===!0||r===!1||tt(r)&&Rt(r)==ue}var Xr=Hm||au,P_=Sl?kt(Sl):Ny;function D_(r){return tt(r)&&r.nodeType===1&&!Sa(r)}function I_(r){if(r==null)return!0;if(Ft(r)&&(ve(r)||typeof r=="string"||typeof r.splice=="function"||Xr(r)||kn(r)||bn(r)))return!r.length;var o=_t(r);if(o==qe||o==xt)return!r.size;if(_a(r))return!Si(r).length;for(var u in r)if(ke.call(r,u))return!1;return!0}function F_(r,o){return ma(r,o)}function $_(r,o,u){u=typeof u=="function"?u:t;var f=u?u(r,o):t;return f===t?ma(r,o,t,u):!!f}function Vi(r){if(!tt(r))return!1;var o=Rt(r);return o==K||o==ge||typeof r.message=="string"&&typeof r.name=="string"&&!Sa(r)}function M_(r){return typeof r=="number"&&Ul(r)}function Ar(r){if(!Ze(r))return!1;var o=Rt(r);return o==F||o==ze||o==ce||o==Ws}function cd(r){return typeof r=="number"&&r==me(r)}function ko(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=rt}function Ze(r){var o=typeof r;return r!=null&&(o=="object"||o=="function")}function tt(r){return r!=null&&typeof r=="object"}var ld=wl?kt(wl):jy;function L_(r,o){return r===o||Ei(r,o,ki(o))}function N_(r,o,u){return u=typeof u=="function"?u:t,Ei(r,o,ki(o),u)}function k_(r){return fd(r)&&r!=+r}function j_(r){if(Sb(r))throw new pe(i);return tf(r)}function B_(r){return r===null}function W_(r){return r==null}function fd(r){return typeof r=="number"||tt(r)&&Rt(r)==yt}function Sa(r){if(!tt(r)||Rt(r)!=Yt)return!1;var o=lo(r);if(o===null)return!0;var u=ke.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&so.call(u)==Nm}var Ki=Tl?kt(Tl):By;function U_(r){return cd(r)&&r>=-rt&&r<=rt}var dd=Cl?kt(Cl):Wy;function jo(r){return typeof r=="string"||!ve(r)&&tt(r)&&Rt(r)==an}function Bt(r){return typeof r=="symbol"||tt(r)&&Rt(r)==on}var kn=xl?kt(xl):Uy;function H_(r){return r===t}function G_(r){return tt(r)&&_t(r)==Sr}function q_(r){return tt(r)&&Rt(r)==Us}var Y_=Ao(wi),z_=Ao(function(r,o){return r<=o});function pd(r){if(!r)return[];if(Ft(r))return jo(r)?ir(r):It(r);if(ca&&r[ca])return Cm(r[ca]());var o=_t(r),u=o==qe?li:o==xt?no:jn;return u(r)}function Pr(r){if(!r)return r===0?r:0;if(r=tr(r),r===Ge||r===-Ge){var o=r<0?-1:1;return o*qt}return r===r?r:0}function me(r){var o=Pr(r),u=o%1;return o===o?u?o-u:o:0}function hd(r){return r?gn(me(r),0,q):0}function tr(r){if(typeof r=="number")return r;if(Bt(r))return W;if(Ze(r)){var o=typeof r.valueOf=="function"?r.valueOf():r;r=Ze(o)?o+"":o}if(typeof r!="string")return r===0?r:+r;r=Il(r);var u=Xa.test(r);return u||Pv.test(r)?um(r.slice(2),u?2:8):Ur.test(r)?W:+r}function gd(r){return mr(r,$t(r))}function V_(r){return r?gn(me(r),-rt,rt):r===0?r:0}function De(r){return r==null?"":jt(r)}var K_=Mn(function(r,o){if(_a(o)||Ft(o)){mr(o,dt(o),r);return}for(var u in o)ke.call(o,u)&&ha(r,u,o[u])}),vd=Mn(function(r,o){mr(o,$t(o),r)}),Bo=Mn(function(r,o,u,f){mr(o,$t(o),r,f)}),J_=Mn(function(r,o,u,f){mr(o,dt(o),r,f)}),X_=Rr(vi);function Z_(r,o){var u=$n(r);return o==null?u:zl(u,o)}var Q_=_e(function(r,o){r=Ue(r);var u=-1,f=o.length,g=f>2?o[2]:t;for(g&&Ot(o[0],o[1],g)&&(f=1);++u<f;)for(var m=o[u],S=$t(m),C=-1,A=S.length;++C<A;){var L=S[C],N=r[L];(N===t||cr(N,Dn[L])&&!ke.call(r,L))&&(r[L]=m[L])}return r}),eE=_e(function(r){return r.push(t,Ff),Nt(md,t,r)});function tE(r,o){return Ol(r,re(o,3),vr)}function rE(r,o){return Ol(r,re(o,3),yi)}function nE(r,o){return r==null?r:mi(r,re(o,3),$t)}function aE(r,o){return r==null?r:Zl(r,re(o,3),$t)}function oE(r,o){return r&&vr(r,re(o,3))}function sE(r,o){return r&&yi(r,re(o,3))}function iE(r){return r==null?[]:Eo(r,dt(r))}function uE(r){return r==null?[]:Eo(r,$t(r))}function Ji(r,o,u){var f=r==null?t:vn(r,o);return f===t?u:f}function cE(r,o){return r!=null&&Lf(r,o,Iy)}function Xi(r,o){return r!=null&&Lf(r,o,Fy)}var lE=Of(function(r,o,u){o!=null&&typeof o.toString!="function"&&(o=io.call(o)),r[o]=u},Qi(Mt)),fE=Of(function(r,o,u){o!=null&&typeof o.toString!="function"&&(o=io.call(o)),ke.call(r,o)?r[o].push(u):r[o]=[u]},re),dE=_e(va);function dt(r){return Ft(r)?ql(r):Si(r)}function $t(r){return Ft(r)?ql(r,!0):Hy(r)}function pE(r,o){var u={};return o=re(o,3),vr(r,function(f,g,m){Cr(u,o(f,g,m),f)}),u}function hE(r,o){var u={};return o=re(o,3),vr(r,function(f,g,m){Cr(u,g,o(f,g,m))}),u}var gE=Mn(function(r,o,u){So(r,o,u)}),md=Mn(function(r,o,u,f){So(r,o,u,f)}),vE=Rr(function(r,o){var u={};if(r==null)return u;var f=!1;o=Ke(o,function(m){return m=Kr(m,r),f||(f=m.length>1),m}),mr(r,Li(r),u),f&&(u=Zt(u,y|_|E,lb));for(var g=o.length;g--;)Oi(u,o[g]);return u});function mE(r,o){return yd(r,No(re(o)))}var yE=Rr(function(r,o){return r==null?{}:qy(r,o)});function yd(r,o){if(r==null)return{};var u=Ke(Li(r),function(f){return[f]});return o=re(o),cf(r,u,function(f,g){return o(f,g[0])})}function bE(r,o,u){o=Kr(o,r);var f=-1,g=o.length;for(g||(g=1,r=t);++f<g;){var m=r==null?t:r[yr(o[f])];m===t&&(f=g,m=u),r=Ar(m)?m.call(r):m}return r}function _E(r,o,u){return r==null?r:ya(r,o,u)}function EE(r,o,u,f){return f=typeof f=="function"?f:t,r==null?r:ya(r,o,u,f)}var bd=Df(dt),_d=Df($t);function SE(r,o,u){var f=ve(r),g=f||Xr(r)||kn(r);if(o=re(o,4),u==null){var m=r&&r.constructor;g?u=f?new m:[]:Ze(r)?u=Ar(m)?$n(lo(r)):{}:u={}}return(g?Kt:vr)(r,function(S,C,A){return o(u,S,C,A)}),u}function wE(r,o){return r==null?!0:Oi(r,o)}function TE(r,o,u){return r==null?r:hf(r,o,Di(u))}function CE(r,o,u,f){return f=typeof f=="function"?f:t,r==null?r:hf(r,o,Di(u),f)}function jn(r){return r==null?[]:ci(r,dt(r))}function xE(r){return r==null?[]:ci(r,$t(r))}function RE(r,o,u){return u===t&&(u=o,o=t),u!==t&&(u=tr(u),u=u===u?u:0),o!==t&&(o=tr(o),o=o===o?o:0),gn(tr(r),o,u)}function OE(r,o,u){return o=Pr(o),u===t?(u=o,o=0):u=Pr(u),r=tr(r),$y(r,o,u)}function AE(r,o,u){if(u&&typeof u!="boolean"&&Ot(r,o,u)&&(o=u=t),u===t&&(typeof o=="boolean"?(u=o,o=t):typeof r=="boolean"&&(u=r,r=t)),r===t&&o===t?(r=0,o=1):(r=Pr(r),o===t?(o=r,r=0):o=Pr(o)),r>o){var f=r;r=o,o=f}if(u||r%1||o%1){var g=Hl();return bt(r+g*(o-r+im("1e-"+((g+"").length-1))),o)}return Ci(r,o)}var PE=Ln(function(r,o,u){return o=o.toLowerCase(),r+(u?Ed(o):o)});function Ed(r){return Zi(De(r).toLowerCase())}function Sd(r){return r=De(r),r&&r.replace(Iv,_m).replace(Xv,"")}function DE(r,o,u){r=De(r),o=jt(o);var f=r.length;u=u===t?f:gn(me(u),0,f);var g=u;return u-=o.length,u>=0&&r.slice(u,g)==o}function IE(r){return r=De(r),r&&Gs.test(r)?r.replace(ia,Em):r}function FE(r){return r=De(r),r&&U.test(r)?r.replace(w,"\\$&"):r}var $E=Ln(function(r,o,u){return r+(u?"-":"")+o.toLowerCase()}),ME=Ln(function(r,o,u){return r+(u?" ":"")+o.toLowerCase()}),LE=Cf("toLowerCase");function NE(r,o,u){r=De(r),o=me(o);var f=o?An(r):0;if(!o||f>=o)return r;var g=(o-f)/2;return Oo(go(g),u)+r+Oo(ho(g),u)}function kE(r,o,u){r=De(r),o=me(o);var f=o?An(r):0;return o&&f<o?r+Oo(o-f,u):r}function jE(r,o,u){r=De(r),o=me(o);var f=o?An(r):0;return o&&f<o?Oo(o-f,u)+r:r}function BE(r,o,u){return u||o==null?o=0:o&&(o=+o),zm(De(r).replace(J,""),o||0)}function WE(r,o,u){return(u?Ot(r,o,u):o===t)?o=1:o=me(o),xi(De(r),o)}function UE(){var r=arguments,o=De(r[0]);return r.length<3?o:o.replace(r[1],r[2])}var HE=Ln(function(r,o,u){return r+(u?"_":"")+o.toLowerCase()});function GE(r,o,u){return u&&typeof u!="number"&&Ot(r,o,u)&&(o=u=t),u=u===t?q:u>>>0,u?(r=De(r),r&&(typeof o=="string"||o!=null&&!Ki(o))&&(o=jt(o),!o&&On(r))?Jr(ir(r),0,u):r.split(o,u)):[]}var qE=Ln(function(r,o,u){return r+(u?" ":"")+Zi(o)});function YE(r,o,u){return r=De(r),u=u==null?0:gn(me(u),0,r.length),o=jt(o),r.slice(u,u+o.length)==o}function zE(r,o,u){var f=v.templateSettings;u&&Ot(r,o,u)&&(o=t),r=De(r),o=Bo({},o,f,If);var g=Bo({},o.imports,f.imports,If),m=dt(g),S=ci(g,m),C,A,L=0,N=o.interpolate||Za,B="__p += '",V=fi((o.escape||Za).source+"|"+N.source+"|"+(N===Ja?et:Za).source+"|"+(o.evaluate||Za).source+"|$","g"),ee="//# sourceURL="+(ke.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rm+"]")+`
|
|
18
|
+
`;r.replace(V,function(oe,Se,xe,Wt,At,Ut){return xe||(xe=Wt),B+=r.slice(L,Ut).replace(Fv,Sm),Se&&(C=!0,B+=`' +
|
|
19
19
|
__e(`+Se+`) +
|
|
20
20
|
'`),At&&(A=!0,B+=`';
|
|
21
21
|
`+At+`;
|
|
@@ -31,64 +31,64 @@ __p += '`),xe&&(B+=`' +
|
|
|
31
31
|
function print() { __p += __j.call(arguments, '') }
|
|
32
32
|
`:`;
|
|
33
33
|
`)+B+`return __p
|
|
34
|
-
}`;var be=wd(function(){return Oe(m,ee+"return "+B).apply(t,S)});if(be.source=B,Vi(be))throw be;return be}function zE(r){return De(r).toLowerCase()}function VE(r){return De(r).toUpperCase()}function KE(r,o,u){if(r=De(r),r&&(u||o===t))return Dl(r);if(!r||!(o=jt(o)))return r;var f=ir(r),g=ir(o),m=Il(f,g),S=Fl(f,g)+1;return Jr(f,m,S).join("")}function JE(r,o,u){if(r=De(r),r&&(u||o===t))return r.slice(0,Ml(r)+1);if(!r||!(o=jt(o)))return r;var f=ir(r),g=Fl(f,ir(o))+1;return Jr(f,0,g).join("")}function XE(r,o,u){if(r=De(r),r&&(u||o===t))return r.replace(J,"");if(!r||!(o=jt(o)))return r;var f=ir(r),g=Il(f,ir(o));return Jr(f,g).join("")}function ZE(r,o){var u=We,f=Te;if(Ze(o)){var g="separator"in o?o.separator:g;u="length"in o?me(o.length):u,f="omission"in o?jt(o.omission):f}r=De(r);var m=r.length;if(On(r)){var S=ir(r);m=S.length}if(u>=m)return r;var C=u-An(f);if(C<1)return f;var A=S?Jr(S,0,C).join(""):r.slice(0,C);if(g===t)return A+f;if(S&&(C+=A.length-C),Ki(g)){if(r.slice(C).search(g)){var L,N=A;for(g.global||(g=fi(g.source,De(zt.exec(g))+"g")),g.lastIndex=0;L=g.exec(N);)var B=L.index;A=A.slice(0,B===t?C:B)}}else if(r.indexOf(jt(g),C)!=C){var V=A.lastIndexOf(g);V>-1&&(A=A.slice(0,V))}return A+f}function QE(r){return r=De(r),r&&Va.test(r)?r.replace(za,Om):r}var eS=Ln(function(r,o,u){return r+(u?" ":"")+o.toUpperCase()}),Zi=Tf("toUpperCase");function Sd(r,o,u){return r=De(r),o=u?t:o,o===t?wm(r)?Dm(r):hm(r):r.match(o)||[]}var wd=_e(function(r,o){try{return Nt(r,t,o)}catch(u){return Vi(u)?u:new pe(u)}}),tS=Rr(function(r,o){return Kt(o,function(u){u=yr(u),Cr(r,u,Yi(r[u],r))}),r});function rS(r){var o=r==null?0:r.length,u=re();return r=o?Ke(r,function(f){if(typeof f[1]!="function")throw new Jt(c);return[u(f[0]),f[1]]}):[],_e(function(f){for(var g=-1;++g<o;){var m=r[g];if(Nt(m[0],this,f))return Nt(m[1],this,f)}})}function nS(r){return Oy(Zt(r,y))}function Qi(r){return function(){return r}}function aS(r,o){return r==null||r!==r?o:r}var oS=xf(),sS=xf(!0);function Mt(r){return r}function eu(r){return tf(typeof r=="function"?r:Zt(r,y))}function iS(r){return nf(Zt(r,y))}function uS(r,o){return af(r,Zt(o,y))}var cS=_e(function(r,o){return function(u){return va(u,r,o)}}),lS=_e(function(r,o){return function(u){return va(r,u,o)}});function tu(r,o,u){var f=dt(o),g=Eo(o,f);u==null&&!(Ze(o)&&(g.length||!f.length))&&(u=o,o=r,r=this,g=Eo(o,dt(o)));var m=!(Ze(u)&&"chain"in u)||!!u.chain,S=Ar(r);return Kt(g,function(C){var A=o[C];r[C]=A,S&&(r.prototype[C]=function(){var L=this.__chain__;if(m||L){var N=r(this.__wrapped__),B=N.__actions__=It(this.__actions__);return B.push({func:A,args:arguments,thisArg:r}),N.__chain__=L,N}return A.apply(r,Gr([this.value()],arguments))})}),r}function fS(){return gt._===this&&(gt._=Nm),this}function ru(){}function dS(r){return r=me(r),_e(function(o){return of(o,r)})}var pS=Fi(Ke),hS=Fi(xl),gS=Fi(ai);function Td(r){return Bi(r)?oi(yr(r)):qy(r)}function vS(r){return function(o){return r==null?t:vn(r,o)}}var mS=Of(),yS=Of(!0);function nu(){return[]}function au(){return!1}function bS(){return{}}function _S(){return""}function ES(){return!0}function SS(r,o){if(r=me(r),r<1||r>rt)return[];var u=q,f=bt(r,q);o=re(o),r-=q;for(var g=ui(f,o);++u<r;)o(u);return g}function wS(r){return ve(r)?Ke(r,yr):Bt(r)?[r]:It(Gf(De(r)))}function TS(r){var o=++Mm;return De(r)+o}var CS=Ro(function(r,o){return r+o},0),xS=$i("ceil"),RS=Ro(function(r,o){return r/o},1),OS=$i("floor");function AS(r){return r&&r.length?_o(r,Mt,bi):t}function PS(r,o){return r&&r.length?_o(r,re(o,2),bi):t}function DS(r){return Al(r,Mt)}function IS(r,o){return Al(r,re(o,2))}function FS(r){return r&&r.length?_o(r,Mt,wi):t}function $S(r,o){return r&&r.length?_o(r,re(o,2),wi):t}var MS=Ro(function(r,o){return r*o},1),LS=$i("round"),NS=Ro(function(r,o){return r-o},0);function kS(r){return r&&r.length?ii(r,Mt):0}function jS(r,o){return r&&r.length?ii(r,re(o,2)):0}return v.after=i_,v.ary=td,v.assign=V_,v.assignIn=gd,v.assignInWith=Bo,v.assignWith=K_,v.at=J_,v.before=rd,v.bind=Yi,v.bindAll=tS,v.bindKey=nd,v.castArray=b_,v.chain=Zf,v.chunk=Ob,v.compact=Ab,v.concat=Pb,v.cond=rS,v.conforms=nS,v.constant=Qi,v.countBy=k0,v.create=X_,v.curry=ad,v.curryRight=od,v.debounce=sd,v.defaults=Z_,v.defaultsDeep=Q_,v.defer=u_,v.delay=c_,v.difference=Db,v.differenceBy=Ib,v.differenceWith=Fb,v.drop=$b,v.dropRight=Mb,v.dropRightWhile=Lb,v.dropWhile=Nb,v.fill=kb,v.filter=B0,v.flatMap=H0,v.flatMapDeep=G0,v.flatMapDepth=q0,v.flatten=Vf,v.flattenDeep=jb,v.flattenDepth=Bb,v.flip=l_,v.flow=oS,v.flowRight=sS,v.fromPairs=Wb,v.functions=sE,v.functionsIn=iE,v.groupBy=Y0,v.initial=Hb,v.intersection=Gb,v.intersectionBy=qb,v.intersectionWith=Yb,v.invert=cE,v.invertBy=lE,v.invokeMap=V0,v.iteratee=eu,v.keyBy=K0,v.keys=dt,v.keysIn=$t,v.map=$o,v.mapKeys=dE,v.mapValues=pE,v.matches=iS,v.matchesProperty=uS,v.memoize=Lo,v.merge=hE,v.mergeWith=vd,v.method=cS,v.methodOf=lS,v.mixin=tu,v.negate=No,v.nthArg=dS,v.omit=gE,v.omitBy=vE,v.once=f_,v.orderBy=J0,v.over=pS,v.overArgs=d_,v.overEvery=hS,v.overSome=gS,v.partial=zi,v.partialRight=id,v.partition=X0,v.pick=mE,v.pickBy=md,v.property=Td,v.propertyOf=vS,v.pull=Jb,v.pullAll=Jf,v.pullAllBy=Xb,v.pullAllWith=Zb,v.pullAt=Qb,v.range=mS,v.rangeRight=yS,v.rearg=p_,v.reject=e_,v.remove=e0,v.rest=h_,v.reverse=Gi,v.sampleSize=r_,v.set=bE,v.setWith=_E,v.shuffle=n_,v.slice=t0,v.sortBy=s_,v.sortedUniq=u0,v.sortedUniqBy=c0,v.split=HE,v.spread=g_,v.tail=l0,v.take=f0,v.takeRight=d0,v.takeRightWhile=p0,v.takeWhile=h0,v.tap=A0,v.throttle=v_,v.thru=Fo,v.toArray=dd,v.toPairs=yd,v.toPairsIn=bd,v.toPath=wS,v.toPlainObject=hd,v.transform=EE,v.unary=m_,v.union=g0,v.unionBy=v0,v.unionWith=m0,v.uniq=y0,v.uniqBy=b0,v.uniqWith=_0,v.unset=SE,v.unzip=qi,v.unzipWith=Xf,v.update=wE,v.updateWith=TE,v.values=jn,v.valuesIn=CE,v.without=E0,v.words=Sd,v.wrap=y_,v.xor=S0,v.xorBy=w0,v.xorWith=T0,v.zip=C0,v.zipObject=x0,v.zipObjectDeep=R0,v.zipWith=O0,v.entries=yd,v.entriesIn=bd,v.extend=gd,v.extendWith=Bo,tu(v,v),v.add=CS,v.attempt=wd,v.camelCase=AE,v.capitalize=_d,v.ceil=xS,v.clamp=xE,v.clone=__,v.cloneDeep=S_,v.cloneDeepWith=w_,v.cloneWith=E_,v.conformsTo=T_,v.deburr=Ed,v.defaultTo=aS,v.divide=RS,v.endsWith=PE,v.eq=cr,v.escape=DE,v.escapeRegExp=IE,v.every=j0,v.find=W0,v.findIndex=Yf,v.findKey=eE,v.findLast=U0,v.findLastIndex=zf,v.findLastKey=tE,v.floor=OS,v.forEach=Qf,v.forEachRight=ed,v.forIn=rE,v.forInRight=nE,v.forOwn=aE,v.forOwnRight=oE,v.get=Ji,v.gt=C_,v.gte=x_,v.has=uE,v.hasIn=Xi,v.head=Kf,v.identity=Mt,v.includes=z0,v.indexOf=Ub,v.inRange=RE,v.invoke=fE,v.isArguments=bn,v.isArray=ve,v.isArrayBuffer=R_,v.isArrayLike=Ft,v.isArrayLikeObject=nt,v.isBoolean=O_,v.isBuffer=Xr,v.isDate=A_,v.isElement=P_,v.isEmpty=D_,v.isEqual=I_,v.isEqualWith=F_,v.isError=Vi,v.isFinite=$_,v.isFunction=Ar,v.isInteger=ud,v.isLength=ko,v.isMap=cd,v.isMatch=M_,v.isMatchWith=L_,v.isNaN=N_,v.isNative=k_,v.isNil=B_,v.isNull=j_,v.isNumber=ld,v.isObject=Ze,v.isObjectLike=tt,v.isPlainObject=Sa,v.isRegExp=Ki,v.isSafeInteger=W_,v.isSet=fd,v.isString=jo,v.isSymbol=Bt,v.isTypedArray=kn,v.isUndefined=U_,v.isWeakMap=H_,v.isWeakSet=G_,v.join=zb,v.kebabCase=FE,v.last=er,v.lastIndexOf=Vb,v.lowerCase=$E,v.lowerFirst=ME,v.lt=q_,v.lte=Y_,v.max=AS,v.maxBy=PS,v.mean=DS,v.meanBy=IS,v.min=FS,v.minBy=$S,v.stubArray=nu,v.stubFalse=au,v.stubObject=bS,v.stubString=_S,v.stubTrue=ES,v.multiply=MS,v.nth=Kb,v.noConflict=fS,v.noop=ru,v.now=Mo,v.pad=LE,v.padEnd=NE,v.padStart=kE,v.parseInt=jE,v.random=OE,v.reduce=Z0,v.reduceRight=Q0,v.repeat=BE,v.replace=WE,v.result=yE,v.round=LS,v.runInContext=R,v.sample=t_,v.size=a_,v.snakeCase=UE,v.some=o_,v.sortedIndex=r0,v.sortedIndexBy=n0,v.sortedIndexOf=a0,v.sortedLastIndex=o0,v.sortedLastIndexBy=s0,v.sortedLastIndexOf=i0,v.startCase=GE,v.startsWith=qE,v.subtract=NS,v.sum=kS,v.sumBy=jS,v.template=YE,v.times=SS,v.toFinite=Pr,v.toInteger=me,v.toLength=pd,v.toLower=zE,v.toNumber=tr,v.toSafeInteger=z_,v.toString=De,v.toUpper=VE,v.trim=KE,v.trimEnd=JE,v.trimStart=XE,v.truncate=ZE,v.unescape=QE,v.uniqueId=TS,v.upperCase=eS,v.upperFirst=Zi,v.each=Qf,v.eachRight=ed,v.first=Kf,tu(v,function(){var r={};return vr(v,function(o,u){ke.call(v.prototype,u)||(r[u]=o)}),r}(),{chain:!1}),v.VERSION=a,Kt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){v[r].placeholder=v}),Kt(["drop","take"],function(r,o){we.prototype[r]=function(u){u=u===t?1:ct(me(u),0);var f=this.__filtered__&&!o?new we(this):this.clone();return f.__filtered__?f.__takeCount__=bt(u,f.__takeCount__):f.__views__.push({size:bt(u,q),type:r+(f.__dir__<0?"Right":"")}),f},we.prototype[r+"Right"]=function(u){return this.reverse()[r](u).reverse()}}),Kt(["filter","map","takeWhile"],function(r,o){var u=o+1,f=u==Pe||u==Qe;we.prototype[r]=function(g){var m=this.clone();return m.__iteratees__.push({iteratee:re(g,3),type:u}),m.__filtered__=m.__filtered__||f,m}}),Kt(["head","last"],function(r,o){var u="take"+(o?"Right":"");we.prototype[r]=function(){return this[u](1).value()[0]}}),Kt(["initial","tail"],function(r,o){var u="drop"+(o?"":"Right");we.prototype[r]=function(){return this.__filtered__?new we(this):this[u](1)}}),we.prototype.compact=function(){return this.filter(Mt)},we.prototype.find=function(r){return this.filter(r).head()},we.prototype.findLast=function(r){return this.reverse().find(r)},we.prototype.invokeMap=_e(function(r,o){return typeof r=="function"?new we(this):this.map(function(u){return va(u,r,o)})}),we.prototype.reject=function(r){return this.filter(No(re(r)))},we.prototype.slice=function(r,o){r=me(r);var u=this;return u.__filtered__&&(r>0||o<0)?new we(u):(r<0?u=u.takeRight(-r):r&&(u=u.drop(r)),o!==t&&(o=me(o),u=o<0?u.dropRight(-o):u.take(o-r)),u)},we.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},we.prototype.toArray=function(){return this.take(q)},vr(we.prototype,function(r,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),f=/^(?:head|last)$/.test(o),g=v[f?"take"+(o=="last"?"Right":""):o],m=f||/^find/.test(o);g&&(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=g.apply(v,Gr([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=m&&!V,be=A&&!ee;if(!m&&N){S=be?S:new we(this);var oe=r.apply(S,C);return oe.__actions__.push({func:Fo,args:[B],thisArg:t}),new Xt(oe,V)}return ae&&be?r.apply(this,C):(oe=this.thru(B),ae?f?oe.value()[0]:oe.value():oe)})}),Kt(["pop","push","shift","sort","splice","unshift"],function(r){var o=ao[r],u=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",f=/^(?:pop|shift)$/.test(r);v.prototype[r]=function(){var g=arguments;if(f&&!this.__chain__){var m=this.value();return o.apply(ve(m)?m:[],g)}return this[u](function(S){return o.apply(ve(S)?S:[],g)})}}),vr(we.prototype,function(r,o){var u=v[o];if(u){var f=u.name+"";ke.call(Fn,f)||(Fn[f]=[]),Fn[f].push({name:o,func:u})}}),Fn[xo(t,P).name]=[{name:"wrapper",func:t}],we.prototype.clone=Qm,we.prototype.reverse=ey,we.prototype.value=ty,v.prototype.at=P0,v.prototype.chain=D0,v.prototype.commit=I0,v.prototype.next=F0,v.prototype.plant=M0,v.prototype.reverse=L0,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=N0,v.prototype.first=v.prototype.head,ca&&(v.prototype[ca]=$0),v},Pn=Im();fn?((fn.exports=Pn)._=Pn,ei._=Pn):gt._=Pn}).call(Fr)})(cs,cs.exports);var He=cs.exports;const Sh=_s(He);function Tc(e){return`Debugger/${e}`}function wh(e,n){var a;const t=(a=n.name)==null?void 0:a.replace(/\.(4dm|4qs)$/,"");return`#${e} ${t}`}const lR=typeof process=="object"&&process&&process.platform==="win32";var fR=lR?{sep:"\\"}:{sep:"/"},dR=Th;function Th(e,n,t){e instanceof RegExp&&(e=ip(e,t)),n instanceof RegExp&&(n=ip(n,t));var a=Ch(e,n,t);return a&&{start:a[0],end:a[1],pre:t.slice(0,a[0]),body:t.slice(a[0]+e.length,a[1]),post:t.slice(a[1]+n.length)}}function ip(e,n){var t=n.match(e);return t?t[0]:null}Th.range=Ch;function Ch(e,n,t){var a,s,i,c,l,d=t.indexOf(e),p=t.indexOf(n,d+1),h=d;if(d>=0&&p>0){if(e===n)return[d,p];for(a=[],i=t.length;h>=0&&!l;)h==d?(a.push(h),d=t.indexOf(e,h+1)):a.length==1?l=[a.pop(),p]:(s=a.pop(),s<i&&(i=s,c=p),p=t.indexOf(n,h+1)),h=d<p&&d>=0?d:p;a.length&&(l=[i,c])}return l}var xh=dR,pR=vR,Rh="\0SLASH"+Math.random()+"\0",Oh="\0OPEN"+Math.random()+"\0",Cc="\0CLOSE"+Math.random()+"\0",Ah="\0COMMA"+Math.random()+"\0",Ph="\0PERIOD"+Math.random()+"\0";function vu(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function hR(e){return e.split("\\\\").join(Rh).split("\\{").join(Oh).split("\\}").join(Cc).split("\\,").join(Ah).split("\\.").join(Ph)}function gR(e){return e.split(Rh).join("\\").split(Oh).join("{").split(Cc).join("}").split(Ah).join(",").split(Ph).join(".")}function Dh(e){if(!e)return[""];var n=[],t=xh("{","}",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=Dh(i);return i.length&&(c[c.length-1]+=l.shift(),c.push.apply(c,l)),n.push.apply(n,c),n}function vR(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),xa(hR(e),!0).map(gR)):[]}function mR(e){return"{"+e+"}"}function yR(e){return/^-?0\d/.test(e)}function bR(e,n){return e<=n}function _R(e,n){return e>=n}function xa(e,n){var t=[],a=xh("{","}",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),h=d||p,y=a.body.indexOf(",")>=0;if(!h&&!y)return a.post.match(/,.*\}/)?(e=a.pre+"{"+a.body+Cc+a.post,xa(e)):[e];var _;if(h)_=a.body.split(/\.\./);else if(_=Dh(a.body),_.length===1&&(_=xa(_[0],!1).map(mR),_.length===1))return i.map(function(We){return a.pre+_[0]+We});var E;if(h){var T=vu(_[0]),x=vu(_[1]),D=Math.max(_[0].length,_[1].length),P=_.length==3?Math.abs(vu(_[2])):1,j=bR,M=x<T;M&&(P*=-1,j=_R);var k=_.some(yR);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 H=D-z.length;if(H>0){var Y=new Array(H+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];(!n||h||l)&&t.push(l)}}return t}const Ht=Ih=(e,n,t={})=>(ls(n),!t.nocomment&&n.charAt(0)==="#"?!1:new Os(n,t).match(e));var Ih=Ht;const Yu=fR;Ht.sep=Yu.sep;const fr=Symbol("globstar **");Ht.GLOBSTAR=fr;const ER=pR,up={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},zu="[^/]",mu=zu+"*?",SR="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",wR="(?:(?!(?:\\/|^)\\.).)*?",Fh=e=>e.split("").reduce((n,t)=>(n[t]=!0,n),{}),cp=Fh("().*{}+?[]^$\\!"),TR=Fh("[.("),lp=/\/+/;Ht.filter=(e,n={})=>(t,a,s)=>Ht(t,e,n);const Zr=(e,n={})=>{const t={};return Object.keys(e).forEach(a=>t[a]=e[a]),Object.keys(n).forEach(a=>t[a]=n[a]),t};Ht.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Ht;const n=Ht,t=(a,s,i)=>n(a,s,Zr(e,i));return t.Minimatch=class extends n.Minimatch{constructor(s,i){super(s,Zr(e,i))}},t.Minimatch.defaults=a=>n.defaults(Zr(e,a)).Minimatch,t.filter=(a,s)=>n.filter(a,Zr(e,s)),t.defaults=a=>n.defaults(Zr(e,a)),t.makeRe=(a,s)=>n.makeRe(a,Zr(e,s)),t.braceExpand=(a,s)=>n.braceExpand(a,Zr(e,s)),t.match=(a,s,i)=>n.match(a,s,Zr(e,i)),t};Ht.braceExpand=(e,n)=>$h(e,n);const $h=(e,n={})=>(ls(e),n.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:ER(e)),CR=1024*64,ls=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>CR)throw new TypeError("pattern is too long")},yu=Symbol("subparse");Ht.makeRe=(e,n)=>new Os(e,n||{}).makeRe();Ht.match=(e,n,t={})=>{const a=new Os(n,t);return e=e.filter(s=>a.match(s)),a.options.nonull&&!e.length&&e.push(n),e};const xR=e=>e.replace(/\\(.)/g,"$1"),RR=e=>e.replace(/\\([^-\]])/g,"$1"),OR=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),AR=e=>e.replace(/[[\]\\]/g,"\\$&");class Os{constructor(n,t){ls(n),t||(t={}),this.options=t,this.set=[],this.pattern=n,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}debug(){}make(){const n=this.pattern,t=this.options;if(!t.nocomment&&n.charAt(0)==="#"){this.comment=!0;return}if(!n){this.empty=!0;return}this.parseNegate();let a=this.globSet=this.braceExpand();t.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,a),a=this.globParts=a.map(s=>s.split(lp)),this.debug(this.pattern,a),a=a.map((s,i,c)=>s.map(this.parse,this)),this.debug(this.pattern,a),a=a.filter(s=>s.indexOf(!1)===-1),this.debug(this.pattern,a),this.set=a}parseNegate(){if(this.options.nonegate)return;const n=this.pattern;let t=!1,a=0;for(let s=0;s<n.length&&n.charAt(s)==="!";s++)t=!t,a++;a&&(this.pattern=n.slice(a)),this.negate=t}matchOne(n,t,a){var s=this.options;this.debug("matchOne",{this:this,file:n,pattern:t}),this.debug("matchOne",n.length,t.length);for(var i=0,c=0,l=n.length,d=t.length;i<l&&c<d;i++,c++){this.debug("matchOne loop");var p=t[c],h=n[i];if(this.debug(t,p,h),p===!1)return!1;if(p===fr){this.debug("GLOBSTAR",[t,p,h]);var y=i,_=c+1;if(_===d){for(this.debug("** at the end");i<l;i++)if(n[i]==="."||n[i]===".."||!s.dot&&n[i].charAt(0)===".")return!1;return!0}for(;y<l;){var E=n[y];if(this.debug(`
|
|
34
|
+
}`;var be=Td(function(){return Oe(m,ee+"return "+B).apply(t,S)});if(be.source=B,Vi(be))throw be;return be}function VE(r){return De(r).toLowerCase()}function KE(r){return De(r).toUpperCase()}function JE(r,o,u){if(r=De(r),r&&(u||o===t))return Il(r);if(!r||!(o=jt(o)))return r;var f=ir(r),g=ir(o),m=Fl(f,g),S=$l(f,g)+1;return Jr(f,m,S).join("")}function XE(r,o,u){if(r=De(r),r&&(u||o===t))return r.slice(0,Ll(r)+1);if(!r||!(o=jt(o)))return r;var f=ir(r),g=$l(f,ir(o))+1;return Jr(f,0,g).join("")}function ZE(r,o,u){if(r=De(r),r&&(u||o===t))return r.replace(J,"");if(!r||!(o=jt(o)))return r;var f=ir(r),g=Fl(f,ir(o));return Jr(f,g).join("")}function QE(r,o){var u=We,f=Te;if(Ze(o)){var g="separator"in o?o.separator:g;u="length"in o?me(o.length):u,f="omission"in o?jt(o.omission):f}r=De(r);var m=r.length;if(On(r)){var S=ir(r);m=S.length}if(u>=m)return r;var C=u-An(f);if(C<1)return f;var A=S?Jr(S,0,C).join(""):r.slice(0,C);if(g===t)return A+f;if(S&&(C+=A.length-C),Ki(g)){if(r.slice(C).search(g)){var L,N=A;for(g.global||(g=fi(g.source,De(zt.exec(g))+"g")),g.lastIndex=0;L=g.exec(N);)var B=L.index;A=A.slice(0,B===t?C:B)}}else if(r.indexOf(jt(g),C)!=C){var V=A.lastIndexOf(g);V>-1&&(A=A.slice(0,V))}return A+f}function eS(r){return r=De(r),r&&Va.test(r)?r.replace(za,Am):r}var tS=Ln(function(r,o,u){return r+(u?" ":"")+o.toUpperCase()}),Zi=Cf("toUpperCase");function wd(r,o,u){return r=De(r),o=u?t:o,o===t?Tm(r)?Im(r):gm(r):r.match(o)||[]}var Td=_e(function(r,o){try{return Nt(r,t,o)}catch(u){return Vi(u)?u:new pe(u)}}),rS=Rr(function(r,o){return Kt(o,function(u){u=yr(u),Cr(r,u,Yi(r[u],r))}),r});function nS(r){var o=r==null?0:r.length,u=re();return r=o?Ke(r,function(f){if(typeof f[1]!="function")throw new Jt(c);return[u(f[0]),f[1]]}):[],_e(function(f){for(var g=-1;++g<o;){var m=r[g];if(Nt(m[0],this,f))return Nt(m[1],this,f)}})}function aS(r){return Ay(Zt(r,y))}function Qi(r){return function(){return r}}function oS(r,o){return r==null||r!==r?o:r}var sS=Rf(),iS=Rf(!0);function Mt(r){return r}function eu(r){return rf(typeof r=="function"?r:Zt(r,y))}function uS(r){return af(Zt(r,y))}function cS(r,o){return of(r,Zt(o,y))}var lS=_e(function(r,o){return function(u){return va(u,r,o)}}),fS=_e(function(r,o){return function(u){return va(r,u,o)}});function tu(r,o,u){var f=dt(o),g=Eo(o,f);u==null&&!(Ze(o)&&(g.length||!f.length))&&(u=o,o=r,r=this,g=Eo(o,dt(o)));var m=!(Ze(u)&&"chain"in u)||!!u.chain,S=Ar(r);return Kt(g,function(C){var A=o[C];r[C]=A,S&&(r.prototype[C]=function(){var L=this.__chain__;if(m||L){var N=r(this.__wrapped__),B=N.__actions__=It(this.__actions__);return B.push({func:A,args:arguments,thisArg:r}),N.__chain__=L,N}return A.apply(r,Gr([this.value()],arguments))})}),r}function dS(){return gt._===this&&(gt._=km),this}function ru(){}function pS(r){return r=me(r),_e(function(o){return sf(o,r)})}var hS=Fi(Ke),gS=Fi(Rl),vS=Fi(ai);function Cd(r){return Bi(r)?oi(yr(r)):Yy(r)}function mS(r){return function(o){return r==null?t:vn(r,o)}}var yS=Af(),bS=Af(!0);function nu(){return[]}function au(){return!1}function _S(){return{}}function ES(){return""}function SS(){return!0}function wS(r,o){if(r=me(r),r<1||r>rt)return[];var u=q,f=bt(r,q);o=re(o),r-=q;for(var g=ui(f,o);++u<r;)o(u);return g}function TS(r){return ve(r)?Ke(r,yr):Bt(r)?[r]:It(qf(De(r)))}function CS(r){var o=++Lm;return De(r)+o}var xS=Ro(function(r,o){return r+o},0),RS=$i("ceil"),OS=Ro(function(r,o){return r/o},1),AS=$i("floor");function PS(r){return r&&r.length?_o(r,Mt,bi):t}function DS(r,o){return r&&r.length?_o(r,re(o,2),bi):t}function IS(r){return Pl(r,Mt)}function FS(r,o){return Pl(r,re(o,2))}function $S(r){return r&&r.length?_o(r,Mt,wi):t}function MS(r,o){return r&&r.length?_o(r,re(o,2),wi):t}var LS=Ro(function(r,o){return r*o},1),NS=$i("round"),kS=Ro(function(r,o){return r-o},0);function jS(r){return r&&r.length?ii(r,Mt):0}function BS(r,o){return r&&r.length?ii(r,re(o,2)):0}return v.after=u_,v.ary=rd,v.assign=K_,v.assignIn=vd,v.assignInWith=Bo,v.assignWith=J_,v.at=X_,v.before=nd,v.bind=Yi,v.bindAll=rS,v.bindKey=ad,v.castArray=__,v.chain=Qf,v.chunk=Ab,v.compact=Pb,v.concat=Db,v.cond=nS,v.conforms=aS,v.constant=Qi,v.countBy=j0,v.create=Z_,v.curry=od,v.curryRight=sd,v.debounce=id,v.defaults=Q_,v.defaultsDeep=eE,v.defer=c_,v.delay=l_,v.difference=Ib,v.differenceBy=Fb,v.differenceWith=$b,v.drop=Mb,v.dropRight=Lb,v.dropRightWhile=Nb,v.dropWhile=kb,v.fill=jb,v.filter=W0,v.flatMap=G0,v.flatMapDeep=q0,v.flatMapDepth=Y0,v.flatten=Kf,v.flattenDeep=Bb,v.flattenDepth=Wb,v.flip=f_,v.flow=sS,v.flowRight=iS,v.fromPairs=Ub,v.functions=iE,v.functionsIn=uE,v.groupBy=z0,v.initial=Gb,v.intersection=qb,v.intersectionBy=Yb,v.intersectionWith=zb,v.invert=lE,v.invertBy=fE,v.invokeMap=K0,v.iteratee=eu,v.keyBy=J0,v.keys=dt,v.keysIn=$t,v.map=$o,v.mapKeys=pE,v.mapValues=hE,v.matches=uS,v.matchesProperty=cS,v.memoize=Lo,v.merge=gE,v.mergeWith=md,v.method=lS,v.methodOf=fS,v.mixin=tu,v.negate=No,v.nthArg=pS,v.omit=vE,v.omitBy=mE,v.once=d_,v.orderBy=X0,v.over=hS,v.overArgs=p_,v.overEvery=gS,v.overSome=vS,v.partial=zi,v.partialRight=ud,v.partition=Z0,v.pick=yE,v.pickBy=yd,v.property=Cd,v.propertyOf=mS,v.pull=Xb,v.pullAll=Xf,v.pullAllBy=Zb,v.pullAllWith=Qb,v.pullAt=e0,v.range=yS,v.rangeRight=bS,v.rearg=h_,v.reject=t_,v.remove=t0,v.rest=g_,v.reverse=Gi,v.sampleSize=n_,v.set=_E,v.setWith=EE,v.shuffle=a_,v.slice=r0,v.sortBy=i_,v.sortedUniq=c0,v.sortedUniqBy=l0,v.split=GE,v.spread=v_,v.tail=f0,v.take=d0,v.takeRight=p0,v.takeRightWhile=h0,v.takeWhile=g0,v.tap=P0,v.throttle=m_,v.thru=Fo,v.toArray=pd,v.toPairs=bd,v.toPairsIn=_d,v.toPath=TS,v.toPlainObject=gd,v.transform=SE,v.unary=y_,v.union=v0,v.unionBy=m0,v.unionWith=y0,v.uniq=b0,v.uniqBy=_0,v.uniqWith=E0,v.unset=wE,v.unzip=qi,v.unzipWith=Zf,v.update=TE,v.updateWith=CE,v.values=jn,v.valuesIn=xE,v.without=S0,v.words=wd,v.wrap=b_,v.xor=w0,v.xorBy=T0,v.xorWith=C0,v.zip=x0,v.zipObject=R0,v.zipObjectDeep=O0,v.zipWith=A0,v.entries=bd,v.entriesIn=_d,v.extend=vd,v.extendWith=Bo,tu(v,v),v.add=xS,v.attempt=Td,v.camelCase=PE,v.capitalize=Ed,v.ceil=RS,v.clamp=RE,v.clone=E_,v.cloneDeep=w_,v.cloneDeepWith=T_,v.cloneWith=S_,v.conformsTo=C_,v.deburr=Sd,v.defaultTo=oS,v.divide=OS,v.endsWith=DE,v.eq=cr,v.escape=IE,v.escapeRegExp=FE,v.every=B0,v.find=U0,v.findIndex=zf,v.findKey=tE,v.findLast=H0,v.findLastIndex=Vf,v.findLastKey=rE,v.floor=AS,v.forEach=ed,v.forEachRight=td,v.forIn=nE,v.forInRight=aE,v.forOwn=oE,v.forOwnRight=sE,v.get=Ji,v.gt=x_,v.gte=R_,v.has=cE,v.hasIn=Xi,v.head=Jf,v.identity=Mt,v.includes=V0,v.indexOf=Hb,v.inRange=OE,v.invoke=dE,v.isArguments=bn,v.isArray=ve,v.isArrayBuffer=O_,v.isArrayLike=Ft,v.isArrayLikeObject=nt,v.isBoolean=A_,v.isBuffer=Xr,v.isDate=P_,v.isElement=D_,v.isEmpty=I_,v.isEqual=F_,v.isEqualWith=$_,v.isError=Vi,v.isFinite=M_,v.isFunction=Ar,v.isInteger=cd,v.isLength=ko,v.isMap=ld,v.isMatch=L_,v.isMatchWith=N_,v.isNaN=k_,v.isNative=j_,v.isNil=W_,v.isNull=B_,v.isNumber=fd,v.isObject=Ze,v.isObjectLike=tt,v.isPlainObject=Sa,v.isRegExp=Ki,v.isSafeInteger=U_,v.isSet=dd,v.isString=jo,v.isSymbol=Bt,v.isTypedArray=kn,v.isUndefined=H_,v.isWeakMap=G_,v.isWeakSet=q_,v.join=Vb,v.kebabCase=$E,v.last=er,v.lastIndexOf=Kb,v.lowerCase=ME,v.lowerFirst=LE,v.lt=Y_,v.lte=z_,v.max=PS,v.maxBy=DS,v.mean=IS,v.meanBy=FS,v.min=$S,v.minBy=MS,v.stubArray=nu,v.stubFalse=au,v.stubObject=_S,v.stubString=ES,v.stubTrue=SS,v.multiply=LS,v.nth=Jb,v.noConflict=dS,v.noop=ru,v.now=Mo,v.pad=NE,v.padEnd=kE,v.padStart=jE,v.parseInt=BE,v.random=AE,v.reduce=Q0,v.reduceRight=e_,v.repeat=WE,v.replace=UE,v.result=bE,v.round=NS,v.runInContext=R,v.sample=r_,v.size=o_,v.snakeCase=HE,v.some=s_,v.sortedIndex=n0,v.sortedIndexBy=a0,v.sortedIndexOf=o0,v.sortedLastIndex=s0,v.sortedLastIndexBy=i0,v.sortedLastIndexOf=u0,v.startCase=qE,v.startsWith=YE,v.subtract=kS,v.sum=jS,v.sumBy=BS,v.template=zE,v.times=wS,v.toFinite=Pr,v.toInteger=me,v.toLength=hd,v.toLower=VE,v.toNumber=tr,v.toSafeInteger=V_,v.toString=De,v.toUpper=KE,v.trim=JE,v.trimEnd=XE,v.trimStart=ZE,v.truncate=QE,v.unescape=eS,v.uniqueId=CS,v.upperCase=tS,v.upperFirst=Zi,v.each=ed,v.eachRight=td,v.first=Jf,tu(v,function(){var r={};return vr(v,function(o,u){ke.call(v.prototype,u)||(r[u]=o)}),r}(),{chain:!1}),v.VERSION=a,Kt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){v[r].placeholder=v}),Kt(["drop","take"],function(r,o){we.prototype[r]=function(u){u=u===t?1:ct(me(u),0);var f=this.__filtered__&&!o?new we(this):this.clone();return f.__filtered__?f.__takeCount__=bt(u,f.__takeCount__):f.__views__.push({size:bt(u,q),type:r+(f.__dir__<0?"Right":"")}),f},we.prototype[r+"Right"]=function(u){return this.reverse()[r](u).reverse()}}),Kt(["filter","map","takeWhile"],function(r,o){var u=o+1,f=u==Pe||u==Qe;we.prototype[r]=function(g){var m=this.clone();return m.__iteratees__.push({iteratee:re(g,3),type:u}),m.__filtered__=m.__filtered__||f,m}}),Kt(["head","last"],function(r,o){var u="take"+(o?"Right":"");we.prototype[r]=function(){return this[u](1).value()[0]}}),Kt(["initial","tail"],function(r,o){var u="drop"+(o?"":"Right");we.prototype[r]=function(){return this.__filtered__?new we(this):this[u](1)}}),we.prototype.compact=function(){return this.filter(Mt)},we.prototype.find=function(r){return this.filter(r).head()},we.prototype.findLast=function(r){return this.reverse().find(r)},we.prototype.invokeMap=_e(function(r,o){return typeof r=="function"?new we(this):this.map(function(u){return va(u,r,o)})}),we.prototype.reject=function(r){return this.filter(No(re(r)))},we.prototype.slice=function(r,o){r=me(r);var u=this;return u.__filtered__&&(r>0||o<0)?new we(u):(r<0?u=u.takeRight(-r):r&&(u=u.drop(r)),o!==t&&(o=me(o),u=o<0?u.dropRight(-o):u.take(o-r)),u)},we.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},we.prototype.toArray=function(){return this.take(q)},vr(we.prototype,function(r,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),f=/^(?:head|last)$/.test(o),g=v[f?"take"+(o=="last"?"Right":""):o],m=f||/^find/.test(o);g&&(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=g.apply(v,Gr([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=m&&!V,be=A&&!ee;if(!m&&N){S=be?S:new we(this);var oe=r.apply(S,C);return oe.__actions__.push({func:Fo,args:[B],thisArg:t}),new Xt(oe,V)}return ae&&be?r.apply(this,C):(oe=this.thru(B),ae?f?oe.value()[0]:oe.value():oe)})}),Kt(["pop","push","shift","sort","splice","unshift"],function(r){var o=ao[r],u=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",f=/^(?:pop|shift)$/.test(r);v.prototype[r]=function(){var g=arguments;if(f&&!this.__chain__){var m=this.value();return o.apply(ve(m)?m:[],g)}return this[u](function(S){return o.apply(ve(S)?S:[],g)})}}),vr(we.prototype,function(r,o){var u=v[o];if(u){var f=u.name+"";ke.call(Fn,f)||(Fn[f]=[]),Fn[f].push({name:o,func:u})}}),Fn[xo(t,P).name]=[{name:"wrapper",func:t}],we.prototype.clone=ey,we.prototype.reverse=ty,we.prototype.value=ry,v.prototype.at=D0,v.prototype.chain=I0,v.prototype.commit=F0,v.prototype.next=$0,v.prototype.plant=L0,v.prototype.reverse=N0,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=k0,v.prototype.first=v.prototype.head,ca&&(v.prototype[ca]=M0),v},Pn=Fm();fn?((fn.exports=Pn)._=Pn,ei._=Pn):gt._=Pn}).call(Fr)})(cs,cs.exports);var He=cs.exports;const wh=_s(He);function Cc(e){return`Debugger/${e}`}function Th(e,n){var a;const t=(a=n.name)==null?void 0:a.replace(/\.(4dm|4qs)$/,"");return`#${e} ${t}`}const fR=typeof process=="object"&&process&&process.platform==="win32";var dR=fR?{sep:"\\"}:{sep:"/"},pR=Ch;function Ch(e,n,t){e instanceof RegExp&&(e=up(e,t)),n instanceof RegExp&&(n=up(n,t));var a=xh(e,n,t);return a&&{start:a[0],end:a[1],pre:t.slice(0,a[0]),body:t.slice(a[0]+e.length,a[1]),post:t.slice(a[1]+n.length)}}function up(e,n){var t=n.match(e);return t?t[0]:null}Ch.range=xh;function xh(e,n,t){var a,s,i,c,l,d=t.indexOf(e),p=t.indexOf(n,d+1),h=d;if(d>=0&&p>0){if(e===n)return[d,p];for(a=[],i=t.length;h>=0&&!l;)h==d?(a.push(h),d=t.indexOf(e,h+1)):a.length==1?l=[a.pop(),p]:(s=a.pop(),s<i&&(i=s,c=p),p=t.indexOf(n,h+1)),h=d<p&&d>=0?d:p;a.length&&(l=[i,c])}return l}var Rh=pR,hR=mR,Oh="\0SLASH"+Math.random()+"\0",Ah="\0OPEN"+Math.random()+"\0",xc="\0CLOSE"+Math.random()+"\0",Ph="\0COMMA"+Math.random()+"\0",Dh="\0PERIOD"+Math.random()+"\0";function vu(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function gR(e){return e.split("\\\\").join(Oh).split("\\{").join(Ah).split("\\}").join(xc).split("\\,").join(Ph).split("\\.").join(Dh)}function vR(e){return e.split(Oh).join("\\").split(Ah).join("{").split(xc).join("}").split(Ph).join(",").split(Dh).join(".")}function Ih(e){if(!e)return[""];var n=[],t=Rh("{","}",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=Ih(i);return i.length&&(c[c.length-1]+=l.shift(),c.push.apply(c,l)),n.push.apply(n,c),n}function mR(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),xa(gR(e),!0).map(vR)):[]}function yR(e){return"{"+e+"}"}function bR(e){return/^-?0\d/.test(e)}function _R(e,n){return e<=n}function ER(e,n){return e>=n}function xa(e,n){var t=[],a=Rh("{","}",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),h=d||p,y=a.body.indexOf(",")>=0;if(!h&&!y)return a.post.match(/,.*\}/)?(e=a.pre+"{"+a.body+xc+a.post,xa(e)):[e];var _;if(h)_=a.body.split(/\.\./);else if(_=Ih(a.body),_.length===1&&(_=xa(_[0],!1).map(yR),_.length===1))return i.map(function(We){return a.pre+_[0]+We});var E;if(h){var T=vu(_[0]),x=vu(_[1]),D=Math.max(_[0].length,_[1].length),P=_.length==3?Math.abs(vu(_[2])):1,j=_R,M=x<T;M&&(P*=-1,j=ER);var k=_.some(bR);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 H=D-z.length;if(H>0){var Y=new Array(H+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];(!n||h||l)&&t.push(l)}}return t}const Ht=Fh=(e,n,t={})=>(ls(n),!t.nocomment&&n.charAt(0)==="#"?!1:new Os(n,t).match(e));var Fh=Ht;const Yu=dR;Ht.sep=Yu.sep;const fr=Symbol("globstar **");Ht.GLOBSTAR=fr;const SR=hR,cp={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},zu="[^/]",mu=zu+"*?",wR="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",TR="(?:(?!(?:\\/|^)\\.).)*?",$h=e=>e.split("").reduce((n,t)=>(n[t]=!0,n),{}),lp=$h("().*{}+?[]^$\\!"),CR=$h("[.("),fp=/\/+/;Ht.filter=(e,n={})=>(t,a,s)=>Ht(t,e,n);const Zr=(e,n={})=>{const t={};return Object.keys(e).forEach(a=>t[a]=e[a]),Object.keys(n).forEach(a=>t[a]=n[a]),t};Ht.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Ht;const n=Ht,t=(a,s,i)=>n(a,s,Zr(e,i));return t.Minimatch=class extends n.Minimatch{constructor(s,i){super(s,Zr(e,i))}},t.Minimatch.defaults=a=>n.defaults(Zr(e,a)).Minimatch,t.filter=(a,s)=>n.filter(a,Zr(e,s)),t.defaults=a=>n.defaults(Zr(e,a)),t.makeRe=(a,s)=>n.makeRe(a,Zr(e,s)),t.braceExpand=(a,s)=>n.braceExpand(a,Zr(e,s)),t.match=(a,s,i)=>n.match(a,s,Zr(e,i)),t};Ht.braceExpand=(e,n)=>Mh(e,n);const Mh=(e,n={})=>(ls(e),n.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:SR(e)),xR=1024*64,ls=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>xR)throw new TypeError("pattern is too long")},yu=Symbol("subparse");Ht.makeRe=(e,n)=>new Os(e,n||{}).makeRe();Ht.match=(e,n,t={})=>{const a=new Os(n,t);return e=e.filter(s=>a.match(s)),a.options.nonull&&!e.length&&e.push(n),e};const RR=e=>e.replace(/\\(.)/g,"$1"),OR=e=>e.replace(/\\([^-\]])/g,"$1"),AR=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),PR=e=>e.replace(/[[\]\\]/g,"\\$&");class Os{constructor(n,t){ls(n),t||(t={}),this.options=t,this.set=[],this.pattern=n,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}debug(){}make(){const n=this.pattern,t=this.options;if(!t.nocomment&&n.charAt(0)==="#"){this.comment=!0;return}if(!n){this.empty=!0;return}this.parseNegate();let a=this.globSet=this.braceExpand();t.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,a),a=this.globParts=a.map(s=>s.split(fp)),this.debug(this.pattern,a),a=a.map((s,i,c)=>s.map(this.parse,this)),this.debug(this.pattern,a),a=a.filter(s=>s.indexOf(!1)===-1),this.debug(this.pattern,a),this.set=a}parseNegate(){if(this.options.nonegate)return;const n=this.pattern;let t=!1,a=0;for(let s=0;s<n.length&&n.charAt(s)==="!";s++)t=!t,a++;a&&(this.pattern=n.slice(a)),this.negate=t}matchOne(n,t,a){var s=this.options;this.debug("matchOne",{this:this,file:n,pattern:t}),this.debug("matchOne",n.length,t.length);for(var i=0,c=0,l=n.length,d=t.length;i<l&&c<d;i++,c++){this.debug("matchOne loop");var p=t[c],h=n[i];if(this.debug(t,p,h),p===!1)return!1;if(p===fr){this.debug("GLOBSTAR",[t,p,h]);var y=i,_=c+1;if(_===d){for(this.debug("** at the end");i<l;i++)if(n[i]==="."||n[i]===".."||!s.dot&&n[i].charAt(0)===".")return!1;return!0}for(;y<l;){var E=n[y];if(this.debug(`
|
|
35
35
|
globstar while`,n,y,t,_,E),this.matchOne(n.slice(y),t.slice(_),a))return this.debug("globstar found match!",y,l,E),!0;if(E==="."||E===".."||!s.dot&&E.charAt(0)==="."){this.debug("dot detected!",n,y,t,_);break}this.debug("globstar swallow a segment, and continue"),y++}return!!(a&&(this.debug(`
|
|
36
|
-
>>> no match, partial?`,n,y,t,_),y===l))}var T;if(typeof p=="string"?(T=h===p,this.debug("string match",p,h,T)):(T=h.match(p),this.debug("pattern match",p,h,T)),!T)return!1}if(i===l&&c===d)return!0;if(i===l)return a;if(c===d)return i===l-1&&n[i]==="";throw new Error("wtf?")}braceExpand(){return
|
|
37
|
-
%s`,H,H,T,s);const Y=T.type==="*"?mu:T.type==="?"?zu:"\\"+T.type;i=!0,s=s.slice(0,T.reStart)+Y+"\\("+H}k(),c&&(s+="\\\\");const O=
|
|
36
|
+
>>> no match, partial?`,n,y,t,_),y===l))}var T;if(typeof p=="string"?(T=h===p,this.debug("string match",p,h,T)):(T=h.match(p),this.debug("pattern match",p,h,T)),!T)return!1}if(i===l&&c===d)return!0;if(i===l)return a;if(c===d)return i===l-1&&n[i]==="";throw new Error("wtf?")}braceExpand(){return Mh(this.pattern,this.options)}parse(n,t){ls(n);const a=this.options;if(n==="**")if(a.noglobstar)n="*";else return fr;if(n==="")return"";let s="",i=!1,c=!1;const l=[],d=[];let p,h=!1,y=-1,_=-1,E,T,x,D=n.charAt(0)===".",P=a.dot||D;const j=()=>D?"":P?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",M=H=>H.charAt(0)==="."?"":a.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",k=()=>{if(p){switch(p){case"*":s+=mu,i=!0;break;case"?":s+=zu,i=!0;break;default:s+="\\"+p;break}this.debug("clearStateChar %j %j",p,s),p=!1}};for(let H=0,Y;H<n.length&&(Y=n.charAt(H));H++){if(this.debug("%s %s %s %j",n,H,s,Y),c){if(Y==="/")return!1;lp[Y]&&(s+="\\"),s+=Y,c=!1;continue}switch(Y){case"/":return!1;case"\\":if(h&&n.charAt(H+1)==="-"){s+=Y;continue}k(),c=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",n,H,s,Y),h){this.debug(" in class"),Y==="!"&&H===_+1&&(Y="^"),s+=Y;continue}this.debug("call clearStateChar %j",p),k(),p=Y,a.noext&&k();continue;case"(":{if(h){s+="(";continue}if(!p){s+="\\(";continue}const te={type:p,start:H-1,reStart:s.length,open:cp[p].open,close:cp[p].close};this.debug(this.pattern," ",te),l.push(te),s+=te.open,te.start===0&&te.type!=="!"&&(D=!0,s+=M(n.slice(H+1))),this.debug("plType %j %j",p,s),p=!1;continue}case")":{const te=l[l.length-1];if(h||!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(h||!te){s+="\\|";continue}k(),s+="|",te.start===0&&te.type!=="!"&&(D=!0,s+=M(n.slice(H+1)));continue}case"[":if(k(),h){s+="\\"+Y;continue}h=!0,_=H,y=s.length,s+=Y;continue;case"]":if(H===_+1||!h){s+="\\"+Y;continue}E=n.substring(_+1,H);try{RegExp("["+PR(OR(E))+"]"),s+=Y}catch{s=s.substring(0,y)+"(?:$.)"}i=!0,h=!1;continue;default:k(),lp[Y]&&!(Y==="^"&&h)&&(s+="\\"),s+=Y;break}}for(h&&(E=n.slice(_+1),x=this.parse(E,yu),s=s.substring(0,y)+"\\["+x[0],i=i||x[1]),T=l.pop();T;T=l.pop()){let H;H=s.slice(T.reStart+T.open.length),this.debug("setting tail",s,T),H=H.replace(/((?:\\{2}){0,64})(\\?)\|/g,(te,We,Te)=>(Te||(Te="\\"),We+We+Te+"|")),this.debug(`tail=%j
|
|
37
|
+
%s`,H,H,T,s);const Y=T.type==="*"?mu:T.type==="?"?zu:"\\"+T.type;i=!0,s=s.slice(0,T.reStart)+Y+"\\("+H}k(),c&&(s+="\\\\");const O=CR[s.charAt(0)];for(let H=d.length-1;H>-1;H--){const Y=d[H],te=s.slice(0,Y.reStart),We=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 Ge=0;Ge<Pe;Ge++)it=it.replace(/\)[+*?]?/,"");Te=it;const Qe=Te===""&&t!==yu?"(?:$|\\/)":"";s=te+We+Te+Qe+st}if(s!==""&&i&&(s="(?=.)"+s),O&&(s=j()+s),t===yu)return[s,i];if(a.nocase&&!i&&(i=n.toUpperCase()!==n.toLowerCase()),!i)return RR(n);const z=a.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",z),{_glob:n,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const n=this.set;if(!n.length)return this.regexp=!1,this.regexp;const t=this.options,a=t.noglobstar?mu:t.dot?wR:TR,s=t.nocase?"i":"";let i=n.map(c=>(c=c.map(l=>typeof l=="string"?AR(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(n,t=this.partial){if(this.debug("match",n,this.pattern),this.comment)return!1;if(this.empty)return n==="";if(n==="/"&&t)return!0;const a=this.options;Yu.sep!=="/"&&(n=n.split(Yu.sep).join("/")),n=n.split(fp),this.debug(this.pattern,"split",n);const s=this.set;this.debug(this.pattern,"set",s);let i;for(let c=n.length-1;c>=0&&(i=n[c],!i);c--);for(let c=0;c<s.length;c++){const l=s[c];let d=n;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(n){return Ht.defaults(n).Minimatch}}Ht.Minimatch=Os;const Lh=_s(Fh),Nh=[{pattern:b.ROLES_TAB_PATH,editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:b.MODEL_TAB_PATH,editor:{key:"editors:model"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"**/*.webform",editor:{key:"editors:webforms"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"Methods/*.4dm",editor:{key:"editors:code:method",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Methods/*.4qs",editor:{key:"editors:code:method",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Classes/*.4dm",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Classes/*.4qs",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"**/*.+(json)",editor:{key:"editors:code",config:{language:"json"}}},{pattern:"**/*.+(js)",editor:{key:"editors:code",config:{language:"js"}}},{pattern:"**/*.+(css)",editor:{key:"editors:code",config:{language:"css"}}},{pattern:"**/*.+(txt)",editor:{key:"editors:code",config:{language:""}}},{pattern:"Debugger/*",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"**/*.+(png|jpeg|jpg|gif|svg)",editor:{key:"editors:img"}}],kh=[{pattern:"**/*.+(json|4DModel|WebForm)",type:"json"},{pattern:"**/*.+(4dm|txt|json|4qs)",type:"text"}];function jh(e){const n=e.split("/");return n.pop(),n.join("/")}function pr(e){const n=Nh.find(({pattern:t})=>Lh(e,t,{nocase:!0}));return n||{pattern:"",editor:{key:"editors:unknown",config:{language:"text"}}}}function Bh(e){const n=kh.find(({pattern:t})=>Lh(e,t,{nocase:!0}));return n?n.type:"text"}var Vu=function(e,n){return Vu=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])},Vu(e,n)};function As(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");Vu(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function Ku(e){var n=typeof Symbol=="function"&&Symbol.iterator,t=n&&e[n],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(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function fs(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var a=t.call(e),s,i=[],c;try{for(;(n===void 0||n-- >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 ds(e,n,t){if(t||arguments.length===2)for(var a=0,s=n.length,i;a<s;a++)(i||!(a in n))&&(i||(i=Array.prototype.slice.call(n,0,a)),i[a]=n[a]);return e.concat(i||Array.prototype.slice.call(n))}function $r(e){return typeof e=="function"}function Wh(e){var n=function(a){Error.call(a),a.stack=new Error().stack},t=e(n);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var bu=Wh(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 Ju(e,n){if(e){var t=e.indexOf(n);0<=t&&e.splice(t,1)}}var Ps=function(){function e(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var n,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=Ku(c),d=l.next();!d.done;d=l.next()){var p=d.value;p.remove(this)}}catch(x){n={error:x}}finally{try{d&&!d.done&&(t=l.return)&&t.call(l)}finally{if(n)throw n.error}}else c.remove(this);var h=this.initialTeardown;if($r(h))try{h()}catch(x){i=x instanceof bu?x.errors:[x]}var y=this._finalizers;if(y){this._finalizers=null;try{for(var _=Ku(y),E=_.next();!E.done;E=_.next()){var T=E.value;try{
|
|
39
|
+
`):"",this.name="UnsubscriptionError",this.errors=t}});function Ju(e,n){if(e){var t=e.indexOf(n);0<=t&&e.splice(t,1)}}var Ps=function(){function e(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var n,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=Ku(c),d=l.next();!d.done;d=l.next()){var p=d.value;p.remove(this)}}catch(x){n={error:x}}finally{try{d&&!d.done&&(t=l.return)&&t.call(l)}finally{if(n)throw n.error}}else c.remove(this);var h=this.initialTeardown;if($r(h))try{h()}catch(x){i=x instanceof bu?x.errors:[x]}var y=this._finalizers;if(y){this._finalizers=null;try{for(var _=Ku(y),E=_.next();!E.done;E=_.next()){var T=E.value;try{dp(T)}catch(x){i=i??[],x instanceof bu?i=ds(ds([],fs(i)),fs(x.errors)):i.push(x)}}}catch(x){a={error:x}}finally{try{E&&!E.done&&(s=_.return)&&s.call(_)}finally{if(a)throw a.error}}}if(i)throw new bu(i)}},e.prototype.add=function(n){var t;if(n&&n!==this)if(this.closed)dp(n);else{if(n instanceof e){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(n)}},e.prototype._hasParent=function(n){var t=this._parentage;return t===n||Array.isArray(t)&&t.includes(n)},e.prototype._addParent=function(n){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n},e.prototype._removeParent=function(n){var t=this._parentage;t===n?this._parentage=null:Array.isArray(t)&&Ju(t,n)},e.prototype.remove=function(n){var t=this._finalizers;t&&Ju(t,n),n instanceof e&&n._removeParent(this)},e.EMPTY=function(){var n=new e;return n.closed=!0,n}(),e}(),Uh=Ps.EMPTY;function Hh(e){return e instanceof Ps||e&&"closed"in e&&$r(e.remove)&&$r(e.add)&&$r(e.unsubscribe)}function dp(e){$r(e)?e():e.unsubscribe()}var Gh={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Xu={setTimeout:function(e,n){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];var s=Xu.delegate;return s!=null&&s.setTimeout?s.setTimeout.apply(s,ds([e,n],fs(t))):setTimeout.apply(void 0,ds([e,n],fs(t)))},clearTimeout:function(e){var n=Xu.delegate;return((n==null?void 0:n.clearTimeout)||clearTimeout)(e)},delegate:void 0};function DR(e){Xu.setTimeout(function(){throw e})}function pp(){}function Ko(e){e()}var qh=function(e){As(n,e);function n(t){var a=e.call(this)||this;return a.isStopped=!1,t?(a.destination=t,Hh(t)&&t.add(a)):a.destination=MR,a}return n.create=function(t,a,s){return new Zu(t,a,s)},n.prototype.next=function(t){this.isStopped||this._next(t)},n.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(t){this.destination.next(t)},n.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(Ps),IR=Function.prototype.bind;function _u(e,n){return IR.call(e,n)}var FR=function(){function e(n){this.partialObserver=n}return e.prototype.next=function(n){var t=this.partialObserver;if(t.next)try{t.next(n)}catch(a){Uo(a)}},e.prototype.error=function(n){var t=this.partialObserver;if(t.error)try{t.error(n)}catch(a){Uo(a)}else Uo(n)},e.prototype.complete=function(){var n=this.partialObserver;if(n.complete)try{n.complete()}catch(t){Uo(t)}},e}(),Zu=function(e){As(n,e);function n(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&&Gh.useDeprecatedNextContext?(l=Object.create(t),l.unsubscribe=function(){return i.unsubscribe()},c={next:t.next&&_u(t.next,l),error:t.error&&_u(t.error,l),complete:t.complete&&_u(t.complete,l)}):c=t}return i.destination=new FR(c),i}return n}(qh);function Uo(e){DR(e)}function $R(e){throw e}var MR={closed:!0,next:pp,error:$R,complete:pp},LR=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function NR(e){return e}function kR(e){return e.length===0?NR:e.length===1?e[0]:function(t){return e.reduce(function(a,s){return s(a)},t)}}var hp=function(){function e(n){n&&(this._subscribe=n)}return e.prototype.lift=function(n){var t=new e;return t.source=this,t.operator=n,t},e.prototype.subscribe=function(n,t,a){var s=this,i=BR(n)?n:new Zu(n,t,a);return Ko(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(n){try{return this._subscribe(n)}catch(t){n.error(t)}},e.prototype.forEach=function(n,t){var a=this;return t=gp(t),new t(function(s,i){var c=new Zu({next:function(l){try{n(l)}catch(d){i(d),c.unsubscribe()}},error:i,complete:s});a.subscribe(c)})},e.prototype._subscribe=function(n){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(n)},e.prototype[LR]=function(){return this},e.prototype.pipe=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return kR(n)(this)},e.prototype.toPromise=function(n){var t=this;return n=gp(n),new n(function(a,s){var i;t.subscribe(function(c){return i=c},function(c){return s(c)},function(){return a(i)})})},e.create=function(n){return new e(n)},e}();function gp(e){var n;return(n=e??Gh.Promise)!==null&&n!==void 0?n:Promise}function jR(e){return e&&$r(e.next)&&$r(e.error)&&$r(e.complete)}function BR(e){return e&&e instanceof qh||jR(e)&&Hh(e)}var WR=Wh(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Yh=function(e){As(n,e);function n(){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 n.prototype.lift=function(t){var a=new vp(this,this);return a.operator=t,a},n.prototype._throwIfClosed=function(){if(this.closed)throw new WR},n.prototype.next=function(t){var a=this;Ko(function(){var s,i;if(a._throwIfClosed(),!a.isStopped){a.currentObservers||(a.currentObservers=Array.from(a.observers));try{for(var c=Ku(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}}}})},n.prototype.error=function(t){var a=this;Ko(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)}})},n.prototype.complete=function(){var t=this;Ko(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var a=t.observers;a.length;)a.shift().complete()}})},n.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(n.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),n.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},n.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},n.prototype._innerSubscribe=function(t){var a=this,s=this,i=s.hasError,c=s.isStopped,l=s.observers;return i||c?Uh:(this.currentObservers=null,l.push(t),new Ps(function(){a.currentObservers=null,Ju(l,t)}))},n.prototype._checkFinalizedStatuses=function(t){var a=this,s=a.hasError,i=a.thrownError,c=a.isStopped;s?t.error(i):c&&t.complete()},n.prototype.asObservable=function(){var t=new hp;return t.source=this,t},n.create=function(t,a){return new vp(t,a)},n}(hp),vp=function(e){As(n,e);function n(t,a){var s=e.call(this)||this;return s.destination=t,s.source=a,s}return n.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)},n.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)},n.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)},n.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:Uh},n}(Yh);const zh=new Yh;var Qu={exports:{}},Ho={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 mp;function UR(){if(mp)return Ie;mp=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,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 n:switch(O=O.type,O){case d:case p:case a:case i:case s:case y:return O;default:switch(O=O&&O.$$typeof,O){case l:case h:case T:case E: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=n,Ie.ForwardRef=h,Ie.Fragment=a,Ie.Lazy=T,Ie.Memo=E,Ie.Portal=t,Ie.Profiler=i,Ie.StrictMode=s,Ie.Suspense=y,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===n},Ie.isForwardRef=function(O){return M(O)===h},Ie.isFragment=function(O){return M(O)===a},Ie.isLazy=function(O){return M(O)===T},Ie.isMemo=function(O){return M(O)===E},Ie.isPortal=function(O){return M(O)===t},Ie.isProfiler=function(O){return M(O)===i},Ie.isStrictMode=function(O){return M(O)===s},Ie.isSuspense=function(O){return M(O)===y},Ie.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===a||O===p||O===i||O===s||O===y||O===_||typeof O=="object"&&O!==null&&(O.$$typeof===T||O.$$typeof===E||O.$$typeof===c||O.$$typeof===l||O.$$typeof===h||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 yp;function HR(){return yp||(yp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,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===y||F===_||typeof F=="object"&&F!==null&&(F.$$typeof===T||F.$$typeof===E||F.$$typeof===c||F.$$typeof===l||F.$$typeof===h||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 n:var qe=F.type;switch(qe){case d:case p:case a:case i:case s:case y:return qe;default:var yt=qe&&qe.$$typeof;switch(yt){case l:case h:case T:case E:case c:return yt;default:return ze}}case t:return ze}}}var O=d,z=p,H=l,Y=c,te=n,We=h,Te=a,st=T,X=E,Pe=t,it=i,Qe=s,Ge=y,rt=!1;function qt(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 q(F){return k(F)===l}function de(F){return k(F)===c}function le(F){return typeof F=="object"&&F!==null&&F.$$typeof===n}function se(F){return k(F)===h}function fe(F){return k(F)===a}function ne(F){return k(F)===T}function ce(F){return k(F)===E}function ue(F){return k(F)===t}function he(F){return k(F)===i}function ge(F){return k(F)===s}function K(F){return k(F)===y}Fe.AsyncMode=O,Fe.ConcurrentMode=z,Fe.ContextConsumer=H,Fe.ContextProvider=Y,Fe.Element=te,Fe.ForwardRef=We,Fe.Fragment=Te,Fe.Lazy=st,Fe.Memo=X,Fe.Portal=Pe,Fe.Profiler=it,Fe.StrictMode=Qe,Fe.Suspense=Ge,Fe.isAsyncMode=qt,Fe.isConcurrentMode=W,Fe.isContextConsumer=q,Fe.isContextProvider=de,Fe.isElement=le,Fe.isForwardRef=se,Fe.isFragment=fe,Fe.isLazy=ne,Fe.isMemo=ce,Fe.isPortal=ue,Fe.isProfiler=he,Fe.isStrictMode=ge,Fe.isSuspense=K,Fe.isValidElementType=M,Fe.typeOf=k}()),Fe}var bp;function Vh(){return bp||(bp=1,process.env.NODE_ENV==="production"?Ho.exports=UR():Ho.exports=HR()),Ho.exports}/*
|
|
54
54
|
object-assign
|
|
55
55
|
(c) Sindre Sorhus
|
|
56
56
|
@license MIT
|
|
57
|
-
*/var Eu,
|
|
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(q)}function Pe(W){switch(typeof W){case"number":case"string":case"undefined":return!0;case"boolean":return!W;case"object":if(Array.isArray(W))return W.every(Pe);if(W===null||l(W))return!0;var q=y(W);if(q){var de=q.call(W),le;if(q!==W.entries){for(;!(le=de.next()).done;)if(!Pe(le.value))return!1}else for(;!(le=de.next()).done;){var se=le.value;if(se&&!Pe(se[1]))return!1}}else return!1;return!0;default:return!1}}function it(W,q){return W==="symbol"?!0:q?q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&q instanceof Symbol:!1}function Qe(W){var q=typeof W;return Array.isArray(W)?"array":W instanceof RegExp?"object":it(q,W)?"symbol":q}function Ge(W){if(typeof W>"u"||W===null)return""+W;var q=Qe(W);if(q==="object"){if(W instanceof Date)return"date";if(W instanceof RegExp)return"regexp"}return q}function rt(W){var q=Ge(W);switch(q){case"array":case"object":return"an "+q;case"boolean":case"date":case"regexp":return"a "+q;default:return q}}function qt(W){return!W.constructor||!W.constructor.name?_:W.constructor.name}return E.checkPropTypes=s,E.resetWarningCache=s.resetWarningCache,E.PropTypes=E,E},Cu}var xu,
|
|
57
|
+
*/var Eu,_p;function Rc(){if(_p)return Eu;_p=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function a(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function s(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var c={},l=0;l<10;l++)c["_"+String.fromCharCode(l)]=l;var d=Object.getOwnPropertyNames(c).map(function(h){return c[h]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(h){p[h]=h}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Eu=s()?Object.assign:function(i,c){for(var l,d=a(i),p,h=1;h<arguments.length;h++){l=Object(arguments[h]);for(var y in l)n.call(l,y)&&(d[y]=l[y]);if(e){p=e(l);for(var _=0;_<p.length;_++)t.call(l,p[_])&&(d[p[_]]=l[p[_]])}}return d},Eu}var Su,Ep;function Oc(){if(Ep)return Su;Ep=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Su=e,Su}var wu,Sp;function Kh(){return Sp||(Sp=1,wu=Function.call.bind(Object.prototype.hasOwnProperty)),wu}var Tu,wp;function GR(){if(wp)return Tu;wp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var n=Oc(),t={},a=Kh();e=function(i){var c="Warning: "+i;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}}}function s(i,c,l,d,p){if(process.env.NODE_ENV!=="production"){for(var h in i)if(a(i,h)){var y;try{if(typeof i[h]!="function"){var _=Error((d||"React class")+": "+l+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}y=i[h](c,h,d,l,null,n)}catch(T){y=T}if(y&&!(y instanceof Error)&&e((d||"React class")+": type specification of "+l+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof y+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),y instanceof Error&&!(y.message in t)){t[y.message]=!0;var E=p?p():"";e("Failed "+l+" type: "+y.message+(E??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},Tu=s,Tu}var Cu,Tp;function qR(){if(Tp)return Cu;Tp=1;var e=Vh(),n=Rc(),t=Oc(),a=Kh(),s=GR(),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 Cu=function(l,d){var p=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function y(W){var q=W&&(p&&W[p]||W[h]);if(typeof q=="function")return q}var _="<<anonymous>>",E={array:P("array"),bigint:P("bigint"),bool:P("boolean"),func:P("function"),number:P("number"),object:P("object"),string:P("string"),symbol:P("symbol"),any:j(),arrayOf:M,element:k(),elementType:O(),instanceOf:z,node:We(),objectOf:Y,oneOf:H,oneOfType:te,shape:st,exact:X};function T(W,q){return W===q?W!==0||1/W===1/q:W!==W&&q!==q}function x(W,q){this.message=W,this.data=q&&typeof q=="object"?q:{},this.stack=""}x.prototype=Error.prototype;function D(W){if(process.env.NODE_ENV!=="production")var q={},de=0;function le(fe,ne,ce,ue,he,ge,K){if(ue=ue||_,ge=ge||ce,K!==t){if(d){var F=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw F.name="Invariant Violation",F}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ze=ue+":"+ce;!q[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."),q[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 q(de,le,se,fe,ne,ce){var ue=de[le],he=Qe(ue);if(he!==W){var ge=Ge(ue);return new x("Invalid "+fe+" `"+ne+"` of type "+("`"+ge+"` supplied to `"+se+"`, expected ")+("`"+W+"`."),{expectedType:W})}return null}return D(q)}function j(){return D(c)}function M(W){function q(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(q)}function k(){function W(q,de,le,se,fe){var ne=q[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(q,de,le,se,fe){var ne=q[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 q(de,le,se,fe,ne){if(!(de[le]instanceof W)){var ce=W.name||_,ue=qt(de[le]);return new x("Invalid "+fe+" `"+ne+"` of type "+("`"+ue+"` supplied to `"+se+"`, expected ")+("instance of `"+ce+"`."))}return null}return D(q)}function H(W){if(!Array.isArray(W))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),c;function q(de,le,se,fe,ne){for(var ce=de[le],ue=0;ue<W.length;ue++)if(T(ce,W[ue]))return null;var he=JSON.stringify(W,function(K,F){var ze=Ge(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(q)}function Y(W){function q(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(q)}function te(W){if(!Array.isArray(W))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var q=0;q<W.length;q++){var de=W[q];if(typeof de!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+rt(de)+" at index "+q+"."),c}function le(se,fe,ne,ce,ue){for(var he=[],ge=0;ge<W.length;ge++){var K=W[ge],F=K(se,fe,ne,ce,ue,t);if(F==null)return null;F.data&&a(F.data,"expectedType")&&he.push(F.data.expectedType)}var ze=he.length>0?", expected one of type ["+he.join(", ")+"]":"";return new x("Invalid "+ce+" `"+ue+"` supplied to "+("`"+ne+"`"+ze+"."))}return D(le)}function We(){function W(q,de,le,se,fe){return Pe(q[de])?null:new x("Invalid "+se+" `"+fe+"` supplied to "+("`"+le+"`, expected a ReactNode."))}return D(W)}function Te(W,q,de,le,se){return new x((W||"React class")+": "+q+" type `"+de+"."+le+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+se+"`.")}function st(W){function q(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,Ge(ge));var K=ge(ce,he,se,fe,ne+"."+he,t);if(K)return K}return null}return D(q)}function X(W){function q(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=n({},de[le],W);for(var ge in he){var K=W[ge];if(a(W,ge)&&typeof K!="function")return Te(se,fe,ne,ge,Ge(K));if(!K)return new 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(q)}function Pe(W){switch(typeof W){case"number":case"string":case"undefined":return!0;case"boolean":return!W;case"object":if(Array.isArray(W))return W.every(Pe);if(W===null||l(W))return!0;var q=y(W);if(q){var de=q.call(W),le;if(q!==W.entries){for(;!(le=de.next()).done;)if(!Pe(le.value))return!1}else for(;!(le=de.next()).done;){var se=le.value;if(se&&!Pe(se[1]))return!1}}else return!1;return!0;default:return!1}}function it(W,q){return W==="symbol"?!0:q?q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&q instanceof Symbol:!1}function Qe(W){var q=typeof W;return Array.isArray(W)?"array":W instanceof RegExp?"object":it(q,W)?"symbol":q}function Ge(W){if(typeof W>"u"||W===null)return""+W;var q=Qe(W);if(q==="object"){if(W instanceof Date)return"date";if(W instanceof RegExp)return"regexp"}return q}function rt(W){var q=Ge(W);switch(q){case"array":case"object":return"an "+q;case"boolean":case"date":case"regexp":return"a "+q;default:return q}}function qt(W){return!W.constructor||!W.constructor.name?_:W.constructor.name}return E.checkPropTypes=s,E.resetWarningCache=s.resetWarningCache,E.PropTypes=E,E},Cu}var xu,Cp;function YR(){if(Cp)return xu;Cp=1;var e=Oc();function n(){}function t(){}return t.resetWarningCache=n,xu=function(){function a(c,l,d,p,h,y){if(y!==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:n};return i.PropTypes=i,i},xu}if(process.env.NODE_ENV!=="production"){var zR=Vh(),VR=!0;Qu.exports=qR()(zR.isElement,VR)}else Qu.exports=YR()();var KR=Qu.exports;const Wn=_s(KR);var Nr=pt.createContext(null);process.env.NODE_ENV!=="production"&&(Nr.displayName="ReactRedux");function JR(e){e()}var Jh=JR,XR=function(n){return Jh=n},ZR=function(){return Jh};function QR(){var e=ZR(),n=null,t=null;return{clear:function(){n=null,t=null},notify:function(){e(function(){for(var s=n;s;)s.callback(),s=s.next})},get:function(){for(var s=[],i=n;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:n=c,function(){!i||n===null||(i=!1,c.next?c.next.prev=c.prev:t=c.prev,c.prev?c.prev.next=c.next:n=c.next)}}}}var xp={notify:function(){},get:function(){return[]}};function Xh(e,n){var t,a=xp;function s(y){return d(),a.subscribe(y)}function i(){a.notify()}function c(){h.onStateChange&&h.onStateChange()}function l(){return!!t}function d(){t||(t=n?n.addNestedSub(c):e.subscribe(c),a=QR())}function p(){t&&(t(),t=void 0,a.clear(),a=xp)}var h={addNestedSub:s,notifyNestedSubs:i,handleChangeWrapper:c,isSubscribed:l,trySubscribe:d,tryUnsubscribe:p,getListeners:function(){return a}};return h}var ec=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?pt.useLayoutEffect:pt.useEffect;function Zh(e){var n=e.store,t=e.context,a=e.children,s=pt.useMemo(function(){var l=Xh(n);return{store:n,subscription:l}},[n]),i=pt.useMemo(function(){return n.getState()},[n]);ec(function(){var l=s.subscription;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),i!==n.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"&&(Zh.propTypes={store:Wn.shape({subscribe:Wn.func.isRequired,dispatch:Wn.func.isRequired,getState:Wn.func.isRequired}),context:Wn.object,children:Wn.any});var tc={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 Rp;function eO(){if(Rp)return $e;Rp=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,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 n:switch(O=O.type,O){case d:case p:case a:case i:case s:case y:return O;default:switch(O=O&&O.$$typeof,O){case l:case h:case T:case E: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=n,$e.ForwardRef=h,$e.Fragment=a,$e.Lazy=T,$e.Memo=E,$e.Portal=t,$e.Profiler=i,$e.StrictMode=s,$e.Suspense=y,$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===n},$e.isForwardRef=function(O){return M(O)===h},$e.isFragment=function(O){return M(O)===a},$e.isLazy=function(O){return M(O)===T},$e.isMemo=function(O){return M(O)===E},$e.isPortal=function(O){return M(O)===t},$e.isProfiler=function(O){return M(O)===i},$e.isStrictMode=function(O){return M(O)===s},$e.isSuspense=function(O){return M(O)===y},$e.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===a||O===p||O===i||O===s||O===y||O===_||typeof O=="object"&&O!==null&&(O.$$typeof===T||O.$$typeof===E||O.$$typeof===c||O.$$typeof===l||O.$$typeof===h||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 Op;function tO(){return Op||(Op=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,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===y||F===_||typeof F=="object"&&F!==null&&(F.$$typeof===T||F.$$typeof===E||F.$$typeof===c||F.$$typeof===l||F.$$typeof===h||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 n:var qe=F.type;switch(qe){case d:case p:case a:case i:case s:case y:return qe;default:var yt=qe&&qe.$$typeof;switch(yt){case l:case h:case T:case E:case c:return yt;default:return ze}}case t:return ze}}}var O=d,z=p,H=l,Y=c,te=n,We=h,Te=a,st=T,X=E,Pe=t,it=i,Qe=s,Ge=y,rt=!1;function qt(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 q(F){return k(F)===l}function de(F){return k(F)===c}function le(F){return typeof F=="object"&&F!==null&&F.$$typeof===n}function se(F){return k(F)===h}function fe(F){return k(F)===a}function ne(F){return k(F)===T}function ce(F){return k(F)===E}function ue(F){return k(F)===t}function he(F){return k(F)===i}function ge(F){return k(F)===s}function K(F){return k(F)===y}Me.AsyncMode=O,Me.ConcurrentMode=z,Me.ContextConsumer=H,Me.ContextProvider=Y,Me.Element=te,Me.ForwardRef=We,Me.Fragment=Te,Me.Lazy=st,Me.Memo=X,Me.Portal=Pe,Me.Profiler=it,Me.StrictMode=Qe,Me.Suspense=Ge,Me.isAsyncMode=qt,Me.isConcurrentMode=W,Me.isContextConsumer=q,Me.isContextProvider=de,Me.isElement=le,Me.isForwardRef=se,Me.isFragment=fe,Me.isLazy=ne,Me.isMemo=ce,Me.isPortal=ue,Me.isProfiler=he,Me.isStrictMode=ge,Me.isSuspense=K,Me.isValidElementType=M,Me.typeOf=k}()),Me}process.env.NODE_ENV==="production"?tc.exports=eO():tc.exports=tO();var rO=tc.exports,Qh=rO,nO={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},aO={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},eg={};eg[Qh.ForwardRef]=nO;eg[Qh.Memo]=aO;var je={};/** @license React v17.0.2
|
|
73
73
|
* react-is.production.min.js
|
|
74
74
|
*
|
|
75
75
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
76
76
|
*
|
|
77
77
|
* This source code is licensed under the MIT license found in the
|
|
78
78
|
* LICENSE file in the root directory of this source tree.
|
|
79
|
-
*/var
|
|
79
|
+
*/var Ap;function oO(){if(Ap)return je;Ap=1;var e=60103,n=60106,t=60107,a=60108,s=60114,i=60109,c=60110,l=60112,d=60113,p=60120,h=60115,y=60116,_=60121,E=60122,T=60117,x=60129,D=60131;if(typeof Symbol=="function"&&Symbol.for){var P=Symbol.for;e=P("react.element"),n=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"),h=P("react.memo"),y=P("react.lazy"),_=P("react.block"),E=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 y:case h:case i:return X;default:return Pe}}case n:return Pe}}}var M=i,k=e,O=l,z=t,H=y,Y=h,te=n,We=s,Te=a,st=d;return je.ContextConsumer=c,je.ContextProvider=M,je.Element=k,je.ForwardRef=O,je.Fragment=z,je.Lazy=H,je.Memo=Y,je.Portal=te,je.Profiler=We,je.StrictMode=Te,je.Suspense=st,je.isAsyncMode=function(){return!1},je.isConcurrentMode=function(){return!1},je.isContextConsumer=function(X){return j(X)===c},je.isContextProvider=function(X){return j(X)===i},je.isElement=function(X){return typeof X=="object"&&X!==null&&X.$$typeof===e},je.isForwardRef=function(X){return j(X)===l},je.isFragment=function(X){return j(X)===t},je.isLazy=function(X){return j(X)===y},je.isMemo=function(X){return j(X)===h},je.isPortal=function(X){return j(X)===n},je.isProfiler=function(X){return j(X)===s},je.isStrictMode=function(X){return j(X)===a},je.isSuspense=function(X){return j(X)===d},je.isValidElementType=function(X){return typeof X=="string"||typeof X=="function"||X===t||X===s||X===x||X===a||X===d||X===p||X===D||typeof X=="object"&&X!==null&&(X.$$typeof===y||X.$$typeof===h||X.$$typeof===i||X.$$typeof===c||X.$$typeof===l||X.$$typeof===T||X.$$typeof===_||X[0]===E)},je.typeOf=j,je}var Be={};/** @license React v17.0.2
|
|
80
80
|
* react-is.development.js
|
|
81
81
|
*
|
|
82
82
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
83
83
|
*
|
|
84
84
|
* This source code is licensed under the MIT license found in the
|
|
85
85
|
* LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/var
|
|
86
|
+
*/var Pp;function sO(){return Pp||(Pp=1,process.env.NODE_ENV!=="production"&&function(){var e=60103,n=60106,t=60107,a=60108,s=60114,i=60109,c=60110,l=60112,d=60113,p=60120,h=60115,y=60116,_=60121,E=60122,T=60117,x=60129,D=60131;if(typeof Symbol=="function"&&Symbol.for){var P=Symbol.for;e=P("react.element"),n=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"),h=P("react.memo"),y=P("react.lazy"),_=P("react.block"),E=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===y||K.$$typeof===h||K.$$typeof===i||K.$$typeof===c||K.$$typeof===l||K.$$typeof===T||K.$$typeof===_||K[0]===E))}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 qe=ze&&ze.$$typeof;switch(qe){case c:case l:case y:case h:case i:return qe;default:return F}}case n:return F}}}var O=c,z=i,H=e,Y=l,te=t,We=y,Te=h,st=n,X=s,Pe=a,it=d,Qe=!1,Ge=!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 qt(K){return Ge||(Ge=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function W(K){return k(K)===c}function q(K){return k(K)===i}function de(K){return typeof K=="object"&&K!==null&&K.$$typeof===e}function le(K){return k(K)===l}function se(K){return k(K)===t}function fe(K){return k(K)===y}function ne(K){return k(K)===h}function ce(K){return k(K)===n}function ue(K){return k(K)===s}function he(K){return k(K)===a}function ge(K){return k(K)===d}Be.ContextConsumer=O,Be.ContextProvider=z,Be.Element=H,Be.ForwardRef=Y,Be.Fragment=te,Be.Lazy=We,Be.Memo=Te,Be.Portal=st,Be.Profiler=X,Be.StrictMode=Pe,Be.Suspense=it,Be.isAsyncMode=rt,Be.isConcurrentMode=qt,Be.isContextConsumer=W,Be.isContextProvider=q,Be.isElement=de,Be.isForwardRef=le,Be.isFragment=se,Be.isLazy=fe,Be.isMemo=ne,Be.isPortal=ce,Be.isProfiler=ue,Be.isStrictMode=he,Be.isSuspense=ge,Be.isValidElementType=M,Be.typeOf=k}()),Be}process.env.NODE_ENV==="production"?oO():sO();function Dp(e,n){return e===n?e!==0||n!==0||1/e===1/n:e!==e&&n!==n}function tg(e,n){if(Dp(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var t=Object.keys(e),a=Object.keys(n);if(t.length!==a.length)return!1;for(var s=0;s<t.length;s++)if(!Object.prototype.hasOwnProperty.call(n,t[s])||!Dp(e[t[s]],n[t[s]]))return!1;return!0}function rg(){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 ng(e){e===void 0&&(e=Nr);var n=e===Nr?rg:function(){return pt.useContext(e)};return function(){var a=n(),s=a.store;return s}}var iO=ng();function uO(e){e===void 0&&(e=Nr);var n=e===Nr?iO:ng(e);return function(){var a=n();return a.dispatch}}var cO=uO(),lO=function(n,t){return n===t};function fO(e,n,t,a){var s=pt.useReducer(function(T){return T+1},0),i=s[1],c=pt.useMemo(function(){return Xh(t,a)},[t,a]),l=pt.useRef(),d=pt.useRef(),p=pt.useRef(),h=pt.useRef(),y=t.getState(),_;try{if(e!==d.current||y!==p.current||l.current){var E=e(y);h.current===void 0||!n(E,h.current)?_=E:_=h.current}else _=h.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 ec(function(){d.current=e,p.current=y,h.current=_,l.current=void 0}),ec(function(){function T(){try{var x=t.getState();if(x===p.current)return;var D=d.current(x);if(n(D,h.current))return;h.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 fO(e){e===void 0&&(e=Nr);var n=e===Nr?tg:function(){return pt.useContext(e)};return function(a,s){if(s===void 0&&(s=cO),process.env.NODE_ENV!=="production"){if(!a)throw new Error("You must pass a selector to useSelector");if(typeof a!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof s!="function")throw new Error("You must pass a function as an equality function to useSelector")}var i=n(),c=i.store,l=i.subscription,d=lO(a,s,c,l);return pt.useDebugValue(d),d}}var dO=fO();JR(BS.unstable_batchedUpdates);const pO=()=>uO(),kr=dO,Oc=G(e=>e,e=>e.catalog.state==="loaded"?e.catalog.model:null),hO=G(e=>e,({catalog:e})=>e.state),ng=G(Oc,e=>e?e.dataClasses:[]),gO=G(ng,e=>Object.values(e).filter(({virtual:n})=>n)),vO=G(Oc,e=>e?e.methods:[]),ag=e=>G(n=>n,n=>{switch(n.catalog.state){case"loaded":const t=e?n.catalog.model.dataClasses[e]:n.catalog.model;return(t==null?void 0:t.methods)||[];default:return[]}}),mO=e=>kr(ag(e),eg),yO=(e,n)=>G(ag(e),t=>t.find(a=>`${a.applyTo}.${a.name}`===n)),bO=(e,n,t)=>kr(yO(e,`${t}.${n}`),eg),og=G(e=>e,e=>e),_O=e=>G(jr,n=>{var s;const t=n.tabs.find(({path:i})=>i===e),a=t==null?void 0:t.content.components;return!t||!a?[]:(s=Object.keys(a))==null?void 0:s.map(i=>({id:i,...a[i]}))}),sg=e=>G(jr,n=>{var a,s;const t=n.tabs.find(({path:i})=>i===e);return((s=(a=t==null?void 0:t.content)==null?void 0:a.metadata)==null?void 0:s.datasources)||[]}),EO=(e,n,t)=>G(og,a=>{var s,i;if(n){const c=a.sharedDatasources.sources[n];return c?c.find(l=>l.id===e):void 0}else{const c=a.root.tabs.find(d=>d.path===t);return c?(i=(s=c.content.metadata)==null?void 0:s.datasources)==null?void 0:i.find(d=>d.id===e):void 0}}),ig=G(e=>e,e=>{var n;return((n=e.sharedDatasources)==null?void 0:n.sources)||[]}),SO=(e,n,t,a)=>G(sg(e),ig,(s,i)=>{const c=He.flatten(He.values(i)),l=[...n!=="private"?s:[],...n!=="shared"?c:[]];return t?l.filter(d=>(!a||a.every(({id:p,namespace:h=""})=>d.id!==p||(d.namespace||"")!==h))&&(t.includes(d.type)||d.dataType&&(t.includes(d.dataType)||t.includes("objectFromArray")&&d.dataType==="object"&&d.from))):l}),wO=G(e=>e.debugger,e=>e.meta),Tn=G(e=>e.debugger,e=>e.list),Dt=G(e=>e.debugger,e=>e.sessions),TO=G(Dt,e=>e.length),Sn=(e,n,t,a)=>e.find(s=>s.filePath===n&&s.methodName===t&&(!a||s.className===a)),ot=(e,n)=>e.find(t=>t.threadId===n),ug=(e,n)=>e.find(t=>t.tabPath===n),CO=(e,n)=>G(Tn,t=>{var a;return((a=Sn(t,e,n))==null?void 0:a.breakpoints.saved.locations)||[]}),xO=(e,n)=>G(Tn,t=>{var a;return((a=Sn(t,e,n))==null?void 0:a.breakpoints.draft.locations)||[]}),RO=e=>G(Tn,n=>n.filter(t=>t.filePath===e).reduce((t,a)=>[...t,...a.breakpoints.saved.locations.map(s=>({...s,line:s.line+(a.breakpoints.saved.offset||0)}))],[]).sort((t,a)=>t.line-a.line)),OO=e=>G(Tn,n=>n.filter(t=>t.filePath===e).reduce((t,a)=>[...t,...a.breakpoints.draft.locations.map(s=>({...s,line:s.line+(a.breakpoints.draft.offset||0)}))],[]).sort((t,a)=>t.line-a.line)),AO=e=>G(Dt,n=>{const t=ot(n,e);return t!=null&&t.stopped?t.highlightedLines:null}),PO=e=>G(Dt,n=>{const t=ot(n,e);return t!=null&&t.stopped?t.activeLine:null}),DO=e=>G(Dt,n=>{var t;return((t=ot(n,e))==null?void 0:t.expressions)||[]}),IO=e=>G(Dt,n=>{var t;return((t=ot(n,e))==null?void 0:t.stopped)||!1}),FO=(e,n)=>G(Tn,t=>{var a;return(a=Sn(t,e,n))==null?void 0:a.source}),$O=e=>G(Dt,n=>{var t;return((t=ug(n,e))==null?void 0:t.threadId)||-1}),MO=e=>G(Dt,n=>{var t,a;return(a=(t=ot(n,e))==null?void 0:t.currentStackFrame)==null?void 0:a.source}),LO=e=>G(Dt,n=>{var t;return(t=ot(n,e))==null?void 0:t.currentStackFrame}),NO=G(Dt,e=>e.map(({channelId:n,threadId:t})=>({id:n,threadId:t}))),kO=e=>G(Dt,n=>{var t;return((t=ot(n,e))==null?void 0:t.stackFrames)||[]}),jO=e=>G(Dt,n=>{var t,a;return((a=(t=ot(n,e))==null?void 0:t.variables)==null?void 0:a.callchain)||[]}),BO=e=>G(Dt,n=>{var t,a;return((a=(t=ot(n,e))==null?void 0:t.variables)==null?void 0:a.expressions)||[]}),WO=(e,n="saved")=>G(Tn,t=>{const a=t.find(s=>s.filePath===e);return(a==null?void 0:a.breakpoints[n].offset)||0}),UO=(e,n,t,a)=>G(Dt,s=>{var p;const i=((p=ot(s,e))==null?void 0:p.exceptions)||[],c=n===b.FileFolderType.CLASS,l=c&&a?`${a}.${t}`:t;return(l?i.filter(h=>h.location===l):i).map(h=>({...h,locationLine:c?h.locationLine:h.locationLine+1}))}),jr=G(e=>e.root,e=>e),ta=G(jr,e=>e.tabs),HO=G(jr,e=>e.activeTab),GO=G(jr,e=>e.recent.filter(({type:n})=>n!==b.FileFolderType.DEBUGGER)),qO=G(jr,({tabs:e,activeTab:n})=>e.find(({path:t})=>t===n)),YO=G(jr,({tabs:e})=>e.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null)),zO=G(ta,e=>e.filter(({type:n,flags:t})=>n===b.FileFolderType.WEBFORM&&t.enabled===!1).map(({path:n})=>n)),VO=G(ta,e=>e.length>0),ra=e=>G(jr,n=>n.tabs.find(({path:t})=>t===e)),cg=(e,n="")=>G(ra(e),t=>!t||!t.content||typeof t.content=="string"?t==null?void 0:t.content:He.get(t.content,n)),KO=e=>G(ra(e),n=>n==null?void 0:n.extra),JO=(e,n=t=>t)=>G(cg(e,"components"),t=>n(t||{})),Ac=G(ta,e=>e.filter(n=>n.flags.touched)),XO=G(Ac,e=>e.length),ZO=G(Dt,e=>e.map(({threadId:n,currentStackFrame:{source:t},tabPath:a})=>({name:wh(n,t),path:a,type:b.FileFolderType.DEBUGGER,content:t==null?void 0:t.content,flags:{},extra:{source:t}}))),QO=G(e=>e,e=>e.explorer||[]),lg=G(e=>e,e=>e.explorer.find(n=>n.path===b.FolderRootPath.WEBFORMS)),fg=G(e=>e,e=>e.explorer.find(n=>n.path===b.FolderRootPath.METHODS)),dg=G(e=>e,e=>e.explorer.find(n=>n.path===b.FolderRootPath.CLASSES)),eA=G(fg,e=>(e==null?void 0:e.children)||[]),tA=G(lg,e=>(e==null?void 0:e.children)||[]),rA=G(dg,e=>(e==null?void 0:e.children)||[]),nA=G(e=>e.modals,e=>e.list),aA=G(e=>e.roles,e=>Ns(e)),oA=G(e=>e.roles,({roles:e})=>e),sA=G(e=>e.roles,({privileges:e})=>e),iA=G(e=>e.roles,({privileges:e})=>Object.values(e).find(({privilege:n})=>n==="guest")),uA=G(e=>e.roles,({flags:e})=>e),cA=G(e=>e.roles,({selectedTab:e})=>e),lA=G(e=>e.roles,({forceLogin:e})=>e),fA=G(e=>e.roles,({date:e})=>e),Pc=G(e=>e.settings,e=>e.session),dA=(...e)=>G(Pc,n=>e.length>0?He.pick(n,e):n),pA=G(e=>e.settings,e=>e.project),hA=G(e=>e.settings,e=>e),Dc=G(e=>e.settings,e=>e.server),gA=G(Dc,e=>e.remoteDebuggerMode),vA=G(Dc,e=>e.qodly),mA=G(Pc,e=>e["monaco.zoom"]),pg=["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"],hg=pg.map(e=>({id:mc(),content:"",name:e,parentId:null,scope:b.EWebFormStyleClassScope.THEME})),Ic=e=>G(ra(e),n=>{var t,a;return((a=(t=n==null?void 0:n.content)==null?void 0:t.metadata)==null?void 0:a.styles)||[]}),yA=(e,n)=>G(Ic(e),t=>n.map(a=>{switch(!0){case a===b.EWebFormStyleClassScope.LOCAL:return t.map(s=>({...s,scope:b.EWebFormStyleClassScope.LOCAL}));case a===b.EWebFormStyleClassScope.THEME:return hg;default:return[]}}).flat()),bA=e=>G(Ic(e),n=>[...n.map(t=>({...t,scope:b.EWebFormStyleClassScope.LOCAL})),...hg]),_A=G(e=>e,e=>{var n;return[...(((n=e.sharedCSS)==null?void 0:n.styles)||[]).map(t=>({...t,scope:b.EWebFormStyleClassScope.SHARED}))]}),EA=e=>G(ra(e),n=>n==null?void 0:n.flags),Wa=G(e=>e.webforms,e=>e),gg=G(Wa,e=>(e==null?void 0:e.components)||[]),Ds=G(Wa,e=>e.inspector),SA=G(Ds,e=>e.css),wA=G(Ds,e=>e.datasource),vg=G(Wa,e=>e.templates||{data:[]}),TA=G(vg,e=>e.data||[]),CA=e=>G(gg,n=>n.find(t=>t.id===e)),xA=e=>G(Ds,n=>n[e]),RA=G(Wa,e=>e.datasources.theme),OA=G(e=>e.catalog,e=>e.sharedDatasources,e=>e.sharedCSS,(e,n,t)=>[e.state,n.state,t.state].every(a=>["loaded","error"].includes(a))),Fc={label:"Base",id:"root"},AA=e=>G(ra(e),n=>{var t,a;return((a=(t=n==null?void 0:n.content)==null?void 0:t.metadata)==null?void 0:a.states)||[Fc]});var $c=(e=>(e.SHOW_AFTER_TIMEOUT="show_after_timeout",e.HIDE_AFTER_TIMEOUT="hide_after_timeout",e))($c||{}),Mc=(e=>(e.NONE="none",e.SAVE_ALL_AND_PROCEED="saved_all_and_proceed",e.PROCEED="proceed",e))(Mc||{}),Lc=(e=>(e.AIRY="airy",e.COMPACT="neutral",e))(Lc||{}),Go,PA=new Uint8Array(16);function mg(){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(PA)}const DA=/^(?:[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 Is(e){return typeof e=="string"&&DA.test(e)}var mt=[];for(var Ru=0;Ru<256;++Ru)mt.push((Ru+256).toString(16).substr(1));function Fs(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(mt[e[n+0]]+mt[e[n+1]]+mt[e[n+2]]+mt[e[n+3]]+"-"+mt[e[n+4]]+mt[e[n+5]]+"-"+mt[e[n+6]]+mt[e[n+7]]+"-"+mt[e[n+8]]+mt[e[n+9]]+"-"+mt[e[n+10]]+mt[e[n+11]]+mt[e[n+12]]+mt[e[n+13]]+mt[e[n+14]]+mt[e[n+15]]).toLowerCase();if(!Is(t))throw TypeError("Stringified UUID is invalid");return t}var Dp,Ou,Au=0,Pu=0;function IA(e,n,t){var a=n&&t||0,s=n||new Array(16);e=e||{};var i=e.node||Dp,c=e.clockseq!==void 0?e.clockseq:Ou;if(i==null||c==null){var l=e.random||(e.rng||mg)();i==null&&(i=Dp=[l[0]|1,l[1],l[2],l[3],l[4],l[5]]),c==null&&(c=Ou=(l[6]<<8|l[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),p=e.nsecs!==void 0?e.nsecs:Pu+1,h=d-Au+(p-Pu)/1e4;if(h<0&&e.clockseq===void 0&&(c=c+1&16383),(h<0||d>Au)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Au=d,Pu=p,Ou=c,d+=122192928e5;var y=((d&268435455)*1e4+p)%4294967296;s[a++]=y>>>24&255,s[a++]=y>>>16&255,s[a++]=y>>>8&255,s[a++]=y&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 n||Fs(s)}function yg(e){if(!Is(e))throw TypeError("Invalid UUID");var n,t=new Uint8Array(16);return t[0]=(n=parseInt(e.slice(0,8),16))>>>24,t[1]=n>>>16&255,t[2]=n>>>8&255,t[3]=n&255,t[4]=(n=parseInt(e.slice(9,13),16))>>>8,t[5]=n&255,t[6]=(n=parseInt(e.slice(14,18),16))>>>8,t[7]=n&255,t[8]=(n=parseInt(e.slice(19,23),16))>>>8,t[9]=n&255,t[10]=(n=parseInt(e.slice(24,36),16))/1099511627776&255,t[11]=n/4294967296&255,t[12]=n>>>24&255,t[13]=n>>>16&255,t[14]=n>>>8&255,t[15]=n&255,t}function FA(e){e=unescape(encodeURIComponent(e));for(var n=[],t=0;t<e.length;++t)n.push(e.charCodeAt(t));return n}var $A="6ba7b810-9dad-11d1-80b4-00c04fd430c8",MA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function bg(e,n,t){function a(s,i,c,l){if(typeof s=="string"&&(s=FA(s)),typeof i=="string"&&(i=yg(i)),i.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var d=new Uint8Array(16+s.length);if(d.set(i),d.set(s,i.length),d=t(d),d[6]=d[6]&15|n,d[8]=d[8]&63|128,c){l=l||0;for(var p=0;p<16;++p)c[l+p]=d[p];return c}return Fs(d)}try{a.name=e}catch{}return a.DNS=$A,a.URL=MA,a}function LA(e){if(typeof e=="string"){var n=unescape(encodeURIComponent(e));e=new Uint8Array(n.length);for(var t=0;t<n.length;++t)e[t]=n.charCodeAt(t)}return NA(kA(jA(e),e.length*8))}function NA(e){for(var n=[],t=e.length*32,a="0123456789abcdef",s=0;s<t;s+=8){var i=e[s>>5]>>>s%32&255,c=parseInt(a.charAt(i>>>4&15)+a.charAt(i&15),16);n.push(c)}return n}function _g(e){return(e+64>>>9<<4)+14+1}function kA(e,n){e[n>>5]|=128<<n%32,e[_g(n)-1]=n;for(var t=1732584193,a=-271733879,s=-1732584194,i=271733878,c=0;c<e.length;c+=16){var l=t,d=a,p=s,h=i;t=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,h)}return[t,a,s,i]}function jA(e){if(e.length===0)return[];for(var n=e.length*8,t=new Uint32Array(_g(n)),a=0;a<n;a+=8)t[a>>5]|=(e[a/8]&255)<<a%32;return t}function Qr(e,n){var t=(e&65535)+(n&65535),a=(e>>16)+(n>>16)+(t>>16);return a<<16|t&65535}function BA(e,n){return e<<n|e>>>32-n}function $s(e,n,t,a,s,i){return Qr(BA(Qr(Qr(n,e),Qr(a,i)),s),t)}function Et(e,n,t,a,s,i,c){return $s(n&t|~n&a,e,n,s,i,c)}function St(e,n,t,a,s,i,c){return $s(n&a|t&~a,e,n,s,i,c)}function wt(e,n,t,a,s,i,c){return $s(n^t^a,e,n,s,i,c)}function Tt(e,n,t,a,s,i,c){return $s(t^(n|~a),e,n,s,i,c)}var WA=bg("v3",48,LA);const UA=WA;function HA(e,n,t){e=e||{};var a=e.random||(e.rng||mg)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,n){t=t||0;for(var s=0;s<16;++s)n[t+s]=a[s];return n}return Fs(a)}function GA(e,n,t,a){switch(e){case 0:return n&t^~n&a;case 1:return n^t^a;case 2:return n&t^n&a^t&a;case 3:return n^t^a}}function Du(e,n){return e<<n|e>>>32-n}function qA(e){var n=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var a=unescape(encodeURIComponent(e));e=[];for(var s=0;s<a.length;++s)e.push(a.charCodeAt(s))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,c=Math.ceil(i/16),l=new Array(c),d=0;d<c;++d){for(var p=new Uint32Array(16),h=0;h<16;++h)p[h]=e[d*64+h*4]<<24|e[d*64+h*4+1]<<16|e[d*64+h*4+2]<<8|e[d*64+h*4+3];l[d]=p}l[c-1][14]=(e.length-1)*8/Math.pow(2,32),l[c-1][14]=Math.floor(l[c-1][14]),l[c-1][15]=(e.length-1)*8&4294967295;for(var y=0;y<c;++y){for(var _=new Uint32Array(80),E=0;E<16;++E)_[E]=l[y][E];for(var T=16;T<80;++T)_[T]=Du(_[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=Du(x,5)+GA(O,D,P,j)+M+n[O]+_[k]>>>0;M=j,j=P,P=Du(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 YA=bg("v5",80,qA);const zA=YA,VA="00000000-0000-0000-0000-000000000000";function KA(e){if(!Is(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const JA=Object.freeze(Object.defineProperty({__proto__:null,NIL:VA,parse:yg,stringify:Fs,v1:IA,v3:UA,v4:HA,v5:zA,validate:Is,version:KA},Symbol.toStringTag,{value:"Module"})),XA=qw(JA);function Nc(e,n){if(!e||!n||!e.length||!n.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=n}Nc.prototype.convert=function(e){var n,t,a,s={},i=this.srcAlphabet.length,c=this.dstAlphabet.length,l=e.length,d=typeof e=="string"?"":[];if(!this.isValid(e))throw new Error('Number "'+e+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return e;for(n=0;n<l;n++)s[n]=this.srcAlphabet.indexOf(e[n]);do{for(t=0,a=0,n=0;n<l;n++)t=t*i+s[n],t>=c?(s[a++]=parseInt(t/c,10),t=t%c):a>0&&(s[a++]=0);l=a,d=this.dstAlphabet.slice(t,t+1).concat(d)}while(a!==0);return d};Nc.prototype.isValid=function(e){for(var n=0;n<e.length;++n)if(this.srcAlphabet.indexOf(e[n])===-1)return!1;return!0};var ZA=Nc,QA=ZA;function Ua(e,n){var t=new QA(e,n);return function(a){return t.convert(a)}}Ua.BIN="01";Ua.OCT="01234567";Ua.DEC="0123456789";Ua.HEX="0123456789abcdef";var eP=Ua;const{v4:Iu}=XA,qo=eP,Fu="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",tP="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",rP={consistentLength:!0};let $u;const Ip=(e,n,t)=>{const a=n(e.toLowerCase().replace(/-/g,""));return!t||!t.consistentLength?a:a.padStart(t.shortIdLength,t.paddingChar)},nP=(e,n)=>{const a=n(e).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[a[1],a[2],a[3],a[4],a[5]].join("-")},aP=e=>Math.ceil(Math.log(2**128)/Math.log(e));var ps=(()=>{const e=(n,t)=>{const a=n||Fu,s={...rP,...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=aP(a.length),c={shortIdLength:i,consistentLength:s.consistentLength,paddingChar:a[0]},l=qo(qo.HEX,a),d=qo(a,qo.HEX),p=()=>Ip(Iu(),l,c),h={new:p,generate:p,uuid:Iu,fromUUID:y=>Ip(y,l,c),toUUID:y=>nP(y,d),alphabet:a,maxLength:i};return Object.freeze(h),h};return e.constants={flickrBase58:Fu,cookieBase90:tP},e.uuid=Iu,e.generate=()=>($u||($u=e(Fu).generate),$u()),e})(),Ae=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e))(Ae||{});const oP=[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE,Ae.METHOD],hs="guest",kc=[{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 rr(e,...n){return Array.from(new Set([...e,...n]))}function Eg(e){const n={},t=new Map;e.forEach(d=>{const p=d.id||ps.generate();n[p]={...d,id:p,parents:[],includes:rr(d.includes||[]),resources:[]},t.set(d.privilege,p)}),Object.entries(n).forEach(([d,p])=>{const h=p.includes.map(y=>{const _=t.get(y);return _?(n[_].parents=rr(n[_].parents,_),_):""}).filter(Boolean);n[d]={...p,includes:h}});const a=Sg(n),s=new Set;function i(d){s.add(d.id),d.includes=d.includes.filter(p=>!s.has(p))}if(a.forEach(i),a.forEach(d=>d.parents=[]),a.forEach(d=>{d.includes.forEach(p=>n[p].parents.push(d.id))}),Object.values(n).find(({privilege:d})=>d===hs))return n;const l=ps.generate();return{[l]:{id:l,privilege:hs,includes:[],parents:[],resources:[]},...n}}function Sg(e){return Object.values(e).sort((n,t)=>n.parents.length-t.parents.length)}function Ms(e,n){const t=n[e];let a=[];return t&&t.parents.forEach(s=>{a=rr(a,...Ms(s,n),s)}),a}function gs(e,n){const t=n[e];let a=[];return t&&t.includes.forEach(s=>{a=rr(a,...gs(s,n),s)}),a}function sP(e,n){const t=n[e];if(!t)return[];const a=[e,...Ms(e,n),...t.includes];return Object.keys(n).filter(s=>!a.includes(s))}function iP(e,n){return n[e]?Object.keys(n).reduce((a,s)=>s===e?a:{...a,[s]:{...n[s],parents:n[s].parents.filter(i=>i!==e),includes:n[s].includes.filter(i=>i!==e)}},{}):n}function uP(e,n,t){const a=t[e],s=t[n];return!a||!s?t:{...t,[e]:{...t[e],includes:rr(a.includes,n)},[n]:{...t[n],parents:rr(s.parents,e)}}}function cP(e,n,t){const a=t[e],s=t[n];return!a||!s?t:{...t,[e]:{...t[e],includes:t[e].includes.filter(i=>i!==n)},[n]:{...t[n],parents:t[n].parents.filter(i=>i!==e)}}}function wg(e,n){b.validateName(e),Object.entries(n).forEach(([,{privilege:a}])=>{if(e.toLowerCase()===a.toLowerCase())throw new Error(`There's already a Privilege with the name ${e}`)});const t=ps.generate();return{[t]:{id:t,privilege:e,includes:[],parents:[],resources:[]},...n}}function lP(e,n,t,a,s){let i=wg(e,s);const c=Object.entries(i).find(([,l])=>l.privilege===e);return c?(i=Rg(c[1].id,n,t,a,i),i):s}function fP(e,n,t){if(!e)throw new Error("Please enter a name");if(!t[n])throw new Error("Invalid privilege");return Object.entries(t).forEach(([,{privilege:a,id:s}])=>{if(e.toLowerCase()===a.toLowerCase()&&n!==s)throw new Error(`There's already a Privilege with the name ${e}`)}),{...t,[n]:{...t[n],privilege:e}}}function dP(e,n){return e.map(t=>Br(t,n))}function Br(e,n){return n[e]?n[e]:null}function Tg({applyTo:e,type:n,...t}){return Object.entries(t).reduce((a,[s,i])=>{const c=He.find(kc,["key",s]);return!c||!c.canApplyTo.includes(n)||(typeof i=="string"?i.split(","):i).forEach(d=>{a[d]=rr(a[d]||[],s)}),a},{})}const rc=(e,n=!1)=>["read","create","update","delete"].includes(e.toLowerCase())?`All ${n?"dataclasses and ":""}attributes have the '${e.toLowerCase()}' permission`:e.toLowerCase()==="execute"?`All functions defined ${n?"through the model (DataStore, Dataclasses, Entity selections, Entities) have the execute permission":"on this Dataclass, Entity selection class, Entity class have the execute permission"}`:`All ${n?"dataclasses, ":""}attributes and functions have the '${e.toLowerCase()}' permission`;function jc(e){return{permissions:kc.filter(({canApplyTo:n})=>n.includes(e.type)).map(({key:n,label:t})=>{const a={name:n,from:[]};switch(e.type){case Ae.DATASTORE:return{...a,info:rc(t,!0)};case Ae.DATACLASS:return{...a,info:rc(t)};default:return a}}),resource:e.applyTo,type:e.type}}function Cg(e,n){const t=xg(n),a={};return e.filter(({type:s})=>oP.includes(s)).forEach(s=>{const i=Tg(s);Object.entries(i).forEach(([c,l])=>{var h;const d=(h=t[c])==null?void 0:h.id;if(!d)return;a[d]=a[d]||{...n[d]};let p=He.find(a[d].resources,{resource:s.applyTo,type:s.type});p||(p=jc(s),a[d].resources.push(p)),p.permissions=p.permissions.map(y=>({...y,checked:y.checked||l.includes(y.name)}))})}),{...n,...a}}function xg(e){return Object.values(e).reduce((n,t)=>({...n,[t.privilege]:t}),{})}function Ls(e){var t;const n=Eg(e.privileges||[]);return{forceLogin:e==null?void 0:e.forceLogin,privileges:Cg(((t=e.permissions)==null?void 0:t.allowed)||[],n),roles:(e.roles||[]).map(({id:a=ps.generate(),role:s,privileges:i=[]})=>({id:a,role:s,privileges:rr(i).map(c=>{var l;return(l=Object.values(n).find(({privilege:d})=>d===c))==null?void 0:l.id}).filter(Boolean)})).reduce((a,s)=>({...a,[s.id]:{...s}}),{})}}function Ns(e){const n=Object.values(e.privileges).filter(({includes:a})=>a.length===0).map(({id:a})=>a),t=[...n,...n.map(a=>Ms(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=He.find(a,{applyTo:c,type:l});d||(d={applyTo:c,type:l},a.push(d)),i.forEach(({name:p,checked:h})=>{h&&d&&(d[p]=d[p]||[],d[p].push(s.privilege))})}),a),[])},privileges:t.filter(({privilege:a})=>a!==hs).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 pP(e,n){const t=n[e],a={children:[],links:[],parents:[],selected:e};if(!t)return a;function s(l,d,p=[]){const h=l.reduce((y,_)=>[...y,...n[_][d]],[]);return h.length===0?p:(p.push(h),s(h,d,p))}function i(l){const d=[],p=[];for(let h=l.length-1;h>=0;h-=1){const y=l[h].filter(_=>d.includes(_)?!1:(d.push(_),!0));y.length>0&&p.unshift(rr(y))}return p}function c(l,d){const p=[];return l.reduce((h,y)=>(y.forEach(_=>{n[_][d==="parents"?"includes":"parents"].forEach(T=>{p.includes(T)&&h.push(d==="parents"?{source:_,target:T}:{source:T,target:_})}),p.push(_)}),h),[])}return a.children=s([e],"includes"),a.children=i(a.children),a.parents=s([e],"parents"),a.parents=i(a.parents),a.links=[...c([[e],...a.parents],"parents"),...c([[e],...a.children],"includes")],a}function hP(e,n,t){const a=Br(e,t);if(!a||He.find(a.resources,{resource:n.applyTo,type:n.type}))return t;const s={...a,resources:[...a.resources,jc(n)]};return{...t,[e]:s}}function gP(e,n,t){const a=Br(e,t);if(!a)return t;const s={...a,resources:a.resources.filter(({resource:i,type:c})=>i!==n.applyTo||c!==n.type)};return{...t,[e]:s}}function vP(e,n){const t=Br(e,n);if(!t)return n;const a={...t,resources:t.resources.filter(s=>s.permissions.some(i=>i.from.length)).map(s=>({...s,permissions:s.permissions.map(i=>({...i,checked:!1}))}))};return{...n,[e]:a}}function Rg(e,n,t,a,s){const i=Br(e,s);if(!i)return s;const l=He.find(i.resources,{type:t,resource:n})?{...i,resources:i.resources.map(d=>d.type===t&&d.resource===n?{...d,permissions:d.permissions.map(p=>p.name===a?{...p,checked:!p.checked,from:[]}:p)}:d)}:{...i,resources:[...i.resources,{type:t,resource:n,permissions:kc.filter(d=>d.canApplyTo.includes(t)).map(d=>({from:[],name:d.key,checked:d.key===a,info:rc(d.key,t===Ae.DATASTORE)}))}]};return{...s,[e]:l}}function mP(e,n,t,a){const s=Br(e,a);if(!s)return a;const c=He.find(s.resources,{type:n.type,resource:n.resource})?{...s,resources:s.resources.map(l=>l.type===n.type&&l.resource===n.resource?{...l,permissions:n.permissions.map(d=>d.name===t.name?{...d,checked:!d.checked,from:[]}:d)}:l)}:{...s,resources:[...s.resources,{...n,permissions:n.permissions.map(l=>({...l,checked:t.name===l.name,from:[]}))}]};return{...a,[e]:c}}function yP(e,n){var d;const t=Og(e,n)||[],a=((d=Br(e,n))==null?void 0:d.resources)||[],c=([...t,...a].filter(({type:p})=>p===Ae.METHOD)||[]).map(({resource:p})=>p);return Object.entries(n).reduce((p,[h,{resources:y}])=>(y.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]=rr(p[E]||[],h))}),p),{})}function Og(e,n){var c;const t=Br(e,n);if(!t)return[];const a=(c=Object.values(n).find(l=>l.privilege===hs))==null?void 0:c.id;return(a&&a!==e?rr(gs(e,n),a):gs(e,n)).reduce((l,d)=>(n[d].resources.forEach(h=>{if(h.permissions.filter(({checked:E})=>E).length===0)return;const _=He.find(l,{type:h.type,resource:h.resource});if(!_){l.push({...h,permissions:h.permissions.map(E=>({...E,from:E.checked?[d]:[],checked:!1}))});return}_.permissions=_.permissions.map((E,T)=>{let{from:x=[]}=E;return h.permissions[T].checked&&!x.includes(d)&&(x=[...x,d]),{...E,from:x,checked:E.checked}})}),l),He.clone(t.resources.map(l=>({...l,permissions:l.permissions.map(({checked:d,...p})=>({...p,checked:!!d}))}))))}const bP=e=>e.reduce((n,t)=>({...n,[t.id]:{...t}}),{}),_P=(e,n)=>n[e]?Object.values(n).reduce((t,a)=>e===a.id||a.role===""?t:{...t,[a.id]:a},{}):n,EP=(e,n,t)=>t[e]?Object.values(t).reduce((a,s)=>e===s.id?{...a,[s.id]:{...s,name:n}}:{...a,[s.id]:s},{}):t,SP=(e,n)=>{const t={id:e,role:"",privileges:[]};return{...n,[t.id]:t}},wP=(e,n)=>{if(b.validateName(e.role),Object.values(n).find(a=>a.role===e.role))throw new Error(`a role with the name ${e.role} already exists`);return Object.values(n).reduce((a,s)=>e.id===s.id?{...a,[e.id]:e}:{...a,[s.id]:s},{})},TP={list:[]},Fp=(e,n)=>e.list.filter(t=>t.id!==n),Ag=nr({name:"modals",initialState:TP,reducers:{createModal:(e,n)=>{e.list.push(n.payload)},editModal:(e,n)=>{const{id:t,...a}=n.payload,s=e.list.find(b.byId(t));s&&Object.assign(s,{...a})},removeModal:(e,n)=>{const t=n.payload;e.list=Fp(e,t)},closeModal:(e,n)=>{const{id:t,reason:a}=n.payload;if(a){const s=e.list.find(i=>i.id===t);s&&(s.closeReason=a,s.isOpen=!1)}else e.list=Fp(e,t)}}}),{createModal:Pg,removeModal:Dg,closeModal:CP,editModal:xP}=Ag.actions,ar=Q("modals/open",async(e,{dispatch:n})=>{const{type:t=b.ModalType.ALERT,store:a=Ov()}=e,s=mc();switch(n(Pg({id:s,type:t,isOpen:!0,...e})),t){case b.ModalType.CONFIRM:return new Promise(i=>{const c=a.subscribe(()=>{var p;const{modals:l}=a.getState(),d=l.list.find(h=>h.id===s);if(d&&!d.isOpen){const h=d.closeReason===b.ModalCloseReason.CONFIRMED,y=He.entries((p=d.views)==null?void 0:p.toggles).reduce((_,E)=>({..._,[E[0]]:E[1].value}),{});n(Dg(s)),c(),i({confirmed:h,options:y})}})});default:return{}}}),Ig=()=>b.getFileContent({name:b.ROLES_TAB_PATH}),Fg="Roles & Privileges",vs=Q("roles/fetchRoles",async(e,{dispatch:n,rejectWithValue:t})=>{var i;let a;try{a=await Ig()}catch(c){if(!Array.isArray((i=c==null?void 0:c.data)==null?void 0:i.__ERROR))return t("Error while loading the roles");a={name:b.ROLES_TAB_PATH,date:new Date().toISOString(),content:{permissions:{allowed:[]},privileges:[],roles:[]}}}const s={name:Fg,type:b.FileFolderType.ROLES,date:a.date,view:{panel:{isOpen:!1,type:"",current:""}},path:b.ROLES_TAB_PATH,flags:{},extra:{editor:{key:"editors:roles"}},content:{}};return n(Pt(s)),{...a,content:Ls(a.content)}}),$g=Q("roles/fetchRolesChanges",async(e,{getState:n})=>{const{tabs:t}=n().root;if(t.find(s=>s.path===b.ROLES_TAB_PATH)){const{date:s}=n().roles;if(s&&await Bc(s))return{old:!0}}return{}}),Bc=async e=>{if(!e)return!1;try{const n=await Ig();if(n.date){const t=new Date(e),a=new Date(n.date);if(t>a)return!0}}catch(n){if(!Array.isArray(n==null?void 0:n.data.__ERROR))throw n}return!1},nc=Q("roles/saveRoles",async(e,{getState:n,rejectWithValue:t,dispatch:a})=>{try{const{flags:s,date:i}=n().roles;if(s.old||await Bc(i)){const{confirmed:d}=await a(ar({title:Fg,message:"New content has been found on the server. Are you sure you want to continue?",type:b.ModalType.CONFIRM,icon:"FdSave"})).unwrap();if(!d)return t({old:!0})}return await b.setFileContent({name:b.ROLES_TAB_PATH,content:Ns(e)})}catch{return t("Error while loading the roles")}}),Mg=nr({name:"roles",initialState:()=>{const{roles:e}=Kn(),{roles:n={},privileges:t={},flags:a={touched:!1},date:s,selectedTab:i="roles"}=e||{};return{flags:a,roles:n,privileges:t,date:s,selectedTab:i}},reducers:{updatePrivileges:(e,n)=>{e.privileges=n.payload,e.flags.touched=!0},updateRoles:(e,n)=>{e.roles=n.payload,e.flags.touched=!0},updateRolesAndPrivileges:(e,n)=>{e.roles=n.payload.roles,e.privileges=n.payload.privileges},toggleTab:(e,n)=>{e.selectedTab=n.payload},toggleForceLogin:(e,n)=>{e.forceLogin!==n.payload&&(e.forceLogin=n.payload,e.flags.touched=!0)},setRolesContent(e,n){const{content:t,flags:a={},...s}=n.payload,i=Ls(t),c={...e.flags,...a};return{...e,...i,...s,flags:c}}},extraReducers(e){e.addCase(vs.fulfilled,(n,t)=>{const{content:a,date:s}=t.payload;n={...n,...a,date:s}}).addCase(vs.rejected,n=>({...n,roles:{},privileges:{},flags:{touched:!1},date:void 0})).addCase(nc.fulfilled,(n,t)=>({...n,flags:{...n.flags,confirmed:!0,touched:!1,old:!1},date:t.payload.date})).addCase(nc.rejected,(n,t)=>Sh.isString(t.payload)?n:{...n,flags:{...n.flags,...t.payload}}).addCase($g.fulfilled,(n,t)=>({...n,flags:{...n.flags,...t.payload}})).addCase(Yn.fulfilled,(n,t)=>{!t.payload||t.payload.path!==b.ROLES_TAB_PATH||(n.flags.touched=!1,n.flags.old=!1)}).addCase(zc.fulfilled,(n,t)=>{t.meta.arg!==b.ROLES_TAB_PATH||!t.payload||(n.flags.touched=!1,n.flags.old=!1)})}}),{updatePrivileges:Lg,updateRoles:Ng,setRolesContent:Wc,toggleTab:RP,toggleForceLogin:OP,updateRolesAndPrivileges:Uc}=Mg.actions,AP=Mg.reducer,Hc=Q("settings/fetch",async()=>await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:b.SETTINGS_TAB_PATH,content:!0,as:"json"})),kg=Q("settings/app",b.getAppSettings),PP=hh(),$p={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":$c.SHOW_AFTER_TIMEOUT,"webforms.tooltip.timeout":3e3,"webforms.renderer.showPopOver":!0,"webforms.renderer.showUnsavedPopOver":!0,"webforms.renderer.unsavedPopOverChoice":Mc.NONE,"welcometour.active":!0,"webforms.properties.advanced-mode":!1,"monaco.zoom":0},project:{"webforms.renderer.indexPage":"","webforms.display-mode":"neutral"},server:{projectOpened:!1,remoteDebuggerMode:b.RemoteDebuggerMode.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:"",lsp:""},isRestActive:!0}},DP={...$p,session:{...$p.session,...PP},welcometour:{}},jg=nr({name:"settings",initialState:DP,reducers:{setSetting(e,n){const{path:t,settingsKey:a,value:s}=n.payload;e[t][a]=s},setSettings(e,n){const{path:t,value:a}=n.payload;e[t]={...e[t],...a}},setSettingsAsText(e,n){const{path:t,settings:a}=n.payload;e[t]=a}},extraReducers(e){e.addCase(Hc.fulfilled,(n,t)=>{n.project={...n.project,...t.payload.content}}),e.addCase(kg.fulfilled,(n,t)=>{n.server=t.payload,n.server.qodly&&(n.project["webforms.display-mode"]="airy")})}}),{setSetting:ac,setSettings:ks,setSettingsAsText:IP}=jg.actions,FP=jg.reducer,oc=e=>{const n=["folder","file"];return e.sort((t,a)=>t.type===a.type?t.name.localeCompare(a.name):n.indexOf(t.type)-n.indexOf(a.type))},Re=(e,n)=>e.reduce((t,a)=>a.path===n.path&&a.type===n.type?[...t,n]:a.children?[...t,{...a,children:oc(Re(a.children,n))}]:[...t,a],[]),lt=(e,n)=>e.reduce((t,a)=>t||(a.path===n?a:a.children?lt(a.children,n):null),null),$P=[{name:b.FolderRootPath.WEBFORMS,type:b.FileFolderType.FOLDER,children:[],path:b.FolderRootPath.WEBFORMS,error:null,flags:{expanded:!1,loading:!1,cached:!1},tipKey:"editors:webform:explorer:webforms",config:{},isRoot:!0},{name:b.FolderRootPath.METHODS,type:b.FileFolderType.FOLDER,children:[],path:b.FolderRootPath.METHODS,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:b.FolderRootPath.CLASSES,type:b.FileFolderType.FOLDER,children:[],path:b.FolderRootPath.CLASSES,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:b.FolderRootPath.SHARED,type:b.FileFolderType.FOLDER,children:[],path:b.FolderRootPath.SHARED,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:"Debugger",type:b.FileFolderType.FOLDER,children:[],path:"Debugger",error:null,flags:{expanded:!1,cached:!0},config:{},isRoot:!0},{name:"Roles And Privileges",type:b.FileFolderType.FILE,ext:"json",path:"roles",error:null,flags:{},config:{editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},isRoot:!0},{name:"Model",type:b.FileFolderType.MODEL,ext:"4DModel",path:"model",error:null,flags:{},config:{editor:{key:"editors:model"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]}},{name:"Settings",type:b.FileFolderType.FILE,ext:"json",path:"qodlyApp",error:null,flags:{},config:{editor:{key:"editors:settings"}},isRoot:!0}],Bg=nr({name:"explorer",initialState:$P,reducers:{toggleExpandFolder:(e,n)=>(e=Re(e,{...n.payload,flags:{...n.payload.flags,expanded:!n.payload.flags.expanded}}),e),expandFolder:(e,n)=>(e=Re(e,{...n.payload,flags:{...n.payload.flags,expanded:!0}}),e),openAddFileInput:(e,n)=>Re(e,{...n.payload,flags:{...n.payload.flags,adding:!0}}),addNewFile:(e,n)=>{const{parent:t,child:a}=n.payload;return Re(e,{...t,children:[a,...t.children||[]]})},removeFile:(e,n)=>{const{parent:t,child:a}=n.payload;return Re(e,{...t,children:t.children.filter(s=>s.path!==a.path)})},refreshFile:(e,n)=>{const{parent:t,child:a}=n.payload,s=(t.children||[]).filter(i=>i.path!==a.path&&!a.error);return Re(e,{...t,children:[a,...s]})},setFolderChildren:(e,n)=>{const t=lt(e,n.payload.parentPath);return t?Re(e,{...t,children:n.payload.children}):e}},extraReducers:e=>{e.addCase(qn.pending,(n,t)=>{const{file:a,newname:s}=t.meta.arg,i=lt(n,a.path);if(!i)return n;const c=a.path.split("/");c.pop();const l=`${c.join("/")}/${a.name}.${a.ext}`,d=`${c.join("/")}/${s}.${a.ext}`;switch(a.ext){case"4dm":case"4qs":b.lspSubject.next({action:b.LspActions.WILL_RENAME,payload:{oldPath:l,newPath:d}});break}return Re(n,{...i,flags:{...i.flags,loading:!0}})}),e.addCase(qn.fulfilled,(n,t)=>{const{meta:{arg:{file:a}},payload:s}=t,i=lt(n,a.path);if(!i)return n;switch(s.old.ext){case"4dm":case"4qs":b.lspSubject.next({action:b.LspActions.DID_RENAME,payload:{oldPath:s.old.path,newPath:s.new.path}});break}return Re(n,{...i,flags:{...i.flags,loading:!1}})}),e.addCase(qn.rejected,(n,t)=>{const{file:a}=t.meta.arg,s=lt(n,a.path);return s?Re(n,{...s,flags:{...s.flags,loading:!1}}):n}),e.addCase(_r.pending,(n,t)=>{const a=t.meta.arg,s=lt(n,a);return s?Re(n,{...s,flags:{...s.flags,loading:!0}}):n}),e.addCase(_r.fulfilled,(n,t)=>{const a=t.meta.arg,s=lt(n,a);return s?Re(n,{...s,children:oc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!0},error:null}):n}),e.addCase(_r.rejected,(n,t)=>{const a=t.meta.arg,s=lt(n,a);return s?Re(n,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!0}}):n}),e.addCase(Aa.pending,(n,t)=>{const a=t.meta.arg,s=lt(n,a);return s?Re(n,{...s,flags:{...s.flags,loading:!0}}):n}),e.addCase(Aa.fulfilled,(n,t)=>{const a=t.meta.arg,s=lt(n,a);return s?Re(n,{...s,children:oc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!1},error:null}):n}),e.addCase(Aa.rejected,(n,t)=>{const a=t.meta.arg,s=lt(n,a);return s?Re(n,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!1}}):n}),e.addCase(Jo.pending,(n,t)=>{const{fileName:a,parentNode:s,path:i,type:c}=t.meta.arg;return Re(n,{...s,children:[{name:a,path:`${i}/${a}`,type:c,error:null,flags:{loading:!0},config:{}},...s.children]})}),e.addCase(Jo.fulfilled,(n,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg,c=b.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=pr(`${a}${c?`.${c.toLowerCase()}`:""}`);return Re(n,{name:s,path:`${a}/${s}`,type:i,error:null,flags:{loading:!1},config:{editor:l,supportedEditors:d}})}),e.addCase(Jo.rejected,(n,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg;return Re(n,{name:s,path:`${a}/${s}`,type:i,error:{message:t.payload},flags:{loading:!1},config:{}})}),e.addCase(Xo.pending,(n,t)=>{const{node:a,parentNode:s}=t.meta.arg;return Re(n,{...s,children:[{name:`${a.name}_copy`,path:`${a.path}/${a.name}_copy`,type:a.type,error:null,flags:{loading:!0},permissions:{canRename:!0,canDelete:!0}},...s.children]})}),e.addCase(Xo.fulfilled,(n,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(n,{name:`${a.name}`,path:`${s}/${a.name}`,type:a.type,error:null,flags:{loading:!1},config:{editor:c,supportedEditors:l}})}),e.addCase(Xo.rejected,(n,t)=>{const a=t.payload,{node:s}=t.meta.arg;return Re(n,{name:`${s.name}_copy`,path:`${s.path}/${s.name}_copy`,type:s.type,error:{message:a},flags:{loading:!1},config:{}})}),e.addCase(Da.pending,(n,t)=>{}),e.addCase(Da.fulfilled,(n,t)=>{var y;const{draggedNode:a,newLocation:s}=t.meta.arg,i=kh(a.path),c=lt(n,i),l=lt(n,s.path),d=(y=c==null?void 0:c.children)==null?void 0:y.filter(_=>_.path!==a.path),p=s.path.split("/").length,h=a.path.split("/").length;return p>=h?(n=Re(n,{...c,children:d}),n=Re(n,{...l,children:[{...a,path:`${l.path}/${a.name}`},...l!=null&&l.children?l==null?void 0:l.children:[]],flags:{...l.flags,expanded:!0}})):(n=Re(n,{...l,children:[{...a,path:`${l.path}/${a.name}`},...l!=null&&l.children?l==null?void 0:l.children:[]],flags:{...l.flags,expanded:!0}}),n=Re(n,{...c,children:d})),n}),e.addCase(Da.rejected,(n,t)=>{b.toastSubject.next({message:"Error moving file",kind:"danger"})}),e.addCase(Gn.pending,(n,t)=>{var x;const{fileName:a,parentNode:s,path:i,type:c,qodly:l}=t.meta.arg,d=b.getFileExtentionFromType(c,l),p=`${i}/${a}${d?`.${d.toLowerCase()}`:""}`,{editor:h,supportedEditors:y}=pr(p);switch(c){case b.FileFolderType.CLASS:case b.FileFolderType.METHOD:b.lspSubject.next({action:b.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:b.FileFolderType.FILE,error:null,flags:{loading:!0},config:{editor:h,supportedEditors:y},ext:d,date:new Date().toISOString()},..._],T=Re(n,{...s,children:E});return Sh.merge(n,T)}),e.addCase(Gn.fulfilled,(n,t)=>{const{fileName:a,path:s,type:i,qodly:c}=t.meta.arg,l=b.getFileExtentionFromType(i,c),d=`${s}/${a}${l?`.${l.toLowerCase()}`:""}`,{editor:p,supportedEditors:h}=pr(d),y=Re(n,{name:a,path:`${s}/${a}`,type:b.FileFolderType.FILE,error:null,flags:{},config:{editor:p,supportedEditors:h},ext:l,date:new Date().toISOString()});switch(i){case b.FileFolderType.CLASS:case b.FileFolderType.METHOD:b.lspSubject.next({action:b.LspActions.DID_CREATE,payload:{filePath:d}});break}return n=y,n}),e.addCase(Gn.rejected,(n,t)=>{const{fileName:a,path:s,type:i}=t.meta.arg,c=b.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=pr(`${s}${c?`.${c.toLowerCase()}`:""}`);return n=Re(n,{name:a,path:`${s}/${a}`,type:b.FileFolderType.FILE,error:{message:"Failed creating file"},flags:{},config:{editor:l,supportedEditors:d},ext:c,date:new Date().toISOString()}),n}),e.addMatcher(rh(Pa),(n,t)=>{const a=lt(n,t.meta.arg.file.path.split(".")[0]);return a&&(n=Re(n,{...a,flags:{...a.flags,loading:!0}})),n}),e.addMatcher(ah(Pa),(n,t)=>{const a=lt(n,t.meta.arg.file.path.split(".")[0]);return a&&(n=Re(n,{...a,flags:{...a.flags,loading:!1}})),n}),e.addMatcher(nh(Pa),(n,t)=>{const a=lt(n,t.meta.arg.file.path.split(".")[0]);return a&&(n=Re(n,{...a,flags:{...a.flags,loading:!1}})),b.toastSubject.next({message:"Failed to open file, try again",kind:"danger"}),n})}}),{toggleExpandFolder:MP,expandFolder:LP,openAddFileInput:NP,addNewFile:Wg,refreshFile:kP,removeFile:sc,setFolderChildren:jP}=Bg.actions;function Ug(e,n){switch(e){case b.FileFolderType.WEBFORMS:const t={metadata:{v:"1.0",datasources:[],styles:[]},components:{ROOT:{parent:"",type:{resolvedName:"Container"},isCanvas:!0,props:{airyMode:!1,className:"bg-white h-full w-full px-6",classNames:[],events:[]},displayName:"App",custom:{},hidden:!1,nodes:[],linkedNodes:{}}}};return n["webforms.display-mode"]===Lc.AIRY&&(t.components.ROOT.props.airyMode=!0),t;case b.FileFolderType.METHODS:return`//%attributes = {}
|
|
91
|
-
`;default:return""}}function
|
|
90
|
+
`),T}return ec(function(){d.current=e,p.current=y,h.current=_,l.current=void 0}),ec(function(){function T(){try{var x=t.getState();if(x===p.current)return;var D=d.current(x);if(n(D,h.current))return;h.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 dO(e){e===void 0&&(e=Nr);var n=e===Nr?rg:function(){return pt.useContext(e)};return function(a,s){if(s===void 0&&(s=lO),process.env.NODE_ENV!=="production"){if(!a)throw new Error("You must pass a selector to useSelector");if(typeof a!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof s!="function")throw new Error("You must pass a function as an equality function to useSelector")}var i=n(),c=i.store,l=i.subscription,d=fO(a,s,c,l);return pt.useDebugValue(d),d}}var pO=dO();XR(WS.unstable_batchedUpdates);const hO=()=>cO(),kr=pO,Ac=G(e=>e,e=>e.catalog.state==="loaded"?e.catalog.model:null),gO=G(e=>e,({catalog:e})=>e.state),ag=G(Ac,e=>e?e.dataClasses:[]),vO=G(ag,e=>Object.values(e).filter(({virtual:n})=>n)),mO=G(Ac,e=>e?e.methods:[]),og=e=>G(n=>n,n=>{switch(n.catalog.state){case"loaded":const t=e?n.catalog.model.dataClasses[e]:n.catalog.model;return(t==null?void 0:t.methods)||[];default:return[]}}),yO=e=>kr(og(e),tg),bO=(e,n)=>G(og(e),t=>t.find(a=>`${a.applyTo}.${a.name}`===n)),_O=(e,n,t)=>kr(bO(e,`${t}.${n}`),tg),sg=G(e=>e,e=>e),EO=e=>G(jr,n=>{var s;const t=n.tabs.find(({path:i})=>i===e),a=t==null?void 0:t.content.components;return!t||!a?[]:(s=Object.keys(a))==null?void 0:s.map(i=>({id:i,...a[i]}))}),ig=e=>G(jr,n=>{var a,s;const t=n.tabs.find(({path:i})=>i===e);return((s=(a=t==null?void 0:t.content)==null?void 0:a.metadata)==null?void 0:s.datasources)||[]}),SO=(e,n,t)=>G(sg,a=>{var s,i;if(n){const c=a.sharedDatasources.sources[n];return c?c.find(l=>l.id===e):void 0}else{const c=a.root.tabs.find(d=>d.path===t);return c?(i=(s=c.content.metadata)==null?void 0:s.datasources)==null?void 0:i.find(d=>d.id===e):void 0}}),ug=G(e=>e,e=>{var n;return((n=e.sharedDatasources)==null?void 0:n.sources)||[]}),wO=(e,n,t,a)=>G(ig(e),ug,(s,i)=>{const c=He.flatten(He.values(i)),l=[...n!=="private"?s:[],...n!=="shared"?c:[]];return t?l.filter(d=>(!a||a.every(({id:p,namespace:h=""})=>d.id!==p||(d.namespace||"")!==h))&&(t.includes(d.type)||d.dataType&&(t.includes(d.dataType)||t.includes("objectFromArray")&&d.dataType==="object"&&d.from))):l}),TO=G(e=>e.debugger,e=>e.meta),Tn=G(e=>e.debugger,e=>e.list),Dt=G(e=>e.debugger,e=>e.sessions),CO=G(Dt,e=>e.length),Sn=(e,n,t,a)=>e.find(s=>s.filePath===n&&s.methodName===t&&(!a||s.className===a)),ot=(e,n)=>e.find(t=>t.threadId===n),cg=(e,n)=>e.find(t=>t.tabPath===n),xO=(e,n)=>G(Tn,t=>{var a;return((a=Sn(t,e,n))==null?void 0:a.breakpoints.saved.locations)||[]}),RO=(e,n)=>G(Tn,t=>{var a;return((a=Sn(t,e,n))==null?void 0:a.breakpoints.draft.locations)||[]}),OO=e=>G(Tn,n=>n.filter(t=>t.filePath===e).reduce((t,a)=>[...t,...a.breakpoints.saved.locations.map(s=>({...s,line:s.line+(a.breakpoints.saved.offset||0)}))],[]).sort((t,a)=>t.line-a.line)),AO=e=>G(Tn,n=>n.filter(t=>t.filePath===e).reduce((t,a)=>[...t,...a.breakpoints.draft.locations.map(s=>({...s,line:s.line+(a.breakpoints.draft.offset||0)}))],[]).sort((t,a)=>t.line-a.line)),PO=e=>G(Dt,n=>{const t=ot(n,e);return t!=null&&t.stopped?t.highlightedLines:null}),DO=e=>G(Dt,n=>{const t=ot(n,e);return t!=null&&t.stopped?t.activeLine:null}),IO=e=>G(Dt,n=>{var t;return((t=ot(n,e))==null?void 0:t.expressions)||[]}),FO=e=>G(Dt,n=>{var t;return((t=ot(n,e))==null?void 0:t.stopped)||!1}),$O=(e,n)=>G(Tn,t=>{var a;return(a=Sn(t,e,n))==null?void 0:a.source}),MO=e=>G(Dt,n=>{var t;return((t=cg(n,e))==null?void 0:t.threadId)||-1}),LO=e=>G(Dt,n=>{var t,a;return(a=(t=ot(n,e))==null?void 0:t.currentStackFrame)==null?void 0:a.source}),NO=e=>G(Dt,n=>{var t;return(t=ot(n,e))==null?void 0:t.currentStackFrame}),kO=G(Dt,e=>e.map(({channelId:n,threadId:t})=>({id:n,threadId:t}))),jO=e=>G(Dt,n=>{var t;return((t=ot(n,e))==null?void 0:t.stackFrames)||[]}),BO=e=>G(Dt,n=>{var t,a;return((a=(t=ot(n,e))==null?void 0:t.variables)==null?void 0:a.callchain)||[]}),WO=e=>G(Dt,n=>{var t,a;return((a=(t=ot(n,e))==null?void 0:t.variables)==null?void 0:a.expressions)||[]}),UO=(e,n="saved")=>G(Tn,t=>{const a=t.find(s=>s.filePath===e);return(a==null?void 0:a.breakpoints[n].offset)||0}),HO=(e,n,t,a)=>G(Dt,s=>{var p;const i=((p=ot(s,e))==null?void 0:p.exceptions)||[],c=n===b.FileFolderType.CLASS,l=c&&a?`${a}.${t}`:t;return(l?i.filter(h=>h.location===l):i).map(h=>({...h,locationLine:c?h.locationLine:h.locationLine+1}))}),jr=G(e=>e.root,e=>e),ta=G(jr,e=>e.tabs),GO=G(jr,e=>e.activeTab),qO=G(jr,e=>e.recent.filter(({type:n})=>n!==b.FileFolderType.DEBUGGER)),YO=G(jr,({tabs:e,activeTab:n})=>e.find(({path:t})=>t===n)),zO=G(jr,({tabs:e})=>e.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null)),VO=G(ta,e=>e.filter(({type:n,flags:t})=>n===b.FileFolderType.WEBFORM&&t.enabled===!1).map(({path:n})=>n)),KO=G(ta,e=>e.length>0),ra=e=>G(jr,n=>n.tabs.find(({path:t})=>t===e)),lg=(e,n="")=>G(ra(e),t=>!t||!t.content||typeof t.content=="string"?t==null?void 0:t.content:He.get(t.content,n)),JO=e=>G(ra(e),n=>n==null?void 0:n.extra),XO=(e,n=t=>t)=>G(lg(e,"components"),t=>n(t||{})),Pc=G(ta,e=>e.filter(n=>n.flags.touched)),ZO=G(Pc,e=>e.length),QO=G(Dt,e=>e.map(({threadId:n,currentStackFrame:{source:t},tabPath:a})=>({name:Th(n,t),path:a,type:b.FileFolderType.DEBUGGER,content:t==null?void 0:t.content,flags:{},extra:{source:t}}))),eA=G(e=>e,e=>e.explorer||[]),fg=G(e=>e,e=>e.explorer.find(n=>n.path===b.FolderRootPath.WEBFORMS)),dg=G(e=>e,e=>e.explorer.find(n=>n.path===b.FolderRootPath.METHODS)),pg=G(e=>e,e=>e.explorer.find(n=>n.path===b.FolderRootPath.CLASSES)),tA=G(dg,e=>(e==null?void 0:e.children)||[]),rA=G(fg,e=>(e==null?void 0:e.children)||[]),nA=G(pg,e=>(e==null?void 0:e.children)||[]),aA=G(e=>e.modals,e=>e.list),oA=G(e=>e.roles,e=>Ns(e)),sA=G(e=>e.roles,({roles:e})=>e),iA=G(e=>e.roles,({privileges:e})=>e),uA=G(e=>e.roles,({privileges:e})=>Object.values(e).find(({privilege:n})=>n==="guest")),cA=G(e=>e.roles,({flags:e})=>e),lA=G(e=>e.roles,({selectedTab:e})=>e),fA=G(e=>e.roles,({forceLogin:e})=>e),dA=G(e=>e.roles,({date:e})=>e),Dc=G(e=>e.settings,e=>e.session),pA=(...e)=>G(Dc,n=>e.length>0?He.pick(n,e):n),hA=G(e=>e.settings,e=>e.project),gA=G(e=>e.settings,e=>e),Ic=G(e=>e.settings,e=>e.server),vA=G(Ic,e=>e.remoteDebuggerMode),mA=G(Ic,e=>e.qodly),yA=G(Dc,e=>e["monaco.zoom"]),hg=["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"],gg=hg.map(e=>({id:yc(),content:"",name:e,parentId:null,scope:b.EWebFormStyleClassScope.THEME})),Fc=e=>G(ra(e),n=>{var t,a;return((a=(t=n==null?void 0:n.content)==null?void 0:t.metadata)==null?void 0:a.styles)||[]}),bA=(e,n)=>G(Fc(e),t=>n.map(a=>{switch(!0){case a===b.EWebFormStyleClassScope.LOCAL:return t.map(s=>({...s,scope:b.EWebFormStyleClassScope.LOCAL}));case a===b.EWebFormStyleClassScope.THEME:return gg;default:return[]}}).flat()),_A=e=>G(Fc(e),n=>[...n.map(t=>({...t,scope:b.EWebFormStyleClassScope.LOCAL})),...gg]),EA=G(e=>e,e=>{var n;return[...(((n=e.sharedCSS)==null?void 0:n.styles)||[]).map(t=>({...t,scope:b.EWebFormStyleClassScope.SHARED}))]}),SA=e=>G(ra(e),n=>n==null?void 0:n.flags),Wa=G(e=>e.webforms,e=>e),vg=G(Wa,e=>(e==null?void 0:e.components)||[]),Ds=G(Wa,e=>e.inspector),wA=G(Ds,e=>e.css),TA=G(Ds,e=>e.datasource),mg=G(Wa,e=>e.templates||{data:[]}),CA=G(mg,e=>e.data||[]),xA=e=>G(vg,n=>n.find(t=>t.id===e)),RA=e=>G(Ds,n=>n[e]),OA=G(Wa,e=>e.datasources.theme),AA=G(e=>e.catalog,e=>e.sharedDatasources,e=>e.sharedCSS,(e,n,t)=>[e.state,n.state,t.state].every(a=>["loaded","error"].includes(a))),$c={label:"Base",id:"root"},PA=e=>G(ra(e),n=>{var t,a;return((a=(t=n==null?void 0:n.content)==null?void 0:t.metadata)==null?void 0:a.states)||[$c]});var Mc=(e=>(e.SHOW_AFTER_TIMEOUT="show_after_timeout",e.HIDE_AFTER_TIMEOUT="hide_after_timeout",e))(Mc||{}),Lc=(e=>(e.NONE="none",e.SAVE_ALL_AND_PROCEED="saved_all_and_proceed",e.PROCEED="proceed",e))(Lc||{}),Nc=(e=>(e.AIRY="airy",e.COMPACT="neutral",e))(Nc||{}),Go,DA=new Uint8Array(16);function yg(){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(DA)}const IA=/^(?:[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 Is(e){return typeof e=="string"&&IA.test(e)}var mt=[];for(var Ru=0;Ru<256;++Ru)mt.push((Ru+256).toString(16).substr(1));function Fs(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(mt[e[n+0]]+mt[e[n+1]]+mt[e[n+2]]+mt[e[n+3]]+"-"+mt[e[n+4]]+mt[e[n+5]]+"-"+mt[e[n+6]]+mt[e[n+7]]+"-"+mt[e[n+8]]+mt[e[n+9]]+"-"+mt[e[n+10]]+mt[e[n+11]]+mt[e[n+12]]+mt[e[n+13]]+mt[e[n+14]]+mt[e[n+15]]).toLowerCase();if(!Is(t))throw TypeError("Stringified UUID is invalid");return t}var Ip,Ou,Au=0,Pu=0;function FA(e,n,t){var a=n&&t||0,s=n||new Array(16);e=e||{};var i=e.node||Ip,c=e.clockseq!==void 0?e.clockseq:Ou;if(i==null||c==null){var l=e.random||(e.rng||yg)();i==null&&(i=Ip=[l[0]|1,l[1],l[2],l[3],l[4],l[5]]),c==null&&(c=Ou=(l[6]<<8|l[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),p=e.nsecs!==void 0?e.nsecs:Pu+1,h=d-Au+(p-Pu)/1e4;if(h<0&&e.clockseq===void 0&&(c=c+1&16383),(h<0||d>Au)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Au=d,Pu=p,Ou=c,d+=122192928e5;var y=((d&268435455)*1e4+p)%4294967296;s[a++]=y>>>24&255,s[a++]=y>>>16&255,s[a++]=y>>>8&255,s[a++]=y&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 n||Fs(s)}function bg(e){if(!Is(e))throw TypeError("Invalid UUID");var n,t=new Uint8Array(16);return t[0]=(n=parseInt(e.slice(0,8),16))>>>24,t[1]=n>>>16&255,t[2]=n>>>8&255,t[3]=n&255,t[4]=(n=parseInt(e.slice(9,13),16))>>>8,t[5]=n&255,t[6]=(n=parseInt(e.slice(14,18),16))>>>8,t[7]=n&255,t[8]=(n=parseInt(e.slice(19,23),16))>>>8,t[9]=n&255,t[10]=(n=parseInt(e.slice(24,36),16))/1099511627776&255,t[11]=n/4294967296&255,t[12]=n>>>24&255,t[13]=n>>>16&255,t[14]=n>>>8&255,t[15]=n&255,t}function $A(e){e=unescape(encodeURIComponent(e));for(var n=[],t=0;t<e.length;++t)n.push(e.charCodeAt(t));return n}var MA="6ba7b810-9dad-11d1-80b4-00c04fd430c8",LA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function _g(e,n,t){function a(s,i,c,l){if(typeof s=="string"&&(s=$A(s)),typeof i=="string"&&(i=bg(i)),i.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var d=new Uint8Array(16+s.length);if(d.set(i),d.set(s,i.length),d=t(d),d[6]=d[6]&15|n,d[8]=d[8]&63|128,c){l=l||0;for(var p=0;p<16;++p)c[l+p]=d[p];return c}return Fs(d)}try{a.name=e}catch{}return a.DNS=MA,a.URL=LA,a}function NA(e){if(typeof e=="string"){var n=unescape(encodeURIComponent(e));e=new Uint8Array(n.length);for(var t=0;t<n.length;++t)e[t]=n.charCodeAt(t)}return kA(jA(BA(e),e.length*8))}function kA(e){for(var n=[],t=e.length*32,a="0123456789abcdef",s=0;s<t;s+=8){var i=e[s>>5]>>>s%32&255,c=parseInt(a.charAt(i>>>4&15)+a.charAt(i&15),16);n.push(c)}return n}function Eg(e){return(e+64>>>9<<4)+14+1}function jA(e,n){e[n>>5]|=128<<n%32,e[Eg(n)-1]=n;for(var t=1732584193,a=-271733879,s=-1732584194,i=271733878,c=0;c<e.length;c+=16){var l=t,d=a,p=s,h=i;t=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,h)}return[t,a,s,i]}function BA(e){if(e.length===0)return[];for(var n=e.length*8,t=new Uint32Array(Eg(n)),a=0;a<n;a+=8)t[a>>5]|=(e[a/8]&255)<<a%32;return t}function Qr(e,n){var t=(e&65535)+(n&65535),a=(e>>16)+(n>>16)+(t>>16);return a<<16|t&65535}function WA(e,n){return e<<n|e>>>32-n}function $s(e,n,t,a,s,i){return Qr(WA(Qr(Qr(n,e),Qr(a,i)),s),t)}function Et(e,n,t,a,s,i,c){return $s(n&t|~n&a,e,n,s,i,c)}function St(e,n,t,a,s,i,c){return $s(n&a|t&~a,e,n,s,i,c)}function wt(e,n,t,a,s,i,c){return $s(n^t^a,e,n,s,i,c)}function Tt(e,n,t,a,s,i,c){return $s(t^(n|~a),e,n,s,i,c)}var UA=_g("v3",48,NA);const HA=UA;function GA(e,n,t){e=e||{};var a=e.random||(e.rng||yg)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,n){t=t||0;for(var s=0;s<16;++s)n[t+s]=a[s];return n}return Fs(a)}function qA(e,n,t,a){switch(e){case 0:return n&t^~n&a;case 1:return n^t^a;case 2:return n&t^n&a^t&a;case 3:return n^t^a}}function Du(e,n){return e<<n|e>>>32-n}function YA(e){var n=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var a=unescape(encodeURIComponent(e));e=[];for(var s=0;s<a.length;++s)e.push(a.charCodeAt(s))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,c=Math.ceil(i/16),l=new Array(c),d=0;d<c;++d){for(var p=new Uint32Array(16),h=0;h<16;++h)p[h]=e[d*64+h*4]<<24|e[d*64+h*4+1]<<16|e[d*64+h*4+2]<<8|e[d*64+h*4+3];l[d]=p}l[c-1][14]=(e.length-1)*8/Math.pow(2,32),l[c-1][14]=Math.floor(l[c-1][14]),l[c-1][15]=(e.length-1)*8&4294967295;for(var y=0;y<c;++y){for(var _=new Uint32Array(80),E=0;E<16;++E)_[E]=l[y][E];for(var T=16;T<80;++T)_[T]=Du(_[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=Du(x,5)+qA(O,D,P,j)+M+n[O]+_[k]>>>0;M=j,j=P,P=Du(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 zA=_g("v5",80,YA);const VA=zA,KA="00000000-0000-0000-0000-000000000000";function JA(e){if(!Is(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const XA=Object.freeze(Object.defineProperty({__proto__:null,NIL:KA,parse:bg,stringify:Fs,v1:FA,v3:HA,v4:GA,v5:VA,validate:Is,version:JA},Symbol.toStringTag,{value:"Module"})),ZA=Yw(XA);function kc(e,n){if(!e||!n||!e.length||!n.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=n}kc.prototype.convert=function(e){var n,t,a,s={},i=this.srcAlphabet.length,c=this.dstAlphabet.length,l=e.length,d=typeof e=="string"?"":[];if(!this.isValid(e))throw new Error('Number "'+e+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return e;for(n=0;n<l;n++)s[n]=this.srcAlphabet.indexOf(e[n]);do{for(t=0,a=0,n=0;n<l;n++)t=t*i+s[n],t>=c?(s[a++]=parseInt(t/c,10),t=t%c):a>0&&(s[a++]=0);l=a,d=this.dstAlphabet.slice(t,t+1).concat(d)}while(a!==0);return d};kc.prototype.isValid=function(e){for(var n=0;n<e.length;++n)if(this.srcAlphabet.indexOf(e[n])===-1)return!1;return!0};var QA=kc,eP=QA;function Ua(e,n){var t=new eP(e,n);return function(a){return t.convert(a)}}Ua.BIN="01";Ua.OCT="01234567";Ua.DEC="0123456789";Ua.HEX="0123456789abcdef";var tP=Ua;const{v4:Iu}=ZA,qo=tP,Fu="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",rP="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",nP={consistentLength:!0};let $u;const Fp=(e,n,t)=>{const a=n(e.toLowerCase().replace(/-/g,""));return!t||!t.consistentLength?a:a.padStart(t.shortIdLength,t.paddingChar)},aP=(e,n)=>{const a=n(e).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[a[1],a[2],a[3],a[4],a[5]].join("-")},oP=e=>Math.ceil(Math.log(2**128)/Math.log(e));var ps=(()=>{const e=(n,t)=>{const a=n||Fu,s={...nP,...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=oP(a.length),c={shortIdLength:i,consistentLength:s.consistentLength,paddingChar:a[0]},l=qo(qo.HEX,a),d=qo(a,qo.HEX),p=()=>Fp(Iu(),l,c),h={new:p,generate:p,uuid:Iu,fromUUID:y=>Fp(y,l,c),toUUID:y=>aP(y,d),alphabet:a,maxLength:i};return Object.freeze(h),h};return e.constants={flickrBase58:Fu,cookieBase90:rP},e.uuid=Iu,e.generate=()=>($u||($u=e(Fu).generate),$u()),e})(),Ae=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e))(Ae||{});const sP=[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE,Ae.METHOD],hs="guest",jc=[{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 rr(e,...n){return Array.from(new Set([...e,...n]))}function Sg(e){const n={},t=new Map;e.forEach(d=>{const p=d.id||ps.generate();n[p]={...d,id:p,parents:[],includes:rr(d.includes||[]),resources:[]},t.set(d.privilege,p)}),Object.entries(n).forEach(([d,p])=>{const h=p.includes.map(y=>{const _=t.get(y);return _?(n[_].parents=rr(n[_].parents,_),_):""}).filter(Boolean);n[d]={...p,includes:h}});const a=wg(n),s=new Set;function i(d){s.add(d.id),d.includes=d.includes.filter(p=>!s.has(p))}if(a.forEach(i),a.forEach(d=>d.parents=[]),a.forEach(d=>{d.includes.forEach(p=>n[p].parents.push(d.id))}),Object.values(n).find(({privilege:d})=>d===hs))return n;const l=ps.generate();return{[l]:{id:l,privilege:hs,includes:[],parents:[],resources:[]},...n}}function wg(e){return Object.values(e).sort((n,t)=>n.parents.length-t.parents.length)}function Ms(e,n){const t=n[e];let a=[];return t&&t.parents.forEach(s=>{a=rr(a,...Ms(s,n),s)}),a}function gs(e,n){const t=n[e];let a=[];return t&&t.includes.forEach(s=>{a=rr(a,...gs(s,n),s)}),a}function iP(e,n){const t=n[e];if(!t)return[];const a=[e,...Ms(e,n),...t.includes];return Object.keys(n).filter(s=>!a.includes(s))}function uP(e,n){return n[e]?Object.keys(n).reduce((a,s)=>s===e?a:{...a,[s]:{...n[s],parents:n[s].parents.filter(i=>i!==e),includes:n[s].includes.filter(i=>i!==e)}},{}):n}function cP(e,n,t){const a=t[e],s=t[n];return!a||!s?t:{...t,[e]:{...t[e],includes:rr(a.includes,n)},[n]:{...t[n],parents:rr(s.parents,e)}}}function lP(e,n,t){const a=t[e],s=t[n];return!a||!s?t:{...t,[e]:{...t[e],includes:t[e].includes.filter(i=>i!==n)},[n]:{...t[n],parents:t[n].parents.filter(i=>i!==e)}}}function Tg(e,n){b.validateName(e),Object.entries(n).forEach(([,{privilege:a}])=>{if(e.toLowerCase()===a.toLowerCase())throw new Error(`There's already a Privilege with the name ${e}`)});const t=ps.generate();return{[t]:{id:t,privilege:e,includes:[],parents:[],resources:[]},...n}}function fP(e,n,t,a,s){let i=Tg(e,s);const c=Object.entries(i).find(([,l])=>l.privilege===e);return c?(i=Og(c[1].id,n,t,a,i),i):s}function dP(e,n,t){if(!e)throw new Error("Please enter a name");if(!t[n])throw new Error("Invalid privilege");return Object.entries(t).forEach(([,{privilege:a,id:s}])=>{if(e.toLowerCase()===a.toLowerCase()&&n!==s)throw new Error(`There's already a Privilege with the name ${e}`)}),{...t,[n]:{...t[n],privilege:e}}}function pP(e,n){return e.map(t=>Br(t,n))}function Br(e,n){return n[e]?n[e]:null}function Cg({applyTo:e,type:n,...t}){return Object.entries(t).reduce((a,[s,i])=>{const c=He.find(jc,["key",s]);return!c||!c.canApplyTo.includes(n)||(typeof i=="string"?i.split(","):i).forEach(d=>{a[d]=rr(a[d]||[],s)}),a},{})}const rc=(e,n=!1)=>["read","create","update","delete"].includes(e.toLowerCase())?`All ${n?"dataclasses and ":""}attributes have the '${e.toLowerCase()}' permission`:e.toLowerCase()==="execute"?`All functions defined ${n?"through the model (DataStore, Dataclasses, Entity selections, Entities) have the execute permission":"on this Dataclass, Entity selection class, Entity class have the execute permission"}`:`All ${n?"dataclasses, ":""}attributes and functions have the '${e.toLowerCase()}' permission`;function Bc(e){return{permissions:jc.filter(({canApplyTo:n})=>n.includes(e.type)).map(({key:n,label:t})=>{const a={name:n,from:[]};switch(e.type){case Ae.DATASTORE:return{...a,info:rc(t,!0)};case Ae.DATACLASS:return{...a,info:rc(t)};default:return a}}),resource:e.applyTo,type:e.type}}function xg(e,n){const t=Rg(n),a={};return e.filter(({type:s})=>sP.includes(s)).forEach(s=>{const i=Cg(s);Object.entries(i).forEach(([c,l])=>{var h;const d=(h=t[c])==null?void 0:h.id;if(!d)return;a[d]=a[d]||{...n[d]};let p=He.find(a[d].resources,{resource:s.applyTo,type:s.type});p||(p=Bc(s),a[d].resources.push(p)),p.permissions=p.permissions.map(y=>({...y,checked:y.checked||l.includes(y.name)}))})}),{...n,...a}}function Rg(e){return Object.values(e).reduce((n,t)=>({...n,[t.privilege]:t}),{})}function Ls(e){var t;const n=Sg(e.privileges||[]);return{forceLogin:e==null?void 0:e.forceLogin,privileges:xg(((t=e.permissions)==null?void 0:t.allowed)||[],n),roles:(e.roles||[]).map(({id:a=ps.generate(),role:s,privileges:i=[]})=>({id:a,role:s,privileges:rr(i).map(c=>{var l;return(l=Object.values(n).find(({privilege:d})=>d===c))==null?void 0:l.id}).filter(Boolean)})).reduce((a,s)=>({...a,[s.id]:{...s}}),{})}}function Ns(e){const n=Object.values(e.privileges).filter(({includes:a})=>a.length===0).map(({id:a})=>a),t=[...n,...n.map(a=>Ms(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=He.find(a,{applyTo:c,type:l});d||(d={applyTo:c,type:l},a.push(d)),i.forEach(({name:p,checked:h})=>{h&&d&&(d[p]=d[p]||[],d[p].push(s.privilege))})}),a),[])},privileges:t.filter(({privilege:a})=>a!==hs).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 hP(e,n){const t=n[e],a={children:[],links:[],parents:[],selected:e};if(!t)return a;function s(l,d,p=[]){const h=l.reduce((y,_)=>[...y,...n[_][d]],[]);return h.length===0?p:(p.push(h),s(h,d,p))}function i(l){const d=[],p=[];for(let h=l.length-1;h>=0;h-=1){const y=l[h].filter(_=>d.includes(_)?!1:(d.push(_),!0));y.length>0&&p.unshift(rr(y))}return p}function c(l,d){const p=[];return l.reduce((h,y)=>(y.forEach(_=>{n[_][d==="parents"?"includes":"parents"].forEach(T=>{p.includes(T)&&h.push(d==="parents"?{source:_,target:T}:{source:T,target:_})}),p.push(_)}),h),[])}return a.children=s([e],"includes"),a.children=i(a.children),a.parents=s([e],"parents"),a.parents=i(a.parents),a.links=[...c([[e],...a.parents],"parents"),...c([[e],...a.children],"includes")],a}function gP(e,n,t){const a=Br(e,t);if(!a||He.find(a.resources,{resource:n.applyTo,type:n.type}))return t;const s={...a,resources:[...a.resources,Bc(n)]};return{...t,[e]:s}}function vP(e,n,t){const a=Br(e,t);if(!a)return t;const s={...a,resources:a.resources.filter(({resource:i,type:c})=>i!==n.applyTo||c!==n.type)};return{...t,[e]:s}}function mP(e,n){const t=Br(e,n);if(!t)return n;const a={...t,resources:t.resources.filter(s=>s.permissions.some(i=>i.from.length)).map(s=>({...s,permissions:s.permissions.map(i=>({...i,checked:!1}))}))};return{...n,[e]:a}}function Og(e,n,t,a,s){const i=Br(e,s);if(!i)return s;const l=He.find(i.resources,{type:t,resource:n})?{...i,resources:i.resources.map(d=>d.type===t&&d.resource===n?{...d,permissions:d.permissions.map(p=>p.name===a?{...p,checked:!p.checked,from:[]}:p)}:d)}:{...i,resources:[...i.resources,{type:t,resource:n,permissions:jc.filter(d=>d.canApplyTo.includes(t)).map(d=>({from:[],name:d.key,checked:d.key===a,info:rc(d.key,t===Ae.DATASTORE)}))}]};return{...s,[e]:l}}function yP(e,n,t,a){const s=Br(e,a);if(!s)return a;const c=He.find(s.resources,{type:n.type,resource:n.resource})?{...s,resources:s.resources.map(l=>l.type===n.type&&l.resource===n.resource?{...l,permissions:n.permissions.map(d=>d.name===t.name?{...d,checked:!d.checked,from:[]}:d)}:l)}:{...s,resources:[...s.resources,{...n,permissions:n.permissions.map(l=>({...l,checked:t.name===l.name,from:[]}))}]};return{...a,[e]:c}}function bP(e,n){var d;const t=Ag(e,n)||[],a=((d=Br(e,n))==null?void 0:d.resources)||[],c=([...t,...a].filter(({type:p})=>p===Ae.METHOD)||[]).map(({resource:p})=>p);return Object.entries(n).reduce((p,[h,{resources:y}])=>(y.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]=rr(p[E]||[],h))}),p),{})}function Ag(e,n){var c;const t=Br(e,n);if(!t)return[];const a=(c=Object.values(n).find(l=>l.privilege===hs))==null?void 0:c.id;return(a&&a!==e?rr(gs(e,n),a):gs(e,n)).reduce((l,d)=>(n[d].resources.forEach(h=>{if(h.permissions.filter(({checked:E})=>E).length===0)return;const _=He.find(l,{type:h.type,resource:h.resource});if(!_){l.push({...h,permissions:h.permissions.map(E=>({...E,from:E.checked?[d]:[],checked:!1}))});return}_.permissions=_.permissions.map((E,T)=>{let{from:x=[]}=E;return h.permissions[T].checked&&!x.includes(d)&&(x=[...x,d]),{...E,from:x,checked:E.checked}})}),l),He.clone(t.resources.map(l=>({...l,permissions:l.permissions.map(({checked:d,...p})=>({...p,checked:!!d}))}))))}const _P=e=>e.reduce((n,t)=>({...n,[t.id]:{...t}}),{}),EP=(e,n)=>n[e]?Object.values(n).reduce((t,a)=>e===a.id||a.role===""?t:{...t,[a.id]:a},{}):n,SP=(e,n,t)=>t[e]?Object.values(t).reduce((a,s)=>e===s.id?{...a,[s.id]:{...s,name:n}}:{...a,[s.id]:s},{}):t,wP=(e,n)=>{const t={id:e,role:"",privileges:[]};return{...n,[t.id]:t}},TP=(e,n)=>{if(b.validateName(e.role),Object.values(n).find(a=>a.role===e.role))throw new Error(`a role with the name ${e.role} already exists`);return Object.values(n).reduce((a,s)=>e.id===s.id?{...a,[e.id]:e}:{...a,[s.id]:s},{})},CP={list:[]},$p=(e,n)=>e.list.filter(t=>t.id!==n),Pg=nr({name:"modals",initialState:CP,reducers:{createModal:(e,n)=>{e.list.push(n.payload)},editModal:(e,n)=>{const{id:t,...a}=n.payload,s=e.list.find(b.byId(t));s&&Object.assign(s,{...a})},removeModal:(e,n)=>{const t=n.payload;e.list=$p(e,t)},closeModal:(e,n)=>{const{id:t,reason:a}=n.payload;if(a){const s=e.list.find(i=>i.id===t);s&&(s.closeReason=a,s.isOpen=!1)}else e.list=$p(e,t)}}}),{createModal:Dg,removeModal:Ig,closeModal:xP,editModal:RP}=Pg.actions,ar=Q("modals/open",async(e,{dispatch:n})=>{const{type:t=b.ModalType.ALERT,store:a=Av()}=e,s=yc();switch(n(Dg({id:s,type:t,isOpen:!0,...e})),t){case b.ModalType.CONFIRM:return new Promise(i=>{const c=a.subscribe(()=>{var p;const{modals:l}=a.getState(),d=l.list.find(h=>h.id===s);if(d&&!d.isOpen){const h=d.closeReason===b.ModalCloseReason.CONFIRMED,y=He.entries((p=d.views)==null?void 0:p.toggles).reduce((_,E)=>({..._,[E[0]]:E[1].value}),{});n(Ig(s)),c(),i({confirmed:h,options:y})}})});default:return{}}}),Fg=()=>b.getFileContent({name:b.ROLES_TAB_PATH}),$g="Roles & Privileges",vs=Q("roles/fetchRoles",async(e,{dispatch:n,rejectWithValue:t})=>{var i;let a;try{a=await Fg()}catch(c){if(!Array.isArray((i=c==null?void 0:c.data)==null?void 0:i.__ERROR))return t("Error while loading the roles");a={name:b.ROLES_TAB_PATH,date:new Date().toISOString(),content:{permissions:{allowed:[]},privileges:[],roles:[]}}}const s={name:$g,type:b.FileFolderType.ROLES,date:a.date,view:{panel:{isOpen:!1,type:"",current:""}},path:b.ROLES_TAB_PATH,flags:{},extra:{editor:{key:"editors:roles"}},content:{}};return n(Pt(s)),{...a,content:Ls(a.content)}}),Mg=Q("roles/fetchRolesChanges",async(e,{getState:n})=>{const{tabs:t}=n().root;if(t.find(s=>s.path===b.ROLES_TAB_PATH)){const{date:s}=n().roles;if(s&&await Wc(s))return{old:!0}}return{}}),Wc=async e=>{if(!e)return!1;try{const n=await Fg();if(n.date){const t=new Date(e),a=new Date(n.date);if(t>a)return!0}}catch(n){if(!Array.isArray(n==null?void 0:n.data.__ERROR))throw n}return!1},nc=Q("roles/saveRoles",async(e,{getState:n,rejectWithValue:t,dispatch:a})=>{try{const{flags:s,date:i}=n().roles;if(s.old||await Wc(i)){const{confirmed:d}=await a(ar({title:$g,message:"New content has been found on the server. Are you sure you want to continue?",type:b.ModalType.CONFIRM,icon:"FdSave"})).unwrap();if(!d)return t({old:!0})}return await b.setFileContent({name:b.ROLES_TAB_PATH,content:Ns(e)})}catch{return t("Error while loading the roles")}}),Lg=nr({name:"roles",initialState:()=>{const{roles:e}=Kn(),{roles:n={},privileges:t={},flags:a={touched:!1},date:s,selectedTab:i="roles"}=e||{};return{flags:a,roles:n,privileges:t,date:s,selectedTab:i}},reducers:{updatePrivileges:(e,n)=>{e.privileges=n.payload,e.flags.touched=!0},updateRoles:(e,n)=>{e.roles=n.payload,e.flags.touched=!0},updateRolesAndPrivileges:(e,n)=>{e.roles=n.payload.roles,e.privileges=n.payload.privileges},toggleTab:(e,n)=>{e.selectedTab=n.payload},toggleForceLogin:(e,n)=>{e.forceLogin!==n.payload&&(e.forceLogin=n.payload,e.flags.touched=!0)},setRolesContent(e,n){const{content:t,flags:a={},...s}=n.payload,i=Ls(t),c={...e.flags,...a};return{...e,...i,...s,flags:c}}},extraReducers(e){e.addCase(vs.fulfilled,(n,t)=>{const{content:a,date:s}=t.payload;n={...n,...a,date:s}}).addCase(vs.rejected,n=>({...n,roles:{},privileges:{},flags:{touched:!1},date:void 0})).addCase(nc.fulfilled,(n,t)=>({...n,flags:{...n.flags,confirmed:!0,touched:!1,old:!1},date:t.payload.date})).addCase(nc.rejected,(n,t)=>wh.isString(t.payload)?n:{...n,flags:{...n.flags,...t.payload}}).addCase(Mg.fulfilled,(n,t)=>({...n,flags:{...n.flags,...t.payload}})).addCase(Yn.fulfilled,(n,t)=>{!t.payload||t.payload.path!==b.ROLES_TAB_PATH||(n.flags.touched=!1,n.flags.old=!1)}).addCase(Vc.fulfilled,(n,t)=>{t.meta.arg!==b.ROLES_TAB_PATH||!t.payload||(n.flags.touched=!1,n.flags.old=!1)})}}),{updatePrivileges:Ng,updateRoles:kg,setRolesContent:Uc,toggleTab:OP,toggleForceLogin:AP,updateRolesAndPrivileges:Hc}=Lg.actions,PP=Lg.reducer,Gc=Q("settings/fetch",async()=>await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:b.SETTINGS_TAB_PATH,content:!0,as:"json"})),jg=Q("settings/app",b.getAppSettings),DP=gh(),Mp={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":Mc.SHOW_AFTER_TIMEOUT,"webforms.tooltip.timeout":3e3,"webforms.renderer.showPopOver":!0,"webforms.renderer.showUnsavedPopOver":!0,"webforms.renderer.unsavedPopOverChoice":Lc.NONE,"welcometour.active":!0,"webforms.properties.advanced-mode":!1,"monaco.zoom":0},project:{"webforms.renderer.indexPage":"","webforms.display-mode":"neutral"},server:{projectOpened:!1,remoteDebuggerMode:b.RemoteDebuggerMode.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:"",lsp:""},isRestActive:!0}},IP={...Mp,session:{...Mp.session,...DP},welcometour:{}},Bg=nr({name:"settings",initialState:IP,reducers:{setSetting(e,n){const{path:t,settingsKey:a,value:s}=n.payload;e[t][a]=s},setSettings(e,n){const{path:t,value:a}=n.payload;e[t]={...e[t],...a}},setSettingsAsText(e,n){const{path:t,settings:a}=n.payload;e[t]=a}},extraReducers(e){e.addCase(Gc.fulfilled,(n,t)=>{n.project={...n.project,...t.payload.content}}),e.addCase(jg.fulfilled,(n,t)=>{n.server=t.payload,n.server.qodly&&(n.project["webforms.display-mode"]="airy")})}}),{setSetting:ac,setSettings:ks,setSettingsAsText:FP}=Bg.actions,$P=Bg.reducer,oc=e=>{const n=["folder","file"];return e.sort((t,a)=>t.type===a.type?t.name.localeCompare(a.name):n.indexOf(t.type)-n.indexOf(a.type))},Re=(e,n)=>e.reduce((t,a)=>a.path===n.path&&a.type===n.type?[...t,n]:a.children?[...t,{...a,children:oc(Re(a.children,n))}]:[...t,a],[]),lt=(e,n)=>e.reduce((t,a)=>t||(a.path===n?a:a.children?lt(a.children,n):null),null),MP=[{name:b.FolderRootPath.WEBFORMS,type:b.FileFolderType.FOLDER,children:[],path:b.FolderRootPath.WEBFORMS,error:null,flags:{expanded:!1,loading:!1,cached:!1},tipKey:"editors:webform:explorer:webforms",config:{},isRoot:!0},{name:b.FolderRootPath.METHODS,type:b.FileFolderType.FOLDER,children:[],path:b.FolderRootPath.METHODS,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:b.FolderRootPath.CLASSES,type:b.FileFolderType.FOLDER,children:[],path:b.FolderRootPath.CLASSES,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:b.FolderRootPath.SHARED,type:b.FileFolderType.FOLDER,children:[],path:b.FolderRootPath.SHARED,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:"Debugger",type:b.FileFolderType.FOLDER,children:[],path:"Debugger",error:null,flags:{expanded:!1,cached:!0},config:{},isRoot:!0},{name:"Roles And Privileges",type:b.FileFolderType.FILE,ext:"json",path:"roles",error:null,flags:{},config:{editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},isRoot:!0},{name:"Model",type:b.FileFolderType.MODEL,ext:"4DModel",path:"model",error:null,flags:{},config:{editor:{key:"editors:model"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]}},{name:"Settings",type:b.FileFolderType.FILE,ext:"json",path:"qodlyApp",error:null,flags:{},config:{editor:{key:"editors:settings"}},isRoot:!0}],Wg=nr({name:"explorer",initialState:MP,reducers:{toggleExpandFolder:(e,n)=>(e=Re(e,{...n.payload,flags:{...n.payload.flags,expanded:!n.payload.flags.expanded}}),e),expandFolder:(e,n)=>(e=Re(e,{...n.payload,flags:{...n.payload.flags,expanded:!0}}),e),openAddFileInput:(e,n)=>Re(e,{...n.payload,flags:{...n.payload.flags,adding:!0}}),addNewFile:(e,n)=>{const{parent:t,child:a}=n.payload;return Re(e,{...t,children:[a,...t.children||[]]})},removeFile:(e,n)=>{const{parent:t,child:a}=n.payload;return Re(e,{...t,children:t.children.filter(s=>s.path!==a.path)})},refreshFile:(e,n)=>{const{parent:t,child:a}=n.payload,s=(t.children||[]).filter(i=>i.path!==a.path&&!a.error);return Re(e,{...t,children:[a,...s]})},setFolderChildren:(e,n)=>{const t=lt(e,n.payload.parentPath);return t?Re(e,{...t,children:n.payload.children}):e}},extraReducers:e=>{e.addCase(qn.pending,(n,t)=>{const{file:a,newname:s}=t.meta.arg,i=lt(n,a.path);if(!i)return n;const c=a.path.split("/");c.pop();const l=`${c.join("/")}/${a.name}.${a.ext}`,d=`${c.join("/")}/${s}.${a.ext}`;switch(a.ext){case"4dm":case"4qs":b.lspSubject.next({action:b.LspActions.WILL_RENAME,payload:{oldPath:l,newPath:d}});break}return Re(n,{...i,flags:{...i.flags,loading:!0}})}),e.addCase(qn.fulfilled,(n,t)=>{const{meta:{arg:{file:a}},payload:s}=t,i=lt(n,a.path);if(!i)return n;switch(s.old.ext){case"4dm":case"4qs":b.lspSubject.next({action:b.LspActions.DID_RENAME,payload:{oldPath:s.old.path,newPath:s.new.path}});break}return Re(n,{...i,flags:{...i.flags,loading:!1}})}),e.addCase(qn.rejected,(n,t)=>{const{file:a}=t.meta.arg,s=lt(n,a.path);return s?Re(n,{...s,flags:{...s.flags,loading:!1}}):n}),e.addCase(_r.pending,(n,t)=>{const a=t.meta.arg,s=lt(n,a);return s?Re(n,{...s,flags:{...s.flags,loading:!0}}):n}),e.addCase(_r.fulfilled,(n,t)=>{const a=t.meta.arg,s=lt(n,a);return s?Re(n,{...s,children:oc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!0},error:null}):n}),e.addCase(_r.rejected,(n,t)=>{const a=t.meta.arg,s=lt(n,a);return s?Re(n,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!0}}):n}),e.addCase(Aa.pending,(n,t)=>{const a=t.meta.arg,s=lt(n,a);return s?Re(n,{...s,flags:{...s.flags,loading:!0}}):n}),e.addCase(Aa.fulfilled,(n,t)=>{const a=t.meta.arg,s=lt(n,a);return s?Re(n,{...s,children:oc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!1},error:null}):n}),e.addCase(Aa.rejected,(n,t)=>{const a=t.meta.arg,s=lt(n,a);return s?Re(n,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!1}}):n}),e.addCase(Jo.pending,(n,t)=>{const{fileName:a,parentNode:s,path:i,type:c}=t.meta.arg;return Re(n,{...s,children:[{name:a,path:`${i}/${a}`,type:c,error:null,flags:{loading:!0},config:{}},...s.children]})}),e.addCase(Jo.fulfilled,(n,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg,c=b.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=pr(`${a}${c?`.${c.toLowerCase()}`:""}`);return Re(n,{name:s,path:`${a}/${s}`,type:i,error:null,flags:{loading:!1},config:{editor:l,supportedEditors:d}})}),e.addCase(Jo.rejected,(n,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg;return Re(n,{name:s,path:`${a}/${s}`,type:i,error:{message:t.payload},flags:{loading:!1},config:{}})}),e.addCase(Xo.pending,(n,t)=>{const{node:a,parentNode:s}=t.meta.arg;return Re(n,{...s,children:[{name:`${a.name}_copy`,path:`${a.path}/${a.name}_copy`,type:a.type,error:null,flags:{loading:!0},permissions:{canRename:!0,canDelete:!0}},...s.children]})}),e.addCase(Xo.fulfilled,(n,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(n,{name:`${a.name}`,path:`${s}/${a.name}`,type:a.type,error:null,flags:{loading:!1},config:{editor:c,supportedEditors:l}})}),e.addCase(Xo.rejected,(n,t)=>{const a=t.payload,{node:s}=t.meta.arg;return Re(n,{name:`${s.name}_copy`,path:`${s.path}/${s.name}_copy`,type:s.type,error:{message:a},flags:{loading:!1},config:{}})}),e.addCase(Da.pending,(n,t)=>{}),e.addCase(Da.fulfilled,(n,t)=>{var y;const{draggedNode:a,newLocation:s}=t.meta.arg,i=jh(a.path),c=lt(n,i),l=lt(n,s.path),d=(y=c==null?void 0:c.children)==null?void 0:y.filter(_=>_.path!==a.path),p=s.path.split("/").length,h=a.path.split("/").length;return p>=h?(n=Re(n,{...c,children:d}),n=Re(n,{...l,children:[{...a,path:`${l.path}/${a.name}`},...l!=null&&l.children?l==null?void 0:l.children:[]],flags:{...l.flags,expanded:!0}})):(n=Re(n,{...l,children:[{...a,path:`${l.path}/${a.name}`},...l!=null&&l.children?l==null?void 0:l.children:[]],flags:{...l.flags,expanded:!0}}),n=Re(n,{...c,children:d})),n}),e.addCase(Da.rejected,(n,t)=>{b.toastSubject.next({message:"Error moving file",kind:"danger"})}),e.addCase(Gn.pending,(n,t)=>{var x;const{fileName:a,parentNode:s,path:i,type:c,qodly:l}=t.meta.arg,d=b.getFileExtentionFromType(c,l),p=`${i}/${a}${d?`.${d.toLowerCase()}`:""}`,{editor:h,supportedEditors:y}=pr(p);switch(c){case b.FileFolderType.CLASS:case b.FileFolderType.METHOD:b.lspSubject.next({action:b.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:b.FileFolderType.FILE,error:null,flags:{loading:!0},config:{editor:h,supportedEditors:y},ext:d,date:new Date().toISOString()},..._],T=Re(n,{...s,children:E});return wh.merge(n,T)}),e.addCase(Gn.fulfilled,(n,t)=>{const{fileName:a,path:s,type:i,qodly:c}=t.meta.arg,l=b.getFileExtentionFromType(i,c),d=`${s}/${a}${l?`.${l.toLowerCase()}`:""}`,{editor:p,supportedEditors:h}=pr(d),y=Re(n,{name:a,path:`${s}/${a}`,type:b.FileFolderType.FILE,error:null,flags:{},config:{editor:p,supportedEditors:h},ext:l,date:new Date().toISOString()});switch(i){case b.FileFolderType.CLASS:case b.FileFolderType.METHOD:b.lspSubject.next({action:b.LspActions.DID_CREATE,payload:{filePath:d}});break}return n=y,n}),e.addCase(Gn.rejected,(n,t)=>{const{fileName:a,path:s,type:i}=t.meta.arg,c=b.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=pr(`${s}${c?`.${c.toLowerCase()}`:""}`);return n=Re(n,{name:a,path:`${s}/${a}`,type:b.FileFolderType.FILE,error:{message:"Failed creating file"},flags:{},config:{editor:l,supportedEditors:d},ext:c,date:new Date().toISOString()}),n}),e.addMatcher(nh(Pa),(n,t)=>{const a=lt(n,t.meta.arg.file.path.split(".")[0]);return a&&(n=Re(n,{...a,flags:{...a.flags,loading:!0}})),n}),e.addMatcher(oh(Pa),(n,t)=>{const a=lt(n,t.meta.arg.file.path.split(".")[0]);return a&&(n=Re(n,{...a,flags:{...a.flags,loading:!1}})),n}),e.addMatcher(ah(Pa),(n,t)=>{const a=lt(n,t.meta.arg.file.path.split(".")[0]);return a&&(n=Re(n,{...a,flags:{...a.flags,loading:!1}})),b.toastSubject.next({message:"Failed to open file, try again",kind:"danger"}),n})}}),{toggleExpandFolder:LP,expandFolder:NP,openAddFileInput:kP,addNewFile:Ug,refreshFile:jP,removeFile:sc,setFolderChildren:BP}=Wg.actions;function Hg(e,n){switch(e){case b.FileFolderType.WEBFORMS:const t={metadata:{v:"1.0",datasources:[],styles:[]},components:{ROOT:{parent:"",type:{resolvedName:"Container"},isCanvas:!0,props:{airyMode:!1,className:"bg-white h-full w-full px-6",classNames:[],events:[]},displayName:"App",custom:{},hidden:!1,nodes:[],linkedNodes:{}}}};return n["webforms.display-mode"]===Nc.AIRY&&(t.components.ROOT.props.airyMode=!0),t;case b.FileFolderType.METHODS:return`//%attributes = {}
|
|
91
|
+
`;default:return""}}function Gg(e,n,t){switch(n){case b.FileFolderType.MOBILEFORM:return`${e}.MForm`;case b.FileFolderType.WEBFORM:return`${e}.WebForm`;case b.FileFolderType.METHOD:case b.FileFolderType.CLASS:return`${e}.${t?"4qs":"4dm"}`;default:return e}}function WP(e){switch(e){case b.FolderRootPath.WEBFORMS:return b.FileFolderType.WEBFORMS;case b.FolderRootPath.METHODS:return b.FileFolderType.METHODS;case b.FolderRootPath.CLASSES:return b.FileFolderType.CLASSES;case"Mobile":return b.FileFolderType.MOBILE;default:return e}}function qg(e){switch(e){case b.FileFolderType.WEBFORMS:return b.FileFolderType.WEBFORM;case b.FileFolderType.CLASSES:return b.FileFolderType.CLASS;case b.FileFolderType.METHODS:return b.FileFolderType.METHOD;case b.FileFolderType.FOLDER:return b.FileFolderType.FOLDER;case b.FileFolderType.MOBILE:return b.FileFolderType.MOBILEFORM;default:return e}}const UP=Q("files/tryEditMethod",async({method:e},{dispatch:n})=>{const t=e.filePath.split("/"),[a]=t[1].split("."),{editor:s}=pr(e.filePath);return await n(qc({file:{name:a,path:e.filePath,date:new Date().toISOString(),type:b.FileFolderType.CLASS,editor:s},line:e.startingLine+1})).unwrap()}),ic=Q("explorer/createModelFiles",async(e,{dispatch:n,getState:t})=>{var y;const a=t(),s=b.FolderRootPath.CLASSES,i=a.settings.server.qodly,c=lt(a.explorer,s);if(!c)return;await n(_r(s));const d=((y=t().explorer.find(_=>_.name===s))==null?void 0:y.children)||[];let p=[{content:"",name:""}];const h=_=>{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,26 +96,26 @@ 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=[{...h("dataclass")},{...h("collection")},{...h("entity")}]:e.type==="dataclass"&&e.toCreate?p=[{...h(e.toCreate)}]:p=[{...h("model")}],p=p.filter(_=>!d.find(({name:E,ext:T})=>E===_.name&&T===(i?"4qs":"4dm"))),await Promise.all(p.map(async({name:_,content:E})=>{await n(Gn({type:b.FileFolderType.CLASS,path:s,fileName:_,parentNode:c,content:E,qodly:a.settings.server.qodly}))})),await n(_r(s))}),_r=Q("explorer/fetchFolderContent",async(e,{rejectWithValue:n})=>{try{return(await b.getNodeInfo({verb:b.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 n("Failed loading file content please Reload")}},{getPendingMeta:()=>{}}),Aa=Q("explorer/fetchFolderContentWithoutExpanding",async(e,{rejectWithValue:n})=>{try{return(await b.getNodeInfo({verb:b.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 n("Failed loading file content please Reload")}},{getPendingMeta:()=>{}});function UP(e){const n=e.split(".");return n.pop(),{name:n.join("."),ext:e.split(".")[e.split(".").length-1]}}const HP=Q("explorer/uploadFile",async e=>{const n=e.type.includes("image/")?"$rawPict=true":"$binary=true";try{const t=await fetch(`/rest/$upload?${n}`,{method:"POST",headers:{"Content-Type":e.type},body:e});return{status:t.status,data:await t.json()}}catch{return{status:500,data:null}}}),GP=Q("explorer/uploadFile",async({file:e,path:n,parentNode:t},{dispatch:a})=>{const{editor:s,supportedEditors:i}=pr(n),{name:c,ext:l}=UP(e.name);a(Wg({parent:t,child:{name:c,path:`${n}/${e.name}?t=${Date.now()}`,type:e.type,error:null,flags:{loading:!0},config:{editor:s,supportedEditors:i},ext:l}}));try{const d=await fetch(`/rest/$upload?$sharedFolder=true&$filename=${e.name}&$path=${n}`,{method:"POST",headers:{"Content-Type":e.type},body:e});return d.status>=300?(a(sc({parent:t,child:{name:c,path:`${n}/${e.name}`,type:e.type,error:{message:"error uploading file"},flags:{},config:{editor:s,supportedEditors:i},ext:l}})),d.status!==413&&b.toastSubject.next({message:"error uploading file",kind:"danger"})):await a(_r(t.path)),{status:d.status,fileName:e.name}}catch{return a(sc({parent:t,child:{name:c,path:`${n}/${e.name}`,type:e.type,error:{message:"error uploading file"},flags:{},config:{editor:s,supportedEditors:i},ext:l}})),b.toastSubject.next({message:"error uploading file",kind:"danger"}),{status:500,fileName:e.name}}}),Gn=Q("explorer/createNewFile",async({fileName:e,type:n,path:t,parentNode:a,content:s},{dispatch:i,rejectWithValue:c,getState:l})=>{const{server:{qodly:d},project:p}=l().settings;try{const h=await b.setFileContent({name:Hg(e,n,d),content:s||Ug(n,p),path:t,asText:[b.FileFolderType.CLASS,b.FileFolderType.METHOD].includes(n)});return a.error&&(a.flags.expanded?await i(_r(a.path)):await i(Aa(a.path))),{qodly:d,file:h,parentNode:a}}catch{return c("failed to create folder")}});function qg(e,n){const{qodly:t=!0,withExtension:a=!0}=n||{},s=b.getFileExtentionFromType(e.type,t);let i="";switch(e.type){case b.FileFolderType.WEBFORM:i=`${b.FolderRootPath.WEBFORMS}/${e.name}`;break;case b.FileFolderType.METHOD:i=`${b.FolderRootPath.METHODS}/${e.name}`;break;case b.FileFolderType.CLASS:i=`${b.FolderRootPath.CLASSES}/${e.name}`;break;default:return""}return`${i}${a?`.${s}`:""}`}const qP=Q("explorer/createNewFileAndOpen",async(e,{dispatch:n,getState:t})=>{const a=await n(Gn(e)).unwrap(),{qodly:s}=t().settings.server;if(a){const{file:i}=a,c=qg(i,{withExtension:!1,qodly:s}),{editor:l}=pr(c);await n(Pa({file:{name:e.fileName,type:i.type,path:c,editor:l,date:new Date().toISOString()}}))}}),Jo=Q("explorer/createNewNode",async({fileName:e,path:n,parentNode:t},{rejectWithValue:a})=>{try{return{file:await b.createFolder({verb:b.DesignerRequestVerb.CREATE_FOLDER,path:`${n}/${e}`,recursive:!0}),parentNode:t}}catch{return b.toastSubject.next({message:"failed to create folder",kind:"danger"}),a("failed to create folder")}}),js=async(e,n={})=>{try{const t=e.path.split(".").at(-1),a=await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:vh(t)?"json":"text"}),s={editor:e.editor},i=b.getTypeFromExtension(e.path);i===b.FileFolderType.METHOD&&(s.attributes=b.parseAttributes(a.content),a.content=b.addAttributesToContent(a.content,{}));const{content:c,date:l,ext:d}=a;return n.confirmed===void 0&&(n.confirmed=!0),{date:l,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(d),confirmed:n.confirmed},extra:s,name:e.name,path:e.path,type:i,initialContent:c,content:c}}catch(t){const{data:a}=t;if(a.__ERROR.find(s=>s.errCode===b.ERROR_CODES.FILE_NOT_FOUND))switch(e.path){case b.ROLES_TAB_PATH:{const s={permissions:{allowed:[]},privileges:[],roles:[]};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:roles"}},name:"Roles & Privileges",path:e.path,type:b.FileFolderType.ROLES,initialContent:s,content:s}}case b.SETTINGS_TAB_PATH:{const s={};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:settings"}},name:"Settings",path:e.path,type:b.FileFolderType.SETTINGS,initialContent:s,content:s}}}throw t}},Pa=Q("explorer/openFile",async({file:e,inactive:n,isNew:t,flags:a={}},{getState:s,dispatch:i})=>{const{root:{tabs:c},roles:l,debugger:{sessions:d}}=s(),p=c.find(({path:_})=>e.path===_);if(p){const _={...p,extra:{...p==null?void 0:p.extra,editor:e.editor},flags:{...p==null?void 0:p.flags,...a}};return i(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:b.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 h=null;try{h=await js(e,a)}catch(_){const{data:E}=_;if(E.__ERROR.find(T=>[b.ERROR_CODES.JSON_MALFORMED,b.ERROR_CODES.JSON_MALFORMED_AT_LINE].includes(T.errCode))){const{confirmed:T}=await i(ar({title:"Corrupt file",type:b.ModalType.CONFIRM,color:b.ModalColor.WARNING,message:"Open in code editor ?"})).unwrap();if(T){const x=await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:"text"}),{content:D,date:P,ext:j}=x;h={date:P,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(j),confirmed:!0},extra:{editor:b.EDITOR.Code},name:e.name,path:e.path,type:b.getTypeFromExtension(e.path),initialContent:D,content:D}}}}return h&&(e.path===b.ROLES_TAB_PATH&&!l.flags.touched?i(Wc({content:h.content,date:h.date})):e.path===b.SETTINGS_TAB_PATH&&i(ks({path:"project",value:h.content})),i((n?_v:Pt)({...h,isNew:t})),h)}),Gc=Q("explorer/openFileAtLine",async({file:e},{getState:n,dispatch:t})=>{const{tabs:a}=n().root,s=a.find(({path:c})=>e.path===c);if(s){const c={...s,extra:{...s==null?void 0:s.extra,editor:e.editor}};return t(Pt(c)),c}const i=await js(e);return t(Pt(i)),i}),Yg=Q("explorer/injectContentAtLine",async(e,{getState:n,dispatch:t,rejectWithValue:a})=>{const s=n();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 js({name:c.name,date:c.date||new Date().toISOString(),path:`${c.path}.${c.ext}`,type:b.FileFolderType.CLASS,editor:c.config.editor});return await t(Pt(l)),{...e,path:`${c.path}.${c.ext}`}}),zg=Q("explorer/openFileAtSelection",async({file:e},{getState:n,dispatch:t})=>{const{tabs:a}=n().root,s=a.find(({path:c})=>e.path===c);if(s){const c={...s,extra:{...s==null?void 0:s.extra,editor:e.editor}};return t(Pt(c)),c}const i=await js(e);return t(Pt(i)),i}),uc=Q("explorer/deleteFile",async e=>{const{name:n,type:t,path:a,flags:s}=e;if(s.error)return{deleted:!0,node:e};const i=a.split("/");return i.pop(),{deleted:await b.dropFile({root:b.FolderRootType.ROOT,type:Gg(t),verb:b.DesignerRequestVerb.DROP,name:n,path:i.join("/")}),node:e}}),YP=Q("explorer/deleteFolder",async e=>{const{path:n,flags:t}=e;if(t.error)return{deleted:!0,node:e};const{deleted:a}=await b.removeItem({force:!0,path:n,verb:b.DesignerRequestVerb.REMOVE_ITEM}).catch(console.error)||{deleted:!1};return{deleted:a,node:e}}),zP=Q("explorer/removeFileNode",async(e,{getState:n,dispatch:t})=>{const a=`${e.path}.${e.ext}`;if(await b.removeItem({verb:b.DesignerRequestVerb.REMOVE_ITEM,path:a,force:!0}).catch(console.error),e.path==="Classes/DataStore"&&setTimeout(()=>{t(wn())},Ss),e.ext){const{tabs:s}=n().root,i=s.findIndex(c=>c.path===a);i>=0&&t(Zc(i))}return{deleted:!0,node:e}}),qn=Q("explorer/renameFile",async({file:e,newname:n})=>{if(e.type!=="folder"){const a=e.path.split("/");a.pop();const s=`${a.join("/")}/${e.name}.${e.ext}`,i=`${a.join("/")}/${n}.${e.ext}`;return await b.moveItem({verb:b.DesignerRequestVerb.MOVE_ITEM,path:s,newpath:i}),{old:{...e,path:s},new:{...e,name:n,path:i}}}const t=e.path.split("/");return t.pop(),await b.moveItem({verb:b.DesignerRequestVerb.MOVE_ITEM,path:`${t.join("/")}/${e.name}`,newpath:`${t.join("/")}/${n}`}),{old:e,new:{...e,name:n,path:`${t.join("/")}/${n}`}}}),Da=Q("explorer/relocateNode",async({draggedNode:e,newLocation:n},{rejectWithValue:t})=>{try{await b.moveItem({verb:b.DesignerRequestVerb.MOVE_ITEM,path:`${e.path}.${e.ext}`,newpath:`${n.path}/${e.name}.${e.ext}`})}catch{return t("can't move item")}}),Xo=Q("explorer/duplicateNode",async({node:e,duplicateName:n},{rejectWithValue:t,fulfillWithValue:a,getState:s})=>{const i=e.path.split("/");i.pop();try{const{tabs:c}=s().root,l=c.find(({path:y})=>y===`${e.path}${e.ext?`.${e.ext}`:""}`),d=["4dm","4qm","4qs"].includes(e.ext),{content:p}=l||await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:`${e.path}.${e.ext}`,content:!0,as:d?"text":"json"}),h=await b.setFileContent({name:`${n}.${e.ext}`,content:p,path:i.join("/"),asText:d});return a({node:{...h,path:i.join("/")}})}catch{return t("failed to duplicate file")}}),VP=Q("explorer/executeMethod",async({methodName:e,params:n=[],resultingDataSource:t={},namespace:a=""},{rejectWithValue:s})=>{var i,c;try{const d=await window.Method4D.buildMethod({methodName:e,parameters:n,resultingDataSource:t},{namespace:a},null).callServerSide({id:"",serverSideRef:""},"onclick",{});return d!=null&&d.__NOTIFICATION?b.toastSubject.next({message:`${((i=d.__NOTIFICATION)==null?void 0:i.message)||""}`,kind:`${((c=d.__NOTIFICATION)==null?void 0:c.type)||"info"}`}):b.toastSubject.next({message:"Method executed Successfully",kind:"message"}),d}catch(l){return b.toastSubject.next({message:l.message||`Error executing the method "**${e}**"`,kind:"danger",markdown:!0}),s("can't execute method")}}),KP=Q("files/fetchFiles",async()=>b.getFolders(b.FolderRootType.WEBFORMS,b.FolderRootType.METHODS,b.FolderRootType.CLASSES)),qc=Q("tabs/renameDatasource",async(e,{dispatch:n,getState:t})=>{var E,T;const a=!!e.datasourceNamespace,{confirmed:s}=await n(ar({message:"Are you sure you want to rename the datasource?",title:"Rename Datasource",type:b.ModalType.CONFIRM,color:b.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,h=t();let y=[];if(a){const x=h.sharedDatasources.sources[l]||[];y.push(...x)}else if(p){const x=h.root.tabs.find(b.by("path",p));if(y=(T=(E=x==null?void 0:x.content)==null?void 0:E.metadata)==null?void 0:T.datasources,!y)return null}const _=new RegExp(`^${c}\\b`,"");if(y=y.map(x=>{const D=(b.isObjectDatasource(x)||!b.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 H=j;return H.params?{...H,params:H.params.map(Y=>{var te;return{...Y,datasource:(te=Y.datasource)==null?void 0:te.replace(new RegExp(`^${c}`,""),d)}}),returns:(M=H.returns)!=null&&M.datasource?{...H.returns,datasource:(k=H.returns.datasource)==null?void 0:k.replace(new RegExp(`^${c}`,""),d)}:H.returns}:H}case"simple-action":{const H=j;return H.datasource?{...H,datasource:{...H.datasource,name:(O=H.datasource.name)==null?void 0:O.replace(new RegExp(`^${c}`,""),d),from:(z=H.datasource.from)==null?void 0:z.replace(new RegExp(`^${c}`,""),d)}}:H}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}`;b.datasourcesSubject.next({path:p??"",action:b.DatasourcesActions.RENAME,old_reference:x,new_reference:D,is_shared:a})}return{path:p,namespace:l,datasources:y}}),Yc=Q("tabs/edit-datasource",(e,{getState:n})=>{var i,c;const t=n();let a=[];if(e.namespace)a=t.sharedDatasources.sources[e.namespace];else{const l=t.root.tabs.find(b.by("path",e.path));l&&(a=((c=(i=l.content)==null?void 0:i.metadata)==null?void 0:c.datasources)||[])}return a.map(l=>l.id===e.datasourceId?Object.assign({},l,{[e.propertyKey]:e.value}):l)}),Vg=Q("tabs/fetchChanges",async(e,{getState:n})=>{const a=ta(n()).filter(s=>[b.FileFolderType.METHOD,b.FileFolderType.CLASS].includes(s.type));return b.getFilesInfo(...a.map(s=>{const[i]=s.path.split("/").filter(Boolean);return{name:s.name,type:s.type,root:i,path:"."}}))}),JP=Q("files/saveAll",async(e,{getState:n,dispatch:t})=>{const a=Ac(n());for(const s of a)t(Yn({tab:s}))}),zc=Q("files/tryCloseTab",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root,s=a.findIndex(c=>c.path===e);if(s===-1)return!1;const i=a[s];if(i!=null&&i.flags.touched){const{confirmed:c}=await t(ar({title:ws(i),message:"Your unsaved changes will be lost. Proceed anyway?",type:b.ModalType.CONFIRM,color:b.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!c)return!1}return t(Zc(s)),i.path===b.ROLES_TAB_PATH&&i.flags.touched&&(async()=>{const l=await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:b.ROLES_TAB_PATH,content:!0,as:"json"});t(Wc({content:l.content,date:l.date}))})(),!0}),XP=Q("files/tryCloseOtherTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;if(a.some(i=>i.path!==e&&i.flags.touched===!0)){const{confirmed:i}=await t(ar({title:"Closing other tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:b.ModalType.CONFIRM,color:b.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(mv(e))}),ZP=Q("files/tryCloseAllTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;if(a.some(i=>i.flags.touched===!0)){const{confirmed:i}=await t(ar({title:"Closing all tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:b.ModalType.CONFIRM,color:b.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(gv())}),QP=Q("files/tryCloseRightTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;let s=!1;for(let i=a.length-1;i>e;i-=1)if(a[i].flags.touched){s=!0;break}if(s){const{confirmed:i}=await t(ar({title:"Closing right tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:b.ModalType.CONFIRM,color:b.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(vv(e))}),eD=Q("files/tryCloseLeftTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;let s=!1;for(let i=0;i<e;i+=1)if(a[i].flags.touched){s=!0;break}if(s){const{confirmed:i}=await t(ar({title:"Closing left tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:b.ModalType.CONFIRM,color:b.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(yv(e))}),cc=Q("files/reloadTab",async(e,{dispatch:n})=>{if(e.flags.touched){const{confirmed:s}=await n(ar({title:ws(e),message:"Changes made to the file will be lost. Continue?",type:b.ModalType.CONFIRM,color:b.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!s)return}const t=jh(e.path),a=await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:t});if(e.path===b.ROLES_TAB_PATH){const{roles:s,privileges:i}=Ls(a.content);n(Uc({roles:s,privileges:i}))}else if(e.path===b.SETTINGS_TAB_PATH){const{content:s}=a;n(ks({path:"project",value:s}))}else{const{content:s}=a;e.type===b.FileFolderType.WEBFORM?b.webformSubject.next({path:e.path,action:b.WebformActions.RELOAD,payload:s.components}):e.type===b.FileFolderType.MODEL&&Yh.next({action:"reload",payload:s})}return a}),Yn=Q("files/saveTab",async({tab:e},{dispatch:n,getState:t})=>{const{path:a,content:s}=e;if(e.type===b.FileFolderType.DEBUGGER)return{...e,errors:[]};a.split("/").pop();const c=await b.getFilesInfo({path:a});if(c.files[0]){const h=new Date(e.date),y=new Date(c.files[0].date);if(h.getTime()<y.getTime()){const{confirmed:_}=await n(ar({title:ws(e),message:"New content has been found on the server. Are you sure you want to continue?",type:b.ModalType.CONFIRM,icon:"FdSave"})).unwrap();if(!_)return n(hv({path:a,flags:{old:!0}})),null}}const l=await b.saveContent({verb:b.DesignerRequestVerb.SAVE_CONTENT,content:tD(e,t()),path:a});(e.type===b.FileFolderType.CLASS||e.type===b.FileFolderType.MODEL)&&setTimeout(()=>{n(wn())},Ss);const d=(l.modelErrors||[]).map(h=>h.message),p=(l.permissionsErrors||[]).map(h=>h.message);return{...e,content:s,date:l.date,initialContent:s,errors:d.length>0||p.length>0?[{title:"Model errors",messages:d},{title:"Permissions errors",messages:p}]:[]}}),tD=(e,n)=>{switch(!0){case e.path==="settings.json":case e.path===b.SETTINGS_TAB_PATH:return n.settings.project;case e.type===b.FileFolderType.ROLES:return{...e.content,...Ns(n.roles)};case e.type===b.FileFolderType.MODEL:return e.content||{toJSON:!0,dataClasses:[],extraProperties:{}};default:return e.content}},Mp=async e=>{if(e.type===b.FileFolderType.DATA_EXPLORER)return{name:"Data Explorer",path:e.path,flags:{},view:{panel:{isOpen:!1,type:"",current:""}},type:e.type,date:new Date().toISOString()};const n=e.path.split("/").filter(Boolean)[0],t=await b.getFile({root:n,type:e.type,verb:b.DesignerRequestVerb.GET,name:e.name}),a={};t.type===b.FileFolderType.METHOD&&(a.attributes=b.parseAttributes(t.content));const{date:s,name:i,type:c,content:l}=t;return{date:s,flags:{enabled:e.type===b.FileFolderType.WEBFORM},extra:a,view:{panel:{isOpen:!1,type:"",current:""}},name:i,path:e.path,type:c,initialContent:l,content:c===b.FileFolderType.MODEL?gh(l):l}},Kg=Q("files/tryInjectMethod",async({type:e,dataclass:n},{getState:t,dispatch:a})=>{const{root:{tabs:s},settings:{server:{qodly:i}}}=t(),c=b.getFileExtentionFromType("class",i);let l="",d="",p=null;if(!n)l="DataStore",d=`Classes/DataStore.${c}`;else switch(e){case"dataclass":l=n,d=`Classes/${n}.${c}`;break;case"collection":l=`${n}Selection`,d=`Classes/${n}Selection.${c}`;break;case"entity":l=`${n}Entity`,d=`Classes/${n}Entity.${c}`;break;default:return p}const h=s.find(b.by("path",d));if(h)return a(Pt(h)),h;try{p=await Mp({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:b.FileFolderType.CLASS})}catch{n?await a(ic({type:"dataclass",className:n,collectionName:`${n}Selection`,toCreate:e})):await a(ic({type:"model"}))}return p=await Mp({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:b.FileFolderType.CLASS}),p.path=d,a(Pt(p)),p}),rD=Q("roles/open",async(e,{dispatch:n,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path===b.ROLES_TAB_PATH);if(s)return n(Pt(s)),s;n(vs())});function Lp(e,n){const{line:t,offset:a,type:s="saved"}=n;e.breakpoints[s].locations.push({line:t}),He.isNumber(a)&&(e.breakpoints[s].offset=a)}function Np(e,n,t,a){e.breakpoints[t].locations=n,He.isNumber(a)&&(e.breakpoints[t].offset=a)}function kp({filePath:e,fileType:n,methodName:t,className:a,ext:s,source:i}){return{filePath:e,fileType:n,methodName:t,className:a,ext:s,source:i,breakpoints:{draft:{locations:[],offset:0},saved:{locations:[],offset:0}}}}function jp(e,n,t){let a=!1;const s=e.map(i=>i[t]!==n[t]?i:(a=!0,{...i,...n}));return a?s:[...s,n]}function Yo(e){return e.map(({label:n})=>({label:n}))}const Jg=nr({name:"debugger",initialState:()=>{var n,t;const{debugger:e={meta:{state:Ir.DETACHED},list:[],sessions:[],expressions:[]}}=Kn();return{meta:{...e.meta,state:((n=e.meta)==null?void 0:n.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,n){const{filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l,breakpoint:d}=n.payload,p=Sn(e.list,t,s,i);if(p)Lp(p,d);else{if(a===b.FileFolderType.CLASS&&d.offset===void 0)throw new Error(`Cannot add a breakpoint on a function without offset. Try editing the ${i} class.`);const h=kp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});Lp(h,d),e.list.push(h)}},removeBreakpointDecoration(e,n){const{filePath:t,methodName:a,line:s,offset:i=0,type:c="saved"}=n.payload;if(t.startsWith("Classes/")){const l=e.list.filter(d=>d.filePath===t);if(l.length>0){const d=s+i;l.forEach(p=>{const h=p.breakpoints[c].offset||0;p.breakpoints[c].locations=p.breakpoints[c].locations.filter(y=>y.line+h!==d),c==="saved"&&(p.breakpoints.draft.locations=p.breakpoints.draft.locations.filter(y=>y.line+h!==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,n){const{filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l,breakpoints:d,offset:p,type:h="saved",clearDraft:y}=n.payload,_=Sn(e.list,t,s);if(_)Np(_,d,h,p),y&&h!=="draft"&&(_.breakpoints.draft.locations=[]);else{const E=kp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});Np(E,d,h,p),e.list.push(E)}},clearBreakpoints(e,n){const{filePath:t,type:a="saved"}=n.payload;e.list=e.list.map(s=>({...s,breakpoints:s.filePath===t?{draft:!a||a==="draft"||a==="any"?{locations:[],offset:0}:s.breakpoints.draft,saved:!a||a==="saved"||a==="any"?{locations:[],offset:0}:s.breakpoints.saved}:s.breakpoints}))},clearBreakpointsExcept(e,n){const{exceptedFilePath:t,type:a="saved"}=n.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(n=>({...n,breakpoints:{draft:{locations:[],offset:0},saved:{locations:[],offset:0}}}))},setActiveLine(e,n){const{threadId:t,line:a,highlight:s}=n.payload,i=ot(e.sessions,t);i&&(i.activeLine=a,s&&(i.highlightedLines={start:a,end:a}))},addExpression(e,n){const{threadId:t,label:a,save:s}=n.payload,i=ot(e.sessions,t);i&&i.stopped&&(i.expressions=[...i.expressions||[],{label:a}],s&&(e.expressions=Yo(i.expressions)))},removeExpression(e,n){const{threadId:t,index:a,save:s}=n.payload,i=ot(e.sessions,t);i&&(i.expressions=i.expressions.filter((c,l)=>l!==a),s&&(e.expressions=Yo(i.expressions)))},removeAllExpressions(e,n){const{threadId:t,save:a}=n.payload,s=ot(e.sessions,t);s&&(s.expressions=[],a&&(e.expressions=[]))},renameExpression(e,n){const{threadId:t,index:a,replacement:s,save:i}=n.payload,c=ot(e.sessions,t);c&&c.expressions[a]&&(c.expressions[a].label=s,i&&(e.expressions=Yo(c.expressions)))},setExpression(e,n){const{threadId:t,expression:a}=n.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,n){const{threadId:t,index:a,value:s}=n.payload,i=ot(e.sessions,t);if(i){const c=i.expressions[a];c&&(c.result=`"${s}"`,c.nakedResult=s)}},saveExpressions(e,n){const{expressions:t}=n.payload;e.expressions=Yo(t)},addSession(e,n){const{threadId:t,channelId:a,stackFrames:s,exceptions:i=[]}=n.payload,c=ot(e.sessions,t),l=s[0],{expressions:d=[]}=e;if(c)c.expressions=d;else{const p=Tc(t);e.sessions.push({tabPath:p,threadId:t,channelId:a,stackFrames:s,currentStackFrame:l,exceptions:i,expressions:d,variables:{callchain:[],expressions:[]},highlightedLines:null,activeLine:null,stopped:!0})}},updateSession(e,n){const{threadId:t,changes:a}=n.payload;e.sessions=e.sessions.map(s=>s.threadId===t?{...s,...a}:s)},removeSession(e,n){const{threadId:t}=n.payload;e.sessions=e.sessions.filter(a=>a.threadId!==t)},removeSessionByIndex(e,n){const t=n.payload;e.sessions.splice(t,1)},setSessions(e,n){const t=n.payload;e.sessions=t},setCallChainVariables(e,n){const{threadId:t,frameId:a,variables:s}=n.payload;e.sessions=e.sessions.map(i=>{var c;return i.threadId===t?{...i,variables:{...i.variables,callchain:jp((c=i.variables)==null?void 0:c.callchain,{frameId:a,items:s},"frameId")}}:i})},setExpressionVariables(e,n){const{threadId:t,variablesReference:a,variables:s}=n.payload;e.sessions=e.sessions.map(i=>{var c;return i.threadId===t?{...i,variables:{...i.variables,expressions:jp((c=i.variables)==null?void 0:c.expressions,{variablesReference:a,items:s},"variablesReference")}}:i})},setSourceContent(e,n){const{threadId:t,content:a}=n.payload,s=ot(e.sessions,t);s&&(s.currentStackFrame.source={...s.currentStackFrame.source,content:a})},setDebuggerMeta(e,n){if(n.payload.state===Ir.ERROR){e.meta.error={...e.meta.error,time:Date.now()};const{override:t,error:a={code:null,reason:"",type:ss.SOCKET_ERROR}}=n.payload;if((t||e.meta.state!==Ir.ERROR)&&(e.meta.error={...e.meta.error,...a}),(a==null?void 0:a.type)===ss.SOCKET_CLOSURE&&!(a!=null&&a.reason)&&e.meta.state===Ir.DETACHED)return}e.meta.state=n.payload.state}},extraReducers:e=>{e.addCase(Zg.fulfilled,n=>{n.sessions=[]})}}),{addBreakpointDecoration:nD,removeBreakpointDecoration:aD,setBreakpointsDecoration:oD,clearBreakpoints:sD,clearBreakpointsExcept:iD,clearAllBreakpoints:uD,setActiveLine:cD,addExpression:lD,renameExpression:fD,removeExpression:dD,removeAllExpressions:pD,setExpression:hD,updateExpressionAt:gD,saveExpressions:vD,addSession:mD,updateSession:yD,removeSession:bD,removeSessionByIndex:_D,setSessions:Xg,setCallChainVariables:ED,setExpressionVariables:SD,setSourceContent:wD,setDebuggerMeta:TD}=Jg.actions,Zg=Q("files/wipeDebuggerSessions",async(e,{getState:n,dispatch:t})=>{const{sessions:a}=n().debugger;for(const{threadId:s}of a){const i=Tc(s);t(zc(i))}}),Qg=Q("files/removeDebuggerSessionsNotIn",async(e,{getState:n,dispatch:t})=>{const{threadIds:a}=e,{sessions:s}=n().debugger,i=[],c=s.filter(l=>{const d=a.includes(l.threadId);return d||i.push(l.threadId),d});return t(Xg(c)),{staleThreadIds:i}}),Vc=Q("models/fetch",async()=>{try{return(await b.http(b.API_PREFIX,{method:"POST",body:JSON.stringify({verb:b.DesignerRequestVerb.GET_INFO,path:b.MODEL_TAB_PATH,as:"json",content:!0}),headers:new Headers({"Content-Type":"application/json"})})).content}catch(e){return e.message}}),ms=Q("models/save",async(e,{getState:n,dispatch:t,rejectWithValue:a})=>{const{tabs:s}=n().root,i=s.find(c=>c.path===b.MODEL_TAB_PATH);if(!i)return a("Error while saving the model");try{const c=await b.http(b.API_PREFIX,{method:"POST",body:JSON.stringify({verb:"save",path:i.path,content:i.content}),headers:new Headers({"Content-Type":"application/json"})});return setTimeout(()=>{t(wn())},Ss),{...c,path:i.path,content:e.content||{toJSON:!0,dataClasses:[],extraProperties:{}}}}catch{return a("Error while saving the model")}}),CD=Q("models/open",async(e,{dispatch:n,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path==="models/main");if(s)return n(Pt(s)),s;n(Vc())}),xD=Q("model/rename-dataclass",async(e,{getState:n,dispatch:t})=>{var y,_;const{dataclassId:a,selectionId:s,name:i}=e;let c=n();const l=c.explorer.find(E=>E.path===b.FolderRootPath.CLASSES);if(!l)throw new Error("Classes folder was not found!");await t(_r(l.path)),c=n();const d={class:{found:!1,newNameTaken:!1,file:null,filename_update:i},entity:{found:!1,newNameTaken:!1,file:null,filename_update:`${i}Entity`},selection:{found:!1,newNameTaken:!1,file:null,filename_update:`${i}Selection`}};(_=(y=c.explorer.find(E=>E.path===b.FolderRootPath.CLASSES))==null?void 0:y.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 h=Object.values(d).filter(E=>E.found&&E.file&&!E.newNameTaken);await Promise.all(h.map(async E=>await t(qn({file:E.file,newname:E.filename_update})))),h.length>0&&t(_r("Classes"))}),Na={DATACLASS_DELETE:"dataclass.delete",DATACLASS_DRAGGABLE:"dataclass.draggable"},RD={model:{dataClasses:{},collections:{},extraProperties:{}},draft:{dataClasses:{},collections:{},extraProperties:{}},flags:{[Na.DATACLASS_DELETE]:!0,[Na.DATACLASS_DRAGGABLE]:!0}},ev=nr({name:"Models",initialState:RD,reducers:{setModelFlag(e,n){e.flags={...e.flags,...n.payload}}},extraReducers(e){e.addCase(Vc.fulfilled,(n,t)=>{var c;const a={},s={},i=t.payload.extraProperties||{};(c=t.payload.dataClasses)==null||c.forEach(l=>{a[l.name]=l,s[l.collectionName]=l}),n.draft.dataClasses=a,n.draft.collections=s,n.draft.extraProperties=i,n.model.dataClasses=a,n.model.collections=s,n.model.extraProperties=i}),e.addCase(ms.pending,()=>{}).addCase(ms.fulfilled,(n,t)=>{const a={},s={},i=t.payload.content.extraProperties||{};t.payload.content.dataClasses.forEach(c=>{a[c.name]=c,s[c.collectionName]=c}),n.draft.dataClasses=a,n.draft.collections=s,n.draft.extraProperties=i,n.model.dataClasses=a,n.model.collections=s,n.model.extraProperties=i})}}),{setModelFlag:OD}=ev.actions;var tv=(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))(tv||{}),Bs=(e=>(e.STORAGE="storage",e.RELATEDENTITY="relatedEntity",e.RELATEDENTITIES="relatedEntities",e.CALCULATED="calculated",e.COMPOSITION="composition",e.ALIAS="alias",e))(Bs||{});const AD=e=>["string","uuid","number","long"].includes(e.type),PD=[{label:"Storage",value:"storage"},{label:"Calculated",value:"calculated"}],DD=[{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"}],ID=[{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"}],FD=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],$D=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],MD=[{label:"None",value:"none"},{label:"B-tree",value:"btree"},{label:"Cluster",value:"cluster"},{label:"Automatic",value:"auto"}],LD=(e,n)=>({toJSON:!0,extraProperties:n,dataClasses:e.map(t=>{var a;return{...t.data,extraProperties:{position:{x:t.position.x,y:t.position.y},panelColor:(a=t.data.extraProperties)==null?void 0:a.panelColor}}})});function ND(e,n,t){const a=e;let s=0;for(;t[`${a}${s||""}`];)s++;return`${a}${s||""}`}const rv=e=>e.kind===Bs.RELATEDENTITY,nv=e=>e.kind===Bs.RELATEDENTITIES,kD=e=>nv(e)||rv(e),jD=()=>kr(e=>e.model.draft.dataClasses),BD=()=>kr(e=>e.model.draft.collections),WD=e=>kr(n=>n.model.draft.dataClasses[e]),UD=(e,n)=>kr(t=>t.model.draft.dataClasses[e].attributes.find(b.by("name",n))),HD=()=>kr(e=>e.model.draft.extraProperties),GD=()=>{const e=kr(s=>s.model.flags),n=s=>s in e?e[s]:void 0,t=n(Na.DATACLASS_DELETE),a=n(Na.DATACLASS_DRAGGABLE);return{deleteDataclass:t,draggableDataclass:a,flags:e}},qD=ev.reducer;function Mu(e,n){const t=e.tabs.find(({path:a})=>a===b.SETTINGS_TAB_PATH);t&&(t.flags.touched=n)}const av={SIDEBAR_SECTION_RESIZABLE:"sidebar.section.resizable"},ov={[av.SIDEBAR_SECTION_RESIZABLE]:!0},sv=nr({name:"webforms",initialState:()=>{const{webforms:e}=Kn();return{...e,templates:{data:[],selectedGroup:""},datasources:{...Sc.webforms.datasources,...e==null?void 0:e.datasources},flags:ov}},reducers:{toggleInspector:(e,n)=>{const{type:t}=n.payload;e.inspector[t].active=!e.inspector[t].active,e.inspector[t].active||(e.inspector[t].data=void 0)},inspect:(e,n)=>{const{type:t,data:a}=n.payload;e.inspector[t].active&&(e.inspector[t].data=a)},addComponent:(e,n)=>{e.components.push(n.payload)},editComponent:(e,n)=>{const{id:t,changes:a}=n.payload;e.components=e.components.map(s=>s.id===t?{...s,...a}:s)},removeComponent:(e,n)=>{const{payload:t}=n,a=e.components.findIndex(s=>s.id===t);a!==-1&&e.components.splice(a,1)},setSelectedGroup:(e,n)=>{e.templates.selectedGroup=n.payload.selectedGroup},setTemplatesData:(e,n)=>{e.templates.data=n.payload},setTemplateData:(e,n)=>{const{group:t,components:a}=n.payload,s=e.templates.data.find(i=>i.group===t);s&&(s.components=a)},setDatasourcesTheme:(e,n)=>{e.datasources.theme=n.payload},setWebformsFlag(e,n){e.flags={...e.flags,...n.payload}}},extraReducers(e){e.addCase(dv.fulfilled,(n,t)=>{n.components=t.payload})}}),{toggleInspector:YD,inspect:zD,addComponent:iv,editComponent:uv,removeComponent:cv,setSelectedGroup:VD,setTemplatesData:lv,setTemplateData:fv,setDatasourcesTheme:KD,setWebformsFlag:JD}=sv.actions,XD=sv.reducer,Kc=He.curry((e,n)=>{var s,i;const t={...n.sharedDatasources.sources},a=(i=((s=n.root.tabs.find(b.by("path",e)))==null?void 0:s.content).metadata)==null?void 0:i.datasources;return a&&(t[e]=a),He.cloneDeep(t)}),ZD=Q("webforms/fetchTemplates",async(e,{dispatch:n,getState:t})=>{const{data:a}=t().webforms.templates,s=t().settings.session["studio.tipsBaseUrl"]||"";if(!He.isEmpty(a))return a;try{const c=await(await fetch(`${s}/build/index.json?t=${Date.now()}`)).json();return n(lv(c)),c}catch{return[]}}),QD=Q("webforms/fetchTemplate",async({name:e},{dispatch:n,getState:t})=>{const{data:a}=t().webforms.templates,s=a.find(i=>i.group===e);if(s&&!He.isEmpty(s.components))return s.components;try{const c=await(await fetch(`${s==null?void 0:s.link}?t=${Date.now()}`)).json();return n(fv({group:e,components:c})),c}catch{return[]}}),dv=Q("webforms/fetchCraftedComponents",async(e,{rejectWithValue:n})=>{try{return(await b.getNodeInfo({path:"WebForms/crafted_components.json",verb:b.DesignerRequestVerb.GET_INFO,content:!0,as:"json"})).content}catch{return n("Error while loading the crafted components")}}),eI=Q("webforms/addCraftedComponent",async(e,{dispatch:n,rejectWithValue:t,getState:a})=>{try{n(iv(e));const{webforms:{components:s}}=a();b.setCraftedComponents(s)}catch{return t("Error while adding the crafted component")}}),tI=Q("webforms/editCraftedComponent",async(e,{dispatch:n,rejectWithValue:t,getState:a})=>{try{n(uv(e));const{webforms:{components:s}}=a();b.setCraftedComponents(s)}catch{return t("Error while editing the crafted component")}}),rI=Q("webforms/removeCraftedComponent",async(e,{dispatch:n,rejectWithValue:t,getState:a})=>{try{n(cv(e));const{webforms:{components:s}}=a();b.setCraftedComponents(s)}catch{return t("Error while removing the crafted component")}}),Jc=Q("datasources/add-datasource",async(e,{getState:n,rejectWithValue:t})=>{var a,s;try{const i=n(),c=e.datasource,l=!!c.namespace,d=[];if(l){const p={...i.sharedDatasources.sources,[c.namespace]:[...i.sharedDatasources.sources[c.namespace],c]};d.push(...p[c.namespace]),await b.setSharedSources(p)}else(((s=(a=i.root.tabs.find(b.by("path",e.path)).content)==null?void 0:a.metadata)==null?void 0:s.datasources)||[]).push(c);return{list:d,path:e.path,namespace:e.datasource.namespace}}catch{console.error("Error while adding the datasource",e.datasource.id),t("Error while adding the datasource")}}),Xc=Q("datasources/edit-datasource",async(e,{getState:n,rejectWithValue:t})=>{try{const{namespace:a,path:s}=e,i=n(),c=!!e.namespace,l=Kc(s,i);let d=He.defaultTo(l[a||s],[]);return d=d.map(p=>p.id===e.id?{...p,[e.property]:e.value}:p),c&&await b.setSharedSources({...i.sharedDatasources.sources,[e.namespace]:d}),{list:d,path:e.path,namespace:e.namespace}}catch{t(`Error while editing datasource ${e.id}`)}}),nI=e=>e.type===zn.fulfilled.type,zn=Q("datasources/rename-datasource",async(e,{getState:n,rejectWithValue:t})=>{try{const a=n(),s=!!e.namespace,i=e.namespace||e.path,c=Kc(e.path,a),l=He.defaultTo(c[i],[]),d=new RegExp(`^${e.id}\\b`,"");if(l.forEach(p=>{var y;const h=(b.isObjectDatasource(p)||!b.isSimpleDatasource(p))&&p.from&&d.test(p.from);e.updateRefs&&((y=p.events)==null||y.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:h&&p.from&&(p.from=p.from.replace(new RegExp(`^${e.id}`,""),e.new_name))}),e.updateRefs){const p=b.getDatasourceId({id:e.id,namespace:e.namespace}),h=b.getDatasourceId({id:e.new_name,namespace:e.namespace});b.datasourcesSubject.next({path:e.path??"",action:b.DatasourcesActions.RENAME,old_reference:p,new_reference:h,is_shared:s})}return s&&await b.setSharedSources({...a.sharedDatasources.sources,[e.namespace]:l}),{list:l,path:e.path,namespace:e.namespace}}catch{return t(`Error while renaming datasource ${e.namespace}:${e.id}`)}}),Ia=Q("datasources/delete-datasource",async(e,{getState:n,rejectWithValue:t})=>{try{const a=n(),s=!!e.namespace,i=e.namespace||e.path,l=Kc(e.path,a)[i].filter(b.outById(e.id));return s&&await b.setSharedSources({...a.sharedDatasources.sources,[e.namespace]:l}),{list:l,path:e.path,namespace:e.namespace}}catch{return t(`Error while removing datasource ${e.id}`)}}),ka=nr({name:"root",initialState:()=>{const e=Kn();return{filesLoading:!1,tabs:e.tabs||[],activeTab:e.activeTab,recent:e.recent||[]}},reducers:{setPanelState(e,n){const{path:t,...a}=n.payload;e.tabs.forEach(s=>{s.path===t&&(s.view||(s.view={panel:{isOpen:!1,type:"",current:""}}),Object.assign(s.view.panel,a))})},openSettingsTab(e){const n={date:new Date().toISOString(),flags:{confirmed:!0},view:{panel:{isOpen:!1,type:"",current:""}},extra:{editor:{key:"editors:settings"}},name:"Settings",path:b.SETTINGS_TAB_PATH,type:b.FileFolderType.SETTINGS,initialContent:{},content:{}};let t=e.tabs.find(a=>a.path===n.path);if(t||(e.tabs.push(n),t=e.tabs[e.tabs.length-1]),e.activeTab!==n.path){const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);e.activeTab=n.path,t.weight=((a==null?void 0:a.weight)||0)+1}},addDataSource(e,n){var i;const{payload:{path:t,datasourceDef:a}}=n,s=e.tabs.find(c=>c.path===t);s&&(s.content.metadata.datasources=s.content.metadata.datasources||[],(i=s.content.metadata.datasources)!=null&&i.find(l=>l.id===a.id)||(s.content.metadata.datasources=[...s.content.metadata.datasources,{...a,events:[]}],s.flags={...s.flags,touched:!0,confirmed:!0}))},addWebformState(e,n){var i;const{payload:{path:t,stateDef:a}}=n,s=e.tabs.find(c=>c.path===t);s&&(s.content.metadata.states=s.content.metadata.states||[Fc],(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,n){const{path:t,id:a}=n.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:mh(s.content,a)}:s)},editWebformState(e,n){const{path:t,state:a}=n.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:{...s.content,metadata:{...s.content.metadata,states:s.content.metadata.states.map(i=>i.id===a.id?a:i)}}}:s)},removeDataSource(e,n){const{path:t,datasourceID:a}=n.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:{...s.content,metadata:{...s.content.metadata,datasources:s.content.metadata.datasources.filter(i=>i.id!==a)}}}:s)},setDataSources(e,n){const{payload:{path:t,datasourceArr:a}}=n;e.tabs=e.tabs.map(s=>{var i;return s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:{...s.content,metadata:{...(i=s.content)==null?void 0:i.metadata,datasources:a}}}:s})},setTabs(e,n){e.tabs=n.payload},closeTab(e,n){const t=n.payload;e.tabs.splice(t,1);const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);e.activeTab=(a==null?void 0:a.path)||""},closeOthers(e,n){e.tabs=e.tabs.filter(t=>t.path===n.payload),e.activeTab=n.payload},closeAllTabs(e){e.tabs=[],e.activeTab=""},closeRightTabs(e,n){e.tabs.splice(n.payload+1),e.activeTab=e.tabs[n.payload].path},closeLeftTabs(e,n){e.tabs.splice(0,n.payload)},closeSavedTabs(e){e.tabs=e.tabs.filter(({flags:{touched:t}})=>t);const n=e.tabs.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null);e.activeTab=(n==null?void 0:n.path)||""},confirmTab(e,n){const t=e.tabs.find(({path:a})=>a===n.payload);t&&(t.flags.confirmed||ka.caseReducers.setTabFlags(e,{type:n.type,payload:{path:n.payload,flags:{confirmed:!0}}}))},selectTab(e,n){const t=e.tabs.find(({path:s})=>s===n.payload);if(!t||e.activeTab===n.payload)return;const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);t.weight=a?(a.weight||0)+1:1,e.activeTab=n.payload},openTabUnselected(e,n){const t=n.payload;let a=e.tabs.find(({path:i})=>t.path===i);a||(e.tabs.push(t),a=e.tabs[e.tabs.length-1]);const s=e.tabs.reduce((i,c)=>(c==null?void 0:c.weight)>((i==null?void 0:i.weight)||0)?c:i,null);a.weight=s?(s.weight||0)+1:1,a.extra={...a.extra,...t.extra}},selectTabByReference(e,n){const t=[b.FileFolderType.DEBUGGER],{isNew:a,...s}=n.payload;let i=s,c=e.tabs.find(({path:l})=>i.path===l);if((t.includes(i.type)||c!=null&&c.flags.confirmed)&&(i={...i,flags:{...i.flags,confirmed:!0}}),!c){const l=e.tabs.findIndex(({flags:{confirmed:d}})=>d===!1);l!==-1&&!t.includes(i.type)&&!a?e.activeTab===e.tabs[l].path?(e.tabs[l]=i,c=e.tabs[l]):(e.tabs.push(i),c=e.tabs[e.tabs.length-1],e.tabs.splice(l,1)):(e.tabs.push(i),c=e.tabs[e.tabs.length-1])}if(e.activeTab!==i.path){const l=e.tabs.reduce((d,p)=>(p==null?void 0:p.weight)>((d==null?void 0:d.weight)||0)?p:d,null);e.activeTab=i.path,c.weight=((l==null?void 0:l.weight)||0)+1}c.extra={...c.extra,...i.extra},c.flags={...c.flags||{},...i.flags||{}}},setContent(e,n){const{path:t,content:a,contentPath:s}=n.payload;e.tabs=e.tabs.map(i=>{if(i.path!==t)return i;let c=!1,l=i.flags.confirmed;if(typeof a=="string")c=i.initialContent!==a,l=!l&&c?!0:l;else{const d=JSON.stringify(He.get(i.initialContent,s||"",i.initialContent)),p=JSON.stringify(He.get(a,s||"",a));c=d!==p,l=!l&&c?!0:l}return a&&typeof a=="object"&&(s?He.set(i.content,s,a):i.content=a),typeof a=="string"&&(i.content=a),{...i,flags:{...i.flags,touched:c,confirmed:l}}})},setTabFlags(e,n){const{path:t,flags:a}=n.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,...a}}:s)},setTabsFlags(e,n){const{tabs:t,flags:a}=n.payload;e.tabs=e.tabs.map(s=>t.includes(s.path)?{...s,flags:{...s.flags,...a}}:s)},setTabExtra(e,n){const{path:t,extra:a,flags:s}=n.payload;e.tabs=e.tabs.map(i=>i.path===t?{...i,extra:{...i.extra,...a},flags:s?{...i.flags,...s}:i.flags}:i)},addWebFormStyles(e,n){const{path:t,styles:a=[]}=n.payload,s=e.tabs.find(i=>i.path===t);if(s){const i=s.content.metadata.styles.map(({name:l})=>l),c=a.filter(({name:l})=>!i.includes(l));s.content.metadata.styles=[...s.content.metadata.styles,...c].map(({scope:l,...d})=>({...d}))}},changeTabEditor(e,n){return e.tabs=e.tabs.map(t=>t.path===n.payload.path?n.payload:t),e}},extraReducers:e=>{e.addCase(ac,(n,t)=>{if(t.payload.settingsKey==="studio.enablePreview"&&t.payload.value===!1){const a=n.tabs.find(({flags:{confirmed:s}})=>s===!1);a&&ka.caseReducers.setTabFlags(n,{type:"",payload:{path:a.path,flags:{confirmed:!0}}})}}),e.addCase(Yg.fulfilled,(n,t)=>{if(!t.payload)return;const{content:a,line:s,path:i}=t.payload,c=n.tabs.find(l=>l.path===i);if(c&&typeof c.content=="string"){const l=c.content.trim().split(`
|
|
99
|
+
`}}};e.type==="dataclass"&&!e.toCreate?p=[{...h("dataclass")},{...h("collection")},{...h("entity")}]:e.type==="dataclass"&&e.toCreate?p=[{...h(e.toCreate)}]:p=[{...h("model")}],p=p.filter(_=>!d.find(({name:E,ext:T})=>E===_.name&&T===(i?"4qs":"4dm"))),await Promise.all(p.map(async({name:_,content:E})=>{await n(Gn({type:b.FileFolderType.CLASS,path:s,fileName:_,parentNode:c,content:E,qodly:a.settings.server.qodly}))})),await n(_r(s))}),_r=Q("explorer/fetchFolderContent",async(e,{rejectWithValue:n})=>{try{return(await b.getNodeInfo({verb:b.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 n("Failed loading file content please Reload")}},{getPendingMeta:()=>{}}),Aa=Q("explorer/fetchFolderContentWithoutExpanding",async(e,{rejectWithValue:n})=>{try{return(await b.getNodeInfo({verb:b.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 n("Failed loading file content please Reload")}},{getPendingMeta:()=>{}});function HP(e){const n=e.split(".");return n.pop(),{name:n.join("."),ext:e.split(".")[e.split(".").length-1]}}const GP=Q("explorer/uploadFile",async e=>{const n=e.type.includes("image/")?"$rawPict=true":"$binary=true";try{const t=await fetch(`/rest/$upload?${n}`,{method:"POST",headers:{"Content-Type":e.type},body:e});return{status:t.status,data:await t.json()}}catch{return{status:500,data:null}}}),qP=Q("explorer/uploadFile",async({file:e,path:n,parentNode:t},{dispatch:a})=>{const{editor:s,supportedEditors:i}=pr(n),{name:c,ext:l}=HP(e.name);a(Ug({parent:t,child:{name:c,path:`${n}/${e.name}?t=${Date.now()}`,type:e.type,error:null,flags:{loading:!0},config:{editor:s,supportedEditors:i},ext:l}}));try{const d=await fetch(`/rest/$upload?$sharedFolder=true&$filename=${e.name}&$path=${n}`,{method:"POST",headers:{"Content-Type":e.type},body:e});return d.status>=300?(a(sc({parent:t,child:{name:c,path:`${n}/${e.name}`,type:e.type,error:{message:"error uploading file"},flags:{},config:{editor:s,supportedEditors:i},ext:l}})),d.status!==413&&b.toastSubject.next({message:"error uploading file",kind:"danger"})):await a(_r(t.path)),{status:d.status,fileName:e.name}}catch{return a(sc({parent:t,child:{name:c,path:`${n}/${e.name}`,type:e.type,error:{message:"error uploading file"},flags:{},config:{editor:s,supportedEditors:i},ext:l}})),b.toastSubject.next({message:"error uploading file",kind:"danger"}),{status:500,fileName:e.name}}}),Gn=Q("explorer/createNewFile",async({fileName:e,type:n,path:t,parentNode:a,content:s},{dispatch:i,rejectWithValue:c,getState:l})=>{const{server:{qodly:d},project:p}=l().settings;try{const h=await b.setFileContent({name:Gg(e,n,d),content:s||Hg(n,p),path:t,asText:[b.FileFolderType.CLASS,b.FileFolderType.METHOD].includes(n)});return a.error&&(a.flags.expanded?await i(_r(a.path)):await i(Aa(a.path))),{qodly:d,file:h,parentNode:a}}catch{return c("failed to create folder")}});function Yg(e,n){const{qodly:t=!0,withExtension:a=!0}=n||{},s=b.getFileExtentionFromType(e.type,t);let i="";switch(e.type){case b.FileFolderType.WEBFORM:i=`${b.FolderRootPath.WEBFORMS}/${e.name}`;break;case b.FileFolderType.METHOD:i=`${b.FolderRootPath.METHODS}/${e.name}`;break;case b.FileFolderType.CLASS:i=`${b.FolderRootPath.CLASSES}/${e.name}`;break;default:return""}return`${i}${a?`.${s}`:""}`}const YP=Q("explorer/createNewFileAndOpen",async(e,{dispatch:n,getState:t})=>{const a=await n(Gn(e)).unwrap(),{qodly:s}=t().settings.server;if(a){const{file:i}=a,c=Yg(i,{withExtension:!1,qodly:s}),{editor:l}=pr(c);await n(Pa({file:{name:e.fileName,type:i.type,path:c,editor:l,date:new Date().toISOString()}}))}}),Jo=Q("explorer/createNewNode",async({fileName:e,path:n,parentNode:t},{rejectWithValue:a})=>{try{return{file:await b.createFolder({verb:b.DesignerRequestVerb.CREATE_FOLDER,path:`${n}/${e}`,recursive:!0}),parentNode:t}}catch{return b.toastSubject.next({message:"failed to create folder",kind:"danger"}),a("failed to create folder")}}),js=async(e,n={})=>{try{const t=e.path.split(".").at(-1),a=await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:mh(t)?"json":"text"}),s={editor:e.editor},i=b.getTypeFromExtension(e.path);i===b.FileFolderType.METHOD&&(s.attributes=b.parseAttributes(a.content),a.content=b.addAttributesToContent(a.content,{}));const{content:c,date:l,ext:d}=a;return n.confirmed===void 0&&(n.confirmed=!0),{date:l,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(d),confirmed:n.confirmed},extra:s,name:e.name,path:e.path,type:i,initialContent:c,content:c}}catch(t){const{data:a}=t;if(a.__ERROR.find(s=>s.errCode===b.ERROR_CODES.FILE_NOT_FOUND))switch(e.path){case b.ROLES_TAB_PATH:{const s={permissions:{allowed:[]},privileges:[],roles:[]};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:roles"}},name:"Roles & Privileges",path:e.path,type:b.FileFolderType.ROLES,initialContent:s,content:s}}case b.SETTINGS_TAB_PATH:{const s={};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:settings"}},name:"Settings",path:e.path,type:b.FileFolderType.SETTINGS,initialContent:s,content:s}}}throw t}},Pa=Q("explorer/openFile",async({file:e,inactive:n,isNew:t,flags:a={}},{getState:s,dispatch:i})=>{const{root:{tabs:c},roles:l,debugger:{sessions:d}}=s(),p=c.find(({path:_})=>e.path===_);if(p){const _={...p,extra:{...p==null?void 0:p.extra,editor:e.editor},flags:{...p==null?void 0:p.flags,...a}};return i(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:b.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 h=null;try{h=await js(e,a)}catch(_){const{data:E}=_;if(E.__ERROR.find(T=>[b.ERROR_CODES.JSON_MALFORMED,b.ERROR_CODES.JSON_MALFORMED_AT_LINE].includes(T.errCode))){const{confirmed:T}=await i(ar({title:"Corrupt file",type:b.ModalType.CONFIRM,color:b.ModalColor.WARNING,message:"Open in code editor ?"})).unwrap();if(T){const x=await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:"text"}),{content:D,date:P,ext:j}=x;h={date:P,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(j),confirmed:!0},extra:{editor:b.EDITOR.Code},name:e.name,path:e.path,type:b.getTypeFromExtension(e.path),initialContent:D,content:D}}}}return h&&(e.path===b.ROLES_TAB_PATH&&!l.flags.touched?i(Uc({content:h.content,date:h.date})):e.path===b.SETTINGS_TAB_PATH&&i(ks({path:"project",value:h.content})),i((n?Ev:Pt)({...h,isNew:t})),h)}),qc=Q("explorer/openFileAtLine",async({file:e},{getState:n,dispatch:t})=>{const{tabs:a}=n().root,s=a.find(({path:c})=>e.path===c);if(s){const c={...s,extra:{...s==null?void 0:s.extra,editor:e.editor}};return t(Pt(c)),c}const i=await js(e);return t(Pt(i)),i}),zg=Q("explorer/injectContentAtLine",async(e,{getState:n,dispatch:t,rejectWithValue:a})=>{const s=n();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 js({name:c.name,date:c.date||new Date().toISOString(),path:`${c.path}.${c.ext}`,type:b.FileFolderType.CLASS,editor:c.config.editor});return await t(Pt(l)),{...e,path:`${c.path}.${c.ext}`}}),Vg=Q("explorer/openFileAtSelection",async({file:e},{getState:n,dispatch:t})=>{const{tabs:a}=n().root,s=a.find(({path:c})=>e.path===c);if(s){const c={...s,extra:{...s==null?void 0:s.extra,editor:e.editor}};return t(Pt(c)),c}const i=await js(e);return t(Pt(i)),i}),uc=Q("explorer/deleteFile",async e=>{const{name:n,type:t,path:a,flags:s}=e;if(s.error)return{deleted:!0,node:e};const i=a.split("/");return i.pop(),{deleted:await b.dropFile({root:b.FolderRootType.ROOT,type:qg(t),verb:b.DesignerRequestVerb.DROP,name:n,path:i.join("/")}),node:e}}),zP=Q("explorer/deleteFolder",async e=>{const{path:n,flags:t}=e;if(t.error)return{deleted:!0,node:e};const{deleted:a}=await b.removeItem({force:!0,path:n,verb:b.DesignerRequestVerb.REMOVE_ITEM}).catch(console.error)||{deleted:!1};return{deleted:a,node:e}}),cc=Q("explorer/removeFileNode",async(e,{getState:n,dispatch:t})=>{const a=`${e.path}.${e.ext}`;if(await b.removeItem({verb:b.DesignerRequestVerb.REMOVE_ITEM,path:a,force:!0}).catch(console.error),e.path==="Classes/DataStore"&&setTimeout(()=>{t(wn())},Ss),e.ext){const{tabs:s}=n().root,i=s.findIndex(c=>c.path===a);i>=0&&t(Qc(i))}return{deleted:!0,node:e}}),qn=Q("explorer/renameFile",async({file:e,newname:n})=>{if(e.type!=="folder"){const a=e.path.split("/");a.pop();const s=`${a.join("/")}/${e.name}.${e.ext}`,i=`${a.join("/")}/${n}.${e.ext}`;return await b.moveItem({verb:b.DesignerRequestVerb.MOVE_ITEM,path:s,newpath:i}),{old:{...e,path:s},new:{...e,name:n,path:i}}}const t=e.path.split("/");return t.pop(),await b.moveItem({verb:b.DesignerRequestVerb.MOVE_ITEM,path:`${t.join("/")}/${e.name}`,newpath:`${t.join("/")}/${n}`}),{old:e,new:{...e,name:n,path:`${t.join("/")}/${n}`}}}),Da=Q("explorer/relocateNode",async({draggedNode:e,newLocation:n},{rejectWithValue:t})=>{try{await b.moveItem({verb:b.DesignerRequestVerb.MOVE_ITEM,path:`${e.path}.${e.ext}`,newpath:`${n.path}/${e.name}.${e.ext}`})}catch{return t("can't move item")}}),Xo=Q("explorer/duplicateNode",async({node:e,duplicateName:n},{rejectWithValue:t,fulfillWithValue:a,getState:s})=>{const i=e.path.split("/");i.pop();try{const{tabs:c}=s().root,l=c.find(({path:y})=>y===`${e.path}${e.ext?`.${e.ext}`:""}`),d=["4dm","4qm","4qs"].includes(e.ext),{content:p}=l||await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:`${e.path}.${e.ext}`,content:!0,as:d?"text":"json"}),h=await b.setFileContent({name:`${n}.${e.ext}`,content:p,path:i.join("/"),asText:d});return a({node:{...h,path:i.join("/")}})}catch{return t("failed to duplicate file")}}),VP=Q("explorer/executeMethod",async({methodName:e,params:n=[],resultingDataSource:t={},namespace:a=""},{rejectWithValue:s})=>{var i,c;try{const d=await window.Method4D.buildMethod({methodName:e,parameters:n,resultingDataSource:t},{namespace:a},null).callServerSide({id:"",serverSideRef:""},"onclick",{});return d!=null&&d.__NOTIFICATION?b.toastSubject.next({message:`${((i=d.__NOTIFICATION)==null?void 0:i.message)||""}`,kind:`${((c=d.__NOTIFICATION)==null?void 0:c.type)||"info"}`}):b.toastSubject.next({message:"Method executed Successfully",kind:"message"}),d}catch(l){return b.toastSubject.next({message:l.message||`Error executing the method "**${e}**"`,kind:"danger",markdown:!0}),s("can't execute method")}}),KP=Q("files/fetchFiles",async()=>b.getFolders(b.FolderRootType.WEBFORMS,b.FolderRootType.METHODS,b.FolderRootType.CLASSES)),Yc=Q("tabs/renameDatasource",async(e,{dispatch:n,getState:t})=>{var E,T;const a=!!e.datasourceNamespace,{confirmed:s}=await n(ar({message:"Are you sure you want to rename the datasource?",title:"Rename Datasource",type:b.ModalType.CONFIRM,color:b.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,h=t();let y=[];if(a){const x=h.sharedDatasources.sources[l]||[];y.push(...x)}else if(p){const x=h.root.tabs.find(b.by("path",p));if(y=(T=(E=x==null?void 0:x.content)==null?void 0:E.metadata)==null?void 0:T.datasources,!y)return null}const _=new RegExp(`^${c}\\b`,"");if(y=y.map(x=>{const D=(b.isObjectDatasource(x)||!b.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 H=j;return H.params?{...H,params:H.params.map(Y=>{var te;return{...Y,datasource:(te=Y.datasource)==null?void 0:te.replace(new RegExp(`^${c}`,""),d)}}),returns:(M=H.returns)!=null&&M.datasource?{...H.returns,datasource:(k=H.returns.datasource)==null?void 0:k.replace(new RegExp(`^${c}`,""),d)}:H.returns}:H}case"simple-action":{const H=j;return H.datasource?{...H,datasource:{...H.datasource,name:(O=H.datasource.name)==null?void 0:O.replace(new RegExp(`^${c}`,""),d),from:(z=H.datasource.from)==null?void 0:z.replace(new RegExp(`^${c}`,""),d)}}:H}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}`;b.datasourcesSubject.next({path:p??"",action:b.DatasourcesActions.RENAME,old_reference:x,new_reference:D,is_shared:a})}return{path:p,namespace:l,datasources:y}}),zc=Q("tabs/edit-datasource",(e,{getState:n})=>{var i,c;const t=n();let a=[];if(e.namespace)a=t.sharedDatasources.sources[e.namespace];else{const l=t.root.tabs.find(b.by("path",e.path));l&&(a=((c=(i=l.content)==null?void 0:i.metadata)==null?void 0:c.datasources)||[])}return a.map(l=>l.id===e.datasourceId?Object.assign({},l,{[e.propertyKey]:e.value}):l)}),Kg=Q("tabs/fetchChanges",async(e,{getState:n})=>{const a=ta(n()).filter(s=>[b.FileFolderType.METHOD,b.FileFolderType.CLASS].includes(s.type));return b.getFilesInfo(...a.map(s=>{const[i]=s.path.split("/").filter(Boolean);return{name:s.name,type:s.type,root:i,path:"."}}))}),JP=Q("files/saveAll",async(e,{getState:n,dispatch:t})=>{const a=Pc(n());for(const s of a)t(Yn({tab:s}))}),Vc=Q("files/tryCloseTab",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root,s=a.findIndex(c=>c.path===e);if(s===-1)return!1;const i=a[s];if(i!=null&&i.flags.touched){const{confirmed:c}=await t(ar({title:ws(i),message:"Your unsaved changes will be lost. Proceed anyway?",type:b.ModalType.CONFIRM,color:b.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!c)return!1}return t(Qc(s)),i.path===b.ROLES_TAB_PATH&&i.flags.touched&&(async()=>{const l=await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:b.ROLES_TAB_PATH,content:!0,as:"json"});t(Uc({content:l.content,date:l.date}))})(),!0}),XP=Q("files/tryCloseOtherTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;if(a.some(i=>i.path!==e&&i.flags.touched===!0)){const{confirmed:i}=await t(ar({title:"Closing other tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:b.ModalType.CONFIRM,color:b.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(yv(e))}),ZP=Q("files/tryCloseAllTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;if(a.some(i=>i.flags.touched===!0)){const{confirmed:i}=await t(ar({title:"Closing all tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:b.ModalType.CONFIRM,color:b.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(vv())}),QP=Q("files/tryCloseRightTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;let s=!1;for(let i=a.length-1;i>e;i-=1)if(a[i].flags.touched){s=!0;break}if(s){const{confirmed:i}=await t(ar({title:"Closing right tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:b.ModalType.CONFIRM,color:b.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(mv(e))}),eD=Q("files/tryCloseLeftTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;let s=!1;for(let i=0;i<e;i+=1)if(a[i].flags.touched){s=!0;break}if(s){const{confirmed:i}=await t(ar({title:"Closing left tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:b.ModalType.CONFIRM,color:b.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(bv(e))}),lc=Q("files/reloadTab",async(e,{dispatch:n})=>{if(e.flags.touched){const{confirmed:s}=await n(ar({title:ws(e),message:"Changes made to the file will be lost. Continue?",type:b.ModalType.CONFIRM,color:b.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!s)return}const t=Bh(e.path),a=await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:t});if(e.path===b.ROLES_TAB_PATH){const{roles:s,privileges:i}=Ls(a.content);n(Hc({roles:s,privileges:i}))}else if(e.path===b.SETTINGS_TAB_PATH){const{content:s}=a;n(ks({path:"project",value:s}))}else{const{content:s}=a;e.type===b.FileFolderType.WEBFORM?b.webformSubject.next({path:e.path,action:b.WebformActions.RELOAD,payload:s.components}):e.type===b.FileFolderType.MODEL&&zh.next({action:"reload",payload:s})}return a}),Yn=Q("files/saveTab",async({tab:e},{dispatch:n,getState:t})=>{const{path:a,content:s}=e;if(e.type===b.FileFolderType.DEBUGGER)return{...e,errors:[]};a.split("/").pop();const c=await b.getFilesInfo({path:a});if(c.files[0]){const h=new Date(e.date),y=new Date(c.files[0].date);if(h.getTime()<y.getTime()){const{confirmed:_}=await n(ar({title:ws(e),message:"New content has been found on the server. Are you sure you want to continue?",type:b.ModalType.CONFIRM,icon:"FdSave"})).unwrap();if(!_)return n(gv({path:a,flags:{old:!0}})),null}}const l=await b.saveContent({verb:b.DesignerRequestVerb.SAVE_CONTENT,content:tD(e,t()),path:a});(e.type===b.FileFolderType.CLASS||e.type===b.FileFolderType.MODEL)&&setTimeout(()=>{n(wn())},Ss);const d=(l.modelErrors||[]).map(h=>h.message),p=(l.permissionsErrors||[]).map(h=>h.message);return{...e,content:s,date:l.date,initialContent:s,errors:d.length>0||p.length>0?[{title:"Model errors",messages:d},{title:"Permissions errors",messages:p}]:[]}}),tD=(e,n)=>{switch(!0){case e.path==="settings.json":case e.path===b.SETTINGS_TAB_PATH:return n.settings.project;case e.type===b.FileFolderType.ROLES:return{...e.content,...Ns(n.roles)};case e.type===b.FileFolderType.MODEL:return e.content||{toJSON:!0,dataClasses:[],extraProperties:{}};default:return e.content}},Lp=async e=>{if(e.type===b.FileFolderType.DATA_EXPLORER)return{name:"Data Explorer",path:e.path,flags:{},view:{panel:{isOpen:!1,type:"",current:""}},type:e.type,date:new Date().toISOString()};const n=e.path.split("/").filter(Boolean)[0],t=await b.getFile({root:n,type:e.type,verb:b.DesignerRequestVerb.GET,name:e.name}),a={};t.type===b.FileFolderType.METHOD&&(a.attributes=b.parseAttributes(t.content));const{date:s,name:i,type:c,content:l}=t;return{date:s,flags:{enabled:e.type===b.FileFolderType.WEBFORM},extra:a,view:{panel:{isOpen:!1,type:"",current:""}},name:i,path:e.path,type:c,initialContent:l,content:c===b.FileFolderType.MODEL?vh(l):l}},Jg=Q("files/tryInjectMethod",async({type:e,dataclass:n},{getState:t,dispatch:a})=>{const{root:{tabs:s},settings:{server:{qodly:i}}}=t(),c=b.getFileExtentionFromType("class",i);let l="",d="",p=null;if(!n)l="DataStore",d=`Classes/DataStore.${c}`;else switch(e){case"dataclass":l=n,d=`Classes/${n}.${c}`;break;case"collection":l=`${n}Selection`,d=`Classes/${n}Selection.${c}`;break;case"entity":l=`${n}Entity`,d=`Classes/${n}Entity.${c}`;break;default:return p}const h=s.find(b.by("path",d));if(h)return a(Pt(h)),h;try{p=await Lp({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:b.FileFolderType.CLASS})}catch{n?await a(ic({type:"dataclass",className:n,collectionName:`${n}Selection`,toCreate:e})):await a(ic({type:"model"}))}return p=await Lp({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:b.FileFolderType.CLASS}),p.path=d,a(Pt(p)),p}),rD=Q("roles/open",async(e,{dispatch:n,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path===b.ROLES_TAB_PATH);if(s)return n(Pt(s)),s;n(vs())});function Np(e,n){const{line:t,offset:a,type:s="saved"}=n;e.breakpoints[s].locations.push({line:t}),He.isNumber(a)&&(e.breakpoints[s].offset=a)}function kp(e,n,t,a){e.breakpoints[t].locations=n,He.isNumber(a)&&(e.breakpoints[t].offset=a)}function jp({filePath:e,fileType:n,methodName:t,className:a,ext:s,source:i}){return{filePath:e,fileType:n,methodName:t,className:a,ext:s,source:i,breakpoints:{draft:{locations:[],offset:0},saved:{locations:[],offset:0}}}}function Bp(e,n,t){let a=!1;const s=e.map(i=>i[t]!==n[t]?i:(a=!0,{...i,...n}));return a?s:[...s,n]}function Yo(e){return e.map(({label:n})=>({label:n}))}const Xg=nr({name:"debugger",initialState:()=>{var n,t;const{debugger:e={meta:{state:Ir.DETACHED},list:[],sessions:[],expressions:[]}}=Kn();return{meta:{...e.meta,state:((n=e.meta)==null?void 0:n.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,n){const{filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l,breakpoint:d}=n.payload,p=Sn(e.list,t,s,i);if(p)Np(p,d);else{if(a===b.FileFolderType.CLASS&&d.offset===void 0)throw new Error(`Cannot add a breakpoint on a function without offset. Try editing the ${i} class.`);const h=jp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});Np(h,d),e.list.push(h)}},removeBreakpointDecoration(e,n){const{filePath:t,methodName:a,line:s,offset:i=0,type:c="saved"}=n.payload;if(t.startsWith("Classes/")){const l=e.list.filter(d=>d.filePath===t);if(l.length>0){const d=s+i;l.forEach(p=>{const h=p.breakpoints[c].offset||0;p.breakpoints[c].locations=p.breakpoints[c].locations.filter(y=>y.line+h!==d),c==="saved"&&(p.breakpoints.draft.locations=p.breakpoints.draft.locations.filter(y=>y.line+h!==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,n){const{filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l,breakpoints:d,offset:p,type:h="saved",clearDraft:y}=n.payload,_=Sn(e.list,t,s);if(_)kp(_,d,h,p),y&&h!=="draft"&&(_.breakpoints.draft.locations=[]);else{const E=jp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});kp(E,d,h,p),e.list.push(E)}},clearBreakpoints(e,n){const{filePath:t,type:a="saved"}=n.payload;e.list=e.list.map(s=>({...s,breakpoints:s.filePath===t?{draft:!a||a==="draft"||a==="any"?{locations:[],offset:0}:s.breakpoints.draft,saved:!a||a==="saved"||a==="any"?{locations:[],offset:0}:s.breakpoints.saved}:s.breakpoints}))},clearBreakpointsExcept(e,n){const{exceptedFilePath:t,type:a="saved"}=n.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(n=>({...n,breakpoints:{draft:{locations:[],offset:0},saved:{locations:[],offset:0}}}))},setActiveLine(e,n){const{threadId:t,line:a,highlight:s}=n.payload,i=ot(e.sessions,t);i&&(i.activeLine=a,s&&(i.highlightedLines={start:a,end:a}))},addExpression(e,n){const{threadId:t,label:a,save:s}=n.payload,i=ot(e.sessions,t);i&&i.stopped&&(i.expressions=[...i.expressions||[],{label:a}],s&&(e.expressions=Yo(i.expressions)))},removeExpression(e,n){const{threadId:t,index:a,save:s}=n.payload,i=ot(e.sessions,t);i&&(i.expressions=i.expressions.filter((c,l)=>l!==a),s&&(e.expressions=Yo(i.expressions)))},removeAllExpressions(e,n){const{threadId:t,save:a}=n.payload,s=ot(e.sessions,t);s&&(s.expressions=[],a&&(e.expressions=[]))},renameExpression(e,n){const{threadId:t,index:a,replacement:s,save:i}=n.payload,c=ot(e.sessions,t);c&&c.expressions[a]&&(c.expressions[a].label=s,i&&(e.expressions=Yo(c.expressions)))},setExpression(e,n){const{threadId:t,expression:a}=n.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,n){const{threadId:t,index:a,value:s}=n.payload,i=ot(e.sessions,t);if(i){const c=i.expressions[a];c&&(c.result=`"${s}"`,c.nakedResult=s)}},saveExpressions(e,n){const{expressions:t}=n.payload;e.expressions=Yo(t)},addSession(e,n){const{threadId:t,channelId:a,stackFrames:s,exceptions:i=[]}=n.payload,c=ot(e.sessions,t),l=s[0],{expressions:d=[]}=e;if(c)c.expressions=d;else{const p=Cc(t);e.sessions.push({tabPath:p,threadId:t,channelId:a,stackFrames:s,currentStackFrame:l,exceptions:i,expressions:d,variables:{callchain:[],expressions:[]},highlightedLines:null,activeLine:null,stopped:!0})}},updateSession(e,n){const{threadId:t,changes:a}=n.payload;e.sessions=e.sessions.map(s=>s.threadId===t?{...s,...a}:s)},removeSession(e,n){const{threadId:t}=n.payload;e.sessions=e.sessions.filter(a=>a.threadId!==t)},removeSessionByIndex(e,n){const t=n.payload;e.sessions.splice(t,1)},setSessions(e,n){const t=n.payload;e.sessions=t},setCallChainVariables(e,n){const{threadId:t,frameId:a,variables:s}=n.payload;e.sessions=e.sessions.map(i=>{var c;return i.threadId===t?{...i,variables:{...i.variables,callchain:Bp((c=i.variables)==null?void 0:c.callchain,{frameId:a,items:s},"frameId")}}:i})},setExpressionVariables(e,n){const{threadId:t,variablesReference:a,variables:s}=n.payload;e.sessions=e.sessions.map(i=>{var c;return i.threadId===t?{...i,variables:{...i.variables,expressions:Bp((c=i.variables)==null?void 0:c.expressions,{variablesReference:a,items:s},"variablesReference")}}:i})},setSourceContent(e,n){const{threadId:t,content:a}=n.payload,s=ot(e.sessions,t);s&&(s.currentStackFrame.source={...s.currentStackFrame.source,content:a})},setDebuggerMeta(e,n){if(n.payload.state===Ir.ERROR){e.meta.error={...e.meta.error,time:Date.now()};const{override:t,error:a={code:null,reason:"",type:ss.SOCKET_ERROR}}=n.payload;if((t||e.meta.state!==Ir.ERROR)&&(e.meta.error={...e.meta.error,...a}),(a==null?void 0:a.type)===ss.SOCKET_CLOSURE&&!(a!=null&&a.reason)&&e.meta.state===Ir.DETACHED)return}e.meta.state=n.payload.state}},extraReducers:e=>{e.addCase(Qg.fulfilled,n=>{n.sessions=[]})}}),{addBreakpointDecoration:nD,removeBreakpointDecoration:aD,setBreakpointsDecoration:oD,clearBreakpoints:sD,clearBreakpointsExcept:iD,clearAllBreakpoints:uD,setActiveLine:cD,addExpression:lD,renameExpression:fD,removeExpression:dD,removeAllExpressions:pD,setExpression:hD,updateExpressionAt:gD,saveExpressions:vD,addSession:mD,updateSession:yD,removeSession:bD,removeSessionByIndex:_D,setSessions:Zg,setCallChainVariables:ED,setExpressionVariables:SD,setSourceContent:wD,setDebuggerMeta:TD}=Xg.actions,Qg=Q("files/wipeDebuggerSessions",async(e,{getState:n,dispatch:t})=>{const{sessions:a}=n().debugger;for(const{threadId:s}of a){const i=Cc(s);t(Vc(i))}}),ev=Q("files/removeDebuggerSessionsNotIn",async(e,{getState:n,dispatch:t})=>{const{threadIds:a}=e,{sessions:s}=n().debugger,i=[],c=s.filter(l=>{const d=a.includes(l.threadId);return d||i.push(l.threadId),d});return t(Zg(c)),{staleThreadIds:i}}),Kc=Q("models/fetch",async()=>{try{return(await b.http(b.API_PREFIX,{method:"POST",body:JSON.stringify({verb:b.DesignerRequestVerb.GET_INFO,path:b.MODEL_TAB_PATH,as:"json",content:!0}),headers:new Headers({"Content-Type":"application/json"})})).content}catch(e){return e.message}}),ms=Q("models/save",async(e,{getState:n,dispatch:t,rejectWithValue:a})=>{const{tabs:s}=n().root,i=s.find(c=>c.path===b.MODEL_TAB_PATH);if(!i)return a("Error while saving the model");try{const c=await b.http(b.API_PREFIX,{method:"POST",body:JSON.stringify({verb:"save",path:i.path,content:i.content}),headers:new Headers({"Content-Type":"application/json"})});return setTimeout(()=>{t(wn())},Ss),{...c,path:i.path,content:e.content||{toJSON:!0,dataClasses:[],extraProperties:{}}}}catch{return a("Error while saving the model")}}),CD=Q("models/open",async(e,{dispatch:n,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path==="models/main");if(s)return n(Pt(s)),s;n(Kc())}),xD=Q("model/rename-dataclass",async(e,{getState:n,dispatch:t})=>{var y,_;const{dataclassId:a,selectionId:s,name:i}=e;let c=n();const l=c.explorer.find(E=>E.path===b.FolderRootPath.CLASSES);if(!l)throw new Error("Classes folder was not found!");await t(_r(l.path)),c=n();const d={class:{found:!1,newNameTaken:!1,file:null,filename_update:i},entity:{found:!1,newNameTaken:!1,file:null,filename_update:`${i}Entity`},selection:{found:!1,newNameTaken:!1,file:null,filename_update:`${i}Selection`}};(_=(y=c.explorer.find(E=>E.path===b.FolderRootPath.CLASSES))==null?void 0:y.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 h=Object.values(d).filter(E=>E.found&&E.file&&!E.newNameTaken);await Promise.all(h.map(async E=>await t(qn({file:E.file,newname:E.filename_update})))),h.length>0&&t(_r("Classes"))}),Na={DATACLASS_DELETE:"dataclass.delete",DATACLASS_DRAGGABLE:"dataclass.draggable"},RD={model:{dataClasses:{},collections:{},extraProperties:{}},draft:{dataClasses:{},collections:{},extraProperties:{}},flags:{[Na.DATACLASS_DELETE]:!0,[Na.DATACLASS_DRAGGABLE]:!0}},tv=nr({name:"Models",initialState:RD,reducers:{setModelFlag(e,n){e.flags={...e.flags,...n.payload}}},extraReducers(e){e.addCase(Kc.fulfilled,(n,t)=>{var c;const a={},s={},i=t.payload.extraProperties||{};(c=t.payload.dataClasses)==null||c.forEach(l=>{a[l.name]=l,s[l.collectionName]=l}),n.draft.dataClasses=a,n.draft.collections=s,n.draft.extraProperties=i,n.model.dataClasses=a,n.model.collections=s,n.model.extraProperties=i}),e.addCase(ms.pending,()=>{}).addCase(ms.fulfilled,(n,t)=>{const a={},s={},i=t.payload.content.extraProperties||{};t.payload.content.dataClasses.forEach(c=>{a[c.name]=c,s[c.collectionName]=c}),n.draft.dataClasses=a,n.draft.collections=s,n.draft.extraProperties=i,n.model.dataClasses=a,n.model.collections=s,n.model.extraProperties=i})}}),{setModelFlag:OD}=tv.actions;var rv=(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))(rv||{}),Bs=(e=>(e.STORAGE="storage",e.RELATEDENTITY="relatedEntity",e.RELATEDENTITIES="relatedEntities",e.CALCULATED="calculated",e.COMPOSITION="composition",e.ALIAS="alias",e))(Bs||{});const AD=e=>["string","uuid","number","long"].includes(e.type),PD=[{label:"Storage",value:"storage"},{label:"Calculated",value:"calculated"}],DD=[{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"}],ID=[{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"}],FD=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],$D=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],MD=[{label:"None",value:"none"},{label:"B-tree",value:"btree"},{label:"Cluster",value:"cluster"},{label:"Automatic",value:"auto"}],LD=(e,n)=>({toJSON:!0,extraProperties:n,dataClasses:e.map(t=>{var a;return{...t.data,extraProperties:{position:{x:t.position.x,y:t.position.y},panelColor:(a=t.data.extraProperties)==null?void 0:a.panelColor}}})});function ND(e,n,t){const a=e;let s=0;for(;t[`${a}${s||""}`];)s++;return`${a}${s||""}`}const nv=e=>e.kind===Bs.RELATEDENTITY,av=e=>e.kind===Bs.RELATEDENTITIES,kD=e=>av(e)||nv(e),jD=()=>kr(e=>e.model.draft.dataClasses),BD=()=>kr(e=>e.model.draft.collections),WD=e=>kr(n=>n.model.draft.dataClasses[e]),UD=(e,n)=>kr(t=>t.model.draft.dataClasses[e].attributes.find(b.by("name",n))),HD=()=>kr(e=>e.model.draft.extraProperties),GD=()=>{const e=kr(s=>s.model.flags),n=s=>s in e?e[s]:void 0,t=n(Na.DATACLASS_DELETE),a=n(Na.DATACLASS_DRAGGABLE);return{deleteDataclass:t,draggableDataclass:a,flags:e}},qD=tv.reducer;function Mu(e,n){const t=e.tabs.find(({path:a})=>a===b.SETTINGS_TAB_PATH);t&&(t.flags.touched=n)}const ov={SIDEBAR_SECTION_RESIZABLE:"sidebar.section.resizable"},sv={[ov.SIDEBAR_SECTION_RESIZABLE]:!0},iv=nr({name:"webforms",initialState:()=>{const{webforms:e}=Kn();return{...e,templates:{data:[],selectedGroup:""},datasources:{...wc.webforms.datasources,...e==null?void 0:e.datasources},flags:sv}},reducers:{toggleInspector:(e,n)=>{const{type:t}=n.payload;e.inspector[t].active=!e.inspector[t].active,e.inspector[t].active||(e.inspector[t].data=void 0)},inspect:(e,n)=>{const{type:t,data:a}=n.payload;e.inspector[t].active&&(e.inspector[t].data=a)},addComponent:(e,n)=>{e.components.push(n.payload)},editComponent:(e,n)=>{const{id:t,changes:a}=n.payload;e.components=e.components.map(s=>s.id===t?{...s,...a}:s)},removeComponent:(e,n)=>{const{payload:t}=n,a=e.components.findIndex(s=>s.id===t);a!==-1&&e.components.splice(a,1)},setSelectedGroup:(e,n)=>{e.templates.selectedGroup=n.payload.selectedGroup},setTemplatesData:(e,n)=>{e.templates.data=n.payload},setTemplateData:(e,n)=>{const{group:t,components:a}=n.payload,s=e.templates.data.find(i=>i.group===t);s&&(s.components=a)},setDatasourcesTheme:(e,n)=>{e.datasources.theme=n.payload},setWebformsFlag(e,n){e.flags={...e.flags,...n.payload}}},extraReducers(e){e.addCase(pv.fulfilled,(n,t)=>{n.components=t.payload})}}),{toggleInspector:YD,inspect:zD,addComponent:uv,editComponent:cv,removeComponent:lv,setSelectedGroup:VD,setTemplatesData:fv,setTemplateData:dv,setDatasourcesTheme:KD,setWebformsFlag:JD}=iv.actions,XD=iv.reducer,Jc=He.curry((e,n)=>{var s,i;const t={...n.sharedDatasources.sources},a=(i=((s=n.root.tabs.find(b.by("path",e)))==null?void 0:s.content).metadata)==null?void 0:i.datasources;return a&&(t[e]=a),He.cloneDeep(t)}),ZD=Q("webforms/fetchTemplates",async(e,{dispatch:n,getState:t})=>{const{data:a}=t().webforms.templates,s=t().settings.session["studio.tipsBaseUrl"]||"";if(!He.isEmpty(a))return a;try{const c=await(await fetch(`${s}/build/index.json?t=${Date.now()}`)).json();return n(fv(c)),c}catch{return[]}}),QD=Q("webforms/fetchTemplate",async({name:e},{dispatch:n,getState:t})=>{const{data:a}=t().webforms.templates,s=a.find(i=>i.group===e);if(s&&!He.isEmpty(s.components))return s.components;try{const c=await(await fetch(`${s==null?void 0:s.link}?t=${Date.now()}`)).json();return n(dv({group:e,components:c})),c}catch{return[]}}),pv=Q("webforms/fetchCraftedComponents",async(e,{rejectWithValue:n})=>{try{return(await b.getNodeInfo({path:"WebForms/crafted_components.json",verb:b.DesignerRequestVerb.GET_INFO,content:!0,as:"json"})).content}catch{return n("Error while loading the crafted components")}}),eI=Q("webforms/addCraftedComponent",async(e,{dispatch:n,rejectWithValue:t,getState:a})=>{try{n(uv(e));const{webforms:{components:s}}=a();b.setCraftedComponents(s)}catch{return t("Error while adding the crafted component")}}),tI=Q("webforms/editCraftedComponent",async(e,{dispatch:n,rejectWithValue:t,getState:a})=>{try{n(cv(e));const{webforms:{components:s}}=a();b.setCraftedComponents(s)}catch{return t("Error while editing the crafted component")}}),rI=Q("webforms/removeCraftedComponent",async(e,{dispatch:n,rejectWithValue:t,getState:a})=>{try{n(lv(e));const{webforms:{components:s}}=a();b.setCraftedComponents(s)}catch{return t("Error while removing the crafted component")}}),Xc=Q("datasources/add-datasource",async(e,{getState:n,rejectWithValue:t})=>{var a,s;try{const i=n(),c=e.datasource,l=!!c.namespace,d=[];if(l){const p={...i.sharedDatasources.sources,[c.namespace]:[...i.sharedDatasources.sources[c.namespace],c]};d.push(...p[c.namespace]),await b.setSharedSources(p)}else(((s=(a=i.root.tabs.find(b.by("path",e.path)).content)==null?void 0:a.metadata)==null?void 0:s.datasources)||[]).push(c);return{list:d,path:e.path,namespace:e.datasource.namespace}}catch{console.error("Error while adding the datasource",e.datasource.id),t("Error while adding the datasource")}}),Zc=Q("datasources/edit-datasource",async(e,{getState:n,rejectWithValue:t})=>{try{const{namespace:a,path:s}=e,i=n(),c=!!e.namespace,l=Jc(s,i);let d=He.defaultTo(l[a||s],[]);return d=d.map(p=>p.id===e.id?{...p,[e.property]:e.value}:p),c&&await b.setSharedSources({...i.sharedDatasources.sources,[e.namespace]:d}),{list:d,path:e.path,namespace:e.namespace}}catch{t(`Error while editing datasource ${e.id}`)}}),nI=e=>e.type===zn.fulfilled.type,zn=Q("datasources/rename-datasource",async(e,{getState:n,rejectWithValue:t})=>{try{const a=n(),s=!!e.namespace,i=e.namespace||e.path,c=Jc(e.path,a),l=He.defaultTo(c[i],[]),d=new RegExp(`^${e.id}\\b`,"");if(l.forEach(p=>{var y;const h=(b.isObjectDatasource(p)||!b.isSimpleDatasource(p))&&p.from&&d.test(p.from);e.updateRefs&&((y=p.events)==null||y.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:h&&p.from&&(p.from=p.from.replace(new RegExp(`^${e.id}`,""),e.new_name))}),e.updateRefs){const p=b.getDatasourceId({id:e.id,namespace:e.namespace}),h=b.getDatasourceId({id:e.new_name,namespace:e.namespace});b.datasourcesSubject.next({path:e.path??"",action:b.DatasourcesActions.RENAME,old_reference:p,new_reference:h,is_shared:s})}return s&&await b.setSharedSources({...a.sharedDatasources.sources,[e.namespace]:l}),{list:l,path:e.path,namespace:e.namespace}}catch{return t(`Error while renaming datasource ${e.namespace}:${e.id}`)}}),Ia=Q("datasources/delete-datasource",async(e,{getState:n,rejectWithValue:t})=>{try{const a=n(),s=!!e.namespace,i=e.namespace||e.path,l=Jc(e.path,a)[i].filter(b.outById(e.id));return s&&await b.setSharedSources({...a.sharedDatasources.sources,[e.namespace]:l}),{list:l,path:e.path,namespace:e.namespace}}catch{return t(`Error while removing datasource ${e.id}`)}}),ka=nr({name:"root",initialState:()=>{const e=Kn();return{filesLoading:!1,tabs:e.tabs||[],activeTab:e.activeTab,recent:e.recent||[]}},reducers:{setPanelState(e,n){const{path:t,...a}=n.payload;e.tabs.forEach(s=>{s.path===t&&(s.view||(s.view={panel:{isOpen:!1,type:"",current:""}}),Object.assign(s.view.panel,a))})},openSettingsTab(e){const n={date:new Date().toISOString(),flags:{confirmed:!0},view:{panel:{isOpen:!1,type:"",current:""}},extra:{editor:{key:"editors:settings"}},name:"Settings",path:b.SETTINGS_TAB_PATH,type:b.FileFolderType.SETTINGS,initialContent:{},content:{}};let t=e.tabs.find(a=>a.path===n.path);if(t||(e.tabs.push(n),t=e.tabs[e.tabs.length-1]),e.activeTab!==n.path){const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);e.activeTab=n.path,t.weight=((a==null?void 0:a.weight)||0)+1}},addDataSource(e,n){var i;const{payload:{path:t,datasourceDef:a}}=n,s=e.tabs.find(c=>c.path===t);s&&(s.content.metadata.datasources=s.content.metadata.datasources||[],(i=s.content.metadata.datasources)!=null&&i.find(l=>l.id===a.id)||(s.content.metadata.datasources=[...s.content.metadata.datasources,{...a,events:[]}],s.flags={...s.flags,touched:!0,confirmed:!0}))},addWebformState(e,n){var i;const{payload:{path:t,stateDef:a}}=n,s=e.tabs.find(c=>c.path===t);s&&(s.content.metadata.states=s.content.metadata.states||[$c],(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,n){const{path:t,id:a}=n.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:yh(s.content,a)}:s)},editWebformState(e,n){const{path:t,state:a}=n.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:{...s.content,metadata:{...s.content.metadata,states:s.content.metadata.states.map(i=>i.id===a.id?a:i)}}}:s)},removeDataSource(e,n){const{path:t,datasourceID:a}=n.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:{...s.content,metadata:{...s.content.metadata,datasources:s.content.metadata.datasources.filter(i=>i.id!==a)}}}:s)},setDataSources(e,n){const{payload:{path:t,datasourceArr:a}}=n;e.tabs=e.tabs.map(s=>{var i;return s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:{...s.content,metadata:{...(i=s.content)==null?void 0:i.metadata,datasources:a}}}:s})},setTabs(e,n){e.tabs=n.payload},closeTab(e,n){const t=n.payload;e.tabs.splice(t,1);const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);e.activeTab=(a==null?void 0:a.path)||""},closeOthers(e,n){e.tabs=e.tabs.filter(t=>t.path===n.payload),e.activeTab=n.payload},closeAllTabs(e){e.tabs=[],e.activeTab=""},closeRightTabs(e,n){e.tabs.splice(n.payload+1),e.activeTab=e.tabs[n.payload].path},closeLeftTabs(e,n){e.tabs.splice(0,n.payload)},closeSavedTabs(e){e.tabs=e.tabs.filter(({flags:{touched:t}})=>t);const n=e.tabs.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null);e.activeTab=(n==null?void 0:n.path)||""},confirmTab(e,n){const t=e.tabs.find(({path:a})=>a===n.payload);t&&(t.flags.confirmed||ka.caseReducers.setTabFlags(e,{type:n.type,payload:{path:n.payload,flags:{confirmed:!0}}}))},selectTab(e,n){const t=e.tabs.find(({path:s})=>s===n.payload);if(!t||e.activeTab===n.payload)return;const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);t.weight=a?(a.weight||0)+1:1,e.activeTab=n.payload},openTabUnselected(e,n){const t=n.payload;let a=e.tabs.find(({path:i})=>t.path===i);a||(e.tabs.push(t),a=e.tabs[e.tabs.length-1]);const s=e.tabs.reduce((i,c)=>(c==null?void 0:c.weight)>((i==null?void 0:i.weight)||0)?c:i,null);a.weight=s?(s.weight||0)+1:1,a.extra={...a.extra,...t.extra}},selectTabByReference(e,n){const t=[b.FileFolderType.DEBUGGER],{isNew:a,...s}=n.payload;let i=s,c=e.tabs.find(({path:l})=>i.path===l);if((t.includes(i.type)||c!=null&&c.flags.confirmed)&&(i={...i,flags:{...i.flags,confirmed:!0}}),!c){const l=e.tabs.findIndex(({flags:{confirmed:d}})=>d===!1);l!==-1&&!t.includes(i.type)&&!a?e.activeTab===e.tabs[l].path?(e.tabs[l]=i,c=e.tabs[l]):(e.tabs.push(i),c=e.tabs[e.tabs.length-1],e.tabs.splice(l,1)):(e.tabs.push(i),c=e.tabs[e.tabs.length-1])}if(e.activeTab!==i.path){const l=e.tabs.reduce((d,p)=>(p==null?void 0:p.weight)>((d==null?void 0:d.weight)||0)?p:d,null);e.activeTab=i.path,c.weight=((l==null?void 0:l.weight)||0)+1}c.extra={...c.extra,...i.extra},c.flags={...c.flags||{},...i.flags||{}}},setContent(e,n){const{path:t,content:a,contentPath:s}=n.payload;e.tabs=e.tabs.map(i=>{if(i.path!==t)return i;let c=!1,l=i.flags.confirmed;if(typeof a=="string")c=i.initialContent!==a,l=!l&&c?!0:l;else{const d=JSON.stringify(He.get(i.initialContent,s||"",i.initialContent)),p=JSON.stringify(He.get(a,s||"",a));c=d!==p,l=!l&&c?!0:l}return a&&typeof a=="object"&&(s?He.set(i.content,s,a):i.content=a),typeof a=="string"&&(i.content=a),{...i,flags:{...i.flags,touched:c,confirmed:l}}})},setTabFlags(e,n){const{path:t,flags:a}=n.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,...a}}:s)},setTabsFlags(e,n){const{tabs:t,flags:a}=n.payload;e.tabs=e.tabs.map(s=>t.includes(s.path)?{...s,flags:{...s.flags,...a}}:s)},setTabExtra(e,n){const{path:t,extra:a,flags:s}=n.payload;e.tabs=e.tabs.map(i=>i.path===t?{...i,extra:{...i.extra,...a},flags:s?{...i.flags,...s}:i.flags}:i)},addWebFormStyles(e,n){const{path:t,styles:a=[]}=n.payload,s=e.tabs.find(i=>i.path===t);if(s){const i=s.content.metadata.styles.map(({name:l})=>l),c=a.filter(({name:l})=>!i.includes(l));s.content.metadata.styles=[...s.content.metadata.styles,...c].map(({scope:l,...d})=>({...d}))}},changeTabEditor(e,n){return e.tabs=e.tabs.map(t=>t.path===n.payload.path?n.payload:t),e}},extraReducers:e=>{e.addCase(ac,(n,t)=>{if(t.payload.settingsKey==="studio.enablePreview"&&t.payload.value===!1){const a=n.tabs.find(({flags:{confirmed:s}})=>s===!1);a&&ka.caseReducers.setTabFlags(n,{type:"",payload:{path:a.path,flags:{confirmed:!0}}})}}),e.addCase(zg.fulfilled,(n,t)=>{if(!t.payload)return;const{content:a,line:s,path:i}=t.payload,c=n.tabs.find(l=>l.path===i);if(c&&typeof c.content=="string"){const l=c.content.trim().split(`
|
|
100
100
|
`);l.splice(s,0,a),c.content=l.join(`
|
|
101
|
-
`)}}),e.addCase(Yn.pending,(n,t)=>{const{tab:a}=t.meta.arg;switch(a.type){case b.FileFolderType.CLASS:case b.FileFolderType.METHOD:b.lspSubject.next({action:b.LspActions.WILL_SAVE,payload:{filePath:a.path}});break}}),e.addCase(Yn.fulfilled,(n,t)=>{if(!t.payload)return;const a=n.tabs.find(({path:s})=>{var i;return s===((i=t.payload)==null?void 0:i.path)});if(a){switch(a.content=t.payload.content,a.date=t.payload.date,a.initialContent=t.payload.initialContent,a.flags.touched=!1,a.flags.confirmed=!0,a.flags.old=!1,a.type){case b.FileFolderType.CLASS:case b.FileFolderType.METHOD:b.lspSubject.next({action:b.LspActions.DID_SAVE,payload:{filePath:a.path,content:a.content}});break}t.payload.errors.length>0&&b.toastSubject.next({kind:"error",message:t.payload.errors})}}),e.addCase(Yn.rejected,(n,t)=>{b.toastSubject.next({kind:"danger",message:"Cannot save file"})}),e.addCase(
|
|
101
|
+
`)}}),e.addCase(Yn.pending,(n,t)=>{const{tab:a}=t.meta.arg;switch(a.type){case b.FileFolderType.CLASS:case b.FileFolderType.METHOD:b.lspSubject.next({action:b.LspActions.WILL_SAVE,payload:{filePath:a.path}});break}}),e.addCase(Yn.fulfilled,(n,t)=>{if(!t.payload)return;const a=n.tabs.find(({path:s})=>{var i;return s===((i=t.payload)==null?void 0:i.path)});if(a){switch(a.content=t.payload.content,a.date=t.payload.date,a.initialContent=t.payload.initialContent,a.flags.touched=!1,a.flags.confirmed=!0,a.flags.old=!1,a.type){case b.FileFolderType.CLASS:case b.FileFolderType.METHOD:b.lspSubject.next({action:b.LspActions.DID_SAVE,payload:{filePath:a.path,content:a.content}});break}t.payload.errors.length>0&&b.toastSubject.next({kind:"error",message:t.payload.errors})}}),e.addCase(Yn.rejected,(n,t)=>{b.toastSubject.next({kind:"danger",message:"Cannot save file"})}),e.addCase(Kg.fulfilled,(n,t)=>{const a=[...t.payload.files];n.tabs=n.tabs.map(s=>{if([b.FileFolderType.CLASS,b.FileFolderType.METHOD].includes(s.type)){const i=a.find(c=>c.name===s.name&&c.type===s.type);if(i){const c=new Date(s.date),l=new Date(i.date);if(c.getTime()!==l.getTime())return{...s,flags:{...s.flags,old:!0}}}}return s})}),e.addCase(lc.pending,(n,t)=>{n.tabs=n.tabs.map(a=>a.path===t.meta.arg.path?{...a,flags:{...a.flags,loading:!0}}:a)}),e.addCase(lc.fulfilled,(n,t)=>{const a=t.payload;if(a){const s=t.meta.arg;n.tabs=n.tabs.map(i=>{if(i.name===s.name&&i.type===s.type){const c=i.extra||{};return i.type===b.FileFolderType.METHOD?(c.attributes=b.parseAttributes(a.content),a.content=b.addAttributesToContent(a.content,{})):i.type===b.FileFolderType.SETTINGS&&(a.content={}),{...i,initialContent:a.content,content:a.content,date:a.date,flags:{enabled:i.flags.enabled,confirmed:i.flags.confirmed},extra:c}}return i})}}),e.addCase(qc.fulfilled,(n,t)=>{if(!t.payload)return;const{line:a,offset:s}=t.meta.arg,i=n.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(Vg.fulfilled,(n,t)=>{if(!t.payload)return;const{selection:a}=t.meta.arg,s=n.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(qn.fulfilled,(n,t)=>{t.payload.new!==t.payload.old&&(n.tabs=[...n.tabs].map(a=>a.path===t.payload.old.path?{...a,path:t.payload.new.path,name:t.payload.new.name}:a),n.activeTab===t.payload.old.path&&(n.activeTab=t.payload.new.path))}),e.addCase(uc.pending,(n,t)=>{const a=t.meta.arg,s=`${a.path}${a.ext?`.${a.ext}`:""}`;switch(a.ext){case"4dm":case"4qs":b.lspSubject.next({action:b.LspActions.WILL_DELETE,payload:{filePath:s}});break}}),e.addCase(uc.fulfilled,(n,t)=>{const{deleted:a,node:s}=t.payload;if(!a)return;const i=`${s.path}${s.ext?`.${s.ext}`:""}`;switch(s.ext){case"4dm":case"4qs":b.lspSubject.next({action:b.LspActions.DID_DELETE,payload:{filePath:i}});break}if(n.tabs=n.tabs.filter(c=>c.path!==i),n.recent=n.recent.filter(({path:c})=>i!==c),n.tabs.length){n.activeTab=n.tabs[n.tabs.length-1].path;return}n.activeTab=""}),e.addCase(cc.pending,(n,t)=>{const a=t.meta.arg,s=`${a.path}${a.ext?`.${a.ext}`:""}`;switch(a.ext){case"4dm":case"4qs":b.lspSubject.next({action:b.LspActions.WILL_DELETE,payload:{filePath:s}});break}}),e.addCase(cc.fulfilled,(n,t)=>{const{node:a}=t.payload,s=`${a.path}${a.ext?`.${a.ext}`:""}`;switch(a.ext){case"4dm":case"4qs":b.lspSubject.next({action:b.LspActions.DID_DELETE,payload:{filePath:s}});break}}),e.addCase(Da.fulfilled,(n,t)=>{const{draggedNode:a,newLocation:s}=t.meta.arg;if(n.tabs.find(i=>i.path===`${a.path}${a.ext?`.${a.ext}`:""}`))return n.tabs=n.tabs.map(i=>i.path===`${a.path}${a.ext?`.${a.ext}`:""}`?{...i,path:`${s.path}/${a.name}.${a.ext}`}:i),n.recent=n.recent.map(i=>i.path===`${a.path}${a.ext?`.${a.ext}`:""}`?{...i,path:`${s.path}/${a.name}.${a.ext}`}:i),n.activeTab=`${s.path}/${a.name}.${a.ext}`,n}),e.addCase(ms.fulfilled,(n,t)=>{const a=n.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(Jg.fulfilled,(n,t)=>{var i;if(!((i=t.payload)!=null&&i.path))return;const a=n.tabs.find(b.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:b.EDITOR.Code,initialLineInfo:{line:s.length-1,lastModification:Date.now()}}}),e.addCase(
|
|
104
|
+
`);a.extra={...a.extra,editor:b.EDITOR.Code,initialLineInfo:{line:s.length-1,lastModification:Date.now()}}}),e.addCase(Yc.fulfilled,(n,t)=>{var i,c;if(!((i=t.payload)!=null&&i.path)||(c=t.payload)!=null&&c.namespace)return;const a=t.payload.path,s=n.tabs.find(b.by("path",a));!s||!s.content||!s.content.metadata||(Object.assign(s.content.metadata,{datasources:t.payload.datasources}),s.flags.touched=!0,s.flags.confirmed=!0)}),e.addCase(zc.fulfilled,(n,t)=>{const{payload:a,meta:{arg:s}}=t;s.namespace||n.tabs.forEach(i=>{i.path===s.path&&Object.assign(i.content,{metadata:{...i.content.metadata,datasources:a}})})}),e.addCase(ev.fulfilled,(n,t)=>{const{staleThreadIds:a}=t.payload;if(a.length===0)return;const s=a.map(i=>`Debugger/${i}`);if(n.tabs=n.tabs.filter(i=>!s.includes(i.path)),n.recent=n.recent.filter(({path:i})=>!s.includes(i)),n.tabs.length){n.activeTab=n.tabs[n.tabs.length-1].path;return}n.activeTab=""}),e.addCase(Gc.pending,n=>Mu(n,!1)),e.addMatcher(dr(ac),(n,t)=>{["project"].includes(t.payload.path)&&Mu(n,!0)}),e.addMatcher(dr(ks),(n,t)=>{Mu(n,!1)}),e.addMatcher(dr(_v,Pt),(n,t)=>{const{payload:a}=t;let s;typeof a=="string"?s=n.tabs.find(({path:i})=>a===i):s=a,s&&(n.recent=[s,...n.recent.filter(({path:i})=>![s.path,"settings"].includes(i))])}),e.addMatcher(dr(kg,Ng),(n,t)=>{n.tabs=n.tabs.map(a=>a.path===b.ROLES_TAB_PATH?{...a,flags:{...a.flags,confirmed:!0,touched:!0}}:a)}),e.addMatcher(dr(Hc),(n,t)=>{n.tabs=n.tabs.map(a=>a.path===b.ROLES_TAB_PATH?{...a,flags:{...a.flags,touched:!1}}:a)}),e.addMatcher(dr(Xc.fulfilled,Zc.fulfilled,Ia.fulfilled,zn.fulfilled),(n,t)=>{var s,i,c;const a=n.tabs.find(b.by("path",((s=t.payload)==null?void 0:s.path)||t.meta.arg.path));!a||(i=t.payload)!=null&&i.namespace||(a.flags.touched=!0,a.flags.confirmed=!0,Object.assign(a.content,{metadata:{...a.content.metadata,datasources:(c=t.payload)==null?void 0:c.list}}))}),e.addMatcher(dr(Ia.fulfilled,zn.fulfilled),(n,t)=>{var l;const a=n.tabs.find(b.by("path",((l=t.payload)==null?void 0:l.path)||t.meta.arg.path));if(!a)return;const{panel:s}=a.view,i=b.getDatasourceId({id:t.meta.arg.id,namespace:t.meta.arg.namespace});if(s.type==="datasource"&&s.current===i)switch(t.type){case Ia.fulfilled.type:Object.assign(a.view.panel,{type:"component",current:lR});break;case zn.fulfilled.type:const d=b.getDatasourceId({id:t.meta.arg.new_name,namespace:t.meta.arg.namespace});Object.assign(a.view.panel,{type:"datasource",current:d});break}})}}),{setTabs:aI,closeTab:Qc,setContent:hv,setTabFlags:gv,setTabsFlags:oI,setTabExtra:sI,closeAllTabs:vv,addDataSource:iI,closeRightTabs:mv,closeOthers:yv,closeLeftTabs:bv,closeSavedTabs:uI,setDataSources:cI,removeDataSource:lI,confirmTab:fI,selectTab:_v,selectTabByReference:Pt,openTabUnselected:Ev,addWebFormStyles:dI,changeTabEditor:pI,openSettingsTab:hI,setPanelState:gI,addWebformState:vI,editWebformState:mI,removeWebformState:yI}=ka.actions,Sv=ka.reducer,bI=Xg.reducer,wn=Q("catalog/fetchCatalog",async(e,{rejectWithValue:n})=>{var t;try{const a=await b.getCatalog(),s=new Map,i=new Map;return(t=a==null?void 0:a.dataClasses)==null||t.forEach(({methods:c=[],...l})=>{if(l.uuid||Object.assign(l,{uuid:b.generateUUID()}),l.attributes){const p=["storage","relatedEntity"];l.attributes=l.attributes.map(h=>(p.includes(h.kind)&&!h.uuid&&Object.assign(h,{uuid:b.generateUUID()}),h))}const d={...l,methods:c};i.set(l.className,d),s.set(l.collectionName,d)}),{__BASEID:a.__BASEID,__UNIQID:a.__UNIQID,dataClassByCollectionName:Object.fromEntries(s.entries()),methods:a.methods||[],dataClasses:Object.fromEntries(i.entries())}}catch{return n("Error while loading the catalog")}}),_I=nr({name:"catalog",initialState:{state:"loading"},reducers:{},extraReducers(e){e.addCase(wn.pending,()=>({state:"loading"})).addCase(wn.fulfilled,(n,{payload:t})=>({state:"loaded",model:t})).addCase(wn.rejected,(n,t)=>({state:"error",error:t.payload||"Error while loading the catalog"}))}}),EI=_I.reducer,SI=Pg.reducer,Zo=Q("shared_datasources/fetchSharedSources",async(e,{rejectWithValue:n})=>{try{return await b.getSharedDatasources()}catch{return n("Error while loading the shared datasources")}}),wv=Q("shared_datasources/addSharedSource",async(e,{rejectWithValue:n,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 n("Namespace is required");return await b.setSharedSources(a.sources),a.sources}catch{return n("Error while saving the shared datasources")}}),Tv=Q("shared_datasources/editSharedSource",async(e,{rejectWithValue:n,getState:t})=>{try{const a=t().sharedDatasources;if(!e.namespace)return n("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 n("Namespace not found");return await b.setSharedSources(a.sources),a.sources}catch{return n("Error while saving the shared datasources")}}),Cv=Q("shared_datasources/deleteSharedSource",async(e,{rejectWithValue:n,getState:t})=>{try{const a={...t().sharedDatasources};if(a.sources[e.namespace]){const s=a.sources[e.namespace].filter(i=>i.id!==e.id);if(s.length===0){const{[e.namespace]:i,...c}=a.sources;a.sources=c}else a.sources={...a.sources,[e.namespace]:s}}return await b.setSharedSources(a.sources),a.sources}catch{return n("Error while saving the shared datasources")}}),el=Q("shared_datasources/updateSharedDatasources",async(e,{rejectWithValue:n,getState:t})=>{try{const a={...t().sharedDatasources};for(const s of e){if(!s.namespace)return n("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 n("Namespace not found")}return await b.setSharedSources(a.sources),a.sources}catch{return n("Error while saving the shared datasources")}}),wI=Q("shared_datasources/setDatasourceEvents",async({tabPath:e,name:n,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},h=(D,P)=>D.id===n&&(!t&&!D.namespace||D.namespace===t)?(P==null||P(),{...D,events:a}):D,y=d.map(D=>h(D,()=>{p.local=!0})),_=He.flatten(He.values(l.sources)).map(D=>h(D,()=>{p.shared=!0}));p.local&&i(hv({path:e,content:y,contentPath:"metadata.datasources"})),p.shared&&i(el(_))}),xv=nr({name:"shared-datasources",initialState:{},reducers:{addEmptyNamespace(e,n){e.sources[n.payload.name]=[]}},extraReducers(e){e.addCase(Zo.pending,n=>({state:"loading",sources:{}})).addCase(Zo.fulfilled,(n,t)=>({state:"loaded",sources:t.payload})).addCase(Zo.rejected,(n,t)=>({state:"error",sources:{},error:t.payload||"Error while loading the shared datasources"})).addCase(el.fulfilled,(n,t)=>({state:"loaded",sources:t.payload})).addCase(zc.fulfilled,(n,t)=>{const{payload:a,meta:{arg:s}}=t;s.namespace&&Object.assign(n.sources,{[s.namespace]:a})}).addCase(wv.fulfilled,(n,t)=>({...n,sources:t.payload})).addCase(Cv.fulfilled,(n,t)=>({...n,sources:t.payload})).addCase(Tv.fulfilled,(n,t)=>({...n,sources:t.payload})).addCase(Yc.fulfilled,(n,t)=>{if(!t.payload)return n;const{datasources:a,namespace:s}=t.payload;s&&n.sources[s]&&Object.assign(n.sources[s],{[s]:a})}).addMatcher(dr(Xc.fulfilled,Ia.fulfilled,Zc.fulfilled,zn.fulfilled),(n,t)=>{if(!t.payload)return;const{namespace:a,list:s}=t.payload;a&&Object.assign(n.sources,{[a]:s})})}}),{addEmptyNamespace:TI}=xv.actions,CI=xv.reducer,xI=Wg.reducer,Qo=Q("shared_css/fetchSharedCSS",async(e,{rejectWithValue:n})=>{try{const{classes:t}=await b.getSharedCSS();return t}catch{return n("Error while loading the shared CSS")}}),RI=b.queue();async function OI(e){const n={verb:b.DesignerRequestVerb.SET_FILE_CONTENT,asText:!1,name:"shared_css.json",path:"",root:"shared",content:{classes:e.map(({scope:t,...a})=>({...a}))}};await RI(()=>b.http(b.API_PREFIX,{method:"POST",body:JSON.stringify(n),headers:new Headers({"Content-Type":"application/json"})}))}const Rv=nr({name:"shared-css",initialState:()=>{const{sharedCSS:e}=Kn();return e||{state:"loading",styles:[]}},reducers:{updateSharedCss:(e,n)=>(e.styles=n.payload.classes,OI(n.payload.classes),e),initSharedCss:(e,n)=>(e.styles=n.payload.classes,e)},extraReducers(e){e.addCase(Qo.pending,n=>({...n,state:"loading"})).addCase(Qo.fulfilled,(n,{payload:t})=>({state:"loaded",styles:t})).addCase(Qo.rejected,(n,t)=>({...n,state:"error",error:t.payload||"Error while loading the shared css"}))}}),{updateSharedCss:AI,initSharedCss:PI}=Rv.actions,DI=Rv.reducer,II={},FI=nr({name:"tabs",initialState:II,reducers:{}}),$I=e=>G(ta,n=>{var t,a;return(a=(t=n.find(s=>s.path===e))==null?void 0:t.view)==null?void 0:a.panel});FI.reducer;const Ov=Vp({root:Sv,explorer:xI,debugger:bI,settings:$P,catalog:EI,roles:PP,sharedDatasources:CI,webforms:XD,modals:SI,sharedCSS:DI,model:qD});let Ta;const Av=()=>(Ta||(Ta=Mw({reducer:Ov}),Ta.subscribe(VT(()=>{const{root:{activeTab:e,tabs:n,recent:t},roles:a,debugger:s,webforms:i,sharedCSS:c,settings:{session:l}}=Ta.getState();hh({...l}),ph({tabs:n,activeTab:e,recent:t,roles:a,debugger:s,webforms:i,sharedCSS:c})},1e3))),Ta);var fc={exports:{}},Un={};/** @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 Wp;function MI(){if(Wp)return Un;Wp=1,Rc();var e=pt,n=60103;if(Un.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var t=Symbol.for;n=t("react.element"),Un.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 h,y={},_=null,E=null;p!==void 0&&(_=""+p),d.key!==void 0&&(_=""+d.key),d.ref!==void 0&&(E=d.ref);for(h in d)s.call(d,h)&&!i.hasOwnProperty(h)&&(y[h]=d[h]);if(l&&l.defaultProps)for(h in d=l.defaultProps,d)y[h]===void 0&&(y[h]=d[h]);return{$$typeof:n,type:l,key:_,ref:E,props:y,_owner:a.current}}return Un.jsx=c,Un.jsxs=c,Un}var Lu={};/** @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
|
|
118
|
+
*/var Up;function LI(){return Up||(Up=1,function(e){process.env.NODE_ENV!=="production"&&function(){var n=pt,t=Rc(),a=60103,s=60106;e.Fragment=60107;var i=60108,c=60114,l=60109,d=60110,p=60112,h=60113,y=60120,_=60115,E=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"),h=M("react.suspense"),y=M("react.suspense_list"),_=M("react.memo"),E=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 U=k&&w[k]||w[O];return typeof U=="function"?U:null}var H=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Y(w){{for(var U=arguments.length,J=new Array(U>1?U-1:0),ie=1;ie<U;ie++)J[ie-1]=arguments[ie];te("error",w,J)}}function te(w,U,J){{var ie=H.ReactDebugCurrentFrame,Le=ie.getStackAddendum();Le!==""&&(U+="%s",J=J.concat([Le]));var Ne=J.map(function(Ce){return""+Ce});Ne.unshift("Warning: "+U),Function.prototype.apply.call(console[w],console,Ne)}}var We=!1;function Te(w){return!!(typeof w=="string"||typeof w=="function"||w===e.Fragment||w===c||w===P||w===i||w===h||w===y||w===j||We||typeof w=="object"&&w!==null&&(w.$$typeof===E||w.$$typeof===_||w.$$typeof===l||w.$$typeof===d||w.$$typeof===p||w.$$typeof===D||w.$$typeof===T||w[0]===x))}function st(w,U,J){var ie=U.displayName||U.name||"";return w.displayName||(ie!==""?J+"("+ie+")":J)}function X(w){return w.displayName||"Context"}function Pe(w){if(w==null)return null;if(typeof w.tag=="number"&&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 h:return"Suspense";case y:return"SuspenseList"}if(typeof w=="object")switch(w.$$typeof){case d:var U=w;return X(U)+".Consumer";case l:var J=w;return X(J._context)+".Provider";case p:return st(w,w.render,"ForwardRef");case _:return Pe(w.type);case T:return Pe(w._render);case E:{var ie=w,Le=ie._payload,Ne=ie._init;try{return Pe(Ne(Le))}catch{return null}}}return null}var it=0,Qe,Ge,rt,qt,W,q,de;function le(){}le.__reactDisabledLog=!0;function se(){{if(it===0){Qe=console.log,Ge=console.info,rt=console.warn,qt=console.error,W=console.group,q=console.groupCollapsed,de=console.groupEnd;var w={configurable:!0,enumerable:!0,value:le,writable:!0};Object.defineProperties(console,{info:w,log:w,warn:w,error:w,group:w,groupCollapsed:w,groupEnd:w})}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:Ge}),warn:t({},w,{value:rt}),error:t({},w,{value:qt}),group:t({},w,{value:W}),groupCollapsed:t({},w,{value:q}),groupEnd:t({},w,{value:de})})}it<0&&Y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ne=H.ReactCurrentDispatcher,ce;function ue(w,U,J){{if(ce===void 0)try{throw Error()}catch(Le){var ie=Le.stack.trim().match(/\n( *(at )?)/);ce=ie&&ie[1]||""}return`
|
|
119
119
|
`+ce+w}}var he=!1,ge;{var K=typeof WeakMap=="function"?WeakMap:Map;ge=new K}function F(w,U){if(!w||he)return"";{var J=ge.get(w);if(J!==void 0)return J}var ie;he=!0;var Le=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ne;Ne=ne.current,ne.current=null,se();try{if(U){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 Ee=sr.stack.split(`
|
|
120
120
|
`),ht=ie.stack.split(`
|
|
121
121
|
`),Xe=Ee.length-1,et=ht.length-1;Xe>=1&&et>=0&&Ee[Xe]!==ht[et];)et--;for(;Xe>=1&&et>=0;Xe--,et--)if(Ee[Xe]!==ht[et]){if(Xe!==1||et!==1)do if(Xe--,et--,et<0||Ee[Xe]!==ht[et]){var zt=`
|
|
@@ -125,5 +125,5 @@ Check the render method of \``+w+"`."}return""}}function Hs(w){{if(w!==void 0){v
|
|
|
125
125
|
|
|
126
126
|
Check your code at `+U+":"+J+"."}return""}}var Ya={};function za(w){{var U=qa();if(!U){var J=typeof w=="string"?w:w.displayName||w.name;J&&(U=`
|
|
127
127
|
|
|
128
|
-
Check the top-level render call using <`+J+">.")}return U}}function ia(w,U){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var J=za(U);if(Ya[J])return;Ya[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 Va(w,U){{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,U)}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,U)}}}function Gs(w){{var U=w.type;if(U==null||typeof U=="string")return;var J;if(typeof U=="function")J=U.propTypes;else if(typeof U=="object"&&(U.$$typeof===p||U.$$typeof===_))J=U.propTypes;else return;if(J){var ie=Pe(U);Ws(J,w.props,"prop",ie,w)}else if(U.PropTypes!==void 0&&!cn){cn=!0;var Le=Pe(U);Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Le||"Unknown")}typeof U.getDefaultProps=="function"&&!U.getDefaultProps.isReactClassApproved&&Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function qs(w){{for(var U=Object.keys(w.props),J=0;J<U.length;J++){var ie=U[J];if(ie!=="children"&&ie!=="key"){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 Ka(w,U,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=Hs(Le);ht?Ee+=ht:Ee+=qa();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,U,J,Le,Ne);if(et==null)return et;if(Ce){var zt=U.children;if(zt!==void 0)if(ie)if(Array.isArray(zt)){for(var Ur=0;Ur<zt.length;Ur++)Va(zt[Ur],w);Object.freeze&&Object.freeze(zt)}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 Va(zt,w)}return w===e.Fragment?qs(et):Gs(et),et}}function Ja(w,U,J){return Ka(w,U,J,!0)}function Ys(w,U,J){return Ka(w,U,J,!1)}var zs=Ys,Vs=Ja;e.jsx=zs,e.jsxs=Vs}()}(Lu)),Lu}process.env.NODE_ENV==="production"?lc.exports=MI():lc.exports=LI();var NI=lc.exports;const kI=({children:e,store:n})=>NI.jsx(Xh,{store:n,children:e});exports.CATALOG_REFRESH_DELAY=Ss;exports.DEFAULT_CACHE=Sc;exports.EAttributeKind=Bs;exports.EAttributeTypes=tv;exports.EDebuggerErrorReason=uh;exports.EDebuggerErrorType=ss;exports.EDebuggerState=Ir;exports.EDisplayMode=Lc;exports.EPermissionType=Ae;exports.ETooltipBehavior=$c;exports.EUnsavedPopOverChoice=Mc;exports.ExpressionIndex=ih;exports.FLAGS_INIT_STATE=ov;exports.FLAGS_KEYS=Na;exports.ROOT_WEBFORM_STATE=Fc;exports.ReduxProvider=kI;exports.THEME_CLASSES=pg;exports.WT_FLAGS_KEYS=av;exports.actionsToPrivs=Tg;exports.addBreakpointDecoration=nD;exports.addComponent=iv;exports.addCraftedComponent=eI;exports.addDataSource=iI;exports.addDatasource=Jc;exports.addEmptyNamespace=TI;exports.addExpression=lD;exports.addIn=uP;exports.addNewFile=Wg;exports.addPermission=hP;exports.addSession=mD;exports.addSharedSource=Sv;exports.addWebFormStyles=dI;exports.addWebformState=vI;exports.allowed=sP;exports.attributeKinds=PD;exports.attributeScopes=$D;exports.attributeTypes=ID;exports.castToFileFolder=BP;exports.changeTabEditor=pI;exports.children=gs;exports.clearAllBreakpoints=uD;exports.clearBreakpoints=sD;exports.clearBreakpointsExcept=iD;exports.closeAllTabs=gv;exports.closeLeftTabs=yv;exports.closeModal=CP;exports.closeOthers=mv;exports.closeRightTabs=vv;exports.closeSavedTabs=uI;exports.closeTab=Zc;exports.confirmTab=fI;exports.create=wg;exports.createModal=Pg;exports.createModelFiles=ic;exports.createNewFile=Gn;exports.createNewFileAndOpen=qP;exports.createNewNode=Jo;exports.createRole=SP;exports.createWithResource=lP;exports.dataclassScopes=FD;exports.deleteDatasource=Ia;exports.deleteFile=uc;exports.deleteFolder=YP;exports.deleteSharedSource=Tv;exports.deserializeModel=gh;exports.duplicateNode=Xo;exports.editComponent=uv;exports.editCraftedComponent=tI;exports.editDataSource=Yc;exports.editDatasource=Xc;exports.editModal=xP;exports.editRole=EP;exports.editSharedSource=wv;exports.editWebformState=mI;exports.editors=Lh;exports.executeMethod=VP;exports.expandFolder=LP;exports.extensions=Nh;exports.fetchAppSettings=kg;exports.fetchCatalog=wn;exports.fetchChanges=Vg;exports.fetchCraftedComponents=dv;exports.fetchFiles=KP;exports.fetchFolderContent=_r;exports.fetchFolderContentWithoutExpanding=Aa;exports.fetchModel=Vc;exports.fetchRoles=vs;exports.fetchRolesChanges=$g;exports.fetchSettings=Hc;exports.fetchSharedCss=Qo;exports.fetchSharedDatasources=Zo;exports.fetchTemplate=QD;exports.fetchTemplates=ZD;exports.findNodeByPath=lt;exports.findOne=Sn;exports.findSession=ot;exports.findSessionByPath=ug;exports.getCachedState=Kn;exports.getCashedPrefrences=hh;exports.getDebuggerTabName=wh;exports.getDebuggerTabPath=Tc;exports.getDefaultContent=Ug;exports.getDefaultName=ND;exports.getDictByName=xg;exports.getEditors=pr;exports.getExtension=jh;exports.getFilePath=qg;exports.getFileType=Gg;exports.getFilenameFromType=Hg;exports.getGraphData=pP;exports.getInheritedResources=Og;exports.getModalTitle=ws;exports.getNodeRelativePath=kh;exports.getPrivilegeById=Br;exports.getPromotions=yP;exports.getResourceFromType=jc;exports.getStore=Ov;exports.indexTypes=MD;exports.initSharedCss=PI;exports.injectContentAtLine=Yg;exports.inspect=zD;exports.isJSON=vh;exports.isRelatedAttr=kD;exports.isRelatedEntitiesAttr=nv;exports.isRelatedEntityAttr=rv;exports.isRenameDatasource=nI;exports.isRolesOutdated=Bc;exports.isValidPrimaryKey=AD;exports.modelSubject=Yh;exports.openAddFileInput=NP;exports.openFile=Pa;exports.openFileAtLine=Gc;exports.openFileAtSelection=zg;exports.openModal=ar;exports.openModel=CD;exports.openRoles=rD;exports.openSettingsTab=hI;exports.openTabUnselected=_v;exports.parents=Ms;exports.populateShallow=dP;exports.primaryKeyAttributes=DD;exports.refactorWebform=mh;exports.refreshFile=kP;exports.reloadTab=cc;exports.relocateNode=Da;exports.remove=iP;exports.removeAllExpressions=pD;exports.removeBreakpointDecoration=aD;exports.removeComponent=cv;exports.removeCraftedComponent=rI;exports.removeDataSource=lI;exports.removeDebuggerSessionsNotIn=Qg;exports.removeExpression=dD;exports.removeFile=sc;exports.removeFileNode=zP;exports.removeFrom=cP;exports.removeModal=Dg;exports.removePermission=gP;exports.removeRole=_P;exports.removeSession=bD;exports.removeSessionByIndex=_D;exports.removeWebformState=yI;exports.rename=fP;exports.renameDataSource=qc;exports.renameDatasource=zn;exports.renameExpression=fD;exports.renameFile=qn;exports.resetResources=vP;exports.rootReducer=Ev;exports.sanitize=Ls;exports.sanitizePermissions=Cg;exports.sanitizePrivileges=Eg;exports.saveAll=JP;exports.saveExpressions=vD;exports.saveModel=ms;exports.savePrefrences=ph;exports.saveRole=wP;exports.saveRoles=nc;exports.saveState=dh;exports.saveTab=Yn;exports.selectActiveLine=PO;exports.selectActiveTab=HO;exports.selectAllDatasourcesByPath=SO;exports.selectAppState=og;exports.selectBreakpoints=CO;exports.selectCSSClassesByPath=bA;exports.selectCallChainVariables=jO;exports.selectCatalog=Oc;exports.selectCatalogMethods=vO;exports.selectCatalogState=hO;exports.selectClassBreakpoints=RO;exports.selectClassOffset=WO;exports.selectClasses=rA;exports.selectClassesFolder=dg;exports.selectComponents=gg;exports.selectComponentsByPath=_O;exports.selectContentByPath=cg;exports.selectCraftedComponent=CA;exports.selectCurrentFrameByThreadId=LO;exports.selectCurrentTab=qO;exports.selectDataclasses=ng;exports.selectDatasource=EO;exports.selectDatasourcesByPath=sg;exports.selectDatasourcesTheme=RA;exports.selectDebuggerChannels=NO;exports.selectDebuggerData=Tn;exports.selectDebuggerMeta=wO;exports.selectDebuggerSessions=Dt;exports.selectDebuggerSessionsCount=TO;exports.selectDebuggers=ZO;exports.selectDraftBreakpoints=xO;exports.selectDraftClassBreakpoints=OO;exports.selectExceptions=UO;exports.selectExplorer=QO;exports.selectExpressions=DO;exports.selectExpressionsVariables=BO;exports.selectFlagsByPath=EA;exports.selectForceLogin=lA;exports.selectGuestPrivilege=iA;exports.selectHasTabs=VO;exports.selectHighlightedLines=AO;exports.selectInspectedCSSClass=SA;exports.selectInspectedDatasource=wA;exports.selectInspector=Ds;exports.selectInspectorStateByType=xA;exports.selectIsLoaded=OA;exports.selectMethods=eA;exports.selectMethodsFolder=fg;exports.selectModals=nA;exports.selectMonacoZoom=mA;exports.selectPanelByPath=$I;exports.selectPartialSessionSettings=dA;exports.selectPreferences=hA;exports.selectPreviewedWebformsPaths=zO;exports.selectPrivileges=sA;exports.selectProjectSettings=pA;exports.selectQodly=vA;exports.selectRecentFiles=GO;exports.selectRemoteDebuggerMode=gA;exports.selectRoles=oA;exports.selectRolesAndPrivileges=aA;exports.selectRolesDate=fA;exports.selectRolesFlags=uA;exports.selectRoot=jr;exports.selectSelectedTab=cA;exports.selectServerSettings=Dc;exports.selectSessionSettings=Pc;exports.selectSharedCSS=_A;exports.selectSharedDatasources=ig;exports.selectSourceByPath=FO;exports.selectSourceByThreadId=MO;exports.selectStackFrames=kO;exports.selectStoppedFromDebugSession=IO;exports.selectStylesByPath=yA;exports.selectTab=bv;exports.selectTabByPath=ra;exports.selectTabByReference=Pt;exports.selectTabExtraByPath=KO;exports.selectTabMaxWeight=YO;exports.selectTabs=ta;exports.selectTemplates=vg;exports.selectTemplatesData=TA;exports.selectThreadIdByPath=$O;exports.selectTouchedTabs=Ac;exports.selectTouchedTabsLength=XO;exports.selectVirtualDataClasses=gO;exports.selectWebForms=tA;exports.selectWebFormsFolder=lg;exports.selectWebformNodes=JO;exports.selectWebformStatesByPath=AA;exports.selectWebformStylesByPath=Ic;exports.selectWebforms=Wa;exports.serializeModel=LD;exports.setActiveLine=cD;exports.setBreakpointsDecoration=oD;exports.setCallChainVariables=ED;exports.setContent=pv;exports.setDataSources=cI;exports.setDatasourceEvents=wI;exports.setDatasourcesTheme=KD;exports.setDebuggerMeta=TD;exports.setExpression=hD;exports.setExpressionVariables=SD;exports.setFolderChildren=jP;exports.setModelFlag=OD;exports.setPanelState=gI;exports.setRolesContent=Wc;exports.setSelectedGroup=VD;exports.setSessions=Xg;exports.setSetting=ac;exports.setSettings=ks;exports.setSettingsAsText=IP;exports.setSourceContent=wD;exports.setTabExtra=sI;exports.setTabFlags=hv;exports.setTabs=aI;exports.setTabsFlags=oI;exports.setTemplateData=fv;exports.setTemplatesData=lv;exports.setWebformsFlag=JD;exports.sort=Sg;exports.stateReducer=Rv;exports.stateSlice=ka;exports.toAPI=Ns;exports.toState=bP;exports.toggleExpandFolder=MP;exports.toggleForceLogin=OP;exports.toggleInspector=YD;exports.togglePermission=mP;exports.togglePrivilegePermission=Rg;exports.toggleTab=RP;exports.tryCloseAllTabs=ZP;exports.tryCloseLeftTabs=eD;exports.tryCloseOtherTabs=XP;exports.tryCloseRightTabs=QP;exports.tryCloseTab=zc;exports.tryEditMethod=WP;exports.tryInjectMethod=Kg;exports.tryRenameDataclass=xD;exports.uniquePush=rr;exports.updateExpressionAt=gD;exports.updatePrivileges=Lg;exports.updateRoles=Ng;exports.updateRolesAndPrivileges=Uc;exports.updateSession=yD;exports.updateSharedCss=AI;exports.updateSharedDatasources=Qc;exports.uploadFile=GP;exports.uploadFileAndGetResponse=HP;exports.useAppDispatch=pO;exports.useAppSelector=kr;exports.useAttribute=UD;exports.useCollections=BD;exports.useDataclass=WD;exports.useDataclasses=jD;exports.useMethod=bO;exports.useMethods=mO;exports.useModelFlags=GD;exports.useModelProperties=HD;exports.wipeDebuggerSessions=Zg;
|
|
128
|
+
Check the top-level render call using <`+J+">.")}return U}}function ia(w,U){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var J=za(U);if(Ya[J])return;Ya[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 Va(w,U){{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,U)}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,U)}}}function Gs(w){{var U=w.type;if(U==null||typeof U=="string")return;var J;if(typeof U=="function")J=U.propTypes;else if(typeof U=="object"&&(U.$$typeof===p||U.$$typeof===_))J=U.propTypes;else return;if(J){var ie=Pe(U);Ws(J,w.props,"prop",ie,w)}else if(U.PropTypes!==void 0&&!cn){cn=!0;var Le=Pe(U);Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Le||"Unknown")}typeof U.getDefaultProps=="function"&&!U.getDefaultProps.isReactClassApproved&&Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function qs(w){{for(var U=Object.keys(w.props),J=0;J<U.length;J++){var ie=U[J];if(ie!=="children"&&ie!=="key"){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 Ka(w,U,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=Hs(Le);ht?Ee+=ht:Ee+=qa();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,U,J,Le,Ne);if(et==null)return et;if(Ce){var zt=U.children;if(zt!==void 0)if(ie)if(Array.isArray(zt)){for(var Ur=0;Ur<zt.length;Ur++)Va(zt[Ur],w);Object.freeze&&Object.freeze(zt)}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 Va(zt,w)}return w===e.Fragment?qs(et):Gs(et),et}}function Ja(w,U,J){return Ka(w,U,J,!0)}function Ys(w,U,J){return Ka(w,U,J,!1)}var zs=Ys,Vs=Ja;e.jsx=zs,e.jsxs=Vs}()}(Lu)),Lu}process.env.NODE_ENV==="production"?fc.exports=MI():fc.exports=LI();var NI=fc.exports;const kI=({children:e,store:n})=>NI.jsx(Zh,{store:n,children:e});exports.CATALOG_REFRESH_DELAY=Ss;exports.DEFAULT_CACHE=wc;exports.EAttributeKind=Bs;exports.EAttributeTypes=rv;exports.EDebuggerErrorReason=ch;exports.EDebuggerErrorType=ss;exports.EDebuggerState=Ir;exports.EDisplayMode=Nc;exports.EPermissionType=Ae;exports.ETooltipBehavior=Mc;exports.EUnsavedPopOverChoice=Lc;exports.ExpressionIndex=uh;exports.FLAGS_INIT_STATE=sv;exports.FLAGS_KEYS=Na;exports.ROOT_WEBFORM_STATE=$c;exports.ReduxProvider=kI;exports.THEME_CLASSES=hg;exports.WT_FLAGS_KEYS=ov;exports.actionsToPrivs=Cg;exports.addBreakpointDecoration=nD;exports.addComponent=uv;exports.addCraftedComponent=eI;exports.addDataSource=iI;exports.addDatasource=Xc;exports.addEmptyNamespace=TI;exports.addExpression=lD;exports.addIn=cP;exports.addNewFile=Ug;exports.addPermission=gP;exports.addSession=mD;exports.addSharedSource=wv;exports.addWebFormStyles=dI;exports.addWebformState=vI;exports.allowed=iP;exports.attributeKinds=PD;exports.attributeScopes=$D;exports.attributeTypes=ID;exports.castToFileFolder=WP;exports.changeTabEditor=pI;exports.children=gs;exports.clearAllBreakpoints=uD;exports.clearBreakpoints=sD;exports.clearBreakpointsExcept=iD;exports.closeAllTabs=vv;exports.closeLeftTabs=bv;exports.closeModal=xP;exports.closeOthers=yv;exports.closeRightTabs=mv;exports.closeSavedTabs=uI;exports.closeTab=Qc;exports.confirmTab=fI;exports.create=Tg;exports.createModal=Dg;exports.createModelFiles=ic;exports.createNewFile=Gn;exports.createNewFileAndOpen=YP;exports.createNewNode=Jo;exports.createRole=wP;exports.createWithResource=fP;exports.dataclassScopes=FD;exports.deleteDatasource=Ia;exports.deleteFile=uc;exports.deleteFolder=zP;exports.deleteSharedSource=Cv;exports.deserializeModel=vh;exports.duplicateNode=Xo;exports.editComponent=cv;exports.editCraftedComponent=tI;exports.editDataSource=zc;exports.editDatasource=Zc;exports.editModal=RP;exports.editRole=SP;exports.editSharedSource=Tv;exports.editWebformState=mI;exports.editors=Nh;exports.executeMethod=VP;exports.expandFolder=NP;exports.extensions=kh;exports.fetchAppSettings=jg;exports.fetchCatalog=wn;exports.fetchChanges=Kg;exports.fetchCraftedComponents=pv;exports.fetchFiles=KP;exports.fetchFolderContent=_r;exports.fetchFolderContentWithoutExpanding=Aa;exports.fetchModel=Kc;exports.fetchRoles=vs;exports.fetchRolesChanges=Mg;exports.fetchSettings=Gc;exports.fetchSharedCss=Qo;exports.fetchSharedDatasources=Zo;exports.fetchTemplate=QD;exports.fetchTemplates=ZD;exports.findNodeByPath=lt;exports.findOne=Sn;exports.findSession=ot;exports.findSessionByPath=cg;exports.getCachedState=Kn;exports.getCashedPrefrences=gh;exports.getDebuggerTabName=Th;exports.getDebuggerTabPath=Cc;exports.getDefaultContent=Hg;exports.getDefaultName=ND;exports.getDictByName=Rg;exports.getEditors=pr;exports.getExtension=Bh;exports.getFilePath=Yg;exports.getFileType=qg;exports.getFilenameFromType=Gg;exports.getGraphData=hP;exports.getInheritedResources=Ag;exports.getModalTitle=ws;exports.getNodeRelativePath=jh;exports.getPrivilegeById=Br;exports.getPromotions=bP;exports.getResourceFromType=Bc;exports.getStore=Av;exports.indexTypes=MD;exports.initSharedCss=PI;exports.injectContentAtLine=zg;exports.inspect=zD;exports.isJSON=mh;exports.isRelatedAttr=kD;exports.isRelatedEntitiesAttr=av;exports.isRelatedEntityAttr=nv;exports.isRenameDatasource=nI;exports.isRolesOutdated=Wc;exports.isValidPrimaryKey=AD;exports.modelSubject=zh;exports.openAddFileInput=kP;exports.openFile=Pa;exports.openFileAtLine=qc;exports.openFileAtSelection=Vg;exports.openModal=ar;exports.openModel=CD;exports.openRoles=rD;exports.openSettingsTab=hI;exports.openTabUnselected=Ev;exports.parents=Ms;exports.populateShallow=pP;exports.primaryKeyAttributes=DD;exports.refactorWebform=yh;exports.refreshFile=jP;exports.reloadTab=lc;exports.relocateNode=Da;exports.remove=uP;exports.removeAllExpressions=pD;exports.removeBreakpointDecoration=aD;exports.removeComponent=lv;exports.removeCraftedComponent=rI;exports.removeDataSource=lI;exports.removeDebuggerSessionsNotIn=ev;exports.removeExpression=dD;exports.removeFile=sc;exports.removeFileNode=cc;exports.removeFrom=lP;exports.removeModal=Ig;exports.removePermission=vP;exports.removeRole=EP;exports.removeSession=bD;exports.removeSessionByIndex=_D;exports.removeWebformState=yI;exports.rename=dP;exports.renameDataSource=Yc;exports.renameDatasource=zn;exports.renameExpression=fD;exports.renameFile=qn;exports.resetResources=mP;exports.rootReducer=Sv;exports.sanitize=Ls;exports.sanitizePermissions=xg;exports.sanitizePrivileges=Sg;exports.saveAll=JP;exports.saveExpressions=vD;exports.saveModel=ms;exports.savePrefrences=hh;exports.saveRole=TP;exports.saveRoles=nc;exports.saveState=ph;exports.saveTab=Yn;exports.selectActiveLine=DO;exports.selectActiveTab=GO;exports.selectAllDatasourcesByPath=wO;exports.selectAppState=sg;exports.selectBreakpoints=xO;exports.selectCSSClassesByPath=_A;exports.selectCallChainVariables=BO;exports.selectCatalog=Ac;exports.selectCatalogMethods=mO;exports.selectCatalogState=gO;exports.selectClassBreakpoints=OO;exports.selectClassOffset=UO;exports.selectClasses=nA;exports.selectClassesFolder=pg;exports.selectComponents=vg;exports.selectComponentsByPath=EO;exports.selectContentByPath=lg;exports.selectCraftedComponent=xA;exports.selectCurrentFrameByThreadId=NO;exports.selectCurrentTab=YO;exports.selectDataclasses=ag;exports.selectDatasource=SO;exports.selectDatasourcesByPath=ig;exports.selectDatasourcesTheme=OA;exports.selectDebuggerChannels=kO;exports.selectDebuggerData=Tn;exports.selectDebuggerMeta=TO;exports.selectDebuggerSessions=Dt;exports.selectDebuggerSessionsCount=CO;exports.selectDebuggers=QO;exports.selectDraftBreakpoints=RO;exports.selectDraftClassBreakpoints=AO;exports.selectExceptions=HO;exports.selectExplorer=eA;exports.selectExpressions=IO;exports.selectExpressionsVariables=WO;exports.selectFlagsByPath=SA;exports.selectForceLogin=fA;exports.selectGuestPrivilege=uA;exports.selectHasTabs=KO;exports.selectHighlightedLines=PO;exports.selectInspectedCSSClass=wA;exports.selectInspectedDatasource=TA;exports.selectInspector=Ds;exports.selectInspectorStateByType=RA;exports.selectIsLoaded=AA;exports.selectMethods=tA;exports.selectMethodsFolder=dg;exports.selectModals=aA;exports.selectMonacoZoom=yA;exports.selectPanelByPath=$I;exports.selectPartialSessionSettings=pA;exports.selectPreferences=gA;exports.selectPreviewedWebformsPaths=VO;exports.selectPrivileges=iA;exports.selectProjectSettings=hA;exports.selectQodly=mA;exports.selectRecentFiles=qO;exports.selectRemoteDebuggerMode=vA;exports.selectRoles=sA;exports.selectRolesAndPrivileges=oA;exports.selectRolesDate=dA;exports.selectRolesFlags=cA;exports.selectRoot=jr;exports.selectSelectedTab=lA;exports.selectServerSettings=Ic;exports.selectSessionSettings=Dc;exports.selectSharedCSS=EA;exports.selectSharedDatasources=ug;exports.selectSourceByPath=$O;exports.selectSourceByThreadId=LO;exports.selectStackFrames=jO;exports.selectStoppedFromDebugSession=FO;exports.selectStylesByPath=bA;exports.selectTab=_v;exports.selectTabByPath=ra;exports.selectTabByReference=Pt;exports.selectTabExtraByPath=JO;exports.selectTabMaxWeight=zO;exports.selectTabs=ta;exports.selectTemplates=mg;exports.selectTemplatesData=CA;exports.selectThreadIdByPath=MO;exports.selectTouchedTabs=Pc;exports.selectTouchedTabsLength=ZO;exports.selectVirtualDataClasses=vO;exports.selectWebForms=rA;exports.selectWebFormsFolder=fg;exports.selectWebformNodes=XO;exports.selectWebformStatesByPath=PA;exports.selectWebformStylesByPath=Fc;exports.selectWebforms=Wa;exports.serializeModel=LD;exports.setActiveLine=cD;exports.setBreakpointsDecoration=oD;exports.setCallChainVariables=ED;exports.setContent=hv;exports.setDataSources=cI;exports.setDatasourceEvents=wI;exports.setDatasourcesTheme=KD;exports.setDebuggerMeta=TD;exports.setExpression=hD;exports.setExpressionVariables=SD;exports.setFolderChildren=BP;exports.setModelFlag=OD;exports.setPanelState=gI;exports.setRolesContent=Uc;exports.setSelectedGroup=VD;exports.setSessions=Zg;exports.setSetting=ac;exports.setSettings=ks;exports.setSettingsAsText=FP;exports.setSourceContent=wD;exports.setTabExtra=sI;exports.setTabFlags=gv;exports.setTabs=aI;exports.setTabsFlags=oI;exports.setTemplateData=dv;exports.setTemplatesData=fv;exports.setWebformsFlag=JD;exports.sort=wg;exports.stateReducer=Ov;exports.stateSlice=ka;exports.toAPI=Ns;exports.toState=_P;exports.toggleExpandFolder=LP;exports.toggleForceLogin=AP;exports.toggleInspector=YD;exports.togglePermission=yP;exports.togglePrivilegePermission=Og;exports.toggleTab=OP;exports.tryCloseAllTabs=ZP;exports.tryCloseLeftTabs=eD;exports.tryCloseOtherTabs=XP;exports.tryCloseRightTabs=QP;exports.tryCloseTab=Vc;exports.tryEditMethod=UP;exports.tryInjectMethod=Jg;exports.tryRenameDataclass=xD;exports.uniquePush=rr;exports.updateExpressionAt=gD;exports.updatePrivileges=Ng;exports.updateRoles=kg;exports.updateRolesAndPrivileges=Hc;exports.updateSession=yD;exports.updateSharedCss=AI;exports.updateSharedDatasources=el;exports.uploadFile=qP;exports.uploadFileAndGetResponse=GP;exports.useAppDispatch=hO;exports.useAppSelector=kr;exports.useAttribute=UD;exports.useCollections=BD;exports.useDataclass=WD;exports.useDataclasses=jD;exports.useMethod=_O;exports.useMethods=yO;exports.useModelFlags=GD;exports.useModelProperties=HD;exports.wipeDebuggerSessions=Qg;
|
|
129
129
|
//# sourceMappingURL=index.cjs.js.map
|