mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
639 lines
1.5 MiB
JavaScript
639 lines
1.5 MiB
JavaScript
|
var Jee=Object.defineProperty;var ete=(e,t,n)=>t in e?Jee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var sn=(e,t,n)=>(ete(e,typeof t!="symbol"?t+"":t,n),n);function $j(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 ko=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function I8(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var v={},tte={get exports(){return v},set exports(e){v=e}},PS={},w={},nte={get exports(){return w},set exports(e){w=e}},tn={};/**
|
|||
|
* @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 Sy=Symbol.for("react.element"),rte=Symbol.for("react.portal"),ite=Symbol.for("react.fragment"),ote=Symbol.for("react.strict_mode"),ate=Symbol.for("react.profiler"),ste=Symbol.for("react.provider"),lte=Symbol.for("react.context"),ute=Symbol.for("react.forward_ref"),cte=Symbol.for("react.suspense"),dte=Symbol.for("react.memo"),fte=Symbol.for("react.lazy"),DM=Symbol.iterator;function hte(e){return e===null||typeof e!="object"?null:(e=DM&&e[DM]||e["@@iterator"],typeof e=="function"?e:null)}var zj={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Hj=Object.assign,Vj={};function x0(e,t,n){this.props=e,this.context=t,this.refs=Vj,this.updater=n||zj}x0.prototype.isReactComponent={};x0.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")};x0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Uj(){}Uj.prototype=x0.prototype;function R8(e,t,n){this.props=e,this.context=t,this.refs=Vj,this.updater=n||zj}var D8=R8.prototype=new Uj;D8.constructor=R8;Hj(D8,x0.prototype);D8.isPureReactComponent=!0;var NM=Array.isArray,Wj=Object.prototype.hasOwnProperty,N8={current:null},Gj={key:!0,ref:!0,__self:!0,__source:!0};function qj(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)Wj.call(t,r)&&!Gj.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:Sy,type:e,key:o,ref:a,props:i,_owner:N8.current}}function pte(e,t){return{$$typeof:Sy,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function j8(e){return typeof e=="object"&&e!==null&&e.$$typeof===Sy}function mte(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var jM=/\/+/g;function rC(e,t){return typeof e=="object"&&e!==null&&e.key!=null?mte(""+e.key):t.toString(36)}function u4(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 Sy:case rte:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+rC(a,0):r,NM(i)?(n="",e!=null&&(n=e.replace(jM,"$&/")+"/"),u4(i,t,n,"",function(u){return u})):i!=null&&(j8(i)&&(i=pte(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(jM,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",NM(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+rC(o,s);a+=u4(o,t,n,l,i)}else if(l=hte(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+rC(o,s++),a+=u4(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 Gb(e,t,n){if(e==null)return e;var r=[],i=0;return u4(e,r,"","",function(o){return t.call(n,o,i++)}),r}function gte(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 Lo={current:null},c4={transition:null},vte={ReactCurrentDispatcher:Lo,ReactCurrentBatchConfig:c4,ReactCurrentOwner:N8};tn.Children={map:Gb,forEach:function(e,t,n){Gb(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Gb(e,function(){t++}),t},toArray:function(e){return Gb(e,function(t){return t})||[]},only:function(e){if(!j8(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};tn.Component=x0;tn.Fragment=i
|
|||
|
* @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 yte=w,bte=Symbol.for("react.element"),Ste=Symbol.for("react.fragment"),xte=Object.prototype.hasOwnProperty,wte=yte.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Cte={key:!0,ref:!0,__self:!0,__source:!0};function Yj(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)xte.call(t,r)&&!Cte.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:bte,type:e,key:o,ref:a,props:i,_owner:wte.current}}PS.Fragment=Ste;PS.jsx=Yj;PS.jsxs=Yj;(function(e){e.exports=PS})(tte);var qs=Boolean(globalThis==null?void 0:globalThis.document)?w.useLayoutEffect:w.useEffect,B8=w.createContext({});B8.displayName="ColorModeContext";function xy(){const e=w.useContext(B8);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var qb={light:"chakra-ui-light",dark:"chakra-ui-dark"};function _te(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==null||i()},setClassName(r){document.body.classList.add(r?qb.dark:qb.light),document.body.classList.remove(r?qb.light:qb.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 kte="chakra-ui-color-mode";function Ete(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&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 Pte=Ete(kte),BM=()=>{};function FM(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function Kj(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:a=Pte}=e,s=i==="dark"?"dark":"light",[l,u]=w.useState(()=>FM(a,s)),[c,h]=w.useState(()=>FM(a)),{getSystemTheme:m,setClassName:y,setDataset:b,addListener:S}=w.useMemo(()=>_te({preventTransition:o}),[o]),k=i==="system"&&!l?c:l,_=w.useCallback(L=>{const O=L==="system"?m():L;u(O),y(O==="dark"),b(O),a.set(O)},[a,m,y,b]);qs(()=>{i==="system"&&h(m())},[]),w.useEffect(()=>{const L=a.get();if(L){_(L);return}if(i==="system"){_("system");return}_(s)},[a,s,i,_]);const E=w.useCallback(()=>{_(k==="dark"?"light":"dark")},[k,_]);w.useEffect(()=>{if(r)return S(_)},[r,S,_]);const P=w.useMemo(()=>({colorMode:t??k,toggleColorMode:t?BM:E,setColorMode:t?BM:_,forced:t!==void 0}),[k,E,_,t]);return N.createElement(B8.Provider,{value:P},n)}Kj.displayName="ColorModeProvider";var Z4={},Tte={get exports(){return Z4},set exports(e){Z4=e}};(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]",c="[object Boolean]",h="[object Date]",m="[object Error]",y="[object Function]",b="[object GeneratorFunction]",S="[object Map]",k="[object Number]",_="[object Null]",E="[object Object]",P="[object Proxy]",L="[object RegExp]",O="[object Set]",I="[object String]",D="[object Undefined]",j="[object WeakMap]",$="[object ArrayBuffer]",V="[object DataView]",Y="[object Float32Array]",te="[object Float64Array]",z="[object Int8Array]",F="[object Int16Array]",U="[object Int32Array]",X="[object Uint8Array]",Z="[object Uint8ClampedArray]",G="[
|
|||
|
* 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 Di=typeof Symbol=="function"&&Symbol.for,U8=Di?Symbol.for("react.element"):60103,W8=Di?Symbol.for("react.portal"):60106,IS=Di?Symbol.for("react.fragment"):60107,RS=Di?Symbol.for("react.strict_mode"):60108,DS=Di?Symbol.for("react.profiler"):60114,NS=Di?Symbol.for("react.provider"):60109,jS=Di?Symbol.for("react.context"):60110,G8=Di?Symbol.for("react.async_mode"):60111,BS=Di?Symbol.for("react.concurrent_mode"):60111,FS=Di?Symbol.for("react.forward_ref"):60112,$S=Di?Symbol.for("react.suspense"):60113,bre=Di?Symbol.for("react.suspense_list"):60120,zS=Di?Symbol.for("react.memo"):60115,HS=Di?Symbol.for("react.lazy"):60116,Sre=Di?Symbol.for("react.block"):60121,xre=Di?Symbol.for("react.fundamental"):60117,wre=Di?Symbol.for("react.responder"):60118,Cre=Di?Symbol.for("react.scope"):60119;function ja(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case U8:switch(e=e.type,e){case G8:case BS:case IS:case DS:case RS:case $S:return e;default:switch(e=e&&e.$$typeof,e){case jS:case FS:case HS:case zS:case NS:return e;default:return t}}case W8:return t}}}function mB(e){return ja(e)===BS}$n.AsyncMode=G8;$n.ConcurrentMode=BS;$n.ContextConsumer=jS;$n.ContextProvider=NS;$n.Element=U8;$n.ForwardRef=FS;$n.Fragment=IS;$n.Lazy=HS;$n.Memo=zS;$n.Portal=W8;$n.Profiler=DS;$n.StrictMode=RS;$n.Suspense=$S;$n.isAsyncMode=function(e){return mB(e)||ja(e)===G8};$n.isConcurrentMode=mB;$n.isContextConsumer=function(e){return ja(e)===jS};$n.isContextProvider=function(e){return ja(e)===NS};$n.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===U8};$n.isForwardRef=function(e){return ja(e)===FS};$n.isFragment=function(e){return ja(e)===IS};$n.isLazy=function(e){return ja(e)===HS};$n.isMemo=function(e){return ja(e)===zS};$n.isPortal=function(e){return ja(e)===W8};$n.isProfiler=function(e){return ja(e)===DS};$n.isStrictMode=function(e){return ja(e)===RS};$n.isSuspense=function(e){return ja(e)===$S};$n.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===IS||e===BS||e===DS||e===RS||e===$S||e===bre||typeof e=="object"&&e!==null&&(e.$$typeof===HS||e.$$typeof===zS||e.$$typeof===NS||e.$$typeof===jS||e.$$typeof===FS||e.$$typeof===xre||e.$$typeof===wre||e.$$typeof===Cre||e.$$typeof===Sre)};$n.typeOf=ja;(function(e){e.exports=$n})(yre);var gB=x7,_re={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},kre={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},vB={};vB[gB.ForwardRef]=_re;vB[gB.Memo]=kre;var Ere=!0;function Pre(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var yB=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Ere===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},bB=function(t,n,r){yB(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 Tre(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 Mre={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
|
|||
|
45deg,
|
|||
|
${t} 25%,
|
|||
|
transparent 25%,
|
|||
|
transparent 50%,
|
|||
|
${t} 50%,
|
|||
|
${t} 75%,
|
|||
|
transparent 75%,
|
|||
|
transparent
|
|||
|
)`,backgroundSize:`${e} ${e}`}}function eoe(e){const t=OB().toHexString();return!e||Zie(e)?t:e.string&&e.colors?noe(e.string,e.colors):e.string&&!e.colors?toe(e.string):e.colors&&!e.string?roe(e.colors):t}function toe(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 noe(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 roe(e){return e[Math.floor(Math.random()*e.length)]}function Et(e,t){return n=>n.colorMode==="dark"?t:e}function K8(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function ioe(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function NB(e){return ioe(e)&&e.reference?e.reference:String(e)}var WS=(e,...t)=>t.map(NB).join(` ${e} `).replace(/calc/g,""),cL=(...e)=>`calc(${WS("+",...e)})`,dL=(...e)=>`calc(${WS("-",...e)})`,E7=(...e)=>`calc(${WS("*",...e)})`,fL=(...e)=>`calc(${WS("/",...e)})`,hL=e=>{const t=NB(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:E7(t,-1)},Gu=Object.assign(e=>({add:(...t)=>Gu(cL(e,...t)),subtract:(...t)=>Gu(dL(e,...t)),multiply:(...t)=>Gu(E7(e,...t)),divide:(...t)=>Gu(fL(e,...t)),negate:()=>Gu(hL(e)),toString:()=>e.toString()}),{add:cL,subtract:dL,multiply:E7,divide:fL,negate:hL});function ooe(e){return!Number.isInteger(parseFloat(e.toString()))}function aoe(e,t="-"){return e.replace(/\s+/g,t)}function jB(e){const t=aoe(e.toString());return t.includes("\\.")?e:ooe(e)?t.replace(".","\\."):e}function soe(e,t=""){return[t,jB(e)].filter(Boolean).join("-")}function loe(e,t){return`var(${jB(e)}${t?`, ${t}`:""})`}function uoe(e,t=""){return`--${soe(e,t)}`}function Si(e,t){const n=uoe(e,t==null?void 0:t.prefix);return{variable:n,reference:loe(n,coe(t==null?void 0:t.fallback))}}function coe(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{definePartsStyle:doe,defineMultiStyleConfig:foe}=pr(lie.keys),hoe={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},poe={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},moe={pt:"2",px:"4",pb:"5"},goe={fontSize:"1.25em"},voe=doe({container:hoe,button:poe,panel:moe,icon:goe}),yoe=foe({baseStyle:voe}),{definePartsStyle:_y,defineMultiStyleConfig:boe}=pr(uie.keys),Aa=Un("alert-fg"),nc=Un("alert-bg"),Soe=_y({container:{bg:nc.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Aa.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Aa.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function X8(e){const{theme:t,colorScheme:n}=e,r=Zg(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var xoe=_y(e=>{const{colorScheme:t}=e,n=X8(e);return{container:{[Aa.variable]:`colors.${t}.500`,[nc.variable]:n.light,_dark:{[Aa.variable]:`colors.${t}.200`,[nc.variable]:n.dark}}}}),woe=_y(e=>{const{colorScheme:t}=e,n=X8(e);return{container:{[Aa.variable]:`colors.${t}.500`,[nc.variable]:n.light,_dark:{[Aa.variable]:`colors.${t}.200`,[nc.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Aa.reference}}}),Coe=_y(e=>{const{colorScheme:t}=e,n=X8(e);return{container:{[Aa.variable]:`colors.${t}.500`,[nc.variable]:n.light,_dark:{[Aa.variable]:`colors.${t}.200`,[nc.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Aa.reference}}}),_oe=_y(e=>{const{colorScheme:t}=e;return{container:{[Aa.variable]:"colors.white",[nc.variable]:`colors.${t}.500`,_dark:{[Aa.variable]:"colors.gray.900",[nc.variable]:`colors.${t}.200`},color:Aa.reference}}}),koe={subtle:xoe,"left-accent":woe,"top-accent":Coe,solid:_oe},Eoe=boe({baseStyle:Soe,variants:koe,defaultProps:{variant:"subtle",colorScheme:"blue"}}),BB={px:"1px",.
|
|||
|
to right,
|
|||
|
transparent 0%,
|
|||
|
${Eo(n,a)} 50%,
|
|||
|
transparent 100%
|
|||
|
)`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}},xle={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},wle=e=>({bg:Et("gray.100","whiteAlpha.300")(e)}),Cle=e=>({transitionProperty:"common",transitionDuration:"slow",...Sle(e)}),_le=kv(e=>({label:xle,filledTrack:Cle(e),track:wle(e)})),kle={xs:kv({track:{h:"1"}}),sm:kv({track:{h:"2"}}),md:kv({track:{h:"3"}}),lg:kv({track:{h:"4"}})},Ele=ble({sizes:kle,baseStyle:_le,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Ple,definePartsStyle:g4}=pr(_ie.keys),Tle=e=>{var t;const n=(t=To(n5.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n==null?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},Mle=g4(e=>{var t,n,r,i;return{label:(n=(t=n5).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=n5).baseStyle)==null?void 0:i.call(r,e).container,control:Tle(e)}}),Lle={md:g4({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:g4({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:g4({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},Ale=Ple({baseStyle:Mle,sizes:Lle,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Ole,definePartsStyle:Ile}=pr(kie.keys),e3=Un("select-bg"),yL,Rle={...(yL=En.baseStyle)==null?void 0:yL.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:e3.reference,[e3.variable]:"colors.white",_dark:{[e3.variable]:"colors.gray.700"},"> option, > optgroup":{bg:e3.reference}},Dle={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},Nle=Ile({field:Rle,icon:Dle}),t3={paddingInlineEnd:"8"},bL,SL,xL,wL,CL,_L,kL,EL,jle={lg:{...(bL=En.sizes)==null?void 0:bL.lg,field:{...(SL=En.sizes)==null?void 0:SL.lg.field,...t3}},md:{...(xL=En.sizes)==null?void 0:xL.md,field:{...(wL=En.sizes)==null?void 0:wL.md.field,...t3}},sm:{...(CL=En.sizes)==null?void 0:CL.sm,field:{...(_L=En.sizes)==null?void 0:_L.sm.field,...t3}},xs:{...(kL=En.sizes)==null?void 0:kL.xs,field:{...(EL=En.sizes)==null?void 0:EL.xs.field,...t3},icon:{insetEnd:"1"}}},Ble=Ole({baseStyle:Nle,sizes:jle,variants:En.variants,defaultProps:En.defaultProps}),vC=Un("skeleton-start-color"),yC=Un("skeleton-end-color"),Fle={[vC.variable]:"colors.gray.100",[yC.variable]:"colors.gray.400",_dark:{[vC.variable]:"colors.gray.800",[yC.variable]:"colors.gray.600"},background:vC.reference,borderColor:yC.reference,opacity:.7,borderRadius:"sm"},$le={baseStyle:Fle},bC=Un("skip-link-bg"),zle={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[bC.variable]:"colors.white",_dark:{[bC.variable]:"colors.gray.700"},bg:bC.reference}},Hle={baseStyle:zle},{defineMultiStyleConfig:Vle,definePartsStyle:GS}=pr(Eie.keys),M2=Un("slider-thumb-size"),L2=Un("slider-track-size"),_d=Un("slider-bg"),Ule=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...K8({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},Wle=e=>({...K8({orientation:e.orientation,horizontal:{h:L2.reference},vertical:{w:L2.reference}}),overflow:"hidden",borderRadius:"sm",[_d.variable]:"colors.gray.200",_dark:{[_d.variable]:"colors.whiteAlpha.200"},_disabled:{[_d.variable]:"colors.gray.300",_dark:{[_d.variable]:"colors.whiteAlpha.300"}},bg:_d.reference}),Gle=e=>{const{orientation:t}=e;return{...K8({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:M2.reference,h:M2.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"}}},
|
|||
|
[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]),w.createElement(Rme,{isPresent:t,childRef:r,sizeRef:i},w.cloneElement(e,{ref:r}))}const IC=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=ZS(Nme),l=w.useId(),u=w.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:c=>{s.set(c,!0);for(const h of s.values())if(!h)return;r&&r()},register:c=>(s.set(c,!1),()=>s.delete(c))}),o?void 0:[n]);return w.useMemo(()=>{s.forEach((c,h)=>s.set(h,!1))},[n]),w.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=w.createElement(Dme,{isPresent:n},e)),w.createElement(C0.Provider,{value:u},e)};function Nme(){return new Map}const Ym=e=>e.key||"";function jme(e,t){e.forEach(n=>{const r=Ym(n);t.set(r,n)})}function Bme(e){const t=[];return w.Children.forEach(e,n=>{w.isValidElement(n)&&t.push(n)}),t}const cf=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",qF(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=Ime();const l=w.useContext(tk).forceRender;l&&(s=l);const u=x$(),c=Bme(e);let h=c;const m=new Set,y=w.useRef(h),b=w.useRef(new Map).current,S=w.useRef(!0);if(o5(()=>{S.current=!1,jme(c,b),y.current=h}),ck(()=>{S.current=!0,b.clear(),m.clear()}),S.current)return w.createElement(w.Fragment,null,h.map(P=>w.createElement(IC,{key:Ym(P),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a},P)));h=[...h];const k=y.current.map(Ym),_=c.map(Ym),E=k.length;for(let P=0;P<E;P++){const L=k[P];_.indexOf(L)===-1&&m.add(L)}return a==="wait"&&m.size&&(h=[]),m.forEach(P=>{if(_.indexOf(P)!==-1)return;const L=b.get(P);if(!L)return;const O=k.indexOf(P),I=()=>{b.delete(P),m.delete(P);const D=y.current.findIndex(j=>j.key===P);if(y.current.splice(D,1),!m.size){if(y.current=c,u.current===!1)return;s(),r&&r()}};h.splice(O,0,w.createElement(IC,{key:Ym(L),isPresent:!1,onExitComplete:I,custom:t,presenceAffectsLayout:o,mode:a},L))}),h=h.map(P=>{const L=P.key;return m.has(L)?P:w.createElement(IC,{key:Ym(P),isPresent:!0,presenceAffectsLayout:o,mode:a},P)}),GF!=="production"&&a==="wait"&&h.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.`),w.createElement(w.Fragment,null,m.size?h:h.map(P=>w.cloneElement(P)))};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 w$(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 k0(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(c){try{u(r.next(c))}catch(h){a(h)}}function l(c){try{u(r.throw(c))}catch(h){a(h)}}function u(c){c.done?o(c.value):i(c.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}function E0(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(c){return l([u,c])}}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[0]===6&&n.label<o[1]){
|
|||
|
`})}function lge(e){ix({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function tg(e){const{isOpen:t,isDisabled:n}=Ek(),{reduceMotion:r}=Pk(),i=Ly("chakra-accordion__icon",e.className),o=ox(),a={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...o.icon};return N.createElement(Ba,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:a,...e},N.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))}tg.displayName="AccordionIcon";var ng=Ee(function(t,n){const{children:r,className:i}=t,{htmlProps:o,...a}=ige(t),l={...ox().container,overflowAnchor:"none"},u=w.useMemo(()=>a,[a]);return N.createElement(Qme,{value:u},N.createElement(Ce.div,{ref:n,...o,className:Ly("chakra-accordion__item",i),__css:l},typeof r=="function"?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r))});ng.displayName="AccordionItem";var rg=Ee(function(t,n){const{className:r,motionProps:i,...o}=t,{reduceMotion:a}=Pk(),{getPanelProps:s,isOpen:l}=Ek(),u=s(o,n),c=Ly("chakra-accordion__panel",r),h=ox();a||delete u.hidden;const m=N.createElement(Ce.div,{...u,__css:h.panel,className:c});return a?m:N.createElement(C$,{in:l,...i},m)});rg.displayName="AccordionPanel";var Tk=Ee(function({children:t,reduceMotion:n,...r},i){const o=xi("Accordion",r),a=mn(r),{htmlProps:s,descendants:l,...u}=nge(a),c=w.useMemo(()=>({...u,reduceMotion:!!n}),[u,n]);return N.createElement(Jme,{value:l},N.createElement(rge,{value:c},N.createElement(Zme,{value:o},N.createElement(Ce.div,{ref:i,...s,className:Ly("chakra-accordion",r.className),__css:o.root},t))))});Tk.displayName="Accordion";var uge=(...e)=>e.filter(Boolean).join(" "),cge=uf({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Ay=Ee((e,t)=>{const n=Ao("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:s,...l}=mn(e),u=uge("chakra-spinner",s),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${cge} ${o} linear infinite`,...n};return N.createElement(Ce.div,{ref:t,__css:c,className:u,...l},r&&N.createElement(Ce.span,{srOnly:!0},r))});Ay.displayName="Spinner";var ax=(...e)=>e.filter(Boolean).join(" ");function dge(e){return N.createElement(Ba,{viewBox:"0 0 24 24",...e},N.createElement("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 fge(e){return N.createElement(Ba,{viewBox:"0 0 24 24",...e},N.createElement("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 GA(e){return N.createElement(Ba,{viewBox:"0 0 24 24",...e},N.createElement("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[hge,pge]=gn({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[mge,Mk]=gn({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),P$={info:{icon:fge,colorScheme:"blue"},warning:{icon:GA,colorScheme:"orange"},success:{icon:dge,colorScheme:"green"},error:{icon:GA,colorScheme:"red"},loading:{icon:Ay,colorScheme:"blue"}};function gge(e){return P$[e].colorScheme}function vge(e){return P$[e].icon}var T$=Ee(function(t,n){const{status:r="info",addRole:i=!0,...o}=mn(t),a=t.colorScheme??gge(r),s=xi("Alert",{...t,colorScheme:a}),l={width:"100%",dis
|
|||
|
: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;
|
|||
|
}
|
|||
|
}
|
|||
|
`,Qge=()=>N.createElement(VS,{styles:F$}),Jge=()=>N.createElement(VS,{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;
|
|||
|
}
|
|||
|
|
|||
|
${F$}
|
|||
|
`});function zh(e,t,n,r){const i=xr(n);return w.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==null||o.removeEventListener(t,i,r)}}function e0e(e){return"current"in e}var $$=()=>typeof window<"u";function t0e(){const e=navigator.userAgentData;return(e==null?void 0:e.platform)??navigator.platform}var n0e=e=>$$()&&e.test(navigator.vendor),r0e=e=>$$()&&e.test(t0e()),i0e=()=>r0e(/mac|iphone|ipad|ipod/i),o0e=()=>i0e()&&n0e(/apple/i);function a0e(e){const{ref:t,elements:n,enabled:r}=e,i=()=>{var o;return((o=t.current)==null?void 0:o.ownerDocument)??document};zh(i,"pointerdown",o=>{if(!o0e()||!r)return;const a=o.target,l=(n??[t]).some(u=>{const c=e0e(u)?u.current:u;return(c==null?void 0:c.contains(a))||c===a});i().activeElement!==a&&l&&(o.preventDefault(),a.focus())})}var s0e=Qre?w.useLayoutEffect:w.useEffect;function eO(e,t=[]){const n=w.useRef(e);return s0e(()=>{n.current=e}),w.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function l0e(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function u0e(e,t){const n=w.useId();return w.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function Zd(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=eO(n),a=eO(t),[s,l]=w.useState(e.defaultIsOpen||!1),[u,c]=l0e(r,s),h=u0e(i,"disclosure"),m=w.useCallback(()=>{u||l(!1),a==null||a()},[u,a]),y=w.useCallback(()=>{u||l(!0),o==null||o()},[u,o]),b=w.useCallback(()=>{(c?m:y)()},[c,y,m]);return{isOpen:!!c,onOpen:y,onClose:m,onToggle:b,isControlled:u,getButtonProps:(S={})=>({...S,"aria-expanded":c,"aria-controls":h,onClick:Jre(S.onClick,b)}),getDisclosureProps:(S={})=>({...S,hidden:!c,id:h})}}function Dk(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var Nk=Ee(function(t,n){const{htmlSize:r,...i}=t,o=xi("Input",i),a=mn(i),s=Lk(a),l=Jr("chakra-input",t.className);return N.createElement(Ce.input,{size:r,...s,__css:o.field,ref:n,className:l})});Nk.displayName="Input";Nk.id="Input";var[c0e,z$]=gn({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),d0e=Ee(function(t,n){const r=xi("Input",t),{children:i,className:o,...a}=mn(t),s=Jr("chakra-input__group",o),l={},u=lx(i),c=r.field;u.forEach(m=>{r&&(c&&m.type.id==="InputLeftElement"&&(l.paddingStart=c.height??c.h),c&&m.type.id==="InputRightElement"&&(l.paddingEnd=c.height??c.h),m.type.id==="InputRightAddon"&&(l.borderEndRadius=0),m.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const h=u.map(m=>{var y,b;const S=Dk({size:((y=m.props)==null?void 0:y.size)||t.size,variant:((b=m.props)==null?void 0:b.variant)||t.variant});return m.type.id!=="Input"?w.cloneElement(m,S):w.cloneElement(m,Object.assign(S,l,m.props))});return N.createElement(Ce.div,{className:s,ref:n,__css:{width:"100%",display:"flex",position:"relative"},...a},N.createElement(c0e,{value:r},h))});d0e.displayName="InputGroup";var f0e={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},h0e=Ce("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),jk=Ee(function(t,n){const{placement:r="left",...i}=t,o=f0e[r]??{},a=z$();return N.createElement(h0e,{ref:n,...i,__css:{...a.addon,...o}})});jk.displayName="InputAddon";var H$=Ee(function(t,n){return N.createElement(jk,{ref:n,placement:"left",...t,className:Jr("chakra-input__left-addon",t.className)})});H$.displayName="InputLeftAddon";H$.id="InputLeftAddon";var V$=Ee(function(t,n){return N.createElement(jk,{ref:n,placement:"right",...t,className:Jr("chakra-input__right-addon",t.className)})});V$.displayName="InputRightAddon";V$.id="InputRightAddon";var p0e=Ce("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),fx=Ee(function(t,n){const{placement:r="lef
|
|||
|
* @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,Q){var ne=G.length;G.push(Q);e:for(;0<ne;){var de=ne-1>>>1,_e=G[de];if(0<i(_e,Q))G[de]=Q,G[ne]=_e,ne=de;else break e}}function n(G){return G.length===0?null:G[0]}function r(G){if(G.length===0)return null;var Q=G[0],ne=G.pop();if(ne!==Q){G[0]=ne;e:for(var de=0,_e=G.length,ke=_e>>>1;de<ke;){var ve=2*(de+1)-1,$e=G[ve],be=ve+1,rt=G[be];if(0>i($e,ne))be<_e&&0>i(rt,$e)?(G[de]=rt,G[be]=ne,de=be):(G[de]=$e,G[ve]=ne,de=ve);else if(be<_e&&0>i(rt,ne))G[de]=rt,G[be]=ne,de=be;else break e}}return Q}function i(G,Q){var ne=G.sortIndex-Q.sortIndex;return ne!==0?ne:G.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,h=null,m=3,y=!1,b=!1,S=!1,k=typeof setTimeout=="function"?setTimeout:null,_=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 P(G){for(var Q=n(u);Q!==null;){if(Q.callback===null)r(u);else if(Q.startTime<=G)r(u),Q.sortIndex=Q.expirationTime,t(l,Q);else break;Q=n(u)}}function L(G){if(S=!1,P(G),!b)if(n(l)!==null)b=!0,X(O);else{var Q=n(u);Q!==null&&Z(L,Q.startTime-G)}}function O(G,Q){b=!1,S&&(S=!1,_(j),j=-1),y=!0;var ne=m;try{for(P(Q),h=n(l);h!==null&&(!(h.expirationTime>Q)||G&&!Y());){var de=h.callback;if(typeof de=="function"){h.callback=null,m=h.priorityLevel;var _e=de(h.expirationTime<=Q);Q=e.unstable_now(),typeof _e=="function"?h.callback=_e:h===n(l)&&r(l),P(Q)}else r(l);h=n(l)}if(h!==null)var ke=!0;else{var ve=n(u);ve!==null&&Z(L,ve.startTime-Q),ke=!1}return ke}finally{h=null,m=ne,y=!1}}var I=!1,D=null,j=-1,$=5,V=-1;function Y(){return!(e.unstable_now()-V<$)}function te(){if(D!==null){var G=e.unstable_now();V=G;var Q=!0;try{Q=D(!0,G)}finally{Q?z():(I=!1,D=null)}}else I=!1}var z;if(typeof E=="function")z=function(){E(te)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,U=F.port2;F.port1.onmessage=te,z=function(){U.postMessage(null)}}else z=function(){k(te,0)};function X(G){D=G,I||(I=!0,z())}function Z(G,Q){j=k(function(){G(e.unstable_now())},Q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(G){G.callback=null},e.unstable_continueExecution=function(){b||y||(b=!0,X(O))},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 Q=3;break;default:Q=m}var ne=m;m=Q;try{return G()}finally{m=ne}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(G,Q){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var ne=m;m=G;try{return Q()}finally{m=ne}},e.unstable_scheduleCallback=function(G,Q,ne){var de=e.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?de+ne:de):ne=de,G){case 1:var _e=-1;break;case 2:_e=250;break;case 5:_e=1073741823;break;case 4:_e=1e4;break;default:_e=5e3}return _e=ne+_e,G={id:c++,callback:Q,priorityLevel:G,startTime:ne,expirationTime:_e,sortIndex:-1},ne>de?(G.sortIndex=ne,t(u,G),n(l)===null&&G===n(u)&&(S?(_(j),j=-1):S=!0,Z(L,ne-de))):(G.sortIndex=_e,t(l,G),b||y||(b=!0,X(O))),G},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(G){var Q=m;return function(){var ne=m;m=Q;try{return G.apply(this,arguments)}finally{m=ne}}}})(Oz);(function(e){e.exports=Oz})(Kve);/**
|
|||
|
* @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 Iz=w,Da=Wh;function Ue(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 Rz=new Set,$2={};function fp(e,t){i0(e,t),i0(e+"Capture",t)}function i0(e,t){for($2[e]=t,e=0;e<t.length;e++)Rz.add(t[e])}var oc=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c9=Object.prototype.hasOwnProperty,Xve=/^[: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]*$/,gO={},vO={};function Zve(e){return c9.call(vO,e)?!0:c9.call(gO,e)?!1:Xve.test(e)?vO[e]=!0:(gO[e]=!0,!1)}function Qve(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 Jve(e,t,n,r){if(t===null||typeof t>"u"||Qve(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 Oo(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 eo={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){eo[e]=new Oo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];eo[t]=new Oo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){eo[e]=new Oo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){eo[e]=new Oo(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){eo[e]=new Oo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){eo[e]=new Oo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){eo[e]=new Oo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){eo[e]=new Oo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){eo[e]=new Oo(e,5,!1,e.toLowerCase(),null,!1,!1)});var Zk=/[\-:]([a-z])/g;function Qk(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-
|
|||
|
`+FC+e}var $C=!1;function zC(e,t){if(!e||$C)return"";$C=!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{$C=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Pv(e):""}function e2e(e){switch(e.tag){case 5:return Pv(e.type);case 16:return Pv("Lazy");case 13:return Pv("Suspense");case 19:return Pv("SuspenseList");case 0:case 2:case 15:return e=zC(e.type,!1),e;case 11:return e=zC(e.type.render,!1),e;case 1:return e=zC(e.type,!0),e;default:return""}}function p9(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 og:return"Fragment";case ig:return"Portal";case d9:return"Profiler";case eE:return"StrictMode";case f9:return"Suspense";case h9:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Nz:return(e.displayName||"Context")+".Consumer";case Dz:return(e._context.displayName||"Context")+".Provider";case tE:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case nE:return t=e.displayName||null,t!==null?t:p9(e.type)||"Memo";case xd:t=e._payload,e=e._init;try{return p9(e(t))}catch{}}return null}function t2e(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 p9(t);case 8:return t===eE?"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 Jd(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Bz(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function n2e(e){var t=Bz(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 f3(e){e._valueTracker||(e._valueTracker=n2e(e))}function Fz(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Bz(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function x5(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 m9(e,t){var n=t.checked;return Lr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function bO(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Jd(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 $z(e,t){t=t.checked,t!=null&&Jk(e,"checked",t,!1)}function g9(e,t){$z(e,t);var n=Jd(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")?v9(e,t.type,n):t.hasOwnProperty("defaultValue")&&v9(e,t.type,Jd(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function SO(e,t,n){if(t.hasOwnProperty(
|
|||
|
`).replace(fye,"")}function S3(e,t,n){if(t=VO(t),VO(e)!==t&&n)throw Error(Ue(425))}function M5(){}var A9=null,O9=null;function I9(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 R9=typeof setTimeout=="function"?setTimeout:void 0,hye=typeof clearTimeout=="function"?clearTimeout:void 0,UO=typeof Promise=="function"?Promise:void 0,pye=typeof queueMicrotask=="function"?queueMicrotask:typeof UO<"u"?function(e){return UO.resolve(null).then(e).catch(mye)}:R9;function mye(e){setTimeout(function(){throw e})}function e6(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),W2(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);W2(t)}function $d(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 WO(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 M0=Math.random().toString(36).slice(2),Ul="__reactFiber$"+M0,X2="__reactProps$"+M0,ac="__reactContainer$"+M0,D9="__reactEvents$"+M0,gye="__reactListeners$"+M0,vye="__reactHandles$"+M0;function Ih(e){var t=e[Ul];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ac]||n[Ul]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=WO(e);e!==null;){if(n=e[Ul])return n;e=WO(e)}return t}e=n,n=e.parentNode}return null}function Fy(e){return e=e[Ul]||e[ac],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ug(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ue(33))}function yx(e){return e[X2]||null}var N9=[],cg=-1;function hf(e){return{current:e}}function hr(e){0>cg||(e.current=N9[cg],N9[cg]=null,cg--)}function or(e,t){cg++,N9[cg]=e.current,e.current=t}var ef={},co=hf(ef),ta=hf(!1),Jh=ef;function o0(e,t){var n=e.type.contextTypes;if(!n)return ef;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 na(e){return e=e.childContextTypes,e!=null}function L5(){hr(ta),hr(co)}function GO(e,t,n){if(co.current!==ef)throw Error(Ue(168));or(co,t),or(ta,n)}function TH(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(Ue(108,t2e(e)||"Unknown",i));return Lr({},n,r)}function A5(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ef,Jh=co.current,or(co,e),or(ta,ta.current),!0}function qO(e,t,n){var r=e.stateNode;if(!r)throw Error(Ue(169));n?(e=TH(e,t,Jh),r.__reactInternalMemoizedMergedChildContext=e,hr(ta),hr(co),or(co,e)):hr(ta),or(ta,n)}var Wu=null,bx=!1,t6=!1;function MH(e){Wu===null?Wu=[e]:Wu.push(e)}function yye(e){bx=!0,MH(e)}function pf(){if(!t6&&Wu!==null){t6=!0;var e=0,t=Fn;try{var n=Wu;for(Fn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Wu=null,bx=!1}catch(i){throw Wu!==null&&(Wu=Wu.slice(e+1)),eH(iE,pf),i}finally{Fn=t,t6=!1}}return null}var dg=[],fg=0,O5=null,I5=0,es=[],ts=0,ep=null,Ku=1,Xu="";function yh(e,t){dg[fg++]=I5,dg[fg++]=O5,O5=e,I5=t}function LH(e,t,n){es[ts++]=Ku,es[ts++]=Xu,es[ts++]=ep,ep=e;var r=Ku;e=Xu;var i=32-Zs(r)-1;r&=~(1<<i),n+=1;var o=32-Zs(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Ku=1<<32-Zs(t)+i|n<<i|r,Xu=o+e}else Ku=1<<o|n<<i|r,Xu=e}function hE(e){e.return!==null&&(yh(e,1),LH(e,1,0))}function pE(e){for(;e===O5;)O5=dg[--fg],dg[fg]=null,I5=dg[--fg],dg[fg]=null;for(;e===ep;)ep=es[--ts],es[ts]=null,Xu=es[--ts],es[ts]=null,Ku=es[--ts],es[ts]=null}var Oa=null,Ma=null,Sr=!1,Us=null;function AH(e,t){var n=as(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return
|
|||
|
Error generating stack: `+o.message+`
|
|||
|
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function a6(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function H9(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Pye=typeof WeakMap=="function"?WeakMap:Map;function oV(e,t,n){n=Zu(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){z5||(z5=!0,Q9=r),H9(e,t)},n}function aV(e,t,n){n=Zu(-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(){H9(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){H9(e,t),typeof r!="function"&&(Hd===null?Hd=new Set([this]):Hd.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function rI(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Pye;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=zye.bind(null,e,t,n),t.then(e,e))}function iI(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 oI(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Zu(-1,1),t.tag=2,zd(n,t,1))),n.lanes|=1),e)}var Tye=gc.ReactCurrentOwner,Qo=!1;function _o(e,t,n,r){t.child=e===null?BH(t,null,n,r):s0(t,e.child,n,r)}function aI(e,t,n,r,i){n=n.render;var o=t.ref;return jg(t,i),r=kE(e,t,n,r,o,i),n=EE(),e!==null&&!Qo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,lc(e,t,i)):(Sr&&n&&hE(t),t.flags|=1,_o(e,t,r,i),t.child)}function sI(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!NE(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,sV(e,t,o,r,i)):(e=O4(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:q2,n(a,r)&&e.ref===t.ref)return lc(e,t,i)}return t.flags|=1,e=Ud(o,r),e.ref=t.ref,e.return=t,t.child=e}function sV(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(q2(o,r)&&e.ref===t.ref)if(Qo=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Qo=!0);else return t.lanes=e.lanes,lc(e,t,i)}return V9(e,t,n,r,i)}function lV(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},or(mg,Ea),Ea|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,or(mg,Ea),Ea|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,or(mg,Ea),Ea|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,or(mg,Ea),Ea|=r;return _o(e,t,i,n),t.child}function uV(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function V9(e,t,n,r,i){var o=na(n)?Jh:co.current;return o=o0(t,o),jg(t,i),n=kE(e,t,n,r,o,i),r=EE(),e!==null&&!Qo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,lc(e,t,i)):(Sr&&r&&hE(t),t.flags|=1,_o(e,t,n,i),t.child)}function lI(e,t,n,r,i){if(na(n)){var o=!0;A5(t)}else o=!1;if(jg(t,i),t.stateNode===null)M4(e,t),NH(t,n,r),z9(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=ps(u):(u=na(n)?Jh:co.current,u=o0(t,u));var c=n.getDerivedStateFromProps,h=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&JO(t,a,r,u),wd=!1;var m=t.memoizedState;a.state=m,N5(t,r,a,i),l=t.memoizedState,s!==r||m!==l||ta.current||wd?(typeof c=="function"&&($9(t,n,c,r),l=t.memoizedState),(s=wd||QO(t,n,s,r,m,l,u))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeo
|
|||
|
.`.concat(p3e,` {
|
|||
|
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(I4,` {
|
|||
|
right: `).concat(s,"px ").concat(r,`;
|
|||
|
}
|
|||
|
|
|||
|
.`).concat(R4,` {
|
|||
|
margin-right: `).concat(s,"px ").concat(r,`;
|
|||
|
}
|
|||
|
|
|||
|
.`).concat(I4," .").concat(I4,` {
|
|||
|
right: 0 `).concat(r,`;
|
|||
|
}
|
|||
|
|
|||
|
.`).concat(R4," .").concat(R4,` {
|
|||
|
margin-right: 0 `).concat(r,`;
|
|||
|
}
|
|||
|
|
|||
|
body {
|
|||
|
`).concat(m3e,": ").concat(s,`px;
|
|||
|
}
|
|||
|
`)},P3e=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,o=w.useMemo(function(){return _3e(i)},[i]);return w.createElement(k3e,{styles:E3e(o,!t,i,n?"":"!important")})},s_=!1;if(typeof window<"u")try{var L3=Object.defineProperty({},"passive",{get:function(){return s_=!0,!0}});window.addEventListener("test",L3,L3),window.removeEventListener("test",L3,L3)}catch{s_=!1}var Nm=s_?{passive:!1}:!1,T3e=function(e){return e.tagName==="TEXTAREA"},vU=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!T3e(e)&&n[t]==="visible")},M3e=function(e){return vU(e,"overflowY")},L3e=function(e){return vU(e,"overflowX")},EI=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=yU(e,n);if(r){var i=bU(e,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},A3e=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},O3e=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},yU=function(e,t){return e==="v"?M3e(t):L3e(t)},bU=function(e,t){return e==="v"?A3e(t):O3e(t)},I3e=function(e,t){return e==="h"&&t==="rtl"?-1:1},R3e=function(e,t,n,r,i){var o=I3e(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),u=!1,c=a>0,h=0,m=0;do{var y=bU(e,s),b=y[0],S=y[1],k=y[2],_=S-k-o*b;(b||_)&&yU(e,s)&&(h+=_,m+=b),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(c&&(i&&h===0||!i&&a>h)||!c&&(i&&m===0||!i&&-a>m))&&(u=!0),u},A3=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},PI=function(e){return[e.deltaX,e.deltaY]},TI=function(e){return e&&"current"in e?e.current:e},D3e=function(e,t){return e[0]===t[0]&&e[1]===t[1]},N3e=function(e){return`
|
|||
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|||
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|||
|
`)},j3e=0,jm=[];function B3e(e){var t=w.useRef([]),n=w.useRef([0,0]),r=w.useRef(),i=w.useState(j3e++)[0],o=w.useState(function(){return gU()})[0],a=w.useRef(e);w.useEffect(function(){a.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var S=Z7([e.lockRef.current],(e.shards||[]).map(TI),!0).filter(Boolean);return S.forEach(function(k){return k.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),S.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=w.useCallback(function(S,k){if("touches"in S&&S.touches.length===2)return!a.current.allowPinchZoom;var _=A3(S),E=n.current,P="deltaX"in S?S.deltaX:E[0]-_[0],L="deltaY"in S?S.deltaY:E[1]-_[1],O,I=S.target,D=Math.abs(P)>Math.abs(L)?"h":"v";if("touches"in S&&D==="h"&&I.type==="range")return!1;var j=EI(D,I);if(!j)return!0;if(j?O=D:(O=D==="v"?"h":"v",j=EI(D,I)),!j)return!1;if(!r.current&&"changedTouches"in S&&(P||L)&&(r.current=O),!O)return!0;var $=r.current||O;return R3e($,k,S,$==="h"?P:L,!0)},[]),l=w.useCallback(function(S){var k=S;if(!(!jm.length||jm[jm.length-1]!==o)){var _="deltaY"in k?PI(k):A3(k),E=t.current.filter(function(O){return O.name===k.type&&O.target===k.target&&D3e(O.delta,_)})[0];if(E&&E.should){k.cancelable&&k.preventDefault();return}if(!E){var P=(a.current.shards||[]).map(TI).filter(Boolean).filter(function(O){return O.contains(k.target)}),L=P.length>0?s(k,P[0]):!a.current.noIsolation;L&&k.cancelable&&k.preventDefault()}}},[]),u=w.useCallback(function(S,k,_,E){var P={name:S,delta:k,target:_,should:E};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(L){return L!==P})},1)},[]),c=w.useCallback(function(S){n.current=A3(S),r.current=void 0},[]),h=w.useCallback(function(S){u(S.type,PI(S),S.target,s(S,e.lockRef.current))},[]),m=w.useCallback(function(S){u(S.type,A3(S),S.target,s(S,e.lockRef.current))},[]);w.useEffect(function(){return jm.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",l,Nm),document.addEventListener("touchmove",l,Nm),document.addEventListener("touchstart",c,Nm),function(){jm=jm.filter(function(S){return S!==o}),document.removeEventListener("wheel",l,Nm),document.removeEventListener("touchmove",l,Nm),document.removeEventListener("touchstart",c,Nm)}},[]);var y=e.removeScrollBar,b=e.inert;return w.createElement(w.Fragment,null,b?w.createElement(o,{styles:N3e(i)}):null,y?w.createElement(P3e,{gapMode:"margin"}):null)}const F3e=ybe(mU,B3e);var SU=w.forwardRef(function(e,t){return w.createElement(Mx,Vl({},e,{ref:t,sideCar:F3e}))});SU.classNames=Mx.classNames;const xU=SU;var mp=(...e)=>e.filter(Boolean).join(" ");function Av(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}var $3e=class{constructor(){sn(this,"modals");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}},l_=new $3e;function z3e(e,t){w.useEffect(()=>(t&&l_.add(e),()=>{l_.remove(e)}),[t,e])}function H3e(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:a=!0,onOverlayClick:s,onEsc:l}=e,u=w.useRef(null),c=w.useRef(null),[h,m,y]=U3e(r,"chakra-modal","chakra-modal--header","chakra-modal--body");V3e(u,t&&a),z3e(u,t);const b=w.useRef(null),S=w.useCallback(j=>{b.current=j.target},[]),k=w.useCallback(j=>{j.key==="Escape"&&(j.stopPropagation(),o&&(n==null||n()),l==null||l())},[o,n,l]),[_,E]=w.useState(!1),[P,L]=w.useState(!1),O=w.useCallback((j={},$=null)=>({role:"dialog",...j,ref:Tn($,u),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":_?m:void 0,"aria-describedby":P?y:void 0,onClick:Av(j.onClick,V=>V.stopPropagation())}),[y,P,h,m,_]),I=w.useCallback(j=>{j.stopPropagation(),b.current===j.target&&l_.isTopModal(u)&&(i&&(n==null||n()),s==null||s())},[n,i,s]),D=w.useCallback((j={},$=null)=>({...j,ref:Tn($,c),onClick:Av(j.onClick,I),onKe
|
|||
|
* @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 f0=w;function hSe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pSe=typeof Object.is=="function"?Object.is:hSe,mSe=f0.useState,gSe=f0.useEffect,vSe=f0.useLayoutEffect,ySe=f0.useDebugValue;function bSe(e,t){var n=t(),r=mSe({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return vSe(function(){i.value=n,i.getSnapshot=t,C6(i)&&o({inst:i})},[e,n,t]),gSe(function(){return C6(i)&&o({inst:i}),e(function(){C6(i)&&o({inst:i})})},[e]),ySe(n),n}function C6(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pSe(e,n)}catch{return!0}}function SSe(e,t){return t()}var xSe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?SSe:bSe;iW.useSyncExternalStore=f0.useSyncExternalStore!==void 0?f0.useSyncExternalStore:xSe;(function(e){e.exports=iW})(fSe);var g_={},wSe={get exports(){return g_},set exports(e){g_=e}},oW={};/**
|
|||
|
* @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 Dx=w,CSe=m_;function _Se(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kSe=typeof Object.is=="function"?Object.is:_Se,ESe=CSe.useSyncExternalStore,PSe=Dx.useRef,TSe=Dx.useEffect,MSe=Dx.useMemo,LSe=Dx.useDebugValue;oW.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=PSe(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=MSe(function(){function l(y){if(!u){if(u=!0,c=y,y=r(y),i!==void 0&&a.hasValue){var b=a.value;if(i(b,y))return h=b}return h=y}if(b=h,kSe(c,y))return b;var S=r(y);return i!==void 0&&i(b,S)?b:(c=y,h=S)}var u=!1,c,h,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=ESe(e,o[0],o[1]);return TSe(function(){a.hasValue=!0,a.value=s},[s]),LSe(s),s};(function(e){e.exports=oW})(wSe);function ASe(e){e()}let aW=ASe;const OSe=e=>aW=e,ISe=()=>aW,rf=w.createContext(null);function sW(){return w.useContext(rf)}const RSe=()=>{throw new Error("uSES not initialized!")};let lW=RSe;const DSe=e=>{lW=e},NSe=(e,t)=>e===t;function jSe(e=rf){const t=e===rf?sW:()=>w.useContext(e);return function(r,i=NSe){const{store:o,subscription:a,getServerState:s}=t(),l=lW(a.addNestedSub,o.getState,s||o.getState,r,i);return w.useDebugValue(l),l}}const BSe=jSe();var $I={},FSe={get exports(){return $I},set exports(e){$I=e}},zn={};/**
|
|||
|
* @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 hP=Symbol.for("react.element"),pP=Symbol.for("react.portal"),Nx=Symbol.for("react.fragment"),jx=Symbol.for("react.strict_mode"),Bx=Symbol.for("react.profiler"),Fx=Symbol.for("react.provider"),$x=Symbol.for("react.context"),$Se=Symbol.for("react.server_context"),zx=Symbol.for("react.forward_ref"),Hx=Symbol.for("react.suspense"),Vx=Symbol.for("react.suspense_list"),Ux=Symbol.for("react.memo"),Wx=Symbol.for("react.lazy"),zSe=Symbol.for("react.offscreen"),uW;uW=Symbol.for("react.module.reference");function ys(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case hP:switch(e=e.type,e){case Nx:case Bx:case jx:case Hx:case Vx:return e;default:switch(e=e&&e.$$typeof,e){case $Se:case $x:case zx:case Wx:case Ux:case Fx:return e;default:return t}}case pP:return t}}}zn.ContextConsumer=$x;zn.ContextProvider=Fx;zn.Element=hP;zn.ForwardRef=zx;zn.Fragment=Nx;zn.Lazy=Wx;zn.Memo=Ux;zn.Portal=pP;zn.Profiler=Bx;zn.StrictMode=jx;zn.Suspense=Hx;zn.SuspenseList=Vx;zn.isAsyncMode=function(){return!1};zn.isConcurrentMode=function(){return!1};zn.isContextConsumer=function(e){return ys(e)===$x};zn.isContextProvider=function(e){return ys(e)===Fx};zn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===hP};zn.isForwardRef=function(e){return ys(e)===zx};zn.isFragment=function(e){return ys(e)===Nx};zn.isLazy=function(e){return ys(e)===Wx};zn.isMemo=function(e){return ys(e)===Ux};zn.isPortal=function(e){return ys(e)===pP};zn.isProfiler=function(e){return ys(e)===Bx};zn.isStrictMode=function(e){return ys(e)===jx};zn.isSuspense=function(e){return ys(e)===Hx};zn.isSuspenseList=function(e){return ys(e)===Vx};zn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Nx||e===Bx||e===jx||e===Hx||e===Vx||e===zSe||typeof e=="object"&&e!==null&&(e.$$typeof===Wx||e.$$typeof===Ux||e.$$typeof===Fx||e.$$typeof===$x||e.$$typeof===zx||e.$$typeof===uW||e.getModuleId!==void 0)};zn.typeOf=ys;(function(e){e.exports=zn})(FSe);function HSe(){const e=ISe();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 zI={notify(){},get:()=>[]};function VSe(e,t){let n,r=zI;function i(h){return l(),r.subscribe(h)}function o(){r.notify()}function a(){c.onStateChange&&c.onStateChange()}function s(){return Boolean(n)}function l(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=HSe())}function u(){n&&(n(),n=void 0,r.clear(),r=zI)}const c={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return c}const USe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",WSe=USe?w.useLayoutEffect:w.useEffect;function GSe({store:e,context:t,children:n,serverState:r}){const i=w.useMemo(()=>{const s=VSe(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0}},[e,r]),o=w.useMemo(()=>e.getState(),[e]);WSe(()=>{const{subscription:s}=i;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[i,o]);const a=t||rf;return N.createElement(a.Provider,{value:i},n)}function cW(e=rf){const t=e===rf?sW:()=>w.useContext(e);return function(){const{store:r}=t();return r}}const qSe=cW();function YSe(e=rf){const t=e===rf?qSe:cW(e);return function(){return t().dispatch}}const KSe=YSe();DSe(g_.useSyncExternalStoreWithSelector);OSe(tl.unstable_batchedUpdates);function j4(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?j4=function(n){return typeof n}:j4=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},j4(e)}function XSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enum
|
|||
|
|
|||
|
`;if(!(0,e.isString)(F)||F.length<1)throw new Error(`${Z} Name (key) of reducer is required. ${G}`);if(!z||!z.length)return;const{duplicates:Q,subsets:ne}=(0,e.findDuplicatesAndSubsets)(z);if(Q.length>1)throw new Error(`${Z} Duplicated paths.
|
|||
|
|
|||
|
${JSON.stringify(Q)}
|
|||
|
|
|||
|
${G}`);if(ne.length>1)throw new Error(`${Z} You are trying to persist an entire property and also some of its subset.
|
|||
|
|
|||
|
${JSON.stringify(ne)}
|
|||
|
|
|||
|
${G}`)};e.singleTransformValidator=j;const $=function(z){if(!(0,e.isArray)(z))return;const F=(z==null?void 0:z.map(U=>U.deepPersistKey).filter(U=>U))||[];if(F.length){const U=F.filter((X,Z)=>F.indexOf(X)!==Z);if(U.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(U)}`)}};e.transformsValidator=$;const V=function({whitelist:z,blacklist:F}){if(z&&z.length&&F&&F.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(z){const{duplicates:U,subsets:X}=(0,e.findDuplicatesAndSubsets)(z);(0,e.throwError)({duplicates:U,subsets:X},"whitelist")}if(F){const{duplicates:U,subsets:X}=(0,e.findDuplicatesAndSubsets)(F);(0,e.throwError)({duplicates:U,subsets:X},"blacklist")}};e.configValidator=V;const Y=function({duplicates:z,subsets:F},U){if(z.length)throw new Error(`${t.PACKAGE_NAME}: duplicates of paths found in your ${U}.
|
|||
|
|
|||
|
${JSON.stringify(z)}`);if(F.length)throw new Error(`${t.PACKAGE_NAME}: subsets of some parent keys found in your ${U}. You must decide if you want to persist an entire path or its specific subset.
|
|||
|
|
|||
|
${JSON.stringify(F)}`)};e.throwError=Y;const te=function(z){return(0,e.isArray)(z)?z.filter(e.unique).reduce((F,U)=>{const X=U.split("."),Z=X[0],G=X.slice(1).join(".")||void 0,Q=F.filter(de=>Object.keys(de)[0]===Z)[0],ne=Q?Object.values(Q)[0]:void 0;return Q||F.push({[Z]:G?[G]:void 0}),Q&&!ne&&G&&(Q[Z]=[G]),Q&&ne&&G&&ne.push(G),F},[]):[]};e.getRootKeysGroup=te})(MW);(function(e){var t=ko&&ko.__rest||function(h,m){var y={};for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&m.indexOf(b)<0&&(y[b]=h[b]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,b=Object.getOwnPropertySymbols(h);S<b.length;S++)m.indexOf(b[S])<0&&Object.prototype.propertyIsEnumerable.call(h,b[S])&&(y[b[S]]=h[b[S]]);return y};Object.defineProperty(e,"__esModule",{value:!0}),e.getPersistConfig=e.getTransforms=e.createBlacklist=e.createWhitelist=e.autoMergeDeep=void 0;const n=MW,r=op,i=PP,o=function(h,m,y={}){const b=y.whitelist||null,S=y.blacklist||null;function k(_){return!!(b&&b.indexOf(_)===-1||S&&S.indexOf(_)!==-1)}return{in:(_,E,P)=>!k(E)&&h?h(_,E,P):_,out:(_,E,P)=>!k(E)&&m?m(_,E,P):_,deepPersistKey:b&&b[0]}},a=(h,m,y,{debug:b,whitelist:S,blacklist:k,transforms:_})=>{if(S||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)(_);const E=(0,n.cloneDeep)(y);let P=h;if(P&&(0,n.isObjectLike)(P)){const L=(0,n.difference)(m,y);(0,n.isEmpty)(L)||(P=(0,n.mergeDeep)(h,L,{preserveUndefined:!0}),b&&console.log(`${r.PACKAGE_NAME}/autoMergeDeep: sub state of your state was modified by reducer during rehydration. Values from reducer will be kept: ${JSON.stringify(L)}`)),Object.keys(P).forEach(O=>{if(O!=="_persist"){if((0,n.isObjectLike)(E[O])){E[O]=(0,n.mergeDeep)(E[O],P[O]);return}E[O]=P[O]}})}return b&&P&&(0,n.isObjectLike)(P)&&console.log(`${r.PACKAGE_NAME}/autoMergeDeep: rehydrated keys ${JSON.stringify(P)}`),E};e.autoMergeDeep=a;const s=(h,m)=>((0,n.singleTransformValidator)(m,h,i.ConfigType.WHITELIST),o(y=>{if(!m||!m.length)return y;let b=null,S;return m.forEach(k=>{const _=k.split(".");S=(0,n.path)(y,_),typeof S>"u"&&(0,n.isIntegerString)(_[_.length-1])&&(S=r.PLACEHOLDER_UNDEFINED);const E=(0,n.assocPath)(_,S),P=(0,n.isArray)(E)?[]:{};b=(0,n.mergeDeep)(b||P,E,{preservePlaceholder:!0})}),b||y},y=>(0,n.preserveUndefined)(y,m,i.ConfigType.WHITELIST),{whitelist:[h]}));e.createWhitelist=s;const l=(h,m)=>((0,n.singleTransformValidator)(m,h,i.ConfigType.BLACKLIST),o(y=>{if(!m||!m.length)return;const b=(0,n.preserveUndefined)(y,m,i.ConfigType.BLACKLIST,!0);return m.map(k=>k.split(".")).reduce((k,_)=>(0,n.dissocPath)(k,_),b)},y=>(0,n.preserveUndefined)(y,m,i.ConfigType.BLACKLIST),{whitelist:[h]}));e.createBlacklist=l;const u=function(h,m){return m.map(y=>{const b=Object.keys(y)[0],S=y[b];return h===i.ConfigType.WHITELIST?(0,e.createWhitelist)(b,S):(0,e.createBlacklist)(b,S)})};e.getTransforms=u;const c=h=>{var{key:m,whitelist:y,blacklist:b,storage:S,transforms:k,rootReducer:_}=h,E=t(h,["key","whitelist","blacklist","storage","transforms","rootReducer"]);(0,n.configValidator)({whitelist:y,blacklist:b});const P=(0,n.getRootKeysGroup)(y),L=(0,n.getRootKeysGroup)(b),O=Object.keys(_(void 0,{type:""})),I=P.map(te=>Object.keys(te)[0]),D=L.map(te=>Object.keys(te)[0]),j=O.filter(te=>I.indexOf(te)===-1&&D.indexOf(te)===-1),$=(0,e.getTransforms)(i.ConfigType.WHITELIST,P),V=(0,e.getTransforms)(i.ConfigType.BLACKLIST,L),Y=(0,n.isArray)(y)?j.map(te=>(0,e.createBlacklist)(te)):[];return Object.assign(Object.assign({},E),{key:m,storage:S,transforms:[...$,...V,...Y,...k||[]],stateReconciler:e.autoMergeDeep})};e.getPersistConfig=c})(TW);const Id=(e,t)=>Math.floor(e/t)*t,Kl=(e,t)=>Math.round(e/t)*t;var Me={},xwe={get exports(){return Me},set exports(e){Me=e}};/**
|
|||
|
* @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,c="__lodash_placeholder__",h=1,m=2,y=4,b=1,S=2,k=1,_=2,E=4,P=8,L=16,O=32,I=64,D=128,j=256,$=512,V=30,Y="...",te=800,z=16,F=1,U=2,X=3,Z=1/0,G=9007199254740991,Q=17976931348623157e292,ne=0/0,de=4294967295,_e=de-1,ke=de>>>1,ve=[["ary",D],["bind",k],["bindKey",_],["curry",P],["curryRight",L],["flip",$],["partial",O],["partialRight",I],["rearg",j]],$e="[object Arguments]",be="[object Array]",rt="[object AsyncFunction]",We="[object Boolean]",Fe="[object Date]",wt="[object DOMException]",ze="[object Error]",at="[object Function]",bt="[object GeneratorFunction]",Oe="[object Map]",lt="[object Number]",It="[object Null]",ut="[object Object]",_t="[object Promise]",un="[object Proxy]",ae="[object RegExp]",Ne="[object Set]",Ke="[object String]",Xe="[object Symbol]",xe="[object Undefined]",Be="[object WeakMap]",Ct="[object WeakSet]",Nt="[object ArrayBuffer]",Ae="[object DataView]",At="[object Float32Array]",Ve="[object Float64Array]",vt="[object Int8Array]",nn="[object Int16Array]",Dn="[object Int32Array]",Ze="[object Uint8Array]",xt="[object Uint8ClampedArray]",pt="[object Uint16Array]",Vt="[object Uint32Array]",rn=/\b__p \+= '';/g,gr=/\b(__p \+=) '' \+/g,Io=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ni=/&(?:amp|lt|gt|quot|#39);/g,al=/[&<>"']/g,z0=RegExp(Ni.source),za=RegExp(al.source),Rp=/<%-([\s\S]+?)%>/g,H0=/<%([\s\S]+?)%>/g,kc=/<%=([\s\S]+?)%>/g,Dp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Np=/^\w*$/,aa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_f=/[\\^$.*+?()[\]{}|]/g,V0=RegExp(_f.source),Ec=/^\s+/,kf=/\s/,U0=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,sl=/\{\n\/\* \[wrapped with (.+)\] \*/,Pc=/,? & /,W0=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,G0=/[()=,{}\[\]\/\s]/,q0=/\\(\\)?/g,Y0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,bs=/\w*$/,K0=/^[-+]0x[0-9a-f]+$/i,X0=/^0b[01]+$/i,Z0=/^\[object .+?Constructor\]$/,Q0=/^0o[0-7]+$/i,J0=/^(?:0|[1-9]\d*)$/,e1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ll=/($^)/,t1=/['\n\r\u2028\u2029\\]/g,Ss="\\ud800-\\udfff",Su="\\u0300-\\u036f",xu="\\ufe20-\\ufe2f",ul="\\u20d0-\\u20ff",wu=Su+xu+ul,jp="\\u2700-\\u27bf",Tc="a-z\\xdf-\\xf6\\xf8-\\xff",cl="\\xac\\xb1\\xd7\\xf7",sa="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Nn="\\u2000-\\u206f",Mn=" \\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",la="A-Z\\xc0-\\xd6\\xd8-\\xde",Vr="\\ufe0e\\ufe0f",ci=cl+sa+Nn+Mn,ua="['’]",dl="["+Ss+"]",di="["+ci+"]",xs="["+wu+"]",Ef="\\d+",Cu="["+jp+"]",ws="["+Tc+"]",Pf="[^"+Ss+ci+Ef+jp+Tc+la+"]",ji="\\ud83c[\\udffb-\\udfff]",Bp="(?:"+xs+"|"+ji+")",Fp="[^"+Ss+"]",Tf="(?:\\ud83c[\\udde6-\\uddff]){2}",fl="[\\ud800-\\udbff][\\udc00-\\udfff]",Ro="["+la+"]",hl="\\u200d",_u="(?:"+ws+"|"+Pf+")",n1="(?:"+Ro+"|"+Pf+")",Mc="(?:"+ua+"(?:d|ll|m|re|s|t|ve))?",Lc="(?:"+ua+"(?:D|LL|M|RE|S|T|VE))?",Mf=Bp+"?",Ac="["+Vr+"]?",Ha="(?:"+hl+"(?:"+[Fp,Tf,fl].join("|")+")"+Ac+Mf+")*",Lf="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ku="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Kt=Ac+Mf+Ha,$p="(?:"+[Cu,Tf,fl].join("|")+")"+Kt,Oc="(?:"+[Fp+xs+"?",xs,Tf,fl,dl].join("|")+")",Ic=RegExp(ua,"g"),zp=RegExp(xs,"g"),ca=RegExp(ji+"(?="+ji+")|"+Oc+Kt,"g"),Jn=RegExp([Ro+"?"+ws+"+"+Mc+"(?="+[di,Ro,"$"].join("|")+")",n1+"+"+Lc+"(?="+[di,Ro+_u,"$"].join("|")+")",Ro+"?"+_u+"+"+Mc,Ro+"+"+Lc,ku,Lf,Ef,$p].join("|"),"g"),Af=RegExp("["+hl+Ss+wu+Vr+"]"),Hp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Of=["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"],Vp=-1,vn={};vn[At
|
|||
|
/* [wrapped with `+g+`] */
|
|||
|
`)}function AX(d){return Ht(d)||uh(d)||!!(p1&&d&&d[p1])}function Du(d,g){var C=typeof d;return g=g??G,!!g&&(C=="number"||C!="symbol"&&J0.test(d))&&d>-1&&d%1==0&&d<g}function yo(d,g,C){if(!Er(C))return!1;var A=typeof g;return(A=="number"?Vo(C)&&Du(g,C.length):A=="string"&&g in C)?Os(C[g],d):!1}function Bw(d,g){if(Ht(d))return!1;var C=typeof d;return C=="number"||C=="symbol"||C=="boolean"||d==null||xa(d)?!0:Np.test(d)||!Dp.test(d)||g!=null&&d in yn(g)}function OX(d){var g=typeof d;return g=="string"||g=="number"||g=="symbol"||g=="boolean"?d!=="__proto__":d===null}function Fw(d){var g=Se(d),C=H[g];if(typeof C!="function"||!(g in Qt.prototype))return!1;if(d===C)return!0;var A=ue(C);return!!A&&d===A[0]}function IX(d){return!!zc&&zc in d}var RX=vr?Nu:nC;function W1(d){var g=d&&d.constructor,C=typeof g=="function"&&g.prototype||Ln;return d===C}function GT(d){return d===d&&!Er(d)}function qT(d,g){return function(C){return C==null?!1:C[d]===g&&(g!==n||d in yn(C))}}function DX(d){var g=zb(d,function(A){return C.size===u&&C.clear(),A}),C=g.cache;return g}function NX(d,g){var C=d[1],A=g[1],B=C|A,W=B<(k|_|D),J=A==D&&C==P||A==D&&C==j&&d[7].length<=g[8]||A==(D|j)&&g[7].length<=g[8]&&C==P;if(!(W||J))return d;A&k&&(d[2]=g[2],B|=C&k?0:E);var re=g[3];if(re){var fe=d[3];d[3]=fe?Db(fe,re,g[4]):re,d[4]=fe?ha(d[3],c):g[4]}return re=g[5],re&&(fe=d[5],d[5]=fe?$1(fe,re,g[6]):re,d[6]=fe?ha(d[5],c):g[6]),re=g[7],re&&(d[7]=re),A&D&&(d[8]=d[8]==null?g[8]:pi(d[8],g[8])),d[9]==null&&(d[9]=g[9]),d[0]=g[0],d[1]=B,d}function jX(d){var g=[];if(d!=null)for(var C in yn(d))g.push(C);return g}function BX(d){return Zp.call(d)}function YT(d,g,C){return g=Dr(g===n?d.length-1:g,0),function(){for(var A=arguments,B=-1,W=Dr(A.length-g,0),J=ye(W);++B<W;)J[B]=A[g+B];B=-1;for(var re=ye(g+1);++B<g;)re[B]=A[B];return re[g]=C(J),Bi(d,this,re)}}function KT(d,g){return g.length<2?d:Sl(d,Yr(g,0,-1))}function FX(d,g){for(var C=d.length,A=pi(g.length,C),B=Ui(d);A--;){var W=g[A];d[A]=Du(W,C)?B[W]:n}return d}function $w(d,g){if(!(g==="constructor"&&typeof d[g]=="function")&&g!="__proto__")return d[g]}var XT=QT(nh),G1=Gf||function(d,g){return kt.setTimeout(d,g)},zw=QT(ym);function ZT(d,g,C){var A=g+"";return zw(d,LX(A,$X(PX(A),C)))}function QT(d){var g=0,C=0;return function(){var A=m1(),B=z-(A-C);if(C=A,B>0){if(++g>=te)return arguments[0]}else g=0;return d.apply(n,arguments)}}function jb(d,g){var C=-1,A=d.length,B=A-1;for(g=g===n?A:g;++C<g;){var W=eh(C,B),J=d[W];d[W]=d[C],d[C]=J}return d.length=g,d}var JT=DX(function(d){var g=[];return d.charCodeAt(0)===46&&g.push(""),d.replace(aa,function(C,A,B,W){g.push(B?W.replace(q0,"$1"):A||C)}),g});function Ll(d){if(typeof d=="string"||xa(d))return d;var g=d+"";return g=="0"&&1/d==-Z?"-0":g}function lh(d){if(d!=null){try{return Cr.call(d)}catch{}try{return d+""}catch{}}return""}function $X(d,g){return er(ve,function(C){var A="_."+C[0];g&C[1]&&!to(d,A)&&d.push(A)}),d.sort()}function eM(d){if(d instanceof Qt)return d.clone();var g=new po(d.__wrapped__,d.__chain__);return g.__actions__=Ui(d.__actions__),g.__index__=d.__index__,g.__values__=d.__values__,g}function zX(d,g,C){(C?yo(d,g,C):g===n)?g=1:g=Dr(Ut(g),0);var A=d==null?0:d.length;if(!A||g<1)return[];for(var B=0,W=0,J=ye(qf(A/g));B<A;)J[W++]=Yr(d,B,B+=g);return J}function HX(d){for(var g=-1,C=d==null?0:d.length,A=0,B=[];++g<C;){var W=d[g];W&&(B[A++]=W)}return B}function VX(){var d=arguments.length;if(!d)return[];for(var g=ye(d-1),C=arguments[0],A=d;A--;)g[A-1]=arguments[A];return Ua(Ht(C)?Ui(C):[C],Gr(g,1))}var UX=Ot(function(d,g){return Kr(d)?td(d,Gr(g,1,Kr,!0)):[]}),WX=Ot(function(d,g){var C=Ka(g);return Kr(C)&&(C=n),Kr(d)?td(d,Gr(g,1,Kr,!0),Re(C,2)):[]}),GX=Ot(function(d,g){var C=Ka(g);return Kr(C)&&(C=n),Kr(d)?td(d,Gr(g,1,Kr,!0),n,C):[]});function qX(d,g,C){var A=d==null?0:d.length;return A?(g=C||g===n?1:Ut(g),Yr(d,g<0?0:g,A)):[]}function YX(d,g,C){var A=d==null?0:d.length;return A?(g=C||g===n?1:Ut(g),g=A-g,Yr(d,0,g<0?0:g)):[]}function KX(d,g){return d&&d.length?ld(d,Re(g,3),!0,!0):[]}function XX(d,g){return d&&d.length?ld(d,Re(g,3),!0):[]}function ZX(d,g,C,A){var B=d==null?0:d.length;
|
|||
|
`;d.replace(nt,function(Tt,Jt,an,wa,bo,Ca){return an||(an=wa),De+=d.slice(Pe,Ca).replace(t1,gl),Jt&&(re=!0,De+=`' +
|
|||
|
__e(`+Jt+`) +
|
|||
|
'`),bo&&(fe=!0,De+=`';
|
|||
|
`+bo+`;
|
|||
|
__p += '`),an&&(De+=`' +
|
|||
|
((__t = (`+an+`)) == null ? '' : __t) +
|
|||
|
'`),Pe=Ca+Tt.length,Tt}),De+=`';
|
|||
|
`;var Pt=cn.call(g,"variable")&&g.variable;if(!Pt)De=`with (obj) {
|
|||
|
`+De+`
|
|||
|
}
|
|||
|
`;else if(G0.test(Pt))throw new Rt(s);De=(fe?De.replace(rn,""):De).replace(gr,"$1").replace(Io,"$1;"),De="function("+(Pt||"obj")+`) {
|
|||
|
`+(Pt?"":`obj || (obj = {});
|
|||
|
`)+"var __t, __p = ''"+(re?", __e = _.escape":"")+(fe?`, __j = Array.prototype.join;
|
|||
|
function print() { __p += __j.call(arguments, '') }
|
|||
|
`:`;
|
|||
|
`)+De+`return __p
|
|||
|
}`;var Yt=OM(function(){return on(W,St+"return "+De).apply(n,J)});if(Yt.source=De,Gw(Yt))throw Yt;return Yt}function aee(d){return An(d).toLowerCase()}function see(d){return An(d).toUpperCase()}function lee(d,g,C){if(d=An(d),d&&(C||g===n))return ho(d);if(!d||!(g=go(g)))return d;var A=no(d),B=no(g),W=fa(A,B),J=Cs(A,B)+1;return Ls(A,W,J).join("")}function uee(d,g,C){if(d=An(d),d&&(C||g===n))return d.slice(0,u1(d)+1);if(!d||!(g=go(g)))return d;var A=no(d),B=Cs(A,no(g))+1;return Ls(A,0,B).join("")}function cee(d,g,C){if(d=An(d),d&&(C||g===n))return d.replace(Ec,"");if(!d||!(g=go(g)))return d;var A=no(d),B=fa(A,no(g));return Ls(A,B).join("")}function dee(d,g){var C=V,A=Y;if(Er(g)){var B="separator"in g?g.separator:B;C="length"in g?Ut(g.length):C,A="omission"in g?go(g.omission):A}d=An(d);var W=d.length;if(Pu(d)){var J=no(d);W=J.length}if(C>=W)return d;var re=C-Wa(A);if(re<1)return A;var fe=J?Ls(J,0,re).join(""):d.slice(0,re);if(B===n)return fe+A;if(J&&(re+=fe.length-re),qw(B)){if(d.slice(re).search(B)){var Pe,Te=fe;for(B.global||(B=Hf(B.source,An(bs.exec(B))+"g")),B.lastIndex=0;Pe=B.exec(Te);)var De=Pe.index;fe=fe.slice(0,De===n?re:De)}}else if(d.indexOf(go(B),re)!=re){var nt=fe.lastIndexOf(B);nt>-1&&(fe=fe.slice(0,nt))}return fe+A}function fee(d){return d=An(d),d&&z0.test(d)?d.replace(Ni,hb):d}var hee=Ml(function(d,g,C){return d+(C?" ":"")+g.toUpperCase()}),Xw=Em("toUpperCase");function AM(d,g,C){return d=An(d),g=C?n:g,g===n?Yp(d)?zf(d):a1(d):d.match(g)||[]}var OM=Ot(function(d,g){try{return Bi(d,n,g)}catch(C){return Gw(C)?C:new Rt(C)}}),pee=yr(function(d,g){return er(g,function(C){C=Ll(C),ga(d,C,Uw(d[C],d))}),d});function mee(d){var g=d==null?0:d.length,C=Re();return d=g?Gn(d,function(A){if(typeof A[1]!="function")throw new Fi(a);return[C(A[0]),A[1]]}):[],Ot(function(A){for(var B=-1;++B<g;){var W=d[B];if(Bi(W[0],this,A))return Bi(W[1],this,A)}})}function gee(d){return im(ki(d,h))}function Zw(d){return function(){return d}}function vee(d,g){return d==null||d!==d?g:d}var yee=V1(),bee=V1(!0);function Wo(d){return d}function Qw(d){return kr(typeof d=="function"?d:ki(d,h))}function See(d){return od(ki(d,h))}function xee(d,g){return wl(d,ki(g,h))}var wee=Ot(function(d,g){return function(C){return Ts(C,d,g)}}),Cee=Ot(function(d,g){return function(C){return Ts(d,C,g)}});function Jw(d,g,C){var A=Mi(g),B=lm(g,A);C==null&&!(Er(g)&&(B.length||!A.length))&&(C=g,g=d,d=this,B=lm(g,Mi(g)));var W=!(Er(C)&&"chain"in C)||!!C.chain,J=Nu(d);return er(B,function(re){var fe=g[re];d[re]=fe,J&&(d.prototype[re]=function(){var Pe=this.__chain__;if(W||Pe){var Te=d(this.__wrapped__),De=Te.__actions__=Ui(this.__actions__);return De.push({func:fe,args:arguments,thisArg:d}),Te.__chain__=Pe,Te}return fe.apply(d,Ua([this.value()],arguments))})}),d}function _ee(){return kt._===this&&(kt._=d1),this}function eC(){}function kee(d){return d=Ut(d),Ot(function(g){return ad(g,d)})}var Eee=U1(Gn),Pee=U1(Wn),Tee=U1(Rc);function IM(d){return Bw(d)?ml(Ll(d)):Ms(d)}function Mee(d){return function(g){return d==null?n:Sl(d,g)}}var Lee=x(),Aee=x(!0);function tC(){return[]}function nC(){return!1}function Oee(){return{}}function Iee(){return""}function Ree(){return!0}function Dee(d,g){if(d=Ut(d),d<1||d>G)return[];var C=de,A=pi(d,de);g=Re(g),d-=de;for(var B=Bf(A,g);++C<d;)g(C);return B}function Nee(d){return Ht(d)?Gn(d,Ll):xa(d)?[d]:Ui(JT(An(d)))}function jee(d){var g=++Vf;return An(d)+g}var Bee=Pm(function(d,g){return d+g},0),Fee=R("ceil"),$ee=Pm(function(d,g){return d/g},1),zee=R("floor");function Hee(d){return d&&d.length?jr(d,Wo,um):n}function Vee(d,g){return d&&d.length?jr(d,Re(g,2),um):n}function Uee(d){return Df(d,Wo)}function Wee(d,g){return Df(d,Re(g,2))}function Gee(d){return d&&d.length?jr(d,Wo,xl):n}function qee(d,g){return d&&d.length?jr(d,Re(g,2),xl):n}var Yee=Pm(function(d,g){return d*g},1),Kee=R("round"),Xee=Pm(function(d,g){return d-g},0);function Zee(d){return d&&d.length?jf(d,Wo):0}function Qee(d,g){return d&&d.length?jf(d,Re(g,2)):0}return H.after=SQ,H.ary=cM,H.assign=sJ,H.assignIn=_M,H.assignInWith=Wb,H.assignWith=lJ,H.at=uJ,H.before=dM,H.bind=Uw,H.bindAl
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MCe(e){return kCe(e)||ECe(e)||PCe(e)||TCe()}function wR(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 CR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wR(Object(n),!0).forEach(function(r){vf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var LCe={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,n){console&&console[t]&&console[t].apply(console,n)}},ACe=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};gu(this,e),this.init(t,n)}return vu(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||LCe,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,i,o){return o&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(i).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new e(this.logger,CR(CR({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new e(this.logger,n)}}]),e}(),Xl=new ACe,af=function(){function e(){gu(this,e),this.observers={}}return vu(e,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(o){i.observers[o]=i.observers[o]||[],i.observers[o].push(r)}),this}},{key:"off",value:function(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(i){return i!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.observers[n]){var a=[].concat(this.observers[n]);a.forEach(function(l){l.apply(void 0,i)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(l){l.apply(l,[n].concat(i))})}}}]),e}();function fv(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function _R(e){return e==null?"":""+e}function OCe(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function DP(e,t,n){function r(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return i()?{}:{obj:e,k:r(o.shift())}}function kR(e,t,n){var r=DP(e,t,Object),i=r.obj,o=r.k;i[o]=n}function ICe(e,t,n,r){var i=DP(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],r&&(o[a]=o[a].concat(n)),r||o[a].push(n)}function sS(e,t){var n=DP(e,t),r=n.obj,i=n.k;if(r)return r[i]}function ER(e,t,n){var r=sS(e,n);return r!==void 0?r:sS(t,n)}function hG(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):hG(e[r],t[r],n):e[r]=t[r]);return e}function zm(e){return e.replace
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i7e(e,t){return e7e(e)||t7e(e,t)||n7e(e,t)||r7e()}function nD(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 j6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nD(Object(n),!0).forEach(function(r){_G(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var o7e=function(t,n){var r=w.useRef();return w.useEffect(function(){r.current=n?r.current:t},[t,n]),r.current};function je(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=w.useContext(Q6e)||{},i=r.i18n,o=r.defaultNS,a=n||i||Y6e();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new J6e),!a){B_("You will need to pass in an i18next instance by using initReactI18next");var s=function($){return Array.isArray($)?$[$.length-1]:$},l=[s,{},!1];return l.t=s,l.i18n={},l.ready=!1,l}a.options.react&&a.options.react.wait!==void 0&&B_("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var u=j6(j6(j6({},G6e()),a.options.react),t),c=u.useSuspense,h=u.keyPrefix,m=e||o||a.options&&a.options.defaultNS;m=typeof m=="string"?[m]:m||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(m);var y=(a.isInitialized||a.initializedStoreOnce)&&m.every(function(j){return $6e(j,a,u)});function b(){return a.getFixedT(null,u.nsMode==="fallback"?m:m[0],h)}var S=w.useState(b),k=i7e(S,2),_=k[0],E=k[1],P=m.join(),L=o7e(P),O=w.useRef(!0);w.useEffect(function(){var j=u.bindI18n,$=u.bindI18nStore;O.current=!0,!y&&!c&&ZR(a,m,function(){O.current&&E(b)}),y&&L&&L!==P&&O.current&&E(b);function V(){O.current&&E(b)}return j&&a&&a.on(j,V),$&&a&&a.store.on($,V),function(){O.current=!1,j&&a&&j.split(" ").forEach(function(Y){return a.off(Y,V)}),$&&a&&$.split(" ").forEach(function(Y){return a.store.off(Y,V)})}},[a,P]);var I=w.useRef(!0);w.useEffect(function(){O.current&&!I.current&&E(b),I.current=!1},[a,h]);var D=[_,a,y];if(D.t=_,D.i18n=a,D.ready=y,y||!y&&!c)return D;throw new Promise(function(j){ZR(a,m,function(){j()})})}Mt.use(wG).use(vG).use(Z6e).init({fallbackLng:"en",debug:!1,backend:{loadPath:"/locales/{{lng}}.json"},interpolation:{escapeValue:!1},returnNull:!1});const a7e={isConnected:!1,isProcessing:!1,log:[],shouldShowLogViewer:!1,shouldDisplayInProgressType:"latents",shouldDisplayGuides:!0,isGFPGANAvailable:!0,isESRGANAvailable:!0,socketId:"",shouldConfirmOnDelete:!0,openAccordions:[],currentStep:0,totalSteps:0,currentIteration:0,totalIterations:0,currentStatus:Mt.isInitialized?Mt.t("common.statusDisconnected"):"Disconnected",currentStatusHasSteps:!1,model:"",model_id:"",model_hash:"",app_id:"",app_version:"",model_list:{},infill_methods:[],hasError:!1,wasErrorSeen:!0,isCancelable:!0,saveIntermediatesInterval:5,enableImageDebugging:!1,toastQueue:[],searchFolder:null,foundModels:null,openModel:null,cancelOptions:{cancelType:"immediate",cancelAfter:null}},EG=bp({name:"system",initialState:a7e,reducers:{setShouldDisplayInProgressType:(e,t)=>{e.shouldDisplayInProgressType=t.payload},setIsProcessing:(e,t)=>{e.isProcessing=t.payload},setCurrentStatus:(e,t)=>{e.currentStatus=t.payload},setSystemStatus:(e,t)=>({...e,...t.payload}),errorOccurred:e=>{e.hasError=!0,e.isProcessing=!1,e.isCancelable=!0,e.currentStep=0,e.totalSteps=0,e.currentIteration=0,e.totalIterations=0,e.currentStatusHasSteps=!1,e.currentStatus=Mt.t("common.statusError"),e.wasErrorSeen=!1},errorSeen:e=>{e.hasError=!1,e.wasErrorSeen=!0,e.currentStatus=e.isConnected?Mt.t("common.statusConnected"):Mt.t("common.statusDisconnected")},addLogEntry:(e,t)=>{const{timestamp:n,message:r,level:i}=t.payload,a={timestamp:n,message:r,level:i||"info"};e.log.push(a)},setShouldShowLogViewer:(e,t)=>{e.
|
|||
|
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,s=o!==Wm&&o!==void 0,l=a!==Wm&&a!==void 0,u=this.padding(),c=o-u*2,h=a-u*2,m=0,y=this.wrap(),b=y!==ID,S=y!==W_e&&b,k=this.ellipsis();this.textArr=[],q6().font=this._getContextFont();for(var _=k?this._getTextWidth(G6):0,E=0,P=t.length;E<P;++E){var L=t[E],O=this._getTextWidth(L);if(s&&O>c)for(;L.length>0;){for(var I=0,D=L.length,j="",$=0;I<D;){var V=I+D>>>1,Y=L.slice(0,V+1),te=this._getTextWidth(Y)+_;te<=c?(I=V+1,j=Y,$=te):D=V}if(j){if(S){var z,F=L[j.length],U=F===Y3||F===AD;U&&$<=c?z=j.length:z=Math.max(j.lastIndexOf(Y3),j.lastIndexOf(AD))+1,z>0&&(I=z,j=j.slice(0,I),$=this._getTextWidth(j))}j=j.trimRight(),this._addTextLine(j),r=Math.max(r,$),m+=i;var X=this._shouldHandleEllipsis(m);if(X){this._tryToAddEllipsisToLastLine();break}if(L=L.slice(I),L=L.trimLeft(),L.length>0&&(O=this._getTextWidth(L),O<=c)){this._addTextLine(L),m+=i,r=Math.max(r,O);break}}else break}else this._addTextLine(L),m+=i,r=Math.max(r,O),this._shouldHandleEllipsis(m)&&E<P-1&&this._tryToAddEllipsisToLastLine();if(l&&m+i>h)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!==Wm&&i!==void 0,a=this.padding(),s=i-a*2,l=this.wrap(),u=l!==ID;return!u||o&&t+r>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==Wm&&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+G6)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+G6)}}getStrokeScaleEnabled(){return!0}}Ar.prototype._fillFunc=Y_e;Ar.prototype._strokeFunc=K_e;Ar.prototype.className=F_e;Ar.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];Or(Ar);ee.overWriteSetter(Ar,"width",zP());ee.overWriteSetter(Ar,"height",zP());ee.addGetterSetter(Ar,"fontFamily","Arial");ee.addGetterSetter(Ar,"fontSize",12,Ye());ee.addGetterSetter(Ar,"fontStyle",xq);ee.addGetterSetter(Ar,"fontVariant",xq);ee.addGetterSetter(Ar,"padding",0,Ye());ee.addGetterSetter(Ar,"align",Sq);ee.addGetterSetter(Ar,"verticalAlign",$_e);ee.addGetterSetter(Ar,"lineHeight",1,Ye());ee.addGetterSetter(Ar,"wrap",U_e);ee.addGetterSetter(Ar,"ellipsis",!1,ol());ee.addGetterSetter(Ar,"letterSpacing",0,Ye());ee.addGetterSetter(Ar,"text","",D0());ee.addGetterSetter(Ar,"textDecoration","");var Z_e="",Cq="normal";function _q(e){e.fillText(this.partialText,0,0)}function kq(e){e.strokeText(this.partialText,0,0)}class wi extends He{constructor(t){super(t),this.dummyCanvas=he.createCanvasElement(),this.dataArray=[],this.dataArray=Hn.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){this.dataArray=Hn.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 he.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line hei
|
|||
|
Copyright (c) Microsoft Corporation.
|
|||
|
|
|||
|
Permission to use, copy, modify, and/or distribute this software for any
|
|||
|
purpose with or without fee is hereby granted.
|
|||
|
|
|||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|||
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|||
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|||
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|||
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|||
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|||
|
PERFORMANCE OF THIS SOFTWARE.
|
|||
|
***************************************************************************** */var m8=function(e,t){return m8=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},m8(e,t)};function zLe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");m8(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var au=function(){return au=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},au.apply(this,arguments)};function SN(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||t)}var ss=function(e,t){return Number(e.toFixed(t))},HLe=function(e,t){return typeof e=="number"?e:t},Oi=function(e,t,n){n&&typeof n=="function"&&n(e,t)},VLe=function(e){return-Math.cos(e*Math.PI)/2+.5},ULe=function(e){return e},WLe=function(e){return e*e},GLe=function(e){return e*(2-e)},qLe=function(e){return e<.5?2*e*e:-1+(4-2*e)*e},YLe=function(e){return e*e*e},KLe=function(e){return--e*e*e+1},XLe=function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},ZLe=function(e){return e*e*e*e},QLe=function(e){return 1- --e*e*e*e},JLe=function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},eAe=function(e){return e*e*e*e*e},tAe=function(e){return 1+--e*e*e*e*e},nAe=function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e},JY={easeOut:VLe,linear:ULe,easeInQuad:WLe,easeOutQuad:GLe,easeInOutQuad:qLe,easeInCubic:YLe,easeOutCubic:KLe,easeInOutCubic:XLe,easeInQuart:ZLe,easeOutQuart:QLe,easeInOutQuart:JLe,easeInQuint:eAe,easeOutQuint:tAe,easeInOutQuint:nAe},eK=function(e){typeof e=="number"&&cancelAnimationFrame(e)},Gl=function(e){e.mounted&&(eK(e.animation),e.animate=!1,e.animation=null,e.velocity=null)};function tK(e,t,n,r){if(e.mounted){var i=new Date().getTime(),o=1;Gl(e),e.animation=function(){if(!e.mounted)return eK(e.animation);var a=new Date().getTime()-i,s=a/n,l=JY[t],u=l(s);a>=n?(r(o),e.animation=null):e.animation&&(r(u),requestAnimationFrame(e.animation))},requestAnimationFrame(e.animation)}}function xf(e,t,n,r){var i=rAe(t);if(!(!e.mounted||!i)){var o=e.setTransformState,a=e.transformState,s=a.scale,l=a.positionX,u=a.positionY,c=t.scale-s,h=t.positionX-l,m=t.positionY-u;n===0?o(t.scale,t.positionX,t.positionY):tK(e,r,n,function(y){var b=s+c*y,S=l+h*y,k=u+m*y;o(b,S,k)})}}function rAe(e){var t=e.scale,n=e.positionX,r=e.positionY;return!(isNaN(t)||isNaN(n)||isNaN(r))}function iAe(e,t,n){var r=e.offsetWidth,i=e.offsetHeight,o=t.offsetWidth,a=t.offsetHeight,s=o*n,l=a*n,u=r-s,c=i-l;return{wrapperWidth:r,wrapperHeight:i,newContentWidth:s,newDiffWidth:u,newContentHeight:l,newDiffHeight:c}}var oAe=function(e,t,n,r,i,o,a){var s=e>t?n*(a?1:.5):0,l=r>i?o*(a?1:.5):0,u=e-t-s,c=s,h=r-i-l,m=l;return{minPositionX:u,maxPositionX:c,minPositionY:h,maxPositionY:m}},hT=function(e,t){var n=e.wrapperComponent,r=e.contentComponent,i=e.setup.centerZoomedOut;if(!n||!r)throw new Error("Components are not mounted");var o=iAe(n,r,t),a=o.wrapperWidth,s=o.wrapperHeight,l=o.newContentWidth,u=o.newDiffWidth,c=o.newContentHeight,h=o.newDiffHeight,m=oAe(a,l,u,s,c,h,Boolean(i));return m},g0=function(e,t){var n=hT(e,t);return e.bounds=n,n};function gw(e,t,n,r,i,o,a){var s=n.minPositionX,l=n.minPositionY,u=n.maxPositionX,c=n.maxPositionY,h=0,m=0;a&&(h=i,m=o);var y=g8(e,s-h,u+h,r),b=g8(t,l-m,c+m,r);return{x:y,y:b}}var g8=function(e,t,n,r){return r?e<t?ss(t,2):e>n?ss(n,2):ss(e,2):ss(e,2)};function vw(e,t,n,r,i,o){var a=e.transformState,s=a.scale,l=a.positionX,u=a.positionY,c=r-s;if(typeof t!="number"||typeof n!="number")return console.error("Mouse X and Y position were not provided!"),{x:l,y:u};var h=l-t*c,m=u-n*c,y=gw(h,m,i,o,0,0,null);return y}function eb(e,t,n,r,i){var o=i?r:0,a=t-o;return!isNaN(n)&&e>=n?n:!isNaN(t)&&e<=a?a:e}var xN=function(e,t){var n=e.setup.pann
|
|||
|
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;
|
|||
|
}
|
|||
|
`,TN={wrapper:"transform-component-module_wrapper__1_Fgj",content:"transform-component-module_content__2jYgh"};KAe(XAe);var ZAe=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=w.useContext(dK).setComponents,u=w.useRef(null),c=w.useRef(null);return w.useEffect(function(){var h=u.current,m=c.current;h!==null&&m!==null&&l&&l(h,m)},[]),N.createElement("div",{ref:u,className:"react-transform-wrapper "+TN.wrapper+" "+r,style:a},N.createElement("div",{ref:c,className:"react-transform-component "+TN.content+" "+o,style:s},t))};function QAe({image:e,alt:t,ref:n,styleClass:r}){const[i,o]=w.useState(0),[a,s]=w.useState(!1),l=()=>{o(i===-3?0:i-1)},u=()=>{o(i===3?0:i+1)},c=()=>{s(!a)};return v.jsx(YAe,{centerOnInit:!0,minScale:.1,initialPositionX:50,initialPositionY:50,children:({zoomIn:h,zoomOut:m,resetTransform:y,centerView:b})=>v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"lightbox-image-options",children:[v.jsx(Qe,{icon:v.jsx(Ike,{}),"aria-label":"Zoom In",tooltip:"Zoom In",onClick:()=>h(),fontSize:20}),v.jsx(Qe,{icon:v.jsx(Rke,{}),"aria-label":"Zoom Out",tooltip:"Zoom Out",onClick:()=>m(),fontSize:20}),v.jsx(Qe,{icon:v.jsx(Ake,{}),"aria-label":"Rotate Left",tooltip:"Rotate Left",onClick:l,fontSize:20}),v.jsx(Qe,{icon:v.jsx(Oke,{}),"aria-label":"Rotate Right",tooltip:"Rotate Right",onClick:u,fontSize:20}),v.jsx(Qe,{icon:v.jsx(vTe,{}),"aria-label":"Flip Image",tooltip:"Flip Image",onClick:c,fontSize:20}),v.jsx(Qe,{icon:v.jsx(nw,{}),"aria-label":"Reset",tooltip:"Reset",onClick:()=>{y(),o(0),s(!1)},fontSize:20})]}),v.jsx(ZAe,{wrapperStyle:{width:"100%",height:"100%"},children:v.jsx("img",{style:{transform:`rotate(${i*90}deg) scaleX(${a?-1:1})`,width:"100%"},src:e,alt:t,ref:n,className:r||"",onLoad:()=>b(1,0,"easeOut")})})]})})}function JAe(){const e=Ie(),t=ce(m=>m.lightbox.isLightboxOpen),{viewerImageToDisplay:n,shouldShowImageDetails:r,isOnFirstImage:i,isOnLastImage:o}=ce(hY),[a,s]=w.useState(!1),l=()=>{s(!0)},u=()=>{s(!1)},c=()=>{e(OP())},h=()=>{e(AP())};return et("Esc",()=>{t&&e(qg(!1))},[t]),v.jsxs("div",{className:"lightbox-container",children:[v.jsx(Qe,{icon:v.jsx(Lke,{}),"aria-label":"Exit Viewer",className:"lightbox-close-btn",onClick:()=>{e(qg(!1))},fontSize:20}),v.jsxs("div",{className:"lightbox-display-container",children:[v.jsxs("div",{className:"lightbox-preview-wrapper",children:[v.jsx(dY,{}),!r&&v.jsxs("div",{className:"current-image-next-prev-buttons",children:[v.jsx("div",{className:"next-prev-button-trigger-area prev-button-trigger-area",onMouseOver:l,onMouseOut:u,children:a&&!i&&v.jsx(ds,{"aria-label":"Previous image",icon:v.jsx(eY,{className:"next-prev-button"}),variant:"unstyled",onClick:c})}),v.jsx("div",{className:"next-prev-button-trigger-area next-button-trigger-area",onMouseOver:l,onMouseOut:u,children:a&&!o&&v.jsx(ds,{"aria-label":"Next image",icon:v.jsx(tY,{className:"next-prev-button"}),variant:"unstyled",onClick:h})})]}),n&&v.jsxs(v.Fragment,{children:[v.jsx(QAe,{image:n.url,styleClass:"lightbox-image"}),r&&v.jsx(oT,{image:n})]})]}),v.jsx(QY,{})]})]})}function eOe(e){return ft({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{d:"M14 1H3L2 2v11l1 1h11l1-1V2l-1-1zM8 13H3V2h5v11zm6 0H9V2h5v11z"}}]})(e)}const tOe=dt(Pp,e=>({resultImages:e.categories.result.images,userImages:e.categories.user.images})),nOe=()=>{const{resultImages:e,userImages:t}=ce(tOe);return n=>{const r=e.find(o=>o.uuid===n);if(r)return r;const i=t.find(o=>o.uuid===n);if(i)return i}},rOe=dt([kp,tw,Hr],(e,t,n)=>{const{shouldShowDualDisplay:r,shouldPinParametersPanel:i}=e,{isLightboxOpen:o}=t;return{shouldShowDualDisplay:r,shouldPinParametersPanel:i,isLightboxOpen:o,shouldShowDualDisplayButton:["inpainting"].includes(n),activeTabName:n}},{memoizeOptions:{resultEqualityCheck:Me.isEqual}}),mT=e=>{const t=Ie(),{optionsPanel:n,children:r,styleClass:i}=e,{activeTabName:o,shouldShowDualDisplay:a,isLightboxOpen:s,shouldShowDualDisplayButton:l}=ce(rOe),u=nOe(),c=()=>{t(T7e(!a)),t(bi(!0))},h=m=>{const y=m.dataTransfer.getDa
|
|||
|
* @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 zOe=function(t){var n={},r=w,i=Wh,o=Object.assign;function a(f){for(var p="https://reactjs.org/docs/error-decoder.html?invariant="+f,x=1;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x]);return"Minified React error #"+f+"; visit "+p+" 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"),c=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),b=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),O=Symbol.iterator;function I(f){return f===null||typeof f!="object"?null:(f=O&&f[O]||f["@@iterator"],typeof f=="function"?f:null)}function D(f){if(f==null)return null;if(typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case c:return"Fragment";case u:return"Portal";case m:return"Profiler";case h:return"StrictMode";case k:return"Suspense";case _:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case b:return(f.displayName||"Context")+".Consumer";case y:return(f._context.displayName||"Context")+".Provider";case S:var p=f.render;return f=f.displayName,f||(f=p.displayName||p.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case E:return p=f.displayName||null,p!==null?p:D(f.type)||"Memo";case P:p=f._payload,f=f._init;try{return D(f(p))}catch{}}return null}function j(f){var p=f.type;switch(f.tag){case 24:return"Cache";case 9:return(p.displayName||"Context")+".Consumer";case 10:return(p._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return f=p.render,f=f.displayName||f.name||"",p.displayName||(f!==""?"ForwardRef("+f+")":"ForwardRef");case 7:return"Fragment";case 5:return p;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return D(p);case 8:return p===h?"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 p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p}return null}function $(f){var p=f,x=f;if(f.alternate)for(;p.return;)p=p.return;else{f=p;do p=f,p.flags&4098&&(x=p.return),f=p.return;while(f)}return p.tag===3?x:null}function V(f){if($(f)!==f)throw Error(a(188))}function Y(f){var p=f.alternate;if(!p){if(p=$(f),p===null)throw Error(a(188));return p!==f?null:f}for(var x=f,T=p;;){var M=x.return;if(M===null)break;var R=M.alternate;if(R===null){if(T=M.return,T!==null){x=T;continue}break}if(M.child===R.child){for(R=M.child;R;){if(R===x)return V(M),f;if(R===T)return V(M),p;R=R.sibling}throw Error(a(188))}if(x.return!==T.return)x=M,T=R;else{for(var q=!1,le=M.child;le;){if(le===x){q=!0,x=M,T=R;break}if(le===T){q=!0,T=M,x=R;break}le=le.sibling}if(!q){for(le=R.child;le;){if(le===x){q=!0,x=R,T=M;break}if(le===T){q=!0,T=R,x=M;break}le=le.sibling}if(!q)throw Error(a(189))}}if(x.alternate!==T)throw Error(a(190))}if(x.tag!==3)throw Error(a(188));return x.stateNode.current===x?f:p}function te(f){return f=Y(f),f!==null?z(f):null}function z(f){if(f.tag===5||f.tag===6)return f;for(f=f.child;f!==null;){var p=z(f);if(p!==null)return p;f=f.sibling}return null}function F(f){if(f.tag===5||f.tag===6)return f;for(f=f.child;f!==null;){if(f.tag!==4){var p=F(f);if(p!==null)return p}f=f.sibling}return null}var U=Array.isArray,X=t.getPublicInstance,Z=t.getRootHostContext,G=t.getChildHostContext,Q=t.prepareForCommit,ne=t.resetAfterCommit,de=t.createInstance,_e=t.appendInitialChild,ke=t.finalizeInitialChildren,ve=t.prepareUpdate,$e=t.shouldSetTextContent,be=t.createTextInstance,rt=t.scheduleTimeout,We=t.cancelTimeout,Fe=t.noTimeout,wt=t.isPrimaryRenderer,ze=t.supportsMutation,at=t.supportsPersistence,bt=t.supports
|
|||
|
`+Su+f}var ul=!1;function wu(f,p){if(!f||ul)return"";ul=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(p)if(p=function(){throw Error()},Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(Ge){var T=Ge}Reflect.construct(f,[],p)}else{try{p.call()}catch(Ge){T=Ge}f.call(p.prototype)}else{try{throw Error()}catch(Ge){T=Ge}f()}}catch(Ge){if(Ge&&T&&typeof Ge.stack=="string"){for(var M=Ge.stack.split(`
|
|||
|
`),R=T.stack.split(`
|
|||
|
`),q=M.length-1,le=R.length-1;1<=q&&0<=le&&M[q]!==R[le];)le--;for(;1<=q&&0<=le;q--,le--)if(M[q]!==R[le]){if(q!==1||le!==1)do if(q--,le--,0>le||M[q]!==R[le]){var pe=`
|
|||
|
`+M[q].replace(" at new "," at ");return f.displayName&&pe.includes("<anonymous>")&&(pe=pe.replace("<anonymous>",f.displayName)),pe}while(1<=q&&0<=le);break}}}finally{ul=!1,Error.prepareStackTrace=x}return(f=f?f.displayName||f.name:"")?xu(f):""}var jp=Object.prototype.hasOwnProperty,Tc=[],cl=-1;function sa(f){return{current:f}}function Nn(f){0>cl||(f.current=Tc[cl],Tc[cl]=null,cl--)}function Mn(f,p){cl++,Tc[cl]=f.current,f.current=p}var la={},Vr=sa(la),ci=sa(!1),ua=la;function dl(f,p){var x=f.type.contextTypes;if(!x)return la;var T=f.stateNode;if(T&&T.__reactInternalMemoizedUnmaskedChildContext===p)return T.__reactInternalMemoizedMaskedChildContext;var M={},R;for(R in x)M[R]=p[R];return T&&(f=f.stateNode,f.__reactInternalMemoizedUnmaskedChildContext=p,f.__reactInternalMemoizedMaskedChildContext=M),M}function di(f){return f=f.childContextTypes,f!=null}function xs(){Nn(ci),Nn(Vr)}function Ef(f,p,x){if(Vr.current!==la)throw Error(a(168));Mn(Vr,p),Mn(ci,x)}function Cu(f,p,x){var T=f.stateNode;if(p=p.childContextTypes,typeof T.getChildContext!="function")return x;T=T.getChildContext();for(var M in T)if(!(M in p))throw Error(a(108,j(f)||"Unknown",M));return o({},x,T)}function ws(f){return f=(f=f.stateNode)&&f.__reactInternalMemoizedMergedChildContext||la,ua=Vr.current,Mn(Vr,f),Mn(ci,ci.current),!0}function Pf(f,p,x){var T=f.stateNode;if(!T)throw Error(a(169));x?(f=Cu(f,p,ua),T.__reactInternalMemoizedMergedChildContext=f,Nn(ci),Nn(Vr),Mn(Vr,f)):Nn(ci),Mn(ci,x)}var ji=Math.clz32?Math.clz32:Tf,Bp=Math.log,Fp=Math.LN2;function Tf(f){return f>>>=0,f===0?32:31-(Bp(f)/Fp|0)|0}var fl=64,Ro=4194304;function hl(f){switch(f&-f){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 f&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return f&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return f}}function _u(f,p){var x=f.pendingLanes;if(x===0)return 0;var T=0,M=f.suspendedLanes,R=f.pingedLanes,q=x&268435455;if(q!==0){var le=q&~M;le!==0?T=hl(le):(R&=q,R!==0&&(T=hl(R)))}else q=x&~M,q!==0?T=hl(q):R!==0&&(T=hl(R));if(T===0)return 0;if(p!==0&&p!==T&&!(p&M)&&(M=T&-T,R=p&-p,M>=R||M===16&&(R&4194240)!==0))return p;if(T&4&&(T|=x&16),p=f.entangledLanes,p!==0)for(f=f.entanglements,p&=T;0<p;)x=31-ji(p),M=1<<x,T|=f[x],p&=~M;return T}function n1(f,p){switch(f){case 1:case 2:case 4:return p+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 p+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 Mc(f,p){for(var x=f.suspendedLanes,T=f.pingedLanes,M=f.expirationTimes,R=f.pendingLanes;0<R;){var q=31-ji(R),le=1<<q,pe=M[q];pe===-1?(!(le&x)||le&T)&&(M[q]=n1(le,p)):pe<=p&&(f.expiredLanes|=le),R&=~le}}function Lc(f){return f=f.pendingLanes&-1073741825,f!==0?f:f&1073741824?1073741824:0}function Mf(){var f=fl;return fl<<=1,!(fl&4194240)&&(fl=64),f}function Ac(f){for(var p=[],x=0;31>x;x++)p.push(f);return p}function Ha(f,p,x){f.pendingLanes|=p,p!==536870912&&(f.suspendedLanes=0,f.pingedLanes=0),f=f.eventTimes,p=31-ji(p),f[p]=x}function Lf(f,p){var x=f.pendingLanes&~p;f.pendingLanes=p,f.suspendedLanes=0,f.pingedLanes=0,f.expiredLanes&=p,f.mutableReadLanes&=p,f.entangledLanes&=p,p=f.entanglements;var T=f.eventTimes;for(f=f.expirationTimes;0<x;){var M=31-ji(x),R=1<<M;p[M]=0,T[M]=-1,f[M]=-1,x&=~R}}function ku(f,p){var x=f.entangledLanes|=p;for(f=f.entanglements;x;){var T=31-ji(x),M=1<<T;M&p|f[T]&p&&(f[T]|=p),x&=~M}}var Kt=0;function $p(f){return f&=-f,1<f?4<f?f&268435455?16:536870912:4:1}var Oc=i.unstable_scheduleCallback,Ic=i.unstable_cancelCallback,
|
|||
|
Error generating stack: `+R.message+`
|
|||
|
`+R.stack}return{value:f,source:p,stack:M,digest:null}}function b1(f,p,x){return{value:f,source:null,stack:x??null,digest:p??null}}function Qc(f,p){try{console.error(p.value)}catch(x){setTimeout(function(){throw x})}}var Kf=typeof WeakMap=="function"?WeakMap:Map;function S1(f,p,x){x=_s(-1,x),x.tag=3,x.payload={element:null};var T=p.value;return x.callback=function(){Jf||(Jf=!0,eh=T),Qc(f,p)},x}function H(f,p,x){x=_s(-1,x),x.tag=3;var T=f.type.getDerivedStateFromError;if(typeof T=="function"){var M=p.value;x.payload=function(){return T(M)},x.callback=function(){Qc(f,p)}}var R=f.stateNode;return R!==null&&typeof R.componentDidCatch=="function"&&(x.callback=function(){Qc(f,p),typeof T!="function"&&(_l===null?_l=new Set([this]):_l.add(this));var q=p.stack;this.componentDidCatch(p.value,{componentStack:q!==null?q:""})}),x}function Lu(f,p,x){var T=f.pingCache;if(T===null){T=f.pingCache=new Kf;var M=new Set;T.set(p,M)}else M=T.get(p),M===void 0&&(M=new Set,T.set(p,M));M.has(x)||(M.add(x),f=Rb.bind(null,f,p,x),p.then(f,f))}function Xf(f){do{var p;if((p=f.tag===13)&&(p=f.memoizedState,p=p!==null?p.dehydrated!==null:!0),p)return f;f=f.return}while(f!==null);return null}function po(f,p,x,T,M){return f.mode&1?(f.flags|=65536,f.lanes=M,f):(f===p?f.flags|=65536:(f.flags|=128,x.flags|=131072,x.flags&=-52805,x.tag===1&&(x.alternate===null?x.tag=17:(p=_s(-1,1),p.tag=2,gl(x,p,1))),x.lanes|=1),f)}var Qt=s.ReactCurrentOwner,ro=!1;function zi(f,p,x,T){p.child=f===null?pb(p,null,x,T):Fc(p,f.child,x,T)}function wb(f,p,x,T,M){x=x.render;var R=p.ref;return jc(p,M),T=f1(f,p,x,T,R,M),x=Hc(),f!==null&&!ro?(p.updateQueue=f.updateQueue,p.flags&=-2053,f.lanes&=~M,Es(f,p,M)):(Wn&&x&&Bi(p),p.flags|=1,zi(f,p,T,M),p.child)}function yl(f,p,x,T,M){if(f===null){var R=x.type;return typeof R=="function"&&!z1(R)&&R.defaultProps===void 0&&x.compare===null&&x.defaultProps===void 0?(p.tag=15,p.type=R,Cb(f,p,R,T,M)):(f=ih(x.type,null,T,p,p.mode,M),f.ref=p.ref,f.return=p,p.child=f)}if(R=f.child,!(f.lanes&M)){var q=R.memoizedProps;if(x=x.compare,x=x!==null?x:Eu,x(q,T)&&f.ref===p.ref)return Es(f,p,M)}return p.flags|=1,f=vo(R,T),f.ref=p.ref,f.return=p,p.child=f}function Cb(f,p,x,T,M){if(f!==null){var R=f.memoizedProps;if(Eu(R,T)&&f.ref===p.ref)if(ro=!1,p.pendingProps=T=R,(f.lanes&M)!==0)f.flags&131072&&(ro=!0);else return p.lanes=f.lanes,Es(f,p,M)}return x1(f,p,x,T,M)}function _b(f,p,x){var T=p.pendingProps,M=T.children,R=f!==null?f.memoizedState:null;if(T.mode==="hidden")if(!(p.mode&1))p.memoizedState={baseLanes:0,cachePool:null,transitions:null},Mn(xl,mo),mo|=x;else{if(!(x&1073741824))return f=R!==null?R.baseLanes|x:x,p.lanes=p.childLanes=1073741824,p.memoizedState={baseLanes:f,cachePool:null,transitions:null},p.updateQueue=null,Mn(xl,mo),mo|=f,null;p.memoizedState={baseLanes:0,cachePool:null,transitions:null},T=R!==null?R.baseLanes:x,Mn(xl,mo),mo|=T}else R!==null?(T=R.baseLanes|x,p.memoizedState=null):T=x,Mn(xl,mo),mo|=T;return zi(f,p,M,x),p.child}function kb(f,p){var x=p.ref;(f===null&&x!==null||f!==null&&f.ref!==x)&&(p.flags|=512,p.flags|=2097152)}function x1(f,p,x,T,M){var R=di(x)?ua:Vr.current;return R=dl(p,R),jc(p,M),x=f1(f,p,x,T,R,M),T=Hc(),f!==null&&!ro?(p.updateQueue=f.updateQueue,p.flags&=-2053,f.lanes&=~M,Es(f,p,M)):(Wn&&T&&Bi(p),p.flags|=1,zi(f,p,x,M),p.child)}function Eb(f,p,x,T,M){if(di(x)){var R=!0;ws(p)}else R=!1;if(jc(p,M),p.stateNode===null)qa(f,p),db(p,x,T),l1(p,x,T,M),T=!0;else if(f===null){var q=p.stateNode,le=p.memoizedProps;q.props=le;var pe=q.context,Ge=x.contextType;typeof Ge=="object"&&Ge!==null?Ge=ho(Ge):(Ge=di(x)?ua:Vr.current,Ge=dl(p,Ge));var ht=x.getDerivedStateFromProps,Bt=typeof ht=="function"||typeof q.getSnapshotBeforeUpdate=="function";Bt||typeof q.UNSAFE_componentWillReceiveProps!="function"&&typeof q.componentWillReceiveProps!="function"||(le!==T||pe!==Ge)&&fb(p,q,T,Ge),Cs=!1;var ot=p.memoizedState;q.state=ot,Yp(p,T,q,M),pe=p.memoizedState,le!==T||ot!==pe||ci.current||Cs?(typeof ht=="function"&&(Xp(p,x,ht,T),pe=p.memoizedState),(le=Cs||$f(p,x,le,T,ot,pe,Ge))?(Bt||typeof q.UNSAFE_componentWillMount!="function"&&typeof q.componentW
|
|||
|
`+(T.join(" > ")+`
|
|||
|
|
|||
|
No matching component was found for:
|
|||
|
`)+f.join(" > ")}return null},n.getPublicRootInstance=function(f){if(f=f.current,!f.child)return null;switch(f.child.tag){case 5:return X(f.child.stateNode);default:return f.child.stateNode}},n.injectIntoDevTools=function(f){if(f={bundleType:f.bundleType,version:f.version,rendererPackageName:f.rendererPackageName,rendererConfig:f.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:Pm,findFiberByHostInstance:f.findFiberByHostInstance||U1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")f=!1;else{var p=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(p.isDisabled||!p.supportsFiber)f=!0;else{try{vn=p.inject(f),Xt=p}catch{}f=!!p.checkDCE}}return f},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(f,p,x,T){if(!ae)throw Error(a(363));f=O1(f,p);var M=Nt(f,x,T).disconnect;return{disconnect:function(){M()}}},n.registerMutableSourceForHydration=function(f,p){var x=p._getVersion;x=x(p._source),f.mutableSourceEagerHydrationData==null?f.mutableSourceEagerHydrationData=[p,x]:f.mutableSourceEagerHydrationData.push(p,x)},n.runWithPriority=function(f,p){var x=Kt;try{return Kt=f,p()}finally{Kt=x}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(f,p,x,T){var M=p.current,R=Pi(),q=Yr(M);return x=H1(x),p.context===null?p.context=x:p.pendingContext=x,p=_s(R,q),p.payload={element:f},T=T===void 0?null:T,T!==null&&(p.callback=T),f=gl(M,p,q),f!==null&&(zo(f,M,q,R),qp(f,M,q)),q},n};(function(e){e.exports=zOe})($Oe);const HOe=I8(v8);var SS={},VOe={get exports(){return SS},set exports(e){SS=e}},Mp={};/**
|
|||
|
* @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.
|
|||
|
*/Mp.ConcurrentRoot=1;Mp.ContinuousEventPriority=4;Mp.DefaultEventPriority=16;Mp.DiscreteEventPriority=1;Mp.IdleEventPriority=536870912;Mp.LegacyRoot=0;(function(e){e.exports=Mp})(VOe);const NN={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let jN=!1,BN=!1;const PT=".react-konva-event",UOe=`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
|
|||
|
`,WOe=`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
|
|||
|
`,GOe={};function bw(e,t,n=GOe){if(!jN&&"zIndex"in t&&(console.warn(WOe),jN=!0),!BN&&t.draggable){var r=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn(UOe),BN=!0)}for(var o in n)if(!NN[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 c=t._useStrictMode,h={},m=!1;const y={};for(var o in t)if(!NN[o]){var a=o.slice(0,2)==="on",b=n[o]!==t[o];if(a&&b){var l=o.substr(2).toLowerCase();l.substr(0,7)==="content"&&(l="content"+l.substr(7,1).toUpperCase()+l.substr(8)),t[o]&&(y[l]=t[o])}!a&&(t[o]!==n[o]||c&&t[o]!==e.getAttr(o))&&(m=!0,h[o]=t[o])}m&&(e.setAttrs(h),wf(e));for(var l in y)e.on(l+PT,y[l])}function wf(e){if(!gt.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const bK={},qOe={};ap.Node.prototype._applyProps=bw;function YOe(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),wf(e)}function KOe(e,t,n){let r=ap[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=ap.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 bw(l,o),l}function XOe(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function ZOe(e,t,n){return!1}function QOe(e){return e}function JOe(){return null}function eIe(){return null}function tIe(e,t,n,r){return qOe}function nIe(){}function rIe(e){}function iIe(e,t){return!1}function oIe(){return bK}function aIe(){return bK}const sIe=setTimeout,lIe=clearTimeout,uIe=-1;function cIe(e,t){return!1}const dIe=!1,fIe=!0,hIe=!0;function pIe(e,t){t.parent===e?t.moveToTop():e.add(t),wf(e)}function mIe(e,t){t.parent===e?t.moveToTop():e.add(t),wf(e)}function SK(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),wf(e)}function gIe(e,t,n){SK(e,t,n)}function vIe(e,t){t.destroy(),t.off(PT),wf(e)}function yIe(e,t){t.destroy(),t.off(PT),wf(e)}function bIe(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function SIe(e,t,n){}function xIe(e,t,n,r,i){bw(e,i,r)}function wIe(e){e.hide(),wf(e)}function CIe(e){}function _Ie(e,t){(t.visible==null||t.visible)&&e.show()}function kIe(e,t){}function EIe(e){}function PIe(){}const TIe=()=>SS.DefaultEventPriority,MIe=Object.freeze(Object.defineProperty({__proto__:null,appendChild:pIe,appendChildToContainer:mIe,appendInitialChild:YOe,cancelTimeout:lIe,clearContainer:EIe,commitMount:SIe,commitTextUpdate:bIe,commitUpdate:xIe,createInstance:KOe,createTextInstance:XOe,detachDeletedInstance:PIe,finalizeInitialChildren:ZOe,getChildHostContext:aIe,getCurrentEventPriority:TIe,getPublicInstance:QOe,getRootHostContext:oIe,hideInstance:wIe,hideTextInstance:CIe,idlePriority:Wh.unstable_IdlePriority,insertBefore:SK,insertInContainerBefore:gIe,isPrimaryRenderer:dIe,noTimeout:uIe,now:Wh.unstable_now,prepareForCommit:JOe,preparePortalMount:eIe,prepareUpdate:tIe,removeChild:vIe,removeChildFromContainer:yIe,resetAfterCommit:nIe,resetTextContent:rIe,run:Wh.unstable_runWithPriority,scheduleTimeout:sIe,shouldDeprioritizeSubtree:iIe,shouldSetTextContent:cIe,supportsMutation:hIe,unhideInstance:_Ie,unhideTextInstance:kIe,warnsIfNotActing:fIe},Symbol.toStringTag,{value:"Module"}));var LIe=Object.defineProperty,AIe=Object.defineProperties,OIe=Object.getOwnPropertyDescriptors,FN=Object.getOwnPropertySymbols,IIe=Object.prototype.hasOwnProperty,RIe=Object.prototype.propertyIsEnumerable,$N=(e,t,n)=>t in e?LIe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zN=(e,t)=>{for(var n in t||(t={}))IIe.call(t,n)&&$N(e,n,t[n]);if(FN)for(var n of FN(t))RIe.call(t,n)
|
|||
|
<!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),dRe=e=>{const{...t}=e,{maskColorString:n,stageCoordinates:r,stageDimensions:i,stageScale:o}=ce(cRe),[a,s]=w.useState(null),[l,u]=w.useState(0),c=w.useRef(null),h=w.useCallback(()=>{u(l+1),setTimeout(h,500)},[l]);return w.useEffect(()=>{if(a)return;const m=new Image;m.onload=()=>{s(m)},m.src=VN(n)},[a,n]),w.useEffect(()=>{a&&(a.src=VN(n))},[a,n]),w.useEffect(()=>{const m=setInterval(()=>u(y=>(y+1)%5),50);return()=>clearInterval(m)},[]),!a||!Me.isNumber(r.x)||!Me.isNumber(r.y)||!Me.isNumber(o)||!Me.isNumber(i.width)||!Me.isNumber(i.height)?null:v.jsx(mc,{ref:c,offsetX:r.x/o,offsetY:r.y/o,height:i.height/o,width:i.width/o,fillPatternImage:a,fillPatternOffsetY:Me.isNumber(l)?l:0,fillPatternRepeat:"repeat",fillPatternScale:{x:1/o,y:1/o},listening:!0,globalCompositeOperation:"source-in",...t})},fRe=dt([ln],e=>({objects:e.layerState.objects}),{memoizeOptions:{resultEqualityCheck:Me.isEqual}}),hRe=e=>{const{...t}=e,{objects:n}=ce(fRe);return v.jsx(pc,{listening:!1,...t,children:n.filter(TP).map((r,i)=>v.jsx(xS,{points:r.points,stroke:"rgb(0,0,0)",strokeWidth:r.strokeWidth*2,tension:0,lineCap:"round",lineJoin:"round",shadowForStrokeEnabled:!1,listening:!1,globalCompositeOperation:r.tool==="brush"?"source-over":"destination-out"},i))})};var mh=w,pRe=function(t,n,r){const i=mh.useRef("loading"),o=mh.useRef(),[a,s]=mh.useState(0),l=mh.useRef(),u=mh.useRef(),c=mh.useRef();return(l.current!==t||u.current!==n||c.current!==r)&&(i.current="loading",o.current=void 0,l.current=t,u.current=n,c.current=r),mh.useLayoutEffect(function(){if(!t)return;var h=document.createElement("img");function m(){i.current="loaded",o.current=h,s(Math.random())}function y(){i.current="failed",o.current=void 0,s(Math.random())}return h.addEventListener("load",m),h.addEventListener("error",y),n&&(h.crossOrigin=n),r&&(h.referrerpolicy=r),h.src=t,function(){h.removeEventListener("load",m),h.removeEventListener("error",y)}},[t,n,r]),[o.current,i.current]};const kK=e=>{const{url:t,x:n,y:r}=e,[i]=pRe(t);return v.jsx(CK,{x:n,y:r,image:i,listening:!1})},mRe=dt([ln],e=>{const{layerState:{objects:t}}=e;return{objects:t}},{memoizeOptions:{resultEqualityCheck:Me.isEqual}}),gRe=()=>{const{objects:e}=ce(mRe);return e?v.jsx(pc,{name:"outpainting-objects",listening:!1,children:e.map((t,n)=>{if(tS(t))return v.jsx(kK,{x:t.x,y:t.y,url:t.image.url},n);if(Pwe(t)){const r=v.jsx(xS,{points:t.points,stroke:t.color?Kh(t.color):"rgb(0,0,0)",strokeWidth:t.strokeWidth*2,tension:0,lineCap:"round",lineJoin:"round",shadowForStrokeEnabled:!1,listening:!1,globalCompositeOperation:t.tool==="brush"?"source-over":"destination-out"},n);return t.clip?v.jsx(pc,{clipX:t.clip.x,clipY:t.clip.y,clipWidth:t.clip.width,clipHeight:t.clip.height,children:r},n):r}else{if(Twe(t))return v.jsx(mc,{x:t.x,y:t.y,width:t.width,height:t.height,fill:Kh(t.color)},n);if(Mwe(t))return v.jsx(mc,{x:t.x,y:t.y,width:t.width,height:t.height,fill:"rgb(255, 255, 255)",globalCompositeOperation:"destination-out"},n)}})}):null},vRe=dt([ln],e=>{const{layerState:{stagingArea:{images:t,selectedImageIndex:n}},shouldShowStagingImage:r,shouldShowStagingOutline:i,boundingBoxCoordinates:{x:o,y:a},boundingBoxDimensions:{width:s,height:l}}=e;return{currentStagingAreaImage:t.length>0?t[n]:void 0,isOnFirstImage:n===0,isOnLastImage:n===t.length-1,shouldShowStagingImage:r,shouldShowStagingOutline:i,x:o,y:a,width:s,height:l}},{memoizeOptions:{resultEqualityCheck:Me.isEqual}}),yRe=e=>{const{...t}=e,{currentStagingAreaImage:n,shouldShowStagingImage:r,shouldShowStagingOutline:i,x:o,y:a,width:s,height:l}=ce(vRe);return v.jsxs(pc,{...t,children:[r&&n&&v.jsx(kK,{url:n.image.url,x:o,y:a}),i&&v.jsxs(pc,{children:[v.jsx(mc,{x:o,y:a,width:s,height:l,strokeWidth:1,stroke:"white",strokeScaleEnabled:!1}),v.jsx(mc,{x:o,y:a,width:s,height:l,dash:[4,4],strokeWidth:1,stroke:"black",strokeScaleEnabled:!1})]})]})},bRe=dt([ln],e=>{const{layerState:{stagingArea:{images:t,selectedImageIndex:n}},shouldShowStagingOutline:r,shouldShowStagingImage:i}=e;return{currentStagingAreaImage:t.length>0?t[n]:void 0,isOnFirstImage:n===0,isOnLastImage
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dNe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fNe(e){if(Array.isArray(e))return w8(e)}function XN(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 ZN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XN(Object(n),!0).forEach(function(r){FK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function FK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gy(e,t){return mNe(e)||pNe(e,t)||$K(e,t)||hNe()}function hNe(){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 $K(e,t){if(e){if(typeof e=="string")return w8(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 w8(e,t)}}function w8(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 pNe(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 mNe(e){if(Array.isArray(e))return e}var gNe="file-invalid-type",vNe="file-too-large",yNe="file-too-small",bNe="too-many-files",SNe=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:gNe,message:"File type must be ".concat(n)}},QN=function(t){return{code:vNe,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},JN=function(t){return{code:yNe,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},xNe={code:bNe,message:"Too many files"};function zK(e,t){var n=e.type==="application/x-moz-file"||uNe(e,t);return[n,n?null:SNe(t)]}function HK(e,t,n){if(Th(e.size))if(Th(t)&&Th(n)){if(e.size>n)return[!1,QN(n)];if(e.size<t)return[!1,JN(t)]}else{if(Th(t)&&e.size<t)return[!1,JN(t)];if(Th(n)&&e.size>n)return[!1,QN(n)]}return[!0,null]}function Th(e){return e!=null}function wNe(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=zK(l,n),c=gy(u,1),h=c[0],m=HK(l,r,i),y=gy(m,1),b=y[0],S=s?s(l):null;return h&&b&&!S})}function _S(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function o4(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 ej(e){e.preventDefault()}function CNe(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function _Ne(e){return e.indexOf("Edge/")!==-1}function kNe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return CNe(e)||_Ne(e)}function Nl(){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!_S(r)&&s&&s.apply(void 0,[r].concat(o)),_S(r)})}}function ENe(){return"showOpenFilePicker"in window}function PNe(e){if(Th(e)){var t=Object.entries(e).filter(function(n){var r=gy(n,2),i=r[0],o=r[1],a=!0;return VK(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(UK))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=gy(r,2),o=i[0],a=i[1];return ZN(ZN({},n),{},FK({},o,a))},{});return[{description:"Files",accept:t}]}return e}function TNe(e){if(Th(e))return Object.entries(e).reduce(function(t,n){var r=gy(n,2),i=r[0],o=r[1];return[].concat(KN(t),[i],KN(o))},[]).filter(function(t){return VK(t)||UK(t)}).join(",")}function MNe(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function LNe(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function VK(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function UK(e){return/^.*\.[\w]+$/.test(e)}var ANe=["children"],ONe=["open"],INe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onD
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jNe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function BNe(e){if(Array.isArray(e))return C8(e)}function o7(e,t){return zNe(e)||$Ne(e,t)||WK(e,t)||FNe()}function FNe(){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 WK(e,t){if(e){if(typeof e=="string")return C8(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 C8(e,t)}}function C8(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 $Ne(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 zNe(e){if(Array.isArray(e))return e}function tj(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 Pr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tj(Object(n),!0).forEach(function(r){_8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kS(e,t){if(e==null)return{};var n=HNe(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 HNe(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 IT=w.forwardRef(function(e,t){var n=e.children,r=kS(e,ANe),i=qK(r),o=i.open,a=kS(i,ONe);return w.useImperativeHandle(t,function(){return{open:o}},[o]),N.createElement(w.Fragment,null,n(Pr(Pr({},a),{},{open:o})))});IT.displayName="Dropzone";var GK={disabled:!1,getFilesFromEvent:eNe,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};IT.defaultProps=GK;IT.propTypes={children:Bn.func,accept:Bn.objectOf(Bn.arrayOf(Bn.string)),multiple:Bn.bool,preventDropOnDocument:Bn.bool,noClick:Bn.bool,noKeyboard:Bn.bool,noDrag:Bn.bool,noDragEventsBubbling:Bn.bool,minSize:Bn.number,maxSize:Bn.number,maxFiles:Bn.number,disabled:Bn.bool,getFilesFromEvent:Bn.func,onFileDialogCancel:Bn.func,onFileDialogOpen:Bn.func,useFsAccessApi:Bn.bool,autoFocus:Bn.bool,onDragEnter:Bn.func,onDragLeave:Bn.func,onDragOver:Bn.func,onDrop:Bn.func,onDropAccepted:Bn.func,onDropRejected:Bn.func,onError:Bn.func,validator:Bn.func};var k8={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function qK(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Pr(Pr({},GK),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,c=t.onDragLeave,h=t.onDragOver,m=t.onDrop,y=t.onDropAccepted,b=t.onDropRejected,S=t.onFileDialogCancel,k=t.onFileDialogOpen,_=t.useFsAccessApi,E=t.autoFocus,P=t.preventDropOnDocument,L=t.noClick,O=t.noKeyboard,I=t.noDrag,D=t.noDragEventsBubbling,j=t.onError,$=t.validator,V=w.useMemo(function(){return TNe(n)},[n]),Y=w.useMemo(function(){return PNe(n)},[n]),te=w.useMemo(function(){return typeof k=="function"?k:nj},[k]),z=w.useMemo(function(){return typeof S=="function"?S:nj},[S]),F=w.useRef(null),U=w.useRef(null),X=w.useReducer(VNe,k8),Z=o7(X,2),G=Z[0],Q=Z[1],ne=G.isFocused,de=G.isFileDialogActive,_e=w.useRef(typeof window<"u"&&window.isSecureContext&&_&&ENe()),ke=function(){!_e.current&&de&&setTimeout(function(){if(U.current){var Be=U.current.files;Be.length||(Q({type:"closeDialog"}),z())}},300)};w.use
|
|||
|
${I.message}`,"");i({title:o("toast.uploadFailed"),description:L,status:"error",isClosable:!0})},[o,i]),c=w.useCallback(async P=>{n(VD({imageFile:P}))},[n]),h=w.useCallback((P,L)=>{L.forEach(O=>{u(O)}),P.forEach(O=>{c(O)})},[c,u]),{getRootProps:m,getInputProps:y,isDragAccept:b,isDragReject:S,isDragActive:k,open:_}=qK({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:h,onDragOver:()=>s(!0),maxFiles:1});l(_),w.useEffect(()=>{const P=L=>{var j;const O=(j=L.clipboardData)==null?void 0:j.items;if(!O)return;const I=[];for(const $ of O)$.kind==="file"&&["image/png","image/jpg"].includes($.type)&&I.push($);if(!I.length)return;if(L.stopImmediatePropagation(),I.length>1){i({description:o("toast.uploadFailedMultipleImagesDesc"),status:"error",isClosable:!0});return}const D=I[0].getAsFile();if(!D){i({description:o("toast.uploadFailedUnableToLoadDesc"),status:"error",isClosable:!0});return}n(VD({imageFile:D}))};return document.addEventListener("paste",P),()=>{document.removeEventListener("paste",P)}},[o,n,i,r]);const E=["img2img","unifiedCanvas"].includes(r)?` to ${rs[r].tooltip}`:"";return v.jsx(GP.Provider,{value:_,children:v.jsxs("div",{...m({style:{}}),onKeyDown:P=>{P.key},children:[v.jsx("input",{...y()}),t,k&&a&&v.jsx(UNe,{isDragAccept:b,isDragReject:S,overlaySecondaryText:E,setIsHandlingUpload:s})]})})},GNe=dt(mr,e=>e.log,{memoizeOptions:{resultEqualityCheck:(e,t)=>e.length===t.length}}),qNe=dt(mr,e=>({shouldShowLogViewer:e.shouldShowLogViewer,hasError:e.hasError,wasErrorSeen:e.wasErrorSeen}),{memoizeOptions:{resultEqualityCheck:Me.isEqual}}),YNe=()=>{const e=Ie(),t=ce(GNe),{shouldShowLogViewer:n,hasError:r,wasErrorSeen:i}=ce(qNe),[o,a]=w.useState(!0),s=w.useRef(null);w.useLayoutEffect(()=>{s.current!==null&&o&&(s.current.scrollTop=s.current.scrollHeight)},[o,t,n]);const l=()=>{e(TG()),e(B6(!n))};et("`",()=>{e(B6(!n))},[n]),et("esc",()=>{e(B6(!1))});const u=()=>{s.current&&o&&s.current.scrollTop<s.current.scrollHeight-s.current.clientHeight&&a(!1)};return v.jsxs(v.Fragment,{children:[n&&v.jsx(pY,{defaultSize:{width:"100%",height:200},style:{display:"flex",position:"fixed",left:0,bottom:0,zIndex:9999},maxHeight:"90vh",children:v.jsx("div",{className:"console",ref:s,onScroll:u,children:t.map((c,h)=>{const{timestamp:m,message:y,level:b}=c;return v.jsxs("div",{className:`console-entry console-${b}-color`,children:[v.jsxs("p",{className:"console-timestamp",children:[m,":"]}),v.jsx("p",{className:"console-message",children:y})]},h)})})}),n&&v.jsx(ui,{hasArrow:!0,label:o?"Autoscroll On":"Autoscroll Off",children:v.jsx(ds,{className:"console-autoscroll-icon-button","data-autoscroll-enabled":o,size:"sm","aria-label":"Toggle autoscroll",variant:"solid",icon:v.jsx(_Pe,{}),onClick:()=>a(!o)})}),v.jsx(ui,{hasArrow:!0,label:n?"Hide Console":"Show Console",children:v.jsx(ds,{className:"console-toggle-icon-button","data-error-seen":r||!i,size:"sm",position:"fixed",variant:"solid","aria-label":"Toggle Log Viewer",icon:n?v.jsx(FPe,{}):v.jsx(rY,{}),onClick:l})})]})},KNe=dt(mr,e=>({isProcessing:e.isProcessing,currentStep:e.currentStep,totalSteps:e.totalSteps,currentStatusHasSteps:e.currentStatusHasSteps}),{memoizeOptions:{resultEqualityCheck:Me.isEqual}}),XNe=()=>{const{isProcessing:e,currentStep:t,totalSteps:n,currentStatusHasSteps:r}=ce(KNe),i=t?Math.round(t*100/n):0;return v.jsx(OU,{value:i,isIndeterminate:e&&!r,className:"progress-bar"})};function ZNe(e){const{title:t,hotkey:n,description:r}=e;return v.jsxs("div",{className:"hotkey-modal-item",children:[v.jsxs("div",{className:"hotkey-info",children:[v.jsx("p",{className:"hotkey-title",children:t}),r&&v.jsx("p",{className:"hotkey-description",children:r})]}),v.jsx("div",{className:"hotkey-key",children:n})]})}function QNe({children:e}){const{isOpen:t,onOpen:n,onClose:r}=Zd(),{t:i}=je(),o=[{title:i("hotkeys.invoke.title"),desc:i("hotkeys.invoke.desc"),hotkey:"Ctrl+Enter"},{title:i("hotkeys.cancel.title"),desc:i("hotkeys.cancel.desc"),hotkey:"Shift+X"},{title:i("hotkeys.focusPrompt.title"),desc:i("hotkeys.focusPrompt.desc"),hotkey:"Alt+A"},{title:i("hotkeys.
|