/*! For license information please see vendor.b152dcccae315be90e68.js.LICENSE.txt */ "use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[7],{203:e=>{var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,s){if("function"!=typeof r)throw new TypeError("The listener must be a function");var u=new i(r,o||e,s),a=n?n+t:t;return e._events[a]?e._events[a].fn?e._events[a]=[e._events[a],u]:e._events[a].push(u):(e._events[a]=u,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function u(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),u.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},u.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,s=new Array(o);i{var r=n(40),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,s=r.useEffect,u=r.useLayoutEffect,a=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return u((function(){i.value=n,i.getSnapshot=t,c(i)&&l({inst:i})}),[e,n,t]),s((function(){return c(i)&&l({inst:i}),e((function(){c(i)&&l({inst:i})}))}),[e]),a(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},244:(e,t,n)=>{var r=n(40),i=n(245),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useSyncExternalStore,u=r.useRef,a=r.useEffect,c=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var h=u(null);if(null===h.current){var f={hasValue:!1,value:null};h.current=f}else f=h.current;h=c((function(){function e(e){if(!a){if(a=!0,s=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return u=t}return u=e}if(t=u,o(s,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(s=e,u=n)}var s,u,a=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,i]);var v=s(e,h[0],h[1]);return a((function(){f.hasValue=!0,f.value=v}),[v]),l(v),v}},245:(e,t,n)=>{e.exports=n(246)},202:(e,t,n)=>{e.exports=n(244)},243:(e,t,n)=>{function r(e){for(var t=1;ti});var i=function e(t,n){function i(e,i,o){if("undefined"!=typeof document){"number"==typeof(o=r({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var u in o)o[u]&&(s+="; "+u,!0!==o[u]&&(s+="="+o[u].split(";")[0]));return document.cookie=e+"="+t.write(i,e)+s}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i{n.d(t,{a:()=>c});var r=n(203);class i extends Error{constructor(e){super(e),this.name="TimeoutError"}}class o extends Error{constructor(e){super(),this.name="AbortError",this.message=e}}const s=e=>void 0===globalThis.DOMException?new o(e):new DOMException(e),u=e=>{const t=void 0===e.reason?s("This operation was aborted."):e.reason;return t instanceof Error?t:s(t)};class a{#e=[];enqueue(e,t){const n={priority:(t={priority:0,...t}).priority,id:t.id,run:e};if(0===this.size||this.#e[this.size-1].priority>=t.priority)return void this.#e.push(n);const r=function(e,t){let n=0,r=e.length;for(;r>0;){const o=Math.trunc(r/2);let s=n+o;i=e[s],t.priority-i.priority<=0?(n=++s,r-=o+1):r=o}var i;return n}(this.#e,n);this.#e.splice(r,0,n)}setPriority(e,t){const n=this.#e.findIndex((t=>t.id===e));if(-1===n)throw new ReferenceError(`No promise function with the id "${e}" exists in the queue.`);const[r]=this.#e.splice(n,1);this.enqueue(r.run,{priority:t,id:e})}dequeue(){const e=this.#e.shift();return e?.run}filter(e){return this.#e.filter((t=>t.priority===e.priority)).map((e=>e.run))}get size(){return this.#e.length}}class c extends r.EventEmitter{#t;#n;#r=0;#i;#o;#s=0;#u;#a;#e;#c;#l=0;#h;#f;#v;#d=1n;timeout;constructor(e){if(super(),!("number"==typeof(e={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:a,...e}).intervalCap&&e.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${e.intervalCap?.toString()??""}\` (${typeof e.intervalCap})`);if(void 0===e.interval||!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${e.interval?.toString()??""}\` (${typeof e.interval})`);this.#t=e.carryoverConcurrencyCount,this.#n=e.intervalCap===Number.POSITIVE_INFINITY||0===e.interval,this.#i=e.intervalCap,this.#o=e.interval,this.#e=new e.queueClass,this.#c=e.queueClass,this.concurrency=e.concurrency,this.timeout=e.timeout,this.#v=!0===e.throwOnTimeout,this.#f=!1===e.autoStart}get#p(){return this.#n||this.#r{this.#b()}),t)),!0;this.#r=this.#t?this.#l:0}return!1}#g(){if(0===this.#e.size)return this.#u&&clearInterval(this.#u),this.#u=void 0,this.emit("empty"),0===this.#l&&this.emit("idle"),!1;if(!this.#f){const e=!this.#E;if(this.#p&&this.#y){const t=this.#e.dequeue();return!!t&&(this.emit("active"),t(),e&&this.#I(),!0)}}return!1}#I(){this.#n||void 0!==this.#u||(this.#u=setInterval((()=>{this.#w()}),this.#o),this.#s=Date.now()+this.#o)}#w(){0===this.#r&&0===this.#l&&this.#u&&(clearInterval(this.#u),this.#u=void 0),this.#r=this.#t?this.#l:0,this.#C()}#C(){for(;this.#g(););}get concurrency(){return this.#h}set concurrency(e){if(!("number"==typeof e&&e>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e}\` (${typeof e})`);this.#h=e,this.#C()}async#S(e){return new Promise(((t,n)=>{e.addEventListener("abort",(()=>{n(e.reason)}),{once:!0})}))}setPriority(e,t){this.#e.setPriority(e,t)}async add(e,t={}){return t.id??=(this.#d++).toString(),t={timeout:this.timeout,throwOnTimeout:this.#v,...t},new Promise(((n,r)=>{this.#e.enqueue((async()=>{this.#l++,this.#r++;try{t.signal?.throwIfAborted();let r=e({signal:t.signal});t.timeout&&(r=function(e,t){const{milliseconds:n,fallback:r,message:o,customTimers:s={setTimeout,clearTimeout}}=t;let a,c;const l=new Promise(((l,h)=>{if("number"!=typeof n||1!==Math.sign(n))throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(t.signal){const{signal:e}=t;e.aborted&&h(u(e)),c=()=>{h(u(e))},e.addEventListener("abort",c,{once:!0})}if(n===Number.POSITIVE_INFINITY)return void e.then(l,h);const f=new i;a=s.setTimeout.call(void 0,(()=>{if(r)try{l(r())}catch(e){h(e)}else"function"==typeof e.cancel&&e.cancel(),!1===o?l():o instanceof Error?h(o):(f.message=o??`Promise timed out after ${n} milliseconds`,h(f))}),n),(async()=>{try{l(await e)}catch(e){h(e)}})()})).finally((()=>{l.clear(),c&&t.signal&&t.signal.removeEventListener("abort",c)}));return l.clear=()=>{s.clearTimeout.call(void 0,a),a=void 0},l}(Promise.resolve(r),{milliseconds:t.timeout})),t.signal&&(r=Promise.race([r,this.#S(t.signal)]));const o=await r;n(o),this.emit("completed",o)}catch(e){if(e instanceof i&&!t.throwOnTimeout)return void n();r(e),this.emit("error",e)}finally{this.#m()}}),t),this.emit("add"),this.#g()}))}async addAll(e,t){return Promise.all(e.map((async e=>this.add(e,t))))}start(){return this.#f?(this.#f=!1,this.#C(),this):this}pause(){this.#f=!0}clear(){this.#e=new this.#c}async onEmpty(){0!==this.#e.size&&await this.#x("empty")}async onSizeLessThan(e){this.#e.sizethis.#e.size{const r=()=>{t&&!t()||(this.off(e,r),n())};this.on(e,r)}))}get size(){return this.#e.size}sizeBy(e){return this.#e.filter(e).length}get pending(){return this.#l}get isPaused(){return this.#f}}},333:(e,t,n)=>{n.d(t,{a:()=>h});const r=e=>{let t;const n=new Set,r=(e,r)=>{const i="function"==typeof e?e(t):e;if(!Object.is(i,t)){const e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach((n=>n(t,e)))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>s,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},s=t=e(r,i,o);return o};var i=n(40),o=n(202);const{useDebugValue:s}=i.default,{useSyncExternalStoreWithSelector:u}=o;let a=!1;const c=e=>e,l=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(e=>e?r(e):r)(e):e,n=(e,n)=>function(e,t=c,n){n&&!a&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),a=!0);const r=u(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return s(r),r}(t,e,n);return Object.assign(n,t),n},h=e=>e?l(e):l},334:(e,t,n)=>{function r(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;rr})},335:(e,t,n)=>{n.d(t,{a:()=>a});var r=n(40),i=n(202);const{useDebugValue:o}=r.default,{useSyncExternalStoreWithSelector:s}=i,u=e=>e;function a(e,t=u,n){const r=s(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return o(r),r}}}]);