easydiffusion/ui/frontend/dist/index.js

84 lines
226 KiB
JavaScript
Raw Normal View History

2022-09-15 22:36:08 +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 l of i)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerpolicy&&(l.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?l.credentials="include":i.crossorigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();function nc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var M={exports:{}},U={};/**
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-15 22:36:08 +02:00
*/var Pr=Symbol.for("react.element"),Wd=Symbol.for("react.portal"),Gd=Symbol.for("react.fragment"),Xd=Symbol.for("react.strict_mode"),Yd=Symbol.for("react.profiler"),Zd=Symbol.for("react.provider"),Jd=Symbol.for("react.context"),bd=Symbol.for("react.forward_ref"),eh=Symbol.for("react.suspense"),th=Symbol.for("react.memo"),nh=Symbol.for("react.lazy"),hu=Symbol.iterator;function rh(e){return e===null||typeof e!="object"?null:(e=hu&&e[hu]||e["@@iterator"],typeof e=="function"?e:null)}var rc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ic=Object.assign,lc={};function In(e,t,n){this.props=e,this.context=t,this.refs=lc,this.updater=n||rc}In.prototype.isReactComponent={};In.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")};In.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function oc(){}oc.prototype=In.prototype;function ls(e,t,n){this.props=e,this.context=t,this.refs=lc,this.updater=n||rc}var os=ls.prototype=new oc;os.constructor=ls;ic(os,In.prototype);os.isPureReactComponent=!0;var pu=Array.isArray,sc=Object.prototype.hasOwnProperty,ss={current:null},uc={key:!0,ref:!0,__self:!0,__source:!0};function ac(e,t,n){var r,i={},l=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(l=""+t.key),t)sc.call(t,r)&&!uc.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var u=Array(s),a=0;a<s;a++)u[a]=arguments[a+2];i.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Pr,type:e,key:l,ref:o,props:i,_owner:ss.current}}function ih(e,t){return{$$typeof:Pr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function us(e){return typeof e=="object"&&e!==null&&e.$$typeof===Pr}function lh(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var mu=/\/+/g;function wl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?lh(""+e.key):t.toString(36)}function ei(e,t,n,r,i){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(l){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Pr:case Wd:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+wl(o,0):r,pu(i)?(n="",e!=null&&(n=e.replace(mu,"$&/")+"/"),ei(i,t,n,"",function(a){return a})):i!=null&&(us(i)&&(i=ih(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(mu,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",pu(e))for(var s=0;s<e.length;s++){l=e[s];var u=r+wl(l,s);o+=ei(l,t,n,u,i)}else if(u=rh(e),typeof u=="function")for(e=u.call(e),s=0;!(l=e.next()).done;)l=l.value,u=r+wl(l,s++),o+=ei(l,t,n,u,i);else if(l==="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 o}function Dr(e,t,n){if(e==null)return e;var r=[],i=0;return ei(e,r,"","",function(l){return t.call(n,l,i++)}),r}function oh(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 me={current:null},ti={transition:null},sh={ReactCurrentDispatcher:me,ReactCurrentBatchConfig:ti,ReactCurrentOwner:ss};U.Children={map:Dr,forEach:function(e,t,n){Dr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Dr(e,function(){t++}),t},toArray:function(e){return Dr(e,function(t){return t})||[]},only:function(e){if(!us(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};U.Component=In;U.Fragment=Gd;U.Profiler=Yd;U.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-15 22:36:08 +02:00
*/(function(e){function t(R,D){var L=R.length;R.push(D);e:for(;0<L;){var X=L-1>>>1,te=R[X];if(0<i(te,D))R[X]=D,R[L]=te,L=X;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var D=R[0],L=R.pop();if(L!==D){R[0]=L;e:for(var X=0,te=R.length,Tr=te>>>1;X<Tr;){var Lt=2*(X+1)-1,Sl=R[Lt],Ut=Lt+1,Fr=R[Ut];if(0>i(Sl,L))Ut<te&&0>i(Fr,Sl)?(R[X]=Fr,R[Ut]=L,X=Ut):(R[X]=Sl,R[Lt]=L,X=Lt);else if(Ut<te&&0>i(Fr,L))R[X]=Fr,R[Ut]=L,X=Ut;else break e}}return D}function i(R,D){var L=R.sortIndex-D.sortIndex;return L!==0?L:R.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var u=[],a=[],c=1,d=null,f=3,v=!1,y=!1,g=!1,P=typeof setTimeout=="function"?setTimeout:null,m=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 h(R){for(var D=n(a);D!==null;){if(D.callback===null)r(a);else if(D.startTime<=R)r(a),D.sortIndex=D.expirationTime,t(u,D);else break;D=n(a)}}function S(R){if(g=!1,h(R),!y)if(n(u)!==null)y=!0,yl(x);else{var D=n(a);D!==null&&gl(S,D.startTime-R)}}function x(R,D){y=!1,g&&(g=!1,m(C),C=-1),v=!0;var L=f;try{for(h(D),d=n(u);d!==null&&(!(d.expirationTime>D)||R&&!$());){var X=d.callback;if(typeof X=="function"){d.callback=null,f=d.priorityLevel;var te=X(d.expirationTime<=D);D=e.unstable_now(),typeof te=="function"?d.callback=te:d===n(u)&&r(u),h(D)}else r(u);d=n(u)}if(d!==null)var Tr=!0;else{var Lt=n(a);Lt!==null&&gl(S,Lt.startTime-D),Tr=!1}return Tr}finally{d=null,f=L,v=!1}}var _=!1,k=null,C=-1,F=5,I=-1;function $(){return!(e.unstable_now()-I<F)}function _e(){if(k!==null){var R=e.unstable_now();I=R;var D=!0;try{D=k(!0,R)}finally{D?je():(_=!1,k=null)}}else _=!1}var je;if(typeof p=="function")je=function(){p(_e)};else if(typeof MessageChannel<"u"){var Dt=new MessageChannel,du=Dt.port2;Dt.port1.onmessage=_e,je=function(){du.postMessage(null)}}else je=function(){P(_e,0)};function yl(R){k=R,_||(_=!0,je())}function gl(R,D){C=P(function(){R(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(R){R.callback=null},e.unstable_continueExecution=function(){y||v||(y=!0,yl(x))},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"):F=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(R){switch(f){case 1:case 2:case 3:var D=3;break;default:D=f}var L=f;f=D;try{return R()}finally{f=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,D){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var L=f;f=R;try{return D()}finally{f=L}},e.unstable_scheduleCallback=function(R,D,L){var X=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?X+L:X):L=X,R){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=L+te,R={id:c++,callback:D,priorityLevel:R,startTime:L,expirationTime:te,sortIndex:-1},L>X?(R.sortIndex=L,t(a,R),n(u)===null&&R===n(a)&&(g?(m(C),C=-1):g=!0,gl(S,L-X))):(R.sortIndex=te,t(u,R),y||v||(y=!0,yl(x))),R},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(R){var D=f;return function(){var L=f;f=D;try{return R.apply(this,arguments)}finally{f=L}}}})(hc);(function(e){e.exports=hc})(dc);/**
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-15 22:36:08 +02:00
*/var pc=M.exports,Pe=dc.exports;function E(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 mc=new Set,ir={};function Yt(e,t){gn(e,t),gn(e+"Capture",t)}function gn(e,t){for(ir[e]=t,e=0;e<t.length;e++)mc.add(t[e])}var st=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bl=Object.prototype.hasOwnProperty,uh=/^[: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]*$/,vu={},yu={};function ah(e){return bl.call(yu,e)?!0:bl.call(vu,e)?!1:uh.test(e)?yu[e]=!0:(vu[e]=!0,!1)}function ch(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 fh(e,t,n,r){if(t===null||typeof t>"u"||ch(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 ve(e,t,n,r,i,l,o){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=l,this.removeEmptyString=o}var ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ue[e]=new ve(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ue[t]=new ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ue[e]=new ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ue[e]=new ve(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){ue[e]=new ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ue[e]=new ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ue[e]=new ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ue[e]=new ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ue[e]=new ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var as=/[\-:]([a-z])/g;function cs(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
`+kl+e}var _l=!1;function Cl(e,t){if(!e||_l)return"";_l=!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(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var i=a.stack.split(`
2022-09-14 16:48:46 +02:00
`),l=r.stack.split(`
2022-09-15 22:36:08 +02:00
`),o=i.length-1,s=l.length-1;1<=o&&0<=s&&i[o]!==l[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==l[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==l[s]){var u=`
`+i[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=s);break}}}finally{_l=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qn(e):""}function dh(e){switch(e.tag){case 5:return qn(e.type);case 16:return qn("Lazy");case 13:return qn("Suspense");case 19:return qn("SuspenseList");case 0:case 2:case 15:return e=Cl(e.type,!1),e;case 11:return e=Cl(e.type.render,!1),e;case 1:return e=Cl(e.type,!0),e;default:return""}}function ro(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 en:return"Fragment";case bt:return"Portal";case eo:return"Profiler";case ds:return"StrictMode";case to:return"Suspense";case no:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case yc:return(e.displayName||"Context")+".Consumer";case vc:return(e._context.displayName||"Context")+".Provider";case hs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ps:return t=e.displayName||null,t!==null?t:ro(e.type)||"Memo";case pt:t=e._payload,e=e._init;try{return ro(e(t))}catch{}}return null}function hh(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 ro(t);case 8:return t===ds?"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 Nt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Sc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ph(e){var t=Sc(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,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ur(e){e._valueTracker||(e._valueTracker=ph(e))}function wc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Sc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function mi(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 io(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function Su(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Nt(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 kc(e,t){t=t.checked,t!=null&&fs(e,"checked",t,!1)}function lo(e,t){kc(e,t);var n=Nt(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")?oo(e,t.type,n):t.hasOwnProperty("defaultValue")&&oo(e,t.type,Nt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function wu(e,t,n){if(t.hasOwnPropert
`).replace(Ep,"")}function qr(e,t,n){if(t=Vu(t),Vu(e)!==t&&n)throw Error(E(425))}function Ci(){}var ko=null,_o=null;function Co(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 Eo=typeof setTimeout=="function"?setTimeout:void 0,xp=typeof clearTimeout=="function"?clearTimeout:void 0,qu=typeof Promise=="function"?Promise:void 0,Pp=typeof queueMicrotask=="function"?queueMicrotask:typeof qu<"u"?function(e){return qu.resolve(null).then(e).catch(Op)}:Eo;function Op(e){setTimeout(function(){throw e})}function Ul(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),ar(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);ar(t)}function Et(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 Hu(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 Tn=Math.random().toString(36).slice(2),Ye="__reactFiber$"+Tn,pr="__reactProps$"+Tn,ut="__reactContainer$"+Tn,xo="__reactEvents$"+Tn,Rp="__reactListeners$"+Tn,Np="__reactHandles$"+Tn;function jt(e){var t=e[Ye];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ut]||n[Ye]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Hu(e);e!==null;){if(n=e[Ye])return n;e=Hu(e)}return t}e=n,n=e.parentNode}return null}function Nr(e){return e=e[Ye]||e[ut],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ln(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(E(33))}function Ji(e){return e[pr]||null}var Po=[],on=-1;function Tt(e){return{current:e}}function V(e){0>on||(e.current=Po[on],Po[on]=null,on--)}function Q(e,t){on++,Po[on]=e.current,e.current=t}var It={},de=Tt(It),Se=Tt(!1),Ht=It;function Sn(e,t){var n=e.type.contextTypes;if(!n)return It;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function we(e){return e=e.childContextTypes,e!=null}function Ei(){V(Se),V(de)}function Ku(e,t,n){if(de.current!==It)throw Error(E(168));Q(de,t),Q(Se,n)}function cf(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(E(108,hh(e)||"Unknown",i));return W({},n,r)}function xi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||It,Ht=de.current,Q(de,e),Q(Se,Se.current),!0}function Wu(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=cf(e,t,Ht),r.__reactInternalMemoizedMergedChildContext=e,V(Se),V(de),Q(de,e)):V(Se),Q(Se,n)}var nt=null,bi=!1,zl=!1;function ff(e){nt===null?nt=[e]:nt.push(e)}function Ip(e){bi=!0,ff(e)}function Ft(){if(!zl&&nt!==null){zl=!0;var e=0,t=j;try{var n=nt;for(j=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}nt=null,bi=!1}catch(i){throw nt!==null&&(nt=nt.slice(e+1)),Lc(vs,Ft),i}finally{j=t,zl=!1}}return null}var sn=[],un=0,Pi=null,Oi=0,Te=[],Fe=0,Kt=null,it=1,lt="";function zt(e,t){sn[un++]=Oi,sn[un++]=Pi,Pi=e,Oi=t}function df(e,t,n){Te[Fe++]=it,Te[Fe++]=lt,Te[Fe++]=Kt,Kt=e;var r=it;e=lt;var i=32-qe(r)-1;r&=~(1<<i),n+=1;var l=32-qe(t)+i;if(30<l){var o=i-i%5;l=(r&(1<<o)-1).toString(32),r>>=o,i-=o,it=1<<32-qe(t)+i|n<<i|r,lt=l+e}else it=1<<l|n<<i|r,lt=e}function xs(e){e.return!==null&&(zt(e,1),df(e,1,0))}function Ps(e){for(;e===Pi;)Pi=sn[--un],sn[un]=null,Oi=sn[--un],sn[un]=null;for(;e===Kt;)Kt=Te[--Fe],Te[Fe]=null,lt=Te[--Fe],Te[Fe]=null,it=Te[--Fe],Te[Fe]=null}var xe=null,Ee=null,q=!1,Ve=null;function hf(e,t){var n=Le(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.del
2022-09-14 16:48:46 +02:00
Error generating stack: `+l.message+`
2022-09-15 22:36:08 +02:00
`+l.stack}return{value:e,source:t,stack:i,digest:null}}function Bl(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function To(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var jp=typeof WeakMap=="function"?WeakMap:Map;function Qf(e,t,n){n=ot(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Li||(Li=!0,Bo=r),To(e,t)},n}function Bf(e,t,n){n=ot(-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(){To(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){To(e,t),typeof r!="function"&&(Pt===null?Pt=new Set([this]):Pt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function ra(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new jp;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=bp.bind(null,e,t,n),t.then(e,e))}function ia(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 la(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=ot(-1,1),t.tag=2,xt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var $p=dt.ReactCurrentOwner,ge=!1;function he(e,t,n,r){t.child=e===null?wf(t,null,n,r):kn(t,e.child,n,r)}function oa(e,t,n,r,i){n=n.render;var l=t.ref;return vn(t,i),r=zs(e,t,n,r,l,i),n=As(),e!==null&&!ge?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ct(e,t,i)):(q&&n&&xs(t),t.flags|=1,he(e,t,r,i),t.child)}function sa(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!Gs(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,Vf(e,t,l,r,i)):(e=fi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,(e.lanes&i)===0){var o=l.memoizedProps;if(n=n.compare,n=n!==null?n:fr,n(o,r)&&e.ref===t.ref)return ct(e,t,i)}return t.flags|=1,e=Rt(l,r),e.ref=t.ref,e.return=t,t.child=e}function Vf(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(fr(l,r)&&e.ref===t.ref)if(ge=!1,t.pendingProps=r=l,(e.lanes&i)!==0)(e.flags&131072)!==0&&(ge=!0);else return t.lanes=e.lanes,ct(e,t,i)}return Fo(e,t,n,r,i)}function qf(e,t,n){var r=t.pendingProps,i=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Q(fn,Ce),Ce|=n;else{if((n&1073741824)===0)return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Q(fn,Ce),Ce|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,Q(fn,Ce),Ce|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,Q(fn,Ce),Ce|=r;return he(e,t,i,n),t.child}function Hf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Fo(e,t,n,r,i){var l=we(n)?Ht:de.current;return l=Sn(t,l),vn(t,i),n=zs(e,t,n,r,l,i),r=As(),e!==null&&!ge?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ct(e,t,i)):(q&&r&&xs(t),t.flags|=1,he(e,t,n,i),t.child)}function ua(e,t,n,r,i){if(we(n)){var l=!0;xi(t)}else l=!1;if(vn(t,i),t.stateNode===null)ui(e,t),gf(t,n,r),Mo(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,a=n.contextType;typeof a=="object"&&a!==null?a=ze(a):(a=we(n)?Ht:de.current,a=Sn(t,a));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||u!==a)&&bu(t,o,r,a),mt=!1;var f=t.memoizedState;o.state=f,Ii(t,r,o,i),u=t.memoizedState,s!==r||f!==u||Se.current||mt?(typeof c=="function"&&(Io(t,n,c,r),u=t.memoizedState),(s=mt||Ju(t,n,s,r,f,u,a))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.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-15 22:36:08 +02:00
*/var xn=M.exports;function cm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var fm=typeof Object.is=="function"?Object.is:cm,dm=xn.useState,hm=xn.useEffect,pm=xn.useLayoutEffect,mm=xn.useDebugValue;function vm(e,t){var n=t(),r=dm({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return pm(function(){i.value=n,i.getSnapshot=t,Kl(i)&&l({inst:i})},[e,n,t]),hm(function(){return Kl(i)&&l({inst:i}),e(function(){Kl(i)&&l({inst:i})})},[e]),mm(n),n}function Kl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!fm(e,n)}catch{return!0}}function ym(e,t){return t()}var gm=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ym:vm;pd.useSyncExternalStore=xn.useSyncExternalStore!==void 0?xn.useSyncExternalStore:gm;(function(e){e.exports=pd})(bs);var al={exports:{}},cl={};/**
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-15 22:36:08 +02:00
*/var Sm=M.exports,wm=Symbol.for("react.element"),km=Symbol.for("react.fragment"),_m=Object.prototype.hasOwnProperty,Cm=Sm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Em={key:!0,ref:!0,__self:!0,__source:!0};function md(e,t,n){var r,i={},l=null,o=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)_m.call(t,r)&&!Em.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:wm,type:e,key:l,ref:o,props:i,_owner:Cm.current}}cl.Fragment=km;cl.jsx=md;cl.jsxs=md;(function(e){e.exports=cl})(al);const Fn=al.exports.Fragment,w=al.exports.jsx,N=al.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-15 22:36:08 +02:00
*/class Mr{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 kr=typeof window>"u";function Me(){}function xm(e,t){return typeof e=="function"?e(t):e}function Ko(e){return typeof e=="number"&&e>=0&&e!==1/0}function vd(e,t){return Math.max(e+(t||0)-Date.now(),0)}function di(e,t,n){return fl(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function vt(e,t,n){return fl(e)?[{...t,queryKey:e},n]:[e||{},t]}function _a(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:l,queryKey:o,stale:s}=e;if(fl(o)){if(r){if(t.queryHash!==eu(o,t.options))return!1}else if(!ji(t.queryKey,o))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof i<"u"&&i!==t.state.fetchStatus||l&&!l(t))}function Ca(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:l}=e;if(fl(l)){if(!t.options.mutationKey)return!1;if(n){if(Bt(t.options.mutationKey)!==Bt(l))return!1}else if(!ji(t.options.mutationKey,l))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function eu(e,t){return((t==null?void 0:t.queryKeyHashFn)||Bt)(e)}function Bt(e){return JSON.stringify(e,(t,n)=>Wo(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function ji(e,t){return yd(e,t)}function yd(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!yd(e[n],t[n])):!1}function gd(e,t){if(e===t)return e;const n=xa(e)&&xa(t);if(n||Wo(e)&&Wo(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),l=i.length,o=n?[]:{};let s=0;for(let u=0;u<l;u++){const a=n?u:i[u];o[a]=gd(e[a],t[a]),o[a]===e[a]&&s++}return r===l&&s===r?e:o}return t}function Ea(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function xa(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Wo(e){if(!Pa(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Pa(n)||!n.hasOwnProperty("isPrototypeOf"))}function Pa(e){return Object.prototype.toString.call(e)==="[object Object]"}function fl(e){return Array.isArray(e)}function Sd(e){return new Promise(t=>{setTimeout(t,e)})}function Oa(e){Sd(0).then(e)}function Pm(){if(typeof AbortController=="function")return new AbortController}function Go(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?gd(e,t):t}class Om extends Mr{constructor(){super(),this.setup=t=>{if(!kr&&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 $i=new Om;class Rm extends Mr{constructor(){super(),this.setup=t=>{if(!kr&&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-15 22:36:08 +02:00
*/function Xm(){return null}function De(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 Pn(e){return!!e&&!!e[A]}function ft(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)===lv}(e)||Array.isArray(e)||!!e[Aa]||!!e.constructor[Aa]||ru(e)||iu(e))}function On(e,t,n){n===void 0&&(n=!1),Dn(e)===0?(n?Object.keys:au)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function Dn(e){var t=e[A];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:ru(e)?2:iu(e)?3:0}function Yo(e,t){return Dn(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ym(e,t){return Dn(e)===2?e.get(t):e[t]}function Od(e,t,n){var r=Dn(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function Zm(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function ru(e){return rv&&e instanceof Map}function iu(e){return iv&&e instanceof Set}function ne(e){return e.o||e.t}function lu(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ov(e);delete t[A];for(var n=au(t),r=0;r<n.length;r++){var i=n[r],l=t[i];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(t[i]={configurable:!0,writable:!0,enumerable:l.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function ou(e,t){return t===void 0&&(t=!1),su(e)||Pn(e)||!ft(e)||(Dn(e)>1&&(e.set=e.add=e.clear=e.delete=Jm),Object.freeze(e),t&&On(e,function(n,r){return ou(r,!0)},!0)),e}function Jm(){De(2)}function su(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function et(e){var t=Jo[e];return t||De(18,e),t}function bm(e,t){Jo[e]||(Jo[e]=t)}function Bi(){return Cr}function Wl(e,t){t&&(et("Patches"),e.u=[],e.s=[],e.v=t)}function Vi(e){Zo(e),e.p.forEach(ev),e.p=null}function Zo(e){e===Cr&&(Cr=e.l)}function Ta(e){return Cr={p:[],l:Cr,h:e,m:!0,_:0}}function ev(e){var t=e[A];t.i===0||t.i===1?t.j():t.O=!0}function Gl(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||et("ES5").S(t,e,r),r?(n[A].P&&(Vi(t),De(4)),ft(e)&&(e=qi(t,e),t.l||Hi(t,e)),t.u&&et("Patches").M(n[A].t,e,t.u,t.s)):e=qi(t,n,[]),Vi(t),t.u&&t.v(t.u,t.s),e!==Rd?e:void 0}function qi(e,t,n){if(su(t))return t;var r=t[A];if(!r)return On(t,function(l,o){return Fa(e,r,t,l,o,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Hi(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=lu(r.k):r.o;On(r.i===3?new Set(i):i,function(l,o){return Fa(e,r,i,l,o,n)}),Hi(e,i,!1),n&&e.u&&et("Patches").R(r,n,e.u,e.s)}return r.o}function Fa(e,t,n,r,i,l){if(Pn(i)){var o=qi(e,i,l&&t&&t.i!==3&&!Yo(t.D,r)?l.concat(r):void 0);if(Od(n,r,o),!Pn(o))return;e.m=!1}if(ft(i)&&!su(i)){if(!e.h.F&&e._<1)return;qi(e,i),t&&t.A.l||Hi(e,i)}}function Hi(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&ou(t,n)}function Xl(e,t){var n=e[A];return(n?ne(n):e)[t]}function Da(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 rt(e){e.P||(e.P=!0,e.l&&rt(e.l))}function Yl(e){e.o||(e.o=lu(e.t))}function _r(e,t,n){var r=ru(t)?et("MapSet").N(t,n):iu(t)?et("MapSet").T(t,n):e.g?function(i,l){var o=Array.isArray(i),s={i:o?1:0,A:l?l.A:Bi(),P:!1,I:!1,D:{},l,t:i,k:null,o:null,j:null,C:!1},u=s,a=bo;o&&(u=[s],a=Gn);var c=Proxy.revocable(u,a),d=c.revoke,f=c.proxy;return s.k=f,s.j=d,f}(t,n):et("ES5").J(t,n);return(n?n.A:Bi()).p.push(r),r}function tv(e){return Pn(e)||De(22,e),function t(n){if(!ft(n))return n;var r,i=n[A],l=Dn(n);if(i){if(!i.P&&(i.i<4||!et("ES5").K(i)))return i.t;i.I=!0,r=La(n,l),i.I=!1}else r=La(n,l);return On(r,function(o,s){i&&Ym(i.t,o)===s||Od(r,o,t(s))}),l===3?new Set(r):r}(e)}function La(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return lu(e)}function nv(){function e(s,u){funct
* 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
*/function Ke(){return Ke=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},Ke.apply(this,arguments)}function ns(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,l;for(l=0;l<r.length;l++)i=r[l],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function fv(e,t){var n,r,i,l="";for(n in e)if((i=e[n])!==void 0)if(Array.isArray(i))for(r=0;r<i.length;r++)l&&(l+="&"),l+=encodeURIComponent(n)+"="+encodeURIComponent(i[r]);else l&&(l+="&"),l+=encodeURIComponent(n)+"="+encodeURIComponent(i);return(t||"")+l}function Ba(e){if(!e)return"";var t=decodeURIComponent(e);return t==="false"?!1:t==="true"?!0:+t*0===0?+t:t}function dv(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],Ba(t.shift())):r[n]=Ba(t.shift());return r}const hv=["children","location","__experimental__snapshot"],pv=["location","__experimental__snapshot"],mv=["basepath","routes"],Id=M.exports.createContext(null),Md=M.exports.createContext(null),Td=M.exports.createContext(null),Fd=Boolean(typeof window<"u"&&window.document&&window.document.createElement),rs=Fd?M.exports.useLayoutEffect:M.exports.useEffect,vv=()=>Fd?av():cv();class cu{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 yv extends cu{constructor(t){var n,r;super(),this.isTransitioning=!1,this.history=(t==null?void 0:t.history)||vv(),this.stringifySearch=(n=t==null?void 0:t.stringifySearch)!=null?n:Iv,this.parseSearch=(r=t==null?void 0:t.parseSearch)!=null?r:Nv,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,l,o;t===void 0&&(t="/"),n===void 0&&(n={});const s=Ke({},this.current,n.from),u=Rv(t,s.pathname,""+((r=n.to)!=null?r:".")),a=(i=n.__searchFilters)!=null&&i.length?n.__searchFilters.reduce((y,g)=>g(y),s.search):s.search,c=n.search===!0?a:n.search?(l=Ha(n.search,a))!=null?l:{}:(o=n.__searchFilters)!=null&&o.length?a:{},d=is(s.search,c),f=this.stringifySearch(d);let v=n.hash===!0?s.hash:Ha(n.hash,s.hash);return v=v?"#"+v:"",{pathname:u,search:d,searchStr:f,hash:v,href:""+u+f+v,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:is(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 Dd(e){return w(Md.Provider,{...e})}function gv(e){let{children:t,location:n,__experimental__snapshot:r}=e,i=ns(e,hv);const l=M.exports.useRef(null);l.current||(l.current=new wv({location:n,__experimental__snapshot:r,routes:i.routes}));const o=l.current,[s,u]=M.exports.useReducer(()=>({}),{});return o.update(i),rs(()=>o.subscribe(()=>{u()}),[]),rs(()=>o.updateLocation(n.current).unsubscribe,[n.current.key]),M.exports.createElement(Id.Provider,{value:{location:n}},M.exports.createElement(Td.Provider,{value:{router:o}},w(Sv,{}),w(Dd,{value:[o.rootMatch,...o.state.matches],children:t!=null?t:w($d,{})})))}function Sv(){const e=fu(),t=jd(),n=Cv();return rs(()=>{t({to:".",search:!0,hash:!0}).href!==e.current.href&&n({to:".",search:!0,hash:!0,fromCurrent:!0,replace:!0})},[]),null}class wv extends cu{constructor(t){var n;let{location:r,__experimental__snapshot:i}=t,l=ns(t,pv);super(),this.routesById={},this.update=s=>{let{basepath:u,routes:a}=s,c=ns(s,mv);Object.assign(this,c),this.basepath=pl("/"+(u!=null?u:"")),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-15 22:36:08 +02:00
*/var ml=M.exports,qv=bs.exports;function Hv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Kv=typeof Object.is=="function"?Object.is:Hv,Wv=qv.useSyncExternalStore,Gv=ml.useRef,Xv=ml.useEffect,Yv=ml.useMemo,Zv=ml.useDebugValue;qd.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var l=Gv(null);if(l.current===null){var o={hasValue:!1,value:null};l.current=o}else o=l.current;l=Yv(function(){function u(v){if(!a){if(a=!0,c=v,v=r(v),i!==void 0&&o.hasValue){var y=o.value;if(i(y,v))return d=y}return d=v}if(y=d,Kv(c,v))return y;var g=r(v);return i!==void 0&&i(y,g)?y:(c=v,d=g)}var a=!1,c,d,f=n===void 0?null:n;return[function(){return u(t())},f===null?void 0:function(){return u(f())}]},[t,n,r,i]);var s=Wv(e,l[0],l[1]);return Xv(function(){o.hasValue=!0,o.value=s},[s]),Zv(s),s};(function(e){e.exports=qd})(Vd);const Jv=nc(Vd.exports),{useSyncExternalStoreWithSelector:bv}=Jv;function ey(e,t=e.getState,n){const r=bv(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return M.exports.useDebugValue(r),r}const Ya=e=>{const t=typeof e=="function"?Vv(e):e,n=(r,i)=>ey(t,r,i);return Object.assign(n,t),n},ty=e=>e?Ya(e):Ya;var Hd=ty;const ny=(e,t={})=>(n,r,i)=>{const{enabled:l,anonymousActionType:o,...s}=t;let u;try{u=(l!=null?l:({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&l&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,i);const a=u.connect(s);let c=!0;i.setState=(v,y,g)=>{const P=n(v,y);return c&&a.send(g===void 0?{type:o||"anonymous"}:typeof g=="string"?{type:g}:g,r()),P};const d=(...v)=>{const y=c;c=!1,n(...v),c=y},f=e(i.setState,r,i);if(a.init(f),i.dispatchFromDevtools&&typeof i.dispatch=="function"){let v=!1;const y=i.dispatch;i.dispatch=(...g)=>{({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&g[0].type==="__setState"&&!v&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),v=!0),y(...g)}}return a.subscribe(v=>{var y;switch(v.type){case"ACTION":if(typeof v.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return Zl(v.payload,g=>{if(g.type==="__setState"){d(g.state);return}!i.dispatchFromDevtools||typeof i.dispatch=="function"&&i.dispatch(g)});case"DISPATCH":switch(v.payload.type){case"RESET":return d(f),a.init(i.getState());case"COMMIT":return a.init(i.getState());case"ROLLBACK":return Zl(v.state,g=>{d(g),a.init(i.getState())});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Zl(v.state,g=>{d(g)});case"IMPORT_STATE":{const{nextLiftedState:g}=v.payload,P=(y=g.computedStates.slice(-1)[0])==null?void 0:y.state;if(!P)return;d(P),a.send(null,g);return}case"PAUSE_RECORDING":return c=!c}return}}),f},ry=ny,Zl=(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)};function xr(){return Math.floor(Math.random()*1e4)}const T=Hd(ry((e,t)=>({parallelCount:1,requestOptions:{prompt:"a photograph of an astronaut riding a horse",seed:xr(),num_outputs:1,num_inference_steps:50,guidance_scale:7.5,width:512,height:512,prompt_strength:.8,turbo:!0,use_cpu:!1,use_full_precision:!0,save_to_disk_path:"null",use_face_correction:"GFPGANv1.3",use_upscale:"RealESRGAN_x4plus",show_only_filtered_image:!0},tags:[],setParallelCount:n=>e(Ie(r=>{r.parallelCount=n})),setRequestOptions:(n,r)=>{e(Ie(i=>{i.requestOptions[n]=r}))},getValueForRequestKey:n=>t().requestOptions[n],toggleTag:n=>{e(Ie(r=>{const i=r.tags.indexOf(n);i>-1?r.tags.splice(i,1):r.tags.push(n)}))},hasTag:n=>t().tags.indexOf(n)>-1,selectedTags:()=>t().tags,builtRequest:()=>{const n=t(),r=n.requestOptions,i=n.tags,l=`${r.prompt} ${i.join(",")}`,o={...r,prompt:l};return n.uiOptions.isUseAutoSave||(o.save_to_disk_path=null),n.uiOptions.isCheckUseFaceCorrection||(o.use_face_correction=null),n.uiOptions.isCheckedUseUpscaling||(o.us