mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
156 lines
1.4 MiB
JavaScript
156 lines
1.4 MiB
JavaScript
|
var oq=Object.defineProperty;var sq=(e,t,n)=>t in e?oq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Kl=(e,t,n)=>(sq(e,typeof t!="symbol"?t+"":t,n),n),sx=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var Y=(e,t,n)=>(sx(e,t,"read from private field"),n?n.call(e):t.get(e)),Bt=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Ni=(e,t,n,r)=>(sx(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var th=(e,t,n,r)=>({set _(i){Ni(e,t,i,n)},get _(){return Y(e,t,r)}}),Wo=(e,t,n)=>(sx(e,t,"access private method"),n);function MO(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var He=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ml(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var RO={exports:{}},Tb={},OO={exports:{}},Ke={};/**
|
||
|
* @license React
|
||
|
* react.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var rm=Symbol.for("react.element"),aq=Symbol.for("react.portal"),lq=Symbol.for("react.fragment"),cq=Symbol.for("react.strict_mode"),uq=Symbol.for("react.profiler"),dq=Symbol.for("react.provider"),fq=Symbol.for("react.context"),hq=Symbol.for("react.forward_ref"),pq=Symbol.for("react.suspense"),gq=Symbol.for("react.memo"),mq=Symbol.for("react.lazy"),_k=Symbol.iterator;function yq(e){return e===null||typeof e!="object"?null:(e=_k&&e[_k]||e["@@iterator"],typeof e=="function"?e:null)}var $O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},NO=Object.assign,FO={};function Tf(e,t,n){this.props=e,this.context=t,this.refs=FO,this.updater=n||$O}Tf.prototype.isReactComponent={};Tf.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Tf.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function DO(){}DO.prototype=Tf.prototype;function vE(e,t,n){this.props=e,this.context=t,this.refs=FO,this.updater=n||$O}var bE=vE.prototype=new DO;bE.constructor=vE;NO(bE,Tf.prototype);bE.isPureReactComponent=!0;var Sk=Array.isArray,LO=Object.prototype.hasOwnProperty,_E={current:null},BO={key:!0,ref:!0,__self:!0,__source:!0};function zO(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)LO.call(t,r)&&!BO.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:rm,type:e,key:o,ref:s,props:i,_owner:_E.current}}function vq(e,t){return{$$typeof:rm,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function SE(e){return typeof e=="object"&&e!==null&&e.$$typeof===rm}function bq(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var xk=/\/+/g;function ax(e,t){return typeof e=="object"&&e!==null&&e.key!=null?bq(""+e.key):t.toString(36)}function Ny(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case rm:case aq:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+ax(s,0):r,Sk(i)?(n="",e!=null&&(n=e.replace(xk,"$&/")+"/"),Ny(i,t,n,"",function(c){return c})):i!=null&&(SE(i)&&(i=vq(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(xk,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",Sk(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+ax(o,a);s+=Ny(o,t,n,l,i)}else if(l=yq(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+ax(o,a++),s+=Ny(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function p0(e,t,n){if(e==null)return e;var r=[],i=0;return Ny(e,r,"","",function(o){return t.call(n,o,i++)}),r}function _q(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Lr={current:null},Fy={transition:null},Sq={ReactCurrentDispatcher:Lr,ReactCurrentBatchConfig:Fy,ReactCurrentOwner:_E};Ke.Children={map:p0,forEach:function(e,t,n){p0(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return p0(e,function(){t++}),t},toArray:function(e){return p0(e,function(t){return t})||[]},only:function(e){if(!SE(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ke.Component=Tf;Ke.Fragment=lq;Ke.Profiler=uq;Ke
|
||
|
* @license React
|
||
|
* react-jsx-runtime.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var xq=I,wq=Symbol.for("react.element"),Cq=Symbol.for("react.fragment"),Eq=Object.prototype.hasOwnProperty,Tq=xq.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Aq={key:!0,ref:!0,__self:!0,__source:!0};function jO(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Eq.call(t,r)&&!Aq.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:wq,type:e,key:o,ref:s,props:i,_owner:Tq.current}}Tb.Fragment=Cq;Tb.jsx=jO;Tb.jsxs=jO;RO.exports=Tb;var ie=RO.exports,mC={},VO={exports:{}},ki={},UO={exports:{}},GO={};/**
|
||
|
* @license React
|
||
|
* scheduler.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/(function(e){function t($,D){var N=$.length;$.push(D);e:for(;0<N;){var z=N-1>>>1,V=$[z];if(0<i(V,D))$[z]=D,$[N]=V,N=z;else break e}}function n($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var D=$[0],N=$.pop();if(N!==D){$[0]=N;e:for(var z=0,V=$.length,H=V>>>1;z<H;){var X=2*(z+1)-1,te=$[X],ee=X+1,j=$[ee];if(0>i(te,N))ee<V&&0>i(j,te)?($[z]=j,$[ee]=N,z=ee):($[z]=te,$[X]=N,z=X);else if(ee<V&&0>i(j,N))$[z]=j,$[ee]=N,z=ee;else break e}}return D}function i($,D){var N=$.sortIndex-D.sortIndex;return N!==0?N:$.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,d=null,f=3,h=!1,p=!1,m=!1,_=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g($){for(var D=n(c);D!==null;){if(D.callback===null)r(c);else if(D.startTime<=$)r(c),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(c)}}function b($){if(m=!1,g($),!p)if(n(l)!==null)p=!0,O(S);else{var D=n(c);D!==null&&F(b,D.startTime-$)}}function S($,D){p=!1,m&&(m=!1,v(x),x=-1),h=!0;var N=f;try{for(g(D),d=n(l);d!==null&&(!(d.expirationTime>D)||$&&!R());){var z=d.callback;if(typeof z=="function"){d.callback=null,f=d.priorityLevel;var V=z(d.expirationTime<=D);D=e.unstable_now(),typeof V=="function"?d.callback=V:d===n(l)&&r(l),g(D)}else r(l);d=n(l)}if(d!==null)var H=!0;else{var X=n(c);X!==null&&F(b,X.startTime-D),H=!1}return H}finally{d=null,f=N,h=!1}}var w=!1,C=null,x=-1,k=5,A=-1;function R(){return!(e.unstable_now()-A<k)}function L(){if(C!==null){var $=e.unstable_now();A=$;var D=!0;try{D=C(!0,$)}finally{D?M():(w=!1,C=null)}}else w=!1}var M;if(typeof y=="function")M=function(){y(L)};else if(typeof MessageChannel<"u"){var E=new MessageChannel,P=E.port2;E.port1.onmessage=L,M=function(){P.postMessage(null)}}else M=function(){_(L,0)};function O($){C=$,w||(w=!0,M())}function F($,D){x=_(function(){$(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function($){$.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,O(S))},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function($){switch(f){case 1:case 2:case 3:var D=3;break;default:D=f}var N=f;f=D;try{return $()}finally{f=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,D){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var N=f;f=$;try{return D()}finally{f=N}},e.unstable_scheduleCallback=function($,D,N){var z=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0<N?z+N:z):N=z,$){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=N+V,$={id:u++,callback:D,priorityLevel:$,startTime:N,expirationTime:V,sortIndex:-1},N>z?($.sortIndex=N,t(c,$),n(l)===null&&$===n(c)&&(m?(v(x),x=-1):m=!0,F(b,N-z))):($.sortIndex=V,t(l,$),p||h||(p=!0,O(S))),$},e.unstable_shouldYield=R,e.unstable_wrapCallback=function($){var D=f;return function(){var N=f;f=D;try{return $.apply(this,arguments)}finally{f=N}}}})(GO);UO.exports=GO;var kq=UO.exports;/**
|
||
|
* @license React
|
||
|
* react-dom.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var HO=I,wi=kq;function ne(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var WO=new Set,Rp={};function su(e,t){Yd(e,t),Yd(e+"Capture",t)}function Yd(e,t){for(Rp[e]=t,e=0;e<t.length;e++)WO.add(t[e])}var sa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yC=Object.prototype.hasOwnProperty,Pq=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,wk={},Ck={};function Iq(e){return yC.call(Ck,e)?!0:yC.call(wk,e)?!1:Pq.test(e)?Ck[e]=!0:(wk[e]=!0,!1)}function Mq(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Rq(e,t,n,r){if(t===null||typeof t>"u"||Mq(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Br(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var ir={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ir[e]=new Br(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ir[t]=new Br(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ir[e]=new Br(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ir[e]=new Br(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ir[e]=new Br(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ir[e]=new Br(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ir[e]=new Br(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ir[e]=new Br(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ir[e]=new Br(e,5,!1,e.toLowerCase(),null,!1,!1)});var xE=/[\-:]([a-z])/g;function wE(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin
|
||
|
`+lx+e}var cx=!1;function ux(e,t){if(!e||cx)return"";cx=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
|
||
|
`),o=r.stack.split(`
|
||
|
`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=`
|
||
|
`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{cx=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Dh(e):""}function Oq(e){switch(e.tag){case 5:return Dh(e.type);case 16:return Dh("Lazy");case 13:return Dh("Suspense");case 19:return Dh("SuspenseList");case 0:case 2:case 15:return e=ux(e.type,!1),e;case 11:return e=ux(e.type.render,!1),e;case 1:return e=ux(e.type,!0),e;default:return""}}function SC(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Qu:return"Fragment";case Xu:return"Portal";case vC:return"Profiler";case EE:return"StrictMode";case bC:return"Suspense";case _C:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case KO:return(e.displayName||"Context")+".Consumer";case qO:return(e._context.displayName||"Context")+".Provider";case TE:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case AE:return t=e.displayName||null,t!==null?t:SC(e.type)||"Memo";case La:t=e._payload,e=e._init;try{return SC(e(t))}catch{}}return null}function $q(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return SC(t);case 8:return t===EE?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ml(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function QO(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Nq(e){var t=QO(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function m0(e){e._valueTracker||(e._valueTracker=Nq(e))}function YO(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=QO(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Tv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function xC(e,t){var n=t.checked;return Kt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Tk(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ml(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ZO(e,t){t=t.checked,t!=null&&CE(e,"checked",t,!1)}function wC(e,t){ZO(e,t);var n=ml(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?CC(e,t.type,n):t.hasOwnProperty("defaultValue")&&CC(e,t.type,ml(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ak(e,t,n){if(t.hasOwnProperty("val
|
||
|
`).replace(HK,"")}function C0(e,t,n){if(t=Qk(t),Qk(e)!==t&&n)throw Error(ne(425))}function $v(){}var LC=null,BC=null;function zC(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var jC=typeof setTimeout=="function"?setTimeout:void 0,WK=typeof clearTimeout=="function"?clearTimeout:void 0,Yk=typeof Promise=="function"?Promise:void 0,qK=typeof queueMicrotask=="function"?queueMicrotask:typeof Yk<"u"?function(e){return Yk.resolve(null).then(e).catch(KK)}:jC;function KK(e){setTimeout(function(){throw e})}function wx(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Dp(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Dp(t)}function ol(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Zk(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var kf=Math.random().toString(36).slice(2),os="__reactFiber$"+kf,Vp="__reactProps$"+kf,aa="__reactContainer$"+kf,VC="__reactEvents$"+kf,XK="__reactListeners$"+kf,QK="__reactHandles$"+kf;function vc(e){var t=e[os];if(t)return t;for(var n=e.parentNode;n;){if(t=n[aa]||n[os]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Zk(e);e!==null;){if(n=e[os])return n;e=Zk(e)}return t}e=n,n=e.parentNode}return null}function sm(e){return e=e[os]||e[aa],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ed(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ne(33))}function Mb(e){return e[Vp]||null}var UC=[],td=-1;function Ol(e){return{current:e}}function Ft(e){0>td||(e.current=UC[td],UC[td]=null,td--)}function kt(e,t){td++,UC[td]=e.current,e.current=t}var yl={},vr=Ol(yl),Yr=Ol(!1),Vc=yl;function Zd(e,t){var n=e.type.contextTypes;if(!n)return yl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Zr(e){return e=e.childContextTypes,e!=null}function Nv(){Ft(Yr),Ft(vr)}function Jk(e,t,n){if(vr.current!==yl)throw Error(ne(168));kt(vr,t),kt(Yr,n)}function z7(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(ne(108,$q(e)||"Unknown",i));return Kt({},n,r)}function Fv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yl,Vc=vr.current,kt(vr,e),kt(Yr,Yr.current),!0}function eP(e,t,n){var r=e.stateNode;if(!r)throw Error(ne(169));n?(e=z7(e,t,Vc),r.__reactInternalMemoizedMergedChildContext=e,Ft(Yr),Ft(vr),kt(vr,e)):Ft(Yr),kt(Yr,n)}var Bs=null,Rb=!1,Cx=!1;function j7(e){Bs===null?Bs=[e]:Bs.push(e)}function YK(e){Rb=!0,j7(e)}function $l(){if(!Cx&&Bs!==null){Cx=!0;var e=0,t=mt;try{var n=Bs;for(mt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Bs=null,Rb=!1}catch(i){throw Bs!==null&&(Bs=Bs.slice(e+1)),f7(PE,$l),i}finally{mt=t,Cx=!1}}return null}var nd=[],rd=0,Dv=null,Lv=0,Hi=[],Wi=0,Uc=null,qs=1,Ks="";function rc(e,t){nd[rd++]=Lv,nd[rd++]=Dv,Dv=e,Lv=t}function V7(e,t,n){Hi[Wi++]=qs,Hi[Wi++]=Ks,Hi[Wi++]=Uc,Uc=e;var r=qs;e=Ks;var i=32-Ao(r)-1;r&=~(1<<i),n+=1;var o=32-Ao(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,qs=1<<32-Ao(t)+i|n<<i|r,Ks=o+e}else qs=1<<o|n<<i|r,Ks=e}function LE(e){e.return!==null&&(rc(e,1),V7(e,1,0))}function BE(e){for(;e===Dv;)Dv=nd[--rd],nd[rd]=null,Lv=nd[--rd],nd[rd]=null;for(;e===Uc;)Uc=Hi[--Wi],Hi[Wi]=null,Ks=Hi[--Wi],Hi[Wi]=null,qs=Hi[--Wi],Hi[Wi]=null}var _i=null,vi=null,zt=!1,So=null;function U7(e,t){var n=Ki(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.de
|
||
|
Error generating stack: `+o.message+`
|
||
|
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Px(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function XC(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var sX=typeof WeakMap=="function"?WeakMap:Map;function y$(e,t,n){n=Js(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wv||(Wv=!0,o5=r),XC(e,t)},n}function v$(e,t,n){n=Js(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){XC(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){XC(e,t),typeof r!="function"&&(al===null?al=new Set([this]):al.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function uP(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new sX;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=_X.bind(null,e,t,n),t.then(e,e))}function dP(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function fP(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Js(-1,1),t.tag=2,sl(n,t,1))),n.lanes|=1),e)}var aX=ga.ReactCurrentOwner,Xr=!1;function Rr(e,t,n,r){t.child=e===null?Q7(t,null,n,r):ef(t,e.child,n,r)}function hP(e,t,n,r,i){n=n.render;var o=t.ref;return Td(t,i),r=QE(e,t,n,r,o,i),n=YE(),e!==null&&!Xr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ca(e,t,i)):(zt&&n&&LE(t),t.flags|=1,Rr(e,t,r,i),t.child)}function pP(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!a4(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,b$(e,t,o,r,i)):(e=Wy(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Bp,n(s,r)&&e.ref===t.ref)return ca(e,t,i)}return t.flags|=1,e=cl(o,r),e.ref=t.ref,e.return=t,t.child=e}function b$(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Bp(o,r)&&e.ref===t.ref)if(Xr=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Xr=!0);else return t.lanes=e.lanes,ca(e,t,i)}return QC(e,t,n,r,i)}function _$(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},kt(sd,fi),fi|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,kt(sd,fi),fi|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,kt(sd,fi),fi|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,kt(sd,fi),fi|=r;return Rr(e,t,i,n),t.child}function S$(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function QC(e,t,n,r,i){var o=Zr(n)?Vc:vr.current;return o=Zd(t,o),Td(t,i),n=QE(e,t,n,r,o,i),r=YE(),e!==null&&!Xr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ca(e,t,i)):(zt&&r&&LE(t),t.flags|=1,Rr(e,t,n,i),t.child)}function gP(e,t,n,r,i){if(Zr(n)){var o=!0;Fv(t)}else o=!1;if(Td(t,i),t.stateNode===null)Uy(e,t),K7(t,n,r),KC(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=Yi(c):(c=Zr(n)?Vc:vr.current,c=Zd(t,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==c)&&sP(t,s,r,c),Ba=!1;var f=t.memoizedState;s.state=f,jv(t,r,s,i),l=t.memoizedState,a!==r||f!==l||Yr.current||Ba?(typeof u=="function"&&(qC(t,n,u,r),l=t.memoizedState),(a=Ba||oP(t,n,a,r,f,l,c))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.
|
||
|
* @license React
|
||
|
* use-sync-external-store-with-selector.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var lm=I;function NX(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var FX=typeof Object.is=="function"?Object.is:NX,DX=lm.useSyncExternalStore,LX=lm.useRef,BX=lm.useEffect,zX=lm.useMemo,jX=lm.useDebugValue;q$.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=LX(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=zX(function(){function l(h){if(!c){if(c=!0,u=h,h=r(h),i!==void 0&&s.hasValue){var p=s.value;if(i(p,h))return d=p}return d=h}if(p=d,FX(u,h))return p;var m=r(h);return i!==void 0&&i(p,m)?p:(u=h,d=m)}var c=!1,u,d,f=n===void 0?null:n;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,n,r,i]);var a=DX(e,o[0],o[1]);return BX(function(){s.hasValue=!0,s.value=a},[a]),jX(a),a};W$.exports=q$;var VX=W$.exports;function UX(e){e()}var K$=UX,GX=e=>K$=e,HX=()=>K$,bi="default"in Ev?Q:Ev,IP=Symbol.for("react-redux-context"),MP=typeof globalThis<"u"?globalThis:{};function WX(){if(!bi.createContext)return{};const e=MP[IP]??(MP[IP]=new Map);let t=e.get(bi.createContext);return t||(t=bi.createContext(null),e.set(bi.createContext,t)),t}var vl=WX(),qX=()=>{throw new Error("uSES not initialized!")};function f4(e=vl){return function(){return bi.useContext(e)}}var X$=f4(),Q$=qX,KX=e=>{Q$=e},XX=(e,t)=>e===t;function QX(e=vl){const t=e===vl?X$:f4(e);return function(r,i={}){const{equalityFn:o=XX,devModeChecks:s={}}=typeof i=="function"?{equalityFn:i}:i,{store:a,subscription:l,getServerState:c,stabilityCheck:u,identityFunctionCheck:d}=t();bi.useRef(!0);const f=bi.useCallback({[r.name](p){return r(p)}}[r.name],[r,u,s.stabilityCheck]),h=Q$(l.addNestedSub,a.getState,c||a.getState,f,o);return bi.useDebugValue(h),h}}var Y$=QX();function YX(){const e=HX();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,o=n={callback:r,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var RP={notify(){},get:()=>[]};function ZX(e,t){let n,r=RP,i=0,o=!1;function s(m){u();const _=r.subscribe(m);let v=!1;return()=>{v||(v=!0,_(),d())}}function a(){r.notify()}function l(){p.onStateChange&&p.onStateChange()}function c(){return o}function u(){i++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=YX())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=RP)}function f(){o||(o=!0,u())}function h(){o&&(o=!1,d())}const p={addNestedSub:s,notifyNestedSubs:a,handleChangeWrapper:l,isSubscribed:c,trySubscribe:f,tryUnsubscribe:h,getListeners:()=>r};return p}var JX=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",eQ=JX?bi.useLayoutEffect:bi.useEffect;function OP(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Jv(e,t){if(OP(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!OP(e[n[i]],t[n[i]]))return!1;return!0}function tQ({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const s=bi.useMemo(()=>{const c=ZX(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),a=bi.useMemo(()=>e.getState(),[e]);eQ(()=>{const{subscription:c}=s;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),a!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[s,a]);const l=t||vl;return bi.createElement(l.Provider,{value:s},n)}var nQ=tQ;function Z$(e=vl){const t=e===vl?X$:f4(e);return function(){const{store:r}=t();return r}}var J$=Z$();function rQ(e=vl){const t=e===vl?J$:Z$(e);return function(){return t().dispatch}}var eN=rQ();KX(VX.useSyncExternalStoreWithSelector);GX(gi.unstable_batchedUpdates);var iQ=gi.unstable_batchedUpdates;const tN=()=>eN(),nN=Y$,rN="default",In=to(rN);function Yn(e){return`Minified Redux erro
|
||
|
`&&(this.line+=1,this.lastLineBreak=this.index),{value:c}}},o.prototype.save=function(){return{line:this.line,col:this.index-this.lastLineBreak}},o.prototype.formatError=function(c,u){var d=this.buffer;if(typeof d=="string"){var f=d.split(`
|
||
|
`).slice(Math.max(0,this.line-5),this.line),h=d.indexOf(`
|
||
|
`,this.index);h===-1&&(h=d.length);var p=this.index-this.lastLineBreak,m=String(this.line).length;return u+=" at line "+this.line+" col "+p+`:
|
||
|
|
||
|
`,u+=f.map(function(v,y){return _(this.line-f.length+y+1,m)+" "+v},this).join(`
|
||
|
`),u+=`
|
||
|
`+_("",m+p)+`^
|
||
|
`,u}else return u+" at index "+(this.index-1);function _(v,y){var g=String(v);return Array(y-g.length+1).join(" ")+g}};function s(c,u,d){if(c instanceof i)var f=c,d=u;else var f=i.fromCompiled(c,u);this.grammar=f,this.options={keepHistory:!1,lexer:f.lexer||new o};for(var h in d||{})this.options[h]=d[h];this.lexer=this.options.lexer,this.lexerState=void 0;var p=new r(f,0);this.table=[p],p.wants[f.start]=[],p.predict(f.start),p.process(),this.current=0}s.fail={},s.prototype.feed=function(c){var u=this.lexer;u.reset(c,this.lexerState);for(var d;;){try{if(d=u.next(),!d)break}catch(C){var m=new r(this.grammar,this.current+1);this.table.push(m);var f=new Error(this.reportLexerError(C));throw f.offset=this.current,f.token=C.token,f}var h=this.table[this.current];this.options.keepHistory||delete this.table[this.current-1];var p=this.current+1,m=new r(this.grammar,p);this.table.push(m);for(var _=d.text!==void 0?d.text:d.value,v=u.constructor===o?d.value:d,y=h.scannable,g=y.length;g--;){var b=y[g],S=b.rule.symbols[b.dot];if(S.test?S.test(v):S.type?S.type===d.type:S.literal===_){var w=b.nextState({data:v,token:d,isToken:!0,reference:p-1});m.states.push(w)}}if(m.process(),m.states.length===0){var f=new Error(this.reportError(d));throw f.offset=this.current,f.token=d,f}this.options.keepHistory&&(h.lexerState=u.save()),this.current++}return h&&(this.lexerState=u.save()),this.results=this.finish(),this},s.prototype.reportLexerError=function(c){var u,d,f=c.token;return f?(u="input "+JSON.stringify(f.text[0])+" (lexer error)",d=this.lexer.formatError(f,"Syntax error")):(u="input (lexer error)",d=c.message),this.reportErrorCommon(d,u)},s.prototype.reportError=function(c){var u=(c.type?c.type+" token: ":"")+JSON.stringify(c.value!==void 0?c.value:c),d=this.lexer.formatError(c,"Syntax error");return this.reportErrorCommon(d,u)},s.prototype.reportErrorCommon=function(c,u){var d=[];d.push(c);var f=this.table.length-2,h=this.table[f],p=h.states.filter(function(_){var v=_.rule.symbols[_.dot];return v&&typeof v!="string"});if(p.length===0)d.push("Unexpected "+u+`. I did not expect any more input. Here is the state of my parse table:
|
||
|
`),this.displayStateStack(h.states,d);else{d.push("Unexpected "+u+`. Instead, I was expecting to see one of the following:
|
||
|
`);var m=p.map(function(_){return this.buildFirstStateStack(_,[])||[_]},this);m.forEach(function(_){var v=_[0],y=v.rule.symbols[v.dot],g=this.getSymbolDisplay(y);d.push("A "+g+" based on:"),this.displayStateStack(_,d)},this)}return d.push(""),d.join(`
|
||
|
`)},s.prototype.displayStateStack=function(c,u){for(var d,f=0,h=0;h<c.length;h++){var p=c[h],m=p.rule.toString(p.dot);m===d?f++:(f>0&&u.push(" ^ "+f+" more lines identical to this"),f=0,u.push(" "+m)),d=m}},s.prototype.getSymbolDisplay=function(c){return a(c)},s.prototype.buildFirstStateStack=function(c,u){if(u.indexOf(c)!==-1)return null;if(c.wantedBy.length===0)return[c];var d=c.wantedBy[0],f=[c].concat(u),h=this.buildFirstStateStack(d,f);return h===null?null:[c].concat(h)},s.prototype.save=function(){var c=this.table[this.current];return c.lexerState=this.lexerState,c},s.prototype.restore=function(c){var u=c.index;this.current=u,this.table[u]=c,this.table.splice(u+1),this.lexerState=c.lexerState,this.results=this.finish()},s.prototype.rewind=function(c){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[c])},s.prototype.finish=function(){var c=[],u=this.grammar.start,d=this.table[this.table.length-1];return d.states.forEach(function(f){f.rule.name===u&&f.dot===f.rule.symbols.length&&f.reference===0&&f.data!==s.fail&&c.push(f)}),c.map(function(f){return f.data})};function a(c){var u=typeof c;if(u==="string")return c;if(u==="object"){if(c.literal)return JSON.stringify(c.literal);if(c instanceof RegExp)return"character matching "+c;if(c.type)return c.type+" token";if(c.test)return"token matching "+String(c.test);throw new Error("Unknown symbol type: "+c)}}function l(c){var u=typeof c;if(u==="string")return c;if(u==="object"){if(c.literal)return JSON.stringify(c.literal);if(c instanceof RegExp)return c.toString();if(c.type)return"%"+c.type;if(c.test)return"<"+String(c.test)+">";throw new Error("Unknown symbol type: "+c)}}return{Parser:s,Grammar:i,Rule:t}})})(zL);var Gde=zL.exports,tu={},jL={},Fl={};Fl.__esModule=void 0;Fl.__esModule=!0;var Hde=typeof Object.setPrototypeOf=="function",Wde=typeof Object.getPrototypeOf=="function",qde=typeof Object.defineProperty=="function",Kde=typeof Object.create=="function",Xde=typeof Object.prototype.hasOwnProperty=="function",Qde=function(t,n){Hde?Object.setPrototypeOf(t,n):t.__proto__=n};Fl.setPrototypeOf=Qde;var Yde=function(t){return Wde?Object.getPrototypeOf(t):t.__proto__||t.prototype};Fl.getPrototypeOf=Yde;var NI=!1,Zde=function e(t,n,r){if(qde&&!NI)try{Object.defineProperty(t,n,r)}catch{NI=!0,e(t,n,r)}else t[n]=r.value};Fl.defineProperty=Zde;var VL=function(t,n){return Xde?t.hasOwnProperty(t,n):t[n]===void 0};Fl.hasOwnProperty=VL;var Jde=function(t,n){if(Kde)return Object.create(t,n);var r=function(){};r.prototype=t;var i=new r;if(typeof n>"u")return i;if(typeof n=="null")throw new Error("PropertyDescriptors must not be null.");if(typeof n=="object")for(var o in n)VL(n,o)&&(i[o]=n[o].value);return i};Fl.objectCreate=Jde;(function(e){e.__esModule=void 0,e.__esModule=!0;var t=Fl,n=t.setPrototypeOf,r=t.getPrototypeOf,i=t.defineProperty,o=t.objectCreate,s=new Error().toString()==="[object Error]",a="";function l(c){var u=this.constructor,d=u.name||function(){var _=u.toString().match(/^function\s*([^\s(]+)/);return _===null?a||"Error":_[1]}(),f=d==="Error",h=f?a:d,p=Error.apply(this,arguments);if(n(p,r(this)),!(p instanceof u)||!(p instanceof l)){var p=this;Error.apply(this,arguments),i(p,"message",{configurable:!0,enumerable:!1,value:c,writable:!0})}if(i(p,"name",{configurable:!0,enumerable:!1,value:h,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(p,f?l:u),p.stack===void 0){var m=new Error(c);m.name=p.name,p.stack=m.stack}return s&&i(p,"toString",{configurable:!0,enumerable:!1,value:function(){return(this.name||"Error")+(typeof this.message>"u"?"":": "+this.message)},writable:!0}),p}a=l.name||"ExtendableError",l.prototype=o(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}}),e.ExtendableError=l,e.default=e.ExtendableError})(jL);var UL=He&&He.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(
|
||
|
${$}`,z=`,
|
||
|
${$}`);const q=Math.min(D.length,C);let Z=0;for(;Z<q-1;Z++){const be=x(String(Z),D,P,O,F,$);N+=be!==void 0?be:"null",N+=z}const oe=x(String(Z),D,P,O,F,$);if(N+=oe!==void 0?oe:"null",D.length-1>C){const be=D.length-C-1;N+=`${z}"... ${h(be)} not stringified"`}return F!==""&&(N+=`
|
||
|
${V}`),P.pop(),`[${N}]`}let H=Object.keys(D);const X=H.length;if(X===0)return"{}";if(w<P.length+1)return'"[Object]"';let te="",ee="";F!==""&&($+=F,z=`,
|
||
|
${$}`,te=" ");const j=Math.min(X,C);S&&!l(D)&&(H=s(H)),P.push(D);for(let q=0;q<j;q++){const Z=H[q],oe=x(Z,D,P,O,F,$);oe!==void 0&&(N+=`${ee}${o(Z)}:${te}${oe}`,ee=z)}if(X>C){const q=X-C;N+=`${ee}"...":${te}"${h(q)} not stringified"`,ee=z}return F!==""&&ee.length>1&&(N=`
|
||
|
${$}${N}
|
||
|
${V}`),P.pop(),`{${N}}`}case"number":return isFinite(D)?String(D):y?y(D):"null";case"boolean":return D===!0?"true":"false";case"undefined":return;case"bigint":if(b)return String(D);default:return y?y(D):void 0}}function k(M,E,P,O,F,$){switch(typeof E=="object"&&E!==null&&typeof E.toJSON=="function"&&(E=E.toJSON(M)),typeof E){case"string":return o(E);case"object":{if(E===null)return"null";if(P.indexOf(E)!==-1)return g;const D=$;let N="",z=",";if(Array.isArray(E)){if(E.length===0)return"[]";if(w<P.length+1)return'"[Array]"';P.push(E),F!==""&&($+=F,N+=`
|
||
|
${$}`,z=`,
|
||
|
${$}`);const X=Math.min(E.length,C);let te=0;for(;te<X-1;te++){const j=k(String(te),E[te],P,O,F,$);N+=j!==void 0?j:"null",N+=z}const ee=k(String(te),E[te],P,O,F,$);if(N+=ee!==void 0?ee:"null",E.length-1>C){const j=E.length-C-1;N+=`${z}"... ${h(j)} not stringified"`}return F!==""&&(N+=`
|
||
|
${D}`),P.pop(),`[${N}]`}P.push(E);let V="";F!==""&&($+=F,z=`,
|
||
|
${$}`,V=" ");let H="";for(const X of O){const te=k(X,E[X],P,O,F,$);te!==void 0&&(N+=`${H}${o(X)}:${V}${te}`,H=z)}return F!==""&&H.length>1&&(N=`
|
||
|
${$}${N}
|
||
|
${D}`),P.pop(),`{${N}}`}case"number":return isFinite(E)?String(E):y?y(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(b)return String(E);default:return y?y(E):void 0}}function A(M,E,P,O,F){switch(typeof E){case"string":return o(E);case"object":{if(E===null)return"null";if(typeof E.toJSON=="function"){if(E=E.toJSON(M),typeof E!="object")return A(M,E,P,O,F);if(E===null)return"null"}if(P.indexOf(E)!==-1)return g;const $=F;if(Array.isArray(E)){if(E.length===0)return"[]";if(w<P.length+1)return'"[Array]"';P.push(E),F+=O;let te=`
|
||
|
${F}`;const ee=`,
|
||
|
${F}`,j=Math.min(E.length,C);let q=0;for(;q<j-1;q++){const oe=A(String(q),E[q],P,O,F);te+=oe!==void 0?oe:"null",te+=ee}const Z=A(String(q),E[q],P,O,F);if(te+=Z!==void 0?Z:"null",E.length-1>C){const oe=E.length-C-1;te+=`${ee}"... ${h(oe)} not stringified"`}return te+=`
|
||
|
${$}`,P.pop(),`[${te}]`}let D=Object.keys(E);const N=D.length;if(N===0)return"{}";if(w<P.length+1)return'"[Object]"';F+=O;const z=`,
|
||
|
${F}`;let V="",H="",X=Math.min(N,C);l(E)&&(V+=c(E,z,C),D=D.slice(E.length),X-=E.length,H=z),S&&(D=s(D)),P.push(E);for(let te=0;te<X;te++){const ee=D[te],j=A(ee,E[ee],P,O,F);j!==void 0&&(V+=`${H}${o(ee)}: ${j}`,H=z)}if(N>C){const te=N-C;V+=`${H}"...": "${h(te)} not stringified"`,H=z}return H!==""&&(V=`
|
||
|
${F}${V}
|
||
|
${$}`),P.pop(),`{${V}}`}case"number":return isFinite(E)?String(E):y?y(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(b)return String(E);default:return y?y(E):void 0}}function R(M,E,P){switch(typeof E){case"string":return o(E);case"object":{if(E===null)return"null";if(typeof E.toJSON=="function"){if(E=E.toJSON(M),typeof E!="object")return R(M,E,P);if(E===null)return"null"}if(P.indexOf(E)!==-1)return g;let O="";if(Array.isArray(E)){if(E.length===0)return"[]";if(w<P.length+1)return'"[Array]"';P.push(E);const z=Math.min(E.length,C);let V=0;for(;V<z-1;V++){const X=R(String(V),E[V],P);O+=X!==void 0?X:"null",O+=","}const H=R(String(V),E[V],P);if(O+=H!==void 0?H:"null",E.length-1>C){const X=E.length-C-1;O+=`,"... ${h(X)} not stringified"`}return P.pop(),`[${O}]`}let F=Object.keys(E);const $=F.length;if($===0)return"{}";if(w<P.length+1)return'"[Object]"';let D="",N=Math.min($,C);l(E)&&(O+=c(E,",",C),F=F.slice(E.length),N-=E.length,D=","),S&&(F=s(F)),P.push(E);for(let z=0;z<N;z++){const V=F[z],H=R(V,E[V],P);H!==void 0&&(O+=`${D}${o(V)}:${H}`,D=",")}if($>C){const z=$-C;O+=`${D}"...":"${h(z)} not stringified"`}return P.pop(),`{${O}}`}case"number":return isFinite(E)?String(E):y?y(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(b)return String(E);default:return y?y(E):void 0}}function L(M,E,P){if(arguments.length>1){let O="";if(typeof P=="number"?O=" ".repeat(Math.min(P,10)):typeof P=="string"&&(O=P.slice(0,10)),E!=null){if(typeof E=="function")return x("",{"":M},[],E,O,"");if(Array.isArray(E))return k("",M,[],p(E),O,"")}if(O.length!==0)return A("",M,[],O,"")}return R("",M,[])}return L}})(K5,K5.exports);var JL=K5.exports;(function(e){var t=He&&He.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(e,"__esModule",{value:!0}),e.createLogger=void 0;const n=nu,r=Ff,i=QL,o=R_,s=O_,a=YL,l=ZL,c=t(JL);let u=!1;const d=()=>globalThis.ROARR,f=()=>({messageContext:{},transforms:[]}),h=()=>{const b=d().asyncLocalStorage;if(!b)throw new Error("AsyncLocalContext is unavailable.");const S=b.getStore();return S||f()},p=()=>!!d().asyncLocalStorage,m=()=>{if(p()){const b=h();return(0,i.hasOwnProperty)(b,"sequenceRoot")&&(0,i.hasOwnProperty)(b,"sequence")&&typeof b.sequence=="number"?String(b.sequenceRoot)+"."+String(b.sequence++):String(d().sequence++)}return String(d().sequence++)},_=(b,S)=>(w,C,x,k,A,R,L,M,E,P)=>{b.child({logLevel:S})(w,C,x,k,A,R,L,M,E,P)},v=1e3,y=(b,S)=>(w,C,x,k,A,R,L,M,E,P)=>{const O=(0,c.default)({a:w,b:C,c:x,d:k,e:A,f:R,g:L,h:M,i:E,j:P,logLevel:S});if(!O)throw new Error("Expected key to be a string");const F=d().onceLog;F.has(O)||(F.add(O),F.size>v&&F.clear(),b.child({logLevel:S})(w,C,x,k,A,R,L,M,E,P))},g=(b,S={},w=[])=>{var C;if(!(0,o.isBrowser)()&&typeof process<"u"&&!(0,s.isTruthy)((C={}.ROARR_LOG)!==null&&C!==void 0?C:""))return(0,a.createMockLogger)(b,S);const x=(k,A,R,L,M,E,P,O,F,$)=>{const D=Date.now(),N=m();let z;p()?z=h():z=f();let V,H;if(typeof k=="string"?V={...z.messageContext,...S}:V={...z.messageContext,...S,...k},typeof k=="string"&&A===void 0)H=k;else if(typeof k=="string"){if(!k.includes("%"))throw new Error("When a string parameter is followed by other arguments, then it is assumed that you are attempting to format a message using printf syntax. You either forgot to add printf bindings or if you meant to add context to the log message, pass them in an object as the first parameter.");H=(0,l.printf)(k,A,R,L,M,E,P,O,F,$)}else{let te=A;if(typeof A!="string")if(A===void 0)te="";else throw new TypeError("Message must be a string. Received "+typeof A+".");H=(0,l.printf)(te,R,L,M,E,P,O,F,$)}let X={context:V,message:H,sequence:N,time:D,version:n.ROARR_LOG_FORMAT_VERSION};for(const te of[...z.transforms,...w])if(X=te(X),typeof X!="object"||X===null)throw new Error("Message transform function must return a message object.");b(X)};return x.child=k=>{let A;return p()?A=h():A=f(),typeof k=="function"?(0,e.createLogger)(b,{...A.messageContext,...S,...k},[k,...w]):(0,e.createLogger)(b,{...A.messageCont
|
||
|
background-color: `.concat(_.backgroundColor,`;
|
||
|
color: `).concat(_.color,`;
|
||
|
font-weight: bold;
|
||
|
`),y=`
|
||
|
color: `.concat(Ffe[p].color,`;
|
||
|
`),g=`
|
||
|
color: inherit;
|
||
|
`;Object.keys(h).length>0?m("%c ".concat(p," %c").concat(f?" [".concat(String(f),"]:"):"","%c ").concat(c.message," %O"),v,y,g,h):m("%c ".concat(p," %c").concat(f?" [".concat(String(f),"]:"):"","%c ").concat(c.message),v,y,g)}}:function(l){var c=JSON.parse(l),u=c.context,d=u.logLevel,f=u.namespace,h=BI(u,["logLevel","namespace"]);if(!(a&&!(0,X5.test)(a,c))){var p=(0,zI.getLogLevelName)(Number(d)),m=s[p];Object.keys(h).length>0?m("".concat(p," ").concat(f?" [".concat(String(f),"]:"):""," ").concat(c.message),h):m("".concat(p," ").concat(f?" [".concat(String(f),"]:"):""," ").concat(c.message))}}};y_.createLogWriter=Lfe;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createLogWriter=void 0;var t=y_;Object.defineProperty(e,"createLogWriter",{enumerable:!0,get:function(){return t.createLogWriter}})})(AL);Sm.ROARR.write=AL.createLogWriter();const eB={};Sm.Roarr.child(eB);const B_=to(Sm.Roarr.child(eB)),ue=e=>B_.get().child({namespace:e}),$Ue=["trace","debug","info","warn","error","fatal"],NUe={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},tB=T.object({lora:eT.deepPartial(),weight:T.number()}),Bfe=xle.deepPartial(),zfe=wle.deepPartial(),jfe=Cle.deepPartial(),Vfe=KD.deepPartial(),Ufe=T.union([HD.deepPartial(),WD.deepPartial()]),Gfe=J4.deepPartial(),Hfe=T.object({app_version:T.string().nullish().catch(null),generation_mode:T.string().nullish().catch(null),created_by:T.string().nullish().catch(null),positive_prompt:T.string().nullish().catch(null),negative_prompt:T.string().nullish().catch(null),width:T.number().int().nullish().catch(null),height:T.number().int().nullish().catch(null),seed:T.number().int().nullish().catch(null),rand_device:T.string().nullish().catch(null),cfg_scale:T.number().nullish().catch(null),cfg_rescale_multiplier:T.number().nullish().catch(null),steps:T.number().int().nullish().catch(null),scheduler:T.string().nullish().catch(null),clip_skip:T.number().int().nullish().catch(null),model:Ufe.nullish().catch(null),controlnets:T.array(Bfe).nullish().catch(null),ipAdapters:T.array(zfe).nullish().catch(null),t2iAdapters:T.array(jfe).nullish().catch(null),loras:T.array(tB).nullish().catch(null),vae:Gfe.nullish().catch(null),strength:T.number().nullish().catch(null),hrf_enabled:T.boolean().nullish().catch(null),hrf_strength:T.number().nullish().catch(null),hrf_method:T.string().nullish().catch(null),init_image:T.string().nullish().catch(null),positive_style_prompt:T.string().nullish().catch(null),negative_style_prompt:T.string().nullish().catch(null),refiner_model:Vfe.nullish().catch(null),refiner_cfg_scale:T.number().nullish().catch(null),refiner_steps:T.number().int().nullish().catch(null),refiner_scheduler:T.string().nullish().catch(null),refiner_positive_aesthetic_score:T.number().nullish().catch(null),refiner_negative_aesthetic_score:T.number().nullish().catch(null),refiner_start:T.number().nullish().catch(null)}).passthrough(),ce=Lo.injectEndpoints({endpoints:e=>({listImages:e.query({query:t=>({url:Vi(t),method:"GET"}),providesTags:(t,n,{board_id:r,categories:i})=>[{type:"ImageList",id:Vi({board_id:r,categories:i})}],serializeQueryArgs:({queryArgs:t})=>{const{board_id:n,categories:r}=t;return Vi({board_id:n,categories:r})},transformResponse(t){const{items:n}=t;return Ot.addMany(Ot.getInitialState(),n)},merge:(t,n)=>{Ot.addMany(t,_g.selectAll(n))},forceRefetch({currentArg:t,previousArg:n}){return(t==null?void 0:t.offset)!==(n==null?void 0:n.offset)},async onQueryStarted(t,{dispatch:n,queryFulfilled:r}){try{const{data:i}=await r;_g.selectAll(i).forEach(o=>{n(ce.util.upsertQueryData("getImageDTO",o.image_name,o))})}catch{}},keepUnusedDataFor:86400}),getIntermediatesCount:e.query({query:()=>({url:"images/intermediates"}),providesTags:["IntermediatesCount"]}),clearIntermediates:e.mutation({query:()=>({url:"images/intermediates",method:"DELETE"}),invalidatesTags:["IntermediatesCount"]}),getImageDTO:e.query({query:t=>({url:`images/i/${t}`}),providesTags:(t,n,r)=>[{type:"Image",id:r}],keepUnusedDataFor:86400}),getImageMetadata:e.query({query:t=>({url:`images/i/${t}/metadata`}),providesTa
|
||
|
* @license React
|
||
|
* use-sync-external-store-shim.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var hf=I;function npe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rpe=typeof Object.is=="function"?Object.is:npe,ipe=hf.useState,ope=hf.useEffect,spe=hf.useLayoutEffect,ape=hf.useDebugValue;function lpe(e,t){var n=t(),r=ipe({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return spe(function(){i.value=n,i.getSnapshot=t,rw(i)&&o({inst:i})},[e,n,t]),ope(function(){return rw(i)&&o({inst:i}),e(function(){rw(i)&&o({inst:i})})},[e]),ape(n),n}function rw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!rpe(e,n)}catch{return!0}}function cpe(e,t){return t()}var upe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?cpe:lpe;tz.useSyncExternalStore=hf.useSyncExternalStore!==void 0?hf.useSyncExternalStore:upe;ez.exports=tz;var dpe=ez.exports;/**
|
||
|
* @license React
|
||
|
* use-sync-external-store-shim/with-selector.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var nS=I,fpe=dpe;function hpe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ppe=typeof Object.is=="function"?Object.is:hpe,gpe=fpe.useSyncExternalStore,mpe=nS.useRef,ype=nS.useEffect,vpe=nS.useMemo,bpe=nS.useDebugValue;JB.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=mpe(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=vpe(function(){function l(h){if(!c){if(c=!0,u=h,h=r(h),i!==void 0&&s.hasValue){var p=s.value;if(i(p,h))return d=p}return d=h}if(p=d,ppe(u,h))return p;var m=r(h);return i!==void 0&&i(p,m)?p:(u=h,d=m)}var c=!1,u,d,f=n===void 0?null:n;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,n,r,i]);var a=gpe(e,o[0],o[1]);return ype(function(){s.hasValue=!0,s.value=a},[a]),bpe(a),a};ZB.exports=JB;var _pe=ZB.exports;const Spe=Ml(_pe),UI=e=>{let t;const n=new Set,r=(l,c)=>{const u=typeof l=="function"?l(t):l;if(!Object.is(u,t)){const d=t;t=c??typeof u!="object"?u:Object.assign({},t,u),n.forEach(f=>f(t,d))}},i=()=>t,a={setState:r,getState:i,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{n.clear()}};return t=e(r,i,a),a},xpe=e=>e?UI(e):UI,{useSyncExternalStoreWithSelector:wpe}=Spe;function nz(e,t=e.getState,n){const r=wpe(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return I.useDebugValue(r),r}const GI=(e,t)=>{const n=xpe(e),r=(i,o=t)=>nz(n,i,o);return Object.assign(r,n),r},Cpe=(e,t)=>e?GI(e,t):GI;function ti(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,i]of e)if(!Object.is(i,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}var Epe={value:()=>{}};function rS(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new tv(n)}function tv(e){this._=e}function Tpe(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}tv.prototype=rS.prototype={constructor:tv,on:function(e,t){var n=this._,r=Tpe(e+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((i=(e=r[o]).type)&&(i=Ape(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<s;)if(i=(e=r[o]).type)n[i]=HI(n[i],e.name,t);else if(t==null)for(i in n)n[i]=HI(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new tv(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],r=0,i=o.length;r<i;++r)o[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};function Ape(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function HI(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Epe,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Z5="http://www.w3.org/1999/xhtml";const WI={svg:"http://www.w3.org/2000/svg",xhtml:Z5,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function iS(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),WI.hasOwnProperty(t)?{space:WI[t],local:e}:e}function kpe(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Z5&&t.documentElement.namespaceURI===Z5?t.createElement(e):t.createElementNS(n,e)}}function Ppe(e){return function(){ret
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i_e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}function o_e(e){if(Array.isArray(e))return e}function bw(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Yj(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,a;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,a=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function Yj(e,t){if(e){if(typeof e=="string")return K8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return K8(e,t)}}function K8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function L1(e){"@babel/helpers - typeof";return L1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},L1(e)}var X8=function(t){var n;return(n=Object.prototype.toString.call(t).match(/\[object (.*)\]/))===null||n===void 0?void 0:n[1]},Q8=function(t){return/^\[object (?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)Array\]$/.test(Object.prototype.toString.call(t))},s_e=function e(t,n){if(t===n)return!0;if(L1(t)!=="object"||L1(n)!=="object"||t===null||t===void 0||n===null||n===void 0)return t!==t&&n!==n;if(t.constructor!==n.constructor)return!1;if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(Array.isArray(t)){if(t.length!==n.length)return!1;for(var r=t.length;r--!==0;)if(!e(t[r],n[r]))return!1;return!0}if(Q8(t)&&Q8(n)){if(t.byteLength!==n.byteLength)return!1;for(var i=t.byteLength;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}var o=X8(t),s=X8(n);if(o==="DataView"&&s==="DataView")return t.byteLength!==n.byteLength||t.byteOffset!==n.byteOffset?!1:e(t.buffer,n.buffer);if(o==="ArrayBuffer"&&s==="ArrayBuffer")return t.byteLength!==n.byteLength?!1:e(new Uint8Array(t),new Uint8Array(n));if(o==="Map"&&s==="Map"){if(t.size!==n.size)return!1;var a=bw(t.entries()),l;try{for(a.s();!(l=a.n()).done;){var c=vw(l.value,1),u=c[0];if(!n.has(u))return!1}}catch(x){a.e(x)}finally{a.f()}var d=bw(t.entries()),f;try{for(d.s();!(f=d.n()).done;){var h=vw(f.value,2),p=h[0],m=h[1];if(!e(m,n.get(p)))return!1}}catch(x){d.e(x)}finally{d.f()}return!0}if(o==="Set"&&s==="Set"){if(t.size!==n.size)return!1;var _=bw(t.entries()),v;try{for(_.s();!(v=_.n()).done;){var y=vw(v.value,1),g=y[0];if(!n.has(g))return!1}}catch(x){_.e(x)}finally{_.f()}return!0}if(o==="Date"&&s==="Date")return+t==+n;var b=Object.keys(t);if(b.length!==Object.keys(n).length)return!1;for(var S=b.length;S--!==0;)if(!Object.prototype.hasOwnProperty.call(n,b[S]))return!1;for(var w=b.length;w--!==0;){var C=b[w];if(!e(t[C],n[C]))return!1}return o!=="Object"&&s!=="Object"?t===n:!0};const GT=s_e;function Y8(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(c){n(c);return}a.done?t(l):Promise.resolve(l).then(r,i)}function Zj(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(l){Y8(o,r,i,s,a,"next",l)}function a(l){Y8(o,r,i,s,a,"throw",l)}s(void 0)})}}var a_e=function(){var e=Zj(function*(t,n,r){var i=r.prefix,o=r.driver,s=r.serialize;if(!GT(t,n))return o.setItem("".concat(i,"rootState"),s(t,"rootState"))});return function(n,r,i){return e.apply(this,arguments)}}(),l_e=function(t,n,r){var i=r.prefix,o=r.driver,s=r.serialize;return Promise.all(Object.keys(t).map(function(a){return GT(t[a],n[a])?Promise.resolve():o.setItem("".concat(i).concat(a),s(t[a],a))}))},c_e=function(){var e=Zj(function*(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=r.prefix,o=r.driver,s=r.persistWholeStore,a=r.serialize;try{var l=s?a_e:l_e;yield l(t,n,{prefix:i,driver:o,serialize:a})}catch(c){console.warn("redux-remember: persist error",c)}});return function(){return e.apply(this,arguments)}}();function Z8(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(c){n(c);return}a.done?t(l):Promise.resolve(l).then(r,i)}
|
||
|
* react-is.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var Hn=typeof Symbol=="function"&&Symbol.for,KT=Hn?Symbol.for("react.element"):60103,XT=Hn?Symbol.for("react.portal"):60106,pS=Hn?Symbol.for("react.fragment"):60107,gS=Hn?Symbol.for("react.strict_mode"):60108,mS=Hn?Symbol.for("react.profiler"):60114,yS=Hn?Symbol.for("react.provider"):60109,vS=Hn?Symbol.for("react.context"):60110,QT=Hn?Symbol.for("react.async_mode"):60111,bS=Hn?Symbol.for("react.concurrent_mode"):60111,_S=Hn?Symbol.for("react.forward_ref"):60112,SS=Hn?Symbol.for("react.suspense"):60113,gSe=Hn?Symbol.for("react.suspense_list"):60120,xS=Hn?Symbol.for("react.memo"):60115,wS=Hn?Symbol.for("react.lazy"):60116,mSe=Hn?Symbol.for("react.block"):60121,ySe=Hn?Symbol.for("react.fundamental"):60117,vSe=Hn?Symbol.for("react.responder"):60118,bSe=Hn?Symbol.for("react.scope"):60119;function Ii(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case KT:switch(e=e.type,e){case QT:case bS:case pS:case mS:case gS:case SS:return e;default:switch(e=e&&e.$$typeof,e){case vS:case _S:case wS:case xS:case yS:return e;default:return t}}case XT:return t}}}function cV(e){return Ii(e)===bS}yt.AsyncMode=QT;yt.ConcurrentMode=bS;yt.ContextConsumer=vS;yt.ContextProvider=yS;yt.Element=KT;yt.ForwardRef=_S;yt.Fragment=pS;yt.Lazy=wS;yt.Memo=xS;yt.Portal=XT;yt.Profiler=mS;yt.StrictMode=gS;yt.Suspense=SS;yt.isAsyncMode=function(e){return cV(e)||Ii(e)===QT};yt.isConcurrentMode=cV;yt.isContextConsumer=function(e){return Ii(e)===vS};yt.isContextProvider=function(e){return Ii(e)===yS};yt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===KT};yt.isForwardRef=function(e){return Ii(e)===_S};yt.isFragment=function(e){return Ii(e)===pS};yt.isLazy=function(e){return Ii(e)===wS};yt.isMemo=function(e){return Ii(e)===xS};yt.isPortal=function(e){return Ii(e)===XT};yt.isProfiler=function(e){return Ii(e)===mS};yt.isStrictMode=function(e){return Ii(e)===gS};yt.isSuspense=function(e){return Ii(e)===SS};yt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===pS||e===bS||e===mS||e===gS||e===SS||e===gSe||typeof e=="object"&&e!==null&&(e.$$typeof===wS||e.$$typeof===xS||e.$$typeof===yS||e.$$typeof===vS||e.$$typeof===_S||e.$$typeof===ySe||e.$$typeof===vSe||e.$$typeof===bSe||e.$$typeof===mSe)};yt.typeOf=Ii;lV.exports=yt;var _Se=lV.exports,uV=_Se,SSe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},xSe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},dV={};dV[uV.ForwardRef]=SSe;dV[uV.Memo]=xSe;var wSe=!0;function CSe(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var fV=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||wSe===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},hV=function(t,n,r){fV(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function ESe(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var TSe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,st
|
||
|
45deg,
|
||
|
${t} 25%,
|
||
|
transparent 25%,
|
||
|
transparent 50%,
|
||
|
${t} 50%,
|
||
|
${t} 75%,
|
||
|
transparent 75%,
|
||
|
transparent
|
||
|
)`,backgroundSize:`${e} ${e}`}}var ywe=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function vwe(e){const t=ywe();return!e||hwe(e)?t:e.string&&e.colors?_we(e.string,e.colors):e.string&&!e.colors?bwe(e.string):e.colors&&!e.string?Swe(e.colors):t}function bwe(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t=t&t;let n="#";for(let r=0;r<3;r+=1){const i=t>>r*8&255;n+=`00${i.toString(16)}`.substr(-2)}return n}function _we(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;r<e.length;r+=1)n=e.charCodeAt(r)+((n<<5)-n),n=n&n;return n=(n%t.length+t.length)%t.length,t[n]}function Swe(e){return e[Math.floor(Math.random()*e.length)]}function W(e,t){return n=>n.colorMode==="dark"?t:e}function iA(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function GV(e){return ys(e)&&e.reference?e.reference:String(e)}var kS=(e,...t)=>t.map(GV).join(` ${e} `).replace(/calc/g,""),xM=(...e)=>`calc(${kS("+",...e)})`,wM=(...e)=>`calc(${kS("-",...e)})`,k3=(...e)=>`calc(${kS("*",...e)})`,CM=(...e)=>`calc(${kS("/",...e)})`,EM=e=>{const t=GV(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:k3(t,-1)},Ws=Object.assign(e=>({add:(...t)=>Ws(xM(e,...t)),subtract:(...t)=>Ws(wM(e,...t)),multiply:(...t)=>Ws(k3(e,...t)),divide:(...t)=>Ws(CM(e,...t)),negate:()=>Ws(EM(e)),toString:()=>e.toString()}),{add:xM,subtract:wM,multiply:k3,divide:CM,negate:EM});function xwe(e){return!Number.isInteger(parseFloat(e.toString()))}function wwe(e,t="-"){return e.replace(/\s+/g,t)}function HV(e){const t=wwe(e.toString());return t.includes("\\.")?e:xwe(e)?t.replace(".","\\."):e}function Cwe(e,t=""){return[t,HV(e)].filter(Boolean).join("-")}function Ewe(e,t){return`var(${HV(e)}${t?`, ${t}`:""})`}function Twe(e,t=""){return`--${Cwe(e,t)}`}function Xt(e,t){const n=Twe(e,t==null?void 0:t.prefix);return{variable:n,reference:Ewe(n,Awe(t==null?void 0:t.fallback))}}function Awe(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:kwe,definePartsStyle:uv}=Be(VV.keys),_p=Xt("switch-track-width"),Dc=Xt("switch-track-height"),ww=Xt("switch-track-diff"),Pwe=Ws.subtract(_p,Dc),P3=Xt("switch-thumb-x"),xh=Xt("switch-bg"),Iwe=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[_p.reference],height:[Dc.reference],transitionProperty:"common",transitionDuration:"fast",[xh.variable]:"colors.gray.300",_dark:{[xh.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[xh.variable]:`colors.${t}.500`,_dark:{[xh.variable]:`colors.${t}.200`}},bg:xh.reference}},Mwe={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Dc.reference],height:[Dc.reference],_checked:{transform:`translateX(${P3.reference})`}},Rwe=uv(e=>({container:{[ww.variable]:Pwe,[P3.variable]:ww.reference,_rtl:{[P3.variable]:Ws(ww).negate().toString()}},track:Iwe(e),thumb:Mwe})),Owe={sm:uv({container:{[_p.variable]:"1.375rem",[Dc.variable]:"sizes.3"}}),md:uv({container:{[_p.variable]:"1.875rem",[Dc.variable]:"sizes.4"}}),lg:uv({container:{[_p.variable]:"2.875rem",[Dc.variable]:"sizes.6"}})},$we=kwe({baseStyle:Rwe,sizes:Owe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Nwe,definePartsStyle:zd}=Be(Qxe.keys),Fwe=zd({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),G1={"&[data-is-numeric=true]":{textAlign:"end"}},Dwe=zd(e=>{const{colorScheme:t}=e;return{th:{color:W("gray.600","gray.400")(e),borderBottom:"1px",borderColor:W(`${t}.100`,`${t}.700`)(e),...G1},td:{borderBottom:"1px",borderColor:W(`${t}.100`,`${t}.700`)(e),...G1},caption:{color:W("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Lwe=zd(e=>{const{c
|
||
|
to right,
|
||
|
transparent 0%,
|
||
|
${$r(n,s)} 50%,
|
||
|
transparent 100%
|
||
|
)`;return{...!r&&i&&o,...r?{bgImage:a}:{bgColor:s}}},OCe={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},$Ce=e=>({bg:W("gray.100","whiteAlpha.300")(e)}),NCe=e=>({transitionProperty:"common",transitionDuration:"slow",...RCe(e)}),FCe=Zh(e=>({label:OCe,filledTrack:NCe(e),track:$Ce(e)})),DCe={xs:Zh({track:{h:"1"}}),sm:Zh({track:{h:"2"}}),md:Zh({track:{h:"3"}}),lg:Zh({track:{h:"4"}})},LCe=MCe({sizes:DCe,baseStyle:FCe,defaultProps:{size:"md",colorScheme:"blue"}}),BCe=e=>typeof e=="function";function Fr(e,...t){return BCe(e)?e(...t):e}var{definePartsStyle:gv,defineMultiStyleConfig:zCe}=Be(RV.keys),xp=Ae("checkbox-size"),jCe=e=>{const{colorScheme:t}=e;return{w:xp.reference,h:xp.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:W(`${t}.500`,`${t}.200`)(e),borderColor:W(`${t}.500`,`${t}.200`)(e),color:W("white","gray.900")(e),_hover:{bg:W(`${t}.600`,`${t}.300`)(e),borderColor:W(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:W("gray.200","transparent")(e),bg:W("gray.200","whiteAlpha.300")(e),color:W("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:W(`${t}.500`,`${t}.200`)(e),borderColor:W(`${t}.500`,`${t}.200`)(e),color:W("white","gray.900")(e)},_disabled:{bg:W("gray.100","whiteAlpha.100")(e),borderColor:W("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:W("red.500","red.300")(e)}}},VCe={_disabled:{cursor:"not-allowed"}},UCe={userSelect:"none",_disabled:{opacity:.4}},GCe={transitionProperty:"transform",transitionDuration:"normal"},HCe=gv(e=>({icon:GCe,container:VCe,control:Fr(jCe,e),label:UCe})),WCe={sm:gv({control:{[xp.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:gv({control:{[xp.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:gv({control:{[xp.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},H1=zCe({baseStyle:HCe,sizes:WCe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:qCe,definePartsStyle:mv}=Be(Kxe.keys),KCe=e=>{var t;const n=(t=Fr(H1.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n==null?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},XCe=mv(e=>{var t,n,r,i;return{label:(n=(t=H1).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=H1).baseStyle)==null?void 0:i.call(r,e).container,control:KCe(e)}}),QCe={md:mv({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:mv({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:mv({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},YCe=qCe({baseStyle:XCe,sizes:QCe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ZCe,definePartsStyle:JCe}=Be(zV.keys),ly=Ae("select-bg"),BM,e5e={...(BM=ft.baseStyle)==null?void 0:BM.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:ly.reference,[ly.variable]:"colors.white",_dark:{[ly.variable]:"colors.gray.700"},"> option, > optgroup":{bg:ly.reference}},t5e={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},n5e=JCe({field:e5e,icon:t5e}),cy={paddingInlineEnd:"8"},zM,jM,VM,UM,GM,HM,WM,qM,r5e={lg:{...(zM=ft.sizes)==null?void 0:zM.lg,field:{...(jM=ft.sizes)==null?void 0:jM.lg.field,...cy}},md:{...(VM=ft.sizes)==null?void 0:VM.md,field:{...(UM=ft.sizes)==null?void 0:UM.md.field,...cy}},sm:{...(GM=ft.sizes)==null?void 0:GM.sm,field:{...(HM=ft.sizes)==null?void 0:HM.sm.field,...cy}},xs:{...(WM=ft.sizes)==null?void 0:WM.xs,field:{...(qM=ft.sizes)==null?void 0:qM.xs.field,...cy},icon:{insetEnd:"1"}}},i5e=ZCe({baseStyle:n5e,sizes:r5e,variants:ft.variants,defaultProps:ft.defaultProps}),Tw=Ae("skeleton-start-color"),Aw=Ae("skeleton-end-color"),o5e={[Tw.variable]:"colors.gray.100",[Aw.variable]:"colors.gray.400",_dark:{[Tw.variable]:"colors.gray.800",[Aw.variable]:"colors.gray.600"},background:Tw.reference,borderColor:Aw.reference,opacity:.7,borderRadius:"sm"},s5e={baseStyle:o5e},kw=Ae("sk
|
||
|
[data-motion-pop-id="${n}"] {
|
||
|
position: absolute !important;
|
||
|
width: ${o}px !important;
|
||
|
height: ${s}px !important;
|
||
|
top: ${a}px !important;
|
||
|
left: ${l}px !important;
|
||
|
}
|
||
|
`),()=>{document.head.removeChild(c)}},[t]),I.createElement(h6e,{isPresent:t,childRef:r,sizeRef:i},I.cloneElement(e,{ref:r}))}const Zw=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const a=wU(g6e),l=I.useId(),c=I.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:u=>{a.set(u,!0);for(const d of a.values())if(!d)return;r&&r()},register:u=>(a.set(u,!1),()=>a.delete(u))}),o?void 0:[n]);return I.useMemo(()=>{a.forEach((u,d)=>a.set(d,!1))},[n]),I.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=I.createElement(p6e,{isPresent:n},e)),I.createElement(Xm.Provider,{value:c},e)};function g6e(){return new Map}function m6e(e){return I.useEffect(()=>()=>e(),[])}const dc=e=>e.key||"";function y6e(e,t){e.forEach(n=>{const r=dc(n);t.set(r,n)})}function v6e(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const PG=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const a=I.useContext(fA).forceRender||f6e()[0],l=kG(),c=v6e(e);let u=c;const d=I.useRef(new Map).current,f=I.useRef(u),h=I.useRef(new Map).current,p=I.useRef(!0);if(lA(()=>{p.current=!1,y6e(c,h),f.current=u}),m6e(()=>{p.current=!0,h.clear(),d.clear()}),p.current)return I.createElement(I.Fragment,null,u.map(y=>I.createElement(Zw,{key:dc(y),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:s},y)));u=[...u];const m=f.current.map(dc),_=c.map(dc),v=m.length;for(let y=0;y<v;y++){const g=m[y];_.indexOf(g)===-1&&!d.has(g)&&d.set(g,void 0)}return s==="wait"&&d.size&&(u=[]),d.forEach((y,g)=>{if(_.indexOf(g)!==-1)return;const b=h.get(g);if(!b)return;const S=m.indexOf(g);let w=y;if(!w){const C=()=>{d.delete(g);const x=Array.from(h.keys()).filter(k=>!_.includes(k));if(x.forEach(k=>h.delete(k)),f.current=c.filter(k=>{const A=dc(k);return A===g||x.includes(A)}),!d.size){if(l.current===!1)return;a(),r&&r()}};w=I.createElement(Zw,{key:dc(b),isPresent:!1,onExitComplete:C,custom:t,presenceAffectsLayout:o,mode:s},b),d.set(g,w)}u.splice(S,0,w)}),u=u.map(y=>{const g=y.key;return d.has(g)?y:I.createElement(Zw,{key:dc(y),isPresent:!0,presenceAffectsLayout:o,mode:s},y)}),I.createElement(I.Fragment,null,d.size?u:u.map(y=>I.cloneElement(y)))};var b6e={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},IG=I.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:o=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:c=b6e,toastSpacing:u="0.5rem"}=e,[d,f]=I.useState(a),h=iPe();n9(()=>{h||r==null||r()},[h]),n9(()=>{f(a)},[a]);const p=()=>f(null),m=()=>f(a),_=()=>{h&&i()};I.useEffect(()=>{h&&o&&i()},[h,o,i]),tTe(_,d);const v=I.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:u,...l}),[l,u]),y=I.useMemo(()=>Z4e(s),[s]);return ie.jsx(AG.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:p,onHoverEnd:m,custom:{position:s},style:y,children:ie.jsx(or.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:v,children:us(n,{id:t,onClose:_})})})});IG.displayName="ToastComponent";function _6e(e,t){var n;const r=e??"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r];return(n=o==null?void 0:o[t])!=null?n:r}var aR={path:ie.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[ie.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),ie.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),ie.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"
|
||
|
var(--invokeai-colors-base-50) 0%,
|
||
|
var(--invokeai-colors-base-50) 70%,
|
||
|
var(--invokeai-colors-base-200) 70%,
|
||
|
var(--invokeai-colors-base-200) 100%)`},_disabled:{"::-webkit-resizer":{backgroundImage:`linear-gradient(135deg,
|
||
|
var(--invokeai-colors-base-50) 0%,
|
||
|
var(--invokeai-colors-base-50) 70%,
|
||
|
var(--invokeai-colors-base-200) 70%,
|
||
|
var(--invokeai-colors-base-200) 100%)`}},_dark:{"::-webkit-resizer":{backgroundImage:`linear-gradient(135deg,
|
||
|
var(--invokeai-colors-base-900) 0%,
|
||
|
var(--invokeai-colors-base-900) 70%,
|
||
|
var(--invokeai-colors-base-800) 70%,
|
||
|
var(--invokeai-colors-base-800) 100%)`},_disabled:{"::-webkit-resizer":{backgroundImage:`linear-gradient(135deg,
|
||
|
var(--invokeai-colors-base-900) 0%,
|
||
|
var(--invokeai-colors-base-900) 70%,
|
||
|
var(--invokeai-colors-base-800) 70%,
|
||
|
var(--invokeai-colors-base-800) 100%)`}}},p:2}),$8e={variants:{invokeAI:O8e},defaultProps:{size:"md",variant:"invokeAI"}},N8e=Xt("popper-arrow-bg"),F8e=e=>({borderRadius:"base",shadow:"dark-lg",bg:W("base.700","base.200")(e),[N8e.variable]:W("colors.base.700","colors.base.200")(e),pb:1.5}),D8e={baseStyle:F8e},fR={backgroundColor:"accentAlpha.150 !important",borderColor:"accentAlpha.700 !important",borderRadius:"base !important",borderStyle:"dashed !important",_dark:{borderColor:"accent.400 !important"}},L8e={".react-flow__nodesselection-rect":{...fR,padding:"1rem !important",boxSizing:"content-box !important",transform:"translate(-1rem, -1rem) !important"},".react-flow__selection":fR},B8e=e=>({color:W("accent.500","accent.300")(e)}),z8e={variants:{accent:B8e}},j8e={config:{cssVarPrefix:"invokeai",initialColorMode:"dark",useSystemColorMode:!1},layerStyles:{body:{bg:"base.50",color:"base.900",".chakra-ui-dark &":{bg:"base.900",color:"base.50"}},first:{bg:"base.100",color:"base.900",".chakra-ui-dark &":{bg:"base.850",color:"base.100"}},second:{bg:"base.200",color:"base.900",".chakra-ui-dark &":{bg:"base.800",color:"base.100"}},third:{bg:"base.300",color:"base.900",".chakra-ui-dark &":{bg:"base.750",color:"base.100"}},nodeBody:{bg:"base.100",color:"base.900",".chakra-ui-dark &":{bg:"base.800",color:"base.100"}},nodeHeader:{bg:"base.200",color:"base.900",".chakra-ui-dark &":{bg:"base.900",color:"base.100"}},nodeFooter:{bg:"base.200",color:"base.900",".chakra-ui-dark &":{bg:"base.900",color:"base.100"}}},styles:{global:()=>({layerStyle:"body","*":{...JIe},...L8e})},direction:"ltr",fonts:{body:"'Inter Variable', sans-serif",heading:"'Inter Variable', sans-serif"},shadows:{light:{accent:"0 0 10px 0 var(--invokeai-colors-accent-300)",accentHover:"0 0 10px 0 var(--invokeai-colors-accent-400)",ok:"0 0 7px var(--invokeai-colors-ok-600)",working:"0 0 7px var(--invokeai-colors-working-600)",error:"0 0 7px var(--invokeai-colors-error-600)"},dark:{accent:"0 0 10px 0 var(--invokeai-colors-accent-600)",accentHover:"0 0 10px 0 var(--invokeai-colors-accent-500)",ok:"0 0 7px var(--invokeai-colors-ok-400)",working:"0 0 7px var(--invokeai-colors-working-400)",error:"0 0 7px var(--invokeai-colors-error-400)"},selected:{light:"0px 0px 0px 1px var(--invokeai-colors-base-150), 0px 0px 0px 4px var(--invokeai-colors-accent-400)",dark:"0px 0px 0px 1px var(--invokeai-colors-base-900), 0px 0px 0px 4px var(--invokeai-colors-accent-500)"},hoverSelected:{light:"0px 0px 0px 1px var(--invokeai-colors-base-150), 0px 0px 0px 4px var(--invokeai-colors-accent-500)",dark:"0px 0px 0px 1px var(--invokeai-colors-base-900), 0px 0px 0px 4px var(--invokeai-colors-accent-400)"},hoverUnselected:{light:"0px 0px 0px 1px var(--invokeai-colors-base-150), 0px 0px 0px 3px var(--invokeai-colors-accent-500)",dark:"0px 0px 0px 1px var(--invokeai-colors-base-900), 0px 0px 0px 3px var(--invokeai-colors-accent-400)"},nodeSelected:{light:"0 0 0 3px var(--invokeai-colors-accent-400)",dark:"0 0 0 3px var(--invokeai-colors-accent-500)"},nodeHovered:{light:"0 0 0 2px var(--invokeai-colors-accent-500)",dark:"0 0 0 2px var(--invokeai-colors-accent-400)"},nodeHoveredSelected:{light:"0 0 0 3px var(--invokeai-colors-accent-500)",dark:"0 0 0 3px var(--invokeai-colors-accent-400)"},nodeInProgress:{light:"0 0 0 2px var(--invokeai-colors-accent-500), 0 0 10px 2px var(--invokeai-colors-accent-600)",dark:"0 0 0 2px var(--invokeai-colors-yellow-400), 0 0 20px 2px var(--invokeai-colors-orange-700)"}},colors:V6e,components:{Button:J6e,Input:yIe,Editable:dIe,Textarea:$8e,Tabs:P8e,Progress:ZIe,Accordion:Q6e,FormLabel:hIe,Switch:S8e,NumberInput:zIe,Select:o8e,Skeleton:a8e,Slider:g8e,Popover:WIe,Modal:RIe,Checkbox:iIe,Menu:SIe,Text:R8e,Tooltip:D8e,Heading:z8e}},V8e={defaultOptions:{isClosable:!0,position:"bottom-right"}},{toast:Th}=F6e({theme:j8e,defaultOptions:V8e.defaultOptions}),U8e=()=>{fe({matcher:en.endpoints.enqueueBatch.matchFulfilled,effect:async e=>{const t=e.payload,n=e.meta.arg.originalArgs;ue("queue").debug({enqueueResult:tt(t)},"Batch enqueued"),Th.isActive("batch-queued")||Th({i
|
||
|
${i.loc.join(".")}`,{length:128})})}):t.status!==403&&Th({title:J("queue.batchFailedToQueue"),description:J("common.unknownError"),status:"error"}),ue("queue").error({batchConfig:tt(n),error:tt(t)},J("queue.batchFailedToQueue"))}})},hu=m4({memoize:kQ,memoizeOptions:{resultEqualityCheck:$4}}),HG=(e,t)=>{var d;const{generation:n,canvas:r,nodes:i,controlAdapters:o}=e,s=((d=n.initialImage)==null?void 0:d.imageName)===t,a=r.layerState.objects.some(f=>f.kind==="image"&&f.imageName===t),l=i.nodes.filter(Sn).some(f=>Gu(f.data.inputs,h=>{var p;return vT(h)&&((p=h.value)==null?void 0:p.image_name)===t})),c=As(o).some(f=>f.controlImage===t||hi(f)&&f.processedControlImage===t);return{isInitialImage:s,isCanvasImage:a,isNodesImage:l,isControlImage:c}},G8e=hu([e=>e],e=>{const{imagesToDelete:t}=e.deleteImageModal;return t.length?t.map(r=>HG(e,r.image_name)):[]}),H8e=()=>{fe({matcher:ce.endpoints.deleteBoardAndImages.matchFulfilled,effect:async(e,{dispatch:t,getState:n})=>{const{deleted_images:r}=e.payload;let i=!1,o=!1,s=!1,a=!1;const l=n();r.forEach(c=>{const u=HG(l,c);u.isInitialImage&&!i&&(t(oT()),i=!0),u.isCanvasImage&&!o&&(t(dT()),o=!0),u.isNodesImage&&!s&&(t(Rj()),s=!0),u.isControlImage&&!a&&(t(hae()),a=!0)})}})},W8e=()=>{fe({matcher:br(vp,Q5),effect:async(e,{getState:t,dispatch:n,condition:r,cancelActiveListeners:i})=>{i();const o=t(),s=vp.match(e)?e.payload.boardId:o.gallery.selectedBoardId,l=(Q5.match(e)?e.payload:o.gallery.galleryView)==="images"?Rn:Pr,c={board_id:s??"none",categories:l};if(await r(()=>ce.endpoints.listImages.select(c)(t()).isSuccess,5e3)){const{data:d}=ce.endpoints.listImages.select(c)(t());if(d&&vp.match(e)&&e.payload.selectedImageName){const f=_g.selectAll(d)[0],h=_g.selectById(d,e.payload.selectedImageName);n(ps(h||f||null))}else n(ps(null))}else n(ps(null))}})},q8e=he("canvas/canvasSavedToGallery"),K8e=he("canvas/canvasMaskSavedToGallery"),X8e=he("canvas/canvasCopiedToClipboard"),Q8e=he("canvas/canvasDownloadedAsImage"),Y8e=he("canvas/canvasMerged"),Z8e=he("canvas/stagingAreaImageSaved"),J8e=he("canvas/canvasMaskToControlAdapter"),eMe=he("canvas/canvasImageToControlAdapter");let WG=null,qG=null;const MWe=e=>{WG=e},LS=()=>WG,RWe=e=>{qG=e},tMe=()=>qG,nMe=async e=>new Promise((t,n)=>{e.toBlob(r=>{if(r){t(r);return}n("Unable to create Blob")})}),rb=async(e,t)=>await nMe(e.toCanvas(t)),BS=async(e,t=!1)=>{const n=LS();if(!n)throw new Error("Problem getting base layer blob");const{shouldCropToBoundingBoxOnSave:r,boundingBoxCoordinates:i,boundingBoxDimensions:o}=e.canvas,s=n.clone();s.scale({x:1,y:1});const a=s.getAbsolutePosition(),l=r||t?{x:i.x+a.x,y:i.y+a.y,width:o.width,height:o.height}:s.getClientRect();return rb(s,l)},rMe=(e,t="image/png")=>{navigator.clipboard.write([new ClipboardItem({[t]:e})])},iMe=()=>{fe({actionCreator:X8e,effect:async(e,{dispatch:t,getState:n})=>{const r=B_.get().child({namespace:"canvasCopiedToClipboardListener"}),i=n();try{const o=BS(i);rMe(o)}catch(o){r.error(String(o)),t(Ve({title:J("toast.problemCopyingCanvas"),description:J("toast.problemCopyingCanvasDesc"),status:"error"}));return}t(Ve({title:J("toast.canvasCopiedClipboard"),status:"success"}))}})},oMe=(e,t)=>{const n=URL.createObjectURL(e),r=document.createElement("a");r.href=n,r.download=t,document.body.appendChild(r),r.click(),document.body.removeChild(r),r.remove()},sMe=()=>{fe({actionCreator:Q8e,effect:async(e,{dispatch:t,getState:n})=>{const r=B_.get().child({namespace:"canvasSavedToGalleryListener"}),i=n();let o;try{o=await BS(i)}catch(s){r.error(String(s)),t(Ve({title:J("toast.problemDownloadingCanvas"),description:J("toast.problemDownloadingCanvasDesc"),status:"error"}));return}oMe(o,"canvas.png"),t(Ve({title:J("toast.canvasDownloaded"),status:"success"}))}})},aMe=()=>{fe({actionCreator:eMe,effect:async(e,{dispatch:t,getState:n})=>{const r=ue("canvas"),i=n(),{id:o}=e.payload;let s;try{s=await BS(i,!0)}catch(u){r.error(String(u)),t(Ve({title:J("toast.problemSavingCanvas"),description:J("toast.problemSavingCanvasDesc"),status:"error"}));return}const{autoAddBoardId:a}=i.gallery,l=await t(ce.endpoints.upload
|
||
|
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,s=this.attrs.height,a=o!==Vu&&o!==void 0,l=s!==Vu&&s!==void 0,c=this.padding(),u=o-c*2,d=s-c*2,f=0,h=this.wrap(),p=h!==IR,m=h!==eRe&&p,_=this.ellipsis();this.textArr=[],oC().font=this._getContextFont();for(var v=_?this._getTextWidth(iC):0,y=0,g=t.length;y<g;++y){var b=t[y],S=this._getTextWidth(b);if(a&&S>u)for(;b.length>0;){for(var w=0,C=b.length,x="",k=0;w<C;){var A=w+C>>>1,R=b.slice(0,A+1),L=this._getTextWidth(R)+v;L<=u?(w=A+1,x=R,k=L):C=A}if(x){if(m){var M,E=b[x.length],P=E===Ty||E===AR;P&&k<=u?M=x.length:M=Math.max(x.lastIndexOf(Ty),x.lastIndexOf(AR))+1,M>0&&(w=M,x=x.slice(0,w),k=this._getTextWidth(x))}x=x.trimRight(),this._addTextLine(x),r=Math.max(r,k),f+=i;var O=this._shouldHandleEllipsis(f);if(O){this._tryToAddEllipsisToLastLine();break}if(b=b.slice(w),b=b.trimLeft(),b.length>0&&(S=this._getTextWidth(b),S<=u)){this._addTextLine(b),f+=i,r=Math.max(r,S);break}}else break}else this._addTextLine(b),f+=i,r=Math.max(r,S),this._shouldHandleEllipsis(f)&&y<g-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),l&&f+i>d)break}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(t){var n=+this.fontSize(),r=this.lineHeight()*n,i=this.attrs.height,o=i!==Vu&&i!==void 0,s=this.padding(),a=i-s*2,l=this.wrap(),c=l!==IR;return!c||o&&t+r>a}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==Vu&&t!==void 0,r=this.padding(),i=t-r*2,o=this.ellipsis(),s=this.textArr[this.textArr.length-1];if(!(!s||!o)){if(n){var a=this._getTextWidth(s.text+iC)<i;a||(s.text=s.text.slice(0,s.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(s.text+iC)}}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){const t=this.textDecoration().indexOf("underline")!==-1||this.textDecoration().indexOf("line-through")!==-1,n=this.hasShadow();return t&&n?!0:super._useBufferCanvas()}}ou.Text=on;on.prototype._fillFunc=rRe;on.prototype._strokeFunc=iRe;on.prototype.className=K9e;on.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];(0,U9e._registerNode)(on);xr.Factory.overWriteSetter(on,"width",(0,Vl.getNumberOrAutoValidator)());xr.Factory.overWriteSetter(on,"height",(0,Vl.getNumberOrAutoValidator)());xr.Factory.addGetterSetter(on,"direction",mH);xr.Factory.addGetterSetter(on,"fontFamily","Arial");xr.Factory.addGetterSetter(on,"fontSize",12,(0,Vl.getNumberValidator)());xr.Factory.addGetterSetter(on,"fontStyle",vH);xr.Factory.addGetterSetter(on,"fontVariant",vH);xr.Factory.addGetterSetter(on,"padding",0,(0,Vl.getNumberValidator)());xr.Factory.addGetterSetter(on,"align",yH);xr.Factory.addGetterSetter(on,"verticalAlign",X9e);xr.Factory.addGetterSetter(on,"lineHeight",1,(0,Vl.getNumberValidator)());xr.Factory.addGetterSetter(on,"wrap",J9e);xr.Factory.addGetterSetter(on,"ellipsis",!1,(0,Vl.getBooleanValidator)());xr.Factory.addGetterSetter(on,"letterSpacing",0,(0,Vl.getNumberValidator)());xr.Factory.addGetterSetter(on,"text","",(0,Vl.getStringValidator)());xr.Factory.addGetterSetter(on,"textDecoration","");var a2={};Object.defineProperty(a2,"__esModule",{value:!0});a2.TextPath=void 0;const sC=Qt,Uo=ze,sRe=An,kh=Uf,aC=ou,_H=xe,aRe=Ue;var lRe="",SH="normal";function xH(e){e.fillText(this.partialText,0,0)}function wH(e){e.strokeText(this.partialText,0,0)}class kn extends sRe.Shape{constructor(t){super(t),this.dummyCanvas=sC.Util.createCanvasElement(),this.dataArray=[],this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute(),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_getTextPathLength(){return kh.Path.getPathLength(this.dataArray)}_getPointAtLength(t){if(!this.attrs.data)return null;const n=this.pathLength;return t-1>n?null:kh.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=kh.Path.parsePathData(this.attrs.data),this.pathLeng
|
||
|
To pick up a draggable item, press the space bar.
|
||
|
While dragging, use the arrow keys to move the item.
|
||
|
Press space again to drop the item in its new position, or press escape to cancel.
|
||
|
`},_Le={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function SLe(e){let{announcements:t=_Le,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=bLe}=e;const{announce:o,announcement:s}=mLe(),a=L2("DndLiveRegion"),[l,c]=I.useState(!1);if(I.useEffect(()=>{c(!0)},[]),yLe(I.useMemo(()=>({onDragStart(d){let{active:f}=d;o(t.onDragStart({active:f}))},onDragMove(d){let{active:f,over:h}=d;t.onDragMove&&o(t.onDragMove({active:f,over:h}))},onDragOver(d){let{active:f,over:h}=d;o(t.onDragOver({active:f,over:h}))},onDragEnd(d){let{active:f,over:h}=d;o(t.onDragEnd({active:f,over:h}))},onDragCancel(d){let{active:f,over:h}=d;o(t.onDragCancel({active:f,over:h}))}}),[o,t])),!l)return null;const u=Q.createElement(Q.Fragment,null,Q.createElement(pLe,{id:r,value:i.draggable}),Q.createElement(gLe,{id:a,announcement:s}));return n?gi.createPortal(u,n):u}var wn;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(wn||(wn={}));function xb(){}function fO(e,t){return I.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function xLe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return I.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const zo=Object.freeze({x:0,y:0});function wLe(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function CLe(e,t){const n=Kg(e);if(!n)return"0 0";const r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}function ELe(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function TLe(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function ALe(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function kLe(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function PLe(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),s=i-r,a=o-n;if(r<i&&n<o){const l=t.width*t.height,c=e.width*e.height,u=s*a,d=u/(l+c-u);return Number(d.toFixed(4))}return 0}const ILe=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const o of r){const{id:s}=o,a=n.get(s);if(a){const l=PLe(a,t);l>0&&i.push({id:s,data:{droppableContainer:o,value:l}})}}return i.sort(TLe)};function MLe(e,t){const{top:n,left:r,bottom:i,right:o}=t;return n<=e.y&&e.y<=i&&r<=e.x&&e.x<=o}const RLe=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];const i=[];for(const o of t){const{id:s}=o,a=n.get(s);if(a&&MLe(r,a)){const c=ALe(a).reduce((d,f)=>d+wLe(r,f),0),u=Number((c/4).toFixed(4));i.push({id:s,data:{droppableContainer:o,value:u}})}}return i.sort(ELe)};function OLe(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function oW(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:zo}function $Le(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return i.reduce((s,a)=>({...s,top:s.top+e*a.y,bottom:s.bottom+e*a.y,left:s.left+e*a.x,right:s.right+e*a.x}),{...n})}}const NLe=$Le(1);function sW(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function FLe(e,t,n){const r=sW(t);if(!r)return e;const{scaleX:i,scaleY:o,x:s,y:a}=r,l=e.left-s-(1-i)*parseFloat(n),
|
||
|
`)===0?$.substr(1,$.length):$}).forEach(function($){var D=$.split(":"),N=D.shift().trim();if(N){var z=D.join(":").trim();O.append(N,z)}}),O}w.call(k.prototype);function L(P,O){if(!(this instanceof L))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');O||(O={}),this.type="default",this.status=O.status===void 0?200:O.status,this.ok=this.status>=200&&this.status<300,this.statusText=O.statusText===void 0?"":""+O.statusText,this.headers=new m(O.headers),this.url=O.url||"",this._initBody(P)}w.call(L.prototype),L.prototype.clone=function(){return new L(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},L.error=function(){var P=new L(null,{status:0,statusText:""});return P.type="error",P};var M=[301,302,303,307,308];L.redirect=function(P,O){if(M.indexOf(O)===-1)throw new RangeError("Invalid status code");return new L(null,{status:O,headers:{location:P}})},s.DOMException=a.DOMException;try{new s.DOMException}catch{s.DOMException=function(O,F){this.message=O,this.name=F;var $=Error(O);this.stack=$.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function E(P,O){return new Promise(function(F,$){var D=new k(P,O);if(D.signal&&D.signal.aborted)return $(new s.DOMException("Aborted","AbortError"));var N=new XMLHttpRequest;function z(){N.abort()}N.onload=function(){var H={status:N.status,statusText:N.statusText,headers:R(N.getAllResponseHeaders()||"")};H.url="responseURL"in N?N.responseURL:H.headers.get("X-Request-URL");var X="response"in N?N.response:N.responseText;setTimeout(function(){F(new L(X,H))},0)},N.onerror=function(){setTimeout(function(){$(new TypeError("Network request failed"))},0)},N.ontimeout=function(){setTimeout(function(){$(new TypeError("Network request failed"))},0)},N.onabort=function(){setTimeout(function(){$(new s.DOMException("Aborted","AbortError"))},0)};function V(H){try{return H===""&&a.location.href?a.location.href:H}catch{return H}}N.open(D.method,V(D.url),!0),D.credentials==="include"?N.withCredentials=!0:D.credentials==="omit"&&(N.withCredentials=!1),"responseType"in N&&(l.blob?N.responseType="blob":l.arrayBuffer&&D.headers.get("Content-Type")&&D.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(N.responseType="arraybuffer")),O&&typeof O.headers=="object"&&!(O.headers instanceof m)?Object.getOwnPropertyNames(O.headers).forEach(function(H){N.setRequestHeader(H,h(O.headers[H]))}):D.headers.forEach(function(H,X){N.setRequestHeader(X,H)}),D.signal&&(D.signal.addEventListener("abort",z),N.onreadystatechange=function(){N.readyState===4&&D.signal.removeEventListener("abort",z)}),N.send(typeof D._bodyInit>"u"?null:D._bodyInit)})}return E.polyfill=!0,a.fetch||(a.fetch=E,a.Headers=m,a.Request=k,a.Response=L),s.Headers=m,s.Request=k,s.Response=L,s.fetch=E,s})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}($y,$y.exports)),$y.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof He<"u"&&He.fetch?n=He.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof JBe<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||eze();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(mE,mE.exports);var TW=mE.exports;const AW=Ml(TW),EO=MO({__proto__:null,default:AW},[TW]);function Cb(e){"@babel/helpers - typeof";return Cb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cb(e)}var oa;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?oa=global.fetch:typeof window<"u"&&window.fetch?oa=window.fetch:oa=fetch);var Yg;EW()&&(typeof global<"u"&&global.XMLHttpRequest?Yg=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Yg=window.XMLHttpRequest));var Eb;typeof ActiveXObject=="function"&&(
|