/*! For license information please see vendor.dcc710e30e36b5c146d5.js.LICENSE.txt */ "use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[7],{139(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 s(e,t,r,s,o){if("function"!=typeof r)throw new TypeError("The listener must be a function");var u=new i(r,s||e,o),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 o(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,s=r.length,o=new Array(s);io});var r=n(139),i=n(458),s=n(459);class o extends r.EventEmitter{#e;#t;#n=0;#r;#i;#s=0;#o;#u;#a;#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:s.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.#e=e.carryoverConcurrencyCount,this.#t=e.intervalCap===Number.POSITIVE_INFINITY||0===e.interval,this.#r=e.intervalCap,this.#i=e.interval,this.#a=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.#t||this.#n{this.#b()}),t)),!0;this.#n=this.#e?this.#l:0}return!1}#g(){if(0===this.#a.size)return this.#o&&clearInterval(this.#o),this.#o=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.#a.dequeue();return!!t&&(this.emit("active"),t(),e&&this.#I(),!0)}}return!1}#I(){this.#t||void 0!==this.#o||(this.#o=setInterval((()=>{this.#w()}),this.#i),this.#s=Date.now()+this.#i)}#w(){0===this.#n&&0===this.#l&&this.#o&&(clearInterval(this.#o),this.#o=void 0),this.#n=this.#e?this.#l:0,this.#S()}#S(){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.#S()}async#C(e){return new Promise(((t,n)=>{e.addEventListener("abort",(()=>{n(e.reason)}),{once:!0})}))}setPriority(e,t){this.#a.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.#a.enqueue((async()=>{this.#l++,this.#n++;try{t.signal?.throwIfAborted();let r=e({signal:t.signal});t.timeout&&(r=(0,i.b)(Promise.resolve(r),{milliseconds:t.timeout})),t.signal&&(r=Promise.race([r,this.#C(t.signal)]));const s=await r;n(s),this.emit("completed",s)}catch(e){if(e instanceof i.a&&!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.#S(),this):this}pause(){this.#f=!0}clear(){this.#a=new this.#c}async onEmpty(){0!==this.#a.size&&await this.#x("empty")}async onSizeLessThan(e){this.#a.sizethis.#a.size{const r=()=>{t&&!t()||(this.off(e,r),n())};this.on(e,r)}))}get size(){return this.#a.size}sizeBy(e){return this.#a.filter(e).length}get pending(){return this.#l}get isPaused(){return this.#f}}},460(e,t,n){function r(e,t,n){let r=0,i=e.length;for(;i>0;){const s=Math.trunc(i/2);let o=r+s;n(e[o],t)<=0?(r=++o,i-=s+1):i=s}return r}n.d(t,{a:()=>r})},459(e,t,n){n.d(t,{a:()=>i});var r=n(460);class i{#a=[];enqueue(e,t){const n={priority:(t={priority:0,...t}).priority,id:t.id,run:e};if(0===this.size||this.#a[this.size-1].priority>=t.priority)return void this.#a.push(n);const i=(0,r.a)(this.#a,n,((e,t)=>t.priority-e.priority));this.#a.splice(i,0,n)}setPriority(e,t){const n=this.#a.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.#a.splice(n,1);this.enqueue(r.run,{priority:t,id:e})}dequeue(){const e=this.#a.shift();return e?.run}filter(e){return this.#a.filter((t=>t.priority===e.priority)).map((e=>e.run))}get size(){return this.#a.length}}},458(e,t,n){n.d(t,{a:()=>r,b:()=>u});class r extends Error{constructor(e){super(e),this.name="TimeoutError"}}class i extends Error{constructor(e){super(),this.name="AbortError",this.message=e}}const s=e=>void 0===globalThis.DOMException?new i(e):new DOMException(e),o=e=>{const t=void 0===e.reason?s("This operation was aborted."):e.reason;return t instanceof Error?t:s(t)};function u(e,t){const{milliseconds:n,fallback:i,message:s,customTimers:u={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(o(e)),c=()=>{h(o(e))},e.addEventListener("abort",c,{once:!0})}if(n===Number.POSITIVE_INFINITY)return void e.then(l,h);const f=new r;a=u.setTimeout.call(void 0,(()=>{if(i)try{l(i())}catch(e){h(e)}else"function"==typeof e.cancel&&e.cancel(),!1===s?l():s instanceof Error?h(s):(f.message=s??`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=()=>{u.clearTimeout.call(void 0,a),a=void 0},l}},452(e,t,n){var r=n(453),i=n(12),s=n(141);const{useDebugValue:o}=i.default,{useSyncExternalStoreWithSelector:u}=s;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?(0,r.a)(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 o(r),r}(t,e,n);return Object.assign(n,t),n};n.d(t,["a",0,e=>e?l(e):l])},454(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(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}n.d(t,{a:()=>r})},455(e,t,n){n.d(t,{a:()=>a});var r=n(12),i=n(141);const{useDebugValue:s}=r.default,{useSyncExternalStoreWithSelector:o}=i,u=e=>e;function a(e,t=u,n){const r=o(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return s(r),r}},453(e,t,n){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,s={setState:r,getState:i,getInitialState:()=>o,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()}},o=t=e(r,i,s);return s};n.d(t,["a",0,e=>e?r(e):r])}}]);