InvokeAI/invokeai/frontend/web/dist/assets/index-f6c3f475.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

129 lines
1.3 MiB
JavaScript
Raw Normal View History

2023-09-19 18:03:22 +00:00
var DV=Object.defineProperty;var LV=(e,t,n)=>t in e?DV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var e2=(e,t,n)=>(LV(e,typeof t!="symbol"?t+"":t,n),n);function NO(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var dt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Uc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Y1(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 DO={exports:{}},Z1={},LO={exports:{}},Mt={};/**
* @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 om=Symbol.for("react.element"),$V=Symbol.for("react.portal"),FV=Symbol.for("react.fragment"),BV=Symbol.for("react.strict_mode"),zV=Symbol.for("react.profiler"),UV=Symbol.for("react.provider"),jV=Symbol.for("react.context"),VV=Symbol.for("react.forward_ref"),GV=Symbol.for("react.suspense"),HV=Symbol.for("react.memo"),qV=Symbol.for("react.lazy"),D4=Symbol.iterator;function WV(e){return e===null||typeof e!="object"?null:(e=D4&&e[D4]||e["@@iterator"],typeof e=="function"?e:null)}var $O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},FO=Object.assign,BO={};function eh(e,t,n){this.props=e,this.context=t,this.refs=BO,this.updater=n||$O}eh.prototype.isReactComponent={};eh.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")};eh.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function zO(){}zO.prototype=eh.prototype;function Z3(e,t,n){this.props=e,this.context=t,this.refs=BO,this.updater=n||$O}var J3=Z3.prototype=new zO;J3.constructor=Z3;FO(J3,eh.prototype);J3.isPureReactComponent=!0;var L4=Array.isArray,UO=Object.prototype.hasOwnProperty,eE={current:null},jO={key:!0,ref:!0,__self:!0,__source:!0};function VO(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)UO.call(t,r)&&!jO.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:om,type:e,key:o,ref:s,props:i,_owner:eE.current}}function KV(e,t){return{$$typeof:om,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function tE(e){return typeof e=="object"&&e!==null&&e.$$typeof===om}function XV(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var $4=/\/+/g;function t2(e,t){return typeof e=="object"&&e!==null&&e.key!=null?XV(""+e.key):t.toString(36)}function g0(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case om:case $V:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+t2(s,0):r,L4(i)?(n="",e!=null&&(n=e.replace($4,"$&/")+"/"),g0(i,t,n,"",function(u){return u})):i!=null&&(tE(i)&&(i=KV(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace($4,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",L4(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+t2(o,a);s+=g0(o,t,n,l,i)}else if(l=WV(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+t2(o,a++),s+=g0(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function ey(e,t,n){if(e==null)return e;var r=[],i=0;return g0(e,r,"","",function(o){return t.call(n,o,i++)}),r}function QV(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 Yi={current:null},m0={transition:null},YV={ReactCurrentDispatcher:Yi,ReactCurrentBatchConfig:m0,ReactCurrentOwner:eE};Mt.Children={map:ey,forEach:function(e,t,n){ey(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ey(e,function(){t++}),t},toArray:function(e){return ey(e,function(t){return t})||[]},only:function(e){if(!tE(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Mt.Component=eh;Mt.Fragment=FV;Mt.Profiler=zV;Mt
* @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 ZV=M,JV=Symbol.for("react.element"),eG=Symbol.for("react.fragment"),tG=Object.prototype.hasOwnProperty,nG=ZV.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,rG={key:!0,ref:!0,__self:!0,__source:!0};function GO(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)tG.call(t,r)&&!rG.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:JV,type:e,key:o,ref:s,props:i,_owner:nG.current}}Z1.Fragment=eG;Z1.jsx=GO;Z1.jsxs=GO;DO.exports=Z1;var Z=DO.exports,ix={},HO={exports:{}},$o={},qO={exports:{}},WO={};/**
* @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(R,I){var O=R.length;R.push(I);e:for(;0<O;){var F=O-1>>>1,U=R[F];if(0<i(U,I))R[F]=I,R[O]=U,O=F;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var I=R[0],O=R.pop();if(O!==I){R[0]=O;e:for(var F=0,U=R.length,V=U>>>1;F<V;){var H=2*(F+1)-1,Y=R[H],Q=H+1,j=R[Q];if(0>i(Y,O))Q<U&&0>i(j,Y)?(R[F]=j,R[Q]=O,F=Q):(R[F]=Y,R[H]=O,F=H);else if(Q<U&&0>i(j,O))R[F]=j,R[Q]=O,F=Q;else break e}}return I}function i(R,I){var O=R.sortIndex-I.sortIndex;return O!==0?O:R.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,m=!1,b=typeof setTimeout=="function"?setTimeout:null,_=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(R){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=R)r(u),I.sortIndex=I.expirationTime,t(l,I);else break;I=n(u)}}function v(R){if(m=!1,g(R),!p)if(n(l)!==null)p=!0,D(S);else{var I=n(u);I!==null&&B(v,I.startTime-R)}}function S(R,I){p=!1,m&&(m=!1,_(C),C=-1),h=!0;var O=f;try{for(g(I),d=n(l);d!==null&&(!(d.expirationTime>I)||R&&!k());){var F=d.callback;if(typeof F=="function"){d.callback=null,f=d.priorityLevel;var U=F(d.expirationTime<=I);I=e.unstable_now(),typeof U=="function"?d.callback=U:d===n(l)&&r(l),g(I)}else r(l);d=n(l)}if(d!==null)var V=!0;else{var H=n(u);H!==null&&B(v,H.startTime-I),V=!1}return V}finally{d=null,f=O,h=!1}}var w=!1,x=null,C=-1,A=5,T=-1;function k(){return!(e.unstable_now()-T<A)}function L(){if(x!==null){var R=e.unstable_now();T=R;var I=!0;try{I=x(!0,R)}finally{I?N():(w=!1,x=null)}}else w=!1}var N;if(typeof y=="function")N=function(){y(L)};else if(typeof MessageChannel<"u"){var E=new MessageChannel,P=E.port2;E.port1.onmessage=L,N=function(){P.postMessage(null)}}else N=function(){b(L,0)};function D(R){x=R,w||(w=!0,N())}function B(R,I){C=b(function(){R(e.unstable_now())},I)}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(R){R.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,D(S))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(R){switch(f){case 1:case 2:case 3:var I=3;break;default:I=f}var O=f;f=I;try{return R()}finally{f=O}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,I){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var O=f;f=R;try{return I()}finally{f=O}},e.unstable_scheduleCallback=function(R,I,O){var F=e.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0<O?F+O:F):O=F,R){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=O+U,R={id:c++,callback:I,priorityLevel:R,startTime:O,expirationTime:U,sortIndex:-1},O>F?(R.sortIndex=O,t(u,R),n(l)===null&&R===n(u)&&(m?(_(C),C=-1):m=!0,B(v,O-F))):(R.sortIndex=U,t(l,R),p||h||(p=!0,D(S))),R},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(R){var I=f;return function(){var O=f;f=I;try{return R.apply(this,arguments)}finally{f=O}}}})(WO);qO.exports=WO;var iG=qO.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 KO=M,Mo=iG;function se(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 XO=new Set,Np={};function jc(e,t){xf(e,t),xf(e+"Capture",t)}function xf(e,t){for(Np[e]=t,e=0;e<t.length;e++)XO.add(t[e])}var nl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ox=Object.prototype.hasOwnProperty,oG=/^[: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]*$/,B4={},z4={};function sG(e){return ox.call(z4,e)?!0:ox.call(B4,e)?!1:oG.test(e)?z4[e]=!0:(B4[e]=!0,!1)}function aG(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 lG(e,t,n,r){if(t===null||typeof t>"u"||aG(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 Zi(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var wi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){wi[e]=new Zi(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];wi[t]=new Zi(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){wi[e]=new Zi(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){wi[e]=new Zi(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){wi[e]=new Zi(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){wi[e]=new Zi(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){wi[e]=new Zi(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){wi[e]=new Zi(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){wi[e]=new Zi(e,5,!1,e.toLowerCase(),null,!1,!1)});var nE=/[\-:]([a-z])/g;function rE(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
`+n2+e}var r2=!1;function i2(e,t){if(!e||r2)return"";r2=!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(`
`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=`
`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{r2=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Zh(e):""}function uG(e){switch(e.tag){case 5:return Zh(e.type);case 16:return Zh("Lazy");case 13:return Zh("Suspense");case 19:return Zh("SuspenseList");case 0:case 2:case 15:return e=i2(e.type,!1),e;case 11:return e=i2(e.type.render,!1),e;case 1:return e=i2(e.type,!0),e;default:return""}}function ux(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 Dd:return"Fragment";case Nd:return"Portal";case sx:return"Profiler";case oE:return"StrictMode";case ax:return"Suspense";case lx:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case YO:return(e.displayName||"Context")+".Consumer";case QO:return(e._context.displayName||"Context")+".Provider";case sE:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case aE:return t=e.displayName||null,t!==null?t:ux(e.type)||"Memo";case Pl:t=e._payload,e=e._init;try{return ux(e(t))}catch{}}return null}function cG(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 ux(t);case 8:return t===oE?"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 uu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function JO(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dG(e){var t=JO(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ny(e){e._valueTracker||(e._valueTracker=dG(e))}function e9(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=JO(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ev(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 cx(e,t){var n=t.checked;return or({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function j4(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=uu(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 t9(e,t){t=t.checked,t!=null&&iE(e,"checked",t,!1)}function dx(e,t){t9(e,t);var n=uu(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")?fx(e,t.type,n):t.hasOwnProperty("defaultValue")&&fx(e,t.type,uu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function V4(e,t,n){if(t.hasOwnProperty("val
`).replace(SH,"")}function cy(e,t,n){if(t=fA(t),fA(e)!==t&&n)throw Error(se(425))}function lv(){}var Tx=null,Ax=null;function kx(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 Px=typeof setTimeout=="function"?setTimeout:void 0,wH=typeof clearTimeout=="function"?clearTimeout:void 0,hA=typeof Promise=="function"?Promise:void 0,xH=typeof queueMicrotask=="function"?queueMicrotask:typeof hA<"u"?function(e){return hA.resolve(null).then(e).catch(CH)}:Px;function CH(e){setTimeout(function(){throw e})}function y2(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),Bp(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Bp(t)}function Ql(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 pA(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 nh=Math.random().toString(36).slice(2),ea="__reactFiber$"+nh,Gp="__reactProps$"+nh,rl="__reactContainer$"+nh,Rx="__reactEvents$"+nh,EH="__reactListeners$"+nh,TH="__reactHandles$"+nh;function ic(e){var t=e[ea];if(t)return t;for(var n=e.parentNode;n;){if(t=n[rl]||n[ea]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pA(e);e!==null;){if(n=e[ea])return n;e=pA(e)}return t}e=n,n=e.parentNode}return null}function lm(e){return e=e[ea]||e[rl],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Bd(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(se(33))}function r_(e){return e[Gp]||null}var Ix=[],zd=-1;function Tu(e){return{current:e}}function jn(e){0>zd||(e.current=Ix[zd],Ix[zd]=null,zd--)}function An(e,t){zd++,Ix[zd]=e.current,e.current=t}var cu={},Bi=Tu(cu),fo=Tu(!1),xc=cu;function Cf(e,t){var n=e.type.contextTypes;if(!n)return cu;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 ho(e){return e=e.childContextTypes,e!=null}function uv(){jn(fo),jn(Bi)}function gA(e,t,n){if(Bi.current!==cu)throw Error(se(168));An(Bi,t),An(fo,n)}function V9(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(se(108,cG(e)||"Unknown",i));return or({},n,r)}function cv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||cu,xc=Bi.current,An(Bi,e),An(fo,fo.current),!0}function mA(e,t,n){var r=e.stateNode;if(!r)throw Error(se(169));n?(e=V9(e,t,xc),r.__reactInternalMemoizedMergedChildContext=e,jn(fo),jn(Bi),An(Bi,e)):jn(fo),An(fo,n)}var za=null,i_=!1,v2=!1;function G9(e){za===null?za=[e]:za.push(e)}function AH(e){i_=!0,G9(e)}function Au(){if(!v2&&za!==null){v2=!0;var e=0,t=ln;try{var n=za;for(ln=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}za=null,i_=!1}catch(i){throw za!==null&&(za=za.slice(e+1)),g9(uE,Au),i}finally{ln=t,v2=!1}}return null}var Ud=[],jd=0,dv=null,fv=0,Wo=[],Ko=0,Cc=null,Ha=1,qa="";function Qu(e,t){Ud[jd++]=fv,Ud[jd++]=dv,dv=e,fv=t}function H9(e,t,n){Wo[Ko++]=Ha,Wo[Ko++]=qa,Wo[Ko++]=Cc,Cc=e;var r=Ha;e=qa;var i=32-Ps(r)-1;r&=~(1<<i),n+=1;var o=32-Ps(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Ha=1<<32-Ps(t)+i|n<<i|r,qa=o+e}else Ha=1<<o|n<<i|r,qa=e}function vE(e){e.return!==null&&(Qu(e,1),H9(e,1,0))}function _E(e){for(;e===dv;)dv=Ud[--jd],Ud[jd]=null,fv=Ud[--jd],Ud[jd]=null;for(;e===Cc;)Cc=Wo[--Ko],Wo[Ko]=null,qa=Wo[--Ko],Wo[Ko]=null,Ha=Wo[--Ko],Wo[Ko]=null}var Io=null,Po=null,Kn=!1,ws=null;function q9(e,t){var n=Yo(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 x2(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function $x(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var LH=typeof WeakMap=="function"?WeakMap:Map;function bM(e,t,n){n=Xa(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){bv||(bv=!0,Wx=r),$x(e,t)},n}function SM(e,t,n){n=Xa(-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(){$x(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){$x(e,t),typeof r!="function"&&(Zl===null?Zl=new Set([this]):Zl.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function TA(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new LH;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=QH.bind(null,e,t,n),t.then(e,e))}function AA(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 kA(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=Xa(-1,1),t.tag=2,Yl(n,t,1))),n.lanes|=1),e)}var $H=dl.ReactCurrentOwner,ao=!1;function qi(e,t,n,r){t.child=e===null?J9(t,null,n,r):Tf(t,e.child,n,r)}function PA(e,t,n,r,i){n=n.render;var o=t.ref;return nf(t,i),r=RE(e,t,n,r,o,i),n=IE(),e!==null&&!ao?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ol(e,t,i)):(Kn&&n&&vE(t),t.flags|=1,qi(e,t,r,i),t.child)}function RA(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!UE(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,wM(e,t,o,r,i)):(e=T0(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Up,n(s,r)&&e.ref===t.ref)return ol(e,t,i)}return t.flags|=1,e=eu(o,r),e.ref=t.ref,e.return=t,t.child=e}function wM(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Up(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,ol(e,t,i)}return Fx(e,t,n,r,i)}function xM(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},An(Hd,To),To|=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,An(Hd,To),To|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,An(Hd,To),To|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,An(Hd,To),To|=r;return qi(e,t,i,n),t.child}function CM(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Fx(e,t,n,r,i){var o=ho(n)?xc:Bi.current;return o=Cf(t,o),nf(t,i),n=RE(e,t,n,r,o,i),r=IE(),e!==null&&!ao?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ol(e,t,i)):(Kn&&r&&vE(t),t.flags|=1,qi(e,t,n,i),t.child)}function IA(e,t,n,r,i){if(ho(n)){var o=!0;cv(t)}else o=!1;if(nf(t,i),t.stateNode===null)x0(e,t),Y9(t,n,r),Lx(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=es(u):(u=ho(n)?xc:Bi.current,u=Cf(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&wA(t,s,r,u),Rl=!1;var f=t.memoizedState;s.state=f,gv(t,r,s,i),l=t.memoizedState,a!==r||f!==l||fo.current||Rl?(typeof c=="function"&&(Dx(t,n,c,r),l=t.memoizedState),(a=Rl||SA(t,n,a,r,f,l,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.
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:ve,mutationThunk:Xe,api:W,serializeQueryArgs:Fe,context:ne}),io=Vn.buildInitiateQuery,ms=Vn.buildInitiateMutation;return li(W.util,{getRunningOperationPromises:Vn.getRunningOperationPromises,getRunningOperationPromise:Vn.removalWarning,getRunningMutationThunk:Vn.getRunningMutationThunk,getRunningMutationsThunk:Vn.getRunningMutationsThunk,getRunningQueryThunk:Vn.getRunningQueryThunk,getRunningQueriesThunk:Vn.getRunningQueriesThunk}),{name:zo,injectEndpoint:function(tt,rn){var Xt,Yn=W;(Xt=Yn.endpoints)[tt]!=null||(Xt[tt]={}),te(rn)?li(Yn.endpoints[tt],{name:tt,select:pr(tt,rn),initiate:io(tt,rn)},bt(ve,tt)):rn.type===Q.mutation&&li(Yn.endpoints[tt],{name:tt,select:ui(),initiate:ms(tt)},bt(Xe,tt))}}}}},ka=no(Wr())})(ED);CD.exports=ED;var sre=CD.exports;const Qr=["general"],Gl=["control","mask","user","other"],are=100,Ey=20,lre={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Gv{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||lre,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Gv(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Gv(this.logger,t)}}var ia=new Gv;class $_{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]=this.observers[r]||[],this.observers[r].push(n)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(r=>r!==n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(s=>{s(...r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(s=>{s.apply(s,[t,...r])})}}function Nh(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function Yk(e){return e==null?"":""+e}function ure(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}function w5(e,t,n){function r(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}const o=typeof t!="string"?[].concat(t):t.split(".");for(;o.length>1;){if(i())return{};const s=r(o.shift());!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={}}return i()?{}:{obj:e,k:r(o.shift())}}function Zk(e,t,n){const{obj:r,k:i}=w5(e,t,Object);r[i]=n}function cre(e,t,n,r){const{obj:i,k:o}=w5(e,t,Object);i[o]=i[o]||[],r&&(i[o]=i[o].concat(n)),r||i[o].push(n)}function Hv(e,t){const{obj:n,k:r}=w5(e,t);if(n)return n[r]}function dre(e,t,n){const r=Hv(e,n);return r!==void 0?r:Hv(t,n)}function TD(e,t,n){for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):TD(e[r],t[r],n):e[r]=t[r]);return e}function pd(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var fre={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function hre(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>fre[t]):e}const pre=[" ",",","?","!",";"];function gre(e,t,n){t=t||"",n=n||"";const r=pre.filter(s=>t.indexOf(s)<0&
`&&(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(_,y){return b(this.line-f.length+y+1,m)+" "+_},this).join(`
`),c+=`
`+b("",m+p)+`^
`,c}else return c+" at index "+(this.index-1);function b(_,y){var g=String(_);return Array(y-g.length+1).join(" ")+g}};function s(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}s.fail={},s.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 b=d.text!==void 0?d.text:d.value,_=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(_):S.type?S.type===d.type:S.literal===b){var w=v.nextState({data:_,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},s.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)},s.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)},s.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(b){var _=b.rule.symbols[b.dot];return _&&typeof _!="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(b){return this.buildFirstStateStack(b,[])||[b]},this);m.forEach(function(b){var _=b[0],y=_.rule.symbols[_.dot],g=this.getSymbolDisplay(y);d.push("A "+g+" based on:"),this.displayStateStack(b,d)},this)}return d.push(""),d.join(`
`)},s.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}},s.prototype.getSymbolDisplay=function(u){return a(u)},s.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)},s.prototype.save=function(){var u=this.table[this.current];return u.lexerState=this.lexerState,u},s.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()},s.prototype.rewind=function(u){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[u])},s.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!==s.fail&&u.push(f)}),u.map(function(f){return f.data})};function a(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:s,Grammar:i,Rule:t}})})($L);var Ble=$L.exports,Nc={},FL={},Ou={};Ou.__esModule=void 0;Ou.__esModule=!0;var zle=typeof Object.setPrototypeOf=="function",Ule=typeof Object.getPrototypeOf=="function",jle=typeof Object.defineProperty=="function",Vle=typeof Object.create=="function",Gle=typeof Object.prototype.hasOwnProperty=="function",Hle=function(t,n){zle?Object.setPrototypeOf(t,n):t.__proto__=n};Ou.setPrototypeOf=Hle;var qle=function(t){return Ule?Object.getPrototypeOf(t):t.__proto__||t.prototype};Ou.getPrototypeOf=qle;var i6=!1,Wle=function e(t,n,r){if(jle&&!i6)try{Object.defineProperty(t,n,r)}catch{i6=!0,e(t,n,r)}else t[n]=r.value};Ou.defineProperty=Wle;var BL=function(t,n){return Gle?t.hasOwnProperty(t,n):t[n]===void 0};Ou.hasOwnProperty=BL;var Kle=function(t,n){if(Vle)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)BL(n,o)&&(i[o]=n[o].value);return i};Ou.objectCreate=Kle;(function(e){e.__esModule=void 0,e.__esModule=!0;var t=Ou,n=t.setPrototypeOf,r=t.getPrototypeOf,i=t.defineProperty,o=t.objectCreate,s=new Error().toString()==="[object Error]",a="";function l(u){var c=this.constructor,d=c.name||function(){var b=c.toString().match(/^function\s*([^\s(]+)/);return b===null?a||"Error":b[1]}(),f=d==="Error",h=f?a: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 s&&i(p,"toString",{configurable:!0,enumerable:!1,value:function(){return(this.name||"Error")+(typeof this.message>"u"?"":": "+this.message)},writable:!0}),p}a=l.name||"ExtendableError",l.prototype=o(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}}),e.ExtendableError=l,e.default=e.ExtendableError})(FL);var zL=dt&&dt.__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(
${R}`,F=`,
${R}`);const K=Math.min(I.length,x);let te=0;for(;te<K-1;te++){const me=C(String(te),I,P,D,B,R);O+=me!==void 0?me:"null",O+=F}const oe=C(String(te),I,P,D,B,R);if(O+=oe!==void 0?oe:"null",I.length-1>x){const me=I.length-x-1;O+=`${F}"... ${h(me)} not stringified"`}return B!==""&&(O+=`
${U}`),P.pop(),`[${O}]`}let V=Object.keys(I);const H=V.length;if(H===0)return"{}";if(w<P.length+1)return'"[Object]"';let Y="",Q="";B!==""&&(R+=B,F=`,
${R}`,Y=" ");const j=Math.min(H,x);S&&!l(I)&&(V=s(V)),P.push(I);for(let K=0;K<j;K++){const te=V[K],oe=C(te,I,P,D,B,R);oe!==void 0&&(O+=`${Q}${o(te)}:${Y}${oe}`,Q=F)}if(H>x){const K=H-x;O+=`${Q}"...":${Y}"${h(K)} not stringified"`,Q=F}return B!==""&&Q.length>1&&(O=`
${R}${O}
${U}`),P.pop(),`{${O}}`}case"number":return isFinite(I)?String(I):y?y(I):"null";case"boolean":return I===!0?"true":"false";case"undefined":return;case"bigint":if(v)return String(I);default:return y?y(I):void 0}}function A(N,E,P,D,B,R){switch(typeof E=="object"&&E!==null&&typeof E.toJSON=="function"&&(E=E.toJSON(N)),typeof E){case"string":return o(E);case"object":{if(E===null)return"null";if(P.indexOf(E)!==-1)return g;const I=R;let O="",F=",";if(Array.isArray(E)){if(E.length===0)return"[]";if(w<P.length+1)return'"[Array]"';P.push(E),B!==""&&(R+=B,O+=`
${R}`,F=`,
${R}`);const H=Math.min(E.length,x);let Y=0;for(;Y<H-1;Y++){const j=A(String(Y),E[Y],P,D,B,R);O+=j!==void 0?j:"null",O+=F}const Q=A(String(Y),E[Y],P,D,B,R);if(O+=Q!==void 0?Q:"null",E.length-1>x){const j=E.length-x-1;O+=`${F}"... ${h(j)} not stringified"`}return B!==""&&(O+=`
${I}`),P.pop(),`[${O}]`}P.push(E);let U="";B!==""&&(R+=B,F=`,
${R}`,U=" ");let V="";for(const H of D){const Y=A(H,E[H],P,D,B,R);Y!==void 0&&(O+=`${V}${o(H)}:${U}${Y}`,V=F)}return B!==""&&V.length>1&&(O=`
${R}${O}
${I}`),P.pop(),`{${O}}`}case"number":return isFinite(E)?String(E):y?y(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(v)return String(E);default:return y?y(E):void 0}}function T(N,E,P,D,B){switch(typeof E){case"string":return o(E);case"object":{if(E===null)return"null";if(typeof E.toJSON=="function"){if(E=E.toJSON(N),typeof E!="object")return T(N,E,P,D,B);if(E===null)return"null"}if(P.indexOf(E)!==-1)return g;const R=B;if(Array.isArray(E)){if(E.length===0)return"[]";if(w<P.length+1)return'"[Array]"';P.push(E),B+=D;let Y=`
${B}`;const Q=`,
${B}`,j=Math.min(E.length,x);let K=0;for(;K<j-1;K++){const oe=T(String(K),E[K],P,D,B);Y+=oe!==void 0?oe:"null",Y+=Q}const te=T(String(K),E[K],P,D,B);if(Y+=te!==void 0?te:"null",E.length-1>x){const oe=E.length-x-1;Y+=`${Q}"... ${h(oe)} not stringified"`}return Y+=`
${R}`,P.pop(),`[${Y}]`}let I=Object.keys(E);const O=I.length;if(O===0)return"{}";if(w<P.length+1)return'"[Object]"';B+=D;const F=`,
${B}`;let U="",V="",H=Math.min(O,x);l(E)&&(U+=u(E,F,x),I=I.slice(E.length),H-=E.length,V=F),S&&(I=s(I)),P.push(E);for(let Y=0;Y<H;Y++){const Q=I[Y],j=T(Q,E[Q],P,D,B);j!==void 0&&(U+=`${V}${o(Q)}: ${j}`,V=F)}if(O>x){const Y=O-x;U+=`${V}"...": "${h(Y)} not stringified"`,V=F}return V!==""&&(U=`
${B}${U}
${R}`),P.pop(),`{${U}}`}case"number":return isFinite(E)?String(E):y?y(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(v)return String(E);default:return y?y(E):void 0}}function k(N,E,P){switch(typeof E){case"string":return o(E);case"object":{if(E===null)return"null";if(typeof E.toJSON=="function"){if(E=E.toJSON(N),typeof E!="object")return k(N,E,P);if(E===null)return"null"}if(P.indexOf(E)!==-1)return g;let D="";if(Array.isArray(E)){if(E.length===0)return"[]";if(w<P.length+1)return'"[Array]"';P.push(E);const F=Math.min(E.length,x);let U=0;for(;U<F-1;U++){const H=k(String(U),E[U],P);D+=H!==void 0?H:"null",D+=","}const V=k(String(U),E[U],P);if(D+=V!==void 0?V:"null",E.length-1>x){const H=E.length-x-1;D+=`,"... ${h(H)} not stringified"`}return P.pop(),`[${D}]`}let B=Object.keys(E);const R=B.length;if(R===0)return"{}";if(w<P.length+1)return'"[Object]"';let I="",O=Math.min(R,x);l(E)&&(D+=u(E,",",x),B=B.slice(E.length),O-=E.length,I=","),S&&(B=s(B)),P.push(E);for(let F=0;F<O;F++){const U=B[F],V=k(U,E[U],P);V!==void 0&&(D+=`${I}${o(U)}:${V}`,I=",")}if(R>x){const F=R-x;D+=`${I}"...":"${h(F)} not stringified"`}return P.pop(),`{${D}}`}case"number":return isFinite(E)?String(E):y?y(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(v)return String(E);default:return y?y(E):void 0}}function L(N,E,P){if(arguments.length>1){let D="";if(typeof P=="number"?D=" ".repeat(Math.min(P,10)):typeof P=="string"&&(D=P.slice(0,10)),E!=null){if(typeof E=="function")return C("",{"":N},[],E,D,"");if(Array.isArray(E))return A("",N,[],p(E),D,"")}if(D.length!==0)return T("",N,[],D,"")}return k("",N,[])}return L}})(RC,RC.exports);var yue=RC.exports;(function(e){var t=dt&&dt.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(e,"__esModule",{value:!0}),e.createLogger=void 0;const n=Dc,r=Nm,i=WL,o=KL,s=t(O5),a=t(yue);let l=!1;const u=(0,s.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,A,T,k,L,N,E)=>{g.child({logLevel:v})(S,w,x,C,A,T,k,L,N,E)},b=1e3,_=(g,v)=>(S,w,x,C,A,T,k,L,N,E)=>{const P=(0,a.default)({a:S,b:w,c:x,d:C,e:A,f:T,g:k,h:L,i:N,j:E,logLevel:v});if(!P)throw new Error("Expected key to be a string");const D=c().onceLog;D.has(P)||(D.add(P),D.size>b&&D.clear(),g.child({logLevel:v})(S,w,x,C,A,T,k,L,N,E))},y=(g,v={},S=[])=>{const w=(x,C,A,T,k,L,N,E,P,D)=>{const B=Date.now(),R=p();let I;h()?I=f():I=d();let O,F;if(typeof x=="string"?O={...I.messageContext,...v}:O={...I.messageContext,...v,...x},typeof x=="string"&&C===void 0)F=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.");F=(0,o.printf)(x,C,A,T,k,L,N,E,P,D)}else{let V=C;if(typeof C!="string")if(C===void 0)V="";else throw new TypeError("Message must be a string. Received "+typeof C+".");F=(0,o.printf)(V,A,T,k,L,N,E,P,D)}let U={context:O,message:F,sequence:R,time:B,version:n.ROARR_LOG_FORMAT_VERSION};for(const V of[...I.transforms,...S])if(U=V(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;
`),b=`
color: `.concat(Pue[f].color,`;
`),_=`
color: inherit;
`;Object.keys(d).length>0?h("%c ".concat(f," %c").concat(c?" [".concat(String(c),"]:"):"","%c ").concat(a.message," %O"),m,b,_,d):h("%c ".concat(f," %c").concat(c?" [".concat(String(c),"]:"):"","%c ").concat(a.message),m,b,_)}}};U_.createLogWriter=Iue;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createLogWriter=void 0;var t=U_;Object.defineProperty(e,"createLogWriter",{enumerable:!0,get:function(){return t.createLogWriter}})})(CL);Mm.ROARR.write=CL.createLogWriter();const QL={};Mm.Roarr.child(QL);const sb=Ru(Mm.Roarr.child(QL)),ge=e=>sb.get().child({namespace:e}),WRe=["trace","debug","info","warn","error","fatal"],KRe={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},mn=e=>{try{return JSON.parse(JSON.stringify(e))}catch{return"Error parsing object"}},Oue=async e=>{const t={},n=await e.arrayBuffer(),r=Cae(n).text,i=Mv(r,"invokeai_metadata");if(i){const s=MD.safeParse(JSON.parse(i));s.success?t.metadata=s.data:ge("system").error({error:mn(s.error)},"Problem reading metadata from image")}const o=Mv(r,"invokeai_workflow");if(o){const s=FD.safeParse(JSON.parse(o));s.success?t.workflow=s.data:ge("system").error({error:mn(s.error)},"Problem reading workflow from image")}return t};var o1=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},s1=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},Mue=Object.defineProperty,Nue=Object.defineProperties,Due=Object.getOwnPropertyDescriptors,a1=Object.getOwnPropertySymbols,YL=Object.prototype.hasOwnProperty,ZL=Object.prototype.propertyIsEnumerable,u6=function(e,t,n){return t in e?Mue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},yr=function(e,t){for(var n in t||(t={}))YL.call(t,n)&&u6(e,n,t[n]);if(a1)for(var r=0,i=a1(t);r<i.length;r++){var n=i[r];ZL.call(t,n)&&u6(e,n,t[n])}return e},oa=function(e,t){return Nue(e,Due(t))},c6=function(e,t){var n={};for(var r in e)YL.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&a1)for(var i=0,o=a1(e);i<o.length;i++){var r=o[i];t.indexOf(r)<0&&ZL.call(e,r)&&(n[r]=e[r])}return n},l1=function(e,t,n){return new Promise(function(r,i){var o=function(l){try{a(n.next(l))}catch(u){i(u)}},s=function(l){try{a(n.throw(l))}catch(u){i(u)}},a=function(l){return l.done?r(l.value):Promise.resolve(l.value).then(o,s)};a((n=n.apply(e,t)).next())})},Wn;(function(e){e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected"})(Wn||(Wn={}));function Lue(e){return{status:e,isUninitialized:e===Wn.uninitialized,isLoading:e===Wn.pending,isSuccess:e===Wn.fulfilled,isError:e===Wn.rejected}}function $ue(e){return new RegExp("(^|:)//").test(e)}var Fue=function(e){return e.replace(/\/$/,"")},Bue=function(e){return e.replace(/^\//,"")};function zue(e,t){if(!e)return t;if(!t)return e;if($ue(t))return t;var n=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=Fue(e),t=Bue(t),""+e+n+t}var d6=function(e){return[].concat.apply([],e)};function Uue(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigat
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 s1(s1([],v(s)),v(a)).filter(sw)}function p(v,S){return function(w){var x,C=o.endpointDefinitions[v],A=t({queryArgs:S,endpointDefinition:C,endpointName:v});return(x=s.get(w))==null?void 0:x[A]}}function m(v,S){return function(w){var x;return(x=a.get(w))==null?void 0:x[S]}}function b(){return function(v){return Object.values(s.get(v)||{}).filter(sw)}}function _(){return function(v){return Object.values(a.get(v)||{}).filter(sw)}}function y(v,S){var w=function(x,C){var A=C===void 0?{}:C,T=A.subscribe,k=T===void 0?!0:T,L=A.forceRefetch,N=A.subscriptionOptions,E=Ig,P=A[E];return function(D,B){var R,I,O=t({queryArgs:x,endpointDefinition:S,endpointName:v}),F=n((R={type:"query",subscribe:k,forceRefetch:L,subscriptionOptions:N,endpointName:v,originalArgs:x,queryCacheKey:O},R[Ig]=P,R)),U=i.endpoints[v].select(x),V=D(F),H=U(B()),Y=V.requestId,Q=V.abort,j=H.requestId!==Y,K=(I=s.get(D))==null?void 0:I[O],te=function(){return U(B())},oe=Object.assign(P?V.then(te):j&&!K?Promise.resolve(H):Promise.all([K,V]).then(te),{arg:x,requestId:Y,subscriptionOptions:N,queryCacheKey:O,abort:Q,unwrap:function(){return l1(this,null,function(){var le;return o1(this,function(ht){switch(ht.label){case 0:return[4,oe];case 1:if(le=ht.sent(),le.isError)throw le.error;return[2,le.data]}})})},refetch:function(){return D(w(x,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){k&&D(u({queryCacheKey:O,requestId:Y}))},updateSubscriptionOptions:function(le){oe.subscriptionOptions=le,D(d({endpointName:v,requestId:Y,queryCacheKey:O,options:le}))}});if(!K&&!j&&!P){var me=s.get(D)||{};me[O]=oe,s.set(D,me),oe.then(function(){delete me[O],Object.keys(me).length||s.delete(D)})}return oe}};return w}function g(v){return function(S,w){var x=w===void 0?{}:w,C=x.track,A=C===void 0?!0:C,T=x.fixedCacheKey;return function(k,L){var N=r({type:"mutation",endpointName:v,originalArgs:S,track:A,fixedCacheKey:T}),E=k(N),P=E.requestId,D=E.abort,B=E.unwrap,R=E.unwrap().then(function(U){return{data:U}}).catch(function(U){return{error:U}}),I=function(){k(c({requestId:P,fixedCacheKey:T}))},O=Object.assign(R,{arg:E.arg,requestId:P,abort:D,unwrap:B,unsubscribe:I,reset:I}),F=a.get(k)||{};return a.set(k,F),F[P]=O,O.then(function(){delete F[P],Object.keys(F).length||a.delete(k)}),T&&(F[T]=O,O.then(function(){F[T]===O&&(delete F[T],Object.keys(F).length||a.delete(k))})),O}}}}function m6(e){return e}function Xue(e){var t=this,n=e.reducerPath,r=e.baseQuery,i=e.context.endpointDefinitions,o=e.serializeQueryArgs,s=e.api,a=function(g,v,S){return function(w){var x=i[g];w(s.internalActions.queryResultPatched({queryCacheKey:o({queryArgs:v,endpointDefinition:x,endpointName:g}),patches:S}))}},l=function(g,v,S){return function(w,x){var C,A,T=s.endpoints[g].select(v)(x()),k={patches:[],inversePatches:[],undo:function(){return w(s.util.patchQueryData(g,v,k.inversePatches))}};if(T.status===Wn.uninitialized)return k;if("data"in T)if(go(T.data)){var L=JE(T.data,S),N=L[1],E=L[2];(C=k.patches).push.apply(C,N),(A=k.inversePatches).push.apply(A,E)}else{var P=S(T.data);k.patches.push({op:"replace",path:[],value:P}),k.inversePatches.push({op:"replace",path:[],value:T.data})}return w(s.util.patchQueryData(g,v,k.patches)),k}},u=function(g,v,S){return function(w){var x;return w(s.endpoints[g].initiate(v,(x={subscribe:!1,forceRefetch:!0},x[Ig]=function(){return{data:S}},x)))}},c=function(g,v){return l1(t,[g,v],function(S,w){var x,C,A,T,k,L,N,E,P,D,B,R,I,O,F,U,V,H,Y=w.signal,Q=w.abort,j=w.rejectWithValue,K=w.fulfillWithValue,te=w.dispatch,oe=w.getState,me=w.extra;return o1(this,function(le){switch(le.label){case 0:x=i[S.endpointName],le.label=1;case 1:return le.trys.push([1,8,,13]),C=m6,A=void 0,T={signal:Y,abort:Q,dispatch:te,getState:oe,extra:me,endpoint:S.endpointName,type:S.type,forced:S.type==="query"?d(S,oe()):void 0},k=S.type==="query"?S[Ig]:void 0,k?(A=k(),[3,6]):[3,2];
* @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 Gf=M;function fce(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hce=typeof Object.is=="function"?Object.is:fce,pce=Gf.useState,gce=Gf.useEffect,mce=Gf.useLayoutEffect,yce=Gf.useDebugValue;function vce(e,t){var n=t(),r=pce({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return mce(function(){i.value=n,i.getSnapshot=t,aw(i)&&o({inst:i})},[e,n,t]),gce(function(){return aw(i)&&o({inst:i}),e(function(){aw(i)&&o({inst:i})})},[e]),yce(n),n}function aw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!hce(e,n)}catch{return!0}}function _ce(e,t){return t()}var bce=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?_ce:vce;a$.useSyncExternalStore=Gf.useSyncExternalStore!==void 0?Gf.useSyncExternalStore:bce;s$.exports=a$;var Sce=s$.exports,l$={exports:{}},u$={};/**
* @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 ab=M,wce=Sce;function xce(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Cce=typeof Object.is=="function"?Object.is:xce,Ece=wce.useSyncExternalStore,Tce=ab.useRef,Ace=ab.useEffect,kce=ab.useMemo,Pce=ab.useDebugValue;u$.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=Tce(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=kce(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),i!==void 0&&s.hasValue){var p=s.value;if(i(p,h))return d=p}return d=h}if(p=d,Cce(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 a=Ece(e,o[0],o[1]);return Ace(function(){s.hasValue=!0,s.value=a},[a]),Pce(a),a};l$.exports=u$;var c$=l$.exports;const Rce=Uc(c$);function Ice(e){e()}let d$=Ice;const Oce=e=>d$=e,Mce=()=>d$,C6=Symbol.for("react-redux-context"),E6=typeof globalThis<"u"?globalThis:{};function Nce(){var e;if(!M.createContext)return{};const t=(e=E6[C6])!=null?e:E6[C6]=new Map;let n=t.get(M.createContext);return n||(n=M.createContext(null),t.set(M.createContext,n)),n}const vu=Nce();function $5(e=vu){return function(){return M.useContext(e)}}const f$=$5(),Dce=()=>{throw new Error("uSES not initialized!")};let h$=Dce;const Lce=e=>{h$=e},$ce=(e,t)=>e===t;function Fce(e=vu){const t=e===vu?f$:$5(e);return function(r,i={}){const{equalityFn:o=$ce,stabilityCheck:s=void 0,noopCheck:a=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:l,subscription:u,getServerState:c,stabilityCheck:d,noopCheck:f}=t();M.useRef(!0);const h=M.useCallback({[r.name](m){return r(m)}}[r.name],[r,d,s]),p=h$(u.addNestedSub,l.getState,c||l.getState,h,o);return M.useDebugValue(p),p}}const p$=Fce();function u1(){return u1=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},u1.apply(this,arguments)}var g$={exports:{}},un={};/** @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 ii=typeof Symbol=="function"&&Symbol.for,F5=ii?Symbol.for("react.element"):60103,B5=ii?Symbol.for("react.portal"):60106,lb=ii?Symbol.for("react.fragment"):60107,ub=ii?Symbol.for("react.strict_mode"):60108,cb=ii?Symbol.for("react.profiler"):60114,db=ii?Symbol.for("react.provider"):60109,fb=ii?Symbol.for("react.context"):60110,z5=ii?Symbol.for("react.async_mode"):60111,hb=ii?Symbol.for("react.concurrent_mode"):60111,pb=ii?Symbol.for("react.forward_ref"):60112,gb=ii?Symbol.for("react.suspense"):60113,Bce=ii?Symbol.for("react.suspense_list"):60120,mb=ii?Symbol.for("react.memo"):60115,yb=ii?Symbol.for("react.lazy"):60116,zce=ii?Symbol.for("react.block"):60121,Uce=ii?Symbol.for("react.fundamental"):60117,jce=ii?Symbol.for("react.responder"):60118,Vce=ii?Symbol.for("react.scope"):60119;function Bo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case F5:switch(e=e.type,e){case z5:case hb:case lb:case cb:case ub:case gb:return e;default:switch(e=e&&e.$$typeof,e){case fb:case pb:case yb:case mb:case db:return e;default:return t}}case B5:return t}}}function m$(e){return Bo(e)===hb}un.AsyncMode=z5;un.ConcurrentMode=hb;un.ContextConsumer=fb;un.ContextProvider=db;un.Element=F5;un.ForwardRef=pb;un.Fragment=lb;un.Lazy=yb;un.Memo=mb;un.Portal=B5;un.Profiler=cb;un.StrictMode=ub;un.Suspense=gb;un.isAsyncMode=function(e){return m$(e)||Bo(e)===z5};un.isConcurrentMode=m$;un.isContextConsumer=function(e){return Bo(e)===fb};un.isContextProvider=function(e){return Bo(e)===db};un.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===F5};un.isForwardRef=function(e){return Bo(e)===pb};un.isFragment=function(e){return Bo(e)===lb};un.isLazy=function(e){return Bo(e)===yb};un.isMemo=function(e){return Bo(e)===mb};un.isPortal=function(e){return Bo(e)===B5};un.isProfiler=function(e){return Bo(e)===cb};un.isStrictMode=function(e){return Bo(e)===ub};un.isSuspense=function(e){return Bo(e)===gb};un.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===lb||e===hb||e===cb||e===ub||e===gb||e===Bce||typeof e=="object"&&e!==null&&(e.$$typeof===yb||e.$$typeof===mb||e.$$typeof===db||e.$$typeof===fb||e.$$typeof===pb||e.$$typeof===Uce||e.$$typeof===jce||e.$$typeof===Vce||e.$$typeof===zce)};un.typeOf=Bo;g$.exports=un;var Gce=g$.exports,y$=Gce,Hce={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qce={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},v$={};v$[y$.ForwardRef]=Hce;v$[y$.Memo]=qce;var _n={};/**
* @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 U5=Symbol.for("react.element"),j5=Symbol.for("react.portal"),vb=Symbol.for("react.fragment"),_b=Symbol.for("react.strict_mode"),bb=Symbol.for("react.profiler"),Sb=Symbol.for("react.provider"),wb=Symbol.for("react.context"),Wce=Symbol.for("react.server_context"),xb=Symbol.for("react.forward_ref"),Cb=Symbol.for("react.suspense"),Eb=Symbol.for("react.suspense_list"),Tb=Symbol.for("react.memo"),Ab=Symbol.for("react.lazy"),Kce=Symbol.for("react.offscreen"),_$;_$=Symbol.for("react.module.reference");function ss(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case U5:switch(e=e.type,e){case vb:case bb:case _b:case Cb:case Eb:return e;default:switch(e=e&&e.$$typeof,e){case Wce:case wb:case xb:case Ab:case Tb:case Sb:return e;default:return t}}case j5:return t}}}_n.ContextConsumer=wb;_n.ContextProvider=Sb;_n.Element=U5;_n.ForwardRef=xb;_n.Fragment=vb;_n.Lazy=Ab;_n.Memo=Tb;_n.Portal=j5;_n.Profiler=bb;_n.StrictMode=_b;_n.Suspense=Cb;_n.SuspenseList=Eb;_n.isAsyncMode=function(){return!1};_n.isConcurrentMode=function(){return!1};_n.isContextConsumer=function(e){return ss(e)===wb};_n.isContextProvider=function(e){return ss(e)===Sb};_n.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===U5};_n.isForwardRef=function(e){return ss(e)===xb};_n.isFragment=function(e){return ss(e)===vb};_n.isLazy=function(e){return ss(e)===Ab};_n.isMemo=function(e){return ss(e)===Tb};_n.isPortal=function(e){return ss(e)===j5};_n.isProfiler=function(e){return ss(e)===bb};_n.isStrictMode=function(e){return ss(e)===_b};_n.isSuspense=function(e){return ss(e)===Cb};_n.isSuspenseList=function(e){return ss(e)===Eb};_n.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===vb||e===bb||e===_b||e===Cb||e===Eb||e===Kce||typeof e=="object"&&e!==null&&(e.$$typeof===Ab||e.$$typeof===Tb||e.$$typeof===Sb||e.$$typeof===wb||e.$$typeof===xb||e.$$typeof===_$||e.getModuleId!==void 0)};_n.typeOf=ss;function Xce(){const e=Mce();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 T6={notify(){},get:()=>[]};function Qce(e,t){let n,r=T6;function i(d){return l(),r.subscribe(d)}function o(){r.notify()}function s(){c.onStateChange&&c.onStateChange()}function a(){return!!n}function l(){n||(n=t?t.addNestedSub(s):e.subscribe(s),r=Xce())}function u(){n&&(n(),n=void 0,r.clear(),r=T6)}const c={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:s,isSubscribed:a,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return c}const Yce=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Zce=Yce?M.useLayoutEffect:M.useEffect;function A6(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function c1(e,t){if(A6(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])||!A6(e[n[i]],t[n[i]]))return!1;return!0}function Jce({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){const s=M.useMemo(()=>{const u=Qce(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:o}},[e,r,i,o]),a=M.useMemo(()=>e.getState(),[e]);Zce(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,a]);const l=t||vu;return M.createElement(l.Provider,{value:s},n)}function b$(e=vu){const t=e===vu?f$:$5(e);return function(){const{store:r}=t();return r}}const S$=b$();function ede(e=vu){const t=e===vu?S$:b$(e);return function(){return t().dispatch}}const w$=ede();Lce(c$.useSyncExternalStoreWithSelector);Oce(Cs.unstable_batchedUpdates);var tde=globalThis&&global
${u.loc.join(".")}`,{length:128}),duration:i}))});return}}else(s=n.payload)!=null&&s.error&&(r=(a=n.payload)==null?void 0:a.error);t.toastQueue.push(sa({title:J("toast.serverError"),status:"error",description:$2(Mv(r,"detail","Unknown Error"),{length:128}),duration:i}))}),e.addMatcher(zye,(t,n)=>{t.isProcessing=!1,t.isCancelable=!0,t.currentStatusHasSteps=!1,t.currentStep=0,t.totalSteps=0,t.statusTranslationKey="common.statusError",t.progressImage=null,t.toastQueue.push(sa({title:J("toast.serverError"),status:"error",description:tte(n.payload.data.error_type)}))})}}),{setIsProcessing:w9e,setShouldConfirmOnDelete:x9e,setCurrentStatus:C9e,setIsCancelable:E9e,setEnableImageDebugging:T9e,addToast:Tn,clearToastQueue:A9e,cancelScheduled:k9e,scheduledCancelAborted:P9e,cancelTypeChanged:R9e,subscribedNodeIdsSet:I9e,consoleLogLevelChanged:O9e,shouldLogToConsoleChanged:M9e,isPersistedChanged:N9e,shouldAntialiasProgressImageChanged:D9e,languageChanged:L9e,progressImageSet:Lye,shouldUseNSFWCheckerChanged:$ye,shouldUseWatermarkerChanged:Fye}=FB.actions,Bye=FB.reducer,zye=os(kb,W$,X$),Uye={searchFolder:null,advancedAddScanModel:null},BB=nr({name:"modelmanager",initialState:Uye,reducers:{setSearchFolder:(e,t)=>{e.searchFolder=t.payload},setAdvancedAddScanModel:(e,t)=>{e.advancedAddScanModel=t.payload}}}),{setSearchFolder:$9e,setAdvancedAddScanModel:F9e}=BB.actions,jye=BB.reducer,zB={shift:!1,ctrl:!1,meta:!1},UB=nr({name:"hotkeys",initialState:zB,reducers:{shiftKeyPressed:(e,t)=>{e.shift=t.payload},ctrlKeyPressed:(e,t)=>{e.ctrl=t.payload},metaKeyPressed:(e,t)=>{e.meta=t.payload}}}),{shiftKeyPressed:B9e,ctrlKeyPressed:z9e,metaKeyPressed:U9e}=UB.actions,Vye=UB.reducer,jB=["txt2img","img2img","unifiedCanvas","nodes","modelManager","batch"],R8=(e,t)=>{typeof t=="number"?e.activeTab=t:e.activeTab=jB.indexOf(t)},VB={activeTab:0,shouldShowImageDetails:!1,shouldUseCanvasBetaLayout:!1,shouldShowExistingModelsInSearch:!1,shouldUseSliders:!1,shouldHidePreview:!1,shouldShowProgressInViewer:!0,shouldShowEmbeddingPicker:!1,shouldAutoChangeDimensions:!1,favoriteSchedulers:[],globalContextMenuCloseTrigger:0,panels:{}},GB=nr({name:"ui",initialState:VB,reducers:{setActiveTab:(e,t)=>{R8(e,t.payload)},setShouldShowImageDetails:(e,t)=>{e.shouldShowImageDetails=t.payload},setShouldUseCanvasBetaLayout:(e,t)=>{e.shouldUseCanvasBetaLayout=t.payload},setShouldHidePreview:(e,t)=>{e.shouldHidePreview=t.payload},setShouldShowExistingModelsInSearch:(e,t)=>{e.shouldShowExistingModelsInSearch=t.payload},setShouldUseSliders:(e,t)=>{e.shouldUseSliders=t.payload},setShouldShowProgressInViewer:(e,t)=>{e.shouldShowProgressInViewer=t.payload},favoriteSchedulersChanged:(e,t)=>{e.favoriteSchedulers=t.payload},toggleEmbeddingPicker:e=>{e.shouldShowEmbeddingPicker=!e.shouldShowEmbeddingPicker},setShouldAutoChangeDimensions:(e,t)=>{e.shouldAutoChangeDimensions=t.payload},contextMenusClosed:e=>{e.globalContextMenuCloseTrigger+=1},panelsChanged:(e,t)=>{e.panels[t.payload.name]=t.payload.value}},extraReducers(e){e.addCase(D_,t=>{R8(t,"img2img")})}}),{setActiveTab:HB,setShouldShowImageDetails:j9e,setShouldUseCanvasBetaLayout:V9e,setShouldShowExistingModelsInSearch:G9e,setShouldUseSliders:H9e,setShouldHidePreview:q9e,setShouldShowProgressInViewer:W9e,favoriteSchedulersChanged:K9e,toggleEmbeddingPicker:X9e,setShouldAutoChangeDimensions:Q9e,contextMenusClosed:Y9e,panelsChanged:Z9e}=GB.actions,Gye=GB.reducer,Hye=Y1(Aq);qB=JC=void 0;var qye=Hye,Wye=function(){var t=[],n=[],r=void 0,i=function(u){return r=u,function(c){return function(d){return qye.compose.apply(void 0,n)(c)(d)}}},o=function(){for(var u,c,d=arguments.length,f=Array(d),h=0;h<d;h++)f[h]=arguments[h];(u=n).push.apply(u,f.map(function(p){return p(r)})),(c=t).push.apply(c,f)},s=function(u){var c=t.findIndex(function(d){return d===u});if(c===-1){console.error("Middleware does not exist!",u);return}t=t.filter(function(d,f){return f!==c}),n=n.filter(function(d,f){return f!==c})},a=function(){n=[],t=[]};return{enhancer:i,addMiddleware:o,removeMiddleware:s,resetMiddlewares:a}},$b=Wye(),Kye=$b.enhancer,Xye=$b.addMid
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i0e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,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)&&(a.push(r.value),a.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function o0e(e){if(Array.isArray(e))return e}function ww(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=KB(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,s=!1,a;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function KB(e,t){if(e){if(typeof e=="string")return O8(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 O8(e,t)}}function O8(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 C1(e){"@babel/helpers - typeof";return C1=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},C1(e)}var M8=function(t){var n;return(n=Object.prototype.toString.call(t).match(/\[object (.*)\]/))===null||n===void 0?void 0:n[1]},N8=function(t){return/^\[object (?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)Array\]$/.test(Object.prototype.toString.call(t))},s0e=function e(t,n){if(t===n)return!0;if(C1(t)!=="object"||C1(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(N8(t)&&N8(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=M8(t),s=M8(n);if(o==="DataView"&&s==="DataView")return t.byteLength!==n.byteLength||t.byteOffset!==n.byteOffset?!1:e(t.buffer,n.buffer);if(o==="ArrayBuffer"&&s==="ArrayBuffer")return t.byteLength!==n.byteLength?!1:e(new Uint8Array(t),new Uint8Array(n));if(o==="Map"&&s==="Map"){if(t.size!==n.size)return!1;var a=ww(t.entries()),l;try{for(a.s();!(l=a.n()).done;){var u=Sw(l.value,1),c=u[0];if(!n.has(c))return!1}}catch(C){a.e(C)}finally{a.f()}var d=ww(t.entries()),f;try{for(d.s();!(f=d.n()).done;){var h=Sw(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"&&s==="Set"){if(t.size!==n.size)return!1;var b=ww(t.entries()),_;try{for(b.s();!(_=b.n()).done;){var y=Sw(_.value,1),g=y[0];if(!n.has(g))return!1}}catch(C){b.e(C)}finally{b.f()}return!0}if(o==="Date"&&s==="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"&&s!=="Object"?t===n:!0};const yT=s0e;function D8(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(u){n(u);return}a.done?t(l):Promise.resolve(l).then(r,i)}function XB(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(l){D8(o,r,i,s,a,"next",l)}function a(l){D8(o,r,i,s,a,"throw",l)}s(void 0)})}}var a0e=function(){var e=XB(function*(t,n,r){var i=r.prefix,o=r.driver,s=r.serialize;if(!yT(t,n))return o.setItem("".concat(i,"rootState"),s(t,"rootState"))});return function(n,r,i){return e.apply(this,arguments)}}(),l0e=function(t,n,r){var i=r.prefix,o=r.driver,s=r.serialize;return Promise.all(Object.keys(t).map(function(a){return yT(t[a],n[a])?Promise.resolve():o.setItem("".concat(i).concat(a),s(t[a],a))}))},u0e=function(){var e=XB(function*(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=r.prefix,o=r.driver,s=r.persistWholeStore,a=r.serialize;try{var l=s?a0e:l0e;yield l(t,n,{prefix:i,driver:o,serialize:a})}catch(u){console.warn("redux-remember: persist error",u)}});return function(){return e.apply(this,arguments)}}();function L8(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(u){n(u);return}a.done?t(l):Promise.resolve(l).then(r,i)}
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,s=this.attrs.height,a=o!==Ed&&o!==void 0,l=s!==Ed&&s!==void 0,u=this.padding(),c=o-u*2,d=s-u*2,f=0,h=this.wrap(),p=h!==tR,m=h!==Q1e&&p,b=this.ellipsis();this.textArr=[],Rw().font=this._getContextFont();for(var _=b?this._getTextWidth(Pw):0,y=0,g=t.length;y<g;++y){var v=t[y],S=this._getTextWidth(v);if(a&&S>c)for(;v.length>0;){for(var w=0,x=v.length,C="",A=0;w<x;){var T=w+x>>>1,k=v.slice(0,T+1),L=this._getTextWidth(k)+_;L<=c?(w=T+1,C=k,A=L):x=T}if(C){if(m){var N,E=v[C.length],P=E===Yy||E===J8;P&&A<=c?N=C.length:N=Math.max(C.lastIndexOf(Yy),C.lastIndexOf(J8))+1,N>0&&(w=N,C=C.slice(0,w),A=this._getTextWidth(C))}C=C.trimRight(),this._addTextLine(C),r=Math.max(r,A),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!==Ed&&i!==void 0,s=this.padding(),a=i-s*2,l=this.wrap(),u=l!==tR;return!u||o&&t+r>a}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==Ed&&t!==void 0,r=this.padding(),i=t-r*2,o=this.ellipsis(),s=this.textArr[this.textArr.length-1];if(!(!s||!o)){if(n){var a=this._getTextWidth(s.text+Pw)<i;a||(s.text=s.text.slice(0,s.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(s.text+Pw)}}getStrokeScaleEnabled(){return!0}};Fc.Text=br;br.prototype._fillFunc=J1e;br.prototype._strokeFunc=e_e;br.prototype.className=G1e;br.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];(0,B1e._registerNode)(br);Ji.Factory.overWriteSetter(br,"width",(0,Lu.getNumberOrAutoValidator)());Ji.Factory.overWriteSetter(br,"height",(0,Lu.getNumberOrAutoValidator)());Ji.Factory.addGetterSetter(br,"fontFamily","Arial");Ji.Factory.addGetterSetter(br,"fontSize",12,(0,Lu.getNumberValidator)());Ji.Factory.addGetterSetter(br,"fontStyle",Tz);Ji.Factory.addGetterSetter(br,"fontVariant",Tz);Ji.Factory.addGetterSetter(br,"padding",0,(0,Lu.getNumberValidator)());Ji.Factory.addGetterSetter(br,"align",Ez);Ji.Factory.addGetterSetter(br,"verticalAlign",H1e);Ji.Factory.addGetterSetter(br,"lineHeight",1,(0,Lu.getNumberValidator)());Ji.Factory.addGetterSetter(br,"wrap",X1e);Ji.Factory.addGetterSetter(br,"ellipsis",!1,(0,Lu.getBooleanValidator)());Ji.Factory.addGetterSetter(br,"letterSpacing",0,(0,Lu.getNumberValidator)());Ji.Factory.addGetterSetter(br,"text","",(0,Lu.getStringValidator)());Ji.Factory.addGetterSetter(br,"textDecoration","");var aS={};Object.defineProperty(aS,"__esModule",{value:!0});aS.TextPath=void 0;const Iw=sr,js=Et,n_e=jr,Gh=gh,Ow=Fc,kz=We,r_e=At;var i_e="",Pz="normal";function Rz(e){e.fillText(this.partialText,0,0)}function Iz(e){e.strokeText(this.partialText,0,0)}class Vr extends n_e.Shape{constructor(t){super(t),this.dummyCanvas=Iw.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 Gh.Path.getPathLength(this.dataArray)}_getPointAtLength(t){if(!this.attrs.data)return null;const n=this.pathLength;return t-1>n?null:Gh.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=Gh.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=
[data-motion-pop-id="${n}"] {
position: absolute !important;
width: ${o}px !important;
height: ${s}px !important;
top: ${a}px !important;
left: ${l}px !important;
}
`),()=>{document.head.removeChild(u)}},[t]),M.createElement(UAe,{isPresent:t,childRef:r,sizeRef:i},M.cloneElement(e,{ref:r}))}const Zw=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const a=JU(VAe),l=M.useId(),u=M.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:c=>{a.set(c,!0);for(const d of a.values())if(!d)return;r&&r()},register:c=>(a.set(c,!1),()=>a.delete(c))}),o?void 0:[n]);return M.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),M.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=M.createElement(jAe,{isPresent:n},e)),M.createElement(Hm.Provider,{value:u},e)};function VAe(){return new Map}function GAe(e){return M.useEffect(()=>()=>e(),[])}const Md=e=>e.key||"";function HAe(e,t){e.forEach(n=>{const r=Md(n);t.set(r,n)})}function qAe(e){const t=[];return M.Children.forEach(e,n=>{M.isValidElement(n)&&t.push(n)}),t}const WAe=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const a=M.useContext(l4).forceRender||zAe()[0],l=rV(),u=qAe(e);let c=u;const d=M.useRef(new Map).current,f=M.useRef(c),h=M.useRef(new Map).current,p=M.useRef(!0);if(o4(()=>{p.current=!1,HAe(u,h),f.current=c}),GAe(()=>{p.current=!0,h.clear(),d.clear()}),p.current)return M.createElement(M.Fragment,null,c.map(y=>M.createElement(Zw,{key:Md(y),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:s},y)));c=[...c];const m=f.current.map(Md),b=u.map(Md),_=m.length;for(let y=0;y<_;y++){const g=m[y];b.indexOf(g)===-1&&!d.has(g)&&d.set(g,void 0)}return s==="wait"&&d.size&&(c=[]),d.forEach((y,g)=>{if(b.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(A=>A.key===g);if(f.current.splice(C,1),!d.size){if(f.current=u,l.current===!1)return;a(),r&&r()}};w=M.createElement(Zw,{key:Md(v),isPresent:!1,onExitComplete:x,custom:t,presenceAffectsLayout:o,mode:s},v),d.set(g,w)}c.splice(S,0,w)}),c=c.map(y=>{const g=y.key;return d.has(g)?y:M.createElement(Zw,{key:Md(y),isPresent:!0,presenceAffectsLayout:o,mode:s},y)}),M.createElement(M.Fragment,null,d.size?c:c.map(y=>M.cloneElement(y)))};var KAe=DCe({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),iV=zu((e,t)=>{const n=i4("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:s="transparent",className:a,...l}=r4(e),u=JT("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:s,borderLeftColor:s,animation:`${KAe} ${o} linear infinite`,...n};return Z.jsx(wu.div,{ref:t,__css:c,className:u,...l,children:r&&Z.jsx(wu.span,{srOnly:!0,children:r})})});iV.displayName="Spinner";var j3=zu(function(t,n){const{htmlWidth:r,htmlHeight:i,alt:o,...s}=t;return Z.jsx("img",{width:r,height:i,ref:n,alt:o,...s})});j3.displayName="NativeImage";function XAe(e){const{loading:t,src:n,srcSet:r,onLoad:i,onError:o,crossOrigin:s,sizes:a,ignoreFallback:l}=e,[u,c]=M.useState("pending");M.useEffect(()=>{c(n?"loading":"pending")},[n]);const d=M.useRef(),f=M.useCallback(()=>{if(!n)return;h();const p=new Image;p.src=n,s&&(p.crossOrigin=s),r&&(p.srcset=r),a&&(p.sizes=a),t&&(p.loading=t),p.onload=m=>{h(),c("loaded"),i==null||i(m)},p.onerror=m=>{h(),c("failed"),o==null||o(m)},d.current=p},[n,s,r,a,i,o,t]),h=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return LCe(()=>{if(!l)return u==="loading"&&f(),()=>{h()}},[u,f,l]),l?"loaded":u}var QAe=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function YAe(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var T4=zu(function(t,n){const{fallbackSrc:r,fallback:i,src:o,srcSet:s,align:a,fit:l,loading:u,ignoreFallback:c,crossOrigin:d,fallbackStrategy:f="beforeLoadOrError",referrerPolicy:h,...p}=t,m=r!==void 0||i!==void 0,b=u!=null||c||!m,_=XAe({...t,crossOrigin:d,ignoreFallback:b}),y=QAe(_,f),g={ref:n,objectFit:l,objectPosition:a,...b?p:YAe(p,["
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.
`},Lke={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 $ke(e){let{announcements:t=Lke,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=Dke}=e;const{announce:o,announcement:s}=Oke(),a=YS("DndLiveRegion"),[l,u]=M.useState(!1);if(M.useEffect(()=>{u(!0)},[]),Mke(M.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=vn.createElement(vn.Fragment,null,vn.createElement(Pke,{id:r,value:i.draggable}),vn.createElement(Ike,{id:a,announcement:s}));return n?Cs.createPortal(c,n):c}var Fr;(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"})(Fr||(Fr={}));function X1(){}function bO(e,t){return M.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Fke(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return M.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Fs=Object.freeze({x:0,y:0});function Bke(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function zke(e,t){const n=nm(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 Uke(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function jke(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Vke(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 Gke(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function Hke(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),s=i-r,a=o-n;if(r<i&&n<o){const l=t.width*t.height,u=e.width*e.height,c=s*a,d=c/(l+u-c);return Number(d.toFixed(4))}return 0}const qke=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const o of r){const{id:s}=o,a=n.get(s);if(a){const l=Hke(a,t);l>0&&i.push({id:s,data:{droppableContainer:o,value:l}})}}return i.sort(jke)};function Wke(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 Kke=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];const i=[];for(const o of t){const{id:s}=o,a=n.get(s);if(a&&Wke(r,a)){const u=Vke(a).reduce((d,f)=>d+Bke(r,f),0),c=Number((u/4).toFixed(4));i.push({id:s,data:{droppableContainer:o,value:c}})}}return i.sort(Uke)};function Xke(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function mV(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Fs}function Qke(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return i.reduce((s,a)=>({...s,top:s.top+e*a.y,bottom:s.bottom+e*a.y,left:s.left+e*a.x,right:s.right+e*a.x}),{...n})}}const Yke=Qke(1);function yV(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 Zke(e,t,n){const r=yV(t);if(!r)return e;const{scaleX:i,scaleY:o,x:s,y:a}=r,l=e.left-s-(1-i)*parseFloat