/*! For license information please see main-4c3bcec0.30896c79c55c2c047e38.js.LICENSE.txt */ "use strict";(self.webpackChunkstudio_client=self.webpackChunkstudio_client||[]).push([[2728],{5193(e,t,n){n.d(t,{A:()=>d});var r=n(2018),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;nc,DG:()=>r,He:()=>u});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;tv,aE:()=>_,fv:()=>h});var r=n(5890),a=n(6185),o=n(9889),i=function(e){var t="";return e.reduce(function(e,n){var r,a,o,i,u=null!=(a=null===(r=n.parser)||void 0===r?void 0:r.urlParams.reduce(function(e,t){return e[t]="url",e},{}))?a:{},c=null!=(i=null===(o=n.parser)||void 0===o?void 0:o.queryParams.reduce(function(e,t){return e[t]="query",e},u))?i:{};return void 0!==n.name&&(e[t=t?t+"."+n.name:n.name]=c),e},{})},u=function e(t,n,r,a,i){void 0===a&&(a={});for(var u=a.queryParamsMode,c=void 0===u?"default":u,s=a.strictTrailingSlash,l=void 0!==s&&s,f=a.strongMatching,d=void 0===f||f,p=a.caseSensitive,h=void 0!==p&&p,v=1===t.length&&""===t[0].name,m=function(t){var u,s=null,f=void 0,p=n;if("/"===i&&"/"===t.path&&(p="/"+n),t.children.length||(s=t.parser.test(p,{caseSensitive:h,strictTrailingSlash:l,queryParams:a.queryParams,urlParamsEncoding:a.urlParamsEncoding})),s||(s=t.parser.partialTest(p,{delimited:d,caseSensitive:h,queryParams:a.queryParams,urlParamsEncoding:a.urlParamsEncoding})),s){var m=t.parser.build(s,{ignoreSearch:!0,urlParamsEncoding:a.urlParamsEncoding});l||t.children.length||(m=m.replace(/\/$/,"")),f=0===p.toLowerCase().indexOf(m.toLowerCase())?p.slice(m.length):p,l||t.children.length||(f=f.replace(/^\/\?/,"?"));var g=(0,o.cJ)((u=p.replace(m,""),u.split("?")[1]||""),t.parser.queryParams,a.queryParams).querystring;if(f=function(e){return e.split("?")[0]}(f)+(g?"?"+g:""),l||v||"/"!==f||/\/$/.test(m)||(f=""),r.segments.push(t),Object.keys(s).forEach(function(e){return r.params[e]=s[e]}),!v&&!f.length)return{value:r};if(!v&&"strict"!==c&&0===f.indexOf("?")){var y=(0,o.qg)(f.slice(1),a.queryParams);return Object.keys(y).forEach(function(e){return r.params[e]=y[e]}),{value:r}}var T=t.getNonAbsoluteChildren();return T.length?{value:e(T,f,r,a,m)}:{value:null}}},g=0,y=t;g/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.w(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.w(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((0,r.Cl)((0,r.Cl)({},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>>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,g="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,T="undefined"!=typeof setImmediate?setImmediate:null;function S(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 E(e){if(m=!1,S(e),!v)if(null!==r(s))v=!0,j(w);else{var t=r(l);null!==t&&x(E,t.startTime-e)}}function w(e,n){v=!1,m&&(m=!1,y(R),R=-1),h=!0;var o=p;try{for(S(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),S(n)}else a(s);d=r(s)}if(null!==d)var c=!0;else{var f=r(l);null!==f&&x(E,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?(y(R),R=-1):m=!0,x(E,o-i))):(e.sortIndex=u,n(s,e),v||h||(v=!0,j(w))),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}}}},1896(e,t,n){e.exports=n(4733)},3845(e,t,n){n.d(t,{U1:()=>E,Z0:()=>P});var r=n(7933);function a(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 o=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),i=()=>Math.random().toString(36).substring(7).split("").join("."),u={INIT:`@@redux/INIT${i()}`,REPLACE:`@@redux/REPLACE${i()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i()}`};function c(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 s(e,t,n){if("function"!=typeof e)throw new Error(a(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(a(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(a(1));return n(s)(e,t)}let r=e,i=t,l=new Map,f=l,d=0,p=!1;function h(){f===l&&(f=new Map,l.forEach((e,t)=>{f.set(t,e)}))}function v(){if(p)throw new Error(a(3));return i}function m(e){if("function"!=typeof e)throw new Error(a(4));if(p)throw new Error(a(5));let t=!0;h();const n=d++;return f.set(n,e),function(){if(t){if(p)throw new Error(a(6));t=!1,h(),f.delete(n),l=null}}}function g(e){if(!c(e))throw new Error(a(7));if(void 0===e.type)throw new Error(a(8));if("string"!=typeof e.type)throw new Error(a(17));if(p)throw new Error(a(9));try{p=!0,i=r(i,e)}finally{p=!1}return(l=f).forEach(e=>{e()}),e}g({type:u.INIT});return{dispatch:g,subscribe:m,getState:v,replaceReducer:function(e){if("function"!=typeof e)throw new Error(a(10));r=e,g({type:u.REPLACE})},[o]:function(){const e=m;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(a(11));function n(){const e=t;e.next&&e.next(v())}n();return{unsubscribe:e(n)}},[o](){return this}}}}}function l(e){const t=Object.keys(e),n={};for(let r=0;r{const n=e[t];if(void 0===n(void 0,{type:u.INIT}))throw new Error(a(12));if(void 0===n(void 0,{type:u.PROBE_UNKNOWN_ACTION()}))throw new Error(a(13))})}(n)}catch(e){o=e}return function(e={},t){if(o)throw o;let i=!1;const u={};for(let o=0;oe:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}var d=n(7150),p="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?f:f.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function h(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(C(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 c(e)&&"type"in e&&"string"==typeof e.type}(t)&&t.type===e,n}var v=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 m(e){return(0,r.a6)(e)?(0,r.jM)(e,()=>{}):e}function g(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var y="RTK_autoBatch",T=e=>t=>{setTimeout(t,e)},S=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new v(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?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:T(10):"callback"===e.type?e.queueNotification:T(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?.[y],o=!a,o&&(i||(i=!0,c(s))),r.dispatch(e)}finally{a=!0}}})})("object"==typeof n?n:void 0)),r};function E(e){const t=function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:a=!0}=e??{};let o=new v;return t&&("boolean"==typeof t?o.push(d.P):o.push((0,d.Y)(t.extraArgument))),o},{reducer:n,middleware:r,devTools:o=!0,duplicateMiddlewareCheck:i=!0,preloadedState:u,enhancers:h}=e||{};let m,g;if("function"==typeof n)m=n;else{if(!c(n))throw new Error(C(1));m=l(n)}g="function"==typeof r?r(t):t();let y=f;o&&(y=p({trace:!1,..."object"==typeof o&&o}));const T=function(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(a(15))};const u={getState:o.getState,dispatch:(e,...t)=>i(e,...t)},c=e.map(e=>e(u));return i=f(...c)(o.dispatch),{...o,dispatch:i}}}(...g),E=S(T);return s(m,u,y(..."function"==typeof h?h(E):E()))}function w(e){const t={},n=[];let r;const a={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(C(28));if(r in t)throw new Error(C(29));return t[r]=n,a},addAsyncThunk:(e,r)=>(r.pending&&(t[e.pending.type]=r.pending),r.rejected&&(t[e.rejected.type]=r.rejected),r.fulfilled&&(t[e.fulfilled.type]=r.fulfilled),r.settled&&n.push({matcher:e.settled,reducer:r.settled}),a),addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),a),addDefaultCase:e=>(r=e,a)};return e(a),[t,n,r]}var b=Symbol.for("rtk-slice-createasyncthunk");function O(e,t){return`${e}/${t}`}function N({creators:e}={}){const t=e?.asyncThunk?.[b];return function(e){const{name:n,reducerPath:a=n}=e;if(!n)throw new Error(C(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(C(12));if(n in u.sliceCaseReducersByType)throw new Error(C(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?w(e.extraReducers):[e.extraReducers],o={...t,...u.sliceCaseReducersByType};return function(e,t){let n,[a,o,i]=w(t);if("function"==typeof e)n=()=>m(e());else{const t=m(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.Qx)(e)){const r=n(e,t);return void 0===r?e:r}if((0,r.a6)(e))return(0,r.jM)(e,e=>n(e,t));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}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:O(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(C(17));o=r.reducer,i=r.prepare}else o=r;a.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,i?h(e,i):h(e))}(i,a,c):function({type:e,reducerName:t},n,r,a){if(!a)throw new Error(C(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||_,pending:u||_,rejected:c||_,settled:s||_})}(i,a,c,t)});const l=e=>e,f=new Map,d=new WeakMap;let p;function v(e,t){return p||(p=s()),p(e,t)}function y(){return p||(p=s()),p.getInitialState()}function T(t,n=!1){function r(e){let a=e[t];return void 0===a&&n&&(a=g(d,r,y)),a}function a(t=l){const r=g(f,n,()=>new WeakMap);return g(r,t,()=>{const r={};for(const[a,o]of Object.entries(e.selectors??{}))r[a]=R(o,t,()=>g(d,t,y),n);return r})}return{reducerPath:t,getSelectors:a,get selectors(){return a(r)},selectSlice:r}}const S={name:n,reducer:v,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:y,...T(a),injectInto(e,{reducerPath:t,...n}={}){const r=t??a;return e.inject({reducerPath:r,reducer:v},n),{...S,...T(r,!0)}}};return S}}function R(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 P=N();function _(){}var{assign:A}=Object;Symbol.for("rtk-state-proxy-original");function C(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. `}}}]);