InvokeAI/frontend/dist/assets/index.c26f71e8.js

594 lines
1.3 MiB
JavaScript
Raw Normal View History

function Zq(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var gs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function A8(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xq(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var C={exports:{}},Yt={};/**
2022-11-13 11:56:09 +00: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.
*/var kv=Symbol.for("react.element"),Qq=Symbol.for("react.portal"),Jq=Symbol.for("react.fragment"),eK=Symbol.for("react.strict_mode"),tK=Symbol.for("react.profiler"),nK=Symbol.for("react.provider"),rK=Symbol.for("react.context"),iK=Symbol.for("react.forward_ref"),oK=Symbol.for("react.suspense"),aK=Symbol.for("react.memo"),sK=Symbol.for("react.lazy"),Jk=Symbol.iterator;function lK(e){return e===null||typeof e!="object"?null:(e=Jk&&e[Jk]||e["@@iterator"],typeof e=="function"?e:null)}var oM={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},aM=Object.assign,sM={};function U0(e,t,n){this.props=e,this.context=t,this.refs=sM,this.updater=n||oM}U0.prototype.isReactComponent={};U0.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")};U0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function lM(){}lM.prototype=U0.prototype;function I8(e,t,n){this.props=e,this.context=t,this.refs=sM,this.updater=n||oM}var M8=I8.prototype=new lM;M8.constructor=I8;aM(M8,U0.prototype);M8.isPureReactComponent=!0;var eE=Array.isArray,uM=Object.prototype.hasOwnProperty,O8={current:null},cM={key:!0,ref:!0,__self:!0,__source:!0};function dM(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)uM.call(t,r)&&!cM.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:kv,type:e,key:o,ref:a,props:i,_owner:O8.current}}function uK(e,t){return{$$typeof:kv,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function R8(e){return typeof e=="object"&&e!==null&&e.$$typeof===kv}function cK(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var tE=/\/+/g;function Vx(e,t){return typeof e=="object"&&e!==null&&e.key!=null?cK(""+e.key):t.toString(36)}function n3(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case kv:case Qq:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+Vx(a,0):r,eE(i)?(n="",e!=null&&(n=e.replace(tE,"$&/")+"/"),n3(i,t,n,"",function(u){return u})):i!=null&&(R8(i)&&(i=uK(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(tE,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",eE(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+Vx(o,s);a+=n3(o,t,n,l,i)}else if(l=lK(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+Vx(o,s++),a+=n3(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function V2(e,t,n){if(e==null)return e;var r=[],i=0;return n3(e,r,"","",function(o){return t.call(n,o,i++)}),r}function dK(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 ao={current:null},r3={transition:null},fK={ReactCurrentDispatcher:ao,ReactCurrentBatchConfig:r3,ReactCurrentOwner:O8};Yt.Children={map:V2,forEach:function(e,t,n){V2(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return V2(e,function(){t++}),t},toArray:function(e){return V2(e,function(t){return t})||[]},only:function(e){if(!R8(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Yt.Component=U0;Yt.Fragment=Jq;Yt.Profiler=tK;Yt
2022-11-13 11:56:09 +00: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.
*/(function(e){function t(W,q){var Q=W.length;W.push(q);e:for(;0<Q;){var X=Q-1>>>1,me=W[X];if(0<i(me,q))W[X]=q,W[Q]=me,Q=X;else break e}}function n(W){return W.length===0?null:W[0]}function r(W){if(W.length===0)return null;var q=W[0],Q=W.pop();if(Q!==q){W[0]=Q;e:for(var X=0,me=W.length,ye=me>>>1;X<ye;){var Se=2*(X+1)-1,He=W[Se],je=Se+1,ct=W[je];if(0>i(He,Q))je<me&&0>i(ct,He)?(W[X]=ct,W[je]=Q,X=je):(W[X]=He,W[Se]=Q,X=Se);else if(je<me&&0>i(ct,Q))W[X]=ct,W[je]=Q,X=je;else break e}}return q}function i(W,q){var Q=W.sortIndex-q.sortIndex;return Q!==0?Q:W.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],h=1,g=null,m=3,v=!1,b=!1,w=!1,E=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function L(W){for(var q=n(u);q!==null;){if(q.callback===null)r(u);else if(q.startTime<=W)r(u),q.sortIndex=q.expirationTime,t(l,q);else break;q=n(u)}}function I(W){if(w=!1,L(W),!b)if(n(l)!==null)b=!0,le(O);else{var q=n(u);q!==null&&G(I,q.startTime-W)}}function O(W,q){b=!1,w&&(w=!1,P(z),z=-1),v=!0;var Q=m;try{for(L(q),g=n(l);g!==null&&(!(g.expirationTime>q)||W&&!Y());){var X=g.callback;if(typeof X=="function"){g.callback=null,m=g.priorityLevel;var me=X(g.expirationTime<=q);q=e.unstable_now(),typeof me=="function"?g.callback=me:g===n(l)&&r(l),L(q)}else r(l);g=n(l)}if(g!==null)var ye=!0;else{var Se=n(u);Se!==null&&G(I,Se.startTime-q),ye=!1}return ye}finally{g=null,m=Q,v=!1}}var R=!1,D=null,z=-1,$=5,V=-1;function Y(){return!(e.unstable_now()-V<$)}function de(){if(D!==null){var W=e.unstable_now();V=W;var q=!0;try{q=D(!0,W)}finally{q?j():(R=!1,D=null)}}else R=!1}var j;if(typeof k=="function")j=function(){k(de)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,ie=te.port2;te.port1.onmessage=de,j=function(){ie.postMessage(null)}}else j=function(){E(de,0)};function le(W){D=W,R||(R=!0,j())}function G(W,q){z=E(function(){W(e.unstable_now())},q)}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(W){W.callback=null},e.unstable_continueExecution=function(){b||v||(b=!0,le(O))},e.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<W?Math.floor(1e3/W):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(W){switch(m){case 1:case 2:case 3:var q=3;break;default:q=m}var Q=m;m=q;try{return W()}finally{m=Q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(W,q){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var Q=m;m=W;try{return q()}finally{m=Q}},e.unstable_scheduleCallback=function(W,q,Q){var X=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?X+Q:X):Q=X,W){case 1:var me=-1;break;case 2:me=250;break;case 5:me=1073741823;break;case 4:me=1e4;break;default:me=5e3}return me=Q+me,W={id:h++,callback:q,priorityLevel:W,startTime:Q,expirationTime:me,sortIndex:-1},Q>X?(W.sortIndex=Q,t(u,W),n(l)===null&&W===n(u)&&(w?(P(z),z=-1):w=!0,G(I,Q-X))):(W.sortIndex=me,t(l,W),b||v||(b=!0,le(O))),W},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(W){var q=m;return function(){var Q=m;m=q;try{return W.apply(this,arguments)}finally{m=Q}}}})(fM);(function(e){e.exports=fM})(Yp);/**
2022-11-13 11:56:09 +00: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.
*/var hM=C.exports,sa=Yp.exports;function Oe(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 pM=new Set,Nm={};function th(e,t){_0(e,t),_0(e+"Capture",t)}function _0(e,t){for(Nm[e]=t,e=0;e<t.length;e++)pM.add(t[e])}var fu=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),N6=Object.prototype.hasOwnProperty,hK=/^[: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]*$/,nE={},rE={};function pK(e){return N6.call(rE,e)?!0:N6.call(nE,e)?!1:hK.test(e)?rE[e]=!0:(nE[e]=!0,!1)}function gK(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 mK(e,t,n,r){if(t===null||typeof t>"u"||gK(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 so(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Oi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Oi[e]=new so(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Oi[t]=new so(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Oi[e]=new so(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Oi[e]=new so(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){Oi[e]=new so(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Oi[e]=new so(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Oi[e]=new so(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Oi[e]=new so(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Oi[e]=new so(e,5,!1,e.toLowerCase(),null,!1,!1)});var N8=/[\-:]([a-z])/g;function D8(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-a
2022-11-13 11:56:09 +00:00
`+Ux+e}var jx=!1;function Gx(e,t){if(!e||jx)return"";jx=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
`),o=r.stack.split(`
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{jx=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wg(e):""}function vK(e){switch(e.tag){case 5:return Wg(e.type);case 16:return Wg("Lazy");case 13:return Wg("Suspense");case 19:return Wg("SuspenseList");case 0:case 2:case 15:return e=Gx(e.type,!1),e;case 11:return e=Gx(e.type.render,!1),e;case 1:return e=Gx(e.type,!0),e;default:return""}}function F6(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 Rp:return"Fragment";case Op:return"Portal";case D6:return"Profiler";case B8:return"StrictMode";case z6:return"Suspense";case B6:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case mM:return(e.displayName||"Context")+".Consumer";case gM:return(e._context.displayName||"Context")+".Provider";case F8:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $8:return t=e.displayName||null,t!==null?t:F6(e.type)||"Memo";case Pc:t=e._payload,e=e._init;try{return F6(e(t))}catch{}}return null}function yK(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 F6(t);case 8:return t===B8?"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 nd(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function yM(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bK(e){var t=yM(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function j2(e){e._valueTracker||(e._valueTracker=bK(e))}function bM(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=yM(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function j3(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 $6(e,t){var n=t.checked;return hr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function oE(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=nd(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 xM(e,t){t=t.checked,t!=null&&z8(e,"checked",t,!1)}function H6(e,t){xM(e,t);var n=nd(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")?W6(e,t.type,n):t.hasOwnProperty("defaultValue")&&W6(e,t.type,nd(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function aE(e,t,n){if(t.hasOwnProperty("val
`).replace(TY,"")}function J2(e,t,n){if(t=TE(t),TE(e)!==t&&n)throw Error(Oe(425))}function J3(){}var nw=null,rw=null;function iw(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 ow=typeof setTimeout=="function"?setTimeout:void 0,AY=typeof clearTimeout=="function"?clearTimeout:void 0,AE=typeof Promise=="function"?Promise:void 0,IY=typeof queueMicrotask=="function"?queueMicrotask:typeof AE<"u"?function(e){return AE.resolve(null).then(e).catch(MY)}:ow;function MY(e){setTimeout(function(){throw e})}function oS(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),$m(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);$m(t)}function Kc(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 IE(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 G0=Math.random().toString(36).slice(2),fl="__reactFiber$"+G0,jm="__reactProps$"+G0,hu="__reactContainer$"+G0,aw="__reactEvents$"+G0,OY="__reactListeners$"+G0,RY="__reactHandles$"+G0;function Tf(e){var t=e[fl];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hu]||n[fl]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=IE(e);e!==null;){if(n=e[fl])return n;e=IE(e)}return t}e=n,n=e.parentNode}return null}function Lv(e){return e=e[fl]||e[hu],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Bp(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Oe(33))}function h5(e){return e[jm]||null}var sw=[],Fp=-1;function hd(e){return{current:e}}function Xn(e){0>Fp||(e.current=sw[Fp],sw[Fp]=null,Fp--)}function Gn(e,t){Fp++,sw[Fp]=e.current,e.current=t}var rd={},Vi=hd(rd),Lo=hd(!1),jf=rd;function k0(e,t){var n=e.type.contextTypes;if(!n)return rd;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 To(e){return e=e.childContextTypes,e!=null}function e4(){Xn(Lo),Xn(Vi)}function ME(e,t,n){if(Vi.current!==rd)throw Error(Oe(168));Gn(Vi,t),Gn(Lo,n)}function lO(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(Oe(108,yK(e)||"Unknown",i));return hr({},n,r)}function t4(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rd,jf=Vi.current,Gn(Vi,e),Gn(Lo,Lo.current),!0}function OE(e,t,n){var r=e.stateNode;if(!r)throw Error(Oe(169));n?(e=lO(e,t,jf),r.__reactInternalMemoizedMergedChildContext=e,Xn(Lo),Xn(Vi),Gn(Vi,e)):Xn(Lo),Gn(Lo,n)}var ou=null,p5=!1,aS=!1;function uO(e){ou===null?ou=[e]:ou.push(e)}function NY(e){p5=!0,uO(e)}function pd(){if(!aS&&ou!==null){aS=!0;var e=0,t=Tn;try{var n=ou;for(Tn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ou=null,p5=!1}catch(i){throw ou!==null&&(ou=ou.slice(e+1)),RM(W8,pd),i}finally{Tn=t,aS=!1}}return null}var $p=[],Hp=0,n4=null,r4=0,Pa=[],La=0,Gf=null,lu=1,uu="";function yf(e,t){$p[Hp++]=r4,$p[Hp++]=n4,n4=e,r4=t}function cO(e,t,n){Pa[La++]=lu,Pa[La++]=uu,Pa[La++]=Gf,Gf=e;var r=lu;e=uu;var i=32-vs(r)-1;r&=~(1<<i),n+=1;var o=32-vs(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,lu=1<<32-vs(t)+i|n<<i|r,uu=o+e}else lu=1<<o|n<<i|r,uu=e}function X8(e){e.return!==null&&(yf(e,1),cO(e,1,0))}function Q8(e){for(;e===n4;)n4=$p[--Hp],$p[Hp]=null,r4=$p[--Hp],$p[Hp]=null;for(;e===Gf;)Gf=Pa[--La],Pa[La]=null,uu=Pa[--La],Pa[La]=null,lu=Pa[--La],Pa[La]=null}var ra=null,na=null,rr=!1,ps=null;function dO(e,t){var n=Ma(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.de
2022-11-13 11:56:09 +00:00
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function dS(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function hw(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var UY=typeof WeakMap=="function"?WeakMap:Map;function FO(e,t,n){n=du(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){d4||(d4=!0,Cw=r),hw(e,t)},n}function $O(e,t,n){n=du(-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(){hw(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){hw(e,t),typeof r!="function"&&(Zc===null?Zc=new Set([this]):Zc.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function VE(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new UY;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=iZ.bind(null,e,t,n),t.then(e,e))}function UE(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 jE(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=du(-1,1),t.tag=2,Yc(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var jY=Cu.ReactCurrentOwner,Po=!1;function no(e,t,n,r){t.child=e===null?yO(t,null,n,r):P0(t,e.child,n,r)}function GE(e,t,n,r,i){n=n.render;var o=t.ref;return e0(t,i),r=uC(e,t,n,r,o,i),n=cC(),e!==null&&!Po?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,gu(e,t,i)):(rr&&n&&X8(t),t.flags|=1,no(e,t,r,i),t.child)}function qE(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!xC(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,HO(e,t,o,r,i)):(e=h3(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 a=o.memoizedProps;if(n=n.compare,n=n!==null?n:Wm,n(a,r)&&e.ref===t.ref)return gu(e,t,i)}return t.flags|=1,e=Qc(o,r),e.ref=t.ref,e.return=t,t.child=e}function HO(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Wm(o,r)&&e.ref===t.ref)if(Po=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(Po=!0);else return t.lanes=e.lanes,gu(e,t,i)}return pw(e,t,n,r,i)}function WO(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},Gn(Up,ea),ea|=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,Gn(Up,ea),ea|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Gn(Up,ea),ea|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Gn(Up,ea),ea|=r;return no(e,t,i,n),t.child}function VO(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function pw(e,t,n,r,i){var o=To(n)?jf:Vi.current;return o=k0(t,o),e0(t,i),n=uC(e,t,n,r,o,i),r=cC(),e!==null&&!Po?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,gu(e,t,i)):(rr&&r&&X8(t),t.flags|=1,no(e,t,n,i),t.child)}function KE(e,t,n,r,i){if(To(n)){var o=!0;t4(t)}else o=!1;if(e0(t,i),t.stateNode===null)c3(e,t),mO(t,n,r),fw(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Da(u):(u=To(n)?jf:Vi.current,u=k0(t,u));var h=n.getDerivedStateFromProps,g=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function";g||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&FE(t,a,r,u),Lc=!1;var m=t.memoizedState;a.state=m,a4(t,r,a,i),l=t.memoizedState,s!==r||m!==l||Lo.current||Lc?(typeof h=="function"&&(dw(t,n,h,r),l=t.memoizedState),(s=Lc||BE(t,n,s,r,m,l,u))?(g||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="f
2022-11-13 11:56:09 +00: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.
*/var gZ=C.exports,mZ=Symbol.for("react.element"),vZ=Symbol.for("react.fragment"),yZ=Object.prototype.hasOwnProperty,bZ=gZ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,xZ={key:!0,ref:!0,__self:!0,__source:!0};function fR(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)yZ.call(t,r)&&!xZ.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:mZ,type:e,key:o,ref:a,props:i,_owner:bZ.current}}k5.Fragment=vZ;k5.jsx=fR;k5.jsxs=fR;(function(e){e.exports=k5})(_5);const Kn=_5.exports.Fragment,x=_5.exports.jsx,ee=_5.exports.jsxs,SZ=Object.freeze(Object.defineProperty({__proto__:null,Fragment:Kn,jsx:x,jsxs:ee},Symbol.toStringTag,{value:"Module"}));var kC=C.exports.createContext({});kC.displayName="ColorModeContext";function Av(){const e=C.exports.useContext(kC);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var sy={light:"chakra-ui-light",dark:"chakra-ui-dark"};function wZ(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const i=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,i?.()},setClassName(r){document.body.classList.add(r?sy.dark:sy.light),document.body.classList.remove(r?sy.light:sy.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){return n.query().matches??r==="dark"?"dark":"light"},addListener(r){const i=n.query(),o=a=>{r(a.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(o):i.addEventListener("change",o),()=>{typeof i.removeListener=="function"?i.removeListener(o):i.removeEventListener("change",o)}},preventTransition(){const r=document.createElement("style");return r.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var CZ="chakra-ui-color-mode";function _Z(e){return{ssr:!1,type:"localStorage",get(t){if(!globalThis?.document)return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var kZ=_Z(CZ),lP=()=>{};function uP(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function hR(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:a=kZ}=e,s=i==="dark"?"dark":"light",[l,u]=C.exports.useState(()=>uP(a,s)),[h,g]=C.exports.useState(()=>uP(a)),{getSystemTheme:m,setClassName:v,setDataset:b,addListener:w}=C.exports.useMemo(()=>wZ({preventTransition:o}),[o]),E=i==="system"&&!l?h:l,P=C.exports.useCallback(I=>{const O=I==="system"?m():I;u(O),v(O==="dark"),b(O),a.set(O)},[a,m,v,b]);bs(()=>{i==="system"&&g(m())},[]),C.exports.useEffect(()=>{const I=a.get();if(I){P(I);return}if(i==="system"){P("system");return}P(s)},[a,s,i,P]);const k=C.exports.useCallback(()=>{P(E==="dark"?"light":"dark")},[E,P]);C.exports.useEffect(()=>{if(!!r)return w(P)},[r,w,P]);const L=C.exports.useMemo(()=>({colorMode:t??E,toggleColorMode:t?lP:k,setColorMode:t?lP:P,forced:t!==void 0}),[E,k,P,t]);return x(kC.Provider,{value:L,children:n})}hR.displayName="ColorModeProvider";var Pw={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,o=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",h="[object Boolean]",g="[object Date]",m="[object Error]",v="[object Function]",b="[object GeneratorFunction]",w="[object Map]",E="[object Number]",P="[object Null]",k="[object Object]",L="[object Proxy]",I="[object RegExp]",O="[object Set]",R="[object String]",D="[object Undefined]",z="[object WeakMap]",$="[object ArrayBuffer]",V="[object DataView]",Y="[object Float32Array]",de="[object Float64Array]",j="[object Int8Array]",te="[object
2022-11-13 11:56:09 +00:00
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var hi=typeof Symbol=="function"&&Symbol.for,IC=hi?Symbol.for("react.element"):60103,MC=hi?Symbol.for("react.portal"):60106,I5=hi?Symbol.for("react.fragment"):60107,M5=hi?Symbol.for("react.strict_mode"):60108,O5=hi?Symbol.for("react.profiler"):60114,R5=hi?Symbol.for("react.provider"):60109,N5=hi?Symbol.for("react.context"):60110,OC=hi?Symbol.for("react.async_mode"):60111,D5=hi?Symbol.for("react.concurrent_mode"):60111,z5=hi?Symbol.for("react.forward_ref"):60112,B5=hi?Symbol.for("react.suspense"):60113,mQ=hi?Symbol.for("react.suspense_list"):60120,F5=hi?Symbol.for("react.memo"):60115,$5=hi?Symbol.for("react.lazy"):60116,vQ=hi?Symbol.for("react.block"):60121,yQ=hi?Symbol.for("react.fundamental"):60117,bQ=hi?Symbol.for("react.responder"):60118,xQ=hi?Symbol.for("react.scope"):60119;function ha(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case IC:switch(e=e.type,e){case OC:case D5:case I5:case O5:case M5:case B5:return e;default:switch(e=e&&e.$$typeof,e){case N5:case z5:case $5:case F5:case R5:return e;default:return t}}case MC:return t}}}function OR(e){return ha(e)===D5}Mn.AsyncMode=OC;Mn.ConcurrentMode=D5;Mn.ContextConsumer=N5;Mn.ContextProvider=R5;Mn.Element=IC;Mn.ForwardRef=z5;Mn.Fragment=I5;Mn.Lazy=$5;Mn.Memo=F5;Mn.Portal=MC;Mn.Profiler=O5;Mn.StrictMode=M5;Mn.Suspense=B5;Mn.isAsyncMode=function(e){return OR(e)||ha(e)===OC};Mn.isConcurrentMode=OR;Mn.isContextConsumer=function(e){return ha(e)===N5};Mn.isContextProvider=function(e){return ha(e)===R5};Mn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===IC};Mn.isForwardRef=function(e){return ha(e)===z5};Mn.isFragment=function(e){return ha(e)===I5};Mn.isLazy=function(e){return ha(e)===$5};Mn.isMemo=function(e){return ha(e)===F5};Mn.isPortal=function(e){return ha(e)===MC};Mn.isProfiler=function(e){return ha(e)===O5};Mn.isStrictMode=function(e){return ha(e)===M5};Mn.isSuspense=function(e){return ha(e)===B5};Mn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===I5||e===D5||e===O5||e===M5||e===B5||e===mQ||typeof e=="object"&&e!==null&&(e.$$typeof===$5||e.$$typeof===F5||e.$$typeof===R5||e.$$typeof===N5||e.$$typeof===z5||e.$$typeof===yQ||e.$$typeof===bQ||e.$$typeof===xQ||e.$$typeof===vQ)};Mn.typeOf=ha;(function(e){e.exports=Mn})(MR);var RR=MR.exports,SQ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},wQ={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},NR={};NR[RR.ForwardRef]=SQ;NR[RR.Memo]=wQ;var CQ=!0;function _Q(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var DR=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||CQ===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},zR=function(t,n,r){DR(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function kQ(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var EQ={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWid
2022-11-13 11:56:09 +00:00
45deg,
${t} 25%,
transparent 25%,
transparent 50%,
${t} 50%,
${t} 75%,
transparent 75%,
transparent
)`,backgroundSize:`${e} ${e}`}}function YJ(e){const t=XR().toHexString();return!e||GJ(e)?t:e.string&&e.colors?XJ(e.string,e.colors):e.string&&!e.colors?ZJ(e.string):e.colors&&!e.string?QJ(e.colors):t}function ZJ(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t=t&t;let n="#";for(let r=0;r<3;r+=1){const i=t>>r*8&255;n+=`00${i.toString(16)}`.substr(-2)}return n}function XJ(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;r<e.length;r+=1)n=e.charCodeAt(r)+((n<<5)-n),n=n&n;return n=(n%t.length+t.length)%t.length,t[n]}function QJ(e){return e[Math.floor(Math.random()*e.length)]}function Ue(e,t){return n=>n.colorMode==="dark"?t:e}function DC(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function JJ(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function tN(e){return JJ(e)&&e.reference?e.reference:String(e)}var V5=(e,...t)=>t.map(tN).join(` ${e} `).replace(/calc/g,""),RP=(...e)=>`calc(${V5("+",...e)})`,NP=(...e)=>`calc(${V5("-",...e)})`,$w=(...e)=>`calc(${V5("*",...e)})`,DP=(...e)=>`calc(${V5("/",...e)})`,zP=e=>{const t=tN(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:$w(t,-1)},su=Object.assign(e=>({add:(...t)=>su(RP(e,...t)),subtract:(...t)=>su(NP(e,...t)),multiply:(...t)=>su($w(e,...t)),divide:(...t)=>su(DP(e,...t)),negate:()=>su(zP(e)),toString:()=>e.toString()}),{add:RP,subtract:NP,multiply:$w,divide:DP,negate:zP});function eee(e){return!Number.isInteger(parseFloat(e.toString()))}function tee(e,t="-"){return e.replace(/\s+/g,t)}function nN(e){const t=tee(e.toString());return t.includes("\\.")?e:eee(e)?t.replace(".","\\."):e}function nee(e,t=""){return[t,nN(e)].filter(Boolean).join("-")}function ree(e,t){return`var(${nN(e)}${t?`, ${t}`:""})`}function iee(e,t=""){return`--${nee(e,t)}`}function ji(e,t){const n=iee(e,t?.prefix);return{variable:n,reference:ree(n,oee(t?.fallback))}}function oee(e){return typeof e=="string"?e:e?.reference}var{definePartsStyle:aee,defineMultiStyleConfig:see}=ir(iJ.keys),lee={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},uee={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},cee={pt:"2",px:"4",pb:"5"},dee={fontSize:"1.25em"},fee=aee({container:lee,button:uee,panel:cee,icon:dee}),hee=see({baseStyle:fee}),{definePartsStyle:Ov,defineMultiStyleConfig:pee}=ir(oJ.keys),oa=ei("alert-fg"),mu=ei("alert-bg"),gee=Ov({container:{bg:mu.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:oa.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:oa.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function zC(e){const{theme:t,colorScheme:n}=e,r=M0(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var mee=Ov(e=>{const{colorScheme:t}=e,n=zC(e);return{container:{[oa.variable]:`colors.${t}.500`,[mu.variable]:n.light,_dark:{[oa.variable]:`colors.${t}.200`,[mu.variable]:n.dark}}}}),vee=Ov(e=>{const{colorScheme:t}=e,n=zC(e);return{container:{[oa.variable]:`colors.${t}.500`,[mu.variable]:n.light,_dark:{[oa.variable]:`colors.${t}.200`,[mu.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:oa.reference}}}),yee=Ov(e=>{const{colorScheme:t}=e,n=zC(e);return{container:{[oa.variable]:`colors.${t}.500`,[mu.variable]:n.light,_dark:{[oa.variable]:`colors.${t}.200`,[mu.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:oa.reference}}}),bee=Ov(e=>{const{colorScheme:t}=e;return{container:{[oa.variable]:"colors.white",[mu.variable]:`colors.${t}.500`,_dark:{[oa.variable]:"colors.gray.900",[mu.variable]:`colors.${t}.200`},color:oa.reference}}}),xee={subtle:mee,"left-accent":vee,"top-accent":yee,solid:bee},See=pee({baseStyle:gee,variants:xee,defaultProps:{variant:"subtle",colorScheme:"blue"}}),rN={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5
2022-11-13 11:56:09 +00:00
to right,
transparent 0%,
${Ai(n,a)} 50%,
transparent 100%
)`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}},dre={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},fre=e=>({bg:Ue("gray.100","whiteAlpha.300")(e)}),hre=e=>({transitionProperty:"common",transitionDuration:"slow",...cre(e)}),pre=qg(e=>({label:dre,filledTrack:hre(e),track:fre(e)})),gre={xs:qg({track:{h:"1"}}),sm:qg({track:{h:"2"}}),md:qg({track:{h:"3"}}),lg:qg({track:{h:"4"}})},mre=ure({sizes:gre,baseStyle:pre,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:vre,definePartsStyle:b3}=ir(xJ.keys),yre=e=>{var t;const n=(t=fi(y4.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n?._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},bre=b3(e=>{var t,n,r,i;return{label:(n=(t=y4).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=y4).baseStyle)==null?void 0:i.call(r,e).container,control:yre(e)}}),xre={md:b3({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:b3({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:b3({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},Sre=vre({baseStyle:bre,sizes:xre,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:wre,definePartsStyle:Cre}=ir(SJ.keys),_re=e=>{var t;return{...(t=gn.baseStyle)==null?void 0:t.field,bg:Ue("white","gray.700")(e),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:Ue("white","gray.700")(e)}}},kre={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},Ere=Cre(e=>({field:_re(e),icon:kre})),py={paddingInlineEnd:"8"},WP,VP,UP,jP,GP,qP,KP,YP,Pre={lg:{...(WP=gn.sizes)==null?void 0:WP.lg,field:{...(VP=gn.sizes)==null?void 0:VP.lg.field,...py}},md:{...(UP=gn.sizes)==null?void 0:UP.md,field:{...(jP=gn.sizes)==null?void 0:jP.md.field,...py}},sm:{...(GP=gn.sizes)==null?void 0:GP.sm,field:{...(qP=gn.sizes)==null?void 0:qP.sm.field,...py}},xs:{...(KP=gn.sizes)==null?void 0:KP.xs,field:{...(YP=gn.sizes)==null?void 0:YP.xs.field,...py},icon:{insetEnd:"1"}}},Lre=wre({baseStyle:Ere,sizes:Pre,variants:gn.variants,defaultProps:gn.defaultProps}),Tre=ei("skeleton-start-color"),Are=ei("skeleton-end-color"),Ire=e=>{const t=Ue("gray.100","gray.800")(e),n=Ue("gray.400","gray.600")(e),{startColor:r=t,endColor:i=n,theme:o}=e,a=Ai(o,r),s=Ai(o,i);return{[Tre.variable]:a,[Are.variable]:s,opacity:.7,borderRadius:"2px",borderColor:a,background:s}},Mre={baseStyle:Ire},CS=ei("skip-link-bg"),Ore={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[CS.variable]:"colors.white",_dark:{[CS.variable]:"colors.gray.700"},bg:CS.reference}},Rre={baseStyle:Ore},{defineMultiStyleConfig:Nre,definePartsStyle:U5}=ir(wJ.keys),iv=ei("slider-thumb-size"),ov=ei("slider-track-size"),Mc=ei("slider-bg"),Dre=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...DC({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},zre=e=>({...DC({orientation:e.orientation,horizontal:{h:ov.reference},vertical:{w:ov.reference}}),overflow:"hidden",borderRadius:"sm",[Mc.variable]:"colors.gray.200",_dark:{[Mc.variable]:"colors.whiteAlpha.200"},_disabled:{[Mc.variable]:"colors.gray.300",_dark:{[Mc.variable]:"colors.whiteAlpha.300"}},bg:Mc.reference}),Bre=e=>{const{orientation:t}=e;return{...DC({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:iv.reference,h:iv.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},Fre=e=>{const{colorScheme:t}=e;return{wid
2022-11-13 11:56:09 +00:00
[data-motion-pop-id="${n}"] {
position: absolute !important;
width: ${o}px !important;
height: ${a}px !important;
top: ${s}px !important;
left: ${l}px !important;
}
`),()=>{document.head.removeChild(u)}},[t]),x(kce,{isPresent:t,childRef:r,sizeRef:i,children:C.exports.cloneElement(e,{ref:r})})}const zS=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=Y5(Pce),l=C.exports.useId(),u=C.exports.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:h=>{s.set(h,!0);for(const g of s.values())if(!g)return;r&&r()},register:h=>(s.set(h,!1),()=>s.delete(h))}),o?void 0:[n]);return C.exports.useMemo(()=>{s.forEach((h,g)=>s.set(g,!1))},[n]),C.exports.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=x(Ece,{isPresent:n,children:e})),x(Y0.Provider,{value:u,children:e})};function Pce(){return new Map}const Tp=e=>e.key||"";function Lce(e,t){e.forEach(n=>{const r=Tp(n);t.set(r,n)})}function Tce(e){const t=[];return C.exports.Children.forEach(e,n=>{C.exports.isValidElement(n)&&t.push(n)}),t}const md=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",hD(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=_ce();const l=C.exports.useContext(HC).forceRender;l&&(s=l);const u=WD(),h=Tce(e);let g=h;const m=new Set,v=C.exports.useRef(g),b=C.exports.useRef(new Map).current,w=C.exports.useRef(!0);if(S4(()=>{w.current=!1,Lce(h,b),v.current=g}),ZC(()=>{w.current=!0,b.clear(),m.clear()}),w.current)return x(Kn,{children:g.map(L=>x(zS,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a,children:L},Tp(L)))});g=[...g];const E=v.current.map(Tp),P=h.map(Tp),k=E.length;for(let L=0;L<k;L++){const I=E[L];P.indexOf(I)===-1&&m.add(I)}return a==="wait"&&m.size&&(g=[]),m.forEach(L=>{if(P.indexOf(L)!==-1)return;const I=b.get(L);if(!I)return;const O=E.indexOf(L),R=()=>{b.delete(L),m.delete(L);const D=v.current.findIndex(z=>z.key===L);if(v.current.splice(D,1),!m.size){if(v.current=h,u.current===!1)return;s(),r&&r()}};g.splice(O,0,x(zS,{isPresent:!1,onExitComplete:R,custom:t,presenceAffectsLayout:o,mode:a,children:I},Tp(I)))}),g=g.map(L=>{const I=L.key;return m.has(I)?L:x(zS,{isPresent:!0,presenceAffectsLayout:o,mode:a,children:L},Tp(L))}),fD!=="production"&&a==="wait"&&g.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),x(Kn,{children:m.size?g:g.map(L=>C.exports.cloneElement(L))})};var hl=function(){return hl=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},hl.apply(this,arguments)};function VD(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Z0(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(h){try{u(r.next(h))}catch(g){a(g)}}function l(h){try{u(r.throw(h))}catch(g){a(g)}}function u(h){h.done?o(h.value):i(h.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}function X0(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(h){return l([u,h])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[
`})}function Jce(e){nb({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function Rc(e){const{isOpen:t,isDisabled:n}=f7(),{reduceMotion:r}=h7(),i=$v("chakra-accordion__icon",e.className),o=rb(),a={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...o.icon};return x(pa,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:a,...e,children:x("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}Rc.displayName="AccordionIcon";var Nc=Pe(function(t,n){const{children:r,className:i}=t,{htmlProps:o,...a}=Yce(t),l={...rb().container,overflowAnchor:"none"},u=C.exports.useMemo(()=>a,[a]);return re.createElement(Vce,{value:u},re.createElement(we.div,{ref:n,...o,className:$v("chakra-accordion__item",i),__css:l},typeof r=="function"?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r))});Nc.displayName="AccordionItem";var Dc=Pe(function(t,n){const{className:r,motionProps:i,...o}=t,{reduceMotion:a}=h7(),{getPanelProps:s,isOpen:l}=f7(),u=s(o,n),h=$v("chakra-accordion__panel",r),g=rb();a||delete u.hidden;const m=re.createElement(we.div,{...u,__css:g.panel,className:h});return a?m:x(UD,{in:l,...i,children:m})});Dc.displayName="AccordionPanel";var ib=Pe(function({children:t,reduceMotion:n,...r},i){const o=Ri("Accordion",r),a=mn(r),{htmlProps:s,descendants:l,...u}=qce(a),h=C.exports.useMemo(()=>({...u,reduceMotion:!!n}),[u,n]);return re.createElement(Uce,{value:l},re.createElement(Kce,{value:h},re.createElement(Wce,{value:o},re.createElement(we.div,{ref:i,...s,className:$v("chakra-accordion",r.className),__css:o.root},t))))});ib.displayName="Accordion";var ede=(...e)=>e.filter(Boolean).join(" "),tde=gd({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Hv=Pe((e,t)=>{const n=lo("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:s,...l}=mn(e),u=ede("chakra-spinner",s),h={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${tde} ${o} linear infinite`,...n};return re.createElement(we.div,{ref:t,__css:h,className:u,...l},r&&re.createElement(we.span,{srOnly:!0},r))});Hv.displayName="Spinner";var ob=(...e)=>e.filter(Boolean).join(" ");function nde(e){return x(pa,{viewBox:"0 0 24 24",...e,children:x("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function rde(e){return x(pa,{viewBox:"0 0 24 24",...e,children:x("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function gT(e){return x(pa,{viewBox:"0 0 24 24",...e,children:x("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var[ide,ode]=Cn({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[ade,p7]=Cn({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),KD={info:{icon:rde,colorScheme:"blue"},warning:{icon:gT,colorScheme:"orange"},success:{icon:nde,colorScheme:"green"},error:{icon:gT,colorScheme:"red"},loading:{icon:Hv,colorScheme:"blue"}};function sde(e){return KD[e].colorScheme}function lde(e){return KD[e].icon}var YD=Pe(function(t,n){const{status:r="info",addRole:i=!0,...o}=mn(t),a=t.colorScheme??sde(r),s=Ri("Alert",{...t,colorScheme:a}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",over
2022-11-13 11:56:09 +00:00
:root {
--chakra-vh: 100vh;
}
@supports (height: -webkit-fill-available) {
:root {
--chakra-vh: -webkit-fill-available;
}
}
@supports (height: -moz-fill-available) {
:root {
--chakra-vh: -moz-fill-available;
}
}
@supports (height: 100dvh) {
:root {
--chakra-vh: 100dvh;
}
}
`,Gde=()=>x(H5,{styles:oz}),qde=()=>x(H5,{styles:`
2022-11-13 11:56:09 +00:00
html {
line-height: 1.5;
-webkit-text-size-adjust: 100%;
font-family: system-ui, sans-serif;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;
touch-action: manipulation;
}
body {
position: relative;
min-height: 100%;
font-feature-settings: 'kern';
}
*,
*::before,
*::after {
border-width: 0;
border-style: solid;
box-sizing: border-box;
}
main {
display: block;
}
hr {
border-top-width: 1px;
box-sizing: content-box;
height: 0;
overflow: visible;
}
pre,
code,
kbd,
samp {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 1em;
}
a {
background-color: transparent;
color: inherit;
text-decoration: inherit;
}
abbr[title] {
border-bottom: none;
text-decoration: underline;
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
}
b,
strong {
font-weight: bold;
}
small {
font-size: 80%;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
img {
border-style: none;
}
button,
input,
optgroup,
select,
textarea {
font-family: inherit;
font-size: 100%;
line-height: 1.15;
margin: 0;
}
button,
input {
overflow: visible;
}
button,
select {
text-transform: none;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
fieldset {
padding: 0.35em 0.75em 0.625em;
}
legend {
box-sizing: border-box;
color: inherit;
display: table;
max-width: 100%;
padding: 0;
white-space: normal;
}
progress {
vertical-align: baseline;
}
textarea {
overflow: auto;
}
[type="checkbox"],
[type="radio"] {
box-sizing: border-box;
padding: 0;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none !important;
}
input[type="number"] {
-moz-appearance: textfield;
}
[type="search"] {
-webkit-appearance: textfield;
outline-offset: -2px;
}
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none !important;
}
::-webkit-file-upload-button {
-webkit-appearance: button;
font: inherit;
}
details {
display: block;
}
summary {
display: list-item;
}
template {
display: none;
}
[hidden] {
display: none !important;
}
body,
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
margin: 0;
}
button {
background: transparent;
padding: 0;
}
fieldset {
margin: 0;
padding: 0;
}
ol,
ul {
margin: 0;
padding: 0;
}
textarea {
resize: vertical;
}
button,
[role="button"] {
cursor: pointer;
}
button::-moz-focus-inner {
border: 0 !important;
}
table {
border-collapse: collapse;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: inherit;
font-weight: inherit;
}
button,
input,
optgroup,
select,
textarea {
padding: 0;
line-height: inherit;
color: inherit;
}
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
display: block;
}
img,
video {
max-width: 100%;
height: auto;
}
[data-js-focus-visible] :focus:not([data-focus-visible-added]):not([data-focus-visible-disabled]) {
outline: none;
box-shadow: none;
}
select::-ms-expand {
display: none;
}
${oz}
`});function Hf(e,t,n,r){const i=dr(n);return C.exports.useEffect(()=>{const o=typeof e=="function"?e():e??document;if(!(!n||!o))return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const o=typeof e=="function"?e():e??document;o?.removeEventListener(t,i,r)}}function Kde(e){return"current"in e}var az=()=>typeof window<"u";function Yde(){const e=navigator.userAgentData;return e?.platform??navigator.platform}var Zde=e=>az()&&e.test(navigator.vendor),Xde=e=>az()&&e.test(Yde()),Qde=()=>Xde(/mac|iphone|ipad|ipod/i),Jde=()=>Qde()&&Zde(/apple/i);function efe(e){const{ref:t,elements:n,enabled:r}=e,i=()=>{var o;return((o=t.current)==null?void 0:o.ownerDocument)??document};Hf(i,"pointerdown",o=>{if(!Jde()||!r)return;const a=o.target,l=(n??[t]).some(u=>{const h=Kde(u)?u.current:u;return h?.contains(a)||h===a});i().activeElement!==a&&l&&(o.preventDefault(),a.focus())})}var tfe=KQ?C.exports.useLayoutEffect:C.exports.useEffect;function CT(e,t=[]){const n=C.exports.useRef(e);return tfe(()=>{n.current=e}),C.exports.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function nfe(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function rfe(e,t){const n=C.exports.useId();return C.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function N4(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=CT(n),a=CT(t),[s,l]=C.exports.useState(e.defaultIsOpen||!1),[u,h]=nfe(r,s),g=rfe(i,"disclosure"),m=C.exports.useCallback(()=>{u||l(!1),a?.()},[u,a]),v=C.exports.useCallback(()=>{u||l(!0),o?.()},[u,o]),b=C.exports.useCallback(()=>{(h?m:v)()},[h,v,m]);return{isOpen:!!h,onOpen:v,onClose:m,onToggle:b,isControlled:u,getButtonProps:(w={})=>({...w,"aria-expanded":h,"aria-controls":g,onClick:YQ(w.onClick,b)}),getDisclosureProps:(w={})=>({...w,hidden:!h,id:g})}}function x7(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var S7=Pe(function(t,n){const{htmlSize:r,...i}=t,o=Ri("Input",i),a=mn(i),s=g7(a),l=Nr("chakra-input",t.className);return re.createElement(we.input,{size:r,...s,__css:o.field,ref:n,className:l})});S7.displayName="Input";S7.id="Input";var[ife,sz]=Cn({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),ofe=Pe(function(t,n){const r=Ri("Input",t),{children:i,className:o,...a}=mn(t),s=Nr("chakra-input__group",o),l={},u=sb(i),h=r.field;u.forEach(m=>{!r||(h&&m.type.id==="InputLeftElement"&&(l.paddingStart=h.height??h.h),h&&m.type.id==="InputRightElement"&&(l.paddingEnd=h.height??h.h),m.type.id==="InputRightAddon"&&(l.borderEndRadius=0),m.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const g=u.map(m=>{var v,b;const w=x7({size:((v=m.props)==null?void 0:v.size)||t.size,variant:((b=m.props)==null?void 0:b.variant)||t.variant});return m.type.id!=="Input"?C.exports.cloneElement(m,w):C.exports.cloneElement(m,Object.assign(w,l,m.props))});return re.createElement(we.div,{className:s,ref:n,__css:{width:"100%",display:"flex",position:"relative"},...a},x(ife,{value:r,children:g}))});ofe.displayName="InputGroup";var afe={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},sfe=we("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),w7=Pe(function(t,n){const{placement:r="left",...i}=t,o=afe[r]??{},a=sz();return x(sfe,{ref:n,...i,__css:{...a.addon,...o}})});w7.displayName="InputAddon";var lz=Pe(function(t,n){return x(w7,{ref:n,placement:"left",...t,className:Nr("chakra-input__left-addon",t.className)})});lz.displayName="InputLeftAddon";lz.id="InputLeftAddon";var uz=Pe(function(t,n){return x(w7,{ref:n,placement:"right",...t,className:Nr("chakra-input__right-addon",t.className)})});uz.displayName="InputRightAddon";uz.id="InputRightAddon";var lfe=we("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),db=Pe(function(t,n){const{placement:
2022-11-13 11:56:09 +00:00
.`.concat(M0e,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(s,"px ").concat(r,`;
}
body {
overflow: hidden `).concat(r,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
padding-left: `.concat(i,`px;
padding-top: `).concat(o,`px;
padding-right: `).concat(a,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(s,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
}
.`).concat(E3,` {
right: `).concat(s,"px ").concat(r,`;
}
.`).concat(P3,` {
margin-right: `).concat(s,"px ").concat(r,`;
}
.`).concat(E3," .").concat(E3,` {
right: 0 `).concat(r,`;
}
.`).concat(P3," .").concat(P3,` {
margin-right: 0 `).concat(r,`;
}
body {
`).concat(O0e,": ").concat(s,`px;
}
`)},j0e=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,o=C.exports.useMemo(function(){return W0e(i)},[i]);return x(V0e,{styles:U0e(o,!t,i,n?"":"!important")})},P9=!1;if(typeof window<"u")try{var Ey=Object.defineProperty({},"passive",{get:function(){return P9=!0,!0}});window.addEventListener("test",Ey,Ey),window.removeEventListener("test",Ey,Ey)}catch{P9=!1}var wp=P9?{passive:!1}:!1,G0e=function(e){return e.tagName==="TEXTAREA"},TB=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!G0e(e)&&n[t]==="visible")},q0e=function(e){return TB(e,"overflowY")},K0e=function(e){return TB(e,"overflowX")},VT=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=AB(e,n);if(r){var i=IB(e,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Y0e=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Z0e=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},AB=function(e,t){return e==="v"?q0e(t):K0e(t)},IB=function(e,t){return e==="v"?Y0e(t):Z0e(t)},X0e=function(e,t){return e==="h"&&t==="rtl"?-1:1},Q0e=function(e,t,n,r,i){var o=X0e(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),u=!1,h=a>0,g=0,m=0;do{var v=IB(e,s),b=v[0],w=v[1],E=v[2],P=w-E-o*b;(b||P)&&AB(e,s)&&(g+=P,m+=b),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(h&&(i&&g===0||!i&&a>g)||!h&&(i&&m===0||!i&&-a>m))&&(u=!0),u},Py=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},UT=function(e){return[e.deltaX,e.deltaY]},jT=function(e){return e&&"current"in e?e.current:e},J0e=function(e,t){return e[0]===t[0]&&e[1]===t[1]},e1e=function(e){return`
2022-11-13 11:56:09 +00:00
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},t1e=0,Cp=[];function n1e(e){var t=C.exports.useRef([]),n=C.exports.useRef([0,0]),r=C.exports.useRef(),i=C.exports.useState(t1e++)[0],o=C.exports.useState(function(){return LB()})[0],a=C.exports.useRef(e);C.exports.useEffect(function(){a.current=e},[e]),C.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var w=d9([e.lockRef.current],(e.shards||[]).map(jT),!0).filter(Boolean);return w.forEach(function(E){return E.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),w.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=C.exports.useCallback(function(w,E){if("touches"in w&&w.touches.length===2)return!a.current.allowPinchZoom;var P=Py(w),k=n.current,L="deltaX"in w?w.deltaX:k[0]-P[0],I="deltaY"in w?w.deltaY:k[1]-P[1],O,R=w.target,D=Math.abs(L)>Math.abs(I)?"h":"v";if("touches"in w&&D==="h"&&R.type==="range")return!1;var z=VT(D,R);if(!z)return!0;if(z?O=D:(O=D==="v"?"h":"v",z=VT(D,R)),!z)return!1;if(!r.current&&"changedTouches"in w&&(L||I)&&(r.current=O),!O)return!0;var $=r.current||O;return Q0e($,E,w,$==="h"?L:I,!0)},[]),l=C.exports.useCallback(function(w){var E=w;if(!(!Cp.length||Cp[Cp.length-1]!==o)){var P="deltaY"in E?UT(E):Py(E),k=t.current.filter(function(O){return O.name===E.type&&O.target===E.target&&J0e(O.delta,P)})[0];if(k&&k.should){E.cancelable&&E.preventDefault();return}if(!k){var L=(a.current.shards||[]).map(jT).filter(Boolean).filter(function(O){return O.contains(E.target)}),I=L.length>0?s(E,L[0]):!a.current.noIsolation;I&&E.cancelable&&E.preventDefault()}}},[]),u=C.exports.useCallback(function(w,E,P,k){var L={name:w,delta:E,target:P,should:k};t.current.push(L),setTimeout(function(){t.current=t.current.filter(function(I){return I!==L})},1)},[]),h=C.exports.useCallback(function(w){n.current=Py(w),r.current=void 0},[]),g=C.exports.useCallback(function(w){u(w.type,UT(w),w.target,s(w,e.lockRef.current))},[]),m=C.exports.useCallback(function(w){u(w.type,Py(w),w.target,s(w,e.lockRef.current))},[]);C.exports.useEffect(function(){return Cp.push(o),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:m}),document.addEventListener("wheel",l,wp),document.addEventListener("touchmove",l,wp),document.addEventListener("touchstart",h,wp),function(){Cp=Cp.filter(function(w){return w!==o}),document.removeEventListener("wheel",l,wp),document.removeEventListener("touchmove",l,wp),document.removeEventListener("touchstart",h,wp)}},[]);var v=e.removeScrollBar,b=e.inert;return ee(Kn,{children:[b?x(o,{styles:e1e(i)}):null,v?x(j0e,{gapMode:"margin"}):null]})}const r1e=Dpe(PB,n1e);var MB=C.exports.forwardRef(function(e,t){return x(hb,{...hl({},e,{ref:t,sideCar:r1e})})});MB.classNames=hb.classNames;const OB=MB;var sh=(...e)=>e.filter(Boolean).join(" ");function Kg(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var i1e=class{modals;constructor(){this.modals=[]}add(e){this.modals.push(e)}remove(e){this.modals=this.modals.filter(t=>t!==e)}isTopModal(e){return this.modals[this.modals.length-1]===e}},L9=new i1e;function o1e(e,t){C.exports.useEffect(()=>(t&&L9.add(e),()=>{L9.remove(e)}),[t,e])}function a1e(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:a=!0,onOverlayClick:s,onEsc:l}=e,u=C.exports.useRef(null),h=C.exports.useRef(null),[g,m,v]=l1e(r,"chakra-modal","chakra-modal--header","chakra-modal--body");s1e(u,t&&a),o1e(u,t);const b=C.exports.useRef(null),w=C.exports.useCallback(z=>{b.current=z.target},[]),E=C.exports.useCallback(z=>{z.key==="Escape"&&(z.stopPropagation(),o&&n?.(),l?.())},[o,n,l]),[P,k]=C.exports.useState(!1),[L,I]=C.exports.useState(!1),O=C.exports.useCallback((z={},$=null)=>({role:"dialog",...z,ref:$n($,u),id:g,tabIndex:-1,"aria-modal":!0,"aria-labelledby":P?m:void 0,"aria-describedby":L?v:void 0,onClick:Kg(z.onClick,V=>V.stopPropagation())}),[v,L,g,m,P]),R=C.exports.useCallback(z=>{z.stopPropagation(),b.current===z.target&&(!L9.isTopModal(u)||(i&&n?.()
2022-11-13 11:56:09 +00: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.
*/var $0=C.exports;function gve(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mve=typeof Object.is=="function"?Object.is:gve,vve=$0.useState,yve=$0.useEffect,bve=$0.useLayoutEffect,xve=$0.useDebugValue;function Sve(e,t){var n=t(),r=vve({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return bve(function(){i.value=n,i.getSnapshot=t,s6(i)&&o({inst:i})},[e,n,t]),yve(function(){return s6(i)&&o({inst:i}),e(function(){s6(i)&&o({inst:i})})},[e]),xve(n),n}function s6(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!mve(e,n)}catch{return!0}}function wve(e,t){return t()}var Cve=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?wve:Sve;kF.useSyncExternalStore=$0.useSyncExternalStore!==void 0?$0.useSyncExternalStore:Cve;(function(e){e.exports=kF})(_F);var EF={exports:{}},PF={};/**
2022-11-13 11:56:09 +00: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.
*/var bb=C.exports,_ve=_F.exports;function kve(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Eve=typeof Object.is=="function"?Object.is:kve,Pve=_ve.useSyncExternalStore,Lve=bb.useRef,Tve=bb.useEffect,Ave=bb.useMemo,Ive=bb.useDebugValue;PF.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=Lve(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=Ave(function(){function l(v){if(!u){if(u=!0,h=v,v=r(v),i!==void 0&&a.hasValue){var b=a.value;if(i(b,v))return g=b}return g=v}if(b=g,Eve(h,v))return b;var w=r(v);return i!==void 0&&i(b,w)?b:(h=v,g=w)}var u=!1,h,g,m=n===void 0?null:n;return[function(){return l(t())},m===null?void 0:function(){return l(m())}]},[t,n,r,i]);var s=Pve(e,o[0],o[1]);return Tve(function(){a.hasValue=!0,a.value=s},[s]),Ive(s),s};(function(e){e.exports=PF})(EF);function Mve(e){e()}let LF=Mve;const Ove=e=>LF=e,Rve=()=>LF,ld=C.exports.createContext(null);function TF(){return C.exports.useContext(ld)}const Nve=()=>{throw new Error("uSES not initialized!")};let AF=Nve;const Dve=e=>{AF=e},zve=(e,t)=>e===t;function Bve(e=ld){const t=e===ld?TF:()=>C.exports.useContext(e);return function(r,i=zve){const{store:o,subscription:a,getServerState:s}=t(),l=AF(a.addNestedSub,o.getState,s||o.getState,r,i);return C.exports.useDebugValue(l),l}}const Fve=Bve();var $ve={exports:{}},On={};/**
2022-11-13 11:56:09 +00:00
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var p_=Symbol.for("react.element"),g_=Symbol.for("react.portal"),xb=Symbol.for("react.fragment"),Sb=Symbol.for("react.strict_mode"),wb=Symbol.for("react.profiler"),Cb=Symbol.for("react.provider"),_b=Symbol.for("react.context"),Hve=Symbol.for("react.server_context"),kb=Symbol.for("react.forward_ref"),Eb=Symbol.for("react.suspense"),Pb=Symbol.for("react.suspense_list"),Lb=Symbol.for("react.memo"),Tb=Symbol.for("react.lazy"),Wve=Symbol.for("react.offscreen"),IF;IF=Symbol.for("react.module.reference");function Va(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case p_:switch(e=e.type,e){case xb:case wb:case Sb:case Eb:case Pb:return e;default:switch(e=e&&e.$$typeof,e){case Hve:case _b:case kb:case Tb:case Lb:case Cb:return e;default:return t}}case g_:return t}}}On.ContextConsumer=_b;On.ContextProvider=Cb;On.Element=p_;On.ForwardRef=kb;On.Fragment=xb;On.Lazy=Tb;On.Memo=Lb;On.Portal=g_;On.Profiler=wb;On.StrictMode=Sb;On.Suspense=Eb;On.SuspenseList=Pb;On.isAsyncMode=function(){return!1};On.isConcurrentMode=function(){return!1};On.isContextConsumer=function(e){return Va(e)===_b};On.isContextProvider=function(e){return Va(e)===Cb};On.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===p_};On.isForwardRef=function(e){return Va(e)===kb};On.isFragment=function(e){return Va(e)===xb};On.isLazy=function(e){return Va(e)===Tb};On.isMemo=function(e){return Va(e)===Lb};On.isPortal=function(e){return Va(e)===g_};On.isProfiler=function(e){return Va(e)===wb};On.isStrictMode=function(e){return Va(e)===Sb};On.isSuspense=function(e){return Va(e)===Eb};On.isSuspenseList=function(e){return Va(e)===Pb};On.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===xb||e===wb||e===Sb||e===Eb||e===Pb||e===Wve||typeof e=="object"&&e!==null&&(e.$$typeof===Tb||e.$$typeof===Lb||e.$$typeof===Cb||e.$$typeof===_b||e.$$typeof===kb||e.$$typeof===IF||e.getModuleId!==void 0)};On.typeOf=Va;(function(e){e.exports=On})($ve);function Vve(){const e=Rve();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,o=n={callback:r,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const gA={notify(){},get:()=>[]};function Uve(e,t){let n,r=gA;function i(g){return l(),r.subscribe(g)}function o(){r.notify()}function a(){h.onStateChange&&h.onStateChange()}function s(){return Boolean(n)}function l(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=Vve())}function u(){n&&(n(),n=void 0,r.clear(),r=gA)}const h={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return h}const jve=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Gve=jve?C.exports.useLayoutEffect:C.exports.useEffect;function qve({store:e,context:t,children:n,serverState:r}){const i=C.exports.useMemo(()=>{const s=Uve(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0}},[e,r]),o=C.exports.useMemo(()=>e.getState(),[e]);return Gve(()=>{const{subscription:s}=i;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[i,o]),x((t||ld).Provider,{value:i,children:n})}function MF(e=ld){const t=e===ld?TF:()=>C.exports.useContext(e);return function(){const{store:r}=t();return r}}const Kve=MF();function Yve(e=ld){const t=e===ld?Kve:MF(e);return function(){return t().dispatch}}const Zve=Yve();Dve(EF.exports.useSyncExternalStoreWithSelector);Ove(Al.exports.unstable_batchedUpdates);var m_="persist:",OF="persist/FLUSH",v_="persist/REHYDRATE",RF="persist/PAUSE",NF="persist/PERSIST",DF="persist/PURGE",zF="persist/REGISTER",Xve=-1;function A3(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?A3=function(n){return typeof n}:A3=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symb
2022-11-13 11:56:09 +00:00
`;if(!(0,e.isString)(te)||te.length<1)throw new Error(`${G} Name (key) of reducer is required. ${W}`);if(!j||!j.length)return;const{duplicates:q,subsets:Q}=(0,e.findDuplicatesAndSubsets)(j);if(q.length>1)throw new Error(`${G} Duplicated paths.
${JSON.stringify(q)}
${W}`);if(Q.length>1)throw new Error(`${G} You are trying to persist an entire property and also some of its subset.
${JSON.stringify(Q)}
${W}`)};e.singleTransformValidator=z;const $=function(j){if(!(0,e.isArray)(j))return;const te=j?.map(ie=>ie.deepPersistKey).filter(ie=>ie)||[];if(te.length){const ie=te.filter((le,G)=>te.indexOf(le)!==G);if(ie.length)throw new Error(`${t.PACKAGE_NAME}: found duplicated keys in transforms creators. You can createWhitelist or createBlacklist for a specific root reducer key only once. Duplicated keys among createWhitelist and createBlacklist transforms are not allowed.
Duplicates: ${JSON.stringify(ie)}`)}};e.transformsValidator=$;const V=function({whitelist:j,blacklist:te}){if(j&&j.length&&te&&te.length)throw new Error(`${t.PACKAGE_NAME}: you should not define a whitelist and blacklist in parallel. It is allowed to use only one of these lists per config.`);if(j){const{duplicates:ie,subsets:le}=(0,e.findDuplicatesAndSubsets)(j);(0,e.throwError)({duplicates:ie,subsets:le},"whitelist")}if(te){const{duplicates:ie,subsets:le}=(0,e.findDuplicatesAndSubsets)(te);(0,e.throwError)({duplicates:ie,subsets:le},"blacklist")}};e.configValidator=V;const Y=function({duplicates:j,subsets:te},ie){if(j.length)throw new Error(`${t.PACKAGE_NAME}: duplicates of paths found in your ${ie}.
${JSON.stringify(j)}`);if(te.length)throw new Error(`${t.PACKAGE_NAME}: subsets of some parent keys found in your ${ie}. You must decide if you want to persist an entire path or its specific subset.
${JSON.stringify(te)}`)};e.throwError=Y;const de=function(j){return(0,e.isArray)(j)?j.filter(e.unique).reduce((te,ie)=>{const le=ie.split("."),G=le[0],W=le.slice(1).join(".")||void 0,q=te.filter(X=>Object.keys(X)[0]===G)[0],Q=q?Object.values(q)[0]:void 0;return q||te.push({[G]:W?[W]:void 0}),q&&!Q&&W&&(q[G]=[W]),q&&Q&&W&&Q.push(W),te},[]):[]};e.getRootKeysGroup=de})(HF);(function(e){var t=gs&&gs.__rest||function(g,m){var v={};for(var b in g)Object.prototype.hasOwnProperty.call(g,b)&&m.indexOf(b)<0&&(v[b]=g[b]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,b=Object.getOwnPropertySymbols(g);w<b.length;w++)m.indexOf(b[w])<0&&Object.prototype.propertyIsEnumerable.call(g,b[w])&&(v[b[w]]=g[b[w]]);return v};Object.defineProperty(e,"__esModule",{value:!0}),e.getPersistConfig=e.getTransforms=e.createBlacklist=e.createWhitelist=e.autoMergeDeep=void 0;const n=HF,r=Jf,i=x_,o=function(g,m,v={}){const b=v.whitelist||null,w=v.blacklist||null;function E(P){return!!(b&&b.indexOf(P)===-1||w&&w.indexOf(P)!==-1)}return{in:(P,k,L)=>!E(k)&&g?g(P,k,L):P,out:(P,k,L)=>!E(k)&&m?m(P,k,L):P,deepPersistKey:b&&b[0]}},a=(g,m,v,{debug:b,whitelist:w,blacklist:E,transforms:P})=>{if(w||E)throw new Error("State reconciler autoMergeDeep uses custom transforms instead of old whitelist or blacklist config properties. Please use createWhitelist or createBlacklist transforms.");(0,n.transformsValidator)(P);const k=(0,n.cloneDeep)(v);let L=g;if(L&&(0,n.isObjectLike)(L)){const I=(0,n.difference)(m,v);(0,n.isEmpty)(I)||(L=(0,n.mergeDeep)(g,I,{preserveUndefined:!0}),b&&console.log(`${r.PACKAGE_NAME}/autoMergeDeep: sub state of your state was modified by reducer during rehydration. Values from reducer will be kept: ${JSON.stringify(I)}`)),Object.keys(L).forEach(O=>{if(O!=="_persist"){if((0,n.isObjectLike)(k[O])){k[O]=(0,n.mergeDeep)(k[O],L[O]);return}k[O]=L[O]}})}return b&&L&&(0,n.isObjectLike)(L)&&console.log(`${r.PACKAGE_NAME}/autoMergeDeep: rehydrated keys ${JSON.stringify(L)}`),k};e.autoMergeDeep=a;const s=(g,m)=>((0,n.singleTransformValidator)(m,g,i.ConfigType.WHITELIST),o(v=>{if(!m||!m.length)return v;let b=null,w;return m.forEach(E=>{const P=E.split(".");w=(0,n.path)(v,P),typeof w>"u"&&(0,n.isIntegerString)(P[P.length-1])&&(w=r.PLACEHOLDER_UNDEFINED);const k=(0,n.assocPath)(P,w),L=(0,n.isArray)(k)?[]:{};b=(0,n.mergeDeep)(b||L,k,{preservePlaceholder:!0})}),b||v},v=>(0,n.preserveUndefined)(v,m,i.ConfigType.WHITELIST),{whitelist:[g]}));e.createWhitelist=s;const l=(g,m)=>((0,n.singleTransformValidator)(m,g,i.ConfigType.BLACKLIST),o(v=>{if(!m||!m.length)return;const b=(0,n.preserveUndefined)(v,m,i.ConfigType.BLACKLIST,!0);return m.map(E=>E.split(".")).reduce((E,P)=>(0,n.dissocPath)(E,P),b)},v=>(0,n.preserveUndefined)(v,m,i.ConfigType.BLACKLIST),{whitelist:[g]}));e.createBlacklist=l;const u=function(g,m){return m.map(v=>{const b=Object.keys(v)[0],w=v[b];return g===i.ConfigType.WHITELIST?(0,e.createWhitelist)(b,w):(0,e.createBlacklist)(b,w)})};e.getTransforms=u;const h=g=>{var{key:m,whitelist:v,blacklist:b,storage:w,transforms:E,rootReducer:P}=g,k=t(g,["key","whitelist","blacklist","storage","transforms","rootReducer"]);(0,n.configValidator)({whitelist:v,blacklist:b});const L=(0,n.getRootKeysGroup)(v),I=(0,n.getRootKeysGroup)(b),O=Object.keys(P(void 0,{type:""})),R=L.map(de=>Object.keys(de)[0]),D=I.map(de=>Object.keys(de)[0]),z=O.filter(de=>R.indexOf(de)===-1&&D.indexOf(de)===-1),$=(0,e.getTransforms)(i.ConfigType.WHITELIST,L),V=(0,e.getTransforms)(i.ConfigType.BLACKLIST,I),Y=(0,n.isArray)(v)?z.map(de=>(0,e.createBlacklist)(de)):[];return Object.assign(Object.assign({},k),{key:m,storage:w,transforms:[...$,...V,...Y,...E||[]],stateReconciler:e.autoMergeDeep})};e.getPersistConfig=h})($F);const M3=e=>e.length===1?e[0].prompt:e.map(t=>`${t.prompt}:${t.weight}`).join(" "),P2e=e=>{const r=e.split(",").map(i=>i.split(":")).map(i=>({seed:Number(i[0]),weight:Number(i[1])}));return S_(r)?r:!1},S_=e=>Boolean(typeof e=="string"?P2e(e):e.length&&!e.some(t=>{const{seed:n,weight:r}=t,i=!isNaN(parseInt(n.toString(),10)),o=!isNaN(parseInt(r.toString(),10)
2022-11-13 11:56:09 +00:00
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,h="__lodash_placeholder__",g=1,m=2,v=4,b=1,w=2,E=1,P=2,k=4,L=8,I=16,O=32,R=64,D=128,z=256,$=512,V=30,Y="...",de=800,j=16,te=1,ie=2,le=3,G=1/0,W=9007199254740991,q=17976931348623157e292,Q=0/0,X=4294967295,me=X-1,ye=X>>>1,Se=[["ary",D],["bind",E],["bindKey",P],["curry",L],["curryRight",I],["flip",$],["partial",O],["partialRight",R],["rearg",z]],He="[object Arguments]",je="[object Array]",ct="[object AsyncFunction]",qe="[object Boolean]",dt="[object Date]",Xe="[object DOMException]",it="[object Error]",It="[object Function]",wt="[object GeneratorFunction]",Te="[object Map]",ft="[object Number]",Mt="[object Null]",ut="[object Object]",xt="[object Promise]",kn="[object Proxy]",Et="[object RegExp]",Zt="[object Set]",En="[object String]",yn="[object Symbol]",Me="[object Undefined]",et="[object WeakMap]",Xt="[object WeakSet]",qt="[object ArrayBuffer]",Ee="[object DataView]",At="[object Float32Array]",Ne="[object Float64Array]",at="[object Int8Array]",sn="[object Int16Array]",Dn="[object Int32Array]",Fe="[object Uint8Array]",gt="[object Uint8ClampedArray]",nt="[object Uint16Array]",Nt="[object Uint32Array]",Qt=/\b__p \+= '';/g,Qn=/\b(__p \+=) '' \+/g,uo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,pi=/&(?:amp|lt|gt|quot|#39);/g,As=/[&<>"']/g,l1=RegExp(pi.source),ga=RegExp(As.source),xh=/<%-([\s\S]+?)%>/g,u1=/<%([\s\S]+?)%>/g,Iu=/<%=([\s\S]+?)%>/g,Sh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wh=/^\w*$/,Ro=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pd=/[\\^$.*+?()[\]{}|]/g,c1=RegExp(Pd.source),Mu=/^\s+/,Ld=/\s/,d1=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Is=/\{\n\/\* \[wrapped with (.+)\] \*/,Ou=/,? & /,f1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,h1=/[()=,{}\[\]\/\s]/,p1=/\\(\\)?/g,g1=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ua=/\w*$/,m1=/^[-+]0x[0-9a-f]+$/i,v1=/^0b[01]+$/i,y1=/^\[object .+?Constructor\]$/,b1=/^0o[0-7]+$/i,x1=/^(?:0|[1-9]\d*)$/,S1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ms=/($^)/,w1=/['\n\r\u2028\u2029\\]/g,ja="\\ud800-\\udfff",Rl="\\u0300-\\u036f",Nl="\\ufe20-\\ufe2f",Os="\\u20d0-\\u20ff",Dl=Rl+Nl+Os,Ch="\\u2700-\\u27bf",Ru="a-z\\xdf-\\xf6\\xf8-\\xff",Rs="\\xac\\xb1\\xd7\\xf7",No="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Pn="\\u2000-\\u206f",bn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Do="A-Z\\xc0-\\xd6\\xd8-\\xde",kr="\\ufe0e\\ufe0f",Ur=Rs+No+Pn+bn,zo="['\u2019]",Ns="["+ja+"]",jr="["+Ur+"]",Ga="["+Dl+"]",Td="\\d+",zl="["+Ch+"]",qa="["+Ru+"]",Ad="[^"+ja+Ur+Td+Ch+Ru+Do+"]",gi="\\ud83c[\\udffb-\\udfff]",_h="(?:"+Ga+"|"+gi+")",kh="[^"+ja+"]",Id="(?:\\ud83c[\\udde6-\\uddff]){2}",Ds="[\\ud800-\\udbff][\\udc00-\\udfff]",co="["+Do+"]",zs="\\u200d",Bl="(?:"+qa+"|"+Ad+")",C1="(?:"+co+"|"+Ad+")",Nu="(?:"+zo+"(?:d|ll|m|re|s|t|ve))?",Du="(?:"+zo+"(?:D|LL|M|RE|S|T|VE))?",Md=_h+"?",zu="["+kr+"]?",ma="(?:"+zs+"(?:"+[kh,Id,Ds].join("|")+")"+zu+Md+")*",Od="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Fl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ht=zu+Md+ma,Eh="(?:"+[zl,Id,Ds].join("|")+")"+Ht,Bu="(?:"+[kh+Ga+"?",Ga,Id,Ds,Ns].join("|")+")",Fu=RegExp(zo,"g"),Ph=RegExp(Ga,"g"),Bo=RegExp(gi+"(?="+gi+")|"+Bu+Ht,"g"),Wn=RegExp([co+"?"+qa+"+"+Nu+"(?="+[jr,co,"$"].join("|")+")",C1+"+"+Du+"(?="+[jr,co+Bl,"$"].join("|")+")",co+"?"+Bl+"+"+Nu,co+"+"+Du,Fl,Od,Td,Eh].join("|"),"g"),Rd=RegExp("["+zs+ja+Dl+kr+"]"),Lh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Nd=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Th=-1,ln={};ln[
2022-11-13 11:56:09 +00:00
/* [wrapped with `+p+`] */
`)}function LV(c){return Rt(c)||hf(c)||!!(N1&&c&&c[N1])}function Yl(c,p){var S=typeof c;return p=p??W,!!p&&(S=="number"||S!="symbol"&&x1.test(c))&&c>-1&&c%1==0&&c<p}function Qi(c,p,S){if(!lr(S))return!1;var A=typeof p;return(A=="number"?xo(S)&&Yl(p,S.length):A=="string"&&p in S)?rs(S[p],c):!1}function _x(c,p){if(Rt(c))return!1;var S=typeof c;return S=="number"||S=="symbol"||S=="boolean"||c==null||Yo(c)?!0:wh.test(c)||!Sh.test(c)||p!=null&&c in un(p)}function TV(c){var p=typeof c;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?c!=="__proto__":c===null}function kx(c){var p=be(c),S=B[p];if(typeof S!="function"||!(p in Ut.prototype))return!1;if(c===S)return!0;var A=ue(S);return!!A&&c===A[0]}function AV(c){return!!qu&&qu in c}var IV=Jn?Zl:Wx;function fg(c){var p=c&&c.constructor,S=typeof p=="function"&&p.prototype||xn;return c===S}function ck(c){return c===c&&!lr(c)}function dk(c,p){return function(S){return S==null?!1:S[c]===p&&(p!==n||c in un(S))}}function MV(c){var p=B2(c,function(A){return S.size===u&&S.clear(),A}),S=p.cache;return p}function OV(c,p){var S=c[1],A=p[1],N=S|A,F=N<(E|P|D),K=A==D&&S==L||A==D&&S==z&&c[7].length<=p[8]||A==(D|z)&&p[7].length<=p[8]&&S==L;if(!(F||K))return c;A&E&&(c[2]=p[2],N|=S&E?0:k);var J=p[3];if(J){var ce=c[3];c[3]=ce?M2(ce,J,p[4]):J,c[4]=ce?Ho(c[3],h):p[4]}return J=p[5],J&&(ce=c[5],c[5]=ce?sg(ce,J,p[6]):J,c[6]=ce?Ho(c[5],h):p[6]),J=p[7],J&&(c[7]=J),A&D&&(c[8]=c[8]==null?p[8]:Kr(c[8],p[8])),c[9]==null&&(c[9]=p[9]),c[0]=p[0],c[1]=N,c}function RV(c){var p=[];if(c!=null)for(var S in un(c))p.push(S);return p}function NV(c){return zh.call(c)}function fk(c,p,S){return p=vr(p===n?c.length-1:p,0),function(){for(var A=arguments,N=-1,F=vr(A.length-p,0),K=ve(F);++N<F;)K[N]=A[p+N];N=-1;for(var J=ve(p+1);++N<p;)J[N]=A[N];return J[p]=S(K),mi(c,this,J)}}function hk(c,p){return p.length<2?c:Us(c,Ar(p,0,-1))}function DV(c,p){for(var S=c.length,A=Kr(p.length,S),N=wi(c);A--;){var F=p[A];c[A]=Yl(F,S)?N[F]:n}return c}function Ex(c,p){if(!(p==="constructor"&&typeof c[p]=="function")&&p!="__proto__")return c[p]}var pk=mk(af),hg=Yd||function(c,p){return mt.setTimeout(c,p)},Px=mk(ip);function gk(c,p,S){var A=p+"";return Px(c,PV(A,zV(_V(A),S)))}function mk(c){var p=0,S=0;return function(){var A=D1(),N=j-(A-S);if(S=A,N>0){if(++p>=de)return arguments[0]}else p=0;return c.apply(n,arguments)}}function R2(c,p){var S=-1,A=c.length,N=A-1;for(p=p===n?A:p;++S<p;){var F=rf(S,N),K=c[F];c[F]=c[S],c[S]=K}return c.length=p,c}var vk=MV(function(c){var p=[];return c.charCodeAt(0)===46&&p.push(""),c.replace(Ro,function(S,A,N,F){p.push(N?F.replace(p1,"$1"):A||S)}),p});function el(c){if(typeof c=="string"||Yo(c))return c;var p=c+"";return p=="0"&&1/c==-G?"-0":p}function ff(c){if(c!=null){try{return or.call(c)}catch{}try{return c+""}catch{}}return""}function zV(c,p){return Vn(Se,function(S){var A="_."+S[0];p&S[1]&&!Ni(c,A)&&c.push(A)}),c.sort()}function yk(c){if(c instanceof Ut)return c.clone();var p=new Ki(c.__wrapped__,c.__chain__);return p.__actions__=wi(c.__actions__),p.__index__=c.__index__,p.__values__=c.__values__,p}function BV(c,p,S){(S?Qi(c,p,S):p===n)?p=1:p=vr(Dt(p),0);var A=c==null?0:c.length;if(!A||p<1)return[];for(var N=0,F=0,K=ve(Zd(A/p));N<A;)K[F++]=Ar(c,N,N+=p);return K}function FV(c){for(var p=-1,S=c==null?0:c.length,A=0,N=[];++p<S;){var F=c[p];F&&(N[A++]=F)}return N}function $V(){var c=arguments.length;if(!c)return[];for(var p=ve(c-1),S=arguments[0],A=c;A--;)p[A-1]=arguments[A];return ya(Rt(S)?wi(S):[S],Lr(p,1))}var HV=Ct(function(c,p){return Ir(c)?sc(c,Lr(p,1,Ir,!0)):[]}),WV=Ct(function(c,p){var S=Ca(p);return Ir(S)&&(S=n),Ir(c)?sc(c,Lr(p,1,Ir,!0),Le(S,2)):[]}),VV=Ct(function(c,p){var S=Ca(p);return Ir(S)&&(S=n),Ir(c)?sc(c,Lr(p,1,Ir,!0),n,S):[]});function UV(c,p,S){var A=c==null?0:c.length;return A?(p=S||p===n?1:Dt(p),Ar(c,p<0?0:p,A)):[]}function jV(c,p,S){var A=c==null?0:c.length;return A?(p=S||p===n?1:Dt(p),p=A-p,Ar(c,0,p<0?0:p)):[]}function GV(c,p){return c&&c.length?pc(c,Le(p,3),!0,!0):[]}function qV(c,p){return c&&c.length?pc(c,Le(p,3),!0):[]}function KV(c,p,S,A){var N=c==null?0:c.length;return N?(S&&ty
2022-11-13 11:56:09 +00:00
`;c.replace(Ge,function(bt,Gt,en,Zo,Ji,Xo){return en||(en=Zo),Ae+=c.slice(_e,Xo).replace(w1,$s),Gt&&(J=!0,Ae+=`' +
__e(`+Gt+`) +
'`),Ji&&(ce=!0,Ae+=`';
`+Ji+`;
__p += '`),en&&(Ae+=`' +
((__t = (`+en+`)) == null ? '' : __t) +
'`),_e=Xo+bt.length,bt}),Ae+=`';
`;var yt=tn.call(p,"variable")&&p.variable;if(!yt)Ae=`with (obj) {
`+Ae+`
}
`;else if(h1.test(yt))throw new _t(s);Ae=(ce?Ae.replace(Qt,""):Ae).replace(Qn,"$1").replace(uo,"$1;"),Ae="function("+(yt||"obj")+`) {
`+(yt?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(J?", __e = _.escape":"")+(ce?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Ae+`return __p
}`;var $t=Zk(function(){return Jt(F,ht+"return "+Ae).apply(n,K)});if($t.source=Ae,Mx($t))throw $t;return $t}function rq(c){return Sn(c).toLowerCase()}function iq(c){return Sn(c).toUpperCase()}function oq(c,p,S){if(c=Sn(c),c&&(S||p===n))return qi(c);if(!c||!(p=Zi(p)))return c;var A=Di(c),N=Di(p),F=$o(A,N),K=Ka(A,N)+1;return ts(A,F,K).join("")}function aq(c,p,S){if(c=Sn(c),c&&(S||p===n))return c.slice(0,A1(c)+1);if(!c||!(p=Zi(p)))return c;var A=Di(c),N=Ka(A,Di(p))+1;return ts(A,0,N).join("")}function sq(c,p,S){if(c=Sn(c),c&&(S||p===n))return c.replace(Mu,"");if(!c||!(p=Zi(p)))return c;var A=Di(c),N=$o(A,Di(p));return ts(A,N).join("")}function lq(c,p){var S=V,A=Y;if(lr(p)){var N="separator"in p?p.separator:N;S="length"in p?Dt(p.length):S,A="omission"in p?Zi(p.omission):A}c=Sn(c);var F=c.length;if(Hl(c)){var K=Di(c);F=K.length}if(S>=F)return c;var J=S-ba(A);if(J<1)return A;var ce=K?ts(K,0,J).join(""):c.slice(0,J);if(N===n)return ce+A;if(K&&(J+=ce.length-J),Ox(N)){if(c.slice(J).search(N)){var _e,ke=ce;for(N.global||(N=jd(N.source,Sn(Ua.exec(N))+"g")),N.lastIndex=0;_e=N.exec(ke);)var Ae=_e.index;ce=ce.slice(0,Ae===n?J:Ae)}}else if(c.indexOf(Zi(N),J)!=J){var Ge=ce.lastIndexOf(N);Ge>-1&&(ce=ce.slice(0,Ge))}return ce+A}function uq(c){return c=Sn(c),c&&l1.test(c)?c.replace(pi,c2):c}var cq=Js(function(c,p,S){return c+(S?" ":"")+p.toUpperCase()}),Dx=fp("toUpperCase");function Yk(c,p,S){return c=Sn(c),p=S?n:p,p===n?Rh(c)?Ud(c):P1(c):c.match(p)||[]}var Zk=Ct(function(c,p){try{return mi(c,n,p)}catch(S){return Mx(S)?S:new _t(S)}}),dq=er(function(c,p){return Vn(p,function(S){S=el(S),Uo(c,S,Ax(c[S],c))}),c});function fq(c){var p=c==null?0:c.length,S=Le();return c=p?Bn(c,function(A){if(typeof A[1]!="function")throw new vi(a);return[S(A[0]),A[1]]}):[],Ct(function(A){for(var N=-1;++N<p;){var F=c[N];if(mi(F[0],this,A))return mi(F[1],this,A)}})}function hq(c){return Uh(ii(c,g))}function zx(c){return function(){return c}}function pq(c,p){return c==null||c!==c?p:c}var gq=cg(),mq=cg(!0);function wo(c){return c}function Bx(c){return sr(typeof c=="function"?c:ii(c,g))}function vq(c){return dc(ii(c,g))}function yq(c,p){return Gs(c,ii(p,g))}var bq=Ct(function(c,p){return function(S){return Ja(S,c,p)}}),xq=Ct(function(c,p){return function(S){return Ja(c,S,p)}});function Fx(c,p,S){var A=li(p),N=Kh(p,A);S==null&&!(lr(p)&&(N.length||!A.length))&&(S=p,p=c,c=this,N=Kh(p,li(p)));var F=!(lr(S)&&"chain"in S)||!!S.chain,K=Zl(c);return Vn(N,function(J){var ce=p[J];c[J]=ce,K&&(c.prototype[J]=function(){var _e=this.__chain__;if(F||_e){var ke=c(this.__wrapped__),Ae=ke.__actions__=wi(this.__actions__);return Ae.push({func:ce,args:arguments,thisArg:c}),ke.__chain__=_e,ke}return ce.apply(c,ya([this.value()],arguments))})}),c}function Sq(){return mt._===this&&(mt._=M1),this}function $x(){}function wq(c){return c=Dt(c),Ct(function(p){return fc(p,c)})}var Cq=dg(Bn),_q=dg(zn),kq=dg($u);function Xk(c){return _x(c)?Fs(el(c)):es(c)}function Eq(c){return function(p){return c==null?n:Us(c,p)}}var Pq=y(),Lq=y(!0);function Hx(){return[]}function Wx(){return!1}function Tq(){return{}}function Aq(){return""}function Iq(){return!0}function Mq(c,p){if(c=Dt(c),c<1||c>W)return[];var S=X,A=Kr(c,X);p=Le(p),c-=X;for(var N=Hd(A,p);++S<c;)p(S);return N}function Oq(c){return Rt(c)?Bn(c,el):Yo(c)?[c]:wi(vk(Sn(c)))}function Rq(c){var p=++Gd;return Sn(c)+p}var Nq=hp(function(c,p){return c+p},0),Dq=M("ceil"),zq=hp(function(c,p){return c/p},1),Bq=M("floor");function Fq(c){return c&&c.length?br(c,wo,Yh):n}function $q(c,p){return c&&c.length?br(c,Le(p,2),Yh):n}function Hq(c){return Bd(c,wo)}function Wq(c,p){return Bd(c,Le(p,2))}function Vq(c){return c&&c.length?br(c,wo,js):n}function Uq(c,p){return c&&c.length?br(c,Le(p,2),js):n}var jq=hp(function(c,p){return c*p},1),Gq=M("round"),qq=hp(function(c,p){return c-p},0);function Kq(c){return c&&c.length?$d(c,wo):0}function Yq(c,p){return c&&c.length?$d(c,Le(p,2)):0}return B.after=vj,B.ary=Lk,B.assign=iG,B.assignIn=Wk,B.assignInWith=W2,B.assignWith=oG,B.at=aG,B.before=Tk,B.bind=Ax,B.bindAll=dq,B.bindKey=Ak,B.castArray=Tj,B.chain=kk,B.chunk=BV,B.compact
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,s=o!==Lp&&o!==void 0,l=a!==Lp&&a!==void 0,u=this.padding(),h=o-u*2,g=a-u*2,m=0,v=this.wrap(),b=v!==EI,w=v!==t9e&&b,E=this.ellipsis();this.textArr=[],A6().font=this._getContextFont();for(var P=E?this._getTextWidth(T6):0,k=0,L=t.length;k<L;++k){var I=t[k],O=this._getTextWidth(I);if(s&&O>h)for(;I.length>0;){for(var R=0,D=I.length,z="",$=0;R<D;){var V=R+D>>>1,Y=I.slice(0,V+1),de=this._getTextWidth(Y)+P;de<=h?(R=V+1,z=Y,$=de):D=V}if(z){if(w){var j,te=I[z.length],ie=te===Ky||te===_I;ie&&$<=h?j=z.length:j=Math.max(z.lastIndexOf(Ky),z.lastIndexOf(_I))+1,j>0&&(R=j,z=z.slice(0,R),$=this._getTextWidth(z))}z=z.trimRight(),this._addTextLine(z),r=Math.max(r,$),m+=i;var le=this._shouldHandleEllipsis(m);if(le){this._tryToAddEllipsisToLastLine();break}if(I=I.slice(R),I=I.trimLeft(),I.length>0&&(O=this._getTextWidth(I),O<=h)){this._addTextLine(I),m+=i,r=Math.max(r,O);break}}else break}else this._addTextLine(I),m+=i,r=Math.max(r,O),this._shouldHandleEllipsis(m)&&k<L-1&&this._tryToAddEllipsisToLastLine();if(l&&m+i>g)break;this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0)}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(t){var n=+this.fontSize(),r=this.lineHeight()*n,i=this.attrs.height,o=i!==Lp&&i!==void 0,a=this.padding(),s=i-a*2,l=this.wrap(),u=l!==EI;return!u||o&&t+r>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==Lp&&t!==void 0,r=this.padding(),i=t-r*2,o=this.ellipsis(),a=this.textArr[this.textArr.length-1];if(!(!a||!o)){if(n){var s=this._getTextWidth(a.text+T6)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+T6)}}getStrokeScaleEnabled(){return!0}}pr.prototype._fillFunc=i9e;pr.prototype._strokeFunc=o9e;pr.prototype.className=Ywe;pr.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];gr(pr);Z.overWriteSetter(pr,"width",Y_());Z.overWriteSetter(pr,"height",Y_());Z.addGetterSetter(pr,"fontFamily","Arial");Z.addGetterSetter(pr,"fontSize",12,ze());Z.addGetterSetter(pr,"fontStyle",hW);Z.addGetterSetter(pr,"fontVariant",hW);Z.addGetterSetter(pr,"padding",0,ze());Z.addGetterSetter(pr,"align",fW);Z.addGetterSetter(pr,"verticalAlign",Zwe);Z.addGetterSetter(pr,"lineHeight",1,ze());Z.addGetterSetter(pr,"wrap",e9e);Z.addGetterSetter(pr,"ellipsis",!1,Ls());Z.addGetterSetter(pr,"letterSpacing",0,ze());Z.addGetterSetter(pr,"text","",o1());Z.addGetterSetter(pr,"textDecoration","");var s9e="",gW="normal";function mW(e){e.fillText(this.partialText,0,0)}function vW(e){e.strokeText(this.partialText,0,0)}class ti extends Ie{constructor(t){super(t),this.dummyCanvas=fe.createCanvasElement(),this.dataArray=[],this.dataArray=Nn.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){this.dataArray=Nn.parsePathData(this.attrs.data),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();var n=this.textDecoration(),r=this.fill(),i=this.fontSize(),o=this.glyphInfo;n==="underline"&&t.beginPath();for(var a=0;a<o.length;a++){t.save();var s=o[a].p0;t.translate(s.x,s.y),t.rotate(o[a].rotation),this.partialText=o[a].text,t.fillStrokeShape(this),n==="underline"&&(a===0&&t.moveTo(0,i/2+1),t.lineTo(i,i/2+1)),t.restore()}n==="underline"&&(t.strokeStyle=r,t.lineWidth=i/20,t.stroke()),t.restore()}_hitFunc(t){t.beginPath();var n=this.glyphInfo;if(n.length>=1){var r=n[0].p0;t.moveTo(r.x,r.y)}for(var i=0;i<n.length;i++){var o=n[i].p1;t.lineTo(o.x,o.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return fe.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),t
2022-11-13 11:56:09 +00:00
* @license React
* react-reconciler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var q9e=function(t){var n={},r=C.exports,i=Yp.exports,o=Object.assign;function a(d){for(var f="https://reactjs.org/docs/error-decoder.html?invariant="+d,y=1;y<arguments.length;y++)f+="&args[]="+encodeURIComponent(arguments[y]);return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,l=Symbol.for("react.element"),u=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),b=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),O=Symbol.iterator;function R(d){return d===null||typeof d!="object"?null:(d=O&&d[O]||d["@@iterator"],typeof d=="function"?d:null)}function D(d){if(d==null)return null;if(typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case h:return"Fragment";case u:return"Portal";case m:return"Profiler";case g:return"StrictMode";case E:return"Suspense";case P:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case b:return(d.displayName||"Context")+".Consumer";case v:return(d._context.displayName||"Context")+".Provider";case w:var f=d.render;return d=d.displayName,d||(d=f.displayName||f.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case k:return f=d.displayName||null,f!==null?f:D(d.type)||"Memo";case L:f=d._payload,d=d._init;try{return D(d(f))}catch{}}return null}function z(d){var f=d.type;switch(d.tag){case 24:return"Cache";case 9:return(f.displayName||"Context")+".Consumer";case 10:return(f._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return d=f.render,d=d.displayName||d.name||"",f.displayName||(d!==""?"ForwardRef("+d+")":"ForwardRef");case 7:return"Fragment";case 5:return f;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return D(f);case 8:return f===g?"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 f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f}return null}function $(d){var f=d,y=d;if(d.alternate)for(;f.return;)f=f.return;else{d=f;do f=d,(f.flags&4098)!==0&&(y=f.return),d=f.return;while(d)}return f.tag===3?y:null}function V(d){if($(d)!==d)throw Error(a(188))}function Y(d){var f=d.alternate;if(!f){if(f=$(d),f===null)throw Error(a(188));return f!==d?null:d}for(var y=d,_=f;;){var T=y.return;if(T===null)break;var M=T.alternate;if(M===null){if(_=T.return,_!==null){y=_;continue}break}if(T.child===M.child){for(M=T.child;M;){if(M===y)return V(T),d;if(M===_)return V(T),f;M=M.sibling}throw Error(a(188))}if(y.return!==_.return)y=T,_=M;else{for(var H=!1,se=T.child;se;){if(se===y){H=!0,y=T,_=M;break}if(se===_){H=!0,_=T,y=M;break}se=se.sibling}if(!H){for(se=M.child;se;){if(se===y){H=!0,y=M,_=T;break}if(se===_){H=!0,_=M,y=T;break}se=se.sibling}if(!H)throw Error(a(189))}}if(y.alternate!==_)throw Error(a(190))}if(y.tag!==3)throw Error(a(188));return y.stateNode.current===y?d:f}function de(d){return d=Y(d),d!==null?j(d):null}function j(d){if(d.tag===5||d.tag===6)return d;for(d=d.child;d!==null;){var f=j(d);if(f!==null)return f;d=d.sibling}return null}function te(d){if(d.tag===5||d.tag===6)return d;for(d=d.child;d!==null;){if(d.tag!==4){var f=te(d);if(f!==null)return f}d=d.sibling}return null}var ie=Array.isArray,le=t.getPublicInstance,G=t.getRootHostContext,W=t.getChildHostContext,q=t.prepareForCommit,Q=t.resetAfterCommit,X=t.createInstance,me=t.appendInitialChild,ye=t.finalizeInitialChildren,Se=t.prepareUpdate,He=t.shouldSetTextContent,je=t.createTextInstance,ct=t.scheduleTimeout,qe=t.cancelTimeout,dt=t.noTimeout,Xe=t.isPrimaryRenderer,it=t.supportsMutation,It=t.supportsP
`+Rl+d}var Os=!1;function Dl(d,f){if(!d||Os)return"";Os=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(f)if(f=function(){throw Error()},Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(Re){var _=Re}Reflect.construct(d,[],f)}else{try{f.call()}catch(Re){_=Re}d.call(f.prototype)}else{try{throw Error()}catch(Re){_=Re}d()}}catch(Re){if(Re&&_&&typeof Re.stack=="string"){for(var T=Re.stack.split(`
`),M=_.stack.split(`
`),H=T.length-1,se=M.length-1;1<=H&&0<=se&&T[H]!==M[se];)se--;for(;1<=H&&0<=se;H--,se--)if(T[H]!==M[se]){if(H!==1||se!==1)do if(H--,se--,0>se||T[H]!==M[se]){var he=`
`+T[H].replace(" at new "," at ");return d.displayName&&he.includes("<anonymous>")&&(he=he.replace("<anonymous>",d.displayName)),he}while(1<=H&&0<=se);break}}}finally{Os=!1,Error.prepareStackTrace=y}return(d=d?d.displayName||d.name:"")?Nl(d):""}var Ch=Object.prototype.hasOwnProperty,Ru=[],Rs=-1;function No(d){return{current:d}}function Pn(d){0>Rs||(d.current=Ru[Rs],Ru[Rs]=null,Rs--)}function bn(d,f){Rs++,Ru[Rs]=d.current,d.current=f}var Do={},kr=No(Do),Ur=No(!1),zo=Do;function Ns(d,f){var y=d.type.contextTypes;if(!y)return Do;var _=d.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===f)return _.__reactInternalMemoizedMaskedChildContext;var T={},M;for(M in y)T[M]=f[M];return _&&(d=d.stateNode,d.__reactInternalMemoizedUnmaskedChildContext=f,d.__reactInternalMemoizedMaskedChildContext=T),T}function jr(d){return d=d.childContextTypes,d!=null}function Ga(){Pn(Ur),Pn(kr)}function Td(d,f,y){if(kr.current!==Do)throw Error(a(168));bn(kr,f),bn(Ur,y)}function zl(d,f,y){var _=d.stateNode;if(f=f.childContextTypes,typeof _.getChildContext!="function")return y;_=_.getChildContext();for(var T in _)if(!(T in f))throw Error(a(108,z(d)||"Unknown",T));return o({},y,_)}function qa(d){return d=(d=d.stateNode)&&d.__reactInternalMemoizedMergedChildContext||Do,zo=kr.current,bn(kr,d),bn(Ur,Ur.current),!0}function Ad(d,f,y){var _=d.stateNode;if(!_)throw Error(a(169));y?(d=zl(d,f,zo),_.__reactInternalMemoizedMergedChildContext=d,Pn(Ur),Pn(kr),bn(kr,d)):Pn(Ur),bn(Ur,y)}var gi=Math.clz32?Math.clz32:Id,_h=Math.log,kh=Math.LN2;function Id(d){return d>>>=0,d===0?32:31-(_h(d)/kh|0)|0}var Ds=64,co=4194304;function zs(d){switch(d&-d){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return d&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return d&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return d}}function Bl(d,f){var y=d.pendingLanes;if(y===0)return 0;var _=0,T=d.suspendedLanes,M=d.pingedLanes,H=y&268435455;if(H!==0){var se=H&~T;se!==0?_=zs(se):(M&=H,M!==0&&(_=zs(M)))}else H=y&~T,H!==0?_=zs(H):M!==0&&(_=zs(M));if(_===0)return 0;if(f!==0&&f!==_&&(f&T)===0&&(T=_&-_,M=f&-f,T>=M||T===16&&(M&4194240)!==0))return f;if((_&4)!==0&&(_|=y&16),f=d.entangledLanes,f!==0)for(d=d.entanglements,f&=_;0<f;)y=31-gi(f),T=1<<y,_|=d[y],f&=~T;return _}function C1(d,f){switch(d){case 1:case 2:case 4:return f+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return f+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Nu(d,f){for(var y=d.suspendedLanes,_=d.pingedLanes,T=d.expirationTimes,M=d.pendingLanes;0<M;){var H=31-gi(M),se=1<<H,he=T[H];he===-1?((se&y)===0||(se&_)!==0)&&(T[H]=C1(se,f)):he<=f&&(d.expiredLanes|=se),M&=~se}}function Du(d){return d=d.pendingLanes&-1073741825,d!==0?d:d&1073741824?1073741824:0}function Md(){var d=Ds;return Ds<<=1,(Ds&4194240)===0&&(Ds=64),d}function zu(d){for(var f=[],y=0;31>y;y++)f.push(d);return f}function ma(d,f,y){d.pendingLanes|=f,f!==536870912&&(d.suspendedLanes=0,d.pingedLanes=0),d=d.eventTimes,f=31-gi(f),d[f]=y}function Od(d,f){var y=d.pendingLanes&~f;d.pendingLanes=f,d.suspendedLanes=0,d.pingedLanes=0,d.expiredLanes&=f,d.mutableReadLanes&=f,d.entangledLanes&=f,f=d.entanglements;var _=d.eventTimes;for(d=d.expirationTimes;0<y;){var T=31-gi(y),M=1<<T;f[T]=0,_[T]=-1,d[T]=-1,y&=~M}}function Fl(d,f){var y=d.entangledLanes|=f;for(d=d.entanglements;y;){var _=31-gi(y),T=1<<_;T&f|d[_]&f&&(d[_]|=f),y&=~T}}var Ht=0;function Eh(d){return d&=-d,1<d?4<d?(d&268435455)!==0?16:536870912:4:1}var Bu=i.unstable_scheduleCallback,Fu
2022-11-13 11:56:09 +00:00
Error generating stack: `+M.message+`
`+M.stack}return{value:d,source:f,stack:T,digest:null}}function $1(d,f,y){return{value:d,source:null,stack:y??null,digest:f??null}}function ic(d,f){try{console.error(f.value)}catch(y){setTimeout(function(){throw y})}}var Qd=typeof WeakMap=="function"?WeakMap:Map;function H1(d,f,y){y=Ya(-1,y),y.tag=3,y.payload={element:null};var _=f.value;return y.callback=function(){nf||(nf=!0,rf=_),ic(d,f)},y}function B(d,f,y){y=Ya(-1,y),y.tag=3;var _=d.type.getDerivedStateFromError;if(typeof _=="function"){var T=f.value;y.payload=function(){return _(T)},y.callback=function(){ic(d,f)}}var M=d.stateNode;return M!==null&&typeof M.componentDidCatch=="function"&&(y.callback=function(){ic(d,f),typeof _!="function"&&(Ks===null?Ks=new Set([this]):Ks.add(this));var H=f.stack;this.componentDidCatch(f.value,{componentStack:H!==null?H:""})}),y}function Ul(d,f,y){var _=d.pingCache;if(_===null){_=d.pingCache=new Qd;var T=new Set;_.set(f,T)}else T=_.get(f),T===void 0&&(T=new Set,_.set(f,T));T.has(y)||(T.add(y),d=I2.bind(null,d,f,y),f.then(d,d))}function Jd(d){do{var f;if((f=d.tag===13)&&(f=d.memoizedState,f=f!==null?f.dehydrated!==null:!0),f)return d;d=d.return}while(d!==null);return null}function Ki(d,f,y,_,T){return(d.mode&1)===0?(d===f?d.flags|=65536:(d.flags|=128,y.flags|=131072,y.flags&=-52805,y.tag===1&&(y.alternate===null?y.tag=17:(f=Ya(-1,1),f.tag=2,$s(y,f,1))),y.lanes|=1),d):(d.flags|=65536,d.lanes=T,d)}var Ut=s.ReactCurrentOwner,zi=!1;function bi(d,f,y,_){f.child=d===null?d2(f,null,y,_):ju(f,d.child,y,_)}function b2(d,f,y,_,T){y=y.render;var M=f.ref;return Vu(f,T),_=O1(d,f,y,_,M,T),y=Ku(),d!==null&&!zi?(f.updateQueue=d.updateQueue,f.flags&=-2053,d.lanes&=~T,Xa(d,f,T)):(zn&&y&&mi(f),f.flags|=1,bi(d,f,_,T),f.child)}function Ws(d,f,y,_,T){if(d===null){var M=y.type;return typeof M=="function"&&!lg(M)&&M.defaultProps===void 0&&y.compare===null&&y.defaultProps===void 0?(f.tag=15,f.type=M,x2(d,f,M,_,T)):(d=lf(y.type,null,_,f,f.mode,T),d.ref=f.ref,d.return=f,f.child=d)}if(M=d.child,(d.lanes&T)===0){var H=M.memoizedProps;if(y=y.compare,y=y!==null?y:$l,y(H,_)&&d.ref===f.ref)return Xa(d,f,T)}return f.flags|=1,d=Xi(M,_),d.ref=f.ref,d.return=f,f.child=d}function x2(d,f,y,_,T){if(d!==null){var M=d.memoizedProps;if($l(M,_)&&d.ref===f.ref)if(zi=!1,f.pendingProps=_=M,(d.lanes&T)!==0)(d.flags&131072)!==0&&(zi=!0);else return f.lanes=d.lanes,Xa(d,f,T)}return W1(d,f,y,_,T)}function S2(d,f,y){var _=f.pendingProps,T=_.children,M=d!==null?d.memoizedState:null;if(_.mode==="hidden")if((f.mode&1)===0)f.memoizedState={baseLanes:0,cachePool:null,transitions:null},bn(js,Yi),Yi|=y;else{if((y&1073741824)===0)return d=M!==null?M.baseLanes|y:y,f.lanes=f.childLanes=1073741824,f.memoizedState={baseLanes:d,cachePool:null,transitions:null},f.updateQueue=null,bn(js,Yi),Yi|=d,null;f.memoizedState={baseLanes:0,cachePool:null,transitions:null},_=M!==null?M.baseLanes:y,bn(js,Yi),Yi|=_}else M!==null?(_=M.baseLanes|y,f.memoizedState=null):_=y,bn(js,Yi),Yi|=_;return bi(d,f,T,y),f.child}function w2(d,f){var y=f.ref;(d===null&&y!==null||d!==null&&d.ref!==y)&&(f.flags|=512,f.flags|=2097152)}function W1(d,f,y,_,T){var M=jr(y)?zo:kr.current;return M=Ns(f,M),Vu(f,T),y=O1(d,f,y,_,M,T),_=Ku(),d!==null&&!zi?(f.updateQueue=d.updateQueue,f.flags&=-2053,d.lanes&=~T,Xa(d,f,T)):(zn&&_&&mi(f),f.flags|=1,bi(d,f,y,T),f.child)}function C2(d,f,y,_,T){if(jr(y)){var M=!0;qa(f)}else M=!1;if(Vu(f,T),f.stateNode===null)Sa(d,f),l2(f,y,_),T1(f,y,_,T),_=!0;else if(d===null){var H=f.stateNode,se=f.memoizedProps;H.props=se;var he=H.context,Re=y.contextType;typeof Re=="object"&&Re!==null?Re=qi(Re):(Re=jr(y)?zo:kr.current,Re=Ns(f,Re));var tt=y.getDerivedStateFromProps,Lt=typeof tt=="function"||typeof H.getSnapshotBeforeUpdate=="function";Lt||typeof H.UNSAFE_componentWillReceiveProps!="function"&&typeof H.componentWillReceiveProps!="function"||(se!==_||he!==Re)&&u2(f,H,_,Re),Ka=!1;var Ye=f.memoizedState;H.state=Ye,Rh(f,_,H,T),he=f.memoizedState,se!==_||Ye!==he||Ur.current||Ka?(typeof tt=="function"&&(Dh(f,y,tt,_),he=f.memoizedState),(se=Ka||Vd(f,y,se,_,Ye,he,Re))?(Lt||typeof H.UNSAFE_componentWillMount!="function"&
2022-11-13 11:56:09 +00:00
`+(_.join(" > ")+`
No matching component was found for:
`)+d.join(" > ")}return null},n.getPublicRootInstance=function(d){if(d=d.current,!d.child)return null;switch(d.child.tag){case 5:return le(d.child.stateNode);default:return d.child.stateNode}},n.injectIntoDevTools=function(d){if(d={bundleType:d.bundleType,version:d.version,rendererPackageName:d.rendererPackageName,rendererConfig:d.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:hp,findFiberByHostInstance:d.findFiberByHostInstance||dg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")d=!1;else{var f=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(f.isDisabled||!f.supportsFiber)d=!0;else{try{ln=f.inject(d),Wt=f}catch{}d=!!f.checkDCE}}return d},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(d,f,y,_){if(!Et)throw Error(a(363));d=J1(d,f);var T=qt(d,y,_).disconnect;return{disconnect:function(){T()}}},n.registerMutableSourceForHydration=function(d,f){var y=f._getVersion;y=y(f._source),d.mutableSourceEagerHydrationData==null?d.mutableSourceEagerHydrationData=[f,y]:d.mutableSourceEagerHydrationData.push(f,y)},n.runWithPriority=function(d,f){var y=Ht;try{return Ht=d,f()}finally{Ht=y}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(d,f,y,_){var T=f.current,M=ai(),H=Ar(T);return y=ug(y),f.context===null?f.context=y:f.pendingContext=y,f=Ya(M,H),f.payload={element:d},_=_===void 0?null:_,_!==null&&(f.callback=_),d=$s(T,f,H),d!==null&&(yo(d,T,H,M),Oh(d,T,H)),H},n};(function(e){e.exports=q9e})(xW);const K9e=A8(xW.exports);var ek={exports:{}},bh={};/**
2022-11-13 11:56:09 +00:00
* @license React
* react-reconciler-constants.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.
*/bh.ConcurrentRoot=1;bh.ContinuousEventPriority=4;bh.DefaultEventPriority=16;bh.DiscreteEventPriority=1;bh.IdleEventPriority=536870912;bh.LegacyRoot=0;(function(e){e.exports=bh})(ek);const AI={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let II=!1,MI=!1;const tk=".react-konva-event",Y9e=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.
2022-11-13 11:56:09 +00:00
Position of a node will be changed during drag&drop, so you should update state of the react app as well.
Consider to add onDragMove or onDragEnd events.
For more info see: https://github.com/konvajs/react-konva/issues/256
`,Z9e=`ReactKonva: You are using "zIndex" attribute for a Konva node.
react-konva may get confused with ordering. Just define correct order of elements in your render function of a component.
For more info see: https://github.com/konvajs/react-konva/issues/194
`,X9e={};function ux(e,t,n=X9e){if(!II&&"zIndex"in t&&(console.warn(Z9e),II=!0),!MI&&t.draggable){var r=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn(Y9e),MI=!0)}for(var o in n)if(!AI[o]){var a=o.slice(0,2)==="on",s=n[o]!==t[o];if(a&&s){var l=o.substr(2).toLowerCase();l.substr(0,7)==="content"&&(l="content"+l.substr(7,1).toUpperCase()+l.substr(8)),e.off(l,n[o])}var u=!t.hasOwnProperty(o);u&&e.setAttr(o,void 0)}var h=t._useStrictMode,g={},m=!1;const v={};for(var o in t)if(!AI[o]){var a=o.slice(0,2)==="on",b=n[o]!==t[o];if(a&&b){var l=o.substr(2).toLowerCase();l.substr(0,7)==="content"&&(l="content"+l.substr(7,1).toUpperCase()+l.substr(8)),t[o]&&(v[l]=t[o])}!a&&(t[o]!==n[o]||h&&t[o]!==e.getAttr(o))&&(m=!0,g[o]=t[o])}m&&(e.setAttrs(g),Ed(e));for(var l in v)e.on(l+tk,v[l])}function Ed(e){if(!ot.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const SW={},Q9e={};eh.Node.prototype._applyProps=ux;function J9e(e,t){if(typeof t=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${t}`);return}e.add(t),Ed(e)}function e8e(e,t,n){let r=eh[e];r||(console.error(`Konva has no node with the type ${e}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${e}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),r=eh.Group);const i={},o={};for(var a in t){var s=a.slice(0,2)==="on";s?o[a]=t[a]:i[a]=t[a]}const l=new r(i);return ux(l,o),l}function t8e(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function n8e(e,t,n){return!1}function r8e(e){return e}function i8e(){return null}function o8e(){return null}function a8e(e,t,n,r){return Q9e}function s8e(){}function l8e(e){}function u8e(e,t){return!1}function c8e(){return SW}function d8e(){return SW}const f8e=setTimeout,h8e=clearTimeout,p8e=-1;function g8e(e,t){return!1}const m8e=!1,v8e=!0,y8e=!0;function b8e(e,t){t.parent===e?t.moveToTop():e.add(t),Ed(e)}function x8e(e,t){t.parent===e?t.moveToTop():e.add(t),Ed(e)}function wW(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),Ed(e)}function S8e(e,t,n){wW(e,t,n)}function w8e(e,t){t.destroy(),t.off(tk),Ed(e)}function C8e(e,t){t.destroy(),t.off(tk),Ed(e)}function _8e(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function k8e(e,t,n){}function E8e(e,t,n,r,i){ux(e,i,r)}function P8e(e){e.hide(),Ed(e)}function L8e(e){}function T8e(e,t){(t.visible==null||t.visible)&&e.show()}function A8e(e,t){}function I8e(e){}function M8e(){}const O8e=()=>ek.exports.DefaultEventPriority,R8e=Object.freeze(Object.defineProperty({__proto__:null,appendInitialChild:J9e,createInstance:e8e,createTextInstance:t8e,finalizeInitialChildren:n8e,getPublicInstance:r8e,prepareForCommit:i8e,preparePortalMount:o8e,prepareUpdate:a8e,resetAfterCommit:s8e,resetTextContent:l8e,shouldDeprioritizeSubtree:u8e,getRootHostContext:c8e,getChildHostContext:d8e,scheduleTimeout:f8e,cancelTimeout:h8e,noTimeout:p8e,shouldSetTextContent:g8e,isPrimaryRenderer:m8e,warnsIfNotActing:v8e,supportsMutation:y8e,appendChild:b8e,appendChildToContainer:x8e,insertBefore:wW,insertInContainerBefore:S8e,removeChild:w8e,removeChildFromContainer:C8e,commitTextUpdate:_8e,commitMount:k8e,commitUpdate:E8e,hideInstance:P8e,hideTextInstance:L8e,unhideInstance:T8e,unhideTextInstance:A8e,clearContainer:I8e,detachDeletedInstance:M8e,getCurrentEventPriority:O8e,now:Yp.exports.unstable_now,idlePriority:Yp.exports.unstable_IdlePriority,run:Yp.exports.unstable_runWithPriority},Symbol.toStringTag,{value:"Module"}));var N8e=Object.defineProperty,D8e=Object.defineProperties,z8e=Object.getOwnPropertyDescriptors,OI=Object.getOwnPropertySymbols,B8e=Object.prototype.hasOwnProperty,F8e=Object.prototype.propertyIsEnumerable,RI=(e,t,n)=>t in e?N8e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,NI=(e,t)=>{for(var n in t||(t={}))B8e.call(t,n)&&RI(e,n,t[n]);if(OI)
2022-11-13 11:56:09 +00:00
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="60px" height="60px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
<g transform="matrix(0.5,0,0,0.5,0,0)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,2.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,7.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,10)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,12.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,15)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,17.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,20)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,22.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,25)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,27.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,30)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-2.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-7.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-10)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-12.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-15)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-17.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-20)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-22.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-25)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-27.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-30)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
</svg>`.replaceAll("black",e),iCe=e=>{const{...t}=e,{maskColorString:n,stageCoordinates:r,stageDimensions:i,stageScale:o}=Ce(rCe),[a,s]=C.exports.useState(null),[l,u]=C.exports.useState(0),h=C.exports.useRef(null),g=C.exports.useCallback(()=>{u(l+1),setTimeout(g,500)},[l]);return C.exports.useEffect(()=>{if(a)return;const m=new Image;m.onload=()=>{s(m)},m.src=zI(n)},[a,n]),C.exports.useEffect(()=>{!a||(a.src=zI(n))},[a,n]),C.exports.useEffect(()=>{const m=setInterval(()=>u(v=>(v+1)%5),50);return()=>clearInterval(m)},[]),a&&r.x!==void 0&&r.y!==void 0&&o!==void 0&&i.width!==void 0&&i.height!==void 0?x(w0,{ref:h,offsetX:r.x/o,offsetY:r.y/o,height:i.height/o,width:i.width/o,fillPatternImage:a,fillPatternOffsetY:isNaN(l)?0:l,fillPatternRepeat:"repeat",fillPatternScale:{x:1/o,y:1/o},listening:!0,globalCompositeOperation:"source-in",...t}):null},oCe=.999,aCe=.1,sCe=20,lCe=Qe([vn,jt],(e,t)=>{const{isMoveStageKeyHeld:n,stageScale:r}=t;return{isMoveStageKeyHeld:n,stageScale:r,activeTabName:e}},{memoizeOptions:{resultEqualityCheck:Ve.isEqual}}),uCe=e=>{const t=$e(),{isMoveStageKeyHeld:n,stageScale:r,activeTabName:i}=Ce(lCe);return C.exports.useCallback(o=>{if(i!=="outpainting"||(o.evt.preventDefault(),!e.current||n))return;const a=e.current.getPointerPosition();if(!a)return;const s={x:(a.x-e.current.x())/r,y:(a.y-e.current.y())/r};let l=o.evt.deltaY;o.evt.ctrlKey&&(l=-l);const u=Ve.clamp(r*oCe**l,aCe,sCe),h={x:a.x-s.x*u,y:a.y-s.y*u};t(I$(u)),t(R$(h))},[i,t,n,e,r])},cx=e=>{const t=e.getPointerPosition(),n=e.getAbsoluteTransform().copy();if(!t||!n)return;const r=n.invert().point(t);return{x:Math.floor(r.x),y:Math.floor(r.y)}},cCe=Qe([vn,jt,ku],(e,t,n)=>{const{tool:r}=t;return{tool:r,activeTabName:e,isStaging:n}},{memoizeOptions:{resultEqualityCheck:Ve.isEqual}}),dCe=e=>{const t=$e(),{tool:n,isStaging:r}=Ce(cCe);return C.exports.useCallback(i=>{if(!e.current)return;if(e.current.container().focus(),n==="move"||r){t(Z4(!0));return}const o=cx(e.current);!o||(i.evt.preventDefault(),t(Gb(!0)),t(C$([o.x,o.y])))},[e,n,r,t])},fCe=Qe([vn,jt,ku],(e,t,n)=>{const{tool:r,isDrawing:i}=t;return{tool:r,isDrawing:i,activeTabName:e,isStaging:n}},{memoizeOptions:{resultEqualityCheck:Ve.isEqual}}),hCe=(e,t)=>{const n=$e(),{tool:r,isDrawing:i,isStaging:o}=Ce(fCe);return C.exports.useCallback(()=>{if(r==="move"||o){n(Z4(!1));return}if(!t.current&&i&&e.current){const a=cx(e.current);if(!a)return;n(_$([a.x,a.y]))}else t.current=!1;n(Gb(!1))},[t,n,i,o,e,r])},pCe=Qe([vn,jt,ku],(e,t,n)=>{const{tool:r,isDrawing:i}=t;return{tool:r,isDrawing:i,activeTabName:e,isStaging:n}},{memoizeOptions:{resultEqualityCheck:Ve.isEqual}}),gCe=(e,t,n)=>{const r=$e(),{isDrawing:i,tool:o,isStaging:a}=Ce(pCe);return C.exports.useCallback(()=>{if(!e.current)return;const s=cx(e.current);!s||(r(T$(s)),n.current=s,!(!i||o==="move"||a)&&(t.current=!0,r(_$([s.x,s.y]))))},[t,r,i,a,n,e,o])},mCe=Qe([vn,jt,ku],(e,t,n)=>{const{tool:r}=t;return{tool:r,activeTabName:e,isStaging:n}},{memoizeOptions:{resultEqualityCheck:Ve.isEqual}}),vCe=e=>{const t=$e(),{tool:n,isStaging:r}=Ce(mCe);return C.exports.useCallback(i=>{if(i.evt.buttons!==1||!e.current)return;const o=cx(e.current);!o||n==="move"||r||(t(Gb(!0)),t(C$([o.x,o.y])))},[e,n,r,t])},yCe=()=>{const e=$e();return C.exports.useCallback(()=>{e(T$(null)),e(Gb(!1))},[e])},bCe=Qe([jt,ku,vn],(e,t,n)=>{const{tool:r}=e;return{tool:r,isStaging:t,activeTabName:n}},{memoizeOptions:{resultEqualityCheck:Ve.isEqual}}),xCe=()=>{const e=$e(),{tool:t,activeTabName:n,isStaging:r}=Ce(bCe);return{handleDragStart:C.exports.useCallback(()=>{!(t==="move"||r)||e(Z4(!0))},[e,r,t]),handleDragMove:C.exports.useCallback(i=>{!(t==="move"||r)||e(R$(i.target.getPosition()))},[e,r,t]),handleDragEnd:C.exports.useCallback(()=>{!(t==="move"||r)||e(Z4(!1))},[e,r,t])}};var vf=C.exports,SCe=function(t,n,r){const i=vf.useRef("loading"),o=vf.useRef(),[a,s]=vf.useState(0),l=vf.useRef(),u=vf.useRef(),h=vf.useRef();return(l.current!==t||u.current!==n||h.current!==r)&&(i.current="loading",o.current=void 0,l.current=t,u.current=n,h.current=r),vf.useLayoutEffect(function(){if(!t)return;var g
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hke(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pke(e){if(Array.isArray(e))return E8(e)}function QI(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 JI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QI(Object(n),!0).forEach(function(r){fV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _v(e,t){return vke(e)||mke(e,t)||hV(e,t)||gke()}function gke(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hV(e,t){if(!!e){if(typeof e=="string")return E8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E8(e,t)}}function E8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mke(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function vke(e){if(Array.isArray(e))return e}var yke="file-invalid-type",bke="file-too-large",xke="file-too-small",Ske="too-many-files",wke=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:yke,message:"File type must be ".concat(n)}},eM=function(t){return{code:bke,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},tM=function(t){return{code:xke,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Cke={code:Ske,message:"Too many files"};function pV(e,t){var n=e.type==="application/x-moz-file"||dke(e,t);return[n,n?null:wke(t)]}function gV(e,t,n){if(Lf(e.size))if(Lf(t)&&Lf(n)){if(e.size>n)return[!1,eM(n)];if(e.size<t)return[!1,tM(t)]}else{if(Lf(t)&&e.size<t)return[!1,tM(t)];if(Lf(n)&&e.size>n)return[!1,eM(n)]}return[!0,null]}function Lf(e){return e!=null}function _ke(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles,s=e.validator;return!o&&t.length>1||o&&a>=1&&t.length>a?!1:t.every(function(l){var u=pV(l,n),h=_v(u,1),g=h[0],m=gV(l,r,i),v=_v(m,1),b=v[0],w=s?s(l):null;return g&&b&&!w})}function s5(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function t3(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function nM(e){e.preventDefault()}function kke(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Eke(e){return e.indexOf("Edge/")!==-1}function Pke(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return kke(e)||Eke(e)}function ol(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return t.some(function(s){return!s5(r)&&s&&s.apply(void 0,[r].concat(o)),s5(r)})}}function Lke(){return"showOpenFilePicker"in window}function Tke(e){if(Lf(e)){var t=Object.entries(e).filter(function(n){var r=_v(n,2),i=r[0],o=r[1],a=!0;return mV(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(o)||!o.every(vV))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=_v(r,2),o=i[0],a=i[1];return JI(JI({},n),{},fV({},o,a))},{});return[{description:"Files",accept:t}]}return e}function Ake(e){if(Lf(e))return Object.entries(e).reduce(function(t,n){var r=_v(n,2),i=r[0],o=r[1];return[].concat(XI(t),[i],XI(o))},[]).filter(function(t){return mV(t)||vV(t)}).join(",")}function Ike(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function Mke(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function mV(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function vV(e){return/^.*\.[\w]+$/.test(e)}var Oke=["children"],Rke=["open"],Nke=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","o
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fke(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $ke(e){if(Array.isArray(e))return P8(e)}function O6(e,t){return Vke(e)||Wke(e,t)||yV(e,t)||Hke()}function Hke(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yV(e,t){if(!!e){if(typeof e=="string")return P8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P8(e,t)}}function P8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wke(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function Vke(e){if(Array.isArray(e))return e}function rM(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 ur(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rM(Object(n),!0).forEach(function(r){L8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function L8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l5(e,t){if(e==null)return{};var n=Uke(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function Uke(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}var sk=C.exports.forwardRef(function(e,t){var n=e.children,r=l5(e,Oke),i=xV(r),o=i.open,a=l5(i,Rke);return C.exports.useImperativeHandle(t,function(){return{open:o}},[o]),x(C.exports.Fragment,{children:n(ur(ur({},a),{},{open:o}))})});sk.displayName="Dropzone";var bV={disabled:!1,getFilesFromEvent:nke,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};sk.defaultProps=bV;sk.propTypes={children:Rn.exports.func,accept:Rn.exports.objectOf(Rn.exports.arrayOf(Rn.exports.string)),multiple:Rn.exports.bool,preventDropOnDocument:Rn.exports.bool,noClick:Rn.exports.bool,noKeyboard:Rn.exports.bool,noDrag:Rn.exports.bool,noDragEventsBubbling:Rn.exports.bool,minSize:Rn.exports.number,maxSize:Rn.exports.number,maxFiles:Rn.exports.number,disabled:Rn.exports.bool,getFilesFromEvent:Rn.exports.func,onFileDialogCancel:Rn.exports.func,onFileDialogOpen:Rn.exports.func,useFsAccessApi:Rn.exports.bool,autoFocus:Rn.exports.bool,onDragEnter:Rn.exports.func,onDragLeave:Rn.exports.func,onDragOver:Rn.exports.func,onDrop:Rn.exports.func,onDropAccepted:Rn.exports.func,onDropRejected:Rn.exports.func,onError:Rn.exports.func,validator:Rn.exports.func};var T8={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function xV(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ur(ur({},bV),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,u=t.onDragEnter,h=t.onDragLeave,g=t.onDragOver,m=t.onDrop,v=t.onDropAccepted,b=t.onDropRejected,w=t.onFileDialogCancel,E=t.onFileDialogOpen,P=t.useFsAccessApi,k=t.autoFocus,L=t.preventDropOnDocument,I=t.noClick,O=t.noKeyboard,R=t.noDrag,D=t.noDragEventsBubbling,z=t.onError,$=t.validator,V=C.exports.useMemo(function(){return Ake(n)},[n]),Y=C.exports.useMemo(function(){return Tke(n)},[n]),de=C.exports.useMemo(function(){return typeof E=="function"?E:iM},[E]),j=C.exports.useMemo(function(){return typeof w=="function"?w:iM},[w]),te=C.exports.useRef(null),ie=C.exports.useRef(null),le=C.exp
`+I.message,"");i({title:"Upload failed",description:k,status:"error",isClosable:!0})},[i]),l=C.exports.useCallback(P=>{a(!0);const k={file:P};["img2img","inpainting","outpainting"].includes(r)&&(k.destination=r),n(MA(k))},[n,r]),u=C.exports.useCallback((P,k)=>{k.forEach(L=>{s(L)}),P.forEach(L=>{l(L)})},[l,s]),{getRootProps:h,getInputProps:g,isDragAccept:m,isDragReject:v,isDragActive:b,open:w}=xV({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:u,onDragOver:()=>a(!0),maxFiles:1});C.exports.useEffect(()=>{const P=k=>{const L=k.clipboardData?.items;if(!L)return;const I=[];for(const D of L)D.kind==="file"&&["image/png","image/jpg"].includes(D.type)&&I.push(D);if(!I.length)return;if(k.stopImmediatePropagation(),I.length>1){i({description:"Multiple images pasted, may only upload one image at a time",status:"error",isClosable:!0});return}const O=I[0].getAsFile();if(!O){i({description:"Unable to load file",status:"error",isClosable:!0});return}const R={file:O};["img2img","inpainting"].includes(r)&&(R.destination=r),n(MA(R))};return document.addEventListener("paste",P),()=>{document.removeEventListener("paste",P)}},[n,i,r]);const E=["img2img","inpainting"].includes(r)?` to ${Pf[r].tooltip}`:"";return x(D_.Provider,{value:w,children:ee("div",{...h({style:{}}),onKeyDown:P=>{P.key},children:[x("input",{...g()}),t,b&&o&&x(Gke,{isDragAccept:m,isDragReject:v,overlaySecondaryText:E,setIsHandlingUpload:a})]})})},Kke=()=>{const e=$e(),t=Ce(r=>r.gallery.shouldPinGallery);return x(pt,{tooltip:"Show Gallery (G)",tooltipProps:{placement:"top"},"aria-label":"Show Gallery",styleClass:"floating-show-hide-button right show-hide-button-gallery",onClick:()=>{e(b0(!0)),t&&e(Cr(!0))},children:x(f$,{})})};function Yke(e){return lt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M32 384h272v32H32zM400 384h80v32h-80zM384 447.5c0 17.949-14.327 32.5-32 32.5-17.673 0-32-14.551-32-32.5v-95c0-17.949 14.327-32.5 32-32.5 17.673 0 32 14.551 32 32.5v95z"}},{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M32 240h80v32H32zM208 240h272v32H208zM192 303.5c0 17.949-14.327 32.5-32 32.5-17.673 0-32-14.551-32-32.5v-95c0-17.949 14.327-32.5 32-32.5 17.673 0 32 14.551 32 32.5v95z"}}]},{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M32 96h272v32H32zM400 96h80v32h-80zM384 159.5c0 17.949-14.327 32.5-32 32.5-17.673 0-32-14.551-32-32.5v-95c0-17.949 14.327-32.5 32-32.5 17.673 0 32 14.551 32 32.5v95z"}}]}]})(e)}const Zke=Qe(e=>e.options,e=>{const{shouldPinOptionsPanel:t,shouldShowOptionsPanel:n}=e;return{shouldPinOptionsPanel:t,shouldShowProcessButtons:!t||!n}},{memoizeOptions:{resultEqualityCheck:Ve.isEqual}}),Xke=()=>{const e=$e(),{shouldShowProcessButtons:t,shouldPinOptionsPanel:n}=Ce(Zke);return ee("div",{className:"show-hide-button-options",children:[x(pt,{tooltip:"Show Options Panel (O)",tooltipProps:{placement:"top"},"aria-label":"Show Options Panel",onClick:()=>{e(C0(!0)),n&&setTimeout(()=>e(Cr(!0)),400)},children:x(Yke,{})}),t&&ee(Kn,{children:[x(B$,{iconButton:!0}),x($$,{}),x(F$,{})]})]})};Q_e();const Qke=Qe([e=>e.gallery,e=>e.options,e=>e.system,vn],(e,t,n,r)=>{const{shouldShowGallery:i,shouldHoldGalleryOpen:o,shouldPinGallery:a}=e,{shouldShowOptionsPanel:s,shouldHoldOptionsPanelOpen:l,shouldPinOptionsPanel:u}=t,h=Ve.reduce(n.model_list,(v,b,w)=>(b.status==="active"&&(v=w),v),""),g=!(i||o&&!a)&&["txt2img","img2img","inpainting","outpainting"].includes(r),m=!(s||l&&!u)&&["txt2img","img2img","inpainting","outpainting"].includes(r);return{modelStatusText:h,shouldShowGalleryButton:g,shouldShowOptionsPanelButton:m}},{memoizeOptions:{resultEqualityCheck:Ve.isEqual}}),Jke=()=>{const{shouldShowGalleryButton:e,shouldShowOptionsPanelButton:t}=Ce(Qke);return x("div",{className:"App",children:ee(qke,{children:[x(D_e,{}),ee("div",{className:"app-content",children:[x(K_e,{}),x(i7e,{})]}),x("div",{className:"app-console",children:x(X_e,{})}),e&&x(Kke,{}),t&&x(Xke,{})]})})};const SV=v2e(lV),wV=IR({key:"invokeai-style-cache",prepend:!0});U3.createRoot(document.getElementById("root")).render(x(re.StrictMode,{children:x(qve,{store:lV,c