easydiffusion/ui/frontend/dist/index.js

114 lines
330 KiB
JavaScript
Raw Normal View History

2022-09-29 20:23:12 +02:00
(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)}})();function id(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var R={exports:{}},A={};/**
2022-09-14 16:48:46 +02:00
* @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.
2022-09-29 20:23:12 +02:00
*/var vi=Symbol.for("react.element"),hg=Symbol.for("react.portal"),gg=Symbol.for("react.fragment"),mg=Symbol.for("react.strict_mode"),vg=Symbol.for("react.profiler"),yg=Symbol.for("react.provider"),Sg=Symbol.for("react.context"),wg=Symbol.for("react.forward_ref"),xg=Symbol.for("react.suspense"),kg=Symbol.for("react.memo"),Pg=Symbol.for("react.lazy"),Uu=Symbol.iterator;function Og(e){return e===null||typeof e!="object"?null:(e=Uu&&e[Uu]||e["@@iterator"],typeof e=="function"?e:null)}var od={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},sd=Object.assign,ad={};function yr(e,t,n){this.props=e,this.context=t,this.refs=ad,this.updater=n||od}yr.prototype.isReactComponent={};yr.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")};yr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ld(){}ld.prototype=yr.prototype;function Sl(e,t,n){this.props=e,this.context=t,this.refs=ad,this.updater=n||od}var wl=Sl.prototype=new ld;wl.constructor=Sl;sd(wl,yr.prototype);wl.isPureReactComponent=!0;var zu=Array.isArray,ud=Object.prototype.hasOwnProperty,xl={current:null},cd={key:!0,ref:!0,__self:!0,__source:!0};function fd(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)ud.call(t,r)&&!cd.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:vi,type:e,key:o,ref:s,props:i,_owner:xl.current}}function Eg(e,t){return{$$typeof:vi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function kl(e){return typeof e=="object"&&e!==null&&e.$$typeof===vi}function _g(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Bu=/\/+/g;function ks(e,t){return typeof e=="object"&&e!==null&&e.key!=null?_g(""+e.key):t.toString(36)}function Ki(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 vi:case hg:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+ks(s,0):r,zu(i)?(n="",e!=null&&(n=e.replace(Bu,"$&/")+"/"),Ki(i,t,n,"",function(u){return u})):i!=null&&(kl(i)&&(i=Eg(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Bu,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",zu(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+ks(o,a);s+=Ki(o,t,n,l,i)}else if(l=Og(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+ks(o,a++),s+=Ki(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 Ei(e,t,n){if(e==null)return e;var r=[],i=0;return Ki(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Cg(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 Ee={current:null},Wi={transition:null},Rg={ReactCurrentDispatcher:Ee,ReactCurrentBatchConfig:Wi,ReactCurrentOwner:xl};A.Children={map:Ei,forEach:function(e,t,n){Ei(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ei(e,function(){t++}),t},toArray:function(e){return Ei(e,function(t){return t})||[]},only:function(e){if(!kl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};A.Component=yr;A.Fragment=gg;A.Profiler=vg;A.Pure
2022-09-14 16:48:46 +02:00
* @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.
2022-09-29 20:23:12 +02:00
*/(function(e){function t(I,D){var M=I.length;I.push(D);e:for(;0<M;){var B=M-1>>>1,Y=I[B];if(0<i(Y,D))I[B]=D,I[M]=Y,M=B;else break e}}function n(I){return I.length===0?null:I[0]}function r(I){if(I.length===0)return null;var D=I[0],M=I.pop();if(M!==D){I[0]=M;e:for(var B=0,Y=I.length,zt=Y>>>1;B<zt;){var we=2*(B+1)-1,Ln=I[we],De=we+1,_t=I[De];if(0>i(Ln,M))De<Y&&0>i(_t,Ln)?(I[B]=_t,I[De]=M,B=De):(I[B]=Ln,I[we]=M,B=we);else if(De<Y&&0>i(_t,M))I[B]=_t,I[De]=M,B=De;else break e}}return D}function i(I,D){var M=I.sortIndex-D.sortIndex;return M!==0?M:I.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,f=null,d=3,g=!1,h=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(I){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=I)r(u),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(u)}}function S(I){if(y=!1,m(I),!h)if(n(l)!==null)h=!0,qe(k);else{var D=n(u);D!==null&&Re(S,D.startTime-I)}}function k(I,D){h=!1,y&&(y=!1,v(C),C=-1),g=!0;var M=d;try{for(m(D),f=n(l);f!==null&&(!(f.expirationTime>D)||I&&!L());){var B=f.callback;if(typeof B=="function"){f.callback=null,d=f.priorityLevel;var Y=B(f.expirationTime<=D);D=e.unstable_now(),typeof Y=="function"?f.callback=Y:f===n(l)&&r(l),m(D)}else r(l);f=n(l)}if(f!==null)var zt=!0;else{var we=n(u);we!==null&&Re(S,we.startTime-D),zt=!1}return zt}finally{f=null,d=M,g=!1}}var E=!1,P=null,C=-1,_=5,O=-1;function L(){return!(e.unstable_now()-O<_)}function j(){if(P!==null){var I=e.unstable_now();O=I;var D=!0;try{D=P(!0,I)}finally{D?z():(E=!1,P=null)}}else E=!1}var z;if(typeof p=="function")z=function(){p(j)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,Se=H.port2;H.port1.onmessage=j,z=function(){Se.postMessage(null)}}else z=function(){x(j,0)};function qe(I){P=I,E||(E=!0,z())}function Re(I,D){C=x(function(){I(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_continueExecution=function(){h||g||(h=!0,qe(k))},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(I){switch(d){case 1:case 2:case 3:var D=3;break;default:D=d}var M=d;d=D;try{return I()}finally{d=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(I,D){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var M=d;d=I;try{return D()}finally{d=M}},e.unstable_scheduleCallback=function(I,D,M){var B=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?B+M:B):M=B,I){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=M+Y,I={id:c++,callback:D,priorityLevel:I,startTime:M,expirationTime:Y,sortIndex:-1},M>B?(I.sortIndex=M,t(u,I),n(l)===null&&I===n(u)&&(y?(v(C),C=-1):y=!0,Re(S,M-B))):(I.sortIndex=Y,t(l,I),h||g||(h=!0,qe(k))),I},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(I){var D=d;return function(){var M=d;d=D;try{return I.apply(this,arguments)}finally{d=M}}}})(hd);(function(e){e.exports=hd})(pd);/**
2022-09-14 16:48:46 +02:00
* @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.
2022-09-29 20:23:12 +02:00
*/var gd=R.exports,Ue=pd.exports;function b(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 md=new Set,Wr={};function bn(e,t){rr(e,t),rr(e+"Capture",t)}function rr(e,t){for(Wr[e]=t,e=0;e<t.length;e++)md.add(t[e])}var Tt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),aa=Object.prototype.hasOwnProperty,Ng=/^[: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]*$/,Qu={},Hu={};function bg(e){return aa.call(Hu,e)?!0:aa.call(Qu,e)?!1:Ng.test(e)?Hu[e]=!0:(Qu[e]=!0,!1)}function Ig(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"||Ig(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 _e(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 pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pe[e]=new _e(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pe[t]=new _e(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pe[e]=new _e(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pe[e]=new _e(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){pe[e]=new _e(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pe[e]=new _e(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pe[e]=new _e(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pe[e]=new _e(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pe[e]=new _e(e,5,!1,e.toLowerCase(),null,!1,!1)});var Pl=/[\-:]([a-z])/g;function Ol(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-ad
`+Ps+e}var Os=!1;function Es(e,t){if(!e||Os)return"";Os=!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(`
2022-09-17 00:35:48 +02:00
`),o=r.stack.split(`
2022-09-19 03:57:17 +02:00
`),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=`
2022-09-29 20:23:12 +02:00
`+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{Os=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Tr(e):""}function Tg(e){switch(e.tag){case 5:return Tr(e.type);case 16:return Tr("Lazy");case 13:return Tr("Suspense");case 19:return Tr("SuspenseList");case 0:case 2:case 15:return e=Es(e.type,!1),e;case 11:return e=Es(e.type.render,!1),e;case 1:return e=Es(e.type,!0),e;default:return""}}function fa(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 An:return"Fragment";case jn:return"Portal";case la:return"Profiler";case _l:return"StrictMode";case ua:return"Suspense";case ca:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case yd:return(e.displayName||"Context")+".Consumer";case vd:return(e._context.displayName||"Context")+".Provider";case Cl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Rl:return t=e.displayName||null,t!==null?t:fa(e.type)||"Memo";case Ht:t=e._payload,e=e._init;try{return fa(e(t))}catch{}}return null}function Dg(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 fa(t);case 8:return t===_l?"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 un(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Fg(e){var t=wd(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 Ci(e){e._valueTracker||(e._valueTracker=Fg(e))}function xd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=wd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ao(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 da(e,t){var n=t.checked;return Z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function Vu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=un(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 kd(e,t){t=t.checked,t!=null&&El(e,"checked",t,!1)}function pa(e,t){kd(e,t);var n=un(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")?ha(e,t.type,n):t.hasOwnProperty("defaultValue")&&ha(e,t.type,un(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ku(e,t,n){if(t.hasOwnPropert
`).replace(qm,"")}function Fi(e,t,n){if(t=mc(t),mc(e)!==t&&n)throw Error(b(425))}function mo(){}var Ra=null,Na=null;function ba(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 Ia=typeof setTimeout=="function"?setTimeout:void 0,Vm=typeof clearTimeout=="function"?clearTimeout:void 0,vc=typeof Promise=="function"?Promise:void 0,Km=typeof queueMicrotask=="function"?queueMicrotask:typeof vc<"u"?function(e){return vc.resolve(null).then(e).catch(Wm)}:Ia;function Wm(e){setTimeout(function(){throw e})}function As(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),Zr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Zr(t)}function tn(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 yc(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 wr=Math.random().toString(36).slice(2),vt="__reactFiber$"+wr,ii="__reactProps$"+wr,Dt="__reactContainer$"+wr,La="__reactEvents$"+wr,Gm="__reactListeners$"+wr,Ym="__reactHandles$"+wr;function vn(e){var t=e[vt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Dt]||n[vt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=yc(e);e!==null;){if(n=e[vt])return n;e=yc(e)}return t}e=n,n=e.parentNode}return null}function wi(e){return e=e[vt]||e[Dt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Bn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(b(33))}function Jo(e){return e[ii]||null}var Ta=[],Qn=-1;function pn(e){return{current:e}}function W(e){0>Qn||(e.current=Ta[Qn],Ta[Qn]=null,Qn--)}function V(e,t){Qn++,Ta[Qn]=e.current,e.current=t}var cn={},ye=pn(cn),Ie=pn(!1),En=cn;function ir(e,t){var n=e.type.contextTypes;if(!n)return cn;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 Le(e){return e=e.childContextTypes,e!=null}function vo(){W(Ie),W(ye)}function Sc(e,t,n){if(ye.current!==cn)throw Error(b(168));V(ye,t),V(Ie,n)}function cp(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(b(108,Dg(e)||"Unknown",i));return Z({},n,r)}function yo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||cn,En=ye.current,V(ye,e),V(Ie,Ie.current),!0}function wc(e,t,n){var r=e.stateNode;if(!r)throw Error(b(169));n?(e=cp(e,t,En),r.__reactInternalMemoizedMergedChildContext=e,W(Ie),W(ye),V(ye,e)):W(Ie),V(Ie,n)}var Rt=null,Xo=!1,$s=!1;function fp(e){Rt===null?Rt=[e]:Rt.push(e)}function Jm(e){Xo=!0,fp(e)}function hn(){if(!$s&&Rt!==null){$s=!0;var e=0,t=q;try{var n=Rt;for(q=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Rt=null,Xo=!1}catch(i){throw Rt!==null&&(Rt=Rt.slice(e+1)),Md(bl,hn),i}finally{q=t,$s=!1}}return null}var Hn=[],qn=0,So=null,wo=0,Ke=[],We=0,_n=null,bt=1,It="";function gn(e,t){Hn[qn++]=wo,Hn[qn++]=So,So=e,wo=t}function dp(e,t,n){Ke[We++]=bt,Ke[We++]=It,Ke[We++]=_n,_n=e;var r=bt;e=It;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,bt=1<<32-at(t)+i|n<<i|r,It=o+e}else bt=1<<o|n<<i|r,It=e}function $l(e){e.return!==null&&(gn(e,1),dp(e,1,0))}function Ul(e){for(;e===So;)So=Hn[--qn],Hn[qn]=null,wo=Hn[--qn],Hn[qn]=null;for(;e===_n;)_n=Ke[--We],Ke[We]=null,It=Ke[--We],Ke[We]=null,bt=Ke[--We],Ke[We]=null}var $e=null,je=null,G=!1,ot=null;function pp(e,t){var n=Je(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.del
2022-09-17 00:35:48 +02:00
Error generating stack: `+o.message+`
2022-09-29 20:23:12 +02:00
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Hs(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function $a(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var sv=typeof WeakMap=="function"?WeakMap:Map;function zp(e,t,n){n=Lt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ro||(Ro=!0,Ga=r),$a(e,t)},n}function Bp(e,t,n){n=Lt(-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(){$a(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){$a(e,t),typeof r!="function"&&(rn===null?rn=new Set([this]):rn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function bc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new sv;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=wv.bind(null,e,t,n),t.then(e,e))}function Ic(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 Lc(e,t,n,r,i){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Lt(-1,1),t.tag=2,nn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var av=$t.ReactCurrentOwner,be=!1;function ke(e,t,n,r){t.child=e===null?wp(t,null,n,r):sr(t,e.child,n,r)}function Tc(e,t,n,r,i){n=n.render;var o=t.ref;return er(t,i),r=Jl(e,t,n,r,o,i),n=Xl(),e!==null&&!be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Mt(e,t,i)):(G&&n&&$l(t),t.flags|=1,ke(e,t,r,i),t.child)}function Dc(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!lu(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Qp(e,t,o,r,i)):(e=io(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)===0){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:ti,n(s,r)&&e.ref===t.ref)return Mt(e,t,i)}return t.flags|=1,e=sn(o,r),e.ref=t.ref,e.return=t,t.child=e}function Qp(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(ti(o,r)&&e.ref===t.ref)if(be=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(be=!0);else return t.lanes=e.lanes,Mt(e,t,i)}return Ua(e,t,n,r,i)}function Hp(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},V(Wn,Fe),Fe|=n;else{if((n&1073741824)===0)return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,V(Wn,Fe),Fe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,V(Wn,Fe),Fe|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,V(Wn,Fe),Fe|=r;return ke(e,t,i,n),t.child}function qp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ua(e,t,n,r,i){var o=Le(n)?En:ye.current;return o=ir(t,o),er(t,i),n=Jl(e,t,n,r,o,i),r=Xl(),e!==null&&!be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Mt(e,t,i)):(G&&r&&$l(t),t.flags|=1,ke(e,t,n,i),t.child)}function Fc(e,t,n,r,i){if(Le(n)){var o=!0;yo(t)}else o=!1;if(er(t,i),t.stateNode===null)to(e,t),yp(t,n,r),Aa(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=Ze(u):(u=Le(n)?En:ye.current,u=ir(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&_c(t,s,r,u),qt=!1;var d=t.memoizedState;s.state=d,Po(t,r,s,i),l=t.memoizedState,a!==r||d!==l||Ie.current||qt?(typeof c=="function"&&(ja(t,n,c,r),l=t.memoizedState),(a=qt||Ec(t,n,a,r,d,l,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillM
2022-09-14 16:48:46 +02:00
* @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.
2022-09-29 20:23:12 +02:00
*/var cr=R.exports;function Iv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Lv=typeof Object.is=="function"?Object.is:Iv,Tv=cr.useState,Dv=cr.useEffect,Fv=cr.useLayoutEffect,Mv=cr.useDebugValue;function jv(e,t){var n=t(),r=Tv({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return Fv(function(){i.value=n,i.getSnapshot=t,Ws(i)&&o({inst:i})},[e,n,t]),Dv(function(){return Ws(i)&&o({inst:i}),e(function(){Ws(i)&&o({inst:i})})},[e]),Mv(n),n}function Ws(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Lv(e,n)}catch{return!0}}function Av(e,t){return t()}var $v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Av:jv;hh.useSyncExternalStore=cr.useSyncExternalStore!==void 0?cr.useSyncExternalStore:$v;(function(e){e.exports=hh})(pu);var ls={exports:{}},us={};/**
2022-09-14 16:48:46 +02:00
* @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.
2022-09-29 20:23:12 +02:00
*/var Uv=R.exports,zv=Symbol.for("react.element"),Bv=Symbol.for("react.fragment"),Qv=Object.prototype.hasOwnProperty,Hv=Uv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,qv={key:!0,ref:!0,__self:!0,__source:!0};function gh(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)Qv.call(t,r)&&!qv.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:zv,type:e,key:o,ref:s,props:i,_owner:Hv.current}}us.Fragment=Bv;us.jsx=gh;us.jsxs=gh;(function(e){e.exports=us})(ls);const Ot=ls.exports.Fragment,w=ls.exports.jsx,N=ls.exports.jsxs;/**
2022-09-14 16:48:46 +02:00
* react-query
*
* Copyright (c) TanStack
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
2022-09-29 20:23:12 +02:00
*/class ki{constructor(){this.listeners=[],this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.push(t),this.onSubscribe(),()=>{this.listeners=this.listeners.filter(n=>n!==t),this.onUnsubscribe()}}hasListeners(){return this.listeners.length>0}onSubscribe(){}onUnsubscribe(){}}const fi=typeof window>"u";function Ve(){}function Vv(e,t){return typeof e=="function"?e(t):e}function Za(e){return typeof e=="number"&&e>=0&&e!==1/0}function mh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function oo(e,t,n){return cs(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Vt(e,t,n){return cs(e)?[{...t,queryKey:e},n]:[e||{},t]}function Gc(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(cs(s)){if(r){if(t.queryHash!==hu(s,t.options))return!1}else if(!Lo(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||typeof i<"u"&&i!==t.state.fetchStatus||o&&!o(t))}function Yc(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:o}=e;if(cs(o)){if(!t.options.mutationKey)return!1;if(n){if(wn(t.options.mutationKey)!==wn(o))return!1}else if(!Lo(t.options.mutationKey,o))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function hu(e,t){return((t==null?void 0:t.queryKeyHashFn)||wn)(e)}function wn(e){return JSON.stringify(e,(t,n)=>el(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Lo(e,t){return vh(e,t)}function vh(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!vh(e[n],t[n])):!1}function yh(e,t){if(e===t)return e;const n=Xc(e)&&Xc(t);if(n||el(e)&&el(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,s=n?[]:{};let a=0;for(let l=0;l<o;l++){const u=n?l:i[l];s[u]=yh(e[u],t[u]),s[u]===e[u]&&a++}return r===o&&a===r?e:s}return t}function Jc(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Xc(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function el(e){if(!Zc(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Zc(n)||!n.hasOwnProperty("isPrototypeOf"))}function Zc(e){return Object.prototype.toString.call(e)==="[object Object]"}function cs(e){return Array.isArray(e)}function Sh(e){return new Promise(t=>{setTimeout(t,e)})}function ef(e){Sh(0).then(e)}function Kv(){if(typeof AbortController=="function")return new AbortController}function tl(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?yh(e,t):t}class Wv extends ki{constructor(){super(),this.setup=t=>{if(!fi&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused=t,t&&this.onFocus()}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const To=new Wv;class Gv extends ki{constructor(){super(),this.setup=t=>{if(!fi&&window.addEventListener){const n=()=>t();return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(
2022-09-14 16:48:46 +02:00
* react-query-devtools-noop
*
* Copyright (c) TanStack
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
2022-09-29 20:23:12 +02:00
*/function my(){return null}function Ge(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function dr(e){return!!e&&!!e[Q]}function jt(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===_y}(e)||Array.isArray(e)||!!e[df]||!!e.constructor[df]||vu(e)||yu(e))}function pr(e,t,n){n===void 0&&(n=!1),xr(e)===0?(n?Object.keys:Pu)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function xr(e){var t=e[Q];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:vu(e)?2:yu(e)?3:0}function rl(e,t){return xr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function vy(e,t){return xr(e)===2?e.get(t):e[t]}function Ch(e,t,n){var r=xr(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function yy(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function vu(e){return Oy&&e instanceof Map}function yu(e){return Ey&&e instanceof Set}function ae(e){return e.o||e.t}function Su(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Cy(e);delete t[Q];for(var n=Pu(t),r=0;r<n.length;r++){var i=n[r],o=t[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function wu(e,t){return t===void 0&&(t=!1),xu(e)||dr(e)||!jt(e)||(xr(e)>1&&(e.set=e.add=e.clear=e.delete=Sy),Object.freeze(e),t&&pr(e,function(n,r){return wu(r,!0)},!0)),e}function Sy(){Ge(2)}function xu(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function kt(e){var t=ol[e];return t||Ge(18,e),t}function wy(e,t){ol[e]||(ol[e]=t)}function Fo(){return pi}function Gs(e,t){t&&(kt("Patches"),e.u=[],e.s=[],e.v=t)}function Mo(e){il(e),e.p.forEach(xy),e.p=null}function il(e){e===pi&&(pi=e.l)}function sf(e){return pi={p:[],l:pi,h:e,m:!0,_:0}}function xy(e){var t=e[Q];t.i===0||t.i===1?t.j():t.O=!0}function Ys(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||kt("ES5").S(t,e,r),r?(n[Q].P&&(Mo(t),Ge(4)),jt(e)&&(e=jo(t,e),t.l||Ao(t,e)),t.u&&kt("Patches").M(n[Q].t,e,t.u,t.s)):e=jo(t,n,[]),Mo(t),t.u&&t.v(t.u,t.s),e!==Rh?e:void 0}function jo(e,t,n){if(xu(t))return t;var r=t[Q];if(!r)return pr(t,function(o,s){return af(e,r,t,o,s,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Ao(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=Su(r.k):r.o;pr(r.i===3?new Set(i):i,function(o,s){return af(e,r,i,o,s,n)}),Ao(e,i,!1),n&&e.u&&kt("Patches").R(r,n,e.u,e.s)}return r.o}function af(e,t,n,r,i,o){if(dr(i)){var s=jo(e,i,o&&t&&t.i!==3&&!rl(t.D,r)?o.concat(r):void 0);if(Ch(n,r,s),!dr(s))return;e.m=!1}if(jt(i)&&!xu(i)){if(!e.h.F&&e._<1)return;jo(e,i),t&&t.A.l||Ao(e,i)}}function Ao(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&wu(t,n)}function Js(e,t){var n=e[Q];return(n?ae(n):e)[t]}function lf(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Nt(e){e.P||(e.P=!0,e.l&&Nt(e.l))}function Xs(e){e.o||(e.o=Su(e.t))}function di(e,t,n){var r=vu(t)?kt("MapSet").N(t,n):yu(t)?kt("MapSet").T(t,n):e.g?function(i,o){var s=Array.isArray(i),a={i:s?1:0,A:o?o.A:Fo(),P:!1,I:!1,D:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=a,u=sl;s&&(l=[a],u=jr);var c=Proxy.revocable(l,u),f=c.revoke,d=c.proxy;return a.k=d,a.j=f,d}(t,n):kt("ES5").J(t,n);return(n?n.A:Fo()).p.push(r),r}function ky(e){return dr(e)||Ge(22,e),function t(n){if(!jt(n))return n;var r,i=n[Q],o=xr(n);if(i){if(!i.P&&(i.i<4||!kt("ES5").K(i)))return i.t;i.I=!0,r=uf(n,o),i.I=!1}else r=uf(n,o);return pr(r,function(s,a){i&&vy(i.t,s)===a||Ch(r,s,t(a))}),o===3?new Set(r):r}(e)}function uf(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Su(e)}function Py(){function e(a,l){fun
2022-09-15 22:36:08 +02:00
* react-location
*
* Copyright (c) TanStack
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
2022-09-29 20:26:06 +02:00
*/function ut(){return ut=Object.assign||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},ut.apply(this,arguments)}function ul(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Ly(e,t){var n,r,i,o="";for(n in e)if((i=e[n])!==void 0)if(Array.isArray(i))for(r=0;r<i.length;r++)o&&(o+="&"),o+=encodeURIComponent(n)+"="+encodeURIComponent(i[r]);else o&&(o+="&"),o+=encodeURIComponent(n)+"="+encodeURIComponent(i);return(t||"")+o}function mf(e){if(!e)return"";var t=decodeURIComponent(e);return t==="false"?!1:t==="true"?!0:+t*0===0?+t:t}function Ty(e){for(var t,n,r={},i=e.split("&");t=i.shift();)t=t.split("="),n=t.shift(),r[n]!==void 0?r[n]=[].concat(r[n],mf(t.shift())):r[n]=mf(t.shift());return r}const Dy=["children","location","__experimental__snapshot"],Fy=["location","__experimental__snapshot"],My=["basepath","routes"],bh=R.exports.createContext(null),Ih=R.exports.createContext(null),Lh=R.exports.createContext(null),Th=Boolean(typeof window<"u"&&window.document&&window.document.createElement),cl=Th?R.exports.useLayoutEffect:R.exports.useEffect,jy=()=>Th?by():Iy();class Ou{constructor(){this.listeners=[]}subscribe(t){return this.listeners.push(t),()=>{this.listeners=this.listeners.filter(n=>n!==t)}}notify(){this.listeners.forEach(t=>t())}}class Ay extends Ou{constructor(t){var n,r;super(),this.isTransitioning=!1,this.history=(t==null?void 0:t.history)||jy(),this.stringifySearch=(n=t==null?void 0:t.stringifySearch)!=null?n:Jy,this.parseSearch=(r=t==null?void 0:t.parseSearch)!=null?r:Yy,this.current=this.parseLocation(this.history.location),this.destroy=this.history.listen(i=>{this.current=this.parseLocation(i.location,this.current),this.notify()})}buildNext(t,n){var r,i,o,s;t===void 0&&(t="/"),n===void 0&&(n={});const a=ut({},this.current,n.from),l=Gy(t,a.pathname,""+((r=n.to)!=null?r:".")),u=(i=n.__searchFilters)!=null&&i.length?n.__searchFilters.reduce((h,y)=>y(h),a.search):a.search,c=n.search===!0?u:n.search?(o=Sf(n.search,u))!=null?o:{}:(s=n.__searchFilters)!=null&&s.length?u:{},f=fl(a.search,c),d=this.stringifySearch(f);let g=n.hash===!0?a.hash:Sf(n.hash,a.hash);return g=g?"#"+g:"",{pathname:l,search:f,searchStr:d,hash:g,href:""+l+d+g,key:n.key}}navigate(t,n){this.current=t,this.navigateTimeout&&clearTimeout(this.navigateTimeout);let r="replace";return n||(r="push"),this.parseLocation(this.history.location).href===this.current.href&&!this.current.key&&(r="replace"),r==="replace"?this.history.replace({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr}):this.history.push({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr})}parseLocation(t,n){var r;const i=this.parseSearch(t.search);return{pathname:t.pathname,searchStr:t.search,search:fl(n==null?void 0:n.search,i),hash:(r=t.hash.split("#").reverse()[0])!=null?r:"",href:""+t.pathname+t.search+t.hash,key:t.key}}}function Dh(e){return w(Ih.Provider,{...e})}function $y(e){let{children:t,location:n,__experimental__snapshot:r}=e,i=ul(e,Dy);const o=R.exports.useRef(null);o.current||(o.current=new zy({location:n,__experimental__snapshot:r,routes:i.routes}));const s=o.current,[a,l]=R.exports.useReducer(()=>({}),{});return s.update(i),cl(()=>s.subscribe(()=>{l()}),[]),cl(()=>s.updateLocation(n.current).unsubscribe,[n.current.key]),R.exports.createElement(bh.Provider,{value:{location:n}},R.exports.createElement(Lh.Provider,{value:{router:s}},w(Uy,{}),w(Dh,{value:[s.rootMatch,...s.state.matches],children:t!=null?t:w(Uh,{})})))}function Uy(){const e=Eu(),t=$h(),n=Hy();return cl(()=>{t({to:".",search:!0,hash:!0}).href!==e.current.href&&n({to:".",search:!0,hash:!0,fromCurrent:!0,replace:!0})},[]),null}class zy extends Ou{constructor(t){var n;let{location:r,__experimental__snapshot:i}=t,o=ul(t,Fy);super(),this.routesById={},this.update=a=>{let{basepath:l,routes:u}=a,c=ul(a,My);Object.assign(this,c),this.basepath=ds("/"+(l!=null?l:"")),this.rout
2022-09-14 16:48:46 +02:00
* @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.
2022-09-29 20:23:12 +02:00
*/var ps=R.exports,h0=pu.exports;function g0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var m0=typeof Object.is=="function"?Object.is:g0,v0=h0.useSyncExternalStore,y0=ps.useRef,S0=ps.useEffect,w0=ps.useMemo,x0=ps.useDebugValue;Vh.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=y0(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=w0(function(){function l(g){if(!u){if(u=!0,c=g,g=r(g),i!==void 0&&s.hasValue){var h=s.value;if(i(h,g))return f=h}return f=g}if(h=f,m0(c,g))return h;var y=r(g);return i!==void 0&&i(h,y)?h:(c=g,f=y)}var u=!1,c,f,d=n===void 0?null:n;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,n,r,i]);var a=v0(e,o[0],o[1]);return S0(function(){s.hasValue=!0,s.value=a},[a]),x0(a),a};(function(e){e.exports=Vh})(qh);const k0=id(qh.exports),{useSyncExternalStoreWithSelector:P0}=k0;function O0(e,t=e.getState,n){const r=P0(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return R.exports.useDebugValue(r),r}const Pf=e=>{const t=typeof e=="function"?p0(e):e,n=(r,i)=>O0(t,r,i);return Object.assign(n,t),n},E0=e=>e?Pf(e):Pf;var Pi=E0;const _0=(e,t={})=>(n,r,i)=>{const{enabled:o,anonymousActionType:s,...a}=t;let l;try{l=(o!=null?o:({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!l)return({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&o&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,i);const u=l.connect(a);let c=!0;i.setState=(g,h,y)=>{const x=n(g,h);return c&&u.send(y===void 0?{type:s||"anonymous"}:typeof y=="string"?{type:y}:y,r()),x};const f=(...g)=>{const h=c;c=!1,n(...g),c=h},d=e(i.setState,r,i);if(u.init(d),i.dispatchFromDevtools&&typeof i.dispatch=="function"){let g=!1;const h=i.dispatch;i.dispatch=(...y)=>{({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&y[0].type==="__setState"&&!g&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),g=!0),h(...y)}}return u.subscribe(g=>{var h;switch(g.type){case"ACTION":if(typeof g.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return Zs(g.payload,y=>{if(y.type==="__setState"){f(y.state);return}!i.dispatchFromDevtools||typeof i.dispatch=="function"&&i.dispatch(y)});case"DISPATCH":switch(g.payload.type){case"RESET":return f(d),u.init(i.getState());case"COMMIT":return u.init(i.getState());case"ROLLBACK":return Zs(g.state,y=>{f(y),u.init(i.getState())});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Zs(g.state,y=>{f(y)});case"IMPORT_STATE":{const{nextLiftedState:y}=g.payload,x=(h=y.computedStates.slice(-1)[0])==null?void 0:h.state;if(!x)return;f(x),u.send(null,y);return}case"PAUSE_RECORDING":return c=!c}return}}),d},C0=_0,Zs=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)},zo=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return zo(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return zo(r)(n)}}}},R0=(e,t)=>(n,r,i)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:x=>x,version:0,merge:(x,v)=>({...v,...x}),...t},s=!1;const a=new Set,l=new Set;let u;try{u=o.getStorage()}catch{}if(!u)return e((...x)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...x)},r,i);const c=zo(o.serialize),f=()=>{const x=o.partialize({...r()});let v;const p=c({state:x,version:o.version}).then(m=>u.setItem(o.name,m)).catch(m=>{v=m});if(v)throw v;return p},d=i.setState;i.setState=(x,v)=>{d(x,v),f()};const g=e((...x)=>{n(...x),f()},r,i);let h;const y=()=>{var x;if(!u)return;s=!1,a.forEach(p=>p(r()));const v=((x=o.onRehydrateStorage)==null?void 0:x.call(o,r()))||void 0;return zo(u.getItem.bind(u))(o.name).then(p=>{if(p)return o.deseria
2022-09-28 18:19:44 +02:00
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(f=>` - ${f}`).join(`
`)].join(`
2022-09-29 20:23:12 +02:00
`));return R.exports.cloneElement(u,Object.assign({},Jh(u.props,If(na(a,["ref"]))),c,l,V0(u.ref,l.ref)))}return R.exports.createElement(i,Object.assign({},na(a,["ref"]),i!==R.exports.Fragment&&l,i!==R.exports.Fragment&&c),u)}function V0(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function Jh(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...o){let s=n[r];for(let a of s){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;a(i,...o)}}});return t}function Pr(e){var t;return Object.assign(R.exports.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function If(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function na(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Xh(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&K0(n)?!1:r}function K0(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let W0="div";var Ho=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Ho||{});let hl=Pr(function(e,t){let{features:n=1,...r}=e,i={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return kr({ourProps:i,theirProps:r,slot:{},defaultTag:W0,name:"Hidden"})}),Nu=R.exports.createContext(null);Nu.displayName="OpenClosedContext";var mi=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(mi||{});function Zh(){return R.exports.useContext(Nu)}function G0({value:e,children:t}){return st.createElement(Nu.Provider,{value:e},t)}var Kt=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Kt||{});function Y0(e,t,n){let r=hs(t);R.exports.useEffect(()=>{function i(o){r.current(o)}return window.addEventListener(e,i,n),()=>window.removeEventListener(e,i,n)},[e,n])}var kn=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(kn||{});function eg(){let e=R.exports.useRef(0);return Y0("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function bu(...e){return R.exports.useMemo(()=>Cu(...e),[...e])}function J0(e,t,n,r){let i=hs(n);R.exports.useEffect(()=>{e=e!=null?e:window;function o(s){i.current(s)}return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)},[e,t,r])}var X0=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(X0||{}),Z0=(e=>(e[e.TogglePopover=0]="TogglePopover",e[e.ClosePopover=1]="ClosePopover",e[e.SetButton=2]="SetButton",e[e.SetButtonId=3]="SetButtonId",e[e.SetPanel=4]="SetPanel",e[e.SetPanelId=5]="SetPanelId",e))(Z0||{});let e1={[0]:e=>({...e,popoverState:At(e.popoverState,{[0]:1,[1]:0})}),[1](e){return e.popoverState===1?e:{...e,popoverState:1}},[2](e,t){return e.button===t.button?e:{...e,button:t.button}},[3](e,t){return e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId}},[4](e,t){return e.panel===t.panel?e:{...e,panel:t.panel}},[5](e,t){return e.panelId===t.panelId?e:{...e,panelId:t.panelId}}},Iu=R.exports.createContext(null);Iu.displayName="PopoverContext";function gs(e){let t=R.exports.useContext(Iu);if(t===null){let n=new Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,gs),n}return t}let L
2022-09-29 20:26:06 +02:00
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L1(e,t){return ag(e)||I1(e,t)||lg(e,t)||ug()}function Af(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ra(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Af(Object(n),!0).forEach(function(r){Et(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Af(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var T1=function(t,n){var r=R.exports.useRef();return R.exports.useEffect(function(){r.current=n?r.current:t},[t,n]),r.current};function Ut(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=R.exports.useContext(x1)||{},i=r.i18n,o=r.defaultNS,s=n||i||_1();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new O1),!s){vl("You will need to pass in an i18next instance by using initReactI18next");var a=function(_){return Array.isArray(_)?_[_.length-1]:_},l=[a,{},!1];return l.t=a,l.i18n={},l.ready=!1,l}s.options.react&&s.options.react.wait!==void 0&&vl("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var u=ra(ra(ra({},P1()),s.options.react),t),c=u.useSuspense,f=u.keyPrefix,d=e||o||s.options&&s.options.defaultNS;d=typeof d=="string"?[d]:d||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(d);var g=(s.isInitialized||s.initializedStoreOnce)&&d.every(function(C){return b1(C,s,u)});function h(){return s.getFixedT(null,u.nsMode==="fallback"?d:d[0],f)}var y=R.exports.useState(h),x=L1(y,2),v=x[0],p=x[1],m=d.join(),S=T1(m),k=R.exports.useRef(!0);R.exports.useEffect(function(){var C=u.bindI18n,_=u.bindI18nStore;k.current=!0,!g&&!c&&Mf(s,d,function(){k.current&&p(h)}),g&&S&&S!==m&&k.current&&p(h);function O(){k.current&&p(h)}return C&&s&&s.on(C,O),_&&s&&s.store.on(_,O),function(){k.current=!1,C&&s&&C.split(" ").forEach(function(L){return s.off(L,O)}),_&&s&&_.split(" ").forEach(function(L){return s.store.off(L,O)})}},[s,m]);var E=R.exports.useRef(!0);R.exports.useEffect(function(){k.current&&!E.current&&p(h),E.current=!1},[s,f]);var P=[v,s,g];if(P.t=v,P.i18n=s,P.ready=g,g||!g&&!c)return P;throw new Promise(function(C){Mf(s,d,function(){C()})})}function D1(){const{t:e}=Ut(),[t,n]=R.exports.useState(!1),[r,i]=R.exports.useState("beta"),{status:o,data:s}=fr([dl],Qh),a=Eh(),{status:l,data:u}=fr([u0],async()=>await c0(r),{enabled:t});return R.exports.useEffect(()=>{if(o==="success"){const{update_branch:c}=s;i(c==="main"?"beta":"main")}},[o,s]),R.exports.useEffect(()=>{l==="success"&&(u[0]==="OK"&&a.invalidateQueries([dl]),n(!1))},[l,u,n]),N("label",{children:[w("input",{type:"checkbox",checked:r==="main",onChange:c=>{n(!0)}}),"\u{1F525}",e("advanced-settings.beta")," ",e("advanced-settings.beta-disc")]})}var F1="cg4q680";function M1(){const{t:e}=Ut(),t=F(c=>c.isUseAutoSave()),n=F(c=>c.getValueForRequestKey("save_to_disk_path")),r=F(c=>c.getValueForRequestKey("turbo")),i=F(c=>c.getValueForRequestKey("use_cpu")),o=F(c=>c.getValueForRequestKey("use_full_precision")),s=F(c=>c.isSoundEnabled()),a=F(c=>c.setRequestOptions),l=F(c=>c.toggleUseAutoSave),u=F(c=>c.toggleSoundEnabled);return N(nr,{className:rg,children:[N(nr.Button,{className:ng,children:[w("i",{className:[Mn,"fa-solid","fa-gear"].join(" ")}),"Settings"]}),w(nr.Panel,{className:ig,children:N("div",{className:F1,children:[w("h4",{children:"System Settings"}),N("ul",{children:[N("li",{className:te,children:[N("label",{children:[w("input",{checked:t,onChange:c=>l(),type:"checkbox"}),e("storage.ast")," "]}),N("label",{children:[w("input",{value:n,onChange:c=>a("save_to_disk_path",c.target.value),size:40,disabled:!t}),w("span",{className:"visually-hidden",children:"Path on disk where images will be saved"})]})]}),w("li",{className:te,children:N("label",{children:[w("input",{che
2022-09-19 03:57:17 +02:00
Please feel free to join the discord community or file an issue if you have any problems or suggestions in using this interface.
Disclaimer: The authors of this project are not responsible for any content generated using this interface.
This license of this software forbids you from sharing any content that violates any laws, produce any harm to a person, disseminate any personal information that would be meant for harm,
spread misinformation and target vulnerable groups. For the full list of restrictions please read the license.
By using this software, you consent to the terms and conditions of the license.
2022-09-29 20:23:12 +02:00
`,cx={title:ex,description:tx,navbar:nx,"land-cre":{cp:"Create Profile","cp-place":"Profile name",pp:"Profile Picture","pp-disc":"",ast:"Automatically save to","ast-disc":"File path to auto save your creations",place:"File path",cre:"Create"},"land-pre":{user:"Username",add:"Add Profile"},home:rx,"in-paint":{txt:"In-Painting (select the area which the AI will paint into)",clear:"Clear"},settings:ix,tags:ox,"preview-prompt":{part1:'Type a prompt and press the "Make Image" button.',part2:`You can set an "Initial Image" if you want to guide the AI.
2022-09-19 03:57:17 +02:00
`,part3:`You can also add modifiers like "Realistic", "Pencil Sketch", "ArtStation" etc by browsing through the "Image Modifiers" section and selecting the desired modifiers.
2022-09-29 20:23:12 +02:00
`,part4:'Click "Advanced Settings" for additional settings like seed, image size, number of images to generate etc.',part5:"Enjoy! :)"},"current-task":"Current task","recent-create":"Recently Created",popup:sx,history:ax,"advanced-settings":{sound:"Play sound on task completion","sound-disc":"Will play a sound so user can hear when image is done.",turbo:"Turbo mode","turbo-disc":"Generates images faster, but uses an additional 1 GB of GPU memory",cpu:"Use CPU instead of GPU","cpu-disc":"Warning: this will be *very* slow",gpu:"Use full precision","gpu-disc":"(for GPU-only. warning: this will consume more VRAM)",beta:"Beta Features","beta-disc":`Get the latest features immediately (but could be less stable).
Please restart the program after changing this.`,save:"SAVE"},storage:lx,import:{"imp-btn":"IMPORT","exp-btn":"EXPORT",disc:"It is a good idea to leave the exported file as it is. Otherwise it may not import correctly","disc:2":"When importing, only profiles that are not already present on the will be added."},about:ux},fx="Stable Diffusion UI",dx="",px={home:"Home",history:"History",community:"Community",settings:"Settings"},hx={"status-starting":"Stable Diffusion is starting...","status-ready":"Stable Diffusion is ready to use!","status-error":"Stable Diffusion is not running!","editor-title":"Prompt","initial-img-txt":"Initial Image: (optional)","initial-img-btn":"Browse...","initial-img-text2":"No file selected.","make-img-btn":"Make Image","make-img-btn-stop":"Stop"},gx={"base-img":"Use base image:",seed:"Seed:","amount-of-img":"Amount of images to make:","how-many":"How many at once:",width:"Width:",height:"Height:",steps:"Number of inference steps:","guide-scale":"Guidance Scale:","prompt-str":"Prompt Strength:","live-preview":"Show a live preview of the image (disable this for faster image generation)","fix-face":"Fix incorrect faces and eyes (uses GFPGAN)",ups:"Upscale the image to 4x resolution using:","no-ups":"No Upscaling",corrected:"Show only the corrected/upscaled image"},mx={txt:"Image Modifiers (art styles, tags etc)"},vx={"use-btn":"Use Image","use-btn2":"Use Image and Tags"},yx={fave:"Favorites Only",search:"Search"},Sx={ast:"Automatically save to","ast-disc":"File path to auto save your creations",place:"File path",cps:"Cross profile sharing","cps-disc":"Profiles will see suggestions from each other.",acb:"Allow cloud backup","acb-disc":"A button will show up for images on hover","acb-place":"Choose your","acc-api":"Api key","acb-api-place":"Your API key",save:"SAVE"},wx=`If you found this project useful and want to help keep it alive, please to help cover the cost of development and maintenance! Thank you for your support!
2022-09-20 03:39:44 +02:00
Please feel free to join the discord community or file an issue if you have any problems or suggestions in using this interface.
Disclaimer: The authors of this project are not responsible for any content generated using this interface.
This license of this software forbids you from sharing any content that violates any laws, produce any harm to a person, disseminate any personal information that would be meant for harm,
spread misinformation and target vulnerable groups. For the full list of restrictions please read the license.
By using this software, you consent to the terms and conditions of the license.
2022-09-29 20:23:12 +02:00
`,xx={title:fx,description:dx,navbar:px,"land-cre":{cp:"Create Profile","cp-place":"Profile name",pp:"Profile Picture","pp-disc":"",ast:"Automatically save to","ast-disc":"File path to auto save your creations",place:"File path",cre:"Create"},"land-pre":{user:"Username",add:"Add Profile"},home:hx,"in-paint":{txt:"In-Painting (select the area which the AI will paint into)",clear:"Clear"},settings:gx,tags:mx,"preview-prompt":{part1:'Type a prompt and press the "Make Image" button.',part2:`You can set an "Initial Image" if you want to guide the AI.
2022-09-20 03:39:44 +02:00
`,part3:`You can also add modifiers like "Realistic", "Pencil Sketch", "ArtStation" etc by browsing through the "Image Modifiers" section and selecting the desired modifiers.
2022-09-29 20:23:12 +02:00
`,part4:'Click "Advanced Settings" for additional settings like seed, image size, number of images to generate etc.',part5:"Enjoy! :)"},"current-task":"Current task","recent-create":"Recently Created",popup:vx,history:yx,"advanced-settings":{sound:"Play sound on task completion","sound-disc":"Will play a sound so user can hear when image is done.",turbo:"Turbo mode","turbo-disc":"Generates images faster, but uses an additional 1 GB of GPU memory",cpu:"Use CPU instead of GPU","cpu-disc":"Warning: this will be *very* slow",gpu:"Use full precision","gpu-disc":"(for GPU-only. warning: this will consume more VRAM)",beta:"Beta Features","beta-disc":`Get the latest features immediately (but could be less stable).
Please restart the program after changing this.`,save:"SAVE"},storage:Sx,import:{"imp-btn":"IMPORT","exp-btn":"EXPORT",disc:"It is a good idea to leave the exported file as it is. Otherwise it may not import correctly","disc:2":"When importing, only profiles that are not already present on the will be added."},about:wx},kx={en:{translation:cx},es:{translation:xx}};Ce.use(C1).init({lng:"en",interpolation:{escapeValue:!1},resources:kx}).then(()=>{console.log("i18n initialized")}).catch(e=>{console.error("i18n initialization failed",e)}).finally(()=>{console.log("i18n initialization finished")});const Px=new Ay;function Ox(){const e=xw;return w($y,{location:Px,routes:[{path:"/",element:w(Sw,{className:e})},{path:"/settings",element:w(ww,{className:e})}]})}const Ex=new sy({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:1/0,cacheTime:1/0}}});Py();sa.createRoot(document.getElementById("root")).render(w(st.StrictMode,{children:N(uy,{client:Ex,children:[w(Ox,{}),w(my,{initialIsOpen:!0})]})}));