mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
159 lines
1.5 MiB
JavaScript
159 lines
1.5 MiB
JavaScript
|
var nQ=Object.defineProperty;var rQ=(e,t,n)=>t in e?nQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Mw=(e,t,n)=>(rQ(e,typeof t!="symbol"?t+"":t,n),n),$w=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var ae=(e,t,n)=>($w(e,t,"read from private field"),n?n.call(e):t.get(e)),Yn=(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)},ca=(e,t,n,r)=>($w(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var zp=(e,t,n,r)=>({set _(i){ca(e,t,i,n)},get _(){return ae(e,t,r)}}),_s=(e,t,n)=>($w(e,t,"access private method"),n);function nN(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 a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).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 yt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function xS(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var rN={exports:{}},wS={},iN={exports:{}},Dt={};/**
|
||
|
* @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 J0=Symbol.for("react.element"),iQ=Symbol.for("react.portal"),oQ=Symbol.for("react.fragment"),aQ=Symbol.for("react.strict_mode"),sQ=Symbol.for("react.profiler"),lQ=Symbol.for("react.provider"),uQ=Symbol.for("react.context"),cQ=Symbol.for("react.forward_ref"),dQ=Symbol.for("react.suspense"),fQ=Symbol.for("react.memo"),hQ=Symbol.for("react.lazy"),t6=Symbol.iterator;function pQ(e){return e===null||typeof e!="object"?null:(e=t6&&e[t6]||e["@@iterator"],typeof e=="function"?e:null)}var oN={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},aN=Object.assign,sN={};function yp(e,t,n){this.props=e,this.context=t,this.refs=sN,this.updater=n||oN}yp.prototype.isReactComponent={};yp.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")};yp.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function lN(){}lN.prototype=yp.prototype;function oT(e,t,n){this.props=e,this.context=t,this.refs=sN,this.updater=n||oN}var aT=oT.prototype=new lN;aT.constructor=oT;aN(aT,yp.prototype);aT.isPureReactComponent=!0;var n6=Array.isArray,uN=Object.prototype.hasOwnProperty,sT={current:null},cN={key:!0,ref:!0,__self:!0,__source:!0};function dN(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)uN.call(t,r)&&!cN.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:J0,type:e,key:o,ref:a,props:i,_owner:sT.current}}function gQ(e,t){return{$$typeof:J0,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function lT(e){return typeof e=="object"&&e!==null&&e.$$typeof===J0}function mQ(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var r6=/\/+/g;function Nw(e,t){return typeof e=="object"&&e!==null&&e.key!=null?mQ(""+e.key):t.toString(36)}function P1(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case J0:case iQ:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+Nw(a,0):r,n6(i)?(n="",e!=null&&(n=e.replace(r6,"$&/")+"/"),P1(i,t,n,"",function(u){return u})):i!=null&&(lT(i)&&(i=gQ(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(r6,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",n6(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+Nw(o,s);a+=P1(o,t,n,l,i)}else if(l=pQ(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+Nw(o,s++),a+=P1(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 a}function Jy(e,t,n){if(e==null)return e;var r=[],i=0;return P1(e,r,"","",function(o){return t.call(n,o,i++)}),r}function yQ(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 fo={current:null},I1={transition:null},vQ={ReactCurrentDispatcher:fo,ReactCurrentBatchConfig:I1,ReactCurrentOwner:sT};Dt.Children={map:Jy,forEach:function(e,t,n){Jy(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Jy(e,function(){t++}),t},toArray:function(e){return Jy(e,function(t){return t})||[]},only:function(e){if(!lT(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Dt.Component=yp;Dt.Fragment=oQ;Dt.Profiler=sQ;Dt
|
||
|
* @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 bQ=I,_Q=Symbol.for("react.element"),SQ=Symbol.for("react.fragment"),xQ=Object.prototype.hasOwnProperty,wQ=bQ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,CQ={key:!0,ref:!0,__self:!0,__source:!0};function fN(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)xQ.call(t,r)&&!CQ.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:_Q,type:e,key:o,ref:a,props:i,_owner:wQ.current}}wS.Fragment=SQ;wS.jsx=fN;wS.jsxs=fN;rN.exports=wS;var W=rN.exports,r3={},hN={exports:{}},oa={},pN={exports:{}},gN={};/**
|
||
|
* @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(M,R){var $=M.length;M.push(R);e:for(;0<$;){var B=$-1>>>1,U=M[B];if(0<i(U,R))M[B]=R,M[$]=U,$=B;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var R=M[0],$=M.pop();if($!==R){M[0]=$;e:for(var B=0,U=M.length,G=U>>>1;B<G;){var Y=2*(B+1)-1,ee=M[Y],J=Y+1,j=M[J];if(0>i(ee,$))J<U&&0>i(j,ee)?(M[B]=j,M[J]=$,B=J):(M[B]=ee,M[Y]=$,B=Y);else if(J<U&&0>i(j,$))M[B]=j,M[J]=$,B=J;else break e}}return R}function i(M,R){var $=M.sortIndex-R.sortIndex;return $!==0?$:M.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,m=!1,_=typeof setTimeout=="function"?setTimeout:null,b=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(M){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=M)r(u),R.sortIndex=R.expirationTime,t(l,R);else break;R=n(u)}}function v(M){if(m=!1,g(M),!p)if(n(l)!==null)p=!0,D(S);else{var R=n(u);R!==null&&L(v,R.startTime-M)}}function S(M,R){p=!1,m&&(m=!1,b(C),C=-1),h=!0;var $=f;try{for(g(R),d=n(l);d!==null&&(!(d.expirationTime>R)||M&&!P());){var B=d.callback;if(typeof B=="function"){d.callback=null,f=d.priorityLevel;var U=B(d.expirationTime<=R);R=e.unstable_now(),typeof U=="function"?d.callback=U:d===n(l)&&r(l),g(R)}else r(l);d=n(l)}if(d!==null)var G=!0;else{var Y=n(u);Y!==null&&L(v,Y.startTime-R),G=!1}return G}finally{d=null,f=$,h=!1}}var w=!1,x=null,C=-1,T=5,E=-1;function P(){return!(e.unstable_now()-E<T)}function N(){if(x!==null){var M=e.unstable_now();E=M;var R=!0;try{R=x(!0,M)}finally{R?O():(w=!1,x=null)}}else w=!1}var O;if(typeof y=="function")O=function(){y(N)};else if(typeof MessageChannel<"u"){var A=new MessageChannel,k=A.port2;A.port1.onmessage=N,O=function(){k.postMessage(null)}}else O=function(){_(N,0)};function D(M){x=M,w||(w=!0,O())}function L(M,R){C=_(function(){M(e.unstable_now())},R)}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(M){M.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,D(S))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(M){switch(f){case 1:case 2:case 3:var R=3;break;default:R=f}var $=f;f=R;try{return M()}finally{f=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,R){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var $=f;f=M;try{return R()}finally{f=$}},e.unstable_scheduleCallback=function(M,R,$){var B=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?B+$:B):$=B,M){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=$+U,M={id:c++,callback:R,priorityLevel:M,startTime:$,expirationTime:U,sortIndex:-1},$>B?(M.sortIndex=$,t(u,M),n(l)===null&&M===n(u)&&(m?(b(C),C=-1):m=!0,L(v,$-B))):(M.sortIndex=U,t(l,M),p||h||(p=!0,D(S))),M},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(M){var R=f;return function(){var $=f;f=R;try{return M.apply(this,arguments)}finally{f=$}}}})(gN);pN.exports=gN;var AQ=pN.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 mN=I,ta=AQ;function le(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 yN=new Set,ym={};function qd(e,t){Bh(e,t),Bh(e+"Capture",t)}function Bh(e,t){for(ym[e]=t,e=0;e<t.length;e++)yN.add(t[e])}var ql=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),i3=Object.prototype.hasOwnProperty,EQ=/^[: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]*$/,o6={},a6={};function TQ(e){return i3.call(a6,e)?!0:i3.call(o6,e)?!1:EQ.test(e)?a6[e]=!0:(o6[e]=!0,!1)}function kQ(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 PQ(e,t,n,r){if(t===null||typeof t>"u"||kQ(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 ho(e,t,n,r,i,o,a){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=a}var Ri={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ri[e]=new ho(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ri[t]=new ho(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ri[e]=new ho(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ri[e]=new ho(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){Ri[e]=new ho(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ri[e]=new ho(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ri[e]=new ho(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ri[e]=new ho(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ri[e]=new ho(e,5,!1,e.toLowerCase(),null,!1,!1)});var uT=/[\-:]([a-z])/g;function cT(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
|
||
|
`+Dw+e}var Lw=!1;function Fw(e,t){if(!e||Lw)return"";Lw=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
||
|
`),o=r.stack.split(`
|
||
|
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
|
||
|
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Lw=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_g(e):""}function IQ(e){switch(e.tag){case 5:return _g(e.type);case 16:return _g("Lazy");case 13:return _g("Suspense");case 19:return _g("SuspenseList");case 0:case 2:case 15:return e=Fw(e.type,!1),e;case 11:return e=Fw(e.type.render,!1),e;case 1:return e=Fw(e.type,!0),e;default:return""}}function l3(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 Nf:return"Fragment";case $f:return"Portal";case o3:return"Profiler";case fT:return"StrictMode";case a3:return"Suspense";case s3:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case bN:return(e.displayName||"Context")+".Consumer";case vN:return(e._context.displayName||"Context")+".Provider";case hT:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pT:return t=e.displayName||null,t!==null?t:l3(e.type)||"Memo";case wu:t=e._payload,e=e._init;try{return l3(e(t))}catch{}}return null}function RQ(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 l3(t);case 8:return t===fT?"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 oc(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function SN(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function OQ(e){var t=SN(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(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function tv(e){e._valueTracker||(e._valueTracker=OQ(e))}function xN(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=SN(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function xb(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 u3(e,t){var n=t.checked;return dr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function l6(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=oc(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 wN(e,t){t=t.checked,t!=null&&dT(e,"checked",t,!1)}function c3(e,t){wN(e,t);var n=oc(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")?d3(e,t.type,n):t.hasOwnProperty("defaultValue")&&d3(e,t.type,oc(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function u6(e,t,n){if(t.hasOwnProperty("val
|
||
|
`).replace(UX,"")}function uv(e,t,n){if(t=O6(t),O6(e)!==t&&n)throw Error(le(425))}function Ib(){}var A3=null,E3=null;function T3(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 k3=typeof setTimeout=="function"?setTimeout:void 0,VX=typeof clearTimeout=="function"?clearTimeout:void 0,M6=typeof Promise=="function"?Promise:void 0,GX=typeof queueMicrotask=="function"?queueMicrotask:typeof M6<"u"?function(e){return M6.resolve(null).then(e).catch(qX)}:k3;function qX(e){setTimeout(function(){throw e})}function Yw(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),xm(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);xm(t)}function Hu(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 $6(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 bp=Math.random().toString(36).slice(2),Ns="__reactFiber$"+bp,Tm="__reactProps$"+bp,Hl="__reactContainer$"+bp,P3="__reactEvents$"+bp,HX="__reactListeners$"+bp,WX="__reactHandles$"+bp;function id(e){var t=e[Ns];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Hl]||n[Ns]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$6(e);e!==null;){if(n=e[Ns])return n;e=$6(e)}return t}e=n,n=e.parentNode}return null}function ny(e){return e=e[Ns]||e[Hl],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Bf(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(le(33))}function kS(e){return e[Tm]||null}var I3=[],zf=-1;function wc(e){return{current:e}}function Kn(e){0>zf||(e.current=I3[zf],I3[zf]=null,zf--)}function $n(e,t){zf++,I3[zf]=e.current,e.current=t}var ac={},Wi=wc(ac),Po=wc(!1),kd=ac;function zh(e,t){var n=e.type.contextTypes;if(!n)return ac;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 Io(e){return e=e.childContextTypes,e!=null}function Rb(){Kn(Po),Kn(Wi)}function N6(e,t,n){if(Wi.current!==ac)throw Error(le(168));$n(Wi,t),$n(Po,n)}function dD(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(le(108,RQ(e)||"Unknown",i));return dr({},n,r)}function Ob(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ac,kd=Wi.current,$n(Wi,e),$n(Po,Po.current),!0}function D6(e,t,n){var r=e.stateNode;if(!r)throw Error(le(169));n?(e=dD(e,t,kd),r.__reactInternalMemoizedMergedChildContext=e,Kn(Po),Kn(Wi),$n(Wi,e)):Kn(Po),$n(Po,n)}var wl=null,PS=!1,Zw=!1;function fD(e){wl===null?wl=[e]:wl.push(e)}function KX(e){PS=!0,fD(e)}function Cc(){if(!Zw&&wl!==null){Zw=!0;var e=0,t=yn;try{var n=wl;for(yn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}wl=null,PS=!1}catch(i){throw wl!==null&&(wl=wl.slice(e+1)),LN(mT,Cc),i}finally{yn=t,Zw=!1}}return null}var jf=[],Uf=0,Mb=null,$b=0,ba=[],_a=0,Pd=null,Ml=1,$l="";function qc(e,t){jf[Uf++]=$b,jf[Uf++]=Mb,Mb=e,$b=t}function hD(e,t,n){ba[_a++]=Ml,ba[_a++]=$l,ba[_a++]=Pd,Pd=e;var r=Ml;e=$l;var i=32-os(r)-1;r&=~(1<<i),n+=1;var o=32-os(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Ml=1<<32-os(t)+i|n<<i|r,$l=o+e}else Ml=1<<o|n<<i|r,$l=e}function AT(e){e.return!==null&&(qc(e,1),hD(e,1,0))}function ET(e){for(;e===Mb;)Mb=jf[--Uf],jf[Uf]=null,$b=jf[--Uf],jf[Uf]=null;for(;e===Pd;)Pd=ba[--_a],ba[_a]=null,$l=ba[--_a],ba[_a]=null,Ml=ba[--_a],ba[_a]=null}var Zo=null,Xo=null,tr=!1,Za=null;function pD(e,t){var n=wa(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 rC(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function D3(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rY=typeof WeakMap=="function"?WeakMap:Map;function UD(e,t,n){n=Fl(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ub||(Ub=!0,H3=r),D3(e,t)},n}function VD(e,t,n){n=Fl(-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(){D3(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){D3(e,t),typeof r!="function"&&(Ku===null?Ku=new Set([this]):Ku.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function H6(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rY;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=yY.bind(null,e,t,n),t.then(e,e))}function W6(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 K6(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=Fl(-1,1),t.tag=2,Wu(n,t,1))),n.lanes|=1),e)}var iY=nu.ReactCurrentOwner,Ao=!1;function io(e,t,n,r){t.child=e===null?SD(t,null,n,r):Uh(t,e.child,n,r)}function Q6(e,t,n,r,i){n=n.render;var o=t.ref;return sh(t,i),r=LT(e,t,n,r,o,i),n=FT(),e!==null&&!Ao?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Kl(e,t,i)):(tr&&n&&AT(t),t.flags|=1,io(e,t,r,i),t.child)}function X6(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!KT(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,GD(e,t,o,r,i)):(e=z1(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 a=o.memoizedProps;if(n=n.compare,n=n!==null?n:Cm,n(a,r)&&e.ref===t.ref)return Kl(e,t,i)}return t.flags|=1,e=Xu(o,r),e.ref=t.ref,e.return=t,t.child=e}function GD(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Cm(o,r)&&e.ref===t.ref)if(Ao=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Ao=!0);else return t.lanes=e.lanes,Kl(e,t,i)}return L3(e,t,n,r,i)}function qD(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},$n(qf,Go),Go|=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,$n(qf,Go),Go|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,$n(qf,Go),Go|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,$n(qf,Go),Go|=r;return io(e,t,i,n),t.child}function HD(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function L3(e,t,n,r,i){var o=Io(n)?kd:Wi.current;return o=zh(t,o),sh(t,i),n=LT(e,t,n,r,o,i),r=FT(),e!==null&&!Ao?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Kl(e,t,i)):(tr&&r&&AT(t),t.flags|=1,io(e,t,n,i),t.child)}function Y6(e,t,n,r,i){if(Io(n)){var o=!0;Ob(t)}else o=!1;if(sh(t,i),t.stateNode===null)L1(e,t),bD(t,n,r),N3(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ea(u):(u=Io(n)?kd:Wi.current,u=zh(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&U6(t,a,r,u),Cu=!1;var f=t.memoizedState;a.state=f,Lb(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Po.current||Cu?(typeof c=="function"&&($3(t,n,c,r),l=t.memoizedState),(s=Cu||j6(t,n,s,r,f,l,u))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.
|
||
|
Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.
|
||
|
See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function h(){typeof process<"u";var v=function(S){return Array.from(S.values()).flatMap(function(w){return w?Object.values(w):[]})};return v_(v_([],v(a)),v(s)).filter(_C)}function p(v,S){return function(w){var x,C=o.endpointDefinitions[v],T=t({queryArgs:S,endpointDefinition:C,endpointName:v});return(x=a.get(w))==null?void 0:x[T]}}function m(v,S){return function(w){var x;return(x=s.get(w))==null?void 0:x[S]}}function _(){return function(v){return Object.values(a.get(v)||{}).filter(_C)}}function b(){return function(v){return Object.values(s.get(v)||{}).filter(_C)}}function y(v,S){var w=function(x,C){var T=C===void 0?{}:C,E=T.subscribe,P=E===void 0?!0:E,N=T.forceRefetch,O=T.subscriptionOptions,A=r0,k=T[A];return function(D,L){var M,R,$=t({queryArgs:x,endpointDefinition:S,endpointName:v}),B=n((M={type:"query",subscribe:P,forceRefetch:N,subscriptionOptions:O,endpointName:v,originalArgs:x,queryCacheKey:$},M[r0]=k,M)),U=i.endpoints[v].select(x),G=D(B),Y=U(L()),ee=G.requestId,J=G.abort,j=Y.requestId!==ee,Q=(R=a.get(D))==null?void 0:R[$],ne=function(){return U(L())},se=Object.assign(k?G.then(ne):j&&!Q?Promise.resolve(Y):Promise.all([Q,G]).then(ne),{arg:x,requestId:ee,subscriptionOptions:O,queryCacheKey:$,abort:J,unwrap:function(){return __(this,null,function(){var ce;return y_(this,function(bt){switch(bt.label){case 0:return[4,se];case 1:if(ce=bt.sent(),ce.isError)throw ce.error;return[2,ce.data]}})})},refetch:function(){return D(w(x,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){P&&D(u({queryCacheKey:$,requestId:ee}))},updateSubscriptionOptions:function(ce){se.subscriptionOptions=ce,D(d({endpointName:v,requestId:ee,queryCacheKey:$,options:ce}))}});if(!Q&&!j&&!k){var be=a.get(D)||{};be[$]=se,a.set(D,be),se.then(function(){delete be[$],Object.keys(be).length||a.delete(D)})}return se}};return w}function g(v){return function(S,w){var x=w===void 0?{}:w,C=x.track,T=C===void 0?!0:C,E=x.fixedCacheKey;return function(P,N){var O=r({type:"mutation",endpointName:v,originalArgs:S,track:T,fixedCacheKey:E}),A=P(O),k=A.requestId,D=A.abort,L=A.unwrap,M=A.unwrap().then(function(U){return{data:U}}).catch(function(U){return{error:U}}),R=function(){P(c({requestId:k,fixedCacheKey:E}))},$=Object.assign(M,{arg:A.arg,requestId:k,abort:D,unwrap:L,unsubscribe:R,reset:R}),B=s.get(P)||{};return s.set(P,B),B[k]=$,$.then(function(){delete B[k],Object.keys(B).length||s.delete(P)}),E&&(B[E]=$,$.then(function(){B[E]===$&&(delete B[E],Object.keys(B).length||s.delete(P))})),$}}}}function BI(e){return e}function Vue(e){var t=this,n=e.reducerPath,r=e.baseQuery,i=e.context.endpointDefinitions,o=e.serializeQueryArgs,a=e.api,s=function(g,v,S){return function(w){var x=i[g];w(a.internalActions.queryResultPatched({queryCacheKey:o({queryArgs:v,endpointDefinition:x,endpointName:g}),patches:S}))}},l=function(g,v,S){return function(w,x){var C,T,E=a.endpoints[g].select(v)(x()),P={patches:[],inversePatches:[],undo:function(){return w(a.util.patchQueryData(g,v,P.inversePatches))}};if(E.status===er.uninitialized)return P;if("data"in E)if(Oo(E.data)){var N=ak(E.data,S),O=N[1],A=N[2];(C=P.patches).push.apply(C,O),(T=P.inversePatches).push.apply(T,A)}else{var k=S(E.data);P.patches.push({op:"replace",path:[],value:k}),P.inversePatches.push({op:"replace",path:[],value:E.data})}return w(a.util.patchQueryData(g,v,P.patches)),P}},u=function(g,v,S){return function(w){var x;return w(a.endpoints[g].initiate(v,(x={subscribe:!1,forceRefetch:!0},x[r0]=function(){return{data:S}},x)))}},c=function(g,v){return __(t,[g,v],function(S,w){var x,C,T,E,P,N,O,A,k,D,L,M,R,$,B,U,G,Y,ee=w.signal,J=w.abort,j=w.rejectWithValue,Q=w.fulfillWithValue,ne=w.dispatch,se=w.getState,be=w.extra;return y_(this,function(ce){switch(ce.label){case 0:x=i[S.endpointName],ce.label=1;case 1:return ce.trys.push([1,8,,13]),C=BI,T=void 0,E={signal:ee,abort:J,dispatch:ne,getState:se,extra:be,endpoint:S.endpointName,type:S.type,forced:S.type==="query"?d(S,se()):void 0},P=S.type==="query"?S[r0]:void 0,P?(T=P(),[3,6])
|
||
|
* @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 Jh=I;function ace(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var sce=typeof Object.is=="function"?Object.is:ace,lce=Jh.useState,uce=Jh.useEffect,cce=Jh.useLayoutEffect,dce=Jh.useDebugValue;function fce(e,t){var n=t(),r=lce({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return cce(function(){i.value=n,i.getSnapshot=t,SC(i)&&o({inst:i})},[e,n,t]),uce(function(){return SC(i)&&o({inst:i}),e(function(){SC(i)&&o({inst:i})})},[e]),dce(n),n}function SC(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sce(e,n)}catch{return!0}}function hce(e,t){return t()}var pce=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?hce:fce;Ez.useSyncExternalStore=Jh.useSyncExternalStore!==void 0?Jh.useSyncExternalStore:pce;Az.exports=Ez;var gce=Az.exports,Tz={exports:{}},kz={};/**
|
||
|
* @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 h2=I,mce=gce;function yce(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vce=typeof Object.is=="function"?Object.is:yce,bce=mce.useSyncExternalStore,_ce=h2.useRef,Sce=h2.useEffect,xce=h2.useMemo,wce=h2.useDebugValue;kz.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=_ce(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=xce(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),i!==void 0&&a.hasValue){var p=a.value;if(i(p,h))return d=p}return d=h}if(p=d,vce(c,h))return p;var m=r(h);return i!==void 0&&i(p,m)?p:(c=h,d=m)}var u=!1,c,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 s=bce(e,o[0],o[1]);return Sce(function(){a.hasValue=!0,a.value=s},[s]),wce(s),s};Tz.exports=kz;var Pz=Tz.exports;const Cce=Sc(Pz);function Ace(e){e()}let Iz=Ace;const Ece=e=>Iz=e,Tce=()=>Iz,WI=Symbol.for("react-redux-context"),KI=typeof globalThis<"u"?globalThis:{};function kce(){var e;if(!I.createContext)return{};const t=(e=KI[WI])!=null?e:KI[WI]=new Map;let n=t.get(I.createContext);return n||(n=I.createContext(null),t.set(I.createContext,n)),n}const hc=kce();function Wk(e=hc){return function(){return I.useContext(e)}}const Rz=Wk(),Pce=()=>{throw new Error("uSES not initialized!")};let Oz=Pce;const Ice=e=>{Oz=e},Rce=(e,t)=>e===t;function Oce(e=hc){const t=e===hc?Rz:Wk(e);return function(r,i={}){const{equalityFn:o=Rce,stabilityCheck:a=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:l,subscription:u,getServerState:c,stabilityCheck:d,noopCheck:f}=t();I.useRef(!0);const h=I.useCallback({[r.name](m){return r(m)}}[r.name],[r,d,a]),p=Oz(u.addNestedSub,l.getState,c||l.getState,h,o);return I.useDebugValue(p),p}}const Mz=Oce();function S_(){return S_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S_.apply(this,arguments)}var $z={exports:{}},vn={};/** @license React v16.13.1
|
||
|
* 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 hi=typeof Symbol=="function"&&Symbol.for,Kk=hi?Symbol.for("react.element"):60103,Qk=hi?Symbol.for("react.portal"):60106,p2=hi?Symbol.for("react.fragment"):60107,g2=hi?Symbol.for("react.strict_mode"):60108,m2=hi?Symbol.for("react.profiler"):60114,y2=hi?Symbol.for("react.provider"):60109,v2=hi?Symbol.for("react.context"):60110,Xk=hi?Symbol.for("react.async_mode"):60111,b2=hi?Symbol.for("react.concurrent_mode"):60111,_2=hi?Symbol.for("react.forward_ref"):60112,S2=hi?Symbol.for("react.suspense"):60113,Mce=hi?Symbol.for("react.suspense_list"):60120,x2=hi?Symbol.for("react.memo"):60115,w2=hi?Symbol.for("react.lazy"):60116,$ce=hi?Symbol.for("react.block"):60121,Nce=hi?Symbol.for("react.fundamental"):60117,Dce=hi?Symbol.for("react.responder"):60118,Lce=hi?Symbol.for("react.scope"):60119;function sa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Kk:switch(e=e.type,e){case Xk:case b2:case p2:case m2:case g2:case S2:return e;default:switch(e=e&&e.$$typeof,e){case v2:case _2:case w2:case x2:case y2:return e;default:return t}}case Qk:return t}}}function Nz(e){return sa(e)===b2}vn.AsyncMode=Xk;vn.ConcurrentMode=b2;vn.ContextConsumer=v2;vn.ContextProvider=y2;vn.Element=Kk;vn.ForwardRef=_2;vn.Fragment=p2;vn.Lazy=w2;vn.Memo=x2;vn.Portal=Qk;vn.Profiler=m2;vn.StrictMode=g2;vn.Suspense=S2;vn.isAsyncMode=function(e){return Nz(e)||sa(e)===Xk};vn.isConcurrentMode=Nz;vn.isContextConsumer=function(e){return sa(e)===v2};vn.isContextProvider=function(e){return sa(e)===y2};vn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Kk};vn.isForwardRef=function(e){return sa(e)===_2};vn.isFragment=function(e){return sa(e)===p2};vn.isLazy=function(e){return sa(e)===w2};vn.isMemo=function(e){return sa(e)===x2};vn.isPortal=function(e){return sa(e)===Qk};vn.isProfiler=function(e){return sa(e)===m2};vn.isStrictMode=function(e){return sa(e)===g2};vn.isSuspense=function(e){return sa(e)===S2};vn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===p2||e===b2||e===m2||e===g2||e===S2||e===Mce||typeof e=="object"&&e!==null&&(e.$$typeof===w2||e.$$typeof===x2||e.$$typeof===y2||e.$$typeof===v2||e.$$typeof===_2||e.$$typeof===Nce||e.$$typeof===Dce||e.$$typeof===Lce||e.$$typeof===$ce)};vn.typeOf=sa;$z.exports=vn;var Fce=$z.exports,Dz=Fce,Bce={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},zce={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Lz={};Lz[Dz.ForwardRef]=Bce;Lz[Dz.Memo]=zce;var En={};/**
|
||
|
* @license React
|
||
|
* 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 Yk=Symbol.for("react.element"),Zk=Symbol.for("react.portal"),C2=Symbol.for("react.fragment"),A2=Symbol.for("react.strict_mode"),E2=Symbol.for("react.profiler"),T2=Symbol.for("react.provider"),k2=Symbol.for("react.context"),jce=Symbol.for("react.server_context"),P2=Symbol.for("react.forward_ref"),I2=Symbol.for("react.suspense"),R2=Symbol.for("react.suspense_list"),O2=Symbol.for("react.memo"),M2=Symbol.for("react.lazy"),Uce=Symbol.for("react.offscreen"),Fz;Fz=Symbol.for("react.module.reference");function Oa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Yk:switch(e=e.type,e){case C2:case E2:case A2:case I2:case R2:return e;default:switch(e=e&&e.$$typeof,e){case jce:case k2:case P2:case M2:case O2:case T2:return e;default:return t}}case Zk:return t}}}En.ContextConsumer=k2;En.ContextProvider=T2;En.Element=Yk;En.ForwardRef=P2;En.Fragment=C2;En.Lazy=M2;En.Memo=O2;En.Portal=Zk;En.Profiler=E2;En.StrictMode=A2;En.Suspense=I2;En.SuspenseList=R2;En.isAsyncMode=function(){return!1};En.isConcurrentMode=function(){return!1};En.isContextConsumer=function(e){return Oa(e)===k2};En.isContextProvider=function(e){return Oa(e)===T2};En.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yk};En.isForwardRef=function(e){return Oa(e)===P2};En.isFragment=function(e){return Oa(e)===C2};En.isLazy=function(e){return Oa(e)===M2};En.isMemo=function(e){return Oa(e)===O2};En.isPortal=function(e){return Oa(e)===Zk};En.isProfiler=function(e){return Oa(e)===E2};En.isStrictMode=function(e){return Oa(e)===A2};En.isSuspense=function(e){return Oa(e)===I2};En.isSuspenseList=function(e){return Oa(e)===R2};En.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===C2||e===E2||e===A2||e===I2||e===R2||e===Uce||typeof e=="object"&&e!==null&&(e.$$typeof===M2||e.$$typeof===O2||e.$$typeof===T2||e.$$typeof===k2||e.$$typeof===P2||e.$$typeof===Fz||e.getModuleId!==void 0)};En.typeOf=Oa;function Vce(){const e=Tce();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)}}}}const QI={notify(){},get:()=>[]};function Gce(e,t){let n,r=QI;function i(d){return l(),r.subscribe(d)}function o(){r.notify()}function a(){c.onStateChange&&c.onStateChange()}function s(){return!!n}function l(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=Vce())}function u(){n&&(n(),n=void 0,r.clear(),r=QI)}const c={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return c}const qce=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Hce=qce?I.useLayoutEffect:I.useEffect;function XI(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function x_(e,t){if(XI(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])||!XI(e[n[i]],t[n[i]]))return!1;return!0}function Wce({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){const a=I.useMemo(()=>{const u=Gce(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:o}},[e,r,i,o]),s=I.useMemo(()=>e.getState(),[e]);Hce(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,s]);const l=t||hc;return I.createElement(l.Provider,{value:a},n)}function Bz(e=hc){const t=e===hc?Rz:Wk(e);return function(){const{store:r}=t();return r}}const zz=Bz();function Kce(e=hc){const t=e===hc?zz:Bz(e);return function(){return t().dispatch}}const jz=Kce();Ice(Pz.useSyncExternalStoreWithSelector);Ece(Wo.unstable_batchedUpdates);var Qce=globalThis&&global
|
||
|
Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.
|
||
|
See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}}}({queryThunk:xe,mutationThunk:Ye,api:H,serializeQueryArgs:je,context:re}),bo=Qn.buildInitiateQuery,Ga=Qn.buildInitiateMutation;return yi(H.util,{getRunningOperationPromises:Qn.getRunningOperationPromises,getRunningOperationPromise:Qn.removalWarning,getRunningMutationThunk:Qn.getRunningMutationThunk,getRunningMutationsThunk:Qn.getRunningMutationsThunk,getRunningQueryThunk:Qn.getRunningQueryThunk,getRunningQueriesThunk:Qn.getRunningQueriesThunk}),{name:ua,injectEndpoint:function(it,hn){var rn,ir=H;(rn=ir.endpoints)[it]!=null||(rn[it]={}),ne(hn)?yi(ir.endpoints[it],{name:it,select:Sr(it,hn),initiate:bo(it,hn)},wt(xe,it)):hn.type===J.mutation&&yi(ir.endpoints[it],{name:it,select:vi(),initiate:Ga(it)},wt(Ye,it))}}}}},hl=yo(ni())})(Zz);Yz.exports=Zz;var Lde=Yz.exports;const Jz=sl(),ej=z.enum(["BoardField","boolean","BooleanCollection","BooleanPolymorphic","ClipField","Collection","CollectionItem","ColorCollection","ColorField","ColorPolymorphic","ConditioningCollection","ConditioningField","ConditioningPolymorphic","ControlCollection","ControlField","ControlNetModelField","ControlPolymorphic","DenoiseMaskField","enum","float","FloatCollection","FloatPolymorphic","ImageCollection","ImageField","ImagePolymorphic","integer","IntegerCollection","IntegerPolymorphic","IPAdapterCollection","IPAdapterField","IPAdapterModelField","IPAdapterPolymorphic","LatentsCollection","LatentsField","LatentsPolymorphic","LoRAModelField","MainModelField","ONNXModelField","Scheduler","SDXLMainModelField","SDXLRefinerModelField","string","StringCollection","StringPolymorphic","T2IAdapterCollection","T2IAdapterField","T2IAdapterModelField","T2IAdapterPolymorphic","UNetField","VaeField","VaeModelField"]),Fde=z.enum(["WorkflowField","IsIntermediate","MetadataField"]),rR=e=>ej.safeParse(e).success||Fde.safeParse(e).success;z.enum(["connection","direct","any"]);const tj=z.object({id:z.string().trim().min(1),name:z.string().trim().min(1),type:ej}),Bde=tj.extend({fieldKind:z.literal("output")}),at=tj.extend({fieldKind:z.literal("input"),label:z.string()}),ou=z.object({model_name:z.string().trim().min(1),base_model:kc}),wp=z.object({image_name:z.string().trim().min(1)}),zde=z.object({board_id:z.string().trim().min(1)}),C_=z.object({latents_name:z.string().trim().min(1),seed:z.number().int().optional()}),A_=z.object({conditioning_name:z.string().trim().min(1)}),jde=z.object({mask_name:z.string().trim().min(1),masked_latents_name:z.string().trim().min(1).optional()}),Ude=at.extend({type:z.literal("integer"),value:z.number().int().optional()}),Vde=at.extend({type:z.literal("IntegerCollection"),value:z.array(z.number().int()).optional()}),Gde=at.extend({type:z.literal("IntegerPolymorphic"),value:z.number().int().optional()}),qde=at.extend({type:z.literal("float"),value:z.number().optional()}),Hde=at.extend({type:z.literal("FloatCollection"),value:z.array(z.number()).optional()}),Wde=at.extend({type:z.literal("FloatPolymorphic"),value:z.number().optional()}),Kde=at.extend({type:z.literal("string"),value:z.string().optional()}),Qde=at.extend({type:z.literal("StringCollection"),value:z.array(z.string()).optional()}),Xde=at.extend({type:z.literal("StringPolymorphic"),value:z.string().optional()}),Yde=at.extend({type:z.literal("boolean"),value:z.boolean().optional()}),Zde=at.extend({type:z.literal("BooleanCollection"),value:z.array(z.boolean()).optional()}),Jde=at.extend({type:z.literal("BooleanPolymorphic"),value:z.boolean().optional()}),efe=at.extend({type:z.literal("enum"),value:z.string().optional()}),tfe=at.extend({type:z.literal("LatentsField"),value:C_.optional()}),nfe=at.extend({type:z.literal("LatentsCollection"),value:z.array(C_).optional()}),rfe=at.extend({type:z.literal("LatentsPolymorphic"),value:z.union([C_,z.array(C_)]).optional()}),ife=at.extend({type:z.literal("DenoiseMaskField"),value:jde.optional()}),ofe=at.extend({type:z.literal("ConditioningField"),value:A_.optional()}),afe=at.extend({type:z.literal("ConditioningCollection"),value:z.array(A_
|
||
|
`&&(this.line+=1,this.lastLineBreak=this.index),{value:u}}},o.prototype.save=function(){return{line:this.line,col:this.index-this.lastLineBreak}},o.prototype.formatError=function(u,c){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 c+=" at line "+this.line+" col "+p+`:
|
||
|
|
||
|
`,c+=f.map(function(b,y){return _(this.line-f.length+y+1,m)+" "+b},this).join(`
|
||
|
`),c+=`
|
||
|
`+_("",m+p)+`^
|
||
|
`,c}else return c+" at index "+(this.index-1);function _(b,y){var g=String(b);return Array(y-g.length+1).join(" ")+g}};function a(u,c,d){if(u instanceof i)var f=u,d=c;else var f=i.fromCompiled(u,c);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}a.fail={},a.prototype.feed=function(u){var c=this.lexer;c.reset(u,this.lexerState);for(var d;;){try{if(d=c.next(),!d)break}catch(x){var m=new r(this.grammar,this.current+1);this.table.push(m);var f=new Error(this.reportLexerError(x));throw f.offset=this.current,f.token=x.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,b=c.constructor===o?d.value:d,y=h.scannable,g=y.length;g--;){var v=y[g],S=v.rule.symbols[v.dot];if(S.test?S.test(b):S.type?S.type===d.type:S.literal===_){var w=v.nextState({data:b,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=c.save()),this.current++}return h&&(this.lexerState=c.save()),this.results=this.finish(),this},a.prototype.reportLexerError=function(u){var c,d,f=u.token;return f?(c="input "+JSON.stringify(f.text[0])+" (lexer error)",d=this.lexer.formatError(f,"Syntax error")):(c="input (lexer error)",d=u.message),this.reportErrorCommon(d,c)},a.prototype.reportError=function(u){var c=(u.type?u.type+" token: ":"")+JSON.stringify(u.value!==void 0?u.value:u),d=this.lexer.formatError(u,"Syntax error");return this.reportErrorCommon(d,c)},a.prototype.reportErrorCommon=function(u,c){var d=[];d.push(u);var f=this.table.length-2,h=this.table[f],p=h.states.filter(function(_){var b=_.rule.symbols[_.dot];return b&&typeof b!="string"});if(p.length===0)d.push("Unexpected "+c+`. I did not expect any more input. Here is the state of my parse table:
|
||
|
`),this.displayStateStack(h.states,d);else{d.push("Unexpected "+c+`. Instead, I was expecting to see one of the following:
|
||
|
`);var m=p.map(function(_){return this.buildFirstStateStack(_,[])||[_]},this);m.forEach(function(_){var b=_[0],y=b.rule.symbols[b.dot],g=this.getSymbolDisplay(y);d.push("A "+g+" based on:"),this.displayStateStack(_,d)},this)}return d.push(""),d.join(`
|
||
|
`)},a.prototype.displayStateStack=function(u,c){for(var d,f=0,h=0;h<u.length;h++){var p=u[h],m=p.rule.toString(p.dot);m===d?f++:(f>0&&c.push(" ^ "+f+" more lines identical to this"),f=0,c.push(" "+m)),d=m}},a.prototype.getSymbolDisplay=function(u){return s(u)},a.prototype.buildFirstStateStack=function(u,c){if(c.indexOf(u)!==-1)return null;if(u.wantedBy.length===0)return[u];var d=u.wantedBy[0],f=[u].concat(c),h=this.buildFirstStateStack(d,f);return h===null?null:[u].concat(h)},a.prototype.save=function(){var u=this.table[this.current];return u.lexerState=this.lexerState,u},a.prototype.restore=function(u){var c=u.index;this.current=c,this.table[c]=u,this.table.splice(c+1),this.lexerState=u.lexerState,this.results=this.finish()},a.prototype.rewind=function(u){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[u])},a.prototype.finish=function(){var u=[],c=this.grammar.start,d=this.table[this.table.length-1];return d.states.forEach(function(f){f.rule.name===c&&f.dot===f.rule.symbols.length&&f.reference===0&&f.data!==a.fail&&u.push(f)}),u.map(function(f){return f.data})};function s(u){var c=typeof u;if(c==="string")return u;if(c==="object"){if(u.literal)return JSON.stringify(u.literal);if(u instanceof RegExp)return"character matching "+u;if(u.type)return u.type+" token";if(u.test)return"token matching "+String(u.test);throw new Error("Unknown symbol type: "+u)}}function l(u){var c=typeof u;if(c==="string")return u;if(c==="object"){if(u.literal)return JSON.stringify(u.literal);if(u instanceof RegExp)return u.toString();if(u.type)return"%"+u.type;if(u.test)return"<"+String(u.test)+">";throw new Error("Unknown symbol type: "+u)}}return{Parser:a,Grammar:i,Rule:t}})})(uU);var l0e=uU.exports,Bd={},cU={},Pc={};Pc.__esModule=void 0;Pc.__esModule=!0;var u0e=typeof Object.setPrototypeOf=="function",c0e=typeof Object.getPrototypeOf=="function",d0e=typeof Object.defineProperty=="function",f0e=typeof Object.create=="function",h0e=typeof Object.prototype.hasOwnProperty=="function",p0e=function(t,n){u0e?Object.setPrototypeOf(t,n):t.__proto__=n};Pc.setPrototypeOf=p0e;var g0e=function(t){return c0e?Object.getPrototypeOf(t):t.__proto__||t.prototype};Pc.getPrototypeOf=g0e;var n9=!1,m0e=function e(t,n,r){if(d0e&&!n9)try{Object.defineProperty(t,n,r)}catch{n9=!0,e(t,n,r)}else t[n]=r.value};Pc.defineProperty=m0e;var dU=function(t,n){return h0e?t.hasOwnProperty(t,n):t[n]===void 0};Pc.hasOwnProperty=dU;var y0e=function(t,n){if(f0e)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)dU(n,o)&&(i[o]=n[o].value);return i};Pc.objectCreate=y0e;(function(e){e.__esModule=void 0,e.__esModule=!0;var t=Pc,n=t.setPrototypeOf,r=t.getPrototypeOf,i=t.defineProperty,o=t.objectCreate,a=new Error().toString()==="[object Error]",s="";function l(u){var c=this.constructor,d=c.name||function(){var _=c.toString().match(/^function\s*([^\s(]+)/);return _===null?s||"Error":_[1]}(),f=d==="Error",h=f?s:d,p=Error.apply(this,arguments);if(n(p,r(this)),!(p instanceof c)||!(p instanceof l)){var p=this;Error.apply(this,arguments),i(p,"message",{configurable:!0,enumerable:!1,value:u,writable:!0})}if(i(p,"name",{configurable:!0,enumerable:!1,value:h,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(p,f?l:c),p.stack===void 0){var m=new Error(u);m.name=p.name,p.stack=m.stack}return a&&i(p,"toString",{configurable:!0,enumerable:!1,value:function(){return(this.name||"Error")+(typeof this.message>"u"?"":": "+this.message)},writable:!0}),p}s=l.name||"ExtendableError",l.prototype=o(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}}),e.ExtendableError=l,e.default=e.ExtendableError})(cU);var fU=yt&&yt.__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(
|
||
|
${M}`,B=`,
|
||
|
${M}`);const Q=Math.min(R.length,x);let ne=0;for(;ne<Q-1;ne++){const be=C(String(ne),R,k,D,L,M);$+=be!==void 0?be:"null",$+=B}const se=C(String(ne),R,k,D,L,M);if($+=se!==void 0?se:"null",R.length-1>x){const be=R.length-x-1;$+=`${B}"... ${h(be)} not stringified"`}return L!==""&&($+=`
|
||
|
${U}`),k.pop(),`[${$}]`}let G=Object.keys(R);const Y=G.length;if(Y===0)return"{}";if(w<k.length+1)return'"[Object]"';let ee="",J="";L!==""&&(M+=L,B=`,
|
||
|
${M}`,ee=" ");const j=Math.min(Y,x);S&&!l(R)&&(G=a(G)),k.push(R);for(let Q=0;Q<j;Q++){const ne=G[Q],se=C(ne,R,k,D,L,M);se!==void 0&&($+=`${J}${o(ne)}:${ee}${se}`,J=B)}if(Y>x){const Q=Y-x;$+=`${J}"...":${ee}"${h(Q)} not stringified"`,J=B}return L!==""&&J.length>1&&($=`
|
||
|
${M}${$}
|
||
|
${U}`),k.pop(),`{${$}}`}case"number":return isFinite(R)?String(R):y?y(R):"null";case"boolean":return R===!0?"true":"false";case"undefined":return;case"bigint":if(v)return String(R);default:return y?y(R):void 0}}function T(O,A,k,D,L,M){switch(typeof A=="object"&&A!==null&&typeof A.toJSON=="function"&&(A=A.toJSON(O)),typeof A){case"string":return o(A);case"object":{if(A===null)return"null";if(k.indexOf(A)!==-1)return g;const R=M;let $="",B=",";if(Array.isArray(A)){if(A.length===0)return"[]";if(w<k.length+1)return'"[Array]"';k.push(A),L!==""&&(M+=L,$+=`
|
||
|
${M}`,B=`,
|
||
|
${M}`);const Y=Math.min(A.length,x);let ee=0;for(;ee<Y-1;ee++){const j=T(String(ee),A[ee],k,D,L,M);$+=j!==void 0?j:"null",$+=B}const J=T(String(ee),A[ee],k,D,L,M);if($+=J!==void 0?J:"null",A.length-1>x){const j=A.length-x-1;$+=`${B}"... ${h(j)} not stringified"`}return L!==""&&($+=`
|
||
|
${R}`),k.pop(),`[${$}]`}k.push(A);let U="";L!==""&&(M+=L,B=`,
|
||
|
${M}`,U=" ");let G="";for(const Y of D){const ee=T(Y,A[Y],k,D,L,M);ee!==void 0&&($+=`${G}${o(Y)}:${U}${ee}`,G=B)}return L!==""&&G.length>1&&($=`
|
||
|
${M}${$}
|
||
|
${R}`),k.pop(),`{${$}}`}case"number":return isFinite(A)?String(A):y?y(A):"null";case"boolean":return A===!0?"true":"false";case"undefined":return;case"bigint":if(v)return String(A);default:return y?y(A):void 0}}function E(O,A,k,D,L){switch(typeof A){case"string":return o(A);case"object":{if(A===null)return"null";if(typeof A.toJSON=="function"){if(A=A.toJSON(O),typeof A!="object")return E(O,A,k,D,L);if(A===null)return"null"}if(k.indexOf(A)!==-1)return g;const M=L;if(Array.isArray(A)){if(A.length===0)return"[]";if(w<k.length+1)return'"[Array]"';k.push(A),L+=D;let ee=`
|
||
|
${L}`;const J=`,
|
||
|
${L}`,j=Math.min(A.length,x);let Q=0;for(;Q<j-1;Q++){const se=E(String(Q),A[Q],k,D,L);ee+=se!==void 0?se:"null",ee+=J}const ne=E(String(Q),A[Q],k,D,L);if(ee+=ne!==void 0?ne:"null",A.length-1>x){const se=A.length-x-1;ee+=`${J}"... ${h(se)} not stringified"`}return ee+=`
|
||
|
${M}`,k.pop(),`[${ee}]`}let R=Object.keys(A);const $=R.length;if($===0)return"{}";if(w<k.length+1)return'"[Object]"';L+=D;const B=`,
|
||
|
${L}`;let U="",G="",Y=Math.min($,x);l(A)&&(U+=u(A,B,x),R=R.slice(A.length),Y-=A.length,G=B),S&&(R=a(R)),k.push(A);for(let ee=0;ee<Y;ee++){const J=R[ee],j=E(J,A[J],k,D,L);j!==void 0&&(U+=`${G}${o(J)}: ${j}`,G=B)}if($>x){const ee=$-x;U+=`${G}"...": "${h(ee)} not stringified"`,G=B}return G!==""&&(U=`
|
||
|
${L}${U}
|
||
|
${M}`),k.pop(),`{${U}}`}case"number":return isFinite(A)?String(A):y?y(A):"null";case"boolean":return A===!0?"true":"false";case"undefined":return;case"bigint":if(v)return String(A);default:return y?y(A):void 0}}function P(O,A,k){switch(typeof A){case"string":return o(A);case"object":{if(A===null)return"null";if(typeof A.toJSON=="function"){if(A=A.toJSON(O),typeof A!="object")return P(O,A,k);if(A===null)return"null"}if(k.indexOf(A)!==-1)return g;let D="";if(Array.isArray(A)){if(A.length===0)return"[]";if(w<k.length+1)return'"[Array]"';k.push(A);const B=Math.min(A.length,x);let U=0;for(;U<B-1;U++){const Y=P(String(U),A[U],k);D+=Y!==void 0?Y:"null",D+=","}const G=P(String(U),A[U],k);if(D+=G!==void 0?G:"null",A.length-1>x){const Y=A.length-x-1;D+=`,"... ${h(Y)} not stringified"`}return k.pop(),`[${D}]`}let L=Object.keys(A);const M=L.length;if(M===0)return"{}";if(w<k.length+1)return'"[Object]"';let R="",$=Math.min(M,x);l(A)&&(D+=u(A,",",x),L=L.slice(A.length),$-=A.length,R=","),S&&(L=a(L)),k.push(A);for(let B=0;B<$;B++){const U=L[B],G=P(U,A[U],k);G!==void 0&&(D+=`${R}${o(U)}:${G}`,R=",")}if(M>x){const B=M-x;D+=`${R}"...":"${h(B)} not stringified"`}return k.pop(),`{${D}}`}case"number":return isFinite(A)?String(A):y?y(A):"null";case"boolean":return A===!0?"true":"false";case"undefined":return;case"bigint":if(v)return String(A);default:return y?y(A):void 0}}function N(O,A,k){if(arguments.length>1){let D="";if(typeof k=="number"?D=" ".repeat(Math.min(k,10)):typeof k=="string"&&(D=k.slice(0,10)),A!=null){if(typeof A=="function")return C("",{"":O},[],A,D,"");if(Array.isArray(A))return T("",O,[],p(A),D,"")}if(D.length!==0)return E("",O,[],D,"")}return P("",O,[])}return N}})(NA,NA.exports);var z0e=NA.exports;(function(e){var t=yt&&yt.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(e,"__esModule",{value:!0}),e.createLogger=void 0;const n=zd,r=Py,i=bU,o=_U,a=t(c4),s=t(z0e);let l=!1;const u=(0,a.default)(),c=()=>u.ROARR,d=()=>({messageContext:{},transforms:[]}),f=()=>{const g=c().asyncLocalStorage;if(!g)throw new Error("AsyncLocalContext is unavailable.");const v=g.getStore();return v||d()},h=()=>!!c().asyncLocalStorage,p=()=>{if(h()){const g=f();return(0,i.hasOwnProperty)(g,"sequenceRoot")&&(0,i.hasOwnProperty)(g,"sequence")&&typeof g.sequence=="number"?String(g.sequenceRoot)+"."+String(g.sequence++):String(c().sequence++)}return String(c().sequence++)},m=(g,v)=>(S,w,x,C,T,E,P,N,O,A)=>{g.child({logLevel:v})(S,w,x,C,T,E,P,N,O,A)},_=1e3,b=(g,v)=>(S,w,x,C,T,E,P,N,O,A)=>{const k=(0,s.default)({a:S,b:w,c:x,d:C,e:T,f:E,g:P,h:N,i:O,j:A,logLevel:v});if(!k)throw new Error("Expected key to be a string");const D=c().onceLog;D.has(k)||(D.add(k),D.size>_&&D.clear(),g.child({logLevel:v})(S,w,x,C,T,E,P,N,O,A))},y=(g,v={},S=[])=>{const w=(x,C,T,E,P,N,O,A,k,D)=>{const L=Date.now(),M=p();let R;h()?R=f():R=d();let $,B;if(typeof x=="string"?$={...R.messageContext,...v}:$={...R.messageContext,...v,...x},typeof x=="string"&&C===void 0)B=x;else if(typeof x=="string"){if(!x.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.");B=(0,o.printf)(x,C,T,E,P,N,O,A,k,D)}else{let G=C;if(typeof C!="string")if(C===void 0)G="";else throw new TypeError("Message must be a string. Received "+typeof C+".");B=(0,o.printf)(G,T,E,P,N,O,A,k,D)}let U={context:$,message:B,sequence:M,time:L,version:n.ROARR_LOG_FORMAT_VERSION};for(const G of[...R.transforms,...S])if(U=G(U),typeof U!="object"||U===null)throw new Error("Message transform function must return a message object.");g(U)};return w.child=x=>{let C;return h()?C=f():C=d(),typeof x=="function"?(0,e.createLogger)(g,{...C.messageContext,...v,...x},[x,...S]):(0,e.createLogger)(g,{...C.messageContext,...v,...x},S)},w.getContext=()=>{let x;return h()?x=f():x=d(),{...x.messageContext,...v}},w.adopt=async(x,C)=>{if(!h())return l===!1&&(l=!
|
||
|
background-color: `.concat(p.backgroundColor,`;
|
||
|
color: `).concat(p.color,`;
|
||
|
font-weight: bold;
|
||
|
`),_=`
|
||
|
color: `.concat(Z0e[f].color,`;
|
||
|
`),b=`
|
||
|
color: inherit;
|
||
|
`;Object.keys(d).length>0?h("%c ".concat(f," %c").concat(c?" [".concat(String(c),"]:"):"","%c ").concat(s.message," %O"),m,_,b,d):h("%c ".concat(f," %c").concat(c?" [".concat(String(c),"]:"):"","%c ").concat(s.message),m,_,b)}}};L2.createLogWriter=eye;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createLogWriter=void 0;var t=L2;Object.defineProperty(e,"createLogWriter",{enumerable:!0,get:function(){return t.createLogWriter}})})(Xj);ky.ROARR.write=Xj.createLogWriter();const xU={};ky.Roarr.child(xU);const nx=sl(ky.Roarr.child(xU)),_e=e=>nx.get().child({namespace:e}),bqe=["trace","debug","info","warn","error","fatal"],_qe={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},Xt=e=>{try{return JSON.parse(JSON.stringify(e))}catch{return"Error parsing object"}},tye=async e=>{const t={},n=await e.arrayBuffer(),r=Wge(n).text,i=gh(r,"invokeai_metadata");if(i){const a=oj.safeParse(JSON.parse(i));a.success?t.metadata=a.data:_e("system").error({error:Xt(a.error)},"Problem reading metadata from image")}const o=gh(r,"invokeai_workflow");if(o){const a=cj.safeParse(JSON.parse(o));a.success?t.workflow=a.data:_e("system").error({error:Xt(a.error)},"Problem reading workflow from image")}return t},Se=ps.injectEndpoints({endpoints:e=>({listImages:e.query({query:t=>({url:jo(t),method:"GET"}),providesTags:(t,n,{board_id:r,categories:i})=>[{type:"ImageList",id:jo({board_id:r,categories:i})}],serializeQueryArgs:({queryArgs:t})=>{const{board_id:n,categories:r}=t;return jo({board_id:n,categories:r})},transformResponse(t){const{items:n}=t;return Vn.addMany(Vn.getInitialState(),n)},merge:(t,n)=>{Vn.addMany(t,s0.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;s0.selectAll(i).forEach(o=>{n(Se.util.upsertQueryData("getImageDTO",o.image_name,o))})}catch{}},keepUnusedDataFor:86400}),getIntermediatesCount:e.query({query:()=>({url:jo({is_intermediate:!0})}),providesTags:["IntermediatesCount"],transformResponse:t=>t.total}),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`}),providesTags:(t,n,r)=>[{type:"ImageMetadata",id:r}],keepUnusedDataFor:86400}),getImageMetadataFromFile:e.query({queryFn:async(t,n,r,i)=>{var o;if(t.shouldFetchMetadataFromApi){let a;const s=await i(`images/i/${t.image.image_name}/metadata`);if(s.data){const l=oj.safeParse((o=s.data)==null?void 0:o.metadata);l.success&&(a=l.data)}return{data:{metadata:a}}}else{const a=ep.get(),s=a0.get(),u=await Lde.fetchBaseQuery({baseUrl:"",prepareHeaders:d=>(a&&d.set("Authorization",`Bearer ${a}`),s&&d.set("project-id",s),d),responseHandler:async d=>await d.blob()})(t.image.image_url,n,r);return{data:await tye(u.data)}}},providesTags:(t,n,{image:r})=>[{type:"ImageMetadataFromFile",id:r.image_name}],keepUnusedDataFor:86400}),clearIntermediates:e.mutation({query:()=>({url:"images/clear-intermediates",method:"POST"}),invalidatesTags:["IntermediatesCount"]}),deleteImage:e.mutation({query:({image_name:t})=>({url:`images/i/${t}`,method:"DELETE"}),async onQueryStarted(t,{dispatch:n,queryFulfilled:r}){const{image_name:i,board_id:o}=t,a=to.includes(t.image_category),s={board_id:o??"none",categories:da(t)},l=[];l.push(n(Se.util.updateQueryData("listImages",s,u=>{Vn.removeOne(u,i)}))),l.push(n(Lt.util.updateQueryData(a?"getBoardAssetsTotal":"getBoardImagesTotal",t.board_id??"none",u=>{u.total=Math.max(u.total-1,0)})));try{await r}catch{l.forEach(u=>{u.undo()})}}}),deleteImages:e.mutation({query:({imageDTOs:t})=>({url:"images/delete",method:"POST",body:{image_names:t.map(r=>r.image_name)}}),async onQueryStarted({imageDTOs:t},{dispatch:n,queryFulfilled:r}){try{const{data:i}=await r,o=Ek(t,"image_name");i.deleted_images.forEach(a=>{const s=o[a];if(s){const l={board_id:s.board_id??"none",categories:da(s)};n(Se.util.updateQueryData("listImages",l,c=>{Vn.removeOne(c,a)}));const u=to.includes(s.image_category);
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cxe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!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)&&(s.push(r.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function dxe(e){if(Array.isArray(e))return e}function i5(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_G(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(u){throw u},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,a=!1,s;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return o=u.done,u},e:function(u){a=!0,s=u},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function _G(e,t){if(e){if(typeof e=="string")return uO(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 uO(e,t)}}function uO(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 q_(e){"@babel/helpers - typeof";return q_=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},q_(e)}var cO=function(t){var n;return(n=Object.prototype.toString.call(t).match(/\[object (.*)\]/))===null||n===void 0?void 0:n[1]},dO=function(t){return/^\[object (?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)Array\]$/.test(Object.prototype.toString.call(t))},fxe=function e(t,n){if(t===n)return!0;if(q_(t)!=="object"||q_(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(dO(t)&&dO(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=cO(t),a=cO(n);if(o==="DataView"&&a==="DataView")return t.byteLength!==n.byteLength||t.byteOffset!==n.byteOffset?!1:e(t.buffer,n.buffer);if(o==="ArrayBuffer"&&a==="ArrayBuffer")return t.byteLength!==n.byteLength?!1:e(new Uint8Array(t),new Uint8Array(n));if(o==="Map"&&a==="Map"){if(t.size!==n.size)return!1;var s=i5(t.entries()),l;try{for(s.s();!(l=s.n()).done;){var u=r5(l.value,1),c=u[0];if(!n.has(c))return!1}}catch(C){s.e(C)}finally{s.f()}var d=i5(t.entries()),f;try{for(d.s();!(f=d.n()).done;){var h=r5(f.value,2),p=h[0],m=h[1];if(!e(m,n.get(p)))return!1}}catch(C){d.e(C)}finally{d.f()}return!0}if(o==="Set"&&a==="Set"){if(t.size!==n.size)return!1;var _=i5(t.entries()),b;try{for(_.s();!(b=_.n()).done;){var y=r5(b.value,1),g=y[0];if(!n.has(g))return!1}}catch(C){_.e(C)}finally{_.f()}return!0}if(o==="Date"&&a==="Date")return+t==+n;var v=Object.keys(t);if(v.length!==Object.keys(n).length)return!1;for(var S=v.length;S--!==0;)if(!Object.prototype.hasOwnProperty.call(n,v[S]))return!1;for(var w=v.length;w--!==0;){var x=v[w];if(!e(t[x],n[x]))return!1}return o!=="Object"&&a!=="Object"?t===n:!0};const M4=fxe;function fO(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(u){n(u);return}s.done?t(l):Promise.resolve(l).then(r,i)}function SG(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(l){fO(o,r,i,a,s,"next",l)}function s(l){fO(o,r,i,a,s,"throw",l)}a(void 0)})}}var hxe=function(){var e=SG(function*(t,n,r){var i=r.prefix,o=r.driver,a=r.serialize;if(!M4(t,n))return o.setItem("".concat(i,"rootState"),a(t,"rootState"))});return function(n,r,i){return e.apply(this,arguments)}}(),pxe=function(t,n,r){var i=r.prefix,o=r.driver,a=r.serialize;return Promise.all(Object.keys(t).map(function(s){return M4(t[s],n[s])?Promise.resolve():o.setItem("".concat(i).concat(s),a(t[s],s))}))},gxe=function(){var e=SG(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,a=r.persistWholeStore,s=r.serialize;try{var l=a?hxe:pxe;yield l(t,n,{prefix:i,driver:o,serialize:s})}catch(u){console.warn("redux-remember: persist error",u)}});return function(){return e.apply(this,arguments)}}();function hO(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(u){n(u);return}s.done?t(l):Promise.resolve(l).then(r,i)}
|
||
|
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,s=o!==Cf&&o!==void 0,l=a!==Cf&&a!==void 0,u=this.padding(),c=o-u*2,d=a-u*2,f=0,h=this.wrap(),p=h!==OO,m=h!==c5e&&p,_=this.ellipsis();this.textArr=[],f5().font=this._getContextFont();for(var b=_?this._getTextWidth(d5):0,y=0,g=t.length;y<g;++y){var v=t[y],S=this._getTextWidth(v);if(s&&S>c)for(;v.length>0;){for(var w=0,x=v.length,C="",T=0;w<x;){var E=w+x>>>1,P=v.slice(0,E+1),N=this._getTextWidth(P)+b;N<=c?(w=E+1,C=P,T=N):x=E}if(C){if(m){var O,A=v[C.length],k=A===Yv||A===IO;k&&T<=c?O=C.length:O=Math.max(C.lastIndexOf(Yv),C.lastIndexOf(IO))+1,O>0&&(w=O,C=C.slice(0,w),T=this._getTextWidth(C))}C=C.trimRight(),this._addTextLine(C),r=Math.max(r,T),f+=i;var D=this._shouldHandleEllipsis(f);if(D){this._tryToAddEllipsisToLastLine();break}if(v=v.slice(w),v=v.trimLeft(),v.length>0&&(S=this._getTextWidth(v),S<=c)){this._addTextLine(v),f+=i,r=Math.max(r,S);break}}else break}else this._addTextLine(v),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!==Cf&&i!==void 0,a=this.padding(),s=i-a*2,l=this.wrap(),u=l!==OO;return!u||o&&t+r>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==Cf&&t!==void 0,r=this.padding(),i=t-r*2,o=this.ellipsis(),a=this.textArr[this.textArr.length-1];if(!(!a||!o)){if(n){var s=this._getTextWidth(a.text+d5)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+d5)}}getStrokeScaleEnabled(){return!0}};Gd.Text=Pr;Pr.prototype._fillFunc=h5e;Pr.prototype._strokeFunc=p5e;Pr.prototype.className=i5e;Pr.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];(0,JCe._registerNode)(Pr);po.Factory.overWriteSetter(Pr,"width",(0,Mc.getNumberOrAutoValidator)());po.Factory.overWriteSetter(Pr,"height",(0,Mc.getNumberOrAutoValidator)());po.Factory.addGetterSetter(Pr,"fontFamily","Arial");po.Factory.addGetterSetter(Pr,"fontSize",12,(0,Mc.getNumberValidator)());po.Factory.addGetterSetter(Pr,"fontStyle",YG);po.Factory.addGetterSetter(Pr,"fontVariant",YG);po.Factory.addGetterSetter(Pr,"padding",0,(0,Mc.getNumberValidator)());po.Factory.addGetterSetter(Pr,"align",XG);po.Factory.addGetterSetter(Pr,"verticalAlign",o5e);po.Factory.addGetterSetter(Pr,"lineHeight",1,(0,Mc.getNumberValidator)());po.Factory.addGetterSetter(Pr,"wrap",u5e);po.Factory.addGetterSetter(Pr,"ellipsis",!1,(0,Mc.getBooleanValidator)());po.Factory.addGetterSetter(Pr,"letterSpacing",0,(0,Mc.getNumberValidator)());po.Factory.addGetterSetter(Pr,"text","",(0,Mc.getStringValidator)());po.Factory.addGetterSetter(Pr,"textDecoration","");var Nx={};Object.defineProperty(Nx,"__esModule",{value:!0});Nx.TextPath=void 0;const h5=fr,vs=kt,m5e=Yr,ug=Rp,p5=Gd,JG=Xe,y5e=Rt;var v5e="",eq="normal";function tq(e){e.fillText(this.partialText,0,0)}function nq(e){e.strokeText(this.partialText,0,0)}class Zr extends m5e.Shape{constructor(t){super(t),this.dummyCanvas=h5.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 ug.Path.getPathLength(this.dataArray)}_getPointAtLength(t){if(!this.attrs.data)return null;const n=this.pathLength;return t-1>n?null:ug.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=ug.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();var n=this.textDecoration(),r=this.fill(),i=this.fontSize(),o=
|
||
|
45deg,
|
||
|
${t} 25%,
|
||
|
transparent 25%,
|
||
|
transparent 50%,
|
||
|
${t} 50%,
|
||
|
${t} 75%,
|
||
|
transparent 75%,
|
||
|
transparent
|
||
|
)`,backgroundSize:`${e} ${e}`}}var X6e=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function Y6e(e){const t=X6e();return!e||H6e(e)?t:e.string&&e.colors?J6e(e.string,e.colors):e.string&&!e.colors?Z6e(e.string):e.colors&&!e.string?e8e(e.colors):t}function Z6e(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 J6e(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 e8e(e){return e[Math.floor(Math.random()*e.length)]}function K(e,t){return n=>n.colorMode==="dark"?t:e}function fP(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function fH(e){return Zs(e)&&e.reference?e.reference:String(e)}var yw=(e,...t)=>t.map(fH).join(` ${e} `).replace(/calc/g,""),MM=(...e)=>`calc(${yw("+",...e)})`,$M=(...e)=>`calc(${yw("-",...e)})`,TE=(...e)=>`calc(${yw("*",...e)})`,NM=(...e)=>`calc(${yw("/",...e)})`,DM=e=>{const t=fH(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:TE(t,-1)},Ol=Object.assign(e=>({add:(...t)=>Ol(MM(e,...t)),subtract:(...t)=>Ol($M(e,...t)),multiply:(...t)=>Ol(TE(e,...t)),divide:(...t)=>Ol(NM(e,...t)),negate:()=>Ol(DM(e)),toString:()=>e.toString()}),{add:MM,subtract:$M,multiply:TE,divide:NM,negate:DM});function t8e(e){return!Number.isInteger(parseFloat(e.toString()))}function n8e(e,t="-"){return e.replace(/\s+/g,t)}function hH(e){const t=n8e(e.toString());return t.includes("\\.")?e:t8e(e)?t.replace(".","\\."):e}function r8e(e,t=""){return[t,hH(e)].filter(Boolean).join("-")}function i8e(e,t){return`var(${hH(e)}${t?`, ${t}`:""})`}function o8e(e,t=""){return`--${r8e(e,t)}`}function hr(e,t){const n=o8e(e,t==null?void 0:t.prefix);return{variable:n,reference:i8e(n,a8e(t==null?void 0:t.fallback))}}function a8e(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:s8e,definePartsStyle:ab}=Pt(cH.keys),om=hr("switch-track-width"),Ad=hr("switch-track-height"),_5=hr("switch-track-diff"),l8e=Ol.subtract(om,Ad),kE=hr("switch-thumb-x"),pg=hr("switch-bg"),u8e=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[om.reference],height:[Ad.reference],transitionProperty:"common",transitionDuration:"fast",[pg.variable]:"colors.gray.300",_dark:{[pg.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[pg.variable]:`colors.${t}.500`,_dark:{[pg.variable]:`colors.${t}.200`}},bg:pg.reference}},c8e={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Ad.reference],height:[Ad.reference],_checked:{transform:`translateX(${kE.reference})`}},d8e=ab(e=>({container:{[_5.variable]:l8e,[kE.variable]:_5.reference,_rtl:{[kE.variable]:Ol(_5).negate().toString()}},track:u8e(e),thumb:c8e})),f8e={sm:ab({container:{[om.variable]:"1.375rem",[Ad.variable]:"sizes.3"}}),md:ab({container:{[om.variable]:"1.875rem",[Ad.variable]:"sizes.4"}}),lg:ab({container:{[om.variable]:"2.875rem",[Ad.variable]:"sizes.6"}})},h8e=s8e({baseStyle:d8e,sizes:f8e,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:p8e,definePartsStyle:kh}=Pt(P6e.keys),g8e=kh({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"}}),nS={"&[data-is-numeric=true]":{textAlign:"end"}},m8e=kh(e=>{const{colorScheme:t}=e;return{th:{color:K("gray.600","gray.400")(e),borderBottom:"1px",borderColor:K(`${t}.100`,`${t}.700`)(e),...nS},td:{borderBottom:"1px",borderColor:K(`${t}.100`,`${t}.700`)(e),...nS},caption:{color:K("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),y8e=kh(e=>{const{c
|
||
|
to right,
|
||
|
transparent 0%,
|
||
|
${ao(n,a)} 50%,
|
||
|
transparent 100%
|
||
|
)`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}},fIe={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},hIe=e=>({bg:K("gray.100","whiteAlpha.300")(e)}),pIe=e=>({transitionProperty:"common",transitionDuration:"slow",...dIe(e)}),gIe=Lg(e=>({label:fIe,filledTrack:pIe(e),track:hIe(e)})),mIe={xs:Lg({track:{h:"1"}}),sm:Lg({track:{h:"2"}}),md:Lg({track:{h:"3"}}),lg:Lg({track:{h:"4"}})},yIe=cIe({sizes:mIe,baseStyle:gIe,defaultProps:{size:"md",colorScheme:"blue"}}),vIe=e=>typeof e=="function";function lo(e,...t){return vIe(e)?e(...t):e}var{definePartsStyle:db,defineMultiStyleConfig:bIe}=Pt(eH.keys),sm=nt("checkbox-size"),_Ie=e=>{const{colorScheme:t}=e;return{w:sm.reference,h:sm.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:K(`${t}.500`,`${t}.200`)(e),borderColor:K(`${t}.500`,`${t}.200`)(e),color:K("white","gray.900")(e),_hover:{bg:K(`${t}.600`,`${t}.300`)(e),borderColor:K(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:K("gray.200","transparent")(e),bg:K("gray.200","whiteAlpha.300")(e),color:K("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:K(`${t}.500`,`${t}.200`)(e),borderColor:K(`${t}.500`,`${t}.200`)(e),color:K("white","gray.900")(e)},_disabled:{bg:K("gray.100","whiteAlpha.100")(e),borderColor:K("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:K("red.500","red.300")(e)}}},SIe={_disabled:{cursor:"not-allowed"}},xIe={userSelect:"none",_disabled:{opacity:.4}},wIe={transitionProperty:"transform",transitionDuration:"normal"},CIe=db(e=>({icon:wIe,container:SIe,control:lo(_Ie,e),label:xIe})),AIe={sm:db({control:{[sm.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:db({control:{[sm.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:db({control:{[sm.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},rS=bIe({baseStyle:CIe,sizes:AIe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:EIe,definePartsStyle:fb}=Pt(T6e.keys),TIe=e=>{var t;const n=(t=lo(rS.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"}}}},kIe=fb(e=>{var t,n,r,i;return{label:(n=(t=rS).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=rS).baseStyle)==null?void 0:i.call(r,e).container,control:TIe(e)}}),PIe={md:fb({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:fb({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:fb({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},IIe=EIe({baseStyle:kIe,sizes:PIe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:RIe,definePartsStyle:OIe}=Pt(lH.keys),l1=nt("select-bg"),XM,MIe={...(XM=cn.baseStyle)==null?void 0:XM.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:l1.reference,[l1.variable]:"colors.white",_dark:{[l1.variable]:"colors.gray.700"},"> option, > optgroup":{bg:l1.reference}},$Ie={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},NIe=OIe({field:MIe,icon:$Ie}),u1={paddingInlineEnd:"8"},YM,ZM,JM,e7,t7,n7,r7,i7,DIe={lg:{...(YM=cn.sizes)==null?void 0:YM.lg,field:{...(ZM=cn.sizes)==null?void 0:ZM.lg.field,...u1}},md:{...(JM=cn.sizes)==null?void 0:JM.md,field:{...(e7=cn.sizes)==null?void 0:e7.md.field,...u1}},sm:{...(t7=cn.sizes)==null?void 0:t7.sm,field:{...(n7=cn.sizes)==null?void 0:n7.sm.field,...u1}},xs:{...(r7=cn.sizes)==null?void 0:r7.xs,field:{...(i7=cn.sizes)==null?void 0:i7.xs.field,...u1},icon:{insetEnd:"1"}}},LIe=RIe({baseStyle:NIe,sizes:DIe,variants:cn.variants,defaultProps:cn.defaultProps}),w5=nt("skeleton-start-color"),C5=nt("skeleton-end-color"),FIe={[w5.variable]:"colors.gray.100",[C5.variable]:"colors.gray.400",_dark:{[w5.variable]:"colors.gray.800",[C5.variable]:"colors.gray.600"},background:w5.reference,borderColor:C5.reference,opacity:.7,borderRadius:"sm"},BIe={baseStyle:FIe},A5=nt("sk
|
||
|
[data-motion-pop-id="${n}"] {
|
||
|
position: absolute !important;
|
||
|
width: ${o}px !important;
|
||
|
height: ${a}px !important;
|
||
|
top: ${s}px !important;
|
||
|
left: ${l}px !important;
|
||
|
}
|
||
|
`),()=>{document.head.removeChild(u)}},[t]),I.createElement(HDe,{isPresent:t,childRef:r,sizeRef:i},I.cloneElement(e,{ref:r}))}const Q5=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=GH(KDe),l=I.useId(),u=I.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:c=>{s.set(c,!0);for(const d of s.values())if(!d)return;r&&r()},register:c=>(s.set(c,!1),()=>s.delete(c))}),o?void 0:[n]);return I.useMemo(()=>{s.forEach((c,d)=>s.set(d,!1))},[n]),I.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=I.createElement(WDe,{isPresent:n},e)),I.createElement(Vy.Provider,{value:u},e)};function KDe(){return new Map}function QDe(e){return I.useEffect(()=>()=>e(),[])}const Of=e=>e.key||"";function XDe(e,t){e.forEach(n=>{const r=Of(n);t.set(r,n)})}function YDe(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const XW=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{const s=I.useContext(bP).forceRender||qDe()[0],l=QW(),u=YDe(e);let c=u;const d=I.useRef(new Map).current,f=I.useRef(c),h=I.useRef(new Map).current,p=I.useRef(!0);if(mP(()=>{p.current=!1,XDe(u,h),f.current=c}),QDe(()=>{p.current=!0,h.clear(),d.clear()}),p.current)return I.createElement(I.Fragment,null,c.map(y=>I.createElement(Q5,{key:Of(y),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a},y)));c=[...c];const m=f.current.map(Of),_=u.map(Of),b=m.length;for(let y=0;y<b;y++){const g=m[y];_.indexOf(g)===-1&&!d.has(g)&&d.set(g,void 0)}return a==="wait"&&d.size&&(c=[]),d.forEach((y,g)=>{if(_.indexOf(g)!==-1)return;const v=h.get(g);if(!v)return;const S=m.indexOf(g);let w=y;if(!w){const x=()=>{h.delete(g),d.delete(g);const C=f.current.findIndex(T=>T.key===g);if(f.current.splice(C,1),!d.size){if(f.current=u,l.current===!1)return;s(),r&&r()}};w=I.createElement(Q5,{key:Of(v),isPresent:!1,onExitComplete:x,custom:t,presenceAffectsLayout:o,mode:a},v),d.set(g,w)}c.splice(S,0,w)}),c=c.map(y=>{const g=y.key;return d.has(g)?y:I.createElement(Q5,{key:Of(y),isPresent:!0,presenceAffectsLayout:o,mode:a},y)}),I.createElement(I.Fragment,null,d.size?c:c.map(y=>I.cloneElement(y)))};var ZDe={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]}}},YW=I.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:o=!1,position:a="bottom",duration:s=5e3,containerStyle:l,motionVariants:u=ZDe,toastSpacing:c="0.5rem"}=e,[d,f]=I.useState(s),h=FNe();h7(()=>{h||r==null||r()},[h]),h7(()=>{f(s)},[s]);const p=()=>f(null),m=()=>f(s),_=()=>{h&&i()};I.useEffect(()=>{h&&o&&i()},[h,o,i]),NMe(_,d);const b=I.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),y=I.useMemo(()=>OMe(a),[a]);return W.jsx(KW.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:p,onHoverEnd:m,custom:{position:a},style:y,children:W.jsx(Oi.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:b,children:Us(n,{id:t,onClose:_})})})});YW.displayName="ToastComponent";function JDe(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 y$={path:W.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[W.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"}),W.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"}),W.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Ky=la((e,t)=>{const{as:n,viewBox:
|
||
|
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}),hBe={variants:{invokeAI:fBe},defaultProps:{size:"md",variant:"invokeAI"}},pBe=hr("popper-arrow-bg"),gBe=e=>({borderRadius:"base",shadow:"dark-lg",bg:K("base.700","base.200")(e),[pBe.variable]:K("colors.base.700","colors.base.200")(e),pb:1.5}),mBe={baseStyle:gBe},x$={backgroundColor:"accentAlpha.150 !important",borderColor:"accentAlpha.700 !important",borderRadius:"base !important",borderStyle:"dashed !important",_dark:{borderColor:"accent.400 !important"}},yBe={".react-flow__nodesselection-rect":{...x$,padding:"1rem !important",boxSizing:"content-box !important",transform:"translate(-1rem, -1rem) !important"},".react-flow__selection":x$},vBe={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","*":{...OFe},...yBe})},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:SLe,components:{Button:OLe,Input:XLe,Editable:GLe,Textarea:hBe,Tabs:lBe,Progress:RFe,Accordion:PLe,FormLabel:HLe,Switch:eBe,NumberInput:bFe,Select:FFe,Skeleton:zFe,Slider:KFe,Popover:AFe,Modal:dFe,Checkbox:LLe,Menu:eFe,Text:dBe,Tooltip:mBe}},bBe={defaultOptions:{isClosable:!0}},{toast:vg}=gLe({theme:vBe,defaultOptions:bBe.defaultOptions}),_Be=()=>{Me({matcher:Er.endpoints.enqueueBatch.matchFulfilled,effect:async e=>{const t=e.payload,n=e.meta.arg.originalArgs;_e("queue").debug({enqueueResult:Xt(t)},"Batch enqueued"),vg.isActive("batch-queued")||vg({id:"batch-queued",title:Z("queue.batchQueued"),description:Z("queue.batchQueuedDesc",{count:t.enqueued,direction:n
|
||
|
${i.loc.join(".")}`,{length:128})})});else{let i="Unknown Error",o;t.status===403&&"body"in t?i=gh(t,"body.detail","Unknown Error"):t.status===403&&"error"in t?i=gh(t,"error.detail","Unknown Error"):t.status===403&&"data"in t&&(i=gh(t,"data.detail","Unknown Error"),o=15e3),vg({title:Z("queue.batchFailedToQueue"),status:"error",description:i,...o?{duration:o}:{}})}_e("queue").error({batchConfig:Xt(n),error:Xt(t)},Z("queue.batchFailedToQueue"))}})};function HE(e){"@babel/helpers - typeof";return HE=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},HE(e)}var fK=[],SBe=fK.forEach,xBe=fK.slice;function WE(e){return SBe.call(xBe.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function hK(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":HE(XMLHttpRequest))==="object"}function wBe(e){return!!e&&typeof e.then=="function"}function CBe(e){return wBe(e)?e:Promise.resolve(e)}function ABe(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var KE={exports:{}},w1={exports:{}},w$;function EBe(){return w$||(w$=1,function(e,t){var n=typeof self<"u"?self:yt,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(a){var s={searchParams:"URLSearchParams"in o,iterable:"Symbol"in o&&"iterator"in Symbol,blob:"FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in o,arrayBuffer:"ArrayBuffer"in o};function l(A){return A&&DataView.prototype.isPrototypeOf(A)}if(s.arrayBuffer)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(A){return A&&u.indexOf(Object.prototype.toString.call(A))>-1};function d(A){if(typeof A!="string"&&(A=String(A)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(A))throw new TypeError("Invalid character in header field name");return A.toLowerCase()}function f(A){return typeof A!="string"&&(A=String(A)),A}function h(A){var k={next:function(){var D=A.shift();return{done:D===void 0,value:D}}};return s.iterable&&(k[Symbol.iterator]=function(){return k}),k}function p(A){this.map={},A instanceof p?A.forEach(function(k,D){this.append(D,k)},this):Array.isArray(A)?A.forEach(function(k){this.append(k[0],k[1])},this):A&&Object.getOwnPropertyNames(A).forEach(function(k){this.append(k,A[k])},this)}p.prototype.append=function(A,k){A=d(A),k=f(k);var D=this.map[A];this.map[A]=D?D+", "+k:k},p.prototype.delete=function(A){delete this.map[d(A)]},p.prototype.get=function(A){return A=d(A),this.has(A)?this.map[A]:null},p.prototype.has=function(A){return this.map.hasOwnProperty(d(A))},p.prototype.set=function(A,k){this.map[d(A)]=f(k)},p.prototype.forEach=function(A,k){for(var D in this.map)this.map.hasOwnProperty(D)&&A.call(k,this.map[D],D,this)},p.prototype.keys=function(){var A=[];return this.forEach(function(k,D){A.push(D)}),h(A)},p.prototype.values=function(){var A=[];return this.forEach(function(k){A.push(k)}),h(A)},p.prototype.entries=function(){var A=[];return this.forEach(function(k,D){A.push([D,k])}),h(A)},s.iterable&&(p.prototype[Symbol.iterator]=p.prototype.entries);function m(A){if(A.bodyUsed)return Promise.reject(new TypeError("Already read"));A.bodyUsed=!0}function _(A){return new Promise(function(k,D){A.onload=function(){k(A.result)},A.onerror=function(){D(A.error)}})}function b(A){var k=new FileReader,D=_(k);return k.readAsArrayBuffer(A),D}function y(A){var k=new FileReader,D=_(k);return k.readAsText(A),D}function g(A){for(var k=new Uint8Array(A),D=new Array(k.length),L=0;L<k.length;L++)D[L]=String.fromCharCode(k[L]);return D.join("")}function v(A){if(
|
||
|
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.
|
||
|
`},Wze={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 Kze(e){let{announcements:t=Wze,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=Hze}=e;const{announce:o,announcement:a}=Vze(),s=Iw("DndLiveRegion"),[l,u]=I.useState(!1);if(I.useEffect(()=>{u(!0)},[]),Gze(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 c=An.createElement(An.Fragment,null,An.createElement(zze,{id:r,value:i.draggable}),An.createElement(Uze,{id:s,announcement:a}));return n?Wo.createPortal(c,n):c}var Wr;(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"})(Wr||(Wr={}));function _S(){}function z$(e,t){return I.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Qze(){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 gs=Object.freeze({x:0,y:0});function Xze(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Yze(e,t){const n=H0(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 Zze(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Jze(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function eje(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 tje(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function nje(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),a=i-r,s=o-n;if(r<i&&n<o){const l=t.width*t.height,u=e.width*e.height,c=a*s,d=c/(l+u-c);return Number(d.toFixed(4))}return 0}const rje=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const o of r){const{id:a}=o,s=n.get(a);if(s){const l=nje(s,t);l>0&&i.push({id:a,data:{droppableContainer:o,value:l}})}}return i.sort(Jze)};function ije(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 oje=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];const i=[];for(const o of t){const{id:a}=o,s=n.get(a);if(s&&ije(r,s)){const u=eje(s).reduce((d,f)=>d+Xze(r,f),0),c=Number((u/4).toFixed(4));i.push({id:a,data:{droppableContainer:o,value:c}})}}return i.sort(Zze)};function aje(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function LK(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:gs}function sje(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((a,s)=>({...a,top:a.top+e*s.y,bottom:a.bottom+e*s.y,left:a.left+e*s.x,right:a.right+e*s.x}),{...n})}}const lje=sje(1);function FK(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 uje(e,t,n){const r=FK(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:s}=r,l=e.left-a-(1-i)*parseFloat
|