mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
624 lines
1.3 MiB
JavaScript
624 lines
1.3 MiB
JavaScript
|
function Xq(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 bs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Q7(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var C={exports:{}},Xt={};/**
|
||
|
* @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 qv=Symbol.for("react.element"),Zq=Symbol.for("react.portal"),Qq=Symbol.for("react.fragment"),Jq=Symbol.for("react.strict_mode"),eK=Symbol.for("react.profiler"),tK=Symbol.for("react.provider"),nK=Symbol.for("react.context"),rK=Symbol.for("react.forward_ref"),iK=Symbol.for("react.suspense"),oK=Symbol.for("react.memo"),aK=Symbol.for("react.lazy"),AE=Symbol.iterator;function sK(e){return e===null||typeof e!="object"?null:(e=AE&&e[AE]||e["@@iterator"],typeof e=="function"?e:null)}var tR={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},nR=Object.assign,rR={};function u1(e,t,n){this.props=e,this.context=t,this.refs=rR,this.updater=n||tR}u1.prototype.isReactComponent={};u1.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")};u1.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function iR(){}iR.prototype=u1.prototype;function J7(e,t,n){this.props=e,this.context=t,this.refs=rR,this.updater=n||tR}var e9=J7.prototype=new iR;e9.constructor=J7;nR(e9,u1.prototype);e9.isPureReactComponent=!0;var ME=Array.isArray,oR=Object.prototype.hasOwnProperty,t9={current:null},aR={key:!0,ref:!0,__self:!0,__source:!0};function sR(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)oR.call(t,r)&&!aR.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:qv,type:e,key:o,ref:a,props:i,_owner:t9.current}}function lK(e,t){return{$$typeof:qv,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function n9(e){return typeof e=="object"&&e!==null&&e.$$typeof===qv}function uK(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var IE=/\/+/g;function ex(e,t){return typeof e=="object"&&e!==null&&e.key!=null?uK(""+e.key):t.toString(36)}function _3(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 qv:case Zq:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+ex(a,0):r,ME(i)?(n="",e!=null&&(n=e.replace(IE,"$&/")+"/"),_3(i,t,n,"",function(u){return u})):i!=null&&(n9(i)&&(i=lK(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(IE,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",ME(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+ex(o,s);a+=_3(o,t,n,l,i)}else if(l=sK(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+ex(o,s++),a+=_3(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 dy(e,t,n){if(e==null)return e;var r=[],i=0;return _3(e,r,"","",function(o){return t.call(n,o,i++)}),r}function cK(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 oo={current:null},k3={transition:null},dK={ReactCurrentDispatcher:oo,ReactCurrentBatchConfig:k3,ReactCurrentOwner:t9};Xt.Children={map:dy,forEach:function(e,t,n){dy(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return dy(e,function(){t++}),t},toArray:function(e){return dy(e,function(t){return t})||[]},only:function(e){if(!n9(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Xt.Component=u1;Xt.Fragment=Qq;Xt.Profiler=eK;Xt
|
||
|
* @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(G,Z){var ce=G.length;G.push(Z);e:for(;0<ce;){var me=ce-1>>>1,Re=G[me];if(0<i(Re,Z))G[me]=Z,G[ce]=Re,ce=me;else break e}}function n(G){return G.length===0?null:G[0]}function r(G){if(G.length===0)return null;var Z=G[0],ce=G.pop();if(ce!==Z){G[0]=ce;e:for(var me=0,Re=G.length,xe=Re>>>1;me<xe;){var Se=2*(me+1)-1,Me=G[Se],_e=Se+1,Je=G[_e];if(0>i(Me,ce))_e<Re&&0>i(Je,Me)?(G[me]=Je,G[_e]=ce,me=_e):(G[me]=Me,G[Se]=ce,me=Se);else if(_e<Re&&0>i(Je,ce))G[me]=Je,G[_e]=ce,me=_e;else break e}}return Z}function i(G,Z){var ce=G.sortIndex-Z.sortIndex;return ce!==0?ce:G.id-Z.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,S=!1,w=!1,k=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(G){for(var Z=n(u);Z!==null;){if(Z.callback===null)r(u);else if(Z.startTime<=G)r(u),Z.sortIndex=Z.expirationTime,t(l,Z);else break;Z=n(u)}}function M(G){if(w=!1,T(G),!S)if(n(l)!==null)S=!0,ee(R);else{var Z=n(u);Z!==null&&K(M,Z.startTime-G)}}function R(G,Z){S=!1,w&&(w=!1,P(B),B=-1),v=!0;var ce=m;try{for(T(Z),g=n(l);g!==null&&(!(g.expirationTime>Z)||G&&!j());){var me=g.callback;if(typeof me=="function"){g.callback=null,m=g.priorityLevel;var Re=me(g.expirationTime<=Z);Z=e.unstable_now(),typeof Re=="function"?g.callback=Re:g===n(l)&&r(l),T(Z)}else r(l);g=n(l)}if(g!==null)var xe=!0;else{var Se=n(u);Se!==null&&K(M,Se.startTime-Z),xe=!1}return xe}finally{g=null,m=ce,v=!1}}var O=!1,D=null,B=-1,$=5,W=-1;function j(){return!(e.unstable_now()-W<$)}function te(){if(D!==null){var G=e.unstable_now();W=G;var Z=!0;try{Z=D(!0,G)}finally{Z?V():(O=!1,D=null)}}else O=!1}var V;if(typeof E=="function")V=function(){E(te)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,re=J.port2;J.port1.onmessage=te,V=function(){re.postMessage(null)}}else V=function(){k(te,0)};function ee(G){D=G,O||(O=!0,V())}function K(G,Z){B=k(function(){G(e.unstable_now())},Z)}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(G){G.callback=null},e.unstable_continueExecution=function(){S||v||(S=!0,ee(R))},e.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<G?Math.floor(1e3/G):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(G){switch(m){case 1:case 2:case 3:var Z=3;break;default:Z=m}var ce=m;m=Z;try{return G()}finally{m=ce}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(G,Z){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var ce=m;m=G;try{return Z()}finally{m=ce}},e.unstable_scheduleCallback=function(G,Z,ce){var me=e.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?me+ce:me):ce=me,G){case 1:var Re=-1;break;case 2:Re=250;break;case 5:Re=1073741823;break;case 4:Re=1e4;break;default:Re=5e3}return Re=ce+Re,G={id:h++,callback:Z,priorityLevel:G,startTime:ce,expirationTime:Re,sortIndex:-1},ce>me?(G.sortIndex=ce,t(u,G),n(l)===null&&G===n(u)&&(w?(P(B),B=-1):w=!0,K(M,ce-me))):(G.sortIndex=Re,t(l,G),S||v||(S=!0,ee(R))),G},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(G){var Z=m;return function(){var ce=m;m=Z;try{return G.apply(this,arguments)}finally{m=ce}}}})(lR);(function(e){e.exports=lR})(p0);/**
|
||
|
* @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 uR=C.exports,ha=p0.exports;function De(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 cR=new Set,rv={};function mh(e,t){H0(e,t),H0(e+"Capture",t)}function H0(e,t){for(rv[e]=t,e=0;e<t.length;e++)cR.add(t[e])}var xu=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),n6=Object.prototype.hasOwnProperty,fK=/^[: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]*$/,RE={},OE={};function hK(e){return n6.call(OE,e)?!0:n6.call(RE,e)?!1:fK.test(e)?OE[e]=!0:(RE[e]=!0,!1)}function pK(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 gK(e,t,n,r){if(t===null||typeof t>"u"||pK(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 ao(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 Mi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Mi[e]=new ao(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Mi[t]=new ao(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Mi[e]=new ao(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Mi[e]=new ao(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){Mi[e]=new ao(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Mi[e]=new ao(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Mi[e]=new ao(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Mi[e]=new ao(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Mi[e]=new ao(e,5,!1,e.toLowerCase(),null,!1,!1)});var r9=/[\-:]([a-z])/g;function i9(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
|
||
|
`+tx+e}var nx=!1;function rx(e,t){if(!e||nx)return"";nx=!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{nx=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?lm(e):""}function mK(e){switch(e.tag){case 5:return lm(e.type);case 16:return lm("Lazy");case 13:return lm("Suspense");case 19:return lm("SuspenseList");case 0:case 2:case 15:return e=rx(e.type,!1),e;case 11:return e=rx(e.type.render,!1),e;case 1:return e=rx(e.type,!0),e;default:return""}}function a6(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 qp:return"Fragment";case Yp:return"Portal";case r6:return"Profiler";case a9:return"StrictMode";case i6:return"Suspense";case o6:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fR:return(e.displayName||"Context")+".Consumer";case dR:return(e._context.displayName||"Context")+".Provider";case s9:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case l9:return t=e.displayName||null,t!==null?t:a6(e.type)||"Memo";case Dc:t=e._payload,e=e._init;try{return a6(e(t))}catch{}}return null}function vK(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 a6(t);case 8:return t===a9?"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 cd(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pR(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function yK(e){var t=pR(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 hy(e){e._valueTracker||(e._valueTracker=yK(e))}function gR(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=pR(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function h4(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 s6(e,t){var n=t.checked;return hr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function NE(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=cd(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 mR(e,t){t=t.checked,t!=null&&o9(e,"checked",t,!1)}function l6(e,t){mR(e,t);var n=cd(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")?u6(e,t.type,n):t.hasOwnProperty("defaultValue")&&u6(e,t.type,cd(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function BE(e,t,n){if(t.hasOwnProperty("val
|
||
|
`).replace(TX,"")}function xy(e,t,n){if(t=aP(t),aP(e)!==t&&n)throw Error(De(425))}function x4(){}var C6=null,_6=null;function k6(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 E6=typeof setTimeout=="function"?setTimeout:void 0,LX=typeof clearTimeout=="function"?clearTimeout:void 0,sP=typeof Promise=="function"?Promise:void 0,AX=typeof queueMicrotask=="function"?queueMicrotask:typeof sP<"u"?function(e){return sP.resolve(null).then(e).catch(MX)}:E6;function MX(e){setTimeout(function(){throw e})}function mx(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),lv(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);lv(t)}function Jc(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 lP(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 d1=Math.random().toString(36).slice(2),ml="__reactFiber$"+d1,hv="__reactProps$"+d1,wu="__reactContainer$"+d1,P6="__reactEvents$"+d1,IX="__reactListeners$"+d1,RX="__reactHandles$"+d1;function zf(e){var t=e[ml];if(t)return t;for(var n=e.parentNode;n;){if(t=n[wu]||n[ml]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=lP(e);e!==null;){if(n=e[ml])return n;e=lP(e)}return t}e=n,n=e.parentNode}return null}function Zv(e){return e=e[ml]||e[wu],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Qp(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(De(33))}function O5(e){return e[hv]||null}var T6=[],Jp=-1;function Sd(e){return{current:e}}function Qn(e){0>Jp||(e.current=T6[Jp],T6[Jp]=null,Jp--)}function qn(e,t){Jp++,T6[Jp]=e.current,e.current=t}var dd={},Vi=Sd(dd),Mo=Sd(!1),ah=dd;function W0(e,t){var n=e.type.contextTypes;if(!n)return dd;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Io(e){return e=e.childContextTypes,e!=null}function w4(){Qn(Mo),Qn(Vi)}function uP(e,t,n){if(Vi.current!==dd)throw Error(De(168));qn(Vi,t),qn(Mo,n)}function iO(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(De(108,vK(e)||"Unknown",i));return hr({},n,r)}function C4(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dd,ah=Vi.current,qn(Vi,e),qn(Mo,Mo.current),!0}function cP(e,t,n){var r=e.stateNode;if(!r)throw Error(De(169));n?(e=iO(e,t,ah),r.__reactInternalMemoizedMergedChildContext=e,Qn(Mo),Qn(Vi),qn(Vi,e)):Qn(Mo),qn(Mo,n)}var hu=null,D5=!1,vx=!1;function oO(e){hu===null?hu=[e]:hu.push(e)}function OX(e){D5=!0,oO(e)}function bd(){if(!vx&&hu!==null){vx=!0;var e=0,t=Ln;try{var n=hu;for(Ln=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}hu=null,D5=!1}catch(i){throw hu!==null&&(hu=hu.slice(e+1)),AR(c9,bd),i}finally{Ln=t,vx=!1}}return null}var e0=[],t0=0,_4=null,k4=0,Ia=[],Ra=0,sh=null,gu=1,mu="";function Pf(e,t){e0[t0++]=k4,e0[t0++]=_4,_4=e,k4=t}function aO(e,t,n){Ia[Ra++]=gu,Ia[Ra++]=mu,Ia[Ra++]=sh,sh=e;var r=gu;e=mu;var i=32-Cs(r)-1;r&=~(1<<i),n+=1;var o=32-Cs(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,gu=1<<32-Cs(t)+i|n<<i|r,mu=o+e}else gu=1<<o|n<<i|r,mu=e}function S9(e){e.return!==null&&(Pf(e,1),aO(e,1,0))}function b9(e){for(;e===_4;)_4=e0[--t0],e0[t0]=null,k4=e0[--t0],e0[t0]=null;for(;e===sh;)sh=Ia[--Ra],Ia[Ra]=null,mu=Ia[--Ra],Ia[Ra]=null,gu=Ia[--Ra],Ia[Ra]=null}var ua=null,sa=null,ir=!1,Ss=null;function sO(e,t){var n=Na(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.de
|
||
|
Error generating stack: `+o.message+`
|
||
|
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function wx(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function O6(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var VX=typeof WeakMap=="function"?WeakMap:Map;function DO(e,t,n){n=yu(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){R4||(R4=!0,U6=r),O6(e,t)},n}function NO(e,t,n){n=yu(-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(){O6(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){O6(e,t),typeof r!="function"&&(td===null?td=new Set([this]):td.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function bP(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new VX;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=rZ.bind(null,e,t,n),t.then(e,e))}function xP(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 wP(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=yu(-1,1),t.tag=2,ed(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var UX=Ou.ReactCurrentOwner,Ao=!1;function eo(e,t,n,r){t.child=e===null?pO(t,null,n,r):U0(t,e.child,n,r)}function CP(e,t,n,r,i){n=n.render;var o=t.ref;return S0(t,i),r=M9(e,t,n,r,o,i),n=I9(),e!==null&&!Ao?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,_u(e,t,i)):(ir&&n&&S9(t),t.flags|=1,eo(e,t,r,i),t.child)}function _P(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!W9(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,BO(e,t,o,r,i)):(e=D3(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:cv,n(a,r)&&e.ref===t.ref)return _u(e,t,i)}return t.flags|=1,e=rd(o,r),e.ref=t.ref,e.return=t,t.child=e}function BO(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(cv(o,r)&&e.ref===t.ref)if(Ao=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(Ao=!0);else return t.lanes=e.lanes,_u(e,t,i)}return D6(e,t,n,r,i)}function zO(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},qn(i0,ra),ra|=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,qn(i0,ra),ra|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,qn(i0,ra),ra|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,qn(i0,ra),ra|=r;return eo(e,t,i,n),t.child}function FO(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function D6(e,t,n,r,i){var o=Io(n)?ah:Vi.current;return o=W0(t,o),S0(t,i),n=M9(e,t,n,r,o,i),r=I9(),e!==null&&!Ao?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,_u(e,t,i)):(ir&&r&&S9(t),t.flags|=1,eo(e,t,n,i),t.child)}function kP(e,t,n,r,i){if(Io(n)){var o=!0;C4(t)}else o=!1;if(S0(t,i),t.stateNode===null)I3(e,t),fO(t,n,r),R6(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=$a(u):(u=Io(n)?ah:Vi.current,u=W0(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)&&mP(t,a,r,u),Nc=!1;var m=t.memoizedState;a.state=m,T4(t,r,a,i),l=t.memoizedState,s!==r||m!==l||Mo.current||Nc?(typeof h=="function"&&(I6(t,n,h,r),l=t.memoizedState),(s=Nc||gP(t,n,s,r,m,l,u))?(g||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="f
|
||
|
* @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 pZ=C.exports,gZ=Symbol.for("react.element"),mZ=Symbol.for("react.fragment"),vZ=Object.prototype.hasOwnProperty,yZ=pZ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,SZ={key:!0,ref:!0,__self:!0,__source:!0};function lD(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)vZ.call(t,r)&&!SZ.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:gZ,type:e,key:o,ref:a,props:i,_owner:yZ.current}}j5.Fragment=mZ;j5.jsx=lD;j5.jsxs=lD;(function(e){e.exports=j5})(G5);const An=G5.exports.Fragment,b=G5.exports.jsx,Q=G5.exports.jsxs;var Y9=C.exports.createContext({});Y9.displayName="ColorModeContext";function Jv(){const e=C.exports.useContext(Y9);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var Ly={light:"chakra-ui-light",dark:"chakra-ui-dark"};function bZ(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?Ly.dark:Ly.light),document.body.classList.remove(r?Ly.light:Ly.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 xZ="chakra-ui-color-mode";function wZ(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 CZ=wZ(xZ),FP=()=>{};function $P(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function uD(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:a=CZ}=e,s=i==="dark"?"dark":"light",[l,u]=C.exports.useState(()=>$P(a,s)),[h,g]=C.exports.useState(()=>$P(a)),{getSystemTheme:m,setClassName:v,setDataset:S,addListener:w}=C.exports.useMemo(()=>bZ({preventTransition:o}),[o]),k=i==="system"&&!l?h:l,P=C.exports.useCallback(M=>{const R=M==="system"?m():M;u(R),v(R==="dark"),S(R),a.set(R)},[a,m,v,S]);ks(()=>{i==="system"&&g(m())},[]),C.exports.useEffect(()=>{const M=a.get();if(M){P(M);return}if(i==="system"){P("system");return}P(s)},[a,s,i,P]);const E=C.exports.useCallback(()=>{P(k==="dark"?"light":"dark")},[k,P]);C.exports.useEffect(()=>{if(!!r)return w(P)},[r,w,P]);const T=C.exports.useMemo(()=>({colorMode:t??k,toggleColorMode:t?FP:E,setColorMode:t?FP:P,forced:t!==void 0}),[k,E,P,t]);return b(Y9.Provider,{value:T,children:n})}uD.displayName="ColorModeProvider";var q6={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]",S="[object GeneratorFunction]",w="[object Map]",k="[object Number]",P="[object Null]",E="[object Object]",T="[object Proxy]",M="[object RegExp]",R="[object Set]",O="[object String]",D="[object Undefined]",B="[object WeakMap]",$="[object ArrayBuffer]",W="[object DataView]",j="[object Float32Array]",te="[object Float64Array]",V="[object Int8Array]",J="[object Int16Array]",re="[object Int32Array]",ee="[object Uint8Array]",K="[object Uint8ClampedArray]",G="[object Uint16Array]",Z="
|
||
|
* 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 gi=typeof Symbol=="function"&&Symbol.for,J9=gi?Symbol.for("react.element"):60103,e8=gi?Symbol.for("react.portal"):60106,Q5=gi?Symbol.for("react.fragment"):60107,J5=gi?Symbol.for("react.strict_mode"):60108,eS=gi?Symbol.for("react.profiler"):60114,tS=gi?Symbol.for("react.provider"):60109,nS=gi?Symbol.for("react.context"):60110,t8=gi?Symbol.for("react.async_mode"):60111,rS=gi?Symbol.for("react.concurrent_mode"):60111,iS=gi?Symbol.for("react.forward_ref"):60112,oS=gi?Symbol.for("react.suspense"):60113,pJ=gi?Symbol.for("react.suspense_list"):60120,aS=gi?Symbol.for("react.memo"):60115,sS=gi?Symbol.for("react.lazy"):60116,gJ=gi?Symbol.for("react.block"):60121,mJ=gi?Symbol.for("react.fundamental"):60117,vJ=gi?Symbol.for("react.responder"):60118,yJ=gi?Symbol.for("react.scope"):60119;function ya(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case J9:switch(e=e.type,e){case t8:case rS:case Q5:case eS:case J5:case oS:return e;default:switch(e=e&&e.$$typeof,e){case nS:case iS:case sS:case aS:case tS:return e;default:return t}}case e8:return t}}}function LD(e){return ya(e)===rS}In.AsyncMode=t8;In.ConcurrentMode=rS;In.ContextConsumer=nS;In.ContextProvider=tS;In.Element=J9;In.ForwardRef=iS;In.Fragment=Q5;In.Lazy=sS;In.Memo=aS;In.Portal=e8;In.Profiler=eS;In.StrictMode=J5;In.Suspense=oS;In.isAsyncMode=function(e){return LD(e)||ya(e)===t8};In.isConcurrentMode=LD;In.isContextConsumer=function(e){return ya(e)===nS};In.isContextProvider=function(e){return ya(e)===tS};In.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===J9};In.isForwardRef=function(e){return ya(e)===iS};In.isFragment=function(e){return ya(e)===Q5};In.isLazy=function(e){return ya(e)===sS};In.isMemo=function(e){return ya(e)===aS};In.isPortal=function(e){return ya(e)===e8};In.isProfiler=function(e){return ya(e)===eS};In.isStrictMode=function(e){return ya(e)===J5};In.isSuspense=function(e){return ya(e)===oS};In.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Q5||e===rS||e===eS||e===J5||e===oS||e===pJ||typeof e=="object"&&e!==null&&(e.$$typeof===sS||e.$$typeof===aS||e.$$typeof===tS||e.$$typeof===nS||e.$$typeof===iS||e.$$typeof===mJ||e.$$typeof===vJ||e.$$typeof===yJ||e.$$typeof===gJ)};In.typeOf=ya;(function(e){e.exports=In})(TD);var AD=TD.exports,SJ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},bJ={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},MD={};MD[AD.ForwardRef]=SJ;MD[AD.Memo]=bJ;var xJ=!0;function wJ(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var ID=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||xJ===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},RD=function(t,n,r){ID(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 CJ(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 _J={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
|
||
|
45deg,
|
||
|
${t} 25%,
|
||
|
transparent 25%,
|
||
|
transparent 50%,
|
||
|
${t} 50%,
|
||
|
${t} 75%,
|
||
|
transparent 75%,
|
||
|
transparent
|
||
|
)`,backgroundSize:`${e} ${e}`}}function Kee(e){const t=jD().toHexString();return!e||jee(e)?t:e.string&&e.colors?Zee(e.string,e.colors):e.string&&!e.colors?Xee(e.string):e.colors&&!e.string?Qee(e.colors):t}function Xee(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 Zee(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 Qee(e){return e[Math.floor(Math.random()*e.length)]}function yt(e,t){return n=>n.colorMode==="dark"?t:e}function i8(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function Jee(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function XD(e){return Jee(e)&&e.reference?e.reference:String(e)}var cS=(e,...t)=>t.map(XD).join(` ${e} `).replace(/calc/g,""),dT=(...e)=>`calc(${cS("+",...e)})`,fT=(...e)=>`calc(${cS("-",...e)})`,sC=(...e)=>`calc(${cS("*",...e)})`,hT=(...e)=>`calc(${cS("/",...e)})`,pT=e=>{const t=XD(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:sC(t,-1)},pu=Object.assign(e=>({add:(...t)=>pu(dT(e,...t)),subtract:(...t)=>pu(fT(e,...t)),multiply:(...t)=>pu(sC(e,...t)),divide:(...t)=>pu(hT(e,...t)),negate:()=>pu(pT(e)),toString:()=>e.toString()}),{add:dT,subtract:fT,multiply:sC,divide:hT,negate:pT});function ete(e){return!Number.isInteger(parseFloat(e.toString()))}function tte(e,t="-"){return e.replace(/\s+/g,t)}function ZD(e){const t=tte(e.toString());return t.includes("\\.")?e:ete(e)?t.replace(".","\\."):e}function nte(e,t=""){return[t,ZD(e)].filter(Boolean).join("-")}function rte(e,t){return`var(${ZD(e)}${t?`, ${t}`:""})`}function ite(e,t=""){return`--${nte(e,t)}`}function ni(e,t){const n=ite(e,t?.prefix);return{variable:n,reference:rte(n,ote(t?.fallback))}}function ote(e){return typeof e=="string"?e:e?.reference}var{definePartsStyle:ate,defineMultiStyleConfig:ste}=Jn(ree.keys),lte={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},ute={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},cte={pt:"2",px:"4",pb:"5"},dte={fontSize:"1.25em"},fte=ate({container:lte,button:ute,panel:cte,icon:dte}),hte=ste({baseStyle:fte}),{definePartsStyle:n2,defineMultiStyleConfig:pte}=Jn(iee.keys),da=Bn("alert-fg"),ku=Bn("alert-bg"),gte=n2({container:{bg:ku.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:da.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:da.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function o8(e){const{theme:t,colorScheme:n}=e,r=K0(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var mte=n2(e=>{const{colorScheme:t}=e,n=o8(e);return{container:{[da.variable]:`colors.${t}.500`,[ku.variable]:n.light,_dark:{[da.variable]:`colors.${t}.200`,[ku.variable]:n.dark}}}}),vte=n2(e=>{const{colorScheme:t}=e,n=o8(e);return{container:{[da.variable]:`colors.${t}.500`,[ku.variable]:n.light,_dark:{[da.variable]:`colors.${t}.200`,[ku.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:da.reference}}}),yte=n2(e=>{const{colorScheme:t}=e,n=o8(e);return{container:{[da.variable]:`colors.${t}.500`,[ku.variable]:n.light,_dark:{[da.variable]:`colors.${t}.200`,[ku.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:da.reference}}}),Ste=n2(e=>{const{colorScheme:t}=e;return{container:{[da.variable]:"colors.white",[ku.variable]:`colors.${t}.500`,_dark:{[da.variable]:"colors.gray.900",[ku.variable]:`colors.${t}.200`},color:da.reference}}}),bte={subtle:mte,"left-accent":vte,"top-accent":yte,solid:Ste},xte=pte({baseStyle:gte,variants:bte,defaultProps:{variant:"subtle",colorScheme:"blue"}}),QD={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:
|
||
|
to right,
|
||
|
transparent 0%,
|
||
|
${to(n,a)} 50%,
|
||
|
transparent 100%
|
||
|
)`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}},mie={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},vie=e=>({bg:yt("gray.100","whiteAlpha.300")(e)}),yie=e=>({transitionProperty:"common",transitionDuration:"slow",...gie(e)}),Sie=hm(e=>({label:mie,filledTrack:yie(e),track:vie(e)})),bie={xs:hm({track:{h:"1"}}),sm:hm({track:{h:"2"}}),md:hm({track:{h:"3"}}),lg:hm({track:{h:"4"}})},xie=pie({sizes:bie,baseStyle:Sie,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:wie,definePartsStyle:H3}=Jn(See.keys),Cie=e=>{var t;const n=(t=io(H4.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"}}}},_ie=H3(e=>{var t,n,r,i;return{label:(n=(t=H4).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=H4).baseStyle)==null?void 0:i.call(r,e).container,control:Cie(e)}}),kie={md:H3({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:H3({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:H3({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},Eie=wie({baseStyle:_ie,sizes:kie,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Pie,definePartsStyle:Tie}=Jn(bee.keys),Ny=Bn("select-bg"),ST,Lie={...(ST=vn.baseStyle)==null?void 0:ST.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Ny.reference,[Ny.variable]:"colors.white",_dark:{[Ny.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Ny.reference}},Aie={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},Mie=Tie({field:Lie,icon:Aie}),By={paddingInlineEnd:"8"},bT,xT,wT,CT,_T,kT,ET,PT,Iie={lg:{...(bT=vn.sizes)==null?void 0:bT.lg,field:{...(xT=vn.sizes)==null?void 0:xT.lg.field,...By}},md:{...(wT=vn.sizes)==null?void 0:wT.md,field:{...(CT=vn.sizes)==null?void 0:CT.md.field,...By}},sm:{...(_T=vn.sizes)==null?void 0:_T.sm,field:{...(kT=vn.sizes)==null?void 0:kT.sm.field,...By}},xs:{...(ET=vn.sizes)==null?void 0:ET.xs,field:{...(PT=vn.sizes)==null?void 0:PT.xs.field,...By},icon:{insetEnd:"1"}}},Rie=Pie({baseStyle:Mie,sizes:Iie,variants:vn.variants,defaultProps:vn.defaultProps}),Fx=Bn("skeleton-start-color"),$x=Bn("skeleton-end-color"),Oie={[Fx.variable]:"colors.gray.100",[$x.variable]:"colors.gray.400",_dark:{[Fx.variable]:"colors.gray.800",[$x.variable]:"colors.gray.600"},background:Fx.reference,borderColor:$x.reference,opacity:.7,borderRadius:"sm"},Die={baseStyle:Oie},Hx=Bn("skip-link-bg"),Nie={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Hx.variable]:"colors.white",_dark:{[Hx.variable]:"colors.gray.700"},bg:Hx.reference}},Bie={baseStyle:Nie},{defineMultiStyleConfig:zie,definePartsStyle:dS}=Jn(xee.keys),Ev=Bn("slider-thumb-size"),Pv=Bn("slider-track-size"),$c=Bn("slider-bg"),Fie=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...i8({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},$ie=e=>({...i8({orientation:e.orientation,horizontal:{h:Pv.reference},vertical:{w:Pv.reference}}),overflow:"hidden",borderRadius:"sm",[$c.variable]:"colors.gray.200",_dark:{[$c.variable]:"colors.whiteAlpha.200"},_disabled:{[$c.variable]:"colors.gray.300",_dark:{[$c.variable]:"colors.whiteAlpha.300"}},bg:$c.reference}),Hie=e=>{const{orientation:t}=e;return{...i8({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:Ev.reference,h:Ev.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"}}},Wie=e=>{const{
|
||
|
[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]),b(Lde,{isPresent:t,childRef:r,sizeRef:i,children:C.exports.cloneElement(e,{ref:r})})}const tw=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=mS(Mde),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=b(Ade,{isPresent:n,children:e})),b(p1.Provider,{value:u,children:e})};function Mde(){return new Map}const Up=e=>e.key||"";function Ide(e,t){e.forEach(n=>{const r=Up(n);t.set(r,n)})}function Rde(e){const t=[];return C.exports.Children.forEach(e,n=>{C.exports.isValidElement(n)&&t.push(n)}),t}const wd=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",lB(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=Tde();const l=C.exports.useContext(u8).forceRender;l&&(s=l);const u=NB(),h=Rde(e);let g=h;const m=new Set,v=C.exports.useRef(g),S=C.exports.useRef(new Map).current,w=C.exports.useRef(!0);if(U4(()=>{w.current=!1,Ide(h,S),v.current=g}),y8(()=>{w.current=!0,S.clear(),m.clear()}),w.current)return b(An,{children:g.map(T=>b(tw,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a,children:T},Up(T)))});g=[...g];const k=v.current.map(Up),P=h.map(Up),E=k.length;for(let T=0;T<E;T++){const M=k[T];P.indexOf(M)===-1&&m.add(M)}return a==="wait"&&m.size&&(g=[]),m.forEach(T=>{if(P.indexOf(T)!==-1)return;const M=S.get(T);if(!M)return;const R=k.indexOf(T),O=()=>{S.delete(T),m.delete(T);const D=v.current.findIndex(B=>B.key===T);if(v.current.splice(D,1),!m.size){if(v.current=h,u.current===!1)return;s(),r&&r()}};g.splice(R,0,b(tw,{isPresent:!1,onExitComplete:O,custom:t,presenceAffectsLayout:o,mode:a,children:M},Up(M)))}),g=g.map(T=>{const M=T.key;return m.has(M)?T:b(tw,{isPresent:!0,presenceAffectsLayout:o,mode:a,children:T},Up(T))}),sB!=="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.`),b(An,{children:m.size?g:g.map(T=>C.exports.cloneElement(T))})};var vl=function(){return vl=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},vl.apply(this,arguments)};function BB(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 m1(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 v1(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 rfe(e){CS({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function jf(e){const{isOpen:t,isDisabled:n}=O8(),{reduceMotion:r}=D8(),i=l2("chakra-accordion__icon",e.className),o=_S(),a={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...o.icon};return b(Sa,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:a,...e,children:b("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}jf.displayName="AccordionIcon";var Yf=Ee(function(t,n){const{children:r,className:i}=t,{htmlProps:o,...a}=Jde(t),l={..._S().container,overflowAnchor:"none"},u=C.exports.useMemo(()=>a,[a]);return se.createElement(Yde,{value:u},se.createElement(be.div,{ref:n,...o,className:l2("chakra-accordion__item",i),__css:l},typeof r=="function"?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r))});Yf.displayName="AccordionItem";var qf=Ee(function(t,n){const{className:r,motionProps:i,...o}=t,{reduceMotion:a}=D8(),{getPanelProps:s,isOpen:l}=O8(),u=s(o,n),h=l2("chakra-accordion__panel",r),g=_S();a||delete u.hidden;const m=se.createElement(be.div,{...u,__css:g.panel,className:h});return a?m:b(zB,{in:l,...i,children:m})});qf.displayName="AccordionPanel";var kS=Ee(function({children:t,reduceMotion:n,...r},i){const o=Ii("Accordion",r),a=yn(r),{htmlProps:s,descendants:l,...u}=Zde(a),h=C.exports.useMemo(()=>({...u,reduceMotion:!!n}),[u,n]);return se.createElement(qde,{value:l},se.createElement(Qde,{value:h},se.createElement(jde,{value:o},se.createElement(be.div,{ref:i,...s,className:l2("chakra-accordion",r.className),__css:o.root},t))))});kS.displayName="Accordion";var ife=(...e)=>e.filter(Boolean).join(" "),ofe=xd({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),u2=Ee((e,t)=>{const n=so("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:s,...l}=yn(e),u=ife("chakra-spinner",s),h={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${ofe} ${o} linear infinite`,...n};return se.createElement(be.div,{ref:t,__css:h,className:u,...l},r&&se.createElement(be.span,{srOnly:!0},r))});u2.displayName="Spinner";var ES=(...e)=>e.filter(Boolean).join(" ");function afe(e){return b(Sa,{viewBox:"0 0 24 24",...e,children:b("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 sfe(e){return b(Sa,{viewBox:"0 0 24 24",...e,children:b("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 YL(e){return b(Sa,{viewBox:"0 0 24 24",...e,children:b("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[lfe,ufe]=_n({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[cfe,N8]=_n({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),WB={info:{icon:sfe,colorScheme:"blue"},warning:{icon:YL,colorScheme:"orange"},success:{icon:afe,colorScheme:"green"},error:{icon:YL,colorScheme:"red"},loading:{icon:u2,colorScheme:"blue"}};function dfe(e){return WB[e].colorScheme}function ffe(e){return WB[e].icon}var VB=Ee(function(t,n){const{status:r="info",addRole:i=!0,...o}=yn(t),a=t.colorScheme??dfe(r),s=Ii("Alert",{...t,colorScheme:a}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",over
|
||
|
: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;
|
||
|
}
|
||
|
}
|
||
|
`,Xfe=()=>b(lS,{styles:JB}),Zfe=()=>b(lS,{styles:`
|
||
|
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;
|
||
|
}
|
||
|
|
||
|
${JB}
|
||
|
`});function th(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 Qfe(e){return"current"in e}var ez=()=>typeof window<"u";function Jfe(){const e=navigator.userAgentData;return e?.platform??navigator.platform}var ehe=e=>ez()&&e.test(navigator.vendor),the=e=>ez()&&e.test(Jfe()),nhe=()=>the(/mac|iphone|ipad|ipod/i),rhe=()=>nhe()&&ehe(/apple/i);function ihe(e){const{ref:t,elements:n,enabled:r}=e,i=()=>{var o;return((o=t.current)==null?void 0:o.ownerDocument)??document};th(i,"pointerdown",o=>{if(!rhe()||!r)return;const a=o.target,l=(n??[t]).some(u=>{const h=Qfe(u)?u.current:u;return h?.contains(a)||h===a});i().activeElement!==a&&l&&(o.preventDefault(),a.focus())})}var ohe=YJ?C.exports.useLayoutEffect:C.exports.useEffect;function tA(e,t=[]){const n=C.exports.useRef(e);return ohe(()=>{n.current=e}),C.exports.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function ahe(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function she(e,t){const n=C.exports.useId();return C.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function Dv(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=tA(n),a=tA(t),[s,l]=C.exports.useState(e.defaultIsOpen||!1),[u,h]=ahe(r,s),g=she(i,"disclosure"),m=C.exports.useCallback(()=>{u||l(!1),a?.()},[u,a]),v=C.exports.useCallback(()=>{u||l(!0),o?.()},[u,o]),S=C.exports.useCallback(()=>{(h?m:v)()},[h,v,m]);return{isOpen:!!h,onOpen:v,onClose:m,onToggle:S,isControlled:u,getButtonProps:(w={})=>({...w,"aria-expanded":h,"aria-controls":g,onClick:qJ(w.onClick,S)}),getDisclosureProps:(w={})=>({...w,hidden:!h,id:g})}}function W8(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var V8=Ee(function(t,n){const{htmlSize:r,...i}=t,o=Ii("Input",i),a=yn(i),s=B8(a),l=Dr("chakra-input",t.className);return se.createElement(be.input,{size:r,...s,__css:o.field,ref:n,className:l})});V8.displayName="Input";V8.id="Input";var[lhe,tz]=_n({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),uhe=Ee(function(t,n){const r=Ii("Input",t),{children:i,className:o,...a}=yn(t),s=Dr("chakra-input__group",o),l={},u=TS(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,S;const w=W8({size:((v=m.props)==null?void 0:v.size)||t.size,variant:((S=m.props)==null?void 0:S.variant)||t.variant});return m.type.id!=="Input"?C.exports.cloneElement(m,w):C.exports.cloneElement(m,Object.assign(w,l,m.props))});return se.createElement(be.div,{className:s,ref:n,__css:{width:"100%",display:"flex",position:"relative"},...a},b(lhe,{value:r,children:g}))});uhe.displayName="InputGroup";var che={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},dhe=be("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),U8=Ee(function(t,n){const{placement:r="left",...i}=t,o=che[r]??{},a=tz();return b(dhe,{ref:n,...i,__css:{...a.addon,...o}})});U8.displayName="InputAddon";var nz=Ee(function(t,n){return b(U8,{ref:n,placement:"left",...t,className:Dr("chakra-input__left-addon",t.className)})});nz.displayName="InputLeftAddon";nz.id="InputLeftAddon";var rz=Ee(function(t,n){return b(U8,{ref:n,placement:"right",...t,className:Dr("chakra-input__right-addon",t.className)})});rz.displayName="InputRightAddon";rz.id="InputRightAddon";var fhe=be("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),IS=Ee(function(t,n){const{placement:
|
||
|
.`.concat(z1e,` {
|
||
|
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(q3,` {
|
||
|
right: `).concat(s,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(K3,` {
|
||
|
margin-right: `).concat(s,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(q3," .").concat(q3,` {
|
||
|
right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(K3," .").concat(K3,` {
|
||
|
margin-right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
`).concat(F1e,": ").concat(s,`px;
|
||
|
}
|
||
|
`)},Z1e=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,o=C.exports.useMemo(function(){return q1e(i)},[i]);return b(K1e,{styles:X1e(o,!t,i,n?"":"!important")})},qC=!1;if(typeof window<"u")try{var Ky=Object.defineProperty({},"passive",{get:function(){return qC=!0,!0}});window.addEventListener("test",Ky,Ky),window.removeEventListener("test",Ky,Ky)}catch{qC=!1}var Dp=qC?{passive:!1}:!1,Q1e=function(e){return e.tagName==="TEXTAREA"},CF=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Q1e(e)&&n[t]==="visible")},J1e=function(e){return CF(e,"overflowY")},ege=function(e){return CF(e,"overflowX")},xA=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=_F(e,n);if(r){var i=kF(e,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},tge=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},nge=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},_F=function(e,t){return e==="v"?J1e(t):ege(t)},kF=function(e,t){return e==="v"?tge(t):nge(t)},rge=function(e,t){return e==="h"&&t==="rtl"?-1:1},ige=function(e,t,n,r,i){var o=rge(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=kF(e,s),S=v[0],w=v[1],k=v[2],P=w-k-o*S;(S||P)&&_F(e,s)&&(g+=P,m+=S),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},Xy=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},wA=function(e){return[e.deltaX,e.deltaY]},CA=function(e){return e&&"current"in e?e.current:e},oge=function(e,t){return e[0]===t[0]&&e[1]===t[1]},age=function(e){return`
|
||
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
||
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
||
|
`)},sge=0,Np=[];function lge(e){var t=C.exports.useRef([]),n=C.exports.useRef([0,0]),r=C.exports.useRef(),i=C.exports.useState(sge++)[0],o=C.exports.useState(function(){return wF()})[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=IC([e.lockRef.current],(e.shards||[]).map(CA),!0).filter(Boolean);return w.forEach(function(k){return k.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),w.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=C.exports.useCallback(function(w,k){if("touches"in w&&w.touches.length===2)return!a.current.allowPinchZoom;var P=Xy(w),E=n.current,T="deltaX"in w?w.deltaX:E[0]-P[0],M="deltaY"in w?w.deltaY:E[1]-P[1],R,O=w.target,D=Math.abs(T)>Math.abs(M)?"h":"v";if("touches"in w&&D==="h"&&O.type==="range")return!1;var B=xA(D,O);if(!B)return!0;if(B?R=D:(R=D==="v"?"h":"v",B=xA(D,O)),!B)return!1;if(!r.current&&"changedTouches"in w&&(T||M)&&(r.current=R),!R)return!0;var $=r.current||R;return ige($,k,w,$==="h"?T:M,!0)},[]),l=C.exports.useCallback(function(w){var k=w;if(!(!Np.length||Np[Np.length-1]!==o)){var P="deltaY"in k?wA(k):Xy(k),E=t.current.filter(function(R){return R.name===k.type&&R.target===k.target&&oge(R.delta,P)})[0];if(E&&E.should){k.cancelable&&k.preventDefault();return}if(!E){var T=(a.current.shards||[]).map(CA).filter(Boolean).filter(function(R){return R.contains(k.target)}),M=T.length>0?s(k,T[0]):!a.current.noIsolation;M&&k.cancelable&&k.preventDefault()}}},[]),u=C.exports.useCallback(function(w,k,P,E){var T={name:w,delta:k,target:P,should:E};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(M){return M!==T})},1)},[]),h=C.exports.useCallback(function(w){n.current=Xy(w),r.current=void 0},[]),g=C.exports.useCallback(function(w){u(w.type,wA(w),w.target,s(w,e.lockRef.current))},[]),m=C.exports.useCallback(function(w){u(w.type,Xy(w),w.target,s(w,e.lockRef.current))},[]);C.exports.useEffect(function(){return Np.push(o),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:m}),document.addEventListener("wheel",l,Dp),document.addEventListener("touchmove",l,Dp),document.addEventListener("touchstart",h,Dp),function(){Np=Np.filter(function(w){return w!==o}),document.removeEventListener("wheel",l,Dp),document.removeEventListener("touchmove",l,Dp),document.removeEventListener("touchstart",h,Dp)}},[]);var v=e.removeScrollBar,S=e.inert;return Q(An,{children:[S?b(o,{styles:age(i)}):null,v?b(Z1e,{gapMode:"margin"}):null]})}const uge=W0e(xF,lge);var EF=C.exports.forwardRef(function(e,t){return b(OS,{...vl({},e,{ref:t,sideCar:uge})})});EF.classNames=OS.classNames;const PF=EF;var Ch=(...e)=>e.filter(Boolean).join(" ");function pm(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var cge=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}},KC=new cge;function dge(e,t){C.exports.useEffect(()=>(t&&KC.add(e),()=>{KC.remove(e)}),[t,e])}function fge(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]=pge(r,"chakra-modal","chakra-modal--header","chakra-modal--body");hge(u,t&&a),dge(u,t);const S=C.exports.useRef(null),w=C.exports.useCallback(B=>{S.current=B.target},[]),k=C.exports.useCallback(B=>{B.key==="Escape"&&(B.stopPropagation(),o&&n?.(),l?.())},[o,n,l]),[P,E]=C.exports.useState(!1),[T,M]=C.exports.useState(!1),R=C.exports.useCallback((B={},$=null)=>({role:"dialog",...B,ref:Wn($,u),id:g,tabIndex:-1,"aria-modal":!0,"aria-labelledby":P?m:void 0,"aria-describedby":T?v:void 0,onClick:pm(B.onClick,W=>W.stopPropagation())}),[v,T,g,m,P]),O=C.exports.useCallback(B=>{B.stopPropagation(),S.current===B.target&&(!KC.isTopModal(u)||(i&&n?.(),
|
||
|
* @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 i1=C.exports;function S2e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var b2e=typeof Object.is=="function"?Object.is:S2e,x2e=i1.useState,w2e=i1.useEffect,C2e=i1.useLayoutEffect,_2e=i1.useDebugValue;function k2e(e,t){var n=t(),r=x2e({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return C2e(function(){i.value=n,i.getSnapshot=t,kw(i)&&o({inst:i})},[e,n,t]),w2e(function(){return kw(i)&&o({inst:i}),e(function(){kw(i)&&o({inst:i})})},[e]),_2e(n),n}function kw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!b2e(e,n)}catch{return!0}}function E2e(e,t){return t()}var P2e=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?E2e:k2e;b$.useSyncExternalStore=i1.useSyncExternalStore!==void 0?i1.useSyncExternalStore:P2e;(function(e){e.exports=b$})(S$);var x$={exports:{}},w$={};/**
|
||
|
* @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 WS=C.exports,T2e=S$.exports;function L2e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var A2e=typeof Object.is=="function"?Object.is:L2e,M2e=T2e.useSyncExternalStore,I2e=WS.useRef,R2e=WS.useEffect,O2e=WS.useMemo,D2e=WS.useDebugValue;w$.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=I2e(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=O2e(function(){function l(v){if(!u){if(u=!0,h=v,v=r(v),i!==void 0&&a.hasValue){var S=a.value;if(i(S,v))return g=S}return g=v}if(S=g,A2e(h,v))return S;var w=r(v);return i!==void 0&&i(S,w)?S:(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=M2e(e,o[0],o[1]);return R2e(function(){a.hasValue=!0,a.value=s},[s]),D2e(s),s};(function(e){e.exports=w$})(x$);function N2e(e){e()}let C$=N2e;const B2e=e=>C$=e,z2e=()=>C$,md=C.exports.createContext(null);function _$(){return C.exports.useContext(md)}const F2e=()=>{throw new Error("uSES not initialized!")};let k$=F2e;const $2e=e=>{k$=e},H2e=(e,t)=>e===t;function W2e(e=md){const t=e===md?_$:()=>C.exports.useContext(e);return function(r,i=H2e){const{store:o,subscription:a,getServerState:s}=t(),l=k$(a.addNestedSub,o.getState,s||o.getState,r,i);return C.exports.useDebugValue(l),l}}const V2e=W2e();var U2e={exports:{}},Rn={};/**
|
||
|
* @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 O_=Symbol.for("react.element"),D_=Symbol.for("react.portal"),VS=Symbol.for("react.fragment"),US=Symbol.for("react.strict_mode"),GS=Symbol.for("react.profiler"),jS=Symbol.for("react.provider"),YS=Symbol.for("react.context"),G2e=Symbol.for("react.server_context"),qS=Symbol.for("react.forward_ref"),KS=Symbol.for("react.suspense"),XS=Symbol.for("react.suspense_list"),ZS=Symbol.for("react.memo"),QS=Symbol.for("react.lazy"),j2e=Symbol.for("react.offscreen"),E$;E$=Symbol.for("react.module.reference");function qa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case O_:switch(e=e.type,e){case VS:case GS:case US:case KS:case XS:return e;default:switch(e=e&&e.$$typeof,e){case G2e:case YS:case qS:case QS:case ZS:case jS:return e;default:return t}}case D_:return t}}}Rn.ContextConsumer=YS;Rn.ContextProvider=jS;Rn.Element=O_;Rn.ForwardRef=qS;Rn.Fragment=VS;Rn.Lazy=QS;Rn.Memo=ZS;Rn.Portal=D_;Rn.Profiler=GS;Rn.StrictMode=US;Rn.Suspense=KS;Rn.SuspenseList=XS;Rn.isAsyncMode=function(){return!1};Rn.isConcurrentMode=function(){return!1};Rn.isContextConsumer=function(e){return qa(e)===YS};Rn.isContextProvider=function(e){return qa(e)===jS};Rn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===O_};Rn.isForwardRef=function(e){return qa(e)===qS};Rn.isFragment=function(e){return qa(e)===VS};Rn.isLazy=function(e){return qa(e)===QS};Rn.isMemo=function(e){return qa(e)===ZS};Rn.isPortal=function(e){return qa(e)===D_};Rn.isProfiler=function(e){return qa(e)===GS};Rn.isStrictMode=function(e){return qa(e)===US};Rn.isSuspense=function(e){return qa(e)===KS};Rn.isSuspenseList=function(e){return qa(e)===XS};Rn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===VS||e===GS||e===US||e===KS||e===XS||e===j2e||typeof e=="object"&&e!==null&&(e.$$typeof===QS||e.$$typeof===ZS||e.$$typeof===jS||e.$$typeof===YS||e.$$typeof===qS||e.$$typeof===E$||e.getModuleId!==void 0)};Rn.typeOf=qa;(function(e){e.exports=Rn})(U2e);function Y2e(){const e=z2e();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 YA={notify(){},get:()=>[]};function q2e(e,t){let n,r=YA;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=Y2e())}function u(){n&&(n(),n=void 0,r.clear(),r=YA)}const h={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return h}const K2e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",X2e=K2e?C.exports.useLayoutEffect:C.exports.useEffect;function Z2e({store:e,context:t,children:n,serverState:r}){const i=C.exports.useMemo(()=>{const s=q2e(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0}},[e,r]),o=C.exports.useMemo(()=>e.getState(),[e]);return X2e(()=>{const{subscription:s}=i;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[i,o]),b((t||md).Provider,{value:i,children:n})}function P$(e=md){const t=e===md?_$:()=>C.exports.useContext(e);return function(){const{store:r}=t();return r}}const Q2e=P$();function J2e(e=md){const t=e===md?Q2e:P$(e);return function(){return t().dispatch}}const eye=J2e();$2e(x$.exports.useSyncExternalStoreWithSelector);B2e(zl.exports.unstable_batchedUpdates);var N_="persist:",T$="persist/FLUSH",B_="persist/REHYDRATE",L$="persist/PAUSE",A$="persist/PERSIST",M$="persist/PURGE",I$="persist/REGISTER",tye=-1;function Q3(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Q3=function(n){return typeof n}:Q3=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symb
|
||
|
|
||
|
`;if(!(0,e.isString)(J)||J.length<1)throw new Error(`${K} Name (key) of reducer is required. ${G}`);if(!V||!V.length)return;const{duplicates:Z,subsets:ce}=(0,e.findDuplicatesAndSubsets)(V);if(Z.length>1)throw new Error(`${K} Duplicated paths.
|
||
|
|
||
|
${JSON.stringify(Z)}
|
||
|
|
||
|
${G}`);if(ce.length>1)throw new Error(`${K} You are trying to persist an entire property and also some of its subset.
|
||
|
|
||
|
${JSON.stringify(ce)}
|
||
|
|
||
|
${G}`)};e.singleTransformValidator=B;const $=function(V){if(!(0,e.isArray)(V))return;const J=V?.map(re=>re.deepPersistKey).filter(re=>re)||[];if(J.length){const re=J.filter((ee,K)=>J.indexOf(ee)!==K);if(re.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(re)}`)}};e.transformsValidator=$;const W=function({whitelist:V,blacklist:J}){if(V&&V.length&&J&&J.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(V){const{duplicates:re,subsets:ee}=(0,e.findDuplicatesAndSubsets)(V);(0,e.throwError)({duplicates:re,subsets:ee},"whitelist")}if(J){const{duplicates:re,subsets:ee}=(0,e.findDuplicatesAndSubsets)(J);(0,e.throwError)({duplicates:re,subsets:ee},"blacklist")}};e.configValidator=W;const j=function({duplicates:V,subsets:J},re){if(V.length)throw new Error(`${t.PACKAGE_NAME}: duplicates of paths found in your ${re}.
|
||
|
|
||
|
${JSON.stringify(V)}`);if(J.length)throw new Error(`${t.PACKAGE_NAME}: subsets of some parent keys found in your ${re}. You must decide if you want to persist an entire path or its specific subset.
|
||
|
|
||
|
${JSON.stringify(J)}`)};e.throwError=j;const te=function(V){return(0,e.isArray)(V)?V.filter(e.unique).reduce((J,re)=>{const ee=re.split("."),K=ee[0],G=ee.slice(1).join(".")||void 0,Z=J.filter(me=>Object.keys(me)[0]===K)[0],ce=Z?Object.values(Z)[0]:void 0;return Z||J.push({[K]:G?[G]:void 0}),Z&&!ce&&G&&(Z[K]=[G]),Z&&ce&&G&&ce.push(G),J},[]):[]};e.getRootKeysGroup=te})(N$);(function(e){var t=bs&&bs.__rest||function(g,m){var v={};for(var S in g)Object.prototype.hasOwnProperty.call(g,S)&&m.indexOf(S)<0&&(v[S]=g[S]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,S=Object.getOwnPropertySymbols(g);w<S.length;w++)m.indexOf(S[w])<0&&Object.prototype.propertyIsEnumerable.call(g,S[w])&&(v[S[w]]=g[S[w]]);return v};Object.defineProperty(e,"__esModule",{value:!0}),e.getPersistConfig=e.getTransforms=e.createBlacklist=e.createWhitelist=e.autoMergeDeep=void 0;const n=N$,r=ph,i=$_,o=function(g,m,v={}){const S=v.whitelist||null,w=v.blacklist||null;function k(P){return!!(S&&S.indexOf(P)===-1||w&&w.indexOf(P)!==-1)}return{in:(P,E,T)=>!k(E)&&g?g(P,E,T):P,out:(P,E,T)=>!k(E)&&m?m(P,E,T):P,deepPersistKey:S&&S[0]}},a=(g,m,v,{debug:S,whitelist:w,blacklist:k,transforms:P})=>{if(w||k)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 E=(0,n.cloneDeep)(v);let T=g;if(T&&(0,n.isObjectLike)(T)){const M=(0,n.difference)(m,v);(0,n.isEmpty)(M)||(T=(0,n.mergeDeep)(g,M,{preserveUndefined:!0}),S&&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(M)}`)),Object.keys(T).forEach(R=>{if(R!=="_persist"){if((0,n.isObjectLike)(E[R])){E[R]=(0,n.mergeDeep)(E[R],T[R]);return}E[R]=T[R]}})}return S&&T&&(0,n.isObjectLike)(T)&&console.log(`${r.PACKAGE_NAME}/autoMergeDeep: rehydrated keys ${JSON.stringify(T)}`),E};e.autoMergeDeep=a;const s=(g,m)=>((0,n.singleTransformValidator)(m,g,i.ConfigType.WHITELIST),o(v=>{if(!m||!m.length)return v;let S=null,w;return m.forEach(k=>{const P=k.split(".");w=(0,n.path)(v,P),typeof w>"u"&&(0,n.isIntegerString)(P[P.length-1])&&(w=r.PLACEHOLDER_UNDEFINED);const E=(0,n.assocPath)(P,w),T=(0,n.isArray)(E)?[]:{};S=(0,n.mergeDeep)(S||T,E,{preservePlaceholder:!0})}),S||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 S=(0,n.preserveUndefined)(v,m,i.ConfigType.BLACKLIST,!0);return m.map(k=>k.split(".")).reduce((k,P)=>(0,n.dissocPath)(k,P),S)},v=>(0,n.preserveUndefined)(v,m,i.ConfigType.BLACKLIST),{whitelist:[g]}));e.createBlacklist=l;const u=function(g,m){return m.map(v=>{const S=Object.keys(v)[0],w=v[S];return g===i.ConfigType.WHITELIST?(0,e.createWhitelist)(S,w):(0,e.createBlacklist)(S,w)})};e.getTransforms=u;const h=g=>{var{key:m,whitelist:v,blacklist:S,storage:w,transforms:k,rootReducer:P}=g,E=t(g,["key","whitelist","blacklist","storage","transforms","rootReducer"]);(0,n.configValidator)({whitelist:v,blacklist:S});const T=(0,n.getRootKeysGroup)(v),M=(0,n.getRootKeysGroup)(S),R=Object.keys(P(void 0,{type:""})),O=T.map(te=>Object.keys(te)[0]),D=M.map(te=>Object.keys(te)[0]),B=R.filter(te=>O.indexOf(te)===-1&&D.indexOf(te)===-1),$=(0,e.getTransforms)(i.ConfigType.WHITELIST,T),W=(0,e.getTransforms)(i.ConfigType.BLACKLIST,M),j=(0,n.isArray)(v)?B.map(te=>(0,e.createBlacklist)(te)):[];return Object.assign(Object.assign({},E),{key:m,storage:w,transforms:[...$,...W,...j,...k||[]],stateReconciler:e.autoMergeDeep})};e.getPersistConfig=h})(D$);const e4=e=>e.length===1?e[0].prompt:e.map(t=>`${t.prompt}:${t.weight}`).join(" "),Mye=e=>{const r=e.split(",").map(i=>i.split(":")).map(i=>({seed:Number(i[0]),weight:Number(i[1])}));return H_(r)?r:!1},H_=e=>Boolean(typeof e=="string"?Mye(e):e.length&&!e.some(t=>{const{seed:n,weight:r}=t,i=!isNaN(parseInt(n.toString(),10)),o=!isNaN(parseInt(r.toString(),10
|
||
|
* @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,S=1,w=2,k=1,P=2,E=4,T=8,M=16,R=32,O=64,D=128,B=256,$=512,W=30,j="...",te=800,V=16,J=1,re=2,ee=3,K=1/0,G=9007199254740991,Z=17976931348623157e292,ce=0/0,me=4294967295,Re=me-1,xe=me>>>1,Se=[["ary",D],["bind",k],["bindKey",P],["curry",T],["curryRight",M],["flip",$],["partial",R],["partialRight",O],["rearg",B]],Me="[object Arguments]",_e="[object Array]",Je="[object AsyncFunction]",Xe="[object Boolean]",ft="[object Date]",_t="[object DOMException]",gt="[object Error]",dt="[object Function]",mt="[object GeneratorFunction]",Pe="[object Map]",et="[object Number]",Lt="[object Null]",it="[object Object]",St="[object Promise]",Yt="[object Proxy]",wt="[object RegExp]",Gt="[object Set]",ln="[object String]",on="[object Symbol]",Oe="[object Undefined]",Ze="[object WeakMap]",Zt="[object WeakSet]",qt="[object ArrayBuffer]",ke="[object DataView]",It="[object Float32Array]",Be="[object Float64Array]",ot="[object Int8Array]",un="[object Int16Array]",zn="[object Int32Array]",He="[object Uint8Array]",ht="[object Uint8ClampedArray]",tt="[object Uint16Array]",Dt="[object Uint32Array]",Qt=/\b__p \+= '';/g,er=/\b(__p \+=) '' \+/g,lo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,mi=/&(?:amp|lt|gt|quot|#39);/g,Os=/[&<>"']/g,L1=RegExp(mi.source),ba=RegExp(Os.source),Rh=/<%-([\s\S]+?)%>/g,A1=/<%([\s\S]+?)%>/g,Hu=/<%=([\s\S]+?)%>/g,Oh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dh=/^\w*$/,Bo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Od=/[\\^$.*+?()[\]{}|]/g,M1=RegExp(Od.source),Wu=/^\s+/,Dd=/\s/,I1=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ds=/\{\n\/\* \[wrapped with (.+)\] \*/,Vu=/,? & /,R1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,O1=/[()=,{}\[\]\/\s]/,D1=/\\(\\)?/g,N1=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Xa=/\w*$/,B1=/^[-+]0x[0-9a-f]+$/i,z1=/^0b[01]+$/i,F1=/^\[object .+?Constructor\]$/,$1=/^0o[0-7]+$/i,H1=/^(?:0|[1-9]\d*)$/,W1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ns=/($^)/,V1=/['\n\r\u2028\u2029\\]/g,Za="\\ud800-\\udfff",Wl="\\u0300-\\u036f",Vl="\\ufe20-\\ufe2f",Bs="\\u20d0-\\u20ff",Ul=Wl+Vl+Bs,Nh="\\u2700-\\u27bf",Uu="a-z\\xdf-\\xf6\\xf8-\\xff",zs="\\xac\\xb1\\xd7\\xf7",zo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Pn="\\u2000-\\u206f",Sn=" \\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",Fo="A-Z\\xc0-\\xd6\\xd8-\\xde",kr="\\ufe0e\\ufe0f",Gr=zs+zo+Pn+Sn,$o="['\u2019]",Fs="["+Za+"]",jr="["+Gr+"]",Qa="["+Ul+"]",Nd="\\d+",Gl="["+Nh+"]",Ja="["+Uu+"]",Bd="[^"+Za+Gr+Nd+Nh+Uu+Fo+"]",vi="\\ud83c[\\udffb-\\udfff]",Bh="(?:"+Qa+"|"+vi+")",zh="[^"+Za+"]",zd="(?:\\ud83c[\\udde6-\\uddff]){2}",$s="[\\ud800-\\udbff][\\udc00-\\udfff]",uo="["+Fo+"]",Hs="\\u200d",jl="(?:"+Ja+"|"+Bd+")",U1="(?:"+uo+"|"+Bd+")",Gu="(?:"+$o+"(?:d|ll|m|re|s|t|ve))?",ju="(?:"+$o+"(?:D|LL|M|RE|S|T|VE))?",Fd=Bh+"?",Yu="["+kr+"]?",xa="(?:"+Hs+"(?:"+[zh,zd,$s].join("|")+")"+Yu+Fd+")*",$d="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Yl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ht=Yu+Fd+xa,Fh="(?:"+[Gl,zd,$s].join("|")+")"+Ht,qu="(?:"+[zh+Qa+"?",Qa,zd,$s,Fs].join("|")+")",Ku=RegExp($o,"g"),$h=RegExp(Qa,"g"),Ho=RegExp(vi+"(?="+vi+")|"+qu+Ht,"g"),Un=RegExp([uo+"?"+Ja+"+"+Gu+"(?="+[jr,uo,"$"].join("|")+")",U1+"+"+ju+"(?="+[jr,uo+jl,"$"].join("|")+")",uo+"?"+jl+"+"+Gu,uo+"+"+ju,Yl,$d,Nd,Fh].join("|"),"g"),Hd=RegExp("["+Hs+Za+Ul+kr+"]"),Hh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wd=["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"],Wh=-1,cn={};
|
||
|
/* [wrapped with `+p+`] */
|
||
|
`)}function TU(c){return Ot(c)||bf(c)||!!(ng&&c&&c[ng])}function ru(c,p){var x=typeof c;return p=p??G,!!p&&(x=="number"||x!="symbol"&&H1.test(c))&&c>-1&&c%1==0&&c<p}function Xi(c,p,x){if(!lr(x))return!1;var A=typeof p;return(A=="number"?So(x)&&ru(p,x.length):A=="string"&&p in x)?us(x[p],c):!1}function Db(c,p){if(Ot(c))return!1;var x=typeof c;return x=="number"||x=="symbol"||x=="boolean"||c==null||Qo(c)?!0:Dh.test(c)||!Oh.test(c)||p!=null&&c in dn(p)}function LU(c){var p=typeof c;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?c!=="__proto__":c===null}function Nb(c){var p=ve(c),x=z[p];if(typeof x!="function"||!(p in Ut.prototype))return!1;if(c===x)return!0;var A=le(x);return!!A&&c===A[0]}function AU(c){return!!rc&&rc in c}var MU=tr?iu:Jb;function Rg(c){var p=c&&c.constructor,x=typeof p=="function"&&p.prototype||bn;return c===x}function Hk(c){return c===c&&!lr(c)}function Wk(c,p){return function(x){return x==null?!1:x[c]===p&&(p!==n||c in dn(x))}}function IU(c){var p=ay(c,function(A){return x.size===u&&x.clear(),A}),x=p.cache;return p}function RU(c,p){var x=c[1],A=p[1],N=x|A,F=N<(k|P|D),Y=A==D&&x==T||A==D&&x==B&&c[7].length<=p[8]||A==(D|B)&&p[7].length<=p[8]&&x==T;if(!(F||Y))return c;A&k&&(c[2]=p[2],N|=x&k?0:E);var X=p[3];if(X){var ue=c[3];c[3]=ue?ey(ue,X,p[4]):X,c[4]=ue?Uo(c[3],h):p[4]}return X=p[5],X&&(ue=c[5],c[5]=ue?Tg(ue,X,p[6]):X,c[6]=ue?Uo(c[5],h):p[6]),X=p[7],X&&(c[7]=X),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 OU(c){var p=[];if(c!=null)for(var x in dn(c))p.push(x);return p}function DU(c){return Xh.call(c)}function Vk(c,p,x){return p=vr(p===n?c.length-1:p,0),function(){for(var A=arguments,N=-1,F=vr(A.length-p,0),Y=ge(F);++N<F;)Y[N]=A[p+N];N=-1;for(var X=ge(p+1);++N<p;)X[N]=A[N];return X[p]=x(Y),yi(c,this,X)}}function Uk(c,p){return p.length<2?c:qs(c,Ar(p,0,-1))}function NU(c,p){for(var x=c.length,A=Kr(p.length,x),N=_i(c);A--;){var F=p[A];c[A]=ru(F,x)?N[F]:n}return c}function Bb(c,p){if(!(p==="constructor"&&typeof c[p]=="function")&&p!="__proto__")return c[p]}var Gk=Yk(hf),Og=nf||function(c,p){return vt.setTimeout(c,p)},zb=Yk(vp);function jk(c,p,x){var A=p+"";return zb(c,PU(A,BU(_U(A),x)))}function Yk(c){var p=0,x=0;return function(){var A=rg(),N=V-(A-x);if(x=A,N>0){if(++p>=te)return arguments[0]}else p=0;return c.apply(n,arguments)}}function ny(c,p){var x=-1,A=c.length,N=A-1;for(p=p===n?A:p;++x<p;){var F=df(x,N),Y=c[F];c[F]=c[x],c[x]=Y}return c.length=p,c}var qk=IU(function(c){var p=[];return c.charCodeAt(0)===46&&p.push(""),c.replace(Bo,function(x,A,N,F){p.push(N?F.replace(D1,"$1"):A||x)}),p});function il(c){if(typeof c=="string"||Qo(c))return c;var p=c+"";return p=="0"&&1/c==-K?"-0":p}function Sf(c){if(c!=null){try{return or.call(c)}catch{}try{return c+""}catch{}}return""}function BU(c,p){return Gn(Se,function(x){var A="_."+x[0];p&x[1]&&!Ri(c,A)&&c.push(A)}),c.sort()}function Kk(c){if(c instanceof Ut)return c.clone();var p=new ji(c.__wrapped__,c.__chain__);return p.__actions__=_i(c.__actions__),p.__index__=c.__index__,p.__values__=c.__values__,p}function zU(c,p,x){(x?Xi(c,p,x):p===n)?p=1:p=vr(Nt(p),0);var A=c==null?0:c.length;if(!A||p<1)return[];for(var N=0,F=0,Y=ge(rf(A/p));N<A;)Y[F++]=Ar(c,N,N+=p);return Y}function FU(c){for(var p=-1,x=c==null?0:c.length,A=0,N=[];++p<x;){var F=c[p];F&&(N[A++]=F)}return N}function $U(){var c=arguments.length;if(!c)return[];for(var p=ge(c-1),x=arguments[0],A=c;A--;)p[A-1]=arguments[A];return Ca(Ot(x)?_i(x):[x],Tr(p,1))}var HU=kt(function(c,p){return Mr(c)?vc(c,Tr(p,1,Mr,!0)):[]}),WU=kt(function(c,p){var x=Ta(p);return Mr(x)&&(x=n),Mr(c)?vc(c,Tr(p,1,Mr,!0),Te(x,2)):[]}),VU=kt(function(c,p){var x=Ta(p);return Mr(x)&&(x=n),Mr(c)?vc(c,Tr(p,1,Mr,!0),n,x):[]});function UU(c,p,x){var A=c==null?0:c.length;return A?(p=x||p===n?1:Nt(p),Ar(c,p<0?0:p,A)):[]}function GU(c,p,x){var A=c==null?0:c.length;return A?(p=x||p===n?1:Nt(p),p=A-p,Ar(c,0,p<0?0:p)):[]}function jU(c,p){return c&&c.length?_c(c,Te(p,3),!0,!0):[]}function YU(c,p){return c&&c.length?_c(c,Te(p,3),!0):[]}function qU(c,p,x,A){var N=c==null?0:c.length;return N?(x&&ty
|
||
|
`;c.replace(Ue,function(xt,jt,en,Jo,Zi,ea){return en||(en=Jo),Ae+=c.slice(we,ea).replace(V1,Us),jt&&(X=!0,Ae+=`' +
|
||
|
__e(`+jt+`) +
|
||
|
'`),Zi&&(ue=!0,Ae+=`';
|
||
|
`+Zi+`;
|
||
|
__p += '`),en&&(Ae+=`' +
|
||
|
((__t = (`+en+`)) == null ? '' : __t) +
|
||
|
'`),we=ea+xt.length,xt}),Ae+=`';
|
||
|
`;var bt=tn.call(p,"variable")&&p.variable;if(!bt)Ae=`with (obj) {
|
||
|
`+Ae+`
|
||
|
}
|
||
|
`;else if(O1.test(bt))throw new Et(s);Ae=(ue?Ae.replace(Qt,""):Ae).replace(er,"$1").replace(lo,"$1;"),Ae="function("+(bt||"obj")+`) {
|
||
|
`+(bt?"":`obj || (obj = {});
|
||
|
`)+"var __t, __p = ''"+(X?", __e = _.escape":"")+(ue?`, __j = Array.prototype.join;
|
||
|
function print() { __p += __j.call(arguments, '') }
|
||
|
`:`;
|
||
|
`)+Ae+`return __p
|
||
|
}`;var $t=PE(function(){return Jt(F,ct+"return "+Ae).apply(n,Y)});if($t.source=Ae,Vb($t))throw $t;return $t}function rq(c){return xn(c).toLowerCase()}function iq(c){return xn(c).toUpperCase()}function oq(c,p,x){if(c=xn(c),c&&(x||p===n))return Gi(c);if(!c||!(p=qi(p)))return c;var A=Oi(c),N=Oi(p),F=Vo(A,N),Y=es(A,N)+1;return ss(A,F,Y).join("")}function aq(c,p,x){if(c=xn(c),c&&(x||p===n))return c.slice(0,Z1(c)+1);if(!c||!(p=qi(p)))return c;var A=Oi(c),N=es(A,Oi(p))+1;return ss(A,0,N).join("")}function sq(c,p,x){if(c=xn(c),c&&(x||p===n))return c.replace(Wu,"");if(!c||!(p=qi(p)))return c;var A=Oi(c),N=Vo(A,Oi(p));return ss(A,N).join("")}function lq(c,p){var x=W,A=j;if(lr(p)){var N="separator"in p?p.separator:N;x="length"in p?Nt(p.length):x,A="omission"in p?qi(p.omission):A}c=xn(c);var F=c.length;if(Kl(c)){var Y=Oi(c);F=Y.length}if(x>=F)return c;var X=x-_a(A);if(X<1)return A;var ue=Y?ss(Y,0,X).join(""):c.slice(0,X);if(N===n)return ue+A;if(Y&&(X+=ue.length-X),Ub(N)){if(c.slice(X).search(N)){var we,Ce=ue;for(N.global||(N=Qd(N.source,xn(Xa.exec(N))+"g")),N.lastIndex=0;we=N.exec(Ce);)var Ae=we.index;ue=ue.slice(0,Ae===n?X:Ae)}}else if(c.indexOf(qi(N),X)!=X){var Ue=ue.lastIndexOf(N);Ue>-1&&(ue=ue.slice(0,Ue))}return ue+A}function uq(c){return c=xn(c),c&&L1.test(c)?c.replace(mi,I2):c}var cq=rl(function(c,p,x){return c+(x?" ":"")+p.toUpperCase()}),Yb=kp("toUpperCase");function EE(c,p,x){return c=xn(c),p=x?n:p,p===n?Yh(c)?Zd(c):q1(c):c.match(p)||[]}var PE=kt(function(c,p){try{return yi(c,n,p)}catch(x){return Vb(x)?x:new Et(x)}}),dq=nr(function(c,p){return Gn(p,function(x){x=il(x),Yo(c,x,Hb(c[x],c))}),c});function fq(c){var p=c==null?0:c.length,x=Te();return c=p?$n(c,function(A){if(typeof A[1]!="function")throw new Si(a);return[x(A[0]),A[1]]}):[],kt(function(A){for(var N=-1;++N<p;){var F=c[N];if(yi(F[0],this,A))return yi(F[1],this,A)}})}function hq(c){return rp(ai(c,g))}function qb(c){return function(){return c}}function pq(c,p){return c==null||c!==c?p:c}var gq=Mg(),mq=Mg(!0);function xo(c){return c}function Kb(c){return sr(typeof c=="function"?c:ai(c,g))}function vq(c){return xc(ai(c,g))}function yq(c,p){return Xs(c,ai(p,g))}var Sq=kt(function(c,p){return function(x){return os(x,c,p)}}),bq=kt(function(c,p){return function(x){return os(c,x,p)}});function Xb(c,p,x){var A=ci(p),N=sp(p,A);x==null&&!(lr(p)&&(N.length||!A.length))&&(x=p,p=c,c=this,N=sp(p,ci(p)));var F=!(lr(x)&&"chain"in x)||!!x.chain,Y=iu(c);return Gn(N,function(X){var ue=p[X];c[X]=ue,Y&&(c.prototype[X]=function(){var we=this.__chain__;if(F||we){var Ce=c(this.__wrapped__),Ae=Ce.__actions__=_i(this.__actions__);return Ae.push({func:ue,args:arguments,thisArg:c}),Ce.__chain__=we,Ce}return ue.apply(c,Ca([this.value()],arguments))})}),c}function xq(){return vt._===this&&(vt._=J1),this}function Zb(){}function wq(c){return c=Nt(c),kt(function(p){return wc(p,c)})}var Cq=Ig($n),_q=Ig(Fn),kq=Ig(Xu);function TE(c){return Db(c)?Vs(il(c)):as(c)}function Eq(c){return function(p){return c==null?n:qs(c,p)}}var Pq=y(),Tq=y(!0);function Qb(){return[]}function Jb(){return!1}function Lq(){return{}}function Aq(){return""}function Mq(){return!0}function Iq(c,p){if(c=Nt(c),c<1||c>G)return[];var x=me,A=Kr(c,me);p=Te(p),c-=me;for(var N=qd(A,p);++x<c;)p(x);return N}function Rq(c){return Ot(c)?$n(c,il):Qo(c)?[c]:_i(qk(xn(c)))}function Oq(c){var p=++Jd;return xn(c)+p}var Dq=Ep(function(c,p){return c+p},0),Nq=I("ceil"),Bq=Ep(function(c,p){return c/p},1),zq=I("floor");function Fq(c){return c&&c.length?Sr(c,xo,lp):n}function $q(c,p){return c&&c.length?Sr(c,Te(p,2),lp):n}function Hq(c){return Gd(c,xo)}function Wq(c,p){return Gd(c,Te(p,2))}function Vq(c){return c&&c.length?Sr(c,xo,Ks):n}function Uq(c,p){return c&&c.length?Sr(c,Te(p,2),Ks):n}var Gq=Ep(function(c,p){return c*p},1),jq=I("round"),Yq=Ep(function(c,p){return c-p},0);function qq(c){return c&&c.length?Yd(c,xo):0}function Kq(c,p){return c&&c.length?Yd(c,Te(p,2)):0}return z.after=vj,z.ary=oE,z.assign=iY,z.assignIn=SE,z.assignInWith=cy,z.assignWith=oY,z.at=aY,z.before=aE,z.bind=Hb,z.bindAll=dq,z.bindKey=sE,z.castArray=Lj,z.chain=nE,z.chunk=zU,z.comp
|
||
|
position: relative;
|
||
|
width: -moz-fit-content;
|
||
|
width: fit-content;
|
||
|
height: -moz-fit-content;
|
||
|
height: fit-content;
|
||
|
overflow: hidden;
|
||
|
-webkit-touch-callout: none; /* iOS Safari */
|
||
|
-webkit-user-select: none; /* Safari */
|
||
|
-khtml-user-select: none; /* Konqueror HTML */
|
||
|
-moz-user-select: none; /* Firefox */
|
||
|
-ms-user-select: none; /* Internet Explorer/Edge */
|
||
|
user-select: none;
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
}
|
||
|
.transform-component-module_content__2jYgh {
|
||
|
display: flex;
|
||
|
flex-wrap: wrap;
|
||
|
width: -moz-fit-content;
|
||
|
width: fit-content;
|
||
|
height: -moz-fit-content;
|
||
|
height: fit-content;
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
transform-origin: 0% 0%;
|
||
|
}
|
||
|
.transform-component-module_content__2jYgh img {
|
||
|
pointer-events: none;
|
||
|
}
|
||
|
`,jM={wrapper:"transform-component-module_wrapper__1_Fgj",content:"transform-component-module_content__2jYgh"};OCe(DCe);var NCe=function(e){var t=e.children,n=e.wrapperClass,r=n===void 0?"":n,i=e.contentClass,o=i===void 0?"":i,a=e.wrapperStyle,s=e.contentStyle,l=C.exports.useContext(IW).setComponents,u=C.exports.useRef(null),h=C.exports.useRef(null);return C.exports.useEffect(function(){var g=u.current,m=h.current;g!==null&&m!==null&&l&&l(g,m)},[]),b("div",{ref:u,className:"react-transform-wrapper "+jM.wrapper+" "+r,style:a,children:b("div",{ref:h,className:"react-transform-component "+jM.content+" "+o,style:s,children:t})})};function BCe({image:e,alt:t,ref:n,styleClass:r}){const[i,o]=C.exports.useState(0),[a,s]=C.exports.useState(!1),l=()=>{o(i===-3?0:i-1)},u=()=>{o(i===3?0:i+1)},h=()=>{s(!a)};return b(RCe,{centerOnInit:!0,minScale:.1,initialPositionX:50,initialPositionY:50,children:({zoomIn:g,zoomOut:m,resetTransform:v,centerView:S})=>Q(An,{children:[Q("div",{className:"lightbox-image-options",children:[b(pt,{icon:b(O4e,{}),"aria-label":"Zoom In",tooltip:"Zoom In",onClick:()=>g(),fontSize:20}),b(pt,{icon:b(D4e,{}),"aria-label":"Zoom Out",tooltip:"Zoom Out",onClick:()=>m(),fontSize:20}),b(pt,{icon:b(I4e,{}),"aria-label":"Rotate Left",tooltip:"Rotate Left",onClick:l,fontSize:20}),b(pt,{icon:b(R4e,{}),"aria-label":"Rotate Right",tooltip:"Rotate Right",onClick:u,fontSize:20}),b(pt,{icon:b(m5e,{}),"aria-label":"Flip Image",tooltip:"Flip Image",onClick:h,fontSize:20}),b(pt,{icon:b(q_,{}),"aria-label":"Reset",tooltip:"Reset",onClick:()=>{v(),o(0),s(!1)},fontSize:20})]}),b(NCe,{wrapperStyle:{width:"100%",height:"100%"},children:b("img",{style:{transform:`rotate(${i*90}deg) scaleX(${a?-1:1})`,width:"100%"},src:e,alt:t,ref:n,className:r||"",onLoad:()=>S(1,0,"easeOut")})})]})})}function zCe(){const e=qe(),t=Le(m=>m.options.isLightBoxOpen),{viewerImageToDisplay:n,shouldShowImageDetails:r,isOnFirstImage:i,isOnLastImage:o}=Le($H),[a,s]=C.exports.useState(!1),l=()=>{s(!0)},u=()=>{s(!1)},h=()=>{e(pk())},g=()=>{e(hk())};return st("Esc",()=>{t&&e(bu(!1))},[t]),Q("div",{className:"lightbox-container",children:[b(pt,{icon:b(M4e,{}),"aria-label":"Exit Viewer",className:"lightbox-close-btn",onClick:()=>{e(bu(!1))},fontSize:20}),Q("div",{className:"lightbox-display-container",children:[Q("div",{className:"lightbox-preview-wrapper",children:[b(OH,{}),!r&&Q("div",{className:"current-image-next-prev-buttons",children:[b("div",{className:"next-prev-button-trigger-area prev-button-trigger-area",onMouseOver:l,onMouseOut:u,children:a&&!i&&b(Va,{"aria-label":"Previous image",icon:b(lH,{className:"next-prev-button"}),variant:"unstyled",onClick:h})}),b("div",{className:"next-prev-button-trigger-area next-button-trigger-area",onMouseOver:l,onMouseOut:u,children:a&&!o&&b(Va,{"aria-label":"Next image",icon:b(uH,{className:"next-prev-button"}),variant:"unstyled",onClick:g})})]}),n&&Q(An,{children:[b(BCe,{image:n.url,styleClass:"lightbox-image"}),r&&b(FH,{image:n})]})]}),b(SW,{})]})]})}const FCe=lt([J_],e=>{const{seamSize:t,seamBlur:n,seamStrength:r,seamSteps:i}=e;return{seamSize:t,seamBlur:n,seamStrength:r,seamSteps:i}},{memoizeOptions:{resultEqualityCheck:We.isEqual}}),$Ce=()=>{const e=qe(),{seamSize:t,seamBlur:n,seamStrength:r,seamSteps:i}=Le(FCe);return Q(rn,{direction:"column",gap:"1rem",children:[b(la,{sliderMarkRightOffset:-6,label:"Seam Size",min:1,max:256,sliderNumberInputProps:{max:512},value:t,onChange:o=>{e(LI(o))},handleReset:()=>e(LI(96)),withInput:!0,withSliderMarks:!0,withReset:!0}),b(la,{sliderMarkRightOffset:-4,label:"Seam Blur",min:0,max:64,sliderNumberInputProps:{max:512},value:n,onChange:o=>{e(TI(o))},handleReset:()=>{e(TI(16))},withInput:!0,withSliderMarks:!0,withReset:!0}),b(la,{sliderMarkRightOffset:-2,label:"Seam Strength",min:.01,max:.99,step:.01,value:r,onChange:o=>{e(MI(o))},handleReset:()=>{e(MI(.7))},withInput:!0,withSliderMarks:!0,withReset:!0}),b(la,{sliderMarkRightOffset:-4,label:"Seam Steps",min:1,max:32,sliderNumberInputProps:{max:100},value:i,onChange:o=>{e(AI(o))},handleReset:()=>{e(AI(10))},withInput:!0,withSliderMark
|
||
|
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,s=o!==Vp&&o!==void 0,l=a!==Vp&&a!==void 0,u=this.padding(),h=o-u*2,g=a-u*2,m=0,v=this.wrap(),S=v!==dI,w=v!==p9e&&S,k=this.ellipsis();this.textArr=[],Xw().font=this._getContextFont();for(var P=k?this._getTextWidth(Kw):0,E=0,T=t.length;E<T;++E){var M=t[E],R=this._getTextWidth(M);if(s&&R>h)for(;M.length>0;){for(var O=0,D=M.length,B="",$=0;O<D;){var W=O+D>>>1,j=M.slice(0,W+1),te=this._getTextWidth(j)+P;te<=h?(O=W+1,B=j,$=te):D=W}if(B){if(w){var V,J=M[B.length],re=J===m3||J===uI;re&&$<=h?V=B.length:V=Math.max(B.lastIndexOf(m3),B.lastIndexOf(uI))+1,V>0&&(O=V,B=B.slice(0,O),$=this._getTextWidth(B))}B=B.trimRight(),this._addTextLine(B),r=Math.max(r,$),m+=i;var ee=this._shouldHandleEllipsis(m);if(ee){this._tryToAddEllipsisToLastLine();break}if(M=M.slice(O),M=M.trimLeft(),M.length>0&&(R=this._getTextWidth(M),R<=h)){this._addTextLine(M),m+=i,r=Math.max(r,R);break}}else break}else this._addTextLine(M),m+=i,r=Math.max(r,R),this._shouldHandleEllipsis(m)&&E<T-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!==Vp&&i!==void 0,a=this.padding(),s=i-a*2,l=this.wrap(),u=l!==dI;return!u||o&&t+r>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==Vp&&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+Kw)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+Kw)}}getStrokeScaleEnabled(){return!0}}pr.prototype._fillFunc=v9e;pr.prototype._strokeFunc=y9e;pr.prototype.className=l9e;pr.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];gr(pr);q.overWriteSetter(pr,"width",_k());q.overWriteSetter(pr,"height",_k());q.addGetterSetter(pr,"fontFamily","Arial");q.addGetterSetter(pr,"fontSize",12,Fe());q.addGetterSetter(pr,"fontStyle",iV);q.addGetterSetter(pr,"fontVariant",iV);q.addGetterSetter(pr,"padding",0,Fe());q.addGetterSetter(pr,"align",rV);q.addGetterSetter(pr,"verticalAlign",u9e);q.addGetterSetter(pr,"lineHeight",1,Fe());q.addGetterSetter(pr,"wrap",h9e);q.addGetterSetter(pr,"ellipsis",!1,Is());q.addGetterSetter(pr,"letterSpacing",0,Fe());q.addGetterSetter(pr,"text","",k1());q.addGetterSetter(pr,"textDecoration","");var b9e="",aV="normal";function sV(e){e.fillText(this.partialText,0,0)}function lV(e){e.strokeText(this.partialText,0,0)}class ri extends Ie{constructor(t){super(t),this.dummyCanvas=de.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 de.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this
|
||
|
* @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 a8e=function(t){var n={},r=C.exports,i=p0.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"),S=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),R=Symbol.iterator;function O(d){return d===null||typeof d!="object"?null:(d=R&&d[R]||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 k:return"Suspense";case P:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case S: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 E:return f=d.displayName||null,f!==null?f:D(d.type)||"Memo";case T:f=d._payload,d=d._init;try{return D(d(f))}catch{}}return null}function B(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 W(d){if($(d)!==d)throw Error(a(188))}function j(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 L=y.return;if(L===null)break;var I=L.alternate;if(I===null){if(_=L.return,_!==null){y=_;continue}break}if(L.child===I.child){for(I=L.child;I;){if(I===y)return W(L),d;if(I===_)return W(L),f;I=I.sibling}throw Error(a(188))}if(y.return!==_.return)y=L,_=I;else{for(var H=!1,ae=L.child;ae;){if(ae===y){H=!0,y=L,_=I;break}if(ae===_){H=!0,_=L,y=I;break}ae=ae.sibling}if(!H){for(ae=I.child;ae;){if(ae===y){H=!0,y=I,_=L;break}if(ae===_){H=!0,_=I,y=L;break}ae=ae.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 te(d){return d=j(d),d!==null?V(d):null}function V(d){if(d.tag===5||d.tag===6)return d;for(d=d.child;d!==null;){var f=V(d);if(f!==null)return f;d=d.sibling}return null}function J(d){if(d.tag===5||d.tag===6)return d;for(d=d.child;d!==null;){if(d.tag!==4){var f=J(d);if(f!==null)return f}d=d.sibling}return null}var re=Array.isArray,ee=t.getPublicInstance,K=t.getRootHostContext,G=t.getChildHostContext,Z=t.prepareForCommit,ce=t.resetAfterCommit,me=t.createInstance,Re=t.appendInitialChild,xe=t.finalizeInitialChildren,Se=t.prepareUpdate,Me=t.shouldSetTextContent,_e=t.createTextInstance,Je=t.scheduleTimeout,Xe=t.cancelTimeout,ft=t.noTimeout,_t=t.isPrimaryRenderer,gt=t.supportsMutation,dt=t.supportsP
|
||
|
`+Wl+d}var Bs=!1;function Ul(d,f){if(!d||Bs)return"";Bs=!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(Ne){var _=Ne}Reflect.construct(d,[],f)}else{try{f.call()}catch(Ne){_=Ne}d.call(f.prototype)}else{try{throw Error()}catch(Ne){_=Ne}d()}}catch(Ne){if(Ne&&_&&typeof Ne.stack=="string"){for(var L=Ne.stack.split(`
|
||
|
`),I=_.stack.split(`
|
||
|
`),H=L.length-1,ae=I.length-1;1<=H&&0<=ae&&L[H]!==I[ae];)ae--;for(;1<=H&&0<=ae;H--,ae--)if(L[H]!==I[ae]){if(H!==1||ae!==1)do if(H--,ae--,0>ae||L[H]!==I[ae]){var fe=`
|
||
|
`+L[H].replace(" at new "," at ");return d.displayName&&fe.includes("<anonymous>")&&(fe=fe.replace("<anonymous>",d.displayName)),fe}while(1<=H&&0<=ae);break}}}finally{Bs=!1,Error.prepareStackTrace=y}return(d=d?d.displayName||d.name:"")?Vl(d):""}var Nh=Object.prototype.hasOwnProperty,Uu=[],zs=-1;function zo(d){return{current:d}}function Pn(d){0>zs||(d.current=Uu[zs],Uu[zs]=null,zs--)}function Sn(d,f){zs++,Uu[zs]=d.current,d.current=f}var Fo={},kr=zo(Fo),Gr=zo(!1),$o=Fo;function Fs(d,f){var y=d.type.contextTypes;if(!y)return Fo;var _=d.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===f)return _.__reactInternalMemoizedMaskedChildContext;var L={},I;for(I in y)L[I]=f[I];return _&&(d=d.stateNode,d.__reactInternalMemoizedUnmaskedChildContext=f,d.__reactInternalMemoizedMaskedChildContext=L),L}function jr(d){return d=d.childContextTypes,d!=null}function Qa(){Pn(Gr),Pn(kr)}function Nd(d,f,y){if(kr.current!==Fo)throw Error(a(168));Sn(kr,f),Sn(Gr,y)}function Gl(d,f,y){var _=d.stateNode;if(f=f.childContextTypes,typeof _.getChildContext!="function")return y;_=_.getChildContext();for(var L in _)if(!(L in f))throw Error(a(108,B(d)||"Unknown",L));return o({},y,_)}function Ja(d){return d=(d=d.stateNode)&&d.__reactInternalMemoizedMergedChildContext||Fo,$o=kr.current,Sn(kr,d),Sn(Gr,Gr.current),!0}function Bd(d,f,y){var _=d.stateNode;if(!_)throw Error(a(169));y?(d=Gl(d,f,$o),_.__reactInternalMemoizedMergedChildContext=d,Pn(Gr),Pn(kr),Sn(kr,d)):Pn(Gr),Sn(Gr,y)}var vi=Math.clz32?Math.clz32:zd,Bh=Math.log,zh=Math.LN2;function zd(d){return d>>>=0,d===0?32:31-(Bh(d)/zh|0)|0}var $s=64,uo=4194304;function Hs(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 jl(d,f){var y=d.pendingLanes;if(y===0)return 0;var _=0,L=d.suspendedLanes,I=d.pingedLanes,H=y&268435455;if(H!==0){var ae=H&~L;ae!==0?_=Hs(ae):(I&=H,I!==0&&(_=Hs(I)))}else H=y&~L,H!==0?_=Hs(H):I!==0&&(_=Hs(I));if(_===0)return 0;if(f!==0&&f!==_&&(f&L)===0&&(L=_&-_,I=f&-f,L>=I||L===16&&(I&4194240)!==0))return f;if((_&4)!==0&&(_|=y&16),f=d.entangledLanes,f!==0)for(d=d.entanglements,f&=_;0<f;)y=31-vi(f),L=1<<y,_|=d[y],f&=~L;return _}function U1(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 Gu(d,f){for(var y=d.suspendedLanes,_=d.pingedLanes,L=d.expirationTimes,I=d.pendingLanes;0<I;){var H=31-vi(I),ae=1<<H,fe=L[H];fe===-1?((ae&y)===0||(ae&_)!==0)&&(L[H]=U1(ae,f)):fe<=f&&(d.expiredLanes|=ae),I&=~ae}}function ju(d){return d=d.pendingLanes&-1073741825,d!==0?d:d&1073741824?1073741824:0}function Fd(){var d=$s;return $s<<=1,($s&4194240)===0&&($s=64),d}function Yu(d){for(var f=[],y=0;31>y;y++)f.push(d);return f}function xa(d,f,y){d.pendingLanes|=f,f!==536870912&&(d.suspendedLanes=0,d.pingedLanes=0),d=d.eventTimes,f=31-vi(f),d[f]=y}function $d(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 L=31-vi(y),I=1<<L;f[L]=0,_[L]=-1,d[L]=-1,y&=~I}}function Yl(d,f){var y=d.entangledLanes|=f;for(d=d.entanglements;y;){var _=31-vi(y),L=1<<_;L&f|d[_]&f&&(d[_]|=f),y&=~L}}var Ht=0;function Fh(d){return d&=-d,1<d?4<d?(d&268435455)!==0?16:536870912:4:1}var qu=i.unstable_scheduleCallback,Ku
|
||
|
Error generating stack: `+I.message+`
|
||
|
`+I.stack}return{value:d,source:f,stack:L,digest:null}}function sg(d,f,y){return{value:d,source:null,stack:y??null,digest:f??null}}function pc(d,f){try{console.error(f.value)}catch(y){setTimeout(function(){throw y})}}var af=typeof WeakMap=="function"?WeakMap:Map;function lg(d,f,y){y=ts(-1,y),y.tag=3,y.payload={element:null};var _=f.value;return y.callback=function(){cf||(cf=!0,df=_),pc(d,f)},y}function z(d,f,y){y=ts(-1,y),y.tag=3;var _=d.type.getDerivedStateFromError;if(typeof _=="function"){var L=f.value;y.payload=function(){return _(L)},y.callback=function(){pc(d,f)}}var I=d.stateNode;return I!==null&&typeof I.componentDidCatch=="function"&&(y.callback=function(){pc(d,f),typeof _!="function"&&(Qs===null?Qs=new Set([this]):Qs.add(this));var H=f.stack;this.componentDidCatch(f.value,{componentStack:H!==null?H:""})}),y}function Ql(d,f,y){var _=d.pingCache;if(_===null){_=d.pingCache=new af;var L=new Set;_.set(f,L)}else L=_.get(f),L===void 0&&(L=new Set,_.set(f,L));L.has(y)||(L.add(y),d=J2.bind(null,d,f,y),f.then(d,d))}function sf(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 ji(d,f,y,_,L){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=ts(-1,1),f.tag=2,Us(y,f,1))),y.lanes|=1),d):(d.flags|=65536,d.lanes=L,d)}var Ut=s.ReactCurrentOwner,Di=!1;function xi(d,f,y,_){f.child=d===null?R2(f,null,y,_):tc(f,d.child,y,_)}function H2(d,f,y,_,L){y=y.render;var I=f.ref;return Ju(f,L),_=eg(d,f,y,_,I,L),y=ic(),d!==null&&!Di?(f.updateQueue=d.updateQueue,f.flags&=-2053,d.lanes&=~L,rs(d,f,L)):(Fn&&y&&yi(f),f.flags|=1,xi(d,f,_,L),f.child)}function js(d,f,y,_,L){if(d===null){var I=y.type;return typeof I=="function"&&!Lg(I)&&I.defaultProps===void 0&&y.compare===null&&y.defaultProps===void 0?(f.tag=15,f.type=I,W2(d,f,I,_,L)):(d=gf(y.type,null,_,f,f.mode,L),d.ref=f.ref,d.return=f,f.child=d)}if(I=d.child,(d.lanes&L)===0){var H=I.memoizedProps;if(y=y.compare,y=y!==null?y:ql,y(H,_)&&d.ref===f.ref)return rs(d,f,L)}return f.flags|=1,d=Ki(I,_),d.ref=f.ref,d.return=f,f.child=d}function W2(d,f,y,_,L){if(d!==null){var I=d.memoizedProps;if(ql(I,_)&&d.ref===f.ref)if(Di=!1,f.pendingProps=_=I,(d.lanes&L)!==0)(d.flags&131072)!==0&&(Di=!0);else return f.lanes=d.lanes,rs(d,f,L)}return ug(d,f,y,_,L)}function V2(d,f,y){var _=f.pendingProps,L=_.children,I=d!==null?d.memoizedState:null;if(_.mode==="hidden")if((f.mode&1)===0)f.memoizedState={baseLanes:0,cachePool:null,transitions:null},Sn(Ks,Yi),Yi|=y;else{if((y&1073741824)===0)return d=I!==null?I.baseLanes|y:y,f.lanes=f.childLanes=1073741824,f.memoizedState={baseLanes:d,cachePool:null,transitions:null},f.updateQueue=null,Sn(Ks,Yi),Yi|=d,null;f.memoizedState={baseLanes:0,cachePool:null,transitions:null},_=I!==null?I.baseLanes:y,Sn(Ks,Yi),Yi|=_}else I!==null?(_=I.baseLanes|y,f.memoizedState=null):_=y,Sn(Ks,Yi),Yi|=_;return xi(d,f,L,y),f.child}function U2(d,f){var y=f.ref;(d===null&&y!==null||d!==null&&d.ref!==y)&&(f.flags|=512,f.flags|=2097152)}function ug(d,f,y,_,L){var I=jr(y)?$o:kr.current;return I=Fs(f,I),Ju(f,L),y=eg(d,f,y,_,I,L),_=ic(),d!==null&&!Di?(f.updateQueue=d.updateQueue,f.flags&=-2053,d.lanes&=~L,rs(d,f,L)):(Fn&&_&&yi(f),f.flags|=1,xi(d,f,y,L),f.child)}function G2(d,f,y,_,L){if(jr(y)){var I=!0;Ja(f)}else I=!1;if(Ju(f,L),f.stateNode===null)Ea(d,f),A2(f,y,_),X1(f,y,_,L),_=!0;else if(d===null){var H=f.stateNode,ae=f.memoizedProps;H.props=ae;var fe=H.context,Ne=y.contextType;typeof Ne=="object"&&Ne!==null?Ne=Gi(Ne):(Ne=jr(y)?$o:kr.current,Ne=Fs(f,Ne));var Qe=y.getDerivedStateFromProps,At=typeof Qe=="function"||typeof H.getSnapshotBeforeUpdate=="function";At||typeof H.UNSAFE_componentWillReceiveProps!="function"&&typeof H.componentWillReceiveProps!="function"||(ae!==_||fe!==Ne)&&M2(f,H,_,Ne),es=!1;var je=f.memoizedState;H.state=je,Yh(f,_,H,L),fe=f.memoizedState,ae!==_||je!==fe||Gr.current||es?(typeof Qe=="function"&&(Kh(f,y,Qe,_),fe=f.memoizedState),(ae=es||Xd(f,y,ae,_,je,fe,Ne))?(At||typeof H.UNSAFE_componentWillMount!="function"&
|
||
|
`+(_.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 ee(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:Ep,findFiberByHostInstance:d.findFiberByHostInstance||Ig,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{cn=f.inject(d),Wt=f}catch{}d=!!f.checkDCE}}return d},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(d,f,y,_){if(!wt)throw Error(a(363));d=bg(d,f);var L=qt(d,y,_).disconnect;return{disconnect:function(){L()}}},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 L=f.current,I=li(),H=Ar(L);return y=Ag(y),f.context===null?f.context=y:f.pendingContext=y,f=ts(I,H),f.payload={element:d},_=_===void 0?null:_,_!==null&&(f.callback=_),d=Us(L,f,H),d!==null&&(vo(d,L,H,I),jh(d,L,H)),H},n};(function(e){e.exports=a8e})(dV);const s8e=Q7(dV.exports);var Lk={exports:{}},Ih={};/**
|
||
|
* @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.
|
||
|
*/Ih.ConcurrentRoot=1;Ih.ContinuousEventPriority=4;Ih.DefaultEventPriority=16;Ih.DiscreteEventPriority=1;Ih.IdleEventPriority=536870912;Ih.LegacyRoot=0;(function(e){e.exports=Ih})(Lk);const gI={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let mI=!1,vI=!1;const Ak=".react-konva-event",l8e=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.
|
||
|
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
|
||
|
`,u8e=`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
|
||
|
`,c8e={};function Sb(e,t,n=c8e){if(!mI&&"zIndex"in t&&(console.warn(u8e),mI=!0),!vI&&t.draggable){var r=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn(l8e),vI=!0)}for(var o in n)if(!gI[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(!gI[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)),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),Rd(e));for(var l in v)e.on(l+Ak,v[l])}function Rd(e){if(!rt.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const fV={},d8e={};gh.Node.prototype._applyProps=Sb;function f8e(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),Rd(e)}function h8e(e,t,n){let r=gh[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=gh.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 Sb(l,o),l}function p8e(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function g8e(e,t,n){return!1}function m8e(e){return e}function v8e(){return null}function y8e(){return null}function S8e(e,t,n,r){return d8e}function b8e(){}function x8e(e){}function w8e(e,t){return!1}function C8e(){return fV}function _8e(){return fV}const k8e=setTimeout,E8e=clearTimeout,P8e=-1;function T8e(e,t){return!1}const L8e=!1,A8e=!0,M8e=!0;function I8e(e,t){t.parent===e?t.moveToTop():e.add(t),Rd(e)}function R8e(e,t){t.parent===e?t.moveToTop():e.add(t),Rd(e)}function hV(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),Rd(e)}function O8e(e,t,n){hV(e,t,n)}function D8e(e,t){t.destroy(),t.off(Ak),Rd(e)}function N8e(e,t){t.destroy(),t.off(Ak),Rd(e)}function B8e(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function z8e(e,t,n){}function F8e(e,t,n,r,i){Sb(e,i,r)}function $8e(e){e.hide(),Rd(e)}function H8e(e){}function W8e(e,t){(t.visible==null||t.visible)&&e.show()}function V8e(e,t){}function U8e(e){}function G8e(){}const j8e=()=>Lk.exports.DefaultEventPriority,Y8e=Object.freeze(Object.defineProperty({__proto__:null,appendInitialChild:f8e,createInstance:h8e,createTextInstance:p8e,finalizeInitialChildren:g8e,getPublicInstance:m8e,prepareForCommit:v8e,preparePortalMount:y8e,prepareUpdate:S8e,resetAfterCommit:b8e,resetTextContent:x8e,shouldDeprioritizeSubtree:w8e,getRootHostContext:C8e,getChildHostContext:_8e,scheduleTimeout:k8e,cancelTimeout:E8e,noTimeout:P8e,shouldSetTextContent:T8e,isPrimaryRenderer:L8e,warnsIfNotActing:A8e,supportsMutation:M8e,appendChild:I8e,appendChildToContainer:R8e,insertBefore:hV,insertInContainerBefore:O8e,removeChild:D8e,removeChildFromContainer:N8e,commitTextUpdate:B8e,commitMount:z8e,commitUpdate:F8e,hideInstance:$8e,hideTextInstance:H8e,unhideInstance:W8e,unhideTextInstance:V8e,clearContainer:U8e,detachDeletedInstance:G8e,getCurrentEventPriority:j8e,now:p0.exports.unstable_now,idlePriority:p0.exports.unstable_IdlePriority,run:p0.exports.unstable_runWithPriority},Symbol.toStringTag,{value:"Module"}));var q8e=Object.defineProperty,K8e=Object.defineProperties,X8e=Object.getOwnPropertyDescriptors,yI=Object.getOwnPropertySymbols,Z8e=Object.prototype.hasOwnProperty,Q8e=Object.prototype.propertyIsEnumerable,SI=(e,t,n)=>t in e?q8e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bI=(e,t)=>{for(var n in t||(t={}))Z8e.call(t,n)&&SI(e,n,t[n]);if(yI)
|
||
|
<!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),S_e=e=>{const{...t}=e,{maskColorString:n,stageCoordinates:r,stageDimensions:i,stageScale:o}=Le(y_e),[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=wI(n)},[a,n]),C.exports.useEffect(()=>{!a||(a.src=wI(n))},[a,n]),C.exports.useEffect(()=>{const m=setInterval(()=>u(v=>(v+1)%5),50);return()=>clearInterval(m)},[]),!a||!Jr.exports.isNumber(r.x)||!Jr.exports.isNumber(r.y)||!Jr.exports.isNumber(o)||!Jr.exports.isNumber(i.width)||!Jr.exports.isNumber(i.height)?null:b(Ru,{ref:h,offsetX:r.x/o,offsetY:r.y/o,height:i.height/o,width:i.width/o,fillPatternImage:a,fillPatternOffsetY:Jr.exports.isNumber(l)?l:0,fillPatternRepeat:"repeat",fillPatternScale:{x:1/o,y:1/o},listening:!0,globalCompositeOperation:"source-in",...t})},b_e=lt([kn],e=>{const{isMoveStageKeyHeld:t,stageScale:n}=e;return{isMoveStageKeyHeld:t,stageScale:n}},{memoizeOptions:{resultEqualityCheck:We.isEqual}}),x_e=e=>{const t=qe(),{isMoveStageKeyHeld:n,stageScale:r}=Le(b_e);return C.exports.useCallback(i=>{if(!e.current||n)return;i.evt.preventDefault();const o=e.current.getPointerPosition();if(!o)return;const a={x:(o.x-e.current.x())/r,y:(o.y-e.current.y())/r};let s=i.evt.deltaY;i.evt.ctrlKey&&(s=-s);const l=We.clamp(r*kSe**s,ESe,PSe),u={x:o.x-a.x*l,y:o.y-a.y*l};t(sbe(l)),t(IH(u))},[e,n,r,t])},Rk=e=>{const t=e.getPointerPosition(),n=e.getAbsoluteTransform().copy();if(!t||!n)return;const r=n.invert().point(t);return{x:r.x,y:r.y}},bV=()=>{const e=qe(),t=jv(),n=SV();return{updateColorUnderCursor:()=>{if(!n||!t)return;const r=n.getPointerPosition();if(!r)return;const i=jp.pixelRatio,[o,a,s,l]=t.getContext().getImageData(r.x*i,r.y*i,1,1).data;e(YSe({r:o,g:a,b:s,a:l}))},commitColorUnderCursor:()=>{e(DSe())}}},w_e=lt([_r,kn,Ka],(e,t,n)=>{const{tool:r}=t;return{tool:r,activeTabName:e,isStaging:n}},{memoizeOptions:{resultEqualityCheck:We.isEqual}}),C_e=e=>{const t=qe(),{tool:n,isStaging:r}=Le(w_e),{commitColorUnderCursor:i}=bV();return C.exports.useCallback(o=>{if(!e.current)return;if(e.current.container().focus(),n==="move"||r){t(v5(!0));return}if(n==="colorPicker"){i();return}const a=Rk(e.current);!a||(o.evt.preventDefault(),t(LH(!0)),t(RSe([a.x,a.y])))},[e,n,r,t,i])},__e=lt([_r,kn,Ka],(e,t,n)=>{const{tool:r,isDrawing:i}=t;return{tool:r,isDrawing:i,activeTabName:e,isStaging:n}},{memoizeOptions:{resultEqualityCheck:We.isEqual}}),k_e=(e,t)=>{const n=qe(),{tool:r,isDrawing:i,isStaging:o}=Le(__e);return C.exports.useCallback(()=>{if(r==="move"||o){n(v5(!1));return}if(!t.current&&i&&e.current){const a=Rk(e.current);if(!a)return;n(EH([a.x,a.y]))}else t.current=!1;n(LH(!1))},[t,n,i,o,e,r])},E_e=lt([_r,kn,Ka],(e,t,n)=>{const{tool:r,isDrawing:i}=t;return{tool:r,isDrawing:i,activeTabName:e,isStaging:n}},{memoizeOptions:{resultEqualityCheck:We.isEqual}}),P_e=(e,t,n)=>{const r=qe(),{isDrawing:i,tool:o,isStaging:a}=Le(E_e),{updateColorUnderCursor:s}=bV();return C.exports.useCallback(()=>{if(!e.current)return;const l=Rk(e.current);if(!!l){if(r(qSe(l)),n.current=l,o==="colorPicker"){s();return}!i||o==="move"||a||(t.current=!0,r(EH([l.x,l.y])))}},[t,r,i,a,n,e,o,s])},T_e=()=>{const e=qe();return C.exports.useCallback(()=>{e(zSe())},[e])},L_e=lt([kn,Ka],(e,t)=>{const{tool:n,isMovingBoundingBox:r}=e;return{tool:n,isStaging:t,isMovingBoundingBox:r}},{memoizeOptions:{resultEqualityCheck:We.isEqual}}),A_e=()=>{const e=qe(),{tool:t,isStaging:n,isMovingBoundingBox:r}=Le(L_e);return{handleDragStart:C.exports.useCallback(()=>{!((t==="move"||n)&&!r)||e(v5(!0))},[e,r,n,t]),handleDragMove:C.exports.useCallback(i=>{if(!((t==="move"||n)&&!r))return;const o={x:i.target.x(),y:i.target.y()};e(IH(o))},[e,r,n,t]),handleDragEnd:C.exports.useCallback(()=>{!((t==="move"||n)&&!r)||e(v5(!1))},[e,r,n,t])}};var Ef=C.exports,M_e=function(t,n,r){const i=Ef.useRef("loading"),o=Ef.useRef(),[a,s]=Ef.useState(0),l=Ef.useRef(),u=Ef.useRef(),h=Ef.useRef();return(l.current!==t||u.current!==n||h.current!==r)&&(i.current="
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UPe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GPe(e){if(Array.isArray(e))return q7(e)}function YI(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 qI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YI(Object(n),!0).forEach(function(r){fU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yv(e,t){return qPe(e)||YPe(e,t)||hU(e,t)||jPe()}function jPe(){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 hU(e,t){if(!!e){if(typeof e=="string")return q7(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 q7(e,t)}}function q7(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 YPe(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 qPe(e){if(Array.isArray(e))return e}var KPe="file-invalid-type",XPe="file-too-large",ZPe="file-too-small",QPe="too-many-files",JPe=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:KPe,message:"File type must be ".concat(n)}},KI=function(t){return{code:XPe,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},XI=function(t){return{code:ZPe,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},eTe={code:QPe,message:"Too many files"};function pU(e,t){var n=e.type==="application/x-moz-file"||WPe(e,t);return[n,n?null:JPe(t)]}function gU(e,t,n){if(Bf(e.size))if(Bf(t)&&Bf(n)){if(e.size>n)return[!1,KI(n)];if(e.size<t)return[!1,XI(t)]}else{if(Bf(t)&&e.size<t)return[!1,XI(t)];if(Bf(n)&&e.size>n)return[!1,KI(n)]}return[!0,null]}function Bf(e){return e!=null}function tTe(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=pU(l,n),h=Yv(u,1),g=h[0],m=gU(l,r,i),v=Yv(m,1),S=v[0],w=s?s(l):null;return g&&S&&!w})}function T5(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function C3(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 ZI(e){e.preventDefault()}function nTe(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function rTe(e){return e.indexOf("Edge/")!==-1}function iTe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return nTe(e)||rTe(e)}function ul(){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!T5(r)&&s&&s.apply(void 0,[r].concat(o)),T5(r)})}}function oTe(){return"showOpenFilePicker"in window}function aTe(e){if(Bf(e)){var t=Object.entries(e).filter(function(n){var r=Yv(n,2),i=r[0],o=r[1],a=!0;return mU(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(vU))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=Yv(r,2),o=i[0],a=i[1];return qI(qI({},n),{},fU({},o,a))},{});return[{description:"Files",accept:t}]}return e}function sTe(e){if(Bf(e))return Object.entries(e).reduce(function(t,n){var r=Yv(n,2),i=r[0],o=r[1];return[].concat(jI(t),[i],jI(o))},[]).filter(function(t){return mU(t)||vU(t)}).join(",")}function lTe(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function uTe(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function mU(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function vU(e){return/^.*\.[\w]+$/.test(e)}var cTe=["children"],dTe=["open"],fTe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","o
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mTe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vTe(e){if(Array.isArray(e))return K7(e)}function Jw(e,t){return bTe(e)||STe(e,t)||yU(e,t)||yTe()}function yTe(){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 yU(e,t){if(!!e){if(typeof e=="string")return K7(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 K7(e,t)}}function K7(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 STe(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 bTe(e){if(Array.isArray(e))return 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 ur(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){X7(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 X7(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=xTe(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 xTe(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 zk=C.exports.forwardRef(function(e,t){var n=e.children,r=L5(e,cTe),i=bU(r),o=i.open,a=L5(i,dTe);return C.exports.useImperativeHandle(t,function(){return{open:o}},[o]),b(C.exports.Fragment,{children:n(ur(ur({},a),{},{open:o}))})});zk.displayName="Dropzone";var SU={disabled:!1,getFilesFromEvent:RPe,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};zk.defaultProps=SU;zk.propTypes={children:Dn.exports.func,accept:Dn.exports.objectOf(Dn.exports.arrayOf(Dn.exports.string)),multiple:Dn.exports.bool,preventDropOnDocument:Dn.exports.bool,noClick:Dn.exports.bool,noKeyboard:Dn.exports.bool,noDrag:Dn.exports.bool,noDragEventsBubbling:Dn.exports.bool,minSize:Dn.exports.number,maxSize:Dn.exports.number,maxFiles:Dn.exports.number,disabled:Dn.exports.bool,getFilesFromEvent:Dn.exports.func,onFileDialogCancel:Dn.exports.func,onFileDialogOpen:Dn.exports.func,useFsAccessApi:Dn.exports.bool,autoFocus:Dn.exports.bool,onDragEnter:Dn.exports.func,onDragLeave:Dn.exports.func,onDragOver:Dn.exports.func,onDrop:Dn.exports.func,onDropAccepted:Dn.exports.func,onDropRejected:Dn.exports.func,onError:Dn.exports.func,validator:Dn.exports.func};var Z7={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function bU(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ur(ur({},SU),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,S=t.onDropRejected,w=t.onFileDialogCancel,k=t.onFileDialogOpen,P=t.useFsAccessApi,E=t.autoFocus,T=t.preventDropOnDocument,M=t.noClick,R=t.noKeyboard,O=t.noDrag,D=t.noDragEventsBubbling,B=t.onError,$=t.validator,W=C.exports.useMemo(function(){return sTe(n)},[n]),j=C.exports.useMemo(function(){return aTe(n)},[n]),te=C.exports.useMemo(function(){return typeof k=="function"?k:JI},[k]),V=C.exports.useMemo(function(){return typeof w=="function"?w:JI},[w]),J=C.exports.useRef(null),re=C.exports.useRef(null),ee=C.expo
|
||
|
`+R.message,"");i({title:"Upload failed",description:T,status:"error",isClosable:!0})},[i]),u=C.exports.useCallback(async E=>{n(eR({imageFile:E}))},[n]),h=C.exports.useCallback((E,T)=>{T.forEach(M=>{l(M)}),E.forEach(M=>{u(M)})},[u,l]),{getRootProps:g,getInputProps:m,isDragAccept:v,isDragReject:S,isDragActive:w,open:k}=bU({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:h,onDragOver:()=>a(!0),maxFiles:1});s(k),C.exports.useEffect(()=>{const E=T=>{const M=T.clipboardData?.items;if(!M)return;const R=[];for(const D of M)D.kind==="file"&&["image/png","image/jpg"].includes(D.type)&&R.push(D);if(!R.length)return;if(T.stopImmediatePropagation(),R.length>1){i({description:"Multiple images pasted, may only upload one image at a time",status:"error",isClosable:!0});return}const O=R[0].getAsFile();if(!O){i({description:"Unable to load file",status:"error",isClosable:!0});return}n(eR({imageFile:O}))};return document.addEventListener("paste",E),()=>{document.removeEventListener("paste",E)}},[n,i,r]);const P=["img2img","unifiedCanvas"].includes(r)?` to ${Nf[r].tooltip}`:"";return b(fk.Provider,{value:k,children:Q("div",{...g({style:{}}),onKeyDown:E=>{E.key},children:[b("input",{...m()}),t,w&&o&&b(CTe,{isDragAccept:v,isDragReject:S,overlaySecondaryText:P,setIsHandlingUpload:a})]})})},kTe=()=>{const e=qe(),t=Le(nSe),n=m2();C.exports.useEffect(()=>{t.forEach(r=>{n(r)}),t.length>0&&e(f5e())},[e,n,t])},xU=lt([e=>e.options,e=>e.gallery,_r],(e,t,n)=>{const{shouldPinOptionsPanel:r,shouldShowOptionsPanel:i,shouldHoldOptionsPanelOpen:o}=e,{shouldShowGallery:a,shouldPinGallery:s,shouldHoldGalleryOpen:l}=t,u=!(i||o&&!r)&&["txt2img","img2img","unifiedCanvas"].includes(n),h=!(a||l&&!s)&&["txt2img","img2img","unifiedCanvas"].includes(n);return{shouldPinOptionsPanel:r,shouldShowProcessButtons:!r||!i,shouldShowOptionsPanelButton:u,shouldShowOptionsPanel:i,shouldShowGallery:a,shouldPinGallery:s,shouldShowGalleryButton:h}},{memoizeOptions:{resultEqualityCheck:We.isEqual}}),ETe=()=>{const e=qe(),{shouldShowOptionsPanel:t,shouldShowOptionsPanelButton:n,shouldShowProcessButtons:r,shouldPinOptionsPanel:i,shouldShowGallery:o,shouldPinGallery:a}=Le(xU),s=()=>{e(ud(!0)),i&&setTimeout(()=>e(Wi(!0)),400)};return st("f",()=>{o||t?(e(ud(!1)),e(sd(!1))):(e(ud(!0)),e(sd(!0))),(a||i)&&setTimeout(()=>e(Wi(!0)),400)},[o,t]),n?Q("div",{className:"show-hide-button-options",children:[b(pt,{tooltip:"Show Options Panel (O)",tooltipProps:{placement:"top"},"aria-label":"Show Options Panel",onClick:s,children:b(pH,{})}),r&&Q(An,{children:[b(yH,{iconButton:!0}),b(SH,{})]})]}):null},PTe=()=>{const e=qe(),{shouldShowGallery:t,shouldShowGalleryButton:n,shouldPinGallery:r,shouldShowOptionsPanel:i,shouldPinOptionsPanel:o}=Le(xU),a=()=>{e(sd(!0)),r&&e(Wi(!0))};return st("f",()=>{t||i?(e(ud(!1)),e(sd(!1))):(e(ud(!0)),e(sd(!0))),(r||o)&&setTimeout(()=>e(Wi(!0)),400)},[t,i]),n?b(pt,{tooltip:"Show Gallery (G)",tooltipProps:{placement:"top"},"aria-label":"Show Gallery",styleClass:"floating-show-hide-button right show-hide-button-gallery",onClick:a,children:b(sH,{})}):null};LPe();const TTe=()=>(kTe(),Q("div",{className:"App",children:[Q(_Te,{children:[b(dPe,{}),Q("div",{className:"app-content",children:[b(kPe,{}),b(Bke,{})]}),b("div",{className:"app-console",children:b(TPe,{})})]}),b(ETe,{}),b(PTe,{})]}));const wU=xye(lU),LTe=PD({key:"invokeai-style-cache",prepend:!0});t6.createRoot(document.getElementById("root")).render(b(se.StrictMode,{children:b(Z2e,{store:lU,children:b(uU,{loading:b(uPe,{}),persistor:wU,children:b(AJ,{value:LTe,children:b(Pve,{children:b(TTe,{})})})})})}));
|