/*! For license information please see main-27545368.41a4da8c92a3455d324c.js.LICENSE.txt */ "use strict";(self.webpackChunkstudio_client=self.webpackChunkstudio_client||[]).push([[791],{9626:(e,t,n)=>{n.d(t,{Z:()=>d});var r=n(4549),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{n.d(t,{ZP:()=>c,lx:()=>u,w:()=>r});var r=function(e){return e.split(".").reduce((function(e,t){return e.concat(e.length?e[e.length-1]+"."+t:t)}),[])},a=function(e){return e&&e.meta&&e.meta.params},o=function(e,t){return a(t)&&null!=t.meta.params[e]?Object.keys(t.meta.params[e]).reduce((function(e,n){return e[n]=t.params[n],e}),{}):{}};function i(e,t){var n,i=e.meta&&e.meta&&e.meta.options||{},u=t?r(t.name):[],c=r(e.name),s=Math.min(u.length,c.length);n=!t||i.reload?0:a(t)||a(e)?function(){var n,r=function(){var r=u[n],a=c[n];if(r!==a)return{value:n};var i=o(r,e),s=o(a,t);return Object.keys(i).length!==Object.keys(s).length?{value:n}:0===Object.keys(i).length?"continue":Object.keys(i).some((function(e){return s[e]!==i[e]}))?{value:n}:void 0};for(n=0;n0?u[n-1]:"",toDeactivate:l,toActivate:f}}function u(e){return function(t,n){var r=i(t,n),a=r.intersection,o=r.toActivate,u=function(){for(var e=0,t=0,n=arguments.length;t{n.d(t,{_G:()=>v,p7:()=>_,Zk:()=>h});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n/g,"").split("?")[0].replace(/(.+)\/$/,"$1"),l=n.path.replace(/<.*?>/g,"").split("?")[0].replace(/(.+)\/$/,"$1");if("/"===s)return 1;if("/"===l)return-1;if(null===(r=t.parser)||void 0===r?void 0:r.hasSpatParam)return 1;if(null===(a=n.parser)||void 0===a?void 0:a.hasSpatParam)return-1;var f=(s.match(/\//g)||[]).length,d=(l.match(/\//g)||[]).length;if(fd)return-1;var p=null!=(i=null===(o=t.parser)||void 0===o?void 0:o.urlParams.length)?i:0,h=null!=(c=null===(u=n.parser)||void 0===u?void 0:u.urlParams.length)?c:0;if(ph)return 1;var v=(s.split("/").slice(-1)[0]||"").length,m=(l.split("/").slice(-1)[0]||"").length;return vm?-1:e.indexOf(t)-e.indexOf(n)}},s=function(){function e(e,t,n,r){return void 0===e&&(e=""),void 0===t&&(t=""),void 0===n&&(n=[]),void 0===r&&(r={}),this.name=e,this.absolute=/^~/.test(t),this.path=this.absolute?t.slice(1):t,this.parser=this.path?new a.y(this.path):null,this.children=[],this.parent=r.parent,this.checkParents(),this.add(n,r.onAdd,!r.finalSort&&!1!==r.sort),r.finalSort&&this.sortDescendants(),this}return e.prototype.getParentSegments=function(e){return void 0===e&&(e=[]),this.parent&&this.parent.parser?this.parent.getParentSegments(e.concat(this.parent)):e.reverse()},e.prototype.setParent=function(e){this.parent=e,this.checkParents()},e.prototype.setPath=function(e){void 0===e&&(e=""),this.path=e,this.parser=e?new a.y(e):null},e.prototype.add=function(t,n,a){var o=this;if(void 0===a&&(a=!0),null==t)return this;if(t instanceof Array)return t.forEach((function(e){return o.add(e,n,a)})),this;if(!(t instanceof e||t instanceof Object))throw new Error("RouteNode.add() expects routes to be an Object or an instance of RouteNode.");if(t instanceof e)t.setParent(this),this.addRouteNode(t,a);else{if(!t.name||!t.path)throw new Error("RouteNode.add() expects routes to have a name and a path defined.");var i=new e(t.name,t.path,t.children,{finalSort:!1,onAdd:n,parent:this,sort:a}),u=i.getParentSegments([i]).map((function(e){return e.name})).join(".");n&&n(r(r({},t),{name:u})),this.addRouteNode(i,a)}return this},e.prototype.addNode=function(t,n){return this.add(new e(t,n)),this},e.prototype.getPath=function(e){var t,n=this.getSegmentsByName(e);return n?(t=n)?t.map((function(e){return e.path})).join(""):null:null},e.prototype.getNonAbsoluteChildren=function(){return this.children.filter((function(e){return!e.absolute}))},e.prototype.sortChildren=function(){var e,t;this.children.length&&(e=this.children,t=e.slice(0),e.sort(c(t)))},e.prototype.sortDescendants=function(){this.sortChildren(),this.children.forEach((function(e){return e.sortDescendants()}))},e.prototype.buildPath=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var r=this.getSegmentsByName(e);if(!r)throw new Error("[route-node][buildPath] '{routeName}' is not defined");return function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});for(var r=n.queryParamsMode,a=void 0===r?"default":r,i=n.trailingSlashMode,u=void 0===i?"default":i,c=[],s=[],l=0,f=e;l{function n(e,t){var n=e.length;e.push(t);e:for(;0>>1,a=e[r];if(!(0>>1;ro(c,n))so(l,c)?(e[r]=l,e[s]=n,r=s):(e[r]=c,e[u]=n,r=u);else{if(!(so(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var u=Date,c=u.now();t.unstable_now=function(){return u.now()-c}}var s=[],l=[],f=1,d=null,p=3,h=!1,v=!1,m=!1,y="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function E(e){for(var t=r(l);null!==t;){if(null===t.callback)a(l);else{if(!(t.startTime<=e))break;a(l),t.sortIndex=t.expirationTime,n(s,t)}t=r(l)}}function T(e){if(m=!1,E(e),!v)if(null!==r(s))v=!0,j(S);else{var t=r(l);null!==t&&x(T,t.startTime-e)}}function S(e,n){v=!1,m&&(m=!1,g(R),R=-1),h=!0;var o=p;try{for(E(n),d=r(s);null!==d&&(!(d.expirationTime>n)||e&&!A());){var i=d.callback;if("function"==typeof i){d.callback=null,p=d.priorityLevel;var u=i(d.expirationTime<=n);n=t.unstable_now(),"function"==typeof u?d.callback=u:d===r(s)&&a(s),E(n)}else a(s);d=r(s)}if(null!==d)var c=!0;else{var f=r(l);null!==f&&x(T,f.startTime-n),c=!1}return c}finally{d=null,p=o,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var b,O=!1,N=null,R=-1,P=5,_=-1;function A(){return!(t.unstable_now()-_e||125i?(e.sortIndex=o,n(l,e),null===r(s)&&e===r(l)&&(m?(g(R),R=-1):m=!0,x(T,o-i))):(e.sortIndex=u,n(s,e),v||h||(v=!0,j(S))),e},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},3840:(e,t,n)=>{e.exports=n(53)},4482:(e,t,n)=>{n.d(t,{xC:()=>L,oM:()=>W});var r=n(3513);function a(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}var o=e=>Array.isArray(e)?e:[e];function i(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const n=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}Symbol(),Object.getPrototypeOf({});var u="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}},c=0,s=1;function l(){return{s:c,v:void 0,o:null,p:null}}function f(e,t={}){let n=l();const{resultEqualityCheck:r}=t;let a,o=0;function i(){let t=n;const{length:i}=arguments;for(let e=0,n=i;e{n=l(),i.resetResultsCount()},i.resultsCount=()=>o,i.resetResultsCount=()=>{o=0},i}function d(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,u=0,c={},s=e.pop();"object"==typeof s&&(c=s,s=e.pop()),a(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);const l={...n,...c},{memoize:d,memoizeOptions:p=[],argsMemoize:h=f,argsMemoizeOptions:v=[],devModeChecks:m={}}=l,y=o(p),g=o(v),w=i(e),E=d((function(){return r++,s.apply(null,arguments)}),...y);const T=h((function(){u++;const e=function(e,t){const n=[],{length:r}=e;for(let a=0;au,resetDependencyRecomputations:()=>{u=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:d,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var p=d(f),h=Object.assign(((e,t=p)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>h});function v(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 m=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),y=()=>Math.random().toString(36).substring(7).split("").join("."),g={INIT:`@@redux/INIT${y()}`,REPLACE:`@@redux/REPLACE${y()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${y()}`};function w(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function E(e,t,n){if("function"!=typeof e)throw new Error(v(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(v(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(v(1));return n(E)(e,t)}let r=e,a=t,o=new Map,i=o,u=0,c=!1;function s(){i===o&&(i=new Map,o.forEach(((e,t)=>{i.set(t,e)})))}function l(){if(c)throw new Error(v(3));return a}function f(e){if("function"!=typeof e)throw new Error(v(4));if(c)throw new Error(v(5));let t=!0;s();const n=u++;return i.set(n,e),function(){if(t){if(c)throw new Error(v(6));t=!1,s(),i.delete(n),o=null}}}function d(e){if(!w(e))throw new Error(v(7));if(void 0===e.type)throw new Error(v(8));if("string"!=typeof e.type)throw new Error(v(17));if(c)throw new Error(v(9));try{c=!0,a=r(a,e)}finally{c=!1}return(o=i).forEach((e=>{e()})),e}d({type:g.INIT});return{dispatch:d,subscribe:f,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(v(10));r=e,d({type:g.REPLACE})},[m]:function(){const e=f;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(v(11));function n(){const e=t;e.next&&e.next(l())}n();return{unsubscribe:e(n)}},[m](){return this}}}}}function T(e){const t=Object.keys(e),n={};for(let r=0;r{const n=e[t];if(void 0===n(void 0,{type:g.INIT}))throw new Error(v(12));if(void 0===n(void 0,{type:g.PROBE_UNKNOWN_ACTION()}))throw new Error(v(13))}))}(n)}catch(e){a=e}return function(e={},t){if(a)throw a;let o=!1;const i={};for(let a=0;ae:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function b(e){return({dispatch:t,getState:n})=>r=>a=>"function"==typeof a?a(t,n,e):r(a)}var O=b(),N=b,R=(((...e)=>{const t=d(...e),n=Object.assign(((...e)=>{const n=t(...e),a=(e,...t)=>n((0,r.mv)(e)?(0,r.Vk)(e):e,...t);return Object.assign(a,n),a}),{withTypes:()=>n})})(f),"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?S:S.apply(null,arguments)});"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function P(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(J(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>function(e){return w(e)&&"type"in e&&"string"==typeof e.type}(t)&&t.type===e,n}var _=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function A(e){return(0,r.o$)(e)?(0,r.Uy)(e,(()=>{})):e}function C(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(J(10));const r=n.insert(t,e);return e.set(t,r),r}var k=()=>function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:a=!0}=e??{};let o=new _;return t&&("boolean"==typeof t?o.push(O):o.push(N(t.extraArgument))),o},I="RTK_autoBatch",j=e=>t=>{setTimeout(t,e)},x="undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:j(10),D=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new _(e);return n&&r.push(((e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let a=!0,o=!1,i=!1;const u=new Set,c="tick"===e.type?queueMicrotask:"raf"===e.type?x:"callback"===e.type?e.queueNotification:j(e.timeout),s=()=>{i=!1,o&&(o=!1,u.forEach((e=>e())))};return Object.assign({},r,{subscribe(e){const t=r.subscribe((()=>a&&e()));return u.add(e),()=>{t(),u.delete(e)}},dispatch(e){try{return a=!e?.meta?.[I],o=!a,o&&(i||(i=!0,c(s))),r.dispatch(e)}finally{a=!0}}})})("object"==typeof n?n:void 0)),r},M=!0;function L(e){const t=k(),{reducer:n,middleware:r,devTools:a=!0,preloadedState:o,enhancers:i}=e||{};let u,c;if("function"==typeof n)u=n;else{if(!w(n))throw new Error(J(1));u=T(n)}if(!M&&r&&"function"!=typeof r)throw new Error(J(2));if("function"==typeof r){if(c=r(t),!M&&!Array.isArray(c))throw new Error(J(3))}else c=t();if(!M&&c.some((e=>"function"!=typeof e)))throw new Error(J(4));let s=S;a&&(s=R({trace:!M,..."object"==typeof a&&a}));const l=function(...e){return t=>(n,r)=>{const a=t(n,r);let o=()=>{throw new Error(v(15))};const i={getState:a.getState,dispatch:(e,...t)=>o(e,...t)},u=e.map((e=>e(i)));return o=S(...u)(a.dispatch),{...a,dispatch:o}}}(...c),f=D(l);if(!M&&i&&"function"!=typeof i)throw new Error(J(5));let d="function"==typeof i?i(f):f();if(!M&&!Array.isArray(d))throw new Error(J(6));if(!M&&d.some((e=>"function"!=typeof e)))throw new Error(J(7));M||!c.length||d.includes(l)||console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");return E(u,o,s(...d))}function U(e){const t={},n=[];let r;const a={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(J(28));if(r in t)throw new Error(J(29));return t[r]=n,a},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),a),addDefaultCase:e=>(r=e,a)};return e(a),[t,n,r]}var $=(e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t};var q=Symbol.for("rtk-slice-createasyncthunk");function F(e,t){return`${e}/${t}`}function B({creators:e}={}){const t=e?.asyncThunk?.[q];return function(e){const{name:n,reducerPath:a=n}=e;if(!n)throw new Error(J(11));const o=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},i=Object.keys(o),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(J(12));if(n in u.sliceCaseReducersByType)throw new Error(J(13));return u.sliceCaseReducersByType[n]=t,c},addMatcher:(e,t)=>(u.sliceMatchers.push({matcher:e,reducer:t}),c),exposeAction:(e,t)=>(u.actionCreators[e]=t,c),exposeCaseReducer:(e,t)=>(u.sliceCaseReducersByName[e]=t,c)};function s(){const[t={},n=[],a]="function"==typeof e.extraReducers?U(e.extraReducers):[e.extraReducers],o={...t,...u.sliceCaseReducersByType};return function(e,t){let n,[a,o,i]=U(t);if("function"==typeof e)n=()=>A(e());else{const t=A(e);n=()=>t}function u(e=n(),t){let u=[a[t.type],...o.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===u.filter((e=>!!e)).length&&(u=[i]),u.reduce(((e,n)=>{if(n){if((0,r.mv)(e)){const r=n(e,t);return void 0===r?e:r}if((0,r.o$)(e))return(0,r.Uy)(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(J(9))}return r}}return e}),e)}return u.getInitialState=n,u}(e.initialState,(e=>{for(let t in o)e.addCase(t,o[t]);for(let t of u.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);a&&e.addDefaultCase(a)}))}i.forEach((r=>{const a=o[r],i={reducerName:r,type:F(n,r),createNotation:"function"==typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(a)?function({type:e,reducerName:t,createNotation:n},r,a){let o,i;if("reducer"in r){if(n&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(r))throw new Error(J(17));o=r.reducer,i=r.prepare}else o=r;a.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,i?P(e,i):P(e))}(i,a,c):function({type:e,reducerName:t},n,r,a){if(!a)throw new Error(J(18));const{payloadCreator:o,fulfilled:i,pending:u,rejected:c,settled:s,options:l}=n,f=a(e,o,l);r.exposeAction(t,f),i&&r.addCase(f.fulfilled,i);u&&r.addCase(f.pending,u);c&&r.addCase(f.rejected,c);s&&r.addMatcher(f.settled,s);r.exposeCaseReducer(t,{fulfilled:i||K,pending:u||K,rejected:c||K,settled:s||K})}(i,a,c,t)}));const l=e=>e,f=new Map;let d;function p(e,t){return d||(d=s()),d(e,t)}function h(){return d||(d=s()),d.getInitialState()}function v(t,n=!1){function r(e){let r=e[t];return void 0===r&&n&&(r=h()),r}function a(t=l){const r=C(f,n,{insert:()=>new WeakMap});return C(r,t,{insert:()=>{const r={};for(const[a,o]of Object.entries(e.selectors??{}))r[a]=H(o,t,h,n);return r}})}return{reducerPath:t,getSelectors:a,get selectors(){return a(r)},selectSlice:r}}const m={name:n,reducer:p,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:h,...v(a),injectInto(e,{reducerPath:t,...n}={}){const r=t??a;return e.inject({reducerPath:r,reducer:p},n),{...m,...v(r,!0)}}};return m}}function H(e,t,n,r){function a(a,...o){let i=t(a);return void 0===i&&r&&(i=n()),e(i,...o)}return a.unwrapped=e,a}var W=B();function K(){}var V=(e,t)=>{if("function"!=typeof e)throw new Error(J(32))};var{assign:z}=Object,X="listenerMiddleware",Z=e=>{let{type:t,actionCreator:n,matcher:r,predicate:a,effect:o}=e;if(t)a=P(t).match;else if(n)t=n.type,a=n.match;else if(r)a=r;else if(!a)throw new Error(J(21));return V(o),{predicate:a,type:t,effect:o}},Y=Object.assign((e=>{const{type:t,predicate:n,effect:r}=Z(e);return{id:$(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(J(22))}}}),{withTypes:()=>Y}),G=Object.assign(P(`${X}/add`),{withTypes:()=>G}),Q=(P(`${X}/removeAll`),Object.assign(P(`${X}/remove`),{withTypes:()=>Q}));Symbol.for("rtk-state-proxy-original");function J(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}}}]);